@assemblis/contracts 0.0.12 → 0.1.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.
@@ -0,0 +1,1276 @@
1
+ import z from 'zod';
2
+ export declare const FeedbackSchema: {
3
+ payload: z.ZodObject<
4
+ {
5
+ route: z.ZodString;
6
+ text: z.ZodString;
7
+ metadata: z.ZodUnknown;
8
+ },
9
+ z.core.$strip
10
+ >;
11
+ response: z.ZodString;
12
+ };
13
+ export declare const LogSchema: {
14
+ payload: z.ZodObject<
15
+ {
16
+ message: z.ZodOptional<z.ZodString>;
17
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
18
+ metadata: z.ZodObject<
19
+ {
20
+ origin: z.ZodString;
21
+ route: z.ZodString;
22
+ status: z.ZodNumber;
23
+ },
24
+ z.core.$strip
25
+ >;
26
+ },
27
+ z.core.$strip
28
+ >;
29
+ response: z.ZodString;
30
+ };
31
+ export declare const RegisterSchema: {
32
+ payload: z.ZodObject<
33
+ {
34
+ type: z.ZodLiteral<'user.created'>;
35
+ object: z.ZodLiteral<'event'>;
36
+ data: z.ZodObject<
37
+ {
38
+ id: z.ZodString;
39
+ email_addresses: z.ZodArray<
40
+ z.ZodObject<
41
+ {
42
+ email_address: z.ZodString;
43
+ },
44
+ z.core.$strip
45
+ >
46
+ >;
47
+ },
48
+ z.core.$strip
49
+ >;
50
+ },
51
+ z.core.$strip
52
+ >;
53
+ response: z.ZodString;
54
+ };
55
+ export declare const SurveySchema: {
56
+ payload: z.ZodUndefined;
57
+ response: z.ZodObject<
58
+ {
59
+ id: z.ZodUUID;
60
+ created_at: z.ZodISODateTime;
61
+ updated_at: z.ZodISODateTime;
62
+ name: z.ZodString;
63
+ sections: z.ZodArray<
64
+ z.ZodObject<
65
+ {
66
+ primary: z.ZodObject<
67
+ {
68
+ id: z.ZodUUID;
69
+ text: z.ZodString;
70
+ },
71
+ z.core.$strip
72
+ >;
73
+ secondary: z.ZodArray<
74
+ z.ZodObject<
75
+ {
76
+ id: z.ZodUUID;
77
+ text: z.ZodString;
78
+ },
79
+ z.core.$strip
80
+ >
81
+ >;
82
+ options: z.ZodArray<
83
+ z.ZodObject<
84
+ {
85
+ label: z.ZodString;
86
+ value: z.ZodCoercedNumber<unknown>;
87
+ },
88
+ z.core.$strip
89
+ >
90
+ >;
91
+ },
92
+ z.core.$strip
93
+ >
94
+ >;
95
+ },
96
+ z.core.$strip
97
+ >;
98
+ };
99
+ export declare const SurveyResponseSchema: {
100
+ payload: z.ZodObject<
101
+ {
102
+ answers: z.ZodArray<
103
+ z.ZodObject<
104
+ {
105
+ question_id: z.ZodUUID;
106
+ answer_value: z.ZodCoercedNumber<unknown>;
107
+ },
108
+ z.core.$strip
109
+ >
110
+ >;
111
+ },
112
+ z.core.$strip
113
+ >;
114
+ response: z.ZodObject<
115
+ {
116
+ total: z.ZodNumber;
117
+ },
118
+ z.core.$strip
119
+ >;
120
+ };
121
+ export declare const AssemblyOverviewSchema: {
122
+ payload: z.ZodObject<
123
+ {
124
+ published_at: z.ZodPipe<
125
+ z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>,
126
+ z.ZodTransform<string | null, string | null | undefined>
127
+ >;
128
+ name: z.ZodString;
129
+ about: z.ZodPipe<
130
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
131
+ z.ZodTransform<string | null, string | null | undefined>
132
+ >;
133
+ topics: z.ZodArray<z.ZodString>;
134
+ country: z.ZodPipe<
135
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
136
+ z.ZodTransform<string | null, string | null | undefined>
137
+ >;
138
+ hide: z.ZodDefault<z.ZodBoolean>;
139
+ },
140
+ z.core.$strip
141
+ >;
142
+ response: z.ZodObject<
143
+ {
144
+ published_at: z.ZodPipe<
145
+ z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>,
146
+ z.ZodTransform<string | null, string | null | undefined>
147
+ >;
148
+ name: z.ZodString;
149
+ about: z.ZodPipe<
150
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
151
+ z.ZodTransform<string | null, string | null | undefined>
152
+ >;
153
+ topics: z.ZodArray<z.ZodString>;
154
+ country: z.ZodPipe<
155
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
156
+ z.ZodTransform<string | null, string | null | undefined>
157
+ >;
158
+ hide: z.ZodDefault<z.ZodBoolean>;
159
+ id: z.ZodUUID;
160
+ created_at: z.ZodISODateTime;
161
+ updated_at: z.ZodISODateTime;
162
+ image_src: z.ZodPipe<
163
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
164
+ z.ZodTransform<string | null, string | null | undefined>
165
+ >;
166
+ has_image: z.ZodBoolean;
167
+ user_id: z.ZodUUID;
168
+ },
169
+ z.core.$strip
170
+ >;
171
+ };
172
+ export declare const AssembliesListSchema: {
173
+ payload: z.ZodUndefined;
174
+ response: z.ZodObject<
175
+ {
176
+ assemblies: z.ZodArray<
177
+ z.ZodObject<
178
+ {
179
+ published_at: z.ZodPipe<
180
+ z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>,
181
+ z.ZodTransform<string | null, string | null | undefined>
182
+ >;
183
+ name: z.ZodString;
184
+ about: z.ZodPipe<
185
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
186
+ z.ZodTransform<string | null, string | null | undefined>
187
+ >;
188
+ topics: z.ZodArray<z.ZodString>;
189
+ country: z.ZodPipe<
190
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
191
+ z.ZodTransform<string | null, string | null | undefined>
192
+ >;
193
+ hide: z.ZodDefault<z.ZodBoolean>;
194
+ id: z.ZodUUID;
195
+ created_at: z.ZodISODateTime;
196
+ updated_at: z.ZodISODateTime;
197
+ image_src: z.ZodPipe<
198
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
199
+ z.ZodTransform<string | null, string | null | undefined>
200
+ >;
201
+ has_image: z.ZodBoolean;
202
+ user_id: z.ZodUUID;
203
+ },
204
+ z.core.$strip
205
+ >
206
+ >;
207
+ },
208
+ z.core.$strip
209
+ >;
210
+ };
211
+ export declare const AssemblyDetailSchema: {
212
+ payload: z.ZodObject<
213
+ {
214
+ published_at: z.ZodPipe<
215
+ z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>,
216
+ z.ZodTransform<string | null, string | null | undefined>
217
+ >;
218
+ name: z.ZodString;
219
+ about: z.ZodPipe<
220
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
221
+ z.ZodTransform<string | null, string | null | undefined>
222
+ >;
223
+ topics: z.ZodArray<z.ZodString>;
224
+ country: z.ZodPipe<
225
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
226
+ z.ZodTransform<string | null, string | null | undefined>
227
+ >;
228
+ hide: z.ZodDefault<z.ZodBoolean>;
229
+ organisation: z.ZodPipe<
230
+ z.ZodOptional<
231
+ z.ZodNullable<
232
+ z.ZodObject<
233
+ {
234
+ visible_on_profile: z.ZodBoolean;
235
+ name: z.ZodPipe<
236
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
237
+ z.ZodTransform<string | null, string | null | undefined>
238
+ >;
239
+ description: z.ZodPipe<
240
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
241
+ z.ZodTransform<string | null, string | null | undefined>
242
+ >;
243
+ type: z.ZodPipe<
244
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
245
+ z.ZodTransform<string | null, string | null | undefined>
246
+ >;
247
+ id: z.ZodOptional<z.ZodUUID>;
248
+ },
249
+ z.core.$strip
250
+ >
251
+ >
252
+ >,
253
+ z.ZodTransform<
254
+ {
255
+ visible_on_profile: boolean;
256
+ name: string | null;
257
+ description: string | null;
258
+ type: string | null;
259
+ id?: string | undefined;
260
+ } | null,
261
+ | {
262
+ visible_on_profile: boolean;
263
+ name: string | null;
264
+ description: string | null;
265
+ type: string | null;
266
+ id?: string | undefined;
267
+ }
268
+ | null
269
+ | undefined
270
+ >
271
+ >;
272
+ event_details: z.ZodPipe<
273
+ z.ZodOptional<
274
+ z.ZodNullable<
275
+ z.ZodObject<
276
+ {
277
+ visible_on_profile: z.ZodBoolean;
278
+ registration_link: z.ZodPipe<
279
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
280
+ z.ZodTransform<string | null, string | null | undefined>
281
+ >;
282
+ start_date: z.ZodPipe<
283
+ z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>,
284
+ z.ZodTransform<string | null, string | null | undefined>
285
+ >;
286
+ },
287
+ z.core.$strip
288
+ >
289
+ >
290
+ >,
291
+ z.ZodTransform<
292
+ {
293
+ visible_on_profile: boolean;
294
+ registration_link: string | null;
295
+ start_date: string | null;
296
+ } | null,
297
+ | {
298
+ visible_on_profile: boolean;
299
+ registration_link: string | null;
300
+ start_date: string | null;
301
+ }
302
+ | null
303
+ | undefined
304
+ >
305
+ >;
306
+ story: z.ZodPipe<
307
+ z.ZodOptional<
308
+ z.ZodNullable<
309
+ z.ZodObject<
310
+ {
311
+ visible_on_profile: z.ZodBoolean;
312
+ background: z.ZodPipe<
313
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
314
+ z.ZodTransform<string | null, string | null | undefined>
315
+ >;
316
+ },
317
+ z.core.$strip
318
+ >
319
+ >
320
+ >,
321
+ z.ZodTransform<
322
+ {
323
+ visible_on_profile: boolean;
324
+ background: string | null;
325
+ } | null,
326
+ | {
327
+ visible_on_profile: boolean;
328
+ background: string | null;
329
+ }
330
+ | null
331
+ | undefined
332
+ >
333
+ >;
334
+ supporters: z.ZodPipe<
335
+ z.ZodOptional<
336
+ z.ZodNullable<
337
+ z.ZodObject<
338
+ {
339
+ visible_on_profile: z.ZodBoolean;
340
+ organisation_types: z.ZodArray<z.ZodString>;
341
+ description: z.ZodPipe<
342
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
343
+ z.ZodTransform<string | null, string | null | undefined>
344
+ >;
345
+ },
346
+ z.core.$strip
347
+ >
348
+ >
349
+ >,
350
+ z.ZodTransform<
351
+ {
352
+ visible_on_profile: boolean;
353
+ organisation_types: string[];
354
+ description: string | null;
355
+ } | null,
356
+ | {
357
+ visible_on_profile: boolean;
358
+ organisation_types: string[];
359
+ description: string | null;
360
+ }
361
+ | null
362
+ | undefined
363
+ >
364
+ >;
365
+ funders: z.ZodPipe<
366
+ z.ZodOptional<
367
+ z.ZodNullable<
368
+ z.ZodObject<
369
+ {
370
+ visible_on_profile: z.ZodBoolean;
371
+ organisation_types: z.ZodArray<z.ZodString>;
372
+ description: z.ZodPipe<
373
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
374
+ z.ZodTransform<string | null, string | null | undefined>
375
+ >;
376
+ },
377
+ z.core.$strip
378
+ >
379
+ >
380
+ >,
381
+ z.ZodTransform<
382
+ {
383
+ visible_on_profile: boolean;
384
+ organisation_types: string[];
385
+ description: string | null;
386
+ } | null,
387
+ | {
388
+ visible_on_profile: boolean;
389
+ organisation_types: string[];
390
+ description: string | null;
391
+ }
392
+ | null
393
+ | undefined
394
+ >
395
+ >;
396
+ facilitation: z.ZodPipe<
397
+ z.ZodOptional<
398
+ z.ZodNullable<
399
+ z.ZodObject<
400
+ {
401
+ visible_on_profile: z.ZodBoolean;
402
+ decision_method: z.ZodPipe<
403
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
404
+ z.ZodTransform<string | null, string | null | undefined>
405
+ >;
406
+ },
407
+ z.core.$strip
408
+ >
409
+ >
410
+ >,
411
+ z.ZodTransform<
412
+ {
413
+ visible_on_profile: boolean;
414
+ decision_method: string | null;
415
+ } | null,
416
+ | {
417
+ visible_on_profile: boolean;
418
+ decision_method: string | null;
419
+ }
420
+ | null
421
+ | undefined
422
+ >
423
+ >;
424
+ participants: z.ZodPipe<
425
+ z.ZodOptional<
426
+ z.ZodNullable<
427
+ z.ZodObject<
428
+ {
429
+ visible_on_profile: z.ZodBoolean;
430
+ recruitment_method: z.ZodPipe<
431
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
432
+ z.ZodTransform<string | null, string | null | undefined>
433
+ >;
434
+ community: z.ZodPipe<
435
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
436
+ z.ZodTransform<string | null, string | null | undefined>
437
+ >;
438
+ },
439
+ z.core.$strip
440
+ >
441
+ >
442
+ >,
443
+ z.ZodTransform<
444
+ {
445
+ visible_on_profile: boolean;
446
+ recruitment_method: string | null;
447
+ community: string | null;
448
+ } | null,
449
+ | {
450
+ visible_on_profile: boolean;
451
+ recruitment_method: string | null;
452
+ community: string | null;
453
+ }
454
+ | null
455
+ | undefined
456
+ >
457
+ >;
458
+ support: z.ZodPipe<
459
+ z.ZodOptional<
460
+ z.ZodNullable<
461
+ z.ZodObject<
462
+ {
463
+ visible_on_profile: z.ZodBoolean;
464
+ support_options: z.ZodArray<z.ZodString>;
465
+ },
466
+ z.core.$strip
467
+ >
468
+ >
469
+ >,
470
+ z.ZodTransform<
471
+ {
472
+ visible_on_profile: boolean;
473
+ support_options: string[];
474
+ } | null,
475
+ | {
476
+ visible_on_profile: boolean;
477
+ support_options: string[];
478
+ }
479
+ | null
480
+ | undefined
481
+ >
482
+ >;
483
+ action_plan: z.ZodPipe<
484
+ z.ZodOptional<
485
+ z.ZodNullable<
486
+ z.ZodObject<
487
+ {
488
+ visible_on_profile: z.ZodBoolean;
489
+ description: z.ZodPipe<
490
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
491
+ z.ZodTransform<string | null, string | null | undefined>
492
+ >;
493
+ actions: z.ZodArray<
494
+ z.ZodObject<
495
+ {
496
+ text: z.ZodString;
497
+ agreed: z.ZodPipe<
498
+ z.ZodOptional<
499
+ z.ZodNullable<z.ZodCoercedNumber<unknown>>
500
+ >,
501
+ z.ZodTransform<number | null, number | null | undefined>
502
+ >;
503
+ against: z.ZodPipe<
504
+ z.ZodOptional<
505
+ z.ZodNullable<z.ZodCoercedNumber<unknown>>
506
+ >,
507
+ z.ZodTransform<number | null, number | null | undefined>
508
+ >;
509
+ abstained: z.ZodPipe<
510
+ z.ZodOptional<
511
+ z.ZodNullable<z.ZodCoercedNumber<unknown>>
512
+ >,
513
+ z.ZodTransform<number | null, number | null | undefined>
514
+ >;
515
+ include_in_action_plan: z.ZodDefault<z.ZodBoolean>;
516
+ id: z.ZodOptional<z.ZodUUID>;
517
+ tasks: z.ZodArray<
518
+ z.ZodObject<
519
+ {
520
+ text: z.ZodString;
521
+ complete: z.ZodDefault<z.ZodBoolean>;
522
+ id: z.ZodOptional<z.ZodUUID>;
523
+ },
524
+ z.core.$strip
525
+ >
526
+ >;
527
+ updates: z.ZodArray<z.ZodUnknown>;
528
+ },
529
+ z.core.$strip
530
+ >
531
+ >;
532
+ updates: z.ZodArray<z.ZodUnknown>;
533
+ },
534
+ z.core.$strip
535
+ >
536
+ >
537
+ >,
538
+ z.ZodTransform<
539
+ {
540
+ visible_on_profile: boolean;
541
+ description: string | null;
542
+ actions: {
543
+ text: string;
544
+ agreed: number | null;
545
+ against: number | null;
546
+ abstained: number | null;
547
+ include_in_action_plan: boolean;
548
+ tasks: {
549
+ text: string;
550
+ complete: boolean;
551
+ id?: string | undefined;
552
+ }[];
553
+ updates: unknown[];
554
+ id?: string | undefined;
555
+ }[];
556
+ updates: unknown[];
557
+ } | null,
558
+ | {
559
+ visible_on_profile: boolean;
560
+ description: string | null;
561
+ actions: {
562
+ text: string;
563
+ agreed: number | null;
564
+ against: number | null;
565
+ abstained: number | null;
566
+ include_in_action_plan: boolean;
567
+ tasks: {
568
+ text: string;
569
+ complete: boolean;
570
+ id?: string | undefined;
571
+ }[];
572
+ updates: unknown[];
573
+ id?: string | undefined;
574
+ }[];
575
+ updates: unknown[];
576
+ }
577
+ | null
578
+ | undefined
579
+ >
580
+ >;
581
+ surveys: z.ZodPipe<
582
+ z.ZodOptional<
583
+ z.ZodNullable<
584
+ z.ZodObject<
585
+ {
586
+ visible_on_profile: z.ZodBoolean;
587
+ },
588
+ z.core.$strip
589
+ >
590
+ >
591
+ >,
592
+ z.ZodTransform<
593
+ {
594
+ visible_on_profile: boolean;
595
+ } | null,
596
+ | {
597
+ visible_on_profile: boolean;
598
+ }
599
+ | null
600
+ | undefined
601
+ >
602
+ >;
603
+ },
604
+ z.core.$strip
605
+ >;
606
+ response: z.ZodObject<
607
+ {
608
+ created_at: z.ZodISODateTime;
609
+ updated_at: z.ZodISODateTime;
610
+ id: z.ZodUUID;
611
+ published_at: z.ZodPipe<
612
+ z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>,
613
+ z.ZodTransform<string | null, string | null | undefined>
614
+ >;
615
+ name: z.ZodString;
616
+ about: z.ZodPipe<
617
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
618
+ z.ZodTransform<string | null, string | null | undefined>
619
+ >;
620
+ topics: z.ZodArray<z.ZodString>;
621
+ country: z.ZodPipe<
622
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
623
+ z.ZodTransform<string | null, string | null | undefined>
624
+ >;
625
+ hide: z.ZodDefault<z.ZodBoolean>;
626
+ image_src: z.ZodPipe<
627
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
628
+ z.ZodTransform<string | null, string | null | undefined>
629
+ >;
630
+ has_image: z.ZodBoolean;
631
+ is_own: z.ZodBoolean;
632
+ organisation: z.ZodPipe<
633
+ z.ZodOptional<
634
+ z.ZodNullable<
635
+ z.ZodObject<
636
+ {
637
+ visible_on_profile: z.ZodBoolean;
638
+ name: z.ZodPipe<
639
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
640
+ z.ZodTransform<string | null, string | null | undefined>
641
+ >;
642
+ description: z.ZodPipe<
643
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
644
+ z.ZodTransform<string | null, string | null | undefined>
645
+ >;
646
+ type: z.ZodPipe<
647
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
648
+ z.ZodTransform<string | null, string | null | undefined>
649
+ >;
650
+ id: z.ZodUUID;
651
+ created_at: z.ZodISODateTime;
652
+ updated_at: z.ZodISODateTime;
653
+ },
654
+ z.core.$strip
655
+ >
656
+ >
657
+ >,
658
+ z.ZodTransform<
659
+ {
660
+ visible_on_profile: boolean;
661
+ name: string | null;
662
+ description: string | null;
663
+ type: string | null;
664
+ id: string;
665
+ created_at: string;
666
+ updated_at: string;
667
+ } | null,
668
+ | {
669
+ visible_on_profile: boolean;
670
+ name: string | null;
671
+ description: string | null;
672
+ type: string | null;
673
+ id: string;
674
+ created_at: string;
675
+ updated_at: string;
676
+ }
677
+ | null
678
+ | undefined
679
+ >
680
+ >;
681
+ event_details: z.ZodPipe<
682
+ z.ZodOptional<
683
+ z.ZodNullable<
684
+ z.ZodObject<
685
+ {
686
+ visible_on_profile: z.ZodBoolean;
687
+ registration_link: z.ZodPipe<
688
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
689
+ z.ZodTransform<string | null, string | null | undefined>
690
+ >;
691
+ start_date: z.ZodPipe<
692
+ z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>,
693
+ z.ZodTransform<string | null, string | null | undefined>
694
+ >;
695
+ created_at: z.ZodISODateTime;
696
+ updated_at: z.ZodISODateTime;
697
+ },
698
+ z.core.$strip
699
+ >
700
+ >
701
+ >,
702
+ z.ZodTransform<
703
+ {
704
+ visible_on_profile: boolean;
705
+ registration_link: string | null;
706
+ start_date: string | null;
707
+ created_at: string;
708
+ updated_at: string;
709
+ } | null,
710
+ | {
711
+ visible_on_profile: boolean;
712
+ registration_link: string | null;
713
+ start_date: string | null;
714
+ created_at: string;
715
+ updated_at: string;
716
+ }
717
+ | null
718
+ | undefined
719
+ >
720
+ >;
721
+ story: z.ZodPipe<
722
+ z.ZodOptional<
723
+ z.ZodNullable<
724
+ z.ZodObject<
725
+ {
726
+ visible_on_profile: z.ZodBoolean;
727
+ background: z.ZodPipe<
728
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
729
+ z.ZodTransform<string | null, string | null | undefined>
730
+ >;
731
+ created_at: z.ZodISODateTime;
732
+ updated_at: z.ZodISODateTime;
733
+ },
734
+ z.core.$strip
735
+ >
736
+ >
737
+ >,
738
+ z.ZodTransform<
739
+ {
740
+ visible_on_profile: boolean;
741
+ background: string | null;
742
+ created_at: string;
743
+ updated_at: string;
744
+ } | null,
745
+ | {
746
+ visible_on_profile: boolean;
747
+ background: string | null;
748
+ created_at: string;
749
+ updated_at: string;
750
+ }
751
+ | null
752
+ | undefined
753
+ >
754
+ >;
755
+ supporters: z.ZodPipe<
756
+ z.ZodOptional<
757
+ z.ZodNullable<
758
+ z.ZodObject<
759
+ {
760
+ visible_on_profile: z.ZodBoolean;
761
+ organisation_types: z.ZodArray<z.ZodString>;
762
+ description: z.ZodPipe<
763
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
764
+ z.ZodTransform<string | null, string | null | undefined>
765
+ >;
766
+ created_at: z.ZodISODateTime;
767
+ updated_at: z.ZodISODateTime;
768
+ },
769
+ z.core.$strip
770
+ >
771
+ >
772
+ >,
773
+ z.ZodTransform<
774
+ {
775
+ visible_on_profile: boolean;
776
+ organisation_types: string[];
777
+ description: string | null;
778
+ created_at: string;
779
+ updated_at: string;
780
+ } | null,
781
+ | {
782
+ visible_on_profile: boolean;
783
+ organisation_types: string[];
784
+ description: string | null;
785
+ created_at: string;
786
+ updated_at: string;
787
+ }
788
+ | null
789
+ | undefined
790
+ >
791
+ >;
792
+ funders: z.ZodPipe<
793
+ z.ZodOptional<
794
+ z.ZodNullable<
795
+ z.ZodObject<
796
+ {
797
+ visible_on_profile: z.ZodBoolean;
798
+ organisation_types: z.ZodArray<z.ZodString>;
799
+ description: z.ZodPipe<
800
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
801
+ z.ZodTransform<string | null, string | null | undefined>
802
+ >;
803
+ created_at: z.ZodISODateTime;
804
+ updated_at: z.ZodISODateTime;
805
+ },
806
+ z.core.$strip
807
+ >
808
+ >
809
+ >,
810
+ z.ZodTransform<
811
+ {
812
+ visible_on_profile: boolean;
813
+ organisation_types: string[];
814
+ description: string | null;
815
+ created_at: string;
816
+ updated_at: string;
817
+ } | null,
818
+ | {
819
+ visible_on_profile: boolean;
820
+ organisation_types: string[];
821
+ description: string | null;
822
+ created_at: string;
823
+ updated_at: string;
824
+ }
825
+ | null
826
+ | undefined
827
+ >
828
+ >;
829
+ facilitation: z.ZodPipe<
830
+ z.ZodOptional<
831
+ z.ZodNullable<
832
+ z.ZodObject<
833
+ {
834
+ visible_on_profile: z.ZodBoolean;
835
+ decision_method: z.ZodPipe<
836
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
837
+ z.ZodTransform<string | null, string | null | undefined>
838
+ >;
839
+ created_at: z.ZodISODateTime;
840
+ updated_at: z.ZodISODateTime;
841
+ },
842
+ z.core.$strip
843
+ >
844
+ >
845
+ >,
846
+ z.ZodTransform<
847
+ {
848
+ visible_on_profile: boolean;
849
+ decision_method: string | null;
850
+ created_at: string;
851
+ updated_at: string;
852
+ } | null,
853
+ | {
854
+ visible_on_profile: boolean;
855
+ decision_method: string | null;
856
+ created_at: string;
857
+ updated_at: string;
858
+ }
859
+ | null
860
+ | undefined
861
+ >
862
+ >;
863
+ participants: z.ZodPipe<
864
+ z.ZodOptional<
865
+ z.ZodNullable<
866
+ z.ZodObject<
867
+ {
868
+ visible_on_profile: z.ZodBoolean;
869
+ recruitment_method: z.ZodPipe<
870
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
871
+ z.ZodTransform<string | null, string | null | undefined>
872
+ >;
873
+ community: z.ZodPipe<
874
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
875
+ z.ZodTransform<string | null, string | null | undefined>
876
+ >;
877
+ created_at: z.ZodISODateTime;
878
+ updated_at: z.ZodISODateTime;
879
+ },
880
+ z.core.$strip
881
+ >
882
+ >
883
+ >,
884
+ z.ZodTransform<
885
+ {
886
+ visible_on_profile: boolean;
887
+ recruitment_method: string | null;
888
+ community: string | null;
889
+ created_at: string;
890
+ updated_at: string;
891
+ } | null,
892
+ | {
893
+ visible_on_profile: boolean;
894
+ recruitment_method: string | null;
895
+ community: string | null;
896
+ created_at: string;
897
+ updated_at: string;
898
+ }
899
+ | null
900
+ | undefined
901
+ >
902
+ >;
903
+ support: z.ZodPipe<
904
+ z.ZodOptional<
905
+ z.ZodNullable<
906
+ z.ZodObject<
907
+ {
908
+ visible_on_profile: z.ZodBoolean;
909
+ support_options: z.ZodArray<z.ZodString>;
910
+ created_at: z.ZodISODateTime;
911
+ updated_at: z.ZodISODateTime;
912
+ },
913
+ z.core.$strip
914
+ >
915
+ >
916
+ >,
917
+ z.ZodTransform<
918
+ {
919
+ visible_on_profile: boolean;
920
+ support_options: string[];
921
+ created_at: string;
922
+ updated_at: string;
923
+ } | null,
924
+ | {
925
+ visible_on_profile: boolean;
926
+ support_options: string[];
927
+ created_at: string;
928
+ updated_at: string;
929
+ }
930
+ | null
931
+ | undefined
932
+ >
933
+ >;
934
+ action_plan: z.ZodPipe<
935
+ z.ZodOptional<
936
+ z.ZodNullable<
937
+ z.ZodIntersection<
938
+ z.ZodObject<
939
+ {
940
+ visible_on_profile: z.ZodBoolean;
941
+ description: z.ZodPipe<
942
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
943
+ z.ZodTransform<string | null, string | null | undefined>
944
+ >;
945
+ actions: z.ZodArray<
946
+ z.ZodObject<
947
+ {
948
+ text: z.ZodString;
949
+ agreed: z.ZodPipe<
950
+ z.ZodOptional<
951
+ z.ZodNullable<z.ZodCoercedNumber<unknown>>
952
+ >,
953
+ z.ZodTransform<
954
+ number | null,
955
+ number | null | undefined
956
+ >
957
+ >;
958
+ against: z.ZodPipe<
959
+ z.ZodOptional<
960
+ z.ZodNullable<z.ZodCoercedNumber<unknown>>
961
+ >,
962
+ z.ZodTransform<
963
+ number | null,
964
+ number | null | undefined
965
+ >
966
+ >;
967
+ abstained: z.ZodPipe<
968
+ z.ZodOptional<
969
+ z.ZodNullable<z.ZodCoercedNumber<unknown>>
970
+ >,
971
+ z.ZodTransform<
972
+ number | null,
973
+ number | null | undefined
974
+ >
975
+ >;
976
+ include_in_action_plan: z.ZodDefault<z.ZodBoolean>;
977
+ id: z.ZodUUID;
978
+ tasks: z.ZodArray<
979
+ z.ZodObject<
980
+ {
981
+ text: z.ZodString;
982
+ complete: z.ZodDefault<z.ZodBoolean>;
983
+ id: z.ZodUUID;
984
+ created_at: z.ZodPipe<
985
+ z.ZodCoercedDate<unknown>,
986
+ z.ZodTransform<string, Date>
987
+ >;
988
+ updated_at: z.ZodPipe<
989
+ z.ZodCoercedDate<unknown>,
990
+ z.ZodTransform<string, Date>
991
+ >;
992
+ },
993
+ z.core.$strip
994
+ >
995
+ >;
996
+ updates: z.ZodArray<z.ZodUnknown>;
997
+ created_at: z.ZodPipe<
998
+ z.ZodCoercedDate<unknown>,
999
+ z.ZodTransform<string, Date>
1000
+ >;
1001
+ updated_at: z.ZodPipe<
1002
+ z.ZodCoercedDate<unknown>,
1003
+ z.ZodTransform<string, Date>
1004
+ >;
1005
+ },
1006
+ z.core.$strip
1007
+ >
1008
+ >;
1009
+ updates: z.ZodArray<z.ZodUnknown>;
1010
+ },
1011
+ z.core.$strip
1012
+ >,
1013
+ z.ZodObject<
1014
+ {
1015
+ created_at: z.ZodPipe<
1016
+ z.ZodCoercedDate<unknown>,
1017
+ z.ZodTransform<string, Date>
1018
+ >;
1019
+ updated_at: z.ZodPipe<
1020
+ z.ZodCoercedDate<unknown>,
1021
+ z.ZodTransform<string, Date>
1022
+ >;
1023
+ },
1024
+ z.core.$strip
1025
+ >
1026
+ >
1027
+ >
1028
+ >,
1029
+ z.ZodTransform<
1030
+ NonNullable<
1031
+ {
1032
+ visible_on_profile: boolean;
1033
+ description: string | null;
1034
+ actions: {
1035
+ text: string;
1036
+ agreed: number | null;
1037
+ against: number | null;
1038
+ abstained: number | null;
1039
+ include_in_action_plan: boolean;
1040
+ id: string;
1041
+ tasks: {
1042
+ text: string;
1043
+ complete: boolean;
1044
+ id: string;
1045
+ created_at: string;
1046
+ updated_at: string;
1047
+ }[];
1048
+ updates: unknown[];
1049
+ created_at: string;
1050
+ updated_at: string;
1051
+ }[];
1052
+ updates: unknown[];
1053
+ } & {
1054
+ created_at: string;
1055
+ updated_at: string;
1056
+ }
1057
+ > | null,
1058
+ | ({
1059
+ visible_on_profile: boolean;
1060
+ description: string | null;
1061
+ actions: {
1062
+ text: string;
1063
+ agreed: number | null;
1064
+ against: number | null;
1065
+ abstained: number | null;
1066
+ include_in_action_plan: boolean;
1067
+ id: string;
1068
+ tasks: {
1069
+ text: string;
1070
+ complete: boolean;
1071
+ id: string;
1072
+ created_at: string;
1073
+ updated_at: string;
1074
+ }[];
1075
+ updates: unknown[];
1076
+ created_at: string;
1077
+ updated_at: string;
1078
+ }[];
1079
+ updates: unknown[];
1080
+ } & {
1081
+ created_at: string;
1082
+ updated_at: string;
1083
+ })
1084
+ | null
1085
+ | undefined
1086
+ >
1087
+ >;
1088
+ surveys: z.ZodPipe<
1089
+ z.ZodOptional<
1090
+ z.ZodNullable<
1091
+ z.ZodObject<
1092
+ {
1093
+ visible_on_profile: z.ZodBoolean;
1094
+ created_at: z.ZodPipe<
1095
+ z.ZodCoercedDate<unknown>,
1096
+ z.ZodTransform<string, Date>
1097
+ >;
1098
+ updated_at: z.ZodPipe<
1099
+ z.ZodCoercedDate<unknown>,
1100
+ z.ZodTransform<string, Date>
1101
+ >;
1102
+ data: z.ZodRecord<
1103
+ z.ZodString,
1104
+ z.ZodObject<
1105
+ {
1106
+ total: z.ZodNumber;
1107
+ responses: z.ZodRecord<
1108
+ z.ZodString,
1109
+ z.ZodArray<
1110
+ z.ZodObject<
1111
+ {
1112
+ label: z.ZodString;
1113
+ value: z.ZodCoercedNumber<unknown>;
1114
+ },
1115
+ z.core.$strip
1116
+ >
1117
+ >
1118
+ >;
1119
+ },
1120
+ z.core.$strip
1121
+ >
1122
+ >;
1123
+ },
1124
+ z.core.$strip
1125
+ >
1126
+ >
1127
+ >,
1128
+ z.ZodTransform<
1129
+ {
1130
+ visible_on_profile: boolean;
1131
+ created_at: string;
1132
+ updated_at: string;
1133
+ data: Record<
1134
+ string,
1135
+ {
1136
+ total: number;
1137
+ responses: Record<
1138
+ string,
1139
+ {
1140
+ label: string;
1141
+ value: number;
1142
+ }[]
1143
+ >;
1144
+ }
1145
+ >;
1146
+ } | null,
1147
+ | {
1148
+ visible_on_profile: boolean;
1149
+ created_at: string;
1150
+ updated_at: string;
1151
+ data: Record<
1152
+ string,
1153
+ {
1154
+ total: number;
1155
+ responses: Record<
1156
+ string,
1157
+ {
1158
+ label: string;
1159
+ value: number;
1160
+ }[]
1161
+ >;
1162
+ }
1163
+ >;
1164
+ }
1165
+ | null
1166
+ | undefined
1167
+ >
1168
+ >;
1169
+ },
1170
+ z.core.$strip
1171
+ >;
1172
+ };
1173
+ export declare const PinSchema: {
1174
+ payload: z.ZodObject<
1175
+ {
1176
+ country: z.ZodString;
1177
+ email: z.ZodString;
1178
+ text: z.ZodPipe<
1179
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
1180
+ z.ZodTransform<string | null, string | null | undefined>
1181
+ >;
1182
+ },
1183
+ z.core.$strip
1184
+ >;
1185
+ response: z.ZodObject<
1186
+ {
1187
+ id: z.ZodUUID;
1188
+ created_at: z.ZodPipe<
1189
+ z.ZodCoercedDate<unknown>,
1190
+ z.ZodTransform<string, Date>
1191
+ >;
1192
+ updated_at: z.ZodPipe<
1193
+ z.ZodCoercedDate<unknown>,
1194
+ z.ZodTransform<string, Date>
1195
+ >;
1196
+ country: z.ZodString;
1197
+ text: z.ZodPipe<
1198
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
1199
+ z.ZodTransform<string | null, string | null | undefined>
1200
+ >;
1201
+ hide: z.ZodBoolean;
1202
+ image_src: z.ZodPipe<
1203
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
1204
+ z.ZodTransform<string | null, string | null | undefined>
1205
+ >;
1206
+ has_image: z.ZodBoolean;
1207
+ },
1208
+ z.core.$strip
1209
+ >;
1210
+ };
1211
+ export declare const PinListSchema: {
1212
+ payload: z.ZodUndefined;
1213
+ response: z.ZodObject<
1214
+ {
1215
+ assemblies: z.ZodArray<
1216
+ z.ZodObject<
1217
+ {
1218
+ published_at: z.ZodPipe<
1219
+ z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>,
1220
+ z.ZodTransform<string | null, string | null | undefined>
1221
+ >;
1222
+ name: z.ZodString;
1223
+ about: z.ZodPipe<
1224
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
1225
+ z.ZodTransform<string | null, string | null | undefined>
1226
+ >;
1227
+ topics: z.ZodArray<z.ZodString>;
1228
+ country: z.ZodPipe<
1229
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
1230
+ z.ZodTransform<string | null, string | null | undefined>
1231
+ >;
1232
+ hide: z.ZodDefault<z.ZodBoolean>;
1233
+ id: z.ZodUUID;
1234
+ created_at: z.ZodISODateTime;
1235
+ updated_at: z.ZodISODateTime;
1236
+ image_src: z.ZodPipe<
1237
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
1238
+ z.ZodTransform<string | null, string | null | undefined>
1239
+ >;
1240
+ has_image: z.ZodBoolean;
1241
+ user_id: z.ZodUUID;
1242
+ },
1243
+ z.core.$strip
1244
+ >
1245
+ >;
1246
+ pins: z.ZodArray<
1247
+ z.ZodObject<
1248
+ {
1249
+ id: z.ZodUUID;
1250
+ created_at: z.ZodPipe<
1251
+ z.ZodCoercedDate<unknown>,
1252
+ z.ZodTransform<string, Date>
1253
+ >;
1254
+ updated_at: z.ZodPipe<
1255
+ z.ZodCoercedDate<unknown>,
1256
+ z.ZodTransform<string, Date>
1257
+ >;
1258
+ country: z.ZodString;
1259
+ text: z.ZodPipe<
1260
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
1261
+ z.ZodTransform<string | null, string | null | undefined>
1262
+ >;
1263
+ hide: z.ZodBoolean;
1264
+ image_src: z.ZodPipe<
1265
+ z.ZodOptional<z.ZodNullable<z.ZodString>>,
1266
+ z.ZodTransform<string | null, string | null | undefined>
1267
+ >;
1268
+ has_image: z.ZodBoolean;
1269
+ },
1270
+ z.core.$strip
1271
+ >
1272
+ >;
1273
+ },
1274
+ z.core.$strip
1275
+ >;
1276
+ };