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
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
import { Effect } from "effect";
|
|
21
|
-
import type { BillingProviderError, ConflictError, EmailChannelError, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, UnauthorizedError, ValidationError, DeliveryUnavailableError } from "./errors";
|
|
21
|
+
import type { BillingProviderError, ConflictError, EmailChannelError, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, UnauthorizedError, ValidationError, DeliveryUnavailableError } from "./errors";
|
|
22
22
|
export type ErrorCategory = "auth" | "validation" | "notFound" | "conflict" | "throttling" | "billing" | "transient";
|
|
23
23
|
export declare const categoriesOf: (error: unknown) => ReadonlyArray<ErrorCategory>;
|
|
24
24
|
export declare const hasCategory: (error: unknown, category: ErrorCategory) => boolean;
|
|
25
25
|
type CategoryError = {
|
|
26
26
|
readonly auth: UnauthorizedError | ForbiddenError;
|
|
27
|
-
readonly validation: ValidationError | FromAddressRequiredError;
|
|
27
|
+
readonly validation: ValidationError | MalformedRequestError | FromAddressRequiredError;
|
|
28
28
|
readonly notFound: ResourceNotFoundError;
|
|
29
29
|
readonly conflict: ConflictError;
|
|
30
30
|
readonly throttling: RateLimitedError;
|
|
@@ -51,7 +51,7 @@ export declare const isRetryable: (error: unknown) => boolean;
|
|
|
51
51
|
*/
|
|
52
52
|
export declare const catchCategory: <Category extends ErrorCategory, A2, E2, R2>(category: Category, handler: (error: CategoryHandlerError<Category>) => Effect.Effect<A2, E2, R2>) => <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A | A2, Exclude<E, CategoryError[Category]> | E2, R | R2>;
|
|
53
53
|
export declare const catchAuthError: <A2, E2, R2>(handler: (error: CategoryHandlerError<"auth">) => Effect.Effect<A2, E2, R2>) => <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A | A2, E2 | Exclude<E, ForbiddenError | UnauthorizedError>, R | R2>;
|
|
54
|
-
export declare const catchValidationError: <A2, E2, R2>(handler: (error: CategoryHandlerError<"validation">) => Effect.Effect<A2, E2, R2>) => <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A | A2, E2 | Exclude<E, FromAddressRequiredError | ValidationError>, R | R2>;
|
|
54
|
+
export declare const catchValidationError: <A2, E2, R2>(handler: (error: CategoryHandlerError<"validation">) => Effect.Effect<A2, E2, R2>) => <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A | A2, E2 | Exclude<E, FromAddressRequiredError | MalformedRequestError | ValidationError>, R | R2>;
|
|
55
55
|
export declare const catchNotFoundError: <A2, E2, R2>(handler: (error: CategoryHandlerError<"notFound">) => Effect.Effect<A2, E2, R2>) => <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A | A2, E2 | Exclude<E, ResourceNotFoundError>, R | R2>;
|
|
56
56
|
export declare const catchConflictError: <A2, E2, R2>(handler: (error: CategoryHandlerError<"conflict">) => Effect.Effect<A2, E2, R2>) => <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A | A2, E2 | Exclude<E, ConflictError>, R | R2>;
|
|
57
57
|
export declare const catchThrottlingError: <A2, E2, R2>(handler: (error: CategoryHandlerError<"throttling">) => Effect.Effect<A2, E2, R2>) => <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A | A2, E2 | Exclude<E, RateLimitedError>, R | R2>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
2
|
readonly limit?: number | null | undefined;
|
|
3
|
-
readonly cursor?: string |
|
|
4
|
-
readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] |
|
|
3
|
+
readonly cursor?: string | undefined;
|
|
4
|
+
readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] | undefined;
|
|
5
5
|
readonly isActive?: boolean | null | undefined;
|
|
6
6
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsList">) & {
|
|
7
7
|
readonly pages: (input?: {
|
|
8
8
|
readonly limit?: number | null | undefined;
|
|
9
|
-
readonly cursor?: string |
|
|
10
|
-
readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] |
|
|
9
|
+
readonly cursor?: string | undefined;
|
|
10
|
+
readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] | undefined;
|
|
11
11
|
readonly isActive?: boolean | null | undefined;
|
|
12
12
|
} | undefined) => import("effect/Stream").Stream<{
|
|
13
13
|
readonly items: readonly {
|
|
@@ -29,11 +29,11 @@ export declare const list: ((input?: {
|
|
|
29
29
|
readonly updatedAt: string;
|
|
30
30
|
}[];
|
|
31
31
|
readonly nextCursor: string | null;
|
|
32
|
-
}, 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>;
|
|
32
|
+
}, 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>;
|
|
33
33
|
readonly items: (input?: {
|
|
34
34
|
readonly limit?: number | null | undefined;
|
|
35
|
-
readonly cursor?: string |
|
|
36
|
-
readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] |
|
|
35
|
+
readonly cursor?: string | undefined;
|
|
36
|
+
readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] | undefined;
|
|
37
37
|
readonly isActive?: boolean | null | undefined;
|
|
38
38
|
} | undefined) => import("effect/Stream").Stream<{
|
|
39
39
|
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
@@ -52,7 +52,7 @@ export declare const list: ((input?: {
|
|
|
52
52
|
readonly isActive: boolean;
|
|
53
53
|
readonly createdAt: string;
|
|
54
54
|
readonly updatedAt: string;
|
|
55
|
-
}, 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>;
|
|
55
|
+
}, 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>;
|
|
56
56
|
};
|
|
57
57
|
export declare const create: (input: {
|
|
58
58
|
readonly name: string;
|
|
@@ -173,12 +173,12 @@ export declare const evaluateDynamic: (input: {
|
|
|
173
173
|
export declare const getMembers: ((input: {
|
|
174
174
|
readonly id: string;
|
|
175
175
|
readonly limit?: number | null | undefined;
|
|
176
|
-
readonly cursor?: string |
|
|
176
|
+
readonly cursor?: string | undefined;
|
|
177
177
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsGetMembers">) & {
|
|
178
178
|
readonly pages: (input: {
|
|
179
179
|
readonly id: string;
|
|
180
180
|
readonly limit?: number | null | undefined;
|
|
181
|
-
readonly cursor?: string |
|
|
181
|
+
readonly cursor?: string | undefined;
|
|
182
182
|
}) => import("effect/Stream").Stream<{
|
|
183
183
|
readonly items: readonly {
|
|
184
184
|
readonly id: string;
|
|
@@ -200,7 +200,7 @@ export declare const getMembers: ((input: {
|
|
|
200
200
|
readonly identifier: string;
|
|
201
201
|
readonly verified: boolean;
|
|
202
202
|
readonly channels: readonly {
|
|
203
|
-
readonly channel: "email";
|
|
203
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
204
204
|
readonly reachability: "reachable" | "unknown" | "unreachable";
|
|
205
205
|
readonly consent: {
|
|
206
206
|
readonly status: "opted_in" | "opted_out";
|
|
@@ -215,11 +215,11 @@ export declare const getMembers: ((input: {
|
|
|
215
215
|
} | null;
|
|
216
216
|
}[];
|
|
217
217
|
readonly nextCursor: string | null;
|
|
218
|
-
}, 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>;
|
|
218
|
+
}, 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>;
|
|
219
219
|
readonly items: (input: {
|
|
220
220
|
readonly id: string;
|
|
221
221
|
readonly limit?: number | null | undefined;
|
|
222
|
-
readonly cursor?: string |
|
|
222
|
+
readonly cursor?: string | undefined;
|
|
223
223
|
}) => import("effect/Stream").Stream<{
|
|
224
224
|
readonly id: string;
|
|
225
225
|
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
@@ -240,7 +240,7 @@ export declare const getMembers: ((input: {
|
|
|
240
240
|
readonly identifier: string;
|
|
241
241
|
readonly verified: boolean;
|
|
242
242
|
readonly channels: readonly {
|
|
243
|
-
readonly channel: "email";
|
|
243
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
244
244
|
readonly reachability: "reachable" | "unknown" | "unreachable";
|
|
245
245
|
readonly consent: {
|
|
246
246
|
readonly status: "opted_in" | "opted_out";
|
|
@@ -253,7 +253,7 @@ export declare const getMembers: ((input: {
|
|
|
253
253
|
}[];
|
|
254
254
|
}[] | null;
|
|
255
255
|
} | null;
|
|
256
|
-
}, 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>;
|
|
256
|
+
}, 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>;
|
|
257
257
|
};
|
|
258
258
|
export declare const addMembers: (input: {
|
|
259
259
|
readonly id: string;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
2
|
readonly limit?: number | null | undefined;
|
|
3
|
-
readonly cursor?: string |
|
|
4
|
-
readonly namespaceId?: string |
|
|
5
|
-
readonly search?: string |
|
|
6
|
-
readonly status?: "active" | "archived" | "blocked" | "paused" |
|
|
7
|
-
readonly fields?: string |
|
|
8
|
-
readonly customField?: string |
|
|
9
|
-
readonly customFieldValue?: string |
|
|
10
|
-
readonly after?: string |
|
|
11
|
-
readonly before?: string |
|
|
3
|
+
readonly cursor?: string | undefined;
|
|
4
|
+
readonly namespaceId?: string | undefined;
|
|
5
|
+
readonly search?: string | undefined;
|
|
6
|
+
readonly status?: "active" | "archived" | "blocked" | "paused" | undefined;
|
|
7
|
+
readonly fields?: string | undefined;
|
|
8
|
+
readonly customField?: string | undefined;
|
|
9
|
+
readonly customFieldValue?: string | undefined;
|
|
10
|
+
readonly after?: string | undefined;
|
|
11
|
+
readonly before?: string | undefined;
|
|
12
12
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsList">) & {
|
|
13
13
|
readonly pages: (input?: {
|
|
14
14
|
readonly limit?: number | null | undefined;
|
|
15
|
-
readonly cursor?: string |
|
|
16
|
-
readonly namespaceId?: string |
|
|
17
|
-
readonly search?: string |
|
|
18
|
-
readonly status?: "active" | "archived" | "blocked" | "paused" |
|
|
19
|
-
readonly fields?: string |
|
|
20
|
-
readonly customField?: string |
|
|
21
|
-
readonly customFieldValue?: string |
|
|
22
|
-
readonly after?: string |
|
|
23
|
-
readonly before?: string |
|
|
15
|
+
readonly cursor?: string | undefined;
|
|
16
|
+
readonly namespaceId?: string | undefined;
|
|
17
|
+
readonly search?: string | undefined;
|
|
18
|
+
readonly status?: "active" | "archived" | "blocked" | "paused" | undefined;
|
|
19
|
+
readonly fields?: string | undefined;
|
|
20
|
+
readonly customField?: string | undefined;
|
|
21
|
+
readonly customFieldValue?: string | undefined;
|
|
22
|
+
readonly after?: string | undefined;
|
|
23
|
+
readonly before?: string | undefined;
|
|
24
24
|
} | undefined) => import("effect/Stream").Stream<{
|
|
25
25
|
readonly items: readonly {
|
|
26
26
|
readonly id: string & import("effect/Brand").Brand<"ContactId">;
|
|
@@ -29,7 +29,7 @@ export declare const list: ((input?: {
|
|
|
29
29
|
readonly displayName: string | null;
|
|
30
30
|
readonly status: "active" | "archived" | "blocked" | "paused";
|
|
31
31
|
readonly email: string | null;
|
|
32
|
-
readonly channels: readonly "email"[];
|
|
32
|
+
readonly channels: readonly ("email" | "sms" | "whatsapp")[];
|
|
33
33
|
readonly tags: readonly string[];
|
|
34
34
|
readonly lists: readonly {
|
|
35
35
|
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
@@ -43,18 +43,18 @@ export declare const list: ((input?: {
|
|
|
43
43
|
readonly createdAt: string;
|
|
44
44
|
}[];
|
|
45
45
|
readonly nextCursor: string | null;
|
|
46
|
-
}, 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>;
|
|
46
|
+
}, 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>;
|
|
47
47
|
readonly items: (input?: {
|
|
48
48
|
readonly limit?: number | null | undefined;
|
|
49
|
-
readonly cursor?: string |
|
|
50
|
-
readonly namespaceId?: string |
|
|
51
|
-
readonly search?: string |
|
|
52
|
-
readonly status?: "active" | "archived" | "blocked" | "paused" |
|
|
53
|
-
readonly fields?: string |
|
|
54
|
-
readonly customField?: string |
|
|
55
|
-
readonly customFieldValue?: string |
|
|
56
|
-
readonly after?: string |
|
|
57
|
-
readonly before?: string |
|
|
49
|
+
readonly cursor?: string | undefined;
|
|
50
|
+
readonly namespaceId?: string | undefined;
|
|
51
|
+
readonly search?: string | undefined;
|
|
52
|
+
readonly status?: "active" | "archived" | "blocked" | "paused" | undefined;
|
|
53
|
+
readonly fields?: string | undefined;
|
|
54
|
+
readonly customField?: string | undefined;
|
|
55
|
+
readonly customFieldValue?: string | undefined;
|
|
56
|
+
readonly after?: string | undefined;
|
|
57
|
+
readonly before?: string | undefined;
|
|
58
58
|
} | undefined) => import("effect/Stream").Stream<{
|
|
59
59
|
readonly id: string & import("effect/Brand").Brand<"ContactId">;
|
|
60
60
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
@@ -62,7 +62,7 @@ export declare const list: ((input?: {
|
|
|
62
62
|
readonly displayName: string | null;
|
|
63
63
|
readonly status: "active" | "archived" | "blocked" | "paused";
|
|
64
64
|
readonly email: string | null;
|
|
65
|
-
readonly channels: readonly "email"[];
|
|
65
|
+
readonly channels: readonly ("email" | "sms" | "whatsapp")[];
|
|
66
66
|
readonly tags: readonly string[];
|
|
67
67
|
readonly lists: readonly {
|
|
68
68
|
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
@@ -74,7 +74,7 @@ export declare const list: ((input?: {
|
|
|
74
74
|
} | null;
|
|
75
75
|
readonly lastActiveAt: string | null;
|
|
76
76
|
readonly createdAt: string;
|
|
77
|
-
}, 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>;
|
|
77
|
+
}, 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>;
|
|
78
78
|
};
|
|
79
79
|
export declare const create: (input: {
|
|
80
80
|
readonly namespaceId?: string | null | undefined;
|
|
@@ -103,11 +103,13 @@ export declare const create: (input: {
|
|
|
103
103
|
readonly source?: "api" | "form" | "import" | "manual" | null | undefined;
|
|
104
104
|
} | null | undefined;
|
|
105
105
|
readonly preferences?: {
|
|
106
|
-
readonly preferredChannels?: readonly "email"[] | null | undefined;
|
|
106
|
+
readonly preferredChannels?: readonly ("email" | "sms" | "whatsapp")[] | null | undefined;
|
|
107
107
|
readonly language?: string | null | undefined;
|
|
108
108
|
readonly timezone?: string | null | undefined;
|
|
109
109
|
readonly notifications?: {
|
|
110
110
|
readonly email?: boolean | null | undefined;
|
|
111
|
+
readonly sms?: boolean | null | undefined;
|
|
112
|
+
readonly whatsapp?: boolean | null | undefined;
|
|
111
113
|
readonly quiet_hours?: {
|
|
112
114
|
readonly start: string;
|
|
113
115
|
readonly end: string;
|
|
@@ -219,11 +221,13 @@ export declare const update: (input: {
|
|
|
219
221
|
} | null | undefined;
|
|
220
222
|
} | null | undefined;
|
|
221
223
|
readonly preferences?: {
|
|
222
|
-
readonly preferredChannels?: readonly "email"[] | null | undefined;
|
|
224
|
+
readonly preferredChannels?: readonly ("email" | "sms" | "whatsapp")[] | null | undefined;
|
|
223
225
|
readonly language?: string | null | undefined;
|
|
224
226
|
readonly timezone?: string | null | undefined;
|
|
225
227
|
readonly notifications?: {
|
|
226
228
|
readonly email?: boolean | null | undefined;
|
|
229
|
+
readonly sms?: boolean | null | undefined;
|
|
230
|
+
readonly whatsapp?: boolean | null | undefined;
|
|
227
231
|
readonly quiet_hours?: {
|
|
228
232
|
readonly start: string;
|
|
229
233
|
readonly end: string;
|
|
@@ -274,7 +278,7 @@ export declare const removeIdentity: (input: {
|
|
|
274
278
|
export declare const setConsent: (input: {
|
|
275
279
|
readonly id: string;
|
|
276
280
|
readonly identityId: string;
|
|
277
|
-
readonly channel: "email";
|
|
281
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
278
282
|
readonly status: "opted_in" | "opted_out";
|
|
279
283
|
readonly source: string;
|
|
280
284
|
readonly capturedAt: string;
|
|
@@ -405,14 +409,14 @@ export { exportContacts as export };
|
|
|
405
409
|
export declare const getActivityTimeline: ((input: {
|
|
406
410
|
readonly id: string;
|
|
407
411
|
readonly limit?: number | null | undefined;
|
|
408
|
-
readonly cursor?: string |
|
|
409
|
-
readonly channel?: "email" |
|
|
412
|
+
readonly cursor?: string | undefined;
|
|
413
|
+
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
410
414
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetActivityTimeline">) & {
|
|
411
415
|
readonly pages: (input: {
|
|
412
416
|
readonly id: string;
|
|
413
417
|
readonly limit?: number | null | undefined;
|
|
414
|
-
readonly cursor?: string |
|
|
415
|
-
readonly channel?: "email" |
|
|
418
|
+
readonly cursor?: string | undefined;
|
|
419
|
+
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
416
420
|
}) => import("effect/Stream").Stream<{
|
|
417
421
|
readonly items: readonly {
|
|
418
422
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
@@ -425,12 +429,12 @@ export declare const getActivityTimeline: ((input: {
|
|
|
425
429
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
426
430
|
}[];
|
|
427
431
|
readonly nextCursor: string | null;
|
|
428
|
-
}, 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>;
|
|
432
|
+
}, 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>;
|
|
429
433
|
readonly items: (input: {
|
|
430
434
|
readonly id: string;
|
|
431
435
|
readonly limit?: number | null | undefined;
|
|
432
|
-
readonly cursor?: string |
|
|
433
|
-
readonly channel?: "email" |
|
|
436
|
+
readonly cursor?: string | undefined;
|
|
437
|
+
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
434
438
|
}) => import("effect/Stream").Stream<{
|
|
435
439
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
436
440
|
readonly channel: string;
|
|
@@ -440,17 +444,17 @@ export declare const getActivityTimeline: ((input: {
|
|
|
440
444
|
readonly snippet: string | null;
|
|
441
445
|
readonly createdAt: string;
|
|
442
446
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
443
|
-
}, 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>;
|
|
447
|
+
}, 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>;
|
|
444
448
|
};
|
|
445
449
|
export declare const getGroupMemberships: ((input: {
|
|
446
450
|
readonly id: string;
|
|
447
451
|
readonly limit?: number | null | undefined;
|
|
448
|
-
readonly cursor?: string |
|
|
452
|
+
readonly cursor?: string | undefined;
|
|
449
453
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetGroupMemberships">) & {
|
|
450
454
|
readonly pages: (input: {
|
|
451
455
|
readonly id: string;
|
|
452
456
|
readonly limit?: number | null | undefined;
|
|
453
|
-
readonly cursor?: string |
|
|
457
|
+
readonly cursor?: string | undefined;
|
|
454
458
|
}) => import("effect/Stream").Stream<{
|
|
455
459
|
readonly items: readonly {
|
|
456
460
|
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
@@ -461,11 +465,11 @@ export declare const getGroupMemberships: ((input: {
|
|
|
461
465
|
readonly joinedAt: string;
|
|
462
466
|
}[];
|
|
463
467
|
readonly nextCursor: string | null;
|
|
464
|
-
}, 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>;
|
|
468
|
+
}, 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>;
|
|
465
469
|
readonly items: (input: {
|
|
466
470
|
readonly id: string;
|
|
467
471
|
readonly limit?: number | null | undefined;
|
|
468
|
-
readonly cursor?: string |
|
|
472
|
+
readonly cursor?: string | undefined;
|
|
469
473
|
}) => import("effect/Stream").Stream<{
|
|
470
474
|
readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
471
475
|
readonly name: string;
|
|
@@ -473,17 +477,17 @@ export declare const getGroupMemberships: ((input: {
|
|
|
473
477
|
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
474
478
|
readonly role: string;
|
|
475
479
|
readonly joinedAt: string;
|
|
476
|
-
}, 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>;
|
|
480
|
+
}, 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>;
|
|
477
481
|
};
|
|
478
482
|
export declare const listEvents: ((input: {
|
|
479
483
|
readonly id: string;
|
|
480
484
|
readonly limit?: number | null | undefined;
|
|
481
|
-
readonly cursor?: string |
|
|
485
|
+
readonly cursor?: string | undefined;
|
|
482
486
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactEventsListEvents">) & {
|
|
483
487
|
readonly pages: (input: {
|
|
484
488
|
readonly id: string;
|
|
485
489
|
readonly limit?: number | null | undefined;
|
|
486
|
-
readonly cursor?: string |
|
|
490
|
+
readonly cursor?: string | undefined;
|
|
487
491
|
}) => import("effect/Stream").Stream<{
|
|
488
492
|
readonly items: readonly {
|
|
489
493
|
readonly id: string;
|
|
@@ -497,11 +501,11 @@ export declare const listEvents: ((input: {
|
|
|
497
501
|
readonly recordedAt: string;
|
|
498
502
|
}[];
|
|
499
503
|
readonly nextCursor: string | null;
|
|
500
|
-
}, 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>;
|
|
504
|
+
}, 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>;
|
|
501
505
|
readonly items: (input: {
|
|
502
506
|
readonly id: string;
|
|
503
507
|
readonly limit?: number | null | undefined;
|
|
504
|
-
readonly cursor?: string |
|
|
508
|
+
readonly cursor?: string | undefined;
|
|
505
509
|
}) => import("effect/Stream").Stream<{
|
|
506
510
|
readonly id: string;
|
|
507
511
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
@@ -512,5 +516,5 @@ export declare const listEvents: ((input: {
|
|
|
512
516
|
};
|
|
513
517
|
readonly occurredAt: string;
|
|
514
518
|
readonly recordedAt: string;
|
|
515
|
-
}, 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>;
|
|
519
|
+
}, 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>;
|
|
516
520
|
};
|
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
2
|
readonly limit?: number | null | undefined;
|
|
3
|
-
readonly cursor?: string |
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
3
|
+
readonly cursor?: string | undefined;
|
|
4
|
+
readonly namespaceId?: string | undefined;
|
|
5
|
+
readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | undefined;
|
|
6
|
+
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
7
|
+
readonly contactId?: string | undefined;
|
|
8
|
+
readonly mailboxId?: string | undefined;
|
|
9
|
+
readonly after?: string | undefined;
|
|
10
|
+
readonly before?: string | undefined;
|
|
10
11
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsList">) & {
|
|
11
12
|
readonly pages: (input?: {
|
|
12
13
|
readonly limit?: number | null | undefined;
|
|
13
|
-
readonly cursor?: string |
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
14
|
+
readonly cursor?: string | undefined;
|
|
15
|
+
readonly namespaceId?: string | undefined;
|
|
16
|
+
readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | undefined;
|
|
17
|
+
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
18
|
+
readonly contactId?: string | undefined;
|
|
19
|
+
readonly mailboxId?: string | undefined;
|
|
20
|
+
readonly after?: string | undefined;
|
|
21
|
+
readonly before?: string | undefined;
|
|
20
22
|
} | undefined) => import("effect/Stream").Stream<{
|
|
21
23
|
readonly items: readonly {
|
|
22
24
|
readonly id: string & import("effect/Brand").Brand<"ConversationId">;
|
|
25
|
+
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
23
26
|
readonly title: string | null;
|
|
24
27
|
readonly externalId: string | null;
|
|
25
28
|
readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
|
|
26
|
-
readonly primaryChannel: "email";
|
|
27
|
-
readonly channels: readonly "email"[];
|
|
29
|
+
readonly primaryChannel: "email" | "sms" | "whatsapp";
|
|
30
|
+
readonly channels: readonly ("email" | "sms" | "whatsapp")[];
|
|
28
31
|
readonly priority: number;
|
|
29
32
|
readonly urgency: "critical" | "high" | "low" | "medium";
|
|
30
33
|
readonly tags: readonly string[];
|
|
@@ -34,23 +37,25 @@ export declare const list: ((input?: {
|
|
|
34
37
|
readonly createdAt: string;
|
|
35
38
|
}[];
|
|
36
39
|
readonly nextCursor: string | null;
|
|
37
|
-
}, 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>;
|
|
40
|
+
}, 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>;
|
|
38
41
|
readonly items: (input?: {
|
|
39
42
|
readonly limit?: number | null | undefined;
|
|
40
|
-
readonly cursor?: string |
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
43
|
+
readonly cursor?: string | undefined;
|
|
44
|
+
readonly namespaceId?: string | undefined;
|
|
45
|
+
readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | undefined;
|
|
46
|
+
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
47
|
+
readonly contactId?: string | undefined;
|
|
48
|
+
readonly mailboxId?: string | undefined;
|
|
49
|
+
readonly after?: string | undefined;
|
|
50
|
+
readonly before?: string | undefined;
|
|
47
51
|
} | undefined) => import("effect/Stream").Stream<{
|
|
48
52
|
readonly id: string & import("effect/Brand").Brand<"ConversationId">;
|
|
53
|
+
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
49
54
|
readonly title: string | null;
|
|
50
55
|
readonly externalId: string | null;
|
|
51
56
|
readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
|
|
52
|
-
readonly primaryChannel: "email";
|
|
53
|
-
readonly channels: readonly "email"[];
|
|
57
|
+
readonly primaryChannel: "email" | "sms" | "whatsapp";
|
|
58
|
+
readonly channels: readonly ("email" | "sms" | "whatsapp")[];
|
|
54
59
|
readonly priority: number;
|
|
55
60
|
readonly urgency: "critical" | "high" | "low" | "medium";
|
|
56
61
|
readonly tags: readonly string[];
|
|
@@ -58,15 +63,16 @@ export declare const list: ((input?: {
|
|
|
58
63
|
readonly messageCount: number;
|
|
59
64
|
readonly lastActivityAt: string;
|
|
60
65
|
readonly createdAt: string;
|
|
61
|
-
}, 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>;
|
|
66
|
+
}, 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>;
|
|
62
67
|
};
|
|
63
68
|
export declare const create: (input: {
|
|
69
|
+
readonly namespaceId?: string | null | undefined;
|
|
64
70
|
readonly title?: string | null | undefined;
|
|
65
71
|
readonly description?: string | null | undefined;
|
|
66
72
|
readonly externalId?: string | null | undefined;
|
|
67
73
|
readonly parentConversationId?: string | null | undefined;
|
|
68
|
-
readonly channels: readonly "email"[];
|
|
69
|
-
readonly primaryChannel: "email";
|
|
74
|
+
readonly channels: readonly ("email" | "sms" | "whatsapp")[];
|
|
75
|
+
readonly primaryChannel: "email" | "sms" | "whatsapp";
|
|
70
76
|
readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
|
|
71
77
|
readonly statusReason?: string | null | undefined;
|
|
72
78
|
readonly priority?: number | null | undefined;
|
|
@@ -200,16 +206,16 @@ export declare const getById: (input: {
|
|
|
200
206
|
export declare const listMessages: ((input: {
|
|
201
207
|
readonly id: string;
|
|
202
208
|
readonly limit?: number | null | undefined;
|
|
203
|
-
readonly cursor?: string |
|
|
204
|
-
readonly after?: string |
|
|
205
|
-
readonly before?: string |
|
|
209
|
+
readonly cursor?: string | undefined;
|
|
210
|
+
readonly after?: string | undefined;
|
|
211
|
+
readonly before?: string | undefined;
|
|
206
212
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsListMessages">) & {
|
|
207
213
|
readonly pages: (input: {
|
|
208
214
|
readonly id: string;
|
|
209
215
|
readonly limit?: number | null | undefined;
|
|
210
|
-
readonly cursor?: string |
|
|
211
|
-
readonly after?: string |
|
|
212
|
-
readonly before?: string |
|
|
216
|
+
readonly cursor?: string | undefined;
|
|
217
|
+
readonly after?: string | undefined;
|
|
218
|
+
readonly before?: string | undefined;
|
|
213
219
|
}) => import("effect/Stream").Stream<{
|
|
214
220
|
readonly items: readonly {
|
|
215
221
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
@@ -217,7 +223,7 @@ export declare const listMessages: ((input: {
|
|
|
217
223
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
218
224
|
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
219
225
|
} | null;
|
|
220
|
-
readonly channel: "email";
|
|
226
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
221
227
|
readonly direction: "inbound" | "outbound";
|
|
222
228
|
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
223
229
|
readonly from: string | null;
|
|
@@ -227,20 +233,20 @@ export declare const listMessages: ((input: {
|
|
|
227
233
|
readonly createdAt: string;
|
|
228
234
|
}[];
|
|
229
235
|
readonly nextCursor: string | null;
|
|
230
|
-
}, 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>;
|
|
236
|
+
}, 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>;
|
|
231
237
|
readonly items: (input: {
|
|
232
238
|
readonly id: string;
|
|
233
239
|
readonly limit?: number | null | undefined;
|
|
234
|
-
readonly cursor?: string |
|
|
235
|
-
readonly after?: string |
|
|
236
|
-
readonly before?: string |
|
|
240
|
+
readonly cursor?: string | undefined;
|
|
241
|
+
readonly after?: string | undefined;
|
|
242
|
+
readonly before?: string | undefined;
|
|
237
243
|
}) => import("effect/Stream").Stream<{
|
|
238
244
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
239
245
|
readonly campaign?: {
|
|
240
246
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
241
247
|
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
242
248
|
} | null;
|
|
243
|
-
readonly channel: "email";
|
|
249
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
244
250
|
readonly direction: "inbound" | "outbound";
|
|
245
251
|
readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
|
|
246
252
|
readonly from: string | null;
|
|
@@ -248,7 +254,7 @@ export declare const listMessages: ((input: {
|
|
|
248
254
|
readonly subject: string | null;
|
|
249
255
|
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
250
256
|
readonly createdAt: string;
|
|
251
|
-
}, 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>;
|
|
257
|
+
}, 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>;
|
|
252
258
|
};
|
|
253
259
|
export declare const update: (input: {
|
|
254
260
|
readonly id: string;
|
|
@@ -256,7 +262,7 @@ export declare const update: (input: {
|
|
|
256
262
|
readonly description?: string | null | undefined;
|
|
257
263
|
readonly externalId?: string | null | undefined;
|
|
258
264
|
readonly parentConversationId?: string | null | undefined;
|
|
259
|
-
readonly primaryChannel?: "email" | null | undefined;
|
|
265
|
+
readonly primaryChannel?: "email" | "sms" | "whatsapp" | null | undefined;
|
|
260
266
|
readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
|
|
261
267
|
readonly statusReason?: string | null | undefined;
|
|
262
268
|
readonly priority?: number | null | undefined;
|
|
@@ -400,11 +406,11 @@ export declare const removeCategories: (input: {
|
|
|
400
406
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveCategories">;
|
|
401
407
|
export declare const addChannels: (input: {
|
|
402
408
|
readonly id: string;
|
|
403
|
-
readonly channels: readonly "email"[];
|
|
409
|
+
readonly channels: readonly ("email" | "sms" | "whatsapp")[];
|
|
404
410
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddChannels">;
|
|
405
411
|
export declare const removeChannels: (input: {
|
|
406
412
|
readonly id: string;
|
|
407
|
-
readonly channels: readonly "email"[];
|
|
413
|
+
readonly channels: readonly ("email" | "sms" | "whatsapp")[];
|
|
408
414
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveChannels">;
|
|
409
415
|
export declare const addContacts: (input: {
|
|
410
416
|
readonly id: string;
|