simetra 0.3.0-next.8 → 0.3.0-next.9

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.
@@ -2630,8 +2630,8 @@ export declare const promoteInput: z.ZodObject<{
2630
2630
  to: z.ZodLiteral<"attribute">;
2631
2631
  collection: z.ZodDefault<z.ZodEnum<{
2632
2632
  attributes: "attributes";
2633
- resources: "resources";
2634
2633
  dimensions: "dimensions";
2634
+ resources: "resources";
2635
2635
  }>>;
2636
2636
  element: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2637
2637
  }, z.core.$strict>, z.ZodObject<{
@@ -2650,8 +2650,8 @@ export declare const promoteInput: z.ZodObject<{
2650
2650
  to: z.ZodLiteral<"attribute">;
2651
2651
  collection: z.ZodDefault<z.ZodEnum<{
2652
2652
  attributes: "attributes";
2653
- resources: "resources";
2654
2653
  dimensions: "dimensions";
2654
+ resources: "resources";
2655
2655
  }>>;
2656
2656
  element: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2657
2657
  }, z.core.$strict>, z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { ASSIGNED_ONCE, CAST_TYPES, COMMAND_CORE_ERRORS, COMMAND_SETTING, CURRENT_USER_FUNCTION_NAME, DATABASE_PROVIDERS, DEFAULT_MAIN_PRESENTATION, DELETE_EVENTS, FUNCTIONS_FILE_SUFFIX, HEAD_READABLE_SETTINGS, HIERARCHY_ISOLATION_ERROR, KIND_REGISTRY, MAX_PHYSICAL_NAME_BYTES, MEMBERSHIP_SET_FUNCTION, METADATA_KINDS, NO_SCOPE, PINNED_SESSION_SETTINGS, PLATFORM_ACTIONS, PLATFORM_ROLES, PLATFORM_ROLES_NOT_PURPOSES, PLATFORM_SCHEMA, PLATFORM_SETTING_PREFIX, PLATFORM_STATE_TABLES, 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, RESPONSE_BUDGET_BYTES, 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, SCHEMA_RULES, SESSION_CLAIMS_SETTING, SIGNAL_INVALIDATE_FUNCTION_NAME, SIGNAL_MERGE_MODE, SIGNAL_MODE_SETTING, SIGNAL_NOTIFY_CHANNEL, SIGNAL_OUTBOX, SIGNAL_PAYLOAD_MAX_BYTES, SIGNAL_TOPIC_ALLOWED_FUNCTION_NAME, SQL_DEBT_FILE, SQL_UNIT_CLASSES, STANDARD_ACTIONS, STORAGE_ERRORS, STORAGE_FUNCTIONS, STORAGE_TABLES, STRUCTURAL_PATH_WORDS, TOPIC_UUID_PATTERN, USER_PLATFORM_COLUMNS, UUID_TEXT, ZERO_UUID, acceptInvitationAction, actionRequires, assignPhysicalName, authorColumns, catalogFromSnapshot, chooseConstraintName, clipBytes, closeRequires, defaultMayRepeat, defaultViolatesValueChecks, deletionMarkColumn, diffCatalogModels, effectiveMaxBytes, effectiveSearch, elementNameSchema, expectsKindLabel, filePlatformColumns, formatMetaFile, formatProjectFile, formatSqlDebtFile, formatSqlFunctionsFile, grantEntryForm, isObjectOrigin, isObjectTable, isRecordKeyAt, isScalarDefault, isSqlReservedWord, isTextEncodedType, isUuidColumn, jsonBytes, jsonbBuildObject, keyColumn, kindByDir, lineNumberColumn, logicalElementName, makeObjectName, matchesAttributeCase, metadataKindSchema, monthColumn, namedCollections, objectNameSchema, objectTable, parseExpression, parsePublicRead, parseStandardElementId, pgEnumTypeName, pgTypeOf, postsMovements, predefinedNameColumn, projectSchema, publicationCarriers, publishedColumn, quoteIdent, rowWithoutSearch, searchColumnName, searchPrefixNormalization, serviceDateColumns, singleUuidKeyColumn, singletonColumn, sqlDebtSchema, sqlFunctionDeclarationSchema, sqlFunctionsFileSchema, standardElementId, standardLogicalName, tabularParentColumn, toSnakeCase, truncatedPeriodExpression, userPlatformColumns, versionColumn, walkExpr } from "simetra/model";
2
+ import { ASSIGNED_ONCE, CAST_TYPES, COMMAND_CORE_ERRORS, COMMAND_SETTING, CURRENT_USER_FUNCTION_NAME, DATABASE_PROVIDERS, DEFAULT_MAIN_PRESENTATION, DELETE_EVENTS, FUNCTIONS_FILE_SUFFIX, HEAD_READABLE_SETTINGS, HIERARCHY_ISOLATION_ERROR, INVITATION_ACCEPT_FUNCTION_NAME, KIND_REGISTRY, MAX_PHYSICAL_NAME_BYTES, MEMBERSHIP_SET_FUNCTION, METADATA_KINDS, NO_SCOPE, PINNED_SESSION_SETTINGS, PLATFORM_ACTIONS, PLATFORM_ROLES, PLATFORM_ROLES_NOT_PURPOSES, PLATFORM_SCHEMA, PLATFORM_SETTING_PREFIX, PLATFORM_STATE_TABLES, 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, RESPONSE_BUDGET_BYTES, RICH_TEXT_PROFILE, RICH_TEXT_WHITESPACE, RIGHTS_CLIENT_SNAPSHOT_FUNCTION_NAME, RIGHTS_COLUMNS, RIGHTS_DELTA_SECTION, RIGHTS_DIMENSION_VALUES_MAX, RIGHTS_MAINTENANCE_SETTING, RIGHTS_MY_SCOPES_FUNCTION_NAME, RIGHTS_REQUIRE_ERROR, SCHEMA_RULES, SESSION_CLAIMS_SETTING, SIGNAL_INVALIDATE_FUNCTION_NAME, SIGNAL_MERGE_MODE, SIGNAL_MODE_SETTING, SIGNAL_NOTIFY_CHANNEL, SIGNAL_OUTBOX, SIGNAL_PAYLOAD_MAX_BYTES, SIGNAL_TOPIC_ALLOWED_FUNCTION_NAME, SQL_DEBT_FILE, SQL_UNIT_CLASSES, STANDARD_ACTIONS, STORAGE_ERRORS, STORAGE_FUNCTIONS, STORAGE_TABLES, STRUCTURAL_PATH_WORDS, TOPIC_UUID_PATTERN, USER_PLATFORM_COLUMNS, UUID_TEXT, ZERO_UUID, acceptInvitationAction, actionRequires, assignPhysicalName, authorColumns, catalogFromSnapshot, chooseConstraintName, clipBytes, closeRequires, defaultMayRepeat, defaultViolatesValueChecks, deletionMarkColumn, diffCatalogModels, effectiveMaxBytes, effectiveSearch, elementNameSchema, expectsKindLabel, filePlatformColumns, formatMetaFile, formatProjectFile, formatSqlDebtFile, formatSqlFunctionsFile, grantEntryForm, isObjectOrigin, isObjectTable, isRecordKeyAt, isScalarDefault, isSqlReservedWord, isTextEncodedType, isUuidColumn, jsonBytes, jsonbBuildObject, keyColumn, kindByDir, lineNumberColumn, logicalElementName, makeObjectName, matchesAttributeCase, metadataKindSchema, monthColumn, namedCollections, objectNameSchema, objectTable, parseExpression, parsePublicRead, parseStandardElementId, pgEnumTypeName, pgTypeOf, postsMovements, predefinedNameColumn, projectSchema, publicationCarriers, publishedColumn, quoteIdent, rowWithoutSearch, searchColumnName, searchPrefixNormalization, serviceDateColumns, singleUuidKeyColumn, singletonColumn, sqlDebtSchema, sqlFunctionDeclarationSchema, sqlFunctionsFileSchema, standardElementId, standardLogicalName, tabularParentColumn, toSnakeCase, truncatedPeriodExpression, userPlatformColumns, versionColumn, walkExpr } from "simetra/model";
3
3
  import { parseTree } from "jsonc-parser";
4
4
  import { loadModule, parseSync } from "libpg-query";
5
5
  import { loadModule as loadModule$1, parsePlPgSQLSync, parseSync as parseSync$1, scanSync } from "@libpg-query/parser";
@@ -23282,7 +23282,7 @@ const RIGHTS_FUNCTIONS = {
23282
23282
  domain: platform$2("rights_domain"),
23283
23283
  roles: platform$2("rights_roles"),
23284
23284
  sourceKeys: platform$2("rights_source_keys"),
23285
- myScopes: platform$2("rights_my_scopes"),
23285
+ myScopes: platform$2(RIGHTS_MY_SCOPES_FUNCTION_NAME),
23286
23286
  myScopesLive: platform$2("rights_my_scopes_live"),
23287
23287
  mine: platform$2("rights_mine"),
23288
23288
  minePair: platform$2("rights_mine"),
@@ -34372,6 +34372,7 @@ function buildRuntimeCatalog(model) {
34372
34372
  ...adoptedFactsOf(model)
34373
34373
  } : {},
34374
34374
  ...model.project.selfSignUp ? { selfSignUp: true } : {},
34375
+ ...model.scopeKinds.some((k) => k.invitations !== void 0) ? { invitations: true } : {},
34375
34376
  ...rightsDeclarationsOf(model),
34376
34377
  objects: model.objects.flatMap((object) => {
34377
34378
  const contract = contracts.get(object.id);
@@ -34590,7 +34591,8 @@ function operationsOf(objectId, contract, model) {
34590
34591
  ...functions.markDeletion === void 0 || actions.markDeletion === void 0 ? {} : { markDeletion: target(functions.markDeletion, actions.markDeletion) },
34591
34592
  ...functions.delete === void 0 || actions.delete === void 0 ? {} : { delete: target(functions.delete, actions.delete) },
34592
34593
  ...functions.publish === void 0 || actions.publish === void 0 ? {} : { publish: target(functions.publish, actions.publish) },
34593
- ...functions.unpublish === void 0 || actions.unpublish === void 0 ? {} : { unpublish: target(functions.unpublish, actions.unpublish) }
34594
+ ...functions.unpublish === void 0 || actions.unpublish === void 0 ? {} : { unpublish: target(functions.unpublish, actions.unpublish) },
34595
+ ...model.scopeKinds.some((k) => k.invitations?.membership === objectId) ? { issueInvitation: target(invitationIssueFunctionName(contract.table), actions.update) } : {}
34594
34596
  };
34595
34597
  }
34596
34598
  /**
@@ -37565,7 +37567,7 @@ const q$7 = quoteIdent;
37565
37567
  /** Функція прийняття запрошення (спека запрошень §5) — одна на проєкт. */
37566
37568
  const INVITATION_ACCEPT_FUNCTION = {
37567
37569
  schema: PLATFORM_SCHEMA,
37568
- name: "invitation_accept"
37570
+ name: INVITATION_ACCEPT_FUNCTION_NAME
37569
37571
  };
37570
37572
  /**
37571
37573
  * Простір ключів advisory-замка спроб прийняття (`SIMI`): поруч із простором
@@ -43999,6 +44001,7 @@ function buildClientCatalog(runtime) {
43999
44001
  snapshotHash: runtime.snapshotHash,
44000
44002
  provider: runtime.provider,
44001
44003
  ...present("rightsSnapshot", runtime.rightsSnapshot),
44004
+ ...present("invitations", runtime.invitations),
44002
44005
  ...present("adoptedFacts", runtime.adoptedFacts),
44003
44006
  ...present("roles", runtime.roles),
44004
44007
  ...present("rightsSets", runtime.rightsSets),
@@ -3629,8 +3629,8 @@ export declare const projectSchema: z.ZodObject<{
3629
3629
  en: z.ZodOptional<z.ZodString>;
3630
3630
  }, z.core.$strict>>;
3631
3631
  defaultLocale: z.ZodDefault<z.ZodEnum<{
3632
- uk: "uk";
3633
3632
  en: "en";
3633
+ uk: "uk";
3634
3634
  }>>;
3635
3635
  primaryDataLanguage: z.ZodOptional<z.ZodString>;
3636
3636
  defaultSchema: z.ZodDefault<z.ZodString>;
@@ -4295,6 +4295,11 @@ export declare const RIGHTS_REQUIRE_ERROR: {
4295
4295
  readonly message: "rights.forbidden";
4296
4296
  readonly noRight: "no-right";
4297
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";
4298
4303
  /** Тригер ієрархії відмовляє поза `READ COMMITTED` (спека П4 §6.6). */
4299
4304
  export declare const HIERARCHY_ISOLATION_ERROR: {
4300
4305
  readonly errcode: "0A000";
@@ -4310,7 +4315,7 @@ export declare const ROW_VERSION_EPOCH_FUNCTION_NAME = "row_version_epoch";
4310
4315
  /** UUID without a scope: the channel and the holder key of an unscoped object. */
4311
4316
  export declare const ZERO_UUID = "00000000-0000-0000-0000-000000000000";
4312
4317
  /** Operations on an object that a command accepts (P4 spec §6.4). */
4313
- 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"];
4314
4319
  export type ObjectOperation = (typeof OBJECT_OPERATIONS)[number];
4315
4320
  /**
4316
4321
  * The object-module event an operation raises; `undefined` — none. Подію
@@ -4483,6 +4488,25 @@ export declare const operationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4483
4488
  }, z.core.$strict>;
4484
4489
  id: z.ZodGUID;
4485
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;
4486
4510
  }, z.core.$strict>], "action">;
4487
4511
  export type Operation = z.infer<typeof operationSchema>;
4488
4512
  /**
@@ -4623,6 +4647,25 @@ export declare const batchSchema: z.ZodPreprocess<z.ZodArray<z.ZodDiscriminatedU
4623
4647
  }, z.core.$strict>;
4624
4648
  id: z.ZodGUID;
4625
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;
4626
4669
  }, z.core.$strict>], "action">>, unknown>;
4627
4670
  export type Batch = z.infer<typeof batchSchema>;
4628
4671
  /** One row changed by a command. */
@@ -4636,9 +4679,26 @@ export interface Change {
4636
4679
  version: number;
4637
4680
  operation: ObjectOperation;
4638
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;
4639
4695
  /** The outcome of a command. */
4640
4696
  export interface CommandResult {
4641
- /** One row per input operation, in input order. */
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
+ */
4642
4702
  rows: Record<string, unknown>[];
4643
4703
  /** Every phase, `ctx.run` included, in the order the core was called. */
4644
4704
  changes: Change[];
@@ -4650,7 +4710,7 @@ export interface CommandResult {
4650
4710
  epoch: string;
4651
4711
  }
4652
4712
  /** Error codes a command or the runtime factory reports (P4 spec §6.10). */
4653
- 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"];
4654
4714
  export type CommandErrorCode = (typeof COMMAND_ERROR_CODES)[number];
4655
4715
  /**
4656
4716
  * `reason` values a `CommandError` carries for envelope and size limits
@@ -4893,6 +4953,11 @@ export type RightsValue = z.infer<typeof rightsValueSchema>;
4893
4953
  * кличе, а імпортує лише `simetra/model`.
4894
4954
  */
4895
4955
  export declare const RIGHTS_CLIENT_SNAPSHOT_FUNCTION_NAME = "rights_client_snapshot";
4956
+ /**
4957
+ * The function of my scopes in the `simetra` schema (rights spec §5.1): kind,
4958
+ * scope and my member. T1 generates it, T3 reads it for `workspaces`.
4959
+ */
4960
+ export declare const RIGHTS_MY_SCOPES_FUNCTION_NAME = "rights_my_scopes";
4896
4961
  /** Operators of a filter condition (P4-B spec §4.1). */
4897
4962
  export declare const FILTER_OPERATORS: readonly ["eq", "ne", "lt", "lte", "gt", "gte", "in", "isNull", "contains", "startsWith"];
4898
4963
  export type FilterOperator = (typeof FILTER_OPERATORS)[number];
@@ -6334,6 +6399,13 @@ export declare const runtimeObjectSchema: z.ZodObject<{
6334
6399
  }, z.core.$strict>;
6335
6400
  context: z.ZodString;
6336
6401
  }, z.core.$strict>>;
6402
+ issueInvitation: z.ZodOptional<z.ZodObject<{
6403
+ function: z.ZodObject<{
6404
+ schema: z.ZodString;
6405
+ name: z.ZodString;
6406
+ }, z.core.$strict>;
6407
+ context: z.ZodString;
6408
+ }, z.core.$strict>>;
6337
6409
  }, z.core.$strict>>;
6338
6410
  constraints: z.ZodArray<z.ZodObject<{
6339
6411
  name: z.ZodString;
@@ -6404,6 +6476,7 @@ export declare const runtimeCatalogSchema: z.ZodObject<{
6404
6476
  }>;
6405
6477
  rightsSnapshot: z.ZodOptional<z.ZodLiteral<true>>;
6406
6478
  selfSignUp: z.ZodOptional<z.ZodLiteral<true>>;
6479
+ invitations: z.ZodOptional<z.ZodLiteral<true>>;
6407
6480
  adoptedFacts: z.ZodOptional<z.ZodObject<{
6408
6481
  membershipKinds: z.ZodArray<z.ZodGUID>;
6409
6482
  assignments: z.ZodOptional<z.ZodLiteral<true>>;
@@ -6774,6 +6847,13 @@ export declare const runtimeCatalogSchema: z.ZodObject<{
6774
6847
  }, z.core.$strict>;
6775
6848
  context: z.ZodString;
6776
6849
  }, z.core.$strict>>;
6850
+ issueInvitation: z.ZodOptional<z.ZodObject<{
6851
+ function: z.ZodObject<{
6852
+ schema: z.ZodString;
6853
+ name: z.ZodString;
6854
+ }, z.core.$strict>;
6855
+ context: z.ZodString;
6856
+ }, z.core.$strict>>;
6777
6857
  }, z.core.$strict>>;
6778
6858
  constraints: z.ZodArray<z.ZodObject<{
6779
6859
  name: z.ZodString;
@@ -6820,6 +6900,7 @@ export declare const clientCatalogSchema: z.ZodObject<{
6820
6900
  postgres: "postgres";
6821
6901
  }>;
6822
6902
  rightsSnapshot: z.ZodOptional<z.ZodLiteral<true>>;
6903
+ invitations: z.ZodOptional<z.ZodLiteral<true>>;
6823
6904
  adoptedFacts: z.ZodOptional<z.ZodObject<{
6824
6905
  membershipKinds: z.ZodArray<z.ZodGUID>;
6825
6906
  assignments: z.ZodOptional<z.ZodLiteral<true>>;
@@ -7319,6 +7400,10 @@ export declare const wireOperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7319
7400
  id: z.ZodGUID;
7320
7401
  expectedVersion: z.ZodInt;
7321
7402
  object: z.ZodGUID;
7403
+ }, z.core.$strict>, z.ZodObject<{
7404
+ action: z.ZodLiteral<"issueInvitation">;
7405
+ id: z.ZodGUID;
7406
+ object: z.ZodGUID;
7322
7407
  }, z.core.$strict>], "action">;
7323
7408
  export type WireOperation = z.infer<typeof wireOperationSchema>;
7324
7409
  /**
@@ -7346,6 +7431,10 @@ export declare const wireCommandErrorSchema: z.ZodObject<{
7346
7431
  "command.busy": "command.busy";
7347
7432
  "command.stale-client": "command.stale-client";
7348
7433
  "command.internal": "command.internal";
7434
+ "invitation.invalid": "invitation.invalid";
7435
+ "invitation.already-member": "invitation.already-member";
7436
+ "invitation.rate-limited": "invitation.rate-limited";
7437
+ "invitation.not-pending": "invitation.not-pending";
7349
7438
  }>;
7350
7439
  reason: z.ZodOptional<z.ZodString>;
7351
7440
  object: z.ZodOptional<z.ZodGUID>;
@@ -7356,6 +7445,7 @@ export declare const wireCommandErrorSchema: z.ZodObject<{
7356
7445
  delete: "delete";
7357
7446
  publish: "publish";
7358
7447
  unpublish: "unpublish";
7448
+ issueInvitation: "issueInvitation";
7359
7449
  }>>;
7360
7450
  path: z.ZodOptional<z.ZodString>;
7361
7451
  detail: z.ZodOptional<z.ZodString>;
@@ -7387,6 +7477,7 @@ export declare const wireChangeSchema: z.ZodObject<{
7387
7477
  delete: "delete";
7388
7478
  publish: "publish";
7389
7479
  unpublish: "unpublish";
7480
+ issueInvitation: "issueInvitation";
7390
7481
  }>;
7391
7482
  }, z.core.$strict>;
7392
7483
  export type WireChange = z.infer<typeof wireChangeSchema>;
@@ -7497,6 +7588,36 @@ export declare const wireRunResultSchema: z.ZodObject<{
7497
7588
  delete: "delete";
7498
7589
  publish: "publish";
7499
7590
  unpublish: "unpublish";
7591
+ issueInvitation: "issueInvitation";
7592
+ }>;
7593
+ }, z.core.$strict>>;
7594
+ epoch: z.ZodString;
7595
+ }, z.core.$strict>;
7596
+ /**
7597
+ * The run result checked against the operations of its request (invitations
7598
+ * spec §4): the row of an `issueInvitation` must be an `InvitationIssue` and
7599
+ * must be present (the response budget never cuts it); a row of any other
7600
+ * operation must not be shaped like one. Messages carry no value, so a
7601
+ * refused secret does not reach an error text.
7602
+ */
7603
+ export declare function wireRunResultFor(operations: readonly {
7604
+ action: string;
7605
+ }[]): z.ZodObject<{
7606
+ rows: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
7607
+ changes: z.ZodArray<z.ZodObject<{
7608
+ object: z.ZodGUID;
7609
+ scopeKind: z.ZodOptional<z.ZodString>;
7610
+ scope: z.ZodOptional<z.ZodString>;
7611
+ id: z.ZodString;
7612
+ version: z.ZodInt;
7613
+ operation: z.ZodEnum<{
7614
+ update: "update";
7615
+ create: "create";
7616
+ markDeletion: "markDeletion";
7617
+ delete: "delete";
7618
+ publish: "publish";
7619
+ unpublish: "unpublish";
7620
+ issueInvitation: "issueInvitation";
7500
7621
  }>;
7501
7622
  }, z.core.$strict>>;
7502
7623
  epoch: z.ZodString;
@@ -7657,6 +7778,10 @@ export declare const wireReadPartsResultSchema: z.ZodObject<{
7657
7778
  "command.busy": "command.busy";
7658
7779
  "command.stale-client": "command.stale-client";
7659
7780
  "command.internal": "command.internal";
7781
+ "invitation.invalid": "invitation.invalid";
7782
+ "invitation.already-member": "invitation.already-member";
7783
+ "invitation.rate-limited": "invitation.rate-limited";
7784
+ "invitation.not-pending": "invitation.not-pending";
7660
7785
  }>;
7661
7786
  reason: z.ZodOptional<z.ZodString>;
7662
7787
  object: z.ZodOptional<z.ZodGUID>;
@@ -7667,6 +7792,7 @@ export declare const wireReadPartsResultSchema: z.ZodObject<{
7667
7792
  delete: "delete";
7668
7793
  publish: "publish";
7669
7794
  unpublish: "unpublish";
7795
+ issueInvitation: "issueInvitation";
7670
7796
  }>>;
7671
7797
  path: z.ZodOptional<z.ZodString>;
7672
7798
  detail: z.ZodOptional<z.ZodString>;
@@ -7730,6 +7856,10 @@ export declare const dataRequestSchema: z.ZodObject<{
7730
7856
  id: z.ZodGUID;
7731
7857
  expectedVersion: z.ZodInt;
7732
7858
  object: z.ZodGUID;
7859
+ }, z.core.$strict>, z.ZodObject<{
7860
+ action: z.ZodLiteral<"issueInvitation">;
7861
+ id: z.ZodGUID;
7862
+ object: z.ZodGUID;
7733
7863
  }, z.core.$strict>], "action">;
7734
7864
  batch: z.ZodOptional<z.ZodNever>;
7735
7865
  kernels: z.ZodOptional<z.ZodRecord<z.ZodGUID, z.ZodString>>;
@@ -7772,6 +7902,10 @@ export declare const dataRequestSchema: z.ZodObject<{
7772
7902
  id: z.ZodGUID;
7773
7903
  expectedVersion: z.ZodInt;
7774
7904
  object: z.ZodGUID;
7905
+ }, z.core.$strict>, z.ZodObject<{
7906
+ action: z.ZodLiteral<"issueInvitation">;
7907
+ id: z.ZodGUID;
7908
+ object: z.ZodGUID;
7775
7909
  }, z.core.$strict>], "action">>, unknown>;
7776
7910
  kernels: z.ZodOptional<z.ZodRecord<z.ZodGUID, z.ZodString>>;
7777
7911
  }, z.core.$strict>]>]>;
@@ -7804,6 +7938,10 @@ export declare const dataResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
7804
7938
  "command.busy": "command.busy";
7805
7939
  "command.stale-client": "command.stale-client";
7806
7940
  "command.internal": "command.internal";
7941
+ "invitation.invalid": "invitation.invalid";
7942
+ "invitation.already-member": "invitation.already-member";
7943
+ "invitation.rate-limited": "invitation.rate-limited";
7944
+ "invitation.not-pending": "invitation.not-pending";
7807
7945
  }>;
7808
7946
  reason: z.ZodOptional<z.ZodString>;
7809
7947
  object: z.ZodOptional<z.ZodGUID>;
@@ -7814,6 +7952,7 @@ export declare const dataResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
7814
7952
  delete: "delete";
7815
7953
  publish: "publish";
7816
7954
  unpublish: "unpublish";
7955
+ issueInvitation: "issueInvitation";
7817
7956
  }>>;
7818
7957
  path: z.ZodOptional<z.ZodString>;
7819
7958
  detail: z.ZodOptional<z.ZodString>;
@@ -2955,6 +2955,11 @@ const RIGHTS_REQUIRE_ERROR = {
2955
2955
  message: "rights.forbidden",
2956
2956
  noRight: "no-right"
2957
2957
  };
2958
+ /**
2959
+ * The invitation acceptance function in the `simetra` schema (invitations
2960
+ * spec §5): T1 generates it, T3 calls it from `acceptInvitation`.
2961
+ */
2962
+ const INVITATION_ACCEPT_FUNCTION_NAME = "invitation_accept";
2958
2963
  /** Тригер ієрархії відмовляє поза `READ COMMITTED` (спека П4 §6.6). */
2959
2964
  const HIERARCHY_ISOLATION_ERROR = {
2960
2965
  errcode: "0A000",
@@ -2996,7 +3001,11 @@ const COMMAND_ERROR_CODES = [
2996
3001
  "command.timeout",
2997
3002
  "command.busy",
2998
3003
  "command.stale-client",
2999
- "command.internal"
3004
+ "command.internal",
3005
+ "invitation.invalid",
3006
+ "invitation.already-member",
3007
+ "invitation.rate-limited",
3008
+ "invitation.not-pending"
3000
3009
  ];
3001
3010
  /**
3002
3011
  * `reason` values a `CommandError` carries for envelope and size limits
@@ -3372,7 +3381,8 @@ const OBJECT_OPERATIONS = [
3372
3381
  "markDeletion",
3373
3382
  "delete",
3374
3383
  "publish",
3375
- "unpublish"
3384
+ "unpublish",
3385
+ "issueInvitation"
3376
3386
  ];
3377
3387
  /**
3378
3388
  * The object-module event an operation raises; `undefined` — none. Подію
@@ -3385,7 +3395,8 @@ const OPERATION_EVENTS = {
3385
3395
  markDeletion: "write",
3386
3396
  delete: void 0,
3387
3397
  publish: "write",
3388
- unpublish: "write"
3398
+ unpublish: "write",
3399
+ issueInvitation: void 0
3389
3400
  };
3390
3401
  const rowIdSchema = z.guid();
3391
3402
  const expectedVersionSchema = z.int().min(1);
@@ -3501,6 +3512,11 @@ const operationSchema = z.discriminatedUnion("action", [
3501
3512
  object: metadataRefSchema,
3502
3513
  id: rowIdSchema,
3503
3514
  expectedVersion: expectedVersionSchema
3515
+ }),
3516
+ z.strictObject({
3517
+ action: z.literal("issueInvitation"),
3518
+ object: metadataRefSchema,
3519
+ id: rowIdSchema
3504
3520
  })
3505
3521
  ]);
3506
3522
  /**
@@ -3515,6 +3531,19 @@ const BATCH_MAX = 500;
3515
3531
  * `reason: "tabular-too-large"`.
3516
3532
  */
3517
3533
  const batchSchema = lengthLimited(z.array(operationSchema).min(1), 500, LIMIT_REASONS.batchTooLarge);
3534
+ // src/model/runtime/result.ts
3535
+ /**
3536
+ * The result row of `issueInvitation` (invitations spec §4): a variant of the
3537
+ * operation's row, not a catalog row. The secret is shown here once and
3538
+ * nowhere else; `expiresAt` is the end of the invitation as the database
3539
+ * returned it.
3540
+ */
3541
+ const invitationIssueSchema = z.strictObject({
3542
+ secret: z.string().regex(/^[A-Za-z0-9_-]{43}$/),
3543
+ expiresAt: z.string().min(1)
3544
+ });
3545
+ /** Whether a result row is the row of `issueInvitation`, not a catalog row. */
3546
+ const isInvitationIssue = (row) => invitationIssueSchema.safeParse(row).success;
3518
3547
  // src/model/runtime/limits.ts
3519
3548
  /**
3520
3549
  * The most bytes a request body may carry (P4-B spec §4.5), measured by
@@ -3615,6 +3644,11 @@ const rightsValueSchema = z.strictObject({
3615
3644
  * кличе, а імпортує лише `simetra/model`.
3616
3645
  */
3617
3646
  const RIGHTS_CLIENT_SNAPSHOT_FUNCTION_NAME = "rights_client_snapshot";
3647
+ /**
3648
+ * The function of my scopes in the `simetra` schema (rights spec §5.1): kind,
3649
+ * scope and my member. T1 generates it, T3 reads it for `workspaces`.
3650
+ */
3651
+ const RIGHTS_MY_SCOPES_FUNCTION_NAME = "rights_my_scopes";
3618
3652
  // src/model/runtime/keyset.ts
3619
3653
  const isNullish = (value) => value === null || value === void 0;
3620
3654
  const isNull = (attribute) => ({
@@ -4029,7 +4063,8 @@ const runtimeObjectSchema = catalogEntrySchema.extend({
4029
4063
  markDeletion: runtimeOperationTargetSchema.optional(),
4030
4064
  delete: runtimeOperationTargetSchema.optional(),
4031
4065
  publish: runtimeOperationTargetSchema.optional(),
4032
- unpublish: runtimeOperationTargetSchema.optional()
4066
+ unpublish: runtimeOperationTargetSchema.optional(),
4067
+ issueInvitation: runtimeOperationTargetSchema.optional()
4033
4068
  }).optional(),
4034
4069
  constraints: z.array(runtimeConstraintSchema)
4035
4070
  }).superRefine((object, ctx) => {
@@ -4086,6 +4121,8 @@ const runtimeCatalogSchema = z.strictObject({
4086
4121
  rightsSnapshot: z.literal(true).optional(),
4087
4122
  /** Проєкт дозволяє самореєстрацію: host відмовляє старту `open` без нього. */
4088
4123
  selfSignUp: z.literal(true).optional(),
4124
+ /** Є вид скоупу із запрошеннями: T3 дозволяє `acceptInvitation` і `workspaces`. */
4125
+ invitations: z.literal(true).optional(),
4089
4126
  adoptedFacts: catalogAdoptedFactsSchema.optional(),
4090
4127
  /** Немає в проєкті без ролей; порядок — за `order`, далі за `name`. */
4091
4128
  roles: z.array(catalogRoleSchema).optional(),
@@ -4093,6 +4130,16 @@ const runtimeCatalogSchema = z.strictObject({
4093
4130
  objects: z.array(runtimeObjectSchema)
4094
4131
  }).superRefine((catalog, ctx) => {
4095
4132
  catalog.objects.forEach((object, index) => {
4133
+ if (object.operations?.issueInvitation !== void 0 && (object.membership === void 0 || catalog.invitations !== true)) ctx.addIssue({
4134
+ code: "custom",
4135
+ path: [
4136
+ "objects",
4137
+ index,
4138
+ "operations",
4139
+ "issueInvitation"
4140
+ ],
4141
+ message: "issueInvitation needs a membership catalog and the invitations flag"
4142
+ });
4096
4143
  const membership = object.operations?.create?.root?.membership;
4097
4144
  if (membership === void 0) return;
4098
4145
  const target = catalog.objects.find((o) => o.id === membership);
@@ -4121,6 +4168,8 @@ const clientCatalogSchema = z.strictObject({
4121
4168
  provider: z.enum(DATABASE_PROVIDERS),
4122
4169
  /** Проєкт має функції прав: без прапорця клієнт не шле `rights` (Р6). */
4123
4170
  rightsSnapshot: z.literal(true).optional(),
4171
+ /** Є вид скоупу із запрошеннями: клієнт показує видачу й прийняття. */
4172
+ invitations: z.literal(true).optional(),
4124
4173
  /** Факти прийнятих джерел свіжіють за інтервалом (П4-B §8.2). */
4125
4174
  adoptedFacts: catalogAdoptedFactsSchema.optional(),
4126
4175
  roles: z.array(catalogRoleSchema).optional(),
@@ -5142,7 +5191,7 @@ function decodeRow(entry, raw, options = {}) {
5142
5191
  */
5143
5192
  const wireObjectSchema = z.guid();
5144
5193
  const wireTabularSectionsSchema = z.record(elementIdSchema, lengthLimited(z.array(z.record(z.string(), z.unknown())), TABULAR_LINES_MAX, LIMIT_REASONS.tabularTooLarge));
5145
- const [createSchema, , markDeletionSchema, deleteSchema, publishSchema, unpublishSchema] = operationSchema.options;
5194
+ const [createSchema, , markDeletionSchema, deleteSchema, publishSchema, unpublishSchema, issueInvitationSchema] = operationSchema.options;
5146
5195
  /** One operation of a command in wire form: object by UUID, physical columns. */
5147
5196
  const wireOperationSchema = z.discriminatedUnion("action", [
5148
5197
  createSchema.extend({
@@ -5156,7 +5205,8 @@ const wireOperationSchema = z.discriminatedUnion("action", [
5156
5205
  markDeletionSchema.extend({ object: wireObjectSchema }),
5157
5206
  deleteSchema.extend({ object: wireObjectSchema }),
5158
5207
  publishSchema.extend({ object: wireObjectSchema }),
5159
- unpublishSchema.extend({ object: wireObjectSchema })
5208
+ unpublishSchema.extend({ object: wireObjectSchema }),
5209
+ issueInvitationSchema.extend({ object: wireObjectSchema })
5160
5210
  ]);
5161
5211
  /**
5162
5212
  * A command error in wire form: `object` by UUID; `path` and `attributes`
@@ -5271,6 +5321,31 @@ const wireRunResultSchema = z.strictObject({
5271
5321
  changes: z.array(wireChangeSchema),
5272
5322
  epoch: versionEpochSchema
5273
5323
  });
5324
+ /**
5325
+ * The run result checked against the operations of its request (invitations
5326
+ * spec §4): the row of an `issueInvitation` must be an `InvitationIssue` and
5327
+ * must be present (the response budget never cuts it); a row of any other
5328
+ * operation must not be shaped like one. Messages carry no value, so a
5329
+ * refused secret does not reach an error text.
5330
+ */
5331
+ function wireRunResultFor(operations) {
5332
+ return wireRunResultSchema.superRefine((result, ctx) => {
5333
+ operations.forEach((op, i) => {
5334
+ const row = result.rows?.[i];
5335
+ const issue = op.action === "issueInvitation";
5336
+ if (issue && !invitationIssueSchema.safeParse(row).success) ctx.addIssue({
5337
+ code: "custom",
5338
+ path: ["rows", i],
5339
+ message: "the row of issueInvitation must be { secret, expiresAt }"
5340
+ });
5341
+ else if (!issue && invitationIssueSchema.safeParse(row).success) ctx.addIssue({
5342
+ code: "custom",
5343
+ path: ["rows", i],
5344
+ message: "only issueInvitation returns an invitation row"
5345
+ });
5346
+ });
5347
+ });
5348
+ }
5274
5349
  /** The catalog version a `version` part returns. */
5275
5350
  const versionValueSchema = z.strictObject({
5276
5351
  snapshotHash: z.string(),
@@ -8774,4 +8849,4 @@ const ASSIGNED_ONCE = [
8774
8849
  field: "primaryDataLanguage"
8775
8850
  }
8776
8851
  ];
8777
- 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, containerBindingSchema, 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 };
8852
+ 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, INVITATION_ACCEPT_FUNCTION_NAME, 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_MY_SCOPES_FUNCTION_NAME, 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, containerBindingSchema, 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, invitationIssueSchema, isDate, isDateTime, isFileObjectKey, isFileObjectPrefix, isInvitationIssue, 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, wireRunResultFor, 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.8";
1024
+ export declare const PLATFORM_VERSION = "0.3.0-next.9";
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.8";
3896
+ const PLATFORM_VERSION = "0.3.0-next.9";
3897
3897
  // src/schema/apply/state.ts
3898
3898
  /**
3899
3899
  * Форма стану застосування (платформна спека §6.1). Читач приймає лише її: