samva 0.24.0 → 0.26.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 (38) hide show
  1. package/dist/client/sdk.gen.d.ts +96 -4
  2. package/dist/client/sdk.gen.js +15 -8
  3. package/dist/client/types.gen.d.ts +559 -14
  4. package/dist/effect/api-keys.d.ts +3 -0
  5. package/dist/effect/campaigns.d.ts +18 -0
  6. package/dist/effect/email.d.ts +1 -0
  7. package/dist/effect/generated/agents.d.ts +1667 -0
  8. package/dist/effect/generated/api-keys.d.ts +15 -0
  9. package/dist/effect/generated/campaigns.d.ts +34 -0
  10. package/dist/effect/generated/email.d.ts +19 -0
  11. package/dist/effect/generated/email.js +8 -3
  12. package/dist/effect/generated/index.d.ts +3 -1
  13. package/dist/effect/generated/mailboxes.d.ts +176 -98
  14. package/dist/effect/generated/mailboxes.js +35 -26
  15. package/dist/effect/generated/messages.d.ts +9 -5
  16. package/dist/effect/generated/messages.js +2 -1
  17. package/dist/effect/generated/organizations.d.ts +18 -0
  18. package/dist/effect/generated/organizations.js +7 -1
  19. package/dist/effect/generated/scheduled-messages.d.ts +16 -0
  20. package/dist/effect/generated/shared.d.ts +203 -45
  21. package/dist/effect/generated/shared.js +66 -38
  22. package/dist/effect/generated/templates.d.ts +11 -7
  23. package/dist/effect/generated/templates.js +4 -7
  24. package/dist/effect/generated/webhooks.d.ts +19 -19
  25. package/dist/effect/generated/webhooks.js +12 -0
  26. package/dist/effect/generated/whoami.d.ts +4 -0
  27. package/dist/effect/generated-metadata.d.ts +45 -0
  28. package/dist/effect/generated-metadata.js +465 -426
  29. package/dist/effect/journeys.d.ts +112 -112
  30. package/dist/effect/mailboxes.d.ts +20 -6
  31. package/dist/effect/messages.d.ts +3 -0
  32. package/dist/effect/scheduled-messages.d.ts +9 -0
  33. package/dist/effect/templates.d.ts +4 -0
  34. package/dist/effect/webhooks.d.ts +4 -4
  35. package/dist/mailbox-events.d.ts +1 -1
  36. package/dist/package.js +1 -1
  37. package/dist/promises/types.gen.d.ts +1 -1
  38. package/package.json +6 -6
@@ -10,7 +10,7 @@ export type MailboxActionResolution = {
10
10
  readonly kind: "user" | "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system";
11
11
  readonly id: string;
12
12
  readonly displayName?: string | null;
13
- readonly source: "humanUi" | "externalApi" | "externalAgent" | "extension" | "system";
13
+ readonly source: "humanUi" | "externalApi" | "externalAgent" | "extension" | "samvaManagedAgent" | "system";
14
14
  };
15
15
  readonly resolvedAt: string;
16
16
  readonly reason: string | null;
@@ -21,15 +21,27 @@ export declare const MailboxActionResolution: Schema.Struct<{
21
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
22
  readonly id: Schema.String;
23
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">]>;
24
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
25
25
  }>;
26
26
  readonly resolvedAt: Schema.String;
27
27
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
28
28
  }>;
29
+ export type MailboxToolCall = {
30
+ readonly name: string;
31
+ readonly argumentsHash: string;
32
+ readonly arguments: {
33
+ readonly [x: string]: JsonValue;
34
+ };
35
+ };
36
+ export declare const MailboxToolCall: Schema.Struct<{
37
+ readonly name: Schema.String;
38
+ readonly argumentsHash: Schema.String;
39
+ readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
40
+ }>;
29
41
  export type MailboxAgentActivity = {
30
42
  readonly actions: {
31
43
  readonly byType: ReadonlyArray<{
32
- readonly type: "sendMessage" | "reply" | "updateDraft" | "createNote" | "assignThread" | "changeThreadState" | "call" | "extensionRequest";
44
+ readonly type: "sendMessage" | "reply" | "updateDraft" | "createNote" | "assignThread" | "changeThreadState" | "call" | "extensionRequest" | "toolCall";
33
45
  readonly count: number;
34
46
  }>;
35
47
  readonly byState: ReadonlyArray<{
@@ -48,7 +60,7 @@ export type MailboxAgentActivity = {
48
60
  export declare const MailboxAgentActivity: Schema.Struct<{
49
61
  readonly actions: Schema.Struct<{
50
62
  readonly byType: Schema.$Array<Schema.Struct<{
51
- readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">, Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
63
+ readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">, Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">]>;
52
64
  readonly count: Schema.Finite;
53
65
  }>>;
54
66
  readonly byState: Schema.$Array<Schema.Struct<{
@@ -154,6 +166,24 @@ export declare const MailboxThreadParticipant: Schema.Struct<{
154
166
  }>;
155
167
  export type MailboxNoteId = string & EffectBrand.Brand<"MailboxNoteId">;
156
168
  export declare const MailboxNoteId: Schema.brand<Schema.String, "MailboxNoteId">;
169
+ export type MailboxEndpoint = {
170
+ readonly id: MailboxEndpointId;
171
+ readonly address: string;
172
+ readonly displayName: string | null;
173
+ readonly default: boolean;
174
+ readonly channel: "email";
175
+ readonly source: "samvaHosted" | "verifiedDomain";
176
+ readonly domainId: string | null;
177
+ };
178
+ export declare const MailboxEndpoint: Schema.Struct<{
179
+ readonly id: Schema.brand<Schema.String, "MailboxEndpointId">;
180
+ readonly address: Schema.String;
181
+ readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
182
+ readonly default: Schema.Boolean;
183
+ readonly channel: Schema.Literal<"email">;
184
+ readonly source: Schema.Union<readonly [Schema.Literal<"samvaHosted">, Schema.Literal<"verifiedDomain">]>;
185
+ readonly domainId: Schema.Union<readonly [Schema.String, Schema.Null]>;
186
+ }>;
157
187
  export type MailboxCopiedAttachment = {
158
188
  readonly filename: string;
159
189
  readonly content?: string | null;
@@ -186,24 +216,6 @@ export declare const MailboxSummary: Schema.Struct<{
186
216
  readonly primaryAddress: Schema.Union<readonly [Schema.String, Schema.Null]>;
187
217
  readonly createdAt: Schema.String;
188
218
  }>;
189
- export type MailboxEndpoint = {
190
- readonly id: MailboxEndpointId;
191
- readonly address: string;
192
- readonly displayName: string | null;
193
- readonly default: boolean;
194
- readonly channel: "email";
195
- readonly source: "samvaHosted" | "verifiedDomain";
196
- readonly domainId: string | null;
197
- };
198
- export declare const MailboxEndpoint: Schema.Struct<{
199
- readonly id: Schema.brand<Schema.String, "MailboxEndpointId">;
200
- readonly address: Schema.String;
201
- readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
202
- readonly default: Schema.Boolean;
203
- readonly channel: Schema.Literal<"email">;
204
- readonly source: Schema.Union<readonly [Schema.Literal<"samvaHosted">, Schema.Literal<"verifiedDomain">]>;
205
- readonly domainId: Schema.Union<readonly [Schema.String, Schema.Null]>;
206
- }>;
207
219
  export type MailboxQuarantinedMessage = {
208
220
  readonly id: MessageId;
209
221
  readonly disposition: "quarantined" | "isolated";
@@ -607,6 +619,40 @@ export declare const MailboxNote: Schema.Struct<{
607
619
  readonly createdAt: Schema.String;
608
620
  readonly updatedAt: Schema.String;
609
621
  }>;
622
+ export type Mailbox = {
623
+ readonly id: MailboxId;
624
+ readonly namespaceId: NamespaceId | null;
625
+ readonly slug: string;
626
+ readonly name: string;
627
+ readonly status: MailboxStatus;
628
+ readonly primaryAddress: string | null;
629
+ readonly createdAt: string;
630
+ readonly description: string | null;
631
+ readonly metadata: MailboxMetadata;
632
+ readonly endpoints: ReadonlyArray<MailboxEndpoint>;
633
+ readonly updatedAt: string;
634
+ };
635
+ export declare const Mailbox: Schema.Struct<{
636
+ readonly id: Schema.brand<Schema.String, "MailboxId">;
637
+ readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
638
+ readonly slug: Schema.String;
639
+ readonly name: Schema.String;
640
+ readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">]>;
641
+ readonly primaryAddress: Schema.Union<readonly [Schema.String, Schema.Null]>;
642
+ readonly createdAt: Schema.String;
643
+ readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
644
+ readonly metadata: Schema.$Record<Schema.String, Schema.String>;
645
+ readonly endpoints: Schema.$Array<Schema.Struct<{
646
+ readonly id: Schema.brand<Schema.String, "MailboxEndpointId">;
647
+ readonly address: Schema.String;
648
+ readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
649
+ readonly default: Schema.Boolean;
650
+ readonly channel: Schema.Literal<"email">;
651
+ readonly source: Schema.Union<readonly [Schema.Literal<"samvaHosted">, Schema.Literal<"verifiedDomain">]>;
652
+ readonly domainId: Schema.Union<readonly [Schema.String, Schema.Null]>;
653
+ }>>;
654
+ readonly updatedAt: Schema.String;
655
+ }>;
610
656
  export type MailboxSendSnapshot = {
611
657
  readonly channel: "email";
612
658
  readonly draftRevision: number;
@@ -707,40 +753,6 @@ export declare const MailboxPage: Schema.Struct<{
707
753
  }>>;
708
754
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
709
755
  }>;
710
- export type Mailbox = {
711
- readonly id: MailboxId;
712
- readonly namespaceId: NamespaceId | null;
713
- readonly slug: string;
714
- readonly name: string;
715
- readonly status: MailboxStatus;
716
- readonly primaryAddress: string | null;
717
- readonly createdAt: string;
718
- readonly description: string | null;
719
- readonly metadata: MailboxMetadata;
720
- readonly endpoints: ReadonlyArray<MailboxEndpoint>;
721
- readonly updatedAt: string;
722
- };
723
- export declare const Mailbox: Schema.Struct<{
724
- readonly id: Schema.brand<Schema.String, "MailboxId">;
725
- readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
726
- readonly slug: Schema.String;
727
- readonly name: Schema.String;
728
- readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">]>;
729
- readonly primaryAddress: Schema.Union<readonly [Schema.String, Schema.Null]>;
730
- readonly createdAt: Schema.String;
731
- readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
732
- readonly metadata: Schema.$Record<Schema.String, Schema.String>;
733
- readonly endpoints: Schema.$Array<Schema.Struct<{
734
- readonly id: Schema.brand<Schema.String, "MailboxEndpointId">;
735
- readonly address: Schema.String;
736
- readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
737
- readonly default: Schema.Boolean;
738
- readonly channel: Schema.Literal<"email">;
739
- readonly source: Schema.Union<readonly [Schema.Literal<"samvaHosted">, Schema.Literal<"verifiedDomain">]>;
740
- readonly domainId: Schema.Union<readonly [Schema.String, Schema.Null]>;
741
- }>>;
742
- readonly updatedAt: Schema.String;
743
- }>;
744
756
  export type MailboxQuarantinePage = {
745
757
  readonly items: ReadonlyArray<MailboxQuarantinedMessage>;
746
758
  readonly nextCursor: string | null;
@@ -778,8 +790,9 @@ export type MailboxNonSendAction = {
778
790
  readonly resolution: MailboxActionResolution | null;
779
791
  readonly createdAt: string;
780
792
  readonly updatedAt: string;
781
- readonly type: "updateDraft" | "createNote" | "assignThread" | "changeThreadState" | "call" | "extensionRequest";
793
+ readonly type: "updateDraft" | "createNote" | "assignThread" | "changeThreadState" | "call" | "extensionRequest" | "toolCall";
782
794
  readonly state: "proposed" | "allowed" | "approvalRequired" | "policyDenied" | "approved" | "approvalDenied" | "executing" | "executed" | "failed";
795
+ readonly tool: MailboxToolCall | null;
783
796
  };
784
797
  export declare const MailboxNonSendAction: Schema.Struct<{
785
798
  readonly id: Schema.brand<Schema.String, "MailboxActionId">;
@@ -804,15 +817,20 @@ export declare const MailboxNonSendAction: Schema.Struct<{
804
817
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
805
818
  readonly id: Schema.String;
806
819
  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">]>;
820
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
808
821
  }>;
809
822
  readonly resolvedAt: Schema.String;
810
823
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
811
824
  }>, Schema.Null]>;
812
825
  readonly createdAt: Schema.String;
813
826
  readonly updatedAt: Schema.String;
814
- readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
827
+ readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">]>;
815
828
  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">]>;
829
+ readonly tool: Schema.Union<readonly [Schema.Struct<{
830
+ readonly name: Schema.String;
831
+ readonly argumentsHash: Schema.String;
832
+ readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
833
+ }>, Schema.Null]>;
816
834
  }>;
817
835
  export type MailboxPendingSendReceipt = {
818
836
  readonly actionId: MailboxActionId;
@@ -1170,7 +1188,7 @@ export declare const MailboxSendAction: Schema.Struct<{
1170
1188
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
1171
1189
  readonly id: Schema.String;
1172
1190
  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">]>;
1191
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
1174
1192
  }>;
1175
1193
  readonly resolvedAt: Schema.String;
1176
1194
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1294,7 +1312,7 @@ export declare const MailboxAction: Schema.Union<readonly [Schema.Struct<{
1294
1312
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
1295
1313
  readonly id: Schema.String;
1296
1314
  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">]>;
1315
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
1298
1316
  }>;
1299
1317
  readonly resolvedAt: Schema.String;
1300
1318
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1416,15 +1434,20 @@ export declare const MailboxAction: Schema.Union<readonly [Schema.Struct<{
1416
1434
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
1417
1435
  readonly id: Schema.String;
1418
1436
  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">]>;
1437
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
1420
1438
  }>;
1421
1439
  readonly resolvedAt: Schema.String;
1422
1440
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1423
1441
  }>, Schema.Null]>;
1424
1442
  readonly createdAt: Schema.String;
1425
1443
  readonly updatedAt: Schema.String;
1426
- readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
1444
+ readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">]>;
1427
1445
  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">]>;
1446
+ readonly tool: Schema.Union<readonly [Schema.Struct<{
1447
+ readonly name: Schema.String;
1448
+ readonly argumentsHash: Schema.String;
1449
+ readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
1450
+ }>, Schema.Null]>;
1428
1451
  }>]>;
1429
1452
  export type MailboxPendingAction = MailboxSendAction | MailboxNonSendAction;
1430
1453
  export declare const MailboxPendingAction: Schema.Union<readonly [Schema.Struct<{
@@ -1450,7 +1473,7 @@ export declare const MailboxPendingAction: Schema.Union<readonly [Schema.Struct<
1450
1473
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
1451
1474
  readonly id: Schema.String;
1452
1475
  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">]>;
1476
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
1454
1477
  }>;
1455
1478
  readonly resolvedAt: Schema.String;
1456
1479
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1572,15 +1595,20 @@ export declare const MailboxPendingAction: Schema.Union<readonly [Schema.Struct<
1572
1595
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
1573
1596
  readonly id: Schema.String;
1574
1597
  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">]>;
1598
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
1576
1599
  }>;
1577
1600
  readonly resolvedAt: Schema.String;
1578
1601
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1579
1602
  }>, Schema.Null]>;
1580
1603
  readonly createdAt: Schema.String;
1581
1604
  readonly updatedAt: Schema.String;
1582
- readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
1605
+ readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">]>;
1583
1606
  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">]>;
1607
+ readonly tool: Schema.Union<readonly [Schema.Struct<{
1608
+ readonly name: Schema.String;
1609
+ readonly argumentsHash: Schema.String;
1610
+ readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
1611
+ }>, Schema.Null]>;
1584
1612
  }>]>;
1585
1613
  export type MailboxActionPage = {
1586
1614
  readonly items: ReadonlyArray<MailboxAction>;
@@ -1610,7 +1638,7 @@ export declare const MailboxActionPage: Schema.Struct<{
1610
1638
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
1611
1639
  readonly id: Schema.String;
1612
1640
  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">]>;
1641
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
1614
1642
  }>;
1615
1643
  readonly resolvedAt: Schema.String;
1616
1644
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1732,15 +1760,20 @@ export declare const MailboxActionPage: Schema.Struct<{
1732
1760
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
1733
1761
  readonly id: Schema.String;
1734
1762
  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">]>;
1763
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
1736
1764
  }>;
1737
1765
  readonly resolvedAt: Schema.String;
1738
1766
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1739
1767
  }>, Schema.Null]>;
1740
1768
  readonly createdAt: Schema.String;
1741
1769
  readonly updatedAt: Schema.String;
1742
- readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
1770
+ readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">]>;
1743
1771
  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">]>;
1772
+ readonly tool: Schema.Union<readonly [Schema.Struct<{
1773
+ readonly name: Schema.String;
1774
+ readonly argumentsHash: Schema.String;
1775
+ readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
1776
+ }>, Schema.Null]>;
1744
1777
  }>]>>;
1745
1778
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
1746
1779
  }>;
@@ -1996,7 +2029,7 @@ export declare const MailboxesListActions200: Schema.Struct<{
1996
2029
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
1997
2030
  readonly id: Schema.String;
1998
2031
  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">]>;
2032
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
2000
2033
  }>;
2001
2034
  readonly resolvedAt: Schema.String;
2002
2035
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -2118,15 +2151,20 @@ export declare const MailboxesListActions200: Schema.Struct<{
2118
2151
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2119
2152
  readonly id: Schema.String;
2120
2153
  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">]>;
2154
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
2122
2155
  }>;
2123
2156
  readonly resolvedAt: Schema.String;
2124
2157
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2125
2158
  }>, Schema.Null]>;
2126
2159
  readonly createdAt: Schema.String;
2127
2160
  readonly updatedAt: Schema.String;
2128
- readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
2161
+ readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">]>;
2129
2162
  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">]>;
2163
+ readonly tool: Schema.Union<readonly [Schema.Struct<{
2164
+ readonly name: Schema.String;
2165
+ readonly argumentsHash: Schema.String;
2166
+ readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
2167
+ }>, Schema.Null]>;
2130
2168
  }>]>>;
2131
2169
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
2132
2170
  }>;
@@ -2174,7 +2212,7 @@ export declare const MailboxesGetAction200: Schema.Union<readonly [Schema.Struct
2174
2212
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2175
2213
  readonly id: Schema.String;
2176
2214
  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">]>;
2215
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
2178
2216
  }>;
2179
2217
  readonly resolvedAt: Schema.String;
2180
2218
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -2296,15 +2334,20 @@ export declare const MailboxesGetAction200: Schema.Union<readonly [Schema.Struct
2296
2334
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2297
2335
  readonly id: Schema.String;
2298
2336
  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">]>;
2337
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
2300
2338
  }>;
2301
2339
  readonly resolvedAt: Schema.String;
2302
2340
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2303
2341
  }>, Schema.Null]>;
2304
2342
  readonly createdAt: Schema.String;
2305
2343
  readonly updatedAt: Schema.String;
2306
- readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
2344
+ readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">]>;
2307
2345
  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">]>;
2346
+ readonly tool: Schema.Union<readonly [Schema.Struct<{
2347
+ readonly name: Schema.String;
2348
+ readonly argumentsHash: Schema.String;
2349
+ readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
2350
+ }>, Schema.Null]>;
2308
2351
  }>]>;
2309
2352
  export type MailboxesGetAction401 = UnauthorizedError;
2310
2353
  export declare const MailboxesGetAction401: typeof UnauthorizedError;
@@ -2350,7 +2393,7 @@ export declare const MailboxesApproveAction200: Schema.Union<readonly [Schema.St
2350
2393
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2351
2394
  readonly id: Schema.String;
2352
2395
  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">]>;
2396
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
2354
2397
  }>;
2355
2398
  readonly resolvedAt: Schema.String;
2356
2399
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -2472,15 +2515,20 @@ export declare const MailboxesApproveAction200: Schema.Union<readonly [Schema.St
2472
2515
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2473
2516
  readonly id: Schema.String;
2474
2517
  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">]>;
2518
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
2476
2519
  }>;
2477
2520
  readonly resolvedAt: Schema.String;
2478
2521
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2479
2522
  }>, Schema.Null]>;
2480
2523
  readonly createdAt: Schema.String;
2481
2524
  readonly updatedAt: Schema.String;
2482
- readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
2525
+ readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">]>;
2483
2526
  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">]>;
2527
+ readonly tool: Schema.Union<readonly [Schema.Struct<{
2528
+ readonly name: Schema.String;
2529
+ readonly argumentsHash: Schema.String;
2530
+ readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
2531
+ }>, Schema.Null]>;
2484
2532
  }>]>;
2485
2533
  export type MailboxesApproveAction202 = MailboxPendingAction;
2486
2534
  export declare const MailboxesApproveAction202: Schema.Union<readonly [Schema.Struct<{
@@ -2506,7 +2554,7 @@ export declare const MailboxesApproveAction202: Schema.Union<readonly [Schema.St
2506
2554
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2507
2555
  readonly id: Schema.String;
2508
2556
  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">]>;
2557
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
2510
2558
  }>;
2511
2559
  readonly resolvedAt: Schema.String;
2512
2560
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -2628,15 +2676,20 @@ export declare const MailboxesApproveAction202: Schema.Union<readonly [Schema.St
2628
2676
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2629
2677
  readonly id: Schema.String;
2630
2678
  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">]>;
2679
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
2632
2680
  }>;
2633
2681
  readonly resolvedAt: Schema.String;
2634
2682
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2635
2683
  }>, Schema.Null]>;
2636
2684
  readonly createdAt: Schema.String;
2637
2685
  readonly updatedAt: Schema.String;
2638
- readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
2686
+ readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">]>;
2639
2687
  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">]>;
2688
+ readonly tool: Schema.Union<readonly [Schema.Struct<{
2689
+ readonly name: Schema.String;
2690
+ readonly argumentsHash: Schema.String;
2691
+ readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
2692
+ }>, Schema.Null]>;
2640
2693
  }>]>;
2641
2694
  export type MailboxesApproveAction401 = UnauthorizedError;
2642
2695
  export declare const MailboxesApproveAction401: typeof UnauthorizedError;
@@ -2864,7 +2917,7 @@ export declare const MailboxesDenyAction200: Schema.Union<readonly [Schema.Struc
2864
2917
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2865
2918
  readonly id: Schema.String;
2866
2919
  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">]>;
2920
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
2868
2921
  }>;
2869
2922
  readonly resolvedAt: Schema.String;
2870
2923
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -2986,15 +3039,20 @@ export declare const MailboxesDenyAction200: Schema.Union<readonly [Schema.Struc
2986
3039
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
2987
3040
  readonly id: Schema.String;
2988
3041
  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">]>;
3042
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
2990
3043
  }>;
2991
3044
  readonly resolvedAt: Schema.String;
2992
3045
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2993
3046
  }>, Schema.Null]>;
2994
3047
  readonly createdAt: Schema.String;
2995
3048
  readonly updatedAt: Schema.String;
2996
- readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
3049
+ readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">]>;
2997
3050
  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">]>;
3051
+ readonly tool: Schema.Union<readonly [Schema.Struct<{
3052
+ readonly name: Schema.String;
3053
+ readonly argumentsHash: Schema.String;
3054
+ readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
3055
+ }>, Schema.Null]>;
2998
3056
  }>]>;
2999
3057
  export type MailboxesDenyAction401 = UnauthorizedError;
3000
3058
  export declare const MailboxesDenyAction401: typeof UnauthorizedError;
@@ -3194,7 +3252,7 @@ export type MailboxesGetAgentActivity200 = MailboxAgentActivity;
3194
3252
  export declare const MailboxesGetAgentActivity200: Schema.Struct<{
3195
3253
  readonly actions: Schema.Struct<{
3196
3254
  readonly byType: Schema.$Array<Schema.Struct<{
3197
- readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">, Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
3255
+ readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">, Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">]>;
3198
3256
  readonly count: Schema.Finite;
3199
3257
  }>>;
3200
3258
  readonly byState: Schema.$Array<Schema.Struct<{
@@ -6125,7 +6183,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6125
6183
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
6126
6184
  readonly id: Schema.String;
6127
6185
  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">]>;
6186
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
6129
6187
  }>;
6130
6188
  readonly resolvedAt: Schema.String;
6131
6189
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -6247,15 +6305,20 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6247
6305
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
6248
6306
  readonly id: Schema.String;
6249
6307
  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">]>;
6308
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
6251
6309
  }>;
6252
6310
  readonly resolvedAt: Schema.String;
6253
6311
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
6254
6312
  }>, Schema.Null]>;
6255
6313
  readonly createdAt: Schema.String;
6256
6314
  readonly updatedAt: Schema.String;
6257
- readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
6315
+ readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">]>;
6258
6316
  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">]>;
6317
+ readonly tool: Schema.Union<readonly [Schema.Struct<{
6318
+ readonly name: Schema.String;
6319
+ readonly argumentsHash: Schema.String;
6320
+ readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
6321
+ }>, Schema.Null]>;
6259
6322
  }>]>>, 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, {
6260
6323
  readonly _tag: "BillingProviderError";
6261
6324
  readonly message: string;
@@ -7985,7 +8048,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
7985
8048
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
7986
8049
  readonly id: Schema.String;
7987
8050
  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">]>;
8051
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
7989
8052
  }>;
7990
8053
  readonly resolvedAt: Schema.String;
7991
8054
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -8107,15 +8170,20 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
8107
8170
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
8108
8171
  readonly id: Schema.String;
8109
8172
  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">]>;
8173
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
8111
8174
  }>;
8112
8175
  readonly resolvedAt: Schema.String;
8113
8176
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
8114
8177
  }>, Schema.Null]>;
8115
8178
  readonly createdAt: Schema.String;
8116
8179
  readonly updatedAt: Schema.String;
8117
- readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
8180
+ readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">]>;
8118
8181
  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">]>;
8182
+ readonly tool: Schema.Union<readonly [Schema.Struct<{
8183
+ readonly name: Schema.String;
8184
+ readonly argumentsHash: Schema.String;
8185
+ readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
8186
+ }>, Schema.Null]>;
8119
8187
  }>]>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof MailboxSendConflictError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
8120
8188
  readonly _tag: "ForbiddenError";
8121
8189
  readonly message: string;
@@ -8744,7 +8812,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
8744
8812
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
8745
8813
  readonly id: Schema.String;
8746
8814
  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">]>;
8815
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
8748
8816
  }>;
8749
8817
  readonly resolvedAt: Schema.String;
8750
8818
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -8866,15 +8934,20 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
8866
8934
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
8867
8935
  readonly id: Schema.String;
8868
8936
  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">]>;
8937
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
8870
8938
  }>;
8871
8939
  readonly resolvedAt: Schema.String;
8872
8940
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
8873
8941
  }>, Schema.Null]>;
8874
8942
  readonly createdAt: Schema.String;
8875
8943
  readonly updatedAt: Schema.String;
8876
- readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
8944
+ readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">]>;
8877
8945
  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">]>;
8946
+ readonly tool: Schema.Union<readonly [Schema.Struct<{
8947
+ readonly name: Schema.String;
8948
+ readonly argumentsHash: Schema.String;
8949
+ readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
8950
+ }>, Schema.Null]>;
8878
8951
  }>]>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
8879
8952
  readonly _tag: "ForbiddenError";
8880
8953
  readonly message: string;
@@ -8963,7 +9036,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
8963
9036
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
8964
9037
  readonly actions: Schema.Struct<{
8965
9038
  readonly byType: Schema.$Array<Schema.Struct<{
8966
- readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">, Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
9039
+ readonly type: Schema.Union<readonly [Schema.Literal<"sendMessage">, Schema.Literal<"reply">, Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">]>;
8967
9040
  readonly count: Schema.Finite;
8968
9041
  }>>;
8969
9042
  readonly byState: Schema.$Array<Schema.Struct<{
@@ -9930,7 +10003,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9930
10003
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
9931
10004
  readonly id: Schema.String;
9932
10005
  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">]>;
10006
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
9934
10007
  }>;
9935
10008
  readonly resolvedAt: Schema.String;
9936
10009
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -10052,15 +10125,20 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
10052
10125
  readonly kind: Schema.Union<readonly [Schema.Literal<"user">, Schema.Literal<"apiKey">, Schema.Literal<"extension">, Schema.Literal<"externalAgent">, Schema.Literal<"samvaAgent">, Schema.Literal<"system">]>;
10053
10126
  readonly id: Schema.String;
10054
10127
  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">]>;
10128
+ readonly source: Schema.Union<readonly [Schema.Literal<"humanUi">, Schema.Literal<"externalApi">, Schema.Literal<"externalAgent">, Schema.Literal<"extension">, Schema.Literal<"samvaManagedAgent">, Schema.Literal<"system">]>;
10056
10129
  }>;
10057
10130
  readonly resolvedAt: Schema.String;
10058
10131
  readonly reason: Schema.Union<readonly [Schema.String, Schema.Null]>;
10059
10132
  }>, Schema.Null]>;
10060
10133
  readonly createdAt: Schema.String;
10061
10134
  readonly updatedAt: Schema.String;
10062
- readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">]>;
10135
+ readonly type: Schema.Union<readonly [Schema.Literal<"updateDraft">, Schema.Literal<"createNote">, Schema.Literal<"assignThread">, Schema.Literal<"changeThreadState">, Schema.Literal<"call">, Schema.Literal<"extensionRequest">, Schema.Literal<"toolCall">]>;
10063
10136
  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">]>;
10137
+ readonly tool: Schema.Union<readonly [Schema.Struct<{
10138
+ readonly name: Schema.String;
10139
+ readonly argumentsHash: Schema.String;
10140
+ readonly arguments: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
10141
+ }>, Schema.Null]>;
10064
10142
  }>]>>;
10065
10143
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
10066
10144
  }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {