samva 0.33.0 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +1 -1
  2. package/dist/client/sdk.gen.d.ts +225 -251
  3. package/dist/client/sdk.gen.js +85 -211
  4. package/dist/client/types.gen.d.ts +2897 -403
  5. package/dist/effect/agents.d.ts +28 -13
  6. package/dist/effect/agents.js +5 -1
  7. package/dist/effect/analytics.d.ts +15 -15
  8. package/dist/effect/api-keys.d.ts +27 -18
  9. package/dist/effect/campaigns.d.ts +721 -65
  10. package/dist/effect/categories.d.ts +3 -3
  11. package/dist/effect/contact-groups.d.ts +15 -15
  12. package/dist/effect/contacts.d.ts +56 -52
  13. package/dist/effect/conversations.d.ts +45 -45
  14. package/dist/effect/email.d.ts +82 -82
  15. package/dist/effect/errors.d.ts +1 -1
  16. package/dist/effect/errors.js +2 -2
  17. package/dist/effect/extension-installations.d.ts +11 -11
  18. package/dist/effect/extensions.d.ts +16 -16
  19. package/dist/effect/generated/agents.d.ts +1063 -33
  20. package/dist/effect/generated/agents.js +133 -11
  21. package/dist/effect/generated/analytics.d.ts +109 -136
  22. package/dist/effect/generated/analytics.js +65 -36
  23. package/dist/effect/generated/api-keys.d.ts +240 -19
  24. package/dist/effect/generated/api-keys.js +24 -8
  25. package/dist/effect/generated/attachments.d.ts +89 -1
  26. package/dist/effect/generated/attachments.js +10 -2
  27. package/dist/effect/generated/brands.d.ts +133 -1
  28. package/dist/effect/generated/brands.js +22 -10
  29. package/dist/effect/generated/campaigns.d.ts +1442 -140
  30. package/dist/effect/generated/campaigns.js +82 -20
  31. package/dist/effect/generated/contact-events.d.ts +26 -4
  32. package/dist/effect/generated/contact-events.js +5 -3
  33. package/dist/effect/generated/contact-groups.d.ts +233 -13
  34. package/dist/effect/generated/contact-groups.js +33 -17
  35. package/dist/effect/generated/contacts.d.ts +634 -96
  36. package/dist/effect/generated/contacts.js +82 -20
  37. package/dist/effect/generated/conversations.d.ts +398 -106
  38. package/dist/effect/generated/conversations.js +96 -22
  39. package/dist/effect/generated/custom-fields.d.ts +89 -1
  40. package/dist/effect/generated/custom-fields.js +11 -3
  41. package/dist/effect/generated/email.d.ts +1447 -83
  42. package/dist/effect/generated/email.js +167 -43
  43. package/dist/effect/generated/events.d.ts +51 -7
  44. package/dist/effect/generated/events.js +9 -5
  45. package/dist/effect/generated/extension-installations.d.ts +208 -10
  46. package/dist/effect/generated/extension-installations.js +26 -8
  47. package/dist/effect/generated/extensions.d.ts +123 -13
  48. package/dist/effect/generated/extensions.js +20 -10
  49. package/dist/effect/generated/feedback.d.ts +23 -1
  50. package/dist/effect/generated/feedback.js +6 -4
  51. package/dist/effect/generated/journeys.d.ts +684 -16
  52. package/dist/effect/generated/journeys.js +37 -9
  53. package/dist/effect/generated/mailboxes.d.ts +3085 -627
  54. package/dist/effect/generated/mailboxes.js +340 -141
  55. package/dist/effect/generated/media.d.ts +125 -15
  56. package/dist/effect/generated/media.js +15 -2
  57. package/dist/effect/generated/messages.d.ts +2036 -117
  58. package/dist/effect/generated/messages.js +286 -54
  59. package/dist/effect/generated/namespaces.d.ts +209 -25
  60. package/dist/effect/generated/namespaces.js +27 -9
  61. package/dist/effect/generated/newsletter-domains.d.ts +98 -12
  62. package/dist/effect/generated/newsletter-domains.js +20 -13
  63. package/dist/effect/generated/newsletter-issues.d.ts +354 -19
  64. package/dist/effect/generated/newsletter-issues.js +162 -98
  65. package/dist/effect/generated/newsletters.d.ts +123 -13
  66. package/dist/effect/generated/newsletters.js +19 -9
  67. package/dist/effect/generated/operations.d.ts +76 -10
  68. package/dist/effect/generated/operations.js +12 -6
  69. package/dist/effect/generated/organizations.d.ts +287 -7
  70. package/dist/effect/generated/organizations.js +33 -5
  71. package/dist/effect/generated/scheduled-messages.d.ts +4427 -99
  72. package/dist/effect/generated/scheduled-messages.js +71 -12
  73. package/dist/effect/generated/shared.d.ts +2213 -190
  74. package/dist/effect/generated/shared.js +527 -76
  75. package/dist/effect/generated/subscriptions.d.ts +23 -1
  76. package/dist/effect/generated/subscriptions.js +6 -4
  77. package/dist/effect/generated/templates.d.ts +1718 -136
  78. package/dist/effect/generated/templates.js +421 -226
  79. package/dist/effect/generated/topic-forms.d.ts +111 -1
  80. package/dist/effect/generated/topic-forms.js +23 -13
  81. package/dist/effect/generated/topics.d.ts +353 -43
  82. package/dist/effect/generated/topics.js +67 -19
  83. package/dist/effect/generated/webhooks.d.ts +308 -46
  84. package/dist/effect/generated/webhooks.js +67 -19
  85. package/dist/effect/generated/whoami.d.ts +35 -1
  86. package/dist/effect/generated/whoami.js +4 -2
  87. package/dist/effect/generated-metadata.d.ts +20 -0
  88. package/dist/effect/generated-metadata.js +10 -0
  89. package/dist/effect/index.js +2 -2
  90. package/dist/effect/internal/client.js +1 -1
  91. package/dist/effect/internal/email-sender.d.ts +1 -1
  92. package/dist/effect/internal/send.d.ts +1 -1
  93. package/dist/effect/journeys.d.ts +105 -19
  94. package/dist/effect/mailboxes.d.ts +405 -174
  95. package/dist/effect/media.d.ts +1 -1
  96. package/dist/effect/messages.d.ts +40 -40
  97. package/dist/effect/namespaces.d.ts +15 -15
  98. package/dist/effect/newsletter-domains.d.ts +5 -5
  99. package/dist/effect/newsletters.d.ts +1 -1
  100. package/dist/effect/operations.d.ts +11 -11
  101. package/dist/effect/organizations.d.ts +2 -2
  102. package/dist/effect/scheduled-messages.d.ts +863 -8
  103. package/dist/effect/templates.d.ts +37 -37
  104. package/dist/effect/topics.d.ts +21 -21
  105. package/dist/effect/webhooks.d.ts +28 -26
  106. package/dist/index.js +2 -2
  107. package/dist/normalize.js +13 -1
  108. package/dist/package.js +1 -1
  109. package/dist/promises/client.d.ts +1 -1
  110. package/dist/promises/client.js +2 -2
  111. package/dist/promises/errors.gen.d.ts +22 -2
  112. package/dist/promises/errors.gen.js +60 -2
  113. package/dist/promises/index.js +2 -2
  114. package/dist/promises/types.gen.d.ts +1 -1
  115. package/dist/service-map.d.ts +9 -0
  116. package/dist/service-map.js +5 -0
  117. package/package.json +9 -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 | null | undefined;
4
- readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] | null | undefined;
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 | null | undefined;
10
- readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] | null | undefined;
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 | null | undefined;
36
- readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] | null | undefined;
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 | null | undefined;
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 | null | undefined;
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 | null | undefined;
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 | null | undefined;
4
- readonly namespaceId?: string | null | undefined;
5
- readonly search?: string | null | undefined;
6
- readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
7
- readonly fields?: string | null | undefined;
8
- readonly customField?: string | null | undefined;
9
- readonly customFieldValue?: string | null | undefined;
10
- readonly after?: string | null | undefined;
11
- readonly before?: string | null | undefined;
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 | null | undefined;
16
- readonly namespaceId?: string | null | undefined;
17
- readonly search?: string | null | undefined;
18
- readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
19
- readonly fields?: string | null | undefined;
20
- readonly customField?: string | null | undefined;
21
- readonly customFieldValue?: string | null | undefined;
22
- readonly after?: string | null | undefined;
23
- readonly before?: string | null | undefined;
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 | null | undefined;
50
- readonly namespaceId?: string | null | undefined;
51
- readonly search?: string | null | undefined;
52
- readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
53
- readonly fields?: string | null | undefined;
54
- readonly customField?: string | null | undefined;
55
- readonly customFieldValue?: string | null | undefined;
56
- readonly after?: string | null | undefined;
57
- readonly before?: string | null | undefined;
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 | null | undefined;
409
- readonly channel?: "email" | null | undefined;
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 | null | undefined;
415
- readonly channel?: "email" | null | undefined;
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 | null | undefined;
433
- readonly channel?: "email" | null | undefined;
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 | null | undefined;
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 | null | undefined;
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 | null | undefined;
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 | null | undefined;
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 | null | undefined;
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 | null | undefined;
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,30 @@
1
1
  export declare const list: ((input?: {
2
2
  readonly limit?: number | null | undefined;
3
- readonly cursor?: string | null | undefined;
4
- readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
5
- readonly channel?: "email" | null | undefined;
6
- readonly contactId?: string | null | undefined;
7
- readonly mailboxId?: string | null | undefined;
8
- readonly after?: string | null | undefined;
9
- readonly before?: string | null | undefined;
3
+ readonly cursor?: string | undefined;
4
+ readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | undefined;
5
+ readonly channel?: "email" | "sms" | "whatsapp" | undefined;
6
+ readonly contactId?: string | undefined;
7
+ readonly mailboxId?: string | undefined;
8
+ readonly after?: string | undefined;
9
+ readonly before?: string | undefined;
10
10
  } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsList">) & {
11
11
  readonly pages: (input?: {
12
12
  readonly limit?: number | null | undefined;
13
- readonly cursor?: string | null | undefined;
14
- readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
15
- readonly channel?: "email" | null | undefined;
16
- readonly contactId?: string | null | undefined;
17
- readonly mailboxId?: string | null | undefined;
18
- readonly after?: string | null | undefined;
19
- readonly before?: string | null | undefined;
13
+ readonly cursor?: string | undefined;
14
+ readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | undefined;
15
+ readonly channel?: "email" | "sms" | "whatsapp" | undefined;
16
+ readonly contactId?: string | undefined;
17
+ readonly mailboxId?: string | undefined;
18
+ readonly after?: string | undefined;
19
+ readonly before?: string | undefined;
20
20
  } | undefined) => import("effect/Stream").Stream<{
21
21
  readonly items: readonly {
22
22
  readonly id: string & import("effect/Brand").Brand<"ConversationId">;
23
23
  readonly title: string | null;
24
24
  readonly externalId: string | null;
25
25
  readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
26
- readonly primaryChannel: "email";
27
- readonly channels: readonly "email"[];
26
+ readonly primaryChannel: "email" | "sms" | "whatsapp";
27
+ readonly channels: readonly ("email" | "sms" | "whatsapp")[];
28
28
  readonly priority: number;
29
29
  readonly urgency: "critical" | "high" | "low" | "medium";
30
30
  readonly tags: readonly string[];
@@ -34,23 +34,23 @@ export declare const list: ((input?: {
34
34
  readonly createdAt: string;
35
35
  }[];
36
36
  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>;
37
+ }, 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
38
  readonly items: (input?: {
39
39
  readonly limit?: number | null | undefined;
40
- readonly cursor?: string | null | undefined;
41
- readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
42
- readonly channel?: "email" | null | undefined;
43
- readonly contactId?: string | null | undefined;
44
- readonly mailboxId?: string | null | undefined;
45
- readonly after?: string | null | undefined;
46
- readonly before?: string | null | undefined;
40
+ readonly cursor?: string | undefined;
41
+ readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | undefined;
42
+ readonly channel?: "email" | "sms" | "whatsapp" | undefined;
43
+ readonly contactId?: string | undefined;
44
+ readonly mailboxId?: string | undefined;
45
+ readonly after?: string | undefined;
46
+ readonly before?: string | undefined;
47
47
  } | undefined) => import("effect/Stream").Stream<{
48
48
  readonly id: string & import("effect/Brand").Brand<"ConversationId">;
49
49
  readonly title: string | null;
50
50
  readonly externalId: string | null;
51
51
  readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
52
- readonly primaryChannel: "email";
53
- readonly channels: readonly "email"[];
52
+ readonly primaryChannel: "email" | "sms" | "whatsapp";
53
+ readonly channels: readonly ("email" | "sms" | "whatsapp")[];
54
54
  readonly priority: number;
55
55
  readonly urgency: "critical" | "high" | "low" | "medium";
56
56
  readonly tags: readonly string[];
@@ -58,15 +58,15 @@ export declare const list: ((input?: {
58
58
  readonly messageCount: number;
59
59
  readonly lastActivityAt: string;
60
60
  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>;
61
+ }, 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
62
  };
63
63
  export declare const create: (input: {
64
64
  readonly title?: string | null | undefined;
65
65
  readonly description?: string | null | undefined;
66
66
  readonly externalId?: string | null | undefined;
67
67
  readonly parentConversationId?: string | null | undefined;
68
- readonly channels: readonly "email"[];
69
- readonly primaryChannel: "email";
68
+ readonly channels: readonly ("email" | "sms" | "whatsapp")[];
69
+ readonly primaryChannel: "email" | "sms" | "whatsapp";
70
70
  readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
71
71
  readonly statusReason?: string | null | undefined;
72
72
  readonly priority?: number | null | undefined;
@@ -200,16 +200,16 @@ export declare const getById: (input: {
200
200
  export declare const listMessages: ((input: {
201
201
  readonly id: string;
202
202
  readonly limit?: number | null | undefined;
203
- readonly cursor?: string | null | undefined;
204
- readonly after?: string | null | undefined;
205
- readonly before?: string | null | undefined;
203
+ readonly cursor?: string | undefined;
204
+ readonly after?: string | undefined;
205
+ readonly before?: string | undefined;
206
206
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsListMessages">) & {
207
207
  readonly pages: (input: {
208
208
  readonly id: string;
209
209
  readonly limit?: number | null | undefined;
210
- readonly cursor?: string | null | undefined;
211
- readonly after?: string | null | undefined;
212
- readonly before?: string | null | undefined;
210
+ readonly cursor?: string | undefined;
211
+ readonly after?: string | undefined;
212
+ readonly before?: string | undefined;
213
213
  }) => import("effect/Stream").Stream<{
214
214
  readonly items: readonly {
215
215
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
@@ -217,7 +217,7 @@ export declare const listMessages: ((input: {
217
217
  readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
218
218
  readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
219
219
  } | null;
220
- readonly channel: "email";
220
+ readonly channel: "email" | "sms" | "whatsapp";
221
221
  readonly direction: "inbound" | "outbound";
222
222
  readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
223
223
  readonly from: string | null;
@@ -227,20 +227,20 @@ export declare const listMessages: ((input: {
227
227
  readonly createdAt: string;
228
228
  }[];
229
229
  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>;
230
+ }, 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
231
  readonly items: (input: {
232
232
  readonly id: string;
233
233
  readonly limit?: number | null | undefined;
234
- readonly cursor?: string | null | undefined;
235
- readonly after?: string | null | undefined;
236
- readonly before?: string | null | undefined;
234
+ readonly cursor?: string | undefined;
235
+ readonly after?: string | undefined;
236
+ readonly before?: string | undefined;
237
237
  }) => import("effect/Stream").Stream<{
238
238
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
239
239
  readonly campaign?: {
240
240
  readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
241
241
  readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
242
242
  } | null;
243
- readonly channel: "email";
243
+ readonly channel: "email" | "sms" | "whatsapp";
244
244
  readonly direction: "inbound" | "outbound";
245
245
  readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
246
246
  readonly from: string | null;
@@ -248,7 +248,7 @@ export declare const listMessages: ((input: {
248
248
  readonly subject: string | null;
249
249
  readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
250
250
  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>;
251
+ }, 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
252
  };
253
253
  export declare const update: (input: {
254
254
  readonly id: string;
@@ -256,7 +256,7 @@ export declare const update: (input: {
256
256
  readonly description?: string | null | undefined;
257
257
  readonly externalId?: string | null | undefined;
258
258
  readonly parentConversationId?: string | null | undefined;
259
- readonly primaryChannel?: "email" | null | undefined;
259
+ readonly primaryChannel?: "email" | "sms" | "whatsapp" | null | undefined;
260
260
  readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
261
261
  readonly statusReason?: string | null | undefined;
262
262
  readonly priority?: number | null | undefined;
@@ -400,11 +400,11 @@ export declare const removeCategories: (input: {
400
400
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveCategories">;
401
401
  export declare const addChannels: (input: {
402
402
  readonly id: string;
403
- readonly channels: readonly "email"[];
403
+ readonly channels: readonly ("email" | "sms" | "whatsapp")[];
404
404
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddChannels">;
405
405
  export declare const removeChannels: (input: {
406
406
  readonly id: string;
407
- readonly channels: readonly "email"[];
407
+ readonly channels: readonly ("email" | "sms" | "whatsapp")[];
408
408
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveChannels">;
409
409
  export declare const addContacts: (input: {
410
410
  readonly id: string;