samva 0.17.0 → 0.19.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 (143) hide show
  1. package/AGENTS.md +5 -0
  2. package/README.md +18 -3
  3. package/dist/{rolldown-runtime-D7D4PA-g.js → _virtual/_rolldown/runtime.js} +1 -1
  4. package/dist/client/client/client.gen.js +174 -0
  5. package/dist/client/client/utils.gen.js +177 -0
  6. package/dist/client/client.gen.js +8 -0
  7. package/dist/client/core/auth.gen.js +12 -0
  8. package/dist/client/core/bodySerializer.gen.js +6 -0
  9. package/dist/client/core/params.gen.js +77 -0
  10. package/dist/client/core/pathSerializer.gen.js +82 -0
  11. package/dist/client/core/serverSentEvents.gen.js +96 -0
  12. package/dist/client/core/utils.gen.js +78 -0
  13. package/dist/client/sdk.gen.d.ts +39 -23
  14. package/dist/{promises---Kbh-7z.js → client/sdk.gen.js} +87 -2314
  15. package/dist/client/types.gen.d.ts +175 -44
  16. package/dist/client-attribution.js +9 -0
  17. package/dist/effect/analytics.d.ts +6 -6
  18. package/dist/effect/analytics.js +23 -2
  19. package/dist/effect/api-keys.d.ts +12 -12
  20. package/dist/effect/api-keys.js +29 -2
  21. package/dist/effect/attachments.d.ts +4 -4
  22. package/dist/effect/attachments.js +19 -2
  23. package/dist/effect/brands.d.ts +6 -6
  24. package/dist/effect/brands.js +26 -3
  25. package/dist/effect/campaigns.d.ts +18 -18
  26. package/dist/effect/campaigns.js +35 -2
  27. package/dist/effect/categories.d.ts +2 -2
  28. package/dist/effect/categories.js +95 -1
  29. package/dist/effect/client.js +3 -3
  30. package/dist/effect/contact-groups.d.ts +53 -17
  31. package/dist/effect/contact-groups.js +31 -2
  32. package/dist/effect/contacts.d.ts +244 -41
  33. package/dist/effect/contacts.js +54 -2
  34. package/dist/effect/conversations.d.ts +28 -28
  35. package/dist/effect/conversations.js +37 -2
  36. package/dist/effect/custom-fields.d.ts +4 -4
  37. package/dist/effect/custom-fields.js +19 -2
  38. package/dist/effect/email.d.ts +75 -75
  39. package/dist/effect/email.js +140 -2
  40. package/dist/effect/errors.d.ts +2 -0
  41. package/dist/effect/errors.js +3 -0
  42. package/dist/effect/events.d.ts +2 -2
  43. package/dist/effect/events.js +17 -3
  44. package/dist/effect/extension-installations.d.ts +23 -23
  45. package/dist/effect/extension-installations.js +29 -2
  46. package/dist/effect/extensions.d.ts +12 -12
  47. package/dist/effect/extensions.js +21 -2
  48. package/dist/effect/feedback.d.ts +1 -1
  49. package/dist/effect/feedback.js +14 -3
  50. package/dist/{analytics-CaqPRsry.js → effect/generated/analytics.js} +4 -23
  51. package/dist/{api-keys-Ce1Y4_Ip.js → effect/generated/api-keys.js} +4 -29
  52. package/dist/{attachments-DYqVIraC.js → effect/generated/attachments.js} +3 -18
  53. package/dist/{brands-ZwuOGIWO.js → effect/generated/brands.js} +5 -25
  54. package/dist/{campaigns-DZlz1E9E.js → effect/generated/campaigns.js} +4 -35
  55. package/dist/effect/generated/contact-events.js +37 -0
  56. package/dist/effect/generated/contact-groups.d.ts +33 -3
  57. package/dist/{contact-groups-BLbFXnjq.js → effect/generated/contact-groups.js} +3 -30
  58. package/dist/effect/generated/contacts.d.ts +477 -54
  59. package/dist/{contacts-BbsoXXB4.js → effect/generated/contacts.js} +41 -89
  60. package/dist/effect/generated/conversations.d.ts +25 -25
  61. package/dist/{conversations-_sRHueML.js → effect/generated/conversations.js} +4 -37
  62. package/dist/{custom-fields-BHWbwlKn.js → effect/generated/custom-fields.js} +5 -19
  63. package/dist/{email-R0NAA9PW.js → effect/generated/email.js} +995 -1146
  64. package/dist/{events-CxbTUHYT.js → effect/generated/events.js} +3 -15
  65. package/dist/effect/generated/extension-installations.d.ts +44 -44
  66. package/dist/{extension-installations-CD94LPmk.js → effect/generated/extension-installations.js} +10 -29
  67. package/dist/effect/generated/extensions.d.ts +10 -10
  68. package/dist/{extensions-BKyNQLvu.js → effect/generated/extensions.js} +5 -20
  69. package/dist/{feedback-Bpa09JOS.js → effect/generated/feedback.js} +3 -12
  70. package/dist/{journeys-CARo_BJT.js → effect/generated/journeys.js} +3 -38
  71. package/dist/effect/generated/mailboxes.d.ts +310 -0
  72. package/dist/{mailboxes-BRDn7BIK.js → effect/generated/mailboxes.js} +829 -954
  73. package/dist/{media-VrrtNnft.js → effect/generated/media.js} +3 -3
  74. package/dist/effect/generated/messages.d.ts +31 -0
  75. package/dist/effect/generated/messages.js +677 -0
  76. package/dist/{namespaces-CcvEbG-y.js → effect/generated/namespaces.js} +3 -20
  77. package/dist/{operations-CmB3FHwf.js → effect/generated/operations.js} +3 -16
  78. package/dist/effect/generated/organizations.d.ts +13 -11
  79. package/dist/{organizations-A-plufWc.js → effect/generated/organizations.js} +9 -26
  80. package/dist/{scheduled-messages-DkKZRRaN.js → effect/generated/scheduled-messages.js} +4 -21
  81. package/dist/effect/generated/shared.d.ts +70 -20
  82. package/dist/effect/generated/shared.js +1073 -0
  83. package/dist/{subscriptions-DEXYtMXg.js → effect/generated/subscriptions.js} +3 -9
  84. package/dist/{templates-DZomxsG7.js → effect/generated/templates.js} +3 -78
  85. package/dist/effect/generated/unsubscribe-groups.d.ts +173 -78
  86. package/dist/{unsubscribe-groups-Iqk4Isf9.js → effect/generated/unsubscribe-groups.js} +77 -84
  87. package/dist/effect/generated/webhooks.d.ts +19 -19
  88. package/dist/{webhooks-CPXuu8Xf.js → effect/generated/webhooks.js} +12 -34
  89. package/dist/{whoami-Ccz0jwlt.js → effect/generated/whoami.js} +5 -10
  90. package/dist/effect/generated-metadata.d.ts +7 -2
  91. package/dist/effect/generated-metadata.js +925 -0
  92. package/dist/effect/index.d.ts +1 -2
  93. package/dist/effect/index.js +32 -32
  94. package/dist/effect/internal/client.js +69 -0
  95. package/dist/effect/internal/email-sender.js +21 -0
  96. package/dist/effect/internal/mailbox-events.js +33 -0
  97. package/dist/effect/internal/operation.js +116 -0
  98. package/dist/effect/internal/send.js +56 -0
  99. package/dist/effect/journeys.d.ts +18 -18
  100. package/dist/effect/journeys.js +39 -2
  101. package/dist/effect/mailboxes.d.ts +314 -182
  102. package/dist/effect/mailboxes.js +135 -3
  103. package/dist/effect/media.d.ts +5 -5
  104. package/dist/effect/media.js +10 -10
  105. package/dist/effect/messages.d.ts +19 -14
  106. package/dist/effect/messages.js +15 -14
  107. package/dist/effect/namespaces.d.ts +7 -7
  108. package/dist/effect/namespaces.js +21 -2
  109. package/dist/effect/operations.d.ts +5 -5
  110. package/dist/effect/operations.js +17 -2
  111. package/dist/effect/organizations.d.ts +11 -11
  112. package/dist/effect/organizations.js +25 -2
  113. package/dist/effect/pagination.js +39 -0
  114. package/dist/effect/retry.js +3 -3
  115. package/dist/{runtime-P0l1_2-C.js → effect/runtime.js} +2 -2
  116. package/dist/effect/scheduled-messages.d.ts +7 -7
  117. package/dist/effect/scheduled-messages.js +21 -2
  118. package/dist/effect/subscriptions.d.ts +1 -1
  119. package/dist/effect/subscriptions.js +10 -2
  120. package/dist/effect/templates.d.ts +39 -39
  121. package/dist/effect/templates.js +80 -3
  122. package/dist/effect/unsubscribe-groups.d.ts +39 -28
  123. package/dist/effect/unsubscribe-groups.js +29 -2
  124. package/dist/effect/webhooks.d.ts +22 -22
  125. package/dist/effect/webhooks.js +35 -3
  126. package/dist/effect/whoami.d.ts +9 -9
  127. package/dist/effect/whoami.js +10 -2
  128. package/dist/index.js +4 -3
  129. package/dist/{inline-attachments-Bi1hDltp.js → inline-attachments.js} +13 -7
  130. package/dist/mailbox-events.d.ts +31 -4
  131. package/dist/{mailbox-events-VKR4f3qq.js → mailbox-events.js} +41 -13
  132. package/dist/{normalize-B79uJIeb.js → normalize.js} +2 -2
  133. package/dist/package.js +6 -0
  134. package/dist/promises/errors.gen.js +1340 -0
  135. package/dist/promises/index.d.ts +1 -1
  136. package/dist/promises/index.js +288 -3
  137. package/dist/promises/types.gen.d.ts +1 -1
  138. package/dist/service-map.d.ts +9 -4
  139. package/dist/{operation-n_IYgNVK.js → service-map.js} +12 -150
  140. package/package.json +6 -2
  141. package/dist/categories-CA4XIQAb.js +0 -1011
  142. package/dist/client-DOzUrdTE.js +0 -1115
  143. package/dist/send-Bxc0XfGE.js +0 -722
@@ -4,6 +4,28 @@ import * as Schema from "effect/Schema";
4
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";
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">]>;
@@ -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">]>;
@@ -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">]>;
@@ -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,6 +6241,17 @@ 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">]>;
@@ -7659,6 +7903,17 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
7659
7903
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
7660
7904
  readonly decidedAt: Schema.String;
7661
7905
  }>, Schema.Null]>;
7906
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
7907
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
7908
+ readonly actor: Schema.Struct<{
7909
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
7910
+ readonly id: Schema.String;
7911
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
7912
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
7913
+ }>;
7914
+ readonly resolvedAt: Schema.String;
7915
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
7916
+ }>, Schema.Null]>;
7662
7917
  readonly createdAt: Schema.String;
7663
7918
  readonly updatedAt: Schema.String;
7664
7919
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -7770,6 +8025,17 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
7770
8025
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
7771
8026
  readonly decidedAt: Schema.String;
7772
8027
  }>, Schema.Null]>;
8028
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
8029
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
8030
+ readonly actor: Schema.Struct<{
8031
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
8032
+ readonly id: Schema.String;
8033
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
8034
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
8035
+ }>;
8036
+ readonly resolvedAt: Schema.String;
8037
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
8038
+ }>, Schema.Null]>;
7773
8039
  readonly createdAt: Schema.String;
7774
8040
  readonly updatedAt: Schema.String;
7775
8041
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
@@ -8376,6 +8642,17 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
8376
8642
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
8377
8643
  readonly decidedAt: Schema.String;
8378
8644
  }>, Schema.Null]>;
8645
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
8646
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
8647
+ readonly actor: Schema.Struct<{
8648
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
8649
+ readonly id: Schema.String;
8650
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
8651
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
8652
+ }>;
8653
+ readonly resolvedAt: Schema.String;
8654
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
8655
+ }>, Schema.Null]>;
8379
8656
  readonly createdAt: Schema.String;
8380
8657
  readonly updatedAt: Schema.String;
8381
8658
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -8487,6 +8764,17 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
8487
8764
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
8488
8765
  readonly decidedAt: Schema.String;
8489
8766
  }>, Schema.Null]>;
8767
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
8768
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
8769
+ readonly actor: Schema.Struct<{
8770
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
8771
+ readonly id: Schema.String;
8772
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
8773
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
8774
+ }>;
8775
+ readonly resolvedAt: Schema.String;
8776
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
8777
+ }>, Schema.Null]>;
8490
8778
  readonly createdAt: Schema.String;
8491
8779
  readonly updatedAt: Schema.String;
8492
8780
  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 +9828,17 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9540
9828
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
9541
9829
  readonly decidedAt: Schema.String;
9542
9830
  }>, Schema.Null]>;
9831
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
9832
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
9833
+ readonly actor: Schema.Struct<{
9834
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
9835
+ readonly id: Schema.String;
9836
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
9837
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
9838
+ }>;
9839
+ readonly resolvedAt: Schema.String;
9840
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
9841
+ }>, Schema.Null]>;
9543
9842
  readonly createdAt: Schema.String;
9544
9843
  readonly updatedAt: Schema.String;
9545
9844
  readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">]>;
@@ -9651,6 +9950,17 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9651
9950
  readonly source: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"grant">, Schema.Literal<"installation">, Schema.Literal<"policy">]>, Schema.Null]>;
9652
9951
  readonly decidedAt: Schema.String;
9653
9952
  }>, Schema.Null]>;
9953
+ readonly resolution: Schema.Union<readonly [Schema.Struct<{
9954
+ readonly outcome: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"denied">, Schema.Literal<"cancelled">]>;
9955
+ readonly actor: Schema.Struct<{
9956
+ readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
9957
+ readonly id: Schema.String;
9958
+ readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
9959
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"system">]>;
9960
+ }>;
9961
+ readonly resolvedAt: Schema.String;
9962
+ readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
9963
+ }>, Schema.Null]>;
9654
9964
  readonly createdAt: Schema.String;
9655
9965
  readonly updatedAt: Schema.String;
9656
9966
  readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;