samva 0.48.0 → 0.49.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 (85) hide show
  1. package/dist/client/sdk.gen.d.ts +224 -29
  2. package/dist/client/sdk.gen.js +541 -48
  3. package/dist/client/types.gen.d.ts +1291 -153
  4. package/dist/effect/accounts.d.ts +6 -6
  5. package/dist/effect/agents.d.ts +13 -13
  6. package/dist/effect/analytics.d.ts +6 -6
  7. package/dist/effect/api-keys.d.ts +11 -11
  8. package/dist/effect/approval-requests.d.ts +4 -4
  9. package/dist/effect/attachments.d.ts +4 -4
  10. package/dist/effect/brands.d.ts +6 -6
  11. package/dist/effect/campaigns.d.ts +15 -15
  12. package/dist/effect/contact-groups.d.ts +10 -10
  13. package/dist/effect/contacts.d.ts +25 -25
  14. package/dist/effect/conversations.d.ts +13 -13
  15. package/dist/effect/custom-fields.d.ts +4 -4
  16. package/dist/effect/descriptors/integrations-catalog.d.ts +134 -0
  17. package/dist/effect/descriptors/integrations-catalog.js +122 -0
  18. package/dist/effect/descriptors/mailboxes.d.ts +32 -12
  19. package/dist/effect/descriptors/mailboxes.js +32 -12
  20. package/dist/effect/email.d.ts +61 -61
  21. package/dist/effect/events.d.ts +2 -2
  22. package/dist/effect/feedback.d.ts +1 -1
  23. package/dist/effect/generated/accounts.d.ts +1 -3
  24. package/dist/effect/generated/accounts.js +2 -7
  25. package/dist/effect/generated/api-keys.d.ts +15 -15
  26. package/dist/effect/generated/attachments.js +1 -1
  27. package/dist/effect/generated/integrations-catalog.d.ts +2702 -1
  28. package/dist/effect/generated/integrations-catalog.js +578 -3
  29. package/dist/effect/generated/journeys.d.ts +9 -11
  30. package/dist/effect/generated/journeys.js +6 -12
  31. package/dist/effect/generated/mailboxes.d.ts +752 -463
  32. package/dist/effect/generated/mailboxes.js +163 -98
  33. package/dist/effect/generated/messages.d.ts +109 -4
  34. package/dist/effect/generated/messages.js +41 -8
  35. package/dist/effect/generated/shared.d.ts +203 -21
  36. package/dist/effect/generated/shared.js +58 -13
  37. package/dist/effect/generated/template-registrations.d.ts +35 -4
  38. package/dist/effect/generated/template-registrations.js +7 -4
  39. package/dist/effect/generated/templates.d.ts +1 -4
  40. package/dist/effect/generated/templates.js +2 -6
  41. package/dist/effect/generated/webhooks.d.ts +19 -19
  42. package/dist/effect/generated/webhooks.js +8 -8
  43. package/dist/effect/generated/whoami.d.ts +4 -4
  44. package/dist/effect/generated-metadata.d.ts +114 -18
  45. package/dist/effect/generated-metadata.js +362 -340
  46. package/dist/effect/integrations-catalog.d.ts +228 -3
  47. package/dist/effect/integrations-catalog.js +29 -1
  48. package/dist/effect/integrations.d.ts +7 -7
  49. package/dist/effect/internal/client.d.ts +7 -3
  50. package/dist/effect/internal/operation.d.ts +10 -6
  51. package/dist/effect/internal/operation.js +3 -3
  52. package/dist/effect/journeys.d.ts +14 -14
  53. package/dist/effect/mailboxes.d.ts +117 -91
  54. package/dist/effect/mailboxes.js +11 -7
  55. package/dist/effect/media.d.ts +5 -5
  56. package/dist/effect/messages.d.ts +9 -9
  57. package/dist/effect/namespaces.d.ts +11 -11
  58. package/dist/effect/newsletter-domains.d.ts +4 -4
  59. package/dist/effect/newsletter-issues.d.ts +11 -11
  60. package/dist/effect/newsletters.d.ts +5 -5
  61. package/dist/effect/operations.d.ts +3 -3
  62. package/dist/effect/organizations.d.ts +12 -12
  63. package/dist/effect/policies.d.ts +3 -3
  64. package/dist/effect/retry.js +1 -1
  65. package/dist/effect/scheduled-messages.d.ts +5 -5
  66. package/dist/effect/subscriptions.d.ts +1 -1
  67. package/dist/effect/template-registrations.d.ts +9 -3
  68. package/dist/effect/template-share-links.d.ts +5 -5
  69. package/dist/effect/templates.d.ts +37 -37
  70. package/dist/effect/topic-forms.d.ts +5 -5
  71. package/dist/effect/topics.d.ts +9 -9
  72. package/dist/effect/webhooks.d.ts +15 -15
  73. package/dist/effect/whatsapp-flows.d.ts +10 -10
  74. package/dist/effect/whatsapp-setup-links.d.ts +4 -4
  75. package/dist/effect/whatsapp.d.ts +12 -12
  76. package/dist/effect/whoami.d.ts +1 -1
  77. package/dist/inline-attachments.d.ts +0 -5
  78. package/dist/mailbox-events.d.ts +1 -5
  79. package/dist/mailbox-events.js +2 -2
  80. package/dist/package.js +1 -1
  81. package/dist/promises/client.d.ts +4 -4
  82. package/dist/promises/client.js +8 -4
  83. package/dist/promises/types.gen.d.ts +1 -1
  84. package/dist/service-map.d.ts +83 -9
  85. package/package.json +2 -2
@@ -73,9 +73,9 @@ const WebhookEndpoint = /* @__PURE__ */ (() => Schema.Struct({
73
73
  Schema.Literal("mailbox.message.sent"),
74
74
  Schema.Literal("mailbox.action.pending_approval"),
75
75
  Schema.Literal("mailbox.action.resolved"),
76
- Schema.Literal("mailbox.message.quarantined"),
77
- Schema.Literal("mailbox.message.released"),
76
+ Schema.Literal("mailbox.message.spam"),
78
77
  Schema.Literal("mailbox.message.discarded"),
78
+ Schema.Literal("mailbox.thread.deleted"),
79
79
  Schema.Literal("mailbox.message.delivered"),
80
80
  Schema.Literal("mailbox.message.read"),
81
81
  Schema.Literal("mailbox.message.failed"),
@@ -134,9 +134,9 @@ const WebhookEndpointListItem = /* @__PURE__ */ (() => Schema.Struct({
134
134
  Schema.Literal("mailbox.message.sent"),
135
135
  Schema.Literal("mailbox.action.pending_approval"),
136
136
  Schema.Literal("mailbox.action.resolved"),
137
- Schema.Literal("mailbox.message.quarantined"),
138
- Schema.Literal("mailbox.message.released"),
137
+ Schema.Literal("mailbox.message.spam"),
139
138
  Schema.Literal("mailbox.message.discarded"),
139
+ Schema.Literal("mailbox.thread.deleted"),
140
140
  Schema.Literal("mailbox.message.delivered"),
141
141
  Schema.Literal("mailbox.message.read"),
142
142
  Schema.Literal("mailbox.message.failed"),
@@ -272,9 +272,9 @@ const WebhooksCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
272
272
  Schema.Literal("mailbox.message.sent"),
273
273
  Schema.Literal("mailbox.action.pending_approval"),
274
274
  Schema.Literal("mailbox.action.resolved"),
275
- Schema.Literal("mailbox.message.quarantined"),
276
- Schema.Literal("mailbox.message.released"),
275
+ Schema.Literal("mailbox.message.spam"),
277
276
  Schema.Literal("mailbox.message.discarded"),
277
+ Schema.Literal("mailbox.thread.deleted"),
278
278
  Schema.Literal("mailbox.message.delivered"),
279
279
  Schema.Literal("mailbox.message.read"),
280
280
  Schema.Literal("mailbox.message.failed"),
@@ -362,9 +362,9 @@ const WebhooksUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
362
362
  Schema.Literal("mailbox.message.sent"),
363
363
  Schema.Literal("mailbox.action.pending_approval"),
364
364
  Schema.Literal("mailbox.action.resolved"),
365
- Schema.Literal("mailbox.message.quarantined"),
366
- Schema.Literal("mailbox.message.released"),
365
+ Schema.Literal("mailbox.message.spam"),
367
366
  Schema.Literal("mailbox.message.discarded"),
367
+ Schema.Literal("mailbox.thread.deleted"),
368
368
  Schema.Literal("mailbox.message.delivered"),
369
369
  Schema.Literal("mailbox.message.read"),
370
370
  Schema.Literal("mailbox.message.failed"),
@@ -72,7 +72,7 @@ export declare const WhoamiApiKeyCredential: Schema.Struct<{
72
72
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
73
73
  }>;
74
74
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
75
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
75
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
76
76
  readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
77
77
  }>, Schema.Null]>>;
78
78
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -117,7 +117,7 @@ export declare const Whoami: Schema.Struct<{
117
117
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
118
118
  }>;
119
119
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
120
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
120
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
121
121
  readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
122
122
  }>, Schema.Null]>>;
123
123
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -168,7 +168,7 @@ export declare const WhoamiGet200: Schema.Struct<{
168
168
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
169
169
  }>;
170
170
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
171
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
171
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
172
172
  readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
173
173
  }>, Schema.Null]>>;
174
174
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -230,7 +230,7 @@ declare const WhoamiGroup_base: HttpApiGroup.HttpApiGroup<"Whoami", HttpApiEndpo
230
230
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
231
231
  }>;
232
232
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
233
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
233
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
234
234
  readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
235
235
  }>, Schema.Null]>>;
236
236
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -1320,6 +1320,90 @@ export declare const SamvaOperations: {
1320
1320
  readonly idempotent: false;
1321
1321
  readonly paginated: false;
1322
1322
  };
1323
+ readonly integrationCatalogRecipeCatalog: {
1324
+ readonly group: "Integrations catalog";
1325
+ readonly method: "GET";
1326
+ readonly idempotent: false;
1327
+ readonly paginated: false;
1328
+ };
1329
+ readonly integrationCatalogRecipeConnectionHandoff: {
1330
+ readonly group: "Integrations catalog";
1331
+ readonly method: "GET";
1332
+ readonly idempotent: false;
1333
+ readonly paginated: false;
1334
+ };
1335
+ readonly integrationCatalogRecipeTest: {
1336
+ readonly group: "Integrations catalog";
1337
+ readonly method: "POST";
1338
+ readonly idempotent: false;
1339
+ readonly paginated: false;
1340
+ };
1341
+ readonly integrationCatalogRecipeTestReceipt: {
1342
+ readonly group: "Integrations catalog";
1343
+ readonly method: "GET";
1344
+ readonly idempotent: false;
1345
+ readonly paginated: false;
1346
+ };
1347
+ readonly integrationCatalogRecipeTestHandoff: {
1348
+ readonly group: "Integrations catalog";
1349
+ readonly method: "GET";
1350
+ readonly idempotent: false;
1351
+ readonly paginated: false;
1352
+ };
1353
+ readonly integrationCatalogRecipeWhatsAppChallengeBegin: {
1354
+ readonly group: "Integrations catalog";
1355
+ readonly method: "POST";
1356
+ readonly idempotent: false;
1357
+ readonly paginated: false;
1358
+ };
1359
+ readonly integrationCatalogRecipeWhatsAppChallengeGet: {
1360
+ readonly group: "Integrations catalog";
1361
+ readonly method: "GET";
1362
+ readonly idempotent: false;
1363
+ readonly paginated: false;
1364
+ };
1365
+ readonly integrationCatalogRecipeWhatsAppChallengeConfirm: {
1366
+ readonly group: "Integrations catalog";
1367
+ readonly method: "POST";
1368
+ readonly idempotent: false;
1369
+ readonly paginated: false;
1370
+ };
1371
+ readonly integrationCatalogRecipePreview: {
1372
+ readonly group: "Integrations catalog";
1373
+ readonly method: "POST";
1374
+ readonly idempotent: false;
1375
+ readonly paginated: false;
1376
+ };
1377
+ readonly integrationCatalogRecipeReadiness: {
1378
+ readonly group: "Integrations catalog";
1379
+ readonly method: "GET";
1380
+ readonly idempotent: false;
1381
+ readonly paginated: false;
1382
+ };
1383
+ readonly integrationCatalogRecipeSetupsList: {
1384
+ readonly group: "Integrations catalog";
1385
+ readonly method: "GET";
1386
+ readonly idempotent: false;
1387
+ readonly paginated: false;
1388
+ };
1389
+ readonly integrationCatalogRecipeSetupGet: {
1390
+ readonly group: "Integrations catalog";
1391
+ readonly method: "GET";
1392
+ readonly idempotent: false;
1393
+ readonly paginated: false;
1394
+ };
1395
+ readonly integrationCatalogRecipeSetupReplace: {
1396
+ readonly group: "Integrations catalog";
1397
+ readonly method: "PUT";
1398
+ readonly idempotent: false;
1399
+ readonly paginated: false;
1400
+ };
1401
+ readonly integrationCatalogRecipeSetupActivate: {
1402
+ readonly group: "Integrations catalog";
1403
+ readonly method: "POST";
1404
+ readonly idempotent: false;
1405
+ readonly paginated: false;
1406
+ };
1323
1407
  readonly integrationCatalogSearch: {
1324
1408
  readonly group: "Integrations catalog";
1325
1409
  readonly method: "GET";
@@ -1656,12 +1740,6 @@ export declare const SamvaOperations: {
1656
1740
  readonly idempotent: false;
1657
1741
  readonly paginated: false;
1658
1742
  };
1659
- readonly mailboxesDiscardMessage: {
1660
- readonly group: "Mailboxes";
1661
- readonly method: "POST";
1662
- readonly idempotent: false;
1663
- readonly paginated: false;
1664
- };
1665
1743
  readonly mailboxesForward: {
1666
1744
  readonly group: "Mailboxes";
1667
1745
  readonly method: "POST";
@@ -1674,12 +1752,6 @@ export declare const SamvaOperations: {
1674
1752
  readonly idempotent: false;
1675
1753
  readonly paginated: false;
1676
1754
  };
1677
- readonly mailboxesReleaseMessage: {
1678
- readonly group: "Mailboxes";
1679
- readonly method: "POST";
1680
- readonly idempotent: false;
1681
- readonly paginated: false;
1682
- };
1683
1755
  readonly mailboxesReply: {
1684
1756
  readonly group: "Mailboxes";
1685
1757
  readonly method: "POST";
@@ -1698,12 +1770,6 @@ export declare const SamvaOperations: {
1698
1770
  readonly idempotent: false;
1699
1771
  readonly paginated: false;
1700
1772
  };
1701
- readonly mailboxesListQuarantine: {
1702
- readonly group: "Mailboxes";
1703
- readonly method: "GET";
1704
- readonly idempotent: false;
1705
- readonly paginated: true;
1706
- };
1707
1773
  readonly mailboxesResume: {
1708
1774
  readonly group: "Mailboxes";
1709
1775
  readonly method: "POST";
@@ -1734,6 +1800,24 @@ export declare const SamvaOperations: {
1734
1800
  readonly idempotent: false;
1735
1801
  readonly paginated: false;
1736
1802
  };
1803
+ readonly mailboxesEmptySpam: {
1804
+ readonly group: "Mailboxes";
1805
+ readonly method: "POST";
1806
+ readonly idempotent: false;
1807
+ readonly paginated: false;
1808
+ };
1809
+ readonly mailboxesListSpamHeld: {
1810
+ readonly group: "Mailboxes";
1811
+ readonly method: "GET";
1812
+ readonly idempotent: false;
1813
+ readonly paginated: true;
1814
+ };
1815
+ readonly mailboxesDiscardSpamHeld: {
1816
+ readonly group: "Mailboxes";
1817
+ readonly method: "POST";
1818
+ readonly idempotent: false;
1819
+ readonly paginated: false;
1820
+ };
1737
1821
  readonly mailboxesListThreads: {
1738
1822
  readonly group: "Mailboxes";
1739
1823
  readonly method: "GET";
@@ -1746,6 +1830,12 @@ export declare const SamvaOperations: {
1746
1830
  readonly idempotent: false;
1747
1831
  readonly paginated: false;
1748
1832
  };
1833
+ readonly mailboxesDeleteThread: {
1834
+ readonly group: "Mailboxes";
1835
+ readonly method: "DELETE";
1836
+ readonly idempotent: false;
1837
+ readonly paginated: false;
1838
+ };
1749
1839
  readonly mailboxesUpdateThread: {
1750
1840
  readonly group: "Mailboxes";
1751
1841
  readonly method: "PATCH";
@@ -1800,6 +1890,12 @@ export declare const SamvaOperations: {
1800
1890
  readonly idempotent: false;
1801
1891
  readonly paginated: false;
1802
1892
  };
1893
+ readonly mailboxesEmptyTrash: {
1894
+ readonly group: "Mailboxes";
1895
+ readonly method: "POST";
1896
+ readonly idempotent: false;
1897
+ readonly paginated: false;
1898
+ };
1803
1899
  readonly mailboxesListOrganizationDrafts: {
1804
1900
  readonly group: "Mailboxes";
1805
1901
  readonly method: "GET";