samva 0.12.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 (75) hide show
  1. package/AGENTS.md +9 -0
  2. package/README.md +51 -6
  3. package/dist/{categories-DvsHUJtX.js → categories-BGUBFdH9.js} +13 -1
  4. package/dist/client/sdk.gen.d.ts +130 -32
  5. package/dist/client/types.gen.d.ts +979 -168
  6. package/dist/{client-Cj1bqIEe.js → client-CZjhOKPM.js} +898 -177
  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 +13 -13
  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 -12
  18. package/dist/effect/contact-groups.js +1 -1
  19. package/dist/effect/contacts.d.ts +161 -76
  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 +27 -27
  26. package/dist/effect/email.js +2 -2
  27. package/dist/effect/extension-installations.d.ts +68 -2
  28. package/dist/effect/extension-installations.js +5 -3
  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 +12 -0
  34. package/dist/effect/generated.d.ts +6502 -906
  35. package/dist/effect/index.d.ts +3 -1
  36. package/dist/effect/index.js +6 -4
  37. package/dist/effect/internal/client.d.ts +16 -2
  38. package/dist/effect/internal/operation.d.ts +14 -11
  39. package/dist/effect/mailboxes.d.ts +1725 -108
  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 +21 -19
  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 +7 -7
  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 -3
  62. package/dist/inline-attachments-BrNnSMF2.js +121 -0
  63. package/dist/inline-attachments.d.ts +65 -0
  64. package/dist/{mailbox-events-CsbF35vH.js → mailbox-events-VKR4f3qq.js} +6 -4
  65. package/dist/mailbox-events.d.ts +1 -1
  66. package/dist/{mailboxes-BtcktcNB.js → mailboxes-DT02zP7q.js} +13 -5
  67. package/dist/{operation-BEghYyLu.js → operation-g8nAzmIM.js} +63 -3
  68. package/dist/promises/errors.gen.d.ts +38 -2
  69. package/dist/promises/index.d.ts +7 -4
  70. package/dist/promises/index.js +4 -3
  71. package/dist/promises/types.gen.d.ts +1 -1
  72. package/dist/{promises-BzrwhHEW.js → promises-BFRKhpSS.js} +1070 -49
  73. package/dist/service-map.d.ts +40 -0
  74. package/package.json +7 -2
  75. package/dist/client-attribution-BTWYSXxo.js +0 -9
@@ -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";
@@ -342,6 +351,7 @@ export declare const SDK_SERVICE_OPERATIONS: {
342
351
  readonly extensionInstallations: {
343
352
  readonly list: "extensionInstallationsList";
344
353
  readonly install: "extensionInstallationsInstall";
354
+ readonly upgrade: "extensionInstallationsUpgrade";
345
355
  readonly get: "extensionInstallationsGet";
346
356
  readonly uninstall: "extensionInstallationsUninstall";
347
357
  readonly disable: "extensionInstallationsDisable";
@@ -970,6 +980,10 @@ export declare const SDK_OPERATION_CALLS: {
970
980
  readonly kind: "path";
971
981
  readonly paths: readonly ["id", "publicationId"];
972
982
  };
983
+ readonly templatesRenderPublication: {
984
+ readonly kind: "pathPayload";
985
+ readonly paths: readonly ["id", "publicationId"];
986
+ };
973
987
  readonly templatesListInputContracts: {
974
988
  readonly kind: "pathParams";
975
989
  readonly paths: readonly ["id"];
@@ -1025,6 +1039,9 @@ export declare const SDK_OPERATION_CALLS: {
1025
1039
  readonly organizationsGetProfile: {
1026
1040
  readonly kind: "none";
1027
1041
  };
1042
+ readonly organizationsGetTrustTier: {
1043
+ readonly kind: "none";
1044
+ };
1028
1045
  readonly organizationsUpdate: {
1029
1046
  readonly kind: "payload";
1030
1047
  };
@@ -1133,6 +1150,9 @@ export declare const SDK_OPERATION_CALLS: {
1133
1150
  readonly kind: "path";
1134
1151
  readonly paths: readonly ["id"];
1135
1152
  };
1153
+ readonly subscriptionsSubscribe: {
1154
+ readonly kind: "payload";
1155
+ };
1136
1156
  readonly unsubscribeList: {
1137
1157
  readonly kind: "none";
1138
1158
  };
@@ -1330,6 +1350,10 @@ export declare const SDK_OPERATION_CALLS: {
1330
1350
  readonly kind: "path";
1331
1351
  readonly paths: readonly ["id", "messageId", "attachmentId"];
1332
1352
  };
1353
+ readonly mailboxesCopyMessageAttachment: {
1354
+ readonly kind: "path";
1355
+ readonly paths: readonly ["id", "messageId", "attachmentId"];
1356
+ };
1333
1357
  readonly mailboxesReply: {
1334
1358
  readonly kind: "optionalIdempotentPathPayload";
1335
1359
  readonly paths: readonly ["id", "messageId"];
@@ -1382,6 +1406,18 @@ export declare const SDK_OPERATION_CALLS: {
1382
1406
  readonly kind: "pathParams";
1383
1407
  readonly paths: readonly ["id"];
1384
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
+ };
1385
1421
  readonly mailboxesApproveAction: {
1386
1422
  readonly kind: "path";
1387
1423
  readonly paths: readonly ["id", "actionId"];
@@ -1436,6 +1472,10 @@ export declare const SDK_OPERATION_CALLS: {
1436
1472
  readonly extensionInstallationsInstall: {
1437
1473
  readonly kind: "payload";
1438
1474
  };
1475
+ readonly extensionInstallationsUpgrade: {
1476
+ readonly kind: "pathPayload";
1477
+ readonly paths: readonly ["id"];
1478
+ };
1439
1479
  readonly extensionInstallationsGet: {
1440
1480
  readonly kind: "path";
1441
1481
  readonly paths: readonly ["id"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samva",
3
- "version": "0.12.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.12.0"
185
+ "@samva/webhooks": "0.14.0"
181
186
  },
182
187
  "devDependencies": {
183
188
  "@effect/openapi-generator": "4.0.0",
@@ -1,9 +0,0 @@
1
- //#endregion
2
- //#region src/client-attribution.ts
3
- const SDK_VERSION = "0.12.0";
4
- const CLIENT_ATTRIBUTION_HEADER = "x-samva-client";
5
- const clientAttribution = (surface) => `${surface}/${SDK_VERSION}`;
6
- //#endregion
7
- export { clientAttribution as n, CLIENT_ATTRIBUTION_HEADER as t };
8
-
9
- //# sourceMappingURL=client-attribution-BTWYSXxo.js.map