@stndrds/schema 1.0.0-alpha.280 → 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.
- package/dist/{all-Ig0ig9wp.d.ts → all-C3EaFLCU.d.ts} +7 -17
- package/dist/{all-C0hXd79K.d.mts → all-CQMswOrw.d.mts} +7 -17
- package/dist/{attributes-D8eHv5Kf.d.ts → attributes-CU871AfG.d.ts} +12 -12
- package/dist/{attributes--M1ifW8_.d.mts → attributes-DoiGyNFk.d.mts} +12 -12
- package/dist/{chunk-FAEOVIDJ.js → chunk-DIMTNM3F.js} +7 -3
- package/dist/{chunk-NUEIGMYS.mjs → chunk-EFSS7PGC.mjs} +1 -1
- package/dist/{chunk-XDA5PZRT.mjs → chunk-HOVUEYEQ.mjs} +34 -0
- package/dist/{chunk-MXYCCUNB.js → chunk-KIMECN6D.js} +68 -44
- package/dist/{chunk-M3WFXOA4.js → chunk-L4KLYMUI.js} +34 -0
- package/dist/{chunk-XTBGGJ3G.js → chunk-LBGLB443.js} +3 -3
- package/dist/{chunk-PUMM6SPY.mjs → chunk-PLTLAMWJ.mjs} +1 -1
- package/dist/{chunk-TBAD2T7Q.mjs → chunk-QGRYOIHT.mjs} +37 -13
- package/dist/{chunk-MSIGO7JA.mjs → chunk-R34LOMT7.mjs} +5 -1
- package/dist/{chunk-3PGLMGTR.js → chunk-V4MZOTLV.js} +4 -4
- package/dist/exceptions.d.mts +22 -3
- package/dist/exceptions.d.ts +22 -3
- package/dist/exceptions.js +39 -39
- package/dist/exceptions.mjs +1 -1
- package/dist/{helpers-DyoPqiSz.d.ts → helpers-BNr-Dppk.d.ts} +3 -3
- package/dist/{helpers-BiABdSxK.d.mts → helpers-CfEOUBmB.d.mts} +3 -3
- package/dist/{index-SpFpkWVC.d.ts → index-Br7koyHF.d.ts} +53 -27
- package/dist/{index-C3P5Dnwt.d.mts → index-D9XBjFnu.d.mts} +53 -27
- package/dist/index.d.mts +568 -151
- package/dist/index.d.ts +568 -151
- package/dist/index.js +1389 -292
- package/dist/index.mjs +1174 -99
- package/dist/{migrations-B1kkIhIX.d.ts → migrations-BGWgXHXb.d.ts} +1 -1
- package/dist/{migrations-BNlQVzDC.d.mts → migrations-C-GN1xx_.d.mts} +1 -1
- package/dist/{objects-DmMqHn3L.d.mts → objects-BRypaBpi.d.mts} +2 -4
- package/dist/{objects-DgFojgwH.d.ts → objects-BiOMwzLL.d.ts} +2 -4
- package/dist/{types-DHqXzkgW.d.mts → types-80c2rOUZ.d.mts} +1 -1
- package/dist/{types-DYYFto8d.d.ts → types-DqYz8Iv_.d.ts} +1 -1
- package/dist/utils.js +8 -8
- package/dist/utils.mjs +2 -2
- package/dist/validation/all.d.mts +7 -7
- package/dist/validation/all.d.ts +7 -7
- package/dist/validation/all.js +29 -29
- package/dist/validation/all.mjs +4 -4
- package/dist/validation/complex/currency.d.mts +2 -2
- package/dist/validation/complex/currency.d.ts +2 -2
- package/dist/validation/complex/location.d.mts +2 -2
- package/dist/validation/complex/location.d.ts +2 -2
- package/dist/validation/complex/phone.d.mts +2 -2
- package/dist/validation/complex/phone.d.ts +2 -2
- package/dist/validation/complex/relation.d.mts +2 -2
- package/dist/validation/complex/relation.d.ts +2 -2
- package/dist/validation/complex/richtext.d.mts +2 -2
- package/dist/validation/complex/richtext.d.ts +2 -2
- package/dist/validation/complex/select.d.mts +2 -2
- package/dist/validation/complex/select.d.ts +2 -2
- package/dist/validation/complex/user.d.mts +2 -2
- package/dist/validation/complex/user.d.ts +2 -2
- package/dist/validation/computed/formula.d.mts +2 -2
- package/dist/validation/computed/formula.d.ts +2 -2
- package/dist/validation/computed/rollup.d.mts +2 -2
- package/dist/validation/computed/rollup.d.ts +2 -2
- package/dist/validation/config/index.d.mts +4 -4
- package/dist/validation/config/index.d.ts +4 -4
- package/dist/validation/config/index.js +11 -11
- package/dist/validation/config/index.mjs +2 -2
- package/dist/validation/core/index.d.mts +3 -3
- package/dist/validation/core/index.d.ts +3 -3
- package/dist/validation/object/index.d.mts +5 -5
- package/dist/validation/object/index.d.ts +5 -5
- package/dist/validation/object/index.js +14 -14
- package/dist/validation/object/index.mjs +2 -2
- package/dist/validation/primitives/checkbox.d.mts +2 -2
- package/dist/validation/primitives/checkbox.d.ts +2 -2
- package/dist/validation/primitives/date.d.mts +2 -2
- package/dist/validation/primitives/date.d.ts +2 -2
- package/dist/validation/primitives/number.d.mts +2 -2
- package/dist/validation/primitives/number.d.ts +2 -2
- package/dist/validation/primitives/text.d.mts +2 -2
- package/dist/validation/primitives/text.d.ts +2 -2
- 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,
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
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-
|
|
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-
|
|
10
|
-
import { M as MigrationDefinition } from './migrations-
|
|
11
|
-
export { B as BuiltInTransform, S as SchemaOperation } from './migrations-
|
|
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-
|
|
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-
|
|
20
|
-
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from './helpers-
|
|
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';
|
|
@@ -1420,6 +1420,26 @@ declare function legacyStatusToSessionState(status: AgentSessionStatus): Session
|
|
|
1420
1420
|
declare const SESSION_TERMINAL_STATUSES: readonly ["completed", "failed", "cancelled", "timeout", "expired"];
|
|
1421
1421
|
type TerminalSessionStatus = (typeof SESSION_TERMINAL_STATUSES)[number];
|
|
1422
1422
|
declare function isTerminalSessionStatus(status: AgentSessionStatus): status is TerminalSessionStatus;
|
|
1423
|
+
/**
|
|
1424
|
+
* Statuses a session can be CLAIMED from — the exact set `tryClaimSession`
|
|
1425
|
+
* accepts before it flips a session to `running`.
|
|
1426
|
+
*
|
|
1427
|
+
* A terminated conversation (cancelled via Stop, or failed) stays resumable:
|
|
1428
|
+
* claiming it for a new message is how the user continues. `waiting_agents` (a
|
|
1429
|
+
* parent parked on children) is claimable so the wake path can CAS-claim it
|
|
1430
|
+
* before enqueuing a turn. `active` is not — a turn is already running — and
|
|
1431
|
+
* neither is `expired`, which is the one terminal outcome a session never
|
|
1432
|
+
* resumes from.
|
|
1433
|
+
*
|
|
1434
|
+
* Lives here, beside the union it partitions, because three places must agree:
|
|
1435
|
+
* the SQL claim, the in-memory mock that stands in for it, and every caller
|
|
1436
|
+
* that wants to refuse BEFORE it writes rather than discover the refusal after.
|
|
1437
|
+
* A hand-copied fourth copy is how a guard comes to accept what the claim will
|
|
1438
|
+
* reject.
|
|
1439
|
+
*/
|
|
1440
|
+
declare const CLAIMABLE_SESSION_STATUSES: readonly ["idle", "completed", "waiting_human", "waiting_agents", "cancelled", "failed", "timeout"];
|
|
1441
|
+
type ClaimableSessionStatus = (typeof CLAIMABLE_SESSION_STATUSES)[number];
|
|
1442
|
+
declare function isClaimableSessionStatus(status: AgentSessionStatus): status is ClaimableSessionStatus;
|
|
1423
1443
|
type AgentSessionMode = "interactive" | "autonomous";
|
|
1424
1444
|
/** Whether a class of tool call is confirmed by a human or executed straight away. */
|
|
1425
1445
|
type ApprovalMode = "ask" | "auto";
|
|
@@ -1756,7 +1776,31 @@ interface AgentSession {
|
|
|
1756
1776
|
/** Convenience flag: true when session has activity since `lastReadAt` (or never read). */
|
|
1757
1777
|
isUnread?: boolean;
|
|
1758
1778
|
}
|
|
1759
|
-
|
|
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;
|
|
1760
1804
|
/**
|
|
1761
1805
|
* Structured cause for a tool part that ended in `state: "error"` without the
|
|
1762
1806
|
* tool having run. Lets the UI render a localized explanation instead of the
|
|
@@ -1804,15 +1848,6 @@ interface ToolImpact {
|
|
|
1804
1848
|
counts?: Record<string, number>;
|
|
1805
1849
|
warnings?: string[];
|
|
1806
1850
|
}
|
|
1807
|
-
/**
|
|
1808
|
-
* LEGACY (chantier Q, 2026-08-09): the required-vs-optional split on human
|
|
1809
|
-
* requests was deleted — a question never blocks anything, and an
|
|
1810
|
-
* approval-family request always gates the turn, so nothing decides between
|
|
1811
|
-
* the two values anymore. The type and the `humanRequestNeed` part field
|
|
1812
|
-
* below survive only because persisted rows still carry the stamp; no reader
|
|
1813
|
-
* consults it.
|
|
1814
|
-
*/
|
|
1815
|
-
type HumanRequestNeed = "required" | "optional";
|
|
1816
1851
|
type AgentMessagePart = {
|
|
1817
1852
|
type: "text";
|
|
1818
1853
|
text: string;
|
|
@@ -1870,13 +1905,6 @@ type AgentMessagePart = {
|
|
|
1870
1905
|
* reader) is told about the decision.
|
|
1871
1906
|
*/
|
|
1872
1907
|
approvalReason?: string;
|
|
1873
|
-
/**
|
|
1874
|
-
* LEGACY (chantier Q): the required-vs-optional split is gone — see
|
|
1875
|
-
* {@link HumanRequestNeed}. Approval suspensions still stamp
|
|
1876
|
-
* `"required"` (a statement of fact on the row), but no reader
|
|
1877
|
-
* consults the field anymore.
|
|
1878
|
-
*/
|
|
1879
|
-
humanRequestNeed?: HumanRequestNeed;
|
|
1880
1908
|
/**
|
|
1881
1909
|
* Whether the session's `auto` mode would have let THIS call through —
|
|
1882
1910
|
* i.e. whether offering "always allow this here" on its card would be
|
|
@@ -2687,6 +2715,26 @@ interface RecordDocuments {
|
|
|
2687
2715
|
/** Documents grouped by attribute name (includes system 'attachments' attribute) */
|
|
2688
2716
|
byAttribute: Record<string, DocumentWithFiles[]>;
|
|
2689
2717
|
}
|
|
2718
|
+
/**
|
|
2719
|
+
* One record that holds documents, with how much sits at its drive root and
|
|
2720
|
+
* when it last moved. The wire shape of `GET /documents/record-owners`.
|
|
2721
|
+
*/
|
|
2722
|
+
interface DocumentRecordOwner {
|
|
2723
|
+
recordId: Uuid;
|
|
2724
|
+
objectName: string;
|
|
2725
|
+
label: string;
|
|
2726
|
+
/** Live entries at the drive root — files and folders, not the subtree. */
|
|
2727
|
+
itemCount: number;
|
|
2728
|
+
/** Root entries that are files. The cross-record listing only shows records where this is > 0 — auto-provisioned empty folders are not "holding documents". */
|
|
2729
|
+
fileCount: number;
|
|
2730
|
+
/** ISO timestamp of the newest document edge — what "recent" sorts on. */
|
|
2731
|
+
lastActivityAt: string;
|
|
2732
|
+
}
|
|
2733
|
+
/** One page of {@link DocumentRecordOwner}s; `nextOffset: null` is the last page. */
|
|
2734
|
+
interface DocumentRecordOwnerPage {
|
|
2735
|
+
data: DocumentRecordOwner[];
|
|
2736
|
+
nextOffset: number | null;
|
|
2737
|
+
}
|
|
2690
2738
|
|
|
2691
2739
|
/**
|
|
2692
2740
|
* Extracts a safe error message from an unknown error value.
|
|
@@ -3049,6 +3097,25 @@ declare function resolveFieldRequired(input: {
|
|
|
3049
3097
|
}): boolean;
|
|
3050
3098
|
/** All slot ids a slot field writes to: the primary followed by any additional slots. */
|
|
3051
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;
|
|
3052
3119
|
|
|
3053
3120
|
interface FormFieldsRow {
|
|
3054
3121
|
id: string;
|
|
@@ -3598,12 +3665,55 @@ type ExtractRecordUpdateStrict<TBuilder> = TBuilder extends {
|
|
|
3598
3665
|
};
|
|
3599
3666
|
} ? WithoutSystemFields<R> : never;
|
|
3600
3667
|
|
|
3601
|
-
/**
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
type
|
|
3668
|
+
/**
|
|
3669
|
+
* Lifecycle of a Reflex. There is no "broken" state: a failing reflex disarms
|
|
3670
|
+
* itself. `learning` was removed with the engine alignment (#2580) — it
|
|
3671
|
+
* returns with webhook ingest, which is what made it observable.
|
|
3672
|
+
*/
|
|
3673
|
+
type ReflexState = "armed" | "disarmed";
|
|
3674
|
+
/** A version is proposed, then promoted then eventually replaced — or rejected. */
|
|
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
|
+
}
|
|
3704
|
+
/**
|
|
3705
|
+
* `live` and `rehearsal` are the old module's vocabulary (`rehearsal`
|
|
3706
|
+
* captures outbound effects instead of performing them); `promoted` and `lkg`
|
|
3707
|
+
* are the engine's — they name which artefact answered a run (#2580). One
|
|
3708
|
+
* union because both write the same `reflex_runs.mode` column.
|
|
3709
|
+
*/
|
|
3710
|
+
type RunMode = "live" | "rehearsal" | "promoted" | "lkg";
|
|
3711
|
+
/**
|
|
3712
|
+
* The old module's slice of {@link RunMode} — what `ReflexRunRepository.start()`
|
|
3713
|
+
* accepts and run tokens carry. The engine's `promoted`/`lkg` rows are written
|
|
3714
|
+
* by the run-record sink, never through that path.
|
|
3715
|
+
*/
|
|
3716
|
+
type ModuleRunMode = Extract<RunMode, "live" | "rehearsal">;
|
|
3607
3717
|
/**
|
|
3608
3718
|
* One thing a run did, or would have done. Recorded by the gateway, never by
|
|
3609
3719
|
* the Reflex code itself (D19) — code that reports on its own behaviour is
|
|
@@ -3634,6 +3744,16 @@ interface Reflex {
|
|
|
3634
3744
|
/** Author, kept for the permission ceiling of D23. */
|
|
3635
3745
|
createdByActorId: Uuid;
|
|
3636
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;
|
|
3637
3757
|
createdAt: Date;
|
|
3638
3758
|
updatedAt: Date;
|
|
3639
3759
|
}
|
|
@@ -3657,6 +3777,8 @@ interface ReflexVersion {
|
|
|
3657
3777
|
digest: string | null;
|
|
3658
3778
|
/** Tool names this version is allowed to call through the gateway. */
|
|
3659
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;
|
|
3660
3782
|
createdAt: Date;
|
|
3661
3783
|
}
|
|
3662
3784
|
interface ReflexRun {
|
|
@@ -3692,6 +3814,142 @@ interface CreateReflexVersionInput {
|
|
|
3692
3814
|
sources: Record<string, string>;
|
|
3693
3815
|
capabilities: string[];
|
|
3694
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
|
+
}
|
|
3695
3953
|
|
|
3696
3954
|
/**
|
|
3697
3955
|
* A custom navigation item rendered in the sidebar, alongside the
|
|
@@ -4459,6 +4717,17 @@ declare function applyRelationProps(label: string, props: Record<string, unknown
|
|
|
4459
4717
|
* the substitution entirely.
|
|
4460
4718
|
*/
|
|
4461
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;
|
|
4462
4731
|
interface ValueRef {
|
|
4463
4732
|
id: string;
|
|
4464
4733
|
props?: Record<string, unknown>;
|
|
@@ -5503,6 +5772,13 @@ declare class RollupAttributeBuilder<TName extends string> extends BaseAttribute
|
|
|
5503
5772
|
* @param options - The options array from the target attribute
|
|
5504
5773
|
*/
|
|
5505
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;
|
|
5506
5782
|
/**
|
|
5507
5783
|
* Build the attribute, validating computed-field configuration eagerly so a
|
|
5508
5784
|
* misconfiguration surfaces at schema-definition time (with a fix-it hint)
|
|
@@ -6066,6 +6342,18 @@ declare class ObjectBuilder<TRecord extends Record<string, unknown> = {}> implem
|
|
|
6066
6342
|
* order fall back to alphabetical order at the consumer level.
|
|
6067
6343
|
*/
|
|
6068
6344
|
order(value: number): this;
|
|
6345
|
+
/**
|
|
6346
|
+
* Hide this object from navigation surfaces — the sidebar data section and
|
|
6347
|
+
* the command palette, which already honour `metadata.hidden`. For objects
|
|
6348
|
+
* that own a dedicated surface: `drives` has the Drive page, so listing it
|
|
6349
|
+
* beside business objects would offer the same thing twice under two
|
|
6350
|
+
* different affordances.
|
|
6351
|
+
*
|
|
6352
|
+
* The object stays whole everywhere else: API, search, permissions, agent
|
|
6353
|
+
* tools, filters and record pages all continue to see it. This hides a
|
|
6354
|
+
* navigation entry; it never restricts access.
|
|
6355
|
+
*/
|
|
6356
|
+
hidden(): this;
|
|
6069
6357
|
/**
|
|
6070
6358
|
* Set the label expression template for displaying records
|
|
6071
6359
|
* This is REQUIRED for every object.
|
|
@@ -6202,51 +6490,6 @@ declare class GroupBuilder {
|
|
|
6202
6490
|
*/
|
|
6203
6491
|
build(): FieldGroup;
|
|
6204
6492
|
}
|
|
6205
|
-
/**
|
|
6206
|
-
* Builder for creating relation groups inside a form tab
|
|
6207
|
-
*
|
|
6208
|
-
* @example
|
|
6209
|
-
* ```typescript
|
|
6210
|
-
* relationGroup("contacts", "Contacts", "contacts")
|
|
6211
|
-
* .columns("name", "email", "phone")
|
|
6212
|
-
* .allowCreate()
|
|
6213
|
-
* .collapsible()
|
|
6214
|
-
* ```
|
|
6215
|
-
*/
|
|
6216
|
-
declare class RelationGroupBuilder {
|
|
6217
|
-
private data;
|
|
6218
|
-
constructor(id: string, label: string, attribute: string);
|
|
6219
|
-
/**
|
|
6220
|
-
* Set group description
|
|
6221
|
-
*/
|
|
6222
|
-
description(value: string): this;
|
|
6223
|
-
/**
|
|
6224
|
-
* Make group collapsible
|
|
6225
|
-
* @param collapsed - Initial collapsed state (default: false)
|
|
6226
|
-
*/
|
|
6227
|
-
collapsible(collapsed?: boolean): this;
|
|
6228
|
-
/**
|
|
6229
|
-
* Set display order
|
|
6230
|
-
*/
|
|
6231
|
-
order(value: number): this;
|
|
6232
|
-
/**
|
|
6233
|
-
* Set columns to display in the relations table
|
|
6234
|
-
* @example .columns("name", "email", "phone")
|
|
6235
|
-
*/
|
|
6236
|
-
columns(...names: string[]): this;
|
|
6237
|
-
/**
|
|
6238
|
-
* Set the group as read-only (no add/remove/edit)
|
|
6239
|
-
*/
|
|
6240
|
-
readOnly(value?: boolean): this;
|
|
6241
|
-
/**
|
|
6242
|
-
* Allow creating new related records inline
|
|
6243
|
-
*/
|
|
6244
|
-
allowCreate(value?: boolean): this;
|
|
6245
|
-
/**
|
|
6246
|
-
* Build the relation group definition
|
|
6247
|
-
*/
|
|
6248
|
-
build(): RelationGroup;
|
|
6249
|
-
}
|
|
6250
6493
|
/**
|
|
6251
6494
|
* Base tab configuration shared across tab types
|
|
6252
6495
|
*/
|
|
@@ -6539,9 +6782,9 @@ declare class TabBuilder {
|
|
|
6539
6782
|
order(value: number): this;
|
|
6540
6783
|
/**
|
|
6541
6784
|
* Create a form tab with groups
|
|
6542
|
-
* @example .form(group("info", "Info").fields("name", "email")
|
|
6785
|
+
* @example .form(group("info", "Info").fields("name", "email"))
|
|
6543
6786
|
*/
|
|
6544
|
-
form(...groups: (GroupBuilder |
|
|
6787
|
+
form(...groups: (GroupBuilder | Group)[]): DetailViewBuilder;
|
|
6545
6788
|
/**
|
|
6546
6789
|
* Create a table tab for a relation attribute on the current object
|
|
6547
6790
|
*
|
|
@@ -7020,22 +7263,6 @@ declare function listView(name: string, label: string): ListViewBuilder;
|
|
|
7020
7263
|
* ```
|
|
7021
7264
|
*/
|
|
7022
7265
|
declare function group(id: string, label: string): GroupBuilder;
|
|
7023
|
-
/**
|
|
7024
|
-
* Create a new relation group builder
|
|
7025
|
-
*
|
|
7026
|
-
* @param id - Group identifier
|
|
7027
|
-
* @param label - Display label
|
|
7028
|
-
* @param attribute - Relation attribute name on the source object
|
|
7029
|
-
*
|
|
7030
|
-
* @example
|
|
7031
|
-
* ```typescript
|
|
7032
|
-
* relationGroup("contacts", "Contacts", "contacts")
|
|
7033
|
-
* .columns("name", "email", "phone")
|
|
7034
|
-
* .allowCreate()
|
|
7035
|
-
* .collapsible()
|
|
7036
|
-
* ```
|
|
7037
|
-
*/
|
|
7038
|
-
declare function relationGroup(id: string, label: string, attribute: string): RelationGroupBuilder;
|
|
7039
7266
|
|
|
7040
7267
|
/**
|
|
7041
7268
|
* Standard Schema v1 integration for @stndrds/schema
|
|
@@ -7441,6 +7668,20 @@ declare class FlagService {
|
|
|
7441
7668
|
* @returns Map of flag names to resolved values
|
|
7442
7669
|
*/
|
|
7443
7670
|
resolveAll(context?: FlagResolutionContext): Promise<Map<string, unknown>>;
|
|
7671
|
+
/**
|
|
7672
|
+
* Resolve every flag from static defaults only, never touching the
|
|
7673
|
+
* overrides repository.
|
|
7674
|
+
*
|
|
7675
|
+
* For callers running outside any tenant context (e.g. tenant-less public
|
|
7676
|
+
* HTTP routes such as the connectors OAuth callback): overrides are
|
|
7677
|
+
* tenant-scoped in storage, so without a tenant there is nothing to fetch —
|
|
7678
|
+
* and asking the repository anyway would require the very context that is
|
|
7679
|
+
* absent.
|
|
7680
|
+
*/
|
|
7681
|
+
resolveAllStatic(): Map<string, unknown>;
|
|
7682
|
+
/** Flag names known to this service: registry entries plus static defaults. */
|
|
7683
|
+
private collectFlagNames;
|
|
7684
|
+
private resolveNames;
|
|
7444
7685
|
/**
|
|
7445
7686
|
* Resolve a single flag with full metadata.
|
|
7446
7687
|
*
|
|
@@ -7634,6 +7875,29 @@ declare const MEMORY_OBJECT: ObjectDefinition;
|
|
|
7634
7875
|
declare const MEMORY_VIEW: DetailViewDefinition;
|
|
7635
7876
|
declare const MEMORY_LIST_VIEW: ListViewDefinition;
|
|
7636
7877
|
|
|
7878
|
+
/** The native object name. Imported instead of retyped at every call site. */
|
|
7879
|
+
declare const DRIVE_OBJECT_NAME = "drives";
|
|
7880
|
+
/**
|
|
7881
|
+
* A drive is a storage space that happens to be a record.
|
|
7882
|
+
*
|
|
7883
|
+
* It declares no storage attribute on purpose: every record already owns a
|
|
7884
|
+
* drive through the `attachments` edge, so filing a document into a drive is
|
|
7885
|
+
* the ordinary attachment path with no drive-specific code behind it.
|
|
7886
|
+
*
|
|
7887
|
+
* No `owner` attribute either — same reasoning as MEMORY_OBJECT. Resource
|
|
7888
|
+
* visibility owns scoping: a drive is `workspace` or `private` with a single
|
|
7889
|
+
* `ownedBy` actor enforced server-side on every read path. A plain user value
|
|
7890
|
+
* could only describe an intent, never restrict access.
|
|
7891
|
+
*
|
|
7892
|
+
* Sealed: a drive is infrastructure, not a business object. Its identity is
|
|
7893
|
+
* the tree it carries, and an attribute added at runtime would be an attribute
|
|
7894
|
+
* the Drive surface renders nowhere — present in the API and invisible to the
|
|
7895
|
+
* person who added it.
|
|
7896
|
+
*/
|
|
7897
|
+
declare const DRIVE_OBJECT: ObjectDefinition;
|
|
7898
|
+
declare const DRIVE_VIEW: DetailViewDefinition;
|
|
7899
|
+
declare const DRIVE_LIST_VIEW: ListViewDefinition;
|
|
7900
|
+
|
|
7637
7901
|
/**
|
|
7638
7902
|
* Registry for developer-defined view definitions
|
|
7639
7903
|
*
|
|
@@ -7883,6 +8147,15 @@ type RecordPatchLiveEvent = {
|
|
|
7883
8147
|
label?: string;
|
|
7884
8148
|
metadata?: Record<string, unknown>;
|
|
7885
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;
|
|
7886
8159
|
updatedAt: string;
|
|
7887
8160
|
};
|
|
7888
8161
|
type RecordDeletedLiveEvent = {
|
|
@@ -8029,6 +8302,14 @@ type ConversationRenamedLiveEvent = {
|
|
|
8029
8302
|
type: "conversation.renamed";
|
|
8030
8303
|
sessionId: string;
|
|
8031
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;
|
|
8032
8313
|
version: number;
|
|
8033
8314
|
updatedAt: string;
|
|
8034
8315
|
};
|
|
@@ -8047,12 +8328,37 @@ type BrowserPreviewUpdatedLiveEvent = {
|
|
|
8047
8328
|
type: "browser.preview.updated";
|
|
8048
8329
|
preview: BrowserPreviewDescriptor;
|
|
8049
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
|
+
};
|
|
8050
8356
|
type ChannelRevokedLiveEvent = {
|
|
8051
8357
|
type: "channel.revoked";
|
|
8052
8358
|
channel: string;
|
|
8053
8359
|
reason: "permission-revoked" | "workspace-left" | "object-deleted";
|
|
8054
8360
|
};
|
|
8055
|
-
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;
|
|
8056
8362
|
type LiveEventType = LiveEventPayload["type"];
|
|
8057
8363
|
declare const LIVE_EVENT_TYPES: readonly LiveEventType[];
|
|
8058
8364
|
declare function isLiveEventType(value: unknown): value is LiveEventType;
|
|
@@ -9041,58 +9347,6 @@ interface SchemaPlan {
|
|
|
9041
9347
|
additive: SchemaPlanAdditive;
|
|
9042
9348
|
destructive: SchemaPlanDestructive;
|
|
9043
9349
|
}
|
|
9044
|
-
/**
|
|
9045
|
-
* A plan being accumulated one entry at a time, before a summary exists.
|
|
9046
|
-
*
|
|
9047
|
-
* Derived from {@link SchemaPlan} rather than redeclared, so an entry added to
|
|
9048
|
-
* the plan shape is automatically addable to a draft — the two cannot drift
|
|
9049
|
-
* into accepting different things. `summary` is absent because it describes a
|
|
9050
|
-
* finished plan: the agent writes it at `propose_schema_plan`, once it knows
|
|
9051
|
-
* what it actually assembled. `schemaPlanVersion` is absent because a draft is
|
|
9052
|
-
* never handed to anything that dispatches on it; it is stamped at finalize.
|
|
9053
|
-
*/
|
|
9054
|
-
type SchemaPlanDraft = Omit<SchemaPlan, "schemaPlanVersion" | "summary">;
|
|
9055
|
-
/**
|
|
9056
|
-
* Where a session's draft stands in its lifecycle.
|
|
9057
|
-
*
|
|
9058
|
-
* `composing` is a draft still accumulating entries; `proposed` is a draft
|
|
9059
|
-
* whose entries became a plan (`propose_schema_plan`) and are KEPT — the
|
|
9060
|
-
* preview window renders them until the plan is applied or rejected. A
|
|
9061
|
-
* proposed draft never silently accepts new entries: the next entry starts a
|
|
9062
|
-
* fresh `composing` draft, which is what protects a later plan from stale
|
|
9063
|
-
* leftovers now that drafts are session-scoped rather than turn-scoped.
|
|
9064
|
-
*/
|
|
9065
|
-
type SchemaPlanDraftStatus = "composing" | "proposed";
|
|
9066
|
-
/** Sample records for preview only — keyed by object name, values keyed by attribute name. */
|
|
9067
|
-
type SchemaPlanSampleData = Record<string, Record<string, unknown>[]>;
|
|
9068
|
-
/**
|
|
9069
|
-
* What a draft repository write carries: the plan-shaped draft plus the
|
|
9070
|
-
* preview envelope around it. `updatedAt` is absent on purpose — the store
|
|
9071
|
-
* stamps it, so no caller can write a time it made up.
|
|
9072
|
-
*/
|
|
9073
|
-
interface SchemaPlanDraftWrite {
|
|
9074
|
-
draft: SchemaPlanDraft;
|
|
9075
|
-
sampleData: SchemaPlanSampleData;
|
|
9076
|
-
status: SchemaPlanDraftStatus;
|
|
9077
|
-
/** The plan this draft became at finalize; `null` while composing. */
|
|
9078
|
-
proposedPlanId: Uuid | null;
|
|
9079
|
-
}
|
|
9080
|
-
/**
|
|
9081
|
-
* What the draft endpoint returns and the repository stores alongside the
|
|
9082
|
-
* plan-shaped draft. `updatedAt` (ISO string) is the store's stamp, used by
|
|
9083
|
-
* the preview window's dismissal ledger to tell new activity from old.
|
|
9084
|
-
*/
|
|
9085
|
-
interface SchemaPlanDraftState extends SchemaPlanDraftWrite {
|
|
9086
|
-
updatedAt: string;
|
|
9087
|
-
}
|
|
9088
|
-
/**
|
|
9089
|
-
* What the draft endpoint answers: the full state, or `{ draft: null }` for a
|
|
9090
|
-
* session with no draft — always 200, because "nothing composed yet" is a
|
|
9091
|
-
* normal state the preview window polls through, not an error.
|
|
9092
|
-
*/
|
|
9093
|
-
type SchemaPlanDraftResponse = SchemaPlanDraftState | {
|
|
9094
|
-
draft: null;
|
|
9095
|
-
};
|
|
9096
9350
|
/** The server-prepared payload persisted for later approval and execution. */
|
|
9097
9351
|
interface PersistedSchemaPlan {
|
|
9098
9352
|
schemaPlanVersion: 2;
|
|
@@ -9793,4 +10047,167 @@ type SchemaPlanProposalInput = z$1.input<typeof structuralSchemaPlanSchema>;
|
|
|
9793
10047
|
type ParsedSchemaPlanProposal = z$1.output<typeof schemaPlanSchema>;
|
|
9794
10048
|
type ParsedPersistedSchemaPlan = z$1.output<typeof persistedSchemaPlanSchema>;
|
|
9795
10049
|
|
|
9796
|
-
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_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, BilateralConfig, type BoundingBox, type BrowserPreviewDescriptor, type BrowserPreviewStatus, type BrowserPreviewUpdatedLiveEvent, type BuilderConfig, type ByteMagnitude, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, CONNECTOR_CALLBACK_PARAM, COUNT_MODES, type CalendarConnectorProviderId, type CalendarMeetingEndedData, type CalendarMeetingTranscriptCreatedData, type ChannelRevokedLiveEvent, CheckboxAttribute, 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, DateAttribute, DateRangeValue, type DefaultResolutionContext, type DefaultRoleName, type DeletedMode, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, type Document, DocumentAttribute, type DocumentFile, type DocumentKind, DocumentLayout, type DocumentListOptions, type DocumentWithFiles, type DocumentWithSubCount, DocumentsTabConfig, type DomainEvent, 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 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, 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, OPERATOR_SPECS, ObjectBuilder, type ObjectConfig, ObjectDefinition, type ObjectPermissions, ObjectRecord, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, 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, RelationGroup, RelationGroupBuilder, 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 ViewProjectionStaleLiveEvent, type ViewStateEntry, type ViewStateResolution, type ViewSyncPayload, ViewType, type WithCustomAttributes, type WithCustomRecordAttributes, type WithoutSystemFields, accessLevelToActions, actionsToAccessLevel, agent, agentDisplayName, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, booleanFlag, buildAgentFallbackTitle, buildPermissionFlags, buildPropertySchema, buildQualifiedAttribute, canonicalizeFilterValue, checkbox, collectQualifiedRuleIssues, compileComputedFormula, compileRollupAttribute, computeByteMagnitude, conversationDisplayTitle, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, dateInTimezone, dateValueStart, deriveInitials, destructiveSchema, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, evaluateRecordFilterState, extractAttributeNames, extractCurrencyFilterValue, extractFilterValue, extractValueRefs, flagRegistry, 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, 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, matchesAccepts, multiselect, nativeAgentUIPartIdMetadataKey, normalizeDateValue, normalizeFilterRule, normalizeForEdgeRpc, normalizeOperator, now, number, numberFlag, object, parseCountMode, parseLiveChannelKey, parseNativeAgentUIPartIdsMetadata, parseOptionalCountMode, parseQualifiedAttribute, persistedDefaultViewTargetSchema, persistedSchemaPlanSchema, phone, plannedAttributeSchema, plannedInlineAttributeSchema, plannedObjectSchema, proposedDefaultViewTargetSchema, registry, relation, relationGroup, 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 };
|
|
10050
|
+
/**
|
|
10051
|
+
* Where an operation is visible. Drives live navigation: the client turns a
|
|
10052
|
+
* focus into a route and, when following, goes there before rendering the
|
|
10053
|
+
* overlay.
|
|
10054
|
+
*/
|
|
10055
|
+
interface DraftFocus {
|
|
10056
|
+
objectId?: string;
|
|
10057
|
+
viewId?: string;
|
|
10058
|
+
recordId?: string;
|
|
10059
|
+
tabId?: string;
|
|
10060
|
+
groupId?: string;
|
|
10061
|
+
fieldId?: string;
|
|
10062
|
+
}
|
|
10063
|
+
/** A view as the fold sees it — published shape, no persistence concerns. */
|
|
10064
|
+
interface DraftableView {
|
|
10065
|
+
id: 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;
|
|
10072
|
+
type: "detail" | "list";
|
|
10073
|
+
label: string;
|
|
10074
|
+
tabs: Tab[];
|
|
10075
|
+
config: {
|
|
10076
|
+
tabs?: ListViewTab[];
|
|
10077
|
+
} & Record<string, unknown>;
|
|
10078
|
+
}
|
|
10079
|
+
interface DraftableObject {
|
|
10080
|
+
id: string;
|
|
10081
|
+
name: string;
|
|
10082
|
+
label: string;
|
|
10083
|
+
icon?: string;
|
|
10084
|
+
}
|
|
10085
|
+
interface DraftableAttribute {
|
|
10086
|
+
id: string;
|
|
10087
|
+
objectId: string;
|
|
10088
|
+
name: string;
|
|
10089
|
+
label: string;
|
|
10090
|
+
attributeType: string;
|
|
10091
|
+
}
|
|
10092
|
+
interface DraftableSampleRecord {
|
|
10093
|
+
id: string;
|
|
10094
|
+
objectId: string;
|
|
10095
|
+
values: Record<string, unknown>;
|
|
10096
|
+
}
|
|
10097
|
+
/**
|
|
10098
|
+
* Everything an operation may read or write.
|
|
10099
|
+
*
|
|
10100
|
+
* The client folds a draft over this shape to render the overlay; the server
|
|
10101
|
+
* folds the same draft over the same shape at publish time. One fold, so a
|
|
10102
|
+
* preview is the result rather than a prediction of it.
|
|
10103
|
+
*/
|
|
10104
|
+
interface DraftableState {
|
|
10105
|
+
objects: DraftableObject[];
|
|
10106
|
+
attributes: DraftableAttribute[];
|
|
10107
|
+
views: DraftableView[];
|
|
10108
|
+
sampleRecords: DraftableSampleRecord[];
|
|
10109
|
+
}
|
|
10110
|
+
/** Context passed to `describe` so summaries can be localised. */
|
|
10111
|
+
interface LabelContext {
|
|
10112
|
+
locale: "fr" | "en";
|
|
10113
|
+
}
|
|
10114
|
+
/** The shape every operation payload shares. */
|
|
10115
|
+
interface BaseOperation {
|
|
10116
|
+
/** This operation's own id, used to remove it from a draft. */
|
|
10117
|
+
id: string;
|
|
10118
|
+
type: string;
|
|
10119
|
+
}
|
|
10120
|
+
|
|
10121
|
+
/**
|
|
10122
|
+
* Any registered operation. Structural rather than a closed union so the three
|
|
10123
|
+
* slices stay independent of one another; the registry is what makes a type
|
|
10124
|
+
* real, and `applyOperations` rejects anything it does not hold.
|
|
10125
|
+
*/
|
|
10126
|
+
type ViewOperation = BaseOperation & Record<string, unknown>;
|
|
10127
|
+
/**
|
|
10128
|
+
* The fold.
|
|
10129
|
+
*
|
|
10130
|
+
* Runs identically on the client overlay and on the server at publish time, so
|
|
10131
|
+
* what a person previews is the result rather than a prediction of it. Pure:
|
|
10132
|
+
* never mutates `state`. Throws at the first operation that cannot apply, so a
|
|
10133
|
+
* caller that catches has applied nothing.
|
|
10134
|
+
*/
|
|
10135
|
+
declare function applyOperations(state: DraftableState, operations: readonly ViewOperation[]): DraftableState;
|
|
10136
|
+
/** Where an operation is visible. Turned into a route by the client. */
|
|
10137
|
+
declare function focusOf(operation: ViewOperation): DraftFocus;
|
|
10138
|
+
/** One human-readable line per operation, in the reader's language. */
|
|
10139
|
+
declare function describeOperations(operations: readonly ViewOperation[], ctx: LabelContext): string[];
|
|
10140
|
+
/**
|
|
10141
|
+
* Parses a payload against its own declared schema. The single gate an
|
|
10142
|
+
* operation passes before it reaches a draft.
|
|
10143
|
+
*/
|
|
10144
|
+
declare function parseOperation(candidate: unknown): ViewOperation;
|
|
10145
|
+
|
|
10146
|
+
/**
|
|
10147
|
+
* The single declaration of an operation. Four consumers derive from it instead
|
|
10148
|
+
* of each keeping their own copy: the client mutation, the server write, the
|
|
10149
|
+
* agent tool schema, and the human-readable summary.
|
|
10150
|
+
*/
|
|
10151
|
+
interface OperationDef<T extends BaseOperation = BaseOperation> {
|
|
10152
|
+
/** Discriminant — also the agent tool's name. */
|
|
10153
|
+
type: T["type"];
|
|
10154
|
+
/** Payload contract — also the agent tool's input schema. */
|
|
10155
|
+
schema: z$1.ZodType<T>;
|
|
10156
|
+
/** The fold. Must be pure: never mutate `state`. */
|
|
10157
|
+
apply: (state: DraftableState, op: T) => DraftableState;
|
|
10158
|
+
/** Where this operation is visible. */
|
|
10159
|
+
focus: (op: T) => DraftFocus;
|
|
10160
|
+
/** One-line human summary. */
|
|
10161
|
+
describe: (op: T, ctx: LabelContext) => string;
|
|
10162
|
+
}
|
|
10163
|
+
/**
|
|
10164
|
+
* Identity with inference. Exists so a definition site keeps its literal type
|
|
10165
|
+
* while the registry can hold the erased form.
|
|
10166
|
+
*/
|
|
10167
|
+
declare function defineOperation<T extends BaseOperation>(def: OperationDef<T>): OperationDef<T>;
|
|
10168
|
+
|
|
10169
|
+
/**
|
|
10170
|
+
* Builds a slot id from its group and its own discriminator. Exported so the
|
|
10171
|
+
* SQL backfill's expected output can be pinned against it in a test.
|
|
10172
|
+
*/
|
|
10173
|
+
declare function makeFieldId(groupId: string, seed: string, collisionIndex: number): string;
|
|
10174
|
+
/**
|
|
10175
|
+
* Ensures every field slot in a detail-view tab list carries a stable id.
|
|
10176
|
+
*
|
|
10177
|
+
* Pure and idempotent: a slot that already has an id keeps it, and running the
|
|
10178
|
+
* function on its own output returns an identical value. Mirrored by the SQL
|
|
10179
|
+
* backfill in `20260814100000_field_slot_ids.sql`, which must produce the same
|
|
10180
|
+
* ids for the same input.
|
|
10181
|
+
*/
|
|
10182
|
+
declare function ensureFieldIds(tabs: Tab[]): Tab[];
|
|
10183
|
+
|
|
10184
|
+
/**
|
|
10185
|
+
* Every operation, declared once. The client mutation, the server write, the
|
|
10186
|
+
* agent tool schemas and the change summary all read this map instead of
|
|
10187
|
+
* keeping their own copy of what an operation is.
|
|
10188
|
+
*/
|
|
10189
|
+
declare const OPERATION_REGISTRY: ReadonlyMap<string, OperationDef<BaseOperation>>;
|
|
10190
|
+
declare const ALL_OPERATION_TYPES: readonly string[];
|
|
10191
|
+
|
|
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 };
|