samva 0.50.0 → 0.52.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.
- package/AGENTS.md +49 -5
- package/README.md +137 -7
- package/dist/client/sdk.gen.d.ts +78 -38
- package/dist/client/sdk.gen.js +1554 -967
- package/dist/client/types.gen.d.ts +541 -291
- package/dist/effect/agents.d.ts +4 -4
- package/dist/effect/api-keys.d.ts +4 -6
- package/dist/effect/campaigns.d.ts +222 -230
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +6 -4
- package/dist/effect/contact-groups.d.ts +4 -4
- package/dist/effect/contacts.d.ts +8 -8
- package/dist/effect/conversations.d.ts +4 -4
- package/dist/effect/descriptors/integrations-catalog.d.ts +1 -1
- package/dist/effect/descriptors/integrations-catalog.js +1 -1
- package/dist/effect/descriptors/integrations.d.ts +1 -1
- package/dist/effect/descriptors/integrations.js +1 -1
- package/dist/effect/descriptors/logs.d.ts +21 -0
- package/dist/effect/descriptors/logs.js +23 -0
- package/dist/effect/descriptors/whats-app.d.ts +1 -1
- package/dist/effect/descriptors/whats-app.js +1 -1
- package/dist/effect/email.d.ts +17 -16
- package/dist/effect/errors.d.ts +1 -0
- package/dist/effect/errors.js +2 -1
- package/dist/effect/generated/agents.js +4 -4
- package/dist/effect/generated/api-keys.d.ts +0 -15
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +18 -68
- package/dist/effect/generated/campaigns.js +5 -15
- package/dist/effect/generated/email.d.ts +10 -3
- package/dist/effect/generated/email.js +6 -5
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/integrations-catalog.d.ts +93 -49
- package/dist/effect/generated/integrations-catalog.js +17 -28
- package/dist/effect/generated/integrations.d.ts +20 -40
- package/dist/effect/generated/integrations.js +9 -13
- package/dist/effect/generated/journeys.d.ts +61 -13
- package/dist/effect/generated/journeys.js +5 -5
- package/dist/effect/generated/logs.d.ts +2311 -0
- package/dist/effect/generated/logs.js +312 -0
- package/dist/effect/generated/mailboxes.d.ts +30 -24
- package/dist/effect/generated/mailboxes.js +25 -25
- package/dist/effect/generated/messages.d.ts +1 -882
- package/dist/effect/generated/messages.js +4 -243
- package/dist/effect/generated/namespaces.js +1 -1
- package/dist/effect/generated/newsletter-domains.d.ts +61 -13
- package/dist/effect/generated/newsletter-domains.js +5 -5
- package/dist/effect/generated/newsletter-issues.d.ts +166 -34
- package/dist/effect/generated/newsletter-issues.js +12 -12
- package/dist/effect/generated/newsletters.d.ts +76 -16
- package/dist/effect/generated/newsletters.js +6 -6
- package/dist/effect/generated/organizations.js +1 -1
- package/dist/effect/generated/policies.js +2 -2
- package/dist/effect/generated/scheduled-messages.d.ts +0 -26
- package/dist/effect/generated/scheduled-messages.js +2 -4
- package/dist/effect/generated/shared.d.ts +1139 -257
- package/dist/effect/generated/shared.js +323 -83
- package/dist/effect/generated/subscriptions.d.ts +4 -4
- package/dist/effect/generated/subscriptions.js +2 -6
- package/dist/effect/generated/template-registrations.d.ts +46 -10
- package/dist/effect/generated/template-registrations.js +4 -4
- package/dist/effect/generated/templates.js +2 -2
- package/dist/effect/generated/whats-app-flows.d.ts +151 -31
- package/dist/effect/generated/whats-app-flows.js +11 -11
- package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
- package/dist/effect/generated/whats-app-setup-links.js +5 -5
- package/dist/effect/generated/whats-app.d.ts +187 -65
- package/dist/effect/generated/whats-app.js +18 -24
- package/dist/effect/generated-metadata.d.ts +15 -3
- package/dist/effect/generated-metadata.js +375 -349
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -1
- package/dist/effect/integrations-catalog.d.ts +92 -4
- package/dist/effect/integrations.d.ts +42 -10
- package/dist/effect/internal/client.d.ts +19 -2
- package/dist/effect/internal/client.js +35 -5
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/email-sender.js +5 -3
- package/dist/effect/internal/log-events.d.ts +19 -0
- package/dist/effect/internal/log-events.js +53 -0
- package/dist/effect/internal/mailbox-events.d.ts +6 -2
- package/dist/effect/internal/mailbox-events.js +4 -3
- package/dist/effect/internal/operation.d.ts +11 -0
- package/dist/effect/internal/operation.js +10 -6
- package/dist/effect/internal/send.d.ts +4 -0
- package/dist/effect/internal/send.js +11 -8
- package/dist/effect/internal/timeout.d.ts +16 -0
- package/dist/effect/internal/timeout.js +20 -0
- package/dist/effect/journeys.d.ts +4 -4
- package/dist/effect/logs.d.ts +149 -0
- package/dist/effect/logs.js +18 -0
- package/dist/effect/mailboxes.d.ts +184 -178
- package/dist/effect/mailboxes.js +1 -1
- package/dist/effect/messages.d.ts +5 -5
- package/dist/effect/namespaces.d.ts +4 -4
- package/dist/effect/newsletter-domains.d.ts +2 -2
- package/dist/effect/operations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +2 -6
- package/dist/effect/templates.d.ts +6 -6
- package/dist/effect/topics.d.ts +4 -4
- package/dist/effect/webhooks.d.ts +4 -4
- package/dist/effect/whatsapp-setup-links.d.ts +2 -2
- package/dist/effect/whatsapp.d.ts +73 -3
- package/dist/index.js +2 -2
- package/dist/mailbox-events.d.ts +50 -3
- package/dist/mailbox-events.js +38 -19
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +8 -1
- package/dist/promises/client.js +15 -9
- package/dist/promises/errors.gen.d.ts +14 -1
- package/dist/promises/errors.gen.js +158 -36
- package/dist/promises/index.js +2 -2
- package/dist/promises/request.d.ts +31 -2
- package/dist/promises/request.js +42 -7
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-id.d.ts +3 -0
- package/dist/request-id.js +7 -0
- package/dist/request-policy.d.ts +9 -0
- package/dist/request-policy.js +16 -1
- package/dist/service-map.d.ts +14 -3
- package/package.json +6 -2
|
@@ -70,7 +70,7 @@ export declare const list: ((input?: {
|
|
|
70
70
|
readonly createdAt: string;
|
|
71
71
|
}[];
|
|
72
72
|
readonly nextCursor: string | null;
|
|
73
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
73
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
74
74
|
readonly items: (input?: {
|
|
75
75
|
readonly limit?: number | null | undefined;
|
|
76
76
|
readonly cursor?: string | undefined;
|
|
@@ -88,7 +88,7 @@ export declare const list: ((input?: {
|
|
|
88
88
|
readonly primaryAddress: string | null;
|
|
89
89
|
readonly sendingStatus: "failed" | "pending" | "ready" | null;
|
|
90
90
|
readonly createdAt: string;
|
|
91
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
91
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
92
92
|
};
|
|
93
93
|
export declare const create: (input: {
|
|
94
94
|
readonly namespaceId?: string | null | undefined;
|
|
@@ -164,7 +164,7 @@ export declare const listGrants: ((input: {
|
|
|
164
164
|
readonly createdAt: string;
|
|
165
165
|
}[];
|
|
166
166
|
readonly nextCursor: string | null;
|
|
167
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
167
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
168
168
|
readonly items: (input: {
|
|
169
169
|
readonly id: string;
|
|
170
170
|
readonly limit?: number | null | undefined;
|
|
@@ -178,7 +178,7 @@ export declare const listGrants: ((input: {
|
|
|
178
178
|
};
|
|
179
179
|
readonly permissions: readonly ("action:approve" | "action:propose" | "draft:write" | "label:write" | "mailbox:configure" | "mailbox:read" | "note:write" | "policy:read" | "spam:discard" | "spam:read" | "thread:read" | "thread:write")[];
|
|
180
180
|
readonly createdAt: string;
|
|
181
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
181
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
182
182
|
};
|
|
183
183
|
export declare const createGrant: (input: {
|
|
184
184
|
readonly id: string;
|
|
@@ -408,7 +408,7 @@ export declare const getNeedsYou: ((input?: {
|
|
|
408
408
|
readonly quarantinedMessages: number;
|
|
409
409
|
readonly total: number;
|
|
410
410
|
};
|
|
411
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
411
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
412
412
|
readonly items: (input?: {
|
|
413
413
|
readonly limit?: number | null | undefined;
|
|
414
414
|
readonly cursor?: string | undefined;
|
|
@@ -589,7 +589,7 @@ export declare const getNeedsYou: ((input?: {
|
|
|
589
589
|
readonly reason: "dmarc" | "fraud" | "phishing" | "prompt_injection" | "spam" | "verdict_missing" | "virus" | "virus_unscanned";
|
|
590
590
|
readonly source: "classifier" | "receipt";
|
|
591
591
|
readonly heldAt: string;
|
|
592
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
592
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
593
593
|
};
|
|
594
594
|
export declare const listOrganizationDrafts: ((input?: {
|
|
595
595
|
readonly limit?: number | null | undefined;
|
|
@@ -623,7 +623,7 @@ export declare const listOrganizationDrafts: ((input?: {
|
|
|
623
623
|
};
|
|
624
624
|
}[];
|
|
625
625
|
readonly nextCursor: string | null;
|
|
626
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
626
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
627
627
|
readonly items: (input?: {
|
|
628
628
|
readonly limit?: number | null | undefined;
|
|
629
629
|
readonly cursor?: string | undefined;
|
|
@@ -646,7 +646,7 @@ export declare const listOrganizationDrafts: ((input?: {
|
|
|
646
646
|
readonly address: string | null;
|
|
647
647
|
readonly kind: "personal" | "shared";
|
|
648
648
|
};
|
|
649
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
649
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
650
650
|
};
|
|
651
651
|
export declare const listOrganizationThreads: ((input?: {
|
|
652
652
|
readonly limit?: number | null | undefined;
|
|
@@ -663,6 +663,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
663
663
|
readonly unread?: boolean | null | undefined;
|
|
664
664
|
readonly starred?: boolean | null | undefined;
|
|
665
665
|
readonly snoozed?: boolean | null | undefined;
|
|
666
|
+
readonly order?: "wake" | undefined;
|
|
666
667
|
readonly mailboxId?: string | readonly string[] | undefined;
|
|
667
668
|
readonly kind?: "personal" | "shared" | undefined;
|
|
668
669
|
readonly conversation?: string | undefined;
|
|
@@ -682,6 +683,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
682
683
|
readonly unread?: boolean | null | undefined;
|
|
683
684
|
readonly starred?: boolean | null | undefined;
|
|
684
685
|
readonly snoozed?: boolean | null | undefined;
|
|
686
|
+
readonly order?: "wake" | undefined;
|
|
685
687
|
readonly mailboxId?: string | readonly string[] | undefined;
|
|
686
688
|
readonly kind?: "personal" | "shared" | undefined;
|
|
687
689
|
readonly conversation?: string | undefined;
|
|
@@ -727,7 +729,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
727
729
|
};
|
|
728
730
|
}[];
|
|
729
731
|
readonly nextCursor: string | null;
|
|
730
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
732
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
731
733
|
readonly items: (input?: {
|
|
732
734
|
readonly limit?: number | null | undefined;
|
|
733
735
|
readonly cursor?: string | undefined;
|
|
@@ -743,6 +745,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
743
745
|
readonly unread?: boolean | null | undefined;
|
|
744
746
|
readonly starred?: boolean | null | undefined;
|
|
745
747
|
readonly snoozed?: boolean | null | undefined;
|
|
748
|
+
readonly order?: "wake" | undefined;
|
|
746
749
|
readonly mailboxId?: string | readonly string[] | undefined;
|
|
747
750
|
readonly kind?: "personal" | "shared" | undefined;
|
|
748
751
|
readonly conversation?: string | undefined;
|
|
@@ -785,7 +788,7 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
785
788
|
readonly address: string | null;
|
|
786
789
|
readonly kind: "personal" | "shared";
|
|
787
790
|
};
|
|
788
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
791
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
789
792
|
};
|
|
790
793
|
export declare const listThreads: ((input: {
|
|
791
794
|
readonly id: string;
|
|
@@ -803,6 +806,7 @@ export declare const listThreads: ((input: {
|
|
|
803
806
|
readonly unread?: boolean | null | undefined;
|
|
804
807
|
readonly starred?: boolean | null | undefined;
|
|
805
808
|
readonly snoozed?: boolean | null | undefined;
|
|
809
|
+
readonly order?: "wake" | undefined;
|
|
806
810
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListThreads">) & {
|
|
807
811
|
readonly pages: (input: {
|
|
808
812
|
readonly id: string;
|
|
@@ -820,6 +824,7 @@ export declare const listThreads: ((input: {
|
|
|
820
824
|
readonly unread?: boolean | null | undefined;
|
|
821
825
|
readonly starred?: boolean | null | undefined;
|
|
822
826
|
readonly snoozed?: boolean | null | undefined;
|
|
827
|
+
readonly order?: "wake" | undefined;
|
|
823
828
|
}) => import("effect/Stream").Stream<{
|
|
824
829
|
readonly items: readonly {
|
|
825
830
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
@@ -857,7 +862,7 @@ export declare const listThreads: ((input: {
|
|
|
857
862
|
readonly lastActivityAt: string;
|
|
858
863
|
}[];
|
|
859
864
|
readonly nextCursor: string | null;
|
|
860
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
865
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
861
866
|
readonly items: (input: {
|
|
862
867
|
readonly id: string;
|
|
863
868
|
readonly limit?: number | null | undefined;
|
|
@@ -874,6 +879,7 @@ export declare const listThreads: ((input: {
|
|
|
874
879
|
readonly unread?: boolean | null | undefined;
|
|
875
880
|
readonly starred?: boolean | null | undefined;
|
|
876
881
|
readonly snoozed?: boolean | null | undefined;
|
|
882
|
+
readonly order?: "wake" | undefined;
|
|
877
883
|
}) => import("effect/Stream").Stream<{
|
|
878
884
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
879
885
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
@@ -908,7 +914,7 @@ export declare const listThreads: ((input: {
|
|
|
908
914
|
readonly displayName?: string | null;
|
|
909
915
|
} | null;
|
|
910
916
|
readonly lastActivityAt: string;
|
|
911
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
917
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
912
918
|
};
|
|
913
919
|
export declare const getThread: (input: {
|
|
914
920
|
readonly id: string;
|
|
@@ -983,7 +989,7 @@ export declare const listThreadMessages: ((input: {
|
|
|
983
989
|
readonly occurredAt: string;
|
|
984
990
|
}[];
|
|
985
991
|
readonly nextCursor: string | null;
|
|
986
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
992
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
987
993
|
readonly items: (input: {
|
|
988
994
|
readonly id: string;
|
|
989
995
|
readonly threadId: string;
|
|
@@ -1011,7 +1017,7 @@ export declare const listThreadMessages: ((input: {
|
|
|
1011
1017
|
readonly preview: string | null;
|
|
1012
1018
|
readonly hasAttachments: boolean;
|
|
1013
1019
|
readonly occurredAt: string;
|
|
1014
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1020
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1015
1021
|
};
|
|
1016
1022
|
export declare const getThreadContent: ((input: {
|
|
1017
1023
|
readonly id: string;
|
|
@@ -1123,7 +1129,7 @@ export declare const getThreadContent: ((input: {
|
|
|
1123
1129
|
readonly contextMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1124
1130
|
})[];
|
|
1125
1131
|
readonly nextCursor: string | null;
|
|
1126
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1132
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1127
1133
|
readonly items: (input: {
|
|
1128
1134
|
readonly id: string;
|
|
1129
1135
|
readonly threadId: string;
|
|
@@ -1225,7 +1231,7 @@ export declare const getThreadContent: ((input: {
|
|
|
1225
1231
|
} | null;
|
|
1226
1232
|
readonly summary: string | null;
|
|
1227
1233
|
readonly contextMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1228
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1234
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1229
1235
|
};
|
|
1230
1236
|
export declare const listThreadNotes: ((input: {
|
|
1231
1237
|
readonly id: string;
|
|
@@ -1253,7 +1259,7 @@ export declare const listThreadNotes: ((input: {
|
|
|
1253
1259
|
readonly updatedAt: string;
|
|
1254
1260
|
}[];
|
|
1255
1261
|
readonly nextCursor: string | null;
|
|
1256
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1262
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1257
1263
|
readonly items: (input: {
|
|
1258
1264
|
readonly id: string;
|
|
1259
1265
|
readonly threadId: string;
|
|
@@ -1271,7 +1277,7 @@ export declare const listThreadNotes: ((input: {
|
|
|
1271
1277
|
readonly pinned: boolean;
|
|
1272
1278
|
readonly createdAt: string;
|
|
1273
1279
|
readonly updatedAt: string;
|
|
1274
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1280
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1275
1281
|
};
|
|
1276
1282
|
export declare const createNote: (input: {
|
|
1277
1283
|
readonly id: string;
|
|
@@ -1507,7 +1513,7 @@ export declare const listSpamHeld: ((input: {
|
|
|
1507
1513
|
readonly discardedAt: string | null;
|
|
1508
1514
|
}[];
|
|
1509
1515
|
readonly nextCursor: string | null;
|
|
1510
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1516
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1511
1517
|
readonly items: (input: {
|
|
1512
1518
|
readonly id: string;
|
|
1513
1519
|
readonly limit?: number | null | undefined;
|
|
@@ -1529,7 +1535,7 @@ export declare const listSpamHeld: ((input: {
|
|
|
1529
1535
|
readonly releasedAt: string | null;
|
|
1530
1536
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1531
1537
|
readonly discardedAt: string | null;
|
|
1532
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1538
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1533
1539
|
};
|
|
1534
1540
|
export declare const discardSpamHeld: (input: {
|
|
1535
1541
|
readonly id: string;
|
|
@@ -1600,7 +1606,7 @@ export declare const listScheduledSends: ((input: {
|
|
|
1600
1606
|
readonly updatedAt: string;
|
|
1601
1607
|
}[];
|
|
1602
1608
|
readonly nextCursor: string | null;
|
|
1603
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1609
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1604
1610
|
readonly items: (input: {
|
|
1605
1611
|
readonly id: string;
|
|
1606
1612
|
readonly limit?: number | null | undefined;
|
|
@@ -1628,7 +1634,7 @@ export declare const listScheduledSends: ((input: {
|
|
|
1628
1634
|
} | null;
|
|
1629
1635
|
readonly createdAt: string;
|
|
1630
1636
|
readonly updatedAt: string;
|
|
1631
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1637
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1632
1638
|
};
|
|
1633
1639
|
export declare const listDrafts: ((input: {
|
|
1634
1640
|
readonly id: string;
|
|
@@ -1655,7 +1661,7 @@ export declare const listDrafts: ((input: {
|
|
|
1655
1661
|
readonly updatedAt: string;
|
|
1656
1662
|
}[];
|
|
1657
1663
|
readonly nextCursor: string | null;
|
|
1658
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1664
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1659
1665
|
readonly items: (input: {
|
|
1660
1666
|
readonly id: string;
|
|
1661
1667
|
readonly limit?: number | null | undefined;
|
|
@@ -1672,7 +1678,7 @@ export declare const listDrafts: ((input: {
|
|
|
1672
1678
|
readonly subject: string | null;
|
|
1673
1679
|
readonly createdAt: string;
|
|
1674
1680
|
readonly updatedAt: string;
|
|
1675
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1681
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1676
1682
|
};
|
|
1677
1683
|
export declare const createDraft: (input: {
|
|
1678
1684
|
readonly channel?: "email" | null | undefined;
|
|
@@ -1749,6 +1755,81 @@ export declare const listActions: ((input: {
|
|
|
1749
1755
|
readonly before?: string | undefined;
|
|
1750
1756
|
}) => import("effect/Stream").Stream<{
|
|
1751
1757
|
readonly items: readonly ({
|
|
1758
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1759
|
+
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1760
|
+
readonly proposedBy: {
|
|
1761
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1762
|
+
readonly id: string;
|
|
1763
|
+
readonly displayName?: string | null;
|
|
1764
|
+
};
|
|
1765
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1766
|
+
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1767
|
+
readonly decision: {
|
|
1768
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
1769
|
+
readonly reviewRound: number;
|
|
1770
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
1771
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
1772
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
1773
|
+
readonly reason: string;
|
|
1774
|
+
readonly scopes: readonly {
|
|
1775
|
+
readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
|
|
1776
|
+
readonly id: string;
|
|
1777
|
+
}[];
|
|
1778
|
+
readonly rule?: {
|
|
1779
|
+
readonly scope: {
|
|
1780
|
+
readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
|
|
1781
|
+
readonly id: string;
|
|
1782
|
+
};
|
|
1783
|
+
readonly index: number;
|
|
1784
|
+
} | null;
|
|
1785
|
+
readonly guard?: string | null;
|
|
1786
|
+
readonly guardReason?: string | null;
|
|
1787
|
+
readonly resolution?: {
|
|
1788
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
1789
|
+
readonly at: string;
|
|
1790
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
1791
|
+
readonly diff?: {
|
|
1792
|
+
readonly text?: {
|
|
1793
|
+
readonly before: string | null;
|
|
1794
|
+
readonly after: string | null;
|
|
1795
|
+
} | null;
|
|
1796
|
+
readonly html?: {
|
|
1797
|
+
readonly before: string | null;
|
|
1798
|
+
readonly after: string | null;
|
|
1799
|
+
} | null;
|
|
1800
|
+
} | null;
|
|
1801
|
+
} | null;
|
|
1802
|
+
} | null;
|
|
1803
|
+
readonly resolution: {
|
|
1804
|
+
readonly outcome: "approved" | "cancelled" | "denied";
|
|
1805
|
+
readonly actor: {
|
|
1806
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1807
|
+
readonly id: string;
|
|
1808
|
+
readonly displayName?: string | null;
|
|
1809
|
+
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1810
|
+
};
|
|
1811
|
+
readonly resolvedAt: string;
|
|
1812
|
+
readonly reason: string | null;
|
|
1813
|
+
} | null;
|
|
1814
|
+
readonly alwaysAllow: {
|
|
1815
|
+
readonly by: "admin" | "approver" | "owner";
|
|
1816
|
+
readonly allowed: boolean;
|
|
1817
|
+
} | null;
|
|
1818
|
+
readonly createdAt: string;
|
|
1819
|
+
readonly updatedAt: string;
|
|
1820
|
+
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "handoff" | "toolCall" | "updateDraft";
|
|
1821
|
+
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
1822
|
+
readonly tool: {
|
|
1823
|
+
readonly name: string;
|
|
1824
|
+
readonly argumentsHash: string;
|
|
1825
|
+
readonly arguments: {
|
|
1826
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1827
|
+
};
|
|
1828
|
+
} | null;
|
|
1829
|
+
readonly handoff: {
|
|
1830
|
+
readonly reason: string;
|
|
1831
|
+
} | null;
|
|
1832
|
+
} | {
|
|
1752
1833
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1753
1834
|
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1754
1835
|
readonly proposedBy: {
|
|
@@ -1958,84 +2039,9 @@ export declare const listActions: ((input: {
|
|
|
1958
2039
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1959
2040
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1960
2041
|
} | null;
|
|
1961
|
-
} | {
|
|
1962
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1963
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1964
|
-
readonly proposedBy: {
|
|
1965
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1966
|
-
readonly id: string;
|
|
1967
|
-
readonly displayName?: string | null;
|
|
1968
|
-
};
|
|
1969
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1970
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1971
|
-
readonly decision: {
|
|
1972
|
-
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
1973
|
-
readonly reviewRound: number;
|
|
1974
|
-
readonly requirement: "model" | "never" | "person" | "run";
|
|
1975
|
-
readonly decider: "agent" | "model" | "person" | "rule";
|
|
1976
|
-
readonly outcome: "allow" | "hold" | "refuse";
|
|
1977
|
-
readonly reason: string;
|
|
1978
|
-
readonly scopes: readonly {
|
|
1979
|
-
readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
|
|
1980
|
-
readonly id: string;
|
|
1981
|
-
}[];
|
|
1982
|
-
readonly rule?: {
|
|
1983
|
-
readonly scope: {
|
|
1984
|
-
readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
|
|
1985
|
-
readonly id: string;
|
|
1986
|
-
};
|
|
1987
|
-
readonly index: number;
|
|
1988
|
-
} | null;
|
|
1989
|
-
readonly guard?: string | null;
|
|
1990
|
-
readonly guardReason?: string | null;
|
|
1991
|
-
readonly resolution?: {
|
|
1992
|
-
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
1993
|
-
readonly at: string;
|
|
1994
|
-
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
1995
|
-
readonly diff?: {
|
|
1996
|
-
readonly text?: {
|
|
1997
|
-
readonly before: string | null;
|
|
1998
|
-
readonly after: string | null;
|
|
1999
|
-
} | null;
|
|
2000
|
-
readonly html?: {
|
|
2001
|
-
readonly before: string | null;
|
|
2002
|
-
readonly after: string | null;
|
|
2003
|
-
} | null;
|
|
2004
|
-
} | null;
|
|
2005
|
-
} | null;
|
|
2006
|
-
} | null;
|
|
2007
|
-
readonly resolution: {
|
|
2008
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
2009
|
-
readonly actor: {
|
|
2010
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2011
|
-
readonly id: string;
|
|
2012
|
-
readonly displayName?: string | null;
|
|
2013
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2014
|
-
};
|
|
2015
|
-
readonly resolvedAt: string;
|
|
2016
|
-
readonly reason: string | null;
|
|
2017
|
-
} | null;
|
|
2018
|
-
readonly alwaysAllow: {
|
|
2019
|
-
readonly by: "admin" | "approver" | "owner";
|
|
2020
|
-
readonly allowed: boolean;
|
|
2021
|
-
} | null;
|
|
2022
|
-
readonly createdAt: string;
|
|
2023
|
-
readonly updatedAt: string;
|
|
2024
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "handoff" | "toolCall" | "updateDraft";
|
|
2025
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
2026
|
-
readonly tool: {
|
|
2027
|
-
readonly name: string;
|
|
2028
|
-
readonly argumentsHash: string;
|
|
2029
|
-
readonly arguments: {
|
|
2030
|
-
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
2031
|
-
};
|
|
2032
|
-
} | null;
|
|
2033
|
-
readonly handoff: {
|
|
2034
|
-
readonly reason: string;
|
|
2035
|
-
} | null;
|
|
2036
2042
|
})[];
|
|
2037
2043
|
readonly nextCursor: string | null;
|
|
2038
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
2044
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
2039
2045
|
readonly items: (input: {
|
|
2040
2046
|
readonly id: string;
|
|
2041
2047
|
readonly limit?: number | null | undefined;
|
|
@@ -2045,6 +2051,81 @@ export declare const listActions: ((input: {
|
|
|
2045
2051
|
readonly after?: string | undefined;
|
|
2046
2052
|
readonly before?: string | undefined;
|
|
2047
2053
|
}) => import("effect/Stream").Stream<{
|
|
2054
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2055
|
+
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2056
|
+
readonly proposedBy: {
|
|
2057
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2058
|
+
readonly id: string;
|
|
2059
|
+
readonly displayName?: string | null;
|
|
2060
|
+
};
|
|
2061
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2062
|
+
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2063
|
+
readonly decision: {
|
|
2064
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
2065
|
+
readonly reviewRound: number;
|
|
2066
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
2067
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
2068
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
2069
|
+
readonly reason: string;
|
|
2070
|
+
readonly scopes: readonly {
|
|
2071
|
+
readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
|
|
2072
|
+
readonly id: string;
|
|
2073
|
+
}[];
|
|
2074
|
+
readonly rule?: {
|
|
2075
|
+
readonly scope: {
|
|
2076
|
+
readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
|
|
2077
|
+
readonly id: string;
|
|
2078
|
+
};
|
|
2079
|
+
readonly index: number;
|
|
2080
|
+
} | null;
|
|
2081
|
+
readonly guard?: string | null;
|
|
2082
|
+
readonly guardReason?: string | null;
|
|
2083
|
+
readonly resolution?: {
|
|
2084
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
2085
|
+
readonly at: string;
|
|
2086
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
2087
|
+
readonly diff?: {
|
|
2088
|
+
readonly text?: {
|
|
2089
|
+
readonly before: string | null;
|
|
2090
|
+
readonly after: string | null;
|
|
2091
|
+
} | null;
|
|
2092
|
+
readonly html?: {
|
|
2093
|
+
readonly before: string | null;
|
|
2094
|
+
readonly after: string | null;
|
|
2095
|
+
} | null;
|
|
2096
|
+
} | null;
|
|
2097
|
+
} | null;
|
|
2098
|
+
} | null;
|
|
2099
|
+
readonly resolution: {
|
|
2100
|
+
readonly outcome: "approved" | "cancelled" | "denied";
|
|
2101
|
+
readonly actor: {
|
|
2102
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2103
|
+
readonly id: string;
|
|
2104
|
+
readonly displayName?: string | null;
|
|
2105
|
+
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2106
|
+
};
|
|
2107
|
+
readonly resolvedAt: string;
|
|
2108
|
+
readonly reason: string | null;
|
|
2109
|
+
} | null;
|
|
2110
|
+
readonly alwaysAllow: {
|
|
2111
|
+
readonly by: "admin" | "approver" | "owner";
|
|
2112
|
+
readonly allowed: boolean;
|
|
2113
|
+
} | null;
|
|
2114
|
+
readonly createdAt: string;
|
|
2115
|
+
readonly updatedAt: string;
|
|
2116
|
+
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "handoff" | "toolCall" | "updateDraft";
|
|
2117
|
+
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
2118
|
+
readonly tool: {
|
|
2119
|
+
readonly name: string;
|
|
2120
|
+
readonly argumentsHash: string;
|
|
2121
|
+
readonly arguments: {
|
|
2122
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
2123
|
+
};
|
|
2124
|
+
} | null;
|
|
2125
|
+
readonly handoff: {
|
|
2126
|
+
readonly reason: string;
|
|
2127
|
+
} | null;
|
|
2128
|
+
} | {
|
|
2048
2129
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2049
2130
|
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2050
2131
|
readonly proposedBy: {
|
|
@@ -2254,82 +2335,7 @@ export declare const listActions: ((input: {
|
|
|
2254
2335
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
2255
2336
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2256
2337
|
} | null;
|
|
2257
|
-
} |
|
|
2258
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
2259
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2260
|
-
readonly proposedBy: {
|
|
2261
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2262
|
-
readonly id: string;
|
|
2263
|
-
readonly displayName?: string | null;
|
|
2264
|
-
};
|
|
2265
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2266
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
2267
|
-
readonly decision: {
|
|
2268
|
-
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
2269
|
-
readonly reviewRound: number;
|
|
2270
|
-
readonly requirement: "model" | "never" | "person" | "run";
|
|
2271
|
-
readonly decider: "agent" | "model" | "person" | "rule";
|
|
2272
|
-
readonly outcome: "allow" | "hold" | "refuse";
|
|
2273
|
-
readonly reason: string;
|
|
2274
|
-
readonly scopes: readonly {
|
|
2275
|
-
readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
|
|
2276
|
-
readonly id: string;
|
|
2277
|
-
}[];
|
|
2278
|
-
readonly rule?: {
|
|
2279
|
-
readonly scope: {
|
|
2280
|
-
readonly kind: "agent" | "apiKey" | "integration" | "mailbox" | "organization";
|
|
2281
|
-
readonly id: string;
|
|
2282
|
-
};
|
|
2283
|
-
readonly index: number;
|
|
2284
|
-
} | null;
|
|
2285
|
-
readonly guard?: string | null;
|
|
2286
|
-
readonly guardReason?: string | null;
|
|
2287
|
-
readonly resolution?: {
|
|
2288
|
-
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
2289
|
-
readonly at: string;
|
|
2290
|
-
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
2291
|
-
readonly diff?: {
|
|
2292
|
-
readonly text?: {
|
|
2293
|
-
readonly before: string | null;
|
|
2294
|
-
readonly after: string | null;
|
|
2295
|
-
} | null;
|
|
2296
|
-
readonly html?: {
|
|
2297
|
-
readonly before: string | null;
|
|
2298
|
-
readonly after: string | null;
|
|
2299
|
-
} | null;
|
|
2300
|
-
} | null;
|
|
2301
|
-
} | null;
|
|
2302
|
-
} | null;
|
|
2303
|
-
readonly resolution: {
|
|
2304
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
2305
|
-
readonly actor: {
|
|
2306
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
2307
|
-
readonly id: string;
|
|
2308
|
-
readonly displayName?: string | null;
|
|
2309
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
2310
|
-
};
|
|
2311
|
-
readonly resolvedAt: string;
|
|
2312
|
-
readonly reason: string | null;
|
|
2313
|
-
} | null;
|
|
2314
|
-
readonly alwaysAllow: {
|
|
2315
|
-
readonly by: "admin" | "approver" | "owner";
|
|
2316
|
-
readonly allowed: boolean;
|
|
2317
|
-
} | null;
|
|
2318
|
-
readonly createdAt: string;
|
|
2319
|
-
readonly updatedAt: string;
|
|
2320
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "handoff" | "toolCall" | "updateDraft";
|
|
2321
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
2322
|
-
readonly tool: {
|
|
2323
|
-
readonly name: string;
|
|
2324
|
-
readonly argumentsHash: string;
|
|
2325
|
-
readonly arguments: {
|
|
2326
|
-
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
2327
|
-
};
|
|
2328
|
-
} | null;
|
|
2329
|
-
readonly handoff: {
|
|
2330
|
-
readonly reason: string;
|
|
2331
|
-
} | null;
|
|
2332
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
2338
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
2333
2339
|
};
|
|
2334
2340
|
export declare const getAction: (input: {
|
|
2335
2341
|
readonly id: string;
|
|
@@ -2389,7 +2395,7 @@ export declare const listEvents: ((input: {
|
|
|
2389
2395
|
readonly occurredAt: string;
|
|
2390
2396
|
}[];
|
|
2391
2397
|
readonly nextCursor: string | null;
|
|
2392
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
2398
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
2393
2399
|
readonly items: (input: {
|
|
2394
2400
|
readonly id: string;
|
|
2395
2401
|
readonly limit?: number | null | undefined;
|
|
@@ -2410,7 +2416,7 @@ export declare const listEvents: ((input: {
|
|
|
2410
2416
|
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
2411
2417
|
};
|
|
2412
2418
|
readonly occurredAt: string;
|
|
2413
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
2419
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
2414
2420
|
};
|
|
2415
2421
|
export declare const countSplits: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesCountSplits">;
|
|
2416
2422
|
export declare const listSplits: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"mailboxesListSplits">;
|