@gravity-rail/sdk 0.8.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +45 -8
  2. package/dist/chunk-FSSXKQR5.js +471 -0
  3. package/dist/chunk-FSSXKQR5.js.map +1 -0
  4. package/dist/{chunk-QS6ZRQUZ.js → chunk-V7ZKEH4V.js} +8 -1
  5. package/dist/chunk-V7ZKEH4V.js.map +1 -0
  6. package/dist/{chunk-ML55PVP7.js → chunk-YESHLUL7.js} +1435 -703
  7. package/dist/chunk-YESHLUL7.js.map +1 -0
  8. package/dist/{client-C2aWAalu.d.cts → client-BCgXtr8p.d.cts} +3684 -1291
  9. package/dist/{client-CLGovEox.d.ts → client-Dh1l20Ue.d.ts} +3684 -1291
  10. package/dist/helpers.cjs +177 -13
  11. package/dist/helpers.cjs.map +1 -1
  12. package/dist/helpers.d.cts +82 -3
  13. package/dist/helpers.d.ts +82 -3
  14. package/dist/helpers.js +155 -12
  15. package/dist/helpers.js.map +1 -1
  16. package/dist/index.cjs +1679 -420
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +32 -24
  19. package/dist/index.d.ts +32 -24
  20. package/dist/index.js +193 -113
  21. package/dist/index.js.map +1 -1
  22. package/dist/internal.cjs +1742 -413
  23. package/dist/internal.cjs.map +1 -1
  24. package/dist/internal.d.cts +634 -29
  25. package/dist/internal.d.ts +634 -29
  26. package/dist/internal.js +140 -7
  27. package/dist/internal.js.map +1 -1
  28. package/dist/realtime.cjs +43 -0
  29. package/dist/realtime.cjs.map +1 -1
  30. package/dist/realtime.d.cts +26 -0
  31. package/dist/realtime.d.ts +26 -0
  32. package/dist/realtime.js +43 -0
  33. package/dist/realtime.js.map +1 -1
  34. package/dist/{scopes-D6a_Mvqr.d.ts → revision-state-BTF-MnbW.d.cts} +270 -23
  35. package/dist/{scopes-CDaJBQVT.d.cts → revision-state-DOH1NMGb.d.ts} +270 -23
  36. package/dist/schemas.cjs +56 -117
  37. package/dist/schemas.cjs.map +1 -1
  38. package/dist/schemas.d.cts +121 -484
  39. package/dist/schemas.d.ts +121 -484
  40. package/dist/schemas.js +55 -114
  41. package/dist/schemas.js.map +1 -1
  42. package/dist/{inquiries-CmECZnkl.d.cts → tasks-C4aYbWVv.d.cts} +944 -148
  43. package/dist/{inquiries-CmECZnkl.d.ts → tasks-C4aYbWVv.d.ts} +944 -148
  44. package/package.json +5 -5
  45. package/dist/chunk-ML55PVP7.js.map +0 -1
  46. package/dist/chunk-QS6ZRQUZ.js.map +0 -1
@@ -117,11 +117,14 @@ declare enum Scope {
117
117
  ANALYTICS_READ = "analytics:read",
118
118
  OPERATOR_READ = "operator:read",
119
119
  OPERATOR_WRITE = "operator:write",
120
+ EXPORT_READ = "export:read",
121
+ EXPORT_WRITE = "export:write",
122
+ EXPORT_ADMIN = "export:admin",
120
123
  ORG_INFO = "org:info",
121
124
  ORG_READ = "org:read",
122
125
  ORG_WRITE = "org:write",
123
126
  ORG_ADMIN = "org:admin",
124
- ORG_BILLING = "org:billing",
127
+ ORG_MANAGE_ADMINS = "org:manage_admins",
125
128
  ORG_DELETE = "org:delete"
126
129
  }
127
130
 
@@ -150,8 +153,8 @@ type DataTypeSortField = 'name' | 'createdAt';
150
153
  type CalendarEventSortField = 'startTime' | 'createdAt';
151
154
 
152
155
  /**
153
- * Generated by Orval (filtered by scripts/types-codegen/allowlist.txt and
154
- * grouped by scripts/types-codegen/group_generated.ts). Do not edit manually.
156
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
157
+ * (group map from emit_openapi.py). Do not edit manually.
155
158
  * Group: account
156
159
  */
157
160
  /**
@@ -285,8 +288,13 @@ interface CancelCredentialChangeResponse {
285
288
  interface CredentialChangeInviteConfirmResponse {
286
289
  success: boolean;
287
290
  message: string;
288
- credentialType?: 'email' | 'phone' | null;
291
+ credentialType?: CredentialChangeInviteConfirmResponseCredentialType;
289
292
  }
293
+ type CredentialChangeInviteConfirmResponseCredentialType = typeof CredentialChangeInviteConfirmResponseCredentialType[keyof typeof CredentialChangeInviteConfirmResponseCredentialType] | null;
294
+ declare const CredentialChangeInviteConfirmResponseCredentialType: {
295
+ readonly email: "email";
296
+ readonly phone: "phone";
297
+ };
290
298
  /**
291
299
  * Response with details of a credential change invitation.
292
300
  *
@@ -304,7 +312,7 @@ interface CredentialChangeInviteDetailsResponse {
304
312
  isExpired: boolean;
305
313
  isValid: boolean;
306
314
  }
307
- type CredentialChangeInviteDetailsResponseCredentialType = (typeof CredentialChangeInviteDetailsResponseCredentialType)[keyof typeof CredentialChangeInviteDetailsResponseCredentialType];
315
+ type CredentialChangeInviteDetailsResponseCredentialType = typeof CredentialChangeInviteDetailsResponseCredentialType[keyof typeof CredentialChangeInviteDetailsResponseCredentialType];
308
316
  declare const CredentialChangeInviteDetailsResponseCredentialType: {
309
317
  readonly email: "email";
310
318
  readonly phone: "phone";
@@ -319,7 +327,7 @@ interface CredentialChangeInviteResponse {
319
327
  expiresAt: string;
320
328
  message: string;
321
329
  }
322
- type CredentialChangeInviteResponseCredentialType = (typeof CredentialChangeInviteResponseCredentialType)[keyof typeof CredentialChangeInviteResponseCredentialType];
330
+ type CredentialChangeInviteResponseCredentialType = typeof CredentialChangeInviteResponseCredentialType[keyof typeof CredentialChangeInviteResponseCredentialType];
323
331
  declare const CredentialChangeInviteResponseCredentialType: {
324
332
  readonly email: "email";
325
333
  readonly phone: "phone";
@@ -329,11 +337,11 @@ declare const CredentialChangeInviteResponseCredentialType: {
329
337
  */
330
338
  interface CredentialChangeRequestResponse {
331
339
  id: number;
332
- credential_type: CredentialChangeRequestResponseCredentialType;
333
- expires_at: string;
340
+ credentialType: CredentialChangeRequestResponseCredentialType;
341
+ expiresAt: string;
334
342
  message: string;
335
343
  }
336
- type CredentialChangeRequestResponseCredentialType = (typeof CredentialChangeRequestResponseCredentialType)[keyof typeof CredentialChangeRequestResponseCredentialType];
344
+ type CredentialChangeRequestResponseCredentialType = typeof CredentialChangeRequestResponseCredentialType[keyof typeof CredentialChangeRequestResponseCredentialType];
337
345
  declare const CredentialChangeRequestResponseCredentialType: {
338
346
  readonly email: "email";
339
347
  readonly phone: "phone";
@@ -344,8 +352,13 @@ declare const CredentialChangeRequestResponseCredentialType: {
344
352
  interface CredentialChangeVerifyResponse {
345
353
  success: boolean;
346
354
  message: string;
347
- credential_type?: 'email' | 'phone' | null;
355
+ credentialType?: CredentialChangeVerifyResponseCredentialType;
348
356
  }
357
+ type CredentialChangeVerifyResponseCredentialType = typeof CredentialChangeVerifyResponseCredentialType[keyof typeof CredentialChangeVerifyResponseCredentialType] | null;
358
+ declare const CredentialChangeVerifyResponseCredentialType: {
359
+ readonly email: "email";
360
+ readonly phone: "phone";
361
+ };
349
362
  interface LoginResponse {
350
363
  token: string;
351
364
  accountId: number;
@@ -368,7 +381,7 @@ interface PendingCredentialChangeInviteResponse {
368
381
  isExpired: boolean;
369
382
  status: string;
370
383
  }
371
- type PendingCredentialChangeInviteResponseCredentialType = (typeof PendingCredentialChangeInviteResponseCredentialType)[keyof typeof PendingCredentialChangeInviteResponseCredentialType];
384
+ type PendingCredentialChangeInviteResponseCredentialType = typeof PendingCredentialChangeInviteResponseCredentialType[keyof typeof PendingCredentialChangeInviteResponseCredentialType];
372
385
  declare const PendingCredentialChangeInviteResponseCredentialType: {
373
386
  readonly email: "email";
374
387
  readonly phone: "phone";
@@ -378,14 +391,14 @@ declare const PendingCredentialChangeInviteResponseCredentialType: {
378
391
  */
379
392
  interface PendingCredentialChangeResponse {
380
393
  id: number;
381
- credential_type: PendingCredentialChangeResponseCredentialType;
382
- masked_new_value: string;
383
- created_at: string;
384
- expires_at: string;
385
- is_expired: boolean;
394
+ credentialType: PendingCredentialChangeResponseCredentialType;
395
+ maskedNewValue: string;
396
+ createdAt: string;
397
+ expiresAt: string;
398
+ isExpired: boolean;
386
399
  attempts: number;
387
400
  }
388
- type PendingCredentialChangeResponseCredentialType = (typeof PendingCredentialChangeResponseCredentialType)[keyof typeof PendingCredentialChangeResponseCredentialType];
401
+ type PendingCredentialChangeResponseCredentialType = typeof PendingCredentialChangeResponseCredentialType[keyof typeof PendingCredentialChangeResponseCredentialType];
389
402
  declare const PendingCredentialChangeResponseCredentialType: {
390
403
  readonly email: "email";
391
404
  readonly phone: "phone";
@@ -471,43 +484,44 @@ type WebAuthnRegistrationResponseCredentialCreationOptions = {
471
484
  };
472
485
 
473
486
  /**
474
- * Generated by Orval (filtered by scripts/types-codegen/allowlist.txt and
475
- * grouped by scripts/types-codegen/group_generated.ts). Do not edit manually.
487
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
488
+ * (group map from emit_openapi.py). Do not edit manually.
476
489
  * Group: organization
477
490
  */
491
+
478
492
  /**
479
493
  * Twilio Address resource.
480
494
  */
481
495
  interface Address {
482
496
  /**
483
- * @minLength 1
484
- * @maxLength 100
485
- */
497
+ * @minLength 1
498
+ * @maxLength 100
499
+ */
486
500
  customerName: string;
487
501
  /**
488
- * @minLength 1
489
- * @maxLength 100
490
- */
502
+ * @minLength 1
503
+ * @maxLength 100
504
+ */
491
505
  street: string;
492
506
  /**
493
- * @minLength 1
494
- * @maxLength 50
495
- */
507
+ * @minLength 1
508
+ * @maxLength 50
509
+ */
496
510
  city: string;
497
511
  /**
498
- * @minLength 1
499
- * @maxLength 50
500
- */
512
+ * @minLength 1
513
+ * @maxLength 50
514
+ */
501
515
  region: string;
502
516
  /**
503
- * @minLength 1
504
- * @maxLength 20
505
- */
517
+ * @minLength 1
518
+ * @maxLength 20
519
+ */
506
520
  postalCode: string;
507
521
  /**
508
- * @minLength 2
509
- * @maxLength 2
510
- */
522
+ * @minLength 2
523
+ * @maxLength 2
524
+ */
511
525
  isoCountry: string;
512
526
  }
513
527
  /**
@@ -544,6 +558,13 @@ interface AdminOrganizationResponse$1 {
544
558
  phoneNumberCount?: number;
545
559
  ssoOidc?: OIDCAdminConfigView | null;
546
560
  enforceCreditLimit?: boolean;
561
+ declaredDataUse?: DeclaredDataUse;
562
+ phiPolicyVersion?: string | null;
563
+ phiPolicySource?: string | null;
564
+ phiPolicyReason?: string | null;
565
+ phiPolicyReviewedAt?: string | null;
566
+ phiPolicyReviewedByAccountId?: number | null;
567
+ phiPolicyReviewDueAt?: string | null;
547
568
  }
548
569
  /**
549
570
  * Authorized representative — Twilio End-User of type
@@ -551,25 +572,25 @@ interface AdminOrganizationResponse$1 {
551
572
  */
552
573
  interface AuthorizedRep {
553
574
  /**
554
- * @minLength 1
555
- * @maxLength 50
556
- */
575
+ * @minLength 1
576
+ * @maxLength 50
577
+ */
557
578
  firstName: string;
558
579
  /**
559
- * @minLength 1
560
- * @maxLength 50
561
- */
580
+ * @minLength 1
581
+ * @maxLength 50
582
+ */
562
583
  lastName: string;
563
584
  email: string;
564
585
  /**
565
- * @minLength 1
566
- * @maxLength 20
567
- */
586
+ * @minLength 1
587
+ * @maxLength 20
588
+ */
568
589
  phoneNumber: string;
569
590
  /**
570
- * @minLength 1
571
- * @maxLength 50
572
- */
591
+ * @minLength 1
592
+ * @maxLength 50
593
+ */
573
594
  businessTitle: string;
574
595
  jobPosition: JobPosition;
575
596
  }
@@ -578,7 +599,7 @@ interface AuthorizedRep {
578
599
  *
579
600
  * Source: ``api-create-secondary-customer-profile.md``.
580
601
  */
581
- type BusinessIndustry = (typeof BusinessIndustry)[keyof typeof BusinessIndustry];
602
+ type BusinessIndustry = typeof BusinessIndustry[keyof typeof BusinessIndustry];
582
603
  declare const BusinessIndustry: {
583
604
  readonly AGRICULTURE: "AGRICULTURE";
584
605
  readonly AUTOMOTIVE: "AUTOMOTIVE";
@@ -621,24 +642,24 @@ declare const BusinessIndustry: {
621
642
  */
622
643
  interface BusinessInfo {
623
644
  /**
624
- * @minLength 1
625
- * @maxLength 100
626
- */
645
+ * @minLength 1
646
+ * @maxLength 100
647
+ */
627
648
  legalName: string;
628
649
  industry: BusinessIndustry;
629
650
  businessType: BusinessType;
630
651
  /**
631
- * @minLength 1
632
- * @maxLength 64
633
- */
652
+ * @minLength 1
653
+ * @maxLength 64
654
+ */
634
655
  registrationNumber: string;
635
656
  registrationIdentifier: RegistrationIdentifier;
636
657
  /** @minItems 1 */
637
658
  regionsOfOperation: Region[];
638
659
  /**
639
- * @minLength 1
640
- * @maxLength 2083
641
- */
660
+ * @minLength 1
661
+ * @maxLength 2083
662
+ */
642
663
  websiteUrl: string;
643
664
  }
644
665
  interface BusinessProfileCancelResponse {
@@ -665,18 +686,23 @@ interface BusinessProfileCancelResponse {
665
686
  */
666
687
  interface BusinessProfileResponse {
667
688
  status?: string | null;
668
- evaluationStatus?: 'compliant' | 'noncompliant' | null;
689
+ evaluationStatus?: BusinessProfileResponseEvaluationStatus;
669
690
  customerProfileSid?: string | null;
670
691
  businessInfo?: BusinessInfo | null;
671
692
  authorizedReps?: AuthorizedRep[];
672
693
  address?: Address | null;
673
694
  failureReasons?: string[];
674
695
  }
696
+ type BusinessProfileResponseEvaluationStatus = typeof BusinessProfileResponseEvaluationStatus[keyof typeof BusinessProfileResponseEvaluationStatus] | null;
697
+ declare const BusinessProfileResponseEvaluationStatus: {
698
+ readonly compliant: "compliant";
699
+ readonly noncompliant: "noncompliant";
700
+ };
675
701
  interface BusinessProfileSubmitResponse {
676
702
  status: BusinessProfileSubmitResponseStatus;
677
703
  workflowId: string;
678
704
  }
679
- type BusinessProfileSubmitResponseStatus = (typeof BusinessProfileSubmitResponseStatus)[keyof typeof BusinessProfileSubmitResponseStatus];
705
+ type BusinessProfileSubmitResponseStatus = typeof BusinessProfileSubmitResponseStatus[keyof typeof BusinessProfileSubmitResponseStatus];
680
706
  declare const BusinessProfileSubmitResponseStatus: {
681
707
  readonly 'pending-review': "pending-review";
682
708
  readonly submitting: "submitting";
@@ -688,7 +714,7 @@ declare const BusinessProfileSubmitResponseStatus: {
688
714
  * inconsistently cased (Title Case here, SHOUTING_SNAKE for industry,
689
715
  * lowercase_snake for identity) — that's how Twilio defines them.
690
716
  */
691
- type BusinessType = (typeof BusinessType)[keyof typeof BusinessType];
717
+ type BusinessType = typeof BusinessType[keyof typeof BusinessType];
692
718
  declare const BusinessType: {
693
719
  readonly Sole_Proprietorship: "Sole Proprietorship";
694
720
  readonly Partnership: "Partnership";
@@ -697,6 +723,12 @@ declare const BusinessType: {
697
723
  readonly 'Non-profit_Corporation': "Non-profit Corporation";
698
724
  readonly Corporation: "Corporation";
699
725
  };
726
+ type DeclaredDataUse = typeof DeclaredDataUse[keyof typeof DeclaredDataUse];
727
+ declare const DeclaredDataUse: {
728
+ readonly unclassified: "unclassified";
729
+ readonly non_phi_only: "non_phi_only";
730
+ readonly phi_expected: "phi_expected";
731
+ };
700
732
  /**
701
733
  * Inboxes that will lose routing if email is disabled.
702
734
  *
@@ -720,7 +752,7 @@ interface EmailDnsRecord {
720
752
  purpose: string;
721
753
  status: string;
722
754
  }
723
- type EmailDnsRecordType = (typeof EmailDnsRecordType)[keyof typeof EmailDnsRecordType];
755
+ type EmailDnsRecordType = typeof EmailDnsRecordType[keyof typeof EmailDnsRecordType];
724
756
  declare const EmailDnsRecordType: {
725
757
  readonly TXT: "TXT";
726
758
  readonly CNAME: "CNAME";
@@ -771,7 +803,7 @@ interface EmailVerificationResponse {
771
803
  *
772
804
  * Source: ``api-create-secondary-customer-profile.md``.
773
805
  */
774
- type JobPosition = (typeof JobPosition)[keyof typeof JobPosition];
806
+ type JobPosition = typeof JobPosition[keyof typeof JobPosition];
775
807
  declare const JobPosition: {
776
808
  readonly Director: "Director";
777
809
  readonly GM: "GM";
@@ -808,7 +840,7 @@ interface OIDCAdminConfigView {
808
840
  clientSecret?: string | null;
809
841
  clientSecretSet?: boolean;
810
842
  }
811
- type OIDCAdminConfigViewProviderType = (typeof OIDCAdminConfigViewProviderType)[keyof typeof OIDCAdminConfigViewProviderType];
843
+ type OIDCAdminConfigViewProviderType = typeof OIDCAdminConfigViewProviderType[keyof typeof OIDCAdminConfigViewProviderType];
812
844
  declare const OIDCAdminConfigViewProviderType: {
813
845
  readonly azure_ad: "azure_ad";
814
846
  readonly okta: "okta";
@@ -883,7 +915,7 @@ interface OwnershipVerificationResponse {
883
915
  * Twilio actually uses these continental buckets, with ``USA_AND_CANADA``
884
916
  * as a single value. Source: ``api-create-secondary-customer-profile.md``.
885
917
  */
886
- type Region = (typeof Region)[keyof typeof Region];
918
+ type Region = typeof Region[keyof typeof Region];
887
919
  declare const Region: {
888
920
  readonly AFRICA: "AFRICA";
889
921
  readonly ASIA: "ASIA";
@@ -900,7 +932,7 @@ declare const Region: {
900
932
  * values, augmented with ``DUNS`` from the EndUser create example —
901
933
  * the table omits ``DUNS`` but Twilio accepts it).
902
934
  */
903
- type RegistrationIdentifier = (typeof RegistrationIdentifier)[keyof typeof RegistrationIdentifier];
935
+ type RegistrationIdentifier = typeof RegistrationIdentifier[keyof typeof RegistrationIdentifier];
904
936
  declare const RegistrationIdentifier: {
905
937
  readonly EIN: "EIN";
906
938
  readonly CBN: "CBN";
@@ -958,7 +990,7 @@ interface SiteDnsRecord {
958
990
  purpose: string;
959
991
  status: string;
960
992
  }
961
- type SiteDnsRecordType = (typeof SiteDnsRecordType)[keyof typeof SiteDnsRecordType];
993
+ type SiteDnsRecordType = typeof SiteDnsRecordType[keyof typeof SiteDnsRecordType];
962
994
  declare const SiteDnsRecordType: {
963
995
  readonly CNAME: "CNAME";
964
996
  readonly A: "A";
@@ -1100,12 +1132,9 @@ interface RequestMagicLinkResponse {
1100
1132
  }
1101
1133
  interface ValidateMagicLinkRequest {
1102
1134
  token: string;
1103
- otp?: string;
1104
1135
  }
1105
1136
  interface ValidateMagicLinkResponse extends VerifyCodeResponse {
1106
1137
  success: boolean;
1107
- requiresOtp?: boolean;
1108
- otpAttemptsRemaining?: number;
1109
1138
  redirectUrl?: string;
1110
1139
  }
1111
1140
  interface ApiKeyFormData {
@@ -1257,7 +1286,7 @@ interface MissingMembershipItem {
1257
1286
  account_id: number;
1258
1287
  account_uuid: string;
1259
1288
  }
1260
- type OrgMemberRole = 'member' | 'admin' | 'owner';
1289
+ type OrgMemberRole = 'member' | 'admin' | 'owner' | 'platform_support';
1261
1290
  interface OrgMember {
1262
1291
  id: number;
1263
1292
  accountId: number | null;
@@ -1369,8 +1398,8 @@ interface DeletionCancelResponse {
1369
1398
  }
1370
1399
 
1371
1400
  /**
1372
- * Generated by Orval (filtered by scripts/types-codegen/allowlist.txt and
1373
- * grouped by scripts/types-codegen/group_generated.ts). Do not edit manually.
1401
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
1402
+ * (group map from emit_openapi.py). Do not edit manually.
1374
1403
  * Group: member
1375
1404
  */
1376
1405
  /**
@@ -1387,6 +1416,7 @@ interface AgentConfigResponse {
1387
1416
  tools?: string[] | null;
1388
1417
  codeInterpreterEnabled?: boolean;
1389
1418
  memoryConfig?: AgentConfigResponseMemoryConfig;
1419
+ presetDigest: string;
1390
1420
  createdAt: string;
1391
1421
  updatedAt: string;
1392
1422
  }
@@ -1414,7 +1444,7 @@ interface AgentResponse {
1414
1444
  phone?: string | null;
1415
1445
  externalId?: string | null;
1416
1446
  memberRoleId: number;
1417
- memberRoleName: string;
1447
+ memberRoleName?: string | null;
1418
1448
  memberType?: string;
1419
1449
  isArchived?: boolean;
1420
1450
  ownerId?: number | null;
@@ -1475,12 +1505,46 @@ interface BulkMemberResult {
1475
1505
  externalId?: string | null;
1476
1506
  error?: string | null;
1477
1507
  }
1478
- type BulkMemberResultStatus = (typeof BulkMemberResultStatus)[keyof typeof BulkMemberResultStatus];
1508
+ type BulkMemberResultStatus = typeof BulkMemberResultStatus[keyof typeof BulkMemberResultStatus];
1479
1509
  declare const BulkMemberResultStatus: {
1480
1510
  readonly created: "created";
1481
1511
  readonly updated: "updated";
1482
1512
  readonly failed: "failed";
1483
1513
  };
1514
+ /**
1515
+ * One unmet requirement of a surface capability.
1516
+ *
1517
+ * ``subject`` says who can remediate it (workspace admin vs the member),
1518
+ * mirroring the ability-requirements finding shape.
1519
+ */
1520
+ interface CapabilityRequirementFinding {
1521
+ kind: CapabilityRequirementFindingKind;
1522
+ slug: string;
1523
+ subject: CapabilityRequirementFindingSubject;
1524
+ }
1525
+ type CapabilityRequirementFindingKind = typeof CapabilityRequirementFindingKind[keyof typeof CapabilityRequirementFindingKind];
1526
+ declare const CapabilityRequirementFindingKind: {
1527
+ readonly feature: "feature";
1528
+ readonly member_scope: "member_scope";
1529
+ };
1530
+ type CapabilityRequirementFindingSubject = typeof CapabilityRequirementFindingSubject[keyof typeof CapabilityRequirementFindingSubject];
1531
+ declare const CapabilityRequirementFindingSubject: {
1532
+ readonly org: "org";
1533
+ readonly workspace: "workspace";
1534
+ readonly member: "member";
1535
+ };
1536
+ /**
1537
+ * Resolved availability of one surface capability for one member.
1538
+ *
1539
+ * ``enabled`` is the full conjunction (feature available AND authorized).
1540
+ * ``missing`` enumerates the unmet requirements with their subjects so the
1541
+ * client can render the right affordance without re-deriving the gate.
1542
+ */
1543
+ interface CapabilityStatus {
1544
+ slug: string;
1545
+ enabled: boolean;
1546
+ missing: CapabilityRequirementFinding[];
1547
+ }
1484
1548
  /**
1485
1549
  * Response model for the create-signup endpoint.
1486
1550
  */
@@ -1513,6 +1577,8 @@ interface CurrentMemberResponse {
1513
1577
  email: string | null;
1514
1578
  externalId: string | null;
1515
1579
  dateOfBirth?: string | null;
1580
+ emailTrusted?: boolean;
1581
+ phoneTrusted?: boolean;
1516
1582
  notifySms: boolean;
1517
1583
  notifyEmail: boolean;
1518
1584
  notifyVoice: boolean;
@@ -1534,7 +1600,15 @@ interface CurrentMemberResponse {
1534
1600
  canLogin?: boolean;
1535
1601
  experimentGroup?: MemberExperimentGroupSummary | null;
1536
1602
  scopes?: string[];
1603
+ /** 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. */
1604
+ capabilities?: CurrentMemberResponseCapabilities;
1537
1605
  }
1606
+ /**
1607
+ * 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.
1608
+ */
1609
+ type CurrentMemberResponseCapabilities = {
1610
+ [key: string]: CapabilityStatus;
1611
+ };
1538
1612
  /**
1539
1613
  * A soft-warning entry for a DataRecord field schema mismatch.
1540
1614
  *
@@ -1633,18 +1707,81 @@ interface MemberFilterResponse {
1633
1707
  pinned?: boolean | null;
1634
1708
  createdAt: string;
1635
1709
  updatedAt: string;
1636
- rules: MemberFilterRuleResponse[];
1710
+ query?: MemberFilterResponseQuery;
1637
1711
  }
1712
+ type MemberFilterResponseQuery = {
1713
+ [key: string]: unknown;
1714
+ } | null;
1638
1715
  /**
1639
- * Response model for a member filter rule.
1716
+ * Why an import row is a phone-only identity conflict (field names only).
1640
1717
  */
1641
- interface MemberFilterRuleResponse {
1642
- id: number;
1643
- uuid: string;
1644
- objectType: string;
1645
- filterType: string;
1646
- objectIds?: number[] | null;
1647
- query?: string | null;
1718
+ interface MemberImportConflictInfo {
1719
+ code: string;
1720
+ fields: string[];
1721
+ }
1722
+ /**
1723
+ * Identity values shown to the operator to compare a conflict row.
1724
+ *
1725
+ * Populated only for conflict rows in the preview response (PHI minimization).
1726
+ */
1727
+ interface MemberImportIdentitySnapshot {
1728
+ name?: string | null;
1729
+ dateOfBirth?: string | null;
1730
+ }
1731
+ /**
1732
+ * Which existing Member an import row matched, and how it matched.
1733
+ */
1734
+ interface MemberImportMatchInfo {
1735
+ matchType: MemberImportMatchInfoMatchType;
1736
+ memberId: number;
1737
+ memberUuid: string;
1738
+ }
1739
+ type MemberImportMatchInfoMatchType = typeof MemberImportMatchInfoMatchType[keyof typeof MemberImportMatchInfoMatchType];
1740
+ declare const MemberImportMatchInfoMatchType: {
1741
+ readonly external_id: "external_id";
1742
+ readonly email: "email";
1743
+ readonly phone: "phone";
1744
+ readonly account_email: "account_email";
1745
+ readonly account_phone: "account_phone";
1746
+ };
1747
+ /**
1748
+ * Read-only classification of an uploaded CSV before any write occurs.
1749
+ */
1750
+ interface MemberImportPreviewResponse {
1751
+ totalRows: number;
1752
+ summary: MemberImportPreviewSummary;
1753
+ rows: MemberImportPreviewRow[];
1754
+ }
1755
+ /**
1756
+ * One classified import row in the read-only preview response.
1757
+ */
1758
+ interface MemberImportPreviewRow {
1759
+ row: number;
1760
+ action: MemberImportPreviewRowAction;
1761
+ match?: MemberImportMatchInfo | null;
1762
+ conflict?: MemberImportConflictInfo | null;
1763
+ existingIdentity?: MemberImportIdentitySnapshot | null;
1764
+ incomingIdentity?: MemberImportIdentitySnapshot | null;
1765
+ proposedChanges?: string[];
1766
+ error?: string | null;
1767
+ }
1768
+ type MemberImportPreviewRowAction = typeof MemberImportPreviewRowAction[keyof typeof MemberImportPreviewRowAction];
1769
+ declare const MemberImportPreviewRowAction: {
1770
+ readonly create: "create";
1771
+ readonly update: "update";
1772
+ readonly unchanged: "unchanged";
1773
+ readonly conflict: "conflict";
1774
+ readonly error: "error";
1775
+ };
1776
+ /**
1777
+ * Counts per classified action for an import preview.
1778
+ */
1779
+ interface MemberImportPreviewSummary {
1780
+ create?: number;
1781
+ update?: number;
1782
+ unchanged?: number;
1783
+ conflict?: number;
1784
+ error?: number;
1648
1785
  }
1649
1786
  /**
1650
1787
  * Response model for assistant label endpoints.
@@ -1782,6 +1919,33 @@ interface SignupMemberResponse {
1782
1919
  labels?: string[];
1783
1920
  tosAccepted: boolean;
1784
1921
  }
1922
+ /**
1923
+ * Aggregate member counts for a workspace (superuser admin view).
1924
+ *
1925
+ * Returns COUNTs only — never member rows — so no PHI is exposed. Lets a
1926
+ * superuser tally members across workspaces they are not a member of, filling
1927
+ * the gap where the workspace-scoped member endpoints require membership.
1928
+ */
1929
+ interface WorkspaceMemberCountResponse {
1930
+ /** Workspace UUID */
1931
+ workspaceUuid: string;
1932
+ /** Numeric workspace ID */
1933
+ workspaceId: number;
1934
+ /** Total member rows (all member types, including archived) */
1935
+ totalMembers: number;
1936
+ /** Non-archived member rows (all member types) */
1937
+ activeMembers: number;
1938
+ /** Archived member rows (all member types) */
1939
+ archivedMembers: number;
1940
+ /** Non-archived member counts keyed by member_type (member, agent, anonymous, test) */
1941
+ activeByType?: WorkspaceMemberCountResponseActiveByType;
1942
+ }
1943
+ /**
1944
+ * Non-archived member counts keyed by member_type (member, agent, anonymous, test)
1945
+ */
1946
+ type WorkspaceMemberCountResponseActiveByType = {
1947
+ [key: string]: number;
1948
+ };
1785
1949
  interface WorkspaceMemberResponse {
1786
1950
  id: number;
1787
1951
  uuid: string;
@@ -1798,6 +1962,8 @@ interface WorkspaceMemberResponse {
1798
1962
  email: string | null;
1799
1963
  externalId: string | null;
1800
1964
  dateOfBirth?: string | null;
1965
+ emailTrusted?: boolean;
1966
+ phoneTrusted?: boolean;
1801
1967
  notifySms: boolean;
1802
1968
  notifyEmail: boolean;
1803
1969
  notifyVoice: boolean;
@@ -1820,6 +1986,250 @@ interface WorkspaceMemberResponse {
1820
1986
  experimentGroup?: MemberExperimentGroupSummary | null;
1821
1987
  }
1822
1988
 
1989
+ /**
1990
+ * Unified Query Engine types — hand-written mirror of `lib/query/ir.py`
1991
+ * and the `/w/{wid}/queries/*` route models.
1992
+ *
1993
+ * The JSON IR is the wire format AND the UI's source of truth: the
1994
+ * query-builder renders from and edits exactly this tree.
1995
+ */
1996
+ type QueryEntityType = 'member' | 'chat' | 'data_record';
1997
+ type QueryComparisonOp = 'eq' | 'neq' | 'contains' | 'notContains' | 'startsWith' | 'in' | 'notIn' | 'gt' | 'gte' | 'lt' | 'lte' | 'between' | 'notBetween' | 'isEmpty' | 'notEmpty' | 'exists' | 'onDay' | 'notOnDay';
1998
+ type QueryAggregateOp = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte';
1999
+ /** Operators that take no value. */
2000
+ declare const QUERY_VALUELESS_OPS: ReadonlySet<QueryComparisonOp>;
2001
+ interface QueryNowValue {
2002
+ type: 'now';
2003
+ }
2004
+ interface QueryDaysAgoValue {
2005
+ type: 'daysAgo';
2006
+ days: number;
2007
+ /** Optional hour component (legacy "36h" duration windows). */
2008
+ hours?: number;
2009
+ }
2010
+ interface QueryDaysFromNowValue {
2011
+ type: 'daysFromNow';
2012
+ days: number;
2013
+ }
2014
+ interface QueryDayBoundaryValue {
2015
+ type: 'dayBoundary';
2016
+ /** 'today' | 'tomorrow' | 'yesterday' | ISO date (YYYY-MM-DD) */
2017
+ day: string;
2018
+ edge?: 'start' | 'end';
2019
+ /** Whole-day shift relative to `day` (legacy daysAgoEqual: N). */
2020
+ offsetDays?: number;
2021
+ /** UTC-pinned day bounds (legacy calendar-event day operators). */
2022
+ tz?: 'workspace' | 'utc';
2023
+ }
2024
+ type QueryTemporalValue = QueryNowValue | QueryDaysAgoValue | QueryDaysFromNowValue | QueryDayBoundaryValue;
2025
+ type QueryScalar = boolean | number | string;
2026
+ type QueryRangeBound = QueryScalar | QueryTemporalValue;
2027
+ interface QueryRangeValue {
2028
+ type: 'range';
2029
+ min: QueryRangeBound;
2030
+ max: QueryRangeBound;
2031
+ }
2032
+ type QueryValue = QueryScalar | QueryTemporalValue | QueryRangeValue | QueryScalar[];
2033
+ interface QueryAnd {
2034
+ kind: 'and';
2035
+ children: QueryPredicate[];
2036
+ }
2037
+ interface QueryOr {
2038
+ kind: 'or';
2039
+ children: QueryPredicate[];
2040
+ }
2041
+ interface QueryNot {
2042
+ kind: 'not';
2043
+ child: QueryPredicate;
2044
+ }
2045
+ interface QueryCompare {
2046
+ kind: 'compare';
2047
+ field: string;
2048
+ op: QueryComparisonOp;
2049
+ value?: QueryValue | null;
2050
+ }
2051
+ interface QueryRecordSelection {
2052
+ field: string;
2053
+ criterion: 'newest' | 'oldest' | 'highest' | 'lowest' | 'earliest' | 'latest' | 'true' | 'false';
2054
+ }
2055
+ /**
2056
+ * Correlated record predicate (#16104): all conditions in `where` must
2057
+ * match the SAME DataRecord row.
2058
+ *
2059
+ * - any → EXISTS(match)
2060
+ * - none → NOT EXISTS(match), members with no records DO match
2061
+ * - noneWithRecord → NOT EXISTS(match) AND has at least one record
2062
+ */
2063
+ interface QueryRecordMatch {
2064
+ kind: 'recordMatch';
2065
+ dataType: number | string;
2066
+ mode?: 'any' | 'none' | 'noneWithRecord';
2067
+ where?: QueryPredicate | null;
2068
+ selection?: QueryRecordSelection | null;
2069
+ }
2070
+ /**
2071
+ * Correlated EXISTS over a named related-entity relation (the RecordMatch
2072
+ * pattern generalized): all conditions in `where` apply to the SAME related
2073
+ * row. Relations and their sub-fields come from `QueryFieldsResponse.relations`
2074
+ * (e.g. member `workflowEntries` → entry.workflowId / entry.status /
2075
+ * entry.enteredAt; `calendarEvents` → event.calendarId / event.typeId /
2076
+ * event.startTime).
2077
+ *
2078
+ * - any → EXISTS(match)
2079
+ * - none → NOT EXISTS(match), members with no related rows DO match
2080
+ */
2081
+ interface QueryRelationMatch {
2082
+ kind: 'relationMatch';
2083
+ relation: string;
2084
+ mode?: 'any' | 'none';
2085
+ where?: QueryPredicate | null;
2086
+ }
2087
+ interface QueryAggregatePredicate {
2088
+ kind: 'aggregate';
2089
+ source: string;
2090
+ /** Narrows a parameterized source (e.g. workflowEntries → workflow ids). */
2091
+ sourceIds?: number[] | null;
2092
+ metric?: 'count' | 'max';
2093
+ op: QueryAggregateOp;
2094
+ /** metric=max also accepts an ISO datetime string. */
2095
+ value: number | string | QueryTemporalValue;
2096
+ windowDays?: number | null;
2097
+ /** Mutually exclusive with windowDays. */
2098
+ windowHours?: number | null;
2099
+ emptyPolicy?: 'include' | 'exclude';
2100
+ }
2101
+ interface QuerySubQueryRef {
2102
+ kind: 'subquery';
2103
+ entity: 'member';
2104
+ link: string;
2105
+ negate?: boolean;
2106
+ where?: QueryPredicate | null;
2107
+ }
2108
+ interface QuerySavedFilterRef {
2109
+ kind: 'savedFilterRef';
2110
+ filterType?: 'member';
2111
+ filterIds: number[];
2112
+ combine?: 'union' | 'intersect';
2113
+ }
2114
+ type QueryPredicate = QueryAnd | QueryOr | QueryNot | QueryCompare | QueryRecordMatch | QueryRelationMatch | QueryAggregatePredicate | QuerySubQueryRef | QuerySavedFilterRef;
2115
+ interface QuerySortKey {
2116
+ field: string;
2117
+ dir?: 'asc' | 'desc';
2118
+ }
2119
+ interface QueryGroupBy {
2120
+ field: string;
2121
+ bucket?: 'day' | 'week' | 'month' | null;
2122
+ alias?: string | null;
2123
+ }
2124
+ interface QueryMetric {
2125
+ fn: 'count' | 'countDistinct' | 'sum' | 'avg' | 'min' | 'max';
2126
+ of?: string | null;
2127
+ as?: string;
2128
+ }
2129
+ interface QueryAggregateSpec {
2130
+ groupBy?: QueryGroupBy[];
2131
+ metrics: QueryMetric[];
2132
+ limit?: number;
2133
+ }
2134
+ interface QueryIR {
2135
+ entity: QueryEntityType;
2136
+ dataType?: number | string | null;
2137
+ where?: QueryPredicate | null;
2138
+ select?: string[] | null;
2139
+ sort?: QuerySortKey[] | null;
2140
+ limit: number;
2141
+ cursor?: string | null;
2142
+ aggregate?: QueryAggregateSpec | null;
2143
+ includeArchived?: boolean;
2144
+ }
2145
+ type QueryRunMode = 'rows' | 'count' | 'aggregate';
2146
+ interface RunQueryRequest {
2147
+ query: QueryIR;
2148
+ mode?: QueryRunMode | null;
2149
+ }
2150
+ interface QueryCostInfo {
2151
+ score: number;
2152
+ budget: number;
2153
+ }
2154
+ interface ValidateQueryResponse {
2155
+ valid: boolean;
2156
+ cost: QueryCostInfo;
2157
+ warnings: string[];
2158
+ errors: string[];
2159
+ }
2160
+ interface RunQueryResponse {
2161
+ mode: string;
2162
+ items?: Record<string, unknown>[] | null;
2163
+ nextCursor?: string | null;
2164
+ count?: number | null;
2165
+ rows?: Record<string, unknown>[] | null;
2166
+ warnings: string[];
2167
+ cost?: QueryCostInfo | null;
2168
+ }
2169
+ /** A labeled choice for a field whose raw values are ids/codes. */
2170
+ interface QueryEnumOption {
2171
+ value: string | number;
2172
+ label: string;
2173
+ /** Display color (bare 6-digit hex, as stored on MemberLabel), if any. */
2174
+ color?: string | null;
2175
+ }
2176
+ interface QueryFieldInfo {
2177
+ path: string;
2178
+ type: string;
2179
+ operators: string[];
2180
+ sortable: boolean;
2181
+ selectable: boolean;
2182
+ enumValues?: unknown[] | null;
2183
+ /**
2184
+ * Labeled value options ({value, label}) for fields whose raw values are
2185
+ * meaningless to humans (label/role ids). Value stored in the IR is
2186
+ * `value`; the UI shows `label`.
2187
+ */
2188
+ enumOptions?: QueryEnumOption[] | null;
2189
+ /** Human picker label when the path tail is misleading (e.g. "labelId"). */
2190
+ displayName?: string | null;
2191
+ /**
2192
+ * Semantic group from the registry (profile/contact/notifications/
2193
+ * communications/workflows/calendar) — drives builder palette grouping.
2194
+ * Optional for older API versions; null = uncategorized.
2195
+ */
2196
+ category?: string | null;
2197
+ }
2198
+ interface QueryRecordFieldInfo {
2199
+ slug: string;
2200
+ name: string;
2201
+ type: string;
2202
+ operators: string[];
2203
+ enumValues?: unknown[] | null;
2204
+ }
2205
+ interface QueryDataTypeInfo {
2206
+ id: number;
2207
+ slug: string;
2208
+ name: string;
2209
+ isCollection: boolean;
2210
+ recordFields: QueryRecordFieldInfo[];
2211
+ }
2212
+ interface QueryFieldsResponse {
2213
+ entities: Record<string, QueryFieldInfo[]>;
2214
+ aggregateSources: Record<string, string[]>;
2215
+ dataTypes: QueryDataTypeInfo[];
2216
+ recordSystemFields: QueryFieldInfo[];
2217
+ /**
2218
+ * RelationMatch palette: entity → relation name → the relation's
2219
+ * queryable sub-fields (e.g. member.workflowEntries → entry.workflowId,
2220
+ * entry.status, entry.enteredAt). Same raw-ID hiding convention as
2221
+ * `entities`. Optional for older API versions.
2222
+ */
2223
+ relations?: Record<string, Record<string, QueryFieldInfo[]>>;
2224
+ /**
2225
+ * entity → aggregate source → semantic category. Only categorized sources
2226
+ * appear; uncategorized sources are internal (legacy-adapter parity) and
2227
+ * should not be offered in builder palettes. Optional for older API
2228
+ * versions.
2229
+ */
2230
+ aggregateSourceCategories?: Record<string, Record<string, string>>;
2231
+ }
2232
+
1823
2233
  declare const MilestoneGoalFormDataSchema: z.ZodObject<{
1824
2234
  id: z.ZodOptional<z.ZodNumber>;
1825
2235
  name: z.ZodString;
@@ -1913,6 +2323,56 @@ declare enum MemberType {
1913
2323
  MEMBER = "member",
1914
2324
  AGENT = "agent"
1915
2325
  }
2326
+ /**
2327
+ * How the streaming commit import treats a row that matches an existing member
2328
+ * ONLY by phone but carries different identity fields. 'skip' (safe default)
2329
+ * writes nothing for the row; 'overwrite_identity_fields' overwrites + audits
2330
+ * and is intended to be sent only after a preview.
2331
+ */
2332
+ type IdentityConflictPolicy = 'skip' | 'overwrite_identity_fields';
2333
+ /** A conflict detail in the import stream — field NAMES only, never PHI values. */
2334
+ interface MemberImportStreamConflict {
2335
+ code: string;
2336
+ fields: string[];
2337
+ match: {
2338
+ match_type: 'external_id' | 'email' | 'phone' | 'account_email' | 'account_phone';
2339
+ member_id: number;
2340
+ member_uuid: string;
2341
+ };
2342
+ }
2343
+ /**
2344
+ * One NDJSON event from POST /members/import. PHI-free by contract: only
2345
+ * counts, row numbers, codes, field names, and member ids/uuids.
2346
+ */
2347
+ interface MemberImportStreamEvent {
2348
+ type: 'progress' | 'conflict' | 'error' | 'complete';
2349
+ row?: number;
2350
+ message?: string;
2351
+ current?: number;
2352
+ total?: number;
2353
+ success?: number;
2354
+ failed?: number;
2355
+ conflicted?: number;
2356
+ created?: number;
2357
+ updated?: number;
2358
+ unchanged?: number;
2359
+ conflict?: MemberImportStreamConflict;
2360
+ errors?: string[];
2361
+ failedRows?: number[];
2362
+ conflictRows?: number[];
2363
+ conflicts?: Array<{
2364
+ row: number;
2365
+ code: string;
2366
+ fields: string[];
2367
+ member_id: number;
2368
+ member_uuid: string;
2369
+ }>;
2370
+ updatedMembers?: Array<{
2371
+ row: number;
2372
+ memberId: number;
2373
+ changes: string[];
2374
+ }>;
2375
+ }
1916
2376
  interface MemberLabelFormData {
1917
2377
  name: string;
1918
2378
  slug?: string;
@@ -1949,19 +2409,25 @@ interface AgentConfigFormData {
1949
2409
  codeInterpreterEnabled?: boolean;
1950
2410
  memoryConfig?: AgentMemoryConfig;
1951
2411
  }
1952
- type MemberFilterObjectType = 'label' | 'dataType' | 'member' | 'memberRole' | 'name' | 'email' | 'phone' | 'phoneType' | 'age' | 'dateOfBirth' | 'workflow' | 'tosAccepted' | 'notifySms' | 'notifyEmail' | 'notifyVoice' | 'smsDeliveryStatus' | 'callForwarded' | 'calendarEvent' | 'chatEngagement' | 'lastMessageActivity' | 'memberCreated' | 'isDefault' | 'memberType' | 'memberField' | 'journey' | 'experiment';
1953
- type MemberFilterFilterType = 'any' | 'all' | 'none' | 'partial' | 'notPartial' | 'exact' | 'equals' | 'notEquals' | 'notContains' | 'atLeast' | 'atMost' | 'field' | 'dateFilter' | 'greaterThan' | 'greaterThanOrEqual' | 'lessThan' | 'lessThanOrEqual' | 'within' | 'olderThan' | 'never' | 'isEmpty' | 'notEmpty' | 'before' | 'after' | 'between' | 'daysAgo' | 'lessThanDaysAgo' | 'daysUntil' | 'hasKey' | 'hasKeyValue' | 'smsDeliveryStatusNeedsAttention' | 'callForwardedAny' | 'inGroup';
1954
- interface MemberFilterRuleFormData {
1955
- objectType: MemberFilterObjectType;
1956
- filterType: MemberFilterFilterType;
1957
- objectIds?: number[];
1958
- query?: string;
1959
- }
2412
+ /** MemberFilter response with the query-engine predicate column narrowed.
2413
+ * The generated type exposes `query` as a loose `{ [key: string]: unknown } | null`
2414
+ * (OpenAPI free-form object); this intersection narrows it to the typed
2415
+ * client-side `QueryPredicate` IR. */
2416
+ type MemberFilterWithQuery = MemberFilterResponse & {
2417
+ query?: QueryPredicate | null;
2418
+ };
1960
2419
  interface MemberFilterFormData {
1961
2420
  name: string;
1962
2421
  description?: string;
1963
2422
  pinned?: boolean;
1964
- rules: MemberFilterRuleFormData[];
2423
+ /**
2424
+ * Query-engine predicate (JSON IR) stored on MemberFilter.query. Required
2425
+ * key so a create call can't silently omit the predicate (the backend
2426
+ * `create_member_filter` requires one); pass `null` only to deliberately
2427
+ * author an empty filter. `updateMemberFilter` takes `Partial<>`, so
2428
+ * partial updates that don't touch the query are unaffected.
2429
+ */
2430
+ query: QueryPredicate | null;
1965
2431
  }
1966
2432
  interface MemberRoleTaskAccess {
1967
2433
  taskId: number;
@@ -2001,6 +2467,8 @@ interface CreateWorkspaceMemberRequest {
2001
2467
  description?: string;
2002
2468
  externalId?: string;
2003
2469
  dateOfBirth?: string;
2470
+ emailTrusted?: boolean;
2471
+ phoneTrusted?: boolean;
2004
2472
  memberRoleId: number;
2005
2473
  notifySms?: boolean;
2006
2474
  notifyEmail?: boolean;
@@ -2023,6 +2491,8 @@ interface UpdateWorkspaceMemberRequest {
2023
2491
  email?: string | null;
2024
2492
  externalId?: string | null;
2025
2493
  dateOfBirth?: string | null;
2494
+ emailTrusted?: boolean | null;
2495
+ phoneTrusted?: boolean | null;
2026
2496
  memberRoleId?: number;
2027
2497
  labelIds?: number[];
2028
2498
  notifySms?: boolean;
@@ -2084,7 +2554,8 @@ interface CreateAgentRequest {
2084
2554
  email?: string;
2085
2555
  phone?: string;
2086
2556
  externalId?: string;
2087
- memberRoleId: number;
2557
+ /** Omitted → backend defaults to the workspace's canonical Agent role (#16207). */
2558
+ memberRoleId?: number;
2088
2559
  labelIds?: number[];
2089
2560
  ownerId?: number;
2090
2561
  chatModelId: string;
@@ -2130,12 +2601,22 @@ interface CreateAnonymousMemberRequest {
2130
2601
  name?: string;
2131
2602
  memberRoleId?: number;
2132
2603
  }
2604
+ interface MemberSyncLink {
2605
+ id: number;
2606
+ connectionId: number;
2607
+ connectionName: string;
2608
+ connectionType: string;
2609
+ entityType: string;
2610
+ remoteId: string;
2611
+ lastSyncedAt: string | null;
2612
+ lastSyncDirection: string | null;
2613
+ lastSyncStatus: string | null;
2614
+ lastError: string | null;
2615
+ propertiesSynced: number;
2616
+ syncCount: number;
2617
+ createdAt: string;
2618
+ }
2133
2619
 
2134
- /**
2135
- * Generated by Orval (filtered by scripts/types-codegen/allowlist.txt and
2136
- * grouped by scripts/types-codegen/group_generated.ts). Do not edit manually.
2137
- * Group: event_rule
2138
- */
2139
2620
  /**
2140
2621
  * Mapping of event type to valid action types
2141
2622
  */
@@ -2149,7 +2630,7 @@ interface EventActionMapping {
2149
2630
  interface EventActionMappingsResponse {
2150
2631
  mappings: EventActionMapping[];
2151
2632
  }
2152
- type EventRuleActionType$1 = (typeof EventRuleActionType$1)[keyof typeof EventRuleActionType$1];
2633
+ type EventRuleActionType$1 = typeof EventRuleActionType$1[keyof typeof EventRuleActionType$1];
2153
2634
  declare const EventRuleActionType$1: {
2154
2635
  readonly 'member:notify': "member:notify";
2155
2636
  readonly 'member:label': "member:label";
@@ -2158,6 +2639,7 @@ declare const EventRuleActionType$1: {
2158
2639
  readonly 'task:switch': "task:switch";
2159
2640
  readonly 'assistant:message': "assistant:message";
2160
2641
  readonly 'form:update_field': "form:update_field";
2642
+ readonly 'record:cel_mutate': "record:cel_mutate";
2161
2643
  readonly 'message:validation': "message:validation";
2162
2644
  readonly 'chat:create': "chat:create";
2163
2645
  readonly 'chat:continue': "chat:continue";
@@ -2177,14 +2659,18 @@ declare const EventRuleActionType$1: {
2177
2659
  readonly 'ecw:refresh_member_encounters': "ecw:refresh_member_encounters";
2178
2660
  readonly 'audio:play': "audio:play";
2179
2661
  };
2180
- type EventRuleEventType$1 = (typeof EventRuleEventType$1)[keyof typeof EventRuleEventType$1];
2662
+ type EventRuleEventType$1 = typeof EventRuleEventType$1[keyof typeof EventRuleEventType$1];
2181
2663
  declare const EventRuleEventType$1: {
2182
2664
  readonly 'task:execute': "task:execute";
2665
+ readonly 'task:enter': "task:enter";
2666
+ readonly 'task:command': "task:command";
2667
+ readonly 'task:exit': "task:exit";
2183
2668
  readonly 'workspace:member_joined': "workspace:member_joined";
2184
2669
  readonly 'workspace:member_left': "workspace:member_left";
2185
2670
  readonly 'member:updated': "member:updated";
2186
2671
  readonly 'data_record:created': "data_record:created";
2187
2672
  readonly 'data_record:updated': "data_record:updated";
2673
+ readonly 'data_record:changed': "data_record:changed";
2188
2674
  readonly 'chat:created': "chat:created";
2189
2675
  readonly 'routine:triggered': "routine:triggered";
2190
2676
  readonly 'workflow:assistant_message': "workflow:assistant_message";
@@ -2204,7 +2690,7 @@ declare const EventRuleEventType$1: {
2204
2690
  readonly 'call:completed': "call:completed";
2205
2691
  readonly 'call:summary': "call:summary";
2206
2692
  };
2207
- type EventRuleObjectType$1 = (typeof EventRuleObjectType$1)[keyof typeof EventRuleObjectType$1];
2693
+ type EventRuleObjectType$1 = typeof EventRuleObjectType$1[keyof typeof EventRuleObjectType$1];
2208
2694
  declare const EventRuleObjectType$1: {
2209
2695
  readonly task: "task";
2210
2696
  readonly workspace: "workspace";
@@ -2237,7 +2723,7 @@ interface EventRuleResponse$1 {
2237
2723
  dataTypeId: number | null;
2238
2724
  dataTypeName?: string | null;
2239
2725
  routineId: number | null;
2240
- workflowId: number | null;
2726
+ workflowRevisionId: number | null;
2241
2727
  calendarId: number | null;
2242
2728
  calendarEventTypeId: number | null;
2243
2729
  journeyStepId: number | null;
@@ -2246,6 +2732,7 @@ interface EventRuleResponse$1 {
2246
2732
  error: string | null;
2247
2733
  errorMessage: string | null;
2248
2734
  failedAt: string | null;
2735
+ celBlockedAt?: string | null;
2249
2736
  delay: number;
2250
2737
  order: number;
2251
2738
  }
@@ -2257,8 +2744,28 @@ type EventRuleResponseTriggerParams = {
2257
2744
  } | null;
2258
2745
 
2259
2746
  /**
2260
- * Generated by Orval (filtered by scripts/types-codegen/allowlist.txt and
2261
- * grouped by scripts/types-codegen/group_generated.ts). Do not edit manually.
2747
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
2748
+ * (group map from emit_openapi.py). Do not edit manually.
2749
+ * Group: schema_field
2750
+ */
2751
+ /**
2752
+ * Label-value pair for enum field options.
2753
+ *
2754
+ * Allows enum fields to have user-friendly labels while storing clean values
2755
+ * (e.g., numbers for scoring calculations in CEL expressions).
2756
+ */
2757
+ interface EnumOption$1 {
2758
+ /** Display label shown to users */
2759
+ label: string;
2760
+ /** Stored value (can be string or number) */
2761
+ value: string | number;
2762
+ /** CEL expression that must return true for this option to be visible. Uses record.data.<field_slug> syntax to reference other field values. CONSTRAINT: Can only reference non-FUNCTION fields. */
2763
+ visibleWhen?: string | null;
2764
+ }
2765
+
2766
+ /**
2767
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
2768
+ * (group map from emit_openapi.py). Do not edit manually.
2262
2769
  * Group: data
2263
2770
  */
2264
2771
 
@@ -2272,14 +2779,36 @@ interface DataRecordResponse {
2272
2779
  updatedAt: string;
2273
2780
  externalId?: string | null;
2274
2781
  accessMode?: number | null;
2782
+ retirement?: DataRecordRetirementResponse | null;
2275
2783
  }
2276
2784
  type DataRecordResponseFieldValues = {
2277
2785
  [key: string]: unknown;
2278
2786
  };
2787
+ /**
2788
+ * Derived lifecycle-retirement status for a connector-backed record.
2789
+ *
2790
+ * Populated only on the human Forms/CRUD read responses (list + single GET)
2791
+ * so the UI can show an "Archived in Monday" / "Deleted in Monday" badge.
2792
+ * Derived at read time from ``ConnectionEntityExclusion`` + active-link
2793
+ * state — there is no stored retirement column on ``DataRecord``.
2794
+ *
2795
+ * PHI-safe: closed-vocabulary ``status`` / ``reason`` / ``source`` codes
2796
+ * only. No field values, no remote item/board IDs, no connection metadata.
2797
+ */
2798
+ interface DataRecordRetirementResponse {
2799
+ status?: 'retired';
2800
+ reason: DataRecordRetirementResponseReason;
2801
+ source?: 'monday';
2802
+ }
2803
+ type DataRecordRetirementResponseReason = typeof DataRecordRetirementResponseReason[keyof typeof DataRecordRetirementResponseReason];
2804
+ declare const DataRecordRetirementResponseReason: {
2805
+ readonly monday_item_archived: "monday_item_archived";
2806
+ readonly monday_item_deleted: "monday_item_deleted";
2807
+ };
2279
2808
  interface DataRecordUpdateResponse {
2280
2809
  id: number;
2281
2810
  dataRecordId: number;
2282
- actorMemberId: number;
2811
+ actorMemberId?: number | null;
2283
2812
  recordMemberId?: number | null;
2284
2813
  fieldName: string;
2285
2814
  oldValue: string | null;
@@ -2288,6 +2817,7 @@ interface DataRecordUpdateResponse {
2288
2817
  updatedAt: string;
2289
2818
  assignmentTaskId?: number | null;
2290
2819
  memberName?: string | null;
2820
+ source?: string | null;
2291
2821
  }
2292
2822
  interface DataTypeMemberRoleAccessResponse {
2293
2823
  memberRoleId: number;
@@ -2317,20 +2847,6 @@ interface DataTypeResponse {
2317
2847
  memberRoleAccess?: DataTypeMemberRoleAccessResponse[];
2318
2848
  recordCount?: number | null;
2319
2849
  }
2320
- /**
2321
- * Label-value pair for enum field options.
2322
- *
2323
- * Allows enum fields to have user-friendly labels while storing clean values
2324
- * (e.g., numbers for scoring calculations in CEL expressions).
2325
- */
2326
- interface EnumOption$1 {
2327
- /** Display label shown to users */
2328
- label: string;
2329
- /** Stored value (can be string or number) */
2330
- value: string | number;
2331
- /** CEL expression that must return true for this option to be visible. Uses record.data.<field_slug> syntax to reference other field values. CONSTRAINT: Can only reference non-FUNCTION fields. */
2332
- visibleWhen?: string | null;
2333
- }
2334
2850
  interface IndexStatusResponse {
2335
2851
  fieldId: string;
2336
2852
  fieldName: string;
@@ -2349,7 +2865,7 @@ interface SchemaField {
2349
2865
  /** Optional field description */
2350
2866
  description?: string | null;
2351
2867
  /** Field type (text, email, enum, etc.) */
2352
- fieldType?: (typeof SchemaFieldFieldType)[keyof typeof SchemaFieldFieldType];
2868
+ fieldType?: typeof SchemaFieldFieldType[keyof typeof SchemaFieldFieldType];
2353
2869
  /** Whether field is required */
2354
2870
  required?: boolean;
2355
2871
  /** Deprecated: Display order is now determined by array position */
@@ -2373,7 +2889,7 @@ interface SchemaField {
2373
2889
  /** Regulatory or content categories for audit and policy */
2374
2890
  categories?: SchemaFieldCategoriesItem[];
2375
2891
  }
2376
- type SchemaFieldCategoriesItem = (typeof SchemaFieldCategoriesItem)[keyof typeof SchemaFieldCategoriesItem];
2892
+ type SchemaFieldCategoriesItem = typeof SchemaFieldCategoriesItem[keyof typeof SchemaFieldCategoriesItem];
2377
2893
  declare const SchemaFieldCategoriesItem: {
2378
2894
  readonly personal: "personal";
2379
2895
  readonly identifier: "identifier";
@@ -2400,7 +2916,7 @@ declare const SchemaFieldFieldType: {
2400
2916
  /**
2401
2917
  * Disclosure severity for audit and access policy
2402
2918
  */
2403
- type SchemaFieldSensitivity = (typeof SchemaFieldSensitivity)[keyof typeof SchemaFieldSensitivity];
2919
+ type SchemaFieldSensitivity = typeof SchemaFieldSensitivity[keyof typeof SchemaFieldSensitivity];
2404
2920
  declare const SchemaFieldSensitivity: {
2405
2921
  readonly public: "public";
2406
2922
  readonly internal: "internal";
@@ -2410,8 +2926,56 @@ declare const SchemaFieldSensitivity: {
2410
2926
  };
2411
2927
 
2412
2928
  /**
2413
- * Generated by Orval (filtered by scripts/types-codegen/allowlist.txt and
2414
- * grouped by scripts/types-codegen/group_generated.ts). Do not edit manually.
2929
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
2930
+ * (group map from emit_openapi.py). Do not edit manually.
2931
+ * Group: data_record_filter
2932
+ */
2933
+ /**
2934
+ * Create a new data record filter (query-only, scoped to one DataType).
2935
+ */
2936
+ interface CreateDataRecordFilterRequest {
2937
+ dataTypeId: number;
2938
+ name: string;
2939
+ description?: string | null;
2940
+ pinned?: boolean | null;
2941
+ query?: CreateDataRecordFilterRequestQuery;
2942
+ }
2943
+ type CreateDataRecordFilterRequestQuery = {
2944
+ [key: string]: unknown;
2945
+ } | null;
2946
+ /**
2947
+ * Response model for a data record filter.
2948
+ */
2949
+ interface DataRecordFilterResponse {
2950
+ id: number;
2951
+ uuid: string;
2952
+ dataTypeId: number;
2953
+ name: string;
2954
+ description?: string | null;
2955
+ pinned?: boolean | null;
2956
+ createdAt: string;
2957
+ updatedAt: string;
2958
+ query?: DataRecordFilterResponseQuery;
2959
+ }
2960
+ type DataRecordFilterResponseQuery = {
2961
+ [key: string]: unknown;
2962
+ } | null;
2963
+ /**
2964
+ * Update a data record filter (query-only).
2965
+ */
2966
+ interface UpdateDataRecordFilterRequest {
2967
+ name?: string | null;
2968
+ description?: string | null;
2969
+ pinned?: boolean | null;
2970
+ query?: UpdateDataRecordFilterRequestQuery;
2971
+ }
2972
+ type UpdateDataRecordFilterRequestQuery = {
2973
+ [key: string]: unknown;
2974
+ } | null;
2975
+
2976
+ /**
2977
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
2978
+ * (group map from emit_openapi.py). Do not edit manually.
2415
2979
  * Group: routine
2416
2980
  */
2417
2981
 
@@ -2465,6 +3029,8 @@ interface RoutineRunResponse {
2465
3029
  startedAt?: string | null;
2466
3030
  completedAt?: string | null;
2467
3031
  errorMessage?: string | null;
3032
+ failureCode?: string | null;
3033
+ skipReason?: string | null;
2468
3034
  jobId?: string | null;
2469
3035
  chatId?: number | null;
2470
3036
  assignmentId?: number | null;
@@ -2472,6 +3038,45 @@ interface RoutineRunResponse {
2472
3038
  updatedAt: string;
2473
3039
  member?: MemberSummary | null;
2474
3040
  }
3041
+ /**
3042
+ * A role in a Routine draft's audience that lacks Workflow USE.
3043
+ */
3044
+ interface RoutineWorkflowAccessMissingRoleResponse {
3045
+ id: number;
3046
+ name: string;
3047
+ }
3048
+ /**
3049
+ * Response for ``POST /routines/preview-workflow-access``.
3050
+ *
3051
+ * Non-blocking: an empty ``warnings`` list means the draft's audience roles all
3052
+ * have (or would inherit) Workflow USE for every referenced Workflow. Warnings
3053
+ * are advisory; the caller may still create/update the Routine.
3054
+ */
3055
+ interface RoutineWorkflowAccessPreviewResponse {
3056
+ warnings: RoutineWorkflowAccessWarningResponse[];
3057
+ totalWarnings: number;
3058
+ }
3059
+ /**
3060
+ * One (draft Routine, Workflow-reference) audience-access warning.
3061
+ *
3062
+ * PHI-safe: Routine / EventRule / Workflow / role IDs and names only (admins
3063
+ * already see these). Never Member names, phones, emails, or matched-member
3064
+ * lists. ``routineId`` / ``routineName`` are nullable: a create-preview runs
3065
+ * before the Routine exists, so the UI only needs the Workflow, target kind,
3066
+ * and missing-role data.
3067
+ */
3068
+ interface RoutineWorkflowAccessWarningResponse {
3069
+ routineId?: number | null;
3070
+ routineName?: string | null;
3071
+ eventRuleId?: number | null;
3072
+ actionType: string;
3073
+ workflowId: number;
3074
+ workflowUuid: string;
3075
+ workflowName: string;
3076
+ targetKind: string;
3077
+ missingRoles: RoutineWorkflowAccessMissingRoleResponse[];
3078
+ audienceRoleCount: number;
3079
+ }
2475
3080
  /**
2476
3081
  * Response model for cron schedule preview.
2477
3082
  */
@@ -2502,10 +3107,14 @@ declare enum EventRuleObjectType {
2502
3107
  }
2503
3108
  declare enum EventRuleEventType {
2504
3109
  TASK_EXECUTE = "task:execute",
3110
+ TASK_ENTER = "task:enter",
3111
+ TASK_COMMAND = "task:command",
3112
+ TASK_EXIT = "task:exit",
2505
3113
  MEMBER_JOINED = "workspace:member_joined",
2506
3114
  MEMBER_LEFT = "workspace:member_left",
2507
3115
  DATA_RECORD_CREATED = "data_record:created",
2508
3116
  DATA_RECORD_UPDATED = "data_record:updated",
3117
+ DATA_RECORD_CHANGED = "data_record:changed",
2509
3118
  CHAT_CREATED = "chat:created",
2510
3119
  CHAT_CALLBACK = "chat:callback",
2511
3120
  MEMBER_UPDATED = "member:updated",
@@ -2534,6 +3143,7 @@ declare enum EventRuleActionType {
2534
3143
  SWITCH_TASK_ACTION = "task:switch",
2535
3144
  ASSISTANT_MESSAGE = "assistant:message",
2536
3145
  FORM_FIELD_UPDATE = "form:update_field",
3146
+ CEL_MUTATE = "record:cel_mutate",
2537
3147
  MESSAGE_VALIDATION = "message:validation",
2538
3148
  CHAT_CREATE = "chat:create",
2539
3149
  CHAT_CONTINUE = "chat:continue",
@@ -2562,6 +3172,7 @@ type EventRuleResponse = Omit<EventRuleResponse$1, 'objectType' | 'eventType' |
2562
3172
  actionType: EventRuleActionType;
2563
3173
  actionParams: Record<string, unknown> | null;
2564
3174
  triggerParams: Record<string, unknown> | null;
3175
+ workflowRevisionId?: number | null;
2565
3176
  };
2566
3177
  type EventRule = EventRuleResponse;
2567
3178
 
@@ -2602,6 +3213,18 @@ interface WebhookActionParams {
2602
3213
  webhookUrl: string;
2603
3214
  signingSecret?: string;
2604
3215
  }
3216
+ interface TestWebhookRequest {
3217
+ webhookUrl: string;
3218
+ payload: Record<string, unknown>;
3219
+ signingSecret?: string;
3220
+ }
3221
+ interface TestWebhookResponse {
3222
+ success: boolean;
3223
+ statusCode?: number | null;
3224
+ responseBody?: string | null;
3225
+ errorMessage?: string | null;
3226
+ durationMs: number;
3227
+ }
2605
3228
  interface SwitchTaskActionParams {
2606
3229
  taskUUID: string;
2607
3230
  }
@@ -2624,7 +3247,12 @@ interface AssistantMessageActionParams {
2624
3247
  interface FormFieldUpdateActionParams {
2625
3248
  fieldPath?: string;
2626
3249
  value: any;
2627
- updateType?: 'newest' | 'oldest' | 'create';
3250
+ updateType?: 'newest' | 'oldest' | 'create' | 'trigger' | 'matchField' | 'selector';
3251
+ matchField?: string;
3252
+ matchValue?: any;
3253
+ tiebreaker?: 'newest' | 'oldest';
3254
+ selector?: string;
3255
+ createIfMissing?: boolean;
2628
3256
  }
2629
3257
  interface MessageValidationActionParams {
2630
3258
  condition?: string;
@@ -2808,7 +3436,7 @@ interface EventRuleFormData {
2808
3436
  taskId?: number | null;
2809
3437
  dataTypeId?: number | null;
2810
3438
  routineId?: number | null;
2811
- workflowId?: number | null;
3439
+ workflowRevisionId?: number | null;
2812
3440
  calendarId?: number | null;
2813
3441
  calendarEventTypeId?: number | null;
2814
3442
  journeyStepId?: number | null;
@@ -2861,7 +3489,7 @@ interface RuleExecutionsQueryParams {
2861
3489
  objectType?: string;
2862
3490
  eventType?: string;
2863
3491
  actionType?: string;
2864
- workflowId?: number;
3492
+ workflowRevisionId?: number;
2865
3493
  }
2866
3494
  type RoutineRunStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | 'CANCELLED' | 'SKIPPED';
2867
3495
  interface CreateRoutineRequest {
@@ -2946,6 +3574,21 @@ interface SchedulePreviewRequest {
2946
3574
  * previewed run times match what the dispatcher will fire. */
2947
3575
  timezone?: string;
2948
3576
  }
3577
+ /**
3578
+ * Draft input for the non-persisting Routine Workflow-access preview
3579
+ * (`POST /routines/preview-workflow-access`). Hand-written (like
3580
+ * {@link SchedulePreviewRequest}) so `eventRules` uses the app's
3581
+ * {@link EventRuleInput} shape rather than the generated `EventRuleData`.
3582
+ */
3583
+ interface RoutineWorkflowAccessPreviewRequest {
3584
+ /** Set on update-style previews; the route enforces owner-or-admin. */
3585
+ routineId?: number | null;
3586
+ name?: string | null;
3587
+ memberFilterId?: number | null;
3588
+ targetMemberId?: number | null;
3589
+ workflowId?: number | null;
3590
+ eventRules?: EventRuleInput[] | null;
3591
+ }
2949
3592
  interface TaskExportEventRuleRelation {
2950
3593
  taskUuid: string;
2951
3594
  eventRuleUuid: string;
@@ -2961,6 +3604,18 @@ interface EventRuleExportItem {
2961
3604
  actionParams: Record<string, any>;
2962
3605
  }
2963
3606
 
3607
+ /** DataRecordFilter with the query-engine predicate column narrowed to IR. */
3608
+ type DataRecordFilterWithQuery = DataRecordFilterResponse & {
3609
+ query?: QueryPredicate | null;
3610
+ };
3611
+ interface DataRecordFilterFormData {
3612
+ dataTypeId: number;
3613
+ name: string;
3614
+ description?: string;
3615
+ pinned?: boolean;
3616
+ /** Query-engine predicate (JSON IR). Pass null to author an empty filter. */
3617
+ query: QueryPredicate | null;
3618
+ }
2964
3619
  interface DataRecordsPaginatedResponse {
2965
3620
  items: DataRecordResponse[];
2966
3621
  total: number;
@@ -3031,19 +3686,6 @@ interface DataField {
3031
3686
  createdAt: string;
3032
3687
  updatedAt: string;
3033
3688
  }
3034
- interface DataFieldFormData {
3035
- name: string;
3036
- slug: string;
3037
- description?: string;
3038
- required: boolean;
3039
- fieldType: DataFieldType;
3040
- options?: EnumOption[];
3041
- referencedTypeId?: number;
3042
- shouldIndex?: boolean;
3043
- adminOnly?: boolean;
3044
- defaultValue?: any;
3045
- order?: number;
3046
- }
3047
3689
  /**
3048
3690
  * Label-value pair for enum field options.
3049
3691
  * Allows enum fields to have user-friendly labels while storing clean values
@@ -3070,7 +3712,7 @@ interface DataTypeFormData {
3070
3712
  recordScope?: DataTypeRecordScope;
3071
3713
  sensitivity?: DataSensitivity;
3072
3714
  categories?: DataCategory[];
3073
- fields?: DataFieldFormData[];
3715
+ fields?: SchemaField[];
3074
3716
  memberRoleAccess?: DataTypeMemberRoleAccessInput[];
3075
3717
  pinned?: boolean;
3076
3718
  ownerId?: number | null;
@@ -3146,16 +3788,22 @@ interface BulkCreateDataRecordRequest {
3146
3788
  }
3147
3789
 
3148
3790
  /**
3149
- * Generated by Orval (filtered by scripts/types-codegen/allowlist.txt and
3150
- * grouped by scripts/types-codegen/group_generated.ts). Do not edit manually.
3791
+ * Generated by Orval, grouped by scripts/types-codegen/group_generated.ts
3792
+ * (group map from emit_openapi.py). Do not edit manually.
3151
3793
  * Group: calendar
3152
3794
  */
3795
+
3153
3796
  /**
3154
3797
  * Response model for event attendees.
3798
+ *
3799
+ * ``memberId`` is null for external (email-only) attendees; their contact
3800
+ * info is carried by ``email`` / ``displayName`` instead.
3155
3801
  */
3156
3802
  interface AttendeeResponse {
3157
3803
  id: number;
3158
- memberId: number;
3804
+ memberId: number | null;
3805
+ email: string | null;
3806
+ displayName: string | null;
3159
3807
  status: string;
3160
3808
  responseStatus: string;
3161
3809
  responseAt: string | null;
@@ -3245,7 +3893,7 @@ interface EventResponse {
3245
3893
  endTime: string;
3246
3894
  status: string;
3247
3895
  creatorMemberId: number | null;
3248
- workflowId: number | null;
3896
+ workflowRevisionId: number | null;
3249
3897
  taskId: number | null;
3250
3898
  assignmentId: number | null;
3251
3899
  chatId: number | null;
@@ -3282,6 +3930,13 @@ interface EventTypeResponse {
3282
3930
  createdAt: string;
3283
3931
  updatedAt: string;
3284
3932
  }
3933
+ /**
3934
+ * An external (non-member) attendee identified by email.
3935
+ */
3936
+ interface ExternalAttendeeData {
3937
+ email: string;
3938
+ displayName?: string | null;
3939
+ }
3285
3940
  /**
3286
3941
  * Information about a Google Calendar (from Google's API).
3287
3942
  */
@@ -3429,6 +4084,8 @@ interface CalendarEventFormData {
3429
4084
  location?: string | null;
3430
4085
  startTime: string;
3431
4086
  attendeeIds: number[];
4087
+ externalAttendees?: ExternalAttendeeData[];
4088
+ workflowRevisionId?: number | null;
3432
4089
  workflowId?: number | null;
3433
4090
  taskId?: number | null;
3434
4091
  assignmentId?: number | null;
@@ -3518,6 +4175,27 @@ declare const CreateInquirySchema: z.ZodObject<{
3518
4175
  productId: z.ZodOptional<z.ZodNumber>;
3519
4176
  recaptchaToken: z.ZodOptional<z.ZodString>;
3520
4177
  }, z.core.$strip>;
4178
+ /** Client-only: anonymous contact forms that cannot rely on account backfill. */
4179
+ declare const AnonymousInquiryFormSchema: z.ZodObject<{
4180
+ name: z.ZodOptional<z.ZodString>;
4181
+ email: z.ZodOptional<z.ZodString>;
4182
+ inquiryType: z.ZodEnum<{
4183
+ builder: "builder";
4184
+ customer: "customer";
4185
+ partner: "partner";
4186
+ other: "other";
4187
+ demo_request: "demo_request";
4188
+ waitlist: "waitlist";
4189
+ }>;
4190
+ cellNumber: z.ZodOptional<z.ZodString>;
4191
+ businessNumber: z.ZodOptional<z.ZodString>;
4192
+ businessName: z.ZodOptional<z.ZodString>;
4193
+ country: z.ZodOptional<z.ZodString>;
4194
+ state: z.ZodOptional<z.ZodString>;
4195
+ message: z.ZodOptional<z.ZodString>;
4196
+ productId: z.ZodOptional<z.ZodNumber>;
4197
+ recaptchaToken: z.ZodOptional<z.ZodString>;
4198
+ }, z.core.$strip>;
3521
4199
  declare const ListInquiriesSchema: z.ZodObject<{
3522
4200
  page: z.ZodOptional<z.ZodNumber>;
3523
4201
  pageSize: z.ZodOptional<z.ZodNumber>;
@@ -3561,4 +4239,122 @@ type UpdateInquiryInput = z.infer<typeof UpdateInquirySchema>;
3561
4239
  type EnrichInquiryInput = z.infer<typeof EnrichInquirySchema>;
3562
4240
  type DeleteInquiryInput = z.infer<typeof DeleteInquirySchema>;
3563
4241
 
3564
- export { type Calendar as $, AccessLevel as A, type AssistantMessageActionParams as B, type AttendeeResponse as C, type DataFieldFormData as D, EventRuleEventType as E, AttendeeResponseStatus as F, AttendeeStatus as G, type AuthorizedRep as H, type AvailabilityCheck as I, type AvailabilityResponse as J, type AvailableSlotsRequest as K, type AvailableSlotsResponse as L, type MemberFilterRuleFormData as M, type BotSortField as N, type BulkCreateDataRecordRequest as O, type BulkCreateDataRecordResponse as P, type BulkCreateMembersRequest as Q, type BulkCreateMembersResponse as R, type BulkMemberItem as S, type BulkMemberResult as T, BulkMemberResultStatus as U, type BulkRecordResult as V, BusinessIndustry as W, type BusinessInfo as X, type BusinessProfileCancelResponse as Y, type BusinessProfileSubmitResponse as Z, BusinessType as _, EventRuleActionType as a, type DuplicateAccountInfo as a$, type EventResponse as a0, type CalendarEventFormData as a1, type CalendarEventSortField as a2, CalendarEventStatus as a3, type EventTypeResponse as a4, type CalendarEventTypeFormData as a5, type CalendarEventsQueryParams as a6, type CalendarFormData as a7, CalendarPermissionType as a8, type CalendarResponse as a9, type CredentialChangeRequestResponse as aA, type CredentialChangeVerifyResponse as aB, type CredentialType as aC, type CurrentMemberResponse as aD, type CurrentOrgMember as aE, type CursorPaginatedResponse as aF, DataCategory as aG, type DataField as aH, type DataIntegrityReportItem as aI, type DataRecordResponse as aJ, type DataRecordAssociationFormData as aK, type DataRecordFieldWarning as aL, type DataRecordFormData as aM, type DataRecordReportItem as aN, type DataRecordUpdateResponse as aO, type DataRecordWithAccessMode as aP, type DataRecordsPaginatedResponse as aQ, DataSensitivity as aR, type DataTypeResponse as aS, type DataTypeExportItem as aT, type DataTypeFormData as aU, type DataTypeMemberRoleAccessInput as aV, type DataTypeMemberRoleAccessResponse as aW, DataTypeRecordScope as aX, type DataTypeSortField as aY, type DeleteAccountOrgMembershipResponse as aZ, type DetailedAccount as a_, type CalendarSchedule as aa, CalendarScheduleAvailabilityType as ab, type CalendarScheduleFormData as ac, CalendarScheduleRecurrence as ad, type CalendarScheduleResponse as ae, CalendarSource as af, type CancelCredentialChangeInviteResponse as ag, type CancelCredentialChangeResponse as ah, type ChatContinueActionParams as ai, type ChatCreateActionParams as aj, type ChatPauseActionParams as ak, type ChatSortField as al, type ChatSummarizeActionParams as am, type ConcludeAssignmentActionParams as an, type CreateAccountOrgMembershipRequest as ao, type CreateAccountOrgMembershipResponse as ap, type CreateAgentRequest as aq, type CreateAnonymousMemberRequest as ar, type CreateCredentialChangeInviteRequest as as, type CreateOrganizationRequest as at, type CreateRoutineRequest as au, type CreateSignupResponse as av, type CreateWorkspaceMemberRequest as aw, type CredentialChangeInviteConfirmResponse as ax, type CredentialChangeInviteDetailsResponse as ay, type CredentialChangeInviteResponse as az, DataFieldType as b, type MemberOrgView as b$, type EcwRefreshMemberEncountersActionParams as b0, type EmailDisableImpactResponse as b1, EmailDnsRecordType as b2, type EmailDomainConfigResponse as b3, type EmailSendActionParams as b4, type EmailVerificationResponse as b5, type EnumOption as b6, type ErrorResponse as b7, type EventActionMapping as b8, type EventActionMappingsResponse as b9, JobPosition as bA, type JourneyEnrollActionParams as bB, type JourneySortField as bC, type LibModelsGlbResponsesOrganizationResponsesSSOConfigResponse as bD, type LinkCalendarRequest as bE, type LinkCalendarResponse as bF, type LoginRequest as bG, type LoginResponse as bH, type LogoUploadRequest as bI, type LogoUploadResponse as bJ, MASKED_SECRET_SENTINEL as bK, type McpServerSortField as bL, type WorkspaceMemberResponse as bM, type MemberCredentialResponse as bN, type MemberFieldResponse as bO, type MemberFieldDefinitionResponse as bP, type MemberFieldDefinitionListResponse as bQ, type MemberFieldListResponse as bR, type MemberFilterResponse as bS, type MemberFilterFormData as bT, type MemberFilterRuleResponse as bU, type MemberFormData as bV, type MemberLabelResponse as bW, type MemberLabelActionParams as bX, type MemberLabelFormData as bY, type MemberMemoriesResponse as bZ, type MemberMessageActivity as b_, type EventRule as ba, type EventRuleExportItem as bb, type EventRuleFormData as bc, type EventRuleInput as bd, EventRuleObjectType as be, type EventRuleResponse as bf, type EventRunSortField as bg, type ExpireAnonymousMemberRequest as bh, type FileSortField as bi, type FormFieldUpdateActionParams as bj, type GenerateRecoveryCodesRequest as bk, type BusinessProfileResponse as bl, type CalendarResponse$1 as bm, type CalendarScheduleResponse$1 as bn, type MemoryListResponse as bo, type MemoryResponse$1 as bp, type OrgDomainResponse as bq, type OwnershipDnsRecord as br, type GoogleCalendarInfo as bs, type GoogleCalendarInsufficientScopesResponse as bt, type GoogleCalendarStatusResponse as bu, type ICalFeedTokenResponse as bv, type ICalFeedUrlResponse as bw, IndexStatus as bx, type IndexStatusResponse as by, type InvokeCustomToolActionParams as bz, type MemberFilterObjectType as c, Region as c$, type MemberReportItem as c0, type MemberRoleResponse as c1, type MemberRoleCalendarAccessResponse as c2, type MemberRoleDataTypeAccessResponse as c3, type MemberRoleFileAccessResponse as c4, type MemberRoleFolderAccessResponse as c5, type MemberRoleFormData as c6, type MemberRoleInboxAccessResponse as c7, type MemberRoleSiteAccessResponse as c8, type MemberRoleTaskAccess as c9, OIDCAdminConfigViewProviderType as cA, type ObjectPermission as cB, type ObjectPermissionFlags as cC, type OrgMember as cD, type OrgMemberListResponse as cE, type OrgMemberRole as cF, type OrganizationResponse as cG, type OwnershipVerificationResponse as cH, PERMISSION_ADMIN as cI, PERMISSION_CREATE as cJ, PERMISSION_DELETE as cK, PERMISSION_EDIT as cL, PERMISSION_GEOLOCATE as cM, PERMISSION_LIST as cN, PERMISSION_LIST_ALL as cO, PERMISSION_NONE as cP, PERMISSION_USE as cQ, PERMISSION_VERIFY as cR, type PageSortField as cS, type PaginatedResponse as cT, type PendingAnonymousMembersResponse as cU, type PendingCredentialChangeResponse as cV, type PendingCredentialChangeInviteResponse as cW, type PhoneCallActionParams as cX, type PlayAudioActionParams as cY, type QualificationSortField as cZ, type RecoveryCodeResponse as c_, type MemberRoleWorkflowAccessResponse as ca, type MemberSortField as cb, type MemberSummary as cc, MemberType as cd, type MemberUpsertActionParams as ce, type MemberUpsertBehavior as cf, type MemberWorkspaceInfo as cg, type MembersQueryParams as ch, type MemoryItem as ci, type MemoryResponse as cj, type MemoryType as ck, type MergeMembersRequest as cl, type MergeMembersResponse as cm, type MessageValidationActionParams as cn, type MilestoneSortField as co, type MissingMembershipItem as cp, type MondayColumnMapping as cq, type MondayLookupType as cr, type MondayRefreshActionParams as cs, type MondayRefreshColumnMapping as ct, type MondayUpsertItemActionParams as cu, type MondayUpsertMode as cv, type MultiMatchBehavior as cw, type NormalizeMemberRequest as cx, type NormalizeMemberResponse as cy, type OIDCAdminConfigView as cz, type MemberFilterFilterType as d, type VerifyWebAuthnSetupRequest as d$, RegistrationIdentifier as d0, type RequestCredentialChangeRequest as d1, type RequestMagicLinkRequest as d2, type RequestMagicLinkResponse as d3, type ResolveAnonymousMemberRequest as d4, type Routine as d5, type RoutineResponse as d6, type RoutineRunResponse as d7, type RoutineRunStatus as d8, type RoutineRunsQueryParams as d9, type SortOrder as dA, type SwitchTaskActionParams as dB, type SyncCalendarResponse as dC, type TOTPSetupResponse as dD, type TaskExportDataTypeRelation as dE, type TaskExportEventRuleRelation as dF, type TaskSortField as dG, type TimeSlot as dH, type TwoFactorMethod as dI, type TwoFactorOperationResponse as dJ, type TwoFactorStatus as dK, type UnlinkCalendarResponse as dL, type UpdateAgentRequest as dM, type UpdateAttendeeRequest as dN, type UpdateEventRuleFormData as dO, type UpdateOrgMemberRequest as dP, type UpdateOrganizationRequest as dQ, type UpdateRoutineRequest as dR, type UpdateTwoFactorMethodRequest as dS, type UpdateWorkspaceMemberRequest as dT, type ValidateMagicLinkRequest as dU, type ValidateMagicLinkResponse as dV, type VerifyCodeRequest as dW, type VerifyCodeResponse as dX, type VerifyCredentialChangeRequest as dY, type VerifyEmailRequest as dZ, type VerifyTOTPSetupRequest as d_, type RoutineScheduleMode as da, type RoutineSortField as db, type RoutineVisibility as dc, type RoutinesQueryParams as dd, type RuleExecutionSortField as de, type RuleExecutionsQueryParams as df, type SendLoginCodeResponse as dg, type SSOConfigData as dh, type SchedulePreviewRequest as di, type SchedulePreviewResponse as dj, type SchemaField as dk, Scope as dl, type SendEmailVerificationRequest as dm, type SessionExchangeRequest as dn, type SessionExchangeResponse as dp, type SetupTOTPRequest as dq, type SetupWebAuthnRequest as dr, type SignupAccountResponse as ds, type SignupMemberResponse as dt, type SiteDisableImpactResponse as du, SiteDnsRecordType as dv, type SiteDomainConfigResponse as dw, type SiteSortField as dx, type SiteVerificationResponse as dy, type SmsSendActionParams as dz, type AccountResponse as e, type WebhookActionParams as e0, type WebhookLogSortField as e1, type WebhookLogsQueryParams as e2, type WorkflowSortField as e3, type WorkspaceSortField as e4, decodePermissions as e5, encodePermissions as e6, eventRuleActionParams as e7, type CreateInquiryInput as e8, CreateInquirySchema as e9, type AdminAccountFormData as eA, type AdminAccountMembership as eB, type AdminAccountMembershipResponse as eC, type AdminAccountOrgMembershipResponse as eD, type AdminOrganization as eE, type AdminOrganizationResponse as eF, type AdminWorkspaceMemberFormData as eG, type ConsentRecordExport as eH, type DataExportResponse as eI, type DeletionCancelResponse as eJ, type DeletionRequestResponse as eK, type TwoFactorMethodResponse$1 as eL, type TwoFactorStatusResponse$1 as eM, type OIDCAdminConfigInput as eN, type OrgMembershipExport as eO, type TwoFactorMethodResponse as eP, type TwoFactorMethodType as eQ, type TwoFactorStatusResponse as eR, type WebAuthnRegistrationResponse as eS, type WorkspaceMembershipExport as eT, type EventRuleResponse$1 as eU, type OrgDomainListResponse as eV, type EmailDnsRecord as eW, type EmailDomainConfigGetResponse as eX, type SiteDnsRecord as eY, type SiteDomainConfigGetResponse as eZ, type CreateMilestoneInput as ea, CreateMilestoneSchema as eb, type DeleteInquiryInput as ec, DeleteInquirySchema as ed, type DeleteMilestoneInput as ee, DeleteMilestoneSchema as ef, type EnrichInquiryInput as eg, EnrichInquirySchema as eh, type GetInquiryInput as ei, GetInquirySchema as ej, type GetMilestoneInput as ek, GetMilestoneSchema as el, type ListInquiriesInput as em, ListInquiriesSchema as en, type ListMilestonesInput as eo, ListMilestonesSchema as ep, type MilestoneFormData as eq, MilestoneFormDataSchema as er, MilestoneGoalFormDataSchema as es, type UpdateInquiryInput as et, UpdateInquiryRequestSchema as eu, UpdateInquirySchema as ev, type UpdateMilestoneInput as ew, UpdateMilestoneSchema as ex, type AccountDataExport as ey, type AdminAccountResponse as ez, type AccountFormData as f, type AccountLookupResponse as g, type AccountReportItem as h, type AccountSortField as i, type AccountState as j, type Address as k, type AdminWorkspaceSortField as l, type AgentResponse as m, type AgentConfigResponse as n, type AgentConfigFormData as o, type AgentMemoryConfig as p, type AgentSortField as q, type AnonymousInteractionResponse as r, type AnonymousMemberResolutionResponse as s, type AnonymousMemberResolutionStatus as t, type ApiKeyResponse as u, type ApiKeyCreatedResponse as v, type ApiKeyFormData as w, type ApiKeyScope as x, type ApiKeyScopesResponse as y, type AssignmentSortField as z };
4242
+ declare const ChildTaskFormDataSchema: z.ZodObject<{
4243
+ taskId: z.ZodNumber;
4244
+ choicePrompt: z.ZodOptional<z.ZodString>;
4245
+ autoNext: z.ZodOptional<z.ZodBoolean>;
4246
+ required: z.ZodOptional<z.ZodBoolean>;
4247
+ celCondition: z.ZodOptional<z.ZodString>;
4248
+ }, z.core.$strip>;
4249
+ declare const AbilityDataSchema: z.ZodObject<{
4250
+ uuid: z.ZodString;
4251
+ abilityType: z.ZodString;
4252
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4253
+ enabled: z.ZodOptional<z.ZodBoolean>;
4254
+ celCondition: z.ZodOptional<z.ZodString>;
4255
+ }, z.core.$strip>;
4256
+ declare const TaskFormDataSchema: z.ZodObject<{
4257
+ name: z.ZodString;
4258
+ description: z.ZodOptional<z.ZodString>;
4259
+ shortPrompt: z.ZodOptional<z.ZodString>;
4260
+ prompt: z.ZodOptional<z.ZodString>;
4261
+ isAdmin: z.ZodOptional<z.ZodBoolean>;
4262
+ childTasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
4263
+ taskId: z.ZodNumber;
4264
+ choicePrompt: z.ZodOptional<z.ZodString>;
4265
+ autoNext: z.ZodOptional<z.ZodBoolean>;
4266
+ required: z.ZodOptional<z.ZodBoolean>;
4267
+ celCondition: z.ZodOptional<z.ZodString>;
4268
+ }, z.core.$strip>>>;
4269
+ workflowId: z.ZodNumber;
4270
+ celGuard: z.ZodOptional<z.ZodString>;
4271
+ abilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
4272
+ uuid: z.ZodString;
4273
+ abilityType: z.ZodString;
4274
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4275
+ enabled: z.ZodOptional<z.ZodBoolean>;
4276
+ celCondition: z.ZodOptional<z.ZodString>;
4277
+ }, z.core.$strip>>>;
4278
+ }, z.core.$strip>;
4279
+ declare const ListTasksSchema: z.ZodObject<{
4280
+ wid: z.ZodString;
4281
+ workflowId: z.ZodOptional<z.ZodNumber>;
4282
+ includeArchived: z.ZodOptional<z.ZodBoolean>;
4283
+ }, z.core.$strip>;
4284
+ declare const GetTaskSchema: z.ZodObject<{
4285
+ wid: z.ZodString;
4286
+ taskId: z.ZodString;
4287
+ }, z.core.$strip>;
4288
+ declare const CreateTaskSchema: z.ZodObject<{
4289
+ wid: z.ZodString;
4290
+ name: z.ZodString;
4291
+ description: z.ZodOptional<z.ZodString>;
4292
+ shortPrompt: z.ZodOptional<z.ZodString>;
4293
+ prompt: z.ZodOptional<z.ZodString>;
4294
+ isAdmin: z.ZodOptional<z.ZodBoolean>;
4295
+ childTasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
4296
+ taskId: z.ZodNumber;
4297
+ choicePrompt: z.ZodOptional<z.ZodString>;
4298
+ autoNext: z.ZodOptional<z.ZodBoolean>;
4299
+ required: z.ZodOptional<z.ZodBoolean>;
4300
+ celCondition: z.ZodOptional<z.ZodString>;
4301
+ }, z.core.$strip>>>;
4302
+ workflowId: z.ZodNumber;
4303
+ celGuard: z.ZodOptional<z.ZodString>;
4304
+ abilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
4305
+ uuid: z.ZodString;
4306
+ abilityType: z.ZodString;
4307
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4308
+ enabled: z.ZodOptional<z.ZodBoolean>;
4309
+ celCondition: z.ZodOptional<z.ZodString>;
4310
+ }, z.core.$strip>>>;
4311
+ }, z.core.$strip>;
4312
+ declare const UpdateTaskSchema: z.ZodObject<{
4313
+ wid: z.ZodString;
4314
+ taskId: z.ZodNumber;
4315
+ name: z.ZodOptional<z.ZodString>;
4316
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4317
+ shortPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4318
+ prompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4319
+ isAdmin: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4320
+ childTasks: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
4321
+ taskId: z.ZodNumber;
4322
+ choicePrompt: z.ZodOptional<z.ZodString>;
4323
+ autoNext: z.ZodOptional<z.ZodBoolean>;
4324
+ required: z.ZodOptional<z.ZodBoolean>;
4325
+ celCondition: z.ZodOptional<z.ZodString>;
4326
+ }, z.core.$strip>>>>;
4327
+ workflowId: z.ZodOptional<z.ZodNumber>;
4328
+ celGuard: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4329
+ abilities: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
4330
+ uuid: z.ZodString;
4331
+ abilityType: z.ZodString;
4332
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4333
+ enabled: z.ZodOptional<z.ZodBoolean>;
4334
+ celCondition: z.ZodOptional<z.ZodString>;
4335
+ }, z.core.$strip>>>>;
4336
+ }, z.core.$strip>;
4337
+ declare const DeleteTaskSchema: z.ZodObject<{
4338
+ wid: z.ZodString;
4339
+ taskId: z.ZodNumber;
4340
+ }, z.core.$strip>;
4341
+ declare const ArchiveTaskSchema: z.ZodObject<{
4342
+ wid: z.ZodString;
4343
+ taskId: z.ZodNumber;
4344
+ }, z.core.$strip>;
4345
+ declare const UnarchiveTaskSchema: z.ZodObject<{
4346
+ wid: z.ZodString;
4347
+ taskId: z.ZodNumber;
4348
+ }, z.core.$strip>;
4349
+ type AbilityData = z.infer<typeof AbilityDataSchema>;
4350
+ type ChildTaskFormData = z.infer<typeof ChildTaskFormDataSchema>;
4351
+ type TaskFormData = z.infer<typeof TaskFormDataSchema>;
4352
+ type ListTasksInput = z.infer<typeof ListTasksSchema>;
4353
+ type GetTaskInput = z.infer<typeof GetTaskSchema>;
4354
+ type CreateTaskInput = z.infer<typeof CreateTaskSchema>;
4355
+ type UpdateTaskInput = z.infer<typeof UpdateTaskSchema>;
4356
+ type DeleteTaskInput = z.infer<typeof DeleteTaskSchema>;
4357
+ type ArchiveTaskInput = z.infer<typeof ArchiveTaskSchema>;
4358
+ type UnarchiveTaskInput = z.infer<typeof UnarchiveTaskSchema>;
4359
+
4360
+ export { type CalendarEventFormData as $, AccessLevel as A, AttendeeStatus as B, type AuthorizedRep as C, DataFieldType as D, EventRuleEventType as E, type AvailabilityCheck as F, type AvailabilityResponse as G, type AvailableSlotsRequest as H, type AvailableSlotsResponse as I, type BotSortField as J, type BulkCreateDataRecordRequest as K, type BulkCreateDataRecordResponse as L, type BulkCreateMembersRequest as M, type BulkCreateMembersResponse as N, type BulkMemberItem as O, type BulkMemberResult as P, type QueryPredicate as Q, BulkMemberResultStatus as R, type SchemaField as S, type BulkRecordResult as T, BusinessIndustry as U, type BusinessInfo as V, type BusinessProfileCancelResponse as W, type BusinessProfileSubmitResponse as X, BusinessType as Y, type Calendar as Z, type EventResponse as _, EventRuleActionType as a, type DataTypeMemberRoleAccessInput as a$, type CalendarEventSortField as a0, CalendarEventStatus as a1, type EventTypeResponse as a2, type CalendarEventTypeFormData as a3, type CalendarEventsQueryParams as a4, type CalendarFormData as a5, CalendarPermissionType as a6, type CalendarResponse as a7, type CalendarSchedule as a8, CalendarScheduleAvailabilityType as a9, type CredentialChangeInviteResponse as aA, type CredentialChangeRequestResponse as aB, type CredentialChangeVerifyResponse as aC, type CredentialType as aD, type CurrentMemberResponse as aE, type CurrentOrgMember as aF, type CursorPaginatedResponse as aG, DataCategory as aH, type DataField as aI, type DataIntegrityReportItem as aJ, type DataRecordResponse as aK, type DataRecordAssociationFormData as aL, type DataRecordFieldWarning as aM, type DataRecordFilterResponse as aN, type DataRecordFilterFormData as aO, type DataRecordFilterWithQuery as aP, type DataRecordFormData as aQ, type DataRecordReportItem as aR, type DataRecordRetirementResponse as aS, DataRecordRetirementResponseReason as aT, type DataRecordUpdateResponse as aU, type DataRecordWithAccessMode as aV, type DataRecordsPaginatedResponse as aW, DataSensitivity as aX, type DataTypeResponse as aY, type DataTypeExportItem as aZ, type DataTypeFormData as a_, type CalendarScheduleFormData as aa, CalendarScheduleRecurrence as ab, type CalendarScheduleResponse as ac, CalendarSource as ad, type CancelCredentialChangeInviteResponse as ae, type CancelCredentialChangeResponse as af, type CapabilityRequirementFinding as ag, type CapabilityStatus as ah, type ChatContinueActionParams as ai, type ChatCreateActionParams as aj, type ChatPauseActionParams as ak, type ChatSortField as al, type ChatSummarizeActionParams as am, type ConcludeAssignmentActionParams as an, type CreateAccountOrgMembershipRequest as ao, type CreateAccountOrgMembershipResponse as ap, type CreateAgentRequest as aq, type CreateAnonymousMemberRequest as ar, type CreateCredentialChangeInviteRequest as as, type CreateDataRecordFilterRequest as at, type CreateOrganizationRequest as au, type CreateRoutineRequest as av, type CreateSignupResponse as aw, type CreateWorkspaceMemberRequest as ax, type CredentialChangeInviteConfirmResponse as ay, type CredentialChangeInviteDetailsResponse as az, type AccountResponse as b, type MemberFilterFormData as b$, type DataTypeMemberRoleAccessResponse as b0, DataTypeRecordScope as b1, type DataTypeSortField as b2, type DeleteAccountOrgMembershipResponse as b3, type DetailedAccount as b4, type DuplicateAccountInfo as b5, type EcwRefreshMemberEncountersActionParams as b6, type EmailDisableImpactResponse as b7, EmailDnsRecordType as b8, type EmailDomainConfigResponse as b9, type GoogleCalendarInsufficientScopesResponse as bA, type GoogleCalendarStatusResponse as bB, type ICalFeedTokenResponse as bC, type ICalFeedUrlResponse as bD, type IdentityConflictPolicy as bE, IndexStatus as bF, type IndexStatusResponse as bG, type InvokeCustomToolActionParams as bH, JobPosition as bI, type JourneyEnrollActionParams as bJ, type JourneySortField as bK, type LibModelsGlbResponsesOrganizationResponsesSSOConfigResponse as bL, type LinkCalendarRequest as bM, type LinkCalendarResponse as bN, type LoginRequest as bO, type LoginResponse as bP, type LogoUploadRequest as bQ, type LogoUploadResponse as bR, MASKED_SECRET_SENTINEL as bS, type McpServerSortField as bT, type WorkspaceMemberResponse as bU, type MemberCredentialResponse as bV, type MemberFieldResponse as bW, type MemberFieldDefinitionResponse as bX, type MemberFieldDefinitionListResponse as bY, type MemberFieldListResponse as bZ, type MemberFilterResponse as b_, type EmailSendActionParams as ba, type EmailVerificationResponse as bb, type EnumOption as bc, type ErrorResponse as bd, type EventActionMapping as be, type EventActionMappingsResponse as bf, type EventRule as bg, type EventRuleExportItem as bh, type EventRuleFormData as bi, type EventRuleInput as bj, EventRuleObjectType as bk, type EventRuleResponse as bl, type EventRunSortField as bm, type ExpireAnonymousMemberRequest as bn, type ExternalAttendeeData as bo, type FileSortField as bp, type FormFieldUpdateActionParams as bq, type GenerateRecoveryCodesRequest as br, type BusinessProfileResponse as bs, type CalendarResponse$1 as bt, type CalendarScheduleResponse$1 as bu, type MemoryListResponse as bv, type MemoryResponse$1 as bw, type OrgDomainResponse as bx, type OwnershipDnsRecord as by, type GoogleCalendarInfo as bz, type AccountFormData as c, PERMISSION_ADMIN as c$, type MemberFilterWithQuery as c0, type MemberFormData as c1, type MemberImportConflictInfo as c2, type MemberImportIdentitySnapshot as c3, type MemberImportMatchInfo as c4, MemberImportMatchInfoMatchType as c5, type MemberImportPreviewResponse as c6, type MemberImportPreviewRow as c7, MemberImportPreviewRowAction as c8, type MemberImportPreviewSummary as c9, type MembersQueryParams as cA, type MemoryItem as cB, type MemoryResponse as cC, type MemoryType as cD, type MergeMembersRequest as cE, type MergeMembersResponse as cF, type MessageValidationActionParams as cG, type MilestoneSortField as cH, type MissingMembershipItem as cI, type MondayColumnMapping as cJ, type MondayLookupType as cK, type MondayRefreshActionParams as cL, type MondayRefreshColumnMapping as cM, type MondayUpsertItemActionParams as cN, type MondayUpsertMode as cO, type MultiMatchBehavior as cP, type NormalizeMemberRequest as cQ, type NormalizeMemberResponse as cR, type OIDCAdminConfigView as cS, OIDCAdminConfigViewProviderType as cT, type ObjectPermission as cU, type ObjectPermissionFlags as cV, type OrgMember as cW, type OrgMemberListResponse as cX, type OrgMemberRole as cY, type OrganizationResponse as cZ, type OwnershipVerificationResponse as c_, type MemberImportStreamConflict as ca, type MemberImportStreamEvent as cb, type MemberLabelResponse as cc, type MemberLabelActionParams as cd, type MemberLabelFormData as ce, type MemberMemoriesResponse as cf, type MemberMessageActivity as cg, type MemberOrgView as ch, type MemberReportItem as ci, type MemberRoleResponse as cj, type MemberRoleCalendarAccessResponse as ck, type MemberRoleDataTypeAccessResponse as cl, type MemberRoleFileAccessResponse as cm, type MemberRoleFolderAccessResponse as cn, type MemberRoleFormData as co, type MemberRoleInboxAccessResponse as cp, type MemberRoleSiteAccessResponse as cq, type MemberRoleTaskAccess as cr, type MemberRoleWorkflowAccessResponse as cs, type MemberSortField as ct, type MemberSummary as cu, type MemberSyncLink as cv, MemberType as cw, type MemberUpsertActionParams as cx, type MemberUpsertBehavior as cy, type MemberWorkspaceInfo as cz, type AccountLookupResponse as d, type RoutineRunStatus as d$, PERMISSION_CREATE as d0, PERMISSION_DELETE as d1, PERMISSION_EDIT as d2, PERMISSION_GEOLOCATE as d3, PERMISSION_LIST as d4, PERMISSION_LIST_ALL as d5, PERMISSION_NONE as d6, PERMISSION_USE as d7, PERMISSION_VERIFY as d8, type PageSortField as d9, type QueryMetric as dA, type QueryNot as dB, type QueryNowValue as dC, type QueryOr as dD, type QueryRangeBound as dE, type QueryRangeValue as dF, type QueryRecordFieldInfo as dG, type QueryRecordMatch as dH, type QueryRecordSelection as dI, type QueryRelationMatch as dJ, type QueryRunMode as dK, type QuerySavedFilterRef as dL, type QueryScalar as dM, type QuerySortKey as dN, type QuerySubQueryRef as dO, type QueryTemporalValue as dP, type QueryValue as dQ, type RecoveryCodeResponse as dR, Region as dS, RegistrationIdentifier as dT, type RequestCredentialChangeRequest as dU, type RequestMagicLinkRequest as dV, type RequestMagicLinkResponse as dW, type ResolveAnonymousMemberRequest as dX, type Routine as dY, type RoutineResponse as dZ, type RoutineRunResponse as d_, type PaginatedResponse as da, type PendingAnonymousMembersResponse as db, type PendingCredentialChangeResponse as dc, type PendingCredentialChangeInviteResponse as dd, type PhoneCallActionParams as de, type PlayAudioActionParams as df, QUERY_VALUELESS_OPS as dg, type QualificationSortField as dh, type QueryAggregateOp as di, type QueryAggregatePredicate as dj, type QueryAggregateSpec as dk, type QueryAnd as dl, type QueryCompare as dm, type QueryComparisonOp as dn, type QueryCostInfo as dp, type QueryDataTypeInfo as dq, type QueryDayBoundaryValue as dr, type QueryDaysAgoValue as ds, type QueryDaysFromNowValue as dt, type QueryEntityType as du, type QueryEnumOption as dv, type QueryFieldInfo as dw, type QueryFieldsResponse as dx, type QueryGroupBy as dy, type QueryIR as dz, type AccountReportItem as e, type WebhookActionParams as e$, type RoutineRunsQueryParams as e0, type RoutineScheduleMode as e1, type RoutineSortField as e2, type RoutineVisibility as e3, type RoutineWorkflowAccessMissingRoleResponse as e4, type RoutineWorkflowAccessPreviewRequest as e5, type RoutineWorkflowAccessPreviewResponse as e6, type RoutineWorkflowAccessWarningResponse as e7, type RoutinesQueryParams as e8, type RuleExecutionSortField as e9, type TaskExportEventRuleRelation as eA, type TaskSortField as eB, type TestWebhookRequest as eC, type TestWebhookResponse as eD, type TimeSlot as eE, type TwoFactorMethod as eF, type TwoFactorOperationResponse as eG, type TwoFactorStatus as eH, type UnlinkCalendarResponse as eI, type UpdateAgentRequest as eJ, type UpdateAttendeeRequest as eK, type UpdateDataRecordFilterRequest as eL, type UpdateEventRuleFormData as eM, type UpdateOrgMemberRequest as eN, type UpdateOrganizationRequest as eO, type UpdateRoutineRequest as eP, type UpdateTwoFactorMethodRequest as eQ, type UpdateWorkspaceMemberRequest as eR, type ValidateMagicLinkRequest as eS, type ValidateMagicLinkResponse as eT, type ValidateQueryResponse as eU, type VerifyCodeRequest as eV, type VerifyCodeResponse as eW, type VerifyCredentialChangeRequest as eX, type VerifyEmailRequest as eY, type VerifyTOTPSetupRequest as eZ, type VerifyWebAuthnSetupRequest as e_, type RuleExecutionsQueryParams as ea, type RunQueryRequest as eb, type RunQueryResponse as ec, type SendLoginCodeResponse as ed, type SSOConfigData as ee, type SchedulePreviewRequest as ef, type SchedulePreviewResponse as eg, Scope as eh, type SendEmailVerificationRequest as ei, type SessionExchangeRequest as ej, type SessionExchangeResponse as ek, type SetupTOTPRequest as el, type SetupWebAuthnRequest as em, type SignupAccountResponse as en, type SignupMemberResponse as eo, type SiteDisableImpactResponse as ep, SiteDnsRecordType as eq, type SiteDomainConfigResponse as er, type SiteSortField as es, type SiteVerificationResponse as et, type SmsSendActionParams as eu, type SortOrder as ev, type SwitchTaskActionParams as ew, type SyncCalendarResponse as ex, type TOTPSetupResponse as ey, type TaskExportDataTypeRelation as ez, type AccountSortField as f, type AdminOrganization as f$, type WebhookLogSortField as f0, type WebhookLogsQueryParams as f1, type WorkflowSortField as f2, type WorkspaceMemberCountResponse as f3, type WorkspaceMemberCountResponseActiveByType as f4, type WorkspaceSortField as f5, decodePermissions as f6, encodePermissions as f7, eventRuleActionParams as f8, type AbilityData as f9, type ListInquiriesInput as fA, ListInquiriesSchema as fB, type ListMilestonesInput as fC, ListMilestonesSchema as fD, type ListTasksInput as fE, ListTasksSchema as fF, type MilestoneFormData as fG, MilestoneFormDataSchema as fH, MilestoneGoalFormDataSchema as fI, type TaskFormData as fJ, TaskFormDataSchema as fK, type UnarchiveTaskInput as fL, UnarchiveTaskSchema as fM, type UpdateInquiryInput as fN, UpdateInquiryRequestSchema as fO, UpdateInquirySchema as fP, type UpdateMilestoneInput as fQ, UpdateMilestoneSchema as fR, type UpdateTaskInput as fS, UpdateTaskSchema as fT, DeclaredDataUse as fU, type AccountDataExport as fV, type AdminAccountResponse as fW, type AdminAccountFormData as fX, type AdminAccountMembership as fY, type AdminAccountMembershipResponse as fZ, type AdminAccountOrgMembershipResponse as f_, AbilityDataSchema as fa, AnonymousInquiryFormSchema as fb, type ArchiveTaskInput as fc, ArchiveTaskSchema as fd, type ChildTaskFormData as fe, ChildTaskFormDataSchema as ff, type CreateInquiryInput as fg, CreateInquirySchema as fh, type CreateMilestoneInput as fi, CreateMilestoneSchema as fj, type CreateTaskInput as fk, CreateTaskSchema as fl, type DeleteInquiryInput as fm, DeleteInquirySchema as fn, type DeleteMilestoneInput as fo, DeleteMilestoneSchema as fp, type DeleteTaskInput as fq, DeleteTaskSchema as fr, type EnrichInquiryInput as fs, EnrichInquirySchema as ft, type GetInquiryInput as fu, GetInquirySchema as fv, type GetMilestoneInput as fw, GetMilestoneSchema as fx, type GetTaskInput as fy, GetTaskSchema as fz, type AccountState as g, type AdminOrganizationResponse as g0, type AdminWorkspaceMemberFormData as g1, type ConsentRecordExport as g2, type DataExportResponse as g3, type DeletionCancelResponse as g4, type DeletionRequestResponse as g5, type TwoFactorMethodResponse$1 as g6, type TwoFactorStatusResponse$1 as g7, type OIDCAdminConfigInput as g8, type OrgMembershipExport as g9, type TwoFactorMethodResponse as ga, type TwoFactorMethodType as gb, type TwoFactorStatusResponse as gc, type WebAuthnRegistrationResponse as gd, type WorkspaceMembershipExport as ge, type EnumOption$1 as gf, type EventRuleResponse$1 as gg, type OrgDomainListResponse as gh, type EmailDnsRecord as gi, type EmailDomainConfigGetResponse as gj, type SiteDnsRecord as gk, type SiteDomainConfigGetResponse as gl, type Address as h, type AdminWorkspaceSortField as i, type AgentResponse as j, type AgentConfigResponse as k, type AgentConfigFormData as l, type AgentMemoryConfig as m, type AgentSortField as n, type AnonymousInteractionResponse as o, type AnonymousMemberResolutionResponse as p, type AnonymousMemberResolutionStatus as q, type ApiKeyResponse as r, type ApiKeyCreatedResponse as s, type ApiKeyFormData as t, type ApiKeyScope as u, type ApiKeyScopesResponse as v, type AssignmentSortField as w, type AssistantMessageActionParams as x, type AttendeeResponse as y, AttendeeResponseStatus as z };