@stndrds/schema 1.0.0-alpha.176 → 1.0.0-alpha.178

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.
Files changed (49) hide show
  1. package/dist/{filters-B9Pjped4.d.mts → filters-DdEBxdbQ.d.mts} +1 -1
  2. package/dist/{filters-B2cCCbDq.d.ts → filters-HhqIAngv.d.ts} +1 -1
  3. package/dist/{helpers-YWZowk1B.d.mts → helpers-Cty43yIT.d.mts} +2 -2
  4. package/dist/{helpers-icxxQQJQ.d.ts → helpers-Dsf49fWz.d.ts} +2 -2
  5. package/dist/index.d.mts +15 -110
  6. package/dist/index.d.ts +15 -110
  7. package/dist/index.js +14 -16
  8. package/dist/index.mjs +15 -16
  9. package/dist/{types-DGGecyHV.d.ts → types-BSwM9PXc.d.ts} +1 -1
  10. package/dist/{types-DqpxKOcD.d.mts → types-CUcTlTkE.d.mts} +1 -1
  11. package/dist/validation/all.d.mts +3 -3
  12. package/dist/validation/all.d.ts +3 -3
  13. package/dist/validation/complex/currency.d.mts +2 -2
  14. package/dist/validation/complex/currency.d.ts +2 -2
  15. package/dist/validation/complex/file.d.mts +2 -2
  16. package/dist/validation/complex/file.d.ts +2 -2
  17. package/dist/validation/complex/location.d.mts +2 -2
  18. package/dist/validation/complex/location.d.ts +2 -2
  19. package/dist/validation/complex/phone.d.mts +2 -2
  20. package/dist/validation/complex/phone.d.ts +2 -2
  21. package/dist/validation/complex/relation.d.mts +2 -2
  22. package/dist/validation/complex/relation.d.ts +2 -2
  23. package/dist/validation/complex/richtext.d.mts +2 -2
  24. package/dist/validation/complex/richtext.d.ts +2 -2
  25. package/dist/validation/complex/select.d.mts +2 -2
  26. package/dist/validation/complex/select.d.ts +2 -2
  27. package/dist/validation/complex/user.d.mts +2 -2
  28. package/dist/validation/complex/user.d.ts +2 -2
  29. package/dist/validation/computed/formula.d.mts +2 -2
  30. package/dist/validation/computed/formula.d.ts +2 -2
  31. package/dist/validation/computed/rollup.d.mts +2 -2
  32. package/dist/validation/computed/rollup.d.ts +2 -2
  33. package/dist/validation/config/index.d.mts +1 -1
  34. package/dist/validation/config/index.d.ts +1 -1
  35. package/dist/validation/core/index.d.mts +3 -3
  36. package/dist/validation/core/index.d.ts +3 -3
  37. package/dist/validation/object/index.d.mts +3 -3
  38. package/dist/validation/object/index.d.ts +3 -3
  39. package/dist/validation/primitives/checkbox.d.mts +2 -2
  40. package/dist/validation/primitives/checkbox.d.ts +2 -2
  41. package/dist/validation/primitives/date.d.mts +2 -2
  42. package/dist/validation/primitives/date.d.ts +2 -2
  43. package/dist/validation/primitives/number.d.mts +2 -2
  44. package/dist/validation/primitives/number.d.ts +2 -2
  45. package/dist/validation/primitives/rating.d.mts +2 -2
  46. package/dist/validation/primitives/rating.d.ts +2 -2
  47. package/dist/validation/primitives/text.d.mts +2 -2
  48. package/dist/validation/primitives/text.d.ts +2 -2
  49. package/package.json +2 -2
@@ -1575,4 +1575,4 @@ declare function isNoValueOperator(operator: FilterOperator): operator is NoValu
1575
1575
  */
1576
1576
  declare function getRollupFilterOperators(attr: RollupAttribute): readonly FilterOperator[];
1577
1577
 
1578
- export { type RelationGroup as $, type Attribute as A, type FormulaReturnType as B, type CurrencyAttribute as C, type DateAttribute as D, type BilateralConfig as E, type FileAttribute as F, type RelationTarget as G, type RichtextFeature as H, type RollupFunction as I, type MigrationDefinition as J, type DetailViewConfig as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type DetailViewDefinition as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAreaAttribute as T, type UserAttribute as U, type ViewType as V, type DetailViewLayout as W, type SidePanelConfig as X, type Field as Y, type AttributeGroupField as Z, type FieldGroup as _, type RichtextAttribute as a, type RelativeDateValue as a$, type Group as a0, type TableTab as a1, type CreateMode as a2, type Tab as a3, type ListViewConfig as a4, type ListViewDefinition as a5, type FlagValueType as a6, type FeatureFlagDefinition as a7, type FlagLevel as a8, type FeatureFlagsRepository as a9, type FilterCombinator as aA, type FilterGroup as aB, type FilterRule as aC, type FlagOverride as aD, type FormDensity as aE, type FormTab as aF, type FormsTab as aG, type InverseSource as aH, type ListViewLayout as aI, type MigrationError as aJ, NO_VALUE_OPERATORS as aK, type NoValueOperator as aL, type NumberUnit as aM, OPERATORS_BY_TYPE as aN, type ObjectAttribute as aO, type OptionPropertyAttribute as aP, type PhoneFilterValue as aQ, type ProcessingJob as aR, type ProcessingJobStatus as aS, type ProcessingJobType as aT, type PropertyAttribute as aU, type PropertyType as aV, type QueryState as aW, RELATION_TARGET_ANY as aX, RESERVED_ATTRIBUTE_NAMES as aY, type RecordDocuments as aZ, type RelationSource as a_, type StaticFlagDefault as aa, type ResolvedFlag as ab, type ViewDefinition as ac, type ListViewTab as ad, type FilterOperator as ae, type FilterValue as af, type ActivityTab as ag, type AdvancedFilterState as ah, type AttributeGroup as ai, type BaseAttribute as aj, type BuiltInTransform as ak, type CreateDocument as al, type CreateDocumentSlot as am, type CreateProcessingJob as an, type CurrencyFilterValue as ao, type CustomTab as ap, DEFAULT_DOCUMENT_SLOT as aq, type DateFormat as ar, type DateValue as as, type Document as at, type DocumentListOptions as au, type DocumentSlot as av, type DocumentWithSlots as aw, type DocumentsTab as ax, type ExtendedFilterRule as ay, type FeatureFlagsConfig as az, type MultiselectAttribute as b, type ReservedAttributeName as b0, type RichtextTab as b1, SYSTEM_FIELD_NAMES as b2, type SchemaOperation as b3, type SchemaTransform as b4, type SlotStatus as b5, type SortDirection as b6, type StatusGroup as b7, type SystemFieldName as b8, type TabType as b9, type TableSource as ba, type TransformSource as bb, type UpdateDocument as bc, type UpdateDocumentSlot as bd, type UpdateProcessingJob as be, type ViewOperation as bf, type ViewOverlay as bg, type ViewTransform as bh, getRollupFilterOperators as bi, hasOptions as bj, inferInverseCardinality as bk, isAttributeSortable as bl, isBilateralRelation as bm, isDetailView as bn, isFieldGroup as bo, isListView as bp, isNoValueOperator as bq, isRelationGroup as br, isUniversalRelation as bs, type SelectAttribute as c, type StatusAttribute as d, type FormulaAttribute as e, type RollupAttribute as f, type CheckboxAttribute as g, type RatingAttribute as h, type TextAttribute as i, type CompletionStatus as j, type SortRule as k, type FilterState as l, type Timestamps as m, type AttributeType as n, type ViewConfig as o, type ConfigOverrides as p, type LocationGranularity as q, type Location as r, type DocumentAttribute as s, type Phone as t, type Currency as u, type ObjectRecord as v, type DocumentSlotConfig as w, type PropertySchema as x, type FeatureGate as y, type Option as z };
1578
+ export { type Group as $, type Attribute as A, type BilateralConfig as B, type CurrencyAttribute as C, type DateAttribute as D, type RelationTarget as E, type FileAttribute as F, type RichtextFeature as G, type RollupFunction as H, type MigrationDefinition as I, type DetailViewConfig as J, type DetailViewDefinition as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type DetailViewLayout as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAreaAttribute as T, type UserAttribute as U, type ViewType as V, type SidePanelConfig as W, type Field as X, type AttributeGroupField as Y, type FieldGroup as Z, type RelationGroup as _, type RichtextAttribute as a, type RelativeDateValue as a$, type TableTab as a0, type CreateMode as a1, type Tab as a2, type ListViewConfig as a3, type ListViewDefinition as a4, type FlagValueType as a5, type FeatureFlagDefinition as a6, type FlagLevel as a7, type FeatureFlagsRepository as a8, type StaticFlagDefault as a9, type FilterGroup as aA, type FilterRule as aB, type FlagOverride as aC, type FormDensity as aD, type FormTab as aE, type FormsTab as aF, type InverseSource as aG, type ListViewLayout as aH, type MigrationError as aI, NO_VALUE_OPERATORS as aJ, type NoValueOperator as aK, type NumberUnit as aL, OPERATORS_BY_TYPE as aM, type ObjectAttribute as aN, type ObjectRecord as aO, type OptionPropertyAttribute as aP, type PhoneFilterValue as aQ, type ProcessingJob as aR, type ProcessingJobStatus as aS, type ProcessingJobType as aT, type PropertyAttribute as aU, type PropertyType as aV, type QueryState as aW, RELATION_TARGET_ANY as aX, RESERVED_ATTRIBUTE_NAMES as aY, type RecordDocuments as aZ, type RelationSource as a_, type ResolvedFlag as aa, type ViewDefinition as ab, type ListViewTab as ac, type FilterOperator as ad, type FilterValue as ae, type ActivityTab as af, type AdvancedFilterState as ag, type AttributeGroup as ah, type BaseAttribute as ai, type BuiltInTransform as aj, type CreateDocument as ak, type CreateDocumentSlot as al, type CreateProcessingJob as am, type CurrencyFilterValue as an, type CustomTab as ao, DEFAULT_DOCUMENT_SLOT as ap, type DateFormat as aq, type DateValue as ar, type Document as as, type DocumentListOptions as at, type DocumentSlot as au, type DocumentWithSlots as av, type DocumentsTab as aw, type ExtendedFilterRule as ax, type FeatureFlagsConfig as ay, type FilterCombinator as az, type MultiselectAttribute as b, type ReservedAttributeName as b0, type RichtextTab as b1, SYSTEM_FIELD_NAMES as b2, type SchemaOperation as b3, type SchemaTransform as b4, type SlotStatus as b5, type SortDirection as b6, type StatusGroup as b7, type SystemFieldName as b8, type TabType as b9, type TableSource as ba, type TransformSource as bb, type UpdateDocument as bc, type UpdateDocumentSlot as bd, type UpdateProcessingJob as be, type ViewOperation as bf, type ViewOverlay as bg, type ViewTransform as bh, getRollupFilterOperators as bi, hasOptions as bj, inferInverseCardinality as bk, isAttributeSortable as bl, isBilateralRelation as bm, isDetailView as bn, isFieldGroup as bo, isListView as bp, isNoValueOperator as bq, isRelationGroup as br, isUniversalRelation as bs, type SelectAttribute as c, type StatusAttribute as d, type FormulaAttribute as e, type RollupAttribute as f, type CheckboxAttribute as g, type RatingAttribute as h, type TextAttribute as i, type CompletionStatus as j, type SortRule as k, type FilterState as l, type Timestamps as m, type AttributeType as n, type ViewConfig as o, type ConfigOverrides as p, type LocationGranularity as q, type Location as r, type DocumentAttribute as s, type Phone as t, type Currency as u, type DocumentSlotConfig as v, type PropertySchema as w, type FeatureGate as x, type Option as y, type FormulaReturnType as z };
@@ -1575,4 +1575,4 @@ declare function isNoValueOperator(operator: FilterOperator): operator is NoValu
1575
1575
  */
1576
1576
  declare function getRollupFilterOperators(attr: RollupAttribute): readonly FilterOperator[];
1577
1577
 
1578
- export { type RelationGroup as $, type Attribute as A, type FormulaReturnType as B, type CurrencyAttribute as C, type DateAttribute as D, type BilateralConfig as E, type FileAttribute as F, type RelationTarget as G, type RichtextFeature as H, type RollupFunction as I, type MigrationDefinition as J, type DetailViewConfig as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type DetailViewDefinition as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAreaAttribute as T, type UserAttribute as U, type ViewType as V, type DetailViewLayout as W, type SidePanelConfig as X, type Field as Y, type AttributeGroupField as Z, type FieldGroup as _, type RichtextAttribute as a, type RelativeDateValue as a$, type Group as a0, type TableTab as a1, type CreateMode as a2, type Tab as a3, type ListViewConfig as a4, type ListViewDefinition as a5, type FlagValueType as a6, type FeatureFlagDefinition as a7, type FlagLevel as a8, type FeatureFlagsRepository as a9, type FilterCombinator as aA, type FilterGroup as aB, type FilterRule as aC, type FlagOverride as aD, type FormDensity as aE, type FormTab as aF, type FormsTab as aG, type InverseSource as aH, type ListViewLayout as aI, type MigrationError as aJ, NO_VALUE_OPERATORS as aK, type NoValueOperator as aL, type NumberUnit as aM, OPERATORS_BY_TYPE as aN, type ObjectAttribute as aO, type OptionPropertyAttribute as aP, type PhoneFilterValue as aQ, type ProcessingJob as aR, type ProcessingJobStatus as aS, type ProcessingJobType as aT, type PropertyAttribute as aU, type PropertyType as aV, type QueryState as aW, RELATION_TARGET_ANY as aX, RESERVED_ATTRIBUTE_NAMES as aY, type RecordDocuments as aZ, type RelationSource as a_, type StaticFlagDefault as aa, type ResolvedFlag as ab, type ViewDefinition as ac, type ListViewTab as ad, type FilterOperator as ae, type FilterValue as af, type ActivityTab as ag, type AdvancedFilterState as ah, type AttributeGroup as ai, type BaseAttribute as aj, type BuiltInTransform as ak, type CreateDocument as al, type CreateDocumentSlot as am, type CreateProcessingJob as an, type CurrencyFilterValue as ao, type CustomTab as ap, DEFAULT_DOCUMENT_SLOT as aq, type DateFormat as ar, type DateValue as as, type Document as at, type DocumentListOptions as au, type DocumentSlot as av, type DocumentWithSlots as aw, type DocumentsTab as ax, type ExtendedFilterRule as ay, type FeatureFlagsConfig as az, type MultiselectAttribute as b, type ReservedAttributeName as b0, type RichtextTab as b1, SYSTEM_FIELD_NAMES as b2, type SchemaOperation as b3, type SchemaTransform as b4, type SlotStatus as b5, type SortDirection as b6, type StatusGroup as b7, type SystemFieldName as b8, type TabType as b9, type TableSource as ba, type TransformSource as bb, type UpdateDocument as bc, type UpdateDocumentSlot as bd, type UpdateProcessingJob as be, type ViewOperation as bf, type ViewOverlay as bg, type ViewTransform as bh, getRollupFilterOperators as bi, hasOptions as bj, inferInverseCardinality as bk, isAttributeSortable as bl, isBilateralRelation as bm, isDetailView as bn, isFieldGroup as bo, isListView as bp, isNoValueOperator as bq, isRelationGroup as br, isUniversalRelation as bs, type SelectAttribute as c, type StatusAttribute as d, type FormulaAttribute as e, type RollupAttribute as f, type CheckboxAttribute as g, type RatingAttribute as h, type TextAttribute as i, type CompletionStatus as j, type SortRule as k, type FilterState as l, type Timestamps as m, type AttributeType as n, type ViewConfig as o, type ConfigOverrides as p, type LocationGranularity as q, type Location as r, type DocumentAttribute as s, type Phone as t, type Currency as u, type ObjectRecord as v, type DocumentSlotConfig as w, type PropertySchema as x, type FeatureGate as y, type Option as z };
1578
+ export { type Group as $, type Attribute as A, type BilateralConfig as B, type CurrencyAttribute as C, type DateAttribute as D, type RelationTarget as E, type FileAttribute as F, type RichtextFeature as G, type RollupFunction as H, type MigrationDefinition as I, type DetailViewConfig as J, type DetailViewDefinition as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type DetailViewLayout as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAreaAttribute as T, type UserAttribute as U, type ViewType as V, type SidePanelConfig as W, type Field as X, type AttributeGroupField as Y, type FieldGroup as Z, type RelationGroup as _, type RichtextAttribute as a, type RelativeDateValue as a$, type TableTab as a0, type CreateMode as a1, type Tab as a2, type ListViewConfig as a3, type ListViewDefinition as a4, type FlagValueType as a5, type FeatureFlagDefinition as a6, type FlagLevel as a7, type FeatureFlagsRepository as a8, type StaticFlagDefault as a9, type FilterGroup as aA, type FilterRule as aB, type FlagOverride as aC, type FormDensity as aD, type FormTab as aE, type FormsTab as aF, type InverseSource as aG, type ListViewLayout as aH, type MigrationError as aI, NO_VALUE_OPERATORS as aJ, type NoValueOperator as aK, type NumberUnit as aL, OPERATORS_BY_TYPE as aM, type ObjectAttribute as aN, type ObjectRecord as aO, type OptionPropertyAttribute as aP, type PhoneFilterValue as aQ, type ProcessingJob as aR, type ProcessingJobStatus as aS, type ProcessingJobType as aT, type PropertyAttribute as aU, type PropertyType as aV, type QueryState as aW, RELATION_TARGET_ANY as aX, RESERVED_ATTRIBUTE_NAMES as aY, type RecordDocuments as aZ, type RelationSource as a_, type ResolvedFlag as aa, type ViewDefinition as ab, type ListViewTab as ac, type FilterOperator as ad, type FilterValue as ae, type ActivityTab as af, type AdvancedFilterState as ag, type AttributeGroup as ah, type BaseAttribute as ai, type BuiltInTransform as aj, type CreateDocument as ak, type CreateDocumentSlot as al, type CreateProcessingJob as am, type CurrencyFilterValue as an, type CustomTab as ao, DEFAULT_DOCUMENT_SLOT as ap, type DateFormat as aq, type DateValue as ar, type Document as as, type DocumentListOptions as at, type DocumentSlot as au, type DocumentWithSlots as av, type DocumentsTab as aw, type ExtendedFilterRule as ax, type FeatureFlagsConfig as ay, type FilterCombinator as az, type MultiselectAttribute as b, type ReservedAttributeName as b0, type RichtextTab as b1, SYSTEM_FIELD_NAMES as b2, type SchemaOperation as b3, type SchemaTransform as b4, type SlotStatus as b5, type SortDirection as b6, type StatusGroup as b7, type SystemFieldName as b8, type TabType as b9, type TableSource as ba, type TransformSource as bb, type UpdateDocument as bc, type UpdateDocumentSlot as bd, type UpdateProcessingJob as be, type ViewOperation as bf, type ViewOverlay as bg, type ViewTransform as bh, getRollupFilterOperators as bi, hasOptions as bj, inferInverseCardinality as bk, isAttributeSortable as bl, isBilateralRelation as bm, isDetailView as bn, isFieldGroup as bo, isListView as bp, isNoValueOperator as bq, isRelationGroup as br, isUniversalRelation as bs, type SelectAttribute as c, type StatusAttribute as d, type FormulaAttribute as e, type RollupAttribute as f, type CheckboxAttribute as g, type RatingAttribute as h, type TextAttribute as i, type CompletionStatus as j, type SortRule as k, type FilterState as l, type Timestamps as m, type AttributeType as n, type ViewConfig as o, type ConfigOverrides as p, type LocationGranularity as q, type Location as r, type DocumentAttribute as s, type Phone as t, type Currency as u, type DocumentSlotConfig as v, type PropertySchema as w, type FeatureGate as x, type Option as y, type FormulaReturnType as z };
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { A as Attribute, O as ObjectDefinition, j as CompletionStatus } from './filters-B9Pjped4.mjs';
3
- import { V as ValidationMessages, a as ValidationResult } from './types-DqpxKOcD.mjs';
2
+ import { A as Attribute, O as ObjectDefinition, j as CompletionStatus } from './filters-DdEBxdbQ.mjs';
3
+ import { V as ValidationMessages, a as ValidationResult } from './types-CUcTlTkE.mjs';
4
4
 
5
5
  /**
6
6
  * Create a Zod schema for any attribute type.
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { A as Attribute, O as ObjectDefinition, j as CompletionStatus } from './filters-B2cCCbDq.js';
3
- import { V as ValidationMessages, a as ValidationResult } from './types-DGGecyHV.js';
2
+ import { A as Attribute, O as ObjectDefinition, j as CompletionStatus } from './filters-HhqIAngv.js';
3
+ import { V as ValidationMessages, a as ValidationResult } from './types-BSwM9PXc.js';
4
4
 
5
5
  /**
6
6
  * Create a Zod schema for any attribute type.
package/dist/index.d.mts CHANGED
@@ -1,15 +1,15 @@
1
- import { k as SortRule, l as FilterState, m as Timestamps, n as AttributeType, V as ViewType, o as ViewConfig, p as ConfigOverrides, j as CompletionStatus, A as Attribute, q as LocationGranularity, r as Location, e as FormulaAttribute, f as RollupAttribute, s as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, t as Phone, u as Currency, v as ObjectRecord, D as DateAttribute, U as UserAttribute, w as DocumentSlotConfig, x as PropertySchema, y as FeatureGate, g as CheckboxAttribute, C as CurrencyAttribute, i as TextAttribute, T as TextAreaAttribute, N as NumberAttribute, P as PhoneAttribute, z as Option, h as RatingAttribute, L as LocationAttribute, F as FileAttribute, B as FormulaReturnType, R as RelationAttribute, E as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, G as RelationTarget, a as RichtextAttribute, H as RichtextFeature, I as RollupFunction, J as MigrationDefinition, O as ObjectDefinition, K as DetailViewConfig, Q as DetailViewDefinition, W as DetailViewLayout, X as SidePanelConfig, Y as Field, Z as AttributeGroupField, _ as FieldGroup, $ as RelationGroup, a0 as Group, a1 as TableTab, a2 as CreateMode, a3 as Tab, a4 as ListViewConfig, a5 as ListViewDefinition, a6 as FlagValueType, a7 as FeatureFlagDefinition, a8 as FlagLevel, a9 as FeatureFlagsRepository, aa as StaticFlagDefault, ab as ResolvedFlag, ac as ViewDefinition, ad as ListViewTab, ae as FilterOperator, af as FilterValue } from './filters-B9Pjped4.mjs';
2
- export { ag as ActivityTab, ah as AdvancedFilterState, ai as AttributeGroup, aj as BaseAttribute, ak as BuiltInTransform, al as CreateDocument, am as CreateDocumentSlot, an as CreateProcessingJob, ao as CurrencyFilterValue, ap as CustomTab, aq as DEFAULT_DOCUMENT_SLOT, ar as DateFormat, as as DateValue, at as Document, au as DocumentListOptions, av as DocumentSlot, aw as DocumentWithSlots, ax as DocumentsTab, ay as ExtendedFilterRule, az as FeatureFlagsConfig, aA as FilterCombinator, aB as FilterGroup, aC as FilterRule, aD as FlagOverride, aE as FormDensity, aF as FormTab, aG as FormsTab, aH as InverseSource, aI as ListViewLayout, aJ as MigrationError, aK as NO_VALUE_OPERATORS, aL as NoValueOperator, aM as NumberUnit, aN as OPERATORS_BY_TYPE, aO as ObjectAttribute, aP as OptionPropertyAttribute, aQ as PhoneFilterValue, aR as ProcessingJob, aS as ProcessingJobStatus, aT as ProcessingJobType, aU as PropertyAttribute, aV as PropertyType, aW as QueryState, aX as RELATION_TARGET_ANY, aY as RESERVED_ATTRIBUTE_NAMES, aZ as RecordDocuments, a_ as RelationSource, a$ as RelativeDateValue, b0 as ReservedAttributeName, b1 as RichtextTab, b2 as SYSTEM_FIELD_NAMES, b3 as SchemaOperation, b4 as SchemaTransform, b5 as SlotStatus, b6 as SortDirection, b7 as StatusGroup, b8 as SystemFieldName, b9 as TabType, ba as TableSource, bb as TransformSource, bc as UpdateDocument, bd as UpdateDocumentSlot, be as UpdateProcessingJob, bf as ViewOperation, bg as ViewOverlay, bh as ViewTransform, bi as getRollupFilterOperators, bj as hasOptions, bk as inferInverseCardinality, bl as isAttributeSortable, bm as isBilateralRelation, bn as isDetailView, bo as isFieldGroup, bp as isListView, bq as isNoValueOperator, br as isRelationGroup, bs as isUniversalRelation } from './filters-B9Pjped4.mjs';
1
+ import { k as SortRule, l as FilterState, m as Timestamps, n as AttributeType, V as ViewType, o as ViewConfig, p as ConfigOverrides, j as CompletionStatus, A as Attribute, q as LocationGranularity, r as Location, e as FormulaAttribute, f as RollupAttribute, s as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, t as Phone, u as Currency, D as DateAttribute, U as UserAttribute, v as DocumentSlotConfig, w as PropertySchema, x as FeatureGate, g as CheckboxAttribute, C as CurrencyAttribute, i as TextAttribute, T as TextAreaAttribute, N as NumberAttribute, P as PhoneAttribute, y as Option, h as RatingAttribute, L as LocationAttribute, F as FileAttribute, z as FormulaReturnType, R as RelationAttribute, B as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, E as RelationTarget, a as RichtextAttribute, G as RichtextFeature, H as RollupFunction, I as MigrationDefinition, O as ObjectDefinition, J as DetailViewConfig, K as DetailViewDefinition, Q as DetailViewLayout, W as SidePanelConfig, X as Field, Y as AttributeGroupField, Z as FieldGroup, _ as RelationGroup, $ as Group, a0 as TableTab, a1 as CreateMode, a2 as Tab, a3 as ListViewConfig, a4 as ListViewDefinition, a5 as FlagValueType, a6 as FeatureFlagDefinition, a7 as FlagLevel, a8 as FeatureFlagsRepository, a9 as StaticFlagDefault, aa as ResolvedFlag, ab as ViewDefinition, ac as ListViewTab, ad as FilterOperator, ae as FilterValue } from './filters-DdEBxdbQ.mjs';
2
+ export { af as ActivityTab, ag as AdvancedFilterState, ah as AttributeGroup, ai as BaseAttribute, aj as BuiltInTransform, ak as CreateDocument, al as CreateDocumentSlot, am as CreateProcessingJob, an as CurrencyFilterValue, ao as CustomTab, ap as DEFAULT_DOCUMENT_SLOT, aq as DateFormat, ar as DateValue, as as Document, at as DocumentListOptions, au as DocumentSlot, av as DocumentWithSlots, aw as DocumentsTab, ax as ExtendedFilterRule, ay as FeatureFlagsConfig, az as FilterCombinator, aA as FilterGroup, aB as FilterRule, aC as FlagOverride, aD as FormDensity, aE as FormTab, aF as FormsTab, aG as InverseSource, aH as ListViewLayout, aI as MigrationError, aJ as NO_VALUE_OPERATORS, aK as NoValueOperator, aL as NumberUnit, aM as OPERATORS_BY_TYPE, aN as ObjectAttribute, aO as ObjectRecord, aP as OptionPropertyAttribute, aQ as PhoneFilterValue, aR as ProcessingJob, aS as ProcessingJobStatus, aT as ProcessingJobType, aU as PropertyAttribute, aV as PropertyType, aW as QueryState, aX as RELATION_TARGET_ANY, aY as RESERVED_ATTRIBUTE_NAMES, aZ as RecordDocuments, a_ as RelationSource, a$ as RelativeDateValue, b0 as ReservedAttributeName, b1 as RichtextTab, b2 as SYSTEM_FIELD_NAMES, b3 as SchemaOperation, b4 as SchemaTransform, b5 as SlotStatus, b6 as SortDirection, b7 as StatusGroup, b8 as SystemFieldName, b9 as TabType, ba as TableSource, bb as TransformSource, bc as UpdateDocument, bd as UpdateDocumentSlot, be as UpdateProcessingJob, bf as ViewOperation, bg as ViewOverlay, bh as ViewTransform, bi as getRollupFilterOperators, bj as hasOptions, bk as inferInverseCardinality, bl as isAttributeSortable, bm as isBilateralRelation, bn as isDetailView, bo as isFieldGroup, bp as isListView, bq as isNoValueOperator, br as isRelationGroup, bs as isUniversalRelation } from './filters-DdEBxdbQ.mjs';
3
3
  import { MimeType, IconName, ColorId, CountryIso3, CurrencyCode } from '@stndrds/constants';
4
4
  import { Uuid, TenantId } from './utils.mjs';
5
5
  export { UserId, asTenantId, asUserId, deepEqual, generateId, indexBy } from './utils.mjs';
6
6
  import { StandardSchemaV1 } from '@standard-schema/spec';
7
7
  export { StandardSchemaV1 } from '@standard-schema/spec';
8
8
  import z from 'zod';
9
- export { V as ValidationMessages } from './types-DqpxKOcD.mjs';
9
+ export { V as ValidationMessages } from './types-CUcTlTkE.mjs';
10
10
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './validation/core/index.mjs';
11
11
  export { parseAttributeConfig } from './validation/config/index.mjs';
12
- export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-YWZowk1B.mjs';
12
+ export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-Cty43yIT.mjs';
13
13
 
14
14
  /**
15
15
  * Generic list options for pagination and sorting
@@ -1110,6 +1110,10 @@ interface AuditLogEntry {
1110
1110
  actorEmail?: string;
1111
1111
  /** Type of actor */
1112
1112
  actorType: AuditActorType;
1113
+ /** Direct parent actor in a delegation chain (e.g. user who launched the agent). */
1114
+ triggeredByActorId?: string;
1115
+ /** Root human actor at the top of a delegation chain. Null in pure-autonomous runs. */
1116
+ rootActorId?: string;
1113
1117
  action: AuditAction;
1114
1118
  resourceType: AuditResourceType;
1115
1119
  resourceId: Uuid;
@@ -1142,6 +1146,10 @@ interface CreateAuditLogInput {
1142
1146
  objectId?: string;
1143
1147
  changes?: AuditChange[];
1144
1148
  metadata?: Record<string, unknown>;
1149
+ /** Direct parent in a delegation chain (e.g. user who launched the agent). */
1150
+ triggeredByActorId?: string;
1151
+ /** Root human actor at the top of a delegation chain. */
1152
+ rootActorId?: string;
1145
1153
  }
1146
1154
  /**
1147
1155
  * Valid column names for sorting audit log entries.
@@ -2641,111 +2649,6 @@ type ExtractRecordUpdateStrict<TBuilder> = TBuilder extends {
2641
2649
  };
2642
2650
  } ? Omit<R, SystemFields> : never;
2643
2651
 
2644
- /**
2645
- * Context passed to policy methods
2646
- */
2647
- interface PolicyContext {
2648
- /**
2649
- * Current actor ID used for ownership and record-level checks.
2650
- */
2651
- actorId: string;
2652
- /**
2653
- * Tenant ID
2654
- */
2655
- tenantId: string;
2656
- /**
2657
- * Object name being accessed
2658
- */
2659
- objectName: string;
2660
- }
2661
- /**
2662
- * Record Policy - Defines access control rules for a specific object type.
2663
- *
2664
- * Policies are applied automatically by RecordService when configured.
2665
- * They provide:
2666
- * - List/search filtering (inject visibility rules)
2667
- * - Record access control (check if actor can read a specific record)
2668
- * - Modification control (check if user can update/delete)
2669
- *
2670
- * @example
2671
- * ```typescript
2672
- * const notesPolicy: RecordPolicy = {
2673
- * objectName: "notes",
2674
- *
2675
- * applyListFilter(ctx, options) {
2676
- * // Filter: visibility = 'shared' OR createdBy = actorId
2677
- * return injectVisibilityFilter(options, ctx.actorId);
2678
- * },
2679
- *
2680
- * canAccessRecord(ctx, record) {
2681
- * return record.values.visibility === "shared" || record.createdBy === ctx.actorId;
2682
- * },
2683
- *
2684
- * canModifyRecord(ctx, record) {
2685
- * if (record.values.visibility === "private") {
2686
- * return record.createdBy === ctx.actorId;
2687
- * }
2688
- * return true;
2689
- * },
2690
- *
2691
- * canDeleteRecord(ctx, record) {
2692
- * return record.createdBy === ctx.actorId;
2693
- * }
2694
- * };
2695
- * ```
2696
- */
2697
- interface RecordPolicy {
2698
- /**
2699
- * Object name this policy applies to (e.g., "notes")
2700
- */
2701
- objectName: string;
2702
- /**
2703
- * Modify list/search options before query execution.
2704
- * Use this to inject visibility filters.
2705
- *
2706
- * @param ctx - Policy context with actorId and tenantId
2707
- * @param options - Original list options
2708
- * @returns Modified list options with injected filters
2709
- */
2710
- applyListFilter?(ctx: PolicyContext, options?: ListOptions): ListOptions;
2711
- /**
2712
- * Check if user can access a specific record.
2713
- * Called after fetching a record in getRecord().
2714
- *
2715
- * @param ctx - Policy context with actorId
2716
- * @param record - The fetched record
2717
- * @returns true if user can access, false otherwise
2718
- */
2719
- canAccessRecord?(ctx: PolicyContext, record: ObjectRecord): boolean;
2720
- /**
2721
- * Check if user can modify a record.
2722
- * Called before updateRecord().
2723
- *
2724
- * @param ctx - Policy context with actorId
2725
- * @param record - The existing record
2726
- * @returns true if user can modify, false otherwise
2727
- */
2728
- canModifyRecord?(ctx: PolicyContext, record: ObjectRecord): boolean;
2729
- /**
2730
- * Check if user can delete a record.
2731
- * Called before deleteRecord().
2732
- *
2733
- * @param ctx - Policy context with actorId
2734
- * @param record - The record to delete
2735
- * @returns true if user can delete, false otherwise
2736
- */
2737
- canDeleteRecord?(ctx: PolicyContext, record: ObjectRecord): boolean;
2738
- }
2739
- /**
2740
- * Error thrown when a policy denies access
2741
- */
2742
- declare class PolicyViolationError extends Error {
2743
- readonly objectName: string;
2744
- readonly action: "read" | "update" | "delete";
2745
- readonly recordId?: string | undefined;
2746
- constructor(objectName: string, action: "read" | "update" | "delete", recordId?: string | undefined);
2747
- }
2748
-
2749
2652
  /**
2750
2653
  * Sandbox execution mode.
2751
2654
  * - "code": Execute a snippet in isolation (fast, deterministic, no AI)
@@ -3344,6 +3247,8 @@ declare const DEFAULT_ROLES: {
3344
3247
  readonly OWNER: "owner";
3345
3248
  /** Standard user - can work with business data and view people */
3346
3249
  readonly MEMBER: "member";
3250
+ /** Default role for agent actors - CRUD on records + documents/files */
3251
+ readonly AGENT_DEFAULT: "agent_default";
3347
3252
  };
3348
3253
  type DefaultRoleName = (typeof DEFAULT_ROLES)[keyof typeof DEFAULT_ROLES];
3349
3254
  /**
@@ -6562,4 +6467,4 @@ declare const OPERATOR_SPECS: Record<FilterOperator, OperatorSpec>;
6562
6467
  */
6563
6468
  declare function evaluateFilterState(state: FilterState, values: Record<string, unknown>, attributes: Attribute[]): boolean;
6564
6469
 
6565
- export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AgentConfig, type AgentContextEntry, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentQuestion, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, BEHAVIOR_PROPERTIES, BilateralConfig, type BoundingBox, type BuilderConfig, CheckboxAttribute, CompletionStatus, ConcurrentModificationError, ConfigOverrides, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, DB_COLUMN_FIELDS, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, type DefaultRoleName, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentSlotConfig, DocumentSlotValidationError, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type EffectivePermissions, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, type File, FileAttribute, type FileListOptions, type FileVisibility, FilterOperator, FilterState, FilterValue, FlagLevel, FlagRegistry, FlagService, FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTextRow, FormulaAttribute, type FormulaResult, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, InvalidPathError, type InviteUserInput, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, Location, LocationAttribute, LocationGranularity, MaxDepthExceededError, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATOR_SPECS, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectRecord, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type PathCardinality, type PathSegment, type PathSegmentType, type Permission, type PermissionScope, Phone, PhoneAttribute, type PolicyContext, PolicyViolationError, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, type QualifiedDocumentBrand, type QuestionResponse, type QuestionStatus, RatingAttribute, type ReasoningPartData, type RecordAgentEvent, type RecordMetadata, RecordNotFoundError, type RecordPolicy, type RecordReference, RecordReferencedError, RelationAttribute, RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, RelationTarget, RepositoryError, type RepositoryOperation, ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextFeature, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SandboxExecution, type SandboxExecutionInput, type SandboxExecutionResult, type SandboxExecutionStatus, type SandboxMode, type SandboxTrigger, SchemaError, SchemaErrorCode, type SchemaResolver, type SearchOptions, SelectAttribute, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncError, type SystemAttribute, type SystemAttributeI18nKey, type SystemFields, type SystemPermissions, type SystemResource, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, TextAreaAttribute, TextAttribute, type TextPartData, type ThinkingPartData, type TimeoutPolicy, Timestamps, type ToolPartData, type ToolPartState, type TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertAccessPolicyInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, ViewConfig, ViewDefinition, ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, buildPropertySchema, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getPathDepth, getRelationPath, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasRelationReferences, isAttributeInUseError, isDefaultRole, isDocumentAttribute, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, number, numberFlag, object, parsePath, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateSlotAgainstConfig, viewRegistry };
6470
+ export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AgentConfig, type AgentContextEntry, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentQuestion, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, BEHAVIOR_PROPERTIES, BilateralConfig, type BoundingBox, type BuilderConfig, CheckboxAttribute, CompletionStatus, ConcurrentModificationError, ConfigOverrides, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, DB_COLUMN_FIELDS, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, type DefaultRoleName, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentSlotConfig, DocumentSlotValidationError, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type EffectivePermissions, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, type File, FileAttribute, type FileListOptions, type FileVisibility, FilterOperator, FilterState, FilterValue, FlagLevel, FlagRegistry, FlagService, FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTextRow, FormulaAttribute, type FormulaResult, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, InvalidPathError, type InviteUserInput, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, Location, LocationAttribute, LocationGranularity, MaxDepthExceededError, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATOR_SPECS, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type PathCardinality, type PathSegment, type PathSegmentType, type Permission, type PermissionScope, Phone, PhoneAttribute, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, type QualifiedDocumentBrand, type QuestionResponse, type QuestionStatus, RatingAttribute, type ReasoningPartData, type RecordAgentEvent, type RecordMetadata, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationAttribute, RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, RelationTarget, RepositoryError, type RepositoryOperation, ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextFeature, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SandboxExecution, type SandboxExecutionInput, type SandboxExecutionResult, type SandboxExecutionStatus, type SandboxMode, type SandboxTrigger, SchemaError, SchemaErrorCode, type SchemaResolver, type SearchOptions, SelectAttribute, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncError, type SystemAttribute, type SystemAttributeI18nKey, type SystemFields, type SystemPermissions, type SystemResource, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, TextAreaAttribute, TextAttribute, type TextPartData, type ThinkingPartData, type TimeoutPolicy, Timestamps, type ToolPartData, type ToolPartState, type TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertAccessPolicyInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, ViewConfig, ViewDefinition, ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, buildPropertySchema, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getPathDepth, getRelationPath, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasRelationReferences, isAttributeInUseError, isDefaultRole, isDocumentAttribute, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, number, numberFlag, object, parsePath, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateSlotAgainstConfig, viewRegistry };
package/dist/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- import { k as SortRule, l as FilterState, m as Timestamps, n as AttributeType, V as ViewType, o as ViewConfig, p as ConfigOverrides, j as CompletionStatus, A as Attribute, q as LocationGranularity, r as Location, e as FormulaAttribute, f as RollupAttribute, s as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, t as Phone, u as Currency, v as ObjectRecord, D as DateAttribute, U as UserAttribute, w as DocumentSlotConfig, x as PropertySchema, y as FeatureGate, g as CheckboxAttribute, C as CurrencyAttribute, i as TextAttribute, T as TextAreaAttribute, N as NumberAttribute, P as PhoneAttribute, z as Option, h as RatingAttribute, L as LocationAttribute, F as FileAttribute, B as FormulaReturnType, R as RelationAttribute, E as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, G as RelationTarget, a as RichtextAttribute, H as RichtextFeature, I as RollupFunction, J as MigrationDefinition, O as ObjectDefinition, K as DetailViewConfig, Q as DetailViewDefinition, W as DetailViewLayout, X as SidePanelConfig, Y as Field, Z as AttributeGroupField, _ as FieldGroup, $ as RelationGroup, a0 as Group, a1 as TableTab, a2 as CreateMode, a3 as Tab, a4 as ListViewConfig, a5 as ListViewDefinition, a6 as FlagValueType, a7 as FeatureFlagDefinition, a8 as FlagLevel, a9 as FeatureFlagsRepository, aa as StaticFlagDefault, ab as ResolvedFlag, ac as ViewDefinition, ad as ListViewTab, ae as FilterOperator, af as FilterValue } from './filters-B2cCCbDq.js';
2
- export { ag as ActivityTab, ah as AdvancedFilterState, ai as AttributeGroup, aj as BaseAttribute, ak as BuiltInTransform, al as CreateDocument, am as CreateDocumentSlot, an as CreateProcessingJob, ao as CurrencyFilterValue, ap as CustomTab, aq as DEFAULT_DOCUMENT_SLOT, ar as DateFormat, as as DateValue, at as Document, au as DocumentListOptions, av as DocumentSlot, aw as DocumentWithSlots, ax as DocumentsTab, ay as ExtendedFilterRule, az as FeatureFlagsConfig, aA as FilterCombinator, aB as FilterGroup, aC as FilterRule, aD as FlagOverride, aE as FormDensity, aF as FormTab, aG as FormsTab, aH as InverseSource, aI as ListViewLayout, aJ as MigrationError, aK as NO_VALUE_OPERATORS, aL as NoValueOperator, aM as NumberUnit, aN as OPERATORS_BY_TYPE, aO as ObjectAttribute, aP as OptionPropertyAttribute, aQ as PhoneFilterValue, aR as ProcessingJob, aS as ProcessingJobStatus, aT as ProcessingJobType, aU as PropertyAttribute, aV as PropertyType, aW as QueryState, aX as RELATION_TARGET_ANY, aY as RESERVED_ATTRIBUTE_NAMES, aZ as RecordDocuments, a_ as RelationSource, a$ as RelativeDateValue, b0 as ReservedAttributeName, b1 as RichtextTab, b2 as SYSTEM_FIELD_NAMES, b3 as SchemaOperation, b4 as SchemaTransform, b5 as SlotStatus, b6 as SortDirection, b7 as StatusGroup, b8 as SystemFieldName, b9 as TabType, ba as TableSource, bb as TransformSource, bc as UpdateDocument, bd as UpdateDocumentSlot, be as UpdateProcessingJob, bf as ViewOperation, bg as ViewOverlay, bh as ViewTransform, bi as getRollupFilterOperators, bj as hasOptions, bk as inferInverseCardinality, bl as isAttributeSortable, bm as isBilateralRelation, bn as isDetailView, bo as isFieldGroup, bp as isListView, bq as isNoValueOperator, br as isRelationGroup, bs as isUniversalRelation } from './filters-B2cCCbDq.js';
1
+ import { k as SortRule, l as FilterState, m as Timestamps, n as AttributeType, V as ViewType, o as ViewConfig, p as ConfigOverrides, j as CompletionStatus, A as Attribute, q as LocationGranularity, r as Location, e as FormulaAttribute, f as RollupAttribute, s as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, t as Phone, u as Currency, D as DateAttribute, U as UserAttribute, v as DocumentSlotConfig, w as PropertySchema, x as FeatureGate, g as CheckboxAttribute, C as CurrencyAttribute, i as TextAttribute, T as TextAreaAttribute, N as NumberAttribute, P as PhoneAttribute, y as Option, h as RatingAttribute, L as LocationAttribute, F as FileAttribute, z as FormulaReturnType, R as RelationAttribute, B as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, E as RelationTarget, a as RichtextAttribute, G as RichtextFeature, H as RollupFunction, I as MigrationDefinition, O as ObjectDefinition, J as DetailViewConfig, K as DetailViewDefinition, Q as DetailViewLayout, W as SidePanelConfig, X as Field, Y as AttributeGroupField, Z as FieldGroup, _ as RelationGroup, $ as Group, a0 as TableTab, a1 as CreateMode, a2 as Tab, a3 as ListViewConfig, a4 as ListViewDefinition, a5 as FlagValueType, a6 as FeatureFlagDefinition, a7 as FlagLevel, a8 as FeatureFlagsRepository, a9 as StaticFlagDefault, aa as ResolvedFlag, ab as ViewDefinition, ac as ListViewTab, ad as FilterOperator, ae as FilterValue } from './filters-HhqIAngv.js';
2
+ export { af as ActivityTab, ag as AdvancedFilterState, ah as AttributeGroup, ai as BaseAttribute, aj as BuiltInTransform, ak as CreateDocument, al as CreateDocumentSlot, am as CreateProcessingJob, an as CurrencyFilterValue, ao as CustomTab, ap as DEFAULT_DOCUMENT_SLOT, aq as DateFormat, ar as DateValue, as as Document, at as DocumentListOptions, au as DocumentSlot, av as DocumentWithSlots, aw as DocumentsTab, ax as ExtendedFilterRule, ay as FeatureFlagsConfig, az as FilterCombinator, aA as FilterGroup, aB as FilterRule, aC as FlagOverride, aD as FormDensity, aE as FormTab, aF as FormsTab, aG as InverseSource, aH as ListViewLayout, aI as MigrationError, aJ as NO_VALUE_OPERATORS, aK as NoValueOperator, aL as NumberUnit, aM as OPERATORS_BY_TYPE, aN as ObjectAttribute, aO as ObjectRecord, aP as OptionPropertyAttribute, aQ as PhoneFilterValue, aR as ProcessingJob, aS as ProcessingJobStatus, aT as ProcessingJobType, aU as PropertyAttribute, aV as PropertyType, aW as QueryState, aX as RELATION_TARGET_ANY, aY as RESERVED_ATTRIBUTE_NAMES, aZ as RecordDocuments, a_ as RelationSource, a$ as RelativeDateValue, b0 as ReservedAttributeName, b1 as RichtextTab, b2 as SYSTEM_FIELD_NAMES, b3 as SchemaOperation, b4 as SchemaTransform, b5 as SlotStatus, b6 as SortDirection, b7 as StatusGroup, b8 as SystemFieldName, b9 as TabType, ba as TableSource, bb as TransformSource, bc as UpdateDocument, bd as UpdateDocumentSlot, be as UpdateProcessingJob, bf as ViewOperation, bg as ViewOverlay, bh as ViewTransform, bi as getRollupFilterOperators, bj as hasOptions, bk as inferInverseCardinality, bl as isAttributeSortable, bm as isBilateralRelation, bn as isDetailView, bo as isFieldGroup, bp as isListView, bq as isNoValueOperator, br as isRelationGroup, bs as isUniversalRelation } from './filters-HhqIAngv.js';
3
3
  import { MimeType, IconName, ColorId, CountryIso3, CurrencyCode } from '@stndrds/constants';
4
4
  import { Uuid, TenantId } from './utils.js';
5
5
  export { UserId, asTenantId, asUserId, deepEqual, generateId, indexBy } from './utils.js';
6
6
  import { StandardSchemaV1 } from '@standard-schema/spec';
7
7
  export { StandardSchemaV1 } from '@standard-schema/spec';
8
8
  import z from 'zod';
9
- export { V as ValidationMessages } from './types-DGGecyHV.js';
9
+ export { V as ValidationMessages } from './types-BSwM9PXc.js';
10
10
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './validation/core/index.js';
11
11
  export { parseAttributeConfig } from './validation/config/index.js';
12
- export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-icxxQQJQ.js';
12
+ export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-Dsf49fWz.js';
13
13
 
14
14
  /**
15
15
  * Generic list options for pagination and sorting
@@ -1110,6 +1110,10 @@ interface AuditLogEntry {
1110
1110
  actorEmail?: string;
1111
1111
  /** Type of actor */
1112
1112
  actorType: AuditActorType;
1113
+ /** Direct parent actor in a delegation chain (e.g. user who launched the agent). */
1114
+ triggeredByActorId?: string;
1115
+ /** Root human actor at the top of a delegation chain. Null in pure-autonomous runs. */
1116
+ rootActorId?: string;
1113
1117
  action: AuditAction;
1114
1118
  resourceType: AuditResourceType;
1115
1119
  resourceId: Uuid;
@@ -1142,6 +1146,10 @@ interface CreateAuditLogInput {
1142
1146
  objectId?: string;
1143
1147
  changes?: AuditChange[];
1144
1148
  metadata?: Record<string, unknown>;
1149
+ /** Direct parent in a delegation chain (e.g. user who launched the agent). */
1150
+ triggeredByActorId?: string;
1151
+ /** Root human actor at the top of a delegation chain. */
1152
+ rootActorId?: string;
1145
1153
  }
1146
1154
  /**
1147
1155
  * Valid column names for sorting audit log entries.
@@ -2641,111 +2649,6 @@ type ExtractRecordUpdateStrict<TBuilder> = TBuilder extends {
2641
2649
  };
2642
2650
  } ? Omit<R, SystemFields> : never;
2643
2651
 
2644
- /**
2645
- * Context passed to policy methods
2646
- */
2647
- interface PolicyContext {
2648
- /**
2649
- * Current actor ID used for ownership and record-level checks.
2650
- */
2651
- actorId: string;
2652
- /**
2653
- * Tenant ID
2654
- */
2655
- tenantId: string;
2656
- /**
2657
- * Object name being accessed
2658
- */
2659
- objectName: string;
2660
- }
2661
- /**
2662
- * Record Policy - Defines access control rules for a specific object type.
2663
- *
2664
- * Policies are applied automatically by RecordService when configured.
2665
- * They provide:
2666
- * - List/search filtering (inject visibility rules)
2667
- * - Record access control (check if actor can read a specific record)
2668
- * - Modification control (check if user can update/delete)
2669
- *
2670
- * @example
2671
- * ```typescript
2672
- * const notesPolicy: RecordPolicy = {
2673
- * objectName: "notes",
2674
- *
2675
- * applyListFilter(ctx, options) {
2676
- * // Filter: visibility = 'shared' OR createdBy = actorId
2677
- * return injectVisibilityFilter(options, ctx.actorId);
2678
- * },
2679
- *
2680
- * canAccessRecord(ctx, record) {
2681
- * return record.values.visibility === "shared" || record.createdBy === ctx.actorId;
2682
- * },
2683
- *
2684
- * canModifyRecord(ctx, record) {
2685
- * if (record.values.visibility === "private") {
2686
- * return record.createdBy === ctx.actorId;
2687
- * }
2688
- * return true;
2689
- * },
2690
- *
2691
- * canDeleteRecord(ctx, record) {
2692
- * return record.createdBy === ctx.actorId;
2693
- * }
2694
- * };
2695
- * ```
2696
- */
2697
- interface RecordPolicy {
2698
- /**
2699
- * Object name this policy applies to (e.g., "notes")
2700
- */
2701
- objectName: string;
2702
- /**
2703
- * Modify list/search options before query execution.
2704
- * Use this to inject visibility filters.
2705
- *
2706
- * @param ctx - Policy context with actorId and tenantId
2707
- * @param options - Original list options
2708
- * @returns Modified list options with injected filters
2709
- */
2710
- applyListFilter?(ctx: PolicyContext, options?: ListOptions): ListOptions;
2711
- /**
2712
- * Check if user can access a specific record.
2713
- * Called after fetching a record in getRecord().
2714
- *
2715
- * @param ctx - Policy context with actorId
2716
- * @param record - The fetched record
2717
- * @returns true if user can access, false otherwise
2718
- */
2719
- canAccessRecord?(ctx: PolicyContext, record: ObjectRecord): boolean;
2720
- /**
2721
- * Check if user can modify a record.
2722
- * Called before updateRecord().
2723
- *
2724
- * @param ctx - Policy context with actorId
2725
- * @param record - The existing record
2726
- * @returns true if user can modify, false otherwise
2727
- */
2728
- canModifyRecord?(ctx: PolicyContext, record: ObjectRecord): boolean;
2729
- /**
2730
- * Check if user can delete a record.
2731
- * Called before deleteRecord().
2732
- *
2733
- * @param ctx - Policy context with actorId
2734
- * @param record - The record to delete
2735
- * @returns true if user can delete, false otherwise
2736
- */
2737
- canDeleteRecord?(ctx: PolicyContext, record: ObjectRecord): boolean;
2738
- }
2739
- /**
2740
- * Error thrown when a policy denies access
2741
- */
2742
- declare class PolicyViolationError extends Error {
2743
- readonly objectName: string;
2744
- readonly action: "read" | "update" | "delete";
2745
- readonly recordId?: string | undefined;
2746
- constructor(objectName: string, action: "read" | "update" | "delete", recordId?: string | undefined);
2747
- }
2748
-
2749
2652
  /**
2750
2653
  * Sandbox execution mode.
2751
2654
  * - "code": Execute a snippet in isolation (fast, deterministic, no AI)
@@ -3344,6 +3247,8 @@ declare const DEFAULT_ROLES: {
3344
3247
  readonly OWNER: "owner";
3345
3248
  /** Standard user - can work with business data and view people */
3346
3249
  readonly MEMBER: "member";
3250
+ /** Default role for agent actors - CRUD on records + documents/files */
3251
+ readonly AGENT_DEFAULT: "agent_default";
3347
3252
  };
3348
3253
  type DefaultRoleName = (typeof DEFAULT_ROLES)[keyof typeof DEFAULT_ROLES];
3349
3254
  /**
@@ -6562,4 +6467,4 @@ declare const OPERATOR_SPECS: Record<FilterOperator, OperatorSpec>;
6562
6467
  */
6563
6468
  declare function evaluateFilterState(state: FilterState, values: Record<string, unknown>, attributes: Attribute[]): boolean;
6564
6469
 
6565
- export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AgentConfig, type AgentContextEntry, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentQuestion, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, BEHAVIOR_PROPERTIES, BilateralConfig, type BoundingBox, type BuilderConfig, CheckboxAttribute, CompletionStatus, ConcurrentModificationError, ConfigOverrides, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, DB_COLUMN_FIELDS, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, type DefaultRoleName, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentSlotConfig, DocumentSlotValidationError, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type EffectivePermissions, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, type File, FileAttribute, type FileListOptions, type FileVisibility, FilterOperator, FilterState, FilterValue, FlagLevel, FlagRegistry, FlagService, FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTextRow, FormulaAttribute, type FormulaResult, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, InvalidPathError, type InviteUserInput, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, Location, LocationAttribute, LocationGranularity, MaxDepthExceededError, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATOR_SPECS, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectRecord, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type PathCardinality, type PathSegment, type PathSegmentType, type Permission, type PermissionScope, Phone, PhoneAttribute, type PolicyContext, PolicyViolationError, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, type QualifiedDocumentBrand, type QuestionResponse, type QuestionStatus, RatingAttribute, type ReasoningPartData, type RecordAgentEvent, type RecordMetadata, RecordNotFoundError, type RecordPolicy, type RecordReference, RecordReferencedError, RelationAttribute, RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, RelationTarget, RepositoryError, type RepositoryOperation, ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextFeature, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SandboxExecution, type SandboxExecutionInput, type SandboxExecutionResult, type SandboxExecutionStatus, type SandboxMode, type SandboxTrigger, SchemaError, SchemaErrorCode, type SchemaResolver, type SearchOptions, SelectAttribute, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncError, type SystemAttribute, type SystemAttributeI18nKey, type SystemFields, type SystemPermissions, type SystemResource, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, TextAreaAttribute, TextAttribute, type TextPartData, type ThinkingPartData, type TimeoutPolicy, Timestamps, type ToolPartData, type ToolPartState, type TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertAccessPolicyInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, ViewConfig, ViewDefinition, ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, buildPropertySchema, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getPathDepth, getRelationPath, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasRelationReferences, isAttributeInUseError, isDefaultRole, isDocumentAttribute, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, number, numberFlag, object, parsePath, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateSlotAgainstConfig, viewRegistry };
6470
+ export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AgentConfig, type AgentContextEntry, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentQuestion, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, BEHAVIOR_PROPERTIES, BilateralConfig, type BoundingBox, type BuilderConfig, CheckboxAttribute, CompletionStatus, ConcurrentModificationError, ConfigOverrides, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, DB_COLUMN_FIELDS, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, type DefaultRoleName, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentSlotConfig, DocumentSlotValidationError, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type EffectivePermissions, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, type File, FileAttribute, type FileListOptions, type FileVisibility, FilterOperator, FilterState, FilterValue, FlagLevel, FlagRegistry, FlagService, FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTextRow, FormulaAttribute, type FormulaResult, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, InvalidPathError, type InviteUserInput, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, Location, LocationAttribute, LocationGranularity, MaxDepthExceededError, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATOR_SPECS, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type PathCardinality, type PathSegment, type PathSegmentType, type Permission, type PermissionScope, Phone, PhoneAttribute, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, type QualifiedDocumentBrand, type QuestionResponse, type QuestionStatus, RatingAttribute, type ReasoningPartData, type RecordAgentEvent, type RecordMetadata, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationAttribute, RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, RelationTarget, RepositoryError, type RepositoryOperation, ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextFeature, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SandboxExecution, type SandboxExecutionInput, type SandboxExecutionResult, type SandboxExecutionStatus, type SandboxMode, type SandboxTrigger, SchemaError, SchemaErrorCode, type SchemaResolver, type SearchOptions, SelectAttribute, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncError, type SystemAttribute, type SystemAttributeI18nKey, type SystemFields, type SystemPermissions, type SystemResource, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, TextAreaAttribute, TextAttribute, type TextPartData, type ThinkingPartData, type TimeoutPolicy, Timestamps, type ToolPartData, type ToolPartState, type TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertAccessPolicyInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, ViewConfig, ViewDefinition, ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, buildPropertySchema, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getPathDepth, getRelationPath, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasRelationReferences, isAttributeInUseError, isDefaultRole, isDocumentAttribute, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, number, numberFlag, object, parsePath, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateSlotAgainstConfig, viewRegistry };
package/dist/index.js CHANGED
@@ -568,18 +568,6 @@ function accessLevelToActions(level) {
568
568
  }
569
569
  }
570
570
 
571
- // src/types/policies.ts
572
- var PolicyViolationError = class extends Error {
573
- constructor(objectName, action, recordId) {
574
- const message = recordId ? `Access denied: cannot ${action} record ${recordId} on ${objectName}` : `Access denied: cannot ${action} on ${objectName}`;
575
- super(message);
576
- this.objectName = objectName;
577
- this.action = action;
578
- this.recordId = recordId;
579
- this.name = "PolicyViolationError";
580
- }
581
- };
582
-
583
571
  // src/types/relation-properties.ts
584
572
  function hasOptions(attr) {
585
573
  return attr.type === "select" || attr.type === "status" || attr.type === "multiselect";
@@ -1141,15 +1129,19 @@ var DEFAULT_ROLES = {
1141
1129
  /** Full platform access - can manage everything */
1142
1130
  OWNER: "owner",
1143
1131
  /** Standard user - can work with business data and view people */
1144
- MEMBER: "member"
1132
+ MEMBER: "member",
1133
+ /** Default role for agent actors - CRUD on records + documents/files */
1134
+ AGENT_DEFAULT: "agent_default"
1145
1135
  };
1146
1136
  var DEFAULT_ROLE_LABELS = {
1147
1137
  owner: "Owner",
1148
- member: "Member"
1138
+ member: "Member",
1139
+ agent_default: "Agent Default"
1149
1140
  };
1150
1141
  var DEFAULT_ROLE_DESCRIPTIONS = {
1151
1142
  owner: "Full access to all platform features and data",
1152
- member: "Can view, create, edit and delete business data"
1143
+ member: "Can view, create, edit and delete business data",
1144
+ agent_default: "Default role for AI agents \u2014 CRUD on records plus documents and files"
1153
1145
  };
1154
1146
  var ALL_ACTIONS2 = ["read", "create", "update", "delete", "manage"];
1155
1147
  var DEFAULT_ROLE_PERMISSIONS = {
@@ -1163,6 +1155,13 @@ var DEFAULT_ROLE_PERMISSIONS = {
1163
1155
  { target: "workspace", actions: ["read"] }
1164
1156
  ],
1165
1157
  object: [{ target: "*", actions: ALL_ACTIONS2 }]
1158
+ },
1159
+ agent_default: {
1160
+ system: [
1161
+ { target: "documents", actions: ["read", "create", "update"] },
1162
+ { target: "files", actions: ["read", "create", "update"] }
1163
+ ],
1164
+ object: [{ target: "*", actions: ["read", "create", "update", "delete"] }]
1166
1165
  }
1167
1166
  };
1168
1167
  function isDefaultRole(roleName) {
@@ -5690,7 +5689,6 @@ exports.ObjectBuilder = ObjectBuilder;
5690
5689
  exports.ObjectNotFoundError = ObjectNotFoundError;
5691
5690
  exports.ObjectReferencedError = ObjectReferencedError;
5692
5691
  exports.PRESENTATION_PROPERTIES = PRESENTATION_PROPERTIES;
5693
- exports.PolicyViolationError = PolicyViolationError;
5694
5692
  exports.ProtectedResourceError = ProtectedResourceError;
5695
5693
  exports.ProtectedRoleError = ProtectedRoleError;
5696
5694
  exports.RELATION_TARGET_ANY = RELATION_TARGET_ANY;
package/dist/index.mjs CHANGED
@@ -564,18 +564,6 @@ function accessLevelToActions(level) {
564
564
  }
565
565
  }
566
566
 
567
- // src/types/policies.ts
568
- var PolicyViolationError = class extends Error {
569
- constructor(objectName, action, recordId) {
570
- const message = recordId ? `Access denied: cannot ${action} record ${recordId} on ${objectName}` : `Access denied: cannot ${action} on ${objectName}`;
571
- super(message);
572
- this.objectName = objectName;
573
- this.action = action;
574
- this.recordId = recordId;
575
- this.name = "PolicyViolationError";
576
- }
577
- };
578
-
579
567
  // src/types/relation-properties.ts
580
568
  function hasOptions(attr) {
581
569
  return attr.type === "select" || attr.type === "status" || attr.type === "multiselect";
@@ -1137,15 +1125,19 @@ var DEFAULT_ROLES = {
1137
1125
  /** Full platform access - can manage everything */
1138
1126
  OWNER: "owner",
1139
1127
  /** Standard user - can work with business data and view people */
1140
- MEMBER: "member"
1128
+ MEMBER: "member",
1129
+ /** Default role for agent actors - CRUD on records + documents/files */
1130
+ AGENT_DEFAULT: "agent_default"
1141
1131
  };
1142
1132
  var DEFAULT_ROLE_LABELS = {
1143
1133
  owner: "Owner",
1144
- member: "Member"
1134
+ member: "Member",
1135
+ agent_default: "Agent Default"
1145
1136
  };
1146
1137
  var DEFAULT_ROLE_DESCRIPTIONS = {
1147
1138
  owner: "Full access to all platform features and data",
1148
- member: "Can view, create, edit and delete business data"
1139
+ member: "Can view, create, edit and delete business data",
1140
+ agent_default: "Default role for AI agents \u2014 CRUD on records plus documents and files"
1149
1141
  };
1150
1142
  var ALL_ACTIONS2 = ["read", "create", "update", "delete", "manage"];
1151
1143
  var DEFAULT_ROLE_PERMISSIONS = {
@@ -1159,6 +1151,13 @@ var DEFAULT_ROLE_PERMISSIONS = {
1159
1151
  { target: "workspace", actions: ["read"] }
1160
1152
  ],
1161
1153
  object: [{ target: "*", actions: ALL_ACTIONS2 }]
1154
+ },
1155
+ agent_default: {
1156
+ system: [
1157
+ { target: "documents", actions: ["read", "create", "update"] },
1158
+ { target: "files", actions: ["read", "create", "update"] }
1159
+ ],
1160
+ object: [{ target: "*", actions: ["read", "create", "update", "delete"] }]
1162
1161
  }
1163
1162
  };
1164
1163
  function isDefaultRole(roleName) {
@@ -5583,4 +5582,4 @@ function evaluateRule(rule, values, attrByName) {
5583
5582
  return spec.evaluateInMemory(values[rule.attribute], rule.value, attr);
5584
5583
  }
5585
5584
 
5586
- export { ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, AccessDeniedError, ActivityTabConfig, AttributeInUseError, AttributeNotFoundError, BEHAVIOR_PROPERTIES, ConcurrentModificationError, CustomTabConfig, DB_COLUMN_FIELDS, DEFAULT_DOCUMENT_SLOT, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DetailViewBuilder, DocumentSlotValidationError, DocumentsTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FlagRegistry, FlagService, ForbiddenError, FormBuilder, FormRegistry, FormRowBuilder, FormStepBuilder, GroupBuilder, IDENTITY_PROPERTIES, InvalidPathError, ListViewBuilder, ListViewTabConfigBuilder, MaxDepthExceededError, MemoryNotFoundError, NO_VALUE_OPERATORS, NoopGeocodingAdapter, NotFoundError, NotImplementedError, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, ObjectNotFoundError, ObjectReferencedError, PRESENTATION_PROPERTIES, PolicyViolationError, ProtectedResourceError, ProtectedRoleError, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RecordNotFoundError, RecordReferencedError, RelationGroupBuilder, RepositoryError, RichtextTabConfig, RoleNotFoundError, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SchemaError, SchemaErrorCode, StorageError, SyncError, TabBuilder, TableTabConfig, USER_STATUSES, ValidationError, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, buildPropertySchema, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getPathDepth, getRelationPath, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasOptions, hasRelationReferences, inferInverseCardinality, isAttributeInUseError, isAttributeSortable, isBilateralRelation, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isUniversalRelation, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, number, numberFlag, object, parsePath, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateSlotAgainstConfig, viewRegistry };
5585
+ export { ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, AccessDeniedError, ActivityTabConfig, AttributeInUseError, AttributeNotFoundError, BEHAVIOR_PROPERTIES, ConcurrentModificationError, CustomTabConfig, DB_COLUMN_FIELDS, DEFAULT_DOCUMENT_SLOT, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DetailViewBuilder, DocumentSlotValidationError, DocumentsTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FlagRegistry, FlagService, ForbiddenError, FormBuilder, FormRegistry, FormRowBuilder, FormStepBuilder, GroupBuilder, IDENTITY_PROPERTIES, InvalidPathError, ListViewBuilder, ListViewTabConfigBuilder, MaxDepthExceededError, MemoryNotFoundError, NO_VALUE_OPERATORS, NoopGeocodingAdapter, NotFoundError, NotImplementedError, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, ObjectNotFoundError, ObjectReferencedError, PRESENTATION_PROPERTIES, ProtectedResourceError, ProtectedRoleError, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RecordNotFoundError, RecordReferencedError, RelationGroupBuilder, RepositoryError, RichtextTabConfig, RoleNotFoundError, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SchemaError, SchemaErrorCode, StorageError, SyncError, TabBuilder, TableTabConfig, USER_STATUSES, ValidationError, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, buildPropertySchema, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getPathDepth, getRelationPath, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasOptions, hasRelationReferences, inferInverseCardinality, isAttributeInUseError, isAttributeSortable, isBilateralRelation, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isUniversalRelation, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, number, numberFlag, object, parsePath, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateSlotAgainstConfig, viewRegistry };
@@ -1,4 +1,4 @@
1
- import { A as Attribute } from './filters-B2cCCbDq.js';
1
+ import { A as Attribute } from './filters-HhqIAngv.js';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
@@ -1,4 +1,4 @@
1
- import { A as Attribute } from './filters-B9Pjped4.mjs';
1
+ import { A as Attribute } from './filters-DdEBxdbQ.mjs';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
@@ -1,8 +1,8 @@
1
- export { V as ValidationMessages } from '../types-DqpxKOcD.mjs';
1
+ export { V as ValidationMessages } from '../types-CUcTlTkE.mjs';
2
2
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.mjs';
3
3
  export { parseAttributeConfig } from './config/index.mjs';
4
- export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-YWZowk1B.mjs';
5
- import '../filters-B9Pjped4.mjs';
4
+ export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-Cty43yIT.mjs';
5
+ import '../filters-DdEBxdbQ.mjs';
6
6
  import '@stndrds/constants';
7
7
  import '../utils.mjs';
8
8
  import 'zod';
@@ -1,8 +1,8 @@
1
- export { V as ValidationMessages } from '../types-DGGecyHV.js';
1
+ export { V as ValidationMessages } from '../types-BSwM9PXc.js';
2
2
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.js';
3
3
  export { parseAttributeConfig } from './config/index.js';
4
- export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-icxxQQJQ.js';
5
- import '../filters-B2cCCbDq.js';
4
+ export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-Dsf49fWz.js';
5
+ import '../filters-HhqIAngv.js';
6
6
  import '@stndrds/constants';
7
7
  import '../utils.js';
8
8
  import 'zod';
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { C as CurrencyAttribute } from '../../filters-B9Pjped4.mjs';
3
- import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
2
+ import { C as CurrencyAttribute } from '../../filters-DdEBxdbQ.mjs';
3
+ import { V as ValidationMessages } from '../../types-CUcTlTkE.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { C as CurrencyAttribute } from '../../filters-B2cCCbDq.js';
3
- import { V as ValidationMessages } from '../../types-DGGecyHV.js';
2
+ import { C as CurrencyAttribute } from '../../filters-HhqIAngv.js';
3
+ import { V as ValidationMessages } from '../../types-BSwM9PXc.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { F as FileAttribute } from '../../filters-B9Pjped4.mjs';
3
- import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
2
+ import { F as FileAttribute } from '../../filters-DdEBxdbQ.mjs';
3
+ import { V as ValidationMessages } from '../../types-CUcTlTkE.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { F as FileAttribute } from '../../filters-B2cCCbDq.js';
3
- import { V as ValidationMessages } from '../../types-DGGecyHV.js';
2
+ import { F as FileAttribute } from '../../filters-HhqIAngv.js';
3
+ import { V as ValidationMessages } from '../../types-BSwM9PXc.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { L as LocationAttribute } from '../../filters-B9Pjped4.mjs';
3
- import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
2
+ import { L as LocationAttribute } from '../../filters-DdEBxdbQ.mjs';
3
+ import { V as ValidationMessages } from '../../types-CUcTlTkE.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { L as LocationAttribute } from '../../filters-B2cCCbDq.js';
3
- import { V as ValidationMessages } from '../../types-DGGecyHV.js';
2
+ import { L as LocationAttribute } from '../../filters-HhqIAngv.js';
3
+ import { V as ValidationMessages } from '../../types-BSwM9PXc.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { P as PhoneAttribute } from '../../filters-B9Pjped4.mjs';
3
- import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
2
+ import { P as PhoneAttribute } from '../../filters-DdEBxdbQ.mjs';
3
+ import { V as ValidationMessages } from '../../types-CUcTlTkE.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { P as PhoneAttribute } from '../../filters-B2cCCbDq.js';
3
- import { V as ValidationMessages } from '../../types-DGGecyHV.js';
2
+ import { P as PhoneAttribute } from '../../filters-HhqIAngv.js';
3
+ import { V as ValidationMessages } from '../../types-BSwM9PXc.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../filters-B9Pjped4.mjs';
3
- import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
2
+ import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../filters-DdEBxdbQ.mjs';
3
+ import { V as ValidationMessages } from '../../types-CUcTlTkE.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../filters-B2cCCbDq.js';
3
- import { V as ValidationMessages } from '../../types-DGGecyHV.js';
2
+ import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../filters-HhqIAngv.js';
3
+ import { V as ValidationMessages } from '../../types-BSwM9PXc.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { a as RichtextAttribute } from '../../filters-B9Pjped4.mjs';
3
- import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
2
+ import { a as RichtextAttribute } from '../../filters-DdEBxdbQ.mjs';
3
+ import { V as ValidationMessages } from '../../types-CUcTlTkE.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { a as RichtextAttribute } from '../../filters-B2cCCbDq.js';
3
- import { V as ValidationMessages } from '../../types-DGGecyHV.js';
2
+ import { a as RichtextAttribute } from '../../filters-HhqIAngv.js';
3
+ import { V as ValidationMessages } from '../../types-BSwM9PXc.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../filters-B9Pjped4.mjs';
3
- import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
2
+ import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../filters-DdEBxdbQ.mjs';
3
+ import { V as ValidationMessages } from '../../types-CUcTlTkE.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../filters-B2cCCbDq.js';
3
- import { V as ValidationMessages } from '../../types-DGGecyHV.js';
2
+ import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../filters-HhqIAngv.js';
3
+ import { V as ValidationMessages } from '../../types-BSwM9PXc.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { U as UserAttribute } from '../../filters-B9Pjped4.mjs';
3
- import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
2
+ import { U as UserAttribute } from '../../filters-DdEBxdbQ.mjs';
3
+ import { V as ValidationMessages } from '../../types-CUcTlTkE.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { U as UserAttribute } from '../../filters-B2cCCbDq.js';
3
- import { V as ValidationMessages } from '../../types-DGGecyHV.js';
2
+ import { U as UserAttribute } from '../../filters-HhqIAngv.js';
3
+ import { V as ValidationMessages } from '../../types-BSwM9PXc.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { e as FormulaAttribute } from '../../filters-B9Pjped4.mjs';
3
- import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
2
+ import { e as FormulaAttribute } from '../../filters-DdEBxdbQ.mjs';
3
+ import { V as ValidationMessages } from '../../types-CUcTlTkE.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { e as FormulaAttribute } from '../../filters-B2cCCbDq.js';
3
- import { V as ValidationMessages } from '../../types-DGGecyHV.js';
2
+ import { e as FormulaAttribute } from '../../filters-HhqIAngv.js';
3
+ import { V as ValidationMessages } from '../../types-BSwM9PXc.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { f as RollupAttribute } from '../../filters-B9Pjped4.mjs';
3
- import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
2
+ import { f as RollupAttribute } from '../../filters-DdEBxdbQ.mjs';
3
+ import { V as ValidationMessages } from '../../types-CUcTlTkE.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { f as RollupAttribute } from '../../filters-B2cCCbDq.js';
3
- import { V as ValidationMessages } from '../../types-DGGecyHV.js';
2
+ import { f as RollupAttribute } from '../../filters-HhqIAngv.js';
3
+ import { V as ValidationMessages } from '../../types-BSwM9PXc.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { n as AttributeType } from '../../filters-B9Pjped4.mjs';
2
+ import { n as AttributeType } from '../../filters-DdEBxdbQ.mjs';
3
3
  import '@stndrds/constants';
4
4
  import '../../utils.mjs';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { n as AttributeType } from '../../filters-B2cCCbDq.js';
2
+ import { n as AttributeType } from '../../filters-HhqIAngv.js';
3
3
  import '@stndrds/constants';
4
4
  import '../../utils.js';
5
5
 
@@ -1,7 +1,7 @@
1
- import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
2
- export { a as ValidationResult } from '../../types-DqpxKOcD.mjs';
1
+ import { V as ValidationMessages } from '../../types-CUcTlTkE.mjs';
2
+ export { a as ValidationResult } from '../../types-CUcTlTkE.mjs';
3
3
  import { z } from 'zod';
4
- import '../../filters-B9Pjped4.mjs';
4
+ import '../../filters-DdEBxdbQ.mjs';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.mjs';
7
7
 
@@ -1,7 +1,7 @@
1
- import { V as ValidationMessages } from '../../types-DGGecyHV.js';
2
- export { a as ValidationResult } from '../../types-DGGecyHV.js';
1
+ import { V as ValidationMessages } from '../../types-BSwM9PXc.js';
2
+ export { a as ValidationResult } from '../../types-BSwM9PXc.js';
3
3
  import { z } from 'zod';
4
- import '../../filters-B2cCCbDq.js';
4
+ import '../../filters-HhqIAngv.js';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.js';
7
7
 
@@ -1,7 +1,7 @@
1
- export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-YWZowk1B.mjs';
1
+ export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-Cty43yIT.mjs';
2
2
  import { z } from 'zod';
3
- import { O as ObjectDefinition } from '../../filters-B9Pjped4.mjs';
4
- import '../../types-DqpxKOcD.mjs';
3
+ import { O as ObjectDefinition } from '../../filters-DdEBxdbQ.mjs';
4
+ import '../../types-CUcTlTkE.mjs';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.mjs';
7
7
 
@@ -1,7 +1,7 @@
1
- export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-icxxQQJQ.js';
1
+ export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-Dsf49fWz.js';
2
2
  import { z } from 'zod';
3
- import { O as ObjectDefinition } from '../../filters-B2cCCbDq.js';
4
- import '../../types-DGGecyHV.js';
3
+ import { O as ObjectDefinition } from '../../filters-HhqIAngv.js';
4
+ import '../../types-BSwM9PXc.js';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.js';
7
7
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { g as CheckboxAttribute } from '../../filters-B9Pjped4.mjs';
3
- import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
2
+ import { g as CheckboxAttribute } from '../../filters-DdEBxdbQ.mjs';
3
+ import { V as ValidationMessages } from '../../types-CUcTlTkE.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { g as CheckboxAttribute } from '../../filters-B2cCCbDq.js';
3
- import { V as ValidationMessages } from '../../types-DGGecyHV.js';
2
+ import { g as CheckboxAttribute } from '../../filters-HhqIAngv.js';
3
+ import { V as ValidationMessages } from '../../types-BSwM9PXc.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { D as DateAttribute } from '../../filters-B9Pjped4.mjs';
3
- import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
2
+ import { D as DateAttribute } from '../../filters-DdEBxdbQ.mjs';
3
+ import { V as ValidationMessages } from '../../types-CUcTlTkE.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { D as DateAttribute } from '../../filters-B2cCCbDq.js';
3
- import { V as ValidationMessages } from '../../types-DGGecyHV.js';
2
+ import { D as DateAttribute } from '../../filters-HhqIAngv.js';
3
+ import { V as ValidationMessages } from '../../types-BSwM9PXc.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { N as NumberAttribute } from '../../filters-B9Pjped4.mjs';
3
- import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
2
+ import { N as NumberAttribute } from '../../filters-DdEBxdbQ.mjs';
3
+ import { V as ValidationMessages } from '../../types-CUcTlTkE.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { N as NumberAttribute } from '../../filters-B2cCCbDq.js';
3
- import { V as ValidationMessages } from '../../types-DGGecyHV.js';
2
+ import { N as NumberAttribute } from '../../filters-HhqIAngv.js';
3
+ import { V as ValidationMessages } from '../../types-BSwM9PXc.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { h as RatingAttribute } from '../../filters-B9Pjped4.mjs';
3
- import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
2
+ import { h as RatingAttribute } from '../../filters-DdEBxdbQ.mjs';
3
+ import { V as ValidationMessages } from '../../types-CUcTlTkE.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { h as RatingAttribute } from '../../filters-B2cCCbDq.js';
3
- import { V as ValidationMessages } from '../../types-DGGecyHV.js';
2
+ import { h as RatingAttribute } from '../../filters-HhqIAngv.js';
3
+ import { V as ValidationMessages } from '../../types-BSwM9PXc.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { T as TextAreaAttribute, i as TextAttribute } from '../../filters-B9Pjped4.mjs';
3
- import { V as ValidationMessages } from '../../types-DqpxKOcD.mjs';
2
+ import { T as TextAreaAttribute, i as TextAttribute } from '../../filters-DdEBxdbQ.mjs';
3
+ import { V as ValidationMessages } from '../../types-CUcTlTkE.mjs';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.mjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { T as TextAreaAttribute, i as TextAttribute } from '../../filters-B2cCCbDq.js';
3
- import { V as ValidationMessages } from '../../types-DGGecyHV.js';
2
+ import { T as TextAreaAttribute, i as TextAttribute } from '../../filters-HhqIAngv.js';
3
+ import { V as ValidationMessages } from '../../types-BSwM9PXc.js';
4
4
  import '@stndrds/constants';
5
5
  import '../../utils.js';
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stndrds/schema",
3
- "version": "1.0.0-alpha.176",
3
+ "version": "1.0.0-alpha.178",
4
4
  "description": "Standard schema definitions and utilities",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -131,7 +131,7 @@
131
131
  "expr-eval": "^2.0.2",
132
132
  "libphonenumber-js": "^1.12.31",
133
133
  "zod": "^4.2.1",
134
- "@stndrds/constants": "1.0.0-alpha.176"
134
+ "@stndrds/constants": "1.0.0-alpha.178"
135
135
  },
136
136
  "devDependencies": {
137
137
  "@types/node": "^25.0.3",