@workos-inc/node 11.0.0 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -0
- package/lib/{factory-C86kGSc7.d.cts → factory-2iQbHj6d.d.cts} +2196 -1437
- package/lib/{factory-G1JU2hJz.d.mts → factory-2iQbHj6d.d.mts} +2126 -1366
- package/lib/{factory-BbGPjwhL.mjs → factory-99SwwalC.mjs} +1259 -583
- package/lib/factory-99SwwalC.mjs.map +1 -0
- package/lib/{factory-DJd6WXWm.cjs → factory-Dagoc4rv.cjs} +1263 -581
- package/lib/factory-Dagoc4rv.cjs.map +1 -0
- package/lib/index.cjs +61 -2
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +60 -6
- package/lib/index.d.mts +60 -6
- package/lib/index.mjs +60 -3
- package/lib/index.mjs.map +1 -1
- package/lib/index.worker.cjs +2 -1
- package/lib/index.worker.d.cts +2 -2
- package/lib/index.worker.d.mts +2 -2
- package/lib/index.worker.mjs +2 -2
- package/lib/{webapi-C2FQ2NNL.mjs → webapi-CfgZkeeN.mjs} +13 -2
- package/lib/{webapi-C2FQ2NNL.mjs.map → webapi-CfgZkeeN.mjs.map} +1 -1
- package/lib/webapi-MD5xmNba.cjs.map +1 -1
- package/package.json +2 -2
- package/lib/factory-BbGPjwhL.mjs.map +0 -1
- package/lib/factory-DJd6WXWm.cjs.map +0 -1
- package/lib/rolldown-runtime-D7D4PA-g.mjs +0 -13
|
@@ -164,128 +164,582 @@ declare abstract class HttpClient implements HttpClientInterface {
|
|
|
164
164
|
//#region src/common/crypto/decode-payload.d.ts
|
|
165
165
|
type WebhookPayload = string | Uint8Array | ArrayBuffer | object;
|
|
166
166
|
//#endregion
|
|
167
|
-
//#region src/
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
167
|
+
//#region src/common/interfaces/pagination-options.interface.d.ts
|
|
168
|
+
interface PaginationOptions {
|
|
169
|
+
limit?: number;
|
|
170
|
+
before?: string | null;
|
|
171
|
+
after?: string | null;
|
|
172
|
+
order?: 'asc' | 'desc';
|
|
173
|
+
}
|
|
174
|
+
//#endregion
|
|
175
|
+
//#region src/agents/interfaces/agent-blueprint.interface.d.ts
|
|
176
|
+
/** Who may mint sessions from an agent blueprint. */
|
|
177
|
+
interface AgentBlueprintInvocableBy {
|
|
178
|
+
/**
|
|
179
|
+
* Role slugs whose members may mint user-delegated sessions from the
|
|
180
|
+
* blueprint. An empty list allows any member.
|
|
181
|
+
*/
|
|
182
|
+
roleSlugs: string[];
|
|
183
|
+
/**
|
|
184
|
+
* Organizations in which sessions may be minted from the blueprint. An empty
|
|
185
|
+
* list allows any organization in the environment.
|
|
186
|
+
*/
|
|
187
|
+
organizationIds: string[];
|
|
188
|
+
}
|
|
189
|
+
interface SerializedAgentBlueprintInvocableBy {
|
|
190
|
+
role_slugs: string[];
|
|
191
|
+
organization_ids: string[];
|
|
192
|
+
}
|
|
193
|
+
/** Token and session lifetimes for sessions minted from an agent blueprint. */
|
|
194
|
+
interface AgentBlueprintSessionSettings {
|
|
195
|
+
/**
|
|
196
|
+
* Maximum lifetime of a session in seconds; refreshes never extend a session
|
|
197
|
+
* past this. At most 31,536,000 (365 days).
|
|
198
|
+
*/
|
|
199
|
+
maxAgeSeconds: number;
|
|
200
|
+
/** Lifetime of each minted access token in seconds. At most 3,600 (1 hour). */
|
|
201
|
+
accessTokenTtlSeconds: number;
|
|
202
|
+
/** Lifetime of each rotated refresh token in seconds. At most 5,184,000 (60 days). */
|
|
203
|
+
refreshTokenTtlSeconds: number;
|
|
204
|
+
}
|
|
205
|
+
interface SerializedAgentBlueprintSessionSettings {
|
|
206
|
+
max_age_seconds: number;
|
|
207
|
+
access_token_ttl_seconds: number;
|
|
208
|
+
refresh_token_ttl_seconds: number;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* An agent blueprint: the template describing what an agent may do (its
|
|
212
|
+
* permission ceiling), who may invoke it, and the lifetimes of its sessions.
|
|
213
|
+
*/
|
|
214
|
+
interface AgentBlueprint {
|
|
215
|
+
object: 'agent_blueprint';
|
|
216
|
+
/** Unique identifier of the agent blueprint. */
|
|
175
217
|
id: string;
|
|
176
|
-
/**
|
|
177
|
-
domain: string;
|
|
178
|
-
/** External Key for the Directory. */
|
|
179
|
-
externalKey: string;
|
|
180
|
-
/** The name of the directory. */
|
|
218
|
+
/** Human-readable name of the agent blueprint. */
|
|
181
219
|
name: string;
|
|
182
|
-
/**
|
|
220
|
+
/** Human-readable description of the agent blueprint. */
|
|
221
|
+
description: string | null;
|
|
222
|
+
/**
|
|
223
|
+
* Permission slugs forming the ceiling on what sessions minted from the
|
|
224
|
+
* blueprint may do.
|
|
225
|
+
*/
|
|
226
|
+
permissions: string[];
|
|
227
|
+
/** Who may mint sessions from the blueprint. */
|
|
228
|
+
invocableBy: AgentBlueprintInvocableBy;
|
|
229
|
+
/** Token and session lifetimes for sessions minted from the blueprint. */
|
|
230
|
+
sessionSettings: AgentBlueprintSessionSettings;
|
|
231
|
+
/** An ISO 8601 timestamp. */
|
|
232
|
+
createdAt: Date;
|
|
233
|
+
/** An ISO 8601 timestamp. */
|
|
234
|
+
updatedAt: Date;
|
|
235
|
+
}
|
|
236
|
+
interface SerializedAgentBlueprint {
|
|
237
|
+
object: 'agent_blueprint';
|
|
238
|
+
id: string;
|
|
239
|
+
name: string;
|
|
240
|
+
description: string | null;
|
|
241
|
+
permissions: string[];
|
|
242
|
+
invocable_by: SerializedAgentBlueprintInvocableBy;
|
|
243
|
+
session_settings: SerializedAgentBlueprintSessionSettings;
|
|
244
|
+
created_at: string;
|
|
245
|
+
updated_at: string;
|
|
246
|
+
}
|
|
247
|
+
/** Options for creating an agent blueprint. */
|
|
248
|
+
interface CreateAgentBlueprintOptions {
|
|
249
|
+
/** Human-readable name of the agent blueprint. */
|
|
250
|
+
name: string;
|
|
251
|
+
/** Human-readable description of the agent blueprint. */
|
|
252
|
+
description?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Permission slugs forming the ceiling on what sessions minted from the
|
|
255
|
+
* blueprint may do. Each slug must exist in the environment.
|
|
256
|
+
*/
|
|
257
|
+
permissions?: string[];
|
|
258
|
+
/** Who may mint sessions from the blueprint. */
|
|
259
|
+
invocableBy?: {
|
|
260
|
+
roleSlugs?: string[];
|
|
261
|
+
organizationIds?: string[];
|
|
262
|
+
};
|
|
263
|
+
/** Token and session lifetimes for sessions minted from the blueprint. */
|
|
264
|
+
sessionSettings: {
|
|
265
|
+
maxAgeSeconds: number;
|
|
266
|
+
accessTokenTtlSeconds: number;
|
|
267
|
+
refreshTokenTtlSeconds: number;
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
interface SerializedCreateAgentBlueprintOptions {
|
|
271
|
+
name: string;
|
|
272
|
+
description?: string;
|
|
273
|
+
permissions?: string[];
|
|
274
|
+
invocable_by?: {
|
|
275
|
+
role_slugs?: string[];
|
|
276
|
+
organization_ids?: string[];
|
|
277
|
+
};
|
|
278
|
+
session_settings: SerializedAgentBlueprintSessionSettings;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Options for updating an agent blueprint. Omitted fields are left unchanged;
|
|
282
|
+
* provided lists replace the existing configuration.
|
|
283
|
+
*/
|
|
284
|
+
interface UpdateAgentBlueprintOptions {
|
|
285
|
+
/** Unique identifier of the agent blueprint. */
|
|
286
|
+
agentBlueprintId: string;
|
|
287
|
+
/** Human-readable name of the agent blueprint. */
|
|
288
|
+
name?: string;
|
|
289
|
+
/** Human-readable description of the agent blueprint, or `null` to clear it. */
|
|
290
|
+
description?: string | null;
|
|
291
|
+
/**
|
|
292
|
+
* Permission slugs forming the ceiling on what sessions minted from the
|
|
293
|
+
* blueprint may do. Each slug must exist in the environment.
|
|
294
|
+
*/
|
|
295
|
+
permissions?: string[];
|
|
296
|
+
/** Who may mint sessions from the blueprint. */
|
|
297
|
+
invocableBy?: {
|
|
298
|
+
roleSlugs?: string[];
|
|
299
|
+
organizationIds?: string[];
|
|
300
|
+
};
|
|
301
|
+
/** Token and session lifetimes for sessions minted from the blueprint. */
|
|
302
|
+
sessionSettings?: {
|
|
303
|
+
maxAgeSeconds?: number;
|
|
304
|
+
accessTokenTtlSeconds?: number;
|
|
305
|
+
refreshTokenTtlSeconds?: number;
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
interface SerializedUpdateAgentBlueprintOptions {
|
|
309
|
+
name?: string;
|
|
310
|
+
description?: string | null;
|
|
311
|
+
permissions?: string[];
|
|
312
|
+
invocable_by?: {
|
|
313
|
+
role_slugs?: string[];
|
|
314
|
+
organization_ids?: string[];
|
|
315
|
+
};
|
|
316
|
+
session_settings?: {
|
|
317
|
+
max_age_seconds?: number;
|
|
318
|
+
access_token_ttl_seconds?: number;
|
|
319
|
+
refresh_token_ttl_seconds?: number;
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
/** Options for listing agent blueprints. */
|
|
323
|
+
type ListAgentBlueprintsOptions = PaginationOptions;
|
|
324
|
+
//#endregion
|
|
325
|
+
//#region src/agents/interfaces/agent-instance.interface.d.ts
|
|
326
|
+
/** How an agent instance was minted. */
|
|
327
|
+
type AgentInstanceType = 'delegated' | 'autonomous';
|
|
328
|
+
/** A concrete agent minted from an agent blueprint. */
|
|
329
|
+
interface AgentInstance {
|
|
330
|
+
object: 'agent_instance';
|
|
331
|
+
/** Unique identifier of the agent instance. */
|
|
332
|
+
id: string;
|
|
333
|
+
/** Unique identifier of the agent blueprint the instance was minted from. */
|
|
334
|
+
agentBlueprintId: string;
|
|
335
|
+
/** Unique identifier of the Organization the instance belongs to. */
|
|
336
|
+
organizationId: string;
|
|
337
|
+
/**
|
|
338
|
+
* Unique identifier of the Organization Membership the instance acts on
|
|
339
|
+
* behalf of, or `null` for autonomous instances.
|
|
340
|
+
*/
|
|
341
|
+
organizationMembershipId: string | null;
|
|
342
|
+
/** How the instance was minted. */
|
|
343
|
+
type: AgentInstanceType;
|
|
344
|
+
/** An ISO 8601 timestamp. */
|
|
345
|
+
createdAt: Date;
|
|
346
|
+
/** An ISO 8601 timestamp. */
|
|
347
|
+
updatedAt: Date;
|
|
348
|
+
}
|
|
349
|
+
interface SerializedAgentInstance {
|
|
350
|
+
object: 'agent_instance';
|
|
351
|
+
id: string;
|
|
352
|
+
agent_blueprint_id: string;
|
|
353
|
+
organization_id: string;
|
|
354
|
+
organization_membership_id: string | null;
|
|
355
|
+
type: AgentInstanceType;
|
|
356
|
+
created_at: string;
|
|
357
|
+
updated_at: string;
|
|
358
|
+
}
|
|
359
|
+
/** Options for listing agent instances. */
|
|
360
|
+
interface ListAgentInstancesOptions extends PaginationOptions {
|
|
361
|
+
/** Filter instances to a single Organization. */
|
|
183
362
|
organizationId?: string;
|
|
184
|
-
/**
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
363
|
+
/** Filter instances to a single agent blueprint. */
|
|
364
|
+
agentBlueprintId?: string;
|
|
365
|
+
}
|
|
366
|
+
interface SerializedListAgentInstancesOptions extends PaginationOptions {
|
|
367
|
+
organization_id?: string;
|
|
368
|
+
agent_blueprint_id?: string;
|
|
369
|
+
}
|
|
370
|
+
//#endregion
|
|
371
|
+
//#region src/agents/interfaces/agent-registration.interface.d.ts
|
|
372
|
+
/** The lifecycle status of an agent registration. */
|
|
373
|
+
type AgentRegistrationStatus = 'unverified' | 'verified' | 'expired' | 'revoked';
|
|
374
|
+
/** The kind of agent registration, derived from its authentication method. */
|
|
375
|
+
type AgentRegistrationKind = 'anonymous' | 'service_auth' | 'identity_assertion';
|
|
376
|
+
/** The agent identity an agent registration belongs to. */
|
|
377
|
+
interface AgentIdentity {
|
|
378
|
+
/** Unique identifier of the agent identity. */
|
|
379
|
+
id: string;
|
|
380
|
+
/** The Userland user the agent identity is associated with, if any. */
|
|
381
|
+
userlandUserId: string | null;
|
|
382
|
+
/** An ISO 8601 timestamp. */
|
|
383
|
+
createdAt: Date;
|
|
384
|
+
/** An ISO 8601 timestamp. */
|
|
385
|
+
updatedAt: Date;
|
|
386
|
+
}
|
|
387
|
+
interface SerializedAgentIdentity {
|
|
388
|
+
id: string;
|
|
389
|
+
userland_user_id: string | null;
|
|
390
|
+
created_at: string;
|
|
391
|
+
updated_at: string;
|
|
392
|
+
}
|
|
393
|
+
/** The completion of an agent registration claim. */
|
|
394
|
+
interface AgentRegistrationClaimCompletion {
|
|
395
|
+
/** Unique identifier of the claim completion. */
|
|
396
|
+
id: string;
|
|
188
397
|
/** An ISO 8601 timestamp. */
|
|
189
|
-
createdAt:
|
|
398
|
+
createdAt: Date;
|
|
399
|
+
/** An ISO 8601 timestamp. */
|
|
400
|
+
updatedAt: Date;
|
|
190
401
|
/** An ISO 8601 timestamp. */
|
|
191
|
-
|
|
402
|
+
expiresAt: Date;
|
|
403
|
+
/** An ISO 8601 timestamp of when the registration was claimed. */
|
|
404
|
+
claimedAt: Date;
|
|
405
|
+
}
|
|
406
|
+
interface SerializedAgentRegistrationClaimCompletion {
|
|
407
|
+
id: string;
|
|
408
|
+
created_at: string;
|
|
409
|
+
updated_at: string;
|
|
410
|
+
expires_at: string;
|
|
411
|
+
claimed_at: string;
|
|
412
|
+
}
|
|
413
|
+
/** The claim state of an agent registration. */
|
|
414
|
+
interface AgentRegistrationClaim {
|
|
415
|
+
/** Unique identifier of the claim. */
|
|
416
|
+
id: string;
|
|
417
|
+
/** The completion of the claim, or `null` if it has not been claimed. */
|
|
418
|
+
claimCompletion: AgentRegistrationClaimCompletion | null;
|
|
419
|
+
/** An ISO 8601 timestamp. */
|
|
420
|
+
createdAt: Date;
|
|
421
|
+
/** An ISO 8601 timestamp. */
|
|
422
|
+
updatedAt: Date;
|
|
423
|
+
/** An ISO 8601 timestamp. */
|
|
424
|
+
expiresAt: Date;
|
|
425
|
+
}
|
|
426
|
+
interface SerializedAgentRegistrationClaim {
|
|
427
|
+
id: string;
|
|
428
|
+
claim_completion: SerializedAgentRegistrationClaimCompletion | null;
|
|
429
|
+
created_at: string;
|
|
430
|
+
updated_at: string;
|
|
431
|
+
expires_at: string;
|
|
432
|
+
}
|
|
433
|
+
/** A single agent registration. */
|
|
434
|
+
interface AgentRegistration {
|
|
435
|
+
/** Unique identifier of the agent registration. */
|
|
436
|
+
id: string;
|
|
437
|
+
/** The agent identity the registration belongs to. */
|
|
438
|
+
agentIdentity: AgentIdentity;
|
|
439
|
+
/** Unique identifier of the Organization the registration belongs to. */
|
|
440
|
+
organizationId: string;
|
|
441
|
+
/** The lifecycle status of the registration. */
|
|
442
|
+
status: AgentRegistrationStatus;
|
|
443
|
+
/** The kind of registration. */
|
|
444
|
+
kind: AgentRegistrationKind;
|
|
445
|
+
revokedAt: Date | null;
|
|
446
|
+
/** The claim state of the registration, or `null` if it has none. */
|
|
447
|
+
claim: AgentRegistrationClaim | null;
|
|
448
|
+
/** An ISO 8601 timestamp. */
|
|
449
|
+
createdAt: Date;
|
|
450
|
+
/** An ISO 8601 timestamp. */
|
|
451
|
+
updatedAt: Date;
|
|
452
|
+
}
|
|
453
|
+
interface SerializedAgentRegistration {
|
|
454
|
+
id: string;
|
|
455
|
+
agent_identity: SerializedAgentIdentity;
|
|
456
|
+
organization_id: string;
|
|
457
|
+
status: AgentRegistrationStatus;
|
|
458
|
+
kind: AgentRegistrationKind;
|
|
459
|
+
revoked_at: string | null;
|
|
460
|
+
claim: SerializedAgentRegistrationClaim | null;
|
|
461
|
+
created_at: string;
|
|
462
|
+
updated_at: string;
|
|
463
|
+
}
|
|
464
|
+
//#endregion
|
|
465
|
+
//#region src/agents/interfaces/agent-event.interface.d.ts
|
|
466
|
+
interface AgentBlueprintEventData extends AgentBlueprint {
|
|
467
|
+
invocableAs: {
|
|
468
|
+
instanceTypes: AgentInstanceType[];
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
interface AgentBlueprintEventResponseData extends SerializedAgentBlueprint {
|
|
472
|
+
invocable_as: {
|
|
473
|
+
instance_types: AgentInstanceType[];
|
|
474
|
+
};
|
|
192
475
|
}
|
|
193
|
-
interface
|
|
194
|
-
object: '
|
|
476
|
+
interface AgentBlueprintDeletedEventData {
|
|
477
|
+
object: 'agent_blueprint';
|
|
478
|
+
id: string;
|
|
479
|
+
name: string;
|
|
480
|
+
createdAt: Date;
|
|
481
|
+
updatedAt: Date;
|
|
482
|
+
}
|
|
483
|
+
interface AgentBlueprintDeletedEventResponseData {
|
|
484
|
+
object: 'agent_blueprint';
|
|
195
485
|
id: string;
|
|
196
|
-
domain: string;
|
|
197
|
-
external_key: string;
|
|
198
486
|
name: string;
|
|
199
|
-
organization_id?: string;
|
|
200
|
-
state: DirectoryStateResponse;
|
|
201
|
-
type: DirectoryType;
|
|
202
487
|
created_at: string;
|
|
203
488
|
updated_at: string;
|
|
204
489
|
}
|
|
205
|
-
interface
|
|
206
|
-
object: '
|
|
490
|
+
interface AgentInstanceSessionEventData {
|
|
491
|
+
object: 'agent_instance_session';
|
|
207
492
|
id: string;
|
|
208
|
-
|
|
493
|
+
agentInstanceId: string;
|
|
494
|
+
organizationId: string;
|
|
495
|
+
expiresAt: Date;
|
|
496
|
+
revokedAt: Date | null;
|
|
497
|
+
createdAt: Date;
|
|
498
|
+
updatedAt: Date;
|
|
209
499
|
}
|
|
210
|
-
interface
|
|
211
|
-
object: '
|
|
500
|
+
interface AgentInstanceSessionEventResponseData {
|
|
501
|
+
object: 'agent_instance_session';
|
|
212
502
|
id: string;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
createdAt: string;
|
|
220
|
-
updatedAt: string;
|
|
503
|
+
agent_instance_id: string;
|
|
504
|
+
organization_id: string;
|
|
505
|
+
expires_at: string;
|
|
506
|
+
revoked_at: string | null;
|
|
507
|
+
created_at: string;
|
|
508
|
+
updated_at: string;
|
|
221
509
|
}
|
|
222
|
-
interface
|
|
223
|
-
|
|
510
|
+
interface AgentInstanceSessionCreatedEventData extends AgentInstanceSessionEventData {
|
|
511
|
+
permissionSlugs: string[];
|
|
512
|
+
}
|
|
513
|
+
interface AgentInstanceSessionCreatedEventResponseData extends AgentInstanceSessionEventResponseData {
|
|
514
|
+
permission_slugs: string[];
|
|
515
|
+
}
|
|
516
|
+
type AgentRegistrationMethod = 'anonymous' | 'service_auth' | 'id_jag';
|
|
517
|
+
interface AgentRegistrationCreatedEventData {
|
|
518
|
+
object: 'agent_registration';
|
|
224
519
|
id: string;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
520
|
+
agentIdentity: {
|
|
521
|
+
object: 'agent_identity';
|
|
522
|
+
id: string;
|
|
523
|
+
userlandUserId: string | null;
|
|
524
|
+
};
|
|
525
|
+
organizationId: string;
|
|
526
|
+
status: AgentRegistrationStatus;
|
|
527
|
+
kind: AgentRegistrationKind;
|
|
528
|
+
method: AgentRegistrationMethod;
|
|
529
|
+
createdAt: Date;
|
|
530
|
+
updatedAt: Date;
|
|
531
|
+
}
|
|
532
|
+
interface AgentRegistrationCreatedEventResponseData {
|
|
533
|
+
object: 'agent_registration';
|
|
534
|
+
id: string;
|
|
535
|
+
agent_identity: {
|
|
536
|
+
object: 'agent_identity';
|
|
537
|
+
id: string;
|
|
538
|
+
userland_user_id: string | null;
|
|
539
|
+
};
|
|
540
|
+
organization_id: string;
|
|
541
|
+
status: AgentRegistrationStatus;
|
|
542
|
+
kind: AgentRegistrationKind;
|
|
543
|
+
method: AgentRegistrationMethod;
|
|
544
|
+
created_at: string;
|
|
545
|
+
updated_at: string;
|
|
546
|
+
}
|
|
547
|
+
interface AgentRegistrationClaimAttemptCreatedEventData {
|
|
548
|
+
object: 'agent_registration_claim_attempt';
|
|
549
|
+
id: string;
|
|
550
|
+
agentRegistrationId: string;
|
|
551
|
+
agentRegistrationClaimId: string;
|
|
552
|
+
loginHint: string;
|
|
553
|
+
expiresAt: Date;
|
|
554
|
+
createdAt: Date;
|
|
555
|
+
updatedAt: Date;
|
|
556
|
+
}
|
|
557
|
+
interface AgentRegistrationClaimAttemptCreatedEventResponseData {
|
|
558
|
+
object: 'agent_registration_claim_attempt';
|
|
559
|
+
id: string;
|
|
560
|
+
agent_registration_id: string;
|
|
561
|
+
agent_registration_claim_id: string;
|
|
562
|
+
login_hint: string;
|
|
563
|
+
expires_at: string;
|
|
564
|
+
created_at: string;
|
|
565
|
+
updated_at: string;
|
|
566
|
+
}
|
|
567
|
+
interface AgentRegistrationClaimCompletedEventData {
|
|
568
|
+
object: 'agent_registration_claim';
|
|
569
|
+
id: string;
|
|
570
|
+
agentRegistrationId: string;
|
|
571
|
+
completedByAttemptId: string;
|
|
572
|
+
claimedBy: {
|
|
573
|
+
userId: string;
|
|
574
|
+
organizationId: string | null;
|
|
575
|
+
};
|
|
576
|
+
completedAt: Date;
|
|
577
|
+
createdAt: Date;
|
|
578
|
+
updatedAt: Date;
|
|
579
|
+
}
|
|
580
|
+
interface AgentRegistrationClaimCompletedEventResponseData {
|
|
581
|
+
object: 'agent_registration_claim';
|
|
582
|
+
id: string;
|
|
583
|
+
agent_registration_id: string;
|
|
584
|
+
completed_by_attempt_id: string;
|
|
585
|
+
claimed_by: {
|
|
586
|
+
user_id: string;
|
|
587
|
+
organization_id: string | null;
|
|
588
|
+
};
|
|
589
|
+
completed_at: string;
|
|
590
|
+
created_at: string;
|
|
591
|
+
updated_at: string;
|
|
592
|
+
}
|
|
593
|
+
type AgentRegistrationCredentialDetail = {
|
|
594
|
+
kind: 'api_key';
|
|
595
|
+
apiKeyId: string;
|
|
596
|
+
} | {
|
|
597
|
+
kind: 'access_token';
|
|
598
|
+
jti: string;
|
|
599
|
+
expiresAt: Date | null;
|
|
600
|
+
};
|
|
601
|
+
type AgentRegistrationCredentialDetailResponse = {
|
|
602
|
+
kind: 'api_key';
|
|
603
|
+
api_key_id: string;
|
|
604
|
+
} | {
|
|
605
|
+
kind: 'access_token';
|
|
606
|
+
jti: string;
|
|
607
|
+
expires_at: string | null;
|
|
608
|
+
};
|
|
609
|
+
interface AgentRegistrationCredentialIssuedEventData {
|
|
610
|
+
object: 'agent_registration_credential';
|
|
611
|
+
id: string;
|
|
612
|
+
agentRegistrationId: string;
|
|
613
|
+
detail: AgentRegistrationCredentialDetail;
|
|
614
|
+
createdAt: Date;
|
|
615
|
+
updatedAt: Date;
|
|
616
|
+
}
|
|
617
|
+
interface AgentRegistrationCredentialIssuedEventResponseData {
|
|
618
|
+
object: 'agent_registration_credential';
|
|
619
|
+
id: string;
|
|
620
|
+
agent_registration_id: string;
|
|
621
|
+
detail: AgentRegistrationCredentialDetailResponse;
|
|
231
622
|
created_at: string;
|
|
232
623
|
updated_at: string;
|
|
233
624
|
}
|
|
625
|
+
interface AgentRegistrationOrganizationSwitchedEventData {
|
|
626
|
+
agentRegistrationId: string;
|
|
627
|
+
fromOrganizationId: string;
|
|
628
|
+
toOrganizationId: string;
|
|
629
|
+
}
|
|
630
|
+
interface AgentRegistrationOrganizationSwitchedEventResponseData {
|
|
631
|
+
agent_registration_id: string;
|
|
632
|
+
from_organization_id: string;
|
|
633
|
+
to_organization_id: string;
|
|
634
|
+
}
|
|
635
|
+
interface AgentRegistrationLifecycleEventData {
|
|
636
|
+
agentRegistrationId: string;
|
|
637
|
+
}
|
|
638
|
+
interface AgentRegistrationLifecycleEventResponseData {
|
|
639
|
+
agent_registration_id: string;
|
|
640
|
+
}
|
|
641
|
+
//#endregion
|
|
642
|
+
//#region src/directory-sync/interfaces/delete-directory-options.interface.d.ts
|
|
643
|
+
interface DeleteDirectoryOptions {
|
|
644
|
+
/** Unique identifier for the Directory. */
|
|
645
|
+
id: string;
|
|
646
|
+
}
|
|
234
647
|
//#endregion
|
|
235
648
|
//#region src/directory-sync/interfaces/directory-group.interface.d.ts
|
|
236
649
|
interface DirectoryGroup {
|
|
650
|
+
/** Distinguishes the Directory Group object. */
|
|
651
|
+
object?: 'directory_group';
|
|
652
|
+
/** Unique identifier for the Directory Group. */
|
|
237
653
|
id: string;
|
|
654
|
+
/** Unique identifier for the group, assigned by the Directory Provider. Different Directory Providers use different ID formats. */
|
|
238
655
|
idpId: string;
|
|
656
|
+
/** The identifier of the Directory the Directory Group belongs to. */
|
|
239
657
|
directoryId: string;
|
|
658
|
+
/** The identifier for the Organization in which the Directory resides. */
|
|
240
659
|
organizationId: string | null;
|
|
660
|
+
/** The name of the Directory Group. */
|
|
241
661
|
name: string;
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
662
|
+
/** The raw attributes received from the directory provider. */
|
|
663
|
+
rawAttributes?: Record<string, any>;
|
|
664
|
+
/** An ISO 8601 timestamp. */
|
|
665
|
+
createdAt: Date;
|
|
666
|
+
/** An ISO 8601 timestamp. */
|
|
667
|
+
updatedAt: Date;
|
|
245
668
|
}
|
|
246
669
|
interface DirectoryGroupResponse {
|
|
670
|
+
object?: 'directory_group';
|
|
247
671
|
id: string;
|
|
248
672
|
idp_id: string;
|
|
249
673
|
directory_id: string;
|
|
250
674
|
organization_id: string | null;
|
|
251
675
|
name: string;
|
|
676
|
+
raw_attributes?: Record<string, any>;
|
|
252
677
|
created_at: string;
|
|
253
678
|
updated_at: string;
|
|
254
|
-
raw_attributes: any;
|
|
255
679
|
}
|
|
256
680
|
//#endregion
|
|
257
|
-
//#region src/
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
681
|
+
//#region src/directory-sync/interfaces/directory-metadata-user.interface.d.ts
|
|
682
|
+
/** Counts of active and inactive directory users. */
|
|
683
|
+
interface DirectoryMetadataUser {
|
|
684
|
+
/** Count of active directory users. */
|
|
685
|
+
active: number;
|
|
686
|
+
/** Count of inactive directory users. */
|
|
687
|
+
inactive: number;
|
|
688
|
+
}
|
|
689
|
+
interface DirectoryMetadataUserResponse {
|
|
690
|
+
active: number;
|
|
691
|
+
inactive: number;
|
|
263
692
|
}
|
|
264
693
|
//#endregion
|
|
265
|
-
//#region src/directory-sync/interfaces/
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
694
|
+
//#region src/directory-sync/interfaces/directory-metadata.interface.d.ts
|
|
695
|
+
/** Aggregate counts of directory users and groups synced from the provider. */
|
|
696
|
+
interface DirectoryMetadata {
|
|
697
|
+
/** Counts of active and inactive directory users. */
|
|
698
|
+
users: DirectoryMetadataUser;
|
|
699
|
+
/** Count of directory groups. */
|
|
700
|
+
groups: number;
|
|
271
701
|
}
|
|
272
|
-
interface
|
|
273
|
-
|
|
274
|
-
|
|
702
|
+
interface DirectoryMetadataResponse {
|
|
703
|
+
users: DirectoryMetadataUserResponse;
|
|
704
|
+
groups: number;
|
|
275
705
|
}
|
|
276
706
|
//#endregion
|
|
277
|
-
//#region src/directory-sync/interfaces/
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
707
|
+
//#region src/directory-sync/interfaces/directory-state.interface.d.ts
|
|
708
|
+
type DirectoryState = 'active' | 'validating' | 'invalid_credentials' | 'inactive' | 'deleting';
|
|
709
|
+
type DirectoryStateResponse = 'linked' | 'validating' | 'invalid_credentials' | 'unlinked' | 'deleting';
|
|
710
|
+
//#endregion
|
|
711
|
+
//#region src/directory-sync/interfaces/directory-sync-get-group-options.interface.d.ts
|
|
712
|
+
interface DirectorySyncGetGroupOptions {
|
|
713
|
+
/** Unique identifier for the Directory Group. */
|
|
714
|
+
id: string;
|
|
281
715
|
}
|
|
282
716
|
//#endregion
|
|
283
|
-
//#region src/directory-sync/interfaces/
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
717
|
+
//#region src/directory-sync/interfaces/directory-type.interface.d.ts
|
|
718
|
+
type DirectoryType = 'azure scim v2.0' | 'bamboohr' | 'breathe hr' | 'cezanne hr' | 'cyberark scim v2.0' | 'fourth hr' | 'generic scim v2.0' | 'gsuite directory' | 'hibob' | 'sailpoint scim v2.0' | 'jump cloud scim v2.0' | 'okta scim v2.0' | 'onelogin scim v2.0' | 'people hr' | 'personio' | 'pingfederate scim v2.0' | 'rippling scim v2.0' | 's3' | 'sftp' | 'sftp workday' | 'workday';
|
|
719
|
+
//#endregion
|
|
720
|
+
//#region src/directory-sync/interfaces/directory-user-with-groups-email.interface.d.ts
|
|
721
|
+
interface DirectoryUserWithGroupsEmail {
|
|
722
|
+
/** Whether this is the primary email address. */
|
|
723
|
+
primary?: boolean;
|
|
724
|
+
/** The type of email address. */
|
|
725
|
+
type?: string;
|
|
726
|
+
/** The email address value. */
|
|
727
|
+
value?: string | null;
|
|
728
|
+
}
|
|
729
|
+
interface DirectoryUserWithGroupsEmailResponse {
|
|
730
|
+
primary?: boolean;
|
|
731
|
+
type?: string;
|
|
732
|
+
value?: string | null;
|
|
287
733
|
}
|
|
288
734
|
//#endregion
|
|
735
|
+
//#region src/directory-sync/interfaces/directory-user-with-groups-state.interface.d.ts
|
|
736
|
+
declare const DirectoryUserWithGroupsState: {
|
|
737
|
+
readonly Active: "active";
|
|
738
|
+
readonly Suspended: "suspended";
|
|
739
|
+
readonly Inactive: "inactive";
|
|
740
|
+
};
|
|
741
|
+
type DirectoryUserWithGroupsState = (typeof DirectoryUserWithGroupsState)[keyof typeof DirectoryUserWithGroupsState];
|
|
742
|
+
//#endregion
|
|
289
743
|
//#region src/authorization/interfaces/environment-role.interface.d.ts
|
|
290
744
|
interface EnvironmentRole {
|
|
291
745
|
object: 'role';
|
|
@@ -296,8 +750,8 @@ interface EnvironmentRole {
|
|
|
296
750
|
permissions: string[];
|
|
297
751
|
resourceTypeSlug: string;
|
|
298
752
|
type: 'EnvironmentRole';
|
|
299
|
-
createdAt:
|
|
300
|
-
updatedAt:
|
|
753
|
+
createdAt: Date;
|
|
754
|
+
updatedAt: Date;
|
|
301
755
|
}
|
|
302
756
|
interface EnvironmentRoleResponse {
|
|
303
757
|
object: 'role';
|
|
@@ -364,8 +818,8 @@ interface OrganizationRole {
|
|
|
364
818
|
permissions: string[];
|
|
365
819
|
resourceTypeSlug: string;
|
|
366
820
|
type: 'OrganizationRole';
|
|
367
|
-
createdAt:
|
|
368
|
-
updatedAt:
|
|
821
|
+
createdAt: Date;
|
|
822
|
+
updatedAt: Date;
|
|
369
823
|
}
|
|
370
824
|
//#endregion
|
|
371
825
|
//#region src/authorization/interfaces/create-organization-role-options.interface.d.ts
|
|
@@ -416,8 +870,8 @@ interface Permission {
|
|
|
416
870
|
description: string | null;
|
|
417
871
|
resourceTypeSlug: string;
|
|
418
872
|
system: boolean;
|
|
419
|
-
createdAt:
|
|
420
|
-
updatedAt:
|
|
873
|
+
createdAt: Date;
|
|
874
|
+
updatedAt: Date;
|
|
421
875
|
}
|
|
422
876
|
interface PermissionResponse {
|
|
423
877
|
object: 'permission';
|
|
@@ -477,9 +931,9 @@ interface AuthorizationResource {
|
|
|
477
931
|
/** The ID of the parent resource, if this resource is nested. */
|
|
478
932
|
parentResourceId: string | null;
|
|
479
933
|
/** An ISO 8601 timestamp. */
|
|
480
|
-
createdAt:
|
|
934
|
+
createdAt: Date;
|
|
481
935
|
/** An ISO 8601 timestamp. */
|
|
482
|
-
updatedAt:
|
|
936
|
+
updatedAt: Date;
|
|
483
937
|
}
|
|
484
938
|
interface AuthorizationResourceResponse {
|
|
485
939
|
object: 'authorization_resource';
|
|
@@ -677,9 +1131,9 @@ interface RoleAssignment {
|
|
|
677
1131
|
/** The origin of the role assignment. */
|
|
678
1132
|
source: RoleAssignmentSource;
|
|
679
1133
|
/** An ISO 8601 timestamp. */
|
|
680
|
-
createdAt:
|
|
1134
|
+
createdAt: Date;
|
|
681
1135
|
/** An ISO 8601 timestamp. */
|
|
682
|
-
updatedAt:
|
|
1136
|
+
updatedAt: Date;
|
|
683
1137
|
}
|
|
684
1138
|
interface RoleAssignmentResponse {
|
|
685
1139
|
object: 'role_assignment';
|
|
@@ -776,9 +1230,9 @@ interface GroupRoleAssignment {
|
|
|
776
1230
|
/** The resource the role is assigned on. */
|
|
777
1231
|
resource: RoleAssignmentResource;
|
|
778
1232
|
/** An ISO 8601 timestamp. */
|
|
779
|
-
createdAt:
|
|
1233
|
+
createdAt: Date;
|
|
780
1234
|
/** An ISO 8601 timestamp. */
|
|
781
|
-
updatedAt:
|
|
1235
|
+
updatedAt: Date;
|
|
782
1236
|
}
|
|
783
1237
|
interface GroupRoleAssignmentResponse {
|
|
784
1238
|
object: 'group_role_assignment';
|
|
@@ -908,8 +1362,8 @@ interface RoleEvent {
|
|
|
908
1362
|
slug: string;
|
|
909
1363
|
resourceTypeSlug: string;
|
|
910
1364
|
permissions: string[];
|
|
911
|
-
createdAt:
|
|
912
|
-
updatedAt:
|
|
1365
|
+
createdAt: Date;
|
|
1366
|
+
updatedAt: Date;
|
|
913
1367
|
}
|
|
914
1368
|
interface RoleEventResponse {
|
|
915
1369
|
object: 'role';
|
|
@@ -938,72 +1392,209 @@ interface OrganizationRoleEvent {
|
|
|
938
1392
|
description: string | null;
|
|
939
1393
|
resourceTypeSlug: string;
|
|
940
1394
|
permissions: string[];
|
|
941
|
-
createdAt:
|
|
942
|
-
updatedAt:
|
|
1395
|
+
createdAt: Date;
|
|
1396
|
+
updatedAt: Date;
|
|
1397
|
+
}
|
|
1398
|
+
interface ListOrganizationRolesResponse {
|
|
1399
|
+
object: 'list';
|
|
1400
|
+
data: OrganizationRoleResponse[];
|
|
1401
|
+
}
|
|
1402
|
+
interface OrganizationRoleResponse {
|
|
1403
|
+
object: 'role';
|
|
1404
|
+
id: string;
|
|
1405
|
+
name: string;
|
|
1406
|
+
slug: string;
|
|
1407
|
+
description: string | null;
|
|
1408
|
+
permissions: string[];
|
|
1409
|
+
resource_type_slug: string;
|
|
1410
|
+
type: 'EnvironmentRole' | 'OrganizationRole';
|
|
1411
|
+
created_at: string;
|
|
1412
|
+
updated_at: string;
|
|
1413
|
+
}
|
|
1414
|
+
type Role = EnvironmentRole | OrganizationRole;
|
|
1415
|
+
interface RoleList {
|
|
1416
|
+
object: 'list';
|
|
1417
|
+
data: Role[];
|
|
1418
|
+
}
|
|
1419
|
+
//#endregion
|
|
1420
|
+
//#region src/directory-sync/interfaces/directory-user.interface.d.ts
|
|
1421
|
+
type DefaultCustomAttributes = Record<string, unknown>;
|
|
1422
|
+
interface DirectoryUser<TCustomAttributes extends object = DefaultCustomAttributes, TRawAttributes = any> {
|
|
1423
|
+
object: 'directory_user';
|
|
1424
|
+
id: string;
|
|
1425
|
+
directoryId: string;
|
|
1426
|
+
organizationId: string | null;
|
|
1427
|
+
rawAttributes: TRawAttributes;
|
|
1428
|
+
customAttributes: TCustomAttributes;
|
|
1429
|
+
idpId: string;
|
|
1430
|
+
firstName: string | null;
|
|
1431
|
+
email: string | null;
|
|
1432
|
+
lastName: string | null;
|
|
1433
|
+
/** The full name of the user, as provided by the identity provider. */
|
|
1434
|
+
name: string | null;
|
|
1435
|
+
state: 'active' | 'suspended' | 'inactive';
|
|
1436
|
+
role?: RoleResponse;
|
|
1437
|
+
roles?: RoleResponse[];
|
|
1438
|
+
createdAt: Date;
|
|
1439
|
+
updatedAt: Date;
|
|
1440
|
+
}
|
|
1441
|
+
interface DirectoryUserResponse<TCustomAttributes extends object = DefaultCustomAttributes, TRawAttributes = any> {
|
|
1442
|
+
object: 'directory_user';
|
|
1443
|
+
id: string;
|
|
1444
|
+
directory_id: string;
|
|
1445
|
+
organization_id: string | null;
|
|
1446
|
+
raw_attributes: TRawAttributes;
|
|
1447
|
+
custom_attributes: TCustomAttributes;
|
|
1448
|
+
idp_id: string;
|
|
1449
|
+
first_name: string | null;
|
|
1450
|
+
email: string | null;
|
|
1451
|
+
last_name: string | null;
|
|
1452
|
+
name: string | null;
|
|
1453
|
+
state: 'active' | 'suspended' | 'inactive';
|
|
1454
|
+
role?: RoleResponse;
|
|
1455
|
+
roles?: RoleResponse[];
|
|
1456
|
+
created_at: string;
|
|
1457
|
+
updated_at: string;
|
|
1458
|
+
}
|
|
1459
|
+
interface DirectoryUserWithGroups<TCustomAttributes extends object = DefaultCustomAttributes> extends DirectoryUser<TCustomAttributes> {
|
|
1460
|
+
groups: DirectoryGroup[];
|
|
1461
|
+
}
|
|
1462
|
+
interface DirectoryUserWithGroupsResponse<TCustomAttributes extends object = DefaultCustomAttributes> extends DirectoryUserResponse<TCustomAttributes> {
|
|
1463
|
+
groups: DirectoryGroupResponse[];
|
|
1464
|
+
}
|
|
1465
|
+
//#endregion
|
|
1466
|
+
//#region src/directory-sync/interfaces/directory.interface.d.ts
|
|
1467
|
+
interface Directory {
|
|
1468
|
+
/** Distinguishes the Directory object. */
|
|
1469
|
+
object: 'directory';
|
|
1470
|
+
/** Unique identifier for the Directory. */
|
|
1471
|
+
id: string;
|
|
1472
|
+
/** The unique identifier for the Organization in which the directory resides. */
|
|
1473
|
+
organizationId?: string;
|
|
1474
|
+
/** External Key for the Directory. */
|
|
1475
|
+
externalKey: string;
|
|
1476
|
+
/** The type of external Directory Provider integrated with. */
|
|
1477
|
+
type: DirectoryType;
|
|
1478
|
+
/** Describes whether the Directory has been successfully connected to an external provider. */
|
|
1479
|
+
state: DirectoryState;
|
|
1480
|
+
/** The name of the directory. */
|
|
1481
|
+
name: string;
|
|
1482
|
+
/** The URL associated with an Enterprise Client. */
|
|
1483
|
+
domain?: string;
|
|
1484
|
+
/** Aggregate counts of directory users and groups synced from the provider. */
|
|
1485
|
+
metadata?: DirectoryMetadata;
|
|
1486
|
+
/** An ISO 8601 timestamp. */
|
|
1487
|
+
createdAt: Date;
|
|
1488
|
+
/** An ISO 8601 timestamp. */
|
|
1489
|
+
updatedAt: Date;
|
|
1490
|
+
}
|
|
1491
|
+
interface DirectoryResponse {
|
|
1492
|
+
object: 'directory';
|
|
1493
|
+
id: string;
|
|
1494
|
+
organization_id?: string;
|
|
1495
|
+
external_key: string;
|
|
1496
|
+
type: DirectoryType;
|
|
1497
|
+
state: DirectoryStateResponse;
|
|
1498
|
+
name: string;
|
|
1499
|
+
domain?: string;
|
|
1500
|
+
metadata?: DirectoryMetadataResponse;
|
|
1501
|
+
created_at: string;
|
|
1502
|
+
updated_at: string;
|
|
943
1503
|
}
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
1504
|
+
//#endregion
|
|
1505
|
+
//#region src/directory-sync/interfaces/event-directory.interface.d.ts
|
|
1506
|
+
interface EventDirectoryDomain {
|
|
1507
|
+
object: 'organization_domain';
|
|
1508
|
+
id: string;
|
|
1509
|
+
domain: string;
|
|
947
1510
|
}
|
|
948
|
-
interface
|
|
949
|
-
object: '
|
|
1511
|
+
interface EventDirectory {
|
|
1512
|
+
object: 'directory';
|
|
950
1513
|
id: string;
|
|
1514
|
+
externalKey: string;
|
|
1515
|
+
type: DirectoryType;
|
|
1516
|
+
state: DirectoryState;
|
|
951
1517
|
name: string;
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
1518
|
+
organizationId?: string;
|
|
1519
|
+
domains: EventDirectoryDomain[];
|
|
1520
|
+
createdAt: Date;
|
|
1521
|
+
updatedAt: Date;
|
|
1522
|
+
}
|
|
1523
|
+
interface EventDirectoryResponse {
|
|
1524
|
+
object: 'directory';
|
|
1525
|
+
id: string;
|
|
1526
|
+
external_key: string;
|
|
1527
|
+
type: DirectoryType;
|
|
1528
|
+
state: DirectoryState;
|
|
1529
|
+
name: string;
|
|
1530
|
+
organization_id?: string;
|
|
1531
|
+
domains: EventDirectoryDomain[];
|
|
957
1532
|
created_at: string;
|
|
958
1533
|
updated_at: string;
|
|
959
1534
|
}
|
|
960
|
-
type Role = EnvironmentRole | OrganizationRole;
|
|
961
|
-
interface RoleList {
|
|
962
|
-
object: 'list';
|
|
963
|
-
data: Role[];
|
|
964
|
-
}
|
|
965
1535
|
//#endregion
|
|
966
|
-
//#region src/directory-sync/interfaces/directory-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
object: 'directory_user';
|
|
1536
|
+
//#region src/directory-sync/interfaces/directory-token.interface.d.ts
|
|
1537
|
+
interface DirectoryToken {
|
|
1538
|
+
object: 'directory_token';
|
|
970
1539
|
id: string;
|
|
971
1540
|
directoryId: string;
|
|
972
|
-
organizationId
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
idpId: string;
|
|
976
|
-
firstName: string | null;
|
|
977
|
-
email: string | null;
|
|
978
|
-
lastName: string | null;
|
|
979
|
-
state: 'active' | 'inactive';
|
|
980
|
-
role?: RoleResponse;
|
|
981
|
-
roles?: RoleResponse[];
|
|
982
|
-
createdAt: string;
|
|
983
|
-
updatedAt: string;
|
|
1541
|
+
organizationId?: string;
|
|
1542
|
+
tokenSuffix: string;
|
|
1543
|
+
createdAt: Date;
|
|
984
1544
|
}
|
|
985
|
-
interface
|
|
986
|
-
object: '
|
|
1545
|
+
interface DirectoryTokenResponse {
|
|
1546
|
+
object: 'directory_token';
|
|
987
1547
|
id: string;
|
|
988
1548
|
directory_id: string;
|
|
989
|
-
organization_id
|
|
990
|
-
|
|
991
|
-
custom_attributes: TCustomAttributes;
|
|
992
|
-
idp_id: string;
|
|
993
|
-
first_name: string | null;
|
|
994
|
-
email: string | null;
|
|
995
|
-
last_name: string | null;
|
|
996
|
-
state: 'active' | 'inactive';
|
|
997
|
-
role?: RoleResponse;
|
|
998
|
-
roles?: RoleResponse[];
|
|
1549
|
+
organization_id?: string;
|
|
1550
|
+
token_suffix: string;
|
|
999
1551
|
created_at: string;
|
|
1000
|
-
updated_at: string;
|
|
1001
1552
|
}
|
|
1002
|
-
|
|
1003
|
-
|
|
1553
|
+
//#endregion
|
|
1554
|
+
//#region src/directory-sync/interfaces/get-directory-options.interface.d.ts
|
|
1555
|
+
interface GetDirectoryOptions {
|
|
1556
|
+
/** Unique identifier for the Directory. */
|
|
1557
|
+
id: string;
|
|
1004
1558
|
}
|
|
1005
|
-
|
|
1006
|
-
|
|
1559
|
+
//#endregion
|
|
1560
|
+
//#region src/directory-sync/interfaces/get-user-options.interface.d.ts
|
|
1561
|
+
interface GetUserOptions {
|
|
1562
|
+
/** Unique identifier for the Directory User. */
|
|
1563
|
+
id: string;
|
|
1564
|
+
}
|
|
1565
|
+
//#endregion
|
|
1566
|
+
//#region src/directory-sync/interfaces/list-directories-options.interface.d.ts
|
|
1567
|
+
interface ListDirectoriesOptions extends PaginationOptions {
|
|
1568
|
+
/** Filter Directories by their associated organization. */
|
|
1569
|
+
organizationId?: string;
|
|
1570
|
+
/** Searchable text to match against Directory names. */
|
|
1571
|
+
search?: string;
|
|
1572
|
+
}
|
|
1573
|
+
interface SerializedListDirectoriesOptions extends PaginationOptions {
|
|
1574
|
+
organization_id?: string;
|
|
1575
|
+
search?: string;
|
|
1576
|
+
}
|
|
1577
|
+
//#endregion
|
|
1578
|
+
//#region src/directory-sync/interfaces/list-directory-users-options.interface.d.ts
|
|
1579
|
+
interface ListDirectoryUsersOptions extends PaginationOptions {
|
|
1580
|
+
directory?: string;
|
|
1581
|
+
group?: string;
|
|
1582
|
+
}
|
|
1583
|
+
//#endregion
|
|
1584
|
+
//#region src/directory-sync/interfaces/list-groups-options.interface.d.ts
|
|
1585
|
+
interface ListDirectoryGroupsOptions extends PaginationOptions {
|
|
1586
|
+
directory?: string;
|
|
1587
|
+
user?: string;
|
|
1588
|
+
}
|
|
1589
|
+
//#endregion
|
|
1590
|
+
//#region src/directory-sync/interfaces/slim-role.interface.d.ts
|
|
1591
|
+
/** The primary role assigned to the user. */
|
|
1592
|
+
interface SlimRole {
|
|
1593
|
+
/** The slug of the assigned role. */
|
|
1594
|
+
slug: string;
|
|
1595
|
+
}
|
|
1596
|
+
interface SlimRoleResponse {
|
|
1597
|
+
slug: string;
|
|
1007
1598
|
}
|
|
1008
1599
|
//#endregion
|
|
1009
1600
|
//#region src/sso/interfaces/authorization-url-options.interface.d.ts
|
|
@@ -1102,6 +1693,7 @@ declare enum ConnectionType {
|
|
|
1102
1693
|
}
|
|
1103
1694
|
//#endregion
|
|
1104
1695
|
//#region src/sso/interfaces/connection.interface.d.ts
|
|
1696
|
+
type ConnectionState = 'requires_type' | 'draft' | 'active' | 'validating' | 'inactive' | 'deleting';
|
|
1105
1697
|
interface ConnectionDomain {
|
|
1106
1698
|
object: 'connection_domain';
|
|
1107
1699
|
id: string;
|
|
@@ -1117,14 +1709,14 @@ interface Connection {
|
|
|
1117
1709
|
/** A human-readable name for the Connection. This will most commonly be the organization's name. */
|
|
1118
1710
|
name: string;
|
|
1119
1711
|
/** Indicates whether a Connection is able to authenticate users. */
|
|
1120
|
-
state:
|
|
1712
|
+
state: ConnectionState;
|
|
1121
1713
|
/** List of Organization Domains. */
|
|
1122
1714
|
domains: ConnectionDomain[];
|
|
1123
1715
|
type: ConnectionType;
|
|
1124
1716
|
/** An ISO 8601 timestamp. */
|
|
1125
|
-
createdAt:
|
|
1717
|
+
createdAt: Date;
|
|
1126
1718
|
/** An ISO 8601 timestamp. */
|
|
1127
|
-
updatedAt:
|
|
1719
|
+
updatedAt: Date;
|
|
1128
1720
|
}
|
|
1129
1721
|
interface ConnectionResponse {
|
|
1130
1722
|
object: 'connection';
|
|
@@ -1132,12 +1724,61 @@ interface ConnectionResponse {
|
|
|
1132
1724
|
organization_id?: string;
|
|
1133
1725
|
name: string;
|
|
1134
1726
|
connection_type: ConnectionType;
|
|
1135
|
-
state:
|
|
1727
|
+
state: ConnectionState;
|
|
1136
1728
|
domains: ConnectionDomain[];
|
|
1137
1729
|
created_at: string;
|
|
1138
1730
|
updated_at: string;
|
|
1139
1731
|
}
|
|
1140
1732
|
//#endregion
|
|
1733
|
+
//#region src/sso/interfaces/connection-event.interface.d.ts
|
|
1734
|
+
type SamlCertificateType = 'ResponseSigning' | 'RequestSigning' | 'ResponseEncryption';
|
|
1735
|
+
interface ConnectionEventConnection {
|
|
1736
|
+
id: string;
|
|
1737
|
+
organizationId?: string;
|
|
1738
|
+
}
|
|
1739
|
+
interface ConnectionEventConnectionResponse {
|
|
1740
|
+
id: string;
|
|
1741
|
+
organization_id?: string;
|
|
1742
|
+
}
|
|
1743
|
+
interface SamlCertificateRenewalRequired {
|
|
1744
|
+
certificateType: SamlCertificateType;
|
|
1745
|
+
expiryDate: Date;
|
|
1746
|
+
isExpired: boolean;
|
|
1747
|
+
}
|
|
1748
|
+
interface SamlCertificateRenewalRequiredResponse {
|
|
1749
|
+
certificate_type: SamlCertificateType;
|
|
1750
|
+
expiry_date: string;
|
|
1751
|
+
is_expired: boolean;
|
|
1752
|
+
}
|
|
1753
|
+
interface SamlCertificateRenewed {
|
|
1754
|
+
certificateType: SamlCertificateType;
|
|
1755
|
+
expiryDate: Date;
|
|
1756
|
+
}
|
|
1757
|
+
interface SamlCertificateRenewedResponse {
|
|
1758
|
+
certificate_type: SamlCertificateType;
|
|
1759
|
+
expiry_date: string;
|
|
1760
|
+
}
|
|
1761
|
+
interface ConnectionSamlCertificateRenewalRequiredEventData {
|
|
1762
|
+
connection: ConnectionEventConnection;
|
|
1763
|
+
certificate: SamlCertificateRenewalRequired;
|
|
1764
|
+
daysUntilExpiry: number;
|
|
1765
|
+
}
|
|
1766
|
+
interface ConnectionSamlCertificateRenewalRequiredEventResponseData {
|
|
1767
|
+
connection: ConnectionEventConnectionResponse;
|
|
1768
|
+
certificate: SamlCertificateRenewalRequiredResponse;
|
|
1769
|
+
days_until_expiry: number;
|
|
1770
|
+
}
|
|
1771
|
+
interface ConnectionSamlCertificateRenewedEventData {
|
|
1772
|
+
connection: ConnectionEventConnection;
|
|
1773
|
+
certificate: SamlCertificateRenewed;
|
|
1774
|
+
renewedAt: Date;
|
|
1775
|
+
}
|
|
1776
|
+
interface ConnectionSamlCertificateRenewedEventResponseData {
|
|
1777
|
+
connection: ConnectionEventConnectionResponse;
|
|
1778
|
+
certificate: SamlCertificateRenewedResponse;
|
|
1779
|
+
renewed_at: string;
|
|
1780
|
+
}
|
|
1781
|
+
//#endregion
|
|
1141
1782
|
//#region src/sso/interfaces/get-profile-options.interface.d.ts
|
|
1142
1783
|
interface GetProfileOptions {
|
|
1143
1784
|
accessToken: string;
|
|
@@ -1173,82 +1814,234 @@ interface SerializedListConnectionsOptions extends PaginationOptions {
|
|
|
1173
1814
|
//#region src/common/interfaces/unknown-record.interface.d.ts
|
|
1174
1815
|
type UnknownRecord = Record<string, unknown>;
|
|
1175
1816
|
//#endregion
|
|
1176
|
-
//#region src/user-management/interfaces/oauth-tokens.interface.d.ts
|
|
1177
|
-
interface OauthTokens {
|
|
1817
|
+
//#region src/user-management/interfaces/oauth-tokens.interface.d.ts
|
|
1818
|
+
interface OauthTokens {
|
|
1819
|
+
accessToken: string;
|
|
1820
|
+
refreshToken: string;
|
|
1821
|
+
expiresAt: number;
|
|
1822
|
+
scopes: string[];
|
|
1823
|
+
}
|
|
1824
|
+
interface OauthTokensResponse {
|
|
1825
|
+
access_token: string;
|
|
1826
|
+
refresh_token: string;
|
|
1827
|
+
expires_at: number;
|
|
1828
|
+
scopes: string[];
|
|
1829
|
+
}
|
|
1830
|
+
//#endregion
|
|
1831
|
+
//#region src/sso/interfaces/profile.interface.d.ts
|
|
1832
|
+
interface Profile<CustomAttributesType extends UnknownRecord> {
|
|
1833
|
+
object: 'profile';
|
|
1834
|
+
/** Unique identifier of the profile. */
|
|
1835
|
+
id: string;
|
|
1836
|
+
/** The user's unique identifier from the identity provider. */
|
|
1837
|
+
idpId: string;
|
|
1838
|
+
/** The ID of the organization the user belongs to. */
|
|
1839
|
+
organizationId: string | null;
|
|
1840
|
+
/** The ID of the SSO connection used for authentication. */
|
|
1841
|
+
connectionId: string;
|
|
1842
|
+
/** The type of SSO connection. */
|
|
1843
|
+
connectionType: ConnectionType;
|
|
1844
|
+
/** The user's email address. */
|
|
1845
|
+
email: string;
|
|
1846
|
+
/** The user's full name. */
|
|
1847
|
+
name: string | null;
|
|
1848
|
+
/** The user's first name. */
|
|
1849
|
+
firstName: string | null;
|
|
1850
|
+
/** The user's last name. */
|
|
1851
|
+
lastName: string | null;
|
|
1852
|
+
/** The role assigned to the user within the organization, if applicable. */
|
|
1853
|
+
role?: RoleResponse | null;
|
|
1854
|
+
/** The roles assigned to the user within the organization, if applicable. */
|
|
1855
|
+
roles?: RoleResponse[] | null;
|
|
1856
|
+
/** The groups the user belongs to, as returned by the identity provider. */
|
|
1857
|
+
groups?: string[];
|
|
1858
|
+
/** Custom attribute mappings defined for the connection, returned as key-value pairs. */
|
|
1859
|
+
customAttributes?: CustomAttributesType;
|
|
1860
|
+
/** The complete set of raw attributes returned by the identity provider. */
|
|
1861
|
+
rawAttributes: {
|
|
1862
|
+
[key: string]: any;
|
|
1863
|
+
};
|
|
1864
|
+
}
|
|
1865
|
+
interface ProfileResponse<CustomAttributesType extends UnknownRecord> {
|
|
1866
|
+
object: 'profile';
|
|
1867
|
+
id: string;
|
|
1868
|
+
idp_id: string;
|
|
1869
|
+
organization_id: string | null;
|
|
1870
|
+
connection_id: string;
|
|
1871
|
+
connection_type: ConnectionType;
|
|
1872
|
+
email: string;
|
|
1873
|
+
name: string | null;
|
|
1874
|
+
first_name: string | null;
|
|
1875
|
+
last_name: string | null;
|
|
1876
|
+
role?: RoleResponse | null;
|
|
1877
|
+
roles?: RoleResponse[] | null;
|
|
1878
|
+
groups?: string[];
|
|
1879
|
+
custom_attributes?: CustomAttributesType;
|
|
1880
|
+
raw_attributes: {
|
|
1881
|
+
[key: string]: any;
|
|
1882
|
+
};
|
|
1883
|
+
}
|
|
1884
|
+
//#endregion
|
|
1885
|
+
//#region src/sso/interfaces/profile-and-token.interface.d.ts
|
|
1886
|
+
interface ProfileAndToken<CustomAttributesType extends UnknownRecord> {
|
|
1887
|
+
accessToken: string;
|
|
1888
|
+
profile: Profile<CustomAttributesType>;
|
|
1889
|
+
oauthTokens?: OauthTokens;
|
|
1890
|
+
}
|
|
1891
|
+
interface ProfileAndTokenResponse<CustomAttributesType extends UnknownRecord> {
|
|
1892
|
+
access_token: string;
|
|
1893
|
+
profile: ProfileResponse<CustomAttributesType>;
|
|
1894
|
+
oauth_tokens?: OauthTokensResponse;
|
|
1895
|
+
}
|
|
1896
|
+
//#endregion
|
|
1897
|
+
//#region src/user-management/interfaces/impersonator.interface.d.ts
|
|
1898
|
+
interface Impersonator {
|
|
1899
|
+
email: string;
|
|
1900
|
+
reason: string | null;
|
|
1901
|
+
}
|
|
1902
|
+
interface ImpersonatorResponse {
|
|
1903
|
+
email: string;
|
|
1904
|
+
reason: string | null;
|
|
1905
|
+
}
|
|
1906
|
+
//#endregion
|
|
1907
|
+
//#region src/user-management/interfaces/user.interface.d.ts
|
|
1908
|
+
/** The user object. */
|
|
1909
|
+
interface User {
|
|
1910
|
+
/** Distinguishes the user object. */
|
|
1911
|
+
object: 'user';
|
|
1912
|
+
/** The unique ID of the user. */
|
|
1913
|
+
id: string;
|
|
1914
|
+
/** The email address of the user. */
|
|
1915
|
+
email: string;
|
|
1916
|
+
/** Whether the user's email has been verified. */
|
|
1917
|
+
emailVerified: boolean;
|
|
1918
|
+
/** A URL reference to an image representing the user. */
|
|
1919
|
+
profilePictureUrl: string | null;
|
|
1920
|
+
/** The full name of the user. */
|
|
1921
|
+
name: string | null;
|
|
1922
|
+
/** The first name of the user. */
|
|
1923
|
+
firstName: string | null;
|
|
1924
|
+
/** The last name of the user. */
|
|
1925
|
+
lastName: string | null;
|
|
1926
|
+
/** The timestamp when the user last signed in. */
|
|
1927
|
+
lastSignInAt: Date | null;
|
|
1928
|
+
/** The user's preferred locale. */
|
|
1929
|
+
locale: string | null;
|
|
1930
|
+
/** An ISO 8601 timestamp. */
|
|
1931
|
+
createdAt: Date;
|
|
1932
|
+
/** An ISO 8601 timestamp. */
|
|
1933
|
+
updatedAt: Date;
|
|
1934
|
+
/** The external ID of the user. */
|
|
1935
|
+
externalId: string | null;
|
|
1936
|
+
/** Object containing metadata key/value pairs associated with the user. */
|
|
1937
|
+
metadata: Record<string, string>;
|
|
1938
|
+
}
|
|
1939
|
+
interface UserResponse {
|
|
1940
|
+
object: 'user';
|
|
1941
|
+
id: string;
|
|
1942
|
+
email: string;
|
|
1943
|
+
email_verified: boolean;
|
|
1944
|
+
profile_picture_url: string | null;
|
|
1945
|
+
name: string | null;
|
|
1946
|
+
first_name: string | null;
|
|
1947
|
+
last_name: string | null;
|
|
1948
|
+
last_sign_in_at: string | null;
|
|
1949
|
+
locale: string | null;
|
|
1950
|
+
created_at: string;
|
|
1951
|
+
updated_at: string;
|
|
1952
|
+
external_id?: string;
|
|
1953
|
+
metadata?: Record<string, string>;
|
|
1954
|
+
}
|
|
1955
|
+
interface CreateUserResponse extends User {
|
|
1956
|
+
radarAuthAttemptId?: string;
|
|
1957
|
+
}
|
|
1958
|
+
interface CreateUserResponseResponse extends UserResponse {
|
|
1959
|
+
radar_auth_attempt_id?: string;
|
|
1960
|
+
}
|
|
1961
|
+
//#endregion
|
|
1962
|
+
//#region src/user-management/interfaces/authentication-response.interface.d.ts
|
|
1963
|
+
type AuthenticationMethod = 'SSO' | 'Password' | 'Passkey' | 'AppleOAuth' | 'BitbucketOAuth' | 'DiscordOAuth' | 'GitHubOAuth' | 'GitLabOAuth' | 'GoogleOAuth' | 'GrokOAuth' | 'XOAuth' | 'IntuitOAuth' | 'LinkedInOAuth' | 'MicrosoftOAuth' | 'SalesforceOAuth' | 'SlackOAuth' | 'VercelMarketplaceOAuth' | 'VercelOAuth' | 'XeroOAuth' | 'MagicAuth' | 'CrossAppAuth' | 'ExternalAuth' | 'MigratedSession' | 'Impersonation';
|
|
1964
|
+
interface AuthenticationResponse {
|
|
1965
|
+
user: User;
|
|
1966
|
+
organizationId?: string;
|
|
1178
1967
|
accessToken: string;
|
|
1179
1968
|
refreshToken: string;
|
|
1180
|
-
|
|
1181
|
-
|
|
1969
|
+
impersonator?: Impersonator;
|
|
1970
|
+
authenticationMethod?: AuthenticationMethod;
|
|
1971
|
+
sealedSession?: string;
|
|
1972
|
+
oauthTokens?: OauthTokens;
|
|
1182
1973
|
}
|
|
1183
|
-
interface
|
|
1974
|
+
interface AuthenticationResponseResponse {
|
|
1975
|
+
user: UserResponse;
|
|
1976
|
+
organization_id?: string;
|
|
1184
1977
|
access_token: string;
|
|
1185
1978
|
refresh_token: string;
|
|
1186
|
-
|
|
1187
|
-
|
|
1979
|
+
impersonator?: ImpersonatorResponse;
|
|
1980
|
+
authentication_method?: AuthenticationMethod;
|
|
1981
|
+
oauth_tokens?: OauthTokensResponse;
|
|
1188
1982
|
}
|
|
1189
1983
|
//#endregion
|
|
1190
|
-
//#region src/
|
|
1191
|
-
interface
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
/** The user's unique identifier from the identity provider. */
|
|
1195
|
-
idpId: string;
|
|
1196
|
-
/** The ID of the organization the user belongs to. */
|
|
1197
|
-
organizationId?: string;
|
|
1198
|
-
/** The ID of the SSO connection used for authentication. */
|
|
1199
|
-
connectionId: string;
|
|
1200
|
-
/** The type of SSO connection. */
|
|
1201
|
-
connectionType: ConnectionType;
|
|
1202
|
-
/** The user's email address. */
|
|
1203
|
-
email: string;
|
|
1204
|
-
/** The user's full name. */
|
|
1205
|
-
name?: string;
|
|
1206
|
-
/** The user's first name. */
|
|
1207
|
-
firstName?: string;
|
|
1208
|
-
/** The user's last name. */
|
|
1209
|
-
lastName?: string;
|
|
1210
|
-
/** The role assigned to the user within the organization, if applicable. */
|
|
1211
|
-
role?: RoleResponse;
|
|
1212
|
-
/** The roles assigned to the user within the organization, if applicable. */
|
|
1213
|
-
roles?: RoleResponse[];
|
|
1214
|
-
/** The groups the user belongs to, as returned by the identity provider. */
|
|
1215
|
-
groups?: string[];
|
|
1216
|
-
/** Custom attribute mappings defined for the connection, returned as key-value pairs. */
|
|
1217
|
-
customAttributes?: CustomAttributesType;
|
|
1218
|
-
/** The complete set of raw attributes returned by the identity provider. */
|
|
1219
|
-
rawAttributes?: {
|
|
1220
|
-
[key: string]: any;
|
|
1221
|
-
};
|
|
1984
|
+
//#region src/user-management/interfaces/authenticate-with-session-cookie.interface.d.ts
|
|
1985
|
+
interface AuthenticateWithSessionCookieOptions {
|
|
1986
|
+
sessionData: string;
|
|
1987
|
+
cookiePassword?: string;
|
|
1222
1988
|
}
|
|
1223
|
-
interface
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
first_name?: string;
|
|
1232
|
-
last_name?: string;
|
|
1233
|
-
role?: RoleResponse;
|
|
1234
|
-
roles?: RoleResponse[];
|
|
1235
|
-
groups?: string[];
|
|
1236
|
-
custom_attributes?: CustomAttributesType;
|
|
1237
|
-
raw_attributes?: {
|
|
1238
|
-
[key: string]: any;
|
|
1239
|
-
};
|
|
1989
|
+
interface UserManagementAccessToken {
|
|
1990
|
+
sid: string;
|
|
1991
|
+
org_id?: string;
|
|
1992
|
+
role?: string;
|
|
1993
|
+
roles?: string[];
|
|
1994
|
+
permissions?: string[];
|
|
1995
|
+
entitlements?: string[];
|
|
1996
|
+
feature_flags?: string[];
|
|
1240
1997
|
}
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
oauthTokens?: OauthTokens;
|
|
1998
|
+
type SessionCookieData = Pick<AuthenticationResponse, 'accessToken' | 'authenticationMethod' | 'impersonator' | 'organizationId' | 'refreshToken' | 'user'>;
|
|
1999
|
+
declare enum AuthenticateWithSessionCookieFailureReason {
|
|
2000
|
+
INVALID_JWT = "invalid_jwt",
|
|
2001
|
+
INVALID_SESSION_COOKIE = "invalid_session_cookie",
|
|
2002
|
+
NO_SESSION_COOKIE_PROVIDED = "no_session_cookie_provided"
|
|
1247
2003
|
}
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
2004
|
+
type AuthenticateWithSessionCookieFailedResponse = {
|
|
2005
|
+
authenticated: false;
|
|
2006
|
+
reason: AuthenticateWithSessionCookieFailureReason;
|
|
2007
|
+
};
|
|
2008
|
+
type AuthenticateWithSessionCookieSuccessResponse = {
|
|
2009
|
+
authenticated: true;
|
|
2010
|
+
accessToken: string;
|
|
2011
|
+
authenticationMethod: AuthenticationResponse['authenticationMethod'];
|
|
2012
|
+
sessionId: string;
|
|
2013
|
+
organizationId?: string;
|
|
2014
|
+
role?: string;
|
|
2015
|
+
roles?: string[];
|
|
2016
|
+
permissions?: string[];
|
|
2017
|
+
entitlements?: string[];
|
|
2018
|
+
featureFlags?: string[];
|
|
2019
|
+
user: User;
|
|
2020
|
+
impersonator?: Impersonator;
|
|
2021
|
+
};
|
|
2022
|
+
//#endregion
|
|
2023
|
+
//#region src/user-management/interfaces/access-token-claims.interface.d.ts
|
|
2024
|
+
/**
|
|
2025
|
+
* The claims of a verified WorkOS access token, as returned by
|
|
2026
|
+
* `userManagement.verifyAccessToken()`.
|
|
2027
|
+
*
|
|
2028
|
+
* Combines the registered JWT claims WorkOS sets with the session claims in
|
|
2029
|
+
* {@link UserManagementAccessToken}. Any other claims present on the token,
|
|
2030
|
+
* such as custom claims configured for the environment, are available through
|
|
2031
|
+
* the index signature.
|
|
2032
|
+
*/
|
|
2033
|
+
interface AccessTokenClaims extends UserManagementAccessToken {
|
|
2034
|
+
/** The ID of the user the token was issued to. */
|
|
2035
|
+
sub: string;
|
|
2036
|
+
/** The issuer of the token. */
|
|
2037
|
+
iss: string;
|
|
2038
|
+
/** When the token expires, in seconds since the Unix epoch. */
|
|
2039
|
+
exp: number;
|
|
2040
|
+
/** When the token was issued, in seconds since the Unix epoch. */
|
|
2041
|
+
iat: number;
|
|
2042
|
+
/** When the user last actively authenticated, in seconds since the Unix epoch. */
|
|
2043
|
+
auth_time: number;
|
|
2044
|
+
[claim: string]: unknown;
|
|
1252
2045
|
}
|
|
1253
2046
|
//#endregion
|
|
1254
2047
|
//#region src/user-management/interfaces/authenticate-with-options-base.interface.d.ts
|
|
@@ -1435,149 +2228,23 @@ interface AuthenticateWithRefreshTokenOptions extends AuthenticateWithOptionsBas
|
|
|
1435
2228
|
interface AuthenticateUserWithRefreshTokenCredentials {
|
|
1436
2229
|
clientSecret: string | undefined;
|
|
1437
2230
|
}
|
|
1438
|
-
interface SerializedAuthenticateWithRefreshTokenOptions extends SerializedAuthenticateWithOptionsBase {
|
|
1439
|
-
grant_type: 'refresh_token';
|
|
1440
|
-
refresh_token: string;
|
|
1441
|
-
organization_id: string | undefined;
|
|
1442
|
-
}
|
|
1443
|
-
//#endregion
|
|
1444
|
-
//#region src/user-management/interfaces/authenticate-with-refresh-token-public-client-options.interface.d.ts
|
|
1445
|
-
/** Options for refreshing tokens as a public client (no client_secret required) */
|
|
1446
|
-
interface AuthenticateWithRefreshTokenPublicClientOptions extends AuthenticateWithOptionsBase {
|
|
1447
|
-
refreshToken: string;
|
|
1448
|
-
organizationId?: string;
|
|
1449
|
-
}
|
|
1450
|
-
interface SerializedAuthenticateWithRefreshTokenPublicClientOptions extends SerializedAuthenticatePublicClientBase {
|
|
1451
|
-
grant_type: 'refresh_token';
|
|
1452
|
-
refresh_token: string;
|
|
1453
|
-
organization_id: string | undefined;
|
|
1454
|
-
}
|
|
1455
|
-
//#endregion
|
|
1456
|
-
//#region src/user-management/interfaces/impersonator.interface.d.ts
|
|
1457
|
-
interface Impersonator {
|
|
1458
|
-
email: string;
|
|
1459
|
-
reason: string | null;
|
|
1460
|
-
}
|
|
1461
|
-
interface ImpersonatorResponse {
|
|
1462
|
-
email: string;
|
|
1463
|
-
reason: string | null;
|
|
1464
|
-
}
|
|
1465
|
-
//#endregion
|
|
1466
|
-
//#region src/user-management/interfaces/user.interface.d.ts
|
|
1467
|
-
/** The user object. */
|
|
1468
|
-
interface User {
|
|
1469
|
-
/** Distinguishes the user object. */
|
|
1470
|
-
object: 'user';
|
|
1471
|
-
/** The unique ID of the user. */
|
|
1472
|
-
id: string;
|
|
1473
|
-
/** The email address of the user. */
|
|
1474
|
-
email: string;
|
|
1475
|
-
/** Whether the user's email has been verified. */
|
|
1476
|
-
emailVerified: boolean;
|
|
1477
|
-
/** A URL reference to an image representing the user. */
|
|
1478
|
-
profilePictureUrl: string | null;
|
|
1479
|
-
/** The full name of the user. */
|
|
1480
|
-
name: string | null;
|
|
1481
|
-
/** The first name of the user. */
|
|
1482
|
-
firstName: string | null;
|
|
1483
|
-
/** The last name of the user. */
|
|
1484
|
-
lastName: string | null;
|
|
1485
|
-
/** The timestamp when the user last signed in. */
|
|
1486
|
-
lastSignInAt: string | null;
|
|
1487
|
-
/** The user's preferred locale. */
|
|
1488
|
-
locale: string | null;
|
|
1489
|
-
/** An ISO 8601 timestamp. */
|
|
1490
|
-
createdAt: string;
|
|
1491
|
-
/** An ISO 8601 timestamp. */
|
|
1492
|
-
updatedAt: string;
|
|
1493
|
-
/** The external ID of the user. */
|
|
1494
|
-
externalId: string | null;
|
|
1495
|
-
/** Object containing metadata key/value pairs associated with the user. */
|
|
1496
|
-
metadata: Record<string, string>;
|
|
1497
|
-
}
|
|
1498
|
-
interface UserResponse {
|
|
1499
|
-
object: 'user';
|
|
1500
|
-
id: string;
|
|
1501
|
-
email: string;
|
|
1502
|
-
email_verified: boolean;
|
|
1503
|
-
profile_picture_url: string | null;
|
|
1504
|
-
name: string | null;
|
|
1505
|
-
first_name: string | null;
|
|
1506
|
-
last_name: string | null;
|
|
1507
|
-
last_sign_in_at: string | null;
|
|
1508
|
-
locale: string | null;
|
|
1509
|
-
created_at: string;
|
|
1510
|
-
updated_at: string;
|
|
1511
|
-
external_id?: string;
|
|
1512
|
-
metadata?: Record<string, string>;
|
|
1513
|
-
}
|
|
1514
|
-
interface CreateUserResponse extends User {
|
|
1515
|
-
radarAuthAttemptId?: string;
|
|
1516
|
-
}
|
|
1517
|
-
interface CreateUserResponseResponse extends UserResponse {
|
|
1518
|
-
radar_auth_attempt_id?: string;
|
|
1519
|
-
}
|
|
1520
|
-
//#endregion
|
|
1521
|
-
//#region src/user-management/interfaces/authentication-response.interface.d.ts
|
|
1522
|
-
type AuthenticationMethod = 'SSO' | 'Password' | 'Passkey' | 'AppleOAuth' | 'BitbucketOAuth' | 'DiscordOAuth' | 'GitHubOAuth' | 'GitLabOAuth' | 'GoogleOAuth' | 'GrokOAuth' | 'XOAuth' | 'IntuitOAuth' | 'LinkedInOAuth' | 'MicrosoftOAuth' | 'SalesforceOAuth' | 'SlackOAuth' | 'VercelMarketplaceOAuth' | 'VercelOAuth' | 'XeroOAuth' | 'MagicAuth' | 'CrossAppAuth' | 'ExternalAuth' | 'MigratedSession' | 'Impersonation';
|
|
1523
|
-
interface AuthenticationResponse {
|
|
1524
|
-
user: User;
|
|
1525
|
-
organizationId?: string;
|
|
1526
|
-
accessToken: string;
|
|
1527
|
-
refreshToken: string;
|
|
1528
|
-
impersonator?: Impersonator;
|
|
1529
|
-
authenticationMethod?: AuthenticationMethod;
|
|
1530
|
-
sealedSession?: string;
|
|
1531
|
-
oauthTokens?: OauthTokens;
|
|
1532
|
-
}
|
|
1533
|
-
interface AuthenticationResponseResponse {
|
|
1534
|
-
user: UserResponse;
|
|
1535
|
-
organization_id?: string;
|
|
1536
|
-
access_token: string;
|
|
1537
|
-
refresh_token: string;
|
|
1538
|
-
impersonator?: ImpersonatorResponse;
|
|
1539
|
-
authentication_method?: AuthenticationMethod;
|
|
1540
|
-
oauth_tokens?: OauthTokensResponse;
|
|
1541
|
-
}
|
|
1542
|
-
//#endregion
|
|
1543
|
-
//#region src/user-management/interfaces/authenticate-with-session-cookie.interface.d.ts
|
|
1544
|
-
interface AuthenticateWithSessionCookieOptions {
|
|
1545
|
-
sessionData: string;
|
|
1546
|
-
cookiePassword?: string;
|
|
1547
|
-
}
|
|
1548
|
-
interface UserManagementAccessToken {
|
|
1549
|
-
sid: string;
|
|
1550
|
-
org_id?: string;
|
|
1551
|
-
role?: string;
|
|
1552
|
-
roles?: string[];
|
|
1553
|
-
permissions?: string[];
|
|
1554
|
-
entitlements?: string[];
|
|
1555
|
-
feature_flags?: string[];
|
|
1556
|
-
}
|
|
1557
|
-
type SessionCookieData = Pick<AuthenticationResponse, 'accessToken' | 'authenticationMethod' | 'impersonator' | 'organizationId' | 'refreshToken' | 'user'>;
|
|
1558
|
-
declare enum AuthenticateWithSessionCookieFailureReason {
|
|
1559
|
-
INVALID_JWT = "invalid_jwt",
|
|
1560
|
-
INVALID_SESSION_COOKIE = "invalid_session_cookie",
|
|
1561
|
-
NO_SESSION_COOKIE_PROVIDED = "no_session_cookie_provided"
|
|
1562
|
-
}
|
|
1563
|
-
type AuthenticateWithSessionCookieFailedResponse = {
|
|
1564
|
-
authenticated: false;
|
|
1565
|
-
reason: AuthenticateWithSessionCookieFailureReason;
|
|
1566
|
-
};
|
|
1567
|
-
type AuthenticateWithSessionCookieSuccessResponse = {
|
|
1568
|
-
authenticated: true;
|
|
1569
|
-
accessToken: string;
|
|
1570
|
-
authenticationMethod: AuthenticationResponse['authenticationMethod'];
|
|
1571
|
-
sessionId: string;
|
|
2231
|
+
interface SerializedAuthenticateWithRefreshTokenOptions extends SerializedAuthenticateWithOptionsBase {
|
|
2232
|
+
grant_type: 'refresh_token';
|
|
2233
|
+
refresh_token: string;
|
|
2234
|
+
organization_id: string | undefined;
|
|
2235
|
+
}
|
|
2236
|
+
//#endregion
|
|
2237
|
+
//#region src/user-management/interfaces/authenticate-with-refresh-token-public-client-options.interface.d.ts
|
|
2238
|
+
/** Options for refreshing tokens as a public client (no client_secret required) */
|
|
2239
|
+
interface AuthenticateWithRefreshTokenPublicClientOptions extends AuthenticateWithOptionsBase {
|
|
2240
|
+
refreshToken: string;
|
|
1572
2241
|
organizationId?: string;
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
impersonator?: Impersonator;
|
|
1580
|
-
};
|
|
2242
|
+
}
|
|
2243
|
+
interface SerializedAuthenticateWithRefreshTokenPublicClientOptions extends SerializedAuthenticatePublicClientBase {
|
|
2244
|
+
grant_type: 'refresh_token';
|
|
2245
|
+
refresh_token: string;
|
|
2246
|
+
organization_id: string | undefined;
|
|
2247
|
+
}
|
|
1581
2248
|
//#endregion
|
|
1582
2249
|
//#region src/user-management/interfaces/authenticate-with-totp-options.interface.d.ts
|
|
1583
2250
|
interface AuthenticateWithTotpOptions extends AuthenticateWithOptionsBase {
|
|
@@ -1601,17 +2268,17 @@ interface AuthenticationEventError {
|
|
|
1601
2268
|
message: string;
|
|
1602
2269
|
}
|
|
1603
2270
|
interface AuthenticationEventSso {
|
|
1604
|
-
connectionId: string;
|
|
1605
|
-
organizationId: string;
|
|
1606
|
-
sessionId
|
|
2271
|
+
connectionId: string | null;
|
|
2272
|
+
organizationId: string | null;
|
|
2273
|
+
sessionId: string | null;
|
|
1607
2274
|
}
|
|
1608
2275
|
interface AuthenticationEventSsoResponse {
|
|
1609
|
-
connection_id: string;
|
|
1610
|
-
organization_id: string;
|
|
1611
|
-
session_id
|
|
2276
|
+
connection_id: string | null;
|
|
2277
|
+
organization_id: string | null;
|
|
2278
|
+
session_id: string | null;
|
|
1612
2279
|
}
|
|
1613
|
-
type AuthenticationEventType = 'sso' | 'password' | 'oauth' | 'mfa' | 'magic_auth' | 'email_verification';
|
|
1614
|
-
type AuthenticationEventStatus = 'failed' | 'succeeded';
|
|
2280
|
+
type AuthenticationEventType = 'sso' | 'password' | 'oauth' | 'mfa' | 'magic_auth' | 'email_verification' | 'passkey' | 'reauthentication';
|
|
2281
|
+
type AuthenticationEventStatus = 'failed' | 'succeeded' | 'started' | 'timed_out';
|
|
1615
2282
|
type AuthenticationEvent = {
|
|
1616
2283
|
email: string | null;
|
|
1617
2284
|
error?: AuthenticationEventError;
|
|
@@ -1662,12 +2329,12 @@ interface TotpWithSecretsResponse extends TotpResponse {
|
|
|
1662
2329
|
}
|
|
1663
2330
|
//#endregion
|
|
1664
2331
|
//#region src/multi-factor-auth/interfaces/factor.interface.d.ts
|
|
1665
|
-
type FactorType = 'sms' | 'totp' | 'generic_otp';
|
|
2332
|
+
type FactorType = 'sms' | 'totp' | 'generic_otp' | 'webauthn';
|
|
1666
2333
|
interface Factor {
|
|
1667
2334
|
object: 'authentication_factor';
|
|
1668
2335
|
id: string;
|
|
1669
|
-
createdAt:
|
|
1670
|
-
updatedAt:
|
|
2336
|
+
createdAt: Date;
|
|
2337
|
+
updatedAt: Date;
|
|
1671
2338
|
type: FactorType;
|
|
1672
2339
|
sms?: Sms;
|
|
1673
2340
|
totp?: Totp;
|
|
@@ -1675,8 +2342,8 @@ interface Factor {
|
|
|
1675
2342
|
interface FactorWithSecrets {
|
|
1676
2343
|
object: 'authentication_factor';
|
|
1677
2344
|
id: string;
|
|
1678
|
-
createdAt:
|
|
1679
|
-
updatedAt:
|
|
2345
|
+
createdAt: Date;
|
|
2346
|
+
updatedAt: Date;
|
|
1680
2347
|
type: FactorType;
|
|
1681
2348
|
sms?: Sms;
|
|
1682
2349
|
totp?: TotpWithSecrets;
|
|
@@ -1705,8 +2372,8 @@ type AuthenticationFactorType = FactorType;
|
|
|
1705
2372
|
interface AuthenticationFactor {
|
|
1706
2373
|
object: 'authentication_factor';
|
|
1707
2374
|
id: string;
|
|
1708
|
-
createdAt:
|
|
1709
|
-
updatedAt:
|
|
2375
|
+
createdAt: Date;
|
|
2376
|
+
updatedAt: Date;
|
|
1710
2377
|
type: AuthenticationFactorType;
|
|
1711
2378
|
sms?: Sms;
|
|
1712
2379
|
totp?: Totp;
|
|
@@ -1715,8 +2382,8 @@ interface AuthenticationFactor {
|
|
|
1715
2382
|
interface AuthenticationFactorWithSecrets {
|
|
1716
2383
|
object: 'authentication_factor';
|
|
1717
2384
|
id: string;
|
|
1718
|
-
createdAt:
|
|
1719
|
-
updatedAt:
|
|
2385
|
+
createdAt: Date;
|
|
2386
|
+
updatedAt: Date;
|
|
1720
2387
|
type: 'totp';
|
|
1721
2388
|
totp: TotpWithSecrets;
|
|
1722
2389
|
userId: string;
|
|
@@ -1928,22 +2595,22 @@ interface EmailVerification {
|
|
|
1928
2595
|
/** The email address of the user. */
|
|
1929
2596
|
email: string;
|
|
1930
2597
|
/** The timestamp when the email verification code expires. */
|
|
1931
|
-
expiresAt:
|
|
2598
|
+
expiresAt: Date;
|
|
1932
2599
|
/** The code used to verify the email. */
|
|
1933
2600
|
code: string;
|
|
1934
2601
|
/** An ISO 8601 timestamp. */
|
|
1935
|
-
createdAt:
|
|
2602
|
+
createdAt: Date;
|
|
1936
2603
|
/** An ISO 8601 timestamp. */
|
|
1937
|
-
updatedAt:
|
|
2604
|
+
updatedAt: Date;
|
|
1938
2605
|
}
|
|
1939
2606
|
interface EmailVerificationEvent {
|
|
1940
2607
|
object: 'email_verification';
|
|
1941
2608
|
id: string;
|
|
1942
2609
|
userId: string;
|
|
1943
2610
|
email: string;
|
|
1944
|
-
expiresAt:
|
|
1945
|
-
createdAt:
|
|
1946
|
-
updatedAt:
|
|
2611
|
+
expiresAt: Date;
|
|
2612
|
+
createdAt: Date;
|
|
2613
|
+
updatedAt: Date;
|
|
1947
2614
|
}
|
|
1948
2615
|
interface EmailVerificationResponse {
|
|
1949
2616
|
object: 'email_verification';
|
|
@@ -1998,11 +2665,11 @@ interface Invitation {
|
|
|
1998
2665
|
/** The state of the invitation. */
|
|
1999
2666
|
state: 'pending' | 'accepted' | 'expired' | 'revoked';
|
|
2000
2667
|
/** The timestamp when the invitation was accepted, or null if not yet accepted. */
|
|
2001
|
-
acceptedAt:
|
|
2668
|
+
acceptedAt: Date | null;
|
|
2002
2669
|
/** The timestamp when the invitation was revoked, or null if not revoked. */
|
|
2003
|
-
revokedAt:
|
|
2670
|
+
revokedAt: Date | null;
|
|
2004
2671
|
/** The timestamp when the invitation expires. */
|
|
2005
|
-
expiresAt:
|
|
2672
|
+
expiresAt: Date;
|
|
2006
2673
|
/** The ID of the [organization](https://workos.com/docs/reference/organization) that the recipient will join. */
|
|
2007
2674
|
organizationId: string | null;
|
|
2008
2675
|
/** The ID of the user who invited the recipient, if provided. */
|
|
@@ -2016,24 +2683,24 @@ interface Invitation {
|
|
|
2016
2683
|
/** The URL where the recipient can accept the invitation. */
|
|
2017
2684
|
acceptInvitationUrl: string;
|
|
2018
2685
|
/** An ISO 8601 timestamp. */
|
|
2019
|
-
createdAt:
|
|
2686
|
+
createdAt: Date;
|
|
2020
2687
|
/** An ISO 8601 timestamp. */
|
|
2021
|
-
updatedAt:
|
|
2688
|
+
updatedAt: Date;
|
|
2022
2689
|
}
|
|
2023
2690
|
interface InvitationEvent {
|
|
2024
2691
|
object: 'invitation';
|
|
2025
2692
|
id: string;
|
|
2026
2693
|
email: string;
|
|
2027
2694
|
state: 'pending' | 'accepted' | 'expired' | 'revoked';
|
|
2028
|
-
acceptedAt:
|
|
2029
|
-
revokedAt:
|
|
2030
|
-
expiresAt:
|
|
2695
|
+
acceptedAt: Date | null;
|
|
2696
|
+
revokedAt: Date | null;
|
|
2697
|
+
expiresAt: Date;
|
|
2031
2698
|
organizationId: string | null;
|
|
2032
2699
|
inviterUserId: string | null;
|
|
2033
2700
|
acceptedUserId: string | null;
|
|
2034
2701
|
roleSlug: string | null;
|
|
2035
|
-
createdAt:
|
|
2036
|
-
updatedAt:
|
|
2702
|
+
createdAt: Date;
|
|
2703
|
+
updatedAt: Date;
|
|
2037
2704
|
}
|
|
2038
2705
|
interface InvitationResponse {
|
|
2039
2706
|
object: 'invitation';
|
|
@@ -2099,8 +2766,8 @@ interface BaseOrganizationMembership {
|
|
|
2099
2766
|
status: OrganizationMembershipStatus;
|
|
2100
2767
|
userId: string;
|
|
2101
2768
|
directoryManaged: boolean;
|
|
2102
|
-
createdAt:
|
|
2103
|
-
updatedAt:
|
|
2769
|
+
createdAt: Date;
|
|
2770
|
+
updatedAt: Date;
|
|
2104
2771
|
customAttributes: Record<string, unknown>;
|
|
2105
2772
|
}
|
|
2106
2773
|
interface OrganizationMembership extends BaseOrganizationMembership {
|
|
@@ -2109,6 +2776,11 @@ interface OrganizationMembership extends BaseOrganizationMembership {
|
|
|
2109
2776
|
/** The primary role assigned to the user within the organization. */
|
|
2110
2777
|
role: RoleResponse;
|
|
2111
2778
|
roles?: RoleResponse[];
|
|
2779
|
+
/**
|
|
2780
|
+
* The user who holds this membership. Returned by the Organization
|
|
2781
|
+
* Membership API endpoints; absent from event and action payloads.
|
|
2782
|
+
*/
|
|
2783
|
+
user?: User;
|
|
2112
2784
|
}
|
|
2113
2785
|
type AuthorizationOrganizationMembership = BaseOrganizationMembership;
|
|
2114
2786
|
interface BaseOrganizationMembershipResponse {
|
|
@@ -2126,6 +2798,7 @@ interface BaseOrganizationMembershipResponse {
|
|
|
2126
2798
|
interface OrganizationMembershipResponse extends BaseOrganizationMembershipResponse {
|
|
2127
2799
|
role: RoleResponse;
|
|
2128
2800
|
roles?: RoleResponse[];
|
|
2801
|
+
user?: UserResponse;
|
|
2129
2802
|
}
|
|
2130
2803
|
type AuthorizationOrganizationMembershipResponse = BaseOrganizationMembershipResponse;
|
|
2131
2804
|
//#endregion
|
|
@@ -2186,15 +2859,15 @@ interface WaitlistEntry {
|
|
|
2186
2859
|
/** The state of the waitlist entry. */
|
|
2187
2860
|
state: WaitlistEntryState;
|
|
2188
2861
|
/** The timestamp when the entry was approved, or null if not yet approved. */
|
|
2189
|
-
approvedAt:
|
|
2862
|
+
approvedAt: Date | null;
|
|
2190
2863
|
/** Additional fields submitted when the user joined the waitlist. Values are user-provided — treat them as untrusted input when rendering or exporting. */
|
|
2191
2864
|
additionalFields?: Record<string, string>;
|
|
2192
2865
|
/** The unique ID of the waitlist the entry belongs to. */
|
|
2193
2866
|
waitlistId: string | null;
|
|
2194
2867
|
/** An ISO 8601 timestamp. */
|
|
2195
|
-
createdAt:
|
|
2868
|
+
createdAt: Date;
|
|
2196
2869
|
/** An ISO 8601 timestamp. */
|
|
2197
|
-
updatedAt:
|
|
2870
|
+
updatedAt: Date;
|
|
2198
2871
|
}
|
|
2199
2872
|
interface WaitlistEntryResponse {
|
|
2200
2873
|
object: 'waitlist_entry';
|
|
@@ -2240,22 +2913,22 @@ interface MagicAuth {
|
|
|
2240
2913
|
/** The email address of the user. */
|
|
2241
2914
|
email: string;
|
|
2242
2915
|
/** The timestamp when the Magic Auth code expires. */
|
|
2243
|
-
expiresAt:
|
|
2916
|
+
expiresAt: Date;
|
|
2244
2917
|
/** The code used to verify the Magic Auth code. */
|
|
2245
2918
|
code: string;
|
|
2246
2919
|
/** An ISO 8601 timestamp. */
|
|
2247
|
-
createdAt:
|
|
2920
|
+
createdAt: Date;
|
|
2248
2921
|
/** An ISO 8601 timestamp. */
|
|
2249
|
-
updatedAt:
|
|
2922
|
+
updatedAt: Date;
|
|
2250
2923
|
}
|
|
2251
2924
|
interface MagicAuthEvent {
|
|
2252
2925
|
object: 'magic_auth';
|
|
2253
2926
|
id: string;
|
|
2254
2927
|
userId: string;
|
|
2255
2928
|
email: string;
|
|
2256
|
-
expiresAt:
|
|
2257
|
-
createdAt:
|
|
2258
|
-
updatedAt:
|
|
2929
|
+
expiresAt: Date;
|
|
2930
|
+
createdAt: Date;
|
|
2931
|
+
updatedAt: Date;
|
|
2259
2932
|
}
|
|
2260
2933
|
interface MagicAuthResponse {
|
|
2261
2934
|
object: 'magic_auth';
|
|
@@ -2298,17 +2971,17 @@ interface PasswordReset {
|
|
|
2298
2971
|
/** The URL where the user can reset their password. */
|
|
2299
2972
|
passwordResetUrl: string;
|
|
2300
2973
|
/** The timestamp when the password reset token expires. */
|
|
2301
|
-
expiresAt:
|
|
2974
|
+
expiresAt: Date;
|
|
2302
2975
|
/** The timestamp when the password reset token was created. */
|
|
2303
|
-
createdAt:
|
|
2976
|
+
createdAt: Date;
|
|
2304
2977
|
}
|
|
2305
2978
|
interface PasswordResetEvent {
|
|
2306
2979
|
object: 'password_reset';
|
|
2307
2980
|
id: string;
|
|
2308
2981
|
userId: string;
|
|
2309
2982
|
email: string;
|
|
2310
|
-
expiresAt:
|
|
2311
|
-
createdAt:
|
|
2983
|
+
expiresAt: Date;
|
|
2984
|
+
createdAt: Date;
|
|
2312
2985
|
}
|
|
2313
2986
|
interface PasswordResetResponse {
|
|
2314
2987
|
object: 'password_reset';
|
|
@@ -2466,10 +3139,10 @@ interface Session {
|
|
|
2466
3139
|
impersonator?: Impersonator;
|
|
2467
3140
|
authMethod: AuthMethod;
|
|
2468
3141
|
status: SessionStatus;
|
|
2469
|
-
expiresAt:
|
|
2470
|
-
endedAt:
|
|
2471
|
-
createdAt:
|
|
2472
|
-
updatedAt:
|
|
3142
|
+
expiresAt: Date;
|
|
3143
|
+
endedAt: Date | null;
|
|
3144
|
+
createdAt: Date;
|
|
3145
|
+
updatedAt: Date;
|
|
2473
3146
|
}
|
|
2474
3147
|
interface SessionResponse {
|
|
2475
3148
|
object: 'session';
|
|
@@ -2546,11 +3219,11 @@ interface UserApiKey {
|
|
|
2546
3219
|
};
|
|
2547
3220
|
name: string;
|
|
2548
3221
|
obfuscatedValue: string;
|
|
2549
|
-
lastUsedAt:
|
|
2550
|
-
expiresAt:
|
|
3222
|
+
lastUsedAt: Date | null;
|
|
3223
|
+
expiresAt: Date | null;
|
|
2551
3224
|
permissions: string[];
|
|
2552
|
-
createdAt:
|
|
2553
|
-
updatedAt:
|
|
3225
|
+
createdAt: Date;
|
|
3226
|
+
updatedAt: Date;
|
|
2554
3227
|
}
|
|
2555
3228
|
interface SerializedUserApiKey {
|
|
2556
3229
|
object: 'api_key';
|
|
@@ -2593,9 +3266,9 @@ interface Waitlist {
|
|
|
2593
3266
|
/** The unique ID of the Waitlist. */
|
|
2594
3267
|
id: string;
|
|
2595
3268
|
/** An ISO 8601 timestamp. */
|
|
2596
|
-
createdAt:
|
|
3269
|
+
createdAt: Date;
|
|
2597
3270
|
/** An ISO 8601 timestamp. */
|
|
2598
|
-
updatedAt:
|
|
3271
|
+
updatedAt: Date;
|
|
2599
3272
|
}
|
|
2600
3273
|
interface WaitlistResponse {
|
|
2601
3274
|
object: 'waitlist';
|
|
@@ -2604,6 +3277,31 @@ interface WaitlistResponse {
|
|
|
2604
3277
|
updated_at: string;
|
|
2605
3278
|
}
|
|
2606
3279
|
//#endregion
|
|
3280
|
+
//#region src/user-management/interfaces/waitlist-user-event.interface.d.ts
|
|
3281
|
+
/** The waitlist entry as delivered on `waitlist_user.*` events. */
|
|
3282
|
+
interface WaitlistUserEventData {
|
|
3283
|
+
object: 'waitlist_user';
|
|
3284
|
+
id: string;
|
|
3285
|
+
email: string;
|
|
3286
|
+
state: WaitlistEntryState;
|
|
3287
|
+
approvedAt: Date | null;
|
|
3288
|
+
additionalFields?: Record<string, string>;
|
|
3289
|
+
waitlistId: string | null;
|
|
3290
|
+
createdAt: Date;
|
|
3291
|
+
updatedAt: Date;
|
|
3292
|
+
}
|
|
3293
|
+
interface WaitlistUserEventResponseData {
|
|
3294
|
+
object: 'waitlist_user';
|
|
3295
|
+
id: string;
|
|
3296
|
+
email: string;
|
|
3297
|
+
state: WaitlistEntryState;
|
|
3298
|
+
approved_at: string | null;
|
|
3299
|
+
additional_fields?: Record<string, string>;
|
|
3300
|
+
waitlist_id?: string | null;
|
|
3301
|
+
created_at: string;
|
|
3302
|
+
updated_at: string;
|
|
3303
|
+
}
|
|
3304
|
+
//#endregion
|
|
2607
3305
|
//#region src/organization-domains/interfaces/create-organization-domain-options.interface.d.ts
|
|
2608
3306
|
interface CreateOrganizationDomainOptions {
|
|
2609
3307
|
domain: string;
|
|
@@ -2618,6 +3316,7 @@ interface SerializedCreateOrganizationDomainOptions {
|
|
|
2618
3316
|
declare enum OrganizationDomainState {
|
|
2619
3317
|
Verified = "verified",
|
|
2620
3318
|
Pending = "pending",
|
|
3319
|
+
Unverified = "unverified",
|
|
2621
3320
|
Failed = "failed"
|
|
2622
3321
|
}
|
|
2623
3322
|
declare enum OrganizationDomainVerificationStrategy {
|
|
@@ -2642,9 +3341,9 @@ interface OrganizationDomain {
|
|
|
2642
3341
|
/** The prefix used in DNS verification. */
|
|
2643
3342
|
verificationPrefix?: string;
|
|
2644
3343
|
/** An ISO 8601 timestamp. */
|
|
2645
|
-
createdAt:
|
|
3344
|
+
createdAt: Date;
|
|
2646
3345
|
/** An ISO 8601 timestamp. */
|
|
2647
|
-
updatedAt:
|
|
3346
|
+
updatedAt: Date;
|
|
2648
3347
|
}
|
|
2649
3348
|
interface OrganizationDomainResponse {
|
|
2650
3349
|
object: 'organization_domain';
|
|
@@ -2690,13 +3389,14 @@ interface ApiKey {
|
|
|
2690
3389
|
/** An obfuscated representation of the API Key value. */
|
|
2691
3390
|
obfuscatedValue: string;
|
|
2692
3391
|
/** Timestamp of when the API Key was last used. */
|
|
2693
|
-
lastUsedAt:
|
|
3392
|
+
lastUsedAt: Date | null;
|
|
3393
|
+
expiresAt: Date | null;
|
|
2694
3394
|
/** The permission slugs assigned to the API Key. */
|
|
2695
3395
|
permissions: string[];
|
|
2696
3396
|
/** An ISO 8601 timestamp. */
|
|
2697
|
-
createdAt:
|
|
3397
|
+
createdAt: Date;
|
|
2698
3398
|
/** An ISO 8601 timestamp. */
|
|
2699
|
-
updatedAt:
|
|
3399
|
+
updatedAt: Date;
|
|
2700
3400
|
}
|
|
2701
3401
|
interface SerializedApiKey {
|
|
2702
3402
|
object: 'api_key';
|
|
@@ -2712,11 +3412,26 @@ interface SerializedApiKey {
|
|
|
2712
3412
|
name: string;
|
|
2713
3413
|
obfuscated_value: string;
|
|
2714
3414
|
last_used_at: string | null;
|
|
3415
|
+
expires_at: string | null;
|
|
2715
3416
|
permissions: string[];
|
|
2716
3417
|
created_at: string;
|
|
2717
3418
|
updated_at: string;
|
|
2718
3419
|
}
|
|
2719
3420
|
//#endregion
|
|
3421
|
+
//#region src/api-keys/interfaces/api-key-event.interface.d.ts
|
|
3422
|
+
interface ApiKeyPreviousAttributes {
|
|
3423
|
+
expiresAt: Date | null;
|
|
3424
|
+
}
|
|
3425
|
+
interface SerializedApiKeyPreviousAttributes {
|
|
3426
|
+
expires_at: string | null;
|
|
3427
|
+
}
|
|
3428
|
+
interface ApiKeyUpdatedEventData extends ApiKey {
|
|
3429
|
+
previousAttributes: ApiKeyPreviousAttributes;
|
|
3430
|
+
}
|
|
3431
|
+
interface SerializedApiKeyUpdatedEventData extends SerializedApiKey {
|
|
3432
|
+
previous_attributes: SerializedApiKeyPreviousAttributes;
|
|
3433
|
+
}
|
|
3434
|
+
//#endregion
|
|
2720
3435
|
//#region src/api-keys/interfaces/create-organization-api-key-options.interface.d.ts
|
|
2721
3436
|
interface CreateOrganizationApiKeyOptions {
|
|
2722
3437
|
organizationId: string;
|
|
@@ -2740,10 +3455,11 @@ interface CreatedApiKey {
|
|
|
2740
3455
|
name: string;
|
|
2741
3456
|
obfuscatedValue: string;
|
|
2742
3457
|
value: string;
|
|
2743
|
-
lastUsedAt:
|
|
3458
|
+
lastUsedAt: Date | null;
|
|
3459
|
+
expiresAt: Date | null;
|
|
2744
3460
|
permissions: string[];
|
|
2745
|
-
createdAt:
|
|
2746
|
-
updatedAt:
|
|
3461
|
+
createdAt: Date;
|
|
3462
|
+
updatedAt: Date;
|
|
2747
3463
|
}
|
|
2748
3464
|
interface SerializedCreatedApiKey {
|
|
2749
3465
|
object: 'api_key';
|
|
@@ -2756,6 +3472,7 @@ interface SerializedCreatedApiKey {
|
|
|
2756
3472
|
obfuscated_value: string;
|
|
2757
3473
|
value: string;
|
|
2758
3474
|
last_used_at: string | null;
|
|
3475
|
+
expires_at: string | null;
|
|
2759
3476
|
permissions: string[];
|
|
2760
3477
|
created_at: string;
|
|
2761
3478
|
updated_at: string;
|
|
@@ -2783,6 +3500,65 @@ interface SerializedValidateApiKeyResponse {
|
|
|
2783
3500
|
agent_registration_id?: string;
|
|
2784
3501
|
}
|
|
2785
3502
|
//#endregion
|
|
3503
|
+
//#region src/actions/interfaces/action-event.interface.d.ts
|
|
3504
|
+
interface ActionDeniedEventDataBase {
|
|
3505
|
+
actionEndpointId: string;
|
|
3506
|
+
actionExecutionId: string;
|
|
3507
|
+
verdict: 'Deny';
|
|
3508
|
+
organizationId: string | null;
|
|
3509
|
+
email: string;
|
|
3510
|
+
ipAddress: string | null;
|
|
3511
|
+
userAgent: string | null;
|
|
3512
|
+
}
|
|
3513
|
+
interface ActionDeniedEventResponseDataBase {
|
|
3514
|
+
action_endpoint_id: string;
|
|
3515
|
+
action_execution_id: string;
|
|
3516
|
+
verdict: 'Deny';
|
|
3517
|
+
organization_id: string | null;
|
|
3518
|
+
email: string;
|
|
3519
|
+
ip_address: string | null;
|
|
3520
|
+
user_agent: string | null;
|
|
3521
|
+
}
|
|
3522
|
+
interface ActionAuthenticationDeniedEventData extends ActionDeniedEventDataBase {
|
|
3523
|
+
type: 'authentication';
|
|
3524
|
+
userId: string;
|
|
3525
|
+
}
|
|
3526
|
+
interface ActionAuthenticationDeniedEventResponseData extends ActionDeniedEventResponseDataBase {
|
|
3527
|
+
type: 'authentication';
|
|
3528
|
+
user_id: string;
|
|
3529
|
+
}
|
|
3530
|
+
interface ActionUserRegistrationDeniedEventData extends ActionDeniedEventDataBase {
|
|
3531
|
+
type: 'user_registration';
|
|
3532
|
+
}
|
|
3533
|
+
interface ActionUserRegistrationDeniedEventResponseData extends ActionDeniedEventResponseDataBase {
|
|
3534
|
+
type: 'user_registration';
|
|
3535
|
+
}
|
|
3536
|
+
//#endregion
|
|
3537
|
+
//#region src/radar/interfaces/radar-event.interface.d.ts
|
|
3538
|
+
interface RadarChallengeCreatedEventData {
|
|
3539
|
+
type: 'email';
|
|
3540
|
+
radarChallengeId: string;
|
|
3541
|
+
userId: string;
|
|
3542
|
+
email: string;
|
|
3543
|
+
}
|
|
3544
|
+
interface RadarChallengeCreatedEventResponseData {
|
|
3545
|
+
type: 'email';
|
|
3546
|
+
radar_challenge_id: string;
|
|
3547
|
+
user_id: string;
|
|
3548
|
+
email: string;
|
|
3549
|
+
}
|
|
3550
|
+
//#endregion
|
|
3551
|
+
//#region src/common/interfaces/resource-export-event.interface.d.ts
|
|
3552
|
+
type ResourceExportResourceType = 'users' | 'organizations' | 'events' | 'sessions' | 'auditLogEvents' | 'connections' | 'directoryUsers' | 'scimLogs';
|
|
3553
|
+
interface ResourceExportEventData {
|
|
3554
|
+
id: string;
|
|
3555
|
+
resourceType: ResourceExportResourceType;
|
|
3556
|
+
}
|
|
3557
|
+
interface ResourceExportEventResponseData {
|
|
3558
|
+
id: string;
|
|
3559
|
+
resource_type: ResourceExportResourceType;
|
|
3560
|
+
}
|
|
3561
|
+
//#endregion
|
|
2786
3562
|
//#region src/feature-flags/interfaces/add-flag-target-options.interface.d.ts
|
|
2787
3563
|
interface AddFlagTargetOptions {
|
|
2788
3564
|
slug: string;
|
|
@@ -2834,7 +3610,7 @@ interface FeatureFlag {
|
|
|
2834
3610
|
/** A unique key to reference the Feature Flag. */
|
|
2835
3611
|
slug: string;
|
|
2836
3612
|
/** A description for the Feature Flag. */
|
|
2837
|
-
description: string;
|
|
3613
|
+
description: string | null;
|
|
2838
3614
|
/** Labels assigned to the Feature Flag for categorizing and filtering. */
|
|
2839
3615
|
tags: string[];
|
|
2840
3616
|
/** Specifies whether the Feature Flag is active for the current environment. */
|
|
@@ -2842,16 +3618,16 @@ interface FeatureFlag {
|
|
|
2842
3618
|
/** The value returned for users and organizations who don't match any configured targeting rules. */
|
|
2843
3619
|
defaultValue: boolean;
|
|
2844
3620
|
/** An ISO 8601 timestamp. */
|
|
2845
|
-
createdAt:
|
|
3621
|
+
createdAt: Date;
|
|
2846
3622
|
/** An ISO 8601 timestamp. */
|
|
2847
|
-
updatedAt:
|
|
3623
|
+
updatedAt: Date;
|
|
2848
3624
|
}
|
|
2849
3625
|
interface FeatureFlagResponse {
|
|
2850
3626
|
object: 'feature_flag';
|
|
2851
3627
|
id: string;
|
|
2852
3628
|
name: string;
|
|
2853
3629
|
slug: string;
|
|
2854
|
-
description: string;
|
|
3630
|
+
description: string | null;
|
|
2855
3631
|
tags: string[];
|
|
2856
3632
|
enabled: boolean;
|
|
2857
3633
|
default_value: boolean;
|
|
@@ -2860,27 +3636,29 @@ interface FeatureFlagResponse {
|
|
|
2860
3636
|
}
|
|
2861
3637
|
//#endregion
|
|
2862
3638
|
//#region src/feature-flags/interfaces/flag-poll-response.interface.d.ts
|
|
2863
|
-
interface
|
|
2864
|
-
|
|
2865
|
-
|
|
3639
|
+
interface FlagPollCondition {
|
|
3640
|
+
operator: string;
|
|
3641
|
+
target_type?: string;
|
|
3642
|
+
values?: unknown;
|
|
2866
3643
|
}
|
|
2867
|
-
interface
|
|
2868
|
-
type: string;
|
|
3644
|
+
interface FlagPollRule {
|
|
2869
3645
|
id: string;
|
|
2870
|
-
|
|
3646
|
+
kind: string;
|
|
3647
|
+
value: unknown;
|
|
3648
|
+
conditions?: FlagPollCondition[];
|
|
2871
3649
|
}
|
|
2872
3650
|
interface FlagPollEntry {
|
|
2873
3651
|
slug: string;
|
|
2874
3652
|
enabled: boolean;
|
|
2875
|
-
default_value:
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
3653
|
+
default_value: unknown;
|
|
3654
|
+
off_value: unknown;
|
|
3655
|
+
/** Evaluated in array order; the first matching rule wins. */
|
|
3656
|
+
rules: FlagPollRule[];
|
|
3657
|
+
}
|
|
3658
|
+
interface FlagPollResponse {
|
|
3659
|
+
version: 2;
|
|
3660
|
+
flags: Record<string, FlagPollEntry>;
|
|
2882
3661
|
}
|
|
2883
|
-
type FlagPollResponse = Record<string, FlagPollEntry>;
|
|
2884
3662
|
//#endregion
|
|
2885
3663
|
//#region src/feature-flags/interfaces/flag-change.interface.d.ts
|
|
2886
3664
|
interface FlagChange {
|
|
@@ -2907,7 +3685,8 @@ interface RuntimeClientLogger {
|
|
|
2907
3685
|
}
|
|
2908
3686
|
interface RuntimeClientOptions {
|
|
2909
3687
|
pollingIntervalMs?: number;
|
|
2910
|
-
|
|
3688
|
+
/** A versioned envelope, as returned by polling. */
|
|
3689
|
+
bootstrapFlags?: FlagPollResponse;
|
|
2911
3690
|
requestTimeoutMs?: number;
|
|
2912
3691
|
logger?: RuntimeClientLogger;
|
|
2913
3692
|
}
|
|
@@ -3034,25 +3813,47 @@ declare const DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwn
|
|
|
3034
3813
|
};
|
|
3035
3814
|
type DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner = (typeof DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner)[keyof typeof DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner];
|
|
3036
3815
|
//#endregion
|
|
3816
|
+
//#region src/pipes/interfaces/data-integrations-get-data-integration-authorize-url-request-connection-intent.interface.d.ts
|
|
3817
|
+
declare const DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionIntent: {
|
|
3818
|
+
readonly Add: "add";
|
|
3819
|
+
readonly Reauthorize: "reauthorize";
|
|
3820
|
+
};
|
|
3821
|
+
type DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionIntent = (typeof DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionIntent)[keyof typeof DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionIntent];
|
|
3822
|
+
//#endregion
|
|
3037
3823
|
//#region src/pipes/interfaces/data-integrations-get-data-integration-authorize-url-request.interface.d.ts
|
|
3038
3824
|
interface DataIntegrationsGetDataIntegrationAuthorizeUrlRequest {
|
|
3825
|
+
/** A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers. */
|
|
3826
|
+
accountDisplayName?: string | null;
|
|
3039
3827
|
/** The ID of the user to authorize. When `connection_owner` is `organization`, this is the user authorizing on behalf of the organization; they must be an active member of the organization and do not become the owner of the resulting connected account. */
|
|
3040
3828
|
userId: string;
|
|
3041
3829
|
/** An organization ID to scope the authorization to a specific organization. Required when `connection_owner` is `organization`. */
|
|
3042
3830
|
organizationId?: string;
|
|
3043
3831
|
/** Who will own the connected account. `user` (the default) connects the user's own account. `organization` connects the organization's shared account and requires `organization_id`. */
|
|
3044
3832
|
connectionOwner?: DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner;
|
|
3045
|
-
/** The URL to redirect the user to after authorization. */
|
|
3833
|
+
/** The URL to redirect the user to after authorization. Required with `code_challenge`, and must then exactly match a redirect URI registered on one of the environment's applications. Loopback URLs match on any port; wildcard redirect URIs are not honored, and a `return_to` with a query string or fragment never matches. */
|
|
3046
3834
|
returnTo?: string;
|
|
3835
|
+
/** A PKCE-style code challenge: the base64url-encoded SHA-256 of a `code_verifier` your app keeps. When set, the connection isn't saved when the user finishes authorizing. Instead, the user is redirected to `return_to` with a `connect_code` and `state`, and your app must call [Finish connection](https://workos.com/docs/reference/pipes/connected-account/finish-connection) with the `connect_code` and `code_verifier` within 90 seconds to save it. */
|
|
3836
|
+
codeChallenge?: string;
|
|
3837
|
+
/** The method used to derive `code_challenge`. Only `S256` is supported, and it is the default. Requires `code_challenge`. */
|
|
3838
|
+
codeChallengeMethod?: 'S256';
|
|
3047
3839
|
/** Connect-time config values for the provider-declared `installation`-scope fields (e.g. a Zendesk `subdomain`), keyed by the config field. Only fields the provider declares may be supplied, and required fields must be provided unless already pinned on the integration. */
|
|
3048
3840
|
config?: Record<string, string>;
|
|
3841
|
+
/** Which connection the request targets. Omit it to use the compatibility connection. Send `add` to create another connection: the first connection for an owner shape fills the compatibility slot, and later connections are standard. Send `reauthorize` with `connected_account_id` to reauthorize one exact connection. */
|
|
3842
|
+
connectionIntent?: DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionIntent;
|
|
3843
|
+
/** The exact connected account to reauthorize. Required with `connection_intent: reauthorize` and not accepted otherwise. */
|
|
3844
|
+
connectedAccountId?: string;
|
|
3049
3845
|
}
|
|
3050
3846
|
interface DataIntegrationsGetDataIntegrationAuthorizeUrlRequestResponse {
|
|
3847
|
+
account_display_name?: string | null;
|
|
3051
3848
|
user_id: string;
|
|
3052
3849
|
organization_id?: string;
|
|
3053
3850
|
connection_owner?: DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner;
|
|
3054
3851
|
return_to?: string;
|
|
3852
|
+
code_challenge?: string;
|
|
3853
|
+
code_challenge_method?: 'S256';
|
|
3055
3854
|
config?: Record<string, string>;
|
|
3855
|
+
connection_intent?: DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionIntent;
|
|
3856
|
+
connected_account_id?: string;
|
|
3056
3857
|
}
|
|
3057
3858
|
//#endregion
|
|
3058
3859
|
//#region src/pipes/interfaces/authorize-data-integration-options.interface.d.ts
|
|
@@ -3091,6 +3892,17 @@ declare const ConnectedAccountState: {
|
|
|
3091
3892
|
};
|
|
3092
3893
|
type ConnectedAccountState = (typeof ConnectedAccountState)[keyof typeof ConnectedAccountState];
|
|
3093
3894
|
//#endregion
|
|
3895
|
+
//#region src/pipes/interfaces/connected-account-warning.interface.d.ts
|
|
3896
|
+
interface ConnectedAccountWarning {
|
|
3897
|
+
code: 'duplicate_account_display_name';
|
|
3898
|
+
/** A human-readable explanation of the non-blocking warning. */
|
|
3899
|
+
message: string;
|
|
3900
|
+
}
|
|
3901
|
+
interface ConnectedAccountWarningResponse {
|
|
3902
|
+
code: 'duplicate_account_display_name';
|
|
3903
|
+
message: string;
|
|
3904
|
+
}
|
|
3905
|
+
//#endregion
|
|
3094
3906
|
//#region src/pipes/interfaces/connected-account.interface.d.ts
|
|
3095
3907
|
interface ConnectedAccount {
|
|
3096
3908
|
/** Distinguishes the connected account object. */
|
|
@@ -3122,14 +3934,25 @@ interface ConnectedAccount {
|
|
|
3122
3934
|
/**
|
|
3123
3935
|
* The state of the connected account:
|
|
3124
3936
|
* - `connected`: The connection is active and tokens are valid.
|
|
3125
|
-
* - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed.
|
|
3937
|
+
* - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed. `state_reason` explains why when WorkOS invalidated the connection itself.
|
|
3126
3938
|
* - `disconnected`: The connection has been disconnected.
|
|
3127
3939
|
*/
|
|
3128
3940
|
state: ConnectedAccountState;
|
|
3941
|
+
/** The [User](https://workos.com/docs/reference/authkit/user) whose authorization established this connection. `null` when the connection is developer-managed or its establisher is unknown, and when the establishing member lost access to the organization — in which case `state_reason` is `establishing_member_membership_ended`. */
|
|
3942
|
+
establishedByUserId?: string | null;
|
|
3943
|
+
/**
|
|
3944
|
+
* Why WorkOS put the connection in its current `state`, or `null` when there is no WorkOS-recorded reason:
|
|
3945
|
+
* - `establishing_member_membership_ended`: The member who established this organization-owned connection is no longer an active member of the organization, so its credentials were cleared. An organization admin must provide new credentials.
|
|
3946
|
+
*
|
|
3947
|
+
* Additional values may be added; treat an unrecognized value as an unknown reason.
|
|
3948
|
+
*/
|
|
3949
|
+
stateReason?: 'establishing_member_membership_ended' | null;
|
|
3129
3950
|
/** The timestamp when the connection was created. */
|
|
3130
|
-
createdAt:
|
|
3951
|
+
createdAt: Date;
|
|
3131
3952
|
/** The timestamp when the connection was last updated. */
|
|
3132
|
-
updatedAt:
|
|
3953
|
+
updatedAt: Date;
|
|
3954
|
+
/** Non-blocking warnings about an explicitly supplied label. Only writes return it, and only when another connection already uses the label; reads omit it. */
|
|
3955
|
+
warnings?: ConnectedAccountWarning[];
|
|
3133
3956
|
}
|
|
3134
3957
|
interface ConnectedAccountResponse {
|
|
3135
3958
|
object: 'connected_account';
|
|
@@ -3146,8 +3969,11 @@ interface ConnectedAccountResponse {
|
|
|
3146
3969
|
client_secret_last_4?: string | null;
|
|
3147
3970
|
config?: Record<string, string>;
|
|
3148
3971
|
state: ConnectedAccountState;
|
|
3972
|
+
established_by_user_id?: string | null;
|
|
3973
|
+
state_reason?: 'establishing_member_membership_ended' | null;
|
|
3149
3974
|
created_at: string;
|
|
3150
3975
|
updated_at: string;
|
|
3976
|
+
warnings?: ConnectedAccountWarningResponse[];
|
|
3151
3977
|
}
|
|
3152
3978
|
//#endregion
|
|
3153
3979
|
//#region src/pipes/interfaces/data-integrations-create-api-key-connection-request-connection-owner.interface.d.ts
|
|
@@ -3459,9 +4285,12 @@ type DataIntegrationAuthMethods = (typeof DataIntegrationAuthMethods)[keyof type
|
|
|
3459
4285
|
interface DataIntegrationAuthorizeUrlResponse {
|
|
3460
4286
|
/** The OAuth authorization URL to redirect the user to. */
|
|
3461
4287
|
url: string;
|
|
4288
|
+
/** `finish_required` when the request included `code_challenge`: the connection will be held until your app finishes it. Omitted otherwise. If you sent `code_challenge` and this is missing, don't redirect the user. */
|
|
4289
|
+
completion?: 'finish_required';
|
|
3462
4290
|
}
|
|
3463
4291
|
interface DataIntegrationAuthorizeUrlResponseWire {
|
|
3464
4292
|
url: string;
|
|
4293
|
+
completion?: 'finish_required';
|
|
3465
4294
|
}
|
|
3466
4295
|
//#endregion
|
|
3467
4296
|
//#region src/pipes/interfaces/data-integration-credential-type.interface.d.ts
|
|
@@ -3472,7 +4301,7 @@ declare const DataIntegrationCredentialType: {
|
|
|
3472
4301
|
type DataIntegrationCredentialType = (typeof DataIntegrationCredentialType)[keyof typeof DataIntegrationCredentialType];
|
|
3473
4302
|
//#endregion
|
|
3474
4303
|
//#region src/pipes/interfaces/data-integration-credential.interface.d.ts
|
|
3475
|
-
/** The credentials
|
|
4304
|
+
/** The integration-level OAuth app credentials. `null` for `api_key` and `client_credentials` integrations, which hold no integration-level credentials (secrets are installed per-tenant). */
|
|
3476
4305
|
interface DataIntegrationCredential {
|
|
3477
4306
|
/** 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). */
|
|
3478
4307
|
type: DataIntegrationCredentialType;
|
|
@@ -3498,7 +4327,7 @@ type DataIntegrationVendedCredential = {
|
|
|
3498
4327
|
authMethod: 'oauth';
|
|
3499
4328
|
value: string;
|
|
3500
4329
|
config?: Record<string, string>;
|
|
3501
|
-
expiresAt:
|
|
4330
|
+
expiresAt: Date | null;
|
|
3502
4331
|
scopes: string[];
|
|
3503
4332
|
missingScopes: string[];
|
|
3504
4333
|
metadata?: undefined;
|
|
@@ -3516,7 +4345,7 @@ type DataIntegrationVendedCredential = {
|
|
|
3516
4345
|
authMethod: 'client_credentials';
|
|
3517
4346
|
value: string;
|
|
3518
4347
|
config?: Record<string, string>;
|
|
3519
|
-
expiresAt:
|
|
4348
|
+
expiresAt: Date | null;
|
|
3520
4349
|
scopes: string[];
|
|
3521
4350
|
missingScopes: string[];
|
|
3522
4351
|
/** Non-sensitive provider token response fields, such as an instance URL. */
|
|
@@ -3586,6 +4415,7 @@ declare const DataIntegrationCustomProviderAuthenticateVia: {
|
|
|
3586
4415
|
type DataIntegrationCustomProviderAuthenticateVia = (typeof DataIntegrationCustomProviderAuthenticateVia)[keyof typeof DataIntegrationCustomProviderAuthenticateVia];
|
|
3587
4416
|
//#endregion
|
|
3588
4417
|
//#region src/pipes/interfaces/data-integration-custom-provider.interface.d.ts
|
|
4418
|
+
/** The OAuth definition when this is a custom provider; `null` for built-in providers. */
|
|
3589
4419
|
interface DataIntegrationCustomProvider {
|
|
3590
4420
|
/** A descriptive name for the custom provider. */
|
|
3591
4421
|
name: string;
|
|
@@ -3624,6 +4454,15 @@ interface DataIntegrationCustomProviderResponse {
|
|
|
3624
4454
|
authenticate_via: DataIntegrationCustomProviderAuthenticateVia;
|
|
3625
4455
|
}
|
|
3626
4456
|
//#endregion
|
|
4457
|
+
//#region src/pipes/interfaces/data-integration-finish-connection-response.interface.d.ts
|
|
4458
|
+
interface DataIntegrationFinishConnectionResponse {
|
|
4459
|
+
/** The connected account that was saved. */
|
|
4460
|
+
connectedAccount: ConnectedAccount;
|
|
4461
|
+
}
|
|
4462
|
+
interface DataIntegrationFinishConnectionResponseWire {
|
|
4463
|
+
connected_account: ConnectedAccountResponse;
|
|
4464
|
+
}
|
|
4465
|
+
//#endregion
|
|
3627
4466
|
//#region src/pipes/interfaces/data-integration-installation-connection-role.interface.d.ts
|
|
3628
4467
|
declare const DataIntegrationInstallationConnectionRole: {
|
|
3629
4468
|
readonly Compatibility: "compatibility";
|
|
@@ -3632,6 +4471,7 @@ declare const DataIntegrationInstallationConnectionRole: {
|
|
|
3632
4471
|
type DataIntegrationInstallationConnectionRole = (typeof DataIntegrationInstallationConnectionRole)[keyof typeof DataIntegrationInstallationConnectionRole];
|
|
3633
4472
|
//#endregion
|
|
3634
4473
|
//#region src/pipes/interfaces/data-integration-installation.interface.d.ts
|
|
4474
|
+
/** The tenant installation created when an API key was supplied at creation time; `null` otherwise. Not populated on list/get responses. */
|
|
3635
4475
|
interface DataIntegrationInstallation {
|
|
3636
4476
|
/** Unique identifier of the installation. */
|
|
3637
4477
|
id: string;
|
|
@@ -3789,7 +4629,12 @@ declare const DataIntegrationsListResponseDataConnectedAccountState: {
|
|
|
3789
4629
|
};
|
|
3790
4630
|
type DataIntegrationsListResponseDataConnectedAccountState = (typeof DataIntegrationsListResponseDataConnectedAccountState)[keyof typeof DataIntegrationsListResponseDataConnectedAccountState];
|
|
3791
4631
|
//#endregion
|
|
4632
|
+
//#region src/pipes/interfaces/data-integrations-list-response-data-connected-account-warning.interface.d.ts
|
|
4633
|
+
type DataIntegrationsListResponseDataConnectedAccountWarning = ConnectedAccountWarning;
|
|
4634
|
+
type DataIntegrationsListResponseDataConnectedAccountWarningResponse = ConnectedAccountWarningResponse;
|
|
4635
|
+
//#endregion
|
|
3792
4636
|
//#region src/pipes/interfaces/data-integrations-list-response-data-connected-account.interface.d.ts
|
|
4637
|
+
/** The user's compatibility [connected account](https://workos.com/docs/reference/pipes/connected-account) for this provider, or `null` when the compatibility slot is empty. This legacy field never selects a standard connection. */
|
|
3793
4638
|
interface DataIntegrationsListResponseDataConnectedAccount {
|
|
3794
4639
|
/** Distinguishes the connected account object. */
|
|
3795
4640
|
object: 'connected_account';
|
|
@@ -3820,14 +4665,25 @@ interface DataIntegrationsListResponseDataConnectedAccount {
|
|
|
3820
4665
|
/**
|
|
3821
4666
|
* The state of the connected account:
|
|
3822
4667
|
* - `connected`: The connection is active and tokens are valid.
|
|
3823
|
-
* - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed.
|
|
4668
|
+
* - `needs_reauthorization`: The user needs to reauthorize the connection, typically because required scopes have changed. `state_reason` explains why when WorkOS invalidated the connection itself.
|
|
3824
4669
|
* - `disconnected`: The connection has been disconnected.
|
|
3825
4670
|
*/
|
|
3826
4671
|
state: DataIntegrationsListResponseDataConnectedAccountState;
|
|
4672
|
+
/** The [User](https://workos.com/docs/reference/authkit/user) whose authorization established this connection. `null` when the connection is developer-managed or its establisher is unknown, and when the establishing member lost access to the organization — in which case `state_reason` is `establishing_member_membership_ended`. */
|
|
4673
|
+
establishedByUserId?: string | null;
|
|
4674
|
+
/**
|
|
4675
|
+
* Why WorkOS put the connection in its current `state`, or `null` when there is no WorkOS-recorded reason:
|
|
4676
|
+
* - `establishing_member_membership_ended`: The member who established this organization-owned connection is no longer an active member of the organization, so its credentials were cleared. An organization admin must provide new credentials.
|
|
4677
|
+
*
|
|
4678
|
+
* Additional values may be added; treat an unrecognized value as an unknown reason.
|
|
4679
|
+
*/
|
|
4680
|
+
stateReason?: 'establishing_member_membership_ended' | null;
|
|
3827
4681
|
/** The timestamp when the connection was created. */
|
|
3828
|
-
createdAt:
|
|
4682
|
+
createdAt: Date;
|
|
3829
4683
|
/** The timestamp when the connection was last updated. */
|
|
3830
|
-
updatedAt:
|
|
4684
|
+
updatedAt: Date;
|
|
4685
|
+
/** Non-blocking warnings about an explicitly supplied label. Only writes return it, and only when another connection already uses the label; reads omit it. */
|
|
4686
|
+
warnings?: DataIntegrationsListResponseDataConnectedAccountWarning[];
|
|
3831
4687
|
/**
|
|
3832
4688
|
* Use `user_id` instead.
|
|
3833
4689
|
* @deprecated
|
|
@@ -3849,8 +4705,11 @@ interface DataIntegrationsListResponseDataConnectedAccountResponse {
|
|
|
3849
4705
|
client_secret_last_4?: string | null;
|
|
3850
4706
|
config?: Record<string, string>;
|
|
3851
4707
|
state: DataIntegrationsListResponseDataConnectedAccountState;
|
|
4708
|
+
established_by_user_id?: string | null;
|
|
4709
|
+
state_reason?: 'establishing_member_membership_ended' | null;
|
|
3852
4710
|
created_at: string;
|
|
3853
4711
|
updated_at: string;
|
|
4712
|
+
warnings?: DataIntegrationsListResponseDataConnectedAccountWarningResponse[];
|
|
3854
4713
|
userland_user_id: string | null;
|
|
3855
4714
|
}
|
|
3856
4715
|
//#endregion
|
|
@@ -3896,9 +4755,9 @@ interface DataIntegrationsListResponseData {
|
|
|
3896
4755
|
*/
|
|
3897
4756
|
ownership: DataIntegrationsListResponseDataOwnership;
|
|
3898
4757
|
/** The timestamp when the provider was created. */
|
|
3899
|
-
createdAt:
|
|
4758
|
+
createdAt: Date;
|
|
3900
4759
|
/** The timestamp when the provider was last updated. */
|
|
3901
|
-
updatedAt:
|
|
4760
|
+
updatedAt: Date;
|
|
3902
4761
|
/** The user's compatibility [connected account](https://workos.com/docs/reference/pipes/connected-account) for this provider, or `null` when the compatibility slot is empty. This legacy field never selects a standard connection. */
|
|
3903
4762
|
connectedAccount: DataIntegrationsListResponseDataConnectedAccount | null;
|
|
3904
4763
|
/** The user's connected accounts for this provider in the requested ownership context. This contains only the compatibility connection unless `supports_multiple_connections` is `true`. */
|
|
@@ -3943,6 +4802,10 @@ type DataIntegrationsUpsertApiKeyRequestConnectionOwner = (typeof DataIntegratio
|
|
|
3943
4802
|
//#endregion
|
|
3944
4803
|
//#region src/pipes/interfaces/data-integrations-upsert-api-key-request.interface.d.ts
|
|
3945
4804
|
interface DataIntegrationsUpsertApiKeyRequest {
|
|
4805
|
+
/** A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers. */
|
|
4806
|
+
accountDisplayName?: string | null;
|
|
4807
|
+
/** A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it. */
|
|
4808
|
+
accountIdentifier?: string | null;
|
|
3946
4809
|
/** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
|
|
3947
4810
|
userId: string;
|
|
3948
4811
|
/** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`. */
|
|
@@ -3957,6 +4820,8 @@ interface DataIntegrationsUpsertApiKeyRequest {
|
|
|
3957
4820
|
secret: string;
|
|
3958
4821
|
}
|
|
3959
4822
|
interface DataIntegrationsUpsertApiKeyRequestResponse {
|
|
4823
|
+
account_display_name?: string | null;
|
|
4824
|
+
account_identifier?: string | null;
|
|
3960
4825
|
user_id: string;
|
|
3961
4826
|
organization_id?: string;
|
|
3962
4827
|
connected_account_id?: string;
|
|
@@ -3974,6 +4839,10 @@ type DataIntegrationsUpsertClientCredentialsRequestConnectionOwner = (typeof Dat
|
|
|
3974
4839
|
//#endregion
|
|
3975
4840
|
//#region src/pipes/interfaces/data-integrations-upsert-client-credentials-request.interface.d.ts
|
|
3976
4841
|
interface DataIntegrationsUpsertClientCredentialsRequest {
|
|
4842
|
+
/** A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers. */
|
|
4843
|
+
accountDisplayName?: string | null;
|
|
4844
|
+
/** A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it. */
|
|
4845
|
+
accountIdentifier?: string | null;
|
|
3977
4846
|
/** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
|
|
3978
4847
|
userId: string;
|
|
3979
4848
|
/** An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`. */
|
|
@@ -3992,6 +4861,8 @@ interface DataIntegrationsUpsertClientCredentialsRequest {
|
|
|
3992
4861
|
config?: Record<string, string>;
|
|
3993
4862
|
}
|
|
3994
4863
|
interface DataIntegrationsUpsertClientCredentialsRequestResponse {
|
|
4864
|
+
account_display_name?: string | null;
|
|
4865
|
+
account_identifier?: string | null;
|
|
3995
4866
|
user_id: string;
|
|
3996
4867
|
organization_id?: string;
|
|
3997
4868
|
connected_account_id?: string;
|
|
@@ -4040,6 +4911,16 @@ interface DeleteUserConnectedAccountOptions {
|
|
|
4040
4911
|
connectedAccountId?: string;
|
|
4041
4912
|
}
|
|
4042
4913
|
//#endregion
|
|
4914
|
+
//#region src/pipes/interfaces/finish-connection-options.interface.d.ts
|
|
4915
|
+
interface FinishConnectionOptions {
|
|
4916
|
+
/** The `connect_code` WorkOS added to `return_to` when the user finished authorizing. It can be used once and expires 90 seconds after the redirect. */
|
|
4917
|
+
connectCode: string;
|
|
4918
|
+
/** The code verifier `code_challenge` was derived from: 43 to 128 characters from `A-Z`, `a-z`, `0-9`, `-`, `.`, `_` and `~`. A wrong verifier uses up the `connect_code`, and the user has to connect again. */
|
|
4919
|
+
codeVerifier: string;
|
|
4920
|
+
/** The `state` WorkOS added to `return_to` alongside `connect_code`. Optional; it is only used to correlate the request in logs. */
|
|
4921
|
+
state?: string;
|
|
4922
|
+
}
|
|
4923
|
+
//#endregion
|
|
4043
4924
|
//#region src/pipes/interfaces/get-access-token-options.interface.d.ts
|
|
4044
4925
|
interface GetAccessTokenOptions extends DataIntegrationsGetUserTokenRequest {
|
|
4045
4926
|
/** The identifier of the integration. */
|
|
@@ -4229,9 +5110,6 @@ interface UpdateOrganizationConnectedAccountOptions {
|
|
|
4229
5110
|
userId: string;
|
|
4230
5111
|
}
|
|
4231
5112
|
//#endregion
|
|
4232
|
-
//#region src/pipes/interfaces/update-organization-data-integration-options.interface.d.ts
|
|
4233
|
-
type UpdateOrganizationDataIntegrationOptions = UpdateDataIntegrationOptions;
|
|
4234
|
-
//#endregion
|
|
4235
5113
|
//#region src/pipes/interfaces/update-user-connected-account-options.interface.d.ts
|
|
4236
5114
|
interface UpdateUserConnectedAccountOptions {
|
|
4237
5115
|
/** A [User](https://workos.com/docs/reference/authkit/user) identifier. */
|
|
@@ -4353,17 +5231,169 @@ interface VaultByokKeyVerificationCompletedEventResponseData {
|
|
|
4353
5231
|
key_provider: VaultByokKeyProvider;
|
|
4354
5232
|
verified: boolean;
|
|
4355
5233
|
}
|
|
5234
|
+
interface VaultKekDeletedEventData extends VaultActor {
|
|
5235
|
+
keyName: string;
|
|
5236
|
+
keyId: string;
|
|
5237
|
+
}
|
|
5238
|
+
interface VaultKekDeletedEventResponseData extends VaultActorResponse {
|
|
5239
|
+
key_name: string;
|
|
5240
|
+
key_id: string;
|
|
5241
|
+
}
|
|
5242
|
+
interface VaultDekRekeyedEventData extends VaultActor {
|
|
5243
|
+
keyIds: string[];
|
|
5244
|
+
keyContext: KeyContext;
|
|
5245
|
+
}
|
|
5246
|
+
interface VaultDekRekeyedEventResponseData extends VaultActorResponse {
|
|
5247
|
+
key_ids: string[];
|
|
5248
|
+
key_context: KeyContext;
|
|
5249
|
+
}
|
|
5250
|
+
interface VaultByokKeyDeletedEventData {
|
|
5251
|
+
organizationId: string;
|
|
5252
|
+
keyProvider: VaultByokKeyProvider;
|
|
5253
|
+
}
|
|
5254
|
+
interface VaultByokKeyDeletedEventResponseData {
|
|
5255
|
+
organization_id: string;
|
|
5256
|
+
key_provider: VaultByokKeyProvider;
|
|
5257
|
+
}
|
|
4356
5258
|
//#endregion
|
|
4357
5259
|
//#region src/common/interfaces/event.interface.d.ts
|
|
4358
5260
|
interface EventBase {
|
|
4359
5261
|
id: string;
|
|
4360
|
-
createdAt:
|
|
5262
|
+
createdAt: Date;
|
|
4361
5263
|
context: Record<string, unknown> | undefined;
|
|
4362
5264
|
}
|
|
4363
|
-
interface EventResponseBase {
|
|
4364
|
-
id: string;
|
|
4365
|
-
created_at: string;
|
|
4366
|
-
context?: Record<string, unknown>;
|
|
5265
|
+
interface EventResponseBase {
|
|
5266
|
+
id: string;
|
|
5267
|
+
created_at: string;
|
|
5268
|
+
context?: Record<string, unknown>;
|
|
5269
|
+
}
|
|
5270
|
+
interface AgentBlueprintCreatedEvent extends EventBase {
|
|
5271
|
+
event: 'agent.blueprint.created';
|
|
5272
|
+
data: AgentBlueprintEventData;
|
|
5273
|
+
}
|
|
5274
|
+
interface AgentBlueprintCreatedEventResponse extends EventResponseBase {
|
|
5275
|
+
event: 'agent.blueprint.created';
|
|
5276
|
+
data: AgentBlueprintEventResponseData;
|
|
5277
|
+
}
|
|
5278
|
+
interface AgentBlueprintDeletedEvent extends EventBase {
|
|
5279
|
+
event: 'agent.blueprint.deleted';
|
|
5280
|
+
data: AgentBlueprintDeletedEventData;
|
|
5281
|
+
}
|
|
5282
|
+
interface AgentBlueprintDeletedEventResponse extends EventResponseBase {
|
|
5283
|
+
event: 'agent.blueprint.deleted';
|
|
5284
|
+
data: AgentBlueprintDeletedEventResponseData;
|
|
5285
|
+
}
|
|
5286
|
+
interface AgentBlueprintUpdatedEvent extends EventBase {
|
|
5287
|
+
event: 'agent.blueprint.updated';
|
|
5288
|
+
data: AgentBlueprintEventData;
|
|
5289
|
+
}
|
|
5290
|
+
interface AgentBlueprintUpdatedEventResponse extends EventResponseBase {
|
|
5291
|
+
event: 'agent.blueprint.updated';
|
|
5292
|
+
data: AgentBlueprintEventResponseData;
|
|
5293
|
+
}
|
|
5294
|
+
interface AgentInstanceCreatedEvent extends EventBase {
|
|
5295
|
+
event: 'agent.instance.created';
|
|
5296
|
+
data: AgentInstance;
|
|
5297
|
+
}
|
|
5298
|
+
interface AgentInstanceCreatedEventResponse extends EventResponseBase {
|
|
5299
|
+
event: 'agent.instance.created';
|
|
5300
|
+
data: SerializedAgentInstance;
|
|
5301
|
+
}
|
|
5302
|
+
interface AgentInstanceDeletedEvent extends EventBase {
|
|
5303
|
+
event: 'agent.instance.deleted';
|
|
5304
|
+
data: AgentInstance;
|
|
5305
|
+
}
|
|
5306
|
+
interface AgentInstanceDeletedEventResponse extends EventResponseBase {
|
|
5307
|
+
event: 'agent.instance.deleted';
|
|
5308
|
+
data: SerializedAgentInstance;
|
|
5309
|
+
}
|
|
5310
|
+
interface AgentInstanceSessionCreatedEvent extends EventBase {
|
|
5311
|
+
event: 'agent.instance.session.created';
|
|
5312
|
+
data: AgentInstanceSessionCreatedEventData;
|
|
5313
|
+
}
|
|
5314
|
+
interface AgentInstanceSessionCreatedEventResponse extends EventResponseBase {
|
|
5315
|
+
event: 'agent.instance.session.created';
|
|
5316
|
+
data: AgentInstanceSessionCreatedEventResponseData;
|
|
5317
|
+
}
|
|
5318
|
+
interface AgentInstanceSessionRevokedEvent extends EventBase {
|
|
5319
|
+
event: 'agent.instance.session.revoked';
|
|
5320
|
+
data: AgentInstanceSessionEventData;
|
|
5321
|
+
}
|
|
5322
|
+
interface AgentInstanceSessionRevokedEventResponse extends EventResponseBase {
|
|
5323
|
+
event: 'agent.instance.session.revoked';
|
|
5324
|
+
data: AgentInstanceSessionEventResponseData;
|
|
5325
|
+
}
|
|
5326
|
+
interface AgentRegistrationCreatedEvent extends EventBase {
|
|
5327
|
+
event: 'agent.registration.created';
|
|
5328
|
+
data: AgentRegistrationCreatedEventData;
|
|
5329
|
+
}
|
|
5330
|
+
interface AgentRegistrationCreatedEventResponse extends EventResponseBase {
|
|
5331
|
+
event: 'agent.registration.created';
|
|
5332
|
+
data: AgentRegistrationCreatedEventResponseData;
|
|
5333
|
+
}
|
|
5334
|
+
interface AgentRegistrationClaimAttemptCreatedEvent extends EventBase {
|
|
5335
|
+
event: 'agent.registration.claim.attempt.created';
|
|
5336
|
+
data: AgentRegistrationClaimAttemptCreatedEventData;
|
|
5337
|
+
}
|
|
5338
|
+
interface AgentRegistrationClaimAttemptCreatedEventResponse extends EventResponseBase {
|
|
5339
|
+
event: 'agent.registration.claim.attempt.created';
|
|
5340
|
+
data: AgentRegistrationClaimAttemptCreatedEventResponseData;
|
|
5341
|
+
}
|
|
5342
|
+
interface AgentRegistrationClaimCompletedEvent extends EventBase {
|
|
5343
|
+
event: 'agent.registration.claim.completed';
|
|
5344
|
+
data: AgentRegistrationClaimCompletedEventData;
|
|
5345
|
+
}
|
|
5346
|
+
interface AgentRegistrationClaimCompletedEventResponse extends EventResponseBase {
|
|
5347
|
+
event: 'agent.registration.claim.completed';
|
|
5348
|
+
data: AgentRegistrationClaimCompletedEventResponseData;
|
|
5349
|
+
}
|
|
5350
|
+
interface AgentRegistrationCredentialIssuedEvent extends EventBase {
|
|
5351
|
+
event: 'agent.registration.credential.issued';
|
|
5352
|
+
data: AgentRegistrationCredentialIssuedEventData;
|
|
5353
|
+
}
|
|
5354
|
+
interface AgentRegistrationCredentialIssuedEventResponse extends EventResponseBase {
|
|
5355
|
+
event: 'agent.registration.credential.issued';
|
|
5356
|
+
data: AgentRegistrationCredentialIssuedEventResponseData;
|
|
5357
|
+
}
|
|
5358
|
+
interface AgentRegistrationOrganizationSwitchedEvent extends EventBase {
|
|
5359
|
+
event: 'agent.registration.organization.switched';
|
|
5360
|
+
data: AgentRegistrationOrganizationSwitchedEventData;
|
|
5361
|
+
}
|
|
5362
|
+
interface AgentRegistrationOrganizationSwitchedEventResponse extends EventResponseBase {
|
|
5363
|
+
event: 'agent.registration.organization.switched';
|
|
5364
|
+
data: AgentRegistrationOrganizationSwitchedEventResponseData;
|
|
5365
|
+
}
|
|
5366
|
+
interface AgentRegistrationRefreshedEvent extends EventBase {
|
|
5367
|
+
event: 'agent.registration.refreshed';
|
|
5368
|
+
data: AgentRegistrationLifecycleEventData;
|
|
5369
|
+
}
|
|
5370
|
+
interface AgentRegistrationRefreshedEventResponse extends EventResponseBase {
|
|
5371
|
+
event: 'agent.registration.refreshed';
|
|
5372
|
+
data: AgentRegistrationLifecycleEventResponseData;
|
|
5373
|
+
}
|
|
5374
|
+
interface AgentRegistrationExpiredEvent extends EventBase {
|
|
5375
|
+
event: 'agent.registration.expired';
|
|
5376
|
+
data: AgentRegistrationLifecycleEventData;
|
|
5377
|
+
}
|
|
5378
|
+
interface AgentRegistrationExpiredEventResponse extends EventResponseBase {
|
|
5379
|
+
event: 'agent.registration.expired';
|
|
5380
|
+
data: AgentRegistrationLifecycleEventResponseData;
|
|
5381
|
+
}
|
|
5382
|
+
interface AgentRegistrationRevokedEvent extends EventBase {
|
|
5383
|
+
event: 'agent.registration.revoked';
|
|
5384
|
+
data: AgentRegistrationLifecycleEventData;
|
|
5385
|
+
}
|
|
5386
|
+
interface AgentRegistrationRevokedEventResponse extends EventResponseBase {
|
|
5387
|
+
event: 'agent.registration.revoked';
|
|
5388
|
+
data: AgentRegistrationLifecycleEventResponseData;
|
|
5389
|
+
}
|
|
5390
|
+
interface AgentRegistrationDeletedEvent extends EventBase {
|
|
5391
|
+
event: 'agent.registration.deleted';
|
|
5392
|
+
data: AgentRegistrationLifecycleEventData;
|
|
5393
|
+
}
|
|
5394
|
+
interface AgentRegistrationDeletedEventResponse extends EventResponseBase {
|
|
5395
|
+
event: 'agent.registration.deleted';
|
|
5396
|
+
data: AgentRegistrationLifecycleEventResponseData;
|
|
4367
5397
|
}
|
|
4368
5398
|
interface AuthenticationEmailVerificationSucceededEvent extends EventBase {
|
|
4369
5399
|
event: 'authentication.email_verification_succeeded';
|
|
@@ -4953,24 +5983,38 @@ type PipesConnectedAccountState = ConnectedAccountState | 'disconnected';
|
|
|
4953
5983
|
interface PipesConnectedAccount {
|
|
4954
5984
|
object: 'connected_account';
|
|
4955
5985
|
id: string;
|
|
5986
|
+
connectionRole?: ConnectedAccountConnectionRole;
|
|
5987
|
+
accountIdentifier?: string | null;
|
|
5988
|
+
accountDisplayName?: string | null;
|
|
4956
5989
|
dataIntegrationId: string;
|
|
4957
5990
|
providerSlug: string;
|
|
4958
5991
|
userId: string | null;
|
|
4959
5992
|
organizationId: string | null;
|
|
4960
5993
|
scopes: string[];
|
|
5994
|
+
authMethod?: ConnectedAccountAuthMethod;
|
|
5995
|
+
apiKeyLast4?: string | null;
|
|
4961
5996
|
state: PipesConnectedAccountState;
|
|
4962
|
-
|
|
4963
|
-
|
|
5997
|
+
establishedByUserId?: string | null;
|
|
5998
|
+
stateReason?: 'establishing_member_membership_ended' | null;
|
|
5999
|
+
createdAt: Date;
|
|
6000
|
+
updatedAt: Date;
|
|
4964
6001
|
}
|
|
4965
6002
|
interface PipesConnectedAccountResponse {
|
|
4966
6003
|
object: 'connected_account';
|
|
4967
6004
|
id: string;
|
|
6005
|
+
connection_role?: ConnectedAccountConnectionRole;
|
|
6006
|
+
account_identifier?: string | null;
|
|
6007
|
+
account_display_name?: string | null;
|
|
4968
6008
|
data_integration_id: string;
|
|
4969
6009
|
provider_slug: string;
|
|
4970
6010
|
user_id: string | null;
|
|
4971
6011
|
organization_id: string | null;
|
|
4972
6012
|
scopes: string[];
|
|
6013
|
+
auth_method?: ConnectedAccountAuthMethod;
|
|
6014
|
+
api_key_last_4?: string | null;
|
|
4973
6015
|
state: PipesConnectedAccountState;
|
|
6016
|
+
established_by_user_id?: string | null;
|
|
6017
|
+
state_reason?: 'establishing_member_membership_ended' | null;
|
|
4974
6018
|
created_at: string;
|
|
4975
6019
|
updated_at: string;
|
|
4976
6020
|
}
|
|
@@ -4980,11 +6024,12 @@ interface PipesConnectionFailed {
|
|
|
4980
6024
|
providerSlug: string;
|
|
4981
6025
|
userId: string | null;
|
|
4982
6026
|
organizationId: string | null;
|
|
6027
|
+
accountIdentifier?: string | null;
|
|
4983
6028
|
errorCode: string;
|
|
4984
6029
|
errorReason: string | null;
|
|
4985
6030
|
providerError: string | null;
|
|
4986
6031
|
providerErrorDescription: string | null;
|
|
4987
|
-
createdAt:
|
|
6032
|
+
createdAt: Date;
|
|
4988
6033
|
}
|
|
4989
6034
|
interface PipesConnectionFailedResponse {
|
|
4990
6035
|
object: 'connection_failed';
|
|
@@ -4992,6 +6037,7 @@ interface PipesConnectionFailedResponse {
|
|
|
4992
6037
|
provider_slug: string;
|
|
4993
6038
|
user_id: string | null;
|
|
4994
6039
|
organization_id: string | null;
|
|
6040
|
+
account_identifier?: string | null;
|
|
4995
6041
|
error_code: string;
|
|
4996
6042
|
error_reason: string | null;
|
|
4997
6043
|
provider_error: string | null;
|
|
@@ -5110,13 +6156,261 @@ interface VaultByokKeyVerificationCompletedEventResponse extends EventResponseBa
|
|
|
5110
6156
|
event: 'vault.byok_key.verification_completed';
|
|
5111
6157
|
data: VaultByokKeyVerificationCompletedEventResponseData;
|
|
5112
6158
|
}
|
|
6159
|
+
interface ActionAuthenticationDeniedEvent extends EventBase {
|
|
6160
|
+
event: 'action.authentication.denied';
|
|
6161
|
+
data: ActionAuthenticationDeniedEventData;
|
|
6162
|
+
}
|
|
6163
|
+
interface ActionAuthenticationDeniedEventResponse extends EventResponseBase {
|
|
6164
|
+
event: 'action.authentication.denied';
|
|
6165
|
+
data: ActionAuthenticationDeniedEventResponseData;
|
|
6166
|
+
}
|
|
6167
|
+
interface ActionUserRegistrationDeniedEvent extends EventBase {
|
|
6168
|
+
event: 'action.user_registration.denied';
|
|
6169
|
+
data: ActionUserRegistrationDeniedEventData;
|
|
6170
|
+
}
|
|
6171
|
+
interface ActionUserRegistrationDeniedEventResponse extends EventResponseBase {
|
|
6172
|
+
event: 'action.user_registration.denied';
|
|
6173
|
+
data: ActionUserRegistrationDeniedEventResponseData;
|
|
6174
|
+
}
|
|
6175
|
+
interface ApiKeyUpdatedEvent extends EventBase {
|
|
6176
|
+
event: 'api_key.updated';
|
|
6177
|
+
data: ApiKeyUpdatedEventData;
|
|
6178
|
+
}
|
|
6179
|
+
interface ApiKeyUpdatedEventResponse extends EventResponseBase {
|
|
6180
|
+
event: 'api_key.updated';
|
|
6181
|
+
data: SerializedApiKeyUpdatedEventData;
|
|
6182
|
+
}
|
|
6183
|
+
interface AuthenticationEmailVerificationFailedEvent extends EventBase {
|
|
6184
|
+
event: 'authentication.email_verification_failed';
|
|
6185
|
+
data: AuthenticationEvent;
|
|
6186
|
+
}
|
|
6187
|
+
interface AuthenticationEmailVerificationFailedEventResponse extends EventResponseBase {
|
|
6188
|
+
event: 'authentication.email_verification_failed';
|
|
6189
|
+
data: AuthenticationEventResponse;
|
|
6190
|
+
}
|
|
6191
|
+
interface AuthenticationMfaFailedEvent extends EventBase {
|
|
6192
|
+
event: 'authentication.mfa_failed';
|
|
6193
|
+
data: AuthenticationEvent;
|
|
6194
|
+
}
|
|
6195
|
+
interface AuthenticationMfaFailedEventResponse extends EventResponseBase {
|
|
6196
|
+
event: 'authentication.mfa_failed';
|
|
6197
|
+
data: AuthenticationEventResponse;
|
|
6198
|
+
}
|
|
6199
|
+
interface AuthenticationReauthenticationSucceededEvent extends EventBase {
|
|
6200
|
+
event: 'authentication.reauthentication_succeeded';
|
|
6201
|
+
data: AuthenticationEvent;
|
|
6202
|
+
}
|
|
6203
|
+
interface AuthenticationReauthenticationSucceededEventResponse extends EventResponseBase {
|
|
6204
|
+
event: 'authentication.reauthentication_succeeded';
|
|
6205
|
+
data: AuthenticationEventResponse;
|
|
6206
|
+
}
|
|
6207
|
+
interface AuthenticationSSOStartedEvent extends EventBase {
|
|
6208
|
+
event: 'authentication.sso_started';
|
|
6209
|
+
data: AuthenticationEvent;
|
|
6210
|
+
}
|
|
6211
|
+
interface AuthenticationSSOStartedEventResponse extends EventResponseBase {
|
|
6212
|
+
event: 'authentication.sso_started';
|
|
6213
|
+
data: AuthenticationEventResponse;
|
|
6214
|
+
}
|
|
6215
|
+
interface AuthenticationSSOTimedOutEvent extends EventBase {
|
|
6216
|
+
event: 'authentication.sso_timed_out';
|
|
6217
|
+
data: AuthenticationEvent;
|
|
6218
|
+
}
|
|
6219
|
+
interface AuthenticationSSOTimedOutEventResponse extends EventResponseBase {
|
|
6220
|
+
event: 'authentication.sso_timed_out';
|
|
6221
|
+
data: AuthenticationEventResponse;
|
|
6222
|
+
}
|
|
6223
|
+
interface ConnectionSamlCertificateRenewalRequiredEvent extends EventBase {
|
|
6224
|
+
event: 'connection.saml_certificate_renewal_required';
|
|
6225
|
+
data: ConnectionSamlCertificateRenewalRequiredEventData;
|
|
6226
|
+
}
|
|
6227
|
+
interface ConnectionSamlCertificateRenewalRequiredEventResponse extends EventResponseBase {
|
|
6228
|
+
event: 'connection.saml_certificate_renewal_required';
|
|
6229
|
+
data: ConnectionSamlCertificateRenewalRequiredEventResponseData;
|
|
6230
|
+
}
|
|
6231
|
+
interface ConnectionSamlCertificateRenewedEvent extends EventBase {
|
|
6232
|
+
event: 'connection.saml_certificate_renewed';
|
|
6233
|
+
data: ConnectionSamlCertificateRenewedEventData;
|
|
6234
|
+
}
|
|
6235
|
+
interface ConnectionSamlCertificateRenewedEventResponse extends EventResponseBase {
|
|
6236
|
+
event: 'connection.saml_certificate_renewed';
|
|
6237
|
+
data: ConnectionSamlCertificateRenewedEventResponseData;
|
|
6238
|
+
}
|
|
6239
|
+
interface DsyncTokenCreatedEvent extends EventBase {
|
|
6240
|
+
event: 'dsync.token.created';
|
|
6241
|
+
data: DirectoryToken;
|
|
6242
|
+
}
|
|
6243
|
+
interface DsyncTokenCreatedEventResponse extends EventResponseBase {
|
|
6244
|
+
event: 'dsync.token.created';
|
|
6245
|
+
data: DirectoryTokenResponse;
|
|
6246
|
+
}
|
|
6247
|
+
interface DsyncTokenRevokedEvent extends EventBase {
|
|
6248
|
+
event: 'dsync.token.revoked';
|
|
6249
|
+
data: DirectoryToken;
|
|
6250
|
+
}
|
|
6251
|
+
interface DsyncTokenRevokedEventResponse extends EventResponseBase {
|
|
6252
|
+
event: 'dsync.token.revoked';
|
|
6253
|
+
data: DirectoryTokenResponse;
|
|
6254
|
+
}
|
|
6255
|
+
interface PipesAccountConnectionAddFailedEvent extends EventBase {
|
|
6256
|
+
event: 'pipes.account_connection.add_failed';
|
|
6257
|
+
data: PipesConnectionFailed;
|
|
6258
|
+
}
|
|
6259
|
+
interface PipesAccountConnectionAddFailedEventResponse extends EventResponseBase {
|
|
6260
|
+
event: 'pipes.account_connection.add_failed';
|
|
6261
|
+
data: PipesConnectionFailedResponse;
|
|
6262
|
+
}
|
|
6263
|
+
interface PipesAccountConnectionConnectedEvent extends EventBase {
|
|
6264
|
+
event: 'pipes.account_connection.connected';
|
|
6265
|
+
data: PipesConnectedAccount;
|
|
6266
|
+
}
|
|
6267
|
+
interface PipesAccountConnectionConnectedEventResponse extends EventResponseBase {
|
|
6268
|
+
event: 'pipes.account_connection.connected';
|
|
6269
|
+
data: PipesConnectedAccountResponse;
|
|
6270
|
+
}
|
|
6271
|
+
interface PipesAccountConnectionConnectionFailedEvent extends EventBase {
|
|
6272
|
+
event: 'pipes.account_connection.connection_failed';
|
|
6273
|
+
data: PipesConnectionFailed;
|
|
6274
|
+
}
|
|
6275
|
+
interface PipesAccountConnectionConnectionFailedEventResponse extends EventResponseBase {
|
|
6276
|
+
event: 'pipes.account_connection.connection_failed';
|
|
6277
|
+
data: PipesConnectionFailedResponse;
|
|
6278
|
+
}
|
|
6279
|
+
interface PipesAccountConnectionDisconnectedEvent extends EventBase {
|
|
6280
|
+
event: 'pipes.account_connection.disconnected';
|
|
6281
|
+
data: PipesConnectedAccount;
|
|
6282
|
+
}
|
|
6283
|
+
interface PipesAccountConnectionDisconnectedEventResponse extends EventResponseBase {
|
|
6284
|
+
event: 'pipes.account_connection.disconnected';
|
|
6285
|
+
data: PipesConnectedAccountResponse;
|
|
6286
|
+
}
|
|
6287
|
+
interface PipesAccountConnectionReauthorizationNeededEvent extends EventBase {
|
|
6288
|
+
event: 'pipes.account_connection.reauthorization_needed';
|
|
6289
|
+
data: PipesConnectedAccount;
|
|
6290
|
+
}
|
|
6291
|
+
interface PipesAccountConnectionReauthorizationNeededEventResponse extends EventResponseBase {
|
|
6292
|
+
event: 'pipes.account_connection.reauthorization_needed';
|
|
6293
|
+
data: PipesConnectedAccountResponse;
|
|
6294
|
+
}
|
|
6295
|
+
interface RadarChallengeCreatedEvent extends EventBase {
|
|
6296
|
+
event: 'radar.challenge_created';
|
|
6297
|
+
data: RadarChallengeCreatedEventData;
|
|
6298
|
+
}
|
|
6299
|
+
interface RadarChallengeCreatedEventResponse extends EventResponseBase {
|
|
6300
|
+
event: 'radar.challenge_created';
|
|
6301
|
+
data: RadarChallengeCreatedEventResponseData;
|
|
6302
|
+
}
|
|
6303
|
+
interface ResourceExportCompletedEvent extends EventBase {
|
|
6304
|
+
event: 'resource_export.completed';
|
|
6305
|
+
data: ResourceExportEventData;
|
|
6306
|
+
}
|
|
6307
|
+
interface ResourceExportCompletedEventResponse extends EventResponseBase {
|
|
6308
|
+
event: 'resource_export.completed';
|
|
6309
|
+
data: ResourceExportEventResponseData;
|
|
6310
|
+
}
|
|
6311
|
+
interface ResourceExportCreatedEvent extends EventBase {
|
|
6312
|
+
event: 'resource_export.created';
|
|
6313
|
+
data: ResourceExportEventData;
|
|
6314
|
+
}
|
|
6315
|
+
interface ResourceExportCreatedEventResponse extends EventResponseBase {
|
|
6316
|
+
event: 'resource_export.created';
|
|
6317
|
+
data: ResourceExportEventResponseData;
|
|
6318
|
+
}
|
|
6319
|
+
interface ResourceExportDownloadedEvent extends EventBase {
|
|
6320
|
+
event: 'resource_export.downloaded';
|
|
6321
|
+
data: ResourceExportEventData;
|
|
6322
|
+
}
|
|
6323
|
+
interface ResourceExportDownloadedEventResponse extends EventResponseBase {
|
|
6324
|
+
event: 'resource_export.downloaded';
|
|
6325
|
+
data: ResourceExportEventResponseData;
|
|
6326
|
+
}
|
|
6327
|
+
interface ResourceExportFailedEvent extends EventBase {
|
|
6328
|
+
event: 'resource_export.failed';
|
|
6329
|
+
data: ResourceExportEventData;
|
|
6330
|
+
}
|
|
6331
|
+
interface ResourceExportFailedEventResponse extends EventResponseBase {
|
|
6332
|
+
event: 'resource_export.failed';
|
|
6333
|
+
data: ResourceExportEventResponseData;
|
|
6334
|
+
}
|
|
6335
|
+
interface VaultByokKeyDeletedEvent extends EventBase {
|
|
6336
|
+
event: 'vault.byok_key.deleted';
|
|
6337
|
+
data: VaultByokKeyDeletedEventData;
|
|
6338
|
+
}
|
|
6339
|
+
interface VaultByokKeyDeletedEventResponse extends EventResponseBase {
|
|
6340
|
+
event: 'vault.byok_key.deleted';
|
|
6341
|
+
data: VaultByokKeyDeletedEventResponseData;
|
|
6342
|
+
}
|
|
6343
|
+
interface VaultDekRekeyedEvent extends EventBase {
|
|
6344
|
+
event: 'vault.dek.rekeyed';
|
|
6345
|
+
data: VaultDekRekeyedEventData;
|
|
6346
|
+
}
|
|
6347
|
+
interface VaultDekRekeyedEventResponse extends EventResponseBase {
|
|
6348
|
+
event: 'vault.dek.rekeyed';
|
|
6349
|
+
data: VaultDekRekeyedEventResponseData;
|
|
6350
|
+
}
|
|
6351
|
+
interface VaultKekDeletedEvent extends EventBase {
|
|
6352
|
+
event: 'vault.kek.deleted';
|
|
6353
|
+
data: VaultKekDeletedEventData;
|
|
6354
|
+
}
|
|
6355
|
+
interface VaultKekDeletedEventResponse extends EventResponseBase {
|
|
6356
|
+
event: 'vault.kek.deleted';
|
|
6357
|
+
data: VaultKekDeletedEventResponseData;
|
|
6358
|
+
}
|
|
6359
|
+
interface WaitlistUserApprovedEvent extends EventBase {
|
|
6360
|
+
event: 'waitlist_user.approved';
|
|
6361
|
+
data: WaitlistUserEventData;
|
|
6362
|
+
}
|
|
6363
|
+
interface WaitlistUserApprovedEventResponse extends EventResponseBase {
|
|
6364
|
+
event: 'waitlist_user.approved';
|
|
6365
|
+
data: WaitlistUserEventResponseData;
|
|
6366
|
+
}
|
|
6367
|
+
interface WaitlistUserCreatedEvent extends EventBase {
|
|
6368
|
+
event: 'waitlist_user.created';
|
|
6369
|
+
data: WaitlistUserEventData;
|
|
6370
|
+
}
|
|
6371
|
+
interface WaitlistUserCreatedEventResponse extends EventResponseBase {
|
|
6372
|
+
event: 'waitlist_user.created';
|
|
6373
|
+
data: WaitlistUserEventResponseData;
|
|
6374
|
+
}
|
|
6375
|
+
interface WaitlistUserDeniedEvent extends EventBase {
|
|
6376
|
+
event: 'waitlist_user.denied';
|
|
6377
|
+
data: WaitlistUserEventData;
|
|
6378
|
+
}
|
|
6379
|
+
interface WaitlistUserDeniedEventResponse extends EventResponseBase {
|
|
6380
|
+
event: 'waitlist_user.denied';
|
|
6381
|
+
data: WaitlistUserEventResponseData;
|
|
6382
|
+
}
|
|
6383
|
+
/**
|
|
6384
|
+
* An event whose name this version of the SDK does not recognize.
|
|
6385
|
+
*
|
|
6386
|
+
* The API adds event types over time, so `Event` includes this member to make
|
|
6387
|
+
* that possibility visible to the compiler: an exhaustive `switch` over
|
|
6388
|
+
* `event.event` can no longer assume every case is covered.
|
|
6389
|
+
*
|
|
6390
|
+
* `data` is deliberately typed `never`. TypeScript keeps a union member whose
|
|
6391
|
+
* discriminant is `string` in every narrowed branch, so any other type here
|
|
6392
|
+
* would widen `event.data` in known branches (for example `User` would become
|
|
6393
|
+
* `User | Record<string, unknown>`). `never` is absorbed by those unions and
|
|
6394
|
+
* leaves the known payload types intact. At runtime the payload is passed
|
|
6395
|
+
* through unchanged (snake_case keys, no deserialization); since `never` is
|
|
6396
|
+
* assignable to every type, read it by annotating the shape you expect:
|
|
6397
|
+
* `const payload: Record<string, unknown> = event.data;`.
|
|
6398
|
+
*/
|
|
5113
6399
|
interface UnknownEvent extends EventBase {
|
|
5114
6400
|
event: string;
|
|
5115
|
-
data:
|
|
6401
|
+
data: never;
|
|
6402
|
+
}
|
|
6403
|
+
interface UnknownEventResponse extends EventResponseBase {
|
|
6404
|
+
event: string;
|
|
6405
|
+
data: never;
|
|
5116
6406
|
}
|
|
5117
|
-
|
|
5118
|
-
type
|
|
5119
|
-
type
|
|
6407
|
+
/** Every event type this version of the SDK knows how to deserialize. */
|
|
6408
|
+
type KnownEvent = AgentBlueprintCreatedEvent | AgentBlueprintDeletedEvent | AgentBlueprintUpdatedEvent | AgentInstanceCreatedEvent | AgentInstanceDeletedEvent | AgentInstanceSessionCreatedEvent | AgentInstanceSessionRevokedEvent | AgentRegistrationCreatedEvent | AgentRegistrationClaimAttemptCreatedEvent | AgentRegistrationClaimCompletedEvent | AgentRegistrationCredentialIssuedEvent | AgentRegistrationOrganizationSwitchedEvent | AgentRegistrationRefreshedEvent | AgentRegistrationExpiredEvent | AgentRegistrationRevokedEvent | AgentRegistrationDeletedEvent | 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 | ActionAuthenticationDeniedEvent | ActionUserRegistrationDeniedEvent | ApiKeyUpdatedEvent | AuthenticationEmailVerificationFailedEvent | AuthenticationMfaFailedEvent | AuthenticationReauthenticationSucceededEvent | AuthenticationSSOStartedEvent | AuthenticationSSOTimedOutEvent | ConnectionSamlCertificateRenewalRequiredEvent | ConnectionSamlCertificateRenewedEvent | DsyncTokenCreatedEvent | DsyncTokenRevokedEvent | PipesAccountConnectionAddFailedEvent | PipesAccountConnectionConnectedEvent | PipesAccountConnectionConnectionFailedEvent | PipesAccountConnectionDisconnectedEvent | PipesAccountConnectionReauthorizationNeededEvent | RadarChallengeCreatedEvent | ResourceExportCompletedEvent | ResourceExportCreatedEvent | ResourceExportDownloadedEvent | ResourceExportFailedEvent | VaultByokKeyDeletedEvent | VaultDekRekeyedEvent | VaultKekDeletedEvent | WaitlistUserApprovedEvent | WaitlistUserCreatedEvent | WaitlistUserDeniedEvent;
|
|
6409
|
+
type Event = KnownEvent | UnknownEvent;
|
|
6410
|
+
type KnownEventResponse = AgentBlueprintCreatedEventResponse | AgentBlueprintDeletedEventResponse | AgentBlueprintUpdatedEventResponse | AgentInstanceCreatedEventResponse | AgentInstanceDeletedEventResponse | AgentInstanceSessionCreatedEventResponse | AgentInstanceSessionRevokedEventResponse | AgentRegistrationCreatedEventResponse | AgentRegistrationClaimAttemptCreatedEventResponse | AgentRegistrationClaimCompletedEventResponse | AgentRegistrationCredentialIssuedEventResponse | AgentRegistrationOrganizationSwitchedEventResponse | AgentRegistrationRefreshedEventResponse | AgentRegistrationExpiredEventResponse | AgentRegistrationRevokedEventResponse | AgentRegistrationDeletedEventResponse | 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 | ActionAuthenticationDeniedEventResponse | ActionUserRegistrationDeniedEventResponse | ApiKeyUpdatedEventResponse | AuthenticationEmailVerificationFailedEventResponse | AuthenticationMfaFailedEventResponse | AuthenticationReauthenticationSucceededEventResponse | AuthenticationSSOStartedEventResponse | AuthenticationSSOTimedOutEventResponse | ConnectionSamlCertificateRenewalRequiredEventResponse | ConnectionSamlCertificateRenewedEventResponse | DsyncTokenCreatedEventResponse | DsyncTokenRevokedEventResponse | PipesAccountConnectionAddFailedEventResponse | PipesAccountConnectionConnectedEventResponse | PipesAccountConnectionConnectionFailedEventResponse | PipesAccountConnectionDisconnectedEventResponse | PipesAccountConnectionReauthorizationNeededEventResponse | RadarChallengeCreatedEventResponse | ResourceExportCompletedEventResponse | ResourceExportCreatedEventResponse | ResourceExportDownloadedEventResponse | ResourceExportFailedEventResponse | VaultByokKeyDeletedEventResponse | VaultDekRekeyedEventResponse | VaultKekDeletedEventResponse | WaitlistUserApprovedEventResponse | WaitlistUserCreatedEventResponse | WaitlistUserDeniedEventResponse;
|
|
6411
|
+
type EventResponse = KnownEventResponse | UnknownEventResponse;
|
|
6412
|
+
/** The names of the events this version of the SDK knows; excludes `UnknownEvent`. */
|
|
6413
|
+
type EventName = KnownEvent['event'];
|
|
5120
6414
|
//#endregion
|
|
5121
6415
|
//#region src/common/interfaces/generate-link-intent.interface.d.ts
|
|
5122
6416
|
declare const GenerateLinkIntent: {
|
|
@@ -5324,9 +6618,9 @@ interface ItContact {
|
|
|
5324
6618
|
/** The email address of the IT Contact. */
|
|
5325
6619
|
email: string;
|
|
5326
6620
|
/** An ISO 8601 timestamp. */
|
|
5327
|
-
createdAt:
|
|
6621
|
+
createdAt: Date;
|
|
5328
6622
|
/** An ISO 8601 timestamp. */
|
|
5329
|
-
updatedAt:
|
|
6623
|
+
updatedAt: Date;
|
|
5330
6624
|
}
|
|
5331
6625
|
interface ItContactResponse {
|
|
5332
6626
|
object: 'it_contact';
|
|
@@ -5365,9 +6659,9 @@ interface Organization {
|
|
|
5365
6659
|
/** The Stripe customer ID of the Organization. */
|
|
5366
6660
|
stripeCustomerId?: string;
|
|
5367
6661
|
/** An ISO 8601 timestamp. */
|
|
5368
|
-
createdAt:
|
|
6662
|
+
createdAt: Date;
|
|
5369
6663
|
/** An ISO 8601 timestamp. */
|
|
5370
|
-
updatedAt:
|
|
6664
|
+
updatedAt: Date;
|
|
5371
6665
|
/** The external ID of the Organization. */
|
|
5372
6666
|
externalId: string | null;
|
|
5373
6667
|
/** Object containing [metadata](https://workos.com/docs/authkit/metadata) key/value pairs associated with the Organization. */
|
|
@@ -5565,160 +6859,10 @@ declare class AutoPaginatable<ResourceType, ParametersType extends PaginationOpt
|
|
|
5565
6859
|
private generatePages;
|
|
5566
6860
|
/**
|
|
5567
6861
|
* Automatically paginates over the list of results, returning the complete data set.
|
|
5568
|
-
* Returns the first result if `options.limit` is passed to the first request.
|
|
5569
|
-
*/
|
|
5570
|
-
autoPagination(): Promise<ResourceType[]>;
|
|
5571
|
-
}
|
|
5572
|
-
//#endregion
|
|
5573
|
-
//#region src/agents/interfaces/agent-blueprint.interface.d.ts
|
|
5574
|
-
/** Who may mint sessions from an agent blueprint. */
|
|
5575
|
-
interface AgentBlueprintInvocableBy {
|
|
5576
|
-
/**
|
|
5577
|
-
* Role slugs whose members may mint user-delegated sessions from the
|
|
5578
|
-
* blueprint. An empty list allows any member.
|
|
5579
|
-
*/
|
|
5580
|
-
roleSlugs: string[];
|
|
5581
|
-
/**
|
|
5582
|
-
* Organizations in which sessions may be minted from the blueprint. An empty
|
|
5583
|
-
* list allows any organization in the environment.
|
|
5584
|
-
*/
|
|
5585
|
-
organizationIds: string[];
|
|
5586
|
-
}
|
|
5587
|
-
interface SerializedAgentBlueprintInvocableBy {
|
|
5588
|
-
role_slugs: string[];
|
|
5589
|
-
organization_ids: string[];
|
|
5590
|
-
}
|
|
5591
|
-
/** Token and session lifetimes for sessions minted from an agent blueprint. */
|
|
5592
|
-
interface AgentBlueprintSessionSettings {
|
|
5593
|
-
/**
|
|
5594
|
-
* Maximum lifetime of a session in seconds; refreshes never extend a session
|
|
5595
|
-
* past this. At most 31,536,000 (365 days).
|
|
5596
|
-
*/
|
|
5597
|
-
maxAgeSeconds: number;
|
|
5598
|
-
/** Lifetime of each minted access token in seconds. At most 3,600 (1 hour). */
|
|
5599
|
-
accessTokenTtlSeconds: number;
|
|
5600
|
-
/** Lifetime of each rotated refresh token in seconds. At most 5,184,000 (60 days). */
|
|
5601
|
-
refreshTokenTtlSeconds: number;
|
|
5602
|
-
}
|
|
5603
|
-
interface SerializedAgentBlueprintSessionSettings {
|
|
5604
|
-
max_age_seconds: number;
|
|
5605
|
-
access_token_ttl_seconds: number;
|
|
5606
|
-
refresh_token_ttl_seconds: number;
|
|
5607
|
-
}
|
|
5608
|
-
/**
|
|
5609
|
-
* An agent blueprint: the template describing what an agent may do (its
|
|
5610
|
-
* permission ceiling), who may invoke it, and the lifetimes of its sessions.
|
|
5611
|
-
*/
|
|
5612
|
-
interface AgentBlueprint {
|
|
5613
|
-
object: 'agent_blueprint';
|
|
5614
|
-
/** Unique identifier of the agent blueprint. */
|
|
5615
|
-
id: string;
|
|
5616
|
-
/** Human-readable name of the agent blueprint. */
|
|
5617
|
-
name: string;
|
|
5618
|
-
/** Human-readable description of the agent blueprint. */
|
|
5619
|
-
description: string | null;
|
|
5620
|
-
/**
|
|
5621
|
-
* Permission slugs forming the ceiling on what sessions minted from the
|
|
5622
|
-
* blueprint may do.
|
|
5623
|
-
*/
|
|
5624
|
-
permissions: string[];
|
|
5625
|
-
/** Who may mint sessions from the blueprint. */
|
|
5626
|
-
invocableBy: AgentBlueprintInvocableBy;
|
|
5627
|
-
/** Token and session lifetimes for sessions minted from the blueprint. */
|
|
5628
|
-
sessionSettings: AgentBlueprintSessionSettings;
|
|
5629
|
-
/** An ISO 8601 timestamp. */
|
|
5630
|
-
createdAt: string;
|
|
5631
|
-
/** An ISO 8601 timestamp. */
|
|
5632
|
-
updatedAt: string;
|
|
5633
|
-
}
|
|
5634
|
-
interface SerializedAgentBlueprint {
|
|
5635
|
-
object: 'agent_blueprint';
|
|
5636
|
-
id: string;
|
|
5637
|
-
name: string;
|
|
5638
|
-
description: string | null;
|
|
5639
|
-
permissions: string[];
|
|
5640
|
-
invocable_by: SerializedAgentBlueprintInvocableBy;
|
|
5641
|
-
session_settings: SerializedAgentBlueprintSessionSettings;
|
|
5642
|
-
created_at: string;
|
|
5643
|
-
updated_at: string;
|
|
5644
|
-
}
|
|
5645
|
-
/** Options for creating an agent blueprint. */
|
|
5646
|
-
interface CreateAgentBlueprintOptions {
|
|
5647
|
-
/** Human-readable name of the agent blueprint. */
|
|
5648
|
-
name: string;
|
|
5649
|
-
/** Human-readable description of the agent blueprint. */
|
|
5650
|
-
description?: string;
|
|
5651
|
-
/**
|
|
5652
|
-
* Permission slugs forming the ceiling on what sessions minted from the
|
|
5653
|
-
* blueprint may do. Each slug must exist in the environment.
|
|
5654
|
-
*/
|
|
5655
|
-
permissions?: string[];
|
|
5656
|
-
/** Who may mint sessions from the blueprint. */
|
|
5657
|
-
invocableBy?: {
|
|
5658
|
-
roleSlugs?: string[];
|
|
5659
|
-
organizationIds?: string[];
|
|
5660
|
-
};
|
|
5661
|
-
/** Token and session lifetimes for sessions minted from the blueprint. */
|
|
5662
|
-
sessionSettings: {
|
|
5663
|
-
maxAgeSeconds: number;
|
|
5664
|
-
accessTokenTtlSeconds: number;
|
|
5665
|
-
refreshTokenTtlSeconds: number;
|
|
5666
|
-
};
|
|
5667
|
-
}
|
|
5668
|
-
interface SerializedCreateAgentBlueprintOptions {
|
|
5669
|
-
name: string;
|
|
5670
|
-
description?: string;
|
|
5671
|
-
permissions?: string[];
|
|
5672
|
-
invocable_by?: {
|
|
5673
|
-
role_slugs?: string[];
|
|
5674
|
-
organization_ids?: string[];
|
|
5675
|
-
};
|
|
5676
|
-
session_settings: SerializedAgentBlueprintSessionSettings;
|
|
5677
|
-
}
|
|
5678
|
-
/**
|
|
5679
|
-
* Options for updating an agent blueprint. Omitted fields are left unchanged;
|
|
5680
|
-
* provided lists replace the existing configuration.
|
|
5681
|
-
*/
|
|
5682
|
-
interface UpdateAgentBlueprintOptions {
|
|
5683
|
-
/** Unique identifier of the agent blueprint. */
|
|
5684
|
-
agentBlueprintId: string;
|
|
5685
|
-
/** Human-readable name of the agent blueprint. */
|
|
5686
|
-
name?: string;
|
|
5687
|
-
/** Human-readable description of the agent blueprint, or `null` to clear it. */
|
|
5688
|
-
description?: string | null;
|
|
5689
|
-
/**
|
|
5690
|
-
* Permission slugs forming the ceiling on what sessions minted from the
|
|
5691
|
-
* blueprint may do. Each slug must exist in the environment.
|
|
5692
|
-
*/
|
|
5693
|
-
permissions?: string[];
|
|
5694
|
-
/** Who may mint sessions from the blueprint. */
|
|
5695
|
-
invocableBy?: {
|
|
5696
|
-
roleSlugs?: string[];
|
|
5697
|
-
organizationIds?: string[];
|
|
5698
|
-
};
|
|
5699
|
-
/** Token and session lifetimes for sessions minted from the blueprint. */
|
|
5700
|
-
sessionSettings?: {
|
|
5701
|
-
maxAgeSeconds?: number;
|
|
5702
|
-
accessTokenTtlSeconds?: number;
|
|
5703
|
-
refreshTokenTtlSeconds?: number;
|
|
5704
|
-
};
|
|
5705
|
-
}
|
|
5706
|
-
interface SerializedUpdateAgentBlueprintOptions {
|
|
5707
|
-
name?: string;
|
|
5708
|
-
description?: string | null;
|
|
5709
|
-
permissions?: string[];
|
|
5710
|
-
invocable_by?: {
|
|
5711
|
-
role_slugs?: string[];
|
|
5712
|
-
organization_ids?: string[];
|
|
5713
|
-
};
|
|
5714
|
-
session_settings?: {
|
|
5715
|
-
max_age_seconds?: number;
|
|
5716
|
-
access_token_ttl_seconds?: number;
|
|
5717
|
-
refresh_token_ttl_seconds?: number;
|
|
5718
|
-
};
|
|
6862
|
+
* Returns the first result if `options.limit` is passed to the first request.
|
|
6863
|
+
*/
|
|
6864
|
+
autoPagination(): Promise<ResourceType[]>;
|
|
5719
6865
|
}
|
|
5720
|
-
/** Options for listing agent blueprints. */
|
|
5721
|
-
type ListAgentBlueprintsOptions = PaginationOptions;
|
|
5722
6866
|
//#endregion
|
|
5723
6867
|
//#region src/agents/interfaces/agent-instance-session.interface.d.ts
|
|
5724
6868
|
/** The lifecycle status of an agent instance session. */
|
|
@@ -5733,13 +6877,13 @@ interface AgentInstanceSession {
|
|
|
5733
6877
|
/** The lifecycle status of the session. */
|
|
5734
6878
|
status: AgentInstanceSessionStatus;
|
|
5735
6879
|
/** An ISO 8601 timestamp of when the session expires. */
|
|
5736
|
-
expiresAt:
|
|
6880
|
+
expiresAt: Date;
|
|
5737
6881
|
/** An ISO 8601 timestamp of when the session was revoked, or `null`. */
|
|
5738
|
-
revokedAt:
|
|
6882
|
+
revokedAt: Date | null;
|
|
5739
6883
|
/** An ISO 8601 timestamp. */
|
|
5740
|
-
createdAt:
|
|
6884
|
+
createdAt: Date;
|
|
5741
6885
|
/** An ISO 8601 timestamp. */
|
|
5742
|
-
updatedAt:
|
|
6886
|
+
updatedAt: Date;
|
|
5743
6887
|
}
|
|
5744
6888
|
interface SerializedAgentInstanceSession {
|
|
5745
6889
|
object: 'agent_instance_session';
|
|
@@ -5763,144 +6907,6 @@ interface SerializedListAgentInstanceSessionsOptions extends PaginationOptions {
|
|
|
5763
6907
|
agent_instance_id?: string;
|
|
5764
6908
|
}
|
|
5765
6909
|
//#endregion
|
|
5766
|
-
//#region src/agents/interfaces/agent-instance.interface.d.ts
|
|
5767
|
-
/** How an agent instance was minted. */
|
|
5768
|
-
type AgentInstanceType = 'delegated' | 'autonomous';
|
|
5769
|
-
/** A concrete agent minted from an agent blueprint. */
|
|
5770
|
-
interface AgentInstance {
|
|
5771
|
-
object: 'agent_instance';
|
|
5772
|
-
/** Unique identifier of the agent instance. */
|
|
5773
|
-
id: string;
|
|
5774
|
-
/** Unique identifier of the agent blueprint the instance was minted from. */
|
|
5775
|
-
agentBlueprintId: string;
|
|
5776
|
-
/** Unique identifier of the Organization the instance belongs to. */
|
|
5777
|
-
organizationId: string;
|
|
5778
|
-
/**
|
|
5779
|
-
* Unique identifier of the Organization Membership the instance acts on
|
|
5780
|
-
* behalf of, or `null` for autonomous instances.
|
|
5781
|
-
*/
|
|
5782
|
-
organizationMembershipId: string | null;
|
|
5783
|
-
/** How the instance was minted. */
|
|
5784
|
-
type: AgentInstanceType;
|
|
5785
|
-
/** An ISO 8601 timestamp. */
|
|
5786
|
-
createdAt: string;
|
|
5787
|
-
/** An ISO 8601 timestamp. */
|
|
5788
|
-
updatedAt: string;
|
|
5789
|
-
}
|
|
5790
|
-
interface SerializedAgentInstance {
|
|
5791
|
-
object: 'agent_instance';
|
|
5792
|
-
id: string;
|
|
5793
|
-
agent_blueprint_id: string;
|
|
5794
|
-
organization_id: string;
|
|
5795
|
-
organization_membership_id: string | null;
|
|
5796
|
-
type: AgentInstanceType;
|
|
5797
|
-
created_at: string;
|
|
5798
|
-
updated_at: string;
|
|
5799
|
-
}
|
|
5800
|
-
/** Options for listing agent instances. */
|
|
5801
|
-
interface ListAgentInstancesOptions extends PaginationOptions {
|
|
5802
|
-
/** Filter instances to a single Organization. */
|
|
5803
|
-
organizationId?: string;
|
|
5804
|
-
/** Filter instances to a single agent blueprint. */
|
|
5805
|
-
agentBlueprintId?: string;
|
|
5806
|
-
}
|
|
5807
|
-
interface SerializedListAgentInstancesOptions extends PaginationOptions {
|
|
5808
|
-
organization_id?: string;
|
|
5809
|
-
agent_blueprint_id?: string;
|
|
5810
|
-
}
|
|
5811
|
-
//#endregion
|
|
5812
|
-
//#region src/agents/interfaces/agent-registration.interface.d.ts
|
|
5813
|
-
/** The lifecycle status of an agent registration. */
|
|
5814
|
-
type AgentRegistrationStatus = 'unverified' | 'verified' | 'expired' | 'revoked';
|
|
5815
|
-
/** The kind of agent registration, derived from its authentication method. */
|
|
5816
|
-
type AgentRegistrationKind = 'anonymous' | 'service_auth' | 'identity_assertion';
|
|
5817
|
-
/** The agent identity an agent registration belongs to. */
|
|
5818
|
-
interface AgentIdentity {
|
|
5819
|
-
/** Unique identifier of the agent identity. */
|
|
5820
|
-
id: string;
|
|
5821
|
-
/** The Userland user the agent identity is associated with, if any. */
|
|
5822
|
-
userlandUserId: string | null;
|
|
5823
|
-
/** An ISO 8601 timestamp. */
|
|
5824
|
-
createdAt: string;
|
|
5825
|
-
/** An ISO 8601 timestamp. */
|
|
5826
|
-
updatedAt: string;
|
|
5827
|
-
}
|
|
5828
|
-
interface SerializedAgentIdentity {
|
|
5829
|
-
id: string;
|
|
5830
|
-
userland_user_id: string | null;
|
|
5831
|
-
created_at: string;
|
|
5832
|
-
updated_at: string;
|
|
5833
|
-
}
|
|
5834
|
-
/** The completion of an agent registration claim. */
|
|
5835
|
-
interface AgentRegistrationClaimCompletion {
|
|
5836
|
-
/** Unique identifier of the claim completion. */
|
|
5837
|
-
id: string;
|
|
5838
|
-
/** An ISO 8601 timestamp. */
|
|
5839
|
-
createdAt: string;
|
|
5840
|
-
/** An ISO 8601 timestamp. */
|
|
5841
|
-
updatedAt: string;
|
|
5842
|
-
/** An ISO 8601 timestamp. */
|
|
5843
|
-
expiresAt: string;
|
|
5844
|
-
/** An ISO 8601 timestamp of when the registration was claimed. */
|
|
5845
|
-
claimedAt: string;
|
|
5846
|
-
}
|
|
5847
|
-
interface SerializedAgentRegistrationClaimCompletion {
|
|
5848
|
-
id: string;
|
|
5849
|
-
created_at: string;
|
|
5850
|
-
updated_at: string;
|
|
5851
|
-
expires_at: string;
|
|
5852
|
-
claimed_at: string;
|
|
5853
|
-
}
|
|
5854
|
-
/** The claim state of an agent registration. */
|
|
5855
|
-
interface AgentRegistrationClaim {
|
|
5856
|
-
/** Unique identifier of the claim. */
|
|
5857
|
-
id: string;
|
|
5858
|
-
/** The completion of the claim, or `null` if it has not been claimed. */
|
|
5859
|
-
claimCompletion: AgentRegistrationClaimCompletion | null;
|
|
5860
|
-
/** An ISO 8601 timestamp. */
|
|
5861
|
-
createdAt: string;
|
|
5862
|
-
/** An ISO 8601 timestamp. */
|
|
5863
|
-
updatedAt: string;
|
|
5864
|
-
/** An ISO 8601 timestamp. */
|
|
5865
|
-
expiresAt: string;
|
|
5866
|
-
}
|
|
5867
|
-
interface SerializedAgentRegistrationClaim {
|
|
5868
|
-
id: string;
|
|
5869
|
-
claim_completion: SerializedAgentRegistrationClaimCompletion | null;
|
|
5870
|
-
created_at: string;
|
|
5871
|
-
updated_at: string;
|
|
5872
|
-
expires_at: string;
|
|
5873
|
-
}
|
|
5874
|
-
/** A single agent registration. */
|
|
5875
|
-
interface AgentRegistration {
|
|
5876
|
-
/** Unique identifier of the agent registration. */
|
|
5877
|
-
id: string;
|
|
5878
|
-
/** The agent identity the registration belongs to. */
|
|
5879
|
-
agentIdentity: AgentIdentity;
|
|
5880
|
-
/** Unique identifier of the Organization the registration belongs to. */
|
|
5881
|
-
organizationId: string;
|
|
5882
|
-
/** The lifecycle status of the registration. */
|
|
5883
|
-
status: AgentRegistrationStatus;
|
|
5884
|
-
/** The kind of registration. */
|
|
5885
|
-
kind: AgentRegistrationKind;
|
|
5886
|
-
/** The claim state of the registration, or `null` if it has none. */
|
|
5887
|
-
claim: AgentRegistrationClaim | null;
|
|
5888
|
-
/** An ISO 8601 timestamp. */
|
|
5889
|
-
createdAt: string;
|
|
5890
|
-
/** An ISO 8601 timestamp. */
|
|
5891
|
-
updatedAt: string;
|
|
5892
|
-
}
|
|
5893
|
-
interface SerializedAgentRegistration {
|
|
5894
|
-
id: string;
|
|
5895
|
-
agent_identity: SerializedAgentIdentity;
|
|
5896
|
-
organization_id: string;
|
|
5897
|
-
status: AgentRegistrationStatus;
|
|
5898
|
-
kind: AgentRegistrationKind;
|
|
5899
|
-
claim: SerializedAgentRegistrationClaim | null;
|
|
5900
|
-
created_at: string;
|
|
5901
|
-
updated_at: string;
|
|
5902
|
-
}
|
|
5903
|
-
//#endregion
|
|
5904
6910
|
//#region src/agents/interfaces/agent-token.interface.d.ts
|
|
5905
6911
|
/** Tokens minted for an agent session. */
|
|
5906
6912
|
interface AgentToken {
|
|
@@ -6124,7 +7130,7 @@ interface ValidAgentCredential {
|
|
|
6124
7130
|
* An ISO 8601 timestamp of when the credential expires, or `null` when it
|
|
6125
7131
|
* does not expire.
|
|
6126
7132
|
*/
|
|
6127
|
-
expiresAt:
|
|
7133
|
+
expiresAt: Date | null;
|
|
6128
7134
|
/**
|
|
6129
7135
|
* The decoded claims of the access token. Populated for `access_token`
|
|
6130
7136
|
* credentials; `null` for API keys.
|
|
@@ -6929,56 +7935,64 @@ declare class DirectorySync {
|
|
|
6929
7935
|
*
|
|
6930
7936
|
* Get a list of all of your existing directories matching the criteria specified.
|
|
6931
7937
|
* @param options - Pagination and filter options.
|
|
6932
|
-
* @returns {Promise<AutoPaginatable<Directory,
|
|
6933
|
-
* @throws 403
|
|
7938
|
+
* @returns {Promise<AutoPaginatable<Directory, PaginationOptions>>}
|
|
7939
|
+
* @throws {AuthorizationException} 403
|
|
6934
7940
|
* @throws {UnprocessableEntityException} 422
|
|
6935
7941
|
*/
|
|
6936
|
-
listDirectories(options?: ListDirectoriesOptions): Promise<AutoPaginatable<Directory,
|
|
7942
|
+
listDirectories(options?: ListDirectoriesOptions): Promise<AutoPaginatable<Directory, PaginationOptions>>;
|
|
6937
7943
|
/**
|
|
6938
7944
|
* Get a Directory
|
|
6939
7945
|
*
|
|
6940
7946
|
* Get the details of an existing directory.
|
|
6941
|
-
* @param
|
|
6942
|
-
*
|
|
6943
|
-
* @example
|
|
6944
|
-
* "directory_01ECAZ4NV9QMV47GW873HDCX74"
|
|
6945
|
-
*
|
|
7947
|
+
* @param options - The request options.
|
|
7948
|
+
* @param options.id - Unique identifier for the Directory.
|
|
7949
|
+
* @example "directory_01ECAZ4NV9QMV47GW873HDCX74"
|
|
6946
7950
|
* @returns {Promise<Directory>}
|
|
6947
|
-
* @throws 403
|
|
7951
|
+
* @throws {AuthorizationException} 403
|
|
6948
7952
|
* @throws {NotFoundException} 404
|
|
6949
7953
|
*/
|
|
6950
|
-
getDirectory(
|
|
7954
|
+
getDirectory(options: GetDirectoryOptions): Promise<Directory>;
|
|
6951
7955
|
/**
|
|
6952
7956
|
* Delete a Directory
|
|
6953
7957
|
*
|
|
6954
7958
|
* Permanently deletes an existing directory. It cannot be undone.
|
|
6955
|
-
* @param
|
|
6956
|
-
*
|
|
6957
|
-
* @example
|
|
6958
|
-
* "directory_01ECAZ4NV9QMV47GW873HDCX74"
|
|
6959
|
-
*
|
|
7959
|
+
* @param options - The request options.
|
|
7960
|
+
* @param options.id - Unique identifier for the Directory.
|
|
7961
|
+
* @example "directory_01ECAZ4NV9QMV47GW873HDCX74"
|
|
6960
7962
|
* @returns {Promise<void>}
|
|
6961
|
-
* @throws 403
|
|
7963
|
+
* @throws {AuthorizationException} 403
|
|
6962
7964
|
*/
|
|
6963
|
-
deleteDirectory(
|
|
7965
|
+
deleteDirectory(options: DeleteDirectoryOptions): Promise<void>;
|
|
6964
7966
|
/**
|
|
6965
7967
|
* List Directory Groups
|
|
6966
7968
|
*
|
|
6967
7969
|
* Get a list of all of existing directory groups matching the criteria specified.
|
|
6968
7970
|
* @param options - Pagination and filter options.
|
|
6969
7971
|
* @returns {Promise<AutoPaginatable<DirectoryGroup, ListDirectoryGroupsOptions>>}
|
|
6970
|
-
* @throws 403
|
|
7972
|
+
* @throws {AuthorizationException} 403
|
|
6971
7973
|
* @throws {NotFoundException} 404
|
|
6972
7974
|
* @throws {UnprocessableEntityException} 422
|
|
6973
7975
|
*/
|
|
6974
7976
|
listGroups(options: ListDirectoryGroupsOptions): Promise<AutoPaginatable<DirectoryGroup, ListDirectoryGroupsOptions>>;
|
|
7977
|
+
/**
|
|
7978
|
+
* Get a Directory Group
|
|
7979
|
+
*
|
|
7980
|
+
* Get the details of an existing Directory Group.
|
|
7981
|
+
* @param options - The request options.
|
|
7982
|
+
* @param options.id - Unique identifier for the Directory Group.
|
|
7983
|
+
* @example "directory_group_01E1JJS84MFPPQ3G655FHTKX6Z"
|
|
7984
|
+
* @returns {Promise<DirectoryGroup>}
|
|
7985
|
+
* @throws {AuthorizationException} 403
|
|
7986
|
+
* @throws {NotFoundException} 404
|
|
7987
|
+
*/
|
|
7988
|
+
getGroup(options: DirectorySyncGetGroupOptions): Promise<DirectoryGroup>;
|
|
6975
7989
|
/**
|
|
6976
7990
|
* List Directory Users
|
|
6977
7991
|
*
|
|
6978
7992
|
* Get a list of all of existing Directory Users matching the criteria specified.
|
|
6979
7993
|
* @param options - Pagination and filter options.
|
|
6980
7994
|
* @returns {Promise<AutoPaginatable<DirectoryUserWithGroups<TCustomAttributes>, ListDirectoryUsersOptions>>}
|
|
6981
|
-
* @throws 403
|
|
7995
|
+
* @throws {AuthorizationException} 403
|
|
6982
7996
|
* @throws {NotFoundException} 404
|
|
6983
7997
|
* @throws {UnprocessableEntityException} 422
|
|
6984
7998
|
* @throws {RateLimitExceededException} 429
|
|
@@ -6988,28 +8002,14 @@ declare class DirectorySync {
|
|
|
6988
8002
|
* Get a Directory User
|
|
6989
8003
|
*
|
|
6990
8004
|
* Get the details of an existing Directory User.
|
|
6991
|
-
* @param
|
|
6992
|
-
*
|
|
6993
|
-
* @example
|
|
6994
|
-
* "directory_user_01E1JG7J09H96KYP8HM9B0G5SJ"
|
|
8005
|
+
* @param options - The request options.
|
|
8006
|
+
* @param options.id - Unique identifier for the Directory User.
|
|
8007
|
+
* @example "directory_user_01E1JG7J09H96KYP8HM9B0G5SJ"
|
|
6995
8008
|
* @returns {Promise<DirectoryUserWithGroups<TCustomAttributes>>}
|
|
6996
|
-
* @throws 403
|
|
6997
|
-
* @throws {NotFoundException} 404
|
|
6998
|
-
*/
|
|
6999
|
-
getUser<TCustomAttributes extends object = DefaultCustomAttributes>(user: string): Promise<DirectoryUserWithGroups<TCustomAttributes>>;
|
|
7000
|
-
/**
|
|
7001
|
-
* Get a Directory Group
|
|
7002
|
-
*
|
|
7003
|
-
* Get the details of an existing Directory Group.
|
|
7004
|
-
* @param group - Unique identifier for the Directory Group.
|
|
7005
|
-
*
|
|
7006
|
-
* @example
|
|
7007
|
-
* "directory_group_01E1JJS84MFPPQ3G655FHTKX6Z"
|
|
7008
|
-
* @returns {Promise<DirectoryGroup>}
|
|
7009
|
-
* @throws 403 response from the API.
|
|
8009
|
+
* @throws {AuthorizationException} 403
|
|
7010
8010
|
* @throws {NotFoundException} 404
|
|
7011
8011
|
*/
|
|
7012
|
-
|
|
8012
|
+
getUser<TCustomAttributes extends object = DefaultCustomAttributes>(options: GetUserOptions): Promise<DirectoryUserWithGroups<TCustomAttributes>>;
|
|
7013
8013
|
}
|
|
7014
8014
|
//#endregion
|
|
7015
8015
|
//#region src/events/interfaces/list-events-options.interface.d.ts
|
|
@@ -7290,6 +8290,90 @@ declare class Passwordless {
|
|
|
7290
8290
|
declare class Pipes {
|
|
7291
8291
|
private readonly workos;
|
|
7292
8292
|
constructor(workos: WorkOS);
|
|
8293
|
+
/**
|
|
8294
|
+
* Upsert an API key for a connected account
|
|
8295
|
+
*
|
|
8296
|
+
* Creates or updates an API-key-based installation for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. If an installation already exists, the stored API key is rotated to the new value.
|
|
8297
|
+
* @param options - Object containing userId, secret.
|
|
8298
|
+
* @param options.slug - The identifier of the integration.
|
|
8299
|
+
* @example "github"
|
|
8300
|
+
* @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier.
|
|
8301
|
+
* @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
8302
|
+
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`.
|
|
8303
|
+
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
8304
|
+
* @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to rotate a specific existing connection.
|
|
8305
|
+
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
8306
|
+
* @param options.connectionOwner - Whose connection to create or rotate. `user` (the default) addresses the connection owned by `user_id`. `organization` addresses the connection shared by every member of `organization_id`; `user_id` then identifies the member performing the request and must be an active member of the organization.
|
|
8307
|
+
* @example "user"
|
|
8308
|
+
* @param options.secret - The API key secret to store for this integration.
|
|
8309
|
+
* @example "sk-1234567890abcdef"
|
|
8310
|
+
* @returns {Promise<ConnectedAccount>}
|
|
8311
|
+
* @throws {BadRequestException} 400
|
|
8312
|
+
* @throws {UnauthorizedException} 401
|
|
8313
|
+
* @throws {AuthorizationException} 403
|
|
8314
|
+
* @throws {NotFoundException} 404
|
|
8315
|
+
* @throws {ConflictException} 409
|
|
8316
|
+
* @throws {UnprocessableEntityException} 422
|
|
8317
|
+
*/
|
|
8318
|
+
updateDataIntegrationApiKey(options: UpdateDataIntegrationApiKeyOptions): Promise<ConnectedAccount>;
|
|
8319
|
+
/**
|
|
8320
|
+
* Upsert client credentials for a connected account
|
|
8321
|
+
*
|
|
8322
|
+
* Creates or updates a client-credentials-based installation for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. If an installation already exists, the stored client credentials are rotated to the new values.
|
|
8323
|
+
* @param options - The request options.
|
|
8324
|
+
* @param options.slug - The identifier of the integration.
|
|
8325
|
+
* @example "salesforce"
|
|
8326
|
+
* @returns {Promise<ConnectedAccount>}
|
|
8327
|
+
* @throws {BadRequestException} 400
|
|
8328
|
+
* @throws {UnauthorizedException} 401
|
|
8329
|
+
* @throws {AuthorizationException} 403
|
|
8330
|
+
* @throws {NotFoundException} 404
|
|
8331
|
+
* @throws {ConflictException} 409
|
|
8332
|
+
* @throws {UnprocessableEntityException} 422
|
|
8333
|
+
*/
|
|
8334
|
+
updateDataIntegrationClientCredentials(options: UpdateDataIntegrationClientCredentialsOptions): Promise<ConnectedAccount>;
|
|
8335
|
+
/**
|
|
8336
|
+
* Delete an organization connected account
|
|
8337
|
+
*
|
|
8338
|
+
* Disconnects the organization's account for the provider, including removing any stored access and refresh tokens. A member will need to reauthorize if the organization wants to reconnect. This does not revoke access on the provider side.
|
|
8339
|
+
* @param options - Additional query options.
|
|
8340
|
+
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier.
|
|
8341
|
+
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
8342
|
+
* @param options.slug - The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
|
|
8343
|
+
* @example "github"
|
|
8344
|
+
* @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered.
|
|
8345
|
+
* @example true
|
|
8346
|
+
* @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to delete.
|
|
8347
|
+
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
8348
|
+
* @returns {Promise<void>}
|
|
8349
|
+
* @throws {BadRequestException} 400
|
|
8350
|
+
* @throws {UnauthorizedException} 401
|
|
8351
|
+
* @throws {NotFoundException} 404
|
|
8352
|
+
* @throws {ConflictException} 409
|
|
8353
|
+
*/
|
|
8354
|
+
deleteOrganizationConnectedAccount(options: DeleteOrganizationConnectedAccountOptions): Promise<void>;
|
|
8355
|
+
/**
|
|
8356
|
+
* Delete a connected account
|
|
8357
|
+
*
|
|
8358
|
+
* Disconnects WorkOS's account for the user, including removing any stored access and refresh tokens. The user will need to reauthorize if they want to reconnect. Access is not revoked on the provider side, except for the WorkOS OAuth provider, whose underlying AuthKit grant is revoked.
|
|
8359
|
+
* @param options - Additional query options.
|
|
8360
|
+
* @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier.
|
|
8361
|
+
* @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
8362
|
+
* @param options.slug - The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
|
|
8363
|
+
* @example "github"
|
|
8364
|
+
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization.
|
|
8365
|
+
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
8366
|
+
* @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered.
|
|
8367
|
+
* @example true
|
|
8368
|
+
* @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to delete.
|
|
8369
|
+
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
8370
|
+
* @returns {Promise<void>}
|
|
8371
|
+
* @throws {BadRequestException} 400
|
|
8372
|
+
* @throws {UnauthorizedException} 401
|
|
8373
|
+
* @throws {NotFoundException} 404
|
|
8374
|
+
* @throws {ConflictException} 409
|
|
8375
|
+
*/
|
|
8376
|
+
deleteUserConnectedAccount(options: DeleteUserConnectedAccountOptions): Promise<void>;
|
|
7293
8377
|
/**
|
|
7294
8378
|
* List data integrations
|
|
7295
8379
|
*
|
|
@@ -7332,6 +8416,16 @@ declare class Pipes {
|
|
|
7332
8416
|
* @throws {UnprocessableEntityException} 422
|
|
7333
8417
|
*/
|
|
7334
8418
|
createDataIntegration(options: CreateDataIntegrationOptions): Promise<DataIntegration>;
|
|
8419
|
+
/**
|
|
8420
|
+
* Finish connection
|
|
8421
|
+
*
|
|
8422
|
+
* Saves a connection that was started with `code_challenge`. After the user authorizes, WorkOS redirects them to `return_to` with a `connect_code` and `state`. Call this endpoint from your server with that `connect_code` and the `code_verifier` behind the challenge to save the connected account.
|
|
8423
|
+
* @returns {Promise<DataIntegrationFinishConnectionResponse>}
|
|
8424
|
+
* @throws {BadRequestException} 400
|
|
8425
|
+
* @throws {UnauthorizedException} 401
|
|
8426
|
+
* @throws {AuthorizationException} 403
|
|
8427
|
+
*/
|
|
8428
|
+
finishConnection(options: FinishConnectionOptions): Promise<DataIntegrationFinishConnectionResponse>;
|
|
7335
8429
|
/**
|
|
7336
8430
|
* Get a data integration
|
|
7337
8431
|
*
|
|
@@ -7384,39 +8478,32 @@ declare class Pipes {
|
|
|
7384
8478
|
/**
|
|
7385
8479
|
* Create another API key connected account
|
|
7386
8480
|
*
|
|
7387
|
-
* Requires `
|
|
7388
|
-
*
|
|
7389
|
-
* or returns 404 `multiple_connections_unavailable` if one already exists.
|
|
7390
|
-
* Use `updateDataIntegrationApiKey` to rotate the compatibility connection or
|
|
7391
|
-
* update an exact connection.
|
|
7392
|
-
*/
|
|
7393
|
-
createDataIntegrationApiKey(options: CreateDataIntegrationApiKeyOptions): Promise<ConnectedAccount>;
|
|
7394
|
-
/**
|
|
7395
|
-
* Upsert an API key for a connected account
|
|
7396
|
-
*
|
|
7397
|
-
* Creates or updates an API-key-based installation for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. If an installation already exists, the stored API key is rotated to the new value.
|
|
7398
|
-
* @param options - Object containing userId, secret.
|
|
8481
|
+
* Creates another API key-based connected account for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. Requires `connection_intent: add` and does not accept `connected_account_id`; use PUT to create or rotate the compatibility connection or to update an exact connection.
|
|
8482
|
+
* @param options - Object containing userId, secret, connectionIntent.
|
|
7399
8483
|
* @param options.slug - The identifier of the integration.
|
|
7400
8484
|
* @example "github"
|
|
8485
|
+
* @param options.accountDisplayName - A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
|
|
8486
|
+
* @example "Acme production"
|
|
8487
|
+
* @param options.accountIdentifier - A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it.
|
|
8488
|
+
* @example "workspace_123"
|
|
7401
8489
|
* @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier.
|
|
7402
8490
|
* @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7403
8491
|
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`.
|
|
7404
8492
|
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7405
|
-
* @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to rotate a specific existing connection.
|
|
7406
|
-
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7407
8493
|
* @param options.connectionOwner - Whose connection to create or rotate. `user` (the default) addresses the connection owned by `user_id`. `organization` addresses the connection shared by every member of `organization_id`; `user_id` then identifies the member performing the request and must be an active member of the organization.
|
|
7408
8494
|
* @example "user"
|
|
7409
8495
|
* @param options.secret - The API key secret to store for this integration.
|
|
7410
8496
|
* @example "sk-1234567890abcdef"
|
|
8497
|
+
* @param options.connectionIntent - Must be `add`: this endpoint only creates another connection. The first connection for an owner shape fills the compatibility slot; later connections are standard.
|
|
8498
|
+
* @example "add"
|
|
7411
8499
|
* @returns {Promise<ConnectedAccount>}
|
|
7412
8500
|
* @throws {BadRequestException} 400
|
|
7413
8501
|
* @throws {UnauthorizedException} 401
|
|
7414
8502
|
* @throws {AuthorizationException} 403
|
|
7415
8503
|
* @throws {NotFoundException} 404
|
|
7416
8504
|
* @throws {ConflictException} 409
|
|
7417
|
-
* @throws {UnprocessableEntityException} 422
|
|
7418
8505
|
*/
|
|
7419
|
-
|
|
8506
|
+
createDataIntegrationApiKey(options: CreateDataIntegrationApiKeyOptions): Promise<ConnectedAccount>;
|
|
7420
8507
|
/**
|
|
7421
8508
|
* Get authorization URL
|
|
7422
8509
|
*
|
|
@@ -7424,53 +8511,72 @@ declare class Pipes {
|
|
|
7424
8511
|
* @param options - Object containing userId.
|
|
7425
8512
|
* @param options.slug - The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
|
|
7426
8513
|
* @example "github"
|
|
8514
|
+
* @param options.accountDisplayName - A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
|
|
8515
|
+
* @example "Acme production"
|
|
7427
8516
|
* @param options.userId - The ID of the user to authorize. When `connection_owner` is `organization`, this is the user authorizing on behalf of the organization; they must be an active member of the organization and do not become the owner of the resulting connected account.
|
|
7428
8517
|
* @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7429
8518
|
* @param options.organizationId - An organization ID to scope the authorization to a specific organization. Required when `connection_owner` is `organization`.
|
|
7430
8519
|
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7431
8520
|
* @param options.connectionOwner - Who will own the connected account. `user` (the default) connects the user's own account. `organization` connects the organization's shared account and requires `organization_id`.
|
|
7432
8521
|
* @example "user"
|
|
7433
|
-
* @param options.returnTo - The URL to redirect the user to after authorization.
|
|
8522
|
+
* @param options.returnTo - The URL to redirect the user to after authorization. Required with `code_challenge`, and must then exactly match a redirect URI registered on one of the environment's applications. Loopback URLs match on any port; wildcard redirect URIs are not honored, and a `return_to` with a query string or fragment never matches.
|
|
7434
8523
|
* @example "https://example.com/callback"
|
|
8524
|
+
* @param options.codeChallenge - A PKCE-style code challenge: the base64url-encoded SHA-256 of a `code_verifier` your app keeps. When set, the connection isn't saved when the user finishes authorizing. Instead, the user is redirected to `return_to` with a `connect_code` and `state`, and your app must call [Finish connection](https://workos.com/docs/reference/pipes/connected-account/finish-connection) with the `connect_code` and `code_verifier` within 90 seconds to save it.
|
|
8525
|
+
* @example "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM"
|
|
8526
|
+
* @param options.codeChallengeMethod - The method used to derive `code_challenge`. Only `S256` is supported, and it is the default. Requires `code_challenge`.
|
|
8527
|
+
* @example "S256"
|
|
7435
8528
|
* @param options.config - Connect-time config values for the provider-declared `installation`-scope fields (e.g. a Zendesk `subdomain`), keyed by the config field. Only fields the provider declares may be supplied, and required fields must be provided unless already pinned on the integration.
|
|
7436
8529
|
* @example {"subdomain":"acme"}
|
|
8530
|
+
* @param options.connectionIntent - Which connection the request targets. Omit it to use the compatibility connection. Send `add` to create another connection: the first connection for an owner shape fills the compatibility slot, and later connections are standard. Send `reauthorize` with `connected_account_id` to reauthorize one exact connection.
|
|
8531
|
+
* @example "add"
|
|
8532
|
+
* @param options.connectedAccountId - The exact connected account to reauthorize. Required with `connection_intent: reauthorize` and not accepted otherwise.
|
|
8533
|
+
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7437
8534
|
* @returns {Promise<DataIntegrationAuthorizeUrlResponse>}
|
|
7438
8535
|
* @throws {BadRequestException} 400
|
|
7439
8536
|
* @throws {UnauthorizedException} 401
|
|
7440
8537
|
* @throws {AuthorizationException} 403
|
|
7441
8538
|
* @throws {NotFoundException} 404
|
|
8539
|
+
* @throws {ConflictException} 409
|
|
8540
|
+
* @throws {UnprocessableEntityException} 422
|
|
7442
8541
|
*/
|
|
7443
8542
|
authorizeDataIntegration(options: AuthorizeDataIntegrationOptions): Promise<DataIntegrationAuthorizeUrlResponse>;
|
|
7444
8543
|
/**
|
|
7445
8544
|
* Create another client credentials connected account
|
|
7446
8545
|
*
|
|
7447
|
-
* Requires `
|
|
7448
|
-
*
|
|
7449
|
-
* or returns 404 `multiple_connections_unavailable` if one already exists.
|
|
7450
|
-
* Use `updateDataIntegrationClientCredentials` to rotate the compatibility
|
|
7451
|
-
* connection or update an exact connection.
|
|
7452
|
-
*/
|
|
7453
|
-
createDataIntegrationClientCredential(options: CreateDataIntegrationClientCredentialOptions): Promise<ConnectedAccount>;
|
|
7454
|
-
/**
|
|
7455
|
-
* Upsert client credentials for a connected account
|
|
7456
|
-
*
|
|
7457
|
-
* Creates or updates a client-credentials-based installation for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. If an installation already exists, the stored client credentials are rotated to the new values.
|
|
7458
|
-
* @param options - The request options.
|
|
8546
|
+
* Creates another client credentials-based connected account for the specified integration, owned by the user or, when `connection_owner` is `organization`, shared by the organization. Requires `connection_intent: add` and does not accept `connected_account_id`; use PUT to create or rotate the compatibility connection or to update an exact connection.
|
|
8547
|
+
* @param options - Object containing userId, clientId, clientSecret, connectionIntent.
|
|
7459
8548
|
* @param options.slug - The identifier of the integration.
|
|
7460
8549
|
* @example "salesforce"
|
|
8550
|
+
* @param options.accountDisplayName - A mutable, non-unique label. Omit to preserve an existing label; null clears it. Labels are never account identifiers.
|
|
8551
|
+
* @example "Acme production"
|
|
8552
|
+
* @param options.accountIdentifier - A developer-attested provider account identifier, never inferred from a label or credential. Omit to preserve an existing identifier; null clears it.
|
|
8553
|
+
* @example "workspace_123"
|
|
8554
|
+
* @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier.
|
|
8555
|
+
* @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
8556
|
+
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to scope the connection to a specific organization. Required when `connection_owner` is `organization`.
|
|
8557
|
+
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
8558
|
+
* @param options.connectionOwner - Whose connection to create or rotate. `user` (the default) addresses the connection owned by `user_id`. `organization` addresses the connection shared by every member of `organization_id`; `user_id` then identifies the member performing the request and must be an active member of the organization.
|
|
8559
|
+
* @example "user"
|
|
8560
|
+
* @param options.clientId - The OAuth client ID to store for this integration.
|
|
8561
|
+
* @example "3MVG9..."
|
|
8562
|
+
* @param options.clientSecret - The OAuth client secret to store for this integration.
|
|
8563
|
+
* @example "shhh-secret"
|
|
8564
|
+
* @param options.config - Provider-specific configuration values collected for this installation, keyed by the provider's config field descriptors.
|
|
8565
|
+
* @example {"salesforce_host":"acme.my.salesforce.com"}
|
|
8566
|
+
* @param options.connectionIntent - Must be `add`: this endpoint only creates another connection. The first connection for an owner shape fills the compatibility slot; later connections are standard.
|
|
8567
|
+
* @example "add"
|
|
7461
8568
|
* @returns {Promise<ConnectedAccount>}
|
|
7462
8569
|
* @throws {BadRequestException} 400
|
|
7463
8570
|
* @throws {UnauthorizedException} 401
|
|
7464
8571
|
* @throws {AuthorizationException} 403
|
|
7465
8572
|
* @throws {NotFoundException} 404
|
|
7466
8573
|
* @throws {ConflictException} 409
|
|
7467
|
-
* @throws {UnprocessableEntityException} 422
|
|
7468
8574
|
*/
|
|
7469
|
-
|
|
8575
|
+
createDataIntegrationClientCredential(options: CreateDataIntegrationClientCredentialOptions): Promise<ConnectedAccount>;
|
|
7470
8576
|
/**
|
|
7471
8577
|
* Vend credentials for a connected account
|
|
7472
8578
|
*
|
|
7473
|
-
* Returns credentials for a user
|
|
8579
|
+
* Returns credentials for a user's connected account. Branches on the installation's `auth_method`: OAuth installations return an access token (refreshed if needed); API-key installations return the stored secret. Every active credential includes `config`: provider-declared, non-secret values from the installation snapshot, with current provider defaults for unset fields. Editing integration or organization configuration does not change the snapshot; reconnect or explicitly rebind the connection to adopt those edits. Defaults remain live, so a changed default can appear in `config` before a cached token is refreshed or re-minted. Credentials that never refresh require a reconnect or rebind when a default changes their routing.
|
|
7474
8580
|
* @param options - Object containing userId.
|
|
7475
8581
|
* @param options.slug - The identifier of the integration.
|
|
7476
8582
|
* @example "github"
|
|
@@ -7509,9 +8615,18 @@ declare class Pipes {
|
|
|
7509
8615
|
* Update an organization-owned data integration
|
|
7510
8616
|
*
|
|
7511
8617
|
* Updates the description, enabled state, or custom credentials of the organization-owned data integration for a provider. For custom providers, `custom_provider` updates the OAuth definition, which is shared with the user-owned root. The `/organization` suffix selects the environment-level organization-owned root for the provider; it does not name a particular organization.
|
|
7512
|
-
* @param options - The request
|
|
8618
|
+
* @param options - The request body.
|
|
7513
8619
|
* @param options.slug - The slug identifier of the data integration.
|
|
7514
8620
|
* @example "github"
|
|
8621
|
+
* @param options.description - An optional description of the Data Integration.
|
|
8622
|
+
* @example "Production GitHub app"
|
|
8623
|
+
* @param options.enabled - Whether the Data Integration is enabled.
|
|
8624
|
+
* @example true
|
|
8625
|
+
* @param options.scopes - The OAuth scopes to request for the Data Integration. Pass `null` to reset to the provider's configured scopes.
|
|
8626
|
+
* @example ["repo","read:org"]
|
|
8627
|
+
* @param options.credentials - New OAuth credentials for the Data Integration. When provided, rotates the stored client secret. Mutually exclusive with `api_key`.
|
|
8628
|
+
* @param options.apiKey - An API key to install or rotate for a tenant on an `api_key` integration. Upserts the tenant installation identified by `user_id` (and optional `organization_id`).
|
|
8629
|
+
* @param options.customProvider - Updates to a custom provider's OAuth definition. Only valid for custom-provider integrations.
|
|
7515
8630
|
* @returns {Promise<DataIntegration>}
|
|
7516
8631
|
* @throws {BadRequestException} 400
|
|
7517
8632
|
* @throws {UnauthorizedException} 401
|
|
@@ -7520,7 +8635,7 @@ declare class Pipes {
|
|
|
7520
8635
|
* @throws {ConflictException} 409
|
|
7521
8636
|
* @throws {UnprocessableEntityException} 422
|
|
7522
8637
|
*/
|
|
7523
|
-
updateOrganizationDataIntegration(options:
|
|
8638
|
+
updateOrganizationDataIntegration(options: UpdateDataIntegrationOptions): Promise<DataIntegration>;
|
|
7524
8639
|
/**
|
|
7525
8640
|
* Delete an organization-owned data integration
|
|
7526
8641
|
*
|
|
@@ -7582,12 +8697,30 @@ declare class Pipes {
|
|
|
7582
8697
|
/**
|
|
7583
8698
|
* Import an organization connected account
|
|
7584
8699
|
*
|
|
7585
|
-
* Imports an organization-owned [connected account](https://workos.com/docs/reference/pipes/connected-account) by providing OAuth tokens directly. Omit `
|
|
7586
|
-
* @param options -
|
|
8700
|
+
* Imports an organization-owned [connected account](https://workos.com/docs/reference/pipes/connected-account) by providing OAuth tokens directly. Omit `connection_intent` to create only the compatibility connection, or set it to `add` to explicitly create another connection. This creation-only endpoint does not accept `connected_account_id` or reauthorization intent.
|
|
8701
|
+
* @param options - Object containing userId.
|
|
7587
8702
|
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier.
|
|
7588
8703
|
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7589
8704
|
* @param options.slug - The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
|
|
7590
8705
|
* @example "github"
|
|
8706
|
+
* @param options.accountDisplayName - A mutable, non-unique connection label; null clears it. Not an account identifier.
|
|
8707
|
+
* @example "Acme production"
|
|
8708
|
+
* @param options.accountIdentifier - A developer-attested account identifier; null clears it.
|
|
8709
|
+
* @example "workspace_123"
|
|
8710
|
+
* @param options.accessToken - The OAuth access token for the connected account.
|
|
8711
|
+
* @example "gho_16C7e42F292c6912E7710c838347Ae178B4a"
|
|
8712
|
+
* @param options.refreshToken - The OAuth refresh token for the connected account.
|
|
8713
|
+
* @example "ghr_xxxxxxxxxxxxxxxxxxxx"
|
|
8714
|
+
* @param options.expiresAt - The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire.
|
|
8715
|
+
* @example "2025-12-31T23:59:59.000Z"
|
|
8716
|
+
* @param options.scopes - The OAuth scopes granted for this connection.
|
|
8717
|
+
* @example ["repo","user:email"]
|
|
8718
|
+
* @param options.state - Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided.
|
|
8719
|
+
* @example "connected"
|
|
8720
|
+
* @param options.userId - The [User](https://workos.com/docs/reference/authkit/user) identifier of the organization member on whose behalf the connected account is being imported or updated. The user must be an active member of the organization.
|
|
8721
|
+
* @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
8722
|
+
* @param options.connectionIntent - Set to `add` to create another connected account. Omit this field for permanent compatibility behavior.
|
|
8723
|
+
* @example "add"
|
|
7591
8724
|
* @returns {Promise<ConnectedAccount>}
|
|
7592
8725
|
* @throws {UnauthorizedException} 401
|
|
7593
8726
|
* @throws {AuthorizationException} 403
|
|
@@ -7600,15 +8733,33 @@ declare class Pipes {
|
|
|
7600
8733
|
* Update an organization connected account
|
|
7601
8734
|
*
|
|
7602
8735
|
* Updates an organization's [connected account](https://workos.com/docs/reference/pipes/connected-account) tokens, scopes, or state for a specific provider.
|
|
7603
|
-
* @param options -
|
|
8736
|
+
* @param options - Object containing userId.
|
|
7604
8737
|
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier.
|
|
7605
8738
|
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7606
8739
|
* @param options.slug - The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
|
|
7607
8740
|
* @example "github"
|
|
7608
|
-
* @param options.supportsMultipleConnections - Accepted for compatibility; does not change update targeting.
|
|
8741
|
+
* @param options.supportsMultipleConnections - Accepted for compatibility; does not change update targeting. Omit intent and selector to update the compatibility connection, or supply `connected_account_id` to update an exact connection.
|
|
8742
|
+
* @example true
|
|
7609
8743
|
* @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to update.
|
|
7610
8744
|
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7611
|
-
* @param options.connectionIntent - Set to `reauthorize` with `
|
|
8745
|
+
* @param options.connectionIntent - Set to `reauthorize` with `connected_account_id` to update one exact connection. The intent may be omitted when supplying an ID. Omit both for permanent compatibility behavior.
|
|
8746
|
+
* @example "reauthorize"
|
|
8747
|
+
* @param options.accountDisplayName - A mutable, non-unique connection label; null clears it. Not an account identifier.
|
|
8748
|
+
* @example "Acme production"
|
|
8749
|
+
* @param options.accountIdentifier - A developer-attested account identifier; null clears it.
|
|
8750
|
+
* @example "workspace_123"
|
|
8751
|
+
* @param options.accessToken - The OAuth access token for the connected account.
|
|
8752
|
+
* @example "gho_16C7e42F292c6912E7710c838347Ae178B4a"
|
|
8753
|
+
* @param options.refreshToken - The OAuth refresh token for the connected account.
|
|
8754
|
+
* @example "ghr_xxxxxxxxxxxxxxxxxxxx"
|
|
8755
|
+
* @param options.expiresAt - The ISO-8601 timestamp when the access token expires. Required when `access_token` is provided for tokens that expire.
|
|
8756
|
+
* @example "2025-12-31T23:59:59.000Z"
|
|
8757
|
+
* @param options.scopes - The OAuth scopes granted for this connection.
|
|
8758
|
+
* @example ["repo","user:email"]
|
|
8759
|
+
* @param options.state - Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided.
|
|
8760
|
+
* @example "connected"
|
|
8761
|
+
* @param options.userId - The [User](https://workos.com/docs/reference/authkit/user) identifier of the organization member on whose behalf the connected account is being imported or updated. The user must be an active member of the organization.
|
|
8762
|
+
* @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7612
8763
|
* @returns {Promise<ConnectedAccount>}
|
|
7613
8764
|
* @throws {BadRequestException} 400
|
|
7614
8765
|
* @throws {UnauthorizedException} 401
|
|
@@ -7618,26 +8769,6 @@ declare class Pipes {
|
|
|
7618
8769
|
* @throws {UnprocessableEntityException} 422
|
|
7619
8770
|
*/
|
|
7620
8771
|
updateOrganizationConnectedAccount(options: UpdateOrganizationConnectedAccountOptions): Promise<ConnectedAccount>;
|
|
7621
|
-
/**
|
|
7622
|
-
* Delete an organization connected account
|
|
7623
|
-
*
|
|
7624
|
-
* Disconnects the organization's account for the provider, including removing any stored access and refresh tokens. A member will need to reauthorize if the organization wants to reconnect. This does not revoke access on the provider side.
|
|
7625
|
-
* @param options - Additional query options.
|
|
7626
|
-
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier.
|
|
7627
|
-
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7628
|
-
* @param options.slug - The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
|
|
7629
|
-
* @example "github"
|
|
7630
|
-
* @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered.
|
|
7631
|
-
* @example true
|
|
7632
|
-
* @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to delete.
|
|
7633
|
-
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7634
|
-
* @returns {Promise<void>}
|
|
7635
|
-
* @throws {BadRequestException} 400
|
|
7636
|
-
* @throws {UnauthorizedException} 401
|
|
7637
|
-
* @throws {NotFoundException} 404
|
|
7638
|
-
* @throws {ConflictException} 409
|
|
7639
|
-
*/
|
|
7640
|
-
deleteOrganizationConnectedAccount(options: DeleteOrganizationConnectedAccountOptions): Promise<void>;
|
|
7641
8772
|
/**
|
|
7642
8773
|
* List providers for an organization
|
|
7643
8774
|
*
|
|
@@ -7677,7 +8808,7 @@ declare class Pipes {
|
|
|
7677
8808
|
/**
|
|
7678
8809
|
* Import a connected account
|
|
7679
8810
|
*
|
|
7680
|
-
* Imports a [connected account](https://workos.com/docs/reference/pipes/connected-account) for a user by providing OAuth tokens directly.
|
|
8811
|
+
* Imports a [connected account](https://workos.com/docs/reference/pipes/connected-account) for a user by providing OAuth tokens directly. Use this to migrate existing connections or set up connections without going through the OAuth flow.
|
|
7681
8812
|
* @param options - The request body.
|
|
7682
8813
|
* @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier.
|
|
7683
8814
|
* @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
@@ -7685,6 +8816,10 @@ declare class Pipes {
|
|
|
7685
8816
|
* @example "github"
|
|
7686
8817
|
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization.
|
|
7687
8818
|
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
8819
|
+
* @param options.accountDisplayName - A mutable, non-unique connection label; null clears it. Not an account identifier.
|
|
8820
|
+
* @example "Acme production"
|
|
8821
|
+
* @param options.accountIdentifier - A developer-attested account identifier; null clears it.
|
|
8822
|
+
* @example "workspace_123"
|
|
7688
8823
|
* @param options.accessToken - The OAuth access token for the connected account.
|
|
7689
8824
|
* @example "gho_16C7e42F292c6912E7710c838347Ae178B4a"
|
|
7690
8825
|
* @param options.refreshToken - The OAuth refresh token for the connected account.
|
|
@@ -7695,6 +8830,8 @@ declare class Pipes {
|
|
|
7695
8830
|
* @example ["repo","user:email"]
|
|
7696
8831
|
* @param options.state - Explicitly set the state of the connected account. When omitted, the state is derived from the token combination provided.
|
|
7697
8832
|
* @example "connected"
|
|
8833
|
+
* @param options.connectionIntent - Set to `add` to create another connected account. Omit this field for permanent compatibility behavior.
|
|
8834
|
+
* @example "add"
|
|
7698
8835
|
* @returns {Promise<ConnectedAccount>}
|
|
7699
8836
|
* @throws {UnauthorizedException} 401
|
|
7700
8837
|
* @throws {NotFoundException} 404
|
|
@@ -7713,10 +8850,16 @@ declare class Pipes {
|
|
|
7713
8850
|
* @example "github"
|
|
7714
8851
|
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization.
|
|
7715
8852
|
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7716
|
-
* @param options.supportsMultipleConnections - Accepted for compatibility; does not change update targeting.
|
|
8853
|
+
* @param options.supportsMultipleConnections - Accepted for compatibility; does not change update targeting. Omit intent and selector to update the compatibility connection, or supply `connected_account_id` to update an exact connection.
|
|
8854
|
+
* @example true
|
|
7717
8855
|
* @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to update.
|
|
7718
8856
|
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7719
|
-
* @param options.connectionIntent - Set to `reauthorize` with `
|
|
8857
|
+
* @param options.connectionIntent - Set to `reauthorize` with `connected_account_id` to update one exact connection. The intent may be omitted when supplying an ID. Omit both for permanent compatibility behavior.
|
|
8858
|
+
* @example "reauthorize"
|
|
8859
|
+
* @param options.accountDisplayName - A mutable, non-unique connection label; null clears it. Not an account identifier.
|
|
8860
|
+
* @example "Acme production"
|
|
8861
|
+
* @param options.accountIdentifier - A developer-attested account identifier; null clears it.
|
|
8862
|
+
* @example "workspace_123"
|
|
7720
8863
|
* @param options.accessToken - The OAuth access token for the connected account.
|
|
7721
8864
|
* @example "gho_16C7e42F292c6912E7710c838347Ae178B4a"
|
|
7722
8865
|
* @param options.refreshToken - The OAuth refresh token for the connected account.
|
|
@@ -7735,28 +8878,6 @@ declare class Pipes {
|
|
|
7735
8878
|
* @throws {UnprocessableEntityException} 422
|
|
7736
8879
|
*/
|
|
7737
8880
|
updateUserConnectedAccount(options: UpdateUserConnectedAccountOptions): Promise<ConnectedAccount>;
|
|
7738
|
-
/**
|
|
7739
|
-
* Delete a connected account
|
|
7740
|
-
*
|
|
7741
|
-
* Disconnects WorkOS's account for the user, including removing any stored access and refresh tokens. The user will need to reauthorize if they want to reconnect. Access is not revoked on the provider side, except for the WorkOS OAuth provider, whose underlying AuthKit grant is revoked.
|
|
7742
|
-
* @param options - Additional query options.
|
|
7743
|
-
* @param options.userId - A [User](https://workos.com/docs/reference/authkit/user) identifier.
|
|
7744
|
-
* @example "user_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7745
|
-
* @param options.slug - The slug identifier of the provider (e.g., `github`, `slack`, `notion`).
|
|
7746
|
-
* @example "github"
|
|
7747
|
-
* @param options.organizationId - An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization.
|
|
7748
|
-
* @example "org_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7749
|
-
* @param options.supportsMultipleConnections - Set to `true` to use the plural connection contract. When omitted or `false`, only the compatibility connection is considered.
|
|
7750
|
-
* @example true
|
|
7751
|
-
* @param options.connectedAccountId - A [connected account](https://workos.com/docs/reference/pipes/connected-account) identifier. Use this to select the connection to delete.
|
|
7752
|
-
* @example "data_installation_01EHZNVPK3SFK441A1RGBFSHRT"
|
|
7753
|
-
* @returns {Promise<void>}
|
|
7754
|
-
* @throws {BadRequestException} 400
|
|
7755
|
-
* @throws {UnauthorizedException} 401
|
|
7756
|
-
* @throws {NotFoundException} 404
|
|
7757
|
-
* @throws {ConflictException} 409
|
|
7758
|
-
*/
|
|
7759
|
-
deleteUserConnectedAccount(options: DeleteUserConnectedAccountOptions): Promise<void>;
|
|
7760
8881
|
/**
|
|
7761
8882
|
* List providers for a user
|
|
7762
8883
|
*
|
|
@@ -7971,10 +9092,10 @@ declare class Radar {
|
|
|
7971
9092
|
* @example "block"
|
|
7972
9093
|
* @param options.entry - The value to add to the list. Must match the format of the list type (e.g. a valid IP address for `ip_address`, a valid email for `email`).
|
|
7973
9094
|
* @example "198.51.100.42"
|
|
7974
|
-
* @returns {Promise<RadarListEntryAlreadyPresentResponse>}
|
|
9095
|
+
* @returns {Promise<RadarListEntryAlreadyPresentResponse | null>}
|
|
7975
9096
|
* @throws {BadRequestException} 400
|
|
7976
9097
|
*/
|
|
7977
|
-
addListEntry(options: AddListEntryOptions): Promise<RadarListEntryAlreadyPresentResponse>;
|
|
9098
|
+
addListEntry(options: AddListEntryOptions): Promise<RadarListEntryAlreadyPresentResponse | null>;
|
|
7978
9099
|
/**
|
|
7979
9100
|
* Remove an entry from a Radar list
|
|
7980
9101
|
*
|
|
@@ -8008,7 +9129,7 @@ declare class AdminPortal {
|
|
|
8008
9129
|
* @throws {NotFoundException} 404
|
|
8009
9130
|
* @throws {UnprocessableEntityException} 422
|
|
8010
9131
|
*/
|
|
8011
|
-
generateLink({ intent, organization, returnUrl, successUrl, intentOptions,
|
|
9132
|
+
generateLink({ intent, organization, returnUrl, successUrl, intentOptions, itContactEmails }: {
|
|
8012
9133
|
intent?: GenerateLinkIntent;
|
|
8013
9134
|
organization: string;
|
|
8014
9135
|
returnUrl?: string;
|
|
@@ -8019,7 +9140,7 @@ declare class AdminPortal {
|
|
|
8019
9140
|
providerType?: string;
|
|
8020
9141
|
};
|
|
8021
9142
|
};
|
|
8022
|
-
|
|
9143
|
+
itContactEmails?: string[];
|
|
8023
9144
|
}): Promise<{
|
|
8024
9145
|
link: string;
|
|
8025
9146
|
}>;
|
|
@@ -8130,9 +9251,9 @@ type ChallengeFactorOptions = {
|
|
|
8130
9251
|
interface Challenge {
|
|
8131
9252
|
object: 'authentication_challenge';
|
|
8132
9253
|
id: string;
|
|
8133
|
-
createdAt:
|
|
8134
|
-
updatedAt:
|
|
8135
|
-
expiresAt?:
|
|
9254
|
+
createdAt: Date;
|
|
9255
|
+
updatedAt: Date;
|
|
9256
|
+
expiresAt?: Date;
|
|
8136
9257
|
code?: string;
|
|
8137
9258
|
authenticationFactorId: string;
|
|
8138
9259
|
}
|
|
@@ -8278,19 +9399,20 @@ interface SerializedAuditLogExportOptions {
|
|
|
8278
9399
|
}
|
|
8279
9400
|
//#endregion
|
|
8280
9401
|
//#region src/audit-logs/interfaces/audit-log-export.interface.d.ts
|
|
9402
|
+
type AuditLogExportState = 'pending' | 'ready' | 'error' | 'expired';
|
|
8281
9403
|
interface AuditLogExport {
|
|
8282
9404
|
object: 'audit_log_export';
|
|
8283
9405
|
id: string;
|
|
8284
|
-
state:
|
|
8285
|
-
url?: string;
|
|
8286
|
-
createdAt:
|
|
8287
|
-
updatedAt:
|
|
9406
|
+
state: AuditLogExportState;
|
|
9407
|
+
url?: string | null;
|
|
9408
|
+
createdAt: Date;
|
|
9409
|
+
updatedAt: Date;
|
|
8288
9410
|
}
|
|
8289
9411
|
interface AuditLogExportResponse {
|
|
8290
9412
|
object: 'audit_log_export';
|
|
8291
9413
|
id: string;
|
|
8292
|
-
state:
|
|
8293
|
-
url?: string;
|
|
9414
|
+
state: AuditLogExportState;
|
|
9415
|
+
url?: string | null;
|
|
8294
9416
|
created_at: string;
|
|
8295
9417
|
updated_at: string;
|
|
8296
9418
|
}
|
|
@@ -8312,7 +9434,7 @@ interface AuditLogSchema {
|
|
|
8312
9434
|
targets: AuditLogTargetSchema[];
|
|
8313
9435
|
actor: AuditLogActorSchema | undefined;
|
|
8314
9436
|
metadata: Record<string, string | boolean | number> | undefined;
|
|
8315
|
-
createdAt:
|
|
9437
|
+
createdAt: Date;
|
|
8316
9438
|
}
|
|
8317
9439
|
interface SerializedAuditLogTargetSchema$1 {
|
|
8318
9440
|
type: string;
|
|
@@ -8546,9 +9668,8 @@ declare class AuditLogs {
|
|
|
8546
9668
|
createSchema(schema: CreateAuditLogSchemaOptions, options?: CreateAuditLogSchemaRequestOptions): Promise<AuditLogSchema>;
|
|
8547
9669
|
listSchemas(action: string, options?: PaginationOptions): Promise<AutoPaginatable<AuditLogSchema, PaginationOptions>>;
|
|
8548
9670
|
}
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
}
|
|
9671
|
+
//#endregion
|
|
9672
|
+
//#region node_modules/jose/dist/types/types.d.ts
|
|
8552
9673
|
/** Supported JWS "alg" (Algorithm) Header Parameter values. Availability depends on the runtime. */
|
|
8553
9674
|
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 & {});
|
|
8554
9675
|
/** Supported JWE "alg" (Algorithm) Header Parameter values. Availability depends on the runtime. */
|
|
@@ -8560,99 +9681,6 @@ type JWEKeyManagementAlgorithm = 'dir' | 'A128KW' | 'A192KW' | 'A256KW' | 'A128G
|
|
|
8560
9681
|
type JWEContentEncryptionAlgorithm = 'A128CBC-HS256' | 'A192CBC-HS384' | 'A256CBC-HS512' | 'A128GCM' | 'A192GCM' | 'A256GCM' | (string & {});
|
|
8561
9682
|
/** JWK "kty" (Key Type) Parameter values supported by this module. */
|
|
8562
9683
|
type JWKKeyType = 'EC' | 'RSA' | 'OKP' | 'AKP' | 'oct' | (string & {});
|
|
8563
|
-
/**
|
|
8564
|
-
* Generic JSON Web Key Parameters.
|
|
8565
|
-
*
|
|
8566
|
-
* > Note: This is declared as a type alias rather than an interface so that it satisfies the implicit index
|
|
8567
|
-
* > signature of the `JsonWebKey` types shipped by `@types/node` and `lib.dom`.
|
|
8568
|
-
*/
|
|
8569
|
-
type JWKParameters = {
|
|
8570
|
-
/** JWK "kty" (Key Type) Parameter */
|
|
8571
|
-
kty?: JWKKeyType;
|
|
8572
|
-
/** JWK "alg" (Algorithm) Parameter */
|
|
8573
|
-
alg?: JWSAlgorithm | JWEKeyManagementAlgorithm | JWEContentEncryptionAlgorithm;
|
|
8574
|
-
/** Permitted key operations. */
|
|
8575
|
-
key_ops?: string[];
|
|
8576
|
-
/** Whether the key may be exported. */
|
|
8577
|
-
ext?: boolean;
|
|
8578
|
-
/** JWK "use" (Public Key Use) Parameter */
|
|
8579
|
-
use?: 'sig' | 'enc' | (string & {});
|
|
8580
|
-
/** X.509 certificate chain. */
|
|
8581
|
-
x5c?: string[];
|
|
8582
|
-
/** X.509 certificate SHA-1 thumbprint. */
|
|
8583
|
-
x5t?: string;
|
|
8584
|
-
/** X.509 certificate SHA-256 thumbprint. */
|
|
8585
|
-
'x5t#S256'?: string;
|
|
8586
|
-
/** X.509 certificate URL. */
|
|
8587
|
-
x5u?: string;
|
|
8588
|
-
/** JWK "kid" (Key ID) Parameter */
|
|
8589
|
-
kid?: string;
|
|
8590
|
-
};
|
|
8591
|
-
/** Convenience interface for public OKP JSON Web Keys. */
|
|
8592
|
-
interface JWK_OKP_Public extends JWKParameters {
|
|
8593
|
-
/** Key pair subtype. */
|
|
8594
|
-
crv: string;
|
|
8595
|
-
/** Public key. */
|
|
8596
|
-
x: string;
|
|
8597
|
-
}
|
|
8598
|
-
/** Convenience interface for private OKP JSON Web Keys. */
|
|
8599
|
-
interface JWK_OKP_Private extends JWK_OKP_Public {
|
|
8600
|
-
/** Private key. */
|
|
8601
|
-
d: string;
|
|
8602
|
-
}
|
|
8603
|
-
/** Convenience interface for public AKP JSON Web Keys. */
|
|
8604
|
-
interface JWK_AKP_Public extends JWKParameters {
|
|
8605
|
-
/** JWK "alg" (Algorithm) Parameter */
|
|
8606
|
-
alg: string;
|
|
8607
|
-
/** AKP JWK "pub" (The Public key) Parameter */
|
|
8608
|
-
pub: string;
|
|
8609
|
-
}
|
|
8610
|
-
/** Convenience interface for private AKP JSON Web Keys. */
|
|
8611
|
-
interface JWK_AKP_Private extends JWK_AKP_Public {
|
|
8612
|
-
/** AKP JWK "priv" (The Private Key) Parameter */
|
|
8613
|
-
priv: string;
|
|
8614
|
-
}
|
|
8615
|
-
/** Convenience interface for public EC JSON Web Keys. */
|
|
8616
|
-
interface JWK_EC_Public extends JWKParameters {
|
|
8617
|
-
/** Curve. */
|
|
8618
|
-
crv: string;
|
|
8619
|
-
/** Public key X coordinate. */
|
|
8620
|
-
x: string;
|
|
8621
|
-
/** Public key Y coordinate. */
|
|
8622
|
-
y: string;
|
|
8623
|
-
}
|
|
8624
|
-
/** Convenience interface for private EC JSON Web Keys. */
|
|
8625
|
-
interface JWK_EC_Private extends JWK_EC_Public {
|
|
8626
|
-
/** Private key. */
|
|
8627
|
-
d: string;
|
|
8628
|
-
}
|
|
8629
|
-
/** Convenience interface for public RSA JSON Web Keys. */
|
|
8630
|
-
interface JWK_RSA_Public extends JWKParameters {
|
|
8631
|
-
/** Public exponent. */
|
|
8632
|
-
e: string;
|
|
8633
|
-
/** Modulus. */
|
|
8634
|
-
n: string;
|
|
8635
|
-
}
|
|
8636
|
-
/** Convenience interface for private RSA JSON Web Keys. */
|
|
8637
|
-
interface JWK_RSA_Private extends JWK_RSA_Public {
|
|
8638
|
-
/** Private exponent. */
|
|
8639
|
-
d: string;
|
|
8640
|
-
/** First factor CRT exponent. */
|
|
8641
|
-
dp: string;
|
|
8642
|
-
/** Second factor CRT exponent. */
|
|
8643
|
-
dq: string;
|
|
8644
|
-
/** First prime factor. */
|
|
8645
|
-
p: string;
|
|
8646
|
-
/** Second prime factor. */
|
|
8647
|
-
q: string;
|
|
8648
|
-
/** First CRT coefficient. */
|
|
8649
|
-
qi: string;
|
|
8650
|
-
}
|
|
8651
|
-
/** Convenience interface for "oct" JSON Web Keys. */
|
|
8652
|
-
interface JWK_oct extends JWKParameters {
|
|
8653
|
-
/** Symmetric key value. */
|
|
8654
|
-
k: string;
|
|
8655
|
-
}
|
|
8656
9684
|
/**
|
|
8657
9685
|
* JSON Web Key ({@link https://www.rfc-editor.org/info/rfc7517/ JWK}). "RSA", "EC", "OKP", "AKP",
|
|
8658
9686
|
* and "oct" key types are supported.
|
|
@@ -8721,38 +9749,6 @@ type JWK = {
|
|
|
8721
9749
|
t?: string;
|
|
8722
9750
|
}>;
|
|
8723
9751
|
};
|
|
8724
|
-
/** Discriminated union of supported JSON Web Key shapes, narrowed by the "kty" (Key Type) Parameter. */
|
|
8725
|
-
// Intersect "kty" into each member separately: typedoc omits the parentheses in `X & (A | B)`.
|
|
8726
|
-
type AnyJWK = (JWK_EC_Private & {
|
|
8727
|
-
kty: 'EC';
|
|
8728
|
-
}) | (JWK_EC_Public & {
|
|
8729
|
-
kty: 'EC';
|
|
8730
|
-
}) | (JWK_RSA_Private & {
|
|
8731
|
-
kty: 'RSA';
|
|
8732
|
-
}) | (JWK_RSA_Public & {
|
|
8733
|
-
kty: 'RSA';
|
|
8734
|
-
}) | (JWK_OKP_Private & {
|
|
8735
|
-
kty: 'OKP';
|
|
8736
|
-
}) | (JWK_OKP_Public & {
|
|
8737
|
-
kty: 'OKP';
|
|
8738
|
-
}) | (JWK_AKP_Private & {
|
|
8739
|
-
kty: 'AKP';
|
|
8740
|
-
}) | (JWK_AKP_Public & {
|
|
8741
|
-
kty: 'AKP';
|
|
8742
|
-
}) | (JWK_oct & {
|
|
8743
|
-
kty: 'oct';
|
|
8744
|
-
});
|
|
8745
|
-
/** Key or secret input accepted by all sign, verify, encrypt, and decrypt operations. */
|
|
8746
|
-
type KeyInput = CryptoKey | KeyObject | JWK | Uint8Array;
|
|
8747
|
-
/** Dynamic key resolver for consuming operations. */
|
|
8748
|
-
interface GetKeyFunction<IProtectedHeader, IToken, KeyTypes extends KeyInput = KeyInput> {
|
|
8749
|
-
/**
|
|
8750
|
-
* Resolves a key for an unverified token. Throw if no suitable key can be resolved.
|
|
8751
|
-
*
|
|
8752
|
-
* @param token The consumed JWE or JWS token; none of its components have been verified.
|
|
8753
|
-
*/
|
|
8754
|
-
(protectedHeader: IProtectedHeader, token: IToken): Promise<KeyTypes> | KeyTypes;
|
|
8755
|
-
}
|
|
8756
9752
|
/** Flattened JWS verification input. */
|
|
8757
9753
|
interface FlattenedJWSInput {
|
|
8758
9754
|
/** JWS Unprotected Header as a JSON object. Not integrity protected; omit when empty. */
|
|
@@ -8764,32 +9760,6 @@ interface FlattenedJWSInput {
|
|
|
8764
9760
|
/** Base64url-encoded signature or MAC. */
|
|
8765
9761
|
signature: string;
|
|
8766
9762
|
}
|
|
8767
|
-
/** General JWS verification input. */
|
|
8768
|
-
interface GeneralJWSInput {
|
|
8769
|
-
/** Base64url-encoded payload; with `b64: false`, supply an unencoded string or Uint8Array. */
|
|
8770
|
-
payload: string | Uint8Array;
|
|
8771
|
-
/**
|
|
8772
|
-
* The "signatures" member value MUST be an array of JSON objects. Each object represents a
|
|
8773
|
-
* signature or MAC over the JWS Payload and the JWS Protected Header.
|
|
8774
|
-
*/
|
|
8775
|
-
signatures: Omit<FlattenedJWSInput, 'payload'>[];
|
|
8776
|
-
}
|
|
8777
|
-
/**
|
|
8778
|
-
* Flattened JWS JSON Serialization token. The payload is an empty string when the
|
|
8779
|
-
* {@link https://www.rfc-editor.org/info/rfc7797/ unencoded payload option} is used.
|
|
8780
|
-
*/
|
|
8781
|
-
interface FlattenedJWS extends Partial<FlattenedJWSInput> {
|
|
8782
|
-
payload: string;
|
|
8783
|
-
signature: string;
|
|
8784
|
-
}
|
|
8785
|
-
/**
|
|
8786
|
-
* General JWS JSON Serialization token. The payload is an empty string when the
|
|
8787
|
-
* {@link https://www.rfc-editor.org/info/rfc7797/ unencoded payload option} is used.
|
|
8788
|
-
*/
|
|
8789
|
-
interface GeneralJWS {
|
|
8790
|
-
payload: string;
|
|
8791
|
-
signatures: Omit<FlattenedJWSInput, 'payload'>[];
|
|
8792
|
-
}
|
|
8793
9763
|
/** Header Parameters common to JWE and JWS. */
|
|
8794
9764
|
interface JoseHeaderParameters {
|
|
8795
9765
|
/** "kid" (Key ID) Header Parameter */
|
|
@@ -8824,246 +9794,10 @@ interface JWSHeaderParameters extends JoseHeaderParameters {
|
|
|
8824
9794
|
/** Any other JWS Header member. */
|
|
8825
9795
|
[propName: string]: unknown;
|
|
8826
9796
|
}
|
|
8827
|
-
/** Recognized JWE Key Management-related Header Parameters. */
|
|
8828
|
-
interface JWEKeyManagementHeaderParameters {
|
|
8829
|
-
/** ECDH-ES Agreement PartyUInfo bytes, used in ConcatKDF and added to the JOSE header. */
|
|
8830
|
-
apu?: Uint8Array;
|
|
8831
|
-
/** ECDH-ES Agreement PartyVInfo bytes, used in ConcatKDF and added to the JOSE header. */
|
|
8832
|
-
apv?: Uint8Array;
|
|
8833
|
-
/** PBES2 PBKDF2 iteration count, added to the JOSE header. */
|
|
8834
|
-
p2c?: number;
|
|
8835
|
-
/** @deprecated For testing and vector validation only. */
|
|
8836
|
-
p2s?: Uint8Array;
|
|
8837
|
-
/** @deprecated For testing and vector validation only. */
|
|
8838
|
-
iv?: Uint8Array;
|
|
8839
|
-
/** @deprecated For testing and vector validation only. */
|
|
8840
|
-
epk?: CryptoKey | KeyObject;
|
|
8841
|
-
}
|
|
8842
|
-
/** Flattened JWE JSON Serialization token. */
|
|
8843
|
-
interface FlattenedJWE {
|
|
8844
|
-
/**
|
|
8845
|
-
* Base64url-encoded additional authenticated data; integrity protected but not encrypted. Omit
|
|
8846
|
-
* when empty.
|
|
8847
|
-
*/
|
|
8848
|
-
aad?: string;
|
|
8849
|
-
/** Base64url-encoded ciphertext. */
|
|
8850
|
-
ciphertext: string;
|
|
8851
|
-
/** Base64url-encoded encrypted key. Omit when empty. */
|
|
8852
|
-
encrypted_key?: string;
|
|
8853
|
-
/**
|
|
8854
|
-
* JWE Per-Recipient Unprotected Header as a JSON object. Not integrity protected; omit when
|
|
8855
|
-
* empty.
|
|
8856
|
-
*/
|
|
8857
|
-
header?: JWEHeaderParameters;
|
|
8858
|
-
/** Base64url-encoded initialization vector. Omit when empty. */
|
|
8859
|
-
iv?: string;
|
|
8860
|
-
/** Base64url-encoded UTF-8 JWE Protected Header. Integrity protected; omit when empty. */
|
|
8861
|
-
protected?: string;
|
|
8862
|
-
/** Base64url-encoded authentication tag. Omit when empty. */
|
|
8863
|
-
tag?: string;
|
|
8864
|
-
/** JWE Shared Unprotected Header as a JSON object. Not integrity protected; omit when empty. */
|
|
8865
|
-
unprotected?: JWEHeaderParameters;
|
|
8866
|
-
}
|
|
8867
|
-
/** General JWE JSON Serialization token. */
|
|
8868
|
-
interface GeneralJWE extends Omit<FlattenedJWE, 'encrypted_key' | 'header'> {
|
|
8869
|
-
recipients: Pick<FlattenedJWE, 'encrypted_key' | 'header'>[];
|
|
8870
|
-
}
|
|
8871
|
-
/** Recognized JWE Header Parameters; additional members may also be present. */
|
|
8872
|
-
interface JWEHeaderParameters extends JoseHeaderParameters {
|
|
8873
|
-
/** JWE "alg" (Algorithm) Header Parameter */
|
|
8874
|
-
alg?: JWEKeyManagementAlgorithm;
|
|
8875
|
-
/** JWE "enc" (Encryption Algorithm) Header Parameter */
|
|
8876
|
-
enc?: JWEContentEncryptionAlgorithm;
|
|
8877
|
-
/** Extension parameters that must be recognized. */
|
|
8878
|
-
crit?: string[];
|
|
8879
|
-
/**
|
|
8880
|
-
* JWE compression algorithm. Only `"DEF"` (DEFLATE) is supported, requiring the runtime's
|
|
8881
|
-
* `CompressionStream` / `DecompressionStream` APIs.
|
|
8882
|
-
*/
|
|
8883
|
-
zip?: 'DEF' | (string & {});
|
|
8884
|
-
/** Any other JWE Header member. */
|
|
8885
|
-
[propName: string]: unknown;
|
|
8886
|
-
}
|
|
8887
|
-
/** Shared "crit" option for signing, verification, encryption, and decryption. */
|
|
8888
|
-
interface CritOption {
|
|
8889
|
-
/**
|
|
8890
|
-
* Recognized "crit" (Critical) Header Parameter names. Set each value to `true` to require
|
|
8891
|
-
* integrity protection, or `false` when protection is optional. The JWS `b64` extension is always
|
|
8892
|
-
* recognized and processed.
|
|
8893
|
-
*
|
|
8894
|
-
* > Warning: Other extensions are only checked for syntax and optional integrity protection. Their presence
|
|
8895
|
-
* > is not required by this option. You must check their presence and process them according to the
|
|
8896
|
-
* > profile's validation steps after the operation succeeds.
|
|
8897
|
-
*/
|
|
8898
|
-
crit?: {
|
|
8899
|
-
[propName: string]: boolean;
|
|
8900
|
-
};
|
|
8901
|
-
}
|
|
8902
|
-
/** JWE Decryption options. */
|
|
8903
|
-
interface DecryptOptions extends CritOption {
|
|
8904
|
-
/**
|
|
8905
|
-
* Accepted JWE "alg" (Algorithm) Header Parameter values. Defaults to all algorithms applicable
|
|
8906
|
-
* to the key or secret except PBES2, which must be explicitly allowed.
|
|
8907
|
-
*/
|
|
8908
|
-
keyManagementAlgorithms?: JWEKeyManagementAlgorithm[];
|
|
8909
|
-
/**
|
|
8910
|
-
* Accepted JWE "enc" (Encryption Algorithm) Header Parameter values. Defaults to all algorithms
|
|
8911
|
-
* applicable to the key or secret.
|
|
8912
|
-
*/
|
|
8913
|
-
contentEncryptionAlgorithms?: JWEContentEncryptionAlgorithm[];
|
|
8914
|
-
/**
|
|
8915
|
-
* Maximum "p2c" (PBES2 Count) Header Parameter value, limiting PBKDF2 iterations and their
|
|
8916
|
-
* computational expense. Defaults to 10000; must be a positive safe integer or `Infinity` to
|
|
8917
|
-
* disable the limit.
|
|
8918
|
-
*/
|
|
8919
|
-
maxPBES2Count?: number;
|
|
8920
|
-
/**
|
|
8921
|
-
* Maximum decompressed plaintext size in bytes. Defaults to 250000; `0` rejects compressed JWEs,
|
|
8922
|
-
* and `Infinity` disables the limit. Other values must be positive safe integers.
|
|
8923
|
-
*/
|
|
8924
|
-
maxDecompressedLength?: number;
|
|
8925
|
-
}
|
|
8926
|
-
/** JWE Encryption options. */
|
|
8927
|
-
interface EncryptOptions extends CritOption {}
|
|
8928
|
-
/** JWT Claims Set verification options. */
|
|
8929
|
-
interface JWTClaimVerificationOptions {
|
|
8930
|
-
/** Expected JWT "aud" (Audience) Claim value(s). Requires the claim to be present. */
|
|
8931
|
-
audience?: string | string[];
|
|
8932
|
-
/**
|
|
8933
|
-
* Clock skew tolerance in seconds or a duration string (e.g. "5 seconds"). Applies to the "nbf"
|
|
8934
|
-
* (Not Before) and "exp" (Expiration Time) claims, and to "iat" (Issued At) when
|
|
8935
|
-
* {@link maxTokenAge} is set.
|
|
8936
|
-
*/
|
|
8937
|
-
clockTolerance?: string | number;
|
|
8938
|
-
/** Expected JWT "iss" (Issuer) Claim value(s). Requires the claim to be present. */
|
|
8939
|
-
issuer?: string | string[];
|
|
8940
|
-
/**
|
|
8941
|
-
* Maximum time since the JWT "iat" (Issued At) Claim, in seconds or a duration string (e.g. "2
|
|
8942
|
-
* hours"). Requires the claim to be present.
|
|
8943
|
-
*/
|
|
8944
|
-
maxTokenAge?: string | number;
|
|
8945
|
-
/** Expected JWT "sub" (Subject) Claim value. Requires the claim to be present. */
|
|
8946
|
-
subject?: string;
|
|
8947
|
-
/** Expected JWT "typ" (Type) Header Parameter value. Requires the parameter to be present. */
|
|
8948
|
-
typ?: string;
|
|
8949
|
-
/** Date for NumericDate comparisons. Defaults to `new Date()`. */
|
|
8950
|
-
currentDate?: Date;
|
|
8951
|
-
/**
|
|
8952
|
-
* Additional claim names required in the JWT Claims Set. The {@link issuer}, {@link audience},
|
|
8953
|
-
* {@link subject}, and {@link maxTokenAge} options independently require "iss", "aud", "sub", and
|
|
8954
|
-
* "iat", respectively.
|
|
8955
|
-
*/
|
|
8956
|
-
requiredClaims?: string[];
|
|
8957
|
-
}
|
|
8958
|
-
/** JWS Verification options. */
|
|
8959
|
-
interface VerifyOptions extends CritOption {
|
|
8960
|
-
/**
|
|
8961
|
-
* Accepted JWS "alg" (Algorithm) Header Parameter values. Defaults to all algorithms applicable
|
|
8962
|
-
* to the key or secret. Unsecured JWTs (`alg: "none"`) are never accepted.
|
|
8963
|
-
*/
|
|
8964
|
-
algorithms?: JWSAlgorithm[];
|
|
8965
|
-
}
|
|
8966
|
-
/** JWS Signing options. */
|
|
8967
|
-
interface SignOptions extends CritOption {}
|
|
8968
|
-
/** Recognized JWT Claims Set members; additional members may also be present. */
|
|
8969
|
-
interface JWTPayload {
|
|
8970
|
-
/** JWT Issuer */
|
|
8971
|
-
iss?: string;
|
|
8972
|
-
/** JWT Subject */
|
|
8973
|
-
sub?: string;
|
|
8974
|
-
/** JWT Audience */
|
|
8975
|
-
aud?: string | string[];
|
|
8976
|
-
/** JWT ID */
|
|
8977
|
-
jti?: string;
|
|
8978
|
-
/** Not valid before this Unix timestamp in seconds. */
|
|
8979
|
-
nbf?: number;
|
|
8980
|
-
/** Expiration Unix timestamp in seconds. */
|
|
8981
|
-
exp?: number;
|
|
8982
|
-
/** Issued-at Unix timestamp in seconds. */
|
|
8983
|
-
iat?: number;
|
|
8984
|
-
/** Any other JWT Claim Set member. */
|
|
8985
|
-
[propName: string]: unknown;
|
|
8986
|
-
}
|
|
8987
|
-
/** Flattened JWE JSON Serialization decryption result. */
|
|
8988
|
-
interface FlattenedDecryptResult {
|
|
8989
|
-
/** JWE Additional Authenticated Data, integrity protected but not encrypted. */
|
|
8990
|
-
additionalAuthenticatedData?: Uint8Array;
|
|
8991
|
-
/** Plaintext. */
|
|
8992
|
-
plaintext: Uint8Array;
|
|
8993
|
-
/** JWE Protected Header. */
|
|
8994
|
-
protectedHeader?: JWEHeaderParameters;
|
|
8995
|
-
/** JWE Shared Unprotected Header. Not integrity protected. */
|
|
8996
|
-
sharedUnprotectedHeader?: JWEHeaderParameters;
|
|
8997
|
-
/** JWE Per-Recipient Unprotected Header. Not integrity protected. */
|
|
8998
|
-
unprotectedHeader?: JWEHeaderParameters;
|
|
8999
|
-
}
|
|
9000
|
-
/** General JWE JSON Serialization decryption result. */
|
|
9001
|
-
interface GeneralDecryptResult extends FlattenedDecryptResult {}
|
|
9002
|
-
/** Compact JWE decryption result. */
|
|
9003
|
-
interface CompactDecryptResult {
|
|
9004
|
-
/** Plaintext. */
|
|
9005
|
-
plaintext: Uint8Array;
|
|
9006
|
-
/** JWE Protected Header. */
|
|
9007
|
-
protectedHeader: CompactJWEHeaderParameters;
|
|
9008
|
-
}
|
|
9009
|
-
/** Flattened JWS JSON Serialization verification result. */
|
|
9010
|
-
interface FlattenedVerifyResult {
|
|
9011
|
-
/** JWS Payload. */
|
|
9012
|
-
payload: Uint8Array;
|
|
9013
|
-
/** JWS Protected Header. */
|
|
9014
|
-
protectedHeader?: JWSHeaderParameters;
|
|
9015
|
-
/** JWS Unprotected Header. Not integrity protected. */
|
|
9016
|
-
unprotectedHeader?: JWSHeaderParameters;
|
|
9017
|
-
}
|
|
9018
|
-
/** General JWS JSON Serialization verification result. */
|
|
9019
|
-
interface GeneralVerifyResult extends FlattenedVerifyResult {}
|
|
9020
|
-
/** Compact JWS verification result. */
|
|
9021
|
-
interface CompactVerifyResult {
|
|
9022
|
-
/** JWS Payload. */
|
|
9023
|
-
payload: Uint8Array;
|
|
9024
|
-
/** JWS Protected Header. */
|
|
9025
|
-
protectedHeader: CompactJWSHeaderParameters;
|
|
9026
|
-
}
|
|
9027
|
-
/** Signed JSON Web Token (JWT) verification result. */
|
|
9028
|
-
interface JWTVerifyResult<PayloadType = JWTPayload> {
|
|
9029
|
-
/** JWT Claims Set. */
|
|
9030
|
-
payload: PayloadType & JWTPayload & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never);
|
|
9031
|
-
/** JWS Protected Header. */
|
|
9032
|
-
protectedHeader: JWTHeaderParameters;
|
|
9033
|
-
}
|
|
9034
|
-
/** Encrypted JSON Web Token (JWT) decryption result. */
|
|
9035
|
-
interface JWTDecryptResult<PayloadType = JWTPayload> {
|
|
9036
|
-
/** JWT Claims Set. */
|
|
9037
|
-
payload: PayloadType & JWTPayload & ([PayloadType] extends [object] ? unknown : unknown extends PayloadType ? unknown : never);
|
|
9038
|
-
/** JWE Protected Header. */
|
|
9039
|
-
protectedHeader: CompactJWEHeaderParameters;
|
|
9040
|
-
}
|
|
9041
|
-
/** Key resolver result metadata. */
|
|
9042
|
-
interface ResolvedKey<KeyType extends CryptoKey | Uint8Array = CryptoKey | Uint8Array> {
|
|
9043
|
-
/** The resolved key, present only when a key resolver is used. */
|
|
9044
|
-
key: KeyType;
|
|
9045
|
-
}
|
|
9046
|
-
/** Recognized Compact JWS Header Parameters; additional members may also be present. */
|
|
9047
|
-
interface CompactJWSHeaderParameters extends JWSHeaderParameters {
|
|
9048
|
-
alg: JWSAlgorithm;
|
|
9049
|
-
}
|
|
9050
|
-
/** Recognized signed JWT Header Parameters; additional members may also be present. */
|
|
9051
|
-
interface JWTHeaderParameters extends CompactJWSHeaderParameters {
|
|
9052
|
-
b64?: boolean;
|
|
9053
|
-
}
|
|
9054
|
-
/** Recognized Compact JWE Header Parameters; additional members may also be present. */
|
|
9055
|
-
interface CompactJWEHeaderParameters extends JWEHeaderParameters {
|
|
9056
|
-
alg: JWEKeyManagementAlgorithm;
|
|
9057
|
-
enc: JWEContentEncryptionAlgorithm;
|
|
9058
|
-
}
|
|
9059
9797
|
/** JSON Web Key Set. */
|
|
9060
9798
|
interface JSONWebKeySet {
|
|
9061
9799
|
keys: JWK[];
|
|
9062
9800
|
}
|
|
9063
|
-
/** Node.js {@link !KeyObject} representation accepted as key input. */
|
|
9064
|
-
interface KeyObject {
|
|
9065
|
-
type: string;
|
|
9066
|
-
}
|
|
9067
9801
|
/** The runtime's Web Crypto {@link !CryptoKey} representation accepted as key input. */
|
|
9068
9802
|
type CryptoKey = typeof globalThis extends {
|
|
9069
9803
|
crypto: {
|
|
@@ -9083,56 +9817,6 @@ interface CryptoKeyStructuralFallback {
|
|
|
9083
9817
|
readonly type: string;
|
|
9084
9818
|
readonly usages: string[];
|
|
9085
9819
|
}
|
|
9086
|
-
/** Shared fluent API for JWT-producing classes. */
|
|
9087
|
-
interface ProduceJWT {
|
|
9088
|
-
/**
|
|
9089
|
-
* Set the "iss" (Issuer) Claim.
|
|
9090
|
-
*
|
|
9091
|
-
* @param issuer "Issuer" Claim value to set on the JWT Claims Set.
|
|
9092
|
-
*/
|
|
9093
|
-
setIssuer(issuer: string): this;
|
|
9094
|
-
/**
|
|
9095
|
-
* Set the "sub" (Subject) Claim.
|
|
9096
|
-
*
|
|
9097
|
-
* @param subject "sub" (Subject) Claim value to set on the JWT Claims Set.
|
|
9098
|
-
*/
|
|
9099
|
-
setSubject(subject: string): this;
|
|
9100
|
-
/**
|
|
9101
|
-
* Set the "aud" (Audience) Claim.
|
|
9102
|
-
*
|
|
9103
|
-
* @param audience "aud" (Audience) Claim value to set on the JWT Claims Set.
|
|
9104
|
-
*/
|
|
9105
|
-
setAudience(audience: string | string[]): this;
|
|
9106
|
-
/**
|
|
9107
|
-
* Set the "jti" (JWT ID) Claim.
|
|
9108
|
-
*
|
|
9109
|
-
* @param jwtId "jti" (JWT ID) Claim value to set on the JWT Claims Set.
|
|
9110
|
-
*/
|
|
9111
|
-
setJti(jwtId: string): this;
|
|
9112
|
-
/**
|
|
9113
|
-
* Set the "nbf" (Not Before) Claim. Numbers are Unix timestamps in seconds; Dates are converted
|
|
9114
|
-
* to seconds. Strings are relative to now, using seconds, minutes, hours, days, weeks, or years
|
|
9115
|
-
* (365.25 days; no months). Prefix `-` or suffix `ago` subtracts the duration.
|
|
9116
|
-
*
|
|
9117
|
-
* @param input "nbf" (Not Before) Claim value as a timestamp, Date, or relative duration.
|
|
9118
|
-
*/
|
|
9119
|
-
setNotBefore(input: number | string | Date): this;
|
|
9120
|
-
/**
|
|
9121
|
-
* Set the "exp" (Expiration Time) Claim. Accepts a Unix timestamp in seconds, a Date, or a
|
|
9122
|
-
* duration relative to now using the same formats as {@link setNotBefore}.
|
|
9123
|
-
*
|
|
9124
|
-
* @param input "exp" (Expiration Time) Claim value as a timestamp, Date, or relative duration.
|
|
9125
|
-
*/
|
|
9126
|
-
setExpirationTime(input: number | string | Date): this;
|
|
9127
|
-
/**
|
|
9128
|
-
* Set the "iat" (Issued At) Claim. Defaults to the current Unix timestamp in seconds. Accepts a
|
|
9129
|
-
* Unix timestamp in seconds, a Date, or a duration relative to now using the same formats as
|
|
9130
|
-
* {@link setNotBefore}.
|
|
9131
|
-
*
|
|
9132
|
-
* @param input "iat" (Issued At) Claim value as a timestamp, Date, or relative duration.
|
|
9133
|
-
*/
|
|
9134
|
-
setIssuedAt(input?: number | string | Date): this;
|
|
9135
|
-
}
|
|
9136
9820
|
//#endregion
|
|
9137
9821
|
//#region node_modules/jose/dist/types/jwks/remote.d.ts
|
|
9138
9822
|
/**
|
|
@@ -9386,6 +10070,51 @@ declare class UserManagement {
|
|
|
9386
10070
|
/** Authenticate with Radar email challenge. */
|
|
9387
10071
|
authenticateWithRadarEmailChallenge(payload: AuthenticateWithRadarEmailChallengeOptions): Promise<AuthenticationResponse>;
|
|
9388
10072
|
authenticateWithSessionCookie({ sessionData, cookiePassword }: AuthenticateWithSessionCookieOptions): Promise<AuthenticateWithSessionCookieSuccessResponse | AuthenticateWithSessionCookieFailedResponse>;
|
|
10073
|
+
/**
|
|
10074
|
+
* Verify an access token and return its claims.
|
|
10075
|
+
*
|
|
10076
|
+
* Checks the token's signature against the environment's JWKS and its
|
|
10077
|
+
* expiry, plus the issuer when one was configured on the client, and that
|
|
10078
|
+
* the payload carries the claims of a WorkOS user access token. Tokens the
|
|
10079
|
+
* environment signed for another purpose, such as agent or widget session
|
|
10080
|
+
* tokens, are rejected. Resolves to `null` when the token fails any of
|
|
10081
|
+
* those checks, is not a JWT, or was signed by a key the JWKS does not
|
|
10082
|
+
* have. Errors that are not JWT validation failures, such as a network
|
|
10083
|
+
* error while fetching the JWKS, propagate.
|
|
10084
|
+
*
|
|
10085
|
+
* @param accessToken - The access token to verify, for example from an `Authorization: Bearer` header.
|
|
10086
|
+
* @returns {Promise<AccessTokenClaims | null>} The token's claims, or `null` when the token is invalid.
|
|
10087
|
+
* @throws {Error} When no client ID was provided when initializing WorkOS.
|
|
10088
|
+
*/
|
|
10089
|
+
verifyAccessToken(accessToken: string): Promise<AccessTokenClaims | null>;
|
|
10090
|
+
/**
|
|
10091
|
+
* Several token families are signed with an environment's key pair, so a
|
|
10092
|
+
* valid signature alone does not prove a token is a user access token. This
|
|
10093
|
+
* mirrors how the API identifies one: `sid` and `auth_time` are always
|
|
10094
|
+
* minted together on user access tokens, agent tokens classify themselves
|
|
10095
|
+
* with a `sub_profile` other than `user`, and widget session tokens carry
|
|
10096
|
+
* `sub_type`. The registered claims `AccessTokenClaims` guarantees are
|
|
10097
|
+
* checked too, so a token is rejected rather than returned with missing
|
|
10098
|
+
* values.
|
|
10099
|
+
*
|
|
10100
|
+
* Consent tokens for interactive Connect grants also mint `sid` and
|
|
10101
|
+
* `auth_time`. The API excludes those by resolving `sid` to a live
|
|
10102
|
+
* session, which cannot be done offline here.
|
|
10103
|
+
*/
|
|
10104
|
+
private static hasRequiredAccessTokenClaims;
|
|
10105
|
+
/**
|
|
10106
|
+
* Verify a JWT's signature, expiry and, when configured, issuer against the
|
|
10107
|
+
* environment's JWKS. Resolves to the payload, or `null` when jose rejects
|
|
10108
|
+
* the token; errors that are not JWT validation failures propagate.
|
|
10109
|
+
*/
|
|
10110
|
+
private verifyJwt;
|
|
10111
|
+
/**
|
|
10112
|
+
* Whether a jose error means the presented token is invalid, as opposed to
|
|
10113
|
+
* a failure to verify it at all. Network errors, JWKS timeouts and crypto
|
|
10114
|
+
* failures propagate so they surface as errors rather than as rejected
|
|
10115
|
+
* tokens.
|
|
10116
|
+
*/
|
|
10117
|
+
private static isJwtValidationError;
|
|
9389
10118
|
private isValidJwt;
|
|
9390
10119
|
private prepareAuthenticationResponse;
|
|
9391
10120
|
private sealSessionDataFromAuthenticationResponse;
|
|
@@ -9850,6 +10579,7 @@ declare class FeatureFlagsRuntimeClient extends EventEmitter<RuntimeClientEvents
|
|
|
9850
10579
|
private closed;
|
|
9851
10580
|
private initialized;
|
|
9852
10581
|
private consecutiveErrors;
|
|
10582
|
+
private warnedUnobservedError;
|
|
9853
10583
|
private pollTimer;
|
|
9854
10584
|
private pollAbortController;
|
|
9855
10585
|
private readyResolve;
|
|
@@ -10104,11 +10834,14 @@ declare class Groups {
|
|
|
10104
10834
|
//#region src/widgets/interfaces/widget-session-token-scopes.interface.d.ts
|
|
10105
10835
|
declare const WidgetSessionTokenScopes: {
|
|
10106
10836
|
readonly WidgetsUsersTableManage: "widgets:users-table:manage";
|
|
10837
|
+
readonly WidgetsUserApiKeysManageSelf: "widgets:user-api-keys:manage-self";
|
|
10838
|
+
readonly WidgetsUserApiKeysManageAll: "widgets:user-api-keys:manage-all";
|
|
10107
10839
|
readonly WidgetsDomainVerificationManage: "widgets:domain-verification:manage";
|
|
10108
10840
|
readonly WidgetsSSOManage: "widgets:sso:manage";
|
|
10109
10841
|
readonly WidgetsApiKeysManage: "widgets:api-keys:manage";
|
|
10110
10842
|
readonly WidgetsDsyncManage: "widgets:dsync:manage";
|
|
10111
10843
|
readonly WidgetsAuditLogStreamingManage: "widgets:audit-log-streaming:manage";
|
|
10844
|
+
readonly WidgetsPipesManage: "widgets:pipes:manage";
|
|
10112
10845
|
};
|
|
10113
10846
|
type WidgetSessionTokenScopes = (typeof WidgetSessionTokenScopes)[keyof typeof WidgetSessionTokenScopes];
|
|
10114
10847
|
//#endregion
|
|
@@ -10937,31 +11670,10 @@ interface CreateObjectOptions {
|
|
|
10937
11670
|
context: KeyContext;
|
|
10938
11671
|
}
|
|
10939
11672
|
//#endregion
|
|
10940
|
-
//#region src/vault/interfaces/object.interface.d.ts
|
|
10941
|
-
interface ObjectUpdateBy {
|
|
10942
|
-
id: string;
|
|
10943
|
-
name: string;
|
|
10944
|
-
}
|
|
10945
|
-
//#endregion
|
|
10946
11673
|
//#region src/vault/interfaces/object/read-object.interface.d.ts
|
|
10947
11674
|
interface ReadObjectOptions {
|
|
10948
11675
|
id: string;
|
|
10949
11676
|
}
|
|
10950
|
-
interface ReadObjectMetadataResponse {
|
|
10951
|
-
context: KeyContext;
|
|
10952
|
-
environment_id: string;
|
|
10953
|
-
id: string;
|
|
10954
|
-
key_id: string;
|
|
10955
|
-
updated_at: string;
|
|
10956
|
-
updated_by: ObjectUpdateBy;
|
|
10957
|
-
version_id: string;
|
|
10958
|
-
}
|
|
10959
|
-
interface ReadObjectResponse {
|
|
10960
|
-
id: string;
|
|
10961
|
-
metadata: ReadObjectMetadataResponse;
|
|
10962
|
-
name: string;
|
|
10963
|
-
value?: string;
|
|
10964
|
-
}
|
|
10965
11677
|
//#endregion
|
|
10966
11678
|
//#region src/vault/interfaces/object/update-object.interface.d.ts
|
|
10967
11679
|
interface UpdateObjectEntity {
|
|
@@ -11363,6 +12075,22 @@ type ListWebhookEndpointsOptions = PaginationOptions;
|
|
|
11363
12075
|
//#endregion
|
|
11364
12076
|
//#region src/webhooks/interfaces/create-webhook-endpoint-events.interface.d.ts
|
|
11365
12077
|
declare const CreateWebhookEndpointEvents: {
|
|
12078
|
+
readonly AgentBlueprintCreated: "agent.blueprint.created";
|
|
12079
|
+
readonly AgentBlueprintDeleted: "agent.blueprint.deleted";
|
|
12080
|
+
readonly AgentBlueprintUpdated: "agent.blueprint.updated";
|
|
12081
|
+
readonly AgentInstanceCreated: "agent.instance.created";
|
|
12082
|
+
readonly AgentInstanceDeleted: "agent.instance.deleted";
|
|
12083
|
+
readonly AgentInstanceSessionCreated: "agent.instance.session.created";
|
|
12084
|
+
readonly AgentInstanceSessionRevoked: "agent.instance.session.revoked";
|
|
12085
|
+
readonly AgentRegistrationCreated: "agent.registration.created";
|
|
12086
|
+
readonly AgentRegistrationClaimAttemptCreated: "agent.registration.claim.attempt.created";
|
|
12087
|
+
readonly AgentRegistrationClaimCompleted: "agent.registration.claim.completed";
|
|
12088
|
+
readonly AgentRegistrationCredentialIssued: "agent.registration.credential.issued";
|
|
12089
|
+
readonly AgentRegistrationDeleted: "agent.registration.deleted";
|
|
12090
|
+
readonly AgentRegistrationRefreshed: "agent.registration.refreshed";
|
|
12091
|
+
readonly AgentRegistrationExpired: "agent.registration.expired";
|
|
12092
|
+
readonly AgentRegistrationOrganizationSwitched: "agent.registration.organization.switched";
|
|
12093
|
+
readonly AgentRegistrationRevoked: "agent.registration.revoked";
|
|
11366
12094
|
readonly AuthenticationEmailVerificationSucceeded: "authentication.email_verification_succeeded";
|
|
11367
12095
|
readonly AuthenticationMagicAuthFailed: "authentication.magic_auth_failed";
|
|
11368
12096
|
readonly AuthenticationMagicAuthSucceeded: "authentication.magic_auth_succeeded";
|
|
@@ -11373,6 +12101,7 @@ declare const CreateWebhookEndpointEvents: {
|
|
|
11373
12101
|
readonly AuthenticationPasswordSucceeded: "authentication.password_succeeded";
|
|
11374
12102
|
readonly AuthenticationPasskeyFailed: "authentication.passkey_failed";
|
|
11375
12103
|
readonly AuthenticationPasskeySucceeded: "authentication.passkey_succeeded";
|
|
12104
|
+
readonly AuthenticationReauthenticationSucceeded: "authentication.reauthentication_succeeded";
|
|
11376
12105
|
readonly AuthenticationSSOFailed: "authentication.sso_failed";
|
|
11377
12106
|
readonly AuthenticationSSOStarted: "authentication.sso_started";
|
|
11378
12107
|
readonly AuthenticationSSOSucceeded: "authentication.sso_succeeded";
|
|
@@ -11380,6 +12109,7 @@ declare const CreateWebhookEndpointEvents: {
|
|
|
11380
12109
|
readonly AuthenticationRadarRiskDetected: "authentication.radar_risk_detected";
|
|
11381
12110
|
readonly ApiKeyCreated: "api_key.created";
|
|
11382
12111
|
readonly ApiKeyRevoked: "api_key.revoked";
|
|
12112
|
+
readonly ApiKeyUpdated: "api_key.updated";
|
|
11383
12113
|
readonly ConnectionActivated: "connection.activated";
|
|
11384
12114
|
readonly ConnectionDeactivated: "connection.deactivated";
|
|
11385
12115
|
readonly ConnectionSAMLCertificateRenewalRequired: "connection.saml_certificate_renewal_required";
|
|
@@ -11435,10 +12165,16 @@ declare const CreateWebhookEndpointEvents: {
|
|
|
11435
12165
|
readonly PermissionCreated: "permission.created";
|
|
11436
12166
|
readonly PermissionDeleted: "permission.deleted";
|
|
11437
12167
|
readonly PermissionUpdated: "permission.updated";
|
|
12168
|
+
readonly PipesAccountConnectionAddFailed: "pipes.account_connection.add_failed";
|
|
12169
|
+
readonly PipesAccountConnectionConnected: "pipes.account_connection.connected";
|
|
12170
|
+
readonly PipesAccountConnectionConnectionFailed: "pipes.account_connection.connection_failed";
|
|
12171
|
+
readonly PipesAccountConnectionDisconnected: "pipes.account_connection.disconnected";
|
|
12172
|
+
readonly PipesAccountConnectionReauthorizationNeeded: "pipes.account_connection.reauthorization_needed";
|
|
11438
12173
|
readonly PipesConnectedAccountConnected: "pipes.connected_account.connected";
|
|
11439
12174
|
readonly PipesConnectedAccountConnectionFailed: "pipes.connected_account.connection_failed";
|
|
11440
12175
|
readonly PipesConnectedAccountDisconnected: "pipes.connected_account.disconnected";
|
|
11441
12176
|
readonly PipesConnectedAccountReauthorizationNeeded: "pipes.connected_account.reauthorization_needed";
|
|
12177
|
+
readonly RadarChallengeCreated: "radar.challenge_created";
|
|
11442
12178
|
readonly SessionCreated: "session.created";
|
|
11443
12179
|
readonly SessionRevoked: "session.revoked";
|
|
11444
12180
|
readonly WaitlistUserApproved: "waitlist_user.approved";
|
|
@@ -11464,6 +12200,22 @@ type UpdateWebhookEndpointStatus = (typeof UpdateWebhookEndpointStatus)[keyof ty
|
|
|
11464
12200
|
//#endregion
|
|
11465
12201
|
//#region src/webhooks/interfaces/update-webhook-endpoint-events.interface.d.ts
|
|
11466
12202
|
declare const UpdateWebhookEndpointEvents: {
|
|
12203
|
+
readonly AgentBlueprintCreated: "agent.blueprint.created";
|
|
12204
|
+
readonly AgentBlueprintDeleted: "agent.blueprint.deleted";
|
|
12205
|
+
readonly AgentBlueprintUpdated: "agent.blueprint.updated";
|
|
12206
|
+
readonly AgentInstanceCreated: "agent.instance.created";
|
|
12207
|
+
readonly AgentInstanceDeleted: "agent.instance.deleted";
|
|
12208
|
+
readonly AgentInstanceSessionCreated: "agent.instance.session.created";
|
|
12209
|
+
readonly AgentInstanceSessionRevoked: "agent.instance.session.revoked";
|
|
12210
|
+
readonly AgentRegistrationCreated: "agent.registration.created";
|
|
12211
|
+
readonly AgentRegistrationClaimAttemptCreated: "agent.registration.claim.attempt.created";
|
|
12212
|
+
readonly AgentRegistrationClaimCompleted: "agent.registration.claim.completed";
|
|
12213
|
+
readonly AgentRegistrationCredentialIssued: "agent.registration.credential.issued";
|
|
12214
|
+
readonly AgentRegistrationDeleted: "agent.registration.deleted";
|
|
12215
|
+
readonly AgentRegistrationRefreshed: "agent.registration.refreshed";
|
|
12216
|
+
readonly AgentRegistrationExpired: "agent.registration.expired";
|
|
12217
|
+
readonly AgentRegistrationOrganizationSwitched: "agent.registration.organization.switched";
|
|
12218
|
+
readonly AgentRegistrationRevoked: "agent.registration.revoked";
|
|
11467
12219
|
readonly AuthenticationEmailVerificationSucceeded: "authentication.email_verification_succeeded";
|
|
11468
12220
|
readonly AuthenticationMagicAuthFailed: "authentication.magic_auth_failed";
|
|
11469
12221
|
readonly AuthenticationMagicAuthSucceeded: "authentication.magic_auth_succeeded";
|
|
@@ -11474,6 +12226,7 @@ declare const UpdateWebhookEndpointEvents: {
|
|
|
11474
12226
|
readonly AuthenticationPasswordSucceeded: "authentication.password_succeeded";
|
|
11475
12227
|
readonly AuthenticationPasskeyFailed: "authentication.passkey_failed";
|
|
11476
12228
|
readonly AuthenticationPasskeySucceeded: "authentication.passkey_succeeded";
|
|
12229
|
+
readonly AuthenticationReauthenticationSucceeded: "authentication.reauthentication_succeeded";
|
|
11477
12230
|
readonly AuthenticationSSOFailed: "authentication.sso_failed";
|
|
11478
12231
|
readonly AuthenticationSSOStarted: "authentication.sso_started";
|
|
11479
12232
|
readonly AuthenticationSSOSucceeded: "authentication.sso_succeeded";
|
|
@@ -11481,6 +12234,7 @@ declare const UpdateWebhookEndpointEvents: {
|
|
|
11481
12234
|
readonly AuthenticationRadarRiskDetected: "authentication.radar_risk_detected";
|
|
11482
12235
|
readonly ApiKeyCreated: "api_key.created";
|
|
11483
12236
|
readonly ApiKeyRevoked: "api_key.revoked";
|
|
12237
|
+
readonly ApiKeyUpdated: "api_key.updated";
|
|
11484
12238
|
readonly ConnectionActivated: "connection.activated";
|
|
11485
12239
|
readonly ConnectionDeactivated: "connection.deactivated";
|
|
11486
12240
|
readonly ConnectionSAMLCertificateRenewalRequired: "connection.saml_certificate_renewal_required";
|
|
@@ -11536,10 +12290,16 @@ declare const UpdateWebhookEndpointEvents: {
|
|
|
11536
12290
|
readonly PermissionCreated: "permission.created";
|
|
11537
12291
|
readonly PermissionDeleted: "permission.deleted";
|
|
11538
12292
|
readonly PermissionUpdated: "permission.updated";
|
|
12293
|
+
readonly PipesAccountConnectionAddFailed: "pipes.account_connection.add_failed";
|
|
12294
|
+
readonly PipesAccountConnectionConnected: "pipes.account_connection.connected";
|
|
12295
|
+
readonly PipesAccountConnectionConnectionFailed: "pipes.account_connection.connection_failed";
|
|
12296
|
+
readonly PipesAccountConnectionDisconnected: "pipes.account_connection.disconnected";
|
|
12297
|
+
readonly PipesAccountConnectionReauthorizationNeeded: "pipes.account_connection.reauthorization_needed";
|
|
11539
12298
|
readonly PipesConnectedAccountConnected: "pipes.connected_account.connected";
|
|
11540
12299
|
readonly PipesConnectedAccountConnectionFailed: "pipes.connected_account.connection_failed";
|
|
11541
12300
|
readonly PipesConnectedAccountDisconnected: "pipes.connected_account.disconnected";
|
|
11542
12301
|
readonly PipesConnectedAccountReauthorizationNeeded: "pipes.connected_account.reauthorization_needed";
|
|
12302
|
+
readonly RadarChallengeCreated: "radar.challenge_created";
|
|
11543
12303
|
readonly SessionCreated: "session.created";
|
|
11544
12304
|
readonly SessionRevoked: "session.revoked";
|
|
11545
12305
|
readonly WaitlistUserApproved: "waitlist_user.approved";
|
|
@@ -11888,8 +12648,8 @@ interface GenerateLink {
|
|
|
11888
12648
|
intent?: GenerateLinkIntent;
|
|
11889
12649
|
/** Options to configure the Admin Portal based on the intent. */
|
|
11890
12650
|
intentOptions?: IntentOptions;
|
|
11891
|
-
/** The email addresses of the IT
|
|
11892
|
-
|
|
12651
|
+
/** The email addresses of the IT contacts to grant access to the Admin Portal for the given organization. Accepts up to 20 emails. */
|
|
12652
|
+
itContactEmails?: string[];
|
|
11893
12653
|
}
|
|
11894
12654
|
interface GenerateLinkResponse {
|
|
11895
12655
|
return_url?: string;
|
|
@@ -11897,7 +12657,7 @@ interface GenerateLinkResponse {
|
|
|
11897
12657
|
organization: string;
|
|
11898
12658
|
intent?: GenerateLinkIntent;
|
|
11899
12659
|
intent_options?: IntentOptionsResponse;
|
|
11900
|
-
|
|
12660
|
+
it_contact_emails?: string[];
|
|
11901
12661
|
}
|
|
11902
12662
|
//#endregion
|
|
11903
12663
|
//#region src/admin-portal/interfaces/portal-link-response.interface.d.ts
|
|
@@ -11914,7 +12674,7 @@ interface PortalLinkResponseWire {
|
|
|
11914
12674
|
* Method names available without API key - single source of truth.
|
|
11915
12675
|
* Add new public methods here to expose them on PublicUserManagement.
|
|
11916
12676
|
*/
|
|
11917
|
-
type PublicUserManagementMethods = 'getAuthorizationUrl' | 'getAuthorizationUrlWithPKCE' | 'authenticateWithCode' | 'authenticateWithCodeAndVerifier' | 'authenticateWithRefreshToken' | 'getLogoutUrl' | 'getJwksUrl';
|
|
12677
|
+
type PublicUserManagementMethods = 'getAuthorizationUrl' | 'getAuthorizationUrlWithPKCE' | 'authenticateWithCode' | 'authenticateWithCodeAndVerifier' | 'authenticateWithRefreshToken' | 'getLogoutUrl' | 'getJwksUrl' | 'verifyAccessToken';
|
|
11918
12678
|
/**
|
|
11919
12679
|
* SSO method names available without API key.
|
|
11920
12680
|
*/
|
|
@@ -11983,5 +12743,5 @@ interface ConfidentialClientOptions extends WorkOSOptions {
|
|
|
11983
12743
|
declare function createWorkOS(options: PublicClientOptions): PublicWorkOS;
|
|
11984
12744
|
declare function createWorkOS(options: ConfidentialClientOptions): WorkOS;
|
|
11985
12745
|
//#endregion
|
|
11986
|
-
export { ReadObjectMetadataResponse as $, GroupDeletedEventResponse as $a, DataIntegrationCustomProvider as $c, SerializedListOrganizationMembershipsOptions as $d, Sms as $f, ListPermissionsOptions as $h, AuthenticationPasskeySucceededEventResponse as $i, RemoveGroupOrganizationMembershipOptions as $l, CreateGroupRoleAssignmentOptionsWithResourceId as $m, ValidateAgentApiKeyOptions as $n, PermissionDeletedEventResponse as $o, SerializedAuthenticatePublicClientBase as $p, ActionPayload as $r, DataKeyPair as $s, RadarListType as $t, UserApiKey as $u, ApiKeyRequiredException as A, DsyncUserCreatedEvent as Aa, DataIntegrationsUpsertApiKeyRequestConnectionOwner as Ac, PasswordResetEventResponse as Ad, SerializedCreatePasswordResetOptions as Af, DirectoryGroupResponse as Ag, ListResourcesForMembershipOptions as Ah, List as Ai, CreateDataIntegrationCredentialOptions as Al, RoleList as Am, CreateM2MApplication as An, OrganizationDomainVerifiedEvent as Ao, SerializedAuthenticateWithPasswordOptions as Ap, AgentInstanceSessionStatus as Ar, UserUpdatedEvent as As, AuditLogSchema as At, ListOrganizationApiKeysOptions as Au, ObjectSummaryResponse as B, EventName as Ba, DataIntegrationsListResponseDataConnectedAccountConnectionRole as Bc, ListWaitlistEntriesOptions as Bd, AuthenticationFactorResponse as Bf, HttpClientResponseInterface as Bg, DeleteAuthorizationResourceByExternalIdOptions as Bh, AuthenticationMagicAuthFailedEvent as Bi, ConnectedAccountResponse as Bl, SerializedGroupRoleAssignmentEntry as Bm, UserConsentOptionChoice as Bn, OrganizationRoleDeletedEvent as Bo, AuthenticateUserWithMagicAuthCredentials as Bp, SerializedAgentBlueprintInvocableBy as Br, VaultDataUpdatedEvent as Bs, VerifyChallengeOptions as Bt, OrganizationDomain as Bu, BadRequestException as C, DsyncGroupDeletedEventResponse as Ca, DeleteOrganizationConnectedAccountOptions as Cc, SerializedResendInvitationOptions as Cd, SerializedCreateWaitlistEntryOptions as Cf, EnvironmentRoleResponse as Cg, RoleAssignmentResourceResponse as Ch, DomainDataState as Ci, CreateDataIntegrationOwnership as Cl, ListOrganizationRolesResponse as Cm, DeleteClientSecretOptions as Cn, OrganizationDomainCreatedEventResponse as Co, AuthenticateWithRefreshTokenPublicClientOptions as Cp, SerializedAgentRegistrationClaimCompletion as Cr, SessionRevokedEvent as Cs, AuditLogTarget as Ct, EvaluationResource as Cu, isAuthenticationErrorData as D, DsyncGroupUserAddedEventResponse as Da, DataIntegrationsUpsertClientCredentialsRequestConnectionOwner as Dc, TerminalRefreshSessionFailureReason as Dd, CreateUserApiKeyRequestOptions as Df, SerializedListDirectoriesOptions as Dg, RoleAssignmentSourceResponse as Dh, PutOptions as Di, DataIntegrationCredentialsInput as Dl, Role as Dm, UpdateApplicationOptions as Dn, OrganizationDomainUpdatedEventResponse as Do, SerializedAuthenticateWithRefreshTokenOptions as Dp, SerializedAgentInstance as Dr, UserCreatedEventResponse as Ds, AuditLogsRetention as Dt, SerializedValidateApiKeyResponse as Du, AuthenticationException as E, DsyncGroupUserAddedEvent as Ea, DataIntegrationsUpsertClientCredentialsRequestResponse as Ec, RetryableRefreshSessionFailureReason as Ed, CreateUserApiKeyOptions as Ef, ListDirectoriesOptions as Eg, RoleAssignmentSource as Eh, UnprocessableEntityError as Ei, CustomProviderDefinitionAuthenticateVia as El, OrganizationRoleResponse as Em, DeleteApplicationOptions as En, OrganizationDomainUpdatedEvent as Eo, AuthenticateWithRefreshTokenOptions as Ep, ListAgentInstancesOptions as Er, UserCreatedEvent as Es, SerializedCreateAuditLogEventOptions as Et, AddFlagTargetOptions as Eu, UpdateWebhookEndpointEvents as F, DsyncUserUpdatedEventResponse as Fa, DataIntegrationsListResponseDataOwnership as Fc, MagicAuthEvent as Fd, PKCEAuthorizationURLResult as Ff, DirectoryType as Fg, AuthorizationCheckOptionsWithResourceExternalId as Fh, ApiKeyCreatedEventResponse as Fi, DataIntegrationsCreateClientCredentialsConnectionRequestConnectionOwner as Fl, GroupRoleAssignmentEntry as Fm, RedirectUriInputResponse as Fn, OrganizationMembershipDeletedResponse as Fo, AuthenticateWithRadarSmsChallengeOptions as Fp, AgentBlueprintInvocableBy as Fr, VaultDataCreatedEventResponse as Fs, AuditLogExportResponse as Ft, SerializedCreateOrganizationApiKeyOptions as Fu, ObjectMetadata as G, FlagDeletedEventResponse as Ga, DataIntegrationsGetUserTokenRequestConnectionOwner as Gc, ListUsersOptions as Gd, FactorResponse as Gf, CryptoProvider as Gg, AuthorizationResource as Gh, AuthenticationMfaSucceededEventResponse as Gi, AuthorizeDataIntegrationOptions as Gl, RemoveGroupRoleAssignmentsOptionsWithResourceExternalId as Gm, AgentCredentialType as Gn, OrganizationUpdatedResponse as Go, SerializedAuthenticateWithEmailVerificationOptions as Gp, AutoPaginatable as Gr, VaultDekReadEventResponse as Gs, RadarListEntryAlreadyPresentResponse as Gt, SerializedCreateOrganizationDomainOptions as Gu, ObjectVersionResponse as H, FlagCreatedEvent as Ha, DataIntegrationsListResponseDataAuthMethods as Hc, WaitlistEntry as Hd, AuthenticationFactorWithSecrets as Hf, RequestOptions as Hg, GetAuthorizationResourceByExternalIdOptions as Hh, AuthenticationMagicAuthSucceededEvent as Hi, ConnectedAccountInputState as Hl, BaseRemoveGroupRoleAssignmentsOptions as Hm, UserObject as Hn, OrganizationRoleUpdatedEvent as Ho, SerializedAuthenticateWithMagicAuthOptions as Hp, SerializedCreateAgentBlueprintOptions as Hr, VaultDekDecryptedEvent as Hs, Challenge as Ht, OrganizationDomainState as Hu, UpdateWebhookEndpointStatus as I, EmailVerificationCreatedEvent as Ia, DataIntegrationsListResponseDataConnectionOwner as Ic, MagicAuthEventResponse as Id, UserManagementAuthorizationURLOptions as If, EventDirectory as Ig, AuthorizationCheckOptionsWithResourceId as Ih, ApiKeyRevokedEvent as Ii, CreateDataIntegrationAuthMethods as Il, GroupRoleAssignmentEntryForOrganization as Im, ListApplicationsOptions as In, OrganizationMembershipUpdated as Io, SerializedAuthenticateWithRadarSmsChallengeOptions as Ip, AgentBlueprintSessionSettings as Ir, VaultDataDeletedEvent as Is, AuditLogExportOptions as It, ApiKey as Iu, ActorResponse as J, FlagUpdatedEvent as Ja, DataIntegrationState as Jc, SerializedListUserApiKeysOptions as Jd, FactorWithSecretsResponse as Jf, CreateOptionsWithParentExternalId as Jh, AuthenticationOAuthSucceededEvent as Ji, DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner as Jl, RemoveGroupRoleAssignmentOptions as Jm, SerializedAgentAccessTokenClaims as Jn, PasswordResetSucceededEvent as Jo, AuthenticateUserWithCodeCredentials as Jp, Actions as Jr, VaultMetadataReadEvent as Js, RadarStandaloneResponseWire as Jt, SerializedVerifyEmailOptions as Ju, ObjectMetadataResponse as K, FlagRuleUpdatedEvent as Ka, DataIntegration as Kc, SerializedListUsersOptions as Kd, FactorType as Kf, AuthorizationResourceResponse as Kh, AuthenticationOAuthFailedEvent as Ki, DataIntegrationsGetDataIntegrationAuthorizeUrlRequest as Kl, RemoveGroupRoleAssignmentsOptionsWithResourceId as Km, AgentCredentialValidation as Kn, PasswordResetCreatedEvent as Ko, AuthenticateWithCodeAndVerifierOptions as Kp, PKCE as Kr, VaultKekCreatedEvent as Ks, RadarListEntryAlreadyPresentResponseWire as Kt, Waitlist as Ku, CreateWebhookEndpointEvents as L, EmailVerificationCreatedEventResponse as La, DataIntegrationsListResponseDataConnectedAccount as Lc, MagicAuthResponse as Ld, AuthenticationRadarRiskDetectedEventData as Lf, EventDirectoryResponse as Lg, AuthorizationCheckResult as Lh, ApiKeyRevokedEventResponse as Li, CreateDataIntegrationApiKeyOptions as Ll, GroupRoleAssignmentEntryWithResourceExternalId as Lm, CompleteOAuth2Options as Ln, OrganizationMembershipUpdatedResponse as Lo, AuthenticateUserWithRadarEmailChallengeCredentials as Lp, CreateAgentBlueprintOptions as Lr, VaultDataDeletedEventResponse as Ls, SerializedAuditLogExportOptions as Lt, SerializedApiKey as Lu, WebhookEndpoint as M, DsyncUserDeletedEvent as Ma, DataIntegrationsListResponseWire as Mc, CreateMagicAuthResponse as Md, SerializedCreateOrganizationMembershipOptions as Mf, DirectoryResponse as Mg, ListResourcesForMembershipOptionsWithParentId as Mh, GetOptions as Mi, DataIntegrationsVendCredentialsRequestResponse as Ml, ListEffectivePermissionsByExternalIdOptions as Mm, CreateOAuthApplication as Mn, OrganizationMembershipCreated as Mo, AuthenticateWithOrganizationSelectionOptions as Mp, SerializedAgentInstanceSession as Mr, VaultByokKeyVerificationCompletedEvent as Ms, AuditLogSchemaResponse as Mt, SerializedCreatedApiKey as Mu, WebhookEndpointResponse as N, DsyncUserDeletedEventResponse as Na, DataIntegrationsListResponseData as Nc, CreateMagicAuthResponseResponse as Nd, CreateMagicAuthOptions as Nf, DirectoryState as Ng, SerializedListResourcesForMembershipOptions as Nh, GenerateLinkIntent as Ni, DataIntegrationsVendCredentialsRequestConnectionOwner as Nl, ListEffectivePermissionsOptions as Nm, CreateOAuthApplicationResponse as Nn, OrganizationMembershipCreatedResponse as No, SerializedAuthenticateWithOrganizationSelectionOptions as Np, SerializedListAgentInstanceSessionsOptions as Nr, VaultByokKeyVerificationCompletedEventResponse as Ns, AuditLogTargetSchema as Nt, CreateOrganizationApiKeyOptions as Nu, GenericServerException as O, DsyncGroupUserRemovedEvent as Oa, DataIntegrationsUpsertApiKeyRequest as Oc, PasswordReset as Od, SerializedCreateUserApiKeyOptions as Of, PaginationOptions as Og, ListMembershipsForResourceByExternalIdOptions as Oh, PostOptions as Oi, DataIntegrationCredentialsInputResponse as Ol, RoleEvent as Om, GetApplicationOptions as On, OrganizationDomainVerificationFailedEvent as Oo, AuthenticateUserWithPasswordCredentials as Op, SerializedListAgentInstancesOptions as Or, UserDeletedEvent as Os, AuditLogsRetentionResponse as Ot, ValidateApiKeyOptions as Ou, WebhookEndpointStatus as P, DsyncUserUpdatedEvent as Pa, DataIntegrationsListResponseDataResponse as Pc, MagicAuth as Pd, SerializedCreateMagicAuthOptions as Pf, DirectoryStateResponse as Pg, AuthorizationCheckOptions as Ph, ApiKeyCreatedEvent as Pi, CreateDataIntegrationClientCredentialOptions as Pl, BaseGroupRoleAssignmentEntry as Pm, RedirectUriInput as Pn, OrganizationMembershipDeleted as Po, AuthenticateUserWithRadarSmsChallengeCredentials as Pp, AgentBlueprint as Pr, VaultDataCreatedEvent as Ps, AuditLogExport as Pt, CreateOrganizationApiKeyRequestOptions as Pu, UpdateObjectOptions as Q, GroupDeletedEvent as Qa, DataIntegrationInstallationConnectionRole as Qc, ListOrganizationMembershipsOptions as Qd, TotpWithSecretsResponse as Qf, UpdateAuthorizationResourceOptions as Qh, AuthenticationPasskeySucceededEvent as Qi, UpdateGroupOptions as Ql, CreateGroupRoleAssignmentOptionsWithResourceExternalId as Qm, ValidateAgentAccessTokenOptions as Qn, PermissionDeletedEvent as Qo, AuthenticateWithSessionOptions as Qp, ActionContext as Qr, DataKey as Qs, RadarListAction as Qt, SerializedUserApiKey as Qu, WorkOS as R, Event as Ra, DataIntegrationsListResponseDataConnectedAccountResponse as Rc, LogoutURLOptions as Rd, AuthenticationRadarRiskDetectedEventResponseData as Rf, HttpClient as Rg, SerializedAuthorizationCheckOptions as Rh, AuthenticationEmailVerificationSucceededEvent as Ri, DataIntegrationsCreateApiKeyConnectionRequestConnectionOwner as Rl, GroupRoleAssignmentEntryWithResourceId as Rm, UserConsentOption as Rn, OrganizationRoleCreatedEvent as Ro, AuthenticateWithRadarEmailChallengeOptions as Rp, ListAgentBlueprintsOptions as Rr, VaultDataReadEvent as Rs, VerifyResponse as Rt, OrganizationDomainVerificationFailed as Ru, ConflictException as S, DsyncGroupDeletedEvent as Sa, DeleteOrganizationDataIntegrationOptions as Sc, ResendInvitationOptions as Sd, CreateWaitlistEntryOptions as Sf, EnvironmentRoleListResponse as Sg, RoleAssignmentResource as Sh, DomainData as Si, CreateDataIntegrationResponse as Sl, DirectoryUserWithGroupsResponse as Sm, ExternalAuthCompleteResponseWire as Sn, OrganizationDomainCreatedEvent as So, ImpersonatorResponse as Sp, SerializedAgentRegistrationClaim as Sr, SessionCreatedEventResponse as Ss, AuditLogActor as St, EvaluationContext as Su, AuthenticationErrorData as T, DsyncGroupUpdatedEventResponse as Ta, DataIntegrationsUpsertClientCredentialsRequest as Tc, RefreshSessionResponse as Td, SerializedCreateUserOptions as Tf, ListDirectoryGroupsOptions as Tg, RoleAssignmentRole as Th, WorkOSOptions as Ti, CustomProviderDefinitionResponse as Tl, OrganizationRoleEventResponse as Tm, ListApplicationClientSecretsOptions as Tn, OrganizationDomainDeletedEventResponse as To, AuthenticateUserWithRefreshTokenCredentials as Tp, AgentInstanceType as Tr, UnknownEvent as Ts, CreateAuditLogEventRequestOptions as Tt, TypedEvaluationContext as Tu, VaultObject as U, FlagCreatedEventResponse as Ua, DataIntegrationsGetUserTokenRequest as Uc, WaitlistEntryResponse as Ud, AuthenticationFactorWithSecretsResponse as Uf, ResponseHeaderValue as Ug, ListAuthorizationResourcesOptions as Uh, AuthenticationMagicAuthSucceededEventResponse as Ui, ConnectedAccountConnectionRole as Ul, RemoveGroupRoleAssignmentsOptions as Um, UserObjectResponse as Un, OrganizationRoleUpdatedEventResponse as Uo, AuthenticateUserWithEmailVerificationCredentials as Up, SerializedUpdateAgentBlueprintOptions as Ur, VaultDekDecryptedEventResponse as Us, ChallengeResponse as Ut, OrganizationDomainVerificationStrategy as Uu, ObjectVersion as V, EventResponse as Va, DataIntegrationsListResponseDataConnectedAccountAuthMethod as Vc, SerializedListWaitlistEntriesOptions as Vd, AuthenticationFactorType as Vf, RequestHeaders as Vg, UpdateAuthorizationResourceByExternalIdOptions as Vh, AuthenticationMagicAuthFailedEventResponse as Vi, ConnectedAccountState as Vl, SerializedReplaceGroupRoleAssignmentsOptions as Vm, UserConsentOptionChoiceResponse as Vn, OrganizationRoleDeletedEventResponse as Vo, AuthenticateWithMagicAuthOptions as Vp, SerializedAgentBlueprintSessionSettings as Vr, VaultDataUpdatedEventResponse as Vs, EnrollFactorOptions as Vt, OrganizationDomainResponse as Vu, VaultObjectResponse as W, FlagDeletedEvent as Wa, DataIntegrationsGetUserTokenRequestResponse as Wc, WaitlistEntryState as Wd, Factor as Wf, ResponseHeaders as Wg, SerializedListAuthorizationResourcesOptions as Wh, AuthenticationMfaSucceededEvent as Wi, ConnectedAccountAuthMethod as Wl, RemoveGroupRoleAssignmentsOptionsForOrganization as Wm, AgentAccessTokenClaims as Wn, OrganizationUpdatedEvent as Wo, AuthenticateWithEmailVerificationOptions as Wp, UpdateAgentBlueprintOptions as Wr, VaultDekReadEvent as Ws, ChallengeFactorOptions as Wt, CreateOrganizationDomainOptions as Wu, CreateDataKeyResponseWire as X, GroupCreatedEvent as Xa, DataIntegrationInstallation as Xc, ListSessionsOptions as Xd, TotpResponse as Xf, SerializedCreateAuthorizationResourceOptions as Xh, AuthenticationPasskeyFailedEvent as Xi, ApiKeyInstallationResponse as Xl, CreateGroupRoleAssignmentOptions as Xm, SerializedValidateAgentCredentialOptions as Xn, PermissionCreatedEvent as Xo, SerializedAuthenticateWithCodeOptions as Xp, ResponsePayload as Xr, VaultNamesListedEvent as Xs, RadarStandaloneResponseControl as Xt, SerializedUserApiKeyWithValue as Xu, CreateDataKeyResponse as Y, FlagUpdatedEventResponse as Ya, DataIntegrationOwnership as Yc, ListUserFeatureFlagsOptions as Yd, Totp as Yf, CreateOptionsWithParentResourceId as Yh, AuthenticationOAuthSucceededEventResponse as Yi, ApiKeyInstallation as Yl, BaseCreateGroupRoleAssignmentOptions as Ym, SerializedAgentCredentialValidation as Yn, PasswordResetSucceededEventResponse as Yo, AuthenticateWithCodeOptions as Yp, AuthenticationActionResponseData as Yr, VaultMetadataReadEventResponse as Ys, RadarStandaloneResponseBlocklistType as Yt, VerifyEmailOptions as Yu, UpdateObjectEntity as Z, GroupCreatedEventResponse as Za, DataIntegrationInstallationResponse as Zc, SerializedListSessionsOptions as Zd, TotpWithSecrets as Zf, SerializedUpdateAuthorizationResourceOptions as Zh, AuthenticationPasskeyFailedEventResponse as Zi, SerializedUpdateGroupOptions as Zl, CreateGroupRoleAssignmentOptionsForOrganization as Zm, ValidAgentCredential as Zn, PermissionCreatedEventResponse as Zo, AuthenticateWithOptionsBase as Zp, UserRegistrationActionResponseData as Zr, VaultNamesListedEventResponse as Zs, RadarStandaloneResponseVerdict as Zt, UserApiKeyWithValue as Zu, SignatureVerificationException as _, DsyncActivatedEventResponse as _a, GetOrganizationDataIntegrationOptions as _c, RevokeSessionOptions as _d, SerializedEnrollUserInMfaFactorOptions as _f, UpdateEnvironmentRoleOptions as _g, ListRoleAssignmentsForResourceOptions as _h, SerializedCreateItContactOptions as _i, CreateUserConnectedAccountOptions as _l, SSOPKCEAuthorizationURLResult as _m, ConnectApplicationOAuthResponse as _n, MagicAuthCreatedEventResponse as _o, CreateUserResponse as _p, AgentRegistrationClaimCompletion as _r, RoleDeletedEvent as _s, GetOrganizationAuditLogsRetentionOptions as _t, FlagPollEntry as _u, PublicWorkOS as a, AuthenticationRadarRiskDetectedEventResponse as aa, UpdateDataIntegration as ac, UpdateOrganizationMembershipOptions as ad, OrganizationMembershipResponse as af, PermissionResponse as ag, RemoveRoleAssignmentOptions as ah, Organization as ai, DataIntegrationVendedCredential as al, ProfileResponse as am, PasswordlessSession as an, GroupMemberRemovedEventResponse as ao, AuthenticateUserWithTotpCredentials as ap, SerializedLinkClaimAttemptToExternalUserOptions as ar, PipesConnectedAccountConnectionFailedEvent as as, DecryptDataKeyResponse as at, DeleteGroupOptions as au, NotFoundException as b, DsyncGroupCreatedEvent as ba, GetAccessTokenOptions as bc, ResetPasswordOptions as bd, EmailVerificationEventResponse as bf, EnvironmentRole as bg, SerializedListRoleAssignmentsOptions as bh, CreateOrganizationRequestOptions as bi, CreateDataIntegrationOptions as bl, DirectoryUserResponse as bm, ConnectApplicationRedirectUriResponse as bn, OrganizationDeletedEvent as bo, UserResponse as bp, SerializedAgentIdentity as br, RoleUpdatedEventResponse as bs, CreateAuditLogSchemaResponse as bt, FeatureFlag as bu, PortalLinkResponseWire as c, AuthenticationSSOSucceededEvent as ca, UpdateDataIntegrationApiKeyOptions as cc, SessionResponse as cd, SerializedListInvitationsOptions as cf, SetOrganizationRolePermissionsOptions as cg, RemoveRoleOptionsWithResourceExternalId as ch, ListOrganizationFeatureFlagsOptions as ci, DataIntegrationCredentialResponse as cl, ListConnectionsOptions as cm, SerializedListEventOptions as cn, InvitationAcceptedEvent as co, AuthenticateWithSessionCookieFailedResponse as cp, MintAgentTokenOptions as cr, PipesConnectedAccountDisconnectedEventResponse as cs, WidgetSessionTokenResponseWire as ct, AddGroupOrganizationMembershipOptions as cu, IntentOptions as d, ConnectionActivatedEventResponse as da, UpdateCustomProviderDefinitionAuthenticateVia as dc, SendRadarSmsChallengeOptions as dd, Invitation as df, CreateOrganizationRoleOptions as dg, AssignRoleOptions as dh, CreateItContactOptions as di, DataIntegrationAuthorizeUrlResponseWire as dl, GetProfileOptions as dm, ApplicationCredentialsListItem as dn, InvitationCreatedEventResponse as do, AuthenticateWithSessionCookieSuccessResponse as dp, RefreshAgentTokenOptions as dr, PipesConnectedAccountResponse as ds, FeatureFlagsRuntimeClient as dt, RuntimeClientLogger as du, AuthenticationPasswordFailedEvent as ea, KeyContext as ec, SerializedUpdateUserPasswordOptions as ed, AuthorizationOrganizationMembership as ef, SerializedUpdatePermissionOptions as eg, SerializedCreateGroupRoleAssignmentOptions as eh, UserData as ei, DataIntegrationCustomProviderResponse as el, SerializedAuthenticateWithOptionsBase as em, RadarStandaloneAssessRequestAction as en, GroupMemberAddedEvent as eo, SmsResponse as ep, ValidateAgentCredentialOptions as er, PermissionUpdatedEvent as es, ReadObjectOptions as et, ListGroupsOptions as eu, IntentOptionsResponse as f, ConnectionDeactivatedEvent as fa, ListUserDataProvidersOptions as fc, SendRadarSmsChallengeResponse as fd, InvitationEvent as ff, SerializedCreateOrganizationRoleOptions as fg, AssignRoleOptionsWithResourceExternalId as fh, DeleteItContactOptions as fi, DataIntegrationAuthMethods as fl, Connection as fm, ApplicationCredentialsListItemResponse as fn, InvitationResentEvent as fo, SessionCookieData as fp, SerializedAgentToken as fr, PipesConnectedAccountState as fs, CookieSession as ft, RuntimeClientOptions as fu, UnauthorizedException as g, DsyncActivatedEvent as ga, GetUserConnectedAccountOptions as gc, SerializedSendInvitationOptions as gd, EnrollAuthFactorOptions as gf, SerializedUpdateEnvironmentRoleOptions as gg, ListRoleAssignmentsForResourceByExternalIdOptions as gh, RevokeItContactOptions as gi, DataIntegrationAccessTokenResponseAccessTokenResponse as gl, SSOAuthorizationURLOptions as gm, ConnectApplicationOAuth as gn, MagicAuthCreatedEvent as go, AuthenticationResponseResponse as gp, AgentRegistrationClaim as gr, RoleCreatedEventResponse as gs, UpdateAuditLogsRetentionRetentionPeriod as gt, FlagCustomTarget as gu, UnprocessableEntityException as h, ConnectionDeletedEventResponse as ha, PipesOwnership as hc, SendInvitationOptions as hd, Identity as hf, SetEnvironmentRolePermissionsOptions as hg, SerializedAssignRoleOptions as hh, ListItContactsOptions as hi, DataIntegrationAccessTokenResponseAccessToken as hl, ConnectionType as hm, ConnectApplicationM2MResponse as hn, InvitationRevokedEventResponse as ho, AuthenticationResponse as hp, AgentRegistration as hr, RoleCreatedEvent as hs, UpdateAuditLogsRetentionResponse as ht, FlagChange as hu, PublicUserManagement as i, AuthenticationRadarRiskDetectedEvent as ia, UpdateDataIntegrationOptions as ic, SerializedUpdateOrganizationMembershipOptions as id, OrganizationMembership as if, Permission as ig, GroupRoleAssignmentResponse as ih, UpdateOrganizationOptions as ii, DataIntegrationCredentialsResponseError as il, Profile as im, SerializedCreatePasswordlessSessionOptions as in, GroupMemberRemovedEvent as io, AuthenticationEventSsoResponse as ip, SerializedClaimAttemptResponse as ir, PipesConnectedAccountConnectedEventResponse as is, DecryptDataKeyOptions as it, GetGroupOptions as iu, Webhooks as j, DsyncUserCreatedEventResponse as ja, DataIntegrationsListResponse as jc, PasswordResetResponse as jd, CreateOrganizationMembershipOptions as jf, Directory as jg, ListResourcesForMembershipOptionsWithParentExternalId as jh, ListResponse as ji, DataIntegrationsVendCredentialsRequest as jl, RoleResponse as jm, CreateM2MApplicationResponse as jn, OrganizationDomainVerifiedEventResponse as jo, AuthenticateUserWithOrganizationSelectionCredentials as jp, ListAgentInstanceSessionsOptions as jr, UserUpdatedEventResponse as js, AuditLogSchemaMetadata as jt, CreatedApiKey as ju, WorkOSErrorData as k, DsyncGroupUserRemovedEventResponse as ka, DataIntegrationsUpsertApiKeyRequestResponse as kc, PasswordResetEvent as kd, CreatePasswordResetOptions as kf, DirectoryGroup as kg, ListMembershipsForResourceOptions as kh, PatchOptions as ki, DataIntegrationCredentialsInputType as kl, RoleEventResponse as km, CreateApplicationOptions as kn, OrganizationDomainVerificationFailedEventResponse as ko, AuthenticateWithPasswordOptions as kp, AgentInstanceSession as kr, UserDeletedEventResponse as ks, AuditLogActorSchema as kt, ValidateApiKeyResponse as ku, GenerateLink as l, AuthenticationSSOSucceededEventResponse as la, UpdateCustomProviderDefinition as lc, SessionStatus as ld, ListGroupsForOrganizationMembershipOptions as lf, SerializedUpdateOrganizationRoleOptions as lg, RemoveRoleOptionsWithResourceId as lh, ItContact as li, DataIntegrationCredentialType as ll, SerializedListConnectionsOptions as lm, NewConnectApplicationSecret as ln, InvitationAcceptedEventResponse as lo, AuthenticateWithSessionCookieFailureReason as lp, MintAutonomousAgentTokenOptions as lr, PipesConnectedAccountReauthorizationNeededEvent as ls, CreateTokenOptions as lt, SerializedAddGroupOrganizationMembershipOptions as lu, SSOIntentOptionsResponse as m, ConnectionDeletedEvent as ma, ListDataIntegrationsOptions as mc, SerializedSendRadarSmsChallengeOptions as md, InvitationResponse as mf, AddEnvironmentRolePermissionOptions as mg, BaseAssignRoleOptions as mh, ItContactIntent as mi, DataIntegrationAccessTokenResponseWire as ml, ConnectionResponse as mm, ConnectApplicationM2M as mn, InvitationRevokedEvent as mo, AuthenticationMethod as mp, AgentIdentity as mr, PipesConnectionFailedResponse as ms, UpdateAuditLogsRetention as mt, ListFeatureFlagsOptions as mu, PublicClientOptions as n, AuthenticationPasswordSucceededEvent as na, UpdateOrganizationDataIntegrationOptions as nc, SerializedUpdateUserOptions as nd, BaseOrganizationMembership as nf, CreatePermissionOptions as ng, ListGroupRoleAssignmentsOptions as nh, UserRegistrationActionPayload as ni, DataIntegrationCredentialsResponse as nl, ProfileAndToken as nm, SendSessionResponse as nn, GroupMemberEventData as no, AuthenticationEventResponse as np, ClaimAttemptResponse as nr, PipesConnectedAccount as ns, CreateObjectEntity as nt, Group as nu, createWorkOS as o, AuthenticationSSOFailedEvent as oa, UpdateDataIntegrationResponse as oc, AuthMethod as od, OrganizationMembershipStatus as of, RemoveOrganizationRolePermissionOptions as og, BaseRemoveRoleOptions as oh, OrganizationResponse as oi, DataIntegrationVendedCredentialResponse as ol, OauthTokens as om, PasswordlessSessionResponse as on, GroupUpdatedEvent as oo, AuthenticateWithTotpOptions as op, AgentToken as or, PipesConnectedAccountConnectionFailedEventResponse as os, CreateDataKeyOptions as ot, CreateGroupOptions as ou, SSOIntentOptions as p, ConnectionDeactivatedEventResponse as pa, ListOrganizationDataProvidersOptions as pc, SendRadarSmsChallengeResponseResponse as pd, InvitationEventResponse as pf, OrganizationRole as pg, AssignRoleOptionsWithResourceId as ph, InviteItContactOptions as pi, DataIntegrationAccessTokenResponse as pl, ConnectionDomain as pm, ConnectApplication as pn, InvitationResentEventResponse as po, UserManagementAccessToken as pp, SerializedMintAgentTokenOptions as pr, PipesConnectionFailed as ps, UpdateOrganizationAuditLogsRetentionOptions as pt, RemoveFlagTargetOptions as pu, Actor as q, FlagRuleUpdatedEventResponse as qa, DataIntegrationResponse as qc, ListUserApiKeysOptions as qd, FactorWithSecrets as qf, CreateAuthorizationResourceOptions as qh, AuthenticationOAuthFailedEventResponse as qi, DataIntegrationsGetDataIntegrationAuthorizeUrlRequestResponse as ql, SerializedRemoveGroupRoleAssignmentsOptions as qm, InvalidAgentCredential as qn, PasswordResetCreatedEventResponse as qo, SerializedAuthenticateWithCodeAndVerifierOptions as qp, PKCEPair as qr, VaultKekCreatedEventResponse as qs, RadarStandaloneResponse as qt, WaitlistResponse as qu, PublicSSO as r, AuthenticationPasswordSucceededEventResponse as ra, UpdateOrganizationConnectedAccountOptions as rc, UpdateUserOptions as rd, BaseOrganizationMembershipResponse as rf, SerializedCreatePermissionOptions as rg, GroupRoleAssignment as rh, SerializedUpdateOrganizationOptions as ri, DataIntegrationCredentialsResponseWire as rl, ProfileAndTokenResponse as rm, CreatePasswordlessSessionOptions as rn, GroupMemberEventResponseData as ro, AuthenticationEventSso as rp, LinkClaimAttemptToExternalUserOptions as rr, PipesConnectedAccountConnectedEvent as rs, CreateObjectOptions as rt, GroupResponse as ru, PortalLinkResponse as s, AuthenticationSSOFailedEventResponse as sa, UpdateDataIntegrationClientCredentialsOptions as sc, Session as sd, ListInvitationsOptions as sf, AddOrganizationRolePermissionOptions as sg, RemoveRoleOptions as sh, ListOrganizationsOptions as si, DataIntegrationCredential as sl, OauthTokensResponse as sm, ListEventOptions as sn, GroupUpdatedEventResponse as so, SerializedAuthenticateWithTotpOptions as sp, MintAgentDelegatedAgentTokenOptions as sr, PipesConnectedAccountDisconnectedEvent as ss, WidgetSessionTokenResponse as st, SerializedCreateGroupOptions as su, ConfidentialClientOptions as t, AuthenticationPasswordFailedEventResponse as ta, UpdateUserConnectedAccountOptions as tc, UpdateUserPasswordOptions as td, AuthorizationOrganizationMembershipResponse as tf, UpdatePermissionOptions as tg, GetGroupRoleAssignmentOptions as th, UserDataPayload as ti, DataIntegrationCustomProviderAuthenticateVia as tl, WithResolvedClientId as tm, RadarStandaloneAssessRequestAuthMethod as tn, GroupMemberAddedEventResponse as to, AuthenticationEvent as tp, ClaimAttemptOrganization as tr, PermissionUpdatedEventResponse as ts, ReadObjectResponse as tt, ListGroupOrganizationMembershipsOptions as tu, GenerateLinkResponse as u, ConnectionActivatedEvent as ua, UpdateCustomProviderDefinitionResponse as uc, SendVerificationEmailOptions as ud, ListAuthFactorsOptions as uf, UpdateOrganizationRoleOptions as ug, SerializedRemoveRoleOptions as uh, ItContactResponse as ui, DataIntegrationAuthorizeUrlResponse as ul, GetProfileAndTokenOptions as um, NewConnectApplicationSecretResponse as un, InvitationCreatedEvent as uo, AuthenticateWithSessionCookieOptions as up, MintUserDelegatedAgentTokenOptions as ur, PipesConnectedAccountReauthorizationNeededEventResponse as us, WidgetSessionTokenScopes as ut, RuntimeClientStats as uu, RateLimitExceededException as v, DsyncDeletedEvent as va, GetOrganizationConnectedAccountOptions as vc, SerializedRevokeSessionOptions as vd, EmailVerification as vf, CreateEnvironmentRoleOptions as vg, SerializedListRoleAssignmentsForResourceOptions as vh, SerializedInviteItContactOptions as vi, CreateOrganizationConnectedAccountOptions as vl, DefaultCustomAttributes as vm, ConnectApplicationResponse as vn, OrganizationCreatedEvent as vo, CreateUserResponseResponse as vp, AgentRegistrationKind as vr, RoleDeletedEventResponse as vs, CreateAuditLogSchemaOptions as vt, FlagPollResponse as vu, AuthenticationErrorCode as w, DsyncGroupUpdatedEvent as wa, DeleteDataIntegrationOptions as wc, RefreshSessionFailureReason as wd, CreateUserOptions as wf, ListDirectoryUsersOptions as wg, RoleAssignmentResponse as wh, WorkOSResponseError as wi, CustomProviderDefinition as wl, OrganizationRoleEvent as wm, CreateApplicationClientSecretOptions as wn, OrganizationDomainDeletedEvent as wo, SerializedAuthenticateWithRefreshTokenPublicClientOptions as wp, AgentInstance as wr, SessionRevokedEventResponse as ws, CreateAuditLogEventOptions as wt, LegacyEvaluationContext as wu, NoApiKeyProvidedException as x, DsyncGroupCreatedEventResponse as xa, DeleteUserConnectedAccountOptions as xc, SerializedResetPasswordOptions as xd, EmailVerificationResponse as xf, EnvironmentRoleList as xg, RoleAssignment as xh, SerializedCreateOrganizationOptions as xi, CreateDataIntegration as xl, DirectoryUserWithGroups as xm, ExternalAuthCompleteResponse as xn, OrganizationDeletedResponse as xo, Impersonator as xp, SerializedAgentRegistration as xr, SessionCreatedEvent as xs, SerializedCreateAuditLogSchemaOptions as xt, FeatureFlagResponse as xu, OauthException as y, DsyncDeletedEventResponse as ya, GetDataIntegrationOptions as yc, serializeRevokeSessionOptions as yd, EmailVerificationEvent as yf, SerializedCreateEnvironmentRoleOptions as yg, ListRoleAssignmentsOptions as yh, CreateOrganizationOptions as yi, OrganizationConnectedAccountState as yl, DirectoryUser as ym, ConnectApplicationRedirectUri as yn, OrganizationCreatedResponse as yo, User as yp, AgentRegistrationStatus as yr, RoleUpdatedEvent as ys, CreateAuditLogSchemaRequestOptions as yt, FlagTarget as yu, ObjectSummary as z, EventBase as za, DataIntegrationsListResponseDataConnectedAccountState as zc, Locale as zd, AuthenticationFactor as zf, HttpClientInterface as zg, DeleteAuthorizationResourceOptions as zh, AuthenticationEmailVerificationSucceededEventResponse as zi, ConnectedAccount as zl, ReplaceGroupRoleAssignmentsOptions as zm, UserConsentOptionResponse as zn, OrganizationRoleCreatedEventResponse as zo, SerializedAuthenticateWithRadarEmailChallengeOptions as zp, SerializedAgentBlueprint as zr, VaultDataReadEventResponse as zs, VerifyResponseResponse as zt, OrganizationDomainVerificationFailedResponse as zu };
|
|
11987
|
-
//# sourceMappingURL=factory-
|
|
12746
|
+
export { ReadObjectOptions as $, AuthorizationResourceResponse as $_, DsyncGroupUserRemovedEvent as $a, VaultMetadataReadEventResponse as $c, SerializedValidateApiKeyResponse as $d, SerializedResetPasswordOptions as $f, RemoveGroupRoleAssignmentsOptionsWithResourceId as $g, SamlCertificateRenewalRequired as $h, AuthenticationMagicAuthFailedEvent as $i, DataIntegrationsListResponseDataConnectedAccountAuthMethod as $l, AuthenticateUserWithRadarSmsChallengeCredentials as $m, ValidateAgentCredentialOptions as $n, OrganizationDomainCreatedEvent as $o, EmailVerificationResponse as $p, UnprocessableEntityError as $r, PipesConnectedAccountState as $s, RadarStandaloneAssessRequestAction as $t, ConnectedAccount as $u, AgentRegistrationClaimAttemptCreatedEventData as $v, ApiKeyRequiredException as A, RoleAssignmentResourceResponse as A_, AuthenticationSSOTimedOutEventResponse as Aa, VaultByokKeyDeletedEvent as Ac, RemoveFlagTargetOptions as Ad, SerializedUserApiKey as Af, ListOrganizationRolesResponse as Ag, AuthenticationResponseResponse as Ah, AgentRegistrationCreatedEventResponse as Ai, FinishConnectionOptions as Al, TotpWithSecretsResponse as Am, CreateM2MApplicationResponse as An, GroupMemberAddedEventResponse as Ao, ListOrganizationMembershipsOptions as Ap, SerializedUpdateOrganizationOptions as Ar, PermissionDeletedEventResponse as As, AuditLogSchemaResponse as At, DataIntegrationAccessTokenResponseAccessTokenResponse as Au, EnvironmentRoleResponse as Av, AgentBlueprintInvocableBy as Ay, ObjectSummaryResponse as B, SerializedListResourcesForMembershipOptions as B_, ConnectionSamlCertificateRenewedEventResponse as Ba, VaultDataUpdatedEvent as Bc, EvaluationResource as Bd, SessionResponse as Bf, ListEffectivePermissionsOptions as Bg, ProfileResponse as Bh, AgentRegistrationRefreshedEventResponse as Bi, DataIntegrationsUpsertApiKeyRequestConnectionOwner as Bl, AuthenticateWithTotpOptions as Bm, UserConsentOptionChoiceResponse as Bn, InvitationCreatedEventResponse as Bo, SerializedListInvitationsOptions as Bp, InviteItContactOptions as Br, PipesAccountConnectionDisconnectedEventResponse as Bs, EnrollFactorOptions as Bt, CustomProviderDefinitionAuthenticateVia as Bu, DirectoryMetadataUser as Bv, PaginationOptions as By, BadRequestException as C, ListRoleAssignmentsForResourceByExternalIdOptions as C_, AuthenticationSSOFailedEvent as Ca, UnknownEventResponse as Cc, CreateGroupOptions as Cd, WaitlistUserEventResponseData as Cf, Directory as Cg, AuthenticateWithSessionCookieFailureReason as Ch, AgentInstanceSessionRevokedEvent as Ci, ListDataIntegrationsOptions as Cl, FactorResponse as Cm, CreateApplicationClientSecretOptions as Cn, FlagUpdatedEvent as Co, ListUsersOptions as Cp, ResponsePayload as Cr, PasswordResetCreatedEvent as Cs, CreateAuditLogEventRequestOptions as Ct, DataIntegrationCredentialType as Cu, SerializedUpdateEnvironmentRoleOptions as Cv, SerializedAgentRegistrationClaimCompletion as Cy, isAuthenticationErrorData as D, SerializedListRoleAssignmentsOptions as D_, AuthenticationSSOSucceededEvent as Da, UserDeletedEventResponse as Dc, RuntimeClientStats as Dd, VerifyEmailOptions as Df, DirectoryUserResponse as Dg, UserManagementAccessToken as Dh, AgentRegistrationClaimCompletedEvent as Di, GetOrganizationConnectedAccountOptions as Dl, Totp as Dm, GetApplicationOptions as Dn, GroupDeletedEvent as Do, ListUserFeatureFlagsOptions as Dp, UserData as Dr, PermissionCreatedEvent as Ds, AuditLogActorSchema as Dt, DataIntegrationAccessTokenResponse as Du, EnvironmentRole as Dv, SerializedAgentInstance as Dy, AuthenticationException as E, ListRoleAssignmentsOptions as E_, AuthenticationSSOStartedEventResponse as Ea, UserDeletedEvent as Ec, SerializedAddGroupOrganizationMembershipOptions as Ed, SerializedVerifyEmailOptions as Ef, DirectoryUser as Eg, SessionCookieData as Eh, AgentRegistrationClaimAttemptCreatedEventResponse as Ei, GetOrganizationDataIntegrationOptions as El, FactorWithSecretsResponse as Em, UpdateApplicationOptions as En, GroupCreatedEventResponse as Eo, SerializedListUserApiKeysOptions as Ep, ActionPayload as Er, PasswordResetSucceededEventResponse as Es, AuditLogsRetentionResponse as Et, DataIntegrationAuthMethods as Eu, SerializedCreateEnvironmentRoleOptions as Ev, ListAgentInstancesOptions as Ey, UpdateWebhookEndpointEvents as F, ListMembershipsForResourceByExternalIdOptions as F_, ConnectionDeletedEvent as Fa, VaultDataCreatedEventResponse as Fc, FlagPollResponse as Fd, UpdateUserOptions as Ff, RoleEvent as Fg, Impersonator as Fh, AgentRegistrationExpiredEvent as Fi, DataIntegrationsUpsertClientCredentialsRequest as Fl, AuthenticationEventSso as Fm, ListApplicationsOptions as Fn, GroupUpdatedEvent as Fo, BaseOrganizationMembershipResponse as Fp, ListOrganizationFeatureFlagsOptions as Fr, PipesAccountConnectionConnectedEvent as Fs, AuditLogExportOptions as Ft, CreateDataIntegration as Fu, DirectorySyncGetGroupOptions as Fv, SerializedAgentBlueprintInvocableBy as Fy, ObjectMetadata as G, SerializedAuthorizationCheckOptions as G_, DsyncGroupCreatedEvent as Ga, VaultDekReadEventResponse as Gc, ResourceExportEventResponseData as Gd, SendRadarSmsChallengeResponseResponse as Gf, GroupRoleAssignmentEntryWithResourceId as Gg, GetProfileAndTokenOptions as Gh, ApiKeyRevokedEvent as Gi, DataIntegrationsListResponseDataOwnership as Gl, AuthenticateWithRefreshTokenOptions as Gm, AgentCredentialValidation as Gn, KnownEvent as Go, InvitationEventResponse as Gp, SerializedInviteItContactOptions as Gr, PipesConnectedAccountConnectedEventResponse as Gs, RadarListEntryAlreadyPresentResponseWire as Gt, DataIntegrationsVendCredentialsRequest as Gu, AgentBlueprintDeletedEventData as Gv, RequestOptions as Gy, ObjectVersionResponse as H, AuthorizationCheckOptionsWithResourceExternalId as H_, DsyncActivatedEventResponse as Ha, VaultDekDecryptedEvent as Hc, TypedEvaluationContext as Hd, SendVerificationEmailOptions as Hf, GroupRoleAssignmentEntry as Hg, OauthTokensResponse as Hh, AgentRegistrationRevokedEventResponse as Hi, DataIntegrationsListResponseWire as Hl, AuthenticateWithRefreshTokenPublicClientOptions as Hm, UserObjectResponse as Hn, InvitationResentEventResponse as Ho, ListAuthFactorsOptions as Hp, ListItContactsOptions as Hr, PipesAccountConnectionReauthorizationNeededEventResponse as Hs, ChallengeResponse as Ht, DataIntegrationCredentialsInputResponse as Hu, DirectoryGroup as Hv, HttpClientInterface as Hy, UpdateWebhookEndpointStatus as I, ListMembershipsForResourceOptions as I_, ConnectionDeletedEventResponse as Ia, VaultDataDeletedEvent as Ic, FlagPollRule as Id, SerializedUpdateOrganizationMembershipOptions as If, RoleEventResponse as Ig, ImpersonatorResponse as Ih, AgentRegistrationExpiredEventResponse as Ii, DataIntegrationsUpsertClientCredentialsRequestResponse as Il, AuthenticationEventSsoResponse as Im, CompleteOAuth2Options as In, GroupUpdatedEventResponse as Io, OrganizationMembership as Ip, ItContact as Ir, PipesAccountConnectionConnectedEventResponse as Is, SerializedAuditLogExportOptions as It, CreateDataIntegrationResponse as Iu, DirectoryState as Iv, SerializedAgentBlueprintSessionSettings as Iy, ActorResponse as J, UpdateAuthorizationResourceByExternalIdOptions as J_, DsyncGroupDeletedEventResponse as Ja, VaultKekCreatedEvent as Jc, RadarChallengeCreatedEventResponseData as Jd, SerializedSendInvitationOptions as Jf, SerializedReplaceGroupRoleAssignmentsOptions as Jg, ConnectionEventConnectionResponse as Jh, ApiKeyUpdatedEventResponse as Ji, DataIntegrationsListResponseDataConnectedAccountResponse as Jl, AuthenticateWithPasswordOptions as Jm, SerializedAgentCredentialValidation as Jn, MagicAuthCreatedEventResponse as Jo, EnrollAuthFactorOptions as Jp, SerializedCreateOrganizationOptions as Jr, PipesConnectedAccountDisconnectedEvent as Js, RadarStandaloneResponseBlocklistType as Jt, CreateDataIntegrationClientCredentialOptions as Ju, AgentBlueprintEventResponseData as Jv, CryptoProvider as Jy, ObjectMetadataResponse as K, DeleteAuthorizationResourceOptions as K_, DsyncGroupCreatedEventResponse as Ka, VaultDekRekeyedEvent as Kc, ResourceExportResourceType as Kd, SerializedSendRadarSmsChallengeOptions as Kf, ReplaceGroupRoleAssignmentsOptions as Kg, GetProfileOptions as Kh, ApiKeyRevokedEventResponse as Ki, DataIntegrationsListResponseDataConnectionOwner as Kl, SerializedAuthenticateWithRefreshTokenOptions as Km, InvalidAgentCredential as Kn, KnownEventResponse as Ko, InvitationResponse as Kp, CreateOrganizationOptions as Kr, PipesConnectedAccountConnectionFailedEvent as Ks, RadarStandaloneResponse as Kt, DataIntegrationsVendCredentialsRequestResponse as Ku, AgentBlueprintDeletedEventResponseData as Kv, ResponseHeaderValue as Ky, CreateWebhookEndpointEvents as L, ListResourcesForMembershipOptions as L_, ConnectionSamlCertificateRenewalRequiredEvent as La, VaultDataDeletedEventResponse as Lc, FeatureFlag as Ld, UpdateOrganizationMembershipOptions as Lf, RoleList as Lg, ProfileAndToken as Lh, AgentRegistrationOrganizationSwitchedEvent as Li, DataIntegrationsUpsertClientCredentialsRequestConnectionOwner as Ll, AuthenticationEventStatus as Lm, UserConsentOption as Ln, InvitationAcceptedEvent as Lo, OrganizationMembershipResponse as Lp, ItContactResponse as Lr, PipesAccountConnectionConnectionFailedEvent as Ls, VerifyResponse as Lt, CreateDataIntegrationOwnership as Lu, DirectoryStateResponse as Lv, SerializedCreateAgentBlueprintOptions as Ly, WebhookEndpoint as M, RoleAssignmentRole as M_, ConnectionActivatedEventResponse as Ma, VaultByokKeyVerificationCompletedEvent as Mc, FlagChange as Md, SerializedUpdateUserPasswordOptions as Mf, OrganizationRoleEventResponse as Mg, CreateUserResponseResponse as Mh, AgentRegistrationCredentialIssuedEventResponse as Mi, DeleteOrganizationDataIntegrationOptions as Ml, SmsResponse as Mm, CreateOAuthApplicationResponse as Mn, GroupMemberEventResponseData as Mo, AuthorizationOrganizationMembership as Mp, Organization as Mr, PermissionUpdatedEventResponse as Ms, AuditLogExport as Mt, CreateOrganizationConnectedAccountOptions as Mu, DirectoryUserWithGroupsEmail as Mv, CreateAgentBlueprintOptions as My, WebhookEndpointResponse as N, RoleAssignmentSource as N_, ConnectionDeactivatedEvent as Na, VaultByokKeyVerificationCompletedEventResponse as Nc, FlagPollCondition as Nd, UpdateUserPasswordOptions as Nf, OrganizationRoleResponse as Ng, User as Nh, AgentRegistrationDeletedEvent as Ni, DeleteOrganizationConnectedAccountOptions as Nl, AuthenticationEvent as Nm, RedirectUriInput as Nn, GroupMemberRemovedEvent as No, AuthorizationOrganizationMembershipResponse as Np, OrganizationResponse as Nr, PipesAccountConnectionAddFailedEvent as Ns, AuditLogExportResponse as Nt, OrganizationConnectedAccountState as Nu, DirectoryUserWithGroupsEmailResponse as Nv, ListAgentBlueprintsOptions as Ny, GenericServerException as O, RoleAssignment as O_, AuthenticationSSOSucceededEventResponse as Oa, UserUpdatedEvent as Oc, RuntimeClientLogger as Od, SerializedUserApiKeyWithValue as Of, DirectoryUserWithGroups as Og, AuthenticationMethod as Oh, AgentRegistrationClaimCompletedEventResponse as Oi, GetDataIntegrationOptions as Ol, TotpResponse as Om, CreateApplicationOptions as On, GroupDeletedEventResponse as Oo, ListSessionsOptions as Op, UserDataPayload as Or, PermissionCreatedEventResponse as Os, AuditLogSchema as Ot, DataIntegrationAccessTokenResponseWire as Ou, EnvironmentRoleList as Ov, SerializedListAgentInstancesOptions as Oy, WebhookEndpointStatus as P, RoleAssignmentSourceResponse as P_, ConnectionDeactivatedEventResponse as Pa, VaultDataCreatedEvent as Pc, FlagPollEntry as Pd, SerializedUpdateUserOptions as Pf, Role as Pg, UserResponse as Ph, AgentRegistrationDeletedEventResponse as Pi, DeleteDataIntegrationOptions as Pl, AuthenticationEventResponse as Pm, RedirectUriInputResponse as Pn, GroupMemberRemovedEventResponse as Po, BaseOrganizationMembership as Pp, ListOrganizationsOptions as Pr, PipesAccountConnectionAddFailedEventResponse as Ps, AuditLogExportState as Pt, CreateDataIntegrationOptions as Pu, DirectoryType as Pv, SerializedAgentBlueprint as Py, UpdateObjectOptions as Q, AuthorizationResource as Q_, DsyncGroupUserAddedEventResponse as Qa, VaultMetadataReadEvent as Qc, ActionUserRegistrationDeniedEventResponseData as Qd, ResetPasswordOptions as Qf, RemoveGroupRoleAssignmentsOptionsWithResourceExternalId as Qg, ConnectionSamlCertificateRenewedEventResponseData as Qh, AuthenticationEmailVerificationSucceededEventResponse as Qi, DataIntegrationsListResponseDataConnectedAccountConnectionRole as Ql, SerializedAuthenticateWithOrganizationSelectionOptions as Qm, ValidateAgentApiKeyOptions as Qn, OrganizationDeletedResponse as Qo, EmailVerificationEventResponse as Qp, WorkOSOptions as Qr, PipesConnectedAccountResponse as Qs, RadarListType as Qt, DataIntegrationsCreateApiKeyConnectionRequestConnectionOwner as Qu, AgentInstanceSessionEventResponseData as Qv, WorkOS as R, ListResourcesForMembershipOptionsWithParentExternalId as R_, ConnectionSamlCertificateRenewalRequiredEventResponse as Ra, VaultDataReadEvent as Rc, FeatureFlagResponse as Rd, AuthMethod as Rf, RoleResponse as Rg, ProfileAndTokenResponse as Rh, AgentRegistrationOrganizationSwitchedEventResponse as Ri, DataIntegrationsUpsertApiKeyRequest as Rl, AuthenticationEventType as Rm, UserConsentOptionResponse as Rn, InvitationAcceptedEventResponse as Ro, OrganizationMembershipStatus as Rp, CreateItContactOptions as Rr, PipesAccountConnectionConnectionFailedEventResponse as Rs, VerifyResponseResponse as Rt, CustomProviderDefinition as Ru, DirectoryMetadata as Rv, SerializedUpdateAgentBlueprintOptions as Ry, ConflictException as S, SerializedAssignRoleOptions as S_, AuthenticationReauthenticationSucceededEventResponse as Sa, UnknownEvent as Sc, DeleteGroupOptions as Sd, WaitlistUserEventData as Sf, EventDirectoryResponse as Sg, AuthenticateWithSessionCookieFailedResponse as Sh, AgentInstanceSessionCreatedEventResponse as Si, ListOrganizationDataProvidersOptions as Sl, Factor as Sm, DeleteClientSecretOptions as Sn, FlagRuleUpdatedEventResponse as So, WaitlistEntryState as Sp, AuthenticationActionResponseData as Sr, OrganizationUpdatedResponse as Ss, CreateAuditLogEventOptions as St, DataIntegrationCredentialResponse as Su, SetEnvironmentRolePermissionsOptions as Sv, SerializedAgentRegistrationClaim as Sy, AuthenticationErrorData as T, SerializedListRoleAssignmentsForResourceOptions as T_, AuthenticationSSOStartedEvent as Ta, UserCreatedEventResponse as Tc, AddGroupOrganizationMembershipOptions as Td, WaitlistResponse as Tf, DefaultCustomAttributes as Tg, AuthenticateWithSessionCookieSuccessResponse as Th, AgentRegistrationClaimAttemptCreatedEvent as Ti, GetUserConnectedAccountOptions as Tl, FactorWithSecrets as Tm, DeleteApplicationOptions as Tn, GroupCreatedEvent as To, ListUserApiKeysOptions as Tp, ActionContext as Tr, PasswordResetSucceededEvent as Ts, AuditLogsRetention as Tt, DataIntegrationAuthorizeUrlResponseWire as Tu, CreateEnvironmentRoleOptions as Tv, AgentInstanceType as Ty, VaultObject as U, AuthorizationCheckOptionsWithResourceId as U_, DsyncDeletedEvent as Ua, VaultDekDecryptedEventResponse as Uc, AddFlagTargetOptions as Ud, SendRadarSmsChallengeOptions as Uf, GroupRoleAssignmentEntryForOrganization as Ug, ListConnectionsOptions as Uh, ApiKeyCreatedEvent as Ui, DataIntegrationsListResponseData as Ul, SerializedAuthenticateWithRefreshTokenPublicClientOptions as Um, AgentAccessTokenClaims as Un, InvitationRevokedEvent as Uo, Invitation as Up, RevokeItContactOptions as Ur, PipesConnectedAccount as Us, ChallengeFactorOptions as Ut, DataIntegrationCredentialsInputType as Uu, DirectoryGroupResponse as Uv, HttpClientResponseInterface as Uy, ObjectVersion as V, AuthorizationCheckOptions as V_, DsyncActivatedEvent as Va, VaultDataUpdatedEventResponse as Vc, LegacyEvaluationContext as Vd, SessionStatus as Vf, BaseGroupRoleAssignmentEntry as Vg, OauthTokens as Vh, AgentRegistrationRevokedEvent as Vi, DataIntegrationsListResponse as Vl, SerializedAuthenticateWithTotpOptions as Vm, UserObject as Vn, InvitationResentEvent as Vo, ListGroupsForOrganizationMembershipOptions as Vp, ItContactIntent as Vr, PipesAccountConnectionReauthorizationNeededEvent as Vs, Challenge as Vt, DataIntegrationCredentialsInput as Vu, DirectoryMetadataUserResponse as Vv, HttpClient as Vy, VaultObjectResponse as W, AuthorizationCheckResult as W_, DsyncDeletedEventResponse as Wa, VaultDekReadEvent as Wc, ResourceExportEventData as Wd, SendRadarSmsChallengeResponse as Wf, GroupRoleAssignmentEntryWithResourceExternalId as Wg, SerializedListConnectionsOptions as Wh, ApiKeyCreatedEventResponse as Wi, DataIntegrationsListResponseDataResponse as Wl, AuthenticateUserWithRefreshTokenCredentials as Wm, AgentCredentialType as Wn, InvitationRevokedEventResponse as Wo, InvitationEvent as Wp, SerializedCreateItContactOptions as Wr, PipesConnectedAccountConnectedEvent as Ws, RadarListEntryAlreadyPresentResponse as Wt, CreateDataIntegrationCredentialOptions as Wu, DeleteDirectoryOptions as Wv, RequestHeaders as Wy, CreateDataKeyResponseWire as X, ListAuthorizationResourcesOptions as X_, DsyncGroupUpdatedEventResponse as Xa, VaultKekDeletedEvent as Xc, ActionAuthenticationDeniedEventResponseData as Xd, SerializedRevokeSessionOptions as Xf, RemoveGroupRoleAssignmentsOptions as Xg, ConnectionSamlCertificateRenewalRequiredEventResponseData as Xh, AuthenticationEmailVerificationFailedEventResponse as Xi, DataIntegrationsListResponseDataConnectedAccountWarningResponse as Xl, AuthenticateUserWithOrganizationSelectionCredentials as Xm, ValidAgentCredential as Xn, OrganizationCreatedResponse as Xo, EmailVerification as Xp, DomainDataState as Xr, PipesConnectedAccountReauthorizationNeededEvent as Xs, RadarStandaloneResponseVerdict as Xt, CreateDataIntegrationAuthMethods as Xu, AgentInstanceSessionCreatedEventResponseData as Xv, CreateDataKeyResponse as Y, GetAuthorizationResourceByExternalIdOptions as Y_, DsyncGroupUpdatedEvent as Ya, VaultKekCreatedEventResponse as Yc, ActionAuthenticationDeniedEventData as Yd, RevokeSessionOptions as Yf, BaseRemoveGroupRoleAssignmentsOptions as Yg, ConnectionSamlCertificateRenewalRequiredEventData as Yh, AuthenticationEmailVerificationFailedEvent as Yi, DataIntegrationsListResponseDataConnectedAccountWarning as Yl, SerializedAuthenticateWithPasswordOptions as Ym, SerializedValidateAgentCredentialOptions as Yn, OrganizationCreatedEvent as Yo, SerializedEnrollUserInMfaFactorOptions as Yp, DomainData as Yr, PipesConnectedAccountDisconnectedEventResponse as Ys, RadarStandaloneResponseControl as Yt, DataIntegrationsCreateClientCredentialsConnectionRequestConnectionOwner as Yu, AgentInstanceSessionCreatedEventData as Yv, UpdateObjectEntity as Z, SerializedListAuthorizationResourcesOptions as Z_, DsyncGroupUserAddedEvent as Za, VaultKekDeletedEventResponse as Zc, ActionUserRegistrationDeniedEventData as Zd, serializeRevokeSessionOptions as Zf, RemoveGroupRoleAssignmentsOptionsForOrganization as Zg, ConnectionSamlCertificateRenewedEventData as Zh, AuthenticationEmailVerificationSucceededEvent as Zi, DataIntegrationsListResponseDataConnectedAccountState as Zl, AuthenticateWithOrganizationSelectionOptions as Zm, ValidateAgentAccessTokenOptions as Zn, OrganizationDeletedEvent as Zo, EmailVerificationEvent as Zp, WorkOSResponseError as Zr, PipesConnectedAccountReauthorizationNeededEventResponse as Zs, RadarListAction as Zt, CreateDataIntegrationApiKeyOptions as Zu, AgentInstanceSessionEventData as Zv, SignatureVerificationException as _, SerializedRemoveRoleOptions as __, AuthenticationPasswordSucceededEvent as _a, RoleUpdatedEventResponse as _c, ListGroupsOptions as _d, OrganizationDomainResponse as _f, GetUserOptions as _g, AuthenticateWithSessionOptions as _h, AgentInstanceCreatedEvent as _i, UpdateDataIntegrationApiKeyOptions as _l, AuthenticationFactor as _m, ConnectApplicationResponse as _n, FlagCreatedEvent as _o, Locale as _p, SerializedListAgentInstanceSessionsOptions as _r, OrganizationRoleDeletedEvent as _s, CreateAuditLogSchemaRequestOptions as _t, DataIntegrationCredentialsResponseWire as _u, UpdateOrganizationRoleOptions as _v, AgentRegistrationClaimCompletion as _y, PublicWorkOS as a, CreateGroupRoleAssignmentOptionsWithResourceExternalId as a_, AuthenticationMfaSucceededEvent as aa, ResourceExportCompletedEventResponse as ac, ConnectedAccountConnectionRole as ad, CreateOrganizationApiKeyOptions as af, ConnectionDomain as ag, AuthenticateUserWithMagicAuthCredentials as ah, GetOptions as ai, WaitlistUserCreatedEventResponse as al, CreateUserApiKeyRequestOptions as am, PasswordlessSessionResponse as an, DsyncUserCreatedEvent as ao, TerminalRefreshSessionFailureReason as ap, AgentToken as ar, OrganizationDomainVerificationFailedEvent as as, WidgetSessionTokenResponse as at, DataIntegrationResponse as au, UpdateAuthorizationResourceOptions as av, AgentRegistrationCredentialDetail as ay, NotFoundException as b, AssignRoleOptionsWithResourceId as b_, AuthenticationRadarRiskDetectedEventResponse as ba, SessionRevokedEvent as bc, GroupResponse as bd, CreateOrganizationDomainOptions as bf, DirectoryTokenResponse as bg, WithResolvedClientId as bh, AgentInstanceDeletedEventResponse as bi, UpdateCustomProviderDefinitionAuthenticateVia as bl, AuthenticationFactorWithSecrets as bm, ExternalAuthCompleteResponse as bn, FlagDeletedEventResponse as bo, WaitlistEntry as bp, PKCEPair as br, OrganizationRoleUpdatedEventResponse as bs, AuditLogActor as bt, DataIntegrationVendedCredentialResponse as bu, OrganizationRole as bv, SerializedAgentIdentity as by, PortalLinkResponseWire as c, GetGroupRoleAssignmentOptions as c_, AuthenticationOAuthFailedEventResponse as ca, ResourceExportDownloadedEvent as cc, DataIntegrationsGetDataIntegrationAuthorizeUrlRequest as cd, ApiKeyPreviousAttributes as cf, ConnectionType as cg, AuthenticateUserWithEmailVerificationCredentials as ch, ActionAuthenticationDeniedEventResponse as ci, DataKey as cl, SerializedCreatePasswordResetOptions as cm, NewConnectApplicationSecret as cn, DsyncUserDeletedEventResponse as co, PasswordResetEventResponse as cp, MintAutonomousAgentTokenOptions as cr, OrganizationDomainVerifiedEventResponse as cs, WidgetSessionTokenScopes as ct, DataIntegrationInstallation as cu, UpdatePermissionOptions as cv, AgentRegistrationCredentialIssuedEventResponseData as cy, IntentOptions as d, GroupRoleAssignmentResponse as d_, AuthenticationPasskeyFailedEvent as da, ResourceExportFailedEventResponse as dc, DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner as dd, SerializedApiKeyUpdatedEventData as df, SlimRole as dg, AuthenticateWithCodeAndVerifierOptions as dh, AgentBlueprintCreatedEvent as di, UpdateUserConnectedAccountOptions as dl, CreateMagicAuthOptions as dm, ApplicationCredentialsListItemResponse as dn, EmailVerificationCreatedEvent as do, CreateMagicAuthResponseResponse as dp, SerializedAgentToken as dr, OrganizationMembershipDeleted as ds, UpdateOrganizationAuditLogsRetentionOptions as dt, DataIntegrationFinishConnectionResponse as du, Permission as dv, AgentRegistrationMethod as dy, SerializedRemoveGroupRoleAssignmentsOptions as e_, AuthenticationMagicAuthFailedEventResponse as ea, PipesConnectionFailed as ec, ConnectedAccountResponse as ed, ValidateApiKeyOptions as ef, SamlCertificateRenewalRequiredResponse as eg, AuthenticateWithRadarSmsChallengeOptions as eh, PutOptions as ei, VaultNamesListedEvent as el, CreateWaitlistEntryOptions as em, RadarStandaloneAssessRequestAuthMethod as en, DsyncGroupUserRemovedEventResponse as eo, ResendInvitationOptions as ep, ClaimAttemptOrganization as er, OrganizationDomainCreatedEventResponse as es, CreateObjectEntity as et, DataIntegrationsListResponseDataAuthMethods as eu, CreateAuthorizationResourceOptions as ev, AgentRegistrationClaimAttemptCreatedEventResponseData as ey, IntentOptionsResponse as f, RemoveRoleAssignmentOptions as f_, AuthenticationPasskeyFailedEventResponse as fa, RoleCreatedEvent as fc, ApiKeyInstallation as fd, ApiKey as ff, SlimRoleResponse as fg, SerializedAuthenticateWithCodeAndVerifierOptions as fh, AgentBlueprintCreatedEventResponse as fi, UpdateOrganizationConnectedAccountOptions as fl, SerializedCreateMagicAuthOptions as fm, ConnectApplication as fn, EmailVerificationCreatedEventResponse as fo, MagicAuth as fp, SerializedMintAgentTokenOptions as fr, OrganizationMembershipDeletedResponse as fs, UpdateAuditLogsRetention as ft, DataIntegrationFinishConnectionResponseWire as fu, PermissionResponse as fv, AgentRegistrationOrganizationSwitchedEventData as fy, UnauthorizedException as g, RemoveRoleOptionsWithResourceId as g_, AuthenticationPasswordFailedEventResponse as ga, RoleUpdatedEvent as gc, RemoveGroupOrganizationMembershipOptions as gd, OrganizationDomain as gf, SerializedListDirectoriesOptions as gg, AuthenticateWithOptionsBase as gh, AgentBlueprintUpdatedEventResponse as gi, UpdateDataIntegrationClientCredentialsOptions as gl, AuthenticationRadarRiskDetectedEventResponseData as gm, ConnectApplicationOAuthResponse as gn, EventResponse as go, LogoutURLOptions as gp, SerializedAgentInstanceSession as gr, OrganizationRoleCreatedEventResponse as gs, CreateAuditLogSchemaOptions as gt, DataIntegrationCredentialsResponse as gu, SerializedUpdateOrganizationRoleOptions as gv, AgentRegistrationClaim as gy, UnprocessableEntityException as h, RemoveRoleOptionsWithResourceExternalId as h_, AuthenticationPasswordFailedEvent as ha, RoleDeletedEventResponse as hc, UpdateGroupOptions as hd, OrganizationDomainVerificationFailedResponse as hf, ListDirectoriesOptions as hg, SerializedAuthenticateWithCodeOptions as hh, AgentBlueprintUpdatedEvent as hi, UpdateDataIntegrationResponse as hl, AuthenticationRadarRiskDetectedEventData as hm, ConnectApplicationOAuth as hn, EventName as ho, MagicAuthResponse as hp, ListAgentInstanceSessionsOptions as hr, OrganizationRoleCreatedEvent as hs, GetOrganizationAuditLogsRetentionOptions as ht, DataIntegrationCustomProviderAuthenticateVia as hu, SetOrganizationRolePermissionsOptions as hv, AgentRegistration as hy, PublicUserManagement as i, CreateGroupRoleAssignmentOptionsForOrganization as i_, AuthenticationMfaFailedEventResponse as ia, ResourceExportCompletedEvent as ic, ConnectedAccountInputState as id, SerializedCreatedApiKey as if, Connection as ig, SerializedAuthenticateWithRadarEmailChallengeOptions as ih, ListResponse as ii, WaitlistUserCreatedEvent as il, CreateUserApiKeyOptions as im, PasswordlessSession as in, DsyncTokenRevokedEventResponse as io, RetryableRefreshSessionFailureReason as ip, SerializedLinkClaimAttemptToExternalUserOptions as ir, OrganizationDomainUpdatedEventResponse as is, CreateDataKeyOptions as it, DataIntegration as iu, SerializedUpdateAuthorizationResourceOptions as iv, AgentRegistrationCreatedEventResponseData as iy, Webhooks as j, RoleAssignmentResponse as j_, ConnectionActivatedEvent as ja, VaultByokKeyDeletedEventResponse as jc, ListFeatureFlagsOptions as jd, UserApiKey as jf, OrganizationRoleEvent as jg, CreateUserResponse as jh, AgentRegistrationCredentialIssuedEvent as ji, DeleteUserConnectedAccountOptions as jl, Sms as jm, CreateOAuthApplication as jn, GroupMemberEventData as jo, SerializedListOrganizationMembershipsOptions as jp, UpdateOrganizationOptions as jr, PermissionUpdatedEvent as js, AuditLogTargetSchema as jt, CreateUserConnectedAccountOptions as ju, DirectoryUserWithGroupsState as jv, AgentBlueprintSessionSettings as jy, WorkOSErrorData as k, RoleAssignmentResource as k_, AuthenticationSSOTimedOutEvent as ka, UserUpdatedEventResponse as kc, RuntimeClientOptions as kd, UserApiKeyWithValue as kf, DirectoryUserWithGroupsResponse as kg, AuthenticationResponse as kh, AgentRegistrationCreatedEvent as ki, GetAccessTokenOptions as kl, TotpWithSecrets as km, CreateM2MApplication as kn, GroupMemberAddedEvent as ko, SerializedListSessionsOptions as kp, UserRegistrationActionPayload as kr, PermissionDeletedEvent as ks, AuditLogSchemaMetadata as kt, DataIntegrationAccessTokenResponseAccessToken as ku, EnvironmentRoleListResponse as kv, AgentBlueprint as ky, GenerateLink as l, ListGroupRoleAssignmentsOptions as l_, AuthenticationOAuthSucceededEvent as la, ResourceExportDownloadedEventResponse as lc, DataIntegrationsGetDataIntegrationAuthorizeUrlRequestResponse as ld, ApiKeyUpdatedEventData as lf, SSOAuthorizationURLOptions as lg, AuthenticateWithEmailVerificationOptions as lh, ActionUserRegistrationDeniedEvent as li, DataKeyPair as ll, CreateOrganizationMembershipOptions as lm, NewConnectApplicationSecretResponse as ln, DsyncUserUpdatedEvent as lo, PasswordResetResponse as lp, MintUserDelegatedAgentTokenOptions as lr, OrganizationMembershipCreated as ls, FeatureFlagsRuntimeClient as lt, DataIntegrationInstallationResponse as lu, CreatePermissionOptions as lv, AgentRegistrationLifecycleEventData as ly, SSOIntentOptionsResponse as m, RemoveRoleOptions as m_, AuthenticationPasskeySucceededEventResponse as ma, RoleDeletedEvent as mc, SerializedUpdateGroupOptions as md, OrganizationDomainVerificationFailed as mf, ListDirectoryUsersOptions as mg, AuthenticateWithCodeOptions as mh, AgentBlueprintDeletedEventResponse as mi, UpdateDataIntegration as ml, UserManagementAuthorizationURLOptions as mm, ConnectApplicationM2MResponse as mn, EventBase as mo, MagicAuthEventResponse as mp, AgentInstanceSessionStatus as mr, OrganizationMembershipUpdatedResponse as ms, UpdateAuditLogsRetentionRetentionPeriod as mt, DataIntegrationCustomProviderResponse as mu, AddOrganizationRolePermissionOptions as mv, AgentIdentity as my, PublicClientOptions as n, BaseCreateGroupRoleAssignmentOptions as n_, AuthenticationMagicAuthSucceededEventResponse as na, RadarChallengeCreatedEvent as nc, ConnectedAccountWarningResponse as nd, ListOrganizationApiKeysOptions as nf, SamlCertificateRenewedResponse as ng, AuthenticateUserWithRadarEmailChallengeCredentials as nh, PatchOptions as ni, WaitlistUserApprovedEvent as nl, CreateUserOptions as nm, CreatePasswordlessSessionOptions as nn, DsyncTokenCreatedEventResponse as no, RefreshSessionFailureReason as np, LinkClaimAttemptToExternalUserOptions as nr, OrganizationDomainDeletedEventResponse as ns, DecryptDataKeyOptions as nt, DataIntegrationsGetUserTokenRequestResponse as nu, CreateOptionsWithParentResourceId as nv, AgentRegistrationClaimCompletedEventResponseData as ny, createWorkOS as o, CreateGroupRoleAssignmentOptionsWithResourceId as o_, AuthenticationMfaSucceededEventResponse as oa, ResourceExportCreatedEvent as oc, ConnectedAccountAuthMethod as od, CreateOrganizationApiKeyRequestOptions as of, ConnectionResponse as og, AuthenticateWithMagicAuthOptions as oh, GenerateLinkIntent as oi, WaitlistUserDeniedEvent as ol, SerializedCreateUserApiKeyOptions as om, ListEventOptions as on, DsyncUserCreatedEventResponse as oo, PasswordReset as op, MintAgentDelegatedAgentTokenOptions as or, OrganizationDomainVerificationFailedEventResponse as os, WidgetSessionTokenResponseWire as ot, DataIntegrationState as ou, ListPermissionsOptions as ov, AgentRegistrationCredentialDetailResponse as oy, SSOIntentOptions as p, BaseRemoveRoleOptions as p_, AuthenticationPasskeySucceededEvent as pa, RoleCreatedEventResponse as pc, ApiKeyInstallationResponse as pd, SerializedApiKey as pf, ListDirectoryGroupsOptions as pg, AuthenticateUserWithCodeCredentials as ph, AgentBlueprintDeletedEvent as pi, UpdateDataIntegrationOptions as pl, PKCEAuthorizationURLResult as pm, ConnectApplicationM2M as pn, Event as po, MagicAuthEvent as pp, AgentInstanceSession as pr, OrganizationMembershipUpdated as ps, UpdateAuditLogsRetentionResponse as pt, DataIntegrationCustomProvider as pu, RemoveOrganizationRolePermissionOptions as pv, AgentRegistrationOrganizationSwitchedEventResponseData as py, Actor as q, DeleteAuthorizationResourceByExternalIdOptions as q_, DsyncGroupDeletedEvent as qa, VaultDekRekeyedEventResponse as qc, RadarChallengeCreatedEventData as qd, SendInvitationOptions as qf, SerializedGroupRoleAssignmentEntry as qg, ConnectionEventConnection as qh, ApiKeyUpdatedEvent as qi, DataIntegrationsListResponseDataConnectedAccount as ql, AuthenticateUserWithPasswordCredentials as qm, SerializedAgentAccessTokenClaims as qn, MagicAuthCreatedEvent as qo, Identity as qp, CreateOrganizationRequestOptions as qr, PipesConnectedAccountConnectionFailedEventResponse as qs, RadarStandaloneResponseWire as qt, DataIntegrationsVendCredentialsRequestConnectionOwner as qu, AgentBlueprintEventData as qv, ResponseHeaders as qy, PublicSSO as r, CreateGroupRoleAssignmentOptions as r_, AuthenticationMfaFailedEvent as ra, RadarChallengeCreatedEventResponse as rc, ConnectedAccountState as rd, CreatedApiKey as rf, SamlCertificateType as rg, AuthenticateWithRadarEmailChallengeOptions as rh, List as ri, WaitlistUserApprovedEventResponse as rl, SerializedCreateUserOptions as rm, SerializedCreatePasswordlessSessionOptions as rn, DsyncTokenRevokedEvent as ro, RefreshSessionResponse as rp, SerializedClaimAttemptResponse as rr, OrganizationDomainUpdatedEvent as rs, DecryptDataKeyResponse as rt, DataIntegrationsGetUserTokenRequestConnectionOwner as ru, SerializedCreateAuthorizationResourceOptions as rv, AgentRegistrationCreatedEventData as ry, PortalLinkResponse as s, SerializedCreateGroupRoleAssignmentOptions as s_, AuthenticationOAuthFailedEvent as sa, ResourceExportCreatedEventResponse as sc, AuthorizeDataIntegrationOptions as sd, SerializedCreateOrganizationApiKeyOptions as sf, ConnectionState as sg, SerializedAuthenticateWithMagicAuthOptions as sh, ActionAuthenticationDeniedEvent as si, WaitlistUserDeniedEventResponse as sl, CreatePasswordResetOptions as sm, SerializedListEventOptions as sn, DsyncUserDeletedEvent as so, PasswordResetEvent as sp, MintAgentTokenOptions as sr, OrganizationDomainVerifiedEvent as ss, CreateTokenOptions as st, DataIntegrationOwnership as su, SerializedUpdatePermissionOptions as sv, AgentRegistrationCredentialIssuedEventData as sy, ConfidentialClientOptions as t, RemoveGroupRoleAssignmentOptions as t_, AuthenticationMagicAuthSucceededEvent as ta, PipesConnectionFailedResponse as tc, ConnectedAccountWarning as td, ValidateApiKeyResponse as tf, SamlCertificateRenewed as tg, SerializedAuthenticateWithRadarSmsChallengeOptions as th, PostOptions as ti, VaultNamesListedEventResponse as tl, SerializedCreateWaitlistEntryOptions as tm, SendSessionResponse as tn, DsyncTokenCreatedEvent as to, SerializedResendInvitationOptions as tp, ClaimAttemptResponse as tr, OrganizationDomainDeletedEvent as ts, CreateObjectOptions as tt, DataIntegrationsGetUserTokenRequest as tu, CreateOptionsWithParentExternalId as tv, AgentRegistrationClaimCompletedEventData as ty, GenerateLinkResponse as u, GroupRoleAssignment as u_, AuthenticationOAuthSucceededEventResponse as ua, ResourceExportFailedEvent as uc, DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionIntent as ud, SerializedApiKeyPreviousAttributes as uf, SSOPKCEAuthorizationURLResult as ug, SerializedAuthenticateWithEmailVerificationOptions as uh, ActionUserRegistrationDeniedEventResponse as ui, KeyContext as ul, SerializedCreateOrganizationMembershipOptions as um, ApplicationCredentialsListItem as un, DsyncUserUpdatedEventResponse as uo, CreateMagicAuthResponse as up, RefreshAgentTokenOptions as ur, OrganizationMembershipCreatedResponse as us, CookieSession as ut, DataIntegrationInstallationConnectionRole as uu, SerializedCreatePermissionOptions as uv, AgentRegistrationLifecycleEventResponseData as uy, RateLimitExceededException as v, AssignRoleOptions as v_, AuthenticationPasswordSucceededEventResponse as va, SessionCreatedEvent as vc, ListGroupOrganizationMembershipsOptions as vd, OrganizationDomainState as vf, GetDirectoryOptions as vg, SerializedAuthenticatePublicClientBase as vh, AgentInstanceCreatedEventResponse as vi, UpdateCustomProviderDefinition as vl, AuthenticationFactorResponse as vm, ConnectApplicationRedirectUri as vn, FlagCreatedEventResponse as vo, ListWaitlistEntriesOptions as vp, AutoPaginatable as vr, OrganizationRoleDeletedEventResponse as vs, CreateAuditLogSchemaResponse as vt, DataIntegrationCredentialsResponseError as vu, CreateOrganizationRoleOptions as vv, AgentRegistrationKind as vy, AuthenticationErrorCode as w, ListRoleAssignmentsForResourceOptions as w_, AuthenticationSSOFailedEventResponse as wa, UserCreatedEvent as wc, SerializedCreateGroupOptions as wd, Waitlist as wf, DirectoryResponse as wg, AuthenticateWithSessionCookieOptions as wh, AgentInstanceSessionRevokedEventResponse as wi, PipesOwnership as wl, FactorType as wm, ListApplicationClientSecretsOptions as wn, FlagUpdatedEventResponse as wo, SerializedListUsersOptions as wp, UserRegistrationActionResponseData as wr, PasswordResetCreatedEventResponse as ws, SerializedCreateAuditLogEventOptions as wt, DataIntegrationAuthorizeUrlResponse as wu, UpdateEnvironmentRoleOptions as wv, AgentInstance as wy, NoApiKeyProvidedException as x, BaseAssignRoleOptions as x_, AuthenticationReauthenticationSucceededEvent as xa, SessionRevokedEventResponse as xc, GetGroupOptions as xd, SerializedCreateOrganizationDomainOptions as xf, EventDirectory as xg, AccessTokenClaims as xh, AgentInstanceSessionCreatedEvent as xi, ListUserDataProvidersOptions as xl, AuthenticationFactorWithSecretsResponse as xm, ExternalAuthCompleteResponseWire as xn, FlagRuleUpdatedEvent as xo, WaitlistEntryResponse as xp, Actions as xr, OrganizationUpdatedEvent as xs, AuditLogTarget as xt, DataIntegrationCredential as xu, AddEnvironmentRolePermissionOptions as xv, SerializedAgentRegistration as xy, OauthException as y, AssignRoleOptionsWithResourceExternalId as y_, AuthenticationRadarRiskDetectedEvent as ya, SessionCreatedEventResponse as yc, Group as yd, OrganizationDomainVerificationStrategy as yf, DirectoryToken as yg, SerializedAuthenticateWithOptionsBase as yh, AgentInstanceDeletedEvent as yi, UpdateCustomProviderDefinitionResponse as yl, AuthenticationFactorType as ym, ConnectApplicationRedirectUriResponse as yn, FlagDeletedEvent as yo, SerializedListWaitlistEntriesOptions as yp, PKCE as yr, OrganizationRoleUpdatedEvent as ys, SerializedCreateAuditLogSchemaOptions as yt, DataIntegrationVendedCredential as yu, SerializedCreateOrganizationRoleOptions as yv, AgentRegistrationStatus as yy, ObjectSummary as z, ListResourcesForMembershipOptionsWithParentId as z_, ConnectionSamlCertificateRenewedEvent as za, VaultDataReadEventResponse as zc, EvaluationContext as zd, Session as zf, ListEffectivePermissionsByExternalIdOptions as zg, Profile as zh, AgentRegistrationRefreshedEvent as zi, DataIntegrationsUpsertApiKeyRequestResponse as zl, AuthenticateUserWithTotpCredentials as zm, UserConsentOptionChoice as zn, InvitationCreatedEvent as zo, ListInvitationsOptions as zp, DeleteItContactOptions as zr, PipesAccountConnectionDisconnectedEvent as zs, VerifyChallengeOptions as zt, CustomProviderDefinitionResponse as zu, DirectoryMetadataResponse as zv, UpdateAgentBlueprintOptions as zy };
|
|
12747
|
+
//# sourceMappingURL=factory-2iQbHj6d.d.mts.map
|