@stndrds/schema 1.0.0-alpha.281 → 1.0.0-alpha.282

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 (75) hide show
  1. package/dist/{all-BVp3k9Hi.d.ts → all-C3EaFLCU.d.ts} +4 -3
  2. package/dist/{all-CnIU2anT.d.mts → all-CQMswOrw.d.mts} +4 -3
  3. package/dist/{attributes-D8eHv5Kf.d.ts → attributes-CU871AfG.d.ts} +12 -12
  4. package/dist/{attributes--M1ifW8_.d.mts → attributes-DoiGyNFk.d.mts} +12 -12
  5. package/dist/{chunk-LRFLSFIA.js → chunk-DIMTNM3F.js} +7 -3
  6. package/dist/{chunk-XCLVXM7F.mjs → chunk-EFSS7PGC.mjs} +1 -1
  7. package/dist/{chunk-SYQDFZ74.mjs → chunk-HOVUEYEQ.mjs} +32 -0
  8. package/dist/{chunk-TU6ECJFZ.js → chunk-KIMECN6D.js} +65 -35
  9. package/dist/{chunk-HWZRSXFB.js → chunk-L4KLYMUI.js} +32 -0
  10. package/dist/{chunk-OYHBQMC7.js → chunk-LBGLB443.js} +3 -3
  11. package/dist/{chunk-MLTXSBOB.mjs → chunk-PLTLAMWJ.mjs} +1 -1
  12. package/dist/{chunk-ORPCS24B.mjs → chunk-QGRYOIHT.mjs} +34 -4
  13. package/dist/{chunk-A5PPZ2FM.mjs → chunk-R34LOMT7.mjs} +5 -1
  14. package/dist/{chunk-E47WAI5K.js → chunk-V4MZOTLV.js} +4 -4
  15. package/dist/exceptions.d.mts +20 -3
  16. package/dist/exceptions.d.ts +20 -3
  17. package/dist/exceptions.js +39 -39
  18. package/dist/exceptions.mjs +1 -1
  19. package/dist/{helpers-DyoPqiSz.d.ts → helpers-BNr-Dppk.d.ts} +3 -3
  20. package/dist/{helpers-BiABdSxK.d.mts → helpers-CfEOUBmB.d.mts} +3 -3
  21. package/dist/{index-TMlrIKAY.d.ts → index-Br7koyHF.d.ts} +41 -6
  22. package/dist/{index-DWoqObyG.d.mts → index-D9XBjFnu.d.mts} +41 -6
  23. package/dist/index.d.mts +320 -83
  24. package/dist/index.d.ts +320 -83
  25. package/dist/index.js +459 -251
  26. package/dist/index.mjs +229 -31
  27. package/dist/{migrations-B1kkIhIX.d.ts → migrations-BGWgXHXb.d.ts} +1 -1
  28. package/dist/{migrations-BNlQVzDC.d.mts → migrations-C-GN1xx_.d.mts} +1 -1
  29. package/dist/{objects-DmMqHn3L.d.mts → objects-BRypaBpi.d.mts} +2 -4
  30. package/dist/{objects-DgFojgwH.d.ts → objects-BiOMwzLL.d.ts} +2 -4
  31. package/dist/{types-DHqXzkgW.d.mts → types-80c2rOUZ.d.mts} +1 -1
  32. package/dist/{types-DYYFto8d.d.ts → types-DqYz8Iv_.d.ts} +1 -1
  33. package/dist/utils.js +8 -8
  34. package/dist/utils.mjs +2 -2
  35. package/dist/validation/all.d.mts +7 -7
  36. package/dist/validation/all.d.ts +7 -7
  37. package/dist/validation/all.js +29 -29
  38. package/dist/validation/all.mjs +4 -4
  39. package/dist/validation/complex/currency.d.mts +2 -2
  40. package/dist/validation/complex/currency.d.ts +2 -2
  41. package/dist/validation/complex/location.d.mts +2 -2
  42. package/dist/validation/complex/location.d.ts +2 -2
  43. package/dist/validation/complex/phone.d.mts +2 -2
  44. package/dist/validation/complex/phone.d.ts +2 -2
  45. package/dist/validation/complex/relation.d.mts +2 -2
  46. package/dist/validation/complex/relation.d.ts +2 -2
  47. package/dist/validation/complex/richtext.d.mts +2 -2
  48. package/dist/validation/complex/richtext.d.ts +2 -2
  49. package/dist/validation/complex/select.d.mts +2 -2
  50. package/dist/validation/complex/select.d.ts +2 -2
  51. package/dist/validation/complex/user.d.mts +2 -2
  52. package/dist/validation/complex/user.d.ts +2 -2
  53. package/dist/validation/computed/formula.d.mts +2 -2
  54. package/dist/validation/computed/formula.d.ts +2 -2
  55. package/dist/validation/computed/rollup.d.mts +2 -2
  56. package/dist/validation/computed/rollup.d.ts +2 -2
  57. package/dist/validation/config/index.d.mts +4 -4
  58. package/dist/validation/config/index.d.ts +4 -4
  59. package/dist/validation/config/index.js +11 -11
  60. package/dist/validation/config/index.mjs +2 -2
  61. package/dist/validation/core/index.d.mts +3 -3
  62. package/dist/validation/core/index.d.ts +3 -3
  63. package/dist/validation/object/index.d.mts +5 -5
  64. package/dist/validation/object/index.d.ts +5 -5
  65. package/dist/validation/object/index.js +14 -14
  66. package/dist/validation/object/index.mjs +2 -2
  67. package/dist/validation/primitives/checkbox.d.mts +2 -2
  68. package/dist/validation/primitives/checkbox.d.ts +2 -2
  69. package/dist/validation/primitives/date.d.mts +2 -2
  70. package/dist/validation/primitives/date.d.ts +2 -2
  71. package/dist/validation/primitives/number.d.mts +2 -2
  72. package/dist/validation/primitives/number.d.ts +2 -2
  73. package/dist/validation/primitives/text.d.mts +2 -2
  74. package/dist/validation/primitives/text.d.ts +2 -2
  75. package/package.json +2 -2
package/dist/index.d.mts CHANGED
@@ -1,23 +1,23 @@
1
- import { S as SortRule, F as FilterState, V as ViewType, a as ViewConfig, C as ConfigOverrides, b as FilterOperator, D as DetailViewConfig, c as DetailViewDefinition, d as SidePanelConfig, e as Field, A as AttributeGroupField, f as FieldGroup, G as Group, T as TableTab, g as CreateMode, E as EmailsTab, M as MeetingsTab, h as Tab, L as ListViewConfig, i as ListViewDefinition, j as ViewDefinition, k as ListViewTab, l as FilterValue, m as FilterRule, n as DynamicValue, R as RelativeDateValue } from './index-DWoqObyG.mjs';
2
- export { o as ActivityTab, p as AddAttributeInput, q as AdvancedFilterState, r as CreateCustomObjectInput, s as CreateViewInput, t as CurrencyFilterValue, u as CustomTab, v as DayMonthValue, w as DocumentsTab, x as EdgeQuantifier, y as ExtendedFilterRule, z as FilterCombinator, B as FilterGroup, H as FormDensity, I as FormTab, J as FormsTab, K as InverseSource, N as ListViewLayout, O as NO_VALUE_OPERATORS, P as NoValueOperator, Q as OPERATORS_BY_TYPE, U as PhoneFilterValue, W as QueryState, X as RelationOption, Y as RelationOptionsResponse, Z as RelationSource, _ as RichtextTab, $ as SortDirection, a0 as TabType, a1 as TableSource, a2 as UpdateObjectInput, a3 as UpdateViewInput, a4 as ViewOverlay, a5 as getRollupFilterOperators, a6 as isDetailView, a7 as isFieldGroup, a8 as isListView, a9 as isNoValueOperator, aa as multiselectOptionWriteSchema, ab as parseAttributeConfig, ac as parseAttributeConfigForCreate, ad as parseAttributeConfigForUpdate, ae as selectOptionWriteSchema, af as statusGroupSchema, ag as statusOptionWriteSchema } from './index-DWoqObyG.mjs';
3
- import { i as ComputedValueType, j as ComputedReturnType, f as AttributeType, k as ComputedOptionsSource, l as ComputedDependency, m as ComputedPlan, e as RollupAttribute, n as ComputedFormulaAstNode, A as Attribute, o as LocationGranularity, p as Location, F as FormulaAttribute, D as DateAttribute, q as DateRangeValue, r as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, s as Phone, t as Currency, U as UserAttribute, T as TextAttribute, u as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, v as TimeFormat, w as PropertyAttribute, x as FormulaReturnType, L as LocationAttribute, O as Option, N as NumberAttribute, P as PhoneAttribute, R as RelationAttribute, B as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, y as RelationTarget, a as RichtextAttribute, z as RollupFunction, E as UserReferenceType } from './attributes--M1ifW8_.mjs';
4
- export { G as AttributeGroup, H as BaseAttribute, h as ComputedAttributeState, I as ComputedFieldKind, J as ComputedFormulaBinaryNode, K as ComputedFormulaBinaryOperator, Q as ComputedFormulaCallNode, V as ComputedFormulaLiteralNode, W as ComputedFormulaParseError, X as ComputedFormulaPathNode, Y as ComputedStateStatus, Z as DateFormat, _ as DateValue, $ as NumberUnit, a0 as OptionPropertyAttribute, a1 as PropertyType, a2 as RELATION_TARGET_ANY, a3 as RichTextAttribute, a4 as StatusGroup, a5 as hasOptions, a6 as inferInverseCardinality, a7 as isAttributeSortable, a8 as isBilateralRelation, a9 as isUniversalRelation, aa as parseComputedFormula, ab as resolvePropertyDefinitions } from './attributes--M1ifW8_.mjs';
1
+ import { S as SortRule, F as FilterState, V as ViewType, a as ViewConfig, C as ConfigOverrides, b as FilterOperator, D as DetailViewConfig, c as DetailViewDefinition, d as SidePanelConfig, e as Field, A as AttributeGroupField, f as FieldGroup, G as Group, T as TableTab, g as CreateMode, E as EmailsTab, M as MeetingsTab, h as Tab, L as ListViewConfig, i as ListViewDefinition, j as ViewDefinition, k as ListViewTab, l as FilterValue, m as FilterRule, n as DynamicValue, R as RelativeDateValue } from './index-D9XBjFnu.mjs';
2
+ export { o as ActivityTab, p as AddAttributeInput, q as AdvancedFilterState, r as CreateCustomObjectInput, s as CreateViewInput, t as CurrencyFilterValue, u as CustomTab, v as DayMonthValue, w as DocumentsTab, x as EdgeQuantifier, y as ExtendedFilterRule, z as FilterCombinator, B as FilterGroup, H as FormDensity, I as FormTab, J as FormsTab, K as InverseSource, N as ListViewLayout, O as NO_VALUE_OPERATORS, P as NoValueOperator, Q as OPERATORS_BY_TYPE, U as PhoneFilterValue, W as QueryState, X as RelationOption, Y as RelationOptionsResponse, Z as RelationSource, _ as RichtextTab, $ as SidePanelPane, a0 as SortDirection, a1 as TabType, a2 as TableSource, a3 as UpdateObjectInput, a4 as UpdateViewInput, a5 as ViewOverlay, a6 as getRollupFilterOperators, a7 as isDetailView, a8 as isFieldGroup, a9 as isListView, aa as isNoValueOperator, ab as multiselectOptionWriteSchema, ac as parseAttributeConfig, ad as parseAttributeConfigForCreate, ae as parseAttributeConfigForUpdate, af as selectOptionWriteSchema, ag as statusGroupSchema, ah as statusOptionWriteSchema } from './index-D9XBjFnu.mjs';
3
+ import { h as ComputedValueType, i as ComputedReturnType, f as AttributeType, j as ComputedOptionsSource, k as ComputedDependency, l as ComputedPlan, e as RollupAttribute, m as ComputedFormulaAstNode, A as Attribute, n as LocationGranularity, o as Location, F as FormulaAttribute, D as DateAttribute, p as DateRangeValue, q as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, r as Phone, s as Currency, U as UserAttribute, T as TextAttribute, t as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, u as TimeFormat, v as PropertyAttribute, w as FormulaReturnType, L as LocationAttribute, O as Option, N as NumberAttribute, P as PhoneAttribute, R as RelationAttribute, B as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, x as RelationTarget, a as RichtextAttribute, y as RollupFunction, z as UserReferenceType } from './attributes-DoiGyNFk.mjs';
4
+ export { E as AttributeGroup, G as BaseAttribute, H as ComputedFieldKind, I as ComputedFormulaBinaryNode, J as ComputedFormulaBinaryOperator, K as ComputedFormulaCallNode, Q as ComputedFormulaLiteralNode, V as ComputedFormulaParseError, W as ComputedFormulaPathNode, X as DateFormat, Y as DateValue, Z as NumberUnit, _ as OptionPropertyAttribute, $ as PropertyType, a0 as RELATION_TARGET_ANY, a1 as RichTextAttribute, a2 as StatusGroup, a3 as hasOptions, a4 as inferInverseCardinality, a5 as isAttributeSortable, a6 as isBilateralRelation, a7 as isUniversalRelation, a8 as parseComputedFormula, a9 as resolvePropertyDefinitions } from './attributes-DoiGyNFk.mjs';
5
5
  import { IconName, MimeType, ColorId, CountryIso3, CurrencyCode } from '@stndrds/constants';
6
6
  import { Uuid, TenantId } from './utils.mjs';
7
7
  export { UserId, asTenantId, asUserId, canonicalStringify, deepEqual, generateId, indexBy } from './utils.mjs';
8
- import { a as ObjectRecord, D as DocumentLayout, T as Timestamps, R as ResourceVisibility, O as ObjectDefinition, L as ListViewTabVisibility } from './objects-DmMqHn3L.mjs';
9
- export { b as DocumentLayoutVariant, F as FolderPreset, c as LIST_VIEW_TAB_VISIBILITIES, M as MAX_PRESET_DEPTH, d as ObjectAttribute, P as PresetNode, e as RESERVED_ATTRIBUTE_NAMES, f as RESERVED_OBJECT_NAMES, g as RESOURCE_VISIBILITIES, h as ReservedAttributeName, i as ReservedObjectName, S as SYSTEM_FIELD_NAMES, j as SystemFieldName, p as parseResourceVisibility } from './objects-DmMqHn3L.mjs';
10
- import { M as MigrationDefinition } from './migrations-BNlQVzDC.mjs';
11
- export { B as BuiltInTransform, S as SchemaOperation } from './migrations-BNlQVzDC.mjs';
8
+ import { a as ObjectRecord, D as DocumentLayout, T as Timestamps, R as ResourceVisibility, O as ObjectDefinition, L as ListViewTabVisibility } from './objects-BRypaBpi.mjs';
9
+ export { b as DocumentLayoutVariant, F as FolderPreset, c as LIST_VIEW_TAB_VISIBILITIES, M as MAX_PRESET_DEPTH, d as ObjectAttribute, P as PresetNode, e as RESERVED_ATTRIBUTE_NAMES, f as RESERVED_OBJECT_NAMES, g as RESOURCE_VISIBILITIES, h as ReservedAttributeName, i as ReservedObjectName, S as SYSTEM_FIELD_NAMES, j as SystemFieldName, p as parseResourceVisibility } from './objects-BRypaBpi.mjs';
10
+ import { M as MigrationDefinition } from './migrations-C-GN1xx_.mjs';
11
+ export { B as BuiltInTransform, S as SchemaOperation } from './migrations-C-GN1xx_.mjs';
12
12
  import { ValidationError } from './exceptions.mjs';
13
13
  export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, AttributeUsage, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReference, RecordReferencedError, RepositoryError, RepositoryOperation, RoleNotFoundError, SchemaError, SchemaErrorCode, SchemaPlanNotFoundError, SearchBackendError, StorageError, StorageOperation, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationErrorDetail, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError } from './exceptions.mjs';
14
14
  import { StandardSchemaV1 } from '@standard-schema/spec';
15
15
  export { StandardSchemaV1 } from '@standard-schema/spec';
16
16
  import z, { z as z$1 } from 'zod';
17
- export { V as ValidationMessages } from './types-DHqXzkgW.mjs';
17
+ export { V as ValidationMessages } from './types-80c2rOUZ.mjs';
18
18
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './validation/core/index.mjs';
19
- export { S as SCHEMA_LIMITS, c as colorIdSchema, d as detailTabSchema, a as detailViewConfigSchema, i as iconNameSchema, b as inverseSourceSchema, l as listViewConfigSchema, e as listViewTabSchema, p as parseViewConfig, r as relationSourceSchema, t as tableSourceSchema, v as viewConfigByTypeSchema, f as viewTypeSchema } from './all-CnIU2anT.mjs';
20
- export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from './helpers-BiABdSxK.mjs';
19
+ export { S as SCHEMA_LIMITS, c as colorIdSchema, d as detailTabSchema, a as detailViewConfigSchema, i as iconNameSchema, b as inverseSourceSchema, l as listViewConfigSchema, e as listViewTabSchema, p as parseViewConfig, r as relationSourceSchema, t as tableSourceSchema, v as viewConfigByTypeSchema, f as viewTypeSchema } from './all-CQMswOrw.mjs';
20
+ export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from './helpers-CfEOUBmB.mjs';
21
21
  export { createCheckboxValidator } from './validation/primitives/checkbox.mjs';
22
22
  export { createDateValidator } from './validation/primitives/date.mjs';
23
23
  export { createNumberValidator } from './validation/primitives/number.mjs';
@@ -1776,7 +1776,31 @@ interface AgentSession {
1776
1776
  /** Convenience flag: true when session has activity since `lastReadAt` (or never read). */
1777
1777
  isUnread?: boolean;
1778
1778
  }
1779
- type ToolPartState = "streaming" | "running" | "completed" | "error";
1779
+ /**
1780
+ * Lifecycle of a persisted tool part. The three `approval-*` values are the
1781
+ * SDK-native approval lifecycle adopted as the PERSISTED model (issue #2687):
1782
+ * an approval-gated call is no longer read from field combinations
1783
+ * (`approvalId` + `approved` + result forensics) but from one named state —
1784
+ * every "is this pending a human?" predicate collapses to a state read.
1785
+ *
1786
+ * - `approval-requested` — suspended by the approval gate, awaiting a human.
1787
+ * - `approval-responded` — a human APPROVED it; not yet handed to the SDK.
1788
+ * (A refusal never holds a state: it closes to `completed` with the refusal
1789
+ * result at decision time, like the 24h expiry does.)
1790
+ * - `approval-dispatched` — handed to the SDK for resume by a wake; the
1791
+ * exactly-once fence. Found still in this state at the NEXT wake, the
1792
+ * worker died mid-execution: the part is closed as unknown-outcome, never
1793
+ * silently re-run.
1794
+ */
1795
+ type ToolPartState = "streaming" | "running" | "completed" | "error" | "approval-requested" | "approval-responded" | "approval-dispatched";
1796
+ /** The approval-family states, in machine order. Exported so guards list them once. */
1797
+ declare const TOOL_APPROVAL_STATES: readonly ["approval-requested", "approval-responded", "approval-dispatched"];
1798
+ /** Every state in which a tool part is still OPEN (no terminal result/error). */
1799
+ declare const OPEN_TOOL_PART_STATES: readonly ["streaming", "running", "approval-requested", "approval-responded", "approval-dispatched"];
1800
+ /** True when the part is still open (no terminal result/error yet). */
1801
+ declare function isOpenToolPartState(state: ToolPartState): boolean;
1802
+ /** True when the part sits in the named approval lifecycle (issue #2687). */
1803
+ declare function isToolApprovalState(state: ToolPartState): boolean;
1780
1804
  /**
1781
1805
  * Structured cause for a tool part that ended in `state: "error"` without the
1782
1806
  * tool having run. Lets the UI render a localized explanation instead of the
@@ -1824,15 +1848,6 @@ interface ToolImpact {
1824
1848
  counts?: Record<string, number>;
1825
1849
  warnings?: string[];
1826
1850
  }
1827
- /**
1828
- * LEGACY (chantier Q, 2026-08-09): the required-vs-optional split on human
1829
- * requests was deleted — a question never blocks anything, and an
1830
- * approval-family request always gates the turn, so nothing decides between
1831
- * the two values anymore. The type and the `humanRequestNeed` part field
1832
- * below survive only because persisted rows still carry the stamp; no reader
1833
- * consults it.
1834
- */
1835
- type HumanRequestNeed = "required" | "optional";
1836
1851
  type AgentMessagePart = {
1837
1852
  type: "text";
1838
1853
  text: string;
@@ -1890,13 +1905,6 @@ type AgentMessagePart = {
1890
1905
  * reader) is told about the decision.
1891
1906
  */
1892
1907
  approvalReason?: string;
1893
- /**
1894
- * LEGACY (chantier Q): the required-vs-optional split is gone — see
1895
- * {@link HumanRequestNeed}. Approval suspensions still stamp
1896
- * `"required"` (a statement of fact on the row), but no reader
1897
- * consults the field anymore.
1898
- */
1899
- humanRequestNeed?: HumanRequestNeed;
1900
1908
  /**
1901
1909
  * Whether the session's `auto` mode would have let THIS call through —
1902
1910
  * i.e. whether offering "always allow this here" on its card would be
@@ -3089,6 +3097,25 @@ declare function resolveFieldRequired(input: {
3089
3097
  }): boolean;
3090
3098
  /** All slot ids a slot field writes to: the primary followed by any additional slots. */
3091
3099
  declare function getSlotFieldTargets(field: FormSlotFieldRef): string[];
3100
+ /**
3101
+ * The namespaced key a form field's value lives under in a step's value bag:
3102
+ * `"slotId.attr"` for a slot field — always the primary slot, never an
3103
+ * additional one — and `"free.attr"` for a free field.
3104
+ *
3105
+ * Lives here for the same reason as `resolveFieldRequired`: `FormService`, the
3106
+ * form config builder and the section navigation each computed it themselves,
3107
+ * so a change to the namespacing in one place would silently strand the
3108
+ * others' saved values (#2648). One function, imported by all of them.
3109
+ */
3110
+ declare function formFieldKey(field: FormFieldRef): string;
3111
+ /** The legacy flat key — the bare attribute name — pre-namespacing submissions used. */
3112
+ declare function formFieldFlatKey(field: FormFieldRef): string;
3113
+ /**
3114
+ * A form field's value from a step's value bag: the namespaced key, falling
3115
+ * back to the legacy flat key. The fallback is nullish, not emptiness — an
3116
+ * empty string saved under the namespaced key IS the value.
3117
+ */
3118
+ declare function readFormFieldValue(values: Record<string, unknown>, field: FormFieldRef): unknown;
3092
3119
 
3093
3120
  interface FormFieldsRow {
3094
3121
  id: string;
@@ -3646,6 +3673,34 @@ type ExtractRecordUpdateStrict<TBuilder> = TBuilder extends {
3646
3673
  type ReflexState = "armed" | "disarmed";
3647
3674
  /** A version is proposed, then promoted then eventually replaced — or rejected. */
3648
3675
  type ReflexVersionStatus = "candidate" | "promoted" | "superseded" | "rejected";
3676
+ /**
3677
+ * The authoring pipeline's progress, persisted on the reflex row so the page
3678
+ * can show where an out-of-band authoring job stands (#2583). The jobs table
3679
+ * writes its result once, terminally — mid-run progress lives on the domain
3680
+ * row, the same pattern `schema_plans.status` follows. `null` on rows created
3681
+ * before the authoring pipeline existed.
3682
+ */
3683
+ type ReflexAuthoringStatus = "authoring" | "compiling" | "replaying" | "promoted" | "failed";
3684
+ /**
3685
+ * One seed case supplied at creation: replayed by the engine's stage 4 with
3686
+ * exact deep equality (`out` becomes the corpus entry's `expectedOutput`).
3687
+ */
3688
+ interface ReflexSeedExample {
3689
+ in: unknown;
3690
+ out: unknown;
3691
+ }
3692
+ /**
3693
+ * Per-stage durations of the compilation that produced a version, in
3694
+ * milliseconds, keyed by the engine's stage names. Recorded on the version row
3695
+ * at promotion time only — rejected and candidate rows keep `null`; the full
3696
+ * per-attempt record (rejections included) lives in `reflex_compilations`.
3697
+ */
3698
+ interface ReflexVersionStages {
3699
+ typecheck: number;
3700
+ bundle: number;
3701
+ gates: number;
3702
+ replay: number;
3703
+ }
3649
3704
  /**
3650
3705
  * `live` and `rehearsal` are the old module's vocabulary (`rehearsal`
3651
3706
  * captures outbound effects instead of performing them); `promoted` and `lkg`
@@ -3689,6 +3744,16 @@ interface Reflex {
3689
3744
  /** Author, kept for the permission ceiling of D23. */
3690
3745
  createdByActorId: Uuid;
3691
3746
  promotedVersionId: Uuid | null;
3747
+ /**
3748
+ * The natural-language intent the authored code must implement. The single
3749
+ * input of the LLM author; re-authoring later happens by editing it. `null`
3750
+ * on rows that predate the authoring pipeline.
3751
+ */
3752
+ instructions: string | null;
3753
+ /** Seed cases handed to the corpus before the first compilation, or null. */
3754
+ examples: ReflexSeedExample[] | null;
3755
+ /** Where the latest authoring job stands; null before the pipeline existed. */
3756
+ authoringStatus: ReflexAuthoringStatus | null;
3692
3757
  createdAt: Date;
3693
3758
  updatedAt: Date;
3694
3759
  }
@@ -3712,6 +3777,8 @@ interface ReflexVersion {
3712
3777
  digest: string | null;
3713
3778
  /** Tool names this version is allowed to call through the gateway. */
3714
3779
  capabilities: string[];
3780
+ /** Stage durations of the compilation that promoted this version; null on candidate and rejected rows (#2583, R8). */
3781
+ stages: ReflexVersionStages | null;
3715
3782
  createdAt: Date;
3716
3783
  }
3717
3784
  interface ReflexRun {
@@ -3747,6 +3814,142 @@ interface CreateReflexVersionInput {
3747
3814
  sources: Record<string, string>;
3748
3815
  capabilities: string[];
3749
3816
  }
3817
+ /**
3818
+ * The ENGINE lifecycle of a reflex — what a run would serve — shown next to
3819
+ * the product {@link ReflexState}, never merged with it (spec P3). Mirrors
3820
+ * `ReflexLifecycleState` from `@stndrds/reflex` (which this contract package
3821
+ * cannot import: the engine depends on nothing, and nothing here may depend
3822
+ * on the engine).
3823
+ */
3824
+ type ReflexEngineState = "unbuilt" | "ready" | "degraded" | "quarantined";
3825
+ /** How one serve ended: the promoted artefact answered, the LKG did, or neither. */
3826
+ type ReflexRunOutcome = "success" | "fallback" | "failure";
3827
+ /** The engine's failure taxonomy, recorded per run. */
3828
+ type ReflexRunClassification = "transient" | "dependency" | "contract" | "semantic";
3829
+ /** One run, summarized for the page. */
3830
+ interface ReflexRunSummary {
3831
+ id: string;
3832
+ version: number | null;
3833
+ mode: RunMode;
3834
+ outcome: ReflexRunOutcome | null;
3835
+ classification: ReflexRunClassification | null;
3836
+ evidence: string | null;
3837
+ segments: unknown;
3838
+ startedAt: string;
3839
+ finishedAt: string | null;
3840
+ wallMs: number | null;
3841
+ }
3842
+ interface ReflexVersionSummary {
3843
+ id: string;
3844
+ version: number;
3845
+ status: ReflexVersionStatus;
3846
+ digest: string | null;
3847
+ nodeCount: number | null;
3848
+ stages: ReflexVersionStages | null;
3849
+ /** `{code, reason}` on rejected versions; null otherwise. Read as unknown at the boundary. */
3850
+ rejection: unknown;
3851
+ createdAt: string;
3852
+ }
3853
+ /** The list row: both states' raw material, versions, last run, corpus size. */
3854
+ interface ReflexListRow {
3855
+ id: string;
3856
+ name: string;
3857
+ state: ReflexState;
3858
+ authoringStatus: ReflexAuthoringStatus | null;
3859
+ promotedVersion: {
3860
+ version: number;
3861
+ digest: string | null;
3862
+ } | null;
3863
+ /** The last known good — the latest superseded version, the degraded serve's artefact. */
3864
+ lkgVersion: {
3865
+ version: number;
3866
+ digest: string | null;
3867
+ } | null;
3868
+ lastRun: Pick<ReflexRunSummary, "id" | "mode" | "outcome" | "classification" | "finishedAt"> | null;
3869
+ corpusSize: number;
3870
+ createdAt: string;
3871
+ updatedAt: string;
3872
+ }
3873
+ /** A {@link ReflexListRow} with the engine state resolved — one `GET /reflexes` entry. */
3874
+ interface ReflexListItem extends ReflexListRow {
3875
+ engineState: ReflexEngineState;
3876
+ }
3877
+ interface ReflexCorpusEntrySummary {
3878
+ id: string;
3879
+ seq: number;
3880
+ input: unknown;
3881
+ expectedOutput: unknown;
3882
+ provenance: unknown;
3883
+ createdAt: string;
3884
+ }
3885
+ interface ReflexCorpusPage {
3886
+ entries: ReflexCorpusEntrySummary[];
3887
+ /** Total corpus size for this reflex, independent of the page bounds. */
3888
+ total: number;
3889
+ }
3890
+ /** The per-tenant `reflex stats` shape (spec §4): classification counts + runs over time. */
3891
+ interface ReflexStats {
3892
+ classificationCounts: {
3893
+ transient: number;
3894
+ contract: number;
3895
+ dependency: number;
3896
+ };
3897
+ runsByDay: Array<{
3898
+ day: string;
3899
+ total: number;
3900
+ failures: number;
3901
+ }>;
3902
+ }
3903
+ /** `GET /reflexes/:id` — versions, recent runs, one corpus page, authoring progress. */
3904
+ interface ReflexDetail {
3905
+ id: string;
3906
+ name: string;
3907
+ state: ReflexState;
3908
+ engineState: ReflexEngineState;
3909
+ instructions: string | null;
3910
+ authoringStatus: ReflexAuthoringStatus | null;
3911
+ promotedVersionId: string | null;
3912
+ versions: ReflexVersionSummary[];
3913
+ recentRuns: ReflexRunSummary[];
3914
+ corpus: ReflexCorpusPage;
3915
+ createdAt: string;
3916
+ updatedAt: string;
3917
+ }
3918
+ /** The JSON wire form of {@link Reflex} — dates serialized. What `POST /reflexes` answers. */
3919
+ type ReflexWire = Omit<Reflex, "createdAt" | "updatedAt"> & {
3920
+ createdAt: string;
3921
+ updatedAt: string;
3922
+ };
3923
+ /** One tool invocation of a serve, as the backend recorded it (mirrors the engine's `ToolCallRecord`). */
3924
+ interface ReflexRunToolCall {
3925
+ name: string;
3926
+ inputDigest: string;
3927
+ kind: "read" | "write";
3928
+ durationMs: number;
3929
+ }
3930
+ /** What `POST /reflexes/:id/run` answers — which artefact served, and what it did. */
3931
+ interface ReflexRunResultWire {
3932
+ /** The run id of the record that answered (the LKG serve's when it fell back). */
3933
+ runId: string;
3934
+ output: unknown;
3935
+ /** Which artefact answered: the promoted version, or the last known good. */
3936
+ served: "promoted" | "lkg";
3937
+ version: number;
3938
+ calls: ReflexRunToolCall[];
3939
+ wallMs: number;
3940
+ }
3941
+ /**
3942
+ * The precision gate's structured verdict (spec P5). A refused `POST /reflexes`
3943
+ * answers 400 with this object, verbatim, as the error body's `details`.
3944
+ */
3945
+ interface ReflexGateVerdict {
3946
+ /** Precision score of the brief, 0 (unusable) to 100 (fully precise). */
3947
+ score: number;
3948
+ /** What the brief leaves undecidable. */
3949
+ missing: string[];
3950
+ /** A reformulation of the brief that would pass the gate. */
3951
+ suggestion: string;
3952
+ }
3750
3953
 
3751
3954
  /**
3752
3955
  * A custom navigation item rendered in the sidebar, alongside the
@@ -4514,6 +4717,17 @@ declare function applyRelationProps(label: string, props: Record<string, unknown
4514
4717
  * the substitution entirely.
4515
4718
  */
4516
4719
  declare function relationPropertyDefs(attribute: Attribute | undefined): Attribute[] | undefined;
4720
+ /**
4721
+ * The qualified-edge property definitions an attribute declares, whichever kind
4722
+ * of edge carries them.
4723
+ *
4724
+ * Wider than {@link relationPropertyDefs} on purpose: `document()` accepts
4725
+ * `.qualifyWith(...)` too and stores its properties on the same
4726
+ * `record_reference_edges` row, so a caller that reads property VALUES — rather
4727
+ * than substituting `{{ props.X }}` into a relation label — must accept both or
4728
+ * fall back to the raw property name (#2574).
4729
+ */
4730
+ declare function qualifiedPropertyDefs(attribute: Attribute | undefined): Attribute[] | undefined;
4517
4731
  interface ValueRef {
4518
4732
  id: string;
4519
4733
  props?: Record<string, unknown>;
@@ -5558,6 +5772,13 @@ declare class RollupAttributeBuilder<TName extends string> extends BaseAttribute
5558
5772
  * @param options - The options array from the target attribute
5559
5773
  */
5560
5774
  targetOptions(options: Option[]): this;
5775
+ /**
5776
+ * Set the currency code a sum/avg over a currency target renders with
5777
+ * (#2644). Mirror of the target attribute's `defaultCurrency` — the stored
5778
+ * value stays a bare number; this only carries the symbol to the screen.
5779
+ * @param code - ISO 4217 code (e.g. "EUR")
5780
+ */
5781
+ targetCurrency(code: CurrencyCode): this;
5561
5782
  /**
5562
5783
  * Build the attribute, validating computed-field configuration eagerly so a
5563
5784
  * misconfiguration surfaces at schema-definition time (with a fix-it hint)
@@ -7926,6 +8147,15 @@ type RecordPatchLiveEvent = {
7926
8147
  label?: string;
7927
8148
  metadata?: Record<string, unknown>;
7928
8149
  fieldPatches: RecordFieldPatch[];
8150
+ /**
8151
+ * At least one field patch was withheld from this audience (#2637): the copy
8152
+ * a peer holds is no longer authoritative and must be re-read, not merged.
8153
+ * Deliberately non-naming — it discloses strictly less than the field name,
8154
+ * since `recordVersion`/`updatedAt` already say a write happened. Absent on
8155
+ * every patch whose audience saw everything. A presence bit (`?: true`):
8156
+ * `fieldsWithheld: false` is unrepresentable on purpose.
8157
+ */
8158
+ fieldsWithheld?: true;
7929
8159
  updatedAt: string;
7930
8160
  };
7931
8161
  type RecordDeletedLiveEvent = {
@@ -8072,6 +8302,14 @@ type ConversationRenamedLiveEvent = {
8072
8302
  type: "conversation.renamed";
8073
8303
  sessionId: string;
8074
8304
  title: string;
8305
+ /**
8306
+ * Session metadata patch riding the rename (e.g. clearing `titlePending`).
8307
+ * Folded into this event rather than emitted as a paired
8308
+ * `agent.session.patch`: the pair shared one version, so whichever event
8309
+ * applied first made the client drop the other at its `<=` version gate —
8310
+ * the metadata half never landed.
8311
+ */
8312
+ metadata?: Record<string, unknown> | null;
8075
8313
  version: number;
8076
8314
  updatedAt: string;
8077
8315
  };
@@ -8090,12 +8328,37 @@ type BrowserPreviewUpdatedLiveEvent = {
8090
8328
  type: "browser.preview.updated";
8091
8329
  preview: BrowserPreviewDescriptor;
8092
8330
  };
8331
+ /** A reflex moved between the two product states (armed/disarmed). */
8332
+ type ReflexStateChangedLiveEvent = {
8333
+ type: "reflex.state.changed";
8334
+ reflexId: string;
8335
+ state: ReflexState;
8336
+ updatedAt: string;
8337
+ };
8338
+ /** A reflex run finished — which artefact answered, and how long it took. */
8339
+ type ReflexRunCompletedLiveEvent = {
8340
+ type: "reflex.run.completed";
8341
+ reflexId: string;
8342
+ runId: string;
8343
+ /** Which artefact answered: the promoted version, or the last known good. */
8344
+ served: "promoted" | "lkg";
8345
+ version: number;
8346
+ wallMs: number;
8347
+ completedAt: string;
8348
+ };
8349
+ /** The out-of-band authoring job advanced (authoring → compiling → replaying → promoted/failed). */
8350
+ type ReflexAuthoringProgressLiveEvent = {
8351
+ type: "reflex.authoring.progress";
8352
+ reflexId: string;
8353
+ status: ReflexAuthoringStatus;
8354
+ updatedAt: string;
8355
+ };
8093
8356
  type ChannelRevokedLiveEvent = {
8094
8357
  type: "channel.revoked";
8095
8358
  channel: string;
8096
8359
  reason: "permission-revoked" | "workspace-left" | "object-deleted";
8097
8360
  };
8098
- type LiveEventPayload = RecordPatchLiveEvent | RecordDeletedLiveEvent | RecordRemovedLiveEvent | RecordCreatedLiveEvent | ViewProjectionStaleLiveEvent | AgentSessionPatchLiveEvent | AgentUnreadPatchLiveEvent | NotificationCreatedLiveEvent | NotificationRecipientPatchLiveEvent | NotificationCountPatchLiveEvent | ConversationRenamedLiveEvent | BrowserPreviewUpdatedLiveEvent | ChannelRevokedLiveEvent;
8361
+ type LiveEventPayload = RecordPatchLiveEvent | RecordDeletedLiveEvent | RecordRemovedLiveEvent | RecordCreatedLiveEvent | ViewProjectionStaleLiveEvent | AgentSessionPatchLiveEvent | AgentUnreadPatchLiveEvent | NotificationCreatedLiveEvent | NotificationRecipientPatchLiveEvent | NotificationCountPatchLiveEvent | ConversationRenamedLiveEvent | BrowserPreviewUpdatedLiveEvent | ReflexStateChangedLiveEvent | ReflexRunCompletedLiveEvent | ReflexAuthoringProgressLiveEvent | ChannelRevokedLiveEvent;
8099
8362
  type LiveEventType = LiveEventPayload["type"];
8100
8363
  declare const LIVE_EVENT_TYPES: readonly LiveEventType[];
8101
8364
  declare function isLiveEventType(value: unknown): value is LiveEventType;
@@ -9084,58 +9347,6 @@ interface SchemaPlan {
9084
9347
  additive: SchemaPlanAdditive;
9085
9348
  destructive: SchemaPlanDestructive;
9086
9349
  }
9087
- /**
9088
- * A plan being accumulated one entry at a time, before a summary exists.
9089
- *
9090
- * Derived from {@link SchemaPlan} rather than redeclared, so an entry added to
9091
- * the plan shape is automatically addable to a draft — the two cannot drift
9092
- * into accepting different things. `summary` is absent because it describes a
9093
- * finished plan: the agent writes it at `propose_schema_plan`, once it knows
9094
- * what it actually assembled. `schemaPlanVersion` is absent because a draft is
9095
- * never handed to anything that dispatches on it; it is stamped at finalize.
9096
- */
9097
- type SchemaPlanDraft = Omit<SchemaPlan, "schemaPlanVersion" | "summary">;
9098
- /**
9099
- * Where a session's draft stands in its lifecycle.
9100
- *
9101
- * `composing` is a draft still accumulating entries; `proposed` is a draft
9102
- * whose entries became a plan (`propose_schema_plan`) and are KEPT — the
9103
- * preview window renders them until the plan is applied or rejected. A
9104
- * proposed draft never silently accepts new entries: the next entry starts a
9105
- * fresh `composing` draft, which is what protects a later plan from stale
9106
- * leftovers now that drafts are session-scoped rather than turn-scoped.
9107
- */
9108
- type SchemaPlanDraftStatus = "composing" | "proposed";
9109
- /** Sample records for preview only — keyed by object name, values keyed by attribute name. */
9110
- type SchemaPlanSampleData = Record<string, Record<string, unknown>[]>;
9111
- /**
9112
- * What a draft repository write carries: the plan-shaped draft plus the
9113
- * preview envelope around it. `updatedAt` is absent on purpose — the store
9114
- * stamps it, so no caller can write a time it made up.
9115
- */
9116
- interface SchemaPlanDraftWrite {
9117
- draft: SchemaPlanDraft;
9118
- sampleData: SchemaPlanSampleData;
9119
- status: SchemaPlanDraftStatus;
9120
- /** The plan this draft became at finalize; `null` while composing. */
9121
- proposedPlanId: Uuid | null;
9122
- }
9123
- /**
9124
- * What the draft endpoint returns and the repository stores alongside the
9125
- * plan-shaped draft. `updatedAt` (ISO string) is the store's stamp, used by
9126
- * the preview window's dismissal ledger to tell new activity from old.
9127
- */
9128
- interface SchemaPlanDraftState extends SchemaPlanDraftWrite {
9129
- updatedAt: string;
9130
- }
9131
- /**
9132
- * What the draft endpoint answers: the full state, or `{ draft: null }` for a
9133
- * session with no draft — always 200, because "nothing composed yet" is a
9134
- * normal state the preview window polls through, not an error.
9135
- */
9136
- type SchemaPlanDraftResponse = SchemaPlanDraftState | {
9137
- draft: null;
9138
- };
9139
9350
  /** The server-prepared payload persisted for later approval and execution. */
9140
9351
  interface PersistedSchemaPlan {
9141
9352
  schemaPlanVersion: 2;
@@ -9852,7 +10063,12 @@ interface DraftFocus {
9852
10063
  /** A view as the fold sees it — published shape, no persistence concerns. */
9853
10064
  interface DraftableView {
9854
10065
  id: string;
9855
- objectId: string;
10066
+ /**
10067
+ * The object this view belongs to, by NAME. `ViewDefinition` references its
10068
+ * object by name throughout this codebase; carrying an id here would force
10069
+ * every reader to invent a mapping that does not exist in the data.
10070
+ */
10071
+ objectName: string;
9856
10072
  type: "detail" | "list";
9857
10073
  label: string;
9858
10074
  tabs: Tab[];
@@ -9973,4 +10189,25 @@ declare function ensureFieldIds(tabs: Tab[]): Tab[];
9973
10189
  declare const OPERATION_REGISTRY: ReadonlyMap<string, OperationDef<BaseOperation>>;
9974
10190
  declare const ALL_OPERATION_TYPES: readonly string[];
9975
10191
 
9976
- export { AGENT_UI_BATCH_MAX_BYTES, AGENT_UI_BATCH_MAX_ITEMS, type AIAvailableModel, type AIBatchAnswerValue, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIBatchQuestionType, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AIChatNotification, 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 AISubagentStatus, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_OPERATION_TYPES, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, type AcceptsCandidate, type AccessLevel, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddSharedMailboxInput, type AgentApprovalPolicy, type AgentBlueprint, AgentBuilder, type AgentBuilderConfig, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentMessageAttachment, type AgentMessagePart, type AgentRequiredPermission, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionPatchLiveEvent, type AgentSessionStatus, type AgentTodoPlan, type AgentTodoPlanStatus, type AgentTodoPlanView, type AgentToolCall, type AgentTriggerBlueprint, type AgentTriggerDefinition, type AgentTriggerType, type AgentUIDataTypes, type AgentUIMessageBatch, type AgentUIMessageBatchItem, type AgentUnreadPatchLiveEvent, type AgentUsageView, type AgentWorkMode, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type ApprovalMode, type AssignActorRoleInput, type AssignRoleInput, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, AttributeGroupField, type AttributeLifecycleCapabilities, type AttributeLike, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, AttributeType, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, type AuthorizedGlobalSearchResult, type AuthorizedRecordSearchResult, type AuthorizedSearchPage, BEHAVIOR_PROPERTIES, BROWSER_PREVIEW_STATUSES, BYTE_UNIT_LABELS, type BaseOperation, BilateralConfig, type BoundingBox, type BrowserPreviewDescriptor, type BrowserPreviewStatus, type BrowserPreviewUpdatedLiveEvent, type BuilderConfig, type ByteMagnitude, CLAIMABLE_SESSION_STATUSES, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, CONNECTOR_CALLBACK_PARAM, COUNT_MODES, type CalendarConnectorProviderId, type CalendarMeetingEndedData, type CalendarMeetingTranscriptCreatedData, type ChannelRevokedLiveEvent, CheckboxAttribute, type ClaimableSessionStatus, type CollectionPage, type CollectionRequest, type CollectionResponse, type CompactionStrategy, type CompileComputedFormulaInput, 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, ConfigOverrides, type ConnectMcpServerInput, type ConnectionStatus, type ConnectionStatusId, type ConnectionView, type ConnectorCallbackStatusValue, type ConnectorProviderId, type ConnectorProvidersResult, type ConnectorScope, type ContinuationPage, type ConversationDisplayTitleInput, type ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateDocument, type CreateDocumentLink, type CreateFile, CreateMode, type CreateNotificationInput, type CreateNotificationRecipientInput, type CreateObjectRecord, type CreatePermissionInput, type CreateReflexInput, type CreateReflexVersionInput, type CreateRoleInput, type CreateUserProfile, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, type CustomObjectInfo, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, type DBViewSyncResolution, DB_COLUMN_FIELDS, DEFAULT_AGENT_EXECUTION_CONFIG, DEFAULT_APPROVAL_POLICY, DEFAULT_LABEL_FALLBACK, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DRIVE_LIST_VIEW, DRIVE_OBJECT, DRIVE_OBJECT_NAME, DRIVE_VIEW, DateAttribute, DateRangeValue, type DefaultResolutionContext, type DefaultRoleName, type DeletedMode, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, type Document, DocumentAttribute, type DocumentFile, type DocumentKind, DocumentLayout, type DocumentListOptions, type DocumentRecordOwner, type DocumentRecordOwnerPage, type DocumentWithFiles, type DocumentWithSubCount, DocumentsTabConfig, type DomainEvent, type DraftFocus, type DraftableAttribute, type DraftableObject, type DraftableSampleRecord, type DraftableState, type DraftableView, type DriftAttributeInfo, DynamicValue, type DynamicValueResolver, EMPTY_VALUE_PLACEHOLDER, ESTIMATED_COUNT_CAP, type Eager, type EffectivePermissions, type EmailAttachmentMeta, type EmailConnectorProviderId, type EmailDirection, type EmailParticipantRef, type EmailParticipantRole, type EmailProvider, EmailsTab, EmailsTabConfig, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, Field, FieldGroup, type FieldHistoryEntry, type File, type FileListOptions, type FileOcrStatus, FilterOperator, FilterRule, FilterState, FilterValue, type FlagLevel, type FlagOverride, FlagRegistry, type FlagResolutionContext, FlagService, type FlagValueType, FormBuilder, type FormDefinition, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTextRow, FormulaAttribute, type FormulaGenerationAttribute, type FormulaGenerationInput, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, Group, GroupBuilder, type HumanRequestNeed, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, type InviteUserInput, type IsWithinBounds, LIVE_EVENT_TYPES, type LabelContext, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, ListViewTabVisibility, type LiveChannel, type LiveChannelKind, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveNotification, type LiveNotificationRecipient, type LiveNotificationRecipientPatch, Location, LocationAttribute, LocationGranularity, MAX_TODOS, MAX_TODO_DESCRIPTION_CHARS, MAX_TODO_ID_CHARS, MAX_TODO_RESULT_CHARS, MEMORY_LIST_VIEW, MEMORY_OBJECT, MEMORY_VIEW, type MailboxAccount, type MailboxAccountVisibility, type MailboxCursor, type MailboxEmail, type MailboxListResponse, type MailboxQuery, type MailboxReadState, type MailboxThread, type MailboxThreadDetail, type McpCatalogEntry, type McpServerAuthInput, type McpServerAuthType, type McpServerStatus, type McpServerView, type Meeting, type MeetingLinkedRecord, type MeetingParticipantRef, type MeetingParticipantRole, type MeetingResponseStatus, type MeetingStatus, type MeetingsListResponse, type MeetingsQuery, MeetingsTab, MeetingsTabConfig, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, type ModelDefinition, type ModuleRunMode, MultiRelationAttribute, MultiselectAttribute, NATIVE_AGENT_UI_PART_IDS_METADATA_KEY, NATIVE_AGENT_UI_PART_IDS_METADATA_SCHEMA_VERSION, 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, type NativeAgentUIPartIds, type NativeAgentUIPartIdsMetadata, NoopGeocodingAdapter, 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, OPERATION_REGISTRY, OPERATOR_SPECS, ObjectBuilder, type ObjectConfig, ObjectDefinition, type ObjectPermissions, ObjectRecord, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperationDef, type OperatorSpec, Option, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type ParsedPersistedSchemaPlan, type ParsedSchemaPlanProposal, type Permission, type PermissionScope, type PersistedDefaultViewTarget, type PersistedSchemaPlan, type PersistedSchemaPlanAdditive, Phone, PhoneAttribute, type PlannedAttribute, type PlannedAttributeRemoval, type PlannedObject, type PlannedObjectRemoval, type PlannedRename, PropertyAttribute, PropertySchema, type ProposedDefaultViewTarget, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, RECORD_CREATOR_ROOT_ACTOR_METADATA_KEY, REMOVED_OPERATOR_REPLACEMENTS, type ReasoningPartData, type RecordAgentEvent, type RecordCreatedLiveEvent, type RecordDeletedLiveEvent, type RecordDocuments, type RecordFieldPatch, type RecordLiveSnapshot, type RecordMetadata, type RecordPatchLiveEvent, type RecordRemovedLiveEvent, type Reflex, type ReflexRun, type ReflexState, type ReflexVersion, type ReflexVersionStatus, type RegexGenerationInput, RelationAttribute, RelationTarget, RelativeDateValue, type ResolutionContext, type ResolvedFlag, ResourceVisibility, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextTabConfig, type Role, RollupAttribute, RollupFunction, type RunEffect, type RunMode, SCHEMA_PLAN_LIMITS, SESSION_TERMINAL_STATUSES, SKILL_LIST_VIEW, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYNONYM_ALIASES, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FILTER_ATTRIBUTE_TYPES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SchemaDriftResult, type SchemaPlan, type SchemaPlanAdditive, type SchemaPlanAdditiveBase, type SchemaPlanChangeSet, type SchemaPlanDestructive, type SchemaPlanDraft, type SchemaPlanDraftResponse, type SchemaPlanDraftState, type SchemaPlanDraftStatus, type SchemaPlanDraftWrite, type SchemaPlanImpact, type SchemaPlanImpactEntry, type SchemaPlanOutcome, type SchemaPlanProposalInput, type SchemaPlanSampleData, type SchemaPlanStatus, type SchemaPlanViewChanges, type SchemaState, type SearchOptions, SelectAttribute, type SessionApprovalMode, type SessionOutcome, type SessionParkedOn, type SessionPhase, type SessionState, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type StandardSchemaIssue, type StandardSchemaResult, type StartConnectorAuthInput, type StartConnectorAuthResult, type StaticFlagDefault, StatusAttribute, type StorageProvider, type StoredSchemaPlan, type SystemAttribute, type SystemAttributeI18nKey, type SystemFields, type SystemObjectDriftInfo, type SystemPermissions, type SystemResource, TEXT_FORMAT_PATTERNS, TODAY_DEFAULT, TODO_PLAN_STATUSES, TODO_STATUSES, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, type TenantSettings, type TerminalSessionStatus, TextAttribute, type TextPartData, type ThinkingPartData, TimeFormat, Timestamps, type ToolImpact, type ToolPartData, type ToolPartErrorCode, type ToolPartState, type TriggerEventType, USER_STATUSES, USER_WORK_POSTURES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateDocument, type UpdateFile, type UpdateRoleInput, type UpdateUserProfile, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserLike, type UserProfile, UserReferenceType, type UserRoleAssignment, type UserStatus, type UserWorkPosture, Uuid, ValidationError, type ValueRef, type ViewBaselineOrigin, type ViewChange, ViewConfig, type ViewConfigDelta, ViewDefinition, type ViewOperation, type ViewProjectionStaleLiveEvent, type ViewStateEntry, type ViewStateResolution, type ViewSyncPayload, ViewType, type WithCustomAttributes, type WithCustomRecordAttributes, type WithoutSystemFields, accessLevelToActions, actionsToAccessLevel, agent, agentDisplayName, applyOperations, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, booleanFlag, buildAgentFallbackTitle, buildPermissionFlags, buildPropertySchema, buildQualifiedAttribute, canonicalizeFilterValue, checkbox, collectQualifiedRuleIssues, compileComputedFormula, compileRollupAttribute, computeByteMagnitude, conversationDisplayTitle, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, dateInTimezone, dateValueStart, defineOperation, deriveInitials, describeOperations, destructiveSchema, detailView, document, ensureFieldIds, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, evaluateRecordFilterState, extractAttributeNames, extractCurrencyFilterValue, extractFilterValue, extractValueRefs, flagRegistry, focusOf, form, formRegistry, formatAttributeValue, formatByteSize, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRecordCreatorPrincipalId, getSlotFieldTargets, getSystemAttributeI18nKey, getSystemAttributeList, getUserDisplayName, group, hasDestructiveEntries, includesAction, inferRollupReturnType, isAgentUIMessageBatch, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isCheckboxEquality, isClaimableSessionStatus, isComputedFunctionName, isDateRangeValue, isDefaultRole, isDocumentAttribute, isDynamicValue, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isManagedSystemAttribute, isNotEmpty, isNullishOrEmptyString, isPlainRecord, isRelativeDateValue, isSetMembershipOperator, isStandardSchema, isTerminalSessionStatus, isTerminalState, isValuePresent, jsonFlag, legacyStatusToSessionState, listView, liveChannelKey, location, makeFieldId, matchesAccepts, multiselect, nativeAgentUIPartIdMetadataKey, normalizeDateValue, normalizeFilterRule, normalizeForEdgeRpc, normalizeOperator, now, number, numberFlag, object, parseCountMode, parseLiveChannelKey, parseNativeAgentUIPartIdsMetadata, parseOperation, parseOptionalCountMode, parseQualifiedAttribute, persistedDefaultViewTargetSchema, persistedSchemaPlanSchema, phone, plannedAttributeSchema, plannedInlineAttributeSchema, plannedObjectSchema, proposedDefaultViewTargetSchema, registry, relation, relationPropertyDefs, renderLabelExpression, resetViewToDefault, resolveAttributeDefaultValue, resolveEffectiveFilterType, resolveFieldRequired, resolveIsWithinBounds, resolveTextPattern, resolveUtcDayBounds, richtext, rollup, rollupToFormulaExpression, schemaPlanSchema, select, sessionStateToLegacyStatus, status, stringFlag, text, toMultiValueOperator, toUndefinedIfEmpty, toUtcDayString, today, user, validateAttributeName, validateLabelExpression, validateObjectName, validateQualifiedRule, validateViewName, viewRegistry, viewStateKey, viewSyncPayload };
10192
+ /**
10193
+ * Projects a stored view into the shape operations act on, and back.
10194
+ *
10195
+ * This lives in `@stndrds/schema` rather than beside either caller because the
10196
+ * client folds a draft to render the overlay and the server folds the same
10197
+ * draft to publish it. Two projections that disagreed by one key would break
10198
+ * the byte-for-byte parity the whole design rests on — a preview would stop
10199
+ * being the result and go back to being a prediction of it.
10200
+ *
10201
+ * The one asymmetry it encodes: a DETAIL view's tabs are lifted out of `config`
10202
+ * so operations can address them directly, while a LIST view's stay inside
10203
+ * `config`, where its persisted shape keeps them.
10204
+ */
10205
+ declare function toDraftableView(view: ViewDefinition): DraftableView;
10206
+ /**
10207
+ * The exact inverse, applied onto the view it came from so nothing outside the
10208
+ * draftable surface — name, icon, description, metadata — is lost on the way
10209
+ * back.
10210
+ */
10211
+ declare function fromDraftableView(original: ViewDefinition, drafted: DraftableView): ViewDefinition;
10212
+
10213
+ export { AGENT_UI_BATCH_MAX_BYTES, AGENT_UI_BATCH_MAX_ITEMS, type AIAvailableModel, type AIBatchAnswerValue, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIBatchQuestionType, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AIChatNotification, 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 AISubagentStatus, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_OPERATION_TYPES, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, type AcceptsCandidate, type AccessLevel, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddSharedMailboxInput, type AgentApprovalPolicy, type AgentBlueprint, AgentBuilder, type AgentBuilderConfig, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentMessageAttachment, type AgentMessagePart, type AgentRequiredPermission, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionPatchLiveEvent, type AgentSessionStatus, type AgentTodoPlan, type AgentTodoPlanStatus, type AgentTodoPlanView, type AgentToolCall, type AgentTriggerBlueprint, type AgentTriggerDefinition, type AgentTriggerType, type AgentUIDataTypes, type AgentUIMessageBatch, type AgentUIMessageBatchItem, type AgentUnreadPatchLiveEvent, type AgentUsageView, type AgentWorkMode, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type ApprovalMode, type AssignActorRoleInput, type AssignRoleInput, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, AttributeGroupField, type AttributeLifecycleCapabilities, type AttributeLike, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, AttributeType, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, type AuthorizedGlobalSearchResult, type AuthorizedRecordSearchResult, type AuthorizedSearchPage, BEHAVIOR_PROPERTIES, BROWSER_PREVIEW_STATUSES, BYTE_UNIT_LABELS, type BaseOperation, BilateralConfig, type BoundingBox, type BrowserPreviewDescriptor, type BrowserPreviewStatus, type BrowserPreviewUpdatedLiveEvent, type BuilderConfig, type ByteMagnitude, CLAIMABLE_SESSION_STATUSES, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, CONNECTOR_CALLBACK_PARAM, COUNT_MODES, type CalendarConnectorProviderId, type CalendarMeetingEndedData, type CalendarMeetingTranscriptCreatedData, type ChannelRevokedLiveEvent, CheckboxAttribute, type ClaimableSessionStatus, type CollectionPage, type CollectionRequest, type CollectionResponse, type CompactionStrategy, type CompileComputedFormulaInput, 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, ConfigOverrides, type ConnectMcpServerInput, type ConnectionStatus, type ConnectionStatusId, type ConnectionView, type ConnectorCallbackStatusValue, type ConnectorProviderId, type ConnectorProvidersResult, type ConnectorScope, type ContinuationPage, type ConversationDisplayTitleInput, type ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateDocument, type CreateDocumentLink, type CreateFile, CreateMode, type CreateNotificationInput, type CreateNotificationRecipientInput, type CreateObjectRecord, type CreatePermissionInput, type CreateReflexInput, type CreateReflexVersionInput, type CreateRoleInput, type CreateUserProfile, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, type CustomObjectInfo, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, type DBViewSyncResolution, DB_COLUMN_FIELDS, DEFAULT_AGENT_EXECUTION_CONFIG, DEFAULT_APPROVAL_POLICY, DEFAULT_LABEL_FALLBACK, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DRIVE_LIST_VIEW, DRIVE_OBJECT, DRIVE_OBJECT_NAME, DRIVE_VIEW, DateAttribute, DateRangeValue, type DefaultResolutionContext, type DefaultRoleName, type DeletedMode, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, type Document, DocumentAttribute, type DocumentFile, type DocumentKind, DocumentLayout, type DocumentListOptions, type DocumentRecordOwner, type DocumentRecordOwnerPage, type DocumentWithFiles, type DocumentWithSubCount, DocumentsTabConfig, type DomainEvent, type DraftFocus, type DraftableAttribute, type DraftableObject, type DraftableSampleRecord, type DraftableState, type DraftableView, type DriftAttributeInfo, DynamicValue, type DynamicValueResolver, EMPTY_VALUE_PLACEHOLDER, ESTIMATED_COUNT_CAP, type Eager, type EffectivePermissions, type EmailAttachmentMeta, type EmailConnectorProviderId, type EmailDirection, type EmailParticipantRef, type EmailParticipantRole, type EmailProvider, EmailsTab, EmailsTabConfig, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, Field, FieldGroup, type FieldHistoryEntry, type File, type FileListOptions, type FileOcrStatus, FilterOperator, FilterRule, FilterState, FilterValue, type FlagLevel, type FlagOverride, FlagRegistry, type FlagResolutionContext, FlagService, type FlagValueType, FormBuilder, type FormDefinition, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTextRow, FormulaAttribute, type FormulaGenerationAttribute, type FormulaGenerationInput, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, type InviteUserInput, type IsWithinBounds, LIVE_EVENT_TYPES, type LabelContext, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, ListViewTabVisibility, type LiveChannel, type LiveChannelKind, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveNotification, type LiveNotificationRecipient, type LiveNotificationRecipientPatch, Location, LocationAttribute, LocationGranularity, MAX_TODOS, MAX_TODO_DESCRIPTION_CHARS, MAX_TODO_ID_CHARS, MAX_TODO_RESULT_CHARS, MEMORY_LIST_VIEW, MEMORY_OBJECT, MEMORY_VIEW, type MailboxAccount, type MailboxAccountVisibility, type MailboxCursor, type MailboxEmail, type MailboxListResponse, type MailboxQuery, type MailboxReadState, type MailboxThread, type MailboxThreadDetail, type McpCatalogEntry, type McpServerAuthInput, type McpServerAuthType, type McpServerStatus, type McpServerView, type Meeting, type MeetingLinkedRecord, type MeetingParticipantRef, type MeetingParticipantRole, type MeetingResponseStatus, type MeetingStatus, type MeetingsListResponse, type MeetingsQuery, MeetingsTab, MeetingsTabConfig, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, type ModelDefinition, type ModuleRunMode, MultiRelationAttribute, MultiselectAttribute, NATIVE_AGENT_UI_PART_IDS_METADATA_KEY, NATIVE_AGENT_UI_PART_IDS_METADATA_SCHEMA_VERSION, 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, type NativeAgentUIPartIds, type NativeAgentUIPartIdsMetadata, NoopGeocodingAdapter, 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, OPEN_TOOL_PART_STATES, OPERATION_REGISTRY, OPERATOR_SPECS, ObjectBuilder, type ObjectConfig, ObjectDefinition, type ObjectPermissions, ObjectRecord, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperationDef, type OperatorSpec, Option, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type ParsedPersistedSchemaPlan, type ParsedSchemaPlanProposal, type Permission, type PermissionScope, type PersistedDefaultViewTarget, type PersistedSchemaPlan, type PersistedSchemaPlanAdditive, Phone, PhoneAttribute, type PlannedAttribute, type PlannedAttributeRemoval, type PlannedObject, type PlannedObjectRemoval, type PlannedRename, PropertyAttribute, PropertySchema, type ProposedDefaultViewTarget, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, RECORD_CREATOR_ROOT_ACTOR_METADATA_KEY, REMOVED_OPERATOR_REPLACEMENTS, type ReasoningPartData, type RecordAgentEvent, type RecordCreatedLiveEvent, type RecordDeletedLiveEvent, type RecordDocuments, type RecordFieldPatch, type RecordLiveSnapshot, type RecordMetadata, type RecordPatchLiveEvent, type RecordRemovedLiveEvent, type Reflex, type ReflexAuthoringProgressLiveEvent, type ReflexAuthoringStatus, type ReflexCorpusEntrySummary, type ReflexCorpusPage, type ReflexDetail, type ReflexEngineState, type ReflexGateVerdict, type ReflexListItem, type ReflexListRow, type ReflexRun, type ReflexRunClassification, type ReflexRunCompletedLiveEvent, type ReflexRunOutcome, type ReflexRunResultWire, type ReflexRunSummary, type ReflexRunToolCall, type ReflexSeedExample, type ReflexState, type ReflexStateChangedLiveEvent, type ReflexStats, type ReflexVersion, type ReflexVersionStages, type ReflexVersionStatus, type ReflexVersionSummary, type ReflexWire, type RegexGenerationInput, RelationAttribute, RelationTarget, RelativeDateValue, type ResolutionContext, type ResolvedFlag, ResourceVisibility, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextTabConfig, type Role, RollupAttribute, RollupFunction, type RunEffect, type RunMode, SCHEMA_PLAN_LIMITS, SESSION_TERMINAL_STATUSES, SKILL_LIST_VIEW, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYNONYM_ALIASES, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FILTER_ATTRIBUTE_TYPES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SchemaDriftResult, type SchemaPlan, type SchemaPlanAdditive, type SchemaPlanAdditiveBase, type SchemaPlanChangeSet, type SchemaPlanDestructive, type SchemaPlanImpact, type SchemaPlanImpactEntry, type SchemaPlanOutcome, type SchemaPlanProposalInput, type SchemaPlanStatus, type SchemaPlanViewChanges, type SchemaState, type SearchOptions, SelectAttribute, type SessionApprovalMode, type SessionOutcome, type SessionParkedOn, type SessionPhase, type SessionState, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type StandardSchemaIssue, type StandardSchemaResult, type StartConnectorAuthInput, type StartConnectorAuthResult, type StaticFlagDefault, StatusAttribute, type StorageProvider, type StoredSchemaPlan, type SystemAttribute, type SystemAttributeI18nKey, type SystemFields, type SystemObjectDriftInfo, type SystemPermissions, type SystemResource, TEXT_FORMAT_PATTERNS, TODAY_DEFAULT, TODO_PLAN_STATUSES, TODO_STATUSES, TOOL_APPROVAL_STATES, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, type TenantSettings, type TerminalSessionStatus, TextAttribute, type TextPartData, type ThinkingPartData, TimeFormat, Timestamps, type ToolImpact, type ToolPartData, type ToolPartErrorCode, type ToolPartState, type TriggerEventType, USER_STATUSES, USER_WORK_POSTURES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateDocument, type UpdateFile, type UpdateRoleInput, type UpdateUserProfile, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserLike, type UserProfile, UserReferenceType, type UserRoleAssignment, type UserStatus, type UserWorkPosture, Uuid, ValidationError, type ValueRef, type ViewBaselineOrigin, type ViewChange, ViewConfig, type ViewConfigDelta, ViewDefinition, type ViewOperation, type ViewProjectionStaleLiveEvent, type ViewStateEntry, type ViewStateResolution, type ViewSyncPayload, ViewType, type WithCustomAttributes, type WithCustomRecordAttributes, type WithoutSystemFields, accessLevelToActions, actionsToAccessLevel, agent, agentDisplayName, applyOperations, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, booleanFlag, buildAgentFallbackTitle, buildPermissionFlags, buildPropertySchema, buildQualifiedAttribute, canonicalizeFilterValue, checkbox, collectQualifiedRuleIssues, compileComputedFormula, compileRollupAttribute, computeByteMagnitude, conversationDisplayTitle, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, dateInTimezone, dateValueStart, defineOperation, deriveInitials, describeOperations, destructiveSchema, detailView, document, ensureFieldIds, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, evaluateRecordFilterState, extractAttributeNames, extractCurrencyFilterValue, extractFilterValue, extractValueRefs, flagRegistry, focusOf, form, formFieldFlatKey, formFieldKey, formRegistry, formatAttributeValue, formatByteSize, formatComputedResult, formatLocationValue, formula, fromDraftableView, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRecordCreatorPrincipalId, getSlotFieldTargets, getSystemAttributeI18nKey, getSystemAttributeList, getUserDisplayName, group, hasDestructiveEntries, includesAction, inferRollupReturnType, isAgentUIMessageBatch, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isCheckboxEquality, isClaimableSessionStatus, isComputedFunctionName, isDateRangeValue, isDefaultRole, isDocumentAttribute, isDynamicValue, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isManagedSystemAttribute, isNotEmpty, isNullishOrEmptyString, isOpenToolPartState, isPlainRecord, isRelativeDateValue, isSetMembershipOperator, isStandardSchema, isTerminalSessionStatus, isTerminalState, isToolApprovalState, isValuePresent, jsonFlag, legacyStatusToSessionState, listView, liveChannelKey, location, makeFieldId, matchesAccepts, multiselect, nativeAgentUIPartIdMetadataKey, normalizeDateValue, normalizeFilterRule, normalizeForEdgeRpc, normalizeOperator, now, number, numberFlag, object, parseCountMode, parseLiveChannelKey, parseNativeAgentUIPartIdsMetadata, parseOperation, parseOptionalCountMode, parseQualifiedAttribute, persistedDefaultViewTargetSchema, persistedSchemaPlanSchema, phone, plannedAttributeSchema, plannedInlineAttributeSchema, plannedObjectSchema, proposedDefaultViewTargetSchema, qualifiedPropertyDefs, readFormFieldValue, registry, relation, relationPropertyDefs, renderLabelExpression, resetViewToDefault, resolveAttributeDefaultValue, resolveEffectiveFilterType, resolveFieldRequired, resolveIsWithinBounds, resolveTextPattern, resolveUtcDayBounds, richtext, rollup, rollupToFormulaExpression, schemaPlanSchema, select, sessionStateToLegacyStatus, status, stringFlag, text, toDraftableView, toMultiValueOperator, toUndefinedIfEmpty, toUtcDayString, today, user, validateAttributeName, validateLabelExpression, validateObjectName, validateQualifiedRule, validateViewName, viewRegistry, viewStateKey, viewSyncPayload };