simetra 0.3.0-next.4 → 0.3.0-next.6

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.
@@ -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>;
@@ -3616,8 +3623,8 @@ export declare const projectSchema: z.ZodObject<{
3616
3623
  en: z.ZodOptional<z.ZodString>;
3617
3624
  }, z.core.$strict>>;
3618
3625
  defaultLocale: z.ZodDefault<z.ZodEnum<{
3619
- uk: "uk";
3620
3626
  en: "en";
3627
+ uk: "uk";
3621
3628
  }>>;
3622
3629
  primaryDataLanguage: z.ZodOptional<z.ZodString>;
3623
3630
  defaultSchema: z.ZodDefault<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<{
@@ -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`.
@@ -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 };
@@ -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.4";
1024
+ export declare const PLATFORM_VERSION = "0.3.0-next.6";
1025
1025
  /**
1026
1026
  * Структурний ключ таблиці для множин і мап: ім'я з крапкою не злипається зі
1027
1027
  * схемою, як злиплося б у `schema.name`. Складені ключі підоб'єктів — так
@@ -3893,7 +3893,7 @@ async function readSessionSearchPath(tx) {
3893
3893
  * тримає тест, а не читання маніфесту під час виконання: ярус не звертається
3894
3894
  * до файлової системи.
3895
3895
  */
3896
- const PLATFORM_VERSION = "0.3.0-next.4";
3896
+ const PLATFORM_VERSION = "0.3.0-next.6";
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.4",
3
+ "version": "0.3.0-next.6",
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": "ff6b3e68ad97ec97f9c9f6948bc678485a4142be",
138
+ "gitHead": "f4b281b5a9cce3b0a52185a0dd435f0717e273c8",
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",
@@ -187,7 +187,8 @@
187
187
  "unpost",
188
188
  "write",
189
189
  "publish",
190
- "unpublish"
190
+ "unpublish",
191
+ "acceptInvitation"
191
192
  ],
192
193
  "description": "Standard action word; selects every object of the role level that has it."
193
194
  }
@@ -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
  }