@stndrds/schema 1.0.0-alpha.258 → 1.0.0-alpha.259
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/{chunk-7VSOCVN7.mjs → chunk-54WDPQ6R.mjs} +2 -0
- package/dist/{chunk-44EVNHSR.js → chunk-TS3PJOMZ.js} +2 -0
- package/dist/index.d.mts +321 -28
- package/dist/index.d.ts +321 -28
- package/dist/index.js +327 -163
- package/dist/index.mjs +243 -84
- package/dist/validation/all.js +7 -7
- package/dist/validation/all.mjs +1 -1
- package/dist/validation/object/index.js +13 -13
- package/dist/validation/object/index.mjs +1 -1
- package/package.json +2 -2
|
@@ -190,6 +190,8 @@ var SchemaErrorCode = {
|
|
|
190
190
|
AGENT_COMPACTION_IMPOSSIBLE: "AGENT_COMPACTION_IMPOSSIBLE",
|
|
191
191
|
AGENT_COMPACTION_TIMEOUT: "AGENT_COMPACTION_TIMEOUT",
|
|
192
192
|
AGENT_LEASE_HELD: "AGENT_LEASE_HELD",
|
|
193
|
+
AGENT_MISSION_CONFLICT: "AGENT_MISSION_CONFLICT",
|
|
194
|
+
AGENT_MISSION_INCOMPLETE: "AGENT_MISSION_INCOMPLETE",
|
|
193
195
|
// AI / LLM
|
|
194
196
|
AI_UNKNOWN: "AI_UNKNOWN",
|
|
195
197
|
AI_USAGE_LIMIT_EXCEEDED: "AI_USAGE_LIMIT_EXCEEDED",
|
|
@@ -192,6 +192,8 @@ var SchemaErrorCode = {
|
|
|
192
192
|
AGENT_COMPACTION_IMPOSSIBLE: "AGENT_COMPACTION_IMPOSSIBLE",
|
|
193
193
|
AGENT_COMPACTION_TIMEOUT: "AGENT_COMPACTION_TIMEOUT",
|
|
194
194
|
AGENT_LEASE_HELD: "AGENT_LEASE_HELD",
|
|
195
|
+
AGENT_MISSION_CONFLICT: "AGENT_MISSION_CONFLICT",
|
|
196
|
+
AGENT_MISSION_INCOMPLETE: "AGENT_MISSION_INCOMPLETE",
|
|
195
197
|
// AI / LLM
|
|
196
198
|
AI_UNKNOWN: "AI_UNKNOWN",
|
|
197
199
|
AI_USAGE_LIMIT_EXCEEDED: "AI_USAGE_LIMIT_EXCEEDED",
|
package/dist/index.d.mts
CHANGED
|
@@ -640,8 +640,6 @@ interface BaseViewDefinition {
|
|
|
640
640
|
default?: boolean;
|
|
641
641
|
/** Extensible metadata */
|
|
642
642
|
metadata?: Record<string, unknown>;
|
|
643
|
-
/** Current schema version of this view definition */
|
|
644
|
-
schema_version: number;
|
|
645
643
|
}
|
|
646
644
|
/**
|
|
647
645
|
* Detail view definition
|
|
@@ -959,8 +957,12 @@ interface DBView extends Timestamps {
|
|
|
959
957
|
/** Default view for this object+type combination */
|
|
960
958
|
default: boolean;
|
|
961
959
|
metadata?: Record<string, unknown>;
|
|
962
|
-
/**
|
|
963
|
-
|
|
960
|
+
/**
|
|
961
|
+
* Content hash of the view config the DB row was last known to match
|
|
962
|
+
* (content-hash sync baseline). `null` until a sync has established one.
|
|
963
|
+
* Replaces the integer `schema_version` migration-tracking field.
|
|
964
|
+
*/
|
|
965
|
+
baseline_hash: string | null;
|
|
964
966
|
}
|
|
965
967
|
/**
|
|
966
968
|
* Data for creating a new view.
|
|
@@ -977,7 +979,7 @@ interface CreateDBView {
|
|
|
977
979
|
config: ViewConfig;
|
|
978
980
|
default?: boolean;
|
|
979
981
|
metadata?: Record<string, unknown>;
|
|
980
|
-
|
|
982
|
+
baseline_hash?: string | null;
|
|
981
983
|
}
|
|
982
984
|
/**
|
|
983
985
|
* Data for updating a view.
|
|
@@ -989,7 +991,7 @@ interface UpdateDBView {
|
|
|
989
991
|
config?: ViewConfig;
|
|
990
992
|
default?: boolean;
|
|
991
993
|
metadata?: Record<string, unknown>;
|
|
992
|
-
|
|
994
|
+
baseline_hash?: string | null;
|
|
993
995
|
}
|
|
994
996
|
/**
|
|
995
997
|
* Data for upserting a view (used by registry seeding).
|
|
@@ -1005,7 +1007,7 @@ interface UpsertDBView {
|
|
|
1005
1007
|
config: ViewConfig;
|
|
1006
1008
|
default?: boolean;
|
|
1007
1009
|
metadata?: Record<string, unknown>;
|
|
1008
|
-
|
|
1010
|
+
baseline_hash?: string | null;
|
|
1009
1011
|
}
|
|
1010
1012
|
/**
|
|
1011
1013
|
* View overlay as stored in database
|
|
@@ -1040,6 +1042,24 @@ interface UpdateDBViewOverlay {
|
|
|
1040
1042
|
configOverrides?: ConfigOverrides;
|
|
1041
1043
|
isUserDefault?: boolean;
|
|
1042
1044
|
}
|
|
1045
|
+
/**
|
|
1046
|
+
* An operational ack recording that a developer explicitly accepted
|
|
1047
|
+
* overwriting a drifted view. Pinned to the exact `(view_id, code_hash,
|
|
1048
|
+
* db_hash)` triple so the same drift never re-prompts once resolved.
|
|
1049
|
+
*
|
|
1050
|
+
* Row shape intentionally mirrors the raw DB columns (snake_case) — this is
|
|
1051
|
+
* an operational record, not a mapped domain entity. The typed repository
|
|
1052
|
+
* for this table arrives separately; this type is the shared contract.
|
|
1053
|
+
*/
|
|
1054
|
+
interface DBViewSyncResolution {
|
|
1055
|
+
id: Uuid;
|
|
1056
|
+
tenant_id: Uuid;
|
|
1057
|
+
view_id: Uuid;
|
|
1058
|
+
code_hash: string;
|
|
1059
|
+
db_hash: string;
|
|
1060
|
+
resolved_by: Uuid;
|
|
1061
|
+
created_at: string;
|
|
1062
|
+
}
|
|
1043
1063
|
|
|
1044
1064
|
/**
|
|
1045
1065
|
* OCR Adapter Interface for extracting text from documents.
|
|
@@ -2064,6 +2084,9 @@ type CompactionStrategy = "no-op" | "summary" | "truncation";
|
|
|
2064
2084
|
type AgentRunStatus = "pending" | "running" | "completed" | "failed" | "cancelled" | "paused";
|
|
2065
2085
|
type AgentSessionStatus = "active" | "idle" | "completed" | "failed" | "cancelled" | "waiting_human" | "waiting_agents" | "timeout" | "expired";
|
|
2066
2086
|
type AgentSessionMode = "interactive" | "autonomous";
|
|
2087
|
+
type AgentMissionPolicy = "off" | "observe" | "enforce";
|
|
2088
|
+
type AgentMissionStatus = "active" | "verifying" | "completed" | "needs_review" | "abandoned";
|
|
2089
|
+
type AgentTodoPlanStatus = "active" | "completed" | "promoted" | "abandoned";
|
|
2067
2090
|
type TriggerEventType = "record.created" | "record.updated" | "record.deleted" | "form.submitted" | "agent.completed" | "webhook" | "schedule";
|
|
2068
2091
|
type AgentTriggerType = Extract<TriggerEventType, "record.created" | "record.updated" | "record.deleted">;
|
|
2069
2092
|
type ProviderName = "anthropic" | "openai" | "google" | "mistral";
|
|
@@ -2097,10 +2120,12 @@ interface AgentConfig {
|
|
|
2097
2120
|
model: ModelDefinition;
|
|
2098
2121
|
tools?: string[];
|
|
2099
2122
|
timeoutMs?: number;
|
|
2123
|
+
costLimitUsd?: number | null;
|
|
2100
2124
|
canDelegate: boolean;
|
|
2101
2125
|
maxDepth: number;
|
|
2102
2126
|
maxTreeCostUsd?: number;
|
|
2103
2127
|
critic?: CriticConfig;
|
|
2128
|
+
missionPolicy?: AgentMissionPolicy;
|
|
2104
2129
|
}
|
|
2105
2130
|
interface CriticConfig {
|
|
2106
2131
|
enabled: boolean;
|
|
@@ -2140,12 +2165,142 @@ interface AgentSchedule {
|
|
|
2140
2165
|
input?: Record<string, unknown>;
|
|
2141
2166
|
inputBuilder?: string;
|
|
2142
2167
|
}
|
|
2168
|
+
/**
|
|
2169
|
+
* Declarative trigger carried by an {@link AgentBlueprint}. The boot sync
|
|
2170
|
+
* reconciles the agent's AgentTriggerDefinition rows to match, using `name`
|
|
2171
|
+
* as the stable identity.
|
|
2172
|
+
*/
|
|
2173
|
+
interface AgentTriggerBlueprint {
|
|
2174
|
+
name: string;
|
|
2175
|
+
eventType: TriggerEventType;
|
|
2176
|
+
objectId?: string;
|
|
2177
|
+
watchedFields?: string[];
|
|
2178
|
+
formDefinitionId?: string;
|
|
2179
|
+
sourceAgentId?: string;
|
|
2180
|
+
webhookPath?: string;
|
|
2181
|
+
cronExpression?: string;
|
|
2182
|
+
timezone?: string;
|
|
2183
|
+
filter?: FilterState;
|
|
2184
|
+
inputBuilder?: string;
|
|
2185
|
+
debounceMs?: number;
|
|
2186
|
+
enabled: boolean;
|
|
2187
|
+
}
|
|
2188
|
+
/**
|
|
2189
|
+
* Code-declared agent definition produced by the `agent()` builder.
|
|
2190
|
+
* Contains everything an AgentDefinition needs except runtime-assigned
|
|
2191
|
+
* fields (id, tenantId, createdBy, timestamps). `system: true` blueprints
|
|
2192
|
+
* are seeded/reconciled at boot and immutable through the public API.
|
|
2193
|
+
*/
|
|
2194
|
+
interface AgentBlueprint {
|
|
2195
|
+
name: string;
|
|
2196
|
+
icon?: string;
|
|
2197
|
+
description?: string;
|
|
2198
|
+
systemPrompt: string;
|
|
2199
|
+
model: ModelDefinition;
|
|
2200
|
+
tools?: string[];
|
|
2201
|
+
schedule?: AgentSchedule;
|
|
2202
|
+
config: AgentExecutionConfig;
|
|
2203
|
+
canDelegate?: boolean;
|
|
2204
|
+
maxDepth?: number;
|
|
2205
|
+
maxTreeCostUsd?: number;
|
|
2206
|
+
system: boolean;
|
|
2207
|
+
triggers: AgentTriggerBlueprint[];
|
|
2208
|
+
}
|
|
2143
2209
|
interface AgentMessageAttachment {
|
|
2144
2210
|
id: string;
|
|
2145
2211
|
name: string;
|
|
2146
2212
|
mimeType: string;
|
|
2147
2213
|
size: number;
|
|
2148
2214
|
}
|
|
2215
|
+
interface AgentMissionArtifact {
|
|
2216
|
+
path: string;
|
|
2217
|
+
description: string;
|
|
2218
|
+
mediaType?: string;
|
|
2219
|
+
}
|
|
2220
|
+
interface AgentMissionRubricCriterion {
|
|
2221
|
+
id: string;
|
|
2222
|
+
description: string;
|
|
2223
|
+
}
|
|
2224
|
+
interface AgentMissionRubric {
|
|
2225
|
+
criteria: AgentMissionRubricCriterion[];
|
|
2226
|
+
createdAt: string;
|
|
2227
|
+
}
|
|
2228
|
+
interface AgentMissionVerification {
|
|
2229
|
+
cycle: number;
|
|
2230
|
+
attempts: number;
|
|
2231
|
+
maxAttempts: number;
|
|
2232
|
+
lastVerdict?: "pass" | "fail";
|
|
2233
|
+
lastFeedback?: string;
|
|
2234
|
+
missingCriteria?: string[];
|
|
2235
|
+
lastEvidenceHash?: string;
|
|
2236
|
+
pendingEvidenceHash?: string;
|
|
2237
|
+
lastAttemptAt?: string;
|
|
2238
|
+
verifierCostUsd?: number;
|
|
2239
|
+
verifierInputTokens?: number;
|
|
2240
|
+
verifierOutputTokens?: number;
|
|
2241
|
+
}
|
|
2242
|
+
interface AgentMission {
|
|
2243
|
+
id: string;
|
|
2244
|
+
tenantId: string;
|
|
2245
|
+
sessionId: string;
|
|
2246
|
+
activationMessageId?: string;
|
|
2247
|
+
status: AgentMissionStatus;
|
|
2248
|
+
objective: string;
|
|
2249
|
+
todos: AITodoItem[];
|
|
2250
|
+
artifacts: AgentMissionArtifact[];
|
|
2251
|
+
rubric?: AgentMissionRubric;
|
|
2252
|
+
verification: AgentMissionVerification;
|
|
2253
|
+
version: number;
|
|
2254
|
+
createdBy?: string;
|
|
2255
|
+
createdAt: Date;
|
|
2256
|
+
updatedAt: Date;
|
|
2257
|
+
completedAt?: Date;
|
|
2258
|
+
}
|
|
2259
|
+
/** UI-safe mission lifecycle snapshot returned by REST and realtime surfaces. */
|
|
2260
|
+
interface AgentMissionView {
|
|
2261
|
+
id: string;
|
|
2262
|
+
sessionId: string;
|
|
2263
|
+
status: AgentMissionStatus;
|
|
2264
|
+
objective: string;
|
|
2265
|
+
todos: AITodoItem[];
|
|
2266
|
+
artifacts: AgentMissionArtifact[];
|
|
2267
|
+
verification: Pick<AgentMissionVerification, "cycle" | "attempts" | "maxAttempts" | "lastVerdict" | "lastFeedback" | "missingCriteria" | "lastAttemptAt">;
|
|
2268
|
+
version: number;
|
|
2269
|
+
createdAt: string;
|
|
2270
|
+
updatedAt: string;
|
|
2271
|
+
completedAt?: string;
|
|
2272
|
+
}
|
|
2273
|
+
interface AgentMissionPage {
|
|
2274
|
+
items: AgentMissionView[];
|
|
2275
|
+
nextCursor?: string;
|
|
2276
|
+
}
|
|
2277
|
+
/** A lightweight, pre-mission todo plan scoped to one agent session. */
|
|
2278
|
+
interface AgentTodoPlan {
|
|
2279
|
+
id: string;
|
|
2280
|
+
tenantId: string;
|
|
2281
|
+
sessionId: string;
|
|
2282
|
+
activationMessageId?: string;
|
|
2283
|
+
status: AgentTodoPlanStatus;
|
|
2284
|
+
todos: AITodoItem[];
|
|
2285
|
+
version: number;
|
|
2286
|
+
createdBy?: string;
|
|
2287
|
+
createdAt: Date;
|
|
2288
|
+
updatedAt: Date;
|
|
2289
|
+
completedAt?: Date;
|
|
2290
|
+
promotedMissionId?: string;
|
|
2291
|
+
}
|
|
2292
|
+
/** UI-safe todo plan lifecycle snapshot returned by REST and realtime surfaces. */
|
|
2293
|
+
interface AgentTodoPlanView {
|
|
2294
|
+
id: string;
|
|
2295
|
+
sessionId: string;
|
|
2296
|
+
status: AgentTodoPlanStatus;
|
|
2297
|
+
todos: AITodoItem[];
|
|
2298
|
+
version: number;
|
|
2299
|
+
createdAt: string;
|
|
2300
|
+
updatedAt: string;
|
|
2301
|
+
completedAt?: string;
|
|
2302
|
+
promotedMissionId?: string;
|
|
2303
|
+
}
|
|
2149
2304
|
interface AgentDefinition {
|
|
2150
2305
|
id: string;
|
|
2151
2306
|
tenantId: string;
|
|
@@ -2157,6 +2312,8 @@ interface AgentDefinition {
|
|
|
2157
2312
|
tools?: string[];
|
|
2158
2313
|
schedule?: AgentSchedule;
|
|
2159
2314
|
config: AgentExecutionConfig;
|
|
2315
|
+
/** Code-declared (immutable via public API); reconciled by the boot sync. */
|
|
2316
|
+
system: boolean;
|
|
2160
2317
|
createdBy: string;
|
|
2161
2318
|
createdAt: Date;
|
|
2162
2319
|
updatedAt: Date;
|
|
@@ -2165,6 +2322,7 @@ interface AgentDefinition {
|
|
|
2165
2322
|
maxDepth?: number;
|
|
2166
2323
|
maxTreeCostUsd?: number;
|
|
2167
2324
|
critic?: CriticConfig;
|
|
2325
|
+
missionPolicy?: AgentMissionPolicy;
|
|
2168
2326
|
autoDecide?: boolean;
|
|
2169
2327
|
fileIds?: string[];
|
|
2170
2328
|
attachments?: File[];
|
|
@@ -2242,6 +2400,10 @@ type AgentMessagePart = {
|
|
|
2242
2400
|
} | {
|
|
2243
2401
|
type: "reasoning";
|
|
2244
2402
|
text: string;
|
|
2403
|
+
} | {
|
|
2404
|
+
type: "error";
|
|
2405
|
+
error: string;
|
|
2406
|
+
errorClass?: string;
|
|
2245
2407
|
} | {
|
|
2246
2408
|
type: "tool";
|
|
2247
2409
|
toolCallId: string;
|
|
@@ -2855,6 +3017,8 @@ declare const SchemaErrorCode: {
|
|
|
2855
3017
|
readonly AGENT_COMPACTION_IMPOSSIBLE: "AGENT_COMPACTION_IMPOSSIBLE";
|
|
2856
3018
|
readonly AGENT_COMPACTION_TIMEOUT: "AGENT_COMPACTION_TIMEOUT";
|
|
2857
3019
|
readonly AGENT_LEASE_HELD: "AGENT_LEASE_HELD";
|
|
3020
|
+
readonly AGENT_MISSION_CONFLICT: "AGENT_MISSION_CONFLICT";
|
|
3021
|
+
readonly AGENT_MISSION_INCOMPLETE: "AGENT_MISSION_INCOMPLETE";
|
|
2858
3022
|
readonly AI_UNKNOWN: "AI_UNKNOWN";
|
|
2859
3023
|
readonly AI_USAGE_LIMIT_EXCEEDED: "AI_USAGE_LIMIT_EXCEEDED";
|
|
2860
3024
|
readonly AI_INVALID_USAGE: "AI_INVALID_USAGE";
|
|
@@ -4335,6 +4499,16 @@ interface StreamEventMessageUpdated {
|
|
|
4335
4499
|
type: "message_updated";
|
|
4336
4500
|
message: AgentSessionMessage;
|
|
4337
4501
|
}
|
|
4502
|
+
/** A committed, UI-safe mission lifecycle snapshot. */
|
|
4503
|
+
interface StreamEventMissionUpdate {
|
|
4504
|
+
type: "mission_update";
|
|
4505
|
+
mission: AgentMissionView;
|
|
4506
|
+
}
|
|
4507
|
+
/** A committed, UI-safe lightweight todo plan lifecycle snapshot. */
|
|
4508
|
+
interface StreamEventTodoPlanUpdate {
|
|
4509
|
+
type: "todo_plan_update";
|
|
4510
|
+
plan: AgentTodoPlanView;
|
|
4511
|
+
}
|
|
4338
4512
|
interface StreamEventCompactionStart {
|
|
4339
4513
|
type: "compaction_start";
|
|
4340
4514
|
reason: "preflight_threshold" | "overflow_recovery";
|
|
@@ -4736,6 +4910,81 @@ declare const DEFAULT_ROLE_PERMISSIONS: Record<DefaultRoleName, DefaultRolePermi
|
|
|
4736
4910
|
*/
|
|
4737
4911
|
declare function isDefaultRole(roleName: string): roleName is DefaultRoleName;
|
|
4738
4912
|
|
|
4913
|
+
/** Configuration for the `agent()` builder factory. */
|
|
4914
|
+
interface AgentBuilderConfig {
|
|
4915
|
+
/** Technical name — stable identity used by the boot sync to match DB rows. */
|
|
4916
|
+
name: string;
|
|
4917
|
+
}
|
|
4918
|
+
/** Mirrors the API-side create default (CreateDefinitionDto). */
|
|
4919
|
+
declare const DEFAULT_AGENT_EXECUTION_CONFIG: AgentExecutionConfig;
|
|
4920
|
+
type TriggerOptions = Omit<AgentTriggerBlueprint, "name" | "eventType" | "enabled"> & {
|
|
4921
|
+
enabled?: boolean;
|
|
4922
|
+
};
|
|
4923
|
+
/**
|
|
4924
|
+
* Fluent builder for code-declared agent definitions, mirroring the
|
|
4925
|
+
* `object()` builder conventions: `system: true` by default, `.runtime()`
|
|
4926
|
+
* as the test/seed escape hatch.
|
|
4927
|
+
*
|
|
4928
|
+
* @example
|
|
4929
|
+
* ```typescript
|
|
4930
|
+
* const CRM_ASSISTANT = agent({ name: "crm-assistant" })
|
|
4931
|
+
* .description("Answers CRM questions")
|
|
4932
|
+
* .systemPrompt("You are the CRM assistant…")
|
|
4933
|
+
* .model("anthropic", "claude-sonnet-5")
|
|
4934
|
+
* .build();
|
|
4935
|
+
* ```
|
|
4936
|
+
*/
|
|
4937
|
+
declare class AgentBuilder {
|
|
4938
|
+
private readonly bp;
|
|
4939
|
+
constructor(config: AgentBuilderConfig);
|
|
4940
|
+
description(value: string): this;
|
|
4941
|
+
icon(value: string): this;
|
|
4942
|
+
systemPrompt(value: string): this;
|
|
4943
|
+
model(provider: ProviderName, model: string, options?: Pick<ModelDefinition, "maxTokens" | "contextWindow">): this;
|
|
4944
|
+
tools(names: string[]): this;
|
|
4945
|
+
/** Cron schedule; `enabled` defaults to true. */
|
|
4946
|
+
schedule(value: Omit<AgentSchedule, "enabled"> & {
|
|
4947
|
+
enabled?: boolean;
|
|
4948
|
+
}): this;
|
|
4949
|
+
/**
|
|
4950
|
+
* Partial execution config, shallow-merged over the current config
|
|
4951
|
+
* (defaulting to {@link DEFAULT_AGENT_EXECUTION_CONFIG} on the first call).
|
|
4952
|
+
*
|
|
4953
|
+
* The merge is shallow at the top level only: passing a partial
|
|
4954
|
+
* `retryPolicy` REPLACES the whole `retryPolicy` object rather than
|
|
4955
|
+
* merging its individual fields. Pass a complete `retryPolicy` if you
|
|
4956
|
+
* only want to override one of its fields.
|
|
4957
|
+
*/
|
|
4958
|
+
config(value: Partial<AgentExecutionConfig>): this;
|
|
4959
|
+
delegation(value: {
|
|
4960
|
+
canDelegate?: boolean;
|
|
4961
|
+
maxDepth?: number;
|
|
4962
|
+
maxTreeCostUsd?: number;
|
|
4963
|
+
}): this;
|
|
4964
|
+
/**
|
|
4965
|
+
* Declare a trigger. `name` is the stable identity the boot sync uses to
|
|
4966
|
+
* reconcile trigger rows; `enabled` defaults to true.
|
|
4967
|
+
*/
|
|
4968
|
+
trigger(name: string, eventType: TriggerEventType, options?: TriggerOptions): this;
|
|
4969
|
+
/**
|
|
4970
|
+
* Marks this agent as runtime-only (system: false).
|
|
4971
|
+
*
|
|
4972
|
+
* ⚠️ ADVANCED USE ONLY. In production, agents declared in code are
|
|
4973
|
+
* automatically system:true (immutable at runtime). Use .runtime() ONLY for:
|
|
4974
|
+
* - Test fixtures (`*.test.ts`, `tests/`)
|
|
4975
|
+
* - Seed data (`seeds/`)
|
|
4976
|
+
* - Dev fixtures (`fixtures/`)
|
|
4977
|
+
*
|
|
4978
|
+
* Calling .runtime() in production code creates an agent that:
|
|
4979
|
+
* - Can be modified or deleted by end users via the admin UI
|
|
4980
|
+
* - Will be picked up by `standards diff` as runtime drift
|
|
4981
|
+
*/
|
|
4982
|
+
runtime(): this;
|
|
4983
|
+
build(): AgentBlueprint;
|
|
4984
|
+
}
|
|
4985
|
+
/** Create a fluent agent builder. */
|
|
4986
|
+
declare function agent(config: AgentBuilderConfig): AgentBuilder;
|
|
4987
|
+
|
|
4739
4988
|
/**
|
|
4740
4989
|
* Builder config with literal name type preservation
|
|
4741
4990
|
*/
|
|
@@ -6169,12 +6418,19 @@ declare class TableTabConfig {
|
|
|
6169
6418
|
*/
|
|
6170
6419
|
columns(...names: string[]): this;
|
|
6171
6420
|
/**
|
|
6172
|
-
* Allow creating new records
|
|
6421
|
+
* Allow creating new records.
|
|
6422
|
+
*
|
|
6423
|
+
* @param options.mode - Creation behavior when clicking "+": "redirect"
|
|
6424
|
+
* (navigate to detail), "inline" (empty row), or "peek" (instant-create a
|
|
6425
|
+
* draft and open it in the record stack side panel).
|
|
6426
|
+
* @example .create() or .create({ mode: "peek" })
|
|
6173
6427
|
*/
|
|
6174
|
-
create(
|
|
6428
|
+
create(options?: {
|
|
6429
|
+
mode?: CreateMode;
|
|
6430
|
+
}): this;
|
|
6175
6431
|
/**
|
|
6176
6432
|
* Set creation behavior when clicking "+"
|
|
6177
|
-
* @
|
|
6433
|
+
* @deprecated Use `create({ mode })` instead.
|
|
6178
6434
|
* @example .createMode("inline") or .createMode("peek")
|
|
6179
6435
|
*/
|
|
6180
6436
|
createMode(mode: CreateMode): this;
|
|
@@ -6187,7 +6443,8 @@ declare class TableTabConfig {
|
|
|
6187
6443
|
*/
|
|
6188
6444
|
delete(): this;
|
|
6189
6445
|
/**
|
|
6190
|
-
*
|
|
6446
|
+
* Sugar for `create().edit().delete()`. Prefer the explicit methods —
|
|
6447
|
+
* creation options live on `create({ mode })`.
|
|
6191
6448
|
*/
|
|
6192
6449
|
crud(): this;
|
|
6193
6450
|
/**
|
|
@@ -6499,7 +6756,6 @@ declare class TabBuilder {
|
|
|
6499
6756
|
*/
|
|
6500
6757
|
declare class DetailViewBuilder {
|
|
6501
6758
|
private data;
|
|
6502
|
-
private _version;
|
|
6503
6759
|
/**
|
|
6504
6760
|
* Drizzle-style static type inference property.
|
|
6505
6761
|
* Provides direct access to inferred types without utility type imports.
|
|
@@ -6544,13 +6800,6 @@ declare class DetailViewBuilder {
|
|
|
6544
6800
|
* Set metadata
|
|
6545
6801
|
*/
|
|
6546
6802
|
metadata(value: Record<string, unknown>): this;
|
|
6547
|
-
/**
|
|
6548
|
-
* Set the schema version for this view definition.
|
|
6549
|
-
* Increment when making breaking changes to force client updates.
|
|
6550
|
-
* @param v - Version number (must be >= 1)
|
|
6551
|
-
* @default 1
|
|
6552
|
-
*/
|
|
6553
|
-
version(v: number): this;
|
|
6554
6803
|
/**
|
|
6555
6804
|
* Configure a side panel with flat attribute fields displayed alongside tab content.
|
|
6556
6805
|
*
|
|
@@ -6648,7 +6897,6 @@ interface ListViewTabData {
|
|
|
6648
6897
|
*/
|
|
6649
6898
|
declare class ListViewBuilder {
|
|
6650
6899
|
private data;
|
|
6651
|
-
private _version;
|
|
6652
6900
|
/**
|
|
6653
6901
|
* Drizzle-style static type inference property.
|
|
6654
6902
|
* Provides direct access to inferred types without utility type imports.
|
|
@@ -6693,13 +6941,6 @@ declare class ListViewBuilder {
|
|
|
6693
6941
|
* Set metadata
|
|
6694
6942
|
*/
|
|
6695
6943
|
metadata(value: Record<string, unknown>): this;
|
|
6696
|
-
/**
|
|
6697
|
-
* Set the schema version for this view definition.
|
|
6698
|
-
* Increment when making breaking changes to force client updates.
|
|
6699
|
-
* @param v - Version number (must be >= 1)
|
|
6700
|
-
* @default 1
|
|
6701
|
-
*/
|
|
6702
|
-
version(v: number): this;
|
|
6703
6944
|
/**
|
|
6704
6945
|
* Set base filters applied to ALL tabs (scoping, tenant, etc.)
|
|
6705
6946
|
* @example .baseFilter({ combinator: "and", rules: [{ attribute: "tenant", operator: "is", value: "acme" }] })
|
|
@@ -7864,6 +8105,10 @@ interface EventDataMap {
|
|
|
7864
8105
|
rootSessionId: string;
|
|
7865
8106
|
status: "completed" | "failed" | "cancelled" | "timeout" | "expired";
|
|
7866
8107
|
mode: "interactive" | "autonomous";
|
|
8108
|
+
/** Durable identity of this exact terminal transition. */
|
|
8109
|
+
completionOccurrenceId: string;
|
|
8110
|
+
/** Exact assistant message persisted by this turn, when one exists. */
|
|
8111
|
+
childMessageId?: string;
|
|
7867
8112
|
};
|
|
7868
8113
|
}
|
|
7869
8114
|
/**
|
|
@@ -8190,6 +8435,8 @@ interface ConnectionView {
|
|
|
8190
8435
|
provider: ConnectorProviderId;
|
|
8191
8436
|
/** null = tenant/shared connection, set = user/private connection. */
|
|
8192
8437
|
ownerActorId: string | null;
|
|
8438
|
+
/** Non-null ⇒ shared-mailbox connection attached to that parent connection. */
|
|
8439
|
+
parentConnectionId: string | null;
|
|
8193
8440
|
externalAccountId: string;
|
|
8194
8441
|
status: ConnectionStatusId;
|
|
8195
8442
|
lastSyncedAt: string | null;
|
|
@@ -8208,6 +8455,13 @@ interface StartConnectorAuthInput {
|
|
|
8208
8455
|
interface StartConnectorAuthResult {
|
|
8209
8456
|
authorizeUrl: string;
|
|
8210
8457
|
}
|
|
8458
|
+
/** Input to attach a Microsoft shared mailbox to an existing Outlook connection. */
|
|
8459
|
+
interface AddSharedMailboxInput {
|
|
8460
|
+
/** Shared mailbox SMTP address (e.g. contact@company.com). */
|
|
8461
|
+
address: string;
|
|
8462
|
+
/** Visibility of the synced emails: tenant (default UX) or only the adding actor. */
|
|
8463
|
+
scope: ConnectorScope;
|
|
8464
|
+
}
|
|
8211
8465
|
/** Query params the OAuth callback redirect appends to the return URL. */
|
|
8212
8466
|
declare const CONNECTOR_CALLBACK_PARAM: {
|
|
8213
8467
|
readonly status: "connector_status";
|
|
@@ -8298,4 +8552,43 @@ interface MailboxThreadDetail {
|
|
|
8298
8552
|
emails: MailboxEmail[];
|
|
8299
8553
|
}
|
|
8300
8554
|
|
|
8301
|
-
export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AIChatNotification, type AICompactionSummary, type AIGenerationInputMap, type AIGenerationResult, type AIGenerationType, type AIGenerationUsage, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AISubagentStatus, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, AccessDeniedError, type AccessLevel, type Action, type ActivityTab, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AdvancedFilterState, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentMessageAttachment, type AgentMessagePart, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionPatchLiveEvent, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type AgentUnreadPatchLiveEvent, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, type AttributeGroupField, AttributeInUseError, type AttributeLifecycleCapabilities, AttributeNotFoundError, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, AutofillConfig, type AutofillGenerationInput, type AutofillTargetSpec, BEHAVIOR_PROPERTIES, BROWSER_PREVIEW_STATUSES, BilateralConfig, type BoundingBox, type BrowserPreviewDescriptor, type BrowserPreviewStatus, type BrowserPreviewUpdatedLiveEvent, type BuilderConfig, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, CONNECTOR_CALLBACK_PARAM, ChangeTypeNotSupportedError, type ChannelRevokedLiveEvent, CheckboxAttribute, 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, ConcurrentModificationError, type ConfigOverrides, type ConnectionStatus, type ConnectionStatusId, type ConnectionView, type ConnectorCallbackStatusValue, type ConnectorProviderId, type ConnectorScope, type ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateDocument, type CreateDocumentLink, type CreateFile, type CreateMode, type CreateNotificationInput, type CreateNotificationRecipientInput, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CurrencyFilterValue, type CustomAttributeValue, type CustomTab, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, DB_COLUMN_FIELDS, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, DateRangeValue, type DefaultRoleName, type DeletedMode, DestructiveSyncNotAllowedError, DetailViewBuilder, type DetailViewConfig, type DetailViewDefinition, type Document, DocumentAttribute, type DocumentFile, type DocumentKind, DocumentLayout, type DocumentListOptions, type DocumentWithFiles, type DocumentWithSubCount, type DocumentsTab, DocumentsTabConfig, type DomainEvent, DuplicateError, type DynamicValue, type DynamicValueResolver, EMPTY_VALUE_PLACEHOLDER, type Eager, type EdgeQuantifier, type EffectivePermissions, type EmailAttachmentMeta, type EmailDirection, type EmailParticipantRef, type EmailParticipantRole, type EmailProvider, type EmailVisibility, type EmailsTab, EmailsTabConfig, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtendedFilterRule, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, type Field, type FieldGroup, type FieldHistoryEntry, type File, type FileListOptions, type FileOcrStatus, type FilterCombinator, type FilterGroup, type FilterOperator, type FilterRule, type FilterState, type FilterValue, type FlagLevel, type FlagOverride, FlagRegistry, FlagService, type FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormDensity, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTab, type FormTextRow, type FormsTab, FormulaAttribute, type FormulaGenerationAttribute, type FormulaGenerationInput, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, type InverseSource, type InviteUserInput, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, type ListOptions, ListViewBuilder, type ListViewConfig, type ListViewDefinition, type ListViewLayout, type ListViewTab, ListViewTabConfigBuilder, type LiveChannel, type LiveChannelKind, type LiveErrorPayload, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveGapPayload, type LiveNotification, type LiveNotificationRecipient, type LiveNotificationRecipientPatch, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MEMORY_LIST_VIEW, MEMORY_OBJECT, MEMORY_VIEW, type MailboxAccount, type MailboxCursor, type MailboxEmail, type MailboxListResponse, type MailboxQuery, type MailboxReadState, type MailboxThread, type MailboxThreadDetail, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, NotFoundError, NotImplementedError, type Notification, type NotificationCountPatchLiveEvent, type NotificationCounts, type NotificationCreatedLiveEvent, type NotificationInboxState, type NotificationKind, type NotificationListParams, type NotificationListResult, type NotificationPriority, type NotificationRecipient, type NotificationRecipientPatchLiveEvent, type NotificationSensitivity, type NotificationSubject, type NotificationType, type NotificationV1Type, type NotificationWithRecipient, type NotificationWorkState, NumberAttribute, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, type ObjectConfig, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, OrphanSystemAttributeError, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type Permission, type PermissionScope, Phone, PhoneAttribute, type PhoneFilterValue, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, type QueryState, type ReasoningPartData, type RecordAgentEvent, type RecordDeletedLiveEvent, type RecordDocuments, type RecordFieldPatch, type RecordMetadata, RecordNotFoundError, type RecordPatchLiveEvent, type RecordReference, RecordReferencedError, type RegexGenerationInput, RelationAttribute, type RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, type RelationSource, RelationTarget, type RelativeDateValue, RepositoryError, type RepositoryOperation, type ResolutionContext, type ResolvedFlag, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, type RichtextTab, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, SKILL_LIST_VIEW, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SchemaError, SchemaErrorCode, SchemaOperation, SearchBackendError, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, type StandardSchemaIssue, type StandardSchemaResult, type StartConnectorAuthInput, type StartConnectorAuthResult, type StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, type StreamEventMessageUpdated, type StreamEventUsage, SyncCascadeError, SyncConflictError, SyncError, type SystemAttribute, type SystemAttributeI18nKey, SystemEntityImmutableError, type SystemFields, type SystemPermissions, type SystemResource, type Tab, TabBuilder, type TabType, type TableSource, type TableTab, TableTabConfig, TenantId, type TenantSettings, TextAttribute, type TextPartData, type ThinkingPartData, TimeFormat, Timestamps, type ToolPartData, type ToolPartErrorCode, type ToolPartState, type TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateDocument, type UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserLike, type UserProfile, UserReferenceType, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, type ValueRef, type ViewConfig, type ViewDefinition, type ViewOverlay, type ViewProjectionStaleLiveEvent, type ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, dateValueStart, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, extractValueRefs, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators, getSlotFieldTargets, getSystemAttributeI18nKey, getSystemAttributeList, getUserDisplayName, group, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeInUseError, isAttributeKanbanGroupable, isAttributeSearchable, isComputedFunctionName, isDateRangeValue, isDefaultRole, isDetailView, isDocumentAttribute, isDynamicValue, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isManagedSystemAttribute, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normalizeDateValue, normalizeForEdgeRpc, now, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toMultiValueOperator, toUndefinedIfEmpty, today, user, validateAttributeName, validateQualifiedRule, viewRegistry };
|
|
8555
|
+
/**
|
|
8556
|
+
* Serializes a value into deterministic JSON: object keys are sorted
|
|
8557
|
+
* recursively, array order is preserved, `undefined` object entries are
|
|
8558
|
+
* omitted, and no whitespace is emitted.
|
|
8559
|
+
*
|
|
8560
|
+
* This is the single canonicalization used to hash view (and future schema)
|
|
8561
|
+
* definitions across the runtime boot seed, the server, and the CLI — the
|
|
8562
|
+
* output must stay byte-identical for equivalent inputs regardless of key
|
|
8563
|
+
* insertion order or jsonb storage round-trips.
|
|
8564
|
+
*
|
|
8565
|
+
* @throws {ValidationError} On circular references or unsupported value types
|
|
8566
|
+
* (functions, symbols, bigint).
|
|
8567
|
+
*/
|
|
8568
|
+
declare function canonicalStringify(value: unknown): string;
|
|
8569
|
+
|
|
8570
|
+
/**
|
|
8571
|
+
* The subset of a view definition that participates in sync hashing.
|
|
8572
|
+
*
|
|
8573
|
+
* Deliberately excludes `id`, `name`, `object`, and `type` —
|
|
8574
|
+
* those are identity/routing fields, not content. `undefined` is normalized to
|
|
8575
|
+
* `null`/`false` so the hash stays stable across jsonb storage round-trips
|
|
8576
|
+
* (Postgres jsonb drops both key order and `undefined` keys — see PR #1244).
|
|
8577
|
+
*/
|
|
8578
|
+
interface ViewSyncPayload {
|
|
8579
|
+
label: string;
|
|
8580
|
+
description: string | null;
|
|
8581
|
+
icon: string | null;
|
|
8582
|
+
config: ViewConfig;
|
|
8583
|
+
default: boolean;
|
|
8584
|
+
metadata: Record<string, unknown> | null;
|
|
8585
|
+
}
|
|
8586
|
+
/**
|
|
8587
|
+
* Projects a view definition into its canonical sync payload.
|
|
8588
|
+
*
|
|
8589
|
+
* Pass the result to `canonicalStringify` to get the deterministic string
|
|
8590
|
+
* used for content-hash view sync.
|
|
8591
|
+
*/
|
|
8592
|
+
declare function viewSyncPayload(view: ViewDefinition): ViewSyncPayload;
|
|
8593
|
+
|
|
8594
|
+
export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AIChatNotification, type AICompactionSummary, type AIGenerationInputMap, type AIGenerationResult, type AIGenerationType, type AIGenerationUsage, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AISubagentStatus, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, AccessDeniedError, type AccessLevel, type Action, type ActivityTab, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AddSharedMailboxInput, type AdvancedFilterState, type AgentBlueprint, AgentBuilder, type AgentBuilderConfig, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentMessageAttachment, type AgentMessagePart, type AgentMission, type AgentMissionArtifact, type AgentMissionPage, type AgentMissionPolicy, type AgentMissionRubric, type AgentMissionRubricCriterion, type AgentMissionStatus, type AgentMissionVerification, type AgentMissionView, 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 AgentUnreadPatchLiveEvent, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, type AttributeGroupField, AttributeInUseError, type AttributeLifecycleCapabilities, AttributeNotFoundError, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, AutofillConfig, type AutofillGenerationInput, type AutofillTargetSpec, BEHAVIOR_PROPERTIES, BROWSER_PREVIEW_STATUSES, BilateralConfig, type BoundingBox, type BrowserPreviewDescriptor, type BrowserPreviewStatus, type BrowserPreviewUpdatedLiveEvent, type BuilderConfig, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, CONNECTOR_CALLBACK_PARAM, ChangeTypeNotSupportedError, type ChannelRevokedLiveEvent, CheckboxAttribute, 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, ConcurrentModificationError, type ConfigOverrides, type ConnectionStatus, type ConnectionStatusId, type ConnectionView, type ConnectorCallbackStatusValue, type ConnectorProviderId, type ConnectorScope, type ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateDocument, type CreateDocumentLink, type CreateFile, type CreateMode, type CreateNotificationInput, type CreateNotificationRecipientInput, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CurrencyFilterValue, type CustomAttributeValue, type CustomTab, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, type DBViewSyncResolution, DB_COLUMN_FIELDS, DEFAULT_AGENT_EXECUTION_CONFIG, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, DateRangeValue, type DefaultRoleName, type DeletedMode, DestructiveSyncNotAllowedError, DetailViewBuilder, type DetailViewConfig, type DetailViewDefinition, type Document, DocumentAttribute, type DocumentFile, type DocumentKind, DocumentLayout, type DocumentListOptions, type DocumentWithFiles, type DocumentWithSubCount, type DocumentsTab, DocumentsTabConfig, type DomainEvent, DuplicateError, type DynamicValue, type DynamicValueResolver, EMPTY_VALUE_PLACEHOLDER, type Eager, type EdgeQuantifier, type EffectivePermissions, type EmailAttachmentMeta, type EmailDirection, type EmailParticipantRef, type EmailParticipantRole, type EmailProvider, type EmailVisibility, type EmailsTab, EmailsTabConfig, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtendedFilterRule, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, type Field, type FieldGroup, type FieldHistoryEntry, type File, type FileListOptions, type FileOcrStatus, type FilterCombinator, type FilterGroup, type FilterOperator, type FilterRule, type FilterState, type FilterValue, type FlagLevel, type FlagOverride, FlagRegistry, FlagService, type FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormDensity, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTab, type FormTextRow, type FormsTab, FormulaAttribute, type FormulaGenerationAttribute, type FormulaGenerationInput, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, type InverseSource, type InviteUserInput, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, type ListOptions, ListViewBuilder, type ListViewConfig, type ListViewDefinition, type ListViewLayout, type ListViewTab, ListViewTabConfigBuilder, type LiveChannel, type LiveChannelKind, type LiveErrorPayload, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveGapPayload, type LiveNotification, type LiveNotificationRecipient, type LiveNotificationRecipientPatch, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MEMORY_LIST_VIEW, MEMORY_OBJECT, MEMORY_VIEW, type MailboxAccount, type MailboxCursor, type MailboxEmail, type MailboxListResponse, type MailboxQuery, type MailboxReadState, type MailboxThread, type MailboxThreadDetail, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, NotFoundError, NotImplementedError, type Notification, type NotificationCountPatchLiveEvent, type NotificationCounts, type NotificationCreatedLiveEvent, type NotificationInboxState, type NotificationKind, type NotificationListParams, type NotificationListResult, type NotificationPriority, type NotificationRecipient, type NotificationRecipientPatchLiveEvent, type NotificationSensitivity, type NotificationSubject, type NotificationType, type NotificationV1Type, type NotificationWithRecipient, type NotificationWorkState, NumberAttribute, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, type ObjectConfig, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, OrphanSystemAttributeError, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type Permission, type PermissionScope, Phone, PhoneAttribute, type PhoneFilterValue, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, type QueryState, type ReasoningPartData, type RecordAgentEvent, type RecordDeletedLiveEvent, type RecordDocuments, type RecordFieldPatch, type RecordMetadata, RecordNotFoundError, type RecordPatchLiveEvent, type RecordReference, RecordReferencedError, type RegexGenerationInput, RelationAttribute, type RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, type RelationSource, RelationTarget, type RelativeDateValue, RepositoryError, type RepositoryOperation, type ResolutionContext, type ResolvedFlag, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, type RichtextTab, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, SKILL_LIST_VIEW, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SchemaError, SchemaErrorCode, SchemaOperation, SearchBackendError, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, type StandardSchemaIssue, type StandardSchemaResult, type StartConnectorAuthInput, type StartConnectorAuthResult, type StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, type StreamEventMessageUpdated, type StreamEventMissionUpdate, type StreamEventTodoPlanUpdate, type StreamEventUsage, SyncCascadeError, SyncConflictError, SyncError, type SystemAttribute, type SystemAttributeI18nKey, SystemEntityImmutableError, type SystemFields, type SystemPermissions, type SystemResource, type Tab, TabBuilder, type TabType, type TableSource, type TableTab, TableTabConfig, TenantId, type TenantSettings, TextAttribute, type TextPartData, type ThinkingPartData, TimeFormat, Timestamps, type ToolPartData, type ToolPartErrorCode, type ToolPartState, type TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateDocument, type UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserLike, type UserProfile, UserReferenceType, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, type ValueRef, type ViewConfig, type ViewDefinition, type ViewOverlay, type ViewProjectionStaleLiveEvent, type ViewSyncPayload, type ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, agent, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, canonicalStringify, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, dateValueStart, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, extractValueRefs, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators, getSlotFieldTargets, getSystemAttributeI18nKey, getSystemAttributeList, getUserDisplayName, group, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeInUseError, isAttributeKanbanGroupable, isAttributeSearchable, isComputedFunctionName, isDateRangeValue, isDefaultRole, isDetailView, isDocumentAttribute, isDynamicValue, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isManagedSystemAttribute, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normalizeDateValue, normalizeForEdgeRpc, now, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toMultiValueOperator, toUndefinedIfEmpty, today, user, validateAttributeName, validateQualifiedRule, viewRegistry, viewSyncPayload };
|