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

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 { fV as AIConversationsRepository, fW as AIUsageMetricsRepository, fX as AIUserMemoryRepository, gj as AddAttributeInput, fJ as AttributeChange, fY as AttributesRepository, fZ as AuditRepository, hv as AuditService, gf as BaseRepository, ge as BaseService, e7 as CacheAdapter, e5 as CacheKeyType, e8 as CacheOptions, fa as ConditionExecutor, gi as CreateCustomObjectInput, ir as CreateDBAttribute, im as CreateDBObject, iB as CreateDBView, iF as CreateDBViewOverlay, iI as CreateDBWorkflow, iR as CreateDBWorkflowAccessGrant, iL as CreateDBWorkflowInstance, iO as CreateDBWorkflowInvitation, h9 as CreateGrantResult, iu as CreateObjectRecord, hK as CreateRecordDocumentInput, hL as CreateRecordDocumentResult, hU as CreateViewInput, hm as CreateWorkflowInput, iq as DBAttribute, il as DBObject, iA as DBView, iE as DBViewOverlay, iH as DBWorkflow, iQ as DBWorkflowAccessGrant, iK as DBWorkflowInstance, iN as DBWorkflowInvitation, ib as DEFAULT_LABEL_FALLBACK, d_ as DatabaseAdapter, fb as DocumentExecutor, hy as DocumentGenerationNotConfiguredError, hz as DocumentGenerationService, f_ as DocumentGenerationTemplateListOptions, hx as DocumentGenerationTemplateNotFoundError, f$ as DocumentGenerationTemplatesRepository, g0 as DocumentJobsRepository, hA as DocumentProcessingConfig, h3 as DocumentProcessingHook, h2 as DocumentProcessingHookOptions, hB as DocumentProcessingService, hF as DocumentRenderError, hD as DocumentRendererOptions, hH as DocumentRendererService, hN as DocumentService, hM as DocumentServiceOptions, g1 as DocumentSlotsRepository, hI as DocumentTemplateService, g3 as DocumentTemplatesRepository, g2 as DocumentsRepository, fc as EndExecutor, eu as EvaluationResult, ev as EvaluationTrace, e_ as ExecutorCompleteResult, e$ as ExecutorContext, f0 as ExecutorErrorResult, f7 as ExecutorRegistry, f1 as ExecutorResult, f2 as ExecutorSuccessResult, f3 as ExecutorWaitResult, eI as FeatureFlagsContext, eA as FeatureFlagsContextError, ed as FetchResult, hZ as FileContent, iz as FileListOptions, hP as FileService, hO as FileServiceOptions, g4 as FilesRepository, fd as FormExecutor, ee as FormattedRecord, gG as FormulaResolverService, gF as FormulaResolverServiceOptions, fr as FormulaResult, i9 as FullSyncOptions, i8 as FullSyncResult, bA as GeocodingAdapter, bx as GeocodingAutocompleteParams, bz as GeocodingParams, hQ as GeocodingService, bw as GeocodingSuggestion, gy as GetRelationOptionsParams, hX as GetViewOptions, hW as GetViewsOptions, ix as GlobalSearchOptions, iy as GlobalSearchResultItem, hR as GlobalSearchService, h5 as GrantExpiredError, h4 as GrantNotFoundError, h6 as GrantRevokedError, h8 as GrantServiceConfig, ef as GroupedFetchResult, fK as HookContext, fL as HookDefinition, fM as HookHandler, fP as HookRegistry, fN as HookType, eg as InsertOptions, fv as InvalidPathError, hi as InvitationAlreadyAcceptedError, hh as InvitationExpiredError, hg as InvitationNotFoundError, hj as InvitationRevokedError, hf as InvitationServiceConfig, e0 as JwtVerificationResult, gV as LabelResolver, iv as ListOptions, e1 as MagicLinkPayload, fw as MaxDepthExceededError, fR as MockStores, f4 as NodeExecutor, ec as NoopCacheAdapter, bB as NoopGeocodingAdapter, fO as NoopHookRegistry, g5 as ObjectRecordsRepository, gm as ObjectSchemaService, gl as ObjectSchemaServiceOptions, g6 as ObjectsRepository, iT as OperationResult, fA as PathCardinality, fB as PathSegment, fC as PathSegmentType, hT as PermissionService, hS as PermissionServiceOptions, g7 as PermissionsRepository, c8 as PolicyContext, fT as PolicyRegistry, ca as PolicyViolationError, es as QueryBuilder, et as QueryBuilderOptions, eh as QueryBuilderState, eo as QueryMultipleResultsError, ep as QueryNoResultError, gq as QueryOptions, gs as QueryResult, hJ as RecordDocumentsResult, c9 as RecordPolicy, gt as RecordQueryService, gp as RecordQueryServiceOptions, gD as RecordResolverService, go as RecordService, gn as RecordServiceOptions, ei as RegistryMap, ej as RegistryObjectNames, ij as RelationLabelResolver, gw as RelationOption, gx as RelationOptionsResponse, gC as RelationService, gz as RelationServiceOptions, gv as RelationValidationError, gu as RelationValidationResult, hC as RenderDocumentInput, hE as RenderDocumentResult, gA as ResolveIdsBatchRequest, gB as ResolveIdsBatchResponse, gE as ResolvedRelations, hc as ResumeWorkflowInput, by as ReverseGeocodingParams, h1 as RollupCascadeContext, gH as RollupResult, gL as RollupScheduler, gK as RollupSchedulerOptions, gJ as RollupService, gI as RollupServiceOptions, eq as SHORTCUT_TO_FILTER_OPERATOR, eQ as SchemaContext, gg as SchemaContextAware, gh as SchemaContextAwareRepository, fD as SchemaResolver, iw as SearchOptions, gr as SearchQueryOptions, ek as ShortcutOperator, i0 as SignedUrlOptions, fe as StartExecutor, hb as StartWorkflowInput, i1 as StorageAdapter, hG as StorageDownloadNotSupportedError, h_ as StorageUploadInput, h$ as StorageUploadResult, i4 as SyncOptions, i3 as SyncResult, eX as TenantContext, ez as TenantContextError, h7 as TokenRevokedError, fH as TraversalOptions, fI as TraversalResult, is as UpdateDBAttribute, io as UpdateDBObject, iC as UpdateDBView, iG as UpdateDBViewOverlay, iJ as UpdateDBWorkflow, iS as UpdateDBWorkflowAccessGrant, iM as UpdateDBWorkflowInstance, iP as UpdateDBWorkflowInvitation, gk as UpdateObjectInput, hV as UpdateViewInput, hn as UpdateWorkflowInput, i2 as UploadFileInput, it as UpsertDBAttribute, ip as UpsertDBObject, iD as UpsertDBView, hu as UserProfileService, ht as UserProfileServiceOptions, g8 as UserProfilesRepository, hs as UserService, hr as UserValidationError, hq as UserValidationResult, dZ as ViewOverlaysRepository, hY as ViewService, iV as ViewSyncLogger, iW as ViewSyncOptions, iU as ViewSyncResult, g9 as ViewsRepository, ha as WorkflowAccessGrantService, ga as WorkflowAccessGrantsRepository, e2 as WorkflowAccessPayload, he as WorkflowInstanceService, hd as WorkflowInstanceServiceOptions, gb as WorkflowInstancesRepository, hk as WorkflowInvitationService, gc as WorkflowInvitationsRepository, e3 as WorkflowJwtConfig, e4 as WorkflowJwtPayload, d$ as WorkflowJwtService, hl as WorkflowRelationService, hp as WorkflowService, ho as WorkflowServiceOptions, gd as WorkflowsRepository, eJ as addSchemaToContext, gM as applyDefaultValues, hw as buildAuditChanges, gP as buildPolicyContext, e9 as cacheKeys, ea as cacheTtl, gN as checkPermission, gQ as checkRecordAccess, gS as checkRecordDeleteOrThrow, gR as checkRecordModifyOrThrow, gT as checkSharedObjectWriteAccess, f5 as complete, gU as computeLabel, ik as computeLabelWithRelations, gY as createContextForCreate, g_ as createContextForDelete, g$ as createContextForRestore, gZ as createContextForUpdate, eY as createDefaultExecutorRegistry, el as createDefaultState, fQ as createMockAdapter, er as createQueryBuilder, fS as defaultPolicyRegistry, eb as defaultTtl, gX as enrichRecordsWithFormulas, ig as enrichValuesForDisplay, ih as enrichValuesWithSelectLabels, gW as enrichWithFormulas, f6 as error, ex as evaluate, ew as evaluateCondition, ff as evaluateFormula, fg as evaluateFormulaAttribute, fh as evaluateFormulaAttributeWithRelations, fi as evaluateFormulaWithRelations, fj as evaluateFormulaWithResult, ey as evaluateWithTrace, ie as extractAttributeNames, fk as extractFormulaVariables, ii as extractRelationIds, fl as extractRelationNames, fm as extractRelationReferences, fn as flattenRelationsForEval, fo as formatFormulaResult, em as formatRecord, en as formatRecords, eR as getContext, eZ as getDefaultExecutorRegistry, eB as getFeatureFlags, eC as getFeatureValue, fs as getPathDepth, gO as getPolicy, ft as getRelationPath, eK as getSchemaByNameFromContext, eL as getSchemaContext, eM as getSchemaFromContext, i7 as getSyncPreview, fu as getTargetAttributeName, eS as getTenantId, eT as getUserId, i$ as getViewSeedPreview, j0 as getViewSyncPreview, eU as hasContext, eD as hasFeatureFlagsContext, fp as hasRelationReferences, eN as hasSchemaContext, e6 as hashOptions, eE as isFeatureEnabled, id as isLabelExpression, fU as notesPolicy, fx as parsePath, fy as pathHasManyCardinality, h0 as recalculateParentRollups, ic as renderLabelExpression, fE as resolveMultiplePaths, fF as resolveSingleValue, eV as runWithContext, eF as runWithFeatureFlags, eO as runWithMergedSchemaContext, eP as runWithSchemaContext, iX as seedRegistryViews, f8 as success, ia as syncAll, i5 as syncNativeObjects, iY as syncNativeViews, fG as traversePath, eG as tryGetFeatureValue, fq as validateFormulaExpression, fz as validatePath, i6 as verifyNativeObjectsSync, i_ as verifyNativeViewsSync, iZ as verifyRegistryViewsSeeded, f9 as wait, eH as withFeatureFlags, eW as withTenantContext } from './runtime-SCsDOQi0.mjs';
2
+ export { a3 as CompletionStatus } from './validators-BgmWgr-G.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 { fV as AIConversationsRepository, fW as AIUsageMetricsRepository, fX as AIUserMemoryRepository, gj as AddAttributeInput, fJ as AttributeChange, fY as AttributesRepository, fZ as AuditRepository, hv as AuditService, gf as BaseRepository, ge as BaseService, e7 as CacheAdapter, e5 as CacheKeyType, e8 as CacheOptions, fa as ConditionExecutor, gi as CreateCustomObjectInput, ir as CreateDBAttribute, im as CreateDBObject, iB as CreateDBView, iF as CreateDBViewOverlay, iI as CreateDBWorkflow, iR as CreateDBWorkflowAccessGrant, iL as CreateDBWorkflowInstance, iO as CreateDBWorkflowInvitation, h9 as CreateGrantResult, iu as CreateObjectRecord, hK as CreateRecordDocumentInput, hL as CreateRecordDocumentResult, hU as CreateViewInput, hm as CreateWorkflowInput, iq as DBAttribute, il as DBObject, iA as DBView, iE as DBViewOverlay, iH as DBWorkflow, iQ as DBWorkflowAccessGrant, iK as DBWorkflowInstance, iN as DBWorkflowInvitation, ib as DEFAULT_LABEL_FALLBACK, d_ as DatabaseAdapter, fb as DocumentExecutor, hy as DocumentGenerationNotConfiguredError, hz as DocumentGenerationService, f_ as DocumentGenerationTemplateListOptions, hx as DocumentGenerationTemplateNotFoundError, f$ as DocumentGenerationTemplatesRepository, g0 as DocumentJobsRepository, hA as DocumentProcessingConfig, h3 as DocumentProcessingHook, h2 as DocumentProcessingHookOptions, hB as DocumentProcessingService, hF as DocumentRenderError, hD as DocumentRendererOptions, hH as DocumentRendererService, hN as DocumentService, hM as DocumentServiceOptions, g1 as DocumentSlotsRepository, hI as DocumentTemplateService, g3 as DocumentTemplatesRepository, g2 as DocumentsRepository, fc as EndExecutor, eu as EvaluationResult, ev as EvaluationTrace, e_ as ExecutorCompleteResult, e$ as ExecutorContext, f0 as ExecutorErrorResult, f7 as ExecutorRegistry, f1 as ExecutorResult, f2 as ExecutorSuccessResult, f3 as ExecutorWaitResult, eI as FeatureFlagsContext, eA as FeatureFlagsContextError, ed as FetchResult, hZ as FileContent, iz as FileListOptions, hP as FileService, hO as FileServiceOptions, g4 as FilesRepository, fd as FormExecutor, ee as FormattedRecord, gG as FormulaResolverService, gF as FormulaResolverServiceOptions, fr as FormulaResult, i9 as FullSyncOptions, i8 as FullSyncResult, bA as GeocodingAdapter, bx as GeocodingAutocompleteParams, bz as GeocodingParams, hQ as GeocodingService, bw as GeocodingSuggestion, gy as GetRelationOptionsParams, hX as GetViewOptions, hW as GetViewsOptions, ix as GlobalSearchOptions, iy as GlobalSearchResultItem, hR as GlobalSearchService, h5 as GrantExpiredError, h4 as GrantNotFoundError, h6 as GrantRevokedError, h8 as GrantServiceConfig, ef as GroupedFetchResult, fK as HookContext, fL as HookDefinition, fM as HookHandler, fP as HookRegistry, fN as HookType, eg as InsertOptions, fv as InvalidPathError, hi as InvitationAlreadyAcceptedError, hh as InvitationExpiredError, hg as InvitationNotFoundError, hj as InvitationRevokedError, hf as InvitationServiceConfig, e0 as JwtVerificationResult, gV as LabelResolver, iv as ListOptions, e1 as MagicLinkPayload, fw as MaxDepthExceededError, fR as MockStores, f4 as NodeExecutor, ec as NoopCacheAdapter, bB as NoopGeocodingAdapter, fO as NoopHookRegistry, g5 as ObjectRecordsRepository, gm as ObjectSchemaService, gl as ObjectSchemaServiceOptions, g6 as ObjectsRepository, iT as OperationResult, fA as PathCardinality, fB as PathSegment, fC as PathSegmentType, hT as PermissionService, hS as PermissionServiceOptions, g7 as PermissionsRepository, c8 as PolicyContext, fT as PolicyRegistry, ca as PolicyViolationError, es as QueryBuilder, et as QueryBuilderOptions, eh as QueryBuilderState, eo as QueryMultipleResultsError, ep as QueryNoResultError, gq as QueryOptions, gs as QueryResult, hJ as RecordDocumentsResult, c9 as RecordPolicy, gt as RecordQueryService, gp as RecordQueryServiceOptions, gD as RecordResolverService, go as RecordService, gn as RecordServiceOptions, ei as RegistryMap, ej as RegistryObjectNames, ij as RelationLabelResolver, gw as RelationOption, gx as RelationOptionsResponse, gC as RelationService, gz as RelationServiceOptions, gv as RelationValidationError, gu as RelationValidationResult, hC as RenderDocumentInput, hE as RenderDocumentResult, gA as ResolveIdsBatchRequest, gB as ResolveIdsBatchResponse, gE as ResolvedRelations, hc as ResumeWorkflowInput, by as ReverseGeocodingParams, h1 as RollupCascadeContext, gH as RollupResult, gL as RollupScheduler, gK as RollupSchedulerOptions, gJ as RollupService, gI as RollupServiceOptions, eq as SHORTCUT_TO_FILTER_OPERATOR, eQ as SchemaContext, gg as SchemaContextAware, gh as SchemaContextAwareRepository, fD as SchemaResolver, iw as SearchOptions, gr as SearchQueryOptions, ek as ShortcutOperator, i0 as SignedUrlOptions, fe as StartExecutor, hb as StartWorkflowInput, i1 as StorageAdapter, hG as StorageDownloadNotSupportedError, h_ as StorageUploadInput, h$ as StorageUploadResult, i4 as SyncOptions, i3 as SyncResult, eX as TenantContext, ez as TenantContextError, h7 as TokenRevokedError, fH as TraversalOptions, fI as TraversalResult, is as UpdateDBAttribute, io as UpdateDBObject, iC as UpdateDBView, iG as UpdateDBViewOverlay, iJ as UpdateDBWorkflow, iS as UpdateDBWorkflowAccessGrant, iM as UpdateDBWorkflowInstance, iP as UpdateDBWorkflowInvitation, gk as UpdateObjectInput, hV as UpdateViewInput, hn as UpdateWorkflowInput, i2 as UploadFileInput, it as UpsertDBAttribute, ip as UpsertDBObject, iD as UpsertDBView, hu as UserProfileService, ht as UserProfileServiceOptions, g8 as UserProfilesRepository, hs as UserService, hr as UserValidationError, hq as UserValidationResult, dZ as ViewOverlaysRepository, hY as ViewService, iV as ViewSyncLogger, iW as ViewSyncOptions, iU as ViewSyncResult, g9 as ViewsRepository, ha as WorkflowAccessGrantService, ga as WorkflowAccessGrantsRepository, e2 as WorkflowAccessPayload, he as WorkflowInstanceService, hd as WorkflowInstanceServiceOptions, gb as WorkflowInstancesRepository, hk as WorkflowInvitationService, gc as WorkflowInvitationsRepository, e3 as WorkflowJwtConfig, e4 as WorkflowJwtPayload, d$ as WorkflowJwtService, hl as WorkflowRelationService, hp as WorkflowService, ho as WorkflowServiceOptions, gd as WorkflowsRepository, eJ as addSchemaToContext, gM as applyDefaultValues, hw as buildAuditChanges, gP as buildPolicyContext, e9 as cacheKeys, ea as cacheTtl, gN as checkPermission, gQ as checkRecordAccess, gS as checkRecordDeleteOrThrow, gR as checkRecordModifyOrThrow, gT as checkSharedObjectWriteAccess, f5 as complete, gU as computeLabel, ik as computeLabelWithRelations, gY as createContextForCreate, g_ as createContextForDelete, g$ as createContextForRestore, gZ as createContextForUpdate, eY as createDefaultExecutorRegistry, el as createDefaultState, fQ as createMockAdapter, er as createQueryBuilder, fS as defaultPolicyRegistry, eb as defaultTtl, gX as enrichRecordsWithFormulas, ig as enrichValuesForDisplay, ih as enrichValuesWithSelectLabels, gW as enrichWithFormulas, f6 as error, ex as evaluate, ew as evaluateCondition, ff as evaluateFormula, fg as evaluateFormulaAttribute, fh as evaluateFormulaAttributeWithRelations, fi as evaluateFormulaWithRelations, fj as evaluateFormulaWithResult, ey as evaluateWithTrace, ie as extractAttributeNames, fk as extractFormulaVariables, ii as extractRelationIds, fl as extractRelationNames, fm as extractRelationReferences, fn as flattenRelationsForEval, fo as formatFormulaResult, em as formatRecord, en as formatRecords, eR as getContext, eZ as getDefaultExecutorRegistry, eB as getFeatureFlags, eC as getFeatureValue, fs as getPathDepth, gO as getPolicy, ft as getRelationPath, eK as getSchemaByNameFromContext, eL as getSchemaContext, eM as getSchemaFromContext, i7 as getSyncPreview, fu as getTargetAttributeName, eS as getTenantId, eT as getUserId, i$ as getViewSeedPreview, j0 as getViewSyncPreview, eU as hasContext, eD as hasFeatureFlagsContext, fp as hasRelationReferences, eN as hasSchemaContext, e6 as hashOptions, eE as isFeatureEnabled, id as isLabelExpression, fU as notesPolicy, fx as parsePath, fy as pathHasManyCardinality, h0 as recalculateParentRollups, ic as renderLabelExpression, fE as resolveMultiplePaths, fF as resolveSingleValue, eV as runWithContext, eF as runWithFeatureFlags, eO as runWithMergedSchemaContext, eP as runWithSchemaContext, iX as seedRegistryViews, f8 as success, ia as syncAll, i5 as syncNativeObjects, iY as syncNativeViews, fG as traversePath, eG as tryGetFeatureValue, fq as validateFormulaExpression, fz as validatePath, i6 as verifyNativeObjectsSync, i_ as verifyNativeViewsSync, iZ as verifyRegistryViewsSeeded, f9 as wait, eH as withFeatureFlags, eW as withTenantContext } from './runtime-C4vB_EcQ.js';
2
+ export { a3 as CompletionStatus } from './validators-miARInAq.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,9 @@
157
157
 
158
158
 
159
159
 
160
- var _chunkDPRLHGPOjs = require('./chunk-DPRLHGPO.js');
160
+ var _chunk2OS63USQjs = require('./chunk-2OS63USQ.js');
161
+ require('./chunk-NEVERCM3.js');
162
+ require('./chunk-U4AB53AM.js');
161
163
  require('./chunk-3RG5ZIWI.js');
162
164
 
163
165
 
@@ -318,4 +320,4 @@ require('./chunk-3RG5ZIWI.js');
318
320
 
319
321
 
320
322
 
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;
323
+ exports.AuditService = _chunk2OS63USQjs.AuditService; exports.BaseRepository = _chunk2OS63USQjs.BaseRepository; exports.BaseService = _chunk2OS63USQjs.BaseService; exports.ConditionExecutor = _chunk2OS63USQjs.ConditionExecutor; exports.DEFAULT_LABEL_FALLBACK = _chunk2OS63USQjs.DEFAULT_LABEL_FALLBACK; exports.DocumentExecutor = _chunk2OS63USQjs.DocumentExecutor; exports.DocumentGenerationNotConfiguredError = _chunk2OS63USQjs.DocumentGenerationNotConfiguredError; exports.DocumentGenerationService = _chunk2OS63USQjs.DocumentGenerationService; exports.DocumentGenerationTemplateNotFoundError = _chunk2OS63USQjs.DocumentGenerationTemplateNotFoundError; exports.DocumentProcessingHook = _chunk2OS63USQjs.DocumentProcessingHook; exports.DocumentProcessingService = _chunk2OS63USQjs.DocumentProcessingService; exports.DocumentRenderError = _chunk2OS63USQjs.DocumentRenderError; exports.DocumentRendererService = _chunk2OS63USQjs.DocumentRendererService; exports.DocumentService = _chunk2OS63USQjs.DocumentService; exports.DocumentTemplateService = _chunk2OS63USQjs.DocumentTemplateService; exports.EndExecutor = _chunk2OS63USQjs.EndExecutor; exports.ExecutorRegistry = _chunk2OS63USQjs.ExecutorRegistry; exports.FeatureFlagsContextError = _chunk2OS63USQjs.FeatureFlagsContextError; exports.FileService = _chunk2OS63USQjs.FileService; exports.FormExecutor = _chunk2OS63USQjs.FormExecutor; exports.FormulaResolverService = _chunk2OS63USQjs.FormulaResolverService; exports.GeocodingService = _chunk2OS63USQjs.GeocodingService; exports.GlobalSearchService = _chunk2OS63USQjs.GlobalSearchService; exports.GrantExpiredError = _chunk2OS63USQjs.GrantExpiredError; exports.GrantNotFoundError = _chunk2OS63USQjs.GrantNotFoundError; exports.GrantRevokedError = _chunk2OS63USQjs.GrantRevokedError; exports.InvalidPathError = _chunk2OS63USQjs.InvalidPathError; exports.InvitationAlreadyAcceptedError = _chunk2OS63USQjs.InvitationAlreadyAcceptedError; exports.InvitationExpiredError = _chunk2OS63USQjs.InvitationExpiredError; exports.InvitationNotFoundError = _chunk2OS63USQjs.InvitationNotFoundError; exports.InvitationRevokedError = _chunk2OS63USQjs.InvitationRevokedError; exports.MaxDepthExceededError = _chunk2OS63USQjs.MaxDepthExceededError; exports.NoopCacheAdapter = _chunk2OS63USQjs.NoopCacheAdapter; exports.NoopGeocodingAdapter = _chunk2OS63USQjs.NoopGeocodingAdapter; exports.NoopHookRegistry = _chunk2OS63USQjs.NoopHookRegistry; exports.ObjectSchemaService = _chunk2OS63USQjs.ObjectSchemaService; exports.PermissionService = _chunk2OS63USQjs.PermissionService; exports.PolicyRegistry = _chunk2OS63USQjs.PolicyRegistry; exports.PolicyViolationError = _chunk2OS63USQjs.PolicyViolationError; exports.QueryBuilder = _chunk2OS63USQjs.QueryBuilder; exports.QueryMultipleResultsError = _chunk2OS63USQjs.QueryMultipleResultsError; exports.QueryNoResultError = _chunk2OS63USQjs.QueryNoResultError; exports.RecordQueryService = _chunk2OS63USQjs.RecordQueryService; exports.RecordResolverService = _chunk2OS63USQjs.RecordResolverService; exports.RecordService = _chunk2OS63USQjs.RecordService; exports.RelationService = _chunk2OS63USQjs.RelationService; exports.RollupScheduler = _chunk2OS63USQjs.RollupScheduler; exports.RollupService = _chunk2OS63USQjs.RollupService; exports.SHORTCUT_TO_FILTER_OPERATOR = _chunk2OS63USQjs.SHORTCUT_TO_FILTER_OPERATOR; exports.SchemaContextAwareRepository = _chunk2OS63USQjs.SchemaContextAwareRepository; exports.StartExecutor = _chunk2OS63USQjs.StartExecutor; exports.StorageDownloadNotSupportedError = _chunk2OS63USQjs.StorageDownloadNotSupportedError; exports.TenantContextError = _chunk2OS63USQjs.TenantContextError; exports.TokenRevokedError = _chunk2OS63USQjs.TokenRevokedError; exports.UserProfileService = _chunk2OS63USQjs.UserProfileService; exports.UserService = _chunk2OS63USQjs.UserService; exports.ViewService = _chunk2OS63USQjs.ViewService; exports.WorkflowAccessGrantService = _chunk2OS63USQjs.WorkflowAccessGrantService; exports.WorkflowInstanceService = _chunk2OS63USQjs.WorkflowInstanceService; exports.WorkflowInvitationService = _chunk2OS63USQjs.WorkflowInvitationService; exports.WorkflowJwtService = _chunk2OS63USQjs.WorkflowJwtService; exports.WorkflowRelationService = _chunk2OS63USQjs.WorkflowRelationService; exports.WorkflowService = _chunk2OS63USQjs.WorkflowService; exports.addSchemaToContext = _chunk2OS63USQjs.addSchemaToContext; exports.applyDefaultValues = _chunk2OS63USQjs.applyDefaultValues; exports.buildAuditChanges = _chunk2OS63USQjs.buildAuditChanges; exports.buildPolicyContext = _chunk2OS63USQjs.buildPolicyContext; exports.cacheKeys = _chunk2OS63USQjs.cacheKeys; exports.cacheTtl = _chunk2OS63USQjs.cacheTtl; exports.checkPermission = _chunk2OS63USQjs.checkPermission; exports.checkRecordAccess = _chunk2OS63USQjs.checkRecordAccess; exports.checkRecordDeleteOrThrow = _chunk2OS63USQjs.checkRecordDeleteOrThrow; exports.checkRecordModifyOrThrow = _chunk2OS63USQjs.checkRecordModifyOrThrow; exports.checkSharedObjectWriteAccess = _chunk2OS63USQjs.checkSharedObjectWriteAccess; exports.complete = _chunk2OS63USQjs.complete; exports.computeLabel = _chunk2OS63USQjs.computeLabel; exports.computeLabelWithRelations = _chunk2OS63USQjs.computeLabelWithRelations; exports.createContextForCreate = _chunk2OS63USQjs.createContextForCreate; exports.createContextForDelete = _chunk2OS63USQjs.createContextForDelete; exports.createContextForRestore = _chunk2OS63USQjs.createContextForRestore; exports.createContextForUpdate = _chunk2OS63USQjs.createContextForUpdate; exports.createDefaultExecutorRegistry = _chunk2OS63USQjs.createDefaultExecutorRegistry; exports.createDefaultState = _chunk2OS63USQjs.createDefaultState; exports.createMockAdapter = _chunk2OS63USQjs.createMockAdapter; exports.createQueryBuilder = _chunk2OS63USQjs.createQueryBuilder; exports.defaultPolicyRegistry = _chunk2OS63USQjs.defaultPolicyRegistry; exports.defaultTtl = _chunk2OS63USQjs.defaultTtl; exports.enrichRecordsWithFormulas = _chunk2OS63USQjs.enrichRecordsWithFormulas; exports.enrichValuesForDisplay = _chunk2OS63USQjs.enrichValuesForDisplay; exports.enrichValuesWithSelectLabels = _chunk2OS63USQjs.enrichValuesWithSelectLabels; exports.enrichWithFormulas = _chunk2OS63USQjs.enrichWithFormulas; exports.error = _chunk2OS63USQjs.error; exports.evaluate = _chunk2OS63USQjs.evaluate; exports.evaluateCondition = _chunk2OS63USQjs.evaluateCondition; exports.evaluateFormula = _chunk2OS63USQjs.evaluateFormula; exports.evaluateFormulaAttribute = _chunk2OS63USQjs.evaluateFormulaAttribute; exports.evaluateFormulaAttributeWithRelations = _chunk2OS63USQjs.evaluateFormulaAttributeWithRelations; exports.evaluateFormulaWithRelations = _chunk2OS63USQjs.evaluateFormulaWithRelations; exports.evaluateFormulaWithResult = _chunk2OS63USQjs.evaluateFormulaWithResult; exports.evaluateWithTrace = _chunk2OS63USQjs.evaluateWithTrace; exports.extractAttributeNames = _chunk2OS63USQjs.extractAttributeNames; exports.extractFormulaVariables = _chunk2OS63USQjs.extractFormulaVariables; exports.extractRelationIds = _chunk2OS63USQjs.extractRelationIds; exports.extractRelationNames = _chunk2OS63USQjs.extractRelationNames; exports.extractRelationReferences = _chunk2OS63USQjs.extractRelationReferences; exports.flattenRelationsForEval = _chunk2OS63USQjs.flattenRelationsForEval; exports.formatFormulaResult = _chunk2OS63USQjs.formatFormulaResult; exports.formatRecord = _chunk2OS63USQjs.formatRecord; exports.formatRecords = _chunk2OS63USQjs.formatRecords; exports.getContext = _chunk2OS63USQjs.getContext; exports.getDefaultExecutorRegistry = _chunk2OS63USQjs.getDefaultExecutorRegistry; exports.getFeatureFlags = _chunk2OS63USQjs.getFeatureFlags; exports.getFeatureValue = _chunk2OS63USQjs.getFeatureValue; exports.getPathDepth = _chunk2OS63USQjs.getPathDepth; exports.getPolicy = _chunk2OS63USQjs.getPolicy; exports.getRelationPath = _chunk2OS63USQjs.getRelationPath; exports.getSchemaByNameFromContext = _chunk2OS63USQjs.getSchemaByNameFromContext; exports.getSchemaContext = _chunk2OS63USQjs.getSchemaContext; exports.getSchemaFromContext = _chunk2OS63USQjs.getSchemaFromContext; exports.getSyncPreview = _chunk2OS63USQjs.getSyncPreview; exports.getTargetAttributeName = _chunk2OS63USQjs.getTargetAttributeName; exports.getTenantId = _chunk2OS63USQjs.getTenantId; exports.getUserId = _chunk2OS63USQjs.getUserId; exports.getViewSeedPreview = _chunk2OS63USQjs.getViewSeedPreview; exports.getViewSyncPreview = _chunk2OS63USQjs.getViewSyncPreview; exports.hasContext = _chunk2OS63USQjs.hasContext; exports.hasFeatureFlagsContext = _chunk2OS63USQjs.hasFeatureFlagsContext; exports.hasRelationReferences = _chunk2OS63USQjs.hasRelationReferences; exports.hasSchemaContext = _chunk2OS63USQjs.hasSchemaContext; exports.hashOptions = _chunk2OS63USQjs.hashOptions; exports.isFeatureEnabled = _chunk2OS63USQjs.isFeatureEnabled; exports.isLabelExpression = _chunk2OS63USQjs.isLabelExpression; exports.notesPolicy = _chunk2OS63USQjs.notesPolicy; exports.parsePath = _chunk2OS63USQjs.parsePath; exports.pathHasManyCardinality = _chunk2OS63USQjs.pathHasManyCardinality; exports.recalculateParentRollups = _chunk2OS63USQjs.recalculateParentRollups; exports.renderLabelExpression = _chunk2OS63USQjs.renderLabelExpression; exports.resolveMultiplePaths = _chunk2OS63USQjs.resolveMultiplePaths; exports.resolveSingleValue = _chunk2OS63USQjs.resolveSingleValue; exports.runWithContext = _chunk2OS63USQjs.runWithContext; exports.runWithFeatureFlags = _chunk2OS63USQjs.runWithFeatureFlags; exports.runWithMergedSchemaContext = _chunk2OS63USQjs.runWithMergedSchemaContext; exports.runWithSchemaContext = _chunk2OS63USQjs.runWithSchemaContext; exports.seedRegistryViews = _chunk2OS63USQjs.seedRegistryViews; exports.success = _chunk2OS63USQjs.success; exports.syncAll = _chunk2OS63USQjs.syncAll; exports.syncNativeObjects = _chunk2OS63USQjs.syncNativeObjects; exports.syncNativeViews = _chunk2OS63USQjs.syncNativeViews; exports.traversePath = _chunk2OS63USQjs.traversePath; exports.tryGetFeatureValue = _chunk2OS63USQjs.tryGetFeatureValue; exports.validateFormulaExpression = _chunk2OS63USQjs.validateFormulaExpression; exports.validatePath = _chunk2OS63USQjs.validatePath; exports.verifyNativeObjectsSync = _chunk2OS63USQjs.verifyNativeObjectsSync; exports.verifyNativeViewsSync = _chunk2OS63USQjs.verifyNativeViewsSync; exports.verifyRegistryViewsSeeded = _chunk2OS63USQjs.verifyRegistryViewsSeeded; exports.wait = _chunk2OS63USQjs.wait; exports.withFeatureFlags = _chunk2OS63USQjs.withFeatureFlags; exports.withTenantContext = _chunk2OS63USQjs.withTenantContext;
package/dist/runtime.mjs CHANGED
@@ -157,7 +157,9 @@ import {
157
157
  wait,
158
158
  withFeatureFlags,
159
159
  withTenantContext
160
- } from "./chunk-YVUSATKC.mjs";
160
+ } from "./chunk-JRY236AO.mjs";
161
+ import "./chunk-V2RPPE2Y.mjs";
162
+ import "./chunk-SV4BCGQU.mjs";
161
163
  import "./chunk-Y6FXYEAI.mjs";
162
164
  export {
163
165
  AuditService,
@@ -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 { a7 as DEFAULT_VALIDATION_MESSAGES, a6 as ValidationMessages, aT as ValidationResult, ar as attributeConfigSchemas, ac as checkboxConfigSchema, b0 as computeRecordStatus, aQ as createAttributeValidator, ay as createCheckboxValidator, aB as createCurrencyValidator, az as createDateValidator, aX as createDraftValidator, aG as createFileValidator, aR as createFormAttributeValidator, aM as createFormulaValidator, aF as createLocationValidator, aJ as createMultiRelationValidator, aE as createMultiselectValidator, ax as createNumberValidator, aS as createObjectValidator, aA as createPhoneValidator, aL as createRatingValidator, aK as createRelationValidator, aP as createRichtextValidator, aN as createRollupValidator, aD as createSelectValidator, aI as createSingleRelationValidator, aC as createStatusValidator, aO as createTextAreaValidator, aw as createTextValidator, aH as createUserValidator, af as currencyConfigSchema, ad as dateConfigSchema, aq as documentConfigSchema, ak as fileConfigSchema, a5 as formatZodErrors, ao as formulaConfigSchema, as as getAttributeConfigSchema, a_ as getMissingRequiredAttributes, a$ as isRecordComplete, ah as locationConfigSchema, aj as multiselectConfigSchema, ab as numberConfigSchema, au as parseAttributeConfig, ae as phoneConfigSchema, an as ratingConfigSchema, am as relationConfigSchema, aa as richtextConfigSchema, ap as rollupConfigSchema, av as safeParseAttributeConfig, ai as selectConfigSchema, ag as statusConfigSchema, a8 as textConfigSchema, a9 as textareaConfigSchema, al as userConfigSchema, aU as validateAttribute, at as validateAttributeConfig, aY as validateDraft, aZ as validateDraftOrThrow, aV as validateObject, aW as validateObjectOrThrow } from '../validators-BgmWgr-G.mjs';
3
+ import '@stndrds/constants';
4
+ import '../utils.mjs';
@@ -0,0 +1,4 @@
1
+ import 'zod';
2
+ export { a7 as DEFAULT_VALIDATION_MESSAGES, a6 as ValidationMessages, aT as ValidationResult, ar as attributeConfigSchemas, ac as checkboxConfigSchema, b0 as computeRecordStatus, aQ as createAttributeValidator, ay as createCheckboxValidator, aB as createCurrencyValidator, az as createDateValidator, aX as createDraftValidator, aG as createFileValidator, aR as createFormAttributeValidator, aM as createFormulaValidator, aF as createLocationValidator, aJ as createMultiRelationValidator, aE as createMultiselectValidator, ax as createNumberValidator, aS as createObjectValidator, aA as createPhoneValidator, aL as createRatingValidator, aK as createRelationValidator, aP as createRichtextValidator, aN as createRollupValidator, aD as createSelectValidator, aI as createSingleRelationValidator, aC as createStatusValidator, aO as createTextAreaValidator, aw as createTextValidator, aH as createUserValidator, af as currencyConfigSchema, ad as dateConfigSchema, aq as documentConfigSchema, ak as fileConfigSchema, a5 as formatZodErrors, ao as formulaConfigSchema, as as getAttributeConfigSchema, a_ as getMissingRequiredAttributes, a$ as isRecordComplete, ah as locationConfigSchema, aj as multiselectConfigSchema, ab as numberConfigSchema, au as parseAttributeConfig, ae as phoneConfigSchema, an as ratingConfigSchema, am as relationConfigSchema, aa as richtextConfigSchema, ap as rollupConfigSchema, av as safeParseAttributeConfig, ai as selectConfigSchema, ag as statusConfigSchema, a8 as textConfigSchema, a9 as textareaConfigSchema, al as userConfigSchema, aU as validateAttribute, at as validateAttributeConfig, aY as validateDraft, aZ as validateDraftOrThrow, aV as validateObject, aW as validateObjectOrThrow } from '../validators-miARInAq.js';
3
+ import '@stndrds/constants';
4
+ import '../utils.js';