samva 0.35.0 → 0.37.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 +17 -0
- package/README.md +1 -0
- package/dist/client/sdk.gen.d.ts +102 -82
- package/dist/client/sdk.gen.js +322 -244
- package/dist/client/types.gen.d.ts +600 -378
- package/dist/effect/agents.d.ts +194 -4
- package/dist/effect/agents.js +3 -1
- package/dist/effect/analytics.d.ts +6 -0
- package/dist/effect/api-keys.d.ts +3 -6
- package/dist/effect/campaigns.d.ts +216 -216
- package/dist/effect/conversations.d.ts +6 -0
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +53 -1
- package/dist/effect/generated/agents.d.ts +1803 -81
- package/dist/effect/generated/agents.js +92 -26
- package/dist/effect/generated/analytics.d.ts +19 -1
- package/dist/effect/generated/analytics.js +8 -2
- package/dist/effect/generated/api-keys.d.ts +4 -29
- package/dist/effect/generated/api-keys.js +5 -6
- package/dist/effect/generated/campaigns.d.ts +22 -0
- package/dist/effect/generated/campaigns.js +3 -1
- package/dist/effect/generated/conversations.d.ts +104 -3
- package/dist/effect/generated/conversations.js +12 -2
- package/dist/effect/generated/extension-installations.d.ts +845 -68
- package/dist/effect/generated/extension-installations.js +22 -26
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/mailboxes.d.ts +3423 -1446
- package/dist/effect/generated/mailboxes.js +226 -220
- package/dist/effect/generated/namespaces.d.ts +7 -31
- package/dist/effect/generated/namespaces.js +4 -4
- package/dist/effect/generated/policies.d.ts +953 -0
- package/dist/effect/generated/policies.js +116 -0
- package/dist/effect/generated/scheduled-messages.d.ts +45 -4
- package/dist/effect/generated/scheduled-messages.js +8 -3
- package/dist/effect/generated/shared.d.ts +893 -224
- package/dist/effect/generated/shared.js +194 -60
- package/dist/effect/generated/templates.d.ts +474 -668
- package/dist/effect/generated/templates.js +65 -45
- package/dist/effect/generated/webhooks.d.ts +22 -19
- package/dist/effect/generated/webhooks.js +10 -1
- package/dist/effect/generated/whoami.d.ts +0 -4
- package/dist/effect/generated-metadata.d.ts +36 -32
- package/dist/effect/generated-metadata.js +127 -105
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/operation.js +5 -32
- package/dist/effect/journeys.d.ts +146 -146
- package/dist/effect/mailboxes.d.ts +575 -129
- package/dist/effect/mailboxes.js +1 -11
- package/dist/effect/policies.d.ts +65 -0
- package/dist/effect/policies.js +16 -0
- package/dist/effect/scheduled-messages.d.ts +6 -0
- package/dist/effect/templates.d.ts +6 -8
- package/dist/effect/templates.js +5 -3
- package/dist/effect/topics.d.ts +2 -2
- package/dist/effect/webhooks.d.ts +7 -4
- package/dist/index.js +2 -2
- package/dist/mailbox/test.js +11 -4
- package/dist/mailbox/types.d.ts +39 -3
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +3 -1
- package/dist/promises/client.js +5 -3
- package/dist/promises/errors.gen.d.ts +18 -2
- package/dist/promises/errors.gen.js +335 -33
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +30 -28
- package/dist/service-map.js +219 -786
- package/package.json +6 -2
|
@@ -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, BrandAssets, BrandFooter, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, NamespaceId, OrganizationId, RenderLocale, RenderTimeZone, ResourceNotFoundError, ServiceUnavailableError, SuccessResponse, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateSourceError, TemplateTrackingDefault, UnauthorizedError, UserId, ValidationError } from "./shared";
|
|
4
|
+
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, NamespaceId, OrganizationId, RenderLocale, RenderTimeZone, ResourceNotFoundError, ServiceUnavailableError, SuccessResponse, TemplateFromDefault, TemplateId, TemplateInUseError, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateSourceError, TemplateTrackingDefault, UnauthorizedError, UserId, ValidationError } from "./shared";
|
|
5
5
|
export type TemplatePublicationBrand = {
|
|
6
6
|
readonly slug: string;
|
|
7
7
|
readonly digest: string;
|
|
@@ -112,7 +112,6 @@ export type TemplateFamilyMember = {
|
|
|
112
112
|
readonly slug: string;
|
|
113
113
|
readonly channel: "sms" | "whatsapp" | "email";
|
|
114
114
|
readonly status: "draft" | "pending" | "approved" | "published" | "rejected" | "archived";
|
|
115
|
-
readonly isActive: boolean;
|
|
116
115
|
readonly createdAt: string;
|
|
117
116
|
readonly updatedAt: string;
|
|
118
117
|
};
|
|
@@ -122,7 +121,6 @@ export declare const TemplateFamilyMember: Schema.Struct<{
|
|
|
122
121
|
readonly slug: Schema.String;
|
|
123
122
|
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
124
123
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
125
|
-
readonly isActive: Schema.Boolean;
|
|
126
124
|
readonly createdAt: Schema.String;
|
|
127
125
|
readonly updatedAt: Schema.String;
|
|
128
126
|
}>;
|
|
@@ -136,7 +134,6 @@ export type TemplateSummary = {
|
|
|
136
134
|
readonly shared: boolean;
|
|
137
135
|
readonly entryPath: string;
|
|
138
136
|
readonly status: "draft" | "pending" | "approved" | "published" | "rejected" | "archived";
|
|
139
|
-
readonly isActive: boolean;
|
|
140
137
|
readonly publishedAt: string | null;
|
|
141
138
|
readonly brand: TemplatePublicationBrand | null;
|
|
142
139
|
readonly fromDefault: TemplateFromDefault | null;
|
|
@@ -155,7 +152,6 @@ export declare const TemplateSummary: Schema.Struct<{
|
|
|
155
152
|
readonly shared: Schema.Boolean;
|
|
156
153
|
readonly entryPath: Schema.String;
|
|
157
154
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
158
|
-
readonly isActive: Schema.Boolean;
|
|
159
155
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
160
156
|
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
161
157
|
readonly slug: Schema.String;
|
|
@@ -248,7 +244,6 @@ export declare const TemplateFamily: Schema.Struct<{
|
|
|
248
244
|
readonly slug: Schema.String;
|
|
249
245
|
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
250
246
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
251
|
-
readonly isActive: Schema.Boolean;
|
|
252
247
|
readonly createdAt: Schema.String;
|
|
253
248
|
readonly updatedAt: Schema.String;
|
|
254
249
|
}>>;
|
|
@@ -270,7 +265,6 @@ export declare const TemplatePage: Schema.Struct<{
|
|
|
270
265
|
readonly shared: Schema.Boolean;
|
|
271
266
|
readonly entryPath: Schema.String;
|
|
272
267
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
273
|
-
readonly isActive: Schema.Boolean;
|
|
274
268
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
275
269
|
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
276
270
|
readonly slug: Schema.String;
|
|
@@ -298,7 +292,6 @@ export type Template = {
|
|
|
298
292
|
readonly shared: boolean;
|
|
299
293
|
readonly entryPath: string;
|
|
300
294
|
readonly status: "draft" | "pending" | "approved" | "published" | "rejected" | "archived";
|
|
301
|
-
readonly isActive: boolean;
|
|
302
295
|
readonly publishedAt: string | null;
|
|
303
296
|
readonly brand: TemplatePublicationBrand | null;
|
|
304
297
|
readonly fromDefault: TemplateFromDefault | null;
|
|
@@ -346,7 +339,6 @@ export declare const Template: Schema.Struct<{
|
|
|
346
339
|
readonly shared: Schema.Boolean;
|
|
347
340
|
readonly entryPath: Schema.String;
|
|
348
341
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
349
|
-
readonly isActive: Schema.Boolean;
|
|
350
342
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
351
343
|
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
352
344
|
readonly slug: Schema.String;
|
|
@@ -444,7 +436,6 @@ export declare const TemplateFamilyPage: Schema.Struct<{
|
|
|
444
436
|
readonly slug: Schema.String;
|
|
445
437
|
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
446
438
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
447
|
-
readonly isActive: Schema.Boolean;
|
|
448
439
|
readonly createdAt: Schema.String;
|
|
449
440
|
readonly updatedAt: Schema.String;
|
|
450
441
|
}>>;
|
|
@@ -472,7 +463,6 @@ export declare const TemplateFromWebsite: Schema.Struct<{
|
|
|
472
463
|
readonly shared: Schema.Boolean;
|
|
473
464
|
readonly entryPath: Schema.String;
|
|
474
465
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
475
|
-
readonly isActive: Schema.Boolean;
|
|
476
466
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
477
467
|
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
478
468
|
readonly slug: Schema.String;
|
|
@@ -596,7 +586,6 @@ export declare const TemplatesList200: Schema.Struct<{
|
|
|
596
586
|
readonly shared: Schema.Boolean;
|
|
597
587
|
readonly entryPath: Schema.String;
|
|
598
588
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
599
|
-
readonly isActive: Schema.Boolean;
|
|
600
589
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
601
590
|
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
602
591
|
readonly slug: Schema.String;
|
|
@@ -640,7 +629,6 @@ export type TemplatesCreateRequestJson = {
|
|
|
640
629
|
readonly useBrand?: boolean | null;
|
|
641
630
|
readonly description?: string | null;
|
|
642
631
|
readonly category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
643
|
-
readonly isActive?: boolean | null;
|
|
644
632
|
readonly namespaceId?: NamespaceId | null;
|
|
645
633
|
readonly shared?: boolean | null;
|
|
646
634
|
};
|
|
@@ -652,7 +640,6 @@ export declare const TemplatesCreateRequestJson: Schema.Struct<{
|
|
|
652
640
|
readonly useBrand: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
653
641
|
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
654
642
|
readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"transactional">, Schema.Literal<"marketing">, Schema.Literal<"support">, Schema.Literal<"notification">, Schema.Literal<"verification">, Schema.Literal<"reminder">, Schema.Literal<"alert">]>, Schema.Null]>>;
|
|
655
|
-
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
656
643
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
657
644
|
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
658
645
|
}>;
|
|
@@ -667,7 +654,6 @@ export declare const TemplatesCreate201: Schema.Struct<{
|
|
|
667
654
|
readonly shared: Schema.Boolean;
|
|
668
655
|
readonly entryPath: Schema.String;
|
|
669
656
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
670
|
-
readonly isActive: Schema.Boolean;
|
|
671
657
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
672
658
|
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
673
659
|
readonly slug: Schema.String;
|
|
@@ -759,8 +745,8 @@ export type TemplatesCreate403 = ForbiddenError;
|
|
|
759
745
|
export declare const TemplatesCreate403: typeof ForbiddenError;
|
|
760
746
|
export type TemplatesCreate404 = ResourceNotFoundError;
|
|
761
747
|
export declare const TemplatesCreate404: typeof ResourceNotFoundError;
|
|
762
|
-
export type TemplatesCreate409 = ConflictError;
|
|
763
|
-
export declare const TemplatesCreate409: typeof ConflictError
|
|
748
|
+
export type TemplatesCreate409 = ConflictError | TemplateInUseError;
|
|
749
|
+
export declare const TemplatesCreate409: Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]>;
|
|
764
750
|
export type TemplatesCreate422 = TemplateSourceError | ValidationError;
|
|
765
751
|
export declare const TemplatesCreate422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
766
752
|
export type TemplatesCreate500 = InternalError;
|
|
@@ -786,7 +772,6 @@ export declare const TemplatesGetById200: Schema.Struct<{
|
|
|
786
772
|
readonly shared: Schema.Boolean;
|
|
787
773
|
readonly entryPath: Schema.String;
|
|
788
774
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
789
|
-
readonly isActive: Schema.Boolean;
|
|
790
775
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
791
776
|
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
792
777
|
readonly slug: Schema.String;
|
|
@@ -884,30 +869,32 @@ export type TemplatesGetById500 = InternalError;
|
|
|
884
869
|
export declare const TemplatesGetById500: typeof InternalError;
|
|
885
870
|
export type TemplatesGetById504 = GatewayTimeoutError;
|
|
886
871
|
export declare const TemplatesGetById504: typeof GatewayTimeoutError;
|
|
887
|
-
export type
|
|
872
|
+
export type TemplatesDeletePathParams = {
|
|
888
873
|
readonly id: TemplateId;
|
|
889
874
|
};
|
|
890
|
-
export declare const
|
|
875
|
+
export declare const TemplatesDeletePathParams: Schema.Struct<{
|
|
891
876
|
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
892
877
|
}>;
|
|
893
|
-
export type
|
|
894
|
-
export declare const
|
|
878
|
+
export type TemplatesDelete200 = SuccessResponse;
|
|
879
|
+
export declare const TemplatesDelete200: Schema.Struct<{
|
|
895
880
|
readonly success: Schema.Boolean;
|
|
896
881
|
}>;
|
|
897
|
-
export type
|
|
898
|
-
export declare const
|
|
899
|
-
export type
|
|
900
|
-
export declare const
|
|
901
|
-
export type
|
|
902
|
-
export declare const
|
|
903
|
-
export type
|
|
904
|
-
export declare const
|
|
905
|
-
export type
|
|
906
|
-
export declare const
|
|
907
|
-
export type
|
|
908
|
-
export declare const
|
|
909
|
-
export type
|
|
910
|
-
export declare const
|
|
882
|
+
export type TemplatesDelete400 = MalformedRequestError;
|
|
883
|
+
export declare const TemplatesDelete400: typeof MalformedRequestError;
|
|
884
|
+
export type TemplatesDelete401 = UnauthorizedError;
|
|
885
|
+
export declare const TemplatesDelete401: typeof UnauthorizedError;
|
|
886
|
+
export type TemplatesDelete403 = ForbiddenError;
|
|
887
|
+
export declare const TemplatesDelete403: typeof ForbiddenError;
|
|
888
|
+
export type TemplatesDelete404 = ResourceNotFoundError;
|
|
889
|
+
export declare const TemplatesDelete404: typeof ResourceNotFoundError;
|
|
890
|
+
export type TemplatesDelete409 = TemplateInUseError;
|
|
891
|
+
export declare const TemplatesDelete409: typeof TemplateInUseError;
|
|
892
|
+
export type TemplatesDelete422 = ValidationError;
|
|
893
|
+
export declare const TemplatesDelete422: typeof ValidationError;
|
|
894
|
+
export type TemplatesDelete500 = InternalError;
|
|
895
|
+
export declare const TemplatesDelete500: typeof InternalError;
|
|
896
|
+
export type TemplatesDelete504 = GatewayTimeoutError;
|
|
897
|
+
export declare const TemplatesDelete504: typeof GatewayTimeoutError;
|
|
911
898
|
export type TemplatesUpdatePathParams = {
|
|
912
899
|
readonly id: TemplateId;
|
|
913
900
|
};
|
|
@@ -924,7 +911,6 @@ export type TemplatesUpdateRequestJson = {
|
|
|
924
911
|
readonly fromDefault?: TemplateFromDefault | null;
|
|
925
912
|
readonly replyToDefault?: ReadonlyArray<string> | null;
|
|
926
913
|
readonly trackingDefault?: TemplateTrackingDefault | null;
|
|
927
|
-
readonly isActive?: boolean | null;
|
|
928
914
|
readonly shared?: boolean | null;
|
|
929
915
|
};
|
|
930
916
|
};
|
|
@@ -944,7 +930,6 @@ export declare const TemplatesUpdateRequestJson: Schema.Struct<{
|
|
|
944
930
|
readonly opens: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
945
931
|
readonly clicks: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
946
932
|
}>, Schema.Null]>>;
|
|
947
|
-
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
948
933
|
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
949
934
|
}>;
|
|
950
935
|
}>;
|
|
@@ -959,7 +944,6 @@ export declare const TemplatesUpdate200: Schema.Struct<{
|
|
|
959
944
|
readonly shared: Schema.Boolean;
|
|
960
945
|
readonly entryPath: Schema.String;
|
|
961
946
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
962
|
-
readonly isActive: Schema.Boolean;
|
|
963
947
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
964
948
|
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
965
949
|
readonly slug: Schema.String;
|
|
@@ -1417,8 +1401,8 @@ export type TemplatesPublish403 = ForbiddenError;
|
|
|
1417
1401
|
export declare const TemplatesPublish403: typeof ForbiddenError;
|
|
1418
1402
|
export type TemplatesPublish404 = ResourceNotFoundError;
|
|
1419
1403
|
export declare const TemplatesPublish404: typeof ResourceNotFoundError;
|
|
1420
|
-
export type TemplatesPublish409 = ConflictError;
|
|
1421
|
-
export declare const TemplatesPublish409: typeof ConflictError
|
|
1404
|
+
export type TemplatesPublish409 = ConflictError | TemplateInUseError;
|
|
1405
|
+
export declare const TemplatesPublish409: Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]>;
|
|
1422
1406
|
export type TemplatesPublish422 = TemplateSourceError | ValidationError;
|
|
1423
1407
|
export declare const TemplatesPublish422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
1424
1408
|
export type TemplatesPublish500 = InternalError;
|
|
@@ -1761,8 +1745,8 @@ export type TemplatesGetGitRepository403 = ForbiddenError;
|
|
|
1761
1745
|
export declare const TemplatesGetGitRepository403: typeof ForbiddenError;
|
|
1762
1746
|
export type TemplatesGetGitRepository404 = ResourceNotFoundError;
|
|
1763
1747
|
export declare const TemplatesGetGitRepository404: typeof ResourceNotFoundError;
|
|
1764
|
-
export type TemplatesGetGitRepository409 = ConflictError;
|
|
1765
|
-
export declare const TemplatesGetGitRepository409: typeof ConflictError
|
|
1748
|
+
export type TemplatesGetGitRepository409 = ConflictError | TemplateInUseError;
|
|
1749
|
+
export declare const TemplatesGetGitRepository409: Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]>;
|
|
1766
1750
|
export type TemplatesGetGitRepository422 = TemplateSourceError | ValidationError;
|
|
1767
1751
|
export declare const TemplatesGetGitRepository422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
1768
1752
|
export type TemplatesGetGitRepository500 = InternalError;
|
|
@@ -1803,8 +1787,8 @@ export type TemplatesIssueGitCredential403 = ForbiddenError;
|
|
|
1803
1787
|
export declare const TemplatesIssueGitCredential403: typeof ForbiddenError;
|
|
1804
1788
|
export type TemplatesIssueGitCredential404 = ResourceNotFoundError;
|
|
1805
1789
|
export declare const TemplatesIssueGitCredential404: typeof ResourceNotFoundError;
|
|
1806
|
-
export type TemplatesIssueGitCredential409 = ConflictError;
|
|
1807
|
-
export declare const TemplatesIssueGitCredential409: typeof ConflictError
|
|
1790
|
+
export type TemplatesIssueGitCredential409 = ConflictError | TemplateInUseError;
|
|
1791
|
+
export declare const TemplatesIssueGitCredential409: Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]>;
|
|
1808
1792
|
export type TemplatesIssueGitCredential422 = TemplateSourceError | ValidationError;
|
|
1809
1793
|
export declare const TemplatesIssueGitCredential422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
1810
1794
|
export type TemplatesIssueGitCredential500 = InternalError;
|
|
@@ -1985,8 +1969,8 @@ export type TemplatesOpenWorkspace403 = ForbiddenError;
|
|
|
1985
1969
|
export declare const TemplatesOpenWorkspace403: typeof ForbiddenError;
|
|
1986
1970
|
export type TemplatesOpenWorkspace404 = ResourceNotFoundError;
|
|
1987
1971
|
export declare const TemplatesOpenWorkspace404: typeof ResourceNotFoundError;
|
|
1988
|
-
export type TemplatesOpenWorkspace409 = ConflictError;
|
|
1989
|
-
export declare const TemplatesOpenWorkspace409: typeof ConflictError
|
|
1972
|
+
export type TemplatesOpenWorkspace409 = ConflictError | TemplateInUseError;
|
|
1973
|
+
export declare const TemplatesOpenWorkspace409: Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]>;
|
|
1990
1974
|
export type TemplatesOpenWorkspace422 = TemplateSourceError | ValidationError;
|
|
1991
1975
|
export declare const TemplatesOpenWorkspace422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
1992
1976
|
export type TemplatesOpenWorkspace500 = InternalError;
|
|
@@ -2187,8 +2171,8 @@ export type TemplatesPatchWorkspace403 = ForbiddenError;
|
|
|
2187
2171
|
export declare const TemplatesPatchWorkspace403: typeof ForbiddenError;
|
|
2188
2172
|
export type TemplatesPatchWorkspace404 = ResourceNotFoundError;
|
|
2189
2173
|
export declare const TemplatesPatchWorkspace404: typeof ResourceNotFoundError;
|
|
2190
|
-
export type TemplatesPatchWorkspace409 = ConflictError;
|
|
2191
|
-
export declare const TemplatesPatchWorkspace409: typeof ConflictError
|
|
2174
|
+
export type TemplatesPatchWorkspace409 = ConflictError | TemplateInUseError;
|
|
2175
|
+
export declare const TemplatesPatchWorkspace409: Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]>;
|
|
2192
2176
|
export type TemplatesPatchWorkspace422 = TemplateSourceError | ValidationError;
|
|
2193
2177
|
export declare const TemplatesPatchWorkspace422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
2194
2178
|
export type TemplatesPatchWorkspace500 = InternalError;
|
|
@@ -2387,8 +2371,8 @@ export type TemplatesPutWorkspaceAsset403 = ForbiddenError;
|
|
|
2387
2371
|
export declare const TemplatesPutWorkspaceAsset403: typeof ForbiddenError;
|
|
2388
2372
|
export type TemplatesPutWorkspaceAsset404 = ResourceNotFoundError;
|
|
2389
2373
|
export declare const TemplatesPutWorkspaceAsset404: typeof ResourceNotFoundError;
|
|
2390
|
-
export type TemplatesPutWorkspaceAsset409 = ConflictError;
|
|
2391
|
-
export declare const TemplatesPutWorkspaceAsset409: typeof ConflictError
|
|
2374
|
+
export type TemplatesPutWorkspaceAsset409 = ConflictError | TemplateInUseError;
|
|
2375
|
+
export declare const TemplatesPutWorkspaceAsset409: Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]>;
|
|
2392
2376
|
export type TemplatesPutWorkspaceAsset422 = TemplateSourceError | ValidationError;
|
|
2393
2377
|
export declare const TemplatesPutWorkspaceAsset422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
2394
2378
|
export type TemplatesPutWorkspaceAsset500 = InternalError;
|
|
@@ -2577,8 +2561,8 @@ export type TemplatesCheckWorkspace403 = ForbiddenError;
|
|
|
2577
2561
|
export declare const TemplatesCheckWorkspace403: typeof ForbiddenError;
|
|
2578
2562
|
export type TemplatesCheckWorkspace404 = ResourceNotFoundError;
|
|
2579
2563
|
export declare const TemplatesCheckWorkspace404: typeof ResourceNotFoundError;
|
|
2580
|
-
export type TemplatesCheckWorkspace409 = ConflictError;
|
|
2581
|
-
export declare const TemplatesCheckWorkspace409: typeof ConflictError
|
|
2564
|
+
export type TemplatesCheckWorkspace409 = ConflictError | TemplateInUseError;
|
|
2565
|
+
export declare const TemplatesCheckWorkspace409: Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]>;
|
|
2582
2566
|
export type TemplatesCheckWorkspace422 = TemplateSourceError | ValidationError;
|
|
2583
2567
|
export declare const TemplatesCheckWorkspace422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
2584
2568
|
export type TemplatesCheckWorkspace500 = InternalError;
|
|
@@ -2779,8 +2763,8 @@ export type TemplatesResolveWorkspaceConflict403 = ForbiddenError;
|
|
|
2779
2763
|
export declare const TemplatesResolveWorkspaceConflict403: typeof ForbiddenError;
|
|
2780
2764
|
export type TemplatesResolveWorkspaceConflict404 = ResourceNotFoundError;
|
|
2781
2765
|
export declare const TemplatesResolveWorkspaceConflict404: typeof ResourceNotFoundError;
|
|
2782
|
-
export type TemplatesResolveWorkspaceConflict409 = ConflictError;
|
|
2783
|
-
export declare const TemplatesResolveWorkspaceConflict409: typeof ConflictError
|
|
2766
|
+
export type TemplatesResolveWorkspaceConflict409 = ConflictError | TemplateInUseError;
|
|
2767
|
+
export declare const TemplatesResolveWorkspaceConflict409: Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]>;
|
|
2784
2768
|
export type TemplatesResolveWorkspaceConflict422 = TemplateSourceError | ValidationError;
|
|
2785
2769
|
export declare const TemplatesResolveWorkspaceConflict422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
2786
2770
|
export type TemplatesResolveWorkspaceConflict500 = InternalError;
|
|
@@ -2841,8 +2825,8 @@ export type TemplatesDiffWorkspace403 = ForbiddenError;
|
|
|
2841
2825
|
export declare const TemplatesDiffWorkspace403: typeof ForbiddenError;
|
|
2842
2826
|
export type TemplatesDiffWorkspace404 = ResourceNotFoundError;
|
|
2843
2827
|
export declare const TemplatesDiffWorkspace404: typeof ResourceNotFoundError;
|
|
2844
|
-
export type TemplatesDiffWorkspace409 = ConflictError;
|
|
2845
|
-
export declare const TemplatesDiffWorkspace409: typeof ConflictError
|
|
2828
|
+
export type TemplatesDiffWorkspace409 = ConflictError | TemplateInUseError;
|
|
2829
|
+
export declare const TemplatesDiffWorkspace409: Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]>;
|
|
2846
2830
|
export type TemplatesDiffWorkspace422 = TemplateSourceError | ValidationError;
|
|
2847
2831
|
export declare const TemplatesDiffWorkspace422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
2848
2832
|
export type TemplatesDiffWorkspace500 = InternalError;
|
|
@@ -3181,8 +3165,8 @@ export type TemplatesRenderWorkspaceFixture403 = ForbiddenError;
|
|
|
3181
3165
|
export declare const TemplatesRenderWorkspaceFixture403: typeof ForbiddenError;
|
|
3182
3166
|
export type TemplatesRenderWorkspaceFixture404 = ResourceNotFoundError;
|
|
3183
3167
|
export declare const TemplatesRenderWorkspaceFixture404: typeof ResourceNotFoundError;
|
|
3184
|
-
export type TemplatesRenderWorkspaceFixture409 = ConflictError;
|
|
3185
|
-
export declare const TemplatesRenderWorkspaceFixture409: typeof ConflictError
|
|
3168
|
+
export type TemplatesRenderWorkspaceFixture409 = ConflictError | TemplateInUseError;
|
|
3169
|
+
export declare const TemplatesRenderWorkspaceFixture409: Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]>;
|
|
3186
3170
|
export type TemplatesRenderWorkspaceFixture422 = TemplateSourceError | ValidationError;
|
|
3187
3171
|
export declare const TemplatesRenderWorkspaceFixture422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
3188
3172
|
export type TemplatesRenderWorkspaceFixture500 = InternalError;
|
|
@@ -3241,8 +3225,8 @@ export type TemplatesWorkspaceHistory403 = ForbiddenError;
|
|
|
3241
3225
|
export declare const TemplatesWorkspaceHistory403: typeof ForbiddenError;
|
|
3242
3226
|
export type TemplatesWorkspaceHistory404 = ResourceNotFoundError;
|
|
3243
3227
|
export declare const TemplatesWorkspaceHistory404: typeof ResourceNotFoundError;
|
|
3244
|
-
export type TemplatesWorkspaceHistory409 = ConflictError;
|
|
3245
|
-
export declare const TemplatesWorkspaceHistory409: typeof ConflictError
|
|
3228
|
+
export type TemplatesWorkspaceHistory409 = ConflictError | TemplateInUseError;
|
|
3229
|
+
export declare const TemplatesWorkspaceHistory409: Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]>;
|
|
3246
3230
|
export type TemplatesWorkspaceHistory422 = TemplateSourceError | ValidationError;
|
|
3247
3231
|
export declare const TemplatesWorkspaceHistory422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
3248
3232
|
export type TemplatesWorkspaceHistory500 = InternalError;
|
|
@@ -3445,8 +3429,8 @@ export type TemplatesAttachWorkspaceResource403 = ForbiddenError;
|
|
|
3445
3429
|
export declare const TemplatesAttachWorkspaceResource403: typeof ForbiddenError;
|
|
3446
3430
|
export type TemplatesAttachWorkspaceResource404 = ResourceNotFoundError;
|
|
3447
3431
|
export declare const TemplatesAttachWorkspaceResource404: typeof ResourceNotFoundError;
|
|
3448
|
-
export type TemplatesAttachWorkspaceResource409 = ConflictError;
|
|
3449
|
-
export declare const TemplatesAttachWorkspaceResource409: typeof ConflictError
|
|
3432
|
+
export type TemplatesAttachWorkspaceResource409 = ConflictError | TemplateInUseError;
|
|
3433
|
+
export declare const TemplatesAttachWorkspaceResource409: Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]>;
|
|
3450
3434
|
export type TemplatesAttachWorkspaceResource422 = TemplateSourceError | ValidationError;
|
|
3451
3435
|
export declare const TemplatesAttachWorkspaceResource422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
3452
3436
|
export type TemplatesAttachWorkspaceResource500 = InternalError;
|
|
@@ -3633,8 +3617,8 @@ export type TemplatesRemoveWorkspaceResource403 = ForbiddenError;
|
|
|
3633
3617
|
export declare const TemplatesRemoveWorkspaceResource403: typeof ForbiddenError;
|
|
3634
3618
|
export type TemplatesRemoveWorkspaceResource404 = ResourceNotFoundError;
|
|
3635
3619
|
export declare const TemplatesRemoveWorkspaceResource404: typeof ResourceNotFoundError;
|
|
3636
|
-
export type TemplatesRemoveWorkspaceResource409 = ConflictError;
|
|
3637
|
-
export declare const TemplatesRemoveWorkspaceResource409: typeof ConflictError
|
|
3620
|
+
export type TemplatesRemoveWorkspaceResource409 = ConflictError | TemplateInUseError;
|
|
3621
|
+
export declare const TemplatesRemoveWorkspaceResource409: Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]>;
|
|
3638
3622
|
export type TemplatesRemoveWorkspaceResource422 = TemplateSourceError | ValidationError;
|
|
3639
3623
|
export declare const TemplatesRemoveWorkspaceResource422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
3640
3624
|
export type TemplatesRemoveWorkspaceResource500 = InternalError;
|
|
@@ -3841,8 +3825,8 @@ export type TemplatesRestoreWorkspace403 = ForbiddenError;
|
|
|
3841
3825
|
export declare const TemplatesRestoreWorkspace403: typeof ForbiddenError;
|
|
3842
3826
|
export type TemplatesRestoreWorkspace404 = ResourceNotFoundError;
|
|
3843
3827
|
export declare const TemplatesRestoreWorkspace404: typeof ResourceNotFoundError;
|
|
3844
|
-
export type TemplatesRestoreWorkspace409 = ConflictError;
|
|
3845
|
-
export declare const TemplatesRestoreWorkspace409: typeof ConflictError
|
|
3828
|
+
export type TemplatesRestoreWorkspace409 = ConflictError | TemplateInUseError;
|
|
3829
|
+
export declare const TemplatesRestoreWorkspace409: Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]>;
|
|
3846
3830
|
export type TemplatesRestoreWorkspace422 = TemplateSourceError | ValidationError;
|
|
3847
3831
|
export declare const TemplatesRestoreWorkspace422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
3848
3832
|
export type TemplatesRestoreWorkspace500 = InternalError;
|
|
@@ -3991,8 +3975,8 @@ export type TemplatesSaveWorkspace403 = ForbiddenError;
|
|
|
3991
3975
|
export declare const TemplatesSaveWorkspace403: typeof ForbiddenError;
|
|
3992
3976
|
export type TemplatesSaveWorkspace404 = ResourceNotFoundError;
|
|
3993
3977
|
export declare const TemplatesSaveWorkspace404: typeof ResourceNotFoundError;
|
|
3994
|
-
export type TemplatesSaveWorkspace409 = ConflictError;
|
|
3995
|
-
export declare const TemplatesSaveWorkspace409: typeof ConflictError
|
|
3978
|
+
export type TemplatesSaveWorkspace409 = ConflictError | TemplateInUseError;
|
|
3979
|
+
export declare const TemplatesSaveWorkspace409: Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]>;
|
|
3996
3980
|
export type TemplatesSaveWorkspace422 = TemplateSourceError | ValidationError;
|
|
3997
3981
|
export declare const TemplatesSaveWorkspace422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
3998
3982
|
export type TemplatesSaveWorkspace500 = InternalError;
|
|
@@ -4020,7 +4004,6 @@ export declare const TemplatesListFamilies200: Schema.Struct<{
|
|
|
4020
4004
|
readonly slug: Schema.String;
|
|
4021
4005
|
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
4022
4006
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
4023
|
-
readonly isActive: Schema.Boolean;
|
|
4024
4007
|
readonly createdAt: Schema.String;
|
|
4025
4008
|
readonly updatedAt: Schema.String;
|
|
4026
4009
|
}>>;
|
|
@@ -4057,7 +4040,6 @@ export declare const TemplatesCreateFamily201: Schema.Struct<{
|
|
|
4057
4040
|
readonly slug: Schema.String;
|
|
4058
4041
|
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
4059
4042
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
4060
|
-
readonly isActive: Schema.Boolean;
|
|
4061
4043
|
readonly createdAt: Schema.String;
|
|
4062
4044
|
readonly updatedAt: Schema.String;
|
|
4063
4045
|
}>>;
|
|
@@ -4092,7 +4074,6 @@ export declare const TemplatesGetFamily200: Schema.Struct<{
|
|
|
4092
4074
|
readonly slug: Schema.String;
|
|
4093
4075
|
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
4094
4076
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
4095
|
-
readonly isActive: Schema.Boolean;
|
|
4096
4077
|
readonly createdAt: Schema.String;
|
|
4097
4078
|
readonly updatedAt: Schema.String;
|
|
4098
4079
|
}>>;
|
|
@@ -4159,7 +4140,6 @@ export declare const TemplatesRenameFamily200: Schema.Struct<{
|
|
|
4159
4140
|
readonly slug: Schema.String;
|
|
4160
4141
|
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
4161
4142
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
4162
|
-
readonly isActive: Schema.Boolean;
|
|
4163
4143
|
readonly createdAt: Schema.String;
|
|
4164
4144
|
readonly updatedAt: Schema.String;
|
|
4165
4145
|
}>>;
|
|
@@ -4198,7 +4178,6 @@ export declare const TemplatesAttachFamilyMember200: Schema.Struct<{
|
|
|
4198
4178
|
readonly slug: Schema.String;
|
|
4199
4179
|
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
4200
4180
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
4201
|
-
readonly isActive: Schema.Boolean;
|
|
4202
4181
|
readonly createdAt: Schema.String;
|
|
4203
4182
|
readonly updatedAt: Schema.String;
|
|
4204
4183
|
}>>;
|
|
@@ -4239,7 +4218,6 @@ export declare const TemplatesDetachFamilyMember200: Schema.Struct<{
|
|
|
4239
4218
|
readonly slug: Schema.String;
|
|
4240
4219
|
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
4241
4220
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
4242
|
-
readonly isActive: Schema.Boolean;
|
|
4243
4221
|
readonly createdAt: Schema.String;
|
|
4244
4222
|
readonly updatedAt: Schema.String;
|
|
4245
4223
|
}>>;
|
|
@@ -4284,7 +4262,6 @@ export declare const TemplatesCreateFamilyFromTemplate201: Schema.Struct<{
|
|
|
4284
4262
|
readonly slug: Schema.String;
|
|
4285
4263
|
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
4286
4264
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
4287
|
-
readonly isActive: Schema.Boolean;
|
|
4288
4265
|
readonly createdAt: Schema.String;
|
|
4289
4266
|
readonly updatedAt: Schema.String;
|
|
4290
4267
|
}>>;
|
|
@@ -4335,7 +4312,6 @@ export declare const TemplatesCreateFromWebsite201: Schema.Struct<{
|
|
|
4335
4312
|
readonly shared: Schema.Boolean;
|
|
4336
4313
|
readonly entryPath: Schema.String;
|
|
4337
4314
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
4338
|
-
readonly isActive: Schema.Boolean;
|
|
4339
4315
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4340
4316
|
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
4341
4317
|
readonly slug: Schema.String;
|
|
@@ -4433,8 +4409,8 @@ export type TemplatesCreateFromWebsite403 = ForbiddenError;
|
|
|
4433
4409
|
export declare const TemplatesCreateFromWebsite403: typeof ForbiddenError;
|
|
4434
4410
|
export type TemplatesCreateFromWebsite404 = ResourceNotFoundError;
|
|
4435
4411
|
export declare const TemplatesCreateFromWebsite404: typeof ResourceNotFoundError;
|
|
4436
|
-
export type TemplatesCreateFromWebsite409 = ConflictError;
|
|
4437
|
-
export declare const TemplatesCreateFromWebsite409: typeof ConflictError
|
|
4412
|
+
export type TemplatesCreateFromWebsite409 = ConflictError | TemplateInUseError;
|
|
4413
|
+
export declare const TemplatesCreateFromWebsite409: Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]>;
|
|
4438
4414
|
export type TemplatesCreateFromWebsite422 = TemplateSourceError | ValidationError;
|
|
4439
4415
|
export declare const TemplatesCreateFromWebsite422: Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]>;
|
|
4440
4416
|
export type TemplatesCreateFromWebsite500 = InternalError;
|
|
@@ -4443,6 +4419,32 @@ export type TemplatesCreateFromWebsite503 = ServiceUnavailableError;
|
|
|
4443
4419
|
export declare const TemplatesCreateFromWebsite503: typeof ServiceUnavailableError;
|
|
4444
4420
|
export type TemplatesCreateFromWebsite504 = GatewayTimeoutError;
|
|
4445
4421
|
export declare const TemplatesCreateFromWebsite504: typeof GatewayTimeoutError;
|
|
4422
|
+
export type TemplatesDeleteProjectPathParams = {
|
|
4423
|
+
readonly id: TemplateProjectId;
|
|
4424
|
+
};
|
|
4425
|
+
export declare const TemplatesDeleteProjectPathParams: Schema.Struct<{
|
|
4426
|
+
readonly id: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
4427
|
+
}>;
|
|
4428
|
+
export type TemplatesDeleteProject200 = SuccessResponse;
|
|
4429
|
+
export declare const TemplatesDeleteProject200: Schema.Struct<{
|
|
4430
|
+
readonly success: Schema.Boolean;
|
|
4431
|
+
}>;
|
|
4432
|
+
export type TemplatesDeleteProject400 = MalformedRequestError;
|
|
4433
|
+
export declare const TemplatesDeleteProject400: typeof MalformedRequestError;
|
|
4434
|
+
export type TemplatesDeleteProject401 = UnauthorizedError;
|
|
4435
|
+
export declare const TemplatesDeleteProject401: typeof UnauthorizedError;
|
|
4436
|
+
export type TemplatesDeleteProject403 = ForbiddenError;
|
|
4437
|
+
export declare const TemplatesDeleteProject403: typeof ForbiddenError;
|
|
4438
|
+
export type TemplatesDeleteProject404 = ResourceNotFoundError;
|
|
4439
|
+
export declare const TemplatesDeleteProject404: typeof ResourceNotFoundError;
|
|
4440
|
+
export type TemplatesDeleteProject409 = TemplateInUseError;
|
|
4441
|
+
export declare const TemplatesDeleteProject409: typeof TemplateInUseError;
|
|
4442
|
+
export type TemplatesDeleteProject422 = ValidationError;
|
|
4443
|
+
export declare const TemplatesDeleteProject422: typeof ValidationError;
|
|
4444
|
+
export type TemplatesDeleteProject500 = InternalError;
|
|
4445
|
+
export declare const TemplatesDeleteProject500: typeof InternalError;
|
|
4446
|
+
export type TemplatesDeleteProject504 = GatewayTimeoutError;
|
|
4447
|
+
export declare const TemplatesDeleteProject504: typeof GatewayTimeoutError;
|
|
4446
4448
|
export type TemplatesAddEntryPathParams = {
|
|
4447
4449
|
readonly id: TemplateProjectId;
|
|
4448
4450
|
};
|
|
@@ -4474,7 +4476,6 @@ export declare const TemplatesAddEntry201: Schema.Struct<{
|
|
|
4474
4476
|
readonly shared: Schema.Boolean;
|
|
4475
4477
|
readonly entryPath: Schema.String;
|
|
4476
4478
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
4477
|
-
readonly isActive: Schema.Boolean;
|
|
4478
4479
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4479
4480
|
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
4480
4481
|
readonly slug: Schema.String;
|
|
@@ -4592,7 +4593,6 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
4592
4593
|
readonly shared: Schema.Boolean;
|
|
4593
4594
|
readonly entryPath: Schema.String;
|
|
4594
4595
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
4595
|
-
readonly isActive: Schema.Boolean;
|
|
4596
4596
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4597
4597
|
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
4598
4598
|
readonly slug: Schema.String;
|
|
@@ -4807,7 +4807,6 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
4807
4807
|
readonly slug: Schema.String;
|
|
4808
4808
|
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
4809
4809
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
4810
|
-
readonly isActive: Schema.Boolean;
|
|
4811
4810
|
readonly createdAt: Schema.String;
|
|
4812
4811
|
readonly updatedAt: Schema.String;
|
|
4813
4812
|
}>>;
|
|
@@ -5021,27 +5020,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
5021
5020
|
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
5022
5021
|
readonly via: Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"mcp">, Schema.Literal<"agent">]>;
|
|
5023
5022
|
}>;
|
|
5024
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
5025
|
-
readonly _tag: "ConflictError";
|
|
5026
|
-
readonly message: string;
|
|
5027
|
-
readonly resource: string;
|
|
5028
|
-
readonly id?: string | null;
|
|
5029
|
-
}, readonly [Schema.Struct<{
|
|
5030
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
5031
|
-
readonly message: Schema.String;
|
|
5032
|
-
readonly resource: Schema.String;
|
|
5033
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5034
|
-
}>], {
|
|
5035
|
-
readonly _tag: "ConflictError";
|
|
5036
|
-
readonly message: string;
|
|
5037
|
-
readonly resource: string;
|
|
5038
|
-
readonly id?: string | null;
|
|
5039
|
-
}>, Schema.Struct<{
|
|
5040
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
5041
|
-
readonly message: Schema.String;
|
|
5042
|
-
readonly resource: Schema.String;
|
|
5043
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5044
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
5023
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
5045
5024
|
readonly _tag: "ForbiddenError";
|
|
5046
5025
|
readonly message: string;
|
|
5047
5026
|
}, readonly [Schema.Struct<{
|
|
@@ -5219,27 +5198,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
5219
5198
|
readonly title: Schema.String;
|
|
5220
5199
|
}>, Schema.Null]>>;
|
|
5221
5200
|
}>>;
|
|
5222
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
5223
|
-
readonly _tag: "ConflictError";
|
|
5224
|
-
readonly message: string;
|
|
5225
|
-
readonly resource: string;
|
|
5226
|
-
readonly id?: string | null;
|
|
5227
|
-
}, readonly [Schema.Struct<{
|
|
5228
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
5229
|
-
readonly message: Schema.String;
|
|
5230
|
-
readonly resource: Schema.String;
|
|
5231
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5232
|
-
}>], {
|
|
5233
|
-
readonly _tag: "ConflictError";
|
|
5234
|
-
readonly message: string;
|
|
5235
|
-
readonly resource: string;
|
|
5236
|
-
readonly id?: string | null;
|
|
5237
|
-
}>, Schema.Struct<{
|
|
5238
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
5239
|
-
readonly message: Schema.String;
|
|
5240
|
-
readonly resource: Schema.String;
|
|
5241
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5242
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
5201
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
5243
5202
|
readonly _tag: "ForbiddenError";
|
|
5244
5203
|
readonly message: string;
|
|
5245
5204
|
}, readonly [Schema.Struct<{
|
|
@@ -5343,7 +5302,6 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
5343
5302
|
readonly useBrand: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
5344
5303
|
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5345
5304
|
readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"transactional">, Schema.Literal<"marketing">, Schema.Literal<"support">, Schema.Literal<"notification">, Schema.Literal<"verification">, Schema.Literal<"reminder">, Schema.Literal<"alert">]>, Schema.Null]>>;
|
|
5346
|
-
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
5347
5305
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
5348
5306
|
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
5349
5307
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -5358,7 +5316,6 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
5358
5316
|
readonly shared: Schema.Boolean;
|
|
5359
5317
|
readonly entryPath: Schema.String;
|
|
5360
5318
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
5361
|
-
readonly isActive: Schema.Boolean;
|
|
5362
5319
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5363
5320
|
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
5364
5321
|
readonly slug: Schema.String;
|
|
@@ -5441,27 +5398,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
5441
5398
|
readonly publicationId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplatePublicationId">, Schema.Null]>;
|
|
5442
5399
|
readonly inputContractId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateInputContractId">, Schema.Null]>;
|
|
5443
5400
|
readonly inputSchema: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
5444
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
5445
|
-
readonly _tag: "ConflictError";
|
|
5446
|
-
readonly message: string;
|
|
5447
|
-
readonly resource: string;
|
|
5448
|
-
readonly id?: string | null;
|
|
5449
|
-
}, readonly [Schema.Struct<{
|
|
5450
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
5451
|
-
readonly message: Schema.String;
|
|
5452
|
-
readonly resource: Schema.String;
|
|
5453
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5454
|
-
}>], {
|
|
5455
|
-
readonly _tag: "ConflictError";
|
|
5456
|
-
readonly message: string;
|
|
5457
|
-
readonly resource: string;
|
|
5458
|
-
readonly id?: string | null;
|
|
5459
|
-
}>, Schema.Struct<{
|
|
5460
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
5461
|
-
readonly message: Schema.String;
|
|
5462
|
-
readonly resource: Schema.String;
|
|
5463
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5464
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
5401
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
5465
5402
|
readonly _tag: "ForbiddenError";
|
|
5466
5403
|
readonly message: string;
|
|
5467
5404
|
}, readonly [Schema.Struct<{
|
|
@@ -5568,7 +5505,6 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
5568
5505
|
readonly slug: Schema.String;
|
|
5569
5506
|
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
5570
5507
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
5571
|
-
readonly isActive: Schema.Boolean;
|
|
5572
5508
|
readonly createdAt: Schema.String;
|
|
5573
5509
|
readonly updatedAt: Schema.String;
|
|
5574
5510
|
}>>;
|
|
@@ -5667,7 +5603,6 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
5667
5603
|
readonly slug: Schema.String;
|
|
5668
5604
|
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
5669
5605
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
5670
|
-
readonly isActive: Schema.Boolean;
|
|
5671
5606
|
readonly createdAt: Schema.String;
|
|
5672
5607
|
readonly updatedAt: Schema.String;
|
|
5673
5608
|
}>>;
|
|
@@ -5810,7 +5745,6 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
5810
5745
|
readonly shared: Schema.Boolean;
|
|
5811
5746
|
readonly entryPath: Schema.String;
|
|
5812
5747
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
5813
|
-
readonly isActive: Schema.Boolean;
|
|
5814
5748
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5815
5749
|
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
5816
5750
|
readonly slug: Schema.String;
|
|
@@ -5899,27 +5833,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
5899
5833
|
readonly host: Schema.String;
|
|
5900
5834
|
}>;
|
|
5901
5835
|
readonly ask: Schema.String;
|
|
5902
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
5903
|
-
readonly _tag: "ConflictError";
|
|
5904
|
-
readonly message: string;
|
|
5905
|
-
readonly resource: string;
|
|
5906
|
-
readonly id?: string | null;
|
|
5907
|
-
}, readonly [Schema.Struct<{
|
|
5908
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
5909
|
-
readonly message: Schema.String;
|
|
5910
|
-
readonly resource: Schema.String;
|
|
5911
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5912
|
-
}>], {
|
|
5913
|
-
readonly _tag: "ConflictError";
|
|
5914
|
-
readonly message: string;
|
|
5915
|
-
readonly resource: string;
|
|
5916
|
-
readonly id?: string | null;
|
|
5917
|
-
}>, Schema.Struct<{
|
|
5918
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
5919
|
-
readonly message: Schema.String;
|
|
5920
|
-
readonly resource: Schema.String;
|
|
5921
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5922
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
5836
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
5923
5837
|
readonly _tag: "ForbiddenError";
|
|
5924
5838
|
readonly message: string;
|
|
5925
5839
|
}, readonly [Schema.Struct<{
|
|
@@ -6015,8 +5929,8 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
6015
5929
|
}>, Schema.Struct<{
|
|
6016
5930
|
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
6017
5931
|
readonly message: Schema.String;
|
|
6018
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
6019
|
-
readonly id: Schema.brand<Schema.String, "
|
|
5932
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"templatesDelete", "DELETE", "/v1/templates/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
5933
|
+
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
6020
5934
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
6021
5935
|
readonly success: Schema.Boolean;
|
|
6022
5936
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
@@ -6087,6 +6001,34 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
6087
6001
|
readonly resource: Schema.String;
|
|
6088
6002
|
readonly id: Schema.String;
|
|
6089
6003
|
readonly message: Schema.String;
|
|
6004
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<TemplateInUseError, {
|
|
6005
|
+
readonly _tag: "TemplateInUseError";
|
|
6006
|
+
readonly message: string;
|
|
6007
|
+
readonly references: readonly {
|
|
6008
|
+
readonly kind: string;
|
|
6009
|
+
readonly id: string;
|
|
6010
|
+
}[];
|
|
6011
|
+
}, readonly [Schema.Struct<{
|
|
6012
|
+
readonly _tag: Schema.tag<"TemplateInUseError">;
|
|
6013
|
+
readonly message: Schema.String;
|
|
6014
|
+
readonly references: Schema.$Array<Schema.Struct<{
|
|
6015
|
+
readonly kind: Schema.String;
|
|
6016
|
+
readonly id: Schema.String;
|
|
6017
|
+
}>>;
|
|
6018
|
+
}>], {
|
|
6019
|
+
readonly _tag: "TemplateInUseError";
|
|
6020
|
+
readonly message: string;
|
|
6021
|
+
readonly references: readonly {
|
|
6022
|
+
readonly kind: string;
|
|
6023
|
+
readonly id: string;
|
|
6024
|
+
}[];
|
|
6025
|
+
}>, Schema.Struct<{
|
|
6026
|
+
readonly _tag: Schema.tag<"TemplateInUseError">;
|
|
6027
|
+
readonly message: Schema.String;
|
|
6028
|
+
readonly references: Schema.$Array<Schema.Struct<{
|
|
6029
|
+
readonly kind: Schema.String;
|
|
6030
|
+
readonly id: Schema.String;
|
|
6031
|
+
}>>;
|
|
6090
6032
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
6091
6033
|
readonly _tag: "UnauthorizedError";
|
|
6092
6034
|
readonly message: string;
|
|
@@ -6119,45 +6061,11 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
6119
6061
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
6120
6062
|
readonly message: Schema.String;
|
|
6121
6063
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
6122
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
6064
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"templatesDeleteFamily", "DELETE", "/v1/templates/families/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
6123
6065
|
readonly id: Schema.brand<Schema.String, "TemplateFamilyId">;
|
|
6124
|
-
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
6125
6066
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
6126
|
-
readonly
|
|
6127
|
-
|
|
6128
|
-
readonly members: Schema.$Array<Schema.Struct<{
|
|
6129
|
-
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
6130
|
-
readonly name: Schema.String;
|
|
6131
|
-
readonly slug: Schema.String;
|
|
6132
|
-
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
6133
|
-
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
6134
|
-
readonly isActive: Schema.Boolean;
|
|
6135
|
-
readonly createdAt: Schema.String;
|
|
6136
|
-
readonly updatedAt: Schema.String;
|
|
6137
|
-
}>>;
|
|
6138
|
-
readonly createdAt: Schema.String;
|
|
6139
|
-
readonly updatedAt: Schema.String;
|
|
6140
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
6141
|
-
readonly _tag: "ConflictError";
|
|
6142
|
-
readonly message: string;
|
|
6143
|
-
readonly resource: string;
|
|
6144
|
-
readonly id?: string | null;
|
|
6145
|
-
}, readonly [Schema.Struct<{
|
|
6146
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
6147
|
-
readonly message: Schema.String;
|
|
6148
|
-
readonly resource: Schema.String;
|
|
6149
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6150
|
-
}>], {
|
|
6151
|
-
readonly _tag: "ConflictError";
|
|
6152
|
-
readonly message: string;
|
|
6153
|
-
readonly resource: string;
|
|
6154
|
-
readonly id?: string | null;
|
|
6155
|
-
}>, Schema.Struct<{
|
|
6156
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
6157
|
-
readonly message: Schema.String;
|
|
6158
|
-
readonly resource: Schema.String;
|
|
6159
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6160
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
6067
|
+
readonly success: Schema.Boolean;
|
|
6068
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
6161
6069
|
readonly _tag: "ForbiddenError";
|
|
6162
6070
|
readonly message: string;
|
|
6163
6071
|
}, readonly [Schema.Struct<{
|
|
@@ -6257,46 +6165,11 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
6257
6165
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
6258
6166
|
readonly message: Schema.String;
|
|
6259
6167
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
6260
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
6261
|
-
readonly id: Schema.brand<Schema.String, "
|
|
6262
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
6263
|
-
readonly
|
|
6264
|
-
}>>,
|
|
6265
|
-
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
6266
|
-
readonly baseCommit: Schema.String;
|
|
6267
|
-
readonly revision: Schema.String;
|
|
6268
|
-
readonly changes: Schema.$Array<Schema.Struct<{
|
|
6269
|
-
readonly path: Schema.String;
|
|
6270
|
-
readonly before: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6271
|
-
readonly after: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6272
|
-
readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
|
|
6273
|
-
}>>;
|
|
6274
|
-
readonly assetChanges: Schema.$Array<Schema.Struct<{
|
|
6275
|
-
readonly path: Schema.String;
|
|
6276
|
-
readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
|
|
6277
|
-
readonly digest: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6278
|
-
}>>;
|
|
6279
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
6280
|
-
readonly _tag: "ConflictError";
|
|
6281
|
-
readonly message: string;
|
|
6282
|
-
readonly resource: string;
|
|
6283
|
-
readonly id?: string | null;
|
|
6284
|
-
}, readonly [Schema.Struct<{
|
|
6285
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
6286
|
-
readonly message: Schema.String;
|
|
6287
|
-
readonly resource: Schema.String;
|
|
6288
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6289
|
-
}>], {
|
|
6290
|
-
readonly _tag: "ConflictError";
|
|
6291
|
-
readonly message: string;
|
|
6292
|
-
readonly resource: string;
|
|
6293
|
-
readonly id?: string | null;
|
|
6294
|
-
}>, Schema.Struct<{
|
|
6295
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
6296
|
-
readonly message: Schema.String;
|
|
6297
|
-
readonly resource: Schema.String;
|
|
6298
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6299
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
6168
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"templatesDeleteProject", "DELETE", "/v1/templates/projects/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
6169
|
+
readonly id: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
6170
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
6171
|
+
readonly success: Schema.Boolean;
|
|
6172
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
6300
6173
|
readonly _tag: "ForbiddenError";
|
|
6301
6174
|
readonly message: string;
|
|
6302
6175
|
}, readonly [Schema.Struct<{
|
|
@@ -6364,22 +6237,34 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
6364
6237
|
readonly resource: Schema.String;
|
|
6365
6238
|
readonly id: Schema.String;
|
|
6366
6239
|
readonly message: Schema.String;
|
|
6367
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<
|
|
6368
|
-
readonly _tag: "
|
|
6240
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<TemplateInUseError, {
|
|
6241
|
+
readonly _tag: "TemplateInUseError";
|
|
6369
6242
|
readonly message: string;
|
|
6370
|
-
readonly
|
|
6243
|
+
readonly references: readonly {
|
|
6244
|
+
readonly kind: string;
|
|
6245
|
+
readonly id: string;
|
|
6246
|
+
}[];
|
|
6371
6247
|
}, readonly [Schema.Struct<{
|
|
6372
|
-
readonly _tag: Schema.tag<"
|
|
6248
|
+
readonly _tag: Schema.tag<"TemplateInUseError">;
|
|
6373
6249
|
readonly message: Schema.String;
|
|
6374
|
-
readonly
|
|
6250
|
+
readonly references: Schema.$Array<Schema.Struct<{
|
|
6251
|
+
readonly kind: Schema.String;
|
|
6252
|
+
readonly id: Schema.String;
|
|
6253
|
+
}>>;
|
|
6375
6254
|
}>], {
|
|
6376
|
-
readonly _tag: "
|
|
6255
|
+
readonly _tag: "TemplateInUseError";
|
|
6377
6256
|
readonly message: string;
|
|
6378
|
-
readonly
|
|
6257
|
+
readonly references: readonly {
|
|
6258
|
+
readonly kind: string;
|
|
6259
|
+
readonly id: string;
|
|
6260
|
+
}[];
|
|
6379
6261
|
}>, Schema.Struct<{
|
|
6380
|
-
readonly _tag: Schema.tag<"
|
|
6262
|
+
readonly _tag: Schema.tag<"TemplateInUseError">;
|
|
6381
6263
|
readonly message: Schema.String;
|
|
6382
|
-
readonly
|
|
6264
|
+
readonly references: Schema.$Array<Schema.Struct<{
|
|
6265
|
+
readonly kind: Schema.String;
|
|
6266
|
+
readonly id: Schema.String;
|
|
6267
|
+
}>>;
|
|
6383
6268
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
6384
6269
|
readonly _tag: "UnauthorizedError";
|
|
6385
6270
|
readonly message: string;
|
|
@@ -6392,45 +6277,316 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
6392
6277
|
}>, Schema.Struct<{
|
|
6393
6278
|
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
6394
6279
|
readonly message: Schema.String;
|
|
6395
|
-
}>, never, never> |
|
|
6396
|
-
readonly
|
|
6280
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
6281
|
+
readonly _tag: "ValidationError";
|
|
6282
|
+
readonly message: string;
|
|
6283
|
+
readonly fields?: {
|
|
6284
|
+
readonly [x: string]: readonly string[];
|
|
6285
|
+
} | null;
|
|
6286
|
+
}, readonly [Schema.Struct<{
|
|
6287
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
6288
|
+
readonly message: Schema.String;
|
|
6289
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
6290
|
+
}>], {
|
|
6291
|
+
readonly _tag: "ValidationError";
|
|
6292
|
+
readonly message: string;
|
|
6293
|
+
readonly fields?: {
|
|
6294
|
+
readonly [x: string]: readonly string[];
|
|
6295
|
+
} | null;
|
|
6296
|
+
}>, Schema.Struct<{
|
|
6297
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
6298
|
+
readonly message: Schema.String;
|
|
6299
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
6300
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"templatesDetachFamilyMember", "DELETE", "/v1/templates/families/:id/members/:templateId", Schema.toCodecStringTree<Schema.Struct<{
|
|
6301
|
+
readonly id: Schema.brand<Schema.String, "TemplateFamilyId">;
|
|
6302
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
6397
6303
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
6398
|
-
readonly id: Schema.brand<Schema.String, "
|
|
6399
|
-
readonly slug: Schema.String;
|
|
6304
|
+
readonly id: Schema.brand<Schema.String, "TemplateFamilyId">;
|
|
6400
6305
|
readonly name: Schema.String;
|
|
6401
|
-
readonly
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
readonly shared: Schema.Boolean;
|
|
6405
|
-
readonly entryPath: Schema.String;
|
|
6406
|
-
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
6407
|
-
readonly isActive: Schema.Boolean;
|
|
6408
|
-
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6409
|
-
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
6306
|
+
readonly members: Schema.$Array<Schema.Struct<{
|
|
6307
|
+
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
6308
|
+
readonly name: Schema.String;
|
|
6410
6309
|
readonly slug: Schema.String;
|
|
6411
|
-
readonly
|
|
6412
|
-
readonly
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6417
|
-
}>, Schema.Null]>;
|
|
6418
|
-
readonly usageCount: Schema.Finite;
|
|
6419
|
-
readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6310
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
6311
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
6312
|
+
readonly createdAt: Schema.String;
|
|
6313
|
+
readonly updatedAt: Schema.String;
|
|
6314
|
+
}>>;
|
|
6420
6315
|
readonly createdAt: Schema.String;
|
|
6421
6316
|
readonly updatedAt: Schema.String;
|
|
6422
|
-
|
|
6423
|
-
readonly
|
|
6424
|
-
readonly
|
|
6425
|
-
readonly
|
|
6426
|
-
readonly
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
readonly
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6317
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
6318
|
+
readonly _tag: "ConflictError";
|
|
6319
|
+
readonly message: string;
|
|
6320
|
+
readonly resource: string;
|
|
6321
|
+
readonly id?: string | null;
|
|
6322
|
+
}, readonly [Schema.Struct<{
|
|
6323
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
6324
|
+
readonly message: Schema.String;
|
|
6325
|
+
readonly resource: Schema.String;
|
|
6326
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6327
|
+
}>], {
|
|
6328
|
+
readonly _tag: "ConflictError";
|
|
6329
|
+
readonly message: string;
|
|
6330
|
+
readonly resource: string;
|
|
6331
|
+
readonly id?: string | null;
|
|
6332
|
+
}>, Schema.Struct<{
|
|
6333
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
6334
|
+
readonly message: Schema.String;
|
|
6335
|
+
readonly resource: Schema.String;
|
|
6336
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6337
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
6338
|
+
readonly _tag: "ForbiddenError";
|
|
6339
|
+
readonly message: string;
|
|
6340
|
+
}, readonly [Schema.Struct<{
|
|
6341
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
6342
|
+
readonly message: Schema.String;
|
|
6343
|
+
}>], {
|
|
6344
|
+
readonly _tag: "ForbiddenError";
|
|
6345
|
+
readonly message: string;
|
|
6346
|
+
}>, Schema.Struct<{
|
|
6347
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
6348
|
+
readonly message: Schema.String;
|
|
6349
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
6350
|
+
readonly _tag: "GatewayTimeoutError";
|
|
6351
|
+
readonly message: string;
|
|
6352
|
+
readonly retryAfterSeconds: number;
|
|
6353
|
+
}, readonly [Schema.Struct<{
|
|
6354
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
6355
|
+
readonly message: Schema.String;
|
|
6356
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
6357
|
+
}>], {
|
|
6358
|
+
readonly _tag: "GatewayTimeoutError";
|
|
6359
|
+
readonly message: string;
|
|
6360
|
+
readonly retryAfterSeconds: number;
|
|
6361
|
+
}>, Schema.Struct<{
|
|
6362
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
6363
|
+
readonly message: Schema.String;
|
|
6364
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
6365
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
6366
|
+
readonly _tag: "MalformedRequestError";
|
|
6367
|
+
readonly message: string;
|
|
6368
|
+
readonly fields: {
|
|
6369
|
+
readonly [x: string]: readonly string[];
|
|
6370
|
+
};
|
|
6371
|
+
}, readonly [Schema.Struct<{
|
|
6372
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6373
|
+
readonly message: Schema.String;
|
|
6374
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
6375
|
+
}>], {
|
|
6376
|
+
readonly _tag: "MalformedRequestError";
|
|
6377
|
+
readonly message: string;
|
|
6378
|
+
readonly fields: {
|
|
6379
|
+
readonly [x: string]: readonly string[];
|
|
6380
|
+
};
|
|
6381
|
+
}>, Schema.Struct<{
|
|
6382
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6383
|
+
readonly message: Schema.String;
|
|
6384
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
6385
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
6386
|
+
readonly _tag: "ResourceNotFoundError";
|
|
6387
|
+
readonly resource: string;
|
|
6388
|
+
readonly id: string;
|
|
6389
|
+
readonly message: string;
|
|
6390
|
+
}, readonly [Schema.Struct<{
|
|
6391
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
6392
|
+
readonly resource: Schema.String;
|
|
6393
|
+
readonly id: Schema.String;
|
|
6394
|
+
readonly message: Schema.String;
|
|
6395
|
+
}>], {
|
|
6396
|
+
readonly _tag: "ResourceNotFoundError";
|
|
6397
|
+
readonly resource: string;
|
|
6398
|
+
readonly id: string;
|
|
6399
|
+
readonly message: string;
|
|
6400
|
+
}>, Schema.Struct<{
|
|
6401
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
6402
|
+
readonly resource: Schema.String;
|
|
6403
|
+
readonly id: Schema.String;
|
|
6404
|
+
readonly message: Schema.String;
|
|
6405
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
6406
|
+
readonly _tag: "UnauthorizedError";
|
|
6407
|
+
readonly message: string;
|
|
6408
|
+
}, readonly [Schema.Struct<{
|
|
6409
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
6410
|
+
readonly message: Schema.String;
|
|
6411
|
+
}>], {
|
|
6412
|
+
readonly _tag: "UnauthorizedError";
|
|
6413
|
+
readonly message: string;
|
|
6414
|
+
}>, Schema.Struct<{
|
|
6415
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
6416
|
+
readonly message: Schema.String;
|
|
6417
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
6418
|
+
readonly _tag: "ValidationError";
|
|
6419
|
+
readonly message: string;
|
|
6420
|
+
readonly fields?: {
|
|
6421
|
+
readonly [x: string]: readonly string[];
|
|
6422
|
+
} | null;
|
|
6423
|
+
}, readonly [Schema.Struct<{
|
|
6424
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
6425
|
+
readonly message: Schema.String;
|
|
6426
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
6427
|
+
}>], {
|
|
6428
|
+
readonly _tag: "ValidationError";
|
|
6429
|
+
readonly message: string;
|
|
6430
|
+
readonly fields?: {
|
|
6431
|
+
readonly [x: string]: readonly string[];
|
|
6432
|
+
} | null;
|
|
6433
|
+
}>, Schema.Struct<{
|
|
6434
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
6435
|
+
readonly message: Schema.String;
|
|
6436
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
6437
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"templatesDiffWorkspace", "POST", "/v1/templates/:id/workspace/diff", Schema.toCodecStringTree<Schema.Struct<{
|
|
6438
|
+
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
6439
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
6440
|
+
readonly expectedRevision: Schema.String;
|
|
6441
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
6442
|
+
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
6443
|
+
readonly baseCommit: Schema.String;
|
|
6444
|
+
readonly revision: Schema.String;
|
|
6445
|
+
readonly changes: Schema.$Array<Schema.Struct<{
|
|
6446
|
+
readonly path: Schema.String;
|
|
6447
|
+
readonly before: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6448
|
+
readonly after: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6449
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
|
|
6450
|
+
}>>;
|
|
6451
|
+
readonly assetChanges: Schema.$Array<Schema.Struct<{
|
|
6452
|
+
readonly path: Schema.String;
|
|
6453
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
|
|
6454
|
+
readonly digest: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6455
|
+
}>>;
|
|
6456
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
6457
|
+
readonly _tag: "ForbiddenError";
|
|
6458
|
+
readonly message: string;
|
|
6459
|
+
}, readonly [Schema.Struct<{
|
|
6460
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
6461
|
+
readonly message: Schema.String;
|
|
6462
|
+
}>], {
|
|
6463
|
+
readonly _tag: "ForbiddenError";
|
|
6464
|
+
readonly message: string;
|
|
6465
|
+
}>, Schema.Struct<{
|
|
6466
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
6467
|
+
readonly message: Schema.String;
|
|
6468
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
6469
|
+
readonly _tag: "GatewayTimeoutError";
|
|
6470
|
+
readonly message: string;
|
|
6471
|
+
readonly retryAfterSeconds: number;
|
|
6472
|
+
}, readonly [Schema.Struct<{
|
|
6473
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
6474
|
+
readonly message: Schema.String;
|
|
6475
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
6476
|
+
}>], {
|
|
6477
|
+
readonly _tag: "GatewayTimeoutError";
|
|
6478
|
+
readonly message: string;
|
|
6479
|
+
readonly retryAfterSeconds: number;
|
|
6480
|
+
}>, Schema.Struct<{
|
|
6481
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
6482
|
+
readonly message: Schema.String;
|
|
6483
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
6484
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
6485
|
+
readonly _tag: "MalformedRequestError";
|
|
6486
|
+
readonly message: string;
|
|
6487
|
+
readonly fields: {
|
|
6488
|
+
readonly [x: string]: readonly string[];
|
|
6489
|
+
};
|
|
6490
|
+
}, readonly [Schema.Struct<{
|
|
6491
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6492
|
+
readonly message: Schema.String;
|
|
6493
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
6494
|
+
}>], {
|
|
6495
|
+
readonly _tag: "MalformedRequestError";
|
|
6496
|
+
readonly message: string;
|
|
6497
|
+
readonly fields: {
|
|
6498
|
+
readonly [x: string]: readonly string[];
|
|
6499
|
+
};
|
|
6500
|
+
}>, Schema.Struct<{
|
|
6501
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6502
|
+
readonly message: Schema.String;
|
|
6503
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
6504
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
6505
|
+
readonly _tag: "ResourceNotFoundError";
|
|
6506
|
+
readonly resource: string;
|
|
6507
|
+
readonly id: string;
|
|
6508
|
+
readonly message: string;
|
|
6509
|
+
}, readonly [Schema.Struct<{
|
|
6510
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
6511
|
+
readonly resource: Schema.String;
|
|
6512
|
+
readonly id: Schema.String;
|
|
6513
|
+
readonly message: Schema.String;
|
|
6514
|
+
}>], {
|
|
6515
|
+
readonly _tag: "ResourceNotFoundError";
|
|
6516
|
+
readonly resource: string;
|
|
6517
|
+
readonly id: string;
|
|
6518
|
+
readonly message: string;
|
|
6519
|
+
}>, Schema.Struct<{
|
|
6520
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
6521
|
+
readonly resource: Schema.String;
|
|
6522
|
+
readonly id: Schema.String;
|
|
6523
|
+
readonly message: Schema.String;
|
|
6524
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ServiceUnavailableError, {
|
|
6525
|
+
readonly _tag: "ServiceUnavailableError";
|
|
6526
|
+
readonly message: string;
|
|
6527
|
+
readonly retryAfterSeconds: number;
|
|
6528
|
+
}, readonly [Schema.Struct<{
|
|
6529
|
+
readonly _tag: Schema.tag<"ServiceUnavailableError">;
|
|
6530
|
+
readonly message: Schema.String;
|
|
6531
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
6532
|
+
}>], {
|
|
6533
|
+
readonly _tag: "ServiceUnavailableError";
|
|
6534
|
+
readonly message: string;
|
|
6535
|
+
readonly retryAfterSeconds: number;
|
|
6536
|
+
}>, Schema.Struct<{
|
|
6537
|
+
readonly _tag: Schema.tag<"ServiceUnavailableError">;
|
|
6538
|
+
readonly message: Schema.String;
|
|
6539
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
6540
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
6541
|
+
readonly _tag: "UnauthorizedError";
|
|
6542
|
+
readonly message: string;
|
|
6543
|
+
}, readonly [Schema.Struct<{
|
|
6544
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
6545
|
+
readonly message: Schema.String;
|
|
6546
|
+
}>], {
|
|
6547
|
+
readonly _tag: "UnauthorizedError";
|
|
6548
|
+
readonly message: string;
|
|
6549
|
+
}>, Schema.Struct<{
|
|
6550
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
6551
|
+
readonly message: Schema.String;
|
|
6552
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"templatesGetById", "GET", "/v1/templates/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
6553
|
+
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
6554
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
6555
|
+
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
6556
|
+
readonly slug: Schema.String;
|
|
6557
|
+
readonly name: Schema.String;
|
|
6558
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
6559
|
+
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
6560
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
6561
|
+
readonly shared: Schema.Boolean;
|
|
6562
|
+
readonly entryPath: Schema.String;
|
|
6563
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
6564
|
+
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6565
|
+
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
6566
|
+
readonly slug: Schema.String;
|
|
6567
|
+
readonly digest: Schema.String;
|
|
6568
|
+
readonly stale: Schema.Boolean;
|
|
6569
|
+
}>, Schema.Null]>;
|
|
6570
|
+
readonly fromDefault: Schema.Union<readonly [Schema.Struct<{
|
|
6571
|
+
readonly email: Schema.String;
|
|
6572
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6573
|
+
}>, Schema.Null]>;
|
|
6574
|
+
readonly usageCount: Schema.Finite;
|
|
6575
|
+
readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6576
|
+
readonly createdAt: Schema.String;
|
|
6577
|
+
readonly updatedAt: Schema.String;
|
|
6578
|
+
readonly familyId: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateFamilyId">, Schema.Null]>;
|
|
6579
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6580
|
+
readonly category: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"transactional">, Schema.Literal<"marketing">, Schema.Literal<"support">, Schema.Literal<"notification">, Schema.Literal<"verification">, Schema.Literal<"reminder">, Schema.Literal<"alert">]>, Schema.Null]>;
|
|
6581
|
+
readonly replyToDefault: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>;
|
|
6582
|
+
readonly trackingDefault: Schema.Union<readonly [Schema.Struct<{
|
|
6583
|
+
readonly opens: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
6584
|
+
readonly clicks: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
6585
|
+
}>, Schema.Null]>;
|
|
6586
|
+
readonly email: Schema.Union<readonly [Schema.Struct<{
|
|
6587
|
+
readonly subject: Schema.String;
|
|
6588
|
+
readonly preheader: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6589
|
+
readonly headers: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>;
|
|
6434
6590
|
}>, Schema.Null]>;
|
|
6435
6591
|
readonly sms: Schema.Union<readonly [Schema.Struct<{
|
|
6436
6592
|
readonly body: Schema.String;
|
|
@@ -6598,7 +6754,6 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
6598
6754
|
readonly slug: Schema.String;
|
|
6599
6755
|
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
6600
6756
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
6601
|
-
readonly isActive: Schema.Boolean;
|
|
6602
6757
|
readonly createdAt: Schema.String;
|
|
6603
6758
|
readonly updatedAt: Schema.String;
|
|
6604
6759
|
}>>;
|
|
@@ -6709,27 +6864,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
6709
6864
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
6710
6865
|
readonly remote: Schema.String;
|
|
6711
6866
|
readonly defaultBranch: Schema.String;
|
|
6712
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
6713
|
-
readonly _tag: "ConflictError";
|
|
6714
|
-
readonly message: string;
|
|
6715
|
-
readonly resource: string;
|
|
6716
|
-
readonly id?: string | null;
|
|
6717
|
-
}, readonly [Schema.Struct<{
|
|
6718
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
6719
|
-
readonly message: Schema.String;
|
|
6720
|
-
readonly resource: Schema.String;
|
|
6721
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6722
|
-
}>], {
|
|
6723
|
-
readonly _tag: "ConflictError";
|
|
6724
|
-
readonly message: string;
|
|
6725
|
-
readonly resource: string;
|
|
6726
|
-
readonly id?: string | null;
|
|
6727
|
-
}>, Schema.Struct<{
|
|
6728
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
6729
|
-
readonly message: Schema.String;
|
|
6730
|
-
readonly resource: Schema.String;
|
|
6731
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6732
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
6867
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
6733
6868
|
readonly _tag: "ForbiddenError";
|
|
6734
6869
|
readonly message: string;
|
|
6735
6870
|
}, readonly [Schema.Struct<{
|
|
@@ -7182,27 +7317,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
7182
7317
|
readonly username: Schema.Literal<"x-access-token">;
|
|
7183
7318
|
readonly password: Schema.String;
|
|
7184
7319
|
readonly expiresAt: Schema.String;
|
|
7185
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
7186
|
-
readonly _tag: "ConflictError";
|
|
7187
|
-
readonly message: string;
|
|
7188
|
-
readonly resource: string;
|
|
7189
|
-
readonly id?: string | null;
|
|
7190
|
-
}, readonly [Schema.Struct<{
|
|
7191
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
7192
|
-
readonly message: Schema.String;
|
|
7193
|
-
readonly resource: Schema.String;
|
|
7194
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
7195
|
-
}>], {
|
|
7196
|
-
readonly _tag: "ConflictError";
|
|
7197
|
-
readonly message: string;
|
|
7198
|
-
readonly resource: string;
|
|
7199
|
-
readonly id?: string | null;
|
|
7200
|
-
}>, Schema.Struct<{
|
|
7201
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
7202
|
-
readonly message: Schema.String;
|
|
7203
|
-
readonly resource: Schema.String;
|
|
7204
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
7205
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
7320
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
7206
7321
|
readonly _tag: "ForbiddenError";
|
|
7207
7322
|
readonly message: string;
|
|
7208
7323
|
}, readonly [Schema.Struct<{
|
|
@@ -7319,7 +7434,6 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
7319
7434
|
readonly shared: Schema.Boolean;
|
|
7320
7435
|
readonly entryPath: Schema.String;
|
|
7321
7436
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
7322
|
-
readonly isActive: Schema.Boolean;
|
|
7323
7437
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7324
7438
|
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
7325
7439
|
readonly slug: Schema.String;
|
|
@@ -7429,7 +7543,6 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
7429
7543
|
readonly slug: Schema.String;
|
|
7430
7544
|
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
7431
7545
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
7432
|
-
readonly isActive: Schema.Boolean;
|
|
7433
7546
|
readonly createdAt: Schema.String;
|
|
7434
7547
|
readonly updatedAt: Schema.String;
|
|
7435
7548
|
}>>;
|
|
@@ -7711,27 +7824,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
7711
7824
|
}>;
|
|
7712
7825
|
}>;
|
|
7713
7826
|
readonly files: Schema.$Record<Schema.String, Schema.String>;
|
|
7714
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
7715
|
-
readonly _tag: "ConflictError";
|
|
7716
|
-
readonly message: string;
|
|
7717
|
-
readonly resource: string;
|
|
7718
|
-
readonly id?: string | null;
|
|
7719
|
-
}, readonly [Schema.Struct<{
|
|
7720
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
7721
|
-
readonly message: Schema.String;
|
|
7722
|
-
readonly resource: Schema.String;
|
|
7723
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
7724
|
-
}>], {
|
|
7725
|
-
readonly _tag: "ConflictError";
|
|
7726
|
-
readonly message: string;
|
|
7727
|
-
readonly resource: string;
|
|
7728
|
-
readonly id?: string | null;
|
|
7729
|
-
}>, Schema.Struct<{
|
|
7730
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
7731
|
-
readonly message: Schema.String;
|
|
7732
|
-
readonly resource: Schema.String;
|
|
7733
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
7734
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
7827
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
7735
7828
|
readonly _tag: "ForbiddenError";
|
|
7736
7829
|
readonly message: string;
|
|
7737
7830
|
}, readonly [Schema.Struct<{
|
|
@@ -7913,27 +8006,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
7913
8006
|
}>;
|
|
7914
8007
|
}>;
|
|
7915
8008
|
readonly files: Schema.$Record<Schema.String, Schema.String>;
|
|
7916
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
7917
|
-
readonly _tag: "ConflictError";
|
|
7918
|
-
readonly message: string;
|
|
7919
|
-
readonly resource: string;
|
|
7920
|
-
readonly id?: string | null;
|
|
7921
|
-
}, readonly [Schema.Struct<{
|
|
7922
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
7923
|
-
readonly message: Schema.String;
|
|
7924
|
-
readonly resource: Schema.String;
|
|
7925
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
7926
|
-
}>], {
|
|
7927
|
-
readonly _tag: "ConflictError";
|
|
7928
|
-
readonly message: string;
|
|
7929
|
-
readonly resource: string;
|
|
7930
|
-
readonly id?: string | null;
|
|
7931
|
-
}>, Schema.Struct<{
|
|
7932
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
7933
|
-
readonly message: Schema.String;
|
|
7934
|
-
readonly resource: Schema.String;
|
|
7935
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
7936
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
8009
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
7937
8010
|
readonly _tag: "ForbiddenError";
|
|
7938
8011
|
readonly message: string;
|
|
7939
8012
|
}, readonly [Schema.Struct<{
|
|
@@ -8158,40 +8231,20 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
8158
8231
|
readonly provenance: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
8159
8232
|
readonly fixtures: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
8160
8233
|
readonly occurrences: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.$Array<Schema.Struct<{
|
|
8161
|
-
readonly fileName: Schema.String;
|
|
8162
|
-
readonly lineNumber: Schema.Finite;
|
|
8163
|
-
readonly columnNumber: Schema.Finite;
|
|
8164
|
-
}>>>, Schema.Null]>>;
|
|
8165
|
-
readonly compatibility: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
8166
|
-
readonly assessment: Schema.Union<readonly [Schema.Literal<"risk">, Schema.Literal<"degradation">, Schema.Literal<"unverified">, Schema.Literal<"not-applicable">]>;
|
|
8167
|
-
readonly title: Schema.String;
|
|
8168
|
-
}>, Schema.Null]>>;
|
|
8169
|
-
}>>;
|
|
8170
|
-
readonly status: Schema.String;
|
|
8171
|
-
readonly publishedAt: Schema.String;
|
|
8172
|
-
readonly publishedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
8173
|
-
readonly createdAt: Schema.String;
|
|
8174
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
8175
|
-
readonly _tag: "ConflictError";
|
|
8176
|
-
readonly message: string;
|
|
8177
|
-
readonly resource: string;
|
|
8178
|
-
readonly id?: string | null;
|
|
8179
|
-
}, readonly [Schema.Struct<{
|
|
8180
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
8181
|
-
readonly message: Schema.String;
|
|
8182
|
-
readonly resource: Schema.String;
|
|
8183
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
8184
|
-
}>], {
|
|
8185
|
-
readonly _tag: "ConflictError";
|
|
8186
|
-
readonly message: string;
|
|
8187
|
-
readonly resource: string;
|
|
8188
|
-
readonly id?: string | null;
|
|
8189
|
-
}>, Schema.Struct<{
|
|
8190
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
8191
|
-
readonly message: Schema.String;
|
|
8192
|
-
readonly resource: Schema.String;
|
|
8193
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
8194
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
8234
|
+
readonly fileName: Schema.String;
|
|
8235
|
+
readonly lineNumber: Schema.Finite;
|
|
8236
|
+
readonly columnNumber: Schema.Finite;
|
|
8237
|
+
}>>>, Schema.Null]>>;
|
|
8238
|
+
readonly compatibility: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
8239
|
+
readonly assessment: Schema.Union<readonly [Schema.Literal<"risk">, Schema.Literal<"degradation">, Schema.Literal<"unverified">, Schema.Literal<"not-applicable">]>;
|
|
8240
|
+
readonly title: Schema.String;
|
|
8241
|
+
}>, Schema.Null]>>;
|
|
8242
|
+
}>>;
|
|
8243
|
+
readonly status: Schema.String;
|
|
8244
|
+
readonly publishedAt: Schema.String;
|
|
8245
|
+
readonly publishedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
8246
|
+
readonly createdAt: Schema.String;
|
|
8247
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
8195
8248
|
readonly _tag: "ForbiddenError";
|
|
8196
8249
|
readonly message: string;
|
|
8197
8250
|
}, readonly [Schema.Struct<{
|
|
@@ -8372,27 +8425,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
8372
8425
|
}>;
|
|
8373
8426
|
}>;
|
|
8374
8427
|
readonly files: Schema.$Record<Schema.String, Schema.String>;
|
|
8375
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
8376
|
-
readonly _tag: "ConflictError";
|
|
8377
|
-
readonly message: string;
|
|
8378
|
-
readonly resource: string;
|
|
8379
|
-
readonly id?: string | null;
|
|
8380
|
-
}, readonly [Schema.Struct<{
|
|
8381
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
8382
|
-
readonly message: Schema.String;
|
|
8383
|
-
readonly resource: Schema.String;
|
|
8384
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
8385
|
-
}>], {
|
|
8386
|
-
readonly _tag: "ConflictError";
|
|
8387
|
-
readonly message: string;
|
|
8388
|
-
readonly resource: string;
|
|
8389
|
-
readonly id?: string | null;
|
|
8390
|
-
}>, Schema.Struct<{
|
|
8391
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
8392
|
-
readonly message: Schema.String;
|
|
8393
|
-
readonly resource: Schema.String;
|
|
8394
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
8395
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
8428
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
8396
8429
|
readonly _tag: "ForbiddenError";
|
|
8397
8430
|
readonly message: string;
|
|
8398
8431
|
}, readonly [Schema.Struct<{
|
|
@@ -8488,110 +8521,6 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
8488
8521
|
}>, Schema.Struct<{
|
|
8489
8522
|
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
8490
8523
|
readonly message: Schema.String;
|
|
8491
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"templatesRemove", "DELETE", "/v1/templates/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
8492
|
-
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
8493
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
8494
|
-
readonly success: Schema.Boolean;
|
|
8495
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
8496
|
-
readonly _tag: "ForbiddenError";
|
|
8497
|
-
readonly message: string;
|
|
8498
|
-
}, readonly [Schema.Struct<{
|
|
8499
|
-
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
8500
|
-
readonly message: Schema.String;
|
|
8501
|
-
}>], {
|
|
8502
|
-
readonly _tag: "ForbiddenError";
|
|
8503
|
-
readonly message: string;
|
|
8504
|
-
}>, Schema.Struct<{
|
|
8505
|
-
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
8506
|
-
readonly message: Schema.String;
|
|
8507
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
8508
|
-
readonly _tag: "GatewayTimeoutError";
|
|
8509
|
-
readonly message: string;
|
|
8510
|
-
readonly retryAfterSeconds: number;
|
|
8511
|
-
}, readonly [Schema.Struct<{
|
|
8512
|
-
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
8513
|
-
readonly message: Schema.String;
|
|
8514
|
-
readonly retryAfterSeconds: Schema.Finite;
|
|
8515
|
-
}>], {
|
|
8516
|
-
readonly _tag: "GatewayTimeoutError";
|
|
8517
|
-
readonly message: string;
|
|
8518
|
-
readonly retryAfterSeconds: number;
|
|
8519
|
-
}>, Schema.Struct<{
|
|
8520
|
-
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
8521
|
-
readonly message: Schema.String;
|
|
8522
|
-
readonly retryAfterSeconds: Schema.Finite;
|
|
8523
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
8524
|
-
readonly _tag: "MalformedRequestError";
|
|
8525
|
-
readonly message: string;
|
|
8526
|
-
readonly fields: {
|
|
8527
|
-
readonly [x: string]: readonly string[];
|
|
8528
|
-
};
|
|
8529
|
-
}, readonly [Schema.Struct<{
|
|
8530
|
-
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
8531
|
-
readonly message: Schema.String;
|
|
8532
|
-
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
8533
|
-
}>], {
|
|
8534
|
-
readonly _tag: "MalformedRequestError";
|
|
8535
|
-
readonly message: string;
|
|
8536
|
-
readonly fields: {
|
|
8537
|
-
readonly [x: string]: readonly string[];
|
|
8538
|
-
};
|
|
8539
|
-
}>, Schema.Struct<{
|
|
8540
|
-
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
8541
|
-
readonly message: Schema.String;
|
|
8542
|
-
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
8543
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
8544
|
-
readonly _tag: "ResourceNotFoundError";
|
|
8545
|
-
readonly resource: string;
|
|
8546
|
-
readonly id: string;
|
|
8547
|
-
readonly message: string;
|
|
8548
|
-
}, readonly [Schema.Struct<{
|
|
8549
|
-
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
8550
|
-
readonly resource: Schema.String;
|
|
8551
|
-
readonly id: Schema.String;
|
|
8552
|
-
readonly message: Schema.String;
|
|
8553
|
-
}>], {
|
|
8554
|
-
readonly _tag: "ResourceNotFoundError";
|
|
8555
|
-
readonly resource: string;
|
|
8556
|
-
readonly id: string;
|
|
8557
|
-
readonly message: string;
|
|
8558
|
-
}>, Schema.Struct<{
|
|
8559
|
-
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
8560
|
-
readonly resource: Schema.String;
|
|
8561
|
-
readonly id: Schema.String;
|
|
8562
|
-
readonly message: Schema.String;
|
|
8563
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
8564
|
-
readonly _tag: "UnauthorizedError";
|
|
8565
|
-
readonly message: string;
|
|
8566
|
-
}, readonly [Schema.Struct<{
|
|
8567
|
-
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
8568
|
-
readonly message: Schema.String;
|
|
8569
|
-
}>], {
|
|
8570
|
-
readonly _tag: "UnauthorizedError";
|
|
8571
|
-
readonly message: string;
|
|
8572
|
-
}>, Schema.Struct<{
|
|
8573
|
-
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
8574
|
-
readonly message: Schema.String;
|
|
8575
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
8576
|
-
readonly _tag: "ValidationError";
|
|
8577
|
-
readonly message: string;
|
|
8578
|
-
readonly fields?: {
|
|
8579
|
-
readonly [x: string]: readonly string[];
|
|
8580
|
-
} | null;
|
|
8581
|
-
}, readonly [Schema.Struct<{
|
|
8582
|
-
readonly _tag: Schema.tag<"ValidationError">;
|
|
8583
|
-
readonly message: Schema.String;
|
|
8584
|
-
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
8585
|
-
}>], {
|
|
8586
|
-
readonly _tag: "ValidationError";
|
|
8587
|
-
readonly message: string;
|
|
8588
|
-
readonly fields?: {
|
|
8589
|
-
readonly [x: string]: readonly string[];
|
|
8590
|
-
} | null;
|
|
8591
|
-
}>, Schema.Struct<{
|
|
8592
|
-
readonly _tag: Schema.tag<"ValidationError">;
|
|
8593
|
-
readonly message: Schema.String;
|
|
8594
|
-
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
8595
8524
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"templatesRemoveWorkspaceResource", "POST", "/v1/templates/:id/workspace/resources/:resourceId/remove", Schema.toCodecStringTree<Schema.Struct<{
|
|
8596
8525
|
readonly id: Schema.brand<Schema.String, "TemplateId">;
|
|
8597
8526
|
readonly resourceId: Schema.String;
|
|
@@ -8672,27 +8601,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
8672
8601
|
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
8673
8602
|
readonly via: Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"mcp">, Schema.Literal<"agent">]>;
|
|
8674
8603
|
}>;
|
|
8675
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
8676
|
-
readonly _tag: "ConflictError";
|
|
8677
|
-
readonly message: string;
|
|
8678
|
-
readonly resource: string;
|
|
8679
|
-
readonly id?: string | null;
|
|
8680
|
-
}, readonly [Schema.Struct<{
|
|
8681
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
8682
|
-
readonly message: Schema.String;
|
|
8683
|
-
readonly resource: Schema.String;
|
|
8684
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
8685
|
-
}>], {
|
|
8686
|
-
readonly _tag: "ConflictError";
|
|
8687
|
-
readonly message: string;
|
|
8688
|
-
readonly resource: string;
|
|
8689
|
-
readonly id?: string | null;
|
|
8690
|
-
}>, Schema.Struct<{
|
|
8691
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
8692
|
-
readonly message: Schema.String;
|
|
8693
|
-
readonly resource: Schema.String;
|
|
8694
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
8695
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
8604
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
8696
8605
|
readonly _tag: "ForbiddenError";
|
|
8697
8606
|
readonly message: string;
|
|
8698
8607
|
}, readonly [Schema.Struct<{
|
|
@@ -8801,7 +8710,6 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
8801
8710
|
readonly slug: Schema.String;
|
|
8802
8711
|
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
8803
8712
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
8804
|
-
readonly isActive: Schema.Boolean;
|
|
8805
8713
|
readonly createdAt: Schema.String;
|
|
8806
8714
|
readonly updatedAt: Schema.String;
|
|
8807
8715
|
}>>;
|
|
@@ -9196,27 +9104,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
9196
9104
|
readonly end: Schema.Finite;
|
|
9197
9105
|
}>>;
|
|
9198
9106
|
}>, Schema.Null]>>;
|
|
9199
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
9200
|
-
readonly _tag: "ConflictError";
|
|
9201
|
-
readonly message: string;
|
|
9202
|
-
readonly resource: string;
|
|
9203
|
-
readonly id?: string | null;
|
|
9204
|
-
}, readonly [Schema.Struct<{
|
|
9205
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
9206
|
-
readonly message: Schema.String;
|
|
9207
|
-
readonly resource: Schema.String;
|
|
9208
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
9209
|
-
}>], {
|
|
9210
|
-
readonly _tag: "ConflictError";
|
|
9211
|
-
readonly message: string;
|
|
9212
|
-
readonly resource: string;
|
|
9213
|
-
readonly id?: string | null;
|
|
9214
|
-
}>, Schema.Struct<{
|
|
9215
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
9216
|
-
readonly message: Schema.String;
|
|
9217
|
-
readonly resource: Schema.String;
|
|
9218
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
9219
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
9107
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
9220
9108
|
readonly _tag: "ForbiddenError";
|
|
9221
9109
|
readonly message: string;
|
|
9222
9110
|
}, readonly [Schema.Struct<{
|
|
@@ -9398,27 +9286,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
9398
9286
|
}>;
|
|
9399
9287
|
}>;
|
|
9400
9288
|
readonly files: Schema.$Record<Schema.String, Schema.String>;
|
|
9401
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
9402
|
-
readonly _tag: "ConflictError";
|
|
9403
|
-
readonly message: string;
|
|
9404
|
-
readonly resource: string;
|
|
9405
|
-
readonly id?: string | null;
|
|
9406
|
-
}, readonly [Schema.Struct<{
|
|
9407
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
9408
|
-
readonly message: Schema.String;
|
|
9409
|
-
readonly resource: Schema.String;
|
|
9410
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
9411
|
-
}>], {
|
|
9412
|
-
readonly _tag: "ConflictError";
|
|
9413
|
-
readonly message: string;
|
|
9414
|
-
readonly resource: string;
|
|
9415
|
-
readonly id?: string | null;
|
|
9416
|
-
}>, Schema.Struct<{
|
|
9417
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
9418
|
-
readonly message: Schema.String;
|
|
9419
|
-
readonly resource: Schema.String;
|
|
9420
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
9421
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
9289
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
9422
9290
|
readonly _tag: "ForbiddenError";
|
|
9423
9291
|
readonly message: string;
|
|
9424
9292
|
}, readonly [Schema.Struct<{
|
|
@@ -9603,27 +9471,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
9603
9471
|
readonly digest: Schema.String;
|
|
9604
9472
|
readonly content: Schema.String;
|
|
9605
9473
|
}>;
|
|
9606
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
9607
|
-
readonly _tag: "ConflictError";
|
|
9608
|
-
readonly message: string;
|
|
9609
|
-
readonly resource: string;
|
|
9610
|
-
readonly id?: string | null;
|
|
9611
|
-
}, readonly [Schema.Struct<{
|
|
9612
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
9613
|
-
readonly message: Schema.String;
|
|
9614
|
-
readonly resource: Schema.String;
|
|
9615
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
9616
|
-
}>], {
|
|
9617
|
-
readonly _tag: "ConflictError";
|
|
9618
|
-
readonly message: string;
|
|
9619
|
-
readonly resource: string;
|
|
9620
|
-
readonly id?: string | null;
|
|
9621
|
-
}>, Schema.Struct<{
|
|
9622
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
9623
|
-
readonly message: Schema.String;
|
|
9624
|
-
readonly resource: Schema.String;
|
|
9625
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
9626
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
9474
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
9627
9475
|
readonly _tag: "ForbiddenError";
|
|
9628
9476
|
readonly message: string;
|
|
9629
9477
|
}, readonly [Schema.Struct<{
|
|
@@ -9781,27 +9629,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
9781
9629
|
readonly title: Schema.String;
|
|
9782
9630
|
}>, Schema.Null]>>;
|
|
9783
9631
|
}>>;
|
|
9784
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
9785
|
-
readonly _tag: "ConflictError";
|
|
9786
|
-
readonly message: string;
|
|
9787
|
-
readonly resource: string;
|
|
9788
|
-
readonly id?: string | null;
|
|
9789
|
-
}, readonly [Schema.Struct<{
|
|
9790
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
9791
|
-
readonly message: Schema.String;
|
|
9792
|
-
readonly resource: Schema.String;
|
|
9793
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
9794
|
-
}>], {
|
|
9795
|
-
readonly _tag: "ConflictError";
|
|
9796
|
-
readonly message: string;
|
|
9797
|
-
readonly resource: string;
|
|
9798
|
-
readonly id?: string | null;
|
|
9799
|
-
}>, Schema.Struct<{
|
|
9800
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
9801
|
-
readonly message: Schema.String;
|
|
9802
|
-
readonly resource: Schema.String;
|
|
9803
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
9804
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
9632
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
9805
9633
|
readonly _tag: "ForbiddenError";
|
|
9806
9634
|
readonly message: string;
|
|
9807
9635
|
}, readonly [Schema.Struct<{
|
|
@@ -9915,7 +9743,6 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
9915
9743
|
readonly opens: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
9916
9744
|
readonly clicks: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
9917
9745
|
}>, Schema.Null]>>;
|
|
9918
|
-
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
9919
9746
|
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
9920
9747
|
}>;
|
|
9921
9748
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -9928,7 +9755,6 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
9928
9755
|
readonly shared: Schema.Boolean;
|
|
9929
9756
|
readonly entryPath: Schema.String;
|
|
9930
9757
|
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"pending">, Schema.Literal<"approved">, Schema.Literal<"published">, Schema.Literal<"rejected">, Schema.Literal<"archived">]>;
|
|
9931
|
-
readonly isActive: Schema.Boolean;
|
|
9932
9758
|
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
9933
9759
|
readonly brand: Schema.Union<readonly [Schema.Struct<{
|
|
9934
9760
|
readonly slug: Schema.String;
|
|
@@ -10149,27 +9975,7 @@ declare const TemplatesGroup_base: HttpApiGroup.HttpApiGroup<"Templates", HttpAp
|
|
|
10149
9975
|
readonly id: Schema.brand<Schema.String, "TemplatePublicationId">;
|
|
10150
9976
|
readonly commit: Schema.String;
|
|
10151
9977
|
}>, Schema.Null]>;
|
|
10152
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
10153
|
-
readonly _tag: "ConflictError";
|
|
10154
|
-
readonly message: string;
|
|
10155
|
-
readonly resource: string;
|
|
10156
|
-
readonly id?: string | null;
|
|
10157
|
-
}, readonly [Schema.Struct<{
|
|
10158
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
10159
|
-
readonly message: Schema.String;
|
|
10160
|
-
readonly resource: Schema.String;
|
|
10161
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
10162
|
-
}>], {
|
|
10163
|
-
readonly _tag: "ConflictError";
|
|
10164
|
-
readonly message: string;
|
|
10165
|
-
readonly resource: string;
|
|
10166
|
-
readonly id?: string | null;
|
|
10167
|
-
}>, Schema.Struct<{
|
|
10168
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
10169
|
-
readonly message: Schema.String;
|
|
10170
|
-
readonly resource: Schema.String;
|
|
10171
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
10172
|
-
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
9978
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ConflictError, typeof TemplateInUseError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
10173
9979
|
readonly _tag: "ForbiddenError";
|
|
10174
9980
|
readonly message: string;
|
|
10175
9981
|
}, readonly [Schema.Struct<{
|