samva 0.42.0 → 0.43.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,6 +44,12 @@ export declare const MailboxToolCall: Schema.Struct<{
44
44
  readonly argumentsHash: Schema.String;
45
45
  readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
46
46
  }>;
47
+ export type MailboxHandoff = {
48
+ readonly reason: string;
49
+ };
50
+ export declare const MailboxHandoff: Schema.Struct<{
51
+ readonly reason: Schema.String;
52
+ }>;
47
53
  export type MailboxAgentActivity = {
48
54
  readonly actions: {
49
55
  readonly byType: ReadonlyArray<{
@@ -1101,12 +1107,12 @@ export type PolicyDecision = {
1101
1107
  readonly outcome: "allow" | "hold" | "refuse";
1102
1108
  readonly reason: string;
1103
1109
  readonly scopes: ReadonlyArray<{
1104
- readonly kind: "organization" | "mailbox" | "agent" | "apiKey";
1110
+ readonly kind: "organization" | "integration" | "mailbox" | "agent" | "apiKey";
1105
1111
  readonly id: string;
1106
1112
  }>;
1107
1113
  readonly rule?: {
1108
1114
  readonly scope: {
1109
- readonly kind: "organization" | "mailbox" | "agent" | "apiKey";
1115
+ readonly kind: "organization" | "integration" | "mailbox" | "agent" | "apiKey";
1110
1116
  readonly id: string;
1111
1117
  };
1112
1118
  readonly index: number;
@@ -1146,12 +1152,12 @@ export declare const PolicyDecision: Schema.Struct<{
1146
1152
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
1147
1153
  readonly reason: Schema.String;
1148
1154
  readonly scopes: Schema.$Array<Schema.Struct<{
1149
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1155
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1150
1156
  readonly id: Schema.String;
1151
1157
  }>>;
1152
1158
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1153
1159
  readonly scope: Schema.Struct<{
1154
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1160
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1155
1161
  readonly id: Schema.String;
1156
1162
  }>;
1157
1163
  readonly index: Schema.Finite;
@@ -1308,6 +1314,7 @@ export type MailboxNonSendAction = {
1308
1314
  readonly type: "updateDraft" | "createNote" | "assignThread" | "changeThreadState" | "call" | "extensionRequest" | "toolCall" | "handoff";
1309
1315
  readonly state: "proposed" | "allowed" | "approvalRequired" | "policyDenied" | "approved" | "approvalDenied" | "executing" | "executed" | "failed";
1310
1316
  readonly tool: MailboxToolCall | null;
1317
+ readonly handoff: MailboxHandoff | null;
1311
1318
  };
1312
1319
  export declare const MailboxNonSendAction: Schema.Struct<{
1313
1320
  readonly id: Schema.brand<Schema.String, "MailboxActionId">;
@@ -1327,12 +1334,12 @@ export declare const MailboxNonSendAction: Schema.Struct<{
1327
1334
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
1328
1335
  readonly reason: Schema.String;
1329
1336
  readonly scopes: Schema.$Array<Schema.Struct<{
1330
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1337
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1331
1338
  readonly id: Schema.String;
1332
1339
  }>>;
1333
1340
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1334
1341
  readonly scope: Schema.Struct<{
1335
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1342
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1336
1343
  readonly id: Schema.String;
1337
1344
  }>;
1338
1345
  readonly index: Schema.Finite;
@@ -1375,6 +1382,9 @@ export declare const MailboxNonSendAction: Schema.Struct<{
1375
1382
  readonly argumentsHash: Schema.String;
1376
1383
  readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
1377
1384
  }>, Schema.Null]>;
1385
+ readonly handoff: Schema.Union<readonly [Schema.Struct<{
1386
+ readonly reason: Schema.String;
1387
+ }>, Schema.Null]>;
1378
1388
  }>;
1379
1389
  export type MailboxPendingSendReceipt = {
1380
1390
  readonly actionId: MailboxActionId;
@@ -1452,12 +1462,12 @@ export declare const MailboxPendingSendReceipt: Schema.Struct<{
1452
1462
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
1453
1463
  readonly reason: Schema.String;
1454
1464
  readonly scopes: Schema.$Array<Schema.Struct<{
1455
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1465
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1456
1466
  readonly id: Schema.String;
1457
1467
  }>>;
1458
1468
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1459
1469
  readonly scope: Schema.Struct<{
1460
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1470
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1461
1471
  readonly id: Schema.String;
1462
1472
  }>;
1463
1473
  readonly index: Schema.Finite;
@@ -2127,12 +2137,12 @@ export declare const MailboxSendAction: Schema.Struct<{
2127
2137
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2128
2138
  readonly reason: Schema.String;
2129
2139
  readonly scopes: Schema.$Array<Schema.Struct<{
2130
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2140
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2131
2141
  readonly id: Schema.String;
2132
2142
  }>>;
2133
2143
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2134
2144
  readonly scope: Schema.Struct<{
2135
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2145
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2136
2146
  readonly id: Schema.String;
2137
2147
  }>;
2138
2148
  readonly index: Schema.Finite;
@@ -2228,12 +2238,12 @@ export declare const MailboxSendAction: Schema.Struct<{
2228
2238
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2229
2239
  readonly reason: Schema.String;
2230
2240
  readonly scopes: Schema.$Array<Schema.Struct<{
2231
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2241
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2232
2242
  readonly id: Schema.String;
2233
2243
  }>>;
2234
2244
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2235
2245
  readonly scope: Schema.Struct<{
2236
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2246
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2237
2247
  readonly id: Schema.String;
2238
2248
  }>;
2239
2249
  readonly index: Schema.Finite;
@@ -2339,12 +2349,12 @@ export declare const MailboxNeedsYouItem: Schema.Union<readonly [Schema.Struct<{
2339
2349
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2340
2350
  readonly reason: Schema.String;
2341
2351
  readonly scopes: Schema.$Array<Schema.Struct<{
2342
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2352
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2343
2353
  readonly id: Schema.String;
2344
2354
  }>>;
2345
2355
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2346
2356
  readonly scope: Schema.Struct<{
2347
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2357
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2348
2358
  readonly id: Schema.String;
2349
2359
  }>;
2350
2360
  readonly index: Schema.Finite;
@@ -2513,12 +2523,12 @@ export declare const MailboxAction: Schema.Union<readonly [Schema.Struct<{
2513
2523
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2514
2524
  readonly reason: Schema.String;
2515
2525
  readonly scopes: Schema.$Array<Schema.Struct<{
2516
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2526
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2517
2527
  readonly id: Schema.String;
2518
2528
  }>>;
2519
2529
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2520
2530
  readonly scope: Schema.Struct<{
2521
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2531
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2522
2532
  readonly id: Schema.String;
2523
2533
  }>;
2524
2534
  readonly index: Schema.Finite;
@@ -2614,12 +2624,12 @@ export declare const MailboxAction: Schema.Union<readonly [Schema.Struct<{
2614
2624
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2615
2625
  readonly reason: Schema.String;
2616
2626
  readonly scopes: Schema.$Array<Schema.Struct<{
2617
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2627
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2618
2628
  readonly id: Schema.String;
2619
2629
  }>>;
2620
2630
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2621
2631
  readonly scope: Schema.Struct<{
2622
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2632
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2623
2633
  readonly id: Schema.String;
2624
2634
  }>;
2625
2635
  readonly index: Schema.Finite;
@@ -2708,12 +2718,12 @@ export declare const MailboxAction: Schema.Union<readonly [Schema.Struct<{
2708
2718
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2709
2719
  readonly reason: Schema.String;
2710
2720
  readonly scopes: Schema.$Array<Schema.Struct<{
2711
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2721
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2712
2722
  readonly id: Schema.String;
2713
2723
  }>>;
2714
2724
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2715
2725
  readonly scope: Schema.Struct<{
2716
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2726
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2717
2727
  readonly id: Schema.String;
2718
2728
  }>;
2719
2729
  readonly index: Schema.Finite;
@@ -2756,6 +2766,9 @@ export declare const MailboxAction: Schema.Union<readonly [Schema.Struct<{
2756
2766
  readonly argumentsHash: Schema.String;
2757
2767
  readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
2758
2768
  }>, Schema.Null]>;
2769
+ readonly handoff: Schema.Union<readonly [Schema.Struct<{
2770
+ readonly reason: Schema.String;
2771
+ }>, Schema.Null]>;
2759
2772
  }>]>;
2760
2773
  export type MailboxPendingAction = MailboxSendAction | MailboxNonSendAction;
2761
2774
  export declare const MailboxPendingAction: Schema.Union<readonly [Schema.Struct<{
@@ -2776,12 +2789,12 @@ export declare const MailboxPendingAction: Schema.Union<readonly [Schema.Struct<
2776
2789
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2777
2790
  readonly reason: Schema.String;
2778
2791
  readonly scopes: Schema.$Array<Schema.Struct<{
2779
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2792
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2780
2793
  readonly id: Schema.String;
2781
2794
  }>>;
2782
2795
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2783
2796
  readonly scope: Schema.Struct<{
2784
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2797
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2785
2798
  readonly id: Schema.String;
2786
2799
  }>;
2787
2800
  readonly index: Schema.Finite;
@@ -2877,12 +2890,12 @@ export declare const MailboxPendingAction: Schema.Union<readonly [Schema.Struct<
2877
2890
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2878
2891
  readonly reason: Schema.String;
2879
2892
  readonly scopes: Schema.$Array<Schema.Struct<{
2880
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2893
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2881
2894
  readonly id: Schema.String;
2882
2895
  }>>;
2883
2896
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2884
2897
  readonly scope: Schema.Struct<{
2885
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2898
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2886
2899
  readonly id: Schema.String;
2887
2900
  }>;
2888
2901
  readonly index: Schema.Finite;
@@ -2971,12 +2984,12 @@ export declare const MailboxPendingAction: Schema.Union<readonly [Schema.Struct<
2971
2984
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2972
2985
  readonly reason: Schema.String;
2973
2986
  readonly scopes: Schema.$Array<Schema.Struct<{
2974
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2987
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2975
2988
  readonly id: Schema.String;
2976
2989
  }>>;
2977
2990
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2978
2991
  readonly scope: Schema.Struct<{
2979
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2992
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2980
2993
  readonly id: Schema.String;
2981
2994
  }>;
2982
2995
  readonly index: Schema.Finite;
@@ -3019,6 +3032,9 @@ export declare const MailboxPendingAction: Schema.Union<readonly [Schema.Struct<
3019
3032
  readonly argumentsHash: Schema.String;
3020
3033
  readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
3021
3034
  }>, Schema.Null]>;
3035
+ readonly handoff: Schema.Union<readonly [Schema.Struct<{
3036
+ readonly reason: Schema.String;
3037
+ }>, Schema.Null]>;
3022
3038
  }>]>;
3023
3039
  export type MailboxNeedsYou = {
3024
3040
  readonly items: ReadonlyArray<MailboxNeedsYouItem>;
@@ -3039,12 +3055,12 @@ export declare const MailboxNeedsYou: Schema.Struct<{
3039
3055
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
3040
3056
  readonly reason: Schema.String;
3041
3057
  readonly scopes: Schema.$Array<Schema.Struct<{
3042
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3058
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3043
3059
  readonly id: Schema.String;
3044
3060
  }>>;
3045
3061
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3046
3062
  readonly scope: Schema.Struct<{
3047
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3063
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3048
3064
  readonly id: Schema.String;
3049
3065
  }>;
3050
3066
  readonly index: Schema.Finite;
@@ -3224,12 +3240,12 @@ export declare const MailboxActionPage: Schema.Struct<{
3224
3240
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
3225
3241
  readonly reason: Schema.String;
3226
3242
  readonly scopes: Schema.$Array<Schema.Struct<{
3227
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3243
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3228
3244
  readonly id: Schema.String;
3229
3245
  }>>;
3230
3246
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3231
3247
  readonly scope: Schema.Struct<{
3232
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3248
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3233
3249
  readonly id: Schema.String;
3234
3250
  }>;
3235
3251
  readonly index: Schema.Finite;
@@ -3325,12 +3341,12 @@ export declare const MailboxActionPage: Schema.Struct<{
3325
3341
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
3326
3342
  readonly reason: Schema.String;
3327
3343
  readonly scopes: Schema.$Array<Schema.Struct<{
3328
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3344
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3329
3345
  readonly id: Schema.String;
3330
3346
  }>>;
3331
3347
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3332
3348
  readonly scope: Schema.Struct<{
3333
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3349
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3334
3350
  readonly id: Schema.String;
3335
3351
  }>;
3336
3352
  readonly index: Schema.Finite;
@@ -3419,12 +3435,12 @@ export declare const MailboxActionPage: Schema.Struct<{
3419
3435
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
3420
3436
  readonly reason: Schema.String;
3421
3437
  readonly scopes: Schema.$Array<Schema.Struct<{
3422
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3438
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3423
3439
  readonly id: Schema.String;
3424
3440
  }>>;
3425
3441
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3426
3442
  readonly scope: Schema.Struct<{
3427
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3443
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3428
3444
  readonly id: Schema.String;
3429
3445
  }>;
3430
3446
  readonly index: Schema.Finite;
@@ -3467,6 +3483,9 @@ export declare const MailboxActionPage: Schema.Struct<{
3467
3483
  readonly argumentsHash: Schema.String;
3468
3484
  readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
3469
3485
  }>, Schema.Null]>;
3486
+ readonly handoff: Schema.Union<readonly [Schema.Struct<{
3487
+ readonly reason: Schema.String;
3488
+ }>, Schema.Null]>;
3470
3489
  }>]>>;
3471
3490
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
3472
3491
  }>;
@@ -3792,12 +3811,12 @@ export declare const MailboxesListActions200: Schema.Struct<{
3792
3811
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
3793
3812
  readonly reason: Schema.String;
3794
3813
  readonly scopes: Schema.$Array<Schema.Struct<{
3795
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3814
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3796
3815
  readonly id: Schema.String;
3797
3816
  }>>;
3798
3817
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3799
3818
  readonly scope: Schema.Struct<{
3800
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3819
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3801
3820
  readonly id: Schema.String;
3802
3821
  }>;
3803
3822
  readonly index: Schema.Finite;
@@ -3893,12 +3912,12 @@ export declare const MailboxesListActions200: Schema.Struct<{
3893
3912
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
3894
3913
  readonly reason: Schema.String;
3895
3914
  readonly scopes: Schema.$Array<Schema.Struct<{
3896
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3915
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3897
3916
  readonly id: Schema.String;
3898
3917
  }>>;
3899
3918
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3900
3919
  readonly scope: Schema.Struct<{
3901
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3920
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3902
3921
  readonly id: Schema.String;
3903
3922
  }>;
3904
3923
  readonly index: Schema.Finite;
@@ -3987,12 +4006,12 @@ export declare const MailboxesListActions200: Schema.Struct<{
3987
4006
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
3988
4007
  readonly reason: Schema.String;
3989
4008
  readonly scopes: Schema.$Array<Schema.Struct<{
3990
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4009
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3991
4010
  readonly id: Schema.String;
3992
4011
  }>>;
3993
4012
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3994
4013
  readonly scope: Schema.Struct<{
3995
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4014
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3996
4015
  readonly id: Schema.String;
3997
4016
  }>;
3998
4017
  readonly index: Schema.Finite;
@@ -4035,6 +4054,9 @@ export declare const MailboxesListActions200: Schema.Struct<{
4035
4054
  readonly argumentsHash: Schema.String;
4036
4055
  readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
4037
4056
  }>, Schema.Null]>;
4057
+ readonly handoff: Schema.Union<readonly [Schema.Struct<{
4058
+ readonly reason: Schema.String;
4059
+ }>, Schema.Null]>;
4038
4060
  }>]>>;
4039
4061
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
4040
4062
  }>;
@@ -4079,12 +4101,12 @@ export declare const MailboxesGetAction200: Schema.Union<readonly [Schema.Struct
4079
4101
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4080
4102
  readonly reason: Schema.String;
4081
4103
  readonly scopes: Schema.$Array<Schema.Struct<{
4082
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4104
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4083
4105
  readonly id: Schema.String;
4084
4106
  }>>;
4085
4107
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4086
4108
  readonly scope: Schema.Struct<{
4087
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4109
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4088
4110
  readonly id: Schema.String;
4089
4111
  }>;
4090
4112
  readonly index: Schema.Finite;
@@ -4180,12 +4202,12 @@ export declare const MailboxesGetAction200: Schema.Union<readonly [Schema.Struct
4180
4202
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4181
4203
  readonly reason: Schema.String;
4182
4204
  readonly scopes: Schema.$Array<Schema.Struct<{
4183
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4205
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4184
4206
  readonly id: Schema.String;
4185
4207
  }>>;
4186
4208
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4187
4209
  readonly scope: Schema.Struct<{
4188
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4210
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4189
4211
  readonly id: Schema.String;
4190
4212
  }>;
4191
4213
  readonly index: Schema.Finite;
@@ -4274,12 +4296,12 @@ export declare const MailboxesGetAction200: Schema.Union<readonly [Schema.Struct
4274
4296
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4275
4297
  readonly reason: Schema.String;
4276
4298
  readonly scopes: Schema.$Array<Schema.Struct<{
4277
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4299
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4278
4300
  readonly id: Schema.String;
4279
4301
  }>>;
4280
4302
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4281
4303
  readonly scope: Schema.Struct<{
4282
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4304
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4283
4305
  readonly id: Schema.String;
4284
4306
  }>;
4285
4307
  readonly index: Schema.Finite;
@@ -4322,6 +4344,9 @@ export declare const MailboxesGetAction200: Schema.Union<readonly [Schema.Struct
4322
4344
  readonly argumentsHash: Schema.String;
4323
4345
  readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
4324
4346
  }>, Schema.Null]>;
4347
+ readonly handoff: Schema.Union<readonly [Schema.Struct<{
4348
+ readonly reason: Schema.String;
4349
+ }>, Schema.Null]>;
4325
4350
  }>]>;
4326
4351
  export type MailboxesGetAction400 = MalformedRequestError;
4327
4352
  export declare const MailboxesGetAction400: typeof MalformedRequestError;
@@ -4380,12 +4405,12 @@ export declare const MailboxesApproveAction200: Schema.Union<readonly [Schema.St
4380
4405
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4381
4406
  readonly reason: Schema.String;
4382
4407
  readonly scopes: Schema.$Array<Schema.Struct<{
4383
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4408
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4384
4409
  readonly id: Schema.String;
4385
4410
  }>>;
4386
4411
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4387
4412
  readonly scope: Schema.Struct<{
4388
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4413
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4389
4414
  readonly id: Schema.String;
4390
4415
  }>;
4391
4416
  readonly index: Schema.Finite;
@@ -4481,12 +4506,12 @@ export declare const MailboxesApproveAction200: Schema.Union<readonly [Schema.St
4481
4506
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4482
4507
  readonly reason: Schema.String;
4483
4508
  readonly scopes: Schema.$Array<Schema.Struct<{
4484
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4509
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4485
4510
  readonly id: Schema.String;
4486
4511
  }>>;
4487
4512
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4488
4513
  readonly scope: Schema.Struct<{
4489
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4514
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4490
4515
  readonly id: Schema.String;
4491
4516
  }>;
4492
4517
  readonly index: Schema.Finite;
@@ -4575,12 +4600,12 @@ export declare const MailboxesApproveAction200: Schema.Union<readonly [Schema.St
4575
4600
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4576
4601
  readonly reason: Schema.String;
4577
4602
  readonly scopes: Schema.$Array<Schema.Struct<{
4578
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4603
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4579
4604
  readonly id: Schema.String;
4580
4605
  }>>;
4581
4606
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4582
4607
  readonly scope: Schema.Struct<{
4583
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4608
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4584
4609
  readonly id: Schema.String;
4585
4610
  }>;
4586
4611
  readonly index: Schema.Finite;
@@ -4623,6 +4648,9 @@ export declare const MailboxesApproveAction200: Schema.Union<readonly [Schema.St
4623
4648
  readonly argumentsHash: Schema.String;
4624
4649
  readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
4625
4650
  }>, Schema.Null]>;
4651
+ readonly handoff: Schema.Union<readonly [Schema.Struct<{
4652
+ readonly reason: Schema.String;
4653
+ }>, Schema.Null]>;
4626
4654
  }>]>;
4627
4655
  export type MailboxesApproveAction202 = MailboxPendingAction;
4628
4656
  export declare const MailboxesApproveAction202: Schema.Union<readonly [Schema.Struct<{
@@ -4643,12 +4671,12 @@ export declare const MailboxesApproveAction202: Schema.Union<readonly [Schema.St
4643
4671
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4644
4672
  readonly reason: Schema.String;
4645
4673
  readonly scopes: Schema.$Array<Schema.Struct<{
4646
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4674
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4647
4675
  readonly id: Schema.String;
4648
4676
  }>>;
4649
4677
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4650
4678
  readonly scope: Schema.Struct<{
4651
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4679
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4652
4680
  readonly id: Schema.String;
4653
4681
  }>;
4654
4682
  readonly index: Schema.Finite;
@@ -4744,12 +4772,12 @@ export declare const MailboxesApproveAction202: Schema.Union<readonly [Schema.St
4744
4772
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4745
4773
  readonly reason: Schema.String;
4746
4774
  readonly scopes: Schema.$Array<Schema.Struct<{
4747
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4775
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4748
4776
  readonly id: Schema.String;
4749
4777
  }>>;
4750
4778
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4751
4779
  readonly scope: Schema.Struct<{
4752
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4780
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4753
4781
  readonly id: Schema.String;
4754
4782
  }>;
4755
4783
  readonly index: Schema.Finite;
@@ -4838,12 +4866,12 @@ export declare const MailboxesApproveAction202: Schema.Union<readonly [Schema.St
4838
4866
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4839
4867
  readonly reason: Schema.String;
4840
4868
  readonly scopes: Schema.$Array<Schema.Struct<{
4841
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4869
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4842
4870
  readonly id: Schema.String;
4843
4871
  }>>;
4844
4872
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4845
4873
  readonly scope: Schema.Struct<{
4846
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4874
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4847
4875
  readonly id: Schema.String;
4848
4876
  }>;
4849
4877
  readonly index: Schema.Finite;
@@ -4886,6 +4914,9 @@ export declare const MailboxesApproveAction202: Schema.Union<readonly [Schema.St
4886
4914
  readonly argumentsHash: Schema.String;
4887
4915
  readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
4888
4916
  }>, Schema.Null]>;
4917
+ readonly handoff: Schema.Union<readonly [Schema.Struct<{
4918
+ readonly reason: Schema.String;
4919
+ }>, Schema.Null]>;
4889
4920
  }>]>;
4890
4921
  export type MailboxesApproveAction400 = MalformedRequestError;
4891
4922
  export declare const MailboxesApproveAction400: typeof MalformedRequestError;
@@ -4978,12 +5009,12 @@ export declare const MailboxesCancelAction200: Schema.Struct<{
4978
5009
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4979
5010
  readonly reason: Schema.String;
4980
5011
  readonly scopes: Schema.$Array<Schema.Struct<{
4981
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5012
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4982
5013
  readonly id: Schema.String;
4983
5014
  }>>;
4984
5015
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4985
5016
  readonly scope: Schema.Struct<{
4986
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5017
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4987
5018
  readonly id: Schema.String;
4988
5019
  }>;
4989
5020
  readonly index: Schema.Finite;
@@ -5068,12 +5099,12 @@ export declare const MailboxesCancelAction202: Schema.Struct<{
5068
5099
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
5069
5100
  readonly reason: Schema.String;
5070
5101
  readonly scopes: Schema.$Array<Schema.Struct<{
5071
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5102
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5072
5103
  readonly id: Schema.String;
5073
5104
  }>>;
5074
5105
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5075
5106
  readonly scope: Schema.Struct<{
5076
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5107
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5077
5108
  readonly id: Schema.String;
5078
5109
  }>;
5079
5110
  readonly index: Schema.Finite;
@@ -5158,12 +5189,12 @@ export declare const MailboxesDenyAction200: Schema.Union<readonly [Schema.Struc
5158
5189
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
5159
5190
  readonly reason: Schema.String;
5160
5191
  readonly scopes: Schema.$Array<Schema.Struct<{
5161
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5192
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5162
5193
  readonly id: Schema.String;
5163
5194
  }>>;
5164
5195
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5165
5196
  readonly scope: Schema.Struct<{
5166
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5197
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5167
5198
  readonly id: Schema.String;
5168
5199
  }>;
5169
5200
  readonly index: Schema.Finite;
@@ -5259,12 +5290,12 @@ export declare const MailboxesDenyAction200: Schema.Union<readonly [Schema.Struc
5259
5290
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
5260
5291
  readonly reason: Schema.String;
5261
5292
  readonly scopes: Schema.$Array<Schema.Struct<{
5262
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5293
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5263
5294
  readonly id: Schema.String;
5264
5295
  }>>;
5265
5296
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5266
5297
  readonly scope: Schema.Struct<{
5267
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5298
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5268
5299
  readonly id: Schema.String;
5269
5300
  }>;
5270
5301
  readonly index: Schema.Finite;
@@ -5353,12 +5384,12 @@ export declare const MailboxesDenyAction200: Schema.Union<readonly [Schema.Struc
5353
5384
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
5354
5385
  readonly reason: Schema.String;
5355
5386
  readonly scopes: Schema.$Array<Schema.Struct<{
5356
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5387
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5357
5388
  readonly id: Schema.String;
5358
5389
  }>>;
5359
5390
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5360
5391
  readonly scope: Schema.Struct<{
5361
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5392
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5362
5393
  readonly id: Schema.String;
5363
5394
  }>;
5364
5395
  readonly index: Schema.Finite;
@@ -5401,6 +5432,9 @@ export declare const MailboxesDenyAction200: Schema.Union<readonly [Schema.Struc
5401
5432
  readonly argumentsHash: Schema.String;
5402
5433
  readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
5403
5434
  }>, Schema.Null]>;
5435
+ readonly handoff: Schema.Union<readonly [Schema.Struct<{
5436
+ readonly reason: Schema.String;
5437
+ }>, Schema.Null]>;
5404
5438
  }>]>;
5405
5439
  export type MailboxesDenyAction400 = MalformedRequestError;
5406
5440
  export declare const MailboxesDenyAction400: typeof MalformedRequestError;
@@ -5485,12 +5519,12 @@ export declare const MailboxesRetryAction200: Schema.Struct<{
5485
5519
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
5486
5520
  readonly reason: Schema.String;
5487
5521
  readonly scopes: Schema.$Array<Schema.Struct<{
5488
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5522
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5489
5523
  readonly id: Schema.String;
5490
5524
  }>>;
5491
5525
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5492
5526
  readonly scope: Schema.Struct<{
5493
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5527
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5494
5528
  readonly id: Schema.String;
5495
5529
  }>;
5496
5530
  readonly index: Schema.Finite;
@@ -5575,12 +5609,12 @@ export declare const MailboxesRetryAction202: Schema.Struct<{
5575
5609
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
5576
5610
  readonly reason: Schema.String;
5577
5611
  readonly scopes: Schema.$Array<Schema.Struct<{
5578
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5612
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5579
5613
  readonly id: Schema.String;
5580
5614
  }>>;
5581
5615
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5582
5616
  readonly scope: Schema.Struct<{
5583
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5617
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5584
5618
  readonly id: Schema.String;
5585
5619
  }>;
5586
5620
  readonly index: Schema.Finite;
@@ -6060,12 +6094,12 @@ export declare const MailboxesSendDraft200: Schema.Struct<{
6060
6094
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
6061
6095
  readonly reason: Schema.String;
6062
6096
  readonly scopes: Schema.$Array<Schema.Struct<{
6063
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6097
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6064
6098
  readonly id: Schema.String;
6065
6099
  }>>;
6066
6100
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
6067
6101
  readonly scope: Schema.Struct<{
6068
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6102
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6069
6103
  readonly id: Schema.String;
6070
6104
  }>;
6071
6105
  readonly index: Schema.Finite;
@@ -6150,12 +6184,12 @@ export declare const MailboxesSendDraft202: Schema.Struct<{
6150
6184
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
6151
6185
  readonly reason: Schema.String;
6152
6186
  readonly scopes: Schema.$Array<Schema.Struct<{
6153
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6187
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6154
6188
  readonly id: Schema.String;
6155
6189
  }>>;
6156
6190
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
6157
6191
  readonly scope: Schema.Struct<{
6158
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6192
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6159
6193
  readonly id: Schema.String;
6160
6194
  }>;
6161
6195
  readonly index: Schema.Finite;
@@ -6870,12 +6904,12 @@ export declare const MailboxesSendMessage200: Schema.Struct<{
6870
6904
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
6871
6905
  readonly reason: Schema.String;
6872
6906
  readonly scopes: Schema.$Array<Schema.Struct<{
6873
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6907
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6874
6908
  readonly id: Schema.String;
6875
6909
  }>>;
6876
6910
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
6877
6911
  readonly scope: Schema.Struct<{
6878
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6912
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6879
6913
  readonly id: Schema.String;
6880
6914
  }>;
6881
6915
  readonly index: Schema.Finite;
@@ -6960,12 +6994,12 @@ export declare const MailboxesSendMessage202: Schema.Struct<{
6960
6994
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
6961
6995
  readonly reason: Schema.String;
6962
6996
  readonly scopes: Schema.$Array<Schema.Struct<{
6963
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6997
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6964
6998
  readonly id: Schema.String;
6965
6999
  }>>;
6966
7000
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
6967
7001
  readonly scope: Schema.Struct<{
6968
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7002
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6969
7003
  readonly id: Schema.String;
6970
7004
  }>;
6971
7005
  readonly index: Schema.Finite;
@@ -7336,12 +7370,12 @@ export declare const MailboxesForward200: Schema.Struct<{
7336
7370
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
7337
7371
  readonly reason: Schema.String;
7338
7372
  readonly scopes: Schema.$Array<Schema.Struct<{
7339
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7373
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7340
7374
  readonly id: Schema.String;
7341
7375
  }>>;
7342
7376
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
7343
7377
  readonly scope: Schema.Struct<{
7344
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7378
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7345
7379
  readonly id: Schema.String;
7346
7380
  }>;
7347
7381
  readonly index: Schema.Finite;
@@ -7426,12 +7460,12 @@ export declare const MailboxesForward202: Schema.Struct<{
7426
7460
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
7427
7461
  readonly reason: Schema.String;
7428
7462
  readonly scopes: Schema.$Array<Schema.Struct<{
7429
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7463
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7430
7464
  readonly id: Schema.String;
7431
7465
  }>>;
7432
7466
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
7433
7467
  readonly scope: Schema.Struct<{
7434
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7468
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7435
7469
  readonly id: Schema.String;
7436
7470
  }>;
7437
7471
  readonly index: Schema.Finite;
@@ -7642,12 +7676,12 @@ export declare const MailboxesReply200: Schema.Struct<{
7642
7676
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
7643
7677
  readonly reason: Schema.String;
7644
7678
  readonly scopes: Schema.$Array<Schema.Struct<{
7645
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7679
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7646
7680
  readonly id: Schema.String;
7647
7681
  }>>;
7648
7682
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
7649
7683
  readonly scope: Schema.Struct<{
7650
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7684
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7651
7685
  readonly id: Schema.String;
7652
7686
  }>;
7653
7687
  readonly index: Schema.Finite;
@@ -7732,12 +7766,12 @@ export declare const MailboxesReply202: Schema.Struct<{
7732
7766
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
7733
7767
  readonly reason: Schema.String;
7734
7768
  readonly scopes: Schema.$Array<Schema.Struct<{
7735
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7769
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7736
7770
  readonly id: Schema.String;
7737
7771
  }>>;
7738
7772
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
7739
7773
  readonly scope: Schema.Struct<{
7740
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7774
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7741
7775
  readonly id: Schema.String;
7742
7776
  }>;
7743
7777
  readonly index: Schema.Finite;
@@ -7880,12 +7914,12 @@ export declare const MailboxesReplyAll200: Schema.Struct<{
7880
7914
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
7881
7915
  readonly reason: Schema.String;
7882
7916
  readonly scopes: Schema.$Array<Schema.Struct<{
7883
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7917
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7884
7918
  readonly id: Schema.String;
7885
7919
  }>>;
7886
7920
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
7887
7921
  readonly scope: Schema.Struct<{
7888
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7922
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7889
7923
  readonly id: Schema.String;
7890
7924
  }>;
7891
7925
  readonly index: Schema.Finite;
@@ -7970,12 +8004,12 @@ export declare const MailboxesReplyAll202: Schema.Struct<{
7970
8004
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
7971
8005
  readonly reason: Schema.String;
7972
8006
  readonly scopes: Schema.$Array<Schema.Struct<{
7973
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
8007
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7974
8008
  readonly id: Schema.String;
7975
8009
  }>>;
7976
8010
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
7977
8011
  readonly scope: Schema.Struct<{
7978
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
8012
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7979
8013
  readonly id: Schema.String;
7980
8014
  }>;
7981
8015
  readonly index: Schema.Finite;
@@ -8913,12 +8947,12 @@ export declare const MailboxesGetNeedsYou200: Schema.Struct<{
8913
8947
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
8914
8948
  readonly reason: Schema.String;
8915
8949
  readonly scopes: Schema.$Array<Schema.Struct<{
8916
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
8950
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
8917
8951
  readonly id: Schema.String;
8918
8952
  }>>;
8919
8953
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
8920
8954
  readonly scope: Schema.Struct<{
8921
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
8955
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
8922
8956
  readonly id: Schema.String;
8923
8957
  }>;
8924
8958
  readonly index: Schema.Finite;
@@ -9318,12 +9352,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9318
9352
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
9319
9353
  readonly reason: Schema.String;
9320
9354
  readonly scopes: Schema.$Array<Schema.Struct<{
9321
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9355
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9322
9356
  readonly id: Schema.String;
9323
9357
  }>>;
9324
9358
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
9325
9359
  readonly scope: Schema.Struct<{
9326
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9360
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9327
9361
  readonly id: Schema.String;
9328
9362
  }>;
9329
9363
  readonly index: Schema.Finite;
@@ -9419,12 +9453,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9419
9453
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
9420
9454
  readonly reason: Schema.String;
9421
9455
  readonly scopes: Schema.$Array<Schema.Struct<{
9422
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9456
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9423
9457
  readonly id: Schema.String;
9424
9458
  }>>;
9425
9459
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
9426
9460
  readonly scope: Schema.Struct<{
9427
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9461
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9428
9462
  readonly id: Schema.String;
9429
9463
  }>;
9430
9464
  readonly index: Schema.Finite;
@@ -9513,12 +9547,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9513
9547
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
9514
9548
  readonly reason: Schema.String;
9515
9549
  readonly scopes: Schema.$Array<Schema.Struct<{
9516
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9550
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9517
9551
  readonly id: Schema.String;
9518
9552
  }>>;
9519
9553
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
9520
9554
  readonly scope: Schema.Struct<{
9521
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9555
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9522
9556
  readonly id: Schema.String;
9523
9557
  }>;
9524
9558
  readonly index: Schema.Finite;
@@ -9561,6 +9595,9 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9561
9595
  readonly argumentsHash: Schema.String;
9562
9596
  readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
9563
9597
  }>, Schema.Null]>;
9598
+ readonly handoff: Schema.Union<readonly [Schema.Struct<{
9599
+ readonly reason: Schema.String;
9600
+ }>, Schema.Null]>;
9564
9601
  }>]>>, Schema.toCodecJson<Schema.Union<readonly [typeof WhatsAppServiceWindowClosedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
9565
9602
  readonly _tag: "BillingProviderError";
9566
9603
  readonly message: string;
@@ -9762,12 +9799,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9762
9799
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
9763
9800
  readonly reason: Schema.String;
9764
9801
  readonly scopes: Schema.$Array<Schema.Struct<{
9765
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9802
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9766
9803
  readonly id: Schema.String;
9767
9804
  }>>;
9768
9805
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
9769
9806
  readonly scope: Schema.Struct<{
9770
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9807
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9771
9808
  readonly id: Schema.String;
9772
9809
  }>;
9773
9810
  readonly index: Schema.Finite;
@@ -9850,12 +9887,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9850
9887
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
9851
9888
  readonly reason: Schema.String;
9852
9889
  readonly scopes: Schema.$Array<Schema.Struct<{
9853
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9890
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9854
9891
  readonly id: Schema.String;
9855
9892
  }>>;
9856
9893
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
9857
9894
  readonly scope: Schema.Struct<{
9858
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9895
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9859
9896
  readonly id: Schema.String;
9860
9897
  }>;
9861
9898
  readonly index: Schema.Finite;
@@ -11385,12 +11422,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11385
11422
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
11386
11423
  readonly reason: Schema.String;
11387
11424
  readonly scopes: Schema.$Array<Schema.Struct<{
11388
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11425
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11389
11426
  readonly id: Schema.String;
11390
11427
  }>>;
11391
11428
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
11392
11429
  readonly scope: Schema.Struct<{
11393
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11430
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11394
11431
  readonly id: Schema.String;
11395
11432
  }>;
11396
11433
  readonly index: Schema.Finite;
@@ -11486,12 +11523,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11486
11523
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
11487
11524
  readonly reason: Schema.String;
11488
11525
  readonly scopes: Schema.$Array<Schema.Struct<{
11489
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11526
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11490
11527
  readonly id: Schema.String;
11491
11528
  }>>;
11492
11529
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
11493
11530
  readonly scope: Schema.Struct<{
11494
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11531
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11495
11532
  readonly id: Schema.String;
11496
11533
  }>;
11497
11534
  readonly index: Schema.Finite;
@@ -11580,12 +11617,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11580
11617
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
11581
11618
  readonly reason: Schema.String;
11582
11619
  readonly scopes: Schema.$Array<Schema.Struct<{
11583
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11620
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11584
11621
  readonly id: Schema.String;
11585
11622
  }>>;
11586
11623
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
11587
11624
  readonly scope: Schema.Struct<{
11588
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11625
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11589
11626
  readonly id: Schema.String;
11590
11627
  }>;
11591
11628
  readonly index: Schema.Finite;
@@ -11628,6 +11665,9 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11628
11665
  readonly argumentsHash: Schema.String;
11629
11666
  readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
11630
11667
  }>, Schema.Null]>;
11668
+ readonly handoff: Schema.Union<readonly [Schema.Struct<{
11669
+ readonly reason: Schema.String;
11670
+ }>, Schema.Null]>;
11631
11671
  }>]>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof MailboxSendConflictError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
11632
11672
  readonly _tag: "ForbiddenError";
11633
11673
  readonly message: string;
@@ -11954,12 +11994,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11954
11994
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
11955
11995
  readonly reason: Schema.String;
11956
11996
  readonly scopes: Schema.$Array<Schema.Struct<{
11957
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11997
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11958
11998
  readonly id: Schema.String;
11959
11999
  }>>;
11960
12000
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
11961
12001
  readonly scope: Schema.Struct<{
11962
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12002
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11963
12003
  readonly id: Schema.String;
11964
12004
  }>;
11965
12005
  readonly index: Schema.Finite;
@@ -12042,12 +12082,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12042
12082
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
12043
12083
  readonly reason: Schema.String;
12044
12084
  readonly scopes: Schema.$Array<Schema.Struct<{
12045
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12085
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12046
12086
  readonly id: Schema.String;
12047
12087
  }>>;
12048
12088
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
12049
12089
  readonly scope: Schema.Struct<{
12050
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12090
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12051
12091
  readonly id: Schema.String;
12052
12092
  }>;
12053
12093
  readonly index: Schema.Finite;
@@ -12373,12 +12413,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12373
12413
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
12374
12414
  readonly reason: Schema.String;
12375
12415
  readonly scopes: Schema.$Array<Schema.Struct<{
12376
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12416
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12377
12417
  readonly id: Schema.String;
12378
12418
  }>>;
12379
12419
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
12380
12420
  readonly scope: Schema.Struct<{
12381
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12421
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12382
12422
  readonly id: Schema.String;
12383
12423
  }>;
12384
12424
  readonly index: Schema.Finite;
@@ -12474,12 +12514,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12474
12514
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
12475
12515
  readonly reason: Schema.String;
12476
12516
  readonly scopes: Schema.$Array<Schema.Struct<{
12477
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12517
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12478
12518
  readonly id: Schema.String;
12479
12519
  }>>;
12480
12520
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
12481
12521
  readonly scope: Schema.Struct<{
12482
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12522
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12483
12523
  readonly id: Schema.String;
12484
12524
  }>;
12485
12525
  readonly index: Schema.Finite;
@@ -12568,12 +12608,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12568
12608
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
12569
12609
  readonly reason: Schema.String;
12570
12610
  readonly scopes: Schema.$Array<Schema.Struct<{
12571
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12611
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12572
12612
  readonly id: Schema.String;
12573
12613
  }>>;
12574
12614
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
12575
12615
  readonly scope: Schema.Struct<{
12576
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12616
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12577
12617
  readonly id: Schema.String;
12578
12618
  }>;
12579
12619
  readonly index: Schema.Finite;
@@ -12616,6 +12656,9 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12616
12656
  readonly argumentsHash: Schema.String;
12617
12657
  readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
12618
12658
  }>, Schema.Null]>;
12659
+ readonly handoff: Schema.Union<readonly [Schema.Struct<{
12660
+ readonly reason: Schema.String;
12661
+ }>, Schema.Null]>;
12619
12662
  }>]>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
12620
12663
  readonly _tag: "ForbiddenError";
12621
12664
  readonly message: string;
@@ -13405,12 +13448,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
13405
13448
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
13406
13449
  readonly reason: Schema.String;
13407
13450
  readonly scopes: Schema.$Array<Schema.Struct<{
13408
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
13451
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
13409
13452
  readonly id: Schema.String;
13410
13453
  }>>;
13411
13454
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
13412
13455
  readonly scope: Schema.Struct<{
13413
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
13456
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
13414
13457
  readonly id: Schema.String;
13415
13458
  }>;
13416
13459
  readonly index: Schema.Finite;
@@ -14124,12 +14167,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
14124
14167
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
14125
14168
  readonly reason: Schema.String;
14126
14169
  readonly scopes: Schema.$Array<Schema.Struct<{
14127
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14170
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14128
14171
  readonly id: Schema.String;
14129
14172
  }>>;
14130
14173
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
14131
14174
  readonly scope: Schema.Struct<{
14132
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14175
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14133
14176
  readonly id: Schema.String;
14134
14177
  }>;
14135
14178
  readonly index: Schema.Finite;
@@ -14225,12 +14268,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
14225
14268
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
14226
14269
  readonly reason: Schema.String;
14227
14270
  readonly scopes: Schema.$Array<Schema.Struct<{
14228
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14271
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14229
14272
  readonly id: Schema.String;
14230
14273
  }>>;
14231
14274
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
14232
14275
  readonly scope: Schema.Struct<{
14233
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14276
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14234
14277
  readonly id: Schema.String;
14235
14278
  }>;
14236
14279
  readonly index: Schema.Finite;
@@ -14319,12 +14362,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
14319
14362
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
14320
14363
  readonly reason: Schema.String;
14321
14364
  readonly scopes: Schema.$Array<Schema.Struct<{
14322
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14365
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14323
14366
  readonly id: Schema.String;
14324
14367
  }>>;
14325
14368
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
14326
14369
  readonly scope: Schema.Struct<{
14327
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14370
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14328
14371
  readonly id: Schema.String;
14329
14372
  }>;
14330
14373
  readonly index: Schema.Finite;
@@ -14367,6 +14410,9 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
14367
14410
  readonly argumentsHash: Schema.String;
14368
14411
  readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
14369
14412
  }>, Schema.Null]>;
14413
+ readonly handoff: Schema.Union<readonly [Schema.Struct<{
14414
+ readonly reason: Schema.String;
14415
+ }>, Schema.Null]>;
14370
14416
  }>]>>;
14371
14417
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
14372
14418
  }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
@@ -16579,12 +16625,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
16579
16625
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
16580
16626
  readonly reason: Schema.String;
16581
16627
  readonly scopes: Schema.$Array<Schema.Struct<{
16582
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16628
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16583
16629
  readonly id: Schema.String;
16584
16630
  }>>;
16585
16631
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
16586
16632
  readonly scope: Schema.Struct<{
16587
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16633
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16588
16634
  readonly id: Schema.String;
16589
16635
  }>;
16590
16636
  readonly index: Schema.Finite;
@@ -16667,12 +16713,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
16667
16713
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
16668
16714
  readonly reason: Schema.String;
16669
16715
  readonly scopes: Schema.$Array<Schema.Struct<{
16670
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16716
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16671
16717
  readonly id: Schema.String;
16672
16718
  }>>;
16673
16719
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
16674
16720
  readonly scope: Schema.Struct<{
16675
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16721
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16676
16722
  readonly id: Schema.String;
16677
16723
  }>;
16678
16724
  readonly index: Schema.Finite;
@@ -16918,12 +16964,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
16918
16964
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
16919
16965
  readonly reason: Schema.String;
16920
16966
  readonly scopes: Schema.$Array<Schema.Struct<{
16921
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16967
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16922
16968
  readonly id: Schema.String;
16923
16969
  }>>;
16924
16970
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
16925
16971
  readonly scope: Schema.Struct<{
16926
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16972
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16927
16973
  readonly id: Schema.String;
16928
16974
  }>;
16929
16975
  readonly index: Schema.Finite;
@@ -17006,12 +17052,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
17006
17052
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
17007
17053
  readonly reason: Schema.String;
17008
17054
  readonly scopes: Schema.$Array<Schema.Struct<{
17009
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17055
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17010
17056
  readonly id: Schema.String;
17011
17057
  }>>;
17012
17058
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
17013
17059
  readonly scope: Schema.Struct<{
17014
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17060
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17015
17061
  readonly id: Schema.String;
17016
17062
  }>;
17017
17063
  readonly index: Schema.Finite;
@@ -17377,12 +17423,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
17377
17423
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
17378
17424
  readonly reason: Schema.String;
17379
17425
  readonly scopes: Schema.$Array<Schema.Struct<{
17380
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17426
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17381
17427
  readonly id: Schema.String;
17382
17428
  }>>;
17383
17429
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
17384
17430
  readonly scope: Schema.Struct<{
17385
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17431
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17386
17432
  readonly id: Schema.String;
17387
17433
  }>;
17388
17434
  readonly index: Schema.Finite;
@@ -17465,12 +17511,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
17465
17511
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
17466
17512
  readonly reason: Schema.String;
17467
17513
  readonly scopes: Schema.$Array<Schema.Struct<{
17468
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17514
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17469
17515
  readonly id: Schema.String;
17470
17516
  }>>;
17471
17517
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
17472
17518
  readonly scope: Schema.Struct<{
17473
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17519
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17474
17520
  readonly id: Schema.String;
17475
17521
  }>;
17476
17522
  readonly index: Schema.Finite;
@@ -17823,12 +17869,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
17823
17869
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
17824
17870
  readonly reason: Schema.String;
17825
17871
  readonly scopes: Schema.$Array<Schema.Struct<{
17826
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17872
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17827
17873
  readonly id: Schema.String;
17828
17874
  }>>;
17829
17875
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
17830
17876
  readonly scope: Schema.Struct<{
17831
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17877
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17832
17878
  readonly id: Schema.String;
17833
17879
  }>;
17834
17880
  readonly index: Schema.Finite;
@@ -17911,12 +17957,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
17911
17957
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
17912
17958
  readonly reason: Schema.String;
17913
17959
  readonly scopes: Schema.$Array<Schema.Struct<{
17914
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17960
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17915
17961
  readonly id: Schema.String;
17916
17962
  }>>;
17917
17963
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
17918
17964
  readonly scope: Schema.Struct<{
17919
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17965
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17920
17966
  readonly id: Schema.String;
17921
17967
  }>;
17922
17968
  readonly index: Schema.Finite;
@@ -18165,12 +18211,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
18165
18211
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
18166
18212
  readonly reason: Schema.String;
18167
18213
  readonly scopes: Schema.$Array<Schema.Struct<{
18168
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18214
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18169
18215
  readonly id: Schema.String;
18170
18216
  }>>;
18171
18217
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
18172
18218
  readonly scope: Schema.Struct<{
18173
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18219
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18174
18220
  readonly id: Schema.String;
18175
18221
  }>;
18176
18222
  readonly index: Schema.Finite;
@@ -18253,12 +18299,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
18253
18299
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
18254
18300
  readonly reason: Schema.String;
18255
18301
  readonly scopes: Schema.$Array<Schema.Struct<{
18256
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18302
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18257
18303
  readonly id: Schema.String;
18258
18304
  }>>;
18259
18305
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
18260
18306
  readonly scope: Schema.Struct<{
18261
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18307
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18262
18308
  readonly id: Schema.String;
18263
18309
  }>;
18264
18310
  readonly index: Schema.Finite;