@oxy.so/contracts 4.13.0 → 4.14.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,1088 @@
1
+ import { z } from 'zod';
2
+ /** Real-world identity classification, independent of account topics and permissions. */
3
+ export declare const ORGANIZATION_TYPES: readonly ["business", "nonprofit", "public_body", "community", "other"];
4
+ export declare const ORGANIZATION_STATUSES: readonly ["active", "inactive", "merged", "suppressed"];
5
+ export declare const ORGANIZATION_CLAIM_STATUSES: readonly ["unclaimed", "claimed"];
6
+ export declare const ORGANIZATION_ALIAS_KINDS: readonly ["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"];
7
+ export declare const ORGANIZATION_CLAIM_DECISIONS: readonly ["pending", "approved", "rejected"];
8
+ export declare const organizationAliasSchema: z.ZodObject<{
9
+ alias: z.ZodString;
10
+ kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
11
+ language: z.ZodOptional<z.ZodString>;
12
+ }, "strict", z.ZodTypeAny, {
13
+ alias: string;
14
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
15
+ language?: string | undefined;
16
+ }, {
17
+ alias: string;
18
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
19
+ language?: string | undefined;
20
+ }>;
21
+ export declare const ORGANIZATION_NAME_MAX_LENGTH = 300;
22
+ export declare const organizationNameSchema: z.ZodEffects<z.ZodString, string, string>;
23
+ export declare const createOrganizationSchema: z.ZodObject<{
24
+ name: z.ZodEffects<z.ZodString, string, string>;
25
+ organizationType: z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>;
26
+ legalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
28
+ countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ aliases: z.ZodOptional<z.ZodArray<z.ZodObject<{
30
+ alias: z.ZodString;
31
+ kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
32
+ language: z.ZodOptional<z.ZodString>;
33
+ }, "strict", z.ZodTypeAny, {
34
+ alias: string;
35
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
36
+ language?: string | undefined;
37
+ }, {
38
+ alias: string;
39
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
40
+ language?: string | undefined;
41
+ }>, "many">>;
42
+ }, "strict", z.ZodTypeAny, {
43
+ name: string;
44
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
45
+ legalName?: string | null | undefined;
46
+ websiteUrl?: string | null | undefined;
47
+ countryCode?: string | null | undefined;
48
+ aliases?: {
49
+ alias: string;
50
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
51
+ language?: string | undefined;
52
+ }[] | undefined;
53
+ }, {
54
+ name: string;
55
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
56
+ legalName?: string | null | undefined;
57
+ websiteUrl?: string | null | undefined;
58
+ countryCode?: string | null | undefined;
59
+ aliases?: {
60
+ alias: string;
61
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
62
+ language?: string | undefined;
63
+ }[] | undefined;
64
+ }>;
65
+ export declare const updateOrganizationSchema: z.ZodObject<{
66
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
67
+ organizationType: z.ZodOptional<z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>>;
68
+ legalName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
69
+ websiteUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>>;
70
+ countryCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
71
+ aliases: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
72
+ alias: z.ZodString;
73
+ kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
74
+ language: z.ZodOptional<z.ZodString>;
75
+ }, "strict", z.ZodTypeAny, {
76
+ alias: string;
77
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
78
+ language?: string | undefined;
79
+ }, {
80
+ alias: string;
81
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
82
+ language?: string | undefined;
83
+ }>, "many">>>;
84
+ }, "strict", z.ZodTypeAny, {
85
+ name?: string | undefined;
86
+ organizationType?: "business" | "nonprofit" | "public_body" | "community" | "other" | undefined;
87
+ legalName?: string | null | undefined;
88
+ websiteUrl?: string | null | undefined;
89
+ countryCode?: string | null | undefined;
90
+ aliases?: {
91
+ alias: string;
92
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
93
+ language?: string | undefined;
94
+ }[] | undefined;
95
+ }, {
96
+ name?: string | undefined;
97
+ organizationType?: "business" | "nonprofit" | "public_body" | "community" | "other" | undefined;
98
+ legalName?: string | null | undefined;
99
+ websiteUrl?: string | null | undefined;
100
+ countryCode?: string | null | undefined;
101
+ aliases?: {
102
+ alias: string;
103
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
104
+ language?: string | undefined;
105
+ }[] | undefined;
106
+ }>;
107
+ export declare const organizationSchema: z.ZodObject<{
108
+ name: z.ZodEffects<z.ZodString, string, string>;
109
+ organizationType: z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>;
110
+ } & {
111
+ accountId: z.ZodString;
112
+ username: z.ZodNullable<z.ZodString>;
113
+ avatar: z.ZodNullable<z.ZodString>;
114
+ legalName: z.ZodNullable<z.ZodString>;
115
+ websiteUrl: z.ZodNullable<z.ZodString>;
116
+ countryCode: z.ZodNullable<z.ZodString>;
117
+ aliases: z.ZodArray<z.ZodObject<{
118
+ alias: z.ZodString;
119
+ kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
120
+ language: z.ZodOptional<z.ZodString>;
121
+ }, "strict", z.ZodTypeAny, {
122
+ alias: string;
123
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
124
+ language?: string | undefined;
125
+ }, {
126
+ alias: string;
127
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
128
+ language?: string | undefined;
129
+ }>, "many">;
130
+ verifiedDomains: z.ZodArray<z.ZodString, "many">;
131
+ claimStatus: z.ZodEnum<["unclaimed", "claimed"]>;
132
+ status: z.ZodEnum<["active", "inactive", "merged", "suppressed"]>;
133
+ mergedIntoAccountId: z.ZodNullable<z.ZodString>;
134
+ createdAt: z.ZodString;
135
+ updatedAt: z.ZodString;
136
+ }, "strict", z.ZodTypeAny, {
137
+ status: "active" | "inactive" | "merged" | "suppressed";
138
+ name: string;
139
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
140
+ legalName: string | null;
141
+ websiteUrl: string | null;
142
+ countryCode: string | null;
143
+ aliases: {
144
+ alias: string;
145
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
146
+ language?: string | undefined;
147
+ }[];
148
+ accountId: string;
149
+ username: string | null;
150
+ avatar: string | null;
151
+ verifiedDomains: string[];
152
+ claimStatus: "unclaimed" | "claimed";
153
+ mergedIntoAccountId: string | null;
154
+ createdAt: string;
155
+ updatedAt: string;
156
+ }, {
157
+ status: "active" | "inactive" | "merged" | "suppressed";
158
+ name: string;
159
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
160
+ legalName: string | null;
161
+ websiteUrl: string | null;
162
+ countryCode: string | null;
163
+ aliases: {
164
+ alias: string;
165
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
166
+ language?: string | undefined;
167
+ }[];
168
+ accountId: string;
169
+ username: string | null;
170
+ avatar: string | null;
171
+ verifiedDomains: string[];
172
+ claimStatus: "unclaimed" | "claimed";
173
+ mergedIntoAccountId: string | null;
174
+ createdAt: string;
175
+ updatedAt: string;
176
+ }>;
177
+ export declare const organizationSearchSchema: z.ZodObject<{
178
+ query: z.ZodDefault<z.ZodString>;
179
+ organizationType: z.ZodOptional<z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>>;
180
+ limit: z.ZodDefault<z.ZodNumber>;
181
+ cursor: z.ZodOptional<z.ZodString>;
182
+ }, "strict", z.ZodTypeAny, {
183
+ query: string;
184
+ limit: number;
185
+ organizationType?: "business" | "nonprofit" | "public_body" | "community" | "other" | undefined;
186
+ cursor?: string | undefined;
187
+ }, {
188
+ organizationType?: "business" | "nonprofit" | "public_body" | "community" | "other" | undefined;
189
+ query?: string | undefined;
190
+ limit?: number | undefined;
191
+ cursor?: string | undefined;
192
+ }>;
193
+ export declare const organizationListSchema: z.ZodObject<{
194
+ items: z.ZodArray<z.ZodObject<{
195
+ name: z.ZodEffects<z.ZodString, string, string>;
196
+ organizationType: z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>;
197
+ } & {
198
+ accountId: z.ZodString;
199
+ username: z.ZodNullable<z.ZodString>;
200
+ avatar: z.ZodNullable<z.ZodString>;
201
+ legalName: z.ZodNullable<z.ZodString>;
202
+ websiteUrl: z.ZodNullable<z.ZodString>;
203
+ countryCode: z.ZodNullable<z.ZodString>;
204
+ aliases: z.ZodArray<z.ZodObject<{
205
+ alias: z.ZodString;
206
+ kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
207
+ language: z.ZodOptional<z.ZodString>;
208
+ }, "strict", z.ZodTypeAny, {
209
+ alias: string;
210
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
211
+ language?: string | undefined;
212
+ }, {
213
+ alias: string;
214
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
215
+ language?: string | undefined;
216
+ }>, "many">;
217
+ verifiedDomains: z.ZodArray<z.ZodString, "many">;
218
+ claimStatus: z.ZodEnum<["unclaimed", "claimed"]>;
219
+ status: z.ZodEnum<["active", "inactive", "merged", "suppressed"]>;
220
+ mergedIntoAccountId: z.ZodNullable<z.ZodString>;
221
+ createdAt: z.ZodString;
222
+ updatedAt: z.ZodString;
223
+ }, "strict", z.ZodTypeAny, {
224
+ status: "active" | "inactive" | "merged" | "suppressed";
225
+ name: string;
226
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
227
+ legalName: string | null;
228
+ websiteUrl: string | null;
229
+ countryCode: string | null;
230
+ aliases: {
231
+ alias: string;
232
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
233
+ language?: string | undefined;
234
+ }[];
235
+ accountId: string;
236
+ username: string | null;
237
+ avatar: string | null;
238
+ verifiedDomains: string[];
239
+ claimStatus: "unclaimed" | "claimed";
240
+ mergedIntoAccountId: string | null;
241
+ createdAt: string;
242
+ updatedAt: string;
243
+ }, {
244
+ status: "active" | "inactive" | "merged" | "suppressed";
245
+ name: string;
246
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
247
+ legalName: string | null;
248
+ websiteUrl: string | null;
249
+ countryCode: string | null;
250
+ aliases: {
251
+ alias: string;
252
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
253
+ language?: string | undefined;
254
+ }[];
255
+ accountId: string;
256
+ username: string | null;
257
+ avatar: string | null;
258
+ verifiedDomains: string[];
259
+ claimStatus: "unclaimed" | "claimed";
260
+ mergedIntoAccountId: string | null;
261
+ createdAt: string;
262
+ updatedAt: string;
263
+ }>, "many">;
264
+ nextCursor: z.ZodNullable<z.ZodString>;
265
+ }, "strict", z.ZodTypeAny, {
266
+ items: {
267
+ status: "active" | "inactive" | "merged" | "suppressed";
268
+ name: string;
269
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
270
+ legalName: string | null;
271
+ websiteUrl: string | null;
272
+ countryCode: string | null;
273
+ aliases: {
274
+ alias: string;
275
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
276
+ language?: string | undefined;
277
+ }[];
278
+ accountId: string;
279
+ username: string | null;
280
+ avatar: string | null;
281
+ verifiedDomains: string[];
282
+ claimStatus: "unclaimed" | "claimed";
283
+ mergedIntoAccountId: string | null;
284
+ createdAt: string;
285
+ updatedAt: string;
286
+ }[];
287
+ nextCursor: string | null;
288
+ }, {
289
+ items: {
290
+ status: "active" | "inactive" | "merged" | "suppressed";
291
+ name: string;
292
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
293
+ legalName: string | null;
294
+ websiteUrl: string | null;
295
+ countryCode: string | null;
296
+ aliases: {
297
+ alias: string;
298
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
299
+ language?: string | undefined;
300
+ }[];
301
+ accountId: string;
302
+ username: string | null;
303
+ avatar: string | null;
304
+ verifiedDomains: string[];
305
+ claimStatus: "unclaimed" | "claimed";
306
+ mergedIntoAccountId: string | null;
307
+ createdAt: string;
308
+ updatedAt: string;
309
+ }[];
310
+ nextCursor: string | null;
311
+ }>;
312
+ export declare const organizationBatchInputSchema: z.ZodObject<{
313
+ ids: z.ZodArray<z.ZodString, "many">;
314
+ }, "strict", z.ZodTypeAny, {
315
+ ids: string[];
316
+ }, {
317
+ ids: string[];
318
+ }>;
319
+ export declare const organizationBatchSchema: z.ZodObject<{
320
+ items: z.ZodArray<z.ZodObject<{
321
+ requestedAccountId: z.ZodString;
322
+ organization: z.ZodObject<{
323
+ name: z.ZodEffects<z.ZodString, string, string>;
324
+ organizationType: z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>;
325
+ } & {
326
+ accountId: z.ZodString;
327
+ username: z.ZodNullable<z.ZodString>;
328
+ avatar: z.ZodNullable<z.ZodString>;
329
+ legalName: z.ZodNullable<z.ZodString>;
330
+ websiteUrl: z.ZodNullable<z.ZodString>;
331
+ countryCode: z.ZodNullable<z.ZodString>;
332
+ aliases: z.ZodArray<z.ZodObject<{
333
+ alias: z.ZodString;
334
+ kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
335
+ language: z.ZodOptional<z.ZodString>;
336
+ }, "strict", z.ZodTypeAny, {
337
+ alias: string;
338
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
339
+ language?: string | undefined;
340
+ }, {
341
+ alias: string;
342
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
343
+ language?: string | undefined;
344
+ }>, "many">;
345
+ verifiedDomains: z.ZodArray<z.ZodString, "many">;
346
+ claimStatus: z.ZodEnum<["unclaimed", "claimed"]>;
347
+ status: z.ZodEnum<["active", "inactive", "merged", "suppressed"]>;
348
+ mergedIntoAccountId: z.ZodNullable<z.ZodString>;
349
+ createdAt: z.ZodString;
350
+ updatedAt: z.ZodString;
351
+ }, "strict", z.ZodTypeAny, {
352
+ status: "active" | "inactive" | "merged" | "suppressed";
353
+ name: string;
354
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
355
+ legalName: string | null;
356
+ websiteUrl: string | null;
357
+ countryCode: string | null;
358
+ aliases: {
359
+ alias: string;
360
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
361
+ language?: string | undefined;
362
+ }[];
363
+ accountId: string;
364
+ username: string | null;
365
+ avatar: string | null;
366
+ verifiedDomains: string[];
367
+ claimStatus: "unclaimed" | "claimed";
368
+ mergedIntoAccountId: string | null;
369
+ createdAt: string;
370
+ updatedAt: string;
371
+ }, {
372
+ status: "active" | "inactive" | "merged" | "suppressed";
373
+ name: string;
374
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
375
+ legalName: string | null;
376
+ websiteUrl: string | null;
377
+ countryCode: string | null;
378
+ aliases: {
379
+ alias: string;
380
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
381
+ language?: string | undefined;
382
+ }[];
383
+ accountId: string;
384
+ username: string | null;
385
+ avatar: string | null;
386
+ verifiedDomains: string[];
387
+ claimStatus: "unclaimed" | "claimed";
388
+ mergedIntoAccountId: string | null;
389
+ createdAt: string;
390
+ updatedAt: string;
391
+ }>;
392
+ }, "strict", z.ZodTypeAny, {
393
+ requestedAccountId: string;
394
+ organization: {
395
+ status: "active" | "inactive" | "merged" | "suppressed";
396
+ name: string;
397
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
398
+ legalName: string | null;
399
+ websiteUrl: string | null;
400
+ countryCode: string | null;
401
+ aliases: {
402
+ alias: string;
403
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
404
+ language?: string | undefined;
405
+ }[];
406
+ accountId: string;
407
+ username: string | null;
408
+ avatar: string | null;
409
+ verifiedDomains: string[];
410
+ claimStatus: "unclaimed" | "claimed";
411
+ mergedIntoAccountId: string | null;
412
+ createdAt: string;
413
+ updatedAt: string;
414
+ };
415
+ }, {
416
+ requestedAccountId: string;
417
+ organization: {
418
+ status: "active" | "inactive" | "merged" | "suppressed";
419
+ name: string;
420
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
421
+ legalName: string | null;
422
+ websiteUrl: string | null;
423
+ countryCode: string | null;
424
+ aliases: {
425
+ alias: string;
426
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
427
+ language?: string | undefined;
428
+ }[];
429
+ accountId: string;
430
+ username: string | null;
431
+ avatar: string | null;
432
+ verifiedDomains: string[];
433
+ claimStatus: "unclaimed" | "claimed";
434
+ mergedIntoAccountId: string | null;
435
+ createdAt: string;
436
+ updatedAt: string;
437
+ };
438
+ }>, "many">;
439
+ missingIds: z.ZodArray<z.ZodString, "many">;
440
+ }, "strict", z.ZodTypeAny, {
441
+ items: {
442
+ requestedAccountId: string;
443
+ organization: {
444
+ status: "active" | "inactive" | "merged" | "suppressed";
445
+ name: string;
446
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
447
+ legalName: string | null;
448
+ websiteUrl: string | null;
449
+ countryCode: string | null;
450
+ aliases: {
451
+ alias: string;
452
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
453
+ language?: string | undefined;
454
+ }[];
455
+ accountId: string;
456
+ username: string | null;
457
+ avatar: string | null;
458
+ verifiedDomains: string[];
459
+ claimStatus: "unclaimed" | "claimed";
460
+ mergedIntoAccountId: string | null;
461
+ createdAt: string;
462
+ updatedAt: string;
463
+ };
464
+ }[];
465
+ missingIds: string[];
466
+ }, {
467
+ items: {
468
+ requestedAccountId: string;
469
+ organization: {
470
+ status: "active" | "inactive" | "merged" | "suppressed";
471
+ name: string;
472
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
473
+ legalName: string | null;
474
+ websiteUrl: string | null;
475
+ countryCode: string | null;
476
+ aliases: {
477
+ alias: string;
478
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
479
+ language?: string | undefined;
480
+ }[];
481
+ accountId: string;
482
+ username: string | null;
483
+ avatar: string | null;
484
+ verifiedDomains: string[];
485
+ claimStatus: "unclaimed" | "claimed";
486
+ mergedIntoAccountId: string | null;
487
+ createdAt: string;
488
+ updatedAt: string;
489
+ };
490
+ }[];
491
+ missingIds: string[];
492
+ }>;
493
+ export declare const organizationClaimInputSchema: z.ZodObject<{
494
+ evidenceReference: z.ZodString;
495
+ }, "strict", z.ZodTypeAny, {
496
+ evidenceReference: string;
497
+ }, {
498
+ evidenceReference: string;
499
+ }>;
500
+ export declare const organizationClaimSchema: z.ZodObject<{
501
+ id: z.ZodString;
502
+ accountId: z.ZodString;
503
+ claimantUserId: z.ZodString;
504
+ status: z.ZodEnum<["pending", "approved", "rejected"]>;
505
+ createdAt: z.ZodString;
506
+ }, "strict", z.ZodTypeAny, {
507
+ status: "pending" | "approved" | "rejected";
508
+ accountId: string;
509
+ createdAt: string;
510
+ id: string;
511
+ claimantUserId: string;
512
+ }, {
513
+ status: "pending" | "approved" | "rejected";
514
+ accountId: string;
515
+ createdAt: string;
516
+ id: string;
517
+ claimantUserId: string;
518
+ }>;
519
+ export declare const organizationClaimDetailSchema: z.ZodObject<{
520
+ id: z.ZodString;
521
+ accountId: z.ZodString;
522
+ claimantUserId: z.ZodString;
523
+ status: z.ZodEnum<["pending", "approved", "rejected"]>;
524
+ createdAt: z.ZodString;
525
+ } & {
526
+ evidenceReference: z.ZodString;
527
+ reviewEvidenceReference: z.ZodNullable<z.ZodString>;
528
+ reviewedAt: z.ZodNullable<z.ZodString>;
529
+ }, "strict", z.ZodTypeAny, {
530
+ status: "pending" | "approved" | "rejected";
531
+ accountId: string;
532
+ createdAt: string;
533
+ evidenceReference: string;
534
+ id: string;
535
+ claimantUserId: string;
536
+ reviewEvidenceReference: string | null;
537
+ reviewedAt: string | null;
538
+ }, {
539
+ status: "pending" | "approved" | "rejected";
540
+ accountId: string;
541
+ createdAt: string;
542
+ evidenceReference: string;
543
+ id: string;
544
+ claimantUserId: string;
545
+ reviewEvidenceReference: string | null;
546
+ reviewedAt: string | null;
547
+ }>;
548
+ export declare const organizationClaimListQuerySchema: z.ZodObject<{
549
+ status: z.ZodOptional<z.ZodEnum<["pending", "approved", "rejected"]>>;
550
+ limit: z.ZodDefault<z.ZodNumber>;
551
+ cursor: z.ZodOptional<z.ZodString>;
552
+ }, "strict", z.ZodTypeAny, {
553
+ limit: number;
554
+ status?: "pending" | "approved" | "rejected" | undefined;
555
+ cursor?: string | undefined;
556
+ }, {
557
+ status?: "pending" | "approved" | "rejected" | undefined;
558
+ limit?: number | undefined;
559
+ cursor?: string | undefined;
560
+ }>;
561
+ export declare const organizationClaimListSchema: z.ZodObject<{
562
+ items: z.ZodArray<z.ZodObject<{
563
+ id: z.ZodString;
564
+ accountId: z.ZodString;
565
+ claimantUserId: z.ZodString;
566
+ status: z.ZodEnum<["pending", "approved", "rejected"]>;
567
+ createdAt: z.ZodString;
568
+ } & {
569
+ evidenceReference: z.ZodString;
570
+ reviewEvidenceReference: z.ZodNullable<z.ZodString>;
571
+ reviewedAt: z.ZodNullable<z.ZodString>;
572
+ }, "strict", z.ZodTypeAny, {
573
+ status: "pending" | "approved" | "rejected";
574
+ accountId: string;
575
+ createdAt: string;
576
+ evidenceReference: string;
577
+ id: string;
578
+ claimantUserId: string;
579
+ reviewEvidenceReference: string | null;
580
+ reviewedAt: string | null;
581
+ }, {
582
+ status: "pending" | "approved" | "rejected";
583
+ accountId: string;
584
+ createdAt: string;
585
+ evidenceReference: string;
586
+ id: string;
587
+ claimantUserId: string;
588
+ reviewEvidenceReference: string | null;
589
+ reviewedAt: string | null;
590
+ }>, "many">;
591
+ nextCursor: z.ZodNullable<z.ZodString>;
592
+ }, "strict", z.ZodTypeAny, {
593
+ items: {
594
+ status: "pending" | "approved" | "rejected";
595
+ accountId: string;
596
+ createdAt: string;
597
+ evidenceReference: string;
598
+ id: string;
599
+ claimantUserId: string;
600
+ reviewEvidenceReference: string | null;
601
+ reviewedAt: string | null;
602
+ }[];
603
+ nextCursor: string | null;
604
+ }, {
605
+ items: {
606
+ status: "pending" | "approved" | "rejected";
607
+ accountId: string;
608
+ createdAt: string;
609
+ evidenceReference: string;
610
+ id: string;
611
+ claimantUserId: string;
612
+ reviewEvidenceReference: string | null;
613
+ reviewedAt: string | null;
614
+ }[];
615
+ nextCursor: string | null;
616
+ }>;
617
+ export declare const organizationClaimReviewSchema: z.ZodObject<{
618
+ decision: z.ZodEnum<["approved", "rejected"]>;
619
+ evidenceReference: z.ZodString;
620
+ }, "strict", z.ZodTypeAny, {
621
+ evidenceReference: string;
622
+ decision: "approved" | "rejected";
623
+ }, {
624
+ evidenceReference: string;
625
+ decision: "approved" | "rejected";
626
+ }>;
627
+ export declare const organizationExternalInputSchema: z.ZodObject<{
628
+ namespace: z.ZodString;
629
+ externalId: z.ZodString;
630
+ accountId: z.ZodOptional<z.ZodString>;
631
+ organization: z.ZodObject<{
632
+ name: z.ZodEffects<z.ZodString, string, string>;
633
+ organizationType: z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>;
634
+ legalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
635
+ websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
636
+ countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
637
+ aliases: z.ZodOptional<z.ZodArray<z.ZodObject<{
638
+ alias: z.ZodString;
639
+ kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
640
+ language: z.ZodOptional<z.ZodString>;
641
+ }, "strict", z.ZodTypeAny, {
642
+ alias: string;
643
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
644
+ language?: string | undefined;
645
+ }, {
646
+ alias: string;
647
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
648
+ language?: string | undefined;
649
+ }>, "many">>;
650
+ }, "strict", z.ZodTypeAny, {
651
+ name: string;
652
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
653
+ legalName?: string | null | undefined;
654
+ websiteUrl?: string | null | undefined;
655
+ countryCode?: string | null | undefined;
656
+ aliases?: {
657
+ alias: string;
658
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
659
+ language?: string | undefined;
660
+ }[] | undefined;
661
+ }, {
662
+ name: string;
663
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
664
+ legalName?: string | null | undefined;
665
+ websiteUrl?: string | null | undefined;
666
+ countryCode?: string | null | undefined;
667
+ aliases?: {
668
+ alias: string;
669
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
670
+ language?: string | undefined;
671
+ }[] | undefined;
672
+ }>;
673
+ evidenceReference: z.ZodString;
674
+ avatarFileId: z.ZodOptional<z.ZodString>;
675
+ }, "strict", z.ZodTypeAny, {
676
+ organization: {
677
+ name: string;
678
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
679
+ legalName?: string | null | undefined;
680
+ websiteUrl?: string | null | undefined;
681
+ countryCode?: string | null | undefined;
682
+ aliases?: {
683
+ alias: string;
684
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
685
+ language?: string | undefined;
686
+ }[] | undefined;
687
+ };
688
+ evidenceReference: string;
689
+ namespace: string;
690
+ externalId: string;
691
+ accountId?: string | undefined;
692
+ avatarFileId?: string | undefined;
693
+ }, {
694
+ organization: {
695
+ name: string;
696
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
697
+ legalName?: string | null | undefined;
698
+ websiteUrl?: string | null | undefined;
699
+ countryCode?: string | null | undefined;
700
+ aliases?: {
701
+ alias: string;
702
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
703
+ language?: string | undefined;
704
+ }[] | undefined;
705
+ };
706
+ evidenceReference: string;
707
+ namespace: string;
708
+ externalId: string;
709
+ accountId?: string | undefined;
710
+ avatarFileId?: string | undefined;
711
+ }>;
712
+ /** Automated ingestion can create neutral identities in its granted namespace only. */
713
+ export declare const organizationImportBatchSchema: z.ZodEffects<z.ZodObject<{
714
+ namespace: z.ZodString;
715
+ items: z.ZodArray<z.ZodObject<Pick<{
716
+ namespace: z.ZodString;
717
+ externalId: z.ZodString;
718
+ accountId: z.ZodOptional<z.ZodString>;
719
+ organization: z.ZodObject<{
720
+ name: z.ZodEffects<z.ZodString, string, string>;
721
+ organizationType: z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>;
722
+ legalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
723
+ websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
724
+ countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
725
+ aliases: z.ZodOptional<z.ZodArray<z.ZodObject<{
726
+ alias: z.ZodString;
727
+ kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
728
+ language: z.ZodOptional<z.ZodString>;
729
+ }, "strict", z.ZodTypeAny, {
730
+ alias: string;
731
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
732
+ language?: string | undefined;
733
+ }, {
734
+ alias: string;
735
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
736
+ language?: string | undefined;
737
+ }>, "many">>;
738
+ }, "strict", z.ZodTypeAny, {
739
+ name: string;
740
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
741
+ legalName?: string | null | undefined;
742
+ websiteUrl?: string | null | undefined;
743
+ countryCode?: string | null | undefined;
744
+ aliases?: {
745
+ alias: string;
746
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
747
+ language?: string | undefined;
748
+ }[] | undefined;
749
+ }, {
750
+ name: string;
751
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
752
+ legalName?: string | null | undefined;
753
+ websiteUrl?: string | null | undefined;
754
+ countryCode?: string | null | undefined;
755
+ aliases?: {
756
+ alias: string;
757
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
758
+ language?: string | undefined;
759
+ }[] | undefined;
760
+ }>;
761
+ evidenceReference: z.ZodString;
762
+ avatarFileId: z.ZodOptional<z.ZodString>;
763
+ }, "organization" | "evidenceReference" | "externalId" | "avatarFileId">, "strict", z.ZodTypeAny, {
764
+ organization: {
765
+ name: string;
766
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
767
+ legalName?: string | null | undefined;
768
+ websiteUrl?: string | null | undefined;
769
+ countryCode?: string | null | undefined;
770
+ aliases?: {
771
+ alias: string;
772
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
773
+ language?: string | undefined;
774
+ }[] | undefined;
775
+ };
776
+ evidenceReference: string;
777
+ externalId: string;
778
+ avatarFileId?: string | undefined;
779
+ }, {
780
+ organization: {
781
+ name: string;
782
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
783
+ legalName?: string | null | undefined;
784
+ websiteUrl?: string | null | undefined;
785
+ countryCode?: string | null | undefined;
786
+ aliases?: {
787
+ alias: string;
788
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
789
+ language?: string | undefined;
790
+ }[] | undefined;
791
+ };
792
+ evidenceReference: string;
793
+ externalId: string;
794
+ avatarFileId?: string | undefined;
795
+ }>, "many">;
796
+ }, "strict", z.ZodTypeAny, {
797
+ items: {
798
+ organization: {
799
+ name: string;
800
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
801
+ legalName?: string | null | undefined;
802
+ websiteUrl?: string | null | undefined;
803
+ countryCode?: string | null | undefined;
804
+ aliases?: {
805
+ alias: string;
806
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
807
+ language?: string | undefined;
808
+ }[] | undefined;
809
+ };
810
+ evidenceReference: string;
811
+ externalId: string;
812
+ avatarFileId?: string | undefined;
813
+ }[];
814
+ namespace: string;
815
+ }, {
816
+ items: {
817
+ organization: {
818
+ name: string;
819
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
820
+ legalName?: string | null | undefined;
821
+ websiteUrl?: string | null | undefined;
822
+ countryCode?: string | null | undefined;
823
+ aliases?: {
824
+ alias: string;
825
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
826
+ language?: string | undefined;
827
+ }[] | undefined;
828
+ };
829
+ evidenceReference: string;
830
+ externalId: string;
831
+ avatarFileId?: string | undefined;
832
+ }[];
833
+ namespace: string;
834
+ }>, {
835
+ items: {
836
+ organization: {
837
+ name: string;
838
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
839
+ legalName?: string | null | undefined;
840
+ websiteUrl?: string | null | undefined;
841
+ countryCode?: string | null | undefined;
842
+ aliases?: {
843
+ alias: string;
844
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
845
+ language?: string | undefined;
846
+ }[] | undefined;
847
+ };
848
+ evidenceReference: string;
849
+ externalId: string;
850
+ avatarFileId?: string | undefined;
851
+ }[];
852
+ namespace: string;
853
+ }, {
854
+ items: {
855
+ organization: {
856
+ name: string;
857
+ organizationType: "business" | "nonprofit" | "public_body" | "community" | "other";
858
+ legalName?: string | null | undefined;
859
+ websiteUrl?: string | null | undefined;
860
+ countryCode?: string | null | undefined;
861
+ aliases?: {
862
+ alias: string;
863
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
864
+ language?: string | undefined;
865
+ }[] | undefined;
866
+ };
867
+ evidenceReference: string;
868
+ externalId: string;
869
+ avatarFileId?: string | undefined;
870
+ }[];
871
+ namespace: string;
872
+ }>;
873
+ export declare const organizationImportBatchResultSchema: z.ZodObject<{
874
+ items: z.ZodArray<z.ZodObject<{
875
+ externalId: z.ZodString;
876
+ accountId: z.ZodString;
877
+ created: z.ZodBoolean;
878
+ }, "strict", z.ZodTypeAny, {
879
+ accountId: string;
880
+ externalId: string;
881
+ created: boolean;
882
+ }, {
883
+ accountId: string;
884
+ externalId: string;
885
+ created: boolean;
886
+ }>, "many">;
887
+ }, "strict", z.ZodTypeAny, {
888
+ items: {
889
+ accountId: string;
890
+ externalId: string;
891
+ created: boolean;
892
+ }[];
893
+ }, {
894
+ items: {
895
+ accountId: string;
896
+ externalId: string;
897
+ created: boolean;
898
+ }[];
899
+ }>;
900
+ export type OrganizationImportBatch = z.infer<typeof organizationImportBatchSchema>;
901
+ export declare const organizationExternalSchema: z.ZodObject<{
902
+ accountId: z.ZodString;
903
+ created: z.ZodBoolean;
904
+ }, "strict", z.ZodTypeAny, {
905
+ accountId: string;
906
+ created: boolean;
907
+ }, {
908
+ accountId: string;
909
+ created: boolean;
910
+ }>;
911
+ export declare const organizationExternalResolutionSchema: z.ZodObject<{
912
+ accountId: z.ZodString;
913
+ }, "strict", z.ZodTypeAny, {
914
+ accountId: string;
915
+ }, {
916
+ accountId: string;
917
+ }>;
918
+ export declare const organizationMergeSchema: z.ZodObject<{
919
+ targetAccountId: z.ZodString;
920
+ evidenceReference: z.ZodString;
921
+ }, "strict", z.ZodTypeAny, {
922
+ evidenceReference: string;
923
+ targetAccountId: string;
924
+ }, {
925
+ evidenceReference: string;
926
+ targetAccountId: string;
927
+ }>;
928
+ export declare const ORGANIZATION_ERROR_CODES: readonly ["bad_request", "unauthorized", "forbidden", "not_found", "unknown_route", "conflict", "validation_failed", "rate_limited", "internal_error", "service_unavailable"];
929
+ export declare const organizationErrorSchema: z.ZodObject<{
930
+ error: z.ZodObject<{
931
+ code: z.ZodEnum<["bad_request", "unauthorized", "forbidden", "not_found", "unknown_route", "conflict", "validation_failed", "rate_limited", "internal_error", "service_unavailable"]>;
932
+ message: z.ZodString;
933
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
934
+ }, "strict", z.ZodTypeAny, {
935
+ code: "bad_request" | "unauthorized" | "forbidden" | "not_found" | "unknown_route" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "service_unavailable";
936
+ message: string;
937
+ details?: Record<string, string | number | boolean | null> | undefined;
938
+ }, {
939
+ code: "bad_request" | "unauthorized" | "forbidden" | "not_found" | "unknown_route" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "service_unavailable";
940
+ message: string;
941
+ details?: Record<string, string | number | boolean | null> | undefined;
942
+ }>;
943
+ }, "strict", z.ZodTypeAny, {
944
+ error: {
945
+ code: "bad_request" | "unauthorized" | "forbidden" | "not_found" | "unknown_route" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "service_unavailable";
946
+ message: string;
947
+ details?: Record<string, string | number | boolean | null> | undefined;
948
+ };
949
+ }, {
950
+ error: {
951
+ code: "bad_request" | "unauthorized" | "forbidden" | "not_found" | "unknown_route" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "service_unavailable";
952
+ message: string;
953
+ details?: Record<string, string | number | boolean | null> | undefined;
954
+ };
955
+ }>;
956
+ export type Organization = z.infer<typeof organizationSchema>;
957
+ export type OrganizationType = Organization['organizationType'];
958
+ export type CreateOrganization = z.infer<typeof createOrganizationSchema>;
959
+ export type UpdateOrganization = z.infer<typeof updateOrganizationSchema>;
960
+ export type OrganizationSearch = z.input<typeof organizationSearchSchema>;
961
+ export type OrganizationList = z.infer<typeof organizationListSchema>;
962
+ export type OrganizationBatch = z.infer<typeof organizationBatchSchema>;
963
+ export type OrganizationClaim = z.infer<typeof organizationClaimSchema>;
964
+ export type OrganizationClaimInput = z.infer<typeof organizationClaimInputSchema>;
965
+ export type OrganizationClaimReview = z.infer<typeof organizationClaimReviewSchema>;
966
+ export type OrganizationExternalInput = z.infer<typeof organizationExternalInputSchema>;
967
+ export type OrganizationMerge = z.infer<typeof organizationMergeSchema>;
968
+ export type OrganizationErrorCode = z.infer<typeof organizationErrorSchema>['error']['code'];
969
+ export type OrganizationClaimDetail = z.infer<typeof organizationClaimDetailSchema>;
970
+ export type OrganizationClaimListQuery = z.input<typeof organizationClaimListQuerySchema>;
971
+ /** Staff curation corrects neutral facts or moderates visibility without claiming ownership. */
972
+ export declare const organizationCurationSchema: z.ZodEffects<z.ZodObject<{
973
+ changes: z.ZodOptional<z.ZodObject<{
974
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
975
+ organizationType: z.ZodOptional<z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>>;
976
+ legalName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
977
+ websiteUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>>;
978
+ countryCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
979
+ aliases: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
980
+ alias: z.ZodString;
981
+ kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
982
+ language: z.ZodOptional<z.ZodString>;
983
+ }, "strict", z.ZodTypeAny, {
984
+ alias: string;
985
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
986
+ language?: string | undefined;
987
+ }, {
988
+ alias: string;
989
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
990
+ language?: string | undefined;
991
+ }>, "many">>>;
992
+ }, "strict", z.ZodTypeAny, {
993
+ name?: string | undefined;
994
+ organizationType?: "business" | "nonprofit" | "public_body" | "community" | "other" | undefined;
995
+ legalName?: string | null | undefined;
996
+ websiteUrl?: string | null | undefined;
997
+ countryCode?: string | null | undefined;
998
+ aliases?: {
999
+ alias: string;
1000
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
1001
+ language?: string | undefined;
1002
+ }[] | undefined;
1003
+ }, {
1004
+ name?: string | undefined;
1005
+ organizationType?: "business" | "nonprofit" | "public_body" | "community" | "other" | undefined;
1006
+ legalName?: string | null | undefined;
1007
+ websiteUrl?: string | null | undefined;
1008
+ countryCode?: string | null | undefined;
1009
+ aliases?: {
1010
+ alias: string;
1011
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
1012
+ language?: string | undefined;
1013
+ }[] | undefined;
1014
+ }>>;
1015
+ status: z.ZodOptional<z.ZodEnum<["active", "inactive", "suppressed"]>>;
1016
+ evidenceReference: z.ZodString;
1017
+ }, "strict", z.ZodTypeAny, {
1018
+ evidenceReference: string;
1019
+ status?: "active" | "inactive" | "suppressed" | undefined;
1020
+ changes?: {
1021
+ name?: string | undefined;
1022
+ organizationType?: "business" | "nonprofit" | "public_body" | "community" | "other" | undefined;
1023
+ legalName?: string | null | undefined;
1024
+ websiteUrl?: string | null | undefined;
1025
+ countryCode?: string | null | undefined;
1026
+ aliases?: {
1027
+ alias: string;
1028
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
1029
+ language?: string | undefined;
1030
+ }[] | undefined;
1031
+ } | undefined;
1032
+ }, {
1033
+ evidenceReference: string;
1034
+ status?: "active" | "inactive" | "suppressed" | undefined;
1035
+ changes?: {
1036
+ name?: string | undefined;
1037
+ organizationType?: "business" | "nonprofit" | "public_body" | "community" | "other" | undefined;
1038
+ legalName?: string | null | undefined;
1039
+ websiteUrl?: string | null | undefined;
1040
+ countryCode?: string | null | undefined;
1041
+ aliases?: {
1042
+ alias: string;
1043
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
1044
+ language?: string | undefined;
1045
+ }[] | undefined;
1046
+ } | undefined;
1047
+ }>, {
1048
+ evidenceReference: string;
1049
+ status?: "active" | "inactive" | "suppressed" | undefined;
1050
+ changes?: {
1051
+ name?: string | undefined;
1052
+ organizationType?: "business" | "nonprofit" | "public_body" | "community" | "other" | undefined;
1053
+ legalName?: string | null | undefined;
1054
+ websiteUrl?: string | null | undefined;
1055
+ countryCode?: string | null | undefined;
1056
+ aliases?: {
1057
+ alias: string;
1058
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
1059
+ language?: string | undefined;
1060
+ }[] | undefined;
1061
+ } | undefined;
1062
+ }, {
1063
+ evidenceReference: string;
1064
+ status?: "active" | "inactive" | "suppressed" | undefined;
1065
+ changes?: {
1066
+ name?: string | undefined;
1067
+ organizationType?: "business" | "nonprofit" | "public_body" | "community" | "other" | undefined;
1068
+ legalName?: string | null | undefined;
1069
+ websiteUrl?: string | null | undefined;
1070
+ countryCode?: string | null | undefined;
1071
+ aliases?: {
1072
+ alias: string;
1073
+ kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
1074
+ language?: string | undefined;
1075
+ }[] | undefined;
1076
+ } | undefined;
1077
+ }>;
1078
+ export declare const organizationCurationResultSchema: z.ZodObject<{
1079
+ accountId: z.ZodString;
1080
+ status: z.ZodEnum<["active", "inactive", "suppressed"]>;
1081
+ }, "strict", z.ZodTypeAny, {
1082
+ status: "active" | "inactive" | "suppressed";
1083
+ accountId: string;
1084
+ }, {
1085
+ status: "active" | "inactive" | "suppressed";
1086
+ accountId: string;
1087
+ }>;
1088
+ export type OrganizationCuration = z.infer<typeof organizationCurationSchema>;