Skip to content

Commit

Permalink
Updated following file(s): accounting.yml, ats.yml, crm.yml, ecommerc…
Browse files Browse the repository at this point in the history
…e.yml, file-storage.yml, hris.yml, lead.yml, pos.yml, sms.yml, issue-tracking.yml, connector.yml, proxy.yml, vault.yml, webhook.yml, CHANGELOG.md
  • Loading branch information
nicklloyd committed Oct 31, 2024
1 parent 4eac0de commit 51b3f66
Show file tree
Hide file tree
Showing 15 changed files with 122 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v10.8.0 - (2024-10-30)

### Vault API

- Added `createCallbackState` endpoint to [Create Callback State](/apis/vault/reference#operation/createCallbackState) to create a short-lived state for callback requests.

## v10.7.7 - (2024-10-22)

### Accounting API
Expand Down
2 changes: 1 addition & 1 deletion accounting.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ats.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion connector.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion crm.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ecommerce.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion file-storage.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion hris.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion issue-tracking.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lead.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pos.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion proxy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.3
info:
version: 10.7.7
version: 10.8.0
title: Proxy API
description: |+
Welcome to the Proxy API.
Expand Down
2 changes: 1 addition & 1 deletion sms.yml

Large diffs are not rendered by default.

104 changes: 103 additions & 1 deletion vault.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.3
info:
version: 10.7.7
version: 10.8.0
title: Vault API
description: |+
Welcome to the Vault API 👋
Expand Down Expand Up @@ -2532,6 +2532,38 @@ components:
type: string
description: The date and time the webhook subscription was created downstream
example: '2020-10-01T12:00:00.000Z'
CreateCallbackStateData:
type: object
x-apideck-schema-id: CreateCallbackStateData
properties:
redirect_uri:
type: string
description: The redirect URI to be used after the connection is created.
example: https://example.com/callback
CreateCallbackStateResponse:
type: object
x-apideck-schema-id: CreateCallbackStateResponse
required:
- status_code
- status
- data
properties:
status_code:
type: integer
description: HTTP Response Status Code
example: 200
status:
type: string
description: HTTP Response Status
example: OK
data:
type: object
properties:
state:
type: string
description: Callback state
example: 123e4567-e89b-12d3-a456-426614174000
readOnly: true
responses:
BadRequestResponse:
content:
Expand Down Expand Up @@ -2735,6 +2767,12 @@ components:
example: {}
schema: {}
description: Resource updated
CreateCallbackStateResponse:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateCallbackStateResponse'
description: Callback state created
securitySchemes:
apiKey:
type: apiKey
Expand Down Expand Up @@ -3631,6 +3669,70 @@ paths:
} catch (error) {
console.error(error)
}
/vault/connections/{unified_api}/{service_id}/callback-state:
post:
tags:
- Connections
summary: Create Callback State
operationId: createCallbackState
description: |
This endpoint creates a callback state that can be used to issue requests to the callback endpoint.
security:
- apiKey: []
parameters:
- $ref: '#/components/parameters/x-apideck-consumer-id'
- $ref: '#/components/parameters/x-apideck-app-id'
- $ref: '#/components/parameters/service_id'
- $ref: '#/components/parameters/unified_api'
requestBody:
description: Callback state data
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateCallbackStateData'
responses:
'200':
$ref: '#/components/responses/CreateCallbackStateResponse'
'400':
$ref: '#/components/responses/BadRequestResponse'
'401':
$ref: '#/components/responses/UnauthorizedResponse'
'402':
$ref: '#/components/responses/PaymentRequiredResponse'
'404':
$ref: '#/components/responses/NotFoundResponse'
'422':
$ref: '#/components/responses/UnprocessableResponse'
default:
$ref: '#/components/responses/UnexpectedErrorResponse'
x-apideck-api: vault
x-codeSamples:
- lang: TypeScript
label: Node
source: |
import { Apideck } from '@apideck/node'
const apideck = new Apideck({
apiKey: 'REPLACE_WITH_API_KEY',
appId: 'REPLACE_WITH_APP_ID',
consumerId: 'REPLACE_WITH_CONSUMER_ID'
})
const params = {
serviceId: 'pipedrive',
unifiedApi: 'crm',
createCallbackState: {
redirect_uri: 'https://example.com/callback'
}
}
try {
const { data } = await apideck.vault.createCallbackState(params)
console.log('API called successfully', data)
} catch (error) {
console.error(error)
}
/vault/connections/{unified_api}/{service_id}/{resource}/config:
get:
tags:
Expand Down
2 changes: 1 addition & 1 deletion webhook.yml

Large diffs are not rendered by default.

0 comments on commit 51b3f66

Please sign in to comment.