samva 0.48.0 → 0.50.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 +272 -33
  2. package/dist/client/sdk.gen.js +693 -55
  3. package/dist/client/types.gen.d.ts +1571 -206
  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 +73 -13
  19. package/dist/effect/descriptors/mailboxes.js +85 -13
  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 +1661 -669
  32. package/dist/effect/generated/mailboxes.js +291 -103
  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 +199 -21
  36. package/dist/effect/generated/shared.js +50 -13
  37. package/dist/effect/generated/template-registrations.d.ts +32 -1
  38. package/dist/effect/generated/template-registrations.js +8 -5
  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 +138 -18
  45. package/dist/effect/generated-metadata.js +366 -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 +142 -92
  54. package/dist/effect/mailboxes.js +20 -8
  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 +105 -11
  85. package/package.json +3 -3
@@ -215,6 +215,20 @@ export declare const SDK_SERVICE_OPERATIONS: {
215
215
  readonly connect: "accountsConnect";
216
216
  };
217
217
  readonly integrationCatalog: {
218
+ readonly recipeConnectionHandoff: "integrationCatalogRecipeConnectionHandoff";
219
+ readonly recipeTestHandoff: "integrationCatalogRecipeTestHandoff";
220
+ readonly recipeSetupsList: "integrationCatalogRecipeSetupsList";
221
+ readonly recipeSetupGet: "integrationCatalogRecipeSetupGet";
222
+ readonly recipeSetupReplace: "integrationCatalogRecipeSetupReplace";
223
+ readonly recipeSetupActivate: "integrationCatalogRecipeSetupActivate";
224
+ readonly recipePreview: "integrationCatalogRecipePreview";
225
+ readonly recipeWhatsAppChallengeBegin: "integrationCatalogRecipeWhatsAppChallengeBegin";
226
+ readonly recipeWhatsAppChallengeGet: "integrationCatalogRecipeWhatsAppChallengeGet";
227
+ readonly recipeWhatsAppChallengeConfirm: "integrationCatalogRecipeWhatsAppChallengeConfirm";
228
+ readonly recipeTest: "integrationCatalogRecipeTest";
229
+ readonly recipeTestReceipt: "integrationCatalogRecipeTestReceipt";
230
+ readonly recipeCatalog: "integrationCatalogRecipeCatalog";
231
+ readonly recipeReadiness: "integrationCatalogRecipeReadiness";
218
232
  readonly prepare: "integrationCatalogPrepare";
219
233
  readonly search: "integrationCatalogSearch";
220
234
  readonly list: "integrationCatalogList";
@@ -400,8 +414,12 @@ export declare const SDK_SERVICE_OPERATIONS: {
400
414
  };
401
415
  readonly mailboxes: {
402
416
  readonly createImportUpload: "mailboxesCreateImportUpload";
403
- readonly startImport: "mailboxesStartImport";
417
+ readonly signImportUploadParts: "mailboxesSignImportUploadParts";
418
+ readonly completeImportUpload: "mailboxesCompleteImportUpload";
419
+ readonly discardImportUpload: "mailboxesDiscardImportUpload";
420
+ readonly discardImport: "mailboxesDiscardImport";
404
421
  readonly getImport: "mailboxesGetImport";
422
+ readonly startImport: "mailboxesStartImport";
405
423
  readonly listImports: "mailboxesListImports";
406
424
  readonly list: "mailboxesList";
407
425
  readonly create: "mailboxesCreate";
@@ -429,6 +447,9 @@ export declare const SDK_SERVICE_OPERATIONS: {
429
447
  readonly listThreads: "mailboxesListThreads";
430
448
  readonly getThread: "mailboxesGetThread";
431
449
  readonly updateThread: "mailboxesUpdateThread";
450
+ readonly deleteThread: "mailboxesDeleteThread";
451
+ readonly emptyTrash: "mailboxesEmptyTrash";
452
+ readonly emptySpam: "mailboxesEmptySpam";
432
453
  readonly addThreadLabels: "mailboxesAddThreadLabels";
433
454
  readonly removeThreadLabels: "mailboxesRemoveThreadLabels";
434
455
  readonly listThreadMessages: "mailboxesListThreadMessages";
@@ -445,9 +466,8 @@ export declare const SDK_SERVICE_OPERATIONS: {
445
466
  readonly reply: "mailboxesReply";
446
467
  readonly replyAll: "mailboxesReplyAll";
447
468
  readonly forward: "mailboxesForward";
448
- readonly listQuarantine: "mailboxesListQuarantine";
449
- readonly releaseMessage: "mailboxesReleaseMessage";
450
- readonly discardMessage: "mailboxesDiscardMessage";
469
+ readonly listSpamHeld: "mailboxesListSpamHeld";
470
+ readonly discardSpamHeld: "mailboxesDiscardSpamHeld";
451
471
  readonly scheduleDraft: "mailboxesScheduleDraft";
452
472
  readonly rescheduleSend: "mailboxesRescheduleSend";
453
473
  readonly unscheduleSend: "mailboxesUnscheduleSend";
@@ -1196,6 +1216,56 @@ export declare const SDK_OPERATION_CALLS: {
1196
1216
  readonly accountsConnect: {
1197
1217
  readonly kind: "payload";
1198
1218
  };
1219
+ readonly integrationCatalogRecipeConnectionHandoff: {
1220
+ readonly kind: "pathParams";
1221
+ readonly paths: readonly ["provider"];
1222
+ };
1223
+ readonly integrationCatalogRecipeTestHandoff: {
1224
+ readonly kind: "params";
1225
+ };
1226
+ readonly integrationCatalogRecipeSetupsList: {
1227
+ readonly kind: "none";
1228
+ };
1229
+ readonly integrationCatalogRecipeSetupGet: {
1230
+ readonly kind: "path";
1231
+ readonly paths: readonly ["id"];
1232
+ };
1233
+ readonly integrationCatalogRecipeSetupReplace: {
1234
+ readonly kind: "pathPayload";
1235
+ readonly paths: readonly ["id"];
1236
+ };
1237
+ readonly integrationCatalogRecipeSetupActivate: {
1238
+ readonly kind: "pathPayload";
1239
+ readonly paths: readonly ["id"];
1240
+ };
1241
+ readonly integrationCatalogRecipePreview: {
1242
+ readonly kind: "payload";
1243
+ };
1244
+ readonly integrationCatalogRecipeWhatsAppChallengeBegin: {
1245
+ readonly kind: "path";
1246
+ readonly paths: readonly ["accountId"];
1247
+ };
1248
+ readonly integrationCatalogRecipeWhatsAppChallengeGet: {
1249
+ readonly kind: "path";
1250
+ readonly paths: readonly ["accountId", "id"];
1251
+ };
1252
+ readonly integrationCatalogRecipeWhatsAppChallengeConfirm: {
1253
+ readonly kind: "pathPayload";
1254
+ readonly paths: readonly ["accountId", "id"];
1255
+ };
1256
+ readonly integrationCatalogRecipeTest: {
1257
+ readonly kind: "payload";
1258
+ };
1259
+ readonly integrationCatalogRecipeTestReceipt: {
1260
+ readonly kind: "path";
1261
+ readonly paths: readonly ["requestId"];
1262
+ };
1263
+ readonly integrationCatalogRecipeCatalog: {
1264
+ readonly kind: "none";
1265
+ };
1266
+ readonly integrationCatalogRecipeReadiness: {
1267
+ readonly kind: "params";
1268
+ };
1199
1269
  readonly integrationCatalogPrepare: {
1200
1270
  readonly kind: "payload";
1201
1271
  };
@@ -1737,7 +1807,19 @@ export declare const SDK_OPERATION_CALLS: {
1737
1807
  readonly kind: "pathPayload";
1738
1808
  readonly paths: readonly ["id"];
1739
1809
  };
1740
- readonly mailboxesStartImport: {
1810
+ readonly mailboxesSignImportUploadParts: {
1811
+ readonly kind: "pathPayload";
1812
+ readonly paths: readonly ["id", "importId", "archiveId"];
1813
+ };
1814
+ readonly mailboxesCompleteImportUpload: {
1815
+ readonly kind: "pathPayload";
1816
+ readonly paths: readonly ["id", "importId", "archiveId"];
1817
+ };
1818
+ readonly mailboxesDiscardImportUpload: {
1819
+ readonly kind: "path";
1820
+ readonly paths: readonly ["id", "importId", "archiveId"];
1821
+ };
1822
+ readonly mailboxesDiscardImport: {
1741
1823
  readonly kind: "path";
1742
1824
  readonly paths: readonly ["id", "importId"];
1743
1825
  };
@@ -1745,6 +1827,10 @@ export declare const SDK_OPERATION_CALLS: {
1745
1827
  readonly kind: "path";
1746
1828
  readonly paths: readonly ["id", "importId"];
1747
1829
  };
1830
+ readonly mailboxesStartImport: {
1831
+ readonly kind: "path";
1832
+ readonly paths: readonly ["id", "importId"];
1833
+ };
1748
1834
  readonly mailboxesListImports: {
1749
1835
  readonly kind: "path";
1750
1836
  readonly paths: readonly ["id"];
@@ -1848,6 +1934,18 @@ export declare const SDK_OPERATION_CALLS: {
1848
1934
  readonly kind: "pathPayload";
1849
1935
  readonly paths: readonly ["id", "threadId"];
1850
1936
  };
1937
+ readonly mailboxesDeleteThread: {
1938
+ readonly kind: "path";
1939
+ readonly paths: readonly ["id", "threadId"];
1940
+ };
1941
+ readonly mailboxesEmptyTrash: {
1942
+ readonly kind: "path";
1943
+ readonly paths: readonly ["id"];
1944
+ };
1945
+ readonly mailboxesEmptySpam: {
1946
+ readonly kind: "path";
1947
+ readonly paths: readonly ["id"];
1948
+ };
1851
1949
  readonly mailboxesAddThreadLabels: {
1852
1950
  readonly kind: "pathPayload";
1853
1951
  readonly paths: readonly ["id", "threadId"];
@@ -1912,15 +2010,11 @@ export declare const SDK_OPERATION_CALLS: {
1912
2010
  readonly kind: "pathPayload";
1913
2011
  readonly paths: readonly ["id", "messageId"];
1914
2012
  };
1915
- readonly mailboxesListQuarantine: {
2013
+ readonly mailboxesListSpamHeld: {
1916
2014
  readonly kind: "pathParams";
1917
2015
  readonly paths: readonly ["id"];
1918
2016
  };
1919
- readonly mailboxesReleaseMessage: {
1920
- readonly kind: "path";
1921
- readonly paths: readonly ["id", "messageId"];
1922
- };
1923
- readonly mailboxesDiscardMessage: {
2017
+ readonly mailboxesDiscardSpamHeld: {
1924
2018
  readonly kind: "path";
1925
2019
  readonly paths: readonly ["id", "messageId"];
1926
2020
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samva",
3
- "version": "0.48.0",
3
+ "version": "0.50.0",
4
4
  "description": "TypeScript SDK for the Samva email and WhatsApp API",
5
5
  "keywords": [
6
6
  "api-client",
@@ -261,7 +261,7 @@
261
261
  "typecheck": "slot 'effect-tsgo tsrs --noEmit && effect-tsgo tsrs --noEmit -p codegen/tsconfig.json && effect-tsgo tsrs --noEmit -p tests/tsconfig.json && effect-tsgo tsrs --noEmit --project tests/parity/tsconfig.json \"$@\"'"
262
262
  },
263
263
  "dependencies": {
264
- "@samva/webhooks": "0.48.0"
264
+ "@samva/webhooks": "0.50.0"
265
265
  },
266
266
  "devDependencies": {
267
267
  "@effect/openapi-generator": "^4.1.4",
@@ -273,7 +273,7 @@
273
273
  "effect": "^4.1.4",
274
274
  "tsdown": "0.23.7",
275
275
  "typescript": "^7.0.2",
276
- "vitest": "5.1.0"
276
+ "vitest": "5.1.1"
277
277
  },
278
278
  "peerDependencies": {
279
279
  "effect": "^4.0.4"