samva 0.43.0 → 0.43.2

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.
@@ -30,6 +30,14 @@ export declare const MailboxActionResolution: Schema.Struct<{
30
30
  readonly resolvedAt: Schema.String;
31
31
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
32
32
  }>;
33
+ export type MailboxAlwaysAllow = {
34
+ readonly by: "owner" | "admin" | "approver";
35
+ readonly allowed: boolean;
36
+ };
37
+ export declare const MailboxAlwaysAllow: Schema.Struct<{
38
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
39
+ readonly allowed: Schema.Boolean;
40
+ }>;
33
41
  export type TemplateChannelVariantId = string & EffectBrand.Brand<"TemplateChannelVariantId">;
34
42
  export declare const TemplateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
35
43
  export type MailboxToolCall = {
@@ -1107,12 +1115,12 @@ export type PolicyDecision = {
1107
1115
  readonly outcome: "allow" | "hold" | "refuse";
1108
1116
  readonly reason: string;
1109
1117
  readonly scopes: ReadonlyArray<{
1110
- readonly kind: "organization" | "mailbox" | "agent" | "apiKey";
1118
+ readonly kind: "organization" | "integration" | "mailbox" | "agent" | "apiKey";
1111
1119
  readonly id: string;
1112
1120
  }>;
1113
1121
  readonly rule?: {
1114
1122
  readonly scope: {
1115
- readonly kind: "organization" | "mailbox" | "agent" | "apiKey";
1123
+ readonly kind: "organization" | "integration" | "mailbox" | "agent" | "apiKey";
1116
1124
  readonly id: string;
1117
1125
  };
1118
1126
  readonly index: number;
@@ -1152,12 +1160,12 @@ export declare const PolicyDecision: Schema.Struct<{
1152
1160
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
1153
1161
  readonly reason: Schema.String;
1154
1162
  readonly scopes: Schema.$Array<Schema.Struct<{
1155
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1163
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1156
1164
  readonly id: Schema.String;
1157
1165
  }>>;
1158
1166
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1159
1167
  readonly scope: Schema.Struct<{
1160
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1168
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1161
1169
  readonly id: Schema.String;
1162
1170
  }>;
1163
1171
  readonly index: Schema.Finite;
@@ -1309,6 +1317,7 @@ export type MailboxNonSendAction = {
1309
1317
  readonly draftId: MailboxDraftId | null;
1310
1318
  readonly decision: MailboxActionDecision | null;
1311
1319
  readonly resolution: MailboxActionResolution | null;
1320
+ readonly alwaysAllow: MailboxAlwaysAllow | null;
1312
1321
  readonly createdAt: string;
1313
1322
  readonly updatedAt: string;
1314
1323
  readonly type: "updateDraft" | "createNote" | "assignThread" | "changeThreadState" | "call" | "extensionRequest" | "toolCall" | "handoff";
@@ -1334,12 +1343,12 @@ export declare const MailboxNonSendAction: Schema.Struct<{
1334
1343
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
1335
1344
  readonly reason: Schema.String;
1336
1345
  readonly scopes: Schema.$Array<Schema.Struct<{
1337
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1346
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1338
1347
  readonly id: Schema.String;
1339
1348
  }>>;
1340
1349
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1341
1350
  readonly scope: Schema.Struct<{
1342
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1351
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1343
1352
  readonly id: Schema.String;
1344
1353
  }>;
1345
1354
  readonly index: Schema.Finite;
@@ -1373,6 +1382,10 @@ export declare const MailboxNonSendAction: Schema.Struct<{
1373
1382
  readonly resolvedAt: Schema.String;
1374
1383
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1375
1384
  }>, Schema.Null]>;
1385
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
1386
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
1387
+ readonly allowed: Schema.Boolean;
1388
+ }>, Schema.Null]>;
1376
1389
  readonly createdAt: Schema.String;
1377
1390
  readonly updatedAt: Schema.String;
1378
1391
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>;
@@ -1462,12 +1475,12 @@ export declare const MailboxPendingSendReceipt: Schema.Struct<{
1462
1475
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
1463
1476
  readonly reason: Schema.String;
1464
1477
  readonly scopes: Schema.$Array<Schema.Struct<{
1465
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1478
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1466
1479
  readonly id: Schema.String;
1467
1480
  }>>;
1468
1481
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1469
1482
  readonly scope: Schema.Struct<{
1470
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1483
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
1471
1484
  readonly id: Schema.String;
1472
1485
  }>;
1473
1486
  readonly index: Schema.Finite;
@@ -2112,6 +2125,7 @@ export type MailboxSendAction = {
2112
2125
  readonly draftId: MailboxDraftId | null;
2113
2126
  readonly decision: MailboxActionDecision | null;
2114
2127
  readonly resolution: MailboxActionResolution | null;
2128
+ readonly alwaysAllow: MailboxAlwaysAllow | null;
2115
2129
  readonly createdAt: string;
2116
2130
  readonly updatedAt: string;
2117
2131
  readonly type: "sendMessage" | "reply";
@@ -2137,12 +2151,12 @@ export declare const MailboxSendAction: Schema.Struct<{
2137
2151
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2138
2152
  readonly reason: Schema.String;
2139
2153
  readonly scopes: Schema.$Array<Schema.Struct<{
2140
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2154
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2141
2155
  readonly id: Schema.String;
2142
2156
  }>>;
2143
2157
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2144
2158
  readonly scope: Schema.Struct<{
2145
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2159
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2146
2160
  readonly id: Schema.String;
2147
2161
  }>;
2148
2162
  readonly index: Schema.Finite;
@@ -2176,6 +2190,10 @@ export declare const MailboxSendAction: Schema.Struct<{
2176
2190
  readonly resolvedAt: Schema.String;
2177
2191
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2178
2192
  }>, Schema.Null]>;
2193
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
2194
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
2195
+ readonly allowed: Schema.Boolean;
2196
+ }>, Schema.Null]>;
2179
2197
  readonly createdAt: Schema.String;
2180
2198
  readonly updatedAt: Schema.String;
2181
2199
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -2238,12 +2256,12 @@ export declare const MailboxSendAction: Schema.Struct<{
2238
2256
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2239
2257
  readonly reason: Schema.String;
2240
2258
  readonly scopes: Schema.$Array<Schema.Struct<{
2241
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2259
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2242
2260
  readonly id: Schema.String;
2243
2261
  }>>;
2244
2262
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2245
2263
  readonly scope: Schema.Struct<{
2246
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2264
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2247
2265
  readonly id: Schema.String;
2248
2266
  }>;
2249
2267
  readonly index: Schema.Finite;
@@ -2331,6 +2349,7 @@ export type MailboxNeedsYouItem = {
2331
2349
  readonly displayName?: string | null;
2332
2350
  };
2333
2351
  readonly source: "humanUi" | "externalApi" | "aiSdkTool" | "extension" | "externalAgent" | "samvaManagedAgent" | "system";
2352
+ readonly alwaysAllow: MailboxAlwaysAllow | null;
2334
2353
  readonly createdAt: string;
2335
2354
  } | {
2336
2355
  readonly type: "quarantinedMessage";
@@ -2349,12 +2368,12 @@ export declare const MailboxNeedsYouItem: Schema.Union<readonly [Schema.Struct<{
2349
2368
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2350
2369
  readonly reason: Schema.String;
2351
2370
  readonly scopes: Schema.$Array<Schema.Struct<{
2352
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2371
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2353
2372
  readonly id: Schema.String;
2354
2373
  }>>;
2355
2374
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2356
2375
  readonly scope: Schema.Struct<{
2357
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2376
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2358
2377
  readonly id: Schema.String;
2359
2378
  }>;
2360
2379
  readonly index: Schema.Finite;
@@ -2491,6 +2510,10 @@ export declare const MailboxNeedsYouItem: Schema.Union<readonly [Schema.Struct<{
2491
2510
  readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2492
2511
  }>;
2493
2512
  readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"aiSdkTool">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
2513
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
2514
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
2515
+ readonly allowed: Schema.Boolean;
2516
+ }>, Schema.Null]>;
2494
2517
  readonly createdAt: Schema.String;
2495
2518
  }>, Schema.Struct<{
2496
2519
  readonly type: Schema.Literal<"quarantinedMessage">;
@@ -2523,12 +2546,12 @@ export declare const MailboxAction: Schema.Union<readonly [Schema.Struct<{
2523
2546
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2524
2547
  readonly reason: Schema.String;
2525
2548
  readonly scopes: Schema.$Array<Schema.Struct<{
2526
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2549
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2527
2550
  readonly id: Schema.String;
2528
2551
  }>>;
2529
2552
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2530
2553
  readonly scope: Schema.Struct<{
2531
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2554
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2532
2555
  readonly id: Schema.String;
2533
2556
  }>;
2534
2557
  readonly index: Schema.Finite;
@@ -2562,6 +2585,10 @@ export declare const MailboxAction: Schema.Union<readonly [Schema.Struct<{
2562
2585
  readonly resolvedAt: Schema.String;
2563
2586
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2564
2587
  }>, Schema.Null]>;
2588
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
2589
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
2590
+ readonly allowed: Schema.Boolean;
2591
+ }>, Schema.Null]>;
2565
2592
  readonly createdAt: Schema.String;
2566
2593
  readonly updatedAt: Schema.String;
2567
2594
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -2624,12 +2651,12 @@ export declare const MailboxAction: Schema.Union<readonly [Schema.Struct<{
2624
2651
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2625
2652
  readonly reason: Schema.String;
2626
2653
  readonly scopes: Schema.$Array<Schema.Struct<{
2627
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2654
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2628
2655
  readonly id: Schema.String;
2629
2656
  }>>;
2630
2657
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2631
2658
  readonly scope: Schema.Struct<{
2632
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2659
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2633
2660
  readonly id: Schema.String;
2634
2661
  }>;
2635
2662
  readonly index: Schema.Finite;
@@ -2718,12 +2745,12 @@ export declare const MailboxAction: Schema.Union<readonly [Schema.Struct<{
2718
2745
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2719
2746
  readonly reason: Schema.String;
2720
2747
  readonly scopes: Schema.$Array<Schema.Struct<{
2721
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2748
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2722
2749
  readonly id: Schema.String;
2723
2750
  }>>;
2724
2751
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2725
2752
  readonly scope: Schema.Struct<{
2726
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2753
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2727
2754
  readonly id: Schema.String;
2728
2755
  }>;
2729
2756
  readonly index: Schema.Finite;
@@ -2757,6 +2784,10 @@ export declare const MailboxAction: Schema.Union<readonly [Schema.Struct<{
2757
2784
  readonly resolvedAt: Schema.String;
2758
2785
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2759
2786
  }>, Schema.Null]>;
2787
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
2788
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
2789
+ readonly allowed: Schema.Boolean;
2790
+ }>, Schema.Null]>;
2760
2791
  readonly createdAt: Schema.String;
2761
2792
  readonly updatedAt: Schema.String;
2762
2793
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>;
@@ -2789,12 +2820,12 @@ export declare const MailboxPendingAction: Schema.Union<readonly [Schema.Struct<
2789
2820
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2790
2821
  readonly reason: Schema.String;
2791
2822
  readonly scopes: Schema.$Array<Schema.Struct<{
2792
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2823
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2793
2824
  readonly id: Schema.String;
2794
2825
  }>>;
2795
2826
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2796
2827
  readonly scope: Schema.Struct<{
2797
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2828
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2798
2829
  readonly id: Schema.String;
2799
2830
  }>;
2800
2831
  readonly index: Schema.Finite;
@@ -2828,6 +2859,10 @@ export declare const MailboxPendingAction: Schema.Union<readonly [Schema.Struct<
2828
2859
  readonly resolvedAt: Schema.String;
2829
2860
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2830
2861
  }>, Schema.Null]>;
2862
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
2863
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
2864
+ readonly allowed: Schema.Boolean;
2865
+ }>, Schema.Null]>;
2831
2866
  readonly createdAt: Schema.String;
2832
2867
  readonly updatedAt: Schema.String;
2833
2868
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -2890,12 +2925,12 @@ export declare const MailboxPendingAction: Schema.Union<readonly [Schema.Struct<
2890
2925
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2891
2926
  readonly reason: Schema.String;
2892
2927
  readonly scopes: Schema.$Array<Schema.Struct<{
2893
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2928
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2894
2929
  readonly id: Schema.String;
2895
2930
  }>>;
2896
2931
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2897
2932
  readonly scope: Schema.Struct<{
2898
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2933
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2899
2934
  readonly id: Schema.String;
2900
2935
  }>;
2901
2936
  readonly index: Schema.Finite;
@@ -2984,12 +3019,12 @@ export declare const MailboxPendingAction: Schema.Union<readonly [Schema.Struct<
2984
3019
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
2985
3020
  readonly reason: Schema.String;
2986
3021
  readonly scopes: Schema.$Array<Schema.Struct<{
2987
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3022
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2988
3023
  readonly id: Schema.String;
2989
3024
  }>>;
2990
3025
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2991
3026
  readonly scope: Schema.Struct<{
2992
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3027
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
2993
3028
  readonly id: Schema.String;
2994
3029
  }>;
2995
3030
  readonly index: Schema.Finite;
@@ -3023,6 +3058,10 @@ export declare const MailboxPendingAction: Schema.Union<readonly [Schema.Struct<
3023
3058
  readonly resolvedAt: Schema.String;
3024
3059
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
3025
3060
  }>, Schema.Null]>;
3061
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
3062
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
3063
+ readonly allowed: Schema.Boolean;
3064
+ }>, Schema.Null]>;
3026
3065
  readonly createdAt: Schema.String;
3027
3066
  readonly updatedAt: Schema.String;
3028
3067
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>;
@@ -3055,12 +3094,12 @@ export declare const MailboxNeedsYou: Schema.Struct<{
3055
3094
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
3056
3095
  readonly reason: Schema.String;
3057
3096
  readonly scopes: Schema.$Array<Schema.Struct<{
3058
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3097
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3059
3098
  readonly id: Schema.String;
3060
3099
  }>>;
3061
3100
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3062
3101
  readonly scope: Schema.Struct<{
3063
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3102
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3064
3103
  readonly id: Schema.String;
3065
3104
  }>;
3066
3105
  readonly index: Schema.Finite;
@@ -3197,6 +3236,10 @@ export declare const MailboxNeedsYou: Schema.Struct<{
3197
3236
  readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3198
3237
  }>;
3199
3238
  readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"aiSdkTool">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
3239
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
3240
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
3241
+ readonly allowed: Schema.Boolean;
3242
+ }>, Schema.Null]>;
3200
3243
  readonly createdAt: Schema.String;
3201
3244
  }>, Schema.Struct<{
3202
3245
  readonly type: Schema.Literal<"quarantinedMessage">;
@@ -3240,12 +3283,12 @@ export declare const MailboxActionPage: Schema.Struct<{
3240
3283
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
3241
3284
  readonly reason: Schema.String;
3242
3285
  readonly scopes: Schema.$Array<Schema.Struct<{
3243
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3286
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3244
3287
  readonly id: Schema.String;
3245
3288
  }>>;
3246
3289
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3247
3290
  readonly scope: Schema.Struct<{
3248
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3291
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3249
3292
  readonly id: Schema.String;
3250
3293
  }>;
3251
3294
  readonly index: Schema.Finite;
@@ -3279,6 +3322,10 @@ export declare const MailboxActionPage: Schema.Struct<{
3279
3322
  readonly resolvedAt: Schema.String;
3280
3323
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
3281
3324
  }>, Schema.Null]>;
3325
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
3326
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
3327
+ readonly allowed: Schema.Boolean;
3328
+ }>, Schema.Null]>;
3282
3329
  readonly createdAt: Schema.String;
3283
3330
  readonly updatedAt: Schema.String;
3284
3331
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -3341,12 +3388,12 @@ export declare const MailboxActionPage: Schema.Struct<{
3341
3388
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
3342
3389
  readonly reason: Schema.String;
3343
3390
  readonly scopes: Schema.$Array<Schema.Struct<{
3344
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3391
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3345
3392
  readonly id: Schema.String;
3346
3393
  }>>;
3347
3394
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3348
3395
  readonly scope: Schema.Struct<{
3349
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3396
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3350
3397
  readonly id: Schema.String;
3351
3398
  }>;
3352
3399
  readonly index: Schema.Finite;
@@ -3435,12 +3482,12 @@ export declare const MailboxActionPage: Schema.Struct<{
3435
3482
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
3436
3483
  readonly reason: Schema.String;
3437
3484
  readonly scopes: Schema.$Array<Schema.Struct<{
3438
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3485
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3439
3486
  readonly id: Schema.String;
3440
3487
  }>>;
3441
3488
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3442
3489
  readonly scope: Schema.Struct<{
3443
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3490
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3444
3491
  readonly id: Schema.String;
3445
3492
  }>;
3446
3493
  readonly index: Schema.Finite;
@@ -3474,6 +3521,10 @@ export declare const MailboxActionPage: Schema.Struct<{
3474
3521
  readonly resolvedAt: Schema.String;
3475
3522
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
3476
3523
  }>, Schema.Null]>;
3524
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
3525
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
3526
+ readonly allowed: Schema.Boolean;
3527
+ }>, Schema.Null]>;
3477
3528
  readonly createdAt: Schema.String;
3478
3529
  readonly updatedAt: Schema.String;
3479
3530
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>;
@@ -3811,12 +3862,12 @@ export declare const MailboxesListActions200: Schema.Struct<{
3811
3862
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
3812
3863
  readonly reason: Schema.String;
3813
3864
  readonly scopes: Schema.$Array<Schema.Struct<{
3814
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3865
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3815
3866
  readonly id: Schema.String;
3816
3867
  }>>;
3817
3868
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3818
3869
  readonly scope: Schema.Struct<{
3819
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3870
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3820
3871
  readonly id: Schema.String;
3821
3872
  }>;
3822
3873
  readonly index: Schema.Finite;
@@ -3850,6 +3901,10 @@ export declare const MailboxesListActions200: Schema.Struct<{
3850
3901
  readonly resolvedAt: Schema.String;
3851
3902
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
3852
3903
  }>, Schema.Null]>;
3904
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
3905
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
3906
+ readonly allowed: Schema.Boolean;
3907
+ }>, Schema.Null]>;
3853
3908
  readonly createdAt: Schema.String;
3854
3909
  readonly updatedAt: Schema.String;
3855
3910
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -3912,12 +3967,12 @@ export declare const MailboxesListActions200: Schema.Struct<{
3912
3967
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
3913
3968
  readonly reason: Schema.String;
3914
3969
  readonly scopes: Schema.$Array<Schema.Struct<{
3915
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3970
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3916
3971
  readonly id: Schema.String;
3917
3972
  }>>;
3918
3973
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3919
3974
  readonly scope: Schema.Struct<{
3920
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3975
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
3921
3976
  readonly id: Schema.String;
3922
3977
  }>;
3923
3978
  readonly index: Schema.Finite;
@@ -4006,12 +4061,12 @@ export declare const MailboxesListActions200: Schema.Struct<{
4006
4061
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4007
4062
  readonly reason: Schema.String;
4008
4063
  readonly scopes: Schema.$Array<Schema.Struct<{
4009
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4064
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4010
4065
  readonly id: Schema.String;
4011
4066
  }>>;
4012
4067
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4013
4068
  readonly scope: Schema.Struct<{
4014
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4069
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4015
4070
  readonly id: Schema.String;
4016
4071
  }>;
4017
4072
  readonly index: Schema.Finite;
@@ -4045,6 +4100,10 @@ export declare const MailboxesListActions200: Schema.Struct<{
4045
4100
  readonly resolvedAt: Schema.String;
4046
4101
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
4047
4102
  }>, Schema.Null]>;
4103
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
4104
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
4105
+ readonly allowed: Schema.Boolean;
4106
+ }>, Schema.Null]>;
4048
4107
  readonly createdAt: Schema.String;
4049
4108
  readonly updatedAt: Schema.String;
4050
4109
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>;
@@ -4101,12 +4160,12 @@ export declare const MailboxesGetAction200: Schema.Union<readonly [Schema.Struct
4101
4160
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4102
4161
  readonly reason: Schema.String;
4103
4162
  readonly scopes: Schema.$Array<Schema.Struct<{
4104
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4163
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4105
4164
  readonly id: Schema.String;
4106
4165
  }>>;
4107
4166
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4108
4167
  readonly scope: Schema.Struct<{
4109
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4168
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4110
4169
  readonly id: Schema.String;
4111
4170
  }>;
4112
4171
  readonly index: Schema.Finite;
@@ -4140,6 +4199,10 @@ export declare const MailboxesGetAction200: Schema.Union<readonly [Schema.Struct
4140
4199
  readonly resolvedAt: Schema.String;
4141
4200
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
4142
4201
  }>, Schema.Null]>;
4202
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
4203
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
4204
+ readonly allowed: Schema.Boolean;
4205
+ }>, Schema.Null]>;
4143
4206
  readonly createdAt: Schema.String;
4144
4207
  readonly updatedAt: Schema.String;
4145
4208
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -4202,12 +4265,12 @@ export declare const MailboxesGetAction200: Schema.Union<readonly [Schema.Struct
4202
4265
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4203
4266
  readonly reason: Schema.String;
4204
4267
  readonly scopes: Schema.$Array<Schema.Struct<{
4205
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4268
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4206
4269
  readonly id: Schema.String;
4207
4270
  }>>;
4208
4271
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4209
4272
  readonly scope: Schema.Struct<{
4210
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4273
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4211
4274
  readonly id: Schema.String;
4212
4275
  }>;
4213
4276
  readonly index: Schema.Finite;
@@ -4296,12 +4359,12 @@ export declare const MailboxesGetAction200: Schema.Union<readonly [Schema.Struct
4296
4359
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4297
4360
  readonly reason: Schema.String;
4298
4361
  readonly scopes: Schema.$Array<Schema.Struct<{
4299
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4362
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4300
4363
  readonly id: Schema.String;
4301
4364
  }>>;
4302
4365
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4303
4366
  readonly scope: Schema.Struct<{
4304
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4367
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4305
4368
  readonly id: Schema.String;
4306
4369
  }>;
4307
4370
  readonly index: Schema.Finite;
@@ -4335,6 +4398,10 @@ export declare const MailboxesGetAction200: Schema.Union<readonly [Schema.Struct
4335
4398
  readonly resolvedAt: Schema.String;
4336
4399
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
4337
4400
  }>, Schema.Null]>;
4401
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
4402
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
4403
+ readonly allowed: Schema.Boolean;
4404
+ }>, Schema.Null]>;
4338
4405
  readonly createdAt: Schema.String;
4339
4406
  readonly updatedAt: Schema.String;
4340
4407
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>;
@@ -4405,12 +4472,12 @@ export declare const MailboxesApproveAction200: Schema.Union<readonly [Schema.St
4405
4472
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4406
4473
  readonly reason: Schema.String;
4407
4474
  readonly scopes: Schema.$Array<Schema.Struct<{
4408
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4475
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4409
4476
  readonly id: Schema.String;
4410
4477
  }>>;
4411
4478
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4412
4479
  readonly scope: Schema.Struct<{
4413
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4480
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4414
4481
  readonly id: Schema.String;
4415
4482
  }>;
4416
4483
  readonly index: Schema.Finite;
@@ -4444,6 +4511,10 @@ export declare const MailboxesApproveAction200: Schema.Union<readonly [Schema.St
4444
4511
  readonly resolvedAt: Schema.String;
4445
4512
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
4446
4513
  }>, Schema.Null]>;
4514
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
4515
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
4516
+ readonly allowed: Schema.Boolean;
4517
+ }>, Schema.Null]>;
4447
4518
  readonly createdAt: Schema.String;
4448
4519
  readonly updatedAt: Schema.String;
4449
4520
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -4506,12 +4577,12 @@ export declare const MailboxesApproveAction200: Schema.Union<readonly [Schema.St
4506
4577
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4507
4578
  readonly reason: Schema.String;
4508
4579
  readonly scopes: Schema.$Array<Schema.Struct<{
4509
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4580
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4510
4581
  readonly id: Schema.String;
4511
4582
  }>>;
4512
4583
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4513
4584
  readonly scope: Schema.Struct<{
4514
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4585
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4515
4586
  readonly id: Schema.String;
4516
4587
  }>;
4517
4588
  readonly index: Schema.Finite;
@@ -4600,12 +4671,12 @@ export declare const MailboxesApproveAction200: Schema.Union<readonly [Schema.St
4600
4671
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4601
4672
  readonly reason: Schema.String;
4602
4673
  readonly scopes: Schema.$Array<Schema.Struct<{
4603
- 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">]>;
4604
4675
  readonly id: Schema.String;
4605
4676
  }>>;
4606
4677
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4607
4678
  readonly scope: Schema.Struct<{
4608
- 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">]>;
4609
4680
  readonly id: Schema.String;
4610
4681
  }>;
4611
4682
  readonly index: Schema.Finite;
@@ -4639,6 +4710,10 @@ export declare const MailboxesApproveAction200: Schema.Union<readonly [Schema.St
4639
4710
  readonly resolvedAt: Schema.String;
4640
4711
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
4641
4712
  }>, Schema.Null]>;
4713
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
4714
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
4715
+ readonly allowed: Schema.Boolean;
4716
+ }>, Schema.Null]>;
4642
4717
  readonly createdAt: Schema.String;
4643
4718
  readonly updatedAt: Schema.String;
4644
4719
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>;
@@ -4671,12 +4746,12 @@ export declare const MailboxesApproveAction202: Schema.Union<readonly [Schema.St
4671
4746
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4672
4747
  readonly reason: Schema.String;
4673
4748
  readonly scopes: Schema.$Array<Schema.Struct<{
4674
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4749
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4675
4750
  readonly id: Schema.String;
4676
4751
  }>>;
4677
4752
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4678
4753
  readonly scope: Schema.Struct<{
4679
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4754
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4680
4755
  readonly id: Schema.String;
4681
4756
  }>;
4682
4757
  readonly index: Schema.Finite;
@@ -4710,6 +4785,10 @@ export declare const MailboxesApproveAction202: Schema.Union<readonly [Schema.St
4710
4785
  readonly resolvedAt: Schema.String;
4711
4786
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
4712
4787
  }>, Schema.Null]>;
4788
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
4789
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
4790
+ readonly allowed: Schema.Boolean;
4791
+ }>, Schema.Null]>;
4713
4792
  readonly createdAt: Schema.String;
4714
4793
  readonly updatedAt: Schema.String;
4715
4794
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -4772,12 +4851,12 @@ export declare const MailboxesApproveAction202: Schema.Union<readonly [Schema.St
4772
4851
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4773
4852
  readonly reason: Schema.String;
4774
4853
  readonly scopes: Schema.$Array<Schema.Struct<{
4775
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4854
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4776
4855
  readonly id: Schema.String;
4777
4856
  }>>;
4778
4857
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4779
4858
  readonly scope: Schema.Struct<{
4780
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4859
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4781
4860
  readonly id: Schema.String;
4782
4861
  }>;
4783
4862
  readonly index: Schema.Finite;
@@ -4866,12 +4945,12 @@ export declare const MailboxesApproveAction202: Schema.Union<readonly [Schema.St
4866
4945
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
4867
4946
  readonly reason: Schema.String;
4868
4947
  readonly scopes: Schema.$Array<Schema.Struct<{
4869
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4948
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4870
4949
  readonly id: Schema.String;
4871
4950
  }>>;
4872
4951
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4873
4952
  readonly scope: Schema.Struct<{
4874
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4953
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
4875
4954
  readonly id: Schema.String;
4876
4955
  }>;
4877
4956
  readonly index: Schema.Finite;
@@ -4905,6 +4984,10 @@ export declare const MailboxesApproveAction202: Schema.Union<readonly [Schema.St
4905
4984
  readonly resolvedAt: Schema.String;
4906
4985
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
4907
4986
  }>, Schema.Null]>;
4987
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
4988
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
4989
+ readonly allowed: Schema.Boolean;
4990
+ }>, Schema.Null]>;
4908
4991
  readonly createdAt: Schema.String;
4909
4992
  readonly updatedAt: Schema.String;
4910
4993
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>;
@@ -5009,12 +5092,12 @@ export declare const MailboxesCancelAction200: Schema.Struct<{
5009
5092
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
5010
5093
  readonly reason: Schema.String;
5011
5094
  readonly scopes: Schema.$Array<Schema.Struct<{
5012
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5095
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5013
5096
  readonly id: Schema.String;
5014
5097
  }>>;
5015
5098
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5016
5099
  readonly scope: Schema.Struct<{
5017
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5100
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5018
5101
  readonly id: Schema.String;
5019
5102
  }>;
5020
5103
  readonly index: Schema.Finite;
@@ -5099,12 +5182,12 @@ export declare const MailboxesCancelAction202: Schema.Struct<{
5099
5182
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
5100
5183
  readonly reason: Schema.String;
5101
5184
  readonly scopes: Schema.$Array<Schema.Struct<{
5102
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5185
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5103
5186
  readonly id: Schema.String;
5104
5187
  }>>;
5105
5188
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5106
5189
  readonly scope: Schema.Struct<{
5107
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5190
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5108
5191
  readonly id: Schema.String;
5109
5192
  }>;
5110
5193
  readonly index: Schema.Finite;
@@ -5189,12 +5272,12 @@ export declare const MailboxesDenyAction200: Schema.Union<readonly [Schema.Struc
5189
5272
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
5190
5273
  readonly reason: Schema.String;
5191
5274
  readonly scopes: Schema.$Array<Schema.Struct<{
5192
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5275
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5193
5276
  readonly id: Schema.String;
5194
5277
  }>>;
5195
5278
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5196
5279
  readonly scope: Schema.Struct<{
5197
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5280
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5198
5281
  readonly id: Schema.String;
5199
5282
  }>;
5200
5283
  readonly index: Schema.Finite;
@@ -5228,6 +5311,10 @@ export declare const MailboxesDenyAction200: Schema.Union<readonly [Schema.Struc
5228
5311
  readonly resolvedAt: Schema.String;
5229
5312
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
5230
5313
  }>, Schema.Null]>;
5314
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
5315
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
5316
+ readonly allowed: Schema.Boolean;
5317
+ }>, Schema.Null]>;
5231
5318
  readonly createdAt: Schema.String;
5232
5319
  readonly updatedAt: Schema.String;
5233
5320
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -5290,12 +5377,12 @@ export declare const MailboxesDenyAction200: Schema.Union<readonly [Schema.Struc
5290
5377
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
5291
5378
  readonly reason: Schema.String;
5292
5379
  readonly scopes: Schema.$Array<Schema.Struct<{
5293
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5380
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5294
5381
  readonly id: Schema.String;
5295
5382
  }>>;
5296
5383
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5297
5384
  readonly scope: Schema.Struct<{
5298
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5385
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5299
5386
  readonly id: Schema.String;
5300
5387
  }>;
5301
5388
  readonly index: Schema.Finite;
@@ -5384,12 +5471,12 @@ export declare const MailboxesDenyAction200: Schema.Union<readonly [Schema.Struc
5384
5471
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
5385
5472
  readonly reason: Schema.String;
5386
5473
  readonly scopes: Schema.$Array<Schema.Struct<{
5387
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5474
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5388
5475
  readonly id: Schema.String;
5389
5476
  }>>;
5390
5477
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5391
5478
  readonly scope: Schema.Struct<{
5392
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5479
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5393
5480
  readonly id: Schema.String;
5394
5481
  }>;
5395
5482
  readonly index: Schema.Finite;
@@ -5423,6 +5510,10 @@ export declare const MailboxesDenyAction200: Schema.Union<readonly [Schema.Struc
5423
5510
  readonly resolvedAt: Schema.String;
5424
5511
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
5425
5512
  }>, Schema.Null]>;
5513
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
5514
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
5515
+ readonly allowed: Schema.Boolean;
5516
+ }>, Schema.Null]>;
5426
5517
  readonly createdAt: Schema.String;
5427
5518
  readonly updatedAt: Schema.String;
5428
5519
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>;
@@ -5519,12 +5610,12 @@ export declare const MailboxesRetryAction200: Schema.Struct<{
5519
5610
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
5520
5611
  readonly reason: Schema.String;
5521
5612
  readonly scopes: Schema.$Array<Schema.Struct<{
5522
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5613
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5523
5614
  readonly id: Schema.String;
5524
5615
  }>>;
5525
5616
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5526
5617
  readonly scope: Schema.Struct<{
5527
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5618
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5528
5619
  readonly id: Schema.String;
5529
5620
  }>;
5530
5621
  readonly index: Schema.Finite;
@@ -5609,12 +5700,12 @@ export declare const MailboxesRetryAction202: Schema.Struct<{
5609
5700
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
5610
5701
  readonly reason: Schema.String;
5611
5702
  readonly scopes: Schema.$Array<Schema.Struct<{
5612
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5703
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5613
5704
  readonly id: Schema.String;
5614
5705
  }>>;
5615
5706
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5616
5707
  readonly scope: Schema.Struct<{
5617
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5708
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
5618
5709
  readonly id: Schema.String;
5619
5710
  }>;
5620
5711
  readonly index: Schema.Finite;
@@ -6094,12 +6185,12 @@ export declare const MailboxesSendDraft200: Schema.Struct<{
6094
6185
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
6095
6186
  readonly reason: Schema.String;
6096
6187
  readonly scopes: Schema.$Array<Schema.Struct<{
6097
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6188
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6098
6189
  readonly id: Schema.String;
6099
6190
  }>>;
6100
6191
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
6101
6192
  readonly scope: Schema.Struct<{
6102
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6193
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6103
6194
  readonly id: Schema.String;
6104
6195
  }>;
6105
6196
  readonly index: Schema.Finite;
@@ -6184,12 +6275,12 @@ export declare const MailboxesSendDraft202: Schema.Struct<{
6184
6275
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
6185
6276
  readonly reason: Schema.String;
6186
6277
  readonly scopes: Schema.$Array<Schema.Struct<{
6187
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6278
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6188
6279
  readonly id: Schema.String;
6189
6280
  }>>;
6190
6281
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
6191
6282
  readonly scope: Schema.Struct<{
6192
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6283
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6193
6284
  readonly id: Schema.String;
6194
6285
  }>;
6195
6286
  readonly index: Schema.Finite;
@@ -6904,12 +6995,12 @@ export declare const MailboxesSendMessage200: Schema.Struct<{
6904
6995
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
6905
6996
  readonly reason: Schema.String;
6906
6997
  readonly scopes: Schema.$Array<Schema.Struct<{
6907
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6998
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6908
6999
  readonly id: Schema.String;
6909
7000
  }>>;
6910
7001
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
6911
7002
  readonly scope: Schema.Struct<{
6912
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7003
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6913
7004
  readonly id: Schema.String;
6914
7005
  }>;
6915
7006
  readonly index: Schema.Finite;
@@ -6994,12 +7085,12 @@ export declare const MailboxesSendMessage202: Schema.Struct<{
6994
7085
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
6995
7086
  readonly reason: Schema.String;
6996
7087
  readonly scopes: Schema.$Array<Schema.Struct<{
6997
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7088
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
6998
7089
  readonly id: Schema.String;
6999
7090
  }>>;
7000
7091
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
7001
7092
  readonly scope: Schema.Struct<{
7002
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7093
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7003
7094
  readonly id: Schema.String;
7004
7095
  }>;
7005
7096
  readonly index: Schema.Finite;
@@ -7370,12 +7461,12 @@ export declare const MailboxesForward200: Schema.Struct<{
7370
7461
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
7371
7462
  readonly reason: Schema.String;
7372
7463
  readonly scopes: Schema.$Array<Schema.Struct<{
7373
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7464
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7374
7465
  readonly id: Schema.String;
7375
7466
  }>>;
7376
7467
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
7377
7468
  readonly scope: Schema.Struct<{
7378
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7469
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7379
7470
  readonly id: Schema.String;
7380
7471
  }>;
7381
7472
  readonly index: Schema.Finite;
@@ -7460,12 +7551,12 @@ export declare const MailboxesForward202: Schema.Struct<{
7460
7551
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
7461
7552
  readonly reason: Schema.String;
7462
7553
  readonly scopes: Schema.$Array<Schema.Struct<{
7463
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7554
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7464
7555
  readonly id: Schema.String;
7465
7556
  }>>;
7466
7557
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
7467
7558
  readonly scope: Schema.Struct<{
7468
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7559
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7469
7560
  readonly id: Schema.String;
7470
7561
  }>;
7471
7562
  readonly index: Schema.Finite;
@@ -7676,12 +7767,12 @@ export declare const MailboxesReply200: Schema.Struct<{
7676
7767
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
7677
7768
  readonly reason: Schema.String;
7678
7769
  readonly scopes: Schema.$Array<Schema.Struct<{
7679
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7770
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7680
7771
  readonly id: Schema.String;
7681
7772
  }>>;
7682
7773
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
7683
7774
  readonly scope: Schema.Struct<{
7684
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7775
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7685
7776
  readonly id: Schema.String;
7686
7777
  }>;
7687
7778
  readonly index: Schema.Finite;
@@ -7766,12 +7857,12 @@ export declare const MailboxesReply202: Schema.Struct<{
7766
7857
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
7767
7858
  readonly reason: Schema.String;
7768
7859
  readonly scopes: Schema.$Array<Schema.Struct<{
7769
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7860
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7770
7861
  readonly id: Schema.String;
7771
7862
  }>>;
7772
7863
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
7773
7864
  readonly scope: Schema.Struct<{
7774
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7865
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7775
7866
  readonly id: Schema.String;
7776
7867
  }>;
7777
7868
  readonly index: Schema.Finite;
@@ -7914,12 +8005,12 @@ export declare const MailboxesReplyAll200: Schema.Struct<{
7914
8005
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
7915
8006
  readonly reason: Schema.String;
7916
8007
  readonly scopes: Schema.$Array<Schema.Struct<{
7917
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
8008
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7918
8009
  readonly id: Schema.String;
7919
8010
  }>>;
7920
8011
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
7921
8012
  readonly scope: Schema.Struct<{
7922
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
8013
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
7923
8014
  readonly id: Schema.String;
7924
8015
  }>;
7925
8016
  readonly index: Schema.Finite;
@@ -8004,12 +8095,12 @@ export declare const MailboxesReplyAll202: Schema.Struct<{
8004
8095
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
8005
8096
  readonly reason: Schema.String;
8006
8097
  readonly scopes: Schema.$Array<Schema.Struct<{
8007
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
8098
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
8008
8099
  readonly id: Schema.String;
8009
8100
  }>>;
8010
8101
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
8011
8102
  readonly scope: Schema.Struct<{
8012
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
8103
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
8013
8104
  readonly id: Schema.String;
8014
8105
  }>;
8015
8106
  readonly index: Schema.Finite;
@@ -8947,12 +9038,12 @@ export declare const MailboxesGetNeedsYou200: Schema.Struct<{
8947
9038
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
8948
9039
  readonly reason: Schema.String;
8949
9040
  readonly scopes: Schema.$Array<Schema.Struct<{
8950
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9041
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
8951
9042
  readonly id: Schema.String;
8952
9043
  }>>;
8953
9044
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
8954
9045
  readonly scope: Schema.Struct<{
8955
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9046
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
8956
9047
  readonly id: Schema.String;
8957
9048
  }>;
8958
9049
  readonly index: Schema.Finite;
@@ -9089,6 +9180,10 @@ export declare const MailboxesGetNeedsYou200: Schema.Struct<{
9089
9180
  readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
9090
9181
  }>;
9091
9182
  readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"aiSdkTool">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
9183
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
9184
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
9185
+ readonly allowed: Schema.Boolean;
9186
+ }>, Schema.Null]>;
9092
9187
  readonly createdAt: Schema.String;
9093
9188
  }>, Schema.Struct<{
9094
9189
  readonly type: Schema.Literal<"quarantinedMessage">;
@@ -9352,12 +9447,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9352
9447
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
9353
9448
  readonly reason: Schema.String;
9354
9449
  readonly scopes: Schema.$Array<Schema.Struct<{
9355
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9450
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9356
9451
  readonly id: Schema.String;
9357
9452
  }>>;
9358
9453
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
9359
9454
  readonly scope: Schema.Struct<{
9360
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9455
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9361
9456
  readonly id: Schema.String;
9362
9457
  }>;
9363
9458
  readonly index: Schema.Finite;
@@ -9391,6 +9486,10 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9391
9486
  readonly resolvedAt: Schema.String;
9392
9487
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
9393
9488
  }>, Schema.Null]>;
9489
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
9490
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
9491
+ readonly allowed: Schema.Boolean;
9492
+ }>, Schema.Null]>;
9394
9493
  readonly createdAt: Schema.String;
9395
9494
  readonly updatedAt: Schema.String;
9396
9495
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -9453,12 +9552,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9453
9552
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
9454
9553
  readonly reason: Schema.String;
9455
9554
  readonly scopes: Schema.$Array<Schema.Struct<{
9456
- 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">]>;
9457
9556
  readonly id: Schema.String;
9458
9557
  }>>;
9459
9558
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
9460
9559
  readonly scope: Schema.Struct<{
9461
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9560
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9462
9561
  readonly id: Schema.String;
9463
9562
  }>;
9464
9563
  readonly index: Schema.Finite;
@@ -9547,12 +9646,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9547
9646
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
9548
9647
  readonly reason: Schema.String;
9549
9648
  readonly scopes: Schema.$Array<Schema.Struct<{
9550
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9649
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9551
9650
  readonly id: Schema.String;
9552
9651
  }>>;
9553
9652
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
9554
9653
  readonly scope: Schema.Struct<{
9555
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9654
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9556
9655
  readonly id: Schema.String;
9557
9656
  }>;
9558
9657
  readonly index: Schema.Finite;
@@ -9586,6 +9685,10 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9586
9685
  readonly resolvedAt: Schema.String;
9587
9686
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
9588
9687
  }>, Schema.Null]>;
9688
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
9689
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
9690
+ readonly allowed: Schema.Boolean;
9691
+ }>, Schema.Null]>;
9589
9692
  readonly createdAt: Schema.String;
9590
9693
  readonly updatedAt: Schema.String;
9591
9694
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>;
@@ -9799,12 +9902,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9799
9902
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
9800
9903
  readonly reason: Schema.String;
9801
9904
  readonly scopes: Schema.$Array<Schema.Struct<{
9802
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9905
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9803
9906
  readonly id: Schema.String;
9804
9907
  }>>;
9805
9908
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
9806
9909
  readonly scope: Schema.Struct<{
9807
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9910
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9808
9911
  readonly id: Schema.String;
9809
9912
  }>;
9810
9913
  readonly index: Schema.Finite;
@@ -9887,12 +9990,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9887
9990
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
9888
9991
  readonly reason: Schema.String;
9889
9992
  readonly scopes: Schema.$Array<Schema.Struct<{
9890
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9993
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9891
9994
  readonly id: Schema.String;
9892
9995
  }>>;
9893
9996
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
9894
9997
  readonly scope: Schema.Struct<{
9895
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9998
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
9896
9999
  readonly id: Schema.String;
9897
10000
  }>;
9898
10001
  readonly index: Schema.Finite;
@@ -11422,12 +11525,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11422
11525
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
11423
11526
  readonly reason: Schema.String;
11424
11527
  readonly scopes: Schema.$Array<Schema.Struct<{
11425
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11528
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11426
11529
  readonly id: Schema.String;
11427
11530
  }>>;
11428
11531
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
11429
11532
  readonly scope: Schema.Struct<{
11430
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11533
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11431
11534
  readonly id: Schema.String;
11432
11535
  }>;
11433
11536
  readonly index: Schema.Finite;
@@ -11461,6 +11564,10 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11461
11564
  readonly resolvedAt: Schema.String;
11462
11565
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
11463
11566
  }>, Schema.Null]>;
11567
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
11568
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
11569
+ readonly allowed: Schema.Boolean;
11570
+ }>, Schema.Null]>;
11464
11571
  readonly createdAt: Schema.String;
11465
11572
  readonly updatedAt: Schema.String;
11466
11573
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -11523,12 +11630,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11523
11630
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
11524
11631
  readonly reason: Schema.String;
11525
11632
  readonly scopes: Schema.$Array<Schema.Struct<{
11526
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11633
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11527
11634
  readonly id: Schema.String;
11528
11635
  }>>;
11529
11636
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
11530
11637
  readonly scope: Schema.Struct<{
11531
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11638
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11532
11639
  readonly id: Schema.String;
11533
11640
  }>;
11534
11641
  readonly index: Schema.Finite;
@@ -11617,12 +11724,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11617
11724
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
11618
11725
  readonly reason: Schema.String;
11619
11726
  readonly scopes: Schema.$Array<Schema.Struct<{
11620
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11727
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11621
11728
  readonly id: Schema.String;
11622
11729
  }>>;
11623
11730
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
11624
11731
  readonly scope: Schema.Struct<{
11625
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11732
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11626
11733
  readonly id: Schema.String;
11627
11734
  }>;
11628
11735
  readonly index: Schema.Finite;
@@ -11656,6 +11763,10 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11656
11763
  readonly resolvedAt: Schema.String;
11657
11764
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
11658
11765
  }>, Schema.Null]>;
11766
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
11767
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
11768
+ readonly allowed: Schema.Boolean;
11769
+ }>, Schema.Null]>;
11659
11770
  readonly createdAt: Schema.String;
11660
11771
  readonly updatedAt: Schema.String;
11661
11772
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>;
@@ -11994,12 +12105,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11994
12105
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
11995
12106
  readonly reason: Schema.String;
11996
12107
  readonly scopes: Schema.$Array<Schema.Struct<{
11997
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12108
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
11998
12109
  readonly id: Schema.String;
11999
12110
  }>>;
12000
12111
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
12001
12112
  readonly scope: Schema.Struct<{
12002
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12113
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12003
12114
  readonly id: Schema.String;
12004
12115
  }>;
12005
12116
  readonly index: Schema.Finite;
@@ -12082,12 +12193,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12082
12193
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
12083
12194
  readonly reason: Schema.String;
12084
12195
  readonly scopes: Schema.$Array<Schema.Struct<{
12085
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12196
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12086
12197
  readonly id: Schema.String;
12087
12198
  }>>;
12088
12199
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
12089
12200
  readonly scope: Schema.Struct<{
12090
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12201
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12091
12202
  readonly id: Schema.String;
12092
12203
  }>;
12093
12204
  readonly index: Schema.Finite;
@@ -12413,12 +12524,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12413
12524
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
12414
12525
  readonly reason: Schema.String;
12415
12526
  readonly scopes: Schema.$Array<Schema.Struct<{
12416
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12527
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12417
12528
  readonly id: Schema.String;
12418
12529
  }>>;
12419
12530
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
12420
12531
  readonly scope: Schema.Struct<{
12421
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12532
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12422
12533
  readonly id: Schema.String;
12423
12534
  }>;
12424
12535
  readonly index: Schema.Finite;
@@ -12452,6 +12563,10 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12452
12563
  readonly resolvedAt: Schema.String;
12453
12564
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
12454
12565
  }>, Schema.Null]>;
12566
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
12567
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
12568
+ readonly allowed: Schema.Boolean;
12569
+ }>, Schema.Null]>;
12455
12570
  readonly createdAt: Schema.String;
12456
12571
  readonly updatedAt: Schema.String;
12457
12572
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -12514,12 +12629,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12514
12629
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
12515
12630
  readonly reason: Schema.String;
12516
12631
  readonly scopes: Schema.$Array<Schema.Struct<{
12517
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12632
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12518
12633
  readonly id: Schema.String;
12519
12634
  }>>;
12520
12635
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
12521
12636
  readonly scope: Schema.Struct<{
12522
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12637
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12523
12638
  readonly id: Schema.String;
12524
12639
  }>;
12525
12640
  readonly index: Schema.Finite;
@@ -12608,12 +12723,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12608
12723
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
12609
12724
  readonly reason: Schema.String;
12610
12725
  readonly scopes: Schema.$Array<Schema.Struct<{
12611
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12726
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12612
12727
  readonly id: Schema.String;
12613
12728
  }>>;
12614
12729
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
12615
12730
  readonly scope: Schema.Struct<{
12616
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12731
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
12617
12732
  readonly id: Schema.String;
12618
12733
  }>;
12619
12734
  readonly index: Schema.Finite;
@@ -12647,6 +12762,10 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12647
12762
  readonly resolvedAt: Schema.String;
12648
12763
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
12649
12764
  }>, Schema.Null]>;
12765
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
12766
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
12767
+ readonly allowed: Schema.Boolean;
12768
+ }>, Schema.Null]>;
12650
12769
  readonly createdAt: Schema.String;
12651
12770
  readonly updatedAt: Schema.String;
12652
12771
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>;
@@ -13448,12 +13567,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
13448
13567
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
13449
13568
  readonly reason: Schema.String;
13450
13569
  readonly scopes: Schema.$Array<Schema.Struct<{
13451
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
13570
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
13452
13571
  readonly id: Schema.String;
13453
13572
  }>>;
13454
13573
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
13455
13574
  readonly scope: Schema.Struct<{
13456
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
13575
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
13457
13576
  readonly id: Schema.String;
13458
13577
  }>;
13459
13578
  readonly index: Schema.Finite;
@@ -13590,6 +13709,10 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
13590
13709
  readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
13591
13710
  }>;
13592
13711
  readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"aiSdkTool">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
13712
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
13713
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
13714
+ readonly allowed: Schema.Boolean;
13715
+ }>, Schema.Null]>;
13593
13716
  readonly createdAt: Schema.String;
13594
13717
  }>, Schema.Struct<{
13595
13718
  readonly type: Schema.Literal<"quarantinedMessage">;
@@ -14167,12 +14290,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
14167
14290
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
14168
14291
  readonly reason: Schema.String;
14169
14292
  readonly scopes: Schema.$Array<Schema.Struct<{
14170
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14293
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14171
14294
  readonly id: Schema.String;
14172
14295
  }>>;
14173
14296
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
14174
14297
  readonly scope: Schema.Struct<{
14175
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14298
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14176
14299
  readonly id: Schema.String;
14177
14300
  }>;
14178
14301
  readonly index: Schema.Finite;
@@ -14206,6 +14329,10 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
14206
14329
  readonly resolvedAt: Schema.String;
14207
14330
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
14208
14331
  }>, Schema.Null]>;
14332
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
14333
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
14334
+ readonly allowed: Schema.Boolean;
14335
+ }>, Schema.Null]>;
14209
14336
  readonly createdAt: Schema.String;
14210
14337
  readonly updatedAt: Schema.String;
14211
14338
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -14268,12 +14395,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
14268
14395
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
14269
14396
  readonly reason: Schema.String;
14270
14397
  readonly scopes: Schema.$Array<Schema.Struct<{
14271
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14398
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14272
14399
  readonly id: Schema.String;
14273
14400
  }>>;
14274
14401
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
14275
14402
  readonly scope: Schema.Struct<{
14276
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14403
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14277
14404
  readonly id: Schema.String;
14278
14405
  }>;
14279
14406
  readonly index: Schema.Finite;
@@ -14362,12 +14489,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
14362
14489
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
14363
14490
  readonly reason: Schema.String;
14364
14491
  readonly scopes: Schema.$Array<Schema.Struct<{
14365
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14492
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14366
14493
  readonly id: Schema.String;
14367
14494
  }>>;
14368
14495
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
14369
14496
  readonly scope: Schema.Struct<{
14370
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14497
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
14371
14498
  readonly id: Schema.String;
14372
14499
  }>;
14373
14500
  readonly index: Schema.Finite;
@@ -14401,6 +14528,10 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
14401
14528
  readonly resolvedAt: Schema.String;
14402
14529
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
14403
14530
  }>, Schema.Null]>;
14531
+ readonly alwaysAllow: Schema.Union<readonly [Schema.Struct<{
14532
+ readonly by: Schema.Union<readonly [Schema.Literal<"owner">, Schema.Literal<"admin">, Schema.Literal<"approver">]>;
14533
+ readonly allowed: Schema.Boolean;
14534
+ }>, Schema.Null]>;
14404
14535
  readonly createdAt: Schema.String;
14405
14536
  readonly updatedAt: Schema.String;
14406
14537
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>;
@@ -16625,12 +16756,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
16625
16756
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
16626
16757
  readonly reason: Schema.String;
16627
16758
  readonly scopes: Schema.$Array<Schema.Struct<{
16628
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16759
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16629
16760
  readonly id: Schema.String;
16630
16761
  }>>;
16631
16762
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
16632
16763
  readonly scope: Schema.Struct<{
16633
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16764
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16634
16765
  readonly id: Schema.String;
16635
16766
  }>;
16636
16767
  readonly index: Schema.Finite;
@@ -16713,12 +16844,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
16713
16844
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
16714
16845
  readonly reason: Schema.String;
16715
16846
  readonly scopes: Schema.$Array<Schema.Struct<{
16716
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16847
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16717
16848
  readonly id: Schema.String;
16718
16849
  }>>;
16719
16850
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
16720
16851
  readonly scope: Schema.Struct<{
16721
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16852
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16722
16853
  readonly id: Schema.String;
16723
16854
  }>;
16724
16855
  readonly index: Schema.Finite;
@@ -16964,12 +17095,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
16964
17095
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
16965
17096
  readonly reason: Schema.String;
16966
17097
  readonly scopes: Schema.$Array<Schema.Struct<{
16967
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17098
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16968
17099
  readonly id: Schema.String;
16969
17100
  }>>;
16970
17101
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
16971
17102
  readonly scope: Schema.Struct<{
16972
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17103
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
16973
17104
  readonly id: Schema.String;
16974
17105
  }>;
16975
17106
  readonly index: Schema.Finite;
@@ -17052,12 +17183,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
17052
17183
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
17053
17184
  readonly reason: Schema.String;
17054
17185
  readonly scopes: Schema.$Array<Schema.Struct<{
17055
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17186
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17056
17187
  readonly id: Schema.String;
17057
17188
  }>>;
17058
17189
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
17059
17190
  readonly scope: Schema.Struct<{
17060
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17191
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17061
17192
  readonly id: Schema.String;
17062
17193
  }>;
17063
17194
  readonly index: Schema.Finite;
@@ -17423,12 +17554,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
17423
17554
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
17424
17555
  readonly reason: Schema.String;
17425
17556
  readonly scopes: Schema.$Array<Schema.Struct<{
17426
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17557
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17427
17558
  readonly id: Schema.String;
17428
17559
  }>>;
17429
17560
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
17430
17561
  readonly scope: Schema.Struct<{
17431
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17562
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17432
17563
  readonly id: Schema.String;
17433
17564
  }>;
17434
17565
  readonly index: Schema.Finite;
@@ -17511,12 +17642,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
17511
17642
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
17512
17643
  readonly reason: Schema.String;
17513
17644
  readonly scopes: Schema.$Array<Schema.Struct<{
17514
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17645
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17515
17646
  readonly id: Schema.String;
17516
17647
  }>>;
17517
17648
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
17518
17649
  readonly scope: Schema.Struct<{
17519
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17650
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17520
17651
  readonly id: Schema.String;
17521
17652
  }>;
17522
17653
  readonly index: Schema.Finite;
@@ -17869,12 +18000,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
17869
18000
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
17870
18001
  readonly reason: Schema.String;
17871
18002
  readonly scopes: Schema.$Array<Schema.Struct<{
17872
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18003
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17873
18004
  readonly id: Schema.String;
17874
18005
  }>>;
17875
18006
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
17876
18007
  readonly scope: Schema.Struct<{
17877
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18008
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17878
18009
  readonly id: Schema.String;
17879
18010
  }>;
17880
18011
  readonly index: Schema.Finite;
@@ -17957,12 +18088,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
17957
18088
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
17958
18089
  readonly reason: Schema.String;
17959
18090
  readonly scopes: Schema.$Array<Schema.Struct<{
17960
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18091
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17961
18092
  readonly id: Schema.String;
17962
18093
  }>>;
17963
18094
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
17964
18095
  readonly scope: Schema.Struct<{
17965
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18096
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
17966
18097
  readonly id: Schema.String;
17967
18098
  }>;
17968
18099
  readonly index: Schema.Finite;
@@ -18211,12 +18342,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
18211
18342
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
18212
18343
  readonly reason: Schema.String;
18213
18344
  readonly scopes: Schema.$Array<Schema.Struct<{
18214
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18345
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18215
18346
  readonly id: Schema.String;
18216
18347
  }>>;
18217
18348
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
18218
18349
  readonly scope: Schema.Struct<{
18219
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18350
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18220
18351
  readonly id: Schema.String;
18221
18352
  }>;
18222
18353
  readonly index: Schema.Finite;
@@ -18299,12 +18430,12 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
18299
18430
  readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
18300
18431
  readonly reason: Schema.String;
18301
18432
  readonly scopes: Schema.$Array<Schema.Struct<{
18302
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18433
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18303
18434
  readonly id: Schema.String;
18304
18435
  }>>;
18305
18436
  readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
18306
18437
  readonly scope: Schema.Struct<{
18307
- readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18438
+ readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"integration">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
18308
18439
  readonly id: Schema.String;
18309
18440
  }>;
18310
18441
  readonly index: Schema.Finite;