samva 0.5.0 → 0.7.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 (65) hide show
  1. package/AGENTS.md +3 -2
  2. package/README.md +14 -4
  3. package/dist/{categories-B9Nw2v_F.js → categories-DvsHUJtX.js} +32 -8
  4. package/dist/client/sdk.gen.d.ts +493 -88
  5. package/dist/client/types.gen.d.ts +3136 -416
  6. package/dist/{client-B7gEkvEq.js → client-5O8KsY5Z.js} +2638 -902
  7. package/dist/{client-attribution-B2yJBXdZ.js → client-attribution-27MNycCV.js} +2 -2
  8. package/dist/effect/analytics.d.ts +66 -0
  9. package/dist/effect/analytics.js +21 -0
  10. package/dist/effect/api-keys.d.ts +198 -34
  11. package/dist/effect/api-keys.js +1 -1
  12. package/dist/effect/attachments.d.ts +53 -0
  13. package/dist/effect/attachments.js +17 -0
  14. package/dist/effect/brands.d.ts +212 -0
  15. package/dist/effect/brands.js +24 -0
  16. package/dist/effect/campaigns.d.ts +36 -18
  17. package/dist/effect/campaigns.js +1 -1
  18. package/dist/effect/categories.d.ts +3 -3
  19. package/dist/effect/categories.js +1 -1
  20. package/dist/effect/client.js +1 -1
  21. package/dist/effect/contact-groups.d.ts +375 -0
  22. package/dist/effect/contact-groups.js +29 -0
  23. package/dist/effect/contacts.d.ts +35 -19
  24. package/dist/effect/contacts.js +1 -1
  25. package/dist/effect/conversations.d.ts +188 -47
  26. package/dist/effect/conversations.js +1 -1
  27. package/dist/effect/custom-fields.d.ts +111 -0
  28. package/dist/effect/custom-fields.js +17 -0
  29. package/dist/effect/email.d.ts +268 -121
  30. package/dist/effect/email.js +2 -2
  31. package/dist/effect/generated-metadata.d.ts +20 -4
  32. package/dist/effect/generated.d.ts +13934 -7968
  33. package/dist/effect/index.d.ts +7 -2
  34. package/dist/effect/index.js +9 -4
  35. package/dist/effect/internal/operation.d.ts +121 -27
  36. package/dist/effect/media.d.ts +5 -5
  37. package/dist/effect/media.js +1 -1
  38. package/dist/effect/messages.d.ts +319 -73
  39. package/dist/effect/messages.js +1 -1
  40. package/dist/effect/operations.d.ts +6 -6
  41. package/dist/effect/operations.js +1 -1
  42. package/dist/effect/organizations.d.ts +7 -374
  43. package/dist/effect/organizations.js +2 -4
  44. package/dist/effect/retry.js +1 -1
  45. package/dist/effect/scheduled-messages.d.ts +7 -7
  46. package/dist/effect/scheduled-messages.js +1 -1
  47. package/dist/effect/templates.d.ts +263 -305
  48. package/dist/effect/templates.js +7 -5
  49. package/dist/effect/unsubscribe-groups.d.ts +161 -0
  50. package/dist/effect/unsubscribe-groups.js +25 -0
  51. package/dist/effect/webhooks.d.ts +18 -18
  52. package/dist/effect/webhooks.js +2 -2
  53. package/dist/index.js +2 -2
  54. package/dist/{normalize-BiIJnycv.js → normalize-B79uJIeb.js} +13 -14
  55. package/dist/normalize.d.ts +3 -7
  56. package/dist/{operation-B4FjN6wq.js → operation-Cb5V9FJ7.js} +123 -11
  57. package/dist/promises/errors.gen.d.ts +50 -43
  58. package/dist/promises/index.d.ts +20 -6
  59. package/dist/promises/index.js +2 -2
  60. package/dist/promises/types.gen.d.ts +1 -1
  61. package/dist/{promises-CP_nxUus.js → promises-C2yyw-pf.js} +1582 -368
  62. package/dist/service-map.d.ts +189 -12
  63. package/package.json +32 -12
  64. package/dist/effect/design.d.ts +0 -209
  65. package/dist/effect/design.js +0 -13
@@ -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-B4FjN6wq.js";
2
+ import { i as sendMessage, n as make } from "../operation-Cb5V9FJ7.js";
3
3
  //#region src/effect/messages.ts
4
4
  var messages_exports = /* @__PURE__ */ __exportAll({
5
5
  get: () => get,
@@ -19,7 +19,7 @@ export declare const list: (input?: {
19
19
  readonly status: "failed" | "pending" | "running" | "succeeded";
20
20
  readonly phase: "accepted" | "completed" | "deleting" | "dispatching" | "finalizing" | "provisioning";
21
21
  readonly error: {
22
- readonly code: "capacity-unavailable" | "conflict" | "internal" | "provider-rejected" | "provider-unavailable" | "timed-out" | "validation-failed";
22
+ readonly code: "capacity-unavailable" | "conflict" | "internal" | "rejected" | "timed-out" | "unavailable" | "validation-failed";
23
23
  readonly message: string;
24
24
  } | null;
25
25
  readonly createdAt: string;
@@ -32,7 +32,7 @@ export declare const list: (input?: {
32
32
  readonly limit: number;
33
33
  readonly total: number;
34
34
  };
35
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
35
+ }, 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>;
36
36
  export declare const get: (input: {
37
37
  readonly operationId: string;
38
38
  }) => import("effect/Effect").Effect<{
@@ -50,14 +50,14 @@ export declare const get: (input: {
50
50
  readonly status: "failed" | "pending" | "running" | "succeeded";
51
51
  readonly phase: "accepted" | "completed" | "deleting" | "dispatching" | "finalizing" | "provisioning";
52
52
  readonly error: {
53
- readonly code: "capacity-unavailable" | "conflict" | "internal" | "provider-rejected" | "provider-unavailable" | "timed-out" | "validation-failed";
53
+ readonly code: "capacity-unavailable" | "conflict" | "internal" | "rejected" | "timed-out" | "unavailable" | "validation-failed";
54
54
  readonly message: string;
55
55
  } | null;
56
56
  readonly createdAt: string;
57
57
  readonly updatedAt: string;
58
58
  readonly startedAt: string | null;
59
59
  readonly completedAt: string | null;
60
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
60
+ }, 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>;
61
61
  export declare const retry: (input: {
62
62
  readonly operationId: string;
63
63
  }) => import("effect/Effect").Effect<{
@@ -76,7 +76,7 @@ export declare const retry: (input: {
76
76
  readonly status: "failed" | "pending" | "running" | "succeeded";
77
77
  readonly phase: "accepted" | "completed" | "deleting" | "dispatching" | "finalizing" | "provisioning";
78
78
  readonly error: {
79
- readonly code: "capacity-unavailable" | "conflict" | "internal" | "provider-rejected" | "provider-unavailable" | "timed-out" | "validation-failed";
79
+ readonly code: "capacity-unavailable" | "conflict" | "internal" | "rejected" | "timed-out" | "unavailable" | "validation-failed";
80
80
  readonly message: string;
81
81
  } | null;
82
82
  readonly createdAt: string;
@@ -94,4 +94,4 @@ export declare const retry: (input: {
94
94
  readonly href: string;
95
95
  };
96
96
  };
97
- }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
97
+ }, 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>;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-B4FjN6wq.js";
2
+ import { n as make } from "../operation-Cb5V9FJ7.js";
3
3
  //#region src/effect/operations.ts
4
4
  var operations_exports = /* @__PURE__ */ __exportAll({
5
5
  get: () => get,
@@ -1,99 +1,3 @@
1
- export declare const bootstrap: (input: {
2
- readonly name: string;
3
- }) => import("effect/Effect").Effect<{
4
- readonly id: string;
5
- readonly billingAccountId: string;
6
- readonly name: string;
7
- readonly slug: string;
8
- readonly defaultCurrency: string;
9
- readonly countryCode: string;
10
- readonly timezone: string;
11
- readonly billingEmail: string | null;
12
- readonly plan: string;
13
- readonly isActive: boolean;
14
- readonly createdAt: string;
15
- readonly updatedAt: string;
16
- readonly metadata: {
17
- readonly [x: string]: import("./generated").JsonValue;
18
- } | null;
19
- readonly design: {
20
- readonly theme?: {
21
- readonly colors?: {
22
- readonly [x: string]: string;
23
- } | null;
24
- readonly colorsDark?: {
25
- readonly [x: string]: string;
26
- } | null;
27
- readonly radiusPx?: {
28
- readonly [x: string]: number;
29
- } | null;
30
- readonly fontFamilies?: {
31
- readonly [x: string]: {
32
- readonly source: "custom" | "google" | "system";
33
- readonly family: string;
34
- readonly fallback: string;
35
- readonly faces?: readonly {
36
- readonly weight: number;
37
- readonly style: "italic" | "normal";
38
- readonly src: string;
39
- readonly unicodeRange?: string | null;
40
- }[] | null;
41
- };
42
- } | null;
43
- readonly fontWeights?: {
44
- readonly [x: string]: number;
45
- } | null;
46
- readonly text?: {
47
- readonly [x: string]: {
48
- readonly sizePx: number;
49
- readonly lineHeightPx: number;
50
- };
51
- } | null;
52
- readonly leading?: {
53
- readonly [x: string]: number;
54
- } | null;
55
- readonly spacingPx?: number | null;
56
- readonly containerPx?: {
57
- readonly [x: string]: number;
58
- } | null;
59
- readonly tracking?: {
60
- readonly [x: string]: number;
61
- } | null;
62
- } | null;
63
- readonly assets?: {
64
- readonly logoUrl?: string | null;
65
- readonly logoDarkUrl?: string | null;
66
- readonly iconUrl?: string | null;
67
- } | null;
68
- readonly footer?: {
69
- readonly companyName?: string | null;
70
- readonly address?: {
71
- readonly street1: string;
72
- readonly street2?: string | null;
73
- readonly city: string;
74
- readonly region: string;
75
- readonly postalCode: string;
76
- readonly country: string;
77
- } | null;
78
- readonly socialLinks?: readonly {
79
- readonly label: string;
80
- readonly url: string;
81
- }[] | null;
82
- readonly customHtml?: string | null;
83
- } | null;
84
- } | null;
85
- readonly replyToDefault: readonly string[] | null;
86
- readonly defaultUnsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
87
- readonly emailFooterEnabledDefault: boolean | null;
88
- readonly messagesUsed: number;
89
- readonly messagesUsedThisMonth: number;
90
- readonly emailUsed: number;
91
- readonly emailUsedThisMonth: number;
92
- readonly contactsUsed: number;
93
- readonly conversationsUsed: number;
94
- readonly teamMembersUsed: number;
95
- readonly messagesResetAt: string | null;
96
- }, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
97
1
  export declare const create: (input: {
98
2
  readonly name: string;
99
3
  }) => import("effect/Effect").Effect<{
@@ -101,10 +5,8 @@ export declare const create: (input: {
101
5
  readonly billingAccountId: string;
102
6
  readonly name: string;
103
7
  readonly slug: string;
104
- readonly defaultCurrency: string;
105
8
  readonly countryCode: string;
106
9
  readonly timezone: string;
107
- readonly billingEmail: string | null;
108
10
  readonly plan: string;
109
11
  readonly isActive: boolean;
110
12
  readonly createdAt: string;
@@ -112,72 +14,6 @@ export declare const create: (input: {
112
14
  readonly metadata: {
113
15
  readonly [x: string]: import("./generated").JsonValue;
114
16
  } | null;
115
- readonly design: {
116
- readonly theme?: {
117
- readonly colors?: {
118
- readonly [x: string]: string;
119
- } | null;
120
- readonly colorsDark?: {
121
- readonly [x: string]: string;
122
- } | null;
123
- readonly radiusPx?: {
124
- readonly [x: string]: number;
125
- } | null;
126
- readonly fontFamilies?: {
127
- readonly [x: string]: {
128
- readonly source: "custom" | "google" | "system";
129
- readonly family: string;
130
- readonly fallback: string;
131
- readonly faces?: readonly {
132
- readonly weight: number;
133
- readonly style: "italic" | "normal";
134
- readonly src: string;
135
- readonly unicodeRange?: string | null;
136
- }[] | null;
137
- };
138
- } | null;
139
- readonly fontWeights?: {
140
- readonly [x: string]: number;
141
- } | null;
142
- readonly text?: {
143
- readonly [x: string]: {
144
- readonly sizePx: number;
145
- readonly lineHeightPx: number;
146
- };
147
- } | null;
148
- readonly leading?: {
149
- readonly [x: string]: number;
150
- } | null;
151
- readonly spacingPx?: number | null;
152
- readonly containerPx?: {
153
- readonly [x: string]: number;
154
- } | null;
155
- readonly tracking?: {
156
- readonly [x: string]: number;
157
- } | null;
158
- } | null;
159
- readonly assets?: {
160
- readonly logoUrl?: string | null;
161
- readonly logoDarkUrl?: string | null;
162
- readonly iconUrl?: string | null;
163
- } | null;
164
- readonly footer?: {
165
- readonly companyName?: string | null;
166
- readonly address?: {
167
- readonly street1: string;
168
- readonly street2?: string | null;
169
- readonly city: string;
170
- readonly region: string;
171
- readonly postalCode: string;
172
- readonly country: string;
173
- } | null;
174
- readonly socialLinks?: readonly {
175
- readonly label: string;
176
- readonly url: string;
177
- }[] | null;
178
- readonly customHtml?: string | null;
179
- } | null;
180
- } | null;
181
17
  readonly replyToDefault: readonly string[] | null;
182
18
  readonly defaultUnsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
183
19
  readonly emailFooterEnabledDefault: boolean | null;
@@ -189,16 +25,14 @@ export declare const create: (input: {
189
25
  readonly conversationsUsed: number;
190
26
  readonly teamMembersUsed: number;
191
27
  readonly messagesResetAt: string | null;
192
- }, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
28
+ }, import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
193
29
  export declare const get: (_?: never) => import("effect/Effect").Effect<{
194
30
  readonly id: string;
195
31
  readonly billingAccountId: string;
196
32
  readonly name: string;
197
33
  readonly slug: string;
198
- readonly defaultCurrency: string;
199
34
  readonly countryCode: string;
200
35
  readonly timezone: string;
201
- readonly billingEmail: string | null;
202
36
  readonly plan: string;
203
37
  readonly isActive: boolean;
204
38
  readonly createdAt: string;
@@ -206,72 +40,6 @@ export declare const get: (_?: never) => import("effect/Effect").Effect<{
206
40
  readonly metadata: {
207
41
  readonly [x: string]: import("./generated").JsonValue;
208
42
  } | null;
209
- readonly design: {
210
- readonly theme?: {
211
- readonly colors?: {
212
- readonly [x: string]: string;
213
- } | null;
214
- readonly colorsDark?: {
215
- readonly [x: string]: string;
216
- } | null;
217
- readonly radiusPx?: {
218
- readonly [x: string]: number;
219
- } | null;
220
- readonly fontFamilies?: {
221
- readonly [x: string]: {
222
- readonly source: "custom" | "google" | "system";
223
- readonly family: string;
224
- readonly fallback: string;
225
- readonly faces?: readonly {
226
- readonly weight: number;
227
- readonly style: "italic" | "normal";
228
- readonly src: string;
229
- readonly unicodeRange?: string | null;
230
- }[] | null;
231
- };
232
- } | null;
233
- readonly fontWeights?: {
234
- readonly [x: string]: number;
235
- } | null;
236
- readonly text?: {
237
- readonly [x: string]: {
238
- readonly sizePx: number;
239
- readonly lineHeightPx: number;
240
- };
241
- } | null;
242
- readonly leading?: {
243
- readonly [x: string]: number;
244
- } | null;
245
- readonly spacingPx?: number | null;
246
- readonly containerPx?: {
247
- readonly [x: string]: number;
248
- } | null;
249
- readonly tracking?: {
250
- readonly [x: string]: number;
251
- } | null;
252
- } | null;
253
- readonly assets?: {
254
- readonly logoUrl?: string | null;
255
- readonly logoDarkUrl?: string | null;
256
- readonly iconUrl?: string | null;
257
- } | null;
258
- readonly footer?: {
259
- readonly companyName?: string | null;
260
- readonly address?: {
261
- readonly street1: string;
262
- readonly street2?: string | null;
263
- readonly city: string;
264
- readonly region: string;
265
- readonly postalCode: string;
266
- readonly country: string;
267
- } | null;
268
- readonly socialLinks?: readonly {
269
- readonly label: string;
270
- readonly url: string;
271
- }[] | null;
272
- readonly customHtml?: string | null;
273
- } | null;
274
- } | null;
275
43
  readonly replyToDefault: readonly string[] | null;
276
44
  readonly defaultUnsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
277
45
  readonly emailFooterEnabledDefault: boolean | null;
@@ -283,13 +51,11 @@ export declare const get: (_?: never) => import("effect/Effect").Effect<{
283
51
  readonly conversationsUsed: number;
284
52
  readonly teamMembersUsed: number;
285
53
  readonly messagesResetAt: string | null;
286
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
54
+ }, 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>;
287
55
  export declare const update: (input?: {
288
56
  readonly name?: string | null | undefined;
289
57
  readonly slug?: string | null | undefined;
290
- readonly billingEmail?: string | null | undefined;
291
58
  readonly countryCode?: string | null | undefined;
292
- readonly currency?: string | null | undefined;
293
59
  readonly timezone?: string | null | undefined;
294
60
  readonly isActive?: boolean | null | undefined;
295
61
  readonly metadata?: {
@@ -319,72 +85,6 @@ export declare const update: (input?: {
319
85
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
320
86
  } | null | undefined;
321
87
  } | null | undefined;
322
- readonly design?: {
323
- readonly theme?: {
324
- readonly colors?: {
325
- readonly [x: string]: string | undefined;
326
- } | null | undefined;
327
- readonly colorsDark?: {
328
- readonly [x: string]: string | undefined;
329
- } | null | undefined;
330
- readonly radiusPx?: {
331
- readonly [x: string]: number | undefined;
332
- } | null | undefined;
333
- readonly fontFamilies?: {
334
- readonly [x: string]: {
335
- readonly source: string;
336
- readonly family: string;
337
- readonly fallback: string;
338
- readonly faces?: readonly {
339
- readonly weight: number;
340
- readonly style: string;
341
- readonly src: string;
342
- readonly unicodeRange?: string | null | undefined;
343
- }[] | null | undefined;
344
- } | undefined;
345
- } | null | undefined;
346
- readonly fontWeights?: {
347
- readonly [x: string]: number | undefined;
348
- } | null | undefined;
349
- readonly text?: {
350
- readonly [x: string]: {
351
- readonly sizePx: number;
352
- readonly lineHeightPx: number;
353
- } | undefined;
354
- } | null | undefined;
355
- readonly leading?: {
356
- readonly [x: string]: number | undefined;
357
- } | null | undefined;
358
- readonly spacingPx?: number | null | undefined;
359
- readonly containerPx?: {
360
- readonly [x: string]: number | undefined;
361
- } | null | undefined;
362
- readonly tracking?: {
363
- readonly [x: string]: number | undefined;
364
- } | null | undefined;
365
- } | null | undefined;
366
- readonly assets?: {
367
- readonly logoUrl?: string | null | undefined;
368
- readonly logoDarkUrl?: string | null | undefined;
369
- readonly iconUrl?: string | null | undefined;
370
- } | null | undefined;
371
- readonly footer?: {
372
- readonly companyName?: string | null | undefined;
373
- readonly address?: {
374
- readonly street1: string;
375
- readonly street2?: string | null | undefined;
376
- readonly city: string;
377
- readonly region: string;
378
- readonly postalCode: string;
379
- readonly country: string;
380
- } | null | undefined;
381
- readonly socialLinks?: readonly {
382
- readonly label: string;
383
- readonly url: string;
384
- }[] | null | undefined;
385
- readonly customHtml?: string | null | undefined;
386
- } | null | undefined;
387
- } | null | undefined;
388
88
  readonly replyToDefault?: readonly string[] | null | undefined;
389
89
  readonly defaultUnsubscribeGroupId?: string | null | undefined;
390
90
  readonly emailFooterEnabledDefault?: boolean | null | undefined;
@@ -393,10 +93,8 @@ export declare const update: (input?: {
393
93
  readonly billingAccountId: string;
394
94
  readonly name: string;
395
95
  readonly slug: string;
396
- readonly defaultCurrency: string;
397
96
  readonly countryCode: string;
398
97
  readonly timezone: string;
399
- readonly billingEmail: string | null;
400
98
  readonly plan: string;
401
99
  readonly isActive: boolean;
402
100
  readonly createdAt: string;
@@ -404,72 +102,6 @@ export declare const update: (input?: {
404
102
  readonly metadata: {
405
103
  readonly [x: string]: import("./generated").JsonValue;
406
104
  } | null;
407
- readonly design: {
408
- readonly theme?: {
409
- readonly colors?: {
410
- readonly [x: string]: string;
411
- } | null;
412
- readonly colorsDark?: {
413
- readonly [x: string]: string;
414
- } | null;
415
- readonly radiusPx?: {
416
- readonly [x: string]: number;
417
- } | null;
418
- readonly fontFamilies?: {
419
- readonly [x: string]: {
420
- readonly source: "custom" | "google" | "system";
421
- readonly family: string;
422
- readonly fallback: string;
423
- readonly faces?: readonly {
424
- readonly weight: number;
425
- readonly style: "italic" | "normal";
426
- readonly src: string;
427
- readonly unicodeRange?: string | null;
428
- }[] | null;
429
- };
430
- } | null;
431
- readonly fontWeights?: {
432
- readonly [x: string]: number;
433
- } | null;
434
- readonly text?: {
435
- readonly [x: string]: {
436
- readonly sizePx: number;
437
- readonly lineHeightPx: number;
438
- };
439
- } | null;
440
- readonly leading?: {
441
- readonly [x: string]: number;
442
- } | null;
443
- readonly spacingPx?: number | null;
444
- readonly containerPx?: {
445
- readonly [x: string]: number;
446
- } | null;
447
- readonly tracking?: {
448
- readonly [x: string]: number;
449
- } | null;
450
- } | null;
451
- readonly assets?: {
452
- readonly logoUrl?: string | null;
453
- readonly logoDarkUrl?: string | null;
454
- readonly iconUrl?: string | null;
455
- } | null;
456
- readonly footer?: {
457
- readonly companyName?: string | null;
458
- readonly address?: {
459
- readonly street1: string;
460
- readonly street2?: string | null;
461
- readonly city: string;
462
- readonly region: string;
463
- readonly postalCode: string;
464
- readonly country: string;
465
- } | null;
466
- readonly socialLinks?: readonly {
467
- readonly label: string;
468
- readonly url: string;
469
- }[] | null;
470
- readonly customHtml?: string | null;
471
- } | null;
472
- } | null;
473
105
  readonly replyToDefault: readonly string[] | null;
474
106
  readonly defaultUnsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
475
107
  readonly emailFooterEnabledDefault: boolean | null;
@@ -481,7 +113,7 @@ export declare const update: (input?: {
481
113
  readonly conversationsUsed: number;
482
114
  readonly teamMembersUsed: number;
483
115
  readonly messagesResetAt: string | null;
484
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
116
+ }, 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("./generated").ValidationError, import("./client").Service>;
485
117
  export declare const getUsage: (input?: {
486
118
  readonly period?: string | null | undefined;
487
119
  } | undefined) => import("effect/Effect").Effect<{
@@ -493,12 +125,13 @@ export declare const getUsage: (input?: {
493
125
  };
494
126
  readonly billing: {
495
127
  readonly currency: string;
128
+ readonly planName: string | null;
496
129
  readonly includedEmails: number | null;
497
130
  readonly usedEmails: number | null;
498
131
  readonly overageEmails: number | null;
499
132
  readonly overageCost: number | null;
500
133
  };
501
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
134
+ }, 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>;
502
135
  declare const deleteOrganization: (input: {
503
136
  readonly confirmationName: string;
504
137
  } & {
@@ -519,7 +152,7 @@ declare const deleteOrganization: (input: {
519
152
  readonly status: "failed" | "pending" | "running" | "succeeded";
520
153
  readonly phase: "accepted" | "completed" | "deleting" | "dispatching" | "finalizing" | "provisioning";
521
154
  readonly error: {
522
- readonly code: "capacity-unavailable" | "conflict" | "internal" | "provider-rejected" | "provider-unavailable" | "timed-out" | "validation-failed";
155
+ readonly code: "capacity-unavailable" | "conflict" | "internal" | "rejected" | "timed-out" | "unavailable" | "validation-failed";
523
156
  readonly message: string;
524
157
  } | null;
525
158
  readonly createdAt: string;
@@ -537,5 +170,5 @@ declare const deleteOrganization: (input: {
537
170
  readonly href: string;
538
171
  };
539
172
  };
540
- }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
173
+ }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
541
174
  export { deleteOrganization as delete };
@@ -1,21 +1,19 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-B4FjN6wq.js";
2
+ import { n as make } from "../operation-Cb5V9FJ7.js";
3
3
  //#region src/effect/organizations.ts
4
4
  var organizations_exports = /* @__PURE__ */ __exportAll({
5
- bootstrap: () => bootstrap,
6
5
  create: () => create,
7
6
  delete: () => deleteOrganization,
8
7
  get: () => get,
9
8
  getUsage: () => getUsage,
10
9
  update: () => update
11
10
  });
12
- const bootstrap = make("organizationsBootstrap");
13
11
  const create = make("organizationsCreate");
14
12
  const get = make("organizationsGet");
15
13
  const update = make("organizationsUpdate");
16
14
  const getUsage = make("organizationsGetUsage");
17
15
  const deleteOrganization = make("organizationsDelete");
18
16
  //#endregion
19
- export { bootstrap, create, deleteOrganization as delete, get, getUsage, organizations_exports as t, update };
17
+ export { create, deleteOrganization as delete, get, getUsage, organizations_exports as t, update };
20
18
 
21
19
  //# 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-B9Nw2v_F.js";
2
+ import { h as isRetryable } from "../categories-DvsHUJtX.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
@@ -86,7 +86,7 @@ export declare const list: ((input?: {
86
86
  readonly total: number;
87
87
  readonly totalPages: number;
88
88
  };
89
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
89
+ }, 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>) & {
90
90
  readonly pages: (input?: {
91
91
  readonly status?: string | null | undefined;
92
92
  readonly page?: string | null | undefined;
@@ -175,7 +175,7 @@ export declare const list: ((input?: {
175
175
  readonly total: number;
176
176
  readonly totalPages: number;
177
177
  };
178
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
178
+ }, 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>;
179
179
  readonly items: (input?: {
180
180
  readonly status?: string | null | undefined;
181
181
  readonly page?: string | null | undefined;
@@ -256,7 +256,7 @@ export declare const list: ((input?: {
256
256
  readonly memberRole: string;
257
257
  readonly createdAt: string;
258
258
  readonly updatedAt: string;
259
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
259
+ }, 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>;
260
260
  };
261
261
  export declare const create: (input: {
262
262
  readonly send: {
@@ -448,7 +448,7 @@ export declare const create: (input: {
448
448
  readonly memberRole: string;
449
449
  readonly createdAt: string;
450
450
  readonly updatedAt: string;
451
- }, import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
451
+ }, import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
452
452
  export declare const get: (input: {
453
453
  readonly id: string;
454
454
  }) => import("effect/Effect").Effect<{
@@ -527,7 +527,7 @@ export declare const get: (input: {
527
527
  readonly memberRole: string;
528
528
  readonly createdAt: string;
529
529
  readonly updatedAt: string;
530
- }, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
530
+ }, 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>;
531
531
  export declare const cancel: (input: {
532
532
  readonly id: string;
533
533
  }) => import("effect/Effect").Effect<{
@@ -609,7 +609,7 @@ export declare const cancel: (input: {
609
609
  readonly createdAt: string;
610
610
  readonly updatedAt: string;
611
611
  };
612
- }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
612
+ }, 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>;
613
613
  export declare const resume: (input: {
614
614
  readonly id: string;
615
615
  readonly choice: string;
@@ -693,4 +693,4 @@ export declare const resume: (input: {
693
693
  readonly memberRole: string;
694
694
  readonly createdAt: string;
695
695
  readonly updatedAt: string;
696
- }, import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
696
+ }, import("./generated").ConflictError | import("./generated").ExternalServiceError | 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("./generated").ValidationError, import("./client").Service>;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-B4FjN6wq.js";
2
+ import { n as make } from "../operation-Cb5V9FJ7.js";
3
3
  //#region src/effect/scheduled-messages.ts
4
4
  var scheduled_messages_exports = /* @__PURE__ */ __exportAll({
5
5
  cancel: () => cancel,