@marlinjai/mail-contract 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -493,12 +493,13 @@ declare const WorkspaceCreate: z.ZodObject<{
493
493
  name?: string | null | undefined;
494
494
  }>;
495
495
  /**
496
- * The signed-in person's active auth-brain company. The dashboard always
497
- * sends it, which is what links the workspace to auth-brain's company
498
- * erasure; omitted, the workspace belongs to no company and no company
499
- * erasure reaches it.
496
+ * The auth-brain company the workspace is created in. Required since 0.14.0:
497
+ * every new workspace belongs to a company, which is what links it to that
498
+ * company's erasure and lets the company's owners and admins in without an
499
+ * invitation (`members.syncCompanyRole`). A workspace created before, without
500
+ * one, keeps working and simply has no such inheritance.
500
501
  */
501
- company_id: z.ZodOptional<z.ZodString>;
502
+ company_id: z.ZodString;
502
503
  }, "strip", z.ZodTypeAny, {
503
504
  name: string;
504
505
  slug: string;
@@ -506,6 +507,7 @@ declare const WorkspaceCreate: z.ZodObject<{
506
507
  email: string;
507
508
  name?: string | null | undefined;
508
509
  };
510
+ company_id: string;
509
511
  settings?: {
510
512
  asset_policy?: "any" | "service_only" | undefined;
511
513
  default_locale?: string | undefined;
@@ -515,7 +517,6 @@ declare const WorkspaceCreate: z.ZodObject<{
515
517
  merge_defaults?: Record<string, string | number | boolean> | undefined;
516
518
  default_timezone?: string | null | undefined;
517
519
  } | undefined;
518
- company_id?: string | undefined;
519
520
  }, {
520
521
  name: string;
521
522
  slug: string;
@@ -523,6 +524,7 @@ declare const WorkspaceCreate: z.ZodObject<{
523
524
  email: string;
524
525
  name?: string | null | undefined;
525
526
  };
527
+ company_id: string;
526
528
  settings?: {
527
529
  asset_policy?: "any" | "service_only" | undefined;
528
530
  default_locale?: string | undefined;
@@ -532,7 +534,6 @@ declare const WorkspaceCreate: z.ZodObject<{
532
534
  merge_defaults?: Record<string, string | number | boolean> | undefined;
533
535
  default_timezone?: string | null | undefined;
534
536
  } | undefined;
535
- company_id?: string | undefined;
536
537
  }>;
537
538
  type WorkspaceCreate = z.infer<typeof WorkspaceCreate>;
538
539
  declare const WorkspaceUpdate: z.ZodEffects<z.ZodObject<{
@@ -732,14 +733,63 @@ declare const WorkspaceMembership: z.ZodObject<{
732
733
  role: "owner" | "admin" | "editor" | "viewer";
733
734
  }>;
734
735
  type WorkspaceMembership = z.infer<typeof WorkspaceMembership>;
736
+ /**
737
+ * Where a member row comes from.
738
+ *
739
+ * - `invited`: the person was added to this workspace itself, by creating it,
740
+ * by an invitation or by `members.add`.
741
+ * - `company`: the person has no row of their own; they are in because they are
742
+ * an owner or admin of the workspace's company in the shared login
743
+ * (`members.syncCompanyRole`).
744
+ */
745
+ declare const MEMBER_SOURCES: readonly ["invited", "company"];
746
+ declare const MemberSource: z.ZodEnum<["invited", "company"]>;
747
+ type MemberSource = z.infer<typeof MemberSource>;
748
+ /**
749
+ * The company roles that carry into a workspace: a company owner is a
750
+ * workspace `owner`, a company admin a workspace `admin`. No other company
751
+ * role (billing admin, member, viewer) inherits anything.
752
+ */
753
+ declare const COMPANY_GRANT_ROLES: readonly ["owner", "admin"];
754
+ declare const CompanyGrantRole: z.ZodEnum<["owner", "admin"]>;
755
+ type CompanyGrantRole = z.infer<typeof CompanyGrantRole>;
756
+ /**
757
+ * How long a company role stays in force after the dashboard last confirmed
758
+ * it. The service only learns a person's company role when that person uses
759
+ * the dashboard, so a role nobody has confirmed for this long counts as absent
760
+ * everywhere: for a trusted application acting for the person, for the
761
+ * last-owner rule, and for the role shown on the member. The members list
762
+ * still shows the row, as not confirmed, until it is confirmed or removed.
763
+ */
764
+ declare const COMPANY_ROLE_MAX_AGE_HOURS = 24;
735
765
  declare const Member: z.ZodObject<{
736
766
  id: z.ZodString;
737
767
  /** The person's auth-brain subject. */
738
768
  subject: z.ZodString;
739
769
  email: z.ZodString;
740
770
  name: z.ZodNullable<z.ZodString>;
771
+ /**
772
+ * The role in force: the higher of the person's own role in the workspace
773
+ * and the one a confirmed company role carries. For a `company` row that is
774
+ * no longer confirmed, the role it would carry once confirmed again.
775
+ */
741
776
  role: z.ZodEnum<["owner", "admin", "editor", "viewer"]>;
742
777
  created_at: z.ZodString;
778
+ source: z.ZodOptional<z.ZodEnum<["invited", "company"]>>;
779
+ /** The company role last reported for the person (`members.syncCompanyRole`), or null. */
780
+ company_role: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "admin"]>>>;
781
+ /** When the dashboard last confirmed `company_role`; null without one. */
782
+ company_checked_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
783
+ /** The person's own role in the workspace; null for a `company` row. */
784
+ direct_role: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "admin", "editor", "viewer"]>>>;
785
+ /**
786
+ * True while `role` is held only through a confirmed company role. Such a
787
+ * member cannot be changed or removed here (`inherited_from_company`): the
788
+ * role is managed in the shared login. A `company` row with `inherited`
789
+ * false is one whose company role has not been confirmed within
790
+ * `COMPANY_ROLE_MAX_AGE_HOURS`; it grants nothing and an admin may remove it.
791
+ */
792
+ inherited: z.ZodOptional<z.ZodBoolean>;
743
793
  }, "strip", z.ZodTypeAny, {
744
794
  id: string;
745
795
  email: string;
@@ -747,6 +797,11 @@ declare const Member: z.ZodObject<{
747
797
  subject: string;
748
798
  created_at: string;
749
799
  role: "owner" | "admin" | "editor" | "viewer";
800
+ source?: "invited" | "company" | undefined;
801
+ company_role?: "owner" | "admin" | null | undefined;
802
+ company_checked_at?: string | null | undefined;
803
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
804
+ inherited?: boolean | undefined;
750
805
  }, {
751
806
  id: string;
752
807
  email: string;
@@ -754,8 +809,88 @@ declare const Member: z.ZodObject<{
754
809
  subject: string;
755
810
  created_at: string;
756
811
  role: "owner" | "admin" | "editor" | "viewer";
812
+ source?: "invited" | "company" | undefined;
813
+ company_role?: "owner" | "admin" | null | undefined;
814
+ company_checked_at?: string | null | undefined;
815
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
816
+ inherited?: boolean | undefined;
757
817
  }>;
758
818
  type Member = z.infer<typeof Member>;
819
+ /** At most this many companies in one `members.syncCompanyRole` call. */
820
+ declare const MAX_SYNC_COMPANIES = 100;
821
+ /**
822
+ * `members.syncCompanyRole` (the dashboard only, never an API key or a trusted
823
+ * application): the complete statement of the signed-in person's owner and
824
+ * admin roles in companies, as the shared login's verified session reports
825
+ * them. The person is the one named by `x-mail-subject`; the body cannot name
826
+ * anybody else.
827
+ *
828
+ * The service then makes the member lists agree with it, in one transaction:
829
+ *
830
+ * - in every workspace whose `company_id` is one of `companies`, the person
831
+ * has a member row carrying that company role (a new `company` row, or the
832
+ * `company_role` of their own row);
833
+ * - every other company role the person still carries, in any workspace, is
834
+ * taken away: a `company` row is deactivated (its id survives for the audit
835
+ * log, and comes back with the role), an invited row falls back to its own
836
+ * role.
837
+ *
838
+ * A company is matched against the workspace's own `company_id` and nothing
839
+ * else, so naming a company never reaches a workspace of another one. An empty
840
+ * list is a valid statement: the person holds no company role any more.
841
+ */
842
+ declare const MemberCompanySync: z.ZodObject<{
843
+ email: z.ZodString;
844
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
845
+ companies: z.ZodEffects<z.ZodArray<z.ZodObject<{
846
+ company_id: z.ZodString;
847
+ role: z.ZodEnum<["owner", "admin"]>;
848
+ }, "strip", z.ZodTypeAny, {
849
+ company_id: string;
850
+ role: "owner" | "admin";
851
+ }, {
852
+ company_id: string;
853
+ role: "owner" | "admin";
854
+ }>, "many">, {
855
+ company_id: string;
856
+ role: "owner" | "admin";
857
+ }[], {
858
+ company_id: string;
859
+ role: "owner" | "admin";
860
+ }[]>;
861
+ }, "strip", z.ZodTypeAny, {
862
+ email: string;
863
+ companies: {
864
+ company_id: string;
865
+ role: "owner" | "admin";
866
+ }[];
867
+ name?: string | null | undefined;
868
+ }, {
869
+ email: string;
870
+ companies: {
871
+ company_id: string;
872
+ role: "owner" | "admin";
873
+ }[];
874
+ name?: string | null | undefined;
875
+ }>;
876
+ type MemberCompanySync = z.infer<typeof MemberCompanySync>;
877
+ declare const MemberCompanySyncResult: z.ZodObject<{
878
+ /** Workspaces in which the person now holds a company role they did not hold, or held differently, before this call. */
879
+ granted: z.ZodArray<z.ZodString, "many">;
880
+ /** Workspaces in which a company role was taken away by this call. */
881
+ revoked: z.ZodArray<z.ZodString, "many">;
882
+ /** Workspaces in which the person's company role was already as stated. */
883
+ unchanged: z.ZodArray<z.ZodString, "many">;
884
+ }, "strip", z.ZodTypeAny, {
885
+ unchanged: string[];
886
+ granted: string[];
887
+ revoked: string[];
888
+ }, {
889
+ unchanged: string[];
890
+ granted: string[];
891
+ revoked: string[];
892
+ }>;
893
+ type MemberCompanySyncResult = z.infer<typeof MemberCompanySyncResult>;
759
894
  /**
760
895
  * Adding a member. The service binds people by auth-brain subject only (it never
761
896
  * sees a login), so the dashboard resolves the person first and sends the subject
@@ -1097,7 +1232,7 @@ declare const Invite: z.ZodObject<{
1097
1232
  revoked_at: z.ZodNullable<z.ZodString>;
1098
1233
  created_at: z.ZodString;
1099
1234
  }, "strip", z.ZodTypeAny, {
1100
- status: "pending" | "accepted" | "revoked" | "expired";
1235
+ status: "pending" | "revoked" | "accepted" | "expired";
1101
1236
  id: string;
1102
1237
  email: string;
1103
1238
  created_at: string;
@@ -1110,7 +1245,7 @@ declare const Invite: z.ZodObject<{
1110
1245
  expires_at: string;
1111
1246
  accepted_at: string | null;
1112
1247
  }, {
1113
- status: "pending" | "accepted" | "revoked" | "expired";
1248
+ status: "pending" | "revoked" | "accepted" | "expired";
1114
1249
  id: string;
1115
1250
  email: string;
1116
1251
  created_at: string;
@@ -1170,7 +1305,7 @@ declare const InviteCreated: z.ZodObject<{
1170
1305
  revoked_at: z.ZodNullable<z.ZodString>;
1171
1306
  created_at: z.ZodString;
1172
1307
  }, "strip", z.ZodTypeAny, {
1173
- status: "pending" | "accepted" | "revoked" | "expired";
1308
+ status: "pending" | "revoked" | "accepted" | "expired";
1174
1309
  id: string;
1175
1310
  email: string;
1176
1311
  created_at: string;
@@ -1183,7 +1318,7 @@ declare const InviteCreated: z.ZodObject<{
1183
1318
  expires_at: string;
1184
1319
  accepted_at: string | null;
1185
1320
  }, {
1186
- status: "pending" | "accepted" | "revoked" | "expired";
1321
+ status: "pending" | "revoked" | "accepted" | "expired";
1187
1322
  id: string;
1188
1323
  email: string;
1189
1324
  created_at: string;
@@ -1199,7 +1334,7 @@ declare const InviteCreated: z.ZodObject<{
1199
1334
  token: z.ZodString;
1200
1335
  }, "strip", z.ZodTypeAny, {
1201
1336
  invite: {
1202
- status: "pending" | "accepted" | "revoked" | "expired";
1337
+ status: "pending" | "revoked" | "accepted" | "expired";
1203
1338
  id: string;
1204
1339
  email: string;
1205
1340
  created_at: string;
@@ -1215,7 +1350,7 @@ declare const InviteCreated: z.ZodObject<{
1215
1350
  token: string;
1216
1351
  }, {
1217
1352
  invite: {
1218
- status: "pending" | "accepted" | "revoked" | "expired";
1353
+ status: "pending" | "revoked" | "accepted" | "expired";
1219
1354
  id: string;
1220
1355
  email: string;
1221
1356
  created_at: string;
@@ -1237,11 +1372,11 @@ declare const InviteListQuery: z.ZodObject<{
1237
1372
  } & {
1238
1373
  status: z.ZodOptional<z.ZodEnum<["pending", "accepted", "revoked", "expired"]>>;
1239
1374
  }, "strip", z.ZodTypeAny, {
1240
- status?: "pending" | "accepted" | "revoked" | "expired" | undefined;
1375
+ status?: "pending" | "revoked" | "accepted" | "expired" | undefined;
1241
1376
  cursor?: string | undefined;
1242
1377
  limit?: number | undefined;
1243
1378
  }, {
1244
- status?: "pending" | "accepted" | "revoked" | "expired" | undefined;
1379
+ status?: "pending" | "revoked" | "accepted" | "expired" | undefined;
1245
1380
  cursor?: string | undefined;
1246
1381
  limit?: number | undefined;
1247
1382
  }>;
@@ -28933,6 +29068,13 @@ interface RouteDef {
28933
29068
  status: 200 | 201 | 202;
28934
29069
  access: RouteAccess;
28935
29070
  phase: Phase;
29071
+ /**
29072
+ * The call states how things are instead of asking for a change, so sending
29073
+ * it twice is the same as sending it once and it takes no `Idempotency-Key`
29074
+ * (see `acceptsIdempotencyKey`). For a call made on nearly every request,
29075
+ * where a ledger row per call would be the only write it causes.
29076
+ */
29077
+ statement?: true;
28936
29078
  }
28937
29079
  declare const foundationRoutes: {
28938
29080
  readonly 'workspaces.create': {
@@ -28976,7 +29118,7 @@ declare const foundationRoutes: {
28976
29118
  email: string;
28977
29119
  name?: string | null | undefined;
28978
29120
  }>;
28979
- company_id: z.ZodOptional<z.ZodString>;
29121
+ company_id: z.ZodString;
28980
29122
  }, "strip", z.ZodTypeAny, {
28981
29123
  name: string;
28982
29124
  slug: string;
@@ -28984,6 +29126,7 @@ declare const foundationRoutes: {
28984
29126
  email: string;
28985
29127
  name?: string | null | undefined;
28986
29128
  };
29129
+ company_id: string;
28987
29130
  settings?: {
28988
29131
  asset_policy?: "any" | "service_only" | undefined;
28989
29132
  default_locale?: string | undefined;
@@ -28993,7 +29136,6 @@ declare const foundationRoutes: {
28993
29136
  merge_defaults?: Record<string, string | number | boolean> | undefined;
28994
29137
  default_timezone?: string | null | undefined;
28995
29138
  } | undefined;
28996
- company_id?: string | undefined;
28997
29139
  }, {
28998
29140
  name: string;
28999
29141
  slug: string;
@@ -29001,6 +29143,7 @@ declare const foundationRoutes: {
29001
29143
  email: string;
29002
29144
  name?: string | null | undefined;
29003
29145
  };
29146
+ company_id: string;
29004
29147
  settings?: {
29005
29148
  asset_policy?: "any" | "service_only" | undefined;
29006
29149
  default_locale?: string | undefined;
@@ -29010,7 +29153,6 @@ declare const foundationRoutes: {
29010
29153
  merge_defaults?: Record<string, string | number | boolean> | undefined;
29011
29154
  default_timezone?: string | null | undefined;
29012
29155
  } | undefined;
29013
- company_id?: string | undefined;
29014
29156
  }>;
29015
29157
  readonly response: z.ZodObject<{
29016
29158
  id: z.ZodString;
@@ -29531,6 +29673,11 @@ declare const foundationRoutes: {
29531
29673
  name: z.ZodNullable<z.ZodString>;
29532
29674
  role: z.ZodEnum<["owner", "admin", "editor", "viewer"]>;
29533
29675
  created_at: z.ZodString;
29676
+ source: z.ZodOptional<z.ZodEnum<["invited", "company"]>>;
29677
+ company_role: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "admin"]>>>;
29678
+ company_checked_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29679
+ direct_role: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "admin", "editor", "viewer"]>>>;
29680
+ inherited: z.ZodOptional<z.ZodBoolean>;
29534
29681
  }, "strip", z.ZodTypeAny, {
29535
29682
  id: string;
29536
29683
  email: string;
@@ -29538,6 +29685,11 @@ declare const foundationRoutes: {
29538
29685
  subject: string;
29539
29686
  created_at: string;
29540
29687
  role: "owner" | "admin" | "editor" | "viewer";
29688
+ source?: "invited" | "company" | undefined;
29689
+ company_role?: "owner" | "admin" | null | undefined;
29690
+ company_checked_at?: string | null | undefined;
29691
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
29692
+ inherited?: boolean | undefined;
29541
29693
  }, {
29542
29694
  id: string;
29543
29695
  email: string;
@@ -29545,6 +29697,11 @@ declare const foundationRoutes: {
29545
29697
  subject: string;
29546
29698
  created_at: string;
29547
29699
  role: "owner" | "admin" | "editor" | "viewer";
29700
+ source?: "invited" | "company" | undefined;
29701
+ company_role?: "owner" | "admin" | null | undefined;
29702
+ company_checked_at?: string | null | undefined;
29703
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
29704
+ inherited?: boolean | undefined;
29548
29705
  }>, "many">;
29549
29706
  next_cursor: z.ZodNullable<z.ZodString>;
29550
29707
  }, "strip", z.ZodTypeAny, {
@@ -29555,6 +29712,11 @@ declare const foundationRoutes: {
29555
29712
  subject: string;
29556
29713
  created_at: string;
29557
29714
  role: "owner" | "admin" | "editor" | "viewer";
29715
+ source?: "invited" | "company" | undefined;
29716
+ company_role?: "owner" | "admin" | null | undefined;
29717
+ company_checked_at?: string | null | undefined;
29718
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
29719
+ inherited?: boolean | undefined;
29558
29720
  }[];
29559
29721
  next_cursor: string | null;
29560
29722
  }, {
@@ -29565,6 +29727,11 @@ declare const foundationRoutes: {
29565
29727
  subject: string;
29566
29728
  created_at: string;
29567
29729
  role: "owner" | "admin" | "editor" | "viewer";
29730
+ source?: "invited" | "company" | undefined;
29731
+ company_role?: "owner" | "admin" | null | undefined;
29732
+ company_checked_at?: string | null | undefined;
29733
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
29734
+ inherited?: boolean | undefined;
29568
29735
  }[];
29569
29736
  next_cursor: string | null;
29570
29737
  }>;
@@ -29598,6 +29765,11 @@ declare const foundationRoutes: {
29598
29765
  name: z.ZodNullable<z.ZodString>;
29599
29766
  role: z.ZodEnum<["owner", "admin", "editor", "viewer"]>;
29600
29767
  created_at: z.ZodString;
29768
+ source: z.ZodOptional<z.ZodEnum<["invited", "company"]>>;
29769
+ company_role: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "admin"]>>>;
29770
+ company_checked_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29771
+ direct_role: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "admin", "editor", "viewer"]>>>;
29772
+ inherited: z.ZodOptional<z.ZodBoolean>;
29601
29773
  }, "strip", z.ZodTypeAny, {
29602
29774
  id: string;
29603
29775
  email: string;
@@ -29605,6 +29777,11 @@ declare const foundationRoutes: {
29605
29777
  subject: string;
29606
29778
  created_at: string;
29607
29779
  role: "owner" | "admin" | "editor" | "viewer";
29780
+ source?: "invited" | "company" | undefined;
29781
+ company_role?: "owner" | "admin" | null | undefined;
29782
+ company_checked_at?: string | null | undefined;
29783
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
29784
+ inherited?: boolean | undefined;
29608
29785
  }, {
29609
29786
  id: string;
29610
29787
  email: string;
@@ -29612,6 +29789,11 @@ declare const foundationRoutes: {
29612
29789
  subject: string;
29613
29790
  created_at: string;
29614
29791
  role: "owner" | "admin" | "editor" | "viewer";
29792
+ source?: "invited" | "company" | undefined;
29793
+ company_role?: "owner" | "admin" | null | undefined;
29794
+ company_checked_at?: string | null | undefined;
29795
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
29796
+ inherited?: boolean | undefined;
29615
29797
  }>;
29616
29798
  readonly status: 201;
29617
29799
  readonly access: "admin";
@@ -29641,6 +29823,11 @@ declare const foundationRoutes: {
29641
29823
  name: z.ZodNullable<z.ZodString>;
29642
29824
  role: z.ZodEnum<["owner", "admin", "editor", "viewer"]>;
29643
29825
  created_at: z.ZodString;
29826
+ source: z.ZodOptional<z.ZodEnum<["invited", "company"]>>;
29827
+ company_role: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "admin"]>>>;
29828
+ company_checked_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29829
+ direct_role: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "admin", "editor", "viewer"]>>>;
29830
+ inherited: z.ZodOptional<z.ZodBoolean>;
29644
29831
  }, "strip", z.ZodTypeAny, {
29645
29832
  id: string;
29646
29833
  email: string;
@@ -29648,6 +29835,11 @@ declare const foundationRoutes: {
29648
29835
  subject: string;
29649
29836
  created_at: string;
29650
29837
  role: "owner" | "admin" | "editor" | "viewer";
29838
+ source?: "invited" | "company" | undefined;
29839
+ company_role?: "owner" | "admin" | null | undefined;
29840
+ company_checked_at?: string | null | undefined;
29841
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
29842
+ inherited?: boolean | undefined;
29651
29843
  }, {
29652
29844
  id: string;
29653
29845
  email: string;
@@ -29655,6 +29847,11 @@ declare const foundationRoutes: {
29655
29847
  subject: string;
29656
29848
  created_at: string;
29657
29849
  role: "owner" | "admin" | "editor" | "viewer";
29850
+ source?: "invited" | "company" | undefined;
29851
+ company_role?: "owner" | "admin" | null | undefined;
29852
+ company_checked_at?: string | null | undefined;
29853
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
29854
+ inherited?: boolean | undefined;
29658
29855
  }>;
29659
29856
  readonly status: 200;
29660
29857
  readonly access: "admin";
@@ -29681,6 +29878,69 @@ declare const foundationRoutes: {
29681
29878
  readonly access: "admin";
29682
29879
  readonly phase: "S0";
29683
29880
  };
29881
+ /**
29882
+ * The dashboard states the signed-in person's owner and admin roles in
29883
+ * companies, and the service brings the member lists in line (see
29884
+ * `MemberCompanySync`). `dashboard` access: the dashboard's service token
29885
+ * and the person's subject, no workspace. An API key is refused, and so is
29886
+ * every trusted application: it is not in any `TRUSTED_APP_OPERATIONS` list
29887
+ * and the handler refuses an application once more by itself.
29888
+ */
29889
+ readonly 'members.syncCompanyRole': {
29890
+ readonly method: "POST";
29891
+ readonly path: "/v1/members/company-sync";
29892
+ readonly body: z.ZodObject<{
29893
+ email: z.ZodString;
29894
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29895
+ companies: z.ZodEffects<z.ZodArray<z.ZodObject<{
29896
+ company_id: z.ZodString;
29897
+ role: z.ZodEnum<["owner", "admin"]>;
29898
+ }, "strip", z.ZodTypeAny, {
29899
+ company_id: string;
29900
+ role: "owner" | "admin";
29901
+ }, {
29902
+ company_id: string;
29903
+ role: "owner" | "admin";
29904
+ }>, "many">, {
29905
+ company_id: string;
29906
+ role: "owner" | "admin";
29907
+ }[], {
29908
+ company_id: string;
29909
+ role: "owner" | "admin";
29910
+ }[]>;
29911
+ }, "strip", z.ZodTypeAny, {
29912
+ email: string;
29913
+ companies: {
29914
+ company_id: string;
29915
+ role: "owner" | "admin";
29916
+ }[];
29917
+ name?: string | null | undefined;
29918
+ }, {
29919
+ email: string;
29920
+ companies: {
29921
+ company_id: string;
29922
+ role: "owner" | "admin";
29923
+ }[];
29924
+ name?: string | null | undefined;
29925
+ }>;
29926
+ readonly response: z.ZodObject<{
29927
+ granted: z.ZodArray<z.ZodString, "many">;
29928
+ revoked: z.ZodArray<z.ZodString, "many">;
29929
+ unchanged: z.ZodArray<z.ZodString, "many">;
29930
+ }, "strip", z.ZodTypeAny, {
29931
+ unchanged: string[];
29932
+ granted: string[];
29933
+ revoked: string[];
29934
+ }, {
29935
+ unchanged: string[];
29936
+ granted: string[];
29937
+ revoked: string[];
29938
+ }>;
29939
+ readonly status: 200;
29940
+ readonly access: "dashboard";
29941
+ readonly phase: "S0";
29942
+ readonly statement: true;
29943
+ };
29684
29944
  readonly 'apiKeys.list': {
29685
29945
  readonly method: "GET";
29686
29946
  readonly path: "/v1/api-keys";
@@ -49340,7 +49600,7 @@ declare const inviteRoutes: {
49340
49600
  revoked_at: z.ZodNullable<z.ZodString>;
49341
49601
  created_at: z.ZodString;
49342
49602
  }, "strip", z.ZodTypeAny, {
49343
- status: "pending" | "accepted" | "revoked" | "expired";
49603
+ status: "pending" | "revoked" | "accepted" | "expired";
49344
49604
  id: string;
49345
49605
  email: string;
49346
49606
  created_at: string;
@@ -49353,7 +49613,7 @@ declare const inviteRoutes: {
49353
49613
  expires_at: string;
49354
49614
  accepted_at: string | null;
49355
49615
  }, {
49356
- status: "pending" | "accepted" | "revoked" | "expired";
49616
+ status: "pending" | "revoked" | "accepted" | "expired";
49357
49617
  id: string;
49358
49618
  email: string;
49359
49619
  created_at: string;
@@ -49369,7 +49629,7 @@ declare const inviteRoutes: {
49369
49629
  token: z.ZodString;
49370
49630
  }, "strip", z.ZodTypeAny, {
49371
49631
  invite: {
49372
- status: "pending" | "accepted" | "revoked" | "expired";
49632
+ status: "pending" | "revoked" | "accepted" | "expired";
49373
49633
  id: string;
49374
49634
  email: string;
49375
49635
  created_at: string;
@@ -49385,7 +49645,7 @@ declare const inviteRoutes: {
49385
49645
  token: string;
49386
49646
  }, {
49387
49647
  invite: {
49388
- status: "pending" | "accepted" | "revoked" | "expired";
49648
+ status: "pending" | "revoked" | "accepted" | "expired";
49389
49649
  id: string;
49390
49650
  email: string;
49391
49651
  created_at: string;
@@ -49413,11 +49673,11 @@ declare const inviteRoutes: {
49413
49673
  } & {
49414
49674
  status: z.ZodOptional<z.ZodEnum<["pending", "accepted", "revoked", "expired"]>>;
49415
49675
  }, "strip", z.ZodTypeAny, {
49416
- status?: "pending" | "accepted" | "revoked" | "expired" | undefined;
49676
+ status?: "pending" | "revoked" | "accepted" | "expired" | undefined;
49417
49677
  cursor?: string | undefined;
49418
49678
  limit?: number | undefined;
49419
49679
  }, {
49420
- status?: "pending" | "accepted" | "revoked" | "expired" | undefined;
49680
+ status?: "pending" | "revoked" | "accepted" | "expired" | undefined;
49421
49681
  cursor?: string | undefined;
49422
49682
  limit?: number | undefined;
49423
49683
  }>;
@@ -49442,7 +49702,7 @@ declare const inviteRoutes: {
49442
49702
  revoked_at: z.ZodNullable<z.ZodString>;
49443
49703
  created_at: z.ZodString;
49444
49704
  }, "strip", z.ZodTypeAny, {
49445
- status: "pending" | "accepted" | "revoked" | "expired";
49705
+ status: "pending" | "revoked" | "accepted" | "expired";
49446
49706
  id: string;
49447
49707
  email: string;
49448
49708
  created_at: string;
@@ -49455,7 +49715,7 @@ declare const inviteRoutes: {
49455
49715
  expires_at: string;
49456
49716
  accepted_at: string | null;
49457
49717
  }, {
49458
- status: "pending" | "accepted" | "revoked" | "expired";
49718
+ status: "pending" | "revoked" | "accepted" | "expired";
49459
49719
  id: string;
49460
49720
  email: string;
49461
49721
  created_at: string;
@@ -49471,7 +49731,7 @@ declare const inviteRoutes: {
49471
49731
  next_cursor: z.ZodNullable<z.ZodString>;
49472
49732
  }, "strip", z.ZodTypeAny, {
49473
49733
  data: {
49474
- status: "pending" | "accepted" | "revoked" | "expired";
49734
+ status: "pending" | "revoked" | "accepted" | "expired";
49475
49735
  id: string;
49476
49736
  email: string;
49477
49737
  created_at: string;
@@ -49487,7 +49747,7 @@ declare const inviteRoutes: {
49487
49747
  next_cursor: string | null;
49488
49748
  }, {
49489
49749
  data: {
49490
- status: "pending" | "accepted" | "revoked" | "expired";
49750
+ status: "pending" | "revoked" | "accepted" | "expired";
49491
49751
  id: string;
49492
49752
  email: string;
49493
49753
  created_at: string;
@@ -49536,7 +49796,7 @@ declare const inviteRoutes: {
49536
49796
  revoked_at: z.ZodNullable<z.ZodString>;
49537
49797
  created_at: z.ZodString;
49538
49798
  }, "strip", z.ZodTypeAny, {
49539
- status: "pending" | "accepted" | "revoked" | "expired";
49799
+ status: "pending" | "revoked" | "accepted" | "expired";
49540
49800
  id: string;
49541
49801
  email: string;
49542
49802
  created_at: string;
@@ -49549,7 +49809,7 @@ declare const inviteRoutes: {
49549
49809
  expires_at: string;
49550
49810
  accepted_at: string | null;
49551
49811
  }, {
49552
- status: "pending" | "accepted" | "revoked" | "expired";
49812
+ status: "pending" | "revoked" | "accepted" | "expired";
49553
49813
  id: string;
49554
49814
  email: string;
49555
49815
  created_at: string;
@@ -90733,7 +90993,7 @@ declare const routes: {
90733
90993
  revoked_at: z.ZodNullable<z.ZodString>;
90734
90994
  created_at: z.ZodString;
90735
90995
  }, "strip", z.ZodTypeAny, {
90736
- status: "pending" | "accepted" | "revoked" | "expired";
90996
+ status: "pending" | "revoked" | "accepted" | "expired";
90737
90997
  id: string;
90738
90998
  email: string;
90739
90999
  created_at: string;
@@ -90746,7 +91006,7 @@ declare const routes: {
90746
91006
  expires_at: string;
90747
91007
  accepted_at: string | null;
90748
91008
  }, {
90749
- status: "pending" | "accepted" | "revoked" | "expired";
91009
+ status: "pending" | "revoked" | "accepted" | "expired";
90750
91010
  id: string;
90751
91011
  email: string;
90752
91012
  created_at: string;
@@ -90762,7 +91022,7 @@ declare const routes: {
90762
91022
  token: z.ZodString;
90763
91023
  }, "strip", z.ZodTypeAny, {
90764
91024
  invite: {
90765
- status: "pending" | "accepted" | "revoked" | "expired";
91025
+ status: "pending" | "revoked" | "accepted" | "expired";
90766
91026
  id: string;
90767
91027
  email: string;
90768
91028
  created_at: string;
@@ -90778,7 +91038,7 @@ declare const routes: {
90778
91038
  token: string;
90779
91039
  }, {
90780
91040
  invite: {
90781
- status: "pending" | "accepted" | "revoked" | "expired";
91041
+ status: "pending" | "revoked" | "accepted" | "expired";
90782
91042
  id: string;
90783
91043
  email: string;
90784
91044
  created_at: string;
@@ -90806,11 +91066,11 @@ declare const routes: {
90806
91066
  } & {
90807
91067
  status: z.ZodOptional<z.ZodEnum<["pending", "accepted", "revoked", "expired"]>>;
90808
91068
  }, "strip", z.ZodTypeAny, {
90809
- status?: "pending" | "accepted" | "revoked" | "expired" | undefined;
91069
+ status?: "pending" | "revoked" | "accepted" | "expired" | undefined;
90810
91070
  cursor?: string | undefined;
90811
91071
  limit?: number | undefined;
90812
91072
  }, {
90813
- status?: "pending" | "accepted" | "revoked" | "expired" | undefined;
91073
+ status?: "pending" | "revoked" | "accepted" | "expired" | undefined;
90814
91074
  cursor?: string | undefined;
90815
91075
  limit?: number | undefined;
90816
91076
  }>;
@@ -90835,7 +91095,7 @@ declare const routes: {
90835
91095
  revoked_at: z.ZodNullable<z.ZodString>;
90836
91096
  created_at: z.ZodString;
90837
91097
  }, "strip", z.ZodTypeAny, {
90838
- status: "pending" | "accepted" | "revoked" | "expired";
91098
+ status: "pending" | "revoked" | "accepted" | "expired";
90839
91099
  id: string;
90840
91100
  email: string;
90841
91101
  created_at: string;
@@ -90848,7 +91108,7 @@ declare const routes: {
90848
91108
  expires_at: string;
90849
91109
  accepted_at: string | null;
90850
91110
  }, {
90851
- status: "pending" | "accepted" | "revoked" | "expired";
91111
+ status: "pending" | "revoked" | "accepted" | "expired";
90852
91112
  id: string;
90853
91113
  email: string;
90854
91114
  created_at: string;
@@ -90864,7 +91124,7 @@ declare const routes: {
90864
91124
  next_cursor: z.ZodNullable<z.ZodString>;
90865
91125
  }, "strip", z.ZodTypeAny, {
90866
91126
  data: {
90867
- status: "pending" | "accepted" | "revoked" | "expired";
91127
+ status: "pending" | "revoked" | "accepted" | "expired";
90868
91128
  id: string;
90869
91129
  email: string;
90870
91130
  created_at: string;
@@ -90880,7 +91140,7 @@ declare const routes: {
90880
91140
  next_cursor: string | null;
90881
91141
  }, {
90882
91142
  data: {
90883
- status: "pending" | "accepted" | "revoked" | "expired";
91143
+ status: "pending" | "revoked" | "accepted" | "expired";
90884
91144
  id: string;
90885
91145
  email: string;
90886
91146
  created_at: string;
@@ -90929,7 +91189,7 @@ declare const routes: {
90929
91189
  revoked_at: z.ZodNullable<z.ZodString>;
90930
91190
  created_at: z.ZodString;
90931
91191
  }, "strip", z.ZodTypeAny, {
90932
- status: "pending" | "accepted" | "revoked" | "expired";
91192
+ status: "pending" | "revoked" | "accepted" | "expired";
90933
91193
  id: string;
90934
91194
  email: string;
90935
91195
  created_at: string;
@@ -90942,7 +91202,7 @@ declare const routes: {
90942
91202
  expires_at: string;
90943
91203
  accepted_at: string | null;
90944
91204
  }, {
90945
- status: "pending" | "accepted" | "revoked" | "expired";
91205
+ status: "pending" | "revoked" | "accepted" | "expired";
90946
91206
  id: string;
90947
91207
  email: string;
90948
91208
  created_at: string;
@@ -106258,7 +106518,7 @@ declare const routes: {
106258
106518
  email: string;
106259
106519
  name?: string | null | undefined;
106260
106520
  }>;
106261
- company_id: z.ZodOptional<z.ZodString>;
106521
+ company_id: z.ZodString;
106262
106522
  }, "strip", z.ZodTypeAny, {
106263
106523
  name: string;
106264
106524
  slug: string;
@@ -106266,6 +106526,7 @@ declare const routes: {
106266
106526
  email: string;
106267
106527
  name?: string | null | undefined;
106268
106528
  };
106529
+ company_id: string;
106269
106530
  settings?: {
106270
106531
  asset_policy?: "any" | "service_only" | undefined;
106271
106532
  default_locale?: string | undefined;
@@ -106275,7 +106536,6 @@ declare const routes: {
106275
106536
  merge_defaults?: Record<string, string | number | boolean> | undefined;
106276
106537
  default_timezone?: string | null | undefined;
106277
106538
  } | undefined;
106278
- company_id?: string | undefined;
106279
106539
  }, {
106280
106540
  name: string;
106281
106541
  slug: string;
@@ -106283,6 +106543,7 @@ declare const routes: {
106283
106543
  email: string;
106284
106544
  name?: string | null | undefined;
106285
106545
  };
106546
+ company_id: string;
106286
106547
  settings?: {
106287
106548
  asset_policy?: "any" | "service_only" | undefined;
106288
106549
  default_locale?: string | undefined;
@@ -106292,7 +106553,6 @@ declare const routes: {
106292
106553
  merge_defaults?: Record<string, string | number | boolean> | undefined;
106293
106554
  default_timezone?: string | null | undefined;
106294
106555
  } | undefined;
106295
- company_id?: string | undefined;
106296
106556
  }>;
106297
106557
  readonly response: z.ZodObject<{
106298
106558
  id: z.ZodString;
@@ -106813,6 +107073,11 @@ declare const routes: {
106813
107073
  name: z.ZodNullable<z.ZodString>;
106814
107074
  role: z.ZodEnum<["owner", "admin", "editor", "viewer"]>;
106815
107075
  created_at: z.ZodString;
107076
+ source: z.ZodOptional<z.ZodEnum<["invited", "company"]>>;
107077
+ company_role: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "admin"]>>>;
107078
+ company_checked_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107079
+ direct_role: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "admin", "editor", "viewer"]>>>;
107080
+ inherited: z.ZodOptional<z.ZodBoolean>;
106816
107081
  }, "strip", z.ZodTypeAny, {
106817
107082
  id: string;
106818
107083
  email: string;
@@ -106820,6 +107085,11 @@ declare const routes: {
106820
107085
  subject: string;
106821
107086
  created_at: string;
106822
107087
  role: "owner" | "admin" | "editor" | "viewer";
107088
+ source?: "invited" | "company" | undefined;
107089
+ company_role?: "owner" | "admin" | null | undefined;
107090
+ company_checked_at?: string | null | undefined;
107091
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
107092
+ inherited?: boolean | undefined;
106823
107093
  }, {
106824
107094
  id: string;
106825
107095
  email: string;
@@ -106827,6 +107097,11 @@ declare const routes: {
106827
107097
  subject: string;
106828
107098
  created_at: string;
106829
107099
  role: "owner" | "admin" | "editor" | "viewer";
107100
+ source?: "invited" | "company" | undefined;
107101
+ company_role?: "owner" | "admin" | null | undefined;
107102
+ company_checked_at?: string | null | undefined;
107103
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
107104
+ inherited?: boolean | undefined;
106830
107105
  }>, "many">;
106831
107106
  next_cursor: z.ZodNullable<z.ZodString>;
106832
107107
  }, "strip", z.ZodTypeAny, {
@@ -106837,6 +107112,11 @@ declare const routes: {
106837
107112
  subject: string;
106838
107113
  created_at: string;
106839
107114
  role: "owner" | "admin" | "editor" | "viewer";
107115
+ source?: "invited" | "company" | undefined;
107116
+ company_role?: "owner" | "admin" | null | undefined;
107117
+ company_checked_at?: string | null | undefined;
107118
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
107119
+ inherited?: boolean | undefined;
106840
107120
  }[];
106841
107121
  next_cursor: string | null;
106842
107122
  }, {
@@ -106847,6 +107127,11 @@ declare const routes: {
106847
107127
  subject: string;
106848
107128
  created_at: string;
106849
107129
  role: "owner" | "admin" | "editor" | "viewer";
107130
+ source?: "invited" | "company" | undefined;
107131
+ company_role?: "owner" | "admin" | null | undefined;
107132
+ company_checked_at?: string | null | undefined;
107133
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
107134
+ inherited?: boolean | undefined;
106850
107135
  }[];
106851
107136
  next_cursor: string | null;
106852
107137
  }>;
@@ -106880,6 +107165,11 @@ declare const routes: {
106880
107165
  name: z.ZodNullable<z.ZodString>;
106881
107166
  role: z.ZodEnum<["owner", "admin", "editor", "viewer"]>;
106882
107167
  created_at: z.ZodString;
107168
+ source: z.ZodOptional<z.ZodEnum<["invited", "company"]>>;
107169
+ company_role: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "admin"]>>>;
107170
+ company_checked_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107171
+ direct_role: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "admin", "editor", "viewer"]>>>;
107172
+ inherited: z.ZodOptional<z.ZodBoolean>;
106883
107173
  }, "strip", z.ZodTypeAny, {
106884
107174
  id: string;
106885
107175
  email: string;
@@ -106887,6 +107177,11 @@ declare const routes: {
106887
107177
  subject: string;
106888
107178
  created_at: string;
106889
107179
  role: "owner" | "admin" | "editor" | "viewer";
107180
+ source?: "invited" | "company" | undefined;
107181
+ company_role?: "owner" | "admin" | null | undefined;
107182
+ company_checked_at?: string | null | undefined;
107183
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
107184
+ inherited?: boolean | undefined;
106890
107185
  }, {
106891
107186
  id: string;
106892
107187
  email: string;
@@ -106894,6 +107189,11 @@ declare const routes: {
106894
107189
  subject: string;
106895
107190
  created_at: string;
106896
107191
  role: "owner" | "admin" | "editor" | "viewer";
107192
+ source?: "invited" | "company" | undefined;
107193
+ company_role?: "owner" | "admin" | null | undefined;
107194
+ company_checked_at?: string | null | undefined;
107195
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
107196
+ inherited?: boolean | undefined;
106897
107197
  }>;
106898
107198
  readonly status: 201;
106899
107199
  readonly access: "admin";
@@ -106923,6 +107223,11 @@ declare const routes: {
106923
107223
  name: z.ZodNullable<z.ZodString>;
106924
107224
  role: z.ZodEnum<["owner", "admin", "editor", "viewer"]>;
106925
107225
  created_at: z.ZodString;
107226
+ source: z.ZodOptional<z.ZodEnum<["invited", "company"]>>;
107227
+ company_role: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "admin"]>>>;
107228
+ company_checked_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107229
+ direct_role: z.ZodOptional<z.ZodNullable<z.ZodEnum<["owner", "admin", "editor", "viewer"]>>>;
107230
+ inherited: z.ZodOptional<z.ZodBoolean>;
106926
107231
  }, "strip", z.ZodTypeAny, {
106927
107232
  id: string;
106928
107233
  email: string;
@@ -106930,6 +107235,11 @@ declare const routes: {
106930
107235
  subject: string;
106931
107236
  created_at: string;
106932
107237
  role: "owner" | "admin" | "editor" | "viewer";
107238
+ source?: "invited" | "company" | undefined;
107239
+ company_role?: "owner" | "admin" | null | undefined;
107240
+ company_checked_at?: string | null | undefined;
107241
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
107242
+ inherited?: boolean | undefined;
106933
107243
  }, {
106934
107244
  id: string;
106935
107245
  email: string;
@@ -106937,6 +107247,11 @@ declare const routes: {
106937
107247
  subject: string;
106938
107248
  created_at: string;
106939
107249
  role: "owner" | "admin" | "editor" | "viewer";
107250
+ source?: "invited" | "company" | undefined;
107251
+ company_role?: "owner" | "admin" | null | undefined;
107252
+ company_checked_at?: string | null | undefined;
107253
+ direct_role?: "owner" | "admin" | "editor" | "viewer" | null | undefined;
107254
+ inherited?: boolean | undefined;
106940
107255
  }>;
106941
107256
  readonly status: 200;
106942
107257
  readonly access: "admin";
@@ -106963,6 +107278,69 @@ declare const routes: {
106963
107278
  readonly access: "admin";
106964
107279
  readonly phase: "S0";
106965
107280
  };
107281
+ /**
107282
+ * The dashboard states the signed-in person's owner and admin roles in
107283
+ * companies, and the service brings the member lists in line (see
107284
+ * `MemberCompanySync`). `dashboard` access: the dashboard's service token
107285
+ * and the person's subject, no workspace. An API key is refused, and so is
107286
+ * every trusted application: it is not in any `TRUSTED_APP_OPERATIONS` list
107287
+ * and the handler refuses an application once more by itself.
107288
+ */
107289
+ readonly 'members.syncCompanyRole': {
107290
+ readonly method: "POST";
107291
+ readonly path: "/v1/members/company-sync";
107292
+ readonly body: z.ZodObject<{
107293
+ email: z.ZodString;
107294
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107295
+ companies: z.ZodEffects<z.ZodArray<z.ZodObject<{
107296
+ company_id: z.ZodString;
107297
+ role: z.ZodEnum<["owner", "admin"]>;
107298
+ }, "strip", z.ZodTypeAny, {
107299
+ company_id: string;
107300
+ role: "owner" | "admin";
107301
+ }, {
107302
+ company_id: string;
107303
+ role: "owner" | "admin";
107304
+ }>, "many">, {
107305
+ company_id: string;
107306
+ role: "owner" | "admin";
107307
+ }[], {
107308
+ company_id: string;
107309
+ role: "owner" | "admin";
107310
+ }[]>;
107311
+ }, "strip", z.ZodTypeAny, {
107312
+ email: string;
107313
+ companies: {
107314
+ company_id: string;
107315
+ role: "owner" | "admin";
107316
+ }[];
107317
+ name?: string | null | undefined;
107318
+ }, {
107319
+ email: string;
107320
+ companies: {
107321
+ company_id: string;
107322
+ role: "owner" | "admin";
107323
+ }[];
107324
+ name?: string | null | undefined;
107325
+ }>;
107326
+ readonly response: z.ZodObject<{
107327
+ granted: z.ZodArray<z.ZodString, "many">;
107328
+ revoked: z.ZodArray<z.ZodString, "many">;
107329
+ unchanged: z.ZodArray<z.ZodString, "many">;
107330
+ }, "strip", z.ZodTypeAny, {
107331
+ unchanged: string[];
107332
+ granted: string[];
107333
+ revoked: string[];
107334
+ }, {
107335
+ unchanged: string[];
107336
+ granted: string[];
107337
+ revoked: string[];
107338
+ }>;
107339
+ readonly status: 200;
107340
+ readonly access: "dashboard";
107341
+ readonly phase: "S0";
107342
+ readonly statement: true;
107343
+ };
106966
107344
  readonly 'apiKeys.list': {
106967
107345
  readonly method: "GET";
106968
107346
  readonly path: "/v1/api-keys";
@@ -107336,7 +107714,8 @@ type RouteResponse<K extends OperationId> = Infer<Routes[K]['response']>;
107336
107714
  /**
107337
107715
  * Every mutating call accepts an `Idempotency-Key`; reads never need one. The
107338
107716
  * SDK sends a key on every non-GET request so a retry after a network failure can
107339
- * never apply twice.
107717
+ * never apply twice. The exception is a `statement` (see `RouteDef`), which is
107718
+ * safe to repeat by what it is.
107340
107719
  */
107341
107720
  declare function acceptsIdempotencyKey(route: RouteDef): boolean;
107342
107721
  /** Fills the `:name` segments of a route path, URL-encoding each value. */
@@ -107353,4 +107732,4 @@ declare function matchRoute(method: HttpMethod, pathname: string): {
107353
107732
  params: Record<string, string>;
107354
107733
  } | null;
107355
107734
 
107356
- export { AB_TEST_STATUSES, AB_WINNER_METRICS, API_KEY_SCOPES, API_VERSION_PREFIX, ASSET_CONTENT_TYPES, ASSET_POLICIES, ASSET_UPLOAD_FIELD, AUDIT_ACTIONS, AUTHORIZATION_HEADER, AUTOMATION_DATE_TRIGGER_KINDS, AUTOMATION_END_REASONS, AUTOMATION_ENTRY_REFUSALS, AUTOMATION_FILTER_FIELD_OPERATORS, AUTOMATION_FILTER_FIELD_PATTERN, AUTOMATION_ISSUE_CODES, AUTOMATION_STATUSES, AUTOMATION_STEP_KINDS, AUTOMATION_TRIGGER_KINDS, AUTOMATION_WAIT_REASONS, AbTestConfig, AbTestState, AbVariant, AbWinnerRequest, ApiKey, ApiKeyCreate, ApiKeyCreated, ApiKeyScope, Asset, AssetContentType, AssetHost, AssetImport, AssetPolicy, AuditAction, AuditActor, AuditEntry, AuditQuery, Automation, AutomationCounts, AutomationCreate, type AutomationDateTriggerKind, AutomationDuplicateRequest, AutomationEndReason, AutomationEnrollRequest, AutomationEnrollResult, AutomationEnrollment, AutomationEntryRefusal, AutomationExitRunRequest, AutomationFilter, AutomationFilterCondition, AutomationFilterField, AutomationFlow, AutomationIssue, AutomationIssueCode, AutomationJourney, AutomationListQuery, AutomationPublishMove, AutomationPublishRequest, AutomationPublishResult, AutomationReport, AutomationRun, AutomationRunCompletedData, AutomationRunExitedData, AutomationRunFailedData, AutomationRunListQuery, AutomationRunParams, AutomationRunStartedData, AutomationRunStatus, AutomationSettings, AutomationStatus, AutomationStep, AutomationStepExecution, AutomationStepKind, AutomationStepParams, AutomationStepReport, AutomationSummary, AutomationTestEmailRequest, AutomationTrigger, AutomationTriggerKind, AutomationUpdate, AutomationValidateRequest, AutomationValidation, AutomationWaitReason, AutomationWebhookData, AutomationWithFlow, BEARER_PREFIX, BILLING_NOT_CONFIGURED_REASON, BoundedAutomationFilter, BoundedSegmentFilter, CONTACT_PROPERTY_TYPES, CatalogPlan, CheckoutRequest, CheckoutSession, CompanyId, CompileMessage, CompileRequest, CompileResult, ConditionStep, Contact, ContactAutomationListQuery, ContactAutomationRun, ContactBouncedData, ContactErased, ContactListQuery, ContactPropertyDefinition, ContactPropertyKey, ContactPropertyParams, ContactPropertyType, ContactResubscribedData, ContactSubscribedData, ContactTaggedData, ContactUnsubscribedData, ContactUpdatedData, ContactUpsert, ContactUpsertResult, DATE_PASSED_ANSWERS, DEFAULT_INVITE_TTL_DAYS, DEFAULT_PAGE_LIMIT, DOCUMENT_SCHEMA_VERSIONS, DateOnly, DatePassedAnswer, DelayStep, DocumentSchemaVersion, type DraftInsertionProblem, EDITABLE_MAILING_STATUSES, ERROR_CODES, ERROR_STATUS, EXPORT_CONTENT_TYPES, EXPORT_FORMATS, EXPORT_WARNINGS_HEADER, EXPORT_WARNING_COUNT_HEADER, type EditableLanguage, Email, EmailStep, EmailStepLanguage, ErrorBody, type ErrorCode, ErrorCodeSchema, Event, EventCreate, EventListQuery, EventName, ExportFormat, FILTER_FIELD_OPERATORS, FILTER_OPERATORS, FilterCondition, FilterField, type FilterLeafProblem, FilterOperator, GotoStep, HEALTH_PATH, HOSTED_PAGE_LOCALES, type HttpMethod, ICLOUD_SMTP_POLICY, IDEMPOTENCY_KEY_HEADER, IDEMPOTENCY_KEY_MAX_LENGTH, IDEMPOTENCY_KEY_RETENTION_HOURS, IMPORT_FILE_FIELD, IMPORT_ROW_OUTCOMES, IMPORT_SKIP_REASONS, IMPORT_STATUSES, IMPORT_TERMINAL_STATUSES, INSERTION_PROBLEM_REASONS, INSERTION_TEXT_SLOTS, INVITE_REFUSAL_REASONS, INVITE_STATUSES, Id, IdParams, ImportColumnMapping, ImportCommitRequest, ImportFinishedData, ImportJob, ImportMappingRequest, ImportReport, ImportRow, ImportRowListQuery, ImportRowOutcome, ImportSkipReason, ImportStatus, ImportWarning, ImportedAsset, Insertion, InsertionChoice, InsertionChoiceKey, type InsertionChoiceMade, InsertionChoices, type InsertionEdit, InsertionName, type InsertionProblem, type InsertionProblemReason, InsertionText, Insertions, Invite, InviteAccept, InviteAccepted, InviteCreate, InviteCreated, InviteListQuery, type InviteRefusalReason, InviteStatus, JsonValue, LETTER_ONLY_MERGE_FIELDS, LETTER_RECIPIENT_REFUSAL, LIST_UNSUBSCRIBE_POST_VALUE, LOCALE_TAG_PATTERN, type LanguageDrafts, type LanguageTab, LocaleTag, MAILING_ACTIONS, MAILING_KINDS, MAILING_STATUSES, MAILING_TRANSITIONS, MAX_ALLOWED_ASSET_HOSTS, MAX_ASSET_BYTES, MAX_DELAY_SECONDS, MAX_DOCUMENT_BYTES, MAX_ENGAGEMENT_DAYS, MAX_EXPORT_WARNINGS_HEADER_LENGTH, MAX_FILTER_DEPTH, MAX_IMPORTED_REMOTE_IMAGES, MAX_IMPORT_BYTES, MAX_IMPORT_ROWS, MAX_IMPORT_URL_LENGTH, MAX_INSERTIONS, MAX_INSERTION_CHOICES, MAX_INSERTION_TEXT_LENGTH, MAX_INVITE_TTL_DAYS, MAX_IN_LIST, MAX_LETTER_RECIPIENTS, MAX_MERGE_DEFAULTS, MAX_MERGE_DEFAULT_LENGTH, MAX_MJML_DEPTH, MAX_MJML_ELEMENTS, MAX_MJML_IMPORT_BYTES, MAX_PAGE_LIMIT, MAX_PREHEADER_LENGTH, MAX_RECIPIENTS_PER_BATCH, MAX_RE_ENTRY_COOLDOWN_SECONDS, MAX_SAVED_SECTIONS, MAX_SPLIT_BRANCHES, MAX_STEPS, MAX_STEP_VISITS, MAX_SUBJECT_LENGTH, MAX_TEMPLATE_INPUTS, MAX_TEMPLATE_INPUTS_APP_LENGTH, MAX_TEMPLATE_INPUTS_SEEN, MAX_TEMPLATE_INPUT_EXAMPLE_LENGTH, MAX_TEMPLATE_INPUT_LABEL_LENGTH, MAX_TEMPLATE_INPUT_NOTE_LENGTH, MAX_TEMPLATE_INPUT_VALUES, MAX_TEMPLATE_TRANSLATIONS, MAX_TRIGGERS, MEMBER_ROLES, MERGE_FIELD_PATTERN, MESSAGE_OUTCOMES, MIN_SPLIT_BRANCHES, MJML_IMPORT_REFUSALS, Mailing, MailingAbWinnerSelectedData, MailingAction, MailingActionRequest, MailingAnalytics, MailingAudienceFromSegment, MailingCounts, MailingCreate, MailingExportQuery, MailingFinishedData, MailingKind, MailingLanguage, MailingLanguageReport, MailingLanguageStatus, MailingListQuery, MailingMerge, MailingMetadata, MailingResolveRequest, MailingResolveResult, MailingRetryFailedRequest, MailingScheduleFailedData, MailingScheduleRequest, MailingScheduledData, MailingSendRequest, MailingStartedData, MailingStatus, MailingSummary, MailingTestRequest, MailingTestResult, MailingUpdate, Member, MemberCreate, MemberRole, MemberUpdate, MergeDefaultValue, MergeDefaults, MergeFieldName, type MergeFieldUse, type MergeValue, Message, MessageFailedData, MessageListQuery, MessageOutcome, MessageSentData, MessageSummary, MessageValues, type MissingInsertionText, type MjmlImportRefusal, NAME_ON_BROADCAST_REFUSAL, NotifyRecipients, NotifyStep, ON_BEHALF_OF_HEADER, ON_BEHALF_OF_MAX_LENGTH, OffsetDays, Ok, type OperationId, PLAN_FEATURES, PLAN_IDS, PREVIEW_EMPTY, PREVIEW_FILLED, PROVIDER_KINDS, type Page, PageQuery, type Personalization, type Phase, Plan, type PlanFeature, PlanFeatures, PlanId, PlanLimits, PortalRequest, PortalSession, type PreviewControl, Properties, Provider, ProviderCreate, ProviderEvents, ProviderEventsSecret, ProviderKind, ProviderPolicy, ProviderRejections, ProviderUpdate, ProviderUsage, ProviderVerifyResult, QuietHours, RECIPIENT_REJECTIONS, RECIPIENT_STATUSES, REQUEST_ID_HEADER, RESEND_EVENT_TYPES, RESERVED_MERGE_FIELDS, RESOLVE_PROBLEMS, RESOLVE_REJECTIONS, RETRYABLE_ERRORS, RETRY_AFTER_HEADER, RE_ENTRY_MODES, ReEntryMode, Recipient, RecipientBatch, RecipientBatchResult, RecipientInput, RecipientListQuery, RecipientStatus, RemoteImage, type RenamedPlacement, ResendSigningSecret, type ReservedMergeField, ResolveProblem, ResolvedRecipient, ResolvedValue, type RouteAccess, type RouteBody, type RouteDef, type RouteParams, type RouteQuery, type RouteResponse, type Routes, SERVICE_FILLED_MERGE_FIELDS, SIGNUP_FORM_FIELDS, SKIP_REASONS, SMTP_SECURITY, SUBJECT_HEADER, SUPPRESSION_REASONS, type SaveDemotion, SavedSection, SavedSectionBody, SavedSectionCreate, SavedSectionUpdate, Segment, SegmentCreate, SegmentFilter, SegmentPreview, SegmentPreviewRequest, SignupForm, SignupFormCreate, SignupFormEmbed, SignupFormTranslation, SignupSubmission, SkipReason, Slug, SplitBranchKey, SplitStep, StepId, type StepTarget, Subscription, Suppression, SuppressionCreate, SuppressionListQuery, SuppressionReason, TEMPLATE_INPUT_KINDS, TEMPLATE_INPUT_PROBLEM_REASONS, TEMPLATE_LANGUAGE_STATUSES, TEMPLATE_SORTS, TEMPLATE_SORT_DEFAULT_ORDER, TERMINAL_MAILING_STATUSES, TRANSACTIONAL_BLOCKING_REASONS, TRANSACTIONAL_NEEDS_LETTER_REFUSAL, TRANSACTIONAL_NEEDS_TEMPLATE_LOCALE_REFUSAL, TRANSACTIONAL_NOT_ALLOWED_REFUSAL, TRANSACTIONAL_UNSUBSCRIBE_URL_REFUSAL, TRUSTED_APPS, TRUSTED_APP_OPERATIONS, Tag, TagAssignment, TagCreate, Template, TemplateCompileRequest, TemplateCreate, TemplateCreatedData, TemplateDeleteQuery, TemplateDeletedData, TemplateDocument, TemplateExportQuery, TemplateImport, TemplateImportPreview, TemplateImportPreviewRequest, TemplateImportResult, TemplateInput, type TemplateInputKind, TemplateInputMap, TemplateInputName, type TemplateInputProblem, type TemplateInputProblemReason, TemplateInputSeen, TemplateInputSource, TemplateInputValue, TemplateInputs, TemplateInputsDeclaration, TemplateInputsDeclared, TemplateInputsSeen, TemplateLanguageStatus, TemplateListQuery, TemplatePreheader, type TemplateSort, TemplateSubject, TemplateSummary, TemplateTranslation, TemplateTranslations, TemplateUpdate, TemplateUpdatedData, TemplateVersion, TemplateVersionParams, TimeOfDay, Timestamp, TimezoneName, Topic, TopicCreate, TopicUpdate, TrackingSettings, TranslationInsertion, TranslationInsertions, TrustedApp, UNSUBSCRIBE_PATH_PREFIX, UNSUBSCRIBE_SOURCES, USAGE_METRICS, USAGE_WARNING_HEADER, USAGE_WARNING_RATIO, UnfilledLink, type UnsubscribeToken, type UnsubscribeTokenClaims, Usage, UsageMetric, UsageWarning, type UsageWarningHeaderEntry, VALUE_LAYERS, type ValidationContext, ValidationIssue, ValueLayer, type ValueSources, VariantAnalytics, type VerifyWebhookInput, WEBHOOK_DELIVERY_STATUSES, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_EVENT_TYPES, WEBHOOK_MAX_ATTEMPTS, WEBHOOK_RETRY_DELAYS_SECONDS, WEBHOOK_SECRET_PREFIX, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_SIGNATURE_VERSION, WEBHOOK_TIMESTAMP_HEADER, WEBHOOK_TOLERANCE_SECONDS, WORKSPACE_HEADER, WebhookDelivery, WebhookDeliveryListQuery, WebhookDeliveryParams, WebhookDeliveryStatus, WebhookEndpoint, WebhookEndpointCreate, WebhookEndpointUpdate, WebhookEndpointWithSecret, WebhookEvent, type WebhookEventOf, WebhookEventType, WebhookStep, WebhookUrl, type WebhookVerifyFailure, type WebhookVerifyResult, Weekday, Workspace, WorkspaceCreate, WorkspaceMembership, WorkspaceMove, WorkspaceSettings, WorkspaceUpdate, acceptsIdempotencyKey, addInsertion, addInsertionChoice, addLanguageDraft, alignTranslationInsertions, alwaysWaits, automationFilterFamily, automationRoutes, billingRoutes, buildPath, buildTemplatePatch, canTransition, canonicalLocale, choiceKeyProblem, chooseInsertion, cycles, defaultPreviewPick, defaultSettings, demoteForSave, demotedBySave, describeMissingTexts, draftDocument, draftInsertionProblems, draftsDirty, draftsFromTemplate, draftsPatch, editInsertionText, editLanguageDraft, editMainInsertionText, editMainInsertions, effectivePreviewPicks, emptyFlow, emptyLinkValues, errorBody, escapeMergeHtml, exportFilename, filterConditions, filterDepth, filterFieldFamily, filterLeafProblem, findMergeFields, formatExportWarningsHeader, formatUsageWarningHeader, foundationRoutes, insertionByProblem, insertionChoices, insertionCoverage, insertionInputs, insertionNameProblem, insertionProblems, insertionRefusalHint, insertionSlotLabel, insertionTextSlots, insertionTokens, insertionValue, inviteRoutes, isDayEntirelyPast, isPublishable, isRetryableError, keepLanguageDocument, languageInsertions, languageName, languageTabs, letterOnlyValues, linkTokens, mainInsertionText, matchLocale, matchRoute, missingInsertionTexts, missingRequiredMergeFields, normalizeChoiceKey, nowSeconds, operationsWithAccess, ownEntry, page, parseExportWarningsHeader, parseUsageWarningHeader, personalizeHtml, personalizeText, placementProblems, platformRoutes, previewControls, previewInsertions, previewPersonalization, primaryLanguage, printedFields, rawMergeValue, reachable, readyWithoutInsertions, readyWithoutSubject, rebaseDrafts, removeInsertion, removeInsertionChoice, removeLanguageDraft, renameInsertion, renameInsertionChecked, renameInsertionChoice, renameInsertionChoiceChecked, renameInsertionEverywhere, renameInsertionPlacements, renameTokenInDocument, renameTokenInText, resolveInsertions, resolveValue, restorePatch, routes, sameJson, sampleMergeValue, saveDemotions, sendingRoutes, setInsertionBy, setInsertionFilled, setLanguageStatus, signWebhook, statusForError, stepTargets, storedTemplateLine, stronglyConnected, templateInputDrift, templateInputProblems, templateRoutes, testGroupSize, tightLoops, timingSafeEqualString, translationInsertionProblems, translationTextFromInput, triggerKey, trustedAppMayCall, unknownRefusedInsertions, unplacedInsertions, validateAutomation, valueNames, valuesRead, verifyWebhook };
107735
+ export { AB_TEST_STATUSES, AB_WINNER_METRICS, API_KEY_SCOPES, API_VERSION_PREFIX, ASSET_CONTENT_TYPES, ASSET_POLICIES, ASSET_UPLOAD_FIELD, AUDIT_ACTIONS, AUTHORIZATION_HEADER, AUTOMATION_DATE_TRIGGER_KINDS, AUTOMATION_END_REASONS, AUTOMATION_ENTRY_REFUSALS, AUTOMATION_FILTER_FIELD_OPERATORS, AUTOMATION_FILTER_FIELD_PATTERN, AUTOMATION_ISSUE_CODES, AUTOMATION_STATUSES, AUTOMATION_STEP_KINDS, AUTOMATION_TRIGGER_KINDS, AUTOMATION_WAIT_REASONS, AbTestConfig, AbTestState, AbVariant, AbWinnerRequest, ApiKey, ApiKeyCreate, ApiKeyCreated, ApiKeyScope, Asset, AssetContentType, AssetHost, AssetImport, AssetPolicy, AuditAction, AuditActor, AuditEntry, AuditQuery, Automation, AutomationCounts, AutomationCreate, type AutomationDateTriggerKind, AutomationDuplicateRequest, AutomationEndReason, AutomationEnrollRequest, AutomationEnrollResult, AutomationEnrollment, AutomationEntryRefusal, AutomationExitRunRequest, AutomationFilter, AutomationFilterCondition, AutomationFilterField, AutomationFlow, AutomationIssue, AutomationIssueCode, AutomationJourney, AutomationListQuery, AutomationPublishMove, AutomationPublishRequest, AutomationPublishResult, AutomationReport, AutomationRun, AutomationRunCompletedData, AutomationRunExitedData, AutomationRunFailedData, AutomationRunListQuery, AutomationRunParams, AutomationRunStartedData, AutomationRunStatus, AutomationSettings, AutomationStatus, AutomationStep, AutomationStepExecution, AutomationStepKind, AutomationStepParams, AutomationStepReport, AutomationSummary, AutomationTestEmailRequest, AutomationTrigger, AutomationTriggerKind, AutomationUpdate, AutomationValidateRequest, AutomationValidation, AutomationWaitReason, AutomationWebhookData, AutomationWithFlow, BEARER_PREFIX, BILLING_NOT_CONFIGURED_REASON, BoundedAutomationFilter, BoundedSegmentFilter, COMPANY_GRANT_ROLES, COMPANY_ROLE_MAX_AGE_HOURS, CONTACT_PROPERTY_TYPES, CatalogPlan, CheckoutRequest, CheckoutSession, CompanyGrantRole, CompanyId, CompileMessage, CompileRequest, CompileResult, ConditionStep, Contact, ContactAutomationListQuery, ContactAutomationRun, ContactBouncedData, ContactErased, ContactListQuery, ContactPropertyDefinition, ContactPropertyKey, ContactPropertyParams, ContactPropertyType, ContactResubscribedData, ContactSubscribedData, ContactTaggedData, ContactUnsubscribedData, ContactUpdatedData, ContactUpsert, ContactUpsertResult, DATE_PASSED_ANSWERS, DEFAULT_INVITE_TTL_DAYS, DEFAULT_PAGE_LIMIT, DOCUMENT_SCHEMA_VERSIONS, DateOnly, DatePassedAnswer, DelayStep, DocumentSchemaVersion, type DraftInsertionProblem, EDITABLE_MAILING_STATUSES, ERROR_CODES, ERROR_STATUS, EXPORT_CONTENT_TYPES, EXPORT_FORMATS, EXPORT_WARNINGS_HEADER, EXPORT_WARNING_COUNT_HEADER, type EditableLanguage, Email, EmailStep, EmailStepLanguage, ErrorBody, type ErrorCode, ErrorCodeSchema, Event, EventCreate, EventListQuery, EventName, ExportFormat, FILTER_FIELD_OPERATORS, FILTER_OPERATORS, FilterCondition, FilterField, type FilterLeafProblem, FilterOperator, GotoStep, HEALTH_PATH, HOSTED_PAGE_LOCALES, type HttpMethod, ICLOUD_SMTP_POLICY, IDEMPOTENCY_KEY_HEADER, IDEMPOTENCY_KEY_MAX_LENGTH, IDEMPOTENCY_KEY_RETENTION_HOURS, IMPORT_FILE_FIELD, IMPORT_ROW_OUTCOMES, IMPORT_SKIP_REASONS, IMPORT_STATUSES, IMPORT_TERMINAL_STATUSES, INSERTION_PROBLEM_REASONS, INSERTION_TEXT_SLOTS, INVITE_REFUSAL_REASONS, INVITE_STATUSES, Id, IdParams, ImportColumnMapping, ImportCommitRequest, ImportFinishedData, ImportJob, ImportMappingRequest, ImportReport, ImportRow, ImportRowListQuery, ImportRowOutcome, ImportSkipReason, ImportStatus, ImportWarning, ImportedAsset, Insertion, InsertionChoice, InsertionChoiceKey, type InsertionChoiceMade, InsertionChoices, type InsertionEdit, InsertionName, type InsertionProblem, type InsertionProblemReason, InsertionText, Insertions, Invite, InviteAccept, InviteAccepted, InviteCreate, InviteCreated, InviteListQuery, type InviteRefusalReason, InviteStatus, JsonValue, LETTER_ONLY_MERGE_FIELDS, LETTER_RECIPIENT_REFUSAL, LIST_UNSUBSCRIBE_POST_VALUE, LOCALE_TAG_PATTERN, type LanguageDrafts, type LanguageTab, LocaleTag, MAILING_ACTIONS, MAILING_KINDS, MAILING_STATUSES, MAILING_TRANSITIONS, MAX_ALLOWED_ASSET_HOSTS, MAX_ASSET_BYTES, MAX_DELAY_SECONDS, MAX_DOCUMENT_BYTES, MAX_ENGAGEMENT_DAYS, MAX_EXPORT_WARNINGS_HEADER_LENGTH, MAX_FILTER_DEPTH, MAX_IMPORTED_REMOTE_IMAGES, MAX_IMPORT_BYTES, MAX_IMPORT_ROWS, MAX_IMPORT_URL_LENGTH, MAX_INSERTIONS, MAX_INSERTION_CHOICES, MAX_INSERTION_TEXT_LENGTH, MAX_INVITE_TTL_DAYS, MAX_IN_LIST, MAX_LETTER_RECIPIENTS, MAX_MERGE_DEFAULTS, MAX_MERGE_DEFAULT_LENGTH, MAX_MJML_DEPTH, MAX_MJML_ELEMENTS, MAX_MJML_IMPORT_BYTES, MAX_PAGE_LIMIT, MAX_PREHEADER_LENGTH, MAX_RECIPIENTS_PER_BATCH, MAX_RE_ENTRY_COOLDOWN_SECONDS, MAX_SAVED_SECTIONS, MAX_SPLIT_BRANCHES, MAX_STEPS, MAX_STEP_VISITS, MAX_SUBJECT_LENGTH, MAX_SYNC_COMPANIES, MAX_TEMPLATE_INPUTS, MAX_TEMPLATE_INPUTS_APP_LENGTH, MAX_TEMPLATE_INPUTS_SEEN, MAX_TEMPLATE_INPUT_EXAMPLE_LENGTH, MAX_TEMPLATE_INPUT_LABEL_LENGTH, MAX_TEMPLATE_INPUT_NOTE_LENGTH, MAX_TEMPLATE_INPUT_VALUES, MAX_TEMPLATE_TRANSLATIONS, MAX_TRIGGERS, MEMBER_ROLES, MEMBER_SOURCES, MERGE_FIELD_PATTERN, MESSAGE_OUTCOMES, MIN_SPLIT_BRANCHES, MJML_IMPORT_REFUSALS, Mailing, MailingAbWinnerSelectedData, MailingAction, MailingActionRequest, MailingAnalytics, MailingAudienceFromSegment, MailingCounts, MailingCreate, MailingExportQuery, MailingFinishedData, MailingKind, MailingLanguage, MailingLanguageReport, MailingLanguageStatus, MailingListQuery, MailingMerge, MailingMetadata, MailingResolveRequest, MailingResolveResult, MailingRetryFailedRequest, MailingScheduleFailedData, MailingScheduleRequest, MailingScheduledData, MailingSendRequest, MailingStartedData, MailingStatus, MailingSummary, MailingTestRequest, MailingTestResult, MailingUpdate, Member, MemberCompanySync, MemberCompanySyncResult, MemberCreate, MemberRole, MemberSource, MemberUpdate, MergeDefaultValue, MergeDefaults, MergeFieldName, type MergeFieldUse, type MergeValue, Message, MessageFailedData, MessageListQuery, MessageOutcome, MessageSentData, MessageSummary, MessageValues, type MissingInsertionText, type MjmlImportRefusal, NAME_ON_BROADCAST_REFUSAL, NotifyRecipients, NotifyStep, ON_BEHALF_OF_HEADER, ON_BEHALF_OF_MAX_LENGTH, OffsetDays, Ok, type OperationId, PLAN_FEATURES, PLAN_IDS, PREVIEW_EMPTY, PREVIEW_FILLED, PROVIDER_KINDS, type Page, PageQuery, type Personalization, type Phase, Plan, type PlanFeature, PlanFeatures, PlanId, PlanLimits, PortalRequest, PortalSession, type PreviewControl, Properties, Provider, ProviderCreate, ProviderEvents, ProviderEventsSecret, ProviderKind, ProviderPolicy, ProviderRejections, ProviderUpdate, ProviderUsage, ProviderVerifyResult, QuietHours, RECIPIENT_REJECTIONS, RECIPIENT_STATUSES, REQUEST_ID_HEADER, RESEND_EVENT_TYPES, RESERVED_MERGE_FIELDS, RESOLVE_PROBLEMS, RESOLVE_REJECTIONS, RETRYABLE_ERRORS, RETRY_AFTER_HEADER, RE_ENTRY_MODES, ReEntryMode, Recipient, RecipientBatch, RecipientBatchResult, RecipientInput, RecipientListQuery, RecipientStatus, RemoteImage, type RenamedPlacement, ResendSigningSecret, type ReservedMergeField, ResolveProblem, ResolvedRecipient, ResolvedValue, type RouteAccess, type RouteBody, type RouteDef, type RouteParams, type RouteQuery, type RouteResponse, type Routes, SERVICE_FILLED_MERGE_FIELDS, SIGNUP_FORM_FIELDS, SKIP_REASONS, SMTP_SECURITY, SUBJECT_HEADER, SUPPRESSION_REASONS, type SaveDemotion, SavedSection, SavedSectionBody, SavedSectionCreate, SavedSectionUpdate, Segment, SegmentCreate, SegmentFilter, SegmentPreview, SegmentPreviewRequest, SignupForm, SignupFormCreate, SignupFormEmbed, SignupFormTranslation, SignupSubmission, SkipReason, Slug, SplitBranchKey, SplitStep, StepId, type StepTarget, Subscription, Suppression, SuppressionCreate, SuppressionListQuery, SuppressionReason, TEMPLATE_INPUT_KINDS, TEMPLATE_INPUT_PROBLEM_REASONS, TEMPLATE_LANGUAGE_STATUSES, TEMPLATE_SORTS, TEMPLATE_SORT_DEFAULT_ORDER, TERMINAL_MAILING_STATUSES, TRANSACTIONAL_BLOCKING_REASONS, TRANSACTIONAL_NEEDS_LETTER_REFUSAL, TRANSACTIONAL_NEEDS_TEMPLATE_LOCALE_REFUSAL, TRANSACTIONAL_NOT_ALLOWED_REFUSAL, TRANSACTIONAL_UNSUBSCRIBE_URL_REFUSAL, TRUSTED_APPS, TRUSTED_APP_OPERATIONS, Tag, TagAssignment, TagCreate, Template, TemplateCompileRequest, TemplateCreate, TemplateCreatedData, TemplateDeleteQuery, TemplateDeletedData, TemplateDocument, TemplateExportQuery, TemplateImport, TemplateImportPreview, TemplateImportPreviewRequest, TemplateImportResult, TemplateInput, type TemplateInputKind, TemplateInputMap, TemplateInputName, type TemplateInputProblem, type TemplateInputProblemReason, TemplateInputSeen, TemplateInputSource, TemplateInputValue, TemplateInputs, TemplateInputsDeclaration, TemplateInputsDeclared, TemplateInputsSeen, TemplateLanguageStatus, TemplateListQuery, TemplatePreheader, type TemplateSort, TemplateSubject, TemplateSummary, TemplateTranslation, TemplateTranslations, TemplateUpdate, TemplateUpdatedData, TemplateVersion, TemplateVersionParams, TimeOfDay, Timestamp, TimezoneName, Topic, TopicCreate, TopicUpdate, TrackingSettings, TranslationInsertion, TranslationInsertions, TrustedApp, UNSUBSCRIBE_PATH_PREFIX, UNSUBSCRIBE_SOURCES, USAGE_METRICS, USAGE_WARNING_HEADER, USAGE_WARNING_RATIO, UnfilledLink, type UnsubscribeToken, type UnsubscribeTokenClaims, Usage, UsageMetric, UsageWarning, type UsageWarningHeaderEntry, VALUE_LAYERS, type ValidationContext, ValidationIssue, ValueLayer, type ValueSources, VariantAnalytics, type VerifyWebhookInput, WEBHOOK_DELIVERY_STATUSES, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_EVENT_TYPES, WEBHOOK_MAX_ATTEMPTS, WEBHOOK_RETRY_DELAYS_SECONDS, WEBHOOK_SECRET_PREFIX, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_SIGNATURE_VERSION, WEBHOOK_TIMESTAMP_HEADER, WEBHOOK_TOLERANCE_SECONDS, WORKSPACE_HEADER, WebhookDelivery, WebhookDeliveryListQuery, WebhookDeliveryParams, WebhookDeliveryStatus, WebhookEndpoint, WebhookEndpointCreate, WebhookEndpointUpdate, WebhookEndpointWithSecret, WebhookEvent, type WebhookEventOf, WebhookEventType, WebhookStep, WebhookUrl, type WebhookVerifyFailure, type WebhookVerifyResult, Weekday, Workspace, WorkspaceCreate, WorkspaceMembership, WorkspaceMove, WorkspaceSettings, WorkspaceUpdate, acceptsIdempotencyKey, addInsertion, addInsertionChoice, addLanguageDraft, alignTranslationInsertions, alwaysWaits, automationFilterFamily, automationRoutes, billingRoutes, buildPath, buildTemplatePatch, canTransition, canonicalLocale, choiceKeyProblem, chooseInsertion, cycles, defaultPreviewPick, defaultSettings, demoteForSave, demotedBySave, describeMissingTexts, draftDocument, draftInsertionProblems, draftsDirty, draftsFromTemplate, draftsPatch, editInsertionText, editLanguageDraft, editMainInsertionText, editMainInsertions, effectivePreviewPicks, emptyFlow, emptyLinkValues, errorBody, escapeMergeHtml, exportFilename, filterConditions, filterDepth, filterFieldFamily, filterLeafProblem, findMergeFields, formatExportWarningsHeader, formatUsageWarningHeader, foundationRoutes, insertionByProblem, insertionChoices, insertionCoverage, insertionInputs, insertionNameProblem, insertionProblems, insertionRefusalHint, insertionSlotLabel, insertionTextSlots, insertionTokens, insertionValue, inviteRoutes, isDayEntirelyPast, isPublishable, isRetryableError, keepLanguageDocument, languageInsertions, languageName, languageTabs, letterOnlyValues, linkTokens, mainInsertionText, matchLocale, matchRoute, missingInsertionTexts, missingRequiredMergeFields, normalizeChoiceKey, nowSeconds, operationsWithAccess, ownEntry, page, parseExportWarningsHeader, parseUsageWarningHeader, personalizeHtml, personalizeText, placementProblems, platformRoutes, previewControls, previewInsertions, previewPersonalization, primaryLanguage, printedFields, rawMergeValue, reachable, readyWithoutInsertions, readyWithoutSubject, rebaseDrafts, removeInsertion, removeInsertionChoice, removeLanguageDraft, renameInsertion, renameInsertionChecked, renameInsertionChoice, renameInsertionChoiceChecked, renameInsertionEverywhere, renameInsertionPlacements, renameTokenInDocument, renameTokenInText, resolveInsertions, resolveValue, restorePatch, routes, sameJson, sampleMergeValue, saveDemotions, sendingRoutes, setInsertionBy, setInsertionFilled, setLanguageStatus, signWebhook, statusForError, stepTargets, storedTemplateLine, stronglyConnected, templateInputDrift, templateInputProblems, templateRoutes, testGroupSize, tightLoops, timingSafeEqualString, translationInsertionProblems, translationTextFromInput, triggerKey, trustedAppMayCall, unknownRefusedInsertions, unplacedInsertions, validateAutomation, valueNames, valuesRead, verifyWebhook };