@workos-inc/node 10.13.0 → 11.0.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.
@@ -1,3 +1,4 @@
1
+ //#endregion
1
2
  //#region src/common/crypto/crypto-provider.d.ts
2
3
  /**
3
4
  * Interface encapsulating the various crypto computations used by the library,
@@ -123,6 +124,22 @@ declare abstract class HttpClient implements HttpClientInterface {
123
124
  abstract delete(path: string, options: RequestOptions): Promise<HttpClientResponseInterface>;
124
125
  abstract deleteWithBody<Entity = any>(path: string, entity: Entity, options: RequestOptions): Promise<HttpClientResponseInterface>;
125
126
  static getResourceURL(baseURL: string, path: string, params?: Record<string, any>): string;
127
+ /**
128
+ * Reject request paths that contain a single-dot or double-dot segment.
129
+ *
130
+ * SDK path templates never contain such segments themselves, but a
131
+ * caller-supplied identifier interpolated with bare `encodeURIComponent`
132
+ * (the form the generated modules use) passes `.` and `..` through
133
+ * unchanged, and the WHATWG `URL` parser then collapses them, retargeting
134
+ * the request to a different endpoint (for example
135
+ * `/organizations/../api_keys` resolves to `/api_keys`). The parser also
136
+ * treats the percent-encoded forms (`%2e`, case-insensitive) as dots, so
137
+ * those are matched as well. Encoded values never trip this check because
138
+ * `encodeURIComponent` turns `%` into `%25` and `/` into `%2F`, keeping
139
+ * each identifier inside its own segment. Fail closed before any request
140
+ * is built.
141
+ */
142
+ private static assertNoDotSegments;
126
143
  static getQueryString(queryObj?: Record<string, any>): string | undefined;
127
144
  static getContentTypeHeader(entity: any): RequestHeaders | undefined;
128
145
  static getBody(entity: any): BodyInit | null | undefined;
@@ -2996,29 +3013,82 @@ interface SerializedUpdateGroupOptions {
2996
3013
  description?: string | null;
2997
3014
  }
2998
3015
  //#endregion
2999
- //#region src/pipes/interfaces/authorize-data-integration-options.interface.d.ts
3000
- interface AuthorizeDataIntegrationOptions {
3001
- /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
3002
- slug: string;
3003
- /** The ID of the user to authorize. */
3016
+ //#region src/pipes/interfaces/api-key-installation.interface.d.ts
3017
+ interface ApiKeyInstallation {
3018
+ /** The API key secret to store for the tenant. */
3019
+ secret: string;
3020
+ /** The User identifier the API key is installed for. */
3021
+ userId: string;
3022
+ /** An Organization identifier to scope the installation to a specific organization. */
3023
+ organizationId?: string;
3024
+ }
3025
+ interface ApiKeyInstallationResponse {
3026
+ secret: string;
3027
+ user_id: string;
3028
+ organization_id?: string;
3029
+ }
3030
+ //#endregion
3031
+ //#region src/pipes/interfaces/data-integrations-get-data-integration-authorize-url-request-connection-owner.interface.d.ts
3032
+ declare const DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner: {
3033
+ readonly User: "user";
3034
+ readonly Organization: "organization";
3035
+ };
3036
+ type DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner = (typeof DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner)[keyof typeof DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner];
3037
+ //#endregion
3038
+ //#region src/pipes/interfaces/data-integrations-get-data-integration-authorize-url-request.interface.d.ts
3039
+ interface DataIntegrationsGetDataIntegrationAuthorizeUrlRequest {
3040
+ /** The ID of the user to authorize. When `connection_owner` is `organization`, this is the user authorizing on behalf of the organization; they must be an active member of the organization and do not become the owner of the resulting connected account. */
3004
3041
  userId: string;
3005
- /** An organization ID to scope the authorization to a specific organization. */
3042
+ /** An organization ID to scope the authorization to a specific organization. Required when `connection_owner` is `organization`. */
3006
3043
  organizationId?: string;
3044
+ /** Who will own the connected account. `user` (the default) connects the user's own account. `organization` connects the organization's shared account and requires `organization_id`. */
3045
+ connectionOwner?: DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner;
3007
3046
  /** The URL to redirect the user to after authorization. */
3008
3047
  returnTo?: string;
3048
+ /** Connect-time config values for the provider-declared `installation`-scope fields (e.g. a Zendesk `subdomain`), keyed by the config field. Only fields the provider declares may be supplied, and required fields must be provided unless already pinned on the integration. */
3049
+ config?: Record<string, string>;
3050
+ }
3051
+ interface DataIntegrationsGetDataIntegrationAuthorizeUrlRequestResponse {
3052
+ user_id: string;
3053
+ organization_id?: string;
3054
+ connection_owner?: DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner;
3055
+ return_to?: string;
3056
+ config?: Record<string, string>;
3057
+ }
3058
+ //#endregion
3059
+ //#region src/pipes/interfaces/authorize-data-integration-options.interface.d.ts
3060
+ interface AuthorizeDataIntegrationOptions extends DataIntegrationsGetDataIntegrationAuthorizeUrlRequest {
3061
+ /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
3062
+ slug: string;
3009
3063
  }
3010
3064
  //#endregion
3011
3065
  //#region src/pipes/interfaces/connected-account-auth-method.interface.d.ts
3012
3066
  declare const ConnectedAccountAuthMethod: {
3013
3067
  readonly OAuth: "oauth";
3014
3068
  readonly ApiKey: "api_key";
3069
+ readonly ClientCredentials: "client_credentials";
3015
3070
  };
3016
3071
  type ConnectedAccountAuthMethod = (typeof ConnectedAccountAuthMethod)[keyof typeof ConnectedAccountAuthMethod];
3017
3072
  //#endregion
3073
+ //#region src/pipes/interfaces/connected-account-connection-role.interface.d.ts
3074
+ declare const ConnectedAccountConnectionRole: {
3075
+ readonly Compatibility: "compatibility";
3076
+ readonly Standard: "standard";
3077
+ };
3078
+ type ConnectedAccountConnectionRole = (typeof ConnectedAccountConnectionRole)[keyof typeof ConnectedAccountConnectionRole];
3079
+ //#endregion
3080
+ //#region src/pipes/interfaces/connected-account-input-state.interface.d.ts
3081
+ declare const ConnectedAccountInputState: {
3082
+ readonly Connected: "connected";
3083
+ readonly NeedsReauthorization: "needs_reauthorization";
3084
+ };
3085
+ type ConnectedAccountInputState = (typeof ConnectedAccountInputState)[keyof typeof ConnectedAccountInputState];
3086
+ //#endregion
3018
3087
  //#region src/pipes/interfaces/connected-account-state.interface.d.ts
3019
3088
  declare const ConnectedAccountState: {
3020
3089
  readonly Connected: "connected";
3021
3090
  readonly NeedsReauthorization: "needs_reauthorization";
3091
+ readonly Disconnected: "disconnected";
3022
3092
  };
3023
3093
  type ConnectedAccountState = (typeof ConnectedAccountState)[keyof typeof ConnectedAccountState];
3024
3094
  //#endregion
@@ -3028,16 +3098,28 @@ interface ConnectedAccount {
3028
3098
  object: 'connected_account';
3029
3099
  /** The unique identifier of the connected account. */
3030
3100
  id: string;
3101
+ /** Whether this row is the compatibility connection visible to undeclared clients or a standard peer for plural-aware clients. The role does not indicate preference or creation order. */
3102
+ connectionRole?: ConnectedAccountConnectionRole;
3103
+ /** A best-effort identifier for the provider account this connection points at. It is correlation metadata, not the connection identifier or a selector. */
3104
+ accountIdentifier?: string | null;
3105
+ /** A mutable, non-unique display name for the provider account connection. */
3106
+ accountDisplayName?: string | null;
3031
3107
  /** The [User](https://workos.com/docs/reference/authkit/user) identifier associated with this connection. */
3032
3108
  userId: string | null;
3033
3109
  /** The [Organization](https://workos.com/docs/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization. */
3034
3110
  organizationId: string | null;
3035
3111
  /** The OAuth scopes granted for this connection. */
3036
3112
  scopes: string[];
3037
- /** The authentication method used for this connection (`oauth` or `api_key`). Defaults to `oauth` if absent. */
3113
+ /** The authentication method used for this connection (`oauth`, `api_key`, or `client_credentials`). Defaults to `oauth` if absent. */
3038
3114
  authMethod?: ConnectedAccountAuthMethod;
3039
3115
  /** The last four characters of the API key, or `null` for OAuth connections. */
3040
3116
  apiKeyLast4?: string | null;
3117
+ /** The client ID supplied for this connection. Only present when `auth_method` is `client_credentials`. */
3118
+ clientId?: string | null;
3119
+ /** The last four characters of the client secret supplied for this connection, or `null` when it can't be read. Only present when `auth_method` is `client_credentials`. */
3120
+ clientSecretLast4?: string | null;
3121
+ /** The connection-level configuration values stored for this connection — the fields the provider declares at `installation` scope, excluding secret and undeclared fields. Returned for every authentication method; empty when no stored values can be disclosed. */
3122
+ config?: Record<string, string>;
3041
3123
  /**
3042
3124
  * The state of the connected account:
3043
3125
  * - `connected`: The connection is active and tokens are valid.
@@ -3053,44 +3135,132 @@ interface ConnectedAccount {
3053
3135
  interface ConnectedAccountResponse {
3054
3136
  object: 'connected_account';
3055
3137
  id: string;
3138
+ connection_role?: ConnectedAccountConnectionRole;
3139
+ account_identifier?: string | null;
3140
+ account_display_name?: string | null;
3056
3141
  user_id: string | null;
3057
3142
  organization_id: string | null;
3058
3143
  scopes: string[];
3059
3144
  auth_method?: ConnectedAccountAuthMethod;
3060
3145
  api_key_last_4?: string | null;
3146
+ client_id?: string | null;
3147
+ client_secret_last_4?: string | null;
3148
+ config?: Record<string, string>;
3061
3149
  state: ConnectedAccountState;
3062
3150
  created_at: string;
3063
3151
  updated_at: string;
3064
3152
  }
3065
3153
  //#endregion
3066
- //#region src/pipes/interfaces/create-data-integration-credential-options.interface.d.ts
3067
- interface CreateDataIntegrationCredentialOptions {
3154
+ //#region src/pipes/interfaces/data-integrations-create-api-key-connection-request-connection-owner.interface.d.ts
3155
+ declare const DataIntegrationsCreateApiKeyConnectionRequestConnectionOwner: {
3156
+ readonly User: "user";
3157
+ readonly Organization: "organization";
3158
+ };
3159
+ type DataIntegrationsCreateApiKeyConnectionRequestConnectionOwner = (typeof DataIntegrationsCreateApiKeyConnectionRequestConnectionOwner)[keyof typeof DataIntegrationsCreateApiKeyConnectionRequestConnectionOwner];
3160
+ //#endregion
3161
+ //#region src/pipes/interfaces/create-data-integration-api-key-options.interface.d.ts
3162
+ interface CreateDataIntegrationApiKeyOptions {
3163
+ /** The identifier of the integration. */
3164
+ slug: string;
3165
+ /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
3166
+ userId: string;
3167
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`. */
3168
+ organizationId?: string;
3169
+ /** Whose connection to create or rotate. `user` (the default) addresses the connection owned by `user_id`. `organization` addresses the connection shared by every member of `organization_id`; `user_id` then identifies the member performing the request and must be an active member of the organization. */
3170
+ connectionOwner?: DataIntegrationsCreateApiKeyConnectionRequestConnectionOwner;
3171
+ /** The API key secret to store for this integration. */
3172
+ secret: string;
3173
+ /** Must be `add`: this endpoint only creates another connection. The first connection for an owner shape fills the compatibility slot; later connections are standard. Creating an additional connection is not yet available: until it is, `add` succeeds only when the owner has no connection for this integration and otherwise returns 404 `multiple_connections_unavailable`. */
3174
+ connectionIntent: 'add';
3175
+ }
3176
+ //#endregion
3177
+ //#region src/pipes/interfaces/create-data-integration-auth-methods.interface.d.ts
3178
+ declare const CreateDataIntegrationAuthMethods: {
3179
+ readonly OAuth: "oauth";
3180
+ readonly ApiKey: "api_key";
3181
+ readonly ClientCredentials: "client_credentials";
3182
+ };
3183
+ type CreateDataIntegrationAuthMethods = (typeof CreateDataIntegrationAuthMethods)[keyof typeof CreateDataIntegrationAuthMethods];
3184
+ //#endregion
3185
+ //#region src/pipes/interfaces/data-integrations-create-client-credentials-connection-request-connection-owner.interface.d.ts
3186
+ declare const DataIntegrationsCreateClientCredentialsConnectionRequestConnectionOwner: {
3187
+ readonly User: "user";
3188
+ readonly Organization: "organization";
3189
+ };
3190
+ type DataIntegrationsCreateClientCredentialsConnectionRequestConnectionOwner = (typeof DataIntegrationsCreateClientCredentialsConnectionRequestConnectionOwner)[keyof typeof DataIntegrationsCreateClientCredentialsConnectionRequestConnectionOwner];
3191
+ //#endregion
3192
+ //#region src/pipes/interfaces/create-data-integration-client-credential-options.interface.d.ts
3193
+ interface CreateDataIntegrationClientCredentialOptions {
3068
3194
  /** The identifier of the integration. */
3069
3195
  slug: string;
3070
3196
  /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
3071
3197
  userId: string;
3072
- /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. */
3198
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`. */
3199
+ organizationId?: string;
3200
+ /** Whose connection to create or rotate. `user` (the default) addresses the connection owned by `user_id`. `organization` addresses the connection shared by every member of `organization_id`; `user_id` then identifies the member performing the request and must be an active member of the organization. */
3201
+ connectionOwner?: DataIntegrationsCreateClientCredentialsConnectionRequestConnectionOwner;
3202
+ /** The OAuth client ID to store for this integration. */
3203
+ clientId: string;
3204
+ /** The OAuth client secret to store for this integration. */
3205
+ clientSecret: string;
3206
+ /** Provider-specific configuration values collected for this installation, keyed by the provider's config field descriptors. */
3207
+ config?: Record<string, string>;
3208
+ /** Must be `add`: this endpoint only creates another connection. The first connection for an owner shape fills the compatibility slot; later connections are standard. Creating an additional connection is not yet available: until it is, `add` succeeds only when the owner has no connection for this integration and otherwise returns 404 `multiple_connections_unavailable`. */
3209
+ connectionIntent: 'add';
3210
+ }
3211
+ //#endregion
3212
+ //#region src/pipes/interfaces/data-integrations-vend-credentials-request-connection-owner.interface.d.ts
3213
+ declare const DataIntegrationsVendCredentialsRequestConnectionOwner: {
3214
+ readonly User: "user";
3215
+ readonly Organization: "organization";
3216
+ };
3217
+ type DataIntegrationsVendCredentialsRequestConnectionOwner = (typeof DataIntegrationsVendCredentialsRequestConnectionOwner)[keyof typeof DataIntegrationsVendCredentialsRequestConnectionOwner];
3218
+ //#endregion
3219
+ //#region src/pipes/interfaces/data-integrations-vend-credentials-request.interface.d.ts
3220
+ interface DataIntegrationsVendCredentialsRequest {
3221
+ /** A [User](https://workos.com/docs/reference/authkit/user) identifier. When `connection_owner` is `organization`, this is the user the credentials are vended on behalf of; they must be an active member of the organization. */
3222
+ userId: string;
3223
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`. */
3073
3224
  organizationId?: string;
3225
+ /** A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select a specific connection when the user has several for this provider. */
3226
+ connectedAccountId?: string;
3227
+ /** Which connection to vend from. `user` (the default) vends the user's own connection and requires `user_id`. `organization` vends the organization's shared connection and requires `organization_id`. */
3228
+ connectionOwner?: DataIntegrationsVendCredentialsRequestConnectionOwner;
3229
+ /** Set to `true` to use the plural connection contract. If no `connected_account_id` is supplied and several connections match, the request returns `account_selection_required`. When omitted or `false`, only the compatibility connection is considered. */
3230
+ supportsMultipleConnections?: boolean;
3231
+ }
3232
+ interface DataIntegrationsVendCredentialsRequestResponse {
3233
+ user_id: string;
3234
+ organization_id?: string;
3235
+ connected_account_id?: string;
3236
+ connection_owner?: DataIntegrationsVendCredentialsRequestConnectionOwner;
3237
+ supports_multiple_connections?: boolean;
3238
+ }
3239
+ //#endregion
3240
+ //#region src/pipes/interfaces/create-data-integration-credential-options.interface.d.ts
3241
+ interface CreateDataIntegrationCredentialOptions extends DataIntegrationsVendCredentialsRequest {
3242
+ /** The identifier of the integration. */
3243
+ slug: string;
3074
3244
  }
3075
3245
  //#endregion
3076
- //#region src/pipes/interfaces/data-integration-credentials-type.interface.d.ts
3077
- declare const DataIntegrationCredentialsType: {
3246
+ //#region src/pipes/interfaces/data-integration-credentials-input-type.interface.d.ts
3247
+ declare const DataIntegrationCredentialsInputType: {
3078
3248
  readonly Custom: "custom";
3079
3249
  readonly Organization: "organization";
3080
3250
  };
3081
- type DataIntegrationCredentialsType = (typeof DataIntegrationCredentialsType)[keyof typeof DataIntegrationCredentialsType];
3251
+ type DataIntegrationCredentialsInputType = (typeof DataIntegrationCredentialsInputType)[keyof typeof DataIntegrationCredentialsInputType];
3082
3252
  //#endregion
3083
- //#region src/pipes/interfaces/data-integration-credentials-dto.interface.d.ts
3084
- interface DataIntegrationCredentialsDto {
3253
+ //#region src/pipes/interfaces/data-integration-credentials-input.interface.d.ts
3254
+ interface DataIntegrationCredentialsInput {
3085
3255
  /** The credentials type. `custom` uses your own OAuth app credentials; `organization` has each organization supply its own credentials (configured per-organization). */
3086
- type: DataIntegrationCredentialsType;
3256
+ type: DataIntegrationCredentialsInputType;
3087
3257
  /** OAuth client ID for the provider app. Required when `type` is `custom`; omit for `organization`. */
3088
3258
  clientId?: string;
3089
3259
  /** OAuth client secret for the provider app. Required when `type` is `custom`; omit for `organization`. */
3090
3260
  clientSecret?: string;
3091
3261
  }
3092
- interface DataIntegrationCredentialsDtoResponse {
3093
- type: DataIntegrationCredentialsType;
3262
+ interface DataIntegrationCredentialsInputResponse {
3263
+ type: DataIntegrationCredentialsInputType;
3094
3264
  client_id?: string;
3095
3265
  client_secret?: string;
3096
3266
  }
@@ -3106,11 +3276,11 @@ type CustomProviderDefinitionAuthenticateVia = (typeof CustomProviderDefinitionA
3106
3276
  interface CustomProviderDefinition {
3107
3277
  /** A descriptive name for the custom provider. */
3108
3278
  name: string;
3109
- /** The provider's OAuth authorization endpoint. */
3110
- authorizationUrl: string;
3111
- /** The provider's OAuth token endpoint. */
3112
- tokenUrl: string;
3113
- /** The endpoint used to refresh tokens, if different from the token endpoint. */
3279
+ /** The provider's OAuth authorization endpoint. Required for OAuth providers; omit for `api_key` providers. Must be a static URL: `${config.…}` placeholders are resolved against a provider's declared config fields, which custom providers cannot declare. */
3280
+ authorizationUrl?: string;
3281
+ /** The provider's OAuth token endpoint. Required for OAuth and `client_credentials` providers; omit for `api_key` providers. Must be a static URL: `${config.…}` placeholders are resolved against a provider's declared config fields, which custom providers cannot declare. */
3282
+ tokenUrl?: string;
3283
+ /** The endpoint used to refresh tokens, if different from the token endpoint. Must be a static URL, like the other endpoints. */
3114
3284
  refreshTokenUrl?: string | null;
3115
3285
  /** Whether PKCE is used during the authorization code flow. Defaults to `true`. */
3116
3286
  pkceEnabled?: boolean;
@@ -3129,8 +3299,8 @@ interface CustomProviderDefinition {
3129
3299
  }
3130
3300
  interface CustomProviderDefinitionResponse {
3131
3301
  name: string;
3132
- authorization_url: string;
3133
- token_url: string;
3302
+ authorization_url?: string;
3303
+ token_url?: string;
3134
3304
  refresh_token_url?: string | null;
3135
3305
  pkce_enabled?: boolean;
3136
3306
  request_scope_separator?: string;
@@ -3141,21 +3311,82 @@ interface CustomProviderDefinitionResponse {
3141
3311
  authenticate_via?: CustomProviderDefinitionAuthenticateVia;
3142
3312
  }
3143
3313
  //#endregion
3144
- //#region src/pipes/interfaces/create-data-integration-options.interface.d.ts
3145
- interface CreateDataIntegrationOptions {
3314
+ //#region src/pipes/interfaces/create-data-integration-ownership.interface.d.ts
3315
+ declare const CreateDataIntegrationOwnership: {
3316
+ readonly User: "user";
3317
+ readonly Organization: "organization";
3318
+ };
3319
+ type CreateDataIntegrationOwnership = (typeof CreateDataIntegrationOwnership)[keyof typeof CreateDataIntegrationOwnership];
3320
+ //#endregion
3321
+ //#region src/pipes/interfaces/create-data-integration.interface.d.ts
3322
+ interface CreateDataIntegration {
3146
3323
  /** The provider to create a Data Integration for. For a built-in provider use its slug (e.g. `github`, `slack`). For a custom provider, this is the new provider slug and `custom_provider` must be supplied. A custom provider slug cannot shadow an existing global provider slug. */
3147
3324
  provider: string;
3325
+ /** Who owns the Data Integration. `user` (the default) creates the integration users connect their own accounts to; `organization` creates the root organizations connect to. Ownership is fixed at creation, and one integration of each ownership may exist per provider. Independent of `credentials.type`. */
3326
+ ownership?: CreateDataIntegrationOwnership;
3148
3327
  /** An optional description of the Data Integration. */
3149
3328
  description?: string | null;
3150
3329
  /** Whether the Data Integration is enabled. Defaults to `false`. */
3151
3330
  enabled?: boolean;
3152
3331
  /** The OAuth scopes to request for the Data Integration. Defaults to the provider's configured scopes when omitted. */
3153
3332
  scopes?: string[] | null;
3154
- /** The credentials to configure for the Data Integration. Required for both built-in and custom providers. */
3155
- credentials?: DataIntegrationCredentialsDto;
3333
+ /** How accounts authenticate with the provider. Defaults to `["oauth"]`. Use `["api_key"]` to declare an API key integration; `credentials` is then not required and keys are supplied per-tenant (optionally via `api_key` on this request). Use `["client_credentials"]` to declare a client-credentials integration; `credentials` is likewise not required and client credentials are supplied per-tenant. */
3334
+ authMethods?: CreateDataIntegrationAuthMethods[];
3335
+ /** Provider-specific config values (e.g. a Snowflake `account`), keyed by the config field. Only fields the built-in provider declares are accepted. */
3336
+ config?: Record<string, string>;
3337
+ /** The OAuth credentials to configure for the Data Integration. Required for OAuth integrations; omit when `auth_methods` is `["api_key"]`. */
3338
+ credentials?: DataIntegrationCredentialsInput;
3339
+ /** An optional API key to install for the first tenant on an `api_key` integration. Omit to declare a keyless integration; tenants can be added later via the per-installation API key path. */
3340
+ apiKey?: ApiKeyInstallation;
3156
3341
  /** The OAuth definition for a custom provider. Supply this to define a custom provider; omit it to create an integration for a built-in provider. */
3157
3342
  customProvider?: CustomProviderDefinition;
3158
3343
  }
3344
+ interface CreateDataIntegrationResponse {
3345
+ provider: string;
3346
+ ownership?: CreateDataIntegrationOwnership;
3347
+ description?: string | null;
3348
+ enabled?: boolean;
3349
+ scopes?: string[] | null;
3350
+ auth_methods?: CreateDataIntegrationAuthMethods[];
3351
+ config?: Record<string, string>;
3352
+ credentials?: DataIntegrationCredentialsInputResponse;
3353
+ api_key?: ApiKeyInstallationResponse;
3354
+ custom_provider?: CustomProviderDefinitionResponse;
3355
+ }
3356
+ //#endregion
3357
+ //#region src/pipes/interfaces/create-data-integration-options.interface.d.ts
3358
+ interface CreateDataIntegrationOptions extends CreateDataIntegration {
3359
+ provider: string;
3360
+ }
3361
+ //#endregion
3362
+ //#region src/pipes/interfaces/organization-connected-account-state.interface.d.ts
3363
+ declare const OrganizationConnectedAccountState: {
3364
+ readonly Connected: "connected";
3365
+ readonly NeedsReauthorization: "needs_reauthorization";
3366
+ };
3367
+ type OrganizationConnectedAccountState = (typeof OrganizationConnectedAccountState)[keyof typeof OrganizationConnectedAccountState];
3368
+ //#endregion
3369
+ //#region src/pipes/interfaces/create-organization-connected-account-options.interface.d.ts
3370
+ interface CreateOrganizationConnectedAccountOptions {
3371
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. */
3372
+ organizationId: string;
3373
+ /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
3374
+ slug: string;
3375
+ /** The OAuth access token for the connected account. */
3376
+ accessToken?: string;
3377
+ /** The OAuth refresh token for the connected account. */
3378
+ refreshToken?: string;
3379
+ /** The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire. */
3380
+ expiresAt?: Date;
3381
+ /** The OAuth scopes granted for this connection. */
3382
+ scopes?: string[];
3383
+ /** Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided. */
3384
+ state?: OrganizationConnectedAccountState;
3385
+ /** The [User](https://workos.com/docs/reference/authkit/user) identifier of the organization member on whose behalf the connected account is being imported or updated. The user must be an active member of the organization. */
3386
+ userId: string;
3387
+ /** Explicitly create a connection. Omit for compatibility behavior. Until additional connections are available, `add` returns 404 `multiple_connections_unavailable` if the owner already has a connection. */
3388
+ connectionIntent?: 'add';
3389
+ }
3159
3390
  //#endregion
3160
3391
  //#region src/pipes/interfaces/create-user-connected-account-options.interface.d.ts
3161
3392
  interface CreateUserConnectedAccountOptions {
@@ -3174,7 +3405,9 @@ interface CreateUserConnectedAccountOptions {
3174
3405
  /** The OAuth scopes granted for this connection. */
3175
3406
  scopes?: string[];
3176
3407
  /** Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided. */
3177
- state?: ConnectedAccountState;
3408
+ state?: ConnectedAccountInputState;
3409
+ /** Explicitly create a connection. Omit for compatibility behavior. Until additional connections are available, `add` returns 404 `multiple_connections_unavailable` if the owner already has a connection. */
3410
+ connectionIntent?: 'add';
3178
3411
  }
3179
3412
  //#endregion
3180
3413
  //#region src/pipes/interfaces/data-integration-access-token-response-access-token.interface.d.ts
@@ -3215,6 +3448,14 @@ type DataIntegrationAccessTokenResponseWire = {
3215
3448
  error: 'needs_reauthorization' | 'not_installed';
3216
3449
  };
3217
3450
  //#endregion
3451
+ //#region src/pipes/interfaces/data-integration-auth-methods.interface.d.ts
3452
+ declare const DataIntegrationAuthMethods: {
3453
+ readonly OAuth: "oauth";
3454
+ readonly ApiKey: "api_key";
3455
+ readonly ClientCredentials: "client_credentials";
3456
+ };
3457
+ type DataIntegrationAuthMethods = (typeof DataIntegrationAuthMethods)[keyof typeof DataIntegrationAuthMethods];
3458
+ //#endregion
3218
3459
  //#region src/pipes/interfaces/data-integration-authorize-url-response.interface.d.ts
3219
3460
  interface DataIntegrationAuthorizeUrlResponse {
3220
3461
  /** The OAuth authorization URL to redirect the user to. */
@@ -3247,30 +3488,69 @@ interface DataIntegrationCredentialResponse {
3247
3488
  redacted_client_secret: string | null;
3248
3489
  }
3249
3490
  //#endregion
3250
- //#region src/pipes/interfaces/data-integration-credentials-response-credential.interface.d.ts
3251
- /** The credential object containing the vended secret. */
3252
- interface DataIntegrationCredentialsResponseCredential {
3253
- /** Distinguishes the credential object. */
3491
+ //#region src/pipes/interfaces/data-integration-vended-credential.interface.d.ts
3492
+ /**
3493
+ * A vended credential, discriminated by its authentication method.
3494
+ * `config` contains provider-declared, non-secret snapshot values with live
3495
+ * defaults. It is optional for compatibility with older API responses.
3496
+ */
3497
+ type DataIntegrationVendedCredential = {
3254
3498
  object: 'credential';
3255
- /** The authentication method for this credential. Additional values may be added in the future; handle unknown values gracefully. */
3256
3499
  authMethod: 'oauth';
3257
- /** The OAuth access token. */
3258
3500
  value: string;
3259
- /** The ISO-8601 formatted timestamp indicating when the credential expires. */
3501
+ config?: Record<string, string>;
3260
3502
  expiresAt: string | null;
3261
- /** The scopes granted to the access token. */
3262
3503
  scopes: string[];
3263
- /** If the integration has requested scopes that aren't present on the access token, they're listed here. */
3264
3504
  missingScopes: string[];
3265
- }
3266
- interface DataIntegrationCredentialsResponseCredentialResponse {
3505
+ metadata?: undefined;
3506
+ } | {
3507
+ object: 'credential';
3508
+ authMethod: 'api_key';
3509
+ value: string;
3510
+ config?: Record<string, string>;
3511
+ expiresAt?: undefined;
3512
+ scopes?: undefined;
3513
+ missingScopes?: undefined;
3514
+ metadata?: undefined;
3515
+ } | {
3516
+ object: 'credential';
3517
+ authMethod: 'client_credentials';
3518
+ value: string;
3519
+ config?: Record<string, string>;
3520
+ expiresAt: string | null;
3521
+ scopes: string[];
3522
+ missingScopes: string[];
3523
+ /** Non-sensitive provider token response fields, such as an instance URL. */
3524
+ metadata: Record<string, unknown>;
3525
+ };
3526
+ type DataIntegrationVendedCredentialResponse = {
3267
3527
  object: 'credential';
3268
3528
  auth_method: 'oauth';
3269
3529
  value: string;
3530
+ config?: Record<string, string>;
3270
3531
  expires_at: string | null;
3271
3532
  scopes: string[];
3272
3533
  missing_scopes: string[];
3273
- }
3534
+ metadata?: undefined;
3535
+ } | {
3536
+ object: 'credential';
3537
+ auth_method: 'api_key';
3538
+ value: string;
3539
+ config?: Record<string, string>;
3540
+ expires_at?: undefined;
3541
+ scopes?: undefined;
3542
+ missing_scopes?: undefined;
3543
+ metadata?: undefined;
3544
+ } | {
3545
+ object: 'credential';
3546
+ auth_method: 'client_credentials';
3547
+ value: string;
3548
+ config?: Record<string, string>;
3549
+ expires_at: string | null;
3550
+ scopes: string[];
3551
+ missing_scopes: string[];
3552
+ metadata: Record<string, unknown>;
3553
+ };
3274
3554
  //#endregion
3275
3555
  //#region src/pipes/interfaces/data-integration-credentials-response-error.interface.d.ts
3276
3556
  declare const DataIntegrationCredentialsResponseError: {
@@ -3279,6 +3559,26 @@ declare const DataIntegrationCredentialsResponseError: {
3279
3559
  };
3280
3560
  type DataIntegrationCredentialsResponseError = (typeof DataIntegrationCredentialsResponseError)[keyof typeof DataIntegrationCredentialsResponseError];
3281
3561
  //#endregion
3562
+ //#region src/pipes/interfaces/data-integration-credentials-response.interface.d.ts
3563
+ type DataIntegrationCredentialsResponse = {
3564
+ active: true;
3565
+ credential: DataIntegrationVendedCredential;
3566
+ error?: undefined;
3567
+ } | {
3568
+ active: false;
3569
+ error: DataIntegrationCredentialsResponseError;
3570
+ credential?: undefined;
3571
+ };
3572
+ type DataIntegrationCredentialsResponseWire = {
3573
+ active: true;
3574
+ credential: DataIntegrationVendedCredentialResponse;
3575
+ error?: undefined;
3576
+ } | {
3577
+ active: false;
3578
+ error: DataIntegrationCredentialsResponseError;
3579
+ credential?: undefined;
3580
+ };
3581
+ //#endregion
3282
3582
  //#region src/pipes/interfaces/data-integration-custom-provider-authenticate-via.interface.d.ts
3283
3583
  declare const DataIntegrationCustomProviderAuthenticateVia: {
3284
3584
  readonly RequestBody: "request_body";
@@ -3325,6 +3625,47 @@ interface DataIntegrationCustomProviderResponse {
3325
3625
  authenticate_via: DataIntegrationCustomProviderAuthenticateVia;
3326
3626
  }
3327
3627
  //#endregion
3628
+ //#region src/pipes/interfaces/data-integration-installation-connection-role.interface.d.ts
3629
+ declare const DataIntegrationInstallationConnectionRole: {
3630
+ readonly Compatibility: "compatibility";
3631
+ readonly Standard: "standard";
3632
+ };
3633
+ type DataIntegrationInstallationConnectionRole = (typeof DataIntegrationInstallationConnectionRole)[keyof typeof DataIntegrationInstallationConnectionRole];
3634
+ //#endregion
3635
+ //#region src/pipes/interfaces/data-integration-installation.interface.d.ts
3636
+ interface DataIntegrationInstallation {
3637
+ /** Unique identifier of the installation. */
3638
+ id: string;
3639
+ /** Whether this is the compatibility connection visible to undeclared clients or a standard connection for plural-aware clients. */
3640
+ connectionRole: DataIntegrationInstallationConnectionRole;
3641
+ /** A best-effort provider account identifier used for correlation, not connection selection. */
3642
+ accountIdentifier: string | null;
3643
+ /** A mutable, non-unique display name for this connection. */
3644
+ accountDisplayName: string | null;
3645
+ /** The User the API key was installed for. Null on an `organization`-owned integration, whose installations belong to the organization. */
3646
+ userId: string | null;
3647
+ /** The Organization the installation is scoped to (or owned by, on an `organization`-owned integration), or null when unscoped. */
3648
+ organizationId: string | null;
3649
+ /** The last four characters of the stored API key. The full key is never returned. */
3650
+ apiKeyLast4: string | null;
3651
+ }
3652
+ interface DataIntegrationInstallationResponse {
3653
+ id: string;
3654
+ connection_role: DataIntegrationInstallationConnectionRole;
3655
+ account_identifier: string | null;
3656
+ account_display_name: string | null;
3657
+ user_id: string | null;
3658
+ organization_id: string | null;
3659
+ api_key_last_4: string | null;
3660
+ }
3661
+ //#endregion
3662
+ //#region src/pipes/interfaces/data-integration-ownership.interface.d.ts
3663
+ declare const DataIntegrationOwnership: {
3664
+ readonly User: "user";
3665
+ readonly Organization: "organization";
3666
+ };
3667
+ type DataIntegrationOwnership = (typeof DataIntegrationOwnership)[keyof typeof DataIntegrationOwnership];
3668
+ //#endregion
3328
3669
  //#region src/pipes/interfaces/data-integration-state.interface.d.ts
3329
3670
  declare const DataIntegrationState: {
3330
3671
  readonly Valid: "valid";
@@ -3343,6 +3684,8 @@ interface DataIntegration {
3343
3684
  slug: string;
3344
3685
  /** The integration type derived from the provider. */
3345
3686
  integrationType: string;
3687
+ /** Who owns the Data Integration: `user` when users connect their own accounts, `organization` when organizations connect. Fixed at creation. */
3688
+ ownership?: DataIntegrationOwnership;
3346
3689
  /** An optional description of the Data Integration. */
3347
3690
  description: string | null;
3348
3691
  /** Whether the Data Integration is enabled. */
@@ -3351,10 +3694,16 @@ interface DataIntegration {
3351
3694
  state: DataIntegrationState;
3352
3695
  /** The OAuth scopes configured for the Data Integration. `null` when the provider's configured scopes are used. */
3353
3696
  scopes: string[] | null;
3354
- /** The OAuth redirect URI to register with the provider when configuring the custom application. */
3697
+ /** The OAuth redirect URI to register with the provider when configuring the custom application. Empty for `api_key` and `client_credentials` integrations, which run no authorization redirect. */
3355
3698
  redirectUri: string;
3356
- /** The credentials configured for the Data Integration. */
3357
- credentials: DataIntegrationCredential;
3699
+ /** How accounts authenticate with the provider for this Data Integration. */
3700
+ authMethods?: DataIntegrationAuthMethods[];
3701
+ /** The integration-level OAuth app credentials. `null` for `api_key` and `client_credentials` integrations, which hold no integration-level credentials (secrets are installed per-tenant). */
3702
+ credentials: DataIntegrationCredential | null;
3703
+ /** The tenant installation created when an API key was supplied at creation time; `null` otherwise. Not populated on list/get responses. */
3704
+ installation?: DataIntegrationInstallation | null;
3705
+ /** Provider-specific config values set on the Data Integration (e.g. a Snowflake `account`), keyed by config field. Only fields the provider declares are accepted. */
3706
+ config?: Record<string, string>;
3358
3707
  /** The OAuth definition when this is a custom provider; `null` for built-in providers. */
3359
3708
  customProvider: DataIntegrationCustomProvider | null;
3360
3709
  /** An ISO 8601 timestamp. */
@@ -3367,21 +3716,54 @@ interface DataIntegrationResponse {
3367
3716
  id: string;
3368
3717
  slug: string;
3369
3718
  integration_type: string;
3719
+ ownership?: DataIntegrationOwnership;
3370
3720
  description: string | null;
3371
3721
  enabled: boolean;
3372
3722
  state: DataIntegrationState;
3373
3723
  scopes: string[] | null;
3374
3724
  redirect_uri: string;
3375
- credentials: DataIntegrationCredentialResponse;
3725
+ auth_methods?: DataIntegrationAuthMethods[];
3726
+ credentials: DataIntegrationCredentialResponse | null;
3727
+ installation?: DataIntegrationInstallationResponse | null;
3728
+ config?: Record<string, string>;
3376
3729
  custom_provider: DataIntegrationCustomProviderResponse | null;
3377
3730
  created_at: string;
3378
3731
  updated_at: string;
3379
3732
  }
3380
3733
  //#endregion
3734
+ //#region src/pipes/interfaces/data-integrations-get-user-token-request-connection-owner.interface.d.ts
3735
+ declare const DataIntegrationsGetUserTokenRequestConnectionOwner: {
3736
+ readonly User: "user";
3737
+ readonly Organization: "organization";
3738
+ };
3739
+ type DataIntegrationsGetUserTokenRequestConnectionOwner = (typeof DataIntegrationsGetUserTokenRequestConnectionOwner)[keyof typeof DataIntegrationsGetUserTokenRequestConnectionOwner];
3740
+ //#endregion
3741
+ //#region src/pipes/interfaces/data-integrations-get-user-token-request.interface.d.ts
3742
+ interface DataIntegrationsGetUserTokenRequest {
3743
+ /** A [User](https://workos.com/docs/reference/authkit/user) identifier. When `connection_owner` is `organization`, this is the user the credentials are vended on behalf of; they must be an active member of the organization. */
3744
+ userId: string;
3745
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`. */
3746
+ organizationId?: string | null;
3747
+ /** A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select a specific connection when the user has several for this provider. */
3748
+ connectedAccountId?: string;
3749
+ /** Which connection to vend from. `user` (the default) vends the user's own connection and requires `user_id`. `organization` vends the organization's shared connection and requires `organization_id`. */
3750
+ connectionOwner?: DataIntegrationsGetUserTokenRequestConnectionOwner;
3751
+ /** Set to `true` to use the plural connection contract. If no `connected_account_id` is supplied and several connections match, the request returns `account_selection_required`. When omitted or `false`, only the compatibility connection is considered. */
3752
+ supportsMultipleConnections?: boolean;
3753
+ }
3754
+ interface DataIntegrationsGetUserTokenRequestResponse {
3755
+ user_id: string;
3756
+ organization_id?: string | null;
3757
+ connected_account_id?: string;
3758
+ connection_owner?: DataIntegrationsGetUserTokenRequestConnectionOwner;
3759
+ supports_multiple_connections?: boolean;
3760
+ }
3761
+ //#endregion
3381
3762
  //#region src/pipes/interfaces/data-integrations-list-response-data-auth-methods.interface.d.ts
3382
3763
  declare const DataIntegrationsListResponseDataAuthMethods: {
3383
3764
  readonly OAuth: "oauth";
3384
3765
  readonly ApiKey: "api_key";
3766
+ readonly ClientCredentials: "client_credentials";
3385
3767
  };
3386
3768
  type DataIntegrationsListResponseDataAuthMethods = (typeof DataIntegrationsListResponseDataAuthMethods)[keyof typeof DataIntegrationsListResponseDataAuthMethods];
3387
3769
  //#endregion
@@ -3389,9 +3771,17 @@ type DataIntegrationsListResponseDataAuthMethods = (typeof DataIntegrationsListR
3389
3771
  declare const DataIntegrationsListResponseDataConnectedAccountAuthMethod: {
3390
3772
  readonly OAuth: "oauth";
3391
3773
  readonly ApiKey: "api_key";
3774
+ readonly ClientCredentials: "client_credentials";
3392
3775
  };
3393
3776
  type DataIntegrationsListResponseDataConnectedAccountAuthMethod = (typeof DataIntegrationsListResponseDataConnectedAccountAuthMethod)[keyof typeof DataIntegrationsListResponseDataConnectedAccountAuthMethod];
3394
3777
  //#endregion
3778
+ //#region src/pipes/interfaces/data-integrations-list-response-data-connected-account-connection-role.interface.d.ts
3779
+ declare const DataIntegrationsListResponseDataConnectedAccountConnectionRole: {
3780
+ readonly Compatibility: "compatibility";
3781
+ readonly Standard: "standard";
3782
+ };
3783
+ type DataIntegrationsListResponseDataConnectedAccountConnectionRole = (typeof DataIntegrationsListResponseDataConnectedAccountConnectionRole)[keyof typeof DataIntegrationsListResponseDataConnectedAccountConnectionRole];
3784
+ //#endregion
3395
3785
  //#region src/pipes/interfaces/data-integrations-list-response-data-connected-account-state.interface.d.ts
3396
3786
  declare const DataIntegrationsListResponseDataConnectedAccountState: {
3397
3787
  readonly Connected: "connected";
@@ -3406,16 +3796,28 @@ interface DataIntegrationsListResponseDataConnectedAccount {
3406
3796
  object: 'connected_account';
3407
3797
  /** The unique identifier of the connected account. */
3408
3798
  id: string;
3799
+ /** Whether this row is the compatibility connection visible to undeclared clients or a standard peer for plural-aware clients. The role does not indicate preference or creation order. */
3800
+ connectionRole?: DataIntegrationsListResponseDataConnectedAccountConnectionRole;
3801
+ /** A best-effort identifier for the provider account this connection points at. It is correlation metadata, not the connection identifier or a selector. */
3802
+ accountIdentifier?: string | null;
3803
+ /** A mutable, non-unique display name for the provider account connection. */
3804
+ accountDisplayName?: string | null;
3409
3805
  /** The [User](https://workos.com/docs/reference/authkit/user) identifier associated with this connection. */
3410
3806
  userId: string | null;
3411
3807
  /** The [Organization](https://workos.com/docs/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization. */
3412
3808
  organizationId: string | null;
3413
3809
  /** The OAuth scopes granted for this connection. */
3414
3810
  scopes: string[];
3415
- /** The authentication method used for this connection (`oauth` or `api_key`). Defaults to `oauth` if absent. */
3811
+ /** The authentication method used for this connection (`oauth`, `api_key`, or `client_credentials`). Defaults to `oauth` if absent. */
3416
3812
  authMethod?: DataIntegrationsListResponseDataConnectedAccountAuthMethod;
3417
3813
  /** The last four characters of the API key, or `null` for OAuth connections. */
3418
3814
  apiKeyLast4?: string | null;
3815
+ /** The client ID supplied for this connection. Only present when `auth_method` is `client_credentials`. */
3816
+ clientId?: string | null;
3817
+ /** The last four characters of the client secret supplied for this connection, or `null` when it can't be read. Only present when `auth_method` is `client_credentials`. */
3818
+ clientSecretLast4?: string | null;
3819
+ /** The connection-level configuration values stored for this connection — the fields the provider declares at `installation` scope, excluding secret and undeclared fields. Returned for every authentication method; empty when no stored values can be disclosed. */
3820
+ config?: Record<string, string>;
3419
3821
  /**
3420
3822
  * The state of the connected account:
3421
3823
  * - `connected`: The connection is active and tokens are valid.
@@ -3436,17 +3838,30 @@ interface DataIntegrationsListResponseDataConnectedAccount {
3436
3838
  interface DataIntegrationsListResponseDataConnectedAccountResponse {
3437
3839
  object: 'connected_account';
3438
3840
  id: string;
3841
+ connection_role?: DataIntegrationsListResponseDataConnectedAccountConnectionRole;
3842
+ account_identifier?: string | null;
3843
+ account_display_name?: string | null;
3439
3844
  user_id: string | null;
3440
3845
  organization_id: string | null;
3441
3846
  scopes: string[];
3442
3847
  auth_method?: DataIntegrationsListResponseDataConnectedAccountAuthMethod;
3443
3848
  api_key_last_4?: string | null;
3849
+ client_id?: string | null;
3850
+ client_secret_last_4?: string | null;
3851
+ config?: Record<string, string>;
3444
3852
  state: DataIntegrationsListResponseDataConnectedAccountState;
3445
3853
  created_at: string;
3446
3854
  updated_at: string;
3447
3855
  userland_user_id: string | null;
3448
3856
  }
3449
3857
  //#endregion
3858
+ //#region src/pipes/interfaces/data-integrations-list-response-data-connection-owner.interface.d.ts
3859
+ declare const DataIntegrationsListResponseDataConnectionOwner: {
3860
+ readonly User: "user";
3861
+ readonly Organization: "organization";
3862
+ };
3863
+ type DataIntegrationsListResponseDataConnectionOwner = (typeof DataIntegrationsListResponseDataConnectionOwner)[keyof typeof DataIntegrationsListResponseDataConnectionOwner];
3864
+ //#endregion
3450
3865
  //#region src/pipes/interfaces/data-integrations-list-response-data-ownership.interface.d.ts
3451
3866
  declare const DataIntegrationsListResponseDataOwnership: {
3452
3867
  readonly UserlandUser: "userland_user";
@@ -3472,16 +3887,23 @@ interface DataIntegrationsListResponseData {
3472
3887
  credentialsType: string;
3473
3888
  /** The OAuth scopes configured for this provider, or `null` if none are configured. */
3474
3889
  scopes: string[] | null;
3475
- /** The authentication methods supported by this provider (`oauth`, `api_key`, or both). Defaults to `["oauth"]` if absent. */
3890
+ /** The authentication methods supported by this provider (`oauth`, `api_key`, `client_credentials`, or a combination). Defaults to `["oauth"]` if absent. */
3476
3891
  authMethods?: DataIntegrationsListResponseDataAuthMethods[];
3477
- /** Whether the provider is owned by a user or organization. */
3892
+ /** Who owns connections made through this provider: `user` for connections owned by individual users, or `organization` for a connection shared by every member of the organization. A provider row can exist before any connected account does. */
3893
+ connectionOwner?: DataIntegrationsListResponseDataConnectionOwner;
3894
+ /**
3895
+ * Use `connection_owner` instead. Legacy spelling of the same value: `userland_user` corresponds to `connection_owner: "user"` and `organization` to `connection_owner: "organization"`.
3896
+ * @deprecated
3897
+ */
3478
3898
  ownership: DataIntegrationsListResponseDataOwnership;
3479
3899
  /** The timestamp when the provider was created. */
3480
3900
  createdAt: string;
3481
3901
  /** The timestamp when the provider was last updated. */
3482
3902
  updatedAt: string;
3483
- /** The user's [connected account](https://workos.com/docs/reference/pipes/connected-account) for this provider, or `null` if the user has not connected. */
3903
+ /** The user's compatibility [connected account](https://workos.com/docs/reference/pipes/connected-account) for this provider, or `null` when the compatibility slot is empty. This legacy field never selects a standard connection. */
3484
3904
  connectedAccount: DataIntegrationsListResponseDataConnectedAccount | null;
3905
+ /** The user's connected accounts for this provider in the requested ownership context. This contains only the compatibility connection unless `supports_multiple_connections` is `true`. */
3906
+ connectedAccounts?: DataIntegrationsListResponseDataConnectedAccount[];
3485
3907
  }
3486
3908
  interface DataIntegrationsListResponseDataResponse {
3487
3909
  object: 'data_provider';
@@ -3493,17 +3915,19 @@ interface DataIntegrationsListResponseDataResponse {
3493
3915
  credentials_type: string;
3494
3916
  scopes: string[] | null;
3495
3917
  auth_methods?: DataIntegrationsListResponseDataAuthMethods[];
3918
+ connection_owner?: DataIntegrationsListResponseDataConnectionOwner;
3496
3919
  ownership: DataIntegrationsListResponseDataOwnership;
3497
3920
  created_at: string;
3498
3921
  updated_at: string;
3499
3922
  connected_account: DataIntegrationsListResponseDataConnectedAccountResponse | null;
3923
+ connected_accounts?: DataIntegrationsListResponseDataConnectedAccountResponse[];
3500
3924
  }
3501
3925
  //#endregion
3502
3926
  //#region src/pipes/interfaces/data-integrations-list-response.interface.d.ts
3503
3927
  interface DataIntegrationsListResponse {
3504
3928
  /** Indicates this is a list response. */
3505
3929
  object: 'list';
3506
- /** A list of [providers](https://workos.com/docs/reference/pipes/provider), each including a [`connected_account`](https://workos.com/docs/reference/pipes/connected-account) field with the user's connection status. */
3930
+ /** A list of [providers](https://workos.com/docs/reference/pipes/provider), each including the legacy `connected_account` field and the additive `connected_accounts` collection. */
3507
3931
  data: DataIntegrationsListResponseData[];
3508
3932
  }
3509
3933
  interface DataIntegrationsListResponseWire {
@@ -3511,12 +3935,98 @@ interface DataIntegrationsListResponseWire {
3511
3935
  data: DataIntegrationsListResponseDataResponse[];
3512
3936
  }
3513
3937
  //#endregion
3938
+ //#region src/pipes/interfaces/data-integrations-upsert-api-key-request-connection-owner.interface.d.ts
3939
+ declare const DataIntegrationsUpsertApiKeyRequestConnectionOwner: {
3940
+ readonly User: "user";
3941
+ readonly Organization: "organization";
3942
+ };
3943
+ type DataIntegrationsUpsertApiKeyRequestConnectionOwner = (typeof DataIntegrationsUpsertApiKeyRequestConnectionOwner)[keyof typeof DataIntegrationsUpsertApiKeyRequestConnectionOwner];
3944
+ //#endregion
3945
+ //#region src/pipes/interfaces/data-integrations-upsert-api-key-request.interface.d.ts
3946
+ interface DataIntegrationsUpsertApiKeyRequest {
3947
+ /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
3948
+ userId: string;
3949
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`. */
3950
+ organizationId?: string;
3951
+ /** A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to rotate a specific existing connection. */
3952
+ connectedAccountId?: string;
3953
+ /** Reauthorize the named connected account. Requires `connectedAccountId`; omit both to upsert the compatibility connection. Use POST to add a connection. */
3954
+ connectionIntent?: 'reauthorize';
3955
+ /** Whose connection to create or rotate. `user` (the default) addresses the connection owned by `user_id`. `organization` addresses the connection shared by every member of `organization_id`; `user_id` then identifies the member performing the request and must be an active member of the organization. */
3956
+ connectionOwner?: DataIntegrationsUpsertApiKeyRequestConnectionOwner;
3957
+ /** The API key secret to store for this integration. */
3958
+ secret: string;
3959
+ }
3960
+ interface DataIntegrationsUpsertApiKeyRequestResponse {
3961
+ user_id: string;
3962
+ organization_id?: string;
3963
+ connected_account_id?: string;
3964
+ connection_intent?: 'reauthorize';
3965
+ connection_owner?: DataIntegrationsUpsertApiKeyRequestConnectionOwner;
3966
+ secret: string;
3967
+ }
3968
+ //#endregion
3969
+ //#region src/pipes/interfaces/data-integrations-upsert-client-credentials-request-connection-owner.interface.d.ts
3970
+ declare const DataIntegrationsUpsertClientCredentialsRequestConnectionOwner: {
3971
+ readonly User: "user";
3972
+ readonly Organization: "organization";
3973
+ };
3974
+ type DataIntegrationsUpsertClientCredentialsRequestConnectionOwner = (typeof DataIntegrationsUpsertClientCredentialsRequestConnectionOwner)[keyof typeof DataIntegrationsUpsertClientCredentialsRequestConnectionOwner];
3975
+ //#endregion
3976
+ //#region src/pipes/interfaces/data-integrations-upsert-client-credentials-request.interface.d.ts
3977
+ interface DataIntegrationsUpsertClientCredentialsRequest {
3978
+ /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
3979
+ userId: string;
3980
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`. */
3981
+ organizationId?: string;
3982
+ /** A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to rotate a specific existing connection. */
3983
+ connectedAccountId?: string;
3984
+ /** Reauthorize the named connected account. Requires `connectedAccountId`; omit both to upsert the compatibility connection. Use POST to add a connection. */
3985
+ connectionIntent?: 'reauthorize';
3986
+ /** Whose connection to create or rotate. `user` (the default) addresses the connection owned by `user_id`. `organization` addresses the connection shared by every member of `organization_id`; `user_id` then identifies the member performing the request and must be an active member of the organization. */
3987
+ connectionOwner?: DataIntegrationsUpsertClientCredentialsRequestConnectionOwner;
3988
+ /** The OAuth client ID to store for this integration. */
3989
+ clientId: string;
3990
+ /** The OAuth client secret to store for this integration. */
3991
+ clientSecret: string;
3992
+ /** Provider-specific configuration values collected for this installation, keyed by the provider's config field descriptors. */
3993
+ config?: Record<string, string>;
3994
+ }
3995
+ interface DataIntegrationsUpsertClientCredentialsRequestResponse {
3996
+ user_id: string;
3997
+ organization_id?: string;
3998
+ connected_account_id?: string;
3999
+ connection_intent?: 'reauthorize';
4000
+ connection_owner?: DataIntegrationsUpsertClientCredentialsRequestConnectionOwner;
4001
+ client_id: string;
4002
+ client_secret: string;
4003
+ config?: Record<string, string>;
4004
+ }
4005
+ //#endregion
3514
4006
  //#region src/pipes/interfaces/delete-data-integration-options.interface.d.ts
3515
4007
  interface DeleteDataIntegrationOptions {
3516
4008
  /** The slug identifier of the data integration. */
3517
4009
  slug: string;
3518
4010
  }
3519
4011
  //#endregion
4012
+ //#region src/pipes/interfaces/delete-organization-connected-account-options.interface.d.ts
4013
+ interface DeleteOrganizationConnectedAccountOptions {
4014
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. */
4015
+ organizationId: string;
4016
+ /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
4017
+ slug: string;
4018
+ /** Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered. */
4019
+ supportsMultipleConnections?: boolean;
4020
+ /** A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to delete. */
4021
+ connectedAccountId?: string;
4022
+ }
4023
+ //#endregion
4024
+ //#region src/pipes/interfaces/delete-organization-data-integration-options.interface.d.ts
4025
+ interface DeleteOrganizationDataIntegrationOptions {
4026
+ /** The slug identifier of the data integration. */
4027
+ slug: string;
4028
+ }
4029
+ //#endregion
3520
4030
  //#region src/pipes/interfaces/delete-user-connected-account-options.interface.d.ts
3521
4031
  interface DeleteUserConnectedAccountOptions {
3522
4032
  /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
@@ -3525,16 +4035,16 @@ interface DeleteUserConnectedAccountOptions {
3525
4035
  slug: string;
3526
4036
  /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. */
3527
4037
  organizationId?: string;
4038
+ /** Set to `true` to use the plural connection contract. Defaults to the compatibility connection. */
4039
+ supportsMultipleConnections?: boolean;
4040
+ /** Select the connected account to delete. */
4041
+ connectedAccountId?: string;
3528
4042
  }
3529
4043
  //#endregion
3530
4044
  //#region src/pipes/interfaces/get-access-token-options.interface.d.ts
3531
- interface GetAccessTokenOptions {
4045
+ interface GetAccessTokenOptions extends DataIntegrationsGetUserTokenRequest {
3532
4046
  /** The identifier of the integration. */
3533
4047
  provider: string;
3534
- /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
3535
- userId: string;
3536
- /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. */
3537
- organizationId?: string | null;
3538
4048
  }
3539
4049
  //#endregion
3540
4050
  //#region src/pipes/interfaces/get-data-integration-options.interface.d.ts
@@ -3543,6 +4053,24 @@ interface GetDataIntegrationOptions {
3543
4053
  slug: string;
3544
4054
  }
3545
4055
  //#endregion
4056
+ //#region src/pipes/interfaces/get-organization-connected-account-options.interface.d.ts
4057
+ interface GetOrganizationConnectedAccountOptions {
4058
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. */
4059
+ organizationId: string;
4060
+ /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
4061
+ slug: string;
4062
+ /** Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered. */
4063
+ supportsMultipleConnections?: boolean;
4064
+ /** A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select a specific connection when the organization has several for this provider. */
4065
+ connectedAccountId?: string;
4066
+ }
4067
+ //#endregion
4068
+ //#region src/pipes/interfaces/get-organization-data-integration-options.interface.d.ts
4069
+ interface GetOrganizationDataIntegrationOptions {
4070
+ /** The slug identifier of the data integration. */
4071
+ slug: string;
4072
+ }
4073
+ //#endregion
3546
4074
  //#region src/pipes/interfaces/get-user-connected-account-options.interface.d.ts
3547
4075
  interface GetUserConnectedAccountOptions {
3548
4076
  /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
@@ -3551,6 +4079,31 @@ interface GetUserConnectedAccountOptions {
3551
4079
  slug: string;
3552
4080
  /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. */
3553
4081
  organizationId?: string;
4082
+ /** Set to `true` to use the plural connection contract. Defaults to the compatibility connection. */
4083
+ supportsMultipleConnections?: boolean;
4084
+ /** Select a specific connected account when the user has several for this provider. */
4085
+ connectedAccountId?: string;
4086
+ }
4087
+ //#endregion
4088
+ //#region src/pipes/interfaces/pipes-ownership.interface.d.ts
4089
+ declare const PipesOwnership: {
4090
+ readonly User: "user";
4091
+ readonly Organization: "organization";
4092
+ };
4093
+ type PipesOwnership = (typeof PipesOwnership)[keyof typeof PipesOwnership];
4094
+ //#endregion
4095
+ //#region src/pipes/interfaces/list-data-integrations-options.interface.d.ts
4096
+ interface ListDataIntegrationsOptions extends PaginationOptions {
4097
+ /** Filter integrations by who owns their connected accounts. */
4098
+ ownership?: PipesOwnership;
4099
+ }
4100
+ //#endregion
4101
+ //#region src/pipes/interfaces/list-organization-data-providers-options.interface.d.ts
4102
+ interface ListOrganizationDataProvidersOptions {
4103
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier to list providers and connected accounts for. */
4104
+ organizationId: string;
4105
+ /** Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered. */
4106
+ supportsMultipleConnections?: boolean;
3554
4107
  }
3555
4108
  //#endregion
3556
4109
  //#region src/pipes/interfaces/list-user-data-providers-options.interface.d.ts
@@ -3559,6 +4112,8 @@ interface ListUserDataProvidersOptions {
3559
4112
  userId: string;
3560
4113
  /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to filter connections for a specific organization. */
3561
4114
  organizationId?: string;
4115
+ /** Set to `true` to include all connected accounts rather than only the compatibility connection. */
4116
+ supportsMultipleConnections?: boolean;
3562
4117
  }
3563
4118
  //#endregion
3564
4119
  //#region src/pipes/interfaces/update-custom-provider-definition-authenticate-via.interface.d.ts
@@ -3572,11 +4127,11 @@ type UpdateCustomProviderDefinitionAuthenticateVia = (typeof UpdateCustomProvide
3572
4127
  interface UpdateCustomProviderDefinition {
3573
4128
  /** A descriptive name for the custom provider. */
3574
4129
  name?: string;
3575
- /** The provider's OAuth authorization endpoint. */
4130
+ /** The provider's OAuth authorization endpoint. Must be a static URL: `${config.…}` placeholders are resolved against a provider's declared config fields, which custom providers cannot declare. */
3576
4131
  authorizationUrl?: string;
3577
- /** The provider's OAuth token endpoint. */
4132
+ /** The provider's OAuth token endpoint. Must be a static URL: `${config.…}` placeholders are resolved against a provider's declared config fields, which custom providers cannot declare. */
3578
4133
  tokenUrl?: string;
3579
- /** The endpoint used to refresh tokens, if different from the token endpoint. */
4134
+ /** The endpoint used to refresh tokens, if different from the token endpoint. Must be a static URL, like the other endpoints. */
3580
4135
  refreshTokenUrl?: string | null;
3581
4136
  /** Whether PKCE is used during the authorization code flow. */
3582
4137
  pkceEnabled?: boolean;
@@ -3608,41 +4163,90 @@ interface UpdateCustomProviderDefinitionResponse {
3608
4163
  }
3609
4164
  //#endregion
3610
4165
  //#region src/pipes/interfaces/update-data-integration-api-key-options.interface.d.ts
3611
- interface UpdateDataIntegrationApiKeyOptions {
4166
+ interface UpdateDataIntegrationApiKeyOptions extends DataIntegrationsUpsertApiKeyRequest {
3612
4167
  /** The identifier of the integration. */
3613
4168
  slug: string;
3614
- /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
3615
- userId: string;
3616
- /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. */
3617
- organizationId?: string;
3618
- /** The API key secret to store for this integration. */
3619
- secret: string;
3620
4169
  }
3621
4170
  //#endregion
3622
- //#region src/pipes/interfaces/update-data-integration-options.interface.d.ts
3623
- interface UpdateDataIntegrationOptions {
3624
- /** The slug identifier of the data integration. */
4171
+ //#region src/pipes/interfaces/update-data-integration-client-credentials-options.interface.d.ts
4172
+ interface UpdateDataIntegrationClientCredentialsOptions extends DataIntegrationsUpsertClientCredentialsRequest {
4173
+ /** The identifier of the integration. */
3625
4174
  slug: string;
4175
+ }
4176
+ //#endregion
4177
+ //#region src/pipes/interfaces/update-data-integration.interface.d.ts
4178
+ interface UpdateDataIntegration {
3626
4179
  /** An optional description of the Data Integration. */
3627
4180
  description?: string | null;
3628
4181
  /** Whether the Data Integration is enabled. */
3629
4182
  enabled?: boolean;
3630
4183
  /** The OAuth scopes to request for the Data Integration. Pass `null` to reset to the provider's configured scopes. */
3631
4184
  scopes?: string[] | null;
3632
- /** New credentials for the Data Integration. When provided, rotates the stored client secret. */
3633
- credentials?: DataIntegrationCredentialsDto;
4185
+ /** New OAuth credentials for the Data Integration. When provided, rotates the stored client secret. Mutually exclusive with `api_key`. */
4186
+ credentials?: DataIntegrationCredentialsInput;
4187
+ /** An API key to install or rotate for a tenant on an `api_key` integration. Upserts the tenant installation identified by `user_id` (and optional `organization_id`). */
4188
+ apiKey?: ApiKeyInstallation;
3634
4189
  /** Updates to a custom provider's OAuth definition. Only valid for custom-provider integrations. */
3635
4190
  customProvider?: UpdateCustomProviderDefinition;
3636
4191
  }
4192
+ interface UpdateDataIntegrationResponse {
4193
+ description?: string | null;
4194
+ enabled?: boolean;
4195
+ scopes?: string[] | null;
4196
+ credentials?: DataIntegrationCredentialsInputResponse;
4197
+ api_key?: ApiKeyInstallationResponse;
4198
+ custom_provider?: UpdateCustomProviderDefinitionResponse;
4199
+ }
3637
4200
  //#endregion
3638
- //#region src/pipes/interfaces/update-user-connected-account-options.interface.d.ts
3639
- interface UpdateUserConnectedAccountOptions {
3640
- /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
3641
- userId: string;
3642
- /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
4201
+ //#region src/pipes/interfaces/update-data-integration-options.interface.d.ts
4202
+ interface UpdateDataIntegrationOptions extends UpdateDataIntegration {
4203
+ /** The slug identifier of the data integration. */
4204
+ slug: string;
4205
+ }
4206
+ //#endregion
4207
+ //#region src/pipes/interfaces/update-organization-connected-account-options.interface.d.ts
4208
+ interface UpdateOrganizationConnectedAccountOptions {
4209
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. */
4210
+ organizationId: string;
4211
+ /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
4212
+ slug: string;
4213
+ /** Accepted for compatibility; does not change update targeting. Supply `connectedAccountId` to select a connection. */
4214
+ supportsMultipleConnections?: boolean;
4215
+ /** A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to update. */
4216
+ connectedAccountId?: string;
4217
+ /** Set to `reauthorize` with `connectedAccountId` to update an exact connection. Omit both for compatibility behavior. */
4218
+ connectionIntent?: 'reauthorize';
4219
+ /** The OAuth access token for the connected account. */
4220
+ accessToken?: string;
4221
+ /** The OAuth refresh token for the connected account. */
4222
+ refreshToken?: string;
4223
+ /** The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire. */
4224
+ expiresAt?: Date;
4225
+ /** The OAuth scopes granted for this connection. */
4226
+ scopes?: string[];
4227
+ /** Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided. */
4228
+ state?: OrganizationConnectedAccountState;
4229
+ /** The [User](https://workos.com/docs/reference/authkit/user) identifier of the organization member on whose behalf the connected account is being imported or updated. The user must be an active member of the organization. */
4230
+ userId: string;
4231
+ }
4232
+ //#endregion
4233
+ //#region src/pipes/interfaces/update-organization-data-integration-options.interface.d.ts
4234
+ type UpdateOrganizationDataIntegrationOptions = UpdateDataIntegrationOptions;
4235
+ //#endregion
4236
+ //#region src/pipes/interfaces/update-user-connected-account-options.interface.d.ts
4237
+ interface UpdateUserConnectedAccountOptions {
4238
+ /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
4239
+ userId: string;
4240
+ /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
3643
4241
  slug: string;
3644
4242
  /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. */
3645
4243
  organizationId?: string;
4244
+ /** Accepted for compatibility; does not change update targeting. Supply `connectedAccountId` to select a connection. */
4245
+ supportsMultipleConnections?: boolean;
4246
+ /** Select the connected account to update. */
4247
+ connectedAccountId?: string;
4248
+ /** Set to `reauthorize` with `connectedAccountId` to update an exact connection. Omit both for compatibility behavior. */
4249
+ connectionIntent?: 'reauthorize';
3646
4250
  /** The OAuth access token for the connected account. */
3647
4251
  accessToken?: string;
3648
4252
  /** The OAuth refresh token for the connected account. */
@@ -3652,7 +4256,7 @@ interface UpdateUserConnectedAccountOptions {
3652
4256
  /** The OAuth scopes granted for this connection. */
3653
4257
  scopes?: string[];
3654
4258
  /** Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided. */
3655
- state?: ConnectedAccountState;
4259
+ state?: ConnectedAccountInputState;
3656
4260
  }
3657
4261
  //#endregion
3658
4262
  //#region src/vault/interfaces/key.interface.d.ts
@@ -4615,6 +5219,12 @@ interface WorkOSOptions {
4615
5219
  appInfo?: AppInfo;
4616
5220
  fetchFn?: typeof fetch;
4617
5221
  clientId?: string;
5222
+ /**
5223
+ * Expected `iss` claim of WorkOS access tokens, enforced when verifying
5224
+ * session access tokens. Accepts a single issuer or a list of allowed
5225
+ * issuers. When not set, the issuer claim is not validated.
5226
+ */
5227
+ issuer?: string | string[];
4618
5228
  timeout?: number;
4619
5229
  /**
4620
5230
  * Maximum number of automatic retries for transient failures (network
@@ -6677,20 +7287,6 @@ declare class Passwordless {
6677
7287
  sendSession(sessionId: string): Promise<SendSessionResponse>;
6678
7288
  }
6679
7289
  //#endregion
6680
- //#region src/pipes/interfaces/data-integration-credentials-response.interface.d.ts
6681
- interface DataIntegrationCredentialsResponse {
6682
- /** Indicates credentials are available. */
6683
- active?: true;
6684
- /** The credential object containing the vended secret. */
6685
- credential?: DataIntegrationCredentialsResponseCredential;
6686
- /**
6687
- * The reason credentials are unavailable. Additional values may be added in the future; handle unknown values gracefully.
6688
- * - `"not_installed"`: The user does not have the integration installed.
6689
- * - `"needs_reauthorization"`: The user needs to reauthorize the integration.
6690
- */
6691
- error?: DataIntegrationCredentialsResponseError;
6692
- }
6693
- //#endregion
6694
7290
  //#region src/pipes/pipes.d.ts
6695
7291
  declare class Pipes {
6696
7292
  private readonly workos;
@@ -6698,38 +7294,49 @@ declare class Pipes {
6698
7294
  /**
6699
7295
  * List data integrations
6700
7296
  *
6701
- * Lists the environment's data integrations configured with `custom` or `organization` credentials, including custom providers.
7297
+ * Lists the environment's data integrations configured with `custom` or `organization` credentials, including custom providers and API key integrations. Both user-owned and organization-owned roots are returned, each as its own row with an `ownership`; filter with `ownership` to return only one kind.
6702
7298
  * @param options - Pagination and filter options.
6703
- * @returns {Promise<AutoPaginatable<DataIntegration, PaginationOptions>>}
7299
+ * @returns {Promise<AutoPaginatable<DataIntegration, ListDataIntegrationsOptions>>}
6704
7300
  * @throws {UnauthorizedException} 401
7301
+ * @throws {NotFoundException} 404
7302
+ * @throws {UnprocessableEntityException} 422
6705
7303
  */
6706
- listDataIntegrations(options?: PaginationOptions): Promise<AutoPaginatable<DataIntegration, PaginationOptions>>;
7304
+ listDataIntegrations(options?: ListDataIntegrationsOptions): Promise<AutoPaginatable<DataIntegration, ListDataIntegrationsOptions>>;
6707
7305
  /**
6708
7306
  * Create a data integration
6709
7307
  *
6710
- * Creates a data integration for a provider. Set `credentials.type` to `custom` to use your own OAuth app credentials, or `organization` to have each organization supply its own. For a built-in provider, pass its slug as `provider`. For a custom provider, pass a new slug plus a `custom_provider` definition.
7308
+ * Creates a data integration for a provider. Set `credentials.type` to `custom` to use your own OAuth app credentials or `organization` to have each organization supply its own. Set `auth_methods` to `["api_key"]` to create an API key integration; you may optionally supply an `api_key` block to install a first tenant in the same call. Set `auth_methods` to `["client_credentials"]` to create a client-credentials integration; client credentials are installed per-tenant afterwards. Set `ownership` to `organization` to create the integration organizations connect to instead of the default user-owned one; a provider may have one of each. For a built-in provider, pass its slug as `provider`. For a custom provider, pass a new slug plus a `custom_provider` definition, or the slug of an existing custom provider (without `custom_provider`) to add the other ownership.
6711
7309
  * @param options - Object containing provider.
6712
7310
  * @param options.provider - The provider to create a Data Integration for. For a built-in provider use its slug (e.g. `github`, `slack`). For a custom provider, this is the new provider slug and `custom_provider` must be supplied. A custom provider slug cannot shadow an existing global provider slug.
6713
7311
  * @example "github"
7312
+ * @param options.ownership - Who owns the Data Integration. `user` (the default) creates the integration users connect their own accounts to; `organization` creates the root organizations connect to. Ownership is fixed at creation, and one integration of each ownership may exist per provider. Independent of `credentials.type`.
7313
+ * @example "user"
6714
7314
  * @param options.description - An optional description of the Data Integration.
6715
7315
  * @example "Production GitHub app"
6716
7316
  * @param options.enabled - Whether the Data Integration is enabled. Defaults to `false`.
6717
7317
  * @example true
6718
7318
  * @param options.scopes - The OAuth scopes to request for the Data Integration. Defaults to the provider's configured scopes when omitted.
6719
7319
  * @example ["repo","read:org"]
6720
- * @param options.credentials - The credentials to configure for the Data Integration. Required for both built-in and custom providers.
7320
+ * @param options.authMethods - How accounts authenticate with the provider. Defaults to `["oauth"]`. Use `["api_key"]` to declare an API key integration; `credentials` is then not required and keys are supplied per-tenant (optionally via `api_key` on this request). Use `["client_credentials"]` to declare a client-credentials integration; `credentials` is likewise not required and client credentials are supplied per-tenant.
7321
+ * @example ["oauth"]
7322
+ * @param options.config - Provider-specific config values (e.g. a Snowflake `account`), keyed by the config field. Only fields the built-in provider declares are accepted.
7323
+ * @example {"account":"myorg-myaccount"}
7324
+ * @param options.credentials - The OAuth credentials to configure for the Data Integration. Required for OAuth integrations; omit when `auth_methods` is `["api_key"]`.
7325
+ * @param options.apiKey - An optional API key to install for the first tenant on an `api_key` integration. Omit to declare a keyless integration; tenants can be added later via the per-installation API key path.
6721
7326
  * @param options.customProvider - The OAuth definition for a custom provider. Supply this to define a custom provider; omit it to create an integration for a built-in provider.
6722
7327
  * @returns {Promise<DataIntegration>}
6723
7328
  * @throws {BadRequestException} 400
6724
7329
  * @throws {UnauthorizedException} 401
7330
+ * @throws {AuthorizationException} 403
6725
7331
  * @throws {NotFoundException} 404
7332
+ * @throws {ConflictException} 409
6726
7333
  * @throws {UnprocessableEntityException} 422
6727
7334
  */
6728
7335
  createDataIntegration(options: CreateDataIntegrationOptions): Promise<DataIntegration>;
6729
7336
  /**
6730
7337
  * Get a data integration
6731
7338
  *
6732
- * Retrieves a data integration by its slug.
7339
+ * Retrieves the user-owned data integration by its slug.
6733
7340
  * @param options - The request options.
6734
7341
  * @param options.slug - The slug identifier of the data integration.
6735
7342
  * @example "github"
@@ -6741,7 +7348,7 @@ declare class Pipes {
6741
7348
  /**
6742
7349
  * Update a data integration
6743
7350
  *
6744
- * Updates the description, enabled state, or custom credentials of a data integration. For custom providers, `custom_provider` updates the OAuth definition.
7351
+ * Updates the description, enabled state, or custom credentials of the user-owned data integration. For custom providers, `custom_provider` updates the OAuth definition.
6745
7352
  * @param options - The request body.
6746
7353
  * @param options.slug - The slug identifier of the data integration.
6747
7354
  * @example "github"
@@ -6751,19 +7358,22 @@ declare class Pipes {
6751
7358
  * @example true
6752
7359
  * @param options.scopes - The OAuth scopes to request for the Data Integration. Pass `null` to reset to the provider's configured scopes.
6753
7360
  * @example ["repo","read:org"]
6754
- * @param options.credentials - New credentials for the Data Integration. When provided, rotates the stored client secret.
7361
+ * @param options.credentials - New OAuth credentials for the Data Integration. When provided, rotates the stored client secret. Mutually exclusive with `api_key`.
7362
+ * @param options.apiKey - An API key to install or rotate for a tenant on an `api_key` integration. Upserts the tenant installation identified by `user_id` (and optional `organization_id`).
6755
7363
  * @param options.customProvider - Updates to a custom provider's OAuth definition. Only valid for custom-provider integrations.
6756
7364
  * @returns {Promise<DataIntegration>}
6757
7365
  * @throws {BadRequestException} 400
6758
7366
  * @throws {UnauthorizedException} 401
7367
+ * @throws {AuthorizationException} 403
6759
7368
  * @throws {NotFoundException} 404
7369
+ * @throws {ConflictException} 409
6760
7370
  * @throws {UnprocessableEntityException} 422
6761
7371
  */
6762
7372
  updateDataIntegration(options: UpdateDataIntegrationOptions): Promise<DataIntegration>;
6763
7373
  /**
6764
7374
  * Delete a data integration
6765
7375
  *
6766
- * Deletes a data integration and all of its connected installations. For a custom provider, also deletes the custom provider definition.
7376
+ * Deletes the user-owned data integration and all of its connected installations. For a custom provider, the provider definition is deleted once no organization-owned root references it either.
6767
7377
  * @param options - The request options.
6768
7378
  * @param options.slug - The slug identifier of the data integration.
6769
7379
  * @example "github"
@@ -6772,17 +7382,31 @@ declare class Pipes {
6772
7382
  * @throws {NotFoundException} 404
6773
7383
  */
6774
7384
  deleteDataIntegration(options: DeleteDataIntegrationOptions): Promise<void>;
7385
+ /**
7386
+ * Create another API key connected account
7387
+ *
7388
+ * Requires `connectionIntent: 'add'` and does not accept an account selector.
7389
+ * Until additional connections are available, this creates the first connection
7390
+ * or returns 404 `multiple_connections_unavailable` if one already exists.
7391
+ * Use `updateDataIntegrationApiKey` to rotate the compatibility connection or
7392
+ * update an exact connection.
7393
+ */
7394
+ createDataIntegrationApiKey(options: CreateDataIntegrationApiKeyOptions): Promise<ConnectedAccount>;
6775
7395
  /**
6776
7396
  * Upsert an API key for a connected account
6777
7397
  *
6778
- * Creates or updates an API-key-based installation for the specified integration and user. If an installation already exists, the stored API key is rotated to the new value.
7398
+ * Creates or updates an API-key-based installation for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. If an installation already exists, the stored API key is rotated to the new value.
6779
7399
  * @param options - Object containing userId, secret.
6780
7400
  * @param options.slug - The identifier of the integration.
6781
7401
  * @example "github"
6782
7402
  * @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier.
6783
7403
  * @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
6784
- * @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization.
7404
+ * @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`.
6785
7405
  * @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
7406
+ * @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to rotate a specific existing connection.
7407
+ * @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
7408
+ * @param options.connectionOwner - Whose connection to create or rotate. `user` (the default) addresses the connection owned by `user_id`. `organization` addresses the connection shared by every member of `organization_id`; `user_id` then identifies the member performing the request and must be an active member of the organization.
7409
+ * @example "user"
6786
7410
  * @param options.secret - The API key secret to store for this integration.
6787
7411
  * @example "sk-1234567890abcdef"
6788
7412
  * @returns {Promise<ConnectedAccount>}
@@ -6790,6 +7414,7 @@ declare class Pipes {
6790
7414
  * @throws {UnauthorizedException} 401
6791
7415
  * @throws {AuthorizationException} 403
6792
7416
  * @throws {NotFoundException} 404
7417
+ * @throws {ConflictException} 409
6793
7418
  * @throws {UnprocessableEntityException} 422
6794
7419
  */
6795
7420
  updateDataIntegrationApiKey(options: UpdateDataIntegrationApiKeyOptions): Promise<ConnectedAccount>;
@@ -6800,12 +7425,16 @@ declare class Pipes {
6800
7425
  * @param options - Object containing userId.
6801
7426
  * @param options.slug - The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
6802
7427
  * @example "github"
6803
- * @param options.userId - The ID of the user to authorize.
7428
+ * @param options.userId - The ID of the user to authorize. When `connection_owner` is `organization`, this is the user authorizing on behalf of the organization; they must be an active member of the organization and do not become the owner of the resulting connected account.
6804
7429
  * @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
6805
- * @param options.organizationId - An organization ID to scope the authorization to a specific organization.
7430
+ * @param options.organizationId - An organization ID to scope the authorization to a specific organization. Required when `connection_owner` is `organization`.
6806
7431
  * @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
7432
+ * @param options.connectionOwner - Who will own the connected account. `user` (the default) connects the user's own account. `organization` connects the organization's shared account and requires `organization_id`.
7433
+ * @example "user"
6807
7434
  * @param options.returnTo - The URL to redirect the user to after authorization.
6808
7435
  * @example "https://example.com/callback"
7436
+ * @param options.config - Connect-time config values for the provider-declared `installation`-scope fields (e.g. a Zendesk `subdomain`), keyed by the config field. Only fields the provider declares may be supplied, and required fields must be provided unless already pinned on the integration.
7437
+ * @example {"subdomain":"acme"}
6809
7438
  * @returns {Promise<DataIntegrationAuthorizeUrlResponse>}
6810
7439
  * @throws {BadRequestException} 400
6811
7440
  * @throws {UnauthorizedException} 401
@@ -6813,23 +7442,98 @@ declare class Pipes {
6813
7442
  * @throws {NotFoundException} 404
6814
7443
  */
6815
7444
  authorizeDataIntegration(options: AuthorizeDataIntegrationOptions): Promise<DataIntegrationAuthorizeUrlResponse>;
7445
+ /**
7446
+ * Create another client credentials connected account
7447
+ *
7448
+ * Requires `connectionIntent: 'add'` and does not accept an account selector.
7449
+ * Until additional connections are available, this creates the first connection
7450
+ * or returns 404 `multiple_connections_unavailable` if one already exists.
7451
+ * Use `updateDataIntegrationClientCredentials` to rotate the compatibility
7452
+ * connection or update an exact connection.
7453
+ */
7454
+ createDataIntegrationClientCredential(options: CreateDataIntegrationClientCredentialOptions): Promise<ConnectedAccount>;
7455
+ /**
7456
+ * Upsert client credentials for a connected account
7457
+ *
7458
+ * Creates or updates a client-credentials-based installation for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. If an installation already exists, the stored client credentials are rotated to the new values.
7459
+ * @param options - The request options.
7460
+ * @param options.slug - The identifier of the integration.
7461
+ * @example "salesforce"
7462
+ * @returns {Promise<ConnectedAccount>}
7463
+ * @throws {BadRequestException} 400
7464
+ * @throws {UnauthorizedException} 401
7465
+ * @throws {AuthorizationException} 403
7466
+ * @throws {NotFoundException} 404
7467
+ * @throws {ConflictException} 409
7468
+ * @throws {UnprocessableEntityException} 422
7469
+ */
7470
+ updateDataIntegrationClientCredentials(options: UpdateDataIntegrationClientCredentialsOptions): Promise<ConnectedAccount>;
6816
7471
  /**
6817
7472
  * Vend credentials for a connected account
6818
7473
  *
6819
- * Returns credentials for a user's connected account. Branches on the installation's `auth_method`: OAuth installations return an access token (refreshed if needed); API-key installations return the stored secret.
7474
+ * Returns credentials for a user-owned or organization-owned connected account. OAuth and client-credentials installations return an access token; API-key installations return the stored secret. Every active credential includes provider-declared, non-secret `config` from the connection snapshot with current defaults. Client-credentials responses also include provider token `metadata`.
6820
7475
  * @param options - Object containing userId.
6821
7476
  * @param options.slug - The identifier of the integration.
6822
7477
  * @example "github"
6823
- * @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier.
7478
+ * @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier. When `connection_owner` is `organization`, this is the user the credentials are vended on behalf of; they must be an active member of the organization.
6824
7479
  * @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
6825
- * @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization.
7480
+ * @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`.
6826
7481
  * @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
7482
+ * @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select a specific connection when the user has several for this provider.
7483
+ * @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
7484
+ * @param options.connectionOwner - Which connection to vend from. `user` (the default) vends the user's own connection and requires `user_id`. `organization` vends the organization's shared connection and requires `organization_id`.
7485
+ * @example "user"
7486
+ * @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. If no `connected_account_id` is supplied and several connections match, the request returns `account_selection_required`. When omitted or `false`, only the compatibility connection is considered.
7487
+ * @example true
6827
7488
  * @returns {Promise<DataIntegrationCredentialsResponse>}
6828
7489
  * @throws {BadRequestException} 400
6829
7490
  * @throws {UnauthorizedException} 401
7491
+ * @throws {AuthorizationException} 403
6830
7492
  * @throws {NotFoundException} 404
7493
+ * @throws {ConflictException} 409
7494
+ * @throws {UnprocessableEntityException} 422
6831
7495
  */
6832
7496
  createDataIntegrationCredential(options: CreateDataIntegrationCredentialOptions): Promise<DataIntegrationCredentialsResponse>;
7497
+ /**
7498
+ * Get an organization-owned data integration
7499
+ *
7500
+ * Retrieves the organization-owned data integration for a provider by its slug. The `/organization` suffix selects the environment-level organization-owned root for the provider; it does not name a particular organization.
7501
+ * @param options - The request options.
7502
+ * @param options.slug - The slug identifier of the data integration.
7503
+ * @example "github"
7504
+ * @returns {Promise<DataIntegration>}
7505
+ * @throws {UnauthorizedException} 401
7506
+ * @throws {NotFoundException} 404
7507
+ */
7508
+ getOrganizationDataIntegration(options: GetOrganizationDataIntegrationOptions): Promise<DataIntegration>;
7509
+ /**
7510
+ * Update an organization-owned data integration
7511
+ *
7512
+ * Updates the description, enabled state, or custom credentials of the organization-owned data integration for a provider. For custom providers, `custom_provider` updates the OAuth definition, which is shared with the user-owned root. The `/organization` suffix selects the environment-level organization-owned root for the provider; it does not name a particular organization.
7513
+ * @param options - The request options.
7514
+ * @param options.slug - The slug identifier of the data integration.
7515
+ * @example "github"
7516
+ * @returns {Promise<DataIntegration>}
7517
+ * @throws {BadRequestException} 400
7518
+ * @throws {UnauthorizedException} 401
7519
+ * @throws {AuthorizationException} 403
7520
+ * @throws {NotFoundException} 404
7521
+ * @throws {ConflictException} 409
7522
+ * @throws {UnprocessableEntityException} 422
7523
+ */
7524
+ updateOrganizationDataIntegration(options: UpdateOrganizationDataIntegrationOptions): Promise<DataIntegration>;
7525
+ /**
7526
+ * Delete an organization-owned data integration
7527
+ *
7528
+ * Deletes the organization-owned data integration for a provider and all of its connected installations. For a custom provider, the provider definition is deleted once no user-owned root references it either. The `/organization` suffix selects the environment-level organization-owned root for the provider; it does not name a particular organization.
7529
+ * @param options - The request options.
7530
+ * @param options.slug - The slug identifier of the data integration.
7531
+ * @example "github"
7532
+ * @returns {Promise<void>}
7533
+ * @throws {UnauthorizedException} 401
7534
+ * @throws {NotFoundException} 404
7535
+ */
7536
+ deleteOrganizationDataIntegration(options: DeleteOrganizationDataIntegrationOptions): Promise<void>;
6833
7537
  /**
6834
7538
  * Get an access token for a connected account
6835
7539
  *
@@ -6837,17 +7541,118 @@ declare class Pipes {
6837
7541
  * @param options - Object containing userId.
6838
7542
  * @param options.provider - The identifier of the integration.
6839
7543
  * @example "github"
6840
- * @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier.
7544
+ * @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier. When `connection_owner` is `organization`, this is the user the credentials are vended on behalf of; they must be an active member of the organization.
6841
7545
  * @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
6842
- * @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization.
7546
+ * @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`.
6843
7547
  * @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
7548
+ * @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select a specific connection when the user has several for this provider.
7549
+ * @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
7550
+ * @param options.connectionOwner - Which connection to vend from. `user` (the default) vends the user's own connection and requires `user_id`. `organization` vends the organization's shared connection and requires `organization_id`.
7551
+ * @example "user"
7552
+ * @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. If no `connected_account_id` is supplied and several connections match, the request returns `account_selection_required`. When omitted or `false`, only the compatibility connection is considered.
7553
+ * @example true
6844
7554
  * @returns {Promise<DataIntegrationAccessTokenResponse>}
6845
7555
  * @throws {BadRequestException} 400
6846
7556
  * @throws {UnauthorizedException} 401
7557
+ * @throws {AuthorizationException} 403
6847
7558
  * @throws {NotFoundException} 404
7559
+ * @throws {ConflictException} 409
6848
7560
  * @throws {UnprocessableEntityException} 422
6849
7561
  */
6850
7562
  getAccessToken(options: GetAccessTokenOptions): Promise<DataIntegrationAccessTokenResponse>;
7563
+ /**
7564
+ * Get an organization connected account
7565
+ *
7566
+ * Retrieves an organization's [connected account](https://workos.com/docs/reference/pipes/connected-account) for a specific provider.
7567
+ * @param options - Additional query options.
7568
+ * @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier.
7569
+ * @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
7570
+ * @param options.slug - The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
7571
+ * @example "github"
7572
+ * @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered.
7573
+ * @example true
7574
+ * @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select a specific connection when the organization has several for this provider.
7575
+ * @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
7576
+ * @returns {Promise<ConnectedAccount>}
7577
+ * @throws {BadRequestException} 400
7578
+ * @throws {UnauthorizedException} 401
7579
+ * @throws {NotFoundException} 404
7580
+ * @throws {ConflictException} 409
7581
+ */
7582
+ getOrganizationConnectedAccount(options: GetOrganizationConnectedAccountOptions): Promise<ConnectedAccount>;
7583
+ /**
7584
+ * Import an organization connected account
7585
+ *
7586
+ * Imports an organization-owned [connected account](https://workos.com/docs/reference/pipes/connected-account) by providing OAuth tokens directly. Omit `connectionIntent` for compatibility behavior or set it to `add` to explicitly create a connection. Additional connection creation is subject to API availability.
7587
+ * @param options - The request options.
7588
+ * @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier.
7589
+ * @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
7590
+ * @param options.slug - The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
7591
+ * @example "github"
7592
+ * @returns {Promise<ConnectedAccount>}
7593
+ * @throws {UnauthorizedException} 401
7594
+ * @throws {AuthorizationException} 403
7595
+ * @throws {NotFoundException} 404
7596
+ * @throws {ConflictException} 409
7597
+ * @throws {UnprocessableEntityException} 422
7598
+ */
7599
+ createOrganizationConnectedAccount(options: CreateOrganizationConnectedAccountOptions): Promise<ConnectedAccount>;
7600
+ /**
7601
+ * Update an organization connected account
7602
+ *
7603
+ * Updates an organization's [connected account](https://workos.com/docs/reference/pipes/connected-account) tokens, scopes, or state for a specific provider.
7604
+ * @param options - Additional query options.
7605
+ * @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier.
7606
+ * @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
7607
+ * @param options.slug - The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
7608
+ * @example "github"
7609
+ * @param options.supportsMultipleConnections - Accepted for compatibility; does not change update targeting.
7610
+ * @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to update.
7611
+ * @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
7612
+ * @param options.connectionIntent - Set to `reauthorize` with `connectedAccountId`, or omit both to update the compatibility connection.
7613
+ * @returns {Promise<ConnectedAccount>}
7614
+ * @throws {BadRequestException} 400
7615
+ * @throws {UnauthorizedException} 401
7616
+ * @throws {AuthorizationException} 403
7617
+ * @throws {NotFoundException} 404
7618
+ * @throws {ConflictException} 409
7619
+ * @throws {UnprocessableEntityException} 422
7620
+ */
7621
+ updateOrganizationConnectedAccount(options: UpdateOrganizationConnectedAccountOptions): Promise<ConnectedAccount>;
7622
+ /**
7623
+ * Delete an organization connected account
7624
+ *
7625
+ * Disconnects the organization's account for the provider, including removing any stored access and refresh tokens. A member will need to reauthorize if the organization wants to reconnect. This does not revoke access on the provider side.
7626
+ * @param options - Additional query options.
7627
+ * @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier.
7628
+ * @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
7629
+ * @param options.slug - The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
7630
+ * @example "github"
7631
+ * @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered.
7632
+ * @example true
7633
+ * @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to delete.
7634
+ * @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
7635
+ * @returns {Promise<void>}
7636
+ * @throws {BadRequestException} 400
7637
+ * @throws {UnauthorizedException} 401
7638
+ * @throws {NotFoundException} 404
7639
+ * @throws {ConflictException} 409
7640
+ */
7641
+ deleteOrganizationConnectedAccount(options: DeleteOrganizationConnectedAccountOptions): Promise<void>;
7642
+ /**
7643
+ * List providers for an organization
7644
+ *
7645
+ * Retrieves the organization-owned providers configured for your environment and the organization's [connected account](https://workos.com/docs/reference/pipes/connected-account) information for each. Providers owned by individual users are not included.
7646
+ * @param options - Additional query options.
7647
+ * @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier to list providers and connected accounts for.
7648
+ * @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
7649
+ * @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered.
7650
+ * @example true
7651
+ * @returns {Promise<DataIntegrationsListResponse>}
7652
+ * @throws {UnauthorizedException} 401
7653
+ * @throws {NotFoundException} 404
7654
+ */
7655
+ listOrganizationDataProviders(options: ListOrganizationDataProvidersOptions): Promise<DataIntegrationsListResponse>;
6851
7656
  /**
6852
7657
  * Get a connected account
6853
7658
  *
@@ -6859,15 +7664,21 @@ declare class Pipes {
6859
7664
  * @example "github"
6860
7665
  * @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization.
6861
7666
  * @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
7667
+ * @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered.
7668
+ * @example true
7669
+ * @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select a specific connection when the user has several for this provider.
7670
+ * @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
6862
7671
  * @returns {Promise<ConnectedAccount>}
7672
+ * @throws {BadRequestException} 400
6863
7673
  * @throws {UnauthorizedException} 401
6864
7674
  * @throws {NotFoundException} 404
7675
+ * @throws {ConflictException} 409
6865
7676
  */
6866
7677
  getUserConnectedAccount(options: GetUserConnectedAccountOptions): Promise<ConnectedAccount>;
6867
7678
  /**
6868
7679
  * Import a connected account
6869
7680
  *
6870
- * Imports a [connected account](https://workos.com/docs/reference/pipes/connected-account) for a user by providing OAuth tokens directly. Use this to migrate existing connections or set up connections without going through the OAuth flow.
7681
+ * Imports a [connected account](https://workos.com/docs/reference/pipes/connected-account) for a user by providing OAuth tokens directly. Omit `connectionIntent` for compatibility behavior or set it to `add` to explicitly create a connection. Additional connection creation is subject to API availability.
6871
7682
  * @param options - The request body.
6872
7683
  * @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier.
6873
7684
  * @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
@@ -6903,6 +7714,10 @@ declare class Pipes {
6903
7714
  * @example "github"
6904
7715
  * @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization.
6905
7716
  * @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
7717
+ * @param options.supportsMultipleConnections - Accepted for compatibility; does not change update targeting.
7718
+ * @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to update.
7719
+ * @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
7720
+ * @param options.connectionIntent - Set to `reauthorize` with `connectedAccountId`, or omit both to update the compatibility connection.
6906
7721
  * @param options.accessToken - The OAuth access token for the connected account.
6907
7722
  * @example "gho_16C7e42F292c6912E7710c838347Ae178B4a"
6908
7723
  * @param options.refreshToken - The OAuth refresh token for the connected account.
@@ -6914,14 +7729,17 @@ declare class Pipes {
6914
7729
  * @param options.state - Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided.
6915
7730
  * @example "connected"
6916
7731
  * @returns {Promise<ConnectedAccount>}
7732
+ * @throws {BadRequestException} 400
6917
7733
  * @throws {UnauthorizedException} 401
6918
7734
  * @throws {NotFoundException} 404
7735
+ * @throws {ConflictException} 409
7736
+ * @throws {UnprocessableEntityException} 422
6919
7737
  */
6920
7738
  updateUserConnectedAccount(options: UpdateUserConnectedAccountOptions): Promise<ConnectedAccount>;
6921
7739
  /**
6922
7740
  * Delete a connected account
6923
7741
  *
6924
- * Disconnects WorkOS's account for the user, including removing any stored access and refresh tokens. The user will need to reauthorize if they want to reconnect. This does not revoke access on the provider side.
7742
+ * Disconnects WorkOS's account for the user, including removing any stored access and refresh tokens. The user will need to reauthorize if they want to reconnect. Access is not revoked on the provider side, except for the WorkOS OAuth provider, whose underlying AuthKit grant is revoked.
6925
7743
  * @param options - Additional query options.
6926
7744
  * @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier.
6927
7745
  * @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
@@ -6929,9 +7747,15 @@ declare class Pipes {
6929
7747
  * @example "github"
6930
7748
  * @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization.
6931
7749
  * @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
7750
+ * @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered.
7751
+ * @example true
7752
+ * @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to delete.
7753
+ * @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
6932
7754
  * @returns {Promise<void>}
7755
+ * @throws {BadRequestException} 400
6933
7756
  * @throws {UnauthorizedException} 401
6934
7757
  * @throws {NotFoundException} 404
7758
+ * @throws {ConflictException} 409
6935
7759
  */
6936
7760
  deleteUserConnectedAccount(options: DeleteUserConnectedAccountOptions): Promise<void>;
6937
7761
  /**
@@ -6943,6 +7767,8 @@ declare class Pipes {
6943
7767
  * @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
6944
7768
  * @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to filter connections for a specific organization.
6945
7769
  * @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
7770
+ * @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered.
7771
+ * @example true
6946
7772
  * @returns {Promise<DataIntegrationsListResponse>}
6947
7773
  * @throws {UnauthorizedException} 401
6948
7774
  * @throws {NotFoundException} 404
@@ -7513,6 +8339,15 @@ interface AuditLogSchemaResponse {
7513
8339
  created_at: string;
7514
8340
  }
7515
8341
  //#endregion
8342
+ //#region src/audit-logs/interfaces/audit-logs-retention.interface.d.ts
8343
+ interface AuditLogsRetention {
8344
+ /** The number of days Audit Log events will be retained before being permanently deleted. Valid values are 30 through 330 in 30-day increments and 365 through 3650 in 365-day increments. */
8345
+ retentionPeriodInDays: number | null;
8346
+ }
8347
+ interface AuditLogsRetentionResponse {
8348
+ retention_period_in_days: number | null;
8349
+ }
8350
+ //#endregion
7516
8351
  //#region src/audit-logs/interfaces/create-audit-log-event-options.interface.d.ts
7517
8352
  interface AuditLogActor {
7518
8353
  id: string;
@@ -7583,10 +8418,84 @@ interface SerializedCreateAuditLogSchemaOptions {
7583
8418
  type CreateAuditLogSchemaResponse = AuditLogSchemaResponse;
7584
8419
  type CreateAuditLogSchemaRequestOptions = Pick<PostOptions, 'idempotencyKey'>;
7585
8420
  //#endregion
8421
+ //#region src/audit-logs/interfaces/get-organization-audit-logs-retention-options.interface.d.ts
8422
+ interface GetOrganizationAuditLogsRetentionOptions {
8423
+ /** Unique identifier of the Organization. */
8424
+ id: string;
8425
+ }
8426
+ //#endregion
8427
+ //#region src/audit-logs/interfaces/update-audit-logs-retention-retention-period.interface.d.ts
8428
+ declare const UpdateAuditLogsRetentionRetentionPeriod: {
8429
+ readonly Value1Month: "1_MONTH";
8430
+ readonly Value2Months: "2_MONTHS";
8431
+ readonly Value3Months: "3_MONTHS";
8432
+ readonly Value4Months: "4_MONTHS";
8433
+ readonly Value5Months: "5_MONTHS";
8434
+ readonly Value6Months: "6_MONTHS";
8435
+ readonly Value7Months: "7_MONTHS";
8436
+ readonly Value8Months: "8_MONTHS";
8437
+ readonly Value9Months: "9_MONTHS";
8438
+ readonly Value10Months: "10_MONTHS";
8439
+ readonly Value11Months: "11_MONTHS";
8440
+ readonly Value1Year: "1_YEAR";
8441
+ readonly Value2Years: "2_YEARS";
8442
+ readonly Value3Years: "3_YEARS";
8443
+ readonly Value4Years: "4_YEARS";
8444
+ readonly Value5Years: "5_YEARS";
8445
+ readonly Value6Years: "6_YEARS";
8446
+ readonly Value7Years: "7_YEARS";
8447
+ readonly Value8Years: "8_YEARS";
8448
+ readonly Value9Years: "9_YEARS";
8449
+ readonly Value10Years: "10_YEARS";
8450
+ };
8451
+ type UpdateAuditLogsRetentionRetentionPeriod = (typeof UpdateAuditLogsRetentionRetentionPeriod)[keyof typeof UpdateAuditLogsRetentionRetentionPeriod];
8452
+ //#endregion
8453
+ //#region src/audit-logs/interfaces/update-audit-logs-retention.interface.d.ts
8454
+ interface UpdateAuditLogsRetention {
8455
+ /** The period Audit Log events will be retained. Valid values are `1_MONTH` through `11_MONTHS` in one-month increments and `1_YEAR` through `10_YEARS` in one-year increments. */
8456
+ retentionPeriod: UpdateAuditLogsRetentionRetentionPeriod;
8457
+ }
8458
+ interface UpdateAuditLogsRetentionResponse {
8459
+ retention_period: UpdateAuditLogsRetentionRetentionPeriod;
8460
+ }
8461
+ //#endregion
8462
+ //#region src/audit-logs/interfaces/update-organization-audit-logs-retention-options.interface.d.ts
8463
+ interface UpdateOrganizationAuditLogsRetentionOptions {
8464
+ /** Unique identifier of the Organization. */
8465
+ id: string;
8466
+ /** The period Audit Log events will be retained. Valid values are `1_MONTH` through `11_MONTHS` in one-month increments and `1_YEAR` through `10_YEARS` in one-year increments. */
8467
+ retentionPeriod: UpdateAuditLogsRetentionRetentionPeriod;
8468
+ }
8469
+ //#endregion
7586
8470
  //#region src/audit-logs/audit-logs.d.ts
7587
8471
  declare class AuditLogs {
7588
8472
  private readonly workos;
7589
8473
  constructor(workos: WorkOS);
8474
+ /**
8475
+ * Get Retention
8476
+ *
8477
+ * Get the configured event retention period for the given Organization.
8478
+ * @param options - The request options.
8479
+ * @param options.id - Unique identifier of the Organization.
8480
+ * @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
8481
+ * @returns {Promise<AuditLogsRetention>}
8482
+ * @throws {NotFoundException} 404
8483
+ */
8484
+ getOrganizationAuditLogsRetention(options: GetOrganizationAuditLogsRetentionOptions): Promise<AuditLogsRetention>;
8485
+ /**
8486
+ * Set Retention
8487
+ *
8488
+ * Set the event retention period for the given Organization.
8489
+ * @param options - Object containing retentionPeriod.
8490
+ * @param options.id - Unique identifier of the Organization.
8491
+ * @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
8492
+ * @param options.retentionPeriod - The period Audit Log events will be retained. Valid values are `1_MONTH` through `11_MONTHS` in one-month increments and `1_YEAR` through `10_YEARS` in one-year increments.
8493
+ * @example "1_MONTH"
8494
+ * @returns {Promise<AuditLogsRetention>}
8495
+ * @throws {NotFoundException} 404
8496
+ * @throws {UnprocessableEntityException} 422
8497
+ */
8498
+ updateOrganizationAuditLogsRetention(options: UpdateOrganizationAuditLogsRetentionOptions): Promise<AuditLogsRetention>;
7590
8499
  /**
7591
8500
  * Create Event
7592
8501
  *
@@ -7638,25 +8547,113 @@ declare class AuditLogs {
7638
8547
  createSchema(schema: CreateAuditLogSchemaOptions, options?: CreateAuditLogSchemaRequestOptions): Promise<AuditLogSchema>;
7639
8548
  listSchemas(action: string, options?: PaginationOptions): Promise<AutoPaginatable<AuditLogSchema, PaginationOptions>>;
7640
8549
  }
7641
- //#endregion
7642
- //#region node_modules/jose/dist/types/types.d.ts
7643
- /**
7644
- * JWS "alg" (Algorithm) Header Parameter values supported by this module. Availability of a given
7645
- * identifier additionally depends on the runtime.
7646
- */
8550
+ declare namespace types_d_exports {
8551
+ export { AnyJWK, CompactDecryptResult, CompactJWEHeaderParameters, CompactJWSHeaderParameters, CompactVerifyResult, CritOption, CryptoKey, CryptoKeyStructuralFallback, DecryptOptions, EncryptOptions, FlattenedDecryptResult, FlattenedJWE, FlattenedJWS, FlattenedJWSInput, FlattenedVerifyResult, GeneralDecryptResult, GeneralJWE, GeneralJWS, GeneralJWSInput, GeneralVerifyResult, GetKeyFunction, JSONWebKeySet, JWEContentEncryptionAlgorithm, JWEHeaderParameters, JWEKeyManagementAlgorithm, JWEKeyManagementHeaderParameters, JWK, JWKKeyType, JWKParameters, JWK_AKP_Private, JWK_AKP_Public, JWK_EC_Private, JWK_EC_Public, JWK_OKP_Private, JWK_OKP_Public, JWK_RSA_Private, JWK_RSA_Public, JWK_oct, JWSAlgorithm, JWSHeaderParameters, JWTClaimVerificationOptions, JWTDecryptResult, JWTHeaderParameters, JWTPayload, JWTVerifyResult, JoseHeaderParameters, KeyInput, KeyObject, ProduceJWT, ResolvedKey, SignOptions, VerifyOptions };
8552
+ }
8553
+ /** Supported JWS "alg" (Algorithm) Header Parameter values. Availability depends on the runtime. */
7647
8554
  type JWSAlgorithm = 'HS256' | 'HS384' | 'HS512' | 'RS256' | 'RS384' | 'RS512' | 'PS256' | 'PS384' | 'PS512' | 'ES256' | 'ES384' | 'ES512' | 'EdDSA' | 'Ed25519' | 'ML-DSA-44' | 'ML-DSA-65' | 'ML-DSA-87' | (string & {});
7648
- /**
7649
- * JWE "alg" (Algorithm) Header Parameter values supported by this module. Availability of a given
7650
- * identifier additionally depends on the runtime.
7651
- */
8555
+ /** Supported JWE "alg" (Algorithm) Header Parameter values. Availability depends on the runtime. */
7652
8556
  type JWEKeyManagementAlgorithm = 'dir' | 'A128KW' | 'A192KW' | 'A256KW' | 'A128GCMKW' | 'A192GCMKW' | 'A256GCMKW' | 'ECDH-ES' | 'ECDH-ES+A128KW' | 'ECDH-ES+A192KW' | 'ECDH-ES+A256KW' | 'RSA-OAEP' | 'RSA-OAEP-256' | 'RSA-OAEP-384' | 'RSA-OAEP-512' | 'PBES2-HS256+A128KW' | 'PBES2-HS384+A192KW' | 'PBES2-HS512+A256KW' | (string & {});
7653
8557
  /**
7654
- * JWE "enc" (Encryption Algorithm) Header Parameter values supported by this module. Availability
7655
- * of a given identifier additionally depends on the runtime.
8558
+ * Supported JWE "enc" (Encryption Algorithm) Header Parameter values. Availability depends on the
8559
+ * runtime.
7656
8560
  */
7657
8561
  type JWEContentEncryptionAlgorithm = 'A128CBC-HS256' | 'A192CBC-HS384' | 'A256CBC-HS512' | 'A128GCM' | 'A192GCM' | 'A256GCM' | (string & {});
7658
8562
  /** JWK "kty" (Key Type) Parameter values supported by this module. */
7659
8563
  type JWKKeyType = 'EC' | 'RSA' | 'OKP' | 'AKP' | 'oct' | (string & {});
8564
+ /**
8565
+ * Generic JSON Web Key Parameters.
8566
+ *
8567
+ * > Note: This is declared as a type alias rather than an interface so that it satisfies the implicit index
8568
+ * > signature of the `JsonWebKey` types shipped by `@types/node` and `lib.dom`.
8569
+ */
8570
+ type JWKParameters = {
8571
+ /** JWK "kty" (Key Type) Parameter */
8572
+ kty?: JWKKeyType;
8573
+ /** JWK "alg" (Algorithm) Parameter */
8574
+ alg?: JWSAlgorithm | JWEKeyManagementAlgorithm | JWEContentEncryptionAlgorithm;
8575
+ /** Permitted key operations. */
8576
+ key_ops?: string[];
8577
+ /** Whether the key may be exported. */
8578
+ ext?: boolean;
8579
+ /** JWK "use" (Public Key Use) Parameter */
8580
+ use?: 'sig' | 'enc' | (string & {});
8581
+ /** X.509 certificate chain. */
8582
+ x5c?: string[];
8583
+ /** X.509 certificate SHA-1 thumbprint. */
8584
+ x5t?: string;
8585
+ /** X.509 certificate SHA-256 thumbprint. */
8586
+ 'x5t#S256'?: string;
8587
+ /** X.509 certificate URL. */
8588
+ x5u?: string;
8589
+ /** JWK "kid" (Key ID) Parameter */
8590
+ kid?: string;
8591
+ };
8592
+ /** Convenience interface for public OKP JSON Web Keys. */
8593
+ interface JWK_OKP_Public extends JWKParameters {
8594
+ /** Key pair subtype. */
8595
+ crv: string;
8596
+ /** Public key. */
8597
+ x: string;
8598
+ }
8599
+ /** Convenience interface for private OKP JSON Web Keys. */
8600
+ interface JWK_OKP_Private extends JWK_OKP_Public {
8601
+ /** Private key. */
8602
+ d: string;
8603
+ }
8604
+ /** Convenience interface for public AKP JSON Web Keys. */
8605
+ interface JWK_AKP_Public extends JWKParameters {
8606
+ /** JWK "alg" (Algorithm) Parameter */
8607
+ alg: string;
8608
+ /** AKP JWK "pub" (The Public key) Parameter */
8609
+ pub: string;
8610
+ }
8611
+ /** Convenience interface for private AKP JSON Web Keys. */
8612
+ interface JWK_AKP_Private extends JWK_AKP_Public {
8613
+ /** AKP JWK "priv" (The Private Key) Parameter */
8614
+ priv: string;
8615
+ }
8616
+ /** Convenience interface for public EC JSON Web Keys. */
8617
+ interface JWK_EC_Public extends JWKParameters {
8618
+ /** Curve. */
8619
+ crv: string;
8620
+ /** Public key X coordinate. */
8621
+ x: string;
8622
+ /** Public key Y coordinate. */
8623
+ y: string;
8624
+ }
8625
+ /** Convenience interface for private EC JSON Web Keys. */
8626
+ interface JWK_EC_Private extends JWK_EC_Public {
8627
+ /** Private key. */
8628
+ d: string;
8629
+ }
8630
+ /** Convenience interface for public RSA JSON Web Keys. */
8631
+ interface JWK_RSA_Public extends JWKParameters {
8632
+ /** Public exponent. */
8633
+ e: string;
8634
+ /** Modulus. */
8635
+ n: string;
8636
+ }
8637
+ /** Convenience interface for private RSA JSON Web Keys. */
8638
+ interface JWK_RSA_Private extends JWK_RSA_Public {
8639
+ /** Private exponent. */
8640
+ d: string;
8641
+ /** First factor CRT exponent. */
8642
+ dp: string;
8643
+ /** Second factor CRT exponent. */
8644
+ dq: string;
8645
+ /** First prime factor. */
8646
+ p: string;
8647
+ /** Second prime factor. */
8648
+ q: string;
8649
+ /** First CRT coefficient. */
8650
+ qi: string;
8651
+ }
8652
+ /** Convenience interface for "oct" JSON Web Keys. */
8653
+ interface JWK_oct extends JWKParameters {
8654
+ /** Symmetric key value. */
8655
+ k: string;
8656
+ }
7660
8657
  /**
7661
8658
  * JSON Web Key ({@link https://www.rfc-editor.org/info/rfc7517/ JWK}). "RSA", "EC", "OKP", "AKP",
7662
8659
  * and "oct" key types are supported.
@@ -7671,146 +8668,404 @@ type JWK = {
7671
8668
  kty?: JWKKeyType;
7672
8669
  /** JWK "alg" (Algorithm) Parameter */
7673
8670
  alg?: JWSAlgorithm | JWEKeyManagementAlgorithm | JWEContentEncryptionAlgorithm;
7674
- /** JWK "key_ops" (Key Operations) Parameter */
8671
+ /** Permitted key operations. */
7675
8672
  key_ops?: string[];
7676
- /** JWK "ext" (Extractable) Parameter */
8673
+ /** Whether the key may be exported. */
7677
8674
  ext?: boolean;
7678
8675
  /** JWK "use" (Public Key Use) Parameter */
7679
8676
  use?: 'sig' | 'enc' | (string & {});
7680
- /** JWK "x5c" (X.509 Certificate Chain) Parameter */
8677
+ /** X.509 certificate chain. */
7681
8678
  x5c?: string[];
7682
- /** JWK "x5t" (X.509 Certificate SHA-1 Thumbprint) Parameter */
8679
+ /** X.509 certificate SHA-1 thumbprint. */
7683
8680
  x5t?: string;
7684
- /** JWK "x5t#S256" (X.509 Certificate SHA-256 Thumbprint) Parameter */
8681
+ /** X.509 certificate SHA-256 thumbprint. */
7685
8682
  'x5t#S256'?: string;
7686
- /** JWK "x5u" (X.509 URL) Parameter */
8683
+ /** X.509 certificate URL. */
7687
8684
  x5u?: string;
7688
8685
  /** JWK "kid" (Key ID) Parameter */
7689
8686
  kid?: string;
7690
- /**
7691
- * - EC JWK "crv" (Curve) Parameter
7692
- * - OKP JWK "crv" (The Subtype of Key Pair) Parameter
7693
- */
8687
+ /** EC curve or OKP key pair subtype. */
7694
8688
  crv?: string;
7695
- /**
7696
- * - Private RSA JWK "d" (Private Exponent) Parameter
7697
- * - Private EC JWK "d" (ECC Private Key) Parameter
7698
- * - Private OKP JWK "d" (The Private Key) Parameter
7699
- */
8689
+ /** Private RSA exponent, EC key, or OKP key. */
7700
8690
  d?: string;
7701
- /** Private RSA JWK "dp" (First Factor CRT Exponent) Parameter */
8691
+ /** RSA first factor CRT exponent. */
7702
8692
  dp?: string;
7703
- /** Private RSA JWK "dq" (Second Factor CRT Exponent) Parameter */
8693
+ /** RSA second factor CRT exponent. */
7704
8694
  dq?: string;
7705
- /** RSA JWK "e" (Exponent) Parameter */
8695
+ /** RSA public exponent. */
7706
8696
  e?: string;
7707
- /** Oct JWK "k" (Key Value) Parameter */
8697
+ /** Symmetric key value. */
7708
8698
  k?: string;
7709
- /** RSA JWK "n" (Modulus) Parameter */
8699
+ /** RSA modulus. */
7710
8700
  n?: string;
7711
- /** Private RSA JWK "p" (First Prime Factor) Parameter */
8701
+ /** RSA first prime factor. */
7712
8702
  p?: string;
7713
- /** Private RSA JWK "q" (Second Prime Factor) Parameter */
8703
+ /** RSA second prime factor. */
7714
8704
  q?: string;
7715
- /** Private RSA JWK "qi" (First CRT Coefficient) Parameter */
8705
+ /** RSA first CRT coefficient. */
7716
8706
  qi?: string;
7717
- /**
7718
- * - EC JWK "x" (X Coordinate) Parameter
7719
- * - OKP JWK "x" (The public key) Parameter
7720
- */
8707
+ /** EC public key X coordinate or OKP public key. */
7721
8708
  x?: string;
7722
- /** EC JWK "y" (Y Coordinate) Parameter */
8709
+ /** EC public key Y coordinate. */
7723
8710
  y?: string;
7724
8711
  /** AKP JWK "pub" (Public Key) Parameter */
7725
8712
  pub?: string;
7726
8713
  /** AKP JWK "priv" (Private key) Parameter */
7727
8714
  priv?: string;
7728
- /**
7729
- * RSA JWK "oth" (Other Primes Info) Parameter
7730
- *
7731
- * > Note: Multi-prime RSA keys are not supported; importing a JWK with this parameter present throws.
7732
- */
8715
+ /** Additional RSA prime factors. */
7733
8716
  oth?: Array<{
7734
- /** The Factor CRT Exponent */
8717
+ /** Factor CRT exponent. */
7735
8718
  d?: string;
7736
- /** The Prime Factor */
8719
+ /** Prime factor. */
7737
8720
  r?: string;
7738
- /** The Factor CRT Coefficient */
8721
+ /** Factor CRT coefficient. */
7739
8722
  t?: string;
7740
8723
  }>;
7741
8724
  };
7742
- /**
7743
- * Flattened JWS definition for verify function inputs, allows payload as {@link !Uint8Array} for
7744
- * detached signature validation.
7745
- */
7746
- interface FlattenedJWSInput {
8725
+ /** Discriminated union of supported JSON Web Key shapes, narrowed by the "kty" (Key Type) Parameter. */
8726
+ // Intersect "kty" into each member separately: typedoc omits the parentheses in `X & (A | B)`.
8727
+ type AnyJWK = (JWK_EC_Private & {
8728
+ kty: 'EC';
8729
+ }) | (JWK_EC_Public & {
8730
+ kty: 'EC';
8731
+ }) | (JWK_RSA_Private & {
8732
+ kty: 'RSA';
8733
+ }) | (JWK_RSA_Public & {
8734
+ kty: 'RSA';
8735
+ }) | (JWK_OKP_Private & {
8736
+ kty: 'OKP';
8737
+ }) | (JWK_OKP_Public & {
8738
+ kty: 'OKP';
8739
+ }) | (JWK_AKP_Private & {
8740
+ kty: 'AKP';
8741
+ }) | (JWK_AKP_Public & {
8742
+ kty: 'AKP';
8743
+ }) | (JWK_oct & {
8744
+ kty: 'oct';
8745
+ });
8746
+ /** Key or secret input accepted by all sign, verify, encrypt, and decrypt operations. */
8747
+ type KeyInput = CryptoKey | KeyObject | JWK | Uint8Array;
8748
+ /** Dynamic key resolver for consuming operations. */
8749
+ interface GetKeyFunction<IProtectedHeader, IToken, KeyTypes extends KeyInput = KeyInput> {
7747
8750
  /**
7748
- * The "header" member MUST be present and contain the value JWS Unprotected Header when the JWS
7749
- * Unprotected Header value is non- empty; otherwise, it MUST be absent. This value is represented
7750
- * as an unencoded JSON object, rather than as a string. These Header Parameter values are not
7751
- * integrity protected.
8751
+ * Resolves a key for an unverified token. Throw if no suitable key can be resolved.
8752
+ *
8753
+ * @param token The consumed JWE or JWS token; none of its components have been verified.
7752
8754
  */
8755
+ (protectedHeader: IProtectedHeader, token: IToken): Promise<KeyTypes> | KeyTypes;
8756
+ }
8757
+ /** Flattened JWS verification input. */
8758
+ interface FlattenedJWSInput {
8759
+ /** JWS Unprotected Header as a JSON object. Not integrity protected; omit when empty. */
7753
8760
  header?: JWSHeaderParameters;
7754
- /**
7755
- * The "payload" member MUST be present and contain the value BASE64URL(JWS Payload). When RFC7797
7756
- * "b64": false is used the value passed may also be a {@link !Uint8Array}.
7757
- */
8761
+ /** Base64url-encoded payload; with `b64: false`, supply an unencoded string or Uint8Array. */
8762
+ payload: string | Uint8Array;
8763
+ /** Base64url-encoded UTF-8 JWS Protected Header. Integrity protected; omit when empty. */
8764
+ protected?: string;
8765
+ /** Base64url-encoded signature or MAC. */
8766
+ signature: string;
8767
+ }
8768
+ /** General JWS verification input. */
8769
+ interface GeneralJWSInput {
8770
+ /** Base64url-encoded payload; with `b64: false`, supply an unencoded string or Uint8Array. */
7758
8771
  payload: string | Uint8Array;
7759
8772
  /**
7760
- * The "protected" member MUST be present and contain the value BASE64URL(UTF8(JWS Protected
7761
- * Header)) when the JWS Protected Header value is non-empty; otherwise, it MUST be absent. These
7762
- * Header Parameter values are integrity protected.
8773
+ * The "signatures" member value MUST be an array of JSON objects. Each object represents a
8774
+ * signature or MAC over the JWS Payload and the JWS Protected Header.
7763
8775
  */
7764
- protected?: string;
7765
- /** The "signature" member MUST be present and contain the value BASE64URL(JWS Signature). */
8776
+ signatures: Omit<FlattenedJWSInput, 'payload'>[];
8777
+ }
8778
+ /**
8779
+ * Flattened JWS JSON Serialization token. The payload is an empty string when the
8780
+ * {@link https://www.rfc-editor.org/info/rfc7797/ unencoded payload option} is used.
8781
+ */
8782
+ interface FlattenedJWS extends Partial<FlattenedJWSInput> {
8783
+ payload: string;
7766
8784
  signature: string;
7767
8785
  }
7768
- /** Header Parameters common to JWE and JWS */
8786
+ /**
8787
+ * General JWS JSON Serialization token. The payload is an empty string when the
8788
+ * {@link https://www.rfc-editor.org/info/rfc7797/ unencoded payload option} is used.
8789
+ */
8790
+ interface GeneralJWS {
8791
+ payload: string;
8792
+ signatures: Omit<FlattenedJWSInput, 'payload'>[];
8793
+ }
8794
+ /** Header Parameters common to JWE and JWS. */
7769
8795
  interface JoseHeaderParameters {
7770
8796
  /** "kid" (Key ID) Header Parameter */
7771
8797
  kid?: string;
7772
- /** "x5t" (X.509 Certificate SHA-1 Thumbprint) Header Parameter */
8798
+ /** X.509 certificate SHA-1 thumbprint. */
7773
8799
  x5t?: string;
7774
- /** "x5c" (X.509 Certificate Chain) Header Parameter */
8800
+ /** X.509 certificate chain. */
7775
8801
  x5c?: string[];
7776
- /** "x5u" (X.509 URL) Header Parameter */
8802
+ /** X.509 certificate URL. */
7777
8803
  x5u?: string;
7778
- /** "jku" (JWK Set URL) Header Parameter */
8804
+ /** JWK Set URL. */
7779
8805
  jku?: string;
7780
- /**
7781
- * "jwk" (JSON Web Key) Header Parameter. This must be a public JSON Web Key; private and
7782
- * symmetric key parameters are not permitted.
7783
- */
8806
+ /** Public JWK only; private and symmetric key parameters are not permitted. */
7784
8807
  jwk?: Omit<JWK, 'd' | 'dp' | 'dq' | 'k' | 'p' | 'q' | 'qi' | 'priv' | 'oth'>;
7785
8808
  /** "typ" (Type) Header Parameter */
7786
8809
  typ?: string;
7787
- /** "cty" (Content Type) Header Parameter */
8810
+ /** Content type. */
7788
8811
  cty?: string;
7789
8812
  }
7790
- /** Recognized JWS Header Parameters, any other Header Members may also be present. */
8813
+ /** Recognized JWS Header Parameters; additional members may also be present. */
7791
8814
  interface JWSHeaderParameters extends JoseHeaderParameters {
7792
8815
  /** JWS "alg" (Algorithm) Header Parameter */
7793
8816
  alg?: JWSAlgorithm;
7794
8817
  /**
7795
- * This JWS Extension Header Parameter modifies the JWS Payload representation and the JWS Signing
7796
- * Input computation as per {@link https://www.rfc-editor.org/info/rfc7797/ RFC7797}.
8818
+ * Controls payload encoding and the JWS signing input as defined by
8819
+ * {@link https://www.rfc-editor.org/info/rfc7797/ RFC7797}. Set to `false` and list `b64` in
8820
+ * `crit` to use an unencoded payload.
7797
8821
  */
7798
8822
  b64?: boolean;
7799
- /** JWS "crit" (Critical) Header Parameter */
8823
+ /** Extension parameters that must be recognized. */
7800
8824
  crit?: string[];
7801
8825
  /** Any other JWS Header member. */
7802
8826
  [propName: string]: unknown;
7803
8827
  }
7804
- /** JSON Web Key Set */
8828
+ /** Recognized JWE Key Management-related Header Parameters. */
8829
+ interface JWEKeyManagementHeaderParameters {
8830
+ /** ECDH-ES Agreement PartyUInfo bytes, used in ConcatKDF and added to the JOSE header. */
8831
+ apu?: Uint8Array;
8832
+ /** ECDH-ES Agreement PartyVInfo bytes, used in ConcatKDF and added to the JOSE header. */
8833
+ apv?: Uint8Array;
8834
+ /** PBES2 PBKDF2 iteration count, added to the JOSE header. */
8835
+ p2c?: number;
8836
+ /** @deprecated For testing and vector validation only. */
8837
+ p2s?: Uint8Array;
8838
+ /** @deprecated For testing and vector validation only. */
8839
+ iv?: Uint8Array;
8840
+ /** @deprecated For testing and vector validation only. */
8841
+ epk?: CryptoKey | KeyObject;
8842
+ }
8843
+ /** Flattened JWE JSON Serialization token. */
8844
+ interface FlattenedJWE {
8845
+ /**
8846
+ * Base64url-encoded additional authenticated data; integrity protected but not encrypted. Omit
8847
+ * when empty.
8848
+ */
8849
+ aad?: string;
8850
+ /** Base64url-encoded ciphertext. */
8851
+ ciphertext: string;
8852
+ /** Base64url-encoded encrypted key. Omit when empty. */
8853
+ encrypted_key?: string;
8854
+ /**
8855
+ * JWE Per-Recipient Unprotected Header as a JSON object. Not integrity protected; omit when
8856
+ * empty.
8857
+ */
8858
+ header?: JWEHeaderParameters;
8859
+ /** Base64url-encoded initialization vector. Omit when empty. */
8860
+ iv?: string;
8861
+ /** Base64url-encoded UTF-8 JWE Protected Header. Integrity protected; omit when empty. */
8862
+ protected?: string;
8863
+ /** Base64url-encoded authentication tag. Omit when empty. */
8864
+ tag?: string;
8865
+ /** JWE Shared Unprotected Header as a JSON object. Not integrity protected; omit when empty. */
8866
+ unprotected?: JWEHeaderParameters;
8867
+ }
8868
+ /** General JWE JSON Serialization token. */
8869
+ interface GeneralJWE extends Omit<FlattenedJWE, 'encrypted_key' | 'header'> {
8870
+ recipients: Pick<FlattenedJWE, 'encrypted_key' | 'header'>[];
8871
+ }
8872
+ /** Recognized JWE Header Parameters; additional members may also be present. */
8873
+ interface JWEHeaderParameters extends JoseHeaderParameters {
8874
+ /** JWE "alg" (Algorithm) Header Parameter */
8875
+ alg?: JWEKeyManagementAlgorithm;
8876
+ /** JWE "enc" (Encryption Algorithm) Header Parameter */
8877
+ enc?: JWEContentEncryptionAlgorithm;
8878
+ /** Extension parameters that must be recognized. */
8879
+ crit?: string[];
8880
+ /**
8881
+ * JWE compression algorithm. Only `"DEF"` (DEFLATE) is supported, requiring the runtime's
8882
+ * `CompressionStream` / `DecompressionStream` APIs.
8883
+ */
8884
+ zip?: 'DEF' | (string & {});
8885
+ /** Any other JWE Header member. */
8886
+ [propName: string]: unknown;
8887
+ }
8888
+ /** Shared "crit" option for signing, verification, encryption, and decryption. */
8889
+ interface CritOption {
8890
+ /**
8891
+ * Recognized "crit" (Critical) Header Parameter names. Set each value to `true` to require
8892
+ * integrity protection, or `false` when protection is optional. The JWS `b64` extension is always
8893
+ * recognized and processed.
8894
+ *
8895
+ * > Warning: Other extensions are only checked for syntax and optional integrity protection. Their presence
8896
+ * > is not required by this option. You must check their presence and process them according to the
8897
+ * > profile's validation steps after the operation succeeds.
8898
+ */
8899
+ crit?: {
8900
+ [propName: string]: boolean;
8901
+ };
8902
+ }
8903
+ /** JWE Decryption options. */
8904
+ interface DecryptOptions extends CritOption {
8905
+ /**
8906
+ * Accepted JWE "alg" (Algorithm) Header Parameter values. Defaults to all algorithms applicable
8907
+ * to the key or secret except PBES2, which must be explicitly allowed.
8908
+ */
8909
+ keyManagementAlgorithms?: JWEKeyManagementAlgorithm[];
8910
+ /**
8911
+ * Accepted JWE "enc" (Encryption Algorithm) Header Parameter values. Defaults to all algorithms
8912
+ * applicable to the key or secret.
8913
+ */
8914
+ contentEncryptionAlgorithms?: JWEContentEncryptionAlgorithm[];
8915
+ /**
8916
+ * Maximum "p2c" (PBES2 Count) Header Parameter value, limiting PBKDF2 iterations and their
8917
+ * computational expense. Defaults to 10000; must be a positive safe integer or `Infinity` to
8918
+ * disable the limit.
8919
+ */
8920
+ maxPBES2Count?: number;
8921
+ /**
8922
+ * Maximum decompressed plaintext size in bytes. Defaults to 250000; `0` rejects compressed JWEs,
8923
+ * and `Infinity` disables the limit. Other values must be positive safe integers.
8924
+ */
8925
+ maxDecompressedLength?: number;
8926
+ }
8927
+ /** JWE Encryption options. */
8928
+ interface EncryptOptions extends CritOption {}
8929
+ /** JWT Claims Set verification options. */
8930
+ interface JWTClaimVerificationOptions {
8931
+ /** Expected JWT "aud" (Audience) Claim value(s). Requires the claim to be present. */
8932
+ audience?: string | string[];
8933
+ /**
8934
+ * Clock skew tolerance in seconds or a duration string (e.g. "5 seconds"). Applies to the "nbf"
8935
+ * (Not Before) and "exp" (Expiration Time) claims, and to "iat" (Issued At) when
8936
+ * {@link maxTokenAge} is set.
8937
+ */
8938
+ clockTolerance?: string | number;
8939
+ /** Expected JWT "iss" (Issuer) Claim value(s). Requires the claim to be present. */
8940
+ issuer?: string | string[];
8941
+ /**
8942
+ * Maximum time since the JWT "iat" (Issued At) Claim, in seconds or a duration string (e.g. "2
8943
+ * hours"). Requires the claim to be present.
8944
+ */
8945
+ maxTokenAge?: string | number;
8946
+ /** Expected JWT "sub" (Subject) Claim value. Requires the claim to be present. */
8947
+ subject?: string;
8948
+ /** Expected JWT "typ" (Type) Header Parameter value. Requires the parameter to be present. */
8949
+ typ?: string;
8950
+ /** Date for NumericDate comparisons. Defaults to `new Date()`. */
8951
+ currentDate?: Date;
8952
+ /**
8953
+ * Additional claim names required in the JWT Claims Set. The {@link issuer}, {@link audience},
8954
+ * {@link subject}, and {@link maxTokenAge} options independently require "iss", "aud", "sub", and
8955
+ * "iat", respectively.
8956
+ */
8957
+ requiredClaims?: string[];
8958
+ }
8959
+ /** JWS Verification options. */
8960
+ interface VerifyOptions extends CritOption {
8961
+ /**
8962
+ * Accepted JWS "alg" (Algorithm) Header Parameter values. Defaults to all algorithms applicable
8963
+ * to the key or secret. Unsecured JWTs (`alg: "none"`) are never accepted.
8964
+ */
8965
+ algorithms?: JWSAlgorithm[];
8966
+ }
8967
+ /** JWS Signing options. */
8968
+ interface SignOptions extends CritOption {}
8969
+ /** Recognized JWT Claims Set members; additional members may also be present. */
8970
+ interface JWTPayload {
8971
+ /** JWT Issuer */
8972
+ iss?: string;
8973
+ /** JWT Subject */
8974
+ sub?: string;
8975
+ /** JWT Audience */
8976
+ aud?: string | string[];
8977
+ /** JWT ID */
8978
+ jti?: string;
8979
+ /** Not valid before this Unix timestamp in seconds. */
8980
+ nbf?: number;
8981
+ /** Expiration Unix timestamp in seconds. */
8982
+ exp?: number;
8983
+ /** Issued-at Unix timestamp in seconds. */
8984
+ iat?: number;
8985
+ /** Any other JWT Claim Set member. */
8986
+ [propName: string]: unknown;
8987
+ }
8988
+ /** Flattened JWE JSON Serialization decryption result. */
8989
+ interface FlattenedDecryptResult {
8990
+ /** JWE Additional Authenticated Data, integrity protected but not encrypted. */
8991
+ additionalAuthenticatedData?: Uint8Array;
8992
+ /** Plaintext. */
8993
+ plaintext: Uint8Array;
8994
+ /** JWE Protected Header. */
8995
+ protectedHeader?: JWEHeaderParameters;
8996
+ /** JWE Shared Unprotected Header. Not integrity protected. */
8997
+ sharedUnprotectedHeader?: JWEHeaderParameters;
8998
+ /** JWE Per-Recipient Unprotected Header. Not integrity protected. */
8999
+ unprotectedHeader?: JWEHeaderParameters;
9000
+ }
9001
+ /** General JWE JSON Serialization decryption result. */
9002
+ interface GeneralDecryptResult extends FlattenedDecryptResult {}
9003
+ /** Compact JWE decryption result. */
9004
+ interface CompactDecryptResult {
9005
+ /** Plaintext. */
9006
+ plaintext: Uint8Array;
9007
+ /** JWE Protected Header. */
9008
+ protectedHeader: CompactJWEHeaderParameters;
9009
+ }
9010
+ /** Flattened JWS JSON Serialization verification result. */
9011
+ interface FlattenedVerifyResult {
9012
+ /** JWS Payload. */
9013
+ payload: Uint8Array;
9014
+ /** JWS Protected Header. */
9015
+ protectedHeader?: JWSHeaderParameters;
9016
+ /** JWS Unprotected Header. Not integrity protected. */
9017
+ unprotectedHeader?: JWSHeaderParameters;
9018
+ }
9019
+ /** General JWS JSON Serialization verification result. */
9020
+ interface GeneralVerifyResult extends FlattenedVerifyResult {}
9021
+ /** Compact JWS verification result. */
9022
+ interface CompactVerifyResult {
9023
+ /** JWS Payload. */
9024
+ payload: Uint8Array;
9025
+ /** JWS Protected Header. */
9026
+ protectedHeader: CompactJWSHeaderParameters;
9027
+ }
9028
+ /** Signed JSON Web Token (JWT) verification result. */
9029
+ interface JWTVerifyResult<PayloadType = JWTPayload> {
9030
+ /** JWT Claims Set. */
9031
+ payload: PayloadType & JWTPayload & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never);
9032
+ /** JWS Protected Header. */
9033
+ protectedHeader: JWTHeaderParameters;
9034
+ }
9035
+ /** Encrypted JSON Web Token (JWT) decryption result. */
9036
+ interface JWTDecryptResult<PayloadType = JWTPayload> {
9037
+ /** JWT Claims Set. */
9038
+ payload: PayloadType & JWTPayload & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never);
9039
+ /** JWE Protected Header. */
9040
+ protectedHeader: CompactJWEHeaderParameters;
9041
+ }
9042
+ /** Key resolver result metadata. */
9043
+ interface ResolvedKey<KeyType extends CryptoKey | Uint8Array = CryptoKey | Uint8Array> {
9044
+ /** The resolved key, present only when a key resolver is used. */
9045
+ key: KeyType;
9046
+ }
9047
+ /** Recognized Compact JWS Header Parameters; additional members may also be present. */
9048
+ interface CompactJWSHeaderParameters extends JWSHeaderParameters {
9049
+ alg: JWSAlgorithm;
9050
+ }
9051
+ /** Recognized signed JWT Header Parameters; additional members may also be present. */
9052
+ interface JWTHeaderParameters extends CompactJWSHeaderParameters {
9053
+ b64?: boolean;
9054
+ }
9055
+ /** Recognized Compact JWE Header Parameters; additional members may also be present. */
9056
+ interface CompactJWEHeaderParameters extends JWEHeaderParameters {
9057
+ alg: JWEKeyManagementAlgorithm;
9058
+ enc: JWEContentEncryptionAlgorithm;
9059
+ }
9060
+ /** JSON Web Key Set. */
7805
9061
  interface JSONWebKeySet {
7806
9062
  keys: JWK[];
7807
9063
  }
7808
- /**
7809
- * {@link !CryptoKey} is a representation of a key/secret available in all supported runtimes. In
7810
- * addition to the {@link key/import Key Import Functions} you may use the
7811
- * {@link !SubtleCrypto.importKey} API to obtain a {@link !CryptoKey} from your existing key
7812
- * material.
7813
- */
9064
+ /** Node.js {@link !KeyObject} representation accepted as key input. */
9065
+ interface KeyObject {
9066
+ type: string;
9067
+ }
9068
+ /** The runtime's Web Crypto {@link !CryptoKey} representation accepted as key input. */
7814
9069
  type CryptoKey = typeof globalThis extends {
7815
9070
  crypto: {
7816
9071
  subtle: {
@@ -7820,12 +9075,7 @@ type CryptoKey = typeof globalThis extends {
7820
9075
  } ? Extract<R, {
7821
9076
  type: string;
7822
9077
  }> : CryptoKeyStructuralFallback;
7823
- /**
7824
- * Used as {@link CryptoKey} when the host runtime's `crypto` global is not exposed on `typeof
7825
- * globalThis`, including when it is absent from ambient types or declared with `const` or `let`. It
7826
- * remains structurally compatible with host {@link !CryptoKey} declarations so values flow freely to
7827
- * and from {@link !SubtleCrypto} APIs.
7828
- */
9078
+ /** Structural fallback used when the host {@link !CryptoKey} type cannot be inferred. */
7829
9079
  interface CryptoKeyStructuralFallback {
7830
9080
  readonly algorithm: {
7831
9081
  name: string;
@@ -7834,56 +9084,99 @@ interface CryptoKeyStructuralFallback {
7834
9084
  readonly type: string;
7835
9085
  readonly usages: string[];
7836
9086
  }
9087
+ /** Shared fluent API for JWT-producing classes. */
9088
+ interface ProduceJWT {
9089
+ /**
9090
+ * Set the "iss" (Issuer) Claim.
9091
+ *
9092
+ * @param issuer "Issuer" Claim value to set on the JWT Claims Set.
9093
+ */
9094
+ setIssuer(issuer: string): this;
9095
+ /**
9096
+ * Set the "sub" (Subject) Claim.
9097
+ *
9098
+ * @param subject "sub" (Subject) Claim value to set on the JWT Claims Set.
9099
+ */
9100
+ setSubject(subject: string): this;
9101
+ /**
9102
+ * Set the "aud" (Audience) Claim.
9103
+ *
9104
+ * @param audience "aud" (Audience) Claim value to set on the JWT Claims Set.
9105
+ */
9106
+ setAudience(audience: string | string[]): this;
9107
+ /**
9108
+ * Set the "jti" (JWT ID) Claim.
9109
+ *
9110
+ * @param jwtId "jti" (JWT ID) Claim value to set on the JWT Claims Set.
9111
+ */
9112
+ setJti(jwtId: string): this;
9113
+ /**
9114
+ * Set the "nbf" (Not Before) Claim. Numbers are Unix timestamps in seconds; Dates are converted
9115
+ * to seconds. Strings are relative to now, using seconds, minutes, hours, days, weeks, or years
9116
+ * (365.25 days; no months). Prefix `-` or suffix `ago` subtracts the duration.
9117
+ *
9118
+ * @param input "nbf" (Not Before) Claim value as a timestamp, Date, or relative duration.
9119
+ */
9120
+ setNotBefore(input: number | string | Date): this;
9121
+ /**
9122
+ * Set the "exp" (Expiration Time) Claim. Accepts a Unix timestamp in seconds, a Date, or a
9123
+ * duration relative to now using the same formats as {@link setNotBefore}.
9124
+ *
9125
+ * @param input "exp" (Expiration Time) Claim value as a timestamp, Date, or relative duration.
9126
+ */
9127
+ setExpirationTime(input: number | string | Date): this;
9128
+ /**
9129
+ * Set the "iat" (Issued At) Claim. Defaults to the current Unix timestamp in seconds. Accepts a
9130
+ * Unix timestamp in seconds, a Date, or a duration relative to now using the same formats as
9131
+ * {@link setNotBefore}.
9132
+ *
9133
+ * @param input "iat" (Issued At) Claim value as a timestamp, Date, or relative duration.
9134
+ */
9135
+ setIssuedAt(input?: number | string | Date): this;
9136
+ }
7837
9137
  //#endregion
7838
9138
  //#region node_modules/jose/dist/types/jwks/remote.d.ts
7839
9139
  /**
7840
- * When passed to {@link jwks/remote.createRemoteJWKSet createRemoteJWKSet} this allows the resolver
7841
- * to make use of advanced fetch configurations, HTTP Proxies, retry on network errors, etc.
9140
+ * Configures a custom fetch implementation for remote JWKS retrieval.
7842
9141
  *
7843
- * > Note: Known caveat: Expect Type-related issues when passing the inputs through to fetch-like modules,
7844
- * > they hardly ever get their typings inline with actual fetch, you should `@ts-expect-error` them.
9142
+ * > Note: Fetch-like libraries may have incompatible TypeScript signatures even when they accept the
9143
+ * > supplied arguments at runtime.
7845
9144
  */
7846
9145
  declare const customFetch: unique symbol;
7847
- /** See {@link customFetch}. */
9146
+ /** Custom fetch function. Must return HTTP 200 with a JSON JWKS. See {@link customFetch}. */
7848
9147
  type FetchImplementation = (
7849
- /** URL the request is being made sent to {@link !fetch} as the `resource` argument */
9148
+ /** JWKS URL, passed as the fetch resource. */
7850
9149
  url: string,
7851
- /** Options otherwise sent to {@link !fetch} as the `options` argument */
9150
+ /** Options passed to fetch. */
7852
9151
  options: {
7853
- /** HTTP Headers */
7854
9152
  headers: Headers;
7855
- /** The {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods request method} */
7856
9153
  method: 'GET';
7857
9154
  /** See {@link !Request.redirect} */
7858
9155
  redirect: 'manual';
7859
9156
  signal: AbortSignal;
7860
9157
  }) => Promise<Response>;
7861
9158
  /**
7862
- * > Warning: This option has security implications that must be understood, assessed for applicability, and
7863
- * > accepted before use. It is critical that the JSON Web Key Set cache only be writable by your own
7864
- * > code.
9159
+ * Symbol used to configure an externally persisted remote JWKS cache.
7865
9160
  *
7866
- * This option is intended for cloud computing runtimes that cannot keep an in memory cache between
7867
- * their code's invocations. The supplied writable object seeds the resolver's cache and is updated
7868
- * with `jwks` and `uat` after a successful fetch; persist it whenever `uat` changes. Using this in
7869
- * runtimes that can keep an in-memory cache between requests is not desirable.
9161
+ * > Warning: Only trusted application code must be allowed to write this cache; its keys are trusted for
9162
+ * > signature verification.
7870
9163
  */
7871
9164
  declare const jwksCache: unique symbol;
7872
- /** Options for the remote JSON Web Key Set. */
9165
+ /** Remote JWKS resolver options. */
7873
9166
  interface RemoteJWKSetOptions {
7874
9167
  /**
7875
9168
  * Timeout (in milliseconds) for the HTTP request. When reached the request will be aborted and
7876
- * the verification will fail. Default is 5000 (5 seconds).
9169
+ * the verification will fail. Must be a non-negative integer. Default is 5000 (5 seconds).
7877
9170
  */
7878
9171
  timeoutDuration?: number;
7879
9172
  /**
7880
- * Duration (in milliseconds) for which no more HTTP requests will be triggered after a previous
7881
- * successful fetch. Default is 30000 (30 seconds).
9173
+ * Time in milliseconds after a successful fetch before a missing key can trigger another fetch.
9174
+ * Must not be `NaN`. Defaults to 30000 (30 seconds).
7882
9175
  */
7883
9176
  cooldownDuration?: number;
7884
9177
  /**
7885
- * Maximum time (in milliseconds) between successful HTTP requests. Default is 600000 (10
7886
- * minutes).
9178
+ * Maximum age of cached keys in milliseconds. Defaults to 600000 (10 minutes); `Infinity`
9179
+ * disables expiry. Must not be `NaN`.
7887
9180
  */
7888
9181
  cacheMaxAge?: number | typeof Infinity;
7889
9182
  /** Headers to be sent with the HTTP request. */
@@ -7893,16 +9186,16 @@ interface RemoteJWKSetOptions {
7893
9186
  /** See {@link customFetch}. */
7894
9187
  [customFetch]?: FetchImplementation;
7895
9188
  }
7896
- /** See {@link jwksCache}. */
9189
+ /** Shape of an externally persisted remote JWKS cache. */
7897
9190
  interface ExportedJWKSCache {
7898
9191
  /** Current cached JSON Web Key Set */
7899
9192
  jwks: JSONWebKeySet;
7900
- /** Last updated at timestamp (seconds since epoch) */
9193
+ /** Last successful fetch, in milliseconds since Unix epoch. */
7901
9194
  uat: number;
7902
9195
  }
7903
- /** See {@link jwksCache}. */
9196
+ /** Values accepted by the {@link jwksCache} option. */
7904
9197
  type JWKSCacheInput = ExportedJWKSCache | Record<string, never>;
7905
- /** The key resolution function returned by {@link createRemoteJWKSet}. */
9198
+ /** A key resolver created by {@link createRemoteJWKSet}. */
7906
9199
  interface RemoteJWKSet {
7907
9200
  (protectedHeader?: JWSHeaderParameters, token?: FlattenedJWSInput): Promise<CryptoKey>;
7908
9201
  /** Whether the cooldown window following the last successful fetch is still in effect. */
@@ -7920,25 +9213,20 @@ interface RemoteJWKSet {
7920
9213
  */
7921
9214
  reload: () => Promise<void>;
7922
9215
  /**
7923
- * The currently cached JSON Web Key Set, or `undefined` when none has been fetched or seeded via
7924
- * {@link jwksCache} yet.
9216
+ * Returns a structured clone of the cached JSON Web Key Set, or `undefined` before keys have been
9217
+ * fetched or seeded via {@link jwksCache}.
7925
9218
  */
7926
9219
  jwks: () => JSONWebKeySet | undefined;
7927
9220
  }
7928
9221
  /**
7929
- * Returns a function that resolves a JWS JOSE Header to a public key object downloaded from a
7930
- * remote endpoint returning a JSON Web Key Set, that is, for example, an OAuth 2.0 or OIDC
7931
- * jwks_uri. The JSON Web Key Set is fetched when no key matches the selection process but only as
7932
- * frequently as the `cooldownDuration` option allows to prevent abuse. Selection respects the
7933
- * header's "alg" (Algorithm) and "kid" (Key ID) as well as the JWK's "use" (Public Key Use) and
7934
- * "key_ops" (Key Operations). Exactly one key must match; if multiple keys match, the thrown
7935
- * `JWKSMultipleMatchingKeys` can be iterated.
9222
+ * Creates a resolver for a JSON Web Key Set available at an HTTP(S) URL. Fetches the JSON Web Key
9223
+ * Set when the cache is missing or stale. An unmatched key triggers another fetch only when
9224
+ * `cooldownDuration` has elapsed since the last successful fetch. Selection uses the header's "alg"
9225
+ * and "kid" and respects the JWK's "use" and "key_ops". Exactly one key must match.
7936
9226
  *
7937
- * > Note: The function's purpose is to resolve public keys used for verifying signatures and will not work
7938
- * > for public encryption keys.
9227
+ * > Note: Only public signature verification keys are supported, not public encryption keys.
7939
9228
  *
7940
9229
  * @param url URL to fetch the JSON Web Key Set from.
7941
- * @param options Options for the remote JSON Web Key Set.
7942
9230
  */
7943
9231
  declare function createRemoteJWKSet(url: URL, options?: RemoteJWKSetOptions): RemoteJWKSet;
7944
9232
  //#endregion
@@ -7990,6 +9278,7 @@ declare class UserManagement {
7990
9278
  private readonly workos;
7991
9279
  private _jwks;
7992
9280
  clientId: string | undefined;
9281
+ issuer: string | string[] | undefined;
7993
9282
  constructor(workos: WorkOS);
7994
9283
  /**
7995
9284
  * Resolve clientId from method options or fall back to constructor-provided value.
@@ -10058,6 +11347,14 @@ declare class WorkOS {
10058
11347
  }>;
10059
11348
  delete(path: string, query?: Record<string, string | number | boolean | undefined>): Promise<void>;
10060
11349
  deleteWithBody<Entity = any>(path: string, entity: Entity): Promise<void>;
11350
+ /**
11351
+ * Consume a successful response body. The request deadline covers the body,
11352
+ * so a stall while it is still streaming surfaces from the transport as a
11353
+ * 408 `HttpClientError` and is translated like a timeout before the headers.
11354
+ * Everything else (a `ParseError` for malformed JSON, a network failure
11355
+ * mid-body) propagates unchanged.
11356
+ */
11357
+ private readResponseJSON;
10061
11358
  emitWarning(warning: string): void;
10062
11359
  private handleHttpError;
10063
11360
  }
@@ -10687,5 +11984,5 @@ interface ConfidentialClientOptions extends WorkOSOptions {
10687
11984
  declare function createWorkOS(options: PublicClientOptions): PublicWorkOS;
10688
11985
  declare function createWorkOS(options: ConfidentialClientOptions): WorkOS;
10689
11986
  //#endregion
10690
- export { ReadObjectMetadataResponse as $, GroupUpdatedEvent as $a, Group as $c, AuthenticationEventResponse as $d, ProfileAndToken as $f, AuthenticationSSOFailedEvent as $i, SerializedUpdateUserOptions as $l, CreatePermissionOptions as $m, AgentToken as $n, PipesConnectedAccountConnectionFailedEventResponse as $o, ListGroupRoleAssignmentsOptions as $p, OrganizationResponse as $r, UpdateCustomProviderDefinitionAuthenticateVia as $s, PasswordlessSessionResponse as $t, BaseOrganizationMembership as $u, ApiKeyRequiredException as A, EmailVerificationCreatedEventResponse as Aa, DataIntegrationAccessTokenResponse as Ac, CreateMagicAuthOptions as Ad, SerializedAuthenticateWithOrganizationSelectionOptions as Af, DirectoryState as Ah, ApiKeyRevokedEventResponse as Ai, CreateOrganizationApiKeyOptions as Al, SerializedListResourcesForMembershipOptions as Am, CompleteOAuth2Options as An, OrganizationMembershipUpdatedResponse as Ao, ListEffectivePermissionsOptions as Ap, CreateAgentBlueprintOptions as Ar, VaultDataDeletedEventResponse as As, SerializedAuditLogExportOptions as At, CreateMagicAuthResponseResponse as Au, ObjectSummaryResponse as B, FlagRuleUpdatedEventResponse as Ba, DataIntegrationCredentialsDtoResponse as Bc, AuthenticationFactorWithSecretsResponse as Bd, AuthenticateUserWithEmailVerificationCredentials as Bf, ResponseHeaderValue as Bh, AuthenticationOAuthFailedEventResponse as Bi, OrganizationDomainVerificationStrategy as Bl, ListAuthorizationResourcesOptions as Bm, InvalidAgentCredential as Bn, PasswordResetCreatedEventResponse as Bo, RemoveGroupRoleAssignmentsOptions as Bp, PKCEPair as Br, VaultKekCreatedEventResponse as Bs, RadarStandaloneResponse as Bt, WaitlistEntryResponse as Bu, BadRequestException as C, DsyncUserCreatedEvent as Ca, DataIntegrationCredentialsResponseCredential as Cc, CreateUserApiKeyOptions as Cd, AuthenticateWithRefreshTokenOptions as Cf, ListDirectoriesOptions as Ch, List as Ci, AddFlagTargetOptions as Cl, RoleAssignmentSource as Cm, CreateM2MApplication as Cn, OrganizationDomainVerifiedEvent as Co, OrganizationRoleResponse as Cp, AgentInstanceSessionStatus as Cr, UserUpdatedEvent as Cs, AuditLogSchema as Ct, RetryableRefreshSessionFailureReason as Cu, isAuthenticationErrorData as D, DsyncUserUpdatedEvent as Da, DataIntegrationCredentialType as Dc, SerializedCreatePasswordResetOptions as Dd, SerializedAuthenticateWithPasswordOptions as Df, DirectoryGroupResponse as Dh, ApiKeyCreatedEvent as Di, ListOrganizationApiKeysOptions as Dl, ListResourcesForMembershipOptions as Dm, RedirectUriInput as Dn, OrganizationMembershipDeleted as Do, RoleList as Dp, AgentBlueprint as Dr, VaultDataCreatedEvent as Ds, AuditLogExport as Dt, PasswordResetEventResponse as Du, AuthenticationException as E, DsyncUserDeletedEventResponse as Ea, DataIntegrationCredentialResponse as Ec, CreatePasswordResetOptions as Ed, AuthenticateWithPasswordOptions as Ef, DirectoryGroup as Eh, GenerateLinkIntent as Ei, ValidateApiKeyResponse as El, ListMembershipsForResourceOptions as Em, CreateOAuthApplicationResponse as En, OrganizationMembershipCreatedResponse as Eo, RoleEventResponse as Ep, SerializedListAgentInstanceSessionsOptions as Er, VaultByokKeyVerificationCompletedEventResponse as Es, AuditLogTargetSchema as Et, PasswordResetEvent as Eu, UpdateWebhookEndpointEvents as F, FlagCreatedEvent as Fa, CreateDataIntegrationOptions as Fc, AuthenticationRadarRiskDetectedEventResponseData as Fd, AuthenticateWithRadarEmailChallengeOptions as Ff, HttpClient as Fh, AuthenticationMagicAuthSucceededEvent as Fi, OrganizationDomainVerificationFailed as Fl, SerializedAuthorizationCheckOptions as Fm, UserObject as Fn, OrganizationRoleUpdatedEvent as Fo, GroupRoleAssignmentEntryWithResourceId as Fp, SerializedCreateAgentBlueprintOptions as Fr, VaultDekDecryptedEvent as Fs, Challenge as Ft, LogoutURLOptions as Fu, ObjectMetadata as G, GroupDeletedEvent as Ga, ConnectedAccountState as Gc, FactorWithSecretsResponse as Gd, AuthenticateUserWithCodeCredentials as Gf, AuthenticationPasskeySucceededEvent as Gi, SerializedVerifyEmailOptions as Gl, CreateOptionsWithParentExternalId as Gm, ValidateAgentAccessTokenOptions as Gn, PermissionDeletedEvent as Go, RemoveGroupRoleAssignmentOptions as Gp, ActionContext as Gr, DataKey as Gs, RadarListAction as Gt, SerializedListUserApiKeysOptions as Gu, ObjectVersionResponse as H, FlagUpdatedEventResponse as Ha, CreateDataIntegrationCredentialOptions as Hc, FactorResponse as Hd, SerializedAuthenticateWithEmailVerificationOptions as Hf, CryptoProvider as Hh, AuthenticationOAuthSucceededEventResponse as Hi, SerializedCreateOrganizationDomainOptions as Hl, AuthorizationResource as Hm, SerializedAgentCredentialValidation as Hn, PasswordResetSucceededEventResponse as Ho, RemoveGroupRoleAssignmentsOptionsWithResourceExternalId as Hp, AuthenticationActionResponseData as Hr, VaultMetadataReadEventResponse as Hs, RadarStandaloneResponseBlocklistType as Ht, ListUsersOptions as Hu, UpdateWebhookEndpointStatus as I, FlagCreatedEventResponse as Ia, CustomProviderDefinition as Ic, AuthenticationFactor as Id, SerializedAuthenticateWithRadarEmailChallengeOptions as If, HttpClientInterface as Ih, AuthenticationMagicAuthSucceededEventResponse as Ii, OrganizationDomainVerificationFailedResponse as Il, DeleteAuthorizationResourceOptions as Im, UserObjectResponse as In, OrganizationRoleUpdatedEventResponse as Io, ReplaceGroupRoleAssignmentsOptions as Ip, SerializedUpdateAgentBlueprintOptions as Ir, VaultDekDecryptedEventResponse as Is, ChallengeResponse as It, Locale as Iu, ActorResponse as J, GroupMemberAddedEventResponse as Ja, SerializedUpdateGroupOptions as Jc, TotpWithSecrets as Jd, AuthenticateWithOptionsBase as Jf, AuthenticationPasswordFailedEventResponse as Ji, UserApiKeyWithValue as Jl, SerializedUpdateAuthorizationResourceOptions as Jm, ClaimAttemptOrganization as Jn, PermissionUpdatedEventResponse as Jo, CreateGroupRoleAssignmentOptionsForOrganization as Jp, UserDataPayload as Jr, UpdateUserConnectedAccountOptions as Js, RadarStandaloneAssessRequestAuthMethod as Jt, SerializedListSessionsOptions as Ju, ObjectMetadataResponse as K, GroupDeletedEventResponse as Ka, ConnectedAccountAuthMethod as Kc, Totp as Kd, AuthenticateWithCodeOptions as Kf, AuthenticationPasskeySucceededEventResponse as Ki, VerifyEmailOptions as Kl, CreateOptionsWithParentResourceId as Km, ValidateAgentApiKeyOptions as Kn, PermissionDeletedEventResponse as Ko, BaseCreateGroupRoleAssignmentOptions as Kp, ActionPayload as Kr, DataKeyPair as Ks, RadarListType as Kt, ListUserFeatureFlagsOptions as Ku, CreateWebhookEndpointEvents as L, FlagDeletedEvent as La, CustomProviderDefinitionResponse as Lc, AuthenticationFactorResponse as Ld, AuthenticateUserWithMagicAuthCredentials as Lf, HttpClientResponseInterface as Lh, AuthenticationMfaSucceededEvent as Li, OrganizationDomain as Ll, DeleteAuthorizationResourceByExternalIdOptions as Lm, AgentAccessTokenClaims as Ln, OrganizationUpdatedEvent as Lo, SerializedGroupRoleAssignmentEntry as Lp, UpdateAgentBlueprintOptions as Lr, VaultDekReadEvent as Ls, ChallengeFactorOptions as Lt, ListWaitlistEntriesOptions as Lu, WebhookEndpoint as M, EventBase as Ma, DataIntegrationAccessTokenResponseAccessToken as Mc, PKCEAuthorizationURLResult as Md, AuthenticateWithRadarSmsChallengeOptions as Mf, DirectoryType as Mh, AuthenticationEmailVerificationSucceededEventResponse as Mi, SerializedCreateOrganizationApiKeyOptions as Ml, AuthorizationCheckOptionsWithResourceExternalId as Mm, UserConsentOptionResponse as Mn, OrganizationRoleCreatedEventResponse as Mo, GroupRoleAssignmentEntry as Mp, SerializedAgentBlueprint as Mr, VaultDataReadEventResponse as Ms, VerifyResponseResponse as Mt, MagicAuthEvent as Mu, WebhookEndpointResponse as N, EventName as Na, DataIntegrationAccessTokenResponseAccessTokenResponse as Nc, UserManagementAuthorizationURLOptions as Nd, SerializedAuthenticateWithRadarSmsChallengeOptions as Nf, EventDirectory as Nh, AuthenticationMagicAuthFailedEvent as Ni, ApiKey as Nl, AuthorizationCheckOptionsWithResourceId as Nm, UserConsentOptionChoice as Nn, OrganizationRoleDeletedEvent as No, GroupRoleAssignmentEntryForOrganization as Np, SerializedAgentBlueprintInvocableBy as Nr, VaultDataUpdatedEvent as Ns, VerifyChallengeOptions as Nt, MagicAuthEventResponse as Nu, GenericServerException as O, DsyncUserUpdatedEventResponse as Oa, DataIntegrationAuthorizeUrlResponse as Oc, CreateOrganizationMembershipOptions as Od, AuthenticateUserWithOrganizationSelectionCredentials as Of, Directory as Oh, ApiKeyCreatedEventResponse as Oi, CreatedApiKey as Ol, ListResourcesForMembershipOptionsWithParentExternalId as Om, RedirectUriInputResponse as On, OrganizationMembershipDeletedResponse as Oo, RoleResponse as Op, AgentBlueprintInvocableBy as Or, VaultDataCreatedEventResponse as Os, AuditLogExportResponse as Ot, PasswordResetResponse as Ou, WebhookEndpointStatus as P, EventResponse as Pa, CreateUserConnectedAccountOptions as Pc, AuthenticationRadarRiskDetectedEventData as Pd, AuthenticateUserWithRadarEmailChallengeCredentials as Pf, EventDirectoryResponse as Ph, AuthenticationMagicAuthFailedEventResponse as Pi, SerializedApiKey as Pl, AuthorizationCheckResult as Pm, UserConsentOptionChoiceResponse as Pn, OrganizationRoleDeletedEventResponse as Po, GroupRoleAssignmentEntryWithResourceExternalId as Pp, SerializedAgentBlueprintSessionSettings as Pr, VaultDataUpdatedEventResponse as Ps, EnrollFactorOptions as Pt, MagicAuthResponse as Pu, UpdateObjectOptions as Q, GroupMemberRemovedEventResponse as Qa, ListGroupOrganizationMembershipsOptions as Qc, AuthenticationEvent as Qd, WithResolvedClientId as Qf, AuthenticationRadarRiskDetectedEventResponse as Qi, UpdateUserPasswordOptions as Ql, UpdatePermissionOptions as Qm, SerializedLinkClaimAttemptToExternalUserOptions as Qn, PipesConnectedAccountConnectionFailedEvent as Qo, GetGroupRoleAssignmentOptions as Qp, Organization as Qr, UpdateCustomProviderDefinitionResponse as Qs, PasswordlessSession as Qt, AuthorizationOrganizationMembershipResponse as Qu, WorkOS as R, FlagDeletedEventResponse as Ra, CustomProviderDefinitionAuthenticateVia as Rc, AuthenticationFactorType as Rd, AuthenticateWithMagicAuthOptions as Rf, RequestHeaders as Rh, AuthenticationMfaSucceededEventResponse as Ri, OrganizationDomainResponse as Rl, UpdateAuthorizationResourceByExternalIdOptions as Rm, AgentCredentialType as Rn, OrganizationUpdatedResponse as Ro, SerializedReplaceGroupRoleAssignmentsOptions as Rp, AutoPaginatable as Rr, VaultDekReadEventResponse as Rs, RadarListEntryAlreadyPresentResponse as Rt, SerializedListWaitlistEntriesOptions as Ru, ConflictException as S, DsyncGroupUserRemovedEventResponse as Sa, DataIntegrationCredentialsResponseError as Sc, SerializedCreateUserOptions as Sd, AuthenticateUserWithRefreshTokenCredentials as Sf, ListDirectoryGroupsOptions as Sh, PatchOptions as Si, TypedEvaluationContext as Sl, RoleAssignmentRole as Sm, CreateApplicationOptions as Sn, OrganizationDomainVerificationFailedEventResponse as So, OrganizationRoleEventResponse as Sp, AgentInstanceSession as Sr, UserDeletedEventResponse as Ss, AuditLogActorSchema as St, RefreshSessionResponse as Su, AuthenticationErrorData as T, DsyncUserDeletedEvent as Ta, DataIntegrationCredential as Tc, SerializedCreateUserApiKeyOptions as Td, AuthenticateUserWithPasswordCredentials as Tf, PaginationOptions as Th, GetOptions as Ti, ValidateApiKeyOptions as Tl, ListMembershipsForResourceByExternalIdOptions as Tm, CreateOAuthApplication as Tn, OrganizationMembershipCreated as To, RoleEvent as Tp, SerializedAgentInstanceSession as Tr, VaultByokKeyVerificationCompletedEvent as Ts, AuditLogSchemaResponse as Tt, PasswordReset as Tu, VaultObject as U, GroupCreatedEvent as Ua, ConnectedAccount as Uc, FactorType as Ud, AuthenticateWithCodeAndVerifierOptions as Uf, AuthenticationPasskeyFailedEvent as Ui, Waitlist as Ul, AuthorizationResourceResponse as Um, SerializedValidateAgentCredentialOptions as Un, PermissionCreatedEvent as Uo, RemoveGroupRoleAssignmentsOptionsWithResourceId as Up, ResponsePayload as Ur, VaultNamesListedEvent as Us, RadarStandaloneResponseControl as Ut, SerializedListUsersOptions as Uu, ObjectVersion as V, FlagUpdatedEvent as Va, DataIntegrationCredentialsType as Vc, Factor as Vd, AuthenticateWithEmailVerificationOptions as Vf, ResponseHeaders as Vh, AuthenticationOAuthSucceededEvent as Vi, CreateOrganizationDomainOptions as Vl, SerializedListAuthorizationResourcesOptions as Vm, SerializedAgentAccessTokenClaims as Vn, PasswordResetSucceededEvent as Vo, RemoveGroupRoleAssignmentsOptionsForOrganization as Vp, Actions as Vr, VaultMetadataReadEvent as Vs, RadarStandaloneResponseWire as Vt, WaitlistEntryState as Vu, VaultObjectResponse as W, GroupCreatedEventResponse as Wa, ConnectedAccountResponse as Wc, FactorWithSecrets as Wd, SerializedAuthenticateWithCodeAndVerifierOptions as Wf, AuthenticationPasskeyFailedEventResponse as Wi, WaitlistResponse as Wl, CreateAuthorizationResourceOptions as Wm, ValidAgentCredential as Wn, PermissionCreatedEventResponse as Wo, SerializedRemoveGroupRoleAssignmentsOptions as Wp, UserRegistrationActionResponseData as Wr, VaultNamesListedEventResponse as Ws, RadarStandaloneResponseVerdict as Wt, ListUserApiKeysOptions as Wu, CreateDataKeyResponseWire as X, GroupMemberEventResponseData as Xa, RemoveGroupOrganizationMembershipOptions as Xc, Sms as Xd, SerializedAuthenticatePublicClientBase as Xf, AuthenticationPasswordSucceededEventResponse as Xi, UserApiKey as Xl, ListPermissionsOptions as Xm, LinkClaimAttemptToExternalUserOptions as Xn, PipesConnectedAccountConnectedEvent as Xo, CreateGroupRoleAssignmentOptionsWithResourceId as Xp, SerializedUpdateOrganizationOptions as Xr, UpdateDataIntegrationApiKeyOptions as Xs, CreatePasswordlessSessionOptions as Xt, SerializedListOrganizationMembershipsOptions as Xu, CreateDataKeyResponse as Y, GroupMemberEventData as Ya, UpdateGroupOptions as Yc, TotpWithSecretsResponse as Yd, AuthenticateWithSessionOptions as Yf, AuthenticationPasswordSucceededEvent as Yi, SerializedUserApiKey as Yl, UpdateAuthorizationResourceOptions as Ym, ClaimAttemptResponse as Yn, PipesConnectedAccount as Yo, CreateGroupRoleAssignmentOptionsWithResourceExternalId as Yp, UserRegistrationActionPayload as Yr, UpdateDataIntegrationOptions as Ys, SendSessionResponse as Yt, ListOrganizationMembershipsOptions as Yu, UpdateObjectEntity as Z, GroupMemberRemovedEvent as Za, ListGroupsOptions as Zc, SmsResponse as Zd, SerializedAuthenticateWithOptionsBase as Zf, AuthenticationRadarRiskDetectedEvent as Zi, SerializedUpdateUserPasswordOptions as Zl, SerializedUpdatePermissionOptions as Zm, SerializedClaimAttemptResponse as Zn, PipesConnectedAccountConnectedEventResponse as Zo, SerializedCreateGroupRoleAssignmentOptions as Zp, UpdateOrganizationOptions as Zr, UpdateCustomProviderDefinition as Zs, SerializedCreatePasswordlessSessionOptions as Zt, AuthorizationOrganizationMembership as Zu, SignatureVerificationException as _, DsyncGroupUpdatedEvent as _a, DataIntegrationResponse as _c, EmailVerificationEventResponse as _d, UserResponse as _f, EnvironmentRole as _h, WorkOSResponseError as _i, FeatureFlag as _l, SerializedListRoleAssignmentsOptions as _m, CreateApplicationClientSecretOptions as _n, OrganizationDomainDeletedEvent as _o, DirectoryUserResponse as _p, AgentInstance as _r, SessionRevokedEventResponse as _s, AuditLogActor as _t, ResetPasswordOptions as _u, PublicWorkOS as a, ConnectionDeactivatedEvent as aa, DeleteDataIntegrationOptions as ac, SerializedListInvitationsOptions as ad, AuthenticateWithSessionCookieFailedResponse as af, SetOrganizationRolePermissionsOptions as ah, DeleteItContactOptions as ai, AddGroupOrganizationMembershipOptions as al, RemoveRoleOptionsWithResourceExternalId as am, ApplicationCredentialsListItemResponse as an, InvitationResentEvent as ao, ListConnectionsOptions as ap, SerializedAgentToken as ar, PipesConnectedAccountState as as, DecryptDataKeyResponse as at, SessionResponse as au, NotFoundException as b, DsyncGroupUserAddedEventResponse as ba, DataIntegrationCustomProviderResponse as bc, SerializedCreateWaitlistEntryOptions as bd, AuthenticateWithRefreshTokenPublicClientOptions as bf, EnvironmentRoleResponse as bh, PutOptions as bi, EvaluationResource as bl, RoleAssignmentResourceResponse as bm, UpdateApplicationOptions as bn, OrganizationDomainUpdatedEventResponse as bo, ListOrganizationRolesResponse as bp, SerializedAgentInstance as br, UserCreatedEventResponse as bs, CreateAuditLogEventRequestOptions as bt, SerializedResendInvitationOptions as bu, PortalLinkResponseWire as c, ConnectionDeletedEventResponse as ca, DataIntegrationsListResponseData as cc, Invitation as cd, AuthenticateWithSessionCookieSuccessResponse as cf, CreateOrganizationRoleOptions as ch, ListItContactsOptions as ci, RuntimeClientLogger as cl, AssignRoleOptions as cm, ConnectApplicationM2MResponse as cn, InvitationRevokedEventResponse as co, GetProfileOptions as cp, AgentRegistration as cr, RoleCreatedEvent as cs, WidgetSessionTokenResponseWire as ct, SendRadarSmsChallengeOptions as cu, IntentOptions as d, DsyncDeletedEvent as da, DataIntegrationsListResponseDataConnectedAccount as dc, InvitationResponse as dd, AuthenticationMethod as df, AddEnvironmentRolePermissionOptions as dh, SerializedInviteItContactOptions as di, ListFeatureFlagsOptions as dl, BaseAssignRoleOptions as dm, ConnectApplicationResponse as dn, OrganizationCreatedEvent as do, ConnectionResponse as dp, AgentRegistrationKind as dr, RoleDeletedEventResponse as ds, FeatureFlagsRuntimeClient as dt, SerializedSendRadarSmsChallengeOptions as du, AuthenticationSSOFailedEventResponse as ea, ListUserDataProvidersOptions as ec, BaseOrganizationMembershipResponse as ed, AuthenticationEventSso as ef, SerializedCreatePermissionOptions as eh, ListOrganizationsOptions as ei, GroupResponse as el, GroupRoleAssignment as em, ListEventOptions as en, GroupUpdatedEventResponse as eo, ProfileAndTokenResponse as ep, MintAgentDelegatedAgentTokenOptions as er, PipesConnectedAccountDisconnectedEvent as es, ReadObjectOptions as et, UpdateUserOptions as eu, IntentOptionsResponse as f, DsyncDeletedEventResponse as fa, DataIntegrationsListResponseDataConnectedAccountResponse as fc, Identity as fd, AuthenticationResponse as ff, SetEnvironmentRolePermissionsOptions as fh, CreateOrganizationOptions as fi, FlagChange as fl, SerializedAssignRoleOptions as fm, ConnectApplicationRedirectUri as fn, OrganizationCreatedResponse as fo, ConnectionType as fp, AgentRegistrationStatus as fr, RoleUpdatedEvent as fs, CookieSession as ft, SendInvitationOptions as fu, UnauthorizedException as g, DsyncGroupDeletedEventResponse as ga, DataIntegration as gc, EmailVerificationEvent as gd, User as gf, SerializedCreateEnvironmentRoleOptions as gh, DomainDataState as gi, FlagTarget as gl, ListRoleAssignmentsOptions as gm, DeleteClientSecretOptions as gn, OrganizationDomainCreatedEventResponse as go, DirectoryUser as gp, SerializedAgentRegistrationClaimCompletion as gr, SessionRevokedEvent as gs, SerializedCreateAuditLogSchemaOptions as gt, serializeRevokeSessionOptions as gu, UnprocessableEntityException as h, DsyncGroupDeletedEvent as ha, DataIntegrationsListResponseDataAuthMethods as hc, EmailVerification as hd, CreateUserResponseResponse as hf, CreateEnvironmentRoleOptions as hh, DomainData as hi, FlagPollResponse as hl, SerializedListRoleAssignmentsForResourceOptions as hm, ExternalAuthCompleteResponseWire as hn, OrganizationDomainCreatedEvent as ho, DefaultCustomAttributes as hp, SerializedAgentRegistrationClaim as hr, SessionCreatedEventResponse as hs, CreateAuditLogSchemaResponse as ht, SerializedRevokeSessionOptions as hu, PublicUserManagement as i, ConnectionActivatedEventResponse as ia, DeleteUserConnectedAccountOptions as ic, ListInvitationsOptions as id, SerializedAuthenticateWithTotpOptions as if, AddOrganizationRolePermissionOptions as ih, CreateItContactOptions as ii, SerializedCreateGroupOptions as il, RemoveRoleOptions as im, ApplicationCredentialsListItem as in, InvitationCreatedEventResponse as io, OauthTokensResponse as ip, RefreshAgentTokenOptions as ir, PipesConnectedAccountResponse as is, DecryptDataKeyOptions as it, Session as iu, Webhooks as j, Event as ja, DataIntegrationAccessTokenResponseWire as jc, SerializedCreateMagicAuthOptions as jd, AuthenticateUserWithRadarSmsChallengeCredentials as jf, DirectoryStateResponse as jh, AuthenticationEmailVerificationSucceededEvent as ji, CreateOrganizationApiKeyRequestOptions as jl, AuthorizationCheckOptions as jm, UserConsentOption as jn, OrganizationRoleCreatedEvent as jo, BaseGroupRoleAssignmentEntry as jp, ListAgentBlueprintsOptions as jr, VaultDataReadEvent as js, VerifyResponse as jt, MagicAuth as ju, WorkOSErrorData as k, EmailVerificationCreatedEvent as ka, DataIntegrationAuthorizeUrlResponseWire as kc, SerializedCreateOrganizationMembershipOptions as kd, AuthenticateWithOrganizationSelectionOptions as kf, DirectoryResponse as kh, ApiKeyRevokedEvent as ki, SerializedCreatedApiKey as kl, ListResourcesForMembershipOptionsWithParentId as km, ListApplicationsOptions as kn, OrganizationMembershipUpdated as ko, ListEffectivePermissionsByExternalIdOptions as kp, AgentBlueprintSessionSettings as kr, VaultDataDeletedEvent as ks, AuditLogExportOptions as kt, CreateMagicAuthResponse as ku, GenerateLink as l, DsyncActivatedEvent as la, DataIntegrationsListResponseDataResponse as lc, InvitationEvent as ld, SessionCookieData as lf, SerializedCreateOrganizationRoleOptions as lh, RevokeItContactOptions as li, RuntimeClientOptions as ll, AssignRoleOptionsWithResourceExternalId as lm, ConnectApplicationOAuth as ln, MagicAuthCreatedEvent as lo, Connection as lp, AgentRegistrationClaim as lr, RoleCreatedEventResponse as ls, CreateTokenOptions as lt, SendRadarSmsChallengeResponse as lu, SSOIntentOptionsResponse as m, DsyncGroupCreatedEventResponse as ma, DataIntegrationsListResponseDataConnectedAccountAuthMethod as mc, SerializedEnrollUserInMfaFactorOptions as md, CreateUserResponse as mf, UpdateEnvironmentRoleOptions as mh, SerializedCreateOrganizationOptions as mi, FlagPollEntry as ml, ListRoleAssignmentsForResourceOptions as mm, ExternalAuthCompleteResponse as mn, OrganizationDeletedResponse as mo, SSOPKCEAuthorizationURLResult as mp, SerializedAgentRegistration as mr, SessionCreatedEvent as ms, CreateAuditLogSchemaRequestOptions as mt, RevokeSessionOptions as mu, PublicClientOptions as n, AuthenticationSSOSucceededEventResponse as na, GetDataIntegrationOptions as nc, OrganizationMembershipResponse as nd, AuthenticateUserWithTotpCredentials as nf, PermissionResponse as nh, ItContact as ni, DeleteGroupOptions as nl, RemoveRoleAssignmentOptions as nm, NewConnectApplicationSecret as nn, InvitationAcceptedEventResponse as no, ProfileResponse as np, MintAutonomousAgentTokenOptions as nr, PipesConnectedAccountReauthorizationNeededEvent as ns, CreateObjectEntity as nt, UpdateOrganizationMembershipOptions as nu, createWorkOS as o, ConnectionDeactivatedEventResponse as oa, DataIntegrationsListResponse as oc, ListGroupsForOrganizationMembershipOptions as od, AuthenticateWithSessionCookieFailureReason as of, SerializedUpdateOrganizationRoleOptions as oh, InviteItContactOptions as oi, SerializedAddGroupOrganizationMembershipOptions as ol, RemoveRoleOptionsWithResourceId as om, ConnectApplication as on, InvitationResentEventResponse as oo, SerializedListConnectionsOptions as op, SerializedMintAgentTokenOptions as or, PipesConnectionFailed as os, CreateDataKeyOptions as ot, SessionStatus as ou, SSOIntentOptions as p, DsyncGroupCreatedEvent as pa, DataIntegrationsListResponseDataConnectedAccountState as pc, EnrollAuthFactorOptions as pd, AuthenticationResponseResponse as pf, SerializedUpdateEnvironmentRoleOptions as ph, CreateOrganizationRequestOptions as pi, FlagCustomTarget as pl, ListRoleAssignmentsForResourceByExternalIdOptions as pm, ConnectApplicationRedirectUriResponse as pn, OrganizationDeletedEvent as po, SSOAuthorizationURLOptions as pp, SerializedAgentIdentity as pr, RoleUpdatedEventResponse as ps, CreateAuditLogSchemaOptions as pt, SerializedSendInvitationOptions as pu, Actor as q, GroupMemberAddedEvent as qa, AuthorizeDataIntegrationOptions as qc, TotpResponse as qd, SerializedAuthenticateWithCodeOptions as qf, AuthenticationPasswordFailedEvent as qi, SerializedUserApiKeyWithValue as ql, SerializedCreateAuthorizationResourceOptions as qm, ValidateAgentCredentialOptions as qn, PermissionUpdatedEvent as qo, CreateGroupRoleAssignmentOptions as qp, UserData as qr, KeyContext as qs, RadarStandaloneAssessRequestAction as qt, ListSessionsOptions as qu, PublicSSO as r, ConnectionActivatedEvent as ra, GetAccessTokenOptions as rc, OrganizationMembershipStatus as rd, AuthenticateWithTotpOptions as rf, RemoveOrganizationRolePermissionOptions as rh, ItContactResponse as ri, CreateGroupOptions as rl, BaseRemoveRoleOptions as rm, NewConnectApplicationSecretResponse as rn, InvitationCreatedEvent as ro, OauthTokens as rp, MintUserDelegatedAgentTokenOptions as rr, PipesConnectedAccountReauthorizationNeededEventResponse as rs, CreateObjectOptions as rt, AuthMethod as ru, PortalLinkResponse as s, ConnectionDeletedEvent as sa, DataIntegrationsListResponseWire as sc, ListAuthFactorsOptions as sd, AuthenticateWithSessionCookieOptions as sf, UpdateOrganizationRoleOptions as sh, ItContactIntent as si, RuntimeClientStats as sl, SerializedRemoveRoleOptions as sm, ConnectApplicationM2M as sn, InvitationRevokedEvent as so, GetProfileAndTokenOptions as sp, AgentIdentity as sr, PipesConnectionFailedResponse as ss, WidgetSessionTokenResponse as st, SendVerificationEmailOptions as su, ConfidentialClientOptions as t, AuthenticationSSOSucceededEvent as ta, GetUserConnectedAccountOptions as tc, OrganizationMembership as td, AuthenticationEventSsoResponse as tf, Permission as th, ListOrganizationFeatureFlagsOptions as ti, GetGroupOptions as tl, GroupRoleAssignmentResponse as tm, SerializedListEventOptions as tn, InvitationAcceptedEvent as to, Profile as tp, MintAgentTokenOptions as tr, PipesConnectedAccountDisconnectedEventResponse as ts, ReadObjectResponse as tt, SerializedUpdateOrganizationMembershipOptions as tu, GenerateLinkResponse as u, DsyncActivatedEventResponse as ua, DataIntegrationsListResponseDataOwnership as uc, InvitationEventResponse as ud, UserManagementAccessToken as uf, OrganizationRole as uh, SerializedCreateItContactOptions as ui, RemoveFlagTargetOptions as ul, AssignRoleOptionsWithResourceId as um, ConnectApplicationOAuthResponse as un, MagicAuthCreatedEventResponse as uo, ConnectionDomain as up, AgentRegistrationClaimCompletion as ur, RoleDeletedEvent as us, WidgetSessionTokenScopes as ut, SendRadarSmsChallengeResponseResponse as uu, RateLimitExceededException as v, DsyncGroupUpdatedEventResponse as va, DataIntegrationState as vc, EmailVerificationResponse as vd, Impersonator as vf, EnvironmentRoleList as vh, WorkOSOptions as vi, FeatureFlagResponse as vl, RoleAssignment as vm, ListApplicationClientSecretsOptions as vn, OrganizationDomainDeletedEventResponse as vo, DirectoryUserWithGroups as vp, AgentInstanceType as vr, UnknownEvent as vs, AuditLogTarget as vt, SerializedResetPasswordOptions as vu, AuthenticationErrorCode as w, DsyncUserCreatedEventResponse as wa, DataIntegrationCredentialsResponseCredentialResponse as wc, CreateUserApiKeyRequestOptions as wd, SerializedAuthenticateWithRefreshTokenOptions as wf, SerializedListDirectoriesOptions as wh, ListResponse as wi, SerializedValidateApiKeyResponse as wl, RoleAssignmentSourceResponse as wm, CreateM2MApplicationResponse as wn, OrganizationDomainVerifiedEventResponse as wo, Role as wp, ListAgentInstanceSessionsOptions as wr, UserUpdatedEventResponse as ws, AuditLogSchemaMetadata as wt, TerminalRefreshSessionFailureReason as wu, NoApiKeyProvidedException as x, DsyncGroupUserRemovedEvent as xa, DataIntegrationCustomProviderAuthenticateVia as xc, CreateUserOptions as xd, SerializedAuthenticateWithRefreshTokenPublicClientOptions as xf, ListDirectoryUsersOptions as xh, PostOptions as xi, LegacyEvaluationContext as xl, RoleAssignmentResponse as xm, GetApplicationOptions as xn, OrganizationDomainVerificationFailedEvent as xo, OrganizationRoleEvent as xp, SerializedListAgentInstancesOptions as xr, UserDeletedEvent as xs, SerializedCreateAuditLogEventOptions as xt, RefreshSessionFailureReason as xu, OauthException as y, DsyncGroupUserAddedEvent as ya, DataIntegrationCustomProvider as yc, CreateWaitlistEntryOptions as yd, ImpersonatorResponse as yf, EnvironmentRoleListResponse as yh, UnprocessableEntityError as yi, EvaluationContext as yl, RoleAssignmentResource as ym, DeleteApplicationOptions as yn, OrganizationDomainUpdatedEvent as yo, DirectoryUserWithGroupsResponse as yp, ListAgentInstancesOptions as yr, UserCreatedEvent as ys, CreateAuditLogEventOptions as yt, ResendInvitationOptions as yu, ObjectSummary as z, FlagRuleUpdatedEvent as za, DataIntegrationCredentialsDto as zc, AuthenticationFactorWithSecrets as zd, SerializedAuthenticateWithMagicAuthOptions as zf, RequestOptions as zh, AuthenticationOAuthFailedEvent as zi, OrganizationDomainState as zl, GetAuthorizationResourceByExternalIdOptions as zm, AgentCredentialValidation as zn, PasswordResetCreatedEvent as zo, BaseRemoveGroupRoleAssignmentsOptions as zp, PKCE as zr, VaultKekCreatedEvent as zs, RadarListEntryAlreadyPresentResponseWire as zt, WaitlistEntry as zu };
10691
- //# sourceMappingURL=factory-C4y25QQJ.d.mts.map
11987
+ export { ReadObjectMetadataResponse as $, GroupDeletedEventResponse as $a, DataIntegrationCustomProvider as $c, SerializedListOrganizationMembershipsOptions as $d, Sms as $f, ListPermissionsOptions as $h, AuthenticationPasskeySucceededEventResponse as $i, RemoveGroupOrganizationMembershipOptions as $l, CreateGroupRoleAssignmentOptionsWithResourceId as $m, ValidateAgentApiKeyOptions as $n, PermissionDeletedEventResponse as $o, SerializedAuthenticatePublicClientBase as $p, ActionPayload as $r, DataKeyPair as $s, RadarListType as $t, UserApiKey as $u, ApiKeyRequiredException as A, DsyncUserCreatedEvent as Aa, DataIntegrationsUpsertApiKeyRequestConnectionOwner as Ac, PasswordResetEventResponse as Ad, SerializedCreatePasswordResetOptions as Af, DirectoryGroupResponse as Ag, ListResourcesForMembershipOptions as Ah, List as Ai, CreateDataIntegrationCredentialOptions as Al, RoleList as Am, CreateM2MApplication as An, OrganizationDomainVerifiedEvent as Ao, SerializedAuthenticateWithPasswordOptions as Ap, AgentInstanceSessionStatus as Ar, UserUpdatedEvent as As, AuditLogSchema as At, ListOrganizationApiKeysOptions as Au, ObjectSummaryResponse as B, EventName as Ba, DataIntegrationsListResponseDataConnectedAccountConnectionRole as Bc, ListWaitlistEntriesOptions as Bd, AuthenticationFactorResponse as Bf, HttpClientResponseInterface as Bg, DeleteAuthorizationResourceByExternalIdOptions as Bh, AuthenticationMagicAuthFailedEvent as Bi, ConnectedAccountResponse as Bl, SerializedGroupRoleAssignmentEntry as Bm, UserConsentOptionChoice as Bn, OrganizationRoleDeletedEvent as Bo, AuthenticateUserWithMagicAuthCredentials as Bp, SerializedAgentBlueprintInvocableBy as Br, VaultDataUpdatedEvent as Bs, VerifyChallengeOptions as Bt, OrganizationDomain as Bu, BadRequestException as C, DsyncGroupDeletedEventResponse as Ca, DeleteOrganizationConnectedAccountOptions as Cc, SerializedResendInvitationOptions as Cd, SerializedCreateWaitlistEntryOptions as Cf, EnvironmentRoleResponse as Cg, RoleAssignmentResourceResponse as Ch, DomainDataState as Ci, CreateDataIntegrationOwnership as Cl, ListOrganizationRolesResponse as Cm, DeleteClientSecretOptions as Cn, OrganizationDomainCreatedEventResponse as Co, AuthenticateWithRefreshTokenPublicClientOptions as Cp, SerializedAgentRegistrationClaimCompletion as Cr, SessionRevokedEvent as Cs, AuditLogTarget as Ct, EvaluationResource as Cu, isAuthenticationErrorData as D, DsyncGroupUserAddedEventResponse as Da, DataIntegrationsUpsertClientCredentialsRequestConnectionOwner as Dc, TerminalRefreshSessionFailureReason as Dd, CreateUserApiKeyRequestOptions as Df, SerializedListDirectoriesOptions as Dg, RoleAssignmentSourceResponse as Dh, PutOptions as Di, DataIntegrationCredentialsInput as Dl, Role as Dm, UpdateApplicationOptions as Dn, OrganizationDomainUpdatedEventResponse as Do, SerializedAuthenticateWithRefreshTokenOptions as Dp, SerializedAgentInstance as Dr, UserCreatedEventResponse as Ds, AuditLogsRetention as Dt, SerializedValidateApiKeyResponse as Du, AuthenticationException as E, DsyncGroupUserAddedEvent as Ea, DataIntegrationsUpsertClientCredentialsRequestResponse as Ec, RetryableRefreshSessionFailureReason as Ed, CreateUserApiKeyOptions as Ef, ListDirectoriesOptions as Eg, RoleAssignmentSource as Eh, UnprocessableEntityError as Ei, CustomProviderDefinitionAuthenticateVia as El, OrganizationRoleResponse as Em, DeleteApplicationOptions as En, OrganizationDomainUpdatedEvent as Eo, AuthenticateWithRefreshTokenOptions as Ep, ListAgentInstancesOptions as Er, UserCreatedEvent as Es, SerializedCreateAuditLogEventOptions as Et, AddFlagTargetOptions as Eu, UpdateWebhookEndpointEvents as F, DsyncUserUpdatedEventResponse as Fa, DataIntegrationsListResponseDataOwnership as Fc, MagicAuthEvent as Fd, PKCEAuthorizationURLResult as Ff, DirectoryType as Fg, AuthorizationCheckOptionsWithResourceExternalId as Fh, ApiKeyCreatedEventResponse as Fi, DataIntegrationsCreateClientCredentialsConnectionRequestConnectionOwner as Fl, GroupRoleAssignmentEntry as Fm, RedirectUriInputResponse as Fn, OrganizationMembershipDeletedResponse as Fo, AuthenticateWithRadarSmsChallengeOptions as Fp, AgentBlueprintInvocableBy as Fr, VaultDataCreatedEventResponse as Fs, AuditLogExportResponse as Ft, SerializedCreateOrganizationApiKeyOptions as Fu, ObjectMetadata as G, FlagDeletedEventResponse as Ga, DataIntegrationsGetUserTokenRequestConnectionOwner as Gc, ListUsersOptions as Gd, FactorResponse as Gf, CryptoProvider as Gg, AuthorizationResource as Gh, AuthenticationMfaSucceededEventResponse as Gi, AuthorizeDataIntegrationOptions as Gl, RemoveGroupRoleAssignmentsOptionsWithResourceExternalId as Gm, AgentCredentialType as Gn, OrganizationUpdatedResponse as Go, SerializedAuthenticateWithEmailVerificationOptions as Gp, AutoPaginatable as Gr, VaultDekReadEventResponse as Gs, RadarListEntryAlreadyPresentResponse as Gt, SerializedCreateOrganizationDomainOptions as Gu, ObjectVersionResponse as H, FlagCreatedEvent as Ha, DataIntegrationsListResponseDataAuthMethods as Hc, WaitlistEntry as Hd, AuthenticationFactorWithSecrets as Hf, RequestOptions as Hg, GetAuthorizationResourceByExternalIdOptions as Hh, AuthenticationMagicAuthSucceededEvent as Hi, ConnectedAccountInputState as Hl, BaseRemoveGroupRoleAssignmentsOptions as Hm, UserObject as Hn, OrganizationRoleUpdatedEvent as Ho, SerializedAuthenticateWithMagicAuthOptions as Hp, SerializedCreateAgentBlueprintOptions as Hr, VaultDekDecryptedEvent as Hs, Challenge as Ht, OrganizationDomainState as Hu, UpdateWebhookEndpointStatus as I, EmailVerificationCreatedEvent as Ia, DataIntegrationsListResponseDataConnectionOwner as Ic, MagicAuthEventResponse as Id, UserManagementAuthorizationURLOptions as If, EventDirectory as Ig, AuthorizationCheckOptionsWithResourceId as Ih, ApiKeyRevokedEvent as Ii, CreateDataIntegrationAuthMethods as Il, GroupRoleAssignmentEntryForOrganization as Im, ListApplicationsOptions as In, OrganizationMembershipUpdated as Io, SerializedAuthenticateWithRadarSmsChallengeOptions as Ip, AgentBlueprintSessionSettings as Ir, VaultDataDeletedEvent as Is, AuditLogExportOptions as It, ApiKey as Iu, ActorResponse as J, FlagUpdatedEvent as Ja, DataIntegrationState as Jc, SerializedListUserApiKeysOptions as Jd, FactorWithSecretsResponse as Jf, CreateOptionsWithParentExternalId as Jh, AuthenticationOAuthSucceededEvent as Ji, DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner as Jl, RemoveGroupRoleAssignmentOptions as Jm, SerializedAgentAccessTokenClaims as Jn, PasswordResetSucceededEvent as Jo, AuthenticateUserWithCodeCredentials as Jp, Actions as Jr, VaultMetadataReadEvent as Js, RadarStandaloneResponseWire as Jt, SerializedVerifyEmailOptions as Ju, ObjectMetadataResponse as K, FlagRuleUpdatedEvent as Ka, DataIntegration as Kc, SerializedListUsersOptions as Kd, FactorType as Kf, AuthorizationResourceResponse as Kh, AuthenticationOAuthFailedEvent as Ki, DataIntegrationsGetDataIntegrationAuthorizeUrlRequest as Kl, RemoveGroupRoleAssignmentsOptionsWithResourceId as Km, AgentCredentialValidation as Kn, PasswordResetCreatedEvent as Ko, AuthenticateWithCodeAndVerifierOptions as Kp, PKCE as Kr, VaultKekCreatedEvent as Ks, RadarListEntryAlreadyPresentResponseWire as Kt, Waitlist as Ku, CreateWebhookEndpointEvents as L, EmailVerificationCreatedEventResponse as La, DataIntegrationsListResponseDataConnectedAccount as Lc, MagicAuthResponse as Ld, AuthenticationRadarRiskDetectedEventData as Lf, EventDirectoryResponse as Lg, AuthorizationCheckResult as Lh, ApiKeyRevokedEventResponse as Li, CreateDataIntegrationApiKeyOptions as Ll, GroupRoleAssignmentEntryWithResourceExternalId as Lm, CompleteOAuth2Options as Ln, OrganizationMembershipUpdatedResponse as Lo, AuthenticateUserWithRadarEmailChallengeCredentials as Lp, CreateAgentBlueprintOptions as Lr, VaultDataDeletedEventResponse as Ls, SerializedAuditLogExportOptions as Lt, SerializedApiKey as Lu, WebhookEndpoint as M, DsyncUserDeletedEvent as Ma, DataIntegrationsListResponseWire as Mc, CreateMagicAuthResponse as Md, SerializedCreateOrganizationMembershipOptions as Mf, DirectoryResponse as Mg, ListResourcesForMembershipOptionsWithParentId as Mh, GetOptions as Mi, DataIntegrationsVendCredentialsRequestResponse as Ml, ListEffectivePermissionsByExternalIdOptions as Mm, CreateOAuthApplication as Mn, OrganizationMembershipCreated as Mo, AuthenticateWithOrganizationSelectionOptions as Mp, SerializedAgentInstanceSession as Mr, VaultByokKeyVerificationCompletedEvent as Ms, AuditLogSchemaResponse as Mt, SerializedCreatedApiKey as Mu, WebhookEndpointResponse as N, DsyncUserDeletedEventResponse as Na, DataIntegrationsListResponseData as Nc, CreateMagicAuthResponseResponse as Nd, CreateMagicAuthOptions as Nf, DirectoryState as Ng, SerializedListResourcesForMembershipOptions as Nh, GenerateLinkIntent as Ni, DataIntegrationsVendCredentialsRequestConnectionOwner as Nl, ListEffectivePermissionsOptions as Nm, CreateOAuthApplicationResponse as Nn, OrganizationMembershipCreatedResponse as No, SerializedAuthenticateWithOrganizationSelectionOptions as Np, SerializedListAgentInstanceSessionsOptions as Nr, VaultByokKeyVerificationCompletedEventResponse as Ns, AuditLogTargetSchema as Nt, CreateOrganizationApiKeyOptions as Nu, GenericServerException as O, DsyncGroupUserRemovedEvent as Oa, DataIntegrationsUpsertApiKeyRequest as Oc, PasswordReset as Od, SerializedCreateUserApiKeyOptions as Of, PaginationOptions as Og, ListMembershipsForResourceByExternalIdOptions as Oh, PostOptions as Oi, DataIntegrationCredentialsInputResponse as Ol, RoleEvent as Om, GetApplicationOptions as On, OrganizationDomainVerificationFailedEvent as Oo, AuthenticateUserWithPasswordCredentials as Op, SerializedListAgentInstancesOptions as Or, UserDeletedEvent as Os, AuditLogsRetentionResponse as Ot, ValidateApiKeyOptions as Ou, WebhookEndpointStatus as P, DsyncUserUpdatedEvent as Pa, DataIntegrationsListResponseDataResponse as Pc, MagicAuth as Pd, SerializedCreateMagicAuthOptions as Pf, DirectoryStateResponse as Pg, AuthorizationCheckOptions as Ph, ApiKeyCreatedEvent as Pi, CreateDataIntegrationClientCredentialOptions as Pl, BaseGroupRoleAssignmentEntry as Pm, RedirectUriInput as Pn, OrganizationMembershipDeleted as Po, AuthenticateUserWithRadarSmsChallengeCredentials as Pp, AgentBlueprint as Pr, VaultDataCreatedEvent as Ps, AuditLogExport as Pt, CreateOrganizationApiKeyRequestOptions as Pu, UpdateObjectOptions as Q, GroupDeletedEvent as Qa, DataIntegrationInstallationConnectionRole as Qc, ListOrganizationMembershipsOptions as Qd, TotpWithSecretsResponse as Qf, UpdateAuthorizationResourceOptions as Qh, AuthenticationPasskeySucceededEvent as Qi, UpdateGroupOptions as Ql, CreateGroupRoleAssignmentOptionsWithResourceExternalId as Qm, ValidateAgentAccessTokenOptions as Qn, PermissionDeletedEvent as Qo, AuthenticateWithSessionOptions as Qp, ActionContext as Qr, DataKey as Qs, RadarListAction as Qt, SerializedUserApiKey as Qu, WorkOS as R, Event as Ra, DataIntegrationsListResponseDataConnectedAccountResponse as Rc, LogoutURLOptions as Rd, AuthenticationRadarRiskDetectedEventResponseData as Rf, HttpClient as Rg, SerializedAuthorizationCheckOptions as Rh, AuthenticationEmailVerificationSucceededEvent as Ri, DataIntegrationsCreateApiKeyConnectionRequestConnectionOwner as Rl, GroupRoleAssignmentEntryWithResourceId as Rm, UserConsentOption as Rn, OrganizationRoleCreatedEvent as Ro, AuthenticateWithRadarEmailChallengeOptions as Rp, ListAgentBlueprintsOptions as Rr, VaultDataReadEvent as Rs, VerifyResponse as Rt, OrganizationDomainVerificationFailed as Ru, ConflictException as S, DsyncGroupDeletedEvent as Sa, DeleteOrganizationDataIntegrationOptions as Sc, ResendInvitationOptions as Sd, CreateWaitlistEntryOptions as Sf, EnvironmentRoleListResponse as Sg, RoleAssignmentResource as Sh, DomainData as Si, CreateDataIntegrationResponse as Sl, DirectoryUserWithGroupsResponse as Sm, ExternalAuthCompleteResponseWire as Sn, OrganizationDomainCreatedEvent as So, ImpersonatorResponse as Sp, SerializedAgentRegistrationClaim as Sr, SessionCreatedEventResponse as Ss, AuditLogActor as St, EvaluationContext as Su, AuthenticationErrorData as T, DsyncGroupUpdatedEventResponse as Ta, DataIntegrationsUpsertClientCredentialsRequest as Tc, RefreshSessionResponse as Td, SerializedCreateUserOptions as Tf, ListDirectoryGroupsOptions as Tg, RoleAssignmentRole as Th, WorkOSOptions as Ti, CustomProviderDefinitionResponse as Tl, OrganizationRoleEventResponse as Tm, ListApplicationClientSecretsOptions as Tn, OrganizationDomainDeletedEventResponse as To, AuthenticateUserWithRefreshTokenCredentials as Tp, AgentInstanceType as Tr, UnknownEvent as Ts, CreateAuditLogEventRequestOptions as Tt, TypedEvaluationContext as Tu, VaultObject as U, FlagCreatedEventResponse as Ua, DataIntegrationsGetUserTokenRequest as Uc, WaitlistEntryResponse as Ud, AuthenticationFactorWithSecretsResponse as Uf, ResponseHeaderValue as Ug, ListAuthorizationResourcesOptions as Uh, AuthenticationMagicAuthSucceededEventResponse as Ui, ConnectedAccountConnectionRole as Ul, RemoveGroupRoleAssignmentsOptions as Um, UserObjectResponse as Un, OrganizationRoleUpdatedEventResponse as Uo, AuthenticateUserWithEmailVerificationCredentials as Up, SerializedUpdateAgentBlueprintOptions as Ur, VaultDekDecryptedEventResponse as Us, ChallengeResponse as Ut, OrganizationDomainVerificationStrategy as Uu, ObjectVersion as V, EventResponse as Va, DataIntegrationsListResponseDataConnectedAccountAuthMethod as Vc, SerializedListWaitlistEntriesOptions as Vd, AuthenticationFactorType as Vf, RequestHeaders as Vg, UpdateAuthorizationResourceByExternalIdOptions as Vh, AuthenticationMagicAuthFailedEventResponse as Vi, ConnectedAccountState as Vl, SerializedReplaceGroupRoleAssignmentsOptions as Vm, UserConsentOptionChoiceResponse as Vn, OrganizationRoleDeletedEventResponse as Vo, AuthenticateWithMagicAuthOptions as Vp, SerializedAgentBlueprintSessionSettings as Vr, VaultDataUpdatedEventResponse as Vs, EnrollFactorOptions as Vt, OrganizationDomainResponse as Vu, VaultObjectResponse as W, FlagDeletedEvent as Wa, DataIntegrationsGetUserTokenRequestResponse as Wc, WaitlistEntryState as Wd, Factor as Wf, ResponseHeaders as Wg, SerializedListAuthorizationResourcesOptions as Wh, AuthenticationMfaSucceededEvent as Wi, ConnectedAccountAuthMethod as Wl, RemoveGroupRoleAssignmentsOptionsForOrganization as Wm, AgentAccessTokenClaims as Wn, OrganizationUpdatedEvent as Wo, AuthenticateWithEmailVerificationOptions as Wp, UpdateAgentBlueprintOptions as Wr, VaultDekReadEvent as Ws, ChallengeFactorOptions as Wt, CreateOrganizationDomainOptions as Wu, CreateDataKeyResponseWire as X, GroupCreatedEvent as Xa, DataIntegrationInstallation as Xc, ListSessionsOptions as Xd, TotpResponse as Xf, SerializedCreateAuthorizationResourceOptions as Xh, AuthenticationPasskeyFailedEvent as Xi, ApiKeyInstallationResponse as Xl, CreateGroupRoleAssignmentOptions as Xm, SerializedValidateAgentCredentialOptions as Xn, PermissionCreatedEvent as Xo, SerializedAuthenticateWithCodeOptions as Xp, ResponsePayload as Xr, VaultNamesListedEvent as Xs, RadarStandaloneResponseControl as Xt, SerializedUserApiKeyWithValue as Xu, CreateDataKeyResponse as Y, FlagUpdatedEventResponse as Ya, DataIntegrationOwnership as Yc, ListUserFeatureFlagsOptions as Yd, Totp as Yf, CreateOptionsWithParentResourceId as Yh, AuthenticationOAuthSucceededEventResponse as Yi, ApiKeyInstallation as Yl, BaseCreateGroupRoleAssignmentOptions as Ym, SerializedAgentCredentialValidation as Yn, PasswordResetSucceededEventResponse as Yo, AuthenticateWithCodeOptions as Yp, AuthenticationActionResponseData as Yr, VaultMetadataReadEventResponse as Ys, RadarStandaloneResponseBlocklistType as Yt, VerifyEmailOptions as Yu, UpdateObjectEntity as Z, GroupCreatedEventResponse as Za, DataIntegrationInstallationResponse as Zc, SerializedListSessionsOptions as Zd, TotpWithSecrets as Zf, SerializedUpdateAuthorizationResourceOptions as Zh, AuthenticationPasskeyFailedEventResponse as Zi, SerializedUpdateGroupOptions as Zl, CreateGroupRoleAssignmentOptionsForOrganization as Zm, ValidAgentCredential as Zn, PermissionCreatedEventResponse as Zo, AuthenticateWithOptionsBase as Zp, UserRegistrationActionResponseData as Zr, VaultNamesListedEventResponse as Zs, RadarStandaloneResponseVerdict as Zt, UserApiKeyWithValue as Zu, SignatureVerificationException as _, DsyncActivatedEventResponse as _a, GetOrganizationDataIntegrationOptions as _c, RevokeSessionOptions as _d, SerializedEnrollUserInMfaFactorOptions as _f, UpdateEnvironmentRoleOptions as _g, ListRoleAssignmentsForResourceOptions as _h, SerializedCreateItContactOptions as _i, CreateUserConnectedAccountOptions as _l, SSOPKCEAuthorizationURLResult as _m, ConnectApplicationOAuthResponse as _n, MagicAuthCreatedEventResponse as _o, CreateUserResponse as _p, AgentRegistrationClaimCompletion as _r, RoleDeletedEvent as _s, GetOrganizationAuditLogsRetentionOptions as _t, FlagPollEntry as _u, PublicWorkOS as a, AuthenticationRadarRiskDetectedEventResponse as aa, UpdateDataIntegration as ac, UpdateOrganizationMembershipOptions as ad, OrganizationMembershipResponse as af, PermissionResponse as ag, RemoveRoleAssignmentOptions as ah, Organization as ai, DataIntegrationVendedCredential as al, ProfileResponse as am, PasswordlessSession as an, GroupMemberRemovedEventResponse as ao, AuthenticateUserWithTotpCredentials as ap, SerializedLinkClaimAttemptToExternalUserOptions as ar, PipesConnectedAccountConnectionFailedEvent as as, DecryptDataKeyResponse as at, DeleteGroupOptions as au, NotFoundException as b, DsyncGroupCreatedEvent as ba, GetAccessTokenOptions as bc, ResetPasswordOptions as bd, EmailVerificationEventResponse as bf, EnvironmentRole as bg, SerializedListRoleAssignmentsOptions as bh, CreateOrganizationRequestOptions as bi, CreateDataIntegrationOptions as bl, DirectoryUserResponse as bm, ConnectApplicationRedirectUriResponse as bn, OrganizationDeletedEvent as bo, UserResponse as bp, SerializedAgentIdentity as br, RoleUpdatedEventResponse as bs, CreateAuditLogSchemaResponse as bt, FeatureFlag as bu, PortalLinkResponseWire as c, AuthenticationSSOSucceededEvent as ca, UpdateDataIntegrationApiKeyOptions as cc, SessionResponse as cd, SerializedListInvitationsOptions as cf, SetOrganizationRolePermissionsOptions as cg, RemoveRoleOptionsWithResourceExternalId as ch, ListOrganizationFeatureFlagsOptions as ci, DataIntegrationCredentialResponse as cl, ListConnectionsOptions as cm, SerializedListEventOptions as cn, InvitationAcceptedEvent as co, AuthenticateWithSessionCookieFailedResponse as cp, MintAgentTokenOptions as cr, PipesConnectedAccountDisconnectedEventResponse as cs, WidgetSessionTokenResponseWire as ct, AddGroupOrganizationMembershipOptions as cu, IntentOptions as d, ConnectionActivatedEventResponse as da, UpdateCustomProviderDefinitionAuthenticateVia as dc, SendRadarSmsChallengeOptions as dd, Invitation as df, CreateOrganizationRoleOptions as dg, AssignRoleOptions as dh, CreateItContactOptions as di, DataIntegrationAuthorizeUrlResponseWire as dl, GetProfileOptions as dm, ApplicationCredentialsListItem as dn, InvitationCreatedEventResponse as do, AuthenticateWithSessionCookieSuccessResponse as dp, RefreshAgentTokenOptions as dr, PipesConnectedAccountResponse as ds, FeatureFlagsRuntimeClient as dt, RuntimeClientLogger as du, AuthenticationPasswordFailedEvent as ea, KeyContext as ec, SerializedUpdateUserPasswordOptions as ed, AuthorizationOrganizationMembership as ef, SerializedUpdatePermissionOptions as eg, SerializedCreateGroupRoleAssignmentOptions as eh, UserData as ei, DataIntegrationCustomProviderResponse as el, SerializedAuthenticateWithOptionsBase as em, RadarStandaloneAssessRequestAction as en, GroupMemberAddedEvent as eo, SmsResponse as ep, ValidateAgentCredentialOptions as er, PermissionUpdatedEvent as es, ReadObjectOptions as et, ListGroupsOptions as eu, IntentOptionsResponse as f, ConnectionDeactivatedEvent as fa, ListUserDataProvidersOptions as fc, SendRadarSmsChallengeResponse as fd, InvitationEvent as ff, SerializedCreateOrganizationRoleOptions as fg, AssignRoleOptionsWithResourceExternalId as fh, DeleteItContactOptions as fi, DataIntegrationAuthMethods as fl, Connection as fm, ApplicationCredentialsListItemResponse as fn, InvitationResentEvent as fo, SessionCookieData as fp, SerializedAgentToken as fr, PipesConnectedAccountState as fs, CookieSession as ft, RuntimeClientOptions as fu, UnauthorizedException as g, DsyncActivatedEvent as ga, GetUserConnectedAccountOptions as gc, SerializedSendInvitationOptions as gd, EnrollAuthFactorOptions as gf, SerializedUpdateEnvironmentRoleOptions as gg, ListRoleAssignmentsForResourceByExternalIdOptions as gh, RevokeItContactOptions as gi, DataIntegrationAccessTokenResponseAccessTokenResponse as gl, SSOAuthorizationURLOptions as gm, ConnectApplicationOAuth as gn, MagicAuthCreatedEvent as go, AuthenticationResponseResponse as gp, AgentRegistrationClaim as gr, RoleCreatedEventResponse as gs, UpdateAuditLogsRetentionRetentionPeriod as gt, FlagCustomTarget as gu, UnprocessableEntityException as h, ConnectionDeletedEventResponse as ha, PipesOwnership as hc, SendInvitationOptions as hd, Identity as hf, SetEnvironmentRolePermissionsOptions as hg, SerializedAssignRoleOptions as hh, ListItContactsOptions as hi, DataIntegrationAccessTokenResponseAccessToken as hl, ConnectionType as hm, ConnectApplicationM2MResponse as hn, InvitationRevokedEventResponse as ho, AuthenticationResponse as hp, AgentRegistration as hr, RoleCreatedEvent as hs, UpdateAuditLogsRetentionResponse as ht, FlagChange as hu, PublicUserManagement as i, AuthenticationRadarRiskDetectedEvent as ia, UpdateDataIntegrationOptions as ic, SerializedUpdateOrganizationMembershipOptions as id, OrganizationMembership as if, Permission as ig, GroupRoleAssignmentResponse as ih, UpdateOrganizationOptions as ii, DataIntegrationCredentialsResponseError as il, Profile as im, SerializedCreatePasswordlessSessionOptions as in, GroupMemberRemovedEvent as io, AuthenticationEventSsoResponse as ip, SerializedClaimAttemptResponse as ir, PipesConnectedAccountConnectedEventResponse as is, DecryptDataKeyOptions as it, GetGroupOptions as iu, Webhooks as j, DsyncUserCreatedEventResponse as ja, DataIntegrationsListResponse as jc, PasswordResetResponse as jd, CreateOrganizationMembershipOptions as jf, Directory as jg, ListResourcesForMembershipOptionsWithParentExternalId as jh, ListResponse as ji, DataIntegrationsVendCredentialsRequest as jl, RoleResponse as jm, CreateM2MApplicationResponse as jn, OrganizationDomainVerifiedEventResponse as jo, AuthenticateUserWithOrganizationSelectionCredentials as jp, ListAgentInstanceSessionsOptions as jr, UserUpdatedEventResponse as js, AuditLogSchemaMetadata as jt, CreatedApiKey as ju, WorkOSErrorData as k, DsyncGroupUserRemovedEventResponse as ka, DataIntegrationsUpsertApiKeyRequestResponse as kc, PasswordResetEvent as kd, CreatePasswordResetOptions as kf, DirectoryGroup as kg, ListMembershipsForResourceOptions as kh, PatchOptions as ki, DataIntegrationCredentialsInputType as kl, RoleEventResponse as km, CreateApplicationOptions as kn, OrganizationDomainVerificationFailedEventResponse as ko, AuthenticateWithPasswordOptions as kp, AgentInstanceSession as kr, UserDeletedEventResponse as ks, AuditLogActorSchema as kt, ValidateApiKeyResponse as ku, GenerateLink as l, AuthenticationSSOSucceededEventResponse as la, UpdateCustomProviderDefinition as lc, SessionStatus as ld, ListGroupsForOrganizationMembershipOptions as lf, SerializedUpdateOrganizationRoleOptions as lg, RemoveRoleOptionsWithResourceId as lh, ItContact as li, DataIntegrationCredentialType as ll, SerializedListConnectionsOptions as lm, NewConnectApplicationSecret as ln, InvitationAcceptedEventResponse as lo, AuthenticateWithSessionCookieFailureReason as lp, MintAutonomousAgentTokenOptions as lr, PipesConnectedAccountReauthorizationNeededEvent as ls, CreateTokenOptions as lt, SerializedAddGroupOrganizationMembershipOptions as lu, SSOIntentOptionsResponse as m, ConnectionDeletedEvent as ma, ListDataIntegrationsOptions as mc, SerializedSendRadarSmsChallengeOptions as md, InvitationResponse as mf, AddEnvironmentRolePermissionOptions as mg, BaseAssignRoleOptions as mh, ItContactIntent as mi, DataIntegrationAccessTokenResponseWire as ml, ConnectionResponse as mm, ConnectApplicationM2M as mn, InvitationRevokedEvent as mo, AuthenticationMethod as mp, AgentIdentity as mr, PipesConnectionFailedResponse as ms, UpdateAuditLogsRetention as mt, ListFeatureFlagsOptions as mu, PublicClientOptions as n, AuthenticationPasswordSucceededEvent as na, UpdateOrganizationDataIntegrationOptions as nc, SerializedUpdateUserOptions as nd, BaseOrganizationMembership as nf, CreatePermissionOptions as ng, ListGroupRoleAssignmentsOptions as nh, UserRegistrationActionPayload as ni, DataIntegrationCredentialsResponse as nl, ProfileAndToken as nm, SendSessionResponse as nn, GroupMemberEventData as no, AuthenticationEventResponse as np, ClaimAttemptResponse as nr, PipesConnectedAccount as ns, CreateObjectEntity as nt, Group as nu, createWorkOS as o, AuthenticationSSOFailedEvent as oa, UpdateDataIntegrationResponse as oc, AuthMethod as od, OrganizationMembershipStatus as of, RemoveOrganizationRolePermissionOptions as og, BaseRemoveRoleOptions as oh, OrganizationResponse as oi, DataIntegrationVendedCredentialResponse as ol, OauthTokens as om, PasswordlessSessionResponse as on, GroupUpdatedEvent as oo, AuthenticateWithTotpOptions as op, AgentToken as or, PipesConnectedAccountConnectionFailedEventResponse as os, CreateDataKeyOptions as ot, CreateGroupOptions as ou, SSOIntentOptions as p, ConnectionDeactivatedEventResponse as pa, ListOrganizationDataProvidersOptions as pc, SendRadarSmsChallengeResponseResponse as pd, InvitationEventResponse as pf, OrganizationRole as pg, AssignRoleOptionsWithResourceId as ph, InviteItContactOptions as pi, DataIntegrationAccessTokenResponse as pl, ConnectionDomain as pm, ConnectApplication as pn, InvitationResentEventResponse as po, UserManagementAccessToken as pp, SerializedMintAgentTokenOptions as pr, PipesConnectionFailed as ps, UpdateOrganizationAuditLogsRetentionOptions as pt, RemoveFlagTargetOptions as pu, Actor as q, FlagRuleUpdatedEventResponse as qa, DataIntegrationResponse as qc, ListUserApiKeysOptions as qd, FactorWithSecrets as qf, CreateAuthorizationResourceOptions as qh, AuthenticationOAuthFailedEventResponse as qi, DataIntegrationsGetDataIntegrationAuthorizeUrlRequestResponse as ql, SerializedRemoveGroupRoleAssignmentsOptions as qm, InvalidAgentCredential as qn, PasswordResetCreatedEventResponse as qo, SerializedAuthenticateWithCodeAndVerifierOptions as qp, PKCEPair as qr, VaultKekCreatedEventResponse as qs, RadarStandaloneResponse as qt, WaitlistResponse as qu, PublicSSO as r, AuthenticationPasswordSucceededEventResponse as ra, UpdateOrganizationConnectedAccountOptions as rc, UpdateUserOptions as rd, BaseOrganizationMembershipResponse as rf, SerializedCreatePermissionOptions as rg, GroupRoleAssignment as rh, SerializedUpdateOrganizationOptions as ri, DataIntegrationCredentialsResponseWire as rl, ProfileAndTokenResponse as rm, CreatePasswordlessSessionOptions as rn, GroupMemberEventResponseData as ro, AuthenticationEventSso as rp, LinkClaimAttemptToExternalUserOptions as rr, PipesConnectedAccountConnectedEvent as rs, CreateObjectOptions as rt, GroupResponse as ru, PortalLinkResponse as s, AuthenticationSSOFailedEventResponse as sa, UpdateDataIntegrationClientCredentialsOptions as sc, Session as sd, ListInvitationsOptions as sf, AddOrganizationRolePermissionOptions as sg, RemoveRoleOptions as sh, ListOrganizationsOptions as si, DataIntegrationCredential as sl, OauthTokensResponse as sm, ListEventOptions as sn, GroupUpdatedEventResponse as so, SerializedAuthenticateWithTotpOptions as sp, MintAgentDelegatedAgentTokenOptions as sr, PipesConnectedAccountDisconnectedEvent as ss, WidgetSessionTokenResponse as st, SerializedCreateGroupOptions as su, ConfidentialClientOptions as t, AuthenticationPasswordFailedEventResponse as ta, UpdateUserConnectedAccountOptions as tc, UpdateUserPasswordOptions as td, AuthorizationOrganizationMembershipResponse as tf, UpdatePermissionOptions as tg, GetGroupRoleAssignmentOptions as th, UserDataPayload as ti, DataIntegrationCustomProviderAuthenticateVia as tl, WithResolvedClientId as tm, RadarStandaloneAssessRequestAuthMethod as tn, GroupMemberAddedEventResponse as to, AuthenticationEvent as tp, ClaimAttemptOrganization as tr, PermissionUpdatedEventResponse as ts, ReadObjectResponse as tt, ListGroupOrganizationMembershipsOptions as tu, GenerateLinkResponse as u, ConnectionActivatedEvent as ua, UpdateCustomProviderDefinitionResponse as uc, SendVerificationEmailOptions as ud, ListAuthFactorsOptions as uf, UpdateOrganizationRoleOptions as ug, SerializedRemoveRoleOptions as uh, ItContactResponse as ui, DataIntegrationAuthorizeUrlResponse as ul, GetProfileAndTokenOptions as um, NewConnectApplicationSecretResponse as un, InvitationCreatedEvent as uo, AuthenticateWithSessionCookieOptions as up, MintUserDelegatedAgentTokenOptions as ur, PipesConnectedAccountReauthorizationNeededEventResponse as us, WidgetSessionTokenScopes as ut, RuntimeClientStats as uu, RateLimitExceededException as v, DsyncDeletedEvent as va, GetOrganizationConnectedAccountOptions as vc, SerializedRevokeSessionOptions as vd, EmailVerification as vf, CreateEnvironmentRoleOptions as vg, SerializedListRoleAssignmentsForResourceOptions as vh, SerializedInviteItContactOptions as vi, CreateOrganizationConnectedAccountOptions as vl, DefaultCustomAttributes as vm, ConnectApplicationResponse as vn, OrganizationCreatedEvent as vo, CreateUserResponseResponse as vp, AgentRegistrationKind as vr, RoleDeletedEventResponse as vs, CreateAuditLogSchemaOptions as vt, FlagPollResponse as vu, AuthenticationErrorCode as w, DsyncGroupUpdatedEvent as wa, DeleteDataIntegrationOptions as wc, RefreshSessionFailureReason as wd, CreateUserOptions as wf, ListDirectoryUsersOptions as wg, RoleAssignmentResponse as wh, WorkOSResponseError as wi, CustomProviderDefinition as wl, OrganizationRoleEvent as wm, CreateApplicationClientSecretOptions as wn, OrganizationDomainDeletedEvent as wo, SerializedAuthenticateWithRefreshTokenPublicClientOptions as wp, AgentInstance as wr, SessionRevokedEventResponse as ws, CreateAuditLogEventOptions as wt, LegacyEvaluationContext as wu, NoApiKeyProvidedException as x, DsyncGroupCreatedEventResponse as xa, DeleteUserConnectedAccountOptions as xc, SerializedResetPasswordOptions as xd, EmailVerificationResponse as xf, EnvironmentRoleList as xg, RoleAssignment as xh, SerializedCreateOrganizationOptions as xi, CreateDataIntegration as xl, DirectoryUserWithGroups as xm, ExternalAuthCompleteResponse as xn, OrganizationDeletedResponse as xo, Impersonator as xp, SerializedAgentRegistration as xr, SessionCreatedEvent as xs, SerializedCreateAuditLogSchemaOptions as xt, FeatureFlagResponse as xu, OauthException as y, DsyncDeletedEventResponse as ya, GetDataIntegrationOptions as yc, serializeRevokeSessionOptions as yd, EmailVerificationEvent as yf, SerializedCreateEnvironmentRoleOptions as yg, ListRoleAssignmentsOptions as yh, CreateOrganizationOptions as yi, OrganizationConnectedAccountState as yl, DirectoryUser as ym, ConnectApplicationRedirectUri as yn, OrganizationCreatedResponse as yo, User as yp, AgentRegistrationStatus as yr, RoleUpdatedEvent as ys, CreateAuditLogSchemaRequestOptions as yt, FlagTarget as yu, ObjectSummary as z, EventBase as za, DataIntegrationsListResponseDataConnectedAccountState as zc, Locale as zd, AuthenticationFactor as zf, HttpClientInterface as zg, DeleteAuthorizationResourceOptions as zh, AuthenticationEmailVerificationSucceededEventResponse as zi, ConnectedAccount as zl, ReplaceGroupRoleAssignmentsOptions as zm, UserConsentOptionResponse as zn, OrganizationRoleCreatedEventResponse as zo, SerializedAuthenticateWithRadarEmailChallengeOptions as zp, SerializedAgentBlueprint as zr, VaultDataReadEventResponse as zs, VerifyResponseResponse as zt, OrganizationDomainVerificationFailedResponse as zu };
11988
+ //# sourceMappingURL=factory-C86kGSc7.d.cts.map