@workos/openapi-spec 0.157.0 → 0.159.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.
- package/dist/open-api-spec.yaml +30 -20
- package/dist/types.d.ts +26 -21
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -6146,8 +6146,8 @@ paths:
|
|
|
6146
6146
|
/client/token:
|
|
6147
6147
|
post:
|
|
6148
6148
|
description: >-
|
|
6149
|
-
Generate a short-lived, session-bound token for the
|
|
6150
|
-
|
|
6149
|
+
Generate a short-lived, session-bound token for the Widgets API, scoped
|
|
6150
|
+
to an organization and user.
|
|
6151
6151
|
operationId: ClientApiTokenController_issueClientApiToken
|
|
6152
6152
|
parameters: []
|
|
6153
6153
|
requestBody:
|
|
@@ -6181,7 +6181,7 @@ paths:
|
|
|
6181
6181
|
application/json:
|
|
6182
6182
|
schema:
|
|
6183
6183
|
$ref: '#/components/schemas/ErrorBody'
|
|
6184
|
-
summary: Generate a
|
|
6184
|
+
summary: Generate a Widgets API token
|
|
6185
6185
|
tags:
|
|
6186
6186
|
- client
|
|
6187
6187
|
/connect/applications:
|
|
@@ -15119,7 +15119,7 @@ paths:
|
|
|
15119
15119
|
content:
|
|
15120
15120
|
application/json:
|
|
15121
15121
|
schema:
|
|
15122
|
-
$ref: '#/components/schemas/
|
|
15122
|
+
$ref: '#/components/schemas/PolicyDeniedErrorBody'
|
|
15123
15123
|
'422':
|
|
15124
15124
|
description: Unprocessable Entity
|
|
15125
15125
|
content:
|
|
@@ -16410,7 +16410,7 @@ paths:
|
|
|
16410
16410
|
content:
|
|
16411
16411
|
application/json:
|
|
16412
16412
|
schema:
|
|
16413
|
-
$ref: '#/components/schemas/
|
|
16413
|
+
$ref: '#/components/schemas/PolicyDeniedErrorBody'
|
|
16414
16414
|
'404':
|
|
16415
16415
|
description: Not Found
|
|
16416
16416
|
content:
|
|
@@ -19294,7 +19294,7 @@ tags:
|
|
|
19294
19294
|
- name: authorization
|
|
19295
19295
|
description: Authorization and access control.
|
|
19296
19296
|
- name: client
|
|
19297
|
-
description:
|
|
19297
|
+
description: Widgets API token management.
|
|
19298
19298
|
- name: connections
|
|
19299
19299
|
description: Manage SSO connections.
|
|
19300
19300
|
- name: directories
|
|
@@ -23744,11 +23744,11 @@ components:
|
|
|
23744
23744
|
properties:
|
|
23745
23745
|
organization_id:
|
|
23746
23746
|
type: string
|
|
23747
|
-
description: The ID of the organization to scope the
|
|
23747
|
+
description: The ID of the organization to scope the Widgets API token to.
|
|
23748
23748
|
example: org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
23749
23749
|
user_id:
|
|
23750
23750
|
type: string
|
|
23751
|
-
description: The ID of the user to issue the
|
|
23751
|
+
description: The ID of the user to issue the Widgets API token for.
|
|
23752
23752
|
example: user_01E4ZCR3C56J083X43JQXF3JK5
|
|
23753
23753
|
required:
|
|
23754
23754
|
- organization_id
|
|
@@ -23951,7 +23951,6 @@ components:
|
|
|
23951
23951
|
- permission_not_found
|
|
23952
23952
|
- permission_slug_conflict
|
|
23953
23953
|
- phone_number_required
|
|
23954
|
-
- policy_denied
|
|
23955
23954
|
- production_feature_requires_billing
|
|
23956
23955
|
- radar_challenge
|
|
23957
23956
|
- radar_sign_up_challenge
|
|
@@ -24440,6 +24439,27 @@ components:
|
|
|
24440
24439
|
required: &ref_35
|
|
24441
24440
|
- error
|
|
24442
24441
|
- error_description
|
|
24442
|
+
PolicyDeniedErrorBody:
|
|
24443
|
+
type: object
|
|
24444
|
+
properties:
|
|
24445
|
+
code:
|
|
24446
|
+
type: string
|
|
24447
|
+
const: policy_denied
|
|
24448
|
+
description: The error code identifying the type of error.
|
|
24449
|
+
example: policy_denied
|
|
24450
|
+
message:
|
|
24451
|
+
type: string
|
|
24452
|
+
description: A human-readable description of the error.
|
|
24453
|
+
example: Request could not be processed.
|
|
24454
|
+
radar_detection_id:
|
|
24455
|
+
type: string
|
|
24456
|
+
description: >-
|
|
24457
|
+
The ID of the Radar detection that blocked the request. Only set
|
|
24458
|
+
when Radar blocked it.
|
|
24459
|
+
example: detection_01HZBC6N1EB1ZY7KG32X
|
|
24460
|
+
required:
|
|
24461
|
+
- code
|
|
24462
|
+
- message
|
|
24443
24463
|
SubResourceScopedRoleNotAllowedErrorBodyWithRoleSlug:
|
|
24444
24464
|
type: object
|
|
24445
24465
|
properties:
|
|
@@ -25250,16 +25270,6 @@ components:
|
|
|
25250
25270
|
const: application_consent_required
|
|
25251
25271
|
message: *ref_29
|
|
25252
25272
|
required: *ref_30
|
|
25253
|
-
PolicyDeniedErrorBody:
|
|
25254
|
-
type: object
|
|
25255
|
-
properties:
|
|
25256
|
-
code:
|
|
25257
|
-
type: string
|
|
25258
|
-
description: The error code identifying the type of error.
|
|
25259
|
-
example: policy_denied
|
|
25260
|
-
const: policy_denied
|
|
25261
|
-
message: *ref_29
|
|
25262
|
-
required: *ref_30
|
|
25263
25273
|
ActionDeniedErrorBody:
|
|
25264
25274
|
type: object
|
|
25265
25275
|
properties:
|
|
@@ -44713,7 +44723,7 @@ components:
|
|
|
44713
44723
|
properties:
|
|
44714
44724
|
token:
|
|
44715
44725
|
type: string
|
|
44716
|
-
description: The
|
|
44726
|
+
description: The Widgets API token.
|
|
44717
44727
|
example: eyJhbGciOiJSUzI1NiIsImtpZCI6InNlc3Npb24...
|
|
44718
44728
|
required:
|
|
44719
44729
|
- token
|
package/dist/types.d.ts
CHANGED
|
@@ -1141,8 +1141,8 @@ export interface paths {
|
|
|
1141
1141
|
get?: never;
|
|
1142
1142
|
put?: never;
|
|
1143
1143
|
/**
|
|
1144
|
-
* Generate a
|
|
1145
|
-
* @description Generate a short-lived, session-bound token for the
|
|
1144
|
+
* Generate a Widgets API token
|
|
1145
|
+
* @description Generate a short-lived, session-bound token for the Widgets API, scoped to an organization and user.
|
|
1146
1146
|
*/
|
|
1147
1147
|
post: operations["ClientApiTokenController_issueClientApiToken"];
|
|
1148
1148
|
delete?: never;
|
|
@@ -6508,12 +6508,12 @@ export interface components {
|
|
|
6508
6508
|
};
|
|
6509
6509
|
ClientApiTokenDto: {
|
|
6510
6510
|
/**
|
|
6511
|
-
* @description The ID of the organization to scope the
|
|
6511
|
+
* @description The ID of the organization to scope the Widgets API token to.
|
|
6512
6512
|
* @example org_01EHZNVPK3SFK441A1RGBFSHRT
|
|
6513
6513
|
*/
|
|
6514
6514
|
organization_id: string;
|
|
6515
6515
|
/**
|
|
6516
|
-
* @description The ID of the user to issue the
|
|
6516
|
+
* @description The ID of the user to issue the Widgets API token for.
|
|
6517
6517
|
* @example user_01E4ZCR3C56J083X43JQXF3JK5
|
|
6518
6518
|
*/
|
|
6519
6519
|
user_id: string;
|
|
@@ -6568,7 +6568,7 @@ export interface components {
|
|
|
6568
6568
|
* @description A machine-readable error code; additional values may be added over time.
|
|
6569
6569
|
* @enum {string}
|
|
6570
6570
|
*/
|
|
6571
|
-
ErrorBodyCode: "account_selection_required" | "action_denied" | "already_claimed" | "ambiguous_saml_options" | "api_key_already_expired" | "application_consent_required" | "auth_method_disabled" | "auth_method_mismatch" | "authentication_method_not_allowed" | "authorization_resource_external_id_conflict" | "bad_request" | "both_saml_and_oidc_options_provided" | "cannot_deactivate_pending_organization_membership" | "cannot_delete_last_certificate" | "cannot_reactivate_pending_organization_membership" | "certificate_expired" | "chain_depth_exceeded" | "claim_denied" | "claim_expired" | "client_secret_not_accepted" | "client_secret_required" | "code_challenge_not_found" | "concurrent_flag_target_update" | "concurrent_request" | "connected_account_limit_reached" | "connection_could_not_be_verified" | "connection_deletion_in_progress" | "connection_is_not_saml" | "connection_type_conflicts_with_options" | "connection_type_not_supported" | "connection_type_not_updatable" | "connection_type_or_options_required" | "daily_quota_exceeded" | "directory_sync_disabled" | "directory_sync_in_progress" | "directory_sync_rate_limited" | "directory_sync_unsupported" | "discovery_endpoint_must_use_https" | "domain_already_exists" | "domain_already_verified" | "duplicate_endpoint" | "duplicate_group_role_assignment" | "email_already_in_use" | "email_already_invited" | "email_already_invited_to_organization" | "email_already_verified" | "email_change_code_expired" | "email_change_code_incorrect" | "email_change_code_previously_used" | "email_change_not_allowed" | "email_change_not_needed" | "email_change_too_many_attempts" | "email_completion_required" | "email_domain_not_deliverable" | "email_mismatch" | "email_not_available" | "email_password_auth_disabled" | "email_previously_verified" | "email_verification_code_expired" | "email_verification_code_incorrect" | "email_verification_code_previously_used" | "email_verification_required" | "entity_not_found" | "expires_in_days_too_long" | "expires_in_days_too_short" | "external_auth_session_already_completed" | "external_id_already_in_use" | "external_id_already_used" | "group_membership_limit_exceeded" | "group_membership_update_overlap" | "group_role_assignment_update_overlap" | "id_token_signature_algorithm_not_supported" | "idp_metadata_fetch_failed" | "incomplete_saml_options" | "invalid_agent_access_token" | "invalid_certificate" | "invalid_claim" | "invalid_credentials" | "invalid_email" | "invalid_idp_sso_url" | "invalid_invite" | "invalid_locale" | "invalid_metadata" | "invalid_one_time_code" | "invalid_organization" | "invalid_organization_id" | "invalid_password_hash" | "invalid_pending_authentication_token" | "invalid_refresh_token" | "invalid_request" | "invalid_request_parameters" | "invalid_role" | "invalid_state" | "invalid_url" | "invalid_user_access_token" | "invitation_email_not_sent" | "invite_accepted" | "invite_expired" | "invite_has_accepted_user_id" | "invite_not_pending" | "invite_revoked" | "ip_address_required" | "it_contact_already_exists" | "it_contact_invitation_already_active" | "key_pair_not_accepted" | "lock_timeout" | "max_age_exceeded" | "mfa_challenge" | "mfa_enrollment" | "missing_organization_id_or_resource_type_slug" | "missing_user_id_or_organization_id" | "multiple_roles_not_enabled" | "name_already_in_use" | "no_pending_email_change" | "oidc_options_required" | "one_time_code_expired" | "one_time_code_previously_used" | "one_time_code_too_many_attempts" | "organization_blocked_from_sending_invites" | "organization_membership_directory_managed" | "organization_not_found" | "organization_not_invocable" | "organization_role_slug_conflict" | "organization_selection_required" | "passkey_progressive_enrollment" | "password_and_password_hash_provided" | "password_and_password_hash_type_provided" | "password_reset_error" | "password_reset_not_allowed" | "password_salt_position_requires_password_hash" | "password_strength_error" | "permission_not_found" | "permission_slug_conflict" | "phone_number_required" | "
|
|
6571
|
+
ErrorBodyCode: "account_selection_required" | "action_denied" | "already_claimed" | "ambiguous_saml_options" | "api_key_already_expired" | "application_consent_required" | "auth_method_disabled" | "auth_method_mismatch" | "authentication_method_not_allowed" | "authorization_resource_external_id_conflict" | "bad_request" | "both_saml_and_oidc_options_provided" | "cannot_deactivate_pending_organization_membership" | "cannot_delete_last_certificate" | "cannot_reactivate_pending_organization_membership" | "certificate_expired" | "chain_depth_exceeded" | "claim_denied" | "claim_expired" | "client_secret_not_accepted" | "client_secret_required" | "code_challenge_not_found" | "concurrent_flag_target_update" | "concurrent_request" | "connected_account_limit_reached" | "connection_could_not_be_verified" | "connection_deletion_in_progress" | "connection_is_not_saml" | "connection_type_conflicts_with_options" | "connection_type_not_supported" | "connection_type_not_updatable" | "connection_type_or_options_required" | "daily_quota_exceeded" | "directory_sync_disabled" | "directory_sync_in_progress" | "directory_sync_rate_limited" | "directory_sync_unsupported" | "discovery_endpoint_must_use_https" | "domain_already_exists" | "domain_already_verified" | "duplicate_endpoint" | "duplicate_group_role_assignment" | "email_already_in_use" | "email_already_invited" | "email_already_invited_to_organization" | "email_already_verified" | "email_change_code_expired" | "email_change_code_incorrect" | "email_change_code_previously_used" | "email_change_not_allowed" | "email_change_not_needed" | "email_change_too_many_attempts" | "email_completion_required" | "email_domain_not_deliverable" | "email_mismatch" | "email_not_available" | "email_password_auth_disabled" | "email_previously_verified" | "email_verification_code_expired" | "email_verification_code_incorrect" | "email_verification_code_previously_used" | "email_verification_required" | "entity_not_found" | "expires_in_days_too_long" | "expires_in_days_too_short" | "external_auth_session_already_completed" | "external_id_already_in_use" | "external_id_already_used" | "group_membership_limit_exceeded" | "group_membership_update_overlap" | "group_role_assignment_update_overlap" | "id_token_signature_algorithm_not_supported" | "idp_metadata_fetch_failed" | "incomplete_saml_options" | "invalid_agent_access_token" | "invalid_certificate" | "invalid_claim" | "invalid_credentials" | "invalid_email" | "invalid_idp_sso_url" | "invalid_invite" | "invalid_locale" | "invalid_metadata" | "invalid_one_time_code" | "invalid_organization" | "invalid_organization_id" | "invalid_password_hash" | "invalid_pending_authentication_token" | "invalid_refresh_token" | "invalid_request" | "invalid_request_parameters" | "invalid_role" | "invalid_state" | "invalid_url" | "invalid_user_access_token" | "invitation_email_not_sent" | "invite_accepted" | "invite_expired" | "invite_has_accepted_user_id" | "invite_not_pending" | "invite_revoked" | "ip_address_required" | "it_contact_already_exists" | "it_contact_invitation_already_active" | "key_pair_not_accepted" | "lock_timeout" | "max_age_exceeded" | "mfa_challenge" | "mfa_enrollment" | "missing_organization_id_or_resource_type_slug" | "missing_user_id_or_organization_id" | "multiple_roles_not_enabled" | "name_already_in_use" | "no_pending_email_change" | "oidc_options_required" | "one_time_code_expired" | "one_time_code_previously_used" | "one_time_code_too_many_attempts" | "organization_blocked_from_sending_invites" | "organization_membership_directory_managed" | "organization_not_found" | "organization_not_invocable" | "organization_role_slug_conflict" | "organization_selection_required" | "passkey_progressive_enrollment" | "password_and_password_hash_provided" | "password_and_password_hash_type_provided" | "password_reset_error" | "password_reset_not_allowed" | "password_salt_position_requires_password_hash" | "password_strength_error" | "permission_not_found" | "permission_slug_conflict" | "phone_number_required" | "production_feature_requires_billing" | "radar_challenge" | "radar_sign_up_challenge" | "radar_sms_sign_in_challenge" | "rate_limit_exceeded" | "resource_has_dependents" | "resource_limit_exceeded" | "resource_type_update_in_progress" | "role_has_assignments" | "role_has_group_role_mappings" | "role_not_found" | "role_not_invocable" | "role_slug_conflict" | "saml_options_required" | "session_expired" | "session_revoked" | "session_settings_not_found" | "sms_challenge_quota_reached" | "sms_challenge_rate_limited" | "sp_signing_cert_already_exists" | "stripe_customer_id_already_used" | "sub_resource_scoped_role_not_allowed" | "team_not_found" | "token_authentication_method_not_supported" | "too_many_failed_verification_attempts" | "too_many_sp_encryption_certs" | "unsupported_invocation_type" | "user_already_exists" | "user_already_organization_member" | "user_code_expired" | "user_consent_options_not_supported" | "user_creation_error" | "user_mismatch" | "user_not_member_of_organization" | "user_session_ended" | "verification_id_required" | "wrong_account";
|
|
6572
6572
|
ErrorBodyWithCode: {
|
|
6573
6573
|
/**
|
|
6574
6574
|
* @description The error code identifying the type of error.
|
|
@@ -6895,6 +6895,24 @@ export interface components {
|
|
|
6895
6895
|
*/
|
|
6896
6896
|
error_description: string;
|
|
6897
6897
|
};
|
|
6898
|
+
PolicyDeniedErrorBody: {
|
|
6899
|
+
/**
|
|
6900
|
+
* @description The error code identifying the type of error.
|
|
6901
|
+
* @example policy_denied
|
|
6902
|
+
* @constant
|
|
6903
|
+
*/
|
|
6904
|
+
code: "policy_denied";
|
|
6905
|
+
/**
|
|
6906
|
+
* @description A human-readable description of the error.
|
|
6907
|
+
* @example Request could not be processed.
|
|
6908
|
+
*/
|
|
6909
|
+
message: string;
|
|
6910
|
+
/**
|
|
6911
|
+
* @description The ID of the Radar detection that blocked the request. Only set when Radar blocked it.
|
|
6912
|
+
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
6913
|
+
*/
|
|
6914
|
+
radar_detection_id?: string;
|
|
6915
|
+
};
|
|
6898
6916
|
SubResourceScopedRoleNotAllowedErrorBodyWithRoleSlug: {
|
|
6899
6917
|
/**
|
|
6900
6918
|
* @description A human-readable description of the error.
|
|
@@ -7920,19 +7938,6 @@ export interface components {
|
|
|
7920
7938
|
*/
|
|
7921
7939
|
message: string;
|
|
7922
7940
|
};
|
|
7923
|
-
PolicyDeniedErrorBody: {
|
|
7924
|
-
/**
|
|
7925
|
-
* @description The error code identifying the type of error.
|
|
7926
|
-
* @example policy_denied
|
|
7927
|
-
* @constant
|
|
7928
|
-
*/
|
|
7929
|
-
code: "policy_denied";
|
|
7930
|
-
/**
|
|
7931
|
-
* @description A human-readable description of the error.
|
|
7932
|
-
* @example Request could not be processed.
|
|
7933
|
-
*/
|
|
7934
|
-
message: string;
|
|
7935
|
-
};
|
|
7936
7941
|
ActionDeniedErrorBody: {
|
|
7937
7942
|
/**
|
|
7938
7943
|
* @description The error code identifying the type of error.
|
|
@@ -22814,7 +22819,7 @@ export interface components {
|
|
|
22814
22819
|
};
|
|
22815
22820
|
ClientApiTokenResponse: {
|
|
22816
22821
|
/**
|
|
22817
|
-
* @description The
|
|
22822
|
+
* @description The Widgets API token.
|
|
22818
22823
|
* @example eyJhbGciOiJSUzI1NiIsImtpZCI6InNlc3Npb24...
|
|
22819
22824
|
*/
|
|
22820
22825
|
token: string;
|
|
@@ -36485,7 +36490,7 @@ export interface operations {
|
|
|
36485
36490
|
[name: string]: unknown;
|
|
36486
36491
|
};
|
|
36487
36492
|
content: {
|
|
36488
|
-
"application/json": components["schemas"]["
|
|
36493
|
+
"application/json": components["schemas"]["PolicyDeniedErrorBody"];
|
|
36489
36494
|
};
|
|
36490
36495
|
};
|
|
36491
36496
|
/** @description Unprocessable Entity */
|
|
@@ -37613,7 +37618,7 @@ export interface operations {
|
|
|
37613
37618
|
[name: string]: unknown;
|
|
37614
37619
|
};
|
|
37615
37620
|
content: {
|
|
37616
|
-
"application/json": components["schemas"]["
|
|
37621
|
+
"application/json": components["schemas"]["PolicyDeniedErrorBody"];
|
|
37617
37622
|
};
|
|
37618
37623
|
};
|
|
37619
37624
|
/** @description Not Found */
|