@stndrds/schema 1.0.0-alpha.207 → 1.0.0-alpha.209

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-Cz3tNPJA.d.ts → attributes-BEc_7_q_.d.ts} +2 -2
  2. package/dist/{attributes-CiTjeDGq.d.mts → attributes-DoQp0NSn.d.mts} +2 -2
  3. package/dist/{helpers-Vyq-QKxr.d.ts → helpers-B-hjtjTM.d.ts} +2 -2
  4. package/dist/{helpers-ElxN0li2.d.mts → helpers-DdsQA9U2.d.mts} +2 -2
  5. package/dist/index.d.mts +65 -6
  6. package/dist/index.d.ts +65 -6
  7. package/dist/index.js +45 -5
  8. package/dist/index.mjs +41 -6
  9. package/dist/{types-Bks5XpQW.d.ts → types-BW1U6xfV.d.ts} +1 -1
  10. package/dist/{types-D3Kg3X94.d.mts → types-CnSQ9gCC.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
@@ -227,7 +227,7 @@ type CompletionStatus = "draft" | "complete";
227
227
  /**
228
228
  * Record - Instance of an Object (a row in the database)
229
229
  */
230
- interface ObjectRecord extends Timestamps {
230
+ interface ObjectRecord<TValues extends Record<string, unknown> = Record<string, unknown>> extends Timestamps {
231
231
  id: Uuid;
232
232
  objectId: Uuid;
233
233
  /**
@@ -245,7 +245,7 @@ interface ObjectRecord extends Timestamps {
245
245
  * Computed dynamically based on the object's schema.
246
246
  */
247
247
  completionStatus: CompletionStatus;
248
- values: Record<string, unknown>;
248
+ values: TValues;
249
249
  /** Per-computed-attribute state keyed by attribute name. */
250
250
  computedStates?: Record<string, ComputedAttributeState>;
251
251
  /**
@@ -227,7 +227,7 @@ type CompletionStatus = "draft" | "complete";
227
227
  /**
228
228
  * Record - Instance of an Object (a row in the database)
229
229
  */
230
- interface ObjectRecord extends Timestamps {
230
+ interface ObjectRecord<TValues extends Record<string, unknown> = Record<string, unknown>> extends Timestamps {
231
231
  id: Uuid;
232
232
  objectId: Uuid;
233
233
  /**
@@ -245,7 +245,7 @@ interface ObjectRecord extends Timestamps {
245
245
  * Computed dynamically based on the object's schema.
246
246
  */
247
247
  completionStatus: CompletionStatus;
248
- values: Record<string, unknown>;
248
+ values: TValues;
249
249
  /** Per-computed-attribute state keyed by attribute name. */
250
250
  computedStates?: Record<string, ComputedAttributeState>;
251
251
  /**
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-Cz3tNPJA.js';
3
- import { V as ValidationMessages, a as ValidationResult } from './types-Bks5XpQW.js';
2
+ import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-BEc_7_q_.js';
3
+ import { V as ValidationMessages, a as ValidationResult } from './types-BW1U6xfV.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-CiTjeDGq.mjs';
3
- import { V as ValidationMessages, a as ValidationResult } from './types-D3Kg3X94.mjs';
2
+ import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-DoQp0NSn.mjs';
3
+ import { V as ValidationMessages, a as ValidationResult } from './types-CnSQ9gCC.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, o as ComputedFormulaAstNode, A as Attribute, p as DocumentLayout, h as CompletionStatus, q as Timestamps, 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-CiTjeDGq.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-CiTjeDGq.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 DocumentLayout, h as CompletionStatus, q as Timestamps, 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-DoQp0NSn.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-DoQp0NSn.mjs';
3
3
  import { IconName, MimeType, 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-D3Kg3X94.mjs';
9
+ export { V as ValidationMessages } from './types-CnSQ9gCC.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-ElxN0li2.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-DdsQA9U2.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];
@@ -121,8 +121,26 @@ interface PhoneFilterValue {
121
121
  phoneNumber: string | null;
122
122
  countryCode?: string;
123
123
  }
124
+ /**
125
+ * A filter value resolved at query time from the execution context.
126
+ * Stored verbatim in a view's filter; replaced with a concrete value by the
127
+ * runtime before reaching any query layer. Discriminated by the `dynamic` key —
128
+ * no static FilterValue carries it.
129
+ */
130
+ type DynamicValue = {
131
+ dynamic: "actor";
132
+ ref: "current";
133
+ } | {
134
+ dynamic: "date";
135
+ anchor: "today";
136
+ } | {
137
+ dynamic: "date";
138
+ anchor: "now";
139
+ };
124
140
  /** Filter value can be various types depending on the attribute */
125
- type FilterValue = string | number | boolean | string[] | RelativeDateValue | CurrencyFilterValue | PhoneFilterValue | null;
141
+ type FilterValue = string | number | boolean | string[] | RelativeDateValue | CurrencyFilterValue | PhoneFilterValue | DynamicValue | null;
142
+ /** Existence quantifier for qualified edge rules. Maps to SQL EXISTS / NOT EXISTS. */
143
+ type EdgeQuantifier = "any" | "none";
126
144
  /** A single filter rule */
127
145
  interface FilterRule {
128
146
  /** Root attribute name (scalar attribute, or a reference attribute when `property` is set). */
@@ -133,6 +151,12 @@ interface FilterRule {
133
151
  * The `operator` must be valid for the property's type, not the root attribute's type.
134
152
  */
135
153
  property?: string;
154
+ /**
155
+ * Existence quantifier for qualified edge rules ("at least one" vs "none").
156
+ * Only valid when `property` is set. Maps to SQL EXISTS / NOT EXISTS.
157
+ * Defaults to the operator-derived polarity when omitted.
158
+ */
159
+ quantifier?: EdgeQuantifier;
136
160
  /** Filter operator */
137
161
  operator: FilterOperator;
138
162
  /** Filter value (null for operators like is_empty) */
@@ -4160,6 +4184,15 @@ declare function buildQualifiedAttribute(root: string, property: string): string
4160
4184
  * Default empty value placeholder
4161
4185
  */
4162
4186
  declare const EMPTY_VALUE_PLACEHOLDER = "\u2014";
4187
+ /**
4188
+ * Format a location value into a human-readable string, respecting granularity.
4189
+ *
4190
+ * Shared by the schema-level attribute formatter and the UI display components
4191
+ * so that a rendered address looks identical everywhere (grid cell, detail view,
4192
+ * input button). Returns an empty string when there is nothing to display — the
4193
+ * caller decides whether to substitute a placeholder.
4194
+ */
4195
+ declare function formatLocationValue(location: Location | null | undefined, granularity?: LocationGranularity): string;
4163
4196
  /**
4164
4197
  * Format an attribute value for display
4165
4198
  *
@@ -7684,4 +7717,30 @@ interface QualifiedRuleValidationContext {
7684
7717
  }
7685
7718
  declare function validateQualifiedRule(rule: FilterRule, context: QualifiedRuleValidationContext): void;
7686
7719
 
7687
- 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, AccessDeniedError, type AccessLevel, 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 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 CreateNotificationInput, type CreateNotificationRecipientInput, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, 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 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 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 LiveNotification, type LiveNotificationRecipient, type LiveNotificationRecipientPatch, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, NotFoundError, NotImplementedError, type Notification, type NotificationCountPatchLiveEvent, type NotificationCounts, type NotificationCreatedLiveEvent, type NotificationInboxState, type NotificationKind, type NotificationListParams, type NotificationListResult, type NotificationPriority, type NotificationRecipient, type NotificationRecipientPatchLiveEvent, type NotificationSensitivity, type NotificationSubject, type NotificationType, type NotificationV1Type, type NotificationWithRecipient, type NotificationWorkState, 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, 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 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, SchemaError, SchemaErrorCode, SchemaOperation, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, 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, type TenantSettings, 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 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 };
7720
+ /** True when a filter value is a query-time dynamic token. */
7721
+ declare function isDynamicValue(value: unknown): value is DynamicValue;
7722
+ /** `@me` — resolves to the current actor id. Use on `user` attributes. */
7723
+ declare function currentActor(): DynamicValue;
7724
+ /** `@today` — resolves to today's date (ctx timezone). Use on `date` attributes. */
7725
+ declare function today(): DynamicValue;
7726
+ /** `@now` — resolves to the current timestamp. Use on `date` attributes. */
7727
+ declare function now(): DynamicValue;
7728
+ /** Execution context made available to dynamic-value resolvers. */
7729
+ interface ResolutionContext {
7730
+ tenantId: TenantId;
7731
+ actorId?: Uuid;
7732
+ rootActorId?: Uuid;
7733
+ now: Date;
7734
+ /** IANA timezone used to resolve `@today`. Defaults to "UTC" when unknown. */
7735
+ timezone: string;
7736
+ }
7737
+ /** A resolver turns a dynamic token into a concrete static filter value. */
7738
+ interface DynamicValueResolver<K extends DynamicValue["dynamic"]> {
7739
+ kind: K;
7740
+ /** Returning `undefined` means the token cannot be resolved in this context and the rule should be dropped. */
7741
+ resolve(value: Extract<DynamicValue, {
7742
+ dynamic: K;
7743
+ }>, ctx: ResolutionContext): FilterValue | undefined;
7744
+ }
7745
+
7746
+ 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, AccessDeniedError, type AccessLevel, 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 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 CreateNotificationInput, type CreateNotificationRecipientInput, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, 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, type DynamicValue, type DynamicValueResolver, EMPTY_VALUE_PLACEHOLDER, type Eager, type EdgeQuantifier, 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 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 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 LiveNotification, type LiveNotificationRecipient, type LiveNotificationRecipientPatch, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, NotFoundError, NotImplementedError, type Notification, type NotificationCountPatchLiveEvent, type NotificationCounts, type NotificationCreatedLiveEvent, type NotificationInboxState, type NotificationKind, type NotificationListParams, type NotificationListResult, type NotificationPriority, type NotificationRecipient, type NotificationRecipientPatchLiveEvent, type NotificationSensitivity, type NotificationSubject, type NotificationType, type NotificationV1Type, type NotificationWithRecipient, type NotificationWorkState, 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, 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 ResolutionContext, type ResolvedFlag, 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, SchemaError, SchemaErrorCode, SchemaOperation, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, 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, type TenantSettings, 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 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, currentActor, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeInUseError, isAttributeKanbanGroupable, isAttributeSearchable, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isDynamicValue, 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, now, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, today, 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, o as ComputedFormulaAstNode, A as Attribute, p as DocumentLayout, h as CompletionStatus, q as Timestamps, 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-Cz3tNPJA.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-Cz3tNPJA.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 DocumentLayout, h as CompletionStatus, q as Timestamps, 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-BEc_7_q_.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-BEc_7_q_.js';
3
3
  import { IconName, MimeType, 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-Bks5XpQW.js';
9
+ export { V as ValidationMessages } from './types-BW1U6xfV.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-Vyq-QKxr.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-B-hjtjTM.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];
@@ -121,8 +121,26 @@ interface PhoneFilterValue {
121
121
  phoneNumber: string | null;
122
122
  countryCode?: string;
123
123
  }
124
+ /**
125
+ * A filter value resolved at query time from the execution context.
126
+ * Stored verbatim in a view's filter; replaced with a concrete value by the
127
+ * runtime before reaching any query layer. Discriminated by the `dynamic` key —
128
+ * no static FilterValue carries it.
129
+ */
130
+ type DynamicValue = {
131
+ dynamic: "actor";
132
+ ref: "current";
133
+ } | {
134
+ dynamic: "date";
135
+ anchor: "today";
136
+ } | {
137
+ dynamic: "date";
138
+ anchor: "now";
139
+ };
124
140
  /** Filter value can be various types depending on the attribute */
125
- type FilterValue = string | number | boolean | string[] | RelativeDateValue | CurrencyFilterValue | PhoneFilterValue | null;
141
+ type FilterValue = string | number | boolean | string[] | RelativeDateValue | CurrencyFilterValue | PhoneFilterValue | DynamicValue | null;
142
+ /** Existence quantifier for qualified edge rules. Maps to SQL EXISTS / NOT EXISTS. */
143
+ type EdgeQuantifier = "any" | "none";
126
144
  /** A single filter rule */
127
145
  interface FilterRule {
128
146
  /** Root attribute name (scalar attribute, or a reference attribute when `property` is set). */
@@ -133,6 +151,12 @@ interface FilterRule {
133
151
  * The `operator` must be valid for the property's type, not the root attribute's type.
134
152
  */
135
153
  property?: string;
154
+ /**
155
+ * Existence quantifier for qualified edge rules ("at least one" vs "none").
156
+ * Only valid when `property` is set. Maps to SQL EXISTS / NOT EXISTS.
157
+ * Defaults to the operator-derived polarity when omitted.
158
+ */
159
+ quantifier?: EdgeQuantifier;
136
160
  /** Filter operator */
137
161
  operator: FilterOperator;
138
162
  /** Filter value (null for operators like is_empty) */
@@ -4160,6 +4184,15 @@ declare function buildQualifiedAttribute(root: string, property: string): string
4160
4184
  * Default empty value placeholder
4161
4185
  */
4162
4186
  declare const EMPTY_VALUE_PLACEHOLDER = "\u2014";
4187
+ /**
4188
+ * Format a location value into a human-readable string, respecting granularity.
4189
+ *
4190
+ * Shared by the schema-level attribute formatter and the UI display components
4191
+ * so that a rendered address looks identical everywhere (grid cell, detail view,
4192
+ * input button). Returns an empty string when there is nothing to display — the
4193
+ * caller decides whether to substitute a placeholder.
4194
+ */
4195
+ declare function formatLocationValue(location: Location | null | undefined, granularity?: LocationGranularity): string;
4163
4196
  /**
4164
4197
  * Format an attribute value for display
4165
4198
  *
@@ -7684,4 +7717,30 @@ interface QualifiedRuleValidationContext {
7684
7717
  }
7685
7718
  declare function validateQualifiedRule(rule: FilterRule, context: QualifiedRuleValidationContext): void;
7686
7719
 
7687
- 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, AccessDeniedError, type AccessLevel, 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 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 CreateNotificationInput, type CreateNotificationRecipientInput, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, 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 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 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 LiveNotification, type LiveNotificationRecipient, type LiveNotificationRecipientPatch, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, NotFoundError, NotImplementedError, type Notification, type NotificationCountPatchLiveEvent, type NotificationCounts, type NotificationCreatedLiveEvent, type NotificationInboxState, type NotificationKind, type NotificationListParams, type NotificationListResult, type NotificationPriority, type NotificationRecipient, type NotificationRecipientPatchLiveEvent, type NotificationSensitivity, type NotificationSubject, type NotificationType, type NotificationV1Type, type NotificationWithRecipient, type NotificationWorkState, 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, 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 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, SchemaError, SchemaErrorCode, SchemaOperation, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, 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, type TenantSettings, 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 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 };
7720
+ /** True when a filter value is a query-time dynamic token. */
7721
+ declare function isDynamicValue(value: unknown): value is DynamicValue;
7722
+ /** `@me` — resolves to the current actor id. Use on `user` attributes. */
7723
+ declare function currentActor(): DynamicValue;
7724
+ /** `@today` — resolves to today's date (ctx timezone). Use on `date` attributes. */
7725
+ declare function today(): DynamicValue;
7726
+ /** `@now` — resolves to the current timestamp. Use on `date` attributes. */
7727
+ declare function now(): DynamicValue;
7728
+ /** Execution context made available to dynamic-value resolvers. */
7729
+ interface ResolutionContext {
7730
+ tenantId: TenantId;
7731
+ actorId?: Uuid;
7732
+ rootActorId?: Uuid;
7733
+ now: Date;
7734
+ /** IANA timezone used to resolve `@today`. Defaults to "UTC" when unknown. */
7735
+ timezone: string;
7736
+ }
7737
+ /** A resolver turns a dynamic token into a concrete static filter value. */
7738
+ interface DynamicValueResolver<K extends DynamicValue["dynamic"]> {
7739
+ kind: K;
7740
+ /** Returning `undefined` means the token cannot be resolved in this context and the rule should be dropped. */
7741
+ resolve(value: Extract<DynamicValue, {
7742
+ dynamic: K;
7743
+ }>, ctx: ResolutionContext): FilterValue | undefined;
7744
+ }
7745
+
7746
+ 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, AccessDeniedError, type AccessLevel, 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 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 CreateNotificationInput, type CreateNotificationRecipientInput, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, 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, type DynamicValue, type DynamicValueResolver, EMPTY_VALUE_PLACEHOLDER, type Eager, type EdgeQuantifier, 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 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 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 LiveNotification, type LiveNotificationRecipient, type LiveNotificationRecipientPatch, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, NotFoundError, NotImplementedError, type Notification, type NotificationCountPatchLiveEvent, type NotificationCounts, type NotificationCreatedLiveEvent, type NotificationInboxState, type NotificationKind, type NotificationListParams, type NotificationListResult, type NotificationPriority, type NotificationRecipient, type NotificationRecipientPatchLiveEvent, type NotificationSensitivity, type NotificationSubject, type NotificationType, type NotificationV1Type, type NotificationWithRecipient, type NotificationWorkState, 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, 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 ResolutionContext, type ResolvedFlag, 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, SchemaError, SchemaErrorCode, SchemaOperation, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, 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, type TenantSettings, 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 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, currentActor, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeInUseError, isAttributeKanbanGroupable, isAttributeSearchable, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isDynamicValue, 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, now, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, today, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
package/dist/index.js CHANGED
@@ -799,10 +799,9 @@ function formatPhone(value) {
799
799
  if (!phone2.countryCode) return phone2.phoneNumber;
800
800
  return chunkEBGRZUIH_js.formatPhoneForDisplay(phone2);
801
801
  }
802
- function formatLocation(value, attribute) {
803
- if (typeof value !== "object" || value === null) return String(value);
804
- const loc = value;
805
- const granularity = attribute.granularity ?? "full";
802
+ function formatLocationValue(location2, granularity = "full") {
803
+ if (typeof location2 !== "object" || location2 === null) return "";
804
+ const loc = location2;
806
805
  const parts = [];
807
806
  switch (granularity) {
808
807
  case "country":
@@ -830,13 +829,18 @@ function formatLocation(value, attribute) {
830
829
  break;
831
830
  default:
832
831
  if (loc.address) parts.push(loc.address);
832
+ if (loc.address2) parts.push(loc.address2);
833
833
  if (loc.city) parts.push(loc.city);
834
834
  if (loc.state) parts.push(loc.state);
835
835
  if (loc.postalCode) parts.push(loc.postalCode);
836
836
  if (loc.country) parts.push(constants.getCountryDisplayNameByIso3(loc.country));
837
837
  break;
838
838
  }
839
- return parts.join(", ") || EMPTY_VALUE_PLACEHOLDER;
839
+ return parts.join(", ");
840
+ }
841
+ function formatLocation(value, attribute) {
842
+ if (typeof value !== "object" || value === null) return String(value);
843
+ return formatLocationValue(value, attribute.granularity ?? "full") || EMPTY_VALUE_PLACEHOLDER;
840
844
  }
841
845
  function formatSelect(value, attribute) {
842
846
  if (typeof value !== "string") return String(value);
@@ -6684,6 +6688,20 @@ function normalizeForEdgeRpc(op) {
6684
6688
  return NEGATIVE_TO_POSITIVE[op] ?? op;
6685
6689
  }
6686
6690
 
6691
+ // src/filters/dynamic-value.ts
6692
+ function isDynamicValue(value) {
6693
+ return typeof value === "object" && value !== null && !Array.isArray(value) && "dynamic" in value;
6694
+ }
6695
+ function currentActor() {
6696
+ return { dynamic: "actor", ref: "current" };
6697
+ }
6698
+ function today() {
6699
+ return { dynamic: "date", anchor: "today" };
6700
+ }
6701
+ function now() {
6702
+ return { dynamic: "date", anchor: "now" };
6703
+ }
6704
+
6687
6705
  // src/filters/validation.ts
6688
6706
  var REFERENCE_TYPES = /* @__PURE__ */ new Set(["relation", "document", "user"]);
6689
6707
  var ID_LIKE_OPERATORS = [
@@ -6725,6 +6743,18 @@ function assertOperatorForType(operator, type, context) {
6725
6743
  ]);
6726
6744
  }
6727
6745
  }
6746
+ function assertDynamicValueForAttribute(rule, attrType) {
6747
+ if (!isDynamicValue(rule.value)) return;
6748
+ const v = rule.value;
6749
+ if (v.dynamic === "actor" && attrType !== "user") {
6750
+ const m = `actor token (@me) is only valid on user attributes, not "${attrType}"`;
6751
+ throw new chunkPLUTE7FU_js.ValidationError(m, [{ path: ["value"], message: m }]);
6752
+ }
6753
+ if (v.dynamic === "date" && attrType !== "date") {
6754
+ const m = `date token (@today/@now) is only valid on date attributes, not "${attrType}"`;
6755
+ throw new chunkPLUTE7FU_js.ValidationError(m, [{ path: ["value"], message: m }]);
6756
+ }
6757
+ }
6728
6758
  function validateQualifiedRule(rule, context) {
6729
6759
  const rootAttr = context.attributes.find((a) => a.name === rule.attribute);
6730
6760
  const systemOps = SYSTEM_FILTER_OPERATORS[rule.attribute];
@@ -6733,6 +6763,10 @@ function validateQualifiedRule(rule, context) {
6733
6763
  { path: ["attribute"], message: `Unknown attribute: ${rule.attribute}` }
6734
6764
  ]);
6735
6765
  }
6766
+ if (rule.quantifier !== void 0 && !rule.property) {
6767
+ const m = `quantifier is only valid on qualified edge rules (set "property")`;
6768
+ throw new chunkPLUTE7FU_js.ValidationError(m, [{ path: ["quantifier"], message: m }]);
6769
+ }
6736
6770
  if (!rootAttr) {
6737
6771
  if (rule.property) {
6738
6772
  throw new chunkPLUTE7FU_js.ValidationError(`Cannot qualify system attribute "${rule.attribute}"`, [
@@ -6746,6 +6780,7 @@ function validateQualifiedRule(rule, context) {
6746
6780
  return;
6747
6781
  }
6748
6782
  if (!rule.property) {
6783
+ assertDynamicValueForAttribute(rule, rootAttr.type);
6749
6784
  const ops = getAttributeFilterOperators(rootAttr);
6750
6785
  if (!ops.includes(rule.operator)) {
6751
6786
  const validList = ops.length ? ops.join(", ") : "(not filterable)";
@@ -7071,6 +7106,7 @@ exports.createFlagRegistry = createFlagRegistry;
7071
7106
  exports.createFlagService = createFlagService;
7072
7107
  exports.createStandardSchemaProps = createStandardSchemaProps;
7073
7108
  exports.currency = currency;
7109
+ exports.currentActor = currentActor;
7074
7110
  exports.date = date;
7075
7111
  exports.detailView = detailView;
7076
7112
  exports.document = document;
@@ -7085,6 +7121,7 @@ exports.form = form;
7085
7121
  exports.formRegistry = formRegistry;
7086
7122
  exports.formatAttributeValue = formatAttributeValue;
7087
7123
  exports.formatComputedResult = formatComputedResult;
7124
+ exports.formatLocationValue = formatLocationValue;
7088
7125
  exports.formula = formula;
7089
7126
  exports.generateDefaultDetailView = generateDefaultDetailView;
7090
7127
  exports.generateDefaultListView = generateDefaultListView;
@@ -7111,6 +7148,7 @@ exports.isComputedFunctionName = isComputedFunctionName;
7111
7148
  exports.isDefaultRole = isDefaultRole;
7112
7149
  exports.isDetailView = isDetailView;
7113
7150
  exports.isDocumentAttribute = isDocumentAttribute;
7151
+ exports.isDynamicValue = isDynamicValue;
7114
7152
  exports.isEmptyObject = isEmptyObject;
7115
7153
  exports.isFieldGroup = isFieldGroup;
7116
7154
  exports.isFormDefinition = isFormDefinition;
@@ -7144,6 +7182,7 @@ exports.matchesMime = matchesMime;
7144
7182
  exports.multiselect = multiselect;
7145
7183
  exports.normaliseDocumentSlots = normaliseDocumentSlots;
7146
7184
  exports.normalizeForEdgeRpc = normalizeForEdgeRpc;
7185
+ exports.now = now;
7147
7186
  exports.number = number;
7148
7187
  exports.numberFlag = numberFlag;
7149
7188
  exports.object = object;
@@ -7165,6 +7204,7 @@ exports.status = status;
7165
7204
  exports.stringFlag = stringFlag;
7166
7205
  exports.text = text;
7167
7206
  exports.toUndefinedIfEmpty = toUndefinedIfEmpty;
7207
+ exports.today = today;
7168
7208
  exports.user = user;
7169
7209
  exports.validateAttributeName = validateAttributeName;
7170
7210
  exports.validateQualifiedRule = validateQualifiedRule;
package/dist/index.mjs CHANGED
@@ -796,10 +796,9 @@ function formatPhone(value) {
796
796
  if (!phone2.countryCode) return phone2.phoneNumber;
797
797
  return formatPhoneForDisplay(phone2);
798
798
  }
799
- function formatLocation(value, attribute) {
800
- if (typeof value !== "object" || value === null) return String(value);
801
- const loc = value;
802
- const granularity = attribute.granularity ?? "full";
799
+ function formatLocationValue(location2, granularity = "full") {
800
+ if (typeof location2 !== "object" || location2 === null) return "";
801
+ const loc = location2;
803
802
  const parts = [];
804
803
  switch (granularity) {
805
804
  case "country":
@@ -827,13 +826,18 @@ function formatLocation(value, attribute) {
827
826
  break;
828
827
  default:
829
828
  if (loc.address) parts.push(loc.address);
829
+ if (loc.address2) parts.push(loc.address2);
830
830
  if (loc.city) parts.push(loc.city);
831
831
  if (loc.state) parts.push(loc.state);
832
832
  if (loc.postalCode) parts.push(loc.postalCode);
833
833
  if (loc.country) parts.push(getCountryDisplayNameByIso3(loc.country));
834
834
  break;
835
835
  }
836
- return parts.join(", ") || EMPTY_VALUE_PLACEHOLDER;
836
+ return parts.join(", ");
837
+ }
838
+ function formatLocation(value, attribute) {
839
+ if (typeof value !== "object" || value === null) return String(value);
840
+ return formatLocationValue(value, attribute.granularity ?? "full") || EMPTY_VALUE_PLACEHOLDER;
837
841
  }
838
842
  function formatSelect(value, attribute) {
839
843
  if (typeof value !== "string") return String(value);
@@ -6681,6 +6685,20 @@ function normalizeForEdgeRpc(op) {
6681
6685
  return NEGATIVE_TO_POSITIVE[op] ?? op;
6682
6686
  }
6683
6687
 
6688
+ // src/filters/dynamic-value.ts
6689
+ function isDynamicValue(value) {
6690
+ return typeof value === "object" && value !== null && !Array.isArray(value) && "dynamic" in value;
6691
+ }
6692
+ function currentActor() {
6693
+ return { dynamic: "actor", ref: "current" };
6694
+ }
6695
+ function today() {
6696
+ return { dynamic: "date", anchor: "today" };
6697
+ }
6698
+ function now() {
6699
+ return { dynamic: "date", anchor: "now" };
6700
+ }
6701
+
6684
6702
  // src/filters/validation.ts
6685
6703
  var REFERENCE_TYPES = /* @__PURE__ */ new Set(["relation", "document", "user"]);
6686
6704
  var ID_LIKE_OPERATORS = [
@@ -6722,6 +6740,18 @@ function assertOperatorForType(operator, type, context) {
6722
6740
  ]);
6723
6741
  }
6724
6742
  }
6743
+ function assertDynamicValueForAttribute(rule, attrType) {
6744
+ if (!isDynamicValue(rule.value)) return;
6745
+ const v = rule.value;
6746
+ if (v.dynamic === "actor" && attrType !== "user") {
6747
+ const m = `actor token (@me) is only valid on user attributes, not "${attrType}"`;
6748
+ throw new ValidationError(m, [{ path: ["value"], message: m }]);
6749
+ }
6750
+ if (v.dynamic === "date" && attrType !== "date") {
6751
+ const m = `date token (@today/@now) is only valid on date attributes, not "${attrType}"`;
6752
+ throw new ValidationError(m, [{ path: ["value"], message: m }]);
6753
+ }
6754
+ }
6725
6755
  function validateQualifiedRule(rule, context) {
6726
6756
  const rootAttr = context.attributes.find((a) => a.name === rule.attribute);
6727
6757
  const systemOps = SYSTEM_FILTER_OPERATORS[rule.attribute];
@@ -6730,6 +6760,10 @@ function validateQualifiedRule(rule, context) {
6730
6760
  { path: ["attribute"], message: `Unknown attribute: ${rule.attribute}` }
6731
6761
  ]);
6732
6762
  }
6763
+ if (rule.quantifier !== void 0 && !rule.property) {
6764
+ const m = `quantifier is only valid on qualified edge rules (set "property")`;
6765
+ throw new ValidationError(m, [{ path: ["quantifier"], message: m }]);
6766
+ }
6733
6767
  if (!rootAttr) {
6734
6768
  if (rule.property) {
6735
6769
  throw new ValidationError(`Cannot qualify system attribute "${rule.attribute}"`, [
@@ -6743,6 +6777,7 @@ function validateQualifiedRule(rule, context) {
6743
6777
  return;
6744
6778
  }
6745
6779
  if (!rule.property) {
6780
+ assertDynamicValueForAttribute(rule, rootAttr.type);
6746
6781
  const ops = getAttributeFilterOperators(rootAttr);
6747
6782
  if (!ops.includes(rule.operator)) {
6748
6783
  const validList = ops.length ? ops.join(", ") : "(not filterable)";
@@ -6772,4 +6807,4 @@ function validateQualifiedRule(rule, context) {
6772
6807
  assertOperatorForType(rule.operator, propDef.type, "property");
6773
6808
  }
6774
6809
 
6775
- export { ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, ActivityTabConfig, BEHAVIOR_PROPERTIES, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, ComputedFormulaCompileError, CustomTabConfig, DB_COLUMN_FIELDS, DEFAULT_DOCUMENT_SLOT, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DetailViewBuilder, DocumentSlotValidationError, DocumentsTabConfig, EMPTY_VALUE_PLACEHOLDER, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FlagRegistry, FlagService, FormBuilder, FormRegistry, FormRowBuilder, FormStepBuilder, GroupBuilder, IDENTITY_PROPERTIES, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, ListViewBuilder, ListViewTabConfigBuilder, MAX_PRESET_DEPTH, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_VALUE_OPERATORS, NoopGeocodingAdapter, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, PRESENTATION_PROPERTIES, QUALIFIED_SEPARATOR, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RelationGroupBuilder, RichtextTabConfig, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, TabBuilder, TableTabConfig, USER_STATUSES, 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, getRollupFilterOperators2 as getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, hasOptions, inferInverseCardinality, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isAttributeSortable2 as isAttributeSortable, isBilateralRelation, 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, isPlainRecord, isRelationGroup, isStandardSchema, isUniversalRelation, 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 };
6810
+ export { ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, ActivityTabConfig, BEHAVIOR_PROPERTIES, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, ComputedFormulaCompileError, CustomTabConfig, DB_COLUMN_FIELDS, DEFAULT_DOCUMENT_SLOT, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DetailViewBuilder, DocumentSlotValidationError, DocumentsTabConfig, EMPTY_VALUE_PLACEHOLDER, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FlagRegistry, FlagService, FormBuilder, FormRegistry, FormRowBuilder, FormStepBuilder, GroupBuilder, IDENTITY_PROPERTIES, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, ListViewBuilder, ListViewTabConfigBuilder, MAX_PRESET_DEPTH, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_VALUE_OPERATORS, NoopGeocodingAdapter, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, PRESENTATION_PROPERTIES, QUALIFIED_SEPARATOR, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RelationGroupBuilder, RichtextTabConfig, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, TabBuilder, TableTabConfig, USER_STATUSES, accessLevelToActions, actionsToAccessLevel, applyPipes, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators2 as getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, hasOptions, inferInverseCardinality, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isAttributeSortable2 as isAttributeSortable, isBilateralRelation, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isDynamicValue, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isPlainRecord, isRelationGroup, isStandardSchema, isUniversalRelation, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, now, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, today, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
@@ -1,4 +1,4 @@
1
- import { A as Attribute } from './attributes-Cz3tNPJA.js';
1
+ import { A as Attribute } from './attributes-BEc_7_q_.js';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
@@ -1,4 +1,4 @@
1
- import { A as Attribute } from './attributes-CiTjeDGq.mjs';
1
+ import { A as Attribute } from './attributes-DoQp0NSn.mjs';
2
2
 
3
3
  /**
4
4
  * Validation messages for Zod validators.
@@ -1,8 +1,8 @@
1
- export { V as ValidationMessages } from '../types-D3Kg3X94.mjs';
1
+ export { V as ValidationMessages } from '../types-CnSQ9gCC.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-ElxN0li2.mjs';
5
- import '../attributes-CiTjeDGq.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-DdsQA9U2.mjs';
5
+ import '../attributes-DoQp0NSn.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-Bks5XpQW.js';
1
+ export { V as ValidationMessages } from '../types-BW1U6xfV.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-Vyq-QKxr.js';
5
- import '../attributes-Cz3tNPJA.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-B-hjtjTM.js';
5
+ import '../attributes-BEc_7_q_.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-CiTjeDGq.mjs';
3
- import { V as ValidationMessages } from '../../types-D3Kg3X94.mjs';
2
+ import { C as CurrencyAttribute } from '../../attributes-DoQp0NSn.mjs';
3
+ import { V as ValidationMessages } from '../../types-CnSQ9gCC.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-Cz3tNPJA.js';
3
- import { V as ValidationMessages } from '../../types-Bks5XpQW.js';
2
+ import { C as CurrencyAttribute } from '../../attributes-BEc_7_q_.js';
3
+ import { V as ValidationMessages } from '../../types-BW1U6xfV.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-CiTjeDGq.mjs';
3
- import { V as ValidationMessages } from '../../types-D3Kg3X94.mjs';
2
+ import { F as FileAttribute } from '../../attributes-DoQp0NSn.mjs';
3
+ import { V as ValidationMessages } from '../../types-CnSQ9gCC.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-Cz3tNPJA.js';
3
- import { V as ValidationMessages } from '../../types-Bks5XpQW.js';
2
+ import { F as FileAttribute } from '../../attributes-BEc_7_q_.js';
3
+ import { V as ValidationMessages } from '../../types-BW1U6xfV.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-CiTjeDGq.mjs';
3
- import { V as ValidationMessages } from '../../types-D3Kg3X94.mjs';
2
+ import { L as LocationAttribute } from '../../attributes-DoQp0NSn.mjs';
3
+ import { V as ValidationMessages } from '../../types-CnSQ9gCC.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-Cz3tNPJA.js';
3
- import { V as ValidationMessages } from '../../types-Bks5XpQW.js';
2
+ import { L as LocationAttribute } from '../../attributes-BEc_7_q_.js';
3
+ import { V as ValidationMessages } from '../../types-BW1U6xfV.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-CiTjeDGq.mjs';
3
- import { V as ValidationMessages } from '../../types-D3Kg3X94.mjs';
2
+ import { P as PhoneAttribute } from '../../attributes-DoQp0NSn.mjs';
3
+ import { V as ValidationMessages } from '../../types-CnSQ9gCC.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-Cz3tNPJA.js';
3
- import { V as ValidationMessages } from '../../types-Bks5XpQW.js';
2
+ import { P as PhoneAttribute } from '../../attributes-BEc_7_q_.js';
3
+ import { V as ValidationMessages } from '../../types-BW1U6xfV.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-CiTjeDGq.mjs';
3
- import { V as ValidationMessages } from '../../types-D3Kg3X94.mjs';
2
+ import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-DoQp0NSn.mjs';
3
+ import { V as ValidationMessages } from '../../types-CnSQ9gCC.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-Cz3tNPJA.js';
3
- import { V as ValidationMessages } from '../../types-Bks5XpQW.js';
2
+ import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-BEc_7_q_.js';
3
+ import { V as ValidationMessages } from '../../types-BW1U6xfV.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-CiTjeDGq.mjs';
3
- import { V as ValidationMessages } from '../../types-D3Kg3X94.mjs';
2
+ import { a as RichtextAttribute } from '../../attributes-DoQp0NSn.mjs';
3
+ import { V as ValidationMessages } from '../../types-CnSQ9gCC.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-Cz3tNPJA.js';
3
- import { V as ValidationMessages } from '../../types-Bks5XpQW.js';
2
+ import { a as RichtextAttribute } from '../../attributes-BEc_7_q_.js';
3
+ import { V as ValidationMessages } from '../../types-BW1U6xfV.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-CiTjeDGq.mjs';
3
- import { V as ValidationMessages } from '../../types-D3Kg3X94.mjs';
2
+ import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-DoQp0NSn.mjs';
3
+ import { V as ValidationMessages } from '../../types-CnSQ9gCC.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-Cz3tNPJA.js';
3
- import { V as ValidationMessages } from '../../types-Bks5XpQW.js';
2
+ import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-BEc_7_q_.js';
3
+ import { V as ValidationMessages } from '../../types-BW1U6xfV.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-CiTjeDGq.mjs';
3
- import { V as ValidationMessages } from '../../types-D3Kg3X94.mjs';
2
+ import { U as UserAttribute } from '../../attributes-DoQp0NSn.mjs';
3
+ import { V as ValidationMessages } from '../../types-CnSQ9gCC.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-Cz3tNPJA.js';
3
- import { V as ValidationMessages } from '../../types-Bks5XpQW.js';
2
+ import { U as UserAttribute } from '../../attributes-BEc_7_q_.js';
3
+ import { V as ValidationMessages } from '../../types-BW1U6xfV.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-CiTjeDGq.mjs';
3
- import { V as ValidationMessages } from '../../types-D3Kg3X94.mjs';
2
+ import { e as FormulaAttribute } from '../../attributes-DoQp0NSn.mjs';
3
+ import { V as ValidationMessages } from '../../types-CnSQ9gCC.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-Cz3tNPJA.js';
3
- import { V as ValidationMessages } from '../../types-Bks5XpQW.js';
2
+ import { e as FormulaAttribute } from '../../attributes-BEc_7_q_.js';
3
+ import { V as ValidationMessages } from '../../types-BW1U6xfV.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-CiTjeDGq.mjs';
3
- import { V as ValidationMessages } from '../../types-D3Kg3X94.mjs';
2
+ import { f as RollupAttribute } from '../../attributes-DoQp0NSn.mjs';
3
+ import { V as ValidationMessages } from '../../types-CnSQ9gCC.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-Cz3tNPJA.js';
3
- import { V as ValidationMessages } from '../../types-Bks5XpQW.js';
2
+ import { f as RollupAttribute } from '../../attributes-BEc_7_q_.js';
3
+ import { V as ValidationMessages } from '../../types-BW1U6xfV.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-CiTjeDGq.mjs';
2
+ import { k as AttributeType } from '../../attributes-DoQp0NSn.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-Cz3tNPJA.js';
2
+ import { k as AttributeType } from '../../attributes-BEc_7_q_.js';
3
3
  import '@stndrds/constants';
4
4
  import '../../utils.js';
5
5
 
@@ -1,7 +1,7 @@
1
- import { V as ValidationMessages } from '../../types-D3Kg3X94.mjs';
2
- export { a as ValidationResult } from '../../types-D3Kg3X94.mjs';
1
+ import { V as ValidationMessages } from '../../types-CnSQ9gCC.mjs';
2
+ export { a as ValidationResult } from '../../types-CnSQ9gCC.mjs';
3
3
  import { z } from 'zod';
4
- import '../../attributes-CiTjeDGq.mjs';
4
+ import '../../attributes-DoQp0NSn.mjs';
5
5
  import '@stndrds/constants';
6
6
  import '../../utils.mjs';
7
7
 
@@ -1,7 +1,7 @@
1
- import { V as ValidationMessages } from '../../types-Bks5XpQW.js';
2
- export { a as ValidationResult } from '../../types-Bks5XpQW.js';
1
+ import { V as ValidationMessages } from '../../types-BW1U6xfV.js';
2
+ export { a as ValidationResult } from '../../types-BW1U6xfV.js';
3
3
  import { z } from 'zod';
4
- import '../../attributes-Cz3tNPJA.js';
4
+ import '../../attributes-BEc_7_q_.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-ElxN0li2.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-DdsQA9U2.mjs';
2
2
  import { z } from 'zod';
3
- import { O as ObjectDefinition } from '../../attributes-CiTjeDGq.mjs';
4
- import '../../types-D3Kg3X94.mjs';
3
+ import { O as ObjectDefinition } from '../../attributes-DoQp0NSn.mjs';
4
+ import '../../types-CnSQ9gCC.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-Vyq-QKxr.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-B-hjtjTM.js';
2
2
  import { z } from 'zod';
3
- import { O as ObjectDefinition } from '../../attributes-Cz3tNPJA.js';
4
- import '../../types-Bks5XpQW.js';
3
+ import { O as ObjectDefinition } from '../../attributes-BEc_7_q_.js';
4
+ import '../../types-BW1U6xfV.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-CiTjeDGq.mjs';
3
- import { V as ValidationMessages } from '../../types-D3Kg3X94.mjs';
2
+ import { g as CheckboxAttribute } from '../../attributes-DoQp0NSn.mjs';
3
+ import { V as ValidationMessages } from '../../types-CnSQ9gCC.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-Cz3tNPJA.js';
3
- import { V as ValidationMessages } from '../../types-Bks5XpQW.js';
2
+ import { g as CheckboxAttribute } from '../../attributes-BEc_7_q_.js';
3
+ import { V as ValidationMessages } from '../../types-BW1U6xfV.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-CiTjeDGq.mjs';
3
- import { V as ValidationMessages } from '../../types-D3Kg3X94.mjs';
2
+ import { D as DateAttribute } from '../../attributes-DoQp0NSn.mjs';
3
+ import { V as ValidationMessages } from '../../types-CnSQ9gCC.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-Cz3tNPJA.js';
3
- import { V as ValidationMessages } from '../../types-Bks5XpQW.js';
2
+ import { D as DateAttribute } from '../../attributes-BEc_7_q_.js';
3
+ import { V as ValidationMessages } from '../../types-BW1U6xfV.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-CiTjeDGq.mjs';
3
- import { V as ValidationMessages } from '../../types-D3Kg3X94.mjs';
2
+ import { N as NumberAttribute } from '../../attributes-DoQp0NSn.mjs';
3
+ import { V as ValidationMessages } from '../../types-CnSQ9gCC.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-Cz3tNPJA.js';
3
- import { V as ValidationMessages } from '../../types-Bks5XpQW.js';
2
+ import { N as NumberAttribute } from '../../attributes-BEc_7_q_.js';
3
+ import { V as ValidationMessages } from '../../types-BW1U6xfV.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-CiTjeDGq.mjs';
3
- import { V as ValidationMessages } from '../../types-D3Kg3X94.mjs';
2
+ import { T as TextAttribute } from '../../attributes-DoQp0NSn.mjs';
3
+ import { V as ValidationMessages } from '../../types-CnSQ9gCC.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-Cz3tNPJA.js';
3
- import { V as ValidationMessages } from '../../types-Bks5XpQW.js';
2
+ import { T as TextAttribute } from '../../attributes-BEc_7_q_.js';
3
+ import { V as ValidationMessages } from '../../types-BW1U6xfV.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.207",
3
+ "version": "1.0.0-alpha.209",
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.207"
123
+ "@stndrds/constants": "1.0.0-alpha.209"
124
124
  },
125
125
  "devDependencies": {
126
126
  "@types/node": "^25.0.3",