samva 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/README.md +14 -3
- package/dist/client/sdk.gen.d.ts +321 -129
- package/dist/client/types.gen.d.ts +1818 -777
- package/dist/{client-BqkU-sFv.js → client-BmZK_uCt.js} +2699 -1839
- package/dist/client-attribution-BslSOa_8.js +9 -0
- package/dist/client-attribution.d.ts +2 -0
- package/dist/effect/api-keys.d.ts +51 -51
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +320 -1005
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +6 -6
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +292 -314
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +305 -437
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.d.ts +74 -74
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +233 -265
- package/dist/effect/email.js +2 -2
- package/dist/effect/generated.d.ts +13410 -14526
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/client.d.ts +1 -1
- package/dist/effect/internal/operation.d.ts +32 -129
- package/dist/effect/media.d.ts +80 -0
- package/dist/effect/media.js +19 -0
- package/dist/effect/messages.d.ts +90 -307
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.d.ts +17 -17
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +162 -180
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/runtime.d.ts +0 -2
- package/dist/effect/scheduled-messages.d.ts +242 -639
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +1376 -2033
- package/dist/effect/templates.js +40 -30
- package/dist/effect/webhooks.d.ts +53 -54
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{normalize-LkWl4HUF.js → normalize-BiIJnycv.js} +6 -15
- package/dist/normalize.d.ts +3 -33
- package/dist/{operation-Ccqh_yxb.js → operation-B1knNlxk.js} +83 -38
- package/dist/promises/index.d.ts +13 -21
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-Dgv8UmCC.js → promises-n1opem5V.js} +572 -184
- package/dist/service-map.d.ts +96 -44
- package/package.json +23 -19
|
@@ -17,32 +17,7 @@ export declare const bootstrap: (input: {
|
|
|
17
17
|
readonly [x: string]: import("./generated").JsonValue;
|
|
18
18
|
} | null;
|
|
19
19
|
readonly design: {
|
|
20
|
-
readonly footer?: {
|
|
21
|
-
readonly address?: {
|
|
22
|
-
readonly region: string;
|
|
23
|
-
readonly street1: string;
|
|
24
|
-
readonly city: string;
|
|
25
|
-
readonly postalCode: string;
|
|
26
|
-
readonly country: string;
|
|
27
|
-
readonly street2?: string | null;
|
|
28
|
-
} | null;
|
|
29
|
-
readonly companyName?: string | null;
|
|
30
|
-
readonly socialLinks?: readonly {
|
|
31
|
-
readonly label: string;
|
|
32
|
-
readonly url: string;
|
|
33
|
-
}[] | null;
|
|
34
|
-
readonly customHtml?: string | null;
|
|
35
|
-
} | null;
|
|
36
20
|
readonly theme?: {
|
|
37
|
-
readonly text?: {
|
|
38
|
-
readonly [x: string]: {
|
|
39
|
-
readonly sizePx: number;
|
|
40
|
-
readonly lineHeightPx: number;
|
|
41
|
-
};
|
|
42
|
-
} | null;
|
|
43
|
-
readonly tracking?: {
|
|
44
|
-
readonly [x: string]: number;
|
|
45
|
-
} | null;
|
|
46
21
|
readonly colors?: {
|
|
47
22
|
readonly [x: string]: string;
|
|
48
23
|
} | null;
|
|
@@ -54,12 +29,12 @@ export declare const bootstrap: (input: {
|
|
|
54
29
|
} | null;
|
|
55
30
|
readonly fontFamilies?: {
|
|
56
31
|
readonly [x: string]: {
|
|
32
|
+
readonly source: "custom" | "google" | "system";
|
|
57
33
|
readonly family: string;
|
|
58
|
-
readonly source: "system" | "google" | "custom";
|
|
59
34
|
readonly fallback: string;
|
|
60
35
|
readonly faces?: readonly {
|
|
61
|
-
readonly style: "normal" | "italic";
|
|
62
36
|
readonly weight: number;
|
|
37
|
+
readonly style: "italic" | "normal";
|
|
63
38
|
readonly src: string;
|
|
64
39
|
readonly unicodeRange?: string | null;
|
|
65
40
|
}[] | null;
|
|
@@ -68,6 +43,12 @@ export declare const bootstrap: (input: {
|
|
|
68
43
|
readonly fontWeights?: {
|
|
69
44
|
readonly [x: string]: number;
|
|
70
45
|
} | null;
|
|
46
|
+
readonly text?: {
|
|
47
|
+
readonly [x: string]: {
|
|
48
|
+
readonly sizePx: number;
|
|
49
|
+
readonly lineHeightPx: number;
|
|
50
|
+
};
|
|
51
|
+
} | null;
|
|
71
52
|
readonly leading?: {
|
|
72
53
|
readonly [x: string]: number;
|
|
73
54
|
} | null;
|
|
@@ -75,29 +56,44 @@ export declare const bootstrap: (input: {
|
|
|
75
56
|
readonly containerPx?: {
|
|
76
57
|
readonly [x: string]: number;
|
|
77
58
|
} | null;
|
|
59
|
+
readonly tracking?: {
|
|
60
|
+
readonly [x: string]: number;
|
|
61
|
+
} | null;
|
|
78
62
|
} | null;
|
|
79
63
|
readonly assets?: {
|
|
80
64
|
readonly logoUrl?: string | null;
|
|
81
65
|
readonly logoDarkUrl?: string | null;
|
|
82
66
|
readonly iconUrl?: string | null;
|
|
83
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
84
|
} | null;
|
|
85
85
|
readonly replyToDefault: readonly string[] | null;
|
|
86
86
|
readonly defaultUnsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
87
87
|
readonly emailFooterEnabledDefault: boolean | null;
|
|
88
88
|
readonly messagesUsed: number;
|
|
89
89
|
readonly messagesUsedThisMonth: number;
|
|
90
|
-
readonly smsUsed: number;
|
|
91
|
-
readonly smsUsedThisMonth: number;
|
|
92
|
-
readonly whatsappUsed: number;
|
|
93
|
-
readonly whatsappUsedThisMonth: number;
|
|
94
90
|
readonly emailUsed: number;
|
|
95
91
|
readonly emailUsedThisMonth: number;
|
|
96
92
|
readonly contactsUsed: number;
|
|
97
93
|
readonly conversationsUsed: number;
|
|
98
94
|
readonly teamMembersUsed: number;
|
|
99
95
|
readonly messagesResetAt: string | null;
|
|
100
|
-
}, import("
|
|
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>;
|
|
101
97
|
export declare const create: (input: {
|
|
102
98
|
readonly name: string;
|
|
103
99
|
}) => import("effect/Effect").Effect<{
|
|
@@ -117,32 +113,7 @@ export declare const create: (input: {
|
|
|
117
113
|
readonly [x: string]: import("./generated").JsonValue;
|
|
118
114
|
} | null;
|
|
119
115
|
readonly design: {
|
|
120
|
-
readonly footer?: {
|
|
121
|
-
readonly address?: {
|
|
122
|
-
readonly region: string;
|
|
123
|
-
readonly street1: string;
|
|
124
|
-
readonly city: string;
|
|
125
|
-
readonly postalCode: string;
|
|
126
|
-
readonly country: string;
|
|
127
|
-
readonly street2?: string | null;
|
|
128
|
-
} | null;
|
|
129
|
-
readonly companyName?: string | null;
|
|
130
|
-
readonly socialLinks?: readonly {
|
|
131
|
-
readonly label: string;
|
|
132
|
-
readonly url: string;
|
|
133
|
-
}[] | null;
|
|
134
|
-
readonly customHtml?: string | null;
|
|
135
|
-
} | null;
|
|
136
116
|
readonly theme?: {
|
|
137
|
-
readonly text?: {
|
|
138
|
-
readonly [x: string]: {
|
|
139
|
-
readonly sizePx: number;
|
|
140
|
-
readonly lineHeightPx: number;
|
|
141
|
-
};
|
|
142
|
-
} | null;
|
|
143
|
-
readonly tracking?: {
|
|
144
|
-
readonly [x: string]: number;
|
|
145
|
-
} | null;
|
|
146
117
|
readonly colors?: {
|
|
147
118
|
readonly [x: string]: string;
|
|
148
119
|
} | null;
|
|
@@ -154,12 +125,12 @@ export declare const create: (input: {
|
|
|
154
125
|
} | null;
|
|
155
126
|
readonly fontFamilies?: {
|
|
156
127
|
readonly [x: string]: {
|
|
128
|
+
readonly source: "custom" | "google" | "system";
|
|
157
129
|
readonly family: string;
|
|
158
|
-
readonly source: "system" | "google" | "custom";
|
|
159
130
|
readonly fallback: string;
|
|
160
131
|
readonly faces?: readonly {
|
|
161
|
-
readonly style: "normal" | "italic";
|
|
162
132
|
readonly weight: number;
|
|
133
|
+
readonly style: "italic" | "normal";
|
|
163
134
|
readonly src: string;
|
|
164
135
|
readonly unicodeRange?: string | null;
|
|
165
136
|
}[] | null;
|
|
@@ -168,6 +139,12 @@ export declare const create: (input: {
|
|
|
168
139
|
readonly fontWeights?: {
|
|
169
140
|
readonly [x: string]: number;
|
|
170
141
|
} | null;
|
|
142
|
+
readonly text?: {
|
|
143
|
+
readonly [x: string]: {
|
|
144
|
+
readonly sizePx: number;
|
|
145
|
+
readonly lineHeightPx: number;
|
|
146
|
+
};
|
|
147
|
+
} | null;
|
|
171
148
|
readonly leading?: {
|
|
172
149
|
readonly [x: string]: number;
|
|
173
150
|
} | null;
|
|
@@ -175,29 +152,44 @@ export declare const create: (input: {
|
|
|
175
152
|
readonly containerPx?: {
|
|
176
153
|
readonly [x: string]: number;
|
|
177
154
|
} | null;
|
|
155
|
+
readonly tracking?: {
|
|
156
|
+
readonly [x: string]: number;
|
|
157
|
+
} | null;
|
|
178
158
|
} | null;
|
|
179
159
|
readonly assets?: {
|
|
180
160
|
readonly logoUrl?: string | null;
|
|
181
161
|
readonly logoDarkUrl?: string | null;
|
|
182
162
|
readonly iconUrl?: string | null;
|
|
183
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;
|
|
184
180
|
} | null;
|
|
185
181
|
readonly replyToDefault: readonly string[] | null;
|
|
186
182
|
readonly defaultUnsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
187
183
|
readonly emailFooterEnabledDefault: boolean | null;
|
|
188
184
|
readonly messagesUsed: number;
|
|
189
185
|
readonly messagesUsedThisMonth: number;
|
|
190
|
-
readonly smsUsed: number;
|
|
191
|
-
readonly smsUsedThisMonth: number;
|
|
192
|
-
readonly whatsappUsed: number;
|
|
193
|
-
readonly whatsappUsedThisMonth: number;
|
|
194
186
|
readonly emailUsed: number;
|
|
195
187
|
readonly emailUsedThisMonth: number;
|
|
196
188
|
readonly contactsUsed: number;
|
|
197
189
|
readonly conversationsUsed: number;
|
|
198
190
|
readonly teamMembersUsed: number;
|
|
199
191
|
readonly messagesResetAt: string | null;
|
|
200
|
-
}, import("
|
|
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>;
|
|
201
193
|
export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
202
194
|
readonly id: string;
|
|
203
195
|
readonly billingAccountId: string;
|
|
@@ -215,32 +207,7 @@ export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
|
215
207
|
readonly [x: string]: import("./generated").JsonValue;
|
|
216
208
|
} | null;
|
|
217
209
|
readonly design: {
|
|
218
|
-
readonly footer?: {
|
|
219
|
-
readonly address?: {
|
|
220
|
-
readonly region: string;
|
|
221
|
-
readonly street1: string;
|
|
222
|
-
readonly city: string;
|
|
223
|
-
readonly postalCode: string;
|
|
224
|
-
readonly country: string;
|
|
225
|
-
readonly street2?: string | null;
|
|
226
|
-
} | null;
|
|
227
|
-
readonly companyName?: string | null;
|
|
228
|
-
readonly socialLinks?: readonly {
|
|
229
|
-
readonly label: string;
|
|
230
|
-
readonly url: string;
|
|
231
|
-
}[] | null;
|
|
232
|
-
readonly customHtml?: string | null;
|
|
233
|
-
} | null;
|
|
234
210
|
readonly theme?: {
|
|
235
|
-
readonly text?: {
|
|
236
|
-
readonly [x: string]: {
|
|
237
|
-
readonly sizePx: number;
|
|
238
|
-
readonly lineHeightPx: number;
|
|
239
|
-
};
|
|
240
|
-
} | null;
|
|
241
|
-
readonly tracking?: {
|
|
242
|
-
readonly [x: string]: number;
|
|
243
|
-
} | null;
|
|
244
211
|
readonly colors?: {
|
|
245
212
|
readonly [x: string]: string;
|
|
246
213
|
} | null;
|
|
@@ -252,12 +219,12 @@ export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
|
252
219
|
} | null;
|
|
253
220
|
readonly fontFamilies?: {
|
|
254
221
|
readonly [x: string]: {
|
|
222
|
+
readonly source: "custom" | "google" | "system";
|
|
255
223
|
readonly family: string;
|
|
256
|
-
readonly source: "system" | "google" | "custom";
|
|
257
224
|
readonly fallback: string;
|
|
258
225
|
readonly faces?: readonly {
|
|
259
|
-
readonly style: "normal" | "italic";
|
|
260
226
|
readonly weight: number;
|
|
227
|
+
readonly style: "italic" | "normal";
|
|
261
228
|
readonly src: string;
|
|
262
229
|
readonly unicodeRange?: string | null;
|
|
263
230
|
}[] | null;
|
|
@@ -266,6 +233,12 @@ export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
|
266
233
|
readonly fontWeights?: {
|
|
267
234
|
readonly [x: string]: number;
|
|
268
235
|
} | null;
|
|
236
|
+
readonly text?: {
|
|
237
|
+
readonly [x: string]: {
|
|
238
|
+
readonly sizePx: number;
|
|
239
|
+
readonly lineHeightPx: number;
|
|
240
|
+
};
|
|
241
|
+
} | null;
|
|
269
242
|
readonly leading?: {
|
|
270
243
|
readonly [x: string]: number;
|
|
271
244
|
} | null;
|
|
@@ -273,89 +246,81 @@ export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
|
273
246
|
readonly containerPx?: {
|
|
274
247
|
readonly [x: string]: number;
|
|
275
248
|
} | null;
|
|
249
|
+
readonly tracking?: {
|
|
250
|
+
readonly [x: string]: number;
|
|
251
|
+
} | null;
|
|
276
252
|
} | null;
|
|
277
253
|
readonly assets?: {
|
|
278
254
|
readonly logoUrl?: string | null;
|
|
279
255
|
readonly logoDarkUrl?: string | null;
|
|
280
256
|
readonly iconUrl?: string | null;
|
|
281
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;
|
|
282
274
|
} | null;
|
|
283
275
|
readonly replyToDefault: readonly string[] | null;
|
|
284
276
|
readonly defaultUnsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
285
277
|
readonly emailFooterEnabledDefault: boolean | null;
|
|
286
278
|
readonly messagesUsed: number;
|
|
287
279
|
readonly messagesUsedThisMonth: number;
|
|
288
|
-
readonly smsUsed: number;
|
|
289
|
-
readonly smsUsedThisMonth: number;
|
|
290
|
-
readonly whatsappUsed: number;
|
|
291
|
-
readonly whatsappUsedThisMonth: number;
|
|
292
280
|
readonly emailUsed: number;
|
|
293
281
|
readonly emailUsedThisMonth: number;
|
|
294
282
|
readonly contactsUsed: number;
|
|
295
283
|
readonly conversationsUsed: number;
|
|
296
284
|
readonly teamMembersUsed: number;
|
|
297
285
|
readonly messagesResetAt: string | null;
|
|
298
|
-
}, import("
|
|
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>;
|
|
299
287
|
export declare const update: (input?: {
|
|
300
|
-
readonly currency?: string | null | undefined;
|
|
301
288
|
readonly name?: string | null | undefined;
|
|
289
|
+
readonly slug?: string | null | undefined;
|
|
290
|
+
readonly billingEmail?: string | null | undefined;
|
|
291
|
+
readonly countryCode?: string | null | undefined;
|
|
292
|
+
readonly currency?: string | null | undefined;
|
|
293
|
+
readonly timezone?: string | null | undefined;
|
|
294
|
+
readonly isActive?: boolean | null | undefined;
|
|
302
295
|
readonly metadata?: {
|
|
303
296
|
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 | {
|
|
304
297
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
305
298
|
} | null)[] | {
|
|
306
|
-
readonly [x: string]: string | number | boolean |
|
|
299
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
307
300
|
} | null)[] | {
|
|
308
|
-
readonly [x: string]: string | number | boolean |
|
|
301
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
309
302
|
} | null)[] | {
|
|
310
|
-
readonly [x: string]: string | number | boolean |
|
|
303
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
311
304
|
} | null)[] | {
|
|
312
|
-
readonly [x: string]: string | number | boolean |
|
|
305
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
313
306
|
} | null)[] | {
|
|
314
|
-
readonly [x: string]: string | number | boolean |
|
|
307
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
315
308
|
} | null)[] | {
|
|
316
|
-
readonly [x: string]: string | number | boolean |
|
|
309
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
317
310
|
} | null)[] | {
|
|
318
|
-
readonly [x: string]: string | number | boolean |
|
|
311
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
319
312
|
} | null)[] | {
|
|
320
|
-
readonly [x: string]: string | number | boolean |
|
|
313
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
321
314
|
} | null)[] | {
|
|
322
|
-
readonly [x: string]: string | number | boolean |
|
|
315
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
323
316
|
} | null)[] | {
|
|
324
|
-
readonly [x: string]: string | number | boolean |
|
|
317
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
325
318
|
} | null)[] | {
|
|
326
|
-
readonly [x: string]: string | number | boolean |
|
|
319
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
327
320
|
} | null | undefined;
|
|
328
321
|
} | null | undefined;
|
|
329
|
-
readonly timezone?: string | null | undefined;
|
|
330
|
-
readonly isActive?: boolean | null | undefined;
|
|
331
|
-
readonly slug?: string | null | undefined;
|
|
332
322
|
readonly design?: {
|
|
333
|
-
readonly footer?: {
|
|
334
|
-
readonly address?: {
|
|
335
|
-
readonly region: string;
|
|
336
|
-
readonly street1: string;
|
|
337
|
-
readonly city: string;
|
|
338
|
-
readonly postalCode: string;
|
|
339
|
-
readonly country: string;
|
|
340
|
-
readonly street2?: string | null | undefined;
|
|
341
|
-
} | null | undefined;
|
|
342
|
-
readonly companyName?: string | null | undefined;
|
|
343
|
-
readonly socialLinks?: readonly {
|
|
344
|
-
readonly label: string;
|
|
345
|
-
readonly url: string;
|
|
346
|
-
}[] | null | undefined;
|
|
347
|
-
readonly customHtml?: string | null | undefined;
|
|
348
|
-
} | null | undefined;
|
|
349
323
|
readonly theme?: {
|
|
350
|
-
readonly text?: {
|
|
351
|
-
readonly [x: string]: {
|
|
352
|
-
readonly sizePx: number;
|
|
353
|
-
readonly lineHeightPx: number;
|
|
354
|
-
} | undefined;
|
|
355
|
-
} | null | undefined;
|
|
356
|
-
readonly tracking?: {
|
|
357
|
-
readonly [x: string]: number | undefined;
|
|
358
|
-
} | null | undefined;
|
|
359
324
|
readonly colors?: {
|
|
360
325
|
readonly [x: string]: string | undefined;
|
|
361
326
|
} | null | undefined;
|
|
@@ -367,12 +332,12 @@ export declare const update: (input?: {
|
|
|
367
332
|
} | null | undefined;
|
|
368
333
|
readonly fontFamilies?: {
|
|
369
334
|
readonly [x: string]: {
|
|
370
|
-
readonly family: string;
|
|
371
335
|
readonly source: string;
|
|
336
|
+
readonly family: string;
|
|
372
337
|
readonly fallback: string;
|
|
373
338
|
readonly faces?: readonly {
|
|
374
|
-
readonly style: string;
|
|
375
339
|
readonly weight: number;
|
|
340
|
+
readonly style: string;
|
|
376
341
|
readonly src: string;
|
|
377
342
|
readonly unicodeRange?: string | null | undefined;
|
|
378
343
|
}[] | null | undefined;
|
|
@@ -381,6 +346,12 @@ export declare const update: (input?: {
|
|
|
381
346
|
readonly fontWeights?: {
|
|
382
347
|
readonly [x: string]: number | undefined;
|
|
383
348
|
} | null | undefined;
|
|
349
|
+
readonly text?: {
|
|
350
|
+
readonly [x: string]: {
|
|
351
|
+
readonly sizePx: number;
|
|
352
|
+
readonly lineHeightPx: number;
|
|
353
|
+
} | undefined;
|
|
354
|
+
} | null | undefined;
|
|
384
355
|
readonly leading?: {
|
|
385
356
|
readonly [x: string]: number | undefined;
|
|
386
357
|
} | null | undefined;
|
|
@@ -388,18 +359,35 @@ export declare const update: (input?: {
|
|
|
388
359
|
readonly containerPx?: {
|
|
389
360
|
readonly [x: string]: number | undefined;
|
|
390
361
|
} | null | undefined;
|
|
362
|
+
readonly tracking?: {
|
|
363
|
+
readonly [x: string]: number | undefined;
|
|
364
|
+
} | null | undefined;
|
|
391
365
|
} | null | undefined;
|
|
392
366
|
readonly assets?: {
|
|
393
367
|
readonly logoUrl?: string | null | undefined;
|
|
394
368
|
readonly logoDarkUrl?: string | null | undefined;
|
|
395
369
|
readonly iconUrl?: string | null | undefined;
|
|
396
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;
|
|
397
387
|
} | null | undefined;
|
|
398
|
-
readonly billingEmail?: string | null | undefined;
|
|
399
388
|
readonly replyToDefault?: readonly string[] | null | undefined;
|
|
400
389
|
readonly defaultUnsubscribeGroupId?: string | null | undefined;
|
|
401
390
|
readonly emailFooterEnabledDefault?: boolean | null | undefined;
|
|
402
|
-
readonly countryCode?: string | null | undefined;
|
|
403
391
|
} | undefined) => import("effect/Effect").Effect<{
|
|
404
392
|
readonly id: string;
|
|
405
393
|
readonly billingAccountId: string;
|
|
@@ -417,32 +405,7 @@ export declare const update: (input?: {
|
|
|
417
405
|
readonly [x: string]: import("./generated").JsonValue;
|
|
418
406
|
} | null;
|
|
419
407
|
readonly design: {
|
|
420
|
-
readonly footer?: {
|
|
421
|
-
readonly address?: {
|
|
422
|
-
readonly region: string;
|
|
423
|
-
readonly street1: string;
|
|
424
|
-
readonly city: string;
|
|
425
|
-
readonly postalCode: string;
|
|
426
|
-
readonly country: string;
|
|
427
|
-
readonly street2?: string | null;
|
|
428
|
-
} | null;
|
|
429
|
-
readonly companyName?: string | null;
|
|
430
|
-
readonly socialLinks?: readonly {
|
|
431
|
-
readonly label: string;
|
|
432
|
-
readonly url: string;
|
|
433
|
-
}[] | null;
|
|
434
|
-
readonly customHtml?: string | null;
|
|
435
|
-
} | null;
|
|
436
408
|
readonly theme?: {
|
|
437
|
-
readonly text?: {
|
|
438
|
-
readonly [x: string]: {
|
|
439
|
-
readonly sizePx: number;
|
|
440
|
-
readonly lineHeightPx: number;
|
|
441
|
-
};
|
|
442
|
-
} | null;
|
|
443
|
-
readonly tracking?: {
|
|
444
|
-
readonly [x: string]: number;
|
|
445
|
-
} | null;
|
|
446
409
|
readonly colors?: {
|
|
447
410
|
readonly [x: string]: string;
|
|
448
411
|
} | null;
|
|
@@ -454,12 +417,12 @@ export declare const update: (input?: {
|
|
|
454
417
|
} | null;
|
|
455
418
|
readonly fontFamilies?: {
|
|
456
419
|
readonly [x: string]: {
|
|
420
|
+
readonly source: "custom" | "google" | "system";
|
|
457
421
|
readonly family: string;
|
|
458
|
-
readonly source: "system" | "google" | "custom";
|
|
459
422
|
readonly fallback: string;
|
|
460
423
|
readonly faces?: readonly {
|
|
461
|
-
readonly style: "normal" | "italic";
|
|
462
424
|
readonly weight: number;
|
|
425
|
+
readonly style: "italic" | "normal";
|
|
463
426
|
readonly src: string;
|
|
464
427
|
readonly unicodeRange?: string | null;
|
|
465
428
|
}[] | null;
|
|
@@ -468,6 +431,12 @@ export declare const update: (input?: {
|
|
|
468
431
|
readonly fontWeights?: {
|
|
469
432
|
readonly [x: string]: number;
|
|
470
433
|
} | null;
|
|
434
|
+
readonly text?: {
|
|
435
|
+
readonly [x: string]: {
|
|
436
|
+
readonly sizePx: number;
|
|
437
|
+
readonly lineHeightPx: number;
|
|
438
|
+
};
|
|
439
|
+
} | null;
|
|
471
440
|
readonly leading?: {
|
|
472
441
|
readonly [x: string]: number;
|
|
473
442
|
} | null;
|
|
@@ -475,38 +444,51 @@ export declare const update: (input?: {
|
|
|
475
444
|
readonly containerPx?: {
|
|
476
445
|
readonly [x: string]: number;
|
|
477
446
|
} | null;
|
|
447
|
+
readonly tracking?: {
|
|
448
|
+
readonly [x: string]: number;
|
|
449
|
+
} | null;
|
|
478
450
|
} | null;
|
|
479
451
|
readonly assets?: {
|
|
480
452
|
readonly logoUrl?: string | null;
|
|
481
453
|
readonly logoDarkUrl?: string | null;
|
|
482
454
|
readonly iconUrl?: string | null;
|
|
483
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;
|
|
484
472
|
} | null;
|
|
485
473
|
readonly replyToDefault: readonly string[] | null;
|
|
486
474
|
readonly defaultUnsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
487
475
|
readonly emailFooterEnabledDefault: boolean | null;
|
|
488
476
|
readonly messagesUsed: number;
|
|
489
477
|
readonly messagesUsedThisMonth: number;
|
|
490
|
-
readonly smsUsed: number;
|
|
491
|
-
readonly smsUsedThisMonth: number;
|
|
492
|
-
readonly whatsappUsed: number;
|
|
493
|
-
readonly whatsappUsedThisMonth: number;
|
|
494
478
|
readonly emailUsed: number;
|
|
495
479
|
readonly emailUsedThisMonth: number;
|
|
496
480
|
readonly contactsUsed: number;
|
|
497
481
|
readonly conversationsUsed: number;
|
|
498
482
|
readonly teamMembersUsed: number;
|
|
499
483
|
readonly messagesResetAt: string | null;
|
|
500
|
-
}, import("
|
|
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>;
|
|
501
485
|
export declare const getUsage: (input?: {
|
|
502
486
|
readonly period?: string | null | undefined;
|
|
503
487
|
} | undefined) => import("effect/Effect").Effect<{
|
|
504
488
|
readonly usage: {
|
|
505
489
|
readonly periodStart: string;
|
|
506
490
|
readonly periodEnd: string;
|
|
507
|
-
readonly smsCount: number;
|
|
508
491
|
readonly emailCount: number;
|
|
509
|
-
readonly whatsappCount: number;
|
|
510
492
|
readonly totalMessages: number;
|
|
511
493
|
};
|
|
512
494
|
readonly billing: {
|
|
@@ -516,7 +498,7 @@ export declare const getUsage: (input?: {
|
|
|
516
498
|
readonly overageEmails: number | null;
|
|
517
499
|
readonly overageCost: number | null;
|
|
518
500
|
};
|
|
519
|
-
}, import("
|
|
501
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
520
502
|
declare const deleteOrganization: (input: {
|
|
521
503
|
readonly confirmationName: string;
|
|
522
504
|
} & {
|
|
@@ -531,13 +513,13 @@ declare const deleteOrganization: (input: {
|
|
|
531
513
|
readonly id: string;
|
|
532
514
|
};
|
|
533
515
|
readonly actor: {
|
|
534
|
-
readonly type: "
|
|
516
|
+
readonly type: "api-key" | "system" | "user";
|
|
535
517
|
readonly id: string;
|
|
536
518
|
};
|
|
537
|
-
readonly status: "
|
|
538
|
-
readonly phase: "accepted" | "
|
|
519
|
+
readonly status: "failed" | "pending" | "running" | "succeeded";
|
|
520
|
+
readonly phase: "accepted" | "completed" | "deleting" | "dispatching" | "finalizing" | "provisioning";
|
|
539
521
|
readonly error: {
|
|
540
|
-
readonly code: "
|
|
522
|
+
readonly code: "capacity-unavailable" | "conflict" | "internal" | "provider-rejected" | "provider-unavailable" | "timed-out" | "validation-failed";
|
|
541
523
|
readonly message: string;
|
|
542
524
|
} | null;
|
|
543
525
|
readonly createdAt: string;
|
|
@@ -555,5 +537,5 @@ declare const deleteOrganization: (input: {
|
|
|
555
537
|
readonly href: string;
|
|
556
538
|
};
|
|
557
539
|
};
|
|
558
|
-
}, import("
|
|
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>;
|
|
559
541
|
export { deleteOrganization as delete };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-B1knNlxk.js";
|
|
3
3
|
//#region src/effect/organizations.ts
|
|
4
4
|
var organizations_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
bootstrap: () => bootstrap,
|
package/dist/effect/runtime.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
/** Decode wire secrets to redacted values and require redacted values when encoding. */
|
|
3
|
-
export declare const Sensitive: <A, E, RD, RE>(schema: Schema.Codec<A, E, RD, RE>) => Schema.RedactedFromValue<Schema.Codec<A, E, RD, RE>>;
|
|
4
2
|
export declare const SensitiveString: Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>;
|
|
5
3
|
export type SensitiveString = typeof SensitiveString.Type;
|
|
6
4
|
export declare const AbsoluteInstant: Schema.decodeTo<Schema.Date, Schema.String, never, never>;
|