@workos-inc/node 10.10.0 → 10.12.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.
@@ -2695,10 +2695,38 @@ interface AddFlagTargetOptions {
2695
2695
  }
2696
2696
  //#endregion
2697
2697
  //#region src/feature-flags/interfaces/evaluation-context.interface.d.ts
2698
- interface EvaluationContext {
2698
+ /**
2699
+ * A single resource in a typed evaluation context. V1 carries only the exact
2700
+ * resource ID; attribute matching is a future capability layered onto this
2701
+ * same shape.
2702
+ */
2703
+ interface EvaluationResource {
2704
+ id: string;
2705
+ }
2706
+ /**
2707
+ * Legacy evaluation context, accepted for backward compatibility and
2708
+ * normalized internally to the typed form: `userId` matches `user` targets
2709
+ * and `organizationId` matches `organization` targets.
2710
+ */
2711
+ type LegacyEvaluationContext = {
2699
2712
  userId?: string;
2700
2713
  organizationId?: string;
2701
- }
2714
+ };
2715
+ /**
2716
+ * Typed evaluation context: a direct map of target type slug to the resource
2717
+ * being evaluated, e.g.
2718
+ * `{ user: { id: 'user_123' }, workspace: { id: 'ws_1' } }`.
2719
+ * A context contains at most one resource of each type; callers needing a
2720
+ * decision per resource should evaluate once per resource.
2721
+ */
2722
+ type TypedEvaluationContext = Record<string, EvaluationResource>;
2723
+ /**
2724
+ * Either evaluation context form. The two shapes cannot be mixed in a single
2725
+ * call: a hybrid context (a legacy key alongside a typed resource entry) is
2726
+ * rejected at evaluation time with a logged warning and matches no targets,
2727
+ * so the flag falls back to its default value.
2728
+ */
2729
+ type EvaluationContext = LegacyEvaluationContext | TypedEvaluationContext;
2702
2730
  //#endregion
2703
2731
  //#region src/feature-flags/interfaces/feature-flag.interface.d.ts
2704
2732
  interface FeatureFlag {
@@ -2741,6 +2769,11 @@ interface FlagTarget {
2741
2769
  id: string;
2742
2770
  enabled: boolean;
2743
2771
  }
2772
+ interface FlagCustomTarget {
2773
+ type: string;
2774
+ id: string;
2775
+ enabled: boolean;
2776
+ }
2744
2777
  interface FlagPollEntry {
2745
2778
  slug: string;
2746
2779
  enabled: boolean;
@@ -2748,6 +2781,8 @@ interface FlagPollEntry {
2748
2781
  targets: {
2749
2782
  users: FlagTarget[];
2750
2783
  organizations: FlagTarget[];
2784
+ /** Absent until the API's custom-targets rollout flag is enabled. */
2785
+ custom_targets?: FlagCustomTarget[];
2751
2786
  };
2752
2787
  }
2753
2788
  type FlagPollResponse = Record<string, FlagPollEntry>;
@@ -2882,188 +2917,847 @@ interface SerializedUpdateGroupOptions {
2882
2917
  description?: string | null;
2883
2918
  }
2884
2919
  //#endregion
2885
- //#region src/vault/interfaces/key.interface.d.ts
2886
- interface KeyContext {
2887
- [key: string]: any;
2920
+ //#region src/pipes/interfaces/authorize-data-integration-options.interface.d.ts
2921
+ interface AuthorizeDataIntegrationOptions {
2922
+ /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
2923
+ slug: string;
2924
+ /** The ID of the user to authorize. */
2925
+ userId: string;
2926
+ /** An organization ID to scope the authorization to a specific organization. */
2927
+ organizationId?: string;
2928
+ /** The URL to redirect the user to after authorization. */
2929
+ returnTo?: string;
2888
2930
  }
2889
- interface DataKeyPair {
2890
- context: KeyContext;
2891
- dataKey: DataKey;
2892
- encryptedKeys: string;
2931
+ //#endregion
2932
+ //#region src/pipes/interfaces/connected-account-auth-method.interface.d.ts
2933
+ declare const ConnectedAccountAuthMethod: {
2934
+ readonly OAuth: "oauth";
2935
+ readonly ApiKey: "api_key";
2936
+ };
2937
+ type ConnectedAccountAuthMethod = (typeof ConnectedAccountAuthMethod)[keyof typeof ConnectedAccountAuthMethod];
2938
+ //#endregion
2939
+ //#region src/pipes/interfaces/connected-account-state.interface.d.ts
2940
+ declare const ConnectedAccountState: {
2941
+ readonly Connected: "connected";
2942
+ readonly NeedsReauthorization: "needs_reauthorization";
2943
+ };
2944
+ type ConnectedAccountState = (typeof ConnectedAccountState)[keyof typeof ConnectedAccountState];
2945
+ //#endregion
2946
+ //#region src/pipes/interfaces/connected-account.interface.d.ts
2947
+ interface ConnectedAccount {
2948
+ /** Distinguishes the connected account object. */
2949
+ object: 'connected_account';
2950
+ /** The unique identifier of the connected account. */
2951
+ id: string;
2952
+ /** The [User](https://workos.com/docs/reference/authkit/user) identifier associated with this connection. */
2953
+ userId: string | null;
2954
+ /** The [Organization](https://workos.com/docs/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization. */
2955
+ organizationId: string | null;
2956
+ /** The OAuth scopes granted for this connection. */
2957
+ scopes: string[];
2958
+ /** The authentication method used for this connection (`oauth` or `api_key`). Defaults to `oauth` if absent. */
2959
+ authMethod?: ConnectedAccountAuthMethod;
2960
+ /** The last four characters of the API key, or `null` for OAuth connections. */
2961
+ apiKeyLast4?: string | null;
2962
+ /**
2963
+ * The state of the connected account:
2964
+ * - `connected`: The connection is active and tokens are valid.
2965
+ * - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed.
2966
+ * - `disconnected`: The connection has been disconnected.
2967
+ */
2968
+ state: ConnectedAccountState;
2969
+ /** The timestamp when the connection was created. */
2970
+ createdAt: string;
2971
+ /** The timestamp when the connection was last updated. */
2972
+ updatedAt: string;
2893
2973
  }
2894
- interface DataKey {
2895
- key: string;
2974
+ interface ConnectedAccountResponse {
2975
+ object: 'connected_account';
2896
2976
  id: string;
2977
+ user_id: string | null;
2978
+ organization_id: string | null;
2979
+ scopes: string[];
2980
+ auth_method?: ConnectedAccountAuthMethod;
2981
+ api_key_last_4?: string | null;
2982
+ state: ConnectedAccountState;
2983
+ created_at: string;
2984
+ updated_at: string;
2897
2985
  }
2898
2986
  //#endregion
2899
- //#region src/vault/interfaces/vault-event.interface.d.ts
2900
- type VaultActorSource = 'api' | 'dashboard';
2901
- interface VaultActor {
2902
- actorId: string;
2903
- actorSource: VaultActorSource;
2904
- actorName: string;
2905
- }
2906
- interface VaultActorResponse {
2907
- actor_id: string;
2908
- actor_source: VaultActorSource;
2909
- actor_name: string;
2910
- }
2911
- interface VaultDataMutatedEventData extends VaultActor {
2912
- kvName: string;
2913
- keyId: string;
2914
- keyContext: KeyContext;
2987
+ //#region src/pipes/interfaces/create-data-integration-credential-options.interface.d.ts
2988
+ interface CreateDataIntegrationCredentialOptions {
2989
+ /** The identifier of the integration. */
2990
+ slug: string;
2991
+ /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
2992
+ userId: string;
2993
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. */
2994
+ organizationId?: string;
2915
2995
  }
2916
- interface VaultDataMutatedEventResponseData extends VaultActorResponse {
2917
- kv_name: string;
2918
- key_id: string;
2919
- key_context: KeyContext;
2996
+ //#endregion
2997
+ //#region src/pipes/interfaces/data-integration-credentials-type.interface.d.ts
2998
+ declare const DataIntegrationCredentialsType: {
2999
+ readonly Custom: "custom";
3000
+ readonly Organization: "organization";
3001
+ };
3002
+ type DataIntegrationCredentialsType = (typeof DataIntegrationCredentialsType)[keyof typeof DataIntegrationCredentialsType];
3003
+ //#endregion
3004
+ //#region src/pipes/interfaces/data-integration-credentials-dto.interface.d.ts
3005
+ interface DataIntegrationCredentialsDto {
3006
+ /** The credentials type. `custom` uses your own OAuth app credentials; `organization` has each organization supply its own credentials (configured per-organization). */
3007
+ type: DataIntegrationCredentialsType;
3008
+ /** OAuth client ID for the provider app. Required when `type` is `custom`; omit for `organization`. */
3009
+ clientId?: string;
3010
+ /** OAuth client secret for the provider app. Required when `type` is `custom`; omit for `organization`. */
3011
+ clientSecret?: string;
2920
3012
  }
2921
- type VaultDataCreatedEventData = VaultDataMutatedEventData;
2922
- type VaultDataUpdatedEventData = VaultDataMutatedEventData;
2923
- type VaultDataCreatedEventResponseData = VaultDataMutatedEventResponseData;
2924
- type VaultDataUpdatedEventResponseData = VaultDataMutatedEventResponseData;
2925
- interface VaultDataReadEventData extends VaultActor {
2926
- kvName: string;
2927
- keyId: string;
3013
+ interface DataIntegrationCredentialsDtoResponse {
3014
+ type: DataIntegrationCredentialsType;
3015
+ client_id?: string;
3016
+ client_secret?: string;
2928
3017
  }
2929
- interface VaultDataReadEventResponseData extends VaultActorResponse {
2930
- kv_name: string;
2931
- key_id: string;
3018
+ //#endregion
3019
+ //#region src/pipes/interfaces/custom-provider-definition-authenticate-via.interface.d.ts
3020
+ declare const CustomProviderDefinitionAuthenticateVia: {
3021
+ readonly RequestBody: "request_body";
3022
+ readonly BasicAuthHeader: "basic_auth_header";
3023
+ };
3024
+ type CustomProviderDefinitionAuthenticateVia = (typeof CustomProviderDefinitionAuthenticateVia)[keyof typeof CustomProviderDefinitionAuthenticateVia];
3025
+ //#endregion
3026
+ //#region src/pipes/interfaces/custom-provider-definition.interface.d.ts
3027
+ interface CustomProviderDefinition {
3028
+ /** A descriptive name for the custom provider. */
3029
+ name: string;
3030
+ /** The provider's OAuth authorization endpoint. */
3031
+ authorizationUrl: string;
3032
+ /** The provider's OAuth token endpoint. */
3033
+ tokenUrl: string;
3034
+ /** The endpoint used to refresh tokens, if different from the token endpoint. */
3035
+ refreshTokenUrl?: string | null;
3036
+ /** Whether PKCE is used during the authorization code flow. Defaults to `true`. */
3037
+ pkceEnabled?: boolean;
3038
+ /** The separator used to join requested scopes. Defaults to a space. */
3039
+ requestScopeSeparator?: string;
3040
+ /** Whether at least one scope must be selected when connecting an account. Defaults to `false`. */
3041
+ scopesRequired?: boolean;
3042
+ /** Whether a client secret is required for this provider. Defaults to `true`. */
3043
+ clientSecretRequired?: boolean;
3044
+ /** Additional static query parameters appended to the authorization request. */
3045
+ additionalAuthorizationParameters?: Record<string, string>;
3046
+ /** The Content-Type used when exchanging the token request. */
3047
+ tokenBodyContentType?: string;
3048
+ /** How client credentials are sent when exchanging authorization codes and refreshing tokens. */
3049
+ authenticateVia?: CustomProviderDefinitionAuthenticateVia;
2932
3050
  }
2933
- interface VaultDataDeletedEventData extends VaultActor {
2934
- kvName: string;
3051
+ interface CustomProviderDefinitionResponse {
3052
+ name: string;
3053
+ authorization_url: string;
3054
+ token_url: string;
3055
+ refresh_token_url?: string | null;
3056
+ pkce_enabled?: boolean;
3057
+ request_scope_separator?: string;
3058
+ scopes_required?: boolean;
3059
+ client_secret_required?: boolean;
3060
+ additional_authorization_parameters?: Record<string, string>;
3061
+ token_body_content_type?: string;
3062
+ authenticate_via?: CustomProviderDefinitionAuthenticateVia;
2935
3063
  }
2936
- interface VaultDataDeletedEventResponseData extends VaultActorResponse {
2937
- kv_name: string;
3064
+ //#endregion
3065
+ //#region src/pipes/interfaces/create-data-integration-options.interface.d.ts
3066
+ interface CreateDataIntegrationOptions {
3067
+ /** 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. */
3068
+ provider: string;
3069
+ /** An optional description of the Data Integration. */
3070
+ description?: string | null;
3071
+ /** Whether the Data Integration is enabled. Defaults to `false`. */
3072
+ enabled?: boolean;
3073
+ /** The OAuth scopes to request for the Data Integration. Defaults to the provider's configured scopes when omitted. */
3074
+ scopes?: string[] | null;
3075
+ /** The credentials to configure for the Data Integration. Required for both built-in and custom providers. */
3076
+ credentials?: DataIntegrationCredentialsDto;
3077
+ /** 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. */
3078
+ customProvider?: CustomProviderDefinition;
2938
3079
  }
2939
- interface VaultMetadataReadEventData extends VaultActor {
2940
- kvName: string;
3080
+ //#endregion
3081
+ //#region src/pipes/interfaces/create-user-connected-account-options.interface.d.ts
3082
+ interface CreateUserConnectedAccountOptions {
3083
+ /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
3084
+ userId: string;
3085
+ /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
3086
+ slug: string;
3087
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. */
3088
+ organizationId?: string;
3089
+ /** The OAuth access token for the connected account. */
3090
+ accessToken?: string;
3091
+ /** The OAuth refresh token for the connected account. */
3092
+ refreshToken?: string;
3093
+ /** The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire. */
3094
+ expiresAt?: Date;
3095
+ /** The OAuth scopes granted for this connection. */
3096
+ scopes?: string[];
3097
+ /** Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided. */
3098
+ state?: ConnectedAccountState;
2941
3099
  }
2942
- interface VaultMetadataReadEventResponseData extends VaultActorResponse {
2943
- kv_name: string;
3100
+ //#endregion
3101
+ //#region src/pipes/interfaces/data-integration-access-token-response-access-token.interface.d.ts
3102
+ /** The [access token](https://workos.com/docs/reference/pipes/access-token) object, present when `active` is `true`. */
3103
+ interface DataIntegrationAccessTokenResponseAccessToken {
3104
+ /** Distinguishes the access token object. */
3105
+ object: 'access_token';
3106
+ /** The OAuth access token for the connected integration. */
3107
+ accessToken: string;
3108
+ /** The ISO-8601 formatted timestamp indicating when the access token expires. */
3109
+ expiresAt: Date | null;
3110
+ /** The scopes granted to the access token. */
3111
+ scopes: string[];
3112
+ /** If the integration has requested scopes that aren't present on the access token, they're listed here. */
3113
+ missingScopes: string[];
2944
3114
  }
2945
- type VaultNamesListedEventData = VaultActor;
2946
- type VaultNamesListedEventResponseData = VaultActorResponse;
2947
- interface VaultKekCreatedEventData extends VaultActor {
2948
- keyName: string;
2949
- keyId: string;
3115
+ interface DataIntegrationAccessTokenResponseAccessTokenResponse {
3116
+ object: 'access_token';
3117
+ access_token: string;
3118
+ expires_at: string | null;
3119
+ scopes: string[];
3120
+ missing_scopes: string[];
2950
3121
  }
2951
- interface VaultKekCreatedEventResponseData extends VaultActorResponse {
2952
- key_name: string;
2953
- key_id: string;
3122
+ //#endregion
3123
+ //#region src/pipes/interfaces/data-integration-access-token-response.interface.d.ts
3124
+ type DataIntegrationAccessTokenResponse = {
3125
+ active: true;
3126
+ accessToken: DataIntegrationAccessTokenResponseAccessToken;
3127
+ } | {
3128
+ active: false;
3129
+ error: 'needs_reauthorization' | 'not_installed';
3130
+ };
3131
+ type DataIntegrationAccessTokenResponseWire = {
3132
+ active: true;
3133
+ access_token: DataIntegrationAccessTokenResponseAccessTokenResponse;
3134
+ } | {
3135
+ active: false;
3136
+ error: 'needs_reauthorization' | 'not_installed';
3137
+ };
3138
+ //#endregion
3139
+ //#region src/pipes/interfaces/data-integration-authorize-url-response.interface.d.ts
3140
+ interface DataIntegrationAuthorizeUrlResponse {
3141
+ /** The OAuth authorization URL to redirect the user to. */
3142
+ url: string;
2954
3143
  }
2955
- interface VaultDekReadEventData extends VaultActor {
2956
- keyIds: string[];
2957
- keyContext: KeyContext;
3144
+ interface DataIntegrationAuthorizeUrlResponseWire {
3145
+ url: string;
2958
3146
  }
2959
- interface VaultDekReadEventResponseData extends VaultActorResponse {
2960
- key_ids: string[];
2961
- key_context: KeyContext;
3147
+ //#endregion
3148
+ //#region src/pipes/interfaces/data-integration-credential-type.interface.d.ts
3149
+ declare const DataIntegrationCredentialType: {
3150
+ readonly Custom: "custom";
3151
+ readonly Organization: "organization";
3152
+ };
3153
+ type DataIntegrationCredentialType = (typeof DataIntegrationCredentialType)[keyof typeof DataIntegrationCredentialType];
3154
+ //#endregion
3155
+ //#region src/pipes/interfaces/data-integration-credential.interface.d.ts
3156
+ /** The credentials configured for the Data Integration. */
3157
+ interface DataIntegrationCredential {
3158
+ /** The credentials type. `custom` uses your own OAuth app credentials; `organization` has each organization supply its own credentials (so `client_id`/`redacted_client_secret` are null on the integration itself). */
3159
+ type: DataIntegrationCredentialType;
3160
+ /** The OAuth client ID configured for the provider app. Null for `organization` credentials. */
3161
+ clientId: string | null;
3162
+ /** The last four characters of the OAuth client secret. The full secret is never returned. Null for `organization` credentials. */
3163
+ redactedClientSecret: string | null;
2962
3164
  }
2963
- interface VaultDekDecryptedEventData extends VaultActor {
2964
- keyId: string;
3165
+ interface DataIntegrationCredentialResponse {
3166
+ type: DataIntegrationCredentialType;
3167
+ client_id: string | null;
3168
+ redacted_client_secret: string | null;
2965
3169
  }
2966
- interface VaultDekDecryptedEventResponseData extends VaultActorResponse {
2967
- key_id: string;
3170
+ //#endregion
3171
+ //#region src/pipes/interfaces/data-integration-credentials-response-credential.interface.d.ts
3172
+ /** The credential object containing the vended secret. */
3173
+ interface DataIntegrationCredentialsResponseCredential {
3174
+ /** Distinguishes the credential object. */
3175
+ object: 'credential';
3176
+ /** The authentication method for this credential. Additional values may be added in the future; handle unknown values gracefully. */
3177
+ authMethod: 'oauth';
3178
+ /** The OAuth access token. */
3179
+ value: string;
3180
+ /** The ISO-8601 formatted timestamp indicating when the credential expires. */
3181
+ expiresAt: string | null;
3182
+ /** The scopes granted to the access token. */
3183
+ scopes: string[];
3184
+ /** If the integration has requested scopes that aren't present on the access token, they're listed here. */
3185
+ missingScopes: string[];
2968
3186
  }
2969
- type VaultByokKeyProvider = 'AWS_KMS' | 'GCP_KMS' | 'AZURE_KEY_VAULT';
2970
- interface VaultByokKeyVerificationCompletedEventData {
2971
- organizationId: string;
2972
- keyProvider: VaultByokKeyProvider;
2973
- verified: boolean;
3187
+ interface DataIntegrationCredentialsResponseCredentialResponse {
3188
+ object: 'credential';
3189
+ auth_method: 'oauth';
3190
+ value: string;
3191
+ expires_at: string | null;
3192
+ scopes: string[];
3193
+ missing_scopes: string[];
2974
3194
  }
2975
- interface VaultByokKeyVerificationCompletedEventResponseData {
2976
- organization_id: string;
2977
- key_provider: VaultByokKeyProvider;
2978
- verified: boolean;
3195
+ //#endregion
3196
+ //#region src/pipes/interfaces/data-integration-credentials-response-error.interface.d.ts
3197
+ declare const DataIntegrationCredentialsResponseError: {
3198
+ readonly NotInstalled: "not_installed";
3199
+ readonly NeedsReauthorization: "needs_reauthorization";
3200
+ };
3201
+ type DataIntegrationCredentialsResponseError = (typeof DataIntegrationCredentialsResponseError)[keyof typeof DataIntegrationCredentialsResponseError];
3202
+ //#endregion
3203
+ //#region src/pipes/interfaces/data-integration-custom-provider-authenticate-via.interface.d.ts
3204
+ declare const DataIntegrationCustomProviderAuthenticateVia: {
3205
+ readonly RequestBody: "request_body";
3206
+ readonly BasicAuthHeader: "basic_auth_header";
3207
+ };
3208
+ type DataIntegrationCustomProviderAuthenticateVia = (typeof DataIntegrationCustomProviderAuthenticateVia)[keyof typeof DataIntegrationCustomProviderAuthenticateVia];
3209
+ //#endregion
3210
+ //#region src/pipes/interfaces/data-integration-custom-provider.interface.d.ts
3211
+ interface DataIntegrationCustomProvider {
3212
+ /** A descriptive name for the custom provider. */
3213
+ name: string;
3214
+ /** The provider's OAuth authorization endpoint. */
3215
+ authorizationUrl: string | null;
3216
+ /** The provider's OAuth token endpoint. */
3217
+ tokenUrl: string | null;
3218
+ /** The endpoint used to refresh tokens, if different from the token endpoint. */
3219
+ refreshTokenUrl: string | null;
3220
+ /** Whether PKCE is used during the authorization code flow. */
3221
+ pkceEnabled: boolean;
3222
+ /** The separator used to join requested scopes. */
3223
+ requestScopeSeparator: string;
3224
+ /** Whether at least one scope must be selected when connecting an account. */
3225
+ scopesRequired: boolean;
3226
+ /** Whether a client secret is required for this provider. */
3227
+ clientSecretRequired: boolean;
3228
+ /** Additional static query parameters appended to the authorization request. */
3229
+ additionalAuthorizationParameters: Record<string, string>;
3230
+ /** The Content-Type used when exchanging the token request. */
3231
+ tokenBodyContentType: string;
3232
+ /** How client credentials are sent when exchanging authorization codes and refreshing tokens. */
3233
+ authenticateVia: DataIntegrationCustomProviderAuthenticateVia;
3234
+ }
3235
+ interface DataIntegrationCustomProviderResponse {
3236
+ name: string;
3237
+ authorization_url: string | null;
3238
+ token_url: string | null;
3239
+ refresh_token_url: string | null;
3240
+ pkce_enabled: boolean;
3241
+ request_scope_separator: string;
3242
+ scopes_required: boolean;
3243
+ client_secret_required: boolean;
3244
+ additional_authorization_parameters: Record<string, string>;
3245
+ token_body_content_type: string;
3246
+ authenticate_via: DataIntegrationCustomProviderAuthenticateVia;
2979
3247
  }
2980
3248
  //#endregion
2981
- //#region src/common/interfaces/event.interface.d.ts
2982
- interface EventBase {
3249
+ //#region src/pipes/interfaces/data-integration-state.interface.d.ts
3250
+ declare const DataIntegrationState: {
3251
+ readonly Valid: "valid";
3252
+ readonly Invalid: "invalid";
3253
+ readonly Requested: "requested";
3254
+ };
3255
+ type DataIntegrationState = (typeof DataIntegrationState)[keyof typeof DataIntegrationState];
3256
+ //#endregion
3257
+ //#region src/pipes/interfaces/data-integration.interface.d.ts
3258
+ interface DataIntegration {
3259
+ /** Distinguishes the Data Integration object. */
3260
+ object: 'data_integration';
3261
+ /** Unique identifier of the Data Integration. */
2983
3262
  id: string;
2984
- createdAt: string;
2985
- context: Record<string, unknown> | undefined;
3263
+ /** The provider slug for this Data Integration. */
3264
+ slug: string;
3265
+ /** The integration type derived from the provider. */
3266
+ integrationType: string;
3267
+ /** An optional description of the Data Integration. */
3268
+ description: string | null;
3269
+ /** Whether the Data Integration is enabled. */
3270
+ enabled: boolean;
3271
+ /** The state of the Data Integration. */
3272
+ state: DataIntegrationState;
3273
+ /** The OAuth scopes configured for the Data Integration. `null` when the provider's configured scopes are used. */
3274
+ scopes: string[] | null;
3275
+ /** The OAuth redirect URI to register with the provider when configuring the custom application. */
3276
+ redirectUri: string;
3277
+ /** The credentials configured for the Data Integration. */
3278
+ credentials: DataIntegrationCredential;
3279
+ /** The OAuth definition when this is a custom provider; `null` for built-in providers. */
3280
+ customProvider: DataIntegrationCustomProvider | null;
3281
+ /** An ISO 8601 timestamp. */
3282
+ createdAt: Date;
3283
+ /** An ISO 8601 timestamp. */
3284
+ updatedAt: Date;
2986
3285
  }
2987
- interface EventResponseBase {
3286
+ interface DataIntegrationResponse {
3287
+ object: 'data_integration';
2988
3288
  id: string;
3289
+ slug: string;
3290
+ integration_type: string;
3291
+ description: string | null;
3292
+ enabled: boolean;
3293
+ state: DataIntegrationState;
3294
+ scopes: string[] | null;
3295
+ redirect_uri: string;
3296
+ credentials: DataIntegrationCredentialResponse;
3297
+ custom_provider: DataIntegrationCustomProviderResponse | null;
2989
3298
  created_at: string;
2990
- context?: Record<string, unknown>;
2991
- }
2992
- interface AuthenticationEmailVerificationSucceededEvent extends EventBase {
2993
- event: 'authentication.email_verification_succeeded';
2994
- data: AuthenticationEvent;
3299
+ updated_at: string;
2995
3300
  }
2996
- interface AuthenticationEmailVerificationSucceededEventResponse extends EventResponseBase {
2997
- event: 'authentication.email_verification_succeeded';
2998
- data: AuthenticationEventResponse;
3301
+ //#endregion
3302
+ //#region src/pipes/interfaces/data-integrations-list-response-data-auth-methods.interface.d.ts
3303
+ declare const DataIntegrationsListResponseDataAuthMethods: {
3304
+ readonly OAuth: "oauth";
3305
+ readonly ApiKey: "api_key";
3306
+ };
3307
+ type DataIntegrationsListResponseDataAuthMethods = (typeof DataIntegrationsListResponseDataAuthMethods)[keyof typeof DataIntegrationsListResponseDataAuthMethods];
3308
+ //#endregion
3309
+ //#region src/pipes/interfaces/data-integrations-list-response-data-connected-account-auth-method.interface.d.ts
3310
+ declare const DataIntegrationsListResponseDataConnectedAccountAuthMethod: {
3311
+ readonly OAuth: "oauth";
3312
+ readonly ApiKey: "api_key";
3313
+ };
3314
+ type DataIntegrationsListResponseDataConnectedAccountAuthMethod = (typeof DataIntegrationsListResponseDataConnectedAccountAuthMethod)[keyof typeof DataIntegrationsListResponseDataConnectedAccountAuthMethod];
3315
+ //#endregion
3316
+ //#region src/pipes/interfaces/data-integrations-list-response-data-connected-account-state.interface.d.ts
3317
+ declare const DataIntegrationsListResponseDataConnectedAccountState: {
3318
+ readonly Connected: "connected";
3319
+ readonly NeedsReauthorization: "needs_reauthorization";
3320
+ readonly Disconnected: "disconnected";
3321
+ };
3322
+ type DataIntegrationsListResponseDataConnectedAccountState = (typeof DataIntegrationsListResponseDataConnectedAccountState)[keyof typeof DataIntegrationsListResponseDataConnectedAccountState];
3323
+ //#endregion
3324
+ //#region src/pipes/interfaces/data-integrations-list-response-data-connected-account.interface.d.ts
3325
+ interface DataIntegrationsListResponseDataConnectedAccount {
3326
+ /** Distinguishes the connected account object. */
3327
+ object: 'connected_account';
3328
+ /** The unique identifier of the connected account. */
3329
+ id: string;
3330
+ /** The [User](https://workos.com/docs/reference/authkit/user) identifier associated with this connection. */
3331
+ userId: string | null;
3332
+ /** The [Organization](https://workos.com/docs/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization. */
3333
+ organizationId: string | null;
3334
+ /** The OAuth scopes granted for this connection. */
3335
+ scopes: string[];
3336
+ /** The authentication method used for this connection (`oauth` or `api_key`). Defaults to `oauth` if absent. */
3337
+ authMethod?: DataIntegrationsListResponseDataConnectedAccountAuthMethod;
3338
+ /** The last four characters of the API key, or `null` for OAuth connections. */
3339
+ apiKeyLast4?: string | null;
3340
+ /**
3341
+ * The state of the connected account:
3342
+ * - `connected`: The connection is active and tokens are valid.
3343
+ * - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed.
3344
+ * - `disconnected`: The connection has been disconnected.
3345
+ */
3346
+ state: DataIntegrationsListResponseDataConnectedAccountState;
3347
+ /** The timestamp when the connection was created. */
3348
+ createdAt: string;
3349
+ /** The timestamp when the connection was last updated. */
3350
+ updatedAt: string;
3351
+ /**
3352
+ * Use `user_id` instead.
3353
+ * @deprecated
3354
+ */
3355
+ userlandUserId: string | null;
2999
3356
  }
3000
- interface AuthenticationMagicAuthFailedEvent extends EventBase {
3001
- event: 'authentication.magic_auth_failed';
3002
- data: AuthenticationEvent;
3357
+ interface DataIntegrationsListResponseDataConnectedAccountResponse {
3358
+ object: 'connected_account';
3359
+ id: string;
3360
+ user_id: string | null;
3361
+ organization_id: string | null;
3362
+ scopes: string[];
3363
+ auth_method?: DataIntegrationsListResponseDataConnectedAccountAuthMethod;
3364
+ api_key_last_4?: string | null;
3365
+ state: DataIntegrationsListResponseDataConnectedAccountState;
3366
+ created_at: string;
3367
+ updated_at: string;
3368
+ userland_user_id: string | null;
3003
3369
  }
3004
- interface AuthenticationMagicAuthFailedEventResponse extends EventResponseBase {
3005
- event: 'authentication.magic_auth_failed';
3006
- data: AuthenticationEventResponse;
3370
+ //#endregion
3371
+ //#region src/pipes/interfaces/data-integrations-list-response-data-ownership.interface.d.ts
3372
+ declare const DataIntegrationsListResponseDataOwnership: {
3373
+ readonly UserlandUser: "userland_user";
3374
+ readonly Organization: "organization";
3375
+ };
3376
+ type DataIntegrationsListResponseDataOwnership = (typeof DataIntegrationsListResponseDataOwnership)[keyof typeof DataIntegrationsListResponseDataOwnership];
3377
+ //#endregion
3378
+ //#region src/pipes/interfaces/data-integrations-list-response-data.interface.d.ts
3379
+ interface DataIntegrationsListResponseData {
3380
+ /** Distinguishes the data provider object. */
3381
+ object: 'data_provider';
3382
+ /** The unique identifier of the provider. */
3383
+ id: string;
3384
+ /** The display name of the provider (e.g., "GitHub", "Slack"). */
3385
+ name: string;
3386
+ /** A description of the provider explaining how it will be used, if configured. */
3387
+ description: string | null;
3388
+ /** The slug identifier used in API calls (e.g., `github`, `slack`, `notion`). */
3389
+ slug: string;
3390
+ /** The type of integration (e.g., `github`, `slack`). */
3391
+ integrationType: string;
3392
+ /** The type of credentials used by the provider (e.g., `oauth2`). */
3393
+ credentialsType: string;
3394
+ /** The OAuth scopes configured for this provider, or `null` if none are configured. */
3395
+ scopes: string[] | null;
3396
+ /** The authentication methods supported by this provider (`oauth`, `api_key`, or both). Defaults to `["oauth"]` if absent. */
3397
+ authMethods?: DataIntegrationsListResponseDataAuthMethods[];
3398
+ /** Whether the provider is owned by a user or organization. */
3399
+ ownership: DataIntegrationsListResponseDataOwnership;
3400
+ /** The timestamp when the provider was created. */
3401
+ createdAt: string;
3402
+ /** The timestamp when the provider was last updated. */
3403
+ updatedAt: string;
3404
+ /** The user's [connected account](https://workos.com/docs/reference/pipes/connected-account) for this provider, or `null` if the user has not connected. */
3405
+ connectedAccount: DataIntegrationsListResponseDataConnectedAccount | null;
3007
3406
  }
3008
- interface AuthenticationMagicAuthSucceededEvent extends EventBase {
3009
- event: 'authentication.magic_auth_succeeded';
3010
- data: AuthenticationEvent;
3407
+ interface DataIntegrationsListResponseDataResponse {
3408
+ object: 'data_provider';
3409
+ id: string;
3410
+ name: string;
3411
+ description: string | null;
3412
+ slug: string;
3413
+ integration_type: string;
3414
+ credentials_type: string;
3415
+ scopes: string[] | null;
3416
+ auth_methods?: DataIntegrationsListResponseDataAuthMethods[];
3417
+ ownership: DataIntegrationsListResponseDataOwnership;
3418
+ created_at: string;
3419
+ updated_at: string;
3420
+ connected_account: DataIntegrationsListResponseDataConnectedAccountResponse | null;
3011
3421
  }
3012
- interface AuthenticationMagicAuthSucceededEventResponse extends EventResponseBase {
3013
- event: 'authentication.magic_auth_succeeded';
3014
- data: AuthenticationEventResponse;
3422
+ //#endregion
3423
+ //#region src/pipes/interfaces/data-integrations-list-response.interface.d.ts
3424
+ interface DataIntegrationsListResponse {
3425
+ /** Indicates this is a list response. */
3426
+ object: 'list';
3427
+ /** A list of [providers](https://workos.com/docs/reference/pipes/provider), each including a [`connected_account`](https://workos.com/docs/reference/pipes/connected-account) field with the user's connection status. */
3428
+ data: DataIntegrationsListResponseData[];
3015
3429
  }
3016
- interface AuthenticationMfaSucceededEvent extends EventBase {
3017
- event: 'authentication.mfa_succeeded';
3018
- data: AuthenticationEvent;
3430
+ interface DataIntegrationsListResponseWire {
3431
+ object: 'list';
3432
+ data: DataIntegrationsListResponseDataResponse[];
3019
3433
  }
3020
- interface AuthenticationMfaSucceededEventResponse extends EventResponseBase {
3021
- event: 'authentication.mfa_succeeded';
3022
- data: AuthenticationEventResponse;
3434
+ //#endregion
3435
+ //#region src/pipes/interfaces/delete-data-integration-options.interface.d.ts
3436
+ interface DeleteDataIntegrationOptions {
3437
+ /** The slug identifier of the data integration. */
3438
+ slug: string;
3023
3439
  }
3024
- interface AuthenticationOAuthFailedEvent extends EventBase {
3025
- event: 'authentication.oauth_failed';
3026
- data: AuthenticationEvent;
3440
+ //#endregion
3441
+ //#region src/pipes/interfaces/delete-user-connected-account-options.interface.d.ts
3442
+ interface DeleteUserConnectedAccountOptions {
3443
+ /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
3444
+ userId: string;
3445
+ /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
3446
+ slug: string;
3447
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. */
3448
+ organizationId?: string;
3027
3449
  }
3028
- interface AuthenticationOAuthFailedEventResponse extends EventResponseBase {
3029
- event: 'authentication.oauth_failed';
3030
- data: AuthenticationEventResponse;
3450
+ //#endregion
3451
+ //#region src/pipes/interfaces/get-access-token-options.interface.d.ts
3452
+ interface GetAccessTokenOptions {
3453
+ /** The identifier of the integration. */
3454
+ provider: string;
3455
+ /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
3456
+ userId: string;
3457
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. */
3458
+ organizationId?: string | null;
3031
3459
  }
3032
- interface AuthenticationOAuthSucceededEvent extends EventBase {
3033
- event: 'authentication.oauth_succeeded';
3034
- data: AuthenticationEvent;
3460
+ //#endregion
3461
+ //#region src/pipes/interfaces/get-data-integration-options.interface.d.ts
3462
+ interface GetDataIntegrationOptions {
3463
+ /** The slug identifier of the data integration. */
3464
+ slug: string;
3035
3465
  }
3036
- interface AuthenticationOAuthSucceededEventResponse extends EventResponseBase {
3037
- event: 'authentication.oauth_succeeded';
3038
- data: AuthenticationEventResponse;
3466
+ //#endregion
3467
+ //#region src/pipes/interfaces/get-user-connected-account-options.interface.d.ts
3468
+ interface GetUserConnectedAccountOptions {
3469
+ /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
3470
+ userId: string;
3471
+ /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
3472
+ slug: string;
3473
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. */
3474
+ organizationId?: string;
3039
3475
  }
3040
- interface AuthenticationPasskeyFailedEvent extends EventBase {
3041
- event: 'authentication.passkey_failed';
3042
- data: AuthenticationEvent;
3476
+ //#endregion
3477
+ //#region src/pipes/interfaces/list-user-data-providers-options.interface.d.ts
3478
+ interface ListUserDataProvidersOptions {
3479
+ /** A [User](https://workos.com/docs/reference/authkit/user) identifier to list providers and connected accounts for. */
3480
+ userId: string;
3481
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to filter connections for a specific organization. */
3482
+ organizationId?: string;
3043
3483
  }
3044
- interface AuthenticationPasskeyFailedEventResponse extends EventResponseBase {
3045
- event: 'authentication.passkey_failed';
3046
- data: AuthenticationEventResponse;
3484
+ //#endregion
3485
+ //#region src/pipes/interfaces/update-custom-provider-definition-authenticate-via.interface.d.ts
3486
+ declare const UpdateCustomProviderDefinitionAuthenticateVia: {
3487
+ readonly RequestBody: "request_body";
3488
+ readonly BasicAuthHeader: "basic_auth_header";
3489
+ };
3490
+ type UpdateCustomProviderDefinitionAuthenticateVia = (typeof UpdateCustomProviderDefinitionAuthenticateVia)[keyof typeof UpdateCustomProviderDefinitionAuthenticateVia];
3491
+ //#endregion
3492
+ //#region src/pipes/interfaces/update-custom-provider-definition.interface.d.ts
3493
+ interface UpdateCustomProviderDefinition {
3494
+ /** A descriptive name for the custom provider. */
3495
+ name?: string;
3496
+ /** The provider's OAuth authorization endpoint. */
3497
+ authorizationUrl?: string;
3498
+ /** The provider's OAuth token endpoint. */
3499
+ tokenUrl?: string;
3500
+ /** The endpoint used to refresh tokens, if different from the token endpoint. */
3501
+ refreshTokenUrl?: string | null;
3502
+ /** Whether PKCE is used during the authorization code flow. */
3503
+ pkceEnabled?: boolean;
3504
+ /** The separator used to join requested scopes. */
3505
+ requestScopeSeparator?: string;
3506
+ /** Whether at least one scope must be selected when connecting an account. */
3507
+ scopesRequired?: boolean;
3508
+ /** Whether a client secret is required for this provider. */
3509
+ clientSecretRequired?: boolean;
3510
+ /** Additional static query parameters appended to the authorization request. */
3511
+ additionalAuthorizationParameters?: Record<string, string>;
3512
+ /** The Content-Type used when exchanging the token request. */
3513
+ tokenBodyContentType?: string;
3514
+ /** How client credentials are sent when exchanging authorization codes and refreshing tokens. */
3515
+ authenticateVia?: UpdateCustomProviderDefinitionAuthenticateVia;
3047
3516
  }
3048
- interface AuthenticationPasskeySucceededEvent extends EventBase {
3049
- event: 'authentication.passkey_succeeded';
3050
- data: AuthenticationEvent;
3517
+ interface UpdateCustomProviderDefinitionResponse {
3518
+ name?: string;
3519
+ authorization_url?: string;
3520
+ token_url?: string;
3521
+ refresh_token_url?: string | null;
3522
+ pkce_enabled?: boolean;
3523
+ request_scope_separator?: string;
3524
+ scopes_required?: boolean;
3525
+ client_secret_required?: boolean;
3526
+ additional_authorization_parameters?: Record<string, string>;
3527
+ token_body_content_type?: string;
3528
+ authenticate_via?: UpdateCustomProviderDefinitionAuthenticateVia;
3051
3529
  }
3052
- interface AuthenticationPasskeySucceededEventResponse extends EventResponseBase {
3053
- event: 'authentication.passkey_succeeded';
3054
- data: AuthenticationEventResponse;
3530
+ //#endregion
3531
+ //#region src/pipes/interfaces/update-data-integration-api-key-options.interface.d.ts
3532
+ interface UpdateDataIntegrationApiKeyOptions {
3533
+ /** The identifier of the integration. */
3534
+ slug: string;
3535
+ /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
3536
+ userId: string;
3537
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. */
3538
+ organizationId?: string;
3539
+ /** The API key secret to store for this integration. */
3540
+ secret: string;
3055
3541
  }
3056
- interface AuthenticationPasswordFailedEvent extends EventBase {
3057
- event: 'authentication.password_failed';
3058
- data: AuthenticationEvent;
3542
+ //#endregion
3543
+ //#region src/pipes/interfaces/update-data-integration-options.interface.d.ts
3544
+ interface UpdateDataIntegrationOptions {
3545
+ /** The slug identifier of the data integration. */
3546
+ slug: string;
3547
+ /** An optional description of the Data Integration. */
3548
+ description?: string | null;
3549
+ /** Whether the Data Integration is enabled. */
3550
+ enabled?: boolean;
3551
+ /** The OAuth scopes to request for the Data Integration. Pass `null` to reset to the provider's configured scopes. */
3552
+ scopes?: string[] | null;
3553
+ /** New credentials for the Data Integration. When provided, rotates the stored client secret. */
3554
+ credentials?: DataIntegrationCredentialsDto;
3555
+ /** Updates to a custom provider's OAuth definition. Only valid for custom-provider integrations. */
3556
+ customProvider?: UpdateCustomProviderDefinition;
3059
3557
  }
3060
- interface AuthenticationPasswordFailedEventResponse extends EventResponseBase {
3061
- event: 'authentication.password_failed';
3062
- data: AuthenticationEventResponse;
3558
+ //#endregion
3559
+ //#region src/pipes/interfaces/update-user-connected-account-options.interface.d.ts
3560
+ interface UpdateUserConnectedAccountOptions {
3561
+ /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
3562
+ userId: string;
3563
+ /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
3564
+ slug: string;
3565
+ /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. */
3566
+ organizationId?: string;
3567
+ /** The OAuth access token for the connected account. */
3568
+ accessToken?: string;
3569
+ /** The OAuth refresh token for the connected account. */
3570
+ refreshToken?: string;
3571
+ /** The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire. */
3572
+ expiresAt?: Date;
3573
+ /** The OAuth scopes granted for this connection. */
3574
+ scopes?: string[];
3575
+ /** Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided. */
3576
+ state?: ConnectedAccountState;
3063
3577
  }
3064
- interface AuthenticationPasswordSucceededEvent extends EventBase {
3065
- event: 'authentication.password_succeeded';
3066
- data: AuthenticationEvent;
3578
+ //#endregion
3579
+ //#region src/vault/interfaces/key.interface.d.ts
3580
+ interface KeyContext {
3581
+ [key: string]: any;
3582
+ }
3583
+ interface DataKeyPair {
3584
+ context: KeyContext;
3585
+ dataKey: DataKey;
3586
+ encryptedKeys: string;
3587
+ }
3588
+ interface DataKey {
3589
+ key: string;
3590
+ id: string;
3591
+ }
3592
+ //#endregion
3593
+ //#region src/vault/interfaces/vault-event.interface.d.ts
3594
+ type VaultActorSource = 'api' | 'dashboard';
3595
+ interface VaultActor {
3596
+ actorId: string;
3597
+ actorSource: VaultActorSource;
3598
+ actorName: string;
3599
+ }
3600
+ interface VaultActorResponse {
3601
+ actor_id: string;
3602
+ actor_source: VaultActorSource;
3603
+ actor_name: string;
3604
+ }
3605
+ interface VaultDataMutatedEventData extends VaultActor {
3606
+ kvName: string;
3607
+ keyId: string;
3608
+ keyContext: KeyContext;
3609
+ }
3610
+ interface VaultDataMutatedEventResponseData extends VaultActorResponse {
3611
+ kv_name: string;
3612
+ key_id: string;
3613
+ key_context: KeyContext;
3614
+ }
3615
+ type VaultDataCreatedEventData = VaultDataMutatedEventData;
3616
+ type VaultDataUpdatedEventData = VaultDataMutatedEventData;
3617
+ type VaultDataCreatedEventResponseData = VaultDataMutatedEventResponseData;
3618
+ type VaultDataUpdatedEventResponseData = VaultDataMutatedEventResponseData;
3619
+ interface VaultDataReadEventData extends VaultActor {
3620
+ kvName: string;
3621
+ keyId: string;
3622
+ }
3623
+ interface VaultDataReadEventResponseData extends VaultActorResponse {
3624
+ kv_name: string;
3625
+ key_id: string;
3626
+ }
3627
+ interface VaultDataDeletedEventData extends VaultActor {
3628
+ kvName: string;
3629
+ }
3630
+ interface VaultDataDeletedEventResponseData extends VaultActorResponse {
3631
+ kv_name: string;
3632
+ }
3633
+ interface VaultMetadataReadEventData extends VaultActor {
3634
+ kvName: string;
3635
+ }
3636
+ interface VaultMetadataReadEventResponseData extends VaultActorResponse {
3637
+ kv_name: string;
3638
+ }
3639
+ type VaultNamesListedEventData = VaultActor;
3640
+ type VaultNamesListedEventResponseData = VaultActorResponse;
3641
+ interface VaultKekCreatedEventData extends VaultActor {
3642
+ keyName: string;
3643
+ keyId: string;
3644
+ }
3645
+ interface VaultKekCreatedEventResponseData extends VaultActorResponse {
3646
+ key_name: string;
3647
+ key_id: string;
3648
+ }
3649
+ interface VaultDekReadEventData extends VaultActor {
3650
+ keyIds: string[];
3651
+ keyContext: KeyContext;
3652
+ }
3653
+ interface VaultDekReadEventResponseData extends VaultActorResponse {
3654
+ key_ids: string[];
3655
+ key_context: KeyContext;
3656
+ }
3657
+ interface VaultDekDecryptedEventData extends VaultActor {
3658
+ keyId: string;
3659
+ }
3660
+ interface VaultDekDecryptedEventResponseData extends VaultActorResponse {
3661
+ key_id: string;
3662
+ }
3663
+ type VaultByokKeyProvider = 'AWS_KMS' | 'GCP_KMS' | 'AZURE_KEY_VAULT';
3664
+ interface VaultByokKeyVerificationCompletedEventData {
3665
+ organizationId: string;
3666
+ keyProvider: VaultByokKeyProvider;
3667
+ verified: boolean;
3668
+ }
3669
+ interface VaultByokKeyVerificationCompletedEventResponseData {
3670
+ organization_id: string;
3671
+ key_provider: VaultByokKeyProvider;
3672
+ verified: boolean;
3673
+ }
3674
+ //#endregion
3675
+ //#region src/common/interfaces/event.interface.d.ts
3676
+ interface EventBase {
3677
+ id: string;
3678
+ createdAt: string;
3679
+ context: Record<string, unknown> | undefined;
3680
+ }
3681
+ interface EventResponseBase {
3682
+ id: string;
3683
+ created_at: string;
3684
+ context?: Record<string, unknown>;
3685
+ }
3686
+ interface AuthenticationEmailVerificationSucceededEvent extends EventBase {
3687
+ event: 'authentication.email_verification_succeeded';
3688
+ data: AuthenticationEvent;
3689
+ }
3690
+ interface AuthenticationEmailVerificationSucceededEventResponse extends EventResponseBase {
3691
+ event: 'authentication.email_verification_succeeded';
3692
+ data: AuthenticationEventResponse;
3693
+ }
3694
+ interface AuthenticationMagicAuthFailedEvent extends EventBase {
3695
+ event: 'authentication.magic_auth_failed';
3696
+ data: AuthenticationEvent;
3697
+ }
3698
+ interface AuthenticationMagicAuthFailedEventResponse extends EventResponseBase {
3699
+ event: 'authentication.magic_auth_failed';
3700
+ data: AuthenticationEventResponse;
3701
+ }
3702
+ interface AuthenticationMagicAuthSucceededEvent extends EventBase {
3703
+ event: 'authentication.magic_auth_succeeded';
3704
+ data: AuthenticationEvent;
3705
+ }
3706
+ interface AuthenticationMagicAuthSucceededEventResponse extends EventResponseBase {
3707
+ event: 'authentication.magic_auth_succeeded';
3708
+ data: AuthenticationEventResponse;
3709
+ }
3710
+ interface AuthenticationMfaSucceededEvent extends EventBase {
3711
+ event: 'authentication.mfa_succeeded';
3712
+ data: AuthenticationEvent;
3713
+ }
3714
+ interface AuthenticationMfaSucceededEventResponse extends EventResponseBase {
3715
+ event: 'authentication.mfa_succeeded';
3716
+ data: AuthenticationEventResponse;
3717
+ }
3718
+ interface AuthenticationOAuthFailedEvent extends EventBase {
3719
+ event: 'authentication.oauth_failed';
3720
+ data: AuthenticationEvent;
3721
+ }
3722
+ interface AuthenticationOAuthFailedEventResponse extends EventResponseBase {
3723
+ event: 'authentication.oauth_failed';
3724
+ data: AuthenticationEventResponse;
3725
+ }
3726
+ interface AuthenticationOAuthSucceededEvent extends EventBase {
3727
+ event: 'authentication.oauth_succeeded';
3728
+ data: AuthenticationEvent;
3729
+ }
3730
+ interface AuthenticationOAuthSucceededEventResponse extends EventResponseBase {
3731
+ event: 'authentication.oauth_succeeded';
3732
+ data: AuthenticationEventResponse;
3733
+ }
3734
+ interface AuthenticationPasskeyFailedEvent extends EventBase {
3735
+ event: 'authentication.passkey_failed';
3736
+ data: AuthenticationEvent;
3737
+ }
3738
+ interface AuthenticationPasskeyFailedEventResponse extends EventResponseBase {
3739
+ event: 'authentication.passkey_failed';
3740
+ data: AuthenticationEventResponse;
3741
+ }
3742
+ interface AuthenticationPasskeySucceededEvent extends EventBase {
3743
+ event: 'authentication.passkey_succeeded';
3744
+ data: AuthenticationEvent;
3745
+ }
3746
+ interface AuthenticationPasskeySucceededEventResponse extends EventResponseBase {
3747
+ event: 'authentication.passkey_succeeded';
3748
+ data: AuthenticationEventResponse;
3749
+ }
3750
+ interface AuthenticationPasswordFailedEvent extends EventBase {
3751
+ event: 'authentication.password_failed';
3752
+ data: AuthenticationEvent;
3753
+ }
3754
+ interface AuthenticationPasswordFailedEventResponse extends EventResponseBase {
3755
+ event: 'authentication.password_failed';
3756
+ data: AuthenticationEventResponse;
3757
+ }
3758
+ interface AuthenticationPasswordSucceededEvent extends EventBase {
3759
+ event: 'authentication.password_succeeded';
3760
+ data: AuthenticationEvent;
3067
3761
  }
3068
3762
  interface AuthenticationPasswordSucceededEventResponse extends EventResponseBase {
3069
3763
  event: 'authentication.password_succeeded';
@@ -3573,6 +4267,87 @@ interface GroupMemberRemovedEventResponse extends EventResponseBase {
3573
4267
  event: 'group.member_removed';
3574
4268
  data: GroupMemberEventResponseData;
3575
4269
  }
4270
+ type PipesConnectedAccountState = ConnectedAccountState | 'disconnected';
4271
+ interface PipesConnectedAccount {
4272
+ object: 'connected_account';
4273
+ id: string;
4274
+ dataIntegrationId: string;
4275
+ providerSlug: string;
4276
+ userId: string | null;
4277
+ organizationId: string | null;
4278
+ scopes: string[];
4279
+ state: PipesConnectedAccountState;
4280
+ createdAt: string;
4281
+ updatedAt: string;
4282
+ }
4283
+ interface PipesConnectedAccountResponse {
4284
+ object: 'connected_account';
4285
+ id: string;
4286
+ data_integration_id: string;
4287
+ provider_slug: string;
4288
+ user_id: string | null;
4289
+ organization_id: string | null;
4290
+ scopes: string[];
4291
+ state: PipesConnectedAccountState;
4292
+ created_at: string;
4293
+ updated_at: string;
4294
+ }
4295
+ interface PipesConnectionFailed {
4296
+ object: 'connection_failed';
4297
+ dataIntegrationId: string;
4298
+ providerSlug: string;
4299
+ userId: string | null;
4300
+ organizationId: string | null;
4301
+ errorCode: string;
4302
+ errorReason: string | null;
4303
+ providerError: string | null;
4304
+ providerErrorDescription: string | null;
4305
+ createdAt: string;
4306
+ }
4307
+ interface PipesConnectionFailedResponse {
4308
+ object: 'connection_failed';
4309
+ data_integration_id: string;
4310
+ provider_slug: string;
4311
+ user_id: string | null;
4312
+ organization_id: string | null;
4313
+ error_code: string;
4314
+ error_reason: string | null;
4315
+ provider_error: string | null;
4316
+ provider_error_description: string | null;
4317
+ created_at: string;
4318
+ }
4319
+ interface PipesConnectedAccountConnectedEvent extends EventBase {
4320
+ event: 'pipes.connected_account.connected';
4321
+ data: PipesConnectedAccount;
4322
+ }
4323
+ interface PipesConnectedAccountConnectedEventResponse extends EventResponseBase {
4324
+ event: 'pipes.connected_account.connected';
4325
+ data: PipesConnectedAccountResponse;
4326
+ }
4327
+ interface PipesConnectedAccountConnectionFailedEvent extends EventBase {
4328
+ event: 'pipes.connected_account.connection_failed';
4329
+ data: PipesConnectionFailed;
4330
+ }
4331
+ interface PipesConnectedAccountConnectionFailedEventResponse extends EventResponseBase {
4332
+ event: 'pipes.connected_account.connection_failed';
4333
+ data: PipesConnectionFailedResponse;
4334
+ }
4335
+ interface PipesConnectedAccountDisconnectedEvent extends EventBase {
4336
+ event: 'pipes.connected_account.disconnected';
4337
+ data: PipesConnectedAccount;
4338
+ }
4339
+ interface PipesConnectedAccountDisconnectedEventResponse extends EventResponseBase {
4340
+ event: 'pipes.connected_account.disconnected';
4341
+ data: PipesConnectedAccountResponse;
4342
+ }
4343
+ interface PipesConnectedAccountReauthorizationNeededEvent extends EventBase {
4344
+ event: 'pipes.connected_account.reauthorization_needed';
4345
+ data: PipesConnectedAccount;
4346
+ }
4347
+ interface PipesConnectedAccountReauthorizationNeededEventResponse extends EventResponseBase {
4348
+ event: 'pipes.connected_account.reauthorization_needed';
4349
+ data: PipesConnectedAccountResponse;
4350
+ }
3576
4351
  interface VaultDataCreatedEvent extends EventBase {
3577
4352
  event: 'vault.data.created';
3578
4353
  data: VaultDataCreatedEventData;
@@ -3657,8 +4432,8 @@ interface UnknownEvent extends EventBase {
3657
4432
  event: string;
3658
4433
  data: Record<string, unknown>;
3659
4434
  }
3660
- type Event = AuthenticationEmailVerificationSucceededEvent | AuthenticationMfaSucceededEvent | AuthenticationOAuthFailedEvent | AuthenticationOAuthSucceededEvent | AuthenticationSSOFailedEvent | AuthenticationSSOSucceededEvent | AuthenticationPasskeyFailedEvent | AuthenticationPasskeySucceededEvent | AuthenticationPasswordFailedEvent | AuthenticationPasswordSucceededEvent | AuthenticationMagicAuthFailedEvent | AuthenticationMagicAuthSucceededEvent | AuthenticationRadarRiskDetectedEvent | ConnectionActivatedEvent | ConnectionDeactivatedEvent | ConnectionDeletedEvent | DsyncActivatedEvent | DsyncDeletedEvent | DsyncGroupCreatedEvent | DsyncGroupUpdatedEvent | DsyncGroupDeletedEvent | DsyncGroupUserAddedEvent | DsyncGroupUserRemovedEvent | DsyncUserCreatedEvent | DsyncUserUpdatedEvent | DsyncUserDeletedEvent | EmailVerificationCreatedEvent | InvitationAcceptedEvent | InvitationCreatedEvent | InvitationRevokedEvent | InvitationResentEvent | MagicAuthCreatedEvent | PasswordResetCreatedEvent | PasswordResetSucceededEvent | UserCreatedEvent | UserUpdatedEvent | UserDeletedEvent | OrganizationMembershipCreated | OrganizationMembershipDeleted | OrganizationMembershipUpdated | RoleCreatedEvent | RoleDeletedEvent | RoleUpdatedEvent | OrganizationRoleCreatedEvent | OrganizationRoleUpdatedEvent | OrganizationRoleDeletedEvent | PermissionCreatedEvent | PermissionUpdatedEvent | PermissionDeletedEvent | SessionCreatedEvent | SessionRevokedEvent | OrganizationCreatedEvent | OrganizationUpdatedEvent | OrganizationDeletedEvent | OrganizationDomainVerifiedEvent | OrganizationDomainVerificationFailedEvent | OrganizationDomainCreatedEvent | OrganizationDomainUpdatedEvent | OrganizationDomainDeletedEvent | ApiKeyCreatedEvent | ApiKeyRevokedEvent | FlagCreatedEvent | FlagUpdatedEvent | FlagDeletedEvent | FlagRuleUpdatedEvent | GroupCreatedEvent | GroupUpdatedEvent | GroupDeletedEvent | GroupMemberAddedEvent | GroupMemberRemovedEvent | VaultDataCreatedEvent | VaultDataUpdatedEvent | VaultDataReadEvent | VaultDataDeletedEvent | VaultNamesListedEvent | VaultMetadataReadEvent | VaultKekCreatedEvent | VaultDekReadEvent | VaultDekDecryptedEvent | VaultByokKeyVerificationCompletedEvent;
3661
- type EventResponse = AuthenticationEmailVerificationSucceededEventResponse | AuthenticationMagicAuthFailedEventResponse | AuthenticationMagicAuthSucceededEventResponse | AuthenticationMfaSucceededEventResponse | AuthenticationOAuthFailedEventResponse | AuthenticationOAuthSucceededEventResponse | AuthenticationPasskeyFailedEventResponse | AuthenticationPasskeySucceededEventResponse | AuthenticationPasswordFailedEventResponse | AuthenticationPasswordSucceededEventResponse | AuthenticationSSOFailedEventResponse | AuthenticationSSOSucceededEventResponse | AuthenticationRadarRiskDetectedEventResponse | ConnectionActivatedEventResponse | ConnectionDeactivatedEventResponse | ConnectionDeletedEventResponse | DsyncActivatedEventResponse | DsyncDeletedEventResponse | DsyncGroupCreatedEventResponse | DsyncGroupUpdatedEventResponse | DsyncGroupDeletedEventResponse | DsyncGroupUserAddedEventResponse | DsyncGroupUserRemovedEventResponse | DsyncUserCreatedEventResponse | DsyncUserUpdatedEventResponse | DsyncUserDeletedEventResponse | EmailVerificationCreatedEventResponse | InvitationAcceptedEventResponse | InvitationCreatedEventResponse | InvitationRevokedEventResponse | InvitationResentEventResponse | MagicAuthCreatedEventResponse | PasswordResetCreatedEventResponse | PasswordResetSucceededEventResponse | UserCreatedEventResponse | UserUpdatedEventResponse | UserDeletedEventResponse | OrganizationMembershipCreatedResponse | OrganizationMembershipDeletedResponse | OrganizationMembershipUpdatedResponse | RoleCreatedEventResponse | RoleDeletedEventResponse | RoleUpdatedEventResponse | OrganizationRoleCreatedEventResponse | OrganizationRoleUpdatedEventResponse | OrganizationRoleDeletedEventResponse | PermissionCreatedEventResponse | PermissionUpdatedEventResponse | PermissionDeletedEventResponse | SessionCreatedEventResponse | SessionRevokedEventResponse | OrganizationCreatedResponse | OrganizationUpdatedResponse | OrganizationDeletedResponse | OrganizationDomainVerifiedEventResponse | OrganizationDomainVerificationFailedEventResponse | OrganizationDomainCreatedEventResponse | OrganizationDomainUpdatedEventResponse | OrganizationDomainDeletedEventResponse | ApiKeyCreatedEventResponse | ApiKeyRevokedEventResponse | FlagCreatedEventResponse | FlagUpdatedEventResponse | FlagDeletedEventResponse | FlagRuleUpdatedEventResponse | GroupCreatedEventResponse | GroupUpdatedEventResponse | GroupDeletedEventResponse | GroupMemberAddedEventResponse | GroupMemberRemovedEventResponse | VaultDataCreatedEventResponse | VaultDataUpdatedEventResponse | VaultDataReadEventResponse | VaultDataDeletedEventResponse | VaultNamesListedEventResponse | VaultMetadataReadEventResponse | VaultKekCreatedEventResponse | VaultDekReadEventResponse | VaultDekDecryptedEventResponse | VaultByokKeyVerificationCompletedEventResponse;
4435
+ type Event = AuthenticationEmailVerificationSucceededEvent | AuthenticationMfaSucceededEvent | AuthenticationOAuthFailedEvent | AuthenticationOAuthSucceededEvent | AuthenticationSSOFailedEvent | AuthenticationSSOSucceededEvent | AuthenticationPasskeyFailedEvent | AuthenticationPasskeySucceededEvent | AuthenticationPasswordFailedEvent | AuthenticationPasswordSucceededEvent | AuthenticationMagicAuthFailedEvent | AuthenticationMagicAuthSucceededEvent | AuthenticationRadarRiskDetectedEvent | ConnectionActivatedEvent | ConnectionDeactivatedEvent | ConnectionDeletedEvent | DsyncActivatedEvent | DsyncDeletedEvent | DsyncGroupCreatedEvent | DsyncGroupUpdatedEvent | DsyncGroupDeletedEvent | DsyncGroupUserAddedEvent | DsyncGroupUserRemovedEvent | DsyncUserCreatedEvent | DsyncUserUpdatedEvent | DsyncUserDeletedEvent | EmailVerificationCreatedEvent | InvitationAcceptedEvent | InvitationCreatedEvent | InvitationRevokedEvent | InvitationResentEvent | MagicAuthCreatedEvent | PasswordResetCreatedEvent | PasswordResetSucceededEvent | UserCreatedEvent | UserUpdatedEvent | UserDeletedEvent | OrganizationMembershipCreated | OrganizationMembershipDeleted | OrganizationMembershipUpdated | RoleCreatedEvent | RoleDeletedEvent | RoleUpdatedEvent | OrganizationRoleCreatedEvent | OrganizationRoleUpdatedEvent | OrganizationRoleDeletedEvent | PermissionCreatedEvent | PermissionUpdatedEvent | PermissionDeletedEvent | SessionCreatedEvent | SessionRevokedEvent | OrganizationCreatedEvent | OrganizationUpdatedEvent | OrganizationDeletedEvent | OrganizationDomainVerifiedEvent | OrganizationDomainVerificationFailedEvent | OrganizationDomainCreatedEvent | OrganizationDomainUpdatedEvent | OrganizationDomainDeletedEvent | ApiKeyCreatedEvent | ApiKeyRevokedEvent | FlagCreatedEvent | FlagUpdatedEvent | FlagDeletedEvent | FlagRuleUpdatedEvent | GroupCreatedEvent | GroupUpdatedEvent | GroupDeletedEvent | GroupMemberAddedEvent | GroupMemberRemovedEvent | PipesConnectedAccountConnectedEvent | PipesConnectedAccountConnectionFailedEvent | PipesConnectedAccountDisconnectedEvent | PipesConnectedAccountReauthorizationNeededEvent | VaultDataCreatedEvent | VaultDataUpdatedEvent | VaultDataReadEvent | VaultDataDeletedEvent | VaultNamesListedEvent | VaultMetadataReadEvent | VaultKekCreatedEvent | VaultDekReadEvent | VaultDekDecryptedEvent | VaultByokKeyVerificationCompletedEvent;
4436
+ type EventResponse = AuthenticationEmailVerificationSucceededEventResponse | AuthenticationMagicAuthFailedEventResponse | AuthenticationMagicAuthSucceededEventResponse | AuthenticationMfaSucceededEventResponse | AuthenticationOAuthFailedEventResponse | AuthenticationOAuthSucceededEventResponse | AuthenticationPasskeyFailedEventResponse | AuthenticationPasskeySucceededEventResponse | AuthenticationPasswordFailedEventResponse | AuthenticationPasswordSucceededEventResponse | AuthenticationSSOFailedEventResponse | AuthenticationSSOSucceededEventResponse | AuthenticationRadarRiskDetectedEventResponse | ConnectionActivatedEventResponse | ConnectionDeactivatedEventResponse | ConnectionDeletedEventResponse | DsyncActivatedEventResponse | DsyncDeletedEventResponse | DsyncGroupCreatedEventResponse | DsyncGroupUpdatedEventResponse | DsyncGroupDeletedEventResponse | DsyncGroupUserAddedEventResponse | DsyncGroupUserRemovedEventResponse | DsyncUserCreatedEventResponse | DsyncUserUpdatedEventResponse | DsyncUserDeletedEventResponse | EmailVerificationCreatedEventResponse | InvitationAcceptedEventResponse | InvitationCreatedEventResponse | InvitationRevokedEventResponse | InvitationResentEventResponse | MagicAuthCreatedEventResponse | PasswordResetCreatedEventResponse | PasswordResetSucceededEventResponse | UserCreatedEventResponse | UserUpdatedEventResponse | UserDeletedEventResponse | OrganizationMembershipCreatedResponse | OrganizationMembershipDeletedResponse | OrganizationMembershipUpdatedResponse | RoleCreatedEventResponse | RoleDeletedEventResponse | RoleUpdatedEventResponse | OrganizationRoleCreatedEventResponse | OrganizationRoleUpdatedEventResponse | OrganizationRoleDeletedEventResponse | PermissionCreatedEventResponse | PermissionUpdatedEventResponse | PermissionDeletedEventResponse | SessionCreatedEventResponse | SessionRevokedEventResponse | OrganizationCreatedResponse | OrganizationUpdatedResponse | OrganizationDeletedResponse | OrganizationDomainVerifiedEventResponse | OrganizationDomainVerificationFailedEventResponse | OrganizationDomainCreatedEventResponse | OrganizationDomainUpdatedEventResponse | OrganizationDomainDeletedEventResponse | ApiKeyCreatedEventResponse | ApiKeyRevokedEventResponse | FlagCreatedEventResponse | FlagUpdatedEventResponse | FlagDeletedEventResponse | FlagRuleUpdatedEventResponse | GroupCreatedEventResponse | GroupUpdatedEventResponse | GroupDeletedEventResponse | GroupMemberAddedEventResponse | GroupMemberRemovedEventResponse | PipesConnectedAccountConnectedEventResponse | PipesConnectedAccountConnectionFailedEventResponse | PipesConnectedAccountDisconnectedEventResponse | PipesConnectedAccountReauthorizationNeededEventResponse | VaultDataCreatedEventResponse | VaultDataUpdatedEventResponse | VaultDataReadEventResponse | VaultDataDeletedEventResponse | VaultNamesListedEventResponse | VaultMetadataReadEventResponse | VaultKekCreatedEventResponse | VaultDekReadEventResponse | VaultDekDecryptedEventResponse | VaultByokKeyVerificationCompletedEventResponse;
3662
4437
  type EventName = Event['event'];
3663
4438
  //#endregion
3664
4439
  //#region src/common/interfaces/generate-link-intent.interface.d.ts
@@ -3806,6 +4581,73 @@ interface SerializedCreateOrganizationOptions {
3806
4581
  }
3807
4582
  type CreateOrganizationRequestOptions = Pick<PostOptions, 'idempotencyKey'>;
3808
4583
  //#endregion
4584
+ //#region src/organizations/interfaces/it-contact-options.interface.d.ts
4585
+ declare const ItContactIntent: {
4586
+ readonly SSO: "sso";
4587
+ readonly DirectorySync: "directory_sync";
4588
+ readonly LogStreams: "log_streams";
4589
+ readonly DomainVerification: "domain_verification";
4590
+ readonly BringYourOwnKey: "bring_your_own_key";
4591
+ };
4592
+ type ItContactIntent = (typeof ItContactIntent)[keyof typeof ItContactIntent];
4593
+ interface ListItContactsOptions {
4594
+ /** Unique identifier of the Organization. */
4595
+ organizationId: string;
4596
+ }
4597
+ interface CreateItContactOptions {
4598
+ /** Unique identifier of the Organization. */
4599
+ organizationId: string;
4600
+ /** The email address of the IT Contact. */
4601
+ email: string;
4602
+ }
4603
+ interface SerializedCreateItContactOptions {
4604
+ email: string;
4605
+ }
4606
+ interface DeleteItContactOptions {
4607
+ /** Unique identifier of the Organization. */
4608
+ organizationId: string;
4609
+ /** Unique identifier of the IT Contact. */
4610
+ contactId: string;
4611
+ }
4612
+ interface InviteItContactOptions {
4613
+ /** Unique identifier of the Organization. */
4614
+ organizationId: string;
4615
+ /** Unique identifier of the IT Contact. */
4616
+ contactId: string;
4617
+ /** The Admin Portal features that the IT Contact can configure. */
4618
+ intents: ItContactIntent[];
4619
+ }
4620
+ interface SerializedInviteItContactOptions {
4621
+ intents: ItContactIntent[];
4622
+ }
4623
+ interface RevokeItContactOptions {
4624
+ /** Unique identifier of the Organization. */
4625
+ organizationId: string;
4626
+ /** Unique identifier of the IT Contact. */
4627
+ contactId: string;
4628
+ }
4629
+ //#endregion
4630
+ //#region src/organizations/interfaces/it-contact.interface.d.ts
4631
+ interface ItContact {
4632
+ /** Distinguishes the IT Contact object. */
4633
+ object: 'it_contact';
4634
+ /** Unique identifier of the IT Contact. */
4635
+ id: string;
4636
+ /** The email address of the IT Contact. */
4637
+ email: string;
4638
+ /** An ISO 8601 timestamp. */
4639
+ createdAt: string;
4640
+ /** An ISO 8601 timestamp. */
4641
+ updatedAt: string;
4642
+ }
4643
+ interface ItContactResponse {
4644
+ object: 'it_contact';
4645
+ id: string;
4646
+ email: string;
4647
+ created_at: string;
4648
+ updated_at: string;
4649
+ }
4650
+ //#endregion
3809
4651
  //#region src/organizations/interfaces/list-organization-feature-flags-options.interface.d.ts
3810
4652
  interface ListOrganizationFeatureFlagsOptions extends PaginationOptions {
3811
4653
  organizationId: string;
@@ -5115,609 +5957,179 @@ declare class Organizations {
5115
5957
  */
5116
5958
  getOrganizationByExternalId(externalId: string): Promise<Organization>;
5117
5959
  /**
5118
- * Update an Organization
5119
- *
5120
- * Updates an organization in the current environment.
5121
- * @param payload - The request body.
5122
- * @returns {Promise<Organization>}
5123
- * @throws {BadRequestException} 400
5124
- * @throws 403 response from the API.
5125
- * @throws {NotFoundException} 404
5126
- * @throws {ConflictException} 409
5127
- * @throws {UnprocessableEntityException} 422
5128
- */
5129
- updateOrganization(options: UpdateOrganizationOptions): Promise<Organization>;
5130
- }
5131
- //#endregion
5132
- //#region src/organization-domains/organization-domains.d.ts
5133
- declare class OrganizationDomains {
5134
- private readonly workos;
5135
- constructor(workos: WorkOS);
5136
- /**
5137
- * Get an Organization Domain
5138
- *
5139
- * Get the details of an existing organization domain.
5140
- * @param id - Unique identifier of the organization domain.
5141
- *
5142
- * @example
5143
- * "org_domain_01EHZNVPK2QXHMVWCEDQEKY69A"
5144
- *
5145
- * @returns {Promise<OrganizationDomain>}
5146
- * @throws {NotFoundException} 404
5147
- */
5148
- getOrganizationDomain(id: string): Promise<OrganizationDomain>;
5149
- /**
5150
- * Verify an Organization Domain
5151
- *
5152
- * Initiates verification process for an Organization Domain.
5153
- * @param id - Unique identifier of the organization domain.
5154
- *
5155
- * @example
5156
- * "org_domain_01EHZNVPK2QXHMVWCEDQEKY69A"
5157
- *
5158
- * @returns {Promise<OrganizationDomain>}
5159
- * @throws {BadRequestException} 400
5160
- */
5161
- verifyOrganizationDomain(id: string): Promise<OrganizationDomain>;
5162
- /**
5163
- * Create an Organization Domain
5164
- *
5165
- * Creates a new Organization Domain.
5166
- * @param payload - Object containing domain, organizationId.
5167
- * @returns {Promise<OrganizationDomain>}
5168
- * @throws {ConflictException} 409
5169
- */
5170
- createOrganizationDomain(payload: CreateOrganizationDomainOptions): Promise<OrganizationDomain>;
5171
- /**
5172
- * Delete an Organization Domain
5173
- *
5174
- * Permanently deletes an organization domain. It cannot be undone.
5175
- * @param id - Unique identifier of the organization domain.
5176
- *
5177
- * @example
5178
- * "org_domain_01EHZNVPK2QXHMVWCEDQEKY69A"
5179
- *
5180
- * @returns {Promise<void>}
5181
- * @throws {NotFoundException} 404
5182
- */
5183
- deleteOrganizationDomain(id: string): Promise<void>;
5184
- }
5185
- //#endregion
5186
- //#region src/passwordless/interfaces/passwordless-session.interface.d.ts
5187
- interface PasswordlessSession {
5188
- id: string;
5189
- email: string;
5190
- expiresAt: Date;
5191
- link: string;
5192
- object: 'passwordless_session';
5193
- }
5194
- interface PasswordlessSessionResponse {
5195
- id: string;
5196
- email: string;
5197
- expires_at: Date;
5198
- link: string;
5199
- object: 'passwordless_session';
5200
- }
5201
- //#endregion
5202
- //#region src/passwordless/interfaces/create-passwordless-session-options.interface.d.ts
5203
- interface CreatePasswordlessSessionOptions {
5204
- type: 'MagicLink';
5205
- email: string;
5206
- redirectURI?: string;
5207
- state?: string;
5208
- connection?: string;
5209
- expiresIn?: number;
5210
- }
5211
- interface SerializedCreatePasswordlessSessionOptions {
5212
- type: 'MagicLink';
5213
- email: string;
5214
- redirect_uri?: string;
5215
- state?: string;
5216
- connection?: string;
5217
- expires_in?: number;
5218
- }
5219
- //#endregion
5220
- //#region src/passwordless/interfaces/send-session-response.interface.d.ts
5221
- interface SendSessionResponse {
5222
- message?: string;
5223
- success?: boolean;
5224
- }
5225
- //#endregion
5226
- //#region src/passwordless/passwordless.d.ts
5227
- declare class Passwordless {
5228
- private readonly workos;
5229
- constructor(workos: WorkOS);
5230
- createSession({ redirectURI, expiresIn, ...options }: CreatePasswordlessSessionOptions): Promise<PasswordlessSession>;
5231
- sendSession(sessionId: string): Promise<SendSessionResponse>;
5232
- }
5233
- //#endregion
5234
- //#region src/pipes/interfaces/data-integration-credentials-type.interface.d.ts
5235
- declare const DataIntegrationCredentialsType: {
5236
- readonly Custom: "custom";
5237
- readonly Organization: "organization";
5238
- };
5239
- type DataIntegrationCredentialsType = (typeof DataIntegrationCredentialsType)[keyof typeof DataIntegrationCredentialsType];
5240
- //#endregion
5241
- //#region src/pipes/interfaces/data-integration-credentials-dto.interface.d.ts
5242
- interface DataIntegrationCredentialsDto {
5243
- /** The credentials type. `custom` uses your own OAuth app credentials; `organization` has each organization supply its own credentials (configured per-organization). */
5244
- type: DataIntegrationCredentialsType;
5245
- /** OAuth client ID for the provider app. Required when `type` is `custom`; omit for `organization`. */
5246
- clientId?: string;
5247
- /** OAuth client secret for the provider app. Required when `type` is `custom`; omit for `organization`. */
5248
- clientSecret?: string;
5249
- }
5250
- interface DataIntegrationCredentialsDtoResponse {
5251
- type: DataIntegrationCredentialsType;
5252
- client_id?: string;
5253
- client_secret?: string;
5254
- }
5255
- //#endregion
5256
- //#region src/pipes/interfaces/custom-provider-definition-authenticate-via.interface.d.ts
5257
- declare const CustomProviderDefinitionAuthenticateVia: {
5258
- readonly RequestBody: "request_body";
5259
- readonly BasicAuthHeader: "basic_auth_header";
5260
- };
5261
- type CustomProviderDefinitionAuthenticateVia = (typeof CustomProviderDefinitionAuthenticateVia)[keyof typeof CustomProviderDefinitionAuthenticateVia];
5262
- //#endregion
5263
- //#region src/pipes/interfaces/custom-provider-definition.interface.d.ts
5264
- interface CustomProviderDefinition {
5265
- /** A descriptive name for the custom provider. */
5266
- name: string;
5267
- /** The provider's OAuth authorization endpoint. */
5268
- authorizationUrl: string;
5269
- /** The provider's OAuth token endpoint. */
5270
- tokenUrl: string;
5271
- /** The endpoint used to refresh tokens, if different from the token endpoint. */
5272
- refreshTokenUrl?: string | null;
5273
- /** Whether PKCE is used during the authorization code flow. Defaults to `true`. */
5274
- pkceEnabled?: boolean;
5275
- /** The separator used to join requested scopes. Defaults to a space. */
5276
- requestScopeSeparator?: string;
5277
- /** Whether at least one scope must be selected when connecting an account. Defaults to `false`. */
5278
- scopesRequired?: boolean;
5279
- /** Whether a client secret is required for this provider. Defaults to `true`. */
5280
- clientSecretRequired?: boolean;
5281
- /** Additional static query parameters appended to the authorization request. */
5282
- additionalAuthorizationParameters?: Record<string, string>;
5283
- /** The Content-Type used when exchanging the token request. */
5284
- tokenBodyContentType?: string;
5285
- /** How client credentials are sent when exchanging authorization codes and refreshing tokens. */
5286
- authenticateVia?: CustomProviderDefinitionAuthenticateVia;
5287
- }
5288
- interface CustomProviderDefinitionResponse {
5289
- name: string;
5290
- authorization_url: string;
5291
- token_url: string;
5292
- refresh_token_url?: string | null;
5293
- pkce_enabled?: boolean;
5294
- request_scope_separator?: string;
5295
- scopes_required?: boolean;
5296
- client_secret_required?: boolean;
5297
- additional_authorization_parameters?: Record<string, string>;
5298
- token_body_content_type?: string;
5299
- authenticate_via?: CustomProviderDefinitionAuthenticateVia;
5300
- }
5301
- //#endregion
5302
- //#region src/pipes/interfaces/create-data-integration-options.interface.d.ts
5303
- interface CreateDataIntegrationOptions {
5304
- /** 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. */
5305
- provider: string;
5306
- /** An optional description of the Data Integration. */
5307
- description?: string | null;
5308
- /** Whether the Data Integration is enabled. Defaults to `false`. */
5309
- enabled?: boolean;
5310
- /** The OAuth scopes to request for the Data Integration. Defaults to the provider's configured scopes when omitted. */
5311
- scopes?: string[] | null;
5312
- /** The credentials to configure for the Data Integration. Required for both built-in and custom providers. */
5313
- credentials?: DataIntegrationCredentialsDto;
5314
- /** 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. */
5315
- customProvider?: CustomProviderDefinition;
5316
- }
5317
- //#endregion
5318
- //#region src/pipes/interfaces/get-data-integration-options.interface.d.ts
5319
- interface GetDataIntegrationOptions {
5320
- /** The slug identifier of the data integration. */
5321
- slug: string;
5322
- }
5323
- //#endregion
5324
- //#region src/pipes/interfaces/update-custom-provider-definition-authenticate-via.interface.d.ts
5325
- declare const UpdateCustomProviderDefinitionAuthenticateVia: {
5326
- readonly RequestBody: "request_body";
5327
- readonly BasicAuthHeader: "basic_auth_header";
5328
- };
5329
- type UpdateCustomProviderDefinitionAuthenticateVia = (typeof UpdateCustomProviderDefinitionAuthenticateVia)[keyof typeof UpdateCustomProviderDefinitionAuthenticateVia];
5330
- //#endregion
5331
- //#region src/pipes/interfaces/update-custom-provider-definition.interface.d.ts
5332
- interface UpdateCustomProviderDefinition {
5333
- /** A descriptive name for the custom provider. */
5334
- name?: string;
5335
- /** The provider's OAuth authorization endpoint. */
5336
- authorizationUrl?: string;
5337
- /** The provider's OAuth token endpoint. */
5338
- tokenUrl?: string;
5339
- /** The endpoint used to refresh tokens, if different from the token endpoint. */
5340
- refreshTokenUrl?: string | null;
5341
- /** Whether PKCE is used during the authorization code flow. */
5342
- pkceEnabled?: boolean;
5343
- /** The separator used to join requested scopes. */
5344
- requestScopeSeparator?: string;
5345
- /** Whether at least one scope must be selected when connecting an account. */
5346
- scopesRequired?: boolean;
5347
- /** Whether a client secret is required for this provider. */
5348
- clientSecretRequired?: boolean;
5349
- /** Additional static query parameters appended to the authorization request. */
5350
- additionalAuthorizationParameters?: Record<string, string>;
5351
- /** The Content-Type used when exchanging the token request. */
5352
- tokenBodyContentType?: string;
5353
- /** How client credentials are sent when exchanging authorization codes and refreshing tokens. */
5354
- authenticateVia?: UpdateCustomProviderDefinitionAuthenticateVia;
5355
- }
5356
- interface UpdateCustomProviderDefinitionResponse {
5357
- name?: string;
5358
- authorization_url?: string;
5359
- token_url?: string;
5360
- refresh_token_url?: string | null;
5361
- pkce_enabled?: boolean;
5362
- request_scope_separator?: string;
5363
- scopes_required?: boolean;
5364
- client_secret_required?: boolean;
5365
- additional_authorization_parameters?: Record<string, string>;
5366
- token_body_content_type?: string;
5367
- authenticate_via?: UpdateCustomProviderDefinitionAuthenticateVia;
5368
- }
5369
- //#endregion
5370
- //#region src/pipes/interfaces/update-data-integration-options.interface.d.ts
5371
- interface UpdateDataIntegrationOptions {
5372
- /** The slug identifier of the data integration. */
5373
- slug: string;
5374
- /** An optional description of the Data Integration. */
5375
- description?: string | null;
5376
- /** Whether the Data Integration is enabled. */
5377
- enabled?: boolean;
5378
- /** The OAuth scopes to request for the Data Integration. Pass `null` to reset to the provider's configured scopes. */
5379
- scopes?: string[] | null;
5380
- /** New credentials for the Data Integration. When provided, rotates the stored client secret. */
5381
- credentials?: DataIntegrationCredentialsDto;
5382
- /** Updates to a custom provider's OAuth definition. Only valid for custom-provider integrations. */
5383
- customProvider?: UpdateCustomProviderDefinition;
5384
- }
5385
- //#endregion
5386
- //#region src/pipes/interfaces/delete-data-integration-options.interface.d.ts
5387
- interface DeleteDataIntegrationOptions {
5388
- /** The slug identifier of the data integration. */
5389
- slug: string;
5390
- }
5391
- //#endregion
5392
- //#region src/pipes/interfaces/update-data-integration-api-key-options.interface.d.ts
5393
- interface UpdateDataIntegrationApiKeyOptions {
5394
- /** The identifier of the integration. */
5395
- slug: string;
5396
- /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
5397
- userId: string;
5398
- /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. */
5399
- organizationId?: string;
5400
- /** The API key secret to store for this integration. */
5401
- secret: string;
5402
- }
5403
- //#endregion
5404
- //#region src/pipes/interfaces/authorize-data-integration-options.interface.d.ts
5405
- interface AuthorizeDataIntegrationOptions {
5406
- /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
5407
- slug: string;
5408
- /** The ID of the user to authorize. */
5409
- userId: string;
5410
- /** An organization ID to scope the authorization to a specific organization. */
5411
- organizationId?: string;
5412
- /** The URL to redirect the user to after authorization. */
5413
- returnTo?: string;
5414
- }
5415
- //#endregion
5416
- //#region src/pipes/interfaces/create-data-integration-credential-options.interface.d.ts
5417
- interface CreateDataIntegrationCredentialOptions {
5418
- /** The identifier of the integration. */
5419
- slug: string;
5420
- /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
5421
- userId: string;
5422
- /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. */
5423
- organizationId?: string;
5424
- }
5425
- //#endregion
5426
- //#region src/pipes/interfaces/get-access-token-options.interface.d.ts
5427
- interface GetAccessTokenOptions {
5428
- /** The identifier of the integration. */
5429
- provider: string;
5430
- /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
5431
- userId: string;
5432
- /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. */
5433
- organizationId?: string | null;
5434
- }
5435
- //#endregion
5436
- //#region src/pipes/interfaces/get-user-connected-account-options.interface.d.ts
5437
- interface GetUserConnectedAccountOptions {
5438
- /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
5439
- userId: string;
5440
- /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
5441
- slug: string;
5442
- /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. */
5443
- organizationId?: string;
5444
- }
5445
- //#endregion
5446
- //#region src/pipes/interfaces/connected-account-state.interface.d.ts
5447
- declare const ConnectedAccountState: {
5448
- readonly Connected: "connected";
5449
- readonly NeedsReauthorization: "needs_reauthorization";
5450
- };
5451
- type ConnectedAccountState = (typeof ConnectedAccountState)[keyof typeof ConnectedAccountState];
5452
- //#endregion
5453
- //#region src/pipes/interfaces/create-user-connected-account-options.interface.d.ts
5454
- interface CreateUserConnectedAccountOptions {
5455
- /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
5456
- userId: string;
5457
- /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
5458
- slug: string;
5459
- /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. */
5460
- organizationId?: string;
5461
- /** The OAuth access token for the connected account. */
5462
- accessToken?: string;
5463
- /** The OAuth refresh token for the connected account. */
5464
- refreshToken?: string;
5465
- /** The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire. */
5466
- expiresAt?: Date;
5467
- /** The OAuth scopes granted for this connection. */
5468
- scopes?: string[];
5469
- /** Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided. */
5470
- state?: ConnectedAccountState;
5471
- }
5472
- //#endregion
5473
- //#region src/pipes/interfaces/update-user-connected-account-options.interface.d.ts
5474
- interface UpdateUserConnectedAccountOptions {
5475
- /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
5476
- userId: string;
5477
- /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
5478
- slug: string;
5479
- /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. */
5480
- organizationId?: string;
5481
- /** The OAuth access token for the connected account. */
5482
- accessToken?: string;
5483
- /** The OAuth refresh token for the connected account. */
5484
- refreshToken?: string;
5485
- /** The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire. */
5486
- expiresAt?: Date;
5487
- /** The OAuth scopes granted for this connection. */
5488
- scopes?: string[];
5489
- /** Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided. */
5490
- state?: ConnectedAccountState;
5491
- }
5492
- //#endregion
5493
- //#region src/pipes/interfaces/delete-user-connected-account-options.interface.d.ts
5494
- interface DeleteUserConnectedAccountOptions {
5495
- /** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
5496
- userId: string;
5497
- /** The slug identifier of the provider (e.g., `github`, `slack`, `notion`). */
5498
- slug: string;
5499
- /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization. */
5500
- organizationId?: string;
5501
- }
5502
- //#endregion
5503
- //#region src/pipes/interfaces/list-user-data-providers-options.interface.d.ts
5504
- interface ListUserDataProvidersOptions {
5505
- /** A [User](https://workos.com/docs/reference/authkit/user) identifier to list providers and connected accounts for. */
5506
- userId: string;
5507
- /** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to filter connections for a specific organization. */
5508
- organizationId?: string;
5509
- }
5510
- //#endregion
5511
- //#region src/pipes/interfaces/data-integration-credential-type.interface.d.ts
5512
- declare const DataIntegrationCredentialType: {
5513
- readonly Custom: "custom";
5514
- readonly Organization: "organization";
5515
- };
5516
- type DataIntegrationCredentialType = (typeof DataIntegrationCredentialType)[keyof typeof DataIntegrationCredentialType];
5517
- //#endregion
5518
- //#region src/pipes/interfaces/data-integration-credential.interface.d.ts
5519
- /** The credentials configured for the Data Integration. */
5520
- interface DataIntegrationCredential {
5521
- /** The credentials type. `custom` uses your own OAuth app credentials; `organization` has each organization supply its own credentials (so `client_id`/`redacted_client_secret` are null on the integration itself). */
5522
- type: DataIntegrationCredentialType;
5523
- /** The OAuth client ID configured for the provider app. Null for `organization` credentials. */
5524
- clientId: string | null;
5525
- /** The last four characters of the OAuth client secret. The full secret is never returned. Null for `organization` credentials. */
5526
- redactedClientSecret: string | null;
5527
- }
5528
- interface DataIntegrationCredentialResponse {
5529
- type: DataIntegrationCredentialType;
5530
- client_id: string | null;
5531
- redacted_client_secret: string | null;
5532
- }
5533
- //#endregion
5534
- //#region src/pipes/interfaces/data-integration-custom-provider-authenticate-via.interface.d.ts
5535
- declare const DataIntegrationCustomProviderAuthenticateVia: {
5536
- readonly RequestBody: "request_body";
5537
- readonly BasicAuthHeader: "basic_auth_header";
5538
- };
5539
- type DataIntegrationCustomProviderAuthenticateVia = (typeof DataIntegrationCustomProviderAuthenticateVia)[keyof typeof DataIntegrationCustomProviderAuthenticateVia];
5540
- //#endregion
5541
- //#region src/pipes/interfaces/data-integration-custom-provider.interface.d.ts
5542
- interface DataIntegrationCustomProvider {
5543
- /** A descriptive name for the custom provider. */
5544
- name: string;
5545
- /** The provider's OAuth authorization endpoint. */
5546
- authorizationUrl: string | null;
5547
- /** The provider's OAuth token endpoint. */
5548
- tokenUrl: string | null;
5549
- /** The endpoint used to refresh tokens, if different from the token endpoint. */
5550
- refreshTokenUrl: string | null;
5551
- /** Whether PKCE is used during the authorization code flow. */
5552
- pkceEnabled: boolean;
5553
- /** The separator used to join requested scopes. */
5554
- requestScopeSeparator: string;
5555
- /** Whether at least one scope must be selected when connecting an account. */
5556
- scopesRequired: boolean;
5557
- /** Whether a client secret is required for this provider. */
5558
- clientSecretRequired: boolean;
5559
- /** Additional static query parameters appended to the authorization request. */
5560
- additionalAuthorizationParameters: Record<string, string>;
5561
- /** The Content-Type used when exchanging the token request. */
5562
- tokenBodyContentType: string;
5563
- /** How client credentials are sent when exchanging authorization codes and refreshing tokens. */
5564
- authenticateVia: DataIntegrationCustomProviderAuthenticateVia;
5565
- }
5566
- interface DataIntegrationCustomProviderResponse {
5567
- name: string;
5568
- authorization_url: string | null;
5569
- token_url: string | null;
5570
- refresh_token_url: string | null;
5571
- pkce_enabled: boolean;
5572
- request_scope_separator: string;
5573
- scopes_required: boolean;
5574
- client_secret_required: boolean;
5575
- additional_authorization_parameters: Record<string, string>;
5576
- token_body_content_type: string;
5577
- authenticate_via: DataIntegrationCustomProviderAuthenticateVia;
5960
+ * Update an Organization
5961
+ *
5962
+ * Updates an organization in the current environment.
5963
+ * @param payload - The request body.
5964
+ * @returns {Promise<Organization>}
5965
+ * @throws {BadRequestException} 400
5966
+ * @throws 403 response from the API.
5967
+ * @throws {NotFoundException} 404
5968
+ * @throws {ConflictException} 409
5969
+ * @throws {UnprocessableEntityException} 422
5970
+ */
5971
+ updateOrganization(options: UpdateOrganizationOptions): Promise<Organization>;
5972
+ /**
5973
+ * List IT Contacts
5974
+ *
5975
+ * Get the IT Contacts for an Organization.
5976
+ * @param options - Object containing the Organization ID.
5977
+ * @returns {Promise<List<ItContact>>}
5978
+ * @throws {AuthorizationException} 403
5979
+ * @throws {NotFoundException} 404
5980
+ */
5981
+ listItContacts(options: ListItContactsOptions): Promise<List<ItContact>>;
5982
+ /**
5983
+ * Create an IT Contact
5984
+ *
5985
+ * Add an IT Contact to an Organization. No Admin Portal invitation is sent,
5986
+ * though the contact is notified if the Organization has a connection
5987
+ * certificate nearing expiry.
5988
+ * @param options - Object containing the Organization ID and the email address.
5989
+ * @returns {Promise<ItContact>}
5990
+ * @throws {AuthorizationException} 403
5991
+ * @throws {NotFoundException} 404
5992
+ * @throws {ConflictException} 409
5993
+ * @throws {UnprocessableEntityException} 422
5994
+ */
5995
+ createItContact(options: CreateItContactOptions): Promise<ItContact>;
5996
+ /**
5997
+ * Delete an IT Contact
5998
+ *
5999
+ * Remove an IT Contact from an Organization and revoke the contact's active
6000
+ * setup links.
6001
+ * @param options - Object containing the Organization ID and the IT Contact ID.
6002
+ * @returns {Promise<void>}
6003
+ * @throws {AuthorizationException} 403
6004
+ * @throws {NotFoundException} 404
6005
+ */
6006
+ deleteItContact(options: DeleteItContactOptions): Promise<void>;
6007
+ /**
6008
+ * Invite an IT Contact
6009
+ *
6010
+ * Create an Admin Portal setup link and email it to the IT Contact. An
6011
+ * Organization can have at most one active invitation.
6012
+ * @param options - Object containing the Organization ID, the IT Contact ID and the intents.
6013
+ * @returns {Promise<void>}
6014
+ * @throws {AuthorizationException} 403
6015
+ * @throws {NotFoundException} 404
6016
+ * @throws {ConflictException} 409
6017
+ * @throws {UnprocessableEntityException} 422
6018
+ */
6019
+ inviteItContact(options: InviteItContactOptions): Promise<void>;
6020
+ /**
6021
+ * Revoke an IT Contact's invitation
6022
+ *
6023
+ * Revoke the Organization's active Admin Portal invitation.
6024
+ * @param options - Object containing the Organization ID and the IT Contact ID.
6025
+ * @returns {Promise<void>}
6026
+ * @throws {AuthorizationException} 403
6027
+ * @throws {NotFoundException} 404
6028
+ */
6029
+ revokeItContact(options: RevokeItContactOptions): Promise<void>;
5578
6030
  }
5579
6031
  //#endregion
5580
- //#region src/pipes/interfaces/data-integration-state.interface.d.ts
5581
- declare const DataIntegrationState: {
5582
- readonly Valid: "valid";
5583
- readonly Invalid: "invalid";
5584
- readonly Requested: "requested";
5585
- };
5586
- type DataIntegrationState = (typeof DataIntegrationState)[keyof typeof DataIntegrationState];
5587
- //#endregion
5588
- //#region src/pipes/interfaces/data-integration.interface.d.ts
5589
- interface DataIntegration {
5590
- /** Distinguishes the Data Integration object. */
5591
- object: 'data_integration';
5592
- /** Unique identifier of the Data Integration. */
5593
- id: string;
5594
- /** The provider slug for this Data Integration. */
5595
- slug: string;
5596
- /** The integration type derived from the provider. */
5597
- integrationType: string;
5598
- /** An optional description of the Data Integration. */
5599
- description: string | null;
5600
- /** Whether the Data Integration is enabled. */
5601
- enabled: boolean;
5602
- /** The state of the Data Integration. */
5603
- state: DataIntegrationState;
5604
- /** The OAuth scopes configured for the Data Integration. `null` when the provider's configured scopes are used. */
5605
- scopes: string[] | null;
5606
- /** The OAuth redirect URI to register with the provider when configuring the custom application. */
5607
- redirectUri: string;
5608
- /** The credentials configured for the Data Integration. */
5609
- credentials: DataIntegrationCredential;
5610
- /** The OAuth definition when this is a custom provider; `null` for built-in providers. */
5611
- customProvider: DataIntegrationCustomProvider | null;
5612
- /** An ISO 8601 timestamp. */
5613
- createdAt: Date;
5614
- /** An ISO 8601 timestamp. */
5615
- updatedAt: Date;
5616
- }
5617
- interface DataIntegrationResponse {
5618
- object: 'data_integration';
5619
- id: string;
5620
- slug: string;
5621
- integration_type: string;
5622
- description: string | null;
5623
- enabled: boolean;
5624
- state: DataIntegrationState;
5625
- scopes: string[] | null;
5626
- redirect_uri: string;
5627
- credentials: DataIntegrationCredentialResponse;
5628
- custom_provider: DataIntegrationCustomProviderResponse | null;
5629
- created_at: string;
5630
- updated_at: string;
6032
+ //#region src/organization-domains/organization-domains.d.ts
6033
+ declare class OrganizationDomains {
6034
+ private readonly workos;
6035
+ constructor(workos: WorkOS);
6036
+ /**
6037
+ * Get an Organization Domain
6038
+ *
6039
+ * Get the details of an existing organization domain.
6040
+ * @param id - Unique identifier of the organization domain.
6041
+ *
6042
+ * @example
6043
+ * "org_domain_01EHZNVPK2QXHMVWCEDQEKY69A"
6044
+ *
6045
+ * @returns {Promise<OrganizationDomain>}
6046
+ * @throws {NotFoundException} 404
6047
+ */
6048
+ getOrganizationDomain(id: string): Promise<OrganizationDomain>;
6049
+ /**
6050
+ * Verify an Organization Domain
6051
+ *
6052
+ * Initiates verification process for an Organization Domain.
6053
+ * @param id - Unique identifier of the organization domain.
6054
+ *
6055
+ * @example
6056
+ * "org_domain_01EHZNVPK2QXHMVWCEDQEKY69A"
6057
+ *
6058
+ * @returns {Promise<OrganizationDomain>}
6059
+ * @throws {BadRequestException} 400
6060
+ */
6061
+ verifyOrganizationDomain(id: string): Promise<OrganizationDomain>;
6062
+ /**
6063
+ * Create an Organization Domain
6064
+ *
6065
+ * Creates a new Organization Domain.
6066
+ * @param payload - Object containing domain, organizationId.
6067
+ * @returns {Promise<OrganizationDomain>}
6068
+ * @throws {ConflictException} 409
6069
+ */
6070
+ createOrganizationDomain(payload: CreateOrganizationDomainOptions): Promise<OrganizationDomain>;
6071
+ /**
6072
+ * Delete an Organization Domain
6073
+ *
6074
+ * Permanently deletes an organization domain. It cannot be undone.
6075
+ * @param id - Unique identifier of the organization domain.
6076
+ *
6077
+ * @example
6078
+ * "org_domain_01EHZNVPK2QXHMVWCEDQEKY69A"
6079
+ *
6080
+ * @returns {Promise<void>}
6081
+ * @throws {NotFoundException} 404
6082
+ */
6083
+ deleteOrganizationDomain(id: string): Promise<void>;
5631
6084
  }
5632
6085
  //#endregion
5633
- //#region src/pipes/interfaces/connected-account-auth-method.interface.d.ts
5634
- declare const ConnectedAccountAuthMethod: {
5635
- readonly OAuth: "oauth";
5636
- readonly ApiKey: "api_key";
5637
- };
5638
- type ConnectedAccountAuthMethod = (typeof ConnectedAccountAuthMethod)[keyof typeof ConnectedAccountAuthMethod];
5639
- //#endregion
5640
- //#region src/pipes/interfaces/connected-account.interface.d.ts
5641
- interface ConnectedAccount {
5642
- /** Distinguishes the connected account object. */
5643
- object: 'connected_account';
5644
- /** The unique identifier of the connected account. */
6086
+ //#region src/passwordless/interfaces/passwordless-session.interface.d.ts
6087
+ interface PasswordlessSession {
5645
6088
  id: string;
5646
- /** The [User](https://workos.com/docs/reference/authkit/user) identifier associated with this connection. */
5647
- userId: string | null;
5648
- /** The [Organization](https://workos.com/docs/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization. */
5649
- organizationId: string | null;
5650
- /** The OAuth scopes granted for this connection. */
5651
- scopes: string[];
5652
- /** The authentication method used for this connection (`oauth` or `api_key`). Defaults to `oauth` if absent. */
5653
- authMethod?: ConnectedAccountAuthMethod;
5654
- /** The last four characters of the API key, or `null` for OAuth connections. */
5655
- apiKeyLast4?: string | null;
5656
- /**
5657
- * The state of the connected account:
5658
- * - `connected`: The connection is active and tokens are valid.
5659
- * - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed.
5660
- * - `disconnected`: The connection has been disconnected.
5661
- */
5662
- state: ConnectedAccountState;
5663
- /** The timestamp when the connection was created. */
5664
- createdAt: string;
5665
- /** The timestamp when the connection was last updated. */
5666
- updatedAt: string;
6089
+ email: string;
6090
+ expiresAt: Date;
6091
+ link: string;
6092
+ object: 'passwordless_session';
5667
6093
  }
5668
- interface ConnectedAccountResponse {
5669
- object: 'connected_account';
6094
+ interface PasswordlessSessionResponse {
5670
6095
  id: string;
5671
- user_id: string | null;
5672
- organization_id: string | null;
5673
- scopes: string[];
5674
- auth_method?: ConnectedAccountAuthMethod;
5675
- api_key_last_4?: string | null;
5676
- state: ConnectedAccountState;
5677
- created_at: string;
5678
- updated_at: string;
6096
+ email: string;
6097
+ expires_at: Date;
6098
+ link: string;
6099
+ object: 'passwordless_session';
5679
6100
  }
5680
6101
  //#endregion
5681
- //#region src/pipes/interfaces/data-integration-authorize-url-response.interface.d.ts
5682
- interface DataIntegrationAuthorizeUrlResponse {
5683
- /** The OAuth authorization URL to redirect the user to. */
5684
- url: string;
6102
+ //#region src/passwordless/interfaces/create-passwordless-session-options.interface.d.ts
6103
+ interface CreatePasswordlessSessionOptions {
6104
+ type: 'MagicLink';
6105
+ email: string;
6106
+ redirectURI?: string;
6107
+ state?: string;
6108
+ connection?: string;
6109
+ expiresIn?: number;
5685
6110
  }
5686
- interface DataIntegrationAuthorizeUrlResponseWire {
5687
- url: string;
6111
+ interface SerializedCreatePasswordlessSessionOptions {
6112
+ type: 'MagicLink';
6113
+ email: string;
6114
+ redirect_uri?: string;
6115
+ state?: string;
6116
+ connection?: string;
6117
+ expires_in?: number;
5688
6118
  }
5689
6119
  //#endregion
5690
- //#region src/pipes/interfaces/data-integration-credentials-response-credential.interface.d.ts
5691
- /** The credential object containing the vended secret. */
5692
- interface DataIntegrationCredentialsResponseCredential {
5693
- /** Distinguishes the credential object. */
5694
- object: 'credential';
5695
- /** The authentication method for this credential. Additional values may be added in the future; handle unknown values gracefully. */
5696
- authMethod: 'oauth';
5697
- /** The OAuth access token. */
5698
- value: string;
5699
- /** The ISO-8601 formatted timestamp indicating when the credential expires. */
5700
- expiresAt: string | null;
5701
- /** The scopes granted to the access token. */
5702
- scopes: string[];
5703
- /** If the integration has requested scopes that aren't present on the access token, they're listed here. */
5704
- missingScopes: string[];
5705
- }
5706
- interface DataIntegrationCredentialsResponseCredentialResponse {
5707
- object: 'credential';
5708
- auth_method: 'oauth';
5709
- value: string;
5710
- expires_at: string | null;
5711
- scopes: string[];
5712
- missing_scopes: string[];
6120
+ //#region src/passwordless/interfaces/send-session-response.interface.d.ts
6121
+ interface SendSessionResponse {
6122
+ message?: string;
6123
+ success?: boolean;
5713
6124
  }
5714
6125
  //#endregion
5715
- //#region src/pipes/interfaces/data-integration-credentials-response-error.interface.d.ts
5716
- declare const DataIntegrationCredentialsResponseError: {
5717
- readonly NotInstalled: "not_installed";
5718
- readonly NeedsReauthorization: "needs_reauthorization";
5719
- };
5720
- type DataIntegrationCredentialsResponseError = (typeof DataIntegrationCredentialsResponseError)[keyof typeof DataIntegrationCredentialsResponseError];
6126
+ //#region src/passwordless/passwordless.d.ts
6127
+ declare class Passwordless {
6128
+ private readonly workos;
6129
+ constructor(workos: WorkOS);
6130
+ createSession({ redirectURI, expiresIn, ...options }: CreatePasswordlessSessionOptions): Promise<PasswordlessSession>;
6131
+ sendSession(sessionId: string): Promise<SendSessionResponse>;
6132
+ }
5721
6133
  //#endregion
5722
6134
  //#region src/pipes/interfaces/data-integration-credentials-response.interface.d.ts
5723
6135
  interface DataIntegrationCredentialsResponse {
@@ -5733,177 +6145,6 @@ interface DataIntegrationCredentialsResponse {
5733
6145
  error?: DataIntegrationCredentialsResponseError;
5734
6146
  }
5735
6147
  //#endregion
5736
- //#region src/pipes/interfaces/data-integration-access-token-response-access-token.interface.d.ts
5737
- /** The [access token](https://workos.com/docs/reference/pipes/access-token) object, present when `active` is `true`. */
5738
- interface DataIntegrationAccessTokenResponseAccessToken {
5739
- /** Distinguishes the access token object. */
5740
- object: 'access_token';
5741
- /** The OAuth access token for the connected integration. */
5742
- accessToken: string;
5743
- /** The ISO-8601 formatted timestamp indicating when the access token expires. */
5744
- expiresAt: Date | null;
5745
- /** The scopes granted to the access token. */
5746
- scopes: string[];
5747
- /** If the integration has requested scopes that aren't present on the access token, they're listed here. */
5748
- missingScopes: string[];
5749
- }
5750
- interface DataIntegrationAccessTokenResponseAccessTokenResponse {
5751
- object: 'access_token';
5752
- access_token: string;
5753
- expires_at: string | null;
5754
- scopes: string[];
5755
- missing_scopes: string[];
5756
- }
5757
- //#endregion
5758
- //#region src/pipes/interfaces/data-integration-access-token-response.interface.d.ts
5759
- type DataIntegrationAccessTokenResponse = {
5760
- active: true;
5761
- accessToken: DataIntegrationAccessTokenResponseAccessToken;
5762
- } | {
5763
- active: false;
5764
- error: 'needs_reauthorization' | 'not_installed';
5765
- };
5766
- type DataIntegrationAccessTokenResponseWire = {
5767
- active: true;
5768
- access_token: DataIntegrationAccessTokenResponseAccessTokenResponse;
5769
- } | {
5770
- active: false;
5771
- error: 'needs_reauthorization' | 'not_installed';
5772
- };
5773
- //#endregion
5774
- //#region src/pipes/interfaces/data-integrations-list-response-data-connected-account-auth-method.interface.d.ts
5775
- declare const DataIntegrationsListResponseDataConnectedAccountAuthMethod: {
5776
- readonly OAuth: "oauth";
5777
- readonly ApiKey: "api_key";
5778
- };
5779
- type DataIntegrationsListResponseDataConnectedAccountAuthMethod = (typeof DataIntegrationsListResponseDataConnectedAccountAuthMethod)[keyof typeof DataIntegrationsListResponseDataConnectedAccountAuthMethod];
5780
- //#endregion
5781
- //#region src/pipes/interfaces/data-integrations-list-response-data-connected-account-state.interface.d.ts
5782
- declare const DataIntegrationsListResponseDataConnectedAccountState: {
5783
- readonly Connected: "connected";
5784
- readonly NeedsReauthorization: "needs_reauthorization";
5785
- readonly Disconnected: "disconnected";
5786
- };
5787
- type DataIntegrationsListResponseDataConnectedAccountState = (typeof DataIntegrationsListResponseDataConnectedAccountState)[keyof typeof DataIntegrationsListResponseDataConnectedAccountState];
5788
- //#endregion
5789
- //#region src/pipes/interfaces/data-integrations-list-response-data-connected-account.interface.d.ts
5790
- interface DataIntegrationsListResponseDataConnectedAccount {
5791
- /** Distinguishes the connected account object. */
5792
- object: 'connected_account';
5793
- /** The unique identifier of the connected account. */
5794
- id: string;
5795
- /** The [User](https://workos.com/docs/reference/authkit/user) identifier associated with this connection. */
5796
- userId: string | null;
5797
- /** The [Organization](https://workos.com/docs/reference/organization) identifier associated with this connection, or `null` if not scoped to an organization. */
5798
- organizationId: string | null;
5799
- /** The OAuth scopes granted for this connection. */
5800
- scopes: string[];
5801
- /** The authentication method used for this connection (`oauth` or `api_key`). Defaults to `oauth` if absent. */
5802
- authMethod?: DataIntegrationsListResponseDataConnectedAccountAuthMethod;
5803
- /** The last four characters of the API key, or `null` for OAuth connections. */
5804
- apiKeyLast4?: string | null;
5805
- /**
5806
- * The state of the connected account:
5807
- * - `connected`: The connection is active and tokens are valid.
5808
- * - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed.
5809
- * - `disconnected`: The connection has been disconnected.
5810
- */
5811
- state: DataIntegrationsListResponseDataConnectedAccountState;
5812
- /** The timestamp when the connection was created. */
5813
- createdAt: string;
5814
- /** The timestamp when the connection was last updated. */
5815
- updatedAt: string;
5816
- /**
5817
- * Use `user_id` instead.
5818
- * @deprecated
5819
- */
5820
- userlandUserId: string | null;
5821
- }
5822
- interface DataIntegrationsListResponseDataConnectedAccountResponse {
5823
- object: 'connected_account';
5824
- id: string;
5825
- user_id: string | null;
5826
- organization_id: string | null;
5827
- scopes: string[];
5828
- auth_method?: DataIntegrationsListResponseDataConnectedAccountAuthMethod;
5829
- api_key_last_4?: string | null;
5830
- state: DataIntegrationsListResponseDataConnectedAccountState;
5831
- created_at: string;
5832
- updated_at: string;
5833
- userland_user_id: string | null;
5834
- }
5835
- //#endregion
5836
- //#region src/pipes/interfaces/data-integrations-list-response-data-auth-methods.interface.d.ts
5837
- declare const DataIntegrationsListResponseDataAuthMethods: {
5838
- readonly OAuth: "oauth";
5839
- readonly ApiKey: "api_key";
5840
- };
5841
- type DataIntegrationsListResponseDataAuthMethods = (typeof DataIntegrationsListResponseDataAuthMethods)[keyof typeof DataIntegrationsListResponseDataAuthMethods];
5842
- //#endregion
5843
- //#region src/pipes/interfaces/data-integrations-list-response-data-ownership.interface.d.ts
5844
- declare const DataIntegrationsListResponseDataOwnership: {
5845
- readonly UserlandUser: "userland_user";
5846
- readonly Organization: "organization";
5847
- };
5848
- type DataIntegrationsListResponseDataOwnership = (typeof DataIntegrationsListResponseDataOwnership)[keyof typeof DataIntegrationsListResponseDataOwnership];
5849
- //#endregion
5850
- //#region src/pipes/interfaces/data-integrations-list-response-data.interface.d.ts
5851
- interface DataIntegrationsListResponseData {
5852
- /** Distinguishes the data provider object. */
5853
- object: 'data_provider';
5854
- /** The unique identifier of the provider. */
5855
- id: string;
5856
- /** The display name of the provider (e.g., "GitHub", "Slack"). */
5857
- name: string;
5858
- /** A description of the provider explaining how it will be used, if configured. */
5859
- description: string | null;
5860
- /** The slug identifier used in API calls (e.g., `github`, `slack`, `notion`). */
5861
- slug: string;
5862
- /** The type of integration (e.g., `github`, `slack`). */
5863
- integrationType: string;
5864
- /** The type of credentials used by the provider (e.g., `oauth2`). */
5865
- credentialsType: string;
5866
- /** The OAuth scopes configured for this provider, or `null` if none are configured. */
5867
- scopes: string[] | null;
5868
- /** The authentication methods supported by this provider (`oauth`, `api_key`, or both). Defaults to `["oauth"]` if absent. */
5869
- authMethods?: DataIntegrationsListResponseDataAuthMethods[];
5870
- /** Whether the provider is owned by a user or organization. */
5871
- ownership: DataIntegrationsListResponseDataOwnership;
5872
- /** The timestamp when the provider was created. */
5873
- createdAt: string;
5874
- /** The timestamp when the provider was last updated. */
5875
- updatedAt: string;
5876
- /** The user's [connected account](https://workos.com/docs/reference/pipes/connected-account) for this provider, or `null` if the user has not connected. */
5877
- connectedAccount: DataIntegrationsListResponseDataConnectedAccount | null;
5878
- }
5879
- interface DataIntegrationsListResponseDataResponse {
5880
- object: 'data_provider';
5881
- id: string;
5882
- name: string;
5883
- description: string | null;
5884
- slug: string;
5885
- integration_type: string;
5886
- credentials_type: string;
5887
- scopes: string[] | null;
5888
- auth_methods?: DataIntegrationsListResponseDataAuthMethods[];
5889
- ownership: DataIntegrationsListResponseDataOwnership;
5890
- created_at: string;
5891
- updated_at: string;
5892
- connected_account: DataIntegrationsListResponseDataConnectedAccountResponse | null;
5893
- }
5894
- //#endregion
5895
- //#region src/pipes/interfaces/data-integrations-list-response.interface.d.ts
5896
- interface DataIntegrationsListResponse {
5897
- /** Indicates this is a list response. */
5898
- object: 'list';
5899
- /** A list of [providers](https://workos.com/docs/reference/pipes/provider), each including a [`connected_account`](https://workos.com/docs/reference/pipes/connected-account) field with the user's connection status. */
5900
- data: DataIntegrationsListResponseData[];
5901
- }
5902
- interface DataIntegrationsListResponseWire {
5903
- object: 'list';
5904
- data: DataIntegrationsListResponseDataResponse[];
5905
- }
5906
- //#endregion
5907
6148
  //#region src/pipes/pipes.d.ts
5908
6149
  declare class Pipes {
5909
6150
  private readonly workos;
@@ -6853,22 +7094,43 @@ declare class AuditLogs {
6853
7094
  }
6854
7095
  //#endregion
6855
7096
  //#region node_modules/jose/dist/types/types.d.ts
6856
- /** Generic JSON Web Key Parameters. */
6857
- interface JWKParameters {
7097
+ /**
7098
+ * JWS "alg" (Algorithm) Header Parameter values supported by this module. Availability of a given
7099
+ * identifier additionally depends on the runtime.
7100
+ */
7101
+ 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 & {});
7102
+ /**
7103
+ * JWE "alg" (Algorithm) Header Parameter values supported by this module. Availability of a given
7104
+ * identifier additionally depends on the runtime.
7105
+ */
7106
+ 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 & {});
7107
+ /**
7108
+ * JWE "enc" (Encryption Algorithm) Header Parameter values supported by this module. Availability
7109
+ * of a given identifier additionally depends on the runtime.
7110
+ */
7111
+ type JWEContentEncryptionAlgorithm = 'A128CBC-HS256' | 'A192CBC-HS384' | 'A256CBC-HS512' | 'A128GCM' | 'A192GCM' | 'A256GCM' | (string & {});
7112
+ /** JWK "kty" (Key Type) Parameter values supported by this module. */
7113
+ type JWKKeyType = 'EC' | 'RSA' | 'OKP' | 'AKP' | 'oct' | (string & {});
7114
+ /**
7115
+ * JSON Web Key ({@link https://www.rfc-editor.org/info/rfc7517/ JWK}). "RSA", "EC", "OKP", "AKP",
7116
+ * and "oct" key types are supported.
7117
+ *
7118
+ * > Note: This is declared as a type alias rather than an interface so that it satisfies the implicit index
7119
+ * > signature of the `JsonWebKey` types shipped by `@types/node` and `lib.dom`. It spells out the
7120
+ * > {@link JWKParameters} members rather than intersecting them so that every JWK member is documented
7121
+ * > in one place.
7122
+ */
7123
+ type JWK = {
6858
7124
  /** JWK "kty" (Key Type) Parameter */
6859
- kty?: string;
6860
- /**
6861
- * JWK "alg" (Algorithm) Parameter
6862
- *
6863
- * @see {@link https://github.com/panva/jose/issues/210 Algorithm Key Requirements}
6864
- */
6865
- alg?: string;
7125
+ kty?: JWKKeyType;
7126
+ /** JWK "alg" (Algorithm) Parameter */
7127
+ alg?: JWSAlgorithm | JWEKeyManagementAlgorithm | JWEContentEncryptionAlgorithm;
6866
7128
  /** JWK "key_ops" (Key Operations) Parameter */
6867
7129
  key_ops?: string[];
6868
7130
  /** JWK "ext" (Extractable) Parameter */
6869
7131
  ext?: boolean;
6870
7132
  /** JWK "use" (Public Key Use) Parameter */
6871
- use?: string;
7133
+ use?: 'sig' | 'enc' | (string & {});
6872
7134
  /** JWK "x5c" (X.509 Certificate Chain) Parameter */
6873
7135
  x5c?: string[];
6874
7136
  /** JWK "x5t" (X.509 Certificate SHA-1 Thumbprint) Parameter */
@@ -6879,22 +7141,6 @@ interface JWKParameters {
6879
7141
  x5u?: string;
6880
7142
  /** JWK "kid" (Key ID) Parameter */
6881
7143
  kid?: string;
6882
- }
6883
- /**
6884
- * JSON Web Key ({@link https://www.rfc-editor.org/rfc/rfc7517 JWK}). "RSA", "EC", "OKP", "AKP", and
6885
- * "oct" key types are supported.
6886
- *
6887
- * @see {@link JWK_AKP_Public}
6888
- * @see {@link JWK_AKP_Private}
6889
- * @see {@link JWK_OKP_Public}
6890
- * @see {@link JWK_OKP_Private}
6891
- * @see {@link JWK_EC_Public}
6892
- * @see {@link JWK_EC_Private}
6893
- * @see {@link JWK_RSA_Public}
6894
- * @see {@link JWK_RSA_Private}
6895
- * @see {@link JWK_oct}
6896
- */
6897
- interface JWK extends JWKParameters {
6898
7144
  /**
6899
7145
  * - EC JWK "crv" (Curve) Parameter
6900
7146
  * - OKP JWK "crv" (The Subtype of Key Pair) Parameter
@@ -6933,7 +7179,20 @@ interface JWK extends JWKParameters {
6933
7179
  pub?: string;
6934
7180
  /** AKP JWK "priv" (Private key) Parameter */
6935
7181
  priv?: string;
6936
- }
7182
+ /**
7183
+ * RSA JWK "oth" (Other Primes Info) Parameter
7184
+ *
7185
+ * > Note: Multi-prime RSA keys are not supported; importing a JWK with this parameter present throws.
7186
+ */
7187
+ oth?: Array<{
7188
+ /** The Factor CRT Exponent */
7189
+ d?: string;
7190
+ /** The Prime Factor */
7191
+ r?: string;
7192
+ /** The Factor CRT Coefficient */
7193
+ t?: string;
7194
+ }>;
7195
+ };
6937
7196
  /**
6938
7197
  * Flattened JWS definition for verify function inputs, allows payload as {@link !Uint8Array} for
6939
7198
  * detached signature validation.
@@ -6972,8 +7231,11 @@ interface JoseHeaderParameters {
6972
7231
  x5u?: string;
6973
7232
  /** "jku" (JWK Set URL) Header Parameter */
6974
7233
  jku?: string;
6975
- /** "jwk" (JSON Web Key) Header Parameter */
6976
- jwk?: Pick<JWK, 'kty' | 'crv' | 'x' | 'y' | 'e' | 'n' | 'alg' | 'pub'>;
7234
+ /**
7235
+ * "jwk" (JSON Web Key) Header Parameter. This must be a public JSON Web Key; private and
7236
+ * symmetric key parameters are not permitted.
7237
+ */
7238
+ jwk?: Omit<JWK, 'd' | 'dp' | 'dq' | 'k' | 'p' | 'q' | 'qi' | 'priv' | 'oth'>;
6977
7239
  /** "typ" (Type) Header Parameter */
6978
7240
  typ?: string;
6979
7241
  /** "cty" (Content Type) Header Parameter */
@@ -6981,15 +7243,11 @@ interface JoseHeaderParameters {
6981
7243
  }
6982
7244
  /** Recognized JWS Header Parameters, any other Header Members may also be present. */
6983
7245
  interface JWSHeaderParameters extends JoseHeaderParameters {
6984
- /**
6985
- * JWS "alg" (Algorithm) Header Parameter
6986
- *
6987
- * @see {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}
6988
- */
6989
- alg?: string;
7246
+ /** JWS "alg" (Algorithm) Header Parameter */
7247
+ alg?: JWSAlgorithm;
6990
7248
  /**
6991
7249
  * This JWS Extension Header Parameter modifies the JWS Payload representation and the JWS Signing
6992
- * Input computation as per {@link https://www.rfc-editor.org/rfc/rfc7797 RFC7797}.
7250
+ * Input computation as per {@link https://www.rfc-editor.org/info/rfc7797/ RFC7797}.
6993
7251
  */
6994
7252
  b64?: boolean;
6995
7253
  /** JWS "crit" (Critical) Header Parameter */
@@ -7007,103 +7265,37 @@ interface JSONWebKeySet {
7007
7265
  * {@link !SubtleCrypto.importKey} API to obtain a {@link !CryptoKey} from your existing key
7008
7266
  * material.
7009
7267
  */
7010
- type CryptoKey = Extract<Awaited<ReturnType<typeof crypto.subtle.generateKey>>, {
7268
+ type CryptoKey = typeof globalThis extends {
7269
+ crypto: {
7270
+ subtle: {
7271
+ generateKey(...args: any[]): Promise<infer R>;
7272
+ };
7273
+ };
7274
+ } ? Extract<R, {
7011
7275
  type: string;
7012
- }>;
7276
+ }> : CryptoKeyStructuralFallback;
7277
+ /**
7278
+ * Used as {@link CryptoKey} when the host runtime's `crypto` global is not exposed on `typeof
7279
+ * globalThis`, including when it is absent from ambient types or declared with `const` or `let`. It
7280
+ * remains structurally compatible with host {@link !CryptoKey} declarations so values flow freely to
7281
+ * and from {@link !SubtleCrypto} APIs.
7282
+ */
7283
+ interface CryptoKeyStructuralFallback {
7284
+ readonly algorithm: {
7285
+ name: string;
7286
+ };
7287
+ readonly extractable: boolean;
7288
+ readonly type: string;
7289
+ readonly usages: string[];
7290
+ }
7013
7291
  //#endregion
7014
7292
  //#region node_modules/jose/dist/types/jwks/remote.d.ts
7015
7293
  /**
7016
7294
  * When passed to {@link jwks/remote.createRemoteJWKSet createRemoteJWKSet} this allows the resolver
7017
7295
  * to make use of advanced fetch configurations, HTTP Proxies, retry on network errors, etc.
7018
7296
  *
7019
- * > [!NOTE]\
7020
- * > Known caveat: Expect Type-related issues when passing the inputs through to fetch-like modules,
7297
+ * > Note: Known caveat: Expect Type-related issues when passing the inputs through to fetch-like modules,
7021
7298
  * > they hardly ever get their typings inline with actual fetch, you should `@ts-expect-error` them.
7022
- *
7023
- * import ky from 'ky'
7024
- *
7025
- * let logRequest!: (request: Request) => void
7026
- * let logResponse!: (request: Request, response: Response) => void
7027
- * let logRetry!: (request: Request, error: Error, retryCount: number) => void
7028
- *
7029
- * const JWKS = jose.createRemoteJWKSet(url, {
7030
- * [jose.customFetch]: (...args) =>
7031
- * ky(args[0], {
7032
- * ...args[1],
7033
- * hooks: {
7034
- * beforeRequest: [
7035
- * (request) => {
7036
- * logRequest(request)
7037
- * },
7038
- * ],
7039
- * beforeRetry: [
7040
- * ({ request, error, retryCount }) => {
7041
- * logRetry(request, error, retryCount)
7042
- * },
7043
- * ],
7044
- * afterResponse: [
7045
- * (request, _, response) => {
7046
- * logResponse(request, response)
7047
- * },
7048
- * ],
7049
- * },
7050
- * }),
7051
- * })
7052
- * ```
7053
- *
7054
- * import * as undici from 'undici'
7055
- *
7056
- * // see https://undici.nodejs.org/#/docs/api/EnvHttpProxyAgent
7057
- * let envHttpProxyAgent = new undici.EnvHttpProxyAgent()
7058
- *
7059
- * // @ts-ignore
7060
- * const JWKS = jose.createRemoteJWKSet(url, {
7061
- * [jose.customFetch]: (...args) => {
7062
- * // @ts-ignore
7063
- * return undici.fetch(args[0], { ...args[1], dispatcher: envHttpProxyAgent }) // prettier-ignore
7064
- * },
7065
- * })
7066
- * ```
7067
- *
7068
- * import * as undici from 'undici'
7069
- *
7070
- * // see https://undici.nodejs.org/#/docs/api/RetryAgent
7071
- * let retryAgent = new undici.RetryAgent(new undici.Agent(), {
7072
- * statusCodes: [],
7073
- * errorCodes: [
7074
- * 'ECONNRESET',
7075
- * 'ECONNREFUSED',
7076
- * 'ENOTFOUND',
7077
- * 'ENETDOWN',
7078
- * 'ENETUNREACH',
7079
- * 'EHOSTDOWN',
7080
- * 'UND_ERR_SOCKET',
7081
- * ],
7082
- * })
7083
- *
7084
- * // @ts-ignore
7085
- * const JWKS = jose.createRemoteJWKSet(url, {
7086
- * [jose.customFetch]: (...args) => {
7087
- * // @ts-ignore
7088
- * return undici.fetch(args[0], { ...args[1], dispatcher: retryAgent }) // prettier-ignore
7089
- * },
7090
- * })
7091
- * ```
7092
- *
7093
- * import * as undici from 'undici'
7094
- *
7095
- * // see https://undici.nodejs.org/#/docs/api/MockAgent
7096
- * let mockAgent = new undici.MockAgent()
7097
- * mockAgent.disableNetConnect()
7098
- *
7099
- * // @ts-ignore
7100
- * const JWKS = jose.createRemoteJWKSet(url, {
7101
- * [jose.customFetch]: (...args) => {
7102
- * // @ts-ignore
7103
- * return undici.fetch(args[0], { ...args[1], dispatcher: mockAgent }) // prettier-ignore
7104
- * },
7105
- * })
7106
- * ```
7107
7299
  */
7108
7300
  declare const customFetch: unique symbol;
7109
7301
  /** See {@link customFetch}. */
@@ -7121,55 +7313,14 @@ options: {
7121
7313
  signal: AbortSignal;
7122
7314
  }) => Promise<Response>;
7123
7315
  /**
7124
- * > [!WARNING]\
7125
- * > This option has security implications that must be understood, assessed for applicability, and
7316
+ * > Warning: This option has security implications that must be understood, assessed for applicability, and
7126
7317
  * > accepted before use. It is critical that the JSON Web Key Set cache only be writable by your own
7127
7318
  * > code.
7128
7319
  *
7129
7320
  * This option is intended for cloud computing runtimes that cannot keep an in memory cache between
7130
- * their code's invocations. Use in runtimes where an in memory cache between requests is available
7131
- * is not desirable.
7132
- *
7133
- * When passed to {@link jwks/remote.createRemoteJWKSet createRemoteJWKSet} this allows the passed in
7134
- * object to:
7135
- *
7136
- * - Serve as an initial value for the JSON Web Key Set that the module would otherwise need to
7137
- * trigger an HTTP request for
7138
- * - Have the JSON Web Key Set the function optionally ended up triggering an HTTP request for
7139
- * assigned to it as properties
7140
- *
7141
- * The intended use pattern is:
7142
- *
7143
- * - Before verifying with {@link jwks/remote.createRemoteJWKSet createRemoteJWKSet} you pull the
7144
- * previously cached object from a low-latency key-value store offered by the cloud computing
7145
- * runtime it is executed on;
7146
- * - Default to an empty object `{}` instead when there's no previously cached value;
7147
- * - Pass it in as {@link RemoteJWKSetOptions[jwksCache]};
7148
- * - Afterwards, update the key-value storage if the {@link ExportedJWKSCache.uat `uat`} property of
7149
- * the object has changed.
7150
- *
7151
- * // Prerequisites
7152
- * let url!: URL
7153
- * let jwt!: string
7154
- * let getPreviouslyCachedJWKS!: () => Promise<jose.ExportedJWKSCache>
7155
- * let storeNewJWKScache!: (cache: jose.ExportedJWKSCache) => Promise<void>
7156
- *
7157
- * // Load JSON Web Key Set cache
7158
- * const jwksCache: jose.JWKSCacheInput = (await getPreviouslyCachedJWKS()) || {}
7159
- * const { uat } = jwksCache
7160
- *
7161
- * const JWKS = jose.createRemoteJWKSet(url, {
7162
- * [jose.jwksCache]: jwksCache,
7163
- * })
7164
- *
7165
- * // Use JSON Web Key Set cache
7166
- * await jose.jwtVerify(jwt, JWKS)
7167
- *
7168
- * if (uat !== jwksCache.uat) {
7169
- * // Update JSON Web Key Set cache
7170
- * await storeNewJWKScache(jwksCache)
7171
- * }
7172
- * ```
7321
+ * their code's invocations. The supplied writable object seeds the resolver's cache and is updated
7322
+ * with `jwks` and `uat` after a successful fetch; persist it whenever `uat` changes. Using this in
7323
+ * runtimes that can keep an in-memory cache between requests is not desirable.
7173
7324
  */
7174
7325
  declare const jwksCache: unique symbol;
7175
7326
  /** Options for the remote JSON Web Key Set. */
@@ -7205,44 +7356,45 @@ interface ExportedJWKSCache {
7205
7356
  }
7206
7357
  /** See {@link jwksCache}. */
7207
7358
  type JWKSCacheInput = ExportedJWKSCache | Record<string, never>;
7359
+ /** The key resolution function returned by {@link createRemoteJWKSet}. */
7360
+ interface RemoteJWKSet {
7361
+ (protectedHeader?: JWSHeaderParameters, token?: FlattenedJWSInput): Promise<CryptoKey>;
7362
+ /** Whether the cooldown window following the last successful fetch is still in effect. */
7363
+ readonly coolingDown: boolean;
7364
+ /**
7365
+ * Whether the currently cached JSON Web Key Set is within its
7366
+ * {@link RemoteJWKSetOptions.cacheMaxAge}.
7367
+ */
7368
+ readonly fresh: boolean;
7369
+ /** Whether a JSON Web Key Set fetch is currently in flight. */
7370
+ readonly reloading: boolean;
7371
+ /**
7372
+ * Triggers a JSON Web Key Set fetch, bypassing
7373
+ * {@link RemoteJWKSetOptions.cooldownDuration the cooldown}.
7374
+ */
7375
+ reload: () => Promise<void>;
7376
+ /**
7377
+ * The currently cached JSON Web Key Set, or `undefined` when none has been fetched or seeded via
7378
+ * {@link jwksCache} yet.
7379
+ */
7380
+ jwks: () => JSONWebKeySet | undefined;
7381
+ }
7208
7382
  /**
7209
7383
  * Returns a function that resolves a JWS JOSE Header to a public key object downloaded from a
7210
7384
  * remote endpoint returning a JSON Web Key Set, that is, for example, an OAuth 2.0 or OIDC
7211
7385
  * jwks_uri. The JSON Web Key Set is fetched when no key matches the selection process but only as
7212
- * frequently as the `cooldownDuration` option allows to prevent abuse.
7213
- *
7214
- * It uses the "alg" (JWS Algorithm) Header Parameter to determine the right JWK "kty" (Key Type),
7215
- * then proceeds to match the JWK "kid" (Key ID) with one found in the JWS Header Parameters (if
7216
- * there is one) while also respecting the JWK "use" (Public Key Use) and JWK "key_ops" (Key
7217
- * Operations) Parameters (if they are present on the JWK).
7386
+ * frequently as the `cooldownDuration` option allows to prevent abuse. Selection respects the
7387
+ * header's "alg" (Algorithm) and "kid" (Key ID) as well as the JWK's "use" (Public Key Use) and
7388
+ * "key_ops" (Key Operations). Exactly one key must match; if multiple keys match, the thrown
7389
+ * `JWKSMultipleMatchingKeys` can be iterated.
7218
7390
  *
7219
- * Only a single public key must match the selection process. As shown in the example below when
7220
- * multiple keys get matched it is possible to opt-in to iterate over the matched keys and attempt
7221
- * verification in an iterative manner.
7222
- *
7223
- * > [!NOTE]\
7224
- * > The function's purpose is to resolve public keys used for verifying signatures and will not work
7391
+ * > Note: The function's purpose is to resolve public keys used for verifying signatures and will not work
7225
7392
  * > for public encryption keys.
7226
7393
  *
7227
- * This function is exported (as a named export) from the main `'jose'` module entry point as well
7228
- * as from its subpath export `'jose/jwks/remote'`.
7229
- *
7230
7394
  * @param url URL to fetch the JSON Web Key Set from.
7231
7395
  * @param options Options for the remote JSON Web Key Set.
7232
7396
  */
7233
- declare function createRemoteJWKSet(url: URL, options?: RemoteJWKSetOptions): {
7234
- (protectedHeader?: JWSHeaderParameters, token?: FlattenedJWSInput): Promise<CryptoKey>;
7235
- /** @ignore */
7236
- coolingDown: boolean;
7237
- /** @ignore */
7238
- fresh: boolean;
7239
- /** @ignore */
7240
- reloading: boolean;
7241
- /** @ignore */
7242
- reload: () => Promise<void>;
7243
- /** @ignore */
7244
- jwks: () => JSONWebKeySet | undefined;
7245
- };
7397
+ declare function createRemoteJWKSet(url: URL, options?: RemoteJWKSetOptions): RemoteJWKSet;
7246
7398
  //#endregion
7247
7399
  //#region src/user-management/interfaces/session-handler-options.interface.d.ts
7248
7400
  interface SessionHandlerOptions {
@@ -9369,6 +9521,7 @@ declare const CreateWebhookEndpointEvents: {
9369
9521
  readonly PermissionDeleted: "permission.deleted";
9370
9522
  readonly PermissionUpdated: "permission.updated";
9371
9523
  readonly PipesConnectedAccountConnected: "pipes.connected_account.connected";
9524
+ readonly PipesConnectedAccountConnectionFailed: "pipes.connected_account.connection_failed";
9372
9525
  readonly PipesConnectedAccountDisconnected: "pipes.connected_account.disconnected";
9373
9526
  readonly PipesConnectedAccountReauthorizationNeeded: "pipes.connected_account.reauthorization_needed";
9374
9527
  readonly SessionCreated: "session.created";
@@ -9469,6 +9622,7 @@ declare const UpdateWebhookEndpointEvents: {
9469
9622
  readonly PermissionDeleted: "permission.deleted";
9470
9623
  readonly PermissionUpdated: "permission.updated";
9471
9624
  readonly PipesConnectedAccountConnected: "pipes.connected_account.connected";
9625
+ readonly PipesConnectedAccountConnectionFailed: "pipes.connected_account.connection_failed";
9472
9626
  readonly PipesConnectedAccountDisconnected: "pipes.connected_account.disconnected";
9473
9627
  readonly PipesConnectedAccountReauthorizationNeeded: "pipes.connected_account.reauthorization_needed";
9474
9628
  readonly SessionCreated: "session.created";
@@ -9767,8 +9921,9 @@ declare class UnprocessableEntityException extends Error implements RequestExcep
9767
9921
  readonly message: string;
9768
9922
  readonly code?: string;
9769
9923
  readonly requestID: string;
9770
- constructor({ code, errors, message, requestID }: {
9924
+ constructor({ code, error, errors, message, requestID }: {
9771
9925
  code?: string;
9926
+ error?: string;
9772
9927
  errors?: UnprocessableEntityError[];
9773
9928
  message?: string;
9774
9929
  requestID: string;
@@ -9913,5 +10068,5 @@ interface ConfidentialClientOptions extends WorkOSOptions {
9913
10068
  declare function createWorkOS(options: PublicClientOptions): PublicWorkOS;
9914
10069
  declare function createWorkOS(options: ConfidentialClientOptions): WorkOS;
9915
10070
  //#endregion
9916
- export { ReadObjectMetadataResponse as $, FlagDeletedEventResponse as $a, AuthMethod as $c, ConnectionDomain as $d, AssignRoleOptionsWithResourceId as $f, AuthenticationMfaSucceededEventResponse as $i, Invitation as $l, PasswordlessSessionResponse as $n, OrganizationUpdatedResponse as $o, OrganizationRole as $p, SerializedLinkClaimAttemptToExternalUserOptions as $r, ListGroupsOptions as $s, DataIntegrationsListResponseDataOwnership as $t, UserManagementAccessToken as $u, ApiKeyRequiredException as A, DsyncGroupDeletedEvent as Aa, SerializedCreateOrganizationApiKeyOptions as Ac, AuthenticateWithEmailVerificationOptions as Ad, RemoveGroupRoleAssignmentsOptionsForOrganization as Af, DomainData as Ai, MagicAuthResponse as Al, ResponseHeaders as Am, ConnectedAccountState as An, OrganizationDomainCreatedEvent as Ao, SerializedListAuthorizationResourcesOptions as Ap, CompleteOAuth2Options as Ar, VaultDataCreatedEventResponse as As, SerializedAuditLogExportOptions as At, Factor as Au, ObjectSummaryResponse as B, DsyncUserDeletedEvent as Ba, SerializedCreateOrganizationDomainOptions as Bc, SerializedAuthenticateWithOptionsBase as Bd, SerializedCreateGroupRoleAssignmentOptions as Bf, GetOptions as Bi, ListOrganizationMembershipsOptions as Bl, UpdateCustomProviderDefinitionAuthenticateVia as Bn, OrganizationMembershipCreated as Bo, SerializedUpdatePermissionOptions as Bp, AgentCredentialValidation as Br, VaultDekReadEventResponse as Bs, RadarStandaloneResponse as Bt, SmsResponse as Bu, BadRequestException as C, ConnectionDeletedEventResponse as Ca, ValidateApiKeyOptions as Cc, AuthenticateUserWithRadarEmailChallengeCredentials as Cd, GroupRoleAssignmentEntryWithResourceExternalId as Cf, Organization as Ci, PasswordResetEventResponse as Cl, EventDirectoryResponse as Cm, DataIntegrationCredential as Cn, InvitationRevokedEventResponse as Co, AuthorizationCheckResult as Cp, CreateM2MApplication as Cr, UserDeletedEvent as Cs, AuditLogSchema as Ct, AuthenticationRadarRiskDetectedEventData as Cu, isAuthenticationErrorData as D, DsyncDeletedEventResponse as Da, SerializedCreatedApiKey as Dc, AuthenticateWithMagicAuthOptions as Dd, SerializedReplaceGroupRoleAssignmentsOptions as Df, CreateOrganizationOptions as Di, MagicAuth as Dl, RequestHeaders as Dm, DeleteUserConnectedAccountOptions as Dn, OrganizationCreatedResponse as Do, UpdateAuthorizationResourceByExternalIdOptions as Dp, RedirectUriInput as Dr, VaultByokKeyVerificationCompletedEvent as Ds, AuditLogExport as Dt, AuthenticationFactorType as Du, AuthenticationException as E, DsyncDeletedEvent as Ea, CreatedApiKey as Ec, AuthenticateUserWithMagicAuthCredentials as Ed, SerializedGroupRoleAssignmentEntry as Ef, ListOrganizationFeatureFlagsOptions as Ei, CreateMagicAuthResponseResponse as El, HttpClientResponseInterface as Em, ListUserDataProvidersOptions as En, OrganizationCreatedEvent as Eo, DeleteAuthorizationResourceByExternalIdOptions as Ep, CreateOAuthApplicationResponse as Er, UserUpdatedEventResponse as Es, AuditLogTargetSchema as Et, AuthenticationFactorResponse as Eu, UpdateWebhookEndpointEvents as F, DsyncGroupUserAddedEventResponse as Fa, OrganizationDomain as Fc, AuthenticateWithCodeOptions as Fd, BaseCreateGroupRoleAssignmentOptions as Ff, PutOptions as Fi, ListUserApiKeysOptions as Fl, UpdateDataIntegrationApiKeyOptions as Fn, OrganizationDomainUpdatedEventResponse as Fo, CreateOptionsWithParentResourceId as Fp, UserObject as Fr, VaultDataUpdatedEvent as Fs, Challenge as Ft, Totp as Fu, ObjectMetadata as G, EmailVerificationCreatedEventResponse as Ga, SerializedUserApiKey as Gc, ProfileResponse as Gd, RemoveRoleAssignmentOptions as Gf, ApiKeyRevokedEventResponse as Gi, BaseOrganizationMembershipResponse as Gl, CustomProviderDefinitionAuthenticateVia as Gn, OrganizationMembershipUpdatedResponse as Go, PermissionResponse as Gp, ValidAgentCredential as Gr, VaultNamesListedEvent as Gs, RadarListAction as Gt, AuthenticateUserWithTotpCredentials as Gu, ObjectVersionResponse as H, DsyncUserUpdatedEvent as Ha, VerifyEmailOptions as Hc, ProfileAndToken as Hd, ListGroupRoleAssignmentsOptions as Hf, ApiKeyCreatedEvent as Hi, AuthorizationOrganizationMembership as Hl, CreateDataIntegrationOptions as Hn, OrganizationMembershipDeleted as Ho, CreatePermissionOptions as Hp, SerializedAgentAccessTokenClaims as Hr, VaultKekCreatedEventResponse as Hs, RadarStandaloneResponseBlocklistType as Ht, AuthenticationEventResponse as Hu, UpdateWebhookEndpointStatus as I, DsyncGroupUserRemovedEvent as Ia, OrganizationDomainResponse as Ic, SerializedAuthenticateWithCodeOptions as Id, CreateGroupRoleAssignmentOptions as If, PostOptions as Ii, SerializedListUserApiKeysOptions as Il, DeleteDataIntegrationOptions as In, OrganizationDomainVerificationFailedEvent as Io, SerializedCreateAuthorizationResourceOptions as Ip, UserObjectResponse as Ir, VaultDataUpdatedEventResponse as Is, ChallengeResponse as It, TotpResponse as Iu, ActorResponse as J, EventName as Ja, UpdateUserPasswordOptions as Jc, ListConnectionsOptions as Jd, RemoveRoleOptionsWithResourceExternalId as Jf, AuthenticationMagicAuthFailedEvent as Ji, OrganizationMembershipStatus as Jl, DataIntegrationCredentialsType as Jn, OrganizationRoleDeletedEvent as Jo, SetOrganizationRolePermissionsOptions as Jp, ValidateAgentCredentialOptions as Jr, DataKeyPair as Js, RadarStandaloneAssessRequestAuthMethod as Jt, AuthenticateWithSessionCookieFailedResponse as Ju, ObjectMetadataResponse as K, Event as Ka, UserApiKey as Kc, OauthTokens as Kd, BaseRemoveRoleOptions as Kf, AuthenticationEmailVerificationSucceededEvent as Ki, OrganizationMembership as Kl, DataIntegrationCredentialsDto as Kn, OrganizationRoleCreatedEvent as Ko, RemoveOrganizationRolePermissionOptions as Kp, ValidateAgentAccessTokenOptions as Kr, VaultNamesListedEventResponse as Ks, RadarListType as Kt, AuthenticateWithTotpOptions as Ku, CreateWebhookEndpointEvents as L, DsyncGroupUserRemovedEventResponse as La, OrganizationDomainState as Lc, AuthenticateWithOptionsBase as Ld, CreateGroupRoleAssignmentOptionsForOrganization as Lf, PatchOptions as Li, ListUserFeatureFlagsOptions as Ll, UpdateDataIntegrationOptions as Ln, OrganizationDomainVerificationFailedEventResponse as Lo, SerializedUpdateAuthorizationResourceOptions as Lp, AutoPaginatable as Lr, VaultDekDecryptedEvent as Ls, ChallengeFactorOptions as Lt, TotpWithSecrets as Lu, WebhookEndpoint as M, DsyncGroupUpdatedEvent as Ma, SerializedApiKey as Mc, AuthenticateWithCodeAndVerifierOptions as Md, RemoveGroupRoleAssignmentsOptionsWithResourceId as Mf, WorkOSResponseError as Mi, Locale as Ml, GetAccessTokenOptions as Mn, OrganizationDomainDeletedEvent as Mo, AuthorizationResourceResponse as Mp, UserConsentOptionResponse as Mr, VaultDataDeletedEventResponse as Ms, VerifyResponseResponse as Mt, FactorType as Mu, WebhookEndpointResponse as N, DsyncGroupUpdatedEventResponse as Na, OrganizationDomainVerificationFailed as Nc, SerializedAuthenticateWithCodeAndVerifierOptions as Nd, SerializedRemoveGroupRoleAssignmentsOptions as Nf, WorkOSOptions as Ni, ListUsersOptions as Nl, CreateDataIntegrationCredentialOptions as Nn, OrganizationDomainDeletedEventResponse as No, CreateAuthorizationResourceOptions as Np, UserConsentOptionChoice as Nr, VaultDataReadEvent as Ns, VerifyChallengeOptions as Nt, FactorWithSecrets as Nu, GenericServerException as O, DsyncGroupCreatedEvent as Oa, CreateOrganizationApiKeyOptions as Oc, SerializedAuthenticateWithMagicAuthOptions as Od, BaseRemoveGroupRoleAssignmentsOptions as Of, CreateOrganizationRequestOptions as Oi, MagicAuthEvent as Ol, RequestOptions as Om, UpdateUserConnectedAccountOptions as On, OrganizationDeletedEvent as Oo, GetAuthorizationResourceByExternalIdOptions as Op, RedirectUriInputResponse as Or, VaultByokKeyVerificationCompletedEventResponse as Os, AuditLogExportResponse as Ot, AuthenticationFactorWithSecrets as Ou, WebhookEndpointStatus as P, DsyncGroupUserAddedEvent as Pa, OrganizationDomainVerificationFailedResponse as Pc, AuthenticateUserWithCodeCredentials as Pd, RemoveGroupRoleAssignmentOptions as Pf, UnprocessableEntityError as Pi, SerializedListUsersOptions as Pl, AuthorizeDataIntegrationOptions as Pn, OrganizationDomainUpdatedEvent as Po, CreateOptionsWithParentExternalId as Pp, UserConsentOptionChoiceResponse as Pr, VaultDataReadEventResponse as Ps, EnrollFactorOptions as Pt, FactorWithSecretsResponse as Pu, UpdateObjectOptions as Q, FlagDeletedEvent as Qa, UpdateOrganizationMembershipOptions as Qc, Connection as Qd, AssignRoleOptionsWithResourceExternalId as Qf, AuthenticationMfaSucceededEvent as Qi, ListAuthFactorsOptions as Ql, PasswordlessSession as Qn, OrganizationUpdatedEvent as Qo, SerializedCreateOrganizationRoleOptions as Qp, SerializedClaimAttemptResponse as Qr, RemoveGroupOrganizationMembershipOptions as Qs, DataIntegrationsListResponseDataResponse as Qt, SessionCookieData as Qu, WorkOS as R, DsyncUserCreatedEvent as Ra, OrganizationDomainVerificationStrategy as Rc, AuthenticateWithSessionOptions as Rd, CreateGroupRoleAssignmentOptionsWithResourceExternalId as Rf, List as Ri, ListSessionsOptions as Rl, UpdateCustomProviderDefinition as Rn, OrganizationDomainVerifiedEvent as Ro, UpdateAuthorizationResourceOptions as Rp, AgentAccessTokenClaims as Rr, VaultDekDecryptedEventResponse as Rs, RadarListEntryAlreadyPresentResponse as Rt, TotpWithSecretsResponse as Ru, ConflictException as S, ConnectionDeletedEvent as Sa, SerializedValidateApiKeyResponse as Sc, SerializedAuthenticateWithRadarSmsChallengeOptions as Sd, GroupRoleAssignmentEntryForOrganization as Sf, UpdateOrganizationOptions as Si, PasswordResetEvent as Sl, EventDirectory as Sm, DataIntegrationCustomProviderAuthenticateVia as Sn, InvitationRevokedEvent as So, AuthorizationCheckOptionsWithResourceId as Sp, CreateApplicationOptions as Sr, UserCreatedEventResponse as Ss, AuditLogActorSchema as St, UserManagementAuthorizationURLOptions as Su, AuthenticationErrorData as T, DsyncActivatedEventResponse as Ta, ListOrganizationApiKeysOptions as Tc, SerializedAuthenticateWithRadarEmailChallengeOptions as Td, ReplaceGroupRoleAssignmentsOptions as Tf, ListOrganizationsOptions as Ti, CreateMagicAuthResponse as Tl, HttpClientInterface as Tm, DataIntegrationCredentialType as Tn, MagicAuthCreatedEventResponse as To, DeleteAuthorizationResourceOptions as Tp, CreateOAuthApplication as Tr, UserUpdatedEvent as Ts, AuditLogSchemaResponse as Tt, AuthenticationFactor as Tu, VaultObject as U, DsyncUserUpdatedEventResponse as Ua, SerializedUserApiKeyWithValue as Uc, ProfileAndTokenResponse as Ud, GroupRoleAssignment as Uf, ApiKeyCreatedEventResponse as Ui, AuthorizationOrganizationMembershipResponse as Ul, CustomProviderDefinition as Un, OrganizationMembershipDeletedResponse as Uo, SerializedCreatePermissionOptions as Up, SerializedAgentCredentialValidation as Ur, VaultMetadataReadEvent as Us, RadarStandaloneResponseControl as Ut, AuthenticationEventSso as Uu, ObjectVersion as V, DsyncUserDeletedEventResponse as Va, SerializedVerifyEmailOptions as Vc, WithResolvedClientId as Vd, GetGroupRoleAssignmentOptions as Vf, GenerateLinkIntent as Vi, SerializedListOrganizationMembershipsOptions as Vl, GetDataIntegrationOptions as Vn, OrganizationMembershipCreatedResponse as Vo, UpdatePermissionOptions as Vp, InvalidAgentCredential as Vr, VaultKekCreatedEvent as Vs, RadarStandaloneResponseWire as Vt, AuthenticationEvent as Vu, VaultObjectResponse as W, EmailVerificationCreatedEvent as Wa, UserApiKeyWithValue as Wc, Profile as Wd, GroupRoleAssignmentResponse as Wf, ApiKeyRevokedEvent as Wi, BaseOrganizationMembership as Wl, CustomProviderDefinitionResponse as Wn, OrganizationMembershipUpdated as Wo, Permission as Wp, SerializedValidateAgentCredentialOptions as Wr, VaultMetadataReadEventResponse as Ws, RadarStandaloneResponseVerdict as Wt, AuthenticationEventSsoResponse as Wu, CreateDataKeyResponseWire as X, FlagCreatedEvent as Xa, UpdateUserOptions as Xc, GetProfileAndTokenOptions as Xd, SerializedRemoveRoleOptions as Xf, AuthenticationMagicAuthSucceededEvent as Xi, SerializedListInvitationsOptions as Xl, CreatePasswordlessSessionOptions as Xn, OrganizationRoleUpdatedEvent as Xo, UpdateOrganizationRoleOptions as Xp, ClaimAttemptResponse as Xr, SerializedUpdateGroupOptions as Xs, DataIntegrationsListResponseWire as Xt, AuthenticateWithSessionCookieOptions as Xu, CreateDataKeyResponse as Y, EventResponse as Ya, SerializedUpdateUserOptions as Yc, SerializedListConnectionsOptions as Yd, RemoveRoleOptionsWithResourceId as Yf, AuthenticationMagicAuthFailedEventResponse as Yi, ListInvitationsOptions as Yl, SendSessionResponse as Yn, OrganizationRoleDeletedEventResponse as Yo, SerializedUpdateOrganizationRoleOptions as Yp, ClaimAttemptOrganization as Yr, KeyContext as Ys, DataIntegrationsListResponse as Yt, AuthenticateWithSessionCookieFailureReason as Yu, UpdateObjectEntity as Z, FlagCreatedEventResponse as Za, SerializedUpdateOrganizationMembershipOptions as Zc, GetProfileOptions as Zd, AssignRoleOptions as Zf, AuthenticationMagicAuthSucceededEventResponse as Zi, ListGroupsForOrganizationMembershipOptions as Zl, SerializedCreatePasswordlessSessionOptions as Zn, OrganizationRoleUpdatedEventResponse as Zo, CreateOrganizationRoleOptions as Zp, LinkClaimAttemptToExternalUserOptions as Zr, UpdateGroupOptions as Zs, DataIntegrationsListResponseData as Zt, AuthenticateWithSessionCookieSuccessResponse as Zu, SignatureVerificationException as _, AuthenticationSSOSucceededEventResponse as _a, FlagTarget as _c, AuthenticateUserWithOrganizationSelectionCredentials as _d, RoleResponse as _f, ActionPayload as _i, RefreshSessionFailureReason as _l, Directory as _m, DataIntegration as _n, InvitationAcceptedEventResponse as _o, ListResourcesForMembershipOptionsWithParentExternalId as _p, CreateApplicationClientSecretOptions as _r, SessionCreatedEventResponse as _s, AuditLogActor as _t, CreateOrganizationMembershipOptions as _u, PublicWorkOS as a, AuthenticationPasskeyFailedEventResponse as aa, CreateGroupOptions as ac, User as ad, DirectoryUser as af, AgentRegistrationStatus as ai, SendRadarSmsChallengeResponse as al, SerializedCreateEnvironmentRoleOptions as am, DataIntegrationAccessTokenResponse as an, GroupCreatedEventResponse as ao, ListRoleAssignmentsOptions as ap, ApplicationCredentialsListItemResponse as ar, PermissionCreatedEventResponse as as, DecryptDataKeyResponse as at, SerializedEnrollUserInMfaFactorOptions as au, NotFoundException as b, ConnectionDeactivatedEvent as ba, EvaluationContext as bc, AuthenticateUserWithRadarSmsChallengeCredentials as bd, BaseGroupRoleAssignmentEntry as bf, UserRegistrationActionPayload as bi, TerminalRefreshSessionFailureReason as bl, DirectoryStateResponse as bm, DataIntegrationCustomProvider as bn, InvitationResentEvent as bo, AuthorizationCheckOptions as bp, UpdateApplicationOptions as br, UnknownEvent as bs, CreateAuditLogEventRequestOptions as bt, SerializedCreateMagicAuthOptions as bu, PortalLinkResponseWire as c, AuthenticationPasswordFailedEvent as ca, SerializedAddGroupOrganizationMembershipOptions as cc, ImpersonatorResponse as cd, DirectoryUserWithGroupsResponse as cf, SerializedAgentRegistrationClaim as ci, SendInvitationOptions as cl, EnvironmentRoleListResponse as cm, DataIntegrationAccessTokenResponseAccessTokenResponse as cn, GroupMemberAddedEvent as co, RoleAssignmentResource as cp, ConnectApplicationM2MResponse as cr, PermissionUpdatedEvent as cs, WidgetSessionTokenResponseWire as ct, EmailVerificationEventResponse as cu, IntentOptions as d, AuthenticationPasswordSucceededEventResponse as da, RuntimeClientOptions as dc, AuthenticateUserWithRefreshTokenCredentials as dd, OrganizationRoleEventResponse as df, PKCEPair as di, SerializedRevokeSessionOptions as dl, ListDirectoryGroupsOptions as dm, DataIntegrationCredentialsResponseCredentialResponse as dn, GroupMemberEventResponseData as do, RoleAssignmentRole as dp, ConnectApplicationResponse as dr, RoleCreatedEventResponse as ds, FeatureFlagsRuntimeClient as dt, SerializedCreateUserOptions as du, AuthenticationOAuthFailedEvent as ea, ListGroupOrganizationMembershipsOptions as ec, AuthenticationMethod as ed, ConnectionResponse as ef, AgentIdentity as ei, Session as el, AddEnvironmentRolePermissionOptions as em, DataIntegrationsListResponseDataAuthMethods as en, FlagRuleUpdatedEvent as eo, BaseAssignRoleOptions as ep, ListEventOptions as er, PasswordResetCreatedEvent as es, ReadObjectOptions as et, InvitationEvent as eu, IntentOptionsResponse as f, AuthenticationRadarRiskDetectedEvent as fa, RemoveFlagTargetOptions as fc, AuthenticateWithRefreshTokenOptions as fd, OrganizationRoleResponse as ff, Actions as fi, serializeRevokeSessionOptions as fl, ListDirectoriesOptions as fm, DataIntegrationAuthorizeUrlResponse as fn, GroupMemberRemovedEvent as fo, RoleAssignmentSource as fp, ConnectApplicationRedirectUri as fr, RoleDeletedEvent as fs, CookieSession as ft, CreateUserApiKeyOptions as fu, UnauthorizedException as g, AuthenticationSSOSucceededEvent as ga, FlagPollResponse as gc, SerializedAuthenticateWithPasswordOptions as gd, RoleList as gf, ActionContext as gi, SerializedResendInvitationOptions as gl, DirectoryGroupResponse as gm, ConnectedAccountAuthMethod as gn, InvitationAcceptedEvent as go, ListResourcesForMembershipOptions as gp, DeleteClientSecretOptions as gr, SessionCreatedEvent as gs, SerializedCreateAuditLogSchemaOptions as gt, SerializedCreatePasswordResetOptions as gu, UnprocessableEntityException as h, AuthenticationSSOFailedEventResponse as ha, FlagPollEntry as hc, AuthenticateWithPasswordOptions as hd, RoleEventResponse as hf, UserRegistrationActionResponseData as hi, ResendInvitationOptions as hl, DirectoryGroup as hm, ConnectedAccountResponse as hn, GroupUpdatedEventResponse as ho, ListMembershipsForResourceOptions as hp, ExternalAuthCompleteResponseWire as hr, RoleUpdatedEventResponse as hs, CreateAuditLogSchemaResponse as ht, CreatePasswordResetOptions as hu, PublicUserManagement as i, AuthenticationPasskeyFailedEvent as ia, DeleteGroupOptions as ic, CreateUserResponseResponse as id, DefaultCustomAttributes as if, AgentRegistrationKind as ii, SendRadarSmsChallengeOptions as il, CreateEnvironmentRoleOptions as im, DataIntegrationsListResponseDataConnectedAccountAuthMethod as in, GroupCreatedEvent as io, SerializedListRoleAssignmentsForResourceOptions as ip, ApplicationCredentialsListItem as ir, PermissionCreatedEvent as is, DecryptDataKeyOptions as it, EnrollAuthFactorOptions as iu, Webhooks as j, DsyncGroupDeletedEventResponse as ja, ApiKey as jc, SerializedAuthenticateWithEmailVerificationOptions as jd, RemoveGroupRoleAssignmentsOptionsWithResourceExternalId as jf, DomainDataState as ji, LogoutURLOptions as jl, CryptoProvider as jm, GetUserConnectedAccountOptions as jn, OrganizationDomainCreatedEventResponse as jo, AuthorizationResource as jp, UserConsentOption as jr, VaultDataDeletedEvent as js, VerifyResponse as jt, FactorResponse as ju, WorkOSErrorData as k, DsyncGroupCreatedEventResponse as ka, CreateOrganizationApiKeyRequestOptions as kc, AuthenticateUserWithEmailVerificationCredentials as kd, RemoveGroupRoleAssignmentsOptions as kf, SerializedCreateOrganizationOptions as ki, MagicAuthEventResponse as kl, ResponseHeaderValue as km, CreateUserConnectedAccountOptions as kn, OrganizationDeletedResponse as ko, ListAuthorizationResourcesOptions as kp, ListApplicationsOptions as kr, VaultDataCreatedEvent as ks, AuditLogExportOptions as kt, AuthenticationFactorWithSecretsResponse as ku, GenerateLink as l, AuthenticationPasswordFailedEventResponse as la, RuntimeClientStats as lc, AuthenticateWithRefreshTokenPublicClientOptions as ld, ListOrganizationRolesResponse as lf, SerializedAgentRegistrationClaimCompletion as li, SerializedSendInvitationOptions as ll, EnvironmentRoleResponse as lm, DataIntegrationCredentialsResponseError as ln, GroupMemberAddedEventResponse as lo, RoleAssignmentResourceResponse as lp, ConnectApplicationOAuth as lr, PermissionUpdatedEventResponse as ls, CreateTokenOptions as lt, EmailVerificationResponse as lu, SSOIntentOptionsResponse as m, AuthenticationSSOFailedEvent as ma, FlagChange as mc, AuthenticateUserWithPasswordCredentials as md, RoleEvent as mf, ResponsePayload as mi, SerializedResetPasswordOptions as ml, PaginationOptions as mm, ConnectedAccount as mn, GroupUpdatedEvent as mo, ListMembershipsForResourceByExternalIdOptions as mp, ExternalAuthCompleteResponse as mr, RoleUpdatedEvent as ms, CreateAuditLogSchemaRequestOptions as mt, SerializedCreateUserApiKeyOptions as mu, PublicClientOptions as n, AuthenticationOAuthSucceededEvent as na, GroupResponse as nc, AuthenticationResponseResponse as nd, SSOAuthorizationURLOptions as nf, AgentRegistrationClaim as ni, SessionStatus as nl, SerializedUpdateEnvironmentRoleOptions as nm, DataIntegrationsListResponseDataConnectedAccountResponse as nn, FlagUpdatedEvent as no, ListRoleAssignmentsForResourceByExternalIdOptions as np, NewConnectApplicationSecret as nr, PasswordResetSucceededEvent as ns, CreateObjectEntity as nt, InvitationResponse as nu, createWorkOS as o, AuthenticationPasskeySucceededEvent as oa, SerializedCreateGroupOptions as oc, UserResponse as od, DirectoryUserResponse as of, SerializedAgentIdentity as oi, SendRadarSmsChallengeResponseResponse as ol, EnvironmentRole as om, DataIntegrationAccessTokenResponseWire as on, GroupDeletedEvent as oo, SerializedListRoleAssignmentsOptions as op, ConnectApplication as or, PermissionDeletedEvent as os, CreateDataKeyOptions as ot, EmailVerification as ou, SSOIntentOptions as p, AuthenticationRadarRiskDetectedEventResponse as pa, ListFeatureFlagsOptions as pc, SerializedAuthenticateWithRefreshTokenOptions as pd, Role as pf, AuthenticationActionResponseData as pi, ResetPasswordOptions as pl, SerializedListDirectoriesOptions as pm, DataIntegrationAuthorizeUrlResponseWire as pn, GroupMemberRemovedEventResponse as po, RoleAssignmentSourceResponse as pp, ConnectApplicationRedirectUriResponse as pr, RoleDeletedEventResponse as ps, CreateAuditLogSchemaOptions as pt, CreateUserApiKeyRequestOptions as pu, Actor as q, EventBase as qa, SerializedUpdateUserPasswordOptions as qc, OauthTokensResponse as qd, RemoveRoleOptions as qf, AuthenticationEmailVerificationSucceededEventResponse as qi, OrganizationMembershipResponse as ql, DataIntegrationCredentialsDtoResponse as qn, OrganizationRoleCreatedEventResponse as qo, AddOrganizationRolePermissionOptions as qp, ValidateAgentApiKeyOptions as qr, DataKey as qs, RadarStandaloneAssessRequestAction as qt, SerializedAuthenticateWithTotpOptions as qu, PublicSSO as r, AuthenticationOAuthSucceededEventResponse as ra, GetGroupOptions as rc, CreateUserResponse as rd, SSOPKCEAuthorizationURLResult as rf, AgentRegistrationClaimCompletion as ri, SendVerificationEmailOptions as rl, UpdateEnvironmentRoleOptions as rm, DataIntegrationsListResponseDataConnectedAccountState as rn, FlagUpdatedEventResponse as ro, ListRoleAssignmentsForResourceOptions as rp, NewConnectApplicationSecretResponse as rr, PasswordResetSucceededEventResponse as rs, CreateObjectOptions as rt, Identity as ru, PortalLinkResponse as s, AuthenticationPasskeySucceededEventResponse as sa, AddGroupOrganizationMembershipOptions as sc, Impersonator as sd, DirectoryUserWithGroups as sf, SerializedAgentRegistration as si, SerializedSendRadarSmsChallengeOptions as sl, EnvironmentRoleList as sm, DataIntegrationAccessTokenResponseAccessToken as sn, GroupDeletedEventResponse as so, RoleAssignment as sp, ConnectApplicationM2M as sr, PermissionDeletedEventResponse as ss, WidgetSessionTokenResponse as st, EmailVerificationEvent as su, ConfidentialClientOptions as t, AuthenticationOAuthFailedEventResponse as ta, Group as tc, AuthenticationResponse as td, ConnectionType as tf, AgentRegistration as ti, SessionResponse as tl, SetEnvironmentRolePermissionsOptions as tm, DataIntegrationsListResponseDataConnectedAccount as tn, FlagRuleUpdatedEventResponse as to, SerializedAssignRoleOptions as tp, SerializedListEventOptions as tr, PasswordResetCreatedEventResponse as ts, ReadObjectResponse as tt, InvitationEventResponse as tu, GenerateLinkResponse as u, AuthenticationPasswordSucceededEvent as ua, RuntimeClientLogger as uc, SerializedAuthenticateWithRefreshTokenPublicClientOptions as ud, OrganizationRoleEvent as uf, PKCE as ui, RevokeSessionOptions as ul, ListDirectoryUsersOptions as um, DataIntegrationCredentialsResponseCredential as un, GroupMemberEventData as uo, RoleAssignmentResponse as up, ConnectApplicationOAuthResponse as ur, RoleCreatedEvent as us, WidgetSessionTokenScopes as ut, CreateUserOptions as uu, RateLimitExceededException as v, ConnectionActivatedEvent as va, FeatureFlag as vc, AuthenticateWithOrganizationSelectionOptions as vd, ListEffectivePermissionsByExternalIdOptions as vf, UserData as vi, RefreshSessionResponse as vl, DirectoryResponse as vm, DataIntegrationResponse as vn, InvitationCreatedEvent as vo, ListResourcesForMembershipOptionsWithParentId as vp, ListApplicationClientSecretsOptions as vr, SessionRevokedEvent as vs, AuditLogTarget as vt, SerializedCreateOrganizationMembershipOptions as vu, AuthenticationErrorCode as w, DsyncActivatedEvent as wa, ValidateApiKeyResponse as wc, AuthenticateWithRadarEmailChallengeOptions as wd, GroupRoleAssignmentEntryWithResourceId as wf, OrganizationResponse as wi, PasswordResetResponse as wl, HttpClient as wm, DataIntegrationCredentialResponse as wn, MagicAuthCreatedEvent as wo, SerializedAuthorizationCheckOptions as wp, CreateM2MApplicationResponse as wr, UserDeletedEventResponse as ws, AuditLogSchemaMetadata as wt, AuthenticationRadarRiskDetectedEventResponseData as wu, NoApiKeyProvidedException as x, ConnectionDeactivatedEventResponse as xa, AddFlagTargetOptions as xc, AuthenticateWithRadarSmsChallengeOptions as xd, GroupRoleAssignmentEntry as xf, SerializedUpdateOrganizationOptions as xi, PasswordReset as xl, DirectoryType as xm, DataIntegrationCustomProviderResponse as xn, InvitationResentEventResponse as xo, AuthorizationCheckOptionsWithResourceExternalId as xp, GetApplicationOptions as xr, UserCreatedEvent as xs, SerializedCreateAuditLogEventOptions as xt, PKCEAuthorizationURLResult as xu, OauthException as y, ConnectionActivatedEventResponse as ya, FeatureFlagResponse as yc, SerializedAuthenticateWithOrganizationSelectionOptions as yd, ListEffectivePermissionsOptions as yf, UserDataPayload as yi, RetryableRefreshSessionFailureReason as yl, DirectoryState as ym, DataIntegrationState as yn, InvitationCreatedEventResponse as yo, SerializedListResourcesForMembershipOptions as yp, DeleteApplicationOptions as yr, SessionRevokedEventResponse as ys, CreateAuditLogEventOptions as yt, CreateMagicAuthOptions as yu, ObjectSummary as z, DsyncUserCreatedEventResponse as za, CreateOrganizationDomainOptions as zc, SerializedAuthenticatePublicClientBase as zd, CreateGroupRoleAssignmentOptionsWithResourceId as zf, ListResponse as zi, SerializedListSessionsOptions as zl, UpdateCustomProviderDefinitionResponse as zn, OrganizationDomainVerifiedEventResponse as zo, ListPermissionsOptions as zp, AgentCredentialType as zr, VaultDekReadEvent as zs, RadarListEntryAlreadyPresentResponseWire as zt, Sms as zu };
9917
- //# sourceMappingURL=factory-vzr4nni7.d.mts.map
10071
+ export { ReadObjectMetadataResponse as $, OrganizationMembershipDeletedResponse as $a, CreatedApiKey as $c, AuthenticateUserWithMagicAuthCredentials as $d, SerializedGroupRoleAssignmentEntry as $f, DsyncUserUpdatedEventResponse as $i, CreateMagicAuthResponseResponse as $l, HttpClientResponseInterface as $m, SerializedLinkClaimAttemptToExternalUserOptions as $n, VaultDataCreatedEventResponse as $o, DeleteAuthorizationResourceByExternalIdOptions as $p, ApiKeyCreatedEventResponse as $r, DataIntegrationAuthorizeUrlResponse as $s, PasswordlessSessionResponse as $t, AuthenticationFactorResponse as $u, ApiKeyRequiredException as A, InvitationResentEvent as Aa, AddGroupOrganizationMembershipOptions as Ac, CreateUserResponse as Ad, SSOPKCEAuthorizationURLResult as Af, ConnectionDeactivatedEvent as Ai, SendVerificationEmailOptions as Al, UpdateEnvironmentRoleOptions as Am, CompleteOAuth2Options as An, PipesConnectedAccountState as Ao, ListRoleAssignmentsForResourceOptions as Ap, DeleteItContactOptions as Ar, DeleteDataIntegrationOptions as As, SerializedAuditLogExportOptions as At, Identity as Au, ObjectSummaryResponse as B, OrganizationDomainCreatedEvent as Ba, FlagPollResponse as Bc, SerializedAuthenticateWithRefreshTokenOptions as Bd, Role as Bf, DsyncGroupDeletedEvent as Bi, ResetPasswordOptions as Bl, SerializedListDirectoriesOptions as Bm, AgentCredentialValidation as Bn, SessionCreatedEventResponse as Bo, RoleAssignmentSourceResponse as Bp, DomainData as Br, DataIntegrationsListResponseDataAuthMethods as Bs, RadarStandaloneResponse as Bt, CreateUserApiKeyRequestOptions as Bu, BadRequestException as C, GroupMemberRemovedEventResponse as Ca, ListGroupOrganizationMembershipsOptions as Cc, AuthenticateWithSessionCookieOptions as Cd, GetProfileAndTokenOptions as Cf, AuthenticationRadarRiskDetectedEventResponse as Ci, UpdateUserOptions as Cl, UpdateOrganizationRoleOptions as Cm, CreateM2MApplication as Cn, PipesConnectedAccountConnectionFailedEvent as Co, SerializedRemoveRoleOptions as Cp, Organization as Cr, UpdateCustomProviderDefinitionResponse as Cs, AuditLogSchema as Ct, SerializedListInvitationsOptions as Cu, isAuthenticationErrorData as D, InvitationAcceptedEventResponse as Da, DeleteGroupOptions as Dc, AuthenticationMethod as Dd, ConnectionResponse as Df, AuthenticationSSOSucceededEventResponse as Di, Session as Dl, AddEnvironmentRolePermissionOptions as Dm, RedirectUriInput as Dn, PipesConnectedAccountReauthorizationNeededEvent as Do, BaseAssignRoleOptions as Dp, ItContact as Dr, GetDataIntegrationOptions as Ds, AuditLogExport as Dt, InvitationEvent as Du, AuthenticationException as E, InvitationAcceptedEvent as Ea, GetGroupOptions as Ec, UserManagementAccessToken as Ed, ConnectionDomain as Ef, AuthenticationSSOSucceededEvent as Ei, AuthMethod as El, OrganizationRole as Em, CreateOAuthApplicationResponse as En, PipesConnectedAccountDisconnectedEventResponse as Eo, AssignRoleOptionsWithResourceId as Ep, ListOrganizationFeatureFlagsOptions as Er, GetUserConnectedAccountOptions as Es, AuditLogTargetSchema as Et, Invitation as Eu, UpdateWebhookEndpointEvents as F, MagicAuthCreatedEventResponse as Fa, RemoveFlagTargetOptions as Fc, ImpersonatorResponse as Fd, DirectoryUserWithGroupsResponse as Ff, DsyncActivatedEventResponse as Fi, SendInvitationOptions as Fl, EnvironmentRoleListResponse as Fm, UserObject as Fn, RoleDeletedEvent as Fo, RoleAssignmentResource as Fp, SerializedCreateItContactOptions as Fr, DataIntegrationsListResponseDataOwnership as Fs, Challenge as Ft, EmailVerificationEventResponse as Fu, ObjectMetadata as G, OrganizationDomainUpdatedEventResponse as Ga, EvaluationResource as Gc, AuthenticateWithOrganizationSelectionOptions as Gd, ListEffectivePermissionsByExternalIdOptions as Gf, DsyncGroupUserAddedEventResponse as Gi, RefreshSessionResponse as Gl, DirectoryResponse as Gm, ValidAgentCredential as Gn, UserCreatedEventResponse as Go, ListResourcesForMembershipOptionsWithParentId as Gp, PutOptions as Gr, DataIntegrationCustomProviderResponse as Gs, RadarListAction as Gt, SerializedCreateOrganizationMembershipOptions as Gu, ObjectVersionResponse as H, OrganizationDomainDeletedEvent as Ha, FeatureFlag as Hc, AuthenticateWithPasswordOptions as Hd, RoleEventResponse as Hf, DsyncGroupUpdatedEvent as Hi, ResendInvitationOptions as Hl, DirectoryGroup as Hm, SerializedAgentAccessTokenClaims as Hn, SessionRevokedEventResponse as Ho, ListMembershipsForResourceOptions as Hp, WorkOSResponseError as Hr, DataIntegrationResponse as Hs, RadarStandaloneResponseBlocklistType as Ht, CreatePasswordResetOptions as Hu, UpdateWebhookEndpointStatus as I, OrganizationCreatedEvent as Ia, ListFeatureFlagsOptions as Ic, AuthenticateWithRefreshTokenPublicClientOptions as Id, ListOrganizationRolesResponse as If, DsyncDeletedEvent as Ii, SerializedSendInvitationOptions as Il, EnvironmentRoleResponse as Im, UserObjectResponse as In, RoleDeletedEventResponse as Io, RoleAssignmentResourceResponse as Ip, SerializedInviteItContactOptions as Ir, DataIntegrationsListResponseDataConnectedAccount as Is, ChallengeResponse as It, EmailVerificationResponse as Iu, ActorResponse as J, OrganizationDomainVerifiedEvent as Ja, AddFlagTargetOptions as Jc, AuthenticateWithRadarSmsChallengeOptions as Jd, GroupRoleAssignmentEntry as Jf, DsyncUserCreatedEvent as Ji, PasswordReset as Jl, DirectoryType as Jm, ValidateAgentCredentialOptions as Jn, UserUpdatedEvent as Jo, AuthorizationCheckOptionsWithResourceExternalId as Jp, List as Jr, DataIntegrationCredentialsResponseCredential as Js, RadarStandaloneAssessRequestAuthMethod as Jt, PKCEAuthorizationURLResult as Ju, ObjectMetadataResponse as K, OrganizationDomainVerificationFailedEvent as Ka, LegacyEvaluationContext as Kc, SerializedAuthenticateWithOrganizationSelectionOptions as Kd, ListEffectivePermissionsOptions as Kf, DsyncGroupUserRemovedEvent as Ki, RetryableRefreshSessionFailureReason as Kl, DirectoryState as Km, ValidateAgentAccessTokenOptions as Kn, UserDeletedEvent as Ko, SerializedListResourcesForMembershipOptions as Kp, PostOptions as Kr, DataIntegrationCustomProviderAuthenticateVia as Ks, RadarListType as Kt, CreateMagicAuthOptions as Ku, CreateWebhookEndpointEvents as L, OrganizationCreatedResponse as La, FlagChange as Lc, SerializedAuthenticateWithRefreshTokenPublicClientOptions as Ld, OrganizationRoleEvent as Lf, DsyncDeletedEventResponse as Li, RevokeSessionOptions as Ll, ListDirectoryUsersOptions as Lm, AutoPaginatable as Ln, RoleUpdatedEvent as Lo, RoleAssignmentResponse as Lp, CreateOrganizationOptions as Lr, DataIntegrationsListResponseDataConnectedAccountResponse as Ls, ChallengeFactorOptions as Lt, CreateUserOptions as Lu, WebhookEndpoint as M, InvitationRevokedEvent as Ma, RuntimeClientStats as Mc, User as Md, DirectoryUser as Mf, ConnectionDeletedEvent as Mi, SendRadarSmsChallengeResponse as Ml, SerializedCreateEnvironmentRoleOptions as Mm, UserConsentOptionResponse as Mn, PipesConnectionFailedResponse as Mo, ListRoleAssignmentsOptions as Mp, ItContactIntent as Mr, DataIntegrationsListResponseWire as Ms, VerifyResponseResponse as Mt, SerializedEnrollUserInMfaFactorOptions as Mu, WebhookEndpointResponse as N, InvitationRevokedEventResponse as Na, RuntimeClientLogger as Nc, UserResponse as Nd, DirectoryUserResponse as Nf, ConnectionDeletedEventResponse as Ni, SendRadarSmsChallengeResponseResponse as Nl, EnvironmentRole as Nm, UserConsentOptionChoice as Nn, RoleCreatedEvent as No, SerializedListRoleAssignmentsOptions as Np, ListItContactsOptions as Nr, DataIntegrationsListResponseData as Ns, VerifyChallengeOptions as Nt, EmailVerification as Nu, GenericServerException as O, InvitationCreatedEvent as Oa, CreateGroupOptions as Oc, AuthenticationResponse as Od, ConnectionType as Of, ConnectionActivatedEvent as Oi, SessionResponse as Ol, SetEnvironmentRolePermissionsOptions as Om, RedirectUriInputResponse as On, PipesConnectedAccountReauthorizationNeededEventResponse as Oo, SerializedAssignRoleOptions as Op, ItContactResponse as Or, GetAccessTokenOptions as Os, AuditLogExportResponse as Ot, InvitationEventResponse as Ou, WebhookEndpointStatus as P, MagicAuthCreatedEvent as Pa, RuntimeClientOptions as Pc, Impersonator as Pd, DirectoryUserWithGroups as Pf, DsyncActivatedEvent as Pi, SerializedSendRadarSmsChallengeOptions as Pl, EnvironmentRoleList as Pm, UserConsentOptionChoiceResponse as Pn, RoleCreatedEventResponse as Po, RoleAssignment as Pp, RevokeItContactOptions as Pr, DataIntegrationsListResponseDataResponse as Ps, EnrollFactorOptions as Pt, EmailVerificationEvent as Pu, UpdateObjectOptions as Q, OrganizationMembershipDeleted as Qa, ListOrganizationApiKeysOptions as Qc, SerializedAuthenticateWithRadarEmailChallengeOptions as Qd, ReplaceGroupRoleAssignmentsOptions as Qf, DsyncUserUpdatedEvent as Qi, CreateMagicAuthResponse as Ql, HttpClientInterface as Qm, SerializedClaimAttemptResponse as Qn, VaultDataCreatedEvent as Qo, DeleteAuthorizationResourceOptions as Qp, ApiKeyCreatedEvent as Qr, DataIntegrationCredentialType as Qs, PasswordlessSession as Qt, AuthenticationFactor as Qu, WorkOS as R, OrganizationDeletedEvent as Ra, FlagCustomTarget as Rc, AuthenticateUserWithRefreshTokenCredentials as Rd, OrganizationRoleEventResponse as Rf, DsyncGroupCreatedEvent as Ri, SerializedRevokeSessionOptions as Rl, ListDirectoryGroupsOptions as Rm, AgentAccessTokenClaims as Rn, RoleUpdatedEventResponse as Ro, RoleAssignmentRole as Rp, CreateOrganizationRequestOptions as Rr, DataIntegrationsListResponseDataConnectedAccountState as Rs, RadarListEntryAlreadyPresentResponse as Rt, SerializedCreateUserOptions as Ru, ConflictException as S, GroupMemberRemovedEvent as Sa, ListGroupsOptions as Sc, AuthenticateWithSessionCookieFailureReason as Sd, SerializedListConnectionsOptions as Sf, AuthenticationRadarRiskDetectedEvent as Si, SerializedUpdateUserOptions as Sl, SerializedUpdateOrganizationRoleOptions as Sm, CreateApplicationOptions as Sn, PipesConnectedAccountConnectedEventResponse as So, RemoveRoleOptionsWithResourceId as Sp, UpdateOrganizationOptions as Sr, UpdateCustomProviderDefinition as Ss, AuditLogActorSchema as St, ListInvitationsOptions as Su, AuthenticationErrorData as T, GroupUpdatedEventResponse as Ta, GroupResponse as Tc, SessionCookieData as Td, Connection as Tf, AuthenticationSSOFailedEventResponse as Ti, UpdateOrganizationMembershipOptions as Tl, SerializedCreateOrganizationRoleOptions as Tm, CreateOAuthApplication as Tn, PipesConnectedAccountDisconnectedEvent as To, AssignRoleOptionsWithResourceExternalId as Tp, ListOrganizationsOptions as Tr, ListUserDataProvidersOptions as Ts, AuditLogSchemaResponse as Tt, ListAuthFactorsOptions as Tu, VaultObject as U, OrganizationDomainDeletedEventResponse as Ua, FeatureFlagResponse as Uc, SerializedAuthenticateWithPasswordOptions as Ud, RoleList as Uf, DsyncGroupUpdatedEventResponse as Ui, SerializedResendInvitationOptions as Ul, DirectoryGroupResponse as Um, SerializedAgentCredentialValidation as Un, UnknownEvent as Uo, ListResourcesForMembershipOptions as Up, WorkOSOptions as Ur, DataIntegrationState as Us, RadarStandaloneResponseControl as Ut, SerializedCreatePasswordResetOptions as Uu, ObjectVersion as V, OrganizationDomainCreatedEventResponse as Va, FlagTarget as Vc, AuthenticateUserWithPasswordCredentials as Vd, RoleEvent as Vf, DsyncGroupDeletedEventResponse as Vi, SerializedResetPasswordOptions as Vl, PaginationOptions as Vm, InvalidAgentCredential as Vn, SessionRevokedEvent as Vo, ListMembershipsForResourceByExternalIdOptions as Vp, DomainDataState as Vr, DataIntegration as Vs, RadarStandaloneResponseWire as Vt, SerializedCreateUserApiKeyOptions as Vu, VaultObjectResponse as W, OrganizationDomainUpdatedEvent as Wa, EvaluationContext as Wc, AuthenticateUserWithOrganizationSelectionCredentials as Wd, RoleResponse as Wf, DsyncGroupUserAddedEvent as Wi, RefreshSessionFailureReason as Wl, Directory as Wm, SerializedValidateAgentCredentialOptions as Wn, UserCreatedEvent as Wo, ListResourcesForMembershipOptionsWithParentExternalId as Wp, UnprocessableEntityError as Wr, DataIntegrationCustomProvider as Ws, RadarStandaloneResponseVerdict as Wt, CreateOrganizationMembershipOptions as Wu, CreateDataKeyResponseWire as X, OrganizationMembershipCreated as Xa, ValidateApiKeyOptions as Xc, AuthenticateUserWithRadarEmailChallengeCredentials as Xd, GroupRoleAssignmentEntryWithResourceExternalId as Xf, DsyncUserDeletedEvent as Xi, PasswordResetEventResponse as Xl, EventDirectoryResponse as Xm, ClaimAttemptResponse as Xn, VaultByokKeyVerificationCompletedEvent as Xo, AuthorizationCheckResult as Xp, GetOptions as Xr, DataIntegrationCredential as Xs, CreatePasswordlessSessionOptions as Xt, AuthenticationRadarRiskDetectedEventData as Xu, CreateDataKeyResponse as Y, OrganizationDomainVerifiedEventResponse as Ya, SerializedValidateApiKeyResponse as Yc, SerializedAuthenticateWithRadarSmsChallengeOptions as Yd, GroupRoleAssignmentEntryForOrganization as Yf, DsyncUserCreatedEventResponse as Yi, PasswordResetEvent as Yl, EventDirectory as Ym, ClaimAttemptOrganization as Yn, UserUpdatedEventResponse as Yo, AuthorizationCheckOptionsWithResourceId as Yp, ListResponse as Yr, DataIntegrationCredentialsResponseCredentialResponse as Ys, SendSessionResponse as Yt, UserManagementAuthorizationURLOptions as Yu, UpdateObjectEntity as Z, OrganizationMembershipCreatedResponse as Za, ValidateApiKeyResponse as Zc, AuthenticateWithRadarEmailChallengeOptions as Zd, GroupRoleAssignmentEntryWithResourceId as Zf, DsyncUserDeletedEventResponse as Zi, PasswordResetResponse as Zl, HttpClient as Zm, LinkClaimAttemptToExternalUserOptions as Zn, VaultByokKeyVerificationCompletedEventResponse as Zo, SerializedAuthorizationCheckOptions as Zp, GenerateLinkIntent as Zr, DataIntegrationCredentialResponse as Zs, SerializedCreatePasswordlessSessionOptions as Zt, AuthenticationRadarRiskDetectedEventResponseData as Zu, SignatureVerificationException as _, GroupDeletedEventResponse as _a, ConnectedAccountAuthMethod as _c, AuthenticationEventSsoResponse as _d, Profile as _f, AuthenticationPasskeySucceededEventResponse as _i, UserApiKeyWithValue as _l, Permission as _m, CreateApplicationClientSecretOptions as _n, PermissionDeletedEventResponse as _o, GroupRoleAssignmentResponse as _p, ActionPayload as _r, DataKeyPair as _s, AuditLogActor as _t, BaseOrganizationMembership as _u, PublicWorkOS as a, EventResponse as aa, CreateUserConnectedAccountOptions as ac, FactorType as ad, AuthenticateWithCodeAndVerifierOptions as af, AuthenticationMagicAuthFailedEventResponse as ai, SerializedApiKey as al, AuthorizationResourceResponse as am, ApplicationCredentialsListItemResponse as an, OrganizationRoleDeletedEventResponse as ao, RemoveGroupRoleAssignmentsOptionsWithResourceId as ap, AgentRegistrationStatus as ar, VaultDataUpdatedEventResponse as as, DecryptDataKeyResponse as at, Locale as au, NotFoundException as b, GroupMemberEventData as ba, UpdateGroupOptions as bc, SerializedAuthenticateWithTotpOptions as bd, OauthTokensResponse as bf, AuthenticationPasswordSucceededEvent as bi, SerializedUpdateUserPasswordOptions as bl, AddOrganizationRolePermissionOptions as bm, UpdateApplicationOptions as bn, PipesConnectedAccount as bo, RemoveRoleOptions as bp, UserRegistrationActionPayload as br, UpdateDataIntegrationOptions as bs, CreateAuditLogEventRequestOptions as bt, OrganizationMembershipResponse as bu, PortalLinkResponseWire as c, FlagDeletedEvent as ca, CustomProviderDefinitionResponse as cc, Totp as cd, AuthenticateWithCodeOptions as cf, AuthenticationMfaSucceededEvent as ci, OrganizationDomain as cl, CreateOptionsWithParentResourceId as cm, ConnectApplicationM2MResponse as cn, OrganizationUpdatedEvent as co, BaseCreateGroupRoleAssignmentOptions as cp, SerializedAgentRegistrationClaim as cr, VaultDekReadEvent as cs, WidgetSessionTokenResponseWire as ct, ListUserApiKeysOptions as cu, IntentOptions as d, FlagRuleUpdatedEventResponse as da, DataIntegrationCredentialsDtoResponse as dc, TotpWithSecretsResponse as dd, AuthenticateWithSessionOptions as df, AuthenticationOAuthFailedEventResponse as di, OrganizationDomainVerificationStrategy as dl, UpdateAuthorizationResourceOptions as dm, ConnectApplicationResponse as dn, PasswordResetCreatedEventResponse as do, CreateGroupRoleAssignmentOptionsWithResourceExternalId as dp, PKCEPair as dr, VaultKekCreatedEventResponse as ds, FeatureFlagsRuntimeClient as dt, ListSessionsOptions as du, EmailVerificationCreatedEvent as ea, DataIntegrationAuthorizeUrlResponseWire as ec, AuthenticationFactorType as ed, AuthenticateWithMagicAuthOptions as ef, RequestHeaders as eh, ApiKeyRevokedEvent as ei, SerializedCreatedApiKey as el, UpdateAuthorizationResourceByExternalIdOptions as em, ListEventOptions as en, OrganizationMembershipUpdated as eo, SerializedReplaceGroupRoleAssignmentsOptions as ep, AgentIdentity as er, VaultDataDeletedEvent as es, ReadObjectOptions as et, MagicAuth as eu, IntentOptionsResponse as f, FlagUpdatedEvent as fa, DataIntegrationCredentialsType as fc, Sms as fd, SerializedAuthenticatePublicClientBase as ff, AuthenticationOAuthSucceededEvent as fi, CreateOrganizationDomainOptions as fl, ListPermissionsOptions as fm, ConnectApplicationRedirectUri as fn, PasswordResetSucceededEvent as fo, CreateGroupRoleAssignmentOptionsWithResourceId as fp, Actions as fr, VaultMetadataReadEvent as fs, CookieSession as ft, SerializedListSessionsOptions as fu, UnauthorizedException as g, GroupDeletedEvent as ga, ConnectedAccountState as gc, AuthenticationEventSso as gd, ProfileAndTokenResponse as gf, AuthenticationPasskeySucceededEvent as gi, SerializedUserApiKeyWithValue as gl, SerializedCreatePermissionOptions as gm, DeleteClientSecretOptions as gn, PermissionDeletedEvent as go, GroupRoleAssignment as gp, ActionContext as gr, DataKey as gs, SerializedCreateAuditLogSchemaOptions as gt, AuthorizationOrganizationMembershipResponse as gu, UnprocessableEntityException as h, GroupCreatedEventResponse as ha, ConnectedAccountResponse as hc, AuthenticationEventResponse as hd, ProfileAndToken as hf, AuthenticationPasskeyFailedEventResponse as hi, VerifyEmailOptions as hl, CreatePermissionOptions as hm, ExternalAuthCompleteResponseWire as hn, PermissionCreatedEventResponse as ho, ListGroupRoleAssignmentsOptions as hp, UserRegistrationActionResponseData as hr, VaultNamesListedEventResponse as hs, CreateAuditLogSchemaResponse as ht, AuthorizationOrganizationMembership as hu, PublicUserManagement as i, EventName as ia, DataIntegrationAccessTokenResponseAccessTokenResponse as ic, FactorResponse as id, SerializedAuthenticateWithEmailVerificationOptions as if, CryptoProvider as ih, AuthenticationMagicAuthFailedEvent as ii, ApiKey as il, AuthorizationResource as im, ApplicationCredentialsListItem as in, OrganizationRoleDeletedEvent as io, RemoveGroupRoleAssignmentsOptionsWithResourceExternalId as ip, AgentRegistrationKind as ir, VaultDataUpdatedEvent as is, DecryptDataKeyOptions as it, LogoutURLOptions as iu, Webhooks as j, InvitationResentEventResponse as ja, SerializedAddGroupOrganizationMembershipOptions as jc, CreateUserResponseResponse as jd, DefaultCustomAttributes as jf, ConnectionDeactivatedEventResponse as ji, SendRadarSmsChallengeOptions as jl, CreateEnvironmentRoleOptions as jm, UserConsentOption as jn, PipesConnectionFailed as jo, SerializedListRoleAssignmentsForResourceOptions as jp, InviteItContactOptions as jr, DataIntegrationsListResponse as js, VerifyResponse as jt, EnrollAuthFactorOptions as ju, WorkOSErrorData as k, InvitationCreatedEventResponse as ka, SerializedCreateGroupOptions as kc, AuthenticationResponseResponse as kd, SSOAuthorizationURLOptions as kf, ConnectionActivatedEventResponse as ki, SessionStatus as kl, SerializedUpdateEnvironmentRoleOptions as km, ListApplicationsOptions as kn, PipesConnectedAccountResponse as ko, ListRoleAssignmentsForResourceByExternalIdOptions as kp, CreateItContactOptions as kr, DeleteUserConnectedAccountOptions as ks, AuditLogExportOptions as kt, InvitationResponse as ku, GenerateLink as l, FlagDeletedEventResponse as la, CustomProviderDefinitionAuthenticateVia as lc, TotpResponse as ld, SerializedAuthenticateWithCodeOptions as lf, AuthenticationMfaSucceededEventResponse as li, OrganizationDomainResponse as ll, SerializedCreateAuthorizationResourceOptions as lm, ConnectApplicationOAuth as ln, OrganizationUpdatedResponse as lo, CreateGroupRoleAssignmentOptions as lp, SerializedAgentRegistrationClaimCompletion as lr, VaultDekReadEventResponse as ls, CreateTokenOptions as lt, SerializedListUserApiKeysOptions as lu, SSOIntentOptionsResponse as m, GroupCreatedEvent as ma, ConnectedAccount as mc, AuthenticationEvent as md, WithResolvedClientId as mf, AuthenticationPasskeyFailedEvent as mi, SerializedVerifyEmailOptions as ml, UpdatePermissionOptions as mm, ExternalAuthCompleteResponse as mn, PermissionCreatedEvent as mo, GetGroupRoleAssignmentOptions as mp, ResponsePayload as mr, VaultNamesListedEvent as ms, CreateAuditLogSchemaRequestOptions as mt, SerializedListOrganizationMembershipsOptions as mu, PublicClientOptions as n, Event as na, DataIntegrationAccessTokenResponseWire as nc, AuthenticationFactorWithSecretsResponse as nd, AuthenticateUserWithEmailVerificationCredentials as nf, ResponseHeaderValue as nh, AuthenticationEmailVerificationSucceededEvent as ni, CreateOrganizationApiKeyRequestOptions as nl, ListAuthorizationResourcesOptions as nm, NewConnectApplicationSecret as nn, OrganizationRoleCreatedEvent as no, RemoveGroupRoleAssignmentsOptions as np, AgentRegistrationClaim as nr, VaultDataReadEvent as ns, CreateObjectEntity as nt, MagicAuthEventResponse as nu, createWorkOS as o, FlagCreatedEvent as oa, CreateDataIntegrationOptions as oc, FactorWithSecrets as od, SerializedAuthenticateWithCodeAndVerifierOptions as of, AuthenticationMagicAuthSucceededEvent as oi, OrganizationDomainVerificationFailed as ol, CreateAuthorizationResourceOptions as om, ConnectApplication as on, OrganizationRoleUpdatedEvent as oo, SerializedRemoveGroupRoleAssignmentsOptions as op, SerializedAgentIdentity as or, VaultDekDecryptedEvent as os, CreateDataKeyOptions as ot, ListUsersOptions as ou, SSOIntentOptions as p, FlagUpdatedEventResponse as pa, CreateDataIntegrationCredentialOptions as pc, SmsResponse as pd, SerializedAuthenticateWithOptionsBase as pf, AuthenticationOAuthSucceededEventResponse as pi, SerializedCreateOrganizationDomainOptions as pl, SerializedUpdatePermissionOptions as pm, ConnectApplicationRedirectUriResponse as pn, PasswordResetSucceededEventResponse as po, SerializedCreateGroupRoleAssignmentOptions as pp, AuthenticationActionResponseData as pr, VaultMetadataReadEventResponse as ps, CreateAuditLogSchemaOptions as pt, ListOrganizationMembershipsOptions as pu, Actor as q, OrganizationDomainVerificationFailedEventResponse as qa, TypedEvaluationContext as qc, AuthenticateUserWithRadarSmsChallengeCredentials as qd, BaseGroupRoleAssignmentEntry as qf, DsyncGroupUserRemovedEventResponse as qi, TerminalRefreshSessionFailureReason as ql, DirectoryStateResponse as qm, ValidateAgentApiKeyOptions as qn, UserDeletedEventResponse as qo, AuthorizationCheckOptions as qp, PatchOptions as qr, DataIntegrationCredentialsResponseError as qs, RadarStandaloneAssessRequestAction as qt, SerializedCreateMagicAuthOptions as qu, PublicSSO as r, EventBase as ra, DataIntegrationAccessTokenResponseAccessToken as rc, Factor as rd, AuthenticateWithEmailVerificationOptions as rf, ResponseHeaders as rh, AuthenticationEmailVerificationSucceededEventResponse as ri, SerializedCreateOrganizationApiKeyOptions as rl, SerializedListAuthorizationResourcesOptions as rm, NewConnectApplicationSecretResponse as rn, OrganizationRoleCreatedEventResponse as ro, RemoveGroupRoleAssignmentsOptionsForOrganization as rp, AgentRegistrationClaimCompletion as rr, VaultDataReadEventResponse as rs, CreateObjectOptions as rt, MagicAuthResponse as ru, PortalLinkResponse as s, FlagCreatedEventResponse as sa, CustomProviderDefinition as sc, FactorWithSecretsResponse as sd, AuthenticateUserWithCodeCredentials as sf, AuthenticationMagicAuthSucceededEventResponse as si, OrganizationDomainVerificationFailedResponse as sl, CreateOptionsWithParentExternalId as sm, ConnectApplicationM2M as sn, OrganizationRoleUpdatedEventResponse as so, RemoveGroupRoleAssignmentOptions as sp, SerializedAgentRegistration as sr, VaultDekDecryptedEventResponse as ss, WidgetSessionTokenResponse as st, SerializedListUsersOptions as su, ConfidentialClientOptions as t, EmailVerificationCreatedEventResponse as ta, DataIntegrationAccessTokenResponse as tc, AuthenticationFactorWithSecrets as td, SerializedAuthenticateWithMagicAuthOptions as tf, RequestOptions as th, ApiKeyRevokedEventResponse as ti, CreateOrganizationApiKeyOptions as tl, GetAuthorizationResourceByExternalIdOptions as tm, SerializedListEventOptions as tn, OrganizationMembershipUpdatedResponse as to, BaseRemoveGroupRoleAssignmentsOptions as tp, AgentRegistration as tr, VaultDataDeletedEventResponse as ts, ReadObjectResponse as tt, MagicAuthEvent as tu, GenerateLinkResponse as u, FlagRuleUpdatedEvent as ua, DataIntegrationCredentialsDto as uc, TotpWithSecrets as ud, AuthenticateWithOptionsBase as uf, AuthenticationOAuthFailedEvent as ui, OrganizationDomainState as ul, SerializedUpdateAuthorizationResourceOptions as um, ConnectApplicationOAuthResponse as un, PasswordResetCreatedEvent as uo, CreateGroupRoleAssignmentOptionsForOrganization as up, PKCE as ur, VaultKekCreatedEvent as us, WidgetSessionTokenScopes as ut, ListUserFeatureFlagsOptions as uu, RateLimitExceededException as v, GroupMemberAddedEvent as va, AuthorizeDataIntegrationOptions as vc, AuthenticateUserWithTotpCredentials as vd, ProfileResponse as vf, AuthenticationPasswordFailedEvent as vi, SerializedUserApiKey as vl, PermissionResponse as vm, ListApplicationClientSecretsOptions as vn, PermissionUpdatedEvent as vo, RemoveRoleAssignmentOptions as vp, UserData as vr, KeyContext as vs, AuditLogTarget as vt, BaseOrganizationMembershipResponse as vu, AuthenticationErrorCode as w, GroupUpdatedEvent as wa, Group as wc, AuthenticateWithSessionCookieSuccessResponse as wd, GetProfileOptions as wf, AuthenticationSSOFailedEvent as wi, SerializedUpdateOrganizationMembershipOptions as wl, CreateOrganizationRoleOptions as wm, CreateM2MApplicationResponse as wn, PipesConnectedAccountConnectionFailedEventResponse as wo, AssignRoleOptions as wp, OrganizationResponse as wr, UpdateCustomProviderDefinitionAuthenticateVia as ws, AuditLogSchemaMetadata as wt, ListGroupsForOrganizationMembershipOptions as wu, NoApiKeyProvidedException as x, GroupMemberEventResponseData as xa, RemoveGroupOrganizationMembershipOptions as xc, AuthenticateWithSessionCookieFailedResponse as xd, ListConnectionsOptions as xf, AuthenticationPasswordSucceededEventResponse as xi, UpdateUserPasswordOptions as xl, SetOrganizationRolePermissionsOptions as xm, GetApplicationOptions as xn, PipesConnectedAccountConnectedEvent as xo, RemoveRoleOptionsWithResourceExternalId as xp, SerializedUpdateOrganizationOptions as xr, UpdateDataIntegrationApiKeyOptions as xs, SerializedCreateAuditLogEventOptions as xt, OrganizationMembershipStatus as xu, OauthException as y, GroupMemberAddedEventResponse as ya, SerializedUpdateGroupOptions as yc, AuthenticateWithTotpOptions as yd, OauthTokens as yf, AuthenticationPasswordFailedEventResponse as yi, UserApiKey as yl, RemoveOrganizationRolePermissionOptions as ym, DeleteApplicationOptions as yn, PermissionUpdatedEventResponse as yo, BaseRemoveRoleOptions as yp, UserDataPayload as yr, UpdateUserConnectedAccountOptions as ys, CreateAuditLogEventOptions as yt, OrganizationMembership as yu, ObjectSummary as z, OrganizationDeletedResponse as za, FlagPollEntry as zc, AuthenticateWithRefreshTokenOptions as zd, OrganizationRoleResponse as zf, DsyncGroupCreatedEventResponse as zi, serializeRevokeSessionOptions as zl, ListDirectoriesOptions as zm, AgentCredentialType as zn, SessionCreatedEvent as zo, RoleAssignmentSource as zp, SerializedCreateOrganizationOptions as zr, DataIntegrationsListResponseDataConnectedAccountAuthMethod as zs, RadarListEntryAlreadyPresentResponseWire as zt, CreateUserApiKeyOptions as zu };
10072
+ //# sourceMappingURL=factory-CCkRzS83.d.mts.map