@deepintel-ltd/farmpro-contracts 1.10.1 → 1.11.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.
@@ -9,6 +9,9 @@ export declare const organizationAttributesSchema: z.ZodObject<{
9
9
  address: z.ZodNullable<z.ZodString>;
10
10
  logo: z.ZodNullable<z.ZodString>;
11
11
  commodityCommissionRate: z.ZodNullable<z.ZodNumber>;
12
+ companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
+ /** Membership role for the current user when listing orgs */
14
+ membershipRole: z.ZodOptional<z.ZodEnum<["creator", "admin", "investor"]>>;
12
15
  } & {
13
16
  createdAt: z.ZodString;
14
17
  updatedAt: z.ZodString;
@@ -21,6 +24,8 @@ export declare const organizationAttributesSchema: z.ZodObject<{
21
24
  address: string | null;
22
25
  logo: string | null;
23
26
  commodityCommissionRate: number | null;
27
+ companyCommissionRate?: number | null | undefined;
28
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
24
29
  }, {
25
30
  email: string | null;
26
31
  createdAt: string;
@@ -30,9 +35,12 @@ export declare const organizationAttributesSchema: z.ZodObject<{
30
35
  address: string | null;
31
36
  logo: string | null;
32
37
  commodityCommissionRate: number | null;
38
+ companyCommissionRate?: number | null | undefined;
39
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
33
40
  }>;
34
41
  /** Where to apply a new commodity commission rate. Paid deals are never rewritten. */
35
42
  export declare const commodityCommissionApplyToSchema: z.ZodEnum<["future", "open_and_future"]>;
43
+ export declare const organizationContactRoleSchema: z.ZodEnum<["admin", "investor"]>;
36
44
  export declare const createOrganizationAttributesSchema: z.ZodObject<{
37
45
  name: z.ZodString;
38
46
  email: z.ZodOptional<z.ZodString>;
@@ -40,6 +48,7 @@ export declare const createOrganizationAttributesSchema: z.ZodObject<{
40
48
  address: z.ZodOptional<z.ZodString>;
41
49
  logo: z.ZodOptional<z.ZodString>;
42
50
  commodityCommissionRate: z.ZodOptional<z.ZodNumber>;
51
+ companyCommissionRate: z.ZodOptional<z.ZodNumber>;
43
52
  }, "strip", z.ZodTypeAny, {
44
53
  name: string;
45
54
  email?: string | undefined;
@@ -47,6 +56,7 @@ export declare const createOrganizationAttributesSchema: z.ZodObject<{
47
56
  address?: string | undefined;
48
57
  logo?: string | undefined;
49
58
  commodityCommissionRate?: number | undefined;
59
+ companyCommissionRate?: number | undefined;
50
60
  }, {
51
61
  name: string;
52
62
  email?: string | undefined;
@@ -54,6 +64,7 @@ export declare const createOrganizationAttributesSchema: z.ZodObject<{
54
64
  address?: string | undefined;
55
65
  logo?: string | undefined;
56
66
  commodityCommissionRate?: number | undefined;
67
+ companyCommissionRate?: number | undefined;
57
68
  }>;
58
69
  export declare const updateOrganizationAttributesSchema: z.ZodObject<{
59
70
  name: z.ZodOptional<z.ZodString>;
@@ -62,6 +73,7 @@ export declare const updateOrganizationAttributesSchema: z.ZodObject<{
62
73
  address: z.ZodOptional<z.ZodOptional<z.ZodString>>;
63
74
  logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
64
75
  commodityCommissionRate: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
76
+ companyCommissionRate: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
65
77
  } & {
66
78
  /**
67
79
  * When updating commodityCommissionRate:
@@ -70,6 +82,7 @@ export declare const updateOrganizationAttributesSchema: z.ZodObject<{
70
82
  * Defaults to future when omitted.
71
83
  */
72
84
  commodityCommissionApplyTo: z.ZodOptional<z.ZodEnum<["future", "open_and_future"]>>;
85
+ companyCommissionApplyTo: z.ZodOptional<z.ZodEnum<["future", "open_and_future"]>>;
73
86
  }, "strip", z.ZodTypeAny, {
74
87
  email?: string | undefined;
75
88
  name?: string | undefined;
@@ -77,7 +90,9 @@ export declare const updateOrganizationAttributesSchema: z.ZodObject<{
77
90
  address?: string | undefined;
78
91
  logo?: string | undefined;
79
92
  commodityCommissionRate?: number | undefined;
93
+ companyCommissionRate?: number | undefined;
80
94
  commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
95
+ companyCommissionApplyTo?: "future" | "open_and_future" | undefined;
81
96
  }, {
82
97
  email?: string | undefined;
83
98
  name?: string | undefined;
@@ -85,7 +100,9 @@ export declare const updateOrganizationAttributesSchema: z.ZodObject<{
85
100
  address?: string | undefined;
86
101
  logo?: string | undefined;
87
102
  commodityCommissionRate?: number | undefined;
103
+ companyCommissionRate?: number | undefined;
88
104
  commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
105
+ companyCommissionApplyTo?: "future" | "open_and_future" | undefined;
89
106
  }>;
90
107
  export declare const createOrganizationSchema: z.ZodObject<{
91
108
  type: z.ZodLiteral<"organizations">;
@@ -96,6 +113,7 @@ export declare const createOrganizationSchema: z.ZodObject<{
96
113
  address: z.ZodOptional<z.ZodString>;
97
114
  logo: z.ZodOptional<z.ZodString>;
98
115
  commodityCommissionRate: z.ZodOptional<z.ZodNumber>;
116
+ companyCommissionRate: z.ZodOptional<z.ZodNumber>;
99
117
  }, "strip", z.ZodTypeAny, {
100
118
  name: string;
101
119
  email?: string | undefined;
@@ -103,6 +121,7 @@ export declare const createOrganizationSchema: z.ZodObject<{
103
121
  address?: string | undefined;
104
122
  logo?: string | undefined;
105
123
  commodityCommissionRate?: number | undefined;
124
+ companyCommissionRate?: number | undefined;
106
125
  }, {
107
126
  name: string;
108
127
  email?: string | undefined;
@@ -110,6 +129,7 @@ export declare const createOrganizationSchema: z.ZodObject<{
110
129
  address?: string | undefined;
111
130
  logo?: string | undefined;
112
131
  commodityCommissionRate?: number | undefined;
132
+ companyCommissionRate?: number | undefined;
113
133
  }>;
114
134
  }, "strip", z.ZodTypeAny, {
115
135
  type: "organizations";
@@ -120,6 +140,7 @@ export declare const createOrganizationSchema: z.ZodObject<{
120
140
  address?: string | undefined;
121
141
  logo?: string | undefined;
122
142
  commodityCommissionRate?: number | undefined;
143
+ companyCommissionRate?: number | undefined;
123
144
  };
124
145
  }, {
125
146
  type: "organizations";
@@ -130,6 +151,7 @@ export declare const createOrganizationSchema: z.ZodObject<{
130
151
  address?: string | undefined;
131
152
  logo?: string | undefined;
132
153
  commodityCommissionRate?: number | undefined;
154
+ companyCommissionRate?: number | undefined;
133
155
  };
134
156
  }>;
135
157
  export declare const updateOrganizationSchema: z.ZodObject<{
@@ -142,6 +164,7 @@ export declare const updateOrganizationSchema: z.ZodObject<{
142
164
  address: z.ZodOptional<z.ZodOptional<z.ZodString>>;
143
165
  logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
144
166
  commodityCommissionRate: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
167
+ companyCommissionRate: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
145
168
  } & {
146
169
  /**
147
170
  * When updating commodityCommissionRate:
@@ -150,6 +173,7 @@ export declare const updateOrganizationSchema: z.ZodObject<{
150
173
  * Defaults to future when omitted.
151
174
  */
152
175
  commodityCommissionApplyTo: z.ZodOptional<z.ZodEnum<["future", "open_and_future"]>>;
176
+ companyCommissionApplyTo: z.ZodOptional<z.ZodEnum<["future", "open_and_future"]>>;
153
177
  }, "strip", z.ZodTypeAny, {
154
178
  email?: string | undefined;
155
179
  name?: string | undefined;
@@ -157,7 +181,9 @@ export declare const updateOrganizationSchema: z.ZodObject<{
157
181
  address?: string | undefined;
158
182
  logo?: string | undefined;
159
183
  commodityCommissionRate?: number | undefined;
184
+ companyCommissionRate?: number | undefined;
160
185
  commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
186
+ companyCommissionApplyTo?: "future" | "open_and_future" | undefined;
161
187
  }, {
162
188
  email?: string | undefined;
163
189
  name?: string | undefined;
@@ -165,7 +191,9 @@ export declare const updateOrganizationSchema: z.ZodObject<{
165
191
  address?: string | undefined;
166
192
  logo?: string | undefined;
167
193
  commodityCommissionRate?: number | undefined;
194
+ companyCommissionRate?: number | undefined;
168
195
  commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
196
+ companyCommissionApplyTo?: "future" | "open_and_future" | undefined;
169
197
  }>;
170
198
  }, "strip", z.ZodTypeAny, {
171
199
  type: "organizations";
@@ -176,7 +204,9 @@ export declare const updateOrganizationSchema: z.ZodObject<{
176
204
  address?: string | undefined;
177
205
  logo?: string | undefined;
178
206
  commodityCommissionRate?: number | undefined;
207
+ companyCommissionRate?: number | undefined;
179
208
  commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
209
+ companyCommissionApplyTo?: "future" | "open_and_future" | undefined;
180
210
  };
181
211
  id?: string | undefined;
182
212
  }, {
@@ -188,7 +218,9 @@ export declare const updateOrganizationSchema: z.ZodObject<{
188
218
  address?: string | undefined;
189
219
  logo?: string | undefined;
190
220
  commodityCommissionRate?: number | undefined;
221
+ companyCommissionRate?: number | undefined;
191
222
  commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
223
+ companyCommissionApplyTo?: "future" | "open_and_future" | undefined;
192
224
  };
193
225
  id?: string | undefined;
194
226
  }>;
@@ -202,6 +234,9 @@ export declare const organizationResourceSchema: z.ZodObject<{
202
234
  address: z.ZodNullable<z.ZodString>;
203
235
  logo: z.ZodNullable<z.ZodString>;
204
236
  commodityCommissionRate: z.ZodNullable<z.ZodNumber>;
237
+ companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
238
+ /** Membership role for the current user when listing orgs */
239
+ membershipRole: z.ZodOptional<z.ZodEnum<["creator", "admin", "investor"]>>;
205
240
  } & {
206
241
  createdAt: z.ZodString;
207
242
  updatedAt: z.ZodString;
@@ -214,6 +249,8 @@ export declare const organizationResourceSchema: z.ZodObject<{
214
249
  address: string | null;
215
250
  logo: string | null;
216
251
  commodityCommissionRate: number | null;
252
+ companyCommissionRate?: number | null | undefined;
253
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
217
254
  }, {
218
255
  email: string | null;
219
256
  createdAt: string;
@@ -223,6 +260,8 @@ export declare const organizationResourceSchema: z.ZodObject<{
223
260
  address: string | null;
224
261
  logo: string | null;
225
262
  commodityCommissionRate: number | null;
263
+ companyCommissionRate?: number | null | undefined;
264
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
226
265
  }>;
227
266
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
228
267
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -239,6 +278,8 @@ export declare const organizationResourceSchema: z.ZodObject<{
239
278
  address: string | null;
240
279
  logo: string | null;
241
280
  commodityCommissionRate: number | null;
281
+ companyCommissionRate?: number | null | undefined;
282
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
242
283
  };
243
284
  relationships?: Record<string, unknown> | undefined;
244
285
  links?: Record<string, string> | undefined;
@@ -255,6 +296,8 @@ export declare const organizationResourceSchema: z.ZodObject<{
255
296
  address: string | null;
256
297
  logo: string | null;
257
298
  commodityCommissionRate: number | null;
299
+ companyCommissionRate?: number | null | undefined;
300
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
258
301
  };
259
302
  relationships?: Record<string, unknown> | undefined;
260
303
  links?: Record<string, string> | undefined;
@@ -271,6 +314,9 @@ export declare const organizationResponseSchema: z.ZodObject<{
271
314
  address: z.ZodNullable<z.ZodString>;
272
315
  logo: z.ZodNullable<z.ZodString>;
273
316
  commodityCommissionRate: z.ZodNullable<z.ZodNumber>;
317
+ companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
318
+ /** Membership role for the current user when listing orgs */
319
+ membershipRole: z.ZodOptional<z.ZodEnum<["creator", "admin", "investor"]>>;
274
320
  } & {
275
321
  createdAt: z.ZodString;
276
322
  updatedAt: z.ZodString;
@@ -283,6 +329,8 @@ export declare const organizationResponseSchema: z.ZodObject<{
283
329
  address: string | null;
284
330
  logo: string | null;
285
331
  commodityCommissionRate: number | null;
332
+ companyCommissionRate?: number | null | undefined;
333
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
286
334
  }, {
287
335
  email: string | null;
288
336
  createdAt: string;
@@ -292,6 +340,8 @@ export declare const organizationResponseSchema: z.ZodObject<{
292
340
  address: string | null;
293
341
  logo: string | null;
294
342
  commodityCommissionRate: number | null;
343
+ companyCommissionRate?: number | null | undefined;
344
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
295
345
  }>;
296
346
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
297
347
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -308,6 +358,8 @@ export declare const organizationResponseSchema: z.ZodObject<{
308
358
  address: string | null;
309
359
  logo: string | null;
310
360
  commodityCommissionRate: number | null;
361
+ companyCommissionRate?: number | null | undefined;
362
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
311
363
  };
312
364
  relationships?: Record<string, unknown> | undefined;
313
365
  links?: Record<string, string> | undefined;
@@ -324,6 +376,8 @@ export declare const organizationResponseSchema: z.ZodObject<{
324
376
  address: string | null;
325
377
  logo: string | null;
326
378
  commodityCommissionRate: number | null;
379
+ companyCommissionRate?: number | null | undefined;
380
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
327
381
  };
328
382
  relationships?: Record<string, unknown> | undefined;
329
383
  links?: Record<string, string> | undefined;
@@ -366,6 +420,8 @@ export declare const organizationResponseSchema: z.ZodObject<{
366
420
  address: string | null;
367
421
  logo: string | null;
368
422
  commodityCommissionRate: number | null;
423
+ companyCommissionRate?: number | null | undefined;
424
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
369
425
  };
370
426
  relationships?: Record<string, unknown> | undefined;
371
427
  links?: Record<string, string> | undefined;
@@ -394,6 +450,8 @@ export declare const organizationResponseSchema: z.ZodObject<{
394
450
  address: string | null;
395
451
  logo: string | null;
396
452
  commodityCommissionRate: number | null;
453
+ companyCommissionRate?: number | null | undefined;
454
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
397
455
  };
398
456
  relationships?: Record<string, unknown> | undefined;
399
457
  links?: Record<string, string> | undefined;
@@ -421,6 +479,9 @@ export declare const organizationListResponseSchema: z.ZodObject<{
421
479
  address: z.ZodNullable<z.ZodString>;
422
480
  logo: z.ZodNullable<z.ZodString>;
423
481
  commodityCommissionRate: z.ZodNullable<z.ZodNumber>;
482
+ companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
483
+ /** Membership role for the current user when listing orgs */
484
+ membershipRole: z.ZodOptional<z.ZodEnum<["creator", "admin", "investor"]>>;
424
485
  } & {
425
486
  createdAt: z.ZodString;
426
487
  updatedAt: z.ZodString;
@@ -433,6 +494,8 @@ export declare const organizationListResponseSchema: z.ZodObject<{
433
494
  address: string | null;
434
495
  logo: string | null;
435
496
  commodityCommissionRate: number | null;
497
+ companyCommissionRate?: number | null | undefined;
498
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
436
499
  }, {
437
500
  email: string | null;
438
501
  createdAt: string;
@@ -442,6 +505,8 @@ export declare const organizationListResponseSchema: z.ZodObject<{
442
505
  address: string | null;
443
506
  logo: string | null;
444
507
  commodityCommissionRate: number | null;
508
+ companyCommissionRate?: number | null | undefined;
509
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
445
510
  }>;
446
511
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
447
512
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -458,6 +523,8 @@ export declare const organizationListResponseSchema: z.ZodObject<{
458
523
  address: string | null;
459
524
  logo: string | null;
460
525
  commodityCommissionRate: number | null;
526
+ companyCommissionRate?: number | null | undefined;
527
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
461
528
  };
462
529
  relationships?: Record<string, unknown> | undefined;
463
530
  links?: Record<string, string> | undefined;
@@ -474,6 +541,8 @@ export declare const organizationListResponseSchema: z.ZodObject<{
474
541
  address: string | null;
475
542
  logo: string | null;
476
543
  commodityCommissionRate: number | null;
544
+ companyCommissionRate?: number | null | undefined;
545
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
477
546
  };
478
547
  relationships?: Record<string, unknown> | undefined;
479
548
  links?: Record<string, string> | undefined;
@@ -516,6 +585,8 @@ export declare const organizationListResponseSchema: z.ZodObject<{
516
585
  address: string | null;
517
586
  logo: string | null;
518
587
  commodityCommissionRate: number | null;
588
+ companyCommissionRate?: number | null | undefined;
589
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
519
590
  };
520
591
  relationships?: Record<string, unknown> | undefined;
521
592
  links?: Record<string, string> | undefined;
@@ -544,6 +615,8 @@ export declare const organizationListResponseSchema: z.ZodObject<{
544
615
  address: string | null;
545
616
  logo: string | null;
546
617
  commodityCommissionRate: number | null;
618
+ companyCommissionRate?: number | null | undefined;
619
+ membershipRole?: "creator" | "admin" | "investor" | undefined;
547
620
  };
548
621
  relationships?: Record<string, unknown> | undefined;
549
622
  links?: Record<string, string> | undefined;
@@ -569,6 +642,474 @@ export type OrganizationAttributes = z.infer<typeof organizationAttributesSchema
569
642
  export type OrganizationResource = z.infer<typeof organizationResourceSchema>;
570
643
  export type OrganizationResponse = z.infer<typeof organizationResponseSchema>;
571
644
  export type OrganizationListResponse = z.infer<typeof organizationListResponseSchema>;
645
+ export declare const organizationContactAttributesSchema: z.ZodObject<{
646
+ organizationId: z.ZodString;
647
+ userId: z.ZodString;
648
+ role: z.ZodEnum<["admin", "investor"]>;
649
+ isPrimary: z.ZodBoolean;
650
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
651
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
652
+ } & {
653
+ createdAt: z.ZodString;
654
+ updatedAt: z.ZodString;
655
+ }, "strip", z.ZodTypeAny, {
656
+ createdAt: string;
657
+ updatedAt: string;
658
+ userId: string;
659
+ role: "admin" | "investor";
660
+ organizationId: string;
661
+ isPrimary: boolean;
662
+ email?: string | null | undefined;
663
+ name?: string | null | undefined;
664
+ }, {
665
+ createdAt: string;
666
+ updatedAt: string;
667
+ userId: string;
668
+ role: "admin" | "investor";
669
+ organizationId: string;
670
+ isPrimary: boolean;
671
+ email?: string | null | undefined;
672
+ name?: string | null | undefined;
673
+ }>;
674
+ export declare const createOrganizationContactAttributesSchema: z.ZodObject<{
675
+ userId: z.ZodString;
676
+ role: z.ZodDefault<z.ZodOptional<z.ZodEnum<["admin", "investor"]>>>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ userId: string;
679
+ role: "admin" | "investor";
680
+ }, {
681
+ userId: string;
682
+ role?: "admin" | "investor" | undefined;
683
+ }>;
684
+ export declare const updateOrganizationContactAttributesSchema: z.ZodObject<{
685
+ role: z.ZodEnum<["admin", "investor"]>;
686
+ }, "strip", z.ZodTypeAny, {
687
+ role: "admin" | "investor";
688
+ }, {
689
+ role: "admin" | "investor";
690
+ }>;
691
+ export declare const createOrganizationContactSchema: z.ZodObject<{
692
+ type: z.ZodLiteral<"organization-contacts">;
693
+ attributes: z.ZodObject<{
694
+ userId: z.ZodString;
695
+ role: z.ZodDefault<z.ZodOptional<z.ZodEnum<["admin", "investor"]>>>;
696
+ }, "strip", z.ZodTypeAny, {
697
+ userId: string;
698
+ role: "admin" | "investor";
699
+ }, {
700
+ userId: string;
701
+ role?: "admin" | "investor" | undefined;
702
+ }>;
703
+ }, "strip", z.ZodTypeAny, {
704
+ type: "organization-contacts";
705
+ attributes: {
706
+ userId: string;
707
+ role: "admin" | "investor";
708
+ };
709
+ }, {
710
+ type: "organization-contacts";
711
+ attributes: {
712
+ userId: string;
713
+ role?: "admin" | "investor" | undefined;
714
+ };
715
+ }>;
716
+ export declare const updateOrganizationContactSchema: z.ZodObject<{
717
+ type: z.ZodLiteral<"organization-contacts">;
718
+ id: z.ZodOptional<z.ZodString>;
719
+ attributes: z.ZodObject<{
720
+ role: z.ZodEnum<["admin", "investor"]>;
721
+ }, "strip", z.ZodTypeAny, {
722
+ role: "admin" | "investor";
723
+ }, {
724
+ role: "admin" | "investor";
725
+ }>;
726
+ }, "strip", z.ZodTypeAny, {
727
+ type: "organization-contacts";
728
+ attributes: {
729
+ role: "admin" | "investor";
730
+ };
731
+ id?: string | undefined;
732
+ }, {
733
+ type: "organization-contacts";
734
+ attributes: {
735
+ role: "admin" | "investor";
736
+ };
737
+ id?: string | undefined;
738
+ }>;
739
+ export declare const organizationContactResourceSchema: z.ZodObject<{
740
+ type: z.ZodLiteral<string>;
741
+ id: z.ZodString;
742
+ attributes: z.ZodObject<{
743
+ organizationId: z.ZodString;
744
+ userId: z.ZodString;
745
+ role: z.ZodEnum<["admin", "investor"]>;
746
+ isPrimary: z.ZodBoolean;
747
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
748
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
749
+ } & {
750
+ createdAt: z.ZodString;
751
+ updatedAt: z.ZodString;
752
+ }, "strip", z.ZodTypeAny, {
753
+ createdAt: string;
754
+ updatedAt: string;
755
+ userId: string;
756
+ role: "admin" | "investor";
757
+ organizationId: string;
758
+ isPrimary: boolean;
759
+ email?: string | null | undefined;
760
+ name?: string | null | undefined;
761
+ }, {
762
+ createdAt: string;
763
+ updatedAt: string;
764
+ userId: string;
765
+ role: "admin" | "investor";
766
+ organizationId: string;
767
+ isPrimary: boolean;
768
+ email?: string | null | undefined;
769
+ name?: string | null | undefined;
770
+ }>;
771
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
772
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
773
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
774
+ }, "strip", z.ZodTypeAny, {
775
+ type: string;
776
+ id: string;
777
+ attributes: {
778
+ createdAt: string;
779
+ updatedAt: string;
780
+ userId: string;
781
+ role: "admin" | "investor";
782
+ organizationId: string;
783
+ isPrimary: boolean;
784
+ email?: string | null | undefined;
785
+ name?: string | null | undefined;
786
+ };
787
+ relationships?: Record<string, unknown> | undefined;
788
+ links?: Record<string, string> | undefined;
789
+ meta?: Record<string, unknown> | undefined;
790
+ }, {
791
+ type: string;
792
+ id: string;
793
+ attributes: {
794
+ createdAt: string;
795
+ updatedAt: string;
796
+ userId: string;
797
+ role: "admin" | "investor";
798
+ organizationId: string;
799
+ isPrimary: boolean;
800
+ email?: string | null | undefined;
801
+ name?: string | null | undefined;
802
+ };
803
+ relationships?: Record<string, unknown> | undefined;
804
+ links?: Record<string, string> | undefined;
805
+ meta?: Record<string, unknown> | undefined;
806
+ }>;
807
+ export declare const organizationContactResponseSchema: z.ZodObject<{
808
+ data: z.ZodObject<{
809
+ type: z.ZodLiteral<string>;
810
+ id: z.ZodString;
811
+ attributes: z.ZodObject<{
812
+ organizationId: z.ZodString;
813
+ userId: z.ZodString;
814
+ role: z.ZodEnum<["admin", "investor"]>;
815
+ isPrimary: z.ZodBoolean;
816
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
817
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
818
+ } & {
819
+ createdAt: z.ZodString;
820
+ updatedAt: z.ZodString;
821
+ }, "strip", z.ZodTypeAny, {
822
+ createdAt: string;
823
+ updatedAt: string;
824
+ userId: string;
825
+ role: "admin" | "investor";
826
+ organizationId: string;
827
+ isPrimary: boolean;
828
+ email?: string | null | undefined;
829
+ name?: string | null | undefined;
830
+ }, {
831
+ createdAt: string;
832
+ updatedAt: string;
833
+ userId: string;
834
+ role: "admin" | "investor";
835
+ organizationId: string;
836
+ isPrimary: boolean;
837
+ email?: string | null | undefined;
838
+ name?: string | null | undefined;
839
+ }>;
840
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
841
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
842
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
843
+ }, "strip", z.ZodTypeAny, {
844
+ type: string;
845
+ id: string;
846
+ attributes: {
847
+ createdAt: string;
848
+ updatedAt: string;
849
+ userId: string;
850
+ role: "admin" | "investor";
851
+ organizationId: string;
852
+ isPrimary: boolean;
853
+ email?: string | null | undefined;
854
+ name?: string | null | undefined;
855
+ };
856
+ relationships?: Record<string, unknown> | undefined;
857
+ links?: Record<string, string> | undefined;
858
+ meta?: Record<string, unknown> | undefined;
859
+ }, {
860
+ type: string;
861
+ id: string;
862
+ attributes: {
863
+ createdAt: string;
864
+ updatedAt: string;
865
+ userId: string;
866
+ role: "admin" | "investor";
867
+ organizationId: string;
868
+ isPrimary: boolean;
869
+ email?: string | null | undefined;
870
+ name?: string | null | undefined;
871
+ };
872
+ relationships?: Record<string, unknown> | undefined;
873
+ links?: Record<string, string> | undefined;
874
+ meta?: Record<string, unknown> | undefined;
875
+ }>;
876
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
877
+ type: z.ZodString;
878
+ id: z.ZodString;
879
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
880
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
881
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
882
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
883
+ }, "strip", z.ZodTypeAny, {
884
+ type: string;
885
+ id: string;
886
+ attributes?: Record<string, unknown> | undefined;
887
+ relationships?: Record<string, unknown> | undefined;
888
+ links?: Record<string, string> | undefined;
889
+ meta?: Record<string, unknown> | undefined;
890
+ }, {
891
+ type: string;
892
+ id: string;
893
+ attributes?: Record<string, unknown> | undefined;
894
+ relationships?: Record<string, unknown> | undefined;
895
+ links?: Record<string, string> | undefined;
896
+ meta?: Record<string, unknown> | undefined;
897
+ }>, "many">>;
898
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
899
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
900
+ }, "strip", z.ZodTypeAny, {
901
+ data: {
902
+ type: string;
903
+ id: string;
904
+ attributes: {
905
+ createdAt: string;
906
+ updatedAt: string;
907
+ userId: string;
908
+ role: "admin" | "investor";
909
+ organizationId: string;
910
+ isPrimary: boolean;
911
+ email?: string | null | undefined;
912
+ name?: string | null | undefined;
913
+ };
914
+ relationships?: Record<string, unknown> | undefined;
915
+ links?: Record<string, string> | undefined;
916
+ meta?: Record<string, unknown> | undefined;
917
+ };
918
+ links?: Record<string, string> | undefined;
919
+ meta?: Record<string, unknown> | undefined;
920
+ included?: {
921
+ type: string;
922
+ id: string;
923
+ attributes?: Record<string, unknown> | undefined;
924
+ relationships?: Record<string, unknown> | undefined;
925
+ links?: Record<string, string> | undefined;
926
+ meta?: Record<string, unknown> | undefined;
927
+ }[] | undefined;
928
+ }, {
929
+ data: {
930
+ type: string;
931
+ id: string;
932
+ attributes: {
933
+ createdAt: string;
934
+ updatedAt: string;
935
+ userId: string;
936
+ role: "admin" | "investor";
937
+ organizationId: string;
938
+ isPrimary: boolean;
939
+ email?: string | null | undefined;
940
+ name?: string | null | undefined;
941
+ };
942
+ relationships?: Record<string, unknown> | undefined;
943
+ links?: Record<string, string> | undefined;
944
+ meta?: Record<string, unknown> | undefined;
945
+ };
946
+ links?: Record<string, string> | undefined;
947
+ meta?: Record<string, unknown> | undefined;
948
+ included?: {
949
+ type: string;
950
+ id: string;
951
+ attributes?: Record<string, unknown> | undefined;
952
+ relationships?: Record<string, unknown> | undefined;
953
+ links?: Record<string, string> | undefined;
954
+ meta?: Record<string, unknown> | undefined;
955
+ }[] | undefined;
956
+ }>;
957
+ export declare const organizationContactListResponseSchema: z.ZodObject<{
958
+ data: z.ZodArray<z.ZodObject<{
959
+ type: z.ZodLiteral<string>;
960
+ id: z.ZodString;
961
+ attributes: z.ZodObject<{
962
+ organizationId: z.ZodString;
963
+ userId: z.ZodString;
964
+ role: z.ZodEnum<["admin", "investor"]>;
965
+ isPrimary: z.ZodBoolean;
966
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
967
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
968
+ } & {
969
+ createdAt: z.ZodString;
970
+ updatedAt: z.ZodString;
971
+ }, "strip", z.ZodTypeAny, {
972
+ createdAt: string;
973
+ updatedAt: string;
974
+ userId: string;
975
+ role: "admin" | "investor";
976
+ organizationId: string;
977
+ isPrimary: boolean;
978
+ email?: string | null | undefined;
979
+ name?: string | null | undefined;
980
+ }, {
981
+ createdAt: string;
982
+ updatedAt: string;
983
+ userId: string;
984
+ role: "admin" | "investor";
985
+ organizationId: string;
986
+ isPrimary: boolean;
987
+ email?: string | null | undefined;
988
+ name?: string | null | undefined;
989
+ }>;
990
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
991
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
992
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
993
+ }, "strip", z.ZodTypeAny, {
994
+ type: string;
995
+ id: string;
996
+ attributes: {
997
+ createdAt: string;
998
+ updatedAt: string;
999
+ userId: string;
1000
+ role: "admin" | "investor";
1001
+ organizationId: string;
1002
+ isPrimary: boolean;
1003
+ email?: string | null | undefined;
1004
+ name?: string | null | undefined;
1005
+ };
1006
+ relationships?: Record<string, unknown> | undefined;
1007
+ links?: Record<string, string> | undefined;
1008
+ meta?: Record<string, unknown> | undefined;
1009
+ }, {
1010
+ type: string;
1011
+ id: string;
1012
+ attributes: {
1013
+ createdAt: string;
1014
+ updatedAt: string;
1015
+ userId: string;
1016
+ role: "admin" | "investor";
1017
+ organizationId: string;
1018
+ isPrimary: boolean;
1019
+ email?: string | null | undefined;
1020
+ name?: string | null | undefined;
1021
+ };
1022
+ relationships?: Record<string, unknown> | undefined;
1023
+ links?: Record<string, string> | undefined;
1024
+ meta?: Record<string, unknown> | undefined;
1025
+ }>, "many">;
1026
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1027
+ type: z.ZodString;
1028
+ id: z.ZodString;
1029
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1030
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1031
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1032
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1033
+ }, "strip", z.ZodTypeAny, {
1034
+ type: string;
1035
+ id: string;
1036
+ attributes?: Record<string, unknown> | undefined;
1037
+ relationships?: Record<string, unknown> | undefined;
1038
+ links?: Record<string, string> | undefined;
1039
+ meta?: Record<string, unknown> | undefined;
1040
+ }, {
1041
+ type: string;
1042
+ id: string;
1043
+ attributes?: Record<string, unknown> | undefined;
1044
+ relationships?: Record<string, unknown> | undefined;
1045
+ links?: Record<string, string> | undefined;
1046
+ meta?: Record<string, unknown> | undefined;
1047
+ }>, "many">>;
1048
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1049
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1050
+ }, "strip", z.ZodTypeAny, {
1051
+ data: {
1052
+ type: string;
1053
+ id: string;
1054
+ attributes: {
1055
+ createdAt: string;
1056
+ updatedAt: string;
1057
+ userId: string;
1058
+ role: "admin" | "investor";
1059
+ organizationId: string;
1060
+ isPrimary: boolean;
1061
+ email?: string | null | undefined;
1062
+ name?: string | null | undefined;
1063
+ };
1064
+ relationships?: Record<string, unknown> | undefined;
1065
+ links?: Record<string, string> | undefined;
1066
+ meta?: Record<string, unknown> | undefined;
1067
+ }[];
1068
+ links?: Record<string, string> | undefined;
1069
+ meta?: Record<string, unknown> | undefined;
1070
+ included?: {
1071
+ type: string;
1072
+ id: string;
1073
+ attributes?: Record<string, unknown> | undefined;
1074
+ relationships?: Record<string, unknown> | undefined;
1075
+ links?: Record<string, string> | undefined;
1076
+ meta?: Record<string, unknown> | undefined;
1077
+ }[] | undefined;
1078
+ }, {
1079
+ data: {
1080
+ type: string;
1081
+ id: string;
1082
+ attributes: {
1083
+ createdAt: string;
1084
+ updatedAt: string;
1085
+ userId: string;
1086
+ role: "admin" | "investor";
1087
+ organizationId: string;
1088
+ isPrimary: boolean;
1089
+ email?: string | null | undefined;
1090
+ name?: string | null | undefined;
1091
+ };
1092
+ relationships?: Record<string, unknown> | undefined;
1093
+ links?: Record<string, string> | undefined;
1094
+ meta?: Record<string, unknown> | undefined;
1095
+ }[];
1096
+ links?: Record<string, string> | undefined;
1097
+ meta?: Record<string, unknown> | undefined;
1098
+ included?: {
1099
+ type: string;
1100
+ id: string;
1101
+ attributes?: Record<string, unknown> | undefined;
1102
+ relationships?: Record<string, unknown> | undefined;
1103
+ links?: Record<string, string> | undefined;
1104
+ meta?: Record<string, unknown> | undefined;
1105
+ }[] | undefined;
1106
+ }>;
1107
+ export type OrganizationContactRole = z.infer<typeof organizationContactRoleSchema>;
1108
+ export type CreateOrganizationContactInput = z.infer<typeof createOrganizationContactSchema>;
1109
+ export type UpdateOrganizationContactInput = z.infer<typeof updateOrganizationContactSchema>;
1110
+ export type OrganizationContactAttributes = z.infer<typeof organizationContactAttributesSchema>;
1111
+ export type OrganizationContactResponse = z.infer<typeof organizationContactResponseSchema>;
1112
+ export type OrganizationContactListResponse = z.infer<typeof organizationContactListResponseSchema>;
572
1113
  export declare const bankAccountAttributesSchema: z.ZodObject<{
573
1114
  bankName: z.ZodString;
574
1115
  accountNumber: z.ZodString;