samva 0.43.3 → 0.45.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 (103) hide show
  1. package/AGENTS.md +3 -0
  2. package/README.md +4 -0
  3. package/dist/client/sdk.gen.d.ts +308 -2
  4. package/dist/client/sdk.gen.js +937 -2
  5. package/dist/client/types.gen.d.ts +2294 -54
  6. package/dist/effect/agents.d.ts +86 -86
  7. package/dist/effect/agents.js +2 -2
  8. package/dist/effect/api-keys.d.ts +36 -36
  9. package/dist/effect/api-keys.js +2 -2
  10. package/dist/effect/attachments.d.ts +3 -3
  11. package/dist/effect/attachments.js +1 -1
  12. package/dist/effect/campaigns.d.ts +250 -250
  13. package/dist/effect/campaigns.js +3 -3
  14. package/dist/effect/categories.d.ts +23 -5
  15. package/dist/effect/categories.js +11 -20
  16. package/dist/effect/contact-groups.d.ts +44 -44
  17. package/dist/effect/contact-groups.js +3 -3
  18. package/dist/effect/contacts.d.ts +3 -3
  19. package/dist/effect/contacts.js +1 -1
  20. package/dist/effect/conversations.d.ts +53 -53
  21. package/dist/effect/conversations.js +1 -1
  22. package/dist/effect/email.d.ts +99 -97
  23. package/dist/effect/email.js +21 -21
  24. package/dist/effect/errors.d.ts +1 -1
  25. package/dist/effect/errors.js +2 -2
  26. package/dist/effect/extension-installations.d.ts +6 -6
  27. package/dist/effect/extension-installations.js +1 -1
  28. package/dist/effect/generated/campaigns.js +2 -2
  29. package/dist/effect/generated/email.d.ts +7 -0
  30. package/dist/effect/generated/email.js +8 -9
  31. package/dist/effect/generated/index.d.ts +9 -1
  32. package/dist/effect/generated/journeys.d.ts +1 -3
  33. package/dist/effect/generated/journeys.js +2 -6
  34. package/dist/effect/generated/mailboxes.d.ts +14 -14
  35. package/dist/effect/generated/mailboxes.js +2 -0
  36. package/dist/effect/generated/messages.d.ts +1 -5
  37. package/dist/effect/generated/messages.js +2 -10
  38. package/dist/effect/generated/newsletter-issues.js +29 -29
  39. package/dist/effect/generated/organizations.js +2 -2
  40. package/dist/effect/generated/scheduled-messages.js +3 -3
  41. package/dist/effect/generated/shared.d.ts +112 -2
  42. package/dist/effect/generated/shared.js +66 -25
  43. package/dist/effect/generated/subscriptions.js +4 -4
  44. package/dist/effect/generated/template-registrations.d.ts +651 -0
  45. package/dist/effect/generated/template-registrations.js +138 -0
  46. package/dist/effect/generated/templates.d.ts +789 -6
  47. package/dist/effect/generated/templates.js +156 -54
  48. package/dist/effect/generated/whats-app-flows.d.ts +1838 -0
  49. package/dist/effect/generated/whats-app-flows.js +338 -0
  50. package/dist/effect/generated/whats-app-setup-links.d.ts +705 -0
  51. package/dist/effect/generated/whats-app-setup-links.js +150 -0
  52. package/dist/effect/generated/whats-app.d.ts +2089 -0
  53. package/dist/effect/generated/whats-app.js +633 -0
  54. package/dist/effect/generated-metadata.d.ts +257 -0
  55. package/dist/effect/generated-metadata.js +223 -48
  56. package/dist/effect/index.d.ts +4 -0
  57. package/dist/effect/index.js +6 -2
  58. package/dist/effect/mailboxes.d.ts +301 -301
  59. package/dist/effect/mailboxes.js +3 -3
  60. package/dist/effect/media.d.ts +4 -4
  61. package/dist/effect/media.js +2 -2
  62. package/dist/effect/messages.d.ts +17 -17
  63. package/dist/effect/messages.js +4 -4
  64. package/dist/effect/namespaces.d.ts +5 -5
  65. package/dist/effect/namespaces.js +1 -1
  66. package/dist/effect/newsletter-issues.d.ts +8 -8
  67. package/dist/effect/newsletter-issues.js +2 -2
  68. package/dist/effect/newsletters.d.ts +3 -3
  69. package/dist/effect/newsletters.js +1 -1
  70. package/dist/effect/organizations.d.ts +10 -10
  71. package/dist/effect/organizations.js +1 -1
  72. package/dist/effect/runtime.d.ts +2 -0
  73. package/dist/effect/runtime.js +2 -1
  74. package/dist/effect/scheduled-messages.d.ts +839 -839
  75. package/dist/effect/scheduled-messages.js +1 -1
  76. package/dist/effect/template-registrations.d.ts +12 -0
  77. package/dist/effect/template-registrations.js +16 -0
  78. package/dist/effect/templates.d.ts +66 -56
  79. package/dist/effect/templates.js +16 -12
  80. package/dist/effect/topic-forms.d.ts +4 -4
  81. package/dist/effect/topic-forms.js +1 -1
  82. package/dist/effect/topics.d.ts +11 -11
  83. package/dist/effect/topics.js +2 -2
  84. package/dist/effect/webhooks.d.ts +18 -18
  85. package/dist/effect/webhooks.js +3 -3
  86. package/dist/effect/whatsapp-flows.d.ts +34 -0
  87. package/dist/effect/whatsapp-flows.js +30 -0
  88. package/dist/effect/whatsapp-setup-links.d.ts +66 -0
  89. package/dist/effect/whatsapp-setup-links.js +18 -0
  90. package/dist/effect/whatsapp.d.ts +51 -0
  91. package/dist/effect/whatsapp.js +34 -0
  92. package/dist/index.js +2 -2
  93. package/dist/mailbox/types.d.ts +2 -1
  94. package/dist/package.js +1 -1
  95. package/dist/promises/client.d.ts +9 -1
  96. package/dist/promises/client.js +11 -3
  97. package/dist/promises/errors.gen.d.ts +38 -2
  98. package/dist/promises/errors.gen.js +160 -3
  99. package/dist/promises/index.js +2 -2
  100. package/dist/promises/types.gen.d.ts +1 -1
  101. package/dist/service-map.d.ts +923 -734
  102. package/dist/service-map.js +288 -233
  103. package/package.json +27 -11
@@ -133,43 +133,15 @@ export declare const update: (input: {
133
133
  export declare const remove: (input: {
134
134
  readonly id: string;
135
135
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsRemove">;
136
- export declare const preview: (input: {
137
- readonly criteria: {
138
- readonly tags?: readonly string[] | null | undefined;
139
- readonly channels?: readonly string[] | null | undefined;
140
- readonly match?: "all" | "any" | null | undefined;
141
- readonly conditions?: readonly {
142
- readonly field: string;
143
- readonly operator: string;
144
- readonly value: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
145
- readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
146
- } | null)[] | {
147
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
148
- } | null)[] | {
149
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
150
- } | null)[] | {
151
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
152
- } | null)[] | {
153
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
154
- } | null)[] | {
155
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
156
- } | null)[] | {
157
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
158
- } | null)[] | {
159
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
160
- } | null)[] | {
161
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
162
- } | null)[] | {
163
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
164
- } | null)[] | {
165
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
166
- } | null;
167
- }[] | null | undefined;
168
- };
169
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsPreview">;
170
- export declare const evaluateDynamic: (input: {
136
+ export declare const addMembers: (input: {
171
137
  readonly id: string;
172
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsEvaluateDynamic">;
138
+ readonly contactIds: readonly string[];
139
+ readonly role?: "admin" | "member" | "moderator" | null | undefined;
140
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsAddMembers">;
141
+ export declare const removeMembers: (input: {
142
+ readonly id: string;
143
+ readonly contactIds: readonly string[];
144
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsRemoveMembers">;
173
145
  export declare const getMembers: ((input: {
174
146
  readonly id: string;
175
147
  readonly limit?: number | null | undefined;
@@ -255,12 +227,40 @@ export declare const getMembers: ((input: {
255
227
  } | null;
256
228
  }, 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
229
  };
258
- export declare const addMembers: (input: {
259
- readonly id: string;
260
- readonly contactIds: readonly string[];
261
- readonly role?: "admin" | "member" | "moderator" | null | undefined;
262
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsAddMembers">;
263
- export declare const removeMembers: (input: {
230
+ export declare const evaluateDynamic: (input: {
264
231
  readonly id: string;
265
- readonly contactIds: readonly string[];
266
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsRemoveMembers">;
232
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsEvaluateDynamic">;
233
+ export declare const preview: (input: {
234
+ readonly criteria: {
235
+ readonly tags?: readonly string[] | null | undefined;
236
+ readonly channels?: readonly string[] | null | undefined;
237
+ readonly match?: "all" | "any" | null | undefined;
238
+ readonly conditions?: readonly {
239
+ readonly field: string;
240
+ readonly operator: string;
241
+ readonly value: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
242
+ readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
243
+ } | null)[] | {
244
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
245
+ } | null)[] | {
246
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
247
+ } | null)[] | {
248
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
249
+ } | null)[] | {
250
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
251
+ } | null)[] | {
252
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
253
+ } | null)[] | {
254
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
255
+ } | null)[] | {
256
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
257
+ } | null)[] | {
258
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
259
+ } | null)[] | {
260
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
261
+ } | null)[] | {
262
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
263
+ } | null;
264
+ }[] | null | undefined;
265
+ };
266
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsPreview">;
@@ -20,11 +20,11 @@ const create = /* @__PURE__ */ make("contactGroupsCreate");
20
20
  const getById = /* @__PURE__ */ make("contactGroupsGetById");
21
21
  const update = /* @__PURE__ */ make("contactGroupsUpdate");
22
22
  const remove = /* @__PURE__ */ make("contactGroupsRemove");
23
- const preview = /* @__PURE__ */ make("contactGroupsPreview");
24
- const evaluateDynamic = /* @__PURE__ */ make("contactGroupsEvaluateDynamic");
25
- const getMembers = /* @__PURE__ */ make("contactGroupsGetMembers");
26
23
  const addMembers = /* @__PURE__ */ make("contactGroupsAddMembers");
27
24
  const removeMembers = /* @__PURE__ */ make("contactGroupsRemoveMembers");
25
+ const getMembers = /* @__PURE__ */ make("contactGroupsGetMembers");
26
+ const evaluateDynamic = /* @__PURE__ */ make("contactGroupsEvaluateDynamic");
27
+ const preview = /* @__PURE__ */ make("contactGroupsPreview");
28
28
  export { addMembers, contact_groups_exports, create, evaluateDynamic, getById, getMembers, list, preview, remove, removeMembers, update };
29
29
 
30
30
  //# sourceMappingURL=contact-groups.js.map
@@ -197,9 +197,6 @@ export declare const findOrCreate: (input: {
197
197
  export declare const get: (input: {
198
198
  readonly id: string;
199
199
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGet">;
200
- export declare const remove: (input: {
201
- readonly id: string;
202
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsRemove">;
203
200
  export declare const update: (input: {
204
201
  readonly id: string;
205
202
  readonly name?: string | null | undefined;
@@ -265,6 +262,9 @@ export declare const update: (input: {
265
262
  } | null | undefined;
266
263
  } | null | undefined;
267
264
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsUpdate">;
265
+ export declare const remove: (input: {
266
+ readonly id: string;
267
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsRemove">;
268
268
  export declare const addIdentity: (input: {
269
269
  readonly id: string;
270
270
  readonly type: "email" | "phone";
@@ -34,8 +34,8 @@ const create = /* @__PURE__ */ make("contactsCreate");
34
34
  const find = /* @__PURE__ */ make("contactsFind");
35
35
  const findOrCreate = /* @__PURE__ */ make("contactsFindOrCreate");
36
36
  const get = /* @__PURE__ */ make("contactsGet");
37
- const remove = /* @__PURE__ */ make("contactsRemove");
38
37
  const update = /* @__PURE__ */ make("contactsUpdate");
38
+ const remove = /* @__PURE__ */ make("contactsRemove");
39
39
  const addIdentity = /* @__PURE__ */ make("contactsAddIdentity");
40
40
  const removeIdentity = /* @__PURE__ */ make("contactsRemoveIdentity");
41
41
  const setConsent = /* @__PURE__ */ make("contactsSetConsent");
@@ -203,59 +203,6 @@ export declare const create: (input: {
203
203
  export declare const getById: (input: {
204
204
  readonly id: string;
205
205
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsGetById">;
206
- export declare const listMessages: ((input: {
207
- readonly id: string;
208
- readonly limit?: number | null | undefined;
209
- readonly cursor?: string | undefined;
210
- readonly after?: string | undefined;
211
- readonly before?: string | undefined;
212
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsListMessages">) & {
213
- readonly pages: (input: {
214
- readonly id: string;
215
- readonly limit?: number | null | undefined;
216
- readonly cursor?: string | undefined;
217
- readonly after?: string | undefined;
218
- readonly before?: string | undefined;
219
- }) => import("effect/Stream").Stream<{
220
- readonly items: readonly {
221
- readonly id: string & import("effect/Brand").Brand<"MessageId">;
222
- readonly campaign?: {
223
- readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
224
- readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
225
- } | null;
226
- readonly channel: "email" | "sms" | "whatsapp";
227
- readonly direction: "inbound" | "outbound";
228
- readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
229
- readonly from: string | null;
230
- readonly to: readonly string[];
231
- readonly subject: string | null;
232
- readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
233
- readonly createdAt: string;
234
- }[];
235
- readonly nextCursor: string | null;
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>;
237
- readonly items: (input: {
238
- readonly id: string;
239
- readonly limit?: number | null | undefined;
240
- readonly cursor?: string | undefined;
241
- readonly after?: string | undefined;
242
- readonly before?: string | undefined;
243
- }) => import("effect/Stream").Stream<{
244
- readonly id: string & import("effect/Brand").Brand<"MessageId">;
245
- readonly campaign?: {
246
- readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
247
- readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
248
- } | null;
249
- readonly channel: "email" | "sms" | "whatsapp";
250
- readonly direction: "inbound" | "outbound";
251
- readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
252
- readonly from: string | null;
253
- readonly to: readonly string[];
254
- readonly subject: string | null;
255
- readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
256
- readonly createdAt: string;
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>;
258
- };
259
206
  export declare const update: (input: {
260
207
  readonly id: string;
261
208
  readonly title?: string | null | undefined;
@@ -388,6 +335,59 @@ export declare const update: (input: {
388
335
  readonly isInternal?: boolean | null | undefined;
389
336
  readonly isPrivate?: boolean | null | undefined;
390
337
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsUpdate">;
338
+ export declare const listMessages: ((input: {
339
+ readonly id: string;
340
+ readonly limit?: number | null | undefined;
341
+ readonly cursor?: string | undefined;
342
+ readonly after?: string | undefined;
343
+ readonly before?: string | undefined;
344
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsListMessages">) & {
345
+ readonly pages: (input: {
346
+ readonly id: string;
347
+ readonly limit?: number | null | undefined;
348
+ readonly cursor?: string | undefined;
349
+ readonly after?: string | undefined;
350
+ readonly before?: string | undefined;
351
+ }) => import("effect/Stream").Stream<{
352
+ readonly items: readonly {
353
+ readonly id: string & import("effect/Brand").Brand<"MessageId">;
354
+ readonly campaign?: {
355
+ readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
356
+ readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
357
+ } | null;
358
+ readonly channel: "email" | "sms" | "whatsapp";
359
+ readonly direction: "inbound" | "outbound";
360
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
361
+ readonly from: string | null;
362
+ readonly to: readonly string[];
363
+ readonly subject: string | null;
364
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
365
+ readonly createdAt: string;
366
+ }[];
367
+ readonly nextCursor: string | null;
368
+ }, 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>;
369
+ readonly items: (input: {
370
+ readonly id: string;
371
+ readonly limit?: number | null | undefined;
372
+ readonly cursor?: string | undefined;
373
+ readonly after?: string | undefined;
374
+ readonly before?: string | undefined;
375
+ }) => import("effect/Stream").Stream<{
376
+ readonly id: string & import("effect/Brand").Brand<"MessageId">;
377
+ readonly campaign?: {
378
+ readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
379
+ readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
380
+ } | null;
381
+ readonly channel: "email" | "sms" | "whatsapp";
382
+ readonly direction: "inbound" | "outbound";
383
+ readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
384
+ readonly from: string | null;
385
+ readonly to: readonly string[];
386
+ readonly subject: string | null;
387
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
388
+ readonly createdAt: string;
389
+ }, 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>;
390
+ };
391
391
  export declare const addTags: (input: {
392
392
  readonly id: string;
393
393
  readonly tags: readonly string[];
@@ -21,8 +21,8 @@ const make = /* @__PURE__ */ forGroup(ConversationsGroup);
21
21
  const list = /* @__PURE__ */ make("conversationsList");
22
22
  const create = /* @__PURE__ */ make("conversationsCreate");
23
23
  const getById = /* @__PURE__ */ make("conversationsGetById");
24
- const listMessages = /* @__PURE__ */ make("conversationsListMessages");
25
24
  const update = /* @__PURE__ */ make("conversationsUpdate");
25
+ const listMessages = /* @__PURE__ */ make("conversationsListMessages");
26
26
  const addTags = /* @__PURE__ */ make("conversationsAddTags");
27
27
  const removeTags = /* @__PURE__ */ make("conversationsRemoveTags");
28
28
  const addCategories = /* @__PURE__ */ make("conversationsAddCategories");
@@ -14,6 +14,15 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
14
14
  }[];
15
15
  readonly createdAt: string;
16
16
  }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").DeliveryUnavailableError | import("./errors").ExternalServiceError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").FromAddressRequiredError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("..").MediaUploadError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
17
+ export declare const getOnboardingReview: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailGetOnboardingReview">;
18
+ export declare const reapplyOnboardingReview: (input: {
19
+ readonly expectedGeneration: number;
20
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailReapplyOnboardingReview">;
21
+ export declare const respondToOnboardingInformationRequest: (input: {
22
+ readonly expectedGeneration: number;
23
+ readonly responseText: string;
24
+ readonly evidenceMediaIds: readonly string[];
25
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailRespondToOnboardingInformationRequest">;
17
26
  export declare const getTrackingDefaults: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailGetTrackingDefaults">;
18
27
  export declare const updateTrackingDefaults: (input?: {
19
28
  readonly opens?: boolean | undefined;
@@ -26,6 +35,15 @@ export declare const updateRecipientTrackingPreference: (input: {
26
35
  readonly email: string;
27
36
  readonly optedOut: boolean;
28
37
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailUpdateRecipientTrackingPreference">;
38
+ export declare const addDomain: (input: {
39
+ readonly domain: string;
40
+ readonly connection?: {
41
+ readonly connectionId: string;
42
+ readonly zone: string;
43
+ } | null | undefined;
44
+ readonly namespaceId?: string | null | undefined;
45
+ readonly shared?: boolean | null | undefined;
46
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailAddDomain">;
29
47
  export declare const listDomains: ((input?: {
30
48
  readonly limit?: number | null | undefined;
31
49
  readonly cursor?: string | undefined;
@@ -89,21 +107,12 @@ export declare const listDomains: ((input?: {
89
107
  readonly updatedAt: string;
90
108
  }, 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>;
91
109
  };
92
- export declare const addDomain: (input: {
93
- readonly domain: string;
94
- readonly connection?: {
95
- readonly connectionId: string;
96
- readonly zone: string;
97
- } | null | undefined;
98
- readonly namespaceId?: string | null | undefined;
99
- readonly shared?: boolean | null | undefined;
100
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailAddDomain">;
101
- export declare const rotateDomainDkim: (input: {
102
- readonly id: string;
103
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailRotateDomainDkim">;
104
110
  export declare const getDomainVerification: (input: {
105
111
  readonly id: string;
106
112
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailGetDomainVerification">;
113
+ export declare const rotateDomainDkim: (input: {
114
+ readonly id: string;
115
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailRotateDomainDkim">;
107
116
  export declare const advanceDomainVerification: (input: {
108
117
  readonly id: string;
109
118
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailAdvanceDomainVerification">;
@@ -113,19 +122,6 @@ export declare const getDomainById: (input: {
113
122
  export declare const removeDomain: (input: {
114
123
  readonly id: string;
115
124
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailRemoveDomain">;
116
- export declare const setDefaultDomain: (input: {
117
- readonly id: string;
118
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailSetDefaultDomain">;
119
- export declare const updateDomainConfig: (input: {
120
- readonly id: string;
121
- readonly shared?: boolean | null | undefined;
122
- readonly openTracking?: boolean | null | undefined;
123
- readonly clickTracking?: boolean | null | undefined;
124
- readonly replyTo?: readonly string[] | null | undefined;
125
- readonly topicId?: string | null | undefined;
126
- readonly footerEnabled?: boolean | null | undefined;
127
- readonly brandSlug?: string | null | undefined;
128
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailUpdateDomainConfig">;
129
125
  export declare const detectRegistrar: (input: {
130
126
  readonly id: string;
131
127
  readonly domain: string;
@@ -154,6 +150,19 @@ export declare const enableReceiving: (input: {
154
150
  export declare const getReceivingStatus: (input: {
155
151
  readonly id: string;
156
152
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailGetReceivingStatus">;
153
+ export declare const setDefaultDomain: (input: {
154
+ readonly id: string;
155
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailSetDefaultDomain">;
156
+ export declare const updateDomainConfig: (input: {
157
+ readonly id: string;
158
+ readonly shared?: boolean | null | undefined;
159
+ readonly openTracking?: boolean | null | undefined;
160
+ readonly clickTracking?: boolean | null | undefined;
161
+ readonly replyTo?: readonly string[] | null | undefined;
162
+ readonly topicId?: string | null | undefined;
163
+ readonly footerEnabled?: boolean | null | undefined;
164
+ readonly brandSlug?: string | null | undefined;
165
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailUpdateDomainConfig">;
157
166
  export declare const enableCustomTracking: (input: {
158
167
  readonly id: string;
159
168
  readonly label?: string | null | undefined;
@@ -162,6 +171,9 @@ export declare const enableCustomTracking: (input: {
162
171
  export declare const getCustomTracking: (input: {
163
172
  readonly id: string;
164
173
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailGetCustomTracking">;
174
+ export declare const disableCustomTracking: (input: {
175
+ readonly id: string;
176
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailDisableCustomTracking">;
165
177
  export declare const recheckCustomTracking: (input: {
166
178
  readonly id: string;
167
179
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailRecheckCustomTracking">;
@@ -177,50 +189,14 @@ export declare const completeCustomTrackingDomainConnect: (input: {
177
189
  readonly error?: string | null | undefined;
178
190
  readonly errorDescription?: string | null | undefined;
179
191
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailCompleteCustomTrackingDomainConnect">;
180
- export declare const disableCustomTracking: (input: {
181
- readonly id: string;
182
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailDisableCustomTracking">;
183
- export declare const getDomainWarming: (input: {
184
- readonly id: string;
185
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailGetDomainWarming">;
186
- export declare const createDomainWarmingPlan: (input: {
187
- readonly id: string;
188
- readonly identity: "migrating" | "new" | "returning";
189
- readonly initialDailyRecipients: number;
190
- readonly dailyGrowthPercent: number;
191
- readonly targetDailyRecipients: number;
192
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailCreateDomainWarmingPlan">;
193
- export declare const updateDomainWarmingPolicy: (input: {
194
- readonly id: string;
195
- readonly dailyGrowthPercent: number;
196
- readonly targetDailyRecipients: number;
197
- readonly note?: string | null | undefined;
198
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailUpdateDomainWarmingPolicy">;
199
- export declare const cancelDomainWarmingBatch: (input: {
200
- readonly id: string;
201
- readonly batchId: string;
202
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailCancelDomainWarmingBatch">;
203
- export declare const pauseDomainWarming: (input: {
204
- readonly id: string;
205
- readonly note?: string | null | undefined;
206
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailPauseDomainWarming">;
207
- export declare const resumeDomainWarming: (input: {
208
- readonly id: string;
209
- readonly note?: string | null | undefined;
210
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailResumeDomainWarming">;
211
- export declare const completeDomainWarming: (input: {
212
- readonly id: string;
213
- readonly note?: string | null | undefined;
214
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailCompleteDomainWarming">;
215
- export declare const getOnboardingReview: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailGetOnboardingReview">;
216
- export declare const reapplyOnboardingReview: (input: {
217
- readonly expectedGeneration: number;
218
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailReapplyOnboardingReview">;
219
- export declare const respondToOnboardingInformationRequest: (input: {
220
- readonly expectedGeneration: number;
221
- readonly responseText: string;
222
- readonly evidenceMediaIds: readonly string[];
223
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailRespondToOnboardingInformationRequest">;
192
+ export declare const addSender: (input: EmailAddSenderInput, options?: SendOptions | undefined) => import("effect/Effect").Effect<{
193
+ readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
194
+ readonly email: string;
195
+ readonly status: "failed" | "pending" | "verified";
196
+ readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
197
+ readonly providerFailureCode: string | null;
198
+ readonly createdAt: string;
199
+ }, import("./errors").ConflictError | import("./errors").ExternalServiceError | 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>;
224
200
  export declare const listSenders: ((input?: {
225
201
  readonly limit?: number | null | undefined;
226
202
  readonly cursor?: string | undefined;
@@ -247,6 +223,7 @@ export declare const listSenders: ((input?: {
247
223
  readonly verificationStatus: "failed" | "pending" | "verified";
248
224
  readonly verifiedAt: string | null;
249
225
  readonly verificationToken: string | null;
226
+ readonly sendable: boolean;
250
227
  readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
251
228
  readonly providerFailureCode: string | null;
252
229
  readonly isDefault: boolean;
@@ -281,6 +258,7 @@ export declare const listSenders: ((input?: {
281
258
  readonly verificationStatus: "failed" | "pending" | "verified";
282
259
  readonly verifiedAt: string | null;
283
260
  readonly verificationToken: string | null;
261
+ readonly sendable: boolean;
284
262
  readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
285
263
  readonly providerFailureCode: string | null;
286
264
  readonly isDefault: boolean;
@@ -297,20 +275,12 @@ export declare const listSenders: ((input?: {
297
275
  readonly updatedAt: string;
298
276
  }, 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>;
299
277
  };
300
- export declare const getSender: (input: {
301
- readonly id: string;
302
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailGetSender">;
303
- export declare const addSender: (input: EmailAddSenderInput, options?: SendOptions | undefined) => import("effect/Effect").Effect<{
304
- readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
305
- readonly email: string;
306
- readonly status: "failed" | "pending" | "verified";
307
- readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
308
- readonly providerFailureCode: string | null;
309
- readonly createdAt: string;
310
- }, import("./errors").ConflictError | import("./errors").ExternalServiceError | 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>;
311
278
  export declare const checkSenderVerification: (input: {
312
279
  readonly id: string;
313
280
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailCheckSenderVerification">;
281
+ export declare const getSender: (input: {
282
+ readonly id: string;
283
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailGetSender">;
314
284
  export declare const removeSender: (input: {
315
285
  readonly id: string;
316
286
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailRemoveSender">;
@@ -329,14 +299,14 @@ export declare const enableCatchAll: (input: {
329
299
  export declare const disableCatchAll: (input: {
330
300
  readonly id: string;
331
301
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailDisableCatchAll">;
332
- export declare const getCatchAllConfig: (input: {
333
- readonly domainId: string;
334
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailGetCatchAllConfig">;
335
302
  export declare const updateCatchAllConfig: (input: {
336
303
  readonly domainId: string;
337
304
  readonly endpointId?: string | null | undefined;
338
305
  readonly unknownRecipientMailboxId?: string | null | undefined;
339
306
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailUpdateCatchAllConfig">;
307
+ export declare const getCatchAllConfig: (input: {
308
+ readonly domainId: string;
309
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailGetCatchAllConfig">;
340
310
  export declare const getCatchAllStats: (input: {
341
311
  readonly domainId: string;
342
312
  readonly after?: string | undefined;
@@ -400,6 +370,13 @@ export declare const countSuppressions: (input?: {
400
370
  export declare const removeSuppression: (input: {
401
371
  readonly id: string;
402
372
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailRemoveSuppression">;
373
+ export declare const addBlock: (input: {
374
+ readonly blockType: "domain" | "email";
375
+ readonly blockValue: string;
376
+ readonly reason: string;
377
+ readonly notes?: string | null | undefined;
378
+ readonly expiresAt?: string | null | undefined;
379
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailAddBlock">;
403
380
  export declare const listBlocks: ((input?: {
404
381
  readonly blockType?: "domain" | "email" | undefined;
405
382
  readonly isActive?: boolean | null | undefined;
@@ -444,13 +421,6 @@ export declare const listBlocks: ((input?: {
444
421
  readonly createdAt: string;
445
422
  }, 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>;
446
423
  };
447
- export declare const addBlock: (input: {
448
- readonly blockType: "domain" | "email";
449
- readonly blockValue: string;
450
- readonly reason: string;
451
- readonly notes?: string | null | undefined;
452
- readonly expiresAt?: string | null | undefined;
453
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailAddBlock">;
454
424
  export declare const removeBlock: (input: {
455
425
  readonly id: string;
456
426
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailRemoveBlock">;
@@ -516,10 +486,6 @@ export declare const getBlockLogs: ((input?: {
516
486
  export declare const checkBlocked: (input: {
517
487
  readonly emailAddress: string;
518
488
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailCheckBlocked">;
519
- export declare const listForwardingRules: (input?: {
520
- readonly domainId?: string | undefined;
521
- readonly isActive?: boolean | null | undefined;
522
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailListForwardingRules">;
523
489
  export declare const createForwardingRule: (input: {
524
490
  readonly name: string;
525
491
  readonly description?: string | null | undefined;
@@ -563,9 +529,10 @@ export declare const createForwardingRule: (input: {
563
529
  } | null | undefined;
564
530
  } | null | undefined;
565
531
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailCreateForwardingRule">;
566
- export declare const deleteForwardingRule: (input: {
567
- readonly id: string;
568
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailDeleteForwardingRule">;
532
+ export declare const listForwardingRules: (input?: {
533
+ readonly domainId?: string | undefined;
534
+ readonly isActive?: boolean | null | undefined;
535
+ } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailListForwardingRules">;
569
536
  export declare const updateForwardingRule: (input: {
570
537
  readonly id: string;
571
538
  readonly name?: string | null | undefined;
@@ -610,6 +577,9 @@ export declare const updateForwardingRule: (input: {
610
577
  } | null | undefined;
611
578
  } | null | undefined;
612
579
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailUpdateForwardingRule">;
580
+ export declare const deleteForwardingRule: (input: {
581
+ readonly id: string;
582
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailDeleteForwardingRule">;
613
583
  export declare const getForwardingLog: ((input?: {
614
584
  readonly forwardingRuleId?: string | undefined;
615
585
  readonly status?: "failed" | "forwarded" | "pending" | undefined;
@@ -662,3 +632,35 @@ export declare const getForwardingLog: ((input?: {
662
632
  readonly createdAt: string;
663
633
  }, 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>;
664
634
  };
635
+ export declare const getDomainWarming: (input: {
636
+ readonly id: string;
637
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailGetDomainWarming">;
638
+ export declare const createDomainWarmingPlan: (input: {
639
+ readonly id: string;
640
+ readonly identity: "migrating" | "new" | "returning";
641
+ readonly initialDailyRecipients: number;
642
+ readonly dailyGrowthPercent: number;
643
+ readonly targetDailyRecipients: number;
644
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailCreateDomainWarmingPlan">;
645
+ export declare const updateDomainWarmingPolicy: (input: {
646
+ readonly id: string;
647
+ readonly dailyGrowthPercent: number;
648
+ readonly targetDailyRecipients: number;
649
+ readonly note?: string | null | undefined;
650
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailUpdateDomainWarmingPolicy">;
651
+ export declare const cancelDomainWarmingBatch: (input: {
652
+ readonly id: string;
653
+ readonly batchId: string;
654
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailCancelDomainWarmingBatch">;
655
+ export declare const pauseDomainWarming: (input: {
656
+ readonly id: string;
657
+ readonly note?: string | null | undefined;
658
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailPauseDomainWarming">;
659
+ export declare const resumeDomainWarming: (input: {
660
+ readonly id: string;
661
+ readonly note?: string | null | undefined;
662
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailResumeDomainWarming">;
663
+ export declare const completeDomainWarming: (input: {
664
+ readonly id: string;
665
+ readonly note?: string | null | undefined;
666
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailCompleteDomainWarming">;