Skip to content

Commit 972715b

Browse files
Update OpenAPI spec (e438f66) (#284)
Co-authored-by: workos-sdk-automation[bot] <255426317+workos-sdk-automation[bot]@users.noreply.github.com>
1 parent fc3a76f commit 972715b

2 files changed

Lines changed: 158 additions & 1 deletion

File tree

‎.last-synced-sha‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b98f3e8039e53b6ea7f99f0ab1f0826b446fa313
1+
e438f66e281ea5d594991097017e970f5057e79a

‎spec/open-api-spec.yaml‎

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32020,6 +32020,163 @@ components:
3202032020
- data
3202132021
- created_at
3202232022
- object
32023+
- type: object
32024+
properties:
32025+
id:
32026+
type: string
32027+
description: Unique identifier for the event.
32028+
example: event_01EHZNVPK3SFK441A1RGBFSHRT
32029+
event:
32030+
type: string
32031+
const: application.token_exchange_failed
32032+
data:
32033+
type: object
32034+
properties:
32035+
grant_type:
32036+
type: string
32037+
description: >-
32038+
The OAuth grant type of the token request that presented
32039+
the token to exchange.
32040+
example: urn:ietf:params:oauth:grant-type:jwt-bearer
32041+
client_id:
32042+
type: string
32043+
description: >-
32044+
The client ID of the application that made the token
32045+
request.
32046+
example: client_01HXYZ123456789ABCDEFGHIJ
32047+
issuer:
32048+
type:
32049+
- string
32050+
- 'null'
32051+
description: >-
32052+
The issuer the presented token claims. It is not
32053+
verified, and is `null` when the token could not be
32054+
read.
32055+
example: https://example.okta.com
32056+
error:
32057+
type: object
32058+
properties:
32059+
code:
32060+
type: string
32061+
description: The OAuth error code returned to the application.
32062+
example: invalid_grant
32063+
message:
32064+
type: string
32065+
description: A human-readable description of the error.
32066+
example: >-
32067+
The assertion issuer is not trusted in this
32068+
environment.
32069+
required:
32070+
- code
32071+
- message
32072+
description: Why the token exchange failed.
32073+
required:
32074+
- grant_type
32075+
- client_id
32076+
- issuer
32077+
- error
32078+
description: The event payload.
32079+
created_at:
32080+
format: date-time
32081+
type: string
32082+
description: An ISO 8601 timestamp.
32083+
example: '2026-01-15T12:00:00.000Z'
32084+
context:
32085+
$ref: '#/components/schemas/EventContextDto'
32086+
object:
32087+
type: string
32088+
description: Distinguishes the Event object.
32089+
const: event
32090+
required:
32091+
- id
32092+
- event
32093+
- data
32094+
- created_at
32095+
- object
32096+
- type: object
32097+
properties:
32098+
id:
32099+
type: string
32100+
description: Unique identifier for the event.
32101+
example: event_01EHZNVPK3SFK441A1RGBFSHRT
32102+
event:
32103+
type: string
32104+
const: application.token_exchange_succeeded
32105+
data:
32106+
type: object
32107+
properties:
32108+
grant_type:
32109+
type: string
32110+
description: >-
32111+
The OAuth grant type of the token request that presented
32112+
the token to exchange.
32113+
example: urn:ietf:params:oauth:grant-type:jwt-bearer
32114+
client_id:
32115+
type: string
32116+
description: >-
32117+
The client ID of the application that made the token
32118+
request.
32119+
example: client_01HXYZ123456789ABCDEFGHIJ
32120+
user_id:
32121+
type: string
32122+
description: The ID of the user the access token was issued for.
32123+
example: user_01E4ZCR3C56J083X43JQXF3JK5
32124+
email:
32125+
type: string
32126+
description: The email address of the user.
32127+
example: user@example.com
32128+
organization_id:
32129+
type:
32130+
- string
32131+
- 'null'
32132+
description: >-
32133+
The ID of the organization the access token is scoped
32134+
to.
32135+
example: org_01EHWNCE74X7JSDV0X3SZ3KJNY
32136+
issuer:
32137+
type: string
32138+
description: The issuer of the token that was exchanged.
32139+
example: https://example.okta.com
32140+
connection_id:
32141+
type:
32142+
- string
32143+
- 'null'
32144+
description: >-
32145+
The ID of the SSO connection whose identity provider
32146+
issued the exchanged token. `null` when the AI client
32147+
issued it.
32148+
example: conn_01E4ZCR3C56J083X43JQXF3JK5
32149+
jti:
32150+
type: string
32151+
description: The `jti` claim of the access token that was issued.
32152+
example: 01HXYZ123456789ABCDEFGHIJ
32153+
required:
32154+
- grant_type
32155+
- client_id
32156+
- user_id
32157+
- email
32158+
- organization_id
32159+
- issuer
32160+
- connection_id
32161+
- jti
32162+
description: The event payload.
32163+
created_at:
32164+
format: date-time
32165+
type: string
32166+
description: An ISO 8601 timestamp.
32167+
example: '2026-01-15T12:00:00.000Z'
32168+
context:
32169+
$ref: '#/components/schemas/EventContextDto'
32170+
object:
32171+
type: string
32172+
description: Distinguishes the Event object.
32173+
const: event
32174+
required:
32175+
- id
32176+
- event
32177+
- data
32178+
- created_at
32179+
- object
3202332180
- type: object
3202432181
properties:
3202532182
id:

0 commit comments

Comments
 (0)