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.
- package/README.md +2 -0
- package/dist/client/sdk.gen.d.ts +94 -36
- package/dist/client/sdk.gen.js +269 -55
- package/dist/client/types.gen.d.ts +497 -106
- package/dist/effect/campaigns.d.ts +35 -3
- package/dist/effect/contact-groups.d.ts +39 -3
- package/dist/effect/contacts.d.ts +240 -17
- package/dist/effect/contacts.js +3 -1
- package/dist/effect/conversations.d.ts +11 -11
- package/dist/effect/email.d.ts +22 -6
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +12 -12
- package/dist/effect/extensions.d.ts +3 -3
- package/dist/effect/generated/campaigns.d.ts +73 -4
- package/dist/effect/generated/campaigns.js +18 -1
- package/dist/effect/generated/contact-groups.d.ts +33 -3
- package/dist/effect/generated/contacts.d.ts +608 -55
- package/dist/effect/generated/contacts.js +55 -10
- package/dist/effect/generated/conversations.d.ts +25 -25
- package/dist/effect/generated/conversations.js +1 -1
- package/dist/effect/generated/email.d.ts +162 -1
- package/dist/effect/generated/email.js +31 -11
- package/dist/effect/generated/extension-installations.d.ts +44 -44
- package/dist/effect/generated/extension-installations.js +6 -0
- package/dist/effect/generated/extensions.d.ts +10 -10
- package/dist/effect/generated/extensions.js +2 -0
- package/dist/effect/generated/journeys.d.ts +13 -61
- package/dist/effect/generated/journeys.js +5 -5
- package/dist/effect/generated/mailboxes.d.ts +584 -78
- package/dist/effect/generated/mailboxes.js +65 -24
- package/dist/effect/generated/messages.d.ts +35 -1
- package/dist/effect/generated/messages.js +9 -2
- package/dist/effect/generated/namespaces.d.ts +432 -2
- package/dist/effect/generated/namespaces.js +91 -4
- package/dist/effect/generated/organizations.d.ts +13 -11
- package/dist/effect/generated/organizations.js +7 -3
- package/dist/effect/generated/shared.d.ts +104 -49
- package/dist/effect/generated/shared.js +51 -28
- package/dist/effect/generated/templates.d.ts +44 -1
- package/dist/effect/generated/templates.js +9 -3
- package/dist/effect/generated/unsubscribe-groups.d.ts +173 -78
- package/dist/effect/generated/unsubscribe-groups.js +75 -58
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/effect/generated/webhooks.js +8 -0
- package/dist/effect/generated-metadata.d.ts +22 -6
- package/dist/effect/generated-metadata.js +334 -329
- package/dist/effect/index.js +2 -2
- package/dist/effect/journeys.d.ts +4 -4
- package/dist/effect/mailboxes.d.ts +144 -12
- package/dist/effect/messages.d.ts +8 -0
- package/dist/effect/namespaces.d.ts +29 -0
- package/dist/effect/namespaces.js +7 -1
- package/dist/effect/organizations.d.ts +4 -4
- package/dist/effect/templates.d.ts +12 -1
- package/dist/effect/unsubscribe-groups.d.ts +29 -18
- package/dist/effect/unsubscribe-groups.js +5 -5
- package/dist/effect/webhooks.d.ts +8 -8
- package/dist/index.js +2 -2
- package/dist/mailbox-events.d.ts +31 -4
- package/dist/mailbox-events.js +39 -11
- package/dist/package.js +1 -1
- package/dist/promises/errors.gen.d.ts +2 -12
- package/dist/promises/errors.gen.js +1 -26
- package/dist/promises/index.d.ts +1 -1
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +24 -4
- package/dist/service-map.js +26 -2
- 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
|
|
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
|
|
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
|
|
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>;
|