samva 0.13.0 → 0.14.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 (73) hide show
  1. package/AGENTS.md +9 -0
  2. package/README.md +51 -6
  3. package/dist/{categories-Bcwq5jPV.js → categories-BGUBFdH9.js} +9 -1
  4. package/dist/client/sdk.gen.d.ts +105 -18
  5. package/dist/client/types.gen.d.ts +786 -118
  6. package/dist/{client-DYPNDvVU.js → client-CZjhOKPM.js} +694 -122
  7. package/dist/effect/analytics.d.ts +6 -6
  8. package/dist/effect/analytics.js +1 -1
  9. package/dist/effect/api-keys.d.ts +20 -20
  10. package/dist/effect/api-keys.js +1 -1
  11. package/dist/effect/attachments.js +1 -1
  12. package/dist/effect/brands.js +2 -2
  13. package/dist/effect/campaigns.d.ts +12 -12
  14. package/dist/effect/campaigns.js +1 -1
  15. package/dist/effect/categories.js +1 -1
  16. package/dist/effect/client.js +1 -1
  17. package/dist/effect/contact-groups.d.ts +9 -9
  18. package/dist/effect/contact-groups.js +1 -1
  19. package/dist/effect/contacts.d.ts +126 -73
  20. package/dist/effect/contacts.js +1 -1
  21. package/dist/effect/conversations.d.ts +20 -20
  22. package/dist/effect/conversations.js +1 -1
  23. package/dist/effect/custom-fields.d.ts +1 -1
  24. package/dist/effect/custom-fields.js +1 -1
  25. package/dist/effect/email.d.ts +26 -26
  26. package/dist/effect/email.js +2 -2
  27. package/dist/effect/extension-installations.d.ts +3 -3
  28. package/dist/effect/extension-installations.js +1 -1
  29. package/dist/effect/extensions.d.ts +3 -3
  30. package/dist/effect/extensions.js +1 -1
  31. package/dist/effect/feedback.d.ts +1 -1
  32. package/dist/effect/feedback.js +2 -2
  33. package/dist/effect/generated-metadata.d.ts +8 -0
  34. package/dist/effect/generated.d.ts +6184 -1243
  35. package/dist/effect/index.d.ts +2 -1
  36. package/dist/effect/index.js +6 -5
  37. package/dist/effect/internal/client.d.ts +2 -2
  38. package/dist/effect/internal/operation.d.ts +9 -9
  39. package/dist/effect/mailboxes.d.ts +1726 -109
  40. package/dist/effect/mailboxes.js +3 -3
  41. package/dist/effect/media.d.ts +1 -1
  42. package/dist/effect/media.js +1 -1
  43. package/dist/effect/messages.d.ts +19 -17
  44. package/dist/effect/messages.js +1 -1
  45. package/dist/effect/namespaces.js +1 -1
  46. package/dist/effect/operations.d.ts +6 -6
  47. package/dist/effect/operations.js +1 -1
  48. package/dist/effect/organizations.d.ts +30 -0
  49. package/dist/effect/organizations.js +4 -2
  50. package/dist/effect/retry.js +1 -1
  51. package/dist/effect/scheduled-messages.d.ts +6 -6
  52. package/dist/effect/scheduled-messages.js +1 -1
  53. package/dist/effect/subscriptions.d.ts +15 -0
  54. package/dist/effect/subscriptions.js +9 -0
  55. package/dist/effect/templates.d.ts +52 -14
  56. package/dist/effect/templates.js +5 -3
  57. package/dist/effect/unsubscribe-groups.d.ts +1 -1
  58. package/dist/effect/unsubscribe-groups.js +1 -1
  59. package/dist/effect/webhooks.d.ts +15 -15
  60. package/dist/effect/webhooks.js +2 -2
  61. package/dist/index.js +4 -4
  62. package/dist/{inline-attachments-B56eS0MF.js → inline-attachments-BrNnSMF2.js} +2 -2
  63. package/dist/{mailbox-events-CsbF35vH.js → mailbox-events-VKR4f3qq.js} +6 -4
  64. package/dist/mailbox-events.d.ts +1 -1
  65. package/dist/{mailboxes-D3Kx7elM.js → mailboxes-DT02zP7q.js} +13 -5
  66. package/dist/{operation-B_Ty1LG-.js → operation-g8nAzmIM.js} +29 -3
  67. package/dist/promises/errors.gen.d.ts +26 -2
  68. package/dist/promises/index.d.ts +6 -4
  69. package/dist/promises/index.js +4 -4
  70. package/dist/promises/types.gen.d.ts +1 -1
  71. package/dist/{promises-D9FJyU0q.js → promises-BFRKhpSS.js} +941 -38
  72. package/dist/service-map.d.ts +35 -0
  73. package/package.json +7 -2
@@ -202,6 +202,7 @@ export declare const SDK_SERVICE_OPERATIONS: {
202
202
  readonly create: "organizationsCreate";
203
203
  readonly get: "organizationsGet";
204
204
  readonly getProfile: "organizationsGetProfile";
205
+ readonly getTrustTier: "organizationsGetTrustTier";
205
206
  readonly update: "organizationsUpdate";
206
207
  readonly getUsage: "organizationsGetUsage";
207
208
  readonly delete: "organizationsDelete";
@@ -244,9 +245,13 @@ export declare const SDK_SERVICE_OPERATIONS: {
244
245
  readonly saveWorkspace: "templatesSaveWorkspace";
245
246
  readonly publish: "templatesPublish";
246
247
  readonly getPublication: "templatesGetPublication";
248
+ readonly renderPublication: "templatesRenderPublication";
247
249
  readonly listInputContracts: "templatesListInputContracts";
248
250
  readonly getInputContract: "templatesGetInputContract";
249
251
  };
252
+ readonly subscriptions: {
253
+ readonly subscribe: "subscriptionsSubscribe";
254
+ };
250
255
  readonly unsubscribeGroups: {
251
256
  readonly list: "unsubscribeList";
252
257
  readonly create: "unsubscribeCreate";
@@ -308,6 +313,7 @@ export declare const SDK_SERVICE_OPERATIONS: {
308
313
  readonly getMessage: "mailboxesGetMessage";
309
314
  readonly getMessageRaw: "mailboxesGetMessageRaw";
310
315
  readonly getMessageAttachment: "mailboxesGetMessageAttachment";
316
+ readonly copyMessageAttachment: "mailboxesCopyMessageAttachment";
311
317
  readonly reply: "mailboxesReply";
312
318
  readonly replyAll: "mailboxesReplyAll";
313
319
  readonly forward: "mailboxesForward";
@@ -321,6 +327,9 @@ export declare const SDK_SERVICE_OPERATIONS: {
321
327
  readonly deleteDraft: "mailboxesDeleteDraft";
322
328
  readonly sendDraft: "mailboxesSendDraft";
323
329
  readonly listActions: "mailboxesListActions";
330
+ readonly getAction: "mailboxesGetAction";
331
+ readonly cancelAction: "mailboxesCancelAction";
332
+ readonly retryAction: "mailboxesRetryAction";
324
333
  readonly approveAction: "mailboxesApproveAction";
325
334
  readonly denyAction: "mailboxesDenyAction";
326
335
  readonly listEvents: "mailboxesListEvents";
@@ -971,6 +980,10 @@ export declare const SDK_OPERATION_CALLS: {
971
980
  readonly kind: "path";
972
981
  readonly paths: readonly ["id", "publicationId"];
973
982
  };
983
+ readonly templatesRenderPublication: {
984
+ readonly kind: "pathPayload";
985
+ readonly paths: readonly ["id", "publicationId"];
986
+ };
974
987
  readonly templatesListInputContracts: {
975
988
  readonly kind: "pathParams";
976
989
  readonly paths: readonly ["id"];
@@ -1026,6 +1039,9 @@ export declare const SDK_OPERATION_CALLS: {
1026
1039
  readonly organizationsGetProfile: {
1027
1040
  readonly kind: "none";
1028
1041
  };
1042
+ readonly organizationsGetTrustTier: {
1043
+ readonly kind: "none";
1044
+ };
1029
1045
  readonly organizationsUpdate: {
1030
1046
  readonly kind: "payload";
1031
1047
  };
@@ -1134,6 +1150,9 @@ export declare const SDK_OPERATION_CALLS: {
1134
1150
  readonly kind: "path";
1135
1151
  readonly paths: readonly ["id"];
1136
1152
  };
1153
+ readonly subscriptionsSubscribe: {
1154
+ readonly kind: "payload";
1155
+ };
1137
1156
  readonly unsubscribeList: {
1138
1157
  readonly kind: "none";
1139
1158
  };
@@ -1331,6 +1350,10 @@ export declare const SDK_OPERATION_CALLS: {
1331
1350
  readonly kind: "path";
1332
1351
  readonly paths: readonly ["id", "messageId", "attachmentId"];
1333
1352
  };
1353
+ readonly mailboxesCopyMessageAttachment: {
1354
+ readonly kind: "path";
1355
+ readonly paths: readonly ["id", "messageId", "attachmentId"];
1356
+ };
1334
1357
  readonly mailboxesReply: {
1335
1358
  readonly kind: "optionalIdempotentPathPayload";
1336
1359
  readonly paths: readonly ["id", "messageId"];
@@ -1383,6 +1406,18 @@ export declare const SDK_OPERATION_CALLS: {
1383
1406
  readonly kind: "pathParams";
1384
1407
  readonly paths: readonly ["id"];
1385
1408
  };
1409
+ readonly mailboxesGetAction: {
1410
+ readonly kind: "path";
1411
+ readonly paths: readonly ["id", "actionId"];
1412
+ };
1413
+ readonly mailboxesCancelAction: {
1414
+ readonly kind: "path";
1415
+ readonly paths: readonly ["id", "actionId"];
1416
+ };
1417
+ readonly mailboxesRetryAction: {
1418
+ readonly kind: "path";
1419
+ readonly paths: readonly ["id", "actionId"];
1420
+ };
1386
1421
  readonly mailboxesApproveAction: {
1387
1422
  readonly kind: "path";
1388
1423
  readonly paths: readonly ["id", "actionId"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samva",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "TypeScript SDK for the Samva email API",
5
5
  "keywords": [
6
6
  "api-client",
@@ -138,6 +138,10 @@
138
138
  "types": "./dist/effect/scheduled-messages.d.ts",
139
139
  "import": "./dist/effect/scheduled-messages.js"
140
140
  },
141
+ "./effect/subscriptions": {
142
+ "types": "./dist/effect/subscriptions.d.ts",
143
+ "import": "./dist/effect/subscriptions.js"
144
+ },
141
145
  "./effect/templates": {
142
146
  "types": "./dist/effect/templates.d.ts",
143
147
  "import": "./dist/effect/templates.js"
@@ -169,6 +173,7 @@
169
173
  "generate:promises": "bun run codegen/generate-promises.ts && bun run scripts/generate-promise-errors.ts && oxfmt --config=../../oxfmt.config.ts src/client src/promises/errors.gen.ts src/promises/types.gen.ts",
170
174
  "generate:effect": "bun run codegen/generate-effect.ts && oxfmt --config=../../oxfmt.config.ts src/effect/generated.ts src/effect/generated-metadata.ts && bun run codegen/normalize-effect.ts",
171
175
  "generate": "bun generate:openapi && bun generate:promises && bun generate:effect",
176
+ "test": "vitest run --root ../.. --project packages",
172
177
  "test:generation": "bun scripts/check-generation.ts",
173
178
  "test:packed": "bun run build && bun scripts/test-packed-consumers.ts",
174
179
  "test:tarball": "bun run build && bun scripts/check-tarball.ts",
@@ -177,7 +182,7 @@
177
182
  "typecheck": "tsc --noEmit && tsc --noEmit -p codegen/tsconfig.json && tsc --noEmit -p tests/tsconfig.json"
178
183
  },
179
184
  "dependencies": {
180
- "@samva/webhooks": "0.13.0"
185
+ "@samva/webhooks": "0.14.0"
181
186
  },
182
187
  "devDependencies": {
183
188
  "@effect/openapi-generator": "4.0.0",