@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.
- package/README.md +22 -0
- package/lib/{factory-DQwwZIi5.mjs → factory-BbGPjwhL.mjs} +792 -187
- package/lib/factory-BbGPjwhL.mjs.map +1 -0
- package/lib/{factory-C4y25QQJ.d.mts → factory-C86kGSc7.d.cts} +1541 -244
- package/lib/{factory-BfdUyn2X.cjs → factory-DJd6WXWm.cjs} +797 -186
- package/lib/factory-DJd6WXWm.cjs.map +1 -0
- package/lib/{factory-C4y25QQJ.d.cts → factory-G1JU2hJz.d.mts} +1541 -245
- package/lib/index.cjs +158 -4
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +210 -132
- package/lib/index.d.mts +210 -132
- package/lib/index.mjs +137 -5
- package/lib/index.mjs.map +1 -1
- package/lib/index.worker.cjs +2 -1
- package/lib/index.worker.d.cts +2 -2
- package/lib/index.worker.d.mts +2 -2
- package/lib/index.worker.mjs +2 -2
- package/lib/rolldown-runtime-D7D4PA-g.mjs +13 -0
- package/lib/webapi-C2FQ2NNL.mjs +2445 -0
- package/lib/webapi-C2FQ2NNL.mjs.map +1 -0
- package/lib/webapi-MD5xmNba.cjs +2503 -0
- package/lib/webapi-MD5xmNba.cjs.map +1 -0
- package/package.json +4 -4
- package/lib/factory-BfdUyn2X.cjs.map +0 -1
- package/lib/factory-DQwwZIi5.mjs.map +0 -1
- package/lib/webapi-BlhUk1KL.mjs +0 -2905
- package/lib/webapi-BlhUk1KL.mjs.map +0 -1
- package/lib/webapi-D3QZrB15.cjs +0 -2952
- package/lib/webapi-D3QZrB15.cjs.map +0 -1
|
@@ -123,6 +123,22 @@ declare abstract class HttpClient implements HttpClientInterface {
|
|
|
123
123
|
abstract delete(path: string, options: RequestOptions): Promise<HttpClientResponseInterface>;
|
|
124
124
|
abstract deleteWithBody<Entity = any>(path: string, entity: Entity, options: RequestOptions): Promise<HttpClientResponseInterface>;
|
|
125
125
|
static getResourceURL(baseURL: string, path: string, params?: Record<string, any>): string;
|
|
126
|
+
/**
|
|
127
|
+
* Reject request paths that contain a single-dot or double-dot segment.
|
|
128
|
+
*
|
|
129
|
+
* SDK path templates never contain such segments themselves, but a
|
|
130
|
+
* caller-supplied identifier interpolated with bare `encodeURIComponent`
|
|
131
|
+
* (the form the generated modules use) passes `.` and `..` through
|
|
132
|
+
* unchanged, and the WHATWG `URL` parser then collapses them, retargeting
|
|
133
|
+
* the request to a different endpoint (for example
|
|
134
|
+
* `/organizations/../api_keys` resolves to `/api_keys`). The parser also
|
|
135
|
+
* treats the percent-encoded forms (`%2e`, case-insensitive) as dots, so
|
|
136
|
+
* those are matched as well. Encoded values never trip this check because
|
|
137
|
+
* `encodeURIComponent` turns `%` into `%25` and `/` into `%2F`, keeping
|
|
138
|
+
* each identifier inside its own segment. Fail closed before any request
|
|
139
|
+
* is built.
|
|
140
|
+
*/
|
|
141
|
+
private static assertNoDotSegments;
|
|
126
142
|
static getQueryString(queryObj?: Record<string, any>): string | undefined;
|
|
127
143
|
static getContentTypeHeader(entity: any): RequestHeaders | undefined;
|
|
128
144
|
static getBody(entity: any): BodyInit | null | undefined;
|
|
@@ -2996,29 +3012,82 @@ interface SerializedUpdateGroupOptions {
|
|
|
2996
3012
|
description?: string | null;
|
|
2997
3013
|
}
|
|
2998
3014
|
//#endregion
|
|
2999
|
-
//#region src/pipes/interfaces/
|
|
3000
|
-
interface
|
|
3001
|
-
/** The
|
|
3002
|
-
|
|
3003
|
-
/** The
|
|
3015
|
+
//#region src/pipes/interfaces/api-key-installation.interface.d.ts
|
|
3016
|
+
interface ApiKeyInstallation {
|
|
3017
|
+
/** The API key secret to store for the tenant. */
|
|
3018
|
+
secret: string;
|
|
3019
|
+
/** The User identifier the API key is installed for. */
|
|
3020
|
+
userId: string;
|
|
3021
|
+
/** An Organization identifier to scope the installation to a specific organization. */
|
|
3022
|
+
organizationId?: string;
|
|
3023
|
+
}
|
|
3024
|
+
interface ApiKeyInstallationResponse {
|
|
3025
|
+
secret: string;
|
|
3026
|
+
user_id: string;
|
|
3027
|
+
organization_id?: string;
|
|
3028
|
+
}
|
|
3029
|
+
//#endregion
|
|
3030
|
+
//#region src/pipes/interfaces/data-integrations-get-data-integration-authorize-url-request-connection-owner.interface.d.ts
|
|
3031
|
+
declare const DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner: {
|
|
3032
|
+
readonly User: "user";
|
|
3033
|
+
readonly Organization: "organization";
|
|
3034
|
+
};
|
|
3035
|
+
type DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner = (typeof DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner)[keyof typeof DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner];
|
|
3036
|
+
//#endregion
|
|
3037
|
+
//#region src/pipes/interfaces/data-integrations-get-data-integration-authorize-url-request.interface.d.ts
|
|
3038
|
+
interface DataIntegrationsGetDataIntegrationAuthorizeUrlRequest {
|
|
3039
|
+
/** 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
3040
|
userId: string;
|
|
3005
|
-
/** An organization ID to scope the authorization to a specific organization. */
|
|
3041
|
+
/** An organization ID to scope the authorization to a specific organization. Required when `connection_owner` is `organization`. */
|
|
3006
3042
|
organizationId?: string;
|
|
3043
|
+
/** 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`. */
|
|
3044
|
+
connectionOwner?: DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner;
|
|
3007
3045
|
/** The URL to redirect the user to after authorization. */
|
|
3008
3046
|
returnTo?: string;
|
|
3047
|
+
/** 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. */
|
|
3048
|
+
config?: Record<string, string>;
|
|
3049
|
+
}
|
|
3050
|
+
interface DataIntegrationsGetDataIntegrationAuthorizeUrlRequestResponse {
|
|
3051
|
+
user_id: string;
|
|
3052
|
+
organization_id?: string;
|
|
3053
|
+
connection_owner?: DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner;
|
|
3054
|
+
return_to?: string;
|
|
3055
|
+
config?: Record<string, string>;
|
|
3056
|
+
}
|
|
3057
|
+
//#endregion
|
|
3058
|
+
//#region src/pipes/interfaces/authorize-data-integration-options.interface.d.ts
|
|
3059
|
+
interface AuthorizeDataIntegrationOptions extends DataIntegrationsGetDataIntegrationAuthorizeUrlRequest {
|
|
3060
|
+
/** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
|
|
3061
|
+
slug: string;
|
|
3009
3062
|
}
|
|
3010
3063
|
//#endregion
|
|
3011
3064
|
//#region src/pipes/interfaces/connected-account-auth-method.interface.d.ts
|
|
3012
3065
|
declare const ConnectedAccountAuthMethod: {
|
|
3013
3066
|
readonly OAuth: "oauth";
|
|
3014
3067
|
readonly ApiKey: "api_key";
|
|
3068
|
+
readonly ClientCredentials: "client_credentials";
|
|
3015
3069
|
};
|
|
3016
3070
|
type ConnectedAccountAuthMethod = (typeof ConnectedAccountAuthMethod)[keyof typeof ConnectedAccountAuthMethod];
|
|
3017
3071
|
//#endregion
|
|
3072
|
+
//#region src/pipes/interfaces/connected-account-connection-role.interface.d.ts
|
|
3073
|
+
declare const ConnectedAccountConnectionRole: {
|
|
3074
|
+
readonly Compatibility: "compatibility";
|
|
3075
|
+
readonly Standard: "standard";
|
|
3076
|
+
};
|
|
3077
|
+
type ConnectedAccountConnectionRole = (typeof ConnectedAccountConnectionRole)[keyof typeof ConnectedAccountConnectionRole];
|
|
3078
|
+
//#endregion
|
|
3079
|
+
//#region src/pipes/interfaces/connected-account-input-state.interface.d.ts
|
|
3080
|
+
declare const ConnectedAccountInputState: {
|
|
3081
|
+
readonly Connected: "connected";
|
|
3082
|
+
readonly NeedsReauthorization: "needs_reauthorization";
|
|
3083
|
+
};
|
|
3084
|
+
type ConnectedAccountInputState = (typeof ConnectedAccountInputState)[keyof typeof ConnectedAccountInputState];
|
|
3085
|
+
//#endregion
|
|
3018
3086
|
//#region src/pipes/interfaces/connected-account-state.interface.d.ts
|
|
3019
3087
|
declare const ConnectedAccountState: {
|
|
3020
3088
|
readonly Connected: "connected";
|
|
3021
3089
|
readonly NeedsReauthorization: "needs_reauthorization";
|
|
3090
|
+
readonly Disconnected: "disconnected";
|
|
3022
3091
|
};
|
|
3023
3092
|
type ConnectedAccountState = (typeof ConnectedAccountState)[keyof typeof ConnectedAccountState];
|
|
3024
3093
|
//#endregion
|
|
@@ -3028,16 +3097,28 @@ interface ConnectedAccount {
|
|
|
3028
3097
|
object: 'connected_account';
|
|
3029
3098
|
/** The unique identifier of the connected account. */
|
|
3030
3099
|
id: string;
|
|
3100
|
+
/** 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. */
|
|
3101
|
+
connectionRole?: ConnectedAccountConnectionRole;
|
|
3102
|
+
/** A best-effort identifier for the provider account this connection points at. It is correlation metadata, not the connection identifier or a selector. */
|
|
3103
|
+
accountIdentifier?: string | null;
|
|
3104
|
+
/** A mutable, non-unique display name for the provider account connection. */
|
|
3105
|
+
accountDisplayName?: string | null;
|
|
3031
3106
|
/** The [User](https://workos.com/docs/reference/authkit/user) identifier associated with this connection. */
|
|
3032
3107
|
userId: string | null;
|
|
3033
3108
|
/** The [Organization](https://workos.com/docs/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization. */
|
|
3034
3109
|
organizationId: string | null;
|
|
3035
3110
|
/** The OAuth scopes granted for this connection. */
|
|
3036
3111
|
scopes: string[];
|
|
3037
|
-
/** The authentication method used for this connection (`oauth` or `
|
|
3112
|
+
/** The authentication method used for this connection (`oauth`, `api_key`, or `client_credentials`). Defaults to `oauth` if absent. */
|
|
3038
3113
|
authMethod?: ConnectedAccountAuthMethod;
|
|
3039
3114
|
/** The last four characters of the API key, or `null` for OAuth connections. */
|
|
3040
3115
|
apiKeyLast4?: string | null;
|
|
3116
|
+
/** The client ID supplied for this connection. Only present when `auth_method` is `client_credentials`. */
|
|
3117
|
+
clientId?: string | null;
|
|
3118
|
+
/** 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`. */
|
|
3119
|
+
clientSecretLast4?: string | null;
|
|
3120
|
+
/** 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. */
|
|
3121
|
+
config?: Record<string, string>;
|
|
3041
3122
|
/**
|
|
3042
3123
|
* The state of the connected account:
|
|
3043
3124
|
* - `connected`: The connection is active and tokens are valid.
|
|
@@ -3053,44 +3134,132 @@ interface ConnectedAccount {
|
|
|
3053
3134
|
interface ConnectedAccountResponse {
|
|
3054
3135
|
object: 'connected_account';
|
|
3055
3136
|
id: string;
|
|
3137
|
+
connection_role?: ConnectedAccountConnectionRole;
|
|
3138
|
+
account_identifier?: string | null;
|
|
3139
|
+
account_display_name?: string | null;
|
|
3056
3140
|
user_id: string | null;
|
|
3057
3141
|
organization_id: string | null;
|
|
3058
3142
|
scopes: string[];
|
|
3059
3143
|
auth_method?: ConnectedAccountAuthMethod;
|
|
3060
3144
|
api_key_last_4?: string | null;
|
|
3145
|
+
client_id?: string | null;
|
|
3146
|
+
client_secret_last_4?: string | null;
|
|
3147
|
+
config?: Record<string, string>;
|
|
3061
3148
|
state: ConnectedAccountState;
|
|
3062
3149
|
created_at: string;
|
|
3063
3150
|
updated_at: string;
|
|
3064
3151
|
}
|
|
3065
3152
|
//#endregion
|
|
3066
|
-
//#region src/pipes/interfaces/create-
|
|
3067
|
-
|
|
3153
|
+
//#region src/pipes/interfaces/data-integrations-create-api-key-connection-request-connection-owner.interface.d.ts
|
|
3154
|
+
declare const DataIntegrationsCreateApiKeyConnectionRequestConnectionOwner: {
|
|
3155
|
+
readonly User: "user";
|
|
3156
|
+
readonly Organization: "organization";
|
|
3157
|
+
};
|
|
3158
|
+
type DataIntegrationsCreateApiKeyConnectionRequestConnectionOwner = (typeof DataIntegrationsCreateApiKeyConnectionRequestConnectionOwner)[keyof typeof DataIntegrationsCreateApiKeyConnectionRequestConnectionOwner];
|
|
3159
|
+
//#endregion
|
|
3160
|
+
//#region src/pipes/interfaces/create-data-integration-api-key-options.interface.d.ts
|
|
3161
|
+
interface CreateDataIntegrationApiKeyOptions {
|
|
3162
|
+
/** The identifier of the integration. */
|
|
3163
|
+
slug: string;
|
|
3164
|
+
/** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
|
|
3165
|
+
userId: string;
|
|
3166
|
+
/** 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`. */
|
|
3167
|
+
organizationId?: string;
|
|
3168
|
+
/** 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. */
|
|
3169
|
+
connectionOwner?: DataIntegrationsCreateApiKeyConnectionRequestConnectionOwner;
|
|
3170
|
+
/** The API key secret to store for this integration. */
|
|
3171
|
+
secret: string;
|
|
3172
|
+
/** 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`. */
|
|
3173
|
+
connectionIntent: 'add';
|
|
3174
|
+
}
|
|
3175
|
+
//#endregion
|
|
3176
|
+
//#region src/pipes/interfaces/create-data-integration-auth-methods.interface.d.ts
|
|
3177
|
+
declare const CreateDataIntegrationAuthMethods: {
|
|
3178
|
+
readonly OAuth: "oauth";
|
|
3179
|
+
readonly ApiKey: "api_key";
|
|
3180
|
+
readonly ClientCredentials: "client_credentials";
|
|
3181
|
+
};
|
|
3182
|
+
type CreateDataIntegrationAuthMethods = (typeof CreateDataIntegrationAuthMethods)[keyof typeof CreateDataIntegrationAuthMethods];
|
|
3183
|
+
//#endregion
|
|
3184
|
+
//#region src/pipes/interfaces/data-integrations-create-client-credentials-connection-request-connection-owner.interface.d.ts
|
|
3185
|
+
declare const DataIntegrationsCreateClientCredentialsConnectionRequestConnectionOwner: {
|
|
3186
|
+
readonly User: "user";
|
|
3187
|
+
readonly Organization: "organization";
|
|
3188
|
+
};
|
|
3189
|
+
type DataIntegrationsCreateClientCredentialsConnectionRequestConnectionOwner = (typeof DataIntegrationsCreateClientCredentialsConnectionRequestConnectionOwner)[keyof typeof DataIntegrationsCreateClientCredentialsConnectionRequestConnectionOwner];
|
|
3190
|
+
//#endregion
|
|
3191
|
+
//#region src/pipes/interfaces/create-data-integration-client-credential-options.interface.d.ts
|
|
3192
|
+
interface CreateDataIntegrationClientCredentialOptions {
|
|
3068
3193
|
/** The identifier of the integration. */
|
|
3069
3194
|
slug: string;
|
|
3070
3195
|
/** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
|
|
3071
3196
|
userId: string;
|
|
3072
|
-
/** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. */
|
|
3197
|
+
/** 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`. */
|
|
3198
|
+
organizationId?: string;
|
|
3199
|
+
/** 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. */
|
|
3200
|
+
connectionOwner?: DataIntegrationsCreateClientCredentialsConnectionRequestConnectionOwner;
|
|
3201
|
+
/** The OAuth client ID to store for this integration. */
|
|
3202
|
+
clientId: string;
|
|
3203
|
+
/** The OAuth client secret to store for this integration. */
|
|
3204
|
+
clientSecret: string;
|
|
3205
|
+
/** Provider-specific configuration values collected for this installation, keyed by the provider's config field descriptors. */
|
|
3206
|
+
config?: Record<string, string>;
|
|
3207
|
+
/** 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`. */
|
|
3208
|
+
connectionIntent: 'add';
|
|
3209
|
+
}
|
|
3210
|
+
//#endregion
|
|
3211
|
+
//#region src/pipes/interfaces/data-integrations-vend-credentials-request-connection-owner.interface.d.ts
|
|
3212
|
+
declare const DataIntegrationsVendCredentialsRequestConnectionOwner: {
|
|
3213
|
+
readonly User: "user";
|
|
3214
|
+
readonly Organization: "organization";
|
|
3215
|
+
};
|
|
3216
|
+
type DataIntegrationsVendCredentialsRequestConnectionOwner = (typeof DataIntegrationsVendCredentialsRequestConnectionOwner)[keyof typeof DataIntegrationsVendCredentialsRequestConnectionOwner];
|
|
3217
|
+
//#endregion
|
|
3218
|
+
//#region src/pipes/interfaces/data-integrations-vend-credentials-request.interface.d.ts
|
|
3219
|
+
interface DataIntegrationsVendCredentialsRequest {
|
|
3220
|
+
/** 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. */
|
|
3221
|
+
userId: string;
|
|
3222
|
+
/** 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
3223
|
organizationId?: string;
|
|
3224
|
+
/** 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. */
|
|
3225
|
+
connectedAccountId?: string;
|
|
3226
|
+
/** 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`. */
|
|
3227
|
+
connectionOwner?: DataIntegrationsVendCredentialsRequestConnectionOwner;
|
|
3228
|
+
/** 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. */
|
|
3229
|
+
supportsMultipleConnections?: boolean;
|
|
3230
|
+
}
|
|
3231
|
+
interface DataIntegrationsVendCredentialsRequestResponse {
|
|
3232
|
+
user_id: string;
|
|
3233
|
+
organization_id?: string;
|
|
3234
|
+
connected_account_id?: string;
|
|
3235
|
+
connection_owner?: DataIntegrationsVendCredentialsRequestConnectionOwner;
|
|
3236
|
+
supports_multiple_connections?: boolean;
|
|
3237
|
+
}
|
|
3238
|
+
//#endregion
|
|
3239
|
+
//#region src/pipes/interfaces/create-data-integration-credential-options.interface.d.ts
|
|
3240
|
+
interface CreateDataIntegrationCredentialOptions extends DataIntegrationsVendCredentialsRequest {
|
|
3241
|
+
/** The identifier of the integration. */
|
|
3242
|
+
slug: string;
|
|
3074
3243
|
}
|
|
3075
3244
|
//#endregion
|
|
3076
|
-
//#region src/pipes/interfaces/data-integration-credentials-type.interface.d.ts
|
|
3077
|
-
declare const
|
|
3245
|
+
//#region src/pipes/interfaces/data-integration-credentials-input-type.interface.d.ts
|
|
3246
|
+
declare const DataIntegrationCredentialsInputType: {
|
|
3078
3247
|
readonly Custom: "custom";
|
|
3079
3248
|
readonly Organization: "organization";
|
|
3080
3249
|
};
|
|
3081
|
-
type
|
|
3250
|
+
type DataIntegrationCredentialsInputType = (typeof DataIntegrationCredentialsInputType)[keyof typeof DataIntegrationCredentialsInputType];
|
|
3082
3251
|
//#endregion
|
|
3083
|
-
//#region src/pipes/interfaces/data-integration-credentials-
|
|
3084
|
-
interface
|
|
3252
|
+
//#region src/pipes/interfaces/data-integration-credentials-input.interface.d.ts
|
|
3253
|
+
interface DataIntegrationCredentialsInput {
|
|
3085
3254
|
/** The credentials type. `custom` uses your own OAuth app credentials; `organization` has each organization supply its own credentials (configured per-organization). */
|
|
3086
|
-
type:
|
|
3255
|
+
type: DataIntegrationCredentialsInputType;
|
|
3087
3256
|
/** OAuth client ID for the provider app. Required when `type` is `custom`; omit for `organization`. */
|
|
3088
3257
|
clientId?: string;
|
|
3089
3258
|
/** OAuth client secret for the provider app. Required when `type` is `custom`; omit for `organization`. */
|
|
3090
3259
|
clientSecret?: string;
|
|
3091
3260
|
}
|
|
3092
|
-
interface
|
|
3093
|
-
type:
|
|
3261
|
+
interface DataIntegrationCredentialsInputResponse {
|
|
3262
|
+
type: DataIntegrationCredentialsInputType;
|
|
3094
3263
|
client_id?: string;
|
|
3095
3264
|
client_secret?: string;
|
|
3096
3265
|
}
|
|
@@ -3106,11 +3275,11 @@ type CustomProviderDefinitionAuthenticateVia = (typeof CustomProviderDefinitionA
|
|
|
3106
3275
|
interface CustomProviderDefinition {
|
|
3107
3276
|
/** A descriptive name for the custom provider. */
|
|
3108
3277
|
name: string;
|
|
3109
|
-
/** The provider's OAuth authorization endpoint. */
|
|
3110
|
-
authorizationUrl
|
|
3111
|
-
/** The provider's OAuth token endpoint. */
|
|
3112
|
-
tokenUrl
|
|
3113
|
-
/** The endpoint used to refresh tokens, if different from the token endpoint. */
|
|
3278
|
+
/** 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. */
|
|
3279
|
+
authorizationUrl?: string;
|
|
3280
|
+
/** 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. */
|
|
3281
|
+
tokenUrl?: string;
|
|
3282
|
+
/** The endpoint used to refresh tokens, if different from the token endpoint. Must be a static URL, like the other endpoints. */
|
|
3114
3283
|
refreshTokenUrl?: string | null;
|
|
3115
3284
|
/** Whether PKCE is used during the authorization code flow. Defaults to `true`. */
|
|
3116
3285
|
pkceEnabled?: boolean;
|
|
@@ -3129,8 +3298,8 @@ interface CustomProviderDefinition {
|
|
|
3129
3298
|
}
|
|
3130
3299
|
interface CustomProviderDefinitionResponse {
|
|
3131
3300
|
name: string;
|
|
3132
|
-
authorization_url
|
|
3133
|
-
token_url
|
|
3301
|
+
authorization_url?: string;
|
|
3302
|
+
token_url?: string;
|
|
3134
3303
|
refresh_token_url?: string | null;
|
|
3135
3304
|
pkce_enabled?: boolean;
|
|
3136
3305
|
request_scope_separator?: string;
|
|
@@ -3141,21 +3310,82 @@ interface CustomProviderDefinitionResponse {
|
|
|
3141
3310
|
authenticate_via?: CustomProviderDefinitionAuthenticateVia;
|
|
3142
3311
|
}
|
|
3143
3312
|
//#endregion
|
|
3144
|
-
//#region src/pipes/interfaces/create-data-integration-
|
|
3145
|
-
|
|
3313
|
+
//#region src/pipes/interfaces/create-data-integration-ownership.interface.d.ts
|
|
3314
|
+
declare const CreateDataIntegrationOwnership: {
|
|
3315
|
+
readonly User: "user";
|
|
3316
|
+
readonly Organization: "organization";
|
|
3317
|
+
};
|
|
3318
|
+
type CreateDataIntegrationOwnership = (typeof CreateDataIntegrationOwnership)[keyof typeof CreateDataIntegrationOwnership];
|
|
3319
|
+
//#endregion
|
|
3320
|
+
//#region src/pipes/interfaces/create-data-integration.interface.d.ts
|
|
3321
|
+
interface CreateDataIntegration {
|
|
3146
3322
|
/** 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
3323
|
provider: string;
|
|
3324
|
+
/** 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`. */
|
|
3325
|
+
ownership?: CreateDataIntegrationOwnership;
|
|
3148
3326
|
/** An optional description of the Data Integration. */
|
|
3149
3327
|
description?: string | null;
|
|
3150
3328
|
/** Whether the Data Integration is enabled. Defaults to `false`. */
|
|
3151
3329
|
enabled?: boolean;
|
|
3152
3330
|
/** The OAuth scopes to request for the Data Integration. Defaults to the provider's configured scopes when omitted. */
|
|
3153
3331
|
scopes?: string[] | null;
|
|
3154
|
-
/**
|
|
3155
|
-
|
|
3332
|
+
/** 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. */
|
|
3333
|
+
authMethods?: CreateDataIntegrationAuthMethods[];
|
|
3334
|
+
/** Provider-specific config values (e.g. a Snowflake `account`), keyed by the config field. Only fields the built-in provider declares are accepted. */
|
|
3335
|
+
config?: Record<string, string>;
|
|
3336
|
+
/** The OAuth credentials to configure for the Data Integration. Required for OAuth integrations; omit when `auth_methods` is `["api_key"]`. */
|
|
3337
|
+
credentials?: DataIntegrationCredentialsInput;
|
|
3338
|
+
/** 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. */
|
|
3339
|
+
apiKey?: ApiKeyInstallation;
|
|
3156
3340
|
/** 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
3341
|
customProvider?: CustomProviderDefinition;
|
|
3158
3342
|
}
|
|
3343
|
+
interface CreateDataIntegrationResponse {
|
|
3344
|
+
provider: string;
|
|
3345
|
+
ownership?: CreateDataIntegrationOwnership;
|
|
3346
|
+
description?: string | null;
|
|
3347
|
+
enabled?: boolean;
|
|
3348
|
+
scopes?: string[] | null;
|
|
3349
|
+
auth_methods?: CreateDataIntegrationAuthMethods[];
|
|
3350
|
+
config?: Record<string, string>;
|
|
3351
|
+
credentials?: DataIntegrationCredentialsInputResponse;
|
|
3352
|
+
api_key?: ApiKeyInstallationResponse;
|
|
3353
|
+
custom_provider?: CustomProviderDefinitionResponse;
|
|
3354
|
+
}
|
|
3355
|
+
//#endregion
|
|
3356
|
+
//#region src/pipes/interfaces/create-data-integration-options.interface.d.ts
|
|
3357
|
+
interface CreateDataIntegrationOptions extends CreateDataIntegration {
|
|
3358
|
+
provider: string;
|
|
3359
|
+
}
|
|
3360
|
+
//#endregion
|
|
3361
|
+
//#region src/pipes/interfaces/organization-connected-account-state.interface.d.ts
|
|
3362
|
+
declare const OrganizationConnectedAccountState: {
|
|
3363
|
+
readonly Connected: "connected";
|
|
3364
|
+
readonly NeedsReauthorization: "needs_reauthorization";
|
|
3365
|
+
};
|
|
3366
|
+
type OrganizationConnectedAccountState = (typeof OrganizationConnectedAccountState)[keyof typeof OrganizationConnectedAccountState];
|
|
3367
|
+
//#endregion
|
|
3368
|
+
//#region src/pipes/interfaces/create-organization-connected-account-options.interface.d.ts
|
|
3369
|
+
interface CreateOrganizationConnectedAccountOptions {
|
|
3370
|
+
/** An [Organization](https://workos.com/docs/reference/organization) identifier. */
|
|
3371
|
+
organizationId: string;
|
|
3372
|
+
/** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
|
|
3373
|
+
slug: string;
|
|
3374
|
+
/** The OAuth access token for the connected account. */
|
|
3375
|
+
accessToken?: string;
|
|
3376
|
+
/** The OAuth refresh token for the connected account. */
|
|
3377
|
+
refreshToken?: string;
|
|
3378
|
+
/** The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire. */
|
|
3379
|
+
expiresAt?: Date;
|
|
3380
|
+
/** The OAuth scopes granted for this connection. */
|
|
3381
|
+
scopes?: string[];
|
|
3382
|
+
/** Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided. */
|
|
3383
|
+
state?: OrganizationConnectedAccountState;
|
|
3384
|
+
/** 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. */
|
|
3385
|
+
userId: string;
|
|
3386
|
+
/** 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. */
|
|
3387
|
+
connectionIntent?: 'add';
|
|
3388
|
+
}
|
|
3159
3389
|
//#endregion
|
|
3160
3390
|
//#region src/pipes/interfaces/create-user-connected-account-options.interface.d.ts
|
|
3161
3391
|
interface CreateUserConnectedAccountOptions {
|
|
@@ -3174,7 +3404,9 @@ interface CreateUserConnectedAccountOptions {
|
|
|
3174
3404
|
/** The OAuth scopes granted for this connection. */
|
|
3175
3405
|
scopes?: string[];
|
|
3176
3406
|
/** Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided. */
|
|
3177
|
-
state?:
|
|
3407
|
+
state?: ConnectedAccountInputState;
|
|
3408
|
+
/** 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. */
|
|
3409
|
+
connectionIntent?: 'add';
|
|
3178
3410
|
}
|
|
3179
3411
|
//#endregion
|
|
3180
3412
|
//#region src/pipes/interfaces/data-integration-access-token-response-access-token.interface.d.ts
|
|
@@ -3215,6 +3447,14 @@ type DataIntegrationAccessTokenResponseWire = {
|
|
|
3215
3447
|
error: 'needs_reauthorization' | 'not_installed';
|
|
3216
3448
|
};
|
|
3217
3449
|
//#endregion
|
|
3450
|
+
//#region src/pipes/interfaces/data-integration-auth-methods.interface.d.ts
|
|
3451
|
+
declare const DataIntegrationAuthMethods: {
|
|
3452
|
+
readonly OAuth: "oauth";
|
|
3453
|
+
readonly ApiKey: "api_key";
|
|
3454
|
+
readonly ClientCredentials: "client_credentials";
|
|
3455
|
+
};
|
|
3456
|
+
type DataIntegrationAuthMethods = (typeof DataIntegrationAuthMethods)[keyof typeof DataIntegrationAuthMethods];
|
|
3457
|
+
//#endregion
|
|
3218
3458
|
//#region src/pipes/interfaces/data-integration-authorize-url-response.interface.d.ts
|
|
3219
3459
|
interface DataIntegrationAuthorizeUrlResponse {
|
|
3220
3460
|
/** The OAuth authorization URL to redirect the user to. */
|
|
@@ -3247,30 +3487,69 @@ interface DataIntegrationCredentialResponse {
|
|
|
3247
3487
|
redacted_client_secret: string | null;
|
|
3248
3488
|
}
|
|
3249
3489
|
//#endregion
|
|
3250
|
-
//#region src/pipes/interfaces/data-integration-
|
|
3251
|
-
/**
|
|
3252
|
-
|
|
3253
|
-
|
|
3490
|
+
//#region src/pipes/interfaces/data-integration-vended-credential.interface.d.ts
|
|
3491
|
+
/**
|
|
3492
|
+
* A vended credential, discriminated by its authentication method.
|
|
3493
|
+
* `config` contains provider-declared, non-secret snapshot values with live
|
|
3494
|
+
* defaults. It is optional for compatibility with older API responses.
|
|
3495
|
+
*/
|
|
3496
|
+
type DataIntegrationVendedCredential = {
|
|
3254
3497
|
object: 'credential';
|
|
3255
|
-
/** The authentication method for this credential. Additional values may be added in the future; handle unknown values gracefully. */
|
|
3256
3498
|
authMethod: 'oauth';
|
|
3257
|
-
/** The OAuth access token. */
|
|
3258
3499
|
value: string;
|
|
3259
|
-
|
|
3500
|
+
config?: Record<string, string>;
|
|
3260
3501
|
expiresAt: string | null;
|
|
3261
|
-
/** The scopes granted to the access token. */
|
|
3262
3502
|
scopes: string[];
|
|
3263
|
-
/** If the integration has requested scopes that aren't present on the access token, they're listed here. */
|
|
3264
3503
|
missingScopes: string[];
|
|
3265
|
-
|
|
3266
|
-
|
|
3504
|
+
metadata?: undefined;
|
|
3505
|
+
} | {
|
|
3506
|
+
object: 'credential';
|
|
3507
|
+
authMethod: 'api_key';
|
|
3508
|
+
value: string;
|
|
3509
|
+
config?: Record<string, string>;
|
|
3510
|
+
expiresAt?: undefined;
|
|
3511
|
+
scopes?: undefined;
|
|
3512
|
+
missingScopes?: undefined;
|
|
3513
|
+
metadata?: undefined;
|
|
3514
|
+
} | {
|
|
3515
|
+
object: 'credential';
|
|
3516
|
+
authMethod: 'client_credentials';
|
|
3517
|
+
value: string;
|
|
3518
|
+
config?: Record<string, string>;
|
|
3519
|
+
expiresAt: string | null;
|
|
3520
|
+
scopes: string[];
|
|
3521
|
+
missingScopes: string[];
|
|
3522
|
+
/** Non-sensitive provider token response fields, such as an instance URL. */
|
|
3523
|
+
metadata: Record<string, unknown>;
|
|
3524
|
+
};
|
|
3525
|
+
type DataIntegrationVendedCredentialResponse = {
|
|
3267
3526
|
object: 'credential';
|
|
3268
3527
|
auth_method: 'oauth';
|
|
3269
3528
|
value: string;
|
|
3529
|
+
config?: Record<string, string>;
|
|
3270
3530
|
expires_at: string | null;
|
|
3271
3531
|
scopes: string[];
|
|
3272
3532
|
missing_scopes: string[];
|
|
3273
|
-
|
|
3533
|
+
metadata?: undefined;
|
|
3534
|
+
} | {
|
|
3535
|
+
object: 'credential';
|
|
3536
|
+
auth_method: 'api_key';
|
|
3537
|
+
value: string;
|
|
3538
|
+
config?: Record<string, string>;
|
|
3539
|
+
expires_at?: undefined;
|
|
3540
|
+
scopes?: undefined;
|
|
3541
|
+
missing_scopes?: undefined;
|
|
3542
|
+
metadata?: undefined;
|
|
3543
|
+
} | {
|
|
3544
|
+
object: 'credential';
|
|
3545
|
+
auth_method: 'client_credentials';
|
|
3546
|
+
value: string;
|
|
3547
|
+
config?: Record<string, string>;
|
|
3548
|
+
expires_at: string | null;
|
|
3549
|
+
scopes: string[];
|
|
3550
|
+
missing_scopes: string[];
|
|
3551
|
+
metadata: Record<string, unknown>;
|
|
3552
|
+
};
|
|
3274
3553
|
//#endregion
|
|
3275
3554
|
//#region src/pipes/interfaces/data-integration-credentials-response-error.interface.d.ts
|
|
3276
3555
|
declare const DataIntegrationCredentialsResponseError: {
|
|
@@ -3279,6 +3558,26 @@ declare const DataIntegrationCredentialsResponseError: {
|
|
|
3279
3558
|
};
|
|
3280
3559
|
type DataIntegrationCredentialsResponseError = (typeof DataIntegrationCredentialsResponseError)[keyof typeof DataIntegrationCredentialsResponseError];
|
|
3281
3560
|
//#endregion
|
|
3561
|
+
//#region src/pipes/interfaces/data-integration-credentials-response.interface.d.ts
|
|
3562
|
+
type DataIntegrationCredentialsResponse = {
|
|
3563
|
+
active: true;
|
|
3564
|
+
credential: DataIntegrationVendedCredential;
|
|
3565
|
+
error?: undefined;
|
|
3566
|
+
} | {
|
|
3567
|
+
active: false;
|
|
3568
|
+
error: DataIntegrationCredentialsResponseError;
|
|
3569
|
+
credential?: undefined;
|
|
3570
|
+
};
|
|
3571
|
+
type DataIntegrationCredentialsResponseWire = {
|
|
3572
|
+
active: true;
|
|
3573
|
+
credential: DataIntegrationVendedCredentialResponse;
|
|
3574
|
+
error?: undefined;
|
|
3575
|
+
} | {
|
|
3576
|
+
active: false;
|
|
3577
|
+
error: DataIntegrationCredentialsResponseError;
|
|
3578
|
+
credential?: undefined;
|
|
3579
|
+
};
|
|
3580
|
+
//#endregion
|
|
3282
3581
|
//#region src/pipes/interfaces/data-integration-custom-provider-authenticate-via.interface.d.ts
|
|
3283
3582
|
declare const DataIntegrationCustomProviderAuthenticateVia: {
|
|
3284
3583
|
readonly RequestBody: "request_body";
|
|
@@ -3325,6 +3624,47 @@ interface DataIntegrationCustomProviderResponse {
|
|
|
3325
3624
|
authenticate_via: DataIntegrationCustomProviderAuthenticateVia;
|
|
3326
3625
|
}
|
|
3327
3626
|
//#endregion
|
|
3627
|
+
//#region src/pipes/interfaces/data-integration-installation-connection-role.interface.d.ts
|
|
3628
|
+
declare const DataIntegrationInstallationConnectionRole: {
|
|
3629
|
+
readonly Compatibility: "compatibility";
|
|
3630
|
+
readonly Standard: "standard";
|
|
3631
|
+
};
|
|
3632
|
+
type DataIntegrationInstallationConnectionRole = (typeof DataIntegrationInstallationConnectionRole)[keyof typeof DataIntegrationInstallationConnectionRole];
|
|
3633
|
+
//#endregion
|
|
3634
|
+
//#region src/pipes/interfaces/data-integration-installation.interface.d.ts
|
|
3635
|
+
interface DataIntegrationInstallation {
|
|
3636
|
+
/** Unique identifier of the installation. */
|
|
3637
|
+
id: string;
|
|
3638
|
+
/** Whether this is the compatibility connection visible to undeclared clients or a standard connection for plural-aware clients. */
|
|
3639
|
+
connectionRole: DataIntegrationInstallationConnectionRole;
|
|
3640
|
+
/** A best-effort provider account identifier used for correlation, not connection selection. */
|
|
3641
|
+
accountIdentifier: string | null;
|
|
3642
|
+
/** A mutable, non-unique display name for this connection. */
|
|
3643
|
+
accountDisplayName: string | null;
|
|
3644
|
+
/** The User the API key was installed for. Null on an `organization`-owned integration, whose installations belong to the organization. */
|
|
3645
|
+
userId: string | null;
|
|
3646
|
+
/** The Organization the installation is scoped to (or owned by, on an `organization`-owned integration), or null when unscoped. */
|
|
3647
|
+
organizationId: string | null;
|
|
3648
|
+
/** The last four characters of the stored API key. The full key is never returned. */
|
|
3649
|
+
apiKeyLast4: string | null;
|
|
3650
|
+
}
|
|
3651
|
+
interface DataIntegrationInstallationResponse {
|
|
3652
|
+
id: string;
|
|
3653
|
+
connection_role: DataIntegrationInstallationConnectionRole;
|
|
3654
|
+
account_identifier: string | null;
|
|
3655
|
+
account_display_name: string | null;
|
|
3656
|
+
user_id: string | null;
|
|
3657
|
+
organization_id: string | null;
|
|
3658
|
+
api_key_last_4: string | null;
|
|
3659
|
+
}
|
|
3660
|
+
//#endregion
|
|
3661
|
+
//#region src/pipes/interfaces/data-integration-ownership.interface.d.ts
|
|
3662
|
+
declare const DataIntegrationOwnership: {
|
|
3663
|
+
readonly User: "user";
|
|
3664
|
+
readonly Organization: "organization";
|
|
3665
|
+
};
|
|
3666
|
+
type DataIntegrationOwnership = (typeof DataIntegrationOwnership)[keyof typeof DataIntegrationOwnership];
|
|
3667
|
+
//#endregion
|
|
3328
3668
|
//#region src/pipes/interfaces/data-integration-state.interface.d.ts
|
|
3329
3669
|
declare const DataIntegrationState: {
|
|
3330
3670
|
readonly Valid: "valid";
|
|
@@ -3343,6 +3683,8 @@ interface DataIntegration {
|
|
|
3343
3683
|
slug: string;
|
|
3344
3684
|
/** The integration type derived from the provider. */
|
|
3345
3685
|
integrationType: string;
|
|
3686
|
+
/** Who owns the Data Integration: `user` when users connect their own accounts, `organization` when organizations connect. Fixed at creation. */
|
|
3687
|
+
ownership?: DataIntegrationOwnership;
|
|
3346
3688
|
/** An optional description of the Data Integration. */
|
|
3347
3689
|
description: string | null;
|
|
3348
3690
|
/** Whether the Data Integration is enabled. */
|
|
@@ -3351,10 +3693,16 @@ interface DataIntegration {
|
|
|
3351
3693
|
state: DataIntegrationState;
|
|
3352
3694
|
/** The OAuth scopes configured for the Data Integration. `null` when the provider's configured scopes are used. */
|
|
3353
3695
|
scopes: string[] | null;
|
|
3354
|
-
/** The OAuth redirect URI to register with the provider when configuring the custom application. */
|
|
3696
|
+
/** 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
3697
|
redirectUri: string;
|
|
3356
|
-
/**
|
|
3357
|
-
|
|
3698
|
+
/** How accounts authenticate with the provider for this Data Integration. */
|
|
3699
|
+
authMethods?: DataIntegrationAuthMethods[];
|
|
3700
|
+
/** 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). */
|
|
3701
|
+
credentials: DataIntegrationCredential | null;
|
|
3702
|
+
/** The tenant installation created when an API key was supplied at creation time; `null` otherwise. Not populated on list/get responses. */
|
|
3703
|
+
installation?: DataIntegrationInstallation | null;
|
|
3704
|
+
/** 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. */
|
|
3705
|
+
config?: Record<string, string>;
|
|
3358
3706
|
/** The OAuth definition when this is a custom provider; `null` for built-in providers. */
|
|
3359
3707
|
customProvider: DataIntegrationCustomProvider | null;
|
|
3360
3708
|
/** An ISO 8601 timestamp. */
|
|
@@ -3367,21 +3715,54 @@ interface DataIntegrationResponse {
|
|
|
3367
3715
|
id: string;
|
|
3368
3716
|
slug: string;
|
|
3369
3717
|
integration_type: string;
|
|
3718
|
+
ownership?: DataIntegrationOwnership;
|
|
3370
3719
|
description: string | null;
|
|
3371
3720
|
enabled: boolean;
|
|
3372
3721
|
state: DataIntegrationState;
|
|
3373
3722
|
scopes: string[] | null;
|
|
3374
3723
|
redirect_uri: string;
|
|
3375
|
-
|
|
3724
|
+
auth_methods?: DataIntegrationAuthMethods[];
|
|
3725
|
+
credentials: DataIntegrationCredentialResponse | null;
|
|
3726
|
+
installation?: DataIntegrationInstallationResponse | null;
|
|
3727
|
+
config?: Record<string, string>;
|
|
3376
3728
|
custom_provider: DataIntegrationCustomProviderResponse | null;
|
|
3377
3729
|
created_at: string;
|
|
3378
3730
|
updated_at: string;
|
|
3379
3731
|
}
|
|
3380
3732
|
//#endregion
|
|
3733
|
+
//#region src/pipes/interfaces/data-integrations-get-user-token-request-connection-owner.interface.d.ts
|
|
3734
|
+
declare const DataIntegrationsGetUserTokenRequestConnectionOwner: {
|
|
3735
|
+
readonly User: "user";
|
|
3736
|
+
readonly Organization: "organization";
|
|
3737
|
+
};
|
|
3738
|
+
type DataIntegrationsGetUserTokenRequestConnectionOwner = (typeof DataIntegrationsGetUserTokenRequestConnectionOwner)[keyof typeof DataIntegrationsGetUserTokenRequestConnectionOwner];
|
|
3739
|
+
//#endregion
|
|
3740
|
+
//#region src/pipes/interfaces/data-integrations-get-user-token-request.interface.d.ts
|
|
3741
|
+
interface DataIntegrationsGetUserTokenRequest {
|
|
3742
|
+
/** 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. */
|
|
3743
|
+
userId: string;
|
|
3744
|
+
/** 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`. */
|
|
3745
|
+
organizationId?: string | null;
|
|
3746
|
+
/** 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. */
|
|
3747
|
+
connectedAccountId?: string;
|
|
3748
|
+
/** 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`. */
|
|
3749
|
+
connectionOwner?: DataIntegrationsGetUserTokenRequestConnectionOwner;
|
|
3750
|
+
/** 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. */
|
|
3751
|
+
supportsMultipleConnections?: boolean;
|
|
3752
|
+
}
|
|
3753
|
+
interface DataIntegrationsGetUserTokenRequestResponse {
|
|
3754
|
+
user_id: string;
|
|
3755
|
+
organization_id?: string | null;
|
|
3756
|
+
connected_account_id?: string;
|
|
3757
|
+
connection_owner?: DataIntegrationsGetUserTokenRequestConnectionOwner;
|
|
3758
|
+
supports_multiple_connections?: boolean;
|
|
3759
|
+
}
|
|
3760
|
+
//#endregion
|
|
3381
3761
|
//#region src/pipes/interfaces/data-integrations-list-response-data-auth-methods.interface.d.ts
|
|
3382
3762
|
declare const DataIntegrationsListResponseDataAuthMethods: {
|
|
3383
3763
|
readonly OAuth: "oauth";
|
|
3384
3764
|
readonly ApiKey: "api_key";
|
|
3765
|
+
readonly ClientCredentials: "client_credentials";
|
|
3385
3766
|
};
|
|
3386
3767
|
type DataIntegrationsListResponseDataAuthMethods = (typeof DataIntegrationsListResponseDataAuthMethods)[keyof typeof DataIntegrationsListResponseDataAuthMethods];
|
|
3387
3768
|
//#endregion
|
|
@@ -3389,9 +3770,17 @@ type DataIntegrationsListResponseDataAuthMethods = (typeof DataIntegrationsListR
|
|
|
3389
3770
|
declare const DataIntegrationsListResponseDataConnectedAccountAuthMethod: {
|
|
3390
3771
|
readonly OAuth: "oauth";
|
|
3391
3772
|
readonly ApiKey: "api_key";
|
|
3773
|
+
readonly ClientCredentials: "client_credentials";
|
|
3392
3774
|
};
|
|
3393
3775
|
type DataIntegrationsListResponseDataConnectedAccountAuthMethod = (typeof DataIntegrationsListResponseDataConnectedAccountAuthMethod)[keyof typeof DataIntegrationsListResponseDataConnectedAccountAuthMethod];
|
|
3394
3776
|
//#endregion
|
|
3777
|
+
//#region src/pipes/interfaces/data-integrations-list-response-data-connected-account-connection-role.interface.d.ts
|
|
3778
|
+
declare const DataIntegrationsListResponseDataConnectedAccountConnectionRole: {
|
|
3779
|
+
readonly Compatibility: "compatibility";
|
|
3780
|
+
readonly Standard: "standard";
|
|
3781
|
+
};
|
|
3782
|
+
type DataIntegrationsListResponseDataConnectedAccountConnectionRole = (typeof DataIntegrationsListResponseDataConnectedAccountConnectionRole)[keyof typeof DataIntegrationsListResponseDataConnectedAccountConnectionRole];
|
|
3783
|
+
//#endregion
|
|
3395
3784
|
//#region src/pipes/interfaces/data-integrations-list-response-data-connected-account-state.interface.d.ts
|
|
3396
3785
|
declare const DataIntegrationsListResponseDataConnectedAccountState: {
|
|
3397
3786
|
readonly Connected: "connected";
|
|
@@ -3406,16 +3795,28 @@ interface DataIntegrationsListResponseDataConnectedAccount {
|
|
|
3406
3795
|
object: 'connected_account';
|
|
3407
3796
|
/** The unique identifier of the connected account. */
|
|
3408
3797
|
id: string;
|
|
3798
|
+
/** 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. */
|
|
3799
|
+
connectionRole?: DataIntegrationsListResponseDataConnectedAccountConnectionRole;
|
|
3800
|
+
/** A best-effort identifier for the provider account this connection points at. It is correlation metadata, not the connection identifier or a selector. */
|
|
3801
|
+
accountIdentifier?: string | null;
|
|
3802
|
+
/** A mutable, non-unique display name for the provider account connection. */
|
|
3803
|
+
accountDisplayName?: string | null;
|
|
3409
3804
|
/** The [User](https://workos.com/docs/reference/authkit/user) identifier associated with this connection. */
|
|
3410
3805
|
userId: string | null;
|
|
3411
3806
|
/** The [Organization](https://workos.com/docs/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization. */
|
|
3412
3807
|
organizationId: string | null;
|
|
3413
3808
|
/** The OAuth scopes granted for this connection. */
|
|
3414
3809
|
scopes: string[];
|
|
3415
|
-
/** The authentication method used for this connection (`oauth` or `
|
|
3810
|
+
/** The authentication method used for this connection (`oauth`, `api_key`, or `client_credentials`). Defaults to `oauth` if absent. */
|
|
3416
3811
|
authMethod?: DataIntegrationsListResponseDataConnectedAccountAuthMethod;
|
|
3417
3812
|
/** The last four characters of the API key, or `null` for OAuth connections. */
|
|
3418
3813
|
apiKeyLast4?: string | null;
|
|
3814
|
+
/** The client ID supplied for this connection. Only present when `auth_method` is `client_credentials`. */
|
|
3815
|
+
clientId?: string | null;
|
|
3816
|
+
/** 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`. */
|
|
3817
|
+
clientSecretLast4?: string | null;
|
|
3818
|
+
/** 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. */
|
|
3819
|
+
config?: Record<string, string>;
|
|
3419
3820
|
/**
|
|
3420
3821
|
* The state of the connected account:
|
|
3421
3822
|
* - `connected`: The connection is active and tokens are valid.
|
|
@@ -3436,17 +3837,30 @@ interface DataIntegrationsListResponseDataConnectedAccount {
|
|
|
3436
3837
|
interface DataIntegrationsListResponseDataConnectedAccountResponse {
|
|
3437
3838
|
object: 'connected_account';
|
|
3438
3839
|
id: string;
|
|
3840
|
+
connection_role?: DataIntegrationsListResponseDataConnectedAccountConnectionRole;
|
|
3841
|
+
account_identifier?: string | null;
|
|
3842
|
+
account_display_name?: string | null;
|
|
3439
3843
|
user_id: string | null;
|
|
3440
3844
|
organization_id: string | null;
|
|
3441
3845
|
scopes: string[];
|
|
3442
3846
|
auth_method?: DataIntegrationsListResponseDataConnectedAccountAuthMethod;
|
|
3443
3847
|
api_key_last_4?: string | null;
|
|
3848
|
+
client_id?: string | null;
|
|
3849
|
+
client_secret_last_4?: string | null;
|
|
3850
|
+
config?: Record<string, string>;
|
|
3444
3851
|
state: DataIntegrationsListResponseDataConnectedAccountState;
|
|
3445
3852
|
created_at: string;
|
|
3446
3853
|
updated_at: string;
|
|
3447
3854
|
userland_user_id: string | null;
|
|
3448
3855
|
}
|
|
3449
3856
|
//#endregion
|
|
3857
|
+
//#region src/pipes/interfaces/data-integrations-list-response-data-connection-owner.interface.d.ts
|
|
3858
|
+
declare const DataIntegrationsListResponseDataConnectionOwner: {
|
|
3859
|
+
readonly User: "user";
|
|
3860
|
+
readonly Organization: "organization";
|
|
3861
|
+
};
|
|
3862
|
+
type DataIntegrationsListResponseDataConnectionOwner = (typeof DataIntegrationsListResponseDataConnectionOwner)[keyof typeof DataIntegrationsListResponseDataConnectionOwner];
|
|
3863
|
+
//#endregion
|
|
3450
3864
|
//#region src/pipes/interfaces/data-integrations-list-response-data-ownership.interface.d.ts
|
|
3451
3865
|
declare const DataIntegrationsListResponseDataOwnership: {
|
|
3452
3866
|
readonly UserlandUser: "userland_user";
|
|
@@ -3472,16 +3886,23 @@ interface DataIntegrationsListResponseData {
|
|
|
3472
3886
|
credentialsType: string;
|
|
3473
3887
|
/** The OAuth scopes configured for this provider, or `null` if none are configured. */
|
|
3474
3888
|
scopes: string[] | null;
|
|
3475
|
-
/** The authentication methods supported by this provider (`oauth`, `api_key`, or
|
|
3889
|
+
/** The authentication methods supported by this provider (`oauth`, `api_key`, `client_credentials`, or a combination). Defaults to `["oauth"]` if absent. */
|
|
3476
3890
|
authMethods?: DataIntegrationsListResponseDataAuthMethods[];
|
|
3477
|
-
/**
|
|
3891
|
+
/** 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. */
|
|
3892
|
+
connectionOwner?: DataIntegrationsListResponseDataConnectionOwner;
|
|
3893
|
+
/**
|
|
3894
|
+
* Use `connection_owner` instead. Legacy spelling of the same value: `userland_user` corresponds to `connection_owner: "user"` and `organization` to `connection_owner: "organization"`.
|
|
3895
|
+
* @deprecated
|
|
3896
|
+
*/
|
|
3478
3897
|
ownership: DataIntegrationsListResponseDataOwnership;
|
|
3479
3898
|
/** The timestamp when the provider was created. */
|
|
3480
3899
|
createdAt: string;
|
|
3481
3900
|
/** The timestamp when the provider was last updated. */
|
|
3482
3901
|
updatedAt: string;
|
|
3483
|
-
/** The user's [connected account](https://workos.com/docs/reference/pipes/connected-account) for this provider, or `null`
|
|
3902
|
+
/** 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
3903
|
connectedAccount: DataIntegrationsListResponseDataConnectedAccount | null;
|
|
3904
|
+
/** 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`. */
|
|
3905
|
+
connectedAccounts?: DataIntegrationsListResponseDataConnectedAccount[];
|
|
3485
3906
|
}
|
|
3486
3907
|
interface DataIntegrationsListResponseDataResponse {
|
|
3487
3908
|
object: 'data_provider';
|
|
@@ -3493,17 +3914,19 @@ interface DataIntegrationsListResponseDataResponse {
|
|
|
3493
3914
|
credentials_type: string;
|
|
3494
3915
|
scopes: string[] | null;
|
|
3495
3916
|
auth_methods?: DataIntegrationsListResponseDataAuthMethods[];
|
|
3917
|
+
connection_owner?: DataIntegrationsListResponseDataConnectionOwner;
|
|
3496
3918
|
ownership: DataIntegrationsListResponseDataOwnership;
|
|
3497
3919
|
created_at: string;
|
|
3498
3920
|
updated_at: string;
|
|
3499
3921
|
connected_account: DataIntegrationsListResponseDataConnectedAccountResponse | null;
|
|
3922
|
+
connected_accounts?: DataIntegrationsListResponseDataConnectedAccountResponse[];
|
|
3500
3923
|
}
|
|
3501
3924
|
//#endregion
|
|
3502
3925
|
//#region src/pipes/interfaces/data-integrations-list-response.interface.d.ts
|
|
3503
3926
|
interface DataIntegrationsListResponse {
|
|
3504
3927
|
/** Indicates this is a list response. */
|
|
3505
3928
|
object: 'list';
|
|
3506
|
-
/** A list of [providers](https://workos.com/docs/reference/pipes/provider), each including
|
|
3929
|
+
/** 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
3930
|
data: DataIntegrationsListResponseData[];
|
|
3508
3931
|
}
|
|
3509
3932
|
interface DataIntegrationsListResponseWire {
|
|
@@ -3511,12 +3934,98 @@ interface DataIntegrationsListResponseWire {
|
|
|
3511
3934
|
data: DataIntegrationsListResponseDataResponse[];
|
|
3512
3935
|
}
|
|
3513
3936
|
//#endregion
|
|
3937
|
+
//#region src/pipes/interfaces/data-integrations-upsert-api-key-request-connection-owner.interface.d.ts
|
|
3938
|
+
declare const DataIntegrationsUpsertApiKeyRequestConnectionOwner: {
|
|
3939
|
+
readonly User: "user";
|
|
3940
|
+
readonly Organization: "organization";
|
|
3941
|
+
};
|
|
3942
|
+
type DataIntegrationsUpsertApiKeyRequestConnectionOwner = (typeof DataIntegrationsUpsertApiKeyRequestConnectionOwner)[keyof typeof DataIntegrationsUpsertApiKeyRequestConnectionOwner];
|
|
3943
|
+
//#endregion
|
|
3944
|
+
//#region src/pipes/interfaces/data-integrations-upsert-api-key-request.interface.d.ts
|
|
3945
|
+
interface DataIntegrationsUpsertApiKeyRequest {
|
|
3946
|
+
/** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
|
|
3947
|
+
userId: string;
|
|
3948
|
+
/** 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`. */
|
|
3949
|
+
organizationId?: string;
|
|
3950
|
+
/** A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to rotate a specific existing connection. */
|
|
3951
|
+
connectedAccountId?: string;
|
|
3952
|
+
/** Reauthorize the named connected account. Requires `connectedAccountId`; omit both to upsert the compatibility connection. Use POST to add a connection. */
|
|
3953
|
+
connectionIntent?: 'reauthorize';
|
|
3954
|
+
/** 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. */
|
|
3955
|
+
connectionOwner?: DataIntegrationsUpsertApiKeyRequestConnectionOwner;
|
|
3956
|
+
/** The API key secret to store for this integration. */
|
|
3957
|
+
secret: string;
|
|
3958
|
+
}
|
|
3959
|
+
interface DataIntegrationsUpsertApiKeyRequestResponse {
|
|
3960
|
+
user_id: string;
|
|
3961
|
+
organization_id?: string;
|
|
3962
|
+
connected_account_id?: string;
|
|
3963
|
+
connection_intent?: 'reauthorize';
|
|
3964
|
+
connection_owner?: DataIntegrationsUpsertApiKeyRequestConnectionOwner;
|
|
3965
|
+
secret: string;
|
|
3966
|
+
}
|
|
3967
|
+
//#endregion
|
|
3968
|
+
//#region src/pipes/interfaces/data-integrations-upsert-client-credentials-request-connection-owner.interface.d.ts
|
|
3969
|
+
declare const DataIntegrationsUpsertClientCredentialsRequestConnectionOwner: {
|
|
3970
|
+
readonly User: "user";
|
|
3971
|
+
readonly Organization: "organization";
|
|
3972
|
+
};
|
|
3973
|
+
type DataIntegrationsUpsertClientCredentialsRequestConnectionOwner = (typeof DataIntegrationsUpsertClientCredentialsRequestConnectionOwner)[keyof typeof DataIntegrationsUpsertClientCredentialsRequestConnectionOwner];
|
|
3974
|
+
//#endregion
|
|
3975
|
+
//#region src/pipes/interfaces/data-integrations-upsert-client-credentials-request.interface.d.ts
|
|
3976
|
+
interface DataIntegrationsUpsertClientCredentialsRequest {
|
|
3977
|
+
/** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
|
|
3978
|
+
userId: string;
|
|
3979
|
+
/** 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`. */
|
|
3980
|
+
organizationId?: string;
|
|
3981
|
+
/** A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to rotate a specific existing connection. */
|
|
3982
|
+
connectedAccountId?: string;
|
|
3983
|
+
/** Reauthorize the named connected account. Requires `connectedAccountId`; omit both to upsert the compatibility connection. Use POST to add a connection. */
|
|
3984
|
+
connectionIntent?: 'reauthorize';
|
|
3985
|
+
/** 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. */
|
|
3986
|
+
connectionOwner?: DataIntegrationsUpsertClientCredentialsRequestConnectionOwner;
|
|
3987
|
+
/** The OAuth client ID to store for this integration. */
|
|
3988
|
+
clientId: string;
|
|
3989
|
+
/** The OAuth client secret to store for this integration. */
|
|
3990
|
+
clientSecret: string;
|
|
3991
|
+
/** Provider-specific configuration values collected for this installation, keyed by the provider's config field descriptors. */
|
|
3992
|
+
config?: Record<string, string>;
|
|
3993
|
+
}
|
|
3994
|
+
interface DataIntegrationsUpsertClientCredentialsRequestResponse {
|
|
3995
|
+
user_id: string;
|
|
3996
|
+
organization_id?: string;
|
|
3997
|
+
connected_account_id?: string;
|
|
3998
|
+
connection_intent?: 'reauthorize';
|
|
3999
|
+
connection_owner?: DataIntegrationsUpsertClientCredentialsRequestConnectionOwner;
|
|
4000
|
+
client_id: string;
|
|
4001
|
+
client_secret: string;
|
|
4002
|
+
config?: Record<string, string>;
|
|
4003
|
+
}
|
|
4004
|
+
//#endregion
|
|
3514
4005
|
//#region src/pipes/interfaces/delete-data-integration-options.interface.d.ts
|
|
3515
4006
|
interface DeleteDataIntegrationOptions {
|
|
3516
4007
|
/** The slug identifier of the data integration. */
|
|
3517
4008
|
slug: string;
|
|
3518
4009
|
}
|
|
3519
4010
|
//#endregion
|
|
4011
|
+
//#region src/pipes/interfaces/delete-organization-connected-account-options.interface.d.ts
|
|
4012
|
+
interface DeleteOrganizationConnectedAccountOptions {
|
|
4013
|
+
/** An [Organization](https://workos.com/docs/reference/organization) identifier. */
|
|
4014
|
+
organizationId: string;
|
|
4015
|
+
/** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
|
|
4016
|
+
slug: string;
|
|
4017
|
+
/** Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered. */
|
|
4018
|
+
supportsMultipleConnections?: boolean;
|
|
4019
|
+
/** A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to delete. */
|
|
4020
|
+
connectedAccountId?: string;
|
|
4021
|
+
}
|
|
4022
|
+
//#endregion
|
|
4023
|
+
//#region src/pipes/interfaces/delete-organization-data-integration-options.interface.d.ts
|
|
4024
|
+
interface DeleteOrganizationDataIntegrationOptions {
|
|
4025
|
+
/** The slug identifier of the data integration. */
|
|
4026
|
+
slug: string;
|
|
4027
|
+
}
|
|
4028
|
+
//#endregion
|
|
3520
4029
|
//#region src/pipes/interfaces/delete-user-connected-account-options.interface.d.ts
|
|
3521
4030
|
interface DeleteUserConnectedAccountOptions {
|
|
3522
4031
|
/** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
|
|
@@ -3525,16 +4034,16 @@ interface DeleteUserConnectedAccountOptions {
|
|
|
3525
4034
|
slug: string;
|
|
3526
4035
|
/** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. */
|
|
3527
4036
|
organizationId?: string;
|
|
4037
|
+
/** Set to `true` to use the plural connection contract. Defaults to the compatibility connection. */
|
|
4038
|
+
supportsMultipleConnections?: boolean;
|
|
4039
|
+
/** Select the connected account to delete. */
|
|
4040
|
+
connectedAccountId?: string;
|
|
3528
4041
|
}
|
|
3529
4042
|
//#endregion
|
|
3530
4043
|
//#region src/pipes/interfaces/get-access-token-options.interface.d.ts
|
|
3531
|
-
interface GetAccessTokenOptions {
|
|
4044
|
+
interface GetAccessTokenOptions extends DataIntegrationsGetUserTokenRequest {
|
|
3532
4045
|
/** The identifier of the integration. */
|
|
3533
4046
|
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
4047
|
}
|
|
3539
4048
|
//#endregion
|
|
3540
4049
|
//#region src/pipes/interfaces/get-data-integration-options.interface.d.ts
|
|
@@ -3543,6 +4052,24 @@ interface GetDataIntegrationOptions {
|
|
|
3543
4052
|
slug: string;
|
|
3544
4053
|
}
|
|
3545
4054
|
//#endregion
|
|
4055
|
+
//#region src/pipes/interfaces/get-organization-connected-account-options.interface.d.ts
|
|
4056
|
+
interface GetOrganizationConnectedAccountOptions {
|
|
4057
|
+
/** An [Organization](https://workos.com/docs/reference/organization) identifier. */
|
|
4058
|
+
organizationId: string;
|
|
4059
|
+
/** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
|
|
4060
|
+
slug: string;
|
|
4061
|
+
/** Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered. */
|
|
4062
|
+
supportsMultipleConnections?: boolean;
|
|
4063
|
+
/** 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. */
|
|
4064
|
+
connectedAccountId?: string;
|
|
4065
|
+
}
|
|
4066
|
+
//#endregion
|
|
4067
|
+
//#region src/pipes/interfaces/get-organization-data-integration-options.interface.d.ts
|
|
4068
|
+
interface GetOrganizationDataIntegrationOptions {
|
|
4069
|
+
/** The slug identifier of the data integration. */
|
|
4070
|
+
slug: string;
|
|
4071
|
+
}
|
|
4072
|
+
//#endregion
|
|
3546
4073
|
//#region src/pipes/interfaces/get-user-connected-account-options.interface.d.ts
|
|
3547
4074
|
interface GetUserConnectedAccountOptions {
|
|
3548
4075
|
/** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
|
|
@@ -3551,6 +4078,31 @@ interface GetUserConnectedAccountOptions {
|
|
|
3551
4078
|
slug: string;
|
|
3552
4079
|
/** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. */
|
|
3553
4080
|
organizationId?: string;
|
|
4081
|
+
/** Set to `true` to use the plural connection contract. Defaults to the compatibility connection. */
|
|
4082
|
+
supportsMultipleConnections?: boolean;
|
|
4083
|
+
/** Select a specific connected account when the user has several for this provider. */
|
|
4084
|
+
connectedAccountId?: string;
|
|
4085
|
+
}
|
|
4086
|
+
//#endregion
|
|
4087
|
+
//#region src/pipes/interfaces/pipes-ownership.interface.d.ts
|
|
4088
|
+
declare const PipesOwnership: {
|
|
4089
|
+
readonly User: "user";
|
|
4090
|
+
readonly Organization: "organization";
|
|
4091
|
+
};
|
|
4092
|
+
type PipesOwnership = (typeof PipesOwnership)[keyof typeof PipesOwnership];
|
|
4093
|
+
//#endregion
|
|
4094
|
+
//#region src/pipes/interfaces/list-data-integrations-options.interface.d.ts
|
|
4095
|
+
interface ListDataIntegrationsOptions extends PaginationOptions {
|
|
4096
|
+
/** Filter integrations by who owns their connected accounts. */
|
|
4097
|
+
ownership?: PipesOwnership;
|
|
4098
|
+
}
|
|
4099
|
+
//#endregion
|
|
4100
|
+
//#region src/pipes/interfaces/list-organization-data-providers-options.interface.d.ts
|
|
4101
|
+
interface ListOrganizationDataProvidersOptions {
|
|
4102
|
+
/** An [Organization](https://workos.com/docs/reference/organization) identifier to list providers and connected accounts for. */
|
|
4103
|
+
organizationId: string;
|
|
4104
|
+
/** Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered. */
|
|
4105
|
+
supportsMultipleConnections?: boolean;
|
|
3554
4106
|
}
|
|
3555
4107
|
//#endregion
|
|
3556
4108
|
//#region src/pipes/interfaces/list-user-data-providers-options.interface.d.ts
|
|
@@ -3559,6 +4111,8 @@ interface ListUserDataProvidersOptions {
|
|
|
3559
4111
|
userId: string;
|
|
3560
4112
|
/** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to filter connections for a specific organization. */
|
|
3561
4113
|
organizationId?: string;
|
|
4114
|
+
/** Set to `true` to include all connected accounts rather than only the compatibility connection. */
|
|
4115
|
+
supportsMultipleConnections?: boolean;
|
|
3562
4116
|
}
|
|
3563
4117
|
//#endregion
|
|
3564
4118
|
//#region src/pipes/interfaces/update-custom-provider-definition-authenticate-via.interface.d.ts
|
|
@@ -3572,11 +4126,11 @@ type UpdateCustomProviderDefinitionAuthenticateVia = (typeof UpdateCustomProvide
|
|
|
3572
4126
|
interface UpdateCustomProviderDefinition {
|
|
3573
4127
|
/** A descriptive name for the custom provider. */
|
|
3574
4128
|
name?: string;
|
|
3575
|
-
/** The provider's OAuth authorization endpoint. */
|
|
4129
|
+
/** 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
4130
|
authorizationUrl?: string;
|
|
3577
|
-
/** The provider's OAuth token endpoint. */
|
|
4131
|
+
/** 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
4132
|
tokenUrl?: string;
|
|
3579
|
-
/** The endpoint used to refresh tokens, if different from the token endpoint. */
|
|
4133
|
+
/** The endpoint used to refresh tokens, if different from the token endpoint. Must be a static URL, like the other endpoints. */
|
|
3580
4134
|
refreshTokenUrl?: string | null;
|
|
3581
4135
|
/** Whether PKCE is used during the authorization code flow. */
|
|
3582
4136
|
pkceEnabled?: boolean;
|
|
@@ -3608,41 +4162,90 @@ interface UpdateCustomProviderDefinitionResponse {
|
|
|
3608
4162
|
}
|
|
3609
4163
|
//#endregion
|
|
3610
4164
|
//#region src/pipes/interfaces/update-data-integration-api-key-options.interface.d.ts
|
|
3611
|
-
interface UpdateDataIntegrationApiKeyOptions {
|
|
4165
|
+
interface UpdateDataIntegrationApiKeyOptions extends DataIntegrationsUpsertApiKeyRequest {
|
|
3612
4166
|
/** The identifier of the integration. */
|
|
3613
4167
|
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
4168
|
}
|
|
3621
4169
|
//#endregion
|
|
3622
|
-
//#region src/pipes/interfaces/update-data-integration-options.interface.d.ts
|
|
3623
|
-
interface
|
|
3624
|
-
/** The
|
|
4170
|
+
//#region src/pipes/interfaces/update-data-integration-client-credentials-options.interface.d.ts
|
|
4171
|
+
interface UpdateDataIntegrationClientCredentialsOptions extends DataIntegrationsUpsertClientCredentialsRequest {
|
|
4172
|
+
/** The identifier of the integration. */
|
|
3625
4173
|
slug: string;
|
|
4174
|
+
}
|
|
4175
|
+
//#endregion
|
|
4176
|
+
//#region src/pipes/interfaces/update-data-integration.interface.d.ts
|
|
4177
|
+
interface UpdateDataIntegration {
|
|
3626
4178
|
/** An optional description of the Data Integration. */
|
|
3627
4179
|
description?: string | null;
|
|
3628
4180
|
/** Whether the Data Integration is enabled. */
|
|
3629
4181
|
enabled?: boolean;
|
|
3630
4182
|
/** The OAuth scopes to request for the Data Integration. Pass `null` to reset to the provider's configured scopes. */
|
|
3631
4183
|
scopes?: string[] | null;
|
|
3632
|
-
/** New credentials for the Data Integration. When provided, rotates the stored client secret. */
|
|
3633
|
-
credentials?:
|
|
4184
|
+
/** New OAuth credentials for the Data Integration. When provided, rotates the stored client secret. Mutually exclusive with `api_key`. */
|
|
4185
|
+
credentials?: DataIntegrationCredentialsInput;
|
|
4186
|
+
/** 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`). */
|
|
4187
|
+
apiKey?: ApiKeyInstallation;
|
|
3634
4188
|
/** Updates to a custom provider's OAuth definition. Only valid for custom-provider integrations. */
|
|
3635
4189
|
customProvider?: UpdateCustomProviderDefinition;
|
|
3636
4190
|
}
|
|
4191
|
+
interface UpdateDataIntegrationResponse {
|
|
4192
|
+
description?: string | null;
|
|
4193
|
+
enabled?: boolean;
|
|
4194
|
+
scopes?: string[] | null;
|
|
4195
|
+
credentials?: DataIntegrationCredentialsInputResponse;
|
|
4196
|
+
api_key?: ApiKeyInstallationResponse;
|
|
4197
|
+
custom_provider?: UpdateCustomProviderDefinitionResponse;
|
|
4198
|
+
}
|
|
3637
4199
|
//#endregion
|
|
3638
|
-
//#region src/pipes/interfaces/update-
|
|
3639
|
-
interface
|
|
3640
|
-
/**
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
4200
|
+
//#region src/pipes/interfaces/update-data-integration-options.interface.d.ts
|
|
4201
|
+
interface UpdateDataIntegrationOptions extends UpdateDataIntegration {
|
|
4202
|
+
/** The slug identifier of the data integration. */
|
|
4203
|
+
slug: string;
|
|
4204
|
+
}
|
|
4205
|
+
//#endregion
|
|
4206
|
+
//#region src/pipes/interfaces/update-organization-connected-account-options.interface.d.ts
|
|
4207
|
+
interface UpdateOrganizationConnectedAccountOptions {
|
|
4208
|
+
/** An [Organization](https://workos.com/docs/reference/organization) identifier. */
|
|
4209
|
+
organizationId: string;
|
|
4210
|
+
/** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
|
|
4211
|
+
slug: string;
|
|
4212
|
+
/** Accepted for compatibility; does not change update targeting. Supply `connectedAccountId` to select a connection. */
|
|
4213
|
+
supportsMultipleConnections?: boolean;
|
|
4214
|
+
/** A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to update. */
|
|
4215
|
+
connectedAccountId?: string;
|
|
4216
|
+
/** Set to `reauthorize` with `connectedAccountId` to update an exact connection. Omit both for compatibility behavior. */
|
|
4217
|
+
connectionIntent?: 'reauthorize';
|
|
4218
|
+
/** The OAuth access token for the connected account. */
|
|
4219
|
+
accessToken?: string;
|
|
4220
|
+
/** The OAuth refresh token for the connected account. */
|
|
4221
|
+
refreshToken?: string;
|
|
4222
|
+
/** The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire. */
|
|
4223
|
+
expiresAt?: Date;
|
|
4224
|
+
/** The OAuth scopes granted for this connection. */
|
|
4225
|
+
scopes?: string[];
|
|
4226
|
+
/** Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided. */
|
|
4227
|
+
state?: OrganizationConnectedAccountState;
|
|
4228
|
+
/** 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. */
|
|
4229
|
+
userId: string;
|
|
4230
|
+
}
|
|
4231
|
+
//#endregion
|
|
4232
|
+
//#region src/pipes/interfaces/update-organization-data-integration-options.interface.d.ts
|
|
4233
|
+
type UpdateOrganizationDataIntegrationOptions = UpdateDataIntegrationOptions;
|
|
4234
|
+
//#endregion
|
|
4235
|
+
//#region src/pipes/interfaces/update-user-connected-account-options.interface.d.ts
|
|
4236
|
+
interface UpdateUserConnectedAccountOptions {
|
|
4237
|
+
/** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
|
|
4238
|
+
userId: string;
|
|
4239
|
+
/** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
|
|
4240
|
+
slug: string;
|
|
3644
4241
|
/** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. */
|
|
3645
4242
|
organizationId?: string;
|
|
4243
|
+
/** Accepted for compatibility; does not change update targeting. Supply `connectedAccountId` to select a connection. */
|
|
4244
|
+
supportsMultipleConnections?: boolean;
|
|
4245
|
+
/** Select the connected account to update. */
|
|
4246
|
+
connectedAccountId?: string;
|
|
4247
|
+
/** Set to `reauthorize` with `connectedAccountId` to update an exact connection. Omit both for compatibility behavior. */
|
|
4248
|
+
connectionIntent?: 'reauthorize';
|
|
3646
4249
|
/** The OAuth access token for the connected account. */
|
|
3647
4250
|
accessToken?: string;
|
|
3648
4251
|
/** The OAuth refresh token for the connected account. */
|
|
@@ -3652,7 +4255,7 @@ interface UpdateUserConnectedAccountOptions {
|
|
|
3652
4255
|
/** The OAuth scopes granted for this connection. */
|
|
3653
4256
|
scopes?: string[];
|
|
3654
4257
|
/** Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided. */
|
|
3655
|
-
state?:
|
|
4258
|
+
state?: ConnectedAccountInputState;
|
|
3656
4259
|
}
|
|
3657
4260
|
//#endregion
|
|
3658
4261
|
//#region src/vault/interfaces/key.interface.d.ts
|
|
@@ -4615,6 +5218,12 @@ interface WorkOSOptions {
|
|
|
4615
5218
|
appInfo?: AppInfo;
|
|
4616
5219
|
fetchFn?: typeof fetch;
|
|
4617
5220
|
clientId?: string;
|
|
5221
|
+
/**
|
|
5222
|
+
* Expected `iss` claim of WorkOS access tokens, enforced when verifying
|
|
5223
|
+
* session access tokens. Accepts a single issuer or a list of allowed
|
|
5224
|
+
* issuers. When not set, the issuer claim is not validated.
|
|
5225
|
+
*/
|
|
5226
|
+
issuer?: string | string[];
|
|
4618
5227
|
timeout?: number;
|
|
4619
5228
|
/**
|
|
4620
5229
|
* Maximum number of automatic retries for transient failures (network
|
|
@@ -6677,20 +7286,6 @@ declare class Passwordless {
|
|
|
6677
7286
|
sendSession(sessionId: string): Promise<SendSessionResponse>;
|
|
6678
7287
|
}
|
|
6679
7288
|
//#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
7289
|
//#region src/pipes/pipes.d.ts
|
|
6695
7290
|
declare class Pipes {
|
|
6696
7291
|
private readonly workos;
|
|
@@ -6698,38 +7293,49 @@ declare class Pipes {
|
|
|
6698
7293
|
/**
|
|
6699
7294
|
* List data integrations
|
|
6700
7295
|
*
|
|
6701
|
-
* Lists the environment's data integrations configured with `custom` or `organization` credentials, including custom providers.
|
|
7296
|
+
* 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
7297
|
* @param options - Pagination and filter options.
|
|
6703
|
-
* @returns {Promise<AutoPaginatable<DataIntegration,
|
|
7298
|
+
* @returns {Promise<AutoPaginatable<DataIntegration, ListDataIntegrationsOptions>>}
|
|
6704
7299
|
* @throws {UnauthorizedException} 401
|
|
7300
|
+
* @throws {NotFoundException} 404
|
|
7301
|
+
* @throws {UnprocessableEntityException} 422
|
|
6705
7302
|
*/
|
|
6706
|
-
listDataIntegrations(options?:
|
|
7303
|
+
listDataIntegrations(options?: ListDataIntegrationsOptions): Promise<AutoPaginatable<DataIntegration, ListDataIntegrationsOptions>>;
|
|
6707
7304
|
/**
|
|
6708
7305
|
* Create a data integration
|
|
6709
7306
|
*
|
|
6710
|
-
* Creates a data integration for a provider. Set `credentials.type` to `custom` to use your own OAuth app credentials
|
|
7307
|
+
* 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
7308
|
* @param options - Object containing provider.
|
|
6712
7309
|
* @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
7310
|
* @example "github"
|
|
7311
|
+
* @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`.
|
|
7312
|
+
* @example "user"
|
|
6714
7313
|
* @param options.description - An optional description of the Data Integration.
|
|
6715
7314
|
* @example "Production GitHub app"
|
|
6716
7315
|
* @param options.enabled - Whether the Data Integration is enabled. Defaults to `false`.
|
|
6717
7316
|
* @example true
|
|
6718
7317
|
* @param options.scopes - The OAuth scopes to request for the Data Integration. Defaults to the provider's configured scopes when omitted.
|
|
6719
7318
|
* @example ["repo","read:org"]
|
|
6720
|
-
* @param options.
|
|
7319
|
+
* @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.
|
|
7320
|
+
* @example ["oauth"]
|
|
7321
|
+
* @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.
|
|
7322
|
+
* @example {"account":"myorg-myaccount"}
|
|
7323
|
+
* @param options.credentials - The OAuth credentials to configure for the Data Integration. Required for OAuth integrations; omit when `auth_methods` is `["api_key"]`.
|
|
7324
|
+
* @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
7325
|
* @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
7326
|
* @returns {Promise<DataIntegration>}
|
|
6723
7327
|
* @throws {BadRequestException} 400
|
|
6724
7328
|
* @throws {UnauthorizedException} 401
|
|
7329
|
+
* @throws {AuthorizationException} 403
|
|
6725
7330
|
* @throws {NotFoundException} 404
|
|
7331
|
+
* @throws {ConflictException} 409
|
|
6726
7332
|
* @throws {UnprocessableEntityException} 422
|
|
6727
7333
|
*/
|
|
6728
7334
|
createDataIntegration(options: CreateDataIntegrationOptions): Promise<DataIntegration>;
|
|
6729
7335
|
/**
|
|
6730
7336
|
* Get a data integration
|
|
6731
7337
|
*
|
|
6732
|
-
* Retrieves
|
|
7338
|
+
* Retrieves the user-owned data integration by its slug.
|
|
6733
7339
|
* @param options - The request options.
|
|
6734
7340
|
* @param options.slug - The slug identifier of the data integration.
|
|
6735
7341
|
* @example "github"
|
|
@@ -6741,7 +7347,7 @@ declare class Pipes {
|
|
|
6741
7347
|
/**
|
|
6742
7348
|
* Update a data integration
|
|
6743
7349
|
*
|
|
6744
|
-
* Updates the description, enabled state, or custom credentials of
|
|
7350
|
+
* Updates the description, enabled state, or custom credentials of the user-owned data integration. For custom providers, `custom_provider` updates the OAuth definition.
|
|
6745
7351
|
* @param options - The request body.
|
|
6746
7352
|
* @param options.slug - The slug identifier of the data integration.
|
|
6747
7353
|
* @example "github"
|
|
@@ -6751,19 +7357,22 @@ declare class Pipes {
|
|
|
6751
7357
|
* @example true
|
|
6752
7358
|
* @param options.scopes - The OAuth scopes to request for the Data Integration. Pass `null` to reset to the provider's configured scopes.
|
|
6753
7359
|
* @example ["repo","read:org"]
|
|
6754
|
-
* @param options.credentials - New credentials for the Data Integration. When provided, rotates the stored client secret.
|
|
7360
|
+
* @param options.credentials - New OAuth credentials for the Data Integration. When provided, rotates the stored client secret. Mutually exclusive with `api_key`.
|
|
7361
|
+
* @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
7362
|
* @param options.customProvider - Updates to a custom provider's OAuth definition. Only valid for custom-provider integrations.
|
|
6756
7363
|
* @returns {Promise<DataIntegration>}
|
|
6757
7364
|
* @throws {BadRequestException} 400
|
|
6758
7365
|
* @throws {UnauthorizedException} 401
|
|
7366
|
+
* @throws {AuthorizationException} 403
|
|
6759
7367
|
* @throws {NotFoundException} 404
|
|
7368
|
+
* @throws {ConflictException} 409
|
|
6760
7369
|
* @throws {UnprocessableEntityException} 422
|
|
6761
7370
|
*/
|
|
6762
7371
|
updateDataIntegration(options: UpdateDataIntegrationOptions): Promise<DataIntegration>;
|
|
6763
7372
|
/**
|
|
6764
7373
|
* Delete a data integration
|
|
6765
7374
|
*
|
|
6766
|
-
* Deletes
|
|
7375
|
+
* 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
7376
|
* @param options - The request options.
|
|
6768
7377
|
* @param options.slug - The slug identifier of the data integration.
|
|
6769
7378
|
* @example "github"
|
|
@@ -6772,17 +7381,31 @@ declare class Pipes {
|
|
|
6772
7381
|
* @throws {NotFoundException} 404
|
|
6773
7382
|
*/
|
|
6774
7383
|
deleteDataIntegration(options: DeleteDataIntegrationOptions): Promise<void>;
|
|
7384
|
+
/**
|
|
7385
|
+
* Create another API key connected account
|
|
7386
|
+
*
|
|
7387
|
+
* Requires `connectionIntent: 'add'` and does not accept an account selector.
|
|
7388
|
+
* Until additional connections are available, this creates the first connection
|
|
7389
|
+
* or returns 404 `multiple_connections_unavailable` if one already exists.
|
|
7390
|
+
* Use `updateDataIntegrationApiKey` to rotate the compatibility connection or
|
|
7391
|
+
* update an exact connection.
|
|
7392
|
+
*/
|
|
7393
|
+
createDataIntegrationApiKey(options: CreateDataIntegrationApiKeyOptions): Promise<ConnectedAccount>;
|
|
6775
7394
|
/**
|
|
6776
7395
|
* Upsert an API key for a connected account
|
|
6777
7396
|
*
|
|
6778
|
-
* Creates or updates an API-key-based installation for the specified integration
|
|
7397
|
+
* 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
7398
|
* @param options - Object containing userId, secret.
|
|
6780
7399
|
* @param options.slug - The identifier of the integration.
|
|
6781
7400
|
* @example "github"
|
|
6782
7401
|
* @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier.
|
|
6783
7402
|
* @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.
|
|
7403
|
+
* @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
7404
|
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7405
|
+
* @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to rotate a specific existing connection.
|
|
7406
|
+
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7407
|
+
* @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.
|
|
7408
|
+
* @example "user"
|
|
6786
7409
|
* @param options.secret - The API key secret to store for this integration.
|
|
6787
7410
|
* @example "sk-1234567890abcdef"
|
|
6788
7411
|
* @returns {Promise<ConnectedAccount>}
|
|
@@ -6790,6 +7413,7 @@ declare class Pipes {
|
|
|
6790
7413
|
* @throws {UnauthorizedException} 401
|
|
6791
7414
|
* @throws {AuthorizationException} 403
|
|
6792
7415
|
* @throws {NotFoundException} 404
|
|
7416
|
+
* @throws {ConflictException} 409
|
|
6793
7417
|
* @throws {UnprocessableEntityException} 422
|
|
6794
7418
|
*/
|
|
6795
7419
|
updateDataIntegrationApiKey(options: UpdateDataIntegrationApiKeyOptions): Promise<ConnectedAccount>;
|
|
@@ -6800,12 +7424,16 @@ declare class Pipes {
|
|
|
6800
7424
|
* @param options - Object containing userId.
|
|
6801
7425
|
* @param options.slug - The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
|
|
6802
7426
|
* @example "github"
|
|
6803
|
-
* @param options.userId - The ID of the user to authorize.
|
|
7427
|
+
* @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
7428
|
* @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
6805
|
-
* @param options.organizationId - An organization ID to scope the authorization to a specific organization.
|
|
7429
|
+
* @param options.organizationId - An organization ID to scope the authorization to a specific organization. Required when `connection_owner` is `organization`.
|
|
6806
7430
|
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7431
|
+
* @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`.
|
|
7432
|
+
* @example "user"
|
|
6807
7433
|
* @param options.returnTo - The URL to redirect the user to after authorization.
|
|
6808
7434
|
* @example "https://example.com/callback"
|
|
7435
|
+
* @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.
|
|
7436
|
+
* @example {"subdomain":"acme"}
|
|
6809
7437
|
* @returns {Promise<DataIntegrationAuthorizeUrlResponse>}
|
|
6810
7438
|
* @throws {BadRequestException} 400
|
|
6811
7439
|
* @throws {UnauthorizedException} 401
|
|
@@ -6813,23 +7441,98 @@ declare class Pipes {
|
|
|
6813
7441
|
* @throws {NotFoundException} 404
|
|
6814
7442
|
*/
|
|
6815
7443
|
authorizeDataIntegration(options: AuthorizeDataIntegrationOptions): Promise<DataIntegrationAuthorizeUrlResponse>;
|
|
7444
|
+
/**
|
|
7445
|
+
* Create another client credentials connected account
|
|
7446
|
+
*
|
|
7447
|
+
* Requires `connectionIntent: 'add'` and does not accept an account selector.
|
|
7448
|
+
* Until additional connections are available, this creates the first connection
|
|
7449
|
+
* or returns 404 `multiple_connections_unavailable` if one already exists.
|
|
7450
|
+
* Use `updateDataIntegrationClientCredentials` to rotate the compatibility
|
|
7451
|
+
* connection or update an exact connection.
|
|
7452
|
+
*/
|
|
7453
|
+
createDataIntegrationClientCredential(options: CreateDataIntegrationClientCredentialOptions): Promise<ConnectedAccount>;
|
|
7454
|
+
/**
|
|
7455
|
+
* Upsert client credentials for a connected account
|
|
7456
|
+
*
|
|
7457
|
+
* 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.
|
|
7458
|
+
* @param options - The request options.
|
|
7459
|
+
* @param options.slug - The identifier of the integration.
|
|
7460
|
+
* @example "salesforce"
|
|
7461
|
+
* @returns {Promise<ConnectedAccount>}
|
|
7462
|
+
* @throws {BadRequestException} 400
|
|
7463
|
+
* @throws {UnauthorizedException} 401
|
|
7464
|
+
* @throws {AuthorizationException} 403
|
|
7465
|
+
* @throws {NotFoundException} 404
|
|
7466
|
+
* @throws {ConflictException} 409
|
|
7467
|
+
* @throws {UnprocessableEntityException} 422
|
|
7468
|
+
*/
|
|
7469
|
+
updateDataIntegrationClientCredentials(options: UpdateDataIntegrationClientCredentialsOptions): Promise<ConnectedAccount>;
|
|
6816
7470
|
/**
|
|
6817
7471
|
* Vend credentials for a connected account
|
|
6818
7472
|
*
|
|
6819
|
-
* Returns credentials for a user
|
|
7473
|
+
* 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
7474
|
* @param options - Object containing userId.
|
|
6821
7475
|
* @param options.slug - The identifier of the integration.
|
|
6822
7476
|
* @example "github"
|
|
6823
|
-
* @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier.
|
|
7477
|
+
* @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
7478
|
* @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.
|
|
7479
|
+
* @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
7480
|
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7481
|
+
* @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.
|
|
7482
|
+
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7483
|
+
* @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`.
|
|
7484
|
+
* @example "user"
|
|
7485
|
+
* @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.
|
|
7486
|
+
* @example true
|
|
6827
7487
|
* @returns {Promise<DataIntegrationCredentialsResponse>}
|
|
6828
7488
|
* @throws {BadRequestException} 400
|
|
6829
7489
|
* @throws {UnauthorizedException} 401
|
|
7490
|
+
* @throws {AuthorizationException} 403
|
|
6830
7491
|
* @throws {NotFoundException} 404
|
|
7492
|
+
* @throws {ConflictException} 409
|
|
7493
|
+
* @throws {UnprocessableEntityException} 422
|
|
6831
7494
|
*/
|
|
6832
7495
|
createDataIntegrationCredential(options: CreateDataIntegrationCredentialOptions): Promise<DataIntegrationCredentialsResponse>;
|
|
7496
|
+
/**
|
|
7497
|
+
* Get an organization-owned data integration
|
|
7498
|
+
*
|
|
7499
|
+
* 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.
|
|
7500
|
+
* @param options - The request options.
|
|
7501
|
+
* @param options.slug - The slug identifier of the data integration.
|
|
7502
|
+
* @example "github"
|
|
7503
|
+
* @returns {Promise<DataIntegration>}
|
|
7504
|
+
* @throws {UnauthorizedException} 401
|
|
7505
|
+
* @throws {NotFoundException} 404
|
|
7506
|
+
*/
|
|
7507
|
+
getOrganizationDataIntegration(options: GetOrganizationDataIntegrationOptions): Promise<DataIntegration>;
|
|
7508
|
+
/**
|
|
7509
|
+
* Update an organization-owned data integration
|
|
7510
|
+
*
|
|
7511
|
+
* 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.
|
|
7512
|
+
* @param options - The request options.
|
|
7513
|
+
* @param options.slug - The slug identifier of the data integration.
|
|
7514
|
+
* @example "github"
|
|
7515
|
+
* @returns {Promise<DataIntegration>}
|
|
7516
|
+
* @throws {BadRequestException} 400
|
|
7517
|
+
* @throws {UnauthorizedException} 401
|
|
7518
|
+
* @throws {AuthorizationException} 403
|
|
7519
|
+
* @throws {NotFoundException} 404
|
|
7520
|
+
* @throws {ConflictException} 409
|
|
7521
|
+
* @throws {UnprocessableEntityException} 422
|
|
7522
|
+
*/
|
|
7523
|
+
updateOrganizationDataIntegration(options: UpdateOrganizationDataIntegrationOptions): Promise<DataIntegration>;
|
|
7524
|
+
/**
|
|
7525
|
+
* Delete an organization-owned data integration
|
|
7526
|
+
*
|
|
7527
|
+
* 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.
|
|
7528
|
+
* @param options - The request options.
|
|
7529
|
+
* @param options.slug - The slug identifier of the data integration.
|
|
7530
|
+
* @example "github"
|
|
7531
|
+
* @returns {Promise<void>}
|
|
7532
|
+
* @throws {UnauthorizedException} 401
|
|
7533
|
+
* @throws {NotFoundException} 404
|
|
7534
|
+
*/
|
|
7535
|
+
deleteOrganizationDataIntegration(options: DeleteOrganizationDataIntegrationOptions): Promise<void>;
|
|
6833
7536
|
/**
|
|
6834
7537
|
* Get an access token for a connected account
|
|
6835
7538
|
*
|
|
@@ -6837,17 +7540,118 @@ declare class Pipes {
|
|
|
6837
7540
|
* @param options - Object containing userId.
|
|
6838
7541
|
* @param options.provider - The identifier of the integration.
|
|
6839
7542
|
* @example "github"
|
|
6840
|
-
* @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier.
|
|
7543
|
+
* @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
7544
|
* @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.
|
|
7545
|
+
* @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
7546
|
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7547
|
+
* @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.
|
|
7548
|
+
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7549
|
+
* @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`.
|
|
7550
|
+
* @example "user"
|
|
7551
|
+
* @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.
|
|
7552
|
+
* @example true
|
|
6844
7553
|
* @returns {Promise<DataIntegrationAccessTokenResponse>}
|
|
6845
7554
|
* @throws {BadRequestException} 400
|
|
6846
7555
|
* @throws {UnauthorizedException} 401
|
|
7556
|
+
* @throws {AuthorizationException} 403
|
|
6847
7557
|
* @throws {NotFoundException} 404
|
|
7558
|
+
* @throws {ConflictException} 409
|
|
6848
7559
|
* @throws {UnprocessableEntityException} 422
|
|
6849
7560
|
*/
|
|
6850
7561
|
getAccessToken(options: GetAccessTokenOptions): Promise<DataIntegrationAccessTokenResponse>;
|
|
7562
|
+
/**
|
|
7563
|
+
* Get an organization connected account
|
|
7564
|
+
*
|
|
7565
|
+
* Retrieves an organization's [connected account](https://workos.com/docs/reference/pipes/connected-account) for a specific provider.
|
|
7566
|
+
* @param options - Additional query options.
|
|
7567
|
+
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier.
|
|
7568
|
+
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7569
|
+
* @param options.slug - The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
|
|
7570
|
+
* @example "github"
|
|
7571
|
+
* @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered.
|
|
7572
|
+
* @example true
|
|
7573
|
+
* @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.
|
|
7574
|
+
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7575
|
+
* @returns {Promise<ConnectedAccount>}
|
|
7576
|
+
* @throws {BadRequestException} 400
|
|
7577
|
+
* @throws {UnauthorizedException} 401
|
|
7578
|
+
* @throws {NotFoundException} 404
|
|
7579
|
+
* @throws {ConflictException} 409
|
|
7580
|
+
*/
|
|
7581
|
+
getOrganizationConnectedAccount(options: GetOrganizationConnectedAccountOptions): Promise<ConnectedAccount>;
|
|
7582
|
+
/**
|
|
7583
|
+
* Import an organization connected account
|
|
7584
|
+
*
|
|
7585
|
+
* 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.
|
|
7586
|
+
* @param options - The request options.
|
|
7587
|
+
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier.
|
|
7588
|
+
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7589
|
+
* @param options.slug - The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
|
|
7590
|
+
* @example "github"
|
|
7591
|
+
* @returns {Promise<ConnectedAccount>}
|
|
7592
|
+
* @throws {UnauthorizedException} 401
|
|
7593
|
+
* @throws {AuthorizationException} 403
|
|
7594
|
+
* @throws {NotFoundException} 404
|
|
7595
|
+
* @throws {ConflictException} 409
|
|
7596
|
+
* @throws {UnprocessableEntityException} 422
|
|
7597
|
+
*/
|
|
7598
|
+
createOrganizationConnectedAccount(options: CreateOrganizationConnectedAccountOptions): Promise<ConnectedAccount>;
|
|
7599
|
+
/**
|
|
7600
|
+
* Update an organization connected account
|
|
7601
|
+
*
|
|
7602
|
+
* Updates an organization's [connected account](https://workos.com/docs/reference/pipes/connected-account) tokens, scopes, or state for a specific provider.
|
|
7603
|
+
* @param options - Additional query options.
|
|
7604
|
+
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier.
|
|
7605
|
+
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7606
|
+
* @param options.slug - The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
|
|
7607
|
+
* @example "github"
|
|
7608
|
+
* @param options.supportsMultipleConnections - Accepted for compatibility; does not change update targeting.
|
|
7609
|
+
* @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to update.
|
|
7610
|
+
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7611
|
+
* @param options.connectionIntent - Set to `reauthorize` with `connectedAccountId`, or omit both to update the compatibility connection.
|
|
7612
|
+
* @returns {Promise<ConnectedAccount>}
|
|
7613
|
+
* @throws {BadRequestException} 400
|
|
7614
|
+
* @throws {UnauthorizedException} 401
|
|
7615
|
+
* @throws {AuthorizationException} 403
|
|
7616
|
+
* @throws {NotFoundException} 404
|
|
7617
|
+
* @throws {ConflictException} 409
|
|
7618
|
+
* @throws {UnprocessableEntityException} 422
|
|
7619
|
+
*/
|
|
7620
|
+
updateOrganizationConnectedAccount(options: UpdateOrganizationConnectedAccountOptions): Promise<ConnectedAccount>;
|
|
7621
|
+
/**
|
|
7622
|
+
* Delete an organization connected account
|
|
7623
|
+
*
|
|
7624
|
+
* 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.
|
|
7625
|
+
* @param options - Additional query options.
|
|
7626
|
+
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier.
|
|
7627
|
+
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7628
|
+
* @param options.slug - The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
|
|
7629
|
+
* @example "github"
|
|
7630
|
+
* @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered.
|
|
7631
|
+
* @example true
|
|
7632
|
+
* @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to delete.
|
|
7633
|
+
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7634
|
+
* @returns {Promise<void>}
|
|
7635
|
+
* @throws {BadRequestException} 400
|
|
7636
|
+
* @throws {UnauthorizedException} 401
|
|
7637
|
+
* @throws {NotFoundException} 404
|
|
7638
|
+
* @throws {ConflictException} 409
|
|
7639
|
+
*/
|
|
7640
|
+
deleteOrganizationConnectedAccount(options: DeleteOrganizationConnectedAccountOptions): Promise<void>;
|
|
7641
|
+
/**
|
|
7642
|
+
* List providers for an organization
|
|
7643
|
+
*
|
|
7644
|
+
* 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.
|
|
7645
|
+
* @param options - Additional query options.
|
|
7646
|
+
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier to list providers and connected accounts for.
|
|
7647
|
+
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7648
|
+
* @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered.
|
|
7649
|
+
* @example true
|
|
7650
|
+
* @returns {Promise<DataIntegrationsListResponse>}
|
|
7651
|
+
* @throws {UnauthorizedException} 401
|
|
7652
|
+
* @throws {NotFoundException} 404
|
|
7653
|
+
*/
|
|
7654
|
+
listOrganizationDataProviders(options: ListOrganizationDataProvidersOptions): Promise<DataIntegrationsListResponse>;
|
|
6851
7655
|
/**
|
|
6852
7656
|
* Get a connected account
|
|
6853
7657
|
*
|
|
@@ -6859,15 +7663,21 @@ declare class Pipes {
|
|
|
6859
7663
|
* @example "github"
|
|
6860
7664
|
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization.
|
|
6861
7665
|
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7666
|
+
* @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered.
|
|
7667
|
+
* @example true
|
|
7668
|
+
* @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.
|
|
7669
|
+
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
6862
7670
|
* @returns {Promise<ConnectedAccount>}
|
|
7671
|
+
* @throws {BadRequestException} 400
|
|
6863
7672
|
* @throws {UnauthorizedException} 401
|
|
6864
7673
|
* @throws {NotFoundException} 404
|
|
7674
|
+
* @throws {ConflictException} 409
|
|
6865
7675
|
*/
|
|
6866
7676
|
getUserConnectedAccount(options: GetUserConnectedAccountOptions): Promise<ConnectedAccount>;
|
|
6867
7677
|
/**
|
|
6868
7678
|
* Import a connected account
|
|
6869
7679
|
*
|
|
6870
|
-
* Imports a [connected account](https://workos.com/docs/reference/pipes/connected-account) for a user by providing OAuth tokens directly.
|
|
7680
|
+
* 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
7681
|
* @param options - The request body.
|
|
6872
7682
|
* @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier.
|
|
6873
7683
|
* @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
@@ -6903,6 +7713,10 @@ declare class Pipes {
|
|
|
6903
7713
|
* @example "github"
|
|
6904
7714
|
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization.
|
|
6905
7715
|
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7716
|
+
* @param options.supportsMultipleConnections - Accepted for compatibility; does not change update targeting.
|
|
7717
|
+
* @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to update.
|
|
7718
|
+
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7719
|
+
* @param options.connectionIntent - Set to `reauthorize` with `connectedAccountId`, or omit both to update the compatibility connection.
|
|
6906
7720
|
* @param options.accessToken - The OAuth access token for the connected account.
|
|
6907
7721
|
* @example "gho_16C7e42F292c6912E7710c838347Ae178B4a"
|
|
6908
7722
|
* @param options.refreshToken - The OAuth refresh token for the connected account.
|
|
@@ -6914,14 +7728,17 @@ declare class Pipes {
|
|
|
6914
7728
|
* @param options.state - Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided.
|
|
6915
7729
|
* @example "connected"
|
|
6916
7730
|
* @returns {Promise<ConnectedAccount>}
|
|
7731
|
+
* @throws {BadRequestException} 400
|
|
6917
7732
|
* @throws {UnauthorizedException} 401
|
|
6918
7733
|
* @throws {NotFoundException} 404
|
|
7734
|
+
* @throws {ConflictException} 409
|
|
7735
|
+
* @throws {UnprocessableEntityException} 422
|
|
6919
7736
|
*/
|
|
6920
7737
|
updateUserConnectedAccount(options: UpdateUserConnectedAccountOptions): Promise<ConnectedAccount>;
|
|
6921
7738
|
/**
|
|
6922
7739
|
* Delete a connected account
|
|
6923
7740
|
*
|
|
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.
|
|
7741
|
+
* 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
7742
|
* @param options - Additional query options.
|
|
6926
7743
|
* @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier.
|
|
6927
7744
|
* @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
@@ -6929,9 +7746,15 @@ declare class Pipes {
|
|
|
6929
7746
|
* @example "github"
|
|
6930
7747
|
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization.
|
|
6931
7748
|
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7749
|
+
* @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered.
|
|
7750
|
+
* @example true
|
|
7751
|
+
* @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to delete.
|
|
7752
|
+
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
6932
7753
|
* @returns {Promise<void>}
|
|
7754
|
+
* @throws {BadRequestException} 400
|
|
6933
7755
|
* @throws {UnauthorizedException} 401
|
|
6934
7756
|
* @throws {NotFoundException} 404
|
|
7757
|
+
* @throws {ConflictException} 409
|
|
6935
7758
|
*/
|
|
6936
7759
|
deleteUserConnectedAccount(options: DeleteUserConnectedAccountOptions): Promise<void>;
|
|
6937
7760
|
/**
|
|
@@ -6943,6 +7766,8 @@ declare class Pipes {
|
|
|
6943
7766
|
* @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
6944
7767
|
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to filter connections for a specific organization.
|
|
6945
7768
|
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7769
|
+
* @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered.
|
|
7770
|
+
* @example true
|
|
6946
7771
|
* @returns {Promise<DataIntegrationsListResponse>}
|
|
6947
7772
|
* @throws {UnauthorizedException} 401
|
|
6948
7773
|
* @throws {NotFoundException} 404
|
|
@@ -7513,6 +8338,15 @@ interface AuditLogSchemaResponse {
|
|
|
7513
8338
|
created_at: string;
|
|
7514
8339
|
}
|
|
7515
8340
|
//#endregion
|
|
8341
|
+
//#region src/audit-logs/interfaces/audit-logs-retention.interface.d.ts
|
|
8342
|
+
interface AuditLogsRetention {
|
|
8343
|
+
/** 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. */
|
|
8344
|
+
retentionPeriodInDays: number | null;
|
|
8345
|
+
}
|
|
8346
|
+
interface AuditLogsRetentionResponse {
|
|
8347
|
+
retention_period_in_days: number | null;
|
|
8348
|
+
}
|
|
8349
|
+
//#endregion
|
|
7516
8350
|
//#region src/audit-logs/interfaces/create-audit-log-event-options.interface.d.ts
|
|
7517
8351
|
interface AuditLogActor {
|
|
7518
8352
|
id: string;
|
|
@@ -7583,10 +8417,84 @@ interface SerializedCreateAuditLogSchemaOptions {
|
|
|
7583
8417
|
type CreateAuditLogSchemaResponse = AuditLogSchemaResponse;
|
|
7584
8418
|
type CreateAuditLogSchemaRequestOptions = Pick<PostOptions, 'idempotencyKey'>;
|
|
7585
8419
|
//#endregion
|
|
8420
|
+
//#region src/audit-logs/interfaces/get-organization-audit-logs-retention-options.interface.d.ts
|
|
8421
|
+
interface GetOrganizationAuditLogsRetentionOptions {
|
|
8422
|
+
/** Unique identifier of the Organization. */
|
|
8423
|
+
id: string;
|
|
8424
|
+
}
|
|
8425
|
+
//#endregion
|
|
8426
|
+
//#region src/audit-logs/interfaces/update-audit-logs-retention-retention-period.interface.d.ts
|
|
8427
|
+
declare const UpdateAuditLogsRetentionRetentionPeriod: {
|
|
8428
|
+
readonly Value1Month: "1_MONTH";
|
|
8429
|
+
readonly Value2Months: "2_MONTHS";
|
|
8430
|
+
readonly Value3Months: "3_MONTHS";
|
|
8431
|
+
readonly Value4Months: "4_MONTHS";
|
|
8432
|
+
readonly Value5Months: "5_MONTHS";
|
|
8433
|
+
readonly Value6Months: "6_MONTHS";
|
|
8434
|
+
readonly Value7Months: "7_MONTHS";
|
|
8435
|
+
readonly Value8Months: "8_MONTHS";
|
|
8436
|
+
readonly Value9Months: "9_MONTHS";
|
|
8437
|
+
readonly Value10Months: "10_MONTHS";
|
|
8438
|
+
readonly Value11Months: "11_MONTHS";
|
|
8439
|
+
readonly Value1Year: "1_YEAR";
|
|
8440
|
+
readonly Value2Years: "2_YEARS";
|
|
8441
|
+
readonly Value3Years: "3_YEARS";
|
|
8442
|
+
readonly Value4Years: "4_YEARS";
|
|
8443
|
+
readonly Value5Years: "5_YEARS";
|
|
8444
|
+
readonly Value6Years: "6_YEARS";
|
|
8445
|
+
readonly Value7Years: "7_YEARS";
|
|
8446
|
+
readonly Value8Years: "8_YEARS";
|
|
8447
|
+
readonly Value9Years: "9_YEARS";
|
|
8448
|
+
readonly Value10Years: "10_YEARS";
|
|
8449
|
+
};
|
|
8450
|
+
type UpdateAuditLogsRetentionRetentionPeriod = (typeof UpdateAuditLogsRetentionRetentionPeriod)[keyof typeof UpdateAuditLogsRetentionRetentionPeriod];
|
|
8451
|
+
//#endregion
|
|
8452
|
+
//#region src/audit-logs/interfaces/update-audit-logs-retention.interface.d.ts
|
|
8453
|
+
interface UpdateAuditLogsRetention {
|
|
8454
|
+
/** 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. */
|
|
8455
|
+
retentionPeriod: UpdateAuditLogsRetentionRetentionPeriod;
|
|
8456
|
+
}
|
|
8457
|
+
interface UpdateAuditLogsRetentionResponse {
|
|
8458
|
+
retention_period: UpdateAuditLogsRetentionRetentionPeriod;
|
|
8459
|
+
}
|
|
8460
|
+
//#endregion
|
|
8461
|
+
//#region src/audit-logs/interfaces/update-organization-audit-logs-retention-options.interface.d.ts
|
|
8462
|
+
interface UpdateOrganizationAuditLogsRetentionOptions {
|
|
8463
|
+
/** Unique identifier of the Organization. */
|
|
8464
|
+
id: string;
|
|
8465
|
+
/** 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. */
|
|
8466
|
+
retentionPeriod: UpdateAuditLogsRetentionRetentionPeriod;
|
|
8467
|
+
}
|
|
8468
|
+
//#endregion
|
|
7586
8469
|
//#region src/audit-logs/audit-logs.d.ts
|
|
7587
8470
|
declare class AuditLogs {
|
|
7588
8471
|
private readonly workos;
|
|
7589
8472
|
constructor(workos: WorkOS);
|
|
8473
|
+
/**
|
|
8474
|
+
* Get Retention
|
|
8475
|
+
*
|
|
8476
|
+
* Get the configured event retention period for the given Organization.
|
|
8477
|
+
* @param options - The request options.
|
|
8478
|
+
* @param options.id - Unique identifier of the Organization.
|
|
8479
|
+
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
8480
|
+
* @returns {Promise<AuditLogsRetention>}
|
|
8481
|
+
* @throws {NotFoundException} 404
|
|
8482
|
+
*/
|
|
8483
|
+
getOrganizationAuditLogsRetention(options: GetOrganizationAuditLogsRetentionOptions): Promise<AuditLogsRetention>;
|
|
8484
|
+
/**
|
|
8485
|
+
* Set Retention
|
|
8486
|
+
*
|
|
8487
|
+
* Set the event retention period for the given Organization.
|
|
8488
|
+
* @param options - Object containing retentionPeriod.
|
|
8489
|
+
* @param options.id - Unique identifier of the Organization.
|
|
8490
|
+
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
8491
|
+
* @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.
|
|
8492
|
+
* @example "1_MONTH"
|
|
8493
|
+
* @returns {Promise<AuditLogsRetention>}
|
|
8494
|
+
* @throws {NotFoundException} 404
|
|
8495
|
+
* @throws {UnprocessableEntityException} 422
|
|
8496
|
+
*/
|
|
8497
|
+
updateOrganizationAuditLogsRetention(options: UpdateOrganizationAuditLogsRetentionOptions): Promise<AuditLogsRetention>;
|
|
7590
8498
|
/**
|
|
7591
8499
|
* Create Event
|
|
7592
8500
|
*
|
|
@@ -7638,25 +8546,113 @@ declare class AuditLogs {
|
|
|
7638
8546
|
createSchema(schema: CreateAuditLogSchemaOptions, options?: CreateAuditLogSchemaRequestOptions): Promise<AuditLogSchema>;
|
|
7639
8547
|
listSchemas(action: string, options?: PaginationOptions): Promise<AutoPaginatable<AuditLogSchema, PaginationOptions>>;
|
|
7640
8548
|
}
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
* identifier additionally depends on the runtime.
|
|
7646
|
-
*/
|
|
8549
|
+
declare namespace types_d_exports {
|
|
8550
|
+
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 };
|
|
8551
|
+
}
|
|
8552
|
+
/** Supported JWS "alg" (Algorithm) Header Parameter values. Availability depends on the runtime. */
|
|
7647
8553
|
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
|
-
*/
|
|
8554
|
+
/** Supported JWE "alg" (Algorithm) Header Parameter values. Availability depends on the runtime. */
|
|
7652
8555
|
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
8556
|
/**
|
|
7654
|
-
* JWE "enc" (Encryption Algorithm) Header Parameter values
|
|
7655
|
-
*
|
|
8557
|
+
* Supported JWE "enc" (Encryption Algorithm) Header Parameter values. Availability depends on the
|
|
8558
|
+
* runtime.
|
|
7656
8559
|
*/
|
|
7657
8560
|
type JWEContentEncryptionAlgorithm = 'A128CBC-HS256' | 'A192CBC-HS384' | 'A256CBC-HS512' | 'A128GCM' | 'A192GCM' | 'A256GCM' | (string & {});
|
|
7658
8561
|
/** JWK "kty" (Key Type) Parameter values supported by this module. */
|
|
7659
8562
|
type JWKKeyType = 'EC' | 'RSA' | 'OKP' | 'AKP' | 'oct' | (string & {});
|
|
8563
|
+
/**
|
|
8564
|
+
* Generic JSON Web Key Parameters.
|
|
8565
|
+
*
|
|
8566
|
+
* > Note: This is declared as a type alias rather than an interface so that it satisfies the implicit index
|
|
8567
|
+
* > signature of the `JsonWebKey` types shipped by `@types/node` and `lib.dom`.
|
|
8568
|
+
*/
|
|
8569
|
+
type JWKParameters = {
|
|
8570
|
+
/** JWK "kty" (Key Type) Parameter */
|
|
8571
|
+
kty?: JWKKeyType;
|
|
8572
|
+
/** JWK "alg" (Algorithm) Parameter */
|
|
8573
|
+
alg?: JWSAlgorithm | JWEKeyManagementAlgorithm | JWEContentEncryptionAlgorithm;
|
|
8574
|
+
/** Permitted key operations. */
|
|
8575
|
+
key_ops?: string[];
|
|
8576
|
+
/** Whether the key may be exported. */
|
|
8577
|
+
ext?: boolean;
|
|
8578
|
+
/** JWK "use" (Public Key Use) Parameter */
|
|
8579
|
+
use?: 'sig' | 'enc' | (string & {});
|
|
8580
|
+
/** X.509 certificate chain. */
|
|
8581
|
+
x5c?: string[];
|
|
8582
|
+
/** X.509 certificate SHA-1 thumbprint. */
|
|
8583
|
+
x5t?: string;
|
|
8584
|
+
/** X.509 certificate SHA-256 thumbprint. */
|
|
8585
|
+
'x5t#S256'?: string;
|
|
8586
|
+
/** X.509 certificate URL. */
|
|
8587
|
+
x5u?: string;
|
|
8588
|
+
/** JWK "kid" (Key ID) Parameter */
|
|
8589
|
+
kid?: string;
|
|
8590
|
+
};
|
|
8591
|
+
/** Convenience interface for public OKP JSON Web Keys. */
|
|
8592
|
+
interface JWK_OKP_Public extends JWKParameters {
|
|
8593
|
+
/** Key pair subtype. */
|
|
8594
|
+
crv: string;
|
|
8595
|
+
/** Public key. */
|
|
8596
|
+
x: string;
|
|
8597
|
+
}
|
|
8598
|
+
/** Convenience interface for private OKP JSON Web Keys. */
|
|
8599
|
+
interface JWK_OKP_Private extends JWK_OKP_Public {
|
|
8600
|
+
/** Private key. */
|
|
8601
|
+
d: string;
|
|
8602
|
+
}
|
|
8603
|
+
/** Convenience interface for public AKP JSON Web Keys. */
|
|
8604
|
+
interface JWK_AKP_Public extends JWKParameters {
|
|
8605
|
+
/** JWK "alg" (Algorithm) Parameter */
|
|
8606
|
+
alg: string;
|
|
8607
|
+
/** AKP JWK "pub" (The Public key) Parameter */
|
|
8608
|
+
pub: string;
|
|
8609
|
+
}
|
|
8610
|
+
/** Convenience interface for private AKP JSON Web Keys. */
|
|
8611
|
+
interface JWK_AKP_Private extends JWK_AKP_Public {
|
|
8612
|
+
/** AKP JWK "priv" (The Private Key) Parameter */
|
|
8613
|
+
priv: string;
|
|
8614
|
+
}
|
|
8615
|
+
/** Convenience interface for public EC JSON Web Keys. */
|
|
8616
|
+
interface JWK_EC_Public extends JWKParameters {
|
|
8617
|
+
/** Curve. */
|
|
8618
|
+
crv: string;
|
|
8619
|
+
/** Public key X coordinate. */
|
|
8620
|
+
x: string;
|
|
8621
|
+
/** Public key Y coordinate. */
|
|
8622
|
+
y: string;
|
|
8623
|
+
}
|
|
8624
|
+
/** Convenience interface for private EC JSON Web Keys. */
|
|
8625
|
+
interface JWK_EC_Private extends JWK_EC_Public {
|
|
8626
|
+
/** Private key. */
|
|
8627
|
+
d: string;
|
|
8628
|
+
}
|
|
8629
|
+
/** Convenience interface for public RSA JSON Web Keys. */
|
|
8630
|
+
interface JWK_RSA_Public extends JWKParameters {
|
|
8631
|
+
/** Public exponent. */
|
|
8632
|
+
e: string;
|
|
8633
|
+
/** Modulus. */
|
|
8634
|
+
n: string;
|
|
8635
|
+
}
|
|
8636
|
+
/** Convenience interface for private RSA JSON Web Keys. */
|
|
8637
|
+
interface JWK_RSA_Private extends JWK_RSA_Public {
|
|
8638
|
+
/** Private exponent. */
|
|
8639
|
+
d: string;
|
|
8640
|
+
/** First factor CRT exponent. */
|
|
8641
|
+
dp: string;
|
|
8642
|
+
/** Second factor CRT exponent. */
|
|
8643
|
+
dq: string;
|
|
8644
|
+
/** First prime factor. */
|
|
8645
|
+
p: string;
|
|
8646
|
+
/** Second prime factor. */
|
|
8647
|
+
q: string;
|
|
8648
|
+
/** First CRT coefficient. */
|
|
8649
|
+
qi: string;
|
|
8650
|
+
}
|
|
8651
|
+
/** Convenience interface for "oct" JSON Web Keys. */
|
|
8652
|
+
interface JWK_oct extends JWKParameters {
|
|
8653
|
+
/** Symmetric key value. */
|
|
8654
|
+
k: string;
|
|
8655
|
+
}
|
|
7660
8656
|
/**
|
|
7661
8657
|
* JSON Web Key ({@link https://www.rfc-editor.org/info/rfc7517/ JWK}). "RSA", "EC", "OKP", "AKP",
|
|
7662
8658
|
* and "oct" key types are supported.
|
|
@@ -7671,146 +8667,404 @@ type JWK = {
|
|
|
7671
8667
|
kty?: JWKKeyType;
|
|
7672
8668
|
/** JWK "alg" (Algorithm) Parameter */
|
|
7673
8669
|
alg?: JWSAlgorithm | JWEKeyManagementAlgorithm | JWEContentEncryptionAlgorithm;
|
|
7674
|
-
/**
|
|
8670
|
+
/** Permitted key operations. */
|
|
7675
8671
|
key_ops?: string[];
|
|
7676
|
-
/**
|
|
8672
|
+
/** Whether the key may be exported. */
|
|
7677
8673
|
ext?: boolean;
|
|
7678
8674
|
/** JWK "use" (Public Key Use) Parameter */
|
|
7679
8675
|
use?: 'sig' | 'enc' | (string & {});
|
|
7680
|
-
/**
|
|
8676
|
+
/** X.509 certificate chain. */
|
|
7681
8677
|
x5c?: string[];
|
|
7682
|
-
/**
|
|
8678
|
+
/** X.509 certificate SHA-1 thumbprint. */
|
|
7683
8679
|
x5t?: string;
|
|
7684
|
-
/**
|
|
8680
|
+
/** X.509 certificate SHA-256 thumbprint. */
|
|
7685
8681
|
'x5t#S256'?: string;
|
|
7686
|
-
/**
|
|
8682
|
+
/** X.509 certificate URL. */
|
|
7687
8683
|
x5u?: string;
|
|
7688
8684
|
/** JWK "kid" (Key ID) Parameter */
|
|
7689
8685
|
kid?: string;
|
|
7690
|
-
/**
|
|
7691
|
-
* - EC JWK "crv" (Curve) Parameter
|
|
7692
|
-
* - OKP JWK "crv" (The Subtype of Key Pair) Parameter
|
|
7693
|
-
*/
|
|
8686
|
+
/** EC curve or OKP key pair subtype. */
|
|
7694
8687
|
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
|
-
*/
|
|
8688
|
+
/** Private RSA exponent, EC key, or OKP key. */
|
|
7700
8689
|
d?: string;
|
|
7701
|
-
/**
|
|
8690
|
+
/** RSA first factor CRT exponent. */
|
|
7702
8691
|
dp?: string;
|
|
7703
|
-
/**
|
|
8692
|
+
/** RSA second factor CRT exponent. */
|
|
7704
8693
|
dq?: string;
|
|
7705
|
-
/** RSA
|
|
8694
|
+
/** RSA public exponent. */
|
|
7706
8695
|
e?: string;
|
|
7707
|
-
/**
|
|
8696
|
+
/** Symmetric key value. */
|
|
7708
8697
|
k?: string;
|
|
7709
|
-
/** RSA
|
|
8698
|
+
/** RSA modulus. */
|
|
7710
8699
|
n?: string;
|
|
7711
|
-
/**
|
|
8700
|
+
/** RSA first prime factor. */
|
|
7712
8701
|
p?: string;
|
|
7713
|
-
/**
|
|
8702
|
+
/** RSA second prime factor. */
|
|
7714
8703
|
q?: string;
|
|
7715
|
-
/**
|
|
8704
|
+
/** RSA first CRT coefficient. */
|
|
7716
8705
|
qi?: string;
|
|
7717
|
-
/**
|
|
7718
|
-
* - EC JWK "x" (X Coordinate) Parameter
|
|
7719
|
-
* - OKP JWK "x" (The public key) Parameter
|
|
7720
|
-
*/
|
|
8706
|
+
/** EC public key X coordinate or OKP public key. */
|
|
7721
8707
|
x?: string;
|
|
7722
|
-
/** EC
|
|
8708
|
+
/** EC public key Y coordinate. */
|
|
7723
8709
|
y?: string;
|
|
7724
8710
|
/** AKP JWK "pub" (Public Key) Parameter */
|
|
7725
8711
|
pub?: string;
|
|
7726
8712
|
/** AKP JWK "priv" (Private key) Parameter */
|
|
7727
8713
|
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
|
-
*/
|
|
8714
|
+
/** Additional RSA prime factors. */
|
|
7733
8715
|
oth?: Array<{
|
|
7734
|
-
/**
|
|
8716
|
+
/** Factor CRT exponent. */
|
|
7735
8717
|
d?: string;
|
|
7736
|
-
/**
|
|
8718
|
+
/** Prime factor. */
|
|
7737
8719
|
r?: string;
|
|
7738
|
-
/**
|
|
8720
|
+
/** Factor CRT coefficient. */
|
|
7739
8721
|
t?: string;
|
|
7740
8722
|
}>;
|
|
7741
8723
|
};
|
|
7742
|
-
/**
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
8724
|
+
/** Discriminated union of supported JSON Web Key shapes, narrowed by the "kty" (Key Type) Parameter. */
|
|
8725
|
+
// Intersect "kty" into each member separately: typedoc omits the parentheses in `X & (A | B)`.
|
|
8726
|
+
type AnyJWK = (JWK_EC_Private & {
|
|
8727
|
+
kty: 'EC';
|
|
8728
|
+
}) | (JWK_EC_Public & {
|
|
8729
|
+
kty: 'EC';
|
|
8730
|
+
}) | (JWK_RSA_Private & {
|
|
8731
|
+
kty: 'RSA';
|
|
8732
|
+
}) | (JWK_RSA_Public & {
|
|
8733
|
+
kty: 'RSA';
|
|
8734
|
+
}) | (JWK_OKP_Private & {
|
|
8735
|
+
kty: 'OKP';
|
|
8736
|
+
}) | (JWK_OKP_Public & {
|
|
8737
|
+
kty: 'OKP';
|
|
8738
|
+
}) | (JWK_AKP_Private & {
|
|
8739
|
+
kty: 'AKP';
|
|
8740
|
+
}) | (JWK_AKP_Public & {
|
|
8741
|
+
kty: 'AKP';
|
|
8742
|
+
}) | (JWK_oct & {
|
|
8743
|
+
kty: 'oct';
|
|
8744
|
+
});
|
|
8745
|
+
/** Key or secret input accepted by all sign, verify, encrypt, and decrypt operations. */
|
|
8746
|
+
type KeyInput = CryptoKey | KeyObject | JWK | Uint8Array;
|
|
8747
|
+
/** Dynamic key resolver for consuming operations. */
|
|
8748
|
+
interface GetKeyFunction<IProtectedHeader, IToken, KeyTypes extends KeyInput = KeyInput> {
|
|
7747
8749
|
/**
|
|
7748
|
-
*
|
|
7749
|
-
*
|
|
7750
|
-
*
|
|
7751
|
-
* integrity protected.
|
|
8750
|
+
* Resolves a key for an unverified token. Throw if no suitable key can be resolved.
|
|
8751
|
+
*
|
|
8752
|
+
* @param token The consumed JWE or JWS token; none of its components have been verified.
|
|
7752
8753
|
*/
|
|
8754
|
+
(protectedHeader: IProtectedHeader, token: IToken): Promise<KeyTypes> | KeyTypes;
|
|
8755
|
+
}
|
|
8756
|
+
/** Flattened JWS verification input. */
|
|
8757
|
+
interface FlattenedJWSInput {
|
|
8758
|
+
/** JWS Unprotected Header as a JSON object. Not integrity protected; omit when empty. */
|
|
7753
8759
|
header?: JWSHeaderParameters;
|
|
7754
|
-
/**
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
8760
|
+
/** Base64url-encoded payload; with `b64: false`, supply an unencoded string or Uint8Array. */
|
|
8761
|
+
payload: string | Uint8Array;
|
|
8762
|
+
/** Base64url-encoded UTF-8 JWS Protected Header. Integrity protected; omit when empty. */
|
|
8763
|
+
protected?: string;
|
|
8764
|
+
/** Base64url-encoded signature or MAC. */
|
|
8765
|
+
signature: string;
|
|
8766
|
+
}
|
|
8767
|
+
/** General JWS verification input. */
|
|
8768
|
+
interface GeneralJWSInput {
|
|
8769
|
+
/** Base64url-encoded payload; with `b64: false`, supply an unencoded string or Uint8Array. */
|
|
7758
8770
|
payload: string | Uint8Array;
|
|
7759
8771
|
/**
|
|
7760
|
-
* The "
|
|
7761
|
-
*
|
|
7762
|
-
* Header Parameter values are integrity protected.
|
|
8772
|
+
* The "signatures" member value MUST be an array of JSON objects. Each object represents a
|
|
8773
|
+
* signature or MAC over the JWS Payload and the JWS Protected Header.
|
|
7763
8774
|
*/
|
|
7764
|
-
|
|
7765
|
-
|
|
8775
|
+
signatures: Omit<FlattenedJWSInput, 'payload'>[];
|
|
8776
|
+
}
|
|
8777
|
+
/**
|
|
8778
|
+
* Flattened JWS JSON Serialization token. The payload is an empty string when the
|
|
8779
|
+
* {@link https://www.rfc-editor.org/info/rfc7797/ unencoded payload option} is used.
|
|
8780
|
+
*/
|
|
8781
|
+
interface FlattenedJWS extends Partial<FlattenedJWSInput> {
|
|
8782
|
+
payload: string;
|
|
7766
8783
|
signature: string;
|
|
7767
8784
|
}
|
|
7768
|
-
/**
|
|
8785
|
+
/**
|
|
8786
|
+
* General JWS JSON Serialization token. The payload is an empty string when the
|
|
8787
|
+
* {@link https://www.rfc-editor.org/info/rfc7797/ unencoded payload option} is used.
|
|
8788
|
+
*/
|
|
8789
|
+
interface GeneralJWS {
|
|
8790
|
+
payload: string;
|
|
8791
|
+
signatures: Omit<FlattenedJWSInput, 'payload'>[];
|
|
8792
|
+
}
|
|
8793
|
+
/** Header Parameters common to JWE and JWS. */
|
|
7769
8794
|
interface JoseHeaderParameters {
|
|
7770
8795
|
/** "kid" (Key ID) Header Parameter */
|
|
7771
8796
|
kid?: string;
|
|
7772
|
-
/**
|
|
8797
|
+
/** X.509 certificate SHA-1 thumbprint. */
|
|
7773
8798
|
x5t?: string;
|
|
7774
|
-
/**
|
|
8799
|
+
/** X.509 certificate chain. */
|
|
7775
8800
|
x5c?: string[];
|
|
7776
|
-
/**
|
|
8801
|
+
/** X.509 certificate URL. */
|
|
7777
8802
|
x5u?: string;
|
|
7778
|
-
/**
|
|
8803
|
+
/** JWK Set URL. */
|
|
7779
8804
|
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
|
-
*/
|
|
8805
|
+
/** Public JWK only; private and symmetric key parameters are not permitted. */
|
|
7784
8806
|
jwk?: Omit<JWK, 'd' | 'dp' | 'dq' | 'k' | 'p' | 'q' | 'qi' | 'priv' | 'oth'>;
|
|
7785
8807
|
/** "typ" (Type) Header Parameter */
|
|
7786
8808
|
typ?: string;
|
|
7787
|
-
/**
|
|
8809
|
+
/** Content type. */
|
|
7788
8810
|
cty?: string;
|
|
7789
8811
|
}
|
|
7790
|
-
/** Recognized JWS Header Parameters
|
|
8812
|
+
/** Recognized JWS Header Parameters; additional members may also be present. */
|
|
7791
8813
|
interface JWSHeaderParameters extends JoseHeaderParameters {
|
|
7792
8814
|
/** JWS "alg" (Algorithm) Header Parameter */
|
|
7793
8815
|
alg?: JWSAlgorithm;
|
|
7794
8816
|
/**
|
|
7795
|
-
*
|
|
7796
|
-
*
|
|
8817
|
+
* Controls payload encoding and the JWS signing input as defined by
|
|
8818
|
+
* {@link https://www.rfc-editor.org/info/rfc7797/ RFC7797}. Set to `false` and list `b64` in
|
|
8819
|
+
* `crit` to use an unencoded payload.
|
|
7797
8820
|
*/
|
|
7798
8821
|
b64?: boolean;
|
|
7799
|
-
/**
|
|
8822
|
+
/** Extension parameters that must be recognized. */
|
|
7800
8823
|
crit?: string[];
|
|
7801
8824
|
/** Any other JWS Header member. */
|
|
7802
8825
|
[propName: string]: unknown;
|
|
7803
8826
|
}
|
|
7804
|
-
/**
|
|
8827
|
+
/** Recognized JWE Key Management-related Header Parameters. */
|
|
8828
|
+
interface JWEKeyManagementHeaderParameters {
|
|
8829
|
+
/** ECDH-ES Agreement PartyUInfo bytes, used in ConcatKDF and added to the JOSE header. */
|
|
8830
|
+
apu?: Uint8Array;
|
|
8831
|
+
/** ECDH-ES Agreement PartyVInfo bytes, used in ConcatKDF and added to the JOSE header. */
|
|
8832
|
+
apv?: Uint8Array;
|
|
8833
|
+
/** PBES2 PBKDF2 iteration count, added to the JOSE header. */
|
|
8834
|
+
p2c?: number;
|
|
8835
|
+
/** @deprecated For testing and vector validation only. */
|
|
8836
|
+
p2s?: Uint8Array;
|
|
8837
|
+
/** @deprecated For testing and vector validation only. */
|
|
8838
|
+
iv?: Uint8Array;
|
|
8839
|
+
/** @deprecated For testing and vector validation only. */
|
|
8840
|
+
epk?: CryptoKey | KeyObject;
|
|
8841
|
+
}
|
|
8842
|
+
/** Flattened JWE JSON Serialization token. */
|
|
8843
|
+
interface FlattenedJWE {
|
|
8844
|
+
/**
|
|
8845
|
+
* Base64url-encoded additional authenticated data; integrity protected but not encrypted. Omit
|
|
8846
|
+
* when empty.
|
|
8847
|
+
*/
|
|
8848
|
+
aad?: string;
|
|
8849
|
+
/** Base64url-encoded ciphertext. */
|
|
8850
|
+
ciphertext: string;
|
|
8851
|
+
/** Base64url-encoded encrypted key. Omit when empty. */
|
|
8852
|
+
encrypted_key?: string;
|
|
8853
|
+
/**
|
|
8854
|
+
* JWE Per-Recipient Unprotected Header as a JSON object. Not integrity protected; omit when
|
|
8855
|
+
* empty.
|
|
8856
|
+
*/
|
|
8857
|
+
header?: JWEHeaderParameters;
|
|
8858
|
+
/** Base64url-encoded initialization vector. Omit when empty. */
|
|
8859
|
+
iv?: string;
|
|
8860
|
+
/** Base64url-encoded UTF-8 JWE Protected Header. Integrity protected; omit when empty. */
|
|
8861
|
+
protected?: string;
|
|
8862
|
+
/** Base64url-encoded authentication tag. Omit when empty. */
|
|
8863
|
+
tag?: string;
|
|
8864
|
+
/** JWE Shared Unprotected Header as a JSON object. Not integrity protected; omit when empty. */
|
|
8865
|
+
unprotected?: JWEHeaderParameters;
|
|
8866
|
+
}
|
|
8867
|
+
/** General JWE JSON Serialization token. */
|
|
8868
|
+
interface GeneralJWE extends Omit<FlattenedJWE, 'encrypted_key' | 'header'> {
|
|
8869
|
+
recipients: Pick<FlattenedJWE, 'encrypted_key' | 'header'>[];
|
|
8870
|
+
}
|
|
8871
|
+
/** Recognized JWE Header Parameters; additional members may also be present. */
|
|
8872
|
+
interface JWEHeaderParameters extends JoseHeaderParameters {
|
|
8873
|
+
/** JWE "alg" (Algorithm) Header Parameter */
|
|
8874
|
+
alg?: JWEKeyManagementAlgorithm;
|
|
8875
|
+
/** JWE "enc" (Encryption Algorithm) Header Parameter */
|
|
8876
|
+
enc?: JWEContentEncryptionAlgorithm;
|
|
8877
|
+
/** Extension parameters that must be recognized. */
|
|
8878
|
+
crit?: string[];
|
|
8879
|
+
/**
|
|
8880
|
+
* JWE compression algorithm. Only `"DEF"` (DEFLATE) is supported, requiring the runtime's
|
|
8881
|
+
* `CompressionStream` / `DecompressionStream` APIs.
|
|
8882
|
+
*/
|
|
8883
|
+
zip?: 'DEF' | (string & {});
|
|
8884
|
+
/** Any other JWE Header member. */
|
|
8885
|
+
[propName: string]: unknown;
|
|
8886
|
+
}
|
|
8887
|
+
/** Shared "crit" option for signing, verification, encryption, and decryption. */
|
|
8888
|
+
interface CritOption {
|
|
8889
|
+
/**
|
|
8890
|
+
* Recognized "crit" (Critical) Header Parameter names. Set each value to `true` to require
|
|
8891
|
+
* integrity protection, or `false` when protection is optional. The JWS `b64` extension is always
|
|
8892
|
+
* recognized and processed.
|
|
8893
|
+
*
|
|
8894
|
+
* > Warning: Other extensions are only checked for syntax and optional integrity protection. Their presence
|
|
8895
|
+
* > is not required by this option. You must check their presence and process them according to the
|
|
8896
|
+
* > profile's validation steps after the operation succeeds.
|
|
8897
|
+
*/
|
|
8898
|
+
crit?: {
|
|
8899
|
+
[propName: string]: boolean;
|
|
8900
|
+
};
|
|
8901
|
+
}
|
|
8902
|
+
/** JWE Decryption options. */
|
|
8903
|
+
interface DecryptOptions extends CritOption {
|
|
8904
|
+
/**
|
|
8905
|
+
* Accepted JWE "alg" (Algorithm) Header Parameter values. Defaults to all algorithms applicable
|
|
8906
|
+
* to the key or secret except PBES2, which must be explicitly allowed.
|
|
8907
|
+
*/
|
|
8908
|
+
keyManagementAlgorithms?: JWEKeyManagementAlgorithm[];
|
|
8909
|
+
/**
|
|
8910
|
+
* Accepted JWE "enc" (Encryption Algorithm) Header Parameter values. Defaults to all algorithms
|
|
8911
|
+
* applicable to the key or secret.
|
|
8912
|
+
*/
|
|
8913
|
+
contentEncryptionAlgorithms?: JWEContentEncryptionAlgorithm[];
|
|
8914
|
+
/**
|
|
8915
|
+
* Maximum "p2c" (PBES2 Count) Header Parameter value, limiting PBKDF2 iterations and their
|
|
8916
|
+
* computational expense. Defaults to 10000; must be a positive safe integer or `Infinity` to
|
|
8917
|
+
* disable the limit.
|
|
8918
|
+
*/
|
|
8919
|
+
maxPBES2Count?: number;
|
|
8920
|
+
/**
|
|
8921
|
+
* Maximum decompressed plaintext size in bytes. Defaults to 250000; `0` rejects compressed JWEs,
|
|
8922
|
+
* and `Infinity` disables the limit. Other values must be positive safe integers.
|
|
8923
|
+
*/
|
|
8924
|
+
maxDecompressedLength?: number;
|
|
8925
|
+
}
|
|
8926
|
+
/** JWE Encryption options. */
|
|
8927
|
+
interface EncryptOptions extends CritOption {}
|
|
8928
|
+
/** JWT Claims Set verification options. */
|
|
8929
|
+
interface JWTClaimVerificationOptions {
|
|
8930
|
+
/** Expected JWT "aud" (Audience) Claim value(s). Requires the claim to be present. */
|
|
8931
|
+
audience?: string | string[];
|
|
8932
|
+
/**
|
|
8933
|
+
* Clock skew tolerance in seconds or a duration string (e.g. "5 seconds"). Applies to the "nbf"
|
|
8934
|
+
* (Not Before) and "exp" (Expiration Time) claims, and to "iat" (Issued At) when
|
|
8935
|
+
* {@link maxTokenAge} is set.
|
|
8936
|
+
*/
|
|
8937
|
+
clockTolerance?: string | number;
|
|
8938
|
+
/** Expected JWT "iss" (Issuer) Claim value(s). Requires the claim to be present. */
|
|
8939
|
+
issuer?: string | string[];
|
|
8940
|
+
/**
|
|
8941
|
+
* Maximum time since the JWT "iat" (Issued At) Claim, in seconds or a duration string (e.g. "2
|
|
8942
|
+
* hours"). Requires the claim to be present.
|
|
8943
|
+
*/
|
|
8944
|
+
maxTokenAge?: string | number;
|
|
8945
|
+
/** Expected JWT "sub" (Subject) Claim value. Requires the claim to be present. */
|
|
8946
|
+
subject?: string;
|
|
8947
|
+
/** Expected JWT "typ" (Type) Header Parameter value. Requires the parameter to be present. */
|
|
8948
|
+
typ?: string;
|
|
8949
|
+
/** Date for NumericDate comparisons. Defaults to `new Date()`. */
|
|
8950
|
+
currentDate?: Date;
|
|
8951
|
+
/**
|
|
8952
|
+
* Additional claim names required in the JWT Claims Set. The {@link issuer}, {@link audience},
|
|
8953
|
+
* {@link subject}, and {@link maxTokenAge} options independently require "iss", "aud", "sub", and
|
|
8954
|
+
* "iat", respectively.
|
|
8955
|
+
*/
|
|
8956
|
+
requiredClaims?: string[];
|
|
8957
|
+
}
|
|
8958
|
+
/** JWS Verification options. */
|
|
8959
|
+
interface VerifyOptions extends CritOption {
|
|
8960
|
+
/**
|
|
8961
|
+
* Accepted JWS "alg" (Algorithm) Header Parameter values. Defaults to all algorithms applicable
|
|
8962
|
+
* to the key or secret. Unsecured JWTs (`alg: "none"`) are never accepted.
|
|
8963
|
+
*/
|
|
8964
|
+
algorithms?: JWSAlgorithm[];
|
|
8965
|
+
}
|
|
8966
|
+
/** JWS Signing options. */
|
|
8967
|
+
interface SignOptions extends CritOption {}
|
|
8968
|
+
/** Recognized JWT Claims Set members; additional members may also be present. */
|
|
8969
|
+
interface JWTPayload {
|
|
8970
|
+
/** JWT Issuer */
|
|
8971
|
+
iss?: string;
|
|
8972
|
+
/** JWT Subject */
|
|
8973
|
+
sub?: string;
|
|
8974
|
+
/** JWT Audience */
|
|
8975
|
+
aud?: string | string[];
|
|
8976
|
+
/** JWT ID */
|
|
8977
|
+
jti?: string;
|
|
8978
|
+
/** Not valid before this Unix timestamp in seconds. */
|
|
8979
|
+
nbf?: number;
|
|
8980
|
+
/** Expiration Unix timestamp in seconds. */
|
|
8981
|
+
exp?: number;
|
|
8982
|
+
/** Issued-at Unix timestamp in seconds. */
|
|
8983
|
+
iat?: number;
|
|
8984
|
+
/** Any other JWT Claim Set member. */
|
|
8985
|
+
[propName: string]: unknown;
|
|
8986
|
+
}
|
|
8987
|
+
/** Flattened JWE JSON Serialization decryption result. */
|
|
8988
|
+
interface FlattenedDecryptResult {
|
|
8989
|
+
/** JWE Additional Authenticated Data, integrity protected but not encrypted. */
|
|
8990
|
+
additionalAuthenticatedData?: Uint8Array;
|
|
8991
|
+
/** Plaintext. */
|
|
8992
|
+
plaintext: Uint8Array;
|
|
8993
|
+
/** JWE Protected Header. */
|
|
8994
|
+
protectedHeader?: JWEHeaderParameters;
|
|
8995
|
+
/** JWE Shared Unprotected Header. Not integrity protected. */
|
|
8996
|
+
sharedUnprotectedHeader?: JWEHeaderParameters;
|
|
8997
|
+
/** JWE Per-Recipient Unprotected Header. Not integrity protected. */
|
|
8998
|
+
unprotectedHeader?: JWEHeaderParameters;
|
|
8999
|
+
}
|
|
9000
|
+
/** General JWE JSON Serialization decryption result. */
|
|
9001
|
+
interface GeneralDecryptResult extends FlattenedDecryptResult {}
|
|
9002
|
+
/** Compact JWE decryption result. */
|
|
9003
|
+
interface CompactDecryptResult {
|
|
9004
|
+
/** Plaintext. */
|
|
9005
|
+
plaintext: Uint8Array;
|
|
9006
|
+
/** JWE Protected Header. */
|
|
9007
|
+
protectedHeader: CompactJWEHeaderParameters;
|
|
9008
|
+
}
|
|
9009
|
+
/** Flattened JWS JSON Serialization verification result. */
|
|
9010
|
+
interface FlattenedVerifyResult {
|
|
9011
|
+
/** JWS Payload. */
|
|
9012
|
+
payload: Uint8Array;
|
|
9013
|
+
/** JWS Protected Header. */
|
|
9014
|
+
protectedHeader?: JWSHeaderParameters;
|
|
9015
|
+
/** JWS Unprotected Header. Not integrity protected. */
|
|
9016
|
+
unprotectedHeader?: JWSHeaderParameters;
|
|
9017
|
+
}
|
|
9018
|
+
/** General JWS JSON Serialization verification result. */
|
|
9019
|
+
interface GeneralVerifyResult extends FlattenedVerifyResult {}
|
|
9020
|
+
/** Compact JWS verification result. */
|
|
9021
|
+
interface CompactVerifyResult {
|
|
9022
|
+
/** JWS Payload. */
|
|
9023
|
+
payload: Uint8Array;
|
|
9024
|
+
/** JWS Protected Header. */
|
|
9025
|
+
protectedHeader: CompactJWSHeaderParameters;
|
|
9026
|
+
}
|
|
9027
|
+
/** Signed JSON Web Token (JWT) verification result. */
|
|
9028
|
+
interface JWTVerifyResult<PayloadType = JWTPayload> {
|
|
9029
|
+
/** JWT Claims Set. */
|
|
9030
|
+
payload: PayloadType & JWTPayload & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never);
|
|
9031
|
+
/** JWS Protected Header. */
|
|
9032
|
+
protectedHeader: JWTHeaderParameters;
|
|
9033
|
+
}
|
|
9034
|
+
/** Encrypted JSON Web Token (JWT) decryption result. */
|
|
9035
|
+
interface JWTDecryptResult<PayloadType = JWTPayload> {
|
|
9036
|
+
/** JWT Claims Set. */
|
|
9037
|
+
payload: PayloadType & JWTPayload & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never);
|
|
9038
|
+
/** JWE Protected Header. */
|
|
9039
|
+
protectedHeader: CompactJWEHeaderParameters;
|
|
9040
|
+
}
|
|
9041
|
+
/** Key resolver result metadata. */
|
|
9042
|
+
interface ResolvedKey<KeyType extends CryptoKey | Uint8Array = CryptoKey | Uint8Array> {
|
|
9043
|
+
/** The resolved key, present only when a key resolver is used. */
|
|
9044
|
+
key: KeyType;
|
|
9045
|
+
}
|
|
9046
|
+
/** Recognized Compact JWS Header Parameters; additional members may also be present. */
|
|
9047
|
+
interface CompactJWSHeaderParameters extends JWSHeaderParameters {
|
|
9048
|
+
alg: JWSAlgorithm;
|
|
9049
|
+
}
|
|
9050
|
+
/** Recognized signed JWT Header Parameters; additional members may also be present. */
|
|
9051
|
+
interface JWTHeaderParameters extends CompactJWSHeaderParameters {
|
|
9052
|
+
b64?: boolean;
|
|
9053
|
+
}
|
|
9054
|
+
/** Recognized Compact JWE Header Parameters; additional members may also be present. */
|
|
9055
|
+
interface CompactJWEHeaderParameters extends JWEHeaderParameters {
|
|
9056
|
+
alg: JWEKeyManagementAlgorithm;
|
|
9057
|
+
enc: JWEContentEncryptionAlgorithm;
|
|
9058
|
+
}
|
|
9059
|
+
/** JSON Web Key Set. */
|
|
7805
9060
|
interface JSONWebKeySet {
|
|
7806
9061
|
keys: JWK[];
|
|
7807
9062
|
}
|
|
7808
|
-
/**
|
|
7809
|
-
|
|
7810
|
-
|
|
7811
|
-
|
|
7812
|
-
|
|
7813
|
-
*/
|
|
9063
|
+
/** Node.js {@link !KeyObject} representation accepted as key input. */
|
|
9064
|
+
interface KeyObject {
|
|
9065
|
+
type: string;
|
|
9066
|
+
}
|
|
9067
|
+
/** The runtime's Web Crypto {@link !CryptoKey} representation accepted as key input. */
|
|
7814
9068
|
type CryptoKey = typeof globalThis extends {
|
|
7815
9069
|
crypto: {
|
|
7816
9070
|
subtle: {
|
|
@@ -7820,12 +9074,7 @@ type CryptoKey = typeof globalThis extends {
|
|
|
7820
9074
|
} ? Extract<R, {
|
|
7821
9075
|
type: string;
|
|
7822
9076
|
}> : 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
|
-
*/
|
|
9077
|
+
/** Structural fallback used when the host {@link !CryptoKey} type cannot be inferred. */
|
|
7829
9078
|
interface CryptoKeyStructuralFallback {
|
|
7830
9079
|
readonly algorithm: {
|
|
7831
9080
|
name: string;
|
|
@@ -7834,56 +9083,99 @@ interface CryptoKeyStructuralFallback {
|
|
|
7834
9083
|
readonly type: string;
|
|
7835
9084
|
readonly usages: string[];
|
|
7836
9085
|
}
|
|
9086
|
+
/** Shared fluent API for JWT-producing classes. */
|
|
9087
|
+
interface ProduceJWT {
|
|
9088
|
+
/**
|
|
9089
|
+
* Set the "iss" (Issuer) Claim.
|
|
9090
|
+
*
|
|
9091
|
+
* @param issuer "Issuer" Claim value to set on the JWT Claims Set.
|
|
9092
|
+
*/
|
|
9093
|
+
setIssuer(issuer: string): this;
|
|
9094
|
+
/**
|
|
9095
|
+
* Set the "sub" (Subject) Claim.
|
|
9096
|
+
*
|
|
9097
|
+
* @param subject "sub" (Subject) Claim value to set on the JWT Claims Set.
|
|
9098
|
+
*/
|
|
9099
|
+
setSubject(subject: string): this;
|
|
9100
|
+
/**
|
|
9101
|
+
* Set the "aud" (Audience) Claim.
|
|
9102
|
+
*
|
|
9103
|
+
* @param audience "aud" (Audience) Claim value to set on the JWT Claims Set.
|
|
9104
|
+
*/
|
|
9105
|
+
setAudience(audience: string | string[]): this;
|
|
9106
|
+
/**
|
|
9107
|
+
* Set the "jti" (JWT ID) Claim.
|
|
9108
|
+
*
|
|
9109
|
+
* @param jwtId "jti" (JWT ID) Claim value to set on the JWT Claims Set.
|
|
9110
|
+
*/
|
|
9111
|
+
setJti(jwtId: string): this;
|
|
9112
|
+
/**
|
|
9113
|
+
* Set the "nbf" (Not Before) Claim. Numbers are Unix timestamps in seconds; Dates are converted
|
|
9114
|
+
* to seconds. Strings are relative to now, using seconds, minutes, hours, days, weeks, or years
|
|
9115
|
+
* (365.25 days; no months). Prefix `-` or suffix `ago` subtracts the duration.
|
|
9116
|
+
*
|
|
9117
|
+
* @param input "nbf" (Not Before) Claim value as a timestamp, Date, or relative duration.
|
|
9118
|
+
*/
|
|
9119
|
+
setNotBefore(input: number | string | Date): this;
|
|
9120
|
+
/**
|
|
9121
|
+
* Set the "exp" (Expiration Time) Claim. Accepts a Unix timestamp in seconds, a Date, or a
|
|
9122
|
+
* duration relative to now using the same formats as {@link setNotBefore}.
|
|
9123
|
+
*
|
|
9124
|
+
* @param input "exp" (Expiration Time) Claim value as a timestamp, Date, or relative duration.
|
|
9125
|
+
*/
|
|
9126
|
+
setExpirationTime(input: number | string | Date): this;
|
|
9127
|
+
/**
|
|
9128
|
+
* Set the "iat" (Issued At) Claim. Defaults to the current Unix timestamp in seconds. Accepts a
|
|
9129
|
+
* Unix timestamp in seconds, a Date, or a duration relative to now using the same formats as
|
|
9130
|
+
* {@link setNotBefore}.
|
|
9131
|
+
*
|
|
9132
|
+
* @param input "iat" (Issued At) Claim value as a timestamp, Date, or relative duration.
|
|
9133
|
+
*/
|
|
9134
|
+
setIssuedAt(input?: number | string | Date): this;
|
|
9135
|
+
}
|
|
7837
9136
|
//#endregion
|
|
7838
9137
|
//#region node_modules/jose/dist/types/jwks/remote.d.ts
|
|
7839
9138
|
/**
|
|
7840
|
-
*
|
|
7841
|
-
* to make use of advanced fetch configurations, HTTP Proxies, retry on network errors, etc.
|
|
9139
|
+
* Configures a custom fetch implementation for remote JWKS retrieval.
|
|
7842
9140
|
*
|
|
7843
|
-
* > Note:
|
|
7844
|
-
* >
|
|
9141
|
+
* > Note: Fetch-like libraries may have incompatible TypeScript signatures even when they accept the
|
|
9142
|
+
* > supplied arguments at runtime.
|
|
7845
9143
|
*/
|
|
7846
9144
|
declare const customFetch: unique symbol;
|
|
7847
|
-
/** See {@link customFetch}. */
|
|
9145
|
+
/** Custom fetch function. Must return HTTP 200 with a JSON JWKS. See {@link customFetch}. */
|
|
7848
9146
|
type FetchImplementation = (
|
|
7849
|
-
/** URL
|
|
9147
|
+
/** JWKS URL, passed as the fetch resource. */
|
|
7850
9148
|
url: string,
|
|
7851
|
-
/** Options
|
|
9149
|
+
/** Options passed to fetch. */
|
|
7852
9150
|
options: {
|
|
7853
|
-
/** HTTP Headers */
|
|
7854
9151
|
headers: Headers;
|
|
7855
|
-
/** The {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods request method} */
|
|
7856
9152
|
method: 'GET';
|
|
7857
9153
|
/** See {@link !Request.redirect} */
|
|
7858
9154
|
redirect: 'manual';
|
|
7859
9155
|
signal: AbortSignal;
|
|
7860
9156
|
}) => Promise<Response>;
|
|
7861
9157
|
/**
|
|
7862
|
-
*
|
|
7863
|
-
* > accepted before use. It is critical that the JSON Web Key Set cache only be writable by your own
|
|
7864
|
-
* > code.
|
|
9158
|
+
* Symbol used to configure an externally persisted remote JWKS cache.
|
|
7865
9159
|
*
|
|
7866
|
-
*
|
|
7867
|
-
*
|
|
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.
|
|
9160
|
+
* > Warning: Only trusted application code must be allowed to write this cache; its keys are trusted for
|
|
9161
|
+
* > signature verification.
|
|
7870
9162
|
*/
|
|
7871
9163
|
declare const jwksCache: unique symbol;
|
|
7872
|
-
/**
|
|
9164
|
+
/** Remote JWKS resolver options. */
|
|
7873
9165
|
interface RemoteJWKSetOptions {
|
|
7874
9166
|
/**
|
|
7875
9167
|
* 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).
|
|
9168
|
+
* the verification will fail. Must be a non-negative integer. Default is 5000 (5 seconds).
|
|
7877
9169
|
*/
|
|
7878
9170
|
timeoutDuration?: number;
|
|
7879
9171
|
/**
|
|
7880
|
-
*
|
|
7881
|
-
*
|
|
9172
|
+
* Time in milliseconds after a successful fetch before a missing key can trigger another fetch.
|
|
9173
|
+
* Must not be `NaN`. Defaults to 30000 (30 seconds).
|
|
7882
9174
|
*/
|
|
7883
9175
|
cooldownDuration?: number;
|
|
7884
9176
|
/**
|
|
7885
|
-
* Maximum
|
|
7886
|
-
*
|
|
9177
|
+
* Maximum age of cached keys in milliseconds. Defaults to 600000 (10 minutes); `Infinity`
|
|
9178
|
+
* disables expiry. Must not be `NaN`.
|
|
7887
9179
|
*/
|
|
7888
9180
|
cacheMaxAge?: number | typeof Infinity;
|
|
7889
9181
|
/** Headers to be sent with the HTTP request. */
|
|
@@ -7893,16 +9185,16 @@ interface RemoteJWKSetOptions {
|
|
|
7893
9185
|
/** See {@link customFetch}. */
|
|
7894
9186
|
[customFetch]?: FetchImplementation;
|
|
7895
9187
|
}
|
|
7896
|
-
/**
|
|
9188
|
+
/** Shape of an externally persisted remote JWKS cache. */
|
|
7897
9189
|
interface ExportedJWKSCache {
|
|
7898
9190
|
/** Current cached JSON Web Key Set */
|
|
7899
9191
|
jwks: JSONWebKeySet;
|
|
7900
|
-
/** Last
|
|
9192
|
+
/** Last successful fetch, in milliseconds since Unix epoch. */
|
|
7901
9193
|
uat: number;
|
|
7902
9194
|
}
|
|
7903
|
-
/**
|
|
9195
|
+
/** Values accepted by the {@link jwksCache} option. */
|
|
7904
9196
|
type JWKSCacheInput = ExportedJWKSCache | Record<string, never>;
|
|
7905
|
-
/**
|
|
9197
|
+
/** A key resolver created by {@link createRemoteJWKSet}. */
|
|
7906
9198
|
interface RemoteJWKSet {
|
|
7907
9199
|
(protectedHeader?: JWSHeaderParameters, token?: FlattenedJWSInput): Promise<CryptoKey>;
|
|
7908
9200
|
/** Whether the cooldown window following the last successful fetch is still in effect. */
|
|
@@ -7920,25 +9212,20 @@ interface RemoteJWKSet {
|
|
|
7920
9212
|
*/
|
|
7921
9213
|
reload: () => Promise<void>;
|
|
7922
9214
|
/**
|
|
7923
|
-
*
|
|
7924
|
-
* {@link jwksCache}
|
|
9215
|
+
* Returns a structured clone of the cached JSON Web Key Set, or `undefined` before keys have been
|
|
9216
|
+
* fetched or seeded via {@link jwksCache}.
|
|
7925
9217
|
*/
|
|
7926
9218
|
jwks: () => JSONWebKeySet | undefined;
|
|
7927
9219
|
}
|
|
7928
9220
|
/**
|
|
7929
|
-
*
|
|
7930
|
-
*
|
|
7931
|
-
*
|
|
7932
|
-
*
|
|
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.
|
|
9221
|
+
* Creates a resolver for a JSON Web Key Set available at an HTTP(S) URL. Fetches the JSON Web Key
|
|
9222
|
+
* Set when the cache is missing or stale. An unmatched key triggers another fetch only when
|
|
9223
|
+
* `cooldownDuration` has elapsed since the last successful fetch. Selection uses the header's "alg"
|
|
9224
|
+
* and "kid" and respects the JWK's "use" and "key_ops". Exactly one key must match.
|
|
7936
9225
|
*
|
|
7937
|
-
* > Note:
|
|
7938
|
-
* > for public encryption keys.
|
|
9226
|
+
* > Note: Only public signature verification keys are supported, not public encryption keys.
|
|
7939
9227
|
*
|
|
7940
9228
|
* @param url URL to fetch the JSON Web Key Set from.
|
|
7941
|
-
* @param options Options for the remote JSON Web Key Set.
|
|
7942
9229
|
*/
|
|
7943
9230
|
declare function createRemoteJWKSet(url: URL, options?: RemoteJWKSetOptions): RemoteJWKSet;
|
|
7944
9231
|
//#endregion
|
|
@@ -7990,6 +9277,7 @@ declare class UserManagement {
|
|
|
7990
9277
|
private readonly workos;
|
|
7991
9278
|
private _jwks;
|
|
7992
9279
|
clientId: string | undefined;
|
|
9280
|
+
issuer: string | string[] | undefined;
|
|
7993
9281
|
constructor(workos: WorkOS);
|
|
7994
9282
|
/**
|
|
7995
9283
|
* Resolve clientId from method options or fall back to constructor-provided value.
|
|
@@ -10058,6 +11346,14 @@ declare class WorkOS {
|
|
|
10058
11346
|
}>;
|
|
10059
11347
|
delete(path: string, query?: Record<string, string | number | boolean | undefined>): Promise<void>;
|
|
10060
11348
|
deleteWithBody<Entity = any>(path: string, entity: Entity): Promise<void>;
|
|
11349
|
+
/**
|
|
11350
|
+
* Consume a successful response body. The request deadline covers the body,
|
|
11351
|
+
* so a stall while it is still streaming surfaces from the transport as a
|
|
11352
|
+
* 408 `HttpClientError` and is translated like a timeout before the headers.
|
|
11353
|
+
* Everything else (a `ParseError` for malformed JSON, a network failure
|
|
11354
|
+
* mid-body) propagates unchanged.
|
|
11355
|
+
*/
|
|
11356
|
+
private readResponseJSON;
|
|
10061
11357
|
emitWarning(warning: string): void;
|
|
10062
11358
|
private handleHttpError;
|
|
10063
11359
|
}
|
|
@@ -10687,5 +11983,5 @@ interface ConfidentialClientOptions extends WorkOSOptions {
|
|
|
10687
11983
|
declare function createWorkOS(options: PublicClientOptions): PublicWorkOS;
|
|
10688
11984
|
declare function createWorkOS(options: ConfidentialClientOptions): WorkOS;
|
|
10689
11985
|
//#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-
|
|
11986
|
+
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 };
|
|
11987
|
+
//# sourceMappingURL=factory-G1JU2hJz.d.mts.map
|