samva 0.4.0 → 0.5.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/dist/{categories-CsUa8ojo.js → categories-B9Nw2v_F.js} +5 -1
- package/dist/client/sdk.gen.d.ts +150 -11
- package/dist/client/types.gen.d.ts +893 -37
- package/dist/{client-BmZK_uCt.js → client-B7gEkvEq.js} +952 -110
- package/dist/{client-attribution-BslSOa_8.js → client-attribution-B2yJBXdZ.js} +2 -2
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +16 -0
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +15 -0
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +700 -2
- package/dist/effect/email.js +27 -3
- package/dist/effect/generated-metadata.d.ts +4 -0
- package/dist/effect/generated.d.ts +4102 -359
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/operation.d.ts +13 -3
- package/dist/effect/media.d.ts +3 -3
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +180 -1
- package/dist/effect/messages.js +5 -3
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +90 -6
- package/dist/effect/scheduled-messages.js +5 -3
- package/dist/effect/templates.d.ts +12 -0
- package/dist/effect/templates.js +2 -2
- package/dist/effect/webhooks.d.ts +40 -6
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{operation-B1knNlxk.js → operation-B4FjN6wq.js} +50 -2
- package/dist/promises/errors.gen.d.ts +21 -2
- package/dist/promises/index.d.ts +1 -0
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-n1opem5V.js → promises-CP_nxUus.js} +502 -11
- package/dist/service-map.d.ts +66 -0
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//#endregion
|
|
2
2
|
//#region src/client-attribution.ts
|
|
3
|
-
const SDK_VERSION = "0.
|
|
3
|
+
const SDK_VERSION = "0.5.0";
|
|
4
4
|
const CLIENT_ATTRIBUTION_HEADER = "x-samva-client";
|
|
5
5
|
const clientAttribution = (surface) => `${surface}/${SDK_VERSION}`;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { clientAttribution as n, CLIENT_ATTRIBUTION_HEADER as t };
|
|
8
8
|
|
|
9
|
-
//# sourceMappingURL=client-attribution-
|
|
9
|
+
//# sourceMappingURL=client-attribution-B2yJBXdZ.js.map
|
package/dist/effect/api-keys.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-B4FjN6wq.js";
|
|
3
3
|
//#region src/effect/api-keys.ts
|
|
4
4
|
var api_keys_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
create: () => create,
|
|
@@ -780,6 +780,8 @@ export declare const listRuns: ((input: {
|
|
|
780
780
|
readonly failedCount: number;
|
|
781
781
|
readonly skippedCount: number;
|
|
782
782
|
readonly failureReason: string | null;
|
|
783
|
+
readonly holdReason: string | null;
|
|
784
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
783
785
|
readonly lastContactId: string | null;
|
|
784
786
|
readonly createdBy: string | null;
|
|
785
787
|
readonly actorEmail: string;
|
|
@@ -859,6 +861,8 @@ export declare const listRuns: ((input: {
|
|
|
859
861
|
readonly failedCount: number;
|
|
860
862
|
readonly skippedCount: number;
|
|
861
863
|
readonly failureReason: string | null;
|
|
864
|
+
readonly holdReason: string | null;
|
|
865
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
862
866
|
readonly lastContactId: string | null;
|
|
863
867
|
readonly createdBy: string | null;
|
|
864
868
|
readonly actorEmail: string;
|
|
@@ -937,6 +941,8 @@ export declare const listRuns: ((input: {
|
|
|
937
941
|
readonly failedCount: number;
|
|
938
942
|
readonly skippedCount: number;
|
|
939
943
|
readonly failureReason: string | null;
|
|
944
|
+
readonly holdReason: string | null;
|
|
945
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
940
946
|
readonly lastContactId: string | null;
|
|
941
947
|
readonly createdBy: string | null;
|
|
942
948
|
readonly actorEmail: string;
|
|
@@ -1008,6 +1014,8 @@ export declare const scheduleRun: (input: {
|
|
|
1008
1014
|
readonly failedCount: number;
|
|
1009
1015
|
readonly skippedCount: number;
|
|
1010
1016
|
readonly failureReason: string | null;
|
|
1017
|
+
readonly holdReason: string | null;
|
|
1018
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
1011
1019
|
readonly lastContactId: string | null;
|
|
1012
1020
|
readonly createdBy: string | null;
|
|
1013
1021
|
readonly actorEmail: string;
|
|
@@ -1077,6 +1085,8 @@ export declare const getRun: (input: {
|
|
|
1077
1085
|
readonly failedCount: number;
|
|
1078
1086
|
readonly skippedCount: number;
|
|
1079
1087
|
readonly failureReason: string | null;
|
|
1088
|
+
readonly holdReason: string | null;
|
|
1089
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
1080
1090
|
readonly lastContactId: string | null;
|
|
1081
1091
|
readonly createdBy: string | null;
|
|
1082
1092
|
readonly actorEmail: string;
|
|
@@ -1148,6 +1158,8 @@ export declare const pauseRun: (input: {
|
|
|
1148
1158
|
readonly failedCount: number;
|
|
1149
1159
|
readonly skippedCount: number;
|
|
1150
1160
|
readonly failureReason: string | null;
|
|
1161
|
+
readonly holdReason: string | null;
|
|
1162
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
1151
1163
|
readonly lastContactId: string | null;
|
|
1152
1164
|
readonly createdBy: string | null;
|
|
1153
1165
|
readonly actorEmail: string;
|
|
@@ -1220,6 +1232,8 @@ export declare const resumeRun: (input: {
|
|
|
1220
1232
|
readonly failedCount: number;
|
|
1221
1233
|
readonly skippedCount: number;
|
|
1222
1234
|
readonly failureReason: string | null;
|
|
1235
|
+
readonly holdReason: string | null;
|
|
1236
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
1223
1237
|
readonly lastContactId: string | null;
|
|
1224
1238
|
readonly createdBy: string | null;
|
|
1225
1239
|
readonly actorEmail: string;
|
|
@@ -1292,6 +1306,8 @@ export declare const cancelRun: (input: {
|
|
|
1292
1306
|
readonly failedCount: number;
|
|
1293
1307
|
readonly skippedCount: number;
|
|
1294
1308
|
readonly failureReason: string | null;
|
|
1309
|
+
readonly holdReason: string | null;
|
|
1310
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
1295
1311
|
readonly lastContactId: string | null;
|
|
1296
1312
|
readonly createdBy: string | null;
|
|
1297
1313
|
readonly actorEmail: string;
|
package/dist/effect/campaigns.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-B4FjN6wq.js";
|
|
3
3
|
//#region src/effect/campaigns.ts
|
|
4
4
|
var campaigns_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
archive: () => archive,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as isTransient, a as catchNotFoundError, c as catchValidationError, d as isAuthError, f as isBillingError, g as isThrottlingError, h as isRetryable, i as catchConflictError, l as categoriesOf, m as isNotFoundError, n as catchBillingError, o as catchThrottlingError, p as isConflictError, r as catchCategory, s as catchTransient, t as catchAuthError, u as hasCategory, v as isValidationError } from "../categories-
|
|
1
|
+
import { _ as isTransient, a as catchNotFoundError, c as catchValidationError, d as isAuthError, f as isBillingError, g as isThrottlingError, h as isRetryable, i as catchConflictError, l as categoriesOf, m as isNotFoundError, n as catchBillingError, o as catchThrottlingError, p as isConflictError, r as catchCategory, s as catchTransient, t as catchAuthError, u as hasCategory, v as isValidationError } from "../categories-B9Nw2v_F.js";
|
|
2
2
|
export { catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
|
package/dist/effect/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { i as raw, n as layer, r as layerFetch, t as Service } from "../client-
|
|
2
|
+
import { i as raw, n as layer, r as layerFetch, t as Service } from "../client-B7gEkvEq.js";
|
|
3
3
|
//#region src/effect/client.ts
|
|
4
4
|
var client_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
Service: () => Service,
|
package/dist/effect/contacts.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-B4FjN6wq.js";
|
|
3
3
|
//#region src/effect/contacts.ts
|
|
4
4
|
var contacts_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
bulkDelete: () => bulkDelete,
|
|
@@ -700,6 +700,11 @@ export declare const listMessages: ((input: {
|
|
|
700
700
|
} | null;
|
|
701
701
|
}[];
|
|
702
702
|
readonly deliveries: readonly {
|
|
703
|
+
readonly scheduling: {
|
|
704
|
+
readonly dueAt: string;
|
|
705
|
+
readonly expiresAt: string;
|
|
706
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
|
|
707
|
+
} | null;
|
|
703
708
|
readonly id: string;
|
|
704
709
|
readonly messageId: string;
|
|
705
710
|
readonly recipientId: string | null;
|
|
@@ -850,6 +855,11 @@ export declare const listMessages: ((input: {
|
|
|
850
855
|
} | null;
|
|
851
856
|
}[];
|
|
852
857
|
readonly deliveries: readonly {
|
|
858
|
+
readonly scheduling: {
|
|
859
|
+
readonly dueAt: string;
|
|
860
|
+
readonly expiresAt: string;
|
|
861
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
|
|
862
|
+
} | null;
|
|
853
863
|
readonly id: string;
|
|
854
864
|
readonly messageId: string;
|
|
855
865
|
readonly recipientId: string | null;
|
|
@@ -999,6 +1009,11 @@ export declare const listMessages: ((input: {
|
|
|
999
1009
|
} | null;
|
|
1000
1010
|
}[];
|
|
1001
1011
|
readonly deliveries: readonly {
|
|
1012
|
+
readonly scheduling: {
|
|
1013
|
+
readonly dueAt: string;
|
|
1014
|
+
readonly expiresAt: string;
|
|
1015
|
+
readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "provider-unavailable" | "rate" | "retry" | "tenant-health" | null;
|
|
1016
|
+
} | null;
|
|
1002
1017
|
readonly id: string;
|
|
1003
1018
|
readonly messageId: string;
|
|
1004
1019
|
readonly recipientId: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-B4FjN6wq.js";
|
|
3
3
|
//#region src/effect/conversations.ts
|
|
4
4
|
var conversations_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
addContacts: () => addContacts,
|
package/dist/effect/design.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-B4FjN6wq.js";
|
|
3
3
|
//#region src/effect/design.ts
|
|
4
4
|
var design_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
get: () => get,
|