@gravity-rail/sdk 0.56.0 → 0.57.1

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.
Files changed (43) hide show
  1. package/dist/agui.d.cts +3 -2
  2. package/dist/agui.d.ts +3 -2
  3. package/dist/audio.d.cts +3 -2
  4. package/dist/audio.d.ts +3 -2
  5. package/dist/{chat-interaction-B1pEnDf4.d.ts → chat-interaction-BlORjFix.d.cts} +5990 -4389
  6. package/dist/{chat-interaction-Bb1dQ6iL.d.cts → chat-interaction-DyQjxoyc.d.ts} +5990 -4389
  7. package/dist/{chunk-HXVJF54M.js → chunk-D5VNVTUQ.js} +1 -1
  8. package/dist/chunk-D5VNVTUQ.js.map +1 -0
  9. package/dist/{chunk-BQOKENBF.js → chunk-YDC4OVZE.js} +486 -68
  10. package/dist/chunk-YDC4OVZE.js.map +1 -0
  11. package/dist/helpers.d.cts +6 -5
  12. package/dist/helpers.d.ts +6 -5
  13. package/dist/index.cjs +489 -67
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +9 -7
  16. package/dist/index.d.ts +9 -7
  17. package/dist/index.js +7 -2
  18. package/dist/index.js.map +1 -1
  19. package/dist/internal.cjs +486 -67
  20. package/dist/internal.cjs.map +1 -1
  21. package/dist/internal.d.cts +7 -136
  22. package/dist/internal.d.ts +7 -136
  23. package/dist/internal.js +4 -2
  24. package/dist/internal.js.map +1 -1
  25. package/dist/{member-import-DzuvKnMC.d.cts → member-import-B8nsRMD9.d.cts} +1 -1
  26. package/dist/{member-import-D1QvZiy5.d.ts → member-import-l7j087-X.d.ts} +1 -1
  27. package/dist/{path-CoJI_rv9.d.ts → path-BKKAG8ti.d.cts} +5 -4
  28. package/dist/{path-Q4WIJjcE.d.cts → path-CdqBYuYi.d.ts} +5 -4
  29. package/dist/realtime.d.cts +4 -3
  30. package/dist/realtime.d.ts +4 -3
  31. package/dist/schemas.cjs +79 -41
  32. package/dist/schemas.cjs.map +1 -1
  33. package/dist/schemas.d.cts +207 -63
  34. package/dist/schemas.d.ts +207 -63
  35. package/dist/schemas.js +78 -42
  36. package/dist/schemas.js.map +1 -1
  37. package/dist/{tasks-BdYhYUpU.d.cts → tasks-By6Bzhwy.d.cts} +1026 -850
  38. package/dist/{tasks-BdYhYUpU.d.ts → tasks-By6Bzhwy.d.ts} +1026 -850
  39. package/dist/{types-DlfADjPR.d.cts → types-BXaWYGHj.d.cts} +2 -1
  40. package/dist/{types-DlfADjPR.d.ts → types-BXaWYGHj.d.ts} +2 -1
  41. package/package.json +5 -5
  42. package/dist/chunk-BQOKENBF.js.map +0 -1
  43. package/dist/chunk-HXVJF54M.js.map +0 -1
@@ -248,6 +248,37 @@ type EventRuleResponseTriggerParams = {
248
248
  * Group: data
249
249
  */
250
250
 
251
+ /**
252
+ * What an ordinary Form edit may change on one connector-owned field.
253
+ *
254
+ * Read-only and value-free: the field's slug, its connector Member field
255
+ * key (``null`` for a field the connector declares in code), the kind of
256
+ * ownership, the properties a customer may edit, and the closed reason
257
+ * name and description are locked when they are. Every property not
258
+ * listed -- slug, key, type, requiredness, computation, validation, adding
259
+ * and removing the field -- changes only through the connection's sync.
260
+ */
261
+ interface ConnectorFieldCapabilityResponse {
262
+ slug: string;
263
+ connectorKey?: string | null;
264
+ ownership: ConnectorFieldCapabilityResponseOwnership;
265
+ editableProperties: ConnectorFieldCapabilityResponseEditablePropertiesItem[];
266
+ lockReason?: 'connector_declared_field' | null;
267
+ }
268
+ type ConnectorFieldCapabilityResponseEditablePropertiesItem = typeof ConnectorFieldCapabilityResponseEditablePropertiesItem[keyof typeof ConnectorFieldCapabilityResponseEditablePropertiesItem];
269
+ declare const ConnectorFieldCapabilityResponseEditablePropertiesItem: {
270
+ readonly name: "name";
271
+ readonly description: "description";
272
+ readonly position: "position";
273
+ readonly sensitivity: "sensitivity";
274
+ readonly categories: "categories";
275
+ };
276
+ type ConnectorFieldCapabilityResponseOwnership = typeof ConnectorFieldCapabilityResponseOwnership[keyof typeof ConnectorFieldCapabilityResponseOwnership];
277
+ declare const ConnectorFieldCapabilityResponseOwnership: {
278
+ readonly declared: "declared";
279
+ readonly retired: "retired";
280
+ readonly member_field: "member_field";
281
+ };
251
282
  interface DataRecordResponse {
252
283
  id: number;
253
284
  uuid: string;
@@ -325,6 +356,7 @@ interface DataTypeResponse {
325
356
  owningConnectionName?: string | null;
326
357
  datasetKey?: string | null;
327
358
  datasetCardinality?: DataTypeResponseDatasetCardinality;
359
+ connectorFields?: ConnectorFieldCapabilityResponse[] | null;
328
360
  }
329
361
  type DataTypeResponseDatasetCardinality = typeof DataTypeResponseDatasetCardinality[keyof typeof DataTypeResponseDatasetCardinality] | null;
330
362
  declare const DataTypeResponseDatasetCardinality: {
@@ -360,6 +392,8 @@ interface SchemaField {
360
392
  referencedTypeId?: number | null;
361
393
  /** Server-issued reference field identity; preserve on schema round trips */
362
394
  referenceFieldId?: number | null;
395
+ /** Server-owned: the connector Member field key this field stores on a connection's bound member profile Form. Never accepted from a customer edit; preserve on schema round trips. */
396
+ connectorKey?: string | null;
363
397
  /** Whether to index this field */
364
398
  shouldIndex?: boolean;
365
399
  /** Whether only admins can see this field */
@@ -415,545 +449,801 @@ declare const SchemaFieldSensitivity: {
415
449
  /**
416
450
  * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
417
451
  * (group map from emit_openapi.py). Do not edit manually.
418
- * Group: account
452
+ * Group: member
419
453
  */
420
454
 
421
455
  /**
422
- * One billing customer an account holds a role on.
423
- */
424
- interface AccountCustomerRef {
425
- id: number;
426
- name?: string | null;
427
- }
428
- /**
429
- * Base account response for non-admin endpoints.
430
- *
431
- * Note: With Verified Credential Architecture, if email/phone is set,
432
- * it's verified by construction. The *_verified_at timestamps record when.
433
- * Credentials are IMMUTABLE once set.
456
+ * Response model for agent configuration.
434
457
  */
435
- interface AccountResponse {
458
+ interface AgentConfigResponse {
436
459
  id: number;
437
- uuid: string;
438
- loggedIn: boolean;
439
- avatarUrl: string | null;
440
- email: string | null;
441
- phone: string | null;
442
- emailVerifiedAt: string | null;
443
- phoneVerifiedAt: string | null;
444
- name: string | null;
445
- createdAt: string;
446
- isSuperuser: boolean;
447
- enabled: boolean;
448
- signupWorkspaceId: number | null;
449
- tosAccepted: boolean;
450
- optedOut: boolean;
451
- stripeCustomerId: string | null;
452
- locale: string | null;
453
- timezone: string | null;
454
- }
455
- interface AdminAccountMembershipResponse$1 {
456
- workspaceUuid: string;
457
- workspaceName: string;
458
- role: string;
460
+ chatModelId: string;
461
+ chatModelConfig?: AgentConfigResponseChatModelConfig;
462
+ realtimeModelId?: string | null;
463
+ realtimeModelConfig?: AgentConfigResponseRealtimeModelConfig;
464
+ systemPrompt: string;
465
+ maxDailyActions?: number | null;
466
+ tools?: string[] | null;
467
+ codeInterpreterEnabled?: boolean;
468
+ webBrowserEnabled?: boolean;
469
+ memoryConfig?: AgentMemoryConfig$1 | null;
470
+ presetDigest: string;
459
471
  createdAt: string;
460
- tosAccepted: boolean;
461
- memberRoleId: number;
462
- memberId: number;
472
+ updatedAt: string;
463
473
  }
474
+ type AgentConfigResponseChatModelConfig = {
475
+ [key: string]: unknown;
476
+ } | null;
477
+ type AgentConfigResponseRealtimeModelConfig = {
478
+ [key: string]: unknown;
479
+ } | null;
464
480
  /**
465
- * Response for an account's organization membership.
481
+ * Memory strategies available to an Agent.
466
482
  */
467
- interface AdminAccountOrgMembershipResponse {
468
- organizationId: number;
469
- organizationUuid: string;
470
- organizationName: string;
471
- organizationSlug: string;
472
- organizationLogoUrl: string | null;
473
- role: string;
474
- name: string | null;
475
- accountName: string | null;
476
- externalId: string | null;
477
- hasBillingAccess?: boolean;
478
- createdAt: string;
479
- updatedAt: string;
483
+ interface AgentMemoryConfig$1 {
484
+ enabled?: boolean;
485
+ preferences?: boolean;
486
+ semantic?: boolean;
487
+ summaries?: boolean;
488
+ episodic?: boolean;
480
489
  }
481
490
  /**
482
- * Detailed account response for admin endpoints including related entities
491
+ * Response model for an agent (Member + agent config via JTI).
492
+ *
493
+ * Agents are first-class members that can communicate via DMs, email, SMS, and voice.
494
+ * They have their own identity (name, description) and AI configuration (model, system prompt).
483
495
  */
484
- interface AdminAccountResponse {
496
+ interface AgentResponse {
485
497
  id: number;
486
498
  uuid: string;
487
- loggedIn: boolean;
488
- avatarUrl: string | null;
489
- email: string | null;
490
- phone: string | null;
491
- emailVerifiedAt: string | null;
492
- phoneVerifiedAt: string | null;
493
- name: string | null;
499
+ name?: string | null;
500
+ title?: string | null;
501
+ description?: string | null;
502
+ email?: string | null;
503
+ phone?: string | null;
504
+ externalId?: string | null;
505
+ memberRoleId: number;
506
+ memberRoleName?: string | null;
507
+ memberType?: string;
508
+ isArchived?: boolean;
509
+ homeFolderId?: number | null;
494
510
  createdAt: string;
495
- isSuperuser: boolean;
496
- enabled: boolean;
497
- signupWorkspaceId: number | null;
498
- tosAccepted: boolean;
499
- optedOut: boolean;
500
- stripeCustomerId: string | null;
501
- locale: string | null;
502
- timezone: string | null;
503
- customers?: AccountCustomerRef[];
504
- pendingDeletion?: boolean;
505
- deletionRequestedAt?: string | null;
511
+ updatedAt: string;
512
+ labels?: MemberLabelResponse[];
513
+ config: AgentConfigResponse;
506
514
  }
507
515
  /**
508
- * Response model for when a new API key is created, including the full key.
516
+ * Summary of the anonymous member's interaction (usually a single call).
509
517
  */
510
- interface ApiKeyCreatedResponse {
511
- id: number;
512
- uuid: string;
513
- name: string;
514
- keyPrefix: string;
515
- createdAt: string;
516
- expiresAt?: string | null;
517
- lastUsedAt?: string | null;
518
- enabled: boolean;
519
- scopes: string[];
520
- appId?: number | null;
521
- dataUseMode?: DataUseMode;
522
- key: string;
518
+ interface AnonymousInteractionResponse {
519
+ chatId: number | null;
520
+ chatTitle: string | null;
521
+ chatSummary: string | null;
522
+ callId: number | null;
523
+ callStatus: string | null;
524
+ callCreatedAt: string | null;
525
+ callDurationSeconds: number | null;
523
526
  }
524
527
  /**
525
- * Response model for API key information.
528
+ * Response model for anonymous member resolution records.
526
529
  */
527
- interface ApiKeyResponse {
530
+ interface AnonymousMemberResolutionResponse {
528
531
  id: number;
529
- uuid: string;
530
- name: string;
531
- keyPrefix: string;
532
+ anonymousMemberId: number | null;
533
+ anonymousMemberName: string | null;
534
+ identifierType: string;
535
+ identifierValue: string;
536
+ status: string;
537
+ resolvedToMemberId: number | null;
538
+ resolvedToMemberName: string | null;
539
+ resolvedByMemberId: number | null;
540
+ resolvedByMemberName: string | null;
541
+ resolutionNotes: string | null;
532
542
  createdAt: string;
533
- expiresAt?: string | null;
534
- lastUsedAt?: string | null;
535
- enabled: boolean;
536
- scopes: string[];
537
- appId?: number | null;
538
- dataUseMode?: DataUseMode;
539
- }
540
- /**
541
- * Response after canceling a credential change invitation.
542
- */
543
- interface CancelCredentialChangeInviteResponse {
544
- success: boolean;
545
- message: string;
543
+ resolvedAt: string | null;
544
+ interaction: AnonymousInteractionResponse | null;
546
545
  }
547
546
  /**
548
- * Response after canceling a credential change request.
547
+ * Bulk create members response.
549
548
  */
550
- interface CancelCredentialChangeResponse {
549
+ interface BulkCreateMembersResponse {
550
+ importedCount: number;
551
+ totalCount: number;
551
552
  success: boolean;
552
- message: string;
553
+ results: BulkMemberResult[];
554
+ errors?: string[] | null;
555
+ conflictedCount?: number;
556
+ skippedCount?: number;
553
557
  }
554
558
  /**
555
- * Response after confirming a credential change invitation.
559
+ * Per-member output for bulk creation.
560
+ *
561
+ * ``conflict`` and ``skipped`` are distinct from ``failed``: nothing was
562
+ * written and the operator can act on the row (resubmit it edited, or with a
563
+ * ``conflictResolution``). ``conflicts`` is populated only for ``conflict``.
556
564
  */
557
- interface CredentialChangeInviteConfirmResponse {
558
- success: boolean;
559
- message: string;
560
- credentialType?: CredentialChangeInviteConfirmResponseCredentialType;
565
+ interface BulkMemberResult {
566
+ index: number;
567
+ status: BulkMemberResultStatus;
568
+ memberId?: number | null;
569
+ externalId?: string | null;
570
+ error?: string | null;
571
+ conflicts?: ImportContactConflict[] | null;
572
+ sharedContacts?: string[];
561
573
  }
562
- type CredentialChangeInviteConfirmResponseCredentialType = typeof CredentialChangeInviteConfirmResponseCredentialType[keyof typeof CredentialChangeInviteConfirmResponseCredentialType] | null;
563
- declare const CredentialChangeInviteConfirmResponseCredentialType: {
564
- readonly email: "email";
565
- readonly phone: "phone";
574
+ type BulkMemberResultStatus = typeof BulkMemberResultStatus[keyof typeof BulkMemberResultStatus];
575
+ declare const BulkMemberResultStatus: {
576
+ readonly created: "created";
577
+ readonly updated: "updated";
578
+ readonly failed: "failed";
579
+ readonly conflict: "conflict";
580
+ readonly skipped: "skipped";
566
581
  };
567
582
  /**
568
- * Response with details of a credential change invitation.
583
+ * One unmet requirement of a surface capability.
569
584
  *
570
- * Used for the confirmation page to show what change is being proposed.
585
+ * ``subject`` says who can remediate it (workspace admin vs the member),
586
+ * mirroring the ability-requirements finding shape.
571
587
  */
572
- interface CredentialChangeInviteDetailsResponse {
573
- id: number;
574
- credentialType: CredentialChangeInviteDetailsResponseCredentialType;
575
- newValue: string;
576
- workspaceName: string;
577
- workspaceUuid: string;
578
- initiatedByName: string | null;
579
- createdAt: string;
580
- expiresAt: string;
581
- isExpired: boolean;
582
- isValid: boolean;
588
+ interface CapabilityRequirementFinding {
589
+ kind: CapabilityRequirementFindingKind;
590
+ slug: string;
591
+ subject: CapabilityRequirementFindingSubject;
583
592
  }
584
- type CredentialChangeInviteDetailsResponseCredentialType = typeof CredentialChangeInviteDetailsResponseCredentialType[keyof typeof CredentialChangeInviteDetailsResponseCredentialType];
585
- declare const CredentialChangeInviteDetailsResponseCredentialType: {
586
- readonly email: "email";
587
- readonly phone: "phone";
593
+ type CapabilityRequirementFindingKind = typeof CapabilityRequirementFindingKind[keyof typeof CapabilityRequirementFindingKind];
594
+ declare const CapabilityRequirementFindingKind: {
595
+ readonly feature: "feature";
596
+ readonly member_scope: "member_scope";
597
+ };
598
+ type CapabilityRequirementFindingSubject = typeof CapabilityRequirementFindingSubject[keyof typeof CapabilityRequirementFindingSubject];
599
+ declare const CapabilityRequirementFindingSubject: {
600
+ readonly org: "org";
601
+ readonly workspace: "workspace";
602
+ readonly member: "member";
588
603
  };
589
604
  /**
590
- * Response after creating a credential change invitation.
591
- */
592
- interface CredentialChangeInviteResponse {
593
- id: number;
594
- credentialType: CredentialChangeInviteResponseCredentialType;
595
- maskedNewValue: string;
596
- expiresAt: string;
597
- message: string;
605
+ * Resolved availability of one surface capability for one member.
606
+ *
607
+ * ``enabled`` is the full conjunction (feature available AND authorized).
608
+ * ``missing`` enumerates the unmet requirements with their subjects so the
609
+ * client can render the right affordance without re-deriving the gate.
610
+ */
611
+ interface CapabilityStatus {
612
+ slug: string;
613
+ enabled: boolean;
614
+ missing: CapabilityRequirementFinding[];
598
615
  }
599
- type CredentialChangeInviteResponseCredentialType = typeof CredentialChangeInviteResponseCredentialType[keyof typeof CredentialChangeInviteResponseCredentialType];
600
- declare const CredentialChangeInviteResponseCredentialType: {
601
- readonly email: "email";
602
- readonly phone: "phone";
603
- };
604
616
  /**
605
- * Response after requesting a credential change.
617
+ * Response model for the create-signup endpoint.
606
618
  */
607
- interface CredentialChangeRequestResponse {
608
- id: number;
609
- credentialType: CredentialChangeRequestResponseCredentialType;
610
- expiresAt: string;
611
- message: string;
619
+ interface CreateSignupResponse {
620
+ token: string;
621
+ account: SignupAccountResponse;
622
+ member: SignupMemberResponse;
623
+ wasCreated: boolean;
624
+ warnings?: DataRecordFieldWarning[];
612
625
  }
613
- type CredentialChangeRequestResponseCredentialType = typeof CredentialChangeRequestResponseCredentialType[keyof typeof CredentialChangeRequestResponseCredentialType];
614
- declare const CredentialChangeRequestResponseCredentialType: {
615
- readonly email: "email";
616
- readonly phone: "phone";
617
- };
618
626
  /**
619
- * Response after verifying a credential change.
627
+ * Response for the current user's member profile.
628
+ *
629
+ * Extends WorkspaceMemberResponse with scopes and org role - the effective
630
+ * permissions that the API honors for this user in this workspace context.
620
631
  */
621
- interface CredentialChangeVerifyResponse {
622
- success: boolean;
623
- message: string;
624
- credentialType?: CredentialChangeVerifyResponseCredentialType;
632
+ interface CurrentMemberResponse {
633
+ id: number;
634
+ uuid: string;
635
+ role: string | null;
636
+ tosAccepted: boolean;
637
+ accountTosAccepted: boolean | null;
638
+ accountUuid: string | null;
639
+ createdAt: string;
640
+ updatedAt: string;
641
+ name: string | null;
642
+ title?: string | null;
643
+ description: string | null;
644
+ phone: string | null;
645
+ phoneType: string | null;
646
+ email: string | null;
647
+ externalId: string | null;
648
+ dateOfBirth?: string | null;
649
+ emailVerified?: boolean;
650
+ phoneVerified?: boolean;
651
+ notifySms: boolean;
652
+ smsDisabledReason?: SmsDisabledReason | null;
653
+ smsDisabledAt?: string | null;
654
+ notifyEmail: boolean;
655
+ notifyVoice: boolean;
656
+ notifyWhatsapp?: boolean;
657
+ locale: string | null;
658
+ memberRoleId: number;
659
+ memberRoleName: string | null;
660
+ memberRoleSystemKey?: string | null;
661
+ homeFolderId?: number | null;
662
+ labels?: MemberLabelResponse[];
663
+ accountEnabled?: boolean | null;
664
+ isOrgOwner?: boolean | null;
665
+ isSuperuser?: boolean | null;
666
+ orgRole?: string | null;
667
+ timezone?: string | null;
668
+ memberType?: string;
669
+ testMemberKind?: CurrentMemberResponseTestMemberKind;
670
+ personaId?: number | null;
671
+ isArchived?: boolean;
672
+ isImportProtected?: boolean;
673
+ usagePaused?: boolean;
674
+ canLogin?: boolean;
675
+ experimentGroup?: MemberExperimentGroupSummary | null;
676
+ sharedContactPlacements?: SharedContactResponse[];
677
+ scopes?: string[];
678
+ /** Per-member surface-capability decisions. slug → {enabled, missing}. Each capability composes workspace feature availability with this member's scope authorization. See lib/capabilities/surfaces.py for CapabilityStatus and CapabilityRequirementFinding definitions. */
679
+ capabilities?: CurrentMemberResponseCapabilities;
625
680
  }
626
- type CredentialChangeVerifyResponseCredentialType = typeof CredentialChangeVerifyResponseCredentialType[keyof typeof CredentialChangeVerifyResponseCredentialType] | null;
627
- declare const CredentialChangeVerifyResponseCredentialType: {
628
- readonly email: "email";
629
- readonly phone: "phone";
681
+ /**
682
+ * Per-member surface-capability decisions. slug → {enabled, missing}. Each capability composes workspace feature availability with this member's scope authorization. See lib/capabilities/surfaces.py for CapabilityStatus and CapabilityRequirementFinding definitions.
683
+ */
684
+ type CurrentMemberResponseCapabilities = {
685
+ [key: string]: CapabilityStatus;
686
+ };
687
+ type CurrentMemberResponseTestMemberKind = typeof CurrentMemberResponseTestMemberKind[keyof typeof CurrentMemberResponseTestMemberKind] | null;
688
+ declare const CurrentMemberResponseTestMemberKind: {
689
+ readonly test: "test";
690
+ readonly eval: "eval";
630
691
  };
631
692
  /**
632
- * What a *credential* may carry (ADR-18 §1), not what a member may see.
693
+ * A soft-warning entry for a DataRecord field schema mismatch.
633
694
  *
634
- * This is an axis on the connection, deliberately not a scope: scopes are
635
- * additive grants for cross-member access, and a member's own data is reached
636
- * with no scope at all, so no scope value can express "this channel must not
637
- * carry PHI". Computed at mint time and mutable afterwards **only toward**
638
- * :attr:`NO_PHI` — the same "narrows, never widens" doctrine as
639
- * ``scope_restriction`` and ``Device.enrollment_scope_ceiling``. Widening is a
640
- * re-consent, i.e. revoke and re-mint under lifted conditions.
695
+ * Emitted when an API caller sends a field slug that is not declared
696
+ * on the target DataType's schema. The server silently skips the
697
+ * field (for backward-compatibility — callers depend on unknown slugs
698
+ * being ignored rather than rejected with 400) and attaches one of
699
+ * these to the response so the caller can surface or fix the drift.
700
+ *
701
+ * API-facing camelCase to match other signup response fields.
641
702
  */
642
- type DataUseMode = typeof DataUseMode[keyof typeof DataUseMode];
643
- declare const DataUseMode: {
644
- readonly unrestricted: "unrestricted";
645
- readonly no_phi: "no_phi";
646
- };
647
- interface LoginResponse {
648
- token: string;
649
- accountId: number;
650
- accountName?: string | null;
651
- accountUuid?: string | null;
652
- requiresTwoFactor?: boolean | null;
653
- availableTwoFactorMethods?: unknown[] | null;
654
- sessionKind?: SessionKind | 'widget' | null;
655
- expiresAt?: string | null;
703
+ interface DataRecordFieldWarning {
704
+ code: 'unknown_data_record_field';
705
+ dataTypeSlug: string;
706
+ fieldSlug: string;
707
+ message: string;
656
708
  }
657
709
  /**
658
- * Response for a pending credential change invitation.
710
+ * One contact field a row disagrees with the matched Account about.
711
+ *
712
+ * ``row_value`` and ``account_value`` are **normalized** (email lower-cased,
713
+ * phone E.164) so the operator compares — and resubmits — the same shape the
714
+ * matcher used.
715
+ *
716
+ * ``account_value`` is ``None`` in cases the client cannot tell apart, by
717
+ * design: the Account holds nothing for the field (keeping the Account then
718
+ * drops the row's value — exactly the loss this conflict surfaces), or the
719
+ * caller is not authorized to read it (no ``MEMBERS_ADMIN``, or the Account has
720
+ * no Member in their workspace). Clients render ``None`` as "unavailable";
721
+ * every resolution works either way.
722
+ *
723
+ * PHI: see the module docstring.
659
724
  */
660
- interface PendingCredentialChangeInviteResponse {
661
- id: number;
662
- credentialType: PendingCredentialChangeInviteResponseCredentialType;
663
- maskedNewValue: string;
664
- workspaceName: string;
665
- initiatedByName: string | null;
666
- createdAt: string;
667
- expiresAt: string;
668
- isExpired: boolean;
669
- status: string;
725
+ interface ImportContactConflict {
726
+ field: ImportContactConflictField;
727
+ rowValue: string;
728
+ accountValue?: string | null;
670
729
  }
671
- type PendingCredentialChangeInviteResponseCredentialType = typeof PendingCredentialChangeInviteResponseCredentialType[keyof typeof PendingCredentialChangeInviteResponseCredentialType];
672
- declare const PendingCredentialChangeInviteResponseCredentialType: {
730
+ type ImportContactConflictField = typeof ImportContactConflictField[keyof typeof ImportContactConflictField];
731
+ declare const ImportContactConflictField: {
673
732
  readonly email: "email";
674
733
  readonly phone: "phone";
675
734
  };
676
735
  /**
677
- * Response for a pending credential change request.
736
+ * Response model for member credentials.
678
737
  */
679
- interface PendingCredentialChangeResponse {
738
+ interface MemberCredentialResponse {
680
739
  id: number;
681
- credentialType: PendingCredentialChangeResponseCredentialType;
682
- maskedNewValue: string;
740
+ uuid?: string | null;
741
+ displayName?: string | null;
742
+ isDefault?: boolean;
743
+ provider?: string | null;
744
+ externalUserId?: string | null;
745
+ externalTenantId?: string | null;
746
+ externalUsername?: string | null;
747
+ externalEmail?: string | null;
748
+ emailVerified?: boolean;
749
+ connectedAt?: string | null;
750
+ lastUsedAt?: string | null;
683
751
  createdAt: string;
684
- expiresAt: string;
685
- isExpired: boolean;
686
- attempts: number;
752
+ appConnectionId?: number | null;
753
+ appConnectionName?: string | null;
754
+ icon?: string | null;
755
+ iconUrl?: string | null;
687
756
  }
688
- type PendingCredentialChangeResponseCredentialType = typeof PendingCredentialChangeResponseCredentialType[keyof typeof PendingCredentialChangeResponseCredentialType];
689
- declare const PendingCredentialChangeResponseCredentialType: {
690
- readonly email: "email";
691
- readonly phone: "phone";
692
- };
693
757
  /**
694
- * Response model for recovery codes
758
+ * Experiment group assignment included on member list rows when filtered by experiment.
695
759
  */
696
- interface RecoveryCodeResponse {
697
- /** List of recovery codes (only shown once) */
698
- codes: string[];
699
- /** When the codes were generated */
700
- generatedAt: string;
701
- warning?: string;
760
+ interface MemberExperimentGroupSummary {
761
+ groupId: number;
762
+ groupName: string;
763
+ groupSlug: string;
764
+ isControl: boolean;
702
765
  }
703
- interface SendLoginCodeResponse {
704
- success: boolean;
705
- message?: string | null;
766
+ /**
767
+ * Response model for list of field definitions available in a workspace.
768
+ */
769
+ interface MemberFieldDefinitionListResponse {
770
+ items: MemberFieldDefinitionResponse[];
706
771
  }
707
772
  /**
708
- * Response for TOTP setup initiation
773
+ * A Member field key available in the workspace, with every owner.
774
+ *
775
+ * ``key`` is the exact key sync rules target (``field:<key>`` /
776
+ * ``managed_field``) and expressions read (``source.fields["<key>"]``,
777
+ * ``member.fields["<key>"]``); ``label`` is its display name, or the key
778
+ * itself when its owners disagree. ``sources`` lists every owner's
779
+ * definition; ``serviceName`` / ``serviceType`` are set only when exactly
780
+ * one connection defines the key.
709
781
  */
710
- interface TOTPSetupResponse {
711
- /** Session ID for completing setup */
712
- setupId: string;
713
- /** Base32 encoded TOTP secret */
714
- secret: string;
715
- /** QR code URL for easy setup */
716
- qrCodeUrl: string;
717
- /** Manual entry key for authenticator apps */
718
- manualEntryKey: string;
719
- /** Issuer name for TOTP */
720
- issuer: string;
782
+ interface MemberFieldDefinitionResponse {
783
+ key: string;
784
+ label: string;
785
+ serviceName?: string | null;
786
+ serviceType?: string | null;
787
+ sources?: MemberFieldSourceResponse[];
721
788
  }
722
789
  /**
723
- * Response model for 2FA method details
790
+ * Response model for list of member fields.
724
791
  */
725
- interface TwoFactorMethodResponse$1 {
792
+ interface MemberFieldListResponse {
793
+ items: MemberFieldResponse[];
794
+ total: number;
795
+ }
796
+ /**
797
+ * Response model for a member field.
798
+ *
799
+ * Only a customer-owned field has an id. When id is None, this is a
800
+ * connector value read from its home (read-only here; a business value is
801
+ * edited through its Form) or, with ``isPlaceholder``, a managed field
802
+ * definition that has no value for this member yet.
803
+ *
804
+ * ``kind`` / ``displayName`` and the Form identifiers describe the owner
805
+ * (see :class:`MemberFieldSourceResponse`); ``recordId`` is this Member's
806
+ * record of that Form when one exists and the caller may read the Form --
807
+ * ``null`` with a ``formId`` means the Member has no record yet.
808
+ * ``syncConflictMode`` is a synced row's connection's current Member
809
+ * conflict policy (``remote_wins`` / ``local_wins`` / ``skip``), for
810
+ * value-edit guidance only. ``writer`` is which kind of enabled rule writes
811
+ * the key now: ``member_rule`` (under that policy), ``related_object_rule``
812
+ * (always overwrites), ``mixed`` (both), or null (no enabled rule does).
813
+ */
814
+ interface MemberFieldResponse {
815
+ id: number | null;
816
+ memberId: number;
817
+ key: string;
818
+ value: string;
819
+ serviceId: number | null;
820
+ serviceName: string | null;
821
+ serviceType: string | null;
822
+ createdAt: string | null;
823
+ updatedAt: string | null;
824
+ isPlaceholder?: boolean;
825
+ kind: MemberFieldResponseKind;
826
+ displayName?: string | null;
827
+ connectionEnabled?: boolean | null;
828
+ configured?: boolean;
829
+ formId?: number | null;
830
+ formSlug?: string | null;
831
+ fieldSlug?: string | null;
832
+ recordId?: number | null;
833
+ scope?: string | null;
834
+ scopeLabel?: string | null;
835
+ syncConflictMode?: MemberFieldResponseSyncConflictMode;
836
+ writer?: MemberFieldResponseWriter;
837
+ }
838
+ type MemberFieldResponseKind = typeof MemberFieldResponseKind[keyof typeof MemberFieldResponseKind];
839
+ declare const MemberFieldResponseKind: {
840
+ readonly customer: "customer";
841
+ readonly synced: "synced";
842
+ readonly connection_id: "connection_id";
843
+ };
844
+ type MemberFieldResponseSyncConflictMode = typeof MemberFieldResponseSyncConflictMode[keyof typeof MemberFieldResponseSyncConflictMode] | null;
845
+ declare const MemberFieldResponseSyncConflictMode: {
846
+ readonly local_wins: "local_wins";
847
+ readonly remote_wins: "remote_wins";
848
+ readonly skip: "skip";
849
+ };
850
+ type MemberFieldResponseWriter = typeof MemberFieldResponseWriter[keyof typeof MemberFieldResponseWriter] | null;
851
+ declare const MemberFieldResponseWriter: {
852
+ readonly member_rule: "member_rule";
853
+ readonly related_object_rule: "related_object_rule";
854
+ readonly mixed: "mixed";
855
+ };
856
+ /**
857
+ * One owner's definition of a Member field key: provenance, never a value.
858
+ *
859
+ * ``kind`` is ``customer`` (a Field the customer owns), ``synced`` (a
860
+ * connection writes it to its bound Form) or ``connection_id`` (a
861
+ * connection's Member link). ``displayName`` is presentation only; the key
862
+ * and every CEL path stay as they are. ``configured`` is false for a synced
863
+ * field a removed rule left on the Form (retained). Form identifiers are
864
+ * present only for a synced key with a field on its connection's live Form
865
+ * that the caller may read: ``formReference`` is the CEL path addressing
866
+ * that one connection's Form field, built from the persisted slugs.
867
+ * ``scope`` / ``scopeLabel`` are a Connection ID's link scope and its
868
+ * configuration label (a Monday board's name).
869
+ */
870
+ interface MemberFieldSourceResponse {
871
+ kind: MemberFieldSourceResponseKind;
872
+ displayName: string;
873
+ valueType?: string;
874
+ connectionId?: number | null;
875
+ connectionName?: string | null;
876
+ connectionType?: string | null;
877
+ connectionEnabled?: boolean | null;
878
+ configured?: boolean;
879
+ formId?: number | null;
880
+ formSlug?: string | null;
881
+ fieldSlug?: string | null;
882
+ formReference?: string | null;
883
+ scope?: string | null;
884
+ scopeLabel?: string | null;
885
+ }
886
+ type MemberFieldSourceResponseKind = typeof MemberFieldSourceResponseKind[keyof typeof MemberFieldSourceResponseKind];
887
+ declare const MemberFieldSourceResponseKind: {
888
+ readonly customer: "customer";
889
+ readonly synced: "synced";
890
+ readonly connection_id: "connection_id";
891
+ };
892
+ /**
893
+ * Response model for a member filter.
894
+ */
895
+ interface MemberFilterResponse {
726
896
  id: number;
727
- methodType: string;
897
+ uuid: string;
728
898
  name: string;
729
- enabled: boolean;
899
+ description?: string | null;
900
+ pinned?: boolean | null;
730
901
  createdAt: string;
731
- lastUsedAt?: string | null;
902
+ updatedAt: string;
903
+ query?: MemberFilterResponseQuery;
732
904
  }
905
+ type MemberFilterResponseQuery = {
906
+ [key: string]: unknown;
907
+ } | null;
733
908
  /**
734
- * Generic response for 2FA operations
909
+ * Why an import row was refused.
910
+ *
911
+ * ``code`` is a stable identifier: GRA-5545 phone-only identity mismatch
912
+ * (``identity_mismatch_on_phone_match``), GH #22393 import protection
913
+ * (``operator_role`` / ``import_protected``), or a contact disagreement with
914
+ * the matched Account (``contact_conflict_with_account``). ``fields`` is empty
915
+ * for protection refusals.
916
+ *
917
+ * ``conflicts`` is populated only for ``contact_conflict_with_account`` and is
918
+ * the one place a conflict carries VALUES — the operator has to compare the
919
+ * row's value against the Account's to choose a resolution. Its
920
+ * ``accountValue`` is withheld (``None``) unless the caller holds
921
+ * ``MEMBERS_ADMIN``; see ``member_import_contact_conflict``. Never logged.
735
922
  */
736
- interface TwoFactorOperationResponse {
737
- /** Whether the operation was successful */
738
- success: boolean;
739
- /** Human-readable message */
923
+ interface MemberImportConflictInfo {
924
+ code: string;
925
+ fields: string[];
926
+ conflicts?: ImportContactConflict[];
927
+ }
928
+ /**
929
+ * Identity values shown to the operator to compare a conflict row.
930
+ *
931
+ * Populated only for conflict rows in the preview response (PHI minimization).
932
+ */
933
+ interface MemberImportIdentitySnapshot {
934
+ name?: string | null;
935
+ dateOfBirth?: string | null;
936
+ }
937
+ /**
938
+ * One problem in an import file, located by row and column, without values.
939
+ */
940
+ interface MemberImportIssue {
941
+ /** CSV row number; data rows start at 2 because row 1 is the header. Null for a problem with the file or its header. */
942
+ row?: number | null;
943
+ /** Header text, only when it is slug-shaped (lower-case letters, digits, ``_``, ``.``, ``-``). Any other header is named by ``columnPosition`` alone, because a header can be a person's value. */
944
+ column?: string | null;
945
+ /** 1-based position of the column in the header row. */
946
+ columnPosition?: number | null;
947
+ code: MemberImportIssueCode;
948
+ /** One short sentence saying what is wrong. */
740
949
  message: string;
741
- /** ID of the affected 2FA method */
742
- methodId?: number | null;
950
+ /** One short sentence saying how to fix it. */
951
+ fix: string;
743
952
  }
744
953
  /**
745
- * Response for overall 2FA status
954
+ * Closed set of import problems. Codes are API: add, never rename.
746
955
  */
747
- interface TwoFactorStatusResponse$1 {
748
- /** Whether any 2FA method is enabled */
749
- enabled: boolean;
750
- /** List of configured 2FA methods */
751
- methods: TwoFactorMethodResponse$1[];
752
- /** Number of unused recovery codes */
753
- recoveryCodesCount: number;
754
- /** When recovery codes were last generated */
755
- lastRecoveryCodesGenerated?: string | null;
956
+ type MemberImportIssueCode = typeof MemberImportIssueCode[keyof typeof MemberImportIssueCode];
957
+ declare const MemberImportIssueCode: {
958
+ readonly csv_unreadable: "csv_unreadable";
959
+ readonly too_many_rows: "too_many_rows";
960
+ readonly duplicate_column: "duplicate_column";
961
+ readonly form_column_format: "form_column_format";
962
+ readonly form_data_type_unknown: "form_data_type_unknown";
963
+ readonly form_field_unknown: "form_field_unknown";
964
+ readonly member_field_column_format: "member_field_column_format";
965
+ readonly salesforce_not_connected: "salesforce_not_connected";
966
+ readonly member_keys_unknown: "member_keys_unknown";
967
+ readonly member_keys_uncorroborated: "member_keys_uncorroborated";
968
+ readonly notify_value_invalid: "notify_value_invalid";
969
+ readonly consent_date_invalid: "consent_date_invalid";
970
+ readonly date_of_birth_invalid: "date_of_birth_invalid";
971
+ readonly conflict_resolution_invalid: "conflict_resolution_invalid";
972
+ readonly salesforce_id_invalid: "salesforce_id_invalid";
973
+ readonly member_id_invalid: "member_id_invalid";
974
+ readonly member_uuid_invalid: "member_uuid_invalid";
975
+ readonly member_id_not_found: "member_id_not_found";
976
+ readonly member_uuid_not_found: "member_uuid_not_found";
977
+ readonly member_key_conflict: "member_key_conflict";
978
+ readonly phone_invalid: "phone_invalid";
979
+ readonly email_ambiguous: "email_ambiguous";
980
+ readonly member_archived: "member_archived";
981
+ readonly role_requires_account: "role_requires_account";
982
+ readonly contact_required: "contact_required";
983
+ readonly row_invalid: "row_invalid";
984
+ };
985
+ /**
986
+ * Which existing Member an import row matched, and how it matched.
987
+ */
988
+ interface MemberImportMatchInfo {
989
+ matchType: MemberImportMatchInfoMatchType;
990
+ memberId: number;
991
+ memberUuid: string;
756
992
  }
993
+ type MemberImportMatchInfoMatchType = typeof MemberImportMatchInfoMatchType[keyof typeof MemberImportMatchInfoMatchType];
994
+ declare const MemberImportMatchInfoMatchType: {
995
+ readonly id: "id";
996
+ readonly uuid: "uuid";
997
+ readonly external_id: "external_id";
998
+ readonly email: "email";
999
+ readonly phone: "phone";
1000
+ readonly account_email: "account_email";
1001
+ readonly account_phone: "account_phone";
1002
+ };
757
1003
  /**
758
- * Response for WebAuthn registration initiation
1004
+ * Read-only classification of an uploaded CSV before any write occurs.
759
1005
  */
760
- interface WebAuthnRegistrationResponse {
761
- /** Session ID for completing setup */
762
- setupId: string;
763
- /** Full WebAuthn credential creation options */
764
- credentialCreationOptions: WebAuthnRegistrationResponseCredentialCreationOptions;
1006
+ interface MemberImportPreviewResponse {
1007
+ previewPlanToken?: string | null;
1008
+ totalRows: number;
1009
+ summary: MemberImportPreviewSummary;
1010
+ rows: MemberImportPreviewRow[];
1011
+ ignoredColumns?: string[];
1012
+ issues?: MemberImportIssue[];
1013
+ issueCount?: number;
1014
+ }
1015
+ /**
1016
+ * One classified import row in the read-only preview response.
1017
+ */
1018
+ interface MemberImportPreviewRow {
1019
+ row: number;
1020
+ action: MemberImportPreviewRowAction;
1021
+ match?: MemberImportMatchInfo | null;
1022
+ conflict?: MemberImportConflictInfo | null;
1023
+ existingIdentity?: MemberImportIdentitySnapshot | null;
1024
+ incomingIdentity?: MemberImportIdentitySnapshot | null;
1025
+ proposedChanges?: string[];
1026
+ sharedContacts?: string[];
1027
+ error?: string | null;
1028
+ }
1029
+ type MemberImportPreviewRowAction = typeof MemberImportPreviewRowAction[keyof typeof MemberImportPreviewRowAction];
1030
+ declare const MemberImportPreviewRowAction: {
1031
+ readonly create: "create";
1032
+ readonly update: "update";
1033
+ readonly unchanged: "unchanged";
1034
+ readonly conflict: "conflict";
1035
+ readonly skipped: "skipped";
1036
+ readonly error: "error";
1037
+ };
1038
+ /**
1039
+ * Counts per classified action for an import preview.
1040
+ */
1041
+ interface MemberImportPreviewSummary {
1042
+ create?: number;
1043
+ update?: number;
1044
+ unchanged?: number;
1045
+ conflict?: number;
1046
+ skipped?: number;
1047
+ error?: number;
765
1048
  }
766
1049
  /**
767
- * Full WebAuthn credential creation options
1050
+ * One row's outcome within a run.
1051
+ *
1052
+ * PHI note: an index, a status, a closed reason code and the written member's
1053
+ * surrogate id — never a CSV cell, identifier, name, email, phone or field
1054
+ * value.
768
1055
  */
769
- type WebAuthnRegistrationResponseCredentialCreationOptions = {
770
- [key: string]: unknown;
771
- };
772
-
1056
+ interface MemberImportRunItemResponse {
1057
+ index: number;
1058
+ status: string;
1059
+ reasonCode?: string;
1060
+ detail?: string | null;
1061
+ memberId?: number | null;
1062
+ }
773
1063
  /**
774
- * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
775
- * (group map from emit_openapi.py). Do not edit manually.
776
- * Group: member
1064
+ * One durable members import run.
1065
+ *
1066
+ * Counters are the members import's own outcome vocabulary — ``created``,
1067
+ * ``updated``, ``unchanged``, ``conflicted``, ``skipped``, ``failed`` — not
1068
+ * the connector importer's link-reconciliation counters, which would label
1069
+ * rows with something they did not do.
777
1070
  */
778
-
1071
+ interface MemberImportRunSummaryResponse {
1072
+ runId: string;
1073
+ startedAt: string;
1074
+ completedAt?: string | null;
1075
+ status: string;
1076
+ total?: number;
1077
+ created?: number;
1078
+ updated?: number;
1079
+ unchanged?: number;
1080
+ conflicted?: number;
1081
+ skipped?: number;
1082
+ failed?: number;
1083
+ terminalError?: string | null;
1084
+ }
779
1085
  /**
780
- * Response model for agent configuration.
1086
+ * Response model for assistant label endpoints.
781
1087
  */
782
- interface AgentConfigResponse {
1088
+ interface MemberLabelResponse {
783
1089
  id: number;
784
- chatModelId: string;
785
- chatModelConfig?: AgentConfigResponseChatModelConfig;
786
- realtimeModelId?: string | null;
787
- realtimeModelConfig?: AgentConfigResponseRealtimeModelConfig;
788
- systemPrompt: string;
789
- maxDailyActions?: number | null;
790
- tools?: string[] | null;
791
- codeInterpreterEnabled?: boolean;
792
- webBrowserEnabled?: boolean;
793
- memoryConfig?: AgentMemoryConfig$1 | null;
794
- presetDigest: string;
795
- createdAt: string;
796
- updatedAt: string;
1090
+ uuid: string;
1091
+ name: string;
1092
+ slug: string;
1093
+ color: string;
1094
+ description: string | null;
797
1095
  }
798
- type AgentConfigResponseChatModelConfig = {
799
- [key: string]: unknown;
800
- } | null;
801
- type AgentConfigResponseRealtimeModelConfig = {
802
- [key: string]: unknown;
803
- } | null;
804
1096
  /**
805
- * Memory strategies available to an Agent.
1097
+ * Response model for file access within a member role.
806
1098
  */
807
- interface AgentMemoryConfig$1 {
808
- enabled?: boolean;
809
- preferences?: boolean;
810
- semantic?: boolean;
811
- summaries?: boolean;
812
- episodic?: boolean;
1099
+ interface MemberRoleFileAccessResponse {
1100
+ fileId: number;
1101
+ accessMode: number;
813
1102
  }
814
1103
  /**
815
- * Response model for an agent (Member + agent config via JTI).
816
- *
817
- * Agents are first-class members that can communicate via DMs, email, SMS, and voice.
818
- * They have their own identity (name, description) and AI configuration (model, system prompt).
1104
+ * Response model for folder access within a member role.
819
1105
  */
820
- interface AgentResponse {
1106
+ interface MemberRoleFolderAccessResponse {
1107
+ folderId: number;
1108
+ accessMode: number;
1109
+ }
1110
+ /**
1111
+ * Response model for member role endpoints.
1112
+ */
1113
+ interface MemberRoleResponse {
821
1114
  id: number;
822
1115
  uuid: string;
823
- name?: string | null;
824
- title?: string | null;
825
- description?: string | null;
826
- email?: string | null;
827
- phone?: string | null;
828
- externalId?: string | null;
829
- memberRoleId: number;
830
- memberRoleName?: string | null;
831
- memberType?: string;
832
- isArchived?: boolean;
833
- homeFolderId?: number | null;
1116
+ name: string;
1117
+ systemKey?: string | null;
1118
+ supportsUnclaimedMembers?: boolean;
1119
+ grantedScopes?: string[];
1120
+ dailyCreditLimit?: number | null;
1121
+ siteAudience?: string[];
1122
+ fileAccess?: MemberRoleFileAccessResponse[];
1123
+ folderAccess?: MemberRoleFolderAccessResponse[];
1124
+ memberCount?: number;
1125
+ isDefaultForNewMembers?: boolean;
834
1126
  createdAt: string;
835
1127
  updatedAt: string;
836
- labels?: MemberLabelResponse[];
837
- config: AgentConfigResponse;
838
1128
  }
839
- /**
840
- * Summary of the anonymous member's interaction (usually a single call).
841
- */
842
- interface AnonymousInteractionResponse {
843
- chatId: number | null;
844
- chatTitle: string | null;
845
- chatSummary: string | null;
846
- callId: number | null;
847
- callStatus: string | null;
848
- callCreatedAt: string | null;
849
- callDurationSeconds: number | null;
1129
+ interface MemoryListResponse {
1130
+ items: MemoryResponse$1[];
1131
+ total: number;
1132
+ }
1133
+ interface MemoryResponse$1 {
1134
+ id?: number | null;
1135
+ uuid?: string | null;
1136
+ key: string;
1137
+ type?: string;
1138
+ description: string;
1139
+ content?: string | null;
1140
+ priority?: number;
1141
+ createdAt?: string | null;
1142
+ updatedAt?: string | null;
850
1143
  }
851
1144
  /**
852
- * Response model for anonymous member resolution records.
1145
+ * Response for merge members operation.
853
1146
  */
854
- interface AnonymousMemberResolutionResponse {
855
- id: number;
856
- anonymousMemberId: number | null;
857
- anonymousMemberName: string | null;
858
- identifierType: string;
859
- identifierValue: string;
860
- status: string;
861
- resolvedToMemberId: number | null;
862
- resolvedToMemberName: string | null;
863
- resolvedByMemberId: number | null;
864
- resolvedByMemberName: string | null;
865
- resolutionNotes: string | null;
866
- createdAt: string;
867
- resolvedAt: string | null;
868
- interaction: AnonymousInteractionResponse | null;
1147
+ interface MergeMembersResponse {
1148
+ member: WorkspaceMemberResponse;
1149
+ mergedCount: number;
1150
+ dataRecordsTransferred: number;
869
1151
  }
870
1152
  /**
871
- * Bulk create members response.
1153
+ * Response with list of pending anonymous member resolutions.
872
1154
  */
873
- interface BulkCreateMembersResponse {
874
- importedCount: number;
875
- totalCount: number;
876
- success: boolean;
877
- results: BulkMemberResult[];
878
- errors?: string[] | null;
879
- conflictedCount?: number;
880
- skippedCount?: number;
1155
+ interface PendingAnonymousMembersResponse {
1156
+ items: AnonymousMemberResolutionResponse[];
1157
+ total: number;
881
1158
  }
882
1159
  /**
883
- * Per-member output for bulk creation.
1160
+ * A phone/email another member holds as primary, kept as a shared point.
884
1161
  *
885
- * ``conflict`` and ``skipped`` are distinct from ``failed``: nothing was
886
- * written and the operator can act on the row (resubmit it edited, or with a
887
- * ``conflictResolution``). ``conflicts`` is populated only for ``conflict``.
1162
+ * Returned on a member create/update so the client can say "stored as a
1163
+ * shared contact" and offer the explicit take-over
1164
+ * (``releaseContactFromMemberId``) without the write having failed. PHI-free:
1165
+ * a field NAME, the holding member's surrogate id and whether that member is
1166
+ * archived — never the value, which the caller supplied in the first place.
888
1167
  */
889
- interface BulkMemberResult {
890
- index: number;
891
- status: BulkMemberResultStatus;
892
- memberId?: number | null;
893
- externalId?: string | null;
894
- error?: string | null;
895
- conflicts?: ImportContactConflict[] | null;
896
- sharedContacts?: string[];
1168
+ interface SharedContactResponse {
1169
+ field: SharedContactResponseField;
1170
+ memberId: number;
1171
+ archived?: boolean;
897
1172
  }
898
- type BulkMemberResultStatus = typeof BulkMemberResultStatus[keyof typeof BulkMemberResultStatus];
899
- declare const BulkMemberResultStatus: {
900
- readonly created: "created";
901
- readonly updated: "updated";
902
- readonly failed: "failed";
903
- readonly conflict: "conflict";
904
- readonly skipped: "skipped";
1173
+ type SharedContactResponseField = typeof SharedContactResponseField[keyof typeof SharedContactResponseField];
1174
+ declare const SharedContactResponseField: {
1175
+ readonly phone: "phone";
1176
+ readonly email: "email";
905
1177
  };
906
1178
  /**
907
- * One unmet requirement of a surface capability.
908
- *
909
- * ``subject`` says who can remediate it (workspace admin vs the member),
910
- * mirroring the ability-requirements finding shape.
1179
+ * Response model for account data in signup response.
911
1180
  */
912
- interface CapabilityRequirementFinding {
913
- kind: CapabilityRequirementFindingKind;
914
- slug: string;
915
- subject: CapabilityRequirementFindingSubject;
1181
+ interface SignupAccountResponse {
1182
+ id: number;
1183
+ uuid: string;
1184
+ email?: string | null;
1185
+ phone?: string | null;
1186
+ name?: string | null;
1187
+ locale?: string | null;
1188
+ createdAt: string;
916
1189
  }
917
- type CapabilityRequirementFindingKind = typeof CapabilityRequirementFindingKind[keyof typeof CapabilityRequirementFindingKind];
918
- declare const CapabilityRequirementFindingKind: {
919
- readonly feature: "feature";
920
- readonly member_scope: "member_scope";
921
- };
922
- type CapabilityRequirementFindingSubject = typeof CapabilityRequirementFindingSubject[keyof typeof CapabilityRequirementFindingSubject];
923
- declare const CapabilityRequirementFindingSubject: {
924
- readonly org: "org";
925
- readonly workspace: "workspace";
926
- readonly member: "member";
927
- };
928
1190
  /**
929
- * Resolved availability of one surface capability for one member.
930
- *
931
- * ``enabled`` is the full conjunction (feature available AND authorized).
932
- * ``missing`` enumerates the unmet requirements with their subjects so the
933
- * client can render the right affordance without re-deriving the gate.
1191
+ * Response model for member data in signup response.
934
1192
  */
935
- interface CapabilityStatus {
936
- slug: string;
937
- enabled: boolean;
938
- missing: CapabilityRequirementFinding[];
1193
+ interface SignupMemberResponse {
1194
+ id: number;
1195
+ memberRoleId: number;
1196
+ createdAt: string;
1197
+ name?: string | null;
1198
+ description?: string | null;
1199
+ phone?: string | null;
1200
+ email?: string | null;
1201
+ externalId?: string | null;
1202
+ labels?: string[];
1203
+ tosAccepted: boolean;
939
1204
  }
940
1205
  /**
941
- * Response model for the create-signup endpoint.
1206
+ * Why SMS notifications were last turned off for a Member.
1207
+ *
1208
+ * A notification preference, not a consent record. An SMS STOP keeps its own
1209
+ * opt-out record and sets no reason here.
1210
+ */
1211
+ type SmsDisabledReason = typeof SmsDisabledReason[keyof typeof SmsDisabledReason];
1212
+ declare const SmsDisabledReason: {
1213
+ readonly upstream_deactivation: "upstream_deactivation";
1214
+ readonly manual: "manual";
1215
+ readonly other: "other";
1216
+ readonly default: "default";
1217
+ readonly crm_opt_out: "crm_opt_out";
1218
+ };
1219
+ /**
1220
+ * Aggregate member counts for a workspace (superuser admin view).
1221
+ *
1222
+ * Returns COUNTs only — never member rows — so no PHI is exposed. Lets a
1223
+ * superuser tally members across workspaces they are not a member of, filling
1224
+ * the gap where the workspace-scoped member endpoints require membership.
942
1225
  */
943
- interface CreateSignupResponse {
944
- token: string;
945
- account: SignupAccountResponse;
946
- member: SignupMemberResponse;
947
- wasCreated: boolean;
948
- warnings?: DataRecordFieldWarning[];
1226
+ interface WorkspaceMemberCountResponse {
1227
+ /** Workspace UUID */
1228
+ workspaceUuid: string;
1229
+ /** Numeric workspace ID */
1230
+ workspaceId: number;
1231
+ /** Total member rows (all member types, including archived) */
1232
+ totalMembers: number;
1233
+ /** Non-archived member rows (all member types) */
1234
+ activeMembers: number;
1235
+ /** Archived member rows (all member types) */
1236
+ archivedMembers: number;
1237
+ /** Non-archived member counts keyed by member_type (member, agent, anonymous, test) */
1238
+ activeByType?: WorkspaceMemberCountResponseActiveByType;
949
1239
  }
950
1240
  /**
951
- * Response for the current user's member profile.
952
- *
953
- * Extends WorkspaceMemberResponse with scopes and org role - the effective
954
- * permissions that the API honors for this user in this workspace context.
1241
+ * Non-archived member counts keyed by member_type (member, agent, anonymous, test)
955
1242
  */
956
- interface CurrentMemberResponse {
1243
+ type WorkspaceMemberCountResponseActiveByType = {
1244
+ [key: string]: number;
1245
+ };
1246
+ interface WorkspaceMemberResponse {
957
1247
  id: number;
958
1248
  uuid: string;
959
1249
  role: string | null;
@@ -973,6 +1263,8 @@ interface CurrentMemberResponse {
973
1263
  emailVerified?: boolean;
974
1264
  phoneVerified?: boolean;
975
1265
  notifySms: boolean;
1266
+ smsDisabledReason?: SmsDisabledReason | null;
1267
+ smsDisabledAt?: string | null;
976
1268
  notifyEmail: boolean;
977
1269
  notifyVoice: boolean;
978
1270
  notifyWhatsapp?: boolean;
@@ -988,519 +1280,378 @@ interface CurrentMemberResponse {
988
1280
  orgRole?: string | null;
989
1281
  timezone?: string | null;
990
1282
  memberType?: string;
1283
+ testMemberKind?: WorkspaceMemberResponseTestMemberKind;
1284
+ personaId?: number | null;
991
1285
  isArchived?: boolean;
992
1286
  isImportProtected?: boolean;
993
1287
  usagePaused?: boolean;
994
1288
  canLogin?: boolean;
995
1289
  experimentGroup?: MemberExperimentGroupSummary | null;
996
1290
  sharedContactPlacements?: SharedContactResponse[];
997
- scopes?: string[];
998
- /** Per-member surface-capability decisions. slug → {enabled, missing}. Each capability composes workspace feature availability with this member's scope authorization. See lib/capabilities/surfaces.py for CapabilityStatus and CapabilityRequirementFinding definitions. */
999
- capabilities?: CurrentMemberResponseCapabilities;
1000
1291
  }
1001
- /**
1002
- * Per-member surface-capability decisions. slug → {enabled, missing}. Each capability composes workspace feature availability with this member's scope authorization. See lib/capabilities/surfaces.py for CapabilityStatus and CapabilityRequirementFinding definitions.
1003
- */
1004
- type CurrentMemberResponseCapabilities = {
1005
- [key: string]: CapabilityStatus;
1292
+ type WorkspaceMemberResponseTestMemberKind = typeof WorkspaceMemberResponseTestMemberKind[keyof typeof WorkspaceMemberResponseTestMemberKind] | null;
1293
+ declare const WorkspaceMemberResponseTestMemberKind: {
1294
+ readonly test: "test";
1295
+ readonly eval: "eval";
1006
1296
  };
1297
+
1007
1298
  /**
1008
- * A soft-warning entry for a DataRecord field schema mismatch.
1009
- *
1010
- * Emitted when an API caller sends a field slug that is not declared
1011
- * on the target DataType's schema. The server silently skips the
1012
- * field (for backward-compatibility — callers depend on unknown slugs
1013
- * being ignored rather than rejected with 400) and attaches one of
1014
- * these to the response so the caller can surface or fix the drift.
1015
- *
1016
- * API-facing camelCase to match other signup response fields.
1299
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
1300
+ * (group map from emit_openapi.py). Do not edit manually.
1301
+ * Group: account
1017
1302
  */
1018
- interface DataRecordFieldWarning {
1019
- code: 'unknown_data_record_field';
1020
- dataTypeSlug: string;
1021
- fieldSlug: string;
1022
- message: string;
1023
- }
1303
+
1024
1304
  /**
1025
- * One contact field a row disagrees with the matched Account about.
1026
- *
1027
- * ``row_value`` and ``account_value`` are **normalized** (email lower-cased,
1028
- * phone E.164) so the operator compares — and resubmits — the same shape the
1029
- * matcher used.
1030
- *
1031
- * ``account_value`` is ``None`` in cases the client cannot tell apart, by
1032
- * design: the Account holds nothing for the field (keeping the Account then
1033
- * drops the row's value — exactly the loss this conflict surfaces), or the
1034
- * caller is not authorized to read it (no ``MEMBERS_ADMIN``, or the Account has
1035
- * no Member in their workspace). Clients render ``None`` as "unavailable";
1036
- * every resolution works either way.
1037
- *
1038
- * PHI: see the module docstring.
1305
+ * One billing customer an account holds a role on.
1039
1306
  */
1040
- interface ImportContactConflict {
1041
- field: ImportContactConflictField;
1042
- rowValue: string;
1043
- accountValue?: string | null;
1307
+ interface AccountCustomerRef {
1308
+ id: number;
1309
+ name?: string | null;
1044
1310
  }
1045
- type ImportContactConflictField = typeof ImportContactConflictField[keyof typeof ImportContactConflictField];
1046
- declare const ImportContactConflictField: {
1047
- readonly email: "email";
1048
- readonly phone: "phone";
1049
- };
1050
1311
  /**
1051
- * Response model for member credentials.
1312
+ * Base account response for non-admin endpoints.
1313
+ *
1314
+ * Note: With Verified Credential Architecture, if email/phone is set,
1315
+ * it's verified by construction. The *_verified_at timestamps record when.
1316
+ * Credentials are IMMUTABLE once set.
1052
1317
  */
1053
- interface MemberCredentialResponse {
1318
+ interface AccountResponse {
1054
1319
  id: number;
1055
- uuid?: string | null;
1056
- displayName?: string | null;
1057
- isDefault?: boolean;
1058
- provider?: string | null;
1059
- externalUserId?: string | null;
1060
- externalUsername?: string | null;
1061
- externalEmail?: string | null;
1062
- emailVerified?: boolean;
1063
- connectedAt?: string | null;
1064
- lastUsedAt?: string | null;
1320
+ uuid: string;
1321
+ loggedIn: boolean;
1322
+ avatarUrl: string | null;
1323
+ email: string | null;
1324
+ phone: string | null;
1325
+ emailVerifiedAt: string | null;
1326
+ phoneVerifiedAt: string | null;
1327
+ name: string | null;
1065
1328
  createdAt: string;
1066
- appConnectionId?: number | null;
1067
- appConnectionName?: string | null;
1068
- icon?: string | null;
1069
- iconUrl?: string | null;
1070
- }
1071
- /**
1072
- * Experiment group assignment included on member list rows when filtered by experiment.
1073
- */
1074
- interface MemberExperimentGroupSummary {
1075
- groupId: number;
1076
- groupName: string;
1077
- groupSlug: string;
1078
- isControl: boolean;
1079
- }
1080
- /**
1081
- * Response model for list of field definitions available in a workspace.
1082
- */
1083
- interface MemberFieldDefinitionListResponse {
1084
- items: MemberFieldDefinitionResponse[];
1329
+ isSuperuser: boolean;
1330
+ enabled: boolean;
1331
+ signupWorkspaceId: number | null;
1332
+ tosAccepted: boolean;
1333
+ optedOut: boolean;
1334
+ stripeCustomerId: string | null;
1335
+ locale: string | null;
1336
+ timezone: string | null;
1085
1337
  }
1086
- /**
1087
- * A field definition available in the workspace (from active app connections
1088
- * or user-created fields).
1089
- */
1090
- interface MemberFieldDefinitionResponse {
1091
- key: string;
1092
- label: string;
1093
- serviceName?: string | null;
1094
- serviceType?: string | null;
1338
+ interface AdminAccountMembershipResponse$1 {
1339
+ workspaceUuid: string;
1340
+ workspaceName: string;
1341
+ role: string;
1342
+ createdAt: string;
1343
+ tosAccepted: boolean;
1344
+ memberRoleId: number;
1345
+ memberId: number;
1095
1346
  }
1096
1347
  /**
1097
- * Response model for list of member fields.
1348
+ * Response for an account's organization membership.
1098
1349
  */
1099
- interface MemberFieldListResponse {
1100
- items: MemberFieldResponse[];
1101
- total: number;
1350
+ interface AdminAccountOrgMembershipResponse {
1351
+ organizationId: number;
1352
+ organizationUuid: string;
1353
+ organizationName: string;
1354
+ organizationSlug: string;
1355
+ organizationLogoUrl: string | null;
1356
+ role: string;
1357
+ name: string | null;
1358
+ accountName: string | null;
1359
+ externalId: string | null;
1360
+ hasBillingAccess?: boolean;
1361
+ createdAt: string;
1362
+ updatedAt: string;
1102
1363
  }
1103
1364
  /**
1104
- * Response model for a member field.
1105
- *
1106
- * Only a customer-owned field has an id. When id is None, this is a
1107
- * connector value read from its home (read-only here; a business value is
1108
- * edited through its Form) or, with ``isPlaceholder``, a managed field
1109
- * definition that has no value for this member yet.
1365
+ * Detailed account response for admin endpoints including related entities
1110
1366
  */
1111
- interface MemberFieldResponse {
1112
- id: number | null;
1113
- memberId: number;
1114
- key: string;
1115
- value: string;
1116
- serviceId: number | null;
1117
- serviceName: string | null;
1118
- serviceType: string | null;
1119
- createdAt: string | null;
1120
- updatedAt: string | null;
1121
- isPlaceholder?: boolean;
1367
+ interface AdminAccountResponse {
1368
+ id: number;
1369
+ uuid: string;
1370
+ loggedIn: boolean;
1371
+ avatarUrl: string | null;
1372
+ email: string | null;
1373
+ phone: string | null;
1374
+ emailVerifiedAt: string | null;
1375
+ phoneVerifiedAt: string | null;
1376
+ name: string | null;
1377
+ createdAt: string;
1378
+ isSuperuser: boolean;
1379
+ enabled: boolean;
1380
+ signupWorkspaceId: number | null;
1381
+ tosAccepted: boolean;
1382
+ optedOut: boolean;
1383
+ stripeCustomerId: string | null;
1384
+ locale: string | null;
1385
+ timezone: string | null;
1386
+ customers?: AccountCustomerRef[];
1387
+ pendingDeletion?: boolean;
1388
+ deletionRequestedAt?: string | null;
1122
1389
  }
1123
1390
  /**
1124
- * Response model for a member filter.
1391
+ * Response model for when a new API key is created, including the full key.
1125
1392
  */
1126
- interface MemberFilterResponse {
1393
+ interface ApiKeyCreatedResponse {
1127
1394
  id: number;
1128
1395
  uuid: string;
1129
1396
  name: string;
1130
- description?: string | null;
1131
- pinned?: boolean | null;
1397
+ keyPrefix: string;
1132
1398
  createdAt: string;
1133
- updatedAt: string;
1134
- query?: MemberFilterResponseQuery;
1135
- }
1136
- type MemberFilterResponseQuery = {
1137
- [key: string]: unknown;
1138
- } | null;
1139
- /**
1140
- * Why an import row was refused.
1141
- *
1142
- * ``code`` is a stable identifier: GRA-5545 phone-only identity mismatch
1143
- * (``identity_mismatch_on_phone_match``), GH #22393 import protection
1144
- * (``operator_role`` / ``import_protected``), or a contact disagreement with
1145
- * the matched Account (``contact_conflict_with_account``). ``fields`` is empty
1146
- * for protection refusals.
1147
- *
1148
- * ``conflicts`` is populated only for ``contact_conflict_with_account`` and is
1149
- * the one place a conflict carries VALUES — the operator has to compare the
1150
- * row's value against the Account's to choose a resolution. Its
1151
- * ``accountValue`` is withheld (``None``) unless the caller holds
1152
- * ``MEMBERS_ADMIN``; see ``member_import_contact_conflict``. Never logged.
1153
- */
1154
- interface MemberImportConflictInfo {
1155
- code: string;
1156
- fields: string[];
1157
- conflicts?: ImportContactConflict[];
1399
+ expiresAt?: string | null;
1400
+ lastUsedAt?: string | null;
1401
+ enabled: boolean;
1402
+ scopes: string[];
1403
+ appId?: number | null;
1404
+ dataUseMode?: DataUseMode;
1405
+ key: string;
1158
1406
  }
1159
1407
  /**
1160
- * Identity values shown to the operator to compare a conflict row.
1161
- *
1162
- * Populated only for conflict rows in the preview response (PHI minimization).
1408
+ * Response model for API key information.
1163
1409
  */
1164
- interface MemberImportIdentitySnapshot {
1165
- name?: string | null;
1166
- dateOfBirth?: string | null;
1410
+ interface ApiKeyResponse {
1411
+ id: number;
1412
+ uuid: string;
1413
+ name: string;
1414
+ keyPrefix: string;
1415
+ createdAt: string;
1416
+ expiresAt?: string | null;
1417
+ lastUsedAt?: string | null;
1418
+ enabled: boolean;
1419
+ scopes: string[];
1420
+ appId?: number | null;
1421
+ dataUseMode?: DataUseMode;
1167
1422
  }
1168
1423
  /**
1169
- * One problem in an import file, located by row and column, without values.
1424
+ * Response after canceling a credential change invitation.
1170
1425
  */
1171
- interface MemberImportIssue {
1172
- /** CSV row number; data rows start at 2 because row 1 is the header. Null for a problem with the file or its header. */
1173
- row?: number | null;
1174
- /** Header text, only when it is slug-shaped (lower-case letters, digits, ``_``, ``.``, ``-``). Any other header is named by ``columnPosition`` alone, because a header can be a person's value. */
1175
- column?: string | null;
1176
- /** 1-based position of the column in the header row. */
1177
- columnPosition?: number | null;
1178
- code: MemberImportIssueCode;
1179
- /** One short sentence saying what is wrong. */
1426
+ interface CancelCredentialChangeInviteResponse {
1427
+ success: boolean;
1180
1428
  message: string;
1181
- /** One short sentence saying how to fix it. */
1182
- fix: string;
1183
1429
  }
1184
1430
  /**
1185
- * Closed set of import problems. Codes are API: add, never rename.
1431
+ * Response after canceling a credential change request.
1186
1432
  */
1187
- type MemberImportIssueCode = typeof MemberImportIssueCode[keyof typeof MemberImportIssueCode];
1188
- declare const MemberImportIssueCode: {
1189
- readonly csv_unreadable: "csv_unreadable";
1190
- readonly too_many_rows: "too_many_rows";
1191
- readonly duplicate_column: "duplicate_column";
1192
- readonly form_column_format: "form_column_format";
1193
- readonly form_data_type_unknown: "form_data_type_unknown";
1194
- readonly form_field_unknown: "form_field_unknown";
1195
- readonly member_field_column_format: "member_field_column_format";
1196
- readonly salesforce_not_connected: "salesforce_not_connected";
1197
- readonly member_keys_unknown: "member_keys_unknown";
1198
- readonly member_keys_uncorroborated: "member_keys_uncorroborated";
1199
- readonly notify_value_invalid: "notify_value_invalid";
1200
- readonly consent_date_invalid: "consent_date_invalid";
1201
- readonly date_of_birth_invalid: "date_of_birth_invalid";
1202
- readonly conflict_resolution_invalid: "conflict_resolution_invalid";
1203
- readonly salesforce_id_invalid: "salesforce_id_invalid";
1204
- readonly member_id_invalid: "member_id_invalid";
1205
- readonly member_uuid_invalid: "member_uuid_invalid";
1206
- readonly member_id_not_found: "member_id_not_found";
1207
- readonly member_uuid_not_found: "member_uuid_not_found";
1208
- readonly member_key_conflict: "member_key_conflict";
1209
- readonly phone_invalid: "phone_invalid";
1210
- readonly email_ambiguous: "email_ambiguous";
1211
- readonly member_archived: "member_archived";
1212
- readonly role_requires_account: "role_requires_account";
1213
- readonly contact_required: "contact_required";
1214
- readonly row_invalid: "row_invalid";
1215
- };
1433
+ interface CancelCredentialChangeResponse {
1434
+ success: boolean;
1435
+ message: string;
1436
+ }
1216
1437
  /**
1217
- * Which existing Member an import row matched, and how it matched.
1438
+ * Response after confirming a credential change invitation.
1218
1439
  */
1219
- interface MemberImportMatchInfo {
1220
- matchType: MemberImportMatchInfoMatchType;
1221
- memberId: number;
1222
- memberUuid: string;
1440
+ interface CredentialChangeInviteConfirmResponse {
1441
+ success: boolean;
1442
+ message: string;
1443
+ credentialType?: CredentialChangeInviteConfirmResponseCredentialType;
1223
1444
  }
1224
- type MemberImportMatchInfoMatchType = typeof MemberImportMatchInfoMatchType[keyof typeof MemberImportMatchInfoMatchType];
1225
- declare const MemberImportMatchInfoMatchType: {
1226
- readonly id: "id";
1227
- readonly uuid: "uuid";
1228
- readonly external_id: "external_id";
1445
+ type CredentialChangeInviteConfirmResponseCredentialType = typeof CredentialChangeInviteConfirmResponseCredentialType[keyof typeof CredentialChangeInviteConfirmResponseCredentialType] | null;
1446
+ declare const CredentialChangeInviteConfirmResponseCredentialType: {
1229
1447
  readonly email: "email";
1230
1448
  readonly phone: "phone";
1231
- readonly account_email: "account_email";
1232
- readonly account_phone: "account_phone";
1233
1449
  };
1234
1450
  /**
1235
- * Read-only classification of an uploaded CSV before any write occurs.
1451
+ * Response with details of a credential change invitation.
1452
+ *
1453
+ * Used for the confirmation page to show what change is being proposed.
1236
1454
  */
1237
- interface MemberImportPreviewResponse {
1238
- previewPlanToken?: string | null;
1239
- totalRows: number;
1240
- summary: MemberImportPreviewSummary;
1241
- rows: MemberImportPreviewRow[];
1242
- ignoredColumns?: string[];
1243
- issues?: MemberImportIssue[];
1244
- issueCount?: number;
1455
+ interface CredentialChangeInviteDetailsResponse {
1456
+ id: number;
1457
+ credentialType: CredentialChangeInviteDetailsResponseCredentialType;
1458
+ newValue: string;
1459
+ workspaceName: string;
1460
+ workspaceUuid: string;
1461
+ initiatedByName: string | null;
1462
+ createdAt: string;
1463
+ expiresAt: string;
1464
+ isExpired: boolean;
1465
+ isValid: boolean;
1245
1466
  }
1467
+ type CredentialChangeInviteDetailsResponseCredentialType = typeof CredentialChangeInviteDetailsResponseCredentialType[keyof typeof CredentialChangeInviteDetailsResponseCredentialType];
1468
+ declare const CredentialChangeInviteDetailsResponseCredentialType: {
1469
+ readonly email: "email";
1470
+ readonly phone: "phone";
1471
+ };
1246
1472
  /**
1247
- * One classified import row in the read-only preview response.
1473
+ * Response after creating a credential change invitation.
1248
1474
  */
1249
- interface MemberImportPreviewRow {
1250
- row: number;
1251
- action: MemberImportPreviewRowAction;
1252
- match?: MemberImportMatchInfo | null;
1253
- conflict?: MemberImportConflictInfo | null;
1254
- existingIdentity?: MemberImportIdentitySnapshot | null;
1255
- incomingIdentity?: MemberImportIdentitySnapshot | null;
1256
- proposedChanges?: string[];
1257
- sharedContacts?: string[];
1258
- error?: string | null;
1475
+ interface CredentialChangeInviteResponse {
1476
+ id: number;
1477
+ credentialType: CredentialChangeInviteResponseCredentialType;
1478
+ maskedNewValue: string;
1479
+ expiresAt: string;
1480
+ message: string;
1259
1481
  }
1260
- type MemberImportPreviewRowAction = typeof MemberImportPreviewRowAction[keyof typeof MemberImportPreviewRowAction];
1261
- declare const MemberImportPreviewRowAction: {
1262
- readonly create: "create";
1263
- readonly update: "update";
1264
- readonly unchanged: "unchanged";
1265
- readonly conflict: "conflict";
1266
- readonly skipped: "skipped";
1267
- readonly error: "error";
1482
+ type CredentialChangeInviteResponseCredentialType = typeof CredentialChangeInviteResponseCredentialType[keyof typeof CredentialChangeInviteResponseCredentialType];
1483
+ declare const CredentialChangeInviteResponseCredentialType: {
1484
+ readonly email: "email";
1485
+ readonly phone: "phone";
1268
1486
  };
1269
1487
  /**
1270
- * Counts per classified action for an import preview.
1488
+ * Response after requesting a credential change.
1271
1489
  */
1272
- interface MemberImportPreviewSummary {
1273
- create?: number;
1274
- update?: number;
1275
- unchanged?: number;
1276
- conflict?: number;
1277
- skipped?: number;
1278
- error?: number;
1490
+ interface CredentialChangeRequestResponse {
1491
+ id: number;
1492
+ credentialType: CredentialChangeRequestResponseCredentialType;
1493
+ expiresAt: string;
1494
+ message: string;
1279
1495
  }
1496
+ type CredentialChangeRequestResponseCredentialType = typeof CredentialChangeRequestResponseCredentialType[keyof typeof CredentialChangeRequestResponseCredentialType];
1497
+ declare const CredentialChangeRequestResponseCredentialType: {
1498
+ readonly email: "email";
1499
+ readonly phone: "phone";
1500
+ };
1280
1501
  /**
1281
- * One row's outcome within a run.
1282
- *
1283
- * PHI note: an index, a status, a closed reason code and the written member's
1284
- * surrogate id — never a CSV cell, identifier, name, email, phone or field
1285
- * value.
1502
+ * Response after verifying a credential change.
1286
1503
  */
1287
- interface MemberImportRunItemResponse {
1288
- index: number;
1289
- status: string;
1290
- reasonCode?: string;
1291
- detail?: string | null;
1292
- memberId?: number | null;
1504
+ interface CredentialChangeVerifyResponse {
1505
+ success: boolean;
1506
+ message: string;
1507
+ credentialType?: CredentialChangeVerifyResponseCredentialType;
1293
1508
  }
1509
+ type CredentialChangeVerifyResponseCredentialType = typeof CredentialChangeVerifyResponseCredentialType[keyof typeof CredentialChangeVerifyResponseCredentialType] | null;
1510
+ declare const CredentialChangeVerifyResponseCredentialType: {
1511
+ readonly email: "email";
1512
+ readonly phone: "phone";
1513
+ };
1294
1514
  /**
1295
- * One durable members import run.
1515
+ * What a *credential* may carry (ADR-18 §1), not what a member may see.
1296
1516
  *
1297
- * Counters are the members import's own outcome vocabulary — ``created``,
1298
- * ``updated``, ``unchanged``, ``conflicted``, ``skipped``, ``failed`` — not
1299
- * the connector importer's link-reconciliation counters, which would label
1300
- * rows with something they did not do.
1517
+ * This is an axis on the connection, deliberately not a scope: scopes are
1518
+ * additive grants for cross-member access, and a member's own data is reached
1519
+ * with no scope at all, so no scope value can express "this channel must not
1520
+ * carry PHI". Computed at mint time and mutable afterwards **only toward**
1521
+ * :attr:`NO_PHI` — the same "narrows, never widens" doctrine as
1522
+ * ``scope_restriction`` and ``Device.enrollment_scope_ceiling``. Widening is a
1523
+ * re-consent, i.e. revoke and re-mint under lifted conditions.
1301
1524
  */
1302
- interface MemberImportRunSummaryResponse {
1303
- runId: string;
1304
- startedAt: string;
1305
- completedAt?: string | null;
1306
- status: string;
1307
- total?: number;
1308
- created?: number;
1309
- updated?: number;
1310
- unchanged?: number;
1311
- conflicted?: number;
1312
- skipped?: number;
1313
- failed?: number;
1314
- terminalError?: string | null;
1525
+ type DataUseMode = typeof DataUseMode[keyof typeof DataUseMode];
1526
+ declare const DataUseMode: {
1527
+ readonly unrestricted: "unrestricted";
1528
+ readonly no_phi: "no_phi";
1529
+ };
1530
+ interface LoginResponse {
1531
+ token: string;
1532
+ accountId: number;
1533
+ accountName?: string | null;
1534
+ accountUuid?: string | null;
1535
+ requiresTwoFactor?: boolean | null;
1536
+ availableTwoFactorMethods?: unknown[] | null;
1537
+ sessionKind?: SessionKind | 'widget' | null;
1538
+ expiresAt?: string | null;
1315
1539
  }
1316
1540
  /**
1317
- * Response model for assistant label endpoints.
1541
+ * Response for a pending credential change invitation.
1318
1542
  */
1319
- interface MemberLabelResponse {
1543
+ interface PendingCredentialChangeInviteResponse {
1320
1544
  id: number;
1321
- uuid: string;
1322
- name: string;
1323
- slug: string;
1324
- color: string;
1325
- description: string | null;
1326
- }
1327
- /**
1328
- * Response model for file access within a member role.
1329
- */
1330
- interface MemberRoleFileAccessResponse {
1331
- fileId: number;
1332
- accessMode: number;
1333
- }
1334
- /**
1335
- * Response model for folder access within a member role.
1336
- */
1337
- interface MemberRoleFolderAccessResponse {
1338
- folderId: number;
1339
- accessMode: number;
1545
+ credentialType: PendingCredentialChangeInviteResponseCredentialType;
1546
+ maskedNewValue: string;
1547
+ workspaceName: string;
1548
+ initiatedByName: string | null;
1549
+ createdAt: string;
1550
+ expiresAt: string;
1551
+ isExpired: boolean;
1552
+ status: string;
1340
1553
  }
1554
+ type PendingCredentialChangeInviteResponseCredentialType = typeof PendingCredentialChangeInviteResponseCredentialType[keyof typeof PendingCredentialChangeInviteResponseCredentialType];
1555
+ declare const PendingCredentialChangeInviteResponseCredentialType: {
1556
+ readonly email: "email";
1557
+ readonly phone: "phone";
1558
+ };
1341
1559
  /**
1342
- * Response model for member role endpoints.
1560
+ * Response for a pending credential change request.
1343
1561
  */
1344
- interface MemberRoleResponse {
1562
+ interface PendingCredentialChangeResponse {
1345
1563
  id: number;
1346
- uuid: string;
1347
- name: string;
1348
- systemKey?: string | null;
1349
- grantedScopes?: string[];
1350
- dailyCreditLimit?: number | null;
1351
- siteAudience?: string[];
1352
- fileAccess?: MemberRoleFileAccessResponse[];
1353
- folderAccess?: MemberRoleFolderAccessResponse[];
1354
- memberCount?: number;
1355
- isDefaultForNewMembers?: boolean;
1564
+ credentialType: PendingCredentialChangeResponseCredentialType;
1565
+ maskedNewValue: string;
1356
1566
  createdAt: string;
1357
- updatedAt: string;
1358
- }
1359
- interface MemoryListResponse {
1360
- items: MemoryResponse$1[];
1361
- total: number;
1362
- }
1363
- interface MemoryResponse$1 {
1364
- id?: number | null;
1365
- uuid?: string | null;
1366
- key: string;
1367
- type?: string;
1368
- description: string;
1369
- content?: string | null;
1370
- priority?: number;
1371
- createdAt?: string | null;
1372
- updatedAt?: string | null;
1567
+ expiresAt: string;
1568
+ isExpired: boolean;
1569
+ attempts: number;
1373
1570
  }
1571
+ type PendingCredentialChangeResponseCredentialType = typeof PendingCredentialChangeResponseCredentialType[keyof typeof PendingCredentialChangeResponseCredentialType];
1572
+ declare const PendingCredentialChangeResponseCredentialType: {
1573
+ readonly email: "email";
1574
+ readonly phone: "phone";
1575
+ };
1374
1576
  /**
1375
- * Response for merge members operation.
1577
+ * Response model for recovery codes
1376
1578
  */
1377
- interface MergeMembersResponse {
1378
- member: WorkspaceMemberResponse;
1379
- mergedCount: number;
1380
- dataRecordsTransferred: number;
1579
+ interface RecoveryCodeResponse {
1580
+ /** List of recovery codes (only shown once) */
1581
+ codes: string[];
1582
+ /** When the codes were generated */
1583
+ generatedAt: string;
1584
+ warning?: string;
1381
1585
  }
1382
- /**
1383
- * Response with list of pending anonymous member resolutions.
1384
- */
1385
- interface PendingAnonymousMembersResponse {
1386
- items: AnonymousMemberResolutionResponse[];
1387
- total: number;
1586
+ interface SendLoginCodeResponse {
1587
+ success: boolean;
1588
+ message?: string | null;
1388
1589
  }
1389
1590
  /**
1390
- * A phone/email another member holds as primary, kept as a shared point.
1391
- *
1392
- * Returned on a member create/update so the client can say "stored as a
1393
- * shared contact" and offer the explicit take-over
1394
- * (``releaseContactFromMemberId``) without the write having failed. PHI-free:
1395
- * a field NAME, the holding member's surrogate id and whether that member is
1396
- * archived — never the value, which the caller supplied in the first place.
1591
+ * Response for TOTP setup initiation
1397
1592
  */
1398
- interface SharedContactResponse {
1399
- field: SharedContactResponseField;
1400
- memberId: number;
1401
- archived?: boolean;
1593
+ interface TOTPSetupResponse {
1594
+ /** Session ID for completing setup */
1595
+ setupId: string;
1596
+ /** Base32 encoded TOTP secret */
1597
+ secret: string;
1598
+ /** QR code URL for easy setup */
1599
+ qrCodeUrl: string;
1600
+ /** Manual entry key for authenticator apps */
1601
+ manualEntryKey: string;
1602
+ /** Issuer name for TOTP */
1603
+ issuer: string;
1402
1604
  }
1403
- type SharedContactResponseField = typeof SharedContactResponseField[keyof typeof SharedContactResponseField];
1404
- declare const SharedContactResponseField: {
1405
- readonly phone: "phone";
1406
- readonly email: "email";
1407
- };
1408
1605
  /**
1409
- * Response model for account data in signup response.
1606
+ * Response model for 2FA method details
1410
1607
  */
1411
- interface SignupAccountResponse {
1608
+ interface TwoFactorMethodResponse$1 {
1412
1609
  id: number;
1413
- uuid: string;
1414
- email?: string | null;
1415
- phone?: string | null;
1416
- name?: string | null;
1417
- locale?: string | null;
1610
+ methodType: string;
1611
+ name: string;
1612
+ enabled: boolean;
1418
1613
  createdAt: string;
1614
+ lastUsedAt?: string | null;
1419
1615
  }
1420
1616
  /**
1421
- * Response model for member data in signup response.
1617
+ * Generic response for 2FA operations
1422
1618
  */
1423
- interface SignupMemberResponse {
1424
- id: number;
1425
- memberRoleId: number;
1426
- createdAt: string;
1427
- name?: string | null;
1428
- description?: string | null;
1429
- phone?: string | null;
1430
- email?: string | null;
1431
- externalId?: string | null;
1432
- labels?: string[];
1433
- tosAccepted: boolean;
1619
+ interface TwoFactorOperationResponse {
1620
+ /** Whether the operation was successful */
1621
+ success: boolean;
1622
+ /** Human-readable message */
1623
+ message: string;
1624
+ /** ID of the affected 2FA method */
1625
+ methodId?: number | null;
1434
1626
  }
1435
1627
  /**
1436
- * Aggregate member counts for a workspace (superuser admin view).
1437
- *
1438
- * Returns COUNTs only — never member rows — so no PHI is exposed. Lets a
1439
- * superuser tally members across workspaces they are not a member of, filling
1440
- * the gap where the workspace-scoped member endpoints require membership.
1628
+ * Response for overall 2FA status
1441
1629
  */
1442
- interface WorkspaceMemberCountResponse {
1443
- /** Workspace UUID */
1444
- workspaceUuid: string;
1445
- /** Numeric workspace ID */
1446
- workspaceId: number;
1447
- /** Total member rows (all member types, including archived) */
1448
- totalMembers: number;
1449
- /** Non-archived member rows (all member types) */
1450
- activeMembers: number;
1451
- /** Archived member rows (all member types) */
1452
- archivedMembers: number;
1453
- /** Non-archived member counts keyed by member_type (member, agent, anonymous, test) */
1454
- activeByType?: WorkspaceMemberCountResponseActiveByType;
1630
+ interface TwoFactorStatusResponse$1 {
1631
+ /** Whether any 2FA method is enabled */
1632
+ enabled: boolean;
1633
+ /** List of configured 2FA methods */
1634
+ methods: TwoFactorMethodResponse$1[];
1635
+ /** Number of unused recovery codes */
1636
+ recoveryCodesCount: number;
1637
+ /** When recovery codes were last generated */
1638
+ lastRecoveryCodesGenerated?: string | null;
1455
1639
  }
1456
1640
  /**
1457
- * Non-archived member counts keyed by member_type (member, agent, anonymous, test)
1641
+ * Response for WebAuthn registration initiation
1458
1642
  */
1459
- type WorkspaceMemberCountResponseActiveByType = {
1460
- [key: string]: number;
1461
- };
1462
- interface WorkspaceMemberResponse {
1463
- id: number;
1464
- uuid: string;
1465
- role: string | null;
1466
- tosAccepted: boolean;
1467
- accountTosAccepted: boolean | null;
1468
- accountUuid: string | null;
1469
- createdAt: string;
1470
- updatedAt: string;
1471
- name: string | null;
1472
- title?: string | null;
1473
- description: string | null;
1474
- phone: string | null;
1475
- phoneType: string | null;
1476
- email: string | null;
1477
- externalId: string | null;
1478
- dateOfBirth?: string | null;
1479
- emailVerified?: boolean;
1480
- phoneVerified?: boolean;
1481
- notifySms: boolean;
1482
- notifyEmail: boolean;
1483
- notifyVoice: boolean;
1484
- notifyWhatsapp?: boolean;
1485
- locale: string | null;
1486
- memberRoleId: number;
1487
- memberRoleName: string | null;
1488
- memberRoleSystemKey?: string | null;
1489
- homeFolderId?: number | null;
1490
- labels?: MemberLabelResponse[];
1491
- accountEnabled?: boolean | null;
1492
- isOrgOwner?: boolean | null;
1493
- isSuperuser?: boolean | null;
1494
- orgRole?: string | null;
1495
- timezone?: string | null;
1496
- memberType?: string;
1497
- isArchived?: boolean;
1498
- isImportProtected?: boolean;
1499
- usagePaused?: boolean;
1500
- canLogin?: boolean;
1501
- experimentGroup?: MemberExperimentGroupSummary | null;
1502
- sharedContactPlacements?: SharedContactResponse[];
1643
+ interface WebAuthnRegistrationResponse {
1644
+ /** Session ID for completing setup */
1645
+ setupId: string;
1646
+ /** Full WebAuthn credential creation options */
1647
+ credentialCreationOptions: WebAuthnRegistrationResponseCredentialCreationOptions;
1503
1648
  }
1649
+ /**
1650
+ * Full WebAuthn credential creation options
1651
+ */
1652
+ type WebAuthnRegistrationResponseCredentialCreationOptions = {
1653
+ [key: string]: unknown;
1654
+ };
1504
1655
 
1505
1656
  /**
1506
1657
  * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
@@ -1557,6 +1708,7 @@ interface CalendarResponse$1 {
1557
1708
  color: string | null;
1558
1709
  isPublic: boolean;
1559
1710
  remoteCalendarId?: string | null;
1711
+ syncEnabled?: boolean;
1560
1712
  syncStatus?: string | null;
1561
1713
  syncError?: string | null;
1562
1714
  lastSyncedAt?: string | null;
@@ -2510,6 +2662,19 @@ interface RoutineConfigEventResponse {
2510
2662
  fieldsChanged?: string[] | null;
2511
2663
  actor?: MemberSummary | null;
2512
2664
  }
2665
+ /**
2666
+ * Deliver a prompt result by email from an authorized workspace Inbox.
2667
+ *
2668
+ * Omit the destination to return results to the interactive Chat.
2669
+ * Recipient identity is a workspace Member ID, never a model-selected address.
2670
+ */
2671
+ interface RoutineDestination {
2672
+ channel?: 'email';
2673
+ /** @exclusiveMinimum 0 */
2674
+ inboxId: number;
2675
+ /** @exclusiveMinimum 0 */
2676
+ memberId: number;
2677
+ }
2513
2678
  /**
2514
2679
  * Response model for Routines.
2515
2680
  */
@@ -2533,6 +2698,7 @@ interface RoutineResponse$1 {
2533
2698
  agentId?: number | null;
2534
2699
  prompt?: string | null;
2535
2700
  skills?: string[] | null;
2701
+ destination?: RoutineDestination | null;
2536
2702
  limit: number;
2537
2703
  visibility: string;
2538
2704
  ownerId: number | null;
@@ -3289,6 +3455,7 @@ interface CreateRoutineRequest {
3289
3455
  agentId?: number | null;
3290
3456
  /** Optional starting skills for the plain prompt. */
3291
3457
  skills?: string[] | null;
3458
+ destination?: RoutineDestination | null;
3292
3459
  limit?: number;
3293
3460
  visibility?: 'private' | 'workspace';
3294
3461
  /** When true, the server generates a webhook secret and returns its
@@ -3321,6 +3488,7 @@ interface UpdateRoutineRequest {
3321
3488
  prompt?: string | null;
3322
3489
  agentId?: number | null;
3323
3490
  skills?: string[] | null;
3491
+ destination?: RoutineDestination | null;
3324
3492
  limit?: number;
3325
3493
  visibility?: 'private' | 'workspace';
3326
3494
  /** Ordered event rules to attach. Server syncs by UUID: same-UUID rows
@@ -4764,6 +4932,7 @@ declare function canPreviewVoice(entity: {
4764
4932
  * The JSON IR is the wire format AND the UI's source of truth: the
4765
4933
  * query-builder renders from and edits exactly this tree.
4766
4934
  */
4935
+
4767
4936
  type QueryEntityType = 'member' | 'chat' | 'data_record';
4768
4937
  type QueryComparisonOp = 'eq' | 'neq' | 'contains' | 'notContains' | 'startsWith' | 'in' | 'notIn' | 'gt' | 'gte' | 'lt' | 'lte' | 'between' | 'notBetween' | 'isEmpty' | 'notEmpty' | 'exists' | 'onDay' | 'notOnDay';
4769
4938
  type QueryAggregateOp = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte';
@@ -4996,6 +5165,12 @@ interface QueryFieldInfo {
4996
5165
  * Optional for older API versions; null = uncategorized.
4997
5166
  */
4998
5167
  category?: string | null;
5168
+ /**
5169
+ * `memberField.<key>` only: every owner of the key (customer Field,
5170
+ * Synced field, Connection ID), for display. The option still matches
5171
+ * any owner's value. Absent elsewhere and from older API versions.
5172
+ */
5173
+ memberFieldSources?: MemberFieldSourceResponse[] | null;
4999
5174
  }
5000
5175
  interface QueryRecordFieldInfo {
5001
5176
  slug: string;
@@ -5897,8 +6072,8 @@ declare const CreateInquirySchema: z.ZodObject<{
5897
6072
  email: z.ZodOptional<z.ZodString>;
5898
6073
  inquiryType: z.ZodEnum<{
5899
6074
  other: "other";
5900
- builder: "builder";
5901
6075
  customer: "customer";
6076
+ builder: "builder";
5902
6077
  partner: "partner";
5903
6078
  demo_request: "demo_request";
5904
6079
  waitlist: "waitlist";
@@ -5914,9 +6089,9 @@ declare const CreateInquirySchema: z.ZodObject<{
5914
6089
  requiresBaa: z.ZodOptional<z.ZodBoolean>;
5915
6090
  documentId: z.ZodOptional<z.ZodString>;
5916
6091
  source: z.ZodOptional<z.ZodEnum<{
6092
+ whitepaper: "whitepaper";
5917
6093
  contact: "contact";
5918
6094
  demo: "demo";
5919
- whitepaper: "whitepaper";
5920
6095
  gap_zero: "gap_zero";
5921
6096
  waitlist_updates: "waitlist_updates";
5922
6097
  about_contact: "about_contact";
@@ -5932,8 +6107,8 @@ declare const AnonymousInquiryFormSchema: z.ZodObject<{
5932
6107
  email: z.ZodOptional<z.ZodString>;
5933
6108
  inquiryType: z.ZodEnum<{
5934
6109
  other: "other";
5935
- builder: "builder";
5936
6110
  customer: "customer";
6111
+ builder: "builder";
5937
6112
  partner: "partner";
5938
6113
  demo_request: "demo_request";
5939
6114
  waitlist: "waitlist";
@@ -5949,9 +6124,9 @@ declare const AnonymousInquiryFormSchema: z.ZodObject<{
5949
6124
  requiresBaa: z.ZodOptional<z.ZodBoolean>;
5950
6125
  documentId: z.ZodOptional<z.ZodString>;
5951
6126
  source: z.ZodOptional<z.ZodEnum<{
6127
+ whitepaper: "whitepaper";
5952
6128
  contact: "contact";
5953
6129
  demo: "demo";
5954
- whitepaper: "whitepaper";
5955
6130
  gap_zero: "gap_zero";
5956
6131
  waitlist_updates: "waitlist_updates";
5957
6132
  about_contact: "about_contact";
@@ -5980,8 +6155,8 @@ declare const EnrichInquirySchema: z.ZodObject<{
5980
6155
  declare const UpdateInquiryRequestSchema: z.ZodObject<{
5981
6156
  notes: z.ZodOptional<z.ZodString>;
5982
6157
  status: z.ZodOptional<z.ZodEnum<{
5983
- in_progress: "in_progress";
5984
6158
  new: "new";
6159
+ in_progress: "in_progress";
5985
6160
  done: "done";
5986
6161
  }>>;
5987
6162
  }, z.core.$strip>;
@@ -5989,8 +6164,8 @@ declare const UpdateInquirySchema: z.ZodObject<{
5989
6164
  inquiryId: z.ZodNumber;
5990
6165
  notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5991
6166
  status: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
5992
- in_progress: "in_progress";
5993
6167
  new: "new";
6168
+ in_progress: "in_progress";
5994
6169
  done: "done";
5995
6170
  }>>>;
5996
6171
  }, z.core.$strip>;
@@ -6161,19 +6336,11 @@ declare const CreateTaskSchema: z.ZodObject<{
6161
6336
  declare const UpdateTaskSchema: z.ZodObject<{
6162
6337
  wid: z.ZodString;
6163
6338
  taskId: z.ZodNumber;
6164
- workflowId: z.ZodOptional<z.ZodNumber>;
6165
- description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6166
6339
  name: z.ZodOptional<z.ZodString>;
6167
- prompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6168
- abilities: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
6169
- uuid: z.ZodString;
6170
- abilityType: z.ZodString;
6171
- config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6172
- enabled: z.ZodOptional<z.ZodBoolean>;
6173
- celCondition: z.ZodOptional<z.ZodString>;
6174
- }, z.core.$strip>>>>;
6340
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6175
6341
  taskType: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6176
6342
  configuration: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
6343
+ prompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6177
6344
  isAdmin: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
6178
6345
  childTasks: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
6179
6346
  taskId: z.ZodNumber;
@@ -6186,7 +6353,15 @@ declare const UpdateTaskSchema: z.ZodObject<{
6186
6353
  outcome: z.ZodString;
6187
6354
  }, z.core.$strip>>>;
6188
6355
  }, z.core.$strip>>>>;
6356
+ workflowId: z.ZodOptional<z.ZodNumber>;
6189
6357
  celGuard: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6358
+ abilities: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
6359
+ uuid: z.ZodString;
6360
+ abilityType: z.ZodString;
6361
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6362
+ enabled: z.ZodOptional<z.ZodBoolean>;
6363
+ celCondition: z.ZodOptional<z.ZodString>;
6364
+ }, z.core.$strip>>>>;
6190
6365
  configurationPatch: z.ZodOptional<z.ZodObject<{
6191
6366
  data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6192
6367
  source: z.ZodLiteral<"task">;
@@ -6261,4 +6436,5 @@ type DeleteTaskInput = z.infer<typeof DeleteTaskSchema>;
6261
6436
  type ArchiveTaskInput = z.infer<typeof ArchiveTaskSchema>;
6262
6437
  type UnarchiveTaskInput = z.infer<typeof UnarchiveTaskSchema>;
6263
6438
 
6264
- export { type BusinessProfileSubmitResponse as $, AccessLevel as A, type AttendeeResponse as B, AttendeeResponseStatus as C, DataFieldType as D, EventRuleEventType as E, AttendeeStatus as F, type AuthorizedRep as G, type AvailabilityCheck as H, type AvailabilityResponse as I, type AvailableSlotsRequest as J, type AvailableSlotsResponse as K, type BaseChatModelConfig as L, type BaseRealtimeModelConfig as M, type BotSortField as N, type BulkCreateDataRecordRequest as O, type BulkCreateDataRecordResponse as P, type QueryPredicate as Q, type BulkCreateMembersRequest as R, type SchemaField as S, type BulkCreateMembersResponse as T, type BulkMemberItem as U, type BulkMemberResult as V, BulkMemberResultStatus as W, type BulkRecordResult as X, BusinessIndustry as Y, type BusinessInfo as Z, type BusinessProfileCancelResponse as _, EventRuleActionType as a, type DataRecordRetirementResponse as a$, BusinessType as a0, type Calendar as a1, type EventResponse as a2, type CalendarEventFormData as a3, type CalendarEventSortField as a4, CalendarEventStatus as a5, type EventTypeResponse as a6, type CalendarEventTypeFormData as a7, type CalendarEventsQueryParams as a8, type CalendarFormData as a9, type CreateDataRecordFilterRequest as aA, type CreateOrganizationRequest as aB, type CreateRoutineRequest as aC, type CreateSignupResponse as aD, type CreateWorkspaceMemberRequest as aE, type CredentialChangeInviteConfirmResponse as aF, type CredentialChangeInviteDetailsResponse as aG, type CredentialChangeInviteResponse as aH, type CredentialChangeRequestResponse as aI, type CredentialChangeVerifyResponse as aJ, type CredentialType as aK, type CurrentMemberResponse as aL, type CurrentOrgMember as aM, type CursorPaginatedResponse as aN, type CustomRealtimeModelConfig as aO, DEFAULT_THINKING_SPEECH_PHRASES as aP, DataCategory as aQ, type DataField as aR, type DataIntegrityReportItem as aS, type DataRecordResponse as aT, type DataRecordAssociationFormData as aU, type DataRecordFieldWarning as aV, type DataRecordFilterResponse as aW, type DataRecordFilterFormData as aX, type DataRecordFilterWithQuery as aY, type DataRecordFormData as aZ, type DataRecordReportItem as a_, CalendarPermissionType as aa, type CalendarResponse as ab, type CalendarSchedule as ac, CalendarScheduleAvailabilityType as ad, type CalendarScheduleFormData as ae, CalendarScheduleRecurrence as af, type CalendarScheduleResponse as ag, CalendarSource as ah, type CancelCredentialChangeInviteResponse as ai, type CancelCredentialChangeResponse as aj, type CapabilityRequirementFinding as ak, type CapabilityStatus as al, type ChatContinueActionParams as am, type ChatCreateActionParams as an, type ChatModelConfig as ao, type ChatPauseActionParams as ap, type ChatSortField as aq, type ChatSummarizeActionParams as ar, type ClaudeChatModelConfig as as, type ClaudeReasoningEffort as at, type ConcludeAssignmentActionParams as au, type CreateAccountOrgMembershipRequest as av, type CreateAccountOrgMembershipResponse as aw, type CreateAgentRequest as ax, type CreateAnonymousMemberRequest as ay, type CreateCredentialChangeInviteRequest as az, type EventRuleInput as b, type LinkCalendarRequest as b$, DataRecordRetirementResponseReason as b0, type DataRecordUpdateResponse as b1, type DataRecordWithAccessMode as b2, type DataRecordsPaginatedResponse as b3, DataSensitivity as b4, type DataTypeResponse as b5, type DataTypeExportItem as b6, type DataTypeFormData as b7, DataTypeRecordScope as b8, type DataTypeSortField as b9, type GeminiThinkingLevel as bA, type GenerateRecoveryCodesRequest as bB, type BusinessProfileResponse as bC, type CalendarResponse$1 as bD, type CalendarScheduleResponse$1 as bE, type MemoryListResponse as bF, type MemoryResponse$1 as bG, type OrgDomainResponse as bH, type OwnershipDnsRecord as bI, type GoogleCalendarInfo as bJ, type GoogleCalendarInsufficientScopesResponse as bK, type GoogleCalendarStatusResponse as bL, type ICalFeedGrantSummary as bM, type ICalFeedTokenResponse as bN, type ICalFeedUrlResponse as bO, type IdentifiedMemberContactConflict as bP, type IdentityConflictPolicy as bQ, type ImportContactConflict as bR, ImportContactConflictField as bS, IndexStatus as bT, type IndexStatusResponse as bU, type InterruptionSound as bV, type InvokeCustomToolActionParams as bW, JobPosition as bX, type JourneyEnrollActionParams as bY, type JourneySortField as bZ, type LibModelsGlbResponsesOrganizationResponsesSSOConfigResponse as b_, type DeleteAccountOrgMembershipResponse as ba, type DetailedAccount as bb, type DuplicateAccountInfo as bc, type EcwRefreshMemberEncountersActionParams as bd, type EmailDisableImpactResponse as be, EmailDnsRecordType as bf, type EmailDomainConfigResponse as bg, type EmailSendActionParams as bh, type EmailVerificationResponse as bi, type EnumOption as bj, type ErrorResponse as bk, type EventActionMapping as bl, type EventActionMappingsResponse as bm, type EventRule as bn, type EventRuleExportItem as bo, type EventRuleFormData as bp, EventRuleObjectType as bq, type EventRuleResponse as br, type EventRunSortField as bs, type ExpireAnonymousMemberRequest as bt, type ExternalAttendeeData as bu, type FileSortField as bv, type FormFieldUpdateActionParams as bw, type FormFieldUpdateAssignment as bx, type GeminiChatModelConfig as by, type GeminiRealtimeModelConfig as bz, type AccountResponse as c, type MondayRefreshActionParams as c$, type LinkCalendarResponse as c0, type LoginRequest as c1, type LoginResponse as c2, type LogoUploadRequest as c3, type LogoUploadResponse as c4, MASKED_SECRET_SENTINEL as c5, type McpServerSortField as c6, type WorkspaceMemberResponse as c7, type MemberContactConflict as c8, type MemberContactField as c9, type MemberLabelFormData as cA, type MemberMemoriesResponse as cB, type MemberMessageActivity as cC, type MemberOrgView as cD, type MemberReportItem as cE, type MemberRoleResponse as cF, type MemberRoleFileAccessResponse as cG, type MemberRoleFolderAccessResponse as cH, type MemberRoleFormData as cI, type MemberRoleTaskAccess as cJ, type MemberSortField as cK, type MemberSummary as cL, type MemberSyncLink as cM, MemberType as cN, type MemberUpsertActionParams as cO, type MemberUpsertBehavior as cP, type MemberWorkspaceInfo as cQ, type MembersQueryParams as cR, type MemoryItem as cS, type MemoryResponse as cT, type MemoryType as cU, type MergeMembersRequest as cV, type MergeMembersResponse as cW, type MessageValidationActionParams as cX, type MissingMembershipItem as cY, type MondayColumnMapping as cZ, type MondayLookupType as c_, type MemberCredentialResponse as ca, type MemberFieldResponse as cb, type MemberFieldDefinitionResponse as cc, type MemberFieldDefinitionListResponse as cd, type MemberFieldListResponse as ce, type MemberFilterResponse as cf, type MemberFilterFormData as cg, type MemberFilterWithQuery as ch, type MemberFormData as ci, type MemberImportConflictInfo as cj, type MemberImportIdentitySnapshot as ck, type MemberImportIssue as cl, MemberImportIssueCode as cm, type MemberImportMatchInfo as cn, MemberImportMatchInfoMatchType as co, type MemberImportOptions as cp, type MemberImportPreviewResponse as cq, type MemberImportPreviewRow as cr, MemberImportPreviewRowAction as cs, type MemberImportPreviewSummary as ct, type MemberImportRunItemResponse as cu, type MemberImportRunSummaryResponse as cv, type MemberImportStreamConflict as cw, type MemberImportStreamEvent as cx, type MemberLabelResponse as cy, type MemberLabelActionParams as cz, type AccountContactConflict as d, type QueryNowValue as d$, type MondayRefreshColumnMapping as d0, type MondayUpsertItemActionParams as d1, type MondayUpsertMode as d2, type MultiMatchBehavior as d3, type NormalizeMemberRequest as d4, type NormalizeMemberResponse as d5, type OIDCAdminConfigView as d6, OIDCAdminConfigViewProviderType as d7, type ObjectPermission as d8, type ObjectPermissionFlags as d9, type PendingAnonymousMembersResponse as dA, type PendingCredentialChangeResponse as dB, type PendingCredentialChangeInviteResponse as dC, type PhoneCallActionParams as dD, type PlayAudioActionParams as dE, QUERY_VALUELESS_OPS as dF, type QualificationSortField as dG, type QueryAggregateOp as dH, type QueryAggregatePredicate as dI, type QueryAggregateSpec as dJ, type QueryAnd as dK, type QueryCompare as dL, type QueryComparisonOp as dM, type QueryCostInfo as dN, type QueryDataTypeInfo as dO, type QueryDayBoundaryValue as dP, type QueryDaysAgoValue as dQ, type QueryDaysFromNowValue as dR, type QueryEntityType as dS, type QueryEnumOption as dT, type QueryFieldInfo as dU, type QueryFieldsResponse as dV, type QueryGroupBy as dW, type QueryIR as dX, type QueryMatchAll as dY, type QueryMetric as dZ, type QueryNot as d_, type OpenAIChatModelConfig as da, type OpenAIRealtimeModelConfig as db, type OpenAIReasoningEffort as dc, type OpenAISemanticVADEagerness as dd, type OpenAISemanticVADTurnDetection as de, type OpenAIServerVADTurnDetection as df, type OpenAITurnDetection as dg, type OpenAITurnDetectionType as dh, type OrgMember as di, type OrgMemberListResponse as dj, type OrgMemberRole as dk, type OrganizationResponse as dl, type OwnershipVerificationResponse as dm, PERMISSION_ADMIN as dn, PERMISSION_CREATE as dp, PERMISSION_DELETE as dq, PERMISSION_EDIT as dr, PERMISSION_GEOLOCATE as ds, PERMISSION_LIST as dt, PERMISSION_LIST_ALL as du, PERMISSION_NONE as dv, PERMISSION_USE as dw, PERMISSION_VERIFY as dx, type PageSortField as dy, type PaginatedResponse as dz, type AccountFormData as e, type SwitchTaskActionParams as e$, type QueryOr as e0, type QueryParameterRef as e1, type QueryRangeBound as e2, type QueryRangeValue as e3, type QueryRecordFieldInfo as e4, type QueryRecordMatch as e5, type QueryRecordSelection as e6, type QueryRelationMatch as e7, type QueryRunMode as e8, type QuerySavedFilterRef as e9, type RoutineVoiceReadinessWarningResponse as eA, type RoutinesQueryParams as eB, type RuleExecutionSortField as eC, type RuleExecutionsQueryParams as eD, type RunQueryRequest as eE, type RunQueryResponse as eF, type SendLoginCodeResponse as eG, type SSOConfigData as eH, type SSOConfigRequest as eI, type SSOProviderConfig as eJ, type SchedulePreviewRequest as eK, type SchedulePreviewResponse as eL, Scope as eM, type SendEmailVerificationRequest as eN, type SessionExchangeRequest as eO, type SessionExchangeResponse as eP, type SetupTOTPRequest as eQ, type SetupWebAuthnRequest as eR, type SignupAccountResponse as eS, type SignupMemberResponse as eT, type SiteDisableImpactResponse as eU, SiteDnsRecordType as eV, type SiteDomainConfigResponse as eW, type SiteSortField as eX, type SiteVerificationResponse as eY, type SmsSendActionParams as eZ, type SortOrder as e_, type QueryScalar as ea, type QuerySortKey as eb, type QuerySubQueryRef as ec, type QueryTemplatePredicate as ed, type QueryTemplateValue as ee, type QueryTemporalValue as ef, type QueryValue as eg, type RealtimeModelConfig as eh, type RecoveryCodeResponse as ei, Region as ej, RegistrationIdentifier as ek, type RequestCredentialChangeRequest as el, type RequestMagicLinkRequest as em, type RequestMagicLinkResponse as en, type ResolveAnonymousMemberRequest as eo, type Routine as ep, type RoutineConfigEventResponse as eq, type RoutineResponse as er, type RoutineRunResponse as es, type RoutineRunStatus as et, type RoutineRunsQueryParams as eu, type RoutineScheduleMode as ev, type RoutineSortField as ew, type RoutineVisibility as ex, type RoutineVoiceReadinessPreviewRequest as ey, type RoutineVoiceReadinessPreviewResponse as ez, type AccountLookupResponse as f, type ChildTaskFormData as f$, type SyncCalendarResponse as f0, type TOTPSetupResponse as f1, type TTSModel as f2, type TTSPreviewProvider as f3, TTS_PREVIEW_PROVIDERS as f4, type TaskExportDataTypeRelation as f5, type TaskExportEventRuleRelation as f6, type TaskSortField as f7, type TestWebhookRequest as f8, type TestWebhookResponse as f9, type WebhookLogsQueryParams as fA, type WorkflowSortField as fB, type WorkspaceMemberCountResponse as fC, type WorkspaceMemberCountResponseActiveByType as fD, type WorkspaceSortField as fE, type XAIChatModelConfig as fF, type XAIRealtimeModelConfig as fG, type XAIRealtimeReasoningEffort as fH, type XAIReasoningEffort as fI, type XAIServerVADTurnDetection as fJ, archivedMemberConflictId as fK, asIdentifiedMemberContactConflict as fL, canPreviewVoice as fM, decodePermissions as fN, encodePermissions as fO, eventRuleActionParams as fP, getTTSProvider as fQ, getVoiceModelId as fR, isAccountContactConflict as fS, isIdentifiedMemberContactConflict as fT, isMemberContactConflict as fU, type AbilityData as fV, AbilityDataSchema as fW, AnonymousInquiryFormSchema as fX, type ArchiveTaskInput as fY, ArchiveTaskSchema as fZ, ChatTaskConfigurationPatchSchema as f_, type ThinkingSound as fa, type TimeSlot as fb, type TwoFactorMethod as fc, type TwoFactorOperationResponse as fd, type TwoFactorStatus as fe, type UnlinkCalendarResponse as ff, type UpdateAgentRequest as fg, type UpdateAttendeeRequest as fh, type UpdateDataRecordFilterRequest as fi, type UpdateEventRuleFormData as fj, type UpdateOrgMemberRequest as fk, type UpdateOrganizationRequest as fl, type UpdateRoutineRequest as fm, type UpdateTwoFactorMethodRequest as fn, type UpdateWorkspaceMemberRequest as fo, type ValidateMagicLinkRequest as fp, type ValidateMagicLinkResponse as fq, type ValidateQueryResponse as fr, type VerifyCodeRequest as fs, type VerifyCodeResponse as ft, type VerifyCredentialChangeRequest as fu, type VerifyEmailRequest as fv, type VerifyTOTPSetupRequest as fw, type VerifyWebAuthnSetupRequest as fx, type WebhookActionParams as fy, type WebhookLogSortField as fz, type AccountReportItem as g, type AgentMemoryConfig$1 as g$, ChildTaskFormDataSchema as g0, type CreateInquiryInput as g1, CreateInquirySchema as g2, type CreateTaskInput as g3, CreateTaskSchema as g4, type DeleteInquiryInput as g5, DeleteInquirySchema as g6, type DeleteTaskInput as g7, DeleteTaskSchema as g8, type EnrichInquiryInput as g9, type AdminAccountMembership as gA, type AdminAccountMembershipResponse as gB, type AdminAccountOrgMembershipResponse as gC, type AdminCarrierLedgerEntryResponse as gD, type AdminOrganization as gE, type AdminOrganizationResponse as gF, type AdminWorkspaceMemberFormData as gG, type ConsentRecordExport as gH, type DataExportResponse as gI, type DeletionCancelResponse as gJ, type DeletionRequestResponse as gK, type TwoFactorMethodResponse$1 as gL, type TwoFactorStatusResponse$1 as gM, type MintedSessionFields as gN, type OIDCAdminConfigInput as gO, type OrgMembershipExport as gP, type OrgScopedIdentityResponse as gQ, type SessionDescription as gR, SessionKind as gS, type TwoFactorMethodResponse as gT, type TwoFactorMethodType as gU, type TwoFactorStatusResponse as gV, type WebAuthnRegistrationResponse as gW, type WorkspaceMembershipExport as gX, type EnumOption$1 as gY, type EventRuleResponse$1 as gZ, type EventRuleData as g_, EnrichInquirySchema as ga, type GetInquiryInput as gb, GetInquirySchema as gc, type GetTaskInput as gd, GetTaskSchema as ge, type ListInquiriesInput as gf, ListInquiriesSchema as gg, type ListTasksInput as gh, ListTasksSchema as gi, OutcomeTaskRoutingSchema as gj, type TaskFormData as gk, TaskFormDataSchema as gl, type UnarchiveTaskInput as gm, UnarchiveTaskSchema as gn, type UpdateInquiryInput as go, UpdateInquiryRequestSchema as gp, UpdateInquirySchema as gq, type UpdateTaskInput as gr, UpdateTaskSchema as gs, DeclaredDataUse as gt, type AccountCustomerRef as gu, type AccountDataExport as gv, type AccountExternalIdentityResponse as gw, type AccountIdentityResolutionResponse as gx, type AdminAccountResponse as gy, type AdminAccountFormData as gz, type AccountSortField as h, EventRuleEventType$1 as h0, type OpenAIRealtimeModelConfig$1 as h1, type GeminiRealtimeModelConfig$1 as h2, type XAIRealtimeModelConfig$1 as h3, type SiteDnsRecord as h4, type OrgDomainListResponse as h5, type EmailDnsRecord as h6, type EmailDomainConfigGetResponse as h7, type SiteDomainConfigGetResponse as h8, type OrgBillingCustomerResponse as h9, type AccountState as i, type Address as j, type AdminWorkspaceSortField as k, type AgentResponse as l, type AgentConfigResponse as m, type AgentConfigFormData as n, type AgentMemoryConfig as o, type AgentSortField as p, type AnonymousInteractionResponse as q, type AnonymousMemberResolutionResponse as r, type AnonymousMemberResolutionStatus as s, type ApiKeyResponse as t, type ApiKeyCreatedResponse as u, type ApiKeyFormData as v, type ApiKeyScope as w, type ApiKeyScopesResponse as x, type AssignmentSortField as y, type AssistantMessageActionParams as z };
6439
+ export { AccessLevel as A, EventRuleEventType as E, AttendeeResponseStatus as F, AttendeeStatus as G, BulkMemberResultStatus as Y, BusinessIndustry as _, EventRuleActionType as a, BusinessType as a2, CalendarEventStatus as a7, DEFAULT_THINKING_SPEECH_PHRASES as aR, DataCategory as aS, CalendarPermissionType as ac, CalendarScheduleAvailabilityType as af, CalendarScheduleRecurrence as ah, CalendarSource as aj, DataFieldType as b, DataRecordRetirementResponseReason as b1, DataSensitivity as b5, DataTypeRecordScope as b9, ImportContactConflictField as bT, IndexStatus as bU, JobPosition as bY, EmailDnsRecordType as bg, EventRuleObjectType as br, MASKED_SECRET_SENTINEL as c6, MemberType as cO, MemberImportIssueCode as cn, MemberImportMatchInfoMatchType as cp, MemberImportPreviewRowAction as ct, OIDCAdminConfigViewProviderType as d8, QUERY_VALUELESS_OPS as dG, PERMISSION_ADMIN as dp, PERMISSION_CREATE as dq, PERMISSION_DELETE as dr, PERMISSION_EDIT as ds, PERMISSION_GEOLOCATE as dt, PERMISSION_LIST as du, PERMISSION_LIST_ALL as dv, PERMISSION_NONE as dw, PERMISSION_USE as dx, PERMISSION_VERIFY as dy, Scope as eO, SiteDnsRecordType as eX, Region as ek, RegistrationIdentifier as el, TTS_PREVIEW_PROVIDERS as f6, archivedMemberConflictId as fM, asIdentifiedMemberContactConflict as fN, canPreviewVoice as fO, decodePermissions as fP, encodePermissions as fQ, eventRuleActionParams as fR, getTTSProvider as fS, getVoiceModelId as fT, isAccountContactConflict as fU, isIdentifiedMemberContactConflict as fV, isMemberContactConflict as fW, DeclaredDataUse as fX, AbilityDataSchema as gH, AnonymousInquiryFormSchema as gI, ArchiveTaskSchema as gK, ChatTaskConfigurationPatchSchema as gL, ChildTaskFormDataSchema as gN, CreateTaskSchema as gQ, DeleteInquirySchema as gS, DeleteTaskSchema as gU, EnrichInquirySchema as gW, GetInquirySchema as gY, GetTaskSchema as g_, SessionKind as gk, EventRuleEventType$1 as gu, CreateInquirySchema as gy, UpdateInquiryRequestSchema as gz, ListInquiriesSchema as h0, ListTasksSchema as h2, OutcomeTaskRoutingSchema as h3, TaskFormDataSchema as h5, UnarchiveTaskSchema as h7, UpdateInquirySchema as h9, UpdateTaskSchema as hb };
6440
+ export type { BusinessInfo as $, AssistantMessageActionParams as B, AttendeeResponse as C, DataRecordResponse as D, AuthorizedRep as H, AvailabilityCheck as I, AvailabilityResponse as J, AvailableSlotsRequest as K, AvailableSlotsResponse as L, BaseChatModelConfig as M, BaseRealtimeModelConfig as N, BotSortField as O, BulkCreateDataRecordRequest as P, QueryPredicate as Q, BulkCreateDataRecordResponse as R, SchemaField as S, BulkCreateMembersRequest as T, BulkCreateMembersResponse as U, BulkMemberItem as V, WorkspaceMemberResponse as W, BulkMemberResult as X, BulkRecordResult as Z, DataRecordReportItem as a$, BusinessProfileCancelResponse as a0, BusinessProfileSubmitResponse as a1, Calendar as a3, EventResponse as a4, CalendarEventFormData as a5, CalendarEventSortField as a6, EventTypeResponse as a8, CalendarEventTypeFormData as a9, CreateAnonymousMemberRequest as aA, CreateCredentialChangeInviteRequest as aB, CreateDataRecordFilterRequest as aC, CreateOrganizationRequest as aD, CreateRoutineRequest as aE, CreateSignupResponse as aF, CreateWorkspaceMemberRequest as aG, CredentialChangeInviteConfirmResponse as aH, CredentialChangeInviteDetailsResponse as aI, CredentialChangeInviteResponse as aJ, CredentialChangeRequestResponse as aK, CredentialChangeVerifyResponse as aL, CredentialType as aM, CurrentMemberResponse as aN, CurrentOrgMember as aO, CursorPaginatedResponse as aP, CustomRealtimeModelConfig as aQ, DataField as aT, DataIntegrityReportItem as aU, DataRecordAssociationFormData as aV, DataRecordFieldWarning as aW, DataRecordFilterResponse as aX, DataRecordFilterFormData as aY, DataRecordFilterWithQuery as aZ, DataRecordFormData as a_, CalendarEventsQueryParams as aa, CalendarFormData as ab, CalendarResponse as ad, CalendarSchedule as ae, CalendarScheduleFormData as ag, CalendarScheduleResponse as ai, CancelCredentialChangeInviteResponse as ak, CancelCredentialChangeResponse as al, CapabilityRequirementFinding as am, CapabilityStatus as an, ChatContinueActionParams as ao, ChatCreateActionParams as ap, ChatModelConfig as aq, ChatPauseActionParams as ar, ChatSortField as as, ChatSummarizeActionParams as at, ClaudeChatModelConfig as au, ClaudeReasoningEffort as av, ConcludeAssignmentActionParams as aw, CreateAccountOrgMembershipRequest as ax, CreateAccountOrgMembershipResponse as ay, CreateAgentRequest as az, LibModelsGlbResponsesOrganizationResponsesSSOConfigResponse as b$, DataRecordRetirementResponse as b0, DataRecordUpdateResponse as b2, DataRecordWithAccessMode as b3, DataRecordsPaginatedResponse as b4, DataTypeResponse as b6, DataTypeExportItem as b7, DataTypeFormData as b8, GeminiRealtimeModelConfig as bA, GeminiThinkingLevel as bB, GenerateRecoveryCodesRequest as bC, BusinessProfileResponse as bD, CalendarResponse$1 as bE, CalendarScheduleResponse$1 as bF, MemoryListResponse as bG, MemoryResponse$1 as bH, OrgDomainResponse as bI, OwnershipDnsRecord as bJ, GoogleCalendarInfo as bK, GoogleCalendarInsufficientScopesResponse as bL, GoogleCalendarStatusResponse as bM, ICalFeedGrantSummary as bN, ICalFeedTokenResponse as bO, ICalFeedUrlResponse as bP, IdentifiedMemberContactConflict as bQ, IdentityConflictPolicy as bR, ImportContactConflict as bS, IndexStatusResponse as bV, InterruptionSound as bW, InvokeCustomToolActionParams as bX, JourneyEnrollActionParams as bZ, JourneySortField as b_, DataTypeSortField as ba, DeleteAccountOrgMembershipResponse as bb, DetailedAccount as bc, DuplicateAccountInfo as bd, EcwRefreshMemberEncountersActionParams as be, EmailDisableImpactResponse as bf, EmailDomainConfigResponse as bh, EmailSendActionParams as bi, EmailVerificationResponse as bj, EnumOption as bk, ErrorResponse as bl, EventActionMapping as bm, EventActionMappingsResponse as bn, EventRule as bo, EventRuleExportItem as bp, EventRuleFormData as bq, EventRuleResponse as bs, EventRunSortField as bt, ExpireAnonymousMemberRequest as bu, ExternalAttendeeData as bv, FileSortField as bw, FormFieldUpdateActionParams as bx, FormFieldUpdateAssignment as by, GeminiChatModelConfig as bz, EventRuleInput as c, MondayLookupType as c$, LinkCalendarRequest as c0, LinkCalendarResponse as c1, LoginRequest as c2, LoginResponse as c3, LogoUploadRequest as c4, LogoUploadResponse as c5, McpServerSortField as c7, MemberContactConflict as c8, MemberContactField as c9, MemberLabelActionParams as cA, MemberLabelFormData as cB, MemberMemoriesResponse as cC, MemberMessageActivity as cD, MemberOrgView as cE, MemberReportItem as cF, MemberRoleResponse as cG, MemberRoleFileAccessResponse as cH, MemberRoleFolderAccessResponse as cI, MemberRoleFormData as cJ, MemberRoleTaskAccess as cK, MemberSortField as cL, MemberSummary as cM, MemberSyncLink as cN, MemberUpsertActionParams as cP, MemberUpsertBehavior as cQ, MemberWorkspaceInfo as cR, MembersQueryParams as cS, MemoryItem as cT, MemoryResponse as cU, MemoryType as cV, MergeMembersRequest as cW, MergeMembersResponse as cX, MessageValidationActionParams as cY, MissingMembershipItem as cZ, MondayColumnMapping as c_, MemberCredentialResponse as ca, MemberFieldResponse as cb, MemberFieldDefinitionResponse as cc, MemberFieldDefinitionListResponse as cd, MemberFieldListResponse as ce, MemberFieldSourceResponse as cf, MemberFilterResponse as cg, MemberFilterFormData as ch, MemberFilterWithQuery as ci, MemberFormData as cj, MemberImportConflictInfo as ck, MemberImportIdentitySnapshot as cl, MemberImportIssue as cm, MemberImportMatchInfo as co, MemberImportOptions as cq, MemberImportPreviewResponse as cr, MemberImportPreviewRow as cs, MemberImportPreviewSummary as cu, MemberImportRunItemResponse as cv, MemberImportRunSummaryResponse as cw, MemberImportStreamConflict as cx, MemberImportStreamEvent as cy, MemberLabelResponse as cz, AccountResponse as d, QueryNot as d$, MondayRefreshActionParams as d0, MondayRefreshColumnMapping as d1, MondayUpsertItemActionParams as d2, MondayUpsertMode as d3, MultiMatchBehavior as d4, NormalizeMemberRequest as d5, NormalizeMemberResponse as d6, OIDCAdminConfigView as d7, ObjectPermission as d9, PaginatedResponse as dA, PendingAnonymousMembersResponse as dB, PendingCredentialChangeResponse as dC, PendingCredentialChangeInviteResponse as dD, PhoneCallActionParams as dE, PlayAudioActionParams as dF, QualificationSortField as dH, QueryAggregateOp as dI, QueryAggregatePredicate as dJ, QueryAggregateSpec as dK, QueryAnd as dL, QueryCompare as dM, QueryComparisonOp as dN, QueryCostInfo as dO, QueryDataTypeInfo as dP, QueryDayBoundaryValue as dQ, QueryDaysAgoValue as dR, QueryDaysFromNowValue as dS, QueryEntityType as dT, QueryEnumOption as dU, QueryFieldInfo as dV, QueryFieldsResponse as dW, QueryGroupBy as dX, QueryIR as dY, QueryMatchAll as dZ, QueryMetric as d_, ObjectPermissionFlags as da, OpenAIChatModelConfig as db, OpenAIRealtimeModelConfig as dc, OpenAIReasoningEffort as dd, OpenAISemanticVADEagerness as de, OpenAISemanticVADTurnDetection as df, OpenAIServerVADTurnDetection as dg, OpenAITurnDetection as dh, OpenAITurnDetectionType as di, OrgMember as dj, OrgMemberListResponse as dk, OrgMemberRole as dl, OrganizationResponse as dm, OwnershipVerificationResponse as dn, PageSortField as dz, AccountContactConflict as e, SmsSendActionParams as e$, QueryNowValue as e0, QueryOr as e1, QueryParameterRef as e2, QueryRangeBound as e3, QueryRangeValue as e4, QueryRecordFieldInfo as e5, QueryRecordMatch as e6, QueryRecordSelection as e7, QueryRelationMatch as e8, QueryRunMode as e9, RoutineVoiceReadinessPreviewRequest as eA, RoutineVoiceReadinessPreviewResponse as eB, RoutineVoiceReadinessWarningResponse as eC, RoutinesQueryParams as eD, RuleExecutionSortField as eE, RuleExecutionsQueryParams as eF, RunQueryRequest as eG, RunQueryResponse as eH, SendLoginCodeResponse as eI, SSOConfigData as eJ, SSOConfigRequest as eK, SSOProviderConfig as eL, SchedulePreviewRequest as eM, SchedulePreviewResponse as eN, SendEmailVerificationRequest as eP, SessionExchangeRequest as eQ, SessionExchangeResponse as eR, SetupTOTPRequest as eS, SetupWebAuthnRequest as eT, SignupAccountResponse as eU, SignupMemberResponse as eV, SiteDisableImpactResponse as eW, SiteDomainConfigResponse as eY, SiteSortField as eZ, SiteVerificationResponse as e_, QuerySavedFilterRef as ea, QueryScalar as eb, QuerySortKey as ec, QuerySubQueryRef as ed, QueryTemplatePredicate as ee, QueryTemplateValue as ef, QueryTemporalValue as eg, QueryValue as eh, RealtimeModelConfig as ei, RecoveryCodeResponse as ej, RequestCredentialChangeRequest as em, RequestMagicLinkRequest as en, RequestMagicLinkResponse as eo, ResolveAnonymousMemberRequest as ep, Routine as eq, RoutineConfigEventResponse as er, RoutineDestination as es, RoutineResponse as et, RoutineRunResponse as eu, RoutineRunStatus as ev, RoutineRunsQueryParams as ew, RoutineScheduleMode as ex, RoutineSortField as ey, RoutineVisibility as ez, AccountFormData as f, AccountIdentityResolutionResponse as f$, SortOrder as f0, SwitchTaskActionParams as f1, SyncCalendarResponse as f2, TOTPSetupResponse as f3, TTSModel as f4, TTSPreviewProvider as f5, TaskExportDataTypeRelation as f7, TaskExportEventRuleRelation as f8, TaskSortField as f9, WebhookActionParams as fA, WebhookLogSortField as fB, WebhookLogsQueryParams as fC, WorkflowSortField as fD, WorkspaceMemberCountResponse as fE, WorkspaceMemberCountResponseActiveByType as fF, WorkspaceSortField as fG, XAIChatModelConfig as fH, XAIRealtimeModelConfig as fI, XAIRealtimeReasoningEffort as fJ, XAIReasoningEffort as fK, XAIServerVADTurnDetection as fL, AccountCustomerRef as fY, AccountDataExport as fZ, AccountExternalIdentityResponse as f_, TestWebhookRequest as fa, TestWebhookResponse as fb, ThinkingSound as fc, TimeSlot as fd, TwoFactorMethod as fe, TwoFactorOperationResponse as ff, TwoFactorStatus as fg, UnlinkCalendarResponse as fh, UpdateAgentRequest as fi, UpdateAttendeeRequest as fj, UpdateDataRecordFilterRequest as fk, UpdateEventRuleFormData as fl, UpdateOrgMemberRequest as fm, UpdateOrganizationRequest as fn, UpdateRoutineRequest as fo, UpdateTwoFactorMethodRequest as fp, UpdateWorkspaceMemberRequest as fq, ValidateMagicLinkRequest as fr, ValidateMagicLinkResponse as fs, ValidateQueryResponse as ft, VerifyCodeRequest as fu, VerifyCodeResponse as fv, VerifyCredentialChangeRequest as fw, VerifyEmailRequest as fx, VerifyTOTPSetupRequest as fy, VerifyWebAuthnSetupRequest as fz, AccountLookupResponse as g, ListInquiriesInput as g$, AdminAccountResponse as g0, AdminAccountFormData as g1, AdminAccountMembership as g2, AdminAccountMembershipResponse as g3, AdminAccountOrgMembershipResponse as g4, AdminCarrierLedgerEntryResponse as g5, AdminOrganization as g6, AdminOrganizationResponse as g7, AdminWorkspaceMemberFormData as g8, ConsentRecordExport as g9, SiteDnsRecord as gA, OrgDomainListResponse as gB, EmailDnsRecord as gC, EmailDomainConfigGetResponse as gD, SiteDomainConfigGetResponse as gE, OrgBillingCustomerResponse as gF, AbilityData as gG, ArchiveTaskInput as gJ, ChildTaskFormData as gM, CreateInquiryInput as gO, CreateTaskInput as gP, DeleteInquiryInput as gR, DeleteTaskInput as gT, EnrichInquiryInput as gV, GetInquiryInput as gX, GetTaskInput as gZ, DataExportResponse as ga, DeletionCancelResponse as gb, DeletionRequestResponse as gc, TwoFactorMethodResponse$1 as gd, TwoFactorStatusResponse$1 as ge, MintedSessionFields as gf, OIDCAdminConfigInput as gg, OrgMembershipExport as gh, OrgScopedIdentityResponse as gi, SessionDescription as gj, TwoFactorMethodResponse as gl, TwoFactorMethodType as gm, TwoFactorStatusResponse as gn, WebAuthnRegistrationResponse as go, WorkspaceMembershipExport as gp, EnumOption$1 as gq, EventRuleResponse$1 as gr, EventRuleData as gs, AgentMemoryConfig$1 as gt, OpenAIRealtimeModelConfig$1 as gv, GeminiRealtimeModelConfig$1 as gw, XAIRealtimeModelConfig$1 as gx, AccountReportItem as h, ListTasksInput as h1, TaskFormData as h4, UnarchiveTaskInput as h6, UpdateInquiryInput as h8, UpdateTaskInput as ha, AccountSortField as i, AccountState as j, Address as k, AdminWorkspaceSortField as l, AgentResponse as m, AgentConfigResponse as n, AgentConfigFormData as o, AgentMemoryConfig as p, AgentSortField as q, AnonymousInteractionResponse as r, AnonymousMemberResolutionResponse as s, AnonymousMemberResolutionStatus as t, ApiKeyResponse as u, ApiKeyCreatedResponse as v, ApiKeyFormData as w, ApiKeyScope as x, ApiKeyScopesResponse as y, AssignmentSortField as z };