simetra 0.3.0-next.4 → 0.3.0-next.5
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 +20 -4
- package/dist/compiler/index.js +1268 -584
- package/dist/model/index.d.ts +35 -6
- package/dist/model/index.js +25 -2
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.js +1 -1
- package/package.json +2 -2
- package/schemas/project.schema.json +16 -0
- package/schemas/rights-sets.schema.json +2 -1
- package/schemas/roles.schema.json +4 -2
package/dist/model/index.d.ts
CHANGED
|
@@ -2520,6 +2520,7 @@ export declare const objectSelectorSchema: z.ZodUnion<readonly [z.ZodArray<z.Zod
|
|
|
2520
2520
|
write: "write";
|
|
2521
2521
|
publish: "publish";
|
|
2522
2522
|
unpublish: "unpublish";
|
|
2523
|
+
acceptInvitation: "acceptInvitation";
|
|
2523
2524
|
}>;
|
|
2524
2525
|
}, z.core.$strict>]>;
|
|
2525
2526
|
type ObjectSelector = z.infer<typeof objectSelectorSchema>;
|
|
@@ -2559,6 +2560,7 @@ export declare const setGrantEntrySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2559
2560
|
write: "write";
|
|
2560
2561
|
publish: "publish";
|
|
2561
2562
|
unpublish: "unpublish";
|
|
2563
|
+
acceptInvitation: "acceptInvitation";
|
|
2562
2564
|
}>;
|
|
2563
2565
|
}, z.core.$strict>]>;
|
|
2564
2566
|
actions: z.ZodArray<z.ZodString>;
|
|
@@ -2604,6 +2606,7 @@ export declare const grantEntrySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2604
2606
|
write: "write";
|
|
2605
2607
|
publish: "publish";
|
|
2606
2608
|
unpublish: "unpublish";
|
|
2609
|
+
acceptInvitation: "acceptInvitation";
|
|
2607
2610
|
}>;
|
|
2608
2611
|
}, z.core.$strict>]>;
|
|
2609
2612
|
actions: z.ZodArray<z.ZodString>;
|
|
@@ -2640,6 +2643,7 @@ export declare const grantEntrySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2640
2643
|
write: "write";
|
|
2641
2644
|
publish: "publish";
|
|
2642
2645
|
unpublish: "unpublish";
|
|
2646
|
+
acceptInvitation: "acceptInvitation";
|
|
2643
2647
|
}>;
|
|
2644
2648
|
}, z.core.$strict>]>;
|
|
2645
2649
|
actions: z.ZodArray<z.ZodString>;
|
|
@@ -2664,7 +2668,7 @@ export declare function grantEntryForm(entry: GrantEntry): {
|
|
|
2664
2668
|
kind: "Catalog" | "Document" | "Enumeration" | "InformationRegister" | "AccumulationRegister" | "Constant" | "CustomTable" | "PgEnum" | "EventSubscription" | "RightsSet" | "Role";
|
|
2665
2669
|
name: string;
|
|
2666
2670
|
}[] | {
|
|
2667
|
-
withAction: "update" | "read" | "create" | "markDeletion" | "delete" | "post" | "unpost" | "write" | "publish" | "unpublish";
|
|
2671
|
+
withAction: "update" | "read" | "create" | "markDeletion" | "delete" | "post" | "unpost" | "write" | "publish" | "unpublish" | "acceptInvitation";
|
|
2668
2672
|
};
|
|
2669
2673
|
actions: string[];
|
|
2670
2674
|
extent: "any" | "own" | {
|
|
@@ -2678,7 +2682,7 @@ export declare function grantEntryForm(entry: GrantEntry): {
|
|
|
2678
2682
|
kind: "Catalog" | "Document" | "Enumeration" | "InformationRegister" | "AccumulationRegister" | "Constant" | "CustomTable" | "PgEnum" | "EventSubscription" | "RightsSet" | "Role";
|
|
2679
2683
|
name: string;
|
|
2680
2684
|
}[] | {
|
|
2681
|
-
withAction: "update" | "read" | "create" | "markDeletion" | "delete" | "post" | "unpost" | "write" | "publish" | "unpublish";
|
|
2685
|
+
withAction: "update" | "read" | "create" | "markDeletion" | "delete" | "post" | "unpost" | "write" | "publish" | "unpublish" | "acceptInvitation";
|
|
2682
2686
|
};
|
|
2683
2687
|
actions: string[];
|
|
2684
2688
|
extent?: "any" | "own" | {
|
|
@@ -2743,6 +2747,7 @@ export declare const rightsSetSchema: z.ZodObject<{
|
|
|
2743
2747
|
write: "write";
|
|
2744
2748
|
publish: "publish";
|
|
2745
2749
|
unpublish: "unpublish";
|
|
2750
|
+
acceptInvitation: "acceptInvitation";
|
|
2746
2751
|
}>;
|
|
2747
2752
|
}, z.core.$strict>]>;
|
|
2748
2753
|
actions: z.ZodArray<z.ZodString>;
|
|
@@ -2847,6 +2852,7 @@ export declare const roleSchema: z.ZodObject<{
|
|
|
2847
2852
|
write: "write";
|
|
2848
2853
|
publish: "publish";
|
|
2849
2854
|
unpublish: "unpublish";
|
|
2855
|
+
acceptInvitation: "acceptInvitation";
|
|
2850
2856
|
}>;
|
|
2851
2857
|
}, z.core.$strict>]>;
|
|
2852
2858
|
actions: z.ZodArray<z.ZodString>;
|
|
@@ -2883,6 +2889,7 @@ export declare const roleSchema: z.ZodObject<{
|
|
|
2883
2889
|
write: "write";
|
|
2884
2890
|
publish: "publish";
|
|
2885
2891
|
unpublish: "unpublish";
|
|
2892
|
+
acceptInvitation: "acceptInvitation";
|
|
2886
2893
|
}>;
|
|
2887
2894
|
}, z.core.$strict>]>;
|
|
2888
2895
|
actions: z.ZodArray<z.ZodString>;
|
|
@@ -3635,6 +3642,9 @@ export declare const projectSchema: z.ZodObject<{
|
|
|
3635
3642
|
}, z.core.$strict>>;
|
|
3636
3643
|
timezone: z.ZodDefault<z.ZodString>;
|
|
3637
3644
|
selfSignUp: z.ZodOptional<z.ZodBoolean>;
|
|
3645
|
+
invitations: z.ZodOptional<z.ZodObject<{
|
|
3646
|
+
expiresInHours: z.ZodNumber;
|
|
3647
|
+
}, z.core.$strict>>;
|
|
3638
3648
|
selfSignUpAccepted: z.ZodOptional<z.ZodObject<{
|
|
3639
3649
|
objects: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3640
3650
|
object: z.ZodObject<{
|
|
@@ -3959,11 +3969,11 @@ export declare const pgEnumSchema: z.ZodObject<{
|
|
|
3959
3969
|
en: z.ZodOptional<z.ZodString>;
|
|
3960
3970
|
}, z.core.$strict>>;
|
|
3961
3971
|
id: z.ZodOptional<z.ZodUUID>;
|
|
3962
|
-
name: z.ZodString;
|
|
3963
3972
|
description: z.ZodOptional<z.ZodObject<{
|
|
3964
3973
|
uk: z.ZodOptional<z.ZodString>;
|
|
3965
3974
|
en: z.ZodOptional<z.ZodString>;
|
|
3966
3975
|
}, z.core.$strict>>;
|
|
3976
|
+
name: z.ZodString;
|
|
3967
3977
|
schema: z.ZodOptional<z.ZodString>;
|
|
3968
3978
|
$schema: z.ZodOptional<z.ZodString>;
|
|
3969
3979
|
physicalName: z.ZodOptional<z.ZodString>;
|
|
@@ -4019,11 +4029,11 @@ export declare const eventSubscriptionSchema: z.ZodObject<{
|
|
|
4019
4029
|
en: z.ZodOptional<z.ZodString>;
|
|
4020
4030
|
}, z.core.$strict>>;
|
|
4021
4031
|
id: z.ZodOptional<z.ZodUUID>;
|
|
4022
|
-
name: z.ZodString;
|
|
4023
4032
|
description: z.ZodOptional<z.ZodObject<{
|
|
4024
4033
|
uk: z.ZodOptional<z.ZodString>;
|
|
4025
4034
|
en: z.ZodOptional<z.ZodString>;
|
|
4026
4035
|
}, z.core.$strict>>;
|
|
4036
|
+
name: z.ZodString;
|
|
4027
4037
|
$schema: z.ZodOptional<z.ZodString>;
|
|
4028
4038
|
physicalName: z.ZodOptional<z.ZodString>;
|
|
4029
4039
|
}, z.core.$strict>;
|
|
@@ -4257,6 +4267,10 @@ export declare const COMMAND_CORE_ERRORS: {
|
|
|
4257
4267
|
readonly roleInUse: "role-in-use";
|
|
4258
4268
|
readonly lastFullAccess: "last-full-access";
|
|
4259
4269
|
};
|
|
4270
|
+
readonly invitationNotPending: {
|
|
4271
|
+
readonly errcode: "P0001";
|
|
4272
|
+
readonly message: "invitation.not-pending";
|
|
4273
|
+
};
|
|
4260
4274
|
readonly conflict: {
|
|
4261
4275
|
readonly errcode: "P0001";
|
|
4262
4276
|
readonly message: "command.conflict";
|
|
@@ -8417,7 +8431,7 @@ export interface ObjectOrigin {
|
|
|
8417
8431
|
* місячні обороти або зв'язок ідентичностей довідника «Користувачі» в схемі
|
|
8418
8432
|
* платформи.
|
|
8419
8433
|
*/
|
|
8420
|
-
part?: "totals" | "turnoversMonth" | "identities" | "rightsVersions" | "rightsJournal" | "rightsTxHeader" | "rightsTxTyped" | "rightsTxContainers" | "rightsTxDeltas" | "rightsTxHolders" | "rightsTxStart" | "rightsTxScopes" | "rightsTxValues" | "rightsTxScopeSets" | "rightsTxPending" | "rightsTxRootMarker";
|
|
8434
|
+
part?: "totals" | "turnoversMonth" | "identities" | "rightsVersions" | "rightsJournal" | "rightsTxHeader" | "rightsTxTyped" | "rightsTxContainers" | "rightsTxDeltas" | "rightsTxHolders" | "rightsTxStart" | "rightsTxScopes" | "rightsTxValues" | "rightsTxScopeSets" | "rightsTxPending" | "rightsTxRootMarker" | "invitations" | "invitationJournal";
|
|
8421
8435
|
}
|
|
8422
8436
|
/**
|
|
8423
8437
|
* Таблиця платформи без об'єкта-власника (спека профілю `postgres` §5.1):
|
|
@@ -8772,7 +8786,7 @@ export interface DiffCatalogOptions {
|
|
|
8772
8786
|
/** Структурне порівняння двох моделей каталогу; результат упорядкований за `path`. */
|
|
8773
8787
|
export declare function diffCatalogModels(a: CatalogModel, b: CatalogModel, { columnOrder }: DiffCatalogOptions): CatalogDifference[];
|
|
8774
8788
|
/** The platform's standard action vocabulary. */
|
|
8775
|
-
export declare const STANDARD_ACTIONS: readonly ["read", "administerRights", "create", "update", "markDeletion", "delete", "post", "unpost", "write", "publish", "unpublish"];
|
|
8789
|
+
export declare const STANDARD_ACTIONS: readonly ["read", "administerRights", "create", "update", "markDeletion", "delete", "post", "unpost", "write", "publish", "unpublish", "acceptInvitation"];
|
|
8776
8790
|
/** A word of the platform's standard action vocabulary. */
|
|
8777
8791
|
type StandardAction = (typeof STANDARD_ACTIONS)[number];
|
|
8778
8792
|
/** A DML statement kind an action performs on the object's own table. */
|
|
@@ -8817,9 +8831,24 @@ interface KindAction {
|
|
|
8817
8831
|
column: string;
|
|
8818
8832
|
value: boolean;
|
|
8819
8833
|
};
|
|
8834
|
+
/**
|
|
8835
|
+
* A platform action: only a platform function performs it. No grant, set,
|
|
8836
|
+
* delta or `fullAccess` gives it. Its header is the user column of the
|
|
8837
|
+
* membership catalog, which the rights contract resolves; `effects.header`
|
|
8838
|
+
* stays empty.
|
|
8839
|
+
*/
|
|
8840
|
+
platform?: true;
|
|
8820
8841
|
}
|
|
8821
8842
|
/** The extent forms a kind can restrict an action to (rights contract). */
|
|
8822
8843
|
type RightsExtentForm = "any" | "own" | "dimension";
|
|
8844
|
+
/**
|
|
8845
|
+
* Accepting an invitation (invitations spec §5): the user column of a pending
|
|
8846
|
+
* member row becomes the current user. The compiler adds it to the membership
|
|
8847
|
+
* catalog of a scope kind with invitations.
|
|
8848
|
+
*/
|
|
8849
|
+
export declare const acceptInvitationAction: KindAction;
|
|
8850
|
+
/** Words of the platform actions: no grant may name them. */
|
|
8851
|
+
export declare const PLATFORM_ACTIONS: ReadonlySet<string>;
|
|
8823
8852
|
/**
|
|
8824
8853
|
* Direct requirements of an action plus the general edge: every action that
|
|
8825
8854
|
* writes something requires `read`.
|
package/dist/model/index.js
CHANGED
|
@@ -939,7 +939,8 @@ const STANDARD_ACTIONS = [
|
|
|
939
939
|
"unpost",
|
|
940
940
|
"write",
|
|
941
941
|
"publish",
|
|
942
|
-
"unpublish"
|
|
942
|
+
"unpublish",
|
|
943
|
+
"acceptInvitation"
|
|
943
944
|
];
|
|
944
945
|
const readAction = {
|
|
945
946
|
name: "read",
|
|
@@ -1034,6 +1035,23 @@ const unpublishAction = {
|
|
|
1034
1035
|
to: false
|
|
1035
1036
|
}
|
|
1036
1037
|
};
|
|
1038
|
+
/**
|
|
1039
|
+
* Accepting an invitation (invitations spec §5): the user column of a pending
|
|
1040
|
+
* member row becomes the current user. The compiler adds it to the membership
|
|
1041
|
+
* catalog of a scope kind with invitations.
|
|
1042
|
+
*/
|
|
1043
|
+
const acceptInvitationAction = {
|
|
1044
|
+
name: "acceptInvitation",
|
|
1045
|
+
requires: [],
|
|
1046
|
+
effects: {
|
|
1047
|
+
dml: ["update"],
|
|
1048
|
+
header: [],
|
|
1049
|
+
tabularSections: false
|
|
1050
|
+
},
|
|
1051
|
+
platform: true
|
|
1052
|
+
};
|
|
1053
|
+
/** Words of the platform actions: no grant may name them. */
|
|
1054
|
+
const PLATFORM_ACTIONS = new Set([acceptInvitationAction].map((action) => action.name));
|
|
1037
1055
|
function createAction(tabularSections) {
|
|
1038
1056
|
return {
|
|
1039
1057
|
name: "create",
|
|
@@ -2833,6 +2851,7 @@ const projectSchema = z.strictObject({
|
|
|
2833
2851
|
*/
|
|
2834
2852
|
timezone: z.string().min(1).default("UTC").meta({ description: "IANA time zone in which the platform determines day, month, quarter and year." }),
|
|
2835
2853
|
selfSignUp: z.boolean().optional().meta({ description: "Whether users may register themselves; enables the self sign-up warning and host start check." }),
|
|
2854
|
+
invitations: z.strictObject({ expiresInHours: z.number().int().min(1).max(8760).meta({ description: "Hours an invitation secret stays valid after it is issued, 1 to 8760." }) }).optional().meta({ description: "Invitations to scope kinds with a membership catalog and system role assignments; absent — no invitations." }),
|
|
2836
2855
|
selfSignUpAccepted: z.strictObject({
|
|
2837
2856
|
objects: z.array(z.strictObject({
|
|
2838
2857
|
object: metadataRefSchema.meta({ description: "Object with publicRead authenticated accepted as open to anyone." }),
|
|
@@ -2908,6 +2927,10 @@ const COMMAND_CORE_ERRORS = {
|
|
|
2908
2927
|
roleInUse: "role-in-use",
|
|
2909
2928
|
lastFullAccess: "last-full-access"
|
|
2910
2929
|
},
|
|
2930
|
+
invitationNotPending: {
|
|
2931
|
+
errcode: "P0001",
|
|
2932
|
+
message: "invitation.not-pending"
|
|
2933
|
+
},
|
|
2911
2934
|
conflict: {
|
|
2912
2935
|
errcode: "P0001",
|
|
2913
2936
|
message: "command.conflict",
|
|
@@ -8745,4 +8768,4 @@ const ASSIGNED_ONCE = [
|
|
|
8745
8768
|
field: "primaryDataLanguage"
|
|
8746
8769
|
}
|
|
8747
8770
|
];
|
|
8748
|
-
export { APPLIED_SNAPSHOT_HASH_FUNCTION_NAME, ASSIGNED_ONCE, ATTRIBUTE_CASES, BATCH_MAX, CAST_TYPES, CENTRIFUGO_CHANNEL_MAX, COMMAND_CORE_ERRORS, COMMAND_ERROR_CODES, COMMAND_SETTING, CURRENT_USER_FUNCTION_NAME, CommandFailure, DATABASE_PROVIDERS, DEFAULT_MAIN_PRESENTATION, DEFAULT_SEARCH_MODE, DELETE_EVENTS, ELEMENT_ID_SEPARATOR, FILTER_DEPTH_MAX, FILTER_IN_MAX, FILTER_NODES_MAX, FILTER_OPERATORS, FUNCTIONS_FILE_SUFFIX, HEAD_READABLE_SETTINGS, HIERARCHY_ISOLATION_ERROR, INCLUDE_MAX, INTEGER_TEXT, JSONB_PAIRS_PER_CALL, KIND_REGISTRY, KNOWN_MARKER, LIMIT_REASONS, LOGICAL_TYPES, LOGIN_ROLE_PARENTS, LOGIN_ROLE_REQUEST_PURPOSES, LOGIN_ROLE_SETTINGS, MAX_PHYSICAL_NAME_BYTES, MEMBERSHIP_SET_FUNCTION, METADATA_KINDS, NO_SCOPE, OBJECT_MODULE_KEYS, OBJECT_OPERATIONS, OPERATION_EVENTS, ORDER_BY_MAX, PAYLOAD_MAX_BYTES, PINNED_SESSION_SETTINGS, PLATFORM_LOGIN_ROLES, PLATFORM_ROLES, PLATFORM_ROLES_NOT_PURPOSES, PLATFORM_SCHEMA, PLATFORM_SETTING_PREFIX, PLATFORM_STATE_TABLES, PRIVILEGED_LOGIN_REASONS, PROJECT_KEY_ORDER, PROTECTED_SESSION_SETTINGS, PROVIDER_API_ROLES, PROVIDER_EVENT_SOURCES, PROVIDER_EXPRESSION_FUNCTIONS, PROVIDER_FUNCTIONS, PROVIDER_IDENTITY_SOURCES, PROVIDER_LOGIN_ROLES, PROVIDER_OWNER_ROLES, PROVIDER_SCHEMAS, PUBLIC_READ_PURPOSES, PUBLIC_READ_ROLES, READ_BATCH_MAX, READ_BATCH_STATEMENTS_MAX, READ_COUNT_CAP, READ_LIMIT_MAX, READ_OFFSET_MAX, RESPONSE_BUDGET_BYTES, RICH_TEXT_MAX_DEPTH, RICH_TEXT_PROFILE, RICH_TEXT_WHITESPACE, RIGHTS_CLIENT_SNAPSHOT_FUNCTION_NAME, RIGHTS_COLUMNS, RIGHTS_DELTA_SECTION, RIGHTS_DIMENSION_VALUES_MAX, RIGHTS_MAINTENANCE_SETTING, RIGHTS_REQUIRE_ERROR, ROW_VERSION_EPOCH_FUNCTION_NAME, SCHEMA_RULES, SEARCH_MODES, SEARCH_PREFIX_CHARS, SESSION_CLAIMS_SETTING, SIGNAL_INVALIDATE_FUNCTION_NAME, SIGNAL_MERGE_MODE, SIGNAL_MERGE_THRESHOLD, SIGNAL_MODE_SETTING, SIGNAL_NOTIFY_CHANNEL, SIGNAL_OUTBOX, SIGNAL_PAYLOAD_MAX_BYTES, SIGNAL_TOPIC_ALLOWED_FUNCTION_NAME, SQL_DEBT_FILE, SQL_FUNCTION_CALLERS, SQL_UNIT_CLASSES, STANDARD_ACTIONS, STORAGE_ERRORS, STORAGE_FUNCTIONS, STORAGE_MAX_BYTES, STORAGE_REASONS, STORAGE_TABLES, STRUCTURAL_PATH_WORDS, SUBSCRIPTION_EVENTS, TABULAR_LINES_MAX, TOPIC_UUID_PATTERN, USER_PLATFORM_COLUMNS, UUID_TEXT, VALUE_REASONS, WireDecodeError, WireEncodeError, ZERO_UUID, accessDimensionSchema, accessMappingSchema, accessSchema, accumulationRegisterSchema, actionRequires, appSchemaNameSchema, assignPhysicalName, assignedOnSchema, assignmentSourceSchema, attributeSchema, authorColumns, batchSchema, castTypeSchema, catalogAdoptedFactsSchema, catalogAttributeSchema, catalogEntryAttributeSchema, catalogEntrySchema, catalogEntrySectionSchema, catalogFromSnapshot, catalogIndex, catalogRightsCarrierSchema, catalogRightsExtentSchema, catalogRightsSchema, catalogRightsSetSchema, catalogRightsSubjectSchema, catalogRoleLevelSchema, catalogRoleSchema, catalogSchema, changeSignalSchema, changesFromWire, changesToWire, channelTopic, checkRichText, chooseConstraintName, clientCatalogSchema, clipBytes, closeRequires, compositeIndexesSchema, constantSchema, customActionSchema, customActionsSchema, customTableColumnSchema, customTableSchema, dataRequestSchema, dataResponseSchema, decodeRow, decodeValues, defaultMayRepeat, defaultViolatesValueChecks, defineObjectModule, deletionMarkColumn, diffCatalogModels, documentSchema, effectiveMaxBytes, effectiveSearch, elementIdSchema, elementNameSchema, encodeAttributeValue, encodeAttributes, encodeItemValue, encodePair, encodeRow, enumValueSchema, enumerationSchema, errorFromWire, errorToWire, eventSubscriptionSchema, expectsKindLabel, extentSchema, fileObjectKey, filePlatformColumns, filterSchema, filterWithinLimits, formatMetaFile, formatProjectFile, formatSqlDebtFile, formatSqlFunctionsFile, grantEntryForm, grantEntrySchema, includeSchema, informationRegisterSchema, invalidateSignalSchema, isDate, isDateTime, isFileObjectKey, isFileObjectPrefix, isObjectOrigin, isObjectTable, isPlainObject, isRecordKeyAt, isRichTextEmpty, isScalarDefault, isSqlReservedWord, isTextEncodedType, isUuidColumn, isWithinType, jsonBytes, jsonbBuildObject, kernelHashSchema, keyColumn, keysetFilter, keysetNodesMax, kindByDir, knownFormAllowed, knownSchema, lengthLimited, lineNumberColumn, localizedStringSchema, logicalElementName, logicalObjectName, logicalTypeOf, loginRoleParentNames, makeObjectName, matchesAttributeCase, membershipSourceSchema, metadataIdSchema, metadataKindSchema, metadataRefSchema, monthColumn, namedCollections, normalDateTime, objectColumns, objectHeaderShape, objectNameSchema, objectSelectorSchema, objectTable, operationFromWire, operationSchema, operationToWire, orderBySchema, ownershipSchema, parseExpression, parsePublicRead, parseStandardElementId, parseTopic, pathFromWire, pathToWire, pgEnumSchema, pgEnumTypeName, pgTypeOf, physicalNameSchema, postsMovements, predefinedNameColumn, projectSchema, publicReadConditionalSchema, publicReadSchema, publicationCarriers, publishedColumn, qualifiedNameSchema, queryFormSchema, quoteIdent, readPartFromWire, readPartToWire, readQueryFromWire, readQuerySchema, readQueryToWire, readResultFromWire, readResultToWire, receivedChangeSchema, receivedInvalidateSchema, receivedRightsSchema, refineValueType, resourceSchema, richTextDepthOk, rightsCarrierSchema, rightsDimensionValuesSchema, rightsMemberSchema, rightsRowSchema, rightsSetSchema, rightsSignalSchema, rightsSnapshotSchema, rightsValueSchema, rightsVersionSchema, roleAssignedOnSchema, roleSchema, rowWithoutSearch, runtimeAttributeSchema, runtimeCatalogSchema, runtimeConstraintSchema, runtimeObjectSchema, runtimeOperationTargetSchema, runtimeRootCreateSchema, runtimeSectionSchema, scopeKindSchema, searchColumnName, searchNormalization, searchPrefixNormalization, searchSchema, serviceDateColumns, sessionClaimsSchema, setGrantEntrySchema, singleUuidKeyColumn, singletonColumn, sourceConditionSchema, splitKnownMarker, sqlDebtSchema, sqlFunctionDeclarationSchema, sqlFunctionsFileSchema, standardAttributeOverridesSchema, standardElementId, standardLogicalName, storageSchema, tabularParentColumn, tabularSectionSchema, toSnakeCase, truncatedPeriodExpression, updateOperationObjectSchema, userPlatformColumns, valueTypeShape, versionColumn, versionEpochSchema, versionValueSchema, walkExpr, wireChangeSchema, wireCommandErrorSchema, wireOperationSchema, wireReadPartSchema, wireReadPartsResultSchema, wireReadQuerySchema, wireReadResultSchema, wireRunResultSchema };
|
|
8771
|
+
export { APPLIED_SNAPSHOT_HASH_FUNCTION_NAME, ASSIGNED_ONCE, ATTRIBUTE_CASES, BATCH_MAX, CAST_TYPES, CENTRIFUGO_CHANNEL_MAX, COMMAND_CORE_ERRORS, COMMAND_ERROR_CODES, COMMAND_SETTING, CURRENT_USER_FUNCTION_NAME, CommandFailure, DATABASE_PROVIDERS, DEFAULT_MAIN_PRESENTATION, DEFAULT_SEARCH_MODE, DELETE_EVENTS, ELEMENT_ID_SEPARATOR, FILTER_DEPTH_MAX, FILTER_IN_MAX, FILTER_NODES_MAX, FILTER_OPERATORS, FUNCTIONS_FILE_SUFFIX, HEAD_READABLE_SETTINGS, HIERARCHY_ISOLATION_ERROR, INCLUDE_MAX, INTEGER_TEXT, JSONB_PAIRS_PER_CALL, KIND_REGISTRY, KNOWN_MARKER, LIMIT_REASONS, LOGICAL_TYPES, LOGIN_ROLE_PARENTS, LOGIN_ROLE_REQUEST_PURPOSES, LOGIN_ROLE_SETTINGS, MAX_PHYSICAL_NAME_BYTES, MEMBERSHIP_SET_FUNCTION, METADATA_KINDS, NO_SCOPE, OBJECT_MODULE_KEYS, OBJECT_OPERATIONS, OPERATION_EVENTS, ORDER_BY_MAX, PAYLOAD_MAX_BYTES, PINNED_SESSION_SETTINGS, PLATFORM_ACTIONS, PLATFORM_LOGIN_ROLES, PLATFORM_ROLES, PLATFORM_ROLES_NOT_PURPOSES, PLATFORM_SCHEMA, PLATFORM_SETTING_PREFIX, PLATFORM_STATE_TABLES, PRIVILEGED_LOGIN_REASONS, PROJECT_KEY_ORDER, PROTECTED_SESSION_SETTINGS, PROVIDER_API_ROLES, PROVIDER_EVENT_SOURCES, PROVIDER_EXPRESSION_FUNCTIONS, PROVIDER_FUNCTIONS, PROVIDER_IDENTITY_SOURCES, PROVIDER_LOGIN_ROLES, PROVIDER_OWNER_ROLES, PROVIDER_SCHEMAS, PUBLIC_READ_PURPOSES, PUBLIC_READ_ROLES, READ_BATCH_MAX, READ_BATCH_STATEMENTS_MAX, READ_COUNT_CAP, READ_LIMIT_MAX, READ_OFFSET_MAX, RESPONSE_BUDGET_BYTES, RICH_TEXT_MAX_DEPTH, RICH_TEXT_PROFILE, RICH_TEXT_WHITESPACE, RIGHTS_CLIENT_SNAPSHOT_FUNCTION_NAME, RIGHTS_COLUMNS, RIGHTS_DELTA_SECTION, RIGHTS_DIMENSION_VALUES_MAX, RIGHTS_MAINTENANCE_SETTING, RIGHTS_REQUIRE_ERROR, ROW_VERSION_EPOCH_FUNCTION_NAME, SCHEMA_RULES, SEARCH_MODES, SEARCH_PREFIX_CHARS, SESSION_CLAIMS_SETTING, SIGNAL_INVALIDATE_FUNCTION_NAME, SIGNAL_MERGE_MODE, SIGNAL_MERGE_THRESHOLD, SIGNAL_MODE_SETTING, SIGNAL_NOTIFY_CHANNEL, SIGNAL_OUTBOX, SIGNAL_PAYLOAD_MAX_BYTES, SIGNAL_TOPIC_ALLOWED_FUNCTION_NAME, SQL_DEBT_FILE, SQL_FUNCTION_CALLERS, SQL_UNIT_CLASSES, STANDARD_ACTIONS, STORAGE_ERRORS, STORAGE_FUNCTIONS, STORAGE_MAX_BYTES, STORAGE_REASONS, STORAGE_TABLES, STRUCTURAL_PATH_WORDS, SUBSCRIPTION_EVENTS, TABULAR_LINES_MAX, TOPIC_UUID_PATTERN, USER_PLATFORM_COLUMNS, UUID_TEXT, VALUE_REASONS, WireDecodeError, WireEncodeError, ZERO_UUID, acceptInvitationAction, accessDimensionSchema, accessMappingSchema, accessSchema, accumulationRegisterSchema, actionRequires, appSchemaNameSchema, assignPhysicalName, assignedOnSchema, assignmentSourceSchema, attributeSchema, authorColumns, batchSchema, castTypeSchema, catalogAdoptedFactsSchema, catalogAttributeSchema, catalogEntryAttributeSchema, catalogEntrySchema, catalogEntrySectionSchema, catalogFromSnapshot, catalogIndex, catalogRightsCarrierSchema, catalogRightsExtentSchema, catalogRightsSchema, catalogRightsSetSchema, catalogRightsSubjectSchema, catalogRoleLevelSchema, catalogRoleSchema, catalogSchema, changeSignalSchema, changesFromWire, changesToWire, channelTopic, checkRichText, chooseConstraintName, clientCatalogSchema, clipBytes, closeRequires, compositeIndexesSchema, constantSchema, customActionSchema, customActionsSchema, customTableColumnSchema, customTableSchema, dataRequestSchema, dataResponseSchema, decodeRow, decodeValues, defaultMayRepeat, defaultViolatesValueChecks, defineObjectModule, deletionMarkColumn, diffCatalogModels, documentSchema, effectiveMaxBytes, effectiveSearch, elementIdSchema, elementNameSchema, encodeAttributeValue, encodeAttributes, encodeItemValue, encodePair, encodeRow, enumValueSchema, enumerationSchema, errorFromWire, errorToWire, eventSubscriptionSchema, expectsKindLabel, extentSchema, fileObjectKey, filePlatformColumns, filterSchema, filterWithinLimits, formatMetaFile, formatProjectFile, formatSqlDebtFile, formatSqlFunctionsFile, grantEntryForm, grantEntrySchema, includeSchema, informationRegisterSchema, invalidateSignalSchema, isDate, isDateTime, isFileObjectKey, isFileObjectPrefix, isObjectOrigin, isObjectTable, isPlainObject, isRecordKeyAt, isRichTextEmpty, isScalarDefault, isSqlReservedWord, isTextEncodedType, isUuidColumn, isWithinType, jsonBytes, jsonbBuildObject, kernelHashSchema, keyColumn, keysetFilter, keysetNodesMax, kindByDir, knownFormAllowed, knownSchema, lengthLimited, lineNumberColumn, localizedStringSchema, logicalElementName, logicalObjectName, logicalTypeOf, loginRoleParentNames, makeObjectName, matchesAttributeCase, membershipSourceSchema, metadataIdSchema, metadataKindSchema, metadataRefSchema, monthColumn, namedCollections, normalDateTime, objectColumns, objectHeaderShape, objectNameSchema, objectSelectorSchema, objectTable, operationFromWire, operationSchema, operationToWire, orderBySchema, ownershipSchema, parseExpression, parsePublicRead, parseStandardElementId, parseTopic, pathFromWire, pathToWire, pgEnumSchema, pgEnumTypeName, pgTypeOf, physicalNameSchema, postsMovements, predefinedNameColumn, projectSchema, publicReadConditionalSchema, publicReadSchema, publicationCarriers, publishedColumn, qualifiedNameSchema, queryFormSchema, quoteIdent, readPartFromWire, readPartToWire, readQueryFromWire, readQuerySchema, readQueryToWire, readResultFromWire, readResultToWire, receivedChangeSchema, receivedInvalidateSchema, receivedRightsSchema, refineValueType, resourceSchema, richTextDepthOk, rightsCarrierSchema, rightsDimensionValuesSchema, rightsMemberSchema, rightsRowSchema, rightsSetSchema, rightsSignalSchema, rightsSnapshotSchema, rightsValueSchema, rightsVersionSchema, roleAssignedOnSchema, roleSchema, rowWithoutSearch, runtimeAttributeSchema, runtimeCatalogSchema, runtimeConstraintSchema, runtimeObjectSchema, runtimeOperationTargetSchema, runtimeRootCreateSchema, runtimeSectionSchema, scopeKindSchema, searchColumnName, searchNormalization, searchPrefixNormalization, searchSchema, serviceDateColumns, sessionClaimsSchema, setGrantEntrySchema, singleUuidKeyColumn, singletonColumn, sourceConditionSchema, splitKnownMarker, sqlDebtSchema, sqlFunctionDeclarationSchema, sqlFunctionsFileSchema, standardAttributeOverridesSchema, standardElementId, standardLogicalName, storageSchema, tabularParentColumn, tabularSectionSchema, toSnakeCase, truncatedPeriodExpression, updateOperationObjectSchema, userPlatformColumns, valueTypeShape, versionColumn, versionEpochSchema, versionValueSchema, walkExpr, wireChangeSchema, wireCommandErrorSchema, wireOperationSchema, wireReadPartSchema, wireReadPartsResultSchema, wireReadQuerySchema, wireReadResultSchema, wireRunResultSchema };
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1021,7 +1021,7 @@ export declare function checkOwnerAttributes(tx: ApplyTransaction, provider: Dat
|
|
|
1021
1021
|
* тримає тест, а не читання маніфесту під час виконання: ярус не звертається
|
|
1022
1022
|
* до файлової системи.
|
|
1023
1023
|
*/
|
|
1024
|
-
export declare const PLATFORM_VERSION = "0.3.0-next.
|
|
1024
|
+
export declare const PLATFORM_VERSION = "0.3.0-next.5";
|
|
1025
1025
|
/**
|
|
1026
1026
|
* Структурний ключ таблиці для множин і мап: ім'я з крапкою не злипається зі
|
|
1027
1027
|
* схемою, як злиплося б у `schema.name`. Складені ключі підоб'єктів — так
|
package/dist/schema/index.js
CHANGED
|
@@ -3893,7 +3893,7 @@ async function readSessionSearchPath(tx) {
|
|
|
3893
3893
|
* тримає тест, а не читання маніфесту під час виконання: ярус не звертається
|
|
3894
3894
|
* до файлової системи.
|
|
3895
3895
|
*/
|
|
3896
|
-
const PLATFORM_VERSION = "0.3.0-next.
|
|
3896
|
+
const PLATFORM_VERSION = "0.3.0-next.5";
|
|
3897
3897
|
// src/schema/apply/state.ts
|
|
3898
3898
|
/**
|
|
3899
3899
|
* Форма стану застосування (платформна спека §6.1). Читач приймає лише її:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "simetra",
|
|
3
|
-
"version": "0.3.0-next.
|
|
3
|
+
"version": "0.3.0-next.5",
|
|
4
4
|
"description": "Metadata-driven platform for business applications on Postgres: metamodel, compiler and schema engine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"metadata",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"publishConfig": {
|
|
136
136
|
"access": "public"
|
|
137
137
|
},
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "9da9764e9560e9eed81032929617a4faf3dce72f",
|
|
139
139
|
"scripts": {
|
|
140
140
|
"build": "tsc --noEmit",
|
|
141
141
|
"build:package": "tsdown",
|
|
@@ -91,6 +91,22 @@
|
|
|
91
91
|
"description": "Whether users may register themselves; enables the self sign-up warning and host start check.",
|
|
92
92
|
"type": "boolean"
|
|
93
93
|
},
|
|
94
|
+
"invitations": {
|
|
95
|
+
"description": "Invitations to scope kinds with a membership catalog and system role assignments; absent — no invitations.",
|
|
96
|
+
"type": "object",
|
|
97
|
+
"properties": {
|
|
98
|
+
"expiresInHours": {
|
|
99
|
+
"type": "integer",
|
|
100
|
+
"minimum": 1,
|
|
101
|
+
"maximum": 8760,
|
|
102
|
+
"description": "Hours an invitation secret stays valid after it is issued, 1 to 8760."
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"required": [
|
|
106
|
+
"expiresInHours"
|
|
107
|
+
],
|
|
108
|
+
"additionalProperties": false
|
|
109
|
+
},
|
|
94
110
|
"selfSignUpAccepted": {
|
|
95
111
|
"description": "What the self sign-up warning no longer reports: it names only objects and grants open to anyone that are not listed here.",
|
|
96
112
|
"type": "object",
|
|
@@ -314,7 +314,8 @@
|
|
|
314
314
|
"unpost",
|
|
315
315
|
"write",
|
|
316
316
|
"publish",
|
|
317
|
-
"unpublish"
|
|
317
|
+
"unpublish",
|
|
318
|
+
"acceptInvitation"
|
|
318
319
|
],
|
|
319
320
|
"description": "Standard action word; selects every object of the role level that has it."
|
|
320
321
|
}
|
|
@@ -439,7 +440,8 @@
|
|
|
439
440
|
"unpost",
|
|
440
441
|
"write",
|
|
441
442
|
"publish",
|
|
442
|
-
"unpublish"
|
|
443
|
+
"unpublish",
|
|
444
|
+
"acceptInvitation"
|
|
443
445
|
],
|
|
444
446
|
"description": "Standard action word; selects every object of the role level that has it."
|
|
445
447
|
}
|