samva 0.53.0 → 0.55.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 +1 -0
- package/dist/_virtual/_rolldown/runtime.js +4 -4
- package/dist/agent/index.js +1 -1
- package/dist/client/client/client.gen.js +1 -2
- package/dist/client/client/utils.gen.js +1 -1
- package/dist/client/client.gen.js +1 -1
- package/dist/client/sdk.gen.d.ts +96 -12
- package/dist/client/sdk.gen.js +314 -25
- package/dist/client/types.gen.d.ts +647 -13
- package/dist/client-attribution.js +1 -1
- package/dist/effect/agents.js +1 -1
- package/dist/effect/analytics.js +1 -1
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/approval-requests.js +1 -1
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/brands.d.ts +8 -1
- package/dist/effect/brands.js +2 -2
- package/dist/effect/campaigns.d.ts +66 -56
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.js +6 -6
- package/dist/effect/contact-groups.js +1 -1
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/custom-fields.js +1 -1
- package/dist/effect/descriptors/brands.d.ts +4 -4
- package/dist/effect/descriptors/brands.js +4 -4
- package/dist/effect/descriptors/email.d.ts +21 -1
- package/dist/effect/descriptors/email.js +21 -1
- package/dist/effect/descriptors/phone-numbers.d.ts +49 -0
- package/dist/effect/descriptors/phone-numbers.js +47 -0
- package/dist/effect/descriptors/topics.d.ts +1 -1
- package/dist/effect/descriptors/topics.js +1 -1
- package/dist/effect/email.d.ts +12 -0
- package/dist/effect/email.js +6 -2
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/events.js +2 -2
- package/dist/effect/feedback.js +2 -2
- package/dist/effect/generated/accounts.d.ts +12 -1
- package/dist/effect/generated/accounts.js +2 -1
- package/dist/effect/generated/agents.js +7 -7
- package/dist/effect/generated/analytics.js +16 -16
- package/dist/effect/generated/api-keys.js +7 -7
- package/dist/effect/generated/approval-requests.js +1 -1
- package/dist/effect/generated/attachments.js +4 -4
- package/dist/effect/generated/brands.d.ts +78 -8
- package/dist/effect/generated/brands.js +21 -12
- package/dist/effect/generated/campaigns.d.ts +17 -1
- package/dist/effect/generated/campaigns.js +15 -14
- package/dist/effect/generated/contact-events.js +1 -1
- package/dist/effect/generated/contact-groups.js +12 -12
- package/dist/effect/generated/contacts.js +50 -50
- package/dist/effect/generated/conversations.js +7 -7
- package/dist/effect/generated/custom-fields.js +6 -6
- package/dist/effect/generated/email.d.ts +473 -2
- package/dist/effect/generated/email.js +143 -44
- package/dist/effect/generated/events.js +5 -5
- package/dist/effect/generated/feedback.js +1 -1
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/integrations-catalog.d.ts +16 -0
- package/dist/effect/generated/integrations-catalog.js +10 -6
- package/dist/effect/generated/integrations.js +5 -5
- package/dist/effect/generated/journeys.d.ts +158 -1
- package/dist/effect/generated/journeys.js +16 -14
- package/dist/effect/generated/logs.js +2 -2
- package/dist/effect/generated/mailboxes.d.ts +41 -3
- package/dist/effect/generated/mailboxes.js +48 -50
- package/dist/effect/generated/media.js +1 -1
- package/dist/effect/generated/messages.d.ts +6 -0
- package/dist/effect/generated/messages.js +12 -6
- package/dist/effect/generated/namespaces.d.ts +9 -9
- package/dist/effect/generated/namespaces.js +1 -1
- package/dist/effect/generated/newsletter-domains.js +1 -1
- package/dist/effect/generated/newsletter-issues.js +69 -69
- package/dist/effect/generated/newsletters.js +1 -1
- package/dist/effect/generated/operations.js +1 -1
- package/dist/effect/generated/organizations.d.ts +3 -0
- package/dist/effect/generated/organizations.js +2 -1
- package/dist/effect/generated/phone-numbers.d.ts +817 -0
- package/dist/effect/generated/phone-numbers.js +230 -0
- package/dist/effect/generated/policies.js +2 -2
- package/dist/effect/generated/scheduled-messages.js +1 -1
- package/dist/effect/generated/shared.d.ts +75 -14
- package/dist/effect/generated/shared.js +46 -17
- package/dist/effect/generated/subscriptions.js +1 -1
- package/dist/effect/generated/template-registrations.js +1 -1
- package/dist/effect/generated/template-share-links.js +9 -9
- package/dist/effect/generated/templates.d.ts +34 -1
- package/dist/effect/generated/templates.js +136 -121
- package/dist/effect/generated/topic-forms.js +1 -1
- package/dist/effect/generated/topics.d.ts +10 -0
- package/dist/effect/generated/topics.js +20 -13
- package/dist/effect/generated/webhooks.js +18 -18
- package/dist/effect/generated/whats-app-flows.js +5 -5
- package/dist/effect/generated/whats-app-setup-links.js +1 -1
- package/dist/effect/generated/whats-app.d.ts +75 -0
- package/dist/effect/generated/whats-app.js +43 -18
- package/dist/effect/generated/whoami.js +1 -1
- package/dist/effect/generated-metadata.d.ts +47 -1
- package/dist/effect/generated-metadata.js +175 -146
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +6 -5
- package/dist/effect/integrations-catalog.js +1 -1
- package/dist/effect/integrations.js +1 -1
- package/dist/effect/internal/client.js +6 -6
- package/dist/effect/internal/email-sender.js +3 -3
- package/dist/effect/internal/log-events.js +2 -2
- package/dist/effect/internal/mailbox-events.js +1 -1
- package/dist/effect/internal/operation.js +2 -2
- package/dist/effect/internal/send.js +4 -4
- package/dist/effect/journeys.d.ts +20 -0
- package/dist/effect/journeys.js +1 -1
- package/dist/effect/logs.js +1 -1
- package/dist/effect/mailboxes.d.ts +191 -191
- package/dist/effect/mailboxes.js +3 -3
- package/dist/effect/media.js +2 -2
- package/dist/effect/messages.js +2 -2
- package/dist/effect/namespaces.d.ts +2 -2
- package/dist/effect/namespaces.js +1 -1
- package/dist/effect/newsletter-domains.js +1 -1
- package/dist/effect/newsletter-issues.js +1 -1
- package/dist/effect/newsletters.js +1 -1
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/phone-numbers.d.ts +22 -0
- package/dist/effect/phone-numbers.js +21 -0
- package/dist/effect/policies.js +1 -1
- package/dist/effect/retry.js +3 -3
- package/dist/effect/scheduled-messages.d.ts +350 -350
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/subscriptions.js +1 -1
- package/dist/effect/template-registrations.js +1 -1
- package/dist/effect/template-share-links.js +1 -1
- package/dist/effect/templates.d.ts +1 -0
- package/dist/effect/templates.js +2 -2
- package/dist/effect/topic-forms.js +1 -1
- package/dist/effect/topics.d.ts +70 -2
- package/dist/effect/topics.js +1 -1
- package/dist/effect/webhooks.js +2 -2
- package/dist/effect/whatsapp-flows.js +1 -1
- package/dist/effect/whatsapp-setup-links.js +1 -1
- package/dist/effect/whatsapp.d.ts +10 -0
- package/dist/effect/whatsapp.js +1 -1
- package/dist/effect/whoami.js +1 -1
- package/dist/index.js +2 -2
- package/dist/package.json.js +5 -0
- package/dist/promises/client.d.ts +3 -1
- package/dist/promises/client.js +7 -5
- package/dist/promises/errors.gen.d.ts +16 -2
- package/dist/promises/errors.gen.js +48 -11
- package/dist/promises/index.js +3 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.js +1 -1
- package/dist/service-map.d.ts +40 -5
- package/package.json +9 -5
- package/dist/package.js +0 -5
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type * as EffectBrand from "effect/Brand";
|
|
2
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
2
|
import * as Schema from "effect/Schema";
|
|
4
|
-
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
|
|
5
|
-
export type BrandId = string & EffectBrand.Brand<"BrandId">;
|
|
6
|
-
export declare const BrandId: Schema.brand<Schema.String, "BrandId">;
|
|
3
|
+
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, BrandId, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
|
|
7
4
|
export type Brand = {
|
|
8
5
|
readonly id: BrandId;
|
|
6
|
+
readonly namespaceId: NamespaceId | null;
|
|
9
7
|
readonly slug: string;
|
|
10
8
|
readonly name: string;
|
|
11
9
|
readonly isDefault: boolean;
|
|
@@ -18,6 +16,7 @@ export type Brand = {
|
|
|
18
16
|
};
|
|
19
17
|
export declare const Brand: Schema.Struct<{
|
|
20
18
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
19
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
21
20
|
readonly slug: Schema.String;
|
|
22
21
|
readonly name: Schema.String;
|
|
23
22
|
readonly isDefault: Schema.Boolean;
|
|
@@ -53,6 +52,7 @@ export type BrandList = {
|
|
|
53
52
|
export declare const BrandList: Schema.Struct<{
|
|
54
53
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
55
54
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
55
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
56
56
|
readonly slug: Schema.String;
|
|
57
57
|
readonly name: Schema.String;
|
|
58
58
|
readonly isDefault: Schema.Boolean;
|
|
@@ -83,10 +83,17 @@ export declare const BrandList: Schema.Struct<{
|
|
|
83
83
|
readonly updatedAt: Schema.String;
|
|
84
84
|
}>>;
|
|
85
85
|
}>;
|
|
86
|
+
export type BrandsListQuery = {
|
|
87
|
+
readonly namespaceId?: NamespaceId;
|
|
88
|
+
};
|
|
89
|
+
export declare const BrandsListQuery: Schema.Struct<{
|
|
90
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
91
|
+
}>;
|
|
86
92
|
export type BrandsList200 = BrandList;
|
|
87
93
|
export declare const BrandsList200: Schema.Struct<{
|
|
88
94
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
89
95
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
96
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
90
97
|
readonly slug: Schema.String;
|
|
91
98
|
readonly name: Schema.String;
|
|
92
99
|
readonly isDefault: Schema.Boolean;
|
|
@@ -130,6 +137,7 @@ export declare const BrandsList500: typeof InternalError;
|
|
|
130
137
|
export type BrandsList504 = GatewayTimeoutError;
|
|
131
138
|
export declare const BrandsList504: typeof GatewayTimeoutError;
|
|
132
139
|
export type BrandsCreateRequestJson = {
|
|
140
|
+
readonly namespaceId?: NamespaceId | null;
|
|
133
141
|
readonly slug: string;
|
|
134
142
|
readonly name: string;
|
|
135
143
|
readonly css?: string | null;
|
|
@@ -138,6 +146,7 @@ export type BrandsCreateRequestJson = {
|
|
|
138
146
|
readonly isDefault?: boolean | null;
|
|
139
147
|
};
|
|
140
148
|
export declare const BrandsCreateRequestJson: Schema.Struct<{
|
|
149
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
141
150
|
readonly slug: Schema.String;
|
|
142
151
|
readonly name: Schema.String;
|
|
143
152
|
readonly css: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -167,6 +176,7 @@ export declare const BrandsCreateRequestJson: Schema.Struct<{
|
|
|
167
176
|
export type BrandsCreate201 = Brand;
|
|
168
177
|
export declare const BrandsCreate201: Schema.Struct<{
|
|
169
178
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
179
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
170
180
|
readonly slug: Schema.String;
|
|
171
181
|
readonly name: Schema.String;
|
|
172
182
|
readonly isDefault: Schema.Boolean;
|
|
@@ -202,6 +212,8 @@ export type BrandsCreate401 = UnauthorizedError;
|
|
|
202
212
|
export declare const BrandsCreate401: typeof UnauthorizedError;
|
|
203
213
|
export type BrandsCreate403 = ForbiddenError;
|
|
204
214
|
export declare const BrandsCreate403: typeof ForbiddenError;
|
|
215
|
+
export type BrandsCreate404 = ResourceNotFoundError;
|
|
216
|
+
export declare const BrandsCreate404: typeof ResourceNotFoundError;
|
|
205
217
|
export type BrandsCreate409 = ConflictError;
|
|
206
218
|
export declare const BrandsCreate409: typeof ConflictError;
|
|
207
219
|
export type BrandsCreate422 = ValidationError;
|
|
@@ -216,9 +228,16 @@ export type BrandsGetPathParams = {
|
|
|
216
228
|
export declare const BrandsGetPathParams: Schema.Struct<{
|
|
217
229
|
readonly slug: Schema.String;
|
|
218
230
|
}>;
|
|
231
|
+
export type BrandsGetQuery = {
|
|
232
|
+
readonly namespaceId?: NamespaceId;
|
|
233
|
+
};
|
|
234
|
+
export declare const BrandsGetQuery: Schema.Struct<{
|
|
235
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
236
|
+
}>;
|
|
219
237
|
export type BrandsGet200 = Brand;
|
|
220
238
|
export declare const BrandsGet200: Schema.Struct<{
|
|
221
239
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
240
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
222
241
|
readonly slug: Schema.String;
|
|
223
242
|
readonly name: Schema.String;
|
|
224
243
|
readonly isDefault: Schema.Boolean;
|
|
@@ -268,6 +287,12 @@ export type BrandsRemovePathParams = {
|
|
|
268
287
|
export declare const BrandsRemovePathParams: Schema.Struct<{
|
|
269
288
|
readonly slug: Schema.String;
|
|
270
289
|
}>;
|
|
290
|
+
export type BrandsRemoveQuery = {
|
|
291
|
+
readonly namespaceId?: NamespaceId;
|
|
292
|
+
};
|
|
293
|
+
export declare const BrandsRemoveQuery: Schema.Struct<{
|
|
294
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
295
|
+
}>;
|
|
271
296
|
export type BrandsRemove200 = SuccessResponse;
|
|
272
297
|
export declare const BrandsRemove200: Schema.Struct<{
|
|
273
298
|
readonly success: Schema.Boolean;
|
|
@@ -295,6 +320,7 @@ export declare const BrandsUpdatePathParams: Schema.Struct<{
|
|
|
295
320
|
readonly slug: Schema.String;
|
|
296
321
|
}>;
|
|
297
322
|
export type BrandsUpdateRequestJson = {
|
|
323
|
+
readonly namespaceId?: NamespaceId | null;
|
|
298
324
|
readonly newSlug?: string | null;
|
|
299
325
|
readonly name?: string | null;
|
|
300
326
|
readonly css?: string | null;
|
|
@@ -302,6 +328,7 @@ export type BrandsUpdateRequestJson = {
|
|
|
302
328
|
readonly footer?: BrandFooter | null;
|
|
303
329
|
};
|
|
304
330
|
export declare const BrandsUpdateRequestJson: Schema.Struct<{
|
|
331
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
305
332
|
readonly newSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
306
333
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
307
334
|
readonly css: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -330,6 +357,7 @@ export declare const BrandsUpdateRequestJson: Schema.Struct<{
|
|
|
330
357
|
export type BrandsUpdate200 = Brand;
|
|
331
358
|
export declare const BrandsUpdate200: Schema.Struct<{
|
|
332
359
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
360
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
333
361
|
readonly slug: Schema.String;
|
|
334
362
|
readonly name: Schema.String;
|
|
335
363
|
readonly isDefault: Schema.Boolean;
|
|
@@ -381,9 +409,16 @@ export type BrandsSetDefaultPathParams = {
|
|
|
381
409
|
export declare const BrandsSetDefaultPathParams: Schema.Struct<{
|
|
382
410
|
readonly slug: Schema.String;
|
|
383
411
|
}>;
|
|
412
|
+
export type BrandsSetDefaultQuery = {
|
|
413
|
+
readonly namespaceId?: NamespaceId;
|
|
414
|
+
};
|
|
415
|
+
export declare const BrandsSetDefaultQuery: Schema.Struct<{
|
|
416
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
417
|
+
}>;
|
|
384
418
|
export type BrandsSetDefault200 = Brand;
|
|
385
419
|
export declare const BrandsSetDefault200: Schema.Struct<{
|
|
386
420
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
421
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
387
422
|
readonly slug: Schema.String;
|
|
388
423
|
readonly name: Schema.String;
|
|
389
424
|
readonly isDefault: Schema.Boolean;
|
|
@@ -428,6 +463,7 @@ export declare const BrandsSetDefault500: typeof InternalError;
|
|
|
428
463
|
export type BrandsSetDefault504 = GatewayTimeoutError;
|
|
429
464
|
export declare const BrandsSetDefault504: typeof GatewayTimeoutError;
|
|
430
465
|
declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpoint.HttpApiEndpoint<"brandsCreate", "POST", "/v1/brands", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
466
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
431
467
|
readonly slug: Schema.String;
|
|
432
468
|
readonly name: Schema.String;
|
|
433
469
|
readonly css: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -455,6 +491,7 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
|
|
|
455
491
|
readonly isDefault: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
456
492
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
457
493
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
494
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
458
495
|
readonly slug: Schema.String;
|
|
459
496
|
readonly name: Schema.String;
|
|
460
497
|
readonly isDefault: Schema.Boolean;
|
|
@@ -551,6 +588,26 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
|
|
|
551
588
|
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
552
589
|
readonly message: Schema.String;
|
|
553
590
|
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
591
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
592
|
+
readonly _tag: "ResourceNotFoundError";
|
|
593
|
+
readonly resource: string;
|
|
594
|
+
readonly id: string;
|
|
595
|
+
readonly message: string;
|
|
596
|
+
}, readonly [Schema.Struct<{
|
|
597
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
598
|
+
readonly resource: Schema.String;
|
|
599
|
+
readonly id: Schema.String;
|
|
600
|
+
readonly message: Schema.String;
|
|
601
|
+
}>], {
|
|
602
|
+
readonly _tag: "ResourceNotFoundError";
|
|
603
|
+
readonly resource: string;
|
|
604
|
+
readonly id: string;
|
|
605
|
+
readonly message: string;
|
|
606
|
+
}>, Schema.Struct<{
|
|
607
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
608
|
+
readonly resource: Schema.String;
|
|
609
|
+
readonly id: Schema.String;
|
|
610
|
+
readonly message: Schema.String;
|
|
554
611
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
555
612
|
readonly _tag: "UnauthorizedError";
|
|
556
613
|
readonly message: string;
|
|
@@ -585,8 +642,11 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
|
|
|
585
642
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
586
643
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"brandsGet", "GET", "/v1/brands/:slug", Schema.toCodecStringTree<Schema.Struct<{
|
|
587
644
|
readonly slug: Schema.String;
|
|
588
|
-
}>>,
|
|
645
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
646
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
647
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
589
648
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
649
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
590
650
|
readonly slug: Schema.String;
|
|
591
651
|
readonly name: Schema.String;
|
|
592
652
|
readonly isDefault: Schema.Boolean;
|
|
@@ -715,9 +775,12 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
|
|
|
715
775
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
716
776
|
readonly message: Schema.String;
|
|
717
777
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
718
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"brandsList", "GET", "/v1/brands", never,
|
|
778
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"brandsList", "GET", "/v1/brands", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
779
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
780
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
719
781
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
720
782
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
783
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
721
784
|
readonly slug: Schema.String;
|
|
722
785
|
readonly name: Schema.String;
|
|
723
786
|
readonly isDefault: Schema.Boolean;
|
|
@@ -829,7 +892,9 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
|
|
|
829
892
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
830
893
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"brandsRemove", "DELETE", "/v1/brands/:slug", Schema.toCodecStringTree<Schema.Struct<{
|
|
831
894
|
readonly slug: Schema.String;
|
|
832
|
-
}>>,
|
|
895
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
896
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
897
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
833
898
|
readonly success: Schema.Boolean;
|
|
834
899
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
835
900
|
readonly _tag: "ConflictError";
|
|
@@ -953,8 +1018,11 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
|
|
|
953
1018
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
954
1019
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"brandsSetDefault", "POST", "/v1/brands/:slug/default", Schema.toCodecStringTree<Schema.Struct<{
|
|
955
1020
|
readonly slug: Schema.String;
|
|
956
|
-
}>>,
|
|
1021
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
1022
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
1023
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
957
1024
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
1025
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
958
1026
|
readonly slug: Schema.String;
|
|
959
1027
|
readonly name: Schema.String;
|
|
960
1028
|
readonly isDefault: Schema.Boolean;
|
|
@@ -1086,6 +1154,7 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
|
|
|
1086
1154
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"brandsUpdate", "PATCH", "/v1/brands/:slug", Schema.toCodecStringTree<Schema.Struct<{
|
|
1087
1155
|
readonly slug: Schema.String;
|
|
1088
1156
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1157
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1089
1158
|
readonly newSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1090
1159
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1091
1160
|
readonly css: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1112,6 +1181,7 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
|
|
|
1112
1181
|
}>, Schema.Null]>>;
|
|
1113
1182
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1114
1183
|
readonly id: Schema.brand<Schema.String, "BrandId">;
|
|
1184
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1115
1185
|
readonly slug: Schema.String;
|
|
1116
1186
|
readonly name: Schema.String;
|
|
1117
1187
|
readonly isDefault: Schema.Boolean;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
|
|
2
1
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
2
|
import * as Schema from "effect/Schema";
|
|
3
|
+
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, BrandId, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
4
|
// src/effect/generated/brands.ts
|
|
5
|
-
const BrandId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^brand_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
6
|
-
expected: "a string matching the RegExp ^brand_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
7
|
-
identifier: "BrandId"
|
|
8
|
-
})).pipe(Schema.brand("BrandId")))();
|
|
9
5
|
const Brand = /* @__PURE__ */ (() => Schema.Struct({
|
|
10
6
|
id: BrandId,
|
|
11
|
-
|
|
7
|
+
namespaceId: Schema.Union([NamespaceId, Schema.Null]),
|
|
8
|
+
slug: Schema.String.annotate({ description: "The brand's handle, unique within its organization or namespace." }).check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })),
|
|
12
9
|
name: Schema.String,
|
|
13
10
|
isDefault: Schema.Boolean.annotate({ description: "Whether bare `samva:brand` and domains without a brand resolve to this brand." }),
|
|
14
11
|
css: Schema.String.annotate({ description: "Brand theme CSS: `@theme` variables, one dark-mode `@theme` of colors, and `@font-face` rules with https WOFF2 sources." }),
|
|
@@ -19,6 +16,7 @@ const Brand = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
19
16
|
updatedAt: Schema.String
|
|
20
17
|
}).annotate({ identifier: "Brand" }))();
|
|
21
18
|
const BrandList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Array(Brand) }).annotate({ identifier: "BrandList" }))();
|
|
19
|
+
const BrandsListQuery = /* @__PURE__ */ (() => Schema.Struct({ namespaceId: Schema.optionalKey(NamespaceId) }))();
|
|
22
20
|
const BrandsList200 = BrandList;
|
|
23
21
|
const BrandsList400 = MalformedRequestError;
|
|
24
22
|
const BrandsList401 = UnauthorizedError;
|
|
@@ -27,6 +25,7 @@ const BrandsList422 = ValidationError;
|
|
|
27
25
|
const BrandsList500 = InternalError;
|
|
28
26
|
const BrandsList504 = GatewayTimeoutError;
|
|
29
27
|
const BrandsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
28
|
+
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
|
|
30
29
|
slug: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })),
|
|
31
30
|
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })),
|
|
32
31
|
css: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(32768).annotate({ expected: "a string with at most 32768 code points" })).check(Schema.isMaxLength(32768).annotate({ expected: "a value with a length of at most 32768" })), Schema.Null])),
|
|
@@ -38,11 +37,13 @@ const BrandsCreate201 = Brand;
|
|
|
38
37
|
const BrandsCreate400 = MalformedRequestError;
|
|
39
38
|
const BrandsCreate401 = UnauthorizedError;
|
|
40
39
|
const BrandsCreate403 = ForbiddenError;
|
|
40
|
+
const BrandsCreate404 = ResourceNotFoundError;
|
|
41
41
|
const BrandsCreate409 = ConflictError;
|
|
42
42
|
const BrandsCreate422 = ValidationError;
|
|
43
43
|
const BrandsCreate500 = InternalError;
|
|
44
44
|
const BrandsCreate504 = GatewayTimeoutError;
|
|
45
45
|
const BrandsGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ slug: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })) }))();
|
|
46
|
+
const BrandsGetQuery = /* @__PURE__ */ (() => Schema.Struct({ namespaceId: Schema.optionalKey(NamespaceId) }))();
|
|
46
47
|
const BrandsGet200 = Brand;
|
|
47
48
|
const BrandsGet400 = MalformedRequestError;
|
|
48
49
|
const BrandsGet401 = UnauthorizedError;
|
|
@@ -52,6 +53,7 @@ const BrandsGet422 = ValidationError;
|
|
|
52
53
|
const BrandsGet500 = InternalError;
|
|
53
54
|
const BrandsGet504 = GatewayTimeoutError;
|
|
54
55
|
const BrandsRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({ slug: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })) }))();
|
|
56
|
+
const BrandsRemoveQuery = /* @__PURE__ */ (() => Schema.Struct({ namespaceId: Schema.optionalKey(NamespaceId) }))();
|
|
55
57
|
const BrandsRemove200 = SuccessResponse;
|
|
56
58
|
const BrandsRemove400 = MalformedRequestError;
|
|
57
59
|
const BrandsRemove401 = UnauthorizedError;
|
|
@@ -63,6 +65,7 @@ const BrandsRemove500 = InternalError;
|
|
|
63
65
|
const BrandsRemove504 = GatewayTimeoutError;
|
|
64
66
|
const BrandsUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ slug: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })) }))();
|
|
65
67
|
const BrandsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
68
|
+
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
|
|
66
69
|
newSlug: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Renames the brand. Projects importing `samva:brand/<old slug>` stop building until they import the new slug." }).check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })), Schema.Null])),
|
|
67
70
|
name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" })), Schema.Null])),
|
|
68
71
|
css: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMaxCodePoints(32768).annotate({ expected: "a string with at most 32768 code points" })).check(Schema.isMaxLength(32768).annotate({ expected: "a value with a length of at most 32768" })), Schema.Null])),
|
|
@@ -79,6 +82,7 @@ const BrandsUpdate422 = ValidationError;
|
|
|
79
82
|
const BrandsUpdate500 = InternalError;
|
|
80
83
|
const BrandsUpdate504 = GatewayTimeoutError;
|
|
81
84
|
const BrandsSetDefaultPathParams = /* @__PURE__ */ (() => Schema.Struct({ slug: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" })) }))();
|
|
85
|
+
const BrandsSetDefaultQuery = /* @__PURE__ */ (() => Schema.Struct({ namespaceId: Schema.optionalKey(NamespaceId) }))();
|
|
82
86
|
const BrandsSetDefault200 = Brand;
|
|
83
87
|
const BrandsSetDefault400 = MalformedRequestError;
|
|
84
88
|
const BrandsSetDefault401 = UnauthorizedError;
|
|
@@ -88,6 +92,7 @@ const BrandsSetDefault422 = ValidationError;
|
|
|
88
92
|
const BrandsSetDefault500 = InternalError;
|
|
89
93
|
const BrandsSetDefault504 = GatewayTimeoutError;
|
|
90
94
|
var BrandsGroup = class extends HttpApiGroup.make("Brands").add(HttpApiEndpoint.get("brandsList", "/v1/brands", {
|
|
95
|
+
query: BrandsListQuery,
|
|
91
96
|
success: BrandsList200,
|
|
92
97
|
error: [
|
|
93
98
|
BrandsList400.pipe(HttpApiSchema.status(400)),
|
|
@@ -97,20 +102,22 @@ var BrandsGroup = class extends HttpApiGroup.make("Brands").add(HttpApiEndpoint.
|
|
|
97
102
|
BrandsList500,
|
|
98
103
|
BrandsList504.pipe(HttpApiSchema.status(504))
|
|
99
104
|
]
|
|
100
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.list").annotate(OpenApi.Summary, "List brands").annotate(OpenApi.Description, "Returns the
|
|
105
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.list").annotate(OpenApi.Summary, "List brands").annotate(OpenApi.Description, "Returns brands in the addressed scope, the default first. A namespace caller without brands sees the shared organization brands when no namespaceId is supplied."), HttpApiEndpoint.post("brandsCreate", "/v1/brands", {
|
|
101
106
|
payload: BrandsCreateRequestJson,
|
|
102
107
|
success: BrandsCreate201.pipe(HttpApiSchema.status(201)),
|
|
103
108
|
error: [
|
|
104
109
|
BrandsCreate400.pipe(HttpApiSchema.status(400)),
|
|
105
110
|
BrandsCreate401.pipe(HttpApiSchema.status(401)),
|
|
106
111
|
BrandsCreate403.pipe(HttpApiSchema.status(403)),
|
|
112
|
+
BrandsCreate404.pipe(HttpApiSchema.status(404)),
|
|
107
113
|
BrandsCreate409.pipe(HttpApiSchema.status(409)),
|
|
108
114
|
BrandsCreate422.pipe(HttpApiSchema.status(422)),
|
|
109
115
|
BrandsCreate500,
|
|
110
116
|
BrandsCreate504.pipe(HttpApiSchema.status(504))
|
|
111
117
|
]
|
|
112
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.create").annotate(OpenApi.Summary, "Create a brand").annotate(OpenApi.Description, "Creates a brand. The CSS must parse as a brand theme; a rejected theme answers 422 with located findings under `fields.css`. With `isDefault`, the new brand becomes the default.
|
|
118
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.create").annotate(OpenApi.Summary, "Create a brand").annotate(OpenApi.Description, "Creates a brand. The CSS must parse as a brand theme; a rejected theme answers 422 with located findings under `fields.css`. The first namespace brand is its default. With `isDefault`, the new brand becomes the default for its scope. Each organization or namespace independently holds at most 12 brands; creating one more answers 409 with a `ConflictError`."), HttpApiEndpoint.get("brandsGet", "/v1/brands/:slug", {
|
|
113
119
|
params: BrandsGetPathParams,
|
|
120
|
+
query: BrandsGetQuery,
|
|
114
121
|
success: BrandsGet200,
|
|
115
122
|
error: [
|
|
116
123
|
BrandsGet400.pipe(HttpApiSchema.status(400)),
|
|
@@ -121,8 +128,9 @@ var BrandsGroup = class extends HttpApiGroup.make("Brands").add(HttpApiEndpoint.
|
|
|
121
128
|
BrandsGet500,
|
|
122
129
|
BrandsGet504.pipe(HttpApiSchema.status(504))
|
|
123
130
|
]
|
|
124
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.get").annotate(OpenApi.Summary, "Get a brand").annotate(OpenApi.Description, "Returns
|
|
131
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.get").annotate(OpenApi.Summary, "Get a brand").annotate(OpenApi.Description, "Returns a brand by slug in the addressed scope. A namespace caller omitting namespaceId can also look up shared organization brands."), HttpApiEndpoint.delete("brandsRemove", "/v1/brands/:slug", {
|
|
125
132
|
params: BrandsRemovePathParams,
|
|
133
|
+
query: BrandsRemoveQuery,
|
|
126
134
|
success: BrandsRemove200,
|
|
127
135
|
error: [
|
|
128
136
|
BrandsRemove400.pipe(HttpApiSchema.status(400)),
|
|
@@ -148,8 +156,9 @@ var BrandsGroup = class extends HttpApiGroup.make("Brands").add(HttpApiEndpoint.
|
|
|
148
156
|
BrandsUpdate500,
|
|
149
157
|
BrandsUpdate504.pipe(HttpApiSchema.status(504))
|
|
150
158
|
]
|
|
151
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.update").annotate(OpenApi.Summary, "Update a brand").annotate(OpenApi.Description, "Updates a brand. Each section given replaces that section whole.
|
|
159
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.update").annotate(OpenApi.Summary, "Update a brand").annotate(OpenApi.Description, "Updates a brand. Each section given replaces that section whole. Namespace sends using bare `samva:brand` use the current default."), HttpApiEndpoint.post("brandsSetDefault", "/v1/brands/:slug/default", {
|
|
152
160
|
params: BrandsSetDefaultPathParams,
|
|
161
|
+
query: BrandsSetDefaultQuery,
|
|
153
162
|
success: BrandsSetDefault200,
|
|
154
163
|
error: [
|
|
155
164
|
BrandsSetDefault400.pipe(HttpApiSchema.status(400)),
|
|
@@ -160,7 +169,7 @@ var BrandsGroup = class extends HttpApiGroup.make("Brands").add(HttpApiEndpoint.
|
|
|
160
169
|
BrandsSetDefault500,
|
|
161
170
|
BrandsSetDefault504.pipe(HttpApiSchema.status(504))
|
|
162
171
|
]
|
|
163
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.setDefault").annotate(OpenApi.Summary, "Make a brand the default").annotate(OpenApi.Description, "Makes this brand the
|
|
164
|
-
export { Brand,
|
|
172
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.setDefault").annotate(OpenApi.Summary, "Make a brand the default").annotate(OpenApi.Description, "Makes this brand the default in the addressed organization or namespace.")).annotate(OpenApi.Description, "Brand themes, logos and footers that templates import with `samva:brand`.") {};
|
|
173
|
+
export { Brand, BrandList, BrandsCreate201, BrandsCreate400, BrandsCreate401, BrandsCreate403, BrandsCreate404, BrandsCreate409, BrandsCreate422, BrandsCreate500, BrandsCreate504, BrandsCreateRequestJson, BrandsGet200, BrandsGet400, BrandsGet401, BrandsGet403, BrandsGet404, BrandsGet422, BrandsGet500, BrandsGet504, BrandsGetPathParams, BrandsGetQuery, BrandsGroup, BrandsList200, BrandsList400, BrandsList401, BrandsList403, BrandsList422, BrandsList500, BrandsList504, BrandsListQuery, BrandsRemove200, BrandsRemove400, BrandsRemove401, BrandsRemove403, BrandsRemove404, BrandsRemove409, BrandsRemove422, BrandsRemove500, BrandsRemove504, BrandsRemovePathParams, BrandsRemoveQuery, BrandsSetDefault200, BrandsSetDefault400, BrandsSetDefault401, BrandsSetDefault403, BrandsSetDefault404, BrandsSetDefault422, BrandsSetDefault500, BrandsSetDefault504, BrandsSetDefaultPathParams, BrandsSetDefaultQuery, BrandsUpdate200, BrandsUpdate400, BrandsUpdate401, BrandsUpdate403, BrandsUpdate404, BrandsUpdate409, BrandsUpdate422, BrandsUpdate500, BrandsUpdate504, BrandsUpdatePathParams, BrandsUpdateRequestJson };
|
|
165
174
|
|
|
166
175
|
//# sourceMappingURL=brands.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as EffectBrand from "effect/Brand";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignFooterRequiredError, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, ConflictError, ContactId, DeliveryUnavailableError, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RenderLocale, RenderTimeZone, ResourceNotFoundError, SenderNotReadyError, SendsSeries, ServiceUnavailableError, SmsContent, StoredEmailAttachments, StoredReplyToAddresses, TemplateData, TemplateId, TemplateInputContractId, TemplatePublicationId, TemplateSourceError, TopicId, UnauthorizedError, ValidationError, WhatsAppTemplateDispatch, __SamvaRuntimeAbsoluteInstant } from "./shared.js";
|
|
4
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignFooterRequiredError, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, ConflictError, ContactId, ContactReferenceSummary, DeliveryUnavailableError, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RenderLocale, RenderTimeZone, ResourceNotFoundError, SenderNotReadyError, SendsSeries, ServiceUnavailableError, SmsContent, StoredEmailAttachments, StoredReplyToAddresses, TemplateData, TemplateId, TemplateInputContractId, TemplatePublicationId, TemplateSourceError, TopicId, UnauthorizedError, ValidationError, WhatsAppTemplateDispatch, __SamvaRuntimeAbsoluteInstant } from "./shared.js";
|
|
5
5
|
export type CampaignFrom = {
|
|
6
6
|
readonly email: string;
|
|
7
7
|
readonly name?: string | null;
|
|
@@ -83,6 +83,7 @@ export type CampaignRecipientPage = {
|
|
|
83
83
|
readonly id: CampaignRecipientId;
|
|
84
84
|
readonly runId: CampaignRunId;
|
|
85
85
|
readonly contactId: ContactId;
|
|
86
|
+
readonly contact: ContactReferenceSummary | null;
|
|
86
87
|
readonly status: "pending" | "dispatching" | "dispatched" | "failed" | "skipped";
|
|
87
88
|
readonly messageId: string | null;
|
|
88
89
|
readonly failureReason: string | null;
|
|
@@ -97,6 +98,11 @@ export declare const CampaignRecipientPage: Schema.Struct<{
|
|
|
97
98
|
readonly id: Schema.brand<Schema.String, "CampaignRecipientId">;
|
|
98
99
|
readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
|
|
99
100
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
101
|
+
readonly contact: Schema.Union<readonly [Schema.Struct<{
|
|
102
|
+
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
103
|
+
readonly name: Schema.String;
|
|
104
|
+
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
105
|
+
}>, Schema.Null]>;
|
|
100
106
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>;
|
|
101
107
|
readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
102
108
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2595,6 +2601,11 @@ export declare const CampaignsListRecipients200: Schema.Struct<{
|
|
|
2595
2601
|
readonly id: Schema.brand<Schema.String, "CampaignRecipientId">;
|
|
2596
2602
|
readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
|
|
2597
2603
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
2604
|
+
readonly contact: Schema.Union<readonly [Schema.Struct<{
|
|
2605
|
+
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
2606
|
+
readonly name: Schema.String;
|
|
2607
|
+
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2608
|
+
}>, Schema.Null]>;
|
|
2598
2609
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>;
|
|
2599
2610
|
readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2600
2611
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -4546,6 +4557,11 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4546
4557
|
readonly id: Schema.brand<Schema.String, "CampaignRecipientId">;
|
|
4547
4558
|
readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
|
|
4548
4559
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
4560
|
+
readonly contact: Schema.Union<readonly [Schema.Struct<{
|
|
4561
|
+
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
4562
|
+
readonly name: Schema.String;
|
|
4563
|
+
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4564
|
+
}>, Schema.Null]>;
|
|
4549
4565
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>;
|
|
4550
4566
|
readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4551
4567
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AbsoluteInstant } from "../runtime.js";
|
|
2
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignFooterRequiredError, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, ConflictError, ContactId, DeliveryUnavailableError, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RenderLocale, RenderTimeZone, ResourceNotFoundError, SenderNotReadyError, SendsSeries, ServiceUnavailableError, SmsContent, StoredEmailAttachments, StoredReplyToAddresses, TemplateData, TemplateId, TemplateInputContractId, TemplatePublicationId, TemplateSourceError, TopicId, UnauthorizedError, ValidationError, WhatsAppTemplateDispatch } from "./shared.js";
|
|
3
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
4
3
|
import * as Schema from "effect/Schema";
|
|
4
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignFooterRequiredError, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, ConflictError, ContactId, ContactReferenceSummary, DeliveryUnavailableError, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RenderLocale, RenderTimeZone, ResourceNotFoundError, SenderNotReadyError, SendsSeries, ServiceUnavailableError, SmsContent, StoredEmailAttachments, StoredReplyToAddresses, TemplateData, TemplateId, TemplateInputContractId, TemplatePublicationId, TemplateSourceError, TopicId, UnauthorizedError, ValidationError, WhatsAppTemplateDispatch } from "./shared.js";
|
|
5
5
|
// src/effect/generated/campaigns.ts
|
|
6
6
|
const CampaignFrom = /* @__PURE__ */ (() => Schema.Union([Schema.Struct({
|
|
7
7
|
email: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
|
|
@@ -39,8 +39,8 @@ const CampaignRecipientId = /* @__PURE__ */ (() => Schema.String.check(Schema.is
|
|
|
39
39
|
})).pipe(Schema.brand("CampaignRecipientId")))();
|
|
40
40
|
const CampaignRunReportEngagement = /* @__PURE__ */ (() => Schema.Struct({
|
|
41
41
|
measurement: Schema.Literal("directional"),
|
|
42
|
-
uniqueOpens: Schema.Finite.annotate({ description: "Directional unique recipients who opened, excluding machine events; not an exact measurement." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(
|
|
43
|
-
uniqueClicks: Schema.Finite.annotate({ description: "Directional unique recipients who clicked, excluding machine events; not an exact measurement." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(
|
|
42
|
+
uniqueOpens: Schema.Finite.annotate({ description: "Directional unique recipients who opened, excluding machine events; not an exact measurement." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
43
|
+
uniqueClicks: Schema.Finite.annotate({ description: "Directional unique recipients who clicked, excluding machine events; not an exact measurement." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
44
44
|
}).annotate({ identifier: "CampaignRunReportEngagement" }))();
|
|
45
45
|
const CampaignRunReportSkippedReason = /* @__PURE__ */ (() => Schema.Struct({
|
|
46
46
|
reason: Schema.Union([
|
|
@@ -57,7 +57,7 @@ const CampaignRunReportSkippedReason = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
57
57
|
Schema.Literal("run_failed"),
|
|
58
58
|
Schema.Literal("missing_merge_field")
|
|
59
59
|
]),
|
|
60
|
-
count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(
|
|
60
|
+
count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
61
61
|
}).annotate({ identifier: "CampaignRunReportSkippedReason" }))();
|
|
62
62
|
const CampaignPreview = /* @__PURE__ */ (() => Schema.Struct({
|
|
63
63
|
subject: Schema.String,
|
|
@@ -68,13 +68,14 @@ const CampaignPreview = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
68
68
|
const CampaignTestSend = /* @__PURE__ */ (() => Schema.Struct({ id: MessageId }).annotate({ identifier: "CampaignTestSend" }))();
|
|
69
69
|
const CampaignRunReportTopicUnsubscribes = /* @__PURE__ */ (() => Schema.Struct({
|
|
70
70
|
topicId: TopicId,
|
|
71
|
-
count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(
|
|
71
|
+
count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
|
|
72
72
|
}).annotate({ identifier: "CampaignRunReportTopicUnsubscribes" }))();
|
|
73
73
|
const CampaignRecipientPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
74
74
|
items: Schema.Array(Schema.Struct({
|
|
75
75
|
id: CampaignRecipientId,
|
|
76
76
|
runId: CampaignRunId,
|
|
77
77
|
contactId: ContactId,
|
|
78
|
+
contact: Schema.Union([ContactReferenceSummary, Schema.Null]),
|
|
78
79
|
status: Schema.Union([
|
|
79
80
|
Schema.Literal("pending"),
|
|
80
81
|
Schema.Literal("dispatching"),
|
|
@@ -106,17 +107,17 @@ const CampaignRecipientPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
106
107
|
const CampaignRunReport = /* @__PURE__ */ (() => Schema.Struct({
|
|
107
108
|
campaignId: CampaignId,
|
|
108
109
|
runId: CampaignRunId,
|
|
109
|
-
totalRecipients: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(
|
|
110
|
-
dispatchedCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(
|
|
111
|
-
failedCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(
|
|
112
|
-
skippedCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(
|
|
113
|
-
deliveredCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(
|
|
114
|
-
hardBounceCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(
|
|
115
|
-
softBounceCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(
|
|
116
|
-
complaintCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(
|
|
110
|
+
totalRecipients: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
111
|
+
dispatchedCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
112
|
+
failedCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
113
|
+
skippedCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
114
|
+
deliveredCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
115
|
+
hardBounceCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
116
|
+
softBounceCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
117
|
+
complaintCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
117
118
|
engagement: CampaignRunReportEngagement,
|
|
118
119
|
unsubscribesByTopic: Schema.Array(CampaignRunReportTopicUnsubscribes),
|
|
119
|
-
replyCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(
|
|
120
|
+
replyCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
|
|
120
121
|
skippedReasons: Schema.Array(CampaignRunReportSkippedReason)
|
|
121
122
|
}).annotate({ identifier: "CampaignRunReport" }))();
|
|
122
123
|
const SmsCampaignContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, ContactEvent, ContactId, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
2
1
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
2
|
import * as Schema from "effect/Schema";
|
|
3
|
+
import { ApiKeySecurityMiddleware, ContactEvent, ContactId, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
4
|
// src/effect/generated/contact-events.ts
|
|
5
5
|
const ContactEventPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
6
6
|
items: Schema.Array(ContactEvent),
|