simetra 0.3.0-next.1 → 0.3.0-next.11
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.
- package/dist/compiler/index.d.ts +50 -10
- package/dist/compiler/index.js +2578 -939
- package/dist/data/index.js +521 -162
- package/dist/model/index.d.ts +397 -43
- package/dist/model/index.js +171 -13
- package/dist/schema/index.d.ts +29 -7
- package/dist/schema/index.js +58 -15
- package/dist/server/index.d.ts +71 -26
- package/dist/server/index.js +418 -91
- package/dist/shell/index.d.ts +12 -0
- package/dist/shell/index.js +12 -1
- package/dist/ui/index.js +29 -3
- package/package.json +2 -1
- package/schemas/catalogs.schema.json +3 -26
- package/schemas/documents.schema.json +3 -26
- package/schemas/project.schema.json +195 -0
- package/schemas/rights-sets.schema.json +17 -1
- package/schemas/roles.schema.json +19 -2
package/dist/model/index.d.ts
CHANGED
|
@@ -87,12 +87,12 @@ export declare const attributeSchema: z.ZodObject<{
|
|
|
87
87
|
pattern: z.ZodOptional<z.ZodString>;
|
|
88
88
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
89
89
|
type: z.ZodEnum<{
|
|
90
|
-
BigInt: "BigInt";
|
|
91
90
|
UUID: "UUID";
|
|
92
91
|
String: "String";
|
|
93
92
|
Text: "Text";
|
|
94
93
|
Integer: "Integer";
|
|
95
94
|
SmallInt: "SmallInt";
|
|
95
|
+
BigInt: "BigInt";
|
|
96
96
|
Numeric: "Numeric";
|
|
97
97
|
Boolean: "Boolean";
|
|
98
98
|
Date: "Date";
|
|
@@ -189,12 +189,12 @@ export declare const catalogAttributeSchema: z.ZodObject<{
|
|
|
189
189
|
pattern: z.ZodOptional<z.ZodString>;
|
|
190
190
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
191
191
|
type: z.ZodEnum<{
|
|
192
|
-
BigInt: "BigInt";
|
|
193
192
|
UUID: "UUID";
|
|
194
193
|
String: "String";
|
|
195
194
|
Text: "Text";
|
|
196
195
|
Integer: "Integer";
|
|
197
196
|
SmallInt: "SmallInt";
|
|
197
|
+
BigInt: "BigInt";
|
|
198
198
|
Numeric: "Numeric";
|
|
199
199
|
Boolean: "Boolean";
|
|
200
200
|
Date: "Date";
|
|
@@ -322,12 +322,12 @@ export declare const tabularSectionSchema: z.ZodObject<{
|
|
|
322
322
|
pattern: z.ZodOptional<z.ZodString>;
|
|
323
323
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
324
324
|
type: z.ZodEnum<{
|
|
325
|
-
BigInt: "BigInt";
|
|
326
325
|
UUID: "UUID";
|
|
327
326
|
String: "String";
|
|
328
327
|
Text: "Text";
|
|
329
328
|
Integer: "Integer";
|
|
330
329
|
SmallInt: "SmallInt";
|
|
330
|
+
BigInt: "BigInt";
|
|
331
331
|
Numeric: "Numeric";
|
|
332
332
|
Boolean: "Boolean";
|
|
333
333
|
Date: "Date";
|
|
@@ -528,12 +528,12 @@ type LogicalType = (typeof LOGICAL_TYPES)[number];
|
|
|
528
528
|
/** Поля типу, спільні для реквізиту, константи й колонки. */
|
|
529
529
|
export declare const valueTypeShape: {
|
|
530
530
|
type: z.ZodEnum<{
|
|
531
|
-
BigInt: "BigInt";
|
|
532
531
|
UUID: "UUID";
|
|
533
532
|
String: "String";
|
|
534
533
|
Text: "Text";
|
|
535
534
|
Integer: "Integer";
|
|
536
535
|
SmallInt: "SmallInt";
|
|
536
|
+
BigInt: "BigInt";
|
|
537
537
|
Numeric: "Numeric";
|
|
538
538
|
Boolean: "Boolean";
|
|
539
539
|
Date: "Date";
|
|
@@ -751,7 +751,7 @@ export declare const catalogSchema: z.ZodObject<{
|
|
|
751
751
|
dimension: z.ZodString;
|
|
752
752
|
}, z.core.$strict>]>>>;
|
|
753
753
|
ownership: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>>;
|
|
754
|
-
containerBinding: z.ZodOptional<z.
|
|
754
|
+
containerBinding: z.ZodOptional<z.ZodString>;
|
|
755
755
|
rightsContainer: z.ZodOptional<z.ZodBoolean>;
|
|
756
756
|
storage: z.ZodOptional<z.ZodObject<{
|
|
757
757
|
maxBytes: z.ZodInt;
|
|
@@ -800,12 +800,12 @@ export declare const catalogSchema: z.ZodObject<{
|
|
|
800
800
|
pattern: z.ZodOptional<z.ZodString>;
|
|
801
801
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
802
802
|
type: z.ZodEnum<{
|
|
803
|
-
BigInt: "BigInt";
|
|
804
803
|
UUID: "UUID";
|
|
805
804
|
String: "String";
|
|
806
805
|
Text: "Text";
|
|
807
806
|
Integer: "Integer";
|
|
808
807
|
SmallInt: "SmallInt";
|
|
808
|
+
BigInt: "BigInt";
|
|
809
809
|
Numeric: "Numeric";
|
|
810
810
|
Boolean: "Boolean";
|
|
811
811
|
Date: "Date";
|
|
@@ -911,12 +911,12 @@ export declare const catalogSchema: z.ZodObject<{
|
|
|
911
911
|
pattern: z.ZodOptional<z.ZodString>;
|
|
912
912
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
913
913
|
type: z.ZodEnum<{
|
|
914
|
-
BigInt: "BigInt";
|
|
915
914
|
UUID: "UUID";
|
|
916
915
|
String: "String";
|
|
917
916
|
Text: "Text";
|
|
918
917
|
Integer: "Integer";
|
|
919
918
|
SmallInt: "SmallInt";
|
|
919
|
+
BigInt: "BigInt";
|
|
920
920
|
Numeric: "Numeric";
|
|
921
921
|
Boolean: "Boolean";
|
|
922
922
|
Date: "Date";
|
|
@@ -1130,7 +1130,7 @@ export declare const documentSchema: z.ZodObject<{
|
|
|
1130
1130
|
dimension: z.ZodString;
|
|
1131
1131
|
}, z.core.$strict>]>>>;
|
|
1132
1132
|
ownership: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>>;
|
|
1133
|
-
containerBinding: z.ZodOptional<z.
|
|
1133
|
+
containerBinding: z.ZodOptional<z.ZodString>;
|
|
1134
1134
|
standardAttributeOverrides: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1135
1135
|
title: z.ZodOptional<z.ZodObject<{
|
|
1136
1136
|
uk: z.ZodOptional<z.ZodString>;
|
|
@@ -1170,12 +1170,12 @@ export declare const documentSchema: z.ZodObject<{
|
|
|
1170
1170
|
pattern: z.ZodOptional<z.ZodString>;
|
|
1171
1171
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1172
1172
|
type: z.ZodEnum<{
|
|
1173
|
-
BigInt: "BigInt";
|
|
1174
1173
|
UUID: "UUID";
|
|
1175
1174
|
String: "String";
|
|
1176
1175
|
Text: "Text";
|
|
1177
1176
|
Integer: "Integer";
|
|
1178
1177
|
SmallInt: "SmallInt";
|
|
1178
|
+
BigInt: "BigInt";
|
|
1179
1179
|
Numeric: "Numeric";
|
|
1180
1180
|
Boolean: "Boolean";
|
|
1181
1181
|
Date: "Date";
|
|
@@ -1281,12 +1281,12 @@ export declare const documentSchema: z.ZodObject<{
|
|
|
1281
1281
|
pattern: z.ZodOptional<z.ZodString>;
|
|
1282
1282
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1283
1283
|
type: z.ZodEnum<{
|
|
1284
|
-
BigInt: "BigInt";
|
|
1285
1284
|
UUID: "UUID";
|
|
1286
1285
|
String: "String";
|
|
1287
1286
|
Text: "Text";
|
|
1288
1287
|
Integer: "Integer";
|
|
1289
1288
|
SmallInt: "SmallInt";
|
|
1289
|
+
BigInt: "BigInt";
|
|
1290
1290
|
Numeric: "Numeric";
|
|
1291
1291
|
Boolean: "Boolean";
|
|
1292
1292
|
Date: "Date";
|
|
@@ -1509,12 +1509,12 @@ export declare const informationRegisterSchema: z.ZodObject<{
|
|
|
1509
1509
|
pattern: z.ZodOptional<z.ZodString>;
|
|
1510
1510
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1511
1511
|
type: z.ZodEnum<{
|
|
1512
|
-
BigInt: "BigInt";
|
|
1513
1512
|
UUID: "UUID";
|
|
1514
1513
|
String: "String";
|
|
1515
1514
|
Text: "Text";
|
|
1516
1515
|
Integer: "Integer";
|
|
1517
1516
|
SmallInt: "SmallInt";
|
|
1517
|
+
BigInt: "BigInt";
|
|
1518
1518
|
Numeric: "Numeric";
|
|
1519
1519
|
Boolean: "Boolean";
|
|
1520
1520
|
Date: "Date";
|
|
@@ -1596,12 +1596,12 @@ export declare const informationRegisterSchema: z.ZodObject<{
|
|
|
1596
1596
|
pattern: z.ZodOptional<z.ZodString>;
|
|
1597
1597
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1598
1598
|
type: z.ZodEnum<{
|
|
1599
|
-
BigInt: "BigInt";
|
|
1600
1599
|
UUID: "UUID";
|
|
1601
1600
|
String: "String";
|
|
1602
1601
|
Text: "Text";
|
|
1603
1602
|
Integer: "Integer";
|
|
1604
1603
|
SmallInt: "SmallInt";
|
|
1604
|
+
BigInt: "BigInt";
|
|
1605
1605
|
Numeric: "Numeric";
|
|
1606
1606
|
Boolean: "Boolean";
|
|
1607
1607
|
Date: "Date";
|
|
@@ -1689,12 +1689,12 @@ export declare const informationRegisterSchema: z.ZodObject<{
|
|
|
1689
1689
|
pattern: z.ZodOptional<z.ZodString>;
|
|
1690
1690
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1691
1691
|
type: z.ZodEnum<{
|
|
1692
|
-
BigInt: "BigInt";
|
|
1693
1692
|
UUID: "UUID";
|
|
1694
1693
|
String: "String";
|
|
1695
1694
|
Text: "Text";
|
|
1696
1695
|
Integer: "Integer";
|
|
1697
1696
|
SmallInt: "SmallInt";
|
|
1697
|
+
BigInt: "BigInt";
|
|
1698
1698
|
Numeric: "Numeric";
|
|
1699
1699
|
Boolean: "Boolean";
|
|
1700
1700
|
Date: "Date";
|
|
@@ -1882,12 +1882,12 @@ export declare const accumulationRegisterSchema: z.ZodObject<{
|
|
|
1882
1882
|
pattern: z.ZodOptional<z.ZodString>;
|
|
1883
1883
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1884
1884
|
type: z.ZodEnum<{
|
|
1885
|
-
BigInt: "BigInt";
|
|
1886
1885
|
UUID: "UUID";
|
|
1887
1886
|
String: "String";
|
|
1888
1887
|
Text: "Text";
|
|
1889
1888
|
Integer: "Integer";
|
|
1890
1889
|
SmallInt: "SmallInt";
|
|
1890
|
+
BigInt: "BigInt";
|
|
1891
1891
|
Numeric: "Numeric";
|
|
1892
1892
|
Boolean: "Boolean";
|
|
1893
1893
|
Date: "Date";
|
|
@@ -1994,12 +1994,12 @@ export declare const accumulationRegisterSchema: z.ZodObject<{
|
|
|
1994
1994
|
pattern: z.ZodOptional<z.ZodString>;
|
|
1995
1995
|
minLength: z.ZodOptional<z.ZodNumber>;
|
|
1996
1996
|
type: z.ZodEnum<{
|
|
1997
|
-
BigInt: "BigInt";
|
|
1998
1997
|
UUID: "UUID";
|
|
1999
1998
|
String: "String";
|
|
2000
1999
|
Text: "Text";
|
|
2001
2000
|
Integer: "Integer";
|
|
2002
2001
|
SmallInt: "SmallInt";
|
|
2002
|
+
BigInt: "BigInt";
|
|
2003
2003
|
Numeric: "Numeric";
|
|
2004
2004
|
Boolean: "Boolean";
|
|
2005
2005
|
Date: "Date";
|
|
@@ -2089,12 +2089,12 @@ export declare const constantSchema: z.ZodObject<{
|
|
|
2089
2089
|
}>]>;
|
|
2090
2090
|
}, z.core.$strict>]>>;
|
|
2091
2091
|
type: z.ZodEnum<{
|
|
2092
|
-
BigInt: "BigInt";
|
|
2093
2092
|
UUID: "UUID";
|
|
2094
2093
|
String: "String";
|
|
2095
2094
|
Text: "Text";
|
|
2096
2095
|
Integer: "Integer";
|
|
2097
2096
|
SmallInt: "SmallInt";
|
|
2097
|
+
BigInt: "BigInt";
|
|
2098
2098
|
Numeric: "Numeric";
|
|
2099
2099
|
Boolean: "Boolean";
|
|
2100
2100
|
Date: "Date";
|
|
@@ -2213,6 +2213,12 @@ export declare const customActionsSchema: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
2213
2213
|
*/
|
|
2214
2214
|
export declare const rightsCarrierSchema: z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
|
|
2215
2215
|
type RightsCarrier = z.infer<typeof rightsCarrierSchema>;
|
|
2216
|
+
/**
|
|
2217
|
+
* Прив'язка до контейнера прав (Р-К1-6): один реквізит-посилання. Ланцюжок
|
|
2218
|
+
* об'єктів будується прив'язкою кожного проміжного об'єкта, а не шляхом у
|
|
2219
|
+
* одному полі: кожен крок — власний об'єкт зі своїми політиками.
|
|
2220
|
+
*/
|
|
2221
|
+
export declare const containerBindingSchema: z.ZodString;
|
|
2216
2222
|
/** Власники рядка (спека прав §4.2): порожній перелік — це відсутність поля. */
|
|
2217
2223
|
export declare const ownershipSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>;
|
|
2218
2224
|
/**
|
|
@@ -2520,6 +2526,7 @@ export declare const objectSelectorSchema: z.ZodUnion<readonly [z.ZodArray<z.Zod
|
|
|
2520
2526
|
write: "write";
|
|
2521
2527
|
publish: "publish";
|
|
2522
2528
|
unpublish: "unpublish";
|
|
2529
|
+
acceptInvitation: "acceptInvitation";
|
|
2523
2530
|
}>;
|
|
2524
2531
|
}, z.core.$strict>]>;
|
|
2525
2532
|
type ObjectSelector = z.infer<typeof objectSelectorSchema>;
|
|
@@ -2559,6 +2566,7 @@ export declare const setGrantEntrySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2559
2566
|
write: "write";
|
|
2560
2567
|
publish: "publish";
|
|
2561
2568
|
unpublish: "unpublish";
|
|
2569
|
+
acceptInvitation: "acceptInvitation";
|
|
2562
2570
|
}>;
|
|
2563
2571
|
}, z.core.$strict>]>;
|
|
2564
2572
|
actions: z.ZodArray<z.ZodString>;
|
|
@@ -2604,6 +2612,7 @@ export declare const grantEntrySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2604
2612
|
write: "write";
|
|
2605
2613
|
publish: "publish";
|
|
2606
2614
|
unpublish: "unpublish";
|
|
2615
|
+
acceptInvitation: "acceptInvitation";
|
|
2607
2616
|
}>;
|
|
2608
2617
|
}, z.core.$strict>]>;
|
|
2609
2618
|
actions: z.ZodArray<z.ZodString>;
|
|
@@ -2640,6 +2649,7 @@ export declare const grantEntrySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2640
2649
|
write: "write";
|
|
2641
2650
|
publish: "publish";
|
|
2642
2651
|
unpublish: "unpublish";
|
|
2652
|
+
acceptInvitation: "acceptInvitation";
|
|
2643
2653
|
}>;
|
|
2644
2654
|
}, z.core.$strict>]>;
|
|
2645
2655
|
actions: z.ZodArray<z.ZodString>;
|
|
@@ -2664,7 +2674,7 @@ export declare function grantEntryForm(entry: GrantEntry): {
|
|
|
2664
2674
|
kind: "Catalog" | "Document" | "Enumeration" | "InformationRegister" | "AccumulationRegister" | "Constant" | "CustomTable" | "PgEnum" | "EventSubscription" | "RightsSet" | "Role";
|
|
2665
2675
|
name: string;
|
|
2666
2676
|
}[] | {
|
|
2667
|
-
withAction: "update" | "read" | "create" | "markDeletion" | "delete" | "post" | "unpost" | "write" | "publish" | "unpublish";
|
|
2677
|
+
withAction: "update" | "read" | "create" | "markDeletion" | "delete" | "post" | "unpost" | "write" | "publish" | "unpublish" | "acceptInvitation";
|
|
2668
2678
|
};
|
|
2669
2679
|
actions: string[];
|
|
2670
2680
|
extent: "any" | "own" | {
|
|
@@ -2678,7 +2688,7 @@ export declare function grantEntryForm(entry: GrantEntry): {
|
|
|
2678
2688
|
kind: "Catalog" | "Document" | "Enumeration" | "InformationRegister" | "AccumulationRegister" | "Constant" | "CustomTable" | "PgEnum" | "EventSubscription" | "RightsSet" | "Role";
|
|
2679
2689
|
name: string;
|
|
2680
2690
|
}[] | {
|
|
2681
|
-
withAction: "update" | "read" | "create" | "markDeletion" | "delete" | "post" | "unpost" | "write" | "publish" | "unpublish";
|
|
2691
|
+
withAction: "update" | "read" | "create" | "markDeletion" | "delete" | "post" | "unpost" | "write" | "publish" | "unpublish" | "acceptInvitation";
|
|
2682
2692
|
};
|
|
2683
2693
|
actions: string[];
|
|
2684
2694
|
extent?: "any" | "own" | {
|
|
@@ -2743,6 +2753,7 @@ export declare const rightsSetSchema: z.ZodObject<{
|
|
|
2743
2753
|
write: "write";
|
|
2744
2754
|
publish: "publish";
|
|
2745
2755
|
unpublish: "unpublish";
|
|
2756
|
+
acceptInvitation: "acceptInvitation";
|
|
2746
2757
|
}>;
|
|
2747
2758
|
}, z.core.$strict>]>;
|
|
2748
2759
|
actions: z.ZodArray<z.ZodString>;
|
|
@@ -2751,6 +2762,10 @@ export declare const rightsSetSchema: z.ZodObject<{
|
|
|
2751
2762
|
}, z.core.$strict>]>;
|
|
2752
2763
|
}, z.core.$strict>;
|
|
2753
2764
|
}, z.core.$strict>]>>>;
|
|
2765
|
+
title: z.ZodOptional<z.ZodObject<{
|
|
2766
|
+
uk: z.ZodOptional<z.ZodString>;
|
|
2767
|
+
en: z.ZodOptional<z.ZodString>;
|
|
2768
|
+
}, z.core.$strict>>;
|
|
2754
2769
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2755
2770
|
name: z.ZodString;
|
|
2756
2771
|
$schema: z.ZodOptional<z.ZodString>;
|
|
@@ -2843,6 +2858,7 @@ export declare const roleSchema: z.ZodObject<{
|
|
|
2843
2858
|
write: "write";
|
|
2844
2859
|
publish: "publish";
|
|
2845
2860
|
unpublish: "unpublish";
|
|
2861
|
+
acceptInvitation: "acceptInvitation";
|
|
2846
2862
|
}>;
|
|
2847
2863
|
}, z.core.$strict>]>;
|
|
2848
2864
|
actions: z.ZodArray<z.ZodString>;
|
|
@@ -2879,6 +2895,7 @@ export declare const roleSchema: z.ZodObject<{
|
|
|
2879
2895
|
write: "write";
|
|
2880
2896
|
publish: "publish";
|
|
2881
2897
|
unpublish: "unpublish";
|
|
2898
|
+
acceptInvitation: "acceptInvitation";
|
|
2882
2899
|
}>;
|
|
2883
2900
|
}, z.core.$strict>]>;
|
|
2884
2901
|
actions: z.ZodArray<z.ZodString>;
|
|
@@ -2887,6 +2904,10 @@ export declare const roleSchema: z.ZodObject<{
|
|
|
2887
2904
|
}, z.core.$strict>]>>;
|
|
2888
2905
|
}, z.core.$strict>;
|
|
2889
2906
|
}, z.core.$strict>]>>>;
|
|
2907
|
+
title: z.ZodOptional<z.ZodObject<{
|
|
2908
|
+
uk: z.ZodOptional<z.ZodString>;
|
|
2909
|
+
en: z.ZodOptional<z.ZodString>;
|
|
2910
|
+
}, z.core.$strict>>;
|
|
2890
2911
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2891
2912
|
name: z.ZodString;
|
|
2892
2913
|
$schema: z.ZodOptional<z.ZodString>;
|
|
@@ -2918,7 +2939,6 @@ export declare const customTableColumnSchema: z.ZodObject<{
|
|
|
2918
2939
|
name: z.ZodString;
|
|
2919
2940
|
}, z.core.$strict>>;
|
|
2920
2941
|
pgType: z.ZodOptional<z.ZodString>;
|
|
2921
|
-
length: z.ZodOptional<z.ZodNumber>;
|
|
2922
2942
|
array: z.ZodOptional<z.ZodBoolean>;
|
|
2923
2943
|
precision: z.ZodOptional<z.ZodNumber>;
|
|
2924
2944
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2938,6 +2958,7 @@ export declare const customTableColumnSchema: z.ZodObject<{
|
|
|
2938
2958
|
}>;
|
|
2939
2959
|
name: z.ZodString;
|
|
2940
2960
|
}, z.core.$strict>>;
|
|
2961
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
2941
2962
|
allowedTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2942
2963
|
kind: z.ZodEnum<{
|
|
2943
2964
|
Catalog: "Catalog";
|
|
@@ -2976,13 +2997,13 @@ export declare const customTableColumnSchema: z.ZodObject<{
|
|
|
2976
2997
|
}, z.core.$strict>>;
|
|
2977
2998
|
comment: z.ZodOptional<z.ZodString>;
|
|
2978
2999
|
type: z.ZodEnum<{
|
|
2979
|
-
BigInt: "BigInt";
|
|
2980
3000
|
PgEnum: "PgEnum";
|
|
2981
3001
|
UUID: "UUID";
|
|
2982
3002
|
String: "String";
|
|
2983
3003
|
Text: "Text";
|
|
2984
3004
|
Integer: "Integer";
|
|
2985
3005
|
SmallInt: "SmallInt";
|
|
3006
|
+
BigInt: "BigInt";
|
|
2986
3007
|
Numeric: "Numeric";
|
|
2987
3008
|
Boolean: "Boolean";
|
|
2988
3009
|
Date: "Date";
|
|
@@ -3032,7 +3053,6 @@ export declare const customTableSchema: z.ZodObject<{
|
|
|
3032
3053
|
name: z.ZodString;
|
|
3033
3054
|
}, z.core.$strict>>;
|
|
3034
3055
|
pgType: z.ZodOptional<z.ZodString>;
|
|
3035
|
-
length: z.ZodOptional<z.ZodNumber>;
|
|
3036
3056
|
array: z.ZodOptional<z.ZodBoolean>;
|
|
3037
3057
|
precision: z.ZodOptional<z.ZodNumber>;
|
|
3038
3058
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3052,6 +3072,7 @@ export declare const customTableSchema: z.ZodObject<{
|
|
|
3052
3072
|
}>;
|
|
3053
3073
|
name: z.ZodString;
|
|
3054
3074
|
}, z.core.$strict>>;
|
|
3075
|
+
length: z.ZodOptional<z.ZodNumber>;
|
|
3055
3076
|
allowedTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3056
3077
|
kind: z.ZodEnum<{
|
|
3057
3078
|
Catalog: "Catalog";
|
|
@@ -3090,13 +3111,13 @@ export declare const customTableSchema: z.ZodObject<{
|
|
|
3090
3111
|
}, z.core.$strict>>;
|
|
3091
3112
|
comment: z.ZodOptional<z.ZodString>;
|
|
3092
3113
|
type: z.ZodEnum<{
|
|
3093
|
-
BigInt: "BigInt";
|
|
3094
3114
|
PgEnum: "PgEnum";
|
|
3095
3115
|
UUID: "UUID";
|
|
3096
3116
|
String: "String";
|
|
3097
3117
|
Text: "Text";
|
|
3098
3118
|
Integer: "Integer";
|
|
3099
3119
|
SmallInt: "SmallInt";
|
|
3120
|
+
BigInt: "BigInt";
|
|
3100
3121
|
Numeric: "Numeric";
|
|
3101
3122
|
Boolean: "Boolean";
|
|
3102
3123
|
Date: "Date";
|
|
@@ -3608,8 +3629,8 @@ export declare const projectSchema: z.ZodObject<{
|
|
|
3608
3629
|
en: z.ZodOptional<z.ZodString>;
|
|
3609
3630
|
}, z.core.$strict>>;
|
|
3610
3631
|
defaultLocale: z.ZodDefault<z.ZodEnum<{
|
|
3611
|
-
en: "en";
|
|
3612
3632
|
uk: "uk";
|
|
3633
|
+
en: "en";
|
|
3613
3634
|
}>>;
|
|
3614
3635
|
primaryDataLanguage: z.ZodOptional<z.ZodString>;
|
|
3615
3636
|
defaultSchema: z.ZodDefault<z.ZodString>;
|
|
@@ -3627,6 +3648,68 @@ export declare const projectSchema: z.ZodObject<{
|
|
|
3627
3648
|
}, z.core.$strict>>;
|
|
3628
3649
|
timezone: z.ZodDefault<z.ZodString>;
|
|
3629
3650
|
selfSignUp: z.ZodOptional<z.ZodBoolean>;
|
|
3651
|
+
invitations: z.ZodOptional<z.ZodObject<{
|
|
3652
|
+
expiresInHours: z.ZodNumber;
|
|
3653
|
+
}, z.core.$strict>>;
|
|
3654
|
+
selfSignUpAccepted: z.ZodOptional<z.ZodObject<{
|
|
3655
|
+
objects: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3656
|
+
object: z.ZodObject<{
|
|
3657
|
+
kind: z.ZodEnum<{
|
|
3658
|
+
Catalog: "Catalog";
|
|
3659
|
+
Document: "Document";
|
|
3660
|
+
Enumeration: "Enumeration";
|
|
3661
|
+
InformationRegister: "InformationRegister";
|
|
3662
|
+
AccumulationRegister: "AccumulationRegister";
|
|
3663
|
+
Constant: "Constant";
|
|
3664
|
+
CustomTable: "CustomTable";
|
|
3665
|
+
PgEnum: "PgEnum";
|
|
3666
|
+
EventSubscription: "EventSubscription";
|
|
3667
|
+
RightsSet: "RightsSet";
|
|
3668
|
+
Role: "Role";
|
|
3669
|
+
}>;
|
|
3670
|
+
name: z.ZodString;
|
|
3671
|
+
}, z.core.$strict>;
|
|
3672
|
+
published: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3673
|
+
}, z.core.$strict>>>;
|
|
3674
|
+
grants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3675
|
+
role: z.ZodObject<{
|
|
3676
|
+
kind: z.ZodEnum<{
|
|
3677
|
+
Catalog: "Catalog";
|
|
3678
|
+
Document: "Document";
|
|
3679
|
+
Enumeration: "Enumeration";
|
|
3680
|
+
InformationRegister: "InformationRegister";
|
|
3681
|
+
AccumulationRegister: "AccumulationRegister";
|
|
3682
|
+
Constant: "Constant";
|
|
3683
|
+
CustomTable: "CustomTable";
|
|
3684
|
+
PgEnum: "PgEnum";
|
|
3685
|
+
EventSubscription: "EventSubscription";
|
|
3686
|
+
RightsSet: "RightsSet";
|
|
3687
|
+
Role: "Role";
|
|
3688
|
+
}>;
|
|
3689
|
+
name: z.ZodString;
|
|
3690
|
+
}, z.core.$strict>;
|
|
3691
|
+
object: z.ZodObject<{
|
|
3692
|
+
kind: z.ZodEnum<{
|
|
3693
|
+
Catalog: "Catalog";
|
|
3694
|
+
Document: "Document";
|
|
3695
|
+
Enumeration: "Enumeration";
|
|
3696
|
+
InformationRegister: "InformationRegister";
|
|
3697
|
+
AccumulationRegister: "AccumulationRegister";
|
|
3698
|
+
Constant: "Constant";
|
|
3699
|
+
CustomTable: "CustomTable";
|
|
3700
|
+
PgEnum: "PgEnum";
|
|
3701
|
+
EventSubscription: "EventSubscription";
|
|
3702
|
+
RightsSet: "RightsSet";
|
|
3703
|
+
Role: "Role";
|
|
3704
|
+
}>;
|
|
3705
|
+
name: z.ZodString;
|
|
3706
|
+
}, z.core.$strict>;
|
|
3707
|
+
actions: z.ZodArray<z.ZodString>;
|
|
3708
|
+
extent: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodLiteral<"own">, z.ZodObject<{
|
|
3709
|
+
dimension: z.ZodString;
|
|
3710
|
+
}, z.core.$strict>]>;
|
|
3711
|
+
}, z.core.$strict>>>;
|
|
3712
|
+
}, z.core.$strict>>;
|
|
3630
3713
|
scopeKinds: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3631
3714
|
id: z.ZodOptional<z.ZodUUID>;
|
|
3632
3715
|
name: z.ZodString;
|
|
@@ -4190,6 +4273,10 @@ export declare const COMMAND_CORE_ERRORS: {
|
|
|
4190
4273
|
readonly roleInUse: "role-in-use";
|
|
4191
4274
|
readonly lastFullAccess: "last-full-access";
|
|
4192
4275
|
};
|
|
4276
|
+
readonly invitationNotPending: {
|
|
4277
|
+
readonly errcode: "P0001";
|
|
4278
|
+
readonly message: "invitation.not-pending";
|
|
4279
|
+
};
|
|
4193
4280
|
readonly conflict: {
|
|
4194
4281
|
readonly errcode: "P0001";
|
|
4195
4282
|
readonly message: "command.conflict";
|
|
@@ -4208,6 +4295,11 @@ export declare const RIGHTS_REQUIRE_ERROR: {
|
|
|
4208
4295
|
readonly message: "rights.forbidden";
|
|
4209
4296
|
readonly noRight: "no-right";
|
|
4210
4297
|
};
|
|
4298
|
+
/**
|
|
4299
|
+
* The invitation acceptance function in the `simetra` schema (invitations
|
|
4300
|
+
* spec §5): T1 generates it, T3 calls it from `acceptInvitation`.
|
|
4301
|
+
*/
|
|
4302
|
+
export declare const INVITATION_ACCEPT_FUNCTION_NAME = "invitation_accept";
|
|
4211
4303
|
/** Тригер ієрархії відмовляє поза `READ COMMITTED` (спека П4 §6.6). */
|
|
4212
4304
|
export declare const HIERARCHY_ISOLATION_ERROR: {
|
|
4213
4305
|
readonly errcode: "0A000";
|
|
@@ -4223,7 +4315,7 @@ export declare const ROW_VERSION_EPOCH_FUNCTION_NAME = "row_version_epoch";
|
|
|
4223
4315
|
/** UUID without a scope: the channel and the holder key of an unscoped object. */
|
|
4224
4316
|
export declare const ZERO_UUID = "00000000-0000-0000-0000-000000000000";
|
|
4225
4317
|
/** Operations on an object that a command accepts (P4 spec §6.4). */
|
|
4226
|
-
export declare const OBJECT_OPERATIONS: readonly ["create", "update", "markDeletion", "delete", "publish", "unpublish"];
|
|
4318
|
+
export declare const OBJECT_OPERATIONS: readonly ["create", "update", "markDeletion", "delete", "publish", "unpublish", "issueInvitation"];
|
|
4227
4319
|
export type ObjectOperation = (typeof OBJECT_OPERATIONS)[number];
|
|
4228
4320
|
/**
|
|
4229
4321
|
* The object-module event an operation raises; `undefined` — none. Подію
|
|
@@ -4396,6 +4488,25 @@ export declare const operationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4396
4488
|
}, z.core.$strict>;
|
|
4397
4489
|
id: z.ZodGUID;
|
|
4398
4490
|
expectedVersion: z.ZodInt;
|
|
4491
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4492
|
+
action: z.ZodLiteral<"issueInvitation">;
|
|
4493
|
+
object: z.ZodObject<{
|
|
4494
|
+
kind: z.ZodEnum<{
|
|
4495
|
+
Catalog: "Catalog";
|
|
4496
|
+
Document: "Document";
|
|
4497
|
+
Enumeration: "Enumeration";
|
|
4498
|
+
InformationRegister: "InformationRegister";
|
|
4499
|
+
AccumulationRegister: "AccumulationRegister";
|
|
4500
|
+
Constant: "Constant";
|
|
4501
|
+
CustomTable: "CustomTable";
|
|
4502
|
+
PgEnum: "PgEnum";
|
|
4503
|
+
EventSubscription: "EventSubscription";
|
|
4504
|
+
RightsSet: "RightsSet";
|
|
4505
|
+
Role: "Role";
|
|
4506
|
+
}>;
|
|
4507
|
+
name: z.ZodString;
|
|
4508
|
+
}, z.core.$strict>;
|
|
4509
|
+
id: z.ZodGUID;
|
|
4399
4510
|
}, z.core.$strict>], "action">;
|
|
4400
4511
|
export type Operation = z.infer<typeof operationSchema>;
|
|
4401
4512
|
/**
|
|
@@ -4536,6 +4647,25 @@ export declare const batchSchema: z.ZodPreprocess<z.ZodArray<z.ZodDiscriminatedU
|
|
|
4536
4647
|
}, z.core.$strict>;
|
|
4537
4648
|
id: z.ZodGUID;
|
|
4538
4649
|
expectedVersion: z.ZodInt;
|
|
4650
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4651
|
+
action: z.ZodLiteral<"issueInvitation">;
|
|
4652
|
+
object: z.ZodObject<{
|
|
4653
|
+
kind: z.ZodEnum<{
|
|
4654
|
+
Catalog: "Catalog";
|
|
4655
|
+
Document: "Document";
|
|
4656
|
+
Enumeration: "Enumeration";
|
|
4657
|
+
InformationRegister: "InformationRegister";
|
|
4658
|
+
AccumulationRegister: "AccumulationRegister";
|
|
4659
|
+
Constant: "Constant";
|
|
4660
|
+
CustomTable: "CustomTable";
|
|
4661
|
+
PgEnum: "PgEnum";
|
|
4662
|
+
EventSubscription: "EventSubscription";
|
|
4663
|
+
RightsSet: "RightsSet";
|
|
4664
|
+
Role: "Role";
|
|
4665
|
+
}>;
|
|
4666
|
+
name: z.ZodString;
|
|
4667
|
+
}, z.core.$strict>;
|
|
4668
|
+
id: z.ZodGUID;
|
|
4539
4669
|
}, z.core.$strict>], "action">>, unknown>;
|
|
4540
4670
|
export type Batch = z.infer<typeof batchSchema>;
|
|
4541
4671
|
/** One row changed by a command. */
|
|
@@ -4549,9 +4679,26 @@ export interface Change {
|
|
|
4549
4679
|
version: number;
|
|
4550
4680
|
operation: ObjectOperation;
|
|
4551
4681
|
}
|
|
4682
|
+
/**
|
|
4683
|
+
* The result row of `issueInvitation` (invitations spec §4): a variant of the
|
|
4684
|
+
* operation's row, not a catalog row. The secret is shown here once and
|
|
4685
|
+
* nowhere else; `expiresAt` is the end of the invitation as the database
|
|
4686
|
+
* returned it.
|
|
4687
|
+
*/
|
|
4688
|
+
export declare const invitationIssueSchema: z.ZodObject<{
|
|
4689
|
+
secret: z.ZodString;
|
|
4690
|
+
expiresAt: z.ZodString;
|
|
4691
|
+
}, z.core.$strict>;
|
|
4692
|
+
export type InvitationIssue = z.infer<typeof invitationIssueSchema>;
|
|
4693
|
+
/** Whether a result row is the row of `issueInvitation`, not a catalog row. */
|
|
4694
|
+
export declare const isInvitationIssue: (row: unknown) => row is InvitationIssue;
|
|
4552
4695
|
/** The outcome of a command. */
|
|
4553
4696
|
export interface CommandResult {
|
|
4554
|
-
/**
|
|
4697
|
+
/**
|
|
4698
|
+
* One row per input operation, in input order: a catalog row, or the
|
|
4699
|
+
* `InvitationIssue` of an `issueInvitation` (told apart by
|
|
4700
|
+
* `isInvitationIssue` for the operation's position).
|
|
4701
|
+
*/
|
|
4555
4702
|
rows: Record<string, unknown>[];
|
|
4556
4703
|
/** Every phase, `ctx.run` included, in the order the core was called. */
|
|
4557
4704
|
changes: Change[];
|
|
@@ -4563,7 +4710,7 @@ export interface CommandResult {
|
|
|
4563
4710
|
epoch: string;
|
|
4564
4711
|
}
|
|
4565
4712
|
/** Error codes a command or the runtime factory reports (P4 spec §6.10). */
|
|
4566
|
-
export declare const COMMAND_ERROR_CODES: readonly ["command.forbidden", "command.conflict", "command.invalid", "command.constraint", "command.context", "command.unauthenticated", "command.rejected", "command.nested", "command.depth", "command.retry-exhausted", "command.model-mismatch", "command.read-role-missing", "command.privileged-login", "command.unavailable", "command.timeout", "command.busy", "command.stale-client", "command.internal"];
|
|
4713
|
+
export declare const COMMAND_ERROR_CODES: readonly ["command.forbidden", "command.conflict", "command.invalid", "command.constraint", "command.context", "command.unauthenticated", "command.rejected", "command.nested", "command.depth", "command.retry-exhausted", "command.model-mismatch", "command.read-role-missing", "command.privileged-login", "command.unavailable", "command.timeout", "command.busy", "command.stale-client", "command.internal", "invitation.invalid", "invitation.already-member", "invitation.rate-limited", "invitation.not-pending"];
|
|
4567
4714
|
export type CommandErrorCode = (typeof COMMAND_ERROR_CODES)[number];
|
|
4568
4715
|
/**
|
|
4569
4716
|
* `reason` values a `CommandError` carries for envelope and size limits
|
|
@@ -4733,6 +4880,17 @@ export declare const rightsDimensionValuesSchema: z.ZodObject<{
|
|
|
4733
4880
|
digest: z.ZodOptional<z.ZodString>;
|
|
4734
4881
|
}, z.core.$strict>;
|
|
4735
4882
|
export type RightsDimensionValues = z.infer<typeof rightsDimensionValuesSchema>;
|
|
4883
|
+
/**
|
|
4884
|
+
* Рядок `rights_container_held(<мітка>)` з міткою контейнерного об'єкта
|
|
4885
|
+
* (спека прав контейнера §1): контейнер, де актор має дієве контейнерне
|
|
4886
|
+
* призначення, і скоуп контейнера — `null` у нескоупленого.
|
|
4887
|
+
*/
|
|
4888
|
+
export declare const rightsHeldContainerSchema: z.ZodObject<{
|
|
4889
|
+
object: z.ZodString;
|
|
4890
|
+
container: z.ZodGUID;
|
|
4891
|
+
scope: z.ZodNullable<z.ZodGUID>;
|
|
4892
|
+
}, z.core.$strict>;
|
|
4893
|
+
export type RightsHeldContainer = z.infer<typeof rightsHeldContainerSchema>;
|
|
4736
4894
|
/**
|
|
4737
4895
|
* Знімок прав поточного користувача (P4-B spec §9.1): лише його факти.
|
|
4738
4896
|
* Анонім і недійсний користувач — усі масиви порожні, `userId: null`.
|
|
@@ -4758,6 +4916,11 @@ export declare const rightsSnapshotSchema: z.ZodObject<{
|
|
|
4758
4916
|
scope: z.ZodGUID;
|
|
4759
4917
|
member: z.ZodGUID;
|
|
4760
4918
|
}, z.core.$strict>>;
|
|
4919
|
+
heldContainers: z.ZodArray<z.ZodObject<{
|
|
4920
|
+
object: z.ZodString;
|
|
4921
|
+
container: z.ZodGUID;
|
|
4922
|
+
scope: z.ZodNullable<z.ZodGUID>;
|
|
4923
|
+
}, z.core.$strict>>;
|
|
4761
4924
|
dimensionValues: z.ZodArray<z.ZodObject<{
|
|
4762
4925
|
dimension: z.ZodGUID;
|
|
4763
4926
|
values: z.ZodArray<z.ZodGUID>;
|
|
@@ -4792,6 +4955,11 @@ export declare const rightsValueSchema: z.ZodObject<{
|
|
|
4792
4955
|
scope: z.ZodGUID;
|
|
4793
4956
|
member: z.ZodGUID;
|
|
4794
4957
|
}, z.core.$strict>>;
|
|
4958
|
+
heldContainers: z.ZodArray<z.ZodObject<{
|
|
4959
|
+
object: z.ZodString;
|
|
4960
|
+
container: z.ZodGUID;
|
|
4961
|
+
scope: z.ZodNullable<z.ZodGUID>;
|
|
4962
|
+
}, z.core.$strict>>;
|
|
4795
4963
|
dimensionValues: z.ZodArray<z.ZodObject<{
|
|
4796
4964
|
dimension: z.ZodGUID;
|
|
4797
4965
|
values: z.ZodArray<z.ZodGUID>;
|
|
@@ -4806,6 +4974,11 @@ export type RightsValue = z.infer<typeof rightsValueSchema>;
|
|
|
4806
4974
|
* кличе, а імпортує лише `simetra/model`.
|
|
4807
4975
|
*/
|
|
4808
4976
|
export declare const RIGHTS_CLIENT_SNAPSHOT_FUNCTION_NAME = "rights_client_snapshot";
|
|
4977
|
+
/**
|
|
4978
|
+
* The function of my scopes in the `simetra` schema (rights spec §5.1): kind,
|
|
4979
|
+
* scope and my member. T1 generates it, T3 reads it for `workspaces`.
|
|
4980
|
+
*/
|
|
4981
|
+
export declare const RIGHTS_MY_SCOPES_FUNCTION_NAME = "rights_my_scopes";
|
|
4809
4982
|
/** Operators of a filter condition (P4-B spec §4.1). */
|
|
4810
4983
|
export declare const FILTER_OPERATORS: readonly ["eq", "ne", "lt", "lte", "gt", "gte", "in", "isNull", "contains", "startsWith"];
|
|
4811
4984
|
export type FilterOperator = (typeof FILTER_OPERATORS)[number];
|
|
@@ -5213,12 +5386,12 @@ export declare const catalogEntryAttributeSchema: z.ZodObject<{
|
|
|
5213
5386
|
name: z.ZodString;
|
|
5214
5387
|
column: z.ZodString;
|
|
5215
5388
|
type: z.ZodEnum<{
|
|
5216
|
-
BigInt: "BigInt";
|
|
5217
5389
|
UUID: "UUID";
|
|
5218
5390
|
String: "String";
|
|
5219
5391
|
Text: "Text";
|
|
5220
5392
|
Integer: "Integer";
|
|
5221
5393
|
SmallInt: "SmallInt";
|
|
5394
|
+
BigInt: "BigInt";
|
|
5222
5395
|
Numeric: "Numeric";
|
|
5223
5396
|
Boolean: "Boolean";
|
|
5224
5397
|
Date: "Date";
|
|
@@ -5277,12 +5450,12 @@ export declare const runtimeAttributeSchema: z.ZodObject<{
|
|
|
5277
5450
|
name: z.ZodString;
|
|
5278
5451
|
column: z.ZodString;
|
|
5279
5452
|
type: z.ZodEnum<{
|
|
5280
|
-
BigInt: "BigInt";
|
|
5281
5453
|
UUID: "UUID";
|
|
5282
5454
|
String: "String";
|
|
5283
5455
|
Text: "Text";
|
|
5284
5456
|
Integer: "Integer";
|
|
5285
5457
|
SmallInt: "SmallInt";
|
|
5458
|
+
BigInt: "BigInt";
|
|
5286
5459
|
Numeric: "Numeric";
|
|
5287
5460
|
Boolean: "Boolean";
|
|
5288
5461
|
Date: "Date";
|
|
@@ -5377,12 +5550,12 @@ export declare const catalogEntrySectionSchema: z.ZodObject<{
|
|
|
5377
5550
|
name: z.ZodString;
|
|
5378
5551
|
column: z.ZodString;
|
|
5379
5552
|
type: z.ZodEnum<{
|
|
5380
|
-
BigInt: "BigInt";
|
|
5381
5553
|
UUID: "UUID";
|
|
5382
5554
|
String: "String";
|
|
5383
5555
|
Text: "Text";
|
|
5384
5556
|
Integer: "Integer";
|
|
5385
5557
|
SmallInt: "SmallInt";
|
|
5558
|
+
BigInt: "BigInt";
|
|
5386
5559
|
Numeric: "Numeric";
|
|
5387
5560
|
Boolean: "Boolean";
|
|
5388
5561
|
Date: "Date";
|
|
@@ -5460,12 +5633,12 @@ export declare const runtimeSectionSchema: z.ZodObject<{
|
|
|
5460
5633
|
name: z.ZodString;
|
|
5461
5634
|
column: z.ZodString;
|
|
5462
5635
|
type: z.ZodEnum<{
|
|
5463
|
-
BigInt: "BigInt";
|
|
5464
5636
|
UUID: "UUID";
|
|
5465
5637
|
String: "String";
|
|
5466
5638
|
Text: "Text";
|
|
5467
5639
|
Integer: "Integer";
|
|
5468
5640
|
SmallInt: "SmallInt";
|
|
5641
|
+
BigInt: "BigInt";
|
|
5469
5642
|
Numeric: "Numeric";
|
|
5470
5643
|
Boolean: "Boolean";
|
|
5471
5644
|
Date: "Date";
|
|
@@ -5763,12 +5936,12 @@ export declare const catalogEntrySchema: z.ZodObject<{
|
|
|
5763
5936
|
name: z.ZodString;
|
|
5764
5937
|
column: z.ZodString;
|
|
5765
5938
|
type: z.ZodEnum<{
|
|
5766
|
-
BigInt: "BigInt";
|
|
5767
5939
|
UUID: "UUID";
|
|
5768
5940
|
String: "String";
|
|
5769
5941
|
Text: "Text";
|
|
5770
5942
|
Integer: "Integer";
|
|
5771
5943
|
SmallInt: "SmallInt";
|
|
5944
|
+
BigInt: "BigInt";
|
|
5772
5945
|
Numeric: "Numeric";
|
|
5773
5946
|
Boolean: "Boolean";
|
|
5774
5947
|
Date: "Date";
|
|
@@ -5840,12 +6013,12 @@ export declare const catalogEntrySchema: z.ZodObject<{
|
|
|
5840
6013
|
name: z.ZodString;
|
|
5841
6014
|
column: z.ZodString;
|
|
5842
6015
|
type: z.ZodEnum<{
|
|
5843
|
-
BigInt: "BigInt";
|
|
5844
6016
|
UUID: "UUID";
|
|
5845
6017
|
String: "String";
|
|
5846
6018
|
Text: "Text";
|
|
5847
6019
|
Integer: "Integer";
|
|
5848
6020
|
SmallInt: "SmallInt";
|
|
6021
|
+
BigInt: "BigInt";
|
|
5849
6022
|
Numeric: "Numeric";
|
|
5850
6023
|
Boolean: "Boolean";
|
|
5851
6024
|
Date: "Date";
|
|
@@ -6027,12 +6200,12 @@ export declare const runtimeObjectSchema: z.ZodObject<{
|
|
|
6027
6200
|
name: z.ZodString;
|
|
6028
6201
|
column: z.ZodString;
|
|
6029
6202
|
type: z.ZodEnum<{
|
|
6030
|
-
BigInt: "BigInt";
|
|
6031
6203
|
UUID: "UUID";
|
|
6032
6204
|
String: "String";
|
|
6033
6205
|
Text: "Text";
|
|
6034
6206
|
Integer: "Integer";
|
|
6035
6207
|
SmallInt: "SmallInt";
|
|
6208
|
+
BigInt: "BigInt";
|
|
6036
6209
|
Numeric: "Numeric";
|
|
6037
6210
|
Boolean: "Boolean";
|
|
6038
6211
|
Date: "Date";
|
|
@@ -6119,12 +6292,12 @@ export declare const runtimeObjectSchema: z.ZodObject<{
|
|
|
6119
6292
|
name: z.ZodString;
|
|
6120
6293
|
column: z.ZodString;
|
|
6121
6294
|
type: z.ZodEnum<{
|
|
6122
|
-
BigInt: "BigInt";
|
|
6123
6295
|
UUID: "UUID";
|
|
6124
6296
|
String: "String";
|
|
6125
6297
|
Text: "Text";
|
|
6126
6298
|
Integer: "Integer";
|
|
6127
6299
|
SmallInt: "SmallInt";
|
|
6300
|
+
BigInt: "BigInt";
|
|
6128
6301
|
Numeric: "Numeric";
|
|
6129
6302
|
Boolean: "Boolean";
|
|
6130
6303
|
Date: "Date";
|
|
@@ -6247,6 +6420,13 @@ export declare const runtimeObjectSchema: z.ZodObject<{
|
|
|
6247
6420
|
}, z.core.$strict>;
|
|
6248
6421
|
context: z.ZodString;
|
|
6249
6422
|
}, z.core.$strict>>;
|
|
6423
|
+
issueInvitation: z.ZodOptional<z.ZodObject<{
|
|
6424
|
+
function: z.ZodObject<{
|
|
6425
|
+
schema: z.ZodString;
|
|
6426
|
+
name: z.ZodString;
|
|
6427
|
+
}, z.core.$strict>;
|
|
6428
|
+
context: z.ZodString;
|
|
6429
|
+
}, z.core.$strict>>;
|
|
6250
6430
|
}, z.core.$strict>>;
|
|
6251
6431
|
constraints: z.ZodArray<z.ZodObject<{
|
|
6252
6432
|
name: z.ZodString;
|
|
@@ -6272,6 +6452,41 @@ export declare const catalogAdoptedFactsSchema: z.ZodObject<{
|
|
|
6272
6452
|
membershipKinds: z.ZodArray<z.ZodGUID>;
|
|
6273
6453
|
assignments: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6274
6454
|
}, z.core.$strict>;
|
|
6455
|
+
/**
|
|
6456
|
+
* Рівень ролі в каталозі: `global`, `everyUser`, вид скоупу чи контейнер
|
|
6457
|
+
* (спека «Споживач поза монорепо» §5.4); вид і контейнер — за id.
|
|
6458
|
+
*/
|
|
6459
|
+
export declare const catalogRoleLevelSchema: z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodLiteral<"everyUser">, z.ZodObject<{
|
|
6460
|
+
scopeKind: z.ZodString;
|
|
6461
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6462
|
+
container: z.ZodString;
|
|
6463
|
+
}, z.core.$strict>]>;
|
|
6464
|
+
/** Роль у спільній частині каталогу: клієнт показує `title` чи `name`. */
|
|
6465
|
+
export declare const catalogRoleSchema: z.ZodObject<{
|
|
6466
|
+
id: z.ZodString;
|
|
6467
|
+
name: z.ZodString;
|
|
6468
|
+
title: z.ZodOptional<z.ZodObject<{
|
|
6469
|
+
uk: z.ZodOptional<z.ZodString>;
|
|
6470
|
+
en: z.ZodOptional<z.ZodString>;
|
|
6471
|
+
}, z.core.$strict>>;
|
|
6472
|
+
level: z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodLiteral<"everyUser">, z.ZodObject<{
|
|
6473
|
+
scopeKind: z.ZodString;
|
|
6474
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6475
|
+
container: z.ZodString;
|
|
6476
|
+
}, z.core.$strict>]>;
|
|
6477
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
6478
|
+
assignable: z.ZodBoolean;
|
|
6479
|
+
fullAccess: z.ZodBoolean;
|
|
6480
|
+
}, z.core.$strict>;
|
|
6481
|
+
/** Набір прав у спільній частині каталогу. */
|
|
6482
|
+
export declare const catalogRightsSetSchema: z.ZodObject<{
|
|
6483
|
+
id: z.ZodString;
|
|
6484
|
+
name: z.ZodString;
|
|
6485
|
+
title: z.ZodOptional<z.ZodObject<{
|
|
6486
|
+
uk: z.ZodOptional<z.ZodString>;
|
|
6487
|
+
en: z.ZodOptional<z.ZodString>;
|
|
6488
|
+
}, z.core.$strict>>;
|
|
6489
|
+
}, z.core.$strict>;
|
|
6275
6490
|
/** The runtime catalog: a projection of the compiled model (P4 spec §6.3). */
|
|
6276
6491
|
export declare const runtimeCatalogSchema: z.ZodObject<{
|
|
6277
6492
|
format: z.ZodLiteral<1>;
|
|
@@ -6282,10 +6497,35 @@ export declare const runtimeCatalogSchema: z.ZodObject<{
|
|
|
6282
6497
|
}>;
|
|
6283
6498
|
rightsSnapshot: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6284
6499
|
selfSignUp: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6500
|
+
invitations: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6285
6501
|
adoptedFacts: z.ZodOptional<z.ZodObject<{
|
|
6286
6502
|
membershipKinds: z.ZodArray<z.ZodGUID>;
|
|
6287
6503
|
assignments: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6288
6504
|
}, z.core.$strict>>;
|
|
6505
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6506
|
+
id: z.ZodString;
|
|
6507
|
+
name: z.ZodString;
|
|
6508
|
+
title: z.ZodOptional<z.ZodObject<{
|
|
6509
|
+
uk: z.ZodOptional<z.ZodString>;
|
|
6510
|
+
en: z.ZodOptional<z.ZodString>;
|
|
6511
|
+
}, z.core.$strict>>;
|
|
6512
|
+
level: z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodLiteral<"everyUser">, z.ZodObject<{
|
|
6513
|
+
scopeKind: z.ZodString;
|
|
6514
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6515
|
+
container: z.ZodString;
|
|
6516
|
+
}, z.core.$strict>]>;
|
|
6517
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
6518
|
+
assignable: z.ZodBoolean;
|
|
6519
|
+
fullAccess: z.ZodBoolean;
|
|
6520
|
+
}, z.core.$strict>>>;
|
|
6521
|
+
rightsSets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6522
|
+
id: z.ZodString;
|
|
6523
|
+
name: z.ZodString;
|
|
6524
|
+
title: z.ZodOptional<z.ZodObject<{
|
|
6525
|
+
uk: z.ZodOptional<z.ZodString>;
|
|
6526
|
+
en: z.ZodOptional<z.ZodString>;
|
|
6527
|
+
}, z.core.$strict>>;
|
|
6528
|
+
}, z.core.$strict>>>;
|
|
6289
6529
|
objects: z.ZodArray<z.ZodObject<{
|
|
6290
6530
|
id: z.ZodGUID;
|
|
6291
6531
|
name: z.ZodString;
|
|
@@ -6408,12 +6648,12 @@ export declare const runtimeCatalogSchema: z.ZodObject<{
|
|
|
6408
6648
|
name: z.ZodString;
|
|
6409
6649
|
column: z.ZodString;
|
|
6410
6650
|
type: z.ZodEnum<{
|
|
6411
|
-
BigInt: "BigInt";
|
|
6412
6651
|
UUID: "UUID";
|
|
6413
6652
|
String: "String";
|
|
6414
6653
|
Text: "Text";
|
|
6415
6654
|
Integer: "Integer";
|
|
6416
6655
|
SmallInt: "SmallInt";
|
|
6656
|
+
BigInt: "BigInt";
|
|
6417
6657
|
Numeric: "Numeric";
|
|
6418
6658
|
Boolean: "Boolean";
|
|
6419
6659
|
Date: "Date";
|
|
@@ -6500,12 +6740,12 @@ export declare const runtimeCatalogSchema: z.ZodObject<{
|
|
|
6500
6740
|
name: z.ZodString;
|
|
6501
6741
|
column: z.ZodString;
|
|
6502
6742
|
type: z.ZodEnum<{
|
|
6503
|
-
BigInt: "BigInt";
|
|
6504
6743
|
UUID: "UUID";
|
|
6505
6744
|
String: "String";
|
|
6506
6745
|
Text: "Text";
|
|
6507
6746
|
Integer: "Integer";
|
|
6508
6747
|
SmallInt: "SmallInt";
|
|
6748
|
+
BigInt: "BigInt";
|
|
6509
6749
|
Numeric: "Numeric";
|
|
6510
6750
|
Boolean: "Boolean";
|
|
6511
6751
|
Date: "Date";
|
|
@@ -6628,6 +6868,13 @@ export declare const runtimeCatalogSchema: z.ZodObject<{
|
|
|
6628
6868
|
}, z.core.$strict>;
|
|
6629
6869
|
context: z.ZodString;
|
|
6630
6870
|
}, z.core.$strict>>;
|
|
6871
|
+
issueInvitation: z.ZodOptional<z.ZodObject<{
|
|
6872
|
+
function: z.ZodObject<{
|
|
6873
|
+
schema: z.ZodString;
|
|
6874
|
+
name: z.ZodString;
|
|
6875
|
+
}, z.core.$strict>;
|
|
6876
|
+
context: z.ZodString;
|
|
6877
|
+
}, z.core.$strict>>;
|
|
6631
6878
|
}, z.core.$strict>>;
|
|
6632
6879
|
constraints: z.ZodArray<z.ZodObject<{
|
|
6633
6880
|
name: z.ZodString;
|
|
@@ -6654,6 +6901,8 @@ export type RuntimeSection = z.infer<typeof runtimeSectionSchema>;
|
|
|
6654
6901
|
export type RuntimeOperationTarget = z.infer<typeof runtimeOperationTargetSchema>;
|
|
6655
6902
|
export type RuntimeRootCreate = z.infer<typeof runtimeRootCreateSchema>;
|
|
6656
6903
|
export type RuntimeObject = z.infer<typeof runtimeObjectSchema>;
|
|
6904
|
+
export type CatalogRole = z.infer<typeof catalogRoleSchema>;
|
|
6905
|
+
export type CatalogRightsSet = z.infer<typeof catalogRightsSetSchema>;
|
|
6657
6906
|
export type RuntimeCatalog = z.infer<typeof runtimeCatalogSchema>;
|
|
6658
6907
|
export type CatalogRightsCarrier = z.infer<typeof catalogRightsCarrierSchema>;
|
|
6659
6908
|
export type CatalogRightsSubject = z.infer<typeof catalogRightsSubjectSchema>;
|
|
@@ -6672,10 +6921,35 @@ export declare const clientCatalogSchema: z.ZodObject<{
|
|
|
6672
6921
|
postgres: "postgres";
|
|
6673
6922
|
}>;
|
|
6674
6923
|
rightsSnapshot: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6924
|
+
invitations: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6675
6925
|
adoptedFacts: z.ZodOptional<z.ZodObject<{
|
|
6676
6926
|
membershipKinds: z.ZodArray<z.ZodGUID>;
|
|
6677
6927
|
assignments: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6678
6928
|
}, z.core.$strict>>;
|
|
6929
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6930
|
+
id: z.ZodString;
|
|
6931
|
+
name: z.ZodString;
|
|
6932
|
+
title: z.ZodOptional<z.ZodObject<{
|
|
6933
|
+
uk: z.ZodOptional<z.ZodString>;
|
|
6934
|
+
en: z.ZodOptional<z.ZodString>;
|
|
6935
|
+
}, z.core.$strict>>;
|
|
6936
|
+
level: z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodLiteral<"everyUser">, z.ZodObject<{
|
|
6937
|
+
scopeKind: z.ZodString;
|
|
6938
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6939
|
+
container: z.ZodString;
|
|
6940
|
+
}, z.core.$strict>]>;
|
|
6941
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
6942
|
+
assignable: z.ZodBoolean;
|
|
6943
|
+
fullAccess: z.ZodBoolean;
|
|
6944
|
+
}, z.core.$strict>>>;
|
|
6945
|
+
rightsSets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6946
|
+
id: z.ZodString;
|
|
6947
|
+
name: z.ZodString;
|
|
6948
|
+
title: z.ZodOptional<z.ZodObject<{
|
|
6949
|
+
uk: z.ZodOptional<z.ZodString>;
|
|
6950
|
+
en: z.ZodOptional<z.ZodString>;
|
|
6951
|
+
}, z.core.$strict>>;
|
|
6952
|
+
}, z.core.$strict>>>;
|
|
6679
6953
|
objects: z.ZodArray<z.ZodObject<{
|
|
6680
6954
|
id: z.ZodGUID;
|
|
6681
6955
|
name: z.ZodString;
|
|
@@ -6787,12 +7061,12 @@ export declare const clientCatalogSchema: z.ZodObject<{
|
|
|
6787
7061
|
name: z.ZodString;
|
|
6788
7062
|
column: z.ZodString;
|
|
6789
7063
|
type: z.ZodEnum<{
|
|
6790
|
-
BigInt: "BigInt";
|
|
6791
7064
|
UUID: "UUID";
|
|
6792
7065
|
String: "String";
|
|
6793
7066
|
Text: "Text";
|
|
6794
7067
|
Integer: "Integer";
|
|
6795
7068
|
SmallInt: "SmallInt";
|
|
7069
|
+
BigInt: "BigInt";
|
|
6796
7070
|
Numeric: "Numeric";
|
|
6797
7071
|
Boolean: "Boolean";
|
|
6798
7072
|
Date: "Date";
|
|
@@ -6864,12 +7138,12 @@ export declare const clientCatalogSchema: z.ZodObject<{
|
|
|
6864
7138
|
name: z.ZodString;
|
|
6865
7139
|
column: z.ZodString;
|
|
6866
7140
|
type: z.ZodEnum<{
|
|
6867
|
-
BigInt: "BigInt";
|
|
6868
7141
|
UUID: "UUID";
|
|
6869
7142
|
String: "String";
|
|
6870
7143
|
Text: "Text";
|
|
6871
7144
|
Integer: "Integer";
|
|
6872
7145
|
SmallInt: "SmallInt";
|
|
7146
|
+
BigInt: "BigInt";
|
|
6873
7147
|
Numeric: "Numeric";
|
|
6874
7148
|
Boolean: "Boolean";
|
|
6875
7149
|
Date: "Date";
|
|
@@ -7119,9 +7393,9 @@ export declare const wireOperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7119
7393
|
object: z.ZodGUID;
|
|
7120
7394
|
tabularSections: z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodGUID, z.ZodString]>, z.ZodPreprocess<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, unknown>>>;
|
|
7121
7395
|
}, z.core.$strict>, z.ZodObject<{
|
|
7122
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7123
7396
|
id: z.ZodGUID;
|
|
7124
7397
|
action: z.ZodLiteral<"update">;
|
|
7398
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7125
7399
|
expectedVersion: z.ZodInt;
|
|
7126
7400
|
expectedValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7127
7401
|
object: z.ZodGUID;
|
|
@@ -7147,6 +7421,10 @@ export declare const wireOperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7147
7421
|
id: z.ZodGUID;
|
|
7148
7422
|
expectedVersion: z.ZodInt;
|
|
7149
7423
|
object: z.ZodGUID;
|
|
7424
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7425
|
+
action: z.ZodLiteral<"issueInvitation">;
|
|
7426
|
+
id: z.ZodGUID;
|
|
7427
|
+
object: z.ZodGUID;
|
|
7150
7428
|
}, z.core.$strict>], "action">;
|
|
7151
7429
|
export type WireOperation = z.infer<typeof wireOperationSchema>;
|
|
7152
7430
|
/**
|
|
@@ -7174,6 +7452,10 @@ export declare const wireCommandErrorSchema: z.ZodObject<{
|
|
|
7174
7452
|
"command.busy": "command.busy";
|
|
7175
7453
|
"command.stale-client": "command.stale-client";
|
|
7176
7454
|
"command.internal": "command.internal";
|
|
7455
|
+
"invitation.invalid": "invitation.invalid";
|
|
7456
|
+
"invitation.already-member": "invitation.already-member";
|
|
7457
|
+
"invitation.rate-limited": "invitation.rate-limited";
|
|
7458
|
+
"invitation.not-pending": "invitation.not-pending";
|
|
7177
7459
|
}>;
|
|
7178
7460
|
reason: z.ZodOptional<z.ZodString>;
|
|
7179
7461
|
object: z.ZodOptional<z.ZodGUID>;
|
|
@@ -7184,6 +7466,7 @@ export declare const wireCommandErrorSchema: z.ZodObject<{
|
|
|
7184
7466
|
delete: "delete";
|
|
7185
7467
|
publish: "publish";
|
|
7186
7468
|
unpublish: "unpublish";
|
|
7469
|
+
issueInvitation: "issueInvitation";
|
|
7187
7470
|
}>>;
|
|
7188
7471
|
path: z.ZodOptional<z.ZodString>;
|
|
7189
7472
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -7215,6 +7498,7 @@ export declare const wireChangeSchema: z.ZodObject<{
|
|
|
7215
7498
|
delete: "delete";
|
|
7216
7499
|
publish: "publish";
|
|
7217
7500
|
unpublish: "unpublish";
|
|
7501
|
+
issueInvitation: "issueInvitation";
|
|
7218
7502
|
}>;
|
|
7219
7503
|
}, z.core.$strict>;
|
|
7220
7504
|
export type WireChange = z.infer<typeof wireChangeSchema>;
|
|
@@ -7325,6 +7609,36 @@ export declare const wireRunResultSchema: z.ZodObject<{
|
|
|
7325
7609
|
delete: "delete";
|
|
7326
7610
|
publish: "publish";
|
|
7327
7611
|
unpublish: "unpublish";
|
|
7612
|
+
issueInvitation: "issueInvitation";
|
|
7613
|
+
}>;
|
|
7614
|
+
}, z.core.$strict>>;
|
|
7615
|
+
epoch: z.ZodString;
|
|
7616
|
+
}, z.core.$strict>;
|
|
7617
|
+
/**
|
|
7618
|
+
* The run result checked against the operations of its request (invitations
|
|
7619
|
+
* spec §4): the row of an `issueInvitation` must be an `InvitationIssue` and
|
|
7620
|
+
* must be present (the response budget never cuts it); a row of any other
|
|
7621
|
+
* operation must not be shaped like one. Messages carry no value, so a
|
|
7622
|
+
* refused secret does not reach an error text.
|
|
7623
|
+
*/
|
|
7624
|
+
export declare function wireRunResultFor(operations: readonly {
|
|
7625
|
+
action: string;
|
|
7626
|
+
}[]): z.ZodObject<{
|
|
7627
|
+
rows: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
7628
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
7629
|
+
object: z.ZodGUID;
|
|
7630
|
+
scopeKind: z.ZodOptional<z.ZodString>;
|
|
7631
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
7632
|
+
id: z.ZodString;
|
|
7633
|
+
version: z.ZodInt;
|
|
7634
|
+
operation: z.ZodEnum<{
|
|
7635
|
+
update: "update";
|
|
7636
|
+
create: "create";
|
|
7637
|
+
markDeletion: "markDeletion";
|
|
7638
|
+
delete: "delete";
|
|
7639
|
+
publish: "publish";
|
|
7640
|
+
unpublish: "unpublish";
|
|
7641
|
+
issueInvitation: "issueInvitation";
|
|
7328
7642
|
}>;
|
|
7329
7643
|
}, z.core.$strict>>;
|
|
7330
7644
|
epoch: z.ZodString;
|
|
@@ -7455,6 +7769,11 @@ export declare const wireReadPartsResultSchema: z.ZodObject<{
|
|
|
7455
7769
|
scope: z.ZodGUID;
|
|
7456
7770
|
member: z.ZodGUID;
|
|
7457
7771
|
}, z.core.$strict>>;
|
|
7772
|
+
heldContainers: z.ZodArray<z.ZodObject<{
|
|
7773
|
+
object: z.ZodString;
|
|
7774
|
+
container: z.ZodGUID;
|
|
7775
|
+
scope: z.ZodNullable<z.ZodGUID>;
|
|
7776
|
+
}, z.core.$strict>>;
|
|
7458
7777
|
dimensionValues: z.ZodArray<z.ZodObject<{
|
|
7459
7778
|
dimension: z.ZodGUID;
|
|
7460
7779
|
values: z.ZodArray<z.ZodGUID>;
|
|
@@ -7485,6 +7804,10 @@ export declare const wireReadPartsResultSchema: z.ZodObject<{
|
|
|
7485
7804
|
"command.busy": "command.busy";
|
|
7486
7805
|
"command.stale-client": "command.stale-client";
|
|
7487
7806
|
"command.internal": "command.internal";
|
|
7807
|
+
"invitation.invalid": "invitation.invalid";
|
|
7808
|
+
"invitation.already-member": "invitation.already-member";
|
|
7809
|
+
"invitation.rate-limited": "invitation.rate-limited";
|
|
7810
|
+
"invitation.not-pending": "invitation.not-pending";
|
|
7488
7811
|
}>;
|
|
7489
7812
|
reason: z.ZodOptional<z.ZodString>;
|
|
7490
7813
|
object: z.ZodOptional<z.ZodGUID>;
|
|
@@ -7495,6 +7818,7 @@ export declare const wireReadPartsResultSchema: z.ZodObject<{
|
|
|
7495
7818
|
delete: "delete";
|
|
7496
7819
|
publish: "publish";
|
|
7497
7820
|
unpublish: "unpublish";
|
|
7821
|
+
issueInvitation: "issueInvitation";
|
|
7498
7822
|
}>>;
|
|
7499
7823
|
path: z.ZodOptional<z.ZodString>;
|
|
7500
7824
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -7530,9 +7854,9 @@ export declare const dataRequestSchema: z.ZodObject<{
|
|
|
7530
7854
|
object: z.ZodGUID;
|
|
7531
7855
|
tabularSections: z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodGUID, z.ZodString]>, z.ZodPreprocess<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, unknown>>>;
|
|
7532
7856
|
}, z.core.$strict>, z.ZodObject<{
|
|
7533
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7534
7857
|
id: z.ZodGUID;
|
|
7535
7858
|
action: z.ZodLiteral<"update">;
|
|
7859
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7536
7860
|
expectedVersion: z.ZodInt;
|
|
7537
7861
|
expectedValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7538
7862
|
object: z.ZodGUID;
|
|
@@ -7558,6 +7882,10 @@ export declare const dataRequestSchema: z.ZodObject<{
|
|
|
7558
7882
|
id: z.ZodGUID;
|
|
7559
7883
|
expectedVersion: z.ZodInt;
|
|
7560
7884
|
object: z.ZodGUID;
|
|
7885
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7886
|
+
action: z.ZodLiteral<"issueInvitation">;
|
|
7887
|
+
id: z.ZodGUID;
|
|
7888
|
+
object: z.ZodGUID;
|
|
7561
7889
|
}, z.core.$strict>], "action">;
|
|
7562
7890
|
batch: z.ZodOptional<z.ZodNever>;
|
|
7563
7891
|
kernels: z.ZodOptional<z.ZodRecord<z.ZodGUID, z.ZodString>>;
|
|
@@ -7572,9 +7900,9 @@ export declare const dataRequestSchema: z.ZodObject<{
|
|
|
7572
7900
|
object: z.ZodGUID;
|
|
7573
7901
|
tabularSections: z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodGUID, z.ZodString]>, z.ZodPreprocess<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, unknown>>>;
|
|
7574
7902
|
}, z.core.$strict>, z.ZodObject<{
|
|
7575
|
-
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7576
7903
|
id: z.ZodGUID;
|
|
7577
7904
|
action: z.ZodLiteral<"update">;
|
|
7905
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7578
7906
|
expectedVersion: z.ZodInt;
|
|
7579
7907
|
expectedValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7580
7908
|
object: z.ZodGUID;
|
|
@@ -7600,6 +7928,10 @@ export declare const dataRequestSchema: z.ZodObject<{
|
|
|
7600
7928
|
id: z.ZodGUID;
|
|
7601
7929
|
expectedVersion: z.ZodInt;
|
|
7602
7930
|
object: z.ZodGUID;
|
|
7931
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7932
|
+
action: z.ZodLiteral<"issueInvitation">;
|
|
7933
|
+
id: z.ZodGUID;
|
|
7934
|
+
object: z.ZodGUID;
|
|
7603
7935
|
}, z.core.$strict>], "action">>, unknown>;
|
|
7604
7936
|
kernels: z.ZodOptional<z.ZodRecord<z.ZodGUID, z.ZodString>>;
|
|
7605
7937
|
}, z.core.$strict>]>]>;
|
|
@@ -7632,6 +7964,10 @@ export declare const dataResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
7632
7964
|
"command.busy": "command.busy";
|
|
7633
7965
|
"command.stale-client": "command.stale-client";
|
|
7634
7966
|
"command.internal": "command.internal";
|
|
7967
|
+
"invitation.invalid": "invitation.invalid";
|
|
7968
|
+
"invitation.already-member": "invitation.already-member";
|
|
7969
|
+
"invitation.rate-limited": "invitation.rate-limited";
|
|
7970
|
+
"invitation.not-pending": "invitation.not-pending";
|
|
7635
7971
|
}>;
|
|
7636
7972
|
reason: z.ZodOptional<z.ZodString>;
|
|
7637
7973
|
object: z.ZodOptional<z.ZodGUID>;
|
|
@@ -7642,6 +7978,7 @@ export declare const dataResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
7642
7978
|
delete: "delete";
|
|
7643
7979
|
publish: "publish";
|
|
7644
7980
|
unpublish: "unpublish";
|
|
7981
|
+
issueInvitation: "issueInvitation";
|
|
7645
7982
|
}>>;
|
|
7646
7983
|
path: z.ZodOptional<z.ZodString>;
|
|
7647
7984
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -8265,7 +8602,7 @@ export interface ObjectOrigin {
|
|
|
8265
8602
|
* місячні обороти або зв'язок ідентичностей довідника «Користувачі» в схемі
|
|
8266
8603
|
* платформи.
|
|
8267
8604
|
*/
|
|
8268
|
-
part?: "totals" | "turnoversMonth" | "identities" | "rightsVersions" | "rightsJournal" | "rightsTxHeader" | "rightsTxTyped" | "rightsTxContainers" | "rightsTxDeltas" | "rightsTxHolders" | "rightsTxStart" | "rightsTxScopes" | "rightsTxValues" | "rightsTxScopeSets" | "rightsTxPending" | "rightsTxRootMarker";
|
|
8605
|
+
part?: "totals" | "turnoversMonth" | "identities" | "rightsVersions" | "rightsJournal" | "rightsTxHeader" | "rightsTxTyped" | "rightsTxContainers" | "rightsTxDeltas" | "rightsTxHolders" | "rightsTxStart" | "rightsTxScopes" | "rightsTxValues" | "rightsTxScopeSets" | "rightsTxPending" | "rightsTxRootMarker" | "invitations" | "invitationJournal";
|
|
8269
8606
|
}
|
|
8270
8607
|
/**
|
|
8271
8608
|
* Таблиця платформи без об'єкта-власника (спека профілю `postgres` §5.1):
|
|
@@ -8620,7 +8957,7 @@ export interface DiffCatalogOptions {
|
|
|
8620
8957
|
/** Структурне порівняння двох моделей каталогу; результат упорядкований за `path`. */
|
|
8621
8958
|
export declare function diffCatalogModels(a: CatalogModel, b: CatalogModel, { columnOrder }: DiffCatalogOptions): CatalogDifference[];
|
|
8622
8959
|
/** The platform's standard action vocabulary. */
|
|
8623
|
-
export declare const STANDARD_ACTIONS: readonly ["read", "administerRights", "create", "update", "markDeletion", "delete", "post", "unpost", "write", "publish", "unpublish"];
|
|
8960
|
+
export declare const STANDARD_ACTIONS: readonly ["read", "administerRights", "create", "update", "markDeletion", "delete", "post", "unpost", "write", "publish", "unpublish", "acceptInvitation"];
|
|
8624
8961
|
/** A word of the platform's standard action vocabulary. */
|
|
8625
8962
|
type StandardAction = (typeof STANDARD_ACTIONS)[number];
|
|
8626
8963
|
/** A DML statement kind an action performs on the object's own table. */
|
|
@@ -8665,9 +9002,24 @@ interface KindAction {
|
|
|
8665
9002
|
column: string;
|
|
8666
9003
|
value: boolean;
|
|
8667
9004
|
};
|
|
9005
|
+
/**
|
|
9006
|
+
* A platform action: only a platform function performs it. No grant, set,
|
|
9007
|
+
* delta or `fullAccess` gives it. Its header is the user column of the
|
|
9008
|
+
* membership catalog, which the rights contract resolves; `effects.header`
|
|
9009
|
+
* stays empty.
|
|
9010
|
+
*/
|
|
9011
|
+
platform?: true;
|
|
8668
9012
|
}
|
|
8669
9013
|
/** The extent forms a kind can restrict an action to (rights contract). */
|
|
8670
9014
|
type RightsExtentForm = "any" | "own" | "dimension";
|
|
9015
|
+
/**
|
|
9016
|
+
* Accepting an invitation (invitations spec §5): the user column of a pending
|
|
9017
|
+
* member row becomes the current user. The compiler adds it to the membership
|
|
9018
|
+
* catalog of a scope kind with invitations.
|
|
9019
|
+
*/
|
|
9020
|
+
export declare const acceptInvitationAction: KindAction;
|
|
9021
|
+
/** Words of the platform actions: no grant may name them. */
|
|
9022
|
+
export declare const PLATFORM_ACTIONS: ReadonlySet<string>;
|
|
8671
9023
|
/**
|
|
8672
9024
|
* Direct requirements of an action plus the general edge: every action that
|
|
8673
9025
|
* writes something requires `read`.
|
|
@@ -8782,6 +9134,8 @@ type ReferenceRole = "attribute.ref" | "attribute.allowedType" |
|
|
|
8782
9134
|
"search.field" | "posting.movementsBlock" | "customTable.foreignKey" | "customTable.foreignKeyTarget" | "customTable.column" | "customTable.pgEnum" | "customTable.scopeColumn" | "object.scope" | "scopeKind.root" |
|
|
8783
9135
|
/** Вид скоупу в `project.storageBuckets[].scopeKind`. */
|
|
8784
9136
|
"storage.scopeKind" |
|
|
9137
|
+
/** Об'єкт чи роль у `project.selfSignUpAccepted` (прийняття самореєстрації). */
|
|
9138
|
+
"selfSignUp.accepted" |
|
|
8785
9139
|
/** Об'єкт-джерело підписки на подію. */
|
|
8786
9140
|
"eventSubscription.source" |
|
|
8787
9141
|
/** Реквізит джерела в `whenChanged` підписки. */
|