samva 0.34.0 → 0.35.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/README.md +1 -1
- package/dist/client/sdk.gen.d.ts +224 -250
- package/dist/client/sdk.gen.js +84 -210
- package/dist/client/types.gen.d.ts +2894 -401
- package/dist/effect/agents.d.ts +28 -13
- package/dist/effect/agents.js +5 -1
- package/dist/effect/analytics.d.ts +15 -15
- package/dist/effect/api-keys.d.ts +27 -18
- package/dist/effect/campaigns.d.ts +721 -65
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/contact-groups.d.ts +15 -15
- package/dist/effect/contacts.d.ts +56 -52
- package/dist/effect/conversations.d.ts +45 -45
- package/dist/effect/email.d.ts +82 -82
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +1063 -33
- package/dist/effect/generated/agents.js +133 -11
- package/dist/effect/generated/analytics.d.ts +109 -136
- package/dist/effect/generated/analytics.js +65 -36
- package/dist/effect/generated/api-keys.d.ts +240 -19
- package/dist/effect/generated/api-keys.js +24 -8
- package/dist/effect/generated/attachments.d.ts +89 -1
- package/dist/effect/generated/attachments.js +10 -2
- package/dist/effect/generated/brands.d.ts +133 -1
- package/dist/effect/generated/brands.js +22 -10
- package/dist/effect/generated/campaigns.d.ts +1442 -140
- package/dist/effect/generated/campaigns.js +82 -20
- package/dist/effect/generated/contact-events.d.ts +26 -4
- package/dist/effect/generated/contact-events.js +5 -3
- package/dist/effect/generated/contact-groups.d.ts +233 -13
- package/dist/effect/generated/contact-groups.js +33 -17
- package/dist/effect/generated/contacts.d.ts +634 -96
- package/dist/effect/generated/contacts.js +82 -20
- package/dist/effect/generated/conversations.d.ts +398 -106
- package/dist/effect/generated/conversations.js +96 -22
- package/dist/effect/generated/custom-fields.d.ts +89 -1
- package/dist/effect/generated/custom-fields.js +11 -3
- package/dist/effect/generated/email.d.ts +1447 -83
- package/dist/effect/generated/email.js +167 -43
- package/dist/effect/generated/events.d.ts +51 -7
- package/dist/effect/generated/events.js +9 -5
- package/dist/effect/generated/extension-installations.d.ts +208 -10
- package/dist/effect/generated/extension-installations.js +26 -8
- package/dist/effect/generated/extensions.d.ts +123 -13
- package/dist/effect/generated/extensions.js +20 -10
- package/dist/effect/generated/feedback.d.ts +23 -1
- package/dist/effect/generated/feedback.js +6 -4
- package/dist/effect/generated/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +3085 -627
- package/dist/effect/generated/mailboxes.js +340 -141
- package/dist/effect/generated/media.d.ts +125 -15
- package/dist/effect/generated/media.js +15 -2
- package/dist/effect/generated/messages.d.ts +2036 -117
- package/dist/effect/generated/messages.js +286 -54
- package/dist/effect/generated/namespaces.d.ts +209 -25
- package/dist/effect/generated/namespaces.js +27 -9
- package/dist/effect/generated/newsletter-domains.d.ts +98 -12
- package/dist/effect/generated/newsletter-domains.js +20 -13
- package/dist/effect/generated/newsletter-issues.d.ts +354 -19
- package/dist/effect/generated/newsletter-issues.js +162 -98
- package/dist/effect/generated/newsletters.d.ts +123 -13
- package/dist/effect/generated/newsletters.js +19 -9
- package/dist/effect/generated/operations.d.ts +76 -10
- package/dist/effect/generated/operations.js +12 -6
- package/dist/effect/generated/organizations.d.ts +287 -7
- package/dist/effect/generated/organizations.js +33 -5
- package/dist/effect/generated/scheduled-messages.d.ts +4427 -99
- package/dist/effect/generated/scheduled-messages.js +71 -12
- package/dist/effect/generated/shared.d.ts +2213 -190
- package/dist/effect/generated/shared.js +527 -76
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +1718 -136
- package/dist/effect/generated/templates.js +421 -226
- package/dist/effect/generated/topic-forms.d.ts +111 -1
- package/dist/effect/generated/topic-forms.js +23 -13
- package/dist/effect/generated/topics.d.ts +353 -43
- package/dist/effect/generated/topics.js +67 -19
- package/dist/effect/generated/webhooks.d.ts +296 -38
- package/dist/effect/generated/webhooks.js +58 -16
- package/dist/effect/generated/whoami.d.ts +35 -1
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +20 -0
- package/dist/effect/generated-metadata.js +10 -0
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +105 -19
- package/dist/effect/mailboxes.d.ts +405 -174
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/messages.d.ts +40 -40
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/newsletter-domains.d.ts +5 -5
- package/dist/effect/newsletters.d.ts +1 -1
- package/dist/effect/operations.d.ts +11 -11
- package/dist/effect/organizations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +863 -8
- package/dist/effect/templates.d.ts +37 -37
- package/dist/effect/topics.d.ts +21 -21
- package/dist/effect/webhooks.d.ts +22 -22
- package/dist/index.js +2 -2
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +1 -1
- package/dist/promises/client.js +2 -2
- package/dist/promises/errors.gen.d.ts +22 -2
- package/dist/promises/errors.gen.js +60 -2
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -0
- package/dist/service-map.js +5 -0
- package/package.json +9 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ForbiddenError, GatewayTimeoutError, IanaTimezone, InternalError, JsonValue, MailboxId, OperationAccepted, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared";
|
|
3
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ForbiddenError, GatewayTimeoutError, IanaTimezone, InternalError, JsonValue, MailboxId, MalformedRequestError, OperationAccepted, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared";
|
|
4
4
|
export type PhoneRegion = string;
|
|
5
5
|
export declare const PhoneRegion: Schema.String;
|
|
6
6
|
export type Organization = {
|
|
@@ -22,6 +22,10 @@ export type Organization = {
|
|
|
22
22
|
readonly emailFooterEnabledDefault: boolean | null;
|
|
23
23
|
readonly messagesUsed: number;
|
|
24
24
|
readonly messagesUsedThisMonth: number;
|
|
25
|
+
readonly smsUsed: number;
|
|
26
|
+
readonly smsUsedThisMonth: number;
|
|
27
|
+
readonly whatsappUsed: number;
|
|
28
|
+
readonly whatsappUsedThisMonth: number;
|
|
25
29
|
readonly emailUsed: number;
|
|
26
30
|
readonly emailUsedThisMonth: number;
|
|
27
31
|
readonly contactsUsed: number;
|
|
@@ -46,6 +50,10 @@ export declare const Organization: Schema.Struct<{
|
|
|
46
50
|
readonly emailFooterEnabledDefault: Schema.Union<readonly [Schema.Boolean, Schema.Null]>;
|
|
47
51
|
readonly messagesUsed: Schema.Finite;
|
|
48
52
|
readonly messagesUsedThisMonth: Schema.Finite;
|
|
53
|
+
readonly smsUsed: Schema.Finite;
|
|
54
|
+
readonly smsUsedThisMonth: Schema.Finite;
|
|
55
|
+
readonly whatsappUsed: Schema.Finite;
|
|
56
|
+
readonly whatsappUsedThisMonth: Schema.Finite;
|
|
49
57
|
readonly emailUsed: Schema.Finite;
|
|
50
58
|
readonly emailUsedThisMonth: Schema.Finite;
|
|
51
59
|
readonly contactsUsed: Schema.Finite;
|
|
@@ -77,6 +85,10 @@ export declare const OrganizationsCreate200: Schema.Struct<{
|
|
|
77
85
|
readonly emailFooterEnabledDefault: Schema.Union<readonly [Schema.Boolean, Schema.Null]>;
|
|
78
86
|
readonly messagesUsed: Schema.Finite;
|
|
79
87
|
readonly messagesUsedThisMonth: Schema.Finite;
|
|
88
|
+
readonly smsUsed: Schema.Finite;
|
|
89
|
+
readonly smsUsedThisMonth: Schema.Finite;
|
|
90
|
+
readonly whatsappUsed: Schema.Finite;
|
|
91
|
+
readonly whatsappUsedThisMonth: Schema.Finite;
|
|
80
92
|
readonly emailUsed: Schema.Finite;
|
|
81
93
|
readonly emailUsedThisMonth: Schema.Finite;
|
|
82
94
|
readonly contactsUsed: Schema.Finite;
|
|
@@ -84,6 +96,8 @@ export declare const OrganizationsCreate200: Schema.Struct<{
|
|
|
84
96
|
readonly teamMembersUsed: Schema.Finite;
|
|
85
97
|
readonly messagesResetAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
86
98
|
}>;
|
|
99
|
+
export type OrganizationsCreate400 = MalformedRequestError;
|
|
100
|
+
export declare const OrganizationsCreate400: typeof MalformedRequestError;
|
|
87
101
|
export type OrganizationsCreate401 = UnauthorizedError;
|
|
88
102
|
export declare const OrganizationsCreate401: typeof UnauthorizedError;
|
|
89
103
|
export type OrganizationsCreate402 = PaymentRequiredError;
|
|
@@ -116,6 +130,10 @@ export declare const OrganizationsGet200: Schema.Struct<{
|
|
|
116
130
|
readonly emailFooterEnabledDefault: Schema.Union<readonly [Schema.Boolean, Schema.Null]>;
|
|
117
131
|
readonly messagesUsed: Schema.Finite;
|
|
118
132
|
readonly messagesUsedThisMonth: Schema.Finite;
|
|
133
|
+
readonly smsUsed: Schema.Finite;
|
|
134
|
+
readonly smsUsedThisMonth: Schema.Finite;
|
|
135
|
+
readonly whatsappUsed: Schema.Finite;
|
|
136
|
+
readonly whatsappUsedThisMonth: Schema.Finite;
|
|
119
137
|
readonly emailUsed: Schema.Finite;
|
|
120
138
|
readonly emailUsedThisMonth: Schema.Finite;
|
|
121
139
|
readonly contactsUsed: Schema.Finite;
|
|
@@ -123,6 +141,8 @@ export declare const OrganizationsGet200: Schema.Struct<{
|
|
|
123
141
|
readonly teamMembersUsed: Schema.Finite;
|
|
124
142
|
readonly messagesResetAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
125
143
|
}>;
|
|
144
|
+
export type OrganizationsGet400 = MalformedRequestError;
|
|
145
|
+
export declare const OrganizationsGet400: typeof MalformedRequestError;
|
|
126
146
|
export type OrganizationsGet401 = UnauthorizedError;
|
|
127
147
|
export declare const OrganizationsGet401: typeof UnauthorizedError;
|
|
128
148
|
export type OrganizationsGet403 = ForbiddenError;
|
|
@@ -177,6 +197,10 @@ export declare const OrganizationsUpdate200: Schema.Struct<{
|
|
|
177
197
|
readonly emailFooterEnabledDefault: Schema.Union<readonly [Schema.Boolean, Schema.Null]>;
|
|
178
198
|
readonly messagesUsed: Schema.Finite;
|
|
179
199
|
readonly messagesUsedThisMonth: Schema.Finite;
|
|
200
|
+
readonly smsUsed: Schema.Finite;
|
|
201
|
+
readonly smsUsedThisMonth: Schema.Finite;
|
|
202
|
+
readonly whatsappUsed: Schema.Finite;
|
|
203
|
+
readonly whatsappUsedThisMonth: Schema.Finite;
|
|
180
204
|
readonly emailUsed: Schema.Finite;
|
|
181
205
|
readonly emailUsedThisMonth: Schema.Finite;
|
|
182
206
|
readonly contactsUsed: Schema.Finite;
|
|
@@ -184,6 +208,8 @@ export declare const OrganizationsUpdate200: Schema.Struct<{
|
|
|
184
208
|
readonly teamMembersUsed: Schema.Finite;
|
|
185
209
|
readonly messagesResetAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
186
210
|
}>;
|
|
211
|
+
export type OrganizationsUpdate400 = MalformedRequestError;
|
|
212
|
+
export declare const OrganizationsUpdate400: typeof MalformedRequestError;
|
|
187
213
|
export type OrganizationsUpdate401 = UnauthorizedError;
|
|
188
214
|
export declare const OrganizationsUpdate401: typeof UnauthorizedError;
|
|
189
215
|
export type OrganizationsUpdate403 = ForbiddenError;
|
|
@@ -206,6 +232,8 @@ export declare const OrganizationsCreateAvatarUpload200: Schema.Struct<{
|
|
|
206
232
|
readonly maxBytes: Schema.Finite;
|
|
207
233
|
readonly contentTypes: Schema.$Array<Schema.String>;
|
|
208
234
|
}>;
|
|
235
|
+
export type OrganizationsCreateAvatarUpload400 = MalformedRequestError;
|
|
236
|
+
export declare const OrganizationsCreateAvatarUpload400: typeof MalformedRequestError;
|
|
209
237
|
export type OrganizationsCreateAvatarUpload401 = UnauthorizedError;
|
|
210
238
|
export declare const OrganizationsCreateAvatarUpload401: typeof UnauthorizedError;
|
|
211
239
|
export type OrganizationsCreateAvatarUpload403 = ForbiddenError;
|
|
@@ -226,6 +254,8 @@ export declare const OrganizationsGetProfile200: Schema.Struct<{
|
|
|
226
254
|
readonly name: Schema.String;
|
|
227
255
|
readonly nickname: Schema.String;
|
|
228
256
|
}>;
|
|
257
|
+
export type OrganizationsGetProfile400 = MalformedRequestError;
|
|
258
|
+
export declare const OrganizationsGetProfile400: typeof MalformedRequestError;
|
|
229
259
|
export type OrganizationsGetProfile401 = UnauthorizedError;
|
|
230
260
|
export declare const OrganizationsGetProfile401: typeof UnauthorizedError;
|
|
231
261
|
export type OrganizationsGetProfile403 = ForbiddenError;
|
|
@@ -284,6 +314,8 @@ export declare const OrganizationsDelete202: Schema.Struct<{
|
|
|
284
314
|
}>;
|
|
285
315
|
}>;
|
|
286
316
|
}>;
|
|
317
|
+
export type OrganizationsDelete400 = MalformedRequestError;
|
|
318
|
+
export declare const OrganizationsDelete400: typeof MalformedRequestError;
|
|
287
319
|
export type OrganizationsDelete401 = UnauthorizedError;
|
|
288
320
|
export declare const OrganizationsDelete401: typeof UnauthorizedError;
|
|
289
321
|
export type OrganizationsDelete403 = ForbiddenError;
|
|
@@ -314,6 +346,8 @@ export type OrganizationsAssignPersonalMailbox200 = {
|
|
|
314
346
|
export declare const OrganizationsAssignPersonalMailbox200: Schema.Struct<{
|
|
315
347
|
readonly mailboxId: Schema.brand<Schema.String, "MailboxId">;
|
|
316
348
|
}>;
|
|
349
|
+
export type OrganizationsAssignPersonalMailbox400 = MalformedRequestError;
|
|
350
|
+
export declare const OrganizationsAssignPersonalMailbox400: typeof MalformedRequestError;
|
|
317
351
|
export type OrganizationsAssignPersonalMailbox401 = UnauthorizedError;
|
|
318
352
|
export declare const OrganizationsAssignPersonalMailbox401: typeof UnauthorizedError;
|
|
319
353
|
export type OrganizationsAssignPersonalMailbox402 = PaymentRequiredError;
|
|
@@ -340,6 +374,8 @@ export declare const OrganizationsGetPersonalMailboxAddressOptions200: Schema.St
|
|
|
340
374
|
readonly domains: Schema.$Array<Schema.String>;
|
|
341
375
|
readonly defaultDomain: Schema.String;
|
|
342
376
|
}>;
|
|
377
|
+
export type OrganizationsGetPersonalMailboxAddressOptions400 = MalformedRequestError;
|
|
378
|
+
export declare const OrganizationsGetPersonalMailboxAddressOptions400: typeof MalformedRequestError;
|
|
343
379
|
export type OrganizationsGetPersonalMailboxAddressOptions401 = UnauthorizedError;
|
|
344
380
|
export declare const OrganizationsGetPersonalMailboxAddressOptions401: typeof UnauthorizedError;
|
|
345
381
|
export type OrganizationsGetPersonalMailboxAddressOptions403 = ForbiddenError;
|
|
@@ -360,6 +396,8 @@ export declare const OrganizationsListPersonalMailboxAssignments200: Schema.Stru
|
|
|
360
396
|
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
361
397
|
}>>;
|
|
362
398
|
}>;
|
|
399
|
+
export type OrganizationsListPersonalMailboxAssignments400 = MalformedRequestError;
|
|
400
|
+
export declare const OrganizationsListPersonalMailboxAssignments400: typeof MalformedRequestError;
|
|
363
401
|
export type OrganizationsListPersonalMailboxAssignments401 = UnauthorizedError;
|
|
364
402
|
export declare const OrganizationsListPersonalMailboxAssignments401: typeof UnauthorizedError;
|
|
365
403
|
export type OrganizationsListPersonalMailboxAssignments403 = ForbiddenError;
|
|
@@ -430,6 +468,8 @@ export declare const OrganizationsGetTrustTier200: Schema.Struct<{
|
|
|
430
468
|
readonly blockers: Schema.$Array<Schema.Union<readonly [Schema.Literal<"too_recent">, Schema.Literal<"too_few_delivered">, Schema.Literal<"held">, Schema.Literal<"complaints">, Schema.Literal<"bounce_rate">]>>;
|
|
431
469
|
}>, Schema.Null]>;
|
|
432
470
|
}>;
|
|
471
|
+
export type OrganizationsGetTrustTier400 = MalformedRequestError;
|
|
472
|
+
export declare const OrganizationsGetTrustTier400: typeof MalformedRequestError;
|
|
433
473
|
export type OrganizationsGetTrustTier401 = UnauthorizedError;
|
|
434
474
|
export declare const OrganizationsGetTrustTier401: typeof UnauthorizedError;
|
|
435
475
|
export type OrganizationsGetTrustTier403 = ForbiddenError;
|
|
@@ -445,18 +485,20 @@ export declare const OrganizationsGetTrustTier502: typeof BillingProviderError;
|
|
|
445
485
|
export type OrganizationsGetTrustTier504 = GatewayTimeoutError;
|
|
446
486
|
export declare const OrganizationsGetTrustTier504: typeof GatewayTimeoutError;
|
|
447
487
|
export type OrganizationsGetUsageQuery = {
|
|
448
|
-
readonly after?: string
|
|
449
|
-
readonly before?: string
|
|
488
|
+
readonly after?: string;
|
|
489
|
+
readonly before?: string;
|
|
450
490
|
};
|
|
451
491
|
export declare const OrganizationsGetUsageQuery: Schema.Struct<{
|
|
452
|
-
readonly after: Schema.optionalKey<Schema.
|
|
453
|
-
readonly before: Schema.optionalKey<Schema.
|
|
492
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
493
|
+
readonly before: Schema.optionalKey<Schema.String>;
|
|
454
494
|
}>;
|
|
455
495
|
export type OrganizationsGetUsage200 = {
|
|
456
496
|
readonly usage: {
|
|
457
497
|
readonly periodStart: string;
|
|
458
498
|
readonly periodEnd: string;
|
|
499
|
+
readonly smsCount: number;
|
|
459
500
|
readonly emailCount: number;
|
|
501
|
+
readonly whatsappCount: number;
|
|
460
502
|
readonly totalMessages: number;
|
|
461
503
|
};
|
|
462
504
|
readonly billing: {
|
|
@@ -479,7 +521,9 @@ export declare const OrganizationsGetUsage200: Schema.Struct<{
|
|
|
479
521
|
readonly usage: Schema.Struct<{
|
|
480
522
|
readonly periodStart: Schema.String;
|
|
481
523
|
readonly periodEnd: Schema.String;
|
|
524
|
+
readonly smsCount: Schema.Finite;
|
|
482
525
|
readonly emailCount: Schema.Finite;
|
|
526
|
+
readonly whatsappCount: Schema.Finite;
|
|
483
527
|
readonly totalMessages: Schema.Finite;
|
|
484
528
|
}>;
|
|
485
529
|
readonly billing: Schema.Struct<{
|
|
@@ -498,6 +542,8 @@ export declare const OrganizationsGetUsage200: Schema.Struct<{
|
|
|
498
542
|
readonly creditsResetsAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
499
543
|
}>;
|
|
500
544
|
}>;
|
|
545
|
+
export type OrganizationsGetUsage400 = MalformedRequestError;
|
|
546
|
+
export declare const OrganizationsGetUsage400: typeof MalformedRequestError;
|
|
501
547
|
export type OrganizationsGetUsage401 = UnauthorizedError;
|
|
502
548
|
export declare const OrganizationsGetUsage401: typeof UnauthorizedError;
|
|
503
549
|
export type OrganizationsGetUsage403 = ForbiddenError;
|
|
@@ -574,6 +620,26 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
574
620
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
575
621
|
readonly message: Schema.String;
|
|
576
622
|
readonly retryAfterSeconds: Schema.Finite;
|
|
623
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
624
|
+
readonly _tag: "MalformedRequestError";
|
|
625
|
+
readonly message: string;
|
|
626
|
+
readonly fields: {
|
|
627
|
+
readonly [x: string]: readonly string[];
|
|
628
|
+
};
|
|
629
|
+
}, readonly [Schema.Struct<{
|
|
630
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
631
|
+
readonly message: Schema.String;
|
|
632
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
633
|
+
}>], {
|
|
634
|
+
readonly _tag: "MalformedRequestError";
|
|
635
|
+
readonly message: string;
|
|
636
|
+
readonly fields: {
|
|
637
|
+
readonly [x: string]: readonly string[];
|
|
638
|
+
};
|
|
639
|
+
}>, Schema.Struct<{
|
|
640
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
641
|
+
readonly message: Schema.String;
|
|
642
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
577
643
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
578
644
|
readonly _tag: "PaymentRequiredError";
|
|
579
645
|
readonly message: string;
|
|
@@ -669,6 +735,10 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
669
735
|
readonly emailFooterEnabledDefault: Schema.Union<readonly [Schema.Boolean, Schema.Null]>;
|
|
670
736
|
readonly messagesUsed: Schema.Finite;
|
|
671
737
|
readonly messagesUsedThisMonth: Schema.Finite;
|
|
738
|
+
readonly smsUsed: Schema.Finite;
|
|
739
|
+
readonly smsUsedThisMonth: Schema.Finite;
|
|
740
|
+
readonly whatsappUsed: Schema.Finite;
|
|
741
|
+
readonly whatsappUsedThisMonth: Schema.Finite;
|
|
672
742
|
readonly emailUsed: Schema.Finite;
|
|
673
743
|
readonly emailUsedThisMonth: Schema.Finite;
|
|
674
744
|
readonly contactsUsed: Schema.Finite;
|
|
@@ -715,6 +785,26 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
715
785
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
716
786
|
readonly message: Schema.String;
|
|
717
787
|
readonly retryAfterSeconds: Schema.Finite;
|
|
788
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
789
|
+
readonly _tag: "MalformedRequestError";
|
|
790
|
+
readonly message: string;
|
|
791
|
+
readonly fields: {
|
|
792
|
+
readonly [x: string]: readonly string[];
|
|
793
|
+
};
|
|
794
|
+
}, readonly [Schema.Struct<{
|
|
795
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
796
|
+
readonly message: Schema.String;
|
|
797
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
798
|
+
}>], {
|
|
799
|
+
readonly _tag: "MalformedRequestError";
|
|
800
|
+
readonly message: string;
|
|
801
|
+
readonly fields: {
|
|
802
|
+
readonly [x: string]: readonly string[];
|
|
803
|
+
};
|
|
804
|
+
}>, Schema.Struct<{
|
|
805
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
806
|
+
readonly message: Schema.String;
|
|
807
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
718
808
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
719
809
|
readonly _tag: "PaymentRequiredError";
|
|
720
810
|
readonly message: string;
|
|
@@ -803,6 +893,26 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
803
893
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
804
894
|
readonly message: Schema.String;
|
|
805
895
|
readonly retryAfterSeconds: Schema.Finite;
|
|
896
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
897
|
+
readonly _tag: "MalformedRequestError";
|
|
898
|
+
readonly message: string;
|
|
899
|
+
readonly fields: {
|
|
900
|
+
readonly [x: string]: readonly string[];
|
|
901
|
+
};
|
|
902
|
+
}, readonly [Schema.Struct<{
|
|
903
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
904
|
+
readonly message: Schema.String;
|
|
905
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
906
|
+
}>], {
|
|
907
|
+
readonly _tag: "MalformedRequestError";
|
|
908
|
+
readonly message: string;
|
|
909
|
+
readonly fields: {
|
|
910
|
+
readonly [x: string]: readonly string[];
|
|
911
|
+
};
|
|
912
|
+
}>, Schema.Struct<{
|
|
913
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
914
|
+
readonly message: Schema.String;
|
|
915
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
806
916
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
807
917
|
readonly _tag: "UnauthorizedError";
|
|
808
918
|
readonly message: string;
|
|
@@ -921,6 +1031,26 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
921
1031
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
922
1032
|
readonly message: Schema.String;
|
|
923
1033
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1034
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1035
|
+
readonly _tag: "MalformedRequestError";
|
|
1036
|
+
readonly message: string;
|
|
1037
|
+
readonly fields: {
|
|
1038
|
+
readonly [x: string]: readonly string[];
|
|
1039
|
+
};
|
|
1040
|
+
}, readonly [Schema.Struct<{
|
|
1041
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1042
|
+
readonly message: Schema.String;
|
|
1043
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1044
|
+
}>], {
|
|
1045
|
+
readonly _tag: "MalformedRequestError";
|
|
1046
|
+
readonly message: string;
|
|
1047
|
+
readonly fields: {
|
|
1048
|
+
readonly [x: string]: readonly string[];
|
|
1049
|
+
};
|
|
1050
|
+
}>, Schema.Struct<{
|
|
1051
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1052
|
+
readonly message: Schema.String;
|
|
1053
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
924
1054
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
925
1055
|
readonly _tag: "UnauthorizedError";
|
|
926
1056
|
readonly message: string;
|
|
@@ -970,6 +1100,10 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
970
1100
|
readonly emailFooterEnabledDefault: Schema.Union<readonly [Schema.Boolean, Schema.Null]>;
|
|
971
1101
|
readonly messagesUsed: Schema.Finite;
|
|
972
1102
|
readonly messagesUsedThisMonth: Schema.Finite;
|
|
1103
|
+
readonly smsUsed: Schema.Finite;
|
|
1104
|
+
readonly smsUsedThisMonth: Schema.Finite;
|
|
1105
|
+
readonly whatsappUsed: Schema.Finite;
|
|
1106
|
+
readonly whatsappUsedThisMonth: Schema.Finite;
|
|
973
1107
|
readonly emailUsed: Schema.Finite;
|
|
974
1108
|
readonly emailUsedThisMonth: Schema.Finite;
|
|
975
1109
|
readonly contactsUsed: Schema.Finite;
|
|
@@ -1004,6 +1138,26 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
1004
1138
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1005
1139
|
readonly message: Schema.String;
|
|
1006
1140
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1141
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1142
|
+
readonly _tag: "MalformedRequestError";
|
|
1143
|
+
readonly message: string;
|
|
1144
|
+
readonly fields: {
|
|
1145
|
+
readonly [x: string]: readonly string[];
|
|
1146
|
+
};
|
|
1147
|
+
}, readonly [Schema.Struct<{
|
|
1148
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1149
|
+
readonly message: Schema.String;
|
|
1150
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1151
|
+
}>], {
|
|
1152
|
+
readonly _tag: "MalformedRequestError";
|
|
1153
|
+
readonly message: string;
|
|
1154
|
+
readonly fields: {
|
|
1155
|
+
readonly [x: string]: readonly string[];
|
|
1156
|
+
};
|
|
1157
|
+
}>, Schema.Struct<{
|
|
1158
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1159
|
+
readonly message: Schema.String;
|
|
1160
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1007
1161
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1008
1162
|
readonly _tag: "ResourceNotFoundError";
|
|
1009
1163
|
readonly resource: string;
|
|
@@ -1087,6 +1241,26 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
1087
1241
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1088
1242
|
readonly message: Schema.String;
|
|
1089
1243
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1244
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1245
|
+
readonly _tag: "MalformedRequestError";
|
|
1246
|
+
readonly message: string;
|
|
1247
|
+
readonly fields: {
|
|
1248
|
+
readonly [x: string]: readonly string[];
|
|
1249
|
+
};
|
|
1250
|
+
}, readonly [Schema.Struct<{
|
|
1251
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1252
|
+
readonly message: Schema.String;
|
|
1253
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1254
|
+
}>], {
|
|
1255
|
+
readonly _tag: "MalformedRequestError";
|
|
1256
|
+
readonly message: string;
|
|
1257
|
+
readonly fields: {
|
|
1258
|
+
readonly [x: string]: readonly string[];
|
|
1259
|
+
};
|
|
1260
|
+
}>, Schema.Struct<{
|
|
1261
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1262
|
+
readonly message: Schema.String;
|
|
1263
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1090
1264
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1091
1265
|
readonly _tag: "UnauthorizedError";
|
|
1092
1266
|
readonly message: string;
|
|
@@ -1151,6 +1325,26 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
1151
1325
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1152
1326
|
readonly message: Schema.String;
|
|
1153
1327
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1328
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1329
|
+
readonly _tag: "MalformedRequestError";
|
|
1330
|
+
readonly message: string;
|
|
1331
|
+
readonly fields: {
|
|
1332
|
+
readonly [x: string]: readonly string[];
|
|
1333
|
+
};
|
|
1334
|
+
}, readonly [Schema.Struct<{
|
|
1335
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1336
|
+
readonly message: Schema.String;
|
|
1337
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1338
|
+
}>], {
|
|
1339
|
+
readonly _tag: "MalformedRequestError";
|
|
1340
|
+
readonly message: string;
|
|
1341
|
+
readonly fields: {
|
|
1342
|
+
readonly [x: string]: readonly string[];
|
|
1343
|
+
};
|
|
1344
|
+
}>, Schema.Struct<{
|
|
1345
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1346
|
+
readonly message: Schema.String;
|
|
1347
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1154
1348
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1155
1349
|
readonly _tag: "UnauthorizedError";
|
|
1156
1350
|
readonly message: string;
|
|
@@ -1252,6 +1446,26 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
1252
1446
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1253
1447
|
readonly message: Schema.String;
|
|
1254
1448
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1449
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1450
|
+
readonly _tag: "MalformedRequestError";
|
|
1451
|
+
readonly message: string;
|
|
1452
|
+
readonly fields: {
|
|
1453
|
+
readonly [x: string]: readonly string[];
|
|
1454
|
+
};
|
|
1455
|
+
}, readonly [Schema.Struct<{
|
|
1456
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1457
|
+
readonly message: Schema.String;
|
|
1458
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1459
|
+
}>], {
|
|
1460
|
+
readonly _tag: "MalformedRequestError";
|
|
1461
|
+
readonly message: string;
|
|
1462
|
+
readonly fields: {
|
|
1463
|
+
readonly [x: string]: readonly string[];
|
|
1464
|
+
};
|
|
1465
|
+
}>, Schema.Struct<{
|
|
1466
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1467
|
+
readonly message: Schema.String;
|
|
1468
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1255
1469
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1256
1470
|
readonly _tag: "ResourceNotFoundError";
|
|
1257
1471
|
readonly resource: string;
|
|
@@ -1305,13 +1519,15 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
1305
1519
|
readonly message: Schema.String;
|
|
1306
1520
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1307
1521
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"organizationsGetUsage", "GET", "/v1/organizations/usage", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1308
|
-
readonly after: Schema.optionalKey<Schema.
|
|
1309
|
-
readonly before: Schema.optionalKey<Schema.
|
|
1522
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
1523
|
+
readonly before: Schema.optionalKey<Schema.String>;
|
|
1310
1524
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1311
1525
|
readonly usage: Schema.Struct<{
|
|
1312
1526
|
readonly periodStart: Schema.String;
|
|
1313
1527
|
readonly periodEnd: Schema.String;
|
|
1528
|
+
readonly smsCount: Schema.Finite;
|
|
1314
1529
|
readonly emailCount: Schema.Finite;
|
|
1530
|
+
readonly whatsappCount: Schema.Finite;
|
|
1315
1531
|
readonly totalMessages: Schema.Finite;
|
|
1316
1532
|
}>;
|
|
1317
1533
|
readonly billing: Schema.Struct<{
|
|
@@ -1357,6 +1573,26 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
1357
1573
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1358
1574
|
readonly message: Schema.String;
|
|
1359
1575
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1576
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1577
|
+
readonly _tag: "MalformedRequestError";
|
|
1578
|
+
readonly message: string;
|
|
1579
|
+
readonly fields: {
|
|
1580
|
+
readonly [x: string]: readonly string[];
|
|
1581
|
+
};
|
|
1582
|
+
}, readonly [Schema.Struct<{
|
|
1583
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1584
|
+
readonly message: Schema.String;
|
|
1585
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1586
|
+
}>], {
|
|
1587
|
+
readonly _tag: "MalformedRequestError";
|
|
1588
|
+
readonly message: string;
|
|
1589
|
+
readonly fields: {
|
|
1590
|
+
readonly [x: string]: readonly string[];
|
|
1591
|
+
};
|
|
1592
|
+
}>, Schema.Struct<{
|
|
1593
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1594
|
+
readonly message: Schema.String;
|
|
1595
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1360
1596
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1361
1597
|
readonly _tag: "UnauthorizedError";
|
|
1362
1598
|
readonly message: string;
|
|
@@ -1421,6 +1657,26 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
1421
1657
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1422
1658
|
readonly message: Schema.String;
|
|
1423
1659
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1660
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1661
|
+
readonly _tag: "MalformedRequestError";
|
|
1662
|
+
readonly message: string;
|
|
1663
|
+
readonly fields: {
|
|
1664
|
+
readonly [x: string]: readonly string[];
|
|
1665
|
+
};
|
|
1666
|
+
}, readonly [Schema.Struct<{
|
|
1667
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1668
|
+
readonly message: Schema.String;
|
|
1669
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1670
|
+
}>], {
|
|
1671
|
+
readonly _tag: "MalformedRequestError";
|
|
1672
|
+
readonly message: string;
|
|
1673
|
+
readonly fields: {
|
|
1674
|
+
readonly [x: string]: readonly string[];
|
|
1675
|
+
};
|
|
1676
|
+
}>, Schema.Struct<{
|
|
1677
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1678
|
+
readonly message: Schema.String;
|
|
1679
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1424
1680
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1425
1681
|
readonly _tag: "UnauthorizedError";
|
|
1426
1682
|
readonly message: string;
|
|
@@ -1480,6 +1736,10 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
1480
1736
|
readonly emailFooterEnabledDefault: Schema.Union<readonly [Schema.Boolean, Schema.Null]>;
|
|
1481
1737
|
readonly messagesUsed: Schema.Finite;
|
|
1482
1738
|
readonly messagesUsedThisMonth: Schema.Finite;
|
|
1739
|
+
readonly smsUsed: Schema.Finite;
|
|
1740
|
+
readonly smsUsedThisMonth: Schema.Finite;
|
|
1741
|
+
readonly whatsappUsed: Schema.Finite;
|
|
1742
|
+
readonly whatsappUsedThisMonth: Schema.Finite;
|
|
1483
1743
|
readonly emailUsed: Schema.Finite;
|
|
1484
1744
|
readonly emailUsedThisMonth: Schema.Finite;
|
|
1485
1745
|
readonly contactsUsed: Schema.Finite;
|
|
@@ -1514,6 +1774,26 @@ declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"Organizations"
|
|
|
1514
1774
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1515
1775
|
readonly message: Schema.String;
|
|
1516
1776
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1777
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1778
|
+
readonly _tag: "MalformedRequestError";
|
|
1779
|
+
readonly message: string;
|
|
1780
|
+
readonly fields: {
|
|
1781
|
+
readonly [x: string]: readonly string[];
|
|
1782
|
+
};
|
|
1783
|
+
}, readonly [Schema.Struct<{
|
|
1784
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1785
|
+
readonly message: Schema.String;
|
|
1786
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1787
|
+
}>], {
|
|
1788
|
+
readonly _tag: "MalformedRequestError";
|
|
1789
|
+
readonly message: string;
|
|
1790
|
+
readonly fields: {
|
|
1791
|
+
readonly [x: string]: readonly string[];
|
|
1792
|
+
};
|
|
1793
|
+
}>, Schema.Struct<{
|
|
1794
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1795
|
+
readonly message: Schema.String;
|
|
1796
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1517
1797
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1518
1798
|
readonly _tag: "ResourceNotFoundError";
|
|
1519
1799
|
readonly resource: string;
|