@workos/openapi-spec 0.171.0 → 0.173.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24271,6 +24271,8 @@ components:
24271
24271
  - api_key.created
24272
24272
  - api_key.revoked
24273
24273
  - api_key.updated
24274
+ - application.token_exchange_failed
24275
+ - application.token_exchange_succeeded
24274
24276
  - connection.activated
24275
24277
  - connection.deactivated
24276
24278
  - connection.saml_certificate_renewal_required
@@ -32020,6 +32022,163 @@ components:
32020
32022
  - data
32021
32023
  - created_at
32022
32024
  - object
32025
+ - type: object
32026
+ properties:
32027
+ id:
32028
+ type: string
32029
+ description: Unique identifier for the event.
32030
+ example: event_01EHZNVPK3SFK441A1RGBFSHRT
32031
+ event:
32032
+ type: string
32033
+ const: application.token_exchange_failed
32034
+ data:
32035
+ type: object
32036
+ properties:
32037
+ grant_type:
32038
+ type: string
32039
+ description: >-
32040
+ The OAuth grant type of the token request that presented
32041
+ the token to exchange.
32042
+ example: urn:ietf:params:oauth:grant-type:jwt-bearer
32043
+ client_id:
32044
+ type: string
32045
+ description: >-
32046
+ The client ID of the application that made the token
32047
+ request.
32048
+ example: client_01HXYZ123456789ABCDEFGHIJ
32049
+ issuer:
32050
+ type:
32051
+ - string
32052
+ - 'null'
32053
+ description: >-
32054
+ The issuer the presented token claims. It is not
32055
+ verified, and is `null` when the token could not be
32056
+ read.
32057
+ example: https://example.okta.com
32058
+ error:
32059
+ type: object
32060
+ properties:
32061
+ code:
32062
+ type: string
32063
+ description: The OAuth error code returned to the application.
32064
+ example: invalid_grant
32065
+ message:
32066
+ type: string
32067
+ description: A human-readable description of the error.
32068
+ example: >-
32069
+ The assertion issuer is not trusted in this
32070
+ environment.
32071
+ required:
32072
+ - code
32073
+ - message
32074
+ description: Why the token exchange failed.
32075
+ required:
32076
+ - grant_type
32077
+ - client_id
32078
+ - issuer
32079
+ - error
32080
+ description: The event payload.
32081
+ created_at:
32082
+ format: date-time
32083
+ type: string
32084
+ description: An ISO 8601 timestamp.
32085
+ example: '2026-01-15T12:00:00.000Z'
32086
+ context:
32087
+ $ref: '#/components/schemas/EventContextDto'
32088
+ object:
32089
+ type: string
32090
+ description: Distinguishes the Event object.
32091
+ const: event
32092
+ required:
32093
+ - id
32094
+ - event
32095
+ - data
32096
+ - created_at
32097
+ - object
32098
+ - type: object
32099
+ properties:
32100
+ id:
32101
+ type: string
32102
+ description: Unique identifier for the event.
32103
+ example: event_01EHZNVPK3SFK441A1RGBFSHRT
32104
+ event:
32105
+ type: string
32106
+ const: application.token_exchange_succeeded
32107
+ data:
32108
+ type: object
32109
+ properties:
32110
+ grant_type:
32111
+ type: string
32112
+ description: >-
32113
+ The OAuth grant type of the token request that presented
32114
+ the token to exchange.
32115
+ example: urn:ietf:params:oauth:grant-type:jwt-bearer
32116
+ client_id:
32117
+ type: string
32118
+ description: >-
32119
+ The client ID of the application that made the token
32120
+ request.
32121
+ example: client_01HXYZ123456789ABCDEFGHIJ
32122
+ user_id:
32123
+ type: string
32124
+ description: The ID of the user the access token was issued for.
32125
+ example: user_01E4ZCR3C56J083X43JQXF3JK5
32126
+ email:
32127
+ type: string
32128
+ description: The email address of the user.
32129
+ example: user@example.com
32130
+ organization_id:
32131
+ type:
32132
+ - string
32133
+ - 'null'
32134
+ description: >-
32135
+ The ID of the organization the access token is scoped
32136
+ to.
32137
+ example: org_01EHWNCE74X7JSDV0X3SZ3KJNY
32138
+ issuer:
32139
+ type: string
32140
+ description: The issuer of the token that was exchanged.
32141
+ example: https://example.okta.com
32142
+ connection_id:
32143
+ type:
32144
+ - string
32145
+ - 'null'
32146
+ description: >-
32147
+ The ID of the SSO connection whose identity provider
32148
+ issued the exchanged token. `null` when the AI client
32149
+ issued it.
32150
+ example: conn_01E4ZCR3C56J083X43JQXF3JK5
32151
+ jti:
32152
+ type: string
32153
+ description: The `jti` claim of the access token that was issued.
32154
+ example: 01HXYZ123456789ABCDEFGHIJ
32155
+ required:
32156
+ - grant_type
32157
+ - client_id
32158
+ - user_id
32159
+ - email
32160
+ - organization_id
32161
+ - issuer
32162
+ - connection_id
32163
+ - jti
32164
+ description: The event payload.
32165
+ created_at:
32166
+ format: date-time
32167
+ type: string
32168
+ description: An ISO 8601 timestamp.
32169
+ example: '2026-01-15T12:00:00.000Z'
32170
+ context:
32171
+ $ref: '#/components/schemas/EventContextDto'
32172
+ object:
32173
+ type: string
32174
+ description: Distinguishes the Event object.
32175
+ const: event
32176
+ required:
32177
+ - id
32178
+ - event
32179
+ - data
32180
+ - created_at
32181
+ - object
32023
32182
  - type: object
32024
32183
  properties:
32025
32184
  id:
package/dist/types.d.ts CHANGED
@@ -6598,7 +6598,7 @@ export interface components {
6598
6598
  * "dsync.user.created"
6599
6599
  * ]
6600
6600
  */
6601
- events: ("agent.blueprint.created" | "agent.blueprint.deleted" | "agent.blueprint.updated" | "agent.instance.created" | "agent.instance.deleted" | "agent.instance.session.created" | "agent.instance.session.revoked" | "agent.registration.created" | "agent.registration.claim.attempt.created" | "agent.registration.claim.completed" | "agent.registration.credential.issued" | "agent.registration.deleted" | "agent.registration.refreshed" | "agent.registration.expired" | "agent.registration.organization.switched" | "agent.registration.revoked" | "authentication.email_verification_succeeded" | "authentication.magic_auth_failed" | "authentication.magic_auth_succeeded" | "authentication.mfa_succeeded" | "authentication.oauth_failed" | "authentication.oauth_succeeded" | "authentication.password_failed" | "authentication.password_succeeded" | "authentication.passkey_failed" | "authentication.passkey_succeeded" | "authentication.sso_failed" | "authentication.sso_started" | "authentication.sso_succeeded" | "authentication.sso_timed_out" | "radar.challenge_created" | "authentication.radar_risk_detected" | "authentication.reauthentication_succeeded" | "api_key.created" | "api_key.revoked" | "api_key.updated" | "connection.activated" | "connection.deactivated" | "connection.saml_certificate_renewal_required" | "connection.saml_certificate_renewed" | "connection.deleted" | "dsync.activated" | "dsync.deleted" | "dsync.group.created" | "dsync.group.deleted" | "dsync.group.updated" | "dsync.group.user_added" | "dsync.group.user_removed" | "dsync.user.created" | "dsync.user.deleted" | "dsync.user.updated" | "email_verification.created" | "group.created" | "group.deleted" | "group.member_added" | "group.member_removed" | "group.updated" | "flag.created" | "flag.deleted" | "flag.updated" | "flag.rule_updated" | "feature_flags.flag.created" | "feature_flags.flag.updated" | "feature_flags.flag.deleted" | "feature_flags.flag_rule.created" | "feature_flags.flag_rule.updated" | "feature_flags.flag_target.created" | "feature_flags.flag_rule.deleted" | "feature_flags.flag_target.deleted" | "invitation.accepted" | "invitation.created" | "invitation.resent" | "invitation.revoked" | "magic_auth.created" | "organization.created" | "organization.deleted" | "organization.updated" | "organization_domain.created" | "organization_domain.deleted" | "organization_domain.updated" | "organization_domain.verified" | "organization_domain.verification_failed" | "password_reset.created" | "password_reset.succeeded" | "user.created" | "user.updated" | "user.deleted" | "organization_membership.created" | "organization_membership.deleted" | "organization_membership.updated" | "role.created" | "role.deleted" | "role.updated" | "organization_role.created" | "organization_role.deleted" | "organization_role.updated" | "permission.created" | "permission.deleted" | "permission.updated" | "pipes.account_connection.add_failed" | "pipes.account_connection.connected" | "pipes.account_connection.connection_failed" | "pipes.account_connection.disconnected" | "pipes.account_connection.reauthorization_needed" | "pipes.connected_account.connected" | "pipes.connected_account.connection_failed" | "pipes.connected_account.disconnected" | "pipes.connected_account.reauthorization_needed" | "session.created" | "session.revoked" | "waitlist_user.approved" | "waitlist_user.created" | "waitlist_user.denied")[];
6601
+ events: ("agent.blueprint.created" | "agent.blueprint.deleted" | "agent.blueprint.updated" | "agent.instance.created" | "agent.instance.deleted" | "agent.instance.session.created" | "agent.instance.session.revoked" | "agent.registration.created" | "agent.registration.claim.attempt.created" | "agent.registration.claim.completed" | "agent.registration.credential.issued" | "agent.registration.deleted" | "agent.registration.refreshed" | "agent.registration.expired" | "agent.registration.organization.switched" | "agent.registration.revoked" | "authentication.email_verification_succeeded" | "authentication.magic_auth_failed" | "authentication.magic_auth_succeeded" | "authentication.mfa_succeeded" | "authentication.oauth_failed" | "authentication.oauth_succeeded" | "authentication.password_failed" | "authentication.password_succeeded" | "authentication.passkey_failed" | "authentication.passkey_succeeded" | "authentication.sso_failed" | "authentication.sso_started" | "authentication.sso_succeeded" | "authentication.sso_timed_out" | "radar.challenge_created" | "authentication.radar_risk_detected" | "authentication.reauthentication_succeeded" | "api_key.created" | "api_key.revoked" | "api_key.updated" | "application.token_exchange_failed" | "application.token_exchange_succeeded" | "connection.activated" | "connection.deactivated" | "connection.saml_certificate_renewal_required" | "connection.saml_certificate_renewed" | "connection.deleted" | "dsync.activated" | "dsync.deleted" | "dsync.group.created" | "dsync.group.deleted" | "dsync.group.updated" | "dsync.group.user_added" | "dsync.group.user_removed" | "dsync.user.created" | "dsync.user.deleted" | "dsync.user.updated" | "email_verification.created" | "group.created" | "group.deleted" | "group.member_added" | "group.member_removed" | "group.updated" | "flag.created" | "flag.deleted" | "flag.updated" | "flag.rule_updated" | "feature_flags.flag.created" | "feature_flags.flag.updated" | "feature_flags.flag.deleted" | "feature_flags.flag_rule.created" | "feature_flags.flag_rule.updated" | "feature_flags.flag_target.created" | "feature_flags.flag_rule.deleted" | "feature_flags.flag_target.deleted" | "invitation.accepted" | "invitation.created" | "invitation.resent" | "invitation.revoked" | "magic_auth.created" | "organization.created" | "organization.deleted" | "organization.updated" | "organization_domain.created" | "organization_domain.deleted" | "organization_domain.updated" | "organization_domain.verified" | "organization_domain.verification_failed" | "password_reset.created" | "password_reset.succeeded" | "user.created" | "user.updated" | "user.deleted" | "organization_membership.created" | "organization_membership.deleted" | "organization_membership.updated" | "role.created" | "role.deleted" | "role.updated" | "organization_role.created" | "organization_role.deleted" | "organization_role.updated" | "permission.created" | "permission.deleted" | "permission.updated" | "pipes.account_connection.add_failed" | "pipes.account_connection.connected" | "pipes.account_connection.connection_failed" | "pipes.account_connection.disconnected" | "pipes.account_connection.reauthorization_needed" | "pipes.connected_account.connected" | "pipes.connected_account.connection_failed" | "pipes.connected_account.disconnected" | "pipes.connected_account.reauthorization_needed" | "session.created" | "session.revoked" | "waitlist_user.approved" | "waitlist_user.created" | "waitlist_user.denied")[];
6602
6602
  };
6603
6603
  UpdateWebhookEndpointDto: {
6604
6604
  /**
@@ -6619,7 +6619,7 @@ export interface components {
6619
6619
  * "dsync.user.created"
6620
6620
  * ]
6621
6621
  */
6622
- events?: ("agent.blueprint.created" | "agent.blueprint.deleted" | "agent.blueprint.updated" | "agent.instance.created" | "agent.instance.deleted" | "agent.instance.session.created" | "agent.instance.session.revoked" | "agent.registration.created" | "agent.registration.claim.attempt.created" | "agent.registration.claim.completed" | "agent.registration.credential.issued" | "agent.registration.deleted" | "agent.registration.refreshed" | "agent.registration.expired" | "agent.registration.organization.switched" | "agent.registration.revoked" | "authentication.email_verification_succeeded" | "authentication.magic_auth_failed" | "authentication.magic_auth_succeeded" | "authentication.mfa_succeeded" | "authentication.oauth_failed" | "authentication.oauth_succeeded" | "authentication.password_failed" | "authentication.password_succeeded" | "authentication.passkey_failed" | "authentication.passkey_succeeded" | "authentication.sso_failed" | "authentication.sso_started" | "authentication.sso_succeeded" | "authentication.sso_timed_out" | "radar.challenge_created" | "authentication.radar_risk_detected" | "authentication.reauthentication_succeeded" | "api_key.created" | "api_key.revoked" | "api_key.updated" | "connection.activated" | "connection.deactivated" | "connection.saml_certificate_renewal_required" | "connection.saml_certificate_renewed" | "connection.deleted" | "dsync.activated" | "dsync.deleted" | "dsync.group.created" | "dsync.group.deleted" | "dsync.group.updated" | "dsync.group.user_added" | "dsync.group.user_removed" | "dsync.user.created" | "dsync.user.deleted" | "dsync.user.updated" | "email_verification.created" | "group.created" | "group.deleted" | "group.member_added" | "group.member_removed" | "group.updated" | "flag.created" | "flag.deleted" | "flag.updated" | "flag.rule_updated" | "feature_flags.flag.created" | "feature_flags.flag.updated" | "feature_flags.flag.deleted" | "feature_flags.flag_rule.created" | "feature_flags.flag_rule.updated" | "feature_flags.flag_target.created" | "feature_flags.flag_rule.deleted" | "feature_flags.flag_target.deleted" | "invitation.accepted" | "invitation.created" | "invitation.resent" | "invitation.revoked" | "magic_auth.created" | "organization.created" | "organization.deleted" | "organization.updated" | "organization_domain.created" | "organization_domain.deleted" | "organization_domain.updated" | "organization_domain.verified" | "organization_domain.verification_failed" | "password_reset.created" | "password_reset.succeeded" | "user.created" | "user.updated" | "user.deleted" | "organization_membership.created" | "organization_membership.deleted" | "organization_membership.updated" | "role.created" | "role.deleted" | "role.updated" | "organization_role.created" | "organization_role.deleted" | "organization_role.updated" | "permission.created" | "permission.deleted" | "permission.updated" | "pipes.account_connection.add_failed" | "pipes.account_connection.connected" | "pipes.account_connection.connection_failed" | "pipes.account_connection.disconnected" | "pipes.account_connection.reauthorization_needed" | "pipes.connected_account.connected" | "pipes.connected_account.connection_failed" | "pipes.connected_account.disconnected" | "pipes.connected_account.reauthorization_needed" | "session.created" | "session.revoked" | "waitlist_user.approved" | "waitlist_user.created" | "waitlist_user.denied")[];
6622
+ events?: ("agent.blueprint.created" | "agent.blueprint.deleted" | "agent.blueprint.updated" | "agent.instance.created" | "agent.instance.deleted" | "agent.instance.session.created" | "agent.instance.session.revoked" | "agent.registration.created" | "agent.registration.claim.attempt.created" | "agent.registration.claim.completed" | "agent.registration.credential.issued" | "agent.registration.deleted" | "agent.registration.refreshed" | "agent.registration.expired" | "agent.registration.organization.switched" | "agent.registration.revoked" | "authentication.email_verification_succeeded" | "authentication.magic_auth_failed" | "authentication.magic_auth_succeeded" | "authentication.mfa_succeeded" | "authentication.oauth_failed" | "authentication.oauth_succeeded" | "authentication.password_failed" | "authentication.password_succeeded" | "authentication.passkey_failed" | "authentication.passkey_succeeded" | "authentication.sso_failed" | "authentication.sso_started" | "authentication.sso_succeeded" | "authentication.sso_timed_out" | "radar.challenge_created" | "authentication.radar_risk_detected" | "authentication.reauthentication_succeeded" | "api_key.created" | "api_key.revoked" | "api_key.updated" | "application.token_exchange_failed" | "application.token_exchange_succeeded" | "connection.activated" | "connection.deactivated" | "connection.saml_certificate_renewal_required" | "connection.saml_certificate_renewed" | "connection.deleted" | "dsync.activated" | "dsync.deleted" | "dsync.group.created" | "dsync.group.deleted" | "dsync.group.updated" | "dsync.group.user_added" | "dsync.group.user_removed" | "dsync.user.created" | "dsync.user.deleted" | "dsync.user.updated" | "email_verification.created" | "group.created" | "group.deleted" | "group.member_added" | "group.member_removed" | "group.updated" | "flag.created" | "flag.deleted" | "flag.updated" | "flag.rule_updated" | "feature_flags.flag.created" | "feature_flags.flag.updated" | "feature_flags.flag.deleted" | "feature_flags.flag_rule.created" | "feature_flags.flag_rule.updated" | "feature_flags.flag_target.created" | "feature_flags.flag_rule.deleted" | "feature_flags.flag_target.deleted" | "invitation.accepted" | "invitation.created" | "invitation.resent" | "invitation.revoked" | "magic_auth.created" | "organization.created" | "organization.deleted" | "organization.updated" | "organization_domain.created" | "organization_domain.deleted" | "organization_domain.updated" | "organization_domain.verified" | "organization_domain.verification_failed" | "password_reset.created" | "password_reset.succeeded" | "user.created" | "user.updated" | "user.deleted" | "organization_membership.created" | "organization_membership.deleted" | "organization_membership.updated" | "role.created" | "role.deleted" | "role.updated" | "organization_role.created" | "organization_role.deleted" | "organization_role.updated" | "permission.created" | "permission.deleted" | "permission.updated" | "pipes.account_connection.add_failed" | "pipes.account_connection.connected" | "pipes.account_connection.connection_failed" | "pipes.account_connection.disconnected" | "pipes.account_connection.reauthorization_needed" | "pipes.connected_account.connected" | "pipes.connected_account.connection_failed" | "pipes.connected_account.disconnected" | "pipes.connected_account.reauthorization_needed" | "session.created" | "session.revoked" | "waitlist_user.approved" | "waitlist_user.created" | "waitlist_user.denied")[];
6623
6623
  };
6624
6624
  WidgetSessionTokenDto: {
6625
6625
  /**
@@ -12914,6 +12914,120 @@ export interface components {
12914
12914
  * @constant
12915
12915
  */
12916
12916
  object: "event";
12917
+ } | {
12918
+ /**
12919
+ * @description Unique identifier for the event.
12920
+ * @example event_01EHZNVPK3SFK441A1RGBFSHRT
12921
+ */
12922
+ id: string;
12923
+ /** @constant */
12924
+ event: "application.token_exchange_failed";
12925
+ /** @description The event payload. */
12926
+ data: {
12927
+ /**
12928
+ * @description The OAuth grant type of the token request that presented the token to exchange.
12929
+ * @example urn:ietf:params:oauth:grant-type:jwt-bearer
12930
+ */
12931
+ grant_type: string;
12932
+ /**
12933
+ * @description The client ID of the application that made the token request.
12934
+ * @example client_01HXYZ123456789ABCDEFGHIJ
12935
+ */
12936
+ client_id: string;
12937
+ /**
12938
+ * @description The issuer the presented token claims. It is not verified, and is `null` when the token could not be read.
12939
+ * @example https://example.okta.com
12940
+ */
12941
+ issuer: string | null;
12942
+ /** @description Why the token exchange failed. */
12943
+ error: {
12944
+ /**
12945
+ * @description The OAuth error code returned to the application.
12946
+ * @example invalid_grant
12947
+ */
12948
+ code: string;
12949
+ /**
12950
+ * @description A human-readable description of the error.
12951
+ * @example The assertion issuer is not trusted in this environment.
12952
+ */
12953
+ message: string;
12954
+ };
12955
+ };
12956
+ /**
12957
+ * Format: date-time
12958
+ * @description An ISO 8601 timestamp.
12959
+ * @example 2026-01-15T12:00:00.000Z
12960
+ */
12961
+ created_at: string;
12962
+ context?: components["schemas"]["EventContextDto"];
12963
+ /**
12964
+ * @description Distinguishes the Event object.
12965
+ * @constant
12966
+ */
12967
+ object: "event";
12968
+ } | {
12969
+ /**
12970
+ * @description Unique identifier for the event.
12971
+ * @example event_01EHZNVPK3SFK441A1RGBFSHRT
12972
+ */
12973
+ id: string;
12974
+ /** @constant */
12975
+ event: "application.token_exchange_succeeded";
12976
+ /** @description The event payload. */
12977
+ data: {
12978
+ /**
12979
+ * @description The OAuth grant type of the token request that presented the token to exchange.
12980
+ * @example urn:ietf:params:oauth:grant-type:jwt-bearer
12981
+ */
12982
+ grant_type: string;
12983
+ /**
12984
+ * @description The client ID of the application that made the token request.
12985
+ * @example client_01HXYZ123456789ABCDEFGHIJ
12986
+ */
12987
+ client_id: string;
12988
+ /**
12989
+ * @description The ID of the user the access token was issued for.
12990
+ * @example user_01E4ZCR3C56J083X43JQXF3JK5
12991
+ */
12992
+ user_id: string;
12993
+ /**
12994
+ * @description The email address of the user.
12995
+ * @example user@example.com
12996
+ */
12997
+ email: string;
12998
+ /**
12999
+ * @description The ID of the organization the access token is scoped to.
13000
+ * @example org_01EHWNCE74X7JSDV0X3SZ3KJNY
13001
+ */
13002
+ organization_id: string | null;
13003
+ /**
13004
+ * @description The issuer of the token that was exchanged.
13005
+ * @example https://example.okta.com
13006
+ */
13007
+ issuer: string;
13008
+ /**
13009
+ * @description The ID of the SSO connection whose identity provider issued the exchanged token. `null` when the AI client issued it.
13010
+ * @example conn_01E4ZCR3C56J083X43JQXF3JK5
13011
+ */
13012
+ connection_id: string | null;
13013
+ /**
13014
+ * @description The `jti` claim of the access token that was issued.
13015
+ * @example 01HXYZ123456789ABCDEFGHIJ
13016
+ */
13017
+ jti: string;
13018
+ };
13019
+ /**
13020
+ * Format: date-time
13021
+ * @description An ISO 8601 timestamp.
13022
+ * @example 2026-01-15T12:00:00.000Z
13023
+ */
13024
+ created_at: string;
13025
+ context?: components["schemas"]["EventContextDto"];
13026
+ /**
13027
+ * @description Distinguishes the Event object.
13028
+ * @constant
13029
+ */
13030
+ object: "event";
12917
13031
  } | {
12918
13032
  /**
12919
13033
  * @description Unique identifier for the event.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.171.0",
3
+ "version": "0.173.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",