samva 0.13.0 → 0.14.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 (73) hide show
  1. package/AGENTS.md +9 -0
  2. package/README.md +51 -6
  3. package/dist/{categories-Bcwq5jPV.js → categories-BGUBFdH9.js} +9 -1
  4. package/dist/client/sdk.gen.d.ts +105 -18
  5. package/dist/client/types.gen.d.ts +786 -118
  6. package/dist/{client-DYPNDvVU.js → client-CZjhOKPM.js} +694 -122
  7. package/dist/effect/analytics.d.ts +6 -6
  8. package/dist/effect/analytics.js +1 -1
  9. package/dist/effect/api-keys.d.ts +20 -20
  10. package/dist/effect/api-keys.js +1 -1
  11. package/dist/effect/attachments.js +1 -1
  12. package/dist/effect/brands.js +2 -2
  13. package/dist/effect/campaigns.d.ts +12 -12
  14. package/dist/effect/campaigns.js +1 -1
  15. package/dist/effect/categories.js +1 -1
  16. package/dist/effect/client.js +1 -1
  17. package/dist/effect/contact-groups.d.ts +9 -9
  18. package/dist/effect/contact-groups.js +1 -1
  19. package/dist/effect/contacts.d.ts +126 -73
  20. package/dist/effect/contacts.js +1 -1
  21. package/dist/effect/conversations.d.ts +20 -20
  22. package/dist/effect/conversations.js +1 -1
  23. package/dist/effect/custom-fields.d.ts +1 -1
  24. package/dist/effect/custom-fields.js +1 -1
  25. package/dist/effect/email.d.ts +26 -26
  26. package/dist/effect/email.js +2 -2
  27. package/dist/effect/extension-installations.d.ts +3 -3
  28. package/dist/effect/extension-installations.js +1 -1
  29. package/dist/effect/extensions.d.ts +3 -3
  30. package/dist/effect/extensions.js +1 -1
  31. package/dist/effect/feedback.d.ts +1 -1
  32. package/dist/effect/feedback.js +2 -2
  33. package/dist/effect/generated-metadata.d.ts +8 -0
  34. package/dist/effect/generated.d.ts +6184 -1243
  35. package/dist/effect/index.d.ts +2 -1
  36. package/dist/effect/index.js +6 -5
  37. package/dist/effect/internal/client.d.ts +2 -2
  38. package/dist/effect/internal/operation.d.ts +9 -9
  39. package/dist/effect/mailboxes.d.ts +1726 -109
  40. package/dist/effect/mailboxes.js +3 -3
  41. package/dist/effect/media.d.ts +1 -1
  42. package/dist/effect/media.js +1 -1
  43. package/dist/effect/messages.d.ts +19 -17
  44. package/dist/effect/messages.js +1 -1
  45. package/dist/effect/namespaces.js +1 -1
  46. package/dist/effect/operations.d.ts +6 -6
  47. package/dist/effect/operations.js +1 -1
  48. package/dist/effect/organizations.d.ts +30 -0
  49. package/dist/effect/organizations.js +4 -2
  50. package/dist/effect/retry.js +1 -1
  51. package/dist/effect/scheduled-messages.d.ts +6 -6
  52. package/dist/effect/scheduled-messages.js +1 -1
  53. package/dist/effect/subscriptions.d.ts +15 -0
  54. package/dist/effect/subscriptions.js +9 -0
  55. package/dist/effect/templates.d.ts +52 -14
  56. package/dist/effect/templates.js +5 -3
  57. package/dist/effect/unsubscribe-groups.d.ts +1 -1
  58. package/dist/effect/unsubscribe-groups.js +1 -1
  59. package/dist/effect/webhooks.d.ts +15 -15
  60. package/dist/effect/webhooks.js +2 -2
  61. package/dist/index.js +4 -4
  62. package/dist/{inline-attachments-B56eS0MF.js → inline-attachments-BrNnSMF2.js} +2 -2
  63. package/dist/{mailbox-events-CsbF35vH.js → mailbox-events-VKR4f3qq.js} +6 -4
  64. package/dist/mailbox-events.d.ts +1 -1
  65. package/dist/{mailboxes-D3Kx7elM.js → mailboxes-DT02zP7q.js} +13 -5
  66. package/dist/{operation-B_Ty1LG-.js → operation-g8nAzmIM.js} +29 -3
  67. package/dist/promises/errors.gen.d.ts +26 -2
  68. package/dist/promises/index.d.ts +6 -4
  69. package/dist/promises/index.js +4 -4
  70. package/dist/promises/types.gen.d.ts +1 -1
  71. package/dist/{promises-D9FJyU0q.js → promises-BFRKhpSS.js} +941 -38
  72. package/dist/service-map.d.ts +35 -0
  73. package/package.json +7 -2
@@ -1,3 +1,3 @@
1
- import { n as MailboxEventStreamError } from "../mailbox-events-CsbF35vH.js";
2
- import { $ as updatePolicy, A as listGrants, B as remove, C as getThread, D as listDrafts, E as listActions, F as listThreadNotes, G as revokeGrant, H as reply, I as listThreads, J as update, K as sendDraft, M as listPolicies, N as listQuarantine, O as listEvents, P as listThreadMessages, Q as updateNote, R as pause, S as getPolicy, T as list, U as replyAll, V as removeThreadLabels, W as resume, X as updateGrant, Y as updateDraft, Z as updateLabel, _ as getAgentActivity, a as createGrant, b as getMessageAttachment, c as createPolicy, d as deleteNote, et as updateThread, f as deletePolicy, g as get, h as forward, i as createDraft, j as listLabels, k as listFolders, l as deleteDraft, m as discardMessage, n as approveAction, o as createLabel, p as denyAction, q as sendMessage, r as create, s as createNote, t as addThreadLabels, tt as events, u as deleteLabel, v as getDraft, w as getThreadContent, x as getMessageRaw, y as getMessage, z as releaseMessage } from "../mailboxes-D3Kx7elM.js";
3
- export { MailboxEventStreamError, addThreadLabels, approveAction, create, createDraft, createGrant, createLabel, createNote, createPolicy, deleteDraft, deleteLabel, deleteNote, deletePolicy, denyAction, discardMessage, events, forward, get, getAgentActivity, getDraft, getMessage, getMessageAttachment, getMessageRaw, getPolicy, getThread, getThreadContent, list, listActions, listDrafts, listEvents, listFolders, listGrants, listLabels, listPolicies, listQuarantine, listThreadMessages, listThreadNotes, listThreads, pause, releaseMessage, remove, removeThreadLabels, reply, replyAll, resume, revokeGrant, sendDraft, sendMessage, update, updateDraft, updateGrant, updateLabel, updateNote, updatePolicy, updateThread };
1
+ import { n as MailboxEventStreamError } from "../mailbox-events-VKR4f3qq.js";
2
+ import { $ as updateDraft, A as listDrafts, C as getMessageAttachment, D as getThreadContent, E as getThread, F as listPolicies, G as reply, H as releaseMessage, I as listQuarantine, J as retryAction, K as replyAll, L as listThreadMessages, M as listFolders, N as listGrants, O as list, P as listLabels, Q as update, R as listThreadNotes, S as getMessage, T as getPolicy, U as remove, V as pause, W as removeThreadLabels, X as sendDraft, Y as revokeGrant, Z as sendMessage, _ as forward, a as create, at as events, b as getAgentActivity, c as createLabel, d as deleteDraft, et as updateGrant, f as deleteLabel, g as discardMessage, h as denyAction, i as copyMessageAttachment, it as updateThread, j as listEvents, k as listActions, l as createNote, m as deletePolicy, n as approveAction, nt as updateNote, o as createDraft, p as deleteNote, q as resume, r as cancelAction, rt as updatePolicy, s as createGrant, t as addThreadLabels, tt as updateLabel, u as createPolicy, v as get, w as getMessageRaw, x as getDraft, y as getAction, z as listThreads } from "../mailboxes-DT02zP7q.js";
3
+ export { MailboxEventStreamError, addThreadLabels, approveAction, cancelAction, copyMessageAttachment, create, createDraft, createGrant, createLabel, createNote, createPolicy, deleteDraft, deleteLabel, deleteNote, deletePolicy, denyAction, discardMessage, events, forward, get, getAction, getAgentActivity, getDraft, getMessage, getMessageAttachment, getMessageRaw, getPolicy, getThread, getThreadContent, list, listActions, listDrafts, listEvents, listFolders, listGrants, listLabels, listPolicies, listQuarantine, listThreadMessages, listThreadNotes, listThreads, pause, releaseMessage, remove, removeThreadLabels, reply, replyAll, resume, retryAction, revokeGrant, sendDraft, sendMessage, update, updateDraft, updateGrant, updateLabel, updateNote, updatePolicy, updateThread };
@@ -2,7 +2,7 @@ export declare const create: (input: {
2
2
  readonly filename: string;
3
3
  readonly contentType: string;
4
4
  readonly sizeBytes: number;
5
- readonly purpose: string;
5
+ readonly purpose: "attachment" | "avatar" | "review_evidence";
6
6
  readonly checksumSha256?: string | null | undefined;
7
7
  }) => import("effect/Effect").Effect<{
8
8
  readonly id: string & import("effect/Brand").Brand<"MediaId">;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-B_Ty1LG-.js";
2
+ import { n as make } from "../operation-g8nAzmIM.js";
3
3
  //#region src/effect/media.ts
4
4
  var media_exports = /* @__PURE__ */ __exportAll({
5
5
  complete: () => complete,
@@ -3,9 +3,9 @@ export type { MessageSendInput, SendOptions };
3
3
  export declare const list: ((input?: {
4
4
  readonly limit?: string | null | undefined;
5
5
  readonly cursor?: string | null | undefined;
6
- readonly channel?: string | null | undefined;
7
- readonly direction?: string | null | undefined;
8
- readonly status?: string | null | undefined;
6
+ readonly channel?: "email" | null | undefined;
7
+ readonly direction?: "inbound" | "outbound" | null | undefined;
8
+ readonly status?: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent" | null | undefined;
9
9
  readonly conversationId?: string | null | undefined;
10
10
  readonly contactId?: string | null | undefined;
11
11
  readonly from?: string | null | undefined;
@@ -20,7 +20,7 @@ export declare const list: ((input?: {
20
20
  readonly from: string | null;
21
21
  readonly to: readonly string[];
22
22
  readonly subject: string | null;
23
- readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
23
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
24
24
  readonly createdAt: string;
25
25
  }[];
26
26
  readonly nextCursor: string | null;
@@ -28,9 +28,9 @@ export declare const list: ((input?: {
28
28
  readonly pages: (input?: {
29
29
  readonly limit?: string | null | undefined;
30
30
  readonly cursor?: string | null | undefined;
31
- readonly channel?: string | null | undefined;
32
- readonly direction?: string | null | undefined;
33
- readonly status?: string | null | undefined;
31
+ readonly channel?: "email" | null | undefined;
32
+ readonly direction?: "inbound" | "outbound" | null | undefined;
33
+ readonly status?: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent" | null | undefined;
34
34
  readonly conversationId?: string | null | undefined;
35
35
  readonly contactId?: string | null | undefined;
36
36
  readonly from?: string | null | undefined;
@@ -45,7 +45,7 @@ export declare const list: ((input?: {
45
45
  readonly from: string | null;
46
46
  readonly to: readonly string[];
47
47
  readonly subject: string | null;
48
- readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
48
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
49
49
  readonly createdAt: string;
50
50
  }[];
51
51
  readonly nextCursor: string | null;
@@ -53,9 +53,9 @@ export declare const list: ((input?: {
53
53
  readonly items: (input?: {
54
54
  readonly limit?: string | null | undefined;
55
55
  readonly cursor?: string | null | undefined;
56
- readonly channel?: string | null | undefined;
57
- readonly direction?: string | null | undefined;
58
- readonly status?: string | null | undefined;
56
+ readonly channel?: "email" | null | undefined;
57
+ readonly direction?: "inbound" | "outbound" | null | undefined;
58
+ readonly status?: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent" | null | undefined;
59
59
  readonly conversationId?: string | null | undefined;
60
60
  readonly contactId?: string | null | undefined;
61
61
  readonly from?: string | null | undefined;
@@ -69,14 +69,14 @@ export declare const list: ((input?: {
69
69
  readonly from: string | null;
70
70
  readonly to: readonly string[];
71
71
  readonly subject: string | null;
72
- readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
72
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
73
73
  readonly createdAt: string;
74
74
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
75
75
  };
76
76
  export declare const send: (input: MessageSendInput, options?: SendOptions | undefined) => import("effect/Effect").Effect<{
77
77
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
78
78
  readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
79
- readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
79
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
80
80
  readonly reviewExpectedAt: string | null;
81
81
  readonly skippedRecipients: readonly {
82
82
  readonly address: string;
@@ -114,7 +114,7 @@ export declare const validateEmail: (input: {
114
114
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
115
115
  } | null | undefined;
116
116
  } | null | undefined;
117
- readonly channel: string;
117
+ readonly channel: "email";
118
118
  readonly to: readonly ({
119
119
  readonly contactId: string;
120
120
  } | {
@@ -260,7 +260,7 @@ export declare const get: (input: {
260
260
  readonly version: string;
261
261
  } | null;
262
262
  } | null;
263
- readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
263
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
264
264
  readonly reviewExpectedAt: string | null;
265
265
  readonly skippedRecipients: readonly {
266
266
  readonly address: string;
@@ -279,7 +279,7 @@ export declare const getEmail: (input: {
279
279
  readonly scheduling: {
280
280
  readonly dueAt: string;
281
281
  readonly expiresAt: string;
282
- readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
282
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
283
283
  readonly reviewExpectedAt: string | null;
284
284
  } | null;
285
285
  readonly id: string;
@@ -444,7 +444,7 @@ export declare const listDeliveries: (input: {
444
444
  readonly recipient: string | null;
445
445
  readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
446
446
  readonly attemptCount: number;
447
- readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
447
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
448
448
  readonly nextRetryAt: string | null;
449
449
  readonly sentAt: string | null;
450
450
  readonly deliveredAt: string | null;
@@ -478,6 +478,8 @@ export declare const getContent: (input: {
478
478
  };
479
479
  readonly attachments?: readonly {
480
480
  readonly filename: string;
481
+ readonly contentId?: string | null;
482
+ readonly isInline?: boolean | null;
481
483
  readonly content?: string | null;
482
484
  readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
483
485
  readonly contentType: string;
@@ -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-B_Ty1LG-.js";
2
+ import { i as sendMessage, n as make } from "../operation-g8nAzmIM.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-B_Ty1LG-.js";
2
+ import { n as make } from "../operation-g8nAzmIM.js";
3
3
  //#region src/effect/namespaces.ts
4
4
  var namespaces_exports = /* @__PURE__ */ __exportAll({
5
5
  create: () => create,
@@ -1,8 +1,8 @@
1
1
  export declare const list: ((input?: {
2
2
  readonly limit?: string | null | undefined;
3
3
  readonly cursor?: string | null | undefined;
4
- readonly kind?: string | null | undefined;
5
- readonly status?: string | null | undefined;
4
+ readonly kind?: "email-domain-provisioning" | "organization-deletion" | null | undefined;
5
+ readonly status?: "failed" | "pending" | "running" | "succeeded" | null | undefined;
6
6
  } | undefined) => import("effect/Effect").Effect<{
7
7
  readonly items: readonly {
8
8
  readonly id: string & import("effect/Brand").Brand<"OperationId">;
@@ -32,8 +32,8 @@ export declare const list: ((input?: {
32
32
  readonly pages: (input?: {
33
33
  readonly limit?: string | null | undefined;
34
34
  readonly cursor?: string | null | undefined;
35
- readonly kind?: string | null | undefined;
36
- readonly status?: string | null | undefined;
35
+ readonly kind?: "email-domain-provisioning" | "organization-deletion" | null | undefined;
36
+ readonly status?: "failed" | "pending" | "running" | "succeeded" | null | undefined;
37
37
  } | undefined) => import("effect/Stream").Stream<{
38
38
  readonly items: readonly {
39
39
  readonly id: string & import("effect/Brand").Brand<"OperationId">;
@@ -63,8 +63,8 @@ export declare const list: ((input?: {
63
63
  readonly items: (input?: {
64
64
  readonly limit?: string | null | undefined;
65
65
  readonly cursor?: string | null | undefined;
66
- readonly kind?: string | null | undefined;
67
- readonly status?: string | null | undefined;
66
+ readonly kind?: "email-domain-provisioning" | "organization-deletion" | null | undefined;
67
+ readonly status?: "failed" | "pending" | "running" | "succeeded" | null | undefined;
68
68
  } | undefined) => import("effect/Stream").Stream<{
69
69
  readonly id: string & import("effect/Brand").Brand<"OperationId">;
70
70
  readonly organizationId: string;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-B_Ty1LG-.js";
2
+ import { n as make } from "../operation-g8nAzmIM.js";
3
3
  //#region src/effect/operations.ts
4
4
  var operations_exports = /* @__PURE__ */ __exportAll({
5
5
  get: () => get,
@@ -55,6 +55,36 @@ export declare const getProfile: (_?: never) => import("effect/Effect").Effect<{
55
55
  readonly name: string;
56
56
  readonly nickname: string;
57
57
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
58
+ export declare const getTrustTier: (_?: never) => import("effect/Effect").Effect<{
59
+ readonly tier: "established" | "probation" | "screened";
60
+ readonly changedAt: string;
61
+ readonly sendingLimits: {
62
+ readonly sendsPerSecond: number;
63
+ readonly dailySends: number;
64
+ readonly probation: {
65
+ readonly hourlyRecipients: number;
66
+ readonly dailyRecipients: number;
67
+ readonly domainShare: number;
68
+ readonly domainShareFloor: number;
69
+ } | null;
70
+ };
71
+ readonly graduation: {
72
+ readonly firstSentAt: string | null;
73
+ readonly elapsedDays: number;
74
+ readonly sent: number;
75
+ readonly delivered: number;
76
+ readonly hardBounces: number;
77
+ readonly hardBounceRate: number | null;
78
+ readonly complaints: number;
79
+ readonly holds: number;
80
+ readonly requirements: {
81
+ readonly minimumDays: number;
82
+ readonly delivered: number;
83
+ readonly maximumHardBounceRate: number;
84
+ };
85
+ readonly blockers: readonly ("bounce_rate" | "complaints" | "held" | "too_few_delivered" | "too_recent")[];
86
+ } | null;
87
+ }, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
58
88
  export declare const update: (input?: {
59
89
  readonly name?: string | null | undefined;
60
90
  readonly slug?: string | null | undefined;
@@ -1,21 +1,23 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-B_Ty1LG-.js";
2
+ import { n as make } from "../operation-g8nAzmIM.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
8
  getProfile: () => getProfile,
9
+ getTrustTier: () => getTrustTier,
9
10
  getUsage: () => getUsage,
10
11
  update: () => update
11
12
  });
12
13
  const create = make("organizationsCreate");
13
14
  const get = make("organizationsGet");
14
15
  const getProfile = make("organizationsGetProfile");
16
+ const getTrustTier = make("organizationsGetTrustTier");
15
17
  const update = make("organizationsUpdate");
16
18
  const getUsage = make("organizationsGetUsage");
17
19
  const deleteOrganization = make("organizationsDelete");
18
20
  //#endregion
19
- export { create, deleteOrganization as delete, get, getProfile, getUsage, organizations_exports as t, update };
21
+ export { create, deleteOrganization as delete, get, getProfile, getTrustTier, getUsage, organizations_exports as t, update };
20
22
 
21
23
  //# sourceMappingURL=organizations.js.map
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { h as isRetryable } from "../categories-Bcwq5jPV.js";
2
+ import { h as isRetryable } from "../categories-BGUBFdH9.js";
3
3
  import { Context, Duration, Effect, Layer, Option, Random, Schedule } from "effect";
4
4
  import * as Predicate$1 from "effect/Predicate";
5
5
  //#region src/effect/retry.ts
@@ -1,7 +1,7 @@
1
1
  export declare const list: ((input?: {
2
2
  readonly limit?: string | null | undefined;
3
3
  readonly cursor?: string | null | undefined;
4
- readonly status?: string | null | undefined;
4
+ readonly status?: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending" | null | undefined;
5
5
  } | undefined) => import("effect/Effect").Effect<{
6
6
  readonly items: readonly {
7
7
  readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
@@ -87,7 +87,7 @@ export declare const list: ((input?: {
87
87
  readonly pages: (input?: {
88
88
  readonly limit?: string | null | undefined;
89
89
  readonly cursor?: string | null | undefined;
90
- readonly status?: string | null | undefined;
90
+ readonly status?: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending" | null | undefined;
91
91
  } | undefined) => import("effect/Stream").Stream<{
92
92
  readonly items: readonly {
93
93
  readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
@@ -173,7 +173,7 @@ export declare const list: ((input?: {
173
173
  readonly items: (input?: {
174
174
  readonly limit?: string | null | undefined;
175
175
  readonly cursor?: string | null | undefined;
176
- readonly status?: string | null | undefined;
176
+ readonly status?: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending" | null | undefined;
177
177
  } | undefined) => import("effect/Stream").Stream<{
178
178
  readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
179
179
  readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
@@ -284,7 +284,7 @@ export declare const create: (input: {
284
284
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
285
285
  } | null | undefined;
286
286
  } | null | undefined;
287
- readonly channel: string;
287
+ readonly channel: "email";
288
288
  readonly to: readonly ({
289
289
  readonly contactId: string;
290
290
  } | {
@@ -616,10 +616,10 @@ export declare const cancel: (input: {
616
616
  }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
617
617
  export declare const resume: (input: {
618
618
  readonly id: string;
619
- readonly choice: string;
619
+ readonly choice: "send_now";
620
620
  } | {
621
621
  readonly id: string;
622
- readonly choice: string;
622
+ readonly choice: "new_time";
623
623
  readonly scheduledFor: Date;
624
624
  }) => import("effect/Effect").Effect<{
625
625
  readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-B_Ty1LG-.js";
2
+ import { n as make } from "../operation-g8nAzmIM.js";
3
3
  //#region src/effect/scheduled-messages.ts
4
4
  var scheduled_messages_exports = /* @__PURE__ */ __exportAll({
5
5
  cancel: () => cancel,
@@ -0,0 +1,15 @@
1
+ export declare const subscribe: (input: {
2
+ readonly email: string;
3
+ readonly contactGroupId: string;
4
+ readonly from: {
5
+ readonly email: string;
6
+ readonly name?: string | null | undefined;
7
+ };
8
+ readonly unsubscribeGroupId?: string | null | undefined;
9
+ readonly templateSlug?: string | null | undefined;
10
+ readonly consentIp?: string | null | undefined;
11
+ readonly consentSource?: string | null | undefined;
12
+ }) => import("effect/Effect").Effect<{
13
+ readonly success: boolean;
14
+ readonly expiresAt: string;
15
+ }, import("./generated").BillingProviderError | import("./generated").BrandAddressRequiredError | import("./generated").CampaignFooterRequiredError | import("./generated").ConflictError | import("./generated").DeliveryUnavailableError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
@@ -0,0 +1,9 @@
1
+ import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
+ import { n as make } from "../operation-g8nAzmIM.js";
3
+ //#region src/effect/subscriptions.ts
4
+ var subscriptions_exports = /* @__PURE__ */ __exportAll({ subscribe: () => subscribe });
5
+ const subscribe = make("subscriptionsSubscribe");
6
+ //#endregion
7
+ export { subscribe, subscriptions_exports as t };
8
+
9
+ //# sourceMappingURL=subscriptions.js.map
@@ -2,9 +2,9 @@ export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as Update
2
2
  export declare const list: ((input?: {
3
3
  readonly limit?: string | null | undefined;
4
4
  readonly cursor?: string | null | undefined;
5
- readonly category?: string | null | undefined;
6
- readonly channel?: string | null | undefined;
7
- readonly status?: string | null | undefined;
5
+ readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
6
+ readonly channel?: "email" | null | undefined;
7
+ readonly status?: "approved" | "archived" | "draft" | "pending" | "published" | "rejected" | null | undefined;
8
8
  readonly search?: string | null | undefined;
9
9
  readonly projectId?: string | null | undefined;
10
10
  } | undefined) => import("effect/Effect").Effect<{
@@ -37,9 +37,9 @@ export declare const list: ((input?: {
37
37
  readonly pages: (input?: {
38
38
  readonly limit?: string | null | undefined;
39
39
  readonly cursor?: string | null | undefined;
40
- readonly category?: string | null | undefined;
41
- readonly channel?: string | null | undefined;
42
- readonly status?: string | null | undefined;
40
+ readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
41
+ readonly channel?: "email" | null | undefined;
42
+ readonly status?: "approved" | "archived" | "draft" | "pending" | "published" | "rejected" | null | undefined;
43
43
  readonly search?: string | null | undefined;
44
44
  readonly projectId?: string | null | undefined;
45
45
  } | undefined) => import("effect/Stream").Stream<{
@@ -72,9 +72,9 @@ export declare const list: ((input?: {
72
72
  readonly items: (input?: {
73
73
  readonly limit?: string | null | undefined;
74
74
  readonly cursor?: string | null | undefined;
75
- readonly category?: string | null | undefined;
76
- readonly channel?: string | null | undefined;
77
- readonly status?: string | null | undefined;
75
+ readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
76
+ readonly channel?: "email" | null | undefined;
77
+ readonly status?: "approved" | "archived" | "draft" | "pending" | "published" | "rejected" | null | undefined;
78
78
  readonly search?: string | null | undefined;
79
79
  readonly projectId?: string | null | undefined;
80
80
  } | undefined) => import("effect/Stream").Stream<{
@@ -109,7 +109,7 @@ export declare const create: (input: {
109
109
  readonly galleryTemplateId?: string | null | undefined;
110
110
  readonly useBrand?: boolean | null | undefined;
111
111
  readonly description?: string | null | undefined;
112
- readonly category?: string | null | undefined;
112
+ readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
113
113
  readonly isActive?: boolean | null | undefined;
114
114
  readonly idempotencyKey: string;
115
115
  }) => import("effect/Effect").Effect<{
@@ -162,7 +162,7 @@ export declare const addEntry: (input: {
162
162
  readonly name: string;
163
163
  readonly slug: string;
164
164
  readonly description?: string | null | undefined;
165
- readonly category?: string | null | undefined;
165
+ readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
166
166
  }) => import("effect/Effect").Effect<{
167
167
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
168
168
  readonly slug: string;
@@ -446,7 +446,7 @@ export declare const update: (input: {
446
446
  readonly slug?: string | null | undefined;
447
447
  readonly entryPath?: string | null | undefined;
448
448
  readonly description?: string | null | undefined;
449
- readonly category?: string | null | undefined;
449
+ readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
450
450
  readonly fromDefault?: {
451
451
  readonly email: string;
452
452
  readonly name?: string | null | undefined;
@@ -589,7 +589,7 @@ export declare const getGitRepository: (input: {
589
589
  }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
590
590
  export declare const issueGitCredential: (input: {
591
591
  readonly id: string;
592
- readonly scope: string;
592
+ readonly scope: "read" | "write";
593
593
  }) => import("effect/Effect").Effect<{
594
594
  readonly remote: string;
595
595
  readonly username: "x-access-token";
@@ -777,7 +777,7 @@ export declare const resolveWorkspaceConflict: (input: {
777
777
  readonly id: string;
778
778
  readonly expectedRevision: string;
779
779
  readonly path: string;
780
- readonly resolution: string | {
780
+ readonly resolution: "draft" | "main" | {
781
781
  readonly content: string | null;
782
782
  };
783
783
  readonly idempotencyKey: string;
@@ -1628,6 +1628,44 @@ export declare const getPublication: (input: {
1628
1628
  readonly publishedBy: string | null;
1629
1629
  readonly createdAt: string;
1630
1630
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1631
+ export declare const renderPublication: (input: {
1632
+ readonly id: string;
1633
+ readonly publicationId: string;
1634
+ readonly data: {
1635
+ readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
1636
+ readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
1637
+ } | null)[] | {
1638
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1639
+ } | null)[] | {
1640
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1641
+ } | null)[] | {
1642
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1643
+ } | null)[] | {
1644
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1645
+ } | null)[] | {
1646
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1647
+ } | null)[] | {
1648
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1649
+ } | null)[] | {
1650
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1651
+ } | null)[] | {
1652
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1653
+ } | null)[] | {
1654
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1655
+ } | null)[] | {
1656
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1657
+ } | null)[] | {
1658
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
1659
+ } | null | undefined;
1660
+ };
1661
+ readonly locale?: string | undefined;
1662
+ readonly timeZone?: string | undefined;
1663
+ }) => import("effect/Effect").Effect<{
1664
+ readonly subject: string;
1665
+ readonly preheader?: string;
1666
+ readonly html: string;
1667
+ readonly text: string;
1668
+ }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1631
1669
  export declare const listInputContracts: ((input: {
1632
1670
  readonly id: string;
1633
1671
  readonly limit?: string | null | undefined;
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-B_Ty1LG-.js";
3
- import { A as UpdateTemplatePayload, d as CreateTemplatePayload } from "../client-DYPNDvVU.js";
2
+ import { n as make } from "../operation-g8nAzmIM.js";
3
+ import { N as UpdateTemplatePayload, d as CreateTemplatePayload } from "../client-CZjhOKPM.js";
4
4
  //#region src/effect/templates.ts
5
5
  var templates_exports = /* @__PURE__ */ __exportAll({
6
6
  CreatePayload: () => CreateTemplatePayload,
@@ -31,6 +31,7 @@ var templates_exports = /* @__PURE__ */ __exportAll({
31
31
  remove: () => remove,
32
32
  removeWorkspaceResource: () => removeWorkspaceResource,
33
33
  renameFamily: () => renameFamily,
34
+ renderPublication: () => renderPublication,
34
35
  renderWorkspaceFixture: () => renderWorkspaceFixture,
35
36
  resolveWorkspaceConflict: () => resolveWorkspaceConflict,
36
37
  restoreWorkspace: () => restoreWorkspace,
@@ -66,11 +67,12 @@ const checkWorkspace = make("templatesCheckWorkspace");
66
67
  const renderWorkspaceFixture = make("templatesRenderWorkspaceFixture");
67
68
  const publish = make("templatesPublish");
68
69
  const getPublication = make("templatesGetPublication");
70
+ const renderPublication = make("templatesRenderPublication");
69
71
  const listInputContracts = make("templatesListInputContracts");
70
72
  const getInputContract = make("templatesGetInputContract");
71
73
  const diffWorkspace = make("templatesDiffWorkspace");
72
74
  const workspaceHistory = make("templatesWorkspaceHistory");
73
75
  //#endregion
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 };
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, remove, removeWorkspaceResource, renameFamily, renderPublication, renderWorkspaceFixture, resolveWorkspaceConflict, restoreWorkspace, saveWorkspace, templates_exports as t, update, workspaceHistory };
75
77
 
76
78
  //# sourceMappingURL=templates.js.map
@@ -100,7 +100,7 @@ export declare const listMembers: ((input: {
100
100
  export declare const addEmails: (input: {
101
101
  readonly id: string;
102
102
  readonly emails: readonly string[];
103
- readonly source?: string | null | undefined;
103
+ readonly source?: "api" | "complaint" | "link" | "manual" | null | undefined;
104
104
  }) => import("effect/Effect").Effect<{
105
105
  readonly added: number;
106
106
  readonly skipped: number;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-B_Ty1LG-.js";
2
+ import { n as make } from "../operation-g8nAzmIM.js";
3
3
  //#region src/effect/unsubscribe-groups.ts
4
4
  var unsubscribe_groups_exports = /* @__PURE__ */ __exportAll({
5
5
  addEmails: () => addEmails,