@stndrds/schema 0.1.0-alpha.57 → 0.1.0-alpha.59

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.
@@ -1,4 +1,6 @@
1
- export { i0 as AIConversationsRepository, i1 as AIUsageMetricsRepository, i2 as AIUserMemoryRepository, is as AddAttributeInput, hQ as AttributeChange, i3 as AttributesRepository, i4 as AuditRepository, jF as AuditService, io as BaseRepository, im as BaseService, ge as CacheAdapter, gc as CacheKeyType, gf as CacheOptions, cX as CompletionStatus, hh as ConditionExecutor, ir as CreateCustomObjectInput, kz as CreateDBAttribute, kv as CreateDBObject, kJ as CreateDBView, kN as CreateDBViewOverlay, kQ as CreateDBWorkflow, kZ as CreateDBWorkflowAccessGrant, kT as CreateDBWorkflowInstance, kW as CreateDBWorkflowInvitation, ji as CreateGrantResult, kC as CreateObjectRecord, jU as CreateRecordDocumentInput, jV as CreateRecordDocumentResult, k2 as CreateViewInput, jw as CreateWorkflowInput, ky as DBAttribute, ku as DBObject, kI as DBView, kM as DBViewOverlay, kP as DBWorkflow, kY as DBWorkflowAccessGrant, kS as DBWorkflowInstance, kV as DBWorkflowInvitation, kl as DEFAULT_LABEL_FALLBACK, g5 as DatabaseAdapter, hi as DocumentExecutor, jI as DocumentGenerationNotConfiguredError, jJ as DocumentGenerationService, i5 as DocumentGenerationTemplateListOptions, jH as DocumentGenerationTemplateNotFoundError, i6 as DocumentGenerationTemplatesRepository, i7 as DocumentJobsRepository, jK as DocumentProcessingConfig, jc as DocumentProcessingHook, jb as DocumentProcessingHookOptions, jL as DocumentProcessingService, jP as DocumentRenderError, jN as DocumentRendererOptions, jR as DocumentRendererService, jX as DocumentService, jW as DocumentServiceOptions, i8 as DocumentSlotsRepository, jS as DocumentTemplateService, ia as DocumentTemplatesRepository, i9 as DocumentsRepository, hj as EndExecutor, gB as EvaluationResult, gC as EvaluationTrace, h5 as ExecutorCompleteResult, h6 as ExecutorContext, h7 as ExecutorErrorResult, he as ExecutorRegistry, h8 as ExecutorResult, h9 as ExecutorSuccessResult, ha as ExecutorWaitResult, gP as FeatureFlagsContext, gH as FeatureFlagsContextError, gk as FetchResult, ju as FieldReadOnlyResult, k7 as FileContent, kH as FileListOptions, jZ as FileService, jY as FileServiceOptions, ib as FilesRepository, hk as FormExecutor, gl as FormattedRecord, iP as FormulaResolverService, iO as FormulaResolverServiceOptions, hy as FormulaResult, kj as FullSyncOptions, ki as FullSyncResult, cr as GeocodingAdapter, co as GeocodingAutocompleteParams, cq as GeocodingParams, j_ as GeocodingService, cn as GeocodingSuggestion, iH as GetRelationOptionsParams, k5 as GetViewOptions, k4 as GetViewsOptions, kF as GlobalSearchOptions, kG as GlobalSearchResultItem, j$ as GlobalSearchService, je as GrantExpiredError, jd as GrantNotFoundError, jf as GrantRevokedError, jh as GrantServiceConfig, gm as GroupedFetchResult, hR as HookContext, hS as HookDefinition, hT as HookHandler, hW as HookRegistry, hU as HookType, gn as InsertOptions, hC as InvalidPathError, jr as InvitationAlreadyAcceptedError, jq as InvitationExpiredError, jp as InvitationNotFoundError, js as InvitationRevokedError, jo as InvitationServiceConfig, g7 as JwtVerificationResult, j2 as LabelResolver, kD as ListOptions, g8 as MagicLinkPayload, hD as MaxDepthExceededError, hY as MockStores, hb as NodeExecutor, gj as NoopCacheAdapter, cs as NoopGeocodingAdapter, hV as NoopHookRegistry, ic as ObjectRecordsRepository, iv as ObjectSchemaService, iu as ObjectSchemaServiceOptions, id as ObjectsRepository, k$ as OperationResult, hH as PathCardinality, hI as PathSegment, hJ as PathSegmentType, k1 as PermissionService, k0 as PermissionServiceOptions, ie as PermissionsRepository, d8 as PolicyContext, h_ as PolicyRegistry, da as PolicyViolationError, gz as QueryBuilder, gA as QueryBuilderOptions, go as QueryBuilderState, gv as QueryMultipleResultsError, gw as QueryNoResultError, iz as QueryOptions, iB as QueryResult, jT as RecordDocumentsResult, d9 as RecordPolicy, iC as RecordQueryService, iy as RecordQueryServiceOptions, iM as RecordResolverService, ix as RecordService, iw as RecordServiceOptions, gp as RegistryMap, gq as RegistryObjectNames, ks as RelationLabelResolver, iF as RelationOption, iG as RelationOptionsResponse, iL as RelationService, iI as RelationServiceOptions, iE as RelationValidationError, iD as RelationValidationResult, jM as RenderDocumentInput, jO as RenderDocumentResult, iJ as ResolveIdsBatchRequest, iK as ResolveIdsBatchResponse, iN as ResolvedRelations, jl as ResumeWorkflowInput, cp as ReverseGeocodingParams, ja as RollupCascadeContext, iQ as RollupResult, iU as RollupScheduler, iT as RollupSchedulerOptions, iS as RollupService, iR as RollupServiceOptions, gx as SHORTCUT_TO_FILTER_OPERATOR, gX as SchemaContext, ip as SchemaContextAware, iq as SchemaContextAwareRepository, hK as SchemaResolver, kE as SearchOptions, iA as SearchQueryOptions, gr as ShortcutOperator, ka as SignedUrlOptions, hl as StartExecutor, jk as StartWorkflowInput, kb as StorageAdapter, jQ as StorageDownloadNotSupportedError, k8 as StorageUploadInput, k9 as StorageUploadResult, ke as SyncOptions, kd as SyncResult, h2 as TenantContext, gG as TenantContextError, jg as TokenRevokedError, hO as TraversalOptions, hP as TraversalResult, kA as UpdateDBAttribute, kw as UpdateDBObject, kK as UpdateDBView, kO as UpdateDBViewOverlay, kR as UpdateDBWorkflow, k_ as UpdateDBWorkflowAccessGrant, kU as UpdateDBWorkflowInstance, kX as UpdateDBWorkflowInvitation, it as UpdateObjectInput, k3 as UpdateViewInput, jx as UpdateWorkflowInput, kc as UploadFileInput, kB as UpsertDBAttribute, kx as UpsertDBObject, kL as UpsertDBView, jE as UserProfileService, jD as UserProfileServiceOptions, ig as UserProfilesRepository, jC as UserService, jB as UserValidationError, jA as UserValidationResult, g4 as ViewOverlaysRepository, k6 as ViewService, l1 as ViewSyncLogger, l2 as ViewSyncOptions, l0 as ViewSyncResult, ih as ViewsRepository, jj as WorkflowAccessGrantService, ii as WorkflowAccessGrantsRepository, g9 as WorkflowAccessPayload, jn as WorkflowInstanceService, jm as WorkflowInstanceServiceOptions, ij as WorkflowInstancesRepository, jt as WorkflowInvitationService, ik as WorkflowInvitationsRepository, ga as WorkflowJwtConfig, gb as WorkflowJwtPayload, g6 as WorkflowJwtService, jv as WorkflowRelationService, jz as WorkflowService, jy as WorkflowServiceOptions, il as WorkflowsRepository, gQ as addSchemaToContext, iV as applyDefaultValues, jG as buildAuditChanges, iY as buildPolicyContext, gg as cacheKeys, gh as cacheTtl, iW as checkPermission, iZ as checkRecordAccess, i$ as checkRecordDeleteOrThrow, i_ as checkRecordModifyOrThrow, j0 as checkSharedObjectWriteAccess, hc as complete, j1 as computeLabel, kt as computeLabelWithRelations, j5 as createContextForCreate, j7 as createContextForDelete, j8 as createContextForRestore, j6 as createContextForUpdate, h3 as createDefaultExecutorRegistry, gs as createDefaultState, hX as createMockAdapter, gy as createQueryBuilder, hZ as defaultPolicyRegistry, gi as defaultTtl, j4 as enrichRecordsWithFormulas, kp as enrichValuesForDisplay, kq as enrichValuesWithSelectLabels, j3 as enrichWithFormulas, hd as error, gE as evaluate, gD as evaluateCondition, hm as evaluateFormula, hn as evaluateFormulaAttribute, ho as evaluateFormulaAttributeWithRelations, hp as evaluateFormulaWithRelations, hq as evaluateFormulaWithResult, gF as evaluateWithTrace, ko as extractAttributeNames, hr as extractFormulaVariables, kr as extractRelationIds, hs as extractRelationNames, ht as extractRelationReferences, hu as flattenRelationsForEval, hv as formatFormulaResult, gt as formatRecord, gu as formatRecords, gY as getContext, h4 as getDefaultExecutorRegistry, gI as getFeatureFlags, gJ as getFeatureValue, hz as getPathDepth, iX as getPolicy, hA as getRelationPath, gR as getSchemaByNameFromContext, gS as getSchemaContext, gT as getSchemaFromContext, kh as getSyncPreview, hB as getTargetAttributeName, gZ as getTenantId, g_ as getUserId, l7 as getViewSeedPreview, l8 as getViewSyncPreview, g$ as hasContext, gK as hasFeatureFlagsContext, hw as hasRelationReferences, gU as hasSchemaContext, gd as hashOptions, gL as isFeatureEnabled, kn as isLabelExpression, h$ as notesPolicy, hE as parsePath, hF as pathHasManyCardinality, j9 as recalculateParentRollups, km as renderLabelExpression, hL as resolveMultiplePaths, hM as resolveSingleValue, h0 as runWithContext, gM as runWithFeatureFlags, gV as runWithMergedSchemaContext, gW as runWithSchemaContext, l3 as seedRegistryViews, hf as success, kk as syncAll, kf as syncNativeObjects, l4 as syncNativeViews, hN as traversePath, gN as tryGetFeatureValue, hx as validateFormulaExpression, hG as validatePath, kg as verifyNativeObjectsSync, l6 as verifyNativeViewsSync, l5 as verifyRegistryViewsSeeded, hg as wait, gO as withFeatureFlags, h1 as withTenantContext } from './runtime-BqJdmg_4.mjs';
1
+ export { fY as AIConversationsRepository, fZ as AIUsageMetricsRepository, f_ as AIUserMemoryRepository, gm as AddAttributeInput, fM as AttributeChange, f$ as AttributesRepository, g0 as AuditRepository, hC as AuditService, gi as BaseRepository, gh as BaseService, ea as CacheAdapter, e8 as CacheKeyType, eb as CacheOptions, fd as ConditionExecutor, gl as CreateCustomObjectInput, iy as CreateDBAttribute, iu as CreateDBObject, iI as CreateDBView, iM as CreateDBViewOverlay, iP as CreateDBWorkflow, iY as CreateDBWorkflowAccessGrant, iS as CreateDBWorkflowInstance, iV as CreateDBWorkflowInvitation, hg as CreateGrantResult, iB as CreateObjectRecord, hR as CreateRecordDocumentInput, hS as CreateRecordDocumentResult, h$ as CreateViewInput, ht as CreateWorkflowInput, ix as DBAttribute, it as DBObject, iH as DBView, iL as DBViewOverlay, iO as DBWorkflow, iX as DBWorkflowAccessGrant, iR as DBWorkflowInstance, iU as DBWorkflowInvitation, ij as DEFAULT_LABEL_FALLBACK, e1 as DatabaseAdapter, fe as DocumentExecutor, hF as DocumentGenerationNotConfiguredError, hG as DocumentGenerationService, g1 as DocumentGenerationTemplateListOptions, hE as DocumentGenerationTemplateNotFoundError, g2 as DocumentGenerationTemplatesRepository, g3 as DocumentJobsRepository, hH as DocumentProcessingConfig, ha as DocumentProcessingHook, h9 as DocumentProcessingHookOptions, hI as DocumentProcessingService, hM as DocumentRenderError, hK as DocumentRendererOptions, hO as DocumentRendererService, hU as DocumentService, hT as DocumentServiceOptions, g4 as DocumentSlotsRepository, hP as DocumentTemplateService, g6 as DocumentTemplatesRepository, g5 as DocumentsRepository, ff as EndExecutor, ex as EvaluationResult, ey as EvaluationTrace, f1 as ExecutorCompleteResult, f2 as ExecutorContext, f3 as ExecutorErrorResult, fa as ExecutorRegistry, f4 as ExecutorResult, f5 as ExecutorSuccessResult, f6 as ExecutorWaitResult, eL as FeatureFlagsContext, eD as FeatureFlagsContextError, eg as FetchResult, i4 as FileContent, iG as FileListOptions, hW as FileService, hV as FileServiceOptions, g7 as FilesRepository, fg as FormExecutor, eh as FormattedRecord, gN as FormulaResolverService, gM as FormulaResolverServiceOptions, fu as FormulaResult, ih as FullSyncOptions, ig as FullSyncResult, bA as GeocodingAdapter, bx as GeocodingAutocompleteParams, bz as GeocodingParams, hX as GeocodingService, bw as GeocodingSuggestion, gB as GetRelationOptionsParams, i2 as GetViewOptions, i1 as GetViewsOptions, iE as GlobalSearchOptions, iF as GlobalSearchResultItem, hY as GlobalSearchService, hc as GrantExpiredError, hb as GrantNotFoundError, hd as GrantRevokedError, hf as GrantServiceConfig, ei as GroupedFetchResult, fN as HookContext, fO as HookDefinition, fP as HookHandler, fS as HookRegistry, fQ as HookType, gI as HybridRelationValue, ej as InsertOptions, fy as InvalidPathError, hp as InvitationAlreadyAcceptedError, ho as InvitationExpiredError, hn as InvitationNotFoundError, hq as InvitationRevokedError, hm as InvitationServiceConfig, e3 as JwtVerificationResult, h0 as LabelResolver, iC as ListOptions, e4 as MagicLinkPayload, fz as MaxDepthExceededError, fU as MockStores, gG as MultiRelationValue, f7 as NodeExecutor, ef as NoopCacheAdapter, bB as NoopGeocodingAdapter, fR as NoopHookRegistry, g8 as ObjectRecordsRepository, gp as ObjectSchemaService, go as ObjectSchemaServiceOptions, g9 as ObjectsRepository, i_ as OperationResult, fD as PathCardinality, fE as PathSegment, fF as PathSegmentType, h_ as PermissionService, hZ as PermissionServiceOptions, ga as PermissionsRepository, c8 as PolicyContext, fW as PolicyRegistry, ca as PolicyViolationError, ev as QueryBuilder, ew as QueryBuilderOptions, ek as QueryBuilderState, er as QueryMultipleResultsError, es as QueryNoResultError, gt as QueryOptions, gv as QueryResult, hQ as RecordDocumentsResult, c9 as RecordPolicy, gw as RecordQueryService, gs as RecordQueryServiceOptions, gK as RecordResolverService, gr as RecordService, gq as RecordServiceOptions, el as RegistryMap, em as RegistryObjectNames, d_ as RelationAttributeInput, d$ as RelationAttributeRow, e0 as RelationAttributesRepository, ir as RelationLabelResolver, gz as RelationOption, gA as RelationOptionsResponse, gJ as RelationPropertiesService, gF as RelationService, gC as RelationServiceOptions, gy as RelationValidationError, gx as RelationValidationResult, hJ as RenderDocumentInput, hL as RenderDocumentResult, gD as ResolveIdsBatchRequest, gE as ResolveIdsBatchResponse, gL as ResolvedRelations, hj as ResumeWorkflowInput, by as ReverseGeocodingParams, h8 as RollupCascadeContext, gO as RollupResult, gS as RollupScheduler, gR as RollupSchedulerOptions, gQ as RollupService, gP as RollupServiceOptions, et as SHORTCUT_TO_FILTER_OPERATOR, eT as SchemaContext, gj as SchemaContextAware, gk as SchemaContextAwareRepository, fG as SchemaResolver, iD as SearchOptions, gu as SearchQueryOptions, en as ShortcutOperator, i7 as SignedUrlOptions, gH as SingleRelationValue, fh as StartExecutor, hi as StartWorkflowInput, i8 as StorageAdapter, hN as StorageDownloadNotSupportedError, i5 as StorageUploadInput, i6 as StorageUploadResult, ib as SyncOptions, ia as SyncResult, e_ as TenantContext, eC as TenantContextError, he as TokenRevokedError, fK as TraversalOptions, fL as TraversalResult, iz as UpdateDBAttribute, iv as UpdateDBObject, iJ as UpdateDBView, iN as UpdateDBViewOverlay, iQ as UpdateDBWorkflow, iZ as UpdateDBWorkflowAccessGrant, iT as UpdateDBWorkflowInstance, iW as UpdateDBWorkflowInvitation, gn as UpdateObjectInput, i0 as UpdateViewInput, hu as UpdateWorkflowInput, i9 as UploadFileInput, iA as UpsertDBAttribute, iw as UpsertDBObject, iK as UpsertDBView, hB as UserProfileService, hA as UserProfileServiceOptions, gb as UserProfilesRepository, hz as UserService, hy as UserValidationError, hx as UserValidationResult, dZ as ViewOverlaysRepository, i3 as ViewService, j0 as ViewSyncLogger, j1 as ViewSyncOptions, i$ as ViewSyncResult, gc as ViewsRepository, hh as WorkflowAccessGrantService, gd as WorkflowAccessGrantsRepository, e5 as WorkflowAccessPayload, hl as WorkflowInstanceService, hk as WorkflowInstanceServiceOptions, ge as WorkflowInstancesRepository, hr as WorkflowInvitationService, gf as WorkflowInvitationsRepository, e6 as WorkflowJwtConfig, e7 as WorkflowJwtPayload, e2 as WorkflowJwtService, hs as WorkflowRelationService, hw as WorkflowService, hv as WorkflowServiceOptions, gg as WorkflowsRepository, eM as addSchemaToContext, gT as applyDefaultValues, hD as buildAuditChanges, gW as buildPolicyContext, ec as cacheKeys, ed as cacheTtl, gU as checkPermission, gX as checkRecordAccess, gZ as checkRecordDeleteOrThrow, gY as checkRecordModifyOrThrow, g_ as checkSharedObjectWriteAccess, f8 as complete, g$ as computeLabel, is as computeLabelWithRelations, h3 as createContextForCreate, h5 as createContextForDelete, h6 as createContextForRestore, h4 as createContextForUpdate, e$ as createDefaultExecutorRegistry, eo as createDefaultState, fT as createMockAdapter, eu as createQueryBuilder, fV as defaultPolicyRegistry, ee as defaultTtl, h2 as enrichRecordsWithFormulas, io as enrichValuesForDisplay, ip as enrichValuesWithSelectLabels, h1 as enrichWithFormulas, f9 as error, eA as evaluate, ez as evaluateCondition, fi as evaluateFormula, fj as evaluateFormulaAttribute, fk as evaluateFormulaAttributeWithRelations, fl as evaluateFormulaWithRelations, fm as evaluateFormulaWithResult, eB as evaluateWithTrace, im as extractAttributeNames, fn as extractFormulaVariables, iq as extractRelationIds, fo as extractRelationNames, fp as extractRelationReferences, fq as flattenRelationsForEval, fr as formatFormulaResult, ep as formatRecord, eq as formatRecords, eU as getContext, f0 as getDefaultExecutorRegistry, eE as getFeatureFlags, eF as getFeatureValue, fv as getPathDepth, gV as getPolicy, fw as getRelationPath, eN as getSchemaByNameFromContext, eO as getSchemaContext, eP as getSchemaFromContext, ie as getSyncPreview, fx as getTargetAttributeName, eV as getTenantId, eW as getUserId, j6 as getViewSeedPreview, j7 as getViewSyncPreview, eX as hasContext, eG as hasFeatureFlagsContext, fs as hasRelationReferences, eQ as hasSchemaContext, e9 as hashOptions, eH as isFeatureEnabled, il as isLabelExpression, fX as notesPolicy, fA as parsePath, fB as pathHasManyCardinality, h7 as recalculateParentRollups, ik as renderLabelExpression, fH as resolveMultiplePaths, fI as resolveSingleValue, eY as runWithContext, eI as runWithFeatureFlags, eR as runWithMergedSchemaContext, eS as runWithSchemaContext, j2 as seedRegistryViews, fb as success, ii as syncAll, ic as syncNativeObjects, j3 as syncNativeViews, fJ as traversePath, eJ as tryGetFeatureValue, ft as validateFormulaExpression, fC as validatePath, id as verifyNativeObjectsSync, j5 as verifyNativeViewsSync, j4 as verifyRegistryViewsSeeded, fc as wait, eK as withFeatureFlags, eZ as withTenantContext } from './runtime-Chz-bTNq.mjs';
2
+ export { ah as CompletionStatus } from './validators-BIAmz0CD.mjs';
2
3
  import '@stndrds/constants';
4
+ import './utils.mjs';
3
5
  import 'jose';
4
6
  import 'zod';
package/dist/runtime.d.ts CHANGED
@@ -1,4 +1,6 @@
1
- export { i0 as AIConversationsRepository, i1 as AIUsageMetricsRepository, i2 as AIUserMemoryRepository, is as AddAttributeInput, hQ as AttributeChange, i3 as AttributesRepository, i4 as AuditRepository, jF as AuditService, io as BaseRepository, im as BaseService, ge as CacheAdapter, gc as CacheKeyType, gf as CacheOptions, cX as CompletionStatus, hh as ConditionExecutor, ir as CreateCustomObjectInput, kz as CreateDBAttribute, kv as CreateDBObject, kJ as CreateDBView, kN as CreateDBViewOverlay, kQ as CreateDBWorkflow, kZ as CreateDBWorkflowAccessGrant, kT as CreateDBWorkflowInstance, kW as CreateDBWorkflowInvitation, ji as CreateGrantResult, kC as CreateObjectRecord, jU as CreateRecordDocumentInput, jV as CreateRecordDocumentResult, k2 as CreateViewInput, jw as CreateWorkflowInput, ky as DBAttribute, ku as DBObject, kI as DBView, kM as DBViewOverlay, kP as DBWorkflow, kY as DBWorkflowAccessGrant, kS as DBWorkflowInstance, kV as DBWorkflowInvitation, kl as DEFAULT_LABEL_FALLBACK, g5 as DatabaseAdapter, hi as DocumentExecutor, jI as DocumentGenerationNotConfiguredError, jJ as DocumentGenerationService, i5 as DocumentGenerationTemplateListOptions, jH as DocumentGenerationTemplateNotFoundError, i6 as DocumentGenerationTemplatesRepository, i7 as DocumentJobsRepository, jK as DocumentProcessingConfig, jc as DocumentProcessingHook, jb as DocumentProcessingHookOptions, jL as DocumentProcessingService, jP as DocumentRenderError, jN as DocumentRendererOptions, jR as DocumentRendererService, jX as DocumentService, jW as DocumentServiceOptions, i8 as DocumentSlotsRepository, jS as DocumentTemplateService, ia as DocumentTemplatesRepository, i9 as DocumentsRepository, hj as EndExecutor, gB as EvaluationResult, gC as EvaluationTrace, h5 as ExecutorCompleteResult, h6 as ExecutorContext, h7 as ExecutorErrorResult, he as ExecutorRegistry, h8 as ExecutorResult, h9 as ExecutorSuccessResult, ha as ExecutorWaitResult, gP as FeatureFlagsContext, gH as FeatureFlagsContextError, gk as FetchResult, ju as FieldReadOnlyResult, k7 as FileContent, kH as FileListOptions, jZ as FileService, jY as FileServiceOptions, ib as FilesRepository, hk as FormExecutor, gl as FormattedRecord, iP as FormulaResolverService, iO as FormulaResolverServiceOptions, hy as FormulaResult, kj as FullSyncOptions, ki as FullSyncResult, cr as GeocodingAdapter, co as GeocodingAutocompleteParams, cq as GeocodingParams, j_ as GeocodingService, cn as GeocodingSuggestion, iH as GetRelationOptionsParams, k5 as GetViewOptions, k4 as GetViewsOptions, kF as GlobalSearchOptions, kG as GlobalSearchResultItem, j$ as GlobalSearchService, je as GrantExpiredError, jd as GrantNotFoundError, jf as GrantRevokedError, jh as GrantServiceConfig, gm as GroupedFetchResult, hR as HookContext, hS as HookDefinition, hT as HookHandler, hW as HookRegistry, hU as HookType, gn as InsertOptions, hC as InvalidPathError, jr as InvitationAlreadyAcceptedError, jq as InvitationExpiredError, jp as InvitationNotFoundError, js as InvitationRevokedError, jo as InvitationServiceConfig, g7 as JwtVerificationResult, j2 as LabelResolver, kD as ListOptions, g8 as MagicLinkPayload, hD as MaxDepthExceededError, hY as MockStores, hb as NodeExecutor, gj as NoopCacheAdapter, cs as NoopGeocodingAdapter, hV as NoopHookRegistry, ic as ObjectRecordsRepository, iv as ObjectSchemaService, iu as ObjectSchemaServiceOptions, id as ObjectsRepository, k$ as OperationResult, hH as PathCardinality, hI as PathSegment, hJ as PathSegmentType, k1 as PermissionService, k0 as PermissionServiceOptions, ie as PermissionsRepository, d8 as PolicyContext, h_ as PolicyRegistry, da as PolicyViolationError, gz as QueryBuilder, gA as QueryBuilderOptions, go as QueryBuilderState, gv as QueryMultipleResultsError, gw as QueryNoResultError, iz as QueryOptions, iB as QueryResult, jT as RecordDocumentsResult, d9 as RecordPolicy, iC as RecordQueryService, iy as RecordQueryServiceOptions, iM as RecordResolverService, ix as RecordService, iw as RecordServiceOptions, gp as RegistryMap, gq as RegistryObjectNames, ks as RelationLabelResolver, iF as RelationOption, iG as RelationOptionsResponse, iL as RelationService, iI as RelationServiceOptions, iE as RelationValidationError, iD as RelationValidationResult, jM as RenderDocumentInput, jO as RenderDocumentResult, iJ as ResolveIdsBatchRequest, iK as ResolveIdsBatchResponse, iN as ResolvedRelations, jl as ResumeWorkflowInput, cp as ReverseGeocodingParams, ja as RollupCascadeContext, iQ as RollupResult, iU as RollupScheduler, iT as RollupSchedulerOptions, iS as RollupService, iR as RollupServiceOptions, gx as SHORTCUT_TO_FILTER_OPERATOR, gX as SchemaContext, ip as SchemaContextAware, iq as SchemaContextAwareRepository, hK as SchemaResolver, kE as SearchOptions, iA as SearchQueryOptions, gr as ShortcutOperator, ka as SignedUrlOptions, hl as StartExecutor, jk as StartWorkflowInput, kb as StorageAdapter, jQ as StorageDownloadNotSupportedError, k8 as StorageUploadInput, k9 as StorageUploadResult, ke as SyncOptions, kd as SyncResult, h2 as TenantContext, gG as TenantContextError, jg as TokenRevokedError, hO as TraversalOptions, hP as TraversalResult, kA as UpdateDBAttribute, kw as UpdateDBObject, kK as UpdateDBView, kO as UpdateDBViewOverlay, kR as UpdateDBWorkflow, k_ as UpdateDBWorkflowAccessGrant, kU as UpdateDBWorkflowInstance, kX as UpdateDBWorkflowInvitation, it as UpdateObjectInput, k3 as UpdateViewInput, jx as UpdateWorkflowInput, kc as UploadFileInput, kB as UpsertDBAttribute, kx as UpsertDBObject, kL as UpsertDBView, jE as UserProfileService, jD as UserProfileServiceOptions, ig as UserProfilesRepository, jC as UserService, jB as UserValidationError, jA as UserValidationResult, g4 as ViewOverlaysRepository, k6 as ViewService, l1 as ViewSyncLogger, l2 as ViewSyncOptions, l0 as ViewSyncResult, ih as ViewsRepository, jj as WorkflowAccessGrantService, ii as WorkflowAccessGrantsRepository, g9 as WorkflowAccessPayload, jn as WorkflowInstanceService, jm as WorkflowInstanceServiceOptions, ij as WorkflowInstancesRepository, jt as WorkflowInvitationService, ik as WorkflowInvitationsRepository, ga as WorkflowJwtConfig, gb as WorkflowJwtPayload, g6 as WorkflowJwtService, jv as WorkflowRelationService, jz as WorkflowService, jy as WorkflowServiceOptions, il as WorkflowsRepository, gQ as addSchemaToContext, iV as applyDefaultValues, jG as buildAuditChanges, iY as buildPolicyContext, gg as cacheKeys, gh as cacheTtl, iW as checkPermission, iZ as checkRecordAccess, i$ as checkRecordDeleteOrThrow, i_ as checkRecordModifyOrThrow, j0 as checkSharedObjectWriteAccess, hc as complete, j1 as computeLabel, kt as computeLabelWithRelations, j5 as createContextForCreate, j7 as createContextForDelete, j8 as createContextForRestore, j6 as createContextForUpdate, h3 as createDefaultExecutorRegistry, gs as createDefaultState, hX as createMockAdapter, gy as createQueryBuilder, hZ as defaultPolicyRegistry, gi as defaultTtl, j4 as enrichRecordsWithFormulas, kp as enrichValuesForDisplay, kq as enrichValuesWithSelectLabels, j3 as enrichWithFormulas, hd as error, gE as evaluate, gD as evaluateCondition, hm as evaluateFormula, hn as evaluateFormulaAttribute, ho as evaluateFormulaAttributeWithRelations, hp as evaluateFormulaWithRelations, hq as evaluateFormulaWithResult, gF as evaluateWithTrace, ko as extractAttributeNames, hr as extractFormulaVariables, kr as extractRelationIds, hs as extractRelationNames, ht as extractRelationReferences, hu as flattenRelationsForEval, hv as formatFormulaResult, gt as formatRecord, gu as formatRecords, gY as getContext, h4 as getDefaultExecutorRegistry, gI as getFeatureFlags, gJ as getFeatureValue, hz as getPathDepth, iX as getPolicy, hA as getRelationPath, gR as getSchemaByNameFromContext, gS as getSchemaContext, gT as getSchemaFromContext, kh as getSyncPreview, hB as getTargetAttributeName, gZ as getTenantId, g_ as getUserId, l7 as getViewSeedPreview, l8 as getViewSyncPreview, g$ as hasContext, gK as hasFeatureFlagsContext, hw as hasRelationReferences, gU as hasSchemaContext, gd as hashOptions, gL as isFeatureEnabled, kn as isLabelExpression, h$ as notesPolicy, hE as parsePath, hF as pathHasManyCardinality, j9 as recalculateParentRollups, km as renderLabelExpression, hL as resolveMultiplePaths, hM as resolveSingleValue, h0 as runWithContext, gM as runWithFeatureFlags, gV as runWithMergedSchemaContext, gW as runWithSchemaContext, l3 as seedRegistryViews, hf as success, kk as syncAll, kf as syncNativeObjects, l4 as syncNativeViews, hN as traversePath, gN as tryGetFeatureValue, hx as validateFormulaExpression, hG as validatePath, kg as verifyNativeObjectsSync, l6 as verifyNativeViewsSync, l5 as verifyRegistryViewsSeeded, hg as wait, gO as withFeatureFlags, h1 as withTenantContext } from './runtime-BqJdmg_4.js';
1
+ export { fY as AIConversationsRepository, fZ as AIUsageMetricsRepository, f_ as AIUserMemoryRepository, gm as AddAttributeInput, fM as AttributeChange, f$ as AttributesRepository, g0 as AuditRepository, hC as AuditService, gi as BaseRepository, gh as BaseService, ea as CacheAdapter, e8 as CacheKeyType, eb as CacheOptions, fd as ConditionExecutor, gl as CreateCustomObjectInput, iy as CreateDBAttribute, iu as CreateDBObject, iI as CreateDBView, iM as CreateDBViewOverlay, iP as CreateDBWorkflow, iY as CreateDBWorkflowAccessGrant, iS as CreateDBWorkflowInstance, iV as CreateDBWorkflowInvitation, hg as CreateGrantResult, iB as CreateObjectRecord, hR as CreateRecordDocumentInput, hS as CreateRecordDocumentResult, h$ as CreateViewInput, ht as CreateWorkflowInput, ix as DBAttribute, it as DBObject, iH as DBView, iL as DBViewOverlay, iO as DBWorkflow, iX as DBWorkflowAccessGrant, iR as DBWorkflowInstance, iU as DBWorkflowInvitation, ij as DEFAULT_LABEL_FALLBACK, e1 as DatabaseAdapter, fe as DocumentExecutor, hF as DocumentGenerationNotConfiguredError, hG as DocumentGenerationService, g1 as DocumentGenerationTemplateListOptions, hE as DocumentGenerationTemplateNotFoundError, g2 as DocumentGenerationTemplatesRepository, g3 as DocumentJobsRepository, hH as DocumentProcessingConfig, ha as DocumentProcessingHook, h9 as DocumentProcessingHookOptions, hI as DocumentProcessingService, hM as DocumentRenderError, hK as DocumentRendererOptions, hO as DocumentRendererService, hU as DocumentService, hT as DocumentServiceOptions, g4 as DocumentSlotsRepository, hP as DocumentTemplateService, g6 as DocumentTemplatesRepository, g5 as DocumentsRepository, ff as EndExecutor, ex as EvaluationResult, ey as EvaluationTrace, f1 as ExecutorCompleteResult, f2 as ExecutorContext, f3 as ExecutorErrorResult, fa as ExecutorRegistry, f4 as ExecutorResult, f5 as ExecutorSuccessResult, f6 as ExecutorWaitResult, eL as FeatureFlagsContext, eD as FeatureFlagsContextError, eg as FetchResult, i4 as FileContent, iG as FileListOptions, hW as FileService, hV as FileServiceOptions, g7 as FilesRepository, fg as FormExecutor, eh as FormattedRecord, gN as FormulaResolverService, gM as FormulaResolverServiceOptions, fu as FormulaResult, ih as FullSyncOptions, ig as FullSyncResult, bA as GeocodingAdapter, bx as GeocodingAutocompleteParams, bz as GeocodingParams, hX as GeocodingService, bw as GeocodingSuggestion, gB as GetRelationOptionsParams, i2 as GetViewOptions, i1 as GetViewsOptions, iE as GlobalSearchOptions, iF as GlobalSearchResultItem, hY as GlobalSearchService, hc as GrantExpiredError, hb as GrantNotFoundError, hd as GrantRevokedError, hf as GrantServiceConfig, ei as GroupedFetchResult, fN as HookContext, fO as HookDefinition, fP as HookHandler, fS as HookRegistry, fQ as HookType, gI as HybridRelationValue, ej as InsertOptions, fy as InvalidPathError, hp as InvitationAlreadyAcceptedError, ho as InvitationExpiredError, hn as InvitationNotFoundError, hq as InvitationRevokedError, hm as InvitationServiceConfig, e3 as JwtVerificationResult, h0 as LabelResolver, iC as ListOptions, e4 as MagicLinkPayload, fz as MaxDepthExceededError, fU as MockStores, gG as MultiRelationValue, f7 as NodeExecutor, ef as NoopCacheAdapter, bB as NoopGeocodingAdapter, fR as NoopHookRegistry, g8 as ObjectRecordsRepository, gp as ObjectSchemaService, go as ObjectSchemaServiceOptions, g9 as ObjectsRepository, i_ as OperationResult, fD as PathCardinality, fE as PathSegment, fF as PathSegmentType, h_ as PermissionService, hZ as PermissionServiceOptions, ga as PermissionsRepository, c8 as PolicyContext, fW as PolicyRegistry, ca as PolicyViolationError, ev as QueryBuilder, ew as QueryBuilderOptions, ek as QueryBuilderState, er as QueryMultipleResultsError, es as QueryNoResultError, gt as QueryOptions, gv as QueryResult, hQ as RecordDocumentsResult, c9 as RecordPolicy, gw as RecordQueryService, gs as RecordQueryServiceOptions, gK as RecordResolverService, gr as RecordService, gq as RecordServiceOptions, el as RegistryMap, em as RegistryObjectNames, d_ as RelationAttributeInput, d$ as RelationAttributeRow, e0 as RelationAttributesRepository, ir as RelationLabelResolver, gz as RelationOption, gA as RelationOptionsResponse, gJ as RelationPropertiesService, gF as RelationService, gC as RelationServiceOptions, gy as RelationValidationError, gx as RelationValidationResult, hJ as RenderDocumentInput, hL as RenderDocumentResult, gD as ResolveIdsBatchRequest, gE as ResolveIdsBatchResponse, gL as ResolvedRelations, hj as ResumeWorkflowInput, by as ReverseGeocodingParams, h8 as RollupCascadeContext, gO as RollupResult, gS as RollupScheduler, gR as RollupSchedulerOptions, gQ as RollupService, gP as RollupServiceOptions, et as SHORTCUT_TO_FILTER_OPERATOR, eT as SchemaContext, gj as SchemaContextAware, gk as SchemaContextAwareRepository, fG as SchemaResolver, iD as SearchOptions, gu as SearchQueryOptions, en as ShortcutOperator, i7 as SignedUrlOptions, gH as SingleRelationValue, fh as StartExecutor, hi as StartWorkflowInput, i8 as StorageAdapter, hN as StorageDownloadNotSupportedError, i5 as StorageUploadInput, i6 as StorageUploadResult, ib as SyncOptions, ia as SyncResult, e_ as TenantContext, eC as TenantContextError, he as TokenRevokedError, fK as TraversalOptions, fL as TraversalResult, iz as UpdateDBAttribute, iv as UpdateDBObject, iJ as UpdateDBView, iN as UpdateDBViewOverlay, iQ as UpdateDBWorkflow, iZ as UpdateDBWorkflowAccessGrant, iT as UpdateDBWorkflowInstance, iW as UpdateDBWorkflowInvitation, gn as UpdateObjectInput, i0 as UpdateViewInput, hu as UpdateWorkflowInput, i9 as UploadFileInput, iA as UpsertDBAttribute, iw as UpsertDBObject, iK as UpsertDBView, hB as UserProfileService, hA as UserProfileServiceOptions, gb as UserProfilesRepository, hz as UserService, hy as UserValidationError, hx as UserValidationResult, dZ as ViewOverlaysRepository, i3 as ViewService, j0 as ViewSyncLogger, j1 as ViewSyncOptions, i$ as ViewSyncResult, gc as ViewsRepository, hh as WorkflowAccessGrantService, gd as WorkflowAccessGrantsRepository, e5 as WorkflowAccessPayload, hl as WorkflowInstanceService, hk as WorkflowInstanceServiceOptions, ge as WorkflowInstancesRepository, hr as WorkflowInvitationService, gf as WorkflowInvitationsRepository, e6 as WorkflowJwtConfig, e7 as WorkflowJwtPayload, e2 as WorkflowJwtService, hs as WorkflowRelationService, hw as WorkflowService, hv as WorkflowServiceOptions, gg as WorkflowsRepository, eM as addSchemaToContext, gT as applyDefaultValues, hD as buildAuditChanges, gW as buildPolicyContext, ec as cacheKeys, ed as cacheTtl, gU as checkPermission, gX as checkRecordAccess, gZ as checkRecordDeleteOrThrow, gY as checkRecordModifyOrThrow, g_ as checkSharedObjectWriteAccess, f8 as complete, g$ as computeLabel, is as computeLabelWithRelations, h3 as createContextForCreate, h5 as createContextForDelete, h6 as createContextForRestore, h4 as createContextForUpdate, e$ as createDefaultExecutorRegistry, eo as createDefaultState, fT as createMockAdapter, eu as createQueryBuilder, fV as defaultPolicyRegistry, ee as defaultTtl, h2 as enrichRecordsWithFormulas, io as enrichValuesForDisplay, ip as enrichValuesWithSelectLabels, h1 as enrichWithFormulas, f9 as error, eA as evaluate, ez as evaluateCondition, fi as evaluateFormula, fj as evaluateFormulaAttribute, fk as evaluateFormulaAttributeWithRelations, fl as evaluateFormulaWithRelations, fm as evaluateFormulaWithResult, eB as evaluateWithTrace, im as extractAttributeNames, fn as extractFormulaVariables, iq as extractRelationIds, fo as extractRelationNames, fp as extractRelationReferences, fq as flattenRelationsForEval, fr as formatFormulaResult, ep as formatRecord, eq as formatRecords, eU as getContext, f0 as getDefaultExecutorRegistry, eE as getFeatureFlags, eF as getFeatureValue, fv as getPathDepth, gV as getPolicy, fw as getRelationPath, eN as getSchemaByNameFromContext, eO as getSchemaContext, eP as getSchemaFromContext, ie as getSyncPreview, fx as getTargetAttributeName, eV as getTenantId, eW as getUserId, j6 as getViewSeedPreview, j7 as getViewSyncPreview, eX as hasContext, eG as hasFeatureFlagsContext, fs as hasRelationReferences, eQ as hasSchemaContext, e9 as hashOptions, eH as isFeatureEnabled, il as isLabelExpression, fX as notesPolicy, fA as parsePath, fB as pathHasManyCardinality, h7 as recalculateParentRollups, ik as renderLabelExpression, fH as resolveMultiplePaths, fI as resolveSingleValue, eY as runWithContext, eI as runWithFeatureFlags, eR as runWithMergedSchemaContext, eS as runWithSchemaContext, j2 as seedRegistryViews, fb as success, ii as syncAll, ic as syncNativeObjects, j3 as syncNativeViews, fJ as traversePath, eJ as tryGetFeatureValue, ft as validateFormulaExpression, fC as validatePath, id as verifyNativeObjectsSync, j5 as verifyNativeViewsSync, j4 as verifyRegistryViewsSeeded, fc as wait, eK as withFeatureFlags, eZ as withTenantContext } from './runtime-BRkoIwsC.js';
2
+ export { ah as CompletionStatus } from './validators-BPIB7Miq.js';
2
3
  import '@stndrds/constants';
4
+ import './utils.js';
3
5
  import 'jose';
4
6
  import 'zod';
package/dist/runtime.js CHANGED
@@ -157,7 +157,10 @@
157
157
 
158
158
 
159
159
 
160
- var _chunkDPRLHGPOjs = require('./chunk-DPRLHGPO.js');
160
+
161
+ var _chunkDCTLP3ZDjs = require('./chunk-DCTLP3ZD.js');
162
+ require('./chunk-NEVERCM3.js');
163
+ require('./chunk-U4AB53AM.js');
161
164
  require('./chunk-3RG5ZIWI.js');
162
165
 
163
166
 
@@ -318,4 +321,5 @@ require('./chunk-3RG5ZIWI.js');
318
321
 
319
322
 
320
323
 
321
- exports.AuditService = _chunkDPRLHGPOjs.AuditService; exports.BaseRepository = _chunkDPRLHGPOjs.BaseRepository; exports.BaseService = _chunkDPRLHGPOjs.BaseService; exports.ConditionExecutor = _chunkDPRLHGPOjs.ConditionExecutor; exports.DEFAULT_LABEL_FALLBACK = _chunkDPRLHGPOjs.DEFAULT_LABEL_FALLBACK; exports.DocumentExecutor = _chunkDPRLHGPOjs.DocumentExecutor; exports.DocumentGenerationNotConfiguredError = _chunkDPRLHGPOjs.DocumentGenerationNotConfiguredError; exports.DocumentGenerationService = _chunkDPRLHGPOjs.DocumentGenerationService; exports.DocumentGenerationTemplateNotFoundError = _chunkDPRLHGPOjs.DocumentGenerationTemplateNotFoundError; exports.DocumentProcessingHook = _chunkDPRLHGPOjs.DocumentProcessingHook; exports.DocumentProcessingService = _chunkDPRLHGPOjs.DocumentProcessingService; exports.DocumentRenderError = _chunkDPRLHGPOjs.DocumentRenderError; exports.DocumentRendererService = _chunkDPRLHGPOjs.DocumentRendererService; exports.DocumentService = _chunkDPRLHGPOjs.DocumentService; exports.DocumentTemplateService = _chunkDPRLHGPOjs.DocumentTemplateService; exports.EndExecutor = _chunkDPRLHGPOjs.EndExecutor; exports.ExecutorRegistry = _chunkDPRLHGPOjs.ExecutorRegistry; exports.FeatureFlagsContextError = _chunkDPRLHGPOjs.FeatureFlagsContextError; exports.FileService = _chunkDPRLHGPOjs.FileService; exports.FormExecutor = _chunkDPRLHGPOjs.FormExecutor; exports.FormulaResolverService = _chunkDPRLHGPOjs.FormulaResolverService; exports.GeocodingService = _chunkDPRLHGPOjs.GeocodingService; exports.GlobalSearchService = _chunkDPRLHGPOjs.GlobalSearchService; exports.GrantExpiredError = _chunkDPRLHGPOjs.GrantExpiredError; exports.GrantNotFoundError = _chunkDPRLHGPOjs.GrantNotFoundError; exports.GrantRevokedError = _chunkDPRLHGPOjs.GrantRevokedError; exports.InvalidPathError = _chunkDPRLHGPOjs.InvalidPathError; exports.InvitationAlreadyAcceptedError = _chunkDPRLHGPOjs.InvitationAlreadyAcceptedError; exports.InvitationExpiredError = _chunkDPRLHGPOjs.InvitationExpiredError; exports.InvitationNotFoundError = _chunkDPRLHGPOjs.InvitationNotFoundError; exports.InvitationRevokedError = _chunkDPRLHGPOjs.InvitationRevokedError; exports.MaxDepthExceededError = _chunkDPRLHGPOjs.MaxDepthExceededError; exports.NoopCacheAdapter = _chunkDPRLHGPOjs.NoopCacheAdapter; exports.NoopGeocodingAdapter = _chunkDPRLHGPOjs.NoopGeocodingAdapter; exports.NoopHookRegistry = _chunkDPRLHGPOjs.NoopHookRegistry; exports.ObjectSchemaService = _chunkDPRLHGPOjs.ObjectSchemaService; exports.PermissionService = _chunkDPRLHGPOjs.PermissionService; exports.PolicyRegistry = _chunkDPRLHGPOjs.PolicyRegistry; exports.PolicyViolationError = _chunkDPRLHGPOjs.PolicyViolationError; exports.QueryBuilder = _chunkDPRLHGPOjs.QueryBuilder; exports.QueryMultipleResultsError = _chunkDPRLHGPOjs.QueryMultipleResultsError; exports.QueryNoResultError = _chunkDPRLHGPOjs.QueryNoResultError; exports.RecordQueryService = _chunkDPRLHGPOjs.RecordQueryService; exports.RecordResolverService = _chunkDPRLHGPOjs.RecordResolverService; exports.RecordService = _chunkDPRLHGPOjs.RecordService; exports.RelationService = _chunkDPRLHGPOjs.RelationService; exports.RollupScheduler = _chunkDPRLHGPOjs.RollupScheduler; exports.RollupService = _chunkDPRLHGPOjs.RollupService; exports.SHORTCUT_TO_FILTER_OPERATOR = _chunkDPRLHGPOjs.SHORTCUT_TO_FILTER_OPERATOR; exports.SchemaContextAwareRepository = _chunkDPRLHGPOjs.SchemaContextAwareRepository; exports.StartExecutor = _chunkDPRLHGPOjs.StartExecutor; exports.StorageDownloadNotSupportedError = _chunkDPRLHGPOjs.StorageDownloadNotSupportedError; exports.TenantContextError = _chunkDPRLHGPOjs.TenantContextError; exports.TokenRevokedError = _chunkDPRLHGPOjs.TokenRevokedError; exports.UserProfileService = _chunkDPRLHGPOjs.UserProfileService; exports.UserService = _chunkDPRLHGPOjs.UserService; exports.ViewService = _chunkDPRLHGPOjs.ViewService; exports.WorkflowAccessGrantService = _chunkDPRLHGPOjs.WorkflowAccessGrantService; exports.WorkflowInstanceService = _chunkDPRLHGPOjs.WorkflowInstanceService; exports.WorkflowInvitationService = _chunkDPRLHGPOjs.WorkflowInvitationService; exports.WorkflowJwtService = _chunkDPRLHGPOjs.WorkflowJwtService; exports.WorkflowRelationService = _chunkDPRLHGPOjs.WorkflowRelationService; exports.WorkflowService = _chunkDPRLHGPOjs.WorkflowService; exports.addSchemaToContext = _chunkDPRLHGPOjs.addSchemaToContext; exports.applyDefaultValues = _chunkDPRLHGPOjs.applyDefaultValues; exports.buildAuditChanges = _chunkDPRLHGPOjs.buildAuditChanges; exports.buildPolicyContext = _chunkDPRLHGPOjs.buildPolicyContext; exports.cacheKeys = _chunkDPRLHGPOjs.cacheKeys; exports.cacheTtl = _chunkDPRLHGPOjs.cacheTtl; exports.checkPermission = _chunkDPRLHGPOjs.checkPermission; exports.checkRecordAccess = _chunkDPRLHGPOjs.checkRecordAccess; exports.checkRecordDeleteOrThrow = _chunkDPRLHGPOjs.checkRecordDeleteOrThrow; exports.checkRecordModifyOrThrow = _chunkDPRLHGPOjs.checkRecordModifyOrThrow; exports.checkSharedObjectWriteAccess = _chunkDPRLHGPOjs.checkSharedObjectWriteAccess; exports.complete = _chunkDPRLHGPOjs.complete; exports.computeLabel = _chunkDPRLHGPOjs.computeLabel; exports.computeLabelWithRelations = _chunkDPRLHGPOjs.computeLabelWithRelations; exports.createContextForCreate = _chunkDPRLHGPOjs.createContextForCreate; exports.createContextForDelete = _chunkDPRLHGPOjs.createContextForDelete; exports.createContextForRestore = _chunkDPRLHGPOjs.createContextForRestore; exports.createContextForUpdate = _chunkDPRLHGPOjs.createContextForUpdate; exports.createDefaultExecutorRegistry = _chunkDPRLHGPOjs.createDefaultExecutorRegistry; exports.createDefaultState = _chunkDPRLHGPOjs.createDefaultState; exports.createMockAdapter = _chunkDPRLHGPOjs.createMockAdapter; exports.createQueryBuilder = _chunkDPRLHGPOjs.createQueryBuilder; exports.defaultPolicyRegistry = _chunkDPRLHGPOjs.defaultPolicyRegistry; exports.defaultTtl = _chunkDPRLHGPOjs.defaultTtl; exports.enrichRecordsWithFormulas = _chunkDPRLHGPOjs.enrichRecordsWithFormulas; exports.enrichValuesForDisplay = _chunkDPRLHGPOjs.enrichValuesForDisplay; exports.enrichValuesWithSelectLabels = _chunkDPRLHGPOjs.enrichValuesWithSelectLabels; exports.enrichWithFormulas = _chunkDPRLHGPOjs.enrichWithFormulas; exports.error = _chunkDPRLHGPOjs.error; exports.evaluate = _chunkDPRLHGPOjs.evaluate; exports.evaluateCondition = _chunkDPRLHGPOjs.evaluateCondition; exports.evaluateFormula = _chunkDPRLHGPOjs.evaluateFormula; exports.evaluateFormulaAttribute = _chunkDPRLHGPOjs.evaluateFormulaAttribute; exports.evaluateFormulaAttributeWithRelations = _chunkDPRLHGPOjs.evaluateFormulaAttributeWithRelations; exports.evaluateFormulaWithRelations = _chunkDPRLHGPOjs.evaluateFormulaWithRelations; exports.evaluateFormulaWithResult = _chunkDPRLHGPOjs.evaluateFormulaWithResult; exports.evaluateWithTrace = _chunkDPRLHGPOjs.evaluateWithTrace; exports.extractAttributeNames = _chunkDPRLHGPOjs.extractAttributeNames; exports.extractFormulaVariables = _chunkDPRLHGPOjs.extractFormulaVariables; exports.extractRelationIds = _chunkDPRLHGPOjs.extractRelationIds; exports.extractRelationNames = _chunkDPRLHGPOjs.extractRelationNames; exports.extractRelationReferences = _chunkDPRLHGPOjs.extractRelationReferences; exports.flattenRelationsForEval = _chunkDPRLHGPOjs.flattenRelationsForEval; exports.formatFormulaResult = _chunkDPRLHGPOjs.formatFormulaResult; exports.formatRecord = _chunkDPRLHGPOjs.formatRecord; exports.formatRecords = _chunkDPRLHGPOjs.formatRecords; exports.getContext = _chunkDPRLHGPOjs.getContext; exports.getDefaultExecutorRegistry = _chunkDPRLHGPOjs.getDefaultExecutorRegistry; exports.getFeatureFlags = _chunkDPRLHGPOjs.getFeatureFlags; exports.getFeatureValue = _chunkDPRLHGPOjs.getFeatureValue; exports.getPathDepth = _chunkDPRLHGPOjs.getPathDepth; exports.getPolicy = _chunkDPRLHGPOjs.getPolicy; exports.getRelationPath = _chunkDPRLHGPOjs.getRelationPath; exports.getSchemaByNameFromContext = _chunkDPRLHGPOjs.getSchemaByNameFromContext; exports.getSchemaContext = _chunkDPRLHGPOjs.getSchemaContext; exports.getSchemaFromContext = _chunkDPRLHGPOjs.getSchemaFromContext; exports.getSyncPreview = _chunkDPRLHGPOjs.getSyncPreview; exports.getTargetAttributeName = _chunkDPRLHGPOjs.getTargetAttributeName; exports.getTenantId = _chunkDPRLHGPOjs.getTenantId; exports.getUserId = _chunkDPRLHGPOjs.getUserId; exports.getViewSeedPreview = _chunkDPRLHGPOjs.getViewSeedPreview; exports.getViewSyncPreview = _chunkDPRLHGPOjs.getViewSyncPreview; exports.hasContext = _chunkDPRLHGPOjs.hasContext; exports.hasFeatureFlagsContext = _chunkDPRLHGPOjs.hasFeatureFlagsContext; exports.hasRelationReferences = _chunkDPRLHGPOjs.hasRelationReferences; exports.hasSchemaContext = _chunkDPRLHGPOjs.hasSchemaContext; exports.hashOptions = _chunkDPRLHGPOjs.hashOptions; exports.isFeatureEnabled = _chunkDPRLHGPOjs.isFeatureEnabled; exports.isLabelExpression = _chunkDPRLHGPOjs.isLabelExpression; exports.notesPolicy = _chunkDPRLHGPOjs.notesPolicy; exports.parsePath = _chunkDPRLHGPOjs.parsePath; exports.pathHasManyCardinality = _chunkDPRLHGPOjs.pathHasManyCardinality; exports.recalculateParentRollups = _chunkDPRLHGPOjs.recalculateParentRollups; exports.renderLabelExpression = _chunkDPRLHGPOjs.renderLabelExpression; exports.resolveMultiplePaths = _chunkDPRLHGPOjs.resolveMultiplePaths; exports.resolveSingleValue = _chunkDPRLHGPOjs.resolveSingleValue; exports.runWithContext = _chunkDPRLHGPOjs.runWithContext; exports.runWithFeatureFlags = _chunkDPRLHGPOjs.runWithFeatureFlags; exports.runWithMergedSchemaContext = _chunkDPRLHGPOjs.runWithMergedSchemaContext; exports.runWithSchemaContext = _chunkDPRLHGPOjs.runWithSchemaContext; exports.seedRegistryViews = _chunkDPRLHGPOjs.seedRegistryViews; exports.success = _chunkDPRLHGPOjs.success; exports.syncAll = _chunkDPRLHGPOjs.syncAll; exports.syncNativeObjects = _chunkDPRLHGPOjs.syncNativeObjects; exports.syncNativeViews = _chunkDPRLHGPOjs.syncNativeViews; exports.traversePath = _chunkDPRLHGPOjs.traversePath; exports.tryGetFeatureValue = _chunkDPRLHGPOjs.tryGetFeatureValue; exports.validateFormulaExpression = _chunkDPRLHGPOjs.validateFormulaExpression; exports.validatePath = _chunkDPRLHGPOjs.validatePath; exports.verifyNativeObjectsSync = _chunkDPRLHGPOjs.verifyNativeObjectsSync; exports.verifyNativeViewsSync = _chunkDPRLHGPOjs.verifyNativeViewsSync; exports.verifyRegistryViewsSeeded = _chunkDPRLHGPOjs.verifyRegistryViewsSeeded; exports.wait = _chunkDPRLHGPOjs.wait; exports.withFeatureFlags = _chunkDPRLHGPOjs.withFeatureFlags; exports.withTenantContext = _chunkDPRLHGPOjs.withTenantContext;
324
+
325
+ exports.AuditService = _chunkDCTLP3ZDjs.AuditService; exports.BaseRepository = _chunkDCTLP3ZDjs.BaseRepository; exports.BaseService = _chunkDCTLP3ZDjs.BaseService; exports.ConditionExecutor = _chunkDCTLP3ZDjs.ConditionExecutor; exports.DEFAULT_LABEL_FALLBACK = _chunkDCTLP3ZDjs.DEFAULT_LABEL_FALLBACK; exports.DocumentExecutor = _chunkDCTLP3ZDjs.DocumentExecutor; exports.DocumentGenerationNotConfiguredError = _chunkDCTLP3ZDjs.DocumentGenerationNotConfiguredError; exports.DocumentGenerationService = _chunkDCTLP3ZDjs.DocumentGenerationService; exports.DocumentGenerationTemplateNotFoundError = _chunkDCTLP3ZDjs.DocumentGenerationTemplateNotFoundError; exports.DocumentProcessingHook = _chunkDCTLP3ZDjs.DocumentProcessingHook; exports.DocumentProcessingService = _chunkDCTLP3ZDjs.DocumentProcessingService; exports.DocumentRenderError = _chunkDCTLP3ZDjs.DocumentRenderError; exports.DocumentRendererService = _chunkDCTLP3ZDjs.DocumentRendererService; exports.DocumentService = _chunkDCTLP3ZDjs.DocumentService; exports.DocumentTemplateService = _chunkDCTLP3ZDjs.DocumentTemplateService; exports.EndExecutor = _chunkDCTLP3ZDjs.EndExecutor; exports.ExecutorRegistry = _chunkDCTLP3ZDjs.ExecutorRegistry; exports.FeatureFlagsContextError = _chunkDCTLP3ZDjs.FeatureFlagsContextError; exports.FileService = _chunkDCTLP3ZDjs.FileService; exports.FormExecutor = _chunkDCTLP3ZDjs.FormExecutor; exports.FormulaResolverService = _chunkDCTLP3ZDjs.FormulaResolverService; exports.GeocodingService = _chunkDCTLP3ZDjs.GeocodingService; exports.GlobalSearchService = _chunkDCTLP3ZDjs.GlobalSearchService; exports.GrantExpiredError = _chunkDCTLP3ZDjs.GrantExpiredError; exports.GrantNotFoundError = _chunkDCTLP3ZDjs.GrantNotFoundError; exports.GrantRevokedError = _chunkDCTLP3ZDjs.GrantRevokedError; exports.InvalidPathError = _chunkDCTLP3ZDjs.InvalidPathError; exports.InvitationAlreadyAcceptedError = _chunkDCTLP3ZDjs.InvitationAlreadyAcceptedError; exports.InvitationExpiredError = _chunkDCTLP3ZDjs.InvitationExpiredError; exports.InvitationNotFoundError = _chunkDCTLP3ZDjs.InvitationNotFoundError; exports.InvitationRevokedError = _chunkDCTLP3ZDjs.InvitationRevokedError; exports.MaxDepthExceededError = _chunkDCTLP3ZDjs.MaxDepthExceededError; exports.NoopCacheAdapter = _chunkDCTLP3ZDjs.NoopCacheAdapter; exports.NoopGeocodingAdapter = _chunkDCTLP3ZDjs.NoopGeocodingAdapter; exports.NoopHookRegistry = _chunkDCTLP3ZDjs.NoopHookRegistry; exports.ObjectSchemaService = _chunkDCTLP3ZDjs.ObjectSchemaService; exports.PermissionService = _chunkDCTLP3ZDjs.PermissionService; exports.PolicyRegistry = _chunkDCTLP3ZDjs.PolicyRegistry; exports.PolicyViolationError = _chunkDCTLP3ZDjs.PolicyViolationError; exports.QueryBuilder = _chunkDCTLP3ZDjs.QueryBuilder; exports.QueryMultipleResultsError = _chunkDCTLP3ZDjs.QueryMultipleResultsError; exports.QueryNoResultError = _chunkDCTLP3ZDjs.QueryNoResultError; exports.RecordQueryService = _chunkDCTLP3ZDjs.RecordQueryService; exports.RecordResolverService = _chunkDCTLP3ZDjs.RecordResolverService; exports.RecordService = _chunkDCTLP3ZDjs.RecordService; exports.RelationPropertiesService = _chunkDCTLP3ZDjs.RelationPropertiesService; exports.RelationService = _chunkDCTLP3ZDjs.RelationService; exports.RollupScheduler = _chunkDCTLP3ZDjs.RollupScheduler; exports.RollupService = _chunkDCTLP3ZDjs.RollupService; exports.SHORTCUT_TO_FILTER_OPERATOR = _chunkDCTLP3ZDjs.SHORTCUT_TO_FILTER_OPERATOR; exports.SchemaContextAwareRepository = _chunkDCTLP3ZDjs.SchemaContextAwareRepository; exports.StartExecutor = _chunkDCTLP3ZDjs.StartExecutor; exports.StorageDownloadNotSupportedError = _chunkDCTLP3ZDjs.StorageDownloadNotSupportedError; exports.TenantContextError = _chunkDCTLP3ZDjs.TenantContextError; exports.TokenRevokedError = _chunkDCTLP3ZDjs.TokenRevokedError; exports.UserProfileService = _chunkDCTLP3ZDjs.UserProfileService; exports.UserService = _chunkDCTLP3ZDjs.UserService; exports.ViewService = _chunkDCTLP3ZDjs.ViewService; exports.WorkflowAccessGrantService = _chunkDCTLP3ZDjs.WorkflowAccessGrantService; exports.WorkflowInstanceService = _chunkDCTLP3ZDjs.WorkflowInstanceService; exports.WorkflowInvitationService = _chunkDCTLP3ZDjs.WorkflowInvitationService; exports.WorkflowJwtService = _chunkDCTLP3ZDjs.WorkflowJwtService; exports.WorkflowRelationService = _chunkDCTLP3ZDjs.WorkflowRelationService; exports.WorkflowService = _chunkDCTLP3ZDjs.WorkflowService; exports.addSchemaToContext = _chunkDCTLP3ZDjs.addSchemaToContext; exports.applyDefaultValues = _chunkDCTLP3ZDjs.applyDefaultValues; exports.buildAuditChanges = _chunkDCTLP3ZDjs.buildAuditChanges; exports.buildPolicyContext = _chunkDCTLP3ZDjs.buildPolicyContext; exports.cacheKeys = _chunkDCTLP3ZDjs.cacheKeys; exports.cacheTtl = _chunkDCTLP3ZDjs.cacheTtl; exports.checkPermission = _chunkDCTLP3ZDjs.checkPermission; exports.checkRecordAccess = _chunkDCTLP3ZDjs.checkRecordAccess; exports.checkRecordDeleteOrThrow = _chunkDCTLP3ZDjs.checkRecordDeleteOrThrow; exports.checkRecordModifyOrThrow = _chunkDCTLP3ZDjs.checkRecordModifyOrThrow; exports.checkSharedObjectWriteAccess = _chunkDCTLP3ZDjs.checkSharedObjectWriteAccess; exports.complete = _chunkDCTLP3ZDjs.complete; exports.computeLabel = _chunkDCTLP3ZDjs.computeLabel; exports.computeLabelWithRelations = _chunkDCTLP3ZDjs.computeLabelWithRelations; exports.createContextForCreate = _chunkDCTLP3ZDjs.createContextForCreate; exports.createContextForDelete = _chunkDCTLP3ZDjs.createContextForDelete; exports.createContextForRestore = _chunkDCTLP3ZDjs.createContextForRestore; exports.createContextForUpdate = _chunkDCTLP3ZDjs.createContextForUpdate; exports.createDefaultExecutorRegistry = _chunkDCTLP3ZDjs.createDefaultExecutorRegistry; exports.createDefaultState = _chunkDCTLP3ZDjs.createDefaultState; exports.createMockAdapter = _chunkDCTLP3ZDjs.createMockAdapter; exports.createQueryBuilder = _chunkDCTLP3ZDjs.createQueryBuilder; exports.defaultPolicyRegistry = _chunkDCTLP3ZDjs.defaultPolicyRegistry; exports.defaultTtl = _chunkDCTLP3ZDjs.defaultTtl; exports.enrichRecordsWithFormulas = _chunkDCTLP3ZDjs.enrichRecordsWithFormulas; exports.enrichValuesForDisplay = _chunkDCTLP3ZDjs.enrichValuesForDisplay; exports.enrichValuesWithSelectLabels = _chunkDCTLP3ZDjs.enrichValuesWithSelectLabels; exports.enrichWithFormulas = _chunkDCTLP3ZDjs.enrichWithFormulas; exports.error = _chunkDCTLP3ZDjs.error; exports.evaluate = _chunkDCTLP3ZDjs.evaluate; exports.evaluateCondition = _chunkDCTLP3ZDjs.evaluateCondition; exports.evaluateFormula = _chunkDCTLP3ZDjs.evaluateFormula; exports.evaluateFormulaAttribute = _chunkDCTLP3ZDjs.evaluateFormulaAttribute; exports.evaluateFormulaAttributeWithRelations = _chunkDCTLP3ZDjs.evaluateFormulaAttributeWithRelations; exports.evaluateFormulaWithRelations = _chunkDCTLP3ZDjs.evaluateFormulaWithRelations; exports.evaluateFormulaWithResult = _chunkDCTLP3ZDjs.evaluateFormulaWithResult; exports.evaluateWithTrace = _chunkDCTLP3ZDjs.evaluateWithTrace; exports.extractAttributeNames = _chunkDCTLP3ZDjs.extractAttributeNames; exports.extractFormulaVariables = _chunkDCTLP3ZDjs.extractFormulaVariables; exports.extractRelationIds = _chunkDCTLP3ZDjs.extractRelationIds; exports.extractRelationNames = _chunkDCTLP3ZDjs.extractRelationNames; exports.extractRelationReferences = _chunkDCTLP3ZDjs.extractRelationReferences; exports.flattenRelationsForEval = _chunkDCTLP3ZDjs.flattenRelationsForEval; exports.formatFormulaResult = _chunkDCTLP3ZDjs.formatFormulaResult; exports.formatRecord = _chunkDCTLP3ZDjs.formatRecord; exports.formatRecords = _chunkDCTLP3ZDjs.formatRecords; exports.getContext = _chunkDCTLP3ZDjs.getContext; exports.getDefaultExecutorRegistry = _chunkDCTLP3ZDjs.getDefaultExecutorRegistry; exports.getFeatureFlags = _chunkDCTLP3ZDjs.getFeatureFlags; exports.getFeatureValue = _chunkDCTLP3ZDjs.getFeatureValue; exports.getPathDepth = _chunkDCTLP3ZDjs.getPathDepth; exports.getPolicy = _chunkDCTLP3ZDjs.getPolicy; exports.getRelationPath = _chunkDCTLP3ZDjs.getRelationPath; exports.getSchemaByNameFromContext = _chunkDCTLP3ZDjs.getSchemaByNameFromContext; exports.getSchemaContext = _chunkDCTLP3ZDjs.getSchemaContext; exports.getSchemaFromContext = _chunkDCTLP3ZDjs.getSchemaFromContext; exports.getSyncPreview = _chunkDCTLP3ZDjs.getSyncPreview; exports.getTargetAttributeName = _chunkDCTLP3ZDjs.getTargetAttributeName; exports.getTenantId = _chunkDCTLP3ZDjs.getTenantId; exports.getUserId = _chunkDCTLP3ZDjs.getUserId; exports.getViewSeedPreview = _chunkDCTLP3ZDjs.getViewSeedPreview; exports.getViewSyncPreview = _chunkDCTLP3ZDjs.getViewSyncPreview; exports.hasContext = _chunkDCTLP3ZDjs.hasContext; exports.hasFeatureFlagsContext = _chunkDCTLP3ZDjs.hasFeatureFlagsContext; exports.hasRelationReferences = _chunkDCTLP3ZDjs.hasRelationReferences; exports.hasSchemaContext = _chunkDCTLP3ZDjs.hasSchemaContext; exports.hashOptions = _chunkDCTLP3ZDjs.hashOptions; exports.isFeatureEnabled = _chunkDCTLP3ZDjs.isFeatureEnabled; exports.isLabelExpression = _chunkDCTLP3ZDjs.isLabelExpression; exports.notesPolicy = _chunkDCTLP3ZDjs.notesPolicy; exports.parsePath = _chunkDCTLP3ZDjs.parsePath; exports.pathHasManyCardinality = _chunkDCTLP3ZDjs.pathHasManyCardinality; exports.recalculateParentRollups = _chunkDCTLP3ZDjs.recalculateParentRollups; exports.renderLabelExpression = _chunkDCTLP3ZDjs.renderLabelExpression; exports.resolveMultiplePaths = _chunkDCTLP3ZDjs.resolveMultiplePaths; exports.resolveSingleValue = _chunkDCTLP3ZDjs.resolveSingleValue; exports.runWithContext = _chunkDCTLP3ZDjs.runWithContext; exports.runWithFeatureFlags = _chunkDCTLP3ZDjs.runWithFeatureFlags; exports.runWithMergedSchemaContext = _chunkDCTLP3ZDjs.runWithMergedSchemaContext; exports.runWithSchemaContext = _chunkDCTLP3ZDjs.runWithSchemaContext; exports.seedRegistryViews = _chunkDCTLP3ZDjs.seedRegistryViews; exports.success = _chunkDCTLP3ZDjs.success; exports.syncAll = _chunkDCTLP3ZDjs.syncAll; exports.syncNativeObjects = _chunkDCTLP3ZDjs.syncNativeObjects; exports.syncNativeViews = _chunkDCTLP3ZDjs.syncNativeViews; exports.traversePath = _chunkDCTLP3ZDjs.traversePath; exports.tryGetFeatureValue = _chunkDCTLP3ZDjs.tryGetFeatureValue; exports.validateFormulaExpression = _chunkDCTLP3ZDjs.validateFormulaExpression; exports.validatePath = _chunkDCTLP3ZDjs.validatePath; exports.verifyNativeObjectsSync = _chunkDCTLP3ZDjs.verifyNativeObjectsSync; exports.verifyNativeViewsSync = _chunkDCTLP3ZDjs.verifyNativeViewsSync; exports.verifyRegistryViewsSeeded = _chunkDCTLP3ZDjs.verifyRegistryViewsSeeded; exports.wait = _chunkDCTLP3ZDjs.wait; exports.withFeatureFlags = _chunkDCTLP3ZDjs.withFeatureFlags; exports.withTenantContext = _chunkDCTLP3ZDjs.withTenantContext;
package/dist/runtime.mjs CHANGED
@@ -44,6 +44,7 @@ import {
44
44
  RecordQueryService,
45
45
  RecordResolverService,
46
46
  RecordService,
47
+ RelationPropertiesService,
47
48
  RelationService,
48
49
  RollupScheduler,
49
50
  RollupService,
@@ -157,7 +158,9 @@ import {
157
158
  wait,
158
159
  withFeatureFlags,
159
160
  withTenantContext
160
- } from "./chunk-YVUSATKC.mjs";
161
+ } from "./chunk-O7FGYLYG.mjs";
162
+ import "./chunk-V2RPPE2Y.mjs";
163
+ import "./chunk-SV4BCGQU.mjs";
161
164
  import "./chunk-Y6FXYEAI.mjs";
162
165
  export {
163
166
  AuditService,
@@ -205,6 +208,7 @@ export {
205
208
  RecordQueryService,
206
209
  RecordResolverService,
207
210
  RecordService,
211
+ RelationPropertiesService,
208
212
  RelationService,
209
213
  RollupScheduler,
210
214
  RollupService,
@@ -0,0 +1,154 @@
1
+ /**
2
+ * Brand symbol for nominal typing.
3
+ * This ensures type-safety by making IDs non-interchangeable.
4
+ */
5
+ declare const __brand: unique symbol;
6
+ /**
7
+ * Creates a branded type from a base type.
8
+ * Branded types are structurally identical but nominally different.
9
+ */
10
+ type Brand<T, B> = T & {
11
+ readonly [__brand]: B;
12
+ };
13
+ /**
14
+ * UUID string type for all identifiers
15
+ */
16
+ type Uuid = string;
17
+ /**
18
+ * Tenant identifier for multi-tenant isolation.
19
+ * Branded type to prevent accidental mixing with other string IDs.
20
+ *
21
+ * @example
22
+ * ```typescript
23
+ * const tenantId: TenantId = asTenantId('tenant-123');
24
+ * const userId: UserId = asUserId('user-456');
25
+ *
26
+ * // Type error: cannot assign UserId to TenantId
27
+ * const wrong: TenantId = userId;
28
+ * ```
29
+ */
30
+ type TenantId = Brand<string, "TenantId">;
31
+ /**
32
+ * User identifier for audit trails and permissions.
33
+ * Branded type to prevent accidental mixing with other string IDs.
34
+ */
35
+ type UserId = Brand<string, "UserId">;
36
+ /**
37
+ * Convert a string to a TenantId.
38
+ * Use this when receiving tenant IDs from external sources (JWT, headers).
39
+ *
40
+ * @param id - The string to convert
41
+ * @returns A branded TenantId
42
+ *
43
+ * @example
44
+ * ```typescript
45
+ * const tenantId = asTenantId(request.headers['x-tenant-id']);
46
+ * ```
47
+ */
48
+ declare function asTenantId(id: string): TenantId;
49
+ /**
50
+ * Convert a string to a UserId.
51
+ * Use this when receiving user IDs from external sources (JWT, auth).
52
+ *
53
+ * @param id - The string to convert
54
+ * @returns A branded UserId
55
+ *
56
+ * @example
57
+ * ```typescript
58
+ * const userId = asUserId(jwtPayload.sub);
59
+ * ```
60
+ */
61
+ declare function asUserId(id: string): UserId;
62
+ /**
63
+ * Generate a unique UUID v4
64
+ * Uses crypto.randomUUID() when available (Node.js 19+, modern browsers)
65
+ * Falls back to a manual implementation for older environments
66
+ *
67
+ * @returns A UUID v4 string
68
+ *
69
+ * @example
70
+ * ```typescript
71
+ * const id = generateId();
72
+ * // "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
73
+ * ```
74
+ */
75
+ declare function generateId(): Uuid;
76
+ /**
77
+ * Generate a prefixed ID for better debugging and readability
78
+ *
79
+ * @param prefix - Prefix for the ID (e.g., "obj", "attr", "rec")
80
+ * @returns A prefixed UUID string
81
+ *
82
+ * @example
83
+ * ```typescript
84
+ * const objectId = generatePrefixedId("obj");
85
+ * // "obj_a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
86
+ *
87
+ * const attrId = generatePrefixedId("attr");
88
+ * // "attr_a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
89
+ * ```
90
+ */
91
+ declare function generatePrefixedId(prefix: string): Uuid;
92
+ /**
93
+ * Convert a string to a valid kebab-case slug.
94
+ * Removes accents, special chars, and normalizes spaces.
95
+ *
96
+ * @param input - The string to slugify
97
+ * @returns A kebab-case slug matching pattern ^[a-z][a-z0-9-]*$
98
+ *
99
+ * @example
100
+ * ```typescript
101
+ * slugify("Contrat de Vente");
102
+ * // "contrat-de-vente"
103
+ *
104
+ * slugify("Éléphant café");
105
+ * // "elephant-cafe"
106
+ *
107
+ * slugify(" Multiple Spaces ");
108
+ * // "multiple-spaces"
109
+ * ```
110
+ */
111
+ declare function slugify(input: string): string;
112
+ /**
113
+ * Generate a unique template name from a label.
114
+ * Format: {slugified-label}-{8-char-suffix}
115
+ * Matches DB constraint: ^[a-z][a-z0-9_-]*$
116
+ *
117
+ * @param label - The label to generate a name from
118
+ * @returns A unique kebab-case name
119
+ *
120
+ * @example
121
+ * ```typescript
122
+ * generateTemplateName("Contrat de Vente");
123
+ * // "contrat-de-vente-a1b2c3d4"
124
+ *
125
+ * generateTemplateName("");
126
+ * // "template-a1b2c3d4"
127
+ * ```
128
+ */
129
+ declare function generateTemplateName(label: string): string;
130
+ /**
131
+ * Create a Map indexed by a key extracted from each item.
132
+ * This eliminates the repeated pattern: new Map(items.map(item => [keyFn(item), item]))
133
+ *
134
+ * Time complexity: O(n)
135
+ * Space complexity: O(n)
136
+ *
137
+ * @param items - Array of items to index
138
+ * @param keyFn - Function to extract the key from each item
139
+ * @returns Map indexed by the extracted key
140
+ *
141
+ * @example
142
+ * ```typescript
143
+ * const attributes = [{ name: "title", type: "text" }, { name: "status", type: "select" }];
144
+ *
145
+ * // Before:
146
+ * const attrMap = new Map(attributes.map(a => [a.name, a]));
147
+ *
148
+ * // After:
149
+ * const attrMap = indexBy(attributes, a => a.name);
150
+ * ```
151
+ */
152
+ declare function indexBy<T, K extends PropertyKey>(items: T[], keyFn: (item: T) => K): Map<K, T>;
153
+
154
+ export { type TenantId, type UserId, type Uuid, asTenantId, asUserId, generateId, generatePrefixedId, generateTemplateName, indexBy, slugify };
@@ -0,0 +1,154 @@
1
+ /**
2
+ * Brand symbol for nominal typing.
3
+ * This ensures type-safety by making IDs non-interchangeable.
4
+ */
5
+ declare const __brand: unique symbol;
6
+ /**
7
+ * Creates a branded type from a base type.
8
+ * Branded types are structurally identical but nominally different.
9
+ */
10
+ type Brand<T, B> = T & {
11
+ readonly [__brand]: B;
12
+ };
13
+ /**
14
+ * UUID string type for all identifiers
15
+ */
16
+ type Uuid = string;
17
+ /**
18
+ * Tenant identifier for multi-tenant isolation.
19
+ * Branded type to prevent accidental mixing with other string IDs.
20
+ *
21
+ * @example
22
+ * ```typescript
23
+ * const tenantId: TenantId = asTenantId('tenant-123');
24
+ * const userId: UserId = asUserId('user-456');
25
+ *
26
+ * // Type error: cannot assign UserId to TenantId
27
+ * const wrong: TenantId = userId;
28
+ * ```
29
+ */
30
+ type TenantId = Brand<string, "TenantId">;
31
+ /**
32
+ * User identifier for audit trails and permissions.
33
+ * Branded type to prevent accidental mixing with other string IDs.
34
+ */
35
+ type UserId = Brand<string, "UserId">;
36
+ /**
37
+ * Convert a string to a TenantId.
38
+ * Use this when receiving tenant IDs from external sources (JWT, headers).
39
+ *
40
+ * @param id - The string to convert
41
+ * @returns A branded TenantId
42
+ *
43
+ * @example
44
+ * ```typescript
45
+ * const tenantId = asTenantId(request.headers['x-tenant-id']);
46
+ * ```
47
+ */
48
+ declare function asTenantId(id: string): TenantId;
49
+ /**
50
+ * Convert a string to a UserId.
51
+ * Use this when receiving user IDs from external sources (JWT, auth).
52
+ *
53
+ * @param id - The string to convert
54
+ * @returns A branded UserId
55
+ *
56
+ * @example
57
+ * ```typescript
58
+ * const userId = asUserId(jwtPayload.sub);
59
+ * ```
60
+ */
61
+ declare function asUserId(id: string): UserId;
62
+ /**
63
+ * Generate a unique UUID v4
64
+ * Uses crypto.randomUUID() when available (Node.js 19+, modern browsers)
65
+ * Falls back to a manual implementation for older environments
66
+ *
67
+ * @returns A UUID v4 string
68
+ *
69
+ * @example
70
+ * ```typescript
71
+ * const id = generateId();
72
+ * // "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
73
+ * ```
74
+ */
75
+ declare function generateId(): Uuid;
76
+ /**
77
+ * Generate a prefixed ID for better debugging and readability
78
+ *
79
+ * @param prefix - Prefix for the ID (e.g., "obj", "attr", "rec")
80
+ * @returns A prefixed UUID string
81
+ *
82
+ * @example
83
+ * ```typescript
84
+ * const objectId = generatePrefixedId("obj");
85
+ * // "obj_a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
86
+ *
87
+ * const attrId = generatePrefixedId("attr");
88
+ * // "attr_a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
89
+ * ```
90
+ */
91
+ declare function generatePrefixedId(prefix: string): Uuid;
92
+ /**
93
+ * Convert a string to a valid kebab-case slug.
94
+ * Removes accents, special chars, and normalizes spaces.
95
+ *
96
+ * @param input - The string to slugify
97
+ * @returns A kebab-case slug matching pattern ^[a-z][a-z0-9-]*$
98
+ *
99
+ * @example
100
+ * ```typescript
101
+ * slugify("Contrat de Vente");
102
+ * // "contrat-de-vente"
103
+ *
104
+ * slugify("Éléphant café");
105
+ * // "elephant-cafe"
106
+ *
107
+ * slugify(" Multiple Spaces ");
108
+ * // "multiple-spaces"
109
+ * ```
110
+ */
111
+ declare function slugify(input: string): string;
112
+ /**
113
+ * Generate a unique template name from a label.
114
+ * Format: {slugified-label}-{8-char-suffix}
115
+ * Matches DB constraint: ^[a-z][a-z0-9_-]*$
116
+ *
117
+ * @param label - The label to generate a name from
118
+ * @returns A unique kebab-case name
119
+ *
120
+ * @example
121
+ * ```typescript
122
+ * generateTemplateName("Contrat de Vente");
123
+ * // "contrat-de-vente-a1b2c3d4"
124
+ *
125
+ * generateTemplateName("");
126
+ * // "template-a1b2c3d4"
127
+ * ```
128
+ */
129
+ declare function generateTemplateName(label: string): string;
130
+ /**
131
+ * Create a Map indexed by a key extracted from each item.
132
+ * This eliminates the repeated pattern: new Map(items.map(item => [keyFn(item), item]))
133
+ *
134
+ * Time complexity: O(n)
135
+ * Space complexity: O(n)
136
+ *
137
+ * @param items - Array of items to index
138
+ * @param keyFn - Function to extract the key from each item
139
+ * @returns Map indexed by the extracted key
140
+ *
141
+ * @example
142
+ * ```typescript
143
+ * const attributes = [{ name: "title", type: "text" }, { name: "status", type: "select" }];
144
+ *
145
+ * // Before:
146
+ * const attrMap = new Map(attributes.map(a => [a.name, a]));
147
+ *
148
+ * // After:
149
+ * const attrMap = indexBy(attributes, a => a.name);
150
+ * ```
151
+ */
152
+ declare function indexBy<T, K extends PropertyKey>(items: T[], keyFn: (item: T) => K): Map<K, T>;
153
+
154
+ export { type TenantId, type UserId, type Uuid, asTenantId, asUserId, generateId, generatePrefixedId, generateTemplateName, indexBy, slugify };
package/dist/utils.js ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+ var _chunkNEVERCM3js = require('./chunk-NEVERCM3.js');
10
+ require('./chunk-3RG5ZIWI.js');
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+ exports.asTenantId = _chunkNEVERCM3js.asTenantId; exports.asUserId = _chunkNEVERCM3js.asUserId; exports.generateId = _chunkNEVERCM3js.generateId; exports.generatePrefixedId = _chunkNEVERCM3js.generatePrefixedId; exports.generateTemplateName = _chunkNEVERCM3js.generateTemplateName; exports.indexBy = _chunkNEVERCM3js.indexBy; exports.slugify = _chunkNEVERCM3js.slugify;
package/dist/utils.mjs ADDED
@@ -0,0 +1,19 @@
1
+ import {
2
+ asTenantId,
3
+ asUserId,
4
+ generateId,
5
+ generatePrefixedId,
6
+ generateTemplateName,
7
+ indexBy,
8
+ slugify
9
+ } from "./chunk-V2RPPE2Y.mjs";
10
+ import "./chunk-Y6FXYEAI.mjs";
11
+ export {
12
+ asTenantId,
13
+ asUserId,
14
+ generateId,
15
+ generatePrefixedId,
16
+ generateTemplateName,
17
+ indexBy,
18
+ slugify
19
+ };
@@ -0,0 +1,4 @@
1
+ import 'zod';
2
+ export { ao as DEFAULT_VALIDATION_MESSAGES, an as ValidationMessages, b8 as ValidationResult, aI as attributeConfigSchemas, at as checkboxConfigSchema, bh as computeRecordStatus, b5 as createAttributeValidator, aP as createCheckboxValidator, aS as createCurrencyValidator, aQ as createDateValidator, bc as createDraftValidator, aX as createFileValidator, b6 as createFormAttributeValidator, b1 as createFormulaValidator, aW as createLocationValidator, a_ as createMultiRelationValidator, aV as createMultiselectValidator, aO as createNumberValidator, b7 as createObjectValidator, aR as createPhoneValidator, b0 as createRatingValidator, a$ as createRelationValidator, b4 as createRichtextValidator, b2 as createRollupValidator, aU as createSelectValidator, aZ as createSingleRelationValidator, aT as createStatusValidator, b3 as createTextAreaValidator, aN as createTextValidator, aY as createUserValidator, aw as currencyConfigSchema, au as dateConfigSchema, aH as documentConfigSchema, aB as fileConfigSchema, am as formatZodErrors, aF as formulaConfigSchema, aJ as getAttributeConfigSchema, bf as getMissingRequiredAttributes, bg as isRecordComplete, ay as locationConfigSchema, aA as multiselectConfigSchema, as as numberConfigSchema, aL as parseAttributeConfig, av as phoneConfigSchema, aE as ratingConfigSchema, aD as relationConfigSchema, ar as richtextConfigSchema, aG as rollupConfigSchema, aM as safeParseAttributeConfig, az as selectConfigSchema, ax as statusConfigSchema, ap as textConfigSchema, aq as textareaConfigSchema, aC as userConfigSchema, b9 as validateAttribute, aK as validateAttributeConfig, bd as validateDraft, be as validateDraftOrThrow, ba as validateObject, bb as validateObjectOrThrow } from '../validators-BIAmz0CD.mjs';
3
+ import '@stndrds/constants';
4
+ import '../utils.mjs';
@@ -0,0 +1,4 @@
1
+ import 'zod';
2
+ export { ao as DEFAULT_VALIDATION_MESSAGES, an as ValidationMessages, b8 as ValidationResult, aI as attributeConfigSchemas, at as checkboxConfigSchema, bh as computeRecordStatus, b5 as createAttributeValidator, aP as createCheckboxValidator, aS as createCurrencyValidator, aQ as createDateValidator, bc as createDraftValidator, aX as createFileValidator, b6 as createFormAttributeValidator, b1 as createFormulaValidator, aW as createLocationValidator, a_ as createMultiRelationValidator, aV as createMultiselectValidator, aO as createNumberValidator, b7 as createObjectValidator, aR as createPhoneValidator, b0 as createRatingValidator, a$ as createRelationValidator, b4 as createRichtextValidator, b2 as createRollupValidator, aU as createSelectValidator, aZ as createSingleRelationValidator, aT as createStatusValidator, b3 as createTextAreaValidator, aN as createTextValidator, aY as createUserValidator, aw as currencyConfigSchema, au as dateConfigSchema, aH as documentConfigSchema, aB as fileConfigSchema, am as formatZodErrors, aF as formulaConfigSchema, aJ as getAttributeConfigSchema, bf as getMissingRequiredAttributes, bg as isRecordComplete, ay as locationConfigSchema, aA as multiselectConfigSchema, as as numberConfigSchema, aL as parseAttributeConfig, av as phoneConfigSchema, aE as ratingConfigSchema, aD as relationConfigSchema, ar as richtextConfigSchema, aG as rollupConfigSchema, aM as safeParseAttributeConfig, az as selectConfigSchema, ax as statusConfigSchema, ap as textConfigSchema, aq as textareaConfigSchema, aC as userConfigSchema, b9 as validateAttribute, aK as validateAttributeConfig, bd as validateDraft, be as validateDraftOrThrow, ba as validateObject, bb as validateObjectOrThrow } from '../validators-BPIB7Miq.js';
3
+ import '@stndrds/constants';
4
+ import '../utils.js';