samva 0.18.0 → 0.20.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 (70) hide show
  1. package/README.md +2 -0
  2. package/dist/client/sdk.gen.d.ts +94 -36
  3. package/dist/client/sdk.gen.js +269 -55
  4. package/dist/client/types.gen.d.ts +497 -106
  5. package/dist/effect/campaigns.d.ts +35 -3
  6. package/dist/effect/contact-groups.d.ts +39 -3
  7. package/dist/effect/contacts.d.ts +240 -17
  8. package/dist/effect/contacts.js +3 -1
  9. package/dist/effect/conversations.d.ts +11 -11
  10. package/dist/effect/email.d.ts +22 -6
  11. package/dist/effect/errors.d.ts +1 -1
  12. package/dist/effect/errors.js +2 -2
  13. package/dist/effect/extension-installations.d.ts +12 -12
  14. package/dist/effect/extensions.d.ts +3 -3
  15. package/dist/effect/generated/campaigns.d.ts +73 -4
  16. package/dist/effect/generated/campaigns.js +18 -1
  17. package/dist/effect/generated/contact-groups.d.ts +33 -3
  18. package/dist/effect/generated/contacts.d.ts +608 -55
  19. package/dist/effect/generated/contacts.js +55 -10
  20. package/dist/effect/generated/conversations.d.ts +25 -25
  21. package/dist/effect/generated/conversations.js +1 -1
  22. package/dist/effect/generated/email.d.ts +162 -1
  23. package/dist/effect/generated/email.js +31 -11
  24. package/dist/effect/generated/extension-installations.d.ts +44 -44
  25. package/dist/effect/generated/extension-installations.js +6 -0
  26. package/dist/effect/generated/extensions.d.ts +10 -10
  27. package/dist/effect/generated/extensions.js +2 -0
  28. package/dist/effect/generated/journeys.d.ts +13 -61
  29. package/dist/effect/generated/journeys.js +5 -5
  30. package/dist/effect/generated/mailboxes.d.ts +584 -78
  31. package/dist/effect/generated/mailboxes.js +65 -24
  32. package/dist/effect/generated/messages.d.ts +35 -1
  33. package/dist/effect/generated/messages.js +9 -2
  34. package/dist/effect/generated/namespaces.d.ts +432 -2
  35. package/dist/effect/generated/namespaces.js +91 -4
  36. package/dist/effect/generated/organizations.d.ts +13 -11
  37. package/dist/effect/generated/organizations.js +7 -3
  38. package/dist/effect/generated/shared.d.ts +104 -49
  39. package/dist/effect/generated/shared.js +51 -28
  40. package/dist/effect/generated/templates.d.ts +44 -1
  41. package/dist/effect/generated/templates.js +9 -3
  42. package/dist/effect/generated/unsubscribe-groups.d.ts +173 -78
  43. package/dist/effect/generated/unsubscribe-groups.js +75 -58
  44. package/dist/effect/generated/webhooks.d.ts +19 -19
  45. package/dist/effect/generated/webhooks.js +8 -0
  46. package/dist/effect/generated-metadata.d.ts +22 -6
  47. package/dist/effect/generated-metadata.js +334 -329
  48. package/dist/effect/index.js +2 -2
  49. package/dist/effect/journeys.d.ts +4 -4
  50. package/dist/effect/mailboxes.d.ts +144 -12
  51. package/dist/effect/messages.d.ts +8 -0
  52. package/dist/effect/namespaces.d.ts +29 -0
  53. package/dist/effect/namespaces.js +7 -1
  54. package/dist/effect/organizations.d.ts +4 -4
  55. package/dist/effect/templates.d.ts +12 -1
  56. package/dist/effect/unsubscribe-groups.d.ts +29 -18
  57. package/dist/effect/unsubscribe-groups.js +5 -5
  58. package/dist/effect/webhooks.d.ts +8 -8
  59. package/dist/index.js +2 -2
  60. package/dist/mailbox-events.d.ts +31 -4
  61. package/dist/mailbox-events.js +39 -11
  62. package/dist/package.js +1 -1
  63. package/dist/promises/errors.gen.d.ts +2 -12
  64. package/dist/promises/errors.gen.js +1 -26
  65. package/dist/promises/index.d.ts +1 -1
  66. package/dist/promises/index.js +2 -2
  67. package/dist/promises/types.gen.d.ts +1 -1
  68. package/dist/service-map.d.ts +24 -4
  69. package/dist/service-map.js +26 -2
  70. package/package.json +2 -2
@@ -799,6 +799,10 @@ export declare const listRuns: ((input: {
799
799
  readonly dispatchedCount: number;
800
800
  readonly failedCount: number;
801
801
  readonly skippedCount: number;
802
+ readonly skippedReasons: readonly {
803
+ readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
804
+ readonly count: number;
805
+ }[];
802
806
  readonly estimatedCompletionAt: string | null;
803
807
  readonly failureReason: string | null;
804
808
  readonly holdReason: string | null;
@@ -878,6 +882,10 @@ export declare const listRuns: ((input: {
878
882
  readonly dispatchedCount: number;
879
883
  readonly failedCount: number;
880
884
  readonly skippedCount: number;
885
+ readonly skippedReasons: readonly {
886
+ readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
887
+ readonly count: number;
888
+ }[];
881
889
  readonly estimatedCompletionAt: string | null;
882
890
  readonly failureReason: string | null;
883
891
  readonly holdReason: string | null;
@@ -956,6 +964,10 @@ export declare const listRuns: ((input: {
956
964
  readonly dispatchedCount: number;
957
965
  readonly failedCount: number;
958
966
  readonly skippedCount: number;
967
+ readonly skippedReasons: readonly {
968
+ readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
969
+ readonly count: number;
970
+ }[];
959
971
  readonly estimatedCompletionAt: string | null;
960
972
  readonly failureReason: string | null;
961
973
  readonly holdReason: string | null;
@@ -1032,6 +1044,10 @@ export declare const scheduleRun: (input: {
1032
1044
  readonly dispatchedCount: number;
1033
1045
  readonly failedCount: number;
1034
1046
  readonly skippedCount: number;
1047
+ readonly skippedReasons: readonly {
1048
+ readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
1049
+ readonly count: number;
1050
+ }[];
1035
1051
  readonly estimatedCompletionAt: string | null;
1036
1052
  readonly failureReason: string | null;
1037
1053
  readonly holdReason: string | null;
@@ -1106,6 +1122,10 @@ export declare const getRun: (input: {
1106
1122
  readonly dispatchedCount: number;
1107
1123
  readonly failedCount: number;
1108
1124
  readonly skippedCount: number;
1125
+ readonly skippedReasons: readonly {
1126
+ readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
1127
+ readonly count: number;
1128
+ }[];
1109
1129
  readonly estimatedCompletionAt: string | null;
1110
1130
  readonly failureReason: string | null;
1111
1131
  readonly holdReason: string | null;
@@ -1182,6 +1202,10 @@ export declare const pauseRun: (input: {
1182
1202
  readonly dispatchedCount: number;
1183
1203
  readonly failedCount: number;
1184
1204
  readonly skippedCount: number;
1205
+ readonly skippedReasons: readonly {
1206
+ readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
1207
+ readonly count: number;
1208
+ }[];
1185
1209
  readonly estimatedCompletionAt: string | null;
1186
1210
  readonly failureReason: string | null;
1187
1211
  readonly holdReason: string | null;
@@ -1259,6 +1283,10 @@ export declare const resumeRun: (input: {
1259
1283
  readonly dispatchedCount: number;
1260
1284
  readonly failedCount: number;
1261
1285
  readonly skippedCount: number;
1286
+ readonly skippedReasons: readonly {
1287
+ readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
1288
+ readonly count: number;
1289
+ }[];
1262
1290
  readonly estimatedCompletionAt: string | null;
1263
1291
  readonly failureReason: string | null;
1264
1292
  readonly holdReason: string | null;
@@ -1336,6 +1364,10 @@ export declare const cancelRun: (input: {
1336
1364
  readonly dispatchedCount: number;
1337
1365
  readonly failedCount: number;
1338
1366
  readonly skippedCount: number;
1367
+ readonly skippedReasons: readonly {
1368
+ readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
1369
+ readonly count: number;
1370
+ }[];
1339
1371
  readonly estimatedCompletionAt: string | null;
1340
1372
  readonly failureReason: string | null;
1341
1373
  readonly holdReason: string | null;
@@ -1362,7 +1394,7 @@ export declare const listRecipients: ((input: {
1362
1394
  readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
1363
1395
  readonly messageId: string | null;
1364
1396
  readonly failureReason: string | null;
1365
- readonly skippedReason: "blocked" | "inactive" | "no_identity" | "run_cancelled" | "run_failed" | "suppressed" | "unsubscribed" | null;
1397
+ readonly skippedReason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
1366
1398
  readonly createdAt: string;
1367
1399
  readonly updatedAt: string;
1368
1400
  }[];
@@ -1382,7 +1414,7 @@ export declare const listRecipients: ((input: {
1382
1414
  readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
1383
1415
  readonly messageId: string | null;
1384
1416
  readonly failureReason: string | null;
1385
- readonly skippedReason: "blocked" | "inactive" | "no_identity" | "run_cancelled" | "run_failed" | "suppressed" | "unsubscribed" | null;
1417
+ readonly skippedReason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
1386
1418
  readonly createdAt: string;
1387
1419
  readonly updatedAt: string;
1388
1420
  }[];
@@ -1401,7 +1433,7 @@ export declare const listRecipients: ((input: {
1401
1433
  readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
1402
1434
  readonly messageId: string | null;
1403
1435
  readonly failureReason: string | null;
1404
- readonly skippedReason: "blocked" | "inactive" | "no_identity" | "run_cancelled" | "run_failed" | "suppressed" | "unsubscribed" | null;
1436
+ readonly skippedReason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
1405
1437
  readonly createdAt: string;
1406
1438
  readonly updatedAt: string;
1407
1439
  }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
@@ -275,9 +275,21 @@ export declare const getMembers: ((input: {
275
275
  readonly type: string;
276
276
  readonly identities?: readonly {
277
277
  readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
278
- readonly channel: "email";
278
+ readonly type: "email" | "phone";
279
279
  readonly identifier: string;
280
280
  readonly verified: boolean;
281
+ readonly channels: readonly {
282
+ readonly channel: "email";
283
+ readonly reachability: "reachable" | "unknown" | "unreachable";
284
+ readonly consent: {
285
+ readonly status: "opted_in" | "opted_out";
286
+ readonly source: string;
287
+ readonly capturedAt: string;
288
+ readonly proof: {
289
+ readonly [x: string]: import("./generated").JsonValue;
290
+ } | null;
291
+ } | null;
292
+ }[];
281
293
  }[] | null;
282
294
  } | null;
283
295
  }[];
@@ -304,9 +316,21 @@ export declare const getMembers: ((input: {
304
316
  readonly type: string;
305
317
  readonly identities?: readonly {
306
318
  readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
307
- readonly channel: "email";
319
+ readonly type: "email" | "phone";
308
320
  readonly identifier: string;
309
321
  readonly verified: boolean;
322
+ readonly channels: readonly {
323
+ readonly channel: "email";
324
+ readonly reachability: "reachable" | "unknown" | "unreachable";
325
+ readonly consent: {
326
+ readonly status: "opted_in" | "opted_out";
327
+ readonly source: string;
328
+ readonly capturedAt: string;
329
+ readonly proof: {
330
+ readonly [x: string]: import("./generated").JsonValue;
331
+ } | null;
332
+ } | null;
333
+ }[];
310
334
  }[] | null;
311
335
  } | null;
312
336
  }[];
@@ -332,9 +356,21 @@ export declare const getMembers: ((input: {
332
356
  readonly type: string;
333
357
  readonly identities?: readonly {
334
358
  readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
335
- readonly channel: "email";
359
+ readonly type: "email" | "phone";
336
360
  readonly identifier: string;
337
361
  readonly verified: boolean;
362
+ readonly channels: readonly {
363
+ readonly channel: "email";
364
+ readonly reachability: "reachable" | "unknown" | "unreachable";
365
+ readonly consent: {
366
+ readonly status: "opted_in" | "opted_out";
367
+ readonly source: string;
368
+ readonly capturedAt: string;
369
+ readonly proof: {
370
+ readonly [x: string]: import("./generated").JsonValue;
371
+ } | null;
372
+ } | null;
373
+ }[];
338
374
  }[] | null;
339
375
  } | null;
340
376
  }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;