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