@stndrds/schema 1.0.0-alpha.72 → 1.0.0-alpha.74
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/chunk-6P3NPTYV.mjs +58 -0
- package/dist/chunk-JZO52C3F.js +58 -0
- package/dist/{chunk-INXFKM4S.mjs → chunk-KQMGNSDK.mjs} +413 -111
- package/dist/{chunk-4GHZ6AUF.js → chunk-WXEFNFHT.js} +609 -307
- package/dist/default-roles-76HUWY6T.js +23 -0
- package/dist/{default-roles-42X3TJI5.mjs → default-roles-OAMHLOCS.mjs} +3 -1
- package/dist/index.d.mts +28 -29
- package/dist/index.d.ts +28 -29
- package/dist/index.js +72 -18
- package/dist/index.mjs +61 -7
- package/dist/{runtime-BV9XBP1p.d.ts → runtime-BOHwdAGE.d.ts} +129 -109
- package/dist/{runtime-DzpQ5gRG.d.mts → runtime-CFoct1Bt.d.mts} +129 -109
- package/dist/runtime.d.mts +2 -2
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +5 -2
- package/dist/runtime.mjs +4 -1
- package/dist/validation/validators.d.mts +1 -1
- package/dist/validation/validators.d.ts +1 -1
- package/dist/{validators-DEfgr14O.d.ts → validators-BxPuQ2GT.d.ts} +12 -1
- package/dist/{validators-CzHCpxVj.d.mts → validators-DUB0tEzp.d.mts} +12 -1
- package/package.json +2 -2
- package/dist/chunk-36UBIXJN.js +0 -82
- package/dist/chunk-V5QXU2OK.mjs +0 -82
- package/dist/default-roles-C3FYDYMN.js +0 -21
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunkJZO52C3Fjs = require('./chunk-JZO52C3F.js');
|
|
12
|
+
require('./chunk-3RG5ZIWI.js');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.ALL_SYSTEM_RESOURCES = _chunkJZO52C3Fjs.ALL_SYSTEM_RESOURCES; exports.DEFAULT_ROLES = _chunkJZO52C3Fjs.DEFAULT_ROLES; exports.DEFAULT_ROLE_DESCRIPTIONS = _chunkJZO52C3Fjs.DEFAULT_ROLE_DESCRIPTIONS; exports.DEFAULT_ROLE_LABELS = _chunkJZO52C3Fjs.DEFAULT_ROLE_LABELS; exports.DEFAULT_ROLE_PERMISSIONS = _chunkJZO52C3Fjs.DEFAULT_ROLE_PERMISSIONS; exports.SYSTEM_RESOURCES = _chunkJZO52C3Fjs.SYSTEM_RESOURCES; exports.SYSTEM_RESOURCE_LABELS = _chunkJZO52C3Fjs.SYSTEM_RESOURCE_LABELS; exports.isAdminRole = _chunkJZO52C3Fjs.isAdminRole; exports.isDefaultRole = _chunkJZO52C3Fjs.isDefaultRole;
|
|
@@ -6,8 +6,9 @@ import {
|
|
|
6
6
|
DEFAULT_ROLE_PERMISSIONS,
|
|
7
7
|
SYSTEM_RESOURCES,
|
|
8
8
|
SYSTEM_RESOURCE_LABELS,
|
|
9
|
+
isAdminRole,
|
|
9
10
|
isDefaultRole
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6P3NPTYV.mjs";
|
|
11
12
|
import "./chunk-Y6FXYEAI.mjs";
|
|
12
13
|
export {
|
|
13
14
|
ALL_SYSTEM_RESOURCES,
|
|
@@ -17,5 +18,6 @@ export {
|
|
|
17
18
|
DEFAULT_ROLE_PERMISSIONS,
|
|
18
19
|
SYSTEM_RESOURCES,
|
|
19
20
|
SYSTEM_RESOURCE_LABELS,
|
|
21
|
+
isAdminRole,
|
|
20
22
|
isDefaultRole
|
|
21
23
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as SystemResource,
|
|
2
|
-
export { ae as AIBatchQuestion, af as AIBatchQuestionAnswer, ad as AIBatchQuestionOption, a8 as AIChatMessage, a7 as AIChatMessagePart, a2 as AIChatMessagePartType, au as AICompactionSummary, ak as AIConversation, g6 as AIConversationsRepository, as as AIMemoryEntry, ar as AIMemoryType, al as AIMessage, aj as AIMessageAttachment, _ as AIMessageRole, ap as AIProviderMetrics, ab as AIQuestion, ac as AIQuestionAnswer, aa as AIQuestionOption, a9 as AIQuestionType, at as AITenantPersona, $ as AIThinkingLevel, ah as AITodoItem, ai as AITodoList, ag as AITodoStatus, a1 as AIToolCall, am as AIToolCallRecord, a0 as AIToolCallStatus, ao as AIUsageMetrics, g7 as AIUsageMetricsRepository, an as AIUserMemory, g8 as AIUserMemoryRepository, cw as ActivityTab, bP as AddAttribute, gw as AddAttributeInput, bo as AdvancedFilterState, cf as AssignRoleInput, fX as AttributeChange, bO as AttributeMap, bK as AttributeSchema, g9 as AttributesRepository, aw as AuditAction, ax as AuditActorType, ay as AuditChange, aB as AuditListOptions, az as AuditLogEntry, ga as AuditRepository, av as AuditResourceType, hM as AuditService, aC as AuditServiceOptions, gs as BaseRepository, gr as BaseService, B as BoundingBox, el as CacheAdapter, ej as CacheKeyType, em as CacheOptions, cC as CalendarViewConfig, cG as CalendarViewDefinition, dm as CanvasViewport, ba as CheckboxFilterOperator, fo as ConditionExecutor, c$ as ConditionNode, de as ConditionOperator, cJ as ConfigOverrides, aq as CreateAIMessageInput, aA as CreateAuditLogInput, gv as CreateCustomObjectInput, iI as CreateDBAttribute, iE as CreateDBObject, iU as CreateDBView, iY as CreateDBViewOverlay, i$ as CreateDBWorkflow, j8 as CreateDBWorkflowAccessGrant, j2 as CreateDBWorkflowInstance, j5 as CreateDBWorkflowInvitation, aV as CreateDocument, aH as CreateDocumentGenerationTemplate, aZ as CreateDocumentSlot, aX as CreateDocumentTemplate, b6 as CreateFile, dK as CreateGrantInput, hq as CreateGrantResult, dD as CreateInvitationInput, dE as CreateInvitationResult, iL as CreateObjectRecord, ce as CreatePermissionInput, a$ as CreateProcessingJob, h$ as CreateRecordDocumentInput, i0 as CreateRecordDocumentResult, cc as CreateRoleInput, E as CreateSignatureInput, cm as CreateUserProfile, i9 as CreateViewInput, hD as CreateWorkflowInput, bh as CurrencyFilterValue, bT as CustomAttributeValue, cv as CustomTab, iH as DBAttribute, iD as DBObject, iT as DBView, iX as DBViewOverlay, i_ as DBWorkflow, j7 as DBWorkflowAccessGrant, j1 as DBWorkflowInstance, j4 as DBWorkflowInvitation, iu as DEFAULT_LABEL_FALLBACK, e3 as DEFAULT_THEME, ec as DatabaseAdapter, bb as DateFilterOperator, cB as DetailViewConfig, aO as Document, aL as DocumentAutoProcessing, Y as DocumentData, fp as DocumentExecutor, hP as DocumentGenerationNotConfiguredError, hQ as DocumentGenerationService, aG as DocumentGenerationTemplate, gb as DocumentGenerationTemplateListOptions, hO as DocumentGenerationTemplateNotFoundError, gc as DocumentGenerationTemplatesRepository, gd as DocumentJobsRepository, b1 as DocumentListOptions, d0 as DocumentNode, hR as DocumentProcessingConfig, hk as DocumentProcessingHook, hj as DocumentProcessingHookOptions, hS as DocumentProcessingService, hW as DocumentRenderError, hU as DocumentRendererOptions, hY as DocumentRendererService, i2 as DocumentService, i1 as DocumentServiceOptions, aQ as DocumentSlot, aK as DocumentSlotDefinition, ge as DocumentSlotsRepository, aP as DocumentStatus, b2 as DocumentTemplateListOptions, hZ as DocumentTemplateService, gg as DocumentTemplatesRepository, gf as DocumentsRepository, cz as DocumentsTab, c9 as EffectivePermissions, fq as EndExecutor, d1 as EndNode, eI as EvaluationResult, eJ as EvaluationTrace, fc as ExecutorCompleteResult, fd as ExecutorContext, fe as ExecutorErrorResult, fl as ExecutorRegistry, ff as ExecutorResult, fg as ExecutorSuccessResult, fh as ExecutorWaitResult, bl as ExtendedFilterRule, c1 as ExtractAttributes, c3 as ExtractObjectRecord, c4 as ExtractObjectRecordWithCustom, bX as ExtractRecord, bZ as ExtractRecordInput, b_ as ExtractRecordInputStrict, bY as ExtractRecordStrict, b$ as ExtractRecordUpdate, c0 as ExtractRecordUpdateStrict, aN as ExtractionField, aM as ExtractionMapping, eW as FeatureFlagsContext, eO as FeatureFlagsContextError, er as FetchResult, b5 as File, ie as FileContent, iS as FileListOptions, i4 as FileService, i3 as FileServiceOptions, b4 as FileVisibility, gh as FilesRepository, bm as FilterCombinator, bn as FilterGroup, bf as FilterOperator, bk as FilterRule, bj as FilterValue, bA as FlowDefinition, bx as FlowPage, by as FlowRelation, bw as FlowRowField, bv as FlowSlot, bz as FlowStatus, cy as FlowsTab, dW as FormContextResponse, cq as FormDensity, fr as FormExecutor, dX as FormFieldContext, d2 as FormFieldRef, dY as FormFieldRow, d3 as FormNode, dZ as FormNodeInfo, cr as FormTab, es as FormattedRecord, gX as FormulaResolverService, gW as FormulaResolverServiceOptions, fF as FormulaResult, is as FullSyncOptions, ir as FullSyncResult, cE as GalleryViewConfig, cI as GalleryViewDefinition, dR as GeneratedDocument, bI as GeocodingAdapter, bF as GeocodingAutocompleteParams, bH as GeocodingParams, i5 as GeocodingService, bE as GeocodingSuggestion, gL as GetRelationOptionsParams, ic as GetViewOptions, ib as GetViewsOptions, iP as GlobalSearchGroupedOptions, iR as GlobalSearchGroupedResult, iO as GlobalSearchOptions, iQ as GlobalSearchResultItem, i6 as GlobalSearchService, hm as GrantExpiredError, hl as GrantNotFoundError, hn as GrantRevokedError, hp as GrantServiceConfig, et as GroupedFetchResult, fY as HookContext, fZ as HookDefinition, f_ as HookHandler, g1 as HookRegistry, f$ as HookType, gS as HybridRelationValue, Q as IdentityVerificationAdapter, bQ as InferRecord, bL as InferRecordFromSchema, bR as InferRecordInput, bS as InferRecordUpdate, bM as InferRecordWithRequirements, eu as InsertOptions, fJ as InvalidPathError, ct as InverseSource, hz as InvitationAlreadyAcceptedError, hy as InvitationExpiredError, hx as InvitationNotFoundError, hA as InvitationRevokedError, hw as InvitationServiceConfig, dF as InvitationStatus, co as InviteUserInput, ee as JwtVerificationResult, ha as LabelResolver, iM as ListOptions, cA as ListViewLayout, ef as MagicLinkPayload, fK as MaxDepthExceededError, g3 as MockStores, gQ as MultiRelationValue, bd as MultiselectFilterOperator, bt as NO_VALUE_OPERATORS, bs as NoValueOperator, fi as NodeExecutor, dn as NodePosition, eq as NoopCacheAdapter, bJ as NoopGeocodingAdapter, g0 as NoopHookRegistry, b9 as NumberFilterOperator, br as OPERATORS_BY_TYPE, ca as ObjectPermissions, gi as ObjectRecordsRepository, gz as ObjectSchemaService, gy as ObjectSchemaServiceOptions, gj as ObjectsRepository, t as OcrAdapter, u as OcrInput, v as OcrOptions, x as OcrPage, w as OcrResult, y as OcrTextBlock, ja as OperationResult, fO as PathCardinality, fP as PathSegment, fQ as PathSegmentType, aE as PdfTemplateField, dv as PendingAction, aJ as PendingDocumentRequest, c7 as Permission, c5 as PermissionScope, i8 as PermissionService, i7 as PermissionServiceOptions, gk as PermissionsRepository, bi as PhoneFilterValue, cg as PolicyContext, g5 as PolicyRegistry, ci as PolicyViolationError, aS as ProcessingJob, aU as ProcessingJobStatus, aT as ProcessingJobType, eG as QueryBuilder, eH as QueryBuilderOptions, ev as QueryBuilderState, eC as QueryMultipleResultsError, eD as QueryNoResultError, gD as QueryOptions, gF as QueryResult, bq as QueryState, d_ as ReadOnlyReason, a6 as ReasoningPartData, h_ as RecordDocumentsResult, bV as RecordMetadata, ch as RecordPolicy, gG as RecordQueryService, gC as RecordQueryServiceOptions, gU as RecordResolverService, gB as RecordService, gA as RecordServiceOptions, ew as RegistryMap, ex as RegistryObjectNames, e9 as RelationAttributeInput, ea as RelationAttributeRow, eb as RelationAttributesRepository, be as RelationFilterOperator, iB as RelationLabelResolver, gJ as RelationOption, gK as RelationOptionsResponse, gT as RelationPropertiesService, gP as RelationService, gM as RelationServiceOptions, cs as RelationSource, gI as RelationValidationError, gH as RelationValidationResult, bg as RelativeDateValue, hT as RenderDocumentInput, hV as RenderDocumentResult, gN as ResolveIdsBatchRequest, gO as ResolveIdsBatchResponse, gV as ResolvedRelations, ht as ResumeWorkflowInput, bG as ReverseGeocodingParams, cx as RichtextTab, c6 as Role, hi as RollupCascadeContext, gY as RollupResult, h0 as RollupScheduler, g$ as RollupSchedulerOptions, g_ as RollupService, gZ as RollupServiceOptions, eE as SHORTCUT_TO_FILTER_OPERATOR, f2 as SchemaContext, gt as SchemaContextAware, gu as SchemaContextAwareRepository, fR as SchemaResolver, iN as SearchOptions, gE as SearchQueryOptions, bc as SelectFilterOperator, ey as ShortcutOperator, z as SignatureAdapter, J as SignaturePosition, K as SignatureRequestResult, P as SignatureStatus, M as SignatureStatusResult, ii as SignedUrlOptions, H as SignerRequest, N as SignerStatus, gR as SingleRelationValue, aR as SlotStatus, bp as SortDirection, fs as StartExecutor, d4 as StartNode, hs as StartWorkflowInput, ij as StorageAdapter, hX as StorageDownloadNotSupportedError, b3 as StorageProvider, ig as StorageUploadInput, ih as StorageUploadResult, im as SyncOptions, il as SyncResult, bW as SystemFields, cb as SystemPermissions, cp as TabType, cu as TableSource, aF as TemplateSource, f9 as TenantContext, eN as TenantContextError, b8 as TextFilterOperator, a3 as TextPartData, e0 as ThemeColors, e1 as ThemeLogo, e2 as ThemeTypography, a5 as ThinkingPartData, cD as TimelineViewConfig, cH as TimelineViewDefinition, ho as TokenRevokedError, a4 as ToolPartData, fV as TraversalOptions, fW as TraversalResult, bN as TypedAttribute, c2 as TypedObjectRecord, iJ as UpdateDBAttribute, iF as UpdateDBObject, iV as UpdateDBView, iZ as UpdateDBViewOverlay, j0 as UpdateDBWorkflow, j9 as UpdateDBWorkflowAccessGrant, j3 as UpdateDBWorkflowInstance, j6 as UpdateDBWorkflowInvitation, aW as UpdateDocument, aI as UpdateDocumentGenerationTemplate, a_ as UpdateDocumentSlot, aY as UpdateDocumentTemplate, b7 as UpdateFile, gx as UpdateObjectInput, b0 as UpdateProcessingJob, cd as UpdateRoleInput, cn as UpdateUserProfile, ia as UpdateViewInput, hE as UpdateWorkflowInput, ik as UploadFileInput, iK as UpsertDBAttribute, iG as UpsertDBObject, iW as UpsertDBView, cl as UserProfile, hL as UserProfileService, hK as UserProfileServiceOptions, gl as UserProfilesRepository, cj as UserRole, c8 as UserRoleAssignment, hJ as UserService, ck as UserStatus, hI as UserValidationError, hH as UserValidationResult, aD as VariableMapping, Z as VerificationCheck, X as VerificationResult, U as VerifyInput, cF as ViewConfig, cK as ViewOverlay, e8 as ViewOverlaysRepository, id as ViewService, jc as ViewSyncLogger, jd as ViewSyncOptions, jb as ViewSyncResult, gm as ViewsRepository, bU as WithCustomAttributes, dL as WorkflowAccessGrant, hr as WorkflowAccessGrantService, gn as WorkflowAccessGrantsRepository, d$ as WorkflowAccessMode, eg as WorkflowAccessPayload, dw as WorkflowError, dS as WorkflowExecutionContext, dx as WorkflowInstance, hv as WorkflowInstanceService, hu as WorkflowInstanceServiceOptions, go as WorkflowInstancesRepository, dG as WorkflowInvitation, hB as WorkflowInvitationService, gp as WorkflowInvitationsRepository, eh as WorkflowJwtConfig, ei as WorkflowJwtPayload, ed as WorkflowJwtService, dp as WorkflowLayout, d5 as WorkflowNodeType, hC as WorkflowRelationService, hG as WorkflowService, hF as WorkflowServiceOptions, dq as WorkflowSlot, dr as WorkflowStatus, dy as WorkflowTransition, gq as WorkflowsRepository, eX as addSchemaToContext, df as and, h1 as applyDefaultValues, hN as buildAuditChanges, h4 as buildPolicyContext, en as cacheKeys, eo as cacheTtl, dM as canAccessNode, dz as canResumeInstance, h2 as checkPermission, h5 as checkRecordAccess, h7 as checkRecordDeleteOrThrow, h6 as checkRecordModifyOrThrow, h8 as checkSharedObjectWriteAccess, fj as complete, h9 as computeLabel, iC as computeLabelWithRelations, hd as createContextForCreate, hf as createContextForDelete, hg as createContextForRestore, he as createContextForUpdate, fa as createDefaultExecutorRegistry, ez as createDefaultState, dT as createEmptyContext, g2 as createMockAdapter, eF as createQueryBuilder, dA as createStartTransition, g4 as defaultPolicyRegistry, ep as defaultTtl, hc as enrichRecordsWithFormulas, iy as enrichValuesForDisplay, iz as enrichValuesWithSelectLabels, hb as enrichWithFormulas, dg as eq, fk as error, eL as evaluate, eK as evaluateCondition, ft as evaluateFormula, fu as evaluateFormulaAttribute, fv as evaluateFormulaAttributeWithRelations, fw as evaluateFormulaWithRelations, fx as evaluateFormulaWithResult, eM as evaluateWithTrace, ix as extractAttributeNames, fy as extractFormulaVariables, iA as extractRelationIds, fz as extractRelationNames, fA as extractRelationReferences, fB as flattenRelationsForEval, fC as formatFormulaResult, eA as formatRecord, eB as formatRecords, e4 as generateCssVariables, f3 as getContext, dU as getContextValue, fb as getDefaultExecutorRegistry, eP as getFeatureFlags, eQ as getFeatureValue, d6 as getNodeOutputs, fG as getPathDepth, h3 as getPolicy, fH as getRelationPath, eY as getSchemaByNameFromContext, eZ as getSchemaContext, e_ as getSchemaFromContext, iq as getSyncPreview, fI as getTargetAttributeName, f4 as getTenantId, f5 as getUserId, ji as getViewSeedPreview, jj as getViewSyncPreview, f6 as hasContext, eR as hasFeatureFlagsContext, fD as hasRelationReferences, e$ as hasSchemaContext, ek as hashOptions, dh as inValues, cX as isActivityTab, d7 as isAdvancedFormNode, cN as isCalendarView, di as isConditionGroup, d8 as isConditionNode, dj as isConditionRule, cW as isCustomTab, cL as isDetailView, d9 as isDocumentNode, c_ as isDocumentsTab, da as isEndNode, eS as isFeatureEnabled, cQ as isFieldGroup, bB as isFlowDefinition, bC as isFlowPublished, cZ as isFlowsTab, db as isFormNode, cS as isFormTab, cP as isGalleryView, dN as isGrantExpired, dO as isGrantRevoked, dP as isGrantValid, dB as isInstanceTerminal, dC as isInstanceWaiting, cV as isInverseSourceTab, dH as isInvitationAccepted, dI as isInvitationExpired, dJ as isInvitationValid, iw as isLabelExpression, cM as isListView, bu as isNoValueOperator, cR as isRelationGroup, cU as isRelationSourceTab, cY as isRichtextTab, dc as isSimpleFormNode, dd as isStartNode, bD as isSystemFlow, ds as isSystemWorkflow, cT as isTableTab, cO as isTimelineView, dQ as isTokenRevoked, dt as isWorkflowDefinition, du as isWorkflowPublished, e5 as mergeWithDefaults, dk as neq, dl as or, fL as parsePath, fM as pathHasManyCardinality, hh as recalculateParentRollups, e6 as registry, iv as renderLabelExpression, fS as resolveMultiplePaths, fT as resolveSingleValue, f7 as runWithContext, eT as runWithFeatureFlags, f0 as runWithMergedSchemaContext, f1 as runWithSchemaContext, je as seedRegistryViews, dV as setContextValue, fm as success, it as syncAll, io as syncNativeObjects, jf as syncNativeViews, fU as traversePath, eU as tryGetFeatureValue, fE as validateFormulaExpression, fN as validatePath, ip as verifyNativeObjectsSync, jh as verifyNativeViewsSync, jg as verifyRegistryViewsSeeded, e7 as viewRegistry, fn as wait, eV as withFeatureFlags, f8 as withTenantContext } from './runtime-DzpQ5gRG.mjs';
|
|
3
|
-
import { D as DateAttribute, U as UserAttribute, a as DocumentAttribute, A as Attribute, P as Phone, F as FeatureGate, T as TextAttribute, b as TextAreaAttribute, R as RichtextAttribute, c as RichtextFeature, N as NumberAttribute, C as CheckboxAttribute, d as PhoneAttribute, e as CurrencyAttribute, O as Option, S as StatusAttribute, f as SelectAttribute, M as MultiselectAttribute, L as LocationAttribute, g as FileAttribute, h as RatingAttribute, i as RelationAttribute, B as BilateralConfig, j as SingleRelationAttribute, k as MultiRelationAttribute, l as RelationTarget, m as FormulaAttribute, n as FormulaReturnType, o as RollupAttribute, p as RollupFunction, q as AttributeType, r as ObjectDefinition, s as FlagValueType, t as FeatureFlagDefinition, u as FlagLevel, v as FeatureFlagsRepository, w as StaticFlagDefault, x as ResolvedFlag } from './validators-
|
|
4
|
-
export { z as AttributeGroup, E as BaseAttribute,
|
|
1
|
+
import { S as SystemResource, A as Action, I as InferAttributeValue, F as Field, a as AttributeGroupField, b as FieldGroup, R as RelationGroup, D as DetailViewLayout, c as SidePanelConfig, G as Group, d as DetailViewDefinition, e as InstanceStatus, T as Tab, f as TableTab, C as CreateMode, g as FilterState, h as SortRule, L as ListViewDefinition, W as WorkflowTheme, i as WorkflowConfig, j as SlotMode, k as ConditionGroup, l as ConditionRule, m as WorkflowNode, n as WorkflowDefinition, o as FlowRow, p as ListViewConfig, q as ListViewTab, V as ViewType, r as ViewDefinition, s as DocumentTemplate } from './runtime-CFoct1Bt.mjs';
|
|
2
|
+
export { ad as AIBatchQuestion, ae as AIBatchQuestionAnswer, ac as AIBatchQuestionOption, a7 as AIChatMessage, a6 as AIChatMessagePart, a1 as AIChatMessagePartType, at as AICompactionSummary, aj as AIConversation, gc as AIConversationsRepository, ar as AIMemoryEntry, aq as AIMemoryType, ak as AIMessage, ai as AIMessageAttachment, Z as AIMessageRole, ao as AIProviderMetrics, aa as AIQuestion, ab as AIQuestionAnswer, a9 as AIQuestionOption, a8 as AIQuestionType, as as AITenantPersona, _ as AIThinkingLevel, ag as AITodoItem, ah as AITodoList, af as AITodoStatus, a0 as AIToolCall, al as AIToolCallRecord, $ as AIToolCallStatus, an as AIUsageMetrics, gd as AIUsageMetricsRepository, am as AIUserMemory, ge as AIUserMemoryRepository, c8 as ALL_ACTIONS, c7 as AccessLevel, cA as ActivityTab, bO as AddAttribute, gC as AddAttributeInput, bn as AdvancedFilterState, ck as AssignRoleInput, g1 as AttributeChange, bN as AttributeMap, bJ as AttributeSchema, gf as AttributesRepository, av as AuditAction, aw as AuditActorType, ax as AuditChange, aA as AuditListOptions, ay as AuditLogEntry, gg as AuditRepository, au as AuditResourceType, hS as AuditService, aB as AuditServiceOptions, gy as BaseRepository, gx as BaseService, B as BoundingBox, er as CacheAdapter, ep as CacheKeyType, es as CacheOptions, cG as CalendarViewConfig, cK as CalendarViewDefinition, dr as CanvasViewport, b9 as CheckboxFilterOperator, fu as ConditionExecutor, d3 as ConditionNode, di as ConditionOperator, cN as ConfigOverrides, ap as CreateAIMessageInput, az as CreateAuditLogInput, gB as CreateCustomObjectInput, iO as CreateDBAttribute, iK as CreateDBObject, i_ as CreateDBView, j2 as CreateDBViewOverlay, j5 as CreateDBWorkflow, je as CreateDBWorkflowAccessGrant, j8 as CreateDBWorkflowInstance, jb as CreateDBWorkflowInvitation, aU as CreateDocument, aG as CreateDocumentGenerationTemplate, aY as CreateDocumentSlot, aW as CreateDocumentTemplate, b5 as CreateFile, dO as CreateGrantInput, hw as CreateGrantResult, dH as CreateInvitationInput, dI as CreateInvitationResult, iR as CreateObjectRecord, cj as CreatePermissionInput, a_ as CreateProcessingJob, i5 as CreateRecordDocumentInput, i6 as CreateRecordDocumentResult, ch as CreateRoleInput, z as CreateSignatureInput, cq as CreateUserProfile, ig as CreateViewInput, hJ as CreateWorkflowInput, bg as CurrencyFilterValue, bS as CustomAttributeValue, cz as CustomTab, iN as DBAttribute, iJ as DBObject, iZ as DBView, j1 as DBViewOverlay, j4 as DBWorkflow, jd as DBWorkflowAccessGrant, j7 as DBWorkflowInstance, ja as DBWorkflowInvitation, iA as DEFAULT_LABEL_FALLBACK, e7 as DEFAULT_THEME, ei as DatabaseAdapter, ba as DateFilterOperator, cF as DetailViewConfig, aN as Document, aK as DocumentAutoProcessing, X as DocumentData, fv as DocumentExecutor, hV as DocumentGenerationNotConfiguredError, hW as DocumentGenerationService, aF as DocumentGenerationTemplate, gh as DocumentGenerationTemplateListOptions, hU as DocumentGenerationTemplateNotFoundError, gi as DocumentGenerationTemplatesRepository, gj as DocumentJobsRepository, b0 as DocumentListOptions, d4 as DocumentNode, hX as DocumentProcessingConfig, hq as DocumentProcessingHook, hp as DocumentProcessingHookOptions, hY as DocumentProcessingService, i0 as DocumentRenderError, h_ as DocumentRendererOptions, i2 as DocumentRendererService, i8 as DocumentService, i7 as DocumentServiceOptions, aP as DocumentSlot, aJ as DocumentSlotDefinition, gk as DocumentSlotsRepository, aO as DocumentStatus, b1 as DocumentTemplateListOptions, i3 as DocumentTemplateService, gm as DocumentTemplatesRepository, gl as DocumentsRepository, cD as DocumentsTab, ce as EffectivePermissions, fw as EndExecutor, d5 as EndNode, eO as EvaluationResult, eP as EvaluationTrace, fi as ExecutorCompleteResult, fj as ExecutorContext, fk as ExecutorErrorResult, fr as ExecutorRegistry, fl as ExecutorResult, fm as ExecutorSuccessResult, fn as ExecutorWaitResult, bk as ExtendedFilterRule, c0 as ExtractAttributes, c2 as ExtractObjectRecord, c3 as ExtractObjectRecordWithCustom, bW as ExtractRecord, bY as ExtractRecordInput, bZ as ExtractRecordInputStrict, bX as ExtractRecordStrict, b_ as ExtractRecordUpdate, b$ as ExtractRecordUpdateStrict, aM as ExtractionField, aL as ExtractionMapping, f0 as FeatureFlagsContext, eU as FeatureFlagsContextError, ex as FetchResult, b4 as File, il as FileContent, iY as FileListOptions, ia as FileService, i9 as FileServiceOptions, b3 as FileVisibility, gn as FilesRepository, bl as FilterCombinator, bm as FilterGroup, be as FilterOperator, bj as FilterRule, bi as FilterValue, bz as FlowDefinition, bw as FlowPage, bx as FlowRelation, bv as FlowRowField, bu as FlowSlot, by as FlowStatus, cC as FlowsTab, d_ as FormContextResponse, cu as FormDensity, fx as FormExecutor, d$ as FormFieldContext, d6 as FormFieldRef, e0 as FormFieldRow, d7 as FormNode, e1 as FormNodeInfo, cv as FormTab, ey as FormattedRecord, h1 as FormulaResolverService, h0 as FormulaResolverServiceOptions, fL as FormulaResult, iy as FullSyncOptions, ix as FullSyncResult, cI as GalleryViewConfig, cM as GalleryViewDefinition, dV as GeneratedDocument, bH as GeocodingAdapter, bE as GeocodingAutocompleteParams, bG as GeocodingParams, ib as GeocodingService, bD as GeocodingSuggestion, gR as GetRelationOptionsParams, ij as GetViewOptions, ii as GetViewsOptions, iV as GlobalSearchGroupedOptions, iX as GlobalSearchGroupedResult, iU as GlobalSearchOptions, iW as GlobalSearchResultItem, ic as GlobalSearchService, hs as GrantExpiredError, hr as GrantNotFoundError, ht as GrantRevokedError, hv as GrantServiceConfig, ez as GroupedFetchResult, g2 as HookContext, g3 as HookDefinition, g4 as HookHandler, g7 as HookRegistry, g5 as HookType, gY as HybridRelationValue, P as IdentityVerificationAdapter, bP as InferRecord, bK as InferRecordFromSchema, bQ as InferRecordInput, bR as InferRecordUpdate, bL as InferRecordWithRequirements, eA as InsertOptions, fP as InvalidPathError, cx as InverseSource, hF as InvitationAlreadyAcceptedError, hE as InvitationExpiredError, hD as InvitationNotFoundError, hG as InvitationRevokedError, hC as InvitationServiceConfig, dJ as InvitationStatus, cs as InviteUserInput, ek as JwtVerificationResult, hg as LabelResolver, iS as ListOptions, cE as ListViewLayout, el as MagicLinkPayload, fQ as MaxDepthExceededError, g9 as MockStores, gW as MultiRelationValue, bc as MultiselectFilterOperator, bs as NO_VALUE_OPERATORS, br as NoValueOperator, fo as NodeExecutor, ds as NodePosition, ew as NoopCacheAdapter, bI as NoopGeocodingAdapter, g6 as NoopHookRegistry, b8 as NumberFilterOperator, bq as OPERATORS_BY_TYPE, c5 as ObjectAction, cf as ObjectPermissions, go as ObjectRecordsRepository, gF as ObjectSchemaService, gE as ObjectSchemaServiceOptions, gp as ObjectsRepository, O as OcrAdapter, t as OcrInput, u as OcrOptions, w as OcrPage, v as OcrResult, x as OcrTextBlock, jg as OperationResult, fU as PathCardinality, fV as PathSegment, fW as PathSegmentType, aD as PdfTemplateField, dz as PendingAction, aI as PendingDocumentRequest, cc as Permission, c4 as PermissionScope, ie as PermissionService, id as PermissionServiceOptions, gq as PermissionsRepository, bh as PhoneFilterValue, cl as PolicyContext, gb as PolicyRegistry, cn as PolicyViolationError, aR as ProcessingJob, aT as ProcessingJobStatus, aS as ProcessingJobType, eM as QueryBuilder, eN as QueryBuilderOptions, eB as QueryBuilderState, eI as QueryMultipleResultsError, eJ as QueryNoResultError, gJ as QueryOptions, gL as QueryResult, bp as QueryState, e2 as ReadOnlyReason, a5 as ReasoningPartData, i4 as RecordDocumentsResult, bU as RecordMetadata, cm as RecordPolicy, gM as RecordQueryService, gI as RecordQueryServiceOptions, g_ as RecordResolverService, gH as RecordService, gG as RecordServiceOptions, eC as RegistryMap, eD as RegistryObjectNames, ed as RelationAttributeInput, ee as RelationAttributeRow, ef as RelationAttributesRepository, bd as RelationFilterOperator, iH as RelationLabelResolver, gP as RelationOption, gQ as RelationOptionsResponse, gZ as RelationPropertiesService, gV as RelationService, gS as RelationServiceOptions, cw as RelationSource, gO as RelationValidationError, gN as RelationValidationResult, bf as RelativeDateValue, hZ as RenderDocumentInput, h$ as RenderDocumentResult, gT as ResolveIdsBatchRequest, gU as ResolveIdsBatchResponse, g$ as ResolvedRelations, hz as ResumeWorkflowInput, bF as ReverseGeocodingParams, cB as RichtextTab, cb as Role, ho as RollupCascadeContext, h2 as RollupResult, h6 as RollupScheduler, h5 as RollupSchedulerOptions, h4 as RollupService, h3 as RollupServiceOptions, eK as SHORTCUT_TO_FILTER_OPERATOR, eg as SORTABLE_ATTRIBUTE_TYPES, f8 as SchemaContext, gz as SchemaContextAware, gA as SchemaContextAwareRepository, fX as SchemaResolver, eh as SearchAdapter, iT as SearchOptions, gK as SearchQueryOptions, bb as SelectFilterOperator, eE as ShortcutOperator, y as SignatureAdapter, H as SignaturePosition, J as SignatureRequestResult, N as SignatureStatus, K as SignatureStatusResult, ip as SignedUrlOptions, E as SignerRequest, M as SignerStatus, gX as SingleRelationValue, aQ as SlotStatus, bo as SortDirection, fy as StartExecutor, d8 as StartNode, hy as StartWorkflowInput, iq as StorageAdapter, i1 as StorageDownloadNotSupportedError, b2 as StorageProvider, im as StorageUploadInput, io as StorageUploadResult, it as SyncOptions, is as SyncResult, c6 as SystemAction, bV as SystemFields, cg as SystemPermissions, ct as TabType, cy as TableSource, aE as TemplateSource, ff as TenantContext, eT as TenantContextError, b7 as TextFilterOperator, a2 as TextPartData, e4 as ThemeColors, e5 as ThemeLogo, e6 as ThemeTypography, a4 as ThinkingPartData, cH as TimelineViewConfig, cL as TimelineViewDefinition, hu as TokenRevokedError, a3 as ToolPartData, f$ as TraversalOptions, g0 as TraversalResult, bM as TypedAttribute, c1 as TypedObjectRecord, iP as UpdateDBAttribute, iL as UpdateDBObject, i$ as UpdateDBView, j3 as UpdateDBViewOverlay, j6 as UpdateDBWorkflow, jf as UpdateDBWorkflowAccessGrant, j9 as UpdateDBWorkflowInstance, jc as UpdateDBWorkflowInvitation, aV as UpdateDocument, aH as UpdateDocumentGenerationTemplate, aZ as UpdateDocumentSlot, aX as UpdateDocumentTemplate, b6 as UpdateFile, gD as UpdateObjectInput, a$ as UpdateProcessingJob, ci as UpdateRoleInput, cr as UpdateUserProfile, ih as UpdateViewInput, hK as UpdateWorkflowInput, ir as UploadFileInput, iQ as UpsertDBAttribute, iM as UpsertDBObject, j0 as UpsertDBView, cp as UserProfile, hR as UserProfileService, hQ as UserProfileServiceOptions, gr as UserProfilesRepository, cd as UserRoleAssignment, hP as UserService, co as UserStatus, hO as UserValidationError, hN as UserValidationResult, aC as VariableMapping, Y as VerificationCheck, U as VerificationResult, Q as VerifyInput, cJ as ViewConfig, cO as ViewOverlay, ec as ViewOverlaysRepository, ik as ViewService, ji as ViewSyncLogger, jj as ViewSyncOptions, jh as ViewSyncResult, gs as ViewsRepository, bT as WithCustomAttributes, dP as WorkflowAccessGrant, hx as WorkflowAccessGrantService, gt as WorkflowAccessGrantsRepository, e3 as WorkflowAccessMode, em as WorkflowAccessPayload, dA as WorkflowError, dW as WorkflowExecutionContext, dB as WorkflowInstance, hB as WorkflowInstanceService, hA as WorkflowInstanceServiceOptions, gu as WorkflowInstancesRepository, dK as WorkflowInvitation, hH as WorkflowInvitationService, gv as WorkflowInvitationsRepository, en as WorkflowJwtConfig, eo as WorkflowJwtPayload, ej as WorkflowJwtService, dt as WorkflowLayout, d9 as WorkflowNodeType, hI as WorkflowRelationService, hM as WorkflowService, hL as WorkflowServiceOptions, du as WorkflowSlot, dv as WorkflowStatus, dC as WorkflowTransition, gw as WorkflowsRepository, ca as accessLevelToActions, c9 as actionsToAccessLevel, f1 as addSchemaToContext, dj as and, h7 as applyDefaultValues, hT as buildAuditChanges, ha as buildPolicyContext, et as cacheKeys, eu as cacheTtl, dQ as canAccessNode, dD as canResumeInstance, h8 as checkPermission, hb as checkRecordAccess, hd as checkRecordDeleteOrThrow, hc as checkRecordModifyOrThrow, he as checkSharedObjectWriteAccess, fp as complete, hf as computeLabel, iI as computeLabelWithRelations, hj as createContextForCreate, hl as createContextForDelete, hm as createContextForRestore, hk as createContextForUpdate, fg as createDefaultExecutorRegistry, eF as createDefaultState, dX as createEmptyContext, g8 as createMockAdapter, eL as createQueryBuilder, dE as createStartTransition, ga as defaultPolicyRegistry, ev as defaultTtl, hi as enrichRecordsWithFormulas, iE as enrichValuesForDisplay, iF as enrichValuesWithSelectLabels, hh as enrichWithFormulas, dk as eq, fq as error, eR as evaluate, eQ as evaluateCondition, fz as evaluateFormula, fA as evaluateFormulaAttribute, fB as evaluateFormulaAttributeWithRelations, fC as evaluateFormulaWithRelations, fD as evaluateFormulaWithResult, eS as evaluateWithTrace, iD as extractAttributeNames, fE as extractFormulaVariables, iG as extractRelationIds, fF as extractRelationNames, fG as extractRelationReferences, fH as flattenRelationsForEval, fI as formatFormulaResult, eG as formatRecord, eH as formatRecords, e8 as generateCssVariables, f9 as getContext, dY as getContextValue, fh as getDefaultExecutorRegistry, eV as getFeatureFlags, eW as getFeatureValue, da as getNodeOutputs, fM as getPathDepth, h9 as getPolicy, fN as getRelationPath, f2 as getSchemaByNameFromContext, f3 as getSchemaContext, f4 as getSchemaFromContext, iw as getSyncPreview, fO as getTargetAttributeName, fa as getTenantId, fb as getUserId, jo as getViewSeedPreview, jp as getViewSyncPreview, fc as hasContext, eX as hasFeatureFlagsContext, fJ as hasRelationReferences, f5 as hasSchemaContext, eq as hashOptions, dl as inValues, c$ as isActivityTab, db as isAdvancedFormNode, cR as isCalendarView, dm as isConditionGroup, dc as isConditionNode, dn as isConditionRule, c_ as isCustomTab, cP as isDetailView, dd as isDocumentNode, d2 as isDocumentsTab, de as isEndNode, eY as isFeatureEnabled, cU as isFieldGroup, bA as isFlowDefinition, bB as isFlowPublished, d1 as isFlowsTab, df as isFormNode, cW as isFormTab, cT as isGalleryView, dR as isGrantExpired, dS as isGrantRevoked, dT as isGrantValid, dF as isInstanceTerminal, dG as isInstanceWaiting, cZ as isInverseSourceTab, dL as isInvitationAccepted, dM as isInvitationExpired, dN as isInvitationValid, iC as isLabelExpression, cQ as isListView, bt as isNoValueOperator, cV as isRelationGroup, cY as isRelationSourceTab, d0 as isRichtextTab, dg as isSimpleFormNode, dh as isStartNode, bC as isSystemFlow, dw as isSystemWorkflow, cX as isTableTab, cS as isTimelineView, dU as isTokenRevoked, dx as isWorkflowDefinition, dy as isWorkflowPublished, e9 as mergeWithDefaults, dp as neq, dq as or, fR as parsePath, fS as pathHasManyCardinality, hn as recalculateParentRollups, ea as registry, iB as renderLabelExpression, fY as resolveMultiplePaths, fZ as resolveSingleValue, fd as runWithContext, eZ as runWithFeatureFlags, f6 as runWithMergedSchemaContext, f7 as runWithSchemaContext, jk as seedRegistryViews, dZ as setContextValue, fs as success, iz as syncAll, iu as syncNativeObjects, jl as syncNativeViews, f_ as traversePath, e_ as tryGetFeatureValue, fK as validateFormulaExpression, fT as validatePath, iv as verifyNativeObjectsSync, jn as verifyNativeViewsSync, jm as verifyRegistryViewsSeeded, eb as viewRegistry, ft as wait, e$ as withFeatureFlags, fe as withTenantContext } from './runtime-CFoct1Bt.mjs';
|
|
3
|
+
import { D as DateAttribute, U as UserAttribute, a as DocumentAttribute, A as Attribute, P as Phone, F as FeatureGate, T as TextAttribute, b as TextAreaAttribute, R as RichtextAttribute, c as RichtextFeature, N as NumberAttribute, C as CheckboxAttribute, d as PhoneAttribute, e as CurrencyAttribute, O as Option, S as StatusAttribute, f as SelectAttribute, M as MultiselectAttribute, L as LocationAttribute, g as FileAttribute, h as RatingAttribute, i as RelationAttribute, B as BilateralConfig, j as SingleRelationAttribute, k as MultiRelationAttribute, l as RelationTarget, m as FormulaAttribute, n as FormulaReturnType, o as RollupAttribute, p as RollupFunction, q as AttributeType, r as ObjectDefinition, s as FlagValueType, t as FeatureFlagDefinition, u as FlagLevel, v as FeatureFlagsRepository, w as StaticFlagDefault, x as ResolvedFlag } from './validators-DUB0tEzp.mjs';
|
|
4
|
+
export { z as AttributeGroup, E as BaseAttribute, a8 as CompletionStatus, J as Currency, ah as DEFAULT_VALIDATION_MESSAGES, H as DateFormat, I as DateValue, ab as FORBIDDEN_PROPERTY_TYPES, a0 as FeatureFlagsConfig, $ as FlagOverride, ac as ForbiddenPropertyType, K as Location, Q as LocationGranularity, Z as NON_SORTABLE_TYPES, G as NumberUnit, a7 as ObjectAttribute, a9 as ObjectRecord, ad as PropertyAttribute, ae as PropertySchema, aa as PropertyType, V as RELATION_TARGET_ANY, a1 as RESERVED_ATTRIBUTE_NAMES, a3 as ReservedAttributeName, a2 as SYSTEM_FIELD_NAMES, a6 as SharingMode, y as StatusGroup, a4 as SystemFieldName, a5 as Timestamps, ag as ValidationMessages, b1 as ValidationResult, aB as attributeConfigSchemas, am as checkboxConfigSchema, ba as computeRecordStatus, a_ as createAttributeValidator, aI as createCheckboxValidator, aL as createCurrencyValidator, aJ as createDateValidator, b5 as createDraftValidator, aQ as createFileValidator, a$ as createFormAttributeValidator, aW as createFormulaValidator, aP as createLocationValidator, aT as createMultiRelationValidator, aO as createMultiselectValidator, aH as createNumberValidator, b0 as createObjectValidator, aK as createPhoneValidator, aV as createRatingValidator, aU as createRelationValidator, aZ as createRichtextValidator, aX as createRollupValidator, aN as createSelectValidator, aS as createSingleRelationValidator, aM as createStatusValidator, aY as createTextAreaValidator, aG as createTextValidator, aR as createUserValidator, ap as currencyConfigSchema, an as dateConfigSchema, aA as documentConfigSchema, au as fileConfigSchema, af as formatZodErrors, ay as formulaConfigSchema, aC as getAttributeConfigSchema, b8 as getMissingRequiredAttributes, Y as inferInverseCardinality, _ as isAttributeSortable, X as isBilateralRelation, b9 as isRecordComplete, W as isUniversalRelation, ar as locationConfigSchema, at as multiselectConfigSchema, al as numberConfigSchema, aE as parseAttributeConfig, ao as phoneConfigSchema, ax as ratingConfigSchema, aw as relationConfigSchema, ak as richtextConfigSchema, az as rollupConfigSchema, aF as safeParseAttributeConfig, as as selectConfigSchema, aq as statusConfigSchema, ai as textConfigSchema, aj as textareaConfigSchema, av as userConfigSchema, b2 as validateAttribute, aD as validateAttributeConfig, b6 as validateDraft, b7 as validateDraftOrThrow, b3 as validateObject, b4 as validateObjectOrThrow } from './validators-DUB0tEzp.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export { TenantId, UserId, Uuid, asTenantId, asUserId, generateId, generatePrefixedId, generateTemplateName, indexBy, slugify } from './utils.mjs';
|
|
7
7
|
import { CountryIso3, IconName, CurrencyCode, MimeType, ColorId } from '@stndrds/constants';
|
|
@@ -1278,18 +1278,10 @@ declare function applyRelationProps(label: string, props: Record<string, unknown
|
|
|
1278
1278
|
* System resources that can be managed through permissions.
|
|
1279
1279
|
*/
|
|
1280
1280
|
declare const SYSTEM_RESOURCES: {
|
|
1281
|
-
/** User profiles and
|
|
1282
|
-
readonly
|
|
1283
|
-
/** Object definitions and
|
|
1284
|
-
readonly
|
|
1285
|
-
/** Roles and permissions management */
|
|
1286
|
-
readonly ROLES: "roles";
|
|
1287
|
-
/** Tenant settings and configuration */
|
|
1288
|
-
readonly SETTINGS: "settings";
|
|
1289
|
-
/** Audit logs and activity trail */
|
|
1290
|
-
readonly AUDIT: "audit";
|
|
1291
|
-
/** File uploads and storage management */
|
|
1292
|
-
readonly FILES: "files";
|
|
1281
|
+
/** User profiles, invitations, roles and permissions management */
|
|
1282
|
+
readonly PEOPLE: "people";
|
|
1283
|
+
/** Object definitions, attributes, tenant settings and audit logs */
|
|
1284
|
+
readonly WORKSPACE: "workspace";
|
|
1293
1285
|
};
|
|
1294
1286
|
/**
|
|
1295
1287
|
* All system resources as an array (for iteration)
|
|
@@ -1304,11 +1296,9 @@ declare const SYSTEM_RESOURCE_LABELS: Record<SystemResource, string>;
|
|
|
1304
1296
|
*/
|
|
1305
1297
|
declare const DEFAULT_ROLES: {
|
|
1306
1298
|
/** Full platform access - can manage everything */
|
|
1307
|
-
readonly
|
|
1308
|
-
/** Standard user - can work with business data
|
|
1299
|
+
readonly OWNER: "owner";
|
|
1300
|
+
/** Standard user - can work with business data and view people */
|
|
1309
1301
|
readonly MEMBER: "member";
|
|
1310
|
-
/** Read-only access - can view but not modify */
|
|
1311
|
-
readonly GUEST: "guest";
|
|
1312
1302
|
};
|
|
1313
1303
|
type DefaultRoleName = (typeof DEFAULT_ROLES)[keyof typeof DEFAULT_ROLES];
|
|
1314
1304
|
/**
|
|
@@ -1324,29 +1314,32 @@ declare const DEFAULT_ROLE_DESCRIPTIONS: Record<DefaultRoleName, string>;
|
|
|
1324
1314
|
* Used when initializing a new tenant.
|
|
1325
1315
|
*/
|
|
1326
1316
|
interface DefaultRolePermissionConfig {
|
|
1327
|
-
/** System resource permissions (
|
|
1317
|
+
/** System resource permissions (people, workspace) */
|
|
1328
1318
|
system: Array<{
|
|
1329
1319
|
target: SystemResource | "*";
|
|
1330
|
-
actions:
|
|
1320
|
+
actions: Action[];
|
|
1331
1321
|
}>;
|
|
1332
1322
|
/** Object permissions (business data) */
|
|
1333
1323
|
object: Array<{
|
|
1334
1324
|
target: string;
|
|
1335
|
-
actions:
|
|
1325
|
+
actions: Action[];
|
|
1336
1326
|
}>;
|
|
1337
1327
|
}
|
|
1338
1328
|
/**
|
|
1339
1329
|
* Default permissions for each built-in role.
|
|
1340
1330
|
*
|
|
1341
|
-
* - **
|
|
1342
|
-
* - **member**:
|
|
1343
|
-
* - **guest**: No system access, read-only on objects
|
|
1331
|
+
* - **owner**: Full access to everything (system + objects)
|
|
1332
|
+
* - **member**: Read-only people access, full CRUD on objects
|
|
1344
1333
|
*/
|
|
1345
1334
|
declare const DEFAULT_ROLE_PERMISSIONS: Record<DefaultRoleName, DefaultRolePermissionConfig>;
|
|
1346
1335
|
/**
|
|
1347
1336
|
* Check if a role name is a default/built-in role
|
|
1348
1337
|
*/
|
|
1349
1338
|
declare function isDefaultRole(roleName: string): roleName is DefaultRoleName;
|
|
1339
|
+
/**
|
|
1340
|
+
* Check if a role name is the admin/owner role (full platform access).
|
|
1341
|
+
*/
|
|
1342
|
+
declare function isAdminRole(roleName: string): boolean;
|
|
1350
1343
|
|
|
1351
1344
|
/**
|
|
1352
1345
|
* Error codes for schema exceptions
|
|
@@ -2172,6 +2165,10 @@ declare class DocumentAttributeBuilder<TName extends string, TRequired extends b
|
|
|
2172
2165
|
* Mark this attribute as required.
|
|
2173
2166
|
*/
|
|
2174
2167
|
required(): DocumentAttributeBuilder<TName, true>;
|
|
2168
|
+
/**
|
|
2169
|
+
* Mark this attribute as optional (undo required).
|
|
2170
|
+
*/
|
|
2171
|
+
optional(): DocumentAttributeBuilder<TName, false>;
|
|
2175
2172
|
}
|
|
2176
2173
|
/**
|
|
2177
2174
|
* Create a document attribute.
|
|
@@ -2464,7 +2461,7 @@ declare class GroupBuilder {
|
|
|
2464
2461
|
build(): FieldGroup;
|
|
2465
2462
|
}
|
|
2466
2463
|
/**
|
|
2467
|
-
* Builder for creating relation groups
|
|
2464
|
+
* Builder for creating relation groups inside a form tab
|
|
2468
2465
|
*
|
|
2469
2466
|
* @example
|
|
2470
2467
|
* ```typescript
|
|
@@ -3631,7 +3628,7 @@ declare abstract class BaseFlagBuilder<T, TValueType extends FlagValueType> {
|
|
|
3631
3628
|
allowedLevels(levels: FlagLevel[]): this;
|
|
3632
3629
|
/**
|
|
3633
3630
|
* Build the flag definition.
|
|
3634
|
-
* @throws {Error} If label is not set
|
|
3631
|
+
* @throws {Error} If label is not set or is whitespace-only
|
|
3635
3632
|
*/
|
|
3636
3633
|
build(): FeatureFlagDefinition<T>;
|
|
3637
3634
|
}
|
|
@@ -3788,8 +3785,10 @@ declare class FlagRegistry {
|
|
|
3788
3785
|
register<T>(flag: FeatureFlagDefinition<T>): void;
|
|
3789
3786
|
/**
|
|
3790
3787
|
* Register multiple flags at once.
|
|
3788
|
+
* This operation is atomic - either all flags are registered or none are.
|
|
3791
3789
|
*
|
|
3792
3790
|
* @param flags - Array of flag definitions to register
|
|
3791
|
+
* @throws {Error} If any flag name conflicts with existing or duplicate within batch
|
|
3793
3792
|
*/
|
|
3794
3793
|
registerAll(flags: FeatureFlagDefinition[]): void;
|
|
3795
3794
|
/**
|
|
@@ -4206,4 +4205,4 @@ declare function getSystemTemplate(name: string): DocumentTemplate | undefined;
|
|
|
4206
4205
|
*/
|
|
4207
4206
|
declare function isSystemTemplate(name: string): boolean;
|
|
4208
4207
|
|
|
4209
|
-
export { ALL_SYSTEM_RESOURCES, ActivityTabConfig, type AgentContentPart, type AgentMessage, type AnyAttributeBuilder, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, AuthMethodSchema, BEHAVIOR_PROPERTIES, type BehaviorProperty, BilateralConfig, type BilateralValidationError, type BilateralValidationResult, type BuilderConfig, type ChatFileAttachment, CheckboxAttribute, ConcurrentModificationError, ConditionGroup, ConditionGroupSchema, ConditionNodeSchema, ConditionOperatorSchema, ConditionRule, ConditionRuleSchema, CreateMode, CreateShareInputSchema, CurrencyAttribute, CustomTabConfig, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DRIVING_LICENSE, DateAttribute, type DefaultRoleName, type DefaultRolePermissionConfig, DetailViewBuilder, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentNodeSchema, DocumentTemplate, DocumentsTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, EndNodeSchema, type ExtractAttributeName, type ExtractAttributeRequired, FRENCH_ID_CARD, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, 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, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, LocationAttribute, MultiRelationAttribute, MultiselectAttribute, NodePositionSchema, NotFoundError, NotSystemObjectError, NumberAttribute,
|
|
4208
|
+
export { ALL_SYSTEM_RESOURCES, Action, ActivityTabConfig, type AgentContentPart, type AgentMessage, type AnyAttributeBuilder, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, AuthMethodSchema, BEHAVIOR_PROPERTIES, type BehaviorProperty, BilateralConfig, type BilateralValidationError, type BilateralValidationResult, type BuilderConfig, type ChatFileAttachment, CheckboxAttribute, ConcurrentModificationError, ConditionGroup, ConditionGroupSchema, ConditionNodeSchema, ConditionOperatorSchema, ConditionRule, ConditionRuleSchema, CreateMode, CreateShareInputSchema, CurrencyAttribute, CustomTabConfig, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DRIVING_LICENSE, DateAttribute, type DefaultRoleName, type DefaultRolePermissionConfig, DetailViewBuilder, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentNodeSchema, DocumentTemplate, DocumentsTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, EndNodeSchema, type ExtractAttributeName, type ExtractAttributeRequired, FRENCH_ID_CARD, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, 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, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, LocationAttribute, MultiRelationAttribute, MultiselectAttribute, NodePositionSchema, NotFoundError, NotSystemObjectError, NumberAttribute, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, ObjectReferencedError, Option, PASSPORT, PRESENTATION_PROPERTIES, PROOF_OF_ADDRESS, Phone, PhoneAttribute, type PhoneNormalizationResult, type PresentationProperty, type PropertyAttributeBuilder, ProtectedResourceError, ProtectedRoleError, RatingAttribute, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationAttribute, RelationGroup, RelationGroupBuilder, RelationTarget, type ResetViewOptions, ResolvedFlag, type ResumeWorkflowApiInput, RichtextAttribute, RichtextFeature, RichtextTabConfig, RoleNotFoundError, RollupAttribute, RollupFunction, SIGNABLE_CONTRACT, SYSTEM_ATTRIBUTES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SYSTEM_TEMPLATES, SYSTEM_TEMPLATE_IDS, SchemaError, SchemaErrorCode, SelectAttribute, ShareStatusSchema, SidePanelConfig, SingleRelationAttribute, SlotMode, SlotModeSchema, SortRule, StartNodeSchema, type StartWorkflowApiInput, StaticFlagDefault, StatusAttribute, SyncError, type SystemAttribute, type SystemAttributeName, SystemResource, Tab, TabBuilder, TableTab, TableTabConfig, 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, applyRelationProps, booleanFlag, checkbox, createFlagRegistry, createFlagService, currency, date, detailView, document, file, flagRegistry, formatAttributeValue, formatPhoneForDisplay, formula, generateDefaultDetailView, generateDefaultListView, generateFallbackView, getActiveTab, getErrorMessage, getSystemAttributeList, getSystemTemplate, group, hasProperties, isAdminRole, isBehaviorProperty, isDefaultRole, isEmpty, isForbiddenError, isIdentityProperty, isInstanceEvent, isInvitationOrGrantEvent, isNodeEvent, isNotEmpty, isNotFoundError, isPresentationProperty, isProtectedResourceError, isSchemaError, isSystemAttribute, isSystemAttributeObject, isSystemTemplate, isValidationError, isViewCustomized, jsonFlag, listView, location, multiselect, normalizePhoneNumber, number, numberFlag, object, parseRawPhoneInput, phone, rating, relation, relationGroup, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validatePhoneNumber, view, workflow };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as SystemResource,
|
|
2
|
-
export { ae as AIBatchQuestion, af as AIBatchQuestionAnswer, ad as AIBatchQuestionOption, a8 as AIChatMessage, a7 as AIChatMessagePart, a2 as AIChatMessagePartType, au as AICompactionSummary, ak as AIConversation, g6 as AIConversationsRepository, as as AIMemoryEntry, ar as AIMemoryType, al as AIMessage, aj as AIMessageAttachment, _ as AIMessageRole, ap as AIProviderMetrics, ab as AIQuestion, ac as AIQuestionAnswer, aa as AIQuestionOption, a9 as AIQuestionType, at as AITenantPersona, $ as AIThinkingLevel, ah as AITodoItem, ai as AITodoList, ag as AITodoStatus, a1 as AIToolCall, am as AIToolCallRecord, a0 as AIToolCallStatus, ao as AIUsageMetrics, g7 as AIUsageMetricsRepository, an as AIUserMemory, g8 as AIUserMemoryRepository, cw as ActivityTab, bP as AddAttribute, gw as AddAttributeInput, bo as AdvancedFilterState, cf as AssignRoleInput, fX as AttributeChange, bO as AttributeMap, bK as AttributeSchema, g9 as AttributesRepository, aw as AuditAction, ax as AuditActorType, ay as AuditChange, aB as AuditListOptions, az as AuditLogEntry, ga as AuditRepository, av as AuditResourceType, hM as AuditService, aC as AuditServiceOptions, gs as BaseRepository, gr as BaseService, B as BoundingBox, el as CacheAdapter, ej as CacheKeyType, em as CacheOptions, cC as CalendarViewConfig, cG as CalendarViewDefinition, dm as CanvasViewport, ba as CheckboxFilterOperator, fo as ConditionExecutor, c$ as ConditionNode, de as ConditionOperator, cJ as ConfigOverrides, aq as CreateAIMessageInput, aA as CreateAuditLogInput, gv as CreateCustomObjectInput, iI as CreateDBAttribute, iE as CreateDBObject, iU as CreateDBView, iY as CreateDBViewOverlay, i$ as CreateDBWorkflow, j8 as CreateDBWorkflowAccessGrant, j2 as CreateDBWorkflowInstance, j5 as CreateDBWorkflowInvitation, aV as CreateDocument, aH as CreateDocumentGenerationTemplate, aZ as CreateDocumentSlot, aX as CreateDocumentTemplate, b6 as CreateFile, dK as CreateGrantInput, hq as CreateGrantResult, dD as CreateInvitationInput, dE as CreateInvitationResult, iL as CreateObjectRecord, ce as CreatePermissionInput, a$ as CreateProcessingJob, h$ as CreateRecordDocumentInput, i0 as CreateRecordDocumentResult, cc as CreateRoleInput, E as CreateSignatureInput, cm as CreateUserProfile, i9 as CreateViewInput, hD as CreateWorkflowInput, bh as CurrencyFilterValue, bT as CustomAttributeValue, cv as CustomTab, iH as DBAttribute, iD as DBObject, iT as DBView, iX as DBViewOverlay, i_ as DBWorkflow, j7 as DBWorkflowAccessGrant, j1 as DBWorkflowInstance, j4 as DBWorkflowInvitation, iu as DEFAULT_LABEL_FALLBACK, e3 as DEFAULT_THEME, ec as DatabaseAdapter, bb as DateFilterOperator, cB as DetailViewConfig, aO as Document, aL as DocumentAutoProcessing, Y as DocumentData, fp as DocumentExecutor, hP as DocumentGenerationNotConfiguredError, hQ as DocumentGenerationService, aG as DocumentGenerationTemplate, gb as DocumentGenerationTemplateListOptions, hO as DocumentGenerationTemplateNotFoundError, gc as DocumentGenerationTemplatesRepository, gd as DocumentJobsRepository, b1 as DocumentListOptions, d0 as DocumentNode, hR as DocumentProcessingConfig, hk as DocumentProcessingHook, hj as DocumentProcessingHookOptions, hS as DocumentProcessingService, hW as DocumentRenderError, hU as DocumentRendererOptions, hY as DocumentRendererService, i2 as DocumentService, i1 as DocumentServiceOptions, aQ as DocumentSlot, aK as DocumentSlotDefinition, ge as DocumentSlotsRepository, aP as DocumentStatus, b2 as DocumentTemplateListOptions, hZ as DocumentTemplateService, gg as DocumentTemplatesRepository, gf as DocumentsRepository, cz as DocumentsTab, c9 as EffectivePermissions, fq as EndExecutor, d1 as EndNode, eI as EvaluationResult, eJ as EvaluationTrace, fc as ExecutorCompleteResult, fd as ExecutorContext, fe as ExecutorErrorResult, fl as ExecutorRegistry, ff as ExecutorResult, fg as ExecutorSuccessResult, fh as ExecutorWaitResult, bl as ExtendedFilterRule, c1 as ExtractAttributes, c3 as ExtractObjectRecord, c4 as ExtractObjectRecordWithCustom, bX as ExtractRecord, bZ as ExtractRecordInput, b_ as ExtractRecordInputStrict, bY as ExtractRecordStrict, b$ as ExtractRecordUpdate, c0 as ExtractRecordUpdateStrict, aN as ExtractionField, aM as ExtractionMapping, eW as FeatureFlagsContext, eO as FeatureFlagsContextError, er as FetchResult, b5 as File, ie as FileContent, iS as FileListOptions, i4 as FileService, i3 as FileServiceOptions, b4 as FileVisibility, gh as FilesRepository, bm as FilterCombinator, bn as FilterGroup, bf as FilterOperator, bk as FilterRule, bj as FilterValue, bA as FlowDefinition, bx as FlowPage, by as FlowRelation, bw as FlowRowField, bv as FlowSlot, bz as FlowStatus, cy as FlowsTab, dW as FormContextResponse, cq as FormDensity, fr as FormExecutor, dX as FormFieldContext, d2 as FormFieldRef, dY as FormFieldRow, d3 as FormNode, dZ as FormNodeInfo, cr as FormTab, es as FormattedRecord, gX as FormulaResolverService, gW as FormulaResolverServiceOptions, fF as FormulaResult, is as FullSyncOptions, ir as FullSyncResult, cE as GalleryViewConfig, cI as GalleryViewDefinition, dR as GeneratedDocument, bI as GeocodingAdapter, bF as GeocodingAutocompleteParams, bH as GeocodingParams, i5 as GeocodingService, bE as GeocodingSuggestion, gL as GetRelationOptionsParams, ic as GetViewOptions, ib as GetViewsOptions, iP as GlobalSearchGroupedOptions, iR as GlobalSearchGroupedResult, iO as GlobalSearchOptions, iQ as GlobalSearchResultItem, i6 as GlobalSearchService, hm as GrantExpiredError, hl as GrantNotFoundError, hn as GrantRevokedError, hp as GrantServiceConfig, et as GroupedFetchResult, fY as HookContext, fZ as HookDefinition, f_ as HookHandler, g1 as HookRegistry, f$ as HookType, gS as HybridRelationValue, Q as IdentityVerificationAdapter, bQ as InferRecord, bL as InferRecordFromSchema, bR as InferRecordInput, bS as InferRecordUpdate, bM as InferRecordWithRequirements, eu as InsertOptions, fJ as InvalidPathError, ct as InverseSource, hz as InvitationAlreadyAcceptedError, hy as InvitationExpiredError, hx as InvitationNotFoundError, hA as InvitationRevokedError, hw as InvitationServiceConfig, dF as InvitationStatus, co as InviteUserInput, ee as JwtVerificationResult, ha as LabelResolver, iM as ListOptions, cA as ListViewLayout, ef as MagicLinkPayload, fK as MaxDepthExceededError, g3 as MockStores, gQ as MultiRelationValue, bd as MultiselectFilterOperator, bt as NO_VALUE_OPERATORS, bs as NoValueOperator, fi as NodeExecutor, dn as NodePosition, eq as NoopCacheAdapter, bJ as NoopGeocodingAdapter, g0 as NoopHookRegistry, b9 as NumberFilterOperator, br as OPERATORS_BY_TYPE, ca as ObjectPermissions, gi as ObjectRecordsRepository, gz as ObjectSchemaService, gy as ObjectSchemaServiceOptions, gj as ObjectsRepository, t as OcrAdapter, u as OcrInput, v as OcrOptions, x as OcrPage, w as OcrResult, y as OcrTextBlock, ja as OperationResult, fO as PathCardinality, fP as PathSegment, fQ as PathSegmentType, aE as PdfTemplateField, dv as PendingAction, aJ as PendingDocumentRequest, c7 as Permission, c5 as PermissionScope, i8 as PermissionService, i7 as PermissionServiceOptions, gk as PermissionsRepository, bi as PhoneFilterValue, cg as PolicyContext, g5 as PolicyRegistry, ci as PolicyViolationError, aS as ProcessingJob, aU as ProcessingJobStatus, aT as ProcessingJobType, eG as QueryBuilder, eH as QueryBuilderOptions, ev as QueryBuilderState, eC as QueryMultipleResultsError, eD as QueryNoResultError, gD as QueryOptions, gF as QueryResult, bq as QueryState, d_ as ReadOnlyReason, a6 as ReasoningPartData, h_ as RecordDocumentsResult, bV as RecordMetadata, ch as RecordPolicy, gG as RecordQueryService, gC as RecordQueryServiceOptions, gU as RecordResolverService, gB as RecordService, gA as RecordServiceOptions, ew as RegistryMap, ex as RegistryObjectNames, e9 as RelationAttributeInput, ea as RelationAttributeRow, eb as RelationAttributesRepository, be as RelationFilterOperator, iB as RelationLabelResolver, gJ as RelationOption, gK as RelationOptionsResponse, gT as RelationPropertiesService, gP as RelationService, gM as RelationServiceOptions, cs as RelationSource, gI as RelationValidationError, gH as RelationValidationResult, bg as RelativeDateValue, hT as RenderDocumentInput, hV as RenderDocumentResult, gN as ResolveIdsBatchRequest, gO as ResolveIdsBatchResponse, gV as ResolvedRelations, ht as ResumeWorkflowInput, bG as ReverseGeocodingParams, cx as RichtextTab, c6 as Role, hi as RollupCascadeContext, gY as RollupResult, h0 as RollupScheduler, g$ as RollupSchedulerOptions, g_ as RollupService, gZ as RollupServiceOptions, eE as SHORTCUT_TO_FILTER_OPERATOR, f2 as SchemaContext, gt as SchemaContextAware, gu as SchemaContextAwareRepository, fR as SchemaResolver, iN as SearchOptions, gE as SearchQueryOptions, bc as SelectFilterOperator, ey as ShortcutOperator, z as SignatureAdapter, J as SignaturePosition, K as SignatureRequestResult, P as SignatureStatus, M as SignatureStatusResult, ii as SignedUrlOptions, H as SignerRequest, N as SignerStatus, gR as SingleRelationValue, aR as SlotStatus, bp as SortDirection, fs as StartExecutor, d4 as StartNode, hs as StartWorkflowInput, ij as StorageAdapter, hX as StorageDownloadNotSupportedError, b3 as StorageProvider, ig as StorageUploadInput, ih as StorageUploadResult, im as SyncOptions, il as SyncResult, bW as SystemFields, cb as SystemPermissions, cp as TabType, cu as TableSource, aF as TemplateSource, f9 as TenantContext, eN as TenantContextError, b8 as TextFilterOperator, a3 as TextPartData, e0 as ThemeColors, e1 as ThemeLogo, e2 as ThemeTypography, a5 as ThinkingPartData, cD as TimelineViewConfig, cH as TimelineViewDefinition, ho as TokenRevokedError, a4 as ToolPartData, fV as TraversalOptions, fW as TraversalResult, bN as TypedAttribute, c2 as TypedObjectRecord, iJ as UpdateDBAttribute, iF as UpdateDBObject, iV as UpdateDBView, iZ as UpdateDBViewOverlay, j0 as UpdateDBWorkflow, j9 as UpdateDBWorkflowAccessGrant, j3 as UpdateDBWorkflowInstance, j6 as UpdateDBWorkflowInvitation, aW as UpdateDocument, aI as UpdateDocumentGenerationTemplate, a_ as UpdateDocumentSlot, aY as UpdateDocumentTemplate, b7 as UpdateFile, gx as UpdateObjectInput, b0 as UpdateProcessingJob, cd as UpdateRoleInput, cn as UpdateUserProfile, ia as UpdateViewInput, hE as UpdateWorkflowInput, ik as UploadFileInput, iK as UpsertDBAttribute, iG as UpsertDBObject, iW as UpsertDBView, cl as UserProfile, hL as UserProfileService, hK as UserProfileServiceOptions, gl as UserProfilesRepository, cj as UserRole, c8 as UserRoleAssignment, hJ as UserService, ck as UserStatus, hI as UserValidationError, hH as UserValidationResult, aD as VariableMapping, Z as VerificationCheck, X as VerificationResult, U as VerifyInput, cF as ViewConfig, cK as ViewOverlay, e8 as ViewOverlaysRepository, id as ViewService, jc as ViewSyncLogger, jd as ViewSyncOptions, jb as ViewSyncResult, gm as ViewsRepository, bU as WithCustomAttributes, dL as WorkflowAccessGrant, hr as WorkflowAccessGrantService, gn as WorkflowAccessGrantsRepository, d$ as WorkflowAccessMode, eg as WorkflowAccessPayload, dw as WorkflowError, dS as WorkflowExecutionContext, dx as WorkflowInstance, hv as WorkflowInstanceService, hu as WorkflowInstanceServiceOptions, go as WorkflowInstancesRepository, dG as WorkflowInvitation, hB as WorkflowInvitationService, gp as WorkflowInvitationsRepository, eh as WorkflowJwtConfig, ei as WorkflowJwtPayload, ed as WorkflowJwtService, dp as WorkflowLayout, d5 as WorkflowNodeType, hC as WorkflowRelationService, hG as WorkflowService, hF as WorkflowServiceOptions, dq as WorkflowSlot, dr as WorkflowStatus, dy as WorkflowTransition, gq as WorkflowsRepository, eX as addSchemaToContext, df as and, h1 as applyDefaultValues, hN as buildAuditChanges, h4 as buildPolicyContext, en as cacheKeys, eo as cacheTtl, dM as canAccessNode, dz as canResumeInstance, h2 as checkPermission, h5 as checkRecordAccess, h7 as checkRecordDeleteOrThrow, h6 as checkRecordModifyOrThrow, h8 as checkSharedObjectWriteAccess, fj as complete, h9 as computeLabel, iC as computeLabelWithRelations, hd as createContextForCreate, hf as createContextForDelete, hg as createContextForRestore, he as createContextForUpdate, fa as createDefaultExecutorRegistry, ez as createDefaultState, dT as createEmptyContext, g2 as createMockAdapter, eF as createQueryBuilder, dA as createStartTransition, g4 as defaultPolicyRegistry, ep as defaultTtl, hc as enrichRecordsWithFormulas, iy as enrichValuesForDisplay, iz as enrichValuesWithSelectLabels, hb as enrichWithFormulas, dg as eq, fk as error, eL as evaluate, eK as evaluateCondition, ft as evaluateFormula, fu as evaluateFormulaAttribute, fv as evaluateFormulaAttributeWithRelations, fw as evaluateFormulaWithRelations, fx as evaluateFormulaWithResult, eM as evaluateWithTrace, ix as extractAttributeNames, fy as extractFormulaVariables, iA as extractRelationIds, fz as extractRelationNames, fA as extractRelationReferences, fB as flattenRelationsForEval, fC as formatFormulaResult, eA as formatRecord, eB as formatRecords, e4 as generateCssVariables, f3 as getContext, dU as getContextValue, fb as getDefaultExecutorRegistry, eP as getFeatureFlags, eQ as getFeatureValue, d6 as getNodeOutputs, fG as getPathDepth, h3 as getPolicy, fH as getRelationPath, eY as getSchemaByNameFromContext, eZ as getSchemaContext, e_ as getSchemaFromContext, iq as getSyncPreview, fI as getTargetAttributeName, f4 as getTenantId, f5 as getUserId, ji as getViewSeedPreview, jj as getViewSyncPreview, f6 as hasContext, eR as hasFeatureFlagsContext, fD as hasRelationReferences, e$ as hasSchemaContext, ek as hashOptions, dh as inValues, cX as isActivityTab, d7 as isAdvancedFormNode, cN as isCalendarView, di as isConditionGroup, d8 as isConditionNode, dj as isConditionRule, cW as isCustomTab, cL as isDetailView, d9 as isDocumentNode, c_ as isDocumentsTab, da as isEndNode, eS as isFeatureEnabled, cQ as isFieldGroup, bB as isFlowDefinition, bC as isFlowPublished, cZ as isFlowsTab, db as isFormNode, cS as isFormTab, cP as isGalleryView, dN as isGrantExpired, dO as isGrantRevoked, dP as isGrantValid, dB as isInstanceTerminal, dC as isInstanceWaiting, cV as isInverseSourceTab, dH as isInvitationAccepted, dI as isInvitationExpired, dJ as isInvitationValid, iw as isLabelExpression, cM as isListView, bu as isNoValueOperator, cR as isRelationGroup, cU as isRelationSourceTab, cY as isRichtextTab, dc as isSimpleFormNode, dd as isStartNode, bD as isSystemFlow, ds as isSystemWorkflow, cT as isTableTab, cO as isTimelineView, dQ as isTokenRevoked, dt as isWorkflowDefinition, du as isWorkflowPublished, e5 as mergeWithDefaults, dk as neq, dl as or, fL as parsePath, fM as pathHasManyCardinality, hh as recalculateParentRollups, e6 as registry, iv as renderLabelExpression, fS as resolveMultiplePaths, fT as resolveSingleValue, f7 as runWithContext, eT as runWithFeatureFlags, f0 as runWithMergedSchemaContext, f1 as runWithSchemaContext, je as seedRegistryViews, dV as setContextValue, fm as success, it as syncAll, io as syncNativeObjects, jf as syncNativeViews, fU as traversePath, eU as tryGetFeatureValue, fE as validateFormulaExpression, fN as validatePath, ip as verifyNativeObjectsSync, jh as verifyNativeViewsSync, jg as verifyRegistryViewsSeeded, e7 as viewRegistry, fn as wait, eV as withFeatureFlags, f8 as withTenantContext } from './runtime-BV9XBP1p.js';
|
|
3
|
-
import { D as DateAttribute, U as UserAttribute, a as DocumentAttribute, A as Attribute, P as Phone, F as FeatureGate, T as TextAttribute, b as TextAreaAttribute, R as RichtextAttribute, c as RichtextFeature, N as NumberAttribute, C as CheckboxAttribute, d as PhoneAttribute, e as CurrencyAttribute, O as Option, S as StatusAttribute, f as SelectAttribute, M as MultiselectAttribute, L as LocationAttribute, g as FileAttribute, h as RatingAttribute, i as RelationAttribute, B as BilateralConfig, j as SingleRelationAttribute, k as MultiRelationAttribute, l as RelationTarget, m as FormulaAttribute, n as FormulaReturnType, o as RollupAttribute, p as RollupFunction, q as AttributeType, r as ObjectDefinition, s as FlagValueType, t as FeatureFlagDefinition, u as FlagLevel, v as FeatureFlagsRepository, w as StaticFlagDefault, x as ResolvedFlag } from './validators-
|
|
4
|
-
export { z as AttributeGroup, E as BaseAttribute,
|
|
1
|
+
import { S as SystemResource, A as Action, I as InferAttributeValue, F as Field, a as AttributeGroupField, b as FieldGroup, R as RelationGroup, D as DetailViewLayout, c as SidePanelConfig, G as Group, d as DetailViewDefinition, e as InstanceStatus, T as Tab, f as TableTab, C as CreateMode, g as FilterState, h as SortRule, L as ListViewDefinition, W as WorkflowTheme, i as WorkflowConfig, j as SlotMode, k as ConditionGroup, l as ConditionRule, m as WorkflowNode, n as WorkflowDefinition, o as FlowRow, p as ListViewConfig, q as ListViewTab, V as ViewType, r as ViewDefinition, s as DocumentTemplate } from './runtime-BOHwdAGE.js';
|
|
2
|
+
export { ad as AIBatchQuestion, ae as AIBatchQuestionAnswer, ac as AIBatchQuestionOption, a7 as AIChatMessage, a6 as AIChatMessagePart, a1 as AIChatMessagePartType, at as AICompactionSummary, aj as AIConversation, gc as AIConversationsRepository, ar as AIMemoryEntry, aq as AIMemoryType, ak as AIMessage, ai as AIMessageAttachment, Z as AIMessageRole, ao as AIProviderMetrics, aa as AIQuestion, ab as AIQuestionAnswer, a9 as AIQuestionOption, a8 as AIQuestionType, as as AITenantPersona, _ as AIThinkingLevel, ag as AITodoItem, ah as AITodoList, af as AITodoStatus, a0 as AIToolCall, al as AIToolCallRecord, $ as AIToolCallStatus, an as AIUsageMetrics, gd as AIUsageMetricsRepository, am as AIUserMemory, ge as AIUserMemoryRepository, c8 as ALL_ACTIONS, c7 as AccessLevel, cA as ActivityTab, bO as AddAttribute, gC as AddAttributeInput, bn as AdvancedFilterState, ck as AssignRoleInput, g1 as AttributeChange, bN as AttributeMap, bJ as AttributeSchema, gf as AttributesRepository, av as AuditAction, aw as AuditActorType, ax as AuditChange, aA as AuditListOptions, ay as AuditLogEntry, gg as AuditRepository, au as AuditResourceType, hS as AuditService, aB as AuditServiceOptions, gy as BaseRepository, gx as BaseService, B as BoundingBox, er as CacheAdapter, ep as CacheKeyType, es as CacheOptions, cG as CalendarViewConfig, cK as CalendarViewDefinition, dr as CanvasViewport, b9 as CheckboxFilterOperator, fu as ConditionExecutor, d3 as ConditionNode, di as ConditionOperator, cN as ConfigOverrides, ap as CreateAIMessageInput, az as CreateAuditLogInput, gB as CreateCustomObjectInput, iO as CreateDBAttribute, iK as CreateDBObject, i_ as CreateDBView, j2 as CreateDBViewOverlay, j5 as CreateDBWorkflow, je as CreateDBWorkflowAccessGrant, j8 as CreateDBWorkflowInstance, jb as CreateDBWorkflowInvitation, aU as CreateDocument, aG as CreateDocumentGenerationTemplate, aY as CreateDocumentSlot, aW as CreateDocumentTemplate, b5 as CreateFile, dO as CreateGrantInput, hw as CreateGrantResult, dH as CreateInvitationInput, dI as CreateInvitationResult, iR as CreateObjectRecord, cj as CreatePermissionInput, a_ as CreateProcessingJob, i5 as CreateRecordDocumentInput, i6 as CreateRecordDocumentResult, ch as CreateRoleInput, z as CreateSignatureInput, cq as CreateUserProfile, ig as CreateViewInput, hJ as CreateWorkflowInput, bg as CurrencyFilterValue, bS as CustomAttributeValue, cz as CustomTab, iN as DBAttribute, iJ as DBObject, iZ as DBView, j1 as DBViewOverlay, j4 as DBWorkflow, jd as DBWorkflowAccessGrant, j7 as DBWorkflowInstance, ja as DBWorkflowInvitation, iA as DEFAULT_LABEL_FALLBACK, e7 as DEFAULT_THEME, ei as DatabaseAdapter, ba as DateFilterOperator, cF as DetailViewConfig, aN as Document, aK as DocumentAutoProcessing, X as DocumentData, fv as DocumentExecutor, hV as DocumentGenerationNotConfiguredError, hW as DocumentGenerationService, aF as DocumentGenerationTemplate, gh as DocumentGenerationTemplateListOptions, hU as DocumentGenerationTemplateNotFoundError, gi as DocumentGenerationTemplatesRepository, gj as DocumentJobsRepository, b0 as DocumentListOptions, d4 as DocumentNode, hX as DocumentProcessingConfig, hq as DocumentProcessingHook, hp as DocumentProcessingHookOptions, hY as DocumentProcessingService, i0 as DocumentRenderError, h_ as DocumentRendererOptions, i2 as DocumentRendererService, i8 as DocumentService, i7 as DocumentServiceOptions, aP as DocumentSlot, aJ as DocumentSlotDefinition, gk as DocumentSlotsRepository, aO as DocumentStatus, b1 as DocumentTemplateListOptions, i3 as DocumentTemplateService, gm as DocumentTemplatesRepository, gl as DocumentsRepository, cD as DocumentsTab, ce as EffectivePermissions, fw as EndExecutor, d5 as EndNode, eO as EvaluationResult, eP as EvaluationTrace, fi as ExecutorCompleteResult, fj as ExecutorContext, fk as ExecutorErrorResult, fr as ExecutorRegistry, fl as ExecutorResult, fm as ExecutorSuccessResult, fn as ExecutorWaitResult, bk as ExtendedFilterRule, c0 as ExtractAttributes, c2 as ExtractObjectRecord, c3 as ExtractObjectRecordWithCustom, bW as ExtractRecord, bY as ExtractRecordInput, bZ as ExtractRecordInputStrict, bX as ExtractRecordStrict, b_ as ExtractRecordUpdate, b$ as ExtractRecordUpdateStrict, aM as ExtractionField, aL as ExtractionMapping, f0 as FeatureFlagsContext, eU as FeatureFlagsContextError, ex as FetchResult, b4 as File, il as FileContent, iY as FileListOptions, ia as FileService, i9 as FileServiceOptions, b3 as FileVisibility, gn as FilesRepository, bl as FilterCombinator, bm as FilterGroup, be as FilterOperator, bj as FilterRule, bi as FilterValue, bz as FlowDefinition, bw as FlowPage, bx as FlowRelation, bv as FlowRowField, bu as FlowSlot, by as FlowStatus, cC as FlowsTab, d_ as FormContextResponse, cu as FormDensity, fx as FormExecutor, d$ as FormFieldContext, d6 as FormFieldRef, e0 as FormFieldRow, d7 as FormNode, e1 as FormNodeInfo, cv as FormTab, ey as FormattedRecord, h1 as FormulaResolverService, h0 as FormulaResolverServiceOptions, fL as FormulaResult, iy as FullSyncOptions, ix as FullSyncResult, cI as GalleryViewConfig, cM as GalleryViewDefinition, dV as GeneratedDocument, bH as GeocodingAdapter, bE as GeocodingAutocompleteParams, bG as GeocodingParams, ib as GeocodingService, bD as GeocodingSuggestion, gR as GetRelationOptionsParams, ij as GetViewOptions, ii as GetViewsOptions, iV as GlobalSearchGroupedOptions, iX as GlobalSearchGroupedResult, iU as GlobalSearchOptions, iW as GlobalSearchResultItem, ic as GlobalSearchService, hs as GrantExpiredError, hr as GrantNotFoundError, ht as GrantRevokedError, hv as GrantServiceConfig, ez as GroupedFetchResult, g2 as HookContext, g3 as HookDefinition, g4 as HookHandler, g7 as HookRegistry, g5 as HookType, gY as HybridRelationValue, P as IdentityVerificationAdapter, bP as InferRecord, bK as InferRecordFromSchema, bQ as InferRecordInput, bR as InferRecordUpdate, bL as InferRecordWithRequirements, eA as InsertOptions, fP as InvalidPathError, cx as InverseSource, hF as InvitationAlreadyAcceptedError, hE as InvitationExpiredError, hD as InvitationNotFoundError, hG as InvitationRevokedError, hC as InvitationServiceConfig, dJ as InvitationStatus, cs as InviteUserInput, ek as JwtVerificationResult, hg as LabelResolver, iS as ListOptions, cE as ListViewLayout, el as MagicLinkPayload, fQ as MaxDepthExceededError, g9 as MockStores, gW as MultiRelationValue, bc as MultiselectFilterOperator, bs as NO_VALUE_OPERATORS, br as NoValueOperator, fo as NodeExecutor, ds as NodePosition, ew as NoopCacheAdapter, bI as NoopGeocodingAdapter, g6 as NoopHookRegistry, b8 as NumberFilterOperator, bq as OPERATORS_BY_TYPE, c5 as ObjectAction, cf as ObjectPermissions, go as ObjectRecordsRepository, gF as ObjectSchemaService, gE as ObjectSchemaServiceOptions, gp as ObjectsRepository, O as OcrAdapter, t as OcrInput, u as OcrOptions, w as OcrPage, v as OcrResult, x as OcrTextBlock, jg as OperationResult, fU as PathCardinality, fV as PathSegment, fW as PathSegmentType, aD as PdfTemplateField, dz as PendingAction, aI as PendingDocumentRequest, cc as Permission, c4 as PermissionScope, ie as PermissionService, id as PermissionServiceOptions, gq as PermissionsRepository, bh as PhoneFilterValue, cl as PolicyContext, gb as PolicyRegistry, cn as PolicyViolationError, aR as ProcessingJob, aT as ProcessingJobStatus, aS as ProcessingJobType, eM as QueryBuilder, eN as QueryBuilderOptions, eB as QueryBuilderState, eI as QueryMultipleResultsError, eJ as QueryNoResultError, gJ as QueryOptions, gL as QueryResult, bp as QueryState, e2 as ReadOnlyReason, a5 as ReasoningPartData, i4 as RecordDocumentsResult, bU as RecordMetadata, cm as RecordPolicy, gM as RecordQueryService, gI as RecordQueryServiceOptions, g_ as RecordResolverService, gH as RecordService, gG as RecordServiceOptions, eC as RegistryMap, eD as RegistryObjectNames, ed as RelationAttributeInput, ee as RelationAttributeRow, ef as RelationAttributesRepository, bd as RelationFilterOperator, iH as RelationLabelResolver, gP as RelationOption, gQ as RelationOptionsResponse, gZ as RelationPropertiesService, gV as RelationService, gS as RelationServiceOptions, cw as RelationSource, gO as RelationValidationError, gN as RelationValidationResult, bf as RelativeDateValue, hZ as RenderDocumentInput, h$ as RenderDocumentResult, gT as ResolveIdsBatchRequest, gU as ResolveIdsBatchResponse, g$ as ResolvedRelations, hz as ResumeWorkflowInput, bF as ReverseGeocodingParams, cB as RichtextTab, cb as Role, ho as RollupCascadeContext, h2 as RollupResult, h6 as RollupScheduler, h5 as RollupSchedulerOptions, h4 as RollupService, h3 as RollupServiceOptions, eK as SHORTCUT_TO_FILTER_OPERATOR, eg as SORTABLE_ATTRIBUTE_TYPES, f8 as SchemaContext, gz as SchemaContextAware, gA as SchemaContextAwareRepository, fX as SchemaResolver, eh as SearchAdapter, iT as SearchOptions, gK as SearchQueryOptions, bb as SelectFilterOperator, eE as ShortcutOperator, y as SignatureAdapter, H as SignaturePosition, J as SignatureRequestResult, N as SignatureStatus, K as SignatureStatusResult, ip as SignedUrlOptions, E as SignerRequest, M as SignerStatus, gX as SingleRelationValue, aQ as SlotStatus, bo as SortDirection, fy as StartExecutor, d8 as StartNode, hy as StartWorkflowInput, iq as StorageAdapter, i1 as StorageDownloadNotSupportedError, b2 as StorageProvider, im as StorageUploadInput, io as StorageUploadResult, it as SyncOptions, is as SyncResult, c6 as SystemAction, bV as SystemFields, cg as SystemPermissions, ct as TabType, cy as TableSource, aE as TemplateSource, ff as TenantContext, eT as TenantContextError, b7 as TextFilterOperator, a2 as TextPartData, e4 as ThemeColors, e5 as ThemeLogo, e6 as ThemeTypography, a4 as ThinkingPartData, cH as TimelineViewConfig, cL as TimelineViewDefinition, hu as TokenRevokedError, a3 as ToolPartData, f$ as TraversalOptions, g0 as TraversalResult, bM as TypedAttribute, c1 as TypedObjectRecord, iP as UpdateDBAttribute, iL as UpdateDBObject, i$ as UpdateDBView, j3 as UpdateDBViewOverlay, j6 as UpdateDBWorkflow, jf as UpdateDBWorkflowAccessGrant, j9 as UpdateDBWorkflowInstance, jc as UpdateDBWorkflowInvitation, aV as UpdateDocument, aH as UpdateDocumentGenerationTemplate, aZ as UpdateDocumentSlot, aX as UpdateDocumentTemplate, b6 as UpdateFile, gD as UpdateObjectInput, a$ as UpdateProcessingJob, ci as UpdateRoleInput, cr as UpdateUserProfile, ih as UpdateViewInput, hK as UpdateWorkflowInput, ir as UploadFileInput, iQ as UpsertDBAttribute, iM as UpsertDBObject, j0 as UpsertDBView, cp as UserProfile, hR as UserProfileService, hQ as UserProfileServiceOptions, gr as UserProfilesRepository, cd as UserRoleAssignment, hP as UserService, co as UserStatus, hO as UserValidationError, hN as UserValidationResult, aC as VariableMapping, Y as VerificationCheck, U as VerificationResult, Q as VerifyInput, cJ as ViewConfig, cO as ViewOverlay, ec as ViewOverlaysRepository, ik as ViewService, ji as ViewSyncLogger, jj as ViewSyncOptions, jh as ViewSyncResult, gs as ViewsRepository, bT as WithCustomAttributes, dP as WorkflowAccessGrant, hx as WorkflowAccessGrantService, gt as WorkflowAccessGrantsRepository, e3 as WorkflowAccessMode, em as WorkflowAccessPayload, dA as WorkflowError, dW as WorkflowExecutionContext, dB as WorkflowInstance, hB as WorkflowInstanceService, hA as WorkflowInstanceServiceOptions, gu as WorkflowInstancesRepository, dK as WorkflowInvitation, hH as WorkflowInvitationService, gv as WorkflowInvitationsRepository, en as WorkflowJwtConfig, eo as WorkflowJwtPayload, ej as WorkflowJwtService, dt as WorkflowLayout, d9 as WorkflowNodeType, hI as WorkflowRelationService, hM as WorkflowService, hL as WorkflowServiceOptions, du as WorkflowSlot, dv as WorkflowStatus, dC as WorkflowTransition, gw as WorkflowsRepository, ca as accessLevelToActions, c9 as actionsToAccessLevel, f1 as addSchemaToContext, dj as and, h7 as applyDefaultValues, hT as buildAuditChanges, ha as buildPolicyContext, et as cacheKeys, eu as cacheTtl, dQ as canAccessNode, dD as canResumeInstance, h8 as checkPermission, hb as checkRecordAccess, hd as checkRecordDeleteOrThrow, hc as checkRecordModifyOrThrow, he as checkSharedObjectWriteAccess, fp as complete, hf as computeLabel, iI as computeLabelWithRelations, hj as createContextForCreate, hl as createContextForDelete, hm as createContextForRestore, hk as createContextForUpdate, fg as createDefaultExecutorRegistry, eF as createDefaultState, dX as createEmptyContext, g8 as createMockAdapter, eL as createQueryBuilder, dE as createStartTransition, ga as defaultPolicyRegistry, ev as defaultTtl, hi as enrichRecordsWithFormulas, iE as enrichValuesForDisplay, iF as enrichValuesWithSelectLabels, hh as enrichWithFormulas, dk as eq, fq as error, eR as evaluate, eQ as evaluateCondition, fz as evaluateFormula, fA as evaluateFormulaAttribute, fB as evaluateFormulaAttributeWithRelations, fC as evaluateFormulaWithRelations, fD as evaluateFormulaWithResult, eS as evaluateWithTrace, iD as extractAttributeNames, fE as extractFormulaVariables, iG as extractRelationIds, fF as extractRelationNames, fG as extractRelationReferences, fH as flattenRelationsForEval, fI as formatFormulaResult, eG as formatRecord, eH as formatRecords, e8 as generateCssVariables, f9 as getContext, dY as getContextValue, fh as getDefaultExecutorRegistry, eV as getFeatureFlags, eW as getFeatureValue, da as getNodeOutputs, fM as getPathDepth, h9 as getPolicy, fN as getRelationPath, f2 as getSchemaByNameFromContext, f3 as getSchemaContext, f4 as getSchemaFromContext, iw as getSyncPreview, fO as getTargetAttributeName, fa as getTenantId, fb as getUserId, jo as getViewSeedPreview, jp as getViewSyncPreview, fc as hasContext, eX as hasFeatureFlagsContext, fJ as hasRelationReferences, f5 as hasSchemaContext, eq as hashOptions, dl as inValues, c$ as isActivityTab, db as isAdvancedFormNode, cR as isCalendarView, dm as isConditionGroup, dc as isConditionNode, dn as isConditionRule, c_ as isCustomTab, cP as isDetailView, dd as isDocumentNode, d2 as isDocumentsTab, de as isEndNode, eY as isFeatureEnabled, cU as isFieldGroup, bA as isFlowDefinition, bB as isFlowPublished, d1 as isFlowsTab, df as isFormNode, cW as isFormTab, cT as isGalleryView, dR as isGrantExpired, dS as isGrantRevoked, dT as isGrantValid, dF as isInstanceTerminal, dG as isInstanceWaiting, cZ as isInverseSourceTab, dL as isInvitationAccepted, dM as isInvitationExpired, dN as isInvitationValid, iC as isLabelExpression, cQ as isListView, bt as isNoValueOperator, cV as isRelationGroup, cY as isRelationSourceTab, d0 as isRichtextTab, dg as isSimpleFormNode, dh as isStartNode, bC as isSystemFlow, dw as isSystemWorkflow, cX as isTableTab, cS as isTimelineView, dU as isTokenRevoked, dx as isWorkflowDefinition, dy as isWorkflowPublished, e9 as mergeWithDefaults, dp as neq, dq as or, fR as parsePath, fS as pathHasManyCardinality, hn as recalculateParentRollups, ea as registry, iB as renderLabelExpression, fY as resolveMultiplePaths, fZ as resolveSingleValue, fd as runWithContext, eZ as runWithFeatureFlags, f6 as runWithMergedSchemaContext, f7 as runWithSchemaContext, jk as seedRegistryViews, dZ as setContextValue, fs as success, iz as syncAll, iu as syncNativeObjects, jl as syncNativeViews, f_ as traversePath, e_ as tryGetFeatureValue, fK as validateFormulaExpression, fT as validatePath, iv as verifyNativeObjectsSync, jn as verifyNativeViewsSync, jm as verifyRegistryViewsSeeded, eb as viewRegistry, ft as wait, e$ as withFeatureFlags, fe as withTenantContext } from './runtime-BOHwdAGE.js';
|
|
3
|
+
import { D as DateAttribute, U as UserAttribute, a as DocumentAttribute, A as Attribute, P as Phone, F as FeatureGate, T as TextAttribute, b as TextAreaAttribute, R as RichtextAttribute, c as RichtextFeature, N as NumberAttribute, C as CheckboxAttribute, d as PhoneAttribute, e as CurrencyAttribute, O as Option, S as StatusAttribute, f as SelectAttribute, M as MultiselectAttribute, L as LocationAttribute, g as FileAttribute, h as RatingAttribute, i as RelationAttribute, B as BilateralConfig, j as SingleRelationAttribute, k as MultiRelationAttribute, l as RelationTarget, m as FormulaAttribute, n as FormulaReturnType, o as RollupAttribute, p as RollupFunction, q as AttributeType, r as ObjectDefinition, s as FlagValueType, t as FeatureFlagDefinition, u as FlagLevel, v as FeatureFlagsRepository, w as StaticFlagDefault, x as ResolvedFlag } from './validators-BxPuQ2GT.js';
|
|
4
|
+
export { z as AttributeGroup, E as BaseAttribute, a8 as CompletionStatus, J as Currency, ah as DEFAULT_VALIDATION_MESSAGES, H as DateFormat, I as DateValue, ab as FORBIDDEN_PROPERTY_TYPES, a0 as FeatureFlagsConfig, $ as FlagOverride, ac as ForbiddenPropertyType, K as Location, Q as LocationGranularity, Z as NON_SORTABLE_TYPES, G as NumberUnit, a7 as ObjectAttribute, a9 as ObjectRecord, ad as PropertyAttribute, ae as PropertySchema, aa as PropertyType, V as RELATION_TARGET_ANY, a1 as RESERVED_ATTRIBUTE_NAMES, a3 as ReservedAttributeName, a2 as SYSTEM_FIELD_NAMES, a6 as SharingMode, y as StatusGroup, a4 as SystemFieldName, a5 as Timestamps, ag as ValidationMessages, b1 as ValidationResult, aB as attributeConfigSchemas, am as checkboxConfigSchema, ba as computeRecordStatus, a_ as createAttributeValidator, aI as createCheckboxValidator, aL as createCurrencyValidator, aJ as createDateValidator, b5 as createDraftValidator, aQ as createFileValidator, a$ as createFormAttributeValidator, aW as createFormulaValidator, aP as createLocationValidator, aT as createMultiRelationValidator, aO as createMultiselectValidator, aH as createNumberValidator, b0 as createObjectValidator, aK as createPhoneValidator, aV as createRatingValidator, aU as createRelationValidator, aZ as createRichtextValidator, aX as createRollupValidator, aN as createSelectValidator, aS as createSingleRelationValidator, aM as createStatusValidator, aY as createTextAreaValidator, aG as createTextValidator, aR as createUserValidator, ap as currencyConfigSchema, an as dateConfigSchema, aA as documentConfigSchema, au as fileConfigSchema, af as formatZodErrors, ay as formulaConfigSchema, aC as getAttributeConfigSchema, b8 as getMissingRequiredAttributes, Y as inferInverseCardinality, _ as isAttributeSortable, X as isBilateralRelation, b9 as isRecordComplete, W as isUniversalRelation, ar as locationConfigSchema, at as multiselectConfigSchema, al as numberConfigSchema, aE as parseAttributeConfig, ao as phoneConfigSchema, ax as ratingConfigSchema, aw as relationConfigSchema, ak as richtextConfigSchema, az as rollupConfigSchema, aF as safeParseAttributeConfig, as as selectConfigSchema, aq as statusConfigSchema, ai as textConfigSchema, aj as textareaConfigSchema, av as userConfigSchema, b2 as validateAttribute, aD as validateAttributeConfig, b6 as validateDraft, b7 as validateDraftOrThrow, b3 as validateObject, b4 as validateObjectOrThrow } from './validators-BxPuQ2GT.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export { TenantId, UserId, Uuid, asTenantId, asUserId, generateId, generatePrefixedId, generateTemplateName, indexBy, slugify } from './utils.js';
|
|
7
7
|
import { CountryIso3, IconName, CurrencyCode, MimeType, ColorId } from '@stndrds/constants';
|
|
@@ -1278,18 +1278,10 @@ declare function applyRelationProps(label: string, props: Record<string, unknown
|
|
|
1278
1278
|
* System resources that can be managed through permissions.
|
|
1279
1279
|
*/
|
|
1280
1280
|
declare const SYSTEM_RESOURCES: {
|
|
1281
|
-
/** User profiles and
|
|
1282
|
-
readonly
|
|
1283
|
-
/** Object definitions and
|
|
1284
|
-
readonly
|
|
1285
|
-
/** Roles and permissions management */
|
|
1286
|
-
readonly ROLES: "roles";
|
|
1287
|
-
/** Tenant settings and configuration */
|
|
1288
|
-
readonly SETTINGS: "settings";
|
|
1289
|
-
/** Audit logs and activity trail */
|
|
1290
|
-
readonly AUDIT: "audit";
|
|
1291
|
-
/** File uploads and storage management */
|
|
1292
|
-
readonly FILES: "files";
|
|
1281
|
+
/** User profiles, invitations, roles and permissions management */
|
|
1282
|
+
readonly PEOPLE: "people";
|
|
1283
|
+
/** Object definitions, attributes, tenant settings and audit logs */
|
|
1284
|
+
readonly WORKSPACE: "workspace";
|
|
1293
1285
|
};
|
|
1294
1286
|
/**
|
|
1295
1287
|
* All system resources as an array (for iteration)
|
|
@@ -1304,11 +1296,9 @@ declare const SYSTEM_RESOURCE_LABELS: Record<SystemResource, string>;
|
|
|
1304
1296
|
*/
|
|
1305
1297
|
declare const DEFAULT_ROLES: {
|
|
1306
1298
|
/** Full platform access - can manage everything */
|
|
1307
|
-
readonly
|
|
1308
|
-
/** Standard user - can work with business data
|
|
1299
|
+
readonly OWNER: "owner";
|
|
1300
|
+
/** Standard user - can work with business data and view people */
|
|
1309
1301
|
readonly MEMBER: "member";
|
|
1310
|
-
/** Read-only access - can view but not modify */
|
|
1311
|
-
readonly GUEST: "guest";
|
|
1312
1302
|
};
|
|
1313
1303
|
type DefaultRoleName = (typeof DEFAULT_ROLES)[keyof typeof DEFAULT_ROLES];
|
|
1314
1304
|
/**
|
|
@@ -1324,29 +1314,32 @@ declare const DEFAULT_ROLE_DESCRIPTIONS: Record<DefaultRoleName, string>;
|
|
|
1324
1314
|
* Used when initializing a new tenant.
|
|
1325
1315
|
*/
|
|
1326
1316
|
interface DefaultRolePermissionConfig {
|
|
1327
|
-
/** System resource permissions (
|
|
1317
|
+
/** System resource permissions (people, workspace) */
|
|
1328
1318
|
system: Array<{
|
|
1329
1319
|
target: SystemResource | "*";
|
|
1330
|
-
actions:
|
|
1320
|
+
actions: Action[];
|
|
1331
1321
|
}>;
|
|
1332
1322
|
/** Object permissions (business data) */
|
|
1333
1323
|
object: Array<{
|
|
1334
1324
|
target: string;
|
|
1335
|
-
actions:
|
|
1325
|
+
actions: Action[];
|
|
1336
1326
|
}>;
|
|
1337
1327
|
}
|
|
1338
1328
|
/**
|
|
1339
1329
|
* Default permissions for each built-in role.
|
|
1340
1330
|
*
|
|
1341
|
-
* - **
|
|
1342
|
-
* - **member**:
|
|
1343
|
-
* - **guest**: No system access, read-only on objects
|
|
1331
|
+
* - **owner**: Full access to everything (system + objects)
|
|
1332
|
+
* - **member**: Read-only people access, full CRUD on objects
|
|
1344
1333
|
*/
|
|
1345
1334
|
declare const DEFAULT_ROLE_PERMISSIONS: Record<DefaultRoleName, DefaultRolePermissionConfig>;
|
|
1346
1335
|
/**
|
|
1347
1336
|
* Check if a role name is a default/built-in role
|
|
1348
1337
|
*/
|
|
1349
1338
|
declare function isDefaultRole(roleName: string): roleName is DefaultRoleName;
|
|
1339
|
+
/**
|
|
1340
|
+
* Check if a role name is the admin/owner role (full platform access).
|
|
1341
|
+
*/
|
|
1342
|
+
declare function isAdminRole(roleName: string): boolean;
|
|
1350
1343
|
|
|
1351
1344
|
/**
|
|
1352
1345
|
* Error codes for schema exceptions
|
|
@@ -2172,6 +2165,10 @@ declare class DocumentAttributeBuilder<TName extends string, TRequired extends b
|
|
|
2172
2165
|
* Mark this attribute as required.
|
|
2173
2166
|
*/
|
|
2174
2167
|
required(): DocumentAttributeBuilder<TName, true>;
|
|
2168
|
+
/**
|
|
2169
|
+
* Mark this attribute as optional (undo required).
|
|
2170
|
+
*/
|
|
2171
|
+
optional(): DocumentAttributeBuilder<TName, false>;
|
|
2175
2172
|
}
|
|
2176
2173
|
/**
|
|
2177
2174
|
* Create a document attribute.
|
|
@@ -2464,7 +2461,7 @@ declare class GroupBuilder {
|
|
|
2464
2461
|
build(): FieldGroup;
|
|
2465
2462
|
}
|
|
2466
2463
|
/**
|
|
2467
|
-
* Builder for creating relation groups
|
|
2464
|
+
* Builder for creating relation groups inside a form tab
|
|
2468
2465
|
*
|
|
2469
2466
|
* @example
|
|
2470
2467
|
* ```typescript
|
|
@@ -3631,7 +3628,7 @@ declare abstract class BaseFlagBuilder<T, TValueType extends FlagValueType> {
|
|
|
3631
3628
|
allowedLevels(levels: FlagLevel[]): this;
|
|
3632
3629
|
/**
|
|
3633
3630
|
* Build the flag definition.
|
|
3634
|
-
* @throws {Error} If label is not set
|
|
3631
|
+
* @throws {Error} If label is not set or is whitespace-only
|
|
3635
3632
|
*/
|
|
3636
3633
|
build(): FeatureFlagDefinition<T>;
|
|
3637
3634
|
}
|
|
@@ -3788,8 +3785,10 @@ declare class FlagRegistry {
|
|
|
3788
3785
|
register<T>(flag: FeatureFlagDefinition<T>): void;
|
|
3789
3786
|
/**
|
|
3790
3787
|
* Register multiple flags at once.
|
|
3788
|
+
* This operation is atomic - either all flags are registered or none are.
|
|
3791
3789
|
*
|
|
3792
3790
|
* @param flags - Array of flag definitions to register
|
|
3791
|
+
* @throws {Error} If any flag name conflicts with existing or duplicate within batch
|
|
3793
3792
|
*/
|
|
3794
3793
|
registerAll(flags: FeatureFlagDefinition[]): void;
|
|
3795
3794
|
/**
|
|
@@ -4206,4 +4205,4 @@ declare function getSystemTemplate(name: string): DocumentTemplate | undefined;
|
|
|
4206
4205
|
*/
|
|
4207
4206
|
declare function isSystemTemplate(name: string): boolean;
|
|
4208
4207
|
|
|
4209
|
-
export { ALL_SYSTEM_RESOURCES, ActivityTabConfig, type AgentContentPart, type AgentMessage, type AnyAttributeBuilder, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, AuthMethodSchema, BEHAVIOR_PROPERTIES, type BehaviorProperty, BilateralConfig, type BilateralValidationError, type BilateralValidationResult, type BuilderConfig, type ChatFileAttachment, CheckboxAttribute, ConcurrentModificationError, ConditionGroup, ConditionGroupSchema, ConditionNodeSchema, ConditionOperatorSchema, ConditionRule, ConditionRuleSchema, CreateMode, CreateShareInputSchema, CurrencyAttribute, CustomTabConfig, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DRIVING_LICENSE, DateAttribute, type DefaultRoleName, type DefaultRolePermissionConfig, DetailViewBuilder, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentNodeSchema, DocumentTemplate, DocumentsTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, EndNodeSchema, type ExtractAttributeName, type ExtractAttributeRequired, FRENCH_ID_CARD, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, 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, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, LocationAttribute, MultiRelationAttribute, MultiselectAttribute, NodePositionSchema, NotFoundError, NotSystemObjectError, NumberAttribute,
|
|
4208
|
+
export { ALL_SYSTEM_RESOURCES, Action, ActivityTabConfig, type AgentContentPart, type AgentMessage, type AnyAttributeBuilder, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, AuthMethodSchema, BEHAVIOR_PROPERTIES, type BehaviorProperty, BilateralConfig, type BilateralValidationError, type BilateralValidationResult, type BuilderConfig, type ChatFileAttachment, CheckboxAttribute, ConcurrentModificationError, ConditionGroup, ConditionGroupSchema, ConditionNodeSchema, ConditionOperatorSchema, ConditionRule, ConditionRuleSchema, CreateMode, CreateShareInputSchema, CurrencyAttribute, CustomTabConfig, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DRIVING_LICENSE, DateAttribute, type DefaultRoleName, type DefaultRolePermissionConfig, DetailViewBuilder, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentNodeSchema, DocumentTemplate, DocumentsTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, EndNodeSchema, type ExtractAttributeName, type ExtractAttributeRequired, FRENCH_ID_CARD, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, 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, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, LocationAttribute, MultiRelationAttribute, MultiselectAttribute, NodePositionSchema, NotFoundError, NotSystemObjectError, NumberAttribute, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, ObjectReferencedError, Option, PASSPORT, PRESENTATION_PROPERTIES, PROOF_OF_ADDRESS, Phone, PhoneAttribute, type PhoneNormalizationResult, type PresentationProperty, type PropertyAttributeBuilder, ProtectedResourceError, ProtectedRoleError, RatingAttribute, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationAttribute, RelationGroup, RelationGroupBuilder, RelationTarget, type ResetViewOptions, ResolvedFlag, type ResumeWorkflowApiInput, RichtextAttribute, RichtextFeature, RichtextTabConfig, RoleNotFoundError, RollupAttribute, RollupFunction, SIGNABLE_CONTRACT, SYSTEM_ATTRIBUTES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SYSTEM_TEMPLATES, SYSTEM_TEMPLATE_IDS, SchemaError, SchemaErrorCode, SelectAttribute, ShareStatusSchema, SidePanelConfig, SingleRelationAttribute, SlotMode, SlotModeSchema, SortRule, StartNodeSchema, type StartWorkflowApiInput, StaticFlagDefault, StatusAttribute, SyncError, type SystemAttribute, type SystemAttributeName, SystemResource, Tab, TabBuilder, TableTab, TableTabConfig, 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, applyRelationProps, booleanFlag, checkbox, createFlagRegistry, createFlagService, currency, date, detailView, document, file, flagRegistry, formatAttributeValue, formatPhoneForDisplay, formula, generateDefaultDetailView, generateDefaultListView, generateFallbackView, getActiveTab, getErrorMessage, getSystemAttributeList, getSystemTemplate, group, hasProperties, isAdminRole, isBehaviorProperty, isDefaultRole, isEmpty, isForbiddenError, isIdentityProperty, isInstanceEvent, isInvitationOrGrantEvent, isNodeEvent, isNotEmpty, isNotFoundError, isPresentationProperty, isProtectedResourceError, isSchemaError, isSystemAttribute, isSystemAttributeObject, isSystemTemplate, isValidationError, isViewCustomized, jsonFlag, listView, location, multiselect, normalizePhoneNumber, number, numberFlag, object, parseRawPhoneInput, phone, rating, relation, relationGroup, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validatePhoneNumber, view, workflow };
|