simetra 0.3.0-next.1 → 0.3.0-next.10
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 +52 -12
- package/dist/compiler/index.js +2578 -939
- package/dist/data/index.js +495 -159
- package/dist/model/index.d.ts +366 -12
- 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 +25 -2
- 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
|
@@ -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;
|
|
@@ -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>;
|
|
@@ -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>;
|
|
@@ -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;
|
|
@@ -3892,11 +3975,11 @@ export declare const pgEnumSchema: z.ZodObject<{
|
|
|
3892
3975
|
en: z.ZodOptional<z.ZodString>;
|
|
3893
3976
|
}, z.core.$strict>>;
|
|
3894
3977
|
id: z.ZodOptional<z.ZodUUID>;
|
|
3895
|
-
name: z.ZodString;
|
|
3896
3978
|
description: z.ZodOptional<z.ZodObject<{
|
|
3897
3979
|
uk: z.ZodOptional<z.ZodString>;
|
|
3898
3980
|
en: z.ZodOptional<z.ZodString>;
|
|
3899
3981
|
}, z.core.$strict>>;
|
|
3982
|
+
name: z.ZodString;
|
|
3900
3983
|
schema: z.ZodOptional<z.ZodString>;
|
|
3901
3984
|
$schema: z.ZodOptional<z.ZodString>;
|
|
3902
3985
|
physicalName: z.ZodOptional<z.ZodString>;
|
|
@@ -3952,11 +4035,11 @@ export declare const eventSubscriptionSchema: z.ZodObject<{
|
|
|
3952
4035
|
en: z.ZodOptional<z.ZodString>;
|
|
3953
4036
|
}, z.core.$strict>>;
|
|
3954
4037
|
id: z.ZodOptional<z.ZodUUID>;
|
|
3955
|
-
name: z.ZodString;
|
|
3956
4038
|
description: z.ZodOptional<z.ZodObject<{
|
|
3957
4039
|
uk: z.ZodOptional<z.ZodString>;
|
|
3958
4040
|
en: z.ZodOptional<z.ZodString>;
|
|
3959
4041
|
}, z.core.$strict>>;
|
|
4042
|
+
name: z.ZodString;
|
|
3960
4043
|
$schema: z.ZodOptional<z.ZodString>;
|
|
3961
4044
|
physicalName: z.ZodOptional<z.ZodString>;
|
|
3962
4045
|
}, z.core.$strict>;
|
|
@@ -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];
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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>;
|
|
@@ -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>>;
|
|
@@ -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` підписки. */
|