samva 0.7.0 → 0.8.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/client/sdk.gen.d.ts +31 -18
- package/dist/client/types.gen.d.ts +133 -48
- package/dist/{client-5O8KsY5Z.js → client-ByJHYp7r.js} +155 -91
- package/dist/{client-attribution-27MNycCV.js → client-attribution-N5A784Zo.js} +2 -2
- package/dist/effect/analytics.js +1 -1
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/brands.js +2 -2
- package/dist/effect/campaigns.d.ts +34 -0
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contact-groups.js +1 -1
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +9 -9
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/custom-fields.js +1 -1
- package/dist/effect/email.js +2 -2
- package/dist/effect/generated.d.ts +508 -221
- package/dist/effect/index.js +1 -1
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +2 -0
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +5 -4
- package/dist/effect/organizations.js +4 -2
- package/dist/effect/scheduled-messages.d.ts +16 -0
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +30 -38
- package/dist/effect/templates.js +2 -2
- package/dist/effect/unsubscribe-groups.d.ts +17 -0
- package/dist/effect/unsubscribe-groups.js +4 -2
- package/dist/effect/webhooks.d.ts +6 -6
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{operation-Cb5V9FJ7.js → operation-D2nEeKBD.js} +7 -2
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-C2yyw-pf.js → promises-DAv8ZtOX.js} +51 -20
- package/dist/service-map.d.ts +9 -0
- package/package.json +2 -2
package/dist/effect/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ResourceNotFoundError, D as UnauthorizedError, S as RateLimitedError, _ as ForbiddenError, a as AnalyticsQueryError, b as OnboardingReviewRequiredError, c as CampaignFooterRequiredError, g as FlagDisabledError, h as ExternalServiceError, j as ValidationError, l as ConflictError, m as EmailChannelError, o as BillingProviderError, p as DeliveryUnavailableError, s as BrandAddressRequiredError, v as GatewayTimeoutError, x as PaymentRequiredError, y as InternalError } from "../client-
|
|
1
|
+
import { C as ResourceNotFoundError, D as UnauthorizedError, S as RateLimitedError, _ as ForbiddenError, a as AnalyticsQueryError, b as OnboardingReviewRequiredError, c as CampaignFooterRequiredError, g as FlagDisabledError, h as ExternalServiceError, j as ValidationError, l as ConflictError, m as EmailChannelError, o as BillingProviderError, p as DeliveryUnavailableError, s as BrandAddressRequiredError, v as GatewayTimeoutError, x as PaymentRequiredError, y as InternalError } from "../client-ByJHYp7r.js";
|
|
2
2
|
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-DvsHUJtX.js";
|
|
3
3
|
import { t as retry_exports } from "./retry.js";
|
|
4
4
|
import { t as analytics_exports } from "./analytics.js";
|
package/dist/effect/media.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-D2nEeKBD.js";
|
|
3
3
|
//#region src/effect/media.ts
|
|
4
4
|
var media_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
complete: () => complete,
|
|
@@ -907,6 +907,8 @@ export declare const validateEmail: (input: {
|
|
|
907
907
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
908
908
|
} | null | undefined;
|
|
909
909
|
} | null | undefined;
|
|
910
|
+
readonly locale?: string | undefined;
|
|
911
|
+
readonly timeZone?: string | undefined;
|
|
910
912
|
readonly inReplyToMessageId?: string | null | undefined;
|
|
911
913
|
readonly replyTo?: readonly string[] | null | undefined;
|
|
912
914
|
readonly unsubscribeGroupId?: string | null | undefined;
|
package/dist/effect/messages.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { i as sendMessage, n as make } from "../operation-
|
|
2
|
+
import { i as sendMessage, n as make } from "../operation-D2nEeKBD.js";
|
|
3
3
|
//#region src/effect/messages.ts
|
|
4
4
|
var messages_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
get: () => get,
|
|
@@ -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-D2nEeKBD.js";
|
|
3
3
|
//#region src/effect/operations.ts
|
|
4
4
|
var operations_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
get: () => get,
|
|
@@ -15,7 +15,6 @@ export declare const create: (input: {
|
|
|
15
15
|
readonly [x: string]: import("./generated").JsonValue;
|
|
16
16
|
} | null;
|
|
17
17
|
readonly replyToDefault: readonly string[] | null;
|
|
18
|
-
readonly defaultUnsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
19
18
|
readonly emailFooterEnabledDefault: boolean | null;
|
|
20
19
|
readonly messagesUsed: number;
|
|
21
20
|
readonly messagesUsedThisMonth: number;
|
|
@@ -41,7 +40,6 @@ export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
|
41
40
|
readonly [x: string]: import("./generated").JsonValue;
|
|
42
41
|
} | null;
|
|
43
42
|
readonly replyToDefault: readonly string[] | null;
|
|
44
|
-
readonly defaultUnsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
45
43
|
readonly emailFooterEnabledDefault: boolean | null;
|
|
46
44
|
readonly messagesUsed: number;
|
|
47
45
|
readonly messagesUsedThisMonth: number;
|
|
@@ -52,6 +50,11 @@ export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
|
52
50
|
readonly teamMembersUsed: number;
|
|
53
51
|
readonly messagesResetAt: string | null;
|
|
54
52
|
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
53
|
+
export declare const getProfile: (_?: never) => import("effect/Effect").Effect<{
|
|
54
|
+
readonly id: string;
|
|
55
|
+
readonly name: string;
|
|
56
|
+
readonly nickname: string;
|
|
57
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
55
58
|
export declare const update: (input?: {
|
|
56
59
|
readonly name?: string | null | undefined;
|
|
57
60
|
readonly slug?: string | null | undefined;
|
|
@@ -86,7 +89,6 @@ export declare const update: (input?: {
|
|
|
86
89
|
} | null | undefined;
|
|
87
90
|
} | null | undefined;
|
|
88
91
|
readonly replyToDefault?: readonly string[] | null | undefined;
|
|
89
|
-
readonly defaultUnsubscribeGroupId?: string | null | undefined;
|
|
90
92
|
readonly emailFooterEnabledDefault?: boolean | null | undefined;
|
|
91
93
|
} | undefined) => import("effect/Effect").Effect<{
|
|
92
94
|
readonly id: string;
|
|
@@ -103,7 +105,6 @@ export declare const update: (input?: {
|
|
|
103
105
|
readonly [x: string]: import("./generated").JsonValue;
|
|
104
106
|
} | null;
|
|
105
107
|
readonly replyToDefault: readonly string[] | null;
|
|
106
|
-
readonly defaultUnsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
107
108
|
readonly emailFooterEnabledDefault: boolean | null;
|
|
108
109
|
readonly messagesUsed: number;
|
|
109
110
|
readonly messagesUsedThisMonth: number;
|
|
@@ -1,19 +1,21 @@
|
|
|
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-D2nEeKBD.js";
|
|
3
3
|
//#region src/effect/organizations.ts
|
|
4
4
|
var organizations_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
create: () => create,
|
|
6
6
|
delete: () => deleteOrganization,
|
|
7
7
|
get: () => get,
|
|
8
|
+
getProfile: () => getProfile,
|
|
8
9
|
getUsage: () => getUsage,
|
|
9
10
|
update: () => update
|
|
10
11
|
});
|
|
11
12
|
const create = make("organizationsCreate");
|
|
12
13
|
const get = make("organizationsGet");
|
|
14
|
+
const getProfile = make("organizationsGetProfile");
|
|
13
15
|
const update = make("organizationsUpdate");
|
|
14
16
|
const getUsage = make("organizationsGetUsage");
|
|
15
17
|
const deleteOrganization = make("organizationsDelete");
|
|
16
18
|
//#endregion
|
|
17
|
-
export { create, deleteOrganization as delete, get, getUsage, organizations_exports as t, update };
|
|
19
|
+
export { create, deleteOrganization as delete, get, getProfile, getUsage, organizations_exports as t, update };
|
|
18
20
|
|
|
19
21
|
//# sourceMappingURL=organizations.js.map
|
|
@@ -57,6 +57,8 @@ export declare const list: ((input?: {
|
|
|
57
57
|
readonly templateData?: {
|
|
58
58
|
readonly [x: string]: import("./generated").JsonValue;
|
|
59
59
|
} | null;
|
|
60
|
+
readonly locale?: string;
|
|
61
|
+
readonly timeZone?: string;
|
|
60
62
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
61
63
|
readonly replyTo?: readonly string[] | null;
|
|
62
64
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -146,6 +148,8 @@ export declare const list: ((input?: {
|
|
|
146
148
|
readonly templateData?: {
|
|
147
149
|
readonly [x: string]: import("./generated").JsonValue;
|
|
148
150
|
} | null;
|
|
151
|
+
readonly locale?: string;
|
|
152
|
+
readonly timeZone?: string;
|
|
149
153
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
150
154
|
readonly replyTo?: readonly string[] | null;
|
|
151
155
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -234,6 +238,8 @@ export declare const list: ((input?: {
|
|
|
234
238
|
readonly templateData?: {
|
|
235
239
|
readonly [x: string]: import("./generated").JsonValue;
|
|
236
240
|
} | null;
|
|
241
|
+
readonly locale?: string;
|
|
242
|
+
readonly timeZone?: string;
|
|
237
243
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
238
244
|
readonly replyTo?: readonly string[] | null;
|
|
239
245
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -356,6 +362,8 @@ export declare const create: (input: {
|
|
|
356
362
|
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
357
363
|
} | null | undefined;
|
|
358
364
|
} | null | undefined;
|
|
365
|
+
readonly locale?: string | undefined;
|
|
366
|
+
readonly timeZone?: string | undefined;
|
|
359
367
|
readonly inReplyToMessageId?: string | null | undefined;
|
|
360
368
|
readonly replyTo?: readonly string[] | null | undefined;
|
|
361
369
|
readonly unsubscribeGroupId?: string | null | undefined;
|
|
@@ -426,6 +434,8 @@ export declare const create: (input: {
|
|
|
426
434
|
readonly templateData?: {
|
|
427
435
|
readonly [x: string]: import("./generated").JsonValue;
|
|
428
436
|
} | null;
|
|
437
|
+
readonly locale?: string;
|
|
438
|
+
readonly timeZone?: string;
|
|
429
439
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
430
440
|
readonly replyTo?: readonly string[] | null;
|
|
431
441
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -505,6 +515,8 @@ export declare const get: (input: {
|
|
|
505
515
|
readonly templateData?: {
|
|
506
516
|
readonly [x: string]: import("./generated").JsonValue;
|
|
507
517
|
} | null;
|
|
518
|
+
readonly locale?: string;
|
|
519
|
+
readonly timeZone?: string;
|
|
508
520
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
509
521
|
readonly replyTo?: readonly string[] | null;
|
|
510
522
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -586,6 +598,8 @@ export declare const cancel: (input: {
|
|
|
586
598
|
readonly templateData?: {
|
|
587
599
|
readonly [x: string]: import("./generated").JsonValue;
|
|
588
600
|
} | null;
|
|
601
|
+
readonly locale?: string;
|
|
602
|
+
readonly timeZone?: string;
|
|
589
603
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
590
604
|
readonly replyTo?: readonly string[] | null;
|
|
591
605
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
@@ -671,6 +685,8 @@ export declare const resume: (input: {
|
|
|
671
685
|
readonly templateData?: {
|
|
672
686
|
readonly [x: string]: import("./generated").JsonValue;
|
|
673
687
|
} | null;
|
|
688
|
+
readonly locale?: string;
|
|
689
|
+
readonly timeZone?: string;
|
|
674
690
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
675
691
|
readonly replyTo?: readonly string[] | null;
|
|
676
692
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | 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-D2nEeKBD.js";
|
|
3
3
|
//#region src/effect/scheduled-messages.ts
|
|
4
4
|
var scheduled_messages_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
cancel: () => cancel,
|
|
@@ -1405,10 +1405,6 @@ export declare const checkWorkspace: (input: {
|
|
|
1405
1405
|
readonly schemaDigest: string;
|
|
1406
1406
|
readonly contractDigest: string;
|
|
1407
1407
|
};
|
|
1408
|
-
readonly runtime: {
|
|
1409
|
-
readonly now?: number;
|
|
1410
|
-
readonly randomSeed?: number;
|
|
1411
|
-
};
|
|
1412
1408
|
readonly fixtures: readonly string[];
|
|
1413
1409
|
} | null;
|
|
1414
1410
|
readonly diagnostics: readonly {
|
|
@@ -1476,10 +1472,6 @@ export declare const renderWorkspaceFixture: (input: {
|
|
|
1476
1472
|
readonly schemaDigest: string;
|
|
1477
1473
|
readonly contractDigest: string;
|
|
1478
1474
|
};
|
|
1479
|
-
readonly runtime: {
|
|
1480
|
-
readonly now?: number;
|
|
1481
|
-
readonly randomSeed?: number;
|
|
1482
|
-
};
|
|
1483
1475
|
readonly fixtures: readonly string[];
|
|
1484
1476
|
} | null;
|
|
1485
1477
|
readonly diagnostics: readonly {
|
|
@@ -1570,26 +1562,16 @@ export declare const publish: (input: {
|
|
|
1570
1562
|
readonly buildIdentity: string;
|
|
1571
1563
|
readonly manifest: {
|
|
1572
1564
|
readonly templateKey: string;
|
|
1573
|
-
readonly
|
|
1574
|
-
readonly
|
|
1565
|
+
readonly ir: {
|
|
1566
|
+
readonly version: number;
|
|
1567
|
+
readonly digest: string;
|
|
1575
1568
|
readonly bytes: number;
|
|
1576
1569
|
};
|
|
1570
|
+
readonly compiler: string;
|
|
1577
1571
|
readonly input: {
|
|
1578
1572
|
readonly schemaDigest: string;
|
|
1579
1573
|
readonly contractDigest: string;
|
|
1580
1574
|
};
|
|
1581
|
-
readonly environment: {
|
|
1582
|
-
readonly locale: string;
|
|
1583
|
-
readonly timeZone: "UTC";
|
|
1584
|
-
readonly now?: number;
|
|
1585
|
-
readonly randomSeed?: number;
|
|
1586
|
-
readonly compiler: string;
|
|
1587
|
-
readonly runtime: string;
|
|
1588
|
-
readonly checker: string;
|
|
1589
|
-
readonly lockKind: "bun" | "npm";
|
|
1590
|
-
readonly lockDigest: string;
|
|
1591
|
-
readonly digest: string;
|
|
1592
|
-
};
|
|
1593
1575
|
readonly assets: {
|
|
1594
1576
|
readonly base: string;
|
|
1595
1577
|
readonly entries: readonly {
|
|
@@ -1630,11 +1612,21 @@ export declare const publish: (input: {
|
|
|
1630
1612
|
readonly url: string;
|
|
1631
1613
|
}[] | null;
|
|
1632
1614
|
};
|
|
1615
|
+
readonly renderedFooter: {
|
|
1616
|
+
readonly withUnsubscribe: {
|
|
1617
|
+
readonly html: string;
|
|
1618
|
+
readonly text: string;
|
|
1619
|
+
};
|
|
1620
|
+
readonly withoutUnsubscribe: {
|
|
1621
|
+
readonly html: string;
|
|
1622
|
+
readonly text: string;
|
|
1623
|
+
};
|
|
1624
|
+
};
|
|
1633
1625
|
readonly digest: string;
|
|
1634
1626
|
readonly rendersFooter: "every" | "none" | "some";
|
|
1635
1627
|
};
|
|
1636
1628
|
};
|
|
1637
|
-
readonly
|
|
1629
|
+
readonly ir: {
|
|
1638
1630
|
readonly key: string;
|
|
1639
1631
|
readonly digest: string;
|
|
1640
1632
|
};
|
|
@@ -1712,26 +1704,16 @@ export declare const getPublication: (input: {
|
|
|
1712
1704
|
readonly buildIdentity: string;
|
|
1713
1705
|
readonly manifest: {
|
|
1714
1706
|
readonly templateKey: string;
|
|
1715
|
-
readonly
|
|
1716
|
-
readonly
|
|
1707
|
+
readonly ir: {
|
|
1708
|
+
readonly version: number;
|
|
1709
|
+
readonly digest: string;
|
|
1717
1710
|
readonly bytes: number;
|
|
1718
1711
|
};
|
|
1712
|
+
readonly compiler: string;
|
|
1719
1713
|
readonly input: {
|
|
1720
1714
|
readonly schemaDigest: string;
|
|
1721
1715
|
readonly contractDigest: string;
|
|
1722
1716
|
};
|
|
1723
|
-
readonly environment: {
|
|
1724
|
-
readonly locale: string;
|
|
1725
|
-
readonly timeZone: "UTC";
|
|
1726
|
-
readonly now?: number;
|
|
1727
|
-
readonly randomSeed?: number;
|
|
1728
|
-
readonly compiler: string;
|
|
1729
|
-
readonly runtime: string;
|
|
1730
|
-
readonly checker: string;
|
|
1731
|
-
readonly lockKind: "bun" | "npm";
|
|
1732
|
-
readonly lockDigest: string;
|
|
1733
|
-
readonly digest: string;
|
|
1734
|
-
};
|
|
1735
1717
|
readonly assets: {
|
|
1736
1718
|
readonly base: string;
|
|
1737
1719
|
readonly entries: readonly {
|
|
@@ -1772,11 +1754,21 @@ export declare const getPublication: (input: {
|
|
|
1772
1754
|
readonly url: string;
|
|
1773
1755
|
}[] | null;
|
|
1774
1756
|
};
|
|
1757
|
+
readonly renderedFooter: {
|
|
1758
|
+
readonly withUnsubscribe: {
|
|
1759
|
+
readonly html: string;
|
|
1760
|
+
readonly text: string;
|
|
1761
|
+
};
|
|
1762
|
+
readonly withoutUnsubscribe: {
|
|
1763
|
+
readonly html: string;
|
|
1764
|
+
readonly text: string;
|
|
1765
|
+
};
|
|
1766
|
+
};
|
|
1775
1767
|
readonly digest: string;
|
|
1776
1768
|
readonly rendersFooter: "every" | "none" | "some";
|
|
1777
1769
|
};
|
|
1778
1770
|
};
|
|
1779
|
-
readonly
|
|
1771
|
+
readonly ir: {
|
|
1780
1772
|
readonly key: string;
|
|
1781
1773
|
readonly digest: string;
|
|
1782
1774
|
};
|
package/dist/effect/templates.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
3
|
-
import { d as CreateTemplatePayload, k as UpdateTemplatePayload } from "../client-
|
|
2
|
+
import { n as make } from "../operation-D2nEeKBD.js";
|
|
3
|
+
import { d as CreateTemplatePayload, k as UpdateTemplatePayload } from "../client-ByJHYp7r.js";
|
|
4
4
|
//#region src/effect/templates.ts
|
|
5
5
|
var templates_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
CreatePayload: () => CreateTemplatePayload,
|
|
@@ -7,6 +7,7 @@ export declare const list: ((input?: {
|
|
|
7
7
|
readonly organizationId: string;
|
|
8
8
|
readonly name: string;
|
|
9
9
|
readonly description: string | null;
|
|
10
|
+
readonly isDefault: boolean;
|
|
10
11
|
readonly memberCount: number;
|
|
11
12
|
readonly createdAt: string;
|
|
12
13
|
readonly updatedAt: string;
|
|
@@ -27,6 +28,7 @@ export declare const list: ((input?: {
|
|
|
27
28
|
readonly organizationId: string;
|
|
28
29
|
readonly name: string;
|
|
29
30
|
readonly description: string | null;
|
|
31
|
+
readonly isDefault: boolean;
|
|
30
32
|
readonly memberCount: number;
|
|
31
33
|
readonly createdAt: string;
|
|
32
34
|
readonly updatedAt: string;
|
|
@@ -46,6 +48,7 @@ export declare const list: ((input?: {
|
|
|
46
48
|
readonly organizationId: string;
|
|
47
49
|
readonly name: string;
|
|
48
50
|
readonly description: string | null;
|
|
51
|
+
readonly isDefault: boolean;
|
|
49
52
|
readonly memberCount: number;
|
|
50
53
|
readonly createdAt: string;
|
|
51
54
|
readonly updatedAt: string;
|
|
@@ -59,6 +62,7 @@ export declare const create: (input: {
|
|
|
59
62
|
readonly organizationId: string;
|
|
60
63
|
readonly name: string;
|
|
61
64
|
readonly description: string | null;
|
|
65
|
+
readonly isDefault: boolean;
|
|
62
66
|
readonly memberCount: number;
|
|
63
67
|
readonly createdAt: string;
|
|
64
68
|
readonly updatedAt: string;
|
|
@@ -72,6 +76,7 @@ export declare const update: (input: {
|
|
|
72
76
|
readonly organizationId: string;
|
|
73
77
|
readonly name: string;
|
|
74
78
|
readonly description: string | null;
|
|
79
|
+
readonly isDefault: boolean;
|
|
75
80
|
readonly memberCount: number;
|
|
76
81
|
readonly createdAt: string;
|
|
77
82
|
readonly updatedAt: string;
|
|
@@ -80,6 +85,18 @@ export declare const remove: (input: {
|
|
|
80
85
|
readonly id: string;
|
|
81
86
|
}) => import("effect/Effect").Effect<{
|
|
82
87
|
readonly success: boolean;
|
|
88
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
89
|
+
export declare const setDefault: (input: {
|
|
90
|
+
readonly id: string;
|
|
91
|
+
}) => import("effect/Effect").Effect<{
|
|
92
|
+
readonly id: string & import("effect/Brand").Brand<"UnsubscribeId">;
|
|
93
|
+
readonly organizationId: string;
|
|
94
|
+
readonly name: string;
|
|
95
|
+
readonly description: string | null;
|
|
96
|
+
readonly isDefault: boolean;
|
|
97
|
+
readonly memberCount: number;
|
|
98
|
+
readonly createdAt: string;
|
|
99
|
+
readonly updatedAt: string;
|
|
83
100
|
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
84
101
|
export declare const listMembers: ((input: {
|
|
85
102
|
readonly groupId: string;
|
|
@@ -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-D2nEeKBD.js";
|
|
3
3
|
//#region src/effect/unsubscribe-groups.ts
|
|
4
4
|
var unsubscribe_groups_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
addEmails: () => addEmails,
|
|
@@ -9,17 +9,19 @@ var unsubscribe_groups_exports = /* @__PURE__ */ __exportAll({
|
|
|
9
9
|
listMembers: () => listMembers,
|
|
10
10
|
remove: () => remove,
|
|
11
11
|
removeEmails: () => removeEmails,
|
|
12
|
+
setDefault: () => setDefault,
|
|
12
13
|
update: () => update
|
|
13
14
|
});
|
|
14
15
|
const list = make("unsubscribeList");
|
|
15
16
|
const create = make("unsubscribeCreate");
|
|
16
17
|
const update = make("unsubscribeUpdate");
|
|
17
18
|
const remove = make("unsubscribeRemove");
|
|
19
|
+
const setDefault = make("unsubscribeSetDefault");
|
|
18
20
|
const listMembers = make("unsubscribeListMembers");
|
|
19
21
|
const addEmails = make("unsubscribeAddEmails");
|
|
20
22
|
const removeEmails = make("unsubscribeRemoveEmails");
|
|
21
23
|
const checkSubscription = make("unsubscribeCheckSubscription");
|
|
22
24
|
//#endregion
|
|
23
|
-
export { addEmails, checkSubscription, create, list, listMembers, remove, removeEmails, unsubscribe_groups_exports as t, update };
|
|
25
|
+
export { addEmails, checkSubscription, create, list, listMembers, remove, removeEmails, setDefault, unsubscribe_groups_exports as t, update };
|
|
24
26
|
|
|
25
27
|
//# sourceMappingURL=unsubscribe-groups.js.map
|
|
@@ -9,7 +9,7 @@ export declare const list: ((input?: {
|
|
|
9
9
|
readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
|
|
10
10
|
readonly name: string;
|
|
11
11
|
readonly url: string;
|
|
12
|
-
readonly eventTypes: readonly ("contact.created" | "contact.deleted" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "message.bounced" | "message.complained" | "message.delivered" | "message.failed" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
12
|
+
readonly eventTypes: readonly ("contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
13
13
|
readonly channels: readonly "email"[] | null;
|
|
14
14
|
readonly status: "active" | "disabled";
|
|
15
15
|
readonly hasCustomHeaders: boolean;
|
|
@@ -42,7 +42,7 @@ export declare const list: ((input?: {
|
|
|
42
42
|
readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
|
|
43
43
|
readonly name: string;
|
|
44
44
|
readonly url: string;
|
|
45
|
-
readonly eventTypes: readonly ("contact.created" | "contact.deleted" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "message.bounced" | "message.complained" | "message.delivered" | "message.failed" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
45
|
+
readonly eventTypes: readonly ("contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
46
46
|
readonly channels: readonly "email"[] | null;
|
|
47
47
|
readonly status: "active" | "disabled";
|
|
48
48
|
readonly hasCustomHeaders: boolean;
|
|
@@ -74,7 +74,7 @@ export declare const list: ((input?: {
|
|
|
74
74
|
readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
|
|
75
75
|
readonly name: string;
|
|
76
76
|
readonly url: string;
|
|
77
|
-
readonly eventTypes: readonly ("contact.created" | "contact.deleted" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "message.bounced" | "message.complained" | "message.delivered" | "message.failed" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
77
|
+
readonly eventTypes: readonly ("contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
78
78
|
readonly channels: readonly "email"[] | null;
|
|
79
79
|
readonly status: "active" | "disabled";
|
|
80
80
|
readonly hasCustomHeaders: boolean;
|
|
@@ -105,7 +105,7 @@ export declare const create: (input: {
|
|
|
105
105
|
readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
|
|
106
106
|
readonly name: string;
|
|
107
107
|
readonly url: string;
|
|
108
|
-
readonly eventTypes: readonly ("contact.created" | "contact.deleted" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "message.bounced" | "message.complained" | "message.delivered" | "message.failed" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
108
|
+
readonly eventTypes: readonly ("contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
109
109
|
readonly channels: readonly "email"[] | null;
|
|
110
110
|
readonly status: "active" | "disabled";
|
|
111
111
|
readonly hasCustomHeaders: boolean;
|
|
@@ -122,7 +122,7 @@ export declare const get: (input: {
|
|
|
122
122
|
readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
|
|
123
123
|
readonly name: string;
|
|
124
124
|
readonly url: string;
|
|
125
|
-
readonly eventTypes: readonly ("contact.created" | "contact.deleted" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "message.bounced" | "message.complained" | "message.delivered" | "message.failed" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
125
|
+
readonly eventTypes: readonly ("contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
126
126
|
readonly channels: readonly "email"[] | null;
|
|
127
127
|
readonly status: "active" | "disabled";
|
|
128
128
|
readonly hasCustomHeaders: boolean;
|
|
@@ -150,7 +150,7 @@ export declare const update: (input: {
|
|
|
150
150
|
readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
|
|
151
151
|
readonly name: string;
|
|
152
152
|
readonly url: string;
|
|
153
|
-
readonly eventTypes: readonly ("contact.created" | "contact.deleted" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "message.bounced" | "message.complained" | "message.delivered" | "message.failed" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
153
|
+
readonly eventTypes: readonly ("contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated")[];
|
|
154
154
|
readonly channels: readonly "email"[] | null;
|
|
155
155
|
readonly status: "active" | "disabled";
|
|
156
156
|
readonly hasCustomHeaders: boolean;
|
package/dist/effect/webhooks.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
3
|
-
import { A as UpdateWebhookPayload, T as TestWebhookPayload, f as CreateWebhookPayload } from "../client-
|
|
2
|
+
import { n as make } from "../operation-D2nEeKBD.js";
|
|
3
|
+
import { A as UpdateWebhookPayload, T as TestWebhookPayload, f as CreateWebhookPayload } from "../client-ByJHYp7r.js";
|
|
4
4
|
//#region src/effect/webhooks.ts
|
|
5
5
|
var webhooks_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
CreatePayload: () => CreateWebhookPayload,
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as fromApiError, _ as ResourceNotFoundError, a as CampaignFooterRequiredError, b as UnauthorizedError, c as EmailChannelError, d as ForbiddenError, f as GatewayTimeoutError, g as RateLimitedError, h as PaymentRequiredError, i as BrandAddressRequiredError, l as ExternalServiceError, m as OnboardingReviewRequiredError, n as AnalyticsQueryError, o as ConflictError, p as InternalError, r as BillingProviderError, s as DeliveryUnavailableError, t as createClient, u as FlagDisabledError, v as SamvaApiError, x as ValidationError, y as SamvaTransportError } from "./promises-
|
|
1
|
+
import { S as fromApiError, _ as ResourceNotFoundError, a as CampaignFooterRequiredError, b as UnauthorizedError, c as EmailChannelError, d as ForbiddenError, f as GatewayTimeoutError, g as RateLimitedError, h as PaymentRequiredError, i as BrandAddressRequiredError, l as ExternalServiceError, m as OnboardingReviewRequiredError, n as AnalyticsQueryError, o as ConflictError, p as InternalError, r as BillingProviderError, s as DeliveryUnavailableError, t as createClient, u as FlagDisabledError, v as SamvaApiError, x as ValidationError, y as SamvaTransportError } from "./promises-DAv8ZtOX.js";
|
|
2
2
|
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, UnauthorizedError, ValidationError, createClient, fromApiError };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as buildMessagesSendPayload, r as replyToEmailsPayload, t as buildEmailSendPayload } from "./normalize-B79uJIeb.js";
|
|
2
|
-
import { t as Service, w as SamvaApi } from "./client-
|
|
2
|
+
import { t as Service, w as SamvaApi } from "./client-ByJHYp7r.js";
|
|
3
3
|
import { generateIdempotencyKey, withRetry } from "./effect/retry.js";
|
|
4
4
|
import { Effect, Option, Predicate, Stream } from "effect";
|
|
5
5
|
//#region src/service-map.ts
|
|
@@ -508,6 +508,7 @@ const SDK_OPERATION_CALLS = {
|
|
|
508
508
|
},
|
|
509
509
|
organizationsCreate: { kind: "payload" },
|
|
510
510
|
organizationsGet: { kind: "none" },
|
|
511
|
+
organizationsGetProfile: { kind: "none" },
|
|
511
512
|
organizationsUpdate: { kind: "payload" },
|
|
512
513
|
organizationsGetUsage: { kind: "params" },
|
|
513
514
|
organizationsDelete: { kind: "idempotentPayload" },
|
|
@@ -605,6 +606,10 @@ const SDK_OPERATION_CALLS = {
|
|
|
605
606
|
kind: "path",
|
|
606
607
|
paths: ["id"]
|
|
607
608
|
},
|
|
609
|
+
unsubscribeSetDefault: {
|
|
610
|
+
kind: "path",
|
|
611
|
+
paths: ["id"]
|
|
612
|
+
},
|
|
608
613
|
unsubscribeListMembers: {
|
|
609
614
|
kind: "pathParams",
|
|
610
615
|
paths: ["groupId"]
|
|
@@ -798,4 +803,4 @@ const addEmailSender = Effect.fn("Email.addSender")(function* (input, options) {
|
|
|
798
803
|
//#endregion
|
|
799
804
|
export { sendMessage as i, make as n, sendEmail as r, addEmailSender as t };
|
|
800
805
|
|
|
801
|
-
//# sourceMappingURL=operation-
|
|
806
|
+
//# sourceMappingURL=operation-D2nEeKBD.js.map
|
package/dist/promises/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as fromApiError, _ as ResourceNotFoundError, a as CampaignFooterRequiredError, b as UnauthorizedError, c as EmailChannelError, d as ForbiddenError, f as GatewayTimeoutError, g as RateLimitedError, h as PaymentRequiredError, i as BrandAddressRequiredError, l as ExternalServiceError, m as OnboardingReviewRequiredError, n as AnalyticsQueryError, o as ConflictError, p as InternalError, r as BillingProviderError, s as DeliveryUnavailableError, t as createClient, u as FlagDisabledError, v as SamvaApiError, x as ValidationError, y as SamvaTransportError } from "../promises-
|
|
1
|
+
import { S as fromApiError, _ as ResourceNotFoundError, a as CampaignFooterRequiredError, b as UnauthorizedError, c as EmailChannelError, d as ForbiddenError, f as GatewayTimeoutError, g as RateLimitedError, h as PaymentRequiredError, i as BrandAddressRequiredError, l as ExternalServiceError, m as OnboardingReviewRequiredError, n as AnalyticsQueryError, o as ConflictError, p as InternalError, r as BillingProviderError, s as DeliveryUnavailableError, t as createClient, u as FlagDisabledError, v as SamvaApiError, x as ValidationError, y as SamvaTransportError } from "../promises-DAv8ZtOX.js";
|
|
2
2
|
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, UnauthorizedError, ValidationError, createClient, fromApiError };
|