samva 0.18.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/README.md +2 -0
  2. package/dist/client/sdk.gen.d.ts +94 -36
  3. package/dist/client/sdk.gen.js +269 -55
  4. package/dist/client/types.gen.d.ts +497 -106
  5. package/dist/effect/campaigns.d.ts +35 -3
  6. package/dist/effect/contact-groups.d.ts +39 -3
  7. package/dist/effect/contacts.d.ts +240 -17
  8. package/dist/effect/contacts.js +3 -1
  9. package/dist/effect/conversations.d.ts +11 -11
  10. package/dist/effect/email.d.ts +22 -6
  11. package/dist/effect/errors.d.ts +1 -1
  12. package/dist/effect/errors.js +2 -2
  13. package/dist/effect/extension-installations.d.ts +12 -12
  14. package/dist/effect/extensions.d.ts +3 -3
  15. package/dist/effect/generated/campaigns.d.ts +73 -4
  16. package/dist/effect/generated/campaigns.js +18 -1
  17. package/dist/effect/generated/contact-groups.d.ts +33 -3
  18. package/dist/effect/generated/contacts.d.ts +608 -55
  19. package/dist/effect/generated/contacts.js +55 -10
  20. package/dist/effect/generated/conversations.d.ts +25 -25
  21. package/dist/effect/generated/conversations.js +1 -1
  22. package/dist/effect/generated/email.d.ts +162 -1
  23. package/dist/effect/generated/email.js +31 -11
  24. package/dist/effect/generated/extension-installations.d.ts +44 -44
  25. package/dist/effect/generated/extension-installations.js +6 -0
  26. package/dist/effect/generated/extensions.d.ts +10 -10
  27. package/dist/effect/generated/extensions.js +2 -0
  28. package/dist/effect/generated/journeys.d.ts +13 -61
  29. package/dist/effect/generated/journeys.js +5 -5
  30. package/dist/effect/generated/mailboxes.d.ts +584 -78
  31. package/dist/effect/generated/mailboxes.js +65 -24
  32. package/dist/effect/generated/messages.d.ts +35 -1
  33. package/dist/effect/generated/messages.js +9 -2
  34. package/dist/effect/generated/namespaces.d.ts +432 -2
  35. package/dist/effect/generated/namespaces.js +91 -4
  36. package/dist/effect/generated/organizations.d.ts +13 -11
  37. package/dist/effect/generated/organizations.js +7 -3
  38. package/dist/effect/generated/shared.d.ts +104 -49
  39. package/dist/effect/generated/shared.js +51 -28
  40. package/dist/effect/generated/templates.d.ts +44 -1
  41. package/dist/effect/generated/templates.js +9 -3
  42. package/dist/effect/generated/unsubscribe-groups.d.ts +173 -78
  43. package/dist/effect/generated/unsubscribe-groups.js +75 -58
  44. package/dist/effect/generated/webhooks.d.ts +19 -19
  45. package/dist/effect/generated/webhooks.js +8 -0
  46. package/dist/effect/generated-metadata.d.ts +22 -6
  47. package/dist/effect/generated-metadata.js +334 -329
  48. package/dist/effect/index.js +2 -2
  49. package/dist/effect/journeys.d.ts +4 -4
  50. package/dist/effect/mailboxes.d.ts +144 -12
  51. package/dist/effect/messages.d.ts +8 -0
  52. package/dist/effect/namespaces.d.ts +29 -0
  53. package/dist/effect/namespaces.js +7 -1
  54. package/dist/effect/organizations.d.ts +4 -4
  55. package/dist/effect/templates.d.ts +12 -1
  56. package/dist/effect/unsubscribe-groups.d.ts +29 -18
  57. package/dist/effect/unsubscribe-groups.js +5 -5
  58. package/dist/effect/webhooks.d.ts +8 -8
  59. package/dist/index.js +2 -2
  60. package/dist/mailbox-events.d.ts +31 -4
  61. package/dist/mailbox-events.js +39 -11
  62. package/dist/package.js +1 -1
  63. package/dist/promises/errors.gen.d.ts +2 -12
  64. package/dist/promises/errors.gen.js +1 -26
  65. package/dist/promises/index.d.ts +1 -1
  66. package/dist/promises/index.js +2 -2
  67. package/dist/promises/types.gen.d.ts +1 -1
  68. package/dist/service-map.d.ts +24 -4
  69. package/dist/service-map.js +26 -2
  70. package/package.json +2 -2
@@ -1,9 +1,31 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, ConflictError, ConversationId, CreateMailboxEndpointPayload, Cursor, EmailAttachment, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxChannelUnsupportedError, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxPolicyId, MailboxPolicyOutcomeKind, MailboxSendConflictError, MailboxSendMode, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MediaId, MessageId, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, SkippedRecipient, SuccessResponse, UnauthorizedError, UserId, ValidationError } from "./shared";
4
+ import { ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, ConflictError, ConversationId, CreateMailboxEndpointPayload, Cursor, EmailAttachment, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxPolicyId, MailboxPolicyOutcomeKind, MailboxSendConflictError, MailboxSendMode, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MediaId, MessageId, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, SkippedRecipient, SuccessResponse, UnauthorizedError, UserId, ValidationError } from "./shared";
5
5
  export type MailboxStatus = "active" | "paused";
6
6
  export declare const MailboxStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">]>;
7
+ export type MailboxActionResolution = {
8
+ readonly outcome: "approved" | "denied" | "cancelled";
9
+ readonly actor: {
10
+ readonly kind: "user" | "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system";
11
+ readonly id: string;
12
+ readonly displayName?: string | null;
13
+ readonly source: "humanUi" | "externalApi" | "externalAgent" | "extension" | "system";
14
+ };
15
+ readonly resolvedAt: string;
16
+ readonly reason: string | null;
17
+ };
18
+ export declare const MailboxActionResolution: Schema.Struct<{
19
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
20
+ readonly actor: Schema.Struct<{
21
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
22
+ readonly id: Schema.String;
23
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
24
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
25
+ }>;
26
+ readonly resolvedAt: Schema.String;
27
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
28
+ }>;
7
29
  export type MailboxAgentActivity = {
8
30
  readonly actions: {
9
31
  readonly byType: ReadonlyArray<{
@@ -753,6 +775,7 @@ export type MailboxNonSendAction = {
753
775
  readonly threadId: MailboxThreadId | null;
754
776
  readonly draftId: MailboxDraftId | null;
755
777
  readonly decision: MailboxActionDecision | null;
778
+ readonly resolution: MailboxActionResolution | null;
756
779
  readonly createdAt: string;
757
780
  readonly updatedAt: string;
758
781
  readonly type: "updateDraft" | "createNote" | "assignThread" | "changeThreadState" | "call" | "extensionRequest";
@@ -775,6 +798,17 @@ export declare const MailboxNonSendAction: Schema.Struct<{
775
798
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
776
799
  readonly decidedAt: Schema.String;
777
800
  }>, Schema.Null]>;
801
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
802
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
803
+ readonly actor: Schema.Struct<{
804
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
805
+ readonly id: Schema.String;
806
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
807
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
808
+ }>;
809
+ readonly resolvedAt: Schema.String;
810
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
811
+ }>, Schema.Null]>;
778
812
  readonly createdAt: Schema.String;
779
813
  readonly updatedAt: Schema.String;
780
814
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
@@ -1105,6 +1139,7 @@ export type MailboxSendAction = {
1105
1139
  readonly threadId: MailboxThreadId | null;
1106
1140
  readonly draftId: MailboxDraftId | null;
1107
1141
  readonly decision: MailboxActionDecision | null;
1142
+ readonly resolution: MailboxActionResolution | null;
1108
1143
  readonly createdAt: string;
1109
1144
  readonly updatedAt: string;
1110
1145
  readonly type: "sendMessage" | "reply";
@@ -1129,6 +1164,17 @@ export declare const MailboxSendAction: Schema.Struct<{
1129
1164
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
1130
1165
  readonly decidedAt: Schema.String;
1131
1166
  }>, Schema.Null]>;
1167
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
1168
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
1169
+ readonly actor: Schema.Struct<{
1170
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
1171
+ readonly id: Schema.String;
1172
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1173
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
1174
+ }>;
1175
+ readonly resolvedAt: Schema.String;
1176
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1177
+ }>, Schema.Null]>;
1132
1178
  readonly createdAt: Schema.String;
1133
1179
  readonly updatedAt: Schema.String;
1134
1180
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -1242,6 +1288,17 @@ export declare const MailboxAction: Schema.Union<readonly [Schema.Struct<{
1242
1288
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
1243
1289
  readonly decidedAt: Schema.String;
1244
1290
  }>, Schema.Null]>;
1291
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
1292
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
1293
+ readonly actor: Schema.Struct<{
1294
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
1295
+ readonly id: Schema.String;
1296
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1297
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
1298
+ }>;
1299
+ readonly resolvedAt: Schema.String;
1300
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1301
+ }>, Schema.Null]>;
1245
1302
  readonly createdAt: Schema.String;
1246
1303
  readonly updatedAt: Schema.String;
1247
1304
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -1353,6 +1410,17 @@ export declare const MailboxAction: Schema.Union<readonly [Schema.Struct<{
1353
1410
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
1354
1411
  readonly decidedAt: Schema.String;
1355
1412
  }>, Schema.Null]>;
1413
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
1414
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
1415
+ readonly actor: Schema.Struct<{
1416
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
1417
+ readonly id: Schema.String;
1418
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1419
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
1420
+ }>;
1421
+ readonly resolvedAt: Schema.String;
1422
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1423
+ }>, Schema.Null]>;
1356
1424
  readonly createdAt: Schema.String;
1357
1425
  readonly updatedAt: Schema.String;
1358
1426
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
@@ -1376,6 +1444,17 @@ export declare const MailboxPendingAction: Schema.Union<readonly [Schema.Struct<
1376
1444
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
1377
1445
  readonly decidedAt: Schema.String;
1378
1446
  }>, Schema.Null]>;
1447
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
1448
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
1449
+ readonly actor: Schema.Struct<{
1450
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
1451
+ readonly id: Schema.String;
1452
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1453
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
1454
+ }>;
1455
+ readonly resolvedAt: Schema.String;
1456
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1457
+ }>, Schema.Null]>;
1379
1458
  readonly createdAt: Schema.String;
1380
1459
  readonly updatedAt: Schema.String;
1381
1460
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -1487,6 +1566,17 @@ export declare const MailboxPendingAction: Schema.Union<readonly [Schema.Struct<
1487
1566
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
1488
1567
  readonly decidedAt: Schema.String;
1489
1568
  }>, Schema.Null]>;
1569
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
1570
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
1571
+ readonly actor: Schema.Struct<{
1572
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
1573
+ readonly id: Schema.String;
1574
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1575
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
1576
+ }>;
1577
+ readonly resolvedAt: Schema.String;
1578
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1579
+ }>, Schema.Null]>;
1490
1580
  readonly createdAt: Schema.String;
1491
1581
  readonly updatedAt: Schema.String;
1492
1582
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
@@ -1514,6 +1604,17 @@ export declare const MailboxActionPage: Schema.Struct<{
1514
1604
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
1515
1605
  readonly decidedAt: Schema.String;
1516
1606
  }>, Schema.Null]>;
1607
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
1608
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
1609
+ readonly actor: Schema.Struct<{
1610
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
1611
+ readonly id: Schema.String;
1612
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1613
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
1614
+ }>;
1615
+ readonly resolvedAt: Schema.String;
1616
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1617
+ }>, Schema.Null]>;
1517
1618
  readonly createdAt: Schema.String;
1518
1619
  readonly updatedAt: Schema.String;
1519
1620
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -1625,6 +1726,17 @@ export declare const MailboxActionPage: Schema.Struct<{
1625
1726
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
1626
1727
  readonly decidedAt: Schema.String;
1627
1728
  }>, Schema.Null]>;
1729
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
1730
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
1731
+ readonly actor: Schema.Struct<{
1732
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
1733
+ readonly id: Schema.String;
1734
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1735
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
1736
+ }>;
1737
+ readonly resolvedAt: Schema.String;
1738
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1739
+ }>, Schema.Null]>;
1628
1740
  readonly createdAt: Schema.String;
1629
1741
  readonly updatedAt: Schema.String;
1630
1742
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
@@ -1711,14 +1823,14 @@ export type MailboxesCreate401 = UnauthorizedError;
1711
1823
  export declare const MailboxesCreate401: typeof UnauthorizedError;
1712
1824
  export type MailboxesCreate402 = PaymentRequiredError;
1713
1825
  export declare const MailboxesCreate402: typeof PaymentRequiredError;
1714
- export type MailboxesCreate403 = ForbiddenError;
1715
- export declare const MailboxesCreate403: typeof ForbiddenError;
1826
+ export type MailboxesCreate403 = FlagDisabledError | ForbiddenError;
1827
+ export declare const MailboxesCreate403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
1716
1828
  export type MailboxesCreate404 = ResourceNotFoundError;
1717
1829
  export declare const MailboxesCreate404: typeof ResourceNotFoundError;
1718
1830
  export type MailboxesCreate409 = ConflictError;
1719
1831
  export declare const MailboxesCreate409: typeof ConflictError;
1720
- export type MailboxesCreate422 = ValidationError | MailboxChannelUnsupportedError;
1721
- export declare const MailboxesCreate422: Schema.Union<readonly [typeof ValidationError, typeof MailboxChannelUnsupportedError]>;
1832
+ export type MailboxesCreate422 = ValidationError;
1833
+ export declare const MailboxesCreate422: typeof ValidationError;
1722
1834
  export type MailboxesCreate500 = InternalError;
1723
1835
  export declare const MailboxesCreate500: typeof InternalError;
1724
1836
  export type MailboxesCreate502 = BillingProviderError;
@@ -1878,6 +1990,17 @@ export declare const MailboxesListActions200: Schema.Struct<{
1878
1990
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
1879
1991
  readonly decidedAt: Schema.String;
1880
1992
  }>, Schema.Null]>;
1993
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
1994
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
1995
+ readonly actor: Schema.Struct<{
1996
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
1997
+ readonly id: Schema.String;
1998
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1999
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
2000
+ }>;
2001
+ readonly resolvedAt: Schema.String;
2002
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2003
+ }>, Schema.Null]>;
1881
2004
  readonly createdAt: Schema.String;
1882
2005
  readonly updatedAt: Schema.String;
1883
2006
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -1989,6 +2112,17 @@ export declare const MailboxesListActions200: Schema.Struct<{
1989
2112
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
1990
2113
  readonly decidedAt: Schema.String;
1991
2114
  }>, Schema.Null]>;
2115
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
2116
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
2117
+ readonly actor: Schema.Struct<{
2118
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2119
+ readonly id: Schema.String;
2120
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2121
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
2122
+ }>;
2123
+ readonly resolvedAt: Schema.String;
2124
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2125
+ }>, Schema.Null]>;
1992
2126
  readonly createdAt: Schema.String;
1993
2127
  readonly updatedAt: Schema.String;
1994
2128
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
@@ -2034,6 +2168,17 @@ export declare const MailboxesGetAction200: Schema.Union<readonly [Schema.Struct
2034
2168
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
2035
2169
  readonly decidedAt: Schema.String;
2036
2170
  }>, Schema.Null]>;
2171
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
2172
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
2173
+ readonly actor: Schema.Struct<{
2174
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2175
+ readonly id: Schema.String;
2176
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2177
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
2178
+ }>;
2179
+ readonly resolvedAt: Schema.String;
2180
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2181
+ }>, Schema.Null]>;
2037
2182
  readonly createdAt: Schema.String;
2038
2183
  readonly updatedAt: Schema.String;
2039
2184
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -2145,6 +2290,17 @@ export declare const MailboxesGetAction200: Schema.Union<readonly [Schema.Struct
2145
2290
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
2146
2291
  readonly decidedAt: Schema.String;
2147
2292
  }>, Schema.Null]>;
2293
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
2294
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
2295
+ readonly actor: Schema.Struct<{
2296
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2297
+ readonly id: Schema.String;
2298
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2299
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
2300
+ }>;
2301
+ readonly resolvedAt: Schema.String;
2302
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2303
+ }>, Schema.Null]>;
2148
2304
  readonly createdAt: Schema.String;
2149
2305
  readonly updatedAt: Schema.String;
2150
2306
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
@@ -2188,6 +2344,17 @@ export declare const MailboxesApproveAction200: Schema.Union<readonly [Schema.St
2188
2344
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
2189
2345
  readonly decidedAt: Schema.String;
2190
2346
  }>, Schema.Null]>;
2347
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
2348
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
2349
+ readonly actor: Schema.Struct<{
2350
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2351
+ readonly id: Schema.String;
2352
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2353
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
2354
+ }>;
2355
+ readonly resolvedAt: Schema.String;
2356
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2357
+ }>, Schema.Null]>;
2191
2358
  readonly createdAt: Schema.String;
2192
2359
  readonly updatedAt: Schema.String;
2193
2360
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -2299,6 +2466,17 @@ export declare const MailboxesApproveAction200: Schema.Union<readonly [Schema.St
2299
2466
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
2300
2467
  readonly decidedAt: Schema.String;
2301
2468
  }>, Schema.Null]>;
2469
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
2470
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
2471
+ readonly actor: Schema.Struct<{
2472
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2473
+ readonly id: Schema.String;
2474
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2475
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
2476
+ }>;
2477
+ readonly resolvedAt: Schema.String;
2478
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2479
+ }>, Schema.Null]>;
2302
2480
  readonly createdAt: Schema.String;
2303
2481
  readonly updatedAt: Schema.String;
2304
2482
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
@@ -2322,6 +2500,17 @@ export declare const MailboxesApproveAction202: Schema.Union<readonly [Schema.St
2322
2500
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
2323
2501
  readonly decidedAt: Schema.String;
2324
2502
  }>, Schema.Null]>;
2503
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
2504
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
2505
+ readonly actor: Schema.Struct<{
2506
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2507
+ readonly id: Schema.String;
2508
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2509
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
2510
+ }>;
2511
+ readonly resolvedAt: Schema.String;
2512
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2513
+ }>, Schema.Null]>;
2325
2514
  readonly createdAt: Schema.String;
2326
2515
  readonly updatedAt: Schema.String;
2327
2516
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -2433,6 +2622,17 @@ export declare const MailboxesApproveAction202: Schema.Union<readonly [Schema.St
2433
2622
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
2434
2623
  readonly decidedAt: Schema.String;
2435
2624
  }>, Schema.Null]>;
2625
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
2626
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
2627
+ readonly actor: Schema.Struct<{
2628
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2629
+ readonly id: Schema.String;
2630
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2631
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
2632
+ }>;
2633
+ readonly resolvedAt: Schema.String;
2634
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2635
+ }>, Schema.Null]>;
2436
2636
  readonly createdAt: Schema.String;
2437
2637
  readonly updatedAt: Schema.String;
2438
2638
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
@@ -2442,14 +2642,14 @@ export type MailboxesApproveAction401 = UnauthorizedError;
2442
2642
  export declare const MailboxesApproveAction401: typeof UnauthorizedError;
2443
2643
  export type MailboxesApproveAction402 = PaymentRequiredError;
2444
2644
  export declare const MailboxesApproveAction402: typeof PaymentRequiredError;
2445
- export type MailboxesApproveAction403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
2446
- export declare const MailboxesApproveAction403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
2645
+ export type MailboxesApproveAction403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
2646
+ export declare const MailboxesApproveAction403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
2447
2647
  export type MailboxesApproveAction404 = ResourceNotFoundError;
2448
2648
  export declare const MailboxesApproveAction404: typeof ResourceNotFoundError;
2449
2649
  export type MailboxesApproveAction409 = MailboxSendConflictError | ConflictError;
2450
2650
  export declare const MailboxesApproveAction409: Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]>;
2451
- export type MailboxesApproveAction422 = MailboxChannelUnsupportedError | ValidationError;
2452
- export declare const MailboxesApproveAction422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
2651
+ export type MailboxesApproveAction422 = ValidationError;
2652
+ export declare const MailboxesApproveAction422: typeof ValidationError;
2453
2653
  export type MailboxesApproveAction429 = RateLimitedError;
2454
2654
  export declare const MailboxesApproveAction429: typeof RateLimitedError;
2455
2655
  export type MailboxesApproveAction500 = InternalError;
@@ -2608,14 +2808,14 @@ export type MailboxesCancelAction401 = UnauthorizedError;
2608
2808
  export declare const MailboxesCancelAction401: typeof UnauthorizedError;
2609
2809
  export type MailboxesCancelAction402 = PaymentRequiredError;
2610
2810
  export declare const MailboxesCancelAction402: typeof PaymentRequiredError;
2611
- export type MailboxesCancelAction403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
2612
- export declare const MailboxesCancelAction403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
2811
+ export type MailboxesCancelAction403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
2812
+ export declare const MailboxesCancelAction403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
2613
2813
  export type MailboxesCancelAction404 = ResourceNotFoundError;
2614
2814
  export declare const MailboxesCancelAction404: typeof ResourceNotFoundError;
2615
2815
  export type MailboxesCancelAction409 = MailboxSendConflictError | ConflictError;
2616
2816
  export declare const MailboxesCancelAction409: Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]>;
2617
- export type MailboxesCancelAction422 = MailboxChannelUnsupportedError | ValidationError;
2618
- export declare const MailboxesCancelAction422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
2817
+ export type MailboxesCancelAction422 = ValidationError;
2818
+ export declare const MailboxesCancelAction422: typeof ValidationError;
2619
2819
  export type MailboxesCancelAction429 = RateLimitedError;
2620
2820
  export declare const MailboxesCancelAction429: typeof RateLimitedError;
2621
2821
  export type MailboxesCancelAction500 = InternalError;
@@ -2658,6 +2858,17 @@ export declare const MailboxesDenyAction200: Schema.Union<readonly [Schema.Struc
2658
2858
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
2659
2859
  readonly decidedAt: Schema.String;
2660
2860
  }>, Schema.Null]>;
2861
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
2862
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
2863
+ readonly actor: Schema.Struct<{
2864
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2865
+ readonly id: Schema.String;
2866
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2867
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
2868
+ }>;
2869
+ readonly resolvedAt: Schema.String;
2870
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2871
+ }>, Schema.Null]>;
2661
2872
  readonly createdAt: Schema.String;
2662
2873
  readonly updatedAt: Schema.String;
2663
2874
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -2769,6 +2980,17 @@ export declare const MailboxesDenyAction200: Schema.Union<readonly [Schema.Struc
2769
2980
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
2770
2981
  readonly decidedAt: Schema.String;
2771
2982
  }>, Schema.Null]>;
2983
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
2984
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
2985
+ readonly actor: Schema.Struct<{
2986
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2987
+ readonly id: Schema.String;
2988
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2989
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
2990
+ }>;
2991
+ readonly resolvedAt: Schema.String;
2992
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2993
+ }>, Schema.Null]>;
2772
2994
  readonly createdAt: Schema.String;
2773
2995
  readonly updatedAt: Schema.String;
2774
2996
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
@@ -2936,14 +3158,14 @@ export type MailboxesRetryAction401 = UnauthorizedError;
2936
3158
  export declare const MailboxesRetryAction401: typeof UnauthorizedError;
2937
3159
  export type MailboxesRetryAction402 = PaymentRequiredError;
2938
3160
  export declare const MailboxesRetryAction402: typeof PaymentRequiredError;
2939
- export type MailboxesRetryAction403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
2940
- export declare const MailboxesRetryAction403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
3161
+ export type MailboxesRetryAction403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
3162
+ export declare const MailboxesRetryAction403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
2941
3163
  export type MailboxesRetryAction404 = ResourceNotFoundError;
2942
3164
  export declare const MailboxesRetryAction404: typeof ResourceNotFoundError;
2943
3165
  export type MailboxesRetryAction409 = MailboxSendConflictError | ConflictError;
2944
3166
  export declare const MailboxesRetryAction409: Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]>;
2945
- export type MailboxesRetryAction422 = MailboxChannelUnsupportedError | ValidationError;
2946
- export declare const MailboxesRetryAction422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
3167
+ export type MailboxesRetryAction422 = ValidationError;
3168
+ export declare const MailboxesRetryAction422: typeof ValidationError;
2947
3169
  export type MailboxesRetryAction429 = RateLimitedError;
2948
3170
  export declare const MailboxesRetryAction429: typeof RateLimitedError;
2949
3171
  export type MailboxesRetryAction500 = InternalError;
@@ -3114,8 +3336,8 @@ export type MailboxesCreateDraft403 = ForbiddenError;
3114
3336
  export declare const MailboxesCreateDraft403: typeof ForbiddenError;
3115
3337
  export type MailboxesCreateDraft404 = ResourceNotFoundError;
3116
3338
  export declare const MailboxesCreateDraft404: typeof ResourceNotFoundError;
3117
- export type MailboxesCreateDraft422 = MailboxChannelUnsupportedError | ValidationError;
3118
- export declare const MailboxesCreateDraft422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
3339
+ export type MailboxesCreateDraft422 = ValidationError;
3340
+ export declare const MailboxesCreateDraft422: typeof ValidationError;
3119
3341
  export type MailboxesCreateDraft500 = InternalError;
3120
3342
  export declare const MailboxesCreateDraft500: typeof InternalError;
3121
3343
  export type MailboxesCreateDraft504 = GatewayTimeoutError;
@@ -3418,14 +3640,14 @@ export type MailboxesSendDraft401 = UnauthorizedError;
3418
3640
  export declare const MailboxesSendDraft401: typeof UnauthorizedError;
3419
3641
  export type MailboxesSendDraft402 = PaymentRequiredError;
3420
3642
  export declare const MailboxesSendDraft402: typeof PaymentRequiredError;
3421
- export type MailboxesSendDraft403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
3422
- export declare const MailboxesSendDraft403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
3643
+ export type MailboxesSendDraft403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
3644
+ export declare const MailboxesSendDraft403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
3423
3645
  export type MailboxesSendDraft404 = ResourceNotFoundError;
3424
3646
  export declare const MailboxesSendDraft404: typeof ResourceNotFoundError;
3425
3647
  export type MailboxesSendDraft409 = MailboxSendConflictError | ConflictError;
3426
3648
  export declare const MailboxesSendDraft409: Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]>;
3427
- export type MailboxesSendDraft422 = MailboxChannelUnsupportedError | ValidationError;
3428
- export declare const MailboxesSendDraft422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
3649
+ export type MailboxesSendDraft422 = ValidationError;
3650
+ export declare const MailboxesSendDraft422: typeof ValidationError;
3429
3651
  export type MailboxesSendDraft429 = RateLimitedError;
3430
3652
  export declare const MailboxesSendDraft429: typeof RateLimitedError;
3431
3653
  export type MailboxesSendDraft500 = InternalError;
@@ -3476,14 +3698,14 @@ export declare const MailboxesCreateEndpoint201: Schema.Struct<{
3476
3698
  }>;
3477
3699
  export type MailboxesCreateEndpoint401 = UnauthorizedError;
3478
3700
  export declare const MailboxesCreateEndpoint401: typeof UnauthorizedError;
3479
- export type MailboxesCreateEndpoint403 = ForbiddenError;
3480
- export declare const MailboxesCreateEndpoint403: typeof ForbiddenError;
3701
+ export type MailboxesCreateEndpoint403 = FlagDisabledError | ForbiddenError;
3702
+ export declare const MailboxesCreateEndpoint403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
3481
3703
  export type MailboxesCreateEndpoint404 = ResourceNotFoundError;
3482
3704
  export declare const MailboxesCreateEndpoint404: typeof ResourceNotFoundError;
3483
3705
  export type MailboxesCreateEndpoint409 = ConflictError;
3484
3706
  export declare const MailboxesCreateEndpoint409: typeof ConflictError;
3485
- export type MailboxesCreateEndpoint422 = ValidationError | MailboxChannelUnsupportedError;
3486
- export declare const MailboxesCreateEndpoint422: Schema.Union<readonly [typeof ValidationError, typeof MailboxChannelUnsupportedError]>;
3707
+ export type MailboxesCreateEndpoint422 = ValidationError;
3708
+ export declare const MailboxesCreateEndpoint422: typeof ValidationError;
3487
3709
  export type MailboxesCreateEndpoint500 = InternalError;
3488
3710
  export declare const MailboxesCreateEndpoint500: typeof InternalError;
3489
3711
  export type MailboxesCreateEndpoint504 = GatewayTimeoutError;
@@ -4113,14 +4335,14 @@ export type MailboxesSendMessage401 = UnauthorizedError;
4113
4335
  export declare const MailboxesSendMessage401: typeof UnauthorizedError;
4114
4336
  export type MailboxesSendMessage402 = PaymentRequiredError;
4115
4337
  export declare const MailboxesSendMessage402: typeof PaymentRequiredError;
4116
- export type MailboxesSendMessage403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
4117
- export declare const MailboxesSendMessage403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
4338
+ export type MailboxesSendMessage403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
4339
+ export declare const MailboxesSendMessage403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
4118
4340
  export type MailboxesSendMessage404 = ResourceNotFoundError;
4119
4341
  export declare const MailboxesSendMessage404: typeof ResourceNotFoundError;
4120
4342
  export type MailboxesSendMessage409 = MailboxSendConflictError | ConflictError;
4121
4343
  export declare const MailboxesSendMessage409: Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]>;
4122
- export type MailboxesSendMessage422 = MailboxChannelUnsupportedError | ValidationError;
4123
- export declare const MailboxesSendMessage422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
4344
+ export type MailboxesSendMessage422 = ValidationError;
4345
+ export declare const MailboxesSendMessage422: typeof ValidationError;
4124
4346
  export type MailboxesSendMessage429 = RateLimitedError;
4125
4347
  export declare const MailboxesSendMessage429: typeof RateLimitedError;
4126
4348
  export type MailboxesSendMessage500 = InternalError;
@@ -4482,14 +4704,14 @@ export type MailboxesForward401 = UnauthorizedError;
4482
4704
  export declare const MailboxesForward401: typeof UnauthorizedError;
4483
4705
  export type MailboxesForward402 = PaymentRequiredError;
4484
4706
  export declare const MailboxesForward402: typeof PaymentRequiredError;
4485
- export type MailboxesForward403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
4486
- export declare const MailboxesForward403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
4707
+ export type MailboxesForward403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
4708
+ export declare const MailboxesForward403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
4487
4709
  export type MailboxesForward404 = ResourceNotFoundError;
4488
4710
  export declare const MailboxesForward404: typeof ResourceNotFoundError;
4489
4711
  export type MailboxesForward409 = MailboxSendConflictError | ConflictError;
4490
4712
  export declare const MailboxesForward409: Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]>;
4491
- export type MailboxesForward422 = MailboxChannelUnsupportedError | ValidationError;
4492
- export declare const MailboxesForward422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
4713
+ export type MailboxesForward422 = ValidationError;
4714
+ export declare const MailboxesForward422: typeof ValidationError;
4493
4715
  export type MailboxesForward429 = RateLimitedError;
4494
4716
  export declare const MailboxesForward429: typeof RateLimitedError;
4495
4717
  export type MailboxesForward500 = InternalError;
@@ -4740,14 +4962,14 @@ export type MailboxesReply401 = UnauthorizedError;
4740
4962
  export declare const MailboxesReply401: typeof UnauthorizedError;
4741
4963
  export type MailboxesReply402 = PaymentRequiredError;
4742
4964
  export declare const MailboxesReply402: typeof PaymentRequiredError;
4743
- export type MailboxesReply403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
4744
- export declare const MailboxesReply403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
4965
+ export type MailboxesReply403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
4966
+ export declare const MailboxesReply403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
4745
4967
  export type MailboxesReply404 = ResourceNotFoundError;
4746
4968
  export declare const MailboxesReply404: typeof ResourceNotFoundError;
4747
4969
  export type MailboxesReply409 = MailboxSendConflictError | ConflictError;
4748
4970
  export declare const MailboxesReply409: Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]>;
4749
- export type MailboxesReply422 = MailboxChannelUnsupportedError | ValidationError;
4750
- export declare const MailboxesReply422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
4971
+ export type MailboxesReply422 = ValidationError;
4972
+ export declare const MailboxesReply422: typeof ValidationError;
4751
4973
  export type MailboxesReply429 = RateLimitedError;
4752
4974
  export declare const MailboxesReply429: typeof RateLimitedError;
4753
4975
  export type MailboxesReply500 = InternalError;
@@ -4934,14 +5156,14 @@ export type MailboxesReplyAll401 = UnauthorizedError;
4934
5156
  export declare const MailboxesReplyAll401: typeof UnauthorizedError;
4935
5157
  export type MailboxesReplyAll402 = PaymentRequiredError;
4936
5158
  export declare const MailboxesReplyAll402: typeof PaymentRequiredError;
4937
- export type MailboxesReplyAll403 = MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
4938
- export declare const MailboxesReplyAll403: Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
5159
+ export type MailboxesReplyAll403 = FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
5160
+ export declare const MailboxesReplyAll403: Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]>;
4939
5161
  export type MailboxesReplyAll404 = ResourceNotFoundError;
4940
5162
  export declare const MailboxesReplyAll404: typeof ResourceNotFoundError;
4941
5163
  export type MailboxesReplyAll409 = MailboxSendConflictError | ConflictError;
4942
5164
  export declare const MailboxesReplyAll409: Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]>;
4943
- export type MailboxesReplyAll422 = MailboxChannelUnsupportedError | ValidationError;
4944
- export declare const MailboxesReplyAll422: Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]>;
5165
+ export type MailboxesReplyAll422 = ValidationError;
5166
+ export declare const MailboxesReplyAll422: typeof ValidationError;
4945
5167
  export type MailboxesReplyAll429 = RateLimitedError;
4946
5168
  export declare const MailboxesReplyAll429: typeof RateLimitedError;
4947
5169
  export type MailboxesReplyAll500 = InternalError;
@@ -5897,6 +6119,17 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
5897
6119
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
5898
6120
  readonly decidedAt: Schema.String;
5899
6121
  }>, Schema.Null]>;
6122
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
6123
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
6124
+ readonly actor: Schema.Struct<{
6125
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
6126
+ readonly id: Schema.String;
6127
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
6128
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
6129
+ }>;
6130
+ readonly resolvedAt: Schema.String;
6131
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
6132
+ }>, Schema.Null]>;
5900
6133
  readonly createdAt: Schema.String;
5901
6134
  readonly updatedAt: Schema.String;
5902
6135
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -6008,11 +6241,22 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6008
6241
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
6009
6242
  readonly decidedAt: Schema.String;
6010
6243
  }>, Schema.Null]>;
6244
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
6245
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
6246
+ readonly actor: Schema.Struct<{
6247
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
6248
+ readonly id: Schema.String;
6249
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
6250
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
6251
+ }>;
6252
+ readonly resolvedAt: Schema.String;
6253
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
6254
+ }>, Schema.Null]>;
6011
6255
  readonly createdAt: Schema.String;
6012
6256
  readonly updatedAt: Schema.String;
6013
6257
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
6014
6258
  readonly state: Schema.Union<readonly [Schema.Literal<"proposed">, Schema.Literal<"allowed">, Schema.Literal<"approvalRequired">, Schema.Literal<"policyDenied">, Schema.Literal<"approved">, Schema.Literal<"approvalDenied">, Schema.Literal<"executing">, Schema.Literal<"executed">, Schema.Literal<"failed">]>;
6015
- }>]>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
6259
+ }>]>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
6016
6260
  readonly _tag: "BillingProviderError";
6017
6261
  readonly message: string;
6018
6262
  }, readonly [Schema.Struct<{
@@ -6132,6 +6376,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6132
6376
  }>, Schema.Struct<{
6133
6377
  readonly _tag: Schema.tag<"UnauthorizedError">;
6134
6378
  readonly message: Schema.String;
6379
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
6380
+ readonly _tag: "ValidationError";
6381
+ readonly message: string;
6382
+ readonly fields?: {
6383
+ readonly [x: string]: readonly string[];
6384
+ } | null;
6385
+ }, readonly [Schema.Struct<{
6386
+ readonly _tag: Schema.tag<"ValidationError">;
6387
+ readonly message: Schema.String;
6388
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
6389
+ }>], {
6390
+ readonly _tag: "ValidationError";
6391
+ readonly message: string;
6392
+ readonly fields?: {
6393
+ readonly [x: string]: readonly string[];
6394
+ } | null;
6395
+ }>, Schema.Struct<{
6396
+ readonly _tag: Schema.tag<"ValidationError">;
6397
+ readonly message: Schema.String;
6398
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
6135
6399
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesCancelAction", "POST", "/v1/mailboxes/:id/actions/:actionId/cancel", Schema.toCodecStringTree<Schema.Struct<{
6136
6400
  readonly id: Schema.brand<Schema.String, "MailboxId">;
6137
6401
  readonly actionId: Schema.brand<Schema.String, "MailboxActionId">;
@@ -6267,7 +6531,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6267
6531
  }>, Schema.Null]>;
6268
6532
  readonly createdAt: Schema.String;
6269
6533
  readonly updatedAt: Schema.String;
6270
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
6534
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
6271
6535
  readonly _tag: "BillingProviderError";
6272
6536
  readonly message: string;
6273
6537
  }, readonly [Schema.Struct<{
@@ -6387,6 +6651,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6387
6651
  }>, Schema.Struct<{
6388
6652
  readonly _tag: Schema.tag<"UnauthorizedError">;
6389
6653
  readonly message: Schema.String;
6654
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
6655
+ readonly _tag: "ValidationError";
6656
+ readonly message: string;
6657
+ readonly fields?: {
6658
+ readonly [x: string]: readonly string[];
6659
+ } | null;
6660
+ }, readonly [Schema.Struct<{
6661
+ readonly _tag: Schema.tag<"ValidationError">;
6662
+ readonly message: Schema.String;
6663
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
6664
+ }>], {
6665
+ readonly _tag: "ValidationError";
6666
+ readonly message: string;
6667
+ readonly fields?: {
6668
+ readonly [x: string]: readonly string[];
6669
+ } | null;
6670
+ }>, Schema.Struct<{
6671
+ readonly _tag: Schema.tag<"ValidationError">;
6672
+ readonly message: Schema.String;
6673
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
6390
6674
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesCopyMessageAttachment", "POST", "/v1/mailboxes/:id/messages/:messageId/attachments/:attachmentId/copy", Schema.toCodecStringTree<Schema.Struct<{
6391
6675
  readonly id: Schema.brand<Schema.String, "MailboxId">;
6392
6676
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
@@ -6527,7 +6811,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6527
6811
  readonly domainId: Schema.Union<readonly [Schema.String, Schema.Null]>;
6528
6812
  }>>;
6529
6813
  readonly updatedAt: Schema.String;
6530
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ValidationError, typeof MailboxChannelUnsupportedError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
6814
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
6531
6815
  readonly _tag: "BillingProviderError";
6532
6816
  readonly message: string;
6533
6817
  }, readonly [Schema.Struct<{
@@ -6559,18 +6843,6 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6559
6843
  readonly message: Schema.String;
6560
6844
  readonly resource: Schema.String;
6561
6845
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
6562
- }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
6563
- readonly _tag: "ForbiddenError";
6564
- readonly message: string;
6565
- }, readonly [Schema.Struct<{
6566
- readonly _tag: Schema.tag<"ForbiddenError">;
6567
- readonly message: Schema.String;
6568
- }>], {
6569
- readonly _tag: "ForbiddenError";
6570
- readonly message: string;
6571
- }>, Schema.Struct<{
6572
- readonly _tag: Schema.tag<"ForbiddenError">;
6573
- readonly message: Schema.String;
6574
6846
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
6575
6847
  readonly _tag: "GatewayTimeoutError";
6576
6848
  readonly message: string;
@@ -6643,6 +6915,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6643
6915
  }>, Schema.Struct<{
6644
6916
  readonly _tag: Schema.tag<"UnauthorizedError">;
6645
6917
  readonly message: Schema.String;
6918
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
6919
+ readonly _tag: "ValidationError";
6920
+ readonly message: string;
6921
+ readonly fields?: {
6922
+ readonly [x: string]: readonly string[];
6923
+ } | null;
6924
+ }, readonly [Schema.Struct<{
6925
+ readonly _tag: Schema.tag<"ValidationError">;
6926
+ readonly message: Schema.String;
6927
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
6928
+ }>], {
6929
+ readonly _tag: "ValidationError";
6930
+ readonly message: string;
6931
+ readonly fields?: {
6932
+ readonly [x: string]: readonly string[];
6933
+ } | null;
6934
+ }>, Schema.Struct<{
6935
+ readonly _tag: Schema.tag<"ValidationError">;
6936
+ readonly message: Schema.String;
6937
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
6646
6938
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesCreateDraft", "POST", "/v1/mailboxes/:id/drafts", Schema.toCodecStringTree<Schema.Struct<{
6647
6939
  readonly id: Schema.brand<Schema.String, "MailboxId">;
6648
6940
  }>>, never, Schema.toCodecJson<Schema.Struct<{
@@ -6687,7 +6979,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6687
6979
  readonly contentType: Schema.String;
6688
6980
  readonly size: Schema.Finite;
6689
6981
  }>>;
6690
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
6982
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
6691
6983
  readonly _tag: "ForbiddenError";
6692
6984
  readonly message: string;
6693
6985
  }, readonly [Schema.Struct<{
@@ -6747,6 +7039,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6747
7039
  }>, Schema.Struct<{
6748
7040
  readonly _tag: Schema.tag<"UnauthorizedError">;
6749
7041
  readonly message: Schema.String;
7042
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
7043
+ readonly _tag: "ValidationError";
7044
+ readonly message: string;
7045
+ readonly fields?: {
7046
+ readonly [x: string]: readonly string[];
7047
+ } | null;
7048
+ }, readonly [Schema.Struct<{
7049
+ readonly _tag: Schema.tag<"ValidationError">;
7050
+ readonly message: Schema.String;
7051
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
7052
+ }>], {
7053
+ readonly _tag: "ValidationError";
7054
+ readonly message: string;
7055
+ readonly fields?: {
7056
+ readonly [x: string]: readonly string[];
7057
+ } | null;
7058
+ }>, Schema.Struct<{
7059
+ readonly _tag: Schema.tag<"ValidationError">;
7060
+ readonly message: Schema.String;
7061
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
6750
7062
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesCreateEndpoint", "POST", "/v1/mailboxes/:id/endpoints", Schema.toCodecStringTree<Schema.Struct<{
6751
7063
  readonly id: Schema.brand<Schema.String, "MailboxId">;
6752
7064
  }>>, never, Schema.toCodecJson<Schema.Struct<{
@@ -6773,7 +7085,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6773
7085
  readonly domainId: Schema.Union<readonly [Schema.String, Schema.Null]>;
6774
7086
  }>>;
6775
7087
  readonly updatedAt: Schema.String;
6776
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof ValidationError, typeof MailboxChannelUnsupportedError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
7088
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
6777
7089
  readonly _tag: "ConflictError";
6778
7090
  readonly message: string;
6779
7091
  readonly resource: string;
@@ -6793,18 +7105,6 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6793
7105
  readonly message: Schema.String;
6794
7106
  readonly resource: Schema.String;
6795
7107
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
6796
- }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
6797
- readonly _tag: "ForbiddenError";
6798
- readonly message: string;
6799
- }, readonly [Schema.Struct<{
6800
- readonly _tag: Schema.tag<"ForbiddenError">;
6801
- readonly message: Schema.String;
6802
- }>], {
6803
- readonly _tag: "ForbiddenError";
6804
- readonly message: string;
6805
- }>, Schema.Struct<{
6806
- readonly _tag: Schema.tag<"ForbiddenError">;
6807
- readonly message: Schema.String;
6808
7108
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
6809
7109
  readonly _tag: "GatewayTimeoutError";
6810
7110
  readonly message: string;
@@ -6853,6 +7153,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6853
7153
  }>, Schema.Struct<{
6854
7154
  readonly _tag: Schema.tag<"UnauthorizedError">;
6855
7155
  readonly message: Schema.String;
7156
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
7157
+ readonly _tag: "ValidationError";
7158
+ readonly message: string;
7159
+ readonly fields?: {
7160
+ readonly [x: string]: readonly string[];
7161
+ } | null;
7162
+ }, readonly [Schema.Struct<{
7163
+ readonly _tag: Schema.tag<"ValidationError">;
7164
+ readonly message: Schema.String;
7165
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
7166
+ }>], {
7167
+ readonly _tag: "ValidationError";
7168
+ readonly message: string;
7169
+ readonly fields?: {
7170
+ readonly [x: string]: readonly string[];
7171
+ } | null;
7172
+ }>, Schema.Struct<{
7173
+ readonly _tag: Schema.tag<"ValidationError">;
7174
+ readonly message: Schema.String;
7175
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
6856
7176
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesCreateGrant", "POST", "/v1/mailboxes/:id/grants", Schema.toCodecStringTree<Schema.Struct<{
6857
7177
  readonly id: Schema.brand<Schema.String, "MailboxId">;
6858
7178
  }>>, never, Schema.toCodecJson<Schema.Struct<{
@@ -7659,6 +7979,17 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
7659
7979
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
7660
7980
  readonly decidedAt: Schema.String;
7661
7981
  }>, Schema.Null]>;
7982
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
7983
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
7984
+ readonly actor: Schema.Struct<{
7985
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
7986
+ readonly id: Schema.String;
7987
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
7988
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
7989
+ }>;
7990
+ readonly resolvedAt: Schema.String;
7991
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
7992
+ }>, Schema.Null]>;
7662
7993
  readonly createdAt: Schema.String;
7663
7994
  readonly updatedAt: Schema.String;
7664
7995
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -7770,6 +8101,17 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
7770
8101
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
7771
8102
  readonly decidedAt: Schema.String;
7772
8103
  }>, Schema.Null]>;
8104
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
8105
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
8106
+ readonly actor: Schema.Struct<{
8107
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
8108
+ readonly id: Schema.String;
8109
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
8110
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
8111
+ }>;
8112
+ readonly resolvedAt: Schema.String;
8113
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
8114
+ }>, Schema.Null]>;
7773
8115
  readonly createdAt: Schema.String;
7774
8116
  readonly updatedAt: Schema.String;
7775
8117
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
@@ -8134,7 +8476,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
8134
8476
  }>, Schema.Null]>;
8135
8477
  readonly createdAt: Schema.String;
8136
8478
  readonly updatedAt: Schema.String;
8137
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
8479
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
8138
8480
  readonly _tag: "BillingProviderError";
8139
8481
  readonly message: string;
8140
8482
  }, readonly [Schema.Struct<{
@@ -8254,6 +8596,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
8254
8596
  }>, Schema.Struct<{
8255
8597
  readonly _tag: Schema.tag<"UnauthorizedError">;
8256
8598
  readonly message: Schema.String;
8599
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
8600
+ readonly _tag: "ValidationError";
8601
+ readonly message: string;
8602
+ readonly fields?: {
8603
+ readonly [x: string]: readonly string[];
8604
+ } | null;
8605
+ }, readonly [Schema.Struct<{
8606
+ readonly _tag: Schema.tag<"ValidationError">;
8607
+ readonly message: Schema.String;
8608
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
8609
+ }>], {
8610
+ readonly _tag: "ValidationError";
8611
+ readonly message: string;
8612
+ readonly fields?: {
8613
+ readonly [x: string]: readonly string[];
8614
+ } | null;
8615
+ }>, Schema.Struct<{
8616
+ readonly _tag: Schema.tag<"ValidationError">;
8617
+ readonly message: Schema.String;
8618
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
8257
8619
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesGet", "GET", "/v1/mailboxes/:id", Schema.toCodecStringTree<Schema.Struct<{
8258
8620
  readonly id: Schema.brand<Schema.String, "MailboxId">;
8259
8621
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
@@ -8376,6 +8738,17 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
8376
8738
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
8377
8739
  readonly decidedAt: Schema.String;
8378
8740
  }>, Schema.Null]>;
8741
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
8742
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
8743
+ readonly actor: Schema.Struct<{
8744
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
8745
+ readonly id: Schema.String;
8746
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
8747
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
8748
+ }>;
8749
+ readonly resolvedAt: Schema.String;
8750
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
8751
+ }>, Schema.Null]>;
8379
8752
  readonly createdAt: Schema.String;
8380
8753
  readonly updatedAt: Schema.String;
8381
8754
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -8487,6 +8860,17 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
8487
8860
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
8488
8861
  readonly decidedAt: Schema.String;
8489
8862
  }>, Schema.Null]>;
8863
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
8864
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
8865
+ readonly actor: Schema.Struct<{
8866
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
8867
+ readonly id: Schema.String;
8868
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
8869
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
8870
+ }>;
8871
+ readonly resolvedAt: Schema.String;
8872
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
8873
+ }>, Schema.Null]>;
8490
8874
  readonly createdAt: Schema.String;
8491
8875
  readonly updatedAt: Schema.String;
8492
8876
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
@@ -9540,6 +9924,17 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9540
9924
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
9541
9925
  readonly decidedAt: Schema.String;
9542
9926
  }>, Schema.Null]>;
9927
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
9928
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
9929
+ readonly actor: Schema.Struct<{
9930
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
9931
+ readonly id: Schema.String;
9932
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
9933
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
9934
+ }>;
9935
+ readonly resolvedAt: Schema.String;
9936
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
9937
+ }>, Schema.Null]>;
9543
9938
  readonly createdAt: Schema.String;
9544
9939
  readonly updatedAt: Schema.String;
9545
9940
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -9651,6 +10046,17 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9651
10046
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
9652
10047
  readonly decidedAt: Schema.String;
9653
10048
  }>, Schema.Null]>;
10049
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
10050
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
10051
+ readonly actor: Schema.Struct<{
10052
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
10053
+ readonly id: Schema.String;
10054
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10055
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
10056
+ }>;
10057
+ readonly resolvedAt: Schema.String;
10058
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
10059
+ }>, Schema.Null]>;
9654
10060
  readonly createdAt: Schema.String;
9655
10061
  readonly updatedAt: Schema.String;
9656
10062
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
@@ -11399,7 +11805,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11399
11805
  }>, Schema.Null]>;
11400
11806
  readonly createdAt: Schema.String;
11401
11807
  readonly updatedAt: Schema.String;
11402
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
11808
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
11403
11809
  readonly _tag: "BillingProviderError";
11404
11810
  readonly message: string;
11405
11811
  }, readonly [Schema.Struct<{
@@ -11519,6 +11925,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11519
11925
  }>, Schema.Struct<{
11520
11926
  readonly _tag: Schema.tag<"UnauthorizedError">;
11521
11927
  readonly message: Schema.String;
11928
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
11929
+ readonly _tag: "ValidationError";
11930
+ readonly message: string;
11931
+ readonly fields?: {
11932
+ readonly [x: string]: readonly string[];
11933
+ } | null;
11934
+ }, readonly [Schema.Struct<{
11935
+ readonly _tag: Schema.tag<"ValidationError">;
11936
+ readonly message: Schema.String;
11937
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
11938
+ }>], {
11939
+ readonly _tag: "ValidationError";
11940
+ readonly message: string;
11941
+ readonly fields?: {
11942
+ readonly [x: string]: readonly string[];
11943
+ } | null;
11944
+ }>, Schema.Struct<{
11945
+ readonly _tag: Schema.tag<"ValidationError">;
11946
+ readonly message: Schema.String;
11947
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
11522
11948
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesReplyAll", "POST", "/v1/mailboxes/:id/messages/:messageId/reply-all", Schema.toCodecStringTree<Schema.Struct<{
11523
11949
  readonly id: Schema.brand<Schema.String, "MailboxId">;
11524
11950
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
@@ -11669,7 +12095,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11669
12095
  }>, Schema.Null]>;
11670
12096
  readonly createdAt: Schema.String;
11671
12097
  readonly updatedAt: Schema.String;
11672
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
12098
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
11673
12099
  readonly _tag: "BillingProviderError";
11674
12100
  readonly message: string;
11675
12101
  }, readonly [Schema.Struct<{
@@ -11789,6 +12215,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11789
12215
  }>, Schema.Struct<{
11790
12216
  readonly _tag: Schema.tag<"UnauthorizedError">;
11791
12217
  readonly message: Schema.String;
12218
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
12219
+ readonly _tag: "ValidationError";
12220
+ readonly message: string;
12221
+ readonly fields?: {
12222
+ readonly [x: string]: readonly string[];
12223
+ } | null;
12224
+ }, readonly [Schema.Struct<{
12225
+ readonly _tag: Schema.tag<"ValidationError">;
12226
+ readonly message: Schema.String;
12227
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
12228
+ }>], {
12229
+ readonly _tag: "ValidationError";
12230
+ readonly message: string;
12231
+ readonly fields?: {
12232
+ readonly [x: string]: readonly string[];
12233
+ } | null;
12234
+ }>, Schema.Struct<{
12235
+ readonly _tag: Schema.tag<"ValidationError">;
12236
+ readonly message: Schema.String;
12237
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
11792
12238
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesResume", "POST", "/v1/mailboxes/:id/resume", Schema.toCodecStringTree<Schema.Struct<{
11793
12239
  readonly id: Schema.brand<Schema.String, "MailboxId">;
11794
12240
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
@@ -12026,7 +12472,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12026
12472
  }>, Schema.Null]>;
12027
12473
  readonly createdAt: Schema.String;
12028
12474
  readonly updatedAt: Schema.String;
12029
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
12475
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
12030
12476
  readonly _tag: "BillingProviderError";
12031
12477
  readonly message: string;
12032
12478
  }, readonly [Schema.Struct<{
@@ -12146,6 +12592,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12146
12592
  }>, Schema.Struct<{
12147
12593
  readonly _tag: Schema.tag<"UnauthorizedError">;
12148
12594
  readonly message: Schema.String;
12595
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
12596
+ readonly _tag: "ValidationError";
12597
+ readonly message: string;
12598
+ readonly fields?: {
12599
+ readonly [x: string]: readonly string[];
12600
+ } | null;
12601
+ }, readonly [Schema.Struct<{
12602
+ readonly _tag: Schema.tag<"ValidationError">;
12603
+ readonly message: Schema.String;
12604
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
12605
+ }>], {
12606
+ readonly _tag: "ValidationError";
12607
+ readonly message: string;
12608
+ readonly fields?: {
12609
+ readonly [x: string]: readonly string[];
12610
+ } | null;
12611
+ }>, Schema.Struct<{
12612
+ readonly _tag: Schema.tag<"ValidationError">;
12613
+ readonly message: Schema.String;
12614
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
12149
12615
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesRevokeGrant", "DELETE", "/v1/mailboxes/:id/grants/:grantId", Schema.toCodecStringTree<Schema.Struct<{
12150
12616
  readonly id: Schema.brand<Schema.String, "MailboxId">;
12151
12617
  readonly grantId: Schema.brand<Schema.String, "MailboxGrantId">;
@@ -12388,7 +12854,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12388
12854
  }>, Schema.Null]>;
12389
12855
  readonly createdAt: Schema.String;
12390
12856
  readonly updatedAt: Schema.String;
12391
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
12857
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
12392
12858
  readonly _tag: "BillingProviderError";
12393
12859
  readonly message: string;
12394
12860
  }, readonly [Schema.Struct<{
@@ -12508,6 +12974,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12508
12974
  }>, Schema.Struct<{
12509
12975
  readonly _tag: Schema.tag<"UnauthorizedError">;
12510
12976
  readonly message: Schema.String;
12977
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
12978
+ readonly _tag: "ValidationError";
12979
+ readonly message: string;
12980
+ readonly fields?: {
12981
+ readonly [x: string]: readonly string[];
12982
+ } | null;
12983
+ }, readonly [Schema.Struct<{
12984
+ readonly _tag: Schema.tag<"ValidationError">;
12985
+ readonly message: Schema.String;
12986
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
12987
+ }>], {
12988
+ readonly _tag: "ValidationError";
12989
+ readonly message: string;
12990
+ readonly fields?: {
12991
+ readonly [x: string]: readonly string[];
12992
+ } | null;
12993
+ }>, Schema.Struct<{
12994
+ readonly _tag: Schema.tag<"ValidationError">;
12995
+ readonly message: Schema.String;
12996
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
12511
12997
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesSendMessage", "POST", "/v1/mailboxes/:id/messages", Schema.toCodecStringTree<Schema.Struct<{
12512
12998
  readonly id: Schema.brand<Schema.String, "MailboxId">;
12513
12999
  }>>, never, Schema.toCodecJson<Schema.Struct<{
@@ -12660,7 +13146,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12660
13146
  }>, Schema.Null]>;
12661
13147
  readonly createdAt: Schema.String;
12662
13148
  readonly updatedAt: Schema.String;
12663
- }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxChannelUnsupportedError, typeof ValidationError]> | Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
13149
+ }>>, Schema.toCodecJson<Schema.Union<readonly [typeof MailboxSendConflictError, typeof ConflictError]> | Schema.Union<readonly [typeof FlagDisabledError, typeof MailboxSendRefusedError, typeof OnboardingReviewRequiredError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
12664
13150
  readonly _tag: "BillingProviderError";
12665
13151
  readonly message: string;
12666
13152
  }, readonly [Schema.Struct<{
@@ -12780,6 +13266,26 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12780
13266
  }>, Schema.Struct<{
12781
13267
  readonly _tag: Schema.tag<"UnauthorizedError">;
12782
13268
  readonly message: Schema.String;
13269
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
13270
+ readonly _tag: "ValidationError";
13271
+ readonly message: string;
13272
+ readonly fields?: {
13273
+ readonly [x: string]: readonly string[];
13274
+ } | null;
13275
+ }, readonly [Schema.Struct<{
13276
+ readonly _tag: Schema.tag<"ValidationError">;
13277
+ readonly message: Schema.String;
13278
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
13279
+ }>], {
13280
+ readonly _tag: "ValidationError";
13281
+ readonly message: string;
13282
+ readonly fields?: {
13283
+ readonly [x: string]: readonly string[];
13284
+ } | null;
13285
+ }>, Schema.Struct<{
13286
+ readonly _tag: Schema.tag<"ValidationError">;
13287
+ readonly message: Schema.String;
13288
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
12783
13289
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesUpdate", "PATCH", "/v1/mailboxes/:id", Schema.toCodecStringTree<Schema.Struct<{
12784
13290
  readonly id: Schema.brand<Schema.String, "MailboxId">;
12785
13291
  }>>, never, Schema.toCodecJson<Schema.Struct<{