@assemblis/contracts 0.1.1 → 0.1.3

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.
@@ -1,1276 +1,603 @@
1
1
  import z from 'zod';
2
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;
3
+ payload: z.ZodObject<{
4
+ route: z.ZodString;
5
+ text: z.ZodString;
6
+ metadata: z.ZodUnknown;
7
+ }, z.core.$strip>;
8
+ response: z.ZodString;
12
9
  };
13
10
  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;
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;
30
21
  };
31
22
  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;
23
+ payload: z.ZodObject<{
24
+ type: z.ZodLiteral<"user.created">;
25
+ object: z.ZodLiteral<"event">;
26
+ data: z.ZodObject<{
27
+ id: z.ZodString;
28
+ email_addresses: z.ZodArray<z.ZodObject<{
29
+ email_address: z.ZodString;
30
+ }, z.core.$strip>>;
31
+ }, z.core.$strip>;
32
+ }, z.core.$strip>;
33
+ response: z.ZodString;
54
34
  };
55
35
  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
- >;
36
+ payload: z.ZodUndefined;
37
+ response: z.ZodObject<{
38
+ id: z.ZodUUID;
39
+ created_at: z.ZodISODateTime;
40
+ updated_at: z.ZodISODateTime;
41
+ name: z.ZodString;
42
+ sections: z.ZodArray<z.ZodObject<{
43
+ primary: z.ZodObject<{
44
+ id: z.ZodUUID;
45
+ text: z.ZodString;
46
+ }, z.core.$strip>;
47
+ secondary: z.ZodArray<z.ZodObject<{
48
+ id: z.ZodUUID;
49
+ text: z.ZodString;
50
+ }, z.core.$strip>>;
51
+ options: z.ZodArray<z.ZodObject<{
52
+ label: z.ZodString;
53
+ value: z.ZodCoercedNumber<unknown>;
54
+ }, z.core.$strip>>;
55
+ }, z.core.$strip>>;
56
+ }, z.core.$strip>;
98
57
  };
99
58
  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
- >;
59
+ payload: z.ZodObject<{
60
+ answers: z.ZodArray<z.ZodObject<{
61
+ question_id: z.ZodUUID;
62
+ answer_value: z.ZodCoercedNumber<unknown>;
63
+ }, z.core.$strip>>;
64
+ }, z.core.$strip>;
65
+ response: z.ZodObject<{
66
+ total: z.ZodNumber;
67
+ }, z.core.$strip>;
120
68
  };
121
69
  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
- >;
70
+ payload: z.ZodObject<{
71
+ published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
72
+ name: z.ZodString;
73
+ about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
74
+ topics: z.ZodArray<z.ZodString>;
75
+ country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
76
+ hide: z.ZodDefault<z.ZodBoolean>;
77
+ }, z.core.$strip>;
78
+ response: z.ZodObject<{
79
+ published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
80
+ name: z.ZodString;
81
+ about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
82
+ topics: z.ZodArray<z.ZodString>;
83
+ country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
84
+ hide: z.ZodDefault<z.ZodBoolean>;
85
+ id: z.ZodUUID;
86
+ created_at: z.ZodISODateTime;
87
+ updated_at: z.ZodISODateTime;
88
+ image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
89
+ has_image: z.ZodBoolean;
90
+ user_id: z.ZodUUID;
91
+ }, z.core.$strip>;
171
92
  };
172
93
  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
- >;
94
+ payload: z.ZodUndefined;
95
+ response: z.ZodObject<{
96
+ assemblies: z.ZodArray<z.ZodObject<{
97
+ published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
98
+ name: z.ZodString;
99
+ about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
100
+ topics: z.ZodArray<z.ZodString>;
101
+ country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
102
+ hide: z.ZodDefault<z.ZodBoolean>;
103
+ id: z.ZodUUID;
104
+ created_at: z.ZodISODateTime;
105
+ updated_at: z.ZodISODateTime;
106
+ image_src: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
107
+ has_image: z.ZodBoolean;
108
+ user_id: z.ZodUUID;
109
+ }, z.core.$strip>>;
110
+ }, z.core.$strip>;
210
111
  };
211
112
  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
- >;
113
+ payload: z.ZodObject<{
114
+ published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
115
+ name: z.ZodString;
116
+ about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
117
+ topics: z.ZodArray<z.ZodString>;
118
+ country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
119
+ hide: z.ZodDefault<z.ZodBoolean>;
120
+ organisation: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
121
+ visible_on_profile: z.ZodBoolean;
122
+ name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
123
+ description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
124
+ type: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
125
+ id: z.ZodOptional<z.ZodUUID>;
126
+ }, z.core.$strip>>>, z.ZodTransform<{
127
+ visible_on_profile: boolean;
128
+ name: string | null;
129
+ description: string | null;
130
+ type: string | null;
131
+ id?: string | undefined;
132
+ } | null, {
133
+ visible_on_profile: boolean;
134
+ name: string | null;
135
+ description: string | null;
136
+ type: string | null;
137
+ id?: string | undefined;
138
+ } | null | undefined>>;
139
+ event_details: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
140
+ visible_on_profile: z.ZodBoolean;
141
+ registration_link: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
142
+ start_date: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
143
+ }, z.core.$strip>>>, z.ZodTransform<{
144
+ visible_on_profile: boolean;
145
+ registration_link: string | null;
146
+ start_date: string | null;
147
+ } | null, {
148
+ visible_on_profile: boolean;
149
+ registration_link: string | null;
150
+ start_date: string | null;
151
+ } | null | undefined>>;
152
+ story: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
153
+ visible_on_profile: z.ZodBoolean;
154
+ background: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
155
+ }, z.core.$strip>>>, z.ZodTransform<{
156
+ visible_on_profile: boolean;
157
+ background: string | null;
158
+ } | null, {
159
+ visible_on_profile: boolean;
160
+ background: string | null;
161
+ } | null | undefined>>;
162
+ supporters: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
163
+ visible_on_profile: z.ZodBoolean;
164
+ organisation_types: z.ZodArray<z.ZodString>;
165
+ description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
166
+ }, z.core.$strip>>>, z.ZodTransform<{
167
+ visible_on_profile: boolean;
168
+ organisation_types: string[];
169
+ description: string | null;
170
+ } | null, {
171
+ visible_on_profile: boolean;
172
+ organisation_types: string[];
173
+ description: string | null;
174
+ } | null | undefined>>;
175
+ funders: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
176
+ visible_on_profile: z.ZodBoolean;
177
+ organisation_types: z.ZodArray<z.ZodString>;
178
+ description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
179
+ }, z.core.$strip>>>, z.ZodTransform<{
180
+ visible_on_profile: boolean;
181
+ organisation_types: string[];
182
+ description: string | null;
183
+ } | null, {
184
+ visible_on_profile: boolean;
185
+ organisation_types: string[];
186
+ description: string | null;
187
+ } | null | undefined>>;
188
+ facilitation: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
189
+ visible_on_profile: z.ZodBoolean;
190
+ decision_method: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
191
+ }, z.core.$strip>>>, z.ZodTransform<{
192
+ visible_on_profile: boolean;
193
+ decision_method: string | null;
194
+ } | null, {
195
+ visible_on_profile: boolean;
196
+ decision_method: string | null;
197
+ } | null | undefined>>;
198
+ participants: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
199
+ visible_on_profile: z.ZodBoolean;
200
+ recruitment_method: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
201
+ community: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
202
+ }, z.core.$strip>>>, z.ZodTransform<{
203
+ visible_on_profile: boolean;
204
+ recruitment_method: string | null;
205
+ community: string | null;
206
+ } | null, {
207
+ visible_on_profile: boolean;
208
+ recruitment_method: string | null;
209
+ community: string | null;
210
+ } | null | undefined>>;
211
+ support: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
212
+ visible_on_profile: z.ZodBoolean;
213
+ support_options: z.ZodArray<z.ZodString>;
214
+ }, z.core.$strip>>>, z.ZodTransform<{
215
+ visible_on_profile: boolean;
216
+ support_options: string[];
217
+ } | null, {
218
+ visible_on_profile: boolean;
219
+ support_options: string[];
220
+ } | null | undefined>>;
221
+ action_plan: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
222
+ visible_on_profile: z.ZodBoolean;
223
+ description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
224
+ actions: z.ZodArray<z.ZodObject<{
225
+ text: z.ZodString;
226
+ agreed: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number | null, number | null | undefined>>;
227
+ against: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number | null, number | null | undefined>>;
228
+ abstained: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number | null, number | null | undefined>>;
229
+ include_in_action_plan: z.ZodDefault<z.ZodBoolean>;
230
+ id: z.ZodOptional<z.ZodUUID>;
231
+ tasks: z.ZodArray<z.ZodObject<{
232
+ text: z.ZodString;
233
+ complete: z.ZodDefault<z.ZodBoolean>;
234
+ id: z.ZodOptional<z.ZodUUID>;
235
+ }, z.core.$strip>>;
236
+ updates: z.ZodArray<z.ZodUnknown>;
237
+ }, z.core.$strip>>;
238
+ updates: z.ZodArray<z.ZodUnknown>;
239
+ }, z.core.$strip>>>, z.ZodTransform<{
240
+ visible_on_profile: boolean;
241
+ description: string | null;
242
+ actions: {
243
+ text: string;
244
+ agreed: number | null;
245
+ against: number | null;
246
+ abstained: number | null;
247
+ include_in_action_plan: boolean;
248
+ tasks: {
249
+ text: string;
250
+ complete: boolean;
251
+ id?: string | undefined;
252
+ }[];
253
+ updates: unknown[];
254
+ id?: string | undefined;
255
+ }[];
256
+ updates: unknown[];
257
+ } | null, {
258
+ visible_on_profile: boolean;
259
+ description: string | null;
260
+ actions: {
261
+ text: string;
262
+ agreed: number | null;
263
+ against: number | null;
264
+ abstained: number | null;
265
+ include_in_action_plan: boolean;
266
+ tasks: {
267
+ text: string;
268
+ complete: boolean;
269
+ id?: string | undefined;
270
+ }[];
271
+ updates: unknown[];
272
+ id?: string | undefined;
273
+ }[];
274
+ updates: unknown[];
275
+ } | null | undefined>>;
276
+ surveys: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
277
+ visible_on_profile: z.ZodBoolean;
278
+ }, z.core.$strip>>>, z.ZodTransform<{
279
+ visible_on_profile: boolean;
280
+ } | null, {
281
+ visible_on_profile: boolean;
282
+ } | null | undefined>>;
283
+ }, z.core.$strip>;
284
+ response: z.ZodObject<{
285
+ created_at: z.ZodISODateTime;
286
+ updated_at: z.ZodISODateTime;
287
+ id: z.ZodUUID;
288
+ published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
289
+ name: z.ZodString;
290
+ about: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
291
+ topics: z.ZodArray<z.ZodString>;
292
+ country: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
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;
296
+ is_own: z.ZodBoolean;
297
+ organisation: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
298
+ visible_on_profile: z.ZodBoolean;
299
+ name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
300
+ description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
301
+ type: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
302
+ id: z.ZodUUID;
303
+ created_at: z.ZodISODateTime;
304
+ updated_at: z.ZodISODateTime;
305
+ }, z.core.$strip>>>, z.ZodTransform<{
306
+ visible_on_profile: boolean;
307
+ name: string | null;
308
+ description: string | null;
309
+ type: string | null;
310
+ id: string;
311
+ created_at: string;
312
+ updated_at: string;
313
+ } | null, {
314
+ visible_on_profile: boolean;
315
+ name: string | null;
316
+ description: string | null;
317
+ type: string | null;
318
+ id: string;
319
+ created_at: string;
320
+ updated_at: string;
321
+ } | null | undefined>>;
322
+ event_details: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
323
+ visible_on_profile: z.ZodBoolean;
324
+ registration_link: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
325
+ start_date: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, z.ZodTransform<string | null, string | null | undefined>>;
326
+ created_at: z.ZodISODateTime;
327
+ updated_at: z.ZodISODateTime;
328
+ }, z.core.$strip>>>, z.ZodTransform<{
329
+ visible_on_profile: boolean;
330
+ registration_link: string | null;
331
+ start_date: string | null;
332
+ created_at: string;
333
+ updated_at: string;
334
+ } | null, {
335
+ visible_on_profile: boolean;
336
+ registration_link: string | null;
337
+ start_date: string | null;
338
+ created_at: string;
339
+ updated_at: string;
340
+ } | null | undefined>>;
341
+ story: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
342
+ visible_on_profile: z.ZodBoolean;
343
+ background: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
344
+ created_at: z.ZodISODateTime;
345
+ updated_at: z.ZodISODateTime;
346
+ }, z.core.$strip>>>, z.ZodTransform<{
347
+ visible_on_profile: boolean;
348
+ background: string | null;
349
+ created_at: string;
350
+ updated_at: string;
351
+ } | null, {
352
+ visible_on_profile: boolean;
353
+ background: string | null;
354
+ created_at: string;
355
+ updated_at: string;
356
+ } | null | undefined>>;
357
+ supporters: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
358
+ visible_on_profile: z.ZodBoolean;
359
+ organisation_types: z.ZodArray<z.ZodString>;
360
+ description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
361
+ created_at: z.ZodISODateTime;
362
+ updated_at: z.ZodISODateTime;
363
+ }, z.core.$strip>>>, z.ZodTransform<{
364
+ visible_on_profile: boolean;
365
+ organisation_types: string[];
366
+ description: string | null;
367
+ created_at: string;
368
+ updated_at: string;
369
+ } | null, {
370
+ visible_on_profile: boolean;
371
+ organisation_types: string[];
372
+ description: string | null;
373
+ created_at: string;
374
+ updated_at: string;
375
+ } | null | undefined>>;
376
+ funders: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
377
+ visible_on_profile: z.ZodBoolean;
378
+ organisation_types: z.ZodArray<z.ZodString>;
379
+ description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
380
+ created_at: z.ZodISODateTime;
381
+ updated_at: z.ZodISODateTime;
382
+ }, z.core.$strip>>>, z.ZodTransform<{
383
+ visible_on_profile: boolean;
384
+ organisation_types: string[];
385
+ description: string | null;
386
+ created_at: string;
387
+ updated_at: string;
388
+ } | null, {
389
+ visible_on_profile: boolean;
390
+ organisation_types: string[];
391
+ description: string | null;
392
+ created_at: string;
393
+ updated_at: string;
394
+ } | null | undefined>>;
395
+ facilitation: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
396
+ visible_on_profile: z.ZodBoolean;
397
+ decision_method: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
398
+ created_at: z.ZodISODateTime;
399
+ updated_at: z.ZodISODateTime;
400
+ }, z.core.$strip>>>, z.ZodTransform<{
401
+ visible_on_profile: boolean;
402
+ decision_method: string | null;
403
+ created_at: string;
404
+ updated_at: string;
405
+ } | null, {
406
+ visible_on_profile: boolean;
407
+ decision_method: string | null;
408
+ created_at: string;
409
+ updated_at: string;
410
+ } | null | undefined>>;
411
+ participants: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
412
+ visible_on_profile: z.ZodBoolean;
413
+ recruitment_method: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
414
+ community: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
415
+ created_at: z.ZodISODateTime;
416
+ updated_at: z.ZodISODateTime;
417
+ }, z.core.$strip>>>, z.ZodTransform<{
418
+ visible_on_profile: boolean;
419
+ recruitment_method: string | null;
420
+ community: string | null;
421
+ created_at: string;
422
+ updated_at: string;
423
+ } | null, {
424
+ visible_on_profile: boolean;
425
+ recruitment_method: string | null;
426
+ community: string | null;
427
+ created_at: string;
428
+ updated_at: string;
429
+ } | null | undefined>>;
430
+ support: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
431
+ visible_on_profile: z.ZodBoolean;
432
+ support_options: z.ZodArray<z.ZodString>;
433
+ created_at: z.ZodISODateTime;
434
+ updated_at: z.ZodISODateTime;
435
+ }, z.core.$strip>>>, z.ZodTransform<{
436
+ visible_on_profile: boolean;
437
+ support_options: string[];
438
+ created_at: string;
439
+ updated_at: string;
440
+ } | null, {
441
+ visible_on_profile: boolean;
442
+ support_options: string[];
443
+ created_at: string;
444
+ updated_at: string;
445
+ } | null | undefined>>;
446
+ action_plan: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodIntersection<z.ZodObject<{
447
+ visible_on_profile: z.ZodBoolean;
448
+ description: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
449
+ actions: z.ZodArray<z.ZodObject<{
450
+ text: z.ZodString;
451
+ agreed: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number | null, number | null | undefined>>;
452
+ against: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number | null, number | null | undefined>>;
453
+ abstained: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>, z.ZodTransform<number | null, number | null | undefined>>;
454
+ include_in_action_plan: z.ZodDefault<z.ZodBoolean>;
455
+ id: z.ZodUUID;
456
+ tasks: z.ZodArray<z.ZodObject<{
457
+ text: z.ZodString;
458
+ complete: z.ZodDefault<z.ZodBoolean>;
459
+ id: z.ZodUUID;
460
+ created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
461
+ updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
462
+ }, z.core.$strip>>;
463
+ updates: z.ZodArray<z.ZodUnknown>;
464
+ created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
465
+ updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
466
+ }, z.core.$strip>>;
467
+ updates: z.ZodArray<z.ZodUnknown>;
468
+ }, z.core.$strip>, z.ZodObject<{
469
+ created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
470
+ updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
471
+ }, z.core.$strip>>>>, z.ZodTransform<NonNullable<{
472
+ visible_on_profile: boolean;
473
+ description: string | null;
474
+ actions: {
475
+ text: string;
476
+ agreed: number | null;
477
+ against: number | null;
478
+ abstained: number | null;
479
+ include_in_action_plan: boolean;
480
+ id: string;
481
+ tasks: {
482
+ text: string;
483
+ complete: boolean;
484
+ id: string;
485
+ created_at: string;
486
+ updated_at: string;
487
+ }[];
488
+ updates: unknown[];
489
+ created_at: string;
490
+ updated_at: string;
491
+ }[];
492
+ updates: unknown[];
493
+ } & {
494
+ created_at: string;
495
+ updated_at: string;
496
+ }> | null, ({
497
+ visible_on_profile: boolean;
498
+ description: string | null;
499
+ actions: {
500
+ text: string;
501
+ agreed: number | null;
502
+ against: number | null;
503
+ abstained: number | null;
504
+ include_in_action_plan: boolean;
505
+ id: string;
506
+ tasks: {
507
+ text: string;
508
+ complete: boolean;
509
+ id: string;
510
+ created_at: string;
511
+ updated_at: string;
512
+ }[];
513
+ updates: unknown[];
514
+ created_at: string;
515
+ updated_at: string;
516
+ }[];
517
+ updates: unknown[];
518
+ } & {
519
+ created_at: string;
520
+ updated_at: string;
521
+ }) | null | undefined>>;
522
+ surveys: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
523
+ visible_on_profile: z.ZodBoolean;
524
+ created_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
525
+ updated_at: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
526
+ data: z.ZodRecord<z.ZodString, z.ZodObject<{
527
+ total: z.ZodNumber;
528
+ responses: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
529
+ label: z.ZodString;
530
+ value: z.ZodCoercedNumber<unknown>;
531
+ }, z.core.$strip>>>;
532
+ }, z.core.$strip>>;
533
+ }, z.core.$strip>>>, z.ZodTransform<{
534
+ visible_on_profile: boolean;
535
+ created_at: string;
536
+ updated_at: string;
537
+ data: Record<string, {
538
+ total: number;
539
+ responses: Record<string, {
540
+ label: string;
541
+ value: number;
542
+ }[]>;
543
+ }>;
544
+ } | null, {
545
+ visible_on_profile: boolean;
546
+ created_at: string;
547
+ updated_at: string;
548
+ data: Record<string, {
549
+ total: number;
550
+ responses: Record<string, {
551
+ label: string;
552
+ value: number;
553
+ }[]>;
554
+ }>;
555
+ } | null | undefined>>;
556
+ }, z.core.$strip>;
1172
557
  };
1173
558
  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
- >;
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>;
1210
574
  };
1211
575
  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
- >;
576
+ payload: z.ZodUndefined;
577
+ response: z.ZodObject<{
578
+ assemblies: z.ZodArray<z.ZodObject<{
579
+ published_at: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>, 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.ZodISODateTime;
587
+ updated_at: z.ZodISODateTime;
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>;
1276
603
  };