@stndrds/schema 1.0.0-alpha.288 → 1.0.0-alpha.291

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/index.d.mts CHANGED
@@ -2088,6 +2088,14 @@ interface AIAvailableModel {
2088
2088
  isCompactionModel?: boolean;
2089
2089
  /** If true, this model is used for fast utility generations (regex, formula, …) */
2090
2090
  isUtilityModel?: boolean;
2091
+ /**
2092
+ * How the UI reveals this model's streamed text. `"character"` (the default
2093
+ * when absent) paces graphemes at reading speed — right for fast models.
2094
+ * `"word"` flushes text at network rhythm and fades each new word in —
2095
+ * right for slow models whose token cadence the pacer would turn into
2096
+ * jerky bursts.
2097
+ */
2098
+ revealStyle?: "character" | "word";
2091
2099
  }
2092
2100
  /**
2093
2101
  * Tool call status during execution
@@ -2540,6 +2548,22 @@ interface AICompactionSummary {
2540
2548
  compactedAt: Date;
2541
2549
  }
2542
2550
 
2551
+ /**
2552
+ * The synthetic stream lane carrying `data-session-state` chunks. Server and
2553
+ * client must share the literal: the publisher enqueues state batches on it,
2554
+ * and the client routes it straight to the versioned session writer.
2555
+ */
2556
+ declare const SESSION_STATE_STREAM_ID = "session-state";
2557
+ /**
2558
+ * Payload of the transient `data-session-state` chunk: the complete structured
2559
+ * session state plus the SAME version envelope the Supabase patch publishes,
2560
+ * so the two channels carry identical numbers for one write.
2561
+ */
2562
+ interface SessionStateChunkData {
2563
+ state: SessionState;
2564
+ version: number;
2565
+ updatedAt: string;
2566
+ }
2543
2567
  declare const NATIVE_AGENT_UI_PART_IDS_METADATA_KEY = "__stndrdsNativeUiPartIds";
2544
2568
  declare const NATIVE_AGENT_UI_PART_IDS_METADATA_SCHEMA_VERSION: 1;
2545
2569
  type NativeAgentUIPartIds = Readonly<Record<string, string>>;
@@ -2603,6 +2627,7 @@ interface AgentUIDataTypes {
2603
2627
  impact?: ToolImpact;
2604
2628
  relaxableByAuto?: boolean;
2605
2629
  };
2630
+ "session-state": SessionStateChunkData;
2606
2631
  }
2607
2632
 
2608
2633
  /**
@@ -4778,6 +4803,25 @@ declare function isLabelExpression(value: string): boolean;
4778
4803
  * // -> ["firstName", "lastName"]
4779
4804
  */
4780
4805
  declare function extractAttributeNames(template: string): string[];
4806
+ /**
4807
+ * Check if a labelExpression directly references a single attribute.
4808
+ * Returns the attribute name only when the displayed value can be written back
4809
+ * without reversing surrounding text, composition, or transforms — a piped
4810
+ * expression (`{{ name | UPPER }}`) cannot round-trip and returns null.
4811
+ *
4812
+ * @example
4813
+ * getSingleAttributeFromExpression("{{ name }}") // => "name"
4814
+ * getSingleAttributeFromExpression("{{ name | UPPER }}") // => null
4815
+ * getSingleAttributeFromExpression("{{ firstName }} {{ lastName }}") // => null
4816
+ */
4817
+ declare function getSingleAttributeFromExpression(template: string): string | null;
4818
+ /**
4819
+ * Resolve the attribute a manual label edit writes back to. Non-null iff the
4820
+ * expression is exactly one bare `{{ attr }}` and the attribute is a writable
4821
+ * text attribute. Single source of truth for label editability across every
4822
+ * surface.
4823
+ */
4824
+ declare function getEditableLabelAttribute(labelExpression: string, attributes: Attribute[]): Attribute | null;
4781
4825
 
4782
4826
  /**
4783
4827
  * Substitute `{{ props.X }}` tokens in a relation label using client-side props.
@@ -9025,6 +9069,17 @@ interface DomainEvent<T extends EventType = EventType> {
9025
9069
  metadata?: Record<string, unknown>;
9026
9070
  }
9027
9071
 
9072
+ /**
9073
+ * SSE event ids for the agent stream endpoint. Sequences restart at 1 per
9074
+ * streamId (one stream per turn), so the resumable identity is the pair —
9075
+ * a bare sequence is meaningless across turns.
9076
+ */
9077
+ declare function formatAgentStreamFrameId(streamId: string, sequence: number): string;
9078
+ declare function parseAgentStreamFrameId(value: string): {
9079
+ streamId: string;
9080
+ sequence: number;
9081
+ } | null;
9082
+
9028
9083
  declare const AGENT_UI_BATCH_MAX_BYTES = 204800;
9029
9084
  declare const AGENT_UI_BATCH_MAX_ITEMS = 256;
9030
9085
  type AgentUIMessageBatchItem<TChunk = unknown> = {
@@ -9243,6 +9298,24 @@ declare function normalizeFilterRule<T extends {
9243
9298
  */
9244
9299
  declare function canonicalizeFilterValue(rule: FilterRule, effectiveType: AttributeType): void;
9245
9300
 
9301
+ /** Execution context used to resolve dynamic filter tokens into concrete seed values. */
9302
+ type CreateDefaultsContext = {
9303
+ userId?: string;
9304
+ now: Date;
9305
+ timezone: string;
9306
+ };
9307
+ /**
9308
+ * Derive deterministic create defaults from a view's filter state.
9309
+ *
9310
+ * Only equality rules under an AND combinator can pin a single value a new
9311
+ * record can be born with: `is` with a non-null scalar, and `any_of` with
9312
+ * exactly one element. Dynamic tokens (`@me`, `@today`, `@now`) seed their
9313
+ * resolved value when `ctx` allows; without `ctx` they seed nothing.
9314
+ * Edge-property rules, unknown attributes, and every other operator seed
9315
+ * nothing. The first rule on an attribute wins.
9316
+ */
9317
+ declare function deriveCreateDefaultsFromFilters(state: FilterState, attributes: Attribute[], ctx?: CreateDefaultsContext): Record<string, unknown>;
9318
+
9246
9319
  /**
9247
9320
  * Half-open UTC millisecond range `[startMs, endMs)` aligned to whole UTC days —
9248
9321
  * the window of an `is_within` rule, or the single day of a plain date rule.
@@ -11106,6 +11179,30 @@ declare const customDataChunkSchemas: {
11106
11179
  }, z$1.core.$strict>>;
11107
11180
  relaxableByAuto: z$1.ZodOptional<z$1.ZodBoolean>;
11108
11181
  }, z$1.core.$strict>;
11182
+ readonly "session-state": z$1.ZodObject<{
11183
+ state: z$1.ZodObject<{
11184
+ phase: z$1.ZodEnum<{
11185
+ terminal: "terminal";
11186
+ running: "running";
11187
+ queued: "queued";
11188
+ parked: "parked";
11189
+ }>;
11190
+ parkedOn: z$1.ZodOptional<z$1.ZodEnum<{
11191
+ human: "human";
11192
+ agents: "agents";
11193
+ }>>;
11194
+ humanRequestIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
11195
+ outcome: z$1.ZodOptional<z$1.ZodEnum<{
11196
+ completed: "completed";
11197
+ expired: "expired";
11198
+ failed: "failed";
11199
+ cancelled: "cancelled";
11200
+ timeout: "timeout";
11201
+ }>>;
11202
+ }, z$1.core.$strict>;
11203
+ version: z$1.ZodNumber;
11204
+ updatedAt: z$1.ZodString;
11205
+ }, z$1.core.$strict>;
11109
11206
  };
11110
11207
  type AgentUIDataName = keyof typeof customDataChunkSchemas;
11111
11208
  declare function isAgentUIDataName(value: string): value is AgentUIDataName;
@@ -11129,4 +11226,4 @@ type AgentUIDataChunk = {
11129
11226
  declare function assertCustomAgentUIMessageChunk(value: unknown): AgentUIDataChunk;
11130
11227
  declare function agentDataChunk<K extends keyof AgentUIDataTypes & string>(name: K, data: AgentUIDataTypes[K], options?: AgentDataChunkOptions): AgentUIDataChunk;
11131
11228
 
11132
- 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 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 AgentUIDataChunk, type AgentUIDataName, type AgentUIDataTypes, type AgentUIMessageBatch, type AgentUIMessageBatchItem, type AgentUsageView, type AgentWorkMode, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type ApprovalMode, type ArchitectChange, type ArchitectDraftSnapshot, type ArchitectDraftUpdatedLiveEvent, type ArchitectImpact, type ArchitectNavigation, type ArchitectPresentation, type AssignActorRoleInput, type AssignRoleInput, type AttachmentPartData, 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, BYTE_UNIT_LABELS, type BaseOperation, BilateralConfig, type BoundingBox, 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 CompactionPartData, 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 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, DRAFTABLE_ATTRIBUTE_TYPES, 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 ErrorPartData, 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 InterruptionPartData, 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_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, type NativeAgentUIPartIds, type NativeAgentUIPartIdsMetadata, NoopGeocodingAdapter, type Notification, type NotificationArchiveAllResult, type NotificationCountPatchLiveEvent, type NotificationCounts, type NotificationCreatedLiveEvent, type NotificationInboxArchivedLiveEvent, 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, OBJECT_NAME_SCHEMA, 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, UPDATE_TABLE_TAB_CHANGE_KEYS, UPDATE_TAB_CHANGE_KEYS, UPDATE_TAB_CONFIG_CHANGE_KEYS, 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 ViewOrigin, type ViewProjectionStaleLiveEvent, type ViewStateEntry, type ViewStateResolution, type ViewSyncPayload, ViewType, type WithCustomAttributes, type WithCustomRecordAttributes, type WithoutSystemFields, accessLevelToActions, actionsToAccessLevel, agent, agentDataChunk, agentDisplayName, agentMessageAttachmentSchema, agentMessagePartSchema, agentSessionMessageSchema, agentUIValidationError, applyOperations, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertCustomAgentUIMessageChunk, booleanFlag, buildAgentFallbackTitle, buildPermissionFlags, buildPropertySchema, buildQualifiedAttribute, canonicalizeFilterValue, checkbox, collectQualifiedRuleIssues, compareAgentSessionMessages, compileComputedFormula, compileRollupAttribute, computeByteMagnitude, conversationDisplayTitle, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, customDataChunkSchemas, date, dateInTimezone, dateValueStart, defineOperation, definePresentation, deriveArchitectChanges, deriveInitials, describeAttributeConfig, describeOperationInput, describeOperations, destructiveSchema, detailView, document, durableDateSchema, ensureFieldIds, episodeImpactOf, 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, isAgentUIDataName, 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, listDescribableNames, listView, liveChannelKey, location, makeFieldId, matchesAccepts, mentionReferenceSchema, modelDefinitionSchema, multiselect, nativeAgentUIPartIdMetadataKey, normalizeDateValue, normalizeFilterRule, normalizeForEdgeRpc, normalizeOperator, now, number, numberFlag, object, orderAgentSessionMessages, parseCountMode, parseLiveChannelKey, parseNativeAgentUIPartIdsMetadata, parseOperation, parseOptionalCountMode, parseQualifiedAttribute, persistedDefaultViewTargetSchema, persistedSchemaPlanSchema, phone, plannedAttributeSchema, plannedInlineAttributeSchema, plannedObjectSchema, presentationOf, proposedDefaultViewTargetSchema, qualifiedPropertyDefs, readFormFieldValue, registry, relation, relationPropertyDefs, renderLabelExpression, resetViewToDefault, resolveAttributeDefaultValue, resolveEffectiveFilterType, resolveFieldRequired, resolveIsWithinBounds, resolveTextPattern, resolveUtcDayBounds, richtext, rollup, rollupToFormulaExpression, schemaPlanSchema, select, sessionStateToLegacyStatus, status, stringFlag, text, toDraftableAttributes, toDraftableObject, toDraftableView, toMultiValueOperator, toUndefinedIfEmpty, toUtcDayString, today, todoItemSchema, todoPlanSchema, toolImpactSchema, user, validateAttributeName, validateLabelExpression, validateObjectName, validateQualifiedRule, validateViewName, viewRegistry, viewStateKey, viewSyncPayload };
11229
+ 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 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 AgentUIDataChunk, type AgentUIDataName, type AgentUIDataTypes, type AgentUIMessageBatch, type AgentUIMessageBatchItem, type AgentUsageView, type AgentWorkMode, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type ApprovalMode, type ArchitectChange, type ArchitectDraftSnapshot, type ArchitectDraftUpdatedLiveEvent, type ArchitectImpact, type ArchitectNavigation, type ArchitectPresentation, type AssignActorRoleInput, type AssignRoleInput, type AttachmentPartData, 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, BYTE_UNIT_LABELS, type BaseOperation, BilateralConfig, type BoundingBox, 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 CompactionPartData, 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 CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateDefaultsContext, 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, DRAFTABLE_ATTRIBUTE_TYPES, 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 ErrorPartData, 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 InterruptionPartData, 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_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, type NativeAgentUIPartIds, type NativeAgentUIPartIdsMetadata, NoopGeocodingAdapter, type Notification, type NotificationArchiveAllResult, type NotificationCountPatchLiveEvent, type NotificationCounts, type NotificationCreatedLiveEvent, type NotificationInboxArchivedLiveEvent, 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, OBJECT_NAME_SCHEMA, 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_STATE_STREAM_ID, 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, type SessionStateChunkData, 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, UPDATE_TABLE_TAB_CHANGE_KEYS, UPDATE_TAB_CHANGE_KEYS, UPDATE_TAB_CONFIG_CHANGE_KEYS, 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 ViewOrigin, type ViewProjectionStaleLiveEvent, type ViewStateEntry, type ViewStateResolution, type ViewSyncPayload, ViewType, type WithCustomAttributes, type WithCustomRecordAttributes, type WithoutSystemFields, accessLevelToActions, actionsToAccessLevel, agent, agentDataChunk, agentDisplayName, agentMessageAttachmentSchema, agentMessagePartSchema, agentSessionMessageSchema, agentUIValidationError, applyOperations, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertCustomAgentUIMessageChunk, booleanFlag, buildAgentFallbackTitle, buildPermissionFlags, buildPropertySchema, buildQualifiedAttribute, canonicalizeFilterValue, checkbox, collectQualifiedRuleIssues, compareAgentSessionMessages, compileComputedFormula, compileRollupAttribute, computeByteMagnitude, conversationDisplayTitle, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, customDataChunkSchemas, date, dateInTimezone, dateValueStart, defineOperation, definePresentation, deriveArchitectChanges, deriveCreateDefaultsFromFilters, deriveInitials, describeAttributeConfig, describeOperationInput, describeOperations, destructiveSchema, detailView, document, durableDateSchema, ensureFieldIds, episodeImpactOf, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, evaluateRecordFilterState, extractAttributeNames, extractCurrencyFilterValue, extractFilterValue, extractValueRefs, flagRegistry, focusOf, form, formFieldFlatKey, formFieldKey, formRegistry, formatAgentStreamFrameId, formatAttributeValue, formatByteSize, formatComputedResult, formatLocationValue, formula, fromDraftableView, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getEditableLabelAttribute, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRecordCreatorPrincipalId, getSingleAttributeFromExpression, getSlotFieldTargets, getSystemAttributeI18nKey, getSystemAttributeList, getUserDisplayName, group, hasDestructiveEntries, includesAction, inferRollupReturnType, isAgentUIDataName, 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, listDescribableNames, listView, liveChannelKey, location, makeFieldId, matchesAccepts, mentionReferenceSchema, modelDefinitionSchema, multiselect, nativeAgentUIPartIdMetadataKey, normalizeDateValue, normalizeFilterRule, normalizeForEdgeRpc, normalizeOperator, now, number, numberFlag, object, orderAgentSessionMessages, parseAgentStreamFrameId, parseCountMode, parseLiveChannelKey, parseNativeAgentUIPartIdsMetadata, parseOperation, parseOptionalCountMode, parseQualifiedAttribute, persistedDefaultViewTargetSchema, persistedSchemaPlanSchema, phone, plannedAttributeSchema, plannedInlineAttributeSchema, plannedObjectSchema, presentationOf, proposedDefaultViewTargetSchema, qualifiedPropertyDefs, readFormFieldValue, registry, relation, relationPropertyDefs, renderLabelExpression, resetViewToDefault, resolveAttributeDefaultValue, resolveEffectiveFilterType, resolveFieldRequired, resolveIsWithinBounds, resolveTextPattern, resolveUtcDayBounds, richtext, rollup, rollupToFormulaExpression, schemaPlanSchema, select, sessionStateToLegacyStatus, status, stringFlag, text, toDraftableAttributes, toDraftableObject, toDraftableView, toMultiValueOperator, toUndefinedIfEmpty, toUtcDayString, today, todoItemSchema, todoPlanSchema, toolImpactSchema, user, validateAttributeName, validateLabelExpression, validateObjectName, validateQualifiedRule, validateViewName, viewRegistry, viewStateKey, viewSyncPayload };
package/dist/index.d.ts CHANGED
@@ -2088,6 +2088,14 @@ interface AIAvailableModel {
2088
2088
  isCompactionModel?: boolean;
2089
2089
  /** If true, this model is used for fast utility generations (regex, formula, …) */
2090
2090
  isUtilityModel?: boolean;
2091
+ /**
2092
+ * How the UI reveals this model's streamed text. `"character"` (the default
2093
+ * when absent) paces graphemes at reading speed — right for fast models.
2094
+ * `"word"` flushes text at network rhythm and fades each new word in —
2095
+ * right for slow models whose token cadence the pacer would turn into
2096
+ * jerky bursts.
2097
+ */
2098
+ revealStyle?: "character" | "word";
2091
2099
  }
2092
2100
  /**
2093
2101
  * Tool call status during execution
@@ -2540,6 +2548,22 @@ interface AICompactionSummary {
2540
2548
  compactedAt: Date;
2541
2549
  }
2542
2550
 
2551
+ /**
2552
+ * The synthetic stream lane carrying `data-session-state` chunks. Server and
2553
+ * client must share the literal: the publisher enqueues state batches on it,
2554
+ * and the client routes it straight to the versioned session writer.
2555
+ */
2556
+ declare const SESSION_STATE_STREAM_ID = "session-state";
2557
+ /**
2558
+ * Payload of the transient `data-session-state` chunk: the complete structured
2559
+ * session state plus the SAME version envelope the Supabase patch publishes,
2560
+ * so the two channels carry identical numbers for one write.
2561
+ */
2562
+ interface SessionStateChunkData {
2563
+ state: SessionState;
2564
+ version: number;
2565
+ updatedAt: string;
2566
+ }
2543
2567
  declare const NATIVE_AGENT_UI_PART_IDS_METADATA_KEY = "__stndrdsNativeUiPartIds";
2544
2568
  declare const NATIVE_AGENT_UI_PART_IDS_METADATA_SCHEMA_VERSION: 1;
2545
2569
  type NativeAgentUIPartIds = Readonly<Record<string, string>>;
@@ -2603,6 +2627,7 @@ interface AgentUIDataTypes {
2603
2627
  impact?: ToolImpact;
2604
2628
  relaxableByAuto?: boolean;
2605
2629
  };
2630
+ "session-state": SessionStateChunkData;
2606
2631
  }
2607
2632
 
2608
2633
  /**
@@ -4778,6 +4803,25 @@ declare function isLabelExpression(value: string): boolean;
4778
4803
  * // -> ["firstName", "lastName"]
4779
4804
  */
4780
4805
  declare function extractAttributeNames(template: string): string[];
4806
+ /**
4807
+ * Check if a labelExpression directly references a single attribute.
4808
+ * Returns the attribute name only when the displayed value can be written back
4809
+ * without reversing surrounding text, composition, or transforms — a piped
4810
+ * expression (`{{ name | UPPER }}`) cannot round-trip and returns null.
4811
+ *
4812
+ * @example
4813
+ * getSingleAttributeFromExpression("{{ name }}") // => "name"
4814
+ * getSingleAttributeFromExpression("{{ name | UPPER }}") // => null
4815
+ * getSingleAttributeFromExpression("{{ firstName }} {{ lastName }}") // => null
4816
+ */
4817
+ declare function getSingleAttributeFromExpression(template: string): string | null;
4818
+ /**
4819
+ * Resolve the attribute a manual label edit writes back to. Non-null iff the
4820
+ * expression is exactly one bare `{{ attr }}` and the attribute is a writable
4821
+ * text attribute. Single source of truth for label editability across every
4822
+ * surface.
4823
+ */
4824
+ declare function getEditableLabelAttribute(labelExpression: string, attributes: Attribute[]): Attribute | null;
4781
4825
 
4782
4826
  /**
4783
4827
  * Substitute `{{ props.X }}` tokens in a relation label using client-side props.
@@ -9025,6 +9069,17 @@ interface DomainEvent<T extends EventType = EventType> {
9025
9069
  metadata?: Record<string, unknown>;
9026
9070
  }
9027
9071
 
9072
+ /**
9073
+ * SSE event ids for the agent stream endpoint. Sequences restart at 1 per
9074
+ * streamId (one stream per turn), so the resumable identity is the pair —
9075
+ * a bare sequence is meaningless across turns.
9076
+ */
9077
+ declare function formatAgentStreamFrameId(streamId: string, sequence: number): string;
9078
+ declare function parseAgentStreamFrameId(value: string): {
9079
+ streamId: string;
9080
+ sequence: number;
9081
+ } | null;
9082
+
9028
9083
  declare const AGENT_UI_BATCH_MAX_BYTES = 204800;
9029
9084
  declare const AGENT_UI_BATCH_MAX_ITEMS = 256;
9030
9085
  type AgentUIMessageBatchItem<TChunk = unknown> = {
@@ -9243,6 +9298,24 @@ declare function normalizeFilterRule<T extends {
9243
9298
  */
9244
9299
  declare function canonicalizeFilterValue(rule: FilterRule, effectiveType: AttributeType): void;
9245
9300
 
9301
+ /** Execution context used to resolve dynamic filter tokens into concrete seed values. */
9302
+ type CreateDefaultsContext = {
9303
+ userId?: string;
9304
+ now: Date;
9305
+ timezone: string;
9306
+ };
9307
+ /**
9308
+ * Derive deterministic create defaults from a view's filter state.
9309
+ *
9310
+ * Only equality rules under an AND combinator can pin a single value a new
9311
+ * record can be born with: `is` with a non-null scalar, and `any_of` with
9312
+ * exactly one element. Dynamic tokens (`@me`, `@today`, `@now`) seed their
9313
+ * resolved value when `ctx` allows; without `ctx` they seed nothing.
9314
+ * Edge-property rules, unknown attributes, and every other operator seed
9315
+ * nothing. The first rule on an attribute wins.
9316
+ */
9317
+ declare function deriveCreateDefaultsFromFilters(state: FilterState, attributes: Attribute[], ctx?: CreateDefaultsContext): Record<string, unknown>;
9318
+
9246
9319
  /**
9247
9320
  * Half-open UTC millisecond range `[startMs, endMs)` aligned to whole UTC days —
9248
9321
  * the window of an `is_within` rule, or the single day of a plain date rule.
@@ -11106,6 +11179,30 @@ declare const customDataChunkSchemas: {
11106
11179
  }, z$1.core.$strict>>;
11107
11180
  relaxableByAuto: z$1.ZodOptional<z$1.ZodBoolean>;
11108
11181
  }, z$1.core.$strict>;
11182
+ readonly "session-state": z$1.ZodObject<{
11183
+ state: z$1.ZodObject<{
11184
+ phase: z$1.ZodEnum<{
11185
+ terminal: "terminal";
11186
+ running: "running";
11187
+ queued: "queued";
11188
+ parked: "parked";
11189
+ }>;
11190
+ parkedOn: z$1.ZodOptional<z$1.ZodEnum<{
11191
+ human: "human";
11192
+ agents: "agents";
11193
+ }>>;
11194
+ humanRequestIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
11195
+ outcome: z$1.ZodOptional<z$1.ZodEnum<{
11196
+ completed: "completed";
11197
+ expired: "expired";
11198
+ failed: "failed";
11199
+ cancelled: "cancelled";
11200
+ timeout: "timeout";
11201
+ }>>;
11202
+ }, z$1.core.$strict>;
11203
+ version: z$1.ZodNumber;
11204
+ updatedAt: z$1.ZodString;
11205
+ }, z$1.core.$strict>;
11109
11206
  };
11110
11207
  type AgentUIDataName = keyof typeof customDataChunkSchemas;
11111
11208
  declare function isAgentUIDataName(value: string): value is AgentUIDataName;
@@ -11129,4 +11226,4 @@ type AgentUIDataChunk = {
11129
11226
  declare function assertCustomAgentUIMessageChunk(value: unknown): AgentUIDataChunk;
11130
11227
  declare function agentDataChunk<K extends keyof AgentUIDataTypes & string>(name: K, data: AgentUIDataTypes[K], options?: AgentDataChunkOptions): AgentUIDataChunk;
11131
11228
 
11132
- 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 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 AgentUIDataChunk, type AgentUIDataName, type AgentUIDataTypes, type AgentUIMessageBatch, type AgentUIMessageBatchItem, type AgentUsageView, type AgentWorkMode, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type ApprovalMode, type ArchitectChange, type ArchitectDraftSnapshot, type ArchitectDraftUpdatedLiveEvent, type ArchitectImpact, type ArchitectNavigation, type ArchitectPresentation, type AssignActorRoleInput, type AssignRoleInput, type AttachmentPartData, 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, BYTE_UNIT_LABELS, type BaseOperation, BilateralConfig, type BoundingBox, 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 CompactionPartData, 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 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, DRAFTABLE_ATTRIBUTE_TYPES, 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 ErrorPartData, 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 InterruptionPartData, 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_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, type NativeAgentUIPartIds, type NativeAgentUIPartIdsMetadata, NoopGeocodingAdapter, type Notification, type NotificationArchiveAllResult, type NotificationCountPatchLiveEvent, type NotificationCounts, type NotificationCreatedLiveEvent, type NotificationInboxArchivedLiveEvent, 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, OBJECT_NAME_SCHEMA, 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, UPDATE_TABLE_TAB_CHANGE_KEYS, UPDATE_TAB_CHANGE_KEYS, UPDATE_TAB_CONFIG_CHANGE_KEYS, 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 ViewOrigin, type ViewProjectionStaleLiveEvent, type ViewStateEntry, type ViewStateResolution, type ViewSyncPayload, ViewType, type WithCustomAttributes, type WithCustomRecordAttributes, type WithoutSystemFields, accessLevelToActions, actionsToAccessLevel, agent, agentDataChunk, agentDisplayName, agentMessageAttachmentSchema, agentMessagePartSchema, agentSessionMessageSchema, agentUIValidationError, applyOperations, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertCustomAgentUIMessageChunk, booleanFlag, buildAgentFallbackTitle, buildPermissionFlags, buildPropertySchema, buildQualifiedAttribute, canonicalizeFilterValue, checkbox, collectQualifiedRuleIssues, compareAgentSessionMessages, compileComputedFormula, compileRollupAttribute, computeByteMagnitude, conversationDisplayTitle, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, customDataChunkSchemas, date, dateInTimezone, dateValueStart, defineOperation, definePresentation, deriveArchitectChanges, deriveInitials, describeAttributeConfig, describeOperationInput, describeOperations, destructiveSchema, detailView, document, durableDateSchema, ensureFieldIds, episodeImpactOf, 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, isAgentUIDataName, 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, listDescribableNames, listView, liveChannelKey, location, makeFieldId, matchesAccepts, mentionReferenceSchema, modelDefinitionSchema, multiselect, nativeAgentUIPartIdMetadataKey, normalizeDateValue, normalizeFilterRule, normalizeForEdgeRpc, normalizeOperator, now, number, numberFlag, object, orderAgentSessionMessages, parseCountMode, parseLiveChannelKey, parseNativeAgentUIPartIdsMetadata, parseOperation, parseOptionalCountMode, parseQualifiedAttribute, persistedDefaultViewTargetSchema, persistedSchemaPlanSchema, phone, plannedAttributeSchema, plannedInlineAttributeSchema, plannedObjectSchema, presentationOf, proposedDefaultViewTargetSchema, qualifiedPropertyDefs, readFormFieldValue, registry, relation, relationPropertyDefs, renderLabelExpression, resetViewToDefault, resolveAttributeDefaultValue, resolveEffectiveFilterType, resolveFieldRequired, resolveIsWithinBounds, resolveTextPattern, resolveUtcDayBounds, richtext, rollup, rollupToFormulaExpression, schemaPlanSchema, select, sessionStateToLegacyStatus, status, stringFlag, text, toDraftableAttributes, toDraftableObject, toDraftableView, toMultiValueOperator, toUndefinedIfEmpty, toUtcDayString, today, todoItemSchema, todoPlanSchema, toolImpactSchema, user, validateAttributeName, validateLabelExpression, validateObjectName, validateQualifiedRule, validateViewName, viewRegistry, viewStateKey, viewSyncPayload };
11229
+ 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 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 AgentUIDataChunk, type AgentUIDataName, type AgentUIDataTypes, type AgentUIMessageBatch, type AgentUIMessageBatchItem, type AgentUsageView, type AgentWorkMode, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type ApprovalMode, type ArchitectChange, type ArchitectDraftSnapshot, type ArchitectDraftUpdatedLiveEvent, type ArchitectImpact, type ArchitectNavigation, type ArchitectPresentation, type AssignActorRoleInput, type AssignRoleInput, type AttachmentPartData, 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, BYTE_UNIT_LABELS, type BaseOperation, BilateralConfig, type BoundingBox, 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 CompactionPartData, 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 CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateDefaultsContext, 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, DRAFTABLE_ATTRIBUTE_TYPES, 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 ErrorPartData, 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 InterruptionPartData, 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_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, type NativeAgentUIPartIds, type NativeAgentUIPartIdsMetadata, NoopGeocodingAdapter, type Notification, type NotificationArchiveAllResult, type NotificationCountPatchLiveEvent, type NotificationCounts, type NotificationCreatedLiveEvent, type NotificationInboxArchivedLiveEvent, 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, OBJECT_NAME_SCHEMA, 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_STATE_STREAM_ID, 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, type SessionStateChunkData, 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, UPDATE_TABLE_TAB_CHANGE_KEYS, UPDATE_TAB_CHANGE_KEYS, UPDATE_TAB_CONFIG_CHANGE_KEYS, 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 ViewOrigin, type ViewProjectionStaleLiveEvent, type ViewStateEntry, type ViewStateResolution, type ViewSyncPayload, ViewType, type WithCustomAttributes, type WithCustomRecordAttributes, type WithoutSystemFields, accessLevelToActions, actionsToAccessLevel, agent, agentDataChunk, agentDisplayName, agentMessageAttachmentSchema, agentMessagePartSchema, agentSessionMessageSchema, agentUIValidationError, applyOperations, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertCustomAgentUIMessageChunk, booleanFlag, buildAgentFallbackTitle, buildPermissionFlags, buildPropertySchema, buildQualifiedAttribute, canonicalizeFilterValue, checkbox, collectQualifiedRuleIssues, compareAgentSessionMessages, compileComputedFormula, compileRollupAttribute, computeByteMagnitude, conversationDisplayTitle, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, customDataChunkSchemas, date, dateInTimezone, dateValueStart, defineOperation, definePresentation, deriveArchitectChanges, deriveCreateDefaultsFromFilters, deriveInitials, describeAttributeConfig, describeOperationInput, describeOperations, destructiveSchema, detailView, document, durableDateSchema, ensureFieldIds, episodeImpactOf, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, evaluateRecordFilterState, extractAttributeNames, extractCurrencyFilterValue, extractFilterValue, extractValueRefs, flagRegistry, focusOf, form, formFieldFlatKey, formFieldKey, formRegistry, formatAgentStreamFrameId, formatAttributeValue, formatByteSize, formatComputedResult, formatLocationValue, formula, fromDraftableView, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getEditableLabelAttribute, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRecordCreatorPrincipalId, getSingleAttributeFromExpression, getSlotFieldTargets, getSystemAttributeI18nKey, getSystemAttributeList, getUserDisplayName, group, hasDestructiveEntries, includesAction, inferRollupReturnType, isAgentUIDataName, 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, listDescribableNames, listView, liveChannelKey, location, makeFieldId, matchesAccepts, mentionReferenceSchema, modelDefinitionSchema, multiselect, nativeAgentUIPartIdMetadataKey, normalizeDateValue, normalizeFilterRule, normalizeForEdgeRpc, normalizeOperator, now, number, numberFlag, object, orderAgentSessionMessages, parseAgentStreamFrameId, parseCountMode, parseLiveChannelKey, parseNativeAgentUIPartIdsMetadata, parseOperation, parseOptionalCountMode, parseQualifiedAttribute, persistedDefaultViewTargetSchema, persistedSchemaPlanSchema, phone, plannedAttributeSchema, plannedInlineAttributeSchema, plannedObjectSchema, presentationOf, proposedDefaultViewTargetSchema, qualifiedPropertyDefs, readFormFieldValue, registry, relation, relationPropertyDefs, renderLabelExpression, resetViewToDefault, resolveAttributeDefaultValue, resolveEffectiveFilterType, resolveFieldRequired, resolveIsWithinBounds, resolveTextPattern, resolveUtcDayBounds, richtext, rollup, rollupToFormulaExpression, schemaPlanSchema, select, sessionStateToLegacyStatus, status, stringFlag, text, toDraftableAttributes, toDraftableObject, toDraftableView, toMultiValueOperator, toUndefinedIfEmpty, toUtcDayString, today, todoItemSchema, todoPlanSchema, toolImpactSchema, user, validateAttributeName, validateLabelExpression, validateObjectName, validateQualifiedRule, validateViewName, viewRegistry, viewStateKey, viewSyncPayload };
package/dist/index.js CHANGED
@@ -244,6 +244,7 @@ var MAX_TODO_DESCRIPTION_CHARS = 500;
244
244
  var MAX_TODO_RESULT_CHARS = 2e3;
245
245
 
246
246
  // src/types/agent-ui-data.ts
247
+ var SESSION_STATE_STREAM_ID = "session-state";
247
248
  var NATIVE_AGENT_UI_PART_IDS_METADATA_KEY = "__stndrdsNativeUiPartIds";
248
249
  var NATIVE_AGENT_UI_PART_IDS_METADATA_SCHEMA_VERSION = 1;
249
250
  var INVALID_NATIVE_PART_IDS = "Native agent UI part IDs metadata is invalid";
@@ -882,6 +883,19 @@ function extractAttributeNames(template) {
882
883
  }
883
884
  return names;
884
885
  }
886
+ var SINGLE_ATTRIBUTE_EXPRESSION = /^\{\{\s*([a-zA-Z_][a-zA-Z0-9_]*)\s*\}\}$/;
887
+ function getSingleAttributeFromExpression(template) {
888
+ const match = template.trim().match(SINGLE_ATTRIBUTE_EXPRESSION);
889
+ return match ? match[1] : null;
890
+ }
891
+ function getEditableLabelAttribute(labelExpression, attributes) {
892
+ const name = getSingleAttributeFromExpression(labelExpression);
893
+ if (name === null) return null;
894
+ const attribute = attributes.find((candidate) => candidate.name === name);
895
+ if (!attribute || attribute.type !== "text") return null;
896
+ if (chunkK7XGY34S_js.getAttributeCapabilities(attribute).authoring.readOnly) return null;
897
+ return attribute;
898
+ }
885
899
 
886
900
  // src/lib/relation-label.ts
887
901
  var PROPS_TOKEN_RE = /\{\{\s*props\./;
@@ -5225,6 +5239,19 @@ var FormRegistry = class {
5225
5239
  };
5226
5240
  var formRegistry = new FormRegistry();
5227
5241
 
5242
+ // src/realtime/agent-stream-frame-id.ts
5243
+ function formatAgentStreamFrameId(streamId, sequence) {
5244
+ return `${streamId}:${sequence}`;
5245
+ }
5246
+ function parseAgentStreamFrameId(value) {
5247
+ const separator = value.lastIndexOf(":");
5248
+ if (separator <= 0) return null;
5249
+ const streamId = value.slice(0, separator);
5250
+ const sequence = Number(value.slice(separator + 1));
5251
+ if (!Number.isInteger(sequence) || sequence <= 0) return null;
5252
+ return { streamId, sequence };
5253
+ }
5254
+
5228
5255
  // src/realtime/agent-ui-message-batch.ts
5229
5256
  var AGENT_UI_BATCH_MAX_BYTES = 204800;
5230
5257
  var AGENT_UI_BATCH_MAX_ITEMS = 256;
@@ -7168,13 +7195,6 @@ function normalizeReferenceIds(value) {
7168
7195
  return Array.isArray(value) ? value.map(normalizeOne) : normalizeOne(value);
7169
7196
  }
7170
7197
 
7171
- // src/connectors/types.ts
7172
- var CONNECTOR_CALLBACK_PARAM = {
7173
- status: "connector_status",
7174
- error: "connector_error",
7175
- provider: "connector_provider"
7176
- };
7177
-
7178
7198
  // src/utils/attribute-defaults.ts
7179
7199
  var TODAY_DEFAULT = "today";
7180
7200
  function dateInTimezone(date2, timezone) {
@@ -7192,6 +7212,53 @@ function resolveAttributeDefaultValue(attribute, ctx) {
7192
7212
  return attribute.includeTime ? ctx.now.toISOString() : dateInTimezone(ctx.now, ctx.timezone);
7193
7213
  }
7194
7214
 
7215
+ // src/filters/derive-create-defaults.ts
7216
+ function deriveCreateDefaultsFromFilters(state, attributes, ctx) {
7217
+ if (state.combinator === "or" && state.rules.length > 1) return {};
7218
+ const attributesByName = new Map(
7219
+ attributes.map((attribute) => [attribute.name, attribute])
7220
+ );
7221
+ const defaults = {};
7222
+ for (const rule of state.rules) {
7223
+ if (rule.property !== void 0) continue;
7224
+ if (Object.hasOwn(defaults, rule.attribute)) continue;
7225
+ const attribute = attributesByName.get(rule.attribute);
7226
+ if (!attribute) continue;
7227
+ const value = extractDeterministicValue(rule, ctx);
7228
+ if (value === void 0) continue;
7229
+ defaults[rule.attribute] = chunkK7XGY34S_js.getAttributeCapabilities(attribute).storage.cardinality === "many" ? [value] : value;
7230
+ }
7231
+ return defaults;
7232
+ }
7233
+ function extractDeterministicValue(rule, ctx) {
7234
+ if (rule.operator === "is") {
7235
+ if (chunkK7XGY34S_js.isDynamicValue(rule.value)) return resolveDynamicValue(rule.value, ctx);
7236
+ if (rule.value === null || Array.isArray(rule.value)) return void 0;
7237
+ return rule.value;
7238
+ }
7239
+ if (rule.operator === "any_of") {
7240
+ if (!Array.isArray(rule.value) || rule.value.length !== 1) return void 0;
7241
+ const single = rule.value[0];
7242
+ if (chunkK7XGY34S_js.isDynamicValue(single)) return resolveDynamicValue(single, ctx);
7243
+ return single;
7244
+ }
7245
+ return void 0;
7246
+ }
7247
+ function resolveDynamicValue(value, ctx) {
7248
+ if (!ctx) return void 0;
7249
+ if (value.dynamic === "actor") return ctx.userId;
7250
+ if (value.anchor === "today") return dateInTimezone(ctx.now, ctx.timezone);
7251
+ if (value.anchor === "now") return ctx.now.toISOString();
7252
+ return void 0;
7253
+ }
7254
+
7255
+ // src/connectors/types.ts
7256
+ var CONNECTOR_CALLBACK_PARAM = {
7257
+ status: "connector_status",
7258
+ error: "connector_error",
7259
+ provider: "connector_provider"
7260
+ };
7261
+
7195
7262
  // src/utils/agent-title.ts
7196
7263
  var AGENT_FALLBACK_TITLE_MAX_LENGTH = 60;
7197
7264
  var STORAGE_PLACEHOLDER_TITLE = /^Session \d+$/;
@@ -7799,6 +7866,16 @@ var customDataChunkSchemas = {
7799
7866
  toolCallId: z2.z.string(),
7800
7867
  impact: toolImpactSchema.optional(),
7801
7868
  relaxableByAuto: z2.z.boolean().optional()
7869
+ }).strict(),
7870
+ "session-state": z2.z.object({
7871
+ state: z2.z.object({
7872
+ phase: z2.z.enum(["queued", "running", "parked", "terminal"]),
7873
+ parkedOn: z2.z.enum(["human", "agents"]).optional(),
7874
+ humanRequestIds: z2.z.array(z2.z.string()).optional(),
7875
+ outcome: z2.z.enum(["completed", "failed", "cancelled", "timeout", "expired"]).optional()
7876
+ }).strict(),
7877
+ version: z2.z.number().int().positive(),
7878
+ updatedAt: z2.z.string().datetime({ offset: true })
7802
7879
  }).strict()
7803
7880
  };
7804
7881
  function isAgentUIDataName(value) {
@@ -9942,6 +10019,7 @@ exports.RECORD_CREATOR_ROOT_ACTOR_METADATA_KEY = RECORD_CREATOR_ROOT_ACTOR_METAD
9942
10019
  exports.RELATION_TARGET_ANY = RELATION_TARGET_ANY;
9943
10020
  exports.RichtextTabConfig = RichtextTabConfig;
9944
10021
  exports.SCHEMA_PLAN_LIMITS = SCHEMA_PLAN_LIMITS;
10022
+ exports.SESSION_STATE_STREAM_ID = SESSION_STATE_STREAM_ID;
9945
10023
  exports.SESSION_TERMINAL_STATUSES = SESSION_TERMINAL_STATUSES;
9946
10024
  exports.SKILL_LIST_VIEW = SKILL_LIST_VIEW;
9947
10025
  exports.SKILL_OBJECT = SKILL_OBJECT;
@@ -9996,6 +10074,7 @@ exports.dateValueStart = dateValueStart;
9996
10074
  exports.defineOperation = defineOperation;
9997
10075
  exports.definePresentation = definePresentation;
9998
10076
  exports.deriveArchitectChanges = deriveArchitectChanges;
10077
+ exports.deriveCreateDefaultsFromFilters = deriveCreateDefaultsFromFilters;
9999
10078
  exports.deriveInitials = deriveInitials;
10000
10079
  exports.describeAttributeConfig = describeAttributeConfig;
10001
10080
  exports.describeOperationInput = describeOperationInput;
@@ -10019,6 +10098,7 @@ exports.form = form;
10019
10098
  exports.formFieldFlatKey = formFieldFlatKey;
10020
10099
  exports.formFieldKey = formFieldKey;
10021
10100
  exports.formRegistry = formRegistry;
10101
+ exports.formatAgentStreamFrameId = formatAgentStreamFrameId;
10022
10102
  exports.formatAttributeValue = formatAttributeValue;
10023
10103
  exports.formatByteSize = formatByteSize;
10024
10104
  exports.formatComputedResult = formatComputedResult;
@@ -10028,9 +10108,11 @@ exports.fromDraftableView = fromDraftableView;
10028
10108
  exports.generateDefaultDetailView = generateDefaultDetailView;
10029
10109
  exports.generateDefaultListView = generateDefaultListView;
10030
10110
  exports.getActiveTab = getActiveTab;
10111
+ exports.getEditableLabelAttribute = getEditableLabelAttribute;
10031
10112
  exports.getErrorMessage = getErrorMessage;
10032
10113
  exports.getLiveProtocolPayloadChannel = getLiveProtocolPayloadChannel;
10033
10114
  exports.getRecordCreatorPrincipalId = getRecordCreatorPrincipalId;
10115
+ exports.getSingleAttributeFromExpression = getSingleAttributeFromExpression;
10034
10116
  exports.getSlotFieldTargets = getSlotFieldTargets;
10035
10117
  exports.getUserDisplayName = getUserDisplayName;
10036
10118
  exports.group = group;
@@ -10090,6 +10172,7 @@ exports.number = number;
10090
10172
  exports.numberFlag = numberFlag;
10091
10173
  exports.object = object;
10092
10174
  exports.orderAgentSessionMessages = orderAgentSessionMessages;
10175
+ exports.parseAgentStreamFrameId = parseAgentStreamFrameId;
10093
10176
  exports.parseCountMode = parseCountMode;
10094
10177
  exports.parseLiveChannelKey = parseLiveChannelKey;
10095
10178
  exports.parseNativeAgentUIPartIdsMetadata = parseNativeAgentUIPartIdsMetadata;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { canonicalStringify, generateId } from './chunk-JSQCTLV5.mjs';
2
2
  export { asTenantId, asUserId, canonicalStringify, deepEqual, generateId, indexBy } from './chunk-JSQCTLV5.mjs';
3
- import { RESERVED_ATTRIBUTE_NAMES, SYSTEM_FILTER_ATTRIBUTE_TYPES, RESERVED_OBJECT_NAMES, listViewConfigSchema, detailViewConfigSchema, detailTabDraftSchema, groupWriteSchema, fieldSlotSchema, sortsSchema, filterStateSchema, columnsSchema, tableSourceSchema, listViewTabSchema, LIST_VIEW_TAB_VISIBILITIES, filterGroupSchema, isAttributeSortable, getAttributeCapabilities, resolveIsWithinBounds, normalizeForEdgeRpc, getOperatorPolarity, extractCurrencyFilterValue, LIST_TAB_KANBAN_KEYS, LIST_TAB_TABLE_KEYS } from './chunk-RMJ75YLQ.mjs';
3
+ import { RESERVED_ATTRIBUTE_NAMES, SYSTEM_FILTER_ATTRIBUTE_TYPES, RESERVED_OBJECT_NAMES, listViewConfigSchema, detailViewConfigSchema, detailTabDraftSchema, groupWriteSchema, fieldSlotSchema, sortsSchema, filterStateSchema, columnsSchema, tableSourceSchema, listViewTabSchema, LIST_VIEW_TAB_VISIBILITIES, filterGroupSchema, isAttributeSortable, getAttributeCapabilities, resolveIsWithinBounds, normalizeForEdgeRpc, getOperatorPolarity, extractCurrencyFilterValue, isDynamicValue, LIST_TAB_KANBAN_KEYS, LIST_TAB_TABLE_KEYS } from './chunk-RMJ75YLQ.mjs';
4
4
  export { ATTRIBUTE_FILTER_OPERATORS, LIST_TAB_KANBAN_KEYS, LIST_TAB_TABLE_KEYS, LIST_VIEW_TAB_VISIBILITIES, NO_VALUE_OPERATORS, OPERATORS_BY_TYPE, REMOVED_OPERATOR_REPLACEMENTS, RESERVED_ATTRIBUTE_NAMES, RESERVED_OBJECT_NAMES, RESOURCE_VISIBILITIES, SYNONYM_ALIASES, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FIELD_NAMES, SYSTEM_FILTER_ATTRIBUTE_TYPES, canonicalizeFilterValue, collectQualifiedRuleIssues, columnsSchema, currentActor, detailTabDraftSchema, detailTabSchema, detailViewConfigSchema, extractCurrencyFilterValue, extractFilterValue, fieldSchema, fieldShape, fieldSlotSchema, filterGroupSchema, filterStateSchema, getAttributeCapabilities, getAttributeFilterOperators, getOperatorPolarity, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, groupWriteSchema, inverseSourceSchema, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isDynamicValue, isManagedSystemAttribute, isNoValueOperator, isRelativeDateValue, isSetMembershipOperator, listViewConfigSchema, listViewTabSchema, normalizeFilterRule, normalizeForEdgeRpc, normalizeOperator, now, parseResourceVisibility, parseViewConfig, relationSourceSchema, resolveEffectiveFilterType, resolveIsWithinBounds, resolveUtcDayBounds, sortsSchema, tableSourceSchema, toMultiValueOperator, toUtcDayString, today, validateQualifiedRule, viewConfigByTypeSchema, viewTypeSchema } from './chunk-RMJ75YLQ.mjs';
5
5
  import { createObjectValidator, createAttributeValidator, validateAttribute, isNullishOrEmptyString } from './chunk-KLDZHAGX.mjs';
6
6
  export { createFormAttributeValidator, isNullishOrEmptyString, isValuePresent, rejectUnknownAttributesOrThrow, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-KLDZHAGX.mjs';
@@ -243,6 +243,7 @@ var MAX_TODO_DESCRIPTION_CHARS = 500;
243
243
  var MAX_TODO_RESULT_CHARS = 2e3;
244
244
 
245
245
  // src/types/agent-ui-data.ts
246
+ var SESSION_STATE_STREAM_ID = "session-state";
246
247
  var NATIVE_AGENT_UI_PART_IDS_METADATA_KEY = "__stndrdsNativeUiPartIds";
247
248
  var NATIVE_AGENT_UI_PART_IDS_METADATA_SCHEMA_VERSION = 1;
248
249
  var INVALID_NATIVE_PART_IDS = "Native agent UI part IDs metadata is invalid";
@@ -881,6 +882,19 @@ function extractAttributeNames(template) {
881
882
  }
882
883
  return names;
883
884
  }
885
+ var SINGLE_ATTRIBUTE_EXPRESSION = /^\{\{\s*([a-zA-Z_][a-zA-Z0-9_]*)\s*\}\}$/;
886
+ function getSingleAttributeFromExpression(template) {
887
+ const match = template.trim().match(SINGLE_ATTRIBUTE_EXPRESSION);
888
+ return match ? match[1] : null;
889
+ }
890
+ function getEditableLabelAttribute(labelExpression, attributes) {
891
+ const name = getSingleAttributeFromExpression(labelExpression);
892
+ if (name === null) return null;
893
+ const attribute = attributes.find((candidate) => candidate.name === name);
894
+ if (!attribute || attribute.type !== "text") return null;
895
+ if (getAttributeCapabilities(attribute).authoring.readOnly) return null;
896
+ return attribute;
897
+ }
884
898
 
885
899
  // src/lib/relation-label.ts
886
900
  var PROPS_TOKEN_RE = /\{\{\s*props\./;
@@ -5224,6 +5238,19 @@ var FormRegistry = class {
5224
5238
  };
5225
5239
  var formRegistry = new FormRegistry();
5226
5240
 
5241
+ // src/realtime/agent-stream-frame-id.ts
5242
+ function formatAgentStreamFrameId(streamId, sequence) {
5243
+ return `${streamId}:${sequence}`;
5244
+ }
5245
+ function parseAgentStreamFrameId(value) {
5246
+ const separator = value.lastIndexOf(":");
5247
+ if (separator <= 0) return null;
5248
+ const streamId = value.slice(0, separator);
5249
+ const sequence = Number(value.slice(separator + 1));
5250
+ if (!Number.isInteger(sequence) || sequence <= 0) return null;
5251
+ return { streamId, sequence };
5252
+ }
5253
+
5227
5254
  // src/realtime/agent-ui-message-batch.ts
5228
5255
  var AGENT_UI_BATCH_MAX_BYTES = 204800;
5229
5256
  var AGENT_UI_BATCH_MAX_ITEMS = 256;
@@ -7167,13 +7194,6 @@ function normalizeReferenceIds(value) {
7167
7194
  return Array.isArray(value) ? value.map(normalizeOne) : normalizeOne(value);
7168
7195
  }
7169
7196
 
7170
- // src/connectors/types.ts
7171
- var CONNECTOR_CALLBACK_PARAM = {
7172
- status: "connector_status",
7173
- error: "connector_error",
7174
- provider: "connector_provider"
7175
- };
7176
-
7177
7197
  // src/utils/attribute-defaults.ts
7178
7198
  var TODAY_DEFAULT = "today";
7179
7199
  function dateInTimezone(date2, timezone) {
@@ -7191,6 +7211,53 @@ function resolveAttributeDefaultValue(attribute, ctx) {
7191
7211
  return attribute.includeTime ? ctx.now.toISOString() : dateInTimezone(ctx.now, ctx.timezone);
7192
7212
  }
7193
7213
 
7214
+ // src/filters/derive-create-defaults.ts
7215
+ function deriveCreateDefaultsFromFilters(state, attributes, ctx) {
7216
+ if (state.combinator === "or" && state.rules.length > 1) return {};
7217
+ const attributesByName = new Map(
7218
+ attributes.map((attribute) => [attribute.name, attribute])
7219
+ );
7220
+ const defaults = {};
7221
+ for (const rule of state.rules) {
7222
+ if (rule.property !== void 0) continue;
7223
+ if (Object.hasOwn(defaults, rule.attribute)) continue;
7224
+ const attribute = attributesByName.get(rule.attribute);
7225
+ if (!attribute) continue;
7226
+ const value = extractDeterministicValue(rule, ctx);
7227
+ if (value === void 0) continue;
7228
+ defaults[rule.attribute] = getAttributeCapabilities(attribute).storage.cardinality === "many" ? [value] : value;
7229
+ }
7230
+ return defaults;
7231
+ }
7232
+ function extractDeterministicValue(rule, ctx) {
7233
+ if (rule.operator === "is") {
7234
+ if (isDynamicValue(rule.value)) return resolveDynamicValue(rule.value, ctx);
7235
+ if (rule.value === null || Array.isArray(rule.value)) return void 0;
7236
+ return rule.value;
7237
+ }
7238
+ if (rule.operator === "any_of") {
7239
+ if (!Array.isArray(rule.value) || rule.value.length !== 1) return void 0;
7240
+ const single = rule.value[0];
7241
+ if (isDynamicValue(single)) return resolveDynamicValue(single, ctx);
7242
+ return single;
7243
+ }
7244
+ return void 0;
7245
+ }
7246
+ function resolveDynamicValue(value, ctx) {
7247
+ if (!ctx) return void 0;
7248
+ if (value.dynamic === "actor") return ctx.userId;
7249
+ if (value.anchor === "today") return dateInTimezone(ctx.now, ctx.timezone);
7250
+ if (value.anchor === "now") return ctx.now.toISOString();
7251
+ return void 0;
7252
+ }
7253
+
7254
+ // src/connectors/types.ts
7255
+ var CONNECTOR_CALLBACK_PARAM = {
7256
+ status: "connector_status",
7257
+ error: "connector_error",
7258
+ provider: "connector_provider"
7259
+ };
7260
+
7194
7261
  // src/utils/agent-title.ts
7195
7262
  var AGENT_FALLBACK_TITLE_MAX_LENGTH = 60;
7196
7263
  var STORAGE_PLACEHOLDER_TITLE = /^Session \d+$/;
@@ -7798,6 +7865,16 @@ var customDataChunkSchemas = {
7798
7865
  toolCallId: z.string(),
7799
7866
  impact: toolImpactSchema.optional(),
7800
7867
  relaxableByAuto: z.boolean().optional()
7868
+ }).strict(),
7869
+ "session-state": z.object({
7870
+ state: z.object({
7871
+ phase: z.enum(["queued", "running", "parked", "terminal"]),
7872
+ parkedOn: z.enum(["human", "agents"]).optional(),
7873
+ humanRequestIds: z.array(z.string()).optional(),
7874
+ outcome: z.enum(["completed", "failed", "cancelled", "timeout", "expired"]).optional()
7875
+ }).strict(),
7876
+ version: z.number().int().positive(),
7877
+ updatedAt: z.string().datetime({ offset: true })
7801
7878
  }).strict()
7802
7879
  };
7803
7880
  function isAgentUIDataName(value) {
@@ -9305,4 +9382,4 @@ function fromDraftableView(original, drafted) {
9305
9382
  };
9306
9383
  }
9307
9384
 
9308
- export { AGENT_UI_BATCH_MAX_BYTES, AGENT_UI_BATCH_MAX_ITEMS, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_OPERATION_TYPES, ALL_SYSTEM_RESOURCES, ATTRIBUTE_TYPES, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, ActivityTabConfig, AgentBuilder, BEHAVIOR_PROPERTIES, BYTE_UNIT_LABELS, CLAIMABLE_SESSION_STATUSES, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, CONNECTOR_CALLBACK_PARAM, COUNT_MODES, ComputedFormulaCompileError, CustomTabConfig, 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, DRAFTABLE_ATTRIBUTE_TYPES, DRIVE_LIST_VIEW, DRIVE_OBJECT, DRIVE_OBJECT_NAME, DRIVE_VIEW, DetailViewBuilder, DocumentsTabConfig, EMPTY_VALUE_PLACEHOLDER, ESTIMATED_COUNT_CAP, EmailsTabConfig, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FlagRegistry, FlagService, FormBuilder, FormRegistry, FormRowBuilder, FormStepBuilder, GroupBuilder, IDENTITY_PROPERTIES, LIVE_EVENT_TYPES, ListViewBuilder, ListViewTabConfigBuilder, MAX_PRESET_DEPTH, MAX_TODOS, MAX_TODO_DESCRIPTION_CHARS, MAX_TODO_ID_CHARS, MAX_TODO_RESULT_CHARS, MEMORY_LIST_VIEW, MEMORY_OBJECT, MEMORY_VIEW, MeetingsTabConfig, 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_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NoopGeocodingAdapter, OBJECT_NAME_SCHEMA, OPEN_TOOL_PART_STATES, OPERATION_REGISTRY, OPERATOR_SPECS, ObjectBuilder, PRESENTATION_PROPERTIES, QUALIFIED_SEPARATOR, RECORD_CREATOR_ROOT_ACTOR_METADATA_KEY, RELATION_TARGET_ANY, RichtextTabConfig, SCHEMA_PLAN_LIMITS, SESSION_TERMINAL_STATUSES, SKILL_LIST_VIEW, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, TODAY_DEFAULT, TODO_PLAN_STATUSES, TODO_STATUSES, TOOL_APPROVAL_STATES, TabBuilder, TableTabConfig, UPDATE_TABLE_TAB_CHANGE_KEYS, UPDATE_TAB_CHANGE_KEYS, UPDATE_TAB_CONFIG_CHANGE_KEYS, USER_STATUSES, USER_WORK_POSTURES, accessLevelToActions, actionsToAccessLevel, agent, agentDataChunk, agentDisplayName, agentMessageAttachmentSchema, agentMessagePartSchema, agentSessionMessageSchema, agentUIValidationError, applyOperations, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertCustomAgentUIMessageChunk, booleanFlag, buildAgentFallbackTitle, buildPermissionFlags, buildPropertySchema, buildQualifiedAttribute, checkbox, compareAgentSessionMessages, compileComputedFormula, compileRollupAttribute, computeByteMagnitude, conversationDisplayTitle, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, customDataChunkSchemas, date, dateInTimezone, dateValueStart, defineOperation, definePresentation, deriveArchitectChanges, deriveInitials, describeAttributeConfig, describeOperationInput, describeOperations, destructiveSchema, detailView, document, durableDateSchema, ensureFieldIds, episodeImpactOf, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, evaluateRecordFilterState, extractAttributeNames, extractValueRefs, flagRegistry, focusOf, form, formFieldFlatKey, formFieldKey, formRegistry, formatAttributeValue, formatByteSize, formatComputedResult, formatLocationValue, formula, fromDraftableView, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getLiveProtocolPayloadChannel, getRecordCreatorPrincipalId, getSlotFieldTargets, getUserDisplayName, group, hasDestructiveEntries, hasOptions, includesAction, inferInverseCardinality, inferRollupReturnType, isAgentUIDataName, isAgentUIMessageBatch, isAttributeSortable2 as isAttributeSortable, isBilateralRelation, isCheckboxEquality, isClaimableSessionStatus, isComputedFunctionName, isDateRangeValue, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isNotEmpty, isOpenToolPartState, isPlainRecord2 as isPlainRecord, isStandardSchema, isTerminalSessionStatus, isTerminalState, isToolApprovalState, isUniversalRelation, jsonFlag, legacyStatusToSessionState, listDescribableNames, listView, liveChannelKey, location, makeFieldId, matchesAccepts, mentionReferenceSchema, modelDefinitionSchema, multiselect, nativeAgentUIPartIdMetadataKey, normalizeDateValue, number, numberFlag, object, orderAgentSessionMessages, parseCountMode, parseLiveChannelKey, parseNativeAgentUIPartIdsMetadata, parseOperation, parseOptionalCountMode, parseQualifiedAttribute, persistedDefaultViewTargetSchema, persistedSchemaPlanSchema, phone, plannedAttributeSchema, plannedInlineAttributeSchema, plannedObjectSchema, presentationOf, proposedDefaultViewTargetSchema, qualifiedPropertyDefs, readFormFieldValue, registry, relation, relationPropertyDefs, renderLabelExpression, resetViewToDefault, resolveAttributeDefaultValue, resolveFieldRequired, resolvePropertyDefinitions, richtext, rollup, rollupToFormulaExpression, schemaPlanSchema, select, sessionStateToLegacyStatus, status, stringFlag, text, toDraftableAttributes, toDraftableObject, toDraftableView, toUndefinedIfEmpty, todoItemSchema, todoPlanSchema, toolImpactSchema, user, validateAttributeName, validateLabelExpression, validateObjectName, validateViewName, viewRegistry, viewStateKey, viewSyncPayload };
9385
+ export { AGENT_UI_BATCH_MAX_BYTES, AGENT_UI_BATCH_MAX_ITEMS, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_OPERATION_TYPES, ALL_SYSTEM_RESOURCES, ATTRIBUTE_TYPES, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, ActivityTabConfig, AgentBuilder, BEHAVIOR_PROPERTIES, BYTE_UNIT_LABELS, CLAIMABLE_SESSION_STATUSES, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, CONNECTOR_CALLBACK_PARAM, COUNT_MODES, ComputedFormulaCompileError, CustomTabConfig, 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, DRAFTABLE_ATTRIBUTE_TYPES, DRIVE_LIST_VIEW, DRIVE_OBJECT, DRIVE_OBJECT_NAME, DRIVE_VIEW, DetailViewBuilder, DocumentsTabConfig, EMPTY_VALUE_PLACEHOLDER, ESTIMATED_COUNT_CAP, EmailsTabConfig, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FlagRegistry, FlagService, FormBuilder, FormRegistry, FormRowBuilder, FormStepBuilder, GroupBuilder, IDENTITY_PROPERTIES, LIVE_EVENT_TYPES, ListViewBuilder, ListViewTabConfigBuilder, MAX_PRESET_DEPTH, MAX_TODOS, MAX_TODO_DESCRIPTION_CHARS, MAX_TODO_ID_CHARS, MAX_TODO_RESULT_CHARS, MEMORY_LIST_VIEW, MEMORY_OBJECT, MEMORY_VIEW, MeetingsTabConfig, 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_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NoopGeocodingAdapter, OBJECT_NAME_SCHEMA, OPEN_TOOL_PART_STATES, OPERATION_REGISTRY, OPERATOR_SPECS, ObjectBuilder, PRESENTATION_PROPERTIES, QUALIFIED_SEPARATOR, RECORD_CREATOR_ROOT_ACTOR_METADATA_KEY, RELATION_TARGET_ANY, RichtextTabConfig, SCHEMA_PLAN_LIMITS, SESSION_STATE_STREAM_ID, SESSION_TERMINAL_STATUSES, SKILL_LIST_VIEW, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, TODAY_DEFAULT, TODO_PLAN_STATUSES, TODO_STATUSES, TOOL_APPROVAL_STATES, TabBuilder, TableTabConfig, UPDATE_TABLE_TAB_CHANGE_KEYS, UPDATE_TAB_CHANGE_KEYS, UPDATE_TAB_CONFIG_CHANGE_KEYS, USER_STATUSES, USER_WORK_POSTURES, accessLevelToActions, actionsToAccessLevel, agent, agentDataChunk, agentDisplayName, agentMessageAttachmentSchema, agentMessagePartSchema, agentSessionMessageSchema, agentUIValidationError, applyOperations, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertCustomAgentUIMessageChunk, booleanFlag, buildAgentFallbackTitle, buildPermissionFlags, buildPropertySchema, buildQualifiedAttribute, checkbox, compareAgentSessionMessages, compileComputedFormula, compileRollupAttribute, computeByteMagnitude, conversationDisplayTitle, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, customDataChunkSchemas, date, dateInTimezone, dateValueStart, defineOperation, definePresentation, deriveArchitectChanges, deriveCreateDefaultsFromFilters, deriveInitials, describeAttributeConfig, describeOperationInput, describeOperations, destructiveSchema, detailView, document, durableDateSchema, ensureFieldIds, episodeImpactOf, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, evaluateRecordFilterState, extractAttributeNames, extractValueRefs, flagRegistry, focusOf, form, formFieldFlatKey, formFieldKey, formRegistry, formatAgentStreamFrameId, formatAttributeValue, formatByteSize, formatComputedResult, formatLocationValue, formula, fromDraftableView, generateDefaultDetailView, generateDefaultListView, getActiveTab, getEditableLabelAttribute, getErrorMessage, getLiveProtocolPayloadChannel, getRecordCreatorPrincipalId, getSingleAttributeFromExpression, getSlotFieldTargets, getUserDisplayName, group, hasDestructiveEntries, hasOptions, includesAction, inferInverseCardinality, inferRollupReturnType, isAgentUIDataName, isAgentUIMessageBatch, isAttributeSortable2 as isAttributeSortable, isBilateralRelation, isCheckboxEquality, isClaimableSessionStatus, isComputedFunctionName, isDateRangeValue, isDefaultRole, isDetailView, isDocumentAttribute, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isNotEmpty, isOpenToolPartState, isPlainRecord2 as isPlainRecord, isStandardSchema, isTerminalSessionStatus, isTerminalState, isToolApprovalState, isUniversalRelation, jsonFlag, legacyStatusToSessionState, listDescribableNames, listView, liveChannelKey, location, makeFieldId, matchesAccepts, mentionReferenceSchema, modelDefinitionSchema, multiselect, nativeAgentUIPartIdMetadataKey, normalizeDateValue, number, numberFlag, object, orderAgentSessionMessages, parseAgentStreamFrameId, parseCountMode, parseLiveChannelKey, parseNativeAgentUIPartIdsMetadata, parseOperation, parseOptionalCountMode, parseQualifiedAttribute, persistedDefaultViewTargetSchema, persistedSchemaPlanSchema, phone, plannedAttributeSchema, plannedInlineAttributeSchema, plannedObjectSchema, presentationOf, proposedDefaultViewTargetSchema, qualifiedPropertyDefs, readFormFieldValue, registry, relation, relationPropertyDefs, renderLabelExpression, resetViewToDefault, resolveAttributeDefaultValue, resolveFieldRequired, resolvePropertyDefinitions, richtext, rollup, rollupToFormulaExpression, schemaPlanSchema, select, sessionStateToLegacyStatus, status, stringFlag, text, toDraftableAttributes, toDraftableObject, toDraftableView, toUndefinedIfEmpty, todoItemSchema, todoPlanSchema, toolImpactSchema, user, validateAttributeName, validateLabelExpression, validateObjectName, validateViewName, viewRegistry, viewStateKey, viewSyncPayload };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stndrds/schema",
3
- "version": "1.0.0-alpha.288",
3
+ "version": "1.0.0-alpha.291",
4
4
  "description": "Standard schema definitions and utilities",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -125,7 +125,7 @@
125
125
  "@standard-schema/spec": "^1.1.0",
126
126
  "libphonenumber-js": "^1.12.31",
127
127
  "zod": "^4.2.1",
128
- "@stndrds/constants": "1.0.0-alpha.288"
128
+ "@stndrds/constants": "1.0.0-alpha.291"
129
129
  },
130
130
  "devDependencies": {
131
131
  "@types/node": "^25.0.3",