samva 0.2.0 → 0.3.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 +10 -3
- package/dist/client/sdk.gen.d.ts +232 -23
- package/dist/client/types.gen.d.ts +693 -352
- package/dist/{client-BqkU-sFv.js → client-BOghX8fr.js} +1530 -1532
- package/dist/effect/api-keys.d.ts +14 -14
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +134 -853
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +123 -145
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +128 -260
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.d.ts +11 -11
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +64 -108
- package/dist/effect/email.js +2 -2
- package/dist/effect/generated.d.ts +7346 -8748
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/operation.d.ts +15 -113
- package/dist/effect/media.d.ts +80 -0
- package/dist/effect/media.js +19 -0
- package/dist/effect/messages.d.ts +41 -261
- package/dist/effect/messages.js +1 -1
- package/dist/effect/operations.d.ts +7 -7
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +23 -41
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +43 -454
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +175 -649
- package/dist/effect/templates.js +2 -2
- package/dist/effect/webhooks.d.ts +20 -21
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{normalize-LkWl4HUF.js → normalize-BKFjbR9t.js} +5 -13
- package/dist/normalize.d.ts +3 -33
- package/dist/{operation-Ccqh_yxb.js → operation-C2Q4cFJL.js} +21 -3
- package/dist/promises/index.d.ts +4 -14
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-Dgv8UmCC.js → promises-oiy7mOyu.js} +386 -29
- package/dist/service-map.d.ts +26 -0
- package/package.json +17 -12
|
@@ -19,11 +19,11 @@ export declare const bootstrap: (input: {
|
|
|
19
19
|
readonly design: {
|
|
20
20
|
readonly footer?: {
|
|
21
21
|
readonly address?: {
|
|
22
|
-
readonly
|
|
23
|
-
readonly street1: string;
|
|
22
|
+
readonly country: string;
|
|
24
23
|
readonly city: string;
|
|
24
|
+
readonly street1: string;
|
|
25
|
+
readonly region: string;
|
|
25
26
|
readonly postalCode: string;
|
|
26
|
-
readonly country: string;
|
|
27
27
|
readonly street2?: string | null;
|
|
28
28
|
} | null;
|
|
29
29
|
readonly companyName?: string | null;
|
|
@@ -87,17 +87,13 @@ export declare const bootstrap: (input: {
|
|
|
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").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ValidationError | import("./generated").BillingProviderError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
101
97
|
export declare const create: (input: {
|
|
102
98
|
readonly name: string;
|
|
103
99
|
}) => import("effect/Effect").Effect<{
|
|
@@ -119,11 +115,11 @@ export declare const create: (input: {
|
|
|
119
115
|
readonly design: {
|
|
120
116
|
readonly footer?: {
|
|
121
117
|
readonly address?: {
|
|
122
|
-
readonly
|
|
123
|
-
readonly street1: string;
|
|
118
|
+
readonly country: string;
|
|
124
119
|
readonly city: string;
|
|
120
|
+
readonly street1: string;
|
|
121
|
+
readonly region: string;
|
|
125
122
|
readonly postalCode: string;
|
|
126
|
-
readonly country: string;
|
|
127
123
|
readonly street2?: string | null;
|
|
128
124
|
} | null;
|
|
129
125
|
readonly companyName?: string | null;
|
|
@@ -187,17 +183,13 @@ export declare const create: (input: {
|
|
|
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").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ValidationError | import("./generated").BillingProviderError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
201
193
|
export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
202
194
|
readonly id: string;
|
|
203
195
|
readonly billingAccountId: string;
|
|
@@ -217,11 +209,11 @@ export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
|
217
209
|
readonly design: {
|
|
218
210
|
readonly footer?: {
|
|
219
211
|
readonly address?: {
|
|
220
|
-
readonly
|
|
221
|
-
readonly street1: string;
|
|
212
|
+
readonly country: string;
|
|
222
213
|
readonly city: string;
|
|
214
|
+
readonly street1: string;
|
|
215
|
+
readonly region: string;
|
|
223
216
|
readonly postalCode: string;
|
|
224
|
-
readonly country: string;
|
|
225
217
|
readonly street2?: string | null;
|
|
226
218
|
} | null;
|
|
227
219
|
readonly companyName?: string | null;
|
|
@@ -285,19 +277,14 @@ export declare const get: (_?: never) => import("effect/Effect").Effect<{
|
|
|
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").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
299
287
|
export declare const update: (input?: {
|
|
300
|
-
readonly currency?: string | null | undefined;
|
|
301
288
|
readonly name?: string | null | undefined;
|
|
302
289
|
readonly metadata?: {
|
|
303
290
|
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 | {
|
|
@@ -329,14 +316,15 @@ export declare const update: (input?: {
|
|
|
329
316
|
readonly timezone?: string | null | undefined;
|
|
330
317
|
readonly isActive?: boolean | null | undefined;
|
|
331
318
|
readonly slug?: string | null | undefined;
|
|
319
|
+
readonly currency?: string | null | undefined;
|
|
332
320
|
readonly design?: {
|
|
333
321
|
readonly footer?: {
|
|
334
322
|
readonly address?: {
|
|
335
|
-
readonly
|
|
336
|
-
readonly street1: string;
|
|
323
|
+
readonly country: string;
|
|
337
324
|
readonly city: string;
|
|
325
|
+
readonly street1: string;
|
|
326
|
+
readonly region: string;
|
|
338
327
|
readonly postalCode: string;
|
|
339
|
-
readonly country: string;
|
|
340
328
|
readonly street2?: string | null | undefined;
|
|
341
329
|
} | null | undefined;
|
|
342
330
|
readonly companyName?: string | null | undefined;
|
|
@@ -419,11 +407,11 @@ export declare const update: (input?: {
|
|
|
419
407
|
readonly design: {
|
|
420
408
|
readonly footer?: {
|
|
421
409
|
readonly address?: {
|
|
422
|
-
readonly
|
|
423
|
-
readonly street1: string;
|
|
410
|
+
readonly country: string;
|
|
424
411
|
readonly city: string;
|
|
412
|
+
readonly street1: string;
|
|
413
|
+
readonly region: string;
|
|
425
414
|
readonly postalCode: string;
|
|
426
|
-
readonly country: string;
|
|
427
415
|
readonly street2?: string | null;
|
|
428
416
|
} | null;
|
|
429
417
|
readonly companyName?: string | null;
|
|
@@ -487,26 +475,20 @@ export declare const update: (input?: {
|
|
|
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").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, 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").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
520
502
|
declare const deleteOrganization: (input: {
|
|
521
503
|
readonly confirmationName: string;
|
|
522
504
|
} & {
|
|
@@ -531,7 +513,7 @@ declare const deleteOrganization: (input: {
|
|
|
531
513
|
readonly id: string;
|
|
532
514
|
};
|
|
533
515
|
readonly actor: {
|
|
534
|
-
readonly type: "
|
|
516
|
+
readonly type: "user" | "api-key" | "system";
|
|
535
517
|
readonly id: string;
|
|
536
518
|
};
|
|
537
519
|
readonly status: "pending" | "failed" | "running" | "succeeded";
|
|
@@ -555,5 +537,5 @@ declare const deleteOrganization: (input: {
|
|
|
555
537
|
readonly href: string;
|
|
556
538
|
};
|
|
557
539
|
};
|
|
558
|
-
}, import("
|
|
540
|
+
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, 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-C2Q4cFJL.js";
|
|
3
3
|
//#region src/effect/organizations.ts
|
|
4
4
|
var organizations_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
bootstrap: () => bootstrap,
|