@assemblis/contracts 0.2.4 → 0.2.5

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 CHANGED
@@ -1 +1 @@
1
- import e from"zod";var t,a,n,r,o;!function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH"}(t||(t={})),function(e){e.ID=":ID",e.NAME=":NAME"}(a||(a={})),function(e){e.ACCOUNT_REPORTS="/account/reports",e.ASSEMBLIES="/assemblies",e.FEEDBACK="/feedback",e.INTEREST="/interest",e.INTEREST_ASSEMBLIS="/interest/assemblis",e.LOGS="/logs",e.PINS="/pins",e.REPORTS="/reports",e.SURVEYS="/surveys",e.SURVEY_RESPONSES="/assemblies/:ID/survey-responses/:NAME"}(n||(n={})),function(e){e.DISCARDED="DISCARDED",e.DRAFTED="DRAFT",e.PUBLISHED="PUBLISHED",e.CHANGED="CHANGED"}(r||(r={})),function(e){e.DELIBERATION="deliberation",e.DEMOGRAPHIC_DATA="demographic-data",e.PRE_ASSEMBLY="pre-assembly",e.POST_ASSEMBLY="post-assembly"}(o||(o={}));const i=e.coerce.date().transform(e=>e.toISOString()),s=e=>e.nullish().transform(e=>e??null),d={payload:e.object({route:e.string(),text:e.string(),metadata:e.unknown()}),response:e.string()},c={payload:e.object({type:e.literal("user.created"),object:e.literal("event"),data:e.object({id:e.string(),email_addresses:e.object({email_address:e.string()}).array()})}),response:e.string()},p=e.object({id:e.uuid(),text:e.string()}),l={payload:e.undefined(),response:e.object({id:e.uuid(),created_at:i,updated_at:i,name:e.string(),sections:e.object({primary:p,secondary:p.array(),options:U.array()}).array()})},u={payload:e.object({answers:e.object({question_id:e.uuid(),answer_value:e.coerce.number().int()}).array()}),response:e.object({total:e.number().int()})},_=e.object({visible_on_profile:e.boolean(),description:s(e.string())}),b=e.object({text:e.string(),agreed:s(e.coerce.number().int()),against:s(e.coerce.number().int()),abstained:s(e.coerce.number().int()),include_in_action_plan:e.boolean().default(!0),assembly_id:e.uuid()}),g=e.object({text:e.string(),complete:e.boolean().default(!1),action_id:e.uuid(),assembly_id:e.uuid()}),m=e.object({published_at:s(i),name:e.string(),about:s(e.string()),topics:e.string().array(),country:s(e.string()),hide:e.boolean().default(!1)}),y={payload:m,response:m.extend({id:e.uuid(),created_at:i,updated_at:i,image_src:s(e.string()),has_image:e.boolean().meta({deprecated:!0}),user_id:e.uuid().meta({deprecated:!0})})},S={payload:e.undefined(),response:e.object({assemblies:y.response.array()})},E=e.object({visible_on_profile:e.boolean(),name:s(e.string()),description:s(e.string()),type:s(e.string())}),T=e.object({visible_on_profile:e.boolean(),registration_link:s(e.string()),start_date:s(i)}),f=e.object({visible_on_profile:e.boolean(),background:s(e.string())}),j=e.object({visible_on_profile:e.boolean(),organisation_types:e.string().array(),description:s(e.string())}),O=e.object({visible_on_profile:e.boolean(),organisation_types:e.string().array(),description:s(e.string())}),R=e.object({visible_on_profile:e.boolean(),decision_method:s(e.string())}),h=e.object({visible_on_profile:e.boolean(),recruitment_method:s(e.string()),community:s(e.string())}),A=e.object({visible_on_profile:e.boolean(),support_options:e.string().array()}),v=e.object({visible_on_profile:e.boolean()}),P={payload:y.payload.extend({organisation:s(E.extend({id:e.uuid().optional()})),event_details:s(T),story:s(f),supporters:s(j),funders:s(O),facilitation:s(R),participants:s(h),support:s(A),action_plan:s(_.extend({actions:b.omit({assembly_id:!0}).extend({id:e.uuid().optional(),tasks:g.omit({action_id:!0,assembly_id:!0}).extend({id:e.uuid().optional()}).array(),updates:e.unknown().array()}).array(),updates:e.unknown().array()})),surveys:s(v)}),response:y.response.omit({user_id:!0}).extend({is_own:e.boolean(),organisation:s(E.extend({id:e.uuid(),created_at:i,updated_at:i})),event_details:s(T.extend({created_at:i,updated_at:i})),story:s(f.extend({created_at:i,updated_at:i})),supporters:s(j.extend({created_at:i,updated_at:i})),funders:s(O.extend({created_at:i,updated_at:i})),facilitation:s(R.extend({created_at:i,updated_at:i})),participants:s(h.extend({created_at:i,updated_at:i})),support:s(A.extend({created_at:i,updated_at:i})),action_plan:s(_.extend({actions:b.omit({assembly_id:!0}).extend({id:e.uuid(),created_at:i,updated_at:e.coerce.date().transform(e=>e.toISOString()),tasks:g.omit({action_id:!0,assembly_id:!0}).extend({id:e.uuid(),created_at:e.coerce.date().transform(e=>e.toISOString()),updated_at:e.coerce.date().transform(e=>e.toISOString())}).array(),updates:e.unknown().array()}).extend({created_at:e.coerce.date().transform(e=>e.toISOString()),updated_at:e.coerce.date().transform(e=>e.toISOString())}).array(),updates:e.unknown().array()}).and(e.object({created_at:e.coerce.date().transform(e=>e.toISOString()),updated_at:e.coerce.date().transform(e=>e.toISOString())}))),surveys:s(v.extend({created_at:e.coerce.date().transform(e=>e.toISOString()),updated_at:e.coerce.date().transform(e=>e.toISOString())}).extend({data:e.record(e.string(),e.object({total:e.number().int(),responses:e.record(e.string(),U.array())}))}))})},C={payload:e.object({country:e.string(),email:e.string(),text:s(e.string())}),response:e.object({id:e.uuid(),created_at:e.coerce.date().transform(e=>e.toISOString()),updated_at:e.coerce.date().transform(e=>e.toISOString()),country:e.string(),text:s(e.string()),hide:e.boolean(),image_src:s(e.string()),has_image:e.boolean().meta({deprecated:!0})})},I={payload:e.undefined(),response:e.object({assemblies:y.response.array(),pins:C.response.array()})},x={payload:e.object({message:e.string().optional(),data:e.record(e.string(),e.string().optional()).optional(),metadata:e.object({origin:e.string(),route:e.string(),status:e.number()})}),response:e.string()},D=e.object({id:e.uuid(),created_at:i,updated_at:i,alt:e.string(),srcset:e.string(),width:e.int(),height:e.int()}),N=e.object({recaptcha_token:e.string(),email:e.email().toLowerCase().trim(),listIds:e.int().array(),firstname:e.string().nullish().transform(e=>e??void 0),lastname:e.string().nullish().transform(e=>e??void 0),country:e.string().nullish().transform(e=>e??void 0),organisation:e.string().nullish().transform(e=>e??void 0)}),U=e.object({label:e.string(),value:e.coerce.number().int()}),$=e.object({published_at:s(i),title:s(e.string()),description:s(e.string()),location:s(e.string()),outputs:s(e.string().array()),initiation_type:s(e.string()),recruitment_method:s(e.string()),recruitment_description:s(e.string()),participant_count:s(e.int()),organiser_reflections:s(e.string()),organiser_report_url:s(e.string()),location_details:s(e.string()),date:s(e.string()),duration:s(e.int()),contact_information_url:s(e.string()),cover_image_id:s(e.string())}),k=e.object({server_id:e.uuid(),client_id:e.uuid(),display_seq:e.int(),created_at:i,updated_at:i,published_at:s(i),state:e.enum(["DISCARDED","DRAFTED","PUBLISHED","CHANGED"]),slug:s(e.string()),draft_content:s($),published_content:s($),media:e.object({images:D.array()})}),H=e.object({id:e.uuid(),created_at:i,updated_at:i,sub:e.string(),is_mutirao:e.boolean()}),G={endpoint:()=>n.ACCOUNT_REPORTS,method:t.GET,payload:e.never(),response:e.object({reports:k.array(),total:e.int()})},w={endpoint:e=>`${n.ACCOUNT_REPORTS}/${e}`,method:t.GET,payload:e.never(),response:s(k)},L={endpoint:()=>n.ACCOUNT_REPORTS,method:t.POST,payload:e.object({client_id:e.uuid(),content:s($.omit({cover_image_id:!0}))}),response:k},B={endpoint:e=>`${n.ACCOUNT_REPORTS}/${e}/content`,method:t.PUT,payload:$.omit({published_at:!0,cover_image_id:!0}),response:k},M={endpoint:e=>`${n.ACCOUNT_REPORTS}/${e}/discard`,method:t.PATCH,payload:e.nullish(e.object()),response:s(k)},F={endpoint:e=>`${n.ACCOUNT_REPORTS}/${e}/publish`,method:t.PATCH,payload:e.object({published_at:i}),response:k},Y={endpoint:e=>`${n.ACCOUNT_REPORTS}/${e}/unpublish`,method:t.PATCH,payload:e.nullish(e.object()),response:k},q={endpoint:e=>`${n.ACCOUNT_REPORTS}/${e}/cover-image`,method:t.POST,payload:D.pick({alt:!0}),response:k},V={endpoint:()=>n.INTEREST,method:t.POST,payload:N,response:e.string()},z={endpoint:()=>n.REPORTS,method:t.GET,payload:e.never(),response:e.object({reports:k.array()})},K={endpoint:e=>`${n.REPORTS}/${e}`,method:t.GET,payload:e.never(),response:s(k)};export{n as ApiEndpoint,t as ApiRestMethod,a as ApiRouteParameter,S as AssembliesListSchema,P as AssemblyDetailSchema,y as AssemblyOverviewSchema,d as FeedbackSchema,w as GetAccountReportsIdSchema,G as GetAccountReportsSchema,K as GetReportsIdSchema,z as GetReportsSchema,D as ImageSchema,N as InterestSchema,x as LogSchema,U as OptionSchema,M as PatchAccountReportsIdDiscardSchema,F as PatchAccountReportsIdPublishSchema,Y as PatchAccountReportsIdUnpublishSchema,I as PinListSchema,C as PinSchema,q as PostAccountReportsIdCoverImageSchema,L as PostAccountReportsSchema,V as PostInterestSchema,B as PutAccountReportsIdContentSchema,c as RegisterSchema,$ as ReportContentSchema,k as ReportSchema,r as ReportState,o as SurveyName,u as SurveyResponseSchema,l as SurveySchema,H as UserSchema};
1
+ import e from"zod";var t,a,n,r,o;!function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH"}(t||(t={})),function(e){e.ID=":ID",e.NAME=":NAME"}(a||(a={})),function(e){e.ACCOUNT_REPORTS="/account/reports",e.ASSEMBLIES="/assemblies",e.FEEDBACK="/feedback",e.INTEREST="/interest",e.INTEREST_ASSEMBLIS="/interest/assemblis",e.LOGS="/logs",e.PINS="/pins",e.REPORTS="/reports",e.SURVEYS="/surveys",e.SURVEY_RESPONSES="/assemblies/:ID/survey-responses/:NAME"}(n||(n={})),function(e){e.DISCARDED="DISCARDED",e.DRAFTED="DRAFT",e.PUBLISHED="PUBLISHED",e.CHANGED="CHANGED"}(r||(r={})),function(e){e.DELIBERATION="deliberation",e.DEMOGRAPHIC_DATA="demographic-data",e.PRE_ASSEMBLY="pre-assembly",e.POST_ASSEMBLY="post-assembly"}(o||(o={}));const i=e.coerce.date().transform(e=>e.toISOString()),s=e=>e.nullish().transform(e=>e??null),d=e.object({id:e.uuid(),created_at:i,updated_at:i,alt:e.string(),srcset:e.string(),width:e.int(),height:e.int()}),c=e.object({recaptcha_token:e.string(),email:e.email().toLowerCase().trim(),listIds:e.int().array(),firstname:e.string().nullish().transform(e=>e??void 0),lastname:e.string().nullish().transform(e=>e??void 0),country:e.string().nullish().transform(e=>e??void 0),organisation:e.string().nullish().transform(e=>e??void 0)}),p=e.object({label:e.string(),value:e.coerce.number().int()}),l=e.object({published_at:s(i),title:s(e.string()),description:s(e.string()),location:s(e.string()),outputs:s(e.string().array()),initiation_type:s(e.string()),recruitment_method:s(e.string()),recruitment_description:s(e.string()),participant_count:s(e.int()),organiser_reflections:s(e.string()),organiser_report_url:s(e.string()),location_details:s(e.string()),date:s(e.string()),duration:s(e.int()),contact_information_url:s(e.string()),cover_image_id:s(e.string())}),u=e.object({id:e.uuid(),created_at:i,updated_at:i,published_at:s(i),state:e.enum(["DISCARDED","DRAFTED","PUBLISHED","CHANGED"]),viewer_password:e.string(),draft_content:s(l),published_content:s(l),media:e.object({images:d.array()})});e.object({id:e.uuid(),created_at:i,updated_at:i,sub:e.string(),is_mutirao:e.boolean()});const _={endpoint:()=>n.ACCOUNT_REPORTS,method:t.GET,payload:e.never(),response:e.object({reports:u.array(),total:e.int()})},b={endpoint:e=>`${n.ACCOUNT_REPORTS}/${e}`,method:t.GET,payload:e.never(),response:s(u)},g={endpoint:()=>n.ACCOUNT_REPORTS,method:t.POST,payload:e.object({client_id:e.uuid(),content:s(l.omit({cover_image_id:!0}))}),response:u},m={endpoint:e=>`${n.ACCOUNT_REPORTS}/${e}/content`,method:t.PUT,payload:l.omit({published_at:!0,cover_image_id:!0}),response:u},y={endpoint:e=>`${n.ACCOUNT_REPORTS}/${e}/discard`,method:t.PATCH,payload:e.nullish(e.object()),response:s(u)},S={endpoint:e=>`${n.ACCOUNT_REPORTS}/${e}/publish`,method:t.PATCH,payload:e.object({published_at:i}),response:u},E={endpoint:e=>`${n.ACCOUNT_REPORTS}/${e}/unpublish`,method:t.PATCH,payload:e.nullish(e.object()),response:u},T={endpoint:e=>`${n.ACCOUNT_REPORTS}/${e}/cover-image`,method:t.POST,payload:d.pick({alt:!0}),response:u},f={endpoint:()=>n.INTEREST,method:t.POST,payload:c,response:e.string()},j={endpoint:()=>n.REPORTS,method:t.GET,payload:e.never(),response:e.object({reports:u.array()})},O={endpoint:e=>`${n.REPORTS}/${e}`,method:t.GET,payload:e.never(),response:s(u)},R={payload:e.object({route:e.string(),text:e.string(),metadata:e.unknown()}),response:e.string()},h={payload:e.object({message:e.string().optional(),data:e.record(e.string(),e.string().optional()).optional(),metadata:e.object({origin:e.string(),route:e.string(),status:e.number()})}),response:e.string()},A={payload:e.object({type:e.literal("user.created"),object:e.literal("event"),data:e.object({id:e.string(),email_addresses:e.object({email_address:e.string()}).array()})}),response:e.string()},v=e.object({id:e.uuid(),text:e.string()}),P={payload:e.undefined(),response:e.object({id:e.uuid(),created_at:i,updated_at:i,name:e.string(),sections:e.object({primary:v,secondary:v.array(),options:p.array()}).array()})},C={payload:e.object({answers:e.object({question_id:e.uuid(),answer_value:e.coerce.number().int()}).array()}),response:e.object({total:e.number().int()})},I=e.object({visible_on_profile:e.boolean(),description:s(e.string())}),x=e.object({text:e.string(),agreed:s(e.coerce.number().int()),against:s(e.coerce.number().int()),abstained:s(e.coerce.number().int()),include_in_action_plan:e.boolean().default(!0),assembly_id:e.uuid()}),D=e.object({text:e.string(),complete:e.boolean().default(!1),action_id:e.uuid(),assembly_id:e.uuid()}),N=e.object({published_at:s(i),name:e.string(),about:s(e.string()),topics:e.string().array(),country:s(e.string()),hide:e.boolean().default(!1)}),U={payload:N,response:N.extend({id:e.uuid(),created_at:i,updated_at:i,image_src:s(e.string()),has_image:e.boolean().meta({deprecated:!0}),user_id:e.uuid().meta({deprecated:!0})})},$={payload:e.undefined(),response:e.object({assemblies:U.response.array()})},k=e.object({visible_on_profile:e.boolean(),name:s(e.string()),description:s(e.string()),type:s(e.string())}),w=e.object({visible_on_profile:e.boolean(),registration_link:s(e.string()),start_date:s(i)}),H=e.object({visible_on_profile:e.boolean(),background:s(e.string())}),G=e.object({visible_on_profile:e.boolean(),organisation_types:e.string().array(),description:s(e.string())}),L=e.object({visible_on_profile:e.boolean(),organisation_types:e.string().array(),description:s(e.string())}),B=e.object({visible_on_profile:e.boolean(),decision_method:s(e.string())}),M=e.object({visible_on_profile:e.boolean(),recruitment_method:s(e.string()),community:s(e.string())}),F=e.object({visible_on_profile:e.boolean(),support_options:e.string().array()}),Y=e.object({visible_on_profile:e.boolean()}),V={payload:U.payload.extend({organisation:s(k.extend({id:e.uuid().optional()})),event_details:s(w),story:s(H),supporters:s(G),funders:s(L),facilitation:s(B),participants:s(M),support:s(F),action_plan:s(I.extend({actions:x.omit({assembly_id:!0}).extend({id:e.uuid().optional(),tasks:D.omit({action_id:!0,assembly_id:!0}).extend({id:e.uuid().optional()}).array(),updates:e.unknown().array()}).array(),updates:e.unknown().array()})),surveys:s(Y)}),response:U.response.omit({user_id:!0}).extend({is_own:e.boolean(),organisation:s(k.extend({id:e.uuid(),created_at:i,updated_at:i})),event_details:s(w.extend({created_at:i,updated_at:i})),story:s(H.extend({created_at:i,updated_at:i})),supporters:s(G.extend({created_at:i,updated_at:i})),funders:s(L.extend({created_at:i,updated_at:i})),facilitation:s(B.extend({created_at:i,updated_at:i})),participants:s(M.extend({created_at:i,updated_at:i})),support:s(F.extend({created_at:i,updated_at:i})),action_plan:s(I.extend({actions:x.omit({assembly_id:!0}).extend({id:e.uuid(),created_at:i,updated_at:e.coerce.date().transform(e=>e.toISOString()),tasks:D.omit({action_id:!0,assembly_id:!0}).extend({id:e.uuid(),created_at:e.coerce.date().transform(e=>e.toISOString()),updated_at:e.coerce.date().transform(e=>e.toISOString())}).array(),updates:e.unknown().array()}).extend({created_at:e.coerce.date().transform(e=>e.toISOString()),updated_at:e.coerce.date().transform(e=>e.toISOString())}).array(),updates:e.unknown().array()}).and(e.object({created_at:e.coerce.date().transform(e=>e.toISOString()),updated_at:e.coerce.date().transform(e=>e.toISOString())}))),surveys:s(Y.extend({created_at:e.coerce.date().transform(e=>e.toISOString()),updated_at:e.coerce.date().transform(e=>e.toISOString())}).extend({data:e.record(e.string(),e.object({total:e.number().int(),responses:e.record(e.string(),p.array())}))}))})},q={payload:e.object({country:e.string(),email:e.string(),text:s(e.string())}),response:e.object({id:e.uuid(),created_at:e.coerce.date().transform(e=>e.toISOString()),updated_at:e.coerce.date().transform(e=>e.toISOString()),country:e.string(),text:s(e.string()),hide:e.boolean(),image_src:s(e.string()),has_image:e.boolean().meta({deprecated:!0})})},z={payload:e.undefined(),response:e.object({assemblies:U.response.array(),pins:q.response.array()})};export{n as ApiEndpoint,t as ApiRestMethod,a as ApiRouteParameter,$ as AssembliesListSchema,V as AssemblyDetailSchema,U as AssemblyOverviewSchema,R as FeedbackSchema,b as GetAccountReportsIdSchema,_ as GetAccountReportsSchema,O as GetReportsIdSchema,j as GetReportsSchema,h as LogSchema,y as PatchAccountReportsIdDiscardSchema,S as PatchAccountReportsIdPublishSchema,E as PatchAccountReportsIdUnpublishSchema,z as PinListSchema,q as PinSchema,T as PostAccountReportsIdCoverImageSchema,g as PostAccountReportsSchema,f as PostInterestSchema,m as PutAccountReportsIdContentSchema,A as RegisterSchema,r as ReportState,o as SurveyName,C as SurveyResponseSchema,P as SurveySchema};
@@ -7,9 +7,7 @@ export declare const GetAccountReportsSchema: {
7
7
  payload: z.ZodNever;
8
8
  response: z.ZodObject<{
9
9
  reports: z.ZodArray<z.ZodObject<{
10
- server_id: z.ZodUUID;
11
- client_id: z.ZodUUID;
12
- display_seq: z.ZodInt;
10
+ id: z.ZodUUID;
13
11
  created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
14
12
  updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
15
13
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -19,7 +17,7 @@ export declare const GetAccountReportsSchema: {
19
17
  PUBLISHED: "PUBLISHED";
20
18
  CHANGED: "CHANGED";
21
19
  }>;
22
- slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
20
+ viewer_password: z.ZodString;
23
21
  draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
24
22
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
25
23
  title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -144,9 +142,7 @@ export declare const GetAccountReportsIdSchema: {
144
142
  method: ApiRestMethod;
145
143
  payload: z.ZodNever;
146
144
  response: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
147
- server_id: z.ZodUUID;
148
- client_id: z.ZodUUID;
149
- display_seq: z.ZodInt;
145
+ id: z.ZodUUID;
150
146
  created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
151
147
  updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
152
148
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -156,7 +152,7 @@ export declare const GetAccountReportsIdSchema: {
156
152
  PUBLISHED: "PUBLISHED";
157
153
  CHANGED: "CHANGED";
158
154
  }>;
159
- slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
155
+ viewer_password: z.ZodString;
160
156
  draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
161
157
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
162
158
  title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -273,14 +269,12 @@ export declare const GetAccountReportsIdSchema: {
273
269
  }, z.core.$strip>>;
274
270
  }, z.core.$strip>;
275
271
  }, z.core.$strip>>>, z.ZodTransform<{
276
- server_id: string;
277
- client_id: string;
278
- display_seq: number;
272
+ id: string;
279
273
  created_at: string;
280
274
  updated_at: string;
281
275
  published_at: string | null;
282
276
  state: "DISCARDED" | "DRAFTED" | "PUBLISHED" | "CHANGED";
283
- slug: string | null;
277
+ viewer_password: string;
284
278
  draft_content: {
285
279
  published_at: string | null;
286
280
  title: string | null;
@@ -329,14 +323,12 @@ export declare const GetAccountReportsIdSchema: {
329
323
  }[];
330
324
  };
331
325
  } | null, {
332
- server_id: string;
333
- client_id: string;
334
- display_seq: number;
326
+ id: string;
335
327
  created_at: string;
336
328
  updated_at: string;
337
329
  published_at: string | null;
338
330
  state: "DISCARDED" | "DRAFTED" | "PUBLISHED" | "CHANGED";
339
- slug: string | null;
331
+ viewer_password: string;
340
332
  draft_content: {
341
333
  published_at: string | null;
342
334
  title: string | null;
@@ -393,9 +385,9 @@ export declare const PostAccountReportsSchema: {
393
385
  client_id: z.ZodUUID;
394
386
  content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
395
387
  date: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
388
+ published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
396
389
  title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
397
390
  description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
398
- published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
399
391
  location: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
400
392
  outputs: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>, z.ZodTransform<string[] | null, string[] | null | undefined>>;
401
393
  initiation_type: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -409,9 +401,9 @@ export declare const PostAccountReportsSchema: {
409
401
  contact_information_url: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
410
402
  }, z.core.$strip>>>, z.ZodTransform<{
411
403
  date: string | null;
404
+ published_at: string | null;
412
405
  title: string | null;
413
406
  description: string | null;
414
- published_at: string | null;
415
407
  location: string | null;
416
408
  outputs: string[] | null;
417
409
  initiation_type: string | null;
@@ -425,9 +417,9 @@ export declare const PostAccountReportsSchema: {
425
417
  contact_information_url: string | null;
426
418
  } | null, {
427
419
  date: string | null;
420
+ published_at: string | null;
428
421
  title: string | null;
429
422
  description: string | null;
430
- published_at: string | null;
431
423
  location: string | null;
432
424
  outputs: string[] | null;
433
425
  initiation_type: string | null;
@@ -442,9 +434,7 @@ export declare const PostAccountReportsSchema: {
442
434
  } | null | undefined>>;
443
435
  }, z.core.$strip>;
444
436
  response: z.ZodObject<{
445
- server_id: z.ZodUUID;
446
- client_id: z.ZodUUID;
447
- display_seq: z.ZodInt;
437
+ id: z.ZodUUID;
448
438
  created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
449
439
  updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
450
440
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -454,7 +444,7 @@ export declare const PostAccountReportsSchema: {
454
444
  PUBLISHED: "PUBLISHED";
455
445
  CHANGED: "CHANGED";
456
446
  }>;
457
- slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
447
+ viewer_password: z.ZodString;
458
448
  draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
459
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>>;
460
450
  title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -592,9 +582,7 @@ export declare const PutAccountReportsIdContentSchema: {
592
582
  contact_information_url: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
593
583
  }, z.core.$strip>;
594
584
  response: z.ZodObject<{
595
- server_id: z.ZodUUID;
596
- client_id: z.ZodUUID;
597
- display_seq: z.ZodInt;
585
+ id: z.ZodUUID;
598
586
  created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
599
587
  updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
600
588
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -604,7 +592,7 @@ export declare const PutAccountReportsIdContentSchema: {
604
592
  PUBLISHED: "PUBLISHED";
605
593
  CHANGED: "CHANGED";
606
594
  }>;
607
- slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
595
+ viewer_password: z.ZodString;
608
596
  draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
609
597
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
610
598
  title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -727,9 +715,7 @@ export declare const PatchAccountReportsIdDiscardSchema: {
727
715
  method: ApiRestMethod;
728
716
  payload: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
729
717
  response: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
730
- server_id: z.ZodUUID;
731
- client_id: z.ZodUUID;
732
- display_seq: z.ZodInt;
718
+ id: z.ZodUUID;
733
719
  created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
734
720
  updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
735
721
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -739,7 +725,7 @@ export declare const PatchAccountReportsIdDiscardSchema: {
739
725
  PUBLISHED: "PUBLISHED";
740
726
  CHANGED: "CHANGED";
741
727
  }>;
742
- slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
728
+ viewer_password: z.ZodString;
743
729
  draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
744
730
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
745
731
  title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -856,14 +842,12 @@ export declare const PatchAccountReportsIdDiscardSchema: {
856
842
  }, z.core.$strip>>;
857
843
  }, z.core.$strip>;
858
844
  }, z.core.$strip>>>, z.ZodTransform<{
859
- server_id: string;
860
- client_id: string;
861
- display_seq: number;
845
+ id: string;
862
846
  created_at: string;
863
847
  updated_at: string;
864
848
  published_at: string | null;
865
849
  state: "DISCARDED" | "DRAFTED" | "PUBLISHED" | "CHANGED";
866
- slug: string | null;
850
+ viewer_password: string;
867
851
  draft_content: {
868
852
  published_at: string | null;
869
853
  title: string | null;
@@ -912,14 +896,12 @@ export declare const PatchAccountReportsIdDiscardSchema: {
912
896
  }[];
913
897
  };
914
898
  } | null, {
915
- server_id: string;
916
- client_id: string;
917
- display_seq: number;
899
+ id: string;
918
900
  created_at: string;
919
901
  updated_at: string;
920
902
  published_at: string | null;
921
903
  state: "DISCARDED" | "DRAFTED" | "PUBLISHED" | "CHANGED";
922
- slug: string | null;
904
+ viewer_password: string;
923
905
  draft_content: {
924
906
  published_at: string | null;
925
907
  title: string | null;
@@ -976,9 +958,7 @@ export declare const PatchAccountReportsIdPublishSchema: {
976
958
  published_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
977
959
  }, z.core.$strip>;
978
960
  response: z.ZodObject<{
979
- server_id: z.ZodUUID;
980
- client_id: z.ZodUUID;
981
- display_seq: z.ZodInt;
961
+ id: z.ZodUUID;
982
962
  created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
983
963
  updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
984
964
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -988,7 +968,7 @@ export declare const PatchAccountReportsIdPublishSchema: {
988
968
  PUBLISHED: "PUBLISHED";
989
969
  CHANGED: "CHANGED";
990
970
  }>;
991
- slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
971
+ viewer_password: z.ZodString;
992
972
  draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
993
973
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
994
974
  title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -1111,9 +1091,7 @@ export declare const PatchAccountReportsIdUnpublishSchema: {
1111
1091
  method: ApiRestMethod;
1112
1092
  payload: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
1113
1093
  response: z.ZodObject<{
1114
- server_id: z.ZodUUID;
1115
- client_id: z.ZodUUID;
1116
- display_seq: z.ZodInt;
1094
+ id: z.ZodUUID;
1117
1095
  created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
1118
1096
  updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
1119
1097
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -1123,7 +1101,7 @@ export declare const PatchAccountReportsIdUnpublishSchema: {
1123
1101
  PUBLISHED: "PUBLISHED";
1124
1102
  CHANGED: "CHANGED";
1125
1103
  }>;
1126
- slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
1104
+ viewer_password: z.ZodString;
1127
1105
  draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1128
1106
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
1129
1107
  title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -1248,9 +1226,7 @@ export declare const PostAccountReportsIdCoverImageSchema: {
1248
1226
  alt: z.ZodString;
1249
1227
  }, z.core.$strip>;
1250
1228
  response: z.ZodObject<{
1251
- server_id: z.ZodUUID;
1252
- client_id: z.ZodUUID;
1253
- display_seq: z.ZodInt;
1229
+ id: z.ZodUUID;
1254
1230
  created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
1255
1231
  updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
1256
1232
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -1260,7 +1236,7 @@ export declare const PostAccountReportsIdCoverImageSchema: {
1260
1236
  PUBLISHED: "PUBLISHED";
1261
1237
  CHANGED: "CHANGED";
1262
1238
  }>;
1263
- slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
1239
+ viewer_password: z.ZodString;
1264
1240
  draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1265
1241
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
1266
1242
  title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -1398,9 +1374,7 @@ export declare const GetReportsSchema: {
1398
1374
  payload: z.ZodNever;
1399
1375
  response: z.ZodObject<{
1400
1376
  reports: z.ZodArray<z.ZodObject<{
1401
- server_id: z.ZodUUID;
1402
- client_id: z.ZodUUID;
1403
- display_seq: z.ZodInt;
1377
+ id: z.ZodUUID;
1404
1378
  created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
1405
1379
  updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
1406
1380
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -1410,7 +1384,7 @@ export declare const GetReportsSchema: {
1410
1384
  PUBLISHED: "PUBLISHED";
1411
1385
  CHANGED: "CHANGED";
1412
1386
  }>;
1413
- slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
1387
+ viewer_password: z.ZodString;
1414
1388
  draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1415
1389
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
1416
1390
  title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -1534,9 +1508,7 @@ export declare const GetReportsIdSchema: {
1534
1508
  method: ApiRestMethod;
1535
1509
  payload: z.ZodNever;
1536
1510
  response: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1537
- server_id: z.ZodUUID;
1538
- client_id: z.ZodUUID;
1539
- display_seq: z.ZodInt;
1511
+ id: z.ZodUUID;
1540
1512
  created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
1541
1513
  updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
1542
1514
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -1546,7 +1518,7 @@ export declare const GetReportsIdSchema: {
1546
1518
  PUBLISHED: "PUBLISHED";
1547
1519
  CHANGED: "CHANGED";
1548
1520
  }>;
1549
- slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
1521
+ viewer_password: z.ZodString;
1550
1522
  draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1551
1523
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
1552
1524
  title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -1663,14 +1635,12 @@ export declare const GetReportsIdSchema: {
1663
1635
  }, z.core.$strip>>;
1664
1636
  }, z.core.$strip>;
1665
1637
  }, z.core.$strip>>>, z.ZodTransform<{
1666
- server_id: string;
1667
- client_id: string;
1668
- display_seq: number;
1638
+ id: string;
1669
1639
  created_at: string;
1670
1640
  updated_at: string;
1671
1641
  published_at: string | null;
1672
1642
  state: "DISCARDED" | "DRAFTED" | "PUBLISHED" | "CHANGED";
1673
- slug: string | null;
1643
+ viewer_password: string;
1674
1644
  draft_content: {
1675
1645
  published_at: string | null;
1676
1646
  title: string | null;
@@ -1719,14 +1689,12 @@ export declare const GetReportsIdSchema: {
1719
1689
  }[];
1720
1690
  };
1721
1691
  } | null, {
1722
- server_id: string;
1723
- client_id: string;
1724
- display_seq: number;
1692
+ id: string;
1725
1693
  created_at: string;
1726
1694
  updated_at: string;
1727
1695
  published_at: string | null;
1728
1696
  state: "DISCARDED" | "DRAFTED" | "PUBLISHED" | "CHANGED";
1729
- slug: string | null;
1697
+ viewer_password: string;
1730
1698
  draft_content: {
1731
1699
  published_at: string | null;
1732
1700
  title: string | null;
@@ -1,62 +1,4 @@
1
1
  import z from 'zod';
2
- export declare const PinSchema: {
3
- payload: z.ZodObject<{
4
- country: z.ZodString;
5
- email: z.ZodString;
6
- text: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
7
- }, z.core.$strip>;
8
- response: z.ZodObject<{
9
- id: z.ZodUUID;
10
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
11
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
12
- country: z.ZodString;
13
- text: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
14
- hide: z.ZodBoolean;
15
- image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
16
- has_image: z.ZodBoolean;
17
- }, z.core.$strip>;
18
- };
19
- export declare const PinListSchema: {
20
- payload: z.ZodUndefined;
21
- response: z.ZodObject<{
22
- assemblies: z.ZodArray<z.ZodObject<{
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>>;
24
- name: z.ZodString;
25
- about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
26
- topics: z.ZodArray<z.ZodString>;
27
- country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
28
- hide: z.ZodDefault<z.ZodBoolean>;
29
- id: z.ZodUUID;
30
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
31
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
32
- image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
33
- has_image: z.ZodBoolean;
34
- user_id: z.ZodUUID;
35
- }, z.core.$strip>>;
36
- pins: z.ZodArray<z.ZodObject<{
37
- id: z.ZodUUID;
38
- created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
39
- updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
40
- country: z.ZodString;
41
- text: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
42
- hide: z.ZodBoolean;
43
- image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
44
- has_image: z.ZodBoolean;
45
- }, z.core.$strip>>;
46
- }, z.core.$strip>;
47
- };
48
- export declare const LogSchema: {
49
- payload: z.ZodObject<{
50
- message: z.ZodOptional<z.ZodString>;
51
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
52
- metadata: z.ZodObject<{
53
- origin: z.ZodString;
54
- route: z.ZodString;
55
- status: z.ZodNumber;
56
- }, z.core.$strip>;
57
- }, z.core.$strip>;
58
- response: z.ZodString;
59
- };
60
2
  export declare const ImageSchema: z.ZodObject<{
61
3
  id: z.ZodUUID;
62
4
  created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
@@ -98,9 +40,7 @@ export declare const ReportContentSchema: z.ZodObject<{
98
40
  cover_image_id: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
99
41
  }, z.core.$strip>;
100
42
  export declare const ReportSchema: z.ZodObject<{
101
- server_id: z.ZodUUID;
102
- client_id: z.ZodUUID;
103
- display_seq: z.ZodInt;
43
+ id: z.ZodUUID;
104
44
  created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
105
45
  updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
106
46
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -110,7 +50,7 @@ export declare const ReportSchema: z.ZodObject<{
110
50
  PUBLISHED: "PUBLISHED";
111
51
  CHANGED: "CHANGED";
112
52
  }>;
113
- slug: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
53
+ viewer_password: z.ZodString;
114
54
  draft_content: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
115
55
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
116
56
  title: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
@@ -1,3 +1,2 @@
1
1
  export * from './api';
2
- export * from './base';
3
2
  export * from './legacy';
@@ -7,6 +7,18 @@ export declare const FeedbackSchema: {
7
7
  }, z.core.$strip>;
8
8
  response: z.ZodString;
9
9
  };
10
+ export declare const LogSchema: {
11
+ payload: z.ZodObject<{
12
+ message: z.ZodOptional<z.ZodString>;
13
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
14
+ metadata: z.ZodObject<{
15
+ origin: z.ZodString;
16
+ route: z.ZodString;
17
+ status: z.ZodNumber;
18
+ }, z.core.$strip>;
19
+ }, z.core.$strip>;
20
+ response: z.ZodString;
21
+ };
10
22
  export declare const RegisterSchema: {
11
23
  payload: z.ZodObject<{
12
24
  type: z.ZodLiteral<"user.created">;
@@ -270,17 +282,17 @@ export declare const AssemblyDetailSchema: {
270
282
  } | null | undefined>>;
271
283
  }, z.core.$strip>;
272
284
  response: z.ZodObject<{
273
- country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
274
- id: z.ZodUUID;
275
285
  created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
276
286
  updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
277
- hide: z.ZodDefault<z.ZodBoolean>;
278
- image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
279
- has_image: z.ZodBoolean;
287
+ id: z.ZodUUID;
288
+ country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
280
289
  published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
281
290
  name: z.ZodString;
282
291
  about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
283
292
  topics: z.ZodArray<z.ZodString>;
293
+ hide: z.ZodDefault<z.ZodBoolean>;
294
+ image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
295
+ has_image: z.ZodBoolean;
284
296
  is_own: z.ZodBoolean;
285
297
  organisation: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
286
298
  visible_on_profile: z.ZodBoolean;
@@ -543,3 +555,49 @@ export declare const AssemblyDetailSchema: {
543
555
  } | null | undefined>>;
544
556
  }, z.core.$strip>;
545
557
  };
558
+ export declare const PinSchema: {
559
+ payload: z.ZodObject<{
560
+ country: z.ZodString;
561
+ email: z.ZodString;
562
+ text: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
563
+ }, z.core.$strip>;
564
+ response: z.ZodObject<{
565
+ id: z.ZodUUID;
566
+ created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
567
+ updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
568
+ country: z.ZodString;
569
+ text: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
570
+ hide: z.ZodBoolean;
571
+ image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
572
+ has_image: z.ZodBoolean;
573
+ }, z.core.$strip>;
574
+ };
575
+ export declare const PinListSchema: {
576
+ payload: z.ZodUndefined;
577
+ response: z.ZodObject<{
578
+ assemblies: z.ZodArray<z.ZodObject<{
579
+ published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>>, z.ZodTransform<string | null, string | null | undefined>>;
580
+ name: z.ZodString;
581
+ about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
582
+ topics: z.ZodArray<z.ZodString>;
583
+ country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
584
+ hide: z.ZodDefault<z.ZodBoolean>;
585
+ id: z.ZodUUID;
586
+ created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
587
+ updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
588
+ image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
589
+ has_image: z.ZodBoolean;
590
+ user_id: z.ZodUUID;
591
+ }, z.core.$strip>>;
592
+ pins: z.ZodArray<z.ZodObject<{
593
+ id: z.ZodUUID;
594
+ created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
595
+ updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
596
+ country: z.ZodString;
597
+ text: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
598
+ hide: z.ZodBoolean;
599
+ image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
600
+ has_image: z.ZodBoolean;
601
+ }, z.core.$strip>>;
602
+ }, z.core.$strip>;
603
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assemblis/contracts",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -2,46 +2,6 @@
2
2
 
3
3
  import z from 'zod';
4
4
  import { isoDateString, maybe } from './utils';
5
- import { AssemblyOverviewSchema } from './legacy';
6
-
7
- // Pins
8
- export const PinSchema = {
9
- payload: z.object({
10
- country: z.string(),
11
- email: z.string(),
12
- text: maybe(z.string())
13
- }),
14
- response: z.object({
15
- id: z.uuid(),
16
- created_at: z.coerce.date().transform((_) => _.toISOString()),
17
- updated_at: z.coerce.date().transform((_) => _.toISOString()),
18
- country: z.string(),
19
- text: maybe(z.string()),
20
- hide: z.boolean(),
21
- image_src: maybe(z.string()),
22
- has_image: z.boolean().meta({ deprecated: true })
23
- })
24
- };
25
- export const PinListSchema = {
26
- payload: z.undefined(),
27
- response: z.object({
28
- assemblies: AssemblyOverviewSchema.response.array(),
29
- pins: PinSchema.response.array()
30
- })
31
- };
32
-
33
- export const LogSchema = {
34
- payload: z.object({
35
- message: z.string().optional(),
36
- data: z.record(z.string(), z.string().optional()).optional(),
37
- metadata: z.object({
38
- origin: z.string(),
39
- route: z.string(),
40
- status: z.number()
41
- })
42
- }),
43
- response: z.string()
44
- };
45
5
 
46
6
  export const ImageSchema = z.object({
47
7
  id: z.uuid(),
@@ -100,14 +60,12 @@ export const ReportContentSchema = z.object({
100
60
  });
101
61
 
102
62
  export const ReportSchema = z.object({
103
- server_id: z.uuid(),
104
- client_id: z.uuid(),
105
- display_seq: z.int(),
63
+ id: z.uuid(),
106
64
  created_at: isoDateString,
107
65
  updated_at: isoDateString,
108
66
  published_at: maybe(isoDateString),
109
67
  state: z.enum(['DISCARDED', 'DRAFTED', 'PUBLISHED', 'CHANGED']),
110
- slug: maybe(z.string()),
68
+ viewer_password: z.string(),
111
69
  draft_content: maybe(ReportContentSchema),
112
70
  published_content: maybe(ReportContentSchema),
113
71
  media: z.object({ images: ImageSchema.array() })
@@ -1,3 +1,2 @@
1
1
  export * from './api';
2
- export * from './base';
3
2
  export * from './legacy';
@@ -11,6 +11,19 @@ export const FeedbackSchema = {
11
11
  response: z.string()
12
12
  };
13
13
 
14
+ export const LogSchema = {
15
+ payload: z.object({
16
+ message: z.string().optional(),
17
+ data: z.record(z.string(), z.string().optional()).optional(),
18
+ metadata: z.object({
19
+ origin: z.string(),
20
+ route: z.string(),
21
+ status: z.number()
22
+ })
23
+ }),
24
+ response: z.string()
25
+ };
26
+
14
27
  export const RegisterSchema = {
15
28
  payload: z.object({
16
29
  type: z.literal('user.created'),
@@ -287,3 +300,29 @@ export const AssemblyDetailSchema = {
287
300
  )
288
301
  })
289
302
  };
303
+
304
+ // Pins
305
+ export const PinSchema = {
306
+ payload: z.object({
307
+ country: z.string(),
308
+ email: z.string(),
309
+ text: maybe(z.string())
310
+ }),
311
+ response: z.object({
312
+ id: z.uuid(),
313
+ created_at: z.coerce.date().transform((_) => _.toISOString()),
314
+ updated_at: z.coerce.date().transform((_) => _.toISOString()),
315
+ country: z.string(),
316
+ text: maybe(z.string()),
317
+ hide: z.boolean(),
318
+ image_src: maybe(z.string()),
319
+ has_image: z.boolean().meta({ deprecated: true })
320
+ })
321
+ };
322
+ export const PinListSchema = {
323
+ payload: z.undefined(),
324
+ response: z.object({
325
+ assemblies: AssemblyOverviewSchema.response.array(),
326
+ pins: PinSchema.response.array()
327
+ })
328
+ };