@stndrds/schema 0.1.0-alpha.40 → 0.1.0-alpha.42

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.
@@ -6491,6 +6491,7 @@ declare const defaultPolicyRegistry: PolicyRegistry;
6491
6491
  *
6492
6492
  * Provides abstract base classes for services and repositories
6493
6493
  * that require tenant context from AsyncLocalStorage.
6494
+ * Also provides interfaces for schema context awareness.
6494
6495
  */
6495
6496
 
6496
6497
  /**
@@ -6579,6 +6580,73 @@ declare abstract class TenantAwareRepository {
6579
6580
  */
6580
6581
  protected get userId(): UserId | undefined;
6581
6582
  }
6583
+ /**
6584
+ * Interface for repositories that can leverage schema context from AsyncLocalStorage.
6585
+ *
6586
+ * This interface follows the Interface Segregation Principle (ISP) -
6587
+ * it's separate from TenantAwareRepository to allow repositories to
6588
+ * opt-in to schema context awareness independently.
6589
+ *
6590
+ * Repositories implementing this interface can access ObjectDefinitions
6591
+ * (including attributes) from the execution context, avoiding redundant
6592
+ * database queries when the schema was already fetched by a higher-level service.
6593
+ *
6594
+ * @example
6595
+ * ```typescript
6596
+ * export class SupabaseObjectRecordsRepository
6597
+ * extends TenantAwareRepository
6598
+ * implements ObjectRecordsRepository, SchemaContextAware
6599
+ * {
6600
+ * getSchemaFromContext(objectId: string): ObjectDefinition | undefined {
6601
+ * return getSchemaFromContext(objectId);
6602
+ * }
6603
+ *
6604
+ * private async getAttributes(objectId: string): Promise<Attribute[]> {
6605
+ * const schema = this.getSchemaFromContext(objectId);
6606
+ * if (schema) return schema.attributes;
6607
+ * return this.fetchAttributeDefinitions(objectId);
6608
+ * }
6609
+ * }
6610
+ * ```
6611
+ */
6612
+ interface SchemaContextAware {
6613
+ /**
6614
+ * Get an ObjectDefinition from context by its ID.
6615
+ * Returns undefined if no context is set or schema not found.
6616
+ */
6617
+ getSchemaFromContext(objectId: string): ObjectDefinition | undefined;
6618
+ /**
6619
+ * Get an ObjectDefinition from context by its name.
6620
+ * Returns undefined if no context is set or schema not found.
6621
+ */
6622
+ getSchemaByNameFromContext(objectName: string): ObjectDefinition | undefined;
6623
+ }
6624
+ /**
6625
+ * Mixin class that provides schema context awareness.
6626
+ *
6627
+ * Use this as a base class (along with TenantAwareRepository) for repositories
6628
+ * that need to access schema context.
6629
+ *
6630
+ * @example
6631
+ * ```typescript
6632
+ * export class SupabaseObjectRecordsRepository
6633
+ * extends SchemaContextAwareMixin(TenantAwareRepository)
6634
+ * implements ObjectRecordsRepository
6635
+ * {
6636
+ * // getSchemaFromContext and getSchemaByNameFromContext are available
6637
+ * }
6638
+ * ```
6639
+ */
6640
+ declare abstract class SchemaContextAwareRepository extends TenantAwareRepository {
6641
+ /**
6642
+ * Get an ObjectDefinition from context by its ID.
6643
+ */
6644
+ protected getSchemaFromContext(objectId: string): ObjectDefinition | undefined;
6645
+ /**
6646
+ * Get an ObjectDefinition from context by its name.
6647
+ */
6648
+ protected getSchemaByNameFromContext(objectName: string): ObjectDefinition | undefined;
6649
+ }
6582
6650
 
6583
6651
  /**
6584
6652
  * Service for audit logging.
@@ -6955,58 +7023,9 @@ declare class RecordService extends TenantAwareService {
6955
7023
  private permissionService?;
6956
7024
  private auditService?;
6957
7025
  private policyRegistry;
7026
+ private labelResolver;
7027
+ private rollupContext;
6958
7028
  constructor(adapter: DatabaseAdapter, options?: RecordServiceOptions);
6959
- /**
6960
- * Check permission for an action on an object.
6961
- * Only checks if permissionService and userId are configured.
6962
- * @internal
6963
- */
6964
- private checkPermission;
6965
- /**
6966
- * Get policy for an object if one exists and userId is configured.
6967
- * @internal
6968
- */
6969
- private getPolicy;
6970
- /**
6971
- * Build policy context for the current request.
6972
- * @internal
6973
- */
6974
- private buildPolicyContext;
6975
- /**
6976
- * Check if user can access a record based on policy.
6977
- * Returns true if no policy exists or user can access.
6978
- * @internal
6979
- */
6980
- private checkRecordAccess;
6981
- /**
6982
- * Check if user can modify a record based on policy.
6983
- * Throws PolicyViolationError if denied.
6984
- * @internal
6985
- */
6986
- private checkRecordModify;
6987
- /**
6988
- * Check if user can delete a record based on policy.
6989
- * Throws PolicyViolationError if denied.
6990
- * @internal
6991
- */
6992
- private checkRecordDelete;
6993
- /**
6994
- * Resolve relation IDs to their display labels
6995
- * @internal
6996
- */
6997
- private resolveRelationLabels;
6998
- /**
6999
- * Extract relation IDs from a value (string or array)
7000
- * @internal
7001
- */
7002
- private extractRelationIds;
7003
- /**
7004
- * Compute display label from schema expression
7005
- * Automatically resolves relation attribute values to their labels
7006
- * and select/multiselect values to their option labels
7007
- * @internal
7008
- */
7009
- private computeLabel;
7010
7029
  /**
7011
7030
  * Create a new record with validation
7012
7031
  *
@@ -7016,84 +7035,23 @@ declare class RecordService extends TenantAwareService {
7016
7035
  * @param data - Record data (attribute values)
7017
7036
  * @param options - Creation options
7018
7037
  * @returns Created record with computed completionStatus
7019
- *
7020
- * @example
7021
- * ```typescript
7022
- * const service = new RecordService(adapter, "tenant-123");
7023
- *
7024
- * // Create a complete record (strict validation)
7025
- * const product = await service.createRecord("obj-product", {
7026
- * name: "Nike Air Max",
7027
- * price: 129.99,
7028
- * status: "active"
7029
- * });
7030
- * // → product.completionStatus = "complete"
7031
- *
7032
- * // Create a draft record (allows missing required fields)
7033
- * const draft = await service.createRecord("obj-product", {
7034
- * name: "Draft Product"
7035
- * }, { allowDraft: true });
7036
- * // → draft.completionStatus = "draft"
7037
- * ```
7038
7038
  */
7039
7039
  createRecord(objectId: string, data: Record<string, unknown>, options?: {
7040
- /**
7041
- * Allow creating records with missing required fields.
7042
- * Format validation still applies to provided values.
7043
- * @default false
7044
- */
7045
7040
  allowDraft?: boolean;
7046
- /**
7047
- * Skip all validation (format + relations).
7048
- * @default true
7049
- */
7050
7041
  validate?: boolean;
7051
- /**
7052
- * Skip relation validation only.
7053
- * Useful for bulk imports where relations are validated separately.
7054
- * @default false
7055
- */
7056
7042
  skipRelationValidation?: boolean;
7057
- /**
7058
- * Skip user validation only.
7059
- * Useful for bulk imports where users are validated separately.
7060
- * @default false
7061
- */
7062
7043
  skipUserValidation?: boolean;
7063
7044
  skipSystemCheck?: boolean;
7064
- /**
7065
- * Skip hook execution.
7066
- * @default false
7067
- */
7068
7045
  skipHooks?: boolean;
7069
- /**
7070
- * Additional metadata to pass to hooks (e.g., userId, requestId).
7071
- */
7072
7046
  hookMetadata?: Record<string, unknown>;
7073
- /**
7074
- * Developer-managed metadata for the record.
7075
- * Use this for internal IDs, external references, or any application-specific data.
7076
- */
7077
7047
  metadata?: Record<string, unknown>;
7078
7048
  }): Promise<ObjectRecord>;
7079
7049
  /**
7080
7050
  * Get a record by ID
7081
- *
7082
- * @param recordId - Record UUID
7083
- * @param options - Query options
7084
- * @returns Record or null if not found
7085
7051
  */
7086
7052
  getRecord(recordId: string, options?: {
7087
7053
  includeSchema?: boolean;
7088
- /**
7089
- * Skip formula computation (useful for internal operations)
7090
- * @default false
7091
- */
7092
7054
  skipFormulas?: boolean;
7093
- /**
7094
- * Skip policy access check (internal use only)
7095
- * @default false
7096
- */
7097
7055
  skipPolicyCheck?: boolean;
7098
7056
  }): Promise<ObjectRecord | null>;
7099
7057
  /**
@@ -7102,206 +7060,41 @@ declare class RecordService extends TenantAwareService {
7102
7060
  getRecordOrThrow(recordId: string): Promise<ObjectRecord>;
7103
7061
  /**
7104
7062
  * Update a record with validation
7105
- *
7106
- * The completion status is automatically recalculated after each update.
7107
- * A draft record becomes complete when all required fields are filled.
7108
- *
7109
- * Triggers beforeUpdate and afterUpdate hooks if a HookRegistry is configured.
7110
- *
7111
- * @param recordId - Record UUID
7112
- * @param data - Partial data to update
7113
- * @param options - Update options
7114
- * @returns Updated record with recalculated completionStatus
7115
- *
7116
- * @example
7117
- * ```typescript
7118
- * // Update a draft record to make it complete
7119
- * const updated = await service.updateRecord(draftId, {
7120
- * price: 99.99,
7121
- * status: "active"
7122
- * });
7123
- * // → updated.completionStatus = "complete" if all required fields now present
7124
- * ```
7125
7063
  */
7126
7064
  updateRecord(recordId: string, data: Partial<Record<string, unknown>>, options?: {
7127
- /**
7128
- * Skip validation entirely (format + relations).
7129
- * @default true
7130
- */
7131
7065
  validate?: boolean;
7132
- /**
7133
- * Allow partial updates without strict validation.
7134
- * Format validation still applies to provided values.
7135
- * @default false
7136
- */
7137
7066
  partial?: boolean;
7138
- /**
7139
- * Skip relation validation only.
7140
- * @default false
7141
- */
7142
7067
  skipRelationValidation?: boolean;
7143
- /**
7144
- * Skip user validation only.
7145
- * @default false
7146
- */
7147
7068
  skipUserValidation?: boolean;
7148
- /**
7149
- * Skip hook execution.
7150
- * @default false
7151
- */
7152
7069
  skipHooks?: boolean;
7153
- /**
7154
- * Additional metadata to pass to hooks (e.g., userId, requestId).
7155
- */
7156
7070
  hookMetadata?: Record<string, unknown>;
7157
- /**
7158
- * Developer-managed metadata for the record.
7159
- * Merged with existing metadata (not replaced).
7160
- * Set a key to `undefined` to remove it.
7161
- *
7162
- * @example
7163
- * ```typescript
7164
- * // Existing: { externalId: "ext-123", source: "import" }
7165
- * // Update with: { source: "api", newKey: "value", externalId: undefined }
7166
- * // Result: { source: "api", newKey: "value" }
7167
- * ```
7168
- */
7169
7071
  metadata?: Record<string, unknown>;
7170
7072
  }): Promise<ObjectRecord>;
7171
7073
  /**
7172
- * Build hook context for update operations
7173
- * @internal
7174
- */
7175
- private buildHookContext;
7176
- /**
7177
- * Build hook context for create operations (no existing record)
7178
- * @internal
7179
- */
7180
- private buildCreateHookContext;
7181
- /**
7182
- * Build hook context for delete operations
7183
- * @internal
7184
- */
7185
- private buildDeleteHookContext;
7186
- /**
7187
- * Delete a record
7188
- *
7189
- * Triggers beforeDelete and afterDelete hooks if a HookRegistry is configured.
7190
- *
7191
- * @param recordId - Record UUID
7192
- * @param options - Delete options
7074
+ * Delete a record (soft delete)
7193
7075
  */
7194
7076
  deleteRecord(recordId: string, options?: {
7195
7077
  checkSystem?: boolean;
7196
- /**
7197
- * Skip hook execution.
7198
- * @default false
7199
- */
7200
7078
  skipHooks?: boolean;
7201
- /**
7202
- * Skip relation reference check (use with caution).
7203
- * @default false
7204
- */
7205
7079
  skipReferenceCheck?: boolean;
7206
- /**
7207
- * Additional metadata to pass to hooks (e.g., userId, requestId).
7208
- */
7209
7080
  hookMetadata?: Record<string, unknown>;
7210
7081
  }): Promise<void>;
7082
+ /**
7083
+ * Permanently delete a record (hard delete)
7084
+ */
7085
+ hardDeleteRecord(recordId: string): Promise<void>;
7211
7086
  /**
7212
7087
  * Restore a soft-deleted record
7213
- *
7214
- * Triggers beforeRestore and afterRestore hooks if a HookRegistry is configured.
7215
- *
7216
- * @param recordId - Record UUID
7217
- * @param options - Restore options
7218
- * @returns Restored record
7219
- *
7220
- * @example
7221
- * ```typescript
7222
- * // Restore a deleted record
7223
- * const restored = await service.restoreRecord("rec-123");
7224
- * console.log(restored.deletedAt); // null
7225
- * ```
7226
7088
  */
7227
7089
  restoreRecord(recordId: string, options?: {
7228
- /**
7229
- * Skip hook execution.
7230
- * @default false
7231
- */
7232
7090
  skipHooks?: boolean;
7233
- /**
7234
- * Additional metadata to pass to hooks (e.g., userId, requestId).
7235
- */
7236
7091
  hookMetadata?: Record<string, unknown>;
7237
7092
  }): Promise<ObjectRecord>;
7238
- /**
7239
- * Build hook context for restore operations
7240
- * @internal
7241
- */
7242
- private buildRestoreHookContext;
7243
- /**
7244
- * Enrich a record with computed formula values
7245
- *
7246
- * Formula attributes are calculated at read-time from the record's values.
7247
- * This method adds the computed values to the record's values object.
7248
- *
7249
- * @param record - The record to enrich
7250
- * @param schema - The object schema containing attribute definitions
7251
- * @returns Record with formula values computed
7252
- * @internal
7253
- */
7254
- private enrichWithFormulas;
7255
- /**
7256
- * Enrich multiple records with computed formula values
7257
- * @internal
7258
- */
7259
- private enrichRecordsWithFormulas;
7260
- /**
7261
- * Recalculate rollups after a record changes
7262
- *
7263
- * This handles three cases:
7264
- * 1. The record itself has rollups (e.g., aggregating from related records it points to)
7265
- * 2. Parent records have rollups that aggregate from this record (reverse pattern)
7266
- * 3. Records that have forward rollups pointing to this record (forward pattern)
7267
- *
7268
- * @param record - The record that was modified
7269
- * @param schema - Schema of the record's object
7270
- * @internal
7271
- */
7272
- private recalculateParentRollups;
7273
- /**
7274
- * Permanently delete a record (hard delete)
7275
- *
7276
- * This cannot be undone. Use with caution - prefer soft delete for data safety.
7277
- * Does NOT trigger delete hooks (already triggered on soft delete).
7278
- *
7279
- * @param recordId - Record UUID
7280
- *
7281
- * @example
7282
- * ```typescript
7283
- * // Permanently delete a record
7284
- * await service.hardDeleteRecord("rec-123");
7285
- * ```
7286
- */
7287
- hardDeleteRecord(recordId: string): Promise<void>;
7288
7093
  /**
7289
7094
  * List records for an object with pagination
7290
- *
7291
- * @param objectId - Object UUID
7292
- * @param options - List options
7293
- * @returns Records and total count
7294
7095
  */
7295
7096
  listRecords(objectId: string, options?: ListOptions & {
7296
- /**
7297
- * Skip formula computation (useful for internal operations)
7298
- * @default false
7299
- */
7300
7097
  skipFormulas?: boolean;
7301
- /**
7302
- * Skip policy filtering (internal use only)
7303
- * @default false
7304
- */
7305
7098
  skipPolicyFilter?: boolean;
7306
7099
  }): Promise<{
7307
7100
  records: ObjectRecord[];
@@ -7309,17 +7102,8 @@ declare class RecordService extends TenantAwareService {
7309
7102
  }>;
7310
7103
  /**
7311
7104
  * Search records using full-text search
7312
- *
7313
- * @param objectId - Object UUID
7314
- * @param query - Search query
7315
- * @param options - Search options
7316
- * @returns Matching records and total count
7317
7105
  */
7318
7106
  searchRecords(objectId: string, query: string, options?: SearchOptions & {
7319
- /**
7320
- * Skip formula computation (useful for internal operations)
7321
- * @default false
7322
- */
7323
7107
  skipFormulas?: boolean;
7324
7108
  }): Promise<{
7325
7109
  records: ObjectRecord[];
@@ -7327,27 +7111,14 @@ declare class RecordService extends TenantAwareService {
7327
7111
  }>;
7328
7112
  /**
7329
7113
  * Validate data against object schema without saving
7330
- *
7331
- * @param objectId - Object UUID
7332
- * @param data - Data to validate
7333
- * @returns Validation result
7334
7114
  */
7335
7115
  validateData(objectId: string, data: Record<string, unknown>): Promise<ValidationResult>;
7336
7116
  /**
7337
- * Compute the completion status for given data without saving.
7338
- * Useful for UI to show draft/complete status before submitting.
7339
- *
7340
- * @param objectId - Object UUID
7341
- * @param data - Data to check
7342
- * @returns Computed completion status
7117
+ * Compute the completion status for given data without saving
7343
7118
  */
7344
7119
  computeStatus(objectId: string, data: Record<string, unknown>): Promise<CompletionStatus>;
7345
7120
  /**
7346
- * Refresh the completion status of an existing record.
7347
- * Useful when schema changes and you need to recompute statuses.
7348
- *
7349
- * @param recordId - Record UUID
7350
- * @returns Updated completion status
7121
+ * Refresh the completion status of an existing record
7351
7122
  */
7352
7123
  refreshRecordStatus(recordId: string): Promise<CompletionStatus>;
7353
7124
  }
@@ -7751,6 +7522,138 @@ declare class TenantContextError extends Error {
7751
7522
  constructor(message?: string);
7752
7523
  }
7753
7524
 
7525
+ /**
7526
+ * Schema Context Module
7527
+ *
7528
+ * Provides schema propagation using Node.js AsyncLocalStorage.
7529
+ * This allows repositories to access ObjectDefinition (including attributes)
7530
+ * without redundant database queries when the schema was already fetched
7531
+ * by a higher-level service.
7532
+ *
7533
+ * @example
7534
+ * ```typescript
7535
+ * // In RecordService.listRecords
7536
+ * const schema = await this.schemaService.getObjectSchema(objectId);
7537
+ *
7538
+ * return runWithSchemaContext([schema], async () => {
7539
+ * // ObjectRecordsRepository can now access schema via getSchemaFromContext()
7540
+ * return this.adapter.objectRecords.list(objectId, options);
7541
+ * });
7542
+ * ```
7543
+ */
7544
+
7545
+ /**
7546
+ * Schema context stored in AsyncLocalStorage.
7547
+ *
7548
+ * Contains bi-directional maps for efficient lookups by both ID and name.
7549
+ * The context is mutable to allow enrichment during execution.
7550
+ */
7551
+ interface SchemaContext {
7552
+ /** Object definitions indexed by ID */
7553
+ readonly objectsById: Map<string, ObjectDefinition>;
7554
+ /** Object definitions indexed by name */
7555
+ readonly objectsByName: Map<string, ObjectDefinition>;
7556
+ }
7557
+ /**
7558
+ * Get an ObjectDefinition from context by its ID.
7559
+ *
7560
+ * Returns undefined if no context is set or schema not found.
7561
+ * This allows repositories to fallback to database fetch when needed.
7562
+ *
7563
+ * @param objectId - Object UUID
7564
+ * @returns ObjectDefinition or undefined
7565
+ *
7566
+ * @example
7567
+ * ```typescript
7568
+ * const schema = getSchemaFromContext(objectId);
7569
+ * if (schema) {
7570
+ * // Use cached attributes
7571
+ * return schema.attributes;
7572
+ * }
7573
+ * // Fallback to DB fetch
7574
+ * return this.fetchAttributeDefinitions(objectId);
7575
+ * ```
7576
+ */
7577
+ declare function getSchemaFromContext(objectId: string): ObjectDefinition | undefined;
7578
+ /**
7579
+ * Get an ObjectDefinition from context by its name.
7580
+ *
7581
+ * Returns undefined if no context is set or schema not found.
7582
+ *
7583
+ * @param objectName - Object name (e.g., "products", "contacts")
7584
+ * @returns ObjectDefinition or undefined
7585
+ */
7586
+ declare function getSchemaByNameFromContext(objectName: string): ObjectDefinition | undefined;
7587
+ /**
7588
+ * Check if a schema context is currently set.
7589
+ *
7590
+ * @returns true if a context is set, false otherwise
7591
+ */
7592
+ declare function hasSchemaContext(): boolean;
7593
+ /**
7594
+ * Get the current schema context.
7595
+ *
7596
+ * @returns SchemaContext or undefined if not set
7597
+ */
7598
+ declare function getSchemaContext(): SchemaContext | undefined;
7599
+ /**
7600
+ * Add a schema to the current context.
7601
+ *
7602
+ * This allows enriching the context with additional schemas discovered
7603
+ * during execution (e.g., when RollupService finds related objects).
7604
+ *
7605
+ * No-op if no context is set.
7606
+ *
7607
+ * @param schema - ObjectDefinition to add
7608
+ *
7609
+ * @example
7610
+ * ```typescript
7611
+ * // In RollupService when discovering a related object
7612
+ * const relatedSchema = await this.schemaService.getObjectSchema(relatedId);
7613
+ * addSchemaToContext(relatedSchema);
7614
+ * ```
7615
+ */
7616
+ declare function addSchemaToContext(schema: ObjectDefinition): void;
7617
+ /**
7618
+ * Execute a function within a schema context.
7619
+ *
7620
+ * The context contains all provided schemas indexed by both ID and name
7621
+ * for efficient lookups.
7622
+ *
7623
+ * Supports both sync and async functions with proper type inference.
7624
+ *
7625
+ * @param schemas - ObjectDefinitions to include in context
7626
+ * @param fn - The function to execute within the context
7627
+ * @returns The return value of the function (or Promise if async)
7628
+ *
7629
+ * @example
7630
+ * ```typescript
7631
+ * // Async usage
7632
+ * const result = await runWithSchemaContext([productSchema], async () => {
7633
+ * return this.adapter.objectRecords.list(objectId, options);
7634
+ * });
7635
+ *
7636
+ * // Sync usage
7637
+ * const value = runWithSchemaContext([schema], () => computeLabel(schema));
7638
+ * ```
7639
+ */
7640
+ declare function runWithSchemaContext<T>(schemas: ObjectDefinition[], fn: () => Promise<T>): Promise<T>;
7641
+ declare function runWithSchemaContext<T>(schemas: ObjectDefinition[], fn: () => T): T;
7642
+ /**
7643
+ * Execute a function within a schema context, merging with existing context.
7644
+ *
7645
+ * If there's already a schema context, the new schemas are merged into it.
7646
+ * This is useful for nested operations that need additional schemas.
7647
+ *
7648
+ * Supports both sync and async functions with proper type inference.
7649
+ *
7650
+ * @param schemas - Additional ObjectDefinitions to include
7651
+ * @param fn - The function to execute
7652
+ * @returns The return value of the function (or Promise if async)
7653
+ */
7654
+ declare function runWithMergedSchemaContext<T>(schemas: ObjectDefinition[], fn: () => Promise<T>): Promise<T>;
7655
+ declare function runWithMergedSchemaContext<T>(schemas: ObjectDefinition[], fn: () => T): T;
7656
+
7754
7657
  /**
7755
7658
  * Tenant Context Module
7756
7659
  *
@@ -9304,6 +9207,8 @@ declare class RelationService extends TenantAwareService {
9304
9207
  validateRelations(schema: ObjectDefinition, data: Record<string, unknown>): Promise<RelationValidationResult>;
9305
9208
  /**
9306
9209
  * Validate a single relation attribute value
9210
+ *
9211
+ * Uses batch fetching (findByIds) to avoid N+1 query pattern.
9307
9212
  */
9308
9213
  private validateRelationAttribute;
9309
9214
  /**
@@ -10626,4 +10531,4 @@ type RelationLabelResolver = (ids: string[]) => Promise<Map<string, string>>;
10626
10531
  */
10627
10532
  declare function computeLabelWithRelations(template: string, values: Record<string, unknown>, attributes: Attribute[], resolveRelationIds: RelationLabelResolver): Promise<string>;
10628
10533
 
10629
- export { type FlowRow as $, type Attribute as A, type DirectTableTab as B, type CheckboxAttribute as C, type DateAttribute as D, type WorkflowConfig as E, type FileAttribute as F, type Group as G, type SlotMode as H, type InferAttributeValue as I, type AuthMethod as J, type AuthChannel as K, type LocationAttribute as L, type MultiselectAttribute as M, type NumberAttribute as N, type ObjectAction as O, type PhoneAttribute as P, type ParticipantTemplate as Q, type RichtextAttribute as R, type SystemResource as S, type TextAttribute as T, type UserAttribute as U, type ViewLayout as V, type WorkflowTheme as W, type ConditionGroup as X, type ConditionRule as Y, type WorkflowNode as Z, type WorkflowDefinition as _, type SystemAction as a, toSimpleFilterState as a$, type BlockNoteContent as a0, type StatusGroup as a1, type AttributeGroup as a2, type BaseAttribute as a3, type NumberUnit as a4, type DateFormat as a5, type DateValue as a6, type Phone as a7, type Currency as a8, type Location as a9, type CreateAuditLogInput as aA, type AuditListOptions as aB, type AuditServiceOptions as aC, type StorageProvider as aD, type FileVisibility as aE, type File as aF, type CreateFile as aG, type UpdateFile as aH, type TextFilterOperator as aI, type NumberFilterOperator as aJ, type CheckboxFilterOperator as aK, type DateFilterOperator as aL, type SelectFilterOperator as aM, type MultiselectFilterOperator as aN, type RelationFilterOperator as aO, type FilterOperator as aP, type RelativeDateValue as aQ, type CurrencyFilterValue as aR, type PhoneFilterValue as aS, type FilterValue as aT, type FilterRule as aU, type ExtendedFilterRule as aV, type FilterCombinator as aW, type FilterGroup as aX, type AdvancedFilterState as aY, isAdvancedFilterState as aZ, toAdvancedFilterState as a_, type LocationGranularity as aa, RELATION_TARGET_ANY as ab, type RelationAttribute as ac, isUniversalRelation as ad, type BlockNoteBlock as ae, type BlockNoteCustomInlineContent as af, type BlockNoteDefaultProps as ag, type BlockNoteInlineContent as ah, type BlockNoteLink as ai, type BlockNoteStyledText as aj, type BlockNoteStyles as ak, type BlockNoteTableCell as al, type BlockNoteTableCellProps as am, type BlockNoteTableContent as an, type PartialBlockNoteBlock as ao, type PartialBlockNoteContent as ap, type PartialBlockNoteInlineContent as aq, type PartialBlockNoteLink as ar, type PartialBlockNoteStyledText as as, type PartialBlockNoteTableCell as at, type PartialBlockNoteTableContent as au, type AuditResourceType as av, type AuditAction as aw, type AuditActorType as ax, type AuditChange as ay, type AuditLogEntry as az, type TextAreaAttribute as b, type UserRole as b$, type SortDirection as b0, type QueryState as b1, OPERATORS_BY_TYPE as b2, type NoValueOperator as b3, NO_VALUE_OPERATORS as b4, isNoValueOperator as b5, type FlowSlot as b6, type FlowRowField as b7, type FlowPage as b8, type FlowRelation as b9, type ExtractRecordInput as bA, type ExtractRecordInputStrict as bB, type ExtractRecordUpdate as bC, type ExtractRecordUpdateStrict as bD, type ExtractAttributes as bE, RESERVED_ATTRIBUTE_NAMES as bF, SYSTEM_FIELD_NAMES as bG, type ReservedAttributeName as bH, type SystemFieldName as bI, type Timestamps as bJ, type ObjectAttribute as bK, type CompletionStatus as bL, type ObjectRecord as bM, type PermissionScope as bN, type Role as bO, type Permission as bP, type UserRoleAssignment as bQ, type EffectivePermissions as bR, type ObjectPermissions as bS, type SystemPermissions as bT, type CreateRoleInput as bU, type UpdateRoleInput as bV, type CreatePermissionInput as bW, type AssignRoleInput as bX, type PolicyContext as bY, type RecordPolicy as bZ, PolicyViolationError as b_, type FlowStatus as ba, type FlowDefinition as bb, isFlowDefinition as bc, isFlowPublished as bd, isSystemFlow as be, type GeocodingSuggestion as bf, type GeocodingAutocompleteParams as bg, type ReverseGeocodingParams as bh, type GeocodingParams as bi, type GeocodingAdapter as bj, NoopGeocodingAdapter as bk, type AttributeSchema as bl, type InferRecordFromSchema as bm, type InferRecordWithRequirements as bn, type TypedAttribute as bo, type AttributeMap as bp, type AddAttribute as bq, type InferRecord as br, type InferRecordInput as bs, type InferRecordUpdate as bt, type CustomAttributeValue as bu, type WithCustomAttributes as bv, type RecordMetadata as bw, type SystemFields as bx, type ExtractRecord as by, type ExtractRecordStrict as bz, type RichtextFeature as c, type WorkflowParticipation as c$, type UserStatus as c0, type UserProfile as c1, type CreateUserProfile as c2, type UpdateUserProfile as c3, type InviteUserInput as c4, type TabType as c5, type FormTab as c6, type CustomTab as c7, type ActivityTab as c8, type NotesTab as c9, neq as cA, and as cB, or as cC, inValues as cD, isEmpty as cE, isNotEmpty as cF, type WorkflowSlot as cG, type NodePosition as cH, type CanvasViewport as cI, type WorkflowLayout as cJ, type ParticipantAuthConfig as cK, type WorkflowStatus as cL, isWorkflowDefinition as cM, isWorkflowPublished as cN, isSystemWorkflow as cO, type WorkflowTransition as cP, type WorkflowError as cQ, type PendingAction as cR, type WorkflowInstance as cS, isInstanceTerminal as cT, isInstanceWaiting as cU, canResumeInstance as cV, createStartTransition as cW, type ParticipationStatus as cX, type SignedLinkAuth as cY, type PinCodeAuth as cZ, type ParticipationAuth as c_, type FlowsTab as ca, isFormTab as cb, isTableTab as cc, isDirectTableTab as cd, isInverseTableTab as ce, isCustomTab as cf, isActivityTab as cg, isNotesTab as ch, isFlowsTab as ci, type StartNode as cj, type FormNode as ck, type FormFieldRef as cl, type ConditionNode as cm, type EndNode as cn, type WorkflowNodeType as co, isStartNode as cp, isFormNode as cq, isConditionNode as cr, isEndNode as cs, isSimpleFormNode as ct, isAdvancedFormNode as cu, getNodeOutputs as cv, type ConditionOperator as cw, isConditionRule as cx, isConditionGroup as cy, eq as cz, type CurrencyAttribute as d, createCurrencyValidator as d$, isSignedLinkAuth as d0, isPinCodeAuth as d1, canParticipate as d2, canAuthenticate as d3, canExecuteNode as d4, type GeneratedDocument as d5, type WorkflowExecutionContext as d6, createEmptyContext as d7, getContextValue as d8, setContextValue as d9, textareaConfigSchema as dA, richtextConfigSchema as dB, numberConfigSchema as dC, checkboxConfigSchema as dD, dateConfigSchema as dE, phoneConfigSchema as dF, currencyConfigSchema as dG, statusConfigSchema as dH, locationConfigSchema as dI, selectConfigSchema as dJ, multiselectConfigSchema as dK, fileConfigSchema as dL, userConfigSchema as dM, relationConfigSchema as dN, ratingConfigSchema as dO, formulaConfigSchema as dP, rollupConfigSchema as dQ, attributeConfigSchemas as dR, getAttributeConfigSchema as dS, validateAttributeConfig as dT, parseAttributeConfig as dU, safeParseAttributeConfig as dV, createTextValidator as dW, createNumberValidator as dX, createCheckboxValidator as dY, createDateValidator as dZ, createPhoneValidator as d_, mergeFormToSlot as da, type WorkflowAccessMode as db, type ReadOnlyReason as dc, type FormFieldContext as dd, type FormFieldRow as de, type FormNodeInfo as df, type FormContextResponse as dg, type ThemeLogo as dh, type ThemeColors as di, type ThemeTypography as dj, DEFAULT_THEME as dk, mergeWithDefaults as dl, generateCssVariables as dm, type Uuid as dn, type TenantId as dp, type UserId as dq, asTenantId as dr, asUserId as ds, generateId as dt, generatePrefixedId as du, registry as dv, viewRegistry as dw, type ValidationMessages as dx, DEFAULT_VALIDATION_MESSAGES as dy, textConfigSchema as dz, type Option as e, evaluateCondition as e$, createStatusValidator as e0, createSelectValidator as e1, createMultiselectValidator as e2, createLocationValidator as e3, createFileValidator as e4, createUserValidator as e5, createSingleRelationValidator as e6, createMultiRelationValidator as e7, createRelationValidator as e8, createRatingValidator as e9, initializePinCodeService as eA, type PinCodeGenerationOptions as eB, type PinCodeVerificationResult as eC, type CacheAdapter as eD, type CacheOptions as eE, cacheKeys as eF, cacheTtl as eG, NoopCacheAdapter as eH, type FetchResult as eI, type FormattedRecord as eJ, type GroupedFetchResult as eK, type InsertOptions as eL, type QueryBuilderState as eM, type RegistryMap as eN, type RegistryObjectNames as eO, type ShortcutOperator as eP, createDefaultState as eQ, formatRecord as eR, formatRecords as eS, QueryMultipleResultsError as eT, QueryNoResultError as eU, SHORTCUT_TO_FILTER_OPERATOR as eV, createQueryBuilder as eW, QueryBuilder as eX, type QueryBuilderOptions as eY, type EvaluationResult as eZ, type EvaluationTrace as e_, createFormulaValidator as ea, createRollupValidator as eb, createTextAreaValidator as ec, createRichtextValidator as ed, createAttributeValidator as ee, createFormAttributeValidator as ef, createObjectValidator as eg, type ValidationResult as eh, validateAttribute as ei, validateObject as ej, validateObjectOrThrow as ek, createDraftValidator as el, validateDraft as em, validateDraftOrThrow as en, getMissingRequiredAttributes as eo, isRecordComplete as ep, computeRecordStatus as eq, type DatabaseAdapter as er, ParticipationTokenService as es, getDefaultTokenService as et, initializeTokenService as eu, type ParticipationTokenPayload as ev, type TokenGenerationOptions as ew, type TokenVerificationResult as ex, PinCodeService as ey, getDefaultPinCodeService as ez, type StatusAttribute as f, NoopHookRegistry as f$, evaluate as f0, evaluateWithTrace as f1, TenantContextError as f2, getContext as f3, getTenantId as f4, getUserId as f5, hasContext as f6, runWithContext as f7, withTenantContext as f8, type TenantContext as f9, flattenRelationsForEval as fA, formatFormulaResult as fB, hasRelationReferences as fC, validateFormulaExpression as fD, type FormulaResult as fE, getPathDepth as fF, getRelationPath as fG, getTargetAttributeName as fH, InvalidPathError as fI, MaxDepthExceededError as fJ, parsePath as fK, pathHasManyCardinality as fL, validatePath as fM, type PathCardinality as fN, type PathSegment as fO, type PathSegmentType as fP, type SchemaResolver as fQ, resolveMultiplePaths as fR, resolveSingleValue as fS, traversePath as fT, type TraversalOptions as fU, type TraversalResult as fV, type AttributeChange as fW, type HookContext as fX, type HookDefinition as fY, type HookHandler as fZ, type HookType as f_, createDefaultExecutorRegistry as fa, getDefaultExecutorRegistry as fb, type ExecutorCompleteResult as fc, type ExecutorContext as fd, type ExecutorErrorResult as fe, type ExecutorResult as ff, type ExecutorSuccessResult as fg, type ExecutorWaitResult as fh, type NodeExecutor as fi, complete as fj, error as fk, ExecutorRegistry as fl, success as fm, wait as fn, ConditionExecutor as fo, EndExecutor as fp, FormExecutor as fq, StartExecutor as fr, evaluateFormula as fs, evaluateFormulaAttribute as ft, evaluateFormulaAttributeWithRelations as fu, evaluateFormulaWithRelations as fv, evaluateFormulaWithResult as fw, extractFormulaVariables as fx, extractRelationNames as fy, extractRelationReferences as fz, type SelectAttribute as g, type FieldReadOnlyResult as g$, type HookRegistry as g0, createMockAdapter as g1, defaultPolicyRegistry as g2, PolicyRegistry as g3, notesPolicy as g4, type ObjectsRepository as g5, type AttributesRepository as g6, type UserProfilesRepository as g7, type FilesRepository as g8, type ObjectRecordsRepository as g9, type RelationValidationError as gA, type RelationOption as gB, type RelationOptionsResponse as gC, type GetRelationOptionsParams as gD, type RelationServiceOptions as gE, RelationService as gF, type RollupSchedulerOptions as gG, RollupScheduler as gH, type RollupResult as gI, type RollupServiceOptions as gJ, RollupService as gK, type UserProfileServiceOptions as gL, UserProfileService as gM, type UserValidationResult as gN, type UserValidationError as gO, UserService as gP, type CreateViewInput as gQ, type UpdateViewInput as gR, ViewService as gS, type StartWorkflowInput as gT, type ResumeWorkflowInput as gU, type WorkflowInstanceServiceOptions as gV, WorkflowInstanceService as gW, type CreateParticipationInput as gX, type CreateParticipationResult as gY, type AuthenticationResult as gZ, WorkflowParticipationService as g_, type ViewsRepository as ga, type WorkflowsRepository as gb, type WorkflowInstancesRepository as gc, type WorkflowParticipationsRepository as gd, type AuditRepository as ge, type PermissionsRepository as gf, buildAuditChanges as gg, AuditService as gh, TenantAwareService as gi, TenantAwareRepository as gj, type FileServiceOptions as gk, FileService as gl, GeocodingService as gm, GlobalSearchService as gn, type CreateCustomObjectInput as go, type AddAttributeInput as gp, type UpdateObjectInput as gq, type ObjectSchemaServiceOptions as gr, ObjectSchemaService as gs, type PermissionServiceOptions as gt, PermissionService as gu, type RecordServiceOptions as gv, RecordService as gw, type ResolvedRelations as gx, RelationResolverService as gy, type RelationValidationResult as gz, type SingleRelationAttribute as h, WorkflowRelationService as h0, type CreateWorkflowInput as h1, type UpdateWorkflowInput as h2, WorkflowService as h3, type FileContent as h4, type StorageUploadInput as h5, type StorageUploadResult as h6, type SignedUrlOptions as h7, type StorageAdapter as h8, type UploadFileInput as h9, type ListOptions as hA, type SearchOptions as hB, type GlobalSearchOptions as hC, type GlobalSearchResultItem as hD, type FileListOptions as hE, type DBView as hF, type CreateDBView as hG, type UpdateDBView as hH, type UpsertDBView as hI, type DBWorkflow as hJ, type CreateDBWorkflow as hK, type UpdateDBWorkflow as hL, type DBWorkflowInstance as hM, type CreateDBWorkflowInstance as hN, type UpdateDBWorkflowInstance as hO, type DBWorkflowParticipation as hP, type CreateDBWorkflowParticipation as hQ, type UpdateDBWorkflowParticipation as hR, type OperationResult as hS, type ViewSyncResult as hT, type ViewSyncOptions as hU, syncNativeViews as hV, verifyNativeViewsSync as hW, getViewSyncPreview as hX, type SyncResult as ha, type SyncOptions as hb, syncNativeObjects as hc, verifyNativeObjectsSync as hd, getSyncPreview as he, type FullSyncResult as hf, type FullSyncOptions as hg, syncAll as hh, DEFAULT_LABEL_FALLBACK as hi, renderLabelExpression as hj, isLabelExpression as hk, extractAttributeNames as hl, enrichValuesForDisplay as hm, enrichValuesWithSelectLabels as hn, extractRelationIds as ho, type RelationLabelResolver as hp, computeLabelWithRelations as hq, type DBObject as hr, type CreateDBObject as hs, type UpdateDBObject as ht, type UpsertDBObject as hu, type DBAttribute as hv, type CreateDBAttribute as hw, type UpdateDBAttribute as hx, type UpsertDBAttribute as hy, type CreateObjectRecord as hz, type MultiRelationAttribute as i, type RelationTarget as j, type RatingAttribute as k, type FormulaAttribute as l, type FormulaReturnType as m, type RollupAttribute as n, type RollupFunction as o, type AttributeType as p, type ObjectDefinition as q, type Field as r, type AttributeGroupField as s, type TableTab as t, type InverseTableTab as u, type ViewDefinition as v, type InstanceStatus as w, type Tab as x, type FilterState as y, type SortRule as z };
10534
+ export { type FlowRow as $, type Attribute as A, type DirectTableTab as B, type CheckboxAttribute as C, type DateAttribute as D, type WorkflowConfig as E, type FileAttribute as F, type Group as G, type SlotMode as H, type InferAttributeValue as I, type AuthMethod as J, type AuthChannel as K, type LocationAttribute as L, type MultiselectAttribute as M, type NumberAttribute as N, type ObjectAction as O, type PhoneAttribute as P, type ParticipantTemplate as Q, type RichtextAttribute as R, type SystemResource as S, type TextAttribute as T, type UserAttribute as U, type ViewLayout as V, type WorkflowTheme as W, type ConditionGroup as X, type ConditionRule as Y, type WorkflowNode as Z, type WorkflowDefinition as _, type SystemAction as a, toSimpleFilterState as a$, type BlockNoteContent as a0, type StatusGroup as a1, type AttributeGroup as a2, type BaseAttribute as a3, type NumberUnit as a4, type DateFormat as a5, type DateValue as a6, type Phone as a7, type Currency as a8, type Location as a9, type CreateAuditLogInput as aA, type AuditListOptions as aB, type AuditServiceOptions as aC, type StorageProvider as aD, type FileVisibility as aE, type File as aF, type CreateFile as aG, type UpdateFile as aH, type TextFilterOperator as aI, type NumberFilterOperator as aJ, type CheckboxFilterOperator as aK, type DateFilterOperator as aL, type SelectFilterOperator as aM, type MultiselectFilterOperator as aN, type RelationFilterOperator as aO, type FilterOperator as aP, type RelativeDateValue as aQ, type CurrencyFilterValue as aR, type PhoneFilterValue as aS, type FilterValue as aT, type FilterRule as aU, type ExtendedFilterRule as aV, type FilterCombinator as aW, type FilterGroup as aX, type AdvancedFilterState as aY, isAdvancedFilterState as aZ, toAdvancedFilterState as a_, type LocationGranularity as aa, RELATION_TARGET_ANY as ab, type RelationAttribute as ac, isUniversalRelation as ad, type BlockNoteBlock as ae, type BlockNoteCustomInlineContent as af, type BlockNoteDefaultProps as ag, type BlockNoteInlineContent as ah, type BlockNoteLink as ai, type BlockNoteStyledText as aj, type BlockNoteStyles as ak, type BlockNoteTableCell as al, type BlockNoteTableCellProps as am, type BlockNoteTableContent as an, type PartialBlockNoteBlock as ao, type PartialBlockNoteContent as ap, type PartialBlockNoteInlineContent as aq, type PartialBlockNoteLink as ar, type PartialBlockNoteStyledText as as, type PartialBlockNoteTableCell as at, type PartialBlockNoteTableContent as au, type AuditResourceType as av, type AuditAction as aw, type AuditActorType as ax, type AuditChange as ay, type AuditLogEntry as az, type TextAreaAttribute as b, type UserRole as b$, type SortDirection as b0, type QueryState as b1, OPERATORS_BY_TYPE as b2, type NoValueOperator as b3, NO_VALUE_OPERATORS as b4, isNoValueOperator as b5, type FlowSlot as b6, type FlowRowField as b7, type FlowPage as b8, type FlowRelation as b9, type ExtractRecordInput as bA, type ExtractRecordInputStrict as bB, type ExtractRecordUpdate as bC, type ExtractRecordUpdateStrict as bD, type ExtractAttributes as bE, RESERVED_ATTRIBUTE_NAMES as bF, SYSTEM_FIELD_NAMES as bG, type ReservedAttributeName as bH, type SystemFieldName as bI, type Timestamps as bJ, type ObjectAttribute as bK, type CompletionStatus as bL, type ObjectRecord as bM, type PermissionScope as bN, type Role as bO, type Permission as bP, type UserRoleAssignment as bQ, type EffectivePermissions as bR, type ObjectPermissions as bS, type SystemPermissions as bT, type CreateRoleInput as bU, type UpdateRoleInput as bV, type CreatePermissionInput as bW, type AssignRoleInput as bX, type PolicyContext as bY, type RecordPolicy as bZ, PolicyViolationError as b_, type FlowStatus as ba, type FlowDefinition as bb, isFlowDefinition as bc, isFlowPublished as bd, isSystemFlow as be, type GeocodingSuggestion as bf, type GeocodingAutocompleteParams as bg, type ReverseGeocodingParams as bh, type GeocodingParams as bi, type GeocodingAdapter as bj, NoopGeocodingAdapter as bk, type AttributeSchema as bl, type InferRecordFromSchema as bm, type InferRecordWithRequirements as bn, type TypedAttribute as bo, type AttributeMap as bp, type AddAttribute as bq, type InferRecord as br, type InferRecordInput as bs, type InferRecordUpdate as bt, type CustomAttributeValue as bu, type WithCustomAttributes as bv, type RecordMetadata as bw, type SystemFields as bx, type ExtractRecord as by, type ExtractRecordStrict as bz, type RichtextFeature as c, type WorkflowParticipation as c$, type UserStatus as c0, type UserProfile as c1, type CreateUserProfile as c2, type UpdateUserProfile as c3, type InviteUserInput as c4, type TabType as c5, type FormTab as c6, type CustomTab as c7, type ActivityTab as c8, type NotesTab as c9, neq as cA, and as cB, or as cC, inValues as cD, isEmpty as cE, isNotEmpty as cF, type WorkflowSlot as cG, type NodePosition as cH, type CanvasViewport as cI, type WorkflowLayout as cJ, type ParticipantAuthConfig as cK, type WorkflowStatus as cL, isWorkflowDefinition as cM, isWorkflowPublished as cN, isSystemWorkflow as cO, type WorkflowTransition as cP, type WorkflowError as cQ, type PendingAction as cR, type WorkflowInstance as cS, isInstanceTerminal as cT, isInstanceWaiting as cU, canResumeInstance as cV, createStartTransition as cW, type ParticipationStatus as cX, type SignedLinkAuth as cY, type PinCodeAuth as cZ, type ParticipationAuth as c_, type FlowsTab as ca, isFormTab as cb, isTableTab as cc, isDirectTableTab as cd, isInverseTableTab as ce, isCustomTab as cf, isActivityTab as cg, isNotesTab as ch, isFlowsTab as ci, type StartNode as cj, type FormNode as ck, type FormFieldRef as cl, type ConditionNode as cm, type EndNode as cn, type WorkflowNodeType as co, isStartNode as cp, isFormNode as cq, isConditionNode as cr, isEndNode as cs, isSimpleFormNode as ct, isAdvancedFormNode as cu, getNodeOutputs as cv, type ConditionOperator as cw, isConditionRule as cx, isConditionGroup as cy, eq as cz, type CurrencyAttribute as d, createCurrencyValidator as d$, isSignedLinkAuth as d0, isPinCodeAuth as d1, canParticipate as d2, canAuthenticate as d3, canExecuteNode as d4, type GeneratedDocument as d5, type WorkflowExecutionContext as d6, createEmptyContext as d7, getContextValue as d8, setContextValue as d9, textareaConfigSchema as dA, richtextConfigSchema as dB, numberConfigSchema as dC, checkboxConfigSchema as dD, dateConfigSchema as dE, phoneConfigSchema as dF, currencyConfigSchema as dG, statusConfigSchema as dH, locationConfigSchema as dI, selectConfigSchema as dJ, multiselectConfigSchema as dK, fileConfigSchema as dL, userConfigSchema as dM, relationConfigSchema as dN, ratingConfigSchema as dO, formulaConfigSchema as dP, rollupConfigSchema as dQ, attributeConfigSchemas as dR, getAttributeConfigSchema as dS, validateAttributeConfig as dT, parseAttributeConfig as dU, safeParseAttributeConfig as dV, createTextValidator as dW, createNumberValidator as dX, createCheckboxValidator as dY, createDateValidator as dZ, createPhoneValidator as d_, mergeFormToSlot as da, type WorkflowAccessMode as db, type ReadOnlyReason as dc, type FormFieldContext as dd, type FormFieldRow as de, type FormNodeInfo as df, type FormContextResponse as dg, type ThemeLogo as dh, type ThemeColors as di, type ThemeTypography as dj, DEFAULT_THEME as dk, mergeWithDefaults as dl, generateCssVariables as dm, type Uuid as dn, type TenantId as dp, type UserId as dq, asTenantId as dr, asUserId as ds, generateId as dt, generatePrefixedId as du, registry as dv, viewRegistry as dw, type ValidationMessages as dx, DEFAULT_VALIDATION_MESSAGES as dy, textConfigSchema as dz, type Option as e, evaluateCondition as e$, createStatusValidator as e0, createSelectValidator as e1, createMultiselectValidator as e2, createLocationValidator as e3, createFileValidator as e4, createUserValidator as e5, createSingleRelationValidator as e6, createMultiRelationValidator as e7, createRelationValidator as e8, createRatingValidator as e9, initializePinCodeService as eA, type PinCodeGenerationOptions as eB, type PinCodeVerificationResult as eC, type CacheAdapter as eD, type CacheOptions as eE, cacheKeys as eF, cacheTtl as eG, NoopCacheAdapter as eH, type FetchResult as eI, type FormattedRecord as eJ, type GroupedFetchResult as eK, type InsertOptions as eL, type QueryBuilderState as eM, type RegistryMap as eN, type RegistryObjectNames as eO, type ShortcutOperator as eP, createDefaultState as eQ, formatRecord as eR, formatRecords as eS, QueryMultipleResultsError as eT, QueryNoResultError as eU, SHORTCUT_TO_FILTER_OPERATOR as eV, createQueryBuilder as eW, QueryBuilder as eX, type QueryBuilderOptions as eY, type EvaluationResult as eZ, type EvaluationTrace as e_, createFormulaValidator as ea, createRollupValidator as eb, createTextAreaValidator as ec, createRichtextValidator as ed, createAttributeValidator as ee, createFormAttributeValidator as ef, createObjectValidator as eg, type ValidationResult as eh, validateAttribute as ei, validateObject as ej, validateObjectOrThrow as ek, createDraftValidator as el, validateDraft as em, validateDraftOrThrow as en, getMissingRequiredAttributes as eo, isRecordComplete as ep, computeRecordStatus as eq, type DatabaseAdapter as er, ParticipationTokenService as es, getDefaultTokenService as et, initializeTokenService as eu, type ParticipationTokenPayload as ev, type TokenGenerationOptions as ew, type TokenVerificationResult as ex, PinCodeService as ey, getDefaultPinCodeService as ez, type StatusAttribute as f, traversePath as f$, evaluate as f0, evaluateWithTrace as f1, TenantContextError as f2, addSchemaToContext as f3, getSchemaByNameFromContext as f4, getSchemaContext as f5, getSchemaFromContext as f6, hasSchemaContext as f7, runWithMergedSchemaContext as f8, runWithSchemaContext as f9, evaluateFormula as fA, evaluateFormulaAttribute as fB, evaluateFormulaAttributeWithRelations as fC, evaluateFormulaWithRelations as fD, evaluateFormulaWithResult as fE, extractFormulaVariables as fF, extractRelationNames as fG, extractRelationReferences as fH, flattenRelationsForEval as fI, formatFormulaResult as fJ, hasRelationReferences as fK, validateFormulaExpression as fL, type FormulaResult as fM, getPathDepth as fN, getRelationPath as fO, getTargetAttributeName as fP, InvalidPathError as fQ, MaxDepthExceededError as fR, parsePath as fS, pathHasManyCardinality as fT, validatePath as fU, type PathCardinality as fV, type PathSegment as fW, type PathSegmentType as fX, type SchemaResolver as fY, resolveMultiplePaths as fZ, resolveSingleValue as f_, type SchemaContext as fa, getContext as fb, getTenantId as fc, getUserId as fd, hasContext as fe, runWithContext as ff, withTenantContext as fg, type TenantContext as fh, createDefaultExecutorRegistry as fi, getDefaultExecutorRegistry as fj, type ExecutorCompleteResult as fk, type ExecutorContext as fl, type ExecutorErrorResult as fm, type ExecutorResult as fn, type ExecutorSuccessResult as fo, type ExecutorWaitResult as fp, type NodeExecutor as fq, complete as fr, error as fs, ExecutorRegistry as ft, success as fu, wait as fv, ConditionExecutor as fw, EndExecutor as fx, FormExecutor as fy, StartExecutor as fz, type SelectAttribute as g, type UpdateViewInput as g$, type TraversalOptions as g0, type TraversalResult as g1, type AttributeChange as g2, type HookContext as g3, type HookDefinition as g4, type HookHandler as g5, type HookType as g6, NoopHookRegistry as g7, type HookRegistry as g8, createMockAdapter as g9, type UpdateObjectInput as gA, type ObjectSchemaServiceOptions as gB, ObjectSchemaService as gC, type PermissionServiceOptions as gD, PermissionService as gE, type RecordServiceOptions as gF, RecordService as gG, type ResolvedRelations as gH, RelationResolverService as gI, type RelationValidationResult as gJ, type RelationValidationError as gK, type RelationOption as gL, type RelationOptionsResponse as gM, type GetRelationOptionsParams as gN, type RelationServiceOptions as gO, RelationService as gP, type RollupSchedulerOptions as gQ, RollupScheduler as gR, type RollupResult as gS, type RollupServiceOptions as gT, RollupService as gU, type UserProfileServiceOptions as gV, UserProfileService as gW, type UserValidationResult as gX, type UserValidationError as gY, UserService as gZ, type CreateViewInput as g_, defaultPolicyRegistry as ga, PolicyRegistry as gb, notesPolicy as gc, type ObjectsRepository as gd, type AttributesRepository as ge, type UserProfilesRepository as gf, type FilesRepository as gg, type ObjectRecordsRepository as gh, type ViewsRepository as gi, type WorkflowsRepository as gj, type WorkflowInstancesRepository as gk, type WorkflowParticipationsRepository as gl, type AuditRepository as gm, type PermissionsRepository as gn, buildAuditChanges as go, AuditService as gp, TenantAwareService as gq, TenantAwareRepository as gr, type SchemaContextAware as gs, SchemaContextAwareRepository as gt, type FileServiceOptions as gu, FileService as gv, GeocodingService as gw, GlobalSearchService as gx, type CreateCustomObjectInput as gy, type AddAttributeInput as gz, type SingleRelationAttribute as h, type UpdateDBWorkflowParticipation as h$, ViewService as h0, type StartWorkflowInput as h1, type ResumeWorkflowInput as h2, type WorkflowInstanceServiceOptions as h3, WorkflowInstanceService as h4, type CreateParticipationInput as h5, type CreateParticipationResult as h6, type AuthenticationResult as h7, WorkflowParticipationService as h8, type FieldReadOnlyResult as h9, computeLabelWithRelations as hA, type DBObject as hB, type CreateDBObject as hC, type UpdateDBObject as hD, type UpsertDBObject as hE, type DBAttribute as hF, type CreateDBAttribute as hG, type UpdateDBAttribute as hH, type UpsertDBAttribute as hI, type CreateObjectRecord as hJ, type ListOptions as hK, type SearchOptions as hL, type GlobalSearchOptions as hM, type GlobalSearchResultItem as hN, type FileListOptions as hO, type DBView as hP, type CreateDBView as hQ, type UpdateDBView as hR, type UpsertDBView as hS, type DBWorkflow as hT, type CreateDBWorkflow as hU, type UpdateDBWorkflow as hV, type DBWorkflowInstance as hW, type CreateDBWorkflowInstance as hX, type UpdateDBWorkflowInstance as hY, type DBWorkflowParticipation as hZ, type CreateDBWorkflowParticipation as h_, WorkflowRelationService as ha, type CreateWorkflowInput as hb, type UpdateWorkflowInput as hc, WorkflowService as hd, type FileContent as he, type StorageUploadInput as hf, type StorageUploadResult as hg, type SignedUrlOptions as hh, type StorageAdapter as hi, type UploadFileInput as hj, type SyncResult as hk, type SyncOptions as hl, syncNativeObjects as hm, verifyNativeObjectsSync as hn, getSyncPreview as ho, type FullSyncResult as hp, type FullSyncOptions as hq, syncAll as hr, DEFAULT_LABEL_FALLBACK as hs, renderLabelExpression as ht, isLabelExpression as hu, extractAttributeNames as hv, enrichValuesForDisplay as hw, enrichValuesWithSelectLabels as hx, extractRelationIds as hy, type RelationLabelResolver as hz, type MultiRelationAttribute as i, type OperationResult as i0, type ViewSyncResult as i1, type ViewSyncOptions as i2, syncNativeViews as i3, verifyNativeViewsSync as i4, getViewSyncPreview as i5, type RelationTarget as j, type RatingAttribute as k, type FormulaAttribute as l, type FormulaReturnType as m, type RollupAttribute as n, type RollupFunction as o, type AttributeType as p, type ObjectDefinition as q, type Field as r, type AttributeGroupField as s, type TableTab as t, type InverseTableTab as u, type ViewDefinition as v, type InstanceStatus as w, type Tab as x, type FilterState as y, type SortRule as z };