@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.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,10 @@
1
- import { D as DateAttribute, U as UserAttribute, a as DocumentAttribute, A as Attribute, S as SystemResource, b as SystemAction, O as ObjectAction, F as FeatureGate, T as TextAttribute, c as TextAreaAttribute, R as RichtextAttribute, d as RichtextFeature, N as NumberAttribute, C as CheckboxAttribute, P as PhoneAttribute, e as CurrencyAttribute, f as Option, g as StatusAttribute, h as SelectAttribute, M as MultiselectAttribute, L as LocationAttribute, i as FileAttribute, j as SingleRelationAttribute, k as MultiRelationAttribute, l as RelationTarget, m as RatingAttribute, n as FormulaAttribute, o as FormulaReturnType, p as RollupAttribute, q as RollupFunction, r as AttributeType, I as InferAttributeValue, s as ObjectDefinition, t as Field, u as AttributeGroupField, G as Group, v as TableTab, w as DetailViewLayout, x as InverseTableTab, y as DetailViewDefinition, z as InstanceStatus, B as Tab, E as FilterState, H as SortRule, J as DirectTableTab, K as ListViewDefinition, W as WorkflowTheme, Q as WorkflowConfig, V as SlotMode, X as ConditionGroup, Y as ConditionRule, Z as WorkflowNode, _ as WorkflowDefinition, $ as FlowRow, a0 as FlagValueType, a1 as FeatureFlagDefinition, a2 as FlagLevel, a3 as FeatureFlagsRepository, a4 as StaticFlagDefault, a5 as ResolvedFlag, a6 as ViewType, a7 as ViewDefinition, a8 as DocumentTemplate } from './runtime-BqJdmg_4.js';
2
- export { aJ as AIBatchQuestion, aK as AIBatchQuestionAnswer, aI as AIBatchQuestionOption, aD as AIChatMessage, aC as AIChatMessagePart, ax as AIChatMessagePartType, aP as AIConversation, i0 as AIConversationsRepository, aQ as AIMessage, aO as AIMessageAttachment, at as AIMessageRole, aU as AIProviderMetrics, aG as AIQuestion, aH as AIQuestionAnswer, aF as AIQuestionOption, aE as AIQuestionType, au as AIThinkingLevel, aM as AITodoItem, aN as AITodoList, aL as AITodoStatus, aw as AIToolCall, aR as AIToolCallRecord, av as AIToolCallStatus, aT as AIUsageMetrics, i1 as AIUsageMetricsRepository, aS as AIUserMemory, i2 as AIUserMemoryRepository, dk as ActivityTab, cy as AddAttribute, is as AddAttributeInput, c4 as AdvancedFilterState, d7 as AssignRoleInput, hQ as AttributeChange, aX as AttributeGroup, cx as AttributeMap, ct as AttributeSchema, i3 as AttributesRepository, b8 as AuditAction, b9 as AuditActorType, ba as AuditChange, bd as AuditListOptions, bb as AuditLogEntry, i4 as AuditRepository, b7 as AuditResourceType, jF as AuditService, be as AuditServiceOptions, aY as BaseAttribute, io as BaseRepository, im as BaseService, af as BoundingBox, ge as CacheAdapter, gc as CacheKeyType, gf as CacheOptions, du as CalendarViewConfig, dy as CalendarViewDefinition, ee as CanvasViewport, bS as CheckboxFilterOperator, cX as CompletionStatus, hh as ConditionExecutor, dR as ConditionNode, e4 as ConditionOperator, dB as ConfigOverrides, aV as CreateAIMessageInput, bc as CreateAuditLogInput, 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, bz as CreateDocument, bj as CreateDocumentGenerationTemplate, bD as CreateDocumentSlot, bB as CreateDocumentTemplate, bO as CreateFile, eB as CreateGrantInput, ji as CreateGrantResult, eu as CreateInvitationInput, ev as CreateInvitationResult, kC as CreateObjectRecord, d6 as CreatePermissionInput, bF as CreateProcessingJob, jU as CreateRecordDocumentInput, jV as CreateRecordDocumentResult, d4 as CreateRoleInput, ah as CreateSignatureInput, de as CreateUserProfile, k2 as CreateViewInput, jw as CreateWorkflowInput, b1 as Currency, bZ as CurrencyFilterValue, cC as CustomAttributeValue, dj as CustomTab, 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, eX as DEFAULT_THEME, fa as DEFAULT_VALIDATION_MESSAGES, g5 as DatabaseAdapter, bT as DateFilterOperator, a_ as DateFormat, a$ as DateValue, ds as DetailViewConfig, bs as Document, bp as DocumentAutoProcessing, ar as DocumentData, hi as DocumentExecutor, jI as DocumentGenerationNotConfiguredError, jJ as DocumentGenerationService, bi as DocumentGenerationTemplate, i5 as DocumentGenerationTemplateListOptions, jH as DocumentGenerationTemplateNotFoundError, i6 as DocumentGenerationTemplatesRepository, i7 as DocumentJobsRepository, bH as DocumentListOptions, dS as DocumentNode, 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, bu as DocumentSlot, bo as DocumentSlotDefinition, i8 as DocumentSlotsRepository, bt as DocumentStatus, bI as DocumentTemplateListOptions, jS as DocumentTemplateService, ia as DocumentTemplatesRepository, i9 as DocumentsRepository, dn as DocumentsTab, d1 as EffectivePermissions, hj as EndExecutor, dT as EndNode, 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, c1 as ExtendedFilterRule, cM as ExtractAttributes, cO as ExtractObjectRecord, cP as ExtractObjectRecordWithCustom, cG as ExtractRecord, cI as ExtractRecordInput, cJ as ExtractRecordInputStrict, cH as ExtractRecordStrict, cK as ExtractRecordUpdate, cL as ExtractRecordUpdateStrict, br as ExtractionField, bq as ExtractionMapping, bK as FeatureFlagsConfig, gP as FeatureFlagsContext, gH as FeatureFlagsContextError, gk as FetchResult, ju as FieldReadOnlyResult, bN as File, k7 as FileContent, kH as FileListOptions, jZ as FileService, jY as FileServiceOptions, bM as FileVisibility, ib as FilesRepository, c2 as FilterCombinator, c3 as FilterGroup, bX as FilterOperator, c0 as FilterRule, b$ as FilterValue, bJ as FlagOverride, cj as FlowDefinition, cg as FlowPage, ch as FlowRelation, cf as FlowRowField, ce as FlowSlot, ci as FlowStatus, dm as FlowsTab, eO as FormContextResponse, hk as FormExecutor, eP as FormFieldContext, dU as FormFieldRef, eQ as FormFieldRow, dV as FormNode, eR as FormNodeInfo, di as FormTab, gl as FormattedRecord, iP as FormulaResolverService, iO as FormulaResolverServiceOptions, hy as FormulaResult, kj as FullSyncOptions, ki as FullSyncResult, dw as GalleryViewConfig, dA as GalleryViewDefinition, eI as GeneratedDocument, 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, ao as IdentityVerificationAdapter, cz as InferRecord, cu as InferRecordFromSchema, cA as InferRecordInput, cB as InferRecordUpdate, cv as InferRecordWithRequirements, gn as InsertOptions, hC as InvalidPathError, jr as InvitationAlreadyAcceptedError, jq as InvitationExpiredError, jp as InvitationNotFoundError, js as InvitationRevokedError, jo as InvitationServiceConfig, ew as InvitationStatus, dg as InviteUserInput, g7 as JwtVerificationResult, j2 as LabelResolver, kD as ListOptions, dt as ListViewConfig, dp as ListViewLayout, b2 as Location, b3 as LocationGranularity, g8 as MagicLinkPayload, hD as MaxDepthExceededError, hY as MockStores, bV as MultiselectFilterOperator, cc as NO_VALUE_OPERATORS, cb as NoValueOperator, hb as NodeExecutor, ef as NodePosition, gj as NoopCacheAdapter, cs as NoopGeocodingAdapter, hV as NoopHookRegistry, dl as NotesTab, bR as NumberFilterOperator, aZ as NumberUnit, ca as OPERATORS_BY_TYPE, cW as ObjectAttribute, d2 as ObjectPermissions, cY as ObjectRecord, ic as ObjectRecordsRepository, iv as ObjectSchemaService, iu as ObjectSchemaServiceOptions, id as ObjectsRepository, a9 as OcrAdapter, aa as OcrInput, ab as OcrOptions, ad as OcrPage, ac as OcrResult, ae as OcrTextBlock, k$ as OperationResult, hH as PathCardinality, hI as PathSegment, hJ as PathSegmentType, bg as PdfTemplateField, em as PendingAction, bl as PendingDocumentRequest, c$ as Permission, cZ as PermissionScope, k1 as PermissionService, k0 as PermissionServiceOptions, ie as PermissionsRepository, b0 as Phone, b_ as PhoneFilterValue, d8 as PolicyContext, h_ as PolicyRegistry, da as PolicyViolationError, bw as ProcessingJob, by as ProcessingJobStatus, bx as ProcessingJobType, gz as QueryBuilder, gA as QueryBuilderOptions, go as QueryBuilderState, gv as QueryMultipleResultsError, gw as QueryNoResultError, iz as QueryOptions, iB as QueryResult, c9 as QueryState, b4 as RELATION_TARGET_ANY, cQ as RESERVED_ATTRIBUTE_NAMES, eS as ReadOnlyReason, aB as ReasoningPartData, jT as RecordDocumentsResult, cE as RecordMetadata, d9 as RecordPolicy, iC as RecordQueryService, iy as RecordQueryServiceOptions, iM as RecordResolverService, ix as RecordService, iw as RecordServiceOptions, gp as RegistryMap, gq as RegistryObjectNames, b5 as RelationAttribute, bW as RelationFilterOperator, ks as RelationLabelResolver, iF as RelationOption, iG as RelationOptionsResponse, iL as RelationService, iI as RelationServiceOptions, iE as RelationValidationError, iD as RelationValidationResult, bY as RelativeDateValue, jM as RenderDocumentInput, jO as RenderDocumentResult, cS as ReservedAttributeName, iJ as ResolveIdsBatchRequest, iK as ResolveIdsBatchResponse, iN as ResolvedRelations, jl as ResumeWorkflowInput, cp as ReverseGeocodingParams, c_ as Role, ja as RollupCascadeContext, iQ as RollupResult, iU as RollupScheduler, iT as RollupSchedulerOptions, iS as RollupService, iR as RollupServiceOptions, gx as SHORTCUT_TO_FILTER_OPERATOR, cR as SYSTEM_FIELD_NAMES, gX as SchemaContext, ip as SchemaContextAware, iq as SchemaContextAwareRepository, hK as SchemaResolver, kE as SearchOptions, iA as SearchQueryOptions, bU as SelectFilterOperator, cV as SharingMode, gr as ShortcutOperator, ag as SignatureAdapter, aj as SignaturePosition, ak as SignatureRequestResult, an as SignatureStatus, al as SignatureStatusResult, ka as SignedUrlOptions, ai as SignerRequest, am as SignerStatus, bv as SlotStatus, c8 as SortDirection, hl as StartExecutor, dW as StartNode, jk as StartWorkflowInput, aW as StatusGroup, kb as StorageAdapter, jQ as StorageDownloadNotSupportedError, bL as StorageProvider, k8 as StorageUploadInput, k9 as StorageUploadResult, ke as SyncOptions, kd as SyncResult, cT as SystemFieldName, cF as SystemFields, d3 as SystemPermissions, dh as TabType, bh as TemplateSource, h2 as TenantContext, gG as TenantContextError, e$ as TenantId, bQ as TextFilterOperator, ay as TextPartData, eU as ThemeColors, eV as ThemeLogo, eW as ThemeTypography, aA as ThinkingPartData, dv as TimelineViewConfig, dz as TimelineViewDefinition, cU as Timestamps, jg as TokenRevokedError, az as ToolPartData, hO as TraversalOptions, hP as TraversalResult, cw as TypedAttribute, cN as TypedObjectRecord, kA as UpdateDBAttribute, kw as UpdateDBObject, kK as UpdateDBView, kO as UpdateDBViewOverlay, kR as UpdateDBWorkflow, k_ as UpdateDBWorkflowAccessGrant, kU as UpdateDBWorkflowInstance, kX as UpdateDBWorkflowInvitation, bA as UpdateDocument, bk as UpdateDocumentGenerationTemplate, bE as UpdateDocumentSlot, bC as UpdateDocumentTemplate, bP as UpdateFile, it as UpdateObjectInput, bG as UpdateProcessingJob, d5 as UpdateRoleInput, df as UpdateUserProfile, k3 as UpdateViewInput, jx as UpdateWorkflowInput, kc as UploadFileInput, kB as UpsertDBAttribute, kx as UpsertDBObject, kL as UpsertDBView, f0 as UserId, dd as UserProfile, jE as UserProfileService, jD as UserProfileServiceOptions, ig as UserProfilesRepository, db as UserRole, d0 as UserRoleAssignment, jC as UserService, dc as UserStatus, jB as UserValidationError, jA as UserValidationResult, e_ as Uuid, f9 as ValidationMessages, fW as ValidationResult, bf as VariableMapping, as as VerificationCheck, aq as VerificationResult, ap as VerifyInput, dx as ViewConfig, dq as ViewLayout, dC as ViewOverlay, g4 as ViewOverlaysRepository, k6 as ViewService, l1 as ViewSyncLogger, l2 as ViewSyncOptions, l0 as ViewSyncResult, dr as ViewTab, ih as ViewsRepository, cD as WithCustomAttributes, eC as WorkflowAccessGrant, jj as WorkflowAccessGrantService, ii as WorkflowAccessGrantsRepository, eT as WorkflowAccessMode, g9 as WorkflowAccessPayload, en as WorkflowError, eJ as WorkflowExecutionContext, eo as WorkflowInstance, jn as WorkflowInstanceService, jm as WorkflowInstanceServiceOptions, ij as WorkflowInstancesRepository, ex as WorkflowInvitation, jt as WorkflowInvitationService, ik as WorkflowInvitationsRepository, ga as WorkflowJwtConfig, gb as WorkflowJwtPayload, g6 as WorkflowJwtService, eg as WorkflowLayout, dX as WorkflowNodeType, jv as WorkflowRelationService, jz as WorkflowService, jy as WorkflowServiceOptions, eh as WorkflowSlot, ei as WorkflowStatus, ep as WorkflowTransition, il as WorkflowsRepository, gQ as addSchemaToContext, e5 as and, iV as applyDefaultValues, f1 as asTenantId, f2 as asUserId, fu as attributeConfigSchemas, jG as buildAuditChanges, iY as buildPolicyContext, gg as cacheKeys, gh as cacheTtl, eD as canAccessNode, eq as canResumeInstance, iW as checkPermission, iZ as checkRecordAccess, i$ as checkRecordDeleteOrThrow, i_ as checkRecordModifyOrThrow, j0 as checkSharedObjectWriteAccess, ff as checkboxConfigSchema, hc as complete, j1 as computeLabel, kt as computeLabelWithRelations, g3 as computeRecordStatus, fT as createAttributeValidator, fB as createCheckboxValidator, j5 as createContextForCreate, j7 as createContextForDelete, j8 as createContextForRestore, j6 as createContextForUpdate, fE as createCurrencyValidator, fC as createDateValidator, h3 as createDefaultExecutorRegistry, gs as createDefaultState, f_ as createDraftValidator, eK as createEmptyContext, fJ as createFileValidator, fU as createFormAttributeValidator, fP as createFormulaValidator, fI as createLocationValidator, hX as createMockAdapter, fM as createMultiRelationValidator, fH as createMultiselectValidator, fA as createNumberValidator, fV as createObjectValidator, fD as createPhoneValidator, gy as createQueryBuilder, fO as createRatingValidator, fN as createRelationValidator, fS as createRichtextValidator, fQ as createRollupValidator, fG as createSelectValidator, fL as createSingleRelationValidator, er as createStartTransition, fF as createStatusValidator, fR as createTextAreaValidator, fz as createTextValidator, fK as createUserValidator, fi as currencyConfigSchema, fg as dateConfigSchema, hZ as defaultPolicyRegistry, gi as defaultTtl, ft as documentConfigSchema, j4 as enrichRecordsWithFormulas, kp as enrichValuesForDisplay, kq as enrichValuesWithSelectLabels, j3 as enrichWithFormulas, e6 as eq, 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, fn as fileConfigSchema, hu as flattenRelationsForEval, hv as formatFormulaResult, gt as formatRecord, gu as formatRecords, fr as formulaConfigSchema, eY as generateCssVariables, f3 as generateId, f4 as generatePrefixedId, f6 as generateTemplateName, fv as getAttributeConfigSchema, gY as getContext, eL as getContextValue, h4 as getDefaultExecutorRegistry, gI as getFeatureFlags, gJ as getFeatureValue, g1 as getMissingRequiredAttributes, dY as getNodeOutputs, 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, e7 as inValues, dN as isActivityTab, c5 as isAdvancedFilterState, dZ as isAdvancedFormNode, dF as isCalendarView, e8 as isConditionGroup, d_ as isConditionNode, e9 as isConditionRule, dM as isCustomTab, dD as isDetailView, dK as isDirectTableTab, d$ as isDocumentNode, dQ as isDocumentsTab, bn as isDocxTemplateSource, ea as isEmpty, e0 as isEndNode, gL as isFeatureEnabled, ck as isFlowDefinition, cl as isFlowPublished, dP as isFlowsTab, e1 as isFormNode, dI as isFormTab, dH as isGalleryView, eE as isGrantExpired, eF as isGrantRevoked, eG as isGrantValid, es as isInstanceTerminal, et as isInstanceWaiting, dL as isInverseTableTab, ey as isInvitationAccepted, ez as isInvitationExpired, eA as isInvitationValid, kn as isLabelExpression, dE as isListView, cd as isNoValueOperator, eb as isNotEmpty, dO as isNotesTab, bm as isPdfTemplateSource, g2 as isRecordComplete, e2 as isSimpleFormNode, e3 as isStartNode, cm as isSystemFlow, ej as isSystemWorkflow, dJ as isTableTab, dG as isTimelineView, eH as isTokenRevoked, b6 as isUniversalRelation, ek as isWorkflowDefinition, el as isWorkflowPublished, fk as locationConfigSchema, eM as mergeFormToSlot, eZ as mergeWithDefaults, fm as multiselectConfigSchema, ec as neq, h$ as notesPolicy, fe as numberConfigSchema, ed as or, fx as parseAttributeConfig, hE as parsePath, hF as pathHasManyCardinality, fh as phoneConfigSchema, fq as ratingConfigSchema, j9 as recalculateParentRollups, f7 as registry, fp as relationConfigSchema, km as renderLabelExpression, hL as resolveMultiplePaths, hM as resolveSingleValue, fd as richtextConfigSchema, fs as rollupConfigSchema, h0 as runWithContext, gM as runWithFeatureFlags, gV as runWithMergedSchemaContext, gW as runWithSchemaContext, fy as safeParseAttributeConfig, l3 as seedRegistryViews, fl as selectConfigSchema, eN as setContextValue, f5 as slugify, fj as statusConfigSchema, hf as success, kk as syncAll, kf as syncNativeObjects, l4 as syncNativeViews, fb as textConfigSchema, fc as textareaConfigSchema, c6 as toAdvancedFilterState, c7 as toSimpleFilterState, hN as traversePath, gN as tryGetFeatureValue, fo as userConfigSchema, fX as validateAttribute, fw as validateAttributeConfig, f$ as validateDraft, g0 as validateDraftOrThrow, hx as validateFormulaExpression, fY as validateObject, fZ as validateObjectOrThrow, hG as validatePath, kg as verifyNativeObjectsSync, l6 as verifyNativeViewsSync, l5 as verifyRegistryViewsSeeded, f8 as viewRegistry, hg as wait, gO as withFeatureFlags, h1 as withTenantContext } from './runtime-BqJdmg_4.js';
1
+ import { S as SystemResource, a as SystemAction, O as ObjectAction, I as InferAttributeValue, F as Field, A as AttributeGroupField, G as Group, T as TableTab, D as DetailViewLayout, b as InverseTableTab, c as DetailViewDefinition, d as InstanceStatus, e as Tab, f as FilterState, g as SortRule, h as DirectTableTab, L as ListViewDefinition, W as WorkflowTheme, i as WorkflowConfig, j as SlotMode, C as ConditionGroup, k as ConditionRule, l as WorkflowNode, m as WorkflowDefinition, n as FlowRow, V as ViewType, o as ViewDefinition, p as DocumentTemplate } from './runtime-BRkoIwsC.js';
2
+ export { aa as AIBatchQuestion, ab as AIBatchQuestionAnswer, a9 as AIBatchQuestionOption, a4 as AIChatMessage, a3 as AIChatMessagePart, _ as AIChatMessagePartType, ag as AIConversation, fY as AIConversationsRepository, ah as AIMessage, af as AIMessageAttachment, U as AIMessageRole, al as AIProviderMetrics, a7 as AIQuestion, a8 as AIQuestionAnswer, a6 as AIQuestionOption, a5 as AIQuestionType, X as AIThinkingLevel, ad as AITodoItem, ae as AITodoList, ac as AITodoStatus, Z as AIToolCall, ai as AIToolCallRecord, Y as AIToolCallStatus, ak as AIUsageMetrics, fZ as AIUsageMetricsRepository, aj as AIUserMemory, f_ as AIUserMemoryRepository, ck as ActivityTab, bH as AddAttribute, gm as AddAttributeInput, bg as AdvancedFilterState, c7 as AssignRoleInput, fM as AttributeChange, bG as AttributeMap, bC as AttributeSchema, f$ as AttributesRepository, ao as AuditAction, ap as AuditActorType, aq as AuditChange, at as AuditListOptions, ar as AuditLogEntry, g0 as AuditRepository, an as AuditResourceType, hC as AuditService, au as AuditServiceOptions, gi as BaseRepository, gh as BaseService, B as BoundingBox, ea as CacheAdapter, e8 as CacheKeyType, eb as CacheOptions, ct as CalendarViewConfig, cx as CalendarViewDefinition, db as CanvasViewport, b2 as CheckboxFilterOperator, fd as ConditionExecutor, cQ as ConditionNode, d3 as ConditionOperator, cA as ConfigOverrides, am as CreateAIMessageInput, as as CreateAuditLogInput, 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, aN as CreateDocument, az as CreateDocumentGenerationTemplate, aR as CreateDocumentSlot, aP as CreateDocumentTemplate, a_ as CreateFile, dz as CreateGrantInput, hg as CreateGrantResult, ds as CreateInvitationInput, dt as CreateInvitationResult, iB as CreateObjectRecord, c6 as CreatePermissionInput, aT as CreateProcessingJob, hR as CreateRecordDocumentInput, hS as CreateRecordDocumentResult, c4 as CreateRoleInput, x as CreateSignatureInput, ce as CreateUserProfile, h$ as CreateViewInput, ht as CreateWorkflowInput, b9 as CurrencyFilterValue, bL as CustomAttributeValue, cj as CustomTab, 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, dU as DEFAULT_THEME, e1 as DatabaseAdapter, b3 as DateFilterOperator, cr as DetailViewConfig, aG as Document, aD as DocumentAutoProcessing, Q as DocumentData, fe as DocumentExecutor, hF as DocumentGenerationNotConfiguredError, hG as DocumentGenerationService, ay as DocumentGenerationTemplate, g1 as DocumentGenerationTemplateListOptions, hE as DocumentGenerationTemplateNotFoundError, g2 as DocumentGenerationTemplatesRepository, g3 as DocumentJobsRepository, aV as DocumentListOptions, cR as DocumentNode, 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, aI as DocumentSlot, aC as DocumentSlotDefinition, g4 as DocumentSlotsRepository, aH as DocumentStatus, aW as DocumentTemplateListOptions, hP as DocumentTemplateService, g6 as DocumentTemplatesRepository, g5 as DocumentsRepository, cn as DocumentsTab, c1 as EffectivePermissions, ff as EndExecutor, cS as EndNode, 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, bd as ExtendedFilterRule, bV as ExtractAttributes, bX as ExtractObjectRecord, bY as ExtractObjectRecordWithCustom, bP as ExtractRecord, bR as ExtractRecordInput, bS as ExtractRecordInputStrict, bQ as ExtractRecordStrict, bT as ExtractRecordUpdate, bU as ExtractRecordUpdateStrict, aF as ExtractionField, aE as ExtractionMapping, eL as FeatureFlagsContext, eD as FeatureFlagsContextError, eg as FetchResult, aZ as File, i4 as FileContent, iG as FileListOptions, hW as FileService, hV as FileServiceOptions, aY as FileVisibility, g7 as FilesRepository, be as FilterCombinator, bf as FilterGroup, b7 as FilterOperator, bc as FilterRule, bb as FilterValue, bs as FlowDefinition, bp as FlowPage, bq as FlowRelation, bo as FlowRowField, bn as FlowSlot, br as FlowStatus, cm as FlowsTab, dL as FormContextResponse, fg as FormExecutor, dM as FormFieldContext, cT as FormFieldRef, dN as FormFieldRow, cU as FormNode, dO as FormNodeInfo, ci as FormTab, eh as FormattedRecord, gN as FormulaResolverService, gM as FormulaResolverServiceOptions, fu as FormulaResult, ih as FullSyncOptions, ig as FullSyncResult, cv as GalleryViewConfig, cz as GalleryViewDefinition, dG as GeneratedDocument, 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, M as IdentityVerificationAdapter, bI as InferRecord, bD as InferRecordFromSchema, bJ as InferRecordInput, bK as InferRecordUpdate, bE as InferRecordWithRequirements, ej as InsertOptions, fy as InvalidPathError, hp as InvitationAlreadyAcceptedError, ho as InvitationExpiredError, hn as InvitationNotFoundError, hq as InvitationRevokedError, hm as InvitationServiceConfig, du as InvitationStatus, cg as InviteUserInput, e3 as JwtVerificationResult, h0 as LabelResolver, iC as ListOptions, cs as ListViewConfig, co as ListViewLayout, e4 as MagicLinkPayload, fz as MaxDepthExceededError, fU as MockStores, gG as MultiRelationValue, b5 as MultiselectFilterOperator, bl as NO_VALUE_OPERATORS, bk as NoValueOperator, f7 as NodeExecutor, dc as NodePosition, ef as NoopCacheAdapter, bB as NoopGeocodingAdapter, fR as NoopHookRegistry, cl as NotesTab, b1 as NumberFilterOperator, bj as OPERATORS_BY_TYPE, c2 as ObjectPermissions, g8 as ObjectRecordsRepository, gp as ObjectSchemaService, go as ObjectSchemaServiceOptions, g9 as ObjectsRepository, q as OcrAdapter, r as OcrInput, s as OcrOptions, u as OcrPage, t as OcrResult, v as OcrTextBlock, i_ as OperationResult, fD as PathCardinality, fE as PathSegment, fF as PathSegmentType, aw as PdfTemplateField, dj as PendingAction, aB as PendingDocumentRequest, b$ as Permission, bZ as PermissionScope, h_ as PermissionService, hZ as PermissionServiceOptions, ga as PermissionsRepository, ba as PhoneFilterValue, c8 as PolicyContext, fW as PolicyRegistry, ca as PolicyViolationError, aK as ProcessingJob, aM as ProcessingJobStatus, aL as ProcessingJobType, ev as QueryBuilder, ew as QueryBuilderOptions, ek as QueryBuilderState, er as QueryMultipleResultsError, es as QueryNoResultError, gt as QueryOptions, gv as QueryResult, bi as QueryState, dP as ReadOnlyReason, a2 as ReasoningPartData, hQ as RecordDocumentsResult, bN as RecordMetadata, 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, b6 as RelationFilterOperator, ir as RelationLabelResolver, gz as RelationOption, gA as RelationOptionsResponse, gJ as RelationPropertiesService, gF as RelationService, gC as RelationServiceOptions, gy as RelationValidationError, gx as RelationValidationResult, b8 as RelativeDateValue, hJ as RenderDocumentInput, hL as RenderDocumentResult, gD as ResolveIdsBatchRequest, gE as ResolveIdsBatchResponse, gL as ResolvedRelations, hj as ResumeWorkflowInput, by as ReverseGeocodingParams, b_ as Role, 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, b4 as SelectFilterOperator, en as ShortcutOperator, w as SignatureAdapter, z as SignaturePosition, E as SignatureRequestResult, K as SignatureStatus, H as SignatureStatusResult, i7 as SignedUrlOptions, y as SignerRequest, J as SignerStatus, gH as SingleRelationValue, aJ as SlotStatus, bh as SortDirection, fh as StartExecutor, cV as StartNode, hi as StartWorkflowInput, i8 as StorageAdapter, hN as StorageDownloadNotSupportedError, aX as StorageProvider, i5 as StorageUploadInput, i6 as StorageUploadResult, ib as SyncOptions, ia as SyncResult, bO as SystemFields, c3 as SystemPermissions, ch as TabType, ax as TemplateSource, e_ as TenantContext, eC as TenantContextError, b0 as TextFilterOperator, $ as TextPartData, dR as ThemeColors, dS as ThemeLogo, dT as ThemeTypography, a1 as ThinkingPartData, cu as TimelineViewConfig, cy as TimelineViewDefinition, he as TokenRevokedError, a0 as ToolPartData, fK as TraversalOptions, fL as TraversalResult, bF as TypedAttribute, bW as TypedObjectRecord, iz as UpdateDBAttribute, iv as UpdateDBObject, iJ as UpdateDBView, iN as UpdateDBViewOverlay, iQ as UpdateDBWorkflow, iZ as UpdateDBWorkflowAccessGrant, iT as UpdateDBWorkflowInstance, iW as UpdateDBWorkflowInvitation, aO as UpdateDocument, aA as UpdateDocumentGenerationTemplate, aS as UpdateDocumentSlot, aQ as UpdateDocumentTemplate, a$ as UpdateFile, gn as UpdateObjectInput, aU as UpdateProcessingJob, c5 as UpdateRoleInput, cf as UpdateUserProfile, i0 as UpdateViewInput, hu as UpdateWorkflowInput, i9 as UploadFileInput, iA as UpsertDBAttribute, iw as UpsertDBObject, iK as UpsertDBView, cd as UserProfile, hB as UserProfileService, hA as UserProfileServiceOptions, gb as UserProfilesRepository, cb as UserRole, c0 as UserRoleAssignment, hz as UserService, cc as UserStatus, hy as UserValidationError, hx as UserValidationResult, av as VariableMapping, R as VerificationCheck, P as VerificationResult, N as VerifyInput, cw as ViewConfig, cp as ViewLayout, cB as ViewOverlay, dZ as ViewOverlaysRepository, i3 as ViewService, j0 as ViewSyncLogger, j1 as ViewSyncOptions, i$ as ViewSyncResult, cq as ViewTab, gc as ViewsRepository, bM as WithCustomAttributes, dA as WorkflowAccessGrant, hh as WorkflowAccessGrantService, gd as WorkflowAccessGrantsRepository, dQ as WorkflowAccessMode, e5 as WorkflowAccessPayload, dk as WorkflowError, dH as WorkflowExecutionContext, dl as WorkflowInstance, hl as WorkflowInstanceService, hk as WorkflowInstanceServiceOptions, ge as WorkflowInstancesRepository, dv as WorkflowInvitation, hr as WorkflowInvitationService, gf as WorkflowInvitationsRepository, e6 as WorkflowJwtConfig, e7 as WorkflowJwtPayload, e2 as WorkflowJwtService, dd as WorkflowLayout, cW as WorkflowNodeType, hs as WorkflowRelationService, hw as WorkflowService, hv as WorkflowServiceOptions, de as WorkflowSlot, df as WorkflowStatus, dm as WorkflowTransition, gg as WorkflowsRepository, eM as addSchemaToContext, d4 as and, gT as applyDefaultValues, hD as buildAuditChanges, gW as buildPolicyContext, ec as cacheKeys, ed as cacheTtl, dB as canAccessNode, dn as canResumeInstance, 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, dI as createEmptyContext, fT as createMockAdapter, eu as createQueryBuilder, dp as createStartTransition, fV as defaultPolicyRegistry, ee as defaultTtl, h2 as enrichRecordsWithFormulas, io as enrichValuesForDisplay, ip as enrichValuesWithSelectLabels, h1 as enrichWithFormulas, d5 as eq, 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, dV as generateCssVariables, eU as getContext, dJ as getContextValue, f0 as getDefaultExecutorRegistry, eE as getFeatureFlags, eF as getFeatureValue, cX as getNodeOutputs, 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, d6 as inValues, cM as isActivityTab, cY as isAdvancedFormNode, cE as isCalendarView, d7 as isConditionGroup, cZ as isConditionNode, d8 as isConditionRule, cL as isCustomTab, cC as isDetailView, cJ as isDirectTableTab, c_ as isDocumentNode, cP as isDocumentsTab, c$ as isEndNode, eH as isFeatureEnabled, bt as isFlowDefinition, bu as isFlowPublished, cO as isFlowsTab, d0 as isFormNode, cH as isFormTab, cG as isGalleryView, dC as isGrantExpired, dD as isGrantRevoked, dE as isGrantValid, dq as isInstanceTerminal, dr as isInstanceWaiting, cK as isInverseTableTab, dw as isInvitationAccepted, dx as isInvitationExpired, dy as isInvitationValid, il as isLabelExpression, cD as isListView, bm as isNoValueOperator, cN as isNotesTab, d1 as isSimpleFormNode, d2 as isStartNode, bv as isSystemFlow, dg as isSystemWorkflow, cI as isTableTab, cF as isTimelineView, dF as isTokenRevoked, dh as isWorkflowDefinition, di as isWorkflowPublished, dW as mergeWithDefaults, d9 as neq, fX as notesPolicy, da as or, fA as parsePath, fB as pathHasManyCardinality, h7 as recalculateParentRollups, dX as registry, ik as renderLabelExpression, fH as resolveMultiplePaths, fI as resolveSingleValue, eY as runWithContext, eI as runWithFeatureFlags, eR as runWithMergedSchemaContext, eS as runWithSchemaContext, j2 as seedRegistryViews, dK as setContextValue, 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, dY as viewRegistry, fc as wait, eK as withFeatureFlags, eZ as withTenantContext } from './runtime-BRkoIwsC.js';
3
+ import { D as DateAttribute, U as UserAttribute, a as DocumentAttribute, A as Attribute, P as PropertyDefinition, T as TextPropertyDefinition, b as TextareaPropertyDefinition, N as NumberPropertyDefinition, C as CheckboxPropertyDefinition, c as DatePropertyDefinition, d as PhonePropertyDefinition, e as CurrencyPropertyDefinition, S as StatusPropertyDefinition, O as Option, f as StatusGroup, g as SelectPropertyDefinition, M as MultiselectPropertyDefinition, R as RatingPropertyDefinition, L as LocationPropertyDefinition, h as PropertySchema, F as FeatureGate, i as TextAttribute, j as TextAreaAttribute, k as RichtextAttribute, l as RichtextFeature, m as NumberAttribute, n as CheckboxAttribute, o as PhoneAttribute, p as CurrencyAttribute, q as StatusAttribute, r as SelectAttribute, s as MultiselectAttribute, t as LocationAttribute, u as FileAttribute, v as SingleRelationAttribute, w as MultiRelationAttribute, x as RelationTarget, y as RatingAttribute, z as FormulaAttribute, B as FormulaReturnType, E as RollupAttribute, G as RollupFunction, H as AttributeType, I as ObjectDefinition, J as FlagValueType, K as FeatureFlagDefinition, Q as FlagLevel, V as FeatureFlagsRepository, W as StaticFlagDefault, X as ResolvedFlag } from './validators-BPIB7Miq.js';
4
+ export { Y as AttributeGroup, Z as BaseAttribute, ah as CompletionStatus, a2 as Currency, ao as DEFAULT_VALIDATION_MESSAGES, $ as DateFormat, a0 as DateValue, ak as FORBIDDEN_PROPERTY_TYPES, a9 as FeatureFlagsConfig, a8 as FlagOverride, al as ForbiddenPropertyType, a3 as Location, a4 as LocationGranularity, _ as NumberUnit, ag as ObjectAttribute, ai as ObjectRecord, a1 as Phone, aj as PropertyType, a5 as RELATION_TARGET_ANY, aa as RESERVED_ATTRIBUTE_NAMES, a6 as RelationAttribute, ac as ReservedAttributeName, ab as SYSTEM_FIELD_NAMES, af as SharingMode, ad as SystemFieldName, ae as Timestamps, 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, a7 as isUniversalRelation, 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
5
  import { z } from 'zod';
4
- import { IconName, CountryIso3, CurrencyCode, MimeType, ColorId } from '@stndrds/constants';
6
+ export { TenantId, UserId, Uuid, asTenantId, asUserId, generateId, generatePrefixedId, generateTemplateName, indexBy, slugify } from './utils.js';
7
+ import { CurrencyCode, IconName, CountryIso3, MimeType, ColorId } from '@stndrds/constants';
5
8
  import 'jose';
6
9
 
7
10
  /**
@@ -111,14 +114,6 @@ declare function isBehaviorProperty(property: string): property is BehaviorPrope
111
114
  * Check if a property is a presentation property (always modifiable)
112
115
  */
113
116
  declare function isPresentationProperty(property: string): property is PresentationProperty;
114
- /**
115
- * Get the protection level of a property
116
- */
117
- declare function getPropertyProtectionLevel(property: string): "identity" | "behavior" | "presentation" | "unknown";
118
- /**
119
- * Filter properties by category
120
- */
121
- declare function filterPropertiesByCategory(properties: string[], category: "identity" | "behavior" | "presentation"): string[];
122
117
 
123
118
  /**
124
119
  * Common configuration for all builders (Objects & Attributes)
@@ -1072,6 +1067,51 @@ interface ResumeWorkflowApiInput {
1072
1067
  input: Record<string, unknown>;
1073
1068
  }
1074
1069
 
1070
+ /**
1071
+ * Utility functions for working with objects.
1072
+ * Provides type-safe helpers to avoid common anti-patterns like Object.keys().length checks.
1073
+ */
1074
+ /**
1075
+ * Checks if an object is empty (has no own enumerable properties).
1076
+ * Handles null/undefined safely.
1077
+ *
1078
+ * @example
1079
+ * isEmpty({}) // true
1080
+ * isEmpty({ foo: 'bar' }) // false
1081
+ * isEmpty(null) // true
1082
+ * isEmpty(undefined) // true
1083
+ */
1084
+ declare function isEmpty(obj: unknown): boolean;
1085
+ /**
1086
+ * Type guard to check if an object is not empty.
1087
+ * Narrows the type to Record<string, unknown>.
1088
+ *
1089
+ * @example
1090
+ * if (isNotEmpty(params)) {
1091
+ * // params is Record<string, unknown> here
1092
+ * }
1093
+ */
1094
+ declare function isNotEmpty(obj: unknown): obj is Record<string, unknown>;
1095
+ /**
1096
+ * Returns the object if it has properties, otherwise returns undefined.
1097
+ * Useful for conditional parameter passing.
1098
+ *
1099
+ * @example
1100
+ * const params = toUndefinedIfEmpty({ foo: 'bar' }); // { foo: 'bar' }
1101
+ * const empty = toUndefinedIfEmpty({}); // undefined
1102
+ */
1103
+ declare function toUndefinedIfEmpty<T extends Record<string, unknown>>(obj: T | undefined | null): T | undefined;
1104
+ /**
1105
+ * Checks if an object has at least one own enumerable property.
1106
+ * Alias for isNotEmpty for better readability in some contexts.
1107
+ *
1108
+ * @example
1109
+ * if (hasProperties(config)) {
1110
+ * // config has at least one property
1111
+ * }
1112
+ */
1113
+ declare function hasProperties(obj: unknown): obj is Record<string, unknown>;
1114
+
1075
1115
  /**
1076
1116
  * Default empty value placeholder
1077
1117
  */
@@ -1368,7 +1408,146 @@ declare function isForbiddenError(error: unknown): error is ForbiddenError;
1368
1408
  declare class ConcurrentModificationError extends SchemaError {
1369
1409
  constructor(recordId: string);
1370
1410
  }
1371
- declare function isConcurrentModificationError(error: unknown): error is ConcurrentModificationError;
1411
+
1412
+ /**
1413
+ * Builder for creating PropertySchema definitions
1414
+ *
1415
+ * @example
1416
+ * ```typescript
1417
+ * const schema = new PropertySchemaBuilder()
1418
+ * .add("role", select => select
1419
+ * .label("Role")
1420
+ * .options([...])
1421
+ * .required()
1422
+ * )
1423
+ * .add("shares", number => number
1424
+ * .label("Shares")
1425
+ * .min(0)
1426
+ * )
1427
+ * .build();
1428
+ * ```
1429
+ */
1430
+ declare class PropertySchemaBuilder {
1431
+ private definitions;
1432
+ /**
1433
+ * Add a property to the schema
1434
+ * The type of property is automatically detected based on the builder methods used
1435
+ */
1436
+ add<T extends PropertyDefinition>(name: string, configure: (builder: PropertyTypeBuilder) => BasePropertyBuilder<T>): this;
1437
+ /**
1438
+ * Build the final PropertySchema
1439
+ */
1440
+ build(): PropertySchema;
1441
+ }
1442
+ /**
1443
+ * Dispatcher that creates the appropriate typed builder based on the first method called
1444
+ */
1445
+ declare class PropertyTypeBuilder {
1446
+ private name;
1447
+ constructor(name: string);
1448
+ text(): TextPropertyBuilder;
1449
+ textarea(): TextareaPropertyBuilder;
1450
+ number(): NumberPropertyBuilder;
1451
+ checkbox(): CheckboxPropertyBuilder;
1452
+ date(): DatePropertyBuilder;
1453
+ phone(): PhonePropertyBuilder;
1454
+ currency(): CurrencyPropertyBuilder;
1455
+ status(): StatusPropertyBuilder;
1456
+ select(): SelectPropertyBuilder;
1457
+ multiselect(): MultiselectPropertyBuilder;
1458
+ rating(): RatingPropertyBuilder;
1459
+ location(): LocationPropertyBuilder;
1460
+ }
1461
+ /**
1462
+ * Base builder for all property types
1463
+ */
1464
+ declare class BasePropertyBuilder<TDefinition extends PropertyDefinition> {
1465
+ protected definition: Partial<TDefinition>;
1466
+ constructor(name: string);
1467
+ /**
1468
+ * Set the label
1469
+ */
1470
+ label(label: string): this;
1471
+ /**
1472
+ * Mark as required
1473
+ */
1474
+ required(): this;
1475
+ /**
1476
+ * Set description
1477
+ */
1478
+ description(description: string): this;
1479
+ /**
1480
+ * Build the final definition
1481
+ */
1482
+ build(): TDefinition;
1483
+ }
1484
+ declare class TextPropertyBuilder extends BasePropertyBuilder<TextPropertyDefinition> {
1485
+ constructor(name: string);
1486
+ minLength(value: number): this;
1487
+ maxLength(value: number): this;
1488
+ pattern(pattern: string): this;
1489
+ placeholder(value: string): this;
1490
+ }
1491
+ declare class TextareaPropertyBuilder extends BasePropertyBuilder<TextareaPropertyDefinition> {
1492
+ constructor(name: string);
1493
+ minLength(value: number): this;
1494
+ maxLength(value: number): this;
1495
+ placeholder(value: string): this;
1496
+ }
1497
+ declare class NumberPropertyBuilder extends BasePropertyBuilder<NumberPropertyDefinition> {
1498
+ constructor(name: string);
1499
+ min(value: number): this;
1500
+ max(value: number): this;
1501
+ decimal(places: number): this;
1502
+ integer(): this;
1503
+ placeholder(value: string): this;
1504
+ }
1505
+ declare class CheckboxPropertyBuilder extends BasePropertyBuilder<CheckboxPropertyDefinition> {
1506
+ constructor(name: string);
1507
+ }
1508
+ declare class DatePropertyBuilder extends BasePropertyBuilder<DatePropertyDefinition> {
1509
+ constructor(name: string);
1510
+ includeTime(): this;
1511
+ min(date: string): this;
1512
+ max(date: string): this;
1513
+ }
1514
+ declare class PhonePropertyBuilder extends BasePropertyBuilder<PhonePropertyDefinition> {
1515
+ constructor(name: string);
1516
+ }
1517
+ declare class CurrencyPropertyBuilder extends BasePropertyBuilder<CurrencyPropertyDefinition> {
1518
+ constructor(name: string);
1519
+ currency(code: CurrencyCode): this;
1520
+ min(value: number): this;
1521
+ max(value: number): this;
1522
+ }
1523
+ declare class StatusPropertyBuilder extends BasePropertyBuilder<StatusPropertyDefinition> {
1524
+ constructor(name: string);
1525
+ options(options: Array<Option & {
1526
+ group: StatusGroup;
1527
+ }>): this;
1528
+ }
1529
+ declare class SelectPropertyBuilder extends BasePropertyBuilder<SelectPropertyDefinition> {
1530
+ constructor(name: string);
1531
+ options(options: Option[]): this;
1532
+ }
1533
+ declare class MultiselectPropertyBuilder extends BasePropertyBuilder<MultiselectPropertyDefinition> {
1534
+ constructor(name: string);
1535
+ options(options: Option[]): this;
1536
+ maxSelections(value: number): this;
1537
+ }
1538
+ declare class RatingPropertyBuilder extends BasePropertyBuilder<RatingPropertyDefinition> {
1539
+ constructor(name: string);
1540
+ max(value: number): this;
1541
+ icon(icon: IconName): this;
1542
+ }
1543
+ declare class LocationPropertyBuilder extends BasePropertyBuilder<LocationPropertyDefinition> {
1544
+ constructor(name: string);
1545
+ }
1546
+ /**
1547
+ * Validates that a property type is allowed in .qualifyWith()
1548
+ * Throws an error if the type is forbidden
1549
+ */
1550
+ declare function validatePropertyType(type: string): void;
1372
1551
 
1373
1552
  /**
1374
1553
  * Builder config with literal name type preservation
@@ -1729,6 +1908,21 @@ declare class SingleRelationAttributeBuilder<TName extends string, TRequired ext
1729
1908
  * Convert to a multi-relation (cardinality: "many")
1730
1909
  */
1731
1910
  many(): MultiRelationAttributeBuilder<TName, TRequired>;
1911
+ /**
1912
+ * Add properties to qualify the relation
1913
+ * Must be called AFTER .to() to ensure targets are defined
1914
+ *
1915
+ * @example
1916
+ * ```typescript
1917
+ * relation({ name: "mainCompany", label: "Main Company" })
1918
+ * .to("companies")
1919
+ * .qualifyWith(props => props
1920
+ * .add("role", select => select.options([...]).required())
1921
+ * .add("shares", number => number.min(0))
1922
+ * )
1923
+ * ```
1924
+ */
1925
+ qualifyWith(configure: (builder: PropertySchemaBuilder) => PropertySchemaBuilder): this;
1732
1926
  required(): SingleRelationAttributeBuilder<TName, true>;
1733
1927
  optional(): SingleRelationAttributeBuilder<TName, false>;
1734
1928
  }
@@ -1768,6 +1962,22 @@ declare class MultiRelationAttributeBuilder<TName extends string, TRequired exte
1768
1962
  * Set maximum number of relations allowed
1769
1963
  */
1770
1964
  maxItems(count: number): this;
1965
+ /**
1966
+ * Add properties to qualify the relation
1967
+ * Must be called AFTER .to() or .many() to ensure targets are defined
1968
+ *
1969
+ * @example
1970
+ * ```typescript
1971
+ * relation({ name: "companies", label: "Companies" })
1972
+ * .to("companies")
1973
+ * .many()
1974
+ * .qualifyWith(props => props
1975
+ * .add("role", select => select.options([...]).required())
1976
+ * .add("shares", number => number.min(0))
1977
+ * )
1978
+ * ```
1979
+ */
1980
+ qualifyWith(configure: (builder: PropertySchemaBuilder) => PropertySchemaBuilder): this;
1771
1981
  required(): MultiRelationAttributeBuilder<TName, true>;
1772
1982
  optional(): MultiRelationAttributeBuilder<TName, false>;
1773
1983
  }
@@ -3858,23 +4068,6 @@ declare function generateDefaultListView(object: ObjectDefinition, options?: Gen
3858
4068
  * @returns A generated ViewDefinition
3859
4069
  */
3860
4070
  declare function generateFallbackView(object: ObjectDefinition, type: ViewType, options?: GenerateFallbackViewOptions): ViewDefinition;
3861
- /**
3862
- * Generate a modal detail view (simplified, single form tab).
3863
- *
3864
- * @param object - The object definition
3865
- * @param attributeNames - Specific attributes to include (optional)
3866
- * @returns A generated DetailViewDefinition for modal layout
3867
- */
3868
- declare function generateModalDetailView(object: ObjectDefinition, attributeNames?: string[]): DetailViewDefinition;
3869
- /**
3870
- * Generate a kanban list view.
3871
- *
3872
- * @param object - The object definition
3873
- * @param groupByAttribute - Attribute to group by (must be select/status type)
3874
- * @param options - Generation options
3875
- * @returns A generated ListViewDefinition with kanban layout
3876
- */
3877
- declare function generateKanbanListView(object: ObjectDefinition, groupByAttribute: string, options?: GenerateFallbackViewOptions): ListViewDefinition;
3878
4071
 
3879
4072
  /**
3880
4073
  * View Reset Utilities
@@ -3980,4 +4173,4 @@ declare function getSystemTemplate(name: string): DocumentTemplate | undefined;
3980
4173
  */
3981
4174
  declare function isSystemTemplate(name: string): boolean;
3982
4175
 
3983
- export { ALL_SYSTEM_RESOURCES, ActivityTabConfig, type AgentContentPart, type AgentMessage, type AnyAttributeBuilder, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, AuthMethodSchema, BEHAVIOR_PROPERTIES, type BehaviorProperty, type BuilderConfig, type ChatFileAttachment, CheckboxAttribute, ConcurrentModificationError, ConditionGroup, ConditionGroupSchema, ConditionNodeSchema, ConditionOperatorSchema, ConditionRule, ConditionRuleSchema, CreateShareInputSchema, CurrencyAttribute, CustomTabConfig, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DRIVING_LICENSE, DateAttribute, type DefaultRoleName, type DefaultRolePermissionConfig, DetailViewBuilder, DetailViewDefinition, DetailViewLayout, DirectTableTab, DirectTableTabConfig, DocumentAttribute, DocumentNodeSchema, DocumentTemplate, DocumentsTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, EndNodeSchema, type ExtractAttributeName, type ExtractAttributeRequired, FRENCH_ID_CARD, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FileAttribute, FileNotFoundError, FilterState, FlagLevel, FlagRegistry, type FlagResolutionContext, FlagService, type FlagServiceOptions, FlagValueType, FlowRow, FlowRowFieldSchema, FlowRowSchema, FlowsTabConfig, ForbiddenError, FormFieldRefSchema, FormNodeSchema, FormulaAttribute, FormulaReturnType, GENERIC_DOCUMENT, type GenerateFallbackViewOptions, Group, GroupBuilder, IDENTITY_PROPERTIES, type IdentityProperty, InferAttributeValue, InstanceStatus, InverseTableTab, InverseTableTabConfig, ListViewBuilder, ListViewDefinition, ListViewTabConfigBuilder, LocationAttribute, MultiRelationAttribute, MultiselectAttribute, NOTES, NodePositionSchema, NotFoundError, NotSystemObjectError, NotesTabConfig, NumberAttribute, ObjectAction, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, ObjectReferencedError, Option, PASSPORT, PRESENTATION_PROPERTIES, PROOF_OF_ADDRESS, PhoneAttribute, type PresentationProperty, ProtectedResourceError, ProtectedRoleError, RatingAttribute, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationTarget, type ResetViewOptions, ResolvedFlag, type ResumeWorkflowApiInput, RichtextAttribute, RichtextFeature, RoleNotFoundError, RollupAttribute, RollupFunction, SIGNABLE_CONTRACT, SYSTEM_ATTRIBUTES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SYSTEM_TEMPLATES, SYSTEM_TEMPLATE_IDS, SchemaError, SchemaErrorCode, SelectAttribute, ShareStatusSchema, SingleRelationAttribute, SlotMode, SlotModeSchema, SortRule, StartNodeSchema, type StartWorkflowApiInput, StaticFlagDefault, StatusAttribute, SyncError, SystemAction, type SystemAttribute, type SystemAttributeName, SystemResource, Tab, TabBuilder, TableTab, TextAreaAttribute, TextAttribute, ThemeColorsSchema, ThemeLogoSchema, type TypedBuilderConfig, UserAttribute, UserProfileNotFoundError, type ValidatedConditionGroup, type ValidatedWorkflowDefinition, type ValidatedWorkflowNode, ValidationError, type ValidationErrorDetail, ViewBuilder, ViewDefinition, ViewType, ViewportSchema, WorkflowBuilder, WorkflowConditionBuilder, WorkflowConfig, WorkflowConfigSchema, WorkflowDefinition, WorkflowDefinitionSchema, WorkflowEndBuilder, type WorkflowEvent, type WorkflowEventType, WorkflowFormBuilder, WorkflowFormRowBuilder, type WorkflowGrantRevokedEvent, type WorkflowInstanceCancelledEvent, type WorkflowInstanceCompletedEvent, type WorkflowInstanceFailedEvent, type WorkflowInstanceStartedEvent, type WorkflowInvitationAcceptedEvent, type WorkflowInvitationCreatedEvent, type WorkflowInvitationExpiredEvent, WorkflowLayoutSchema, WorkflowNode, type WorkflowNodeCompletedEvent, type WorkflowNodeEnteredEvent, type WorkflowNodeFailedEvent, WorkflowNodeSchema, WorkflowShareSchema, WorkflowSimpleFormBuilder, WorkflowSlotSchema, WorkflowStartBuilder, WorkflowStatusSchema, WorkflowTheme, WorkflowThemeSchema, booleanFlag, checkbox, createFlagRegistry, createFlagService, currency, date, detailView, document, file, filterPropertiesByCategory, flagRegistry, formatAttributeValue, formula, generateDefaultDetailView, generateDefaultListView, generateFallbackView, generateKanbanListView, generateModalDetailView, getPropertyProtectionLevel, getSystemAttributeList, getSystemTemplate, group, isBehaviorProperty, isConcurrentModificationError, isDefaultRole, isForbiddenError, isIdentityProperty, isInstanceEvent, isInvitationOrGrantEvent, isNodeEvent, isNotFoundError, isPresentationProperty, isProtectedResourceError, isSchemaError, isSystemAttribute, isSystemAttributeObject, isSystemTemplate, isValidationError, isViewCustomized, jsonFlag, listView, location, multiselect, number, numberFlag, object, phone, rating, relation, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, user, view, workflow };
4176
+ export { ALL_SYSTEM_RESOURCES, ActivityTabConfig, type AgentContentPart, type AgentMessage, type AnyAttributeBuilder, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, AuthMethodSchema, BEHAVIOR_PROPERTIES, BasePropertyBuilder, type BehaviorProperty, type BuilderConfig, type ChatFileAttachment, CheckboxAttribute, CheckboxPropertyBuilder, CheckboxPropertyDefinition, ConcurrentModificationError, ConditionGroup, ConditionGroupSchema, ConditionNodeSchema, ConditionOperatorSchema, ConditionRule, ConditionRuleSchema, CreateShareInputSchema, CurrencyAttribute, CurrencyPropertyBuilder, CurrencyPropertyDefinition, CustomTabConfig, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DRIVING_LICENSE, DateAttribute, DatePropertyBuilder, DatePropertyDefinition, type DefaultRoleName, type DefaultRolePermissionConfig, DetailViewBuilder, DetailViewDefinition, DetailViewLayout, DirectTableTab, DirectTableTabConfig, DocumentAttribute, DocumentNodeSchema, DocumentTemplate, DocumentsTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, EndNodeSchema, type ExtractAttributeName, type ExtractAttributeRequired, FRENCH_ID_CARD, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FileAttribute, FileNotFoundError, FilterState, FlagLevel, FlagRegistry, type FlagResolutionContext, FlagService, type FlagServiceOptions, FlagValueType, FlowRow, FlowRowFieldSchema, FlowRowSchema, FlowsTabConfig, ForbiddenError, FormFieldRefSchema, FormNodeSchema, FormulaAttribute, FormulaReturnType, GENERIC_DOCUMENT, type GenerateFallbackViewOptions, Group, GroupBuilder, IDENTITY_PROPERTIES, type IdentityProperty, InferAttributeValue, InstanceStatus, InverseTableTab, InverseTableTabConfig, ListViewBuilder, ListViewDefinition, ListViewTabConfigBuilder, LocationAttribute, LocationPropertyBuilder, LocationPropertyDefinition, MultiRelationAttribute, MultiselectAttribute, MultiselectPropertyBuilder, MultiselectPropertyDefinition, NOTES, NodePositionSchema, NotFoundError, NotSystemObjectError, NotesTabConfig, NumberAttribute, NumberPropertyBuilder, NumberPropertyDefinition, ObjectAction, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, ObjectReferencedError, Option, PASSPORT, PRESENTATION_PROPERTIES, PROOF_OF_ADDRESS, PhoneAttribute, PhonePropertyBuilder, PhonePropertyDefinition, type PresentationProperty, PropertyDefinition, PropertySchema, PropertySchemaBuilder, PropertyTypeBuilder, ProtectedResourceError, ProtectedRoleError, RatingAttribute, RatingPropertyBuilder, RatingPropertyDefinition, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationTarget, type ResetViewOptions, ResolvedFlag, type ResumeWorkflowApiInput, RichtextAttribute, RichtextFeature, RoleNotFoundError, RollupAttribute, RollupFunction, SIGNABLE_CONTRACT, SYSTEM_ATTRIBUTES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SYSTEM_TEMPLATES, SYSTEM_TEMPLATE_IDS, SchemaError, SchemaErrorCode, SelectAttribute, SelectPropertyBuilder, SelectPropertyDefinition, ShareStatusSchema, SingleRelationAttribute, SlotMode, SlotModeSchema, SortRule, StartNodeSchema, type StartWorkflowApiInput, StaticFlagDefault, StatusAttribute, StatusGroup, StatusPropertyBuilder, StatusPropertyDefinition, SyncError, SystemAction, type SystemAttribute, type SystemAttributeName, SystemResource, Tab, TabBuilder, TableTab, TextAreaAttribute, TextAttribute, TextPropertyBuilder, TextPropertyDefinition, TextareaPropertyBuilder, TextareaPropertyDefinition, ThemeColorsSchema, ThemeLogoSchema, type TypedBuilderConfig, UserAttribute, UserProfileNotFoundError, type ValidatedConditionGroup, type ValidatedWorkflowDefinition, type ValidatedWorkflowNode, ValidationError, type ValidationErrorDetail, ViewBuilder, ViewDefinition, ViewType, ViewportSchema, WorkflowBuilder, WorkflowConditionBuilder, WorkflowConfig, WorkflowConfigSchema, WorkflowDefinition, WorkflowDefinitionSchema, WorkflowEndBuilder, type WorkflowEvent, type WorkflowEventType, WorkflowFormBuilder, WorkflowFormRowBuilder, type WorkflowGrantRevokedEvent, type WorkflowInstanceCancelledEvent, type WorkflowInstanceCompletedEvent, type WorkflowInstanceFailedEvent, type WorkflowInstanceStartedEvent, type WorkflowInvitationAcceptedEvent, type WorkflowInvitationCreatedEvent, type WorkflowInvitationExpiredEvent, WorkflowLayoutSchema, WorkflowNode, type WorkflowNodeCompletedEvent, type WorkflowNodeEnteredEvent, type WorkflowNodeFailedEvent, WorkflowNodeSchema, WorkflowShareSchema, WorkflowSimpleFormBuilder, WorkflowSlotSchema, WorkflowStartBuilder, WorkflowStatusSchema, WorkflowTheme, WorkflowThemeSchema, booleanFlag, checkbox, createFlagRegistry, createFlagService, currency, date, detailView, document, file, flagRegistry, formatAttributeValue, formula, generateDefaultDetailView, generateDefaultListView, generateFallbackView, getSystemAttributeList, getSystemTemplate, group, hasProperties, isBehaviorProperty, isDefaultRole, isEmpty, isForbiddenError, isIdentityProperty, isInstanceEvent, isInvitationOrGrantEvent, isNodeEvent, isNotEmpty, isNotFoundError, isPresentationProperty, isProtectedResourceError, isSchemaError, isSystemAttribute, isSystemAttributeObject, isSystemTemplate, isValidationError, isViewCustomized, jsonFlag, listView, location, multiselect, number, numberFlag, object, phone, rating, relation, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validatePropertyType, view, workflow };