samva 0.7.0 → 0.9.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 (40) hide show
  1. package/dist/client/sdk.gen.d.ts +31 -30
  2. package/dist/client/types.gen.d.ts +133 -175
  3. package/dist/{client-5O8KsY5Z.js → client-DB7zbTti.js} +156 -209
  4. package/dist/{client-attribution-27MNycCV.js → client-attribution-vK1yjEdG.js} +2 -2
  5. package/dist/effect/analytics.js +1 -1
  6. package/dist/effect/api-keys.js +1 -1
  7. package/dist/effect/attachments.js +1 -1
  8. package/dist/effect/brands.js +2 -2
  9. package/dist/effect/campaigns.d.ts +34 -0
  10. package/dist/effect/campaigns.js +1 -1
  11. package/dist/effect/client.js +1 -1
  12. package/dist/effect/contact-groups.js +1 -1
  13. package/dist/effect/contacts.js +1 -1
  14. package/dist/effect/conversations.d.ts +9 -9
  15. package/dist/effect/conversations.js +1 -1
  16. package/dist/effect/custom-fields.js +1 -1
  17. package/dist/effect/email.js +2 -2
  18. package/dist/effect/generated.d.ts +508 -568
  19. package/dist/effect/index.js +1 -1
  20. package/dist/effect/media.js +1 -1
  21. package/dist/effect/messages.d.ts +2 -0
  22. package/dist/effect/messages.js +1 -1
  23. package/dist/effect/operations.js +1 -1
  24. package/dist/effect/organizations.d.ts +5 -4
  25. package/dist/effect/organizations.js +4 -2
  26. package/dist/effect/scheduled-messages.d.ts +16 -0
  27. package/dist/effect/scheduled-messages.js +1 -1
  28. package/dist/effect/templates.d.ts +30 -125
  29. package/dist/effect/templates.js +3 -5
  30. package/dist/effect/unsubscribe-groups.d.ts +17 -0
  31. package/dist/effect/unsubscribe-groups.js +4 -2
  32. package/dist/effect/webhooks.d.ts +6 -6
  33. package/dist/effect/webhooks.js +2 -2
  34. package/dist/index.js +1 -1
  35. package/dist/{operation-Cb5V9FJ7.js → operation-Cdp1EI_1.js} +7 -6
  36. package/dist/promises/index.js +1 -1
  37. package/dist/promises/types.gen.d.ts +1 -1
  38. package/dist/{promises-C2yyw-pf.js → promises-DoEUUjNM.js} +51 -63
  39. package/dist/service-map.d.ts +9 -5
  40. package/package.json +2 -2
@@ -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-5O8KsY5Z.js";
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-DB7zbTti.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";
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-Cb5V9FJ7.js";
2
+ import { n as make } from "../operation-Cdp1EI_1.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;
@@ -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-Cb5V9FJ7.js";
2
+ import { i as sendMessage, n as make } from "../operation-Cdp1EI_1.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-Cb5V9FJ7.js";
2
+ import { n as make } from "../operation-Cdp1EI_1.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-Cb5V9FJ7.js";
2
+ import { n as make } from "../operation-Cdp1EI_1.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-Cb5V9FJ7.js";
2
+ import { n as make } from "../operation-Cdp1EI_1.js";
3
3
  //#region src/effect/scheduled-messages.ts
4
4
  var scheduled_messages_exports = /* @__PURE__ */ __exportAll({
5
5
  cancel: () => cancel,
@@ -1148,93 +1148,6 @@ export declare const removeWorkspaceResource: (input: {
1148
1148
  readonly via: "agent" | "api" | "mcp";
1149
1149
  };
1150
1150
  }, 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>;
1151
- export declare const reconcileWorkspace: (input: {
1152
- readonly id: string;
1153
- readonly expectedRevision: string;
1154
- readonly assetResolution?: string | undefined;
1155
- readonly expectedRemoteHead?: string | undefined;
1156
- readonly idempotencyKey: string;
1157
- }) => import("effect/Effect").Effect<{
1158
- readonly workspace: {
1159
- readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
1160
- readonly organizationId: (string & import("effect/Brand").Brand<"OrganizationId">) | null;
1161
- readonly ownerEpoch: number;
1162
- readonly repositoryName: string;
1163
- readonly defaultBranch: string;
1164
- readonly baseCommit: string;
1165
- readonly remoteHead: string;
1166
- readonly pendingRemoteHead: string | null;
1167
- readonly revision: string;
1168
- readonly overlay: {
1169
- readonly [x: string]: string | null;
1170
- };
1171
- readonly assetChanges: readonly {
1172
- readonly path: string;
1173
- readonly status: "added" | "deleted" | "modified";
1174
- }[];
1175
- readonly conflicts: readonly {
1176
- readonly path: string;
1177
- readonly base: string | null;
1178
- readonly draft: string | null;
1179
- readonly main: string | null;
1180
- }[];
1181
- readonly provenance: {
1182
- readonly references: readonly {
1183
- readonly kind: string;
1184
- readonly digest: string;
1185
- readonly locator?: string;
1186
- }[];
1187
- };
1188
- readonly mounts: readonly ({
1189
- readonly kind: "project";
1190
- readonly root: "/project";
1191
- readonly access: "read-write";
1192
- } | {
1193
- readonly root: string;
1194
- readonly digest: string;
1195
- readonly fileCount: number;
1196
- readonly byteSize: number;
1197
- readonly kind: "started-from";
1198
- readonly access: "read-only";
1199
- readonly templateId: string;
1200
- readonly slug: string;
1201
- readonly name: string;
1202
- } | {
1203
- readonly root: string;
1204
- readonly digest: string;
1205
- readonly fileCount: number;
1206
- readonly byteSize: number;
1207
- readonly kind: "resource";
1208
- readonly access: "read-only";
1209
- readonly resourceId: string;
1210
- readonly name: string;
1211
- } | {
1212
- readonly root: string;
1213
- readonly digest: string;
1214
- readonly fileCount: number;
1215
- readonly byteSize: number;
1216
- readonly kind: "library-template";
1217
- readonly access: "read-only";
1218
- readonly templateId: string;
1219
- readonly slug: string;
1220
- readonly name: string;
1221
- })[];
1222
- readonly libraryManifestDigest: string;
1223
- readonly createdAt: string;
1224
- readonly updatedAt: string;
1225
- readonly createdBy: {
1226
- readonly userId: string & import("effect/Brand").Brand<"UserId">;
1227
- readonly via: "agent" | "api" | "mcp";
1228
- };
1229
- readonly updatedBy: {
1230
- readonly userId: string & import("effect/Brand").Brand<"UserId">;
1231
- readonly via: "agent" | "api" | "mcp";
1232
- };
1233
- };
1234
- readonly files: {
1235
- readonly [x: string]: string;
1236
- };
1237
- }, 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>;
1238
1151
  export declare const restoreWorkspace: (input: {
1239
1152
  readonly id: string;
1240
1153
  readonly expectedRevision: string;
@@ -1405,10 +1318,6 @@ export declare const checkWorkspace: (input: {
1405
1318
  readonly schemaDigest: string;
1406
1319
  readonly contractDigest: string;
1407
1320
  };
1408
- readonly runtime: {
1409
- readonly now?: number;
1410
- readonly randomSeed?: number;
1411
- };
1412
1321
  readonly fixtures: readonly string[];
1413
1322
  } | null;
1414
1323
  readonly diagnostics: readonly {
@@ -1476,10 +1385,6 @@ export declare const renderWorkspaceFixture: (input: {
1476
1385
  readonly schemaDigest: string;
1477
1386
  readonly contractDigest: string;
1478
1387
  };
1479
- readonly runtime: {
1480
- readonly now?: number;
1481
- readonly randomSeed?: number;
1482
- };
1483
1388
  readonly fixtures: readonly string[];
1484
1389
  } | null;
1485
1390
  readonly diagnostics: readonly {
@@ -1570,26 +1475,16 @@ export declare const publish: (input: {
1570
1475
  readonly buildIdentity: string;
1571
1476
  readonly manifest: {
1572
1477
  readonly templateKey: string;
1573
- readonly executable: {
1574
- readonly codeDigest: string;
1478
+ readonly ir: {
1479
+ readonly version: number;
1480
+ readonly digest: string;
1575
1481
  readonly bytes: number;
1576
1482
  };
1483
+ readonly compiler: string;
1577
1484
  readonly input: {
1578
1485
  readonly schemaDigest: string;
1579
1486
  readonly contractDigest: string;
1580
1487
  };
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
1488
  readonly assets: {
1594
1489
  readonly base: string;
1595
1490
  readonly entries: readonly {
@@ -1630,11 +1525,21 @@ export declare const publish: (input: {
1630
1525
  readonly url: string;
1631
1526
  }[] | null;
1632
1527
  };
1528
+ readonly renderedFooter: {
1529
+ readonly withUnsubscribe: {
1530
+ readonly html: string;
1531
+ readonly text: string;
1532
+ };
1533
+ readonly withoutUnsubscribe: {
1534
+ readonly html: string;
1535
+ readonly text: string;
1536
+ };
1537
+ };
1633
1538
  readonly digest: string;
1634
1539
  readonly rendersFooter: "every" | "none" | "some";
1635
1540
  };
1636
1541
  };
1637
- readonly executable: {
1542
+ readonly ir: {
1638
1543
  readonly key: string;
1639
1544
  readonly digest: string;
1640
1545
  };
@@ -1712,26 +1617,16 @@ export declare const getPublication: (input: {
1712
1617
  readonly buildIdentity: string;
1713
1618
  readonly manifest: {
1714
1619
  readonly templateKey: string;
1715
- readonly executable: {
1716
- readonly codeDigest: string;
1620
+ readonly ir: {
1621
+ readonly version: number;
1622
+ readonly digest: string;
1717
1623
  readonly bytes: number;
1718
1624
  };
1625
+ readonly compiler: string;
1719
1626
  readonly input: {
1720
1627
  readonly schemaDigest: string;
1721
1628
  readonly contractDigest: string;
1722
1629
  };
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
1630
  readonly assets: {
1736
1631
  readonly base: string;
1737
1632
  readonly entries: readonly {
@@ -1772,11 +1667,21 @@ export declare const getPublication: (input: {
1772
1667
  readonly url: string;
1773
1668
  }[] | null;
1774
1669
  };
1670
+ readonly renderedFooter: {
1671
+ readonly withUnsubscribe: {
1672
+ readonly html: string;
1673
+ readonly text: string;
1674
+ };
1675
+ readonly withoutUnsubscribe: {
1676
+ readonly html: string;
1677
+ readonly text: string;
1678
+ };
1679
+ };
1775
1680
  readonly digest: string;
1776
1681
  readonly rendersFooter: "every" | "none" | "some";
1777
1682
  };
1778
1683
  };
1779
- readonly executable: {
1684
+ readonly ir: {
1780
1685
  readonly key: string;
1781
1686
  readonly digest: string;
1782
1687
  };
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-Cb5V9FJ7.js";
3
- import { d as CreateTemplatePayload, k as UpdateTemplatePayload } from "../client-5O8KsY5Z.js";
2
+ import { n as make } from "../operation-Cdp1EI_1.js";
3
+ import { d as CreateTemplatePayload, k as UpdateTemplatePayload } from "../client-DB7zbTti.js";
4
4
  //#region src/effect/templates.ts
5
5
  var templates_exports = /* @__PURE__ */ __exportAll({
6
6
  CreatePayload: () => CreateTemplatePayload,
@@ -28,7 +28,6 @@ var templates_exports = /* @__PURE__ */ __exportAll({
28
28
  patchWorkspace: () => patchWorkspace,
29
29
  publish: () => publish,
30
30
  putWorkspaceAsset: () => putWorkspaceAsset,
31
- reconcileWorkspace: () => reconcileWorkspace,
32
31
  remove: () => remove,
33
32
  removeWorkspaceResource: () => removeWorkspaceResource,
34
33
  renameFamily: () => renameFamily,
@@ -61,7 +60,6 @@ const putWorkspaceAsset = make("templatesPutWorkspaceAsset");
61
60
  const resolveWorkspaceConflict = make("templatesResolveWorkspaceConflict");
62
61
  const attachWorkspaceResource = make("templatesAttachWorkspaceResource");
63
62
  const removeWorkspaceResource = make("templatesRemoveWorkspaceResource");
64
- const reconcileWorkspace = make("templatesReconcileWorkspace");
65
63
  const restoreWorkspace = make("templatesRestoreWorkspace");
66
64
  const saveWorkspace = make("templatesSaveWorkspace");
67
65
  const checkWorkspace = make("templatesCheckWorkspace");
@@ -73,6 +71,6 @@ const getInputContract = make("templatesGetInputContract");
73
71
  const diffWorkspace = make("templatesDiffWorkspace");
74
72
  const workspaceHistory = make("templatesWorkspaceHistory");
75
73
  //#endregion
76
- export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as UpdatePayload, addEntry, attachFamilyMember, attachWorkspaceResource, checkWorkspace, create, createFamily, createFamilyFromTemplate, deleteFamily, detachFamilyMember, diffWorkspace, getById, getFamily, getGitRepository, getInputContract, getPublication, issueGitCredential, list, listFamilies, listInputContracts, openWorkspace, patchWorkspace, publish, putWorkspaceAsset, reconcileWorkspace, remove, removeWorkspaceResource, renameFamily, renderWorkspaceFixture, resolveWorkspaceConflict, restoreWorkspace, saveWorkspace, templates_exports as t, update, workspaceHistory };
74
+ export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as UpdatePayload, addEntry, attachFamilyMember, attachWorkspaceResource, checkWorkspace, create, createFamily, createFamilyFromTemplate, deleteFamily, detachFamilyMember, diffWorkspace, getById, getFamily, getGitRepository, getInputContract, getPublication, issueGitCredential, list, listFamilies, listInputContracts, openWorkspace, patchWorkspace, publish, putWorkspaceAsset, remove, removeWorkspaceResource, renameFamily, renderWorkspaceFixture, resolveWorkspaceConflict, restoreWorkspace, saveWorkspace, templates_exports as t, update, workspaceHistory };
77
75
 
78
76
  //# sourceMappingURL=templates.js.map
@@ -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-Cb5V9FJ7.js";
2
+ import { n as make } from "../operation-Cdp1EI_1.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;
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-Cb5V9FJ7.js";
3
- import { A as UpdateWebhookPayload, T as TestWebhookPayload, f as CreateWebhookPayload } from "../client-5O8KsY5Z.js";
2
+ import { n as make } from "../operation-Cdp1EI_1.js";
3
+ import { A as UpdateWebhookPayload, T as TestWebhookPayload, f as CreateWebhookPayload } from "../client-DB7zbTti.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-C2yyw-pf.js";
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-DoEUUjNM.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 };