samva 0.13.0 → 0.15.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 +55 -6
  3. package/dist/{categories-Bcwq5jPV.js → categories-BGUBFdH9.js} +9 -1
  4. package/dist/client/sdk.gen.d.ts +129 -27
  5. package/dist/client/types.gen.d.ts +920 -166
  6. package/dist/{client-DYPNDvVU.js → client-CDg7zJs0.js} +760 -147
  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 +6335 -1112
  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 +1775 -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-UxLeyytJ.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-BH_JPmOE.js} +17 -5
  66. package/dist/{operation-B_Ty1LG-.js → operation-BZ5Xov-x.js} +37 -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-Cd6Jamqk.js} +1004 -47
  72. package/dist/service-map.d.ts +45 -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";
@@ -276,6 +281,8 @@ export declare const SDK_SERVICE_OPERATIONS: {
276
281
  readonly get: "mailboxesGet";
277
282
  readonly update: "mailboxesUpdate";
278
283
  readonly remove: "mailboxesRemove";
284
+ readonly createAddress: "mailboxesCreateAddress";
285
+ readonly removeAddress: "mailboxesRemoveAddress";
279
286
  readonly pause: "mailboxesPause";
280
287
  readonly resume: "mailboxesResume";
281
288
  readonly getAgentActivity: "mailboxesGetAgentActivity";
@@ -308,6 +315,7 @@ export declare const SDK_SERVICE_OPERATIONS: {
308
315
  readonly getMessage: "mailboxesGetMessage";
309
316
  readonly getMessageRaw: "mailboxesGetMessageRaw";
310
317
  readonly getMessageAttachment: "mailboxesGetMessageAttachment";
318
+ readonly copyMessageAttachment: "mailboxesCopyMessageAttachment";
311
319
  readonly reply: "mailboxesReply";
312
320
  readonly replyAll: "mailboxesReplyAll";
313
321
  readonly forward: "mailboxesForward";
@@ -321,6 +329,9 @@ export declare const SDK_SERVICE_OPERATIONS: {
321
329
  readonly deleteDraft: "mailboxesDeleteDraft";
322
330
  readonly sendDraft: "mailboxesSendDraft";
323
331
  readonly listActions: "mailboxesListActions";
332
+ readonly getAction: "mailboxesGetAction";
333
+ readonly cancelAction: "mailboxesCancelAction";
334
+ readonly retryAction: "mailboxesRetryAction";
324
335
  readonly approveAction: "mailboxesApproveAction";
325
336
  readonly denyAction: "mailboxesDenyAction";
326
337
  readonly listEvents: "mailboxesListEvents";
@@ -971,6 +982,10 @@ export declare const SDK_OPERATION_CALLS: {
971
982
  readonly kind: "path";
972
983
  readonly paths: readonly ["id", "publicationId"];
973
984
  };
985
+ readonly templatesRenderPublication: {
986
+ readonly kind: "pathPayload";
987
+ readonly paths: readonly ["id", "publicationId"];
988
+ };
974
989
  readonly templatesListInputContracts: {
975
990
  readonly kind: "pathParams";
976
991
  readonly paths: readonly ["id"];
@@ -1026,6 +1041,9 @@ export declare const SDK_OPERATION_CALLS: {
1026
1041
  readonly organizationsGetProfile: {
1027
1042
  readonly kind: "none";
1028
1043
  };
1044
+ readonly organizationsGetTrustTier: {
1045
+ readonly kind: "none";
1046
+ };
1029
1047
  readonly organizationsUpdate: {
1030
1048
  readonly kind: "payload";
1031
1049
  };
@@ -1134,6 +1152,9 @@ export declare const SDK_OPERATION_CALLS: {
1134
1152
  readonly kind: "path";
1135
1153
  readonly paths: readonly ["id"];
1136
1154
  };
1155
+ readonly subscriptionsSubscribe: {
1156
+ readonly kind: "payload";
1157
+ };
1137
1158
  readonly unsubscribeList: {
1138
1159
  readonly kind: "none";
1139
1160
  };
@@ -1203,6 +1224,14 @@ export declare const SDK_OPERATION_CALLS: {
1203
1224
  readonly kind: "path";
1204
1225
  readonly paths: readonly ["id"];
1205
1226
  };
1227
+ readonly mailboxesCreateAddress: {
1228
+ readonly kind: "pathPayload";
1229
+ readonly paths: readonly ["id"];
1230
+ };
1231
+ readonly mailboxesRemoveAddress: {
1232
+ readonly kind: "path";
1233
+ readonly paths: readonly ["id", "addressId"];
1234
+ };
1206
1235
  readonly mailboxesPause: {
1207
1236
  readonly kind: "path";
1208
1237
  readonly paths: readonly ["id"];
@@ -1331,6 +1360,10 @@ export declare const SDK_OPERATION_CALLS: {
1331
1360
  readonly kind: "path";
1332
1361
  readonly paths: readonly ["id", "messageId", "attachmentId"];
1333
1362
  };
1363
+ readonly mailboxesCopyMessageAttachment: {
1364
+ readonly kind: "path";
1365
+ readonly paths: readonly ["id", "messageId", "attachmentId"];
1366
+ };
1334
1367
  readonly mailboxesReply: {
1335
1368
  readonly kind: "optionalIdempotentPathPayload";
1336
1369
  readonly paths: readonly ["id", "messageId"];
@@ -1383,6 +1416,18 @@ export declare const SDK_OPERATION_CALLS: {
1383
1416
  readonly kind: "pathParams";
1384
1417
  readonly paths: readonly ["id"];
1385
1418
  };
1419
+ readonly mailboxesGetAction: {
1420
+ readonly kind: "path";
1421
+ readonly paths: readonly ["id", "actionId"];
1422
+ };
1423
+ readonly mailboxesCancelAction: {
1424
+ readonly kind: "path";
1425
+ readonly paths: readonly ["id", "actionId"];
1426
+ };
1427
+ readonly mailboxesRetryAction: {
1428
+ readonly kind: "path";
1429
+ readonly paths: readonly ["id", "actionId"];
1430
+ };
1386
1431
  readonly mailboxesApproveAction: {
1387
1432
  readonly kind: "path";
1388
1433
  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.15.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.15.0"
181
186
  },
182
187
  "devDependencies": {
183
188
  "@effect/openapi-generator": "4.0.0",