samva 0.29.0 → 0.30.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 (185) hide show
  1. package/AGENTS.md +23 -5
  2. package/README.md +166 -133
  3. package/dist/_virtual/_rolldown/runtime.js +1 -2
  4. package/dist/client/client/client.gen.js +1 -2
  5. package/dist/client/client/utils.gen.js +1 -2
  6. package/dist/client/client.gen.js +1 -2
  7. package/dist/client/core/auth.gen.js +1 -2
  8. package/dist/client/core/bodySerializer.gen.js +1 -2
  9. package/dist/client/core/params.gen.js +1 -2
  10. package/dist/client/core/pathSerializer.gen.js +1 -2
  11. package/dist/client/core/serverSentEvents.gen.js +1 -2
  12. package/dist/client/core/utils.gen.js +1 -2
  13. package/dist/client/sdk.gen.d.ts +216 -191
  14. package/dist/client/sdk.gen.js +2392 -1153
  15. package/dist/client/types.gen.d.ts +766 -376
  16. package/dist/client-attribution.js +1 -2
  17. package/dist/effect/agents.d.ts +33 -11
  18. package/dist/effect/agents.js +1 -2
  19. package/dist/effect/analytics.d.ts +6 -6
  20. package/dist/effect/analytics.js +1 -2
  21. package/dist/effect/api-keys.d.ts +8 -8
  22. package/dist/effect/api-keys.js +1 -2
  23. package/dist/effect/attachments.d.ts +4 -4
  24. package/dist/effect/attachments.js +1 -2
  25. package/dist/effect/brands.d.ts +6 -6
  26. package/dist/effect/brands.js +1 -2
  27. package/dist/effect/campaigns.d.ts +15 -16
  28. package/dist/effect/campaigns.js +1 -2
  29. package/dist/effect/categories.js +1 -2
  30. package/dist/effect/client.js +1 -2
  31. package/dist/effect/contact-groups.d.ts +10 -10
  32. package/dist/effect/contact-groups.js +1 -2
  33. package/dist/effect/contacts.d.ts +23 -24
  34. package/dist/effect/contacts.js +1 -2
  35. package/dist/effect/conversations.d.ts +13 -13
  36. package/dist/effect/conversations.js +1 -2
  37. package/dist/effect/custom-fields.d.ts +4 -4
  38. package/dist/effect/custom-fields.js +1 -2
  39. package/dist/effect/email.d.ts +61 -63
  40. package/dist/effect/email.js +1 -2
  41. package/dist/effect/events.d.ts +2 -4
  42. package/dist/effect/events.js +1 -2
  43. package/dist/effect/extension-installations.d.ts +9 -9
  44. package/dist/effect/extension-installations.js +1 -2
  45. package/dist/effect/extensions.d.ts +5 -5
  46. package/dist/effect/extensions.js +1 -2
  47. package/dist/effect/feedback.d.ts +1 -1
  48. package/dist/effect/feedback.js +1 -2
  49. package/dist/effect/generated/agents.d.ts +264 -22
  50. package/dist/effect/generated/agents.js +2 -3
  51. package/dist/effect/generated/analytics.js +1 -2
  52. package/dist/effect/generated/api-keys.js +1 -2
  53. package/dist/effect/generated/attachments.js +1 -2
  54. package/dist/effect/generated/brands.js +1 -2
  55. package/dist/effect/generated/campaigns.d.ts +160 -155
  56. package/dist/effect/generated/campaigns.js +7 -9
  57. package/dist/effect/generated/contact-events.js +1 -2
  58. package/dist/effect/generated/contact-groups.d.ts +26 -26
  59. package/dist/effect/generated/contact-groups.js +22 -19
  60. package/dist/effect/generated/contacts.d.ts +119 -90
  61. package/dist/effect/generated/contacts.js +32 -32
  62. package/dist/effect/generated/conversations.d.ts +22 -22
  63. package/dist/effect/generated/conversations.js +7 -8
  64. package/dist/effect/generated/custom-fields.d.ts +6 -6
  65. package/dist/effect/generated/custom-fields.js +3 -4
  66. package/dist/effect/generated/email.d.ts +38 -38
  67. package/dist/effect/generated/email.js +13 -14
  68. package/dist/effect/generated/events.d.ts +18 -9
  69. package/dist/effect/generated/events.js +8 -6
  70. package/dist/effect/generated/extension-installations.d.ts +2 -2
  71. package/dist/effect/generated/extension-installations.js +6 -3
  72. package/dist/effect/generated/extensions.js +1 -2
  73. package/dist/effect/generated/feedback.js +1 -2
  74. package/dist/effect/generated/index.d.ts +7 -5
  75. package/dist/effect/generated/journeys.js +1 -2
  76. package/dist/effect/generated/mailboxes.d.ts +44 -44
  77. package/dist/effect/generated/mailboxes.js +17 -18
  78. package/dist/effect/generated/media.js +1 -2
  79. package/dist/effect/generated/messages.d.ts +42 -42
  80. package/dist/effect/generated/messages.js +3 -4
  81. package/dist/effect/generated/namespaces.js +1 -2
  82. package/dist/effect/generated/{publication-domains.d.ts → newsletter-domains.d.ts} +304 -80
  83. package/dist/effect/generated/newsletter-domains.js +218 -0
  84. package/dist/effect/generated/{topic-issues.d.ts → newsletter-issues.d.ts} +330 -288
  85. package/dist/effect/generated/{topic-issues.js → newsletter-issues.js} +255 -246
  86. package/dist/effect/generated/newsletters.d.ts +741 -0
  87. package/dist/effect/generated/newsletters.js +143 -0
  88. package/dist/effect/generated/operations.js +1 -2
  89. package/dist/effect/generated/organizations.d.ts +9 -9
  90. package/dist/effect/generated/organizations.js +4 -5
  91. package/dist/effect/generated/scheduled-messages.d.ts +174 -169
  92. package/dist/effect/generated/scheduled-messages.js +7 -7
  93. package/dist/effect/generated/shared.d.ts +276 -208
  94. package/dist/effect/generated/shared.js +50 -36
  95. package/dist/effect/generated/subscriptions.js +1 -2
  96. package/dist/effect/generated/templates.d.ts +118 -67
  97. package/dist/effect/generated/templates.js +43 -35
  98. package/dist/effect/generated/topic-forms.d.ts +79 -19
  99. package/dist/effect/generated/topic-forms.js +13 -14
  100. package/dist/effect/generated/topics.d.ts +27 -65
  101. package/dist/effect/generated/topics.js +13 -20
  102. package/dist/effect/generated/webhooks.d.ts +9 -9
  103. package/dist/effect/generated/webhooks.js +4 -5
  104. package/dist/effect/generated/whoami.js +1 -2
  105. package/dist/effect/generated-metadata.d.ts +475 -70
  106. package/dist/effect/generated-metadata.js +642 -432
  107. package/dist/effect/index.d.ts +3 -2
  108. package/dist/effect/index.js +4 -3
  109. package/dist/effect/internal/client.d.ts +5 -0
  110. package/dist/effect/internal/client.js +9 -5
  111. package/dist/effect/internal/email-sender.d.ts +1 -1
  112. package/dist/effect/internal/email-sender.js +4 -3
  113. package/dist/effect/internal/mailbox-events.js +1 -2
  114. package/dist/effect/internal/operation.d.ts +4 -15
  115. package/dist/effect/internal/operation.js +21 -33
  116. package/dist/effect/internal/send.js +2 -3
  117. package/dist/effect/journeys.d.ts +14 -14
  118. package/dist/effect/journeys.js +1 -2
  119. package/dist/effect/mailboxes.d.ts +60 -70
  120. package/dist/effect/mailboxes.js +1 -2
  121. package/dist/effect/media.d.ts +5 -5
  122. package/dist/effect/media.js +1 -2
  123. package/dist/effect/messages.d.ts +9 -9
  124. package/dist/effect/messages.js +1 -2
  125. package/dist/effect/namespaces.d.ts +8 -8
  126. package/dist/effect/namespaces.js +1 -2
  127. package/dist/effect/newsletter-domains.d.ts +71 -0
  128. package/dist/effect/newsletter-domains.js +18 -0
  129. package/dist/effect/{topic-issues.d.ts → newsletter-issues.d.ts} +11 -15
  130. package/dist/effect/newsletter-issues.js +32 -0
  131. package/dist/effect/newsletters.d.ts +22 -0
  132. package/dist/effect/newsletters.js +20 -0
  133. package/dist/effect/operations.d.ts +3 -3
  134. package/dist/effect/operations.js +1 -2
  135. package/dist/effect/organizations.d.ts +8 -10
  136. package/dist/effect/organizations.js +1 -2
  137. package/dist/effect/pagination.js +1 -2
  138. package/dist/effect/retry.d.ts +4 -4
  139. package/dist/effect/retry.js +5 -6
  140. package/dist/effect/runtime.js +1 -2
  141. package/dist/effect/scheduled-messages.d.ts +5 -6
  142. package/dist/effect/scheduled-messages.js +1 -2
  143. package/dist/effect/subscriptions.d.ts +1 -1
  144. package/dist/effect/subscriptions.js +1 -2
  145. package/dist/effect/templates.d.ts +34 -43
  146. package/dist/effect/templates.js +1 -2
  147. package/dist/effect/topic-forms.d.ts +5 -5
  148. package/dist/effect/topic-forms.js +1 -2
  149. package/dist/effect/topics.d.ts +9 -13
  150. package/dist/effect/topics.js +1 -2
  151. package/dist/effect/webhooks.d.ts +11 -11
  152. package/dist/effect/webhooks.js +1 -2
  153. package/dist/effect/whoami.d.ts +1 -1
  154. package/dist/effect/whoami.js +1 -2
  155. package/dist/index.js +2 -2
  156. package/dist/inline-attachments.js +1 -2
  157. package/dist/mailbox/dispatch.d.ts +10 -0
  158. package/dist/mailbox/dispatch.js +66 -0
  159. package/dist/mailbox/index.d.ts +17 -0
  160. package/dist/mailbox/index.js +30 -0
  161. package/dist/mailbox/test.d.ts +25 -0
  162. package/dist/mailbox/test.js +174 -0
  163. package/dist/mailbox/types.d.ts +184 -0
  164. package/dist/mailbox/webhook.d.ts +10 -0
  165. package/dist/mailbox/webhook.js +41 -0
  166. package/dist/mailbox-events.js +1 -2
  167. package/dist/normalize.js +1 -2
  168. package/dist/package.js +2 -3
  169. package/dist/promises/client.d.ts +215 -0
  170. package/dist/promises/client.js +324 -0
  171. package/dist/promises/errors.gen.js +1 -2
  172. package/dist/promises/index.d.ts +2 -196
  173. package/dist/promises/index.js +3 -295
  174. package/dist/promises/request.d.ts +15 -0
  175. package/dist/promises/request.js +75 -0
  176. package/dist/promises/types.gen.d.ts +1 -1
  177. package/dist/request-policy.d.ts +3 -0
  178. package/dist/request-policy.js +16 -0
  179. package/dist/service-map.d.ts +78 -47
  180. package/dist/service-map.js +52 -32
  181. package/package.json +34 -18
  182. package/dist/effect/generated/publication-domains.js +0 -163
  183. package/dist/effect/publication-domains.d.ts +0 -14
  184. package/dist/effect/publication-domains.js +0 -17
  185. package/dist/effect/topic-issues.js +0 -33
@@ -1,9 +1,8 @@
1
1
  import { version } from "./package.js";
2
- //#region src/client-attribution.ts
2
+ // src/client-attribution.ts
3
3
  const SDK_VERSION = version;
4
4
  const CLIENT_ATTRIBUTION_HEADER = "x-samva-client";
5
5
  const clientAttribution = (surface) => `${surface}/${SDK_VERSION}`;
6
- //#endregion
7
6
  export { CLIENT_ATTRIBUTION_HEADER, clientAttribution };
8
7
 
9
8
  //# sourceMappingURL=client-attribution.js.map
@@ -1,7 +1,7 @@
1
1
  export declare const list: ((input?: {
2
2
  readonly limit?: number | null | undefined;
3
3
  readonly cursor?: string | null | undefined;
4
- } | undefined) => import("./internal/operation").OperationResult<"agentsList">) & {
4
+ } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsList">) & {
5
5
  readonly pages: (input?: {
6
6
  readonly limit?: number | null | undefined;
7
7
  readonly cursor?: string | null | undefined;
@@ -37,7 +37,18 @@ export declare const create: (input: {
37
37
  readonly instructions: string;
38
38
  readonly knowledge: string;
39
39
  readonly endpointIds: readonly string[];
40
- readonly integrationIds: readonly string[];
40
+ readonly integrations: readonly {
41
+ readonly integrationId: string;
42
+ readonly tools: {
43
+ readonly kind: "all";
44
+ } | {
45
+ readonly kind: "readOnly";
46
+ } | {
47
+ readonly kind: "selected";
48
+ readonly names: readonly string[];
49
+ };
50
+ readonly requireApproval: readonly string[];
51
+ }[];
41
52
  readonly mode: "live" | "supervised";
42
53
  readonly model: "max" | "standard";
43
54
  readonly workingHours: {
@@ -50,17 +61,17 @@ export declare const create: (input: {
50
61
  } | null;
51
62
  readonly takeoverTimeoutMinutes: number;
52
63
  } | null | undefined;
53
- }) => import("./internal/operation").OperationResult<"agentsCreate">;
64
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsCreate">;
54
65
  export declare const get: (input: {
55
66
  readonly id: string;
56
- }) => import("./internal/operation").OperationResult<"agentsGet">;
67
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsGet">;
57
68
  export declare const update: (input: {
58
69
  readonly id: string;
59
70
  readonly name: string;
60
- }) => import("./internal/operation").OperationResult<"agentsUpdate">;
71
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsUpdate">;
61
72
  export declare const remove: (input: {
62
73
  readonly id: string;
63
- }) => import("./internal/operation").OperationResult<"agentsRemove">;
74
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsRemove">;
64
75
  export declare const replaceDraft: (input: {
65
76
  readonly id: string;
66
77
  readonly revision: string;
@@ -68,7 +79,18 @@ export declare const replaceDraft: (input: {
68
79
  readonly instructions: string;
69
80
  readonly knowledge: string;
70
81
  readonly endpointIds: readonly string[];
71
- readonly integrationIds: readonly string[];
82
+ readonly integrations: readonly {
83
+ readonly integrationId: string;
84
+ readonly tools: {
85
+ readonly kind: "all";
86
+ } | {
87
+ readonly kind: "readOnly";
88
+ } | {
89
+ readonly kind: "selected";
90
+ readonly names: readonly string[];
91
+ };
92
+ readonly requireApproval: readonly string[];
93
+ }[];
72
94
  readonly mode: "live" | "supervised";
73
95
  readonly model: "max" | "standard";
74
96
  readonly workingHours: {
@@ -81,16 +103,16 @@ export declare const replaceDraft: (input: {
81
103
  } | null;
82
104
  readonly takeoverTimeoutMinutes: number;
83
105
  };
84
- }) => import("./internal/operation").OperationResult<"agentsReplaceDraft">;
106
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsReplaceDraft">;
85
107
  export declare const publish: (input: {
86
108
  readonly id: string;
87
109
  readonly revision: string;
88
- }) => import("./internal/operation").OperationResult<"agentsPublish">;
110
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsPublish">;
89
111
  export declare const listVersions: ((input: {
90
112
  readonly id: string;
91
113
  readonly limit?: number | null | undefined;
92
114
  readonly cursor?: string | null | undefined;
93
- }) => import("./internal/operation").OperationResult<"agentsListVersions">) & {
115
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsListVersions">) & {
94
116
  readonly pages: (input: {
95
117
  readonly id: string;
96
118
  readonly limit?: number | null | undefined;
@@ -116,4 +138,4 @@ export declare const listVersions: ((input: {
116
138
  export declare const getVersion: (input: {
117
139
  readonly id: string;
118
140
  readonly version: string;
119
- }) => import("./internal/operation").OperationResult<"agentsGetVersion">;
141
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsGetVersion">;
@@ -1,7 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { AgentsGroup } from "./generated/agents.js";
3
3
  import { forGroup } from "./internal/operation.js";
4
- //#region src/effect/agents.ts
4
+ // src/effect/agents.ts
5
5
  var agents_exports = /* @__PURE__ */ __exportAll({
6
6
  create: () => create,
7
7
  get: () => get,
@@ -23,7 +23,6 @@ const replaceDraft = /* @__PURE__ */ make("agentsReplaceDraft");
23
23
  const publish = /* @__PURE__ */ make("agentsPublish");
24
24
  const listVersions = /* @__PURE__ */ make("agentsListVersions");
25
25
  const getVersion = /* @__PURE__ */ make("agentsGetVersion");
26
- //#endregion
27
26
  export { agents_exports, create, get, getVersion, list, listVersions, publish, remove, replaceDraft, update };
28
27
 
29
28
  //# sourceMappingURL=agents.js.map
@@ -3,29 +3,29 @@ export declare const getStats: (input?: {
3
3
  readonly before?: Date | null | undefined;
4
4
  readonly groupBy?: "day" | "month" | "week" | null | undefined;
5
5
  readonly channel?: "email" | null | undefined;
6
- } | undefined) => import("./internal/operation").OperationResult<"analyticsGetStats">;
6
+ } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetStats">;
7
7
  export declare const getChannelStats: (input?: {
8
8
  readonly after?: Date | null | undefined;
9
9
  readonly before?: Date | null | undefined;
10
- } | undefined) => import("./internal/operation").OperationResult<"analyticsGetChannelStats">;
10
+ } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetChannelStats">;
11
11
  export declare const getTopContacts: (input?: {
12
12
  readonly after?: Date | null | undefined;
13
13
  readonly before?: Date | null | undefined;
14
14
  readonly limit?: number | null | undefined;
15
15
  readonly sortBy?: "received" | "sent" | "total" | null | undefined;
16
- } | undefined) => import("./internal/operation").OperationResult<"analyticsGetTopContacts">;
16
+ } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetTopContacts">;
17
17
  export declare const getHourlyDistribution: (input?: {
18
18
  readonly after?: Date | null | undefined;
19
19
  readonly before?: Date | null | undefined;
20
- } | undefined) => import("./internal/operation").OperationResult<"analyticsGetHourlyDistribution">;
20
+ } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetHourlyDistribution">;
21
21
  export declare const getDeliveryMetrics: (input?: {
22
22
  readonly after?: Date | null | undefined;
23
23
  readonly before?: Date | null | undefined;
24
24
  readonly channel?: "email" | null | undefined;
25
- } | undefined) => import("./internal/operation").OperationResult<"analyticsGetDeliveryMetrics">;
25
+ } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetDeliveryMetrics">;
26
26
  export declare const exportData: (input: {
27
27
  readonly after: Date;
28
28
  readonly before: Date;
29
29
  readonly format?: "csv" | "json" | null | undefined;
30
30
  readonly includeChannels?: readonly "email"[] | null | undefined;
31
- }) => import("./internal/operation").OperationResult<"analyticsExportData">;
31
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsExportData">;
@@ -1,7 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { forGroup } from "./internal/operation.js";
3
3
  import { AnalyticsGroup } from "./generated/analytics.js";
4
- //#region src/effect/analytics.ts
4
+ // src/effect/analytics.ts
5
5
  var analytics_exports = /* @__PURE__ */ __exportAll({
6
6
  exportData: () => exportData,
7
7
  getChannelStats: () => getChannelStats,
@@ -17,7 +17,6 @@ const getTopContacts = /* @__PURE__ */ make("analyticsGetTopContacts");
17
17
  const getHourlyDistribution = /* @__PURE__ */ make("analyticsGetHourlyDistribution");
18
18
  const getDeliveryMetrics = /* @__PURE__ */ make("analyticsGetDeliveryMetrics");
19
19
  const exportData = /* @__PURE__ */ make("analyticsExportData");
20
- //#endregion
21
20
  export { analytics_exports, exportData, getChannelStats, getDeliveryMetrics, getHourlyDistribution, getStats, getTopContacts };
22
21
 
23
22
  //# sourceMappingURL=analytics.js.map
@@ -4,7 +4,7 @@ export declare const list: ((input?: {
4
4
  readonly cursor?: string | null | undefined;
5
5
  readonly status?: "active" | "revoked" | null | undefined;
6
6
  readonly search?: string | null | undefined;
7
- } | undefined) => import("./internal/operation").OperationResult<"apiKeysList">) & {
7
+ } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"apiKeysList">) & {
8
8
  readonly pages: (input?: {
9
9
  readonly limit?: number | null | undefined;
10
10
  readonly cursor?: string | null | undefined;
@@ -135,13 +135,13 @@ export declare const create: (input: {
135
135
  } | null | undefined;
136
136
  readonly namespaceId?: string | null | undefined;
137
137
  } | null | undefined;
138
- }) => import("./internal/operation").OperationResult<"apiKeysCreate">;
138
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"apiKeysCreate">;
139
139
  export declare const get: (input: {
140
140
  readonly id: string;
141
- }) => import("./internal/operation").OperationResult<"apiKeysGet">;
141
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"apiKeysGet">;
142
142
  export declare const revoke: (input: {
143
143
  readonly id: string;
144
- }) => import("./internal/operation").OperationResult<"apiKeysRevoke">;
144
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"apiKeysRevoke">;
145
145
  export declare const update: (input: {
146
146
  readonly id: string;
147
147
  readonly name?: string | null | undefined;
@@ -149,20 +149,20 @@ export declare const update: (input: {
149
149
  readonly mailboxes?: {
150
150
  readonly sendMode: "approval" | "send";
151
151
  } | null | undefined;
152
- }) => import("./internal/operation").OperationResult<"apiKeysUpdate">;
152
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"apiKeysUpdate">;
153
153
  export declare const rotate: (input: {
154
154
  readonly id: string;
155
- }) => import("./internal/operation").OperationResult<"apiKeysRotate">;
155
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"apiKeysRotate">;
156
156
  export declare const getStats: (input: {
157
157
  readonly id: string;
158
158
  readonly after?: string | null | undefined;
159
159
  readonly before?: string | null | undefined;
160
- }) => import("./internal/operation").OperationResult<"apiKeysGetStats">;
160
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"apiKeysGetStats">;
161
161
  export declare const getActivity: ((input: {
162
162
  readonly id: string;
163
163
  readonly limit?: number | null | undefined;
164
164
  readonly cursor?: string | null | undefined;
165
- }) => import("./internal/operation").OperationResult<"apiKeysGetActivity">) & {
165
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"apiKeysGetActivity">) & {
166
166
  readonly pages: (input: {
167
167
  readonly id: string;
168
168
  readonly limit?: number | null | undefined;
@@ -1,7 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { forGroup } from "./internal/operation.js";
3
3
  import { APIKeysGroup, ApiKeysCreateRequestJson, ApiKeysUpdateRequestJson } from "./generated/api-keys.js";
4
- //#region src/effect/api-keys.ts
4
+ // src/effect/api-keys.ts
5
5
  var api_keys_exports = /* @__PURE__ */ __exportAll({
6
6
  CreatePayload: () => ApiKeysCreateRequestJson,
7
7
  UpdatePayload: () => ApiKeysUpdateRequestJson,
@@ -23,7 +23,6 @@ const update = /* @__PURE__ */ make("apiKeysUpdate");
23
23
  const rotate = /* @__PURE__ */ make("apiKeysRotate");
24
24
  const getStats = /* @__PURE__ */ make("apiKeysGetStats");
25
25
  const getActivity = /* @__PURE__ */ make("apiKeysGetActivity");
26
- //#endregion
27
26
  export { ApiKeysCreateRequestJson as CreatePayload, ApiKeysUpdateRequestJson as UpdatePayload, api_keys_exports, create, get, getActivity, getStats, list, revoke, rotate, update };
28
27
 
29
28
  //# sourceMappingURL=api-keys.js.map
@@ -1,13 +1,13 @@
1
1
  export declare const list: (input: {
2
2
  readonly messageId: string;
3
- }) => import("./internal/operation").OperationResult<"attachmentsList">;
3
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"attachmentsList">;
4
4
  export declare const getById: (input: {
5
5
  readonly id: string;
6
- }) => import("./internal/operation").OperationResult<"attachmentsGetById">;
6
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"attachmentsGetById">;
7
7
  export declare const remove: (input: {
8
8
  readonly id: string;
9
- }) => import("./internal/operation").OperationResult<"attachmentsRemove">;
9
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"attachmentsRemove">;
10
10
  export declare const downloadUrl: (input: {
11
11
  readonly id: string;
12
12
  readonly expiresIn?: number | null | undefined;
13
- }) => import("./internal/operation").OperationResult<"attachmentsDownloadUrl">;
13
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"attachmentsDownloadUrl">;
@@ -1,7 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { forGroup } from "./internal/operation.js";
3
3
  import { AttachmentsGroup } from "./generated/attachments.js";
4
- //#region src/effect/attachments.ts
4
+ // src/effect/attachments.ts
5
5
  var attachments_exports = /* @__PURE__ */ __exportAll({
6
6
  downloadUrl: () => downloadUrl,
7
7
  getById: () => getById,
@@ -13,7 +13,6 @@ const list = /* @__PURE__ */ make("attachmentsList");
13
13
  const getById = /* @__PURE__ */ make("attachmentsGetById");
14
14
  const remove = /* @__PURE__ */ make("attachmentsRemove");
15
15
  const downloadUrl = /* @__PURE__ */ make("attachmentsDownloadUrl");
16
- //#endregion
17
16
  export { attachments_exports, downloadUrl, getById, list, remove };
18
17
 
19
18
  //# sourceMappingURL=attachments.js.map
@@ -1,5 +1,5 @@
1
1
  export { CreateBrand as CreatePayload, UpdateBrand as UpdatePayload } from "./generated/shared";
2
- export declare const list: (_?: never) => import("./internal/operation").OperationResult<"brandsList">;
2
+ export declare const list: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"brandsList">;
3
3
  export declare const create: (input: {
4
4
  readonly slug: string;
5
5
  readonly name: string;
@@ -26,10 +26,10 @@ export declare const create: (input: {
26
26
  }[] | null | undefined;
27
27
  } | null | undefined;
28
28
  readonly isDefault?: boolean | null | undefined;
29
- }) => import("./internal/operation").OperationResult<"brandsCreate">;
29
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"brandsCreate">;
30
30
  export declare const get: (input: {
31
31
  readonly slug: string;
32
- }) => import("./internal/operation").OperationResult<"brandsGet">;
32
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"brandsGet">;
33
33
  export declare const update: (input: {
34
34
  readonly slug: string;
35
35
  readonly newSlug?: string | null | undefined;
@@ -56,10 +56,10 @@ export declare const update: (input: {
56
56
  readonly url: string;
57
57
  }[] | null | undefined;
58
58
  } | null | undefined;
59
- }) => import("./internal/operation").OperationResult<"brandsUpdate">;
59
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"brandsUpdate">;
60
60
  export declare const remove: (input: {
61
61
  readonly slug: string;
62
- }) => import("./internal/operation").OperationResult<"brandsRemove">;
62
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"brandsRemove">;
63
63
  export declare const setDefault: (input: {
64
64
  readonly slug: string;
65
- }) => import("./internal/operation").OperationResult<"brandsSetDefault">;
65
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"brandsSetDefault">;
@@ -2,7 +2,7 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { CreateBrand, UpdateBrand } from "./generated/shared.js";
3
3
  import { forGroup } from "./internal/operation.js";
4
4
  import { BrandsGroup } from "./generated/brands.js";
5
- //#region src/effect/brands.ts
5
+ // src/effect/brands.ts
6
6
  var brands_exports = /* @__PURE__ */ __exportAll({
7
7
  CreatePayload: () => CreateBrand,
8
8
  UpdatePayload: () => UpdateBrand,
@@ -20,7 +20,6 @@ const get = /* @__PURE__ */ make("brandsGet");
20
20
  const update = /* @__PURE__ */ make("brandsUpdate");
21
21
  const remove = /* @__PURE__ */ make("brandsRemove");
22
22
  const setDefault = /* @__PURE__ */ make("brandsSetDefault");
23
- //#endregion
24
23
  export { CreateBrand as CreatePayload, UpdateBrand as UpdatePayload, brands_exports, create, get, list, remove, setDefault, update };
25
24
 
26
25
  //# sourceMappingURL=brands.js.map
@@ -106,7 +106,7 @@ export declare const preview: (input: {
106
106
  readonly groupIds?: readonly string[] | null | undefined;
107
107
  };
108
108
  readonly contactId?: string | null | undefined;
109
- }) => import("./internal/operation").OperationResult<"campaignsPreview">;
109
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsPreview">;
110
110
  export declare const sendTest: (input: {
111
111
  readonly content: {
112
112
  readonly channel: "email";
@@ -215,12 +215,12 @@ export declare const sendTest: (input: {
215
215
  readonly groupIds?: readonly string[] | null | undefined;
216
216
  };
217
217
  readonly contactId?: string | null | undefined;
218
- }) => import("./internal/operation").OperationResult<"campaignsSendTest">;
218
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsSendTest">;
219
219
  export declare const list: ((input?: {
220
220
  readonly status?: "archived" | "draft" | null | undefined;
221
221
  readonly limit?: number | null | undefined;
222
222
  readonly cursor?: string | null | undefined;
223
- } | undefined) => import("./internal/operation").OperationResult<"campaignsList">) & {
223
+ } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsList">) & {
224
224
  readonly pages: (input?: {
225
225
  readonly status?: "archived" | "draft" | null | undefined;
226
226
  readonly limit?: number | null | undefined;
@@ -521,13 +521,13 @@ export declare const create: (input: {
521
521
  readonly policy?: {
522
522
  readonly pageSize?: number | null | undefined;
523
523
  } | null | undefined;
524
- }) => import("./internal/operation").OperationResult<"campaignsCreate">;
524
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsCreate">;
525
525
  export declare const get: (input: {
526
526
  readonly id: string;
527
- }) => import("./internal/operation").OperationResult<"campaignsGet">;
527
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsGet">;
528
528
  export declare const archive: (input: {
529
529
  readonly id: string;
530
- }) => import("./internal/operation").OperationResult<"campaignsArchive">;
530
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsArchive">;
531
531
  export declare const update: (input: {
532
532
  readonly id: string;
533
533
  readonly name?: string | null | undefined;
@@ -640,13 +640,13 @@ export declare const update: (input: {
640
640
  readonly policy?: {
641
641
  readonly pageSize?: number | null | undefined;
642
642
  } | null | undefined;
643
- }) => import("./internal/operation").OperationResult<"campaignsUpdate">;
643
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsUpdate">;
644
644
  export declare const listRuns: ((input: {
645
645
  readonly id: string;
646
646
  readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | null | undefined;
647
647
  readonly limit?: number | null | undefined;
648
648
  readonly cursor?: string | null | undefined;
649
- }) => import("./internal/operation").OperationResult<"campaignsListRuns">) & {
649
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsListRuns">) & {
650
650
  readonly pages: (input: {
651
651
  readonly id: string;
652
652
  readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | null | undefined;
@@ -846,35 +846,34 @@ export declare const listRuns: ((input: {
846
846
  export declare const scheduleRun: (input: {
847
847
  readonly id: string;
848
848
  readonly scheduledFor?: Date | null | undefined;
849
- readonly idempotencyKey?: string | null | undefined;
850
- }) => import("./internal/operation").OperationResult<"campaignsScheduleRun">;
849
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsScheduleRun">;
851
850
  export declare const getRun: (input: {
852
851
  readonly id: string;
853
852
  readonly runId: string;
854
- }) => import("./internal/operation").OperationResult<"campaignsGetRun">;
853
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsGetRun">;
855
854
  export declare const getRunReport: (input: {
856
855
  readonly id: string;
857
856
  readonly runId: string;
858
- }) => import("./internal/operation").OperationResult<"campaignsGetRunReport">;
857
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsGetRunReport">;
859
858
  export declare const pauseRun: (input: {
860
859
  readonly id: string;
861
860
  readonly runId: string;
862
- }) => import("./internal/operation").OperationResult<"campaignsPauseRun">;
861
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsPauseRun">;
863
862
  export declare const resumeRun: (input: {
864
863
  readonly id: string;
865
864
  readonly runId: string;
866
- }) => import("./internal/operation").OperationResult<"campaignsResumeRun">;
865
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsResumeRun">;
867
866
  export declare const cancelRun: (input: {
868
867
  readonly id: string;
869
868
  readonly runId: string;
870
- }) => import("./internal/operation").OperationResult<"campaignsCancelRun">;
869
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsCancelRun">;
871
870
  export declare const listRecipients: ((input: {
872
871
  readonly id: string;
873
872
  readonly runId: string;
874
873
  readonly status?: "dispatched" | "dispatching" | "failed" | "pending" | "skipped" | null | undefined;
875
874
  readonly limit?: number | null | undefined;
876
875
  readonly cursor?: string | null | undefined;
877
- }) => import("./internal/operation").OperationResult<"campaignsListRecipients">) & {
876
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsListRecipients">) & {
878
877
  readonly pages: (input: {
879
878
  readonly id: string;
880
879
  readonly runId: string;
@@ -1,7 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { forGroup } from "./internal/operation.js";
3
3
  import { CampaignsGroup } from "./generated/campaigns.js";
4
- //#region src/effect/campaigns.ts
4
+ // src/effect/campaigns.ts
5
5
  var campaigns_exports = /* @__PURE__ */ __exportAll({
6
6
  archive: () => archive,
7
7
  cancelRun: () => cancelRun,
@@ -35,7 +35,6 @@ const pauseRun = /* @__PURE__ */ make("campaignsPauseRun");
35
35
  const resumeRun = /* @__PURE__ */ make("campaignsResumeRun");
36
36
  const cancelRun = /* @__PURE__ */ make("campaignsCancelRun");
37
37
  const listRecipients = /* @__PURE__ */ make("campaignsListRecipients");
38
- //#endregion
39
38
  export { archive, campaigns_exports, cancelRun, create, get, getRun, getRunReport, list, listRecipients, listRuns, pauseRun, preview, resumeRun, scheduleRun, sendTest, update };
40
39
 
41
40
  //# sourceMappingURL=campaigns.js.map
@@ -1,7 +1,7 @@
1
1
  import { SamvaErrorMetadata } from "./generated-metadata.js";
2
2
  import { Effect } from "effect";
3
3
  import * as Predicate$1 from "effect/Predicate";
4
- //#region src/effect/categories.ts
4
+ // src/effect/categories.ts
5
5
  /**
6
6
  * Semantic error-category helpers for the Effect SDK.
7
7
  *
@@ -90,7 +90,6 @@ const catchBillingError = (handler) => catchCategory("billing", handler);
90
90
  * transient covers untyped transport errors as well.
91
91
  */
92
92
  const catchTransient = (handler) => (effect) => Effect.catchIf(effect, isTransient, handler);
93
- //#endregion
94
93
  export { catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
95
94
 
96
95
  //# sourceMappingURL=categories.js.map
@@ -1,12 +1,11 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { Service, layer, layerFetch } from "./internal/client.js";
3
- //#region src/effect/client.ts
3
+ // src/effect/client.ts
4
4
  var client_exports = /* @__PURE__ */ __exportAll({
5
5
  Service: () => Service,
6
6
  layer: () => layer,
7
7
  layerFetch: () => layerFetch
8
8
  });
9
- //#endregion
10
9
  export { Service, client_exports, layer, layerFetch };
11
10
 
12
11
  //# sourceMappingURL=client.js.map
@@ -3,7 +3,7 @@ export declare const list: ((input?: {
3
3
  readonly cursor?: string | null | undefined;
4
4
  readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] | null | undefined;
5
5
  readonly isActive?: boolean | null | undefined;
6
- } | undefined) => import("./internal/operation").OperationResult<"contactGroupsList">) & {
6
+ } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsList">) & {
7
7
  readonly pages: (input?: {
8
8
  readonly limit?: number | null | undefined;
9
9
  readonly cursor?: string | null | undefined;
@@ -89,10 +89,10 @@ export declare const create: (input: {
89
89
  readonly icon?: string | null | undefined;
90
90
  readonly parentGroupId?: string | null | undefined;
91
91
  readonly isActive?: boolean | null | undefined;
92
- }) => import("./internal/operation").OperationResult<"contactGroupsCreate">;
92
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsCreate">;
93
93
  export declare const getById: (input: {
94
94
  readonly id: string;
95
- }) => import("./internal/operation").OperationResult<"contactGroupsGetById">;
95
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsGetById">;
96
96
  export declare const update: (input: {
97
97
  readonly id: string;
98
98
  readonly name?: string | null | undefined;
@@ -129,10 +129,10 @@ export declare const update: (input: {
129
129
  readonly icon?: string | null | undefined;
130
130
  readonly parentGroupId?: string | null | undefined;
131
131
  readonly isActive?: boolean | null | undefined;
132
- }) => import("./internal/operation").OperationResult<"contactGroupsUpdate">;
132
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsUpdate">;
133
133
  export declare const remove: (input: {
134
134
  readonly id: string;
135
- }) => import("./internal/operation").OperationResult<"contactGroupsRemove">;
135
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsRemove">;
136
136
  export declare const preview: (input: {
137
137
  readonly criteria: {
138
138
  readonly tags?: readonly string[] | null | undefined;
@@ -166,15 +166,15 @@ export declare const preview: (input: {
166
166
  } | null;
167
167
  }[] | null | undefined;
168
168
  };
169
- }) => import("./internal/operation").OperationResult<"contactGroupsPreview">;
169
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsPreview">;
170
170
  export declare const evaluateDynamic: (input: {
171
171
  readonly id: string;
172
- }) => import("./internal/operation").OperationResult<"contactGroupsEvaluateDynamic">;
172
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsEvaluateDynamic">;
173
173
  export declare const getMembers: ((input: {
174
174
  readonly id: string;
175
175
  readonly limit?: number | null | undefined;
176
176
  readonly cursor?: string | null | undefined;
177
- }) => import("./internal/operation").OperationResult<"contactGroupsGetMembers">) & {
177
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsGetMembers">) & {
178
178
  readonly pages: (input: {
179
179
  readonly id: string;
180
180
  readonly limit?: number | null | undefined;
@@ -259,8 +259,8 @@ export declare const addMembers: (input: {
259
259
  readonly id: string;
260
260
  readonly contactIds: readonly string[];
261
261
  readonly role?: "admin" | "member" | "moderator" | null | undefined;
262
- }) => import("./internal/operation").OperationResult<"contactGroupsAddMembers">;
262
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsAddMembers">;
263
263
  export declare const removeMembers: (input: {
264
264
  readonly id: string;
265
265
  readonly contactIds: readonly string[];
266
- }) => import("./internal/operation").OperationResult<"contactGroupsRemoveMembers">;
266
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsRemoveMembers">;
@@ -1,7 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { forGroup } from "./internal/operation.js";
3
3
  import { ContactGroupsGroup } from "./generated/contact-groups.js";
4
- //#region src/effect/contact-groups.ts
4
+ // src/effect/contact-groups.ts
5
5
  var contact_groups_exports = /* @__PURE__ */ __exportAll({
6
6
  addMembers: () => addMembers,
7
7
  create: () => create,
@@ -25,7 +25,6 @@ const evaluateDynamic = /* @__PURE__ */ make("contactGroupsEvaluateDynamic");
25
25
  const getMembers = /* @__PURE__ */ make("contactGroupsGetMembers");
26
26
  const addMembers = /* @__PURE__ */ make("contactGroupsAddMembers");
27
27
  const removeMembers = /* @__PURE__ */ make("contactGroupsRemoveMembers");
28
- //#endregion
29
28
  export { addMembers, contact_groups_exports, create, evaluateDynamic, getById, getMembers, list, preview, remove, removeMembers, update };
30
29
 
31
30
  //# sourceMappingURL=contact-groups.js.map