@stndrds/schema 1.0.0-alpha.276 → 1.0.0-alpha.277

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/{all-D5zeUllO.d.mts → all-D-E8v5yo.d.mts} +1 -1
  2. package/dist/{all--B2_3ksI.d.ts → all-D5SkjRst.d.ts} +1 -1
  3. package/dist/{chunk-EDOEX3O7.js → chunk-F32XOFSP.js} +156 -54
  4. package/dist/{chunk-RAF6K6VG.js → chunk-FMLZHHWB.js} +19 -5
  5. package/dist/{chunk-QLU5QR7M.mjs → chunk-K4UER3DU.mjs} +2 -6
  6. package/dist/{chunk-T7BST4JS.js → chunk-KKR6I3YV.js} +3 -3
  7. package/dist/{chunk-RBG2YMF2.mjs → chunk-PSCSTHUB.mjs} +16 -3
  8. package/dist/{chunk-F3YPU2N6.js → chunk-RYAQOR7M.js} +2 -6
  9. package/dist/{chunk-U7QUIEFF.mjs → chunk-VVYIFBFQ.mjs} +1 -1
  10. package/dist/{chunk-4USPA67J.mjs → chunk-XQEDMB6B.mjs} +118 -25
  11. package/dist/exceptions.d.mts +1 -6
  12. package/dist/exceptions.d.ts +1 -6
  13. package/dist/exceptions.js +39 -39
  14. package/dist/exceptions.mjs +1 -1
  15. package/dist/{index-Bq1KrQkR.d.ts → index-AJeEKoy6.d.ts} +24 -234
  16. package/dist/{index-DtxtOBYT.d.mts → index-ApHE8c1J.d.mts} +24 -234
  17. package/dist/index.d.mts +404 -10
  18. package/dist/index.d.ts +404 -10
  19. package/dist/index.js +257 -248
  20. package/dist/index.mjs +63 -90
  21. package/dist/validation/all.d.mts +2 -2
  22. package/dist/validation/all.d.ts +2 -2
  23. package/dist/validation/all.js +29 -29
  24. package/dist/validation/all.mjs +4 -4
  25. package/dist/validation/config/index.d.mts +1 -1
  26. package/dist/validation/config/index.d.ts +1 -1
  27. package/dist/validation/config/index.js +11 -11
  28. package/dist/validation/config/index.mjs +2 -2
  29. package/dist/validation/object/index.js +14 -14
  30. package/dist/validation/object/index.mjs +2 -2
  31. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { S as SortRule, F as FilterState, V as ViewType, a as ViewConfig, C as ConfigOverrides, P as PermissionScope, A as Action, b as FilterOperator, c as SystemResource, d as ProviderName, M as ModelDefinition, e as AgentSchedule, f as AgentExecutionConfig, g as AgentApprovalPolicy, T as TriggerEventType, h as AgentTriggerBlueprint, i as AgentBlueprint, D as DetailViewConfig, j as DetailViewDefinition, k as SidePanelConfig, l as Field, m as AttributeGroupField, n as FieldGroup, R as RelationGroup, G as Group, o as TableTab, p as CreateMode, q as Tab, L as ListViewConfig, r as ListViewDefinition, s as ViewDefinition, t as ListViewTab, u as FilterValue, v as FilterRule, w as DynamicValue, x as RelativeDateValue } from './index-Bq1KrQkR.js';
2
- export { y as AIAvailableModel, z as AIBatchAnswerValue, B as AIBatchQuestion, E as AIBatchQuestionAnswer, H as AIBatchQuestionOption, I as AIBatchQuestionType, J as AIChatMessage, K as AIChatMessagePart, N as AIChatMessagePartType, O as AIChatNotification, Q as AICompactionSummary, U as AIMemoryEntry, W as AIMemoryType, X as AIMessageRole, Y as AIProviderMetrics, Z as AIQuestion, _ as AIQuestionAnswer, $ as AIQuestionOption, a0 as AIQuestionType, a1 as AISubagentStatus, a2 as AITodoItem, a3 as AITodoList, a4 as AITodoStatus, a5 as AIToolCall, a6 as AIToolCallStatus, a7 as AIUsageMetrics, a8 as ALL_ACTIONS, a9 as AccessLevel, aa as ActivityTab, ab as AddAttributeInput, ac as AdvancedFilterState, ad as AgentConfig, ae as AgentDashboard, af as AgentDefinition, ag as AgentEvent, ah as AgentMessageAttachment, ai as AgentMessagePart, aj as AgentMission, ak as AgentMissionArtifact, al as AgentMissionPage, am as AgentMissionPolicy, an as AgentMissionRubric, ao as AgentMissionRubricCriterion, ap as AgentMissionStatus, aq as AgentMissionVerification, ar as AgentMissionView, as as AgentRequiredPermission, at as AgentRun, au as AgentRunStatus, av as AgentSession, aw as AgentSessionMessage, ax as AgentSessionMode, ay as AgentSessionStatus, az as AgentTodoPlan, aA as AgentTodoPlanStatus, aB as AgentTodoPlanView, aC as AgentToolCall, aD as AgentTriggerDefinition, aE as AgentTriggerType, aF as ApprovalMode, aG as AssignRoleInput, aH as CompactionStrategy, aI as CreateCustomObjectInput, aJ as CreateDocument, aK as CreateDocumentLink, aL as CreateFile, aM as CreatePermissionInput, aN as CreateRoleInput, aO as CreateViewInput, aP as CriticConfig, aQ as CurrencyFilterValue, aR as CustomTab, aS as DEFAULT_APPROVAL_POLICY, aT as Document, aU as DocumentFile, aV as DocumentKind, aW as DocumentListOptions, aX as DocumentWithFiles, aY as DocumentWithSubCount, aZ as DocumentsTab, a_ as EdgeQuantifier, a$ as EffectivePermissions, b0 as EmailsTab, b1 as ExtendedFilterRule, b2 as File, b3 as FileOcrStatus, b4 as FilterCombinator, b5 as FilterGroup, b6 as FormDensity, b7 as FormSubmittedAgentEvent, b8 as FormTab, b9 as FormsTab, ba as HumanRequestNeed, bb as InverseSource, bc as ListViewLayout, bd as MAX_TODOS, be as MAX_TODO_DESCRIPTION_CHARS, bf as MAX_TODO_ID_CHARS, bg as MAX_TODO_RESULT_CHARS, bh as MentionEntityType, bi as MentionReference, bj as MentionedContext, bk as MentionedEntityContext, bl as NO_VALUE_OPERATORS, bm as NoValueOperator, bn as OPERATORS_BY_TYPE, bo as ObjectPermissions, bp as Permission, bq as PhoneFilterValue, br as QueryState, bs as ReasoningPartData, bt as RecordAgentEvent, bu as RecordDocuments, bv as RelationOption, bw as RelationOptionsResponse, bx as RelationSource, by as RetryPolicy, bz as RichtextTab, bA as Role, bB as SESSION_TERMINAL_STATUSES, bC as SessionApprovalMode, bD as SortDirection, bE as StorageProvider, bF as StreamEventCompactionEnd, bG as StreamEventCompactionFailed, bH as StreamEventCompactionStart, bI as StreamEventMessagePersisted, bJ as StreamEventMessageUpdated, bK as StreamEventMissionUpdate, bL as StreamEventTodoPlanUpdate, bM as StreamEventUsage, bN as SystemPermissions, bO as TODO_PLAN_STATUSES, bP as TODO_STATUSES, bQ as TabType, bR as TableSource, bS as TerminalSessionStatus, bT as TextPartData, bU as ThinkingPartData, bV as ToolImpact, bW as ToolPartData, bX as ToolPartErrorCode, bY as ToolPartState, bZ as UpdateDocument, b_ as UpdateFile, b$ as UpdateObjectInput, c0 as UpdateRoleInput, c1 as UpdateViewInput, c2 as UserRoleAssignment, c3 as ViewOverlay, c4 as accessLevelToActions, c5 as actionsToAccessLevel, c6 as agentDisplayName, c7 as getRollupFilterOperators, c8 as isDetailView, c9 as isFieldGroup, ca as isListView, cb as isNoValueOperator, cc as isRelationGroup, cd as isTerminalSessionStatus, ce as multiselectOptionWriteSchema, cf as parseAttributeConfig, cg as parseAttributeConfigForCreate, ch as parseAttributeConfigForUpdate, ci as selectOptionWriteSchema, cj as statusGroupSchema, ck as statusOptionWriteSchema } from './index-Bq1KrQkR.js';
1
+ import { S as SortRule, F as FilterState, V as ViewType, a as ViewConfig, C as ConfigOverrides, P as PermissionScope, A as Action, b as FilterOperator, c as SystemResource, d as ProviderName, M as ModelDefinition, e as AgentSchedule, f as AgentExecutionConfig, g as AgentApprovalPolicy, T as TriggerEventType, h as AgentTriggerBlueprint, i as AgentBlueprint, D as DetailViewConfig, j as DetailViewDefinition, k as SidePanelConfig, l as Field, m as AttributeGroupField, n as FieldGroup, R as RelationGroup, G as Group, o as TableTab, p as CreateMode, q as Tab, L as ListViewConfig, r as ListViewDefinition, s as ViewDefinition, t as ListViewTab, u as FilterValue, v as FilterRule, w as DynamicValue, x as RelativeDateValue } from './index-AJeEKoy6.js';
2
+ export { y as AIAvailableModel, z as AIBatchAnswerValue, B as AIBatchQuestion, E as AIBatchQuestionAnswer, H as AIBatchQuestionOption, I as AIBatchQuestionType, J as AIChatMessage, K as AIChatMessagePart, N as AIChatMessagePartType, O as AIChatNotification, Q as AICompactionSummary, U as AIMemoryEntry, W as AIMemoryType, X as AIMessageRole, Y as AIProviderMetrics, Z as AIQuestion, _ as AIQuestionAnswer, $ as AIQuestionOption, a0 as AIQuestionType, a1 as AISubagentStatus, a2 as AITodoItem, a3 as AITodoList, a4 as AITodoStatus, a5 as AIToolCall, a6 as AIToolCallStatus, a7 as AIUsageMetrics, a8 as ALL_ACTIONS, a9 as AccessLevel, aa as ActivityTab, ab as AddAttributeInput, ac as AdvancedFilterState, ad as AgentConfig, ae as AgentDashboard, af as AgentDefinition, ag as AgentEvent, ah as AgentMessageAttachment, ai as AgentMessagePart, aj as AgentMission, ak as AgentMissionArtifact, al as AgentMissionPage, am as AgentMissionPolicy, an as AgentMissionRubric, ao as AgentMissionRubricCriterion, ap as AgentMissionStatus, aq as AgentMissionVerification, ar as AgentMissionView, as as AgentRequiredPermission, at as AgentRun, au as AgentRunStatus, av as AgentSession, aw as AgentSessionMessage, ax as AgentSessionMode, ay as AgentSessionStatus, az as AgentTodoPlan, aA as AgentTodoPlanStatus, aB as AgentTodoPlanView, aC as AgentToolCall, aD as AgentTriggerDefinition, aE as AgentTriggerType, aF as ApprovalMode, aG as AssignRoleInput, aH as CompactionStrategy, aI as CreateCustomObjectInput, aJ as CreatePermissionInput, aK as CreateRoleInput, aL as CreateViewInput, aM as CriticConfig, aN as CurrencyFilterValue, aO as CustomTab, aP as DEFAULT_APPROVAL_POLICY, aQ as DocumentsTab, aR as EdgeQuantifier, aS as EffectivePermissions, aT as EmailsTab, aU as ExtendedFilterRule, aV as FilterCombinator, aW as FilterGroup, aX as FormDensity, aY as FormSubmittedAgentEvent, aZ as FormTab, a_ as FormsTab, a$ as HumanRequestNeed, b0 as InverseSource, b1 as ListViewLayout, b2 as MAX_TODOS, b3 as MAX_TODO_DESCRIPTION_CHARS, b4 as MAX_TODO_ID_CHARS, b5 as MAX_TODO_RESULT_CHARS, b6 as MentionEntityType, b7 as MentionReference, b8 as MentionedContext, b9 as MentionedEntityContext, ba as NO_VALUE_OPERATORS, bb as NoValueOperator, bc as OPERATORS_BY_TYPE, bd as ObjectPermissions, be as Permission, bf as PhoneFilterValue, bg as QueryState, bh as ReasoningPartData, bi as RecordAgentEvent, bj as RelationOption, bk as RelationOptionsResponse, bl as RelationSource, bm as RetryPolicy, bn as RichtextTab, bo as Role, bp as SESSION_TERMINAL_STATUSES, bq as SessionApprovalMode, br as SortDirection, bs as StreamEventCompactionEnd, bt as StreamEventCompactionFailed, bu as StreamEventCompactionStart, bv as StreamEventMessagePersisted, bw as StreamEventMessageUpdated, bx as StreamEventMissionUpdate, by as StreamEventTodoPlanUpdate, bz as StreamEventUsage, bA as SystemPermissions, bB as TODO_PLAN_STATUSES, bC as TODO_STATUSES, bD as TabType, bE as TableSource, bF as TerminalSessionStatus, bG as TextPartData, bH as ThinkingPartData, bI as ToolImpact, bJ as ToolPartData, bK as ToolPartErrorCode, bL as ToolPartState, bM as UpdateObjectInput, bN as UpdateRoleInput, bO as UpdateViewInput, bP as UserRoleAssignment, bQ as ViewOverlay, bR as accessLevelToActions, bS as actionsToAccessLevel, bT as agentDisplayName, bU as getRollupFilterOperators, bV as isDetailView, bW as isFieldGroup, bX as isListView, bY as isNoValueOperator, bZ as isRelationGroup, b_ as isTerminalSessionStatus, b$ as multiselectOptionWriteSchema, c0 as parseAttributeConfig, c1 as parseAttributeConfigForCreate, c2 as parseAttributeConfigForUpdate, c3 as selectOptionWriteSchema, c4 as statusGroupSchema, c5 as statusOptionWriteSchema } from './index-AJeEKoy6.js';
3
3
  import { i as ComputedValueType, j as ComputedReturnType, f as AttributeType, k as ComputedOptionsSource, l as ComputedDependency, m as ComputedPlan, e as RollupAttribute, n as ComputedFormulaAstNode, A as Attribute, o as LocationGranularity, p as Location, F as FormulaAttribute, D as DateAttribute, q as DateRangeValue, r as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, s as Phone, t as Currency, U as UserAttribute, T as TextAttribute, u as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, v as TimeFormat, N as NumberAttribute, P as PhoneAttribute, O as Option, L as LocationAttribute, w as FormulaReturnType, 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-_b3Db8vT.js';
4
4
  export { E as AttributeGroup, G as BaseAttribute, h as ComputedAttributeState, H as ComputedFieldKind, I as ComputedFormulaBinaryNode, J as ComputedFormulaBinaryOperator, K as ComputedFormulaCallNode, Q as ComputedFormulaLiteralNode, V as ComputedFormulaParseError, W as ComputedFormulaPathNode, X as ComputedStateStatus, Y as DateFormat, Z as DateValue, _ as NumberUnit, $ as OptionPropertyAttribute, a0 as PropertyAttribute, a1 as PropertyType, a2 as RELATION_TARGET_ANY, a3 as RichTextAttribute, a4 as StatusGroup, a5 as hasOptions, a6 as inferInverseCardinality, a7 as isAttributeSortable, a8 as isBilateralRelation, a9 as isUniversalRelation, aa as parseComputedFormula, ab as resolvePropertyDefinitions } from './attributes-_b3Db8vT.js';
5
- import { IconName, ColorId, CountryIso3, CurrencyCode } from '@stndrds/constants';
5
+ import { IconName, MimeType, ColorId, CountryIso3, CurrencyCode } from '@stndrds/constants';
6
6
  import { Uuid, TenantId } from './utils.js';
7
7
  export { UserId, asTenantId, asUserId, deepEqual, generateId, indexBy } from './utils.js';
8
8
  import { a as ObjectRecord, D as DocumentLayout, T as Timestamps, R as ResourceVisibility, O as ObjectDefinition, L as ListViewTabVisibility } from './objects-A1ED9af-.js';
@@ -16,7 +16,7 @@ export { StandardSchemaV1 } from '@standard-schema/spec';
16
16
  import z, { z as z$1 } from 'zod';
17
17
  export { V as ValidationMessages } from './types-DqLi1tx1.js';
18
18
  export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './validation/core/index.js';
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--B2_3ksI.js';
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-D5SkjRst.js';
20
20
  export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from './helpers-vQ6kp8ET.js';
21
21
  export { createCheckboxValidator } from './validation/primitives/checkbox.js';
22
22
  export { createDateValidator } from './validation/primitives/date.js';
@@ -1137,6 +1137,17 @@ declare function isAttributeFilterable(attribute: AttributeLike): boolean;
1137
1137
  declare function isAttributeSearchable(attribute: AttributeLike): boolean;
1138
1138
  declare function isAttributeGroupable(attribute: AttributeLike): boolean;
1139
1139
  declare function isAttributeKanbanGroupable(attribute: AttributeLike): boolean;
1140
+ /**
1141
+ * The type a filter on this attribute actually compares against. Identity for
1142
+ * every ordinary attribute; for a rollup it unfolds the aggregation:
1143
+ * `earliest`/`latest` compare dates, `original` compares the target attribute's
1144
+ * own type, and every other function (count/sum/avg/min/max/…) compares numbers.
1145
+ *
1146
+ * This is the single place that knowledge lives: operator resolution and value
1147
+ * canonicalization both read it, so a rollup can never be offered numeric
1148
+ * operators while its value is canonicalized as something else.
1149
+ */
1150
+ declare function resolveEffectiveFilterType(attribute: AttributeLike): AttributeType;
1140
1151
 
1141
1152
  /**
1142
1153
  * Common configuration for all builders (Objects & Attributes)
@@ -1154,6 +1165,87 @@ interface BuilderConfig {
1154
1165
  label: string;
1155
1166
  }
1156
1167
 
1168
+ type DocumentKind = "file" | "folder";
1169
+ interface Document extends Timestamps {
1170
+ id: Uuid;
1171
+ tenantId: Uuid;
1172
+ title: string;
1173
+ kind: DocumentKind;
1174
+ parentId?: Uuid | null;
1175
+ description?: string;
1176
+ contentHash?: string;
1177
+ createdBy?: Uuid;
1178
+ updatedBy?: Uuid;
1179
+ deletedAt?: Date | null;
1180
+ /**
1181
+ * Fractional ordering position within `(tenantId, parentId)`. Lower values
1182
+ * sort first. New rows default to `max(siblings) + 1024` so reorderings can
1183
+ * insert between neighbours without renumbering. The server may rebalance
1184
+ * positions in the background to keep the spacing bounded.
1185
+ */
1186
+ position: number;
1187
+ }
1188
+ interface DocumentWithSubCount extends Document {
1189
+ subCount: number | null;
1190
+ }
1191
+ /** OCR processing lifecycle for a single file within a document pack. */
1192
+ type FileOcrStatus = "pending" | "processing" | "completed" | "failed";
1193
+ /**
1194
+ * A single anonymous file belonging to a document pack.
1195
+ * Unlike the slot-based model, files carry no slot name — order within the
1196
+ * pack is `position` only, and `name` is provenance (originalName), never a
1197
+ * label rendered in the UI.
1198
+ */
1199
+ interface DocumentFile {
1200
+ id: Uuid;
1201
+ documentId: Uuid;
1202
+ position: number;
1203
+ /** Provenance only (originalName) — never rendered as a label. */
1204
+ name: string;
1205
+ mimeType: string;
1206
+ size: number;
1207
+ ocrStatus: FileOcrStatus | null;
1208
+ ocrText: string | null;
1209
+ ocrConfidence: number | null;
1210
+ processedAt: Date | null;
1211
+ }
1212
+ type DocumentWithFiles = Document & {
1213
+ files: DocumentFile[];
1214
+ };
1215
+ interface CreateDocument {
1216
+ title: string;
1217
+ kind?: DocumentKind;
1218
+ parentId?: Uuid | null;
1219
+ description?: string;
1220
+ position?: number;
1221
+ }
1222
+ /**
1223
+ * Reference to a record attribute that should atomically attach a freshly
1224
+ * created Document. Passed alongside `CreateDocument` to make creation
1225
+ * link-aware end-to-end (client → REST → service → repo).
1226
+ *
1227
+ * The server requires this — orphan Documents are not creatable through the
1228
+ * REST API.
1229
+ */
1230
+ interface CreateDocumentLink {
1231
+ objectName: string;
1232
+ sourceRecordId: string;
1233
+ attributeName: string;
1234
+ }
1235
+ interface UpdateDocument {
1236
+ title?: string;
1237
+ parentId?: Uuid | null;
1238
+ position?: number;
1239
+ }
1240
+ interface DocumentListOptions {
1241
+ limit?: number;
1242
+ offset?: number;
1243
+ }
1244
+ interface RecordDocuments {
1245
+ /** Documents grouped by attribute name (includes system 'attachments' attribute) */
1246
+ byAttribute: Record<string, DocumentWithFiles[]>;
1247
+ }
1248
+
1157
1249
  /**
1158
1250
  * Extracts a safe error message from an unknown error value.
1159
1251
  *
@@ -1322,6 +1414,154 @@ interface FeatureFlagsConfig {
1322
1414
  defaults?: StaticFlagDefault[];
1323
1415
  }
1324
1416
 
1417
+ /**
1418
+ * Storage provider type
1419
+ */
1420
+ type StorageProvider = "s3" | "gcs" | "azure" | "local" | "cloudflare-r2" | string;
1421
+ /**
1422
+ * File - Represents uploaded file metadata and storage info
1423
+ *
1424
+ * ARCHITECTURE:
1425
+ * - Fixed table (no custom attributes)
1426
+ * - Manages file storage metadata
1427
+ * - uploadedBy links to user_profiles table
1428
+ * - Supports soft delete via deletedAt
1429
+ *
1430
+ * @example
1431
+ * ```typescript
1432
+ * const file: File = {
1433
+ * id: "file-123",
1434
+ * tenantId: "tenant-456",
1435
+ * name: "contract-2025.pdf",
1436
+ * originalName: "Contract Acme Corp 2025.pdf",
1437
+ * mimeType: "application/pdf",
1438
+ * size: 2458624,
1439
+ * storageProvider: "s3",
1440
+ * storagePath: "tenants/456/files/2025/11/contract-2025.pdf",
1441
+ * storageBucket: "my-app-files",
1442
+ * url: "https://cdn.example.com/files/file-123",
1443
+ * uploadedBy: "profile-789",
1444
+ * folderPath: "/contracts/2025",
1445
+ * createdAt: new Date(),
1446
+ * updatedAt: new Date(),
1447
+ * };
1448
+ * ```
1449
+ */
1450
+ interface File extends Timestamps {
1451
+ id: Uuid;
1452
+ tenantId: Uuid;
1453
+ /**
1454
+ * File name (sanitized for storage)
1455
+ */
1456
+ name: string;
1457
+ /**
1458
+ * Original file name (as uploaded by user)
1459
+ */
1460
+ originalName: string;
1461
+ /**
1462
+ * MIME type (e.g., "application/pdf", "image/jpeg")
1463
+ */
1464
+ mimeType: MimeType | string;
1465
+ /**
1466
+ * File size in bytes
1467
+ */
1468
+ size: number;
1469
+ /**
1470
+ * Storage provider (s3, gcs, azure, local, etc.)
1471
+ */
1472
+ storageProvider: StorageProvider;
1473
+ /**
1474
+ * Path in the storage bucket
1475
+ */
1476
+ storagePath: string;
1477
+ /**
1478
+ * Storage bucket name (if applicable)
1479
+ */
1480
+ storageBucket?: string;
1481
+ /**
1482
+ * Public or signed URL to access the file
1483
+ */
1484
+ url: string;
1485
+ /**
1486
+ * User who uploaded the file (FK to user_profiles)
1487
+ * Optional for system-generated files or anonymous uploads.
1488
+ */
1489
+ uploadedBy?: Uuid;
1490
+ /**
1491
+ * Folder path for organization (e.g., "/contracts/2025")
1492
+ */
1493
+ folderPath?: string;
1494
+ /**
1495
+ * Soft delete timestamp (null = not deleted)
1496
+ */
1497
+ deletedAt?: Date;
1498
+ /**
1499
+ * Document this file belongs to, when the file is a member of a document
1500
+ * pack. NULL for files that aren't part of a document (e.g. freshly
1501
+ * uploaded blobs not yet attached to a pack).
1502
+ */
1503
+ documentId?: Uuid | null;
1504
+ /**
1505
+ * Append-only position within the owning document pack (plain integer,
1506
+ * `max(position) + 1`). Packs are NOT reorderable (spec §2).
1507
+ */
1508
+ position?: number | null;
1509
+ /**
1510
+ * OCR processing status for this file, when applicable.
1511
+ */
1512
+ ocrStatus?: FileOcrStatus | null;
1513
+ /**
1514
+ * Extracted OCR text, when processing has completed.
1515
+ */
1516
+ ocrText?: string | null;
1517
+ /**
1518
+ * OCR confidence score, when processing has completed.
1519
+ */
1520
+ ocrConfidence?: number | null;
1521
+ /**
1522
+ * Timestamp of the last OCR processing attempt.
1523
+ */
1524
+ processedAt?: Date | null;
1525
+ }
1526
+ /**
1527
+ * Data required to create a new file record
1528
+ */
1529
+ /**
1530
+ * Data for creating a new file.
1531
+ * Tenant ID is automatically set from execution context.
1532
+ */
1533
+ interface CreateFile {
1534
+ name: string;
1535
+ originalName: string;
1536
+ mimeType: MimeType | string;
1537
+ size: number;
1538
+ storageProvider: StorageProvider;
1539
+ storagePath: string;
1540
+ storageBucket?: string;
1541
+ url: string;
1542
+ uploadedBy?: Uuid;
1543
+ folderPath?: string;
1544
+ documentId?: Uuid | null;
1545
+ position?: number | null;
1546
+ ocrStatus?: FileOcrStatus | null;
1547
+ ocrText?: string | null;
1548
+ ocrConfidence?: number | null;
1549
+ processedAt?: Date | null;
1550
+ }
1551
+ /**
1552
+ * Data for updating an existing file record
1553
+ */
1554
+ interface UpdateFile {
1555
+ name?: string;
1556
+ folderPath?: string;
1557
+ documentId?: Uuid | null;
1558
+ position?: number | null;
1559
+ ocrStatus?: FileOcrStatus | null;
1560
+ ocrText?: string | null;
1561
+ ocrConfidence?: number | null;
1562
+ processedAt?: Date | null;
1563
+ }
1564
+
1325
1565
  declare const FORM_FORBIDDEN_ATTRIBUTE_TYPES: readonly ["relation", "multiRelation", "formula", "rollup", "document", "richtext", "user"];
1326
1566
  interface FormSlotFieldRef {
1327
1567
  type: "slot";
@@ -2434,6 +2674,31 @@ declare const BYTE_UNIT_LABELS: readonly ["B", "KB", "MB", "GB", "TB"];
2434
2674
  */
2435
2675
  declare function formatByteSize(bytes: number): string;
2436
2676
 
2677
+ /**
2678
+ * The strictest reading of "no value": nullish, or the empty string.
2679
+ *
2680
+ * This is a SHAPE test, not a semantic one. It does not trim, does not recurse
2681
+ * into objects, and does not treat `[]` as empty — callers that format a value,
2682
+ * diff it, or decide whether to render a placeholder want exactly that, because
2683
+ * `" "`, `[]` and `{ city: "" }` are all things a user can see.
2684
+ *
2685
+ * Three richer predicates deliberately live elsewhere and answer different
2686
+ * questions; none of them is interchangeable with this one:
2687
+ * - `isEmptyValue` (validation/object/empty-value) also trims and treats an
2688
+ * all-empty object as empty. It gates `withEmptyToNull`, which lets an
2689
+ * optional attribute skip format validation when it is blank.
2690
+ * - `isValuePresent` (validation/object/helpers) also trims, and backs
2691
+ * `getMissingRequiredAttributes`.
2692
+ * - the filter operators' own `isEmpty` (filters/operators) also treats `[]` as
2693
+ * empty, because that is what `is_empty` means to a user writing a filter.
2694
+ *
2695
+ * Declared as a type guard rather than a plain boolean: it replaced inline
2696
+ * `x === null || x === undefined || x === ""` expressions, and TypeScript
2697
+ * narrows on those. A boolean-returning helper would have silently widened
2698
+ * every negative branch that used to be narrowed.
2699
+ */
2700
+ declare function isNullishOrEmptyString(value: unknown): value is null | undefined | "";
2701
+
2437
2702
  /**
2438
2703
  * The one definition of what `format: email | url | slug` means.
2439
2704
  *
@@ -2908,6 +3173,22 @@ declare class AgentBuilder {
2908
3173
  maxDepth?: number;
2909
3174
  maxTreeCostUsd?: number;
2910
3175
  }): this;
3176
+ /**
3177
+ * Opt this agent into MCP servers: an array of server ids, or `"all"` to
3178
+ * mount every server the viewer can see. Absent by default — an agent that
3179
+ * never calls this stays tool-identical to one that predates the feature.
3180
+ * The opt-in only narrows; visibility is still enforced below it at
3181
+ * resolution time (`buildMcpToolset`), so naming an id the viewer cannot
3182
+ * see yields no tools from it, not an error.
3183
+ *
3184
+ * @example
3185
+ * ```typescript
3186
+ * agent({ name: "research-assistant" })
3187
+ * .mcpServers(["notion-workspace"])
3188
+ * // ...
3189
+ * ```
3190
+ */
3191
+ mcpServers(value: string[] | "all"): this;
2911
3192
  approval(value: Partial<AgentApprovalPolicy>): this;
2912
3193
  /** Runtime-agent visibility. Code-declared system agents must stay workspace-visible. */
2913
3194
  visibility(value: ResourceVisibility): this;
@@ -3773,6 +4054,15 @@ declare function document<TName extends string>(config: TypedBuilderConfig<TName
3773
4054
  * `validateAttributeName` rather than duplicating the regex a second time.
3774
4055
  */
3775
4056
  declare function validateObjectName(name: string): void;
4057
+ /**
4058
+ * Validate view name format: kebab-case (slug format), max 63 characters.
4059
+ * Single source of truth for the view builders (`detailView`/`listView`,
4060
+ * declaration time) and `ViewService.createView` (write time) — the two must
4061
+ * never drift apart, which is exactly what happened while this check lived in
4062
+ * `packages/runtime`, out of reach of `packages/schema`. Kept next to
4063
+ * `validateObjectName` for the same reason.
4064
+ */
4065
+ declare function validateViewName(name: string): void;
3776
4066
  /**
3777
4067
  * Validate attribute name as valid variable identifier
3778
4068
  */
@@ -6369,6 +6659,8 @@ declare function normalizeForEdgeRpc(op: FilterOperator): FilterOperator;
6369
6659
  * Already-multi and value-less operators are returned unchanged.
6370
6660
  */
6371
6661
  declare function toMultiValueOperator(op: FilterOperator): FilterOperator;
6662
+ /** Whether an operator takes a set of values (`any_of` / `none_of`). */
6663
+ declare function isSetMembershipOperator(op: FilterOperator): boolean;
6372
6664
 
6373
6665
  declare const SYSTEM_FILTER_ATTRIBUTE_TYPES: Readonly<Record<string, Attribute["type"]>>;
6374
6666
  /**
@@ -6385,6 +6677,14 @@ interface QualifiedRuleValidationContext {
6385
6677
  * rule or throwing for ordinary validation failures.
6386
6678
  */
6387
6679
  declare function collectQualifiedRuleIssues(rule: FilterRule, context: QualifiedRuleValidationContext): ValidationError["errors"];
6680
+ /**
6681
+ * Validate a rule and rewrite it into its canonical form IN PLACE: both
6682
+ * `rule.operator` (synonym → canonical name) and `rule.value` (currency object
6683
+ * → amount, bare scalar → one-element array for set operators) are mutated on
6684
+ * the caller's object. Throws a ValidationError on any invalid rule.
6685
+ *
6686
+ * Use `collectQualifiedRuleIssues` when the caller's rule must not be touched.
6687
+ */
6388
6688
  declare function validateQualifiedRule(rule: FilterRule, context: QualifiedRuleValidationContext): void;
6389
6689
 
6390
6690
  /** True when a filter value is a query-time dynamic token. */
@@ -6424,9 +6724,9 @@ interface DynamicValueResolver<K extends DynamicValue["dynamic"]> {
6424
6724
  }
6425
6725
 
6426
6726
  /** Extract the numeric amount from a currency filter value.
6427
- * Accepts a plain number, a canonical CurrencyFilterValue ({ value, code? }),
6428
- * or the stored currency shape ({ code, value }). Returns null when there is
6429
- * no numeric amount. */
6727
+ * Accepts a plain number or numeric string, a canonical CurrencyFilterValue
6728
+ * ({ value, code? }), or the stored currency shape ({ code, value }). Returns
6729
+ * null when there is no numeric amount. */
6430
6730
  declare function extractCurrencyFilterValue(value: unknown): number | null;
6431
6731
  /** General filter-value flattener: currency/phone/relative-date value objects
6432
6732
  * collapse to their comparable scalar; scalars pass through. */
@@ -6455,8 +6755,34 @@ declare function normalizeFilterRule<T extends {
6455
6755
  }>(rule: T): T;
6456
6756
 
6457
6757
  /**
6458
- * Half-open UTC millisecond range `[startMs, endMs)` covered by an `is_within`
6459
- * rule. `endMs` is the start of the day *after* the last included day, so every
6758
+ * Canonicalize `rule.value` in place for the shape the query layers expect,
6759
+ * using the operator already canonicalized on the rule.
6760
+ *
6761
+ * This is the single decision point ON THE VALIDATED QUERY PATH
6762
+ * (`validateQualifiedRule` → RPC / Meili): it runs wherever that validator
6763
+ * canonicalizes the operator, so every dominated emitter receives the same
6764
+ * shape. It is NOT the only such decision in the codebase — the in-memory
6765
+ * evaluator (`evaluate.ts`) and the defensive unwraps in SQL are independent
6766
+ * decision points on undominated paths, deliberately left untouched.
6767
+ *
6768
+ * Absorbed:
6769
+ * - `currency`: `{ code, value }` / `{ value }` / a numeric string collapses to
6770
+ * the number. A missing or null amount is left untouched.
6771
+ * - `any_of` / `none_of`: a bare scalar becomes a one-element array.
6772
+ *
6773
+ * Deliberately NOT absorbed: `phone`. Flattening `{ countryCode, phoneNumber }`
6774
+ * would destroy the dialling code that `normalizePhoneComparands` needs to
6775
+ * normalize both comparands — a regression dressed up as DRY.
6776
+ *
6777
+ * Never coerces and never throws for no-value operators or absent values, and
6778
+ * dynamic tokens pass through untouched (they are resolved later).
6779
+ */
6780
+ declare function canonicalizeFilterValue(rule: FilterRule, effectiveType: AttributeType): void;
6781
+
6782
+ /**
6783
+ * Half-open UTC millisecond range `[startMs, endMs)` aligned to whole UTC days —
6784
+ * the window of an `is_within` rule, or the single day of a plain date rule.
6785
+ * `endMs` is the start of the day *after* the last included day, so every
6460
6786
  * backend can compare with `>= start AND < end` and select the same rows.
6461
6787
  */
6462
6788
  interface IsWithinBounds {
@@ -6481,6 +6807,19 @@ declare function isRelativeDateValue(value: unknown): value is RelativeDateValue
6481
6807
  * range, so callers never emit a predicate built from `NaN` bounds.
6482
6808
  */
6483
6809
  declare function resolveIsWithinBounds(value: unknown, now?: Date): IsWithinBounds | null;
6810
+ /**
6811
+ * The single definition of a UTC day boundary: the half-open range
6812
+ * `[start of the day containing `ms`, start of the next day)`, in milliseconds.
6813
+ *
6814
+ * Shared with the adapters, which snap plain date rules to day granularity so a
6815
+ * stored timestamp anywhere inside the day matches the day the user picked.
6816
+ * Callers working in other units (Meilisearch stores unix seconds) convert on
6817
+ * their side — this module only ever speaks milliseconds.
6818
+ *
6819
+ * Returns `null` when `ms` is not a representable instant, so callers never
6820
+ * emit a predicate built from `NaN` bounds.
6821
+ */
6822
+ declare function resolveUtcDayBounds(ms: number): IsWithinBounds | null;
6484
6823
  /** Format a UTC millisecond bound as the `YYYY-MM-DD` day string Postgres compares against. */
6485
6824
  declare function toUtcDayString(ms: number): string;
6486
6825
 
@@ -6533,6 +6872,61 @@ declare const CONNECTOR_CALLBACK_PARAM: {
6533
6872
  /** Values `CONNECTOR_CALLBACK_PARAM.status` can take on the redirect. */
6534
6873
  type ConnectorCallbackStatusValue = "connected" | "error";
6535
6874
 
6875
+ /** How an MCP server authenticates outbound calls. `oauth` carries no secret
6876
+ * on the wire — the tokens stay server-side. */
6877
+ type McpServerAuthType = "none" | "header" | "oauth";
6878
+ /** Sync/connection health of an MCP server. */
6879
+ type McpServerStatus = "active" | "needs_reauth" | "error";
6880
+ /**
6881
+ * Token-free projection of an MCP server for client/UI consumption. Mirrors
6882
+ * `McpServerView` on the NestJS controller: only fields explicitly listed
6883
+ * here ever reach the client — no header secret, no OAuth tokens.
6884
+ */
6885
+ interface McpServerView {
6886
+ id: string;
6887
+ slug: string;
6888
+ name: string;
6889
+ url: string;
6890
+ visibility: ResourceVisibility;
6891
+ ownedBy: string | null;
6892
+ catalogEntryId: string | null;
6893
+ authType: McpServerAuthType;
6894
+ trusted: boolean;
6895
+ status: McpServerStatus;
6896
+ lastSyncedAt: string | null;
6897
+ lastSyncError: string | null;
6898
+ createdAt: string;
6899
+ }
6900
+ /** A curated, vendored MCP server the settings UI can offer as a one-click connect. */
6901
+ interface McpCatalogEntry {
6902
+ id: string;
6903
+ slug: string;
6904
+ name: string;
6905
+ url: string;
6906
+ authType: McpServerAuthType;
6907
+ description: string;
6908
+ }
6909
+ /** Auth input for connecting a new MCP server. Secrets are write-only — they
6910
+ * are accepted here but never echoed back on `McpServerView`. */
6911
+ type McpServerAuthInput = {
6912
+ type: "none";
6913
+ } | {
6914
+ type: "header";
6915
+ headerName: string;
6916
+ secret: string;
6917
+ } | {
6918
+ type: "oauth";
6919
+ };
6920
+ /** Input to connect a new MCP server. */
6921
+ interface ConnectMcpServerInput {
6922
+ slug: string;
6923
+ name: string;
6924
+ url: string;
6925
+ visibility: ResourceVisibility;
6926
+ catalogEntryId: string | null;
6927
+ auth: McpServerAuthInput;
6928
+ }
6929
+
6536
6930
  type EmailProvider = "gmail" | "outlook";
6537
6931
  type EmailVisibility = "shared" | "private";
6538
6932
  type EmailDirection = "inbound" | "outbound";
@@ -7579,4 +7973,4 @@ type SchemaPlanProposalInput = z$1.input<typeof structuralSchemaPlanSchema>;
7579
7973
  type ParsedSchemaPlanProposal = z$1.output<typeof schemaPlanSchema>;
7580
7974
  type ParsedPersistedSchemaPlan = z$1.output<typeof persistedSchemaPlanSchema>;
7581
7975
 
7582
- export { type AIGenerationInputMap, type AIGenerationResult, type AIGenerationType, type AIGenerationUsage, ALLOWED_PROPERTY_TYPES, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, type AcceptsCandidate, Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddSharedMailboxInput, AgentApprovalPolicy, AgentBlueprint, AgentBuilder, type AgentBuilderConfig, AgentExecutionConfig, AgentSchedule, type AgentSessionPatchLiveEvent, AgentTriggerBlueprint, type AgentUnreadPatchLiveEvent, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, 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, type ChannelRevokedLiveEvent, CheckboxAttribute, type CollectionPage, type CollectionRequest, type CollectionResponse, 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 ConnectionStatus, type ConnectionStatusId, type ConnectionView, type ConnectorCallbackStatusValue, type ConnectorProviderId, type ConnectorScope, type ContinuationPage, type ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, CreateMode, type CreateNotificationInput, type CreateNotificationRecipientInput, type CreateObjectRecord, type CreateReflexInput, type CreateReflexVersionInput, type CreateUserProfile, 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_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, DateRangeValue, type DefaultResolutionContext, type DefaultRoleName, type DeletedMode, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, DocumentAttribute, DocumentLayout, DocumentsTabConfig, type DomainEvent, type DriftAttributeInfo, DynamicValue, type DynamicValueResolver, EMPTY_VALUE_PLACEHOLDER, ESTIMATED_COUNT_CAP, type Eager, type EmailAttachmentMeta, type EmailDirection, type EmailParticipantRef, type EmailParticipantRole, type EmailProvider, type EmailVisibility, 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 FileListOptions, 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 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, LIVE_STREAM_START_CURSOR, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, ListViewTabVisibility, type LiveChannel, type LiveChannelKind, type LiveErrorPayload, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveGapPayload, type LiveNotification, type LiveNotificationRecipient, type LiveNotificationRecipientPatch, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MEMORY_LIST_VIEW, MEMORY_OBJECT, MEMORY_VIEW, type MailboxAccount, type MailboxCursor, type MailboxEmail, type MailboxListResponse, type MailboxQuery, type MailboxReadState, type MailboxThread, type MailboxThreadDetail, MigrationDefinition, ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, 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, 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, PermissionScope, type PersistedDefaultViewTarget, type PersistedSchemaPlan, type PersistedSchemaPlanAdditive, Phone, PhoneAttribute, type PlannedAttribute, type PlannedAttributeRemoval, type PlannedObject, type PlannedObjectRemoval, type PlannedRename, PropertySchema, type ProposedDefaultViewTarget, ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, RECORD_CREATOR_ROOT_ACTOR_METADATA_KEY, REMOVED_OPERATOR_REPLACEMENTS, type RecordCreatedLiveEvent, type RecordDeletedLiveEvent, 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 ReverseGeocodingParams, RichtextAttribute, RichtextTabConfig, RollupAttribute, RollupFunction, type RunEffect, type RunMode, SCHEMA_PLAN_LIMITS, 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, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type StandardSchemaIssue, type StandardSchemaResult, type StartConnectorAuthInput, type StartConnectorAuthResult, type StaticFlagDefault, StatusAttribute, type StoredSchemaPlan, type SystemAttribute, type SystemAttributeI18nKey, type SystemFields, type SystemObjectDriftInfo, SystemResource, TEXT_FORMAT_PATTERNS, TODAY_DEFAULT, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, type TenantSettings, TextAttribute, TimeFormat, Timestamps, TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateUserProfile, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserLike, type UserProfile, UserReferenceType, type UserStatus, Uuid, ValidationError, type ValueRef, type ViewBaselineOrigin, type ViewChange, ViewConfig, type ViewConfigDelta, ViewDefinition, type ViewProjectionStaleLiveEvent, type ViewStateEntry, type ViewStateResolution, type ViewSyncPayload, ViewType, type WithCustomAttributes$1 as WithCustomAttributes, type WithoutSystemFields, agent, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, canonicalStringify, checkbox, collectQualifiedRuleIssues, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, computeByteMagnitude, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, dateInTimezone, dateValueStart, 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, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isCheckboxEquality, isComputedFunctionName, isDateRangeValue, isDefaultRole, isDocumentAttribute, isDynamicValue, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isManagedSystemAttribute, isNotEmpty, isPlainRecord, isRelativeDateValue, isStandardSchema, jsonFlag, listView, liveChannelKey, location, matchesAccepts, multiselect, normalizeDateValue, normalizeFilterRule, normalizeForEdgeRpc, normalizeOperator, now, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, persistedDefaultViewTargetSchema, persistedSchemaPlanSchema, phone, plannedAttributeSchema, plannedInlineAttributeSchema, plannedObjectSchema, proposedDefaultViewTargetSchema, registry, relation, relationGroup, relationPropertyDefs, renderLabelExpression, resetViewToDefault, resolveAttributeDefaultValue, resolveIsWithinBounds, resolveTextPattern, richtext, rollup, rollupToFormulaExpression, schemaPlanSchema, select, status, stringFlag, text, toMultiValueOperator, toUndefinedIfEmpty, toUtcDayString, today, user, validateAttributeName, validateLabelExpression, validateObjectName, validateQualifiedRule, viewRegistry, viewStateKey, viewSyncPayload };
7976
+ export { type AIGenerationInputMap, type AIGenerationResult, type AIGenerationType, type AIGenerationUsage, ALLOWED_PROPERTY_TYPES, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, type AcceptsCandidate, Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddSharedMailboxInput, AgentApprovalPolicy, AgentBlueprint, AgentBuilder, type AgentBuilderConfig, AgentExecutionConfig, AgentSchedule, type AgentSessionPatchLiveEvent, AgentTriggerBlueprint, type AgentUnreadPatchLiveEvent, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, 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, type ChannelRevokedLiveEvent, CheckboxAttribute, type CollectionPage, type CollectionRequest, type CollectionResponse, 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 ConnectorScope, type ContinuationPage, 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 CreateReflexInput, type CreateReflexVersionInput, type CreateUserProfile, 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_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 EmailAttachmentMeta, type EmailDirection, type EmailParticipantRef, type EmailParticipantRole, type EmailProvider, type EmailVisibility, 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 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, LIVE_STREAM_START_CURSOR, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, ListViewTabVisibility, type LiveChannel, type LiveChannelKind, type LiveErrorPayload, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveGapPayload, type LiveNotification, type LiveNotificationRecipient, type LiveNotificationRecipientPatch, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MEMORY_LIST_VIEW, MEMORY_OBJECT, MEMORY_VIEW, type MailboxAccount, type MailboxCursor, type MailboxEmail, type MailboxListResponse, type MailboxQuery, type MailboxReadState, type MailboxThread, type MailboxThreadDetail, type McpCatalogEntry, type McpServerAuthInput, type McpServerAuthType, type McpServerStatus, type McpServerView, MigrationDefinition, ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, 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, 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, PermissionScope, type PersistedDefaultViewTarget, type PersistedSchemaPlan, type PersistedSchemaPlanAdditive, Phone, PhoneAttribute, type PlannedAttribute, type PlannedAttributeRemoval, type PlannedObject, type PlannedObjectRemoval, type PlannedRename, PropertySchema, type ProposedDefaultViewTarget, ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, RECORD_CREATOR_ROOT_ACTOR_METADATA_KEY, REMOVED_OPERATOR_REPLACEMENTS, 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 ReverseGeocodingParams, RichtextAttribute, RichtextTabConfig, RollupAttribute, RollupFunction, type RunEffect, type RunMode, SCHEMA_PLAN_LIMITS, 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, 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, SystemResource, TEXT_FORMAT_PATTERNS, TODAY_DEFAULT, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, type TenantSettings, TextAttribute, TimeFormat, Timestamps, TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateDocument, type UpdateFile, type UpdateUserProfile, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserLike, type UserProfile, UserReferenceType, type UserStatus, Uuid, ValidationError, type ValueRef, type ViewBaselineOrigin, type ViewChange, ViewConfig, type ViewConfigDelta, ViewDefinition, type ViewProjectionStaleLiveEvent, type ViewStateEntry, type ViewStateResolution, type ViewSyncPayload, ViewType, type WithCustomAttributes$1 as WithCustomAttributes, type WithoutSystemFields, agent, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, canonicalStringify, canonicalizeFilterValue, checkbox, collectQualifiedRuleIssues, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, computeByteMagnitude, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, dateInTimezone, dateValueStart, 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, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isCheckboxEquality, isComputedFunctionName, isDateRangeValue, isDefaultRole, isDocumentAttribute, isDynamicValue, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isManagedSystemAttribute, isNotEmpty, isNullishOrEmptyString, isPlainRecord, isRelativeDateValue, isSetMembershipOperator, isStandardSchema, jsonFlag, listView, liveChannelKey, location, matchesAccepts, multiselect, normalizeDateValue, normalizeFilterRule, normalizeForEdgeRpc, normalizeOperator, now, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, persistedDefaultViewTargetSchema, persistedSchemaPlanSchema, phone, plannedAttributeSchema, plannedInlineAttributeSchema, plannedObjectSchema, proposedDefaultViewTargetSchema, registry, relation, relationGroup, relationPropertyDefs, renderLabelExpression, resetViewToDefault, resolveAttributeDefaultValue, resolveEffectiveFilterType, resolveIsWithinBounds, resolveTextPattern, resolveUtcDayBounds, richtext, rollup, rollupToFormulaExpression, schemaPlanSchema, select, status, stringFlag, text, toMultiValueOperator, toUndefinedIfEmpty, toUtcDayString, today, user, validateAttributeName, validateLabelExpression, validateObjectName, validateQualifiedRule, validateViewName, viewRegistry, viewStateKey, viewSyncPayload };