@stndrds/schema 1.0.0-alpha.203 → 1.0.0-alpha.204

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 (47) hide show
  1. package/dist/{attributes-Cy9o_xM1.d.ts → attributes--APpo6Vp.d.ts} +28 -1
  2. package/dist/{attributes-Cn0v3e37.d.mts → attributes-C1WwLpp9.d.mts} +28 -1
  3. package/dist/{helpers-LCnn6DG3.d.ts → helpers-DLrvi7WO.d.ts} +2 -2
  4. package/dist/{helpers-CED0HyXm.d.mts → helpers-DgZYyORn.d.mts} +2 -2
  5. package/dist/index.d.mts +5 -31
  6. package/dist/index.d.ts +5 -31
  7. package/dist/index.js +1 -0
  8. package/dist/index.mjs +1 -0
  9. package/dist/{types-B12E9LFe.d.ts → types-D7_-64EG.d.ts} +1 -1
  10. package/dist/{types-CORdDGpb.d.mts → types-DUmDvKBW.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/text.d.mts +2 -2
  46. package/dist/validation/primitives/text.d.ts +2 -2
  47. package/package.json +2 -2
@@ -1,6 +1,32 @@
1
1
  import { IconName, CountryIso3, CurrencyCode, ColorId, MimeType } from '@stndrds/constants';
2
2
  import { Uuid } from './utils.js';
3
3
 
4
+ type ComputedFormulaAstNode = ComputedFormulaLiteralNode | ComputedFormulaPathNode | ComputedFormulaCallNode | ComputedFormulaBinaryNode;
5
+ interface ComputedFormulaLiteralNode {
6
+ kind: "literal";
7
+ value: string | number | boolean | null;
8
+ }
9
+ interface ComputedFormulaPathNode {
10
+ kind: "path";
11
+ parts: string[];
12
+ }
13
+ interface ComputedFormulaCallNode {
14
+ kind: "call";
15
+ functionName: string;
16
+ args: ComputedFormulaAstNode[];
17
+ }
18
+ interface ComputedFormulaBinaryNode {
19
+ kind: "binary";
20
+ operator: ComputedFormulaBinaryOperator;
21
+ left: ComputedFormulaAstNode;
22
+ right: ComputedFormulaAstNode;
23
+ }
24
+ type ComputedFormulaBinaryOperator = ">" | "<" | ">=" | "<=" | "==" | "!=" | "+" | "-" | "*" | "/";
25
+ declare class ComputedFormulaParseError extends Error {
26
+ constructor(message: string);
27
+ }
28
+ declare function parseComputedFormula(expression: string): ComputedFormulaAstNode;
29
+
4
30
  type ComputedReturnType = "text" | "number" | "boolean" | "date" | "select" | "multiselect";
5
31
  type ComputedFieldKind = "formula" | "rollup";
6
32
  type ComputedValueType = {
@@ -51,6 +77,7 @@ interface ComputedPlan {
51
77
  optionsSource?: ComputedOptionsSource;
52
78
  targetAttributeType?: AttributeType;
53
79
  dependenciesHash: string;
80
+ ast?: ComputedFormulaAstNode;
54
81
  }
55
82
 
56
83
  interface DocumentLayout {
@@ -890,4 +917,4 @@ declare function isAttributeSortable(attr: {
890
917
  type: AttributeType;
891
918
  }): boolean;
892
919
 
893
- export { DEFAULT_DOCUMENT_SLOT 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 RollupFunction as G, type UserReferenceType as H, type MigrationDefinition as I, type AttributeGroup as J, type BaseAttribute as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type BuiltInTransform as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type ComputedAttributeState as V, type ComputedFieldKind as W, type ComputedStateStatus as X, type CreateDocument as Y, type CreateDocumentLink as Z, type CreateDocumentSlot as _, type RichtextAttribute as a, type DateFormat as a0, type DateValue as a1, type Document as a2, type DocumentKind as a3, type DocumentLayoutVariant as a4, type DocumentListOptions as a5, type DocumentSlot as a6, type DocumentWithSlots as a7, type DocumentWithSubCount as a8, type FolderPreset as a9, MAX_PRESET_DEPTH as aa, type NumberUnit as ab, type ObjectAttribute as ac, type ObjectRecord as ad, type OptionPropertyAttribute as ae, type PresetNode as af, type PropertyAttribute as ag, type PropertyType as ah, RELATION_TARGET_ANY as ai, RESERVED_ATTRIBUTE_NAMES as aj, type RecordDocuments as ak, type ReservedAttributeName as al, type RichTextAttribute as am, SYSTEM_FIELD_NAMES as an, type SlotStatus as ao, type StatusGroup as ap, type SystemFieldName as aq, type UpdateDocument as ar, type UpdateDocumentSlot as as, hasOptions as at, inferInverseCardinality as au, isAttributeSortable as av, isBilateralRelation as aw, isUniversalRelation as ax, type MultiselectAttribute as b, type SelectAttribute as c, type StatusAttribute as d, type FormulaAttribute as e, type RollupAttribute as f, type CheckboxAttribute as g, type CompletionStatus as h, type ComputedValueType as i, type ComputedReturnType as j, type AttributeType as k, type ComputedOptionsSource as l, type ComputedDependency as m, type ComputedPlan as n, type Timestamps as o, type DocumentLayout as p, type SchemaOperation as q, type LocationGranularity as r, type Location as s, type DocumentAttribute as t, type Phone as u, type Currency as v, type DocumentSlotConfig as w, type PropertySchema as x, type Option as y, type FormulaReturnType as z };
920
+ export { type ComputedFormulaLiteralNode 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 RollupFunction as H, type UserReferenceType as I, type MigrationDefinition as J, type AttributeGroup as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type BaseAttribute as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type BuiltInTransform as V, type ComputedAttributeState as W, type ComputedFieldKind as X, type ComputedFormulaBinaryNode as Y, type ComputedFormulaBinaryOperator as Z, type ComputedFormulaCallNode as _, type RichtextAttribute as a, ComputedFormulaParseError as a0, type ComputedFormulaPathNode as a1, type ComputedStateStatus as a2, type CreateDocument as a3, type CreateDocumentLink as a4, type CreateDocumentSlot as a5, DEFAULT_DOCUMENT_SLOT as a6, type DateFormat as a7, type DateValue as a8, type Document as a9, hasOptions as aA, inferInverseCardinality as aB, isAttributeSortable as aC, isBilateralRelation as aD, isUniversalRelation as aE, parseComputedFormula as aF, type DocumentKind as aa, type DocumentLayoutVariant as ab, type DocumentListOptions as ac, type DocumentSlot as ad, type DocumentWithSlots as ae, type DocumentWithSubCount as af, type FolderPreset as ag, MAX_PRESET_DEPTH as ah, type NumberUnit as ai, type ObjectAttribute as aj, type ObjectRecord as ak, type OptionPropertyAttribute as al, type PresetNode as am, type PropertyAttribute as an, type PropertyType as ao, RELATION_TARGET_ANY as ap, RESERVED_ATTRIBUTE_NAMES as aq, type RecordDocuments as ar, type ReservedAttributeName as as, type RichTextAttribute as at, SYSTEM_FIELD_NAMES as au, type SlotStatus as av, type StatusGroup as aw, type SystemFieldName as ax, type UpdateDocument as ay, type UpdateDocumentSlot as az, type MultiselectAttribute as b, type SelectAttribute as c, type StatusAttribute as d, type FormulaAttribute as e, type RollupAttribute as f, type CheckboxAttribute as g, type CompletionStatus as h, type ComputedValueType as i, type ComputedReturnType as j, type AttributeType as k, type ComputedOptionsSource as l, type ComputedDependency as m, type ComputedPlan as n, type ComputedFormulaAstNode as o, type Timestamps as p, type DocumentLayout as q, type SchemaOperation as r, type LocationGranularity as s, type Location as t, type DocumentAttribute as u, type Phone as v, type Currency as w, type DocumentSlotConfig as x, type PropertySchema as y, type Option as z };
@@ -1,6 +1,32 @@
1
1
  import { IconName, CountryIso3, CurrencyCode, ColorId, MimeType } from '@stndrds/constants';
2
2
  import { Uuid } from './utils.mjs';
3
3
 
4
+ type ComputedFormulaAstNode = ComputedFormulaLiteralNode | ComputedFormulaPathNode | ComputedFormulaCallNode | ComputedFormulaBinaryNode;
5
+ interface ComputedFormulaLiteralNode {
6
+ kind: "literal";
7
+ value: string | number | boolean | null;
8
+ }
9
+ interface ComputedFormulaPathNode {
10
+ kind: "path";
11
+ parts: string[];
12
+ }
13
+ interface ComputedFormulaCallNode {
14
+ kind: "call";
15
+ functionName: string;
16
+ args: ComputedFormulaAstNode[];
17
+ }
18
+ interface ComputedFormulaBinaryNode {
19
+ kind: "binary";
20
+ operator: ComputedFormulaBinaryOperator;
21
+ left: ComputedFormulaAstNode;
22
+ right: ComputedFormulaAstNode;
23
+ }
24
+ type ComputedFormulaBinaryOperator = ">" | "<" | ">=" | "<=" | "==" | "!=" | "+" | "-" | "*" | "/";
25
+ declare class ComputedFormulaParseError extends Error {
26
+ constructor(message: string);
27
+ }
28
+ declare function parseComputedFormula(expression: string): ComputedFormulaAstNode;
29
+
4
30
  type ComputedReturnType = "text" | "number" | "boolean" | "date" | "select" | "multiselect";
5
31
  type ComputedFieldKind = "formula" | "rollup";
6
32
  type ComputedValueType = {
@@ -51,6 +77,7 @@ interface ComputedPlan {
51
77
  optionsSource?: ComputedOptionsSource;
52
78
  targetAttributeType?: AttributeType;
53
79
  dependenciesHash: string;
80
+ ast?: ComputedFormulaAstNode;
54
81
  }
55
82
 
56
83
  interface DocumentLayout {
@@ -890,4 +917,4 @@ declare function isAttributeSortable(attr: {
890
917
  type: AttributeType;
891
918
  }): boolean;
892
919
 
893
- export { DEFAULT_DOCUMENT_SLOT 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 RollupFunction as G, type UserReferenceType as H, type MigrationDefinition as I, type AttributeGroup as J, type BaseAttribute as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type BuiltInTransform as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type ComputedAttributeState as V, type ComputedFieldKind as W, type ComputedStateStatus as X, type CreateDocument as Y, type CreateDocumentLink as Z, type CreateDocumentSlot as _, type RichtextAttribute as a, type DateFormat as a0, type DateValue as a1, type Document as a2, type DocumentKind as a3, type DocumentLayoutVariant as a4, type DocumentListOptions as a5, type DocumentSlot as a6, type DocumentWithSlots as a7, type DocumentWithSubCount as a8, type FolderPreset as a9, MAX_PRESET_DEPTH as aa, type NumberUnit as ab, type ObjectAttribute as ac, type ObjectRecord as ad, type OptionPropertyAttribute as ae, type PresetNode as af, type PropertyAttribute as ag, type PropertyType as ah, RELATION_TARGET_ANY as ai, RESERVED_ATTRIBUTE_NAMES as aj, type RecordDocuments as ak, type ReservedAttributeName as al, type RichTextAttribute as am, SYSTEM_FIELD_NAMES as an, type SlotStatus as ao, type StatusGroup as ap, type SystemFieldName as aq, type UpdateDocument as ar, type UpdateDocumentSlot as as, hasOptions as at, inferInverseCardinality as au, isAttributeSortable as av, isBilateralRelation as aw, isUniversalRelation as ax, type MultiselectAttribute as b, type SelectAttribute as c, type StatusAttribute as d, type FormulaAttribute as e, type RollupAttribute as f, type CheckboxAttribute as g, type CompletionStatus as h, type ComputedValueType as i, type ComputedReturnType as j, type AttributeType as k, type ComputedOptionsSource as l, type ComputedDependency as m, type ComputedPlan as n, type Timestamps as o, type DocumentLayout as p, type SchemaOperation as q, type LocationGranularity as r, type Location as s, type DocumentAttribute as t, type Phone as u, type Currency as v, type DocumentSlotConfig as w, type PropertySchema as x, type Option as y, type FormulaReturnType as z };
920
+ export { type ComputedFormulaLiteralNode 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 RollupFunction as H, type UserReferenceType as I, type MigrationDefinition as J, type AttributeGroup as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type BaseAttribute as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type BuiltInTransform as V, type ComputedAttributeState as W, type ComputedFieldKind as X, type ComputedFormulaBinaryNode as Y, type ComputedFormulaBinaryOperator as Z, type ComputedFormulaCallNode as _, type RichtextAttribute as a, ComputedFormulaParseError as a0, type ComputedFormulaPathNode as a1, type ComputedStateStatus as a2, type CreateDocument as a3, type CreateDocumentLink as a4, type CreateDocumentSlot as a5, DEFAULT_DOCUMENT_SLOT as a6, type DateFormat as a7, type DateValue as a8, type Document as a9, hasOptions as aA, inferInverseCardinality as aB, isAttributeSortable as aC, isBilateralRelation as aD, isUniversalRelation as aE, parseComputedFormula as aF, type DocumentKind as aa, type DocumentLayoutVariant as ab, type DocumentListOptions as ac, type DocumentSlot as ad, type DocumentWithSlots as ae, type DocumentWithSubCount as af, type FolderPreset as ag, MAX_PRESET_DEPTH as ah, type NumberUnit as ai, type ObjectAttribute as aj, type ObjectRecord as ak, type OptionPropertyAttribute as al, type PresetNode as am, type PropertyAttribute as an, type PropertyType as ao, RELATION_TARGET_ANY as ap, RESERVED_ATTRIBUTE_NAMES as aq, type RecordDocuments as ar, type ReservedAttributeName as as, type RichTextAttribute as at, SYSTEM_FIELD_NAMES as au, type SlotStatus as av, type StatusGroup as aw, type SystemFieldName as ax, type UpdateDocument as ay, type UpdateDocumentSlot as az, type MultiselectAttribute as b, type SelectAttribute as c, type StatusAttribute as d, type FormulaAttribute as e, type RollupAttribute as f, type CheckboxAttribute as g, type CompletionStatus as h, type ComputedValueType as i, type ComputedReturnType as j, type AttributeType as k, type ComputedOptionsSource as l, type ComputedDependency as m, type ComputedPlan as n, type ComputedFormulaAstNode as o, type Timestamps as p, type DocumentLayout as q, type SchemaOperation as r, type LocationGranularity as s, type Location as t, type DocumentAttribute as u, type Phone as v, type Currency as w, type DocumentSlotConfig as x, type PropertySchema as y, type Option as z };
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-Cy9o_xM1.js';
3
- import { V as ValidationMessages, a as ValidationResult } from './types-B12E9LFe.js';
2
+ import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes--APpo6Vp.js';
3
+ import { V as ValidationMessages, a as ValidationResult } from './types-D7_-64EG.js';
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, h as CompletionStatus } from './attributes-Cn0v3e37.mjs';
3
- import { V as ValidationMessages, a as ValidationResult } from './types-CORdDGpb.mjs';
2
+ import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-C1WwLpp9.mjs';
3
+ import { V as ValidationMessages, a as ValidationResult } from './types-DUmDvKBW.mjs';
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 { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, A as Attribute, o as Timestamps, p as DocumentLayout, h as CompletionStatus, q as SchemaOperation, r as LocationGranularity, s as Location, e as FormulaAttribute, t as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, u as Phone, v as Currency, D as DateAttribute, U as UserAttribute, w as DocumentSlotConfig, x as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, y as Option, 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 RollupFunction, H as UserReferenceType, I as MigrationDefinition, O as ObjectDefinition } from './attributes-Cn0v3e37.mjs';
2
- export { J as AttributeGroup, K as BaseAttribute, Q as BuiltInTransform, V as ComputedAttributeState, W as ComputedFieldKind, X as ComputedStateStatus, Y as CreateDocument, Z as CreateDocumentLink, _ as CreateDocumentSlot, $ as DEFAULT_DOCUMENT_SLOT, a0 as DateFormat, a1 as DateValue, a2 as Document, a3 as DocumentKind, a4 as DocumentLayoutVariant, a5 as DocumentListOptions, a6 as DocumentSlot, a7 as DocumentWithSlots, a8 as DocumentWithSubCount, a9 as FolderPreset, aa as MAX_PRESET_DEPTH, ab as NumberUnit, ac as ObjectAttribute, ad as ObjectRecord, ae as OptionPropertyAttribute, af as PresetNode, ag as PropertyAttribute, ah as PropertyType, ai as RELATION_TARGET_ANY, aj as RESERVED_ATTRIBUTE_NAMES, ak as RecordDocuments, al as ReservedAttributeName, am as RichTextAttribute, an as SYSTEM_FIELD_NAMES, ao as SlotStatus, ap as StatusGroup, aq as SystemFieldName, ar as UpdateDocument, as as UpdateDocumentSlot, at as hasOptions, au as inferInverseCardinality, av as isAttributeSortable, aw as isBilateralRelation, ax as isUniversalRelation } from './attributes-Cn0v3e37.mjs';
1
+ import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, o as ComputedFormulaAstNode, A as Attribute, p as Timestamps, q as DocumentLayout, h as CompletionStatus, r as SchemaOperation, s as LocationGranularity, t as Location, e as FormulaAttribute, u as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, v as Phone, w as Currency, D as DateAttribute, U as UserAttribute, x as DocumentSlotConfig, y as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, z as Option, 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 RollupFunction, I as UserReferenceType, J as MigrationDefinition, O as ObjectDefinition } from './attributes-C1WwLpp9.mjs';
2
+ export { K as AttributeGroup, Q as BaseAttribute, V as BuiltInTransform, W as ComputedAttributeState, X as ComputedFieldKind, Y as ComputedFormulaBinaryNode, Z as ComputedFormulaBinaryOperator, _ as ComputedFormulaCallNode, $ as ComputedFormulaLiteralNode, a0 as ComputedFormulaParseError, a1 as ComputedFormulaPathNode, a2 as ComputedStateStatus, a3 as CreateDocument, a4 as CreateDocumentLink, a5 as CreateDocumentSlot, a6 as DEFAULT_DOCUMENT_SLOT, a7 as DateFormat, a8 as DateValue, a9 as Document, aa as DocumentKind, ab as DocumentLayoutVariant, ac as DocumentListOptions, ad as DocumentSlot, ae as DocumentWithSlots, af as DocumentWithSubCount, ag as FolderPreset, ah as MAX_PRESET_DEPTH, ai as NumberUnit, aj as ObjectAttribute, ak as ObjectRecord, al as OptionPropertyAttribute, am as PresetNode, an as PropertyAttribute, ao as PropertyType, ap as RELATION_TARGET_ANY, aq as RESERVED_ATTRIBUTE_NAMES, ar as RecordDocuments, as as ReservedAttributeName, at as RichTextAttribute, au as SYSTEM_FIELD_NAMES, av as SlotStatus, aw as StatusGroup, ax as SystemFieldName, ay as UpdateDocument, az as UpdateDocumentSlot, aA as hasOptions, aB as inferInverseCardinality, aC as isAttributeSortable, aD as isBilateralRelation, aE as isUniversalRelation, aF as parseComputedFormula } from './attributes-C1WwLpp9.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-CORdDGpb.mjs';
9
+ export { V as ValidationMessages } from './types-DUmDvKBW.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, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-CED0HyXm.mjs';
12
+ export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-DgZYyORn.mjs';
13
13
 
14
14
  declare const COMPUTED_FUNCTION_NAMES: readonly ["if", "concat", "sum", "avg", "count", "min", "max", "earliest", "latest", "unique", "first", "percent_empty", "percent_not_empty", "count_empty", "count_not_empty", "count_unique"];
15
15
  type ComputedFunctionName = (typeof COMPUTED_FUNCTION_NAMES)[number];
@@ -22,32 +22,6 @@ interface ComputedFunctionSignature {
22
22
  declare const COMPUTED_FUNCTIONS: Record<ComputedFunctionName, ComputedFunctionSignature>;
23
23
  declare function isComputedFunctionName(name: string): name is ComputedFunctionName;
24
24
 
25
- type ComputedFormulaAstNode = ComputedFormulaLiteralNode | ComputedFormulaPathNode | ComputedFormulaCallNode | ComputedFormulaBinaryNode;
26
- interface ComputedFormulaLiteralNode {
27
- kind: "literal";
28
- value: string | number | boolean | null;
29
- }
30
- interface ComputedFormulaPathNode {
31
- kind: "path";
32
- parts: string[];
33
- }
34
- interface ComputedFormulaCallNode {
35
- kind: "call";
36
- functionName: string;
37
- args: ComputedFormulaAstNode[];
38
- }
39
- interface ComputedFormulaBinaryNode {
40
- kind: "binary";
41
- operator: ComputedFormulaBinaryOperator;
42
- left: ComputedFormulaAstNode;
43
- right: ComputedFormulaAstNode;
44
- }
45
- type ComputedFormulaBinaryOperator = ">" | "<" | ">=" | "<=" | "==" | "!=" | "+" | "-" | "*" | "/";
46
- declare class ComputedFormulaParseError extends Error {
47
- constructor(message: string);
48
- }
49
- declare function parseComputedFormula(expression: string): ComputedFormulaAstNode;
50
-
51
25
  interface ComputedCompileAttribute {
52
26
  name: string;
53
27
  type: AttributeType;
@@ -7659,4 +7633,4 @@ interface QualifiedRuleValidationContext {
7659
7633
  }
7660
7634
  declare function validateQualifiedRule(rule: FilterRule, context: QualifiedRuleValidationContext): void;
7661
7635
 
7662
- export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, type AIGenerationInputMap, type AIGenerationResult, type AIGenerationType, type AIGenerationUsage, 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, ATTRIBUTE_FILTER_OPERATORS, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, type ActivityTab, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AdvancedFilterState, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionPatchLiveEvent, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type AgentUnreadPatchLiveEvent, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, type AttributeGroupField, AttributeInUseError, type AttributeLifecycleCapabilities, AttributeNotFoundError, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, 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, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, ChangeTypeNotSupportedError, type ChannelRevokedLiveEvent, CheckboxAttribute, type CompileComputedFormulaInput, CompletionStatus, type ComputedCompileAttribute, type ComputedCompileObject, type ComputedCompileSchema, ComputedDependency, type ComputedDependencyGraphNode, type ComputedFormulaAstNode, type ComputedFormulaBinaryNode, type ComputedFormulaBinaryOperator, type ComputedFormulaCallNode, ComputedFormulaCompileError, type ComputedFormulaLiteralNode, ComputedFormulaParseError, type ComputedFormulaPathNode, type ComputedFormulaResult, type ComputedFunctionCategory, type ComputedFunctionMetadata, type ComputedFunctionName, type ComputedFunctionSignature, ComputedOptionsSource, ComputedPlan, ComputedReturnType, ComputedValueType, ConcurrentModificationError, type ConfigOverrides, type ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, type CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CurrencyFilterValue, type CustomAttributeValue, type CustomTab, 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, type DeletedMode, DestructiveSyncNotAllowedError, DetailViewBuilder, type DetailViewConfig, type DetailViewDefinition, type DetailViewLayout, DocumentAttribute, DocumentLayout, DocumentSlotConfig, DocumentSlotValidationError, type DocumentsTab, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type Eager, type EffectivePermissions, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtendedFilterRule, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, type Field, type FieldGroup, type FieldHistoryEntry, type File, FileAttribute, type FileListOptions, type FileVisibility, type FilterCombinator, type FilterGroup, type FilterOperator, type FilterRule, type FilterState, type FilterValue, type FlagLevel, type FlagOverride, FlagRegistry, FlagService, type FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormDensity, 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 FormTab, type FormTextRow, type FormsTab, FormulaAttribute, type FormulaGenerationAttribute, type FormulaGenerationInput, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, type Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, type InverseSource, type InviteUserInput, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, type ListOptions, ListViewBuilder, type ListViewConfig, type ListViewDefinition, type ListViewLayout, type ListViewTab, ListViewTabConfigBuilder, type LiveChannel, type LiveChannelKind, type LiveErrorPayload, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveGapPayload, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, type ObjectConfig, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, OrphanSystemAttributeError, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type Permission, type PermissionScope, Phone, PhoneAttribute, type PhoneFilterValue, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, type QueryState, type ReasoningPartData, type RecordAgentEvent, type RecordDeletedLiveEvent, type RecordFieldPatch, type RecordMetadata, RecordNotFoundError, type RecordPatchLiveEvent, type RecordReference, RecordReferencedError, type RegexGenerationInput, RelationAttribute, type RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, type RelationSource, RelationTarget, type RelativeDateValue, RepositoryError, type RepositoryOperation, type ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, type RichtextTab, 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, SchemaOperation, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, type StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncCascadeError, SyncConflictError, SyncError, type SystemAttribute, type SystemAttributeI18nKey, SystemEntityImmutableError, type SystemFields, type SystemPermissions, type SystemResource, type Tab, TabBuilder, type TabType, type TableSource, type TableTab, TableTabConfig, TenantId, TextAttribute, type TextPartData, type ThinkingPartData, 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, UserReferenceType, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, type ViewConfig, type ViewDefinition, type ViewOverlay, type ViewProjectionStaleLiveEvent, type ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeInUseError, isAttributeKanbanGroupable, isAttributeSearchable, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, number, numberFlag, object, parseComputedFormula, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
7636
+ export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, type AIGenerationInputMap, type AIGenerationResult, type AIGenerationType, type AIGenerationUsage, 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, ATTRIBUTE_FILTER_OPERATORS, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, type ActivityTab, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AdvancedFilterState, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionPatchLiveEvent, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type AgentUnreadPatchLiveEvent, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, type AttributeGroupField, AttributeInUseError, type AttributeLifecycleCapabilities, AttributeNotFoundError, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, 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, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, ChangeTypeNotSupportedError, type ChannelRevokedLiveEvent, CheckboxAttribute, type CompileComputedFormulaInput, CompletionStatus, type ComputedCompileAttribute, type ComputedCompileObject, type ComputedCompileSchema, ComputedDependency, type ComputedDependencyGraphNode, ComputedFormulaAstNode, ComputedFormulaCompileError, type ComputedFormulaResult, type ComputedFunctionCategory, type ComputedFunctionMetadata, type ComputedFunctionName, type ComputedFunctionSignature, ComputedOptionsSource, ComputedPlan, ComputedReturnType, ComputedValueType, ConcurrentModificationError, type ConfigOverrides, type ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, type CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CurrencyFilterValue, type CustomAttributeValue, type CustomTab, 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, type DeletedMode, DestructiveSyncNotAllowedError, DetailViewBuilder, type DetailViewConfig, type DetailViewDefinition, type DetailViewLayout, DocumentAttribute, DocumentLayout, DocumentSlotConfig, DocumentSlotValidationError, type DocumentsTab, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type Eager, type EffectivePermissions, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtendedFilterRule, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, type Field, type FieldGroup, type FieldHistoryEntry, type File, FileAttribute, type FileListOptions, type FileVisibility, type FilterCombinator, type FilterGroup, type FilterOperator, type FilterRule, type FilterState, type FilterValue, type FlagLevel, type FlagOverride, FlagRegistry, FlagService, type FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormDensity, 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 FormTab, type FormTextRow, type FormsTab, FormulaAttribute, type FormulaGenerationAttribute, type FormulaGenerationInput, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, type Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, type InverseSource, type InviteUserInput, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, type ListOptions, ListViewBuilder, type ListViewConfig, type ListViewDefinition, type ListViewLayout, type ListViewTab, ListViewTabConfigBuilder, type LiveChannel, type LiveChannelKind, type LiveErrorPayload, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveGapPayload, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, type ObjectConfig, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, OrphanSystemAttributeError, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type Permission, type PermissionScope, Phone, PhoneAttribute, type PhoneFilterValue, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, type QueryState, type ReasoningPartData, type RecordAgentEvent, type RecordDeletedLiveEvent, type RecordFieldPatch, type RecordMetadata, RecordNotFoundError, type RecordPatchLiveEvent, type RecordReference, RecordReferencedError, type RegexGenerationInput, RelationAttribute, type RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, type RelationSource, RelationTarget, type RelativeDateValue, RepositoryError, type RepositoryOperation, type ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, type RichtextTab, 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, SchemaOperation, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, type StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncCascadeError, SyncConflictError, SyncError, type SystemAttribute, type SystemAttributeI18nKey, SystemEntityImmutableError, type SystemFields, type SystemPermissions, type SystemResource, type Tab, TabBuilder, type TabType, type TableSource, type TableTab, TableTabConfig, TenantId, TextAttribute, type TextPartData, type ThinkingPartData, 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, UserReferenceType, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, type ViewConfig, type ViewDefinition, type ViewOverlay, type ViewProjectionStaleLiveEvent, type ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeInUseError, isAttributeKanbanGroupable, isAttributeSearchable, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
package/dist/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, A as Attribute, o as Timestamps, p as DocumentLayout, h as CompletionStatus, q as SchemaOperation, r as LocationGranularity, s as Location, e as FormulaAttribute, t as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, u as Phone, v as Currency, D as DateAttribute, U as UserAttribute, w as DocumentSlotConfig, x as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, y as Option, 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 RollupFunction, H as UserReferenceType, I as MigrationDefinition, O as ObjectDefinition } from './attributes-Cy9o_xM1.js';
2
- export { J as AttributeGroup, K as BaseAttribute, Q as BuiltInTransform, V as ComputedAttributeState, W as ComputedFieldKind, X as ComputedStateStatus, Y as CreateDocument, Z as CreateDocumentLink, _ as CreateDocumentSlot, $ as DEFAULT_DOCUMENT_SLOT, a0 as DateFormat, a1 as DateValue, a2 as Document, a3 as DocumentKind, a4 as DocumentLayoutVariant, a5 as DocumentListOptions, a6 as DocumentSlot, a7 as DocumentWithSlots, a8 as DocumentWithSubCount, a9 as FolderPreset, aa as MAX_PRESET_DEPTH, ab as NumberUnit, ac as ObjectAttribute, ad as ObjectRecord, ae as OptionPropertyAttribute, af as PresetNode, ag as PropertyAttribute, ah as PropertyType, ai as RELATION_TARGET_ANY, aj as RESERVED_ATTRIBUTE_NAMES, ak as RecordDocuments, al as ReservedAttributeName, am as RichTextAttribute, an as SYSTEM_FIELD_NAMES, ao as SlotStatus, ap as StatusGroup, aq as SystemFieldName, ar as UpdateDocument, as as UpdateDocumentSlot, at as hasOptions, au as inferInverseCardinality, av as isAttributeSortable, aw as isBilateralRelation, ax as isUniversalRelation } from './attributes-Cy9o_xM1.js';
1
+ import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, o as ComputedFormulaAstNode, A as Attribute, p as Timestamps, q as DocumentLayout, h as CompletionStatus, r as SchemaOperation, s as LocationGranularity, t as Location, e as FormulaAttribute, u as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, v as Phone, w as Currency, D as DateAttribute, U as UserAttribute, x as DocumentSlotConfig, y as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, z as Option, 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 RollupFunction, I as UserReferenceType, J as MigrationDefinition, O as ObjectDefinition } from './attributes--APpo6Vp.js';
2
+ export { K as AttributeGroup, Q as BaseAttribute, V as BuiltInTransform, W as ComputedAttributeState, X as ComputedFieldKind, Y as ComputedFormulaBinaryNode, Z as ComputedFormulaBinaryOperator, _ as ComputedFormulaCallNode, $ as ComputedFormulaLiteralNode, a0 as ComputedFormulaParseError, a1 as ComputedFormulaPathNode, a2 as ComputedStateStatus, a3 as CreateDocument, a4 as CreateDocumentLink, a5 as CreateDocumentSlot, a6 as DEFAULT_DOCUMENT_SLOT, a7 as DateFormat, a8 as DateValue, a9 as Document, aa as DocumentKind, ab as DocumentLayoutVariant, ac as DocumentListOptions, ad as DocumentSlot, ae as DocumentWithSlots, af as DocumentWithSubCount, ag as FolderPreset, ah as MAX_PRESET_DEPTH, ai as NumberUnit, aj as ObjectAttribute, ak as ObjectRecord, al as OptionPropertyAttribute, am as PresetNode, an as PropertyAttribute, ao as PropertyType, ap as RELATION_TARGET_ANY, aq as RESERVED_ATTRIBUTE_NAMES, ar as RecordDocuments, as as ReservedAttributeName, at as RichTextAttribute, au as SYSTEM_FIELD_NAMES, av as SlotStatus, aw as StatusGroup, ax as SystemFieldName, ay as UpdateDocument, az as UpdateDocumentSlot, aA as hasOptions, aB as inferInverseCardinality, aC as isAttributeSortable, aD as isBilateralRelation, aE as isUniversalRelation, aF as parseComputedFormula } from './attributes--APpo6Vp.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-B12E9LFe.js';
9
+ export { V as ValidationMessages } from './types-D7_-64EG.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, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-LCnn6DG3.js';
12
+ export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-DLrvi7WO.js';
13
13
 
14
14
  declare const COMPUTED_FUNCTION_NAMES: readonly ["if", "concat", "sum", "avg", "count", "min", "max", "earliest", "latest", "unique", "first", "percent_empty", "percent_not_empty", "count_empty", "count_not_empty", "count_unique"];
15
15
  type ComputedFunctionName = (typeof COMPUTED_FUNCTION_NAMES)[number];
@@ -22,32 +22,6 @@ interface ComputedFunctionSignature {
22
22
  declare const COMPUTED_FUNCTIONS: Record<ComputedFunctionName, ComputedFunctionSignature>;
23
23
  declare function isComputedFunctionName(name: string): name is ComputedFunctionName;
24
24
 
25
- type ComputedFormulaAstNode = ComputedFormulaLiteralNode | ComputedFormulaPathNode | ComputedFormulaCallNode | ComputedFormulaBinaryNode;
26
- interface ComputedFormulaLiteralNode {
27
- kind: "literal";
28
- value: string | number | boolean | null;
29
- }
30
- interface ComputedFormulaPathNode {
31
- kind: "path";
32
- parts: string[];
33
- }
34
- interface ComputedFormulaCallNode {
35
- kind: "call";
36
- functionName: string;
37
- args: ComputedFormulaAstNode[];
38
- }
39
- interface ComputedFormulaBinaryNode {
40
- kind: "binary";
41
- operator: ComputedFormulaBinaryOperator;
42
- left: ComputedFormulaAstNode;
43
- right: ComputedFormulaAstNode;
44
- }
45
- type ComputedFormulaBinaryOperator = ">" | "<" | ">=" | "<=" | "==" | "!=" | "+" | "-" | "*" | "/";
46
- declare class ComputedFormulaParseError extends Error {
47
- constructor(message: string);
48
- }
49
- declare function parseComputedFormula(expression: string): ComputedFormulaAstNode;
50
-
51
25
  interface ComputedCompileAttribute {
52
26
  name: string;
53
27
  type: AttributeType;
@@ -7659,4 +7633,4 @@ interface QualifiedRuleValidationContext {
7659
7633
  }
7660
7634
  declare function validateQualifiedRule(rule: FilterRule, context: QualifiedRuleValidationContext): void;
7661
7635
 
7662
- export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, type AIGenerationInputMap, type AIGenerationResult, type AIGenerationType, type AIGenerationUsage, 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, ATTRIBUTE_FILTER_OPERATORS, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, type ActivityTab, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AdvancedFilterState, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionPatchLiveEvent, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type AgentUnreadPatchLiveEvent, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, type AttributeGroupField, AttributeInUseError, type AttributeLifecycleCapabilities, AttributeNotFoundError, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, 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, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, ChangeTypeNotSupportedError, type ChannelRevokedLiveEvent, CheckboxAttribute, type CompileComputedFormulaInput, CompletionStatus, type ComputedCompileAttribute, type ComputedCompileObject, type ComputedCompileSchema, ComputedDependency, type ComputedDependencyGraphNode, type ComputedFormulaAstNode, type ComputedFormulaBinaryNode, type ComputedFormulaBinaryOperator, type ComputedFormulaCallNode, ComputedFormulaCompileError, type ComputedFormulaLiteralNode, ComputedFormulaParseError, type ComputedFormulaPathNode, type ComputedFormulaResult, type ComputedFunctionCategory, type ComputedFunctionMetadata, type ComputedFunctionName, type ComputedFunctionSignature, ComputedOptionsSource, ComputedPlan, ComputedReturnType, ComputedValueType, ConcurrentModificationError, type ConfigOverrides, type ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, type CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CurrencyFilterValue, type CustomAttributeValue, type CustomTab, 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, type DeletedMode, DestructiveSyncNotAllowedError, DetailViewBuilder, type DetailViewConfig, type DetailViewDefinition, type DetailViewLayout, DocumentAttribute, DocumentLayout, DocumentSlotConfig, DocumentSlotValidationError, type DocumentsTab, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type Eager, type EffectivePermissions, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtendedFilterRule, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, type Field, type FieldGroup, type FieldHistoryEntry, type File, FileAttribute, type FileListOptions, type FileVisibility, type FilterCombinator, type FilterGroup, type FilterOperator, type FilterRule, type FilterState, type FilterValue, type FlagLevel, type FlagOverride, FlagRegistry, FlagService, type FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormDensity, 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 FormTab, type FormTextRow, type FormsTab, FormulaAttribute, type FormulaGenerationAttribute, type FormulaGenerationInput, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, type Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, type InverseSource, type InviteUserInput, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, type ListOptions, ListViewBuilder, type ListViewConfig, type ListViewDefinition, type ListViewLayout, type ListViewTab, ListViewTabConfigBuilder, type LiveChannel, type LiveChannelKind, type LiveErrorPayload, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveGapPayload, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, type ObjectConfig, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, OrphanSystemAttributeError, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type Permission, type PermissionScope, Phone, PhoneAttribute, type PhoneFilterValue, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, type QueryState, type ReasoningPartData, type RecordAgentEvent, type RecordDeletedLiveEvent, type RecordFieldPatch, type RecordMetadata, RecordNotFoundError, type RecordPatchLiveEvent, type RecordReference, RecordReferencedError, type RegexGenerationInput, RelationAttribute, type RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, type RelationSource, RelationTarget, type RelativeDateValue, RepositoryError, type RepositoryOperation, type ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, type RichtextTab, 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, SchemaOperation, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, type StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncCascadeError, SyncConflictError, SyncError, type SystemAttribute, type SystemAttributeI18nKey, SystemEntityImmutableError, type SystemFields, type SystemPermissions, type SystemResource, type Tab, TabBuilder, type TabType, type TableSource, type TableTab, TableTabConfig, TenantId, TextAttribute, type TextPartData, type ThinkingPartData, 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, UserReferenceType, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, type ViewConfig, type ViewDefinition, type ViewOverlay, type ViewProjectionStaleLiveEvent, type ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeInUseError, isAttributeKanbanGroupable, isAttributeSearchable, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, number, numberFlag, object, parseComputedFormula, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
7636
+ export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, type AIGenerationInputMap, type AIGenerationResult, type AIGenerationType, type AIGenerationUsage, 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, ATTRIBUTE_FILTER_OPERATORS, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, type ActivityTab, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AdvancedFilterState, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionPatchLiveEvent, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type AgentUnreadPatchLiveEvent, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, type AttributeGroupField, AttributeInUseError, type AttributeLifecycleCapabilities, AttributeNotFoundError, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, 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, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, ChangeTypeNotSupportedError, type ChannelRevokedLiveEvent, CheckboxAttribute, type CompileComputedFormulaInput, CompletionStatus, type ComputedCompileAttribute, type ComputedCompileObject, type ComputedCompileSchema, ComputedDependency, type ComputedDependencyGraphNode, ComputedFormulaAstNode, ComputedFormulaCompileError, type ComputedFormulaResult, type ComputedFunctionCategory, type ComputedFunctionMetadata, type ComputedFunctionName, type ComputedFunctionSignature, ComputedOptionsSource, ComputedPlan, ComputedReturnType, ComputedValueType, ConcurrentModificationError, type ConfigOverrides, type ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, type CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CurrencyFilterValue, type CustomAttributeValue, type CustomTab, 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, type DeletedMode, DestructiveSyncNotAllowedError, DetailViewBuilder, type DetailViewConfig, type DetailViewDefinition, type DetailViewLayout, DocumentAttribute, DocumentLayout, DocumentSlotConfig, DocumentSlotValidationError, type DocumentsTab, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type Eager, type EffectivePermissions, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtendedFilterRule, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, type Field, type FieldGroup, type FieldHistoryEntry, type File, FileAttribute, type FileListOptions, type FileVisibility, type FilterCombinator, type FilterGroup, type FilterOperator, type FilterRule, type FilterState, type FilterValue, type FlagLevel, type FlagOverride, FlagRegistry, FlagService, type FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormDensity, 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 FormTab, type FormTextRow, type FormsTab, FormulaAttribute, type FormulaGenerationAttribute, type FormulaGenerationInput, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, type Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, type InverseSource, type InviteUserInput, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, type ListOptions, ListViewBuilder, type ListViewConfig, type ListViewDefinition, type ListViewLayout, type ListViewTab, ListViewTabConfigBuilder, type LiveChannel, type LiveChannelKind, type LiveErrorPayload, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveGapPayload, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, type ObjectConfig, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, OrphanSystemAttributeError, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type Permission, type PermissionScope, Phone, PhoneAttribute, type PhoneFilterValue, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, type QueryState, type ReasoningPartData, type RecordAgentEvent, type RecordDeletedLiveEvent, type RecordFieldPatch, type RecordMetadata, RecordNotFoundError, type RecordPatchLiveEvent, type RecordReference, RecordReferencedError, type RegexGenerationInput, RelationAttribute, type RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, type RelationSource, RelationTarget, type RelativeDateValue, RepositoryError, type RepositoryOperation, type ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, type RichtextTab, 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, SchemaOperation, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, type StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncCascadeError, SyncConflictError, SyncError, type SystemAttribute, type SystemAttributeI18nKey, SystemEntityImmutableError, type SystemFields, type SystemPermissions, type SystemResource, type Tab, TabBuilder, type TabType, type TableSource, type TableTab, TableTabConfig, TenantId, TextAttribute, type TextPartData, type ThinkingPartData, 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, UserReferenceType, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, type ViewConfig, type ViewDefinition, type ViewOverlay, type ViewProjectionStaleLiveEvent, type ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeInUseError, isAttributeKanbanGroupable, isAttributeSearchable, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
package/dist/index.js CHANGED
@@ -5237,6 +5237,7 @@ function compileComputedFormula(input) {
5237
5237
  returnType: input.returnType,
5238
5238
  valueType: inferred.valueType,
5239
5239
  dependencies,
5240
+ ast,
5240
5241
  ...inferred.optionsSource ? { optionsSource: inferred.optionsSource } : {},
5241
5242
  ...inferred.targetAttributeType ? { targetAttributeType: inferred.targetAttributeType } : {},
5242
5243
  dependenciesHash: createDependenciesHash({
package/dist/index.mjs CHANGED
@@ -5234,6 +5234,7 @@ function compileComputedFormula(input) {
5234
5234
  returnType: input.returnType,
5235
5235
  valueType: inferred.valueType,
5236
5236
  dependencies,
5237
+ ast,
5237
5238
  ...inferred.optionsSource ? { optionsSource: inferred.optionsSource } : {},
5238
5239
  ...inferred.targetAttributeType ? { targetAttributeType: inferred.targetAttributeType } : {},
5239
5240
  dependenciesHash: createDependenciesHash({
@@ -1,4 +1,4 @@
1
- import { A as Attribute } from './attributes-Cy9o_xM1.js';
1
+ import { A as Attribute } from './attributes--APpo6Vp.js';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
@@ -1,4 +1,4 @@
1
- import { A as Attribute } from './attributes-Cn0v3e37.mjs';
1
+ import { A as Attribute } from './attributes-C1WwLpp9.mjs';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
@@ -1,8 +1,8 @@
1
- export { V as ValidationMessages } from '../types-CORdDGpb.mjs';
1
+ export { V as ValidationMessages } from '../types-DUmDvKBW.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, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-CED0HyXm.mjs';
5
- import '../attributes-Cn0v3e37.mjs';
4
+ export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-DgZYyORn.mjs';
5
+ import '../attributes-C1WwLpp9.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-B12E9LFe.js';
1
+ export { V as ValidationMessages } from '../types-D7_-64EG.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, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-LCnn6DG3.js';
5
- import '../attributes-Cy9o_xM1.js';
4
+ export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../helpers-DLrvi7WO.js';
5
+ import '../attributes--APpo6Vp.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 '../../attributes-Cn0v3e37.mjs';
3
- import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
2
+ import { C as CurrencyAttribute } from '../../attributes-C1WwLpp9.mjs';
3
+ import { V as ValidationMessages } from '../../types-DUmDvKBW.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 '../../attributes-Cy9o_xM1.js';
3
- import { V as ValidationMessages } from '../../types-B12E9LFe.js';
2
+ import { C as CurrencyAttribute } from '../../attributes--APpo6Vp.js';
3
+ import { V as ValidationMessages } from '../../types-D7_-64EG.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 '../../attributes-Cn0v3e37.mjs';
3
- import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
2
+ import { F as FileAttribute } from '../../attributes-C1WwLpp9.mjs';
3
+ import { V as ValidationMessages } from '../../types-DUmDvKBW.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 '../../attributes-Cy9o_xM1.js';
3
- import { V as ValidationMessages } from '../../types-B12E9LFe.js';
2
+ import { F as FileAttribute } from '../../attributes--APpo6Vp.js';
3
+ import { V as ValidationMessages } from '../../types-D7_-64EG.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 '../../attributes-Cn0v3e37.mjs';
3
- import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
2
+ import { L as LocationAttribute } from '../../attributes-C1WwLpp9.mjs';
3
+ import { V as ValidationMessages } from '../../types-DUmDvKBW.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 '../../attributes-Cy9o_xM1.js';
3
- import { V as ValidationMessages } from '../../types-B12E9LFe.js';
2
+ import { L as LocationAttribute } from '../../attributes--APpo6Vp.js';
3
+ import { V as ValidationMessages } from '../../types-D7_-64EG.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 '../../attributes-Cn0v3e37.mjs';
3
- import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
2
+ import { P as PhoneAttribute } from '../../attributes-C1WwLpp9.mjs';
3
+ import { V as ValidationMessages } from '../../types-DUmDvKBW.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 '../../attributes-Cy9o_xM1.js';
3
- import { V as ValidationMessages } from '../../types-B12E9LFe.js';
2
+ import { P as PhoneAttribute } from '../../attributes--APpo6Vp.js';
3
+ import { V as ValidationMessages } from '../../types-D7_-64EG.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 '../../attributes-Cn0v3e37.mjs';
3
- import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
2
+ import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-C1WwLpp9.mjs';
3
+ import { V as ValidationMessages } from '../../types-DUmDvKBW.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 '../../attributes-Cy9o_xM1.js';
3
- import { V as ValidationMessages } from '../../types-B12E9LFe.js';
2
+ import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes--APpo6Vp.js';
3
+ import { V as ValidationMessages } from '../../types-D7_-64EG.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 '../../attributes-Cn0v3e37.mjs';
3
- import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
2
+ import { a as RichtextAttribute } from '../../attributes-C1WwLpp9.mjs';
3
+ import { V as ValidationMessages } from '../../types-DUmDvKBW.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 '../../attributes-Cy9o_xM1.js';
3
- import { V as ValidationMessages } from '../../types-B12E9LFe.js';
2
+ import { a as RichtextAttribute } from '../../attributes--APpo6Vp.js';
3
+ import { V as ValidationMessages } from '../../types-D7_-64EG.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 '../../attributes-Cn0v3e37.mjs';
3
- import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
2
+ import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-C1WwLpp9.mjs';
3
+ import { V as ValidationMessages } from '../../types-DUmDvKBW.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 '../../attributes-Cy9o_xM1.js';
3
- import { V as ValidationMessages } from '../../types-B12E9LFe.js';
2
+ import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes--APpo6Vp.js';
3
+ import { V as ValidationMessages } from '../../types-D7_-64EG.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 '../../attributes-Cn0v3e37.mjs';
3
- import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
2
+ import { U as UserAttribute } from '../../attributes-C1WwLpp9.mjs';
3
+ import { V as ValidationMessages } from '../../types-DUmDvKBW.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 '../../attributes-Cy9o_xM1.js';
3
- import { V as ValidationMessages } from '../../types-B12E9LFe.js';
2
+ import { U as UserAttribute } from '../../attributes--APpo6Vp.js';
3
+ import { V as ValidationMessages } from '../../types-D7_-64EG.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 '../../attributes-Cn0v3e37.mjs';
3
- import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
2
+ import { e as FormulaAttribute } from '../../attributes-C1WwLpp9.mjs';
3
+ import { V as ValidationMessages } from '../../types-DUmDvKBW.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 '../../attributes-Cy9o_xM1.js';
3
- import { V as ValidationMessages } from '../../types-B12E9LFe.js';
2
+ import { e as FormulaAttribute } from '../../attributes--APpo6Vp.js';
3
+ import { V as ValidationMessages } from '../../types-D7_-64EG.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 '../../attributes-Cn0v3e37.mjs';
3
- import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
2
+ import { f as RollupAttribute } from '../../attributes-C1WwLpp9.mjs';
3
+ import { V as ValidationMessages } from '../../types-DUmDvKBW.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 '../../attributes-Cy9o_xM1.js';
3
- import { V as ValidationMessages } from '../../types-B12E9LFe.js';
2
+ import { f as RollupAttribute } from '../../attributes--APpo6Vp.js';
3
+ import { V as ValidationMessages } from '../../types-D7_-64EG.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 { k as AttributeType } from '../../attributes-Cn0v3e37.mjs';
2
+ import { k as AttributeType } from '../../attributes-C1WwLpp9.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 { k as AttributeType } from '../../attributes-Cy9o_xM1.js';
2
+ import { k as AttributeType } from '../../attributes--APpo6Vp.js';
3
3
  import '@stndrds/constants';
4
4
  import '../../utils.js';
5
5
 
@@ -1,7 +1,7 @@
1
- import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
2
- export { a as ValidationResult } from '../../types-CORdDGpb.mjs';
1
+ import { V as ValidationMessages } from '../../types-DUmDvKBW.mjs';
2
+ export { a as ValidationResult } from '../../types-DUmDvKBW.mjs';
3
3
  import { z } from 'zod';
4
- import '../../attributes-Cn0v3e37.mjs';
4
+ import '../../attributes-C1WwLpp9.mjs';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.mjs';
7
7
 
@@ -1,7 +1,7 @@
1
- import { V as ValidationMessages } from '../../types-B12E9LFe.js';
2
- export { a as ValidationResult } from '../../types-B12E9LFe.js';
1
+ import { V as ValidationMessages } from '../../types-D7_-64EG.js';
2
+ export { a as ValidationResult } from '../../types-D7_-64EG.js';
3
3
  import { z } from 'zod';
4
- import '../../attributes-Cy9o_xM1.js';
4
+ import '../../attributes--APpo6Vp.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, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-CED0HyXm.mjs';
1
+ export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-DgZYyORn.mjs';
2
2
  import { z } from 'zod';
3
- import { O as ObjectDefinition } from '../../attributes-Cn0v3e37.mjs';
4
- import '../../types-CORdDGpb.mjs';
3
+ import { O as ObjectDefinition } from '../../attributes-C1WwLpp9.mjs';
4
+ import '../../types-DUmDvKBW.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, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-LCnn6DG3.js';
1
+ export { c as computeRecordStatus, f as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, h as validateAttribute, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from '../../helpers-DLrvi7WO.js';
2
2
  import { z } from 'zod';
3
- import { O as ObjectDefinition } from '../../attributes-Cy9o_xM1.js';
4
- import '../../types-B12E9LFe.js';
3
+ import { O as ObjectDefinition } from '../../attributes--APpo6Vp.js';
4
+ import '../../types-D7_-64EG.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 '../../attributes-Cn0v3e37.mjs';
3
- import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
2
+ import { g as CheckboxAttribute } from '../../attributes-C1WwLpp9.mjs';
3
+ import { V as ValidationMessages } from '../../types-DUmDvKBW.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 '../../attributes-Cy9o_xM1.js';
3
- import { V as ValidationMessages } from '../../types-B12E9LFe.js';
2
+ import { g as CheckboxAttribute } from '../../attributes--APpo6Vp.js';
3
+ import { V as ValidationMessages } from '../../types-D7_-64EG.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 '../../attributes-Cn0v3e37.mjs';
3
- import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
2
+ import { D as DateAttribute } from '../../attributes-C1WwLpp9.mjs';
3
+ import { V as ValidationMessages } from '../../types-DUmDvKBW.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 '../../attributes-Cy9o_xM1.js';
3
- import { V as ValidationMessages } from '../../types-B12E9LFe.js';
2
+ import { D as DateAttribute } from '../../attributes--APpo6Vp.js';
3
+ import { V as ValidationMessages } from '../../types-D7_-64EG.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 '../../attributes-Cn0v3e37.mjs';
3
- import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
2
+ import { N as NumberAttribute } from '../../attributes-C1WwLpp9.mjs';
3
+ import { V as ValidationMessages } from '../../types-DUmDvKBW.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 '../../attributes-Cy9o_xM1.js';
3
- import { V as ValidationMessages } from '../../types-B12E9LFe.js';
2
+ import { N as NumberAttribute } from '../../attributes--APpo6Vp.js';
3
+ import { V as ValidationMessages } from '../../types-D7_-64EG.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 TextAttribute } from '../../attributes-Cn0v3e37.mjs';
3
- import { V as ValidationMessages } from '../../types-CORdDGpb.mjs';
2
+ import { T as TextAttribute } from '../../attributes-C1WwLpp9.mjs';
3
+ import { V as ValidationMessages } from '../../types-DUmDvKBW.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 TextAttribute } from '../../attributes-Cy9o_xM1.js';
3
- import { V as ValidationMessages } from '../../types-B12E9LFe.js';
2
+ import { T as TextAttribute } from '../../attributes--APpo6Vp.js';
3
+ import { V as ValidationMessages } from '../../types-D7_-64EG.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.203",
3
+ "version": "1.0.0-alpha.204",
4
4
  "description": "Standard schema definitions and utilities",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -120,7 +120,7 @@
120
120
  "@standard-schema/spec": "^1.1.0",
121
121
  "libphonenumber-js": "^1.12.31",
122
122
  "zod": "^4.2.1",
123
- "@stndrds/constants": "1.0.0-alpha.203"
123
+ "@stndrds/constants": "1.0.0-alpha.204"
124
124
  },
125
125
  "devDependencies": {
126
126
  "@types/node": "^25.0.3",