@assemblis/contracts 0.2.5 → 1.0.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/dist/index.js +1 -1
- package/dist/schemas/api.d.ts +220 -62
- package/dist/schemas/base.d.ts +48 -7
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/utils.d.ts +2 -0
- package/dist/types/enums.d.ts +10 -22
- package/dist/types/index.d.ts +0 -1
- package/dist/types/types.d.ts +2 -1
- package/package.json +1 -1
- package/src/schemas/api.ts +83 -21
- package/src/schemas/base.ts +51 -7
- package/src/schemas/index.ts +1 -1
- package/src/schemas/utils.ts +17 -0
- package/src/types/enums.ts +11 -25
- package/src/types/index.ts +0 -1
- package/src/types/types.ts +6 -3
- package/src/schemas/legacy.ts +0 -328
- package/src/types/api.ts +0 -66
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from"zod";var e,n,i;!function(t){t.ACCOUNT="/account",t.ACCOUNT_REPORTS="/account/reports",t.INTEREST="/interest",t.LOGS="/logs",t.PING="/ping",t.PINS="/pins",t.REGISTER="/register",t.REPORTS="/reports"}(e||(e={})),function(t){t.GET="GET",t.POST="POST",t.PUT="PUT",t.PATCH="PATCH"}(n||(n={})),function(t){t.DISCARDED="DISCARDED",t.DRAFTED="DRAFT",t.PUBLISHED="PUBLISHED",t.CHANGED="CHANGED"}(i||(i={}));const o=t.coerce.date().transform(t=>t.toISOString()),r=t=>t.nullish().transform(t=>t??null);function a(t,e){return Object.keys(e).reduce((t,n)=>t.replace(`:${n}`,e[n]),t)}const s=t.object({id:t.uuid(),created_at:o,updated_at:o,alt:t.string(),srcset:t.string(),width:t.int(),height:t.int()}),d=t.object({recaptcha_token:t.string(),email:t.email().toLowerCase().trim(),listIds:t.int().array(),firstname:t.string().nullish().transform(t=>t??void 0),lastname:t.string().nullish().transform(t=>t??void 0),country:t.string().nullish().transform(t=>t??void 0),organisation:t.string().nullish().transform(t=>t??void 0)}),p=t.object({published_at:r(o),title:r(t.string()),description:r(t.string()),location:r(t.string()),outputs:r(t.string().array()),initiation_type:r(t.string()),recruitment_method:r(t.string()),recruitment_description:r(t.string()),participant_count:r(t.int()),organiser_reflections:r(t.string()),organiser_report_url:r(t.string()),location_details:r(t.string()),date:r(t.string()),duration:r(t.int()),contact_information_url:r(t.string()),cover_image_id:r(t.string())}),c=t.object({server_id:t.uuid(),client_id:t.uuid(),display_seq:t.int(),created_at:o,updated_at:o,published_at:r(o),state:t.enum(["DISCARDED","DRAFTED","PUBLISHED","CHANGED"]),slug:r(t.string()),draft_content:r(p),published_content:r(p),media:t.object({images:s.array()})});t.object({id:t.uuid(),created_at:o,updated_at:o,sub:t.string(),is_mutirao:t.boolean()});const l=t.object({id:t.uuid(),created_at:o,updated_at:o,image_src:r(t.string()),has_image:t.boolean().meta({deprecated:!0}),user_id:t.uuid().meta({deprecated:!0}),published_at:r(o),name:t.string(),about:r(t.string()),topics:t.string().array(),country:r(t.string()),hide:t.boolean().default(!1)}),u=t.object({id:t.uuid(),created_at:t.coerce.date().transform(t=>t.toISOString()),updated_at:t.coerce.date().transform(t=>t.toISOString()),country:t.string(),text:r(t.string()),hide:t.boolean(),image_src:r(t.string()),has_image:t.boolean().meta({deprecated:!0})}),g=t.object({message:t.string().optional(),data:t.record(t.string(),t.string().optional()).optional(),metadata:t.object({origin:t.string(),route:t.string(),status:t.number()})}),m=t.object({type:t.literal("user.created"),object:t.literal("event"),data:t.object({id:t.string(),email_addresses:t.object({email_address:t.string()}).array()})}),_={endpoint:e.ACCOUNT_REPORTS,method:n.GET,payload:t.never(),response:t.object({reports:c.array(),total:t.int()})},T={endpoint:`${e.ACCOUNT_REPORTS}/:client_id`,method:n.GET,payload:t.never(),response:r(c)},S={endpoint:e.ACCOUNT_REPORTS,method:n.POST,payload:t.object({client_id:t.uuid(),content:r(p.omit({cover_image_id:!0}))}),response:c},h={endpoint:`${e.ACCOUNT_REPORTS}/:client_id/content`,method:n.PUT,payload:p.omit({published_at:!0,cover_image_id:!0}),response:c},b={endpoint:`${e.ACCOUNT_REPORTS}/:client_id/discard`,method:n.PATCH,payload:t.nullish(t.object()),response:r(c)},E={endpoint:`${e.ACCOUNT_REPORTS}/:client_id/publish`,method:n.PATCH,payload:t.object({published_at:o}),response:c},P={endpoint:`${e.ACCOUNT_REPORTS}/:client_id/unpublish`,method:n.PATCH,payload:t.nullish(t.object()),response:c},O={endpoint:`${e.ACCOUNT_REPORTS}/:client_id/cover-image`,method:n.POST,payload:s.pick({alt:!0}),response:c},R={endpoint:e.INTEREST,method:n.POST,payload:d,response:t.string()},y={endpoint:`${e.INTEREST}/assemblis`,method:n.POST,payload:d.omit({listIds:!0}),response:t.string()},C={endpoint:e.REPORTS,method:n.GET,payload:t.never(),response:t.object({reports:c.array(),total:t.int()})},A={endpoint:`${e.REPORTS}/:slug`,method:n.GET,payload:t.never(),response:r(c)},j={endpoint:e.PINS,method:n.GET,payload:t.never(),response:t.object({assemblies:l.array(),pins:u.array()})},I={endpoint:e.PINS,method:n.POST,payload:t.object({country:t.string(),email:t.string(),text:r(t.string())}),response:u},N={endpoint:`${e.PINS}/:id/hide`,method:n.PATCH,payload:t.never(),response:u},D={endpoint:e.PING,method:n.GET,payload:t.never(),response:t.never()},f={endpoint:`${e.LOGS}/info`,method:n.POST,payload:g,response:t.string()},v={endpoint:`${e.LOGS}/error`,method:n.POST,payload:g,response:t.string()},G={endpoint:e.REGISTER,method:n.POST,payload:m,response:t.string()};export{e as ApiEndpoint,n as ApiRestMethod,T as GetAccountReportsIdSchema,_ as GetAccountReportsSchema,D as GetPingSchema,j as GetPinsSchema,C as GetReportsSchema,A as GetReportsSlugSchema,b as PatchAccountReportsIdDiscardSchema,E as PatchAccountReportsIdPublishSchema,P as PatchAccountReportsIdUnpublishSchema,N as PatchPinHideSchema,O as PostAccountReportsIdCoverImageSchema,S as PostAccountReportsSchema,y as PostInterestAssemblisSchema,R as PostInterestSchema,v as PostLogsErrorSchema,f as PostLogsInfoSchema,I as PostPinSchema,G as PostRegisterSchema,h as PutAccountReportsIdContentSchema,i as ReportState,a as resolvePath};
|
package/dist/schemas/api.d.ts
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
import { ApiEndpoint, ApiRestMethod } from '../types';
|
|
3
|
-
type AccountEndpoint = `/account/${string}`;
|
|
4
3
|
export declare const GetAccountReportsSchema: {
|
|
5
|
-
endpoint:
|
|
4
|
+
endpoint: ApiEndpoint.ACCOUNT_REPORTS;
|
|
6
5
|
method: ApiRestMethod;
|
|
7
6
|
payload: z.ZodNever;
|
|
8
7
|
response: z.ZodObject<{
|
|
9
8
|
reports: z.ZodArray<z.ZodObject<{
|
|
10
|
-
|
|
9
|
+
server_id: z.ZodUUID;
|
|
10
|
+
client_id: z.ZodUUID;
|
|
11
|
+
display_seq: z.ZodInt;
|
|
11
12
|
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
12
13
|
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
13
14
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
14
15
|
state: z.ZodEnum<{
|
|
15
16
|
DISCARDED: "DISCARDED";
|
|
16
|
-
DRAFTED: "DRAFTED";
|
|
17
17
|
PUBLISHED: "PUBLISHED";
|
|
18
18
|
CHANGED: "CHANGED";
|
|
19
|
+
DRAFTED: "DRAFTED";
|
|
19
20
|
}>;
|
|
20
|
-
|
|
21
|
+
slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
21
22
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
22
23
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
23
24
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -138,21 +139,23 @@ export declare const GetAccountReportsSchema: {
|
|
|
138
139
|
}, z.core.$strip>;
|
|
139
140
|
};
|
|
140
141
|
export declare const GetAccountReportsIdSchema: {
|
|
141
|
-
endpoint:
|
|
142
|
+
endpoint: "/account/reports/:client_id";
|
|
142
143
|
method: ApiRestMethod;
|
|
143
144
|
payload: z.ZodNever;
|
|
144
145
|
response: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
145
|
-
|
|
146
|
+
server_id: z.ZodUUID;
|
|
147
|
+
client_id: z.ZodUUID;
|
|
148
|
+
display_seq: z.ZodInt;
|
|
146
149
|
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
147
150
|
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
148
151
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
149
152
|
state: z.ZodEnum<{
|
|
150
153
|
DISCARDED: "DISCARDED";
|
|
151
|
-
DRAFTED: "DRAFTED";
|
|
152
154
|
PUBLISHED: "PUBLISHED";
|
|
153
155
|
CHANGED: "CHANGED";
|
|
156
|
+
DRAFTED: "DRAFTED";
|
|
154
157
|
}>;
|
|
155
|
-
|
|
158
|
+
slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
156
159
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
157
160
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
158
161
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -269,12 +272,14 @@ export declare const GetAccountReportsIdSchema: {
|
|
|
269
272
|
}, z.core.$strip>>;
|
|
270
273
|
}, z.core.$strip>;
|
|
271
274
|
}, z.core.$strip>>>, z.ZodTransform<{
|
|
272
|
-
|
|
275
|
+
server_id: string;
|
|
276
|
+
client_id: string;
|
|
277
|
+
display_seq: number;
|
|
273
278
|
created_at: string;
|
|
274
279
|
updated_at: string;
|
|
275
280
|
published_at: string | null;
|
|
276
|
-
state: "DISCARDED" | "
|
|
277
|
-
|
|
281
|
+
state: "DISCARDED" | "PUBLISHED" | "CHANGED" | "DRAFTED";
|
|
282
|
+
slug: string | null;
|
|
278
283
|
draft_content: {
|
|
279
284
|
published_at: string | null;
|
|
280
285
|
title: string | null;
|
|
@@ -323,12 +328,14 @@ export declare const GetAccountReportsIdSchema: {
|
|
|
323
328
|
}[];
|
|
324
329
|
};
|
|
325
330
|
} | null, {
|
|
326
|
-
|
|
331
|
+
server_id: string;
|
|
332
|
+
client_id: string;
|
|
333
|
+
display_seq: number;
|
|
327
334
|
created_at: string;
|
|
328
335
|
updated_at: string;
|
|
329
336
|
published_at: string | null;
|
|
330
|
-
state: "DISCARDED" | "
|
|
331
|
-
|
|
337
|
+
state: "DISCARDED" | "PUBLISHED" | "CHANGED" | "DRAFTED";
|
|
338
|
+
slug: string | null;
|
|
332
339
|
draft_content: {
|
|
333
340
|
published_at: string | null;
|
|
334
341
|
title: string | null;
|
|
@@ -379,7 +386,7 @@ export declare const GetAccountReportsIdSchema: {
|
|
|
379
386
|
} | null | undefined>>;
|
|
380
387
|
};
|
|
381
388
|
export declare const PostAccountReportsSchema: {
|
|
382
|
-
endpoint:
|
|
389
|
+
endpoint: ApiEndpoint.ACCOUNT_REPORTS;
|
|
383
390
|
method: ApiRestMethod;
|
|
384
391
|
payload: z.ZodObject<{
|
|
385
392
|
client_id: z.ZodUUID;
|
|
@@ -434,17 +441,19 @@ export declare const PostAccountReportsSchema: {
|
|
|
434
441
|
} | null | undefined>>;
|
|
435
442
|
}, z.core.$strip>;
|
|
436
443
|
response: z.ZodObject<{
|
|
437
|
-
|
|
444
|
+
server_id: z.ZodUUID;
|
|
445
|
+
client_id: z.ZodUUID;
|
|
446
|
+
display_seq: z.ZodInt;
|
|
438
447
|
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
439
448
|
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
440
449
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
441
450
|
state: z.ZodEnum<{
|
|
442
451
|
DISCARDED: "DISCARDED";
|
|
443
|
-
DRAFTED: "DRAFTED";
|
|
444
452
|
PUBLISHED: "PUBLISHED";
|
|
445
453
|
CHANGED: "CHANGED";
|
|
454
|
+
DRAFTED: "DRAFTED";
|
|
446
455
|
}>;
|
|
447
|
-
|
|
456
|
+
slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
448
457
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
449
458
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
450
459
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -563,7 +572,7 @@ export declare const PostAccountReportsSchema: {
|
|
|
563
572
|
}, z.core.$strip>;
|
|
564
573
|
};
|
|
565
574
|
export declare const PutAccountReportsIdContentSchema: {
|
|
566
|
-
endpoint:
|
|
575
|
+
endpoint: "/account/reports/:client_id/content";
|
|
567
576
|
method: ApiRestMethod;
|
|
568
577
|
payload: z.ZodObject<{
|
|
569
578
|
date: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -582,17 +591,19 @@ export declare const PutAccountReportsIdContentSchema: {
|
|
|
582
591
|
contact_information_url: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
583
592
|
}, z.core.$strip>;
|
|
584
593
|
response: z.ZodObject<{
|
|
585
|
-
|
|
594
|
+
server_id: z.ZodUUID;
|
|
595
|
+
client_id: z.ZodUUID;
|
|
596
|
+
display_seq: z.ZodInt;
|
|
586
597
|
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
587
598
|
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
588
599
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
589
600
|
state: z.ZodEnum<{
|
|
590
601
|
DISCARDED: "DISCARDED";
|
|
591
|
-
DRAFTED: "DRAFTED";
|
|
592
602
|
PUBLISHED: "PUBLISHED";
|
|
593
603
|
CHANGED: "CHANGED";
|
|
604
|
+
DRAFTED: "DRAFTED";
|
|
594
605
|
}>;
|
|
595
|
-
|
|
606
|
+
slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
596
607
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
597
608
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
598
609
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -711,21 +722,23 @@ export declare const PutAccountReportsIdContentSchema: {
|
|
|
711
722
|
}, z.core.$strip>;
|
|
712
723
|
};
|
|
713
724
|
export declare const PatchAccountReportsIdDiscardSchema: {
|
|
714
|
-
endpoint:
|
|
725
|
+
endpoint: "/account/reports/:client_id/discard";
|
|
715
726
|
method: ApiRestMethod;
|
|
716
727
|
payload: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
717
728
|
response: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
718
|
-
|
|
729
|
+
server_id: z.ZodUUID;
|
|
730
|
+
client_id: z.ZodUUID;
|
|
731
|
+
display_seq: z.ZodInt;
|
|
719
732
|
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
720
733
|
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
721
734
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
722
735
|
state: z.ZodEnum<{
|
|
723
736
|
DISCARDED: "DISCARDED";
|
|
724
|
-
DRAFTED: "DRAFTED";
|
|
725
737
|
PUBLISHED: "PUBLISHED";
|
|
726
738
|
CHANGED: "CHANGED";
|
|
739
|
+
DRAFTED: "DRAFTED";
|
|
727
740
|
}>;
|
|
728
|
-
|
|
741
|
+
slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
729
742
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
730
743
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
731
744
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -842,12 +855,14 @@ export declare const PatchAccountReportsIdDiscardSchema: {
|
|
|
842
855
|
}, z.core.$strip>>;
|
|
843
856
|
}, z.core.$strip>;
|
|
844
857
|
}, z.core.$strip>>>, z.ZodTransform<{
|
|
845
|
-
|
|
858
|
+
server_id: string;
|
|
859
|
+
client_id: string;
|
|
860
|
+
display_seq: number;
|
|
846
861
|
created_at: string;
|
|
847
862
|
updated_at: string;
|
|
848
863
|
published_at: string | null;
|
|
849
|
-
state: "DISCARDED" | "
|
|
850
|
-
|
|
864
|
+
state: "DISCARDED" | "PUBLISHED" | "CHANGED" | "DRAFTED";
|
|
865
|
+
slug: string | null;
|
|
851
866
|
draft_content: {
|
|
852
867
|
published_at: string | null;
|
|
853
868
|
title: string | null;
|
|
@@ -896,12 +911,14 @@ export declare const PatchAccountReportsIdDiscardSchema: {
|
|
|
896
911
|
}[];
|
|
897
912
|
};
|
|
898
913
|
} | null, {
|
|
899
|
-
|
|
914
|
+
server_id: string;
|
|
915
|
+
client_id: string;
|
|
916
|
+
display_seq: number;
|
|
900
917
|
created_at: string;
|
|
901
918
|
updated_at: string;
|
|
902
919
|
published_at: string | null;
|
|
903
|
-
state: "DISCARDED" | "
|
|
904
|
-
|
|
920
|
+
state: "DISCARDED" | "PUBLISHED" | "CHANGED" | "DRAFTED";
|
|
921
|
+
slug: string | null;
|
|
905
922
|
draft_content: {
|
|
906
923
|
published_at: string | null;
|
|
907
924
|
title: string | null;
|
|
@@ -952,23 +969,25 @@ export declare const PatchAccountReportsIdDiscardSchema: {
|
|
|
952
969
|
} | null | undefined>>;
|
|
953
970
|
};
|
|
954
971
|
export declare const PatchAccountReportsIdPublishSchema: {
|
|
955
|
-
endpoint:
|
|
972
|
+
endpoint: "/account/reports/:client_id/publish";
|
|
956
973
|
method: ApiRestMethod;
|
|
957
974
|
payload: z.ZodObject<{
|
|
958
975
|
published_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
959
976
|
}, z.core.$strip>;
|
|
960
977
|
response: z.ZodObject<{
|
|
961
|
-
|
|
978
|
+
server_id: z.ZodUUID;
|
|
979
|
+
client_id: z.ZodUUID;
|
|
980
|
+
display_seq: z.ZodInt;
|
|
962
981
|
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
963
982
|
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
964
983
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
965
984
|
state: z.ZodEnum<{
|
|
966
985
|
DISCARDED: "DISCARDED";
|
|
967
|
-
DRAFTED: "DRAFTED";
|
|
968
986
|
PUBLISHED: "PUBLISHED";
|
|
969
987
|
CHANGED: "CHANGED";
|
|
988
|
+
DRAFTED: "DRAFTED";
|
|
970
989
|
}>;
|
|
971
|
-
|
|
990
|
+
slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
972
991
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
973
992
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
974
993
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -1087,21 +1106,23 @@ export declare const PatchAccountReportsIdPublishSchema: {
|
|
|
1087
1106
|
}, z.core.$strip>;
|
|
1088
1107
|
};
|
|
1089
1108
|
export declare const PatchAccountReportsIdUnpublishSchema: {
|
|
1090
|
-
endpoint:
|
|
1109
|
+
endpoint: "/account/reports/:client_id/unpublish";
|
|
1091
1110
|
method: ApiRestMethod;
|
|
1092
1111
|
payload: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
1093
1112
|
response: z.ZodObject<{
|
|
1094
|
-
|
|
1113
|
+
server_id: z.ZodUUID;
|
|
1114
|
+
client_id: z.ZodUUID;
|
|
1115
|
+
display_seq: z.ZodInt;
|
|
1095
1116
|
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1096
1117
|
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1097
1118
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1098
1119
|
state: z.ZodEnum<{
|
|
1099
1120
|
DISCARDED: "DISCARDED";
|
|
1100
|
-
DRAFTED: "DRAFTED";
|
|
1101
1121
|
PUBLISHED: "PUBLISHED";
|
|
1102
1122
|
CHANGED: "CHANGED";
|
|
1123
|
+
DRAFTED: "DRAFTED";
|
|
1103
1124
|
}>;
|
|
1104
|
-
|
|
1125
|
+
slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1105
1126
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1106
1127
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1107
1128
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -1220,23 +1241,25 @@ export declare const PatchAccountReportsIdUnpublishSchema: {
|
|
|
1220
1241
|
}, z.core.$strip>;
|
|
1221
1242
|
};
|
|
1222
1243
|
export declare const PostAccountReportsIdCoverImageSchema: {
|
|
1223
|
-
endpoint:
|
|
1244
|
+
endpoint: "/account/reports/:client_id/cover-image";
|
|
1224
1245
|
method: ApiRestMethod;
|
|
1225
1246
|
payload: z.ZodObject<{
|
|
1226
1247
|
alt: z.ZodString;
|
|
1227
1248
|
}, z.core.$strip>;
|
|
1228
1249
|
response: z.ZodObject<{
|
|
1229
|
-
|
|
1250
|
+
server_id: z.ZodUUID;
|
|
1251
|
+
client_id: z.ZodUUID;
|
|
1252
|
+
display_seq: z.ZodInt;
|
|
1230
1253
|
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1231
1254
|
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1232
1255
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1233
1256
|
state: z.ZodEnum<{
|
|
1234
1257
|
DISCARDED: "DISCARDED";
|
|
1235
|
-
DRAFTED: "DRAFTED";
|
|
1236
1258
|
PUBLISHED: "PUBLISHED";
|
|
1237
1259
|
CHANGED: "CHANGED";
|
|
1260
|
+
DRAFTED: "DRAFTED";
|
|
1238
1261
|
}>;
|
|
1239
|
-
|
|
1262
|
+
slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1240
1263
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1241
1264
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1242
1265
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -1355,7 +1378,7 @@ export declare const PostAccountReportsIdCoverImageSchema: {
|
|
|
1355
1378
|
}, z.core.$strip>;
|
|
1356
1379
|
};
|
|
1357
1380
|
export declare const PostInterestSchema: {
|
|
1358
|
-
endpoint:
|
|
1381
|
+
endpoint: ApiEndpoint.INTEREST;
|
|
1359
1382
|
method: ApiRestMethod;
|
|
1360
1383
|
payload: z.ZodObject<{
|
|
1361
1384
|
recaptcha_token: z.ZodString;
|
|
@@ -1368,23 +1391,38 @@ export declare const PostInterestSchema: {
|
|
|
1368
1391
|
}, z.core.$strip>;
|
|
1369
1392
|
response: z.ZodString;
|
|
1370
1393
|
};
|
|
1394
|
+
export declare const PostInterestAssemblisSchema: {
|
|
1395
|
+
endpoint: "/interest/assemblis";
|
|
1396
|
+
method: ApiRestMethod;
|
|
1397
|
+
payload: z.ZodObject<{
|
|
1398
|
+
recaptcha_token: z.ZodString;
|
|
1399
|
+
email: z.ZodEmail;
|
|
1400
|
+
firstname: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1401
|
+
lastname: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1402
|
+
country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1403
|
+
organisation: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
1404
|
+
}, z.core.$strip>;
|
|
1405
|
+
response: z.ZodString;
|
|
1406
|
+
};
|
|
1371
1407
|
export declare const GetReportsSchema: {
|
|
1372
|
-
endpoint:
|
|
1408
|
+
endpoint: ApiEndpoint.REPORTS;
|
|
1373
1409
|
method: ApiRestMethod;
|
|
1374
1410
|
payload: z.ZodNever;
|
|
1375
1411
|
response: z.ZodObject<{
|
|
1376
1412
|
reports: z.ZodArray<z.ZodObject<{
|
|
1377
|
-
|
|
1413
|
+
server_id: z.ZodUUID;
|
|
1414
|
+
client_id: z.ZodUUID;
|
|
1415
|
+
display_seq: z.ZodInt;
|
|
1378
1416
|
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1379
1417
|
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1380
1418
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1381
1419
|
state: z.ZodEnum<{
|
|
1382
1420
|
DISCARDED: "DISCARDED";
|
|
1383
|
-
DRAFTED: "DRAFTED";
|
|
1384
1421
|
PUBLISHED: "PUBLISHED";
|
|
1385
1422
|
CHANGED: "CHANGED";
|
|
1423
|
+
DRAFTED: "DRAFTED";
|
|
1386
1424
|
}>;
|
|
1387
|
-
|
|
1425
|
+
slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1388
1426
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1389
1427
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1390
1428
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -1501,24 +1539,27 @@ export declare const GetReportsSchema: {
|
|
|
1501
1539
|
}, z.core.$strip>>;
|
|
1502
1540
|
}, z.core.$strip>;
|
|
1503
1541
|
}, z.core.$strip>>;
|
|
1542
|
+
total: z.ZodInt;
|
|
1504
1543
|
}, z.core.$strip>;
|
|
1505
1544
|
};
|
|
1506
|
-
export declare const
|
|
1507
|
-
endpoint:
|
|
1545
|
+
export declare const GetReportsSlugSchema: {
|
|
1546
|
+
endpoint: "/reports/:slug";
|
|
1508
1547
|
method: ApiRestMethod;
|
|
1509
1548
|
payload: z.ZodNever;
|
|
1510
1549
|
response: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1511
|
-
|
|
1550
|
+
server_id: z.ZodUUID;
|
|
1551
|
+
client_id: z.ZodUUID;
|
|
1552
|
+
display_seq: z.ZodInt;
|
|
1512
1553
|
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1513
1554
|
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1514
1555
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1515
1556
|
state: z.ZodEnum<{
|
|
1516
1557
|
DISCARDED: "DISCARDED";
|
|
1517
|
-
DRAFTED: "DRAFTED";
|
|
1518
1558
|
PUBLISHED: "PUBLISHED";
|
|
1519
1559
|
CHANGED: "CHANGED";
|
|
1560
|
+
DRAFTED: "DRAFTED";
|
|
1520
1561
|
}>;
|
|
1521
|
-
|
|
1562
|
+
slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1522
1563
|
draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1523
1564
|
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1524
1565
|
title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
@@ -1635,12 +1676,14 @@ export declare const GetReportsIdSchema: {
|
|
|
1635
1676
|
}, z.core.$strip>>;
|
|
1636
1677
|
}, z.core.$strip>;
|
|
1637
1678
|
}, z.core.$strip>>>, z.ZodTransform<{
|
|
1638
|
-
|
|
1679
|
+
server_id: string;
|
|
1680
|
+
client_id: string;
|
|
1681
|
+
display_seq: number;
|
|
1639
1682
|
created_at: string;
|
|
1640
1683
|
updated_at: string;
|
|
1641
1684
|
published_at: string | null;
|
|
1642
|
-
state: "DISCARDED" | "
|
|
1643
|
-
|
|
1685
|
+
state: "DISCARDED" | "PUBLISHED" | "CHANGED" | "DRAFTED";
|
|
1686
|
+
slug: string | null;
|
|
1644
1687
|
draft_content: {
|
|
1645
1688
|
published_at: string | null;
|
|
1646
1689
|
title: string | null;
|
|
@@ -1689,12 +1732,14 @@ export declare const GetReportsIdSchema: {
|
|
|
1689
1732
|
}[];
|
|
1690
1733
|
};
|
|
1691
1734
|
} | null, {
|
|
1692
|
-
|
|
1735
|
+
server_id: string;
|
|
1736
|
+
client_id: string;
|
|
1737
|
+
display_seq: number;
|
|
1693
1738
|
created_at: string;
|
|
1694
1739
|
updated_at: string;
|
|
1695
1740
|
published_at: string | null;
|
|
1696
|
-
state: "DISCARDED" | "
|
|
1697
|
-
|
|
1741
|
+
state: "DISCARDED" | "PUBLISHED" | "CHANGED" | "DRAFTED";
|
|
1742
|
+
slug: string | null;
|
|
1698
1743
|
draft_content: {
|
|
1699
1744
|
published_at: string | null;
|
|
1700
1745
|
title: string | null;
|
|
@@ -1744,4 +1789,117 @@ export declare const GetReportsIdSchema: {
|
|
|
1744
1789
|
};
|
|
1745
1790
|
} | null | undefined>>;
|
|
1746
1791
|
};
|
|
1747
|
-
export {
|
|
1792
|
+
export declare const GetPinsSchema: {
|
|
1793
|
+
endpoint: ApiEndpoint.PINS;
|
|
1794
|
+
method: ApiRestMethod;
|
|
1795
|
+
payload: z.ZodNever;
|
|
1796
|
+
response: z.ZodObject<{
|
|
1797
|
+
assemblies: z.ZodArray<z.ZodObject<{
|
|
1798
|
+
id: z.ZodUUID;
|
|
1799
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1800
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1801
|
+
image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1802
|
+
has_image: z.ZodBoolean;
|
|
1803
|
+
user_id: z.ZodUUID;
|
|
1804
|
+
published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1805
|
+
name: z.ZodString;
|
|
1806
|
+
about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1807
|
+
topics: z.ZodArray<z.ZodString>;
|
|
1808
|
+
country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1809
|
+
hide: z.ZodDefault<z.ZodBoolean>;
|
|
1810
|
+
}, z.core.$strip>>;
|
|
1811
|
+
pins: z.ZodArray<z.ZodObject<{
|
|
1812
|
+
id: z.ZodUUID;
|
|
1813
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1814
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1815
|
+
country: z.ZodString;
|
|
1816
|
+
text: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1817
|
+
hide: z.ZodBoolean;
|
|
1818
|
+
image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1819
|
+
has_image: z.ZodBoolean;
|
|
1820
|
+
}, z.core.$strip>>;
|
|
1821
|
+
}, z.core.$strip>;
|
|
1822
|
+
};
|
|
1823
|
+
export declare const PostPinSchema: {
|
|
1824
|
+
endpoint: ApiEndpoint.PINS;
|
|
1825
|
+
method: ApiRestMethod;
|
|
1826
|
+
payload: z.ZodObject<{
|
|
1827
|
+
country: z.ZodString;
|
|
1828
|
+
email: z.ZodString;
|
|
1829
|
+
text: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1830
|
+
}, z.core.$strip>;
|
|
1831
|
+
response: z.ZodObject<{
|
|
1832
|
+
id: z.ZodUUID;
|
|
1833
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1834
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1835
|
+
country: z.ZodString;
|
|
1836
|
+
text: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1837
|
+
hide: z.ZodBoolean;
|
|
1838
|
+
image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1839
|
+
has_image: z.ZodBoolean;
|
|
1840
|
+
}, z.core.$strip>;
|
|
1841
|
+
};
|
|
1842
|
+
export declare const PatchPinHideSchema: {
|
|
1843
|
+
endpoint: "/pins/:id/hide";
|
|
1844
|
+
method: ApiRestMethod;
|
|
1845
|
+
payload: z.ZodNever;
|
|
1846
|
+
response: z.ZodObject<{
|
|
1847
|
+
id: z.ZodUUID;
|
|
1848
|
+
created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1849
|
+
updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
|
|
1850
|
+
country: z.ZodString;
|
|
1851
|
+
text: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1852
|
+
hide: z.ZodBoolean;
|
|
1853
|
+
image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
1854
|
+
has_image: z.ZodBoolean;
|
|
1855
|
+
}, z.core.$strip>;
|
|
1856
|
+
};
|
|
1857
|
+
export declare const GetPingSchema: {
|
|
1858
|
+
endpoint: ApiEndpoint.PING;
|
|
1859
|
+
method: ApiRestMethod;
|
|
1860
|
+
payload: z.ZodNever;
|
|
1861
|
+
response: z.ZodNever;
|
|
1862
|
+
};
|
|
1863
|
+
export declare const PostLogsInfoSchema: {
|
|
1864
|
+
endpoint: "/logs/info";
|
|
1865
|
+
method: ApiRestMethod;
|
|
1866
|
+
payload: z.ZodObject<{
|
|
1867
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1868
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
1869
|
+
metadata: z.ZodObject<{
|
|
1870
|
+
origin: z.ZodString;
|
|
1871
|
+
route: z.ZodString;
|
|
1872
|
+
status: z.ZodNumber;
|
|
1873
|
+
}, z.core.$strip>;
|
|
1874
|
+
}, z.core.$strip>;
|
|
1875
|
+
response: z.ZodString;
|
|
1876
|
+
};
|
|
1877
|
+
export declare const PostLogsErrorSchema: {
|
|
1878
|
+
endpoint: "/logs/error";
|
|
1879
|
+
method: ApiRestMethod;
|
|
1880
|
+
payload: z.ZodObject<{
|
|
1881
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1882
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
1883
|
+
metadata: z.ZodObject<{
|
|
1884
|
+
origin: z.ZodString;
|
|
1885
|
+
route: z.ZodString;
|
|
1886
|
+
status: z.ZodNumber;
|
|
1887
|
+
}, z.core.$strip>;
|
|
1888
|
+
}, z.core.$strip>;
|
|
1889
|
+
response: z.ZodString;
|
|
1890
|
+
};
|
|
1891
|
+
export declare const PostRegisterSchema: {
|
|
1892
|
+
endpoint: ApiEndpoint.REGISTER;
|
|
1893
|
+
method: ApiRestMethod;
|
|
1894
|
+
payload: z.ZodObject<{
|
|
1895
|
+
type: z.ZodLiteral<"user.created">;
|
|
1896
|
+
object: z.ZodLiteral<"event">;
|
|
1897
|
+
data: z.ZodObject<{
|
|
1898
|
+
id: z.ZodString;
|
|
1899
|
+
email_addresses: z.ZodArray<z.ZodObject<{
|
|
1900
|
+
email_address: z.ZodString;
|
|
1901
|
+
}, z.core.$strip>>;
|
|
1902
|
+
}, z.core.$strip>;
|
|
1903
|
+
}, z.core.$strip>;
|
|
1904
|
+
response: z.ZodString;
|
|
1905
|
+
};
|