samva 0.34.0 → 0.36.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 +17 -0
- package/README.md +2 -1
- package/dist/client/sdk.gen.d.ts +325 -331
- package/dist/client/sdk.gen.js +406 -454
- package/dist/client/types.gen.d.ts +3465 -750
- package/dist/effect/agents.d.ts +222 -17
- package/dist/effect/agents.js +7 -1
- package/dist/effect/analytics.d.ts +21 -15
- package/dist/effect/api-keys.d.ts +30 -24
- package/dist/effect/campaigns.d.ts +695 -39
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/contact-groups.d.ts +15 -15
- package/dist/effect/contacts.d.ts +56 -52
- package/dist/effect/conversations.d.ts +51 -45
- package/dist/effect/email.d.ts +82 -82
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +64 -12
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +2902 -150
- package/dist/effect/generated/agents.js +219 -31
- package/dist/effect/generated/analytics.d.ts +127 -136
- package/dist/effect/generated/analytics.js +72 -37
- package/dist/effect/generated/api-keys.d.ts +243 -47
- package/dist/effect/generated/api-keys.js +27 -12
- package/dist/effect/generated/attachments.d.ts +89 -1
- package/dist/effect/generated/attachments.js +10 -2
- package/dist/effect/generated/brands.d.ts +133 -1
- package/dist/effect/generated/brands.js +22 -10
- package/dist/effect/generated/campaigns.d.ts +1467 -143
- package/dist/effect/generated/campaigns.js +84 -20
- package/dist/effect/generated/contact-events.d.ts +26 -4
- package/dist/effect/generated/contact-events.js +5 -3
- package/dist/effect/generated/contact-groups.d.ts +233 -13
- package/dist/effect/generated/contact-groups.js +33 -17
- package/dist/effect/generated/contacts.d.ts +634 -96
- package/dist/effect/generated/contacts.js +82 -20
- package/dist/effect/generated/conversations.d.ts +501 -108
- package/dist/effect/generated/conversations.js +106 -22
- package/dist/effect/generated/custom-fields.d.ts +89 -1
- package/dist/effect/generated/custom-fields.js +11 -3
- package/dist/effect/generated/email.d.ts +1447 -83
- package/dist/effect/generated/email.js +167 -43
- package/dist/effect/generated/events.d.ts +51 -7
- package/dist/effect/generated/events.js +9 -5
- package/dist/effect/generated/extension-installations.d.ts +1052 -77
- package/dist/effect/generated/extension-installations.js +45 -31
- package/dist/effect/generated/extensions.d.ts +123 -13
- package/dist/effect/generated/extensions.js +20 -10
- package/dist/effect/generated/feedback.d.ts +23 -1
- package/dist/effect/generated/feedback.js +6 -4
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +6169 -1734
- package/dist/effect/generated/mailboxes.js +549 -344
- package/dist/effect/generated/media.d.ts +125 -15
- package/dist/effect/generated/media.js +15 -2
- package/dist/effect/generated/messages.d.ts +2036 -117
- package/dist/effect/generated/messages.js +286 -54
- package/dist/effect/generated/namespaces.d.ts +215 -55
- package/dist/effect/generated/namespaces.js +30 -12
- package/dist/effect/generated/newsletter-domains.d.ts +98 -12
- package/dist/effect/generated/newsletter-domains.js +20 -13
- package/dist/effect/generated/newsletter-issues.d.ts +354 -19
- package/dist/effect/generated/newsletter-issues.js +162 -98
- package/dist/effect/generated/newsletters.d.ts +123 -13
- package/dist/effect/generated/newsletters.js +19 -9
- package/dist/effect/generated/operations.d.ts +76 -10
- package/dist/effect/generated/operations.js +12 -6
- package/dist/effect/generated/organizations.d.ts +287 -7
- package/dist/effect/generated/organizations.js +33 -5
- package/dist/effect/generated/policies.d.ts +953 -0
- package/dist/effect/generated/policies.js +116 -0
- package/dist/effect/generated/scheduled-messages.d.ts +4418 -49
- package/dist/effect/generated/scheduled-messages.js +77 -13
- package/dist/effect/generated/shared.d.ts +3213 -521
- package/dist/effect/generated/shared.js +713 -128
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +2081 -693
- package/dist/effect/generated/templates.js +482 -267
- package/dist/effect/generated/topic-forms.d.ts +111 -1
- package/dist/effect/generated/topic-forms.js +23 -13
- package/dist/effect/generated/topics.d.ts +353 -43
- package/dist/effect/generated/topics.js +67 -19
- package/dist/effect/generated/webhooks.d.ts +318 -57
- package/dist/effect/generated/webhooks.js +68 -17
- package/dist/effect/generated/whoami.d.ts +35 -5
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +56 -32
- package/dist/effect/generated-metadata.js +137 -105
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/operation.js +5 -32
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +169 -83
- package/dist/effect/mailboxes.d.ts +978 -301
- package/dist/effect/mailboxes.js +1 -11
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/messages.d.ts +40 -40
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/newsletter-domains.d.ts +5 -5
- package/dist/effect/newsletters.d.ts +1 -1
- package/dist/effect/operations.d.ts +11 -11
- package/dist/effect/organizations.d.ts +2 -2
- package/dist/effect/policies.d.ts +65 -0
- package/dist/effect/policies.js +16 -0
- package/dist/effect/scheduled-messages.d.ts +869 -8
- package/dist/effect/templates.d.ts +43 -45
- package/dist/effect/templates.js +5 -3
- package/dist/effect/topics.d.ts +23 -23
- package/dist/effect/webhooks.d.ts +29 -26
- package/dist/index.js +2 -2
- package/dist/mailbox/test.js +11 -4
- package/dist/mailbox/types.d.ts +39 -3
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +4 -2
- package/dist/promises/client.js +5 -3
- package/dist/promises/errors.gen.d.ts +38 -2
- package/dist/promises/errors.gen.js +394 -34
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +39 -28
- package/dist/service-map.js +220 -782
- package/package.json +13 -8
|
@@ -2,15 +2,17 @@ export { events } from "./internal/mailbox-events";
|
|
|
2
2
|
export { type MailboxEvent, MailboxEventStreamError, type MailboxEventStreamErrorFields, type MailboxEventStreamErrorReason, type MailboxEventStreamErrorTag, type MailboxEventStreamFailure, type MailboxEventStreamOptions, type MailboxEventStreamReconnect, type MailboxEventType, } from "../mailbox-events";
|
|
3
3
|
export declare const list: ((input?: {
|
|
4
4
|
readonly limit?: number | null | undefined;
|
|
5
|
-
readonly cursor?: string |
|
|
6
|
-
readonly after?: string |
|
|
7
|
-
readonly before?: string |
|
|
5
|
+
readonly cursor?: string | undefined;
|
|
6
|
+
readonly after?: string | undefined;
|
|
7
|
+
readonly before?: string | undefined;
|
|
8
|
+
readonly namespaceId?: string | undefined;
|
|
8
9
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesList">) & {
|
|
9
10
|
readonly pages: (input?: {
|
|
10
11
|
readonly limit?: number | null | undefined;
|
|
11
|
-
readonly cursor?: string |
|
|
12
|
-
readonly after?: string |
|
|
13
|
-
readonly before?: string |
|
|
12
|
+
readonly cursor?: string | undefined;
|
|
13
|
+
readonly after?: string | undefined;
|
|
14
|
+
readonly before?: string | undefined;
|
|
15
|
+
readonly namespaceId?: string | undefined;
|
|
14
16
|
} | undefined) => import("effect/Stream").Stream<{
|
|
15
17
|
readonly items: readonly {
|
|
16
18
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
@@ -21,15 +23,17 @@ export declare const list: ((input?: {
|
|
|
21
23
|
readonly name: string;
|
|
22
24
|
readonly status: "active" | "paused";
|
|
23
25
|
readonly primaryAddress: string | null;
|
|
26
|
+
readonly sendingStatus: "failed" | "pending" | "ready" | null;
|
|
24
27
|
readonly createdAt: string;
|
|
25
28
|
}[];
|
|
26
29
|
readonly nextCursor: string | null;
|
|
27
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
30
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
28
31
|
readonly items: (input?: {
|
|
29
32
|
readonly limit?: number | null | undefined;
|
|
30
|
-
readonly cursor?: string |
|
|
31
|
-
readonly after?: string |
|
|
32
|
-
readonly before?: string |
|
|
33
|
+
readonly cursor?: string | undefined;
|
|
34
|
+
readonly after?: string | undefined;
|
|
35
|
+
readonly before?: string | undefined;
|
|
36
|
+
readonly namespaceId?: string | undefined;
|
|
33
37
|
} | undefined) => import("effect/Stream").Stream<{
|
|
34
38
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
35
39
|
readonly kind: "personal" | "shared";
|
|
@@ -39,13 +43,14 @@ export declare const list: ((input?: {
|
|
|
39
43
|
readonly name: string;
|
|
40
44
|
readonly status: "active" | "paused";
|
|
41
45
|
readonly primaryAddress: string | null;
|
|
46
|
+
readonly sendingStatus: "failed" | "pending" | "ready" | null;
|
|
42
47
|
readonly createdAt: string;
|
|
43
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
48
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
44
49
|
};
|
|
45
50
|
export declare const create: (input: {
|
|
46
51
|
readonly namespaceId?: string | null | undefined;
|
|
47
52
|
readonly endpoint: {
|
|
48
|
-
readonly channel: "email";
|
|
53
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
49
54
|
readonly address: string;
|
|
50
55
|
readonly displayName?: string | null | undefined;
|
|
51
56
|
};
|
|
@@ -70,7 +75,7 @@ export declare const remove: (input: {
|
|
|
70
75
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesRemove">;
|
|
71
76
|
export declare const createEndpoint: (input: {
|
|
72
77
|
readonly id: string;
|
|
73
|
-
readonly channel: "email";
|
|
78
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
74
79
|
readonly address: string;
|
|
75
80
|
readonly displayName?: string | null | undefined;
|
|
76
81
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCreateEndpoint">;
|
|
@@ -92,18 +97,18 @@ export declare const resume: (input: {
|
|
|
92
97
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesResume">;
|
|
93
98
|
export declare const getAgentActivity: (input: {
|
|
94
99
|
readonly id: string;
|
|
95
|
-
readonly after?: string |
|
|
96
|
-
readonly before?: string |
|
|
100
|
+
readonly after?: string | undefined;
|
|
101
|
+
readonly before?: string | undefined;
|
|
97
102
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGetAgentActivity">;
|
|
98
103
|
export declare const listGrants: ((input: {
|
|
99
104
|
readonly id: string;
|
|
100
105
|
readonly limit?: number | null | undefined;
|
|
101
|
-
readonly cursor?: string |
|
|
106
|
+
readonly cursor?: string | undefined;
|
|
102
107
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListGrants">) & {
|
|
103
108
|
readonly pages: (input: {
|
|
104
109
|
readonly id: string;
|
|
105
110
|
readonly limit?: number | null | undefined;
|
|
106
|
-
readonly cursor?: string |
|
|
111
|
+
readonly cursor?: string | undefined;
|
|
107
112
|
}) => import("effect/Stream").Stream<{
|
|
108
113
|
readonly items: readonly {
|
|
109
114
|
readonly id: string & import("effect/Brand").Brand<"MailboxGrantId">;
|
|
@@ -113,15 +118,14 @@ export declare const listGrants: ((input: {
|
|
|
113
118
|
readonly displayName?: string | null;
|
|
114
119
|
};
|
|
115
120
|
readonly permissions: readonly ("action:approve" | "action:propose" | "draft:write" | "label:write" | "mailbox:configure" | "mailbox:read" | "note:write" | "policy:read" | "quarantine:read" | "quarantine:release" | "thread:read" | "thread:write")[];
|
|
116
|
-
readonly sendMode: "approval" | "send";
|
|
117
121
|
readonly createdAt: string;
|
|
118
122
|
}[];
|
|
119
123
|
readonly nextCursor: string | null;
|
|
120
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
124
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
121
125
|
readonly items: (input: {
|
|
122
126
|
readonly id: string;
|
|
123
127
|
readonly limit?: number | null | undefined;
|
|
124
|
-
readonly cursor?: string |
|
|
128
|
+
readonly cursor?: string | undefined;
|
|
125
129
|
}) => import("effect/Stream").Stream<{
|
|
126
130
|
readonly id: string & import("effect/Brand").Brand<"MailboxGrantId">;
|
|
127
131
|
readonly actor: {
|
|
@@ -130,52 +134,23 @@ export declare const listGrants: ((input: {
|
|
|
130
134
|
readonly displayName?: string | null;
|
|
131
135
|
};
|
|
132
136
|
readonly permissions: readonly ("action:approve" | "action:propose" | "draft:write" | "label:write" | "mailbox:configure" | "mailbox:read" | "note:write" | "policy:read" | "quarantine:read" | "quarantine:release" | "thread:read" | "thread:write")[];
|
|
133
|
-
readonly sendMode: "approval" | "send";
|
|
134
137
|
readonly createdAt: string;
|
|
135
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
138
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
136
139
|
};
|
|
137
140
|
export declare const createGrant: (input: {
|
|
138
141
|
readonly id: string;
|
|
139
142
|
readonly userId: string;
|
|
140
143
|
readonly role: "admin" | "collaborator" | "viewer";
|
|
141
|
-
readonly sendMode?: "approval" | "send" | null | undefined;
|
|
142
144
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCreateGrant">;
|
|
143
145
|
export declare const updateGrant: (input: {
|
|
144
146
|
readonly id: string;
|
|
145
147
|
readonly grantId: string;
|
|
146
148
|
readonly role?: "admin" | "collaborator" | "viewer" | null | undefined;
|
|
147
|
-
readonly sendMode?: "approval" | "send" | null | undefined;
|
|
148
149
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesUpdateGrant">;
|
|
149
150
|
export declare const revokeGrant: (input: {
|
|
150
151
|
readonly id: string;
|
|
151
152
|
readonly grantId: string;
|
|
152
153
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesRevokeGrant">;
|
|
153
|
-
export declare const listPolicies: (input: {
|
|
154
|
-
readonly id: string;
|
|
155
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListPolicies">;
|
|
156
|
-
export declare const createPolicy: (input: {
|
|
157
|
-
readonly id: string;
|
|
158
|
-
readonly name: string;
|
|
159
|
-
readonly outcome: "deny" | "requireApproval";
|
|
160
|
-
readonly reason?: string | null | undefined;
|
|
161
|
-
readonly enabled?: boolean | null | undefined;
|
|
162
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCreatePolicy">;
|
|
163
|
-
export declare const getPolicy: (input: {
|
|
164
|
-
readonly id: string;
|
|
165
|
-
readonly policyId: string;
|
|
166
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGetPolicy">;
|
|
167
|
-
export declare const updatePolicy: (input: {
|
|
168
|
-
readonly id: string;
|
|
169
|
-
readonly policyId: string;
|
|
170
|
-
readonly name?: string | null | undefined;
|
|
171
|
-
readonly outcome?: "deny" | "requireApproval" | null | undefined;
|
|
172
|
-
readonly reason?: string | null | undefined;
|
|
173
|
-
readonly enabled?: boolean | null | undefined;
|
|
174
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesUpdatePolicy">;
|
|
175
|
-
export declare const deletePolicy: (input: {
|
|
176
|
-
readonly id: string;
|
|
177
|
-
readonly policyId: string;
|
|
178
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesDeletePolicy">;
|
|
179
154
|
export declare const listFolders: (input: {
|
|
180
155
|
readonly id: string;
|
|
181
156
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListFolders">;
|
|
@@ -201,13 +176,13 @@ export declare const deleteLabel: (input: {
|
|
|
201
176
|
export declare const listThreads: ((input: {
|
|
202
177
|
readonly id: string;
|
|
203
178
|
readonly limit?: number | null | undefined;
|
|
204
|
-
readonly cursor?: string |
|
|
205
|
-
readonly after?: string |
|
|
206
|
-
readonly before?: string |
|
|
207
|
-
readonly q?: string |
|
|
208
|
-
readonly state?: "active" | "done" |
|
|
209
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" |
|
|
210
|
-
readonly label?: string |
|
|
179
|
+
readonly cursor?: string | undefined;
|
|
180
|
+
readonly after?: string | undefined;
|
|
181
|
+
readonly before?: string | undefined;
|
|
182
|
+
readonly q?: string | undefined;
|
|
183
|
+
readonly state?: "active" | "done" | undefined;
|
|
184
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
185
|
+
readonly label?: string | undefined;
|
|
211
186
|
readonly unread?: boolean | null | undefined;
|
|
212
187
|
readonly starred?: boolean | null | undefined;
|
|
213
188
|
readonly snoozed?: boolean | null | undefined;
|
|
@@ -215,20 +190,20 @@ export declare const listThreads: ((input: {
|
|
|
215
190
|
readonly pages: (input: {
|
|
216
191
|
readonly id: string;
|
|
217
192
|
readonly limit?: number | null | undefined;
|
|
218
|
-
readonly cursor?: string |
|
|
219
|
-
readonly after?: string |
|
|
220
|
-
readonly before?: string |
|
|
221
|
-
readonly q?: string |
|
|
222
|
-
readonly state?: "active" | "done" |
|
|
223
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" |
|
|
224
|
-
readonly label?: string |
|
|
193
|
+
readonly cursor?: string | undefined;
|
|
194
|
+
readonly after?: string | undefined;
|
|
195
|
+
readonly before?: string | undefined;
|
|
196
|
+
readonly q?: string | undefined;
|
|
197
|
+
readonly state?: "active" | "done" | undefined;
|
|
198
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
199
|
+
readonly label?: string | undefined;
|
|
225
200
|
readonly unread?: boolean | null | undefined;
|
|
226
201
|
readonly starred?: boolean | null | undefined;
|
|
227
202
|
readonly snoozed?: boolean | null | undefined;
|
|
228
203
|
}) => import("effect/Stream").Stream<{
|
|
229
204
|
readonly items: readonly {
|
|
230
205
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
231
|
-
readonly channel: "email";
|
|
206
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
232
207
|
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
233
208
|
readonly subject: string | null;
|
|
234
209
|
readonly preview: string | null;
|
|
@@ -255,23 +230,23 @@ export declare const listThreads: ((input: {
|
|
|
255
230
|
readonly lastActivityAt: string;
|
|
256
231
|
}[];
|
|
257
232
|
readonly nextCursor: string | null;
|
|
258
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
233
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
259
234
|
readonly items: (input: {
|
|
260
235
|
readonly id: string;
|
|
261
236
|
readonly limit?: number | null | undefined;
|
|
262
|
-
readonly cursor?: string |
|
|
263
|
-
readonly after?: string |
|
|
264
|
-
readonly before?: string |
|
|
265
|
-
readonly q?: string |
|
|
266
|
-
readonly state?: "active" | "done" |
|
|
267
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" |
|
|
268
|
-
readonly label?: string |
|
|
237
|
+
readonly cursor?: string | undefined;
|
|
238
|
+
readonly after?: string | undefined;
|
|
239
|
+
readonly before?: string | undefined;
|
|
240
|
+
readonly q?: string | undefined;
|
|
241
|
+
readonly state?: "active" | "done" | undefined;
|
|
242
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
243
|
+
readonly label?: string | undefined;
|
|
269
244
|
readonly unread?: boolean | null | undefined;
|
|
270
245
|
readonly starred?: boolean | null | undefined;
|
|
271
246
|
readonly snoozed?: boolean | null | undefined;
|
|
272
247
|
}) => import("effect/Stream").Stream<{
|
|
273
248
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
274
|
-
readonly channel: "email";
|
|
249
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
275
250
|
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
276
251
|
readonly subject: string | null;
|
|
277
252
|
readonly preview: string | null;
|
|
@@ -296,43 +271,43 @@ export declare const listThreads: ((input: {
|
|
|
296
271
|
readonly displayName?: string | null;
|
|
297
272
|
} | null;
|
|
298
273
|
readonly lastActivityAt: string;
|
|
299
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
274
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
300
275
|
};
|
|
301
276
|
export declare const listOrganizationThreads: ((input?: {
|
|
302
277
|
readonly limit?: number | null | undefined;
|
|
303
|
-
readonly cursor?: string |
|
|
304
|
-
readonly after?: string |
|
|
305
|
-
readonly before?: string |
|
|
306
|
-
readonly q?: string |
|
|
307
|
-
readonly state?: "active" | "done" |
|
|
308
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" |
|
|
309
|
-
readonly label?: string |
|
|
278
|
+
readonly cursor?: string | undefined;
|
|
279
|
+
readonly after?: string | undefined;
|
|
280
|
+
readonly before?: string | undefined;
|
|
281
|
+
readonly q?: string | undefined;
|
|
282
|
+
readonly state?: "active" | "done" | undefined;
|
|
283
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
284
|
+
readonly label?: string | undefined;
|
|
310
285
|
readonly unread?: boolean | null | undefined;
|
|
311
286
|
readonly starred?: boolean | null | undefined;
|
|
312
287
|
readonly snoozed?: boolean | null | undefined;
|
|
313
|
-
readonly mailboxId?: string | readonly string[] |
|
|
314
|
-
readonly kind?: "personal" | "shared" |
|
|
315
|
-
readonly conversation?: string |
|
|
288
|
+
readonly mailboxId?: string | readonly string[] | undefined;
|
|
289
|
+
readonly kind?: "personal" | "shared" | undefined;
|
|
290
|
+
readonly conversation?: string | undefined;
|
|
316
291
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListOrganizationThreads">) & {
|
|
317
292
|
readonly pages: (input?: {
|
|
318
293
|
readonly limit?: number | null | undefined;
|
|
319
|
-
readonly cursor?: string |
|
|
320
|
-
readonly after?: string |
|
|
321
|
-
readonly before?: string |
|
|
322
|
-
readonly q?: string |
|
|
323
|
-
readonly state?: "active" | "done" |
|
|
324
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" |
|
|
325
|
-
readonly label?: string |
|
|
294
|
+
readonly cursor?: string | undefined;
|
|
295
|
+
readonly after?: string | undefined;
|
|
296
|
+
readonly before?: string | undefined;
|
|
297
|
+
readonly q?: string | undefined;
|
|
298
|
+
readonly state?: "active" | "done" | undefined;
|
|
299
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
300
|
+
readonly label?: string | undefined;
|
|
326
301
|
readonly unread?: boolean | null | undefined;
|
|
327
302
|
readonly starred?: boolean | null | undefined;
|
|
328
303
|
readonly snoozed?: boolean | null | undefined;
|
|
329
|
-
readonly mailboxId?: string | readonly string[] |
|
|
330
|
-
readonly kind?: "personal" | "shared" |
|
|
331
|
-
readonly conversation?: string |
|
|
304
|
+
readonly mailboxId?: string | readonly string[] | undefined;
|
|
305
|
+
readonly kind?: "personal" | "shared" | undefined;
|
|
306
|
+
readonly conversation?: string | undefined;
|
|
332
307
|
} | undefined) => import("effect/Stream").Stream<{
|
|
333
308
|
readonly items: readonly {
|
|
334
309
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
335
|
-
readonly channel: "email";
|
|
310
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
336
311
|
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
337
312
|
readonly subject: string | null;
|
|
338
313
|
readonly preview: string | null;
|
|
@@ -364,25 +339,25 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
364
339
|
};
|
|
365
340
|
}[];
|
|
366
341
|
readonly nextCursor: string | null;
|
|
367
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
342
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
368
343
|
readonly items: (input?: {
|
|
369
344
|
readonly limit?: number | null | undefined;
|
|
370
|
-
readonly cursor?: string |
|
|
371
|
-
readonly after?: string |
|
|
372
|
-
readonly before?: string |
|
|
373
|
-
readonly q?: string |
|
|
374
|
-
readonly state?: "active" | "done" |
|
|
375
|
-
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" |
|
|
376
|
-
readonly label?: string |
|
|
345
|
+
readonly cursor?: string | undefined;
|
|
346
|
+
readonly after?: string | undefined;
|
|
347
|
+
readonly before?: string | undefined;
|
|
348
|
+
readonly q?: string | undefined;
|
|
349
|
+
readonly state?: "active" | "done" | undefined;
|
|
350
|
+
readonly folder?: "archived" | "assigned" | "inbox" | "pending" | "sent" | "trash" | undefined;
|
|
351
|
+
readonly label?: string | undefined;
|
|
377
352
|
readonly unread?: boolean | null | undefined;
|
|
378
353
|
readonly starred?: boolean | null | undefined;
|
|
379
354
|
readonly snoozed?: boolean | null | undefined;
|
|
380
|
-
readonly mailboxId?: string | readonly string[] |
|
|
381
|
-
readonly kind?: "personal" | "shared" |
|
|
382
|
-
readonly conversation?: string |
|
|
355
|
+
readonly mailboxId?: string | readonly string[] | undefined;
|
|
356
|
+
readonly kind?: "personal" | "shared" | undefined;
|
|
357
|
+
readonly conversation?: string | undefined;
|
|
383
358
|
} | undefined) => import("effect/Stream").Stream<{
|
|
384
359
|
readonly id: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
385
|
-
readonly channel: "email";
|
|
360
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
386
361
|
readonly endpointId: (string & import("effect/Brand").Brand<"MailboxEndpointId">) | null;
|
|
387
362
|
readonly subject: string | null;
|
|
388
363
|
readonly preview: string | null;
|
|
@@ -412,18 +387,163 @@ export declare const listOrganizationThreads: ((input?: {
|
|
|
412
387
|
readonly address: string | null;
|
|
413
388
|
readonly kind: "personal" | "shared";
|
|
414
389
|
};
|
|
415
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
390
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
416
391
|
};
|
|
417
392
|
export declare const getNeedsYou: ((input?: {
|
|
418
393
|
readonly limit?: number | null | undefined;
|
|
419
|
-
readonly cursor?: string |
|
|
394
|
+
readonly cursor?: string | undefined;
|
|
420
395
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGetNeedsYou">) & {
|
|
421
396
|
readonly pages: (input?: {
|
|
422
397
|
readonly limit?: number | null | undefined;
|
|
423
|
-
readonly cursor?: string |
|
|
398
|
+
readonly cursor?: string | undefined;
|
|
424
399
|
} | undefined) => import("effect/Stream").Stream<{
|
|
425
400
|
readonly items: readonly ({
|
|
426
|
-
readonly type: "
|
|
401
|
+
readonly type: "heldAction";
|
|
402
|
+
readonly actionType: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "handoff" | "reply" | "sendMessage" | "toolCall" | "updateDraft";
|
|
403
|
+
readonly decision: {
|
|
404
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
405
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
406
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
407
|
+
readonly reason: string;
|
|
408
|
+
readonly scopes: readonly {
|
|
409
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
410
|
+
readonly id: string;
|
|
411
|
+
}[];
|
|
412
|
+
readonly rule?: {
|
|
413
|
+
readonly scope: {
|
|
414
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
415
|
+
readonly id: string;
|
|
416
|
+
};
|
|
417
|
+
readonly index: number;
|
|
418
|
+
} | null;
|
|
419
|
+
readonly guard?: string | null;
|
|
420
|
+
readonly guardReason?: string | null;
|
|
421
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
422
|
+
readonly reviewRound: number;
|
|
423
|
+
readonly subject: {
|
|
424
|
+
readonly kind: "agent";
|
|
425
|
+
readonly id: string & import("effect/Brand").Brand<"AgentId">;
|
|
426
|
+
} | {
|
|
427
|
+
readonly kind: "apiKey";
|
|
428
|
+
readonly id: string & import("effect/Brand").Brand<"ApiKeyId">;
|
|
429
|
+
} | {
|
|
430
|
+
readonly kind: "member";
|
|
431
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
432
|
+
} | {
|
|
433
|
+
readonly kind: "extension";
|
|
434
|
+
readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
|
|
435
|
+
};
|
|
436
|
+
readonly action: {
|
|
437
|
+
readonly effect: "final" | "read" | "write";
|
|
438
|
+
readonly resource: {
|
|
439
|
+
readonly mailboxId: string & import("effect/Brand").Brand<"MailboxId">;
|
|
440
|
+
readonly channel?: "email" | "sms" | "whatsapp" | null;
|
|
441
|
+
readonly integration?: string | null;
|
|
442
|
+
readonly integrationId?: (string & import("effect/Brand").Brand<"IntegrationId">) | null;
|
|
443
|
+
readonly tool?: string | null;
|
|
444
|
+
};
|
|
445
|
+
readonly facts: {
|
|
446
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
447
|
+
};
|
|
448
|
+
readonly kind: "reply" | "send" | "toolCall";
|
|
449
|
+
readonly args: import("./generated").JsonValue;
|
|
450
|
+
} | {
|
|
451
|
+
readonly effect: "final" | "read" | "write";
|
|
452
|
+
readonly resource: {
|
|
453
|
+
readonly mailboxId: string & import("effect/Brand").Brand<"MailboxId">;
|
|
454
|
+
readonly channel?: "email" | "sms" | "whatsapp" | null;
|
|
455
|
+
readonly integration?: string | null;
|
|
456
|
+
readonly integrationId?: (string & import("effect/Brand").Brand<"IntegrationId">) | null;
|
|
457
|
+
readonly tool?: string | null;
|
|
458
|
+
};
|
|
459
|
+
readonly facts: {
|
|
460
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
461
|
+
};
|
|
462
|
+
readonly kind: "handoff";
|
|
463
|
+
readonly args: {
|
|
464
|
+
readonly reason: string;
|
|
465
|
+
readonly draft?: import("./generated").JsonValue;
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
readonly judge?: {
|
|
469
|
+
readonly model: string;
|
|
470
|
+
readonly instructionVersion?: string | null;
|
|
471
|
+
readonly instructionHash?: string | null;
|
|
472
|
+
readonly ms: number;
|
|
473
|
+
readonly usage: {
|
|
474
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
475
|
+
};
|
|
476
|
+
} | null;
|
|
477
|
+
readonly resolution?: {
|
|
478
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
479
|
+
readonly at: string;
|
|
480
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
481
|
+
readonly diff?: {
|
|
482
|
+
readonly text?: {
|
|
483
|
+
readonly before: string | null;
|
|
484
|
+
readonly after: string | null;
|
|
485
|
+
} | null;
|
|
486
|
+
readonly html?: {
|
|
487
|
+
readonly before: string | null;
|
|
488
|
+
readonly after: string | null;
|
|
489
|
+
} | null;
|
|
490
|
+
} | null;
|
|
491
|
+
} | null;
|
|
492
|
+
};
|
|
493
|
+
readonly tool: {
|
|
494
|
+
readonly name: string;
|
|
495
|
+
readonly argumentsHash: string;
|
|
496
|
+
readonly arguments: {
|
|
497
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
498
|
+
};
|
|
499
|
+
} | null;
|
|
500
|
+
readonly intent: {
|
|
501
|
+
readonly channel: "email";
|
|
502
|
+
readonly draftRevision: number;
|
|
503
|
+
readonly from: string;
|
|
504
|
+
readonly fromName: string | null;
|
|
505
|
+
readonly to: readonly [string, ...string[]];
|
|
506
|
+
readonly cc: readonly string[];
|
|
507
|
+
readonly bcc: readonly string[];
|
|
508
|
+
readonly replyTo: readonly string[];
|
|
509
|
+
readonly subject: string;
|
|
510
|
+
readonly text: string | null;
|
|
511
|
+
readonly html: string | null;
|
|
512
|
+
readonly attachments: readonly {
|
|
513
|
+
readonly filename: string;
|
|
514
|
+
readonly content?: string | null;
|
|
515
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
516
|
+
readonly contentType: string;
|
|
517
|
+
readonly size: number;
|
|
518
|
+
}[];
|
|
519
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
520
|
+
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
521
|
+
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
522
|
+
} | {
|
|
523
|
+
readonly channel: "sms" | "whatsapp";
|
|
524
|
+
readonly draftRevision: number;
|
|
525
|
+
readonly endpointId: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
526
|
+
readonly sender: {
|
|
527
|
+
readonly channel: "whatsapp";
|
|
528
|
+
readonly businessAccountId: string & import("effect/Brand").Brand<"WhatsAppBusinessAccountId">;
|
|
529
|
+
} | {
|
|
530
|
+
readonly channel: "sms";
|
|
531
|
+
readonly phoneNumberId: string & import("effect/Brand").Brand<"SmsPhoneNumberId">;
|
|
532
|
+
};
|
|
533
|
+
readonly from: string;
|
|
534
|
+
readonly to: string;
|
|
535
|
+
readonly text: string | null;
|
|
536
|
+
readonly template: {
|
|
537
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
538
|
+
readonly templateChannelVariantId: string & import("effect/Brand").Brand<"TemplateChannelVariantId">;
|
|
539
|
+
readonly templateData: {
|
|
540
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
541
|
+
} | null;
|
|
542
|
+
} | null;
|
|
543
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
544
|
+
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
545
|
+
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
546
|
+
} | null;
|
|
427
547
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
428
548
|
readonly mailbox: {
|
|
429
549
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
@@ -453,16 +573,161 @@ export declare const getNeedsYou: ((input?: {
|
|
|
453
573
|
})[];
|
|
454
574
|
readonly nextCursor: string | null;
|
|
455
575
|
readonly counts: {
|
|
456
|
-
readonly
|
|
576
|
+
readonly heldActions: number;
|
|
457
577
|
readonly quarantinedMessages: number;
|
|
458
578
|
readonly total: number;
|
|
459
579
|
};
|
|
460
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
580
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
461
581
|
readonly items: (input?: {
|
|
462
582
|
readonly limit?: number | null | undefined;
|
|
463
|
-
readonly cursor?: string |
|
|
583
|
+
readonly cursor?: string | undefined;
|
|
464
584
|
} | undefined) => import("effect/Stream").Stream<{
|
|
465
|
-
readonly type: "
|
|
585
|
+
readonly type: "heldAction";
|
|
586
|
+
readonly actionType: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "handoff" | "reply" | "sendMessage" | "toolCall" | "updateDraft";
|
|
587
|
+
readonly decision: {
|
|
588
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
589
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
590
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
591
|
+
readonly reason: string;
|
|
592
|
+
readonly scopes: readonly {
|
|
593
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
594
|
+
readonly id: string;
|
|
595
|
+
}[];
|
|
596
|
+
readonly rule?: {
|
|
597
|
+
readonly scope: {
|
|
598
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
599
|
+
readonly id: string;
|
|
600
|
+
};
|
|
601
|
+
readonly index: number;
|
|
602
|
+
} | null;
|
|
603
|
+
readonly guard?: string | null;
|
|
604
|
+
readonly guardReason?: string | null;
|
|
605
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
606
|
+
readonly reviewRound: number;
|
|
607
|
+
readonly subject: {
|
|
608
|
+
readonly kind: "agent";
|
|
609
|
+
readonly id: string & import("effect/Brand").Brand<"AgentId">;
|
|
610
|
+
} | {
|
|
611
|
+
readonly kind: "apiKey";
|
|
612
|
+
readonly id: string & import("effect/Brand").Brand<"ApiKeyId">;
|
|
613
|
+
} | {
|
|
614
|
+
readonly kind: "member";
|
|
615
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
616
|
+
} | {
|
|
617
|
+
readonly kind: "extension";
|
|
618
|
+
readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
|
|
619
|
+
};
|
|
620
|
+
readonly action: {
|
|
621
|
+
readonly effect: "final" | "read" | "write";
|
|
622
|
+
readonly resource: {
|
|
623
|
+
readonly mailboxId: string & import("effect/Brand").Brand<"MailboxId">;
|
|
624
|
+
readonly channel?: "email" | "sms" | "whatsapp" | null;
|
|
625
|
+
readonly integration?: string | null;
|
|
626
|
+
readonly integrationId?: (string & import("effect/Brand").Brand<"IntegrationId">) | null;
|
|
627
|
+
readonly tool?: string | null;
|
|
628
|
+
};
|
|
629
|
+
readonly facts: {
|
|
630
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
631
|
+
};
|
|
632
|
+
readonly kind: "reply" | "send" | "toolCall";
|
|
633
|
+
readonly args: import("./generated").JsonValue;
|
|
634
|
+
} | {
|
|
635
|
+
readonly effect: "final" | "read" | "write";
|
|
636
|
+
readonly resource: {
|
|
637
|
+
readonly mailboxId: string & import("effect/Brand").Brand<"MailboxId">;
|
|
638
|
+
readonly channel?: "email" | "sms" | "whatsapp" | null;
|
|
639
|
+
readonly integration?: string | null;
|
|
640
|
+
readonly integrationId?: (string & import("effect/Brand").Brand<"IntegrationId">) | null;
|
|
641
|
+
readonly tool?: string | null;
|
|
642
|
+
};
|
|
643
|
+
readonly facts: {
|
|
644
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
645
|
+
};
|
|
646
|
+
readonly kind: "handoff";
|
|
647
|
+
readonly args: {
|
|
648
|
+
readonly reason: string;
|
|
649
|
+
readonly draft?: import("./generated").JsonValue;
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
readonly judge?: {
|
|
653
|
+
readonly model: string;
|
|
654
|
+
readonly instructionVersion?: string | null;
|
|
655
|
+
readonly instructionHash?: string | null;
|
|
656
|
+
readonly ms: number;
|
|
657
|
+
readonly usage: {
|
|
658
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
659
|
+
};
|
|
660
|
+
} | null;
|
|
661
|
+
readonly resolution?: {
|
|
662
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
663
|
+
readonly at: string;
|
|
664
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
665
|
+
readonly diff?: {
|
|
666
|
+
readonly text?: {
|
|
667
|
+
readonly before: string | null;
|
|
668
|
+
readonly after: string | null;
|
|
669
|
+
} | null;
|
|
670
|
+
readonly html?: {
|
|
671
|
+
readonly before: string | null;
|
|
672
|
+
readonly after: string | null;
|
|
673
|
+
} | null;
|
|
674
|
+
} | null;
|
|
675
|
+
} | null;
|
|
676
|
+
};
|
|
677
|
+
readonly tool: {
|
|
678
|
+
readonly name: string;
|
|
679
|
+
readonly argumentsHash: string;
|
|
680
|
+
readonly arguments: {
|
|
681
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
682
|
+
};
|
|
683
|
+
} | null;
|
|
684
|
+
readonly intent: {
|
|
685
|
+
readonly channel: "email";
|
|
686
|
+
readonly draftRevision: number;
|
|
687
|
+
readonly from: string;
|
|
688
|
+
readonly fromName: string | null;
|
|
689
|
+
readonly to: readonly [string, ...string[]];
|
|
690
|
+
readonly cc: readonly string[];
|
|
691
|
+
readonly bcc: readonly string[];
|
|
692
|
+
readonly replyTo: readonly string[];
|
|
693
|
+
readonly subject: string;
|
|
694
|
+
readonly text: string | null;
|
|
695
|
+
readonly html: string | null;
|
|
696
|
+
readonly attachments: readonly {
|
|
697
|
+
readonly filename: string;
|
|
698
|
+
readonly content?: string | null;
|
|
699
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
700
|
+
readonly contentType: string;
|
|
701
|
+
readonly size: number;
|
|
702
|
+
}[];
|
|
703
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
704
|
+
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
705
|
+
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
706
|
+
} | {
|
|
707
|
+
readonly channel: "sms" | "whatsapp";
|
|
708
|
+
readonly draftRevision: number;
|
|
709
|
+
readonly endpointId: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
710
|
+
readonly sender: {
|
|
711
|
+
readonly channel: "whatsapp";
|
|
712
|
+
readonly businessAccountId: string & import("effect/Brand").Brand<"WhatsAppBusinessAccountId">;
|
|
713
|
+
} | {
|
|
714
|
+
readonly channel: "sms";
|
|
715
|
+
readonly phoneNumberId: string & import("effect/Brand").Brand<"SmsPhoneNumberId">;
|
|
716
|
+
};
|
|
717
|
+
readonly from: string;
|
|
718
|
+
readonly to: string;
|
|
719
|
+
readonly text: string | null;
|
|
720
|
+
readonly template: {
|
|
721
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
722
|
+
readonly templateChannelVariantId: string & import("effect/Brand").Brand<"TemplateChannelVariantId">;
|
|
723
|
+
readonly templateData: {
|
|
724
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
725
|
+
} | null;
|
|
726
|
+
} | null;
|
|
727
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
728
|
+
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
729
|
+
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
730
|
+
} | null;
|
|
466
731
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
467
732
|
readonly mailbox: {
|
|
468
733
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
@@ -489,7 +754,7 @@ export declare const getNeedsYou: ((input?: {
|
|
|
489
754
|
readonly reason: "dmarc" | "fraud" | "phishing" | "prompt_injection" | "spam" | "virus" | "virus_unscanned";
|
|
490
755
|
readonly source: "classifier" | "receipt";
|
|
491
756
|
readonly heldAt: string;
|
|
492
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
757
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
493
758
|
};
|
|
494
759
|
export declare const getThread: (input: {
|
|
495
760
|
readonly id: string;
|
|
@@ -520,13 +785,13 @@ export declare const listThreadMessages: ((input: {
|
|
|
520
785
|
readonly id: string;
|
|
521
786
|
readonly threadId: string;
|
|
522
787
|
readonly limit?: number | null | undefined;
|
|
523
|
-
readonly cursor?: string |
|
|
788
|
+
readonly cursor?: string | undefined;
|
|
524
789
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListThreadMessages">) & {
|
|
525
790
|
readonly pages: (input: {
|
|
526
791
|
readonly id: string;
|
|
527
792
|
readonly threadId: string;
|
|
528
793
|
readonly limit?: number | null | undefined;
|
|
529
|
-
readonly cursor?: string |
|
|
794
|
+
readonly cursor?: string | undefined;
|
|
530
795
|
}) => import("effect/Stream").Stream<{
|
|
531
796
|
readonly items: readonly {
|
|
532
797
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
@@ -534,7 +799,7 @@ export declare const listThreadMessages: ((input: {
|
|
|
534
799
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
535
800
|
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
536
801
|
} | null;
|
|
537
|
-
readonly channel: "email";
|
|
802
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
538
803
|
readonly direction: "inbound" | "outbound";
|
|
539
804
|
readonly from: {
|
|
540
805
|
readonly actor?: {
|
|
@@ -552,19 +817,19 @@ export declare const listThreadMessages: ((input: {
|
|
|
552
817
|
readonly occurredAt: string;
|
|
553
818
|
}[];
|
|
554
819
|
readonly nextCursor: string | null;
|
|
555
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
820
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
556
821
|
readonly items: (input: {
|
|
557
822
|
readonly id: string;
|
|
558
823
|
readonly threadId: string;
|
|
559
824
|
readonly limit?: number | null | undefined;
|
|
560
|
-
readonly cursor?: string |
|
|
825
|
+
readonly cursor?: string | undefined;
|
|
561
826
|
}) => import("effect/Stream").Stream<{
|
|
562
827
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
563
828
|
readonly campaign?: {
|
|
564
829
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
565
830
|
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
566
831
|
} | null;
|
|
567
|
-
readonly channel: "email";
|
|
832
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
568
833
|
readonly direction: "inbound" | "outbound";
|
|
569
834
|
readonly from: {
|
|
570
835
|
readonly actor?: {
|
|
@@ -580,21 +845,21 @@ export declare const listThreadMessages: ((input: {
|
|
|
580
845
|
readonly preview: string | null;
|
|
581
846
|
readonly hasAttachments: boolean;
|
|
582
847
|
readonly occurredAt: string;
|
|
583
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
848
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
584
849
|
};
|
|
585
850
|
export declare const getThreadContent: ((input: {
|
|
586
851
|
readonly id: string;
|
|
587
852
|
readonly threadId: string;
|
|
588
853
|
readonly limit?: number | null | undefined;
|
|
589
|
-
readonly cursor?: string |
|
|
854
|
+
readonly cursor?: string | undefined;
|
|
590
855
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGetThreadContent">) & {
|
|
591
856
|
readonly pages: (input: {
|
|
592
857
|
readonly id: string;
|
|
593
858
|
readonly threadId: string;
|
|
594
859
|
readonly limit?: number | null | undefined;
|
|
595
|
-
readonly cursor?: string |
|
|
860
|
+
readonly cursor?: string | undefined;
|
|
596
861
|
}) => import("effect/Stream").Stream<{
|
|
597
|
-
readonly items: readonly {
|
|
862
|
+
readonly items: readonly ({
|
|
598
863
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
599
864
|
readonly campaign?: {
|
|
600
865
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
@@ -651,14 +916,53 @@ export declare const getThreadContent: ((input: {
|
|
|
651
916
|
readonly size: number;
|
|
652
917
|
readonly isInline: boolean;
|
|
653
918
|
}[];
|
|
654
|
-
}
|
|
919
|
+
} | {
|
|
920
|
+
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
921
|
+
readonly campaign?: {
|
|
922
|
+
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
923
|
+
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
924
|
+
} | null;
|
|
925
|
+
readonly threadId: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
926
|
+
readonly conversationId: string & import("effect/Brand").Brand<"ConversationId">;
|
|
927
|
+
readonly direction: "inbound" | "outbound";
|
|
928
|
+
readonly from: {
|
|
929
|
+
readonly actor?: {
|
|
930
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
931
|
+
readonly id: string;
|
|
932
|
+
readonly displayName?: string | null;
|
|
933
|
+
} | null;
|
|
934
|
+
readonly displayName?: string | null;
|
|
935
|
+
readonly address: string;
|
|
936
|
+
};
|
|
937
|
+
readonly sentBy?: {
|
|
938
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
939
|
+
readonly id: string;
|
|
940
|
+
readonly displayName?: string | null;
|
|
941
|
+
} | null;
|
|
942
|
+
readonly occurredAt: string;
|
|
943
|
+
readonly channel: "sms" | "whatsapp";
|
|
944
|
+
readonly to: readonly string[];
|
|
945
|
+
readonly text: string | null;
|
|
946
|
+
readonly media: readonly {
|
|
947
|
+
readonly type: string;
|
|
948
|
+
readonly contentType: string | null;
|
|
949
|
+
readonly filename: string | null;
|
|
950
|
+
readonly caption: string | null;
|
|
951
|
+
}[];
|
|
952
|
+
readonly template: {
|
|
953
|
+
readonly name: string;
|
|
954
|
+
readonly language: string;
|
|
955
|
+
} | null;
|
|
956
|
+
readonly summary: string | null;
|
|
957
|
+
readonly contextMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
958
|
+
})[];
|
|
655
959
|
readonly nextCursor: string | null;
|
|
656
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
960
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
657
961
|
readonly items: (input: {
|
|
658
962
|
readonly id: string;
|
|
659
963
|
readonly threadId: string;
|
|
660
964
|
readonly limit?: number | null | undefined;
|
|
661
|
-
readonly cursor?: string |
|
|
965
|
+
readonly cursor?: string | undefined;
|
|
662
966
|
}) => import("effect/Stream").Stream<{
|
|
663
967
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
664
968
|
readonly campaign?: {
|
|
@@ -716,19 +1020,58 @@ export declare const getThreadContent: ((input: {
|
|
|
716
1020
|
readonly size: number;
|
|
717
1021
|
readonly isInline: boolean;
|
|
718
1022
|
}[];
|
|
719
|
-
}
|
|
1023
|
+
} | {
|
|
1024
|
+
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
1025
|
+
readonly campaign?: {
|
|
1026
|
+
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
1027
|
+
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
1028
|
+
} | null;
|
|
1029
|
+
readonly threadId: string & import("effect/Brand").Brand<"MailboxThreadId">;
|
|
1030
|
+
readonly conversationId: string & import("effect/Brand").Brand<"ConversationId">;
|
|
1031
|
+
readonly direction: "inbound" | "outbound";
|
|
1032
|
+
readonly from: {
|
|
1033
|
+
readonly actor?: {
|
|
1034
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1035
|
+
readonly id: string;
|
|
1036
|
+
readonly displayName?: string | null;
|
|
1037
|
+
} | null;
|
|
1038
|
+
readonly displayName?: string | null;
|
|
1039
|
+
readonly address: string;
|
|
1040
|
+
};
|
|
1041
|
+
readonly sentBy?: {
|
|
1042
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1043
|
+
readonly id: string;
|
|
1044
|
+
readonly displayName?: string | null;
|
|
1045
|
+
} | null;
|
|
1046
|
+
readonly occurredAt: string;
|
|
1047
|
+
readonly channel: "sms" | "whatsapp";
|
|
1048
|
+
readonly to: readonly string[];
|
|
1049
|
+
readonly text: string | null;
|
|
1050
|
+
readonly media: readonly {
|
|
1051
|
+
readonly type: string;
|
|
1052
|
+
readonly contentType: string | null;
|
|
1053
|
+
readonly filename: string | null;
|
|
1054
|
+
readonly caption: string | null;
|
|
1055
|
+
}[];
|
|
1056
|
+
readonly template: {
|
|
1057
|
+
readonly name: string;
|
|
1058
|
+
readonly language: string;
|
|
1059
|
+
} | null;
|
|
1060
|
+
readonly summary: string | null;
|
|
1061
|
+
readonly contextMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1062
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
720
1063
|
};
|
|
721
1064
|
export declare const listThreadNotes: ((input: {
|
|
722
1065
|
readonly id: string;
|
|
723
1066
|
readonly threadId: string;
|
|
724
1067
|
readonly limit?: number | null | undefined;
|
|
725
|
-
readonly cursor?: string |
|
|
1068
|
+
readonly cursor?: string | undefined;
|
|
726
1069
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListThreadNotes">) & {
|
|
727
1070
|
readonly pages: (input: {
|
|
728
1071
|
readonly id: string;
|
|
729
1072
|
readonly threadId: string;
|
|
730
1073
|
readonly limit?: number | null | undefined;
|
|
731
|
-
readonly cursor?: string |
|
|
1074
|
+
readonly cursor?: string | undefined;
|
|
732
1075
|
}) => import("effect/Stream").Stream<{
|
|
733
1076
|
readonly items: readonly {
|
|
734
1077
|
readonly id: string & import("effect/Brand").Brand<"MailboxNoteId">;
|
|
@@ -744,12 +1087,12 @@ export declare const listThreadNotes: ((input: {
|
|
|
744
1087
|
readonly updatedAt: string;
|
|
745
1088
|
}[];
|
|
746
1089
|
readonly nextCursor: string | null;
|
|
747
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1090
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
748
1091
|
readonly items: (input: {
|
|
749
1092
|
readonly id: string;
|
|
750
1093
|
readonly threadId: string;
|
|
751
1094
|
readonly limit?: number | null | undefined;
|
|
752
|
-
readonly cursor?: string |
|
|
1095
|
+
readonly cursor?: string | undefined;
|
|
753
1096
|
}) => import("effect/Stream").Stream<{
|
|
754
1097
|
readonly id: string & import("effect/Brand").Brand<"MailboxNoteId">;
|
|
755
1098
|
readonly author: {
|
|
@@ -762,7 +1105,7 @@ export declare const listThreadNotes: ((input: {
|
|
|
762
1105
|
readonly pinned: boolean;
|
|
763
1106
|
readonly createdAt: string;
|
|
764
1107
|
readonly updatedAt: string;
|
|
765
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1108
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
766
1109
|
};
|
|
767
1110
|
export declare const createNote: (input: {
|
|
768
1111
|
readonly id: string;
|
|
@@ -785,7 +1128,6 @@ export declare const deleteNote: (input: {
|
|
|
785
1128
|
readonly noteId: string;
|
|
786
1129
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesDeleteNote">;
|
|
787
1130
|
export declare const sendMessage: (input: {
|
|
788
|
-
readonly id: string;
|
|
789
1131
|
readonly channel?: "email" | null | undefined;
|
|
790
1132
|
readonly to: readonly string[];
|
|
791
1133
|
readonly cc?: readonly string[] | null | undefined;
|
|
@@ -801,6 +1143,40 @@ export declare const sendMessage: (input: {
|
|
|
801
1143
|
readonly contentType: string;
|
|
802
1144
|
readonly size: number;
|
|
803
1145
|
}[] | null | undefined;
|
|
1146
|
+
readonly id: string;
|
|
1147
|
+
} | {
|
|
1148
|
+
readonly channel: "sms" | "whatsapp";
|
|
1149
|
+
readonly to: string;
|
|
1150
|
+
readonly text?: string | null | undefined;
|
|
1151
|
+
readonly templateId?: string | null | undefined;
|
|
1152
|
+
readonly templateData?: {
|
|
1153
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
1154
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
1155
|
+
} | null)[] | {
|
|
1156
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1157
|
+
} | null)[] | {
|
|
1158
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1159
|
+
} | null)[] | {
|
|
1160
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1161
|
+
} | null)[] | {
|
|
1162
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1163
|
+
} | null)[] | {
|
|
1164
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1165
|
+
} | null)[] | {
|
|
1166
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1167
|
+
} | null)[] | {
|
|
1168
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1169
|
+
} | null)[] | {
|
|
1170
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1171
|
+
} | null)[] | {
|
|
1172
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1173
|
+
} | null)[] | {
|
|
1174
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1175
|
+
} | null)[] | {
|
|
1176
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1177
|
+
} | null | undefined;
|
|
1178
|
+
} | null | undefined;
|
|
1179
|
+
readonly id: string;
|
|
804
1180
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesSendMessage">;
|
|
805
1181
|
export declare const getMessage: (input: {
|
|
806
1182
|
readonly id: string;
|
|
@@ -821,8 +1197,6 @@ export declare const copyMessageAttachment: (input: {
|
|
|
821
1197
|
readonly attachmentId: string;
|
|
822
1198
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCopyMessageAttachment">;
|
|
823
1199
|
export declare const reply: (input: {
|
|
824
|
-
readonly id: string;
|
|
825
|
-
readonly messageId: string;
|
|
826
1200
|
readonly channel?: "email" | null | undefined;
|
|
827
1201
|
readonly cc?: readonly string[] | null | undefined;
|
|
828
1202
|
readonly bcc?: readonly string[] | null | undefined;
|
|
@@ -835,10 +1209,43 @@ export declare const reply: (input: {
|
|
|
835
1209
|
readonly contentType: string;
|
|
836
1210
|
readonly size: number;
|
|
837
1211
|
}[] | null | undefined;
|
|
838
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesReply">;
|
|
839
|
-
export declare const replyAll: (input: {
|
|
840
1212
|
readonly id: string;
|
|
841
1213
|
readonly messageId: string;
|
|
1214
|
+
} | {
|
|
1215
|
+
readonly channel: "sms" | "whatsapp";
|
|
1216
|
+
readonly text?: string | null | undefined;
|
|
1217
|
+
readonly templateId?: string | null | undefined;
|
|
1218
|
+
readonly templateData?: {
|
|
1219
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
1220
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
1221
|
+
} | null)[] | {
|
|
1222
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1223
|
+
} | null)[] | {
|
|
1224
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1225
|
+
} | null)[] | {
|
|
1226
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1227
|
+
} | null)[] | {
|
|
1228
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1229
|
+
} | null)[] | {
|
|
1230
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1231
|
+
} | null)[] | {
|
|
1232
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1233
|
+
} | null)[] | {
|
|
1234
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1235
|
+
} | null)[] | {
|
|
1236
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1237
|
+
} | null)[] | {
|
|
1238
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1239
|
+
} | null)[] | {
|
|
1240
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1241
|
+
} | null)[] | {
|
|
1242
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1243
|
+
} | null | undefined;
|
|
1244
|
+
} | null | undefined;
|
|
1245
|
+
readonly id: string;
|
|
1246
|
+
readonly messageId: string;
|
|
1247
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesReply">;
|
|
1248
|
+
export declare const replyAll: (input: {
|
|
842
1249
|
readonly channel?: "email" | null | undefined;
|
|
843
1250
|
readonly cc?: readonly string[] | null | undefined;
|
|
844
1251
|
readonly bcc?: readonly string[] | null | undefined;
|
|
@@ -851,6 +1258,41 @@ export declare const replyAll: (input: {
|
|
|
851
1258
|
readonly contentType: string;
|
|
852
1259
|
readonly size: number;
|
|
853
1260
|
}[] | null | undefined;
|
|
1261
|
+
readonly id: string;
|
|
1262
|
+
readonly messageId: string;
|
|
1263
|
+
} | {
|
|
1264
|
+
readonly channel: "sms" | "whatsapp";
|
|
1265
|
+
readonly text?: string | null | undefined;
|
|
1266
|
+
readonly templateId?: string | null | undefined;
|
|
1267
|
+
readonly templateData?: {
|
|
1268
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
1269
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
1270
|
+
} | null)[] | {
|
|
1271
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1272
|
+
} | null)[] | {
|
|
1273
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1274
|
+
} | null)[] | {
|
|
1275
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1276
|
+
} | null)[] | {
|
|
1277
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1278
|
+
} | null)[] | {
|
|
1279
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1280
|
+
} | null)[] | {
|
|
1281
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1282
|
+
} | null)[] | {
|
|
1283
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1284
|
+
} | null)[] | {
|
|
1285
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1286
|
+
} | null)[] | {
|
|
1287
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1288
|
+
} | null)[] | {
|
|
1289
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1290
|
+
} | null)[] | {
|
|
1291
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1292
|
+
} | null | undefined;
|
|
1293
|
+
} | null | undefined;
|
|
1294
|
+
readonly id: string;
|
|
1295
|
+
readonly messageId: string;
|
|
854
1296
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesReplyAll">;
|
|
855
1297
|
export declare const forward: (input: {
|
|
856
1298
|
readonly id: string;
|
|
@@ -871,16 +1313,16 @@ export declare const forward: (input: {
|
|
|
871
1313
|
export declare const listQuarantine: ((input: {
|
|
872
1314
|
readonly id: string;
|
|
873
1315
|
readonly limit?: number | null | undefined;
|
|
874
|
-
readonly cursor?: string |
|
|
875
|
-
readonly after?: string |
|
|
876
|
-
readonly before?: string |
|
|
1316
|
+
readonly cursor?: string | undefined;
|
|
1317
|
+
readonly after?: string | undefined;
|
|
1318
|
+
readonly before?: string | undefined;
|
|
877
1319
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListQuarantine">) & {
|
|
878
1320
|
readonly pages: (input: {
|
|
879
1321
|
readonly id: string;
|
|
880
1322
|
readonly limit?: number | null | undefined;
|
|
881
|
-
readonly cursor?: string |
|
|
882
|
-
readonly after?: string |
|
|
883
|
-
readonly before?: string |
|
|
1323
|
+
readonly cursor?: string | undefined;
|
|
1324
|
+
readonly after?: string | undefined;
|
|
1325
|
+
readonly before?: string | undefined;
|
|
884
1326
|
}) => import("effect/Stream").Stream<{
|
|
885
1327
|
readonly items: readonly {
|
|
886
1328
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
@@ -899,13 +1341,13 @@ export declare const listQuarantine: ((input: {
|
|
|
899
1341
|
readonly discardedAt: string | null;
|
|
900
1342
|
}[];
|
|
901
1343
|
readonly nextCursor: string | null;
|
|
902
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1344
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
903
1345
|
readonly items: (input: {
|
|
904
1346
|
readonly id: string;
|
|
905
1347
|
readonly limit?: number | null | undefined;
|
|
906
|
-
readonly cursor?: string |
|
|
907
|
-
readonly after?: string |
|
|
908
|
-
readonly before?: string |
|
|
1348
|
+
readonly cursor?: string | undefined;
|
|
1349
|
+
readonly after?: string | undefined;
|
|
1350
|
+
readonly before?: string | undefined;
|
|
909
1351
|
}) => import("effect/Stream").Stream<{
|
|
910
1352
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
911
1353
|
readonly disposition: "isolated" | "quarantined";
|
|
@@ -921,7 +1363,7 @@ export declare const listQuarantine: ((input: {
|
|
|
921
1363
|
readonly releasedAt: string | null;
|
|
922
1364
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
923
1365
|
readonly discardedAt: string | null;
|
|
924
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1366
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
925
1367
|
};
|
|
926
1368
|
export declare const releaseMessage: (input: {
|
|
927
1369
|
readonly id: string;
|
|
@@ -933,21 +1375,21 @@ export declare const discardMessage: (input: {
|
|
|
933
1375
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesDiscardMessage">;
|
|
934
1376
|
export declare const listOrganizationDrafts: ((input?: {
|
|
935
1377
|
readonly limit?: number | null | undefined;
|
|
936
|
-
readonly cursor?: string |
|
|
937
|
-
readonly mailboxId?: string | readonly string[] |
|
|
938
|
-
readonly kind?: "personal" | "shared" |
|
|
939
|
-
readonly threadId?: string |
|
|
1378
|
+
readonly cursor?: string | undefined;
|
|
1379
|
+
readonly mailboxId?: string | readonly string[] | undefined;
|
|
1380
|
+
readonly kind?: "personal" | "shared" | undefined;
|
|
1381
|
+
readonly threadId?: string | undefined;
|
|
940
1382
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListOrganizationDrafts">) & {
|
|
941
1383
|
readonly pages: (input?: {
|
|
942
1384
|
readonly limit?: number | null | undefined;
|
|
943
|
-
readonly cursor?: string |
|
|
944
|
-
readonly mailboxId?: string | readonly string[] |
|
|
945
|
-
readonly kind?: "personal" | "shared" |
|
|
946
|
-
readonly threadId?: string |
|
|
1385
|
+
readonly cursor?: string | undefined;
|
|
1386
|
+
readonly mailboxId?: string | readonly string[] | undefined;
|
|
1387
|
+
readonly kind?: "personal" | "shared" | undefined;
|
|
1388
|
+
readonly threadId?: string | undefined;
|
|
947
1389
|
} | undefined) => import("effect/Stream").Stream<{
|
|
948
1390
|
readonly items: readonly {
|
|
949
1391
|
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
950
|
-
readonly channel: "email";
|
|
1392
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
951
1393
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
952
1394
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
953
1395
|
readonly state: "locked" | "saved" | "sent";
|
|
@@ -963,16 +1405,16 @@ export declare const listOrganizationDrafts: ((input?: {
|
|
|
963
1405
|
};
|
|
964
1406
|
}[];
|
|
965
1407
|
readonly nextCursor: string | null;
|
|
966
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1408
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
967
1409
|
readonly items: (input?: {
|
|
968
1410
|
readonly limit?: number | null | undefined;
|
|
969
|
-
readonly cursor?: string |
|
|
970
|
-
readonly mailboxId?: string | readonly string[] |
|
|
971
|
-
readonly kind?: "personal" | "shared" |
|
|
972
|
-
readonly threadId?: string |
|
|
1411
|
+
readonly cursor?: string | undefined;
|
|
1412
|
+
readonly mailboxId?: string | readonly string[] | undefined;
|
|
1413
|
+
readonly kind?: "personal" | "shared" | undefined;
|
|
1414
|
+
readonly threadId?: string | undefined;
|
|
973
1415
|
} | undefined) => import("effect/Stream").Stream<{
|
|
974
1416
|
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
975
|
-
readonly channel: "email";
|
|
1417
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
976
1418
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
977
1419
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
978
1420
|
readonly state: "locked" | "saved" | "sent";
|
|
@@ -986,23 +1428,23 @@ export declare const listOrganizationDrafts: ((input?: {
|
|
|
986
1428
|
readonly address: string | null;
|
|
987
1429
|
readonly kind: "personal" | "shared";
|
|
988
1430
|
};
|
|
989
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1431
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
990
1432
|
};
|
|
991
1433
|
export declare const listDrafts: ((input: {
|
|
992
1434
|
readonly id: string;
|
|
993
1435
|
readonly limit?: number | null | undefined;
|
|
994
|
-
readonly cursor?: string |
|
|
995
|
-
readonly threadId?: string |
|
|
1436
|
+
readonly cursor?: string | undefined;
|
|
1437
|
+
readonly threadId?: string | undefined;
|
|
996
1438
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListDrafts">) & {
|
|
997
1439
|
readonly pages: (input: {
|
|
998
1440
|
readonly id: string;
|
|
999
1441
|
readonly limit?: number | null | undefined;
|
|
1000
|
-
readonly cursor?: string |
|
|
1001
|
-
readonly threadId?: string |
|
|
1442
|
+
readonly cursor?: string | undefined;
|
|
1443
|
+
readonly threadId?: string | undefined;
|
|
1002
1444
|
}) => import("effect/Stream").Stream<{
|
|
1003
1445
|
readonly items: readonly {
|
|
1004
1446
|
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
1005
|
-
readonly channel: "email";
|
|
1447
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
1006
1448
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1007
1449
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1008
1450
|
readonly state: "locked" | "saved" | "sent";
|
|
@@ -1013,15 +1455,15 @@ export declare const listDrafts: ((input: {
|
|
|
1013
1455
|
readonly updatedAt: string;
|
|
1014
1456
|
}[];
|
|
1015
1457
|
readonly nextCursor: string | null;
|
|
1016
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1458
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1017
1459
|
readonly items: (input: {
|
|
1018
1460
|
readonly id: string;
|
|
1019
1461
|
readonly limit?: number | null | undefined;
|
|
1020
|
-
readonly cursor?: string |
|
|
1021
|
-
readonly threadId?: string |
|
|
1462
|
+
readonly cursor?: string | undefined;
|
|
1463
|
+
readonly threadId?: string | undefined;
|
|
1022
1464
|
}) => import("effect/Stream").Stream<{
|
|
1023
1465
|
readonly id: string & import("effect/Brand").Brand<"MailboxDraftId">;
|
|
1024
|
-
readonly channel: "email";
|
|
1466
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
1025
1467
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1026
1468
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1027
1469
|
readonly state: "locked" | "saved" | "sent";
|
|
@@ -1030,10 +1472,9 @@ export declare const listDrafts: ((input: {
|
|
|
1030
1472
|
readonly subject: string | null;
|
|
1031
1473
|
readonly createdAt: string;
|
|
1032
1474
|
readonly updatedAt: string;
|
|
1033
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1475
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1034
1476
|
};
|
|
1035
1477
|
export declare const createDraft: (input: {
|
|
1036
|
-
readonly id: string;
|
|
1037
1478
|
readonly channel?: "email" | null | undefined;
|
|
1038
1479
|
readonly endpointId?: string | null | undefined;
|
|
1039
1480
|
readonly to?: readonly string[] | null | undefined;
|
|
@@ -1051,6 +1492,13 @@ export declare const createDraft: (input: {
|
|
|
1051
1492
|
readonly size: number;
|
|
1052
1493
|
}[] | null | undefined;
|
|
1053
1494
|
readonly inReplyToMessageId?: string | null | undefined;
|
|
1495
|
+
readonly id: string;
|
|
1496
|
+
} | {
|
|
1497
|
+
readonly channel: "sms" | "whatsapp";
|
|
1498
|
+
readonly to?: string | null | undefined;
|
|
1499
|
+
readonly text?: string | null | undefined;
|
|
1500
|
+
readonly inReplyToMessageId?: string | null | undefined;
|
|
1501
|
+
readonly id: string;
|
|
1054
1502
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCreateDraft">;
|
|
1055
1503
|
export declare const getDraft: (input: {
|
|
1056
1504
|
readonly id: string;
|
|
@@ -1085,20 +1533,20 @@ export declare const sendDraft: (input: {
|
|
|
1085
1533
|
export declare const listActions: ((input: {
|
|
1086
1534
|
readonly id: string;
|
|
1087
1535
|
readonly limit?: number | null | undefined;
|
|
1088
|
-
readonly cursor?: string |
|
|
1089
|
-
readonly threadId?: string |
|
|
1090
|
-
readonly state?: "accepted" | "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "completed" | "executed" | "executing" | "failed" | "notSent" | "policyDenied" | "proposed" | "queued" | "uncertain" |
|
|
1091
|
-
readonly after?: string |
|
|
1092
|
-
readonly before?: string |
|
|
1536
|
+
readonly cursor?: string | undefined;
|
|
1537
|
+
readonly threadId?: string | undefined;
|
|
1538
|
+
readonly state?: "accepted" | "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "completed" | "executed" | "executing" | "failed" | "notSent" | "policyDenied" | "proposed" | "queued" | "uncertain" | undefined;
|
|
1539
|
+
readonly after?: string | undefined;
|
|
1540
|
+
readonly before?: string | undefined;
|
|
1093
1541
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListActions">) & {
|
|
1094
1542
|
readonly pages: (input: {
|
|
1095
1543
|
readonly id: string;
|
|
1096
1544
|
readonly limit?: number | null | undefined;
|
|
1097
|
-
readonly cursor?: string |
|
|
1098
|
-
readonly threadId?: string |
|
|
1099
|
-
readonly state?: "accepted" | "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "completed" | "executed" | "executing" | "failed" | "notSent" | "policyDenied" | "proposed" | "queued" | "uncertain" |
|
|
1100
|
-
readonly after?: string |
|
|
1101
|
-
readonly before?: string |
|
|
1545
|
+
readonly cursor?: string | undefined;
|
|
1546
|
+
readonly threadId?: string | undefined;
|
|
1547
|
+
readonly state?: "accepted" | "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "completed" | "executed" | "executing" | "failed" | "notSent" | "policyDenied" | "proposed" | "queued" | "uncertain" | undefined;
|
|
1548
|
+
readonly after?: string | undefined;
|
|
1549
|
+
readonly before?: string | undefined;
|
|
1102
1550
|
}) => import("effect/Stream").Stream<{
|
|
1103
1551
|
readonly items: readonly ({
|
|
1104
1552
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
@@ -1111,11 +1559,108 @@ export declare const listActions: ((input: {
|
|
|
1111
1559
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1112
1560
|
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1113
1561
|
readonly decision: {
|
|
1114
|
-
readonly
|
|
1562
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
1563
|
+
readonly reviewRound: number;
|
|
1564
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
1565
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
1566
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
1567
|
+
readonly reason: string;
|
|
1568
|
+
readonly scopes: readonly {
|
|
1569
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1570
|
+
readonly id: string;
|
|
1571
|
+
}[];
|
|
1572
|
+
readonly rule?: {
|
|
1573
|
+
readonly scope: {
|
|
1574
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1575
|
+
readonly id: string;
|
|
1576
|
+
};
|
|
1577
|
+
readonly index: number;
|
|
1578
|
+
} | null;
|
|
1579
|
+
readonly guard?: string | null;
|
|
1580
|
+
readonly guardReason?: string | null;
|
|
1581
|
+
readonly resolution?: {
|
|
1582
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
1583
|
+
readonly at: string;
|
|
1584
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
1585
|
+
readonly diff?: {
|
|
1586
|
+
readonly text?: {
|
|
1587
|
+
readonly before: string | null;
|
|
1588
|
+
readonly after: string | null;
|
|
1589
|
+
} | null;
|
|
1590
|
+
readonly html?: {
|
|
1591
|
+
readonly before: string | null;
|
|
1592
|
+
readonly after: string | null;
|
|
1593
|
+
} | null;
|
|
1594
|
+
} | null;
|
|
1595
|
+
} | null;
|
|
1596
|
+
} | null;
|
|
1597
|
+
readonly resolution: {
|
|
1598
|
+
readonly outcome: "approved" | "cancelled" | "denied";
|
|
1599
|
+
readonly actor: {
|
|
1600
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1601
|
+
readonly id: string;
|
|
1602
|
+
readonly displayName?: string | null;
|
|
1603
|
+
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1604
|
+
};
|
|
1605
|
+
readonly resolvedAt: string;
|
|
1115
1606
|
readonly reason: string | null;
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1607
|
+
} | null;
|
|
1608
|
+
readonly createdAt: string;
|
|
1609
|
+
readonly updatedAt: string;
|
|
1610
|
+
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "handoff" | "toolCall" | "updateDraft";
|
|
1611
|
+
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
1612
|
+
readonly tool: {
|
|
1613
|
+
readonly name: string;
|
|
1614
|
+
readonly argumentsHash: string;
|
|
1615
|
+
readonly arguments: {
|
|
1616
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1617
|
+
};
|
|
1618
|
+
} | null;
|
|
1619
|
+
} | {
|
|
1620
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1621
|
+
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1622
|
+
readonly proposedBy: {
|
|
1623
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1624
|
+
readonly id: string;
|
|
1625
|
+
readonly displayName?: string | null;
|
|
1626
|
+
};
|
|
1627
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1628
|
+
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1629
|
+
readonly decision: {
|
|
1630
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
1631
|
+
readonly reviewRound: number;
|
|
1632
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
1633
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
1634
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
1635
|
+
readonly reason: string;
|
|
1636
|
+
readonly scopes: readonly {
|
|
1637
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1638
|
+
readonly id: string;
|
|
1639
|
+
}[];
|
|
1640
|
+
readonly rule?: {
|
|
1641
|
+
readonly scope: {
|
|
1642
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1643
|
+
readonly id: string;
|
|
1644
|
+
};
|
|
1645
|
+
readonly index: number;
|
|
1646
|
+
} | null;
|
|
1647
|
+
readonly guard?: string | null;
|
|
1648
|
+
readonly guardReason?: string | null;
|
|
1649
|
+
readonly resolution?: {
|
|
1650
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
1651
|
+
readonly at: string;
|
|
1652
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
1653
|
+
readonly diff?: {
|
|
1654
|
+
readonly text?: {
|
|
1655
|
+
readonly before: string | null;
|
|
1656
|
+
readonly after: string | null;
|
|
1657
|
+
} | null;
|
|
1658
|
+
readonly html?: {
|
|
1659
|
+
readonly before: string | null;
|
|
1660
|
+
readonly after: string | null;
|
|
1661
|
+
} | null;
|
|
1662
|
+
} | null;
|
|
1663
|
+
} | null;
|
|
1119
1664
|
} | null;
|
|
1120
1665
|
readonly resolution: {
|
|
1121
1666
|
readonly outcome: "approved" | "cancelled" | "denied";
|
|
@@ -1192,11 +1737,40 @@ export declare const listActions: ((input: {
|
|
|
1192
1737
|
} | null;
|
|
1193
1738
|
readonly retryEligible: boolean;
|
|
1194
1739
|
readonly decision: {
|
|
1195
|
-
readonly
|
|
1196
|
-
readonly
|
|
1197
|
-
readonly
|
|
1198
|
-
readonly
|
|
1199
|
-
readonly
|
|
1740
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
1741
|
+
readonly reviewRound: number;
|
|
1742
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
1743
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
1744
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
1745
|
+
readonly reason: string;
|
|
1746
|
+
readonly scopes: readonly {
|
|
1747
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1748
|
+
readonly id: string;
|
|
1749
|
+
}[];
|
|
1750
|
+
readonly rule?: {
|
|
1751
|
+
readonly scope: {
|
|
1752
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1753
|
+
readonly id: string;
|
|
1754
|
+
};
|
|
1755
|
+
readonly index: number;
|
|
1756
|
+
} | null;
|
|
1757
|
+
readonly guard?: string | null;
|
|
1758
|
+
readonly guardReason?: string | null;
|
|
1759
|
+
readonly resolution?: {
|
|
1760
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
1761
|
+
readonly at: string;
|
|
1762
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
1763
|
+
readonly diff?: {
|
|
1764
|
+
readonly text?: {
|
|
1765
|
+
readonly before: string | null;
|
|
1766
|
+
readonly after: string | null;
|
|
1767
|
+
} | null;
|
|
1768
|
+
readonly html?: {
|
|
1769
|
+
readonly before: string | null;
|
|
1770
|
+
readonly after: string | null;
|
|
1771
|
+
} | null;
|
|
1772
|
+
} | null;
|
|
1773
|
+
} | null;
|
|
1200
1774
|
} | null;
|
|
1201
1775
|
readonly createdAt: string;
|
|
1202
1776
|
readonly updatedAt: string;
|
|
@@ -1223,57 +1797,42 @@ export declare const listActions: ((input: {
|
|
|
1223
1797
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1224
1798
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1225
1799
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1226
|
-
} |
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1237
|
-
readonly decision: {
|
|
1238
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
1239
|
-
readonly reason: string | null;
|
|
1240
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
1241
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
1242
|
-
readonly decidedAt: string;
|
|
1243
|
-
} | null;
|
|
1244
|
-
readonly resolution: {
|
|
1245
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
1246
|
-
readonly actor: {
|
|
1247
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1248
|
-
readonly id: string;
|
|
1249
|
-
readonly displayName?: string | null;
|
|
1250
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1251
|
-
};
|
|
1252
|
-
readonly resolvedAt: string;
|
|
1253
|
-
readonly reason: string | null;
|
|
1254
|
-
} | null;
|
|
1255
|
-
readonly createdAt: string;
|
|
1256
|
-
readonly updatedAt: string;
|
|
1257
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "toolCall" | "updateDraft";
|
|
1258
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
1259
|
-
readonly tool: {
|
|
1260
|
-
readonly name: string;
|
|
1261
|
-
readonly argumentsHash: string;
|
|
1262
|
-
readonly arguments: {
|
|
1263
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1800
|
+
} | {
|
|
1801
|
+
readonly channel: "sms" | "whatsapp";
|
|
1802
|
+
readonly draftRevision: number;
|
|
1803
|
+
readonly endpointId: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
1804
|
+
readonly sender: {
|
|
1805
|
+
readonly channel: "whatsapp";
|
|
1806
|
+
readonly businessAccountId: string & import("effect/Brand").Brand<"WhatsAppBusinessAccountId">;
|
|
1807
|
+
} | {
|
|
1808
|
+
readonly channel: "sms";
|
|
1809
|
+
readonly phoneNumberId: string & import("effect/Brand").Brand<"SmsPhoneNumberId">;
|
|
1264
1810
|
};
|
|
1811
|
+
readonly from: string;
|
|
1812
|
+
readonly to: string;
|
|
1813
|
+
readonly text: string | null;
|
|
1814
|
+
readonly template: {
|
|
1815
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
1816
|
+
readonly templateChannelVariantId: string & import("effect/Brand").Brand<"TemplateChannelVariantId">;
|
|
1817
|
+
readonly templateData: {
|
|
1818
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1819
|
+
} | null;
|
|
1820
|
+
} | null;
|
|
1821
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1822
|
+
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1823
|
+
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1265
1824
|
} | null;
|
|
1266
1825
|
})[];
|
|
1267
1826
|
readonly nextCursor: string | null;
|
|
1268
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1827
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1269
1828
|
readonly items: (input: {
|
|
1270
1829
|
readonly id: string;
|
|
1271
1830
|
readonly limit?: number | null | undefined;
|
|
1272
|
-
readonly cursor?: string |
|
|
1273
|
-
readonly threadId?: string |
|
|
1274
|
-
readonly state?: "accepted" | "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "completed" | "executed" | "executing" | "failed" | "notSent" | "policyDenied" | "proposed" | "queued" | "uncertain" |
|
|
1275
|
-
readonly after?: string |
|
|
1276
|
-
readonly before?: string |
|
|
1831
|
+
readonly cursor?: string | undefined;
|
|
1832
|
+
readonly threadId?: string | undefined;
|
|
1833
|
+
readonly state?: "accepted" | "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "completed" | "executed" | "executing" | "failed" | "notSent" | "policyDenied" | "proposed" | "queued" | "uncertain" | undefined;
|
|
1834
|
+
readonly after?: string | undefined;
|
|
1835
|
+
readonly before?: string | undefined;
|
|
1277
1836
|
}) => import("effect/Stream").Stream<{
|
|
1278
1837
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1279
1838
|
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
@@ -1285,11 +1844,108 @@ export declare const listActions: ((input: {
|
|
|
1285
1844
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1286
1845
|
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1287
1846
|
readonly decision: {
|
|
1288
|
-
readonly
|
|
1847
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
1848
|
+
readonly reviewRound: number;
|
|
1849
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
1850
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
1851
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
1852
|
+
readonly reason: string;
|
|
1853
|
+
readonly scopes: readonly {
|
|
1854
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1855
|
+
readonly id: string;
|
|
1856
|
+
}[];
|
|
1857
|
+
readonly rule?: {
|
|
1858
|
+
readonly scope: {
|
|
1859
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1860
|
+
readonly id: string;
|
|
1861
|
+
};
|
|
1862
|
+
readonly index: number;
|
|
1863
|
+
} | null;
|
|
1864
|
+
readonly guard?: string | null;
|
|
1865
|
+
readonly guardReason?: string | null;
|
|
1866
|
+
readonly resolution?: {
|
|
1867
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
1868
|
+
readonly at: string;
|
|
1869
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
1870
|
+
readonly diff?: {
|
|
1871
|
+
readonly text?: {
|
|
1872
|
+
readonly before: string | null;
|
|
1873
|
+
readonly after: string | null;
|
|
1874
|
+
} | null;
|
|
1875
|
+
readonly html?: {
|
|
1876
|
+
readonly before: string | null;
|
|
1877
|
+
readonly after: string | null;
|
|
1878
|
+
} | null;
|
|
1879
|
+
} | null;
|
|
1880
|
+
} | null;
|
|
1881
|
+
} | null;
|
|
1882
|
+
readonly resolution: {
|
|
1883
|
+
readonly outcome: "approved" | "cancelled" | "denied";
|
|
1884
|
+
readonly actor: {
|
|
1885
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1886
|
+
readonly id: string;
|
|
1887
|
+
readonly displayName?: string | null;
|
|
1888
|
+
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1889
|
+
};
|
|
1890
|
+
readonly resolvedAt: string;
|
|
1289
1891
|
readonly reason: string | null;
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1892
|
+
} | null;
|
|
1893
|
+
readonly createdAt: string;
|
|
1894
|
+
readonly updatedAt: string;
|
|
1895
|
+
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "handoff" | "toolCall" | "updateDraft";
|
|
1896
|
+
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
1897
|
+
readonly tool: {
|
|
1898
|
+
readonly name: string;
|
|
1899
|
+
readonly argumentsHash: string;
|
|
1900
|
+
readonly arguments: {
|
|
1901
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1902
|
+
};
|
|
1903
|
+
} | null;
|
|
1904
|
+
} | {
|
|
1905
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1906
|
+
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1907
|
+
readonly proposedBy: {
|
|
1908
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1909
|
+
readonly id: string;
|
|
1910
|
+
readonly displayName?: string | null;
|
|
1911
|
+
};
|
|
1912
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1913
|
+
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1914
|
+
readonly decision: {
|
|
1915
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
1916
|
+
readonly reviewRound: number;
|
|
1917
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
1918
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
1919
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
1920
|
+
readonly reason: string;
|
|
1921
|
+
readonly scopes: readonly {
|
|
1922
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1923
|
+
readonly id: string;
|
|
1924
|
+
}[];
|
|
1925
|
+
readonly rule?: {
|
|
1926
|
+
readonly scope: {
|
|
1927
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1928
|
+
readonly id: string;
|
|
1929
|
+
};
|
|
1930
|
+
readonly index: number;
|
|
1931
|
+
} | null;
|
|
1932
|
+
readonly guard?: string | null;
|
|
1933
|
+
readonly guardReason?: string | null;
|
|
1934
|
+
readonly resolution?: {
|
|
1935
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
1936
|
+
readonly at: string;
|
|
1937
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
1938
|
+
readonly diff?: {
|
|
1939
|
+
readonly text?: {
|
|
1940
|
+
readonly before: string | null;
|
|
1941
|
+
readonly after: string | null;
|
|
1942
|
+
} | null;
|
|
1943
|
+
readonly html?: {
|
|
1944
|
+
readonly before: string | null;
|
|
1945
|
+
readonly after: string | null;
|
|
1946
|
+
} | null;
|
|
1947
|
+
} | null;
|
|
1948
|
+
} | null;
|
|
1293
1949
|
} | null;
|
|
1294
1950
|
readonly resolution: {
|
|
1295
1951
|
readonly outcome: "approved" | "cancelled" | "denied";
|
|
@@ -1366,11 +2022,40 @@ export declare const listActions: ((input: {
|
|
|
1366
2022
|
} | null;
|
|
1367
2023
|
readonly retryEligible: boolean;
|
|
1368
2024
|
readonly decision: {
|
|
1369
|
-
readonly
|
|
1370
|
-
readonly
|
|
1371
|
-
readonly
|
|
1372
|
-
readonly
|
|
1373
|
-
readonly
|
|
2025
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
2026
|
+
readonly reviewRound: number;
|
|
2027
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
2028
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
2029
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
2030
|
+
readonly reason: string;
|
|
2031
|
+
readonly scopes: readonly {
|
|
2032
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
2033
|
+
readonly id: string;
|
|
2034
|
+
}[];
|
|
2035
|
+
readonly rule?: {
|
|
2036
|
+
readonly scope: {
|
|
2037
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
2038
|
+
readonly id: string;
|
|
2039
|
+
};
|
|
2040
|
+
readonly index: number;
|
|
2041
|
+
} | null;
|
|
2042
|
+
readonly guard?: string | null;
|
|
2043
|
+
readonly guardReason?: string | null;
|
|
2044
|
+
readonly resolution?: {
|
|
2045
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
2046
|
+
readonly at: string;
|
|
2047
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
2048
|
+
readonly diff?: {
|
|
2049
|
+
readonly text?: {
|
|
2050
|
+
readonly before: string | null;
|
|
2051
|
+
readonly after: string | null;
|
|
2052
|
+
} | null;
|
|
2053
|
+
readonly html?: {
|
|
2054
|
+
readonly before: string | null;
|
|
2055
|
+
readonly after: string | null;
|
|
2056
|
+
} | null;
|
|
2057
|
+
} | null;
|
|
2058
|
+
} | null;
|
|
1374
2059
|
} | null;
|
|
1375
2060
|
readonly createdAt: string;
|
|
1376
2061
|
readonly updatedAt: string;
|
|
@@ -1397,47 +2082,32 @@ export declare const listActions: ((input: {
|
|
|
1397
2082
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1398
2083
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1399
2084
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1400
|
-
} |
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1411
|
-
readonly decision: {
|
|
1412
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
1413
|
-
readonly reason: string | null;
|
|
1414
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
1415
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
1416
|
-
readonly decidedAt: string;
|
|
1417
|
-
} | null;
|
|
1418
|
-
readonly resolution: {
|
|
1419
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
1420
|
-
readonly actor: {
|
|
1421
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1422
|
-
readonly id: string;
|
|
1423
|
-
readonly displayName?: string | null;
|
|
1424
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1425
|
-
};
|
|
1426
|
-
readonly resolvedAt: string;
|
|
1427
|
-
readonly reason: string | null;
|
|
1428
|
-
} | null;
|
|
1429
|
-
readonly createdAt: string;
|
|
1430
|
-
readonly updatedAt: string;
|
|
1431
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "toolCall" | "updateDraft";
|
|
1432
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
1433
|
-
readonly tool: {
|
|
1434
|
-
readonly name: string;
|
|
1435
|
-
readonly argumentsHash: string;
|
|
1436
|
-
readonly arguments: {
|
|
1437
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2085
|
+
} | {
|
|
2086
|
+
readonly channel: "sms" | "whatsapp";
|
|
2087
|
+
readonly draftRevision: number;
|
|
2088
|
+
readonly endpointId: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
2089
|
+
readonly sender: {
|
|
2090
|
+
readonly channel: "whatsapp";
|
|
2091
|
+
readonly businessAccountId: string & import("effect/Brand").Brand<"WhatsAppBusinessAccountId">;
|
|
2092
|
+
} | {
|
|
2093
|
+
readonly channel: "sms";
|
|
2094
|
+
readonly phoneNumberId: string & import("effect/Brand").Brand<"SmsPhoneNumberId">;
|
|
1438
2095
|
};
|
|
2096
|
+
readonly from: string;
|
|
2097
|
+
readonly to: string;
|
|
2098
|
+
readonly text: string | null;
|
|
2099
|
+
readonly template: {
|
|
2100
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
2101
|
+
readonly templateChannelVariantId: string & import("effect/Brand").Brand<"TemplateChannelVariantId">;
|
|
2102
|
+
readonly templateData: {
|
|
2103
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
2104
|
+
} | null;
|
|
2105
|
+
} | null;
|
|
2106
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
2107
|
+
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
2108
|
+
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1439
2109
|
} | null;
|
|
1440
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
2110
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1441
2111
|
};
|
|
1442
2112
|
export declare const getAction: (input: {
|
|
1443
2113
|
readonly id: string;
|
|
@@ -1454,25 +2124,32 @@ export declare const retryAction: (input: {
|
|
|
1454
2124
|
export declare const approveAction: (input: {
|
|
1455
2125
|
readonly id: string;
|
|
1456
2126
|
readonly actionId: string;
|
|
2127
|
+
readonly reviewRound: number;
|
|
2128
|
+
readonly always?: boolean | null | undefined;
|
|
2129
|
+
readonly edits?: {
|
|
2130
|
+
readonly text?: string | null | undefined;
|
|
2131
|
+
readonly html?: string | null | undefined;
|
|
2132
|
+
} | null | undefined;
|
|
1457
2133
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesApproveAction">;
|
|
1458
2134
|
export declare const denyAction: (input: {
|
|
1459
2135
|
readonly id: string;
|
|
1460
2136
|
readonly actionId: string;
|
|
2137
|
+
readonly reviewRound: number;
|
|
1461
2138
|
readonly reason: string;
|
|
1462
2139
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesDenyAction">;
|
|
1463
2140
|
export declare const listEvents: ((input: {
|
|
1464
2141
|
readonly id: string;
|
|
1465
2142
|
readonly limit?: number | null | undefined;
|
|
1466
|
-
readonly cursor?: string |
|
|
1467
|
-
readonly after?: string |
|
|
1468
|
-
readonly before?: string |
|
|
2143
|
+
readonly cursor?: string | undefined;
|
|
2144
|
+
readonly after?: string | undefined;
|
|
2145
|
+
readonly before?: string | undefined;
|
|
1469
2146
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListEvents">) & {
|
|
1470
2147
|
readonly pages: (input: {
|
|
1471
2148
|
readonly id: string;
|
|
1472
2149
|
readonly limit?: number | null | undefined;
|
|
1473
|
-
readonly cursor?: string |
|
|
1474
|
-
readonly after?: string |
|
|
1475
|
-
readonly before?: string |
|
|
2150
|
+
readonly cursor?: string | undefined;
|
|
2151
|
+
readonly after?: string | undefined;
|
|
2152
|
+
readonly before?: string | undefined;
|
|
1476
2153
|
}) => import("effect/Stream").Stream<{
|
|
1477
2154
|
readonly items: readonly {
|
|
1478
2155
|
readonly id: string & import("effect/Brand").Brand<"MailboxEventId">;
|
|
@@ -1490,13 +2167,13 @@ export declare const listEvents: ((input: {
|
|
|
1490
2167
|
readonly occurredAt: string;
|
|
1491
2168
|
}[];
|
|
1492
2169
|
readonly nextCursor: string | null;
|
|
1493
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
2170
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1494
2171
|
readonly items: (input: {
|
|
1495
2172
|
readonly id: string;
|
|
1496
2173
|
readonly limit?: number | null | undefined;
|
|
1497
|
-
readonly cursor?: string |
|
|
1498
|
-
readonly after?: string |
|
|
1499
|
-
readonly before?: string |
|
|
2174
|
+
readonly cursor?: string | undefined;
|
|
2175
|
+
readonly after?: string | undefined;
|
|
2176
|
+
readonly before?: string | undefined;
|
|
1500
2177
|
}) => import("effect/Stream").Stream<{
|
|
1501
2178
|
readonly id: string & import("effect/Brand").Brand<"MailboxEventId">;
|
|
1502
2179
|
readonly type: "action.accepted" | "action.approval_requested" | "action.approval_resolved" | "action.executed" | "action.failed" | "action.policy_decided" | "action.proposed" | "endpoint.attached" | "endpoint.detached" | "mailbox.created" | "message.received" | "message.released" | "message.sent" | "thread.created";
|
|
@@ -1511,5 +2188,5 @@ export declare const listEvents: ((input: {
|
|
|
1511
2188
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1512
2189
|
};
|
|
1513
2190
|
readonly occurredAt: string;
|
|
1514
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
2191
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1515
2192
|
};
|