@work-shape/catalyst-asset-schemas 0.8.0-rc.5 → 0.8.0-rc.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +1236 -55
  2. package/dist/index.js +2176 -94
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,9 +1,19 @@
1
1
  import { z } from 'zod';
2
2
 
3
+ /**
4
+ * The icons an agent's author may give one of the agent's own starters, by name. The interface
5
+ * draws each on a tile in the colour of the icon's family. A name outside this list is refused when an agent is
6
+ * written; a starter without one shows the icon of an author's request.
7
+ */
8
+ declare const STARTER_ICON_NAMES: readonly ["file-text", "file-signature", "file-check", "file-search", "files", "folder", "clipboard-list", "stamp", "scale", "pencil", "book-open", "presentation", "banknote", "euro", "hand-coins", "receipt", "calculator", "percent", "chart", "trending-up", "home", "building", "landmark", "key", "map-pin", "hammer", "ruler", "users", "handshake", "message-square", "message-circle-question", "mail", "phone", "graduation-cap", "calendar", "list-checks", "list-todo", "target", "shield-check", "lightbulb", "sparkles", "search", "globe"];
9
+ type StarterIconName = (typeof STARTER_ICON_NAMES)[number];
10
+ declare function isStarterIconName(value: unknown): value is StarterIconName;
11
+
3
12
  /**
4
13
  * The shape of an agent and of a skill as a file holds it. These are the public half of the
5
14
  * asset model: a working copy, the command line tool and the instance read the same types.
6
15
  */
16
+
7
17
  /** The configuration rights reported for an asset; publish applies to draft/published kinds. */
8
18
  declare const ASSET_ACCESS_VERBS: readonly ["read", "write", "delete", "publish"];
9
19
  declare const localeCodes: readonly ["en", "de"];
@@ -17,6 +27,8 @@ type ReasoningEffortConfig = (typeof REASONING_EFFORTS)[number];
17
27
  interface AgentInitialPromptConfig {
18
28
  title: LocalizedStringConfig;
19
29
  prompt: LocalizedStringConfig;
30
+ /** The icon on the starter's card. Missing means the icon of an author's request. */
31
+ icon?: StarterIconName;
20
32
  }
21
33
  interface AgentConfig {
22
34
  name: string;
@@ -25,10 +37,17 @@ interface AgentConfig {
25
37
  welcomeMessage?: LocalizedStringConfig;
26
38
  welcomeSubtitle?: LocalizedStringConfig;
27
39
  instructions: string;
40
+ /** What the instance adds after the instructions of an agent that ships with the platform. */
41
+ additionalInstructions?: string;
28
42
  modelProviderId?: string;
29
43
  modelBindingId?: string;
30
44
  reasoningEffort?: ReasoningEffortConfig;
31
45
  fastMode?: boolean;
46
+ /**
47
+ * Whether a run of the agent goes on on its model binding's `fallback` when that binding is
48
+ * rate-limited or down. Unset is on.
49
+ */
50
+ useModelFallback?: boolean;
32
51
  /** Bindings users may pick for this agent in the chat, besides its own `modelBindingId`. */
33
52
  userSelectableModelBindingIds?: string[];
34
53
  /**
@@ -39,10 +58,17 @@ interface AgentConfig {
39
58
  maxSteps?: number;
40
59
  toolNames: string[];
41
60
  /**
42
- * The other agents this agent may start as subagents with `run_agent`, besides itself. Each
43
- * is started only where the person may use it in the conversation's workspace.
61
+ * Whether a run its person starts in their own private chat is offered the tools of the MCP
62
+ * servers that person added for themselves, in the group "Deine MCP-Server" (PMCP-4). Unset
63
+ * is on; `false` keeps outside tools away from an agent whose instructions must not meet them.
44
64
  */
45
- subagentNames?: string[];
65
+ ownServers?: boolean;
66
+ /**
67
+ * The other agents this agent may start as subagents with `run_agent`, besides itself, or
68
+ * `"*"` for every agent (CR-3m). Each is started only where the person may use it in the
69
+ * conversation's workspace.
70
+ */
71
+ subagentNames?: string[] | "*";
46
72
  skillNames: string[];
47
73
  /**
48
74
  * The Knowledge Bases the agent answers from, by id. However many it lists, the agent has one
@@ -51,6 +77,13 @@ interface AgentConfig {
51
77
  */
52
78
  knowledgeBases?: string[];
53
79
  initialPrompts: AgentInitialPromptConfig[];
80
+ /**
81
+ * An agent that ships with the platform: its fields as the release shipped them last. Only
82
+ * the release seed writes it; every other write keeps it as stored.
83
+ */
84
+ shipped?: Record<string, unknown>;
85
+ /** The shipped fields the instance changed and a release then shipped anew. */
86
+ shippedNewer?: string[];
54
87
  }
55
88
  interface SkillConfig {
56
89
  name: string;
@@ -99,7 +132,12 @@ interface SkillFileEntry {
99
132
  /** How many starters one skill carries at most. */
100
133
  declare const SKILL_STARTERS_MAX = 2;
101
134
  /** How many starters the empty chat shows for one agent at most. */
102
- declare const AGENT_STARTERS_MAX = 4;
135
+ declare const AGENT_STARTERS_MAX = 12;
136
+ /**
137
+ * How many of its skills' starters an agent without prompts of its own shows: as many as the
138
+ * empty chat shows before "More". Only an author's own prompts go beyond it.
139
+ */
140
+ declare const SKILL_STARTERS_FILL = 9;
103
141
  /** The most characters a starter's `title` and its `hint` hold, in each language. */
104
142
  declare const SKILL_STARTER_LINE_MAX_LENGTH = 60;
105
143
  /** One first request a skill offers on the empty chat. Choosing it fills the composer. */
@@ -133,6 +171,74 @@ interface SkillResourceConfig {
133
171
  /** Ordered from the narrowest App audience to the widest. */
134
172
  declare const APP_AUDIENCES: readonly ["self", "workspace", "instance"];
135
173
 
174
+ /**
175
+ * The one AWS region the `aws-bedrock` model provider calls. Bedrock's data retention is set to
176
+ * `none` there and nowhere else, and the EU inference profiles route from it to EU regions only.
177
+ */
178
+ declare const BEDROCK_REGION = "eu-central-1";
179
+ /** The twelve digits of an AWS account id, the provider's `accountId`. */
180
+ declare const AWS_ACCOUNT_ID: RegExp;
181
+ /**
182
+ * Why a model id is not one the `aws-bedrock` provider calls, or undefined for an application
183
+ * inference profile of the configured account in `BEDROCK_REGION`. A profile of another account
184
+ * is refused before anything is sent: the key would be shown to a resource this instance does
185
+ * not own. Usage on Bedrock is attributed to a consumer by its application inference profile and
186
+ * the consumer's credential may call that alone, so a model id or a shared profile is refused.
187
+ * The reason never repeats the id: an ARN holds the account id. The adapter and the CLI that
188
+ * writes the entry apply the same rule.
189
+ */
190
+ declare function bedrockProfileRefusal(model: string, accountId: string): string | undefined;
191
+
192
+ /**
193
+ * How a release config file that `extends` another is read over it: objects merge key by key,
194
+ * the extending file winning; lists and values replace the base's wholesale. The instance's
195
+ * loader and the CLI that writes release config merge the same way.
196
+ */
197
+ declare function mergeConfigObjects(base: Record<string, unknown>, overrides: Record<string, unknown>): Record<string, unknown>;
198
+ /** An object a config merges into, not a list or a YAML-derived value such as a Date. */
199
+ declare function isPlainConfigObject(value: unknown): value is Record<string, unknown>;
200
+
201
+ declare const PROJECT_ACTIONS: readonly ["project.read", "project.write", "project.delete"];
202
+ /** The kind of a project's definition: a named folder of chat work in one workspace. */
203
+ declare const PROJECT_ASSET_KIND = "project";
204
+ /**
205
+ * Who reads a project, its files and every conversation in it: every member of its workspace,
206
+ * or its creator alone. The same pair a conversation's visibility holds.
207
+ */
208
+ declare const PROJECT_AUDIENCES: readonly ["workspace", "private"];
209
+ type ProjectAudience = (typeof PROJECT_AUDIENCES)[number];
210
+ /**
211
+ * What a project's deletion does with its chats (PRJ-6): they stay in the workspace, outside a
212
+ * project, or are deleted with it.
213
+ */
214
+ declare const PROJECT_DELETION_CONVERSATIONS: readonly ["keep", "delete"];
215
+ type ProjectDeletionConversations = (typeof PROJECT_DELETION_CONVERSATIONS)[number];
216
+ /** Who made a version of a project file: a person on the page, an agent in a chat, an upload. */
217
+ declare const PROJECT_FILE_ORIGINS: readonly ["person", "agent", "upload"];
218
+ /** What a change did to a project's folder (PRJ-2). */
219
+ declare const PROJECT_FILE_CHANGES: readonly ["created", "updated", "deleted", "restored", "unchanged", "conflict_copy"];
220
+ /** What a write of an agent in the folder did: it neither deletes nor restores. */
221
+ declare const PROJECT_FOLDER_WRITE_CHANGES: readonly ["created", "updated", "unchanged", "conflict_copy"];
222
+ /** The longest title of a project, in characters. */
223
+ declare const PROJECT_TITLE_MAX_LENGTH = 120;
224
+ /** The longest description of a project, in characters. */
225
+ declare const PROJECT_DESCRIPTION_MAX_LENGTH = 500;
226
+ /** The most skills a project attaches (PRJ-7). */
227
+ declare const PROJECT_SKILLS_MAX = 20;
228
+ /** The most Knowledge Bases a project attaches (PRJ-8). */
229
+ declare const PROJECT_KNOWLEDGE_BASES_MAX = 20;
230
+ /**
231
+ * Why a project's choice is greyed: the person's own, in a project others read; or a Knowledge
232
+ * Base not everyone in the project's audience may search (PRJ-8).
233
+ */
234
+ declare const PROJECT_CHOICE_REFUSALS: readonly ["own_in_shared_project", "not_everyone_may_use"];
235
+ /**
236
+ * The name the server makes of a title: lowercase words joined by hyphens, then a hyphen and a
237
+ * random suffix. A person never types it, and it never changes.
238
+ */
239
+ declare const PROJECT_NAME_PATTERN: RegExp;
240
+ declare const PROJECT_NAME_MAX_LENGTH = 64;
241
+
136
242
  /**
137
243
  * The values the HTTP contract of an instance is written with: scopes, actions, error codes
138
244
  * and the limits a request is checked against. They hold no behaviour. The private packages
@@ -141,11 +247,15 @@ declare const APP_AUDIENCES: readonly ["self", "workspace", "instance"];
141
247
  */
142
248
  declare const AUTH_SCOPE_WILDCARD: "*";
143
249
  declare const CHAT_SESSION_AUTH_SCOPES: readonly ["me:read", "me:delete", "config:read", "conversation:read", "conversation:write", "run:start", "run:observe", "run:cancel", "run:command"];
144
- declare const FIRST_PARTY_AUTH_SCOPES: readonly ["*", "me:read", "me:delete", "config:read", "conversation:read", "conversation:write", "run:start", "run:observe", "run:cancel", "run:command", "collaboration_workspace:read", "collaboration_workspace:manage", "me:write", "governance:read", "governance:write", "user_admin:read", "user_admin:write", "api_access:read", "api_access:write", "config_assets:read", "config_assets:write", "config_assets:publish", "config_assets:release", "data_store_rows:read", "data_store_rows:write"];
250
+ declare const FIRST_PARTY_AUTH_SCOPES: readonly ["*", "me:read", "me:delete", "config:read", "conversation:read", "conversation:write", "run:start", "run:observe", "run:cancel", "run:command", "collaboration_workspace:read", "collaboration_workspace:manage", "me:write", "governance:read", "governance:write", "user_admin:read", "user_admin:write", "infrastructure:check", "api_access:read", "api_access:write", "config_assets:read", "config_assets:write", "config_assets:publish", "config_assets:release", "data_store_rows:read", "data_store_rows:write", "data_store_rows:use", "workflow_runs:use", "instance:inspect", "account:manage", "workspaces:manage"];
145
251
  type ChatSessionAuthScope = (typeof CHAT_SESSION_AUTH_SCOPES)[number];
146
252
  type FirstPartyAuthScope = (typeof FIRST_PARTY_AUTH_SCOPES)[number];
147
253
  type OperationScope = Exclude<FirstPartyAuthScope, "*">;
148
- declare const ACTIONS: readonly ["agent.read", "agent.write", "agent.publish", "agent.delete", "skill.read", "skill.write", "skill.delete", "skill.approve", "connection.read", "connection.use", "connection.write", "connection.delete", "connection.approve", "app.read", "app.write", "app.publish", "app.approve", "app.delete", "app.use", "workflow.read", "workflow.write", "workflow.publish", "workflow.approve", "workflow.delete", "workflow.use", "workflow.read_run_data", "data_store.read", "data_store.write", "data_store.publish", "data_store.delete", "data_store.insert", "data_store.execute", "data_store.records", "knowledge_base.read", "knowledge_base.write", "knowledge_base.publish", "knowledge_base.delete", "knowledge_base.use", "mail_sender.use", "guardrail.read", "guardrail.write", "guardrail.publish", "guardrail.delete", "operations.approve", "feedback.review", "users.manage", "usage.view", "audit.view", "api_access.manage", "service_principals.manage", "agent_models.manage", "assets.release", "builder", "publisher"];
254
+ /**
255
+ * Every right of the platform, one file per domain under `contract-values/`. The order is kept:
256
+ * `GRANTABLE_ACTIONS` filters it, and the rights dialog lists rights in it.
257
+ */
258
+ declare const ACTIONS: readonly ["agent.read", "agent.write", "agent.publish", "agent.approve", "agent.delete", "agent.use", "skill.read", "skill.write", "skill.publish", "skill.delete", "skill.approve", "connection.read", "connection.use", "connection.write", "connection.delete", "connection.approve", "connection.add_own", "app.read", "app.write", "app.publish", "app.approve", "app.delete", "app.use", "workflow.read", "workflow.write", "workflow.publish", "workflow.approve", "workflow.delete", "workflow.use", "workflow.read_run_data", "data_store.read", "data_store.write", "data_store.publish", "data_store.delete", "data_store.insert", "data_store.execute", "data_store.records", "knowledge_base.read", "knowledge_base.write", "knowledge_base.ingest", "knowledge_base.publish", "knowledge_base.delete", "knowledge_base.use", "mail_sender.use", "guardrail.read", "guardrail.write", "guardrail.publish", "guardrail.delete", "tool.read", "tool.write", "tool.publish", "tool.approve", "tool.delete", "operations.approve", "feedback.review", "users.manage", "users.delete", "usage.view", "limits.manage", "policy.manage", "usage.view_users", "audit.view", "system.view", "jobs.retry", "api_access.manage", "service_principals.manage", "agent_models.manage", "roles.edit_built_in", "assets.release", "builder", "publisher", "project.read", "project.write", "project.delete"];
149
259
  type PlatformAction = (typeof ACTIONS)[number];
150
260
  type AppErrorCode = (typeof APP_ERROR_CODES)[number];
151
261
  /** The HTTP status every error code answers with. */
@@ -160,11 +270,11 @@ declare const IDEMPOTENCY_KEY_MAX_LENGTH = 255;
160
270
  declare const PROVIDER_PORTS: readonly ["models", "mail", "objectStorage", "sandbox", "secrets"];
161
271
  type ProviderPort = (typeof PROVIDER_PORTS)[number];
162
272
  /**
163
- * Where a provider processes the data an instance sends it. Product-owned and closed: a vendor's
164
- * own region name is a separate field of its adapter, such as `bucketRegion`.
273
+ * Where a provider processes the data an instance sends it. Only `eu` admits personal
274
+ * Connections; other short strings describe routes outside that boundary.
165
275
  */
166
276
  declare const PROVIDER_REGIONS: readonly ["eu", "global"];
167
- type ProviderRegion = (typeof PROVIDER_REGIONS)[number];
277
+ type ProviderRegion = string;
168
278
  /**
169
279
  * Why a check failed. Product-owned and closed: it is all of a failure that reaches a log, the
170
280
  * API or a page, so a provider's own error text, which can repeat a key or an address, cannot.
@@ -190,19 +300,41 @@ declare const GUARDRAIL_NAME_MAX_LENGTH = 64;
190
300
  */
191
301
  declare const CONNECTION_EXPOSURES: readonly ["agent", "bridge", "workflow", "outside"];
192
302
  type ConnectionExposure = (typeof CONNECTION_EXPOSURES)[number];
303
+ /**
304
+ * What a setting field of a Connector type's form holds: text, a whole number such as a port,
305
+ * or a list of names such as folders.
306
+ */
307
+ declare const CONNECTOR_FORM_FIELD_VALUES: readonly ["text", "number", "list"];
193
308
  /** The health of a Connection as its page and its list show it. */
194
309
  declare const CONNECTION_HEALTH_STATES: readonly ["unknown", "ok", "failed", "needs_configuration", "secret_unreadable"];
195
310
  type ConnectionHealth = (typeof CONNECTION_HEALTH_STATES)[number];
311
+ /**
312
+ * Sharing an asset up the ladder (SHARE-1): its rungs, Nur ich (a Personal Workspace), Team (a
313
+ * Shared Workspace) and Alle (the instance); whether a move is made at once or as a request; how
314
+ * it ended; and who edits and uses the asset at its new owner.
315
+ */
316
+ declare const ASSET_OWNER_RUNGS: readonly ["personal", "team", "everyone"];
317
+ type AssetOwnerRung = (typeof ASSET_OWNER_RUNGS)[number];
318
+ declare const ASSET_MOVE_PATHS: readonly ["direct", "request"];
319
+ type AssetMovePath = (typeof ASSET_MOVE_PATHS)[number];
320
+ declare const ASSET_MOVE_STATUSES: readonly ["moved", "requested"];
321
+ type AssetMoveStatus = (typeof ASSET_MOVE_STATUSES)[number];
322
+ declare const ASSET_MOVE_EDITORS: readonly ["workspace_builders", "instance_builders"];
323
+ type AssetMoveEditors = (typeof ASSET_MOVE_EDITORS)[number];
324
+ declare const ASSET_MOVE_USERS: readonly ["workspace_members", "everyone_where_offered"];
325
+ type AssetMoveUsers = (typeof ASSET_MOVE_USERS)[number];
196
326
  declare const GRANT_HOLDER_KINDS: readonly ["user", "service_principal", "role", "group"];
197
327
  type GrantHolderKind = (typeof GRANT_HOLDER_KINDS)[number];
198
328
  declare const GRANT_SCOPE_KINDS: readonly ["instance", "workspace", "asset"];
199
329
  type GrantScopeKind = (typeof GRANT_SCOPE_KINDS)[number];
330
+ /** The verbs of a right on one asset that a screen and an owner-bound asset know: see to remove. */
331
+ declare const ASSET_RIGHT_VERBS: readonly ["read", "use", "write", "delete"];
200
332
  /** Where a role's grant lies: the whole instance, one workspace or one asset. */
201
333
  declare const ROLE_GRANT_SCOPE_KINDS: readonly ["instance", "workspace", "asset"];
202
334
  type RoleGrantScopeKind = (typeof ROLE_GRANT_SCOPE_KINDS)[number];
203
- /** What a release did to an action of a built-in role's default that waits for a superadmin. */
335
+ /** What a release did to an action of a built-in role's default that waits for a decision. */
204
336
  declare const ROLE_PENDING_CHANGES: readonly ["added", "removed"];
205
- /** A superadmin's decision on a pending action: apply what the release did, or dismiss it. */
337
+ /** The decision on a pending action: apply what the release did, or dismiss it. */
206
338
  declare const ROLE_PENDING_DECISIONS: readonly ["apply", "dismiss"];
207
339
  type RolePendingDecision = (typeof ROLE_PENDING_DECISIONS)[number];
208
340
  declare const GRANT_EFFECTS: readonly ["allow", "deny"];
@@ -239,17 +371,27 @@ declare const API_CREDENTIAL_SCOPES: readonly ["config_assets:read", "config_ass
239
371
  type ApiCredentialScope = (typeof API_CREDENTIAL_SCOPES)[number];
240
372
  declare const APP_ERROR_CODES: readonly ["BAD_REQUEST", "UNAUTHENTICATED", "FORBIDDEN", "NOT_FOUND", "CONFLICT", "REVISION_CONFLICT", "PRECONDITION_REQUIRED", "TIMEOUT", "VALIDATION_FAILED", "RATE_LIMITED", "POLICY_DENIED", "GUARDRAIL_BLOCKED", "DECLINED", "IDEMPOTENCY_KEY_REUSED", "OPERATION_IN_PROGRESS", "OPERATION_EXPIRED", "OUTPUT_NOT_RETAINED", "INTERNAL"];
241
373
  declare const OPERATION_EFFECTS: readonly ["reading", "changing"];
374
+ /** The parts a catalogue entry can bring: tools agents call, or a Knowledge Base source. */
375
+ declare const CATALOGUE_PARTS: readonly ["tools", "source"];
376
+ type CataloguePart = (typeof CATALOGUE_PARTS)[number];
377
+ /** The categories a catalogue entry's card is filed under. */
378
+ declare const CATALOGUE_CATEGORIES: readonly ["mail", "files", "accounting", "databases", "other"];
379
+ type CatalogueCategory = (typeof CATALOGUE_CATEGORIES)[number];
242
380
  declare const OPERATION_TARGETS: readonly ["live", "test", "dry_run"];
243
381
  type OperationTarget = (typeof OPERATION_TARGETS)[number];
382
+ /** The test target of an asset a call of a draft reaches (ADR-0031): there, or made by a change. */
383
+ declare const DRAFT_TEST_TARGETS: readonly ["present", "made_on_change"];
384
+ /** How a changing call a publish makes live differs from the live revision (DT-1b). */
385
+ declare const PUBLISH_CHANGE_KINDS: readonly ["new", "changed"];
244
386
  declare const OPERATION_RUN_STATUSES: readonly ["running", "pending_confirmation", "pending_approval", "done", "failed", "denied", "expired"];
245
387
  type OperationRunStatus = (typeof OPERATION_RUN_STATUSES)[number];
246
388
  declare const OPERATION_ORIGIN_KINDS: readonly ["agent", "user", "cli", "mcp", "app", "workflow", "schedule"];
247
389
  type OperationOriginKind = (typeof OPERATION_ORIGIN_KINDS)[number];
248
390
  declare const OPERATION_RUN_DECISION_MODES: readonly ["direct", "confirmed", "approved", "declined"];
249
391
  type OperationRunDecisionMode = (typeof OPERATION_RUN_DECISION_MODES)[number];
250
- declare const OPERATION_RUN_DECISION_REASONS: readonly ["inherited_approval_not_applied", "workflow_publish", "approved_by_caller"];
392
+ declare const OPERATION_RUN_DECISION_REASONS: readonly ["inherited_approval_not_applied", "workflow_publish", "approved_by_caller", "tool_call"];
251
393
  type OperationRunDecisionReason = (typeof OPERATION_RUN_DECISION_REASONS)[number];
252
- declare const OPERATION_DENIAL_REASONS: readonly ["no_grant", "denied", "unknown_action", "holder_inactive", "holder_not_administrable", "user_only", "outside_key_scope"];
394
+ declare const OPERATION_DENIAL_REASONS: readonly ["no_grant", "denied", "unknown_action", "holder_inactive", "holder_not_administrable", "user_only", "outside_key_scope", "not_owner"];
253
395
  type OperationDenialReason = (typeof OPERATION_DENIAL_REASONS)[number];
254
396
  declare const APPROVAL_REQUEST_STATUSES: readonly ["pending", "approved", "rejected", "changes_requested", "superseded", "withdrawn", "reverted"];
255
397
  type ApprovalRequestStatus = (typeof APPROVAL_REQUEST_STATUSES)[number];
@@ -261,6 +403,8 @@ declare const SKILL_CHANGE_TYPES: readonly ["replace", "add", "new_resource"];
261
403
  type SkillChangeType = (typeof SKILL_CHANGE_TYPES)[number];
262
404
  declare const GUARDRAIL_OUTCOMES: readonly ["allow", "warn", "require_approval", "block"];
263
405
  type GuardrailOutcome = (typeof GUARDRAIL_OUTCOMES)[number];
406
+ /** The kinds of a guardrail's check: an RE2 pattern, or a model reading the content. */
407
+ declare const GUARDRAIL_CHECK_KINDS: readonly ["pattern", "model_judge"];
264
408
  declare const APP_MODES: readonly ["published", "draft"];
265
409
  type AppMode = (typeof APP_MODES)[number];
266
410
  declare const ASSET_NAME_REFUSAL_REASONS: readonly ["name_invalid", "name_taken"];
@@ -275,8 +419,19 @@ declare const CONFIG_ASSET_KINDS: readonly ["agent", "skill"];
275
419
  type ConfigAssetKind = (typeof CONFIG_ASSET_KINDS)[number];
276
420
  declare const CONFIG_ASSET_CHANGE_OPERATIONS: readonly ["create", "update", "delete", "revert"];
277
421
  type ConfigAssetChangeOperation = (typeof CONFIG_ASSET_CHANGE_OPERATIONS)[number];
278
- declare const AGENT_AVAILABILITY_MODES: readonly ["all", "selected"];
422
+ /**
423
+ * Where an asset is offered: every workspace, the selected ones, or every workspace except the
424
+ * selected Shared Workspaces, those made later included. Personal Workspaces follow their own
425
+ * switch with `selected` and `all_except`; no Personal Workspace is excluded one by one.
426
+ */
427
+ declare const AGENT_AVAILABILITY_MODES: readonly ["all", "selected", "all_except"];
279
428
  type AgentAvailabilityMode = (typeof AGENT_AVAILABILITY_MODES)[number];
429
+ /**
430
+ * Who uses an agent where it is available (AGENT-USE-1): everyone who may work there, or only
431
+ * those `agent.use` allows on it. Every agent starts at `everyone`.
432
+ */
433
+ declare const AGENT_USE_SETTINGS: readonly ["everyone", "granted"];
434
+ type AgentUse = (typeof AGENT_USE_SETTINGS)[number];
280
435
  declare const AGENT_EDITABLE_FIELDS: readonly ["displayName", "description", "welcomeMessage", "welcomeSubtitle", "instructions", "modelBindingId", "reasoningEffort", "maxSteps", "toolNames", "skillNames", "knowledgeBases", "initialPrompts"];
281
436
  type AgentEditableField = (typeof AGENT_EDITABLE_FIELDS)[number];
282
437
  declare const ASSET_REPO_BUNDLE_KINDS: readonly ["full", "incremental"];
@@ -293,6 +448,21 @@ declare const COLLABORATION_WORKSPACE_KINDS: readonly ["personal", "shared"];
293
448
  type CollaborationWorkspaceKind = (typeof COLLABORATION_WORKSPACE_KINDS)[number];
294
449
  declare const WORKSPACE_ACCESS_STATES: readonly ["member", "request_pending", "can_request"];
295
450
  type WorkspaceAccessState = (typeof WORKSPACE_ACCESS_STATES)[number];
451
+ /** The two bundles a member of a Shared Workspace holds one by one (AP-3). */
452
+ declare const WORKSPACE_BUNDLES: readonly ["builder", "publisher"];
453
+ type WorkspaceBundle = (typeof WORKSPACE_BUNDLES)[number];
454
+ /**
455
+ * Where a member stands with one bundle on the Members screen: held through a row in this
456
+ * workspace, held some other way (a role, a group or the whole instance), asked for, or not.
457
+ */
458
+ declare const MEMBER_BUNDLE_STATES: readonly ["none", "requested", "held", "inherited"];
459
+ type MemberBundleState = (typeof MEMBER_BUNDLE_STATES)[number];
460
+ /** What the caller's switch does to one bundle of one member. */
461
+ declare const MEMBER_BUNDLE_CHANGES: readonly ["grant", "request", "revoke", "withdraw"];
462
+ type MemberBundleChange = (typeof MEMBER_BUNDLE_CHANGES)[number];
463
+ /** Why a request for Builder or Publisher can no longer give what it asked. */
464
+ declare const GRANT_REQUEST_STALE_REASONS: readonly ["member_left", "member_inactive", "already_held"];
465
+ type GrantRequestStaleReason = (typeof GRANT_REQUEST_STALE_REASONS)[number];
296
466
  declare const DELETION_STATES: readonly ["deleting", "deleted"];
297
467
  type DeletionState = (typeof DELETION_STATES)[number];
298
468
  declare const WORKSPACE_SECTIONS: readonly ["agents", "apps"];
@@ -314,6 +484,8 @@ type ModelProviderAuthMode = (typeof MODEL_PROVIDER_AUTH_MODES)[number];
314
484
  declare const CONVERSATION_VISIBILITIES: readonly ["workspace", "private"];
315
485
  /** A conversation a person has, or the run thread of a Child Agent Run. */
316
486
  declare const CONVERSATION_KINDS: readonly ["chat", "run_thread"];
487
+ /** The longest title a person or their agent can give a conversation. */
488
+ declare const CONVERSATION_TITLE_MAX_CHARS = 120;
317
489
  type ConversationKind = (typeof CONVERSATION_KINDS)[number];
318
490
  type ConversationVisibility = (typeof CONVERSATION_VISIBILITIES)[number];
319
491
  declare const WEB_SOURCE_PROVIDERS: readonly ["openai-native", "serper", "tavily", "firecrawl", "browserbase", "direct"];
@@ -326,8 +498,10 @@ declare const ATTACHMENT_CREATE_OUTCOMES: readonly ["created", "already_availabl
326
498
  type AttachmentCreateOutcome = (typeof ATTACHMENT_CREATE_OUTCOMES)[number];
327
499
  declare const STRUCTURED_DATA_REVIEW_REASONS: readonly ["uncertain", "conflicting"];
328
500
  type StructuredDataReviewReason = (typeof STRUCTURED_DATA_REVIEW_REASONS)[number];
329
- declare const FOLLOW_UP_MODES: readonly ["queue"];
330
- declare const FOLLOW_UP_STATUSES: readonly ["pending", "dispatched", "cancelled"];
501
+ /** Queued: sent as the next turn. Steer: taken in by the author's own running turn (FU-2). */
502
+ declare const FOLLOW_UP_MODES: readonly ["queue", "steer"];
503
+ /** `consumed`: a steer the running turn took in; `dispatched`: started as a turn of its own. */
504
+ declare const FOLLOW_UP_STATUSES: readonly ["pending", "dispatched", "consumed", "cancelled"];
331
505
  declare const AGENT_RUN_STATUSES: readonly ["queued", "running", "waiting_for_decision", "waiting_for_subagents", "cancelling", "completed", "cancelled", "failed"];
332
506
  type AgentRunStatus = (typeof AGENT_RUN_STATUSES)[number];
333
507
  declare const AGENT_RUN_FAILURE_CATEGORIES: readonly ["app_error", "internal_error", "runtime_interrupted", "abort_error", "unknown_error"];
@@ -336,6 +510,10 @@ declare const TOOL_INPUT_PARSE_ERROR_CODES: readonly ["invalid_json", "invalid_t
336
510
  type ToolInputParseErrorCode = (typeof TOOL_INPUT_PARSE_ERROR_CODES)[number];
337
511
  declare const WAITING_OPERATION_RUN_STATUSES: readonly ["pending_confirmation", "pending_approval"];
338
512
  declare const OPERATION_CONFIRMATION_DECISIONS: readonly ["confirm", "decline"];
513
+ /** A person's own value for an operation (OP-6): Always allow, Ask me, Never. */
514
+ declare const PERSON_POLICY_SETTINGS: readonly ["always_allow", "ask", "never"];
515
+ /** How far a changing operation reaches. One that declares none counts as `irreversible`. */
516
+ declare const OPERATION_CHANGE_CLASSES: readonly ["reversible", "irreversible", "outward"];
339
517
  declare const TOOL_DECISION_MODES: readonly ["confirm", "approval"];
340
518
  declare const TOOL_DECISION_OUTCOMES: readonly ["confirmed", "declined", "expired", "cancelled"];
341
519
  declare const TOOL_CALL_STATES: readonly ["input_available", "waiting_for_decision", "output_available", "output_error"];
@@ -368,8 +546,29 @@ declare const CONNECTION_OPERATION_STATUSES: readonly ["ready", "awaiting_discov
368
546
  type ConnectionOperationStatus = (typeof CONNECTION_OPERATION_STATUSES)[number];
369
547
  declare const CONNECTION_SECRET_STATES: readonly ["set", "not_set", "unreadable"];
370
548
  type ConnectionSecretState = (typeof CONNECTION_SECRET_STATES)[number];
371
- declare const CONNECTOR_TEST_STATUSES: readonly ["ready", "unauthorized", "network_denied", "unavailable", "oauth_required"];
549
+ /**
550
+ * The states of a Connection's test credential (ADR-0031). `stale`: one is stored that no call
551
+ * can use, since the Connection's address or auth scheme changed after it was set.
552
+ */
553
+ declare const CONNECTION_TEST_CREDENTIAL_STATES: readonly ["not_set", "set", "stale"];
554
+ type ConnectionTestCredentialState = (typeof CONNECTION_TEST_CREDENTIAL_STATES)[number];
555
+ /**
556
+ * The states of a person's own token on a personal MCP Connection (PMCP-6). `needs_reconnect`:
557
+ * the server refused it, and it was deleted.
558
+ */
559
+ declare const CONNECTION_OWN_TOKEN_STATES: readonly ["set", "not_set", "needs_reconnect"];
560
+ type ConnectionOwnTokenState = (typeof CONNECTION_OWN_TOKEN_STATES)[number];
561
+ /** How a person's own token is sent: as a Bearer token, or under a header the Connection names. */
562
+ declare const CONNECTION_OWN_TOKEN_SCHEMES: readonly ["bearer", "header"];
563
+ type ConnectionOwnTokenScheme = (typeof CONNECTION_OWN_TOKEN_SCHEMES)[number];
564
+ /** How a person signs in to an own-server catalogue entry (PMCP-CAT): at the service, or a token. */
565
+ declare const OWN_SERVER_SIGN_INS: readonly ["oauth", "token"];
566
+ type OwnServerSignIn = (typeof OWN_SERVER_SIGN_INS)[number];
567
+ declare const CONNECTOR_TEST_STATUSES: readonly ["ready", "unauthorized", "network_denied", "unavailable", "oauth_required", "token_required"];
372
568
  type ConnectorTestStatus = (typeof CONNECTOR_TEST_STATUSES)[number];
569
+ /** Shared account, or the acting person's own account. */
570
+ declare const CONNECTION_CREDENTIAL_MODES: readonly ["shared", "user"];
571
+ type ConnectionCredentialMode = (typeof CONNECTION_CREDENTIAL_MODES)[number];
373
572
  /**
374
573
  * The state of a Connection's sign-in. `connected`: calls use it. `needs_reconnect`: the
375
574
  * outside system refused it and a new sign-in is needed. `revoked`: someone disconnected it,
@@ -377,11 +576,20 @@ type ConnectorTestStatus = (typeof CONNECTOR_TEST_STATUSES)[number];
377
576
  */
378
577
  declare const CONNECTION_BINDING_STATES: readonly ["connected", "needs_reconnect", "revoked"];
379
578
  type ConnectionBindingState = (typeof CONNECTION_BINDING_STATES)[number];
579
+ /** What a chat Connection proposal's card needs to start setup or sign-in. */
580
+ declare const CONNECTION_PROPOSAL_STATES: readonly ["ready", "needs_setup"];
581
+ type ConnectionProposalState = (typeof CONNECTION_PROPOSAL_STATES)[number];
582
+ declare const CONNECTION_PROPOSAL_BINDING_STATES: readonly ["connected", "needs_reconnect", "not_connected"];
583
+ type ConnectionProposalBindingState = (typeof CONNECTION_PROPOSAL_BINDING_STATES)[number];
584
+ /** What a refused call of a personal Connection needs of its person: a first or a new sign-in. */
585
+ declare const CONNECTION_SIGN_IN_NEEDS: readonly ["not_connected", "needs_reconnect"];
586
+ type ConnectionSignInNeed = (typeof CONNECTION_SIGN_IN_NEEDS)[number];
380
587
  /**
381
588
  * How a Connection that signs in with OAuth has its client: registered by the platform
382
- * (Dynamic Client Registration) or issued by the provider and named in the settings.
589
+ * (Dynamic Client Registration), issued by the provider and named in the settings, or the
590
+ * operator's managed client of release config (`infrastructure.oauthClients`, MS-APP-1).
383
591
  */
384
- declare const CONNECTION_OAUTH_REGISTRATIONS: readonly ["dcr", "preregistered"];
592
+ declare const CONNECTION_OAUTH_REGISTRATIONS: readonly ["dcr", "preregistered", "managed"];
385
593
  type ConnectionOAuthRegistration = (typeof CONNECTION_OAUTH_REGISTRATIONS)[number];
386
594
  /**
387
595
  * What the provider answered to the revocation of a sign-in (RFC 7009): it confirmed, it
@@ -411,6 +619,14 @@ type DataStoreMigrationOutcome = (typeof DATA_STORE_MIGRATION_OUTCOMES)[number];
411
619
  */
412
620
  declare const KNOWLEDGE_BASE_STATUSES: readonly ["unchecked", "preparing", "ok", "needs_attention"];
413
621
  type KnowledgeBaseStatus = (typeof KNOWLEDGE_BASE_STATUSES)[number];
622
+ /**
623
+ * The embedding of a Knowledge Base that searches by meaning. `current`: its index embeds with
624
+ * the model it is set to. `reindex_needed`: the index's model is gone from the instance, so
625
+ * search answers by words and titles alone. `reindex_available`: it is set to another model
626
+ * than its index uses. `reindexing`: a new index is being built beside the one search reads.
627
+ * `none`: nothing is embedded yet.
628
+ */
629
+ declare const KNOWLEDGE_EMBEDDING_STATES: readonly ["current", "reindex_needed", "reindex_available", "reindexing", "none"];
414
630
  /**
415
631
  * What the page of a Knowledge Base shows of one document. `pending` is added and not yet
416
632
  * searchable: waiting for its index job, being indexed or waiting for extraction. `indexed` is
@@ -420,10 +636,24 @@ type KnowledgeBaseStatus = (typeof KNOWLEDGE_BASE_STATUSES)[number];
420
636
  declare const KNOWLEDGE_DOCUMENT_STATES: readonly ["pending", "indexed", "failed"];
421
637
  type KnowledgeDocumentState = (typeof KNOWLEDGE_DOCUMENT_STATES)[number];
422
638
  /**
423
- * The largest file a Knowledge Base takes, as document processing takes it. A larger file is
424
- * refused when it is added, with this limit named.
639
+ * The largest file a Knowledge Base takes unless release config sets `knowledge.maxFileBytes`.
640
+ * A larger file is refused when it is added or fetched, with the limit named.
425
641
  */
426
642
  declare const KNOWLEDGE_FILE_MAX_BYTES: number;
643
+ /**
644
+ * The most text one document carries through the write contracts, however large its file and
645
+ * whatever `knowledge.maxFileBytes` says. A TXT or Markdown file is its own text, so it is
646
+ * refused above this when it is added or fetched; extraction fails a PDF, DOCX, XLSX or PPTX
647
+ * whose text passes it with `knowledge_file_over_limit`.
648
+ */
649
+ declare const KNOWLEDGE_DOCUMENT_TEXT_MAX_BYTES: number;
650
+ /**
651
+ * The most `knowledge.maxFileBytes` may be. A file added by hand is read whole into memory, and
652
+ * extraction reads every file whole, so the bound holds the memory one add or one extraction takes. Document
653
+ * extraction checks a file against it, since the instance's own limit applied when the file was
654
+ * added or fetched.
655
+ */
656
+ declare const KNOWLEDGE_FILE_MAX_BYTES_CEILING: number;
427
657
  /**
428
658
  * Why a document was not indexed. The first five and `knowledge_file_too_many_pages` can also
429
659
  * come from the extraction of a PDF or DOCX (`KNOWLEDGE_EXTRACTION_FAILURE_CODES` in core); the
@@ -443,10 +673,10 @@ type KnowledgeDocumentWaitCode = (typeof KNOWLEDGE_DOCUMENT_WAIT_CODES)[number];
443
673
  * recorded with `knowledge_file_over_limit` or `knowledge_file_format_unsupported` and never
444
674
  * fetched. Spec: Synced sources, Contract freezes (SRC-0).
445
675
  */
446
- declare const KNOWLEDGE_SOURCE_FAILURE_CODES: readonly ["knowledge_source_unreachable", "knowledge_source_refused", "knowledge_fetch_failed", "knowledge_source_limit_reached", "knowledge_item_invalid", "knowledge_fetch_not_allowed"];
676
+ declare const KNOWLEDGE_SOURCE_FAILURE_CODES: readonly ["knowledge_source_unreachable", "knowledge_source_refused", "knowledge_fetch_failed", "knowledge_source_limit_reached", "knowledge_item_invalid", "knowledge_fetch_not_allowed", "knowledge_ingest_cancelled", "knowledge_item_removed"];
447
677
  type KnowledgeSourceFailureCode = (typeof KNOWLEDGE_SOURCE_FAILURE_CODES)[number];
448
678
  /** The code a failed item of a synced source carries: a source code, or one it shares with a file added by hand. */
449
- declare const KNOWLEDGE_SOURCE_ITEM_FAILURE_CODES: readonly ["knowledge_source_unreachable", "knowledge_source_refused", "knowledge_fetch_failed", "knowledge_source_limit_reached", "knowledge_item_invalid", "knowledge_fetch_not_allowed", "knowledge_file_over_limit", "knowledge_file_format_unsupported"];
679
+ declare const KNOWLEDGE_SOURCE_ITEM_FAILURE_CODES: readonly ["knowledge_source_unreachable", "knowledge_source_refused", "knowledge_fetch_failed", "knowledge_source_limit_reached", "knowledge_item_invalid", "knowledge_fetch_not_allowed", "knowledge_ingest_cancelled", "knowledge_item_removed", "knowledge_file_over_limit", "knowledge_file_format_unsupported"];
450
680
  type KnowledgeSourceItemFailureCode = (typeof KNOWLEDGE_SOURCE_ITEM_FAILURE_CODES)[number];
451
681
  /**
452
682
  * The state of an item of a synced source as the sync keeps it. It ends at `fetched`: from
@@ -456,9 +686,10 @@ declare const KNOWLEDGE_SOURCE_ITEM_STATES: readonly ["discovered", "fetched", "
456
686
  type KnowledgeSourceItemState = (typeof KNOWLEDGE_SOURCE_ITEM_STATES)[number];
457
687
  /**
458
688
  * How a sync of a source walks it: `initial` and `full` list every item below its folders,
459
- * `changes` reads the source's change feed from the stored cursor.
689
+ * `changes` reads the source's change feed from the stored cursor, and `ingest` is one call
690
+ * of `knowledge.<id>.ingest` from a Workflow into its Workflow-fed source.
460
691
  */
461
- declare const KNOWLEDGE_SYNC_MODES: readonly ["initial", "changes", "full"];
692
+ declare const KNOWLEDGE_SYNC_MODES: readonly ["initial", "changes", "full", "ingest"];
462
693
  type KnowledgeSyncMode = (typeof KNOWLEDGE_SYNC_MODES)[number];
463
694
  declare const KNOWLEDGE_SYNC_RUN_STATES: readonly ["running", "done", "failed", "superseded"];
464
695
  type KnowledgeSyncRunState = (typeof KNOWLEDGE_SYNC_RUN_STATES)[number];
@@ -475,11 +706,35 @@ declare const DATABASE_RELATION_TYPES: readonly ["table", "view", "materialized_
475
706
  type DatabaseRelationType = (typeof DATABASE_RELATION_TYPES)[number];
476
707
  declare const WORKFLOW_RUN_STATUSES: readonly ["continued", "queued", "running", "waiting", "done", "failed", "cancelled", "limit_reached"];
477
708
  type WorkflowRunStatus = (typeof WORKFLOW_RUN_STATUSES)[number];
478
- declare const WORKFLOW_STEP_TYPES: readonly ["trigger", "operation", "loop", "code", "output", "agent", "notify", "workflow"];
709
+ declare const WORKFLOW_STEP_TYPES: readonly ["trigger", "operation", "loop", "code", "output", "agent", "notify", "workflow", "condition", "parallel"];
479
710
  type WorkflowStepType = (typeof WORKFLOW_STEP_TYPES)[number];
480
- declare const WORKFLOW_RESERVED_STEP_TYPES: readonly ["condition", "parallel"];
711
+ /**
712
+ * The step types this release executes. The engine accepts no definition that names another,
713
+ * and the interface offers no other in its palette (workflow-canvas 9.6). A list of its own, so
714
+ * it can be narrower than `WORKFLOW_STEP_TYPES` while a known type is not run yet.
715
+ */
716
+ declare const WORKFLOW_EXECUTED_STEP_TYPES: readonly ["trigger", "operation", "loop", "code", "output", "agent", "notify", "workflow", "condition", "parallel"];
717
+ declare const WORKFLOW_RESERVED_STEP_TYPES: readonly [];
481
718
  type WorkflowReservedStepType = (typeof WORKFLOW_RESERVED_STEP_TYPES)[number];
482
- declare const WORKFLOW_TRIGGER_KINDS: readonly ["manual", "schedule", "parent"];
719
+ /**
720
+ * The bounds of a `webhook` trigger. A request is at most `maxBodyBytes`, its timestamp at most
721
+ * `toleranceMs` away from the instance's clock, its nonce used once, and a Workflow accepts
722
+ * `perMinute` requests a minute unless its trigger sets its own, up to `perMinuteMax`.
723
+ */
724
+ declare const WORKFLOW_WEBHOOK_LIMITS: {
725
+ readonly maxBodyBytes: number;
726
+ readonly toleranceMs: number;
727
+ readonly perMinute: 60;
728
+ readonly perMinuteMax: 600;
729
+ readonly nonceMaxLength: 200;
730
+ };
731
+ /** The headers of a signed webhook request. */
732
+ declare const WORKFLOW_WEBHOOK_HEADERS: {
733
+ readonly timestamp: "catalyst-webhook-timestamp";
734
+ readonly nonce: "catalyst-webhook-nonce";
735
+ readonly signature: "catalyst-webhook-signature";
736
+ };
737
+ declare const WORKFLOW_TRIGGER_KINDS: readonly ["manual", "schedule", "parent", "outside", "webhook", "platform_event"];
483
738
  type WorkflowTriggerKind = (typeof WORKFLOW_TRIGGER_KINDS)[number];
484
739
  declare const NOTIFY_CHANNELS: readonly ["inbox", "mail"];
485
740
  /**
@@ -489,6 +744,12 @@ declare const NOTIFY_CHANNELS: readonly ["inbox", "mail"];
489
744
  */
490
745
  declare const WORKFLOW_STEP_SOURCE_KINDS: readonly ["connection", "data_store", "knowledge_base", "workflow", "mail_sender", "other"];
491
746
  type WorkflowStepSourceKind = (typeof WORKFLOW_STEP_SOURCE_KINDS)[number];
747
+ /**
748
+ * What an operation a step may call belongs to (`operations.list_callable`, WF-EDIT-3). `other`
749
+ * is an operation of the release.
750
+ */
751
+ declare const OPERATION_SOURCE_KINDS: readonly ["connection", "data_store", "knowledge_base", "workflow", "other"];
752
+ type OperationSourceKind = (typeof OPERATION_SOURCE_KINDS)[number];
492
753
  type NotifyChannel = (typeof NOTIFY_CHANNELS)[number];
493
754
  declare const PRINCIPAL_HOLDER_KINDS: readonly ["user", "service_principal"];
494
755
  type PrincipalHolderKind = (typeof PRINCIPAL_HOLDER_KINDS)[number];
@@ -496,10 +757,18 @@ declare const ASSET_OWNER_KINDS: readonly ["instance", "workspace"];
496
757
  type AssetOwnerKind = (typeof ASSET_OWNER_KINDS)[number];
497
758
  declare const READING_POLICY_VALUES: readonly ["allow", "deny"];
498
759
  type ReadingPolicyValue = (typeof READING_POLICY_VALUES)[number];
760
+ /** Who locked "Always allow": the release config, which no screen lifts, or an instance admin. */
761
+ declare const ALWAYS_ALLOW_LOCK_SOURCES: readonly ["release", "instance"];
499
762
  declare const CONNECTION_OPERATION_POLICIES: readonly ["deny", "approval"];
500
763
  type ConnectionOperationPolicy = (typeof CONNECTION_OPERATION_POLICIES)[number];
501
764
  declare const WORKFLOW_RUN_MODES: readonly ["live", "test"];
502
765
  type WorkflowRunMode = (typeof WORKFLOW_RUN_MODES)[number];
766
+ /**
767
+ * Which revision of a Workflow a test run an App's draft started ran (DP-1): its draft, for a
768
+ * tester who may write it, or its published revision.
769
+ */
770
+ declare const WORKFLOW_TEST_REVISIONS: readonly ["draft", "published"];
771
+ type WorkflowTestRevision = (typeof WORKFLOW_TEST_REVISIONS)[number];
503
772
  declare const APP_ACTION_CALL_STATUSES: readonly ["done", "pending_approval"];
504
773
  type AppActionCallStatus = (typeof APP_ACTION_CALL_STATUSES)[number];
505
774
  declare const OPERATIONS_AUDIENCES: readonly ["workflow", "app"];
@@ -518,6 +787,13 @@ declare const USER_STATUSES: readonly ["active", "disabled"];
518
787
  type UserStatus = (typeof USER_STATUSES)[number];
519
788
  declare const MESSAGE_FINISH_STATUSES: readonly ["completed", "cancelled"];
520
789
  type MessageFinishStatus = (typeof MESSAGE_FINISH_STATUSES)[number];
790
+ /**
791
+ * Why a run went on with its binding's fallback, as the person reads it: the model was
792
+ * overloaded (`rate_limit`) or could not be reached (`unavailable`: a server error, a timeout or
793
+ * a lost connection).
794
+ */
795
+ declare const MODEL_FALLBACK_REASONS: readonly ["rate_limit", "unavailable"];
796
+ type ModelFallbackReason = (typeof MODEL_FALLBACK_REASONS)[number];
521
797
  declare const ENDED_AGENT_RUN_STATUSES: readonly ["completed", "cancelled", "failed"];
522
798
  type EndedAgentRunStatus = (typeof ENDED_AGENT_RUN_STATUSES)[number];
523
799
  declare const ACTIVE_AGENT_RUN_STATUSES: readonly ["queued", "running", "waiting_for_decision", "waiting_for_subagents", "cancelling"];
@@ -548,6 +824,14 @@ declare const WORKFLOW_DATASET_DOWNLOAD_FORMATS: readonly ["jsonl", "csv"];
548
824
  type WorkflowDatasetDownloadFormat = (typeof WORKFLOW_DATASET_DOWNLOAD_FORMATS)[number];
549
825
  /** Instance resources whose use may be inherited through workspace availability. */
550
826
  declare const WORKSPACE_USE_ASSET_KINDS: readonly ["knowledge_base", "connection"];
827
+ /**
828
+ * The kinds of right, the part of an action before its dot, of the asset kinds a workspace can
829
+ * own: those whose registered `owners` include `workspace`. A form page holds an App's rights,
830
+ * so `app` stands for it too. The workspace bundles expand their verbs on these alone, so a kind
831
+ * no workspace can own, such as a Connection, is in neither bundle (PMCP-1). A kind a later
832
+ * release lets a workspace own is added here, and a test holds this list to the registry.
833
+ */
834
+ declare const WORKSPACE_OWNED_RIGHT_KINDS: readonly ["agent", "skill", "app", "workflow", "data_store", "knowledge_base", "guardrail", "tool"];
551
835
  /** Published assets that consume Connections or stored data. Agents hold tools separately. */
552
836
  declare const PUBLISHED_DATA_CONSUMER_KINDS: readonly ["app", "workflow", "knowledge_base"];
553
837
  type PublishedDataConsumerKind = (typeof PUBLISHED_DATA_CONSUMER_KINDS)[number];
@@ -555,7 +839,64 @@ type PublishedDataConsumerKind = (typeof PUBLISHED_DATA_CONSUMER_KINDS)[number];
555
839
  declare const SCHEDULED_START_STATES: readonly ["active", "paused"];
556
840
  /** Which revision answered an agent preview turn. */
557
841
  declare const AGENT_PREVIEW_SOURCES: readonly ["draft", "live"];
842
+ /** Server capture admission and the shared request lifecycle (browser transport retained). */
843
+ declare const PREVIEW_CAPTURE_SIZES: readonly ["phone", "tablet", "desktop"];
844
+ declare const PREVIEW_CAPTURE_STATUSES: readonly ["pending", "answering", "captured", "refused"];
845
+ declare const SERVER_PREVIEW_CAPTURE_REFUSALS: readonly ["capture_busy", "capture_failed"];
846
+
847
+ /**
848
+ * What `workflows.capabilities` says of a setting's number: bytes, a count, seconds, minutes,
849
+ * CPUs, or a duration written as text such as `7d`.
850
+ */
851
+ declare const WORKFLOW_CAPABILITY_UNITS: readonly ["bytes", "count", "seconds", "minutes", "cpus", "duration"];
852
+ type WorkflowCapabilityUnit = (typeof WORKFLOW_CAPABILITY_UNITS)[number];
853
+ /**
854
+ * Whether the instance runs code steps: `available` where it has a sandbox and a command
855
+ * worker, `no_sandbox` where a code step would fail at once.
856
+ */
857
+ declare const WORKFLOW_CODE_STEP_AVAILABILITY: readonly ["available", "no_sandbox"];
858
+ /** How the runner image's package manifest was read at startup (EW-PKG). */
859
+ declare const WORKFLOW_PACKAGE_MANIFEST_STATES: readonly ["available", "missing", "invalid"];
860
+
861
+ /**
862
+ * The path of the interface route that shows one App to a signed-in person: the published
863
+ * revision under `/apps/`, or the draft under `/app-drafts/`. Every path below the published
864
+ * one is the App's own, so the draft stands outside it: an App may have any route, `/edit`
865
+ * among them. The server answers it from `apps.preview` and the interface builds its routes
866
+ * from it, so the two never disagree.
867
+ */
868
+ declare function appInterfacePath(input: {
869
+ workspaceId: string;
870
+ app: string;
871
+ mode: AppMode;
872
+ }): string;
873
+ /** The Studio list of each kind that has one, by the kind's id: `/build/<path>/<name>`. */
874
+ declare const STUDIO_KIND_PATHS: Readonly<Record<string, string>>;
875
+ /**
876
+ * The path of the page where a person works on an asset: its Studio page, a Workflow's canvas,
877
+ * or an App's draft. Nothing for a kind without a page, or for a Workflow or App without the
878
+ * workspace that owns it. It names only what the caller already read: kind, name and owner.
879
+ */
880
+ declare function assetPagePath(asset: {
881
+ kind: string;
882
+ name: string;
883
+ workspaceId?: string | undefined;
884
+ }): string | undefined;
885
+ /**
886
+ * The path of one conversation of a workspace: a link to it opens the conversation, so a person
887
+ * goes on there with the work it holds, such as the files of an App built in it.
888
+ */
889
+ declare function conversationInterfacePath(input: {
890
+ workspaceId: string;
891
+ conversationId: string;
892
+ }): string;
893
+ /** The path of one item of the Inbox, such as an approval request, by its id. */
894
+ declare function inboxItemPath(itemId: string): string;
558
895
 
896
+ declare function isRecord(value: unknown): value is Record<string, unknown>;
897
+
898
+ /** A short operator declaration of where a provider processes data. */
899
+ declare const providerRegionSchema: z.ZodString;
559
900
  declare const localizedStringSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
560
901
  en: z.ZodOptional<z.ZodString>;
561
902
  de: z.ZodOptional<z.ZodString>;
@@ -714,6 +1055,7 @@ declare const agentConfigSchema: z.ZodObject<{
714
1055
  de: z.ZodOptional<z.ZodString>;
715
1056
  }, z.core.$strict>]>>;
716
1057
  instructions: z.ZodString;
1058
+ additionalInstructions: z.ZodOptional<z.ZodString>;
717
1059
  modelProviderId: z.ZodOptional<z.ZodString>;
718
1060
  modelBindingId: z.ZodOptional<z.ZodString>;
719
1061
  reasoningEffort: z.ZodOptional<z.ZodEnum<{
@@ -725,6 +1067,7 @@ declare const agentConfigSchema: z.ZodObject<{
725
1067
  max: "max";
726
1068
  }>>;
727
1069
  fastMode: z.ZodOptional<z.ZodBoolean>;
1070
+ useModelFallback: z.ZodOptional<z.ZodBoolean>;
728
1071
  userSelectableModelBindingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
729
1072
  modelReasoningEfforts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
730
1073
  none: "none";
@@ -736,7 +1079,8 @@ declare const agentConfigSchema: z.ZodObject<{
736
1079
  }>>>;
737
1080
  maxSteps: z.ZodOptional<z.ZodNumber>;
738
1081
  toolNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
739
- subagentNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
1082
+ ownServers: z.ZodOptional<z.ZodBoolean>;
1083
+ subagentNames: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>>;
740
1084
  skillNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
741
1085
  knowledgeBases: z.ZodOptional<z.ZodArray<z.ZodString>>;
742
1086
  initialPrompts: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -748,7 +1092,54 @@ declare const agentConfigSchema: z.ZodObject<{
748
1092
  en: z.ZodOptional<z.ZodString>;
749
1093
  de: z.ZodOptional<z.ZodString>;
750
1094
  }, z.core.$strict>]>;
1095
+ icon: z.ZodOptional<z.ZodEnum<{
1096
+ "file-text": "file-text";
1097
+ "file-signature": "file-signature";
1098
+ "file-check": "file-check";
1099
+ "file-search": "file-search";
1100
+ files: "files";
1101
+ folder: "folder";
1102
+ "clipboard-list": "clipboard-list";
1103
+ stamp: "stamp";
1104
+ scale: "scale";
1105
+ pencil: "pencil";
1106
+ "book-open": "book-open";
1107
+ presentation: "presentation";
1108
+ banknote: "banknote";
1109
+ euro: "euro";
1110
+ "hand-coins": "hand-coins";
1111
+ receipt: "receipt";
1112
+ calculator: "calculator";
1113
+ percent: "percent";
1114
+ chart: "chart";
1115
+ "trending-up": "trending-up";
1116
+ home: "home";
1117
+ building: "building";
1118
+ landmark: "landmark";
1119
+ key: "key";
1120
+ "map-pin": "map-pin";
1121
+ hammer: "hammer";
1122
+ ruler: "ruler";
1123
+ users: "users";
1124
+ handshake: "handshake";
1125
+ "message-square": "message-square";
1126
+ "message-circle-question": "message-circle-question";
1127
+ mail: "mail";
1128
+ phone: "phone";
1129
+ "graduation-cap": "graduation-cap";
1130
+ calendar: "calendar";
1131
+ "list-checks": "list-checks";
1132
+ "list-todo": "list-todo";
1133
+ target: "target";
1134
+ "shield-check": "shield-check";
1135
+ lightbulb: "lightbulb";
1136
+ sparkles: "sparkles";
1137
+ search: "search";
1138
+ globe: "globe";
1139
+ }>>;
751
1140
  }, z.core.$strip>>>;
1141
+ shipped: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1142
+ shippedNewer: z.ZodOptional<z.ZodArray<z.ZodString>>;
752
1143
  }, z.core.$strip>;
753
1144
  /** The id of a Workflow, which is the name of its asset: part of `workflow.<id>.start`. */
754
1145
  declare const WORKFLOW_NAME_PATTERN: RegExp;
@@ -775,6 +1166,15 @@ declare const workflowConfigSchema: z.ZodObject<{
775
1166
  }, z.core.$strict>;
776
1167
  type WorkflowAssetConfig = z.infer<typeof workflowConfigSchema>;
777
1168
 
1169
+ /** Why a reference is refused as a secret name. It never repeats the reference. */
1170
+ declare const SECRET_NAME_EXPECTATION = "expected the name of an environment variable such as MODEL_API_KEY (upper-case words joined by underscores, at most 64 characters); the value given does not read as one and looks like a credential value";
1171
+ /**
1172
+ * True for text that is safe to repeat as the name of a secret: it reads as an environment
1173
+ * variable name and not as a credential. Anything else is refused as a name and is never put
1174
+ * into a message, a log line or an error. The instance and the CLI apply the same rule.
1175
+ */
1176
+ declare function isSecretName(value: string): boolean;
1177
+
778
1178
  /**
779
1179
  * Why a frontmatter is refused before its fields are read: for an alias, for its depth, or
780
1180
  * for the size of what it holds beside the name, the title and the description.
@@ -891,6 +1291,12 @@ declare function checkStorableTexts(value: unknown, maxValues: number): "storabl
891
1291
  * aliases or holds text that cannot be stored is answered as an issue, never thrown.
892
1292
  */
893
1293
  declare function readYamlData(text: string, file: string, options?: YamlDataOptions): YamlDataResult;
1294
+ /**
1295
+ * Writes JSON data as the YAML text a server makes of a file, such as a `workflow.yaml` it
1296
+ * renders from a stored definition: keys in the order the value holds them, no anchors, no
1297
+ * folded lines. The same value gives the same bytes, and `readYamlData` reads it back as it was.
1298
+ */
1299
+ declare function writeYamlData(value: unknown): string;
894
1300
  /** A YAML file `loadYamlData` refused. `issue` says why. */
895
1301
  declare class YamlDataError extends Error {
896
1302
  readonly issue: YamlDataIssue;
@@ -905,6 +1311,7 @@ declare const knowledgeSyncInputSchema: z.ZodObject<{
905
1311
  full: "full";
906
1312
  changes: "changes";
907
1313
  }>>;
1314
+ confirm: z.ZodOptional<z.ZodBoolean>;
908
1315
  }, z.core.$strict>;
909
1316
  type KnowledgeSyncInput = z.infer<typeof knowledgeSyncInputSchema>;
910
1317
  /** What a sync run ends with: the result of its Operation Run, and a Workflow step's output. */
@@ -915,6 +1322,7 @@ declare const knowledgeSyncResultSchema: z.ZodObject<{
915
1322
  full: "full";
916
1323
  initial: "initial";
917
1324
  changes: "changes";
1325
+ ingest: "ingest";
918
1326
  }>;
919
1327
  reason: z.ZodOptional<z.ZodEnum<{
920
1328
  cursor_expired: "cursor_expired";
@@ -942,6 +1350,8 @@ declare const knowledgeSyncResultSchema: z.ZodObject<{
942
1350
  knowledge_source_limit_reached: "knowledge_source_limit_reached";
943
1351
  knowledge_item_invalid: "knowledge_item_invalid";
944
1352
  knowledge_fetch_not_allowed: "knowledge_fetch_not_allowed";
1353
+ knowledge_ingest_cancelled: "knowledge_ingest_cancelled";
1354
+ knowledge_item_removed: "knowledge_item_removed";
945
1355
  }>>;
946
1356
  startedAt: z.ZodString;
947
1357
  endedAt: z.ZodOptional<z.ZodString>;
@@ -953,6 +1363,36 @@ type KnowledgeSyncResult = z.infer<typeof knowledgeSyncResultSchema>;
953
1363
  */
954
1364
  declare const KNOWLEDGE_SOURCE_ITEM_SHOWN_STATES: readonly ["discovered", "fetched", "indexed", "failed", "withdrawn"];
955
1365
  type KnowledgeSourceItemShownState = (typeof KNOWLEDGE_SOURCE_ITEM_SHOWN_STATES)[number];
1366
+ /**
1367
+ * A first pass that stopped at 10,000 items and waits for one confirmation (KB-ISO-1b): what the
1368
+ * whole pass holds and what it would cost, estimated from the listed sizes with a factor per
1369
+ * format. Counts and sizes only, never a name.
1370
+ */
1371
+ declare const knowledgeFirstPassConfirmationSchema: z.ZodObject<{
1372
+ syncRunId: z.ZodString;
1373
+ items: z.ZodNumber;
1374
+ bytes: z.ZodNumber;
1375
+ stop: z.ZodNumber;
1376
+ tokens: z.ZodOptional<z.ZodObject<{
1377
+ min: z.ZodNumber;
1378
+ max: z.ZodNumber;
1379
+ }, z.core.$strict>>;
1380
+ passages: z.ZodOptional<z.ZodObject<{
1381
+ min: z.ZodNumber;
1382
+ max: z.ZodNumber;
1383
+ }, z.core.$strict>>;
1384
+ model: z.ZodOptional<z.ZodString>;
1385
+ cost: z.ZodOptional<z.ZodObject<{
1386
+ min: z.ZodNumber;
1387
+ max: z.ZodNumber;
1388
+ currency: z.ZodString;
1389
+ }, z.core.$strict>>;
1390
+ room: z.ZodOptional<z.ZodBoolean>;
1391
+ storeBytes: z.ZodNumber;
1392
+ addedBytes: z.ZodOptional<z.ZodNumber>;
1393
+ limitBytes: z.ZodOptional<z.ZodNumber>;
1394
+ }, z.core.$strict>;
1395
+ type KnowledgeFirstPassConfirmation = z.infer<typeof knowledgeFirstPassConfirmationSchema>;
956
1396
  declare const knowledgeSourcesOutputSchema: z.ZodObject<{
957
1397
  sources: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
958
1398
  id: z.ZodString;
@@ -975,6 +1415,8 @@ declare const knowledgeSourcesOutputSchema: z.ZodObject<{
975
1415
  knowledge_source_limit_reached: "knowledge_source_limit_reached";
976
1416
  knowledge_item_invalid: "knowledge_item_invalid";
977
1417
  knowledge_fetch_not_allowed: "knowledge_fetch_not_allowed";
1418
+ knowledge_ingest_cancelled: "knowledge_ingest_cancelled";
1419
+ knowledge_item_removed: "knowledge_item_removed";
978
1420
  }>, z.ZodEnum<{
979
1421
  knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
980
1422
  knowledge_file_over_limit: "knowledge_file_over_limit";
@@ -997,6 +1439,7 @@ declare const knowledgeSourcesOutputSchema: z.ZodObject<{
997
1439
  full: "full";
998
1440
  initial: "initial";
999
1441
  changes: "changes";
1442
+ ingest: "ingest";
1000
1443
  }>;
1001
1444
  startedAt: z.ZodString;
1002
1445
  itemsPerMinute: z.ZodOptional<z.ZodNumber>;
@@ -1009,6 +1452,7 @@ declare const knowledgeSourcesOutputSchema: z.ZodObject<{
1009
1452
  full: "full";
1010
1453
  initial: "initial";
1011
1454
  changes: "changes";
1455
+ ingest: "ingest";
1012
1456
  }>;
1013
1457
  reason: z.ZodOptional<z.ZodEnum<{
1014
1458
  cursor_expired: "cursor_expired";
@@ -1036,10 +1480,43 @@ declare const knowledgeSourcesOutputSchema: z.ZodObject<{
1036
1480
  knowledge_source_limit_reached: "knowledge_source_limit_reached";
1037
1481
  knowledge_item_invalid: "knowledge_item_invalid";
1038
1482
  knowledge_fetch_not_allowed: "knowledge_fetch_not_allowed";
1483
+ knowledge_ingest_cancelled: "knowledge_ingest_cancelled";
1484
+ knowledge_item_removed: "knowledge_item_removed";
1039
1485
  }>>;
1040
1486
  startedAt: z.ZodString;
1041
1487
  endedAt: z.ZodOptional<z.ZodString>;
1042
1488
  }, z.core.$strict>>;
1489
+ confirmation: z.ZodOptional<z.ZodObject<{
1490
+ syncRunId: z.ZodString;
1491
+ items: z.ZodNumber;
1492
+ bytes: z.ZodNumber;
1493
+ stop: z.ZodNumber;
1494
+ tokens: z.ZodOptional<z.ZodObject<{
1495
+ min: z.ZodNumber;
1496
+ max: z.ZodNumber;
1497
+ }, z.core.$strict>>;
1498
+ passages: z.ZodOptional<z.ZodObject<{
1499
+ min: z.ZodNumber;
1500
+ max: z.ZodNumber;
1501
+ }, z.core.$strict>>;
1502
+ model: z.ZodOptional<z.ZodString>;
1503
+ cost: z.ZodOptional<z.ZodObject<{
1504
+ min: z.ZodNumber;
1505
+ max: z.ZodNumber;
1506
+ currency: z.ZodString;
1507
+ }, z.core.$strict>>;
1508
+ room: z.ZodOptional<z.ZodBoolean>;
1509
+ storeBytes: z.ZodNumber;
1510
+ addedBytes: z.ZodOptional<z.ZodNumber>;
1511
+ limitBytes: z.ZodOptional<z.ZodNumber>;
1512
+ }, z.core.$strict>>;
1513
+ schedule: z.ZodOptional<z.ZodObject<{
1514
+ changes: z.ZodUnion<readonly [z.ZodLiteral<"off">, z.ZodNumber]>;
1515
+ full: z.ZodString;
1516
+ defaultChanges: z.ZodNumber;
1517
+ defaultFull: z.ZodString;
1518
+ minChanges: z.ZodOptional<z.ZodNumber>;
1519
+ }, z.core.$strict>>;
1043
1520
  lastChangeAt: z.ZodOptional<z.ZodString>;
1044
1521
  oldestOpenChangeAt: z.ZodOptional<z.ZodString>;
1045
1522
  }, z.core.$strict>, z.ZodObject<{
@@ -1052,11 +1529,19 @@ declare const knowledgeSourcesOutputSchema: z.ZodObject<{
1052
1529
  full: "full";
1053
1530
  initial: "initial";
1054
1531
  changes: "changes";
1532
+ ingest: "ingest";
1055
1533
  }>;
1056
1534
  startedAt: z.ZodString;
1057
1535
  itemsPerMinute: z.ZodOptional<z.ZodNumber>;
1058
1536
  estimatedEndAt: z.ZodOptional<z.ZodString>;
1059
1537
  }, z.core.$strict>>;
1538
+ schedule: z.ZodOptional<z.ZodObject<{
1539
+ changes: z.ZodUnion<readonly [z.ZodLiteral<"off">, z.ZodNumber]>;
1540
+ full: z.ZodString;
1541
+ defaultChanges: z.ZodNumber;
1542
+ defaultFull: z.ZodString;
1543
+ minChanges: z.ZodOptional<z.ZodNumber>;
1544
+ }, z.core.$strict>>;
1060
1545
  failures: z.ZodArray<z.ZodObject<{
1061
1546
  code: z.ZodUnion<readonly [z.ZodEnum<{
1062
1547
  knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
@@ -1067,6 +1552,8 @@ declare const knowledgeSourcesOutputSchema: z.ZodObject<{
1067
1552
  knowledge_source_limit_reached: "knowledge_source_limit_reached";
1068
1553
  knowledge_item_invalid: "knowledge_item_invalid";
1069
1554
  knowledge_fetch_not_allowed: "knowledge_fetch_not_allowed";
1555
+ knowledge_ingest_cancelled: "knowledge_ingest_cancelled";
1556
+ knowledge_item_removed: "knowledge_item_removed";
1070
1557
  }>, z.ZodEnum<{
1071
1558
  knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
1072
1559
  knowledge_file_over_limit: "knowledge_file_over_limit";
@@ -1097,6 +1584,7 @@ declare const knowledgeSourcesOutputSchema: z.ZodObject<{
1097
1584
  full: "full";
1098
1585
  initial: "initial";
1099
1586
  changes: "changes";
1587
+ ingest: "ingest";
1100
1588
  }>;
1101
1589
  reason: z.ZodOptional<z.ZodEnum<{
1102
1590
  cursor_expired: "cursor_expired";
@@ -1124,10 +1612,36 @@ declare const knowledgeSourcesOutputSchema: z.ZodObject<{
1124
1612
  knowledge_source_limit_reached: "knowledge_source_limit_reached";
1125
1613
  knowledge_item_invalid: "knowledge_item_invalid";
1126
1614
  knowledge_fetch_not_allowed: "knowledge_fetch_not_allowed";
1615
+ knowledge_ingest_cancelled: "knowledge_ingest_cancelled";
1616
+ knowledge_item_removed: "knowledge_item_removed";
1127
1617
  }>>;
1128
1618
  startedAt: z.ZodString;
1129
1619
  endedAt: z.ZodOptional<z.ZodString>;
1130
1620
  }, z.core.$strict>>;
1621
+ confirmation: z.ZodOptional<z.ZodObject<{
1622
+ syncRunId: z.ZodString;
1623
+ items: z.ZodNumber;
1624
+ bytes: z.ZodNumber;
1625
+ stop: z.ZodNumber;
1626
+ tokens: z.ZodOptional<z.ZodObject<{
1627
+ min: z.ZodNumber;
1628
+ max: z.ZodNumber;
1629
+ }, z.core.$strict>>;
1630
+ passages: z.ZodOptional<z.ZodObject<{
1631
+ min: z.ZodNumber;
1632
+ max: z.ZodNumber;
1633
+ }, z.core.$strict>>;
1634
+ model: z.ZodOptional<z.ZodString>;
1635
+ cost: z.ZodOptional<z.ZodObject<{
1636
+ min: z.ZodNumber;
1637
+ max: z.ZodNumber;
1638
+ currency: z.ZodString;
1639
+ }, z.core.$strict>>;
1640
+ room: z.ZodOptional<z.ZodBoolean>;
1641
+ storeBytes: z.ZodNumber;
1642
+ addedBytes: z.ZodOptional<z.ZodNumber>;
1643
+ limitBytes: z.ZodOptional<z.ZodNumber>;
1644
+ }, z.core.$strict>>;
1131
1645
  lastChangeAt: z.ZodOptional<z.ZodString>;
1132
1646
  oldestOpenChangeAt: z.ZodOptional<z.ZodString>;
1133
1647
  }, z.core.$strict>]>>;
@@ -1151,6 +1665,8 @@ declare const knowledgeSourceItemsInputSchema: z.ZodObject<{
1151
1665
  knowledge_source_limit_reached: "knowledge_source_limit_reached";
1152
1666
  knowledge_item_invalid: "knowledge_item_invalid";
1153
1667
  knowledge_fetch_not_allowed: "knowledge_fetch_not_allowed";
1668
+ knowledge_ingest_cancelled: "knowledge_ingest_cancelled";
1669
+ knowledge_item_removed: "knowledge_item_removed";
1154
1670
  }>, z.ZodEnum<{
1155
1671
  knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
1156
1672
  knowledge_file_over_limit: "knowledge_file_over_limit";
@@ -1191,6 +1707,8 @@ declare const knowledgeSourceItemsOutputSchema: z.ZodObject<{
1191
1707
  knowledge_source_limit_reached: "knowledge_source_limit_reached";
1192
1708
  knowledge_item_invalid: "knowledge_item_invalid";
1193
1709
  knowledge_fetch_not_allowed: "knowledge_fetch_not_allowed";
1710
+ knowledge_ingest_cancelled: "knowledge_ingest_cancelled";
1711
+ knowledge_item_removed: "knowledge_item_removed";
1194
1712
  }>, z.ZodEnum<{
1195
1713
  knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
1196
1714
  knowledge_file_over_limit: "knowledge_file_over_limit";
@@ -1233,6 +1751,8 @@ declare const knowledgeRetryInputSchema: z.ZodUnion<readonly [z.ZodObject<{
1233
1751
  knowledge_source_limit_reached: "knowledge_source_limit_reached";
1234
1752
  knowledge_item_invalid: "knowledge_item_invalid";
1235
1753
  knowledge_fetch_not_allowed: "knowledge_fetch_not_allowed";
1754
+ knowledge_ingest_cancelled: "knowledge_ingest_cancelled";
1755
+ knowledge_item_removed: "knowledge_item_removed";
1236
1756
  }>, z.ZodEnum<{
1237
1757
  knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
1238
1758
  knowledge_file_over_limit: "knowledge_file_over_limit";
@@ -1262,6 +1782,7 @@ declare const knowledgeRetryOutputSchema: z.ZodObject<{
1262
1782
  }>;
1263
1783
  }, z.core.$strict>>>;
1264
1784
  queued: z.ZodNumber;
1785
+ released: z.ZodOptional<z.ZodNumber>;
1265
1786
  }, z.core.$strict>;
1266
1787
  type KnowledgeRetryOutput = z.infer<typeof knowledgeRetryOutputSchema>;
1267
1788
  declare const knowledgeLocateInputSchema: z.ZodObject<{
@@ -1284,8 +1805,26 @@ declare const knowledgeLocateOutputSchema: z.ZodObject<{
1284
1805
  fetchedAt: z.ZodOptional<z.ZodString>;
1285
1806
  withdrawnAt: z.ZodOptional<z.ZodString>;
1286
1807
  purgedAt: z.ZodOptional<z.ZodString>;
1808
+ removedAt: z.ZodOptional<z.ZodString>;
1287
1809
  }, z.core.$strict>;
1288
1810
  type KnowledgeLocateOutput = z.infer<typeof knowledgeLocateOutputSchema>;
1811
+ /**
1812
+ * The delete question of a Workflow (KBW-2c): the Knowledge Bases its source feeds, each with
1813
+ * how many documents it holds there, which a delete withdraws. Those the reader may not open are
1814
+ * counted only, by number of Knowledge Bases and documents, and never named.
1815
+ */
1816
+ declare const knowledgeWorkflowSourcesOutputSchema: z.ZodObject<{
1817
+ knowledgeBases: z.ZodArray<z.ZodObject<{
1818
+ name: z.ZodString;
1819
+ title: z.ZodString;
1820
+ documents: z.ZodNumber;
1821
+ }, z.core.$strict>>;
1822
+ hidden: z.ZodObject<{
1823
+ knowledgeBases: z.ZodNumber;
1824
+ documents: z.ZodNumber;
1825
+ }, z.core.$strict>;
1826
+ }, z.core.$strict>;
1827
+ type KnowledgeWorkflowSourcesOutput = z.infer<typeof knowledgeWorkflowSourcesOutputSchema>;
1289
1828
 
1290
1829
  /** Dataset checkpoints exposed in Workflow metadata; rows remain in object storage. */
1291
1830
  declare const WORKFLOW_DATASET_STATES: readonly ["writing", "complete", "deleted"];
@@ -1298,6 +1837,16 @@ declare const workflowDatasetReferenceSchema: z.ZodObject<{
1298
1837
  bytes: z.ZodNumber;
1299
1838
  offset: z.ZodOptional<z.ZodNumber>;
1300
1839
  }, z.core.$strict>;
1840
+ /**
1841
+ * A file of a Workflow run as step data holds it: the id of the Managed File the run owns, its
1842
+ * name, its type and its size. The bytes stay in the run's files; no step carries them inline.
1843
+ */
1844
+ declare const workflowFileReferenceSchema: z.ZodObject<{
1845
+ $file: z.ZodString;
1846
+ name: z.ZodString;
1847
+ mimeType: z.ZodString;
1848
+ bytes: z.ZodNumber;
1849
+ }, z.core.$strict>;
1301
1850
  /** One row of a batch's failures dataset, preserving the input item for a retry. */
1302
1851
  declare const operationBatchFailureSchema: z.ZodObject<{
1303
1852
  item: z.ZodJSONSchema;
@@ -1318,6 +1867,16 @@ declare const operationBatchResultSchema: z.ZodObject<{
1318
1867
  type OperationBatchResult = z.infer<typeof operationBatchResultSchema>;
1319
1868
  type OperationBatchFailure = z.infer<typeof operationBatchFailureSchema>;
1320
1869
 
1870
+ /** How long an origin link may be. */
1871
+ declare const KNOWLEDGE_ORIGIN_LINK_MAX_CHARS = 4000;
1872
+ /** What an edit did to the origin link of a document: entered or changed it, or cleared it. */
1873
+ declare const KNOWLEDGE_ORIGIN_LINK_CHANGES: readonly ["set", "cleared"];
1874
+ /**
1875
+ * Where a person opens the original of a document at its source (DS-6b): an `http` or `https`
1876
+ * address and nothing else, never one that carries a credential. The source's own sign-in
1877
+ * decides who reaches the original; a token in the link would decide it in its place.
1878
+ */
1879
+ declare const knowledgeOriginLinkSchema: z.ZodURL;
1321
1880
  /** Reserved until CONN-DL: the Workflow's account must be allowed to use this Connection. */
1322
1881
  declare const knowledgeIngestFetchSchema: z.ZodObject<{
1323
1882
  connection: z.ZodString;
@@ -1425,15 +1984,27 @@ declare const knowledgeWithdrawInputSchema: z.ZodObject<{
1425
1984
  declare const knowledgeWithdrawOutputSchema: z.ZodObject<{
1426
1985
  withdrawn: z.ZodNumber;
1427
1986
  }, z.core.$strict>;
1987
+ /** The most documents one call of `pending` hands out: each brings a dataset of its pages. */
1988
+ declare const KNOWLEDGE_PENDING_MAX_LIMIT = 1000;
1428
1989
  declare const knowledgePendingInputSchema: z.ZodObject<{
1429
1990
  type: z.ZodOptional<z.ZodString>;
1430
1991
  since: z.ZodOptional<z.ZodISODateTime>;
1431
1992
  limit: z.ZodNumber;
1432
1993
  }, z.core.$strict>;
1994
+ /**
1995
+ * One document `pending` hands out, oldest `changedAt` first. `source` is the id of the source
1996
+ * it came from, or null for a file added by hand; `path` is its path at that source, or
1997
+ * `/<name>`. `changedAt` is when its pages last changed: a new version fetched or added, or its
1998
+ * content extracted again. Pass the last row's `changedAt` as the next call's `since`.
1999
+ */
1433
2000
  declare const knowledgePendingRowSchema: z.ZodObject<{
1434
2001
  id: z.ZodString;
1435
2002
  type: z.ZodString;
1436
2003
  contentHash: z.ZodString;
2004
+ source: z.ZodNullable<z.ZodString>;
2005
+ path: z.ZodString;
2006
+ name: z.ZodString;
2007
+ changedAt: z.ZodISODateTime;
1437
2008
  pages: z.ZodObject<{
1438
2009
  $dataset: z.ZodString;
1439
2010
  rowCount: z.ZodNumber;
@@ -1441,6 +2012,15 @@ declare const knowledgePendingRowSchema: z.ZodObject<{
1441
2012
  offset: z.ZodOptional<z.ZodNumber>;
1442
2013
  }, z.core.$strict>;
1443
2014
  }, z.core.$strict>;
2015
+ /**
2016
+ * One row of a document's `pages` dataset, in page order: an XLSX sheet or a PDF page, tables
2017
+ * as Markdown. A page longer than one dataset row goes on in the next row of the same number;
2018
+ * joining the rows of one page with a line break gives its text.
2019
+ */
2020
+ declare const knowledgePendingPageRowSchema: z.ZodObject<{
2021
+ page: z.ZodNumber;
2022
+ text: z.ZodString;
2023
+ }, z.core.$strict>;
1444
2024
  declare const knowledgePendingOutputSchema: z.ZodObject<{
1445
2025
  documents: z.ZodObject<{
1446
2026
  $dataset: z.ZodString;
@@ -1589,7 +2169,7 @@ declare const knowledgeWriteContracts: {
1589
2169
  withdrawn: z.ZodNumber;
1590
2170
  }, z.core.$strict>;
1591
2171
  readonly effect: "changing";
1592
- readonly right: "knowledge_base.write";
2172
+ readonly right: "knowledge_base.ingest";
1593
2173
  readonly keyLevel: "write";
1594
2174
  readonly completion: "async";
1595
2175
  readonly batch: true;
@@ -1603,11 +2183,11 @@ declare const knowledgeWriteContracts: {
1603
2183
  withdrawn: z.ZodNumber;
1604
2184
  }, z.core.$strict>;
1605
2185
  readonly effect: "changing";
1606
- readonly right: "knowledge_base.write";
2186
+ readonly right: "knowledge_base.ingest";
1607
2187
  readonly keyLevel: "write";
1608
2188
  };
1609
2189
  readonly pending: {
1610
- readonly description: "Pull pending documents by type and time as a dataset; page text is another dataset reference.";
2190
+ readonly description: "Pull indexed documents of a type whose pages changed after a time, oldest change first, as a dataset; each row's page text is another dataset reference.";
1611
2191
  readonly inputSchema: z.ZodObject<{
1612
2192
  type: z.ZodOptional<z.ZodString>;
1613
2193
  since: z.ZodOptional<z.ZodISODateTime>;
@@ -1625,6 +2205,10 @@ declare const knowledgeWriteContracts: {
1625
2205
  id: z.ZodString;
1626
2206
  type: z.ZodString;
1627
2207
  contentHash: z.ZodString;
2208
+ source: z.ZodNullable<z.ZodString>;
2209
+ path: z.ZodString;
2210
+ name: z.ZodString;
2211
+ changedAt: z.ZodISODateTime;
1628
2212
  pages: z.ZodObject<{
1629
2213
  $dataset: z.ZodString;
1630
2214
  rowCount: z.ZodNumber;
@@ -1680,7 +2264,7 @@ declare const knowledgeWriteContracts: {
1680
2264
  }, z.core.$strict>;
1681
2265
  }, z.core.$strict>;
1682
2266
  readonly effect: "changing";
1683
- readonly right: "knowledge_base.write";
2267
+ readonly right: "knowledge_base.ingest";
1684
2268
  readonly keyLevel: "write";
1685
2269
  readonly batch: true;
1686
2270
  };
@@ -1716,6 +2300,7 @@ type KnowledgeWithdrawInput = z.infer<typeof knowledgeWithdrawInputSchema>;
1716
2300
  type KnowledgeWithdrawOutput = z.infer<typeof knowledgeWithdrawOutputSchema>;
1717
2301
  type KnowledgePendingInput = z.infer<typeof knowledgePendingInputSchema>;
1718
2302
  type KnowledgePendingRow = z.infer<typeof knowledgePendingRowSchema>;
2303
+ type KnowledgePendingPageRow = z.infer<typeof knowledgePendingPageRowSchema>;
1719
2304
  type KnowledgePendingOutput = z.infer<typeof knowledgePendingOutputSchema>;
1720
2305
  type KnowledgePutProcessedInput = z.infer<typeof knowledgePutProcessedInputSchema>;
1721
2306
  type KnowledgeExtractFieldsInput = z.infer<typeof knowledgeExtractFieldsInputSchema>;
@@ -1773,7 +2358,7 @@ declare const dataStoreRecordsRuleSchema: z.ZodObject<{
1773
2358
  fromField: z.ZodString;
1774
2359
  }, z.core.$strict>]>;
1775
2360
  precedence: z.ZodDefault<z.ZodArray<z.ZodString>>;
1776
- review: z.ZodDefault<z.ZodObject<{
2361
+ review: z.ZodPrefault<z.ZodObject<{
1777
2362
  always: z.ZodDefault<z.ZodArray<z.ZodString>>;
1778
2363
  }, z.core.$strict>>;
1779
2364
  retainWithoutSource: z.ZodDefault<z.ZodBoolean>;
@@ -1792,6 +2377,8 @@ declare const recordEvidenceResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1792
2377
  }, z.core.$strict>], "status">;
1793
2378
  type RecordEvidenceResult = z.infer<typeof recordEvidenceResultSchema>;
1794
2379
  declare const RECORD_FIELD_STATES: readonly ["extracted", "confirmed", "corrected", "conflict"];
2380
+ /** Why a field waits for a person in "Prüfen". */
2381
+ declare const RECORD_FLAG_REASONS: readonly ["conflict", "not_evidenced", "confirmation_required", "key_unresolved"];
1795
2382
  declare const RECORD_FIELD_FAILURE_CODES: readonly ["record_field_unknown"];
1796
2383
  declare const dataStoreRecordProposalItemSchema: z.ZodObject<{
1797
2384
  knowledgeBaseId: z.ZodString;
@@ -1861,6 +2448,7 @@ declare const dataStoreRecordFieldSchema: z.ZodObject<{
1861
2448
  page: z.ZodNumber;
1862
2449
  quote: z.ZodString;
1863
2450
  name: z.ZodString;
2451
+ correctedValue: z.ZodNullable<z.ZodJSONSchema>;
1864
2452
  table: z.ZodString;
1865
2453
  key: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1866
2454
  knowledgeBaseId: z.ZodString;
@@ -1894,6 +2482,7 @@ declare const dataStoreRecordsFlaggedOutputSchema: z.ZodObject<{
1894
2482
  page: z.ZodNumber;
1895
2483
  quote: z.ZodString;
1896
2484
  name: z.ZodString;
2485
+ correctedValue: z.ZodNullable<z.ZodJSONSchema>;
1897
2486
  table: z.ZodString;
1898
2487
  key: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1899
2488
  knowledgeBaseId: z.ZodString;
@@ -1925,6 +2514,11 @@ declare const dataStoreRecordsFlaggedOutputSchema: z.ZodObject<{
1925
2514
  confirmation_required: "confirmation_required";
1926
2515
  key_unresolved: "key_unresolved";
1927
2516
  }>;
2517
+ document: z.ZodOptional<z.ZodObject<{
2518
+ knowledgeBase: z.ZodString;
2519
+ fileName: z.ZodString;
2520
+ }, z.core.$strict>>;
2521
+ decidedByName: z.ZodOptional<z.ZodString>;
1928
2522
  }, z.core.$strict>>;
1929
2523
  nextCursor: z.ZodOptional<z.ZodString>;
1930
2524
  }, z.core.$strict>;
@@ -1935,6 +2529,8 @@ interface RecordColumn {
1935
2529
  nullable: boolean;
1936
2530
  generated?: boolean;
1937
2531
  }
2532
+ /** Whether a column takes the value, as a proposal and a person's correction are checked. */
2533
+ declare function recordColumnTakes(column: RecordColumn, value: unknown): boolean;
1938
2534
  /**
1939
2535
  * Validate a whole item before any candidate or customer row is written. The batch writer
1940
2536
  * maps this refusal to record_field_unknown for that item and continues with other items.
@@ -2034,6 +2630,7 @@ declare const dataStoreRecordsContracts: {
2034
2630
  page: z.ZodNumber;
2035
2631
  quote: z.ZodString;
2036
2632
  name: z.ZodString;
2633
+ correctedValue: z.ZodNullable<z.ZodJSONSchema>;
2037
2634
  table: z.ZodString;
2038
2635
  key: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2039
2636
  knowledgeBaseId: z.ZodString;
@@ -2065,6 +2662,11 @@ declare const dataStoreRecordsContracts: {
2065
2662
  confirmation_required: "confirmation_required";
2066
2663
  key_unresolved: "key_unresolved";
2067
2664
  }>;
2665
+ document: z.ZodOptional<z.ZodObject<{
2666
+ knowledgeBase: z.ZodString;
2667
+ fileName: z.ZodString;
2668
+ }, z.core.$strict>>;
2669
+ decidedByName: z.ZodOptional<z.ZodString>;
2068
2670
  }, z.core.$strict>>;
2069
2671
  nextCursor: z.ZodOptional<z.ZodString>;
2070
2672
  }, z.core.$strict>;
@@ -2080,17 +2682,44 @@ type DataStoreRecordsFlaggedOutput = z.infer<typeof dataStoreRecordsFlaggedOutpu
2080
2682
  /** The UTC counter windows, metrics and scopes a model usage refusal may name. */
2081
2683
  declare const MODEL_USAGE_LIMIT_PERIODS: readonly ["day", "month"];
2082
2684
  declare const MODEL_USAGE_LIMIT_METRICS: readonly ["modelCallCount", "tokens", "costMicros"];
2083
- declare const MODEL_USAGE_LIMIT_SCOPES: readonly ["instance", "user", "system"];
2685
+ declare const MODEL_USAGE_LIMIT_SCOPES: readonly ["instance", "user", "system", "workspace"];
2686
+ /**
2687
+ * Where an admin sets a spend limit (LU-2): the instance, one default for every shared
2688
+ * workspace and one for every user, and a value for one workspace or one user that replaces
2689
+ * that default.
2690
+ */
2691
+ declare const USAGE_SPEND_LIMIT_LEVELS: readonly ["instance", "workspace_default", "workspace", "user_default", "user"];
2084
2692
  /** The limit that refused a call: its period, what it counts, and whose counter it is. */
2085
- interface ModelUsageRefusal {
2693
+ type ModelUsageRefusal = {
2086
2694
  period: (typeof MODEL_USAGE_LIMIT_PERIODS)[number];
2087
2695
  metric: (typeof MODEL_USAGE_LIMIT_METRICS)[number];
2088
2696
  /**
2089
2697
  * `user`: the person's own calls. `system`: the calls the product makes for a person, or
2090
- * those no person made. `instance`: the spend budget everyone shares.
2698
+ * those no person made. `workspace`: the calls inside one shared workspace. `instance`: the
2699
+ * spend budget everyone shares.
2091
2700
  */
2092
2701
  scope: (typeof MODEL_USAGE_LIMIT_SCOPES)[number];
2093
- }
2702
+ };
2703
+ /** The workspace key every Personal Workspace shares in the usage sums (LU-3): one row. */
2704
+ declare const PERSONAL_WORKSPACES_KEY = "personal";
2705
+ /**
2706
+ * The agent key every person's own agent ("Only me") shares in the usage of a shared workspace:
2707
+ * the team's Owners and the Usage page see that someone's own agent was used there, never which.
2708
+ * No agent the Studio names starts with a colon.
2709
+ */
2710
+ declare const PERSONAL_AGENTS_KEY = ":personal";
2711
+ /**
2712
+ * The start of the agent key of a call no agent made, which the Breakdown by agent groups by
2713
+ * what the product made it for (`:purpose:knowledge_page_reading`), not as one unnamed row.
2714
+ */
2715
+ declare const USAGE_PURPOSE_AGENT_KEY_PREFIX = ":purpose:";
2716
+ /** What the Breakdown of the Usage page groups by (LU-3, limits spec 3.3, view 2). */
2717
+ declare const USAGE_BREAKDOWN_DIMENSIONS: readonly ["workspace", "agent", "app", "workflow", "model", "origin"];
2718
+ /**
2719
+ * Where usage came from (limits spec 3.2): a conversation, an App, a Workflow, Knowledge Base
2720
+ * ingestion, or a call the product made for itself, such as a title or a guardrail check.
2721
+ */
2722
+ declare const USAGE_ORIGINS: readonly ["conversation", "app", "workflow", "knowledge_base", "system"];
2094
2723
 
2095
2724
  /**
2096
2725
  * The JSON Schema `format` of a string field that takes Markdown, such as the body of
@@ -2316,8 +2945,8 @@ type MailSendOutput = z.infer<typeof mailSendOutputSchema>;
2316
2945
  /** A recipient as a preview names it: a person by name, an address as written. */
2317
2946
  declare const mailPreviewRecipientSchema: z.ZodObject<{
2318
2947
  kind: z.ZodEnum<{
2319
- address: "address";
2320
2948
  person: "person";
2949
+ address: "address";
2321
2950
  }>;
2322
2951
  label: z.ZodString;
2323
2952
  }, z.core.$strict>;
@@ -2334,22 +2963,22 @@ declare const mailSendPreviewSchema: z.ZodObject<{
2334
2963
  replyTo: z.ZodOptional<z.ZodEmail>;
2335
2964
  to: z.ZodArray<z.ZodObject<{
2336
2965
  kind: z.ZodEnum<{
2337
- address: "address";
2338
2966
  person: "person";
2967
+ address: "address";
2339
2968
  }>;
2340
2969
  label: z.ZodString;
2341
2970
  }, z.core.$strict>>;
2342
2971
  cc: z.ZodArray<z.ZodObject<{
2343
2972
  kind: z.ZodEnum<{
2344
- address: "address";
2345
2973
  person: "person";
2974
+ address: "address";
2346
2975
  }>;
2347
2976
  label: z.ZodString;
2348
2977
  }, z.core.$strict>>;
2349
2978
  bcc: z.ZodArray<z.ZodObject<{
2350
2979
  kind: z.ZodEnum<{
2351
- address: "address";
2352
2980
  person: "person";
2981
+ address: "address";
2353
2982
  }>;
2354
2983
  label: z.ZodString;
2355
2984
  }, z.core.$strict>>;
@@ -2370,22 +2999,22 @@ declare const mailSendSimulatedOutputSchema: z.ZodObject<{
2370
2999
  replyTo: z.ZodOptional<z.ZodEmail>;
2371
3000
  to: z.ZodArray<z.ZodObject<{
2372
3001
  kind: z.ZodEnum<{
2373
- address: "address";
2374
3002
  person: "person";
3003
+ address: "address";
2375
3004
  }>;
2376
3005
  label: z.ZodString;
2377
3006
  }, z.core.$strict>>;
2378
3007
  cc: z.ZodArray<z.ZodObject<{
2379
3008
  kind: z.ZodEnum<{
2380
- address: "address";
2381
3009
  person: "person";
3010
+ address: "address";
2382
3011
  }>;
2383
3012
  label: z.ZodString;
2384
3013
  }, z.core.$strict>>;
2385
3014
  bcc: z.ZodArray<z.ZodObject<{
2386
3015
  kind: z.ZodEnum<{
2387
- address: "address";
2388
3016
  person: "person";
3017
+ address: "address";
2389
3018
  }>;
2390
3019
  label: z.ZodString;
2391
3020
  }, z.core.$strict>>;
@@ -2418,22 +3047,22 @@ declare const workflowMessageMailParamsSchema: z.ZodObject<{
2418
3047
  intendedRecipients: z.ZodObject<{
2419
3048
  to: z.ZodArray<z.ZodObject<{
2420
3049
  kind: z.ZodEnum<{
2421
- address: "address";
2422
3050
  person: "person";
3051
+ address: "address";
2423
3052
  }>;
2424
3053
  label: z.ZodString;
2425
3054
  }, z.core.$strict>>;
2426
3055
  cc: z.ZodArray<z.ZodObject<{
2427
3056
  kind: z.ZodEnum<{
2428
- address: "address";
2429
3057
  person: "person";
3058
+ address: "address";
2430
3059
  }>;
2431
3060
  label: z.ZodString;
2432
3061
  }, z.core.$strict>>;
2433
3062
  bcc: z.ZodArray<z.ZodObject<{
2434
3063
  kind: z.ZodEnum<{
2435
- address: "address";
2436
3064
  person: "person";
3065
+ address: "address";
2437
3066
  }>;
2438
3067
  label: z.ZodString;
2439
3068
  }, z.core.$strict>>;
@@ -2521,22 +3150,22 @@ declare const mailSendContract: {
2521
3150
  replyTo: z.ZodOptional<z.ZodEmail>;
2522
3151
  to: z.ZodArray<z.ZodObject<{
2523
3152
  kind: z.ZodEnum<{
2524
- address: "address";
2525
3153
  person: "person";
3154
+ address: "address";
2526
3155
  }>;
2527
3156
  label: z.ZodString;
2528
3157
  }, z.core.$strict>>;
2529
3158
  cc: z.ZodArray<z.ZodObject<{
2530
3159
  kind: z.ZodEnum<{
2531
- address: "address";
2532
3160
  person: "person";
3161
+ address: "address";
2533
3162
  }>;
2534
3163
  label: z.ZodString;
2535
3164
  }, z.core.$strict>>;
2536
3165
  bcc: z.ZodArray<z.ZodObject<{
2537
3166
  kind: z.ZodEnum<{
2538
- address: "address";
2539
3167
  person: "person";
3168
+ address: "address";
2540
3169
  }>;
2541
3170
  label: z.ZodString;
2542
3171
  }, z.core.$strict>>;
@@ -2597,12 +3226,564 @@ declare const FEEDBACK_CATEGORY_MAX_LENGTH = 60;
2597
3226
  /** The longest note a reviewer leaves when marking a comment handled. */
2598
3227
  declare const FEEDBACK_NOTE_MAX_LENGTH = 2000;
2599
3228
  /**
2600
- * What a comment is about. `message` in the first version; an App and a Workflow run follow
2601
- * (LU-6), each with a reference of its own.
3229
+ * What a comment is about: an agent's answer (LU-4), an App a person uses, and the result of a
3230
+ * Workflow run that reached a person's Inbox (LU-6).
2602
3231
  */
2603
- declare const FEEDBACK_SUBJECT_KINDS: readonly ["message"];
3232
+ declare const FEEDBACK_SUBJECT_KINDS: readonly ["message", "app", "workflow_run"];
2604
3233
  type FeedbackSubjectKind = (typeof FEEDBACK_SUBJECT_KINDS)[number];
3234
+ /** The kinds of asset a comment is about: an agent, an App, a Workflow. */
3235
+ declare const FEEDBACK_ASSET_KINDS: readonly ["agent", "app", "workflow"];
3236
+ type FeedbackAssetKind = (typeof FEEDBACK_ASSET_KINDS)[number];
2605
3237
  declare const FEEDBACK_STATES: readonly ["new", "handled"];
2606
3238
  type FeedbackState = (typeof FEEDBACK_STATES)[number];
2607
3239
 
2608
- export { ACCESS_SOURCES, ACTIONS, ACTIVE_AGENT_RUN_STATUSES, ADMINISTERED_USER_STATUSES, AGENT_AVAILABILITY_MODES, AGENT_EDITABLE_FIELDS, AGENT_PREVIEW_SOURCES, AGENT_RUN_FAILURE_CATEGORIES, AGENT_RUN_STATUSES, AGENT_STARTERS_MAX, API_CREDENTIAL_SCOPES, APPROVAL_CHECK_FAILURE_OUTCOMES, APPROVAL_CHECK_STATUSES, APPROVAL_EXECUTIONS, APPROVAL_REQUEST_STATUSES, APP_ACTION_CALL_STATUSES, APP_AUDIENCES, APP_ERROR_CODES, APP_ERROR_STATUS_CODES, APP_MODES, ARTIFACT_PREVIEW_IMAGE_FORMATS, ARTIFACT_PREVIEW_IMAGE_MIME_TYPES, ARTIFACT_PREVIEW_STATUSES, ASSET_ACCESS_VERBS, ASSET_LIFECYCLES, ASSET_NAME_REFUSAL_REASONS, ASSET_OWNER_KINDS, ASSET_REPO_BUNDLE_KINDS, ASSET_REPRESENTATIONS, ASSET_SYNC_CHANGE_TYPES, ATTACHMENT_CREATE_OUTCOMES, AUDIT_ACTOR_KINDS, AUDIT_EVENT_STATUSES, AUDIT_OUTCOMES, AUDIT_TIERS, AUTH_PRINCIPAL_KINDS, AUTH_SCOPE_WILDCARD, type AccessSource, type ActiveAgentRunStatus, type AdministeredUserStatus, type AgentAvailabilityMode, type AgentConfig, type AgentEditableField, type AgentInitialPromptConfig, type AgentRunFailureCategory, type AgentRunStatus, type ApiCredentialScope, type AppActionCallStatus, type AppErrorCode, type AppMode, type ApprovalCheckFailureOutcome, type ApprovalCheckStatus, type ApprovalExecution, type ApprovalRequestStatus, type ArtifactPreviewImageFormat, type ArtifactPreviewImageMimeType, type ArtifactPreviewStatus, type AssetLifecycle, type AssetNameRefusalReason, type AssetOwnerKind, type AssetRepoBundleKind, type AssetRepresentation, type AssetSyncChangeType, type AttachmentCreateOutcome, type AuditActorKind, type AuditEventStatus, type AuditOutcome, type AuditTier, type AuthPrincipalKind, CHAT_MESSAGE_ROLES, CHAT_SESSION_AUTH_SCOPES, COLLABORATION_WORKSPACE_KINDS, CONFIG_ASSET_CHANGE_OPERATIONS, CONFIG_ASSET_KINDS, CONNECTION_BINDING_STATES, CONNECTION_EXPOSURES, CONNECTION_HEALTH_STATES, CONNECTION_NAME_MAX_LENGTH, CONNECTION_NAME_PATTERN, CONNECTION_NETWORKS, CONNECTION_OAUTH_REGISTRATIONS, CONNECTION_OPERATION_POLICIES, CONNECTION_OPERATION_STATUSES, CONNECTION_ORIGINS, CONNECTION_PROVIDER_REVOCATIONS, CONNECTION_SECRET_STATES, CONNECTOR_TEST_STATUSES, CONVERSATION_ATTACHMENT_STATUSES, CONVERSATION_KINDS, CONVERSATION_VISIBILITIES, type ChatMessageRole, type ChatSessionAuthScope, type CollaborationWorkspaceKind, type ConfigAssetChangeOperation, type ConfigAssetKind, type ConnectionBindingState, type ConnectionExposure, type ConnectionHealth, type ConnectionNetwork, type ConnectionOAuthRegistration, type ConnectionOperationPolicy, type ConnectionOperationStatus, type ConnectionOrigin, type ConnectionProviderRevocation, type ConnectionSecretState, type ConnectorTestStatus, type ConversationAttachmentStatus, type ConversationKind, type ConversationVisibility, DATABASE_RELATION_TYPES, DATA_STORE_CONDITIONS, DATA_STORE_INSERT_CONFLICT_MODES, DATA_STORE_LOAD_CONFLICT_MODES, DATA_STORE_MIGRATION_OUTCOMES, DATA_STORE_SCALAR_TYPES, DATA_STORE_STATUSES, DECIDED_APPROVAL_REQUEST_STATUSES, DELETION_STATES, type DataScopes, type DataStoreCondition, type DataStoreInsertConflictMode, type DataStoreLoadConflictMode, type DataStoreMigrationOutcome, type DataStoreRecordField, type DataStoreRecordProposalItem, type DataStoreRecordsDecideInput, type DataStoreRecordsDecideOutput, type DataStoreRecordsFlaggedInput, type DataStoreRecordsFlaggedOutput, type DataStoreRecordsProposeInput, type DataStoreRecordsRule, type DataStoreScalarType, type DataStoreStatus, type DatabaseRelationType, type DecidedApprovalRequestStatus, type DeletionState, ENDED_AGENT_RUN_STATUSES, ENDED_APPROVAL_EXECUTIONS, type EndedAgentRunStatus, type EndedApprovalExecution, FAILED_JOB_STATUSES, FEEDBACK_CATEGORY_MAX_LENGTH, FEEDBACK_NOTE_MAX_LENGTH, FEEDBACK_STATES, FEEDBACK_SUBJECT_KINDS, FEEDBACK_SUMMARY_MAX_LENGTH, FEEDBACK_TEXT_MAX_LENGTH, FIRST_PARTY_AUTH_SCOPES, FOLLOW_UP_MODES, FOLLOW_UP_STATUSES, type FailedJobStatus, type FeedbackState, type FeedbackSubjectKind, type FirstPartyAuthScope, GRANT_EFFECTS, GRANT_HOLDER_KINDS, GRANT_SCOPE_KINDS, GUARDRAIL_HIT_OUTCOMES, GUARDRAIL_NAME_MAX_LENGTH, GUARDRAIL_NAME_PATTERN, GUARDRAIL_OUTCOMES, type GrantEffect, type GrantHolderKind, type GrantScopeKind, type GuardrailHitOutcome, type GuardrailOutcome, IDEMPOTENCY_KEY_MAX_LENGTH, INFRASTRUCTURE_SECRET_STATES, INFRASTRUCTURE_WITHHELD_FIELDS, type InfrastructureSecretState, type InfrastructureWithheldField, JOB_STATUSES, type JobStatus, KNOWLEDGE_BASE_STATUSES, KNOWLEDGE_CHECK_STATUSES, KNOWLEDGE_DOCUMENT_FAILURE_CODES, KNOWLEDGE_DOCUMENT_STATES, KNOWLEDGE_DOCUMENT_WAIT_CODES, KNOWLEDGE_FILE_MAX_BYTES, KNOWLEDGE_SEARCH_SIGNALS, KNOWLEDGE_SOURCE_FAILURE_CODES, KNOWLEDGE_SOURCE_ITEM_FAILURE_CODES, KNOWLEDGE_SOURCE_ITEM_SHOWN_STATES, KNOWLEDGE_SOURCE_ITEM_STATES, KNOWLEDGE_SYNC_COUNTS, KNOWLEDGE_SYNC_MODES, KNOWLEDGE_SYNC_RUN_STATES, type KnowledgeBaseStatus, type KnowledgeCheckStatus, type KnowledgeDocumentFailureCode, type KnowledgeDocumentState, type KnowledgeDocumentWaitCode, type KnowledgeExtractFieldsInput, type KnowledgeExtractFieldsOutput, type KnowledgeIngestFetch, type KnowledgeIngestInput, type KnowledgeIngestItem, type KnowledgeIngestOutput, type KnowledgeLocateInput, type KnowledgeLocateOutput, type KnowledgePendingInput, type KnowledgePendingOutput, type KnowledgePendingRow, type KnowledgeProcessorOutput, type KnowledgePutProcessedInput, type KnowledgeRetryInput, type KnowledgeRetryOutput, type KnowledgeSearchSignal, type KnowledgeSourceFailureCode, type KnowledgeSourceItemFailureCode, type KnowledgeSourceItemShownState, type KnowledgeSourceItemState, type KnowledgeSourceItemsInput, type KnowledgeSourceItemsOutput, type KnowledgeSourcesOutput, type KnowledgeSyncCount, type KnowledgeSyncInput, type KnowledgeSyncMode, type KnowledgeSyncResult, type KnowledgeSyncRunState, type KnowledgeWithdrawInput, type KnowledgeWithdrawOutput, type KnowledgeWorkflowSource, LISTED_DATA_STORE_STATUSES, LIVE_JOB_STATUSES, type ListedDataStoreStatus, type LiveJobStatus, type LocaleCode, type LocalizedStringConfig, MAIL_ADDRESS_MAX_LENGTH, MAIL_ATTACHMENTS_MAX_BYTES, MAIL_ATTACHMENTS_MAX_FILES, MAIL_AUDIT_MAX_DOMAINS, MAIL_BODY_MAX_BYTES, MAIL_OUTBOUND_DEFAULT_LIMITS, MAIL_OUTBOUND_FOOTER_MAX_LENGTH, MAIL_RECIPIENT_DOMAINS_ANY, MAIL_RECIPIENT_DOMAIN_PATTERN, MAIL_RECIPIENT_ID_PATTERN, MAIL_SENDER_CONNECTION_PREFIX, MAIL_SENDER_NAME_MAX_LENGTH, MAIL_SENDER_RESOURCE_KIND, MAIL_SENDER_SYSTEM, MAIL_SENDER_SYSTEM_ICON, MAIL_SENDER_USE_ACTION, MAIL_SEND_ERROR_CODES, MAIL_SEND_MAX_ADDRESSES, MAIL_SEND_OPERATION, MAIL_SEND_REFUSAL_REASONS, MAIL_SUBJECT_MAX_LENGTH, MAIL_WORKFLOW_MESSAGE_TEMPLATE, MANAGED_FILE_STATUSES, MESSAGE_FINISH_STATUSES, MODEL_PROVIDER_AUTH_MODES, MODEL_USAGE_EVENT_STATUSES, MODEL_USAGE_LIMIT_METRICS, MODEL_USAGE_LIMIT_PERIODS, MODEL_USAGE_LIMIT_SCOPES, MODEL_USAGE_SOURCES, MODEL_USAGE_TIERS, type MailPreviewRecipient, type MailSendErrorCode, type MailSendInput, type MailSendInputFields, type MailSendOutput, type MailSendPreview, type MailSendRecipient, type MailSendRecipientList, type MailSendRefusalDetails, type MailSendSimulatedOutput, type MailSenderId, type MessageFinishStatus, type ModelProviderAuthMode, type ModelUsageEventStatus, type ModelUsageRefusal, type ModelUsageSource, type ModelUsageTier, NOTIFY_CHANNELS, type NotifyChannel, OPENAI_COMPATIBLE_APIS, OPERATIONS_AUDIENCES, OPERATION_CONFIRMATION_DECISIONS, OPERATION_DENIAL_REASONS, OPERATION_EFFECTS, OPERATION_ORIGIN_KINDS, OPERATION_RUN_DECISION_MODES, OPERATION_RUN_DECISION_REASONS, OPERATION_RUN_STATUSES, OPERATION_TARGETS, type OpenaiCompatibleApi, type OperationBatchFailure, type OperationBatchResult, type OperationDenialReason, type OperationEffect, type OperationOriginKind, type OperationPaging, type OperationRunDecisionMode, type OperationRunDecisionReason, type OperationRunStatus, type OperationScope, type OperationTarget, type OperationsAudience, POLICY_VALUES, PRINCIPAL_HOLDER_KINDS, PROVIDER_CHECK_ERROR_CLASSES, PROVIDER_PORTS, PROVIDER_REGIONS, PUBLISHED_DATA_CONSUMER_KINDS, type PlatformAction, type PolicyValue, type PrincipalHolderKind, type ProviderCheckErrorClass, type ProviderPort, type ProviderRegion, type PublishedDataConsumerKind, READING_POLICY_VALUES, REASONING_EFFORTS, RECORDS_FLAGGED_MAX_ITEMS_PER_PAGE, RECORDS_PROPOSE_MAX_FIELDS_PER_ITEM, RECORDS_PROPOSE_MAX_ITEMS_PER_CALL, RECORD_FIELD_FAILURE_CODES, RECORD_FIELD_STATES, ROLE_GRANT_SCOPE_KINDS, ROLE_PENDING_CHANGES, ROLE_PENDING_DECISIONS, type ReadingPolicyValue, type ReasoningEffortConfig, type RecordColumn, type RecordEvidenceResult, type RoleGrantScopeKind, type RolePendingDecision, SCHEDULED_START_STATES, SERVICE_PRINCIPAL_PERMISSIONS, SERVICE_PRINCIPAL_STATUSES, SKILL_CHANGE_TYPES, SKILL_FRONTMATTER_FIELDS, SKILL_FRONTMATTER_MAX_BYTES, SKILL_FRONTMATTER_MAX_DEPTH, SKILL_NAME_PATTERN, SKILL_NAME_RULE, SKILL_ORIGINS, SKILL_PORTABLE_DESCRIPTION_MAX_CHARS, SKILL_PORTABLE_NAME_MAX_CHARS, SKILL_RESOURCE_MEDIA_TYPES, SKILL_STARTERS_MAX, SKILL_STARTER_LINE_MAX_LENGTH, SKILL_SUMMARY_MAX_LENGTH, STRUCTURED_DATA_REVIEW_REASONS, SUPPORTED_IMAGE_MIME_TYPES, type ScopeAssignmentInput, type ScopedTables, type ServicePrincipalPermission, type ServicePrincipalStatus, type SkillChangeType, type SkillConfig, type SkillFileEntry, type SkillFrontmatterRefusal, SkillMarkdownError, type SkillOrigin, type SkillResourceConfig, type SkillResourceMediaType, type SkillStarterConfig, type StructuredDataReviewReason, type SupportedImageMimeType, THEME_MODES, THEME_MODE_PREFERENCES, TOOL_CALL_STATES, TOOL_DECISION_MODES, TOOL_DECISION_OUTCOMES, TOOL_DISPLAY_MODES, TOOL_GROUPS, TOOL_INPUT_PARSE_ERROR_CODES, type ThemeMode, type ThemeModePreference, type ToolCallState, type ToolDisplayMode, type ToolGroup, type ToolInputParseErrorCode, USAGE_COST_STATUSES, USER_STATUSES, type UsageCostStatus, type UserStatus, WAITING_OPERATION_RUN_STATUSES, WEB_SOURCE_PROVIDERS, WORKFLOW_DATASET_DOWNLOAD_FORMATS, WORKFLOW_DATASET_STATES, WORKFLOW_ENDED_STATUSES, WORKFLOW_KINDS, WORKFLOW_MARKDOWN_MAX_COLUMNS, WORKFLOW_MARKDOWN_MAX_ROWS, WORKFLOW_NAME_PATTERN, WORKFLOW_NAME_RULE, WORKFLOW_RESERVED_STEP_TYPES, WORKFLOW_RIGHTS_REVISIONS, WORKFLOW_RIGHT_NEEDED_FOR, WORKFLOW_RIGHT_REFUSALS, WORKFLOW_RUN_ACCOUNT_STATUSES, WORKFLOW_RUN_MODES, WORKFLOW_RUN_STATUSES, WORKFLOW_STEP_RUN_STATUSES, WORKFLOW_STEP_SOURCE_KINDS, WORKFLOW_STEP_TYPES, WORKFLOW_TEXT_FORMAT_MARKDOWN, WORKFLOW_TEXT_MAX_PARTS, WORKFLOW_TRIGGER_KINDS, WORKSPACE_ACCENT_COLORS, WORKSPACE_ACCESS_STATES, WORKSPACE_COMMAND_STATUSES, WORKSPACE_FILE_KINDS, WORKSPACE_MEMBERSHIP_ROLES, WORKSPACE_SECTIONS, WORKSPACE_USE_ASSET_KINDS, WORKSPACE_VISIBILITIES, type WebSourceProvider, type WorkflowAssetConfig, type WorkflowDatasetDownloadFormat, type WorkflowDatasetState, type WorkflowEndedStatus, type WorkflowKind, type WorkflowMailSenderFact, type WorkflowMessageMailParams, type WorkflowReservedStepType, type WorkflowRunMode, type WorkflowRunStatus, type WorkflowStepRunStatus, type WorkflowStepSourceKind, type WorkflowStepType, type WorkflowTriggerKind, type WorkspaceAccentColor, type WorkspaceAccessState, type WorkspaceCommandStatus, type WorkspaceFileKind, type WorkspaceMembershipRole, type WorkspaceSection, type WorkspaceVisibility, YAML_DATA_MAX_VALUES, YamlDataError, type YamlDataIssue, type YamlDataIssueCode, type YamlDataOptions, type YamlDataResult, agentConfigSchema, checkStorableTexts, dataScopeNameSchema, dataScopesSchema, dataStoreRecordFieldSchema, dataStoreRecordProposalItemSchema, dataStoreRecordsContracts, dataStoreRecordsDecideInputSchema, dataStoreRecordsDecideOutputSchema, dataStoreRecordsFlaggedInputSchema, dataStoreRecordsFlaggedOutputSchema, dataStoreRecordsProposeInputSchema, dataStoreRecordsRuleSchema, deriveSkillTitle, formatSkillMarkdown, isStorableText, knowledgeExtractFieldsInputSchema, knowledgeExtractFieldsOutputSchema, knowledgeFieldValueSchema, knowledgeIngestFetchSchema, knowledgeIngestInputSchema, knowledgeIngestItemSchema, knowledgeIngestOutputSchema, knowledgeLocateInputSchema, knowledgeLocateOutputSchema, knowledgePendingInputSchema, knowledgePendingOutputSchema, knowledgePendingRowSchema, knowledgeProcessorOutputSchema, knowledgePutProcessedInputSchema, knowledgeRecordsRefusalSchema, knowledgeRetryInputSchema, knowledgeRetryOutputSchema, knowledgeSourceItemsInputSchema, knowledgeSourceItemsOutputSchema, knowledgeSourcesOutputSchema, knowledgeSyncInputSchema, knowledgeSyncResultSchema, knowledgeWithdrawInputSchema, knowledgeWithdrawOutputSchema, knowledgeWorkflowSourceSchema, knowledgeWriteContracts, loadYamlData, localeCodes, localizedStringSchema, mailAddressSchema, mailBodySchema, mailCopyRecipientListSchema, mailPreviewRecipientSchema, mailRecipientDomainSchema, mailRecipientListSchema, mailRecipientSchema, mailReplyToSchema, mailSendContract, mailSendInputSchema, mailSendOutputSchema, mailSendPreviewSchema, mailSendRefusalDetailsSchema, mailSendSimulatedOutputSchema, mailSenderIdSchema, mailSenderNameSchema, mailSubjectSchema, operationBatchFailureSchema, operationBatchResultSchema, operationPagingSchema, parseSkillMarkdown, readYamlData, recordEvidenceResultSchema, scopeAssignmentInputSchema, scopedTablesSchema, skillConfigSchema, skillFileEntrySchema, skillFileFrontmatterSchema, skillNameSchema, skillPortabilityIssues, skillResourceConfigSchema, skillResourceMediaTypeForPath, skillResourcePathSchema, skillStarterSchema, workflowConfigSchema, workflowDataFlowsSchema, workflowDatasetReferenceSchema, workflowMailSenderFactSchema, workflowMessageMailParamsSchema, yamlValueIssue, yamlValueIssueSentence };
3240
+ /** The longest note a person adds to a report. It goes into the mail and is kept nowhere. */
3241
+ declare const PLATFORM_REPORT_NOTE_MAX_LENGTH = 2000;
3242
+
3243
+ /** The source of an operation. A source the caller may not read is told by its kind alone. */
3244
+ declare const operationSourceSchema: z.ZodObject<{
3245
+ kind: z.ZodEnum<{
3246
+ workflow: "workflow";
3247
+ other: "other";
3248
+ connection: "connection";
3249
+ data_store: "data_store";
3250
+ knowledge_base: "knowledge_base";
3251
+ }>;
3252
+ title: z.ZodOptional<z.ZodString>;
3253
+ service: z.ZodOptional<z.ZodString>;
3254
+ }, z.core.$strip>;
3255
+ type OperationSourceView = z.infer<typeof operationSourceSchema>;
3256
+ declare const callableOperationSchema: z.ZodObject<{
3257
+ name: z.ZodString;
3258
+ effect: z.ZodEnum<{
3259
+ reading: "reading";
3260
+ changing: "changing";
3261
+ }>;
3262
+ title: z.ZodString;
3263
+ description: z.ZodOptional<z.ZodString>;
3264
+ source: z.ZodObject<{
3265
+ kind: z.ZodEnum<{
3266
+ workflow: "workflow";
3267
+ other: "other";
3268
+ connection: "connection";
3269
+ data_store: "data_store";
3270
+ knowledge_base: "knowledge_base";
3271
+ }>;
3272
+ title: z.ZodOptional<z.ZodString>;
3273
+ service: z.ZodOptional<z.ZodString>;
3274
+ }, z.core.$strip>;
3275
+ available: z.ZodBoolean;
3276
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3277
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3278
+ }, z.core.$strip>;
3279
+ type CallableOperationView = z.infer<typeof callableOperationSchema>;
3280
+ /** One page of callable operations. */
3281
+ declare const callableOperationsPageSchema: z.ZodObject<{
3282
+ operations: z.ZodArray<z.ZodObject<{
3283
+ name: z.ZodString;
3284
+ effect: z.ZodEnum<{
3285
+ reading: "reading";
3286
+ changing: "changing";
3287
+ }>;
3288
+ title: z.ZodString;
3289
+ description: z.ZodOptional<z.ZodString>;
3290
+ source: z.ZodObject<{
3291
+ kind: z.ZodEnum<{
3292
+ workflow: "workflow";
3293
+ other: "other";
3294
+ connection: "connection";
3295
+ data_store: "data_store";
3296
+ knowledge_base: "knowledge_base";
3297
+ }>;
3298
+ title: z.ZodOptional<z.ZodString>;
3299
+ service: z.ZodOptional<z.ZodString>;
3300
+ }, z.core.$strip>;
3301
+ available: z.ZodBoolean;
3302
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3303
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3304
+ }, z.core.$strip>>;
3305
+ nextCursor: z.ZodOptional<z.ZodString>;
3306
+ truncated: z.ZodBoolean;
3307
+ }, z.core.$strip>;
3308
+ type CallableOperationsPage = z.infer<typeof callableOperationsPageSchema>;
3309
+
3310
+ /** The tool a run calls to look at the preview. */
3311
+ declare const PREVIEW_CAPTURE_TOOL_NAME = "preview.capture";
3312
+ /** The widest picture, in pixels at device pixel ratio 1. A wider preview is scaled down. */
3313
+ declare const PREVIEW_CAPTURE_MAX_WIDTH = 1280;
3314
+ /** The tallest picture. A longer page is cut there. */
3315
+ declare const PREVIEW_CAPTURE_MAX_HEIGHT = 1600;
3316
+ /** The largest picture, in bytes. */
3317
+ declare const PREVIEW_CAPTURE_MAX_BYTES = 400000;
3318
+ /** Pictures one run may take. */
3319
+ declare const PREVIEW_CAPTURES_PER_RUN = 3;
3320
+ /** Pictures one person's runs may take in an hour. */
3321
+ declare const PREVIEW_CAPTURES_PER_HOUR = 20;
3322
+ /** How long a run waits for the person's browser to answer. */
3323
+ declare const PREVIEW_CAPTURE_WAIT_MS = 10000;
3324
+ /**
3325
+ * Why no picture was taken:
3326
+ * - `capture_limit`: the run or the person took as many as they may.
3327
+ * - `capture_unavailable`: the browser cannot draw the preview into a picture, as in Safari.
3328
+ * - `preview_not_viewed`: the person has no preview of the conversation open, or it did not answer.
3329
+ * - `preview_personal_data`: the preview reaches data through a personal connection.
3330
+ */
3331
+ declare const PREVIEW_CAPTURE_REFUSALS: readonly ["capture_limit", "capture_unavailable", "preview_not_viewed", "preview_personal_data"];
3332
+ type PreviewCaptureRefusal = (typeof PREVIEW_CAPTURE_REFUSALS)[number];
3333
+ /**
3334
+ * The size of a WebP image as its header states it, or nothing when the bytes are no complete
3335
+ * WebP file: a RIFF container of type WEBP whose length is the file's, with a `VP8 `, `VP8L`
3336
+ * or still `VP8X` chunk. The image is not decoded.
3337
+ */
3338
+ declare function readWebpSize(bytes: Uint8Array): {
3339
+ width: number;
3340
+ height: number;
3341
+ } | undefined;
3342
+ /** Whether bytes are a WebP picture within the bounds of a capture. */
3343
+ declare function isPreviewCaptureWithinBounds(bytes: Uint8Array): {
3344
+ width: number;
3345
+ height: number;
3346
+ } | undefined;
3347
+
3348
+ /** Distinct entries a report lists. Repeats are counted, and entries past this are counted. */
3349
+ declare const PREVIEW_REPORT_MAX_ENTRIES = 10;
3350
+ /** The longest message an entry keeps, after scrubbing. */
3351
+ declare const PREVIEW_REPORT_MAX_MESSAGE_CHARS = 200;
3352
+ /** The longest report, as UTF-8 JSON. Entries that do not fit are counted, not listed. */
3353
+ declare const PREVIEW_REPORT_MAX_BYTES = 2048;
3354
+ /** How long a report is kept after it was last written. */
3355
+ declare const PREVIEW_REPORT_KEEP_MS: number;
3356
+ /**
3357
+ * What an entry is: an uncaught error, an unhandled rejection, a `console.error`, a content
3358
+ * policy violation, or a call of the page that failed (by action name and refusal code).
3359
+ */
3360
+ declare const PREVIEW_REPORT_ENTRY_KINDS: readonly ["error", "rejection", "console", "policy", "call"];
3361
+ type PreviewReportEntryKind = (typeof PREVIEW_REPORT_ENTRY_KINDS)[number];
3362
+ /**
3363
+ * Whether the kit greeted: within 5 seconds of the frame loading, not (yet) while the frame is
3364
+ * young, not at all, or the folder does not use the kit, which the build records.
3365
+ */
3366
+ declare const PREVIEW_REPORT_BRIDGE_STATES: readonly ["connected", "waiting", "not_connected", "not_used"];
3367
+ type PreviewReportBridge = (typeof PREVIEW_REPORT_BRIDGE_STATES)[number];
3368
+ declare const previewReportEntrySchema: z.ZodObject<{
3369
+ kind: z.ZodEnum<{
3370
+ error: "error";
3371
+ rejection: "rejection";
3372
+ console: "console";
3373
+ policy: "policy";
3374
+ call: "call";
3375
+ }>;
3376
+ message: z.ZodString;
3377
+ code: z.ZodOptional<z.ZodString>;
3378
+ file: z.ZodOptional<z.ZodString>;
3379
+ line: z.ZodOptional<z.ZodNumber>;
3380
+ column: z.ZodOptional<z.ZodNumber>;
3381
+ count: z.ZodNumber;
3382
+ }, z.core.$strict>;
3383
+ type PreviewReportEntry = z.infer<typeof previewReportEntrySchema>;
3384
+ declare const previewReportSchema: z.ZodObject<{
3385
+ settled: z.ZodBoolean;
3386
+ loaded: z.ZodBoolean;
3387
+ bridge: z.ZodEnum<{
3388
+ connected: "connected";
3389
+ not_connected: "not_connected";
3390
+ waiting: "waiting";
3391
+ not_used: "not_used";
3392
+ }>;
3393
+ empty: z.ZodOptional<z.ZodBoolean>;
3394
+ entries: z.ZodArray<z.ZodObject<{
3395
+ kind: z.ZodEnum<{
3396
+ error: "error";
3397
+ rejection: "rejection";
3398
+ console: "console";
3399
+ policy: "policy";
3400
+ call: "call";
3401
+ }>;
3402
+ message: z.ZodString;
3403
+ code: z.ZodOptional<z.ZodString>;
3404
+ file: z.ZodOptional<z.ZodString>;
3405
+ line: z.ZodOptional<z.ZodNumber>;
3406
+ column: z.ZodOptional<z.ZodNumber>;
3407
+ count: z.ZodNumber;
3408
+ }, z.core.$strict>>;
3409
+ more: z.ZodNumber;
3410
+ }, z.core.$strict>;
3411
+ type PreviewReport = z.infer<typeof previewReportSchema>;
3412
+ /** A report as it is put together, before it is scrubbed and bounded. */
3413
+ interface UnboundPreviewReport {
3414
+ settled: boolean;
3415
+ loaded: boolean;
3416
+ bridge: PreviewReportBridge;
3417
+ empty?: boolean | undefined;
3418
+ entries: readonly {
3419
+ kind: PreviewReportEntryKind;
3420
+ message: string;
3421
+ code?: string | undefined;
3422
+ file?: string | undefined;
3423
+ line?: number | undefined;
3424
+ column?: number | undefined;
3425
+ count: number;
3426
+ }[];
3427
+ more?: number | undefined;
3428
+ }
3429
+ /**
3430
+ * A message as a report may keep it: long quoted text, the query of an address, mail
3431
+ * addresses, IBANs and digit runs become `…`, and at most 200 characters remain. The same text
3432
+ * scrubbed twice reads the same.
3433
+ */
3434
+ declare function scrubPreviewText(text: string): string;
3435
+ /**
3436
+ * Where an entry came from, as a report may keep it: a path relative to the page, a kit file as
3437
+ * its path on the instance, or `inline`. Never an origin, a query or the token of the frame's
3438
+ * address. Anything else is dropped.
3439
+ */
3440
+ declare function scrubPreviewFile(file: string | undefined): string | undefined;
3441
+ /**
3442
+ * The report as it may be kept: every message and file scrubbed, entries that read the same
3443
+ * afterwards merged with their counts added, at most 10 entries, at most 2 KB. What does not
3444
+ * fit is counted in `more`.
3445
+ */
3446
+ declare function boundPreviewReport(input: UnboundPreviewReport): PreviewReport;
3447
+
3448
+ declare const DATA_STORE_DESCRIPTION_TOOL_NAME = "platform.data_stores.describe";
3449
+ declare const dataStoreDescriptionInputSchema: z.ZodObject<{
3450
+ store: z.ZodString;
3451
+ }, z.core.$strict>;
3452
+ /** Metadata only. No defaults, SQL, rows, samples or distinct values belong here. */
3453
+ declare const dataStoreDescriptionSchema: z.ZodObject<{
3454
+ name: z.ZodString;
3455
+ title: z.ZodString;
3456
+ description: z.ZodOptional<z.ZodString>;
3457
+ owner: z.ZodUnion<readonly [z.ZodObject<{
3458
+ kind: z.ZodLiteral<"instance">;
3459
+ }, z.core.$strip>, z.ZodObject<{
3460
+ kind: z.ZodLiteral<"workspace">;
3461
+ workspaceId: z.ZodString;
3462
+ }, z.core.$strip>]>;
3463
+ published: z.ZodBoolean;
3464
+ tables: z.ZodArray<z.ZodObject<{
3465
+ name: z.ZodString;
3466
+ description: z.ZodOptional<z.ZodString>;
3467
+ rowEstimate: z.ZodNullable<z.ZodNumber>;
3468
+ fields: z.ZodArray<z.ZodObject<{
3469
+ name: z.ZodString;
3470
+ type: z.ZodString;
3471
+ description: z.ZodString;
3472
+ nullable: z.ZodBoolean;
3473
+ }, z.core.$strip>>;
3474
+ }, z.core.$strip>>;
3475
+ schemaAvailable: z.ZodBoolean;
3476
+ filledBy: z.ZodArray<z.ZodObject<{
3477
+ kind: z.ZodString;
3478
+ name: z.ZodString;
3479
+ title: z.ZodString;
3480
+ }, z.core.$strip>>;
3481
+ readBy: z.ZodArray<z.ZodObject<{
3482
+ kind: z.ZodString;
3483
+ name: z.ZodString;
3484
+ title: z.ZodString;
3485
+ }, z.core.$strip>>;
3486
+ usesTruncated: z.ZodBoolean;
3487
+ rights: z.ZodObject<{
3488
+ read: z.ZodBoolean;
3489
+ add: z.ZodBoolean;
3490
+ change: z.ZodBoolean;
3491
+ }, z.core.$strip>;
3492
+ chat: z.ZodObject<{
3493
+ canReadRows: z.ZodBoolean;
3494
+ reason: z.ZodString;
3495
+ nextStep: z.ZodOptional<z.ZodString>;
3496
+ }, z.core.$strip>;
3497
+ }, z.core.$strip>;
3498
+
3499
+ declare const serverPreviewCaptureInputSchema: z.ZodObject<{
3500
+ themeColors: z.ZodObject<{
3501
+ surfaceColor: z.ZodString;
3502
+ backgroundColor: z.ZodString;
3503
+ textColor: z.ZodString;
3504
+ mutedTextColor: z.ZodString;
3505
+ borderColor: z.ZodString;
3506
+ accentColor: z.ZodString;
3507
+ accentStrongColor: z.ZodString;
3508
+ }, z.core.$strict>;
3509
+ contentPath: z.ZodString;
3510
+ session: z.ZodString;
3511
+ deadline: z.ZodNumber;
3512
+ size: z.ZodEnum<{
3513
+ phone: "phone";
3514
+ tablet: "tablet";
3515
+ desktop: "desktop";
3516
+ }>;
3517
+ theme: z.ZodEnum<{
3518
+ light: "light";
3519
+ dark: "dark";
3520
+ }>;
3521
+ locale: z.ZodEnum<{
3522
+ en: "en";
3523
+ de: "de";
3524
+ }>;
3525
+ number: z.ZodNumber;
3526
+ }, z.core.$strict>;
3527
+ declare const serverPreviewCaptureOutcomeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3528
+ status: z.ZodLiteral<"done">;
3529
+ image: z.ZodString;
3530
+ report: z.ZodUnknown;
3531
+ blocked: z.ZodArray<z.ZodObject<{
3532
+ method: z.ZodString;
3533
+ host: z.ZodString;
3534
+ path: z.ZodString;
3535
+ }, z.core.$strict>>;
3536
+ calls: z.ZodArray<z.ZodObject<{
3537
+ name: z.ZodString;
3538
+ code: z.ZodString;
3539
+ }, z.core.$strict>>;
3540
+ }, z.core.$strict>, z.ZodObject<{
3541
+ status: z.ZodLiteral<"refused">;
3542
+ code: z.ZodEnum<{
3543
+ capture_busy: "capture_busy";
3544
+ capture_failed: "capture_failed";
3545
+ }>;
3546
+ message: z.ZodOptional<z.ZodString>;
3547
+ }, z.core.$strict>], "status">;
3548
+ type ServerPreviewCaptureInput = z.infer<typeof serverPreviewCaptureInputSchema>;
3549
+ type ServerPreviewCaptureOutcome = z.infer<typeof serverPreviewCaptureOutcomeSchema>;
3550
+
3551
+ /** The most bytes of HTML one render takes, as UTF-8, `data:` images and fonts included. */
3552
+ declare const HTML_PDF_MAX_HTML_BYTES: number;
3553
+ /** The most bytes the PDF of one render may have. A larger one is refused, never cut. */
3554
+ declare const HTML_PDF_MAX_PDF_BYTES: number;
3555
+ /** The most pages the PDF of one render may have. A longer one is refused, never cut. */
3556
+ declare const HTML_PDF_MAX_PAGES = 50;
3557
+ /** The longest one render may take in the renderer, waiting for a free slot included. */
3558
+ declare const HTML_PDF_RENDER_MS = 20000;
3559
+ /** How many renders one App frame may ask for in a minute. */
3560
+ declare const HTML_PDF_RENDERS_PER_MINUTE_PER_SESSION = 10;
3561
+ /** The header a request to the renderer names its layout in, as JSON; the body is the HTML. */
3562
+ declare const HTML_PDF_OPTIONS_HEADER = "x-pdf-options";
3563
+ /** The header the renderer's PDF answer names its page count in. */
3564
+ declare const HTML_PDF_PAGES_HEADER = "x-pdf-pages";
3565
+ declare const HTML_PDF_PAGE_FORMATS: readonly ["A3", "A4", "A5", "Letter", "Legal"];
3566
+ /**
3567
+ * Why a render was refused. `pdf_unavailable`: the instance runs no renderer.
3568
+ * `pdf_too_large`: the HTML or the PDF exceeds its bound. `pdf_too_many_pages`: the PDF would
3569
+ * have more pages than allowed. `pdf_busy`: every renderer is busy. `pdf_failed`: the render
3570
+ * failed or ran out of time.
3571
+ */
3572
+ declare const HTML_PDF_REFUSALS: readonly ["pdf_unavailable", "pdf_too_large", "pdf_too_many_pages", "pdf_busy", "pdf_failed"];
3573
+ type HtmlPdfRefusal = (typeof HTML_PDF_REFUSALS)[number];
3574
+ /**
3575
+ * How the PDF's pages are laid out. Without `format` a size the HTML names in its own
3576
+ * `@page` rule holds, otherwise A4. Backgrounds and colours always print.
3577
+ */
3578
+ declare const htmlPdfOptionsSchema: z.ZodObject<{
3579
+ format: z.ZodOptional<z.ZodEnum<{
3580
+ A3: "A3";
3581
+ A4: "A4";
3582
+ A5: "A5";
3583
+ Letter: "Letter";
3584
+ Legal: "Legal";
3585
+ }>>;
3586
+ landscape: z.ZodOptional<z.ZodBoolean>;
3587
+ margin: z.ZodOptional<z.ZodObject<{
3588
+ top: z.ZodOptional<z.ZodString>;
3589
+ right: z.ZodOptional<z.ZodString>;
3590
+ bottom: z.ZodOptional<z.ZodString>;
3591
+ left: z.ZodOptional<z.ZodString>;
3592
+ }, z.core.$strict>>;
3593
+ }, z.core.$strict>;
3594
+ type HtmlPdfOptions = z.infer<typeof htmlPdfOptionsSchema>;
3595
+ /** One render as the renderer is asked for it. */
3596
+ interface HtmlPdfInput {
3597
+ html: string;
3598
+ options: HtmlPdfOptions;
3599
+ }
3600
+ type HtmlPdfOutcome = {
3601
+ status: "done";
3602
+ pdf: Uint8Array;
3603
+ pages: number;
3604
+ } | {
3605
+ status: "refused";
3606
+ code: HtmlPdfRefusal;
3607
+ };
3608
+
3609
+ /** The kind's id, as the asset store keeps it. */
3610
+ declare const TOOL_ASSET_KIND = "tool";
3611
+ /** The prefix of every operation of one tool asset: `tool.<name>.call`. */
3612
+ declare const TOOL_OPERATION_PREFIX = "tool.";
3613
+ /** The name of a tool: lowercase letters, digits and `_`, starting with a letter. */
3614
+ declare const TOOL_NAME_PATTERN: RegExp;
3615
+ declare const TOOL_NAME_MAX_LENGTH = 48;
3616
+ declare const TOOL_NAME_RULE = "A tool's name is lowercase letters, digits and _, starts with a letter and is at most 48 characters long";
3617
+ /** A display kind: lowercase words joined by `.`, `_` or `-`, such as `review.document_check`. */
3618
+ declare const TOOL_RESULT_KIND_PATTERN: RegExp;
3619
+ /** How long the agent's description of a tool is at most. */
3620
+ declare const TOOL_DESCRIPTION_MAX_CHARS = 4000;
3621
+ /** How large a tool's input schema is at most, as JSON, in bytes. */
3622
+ declare const TOOL_INPUT_SCHEMA_MAX_BYTES: number;
3623
+ /** How deeply a tool's input schema nests at most, counting objects and arrays. */
3624
+ declare const TOOL_INPUT_SCHEMA_MAX_DEPTH = 24;
3625
+ /** What a call of a `result` tool answers the agent where the tool names no sentence. */
3626
+ declare const TOOL_RESULT_DEFAULT_REPLY = "Done.";
3627
+ /**
3628
+ * The types of tool. `result` hands the agent's finished result to the panel; `code` runs a
3629
+ * handler of its own files in the sandbox.
3630
+ */
3631
+ declare const TOOL_TYPES: readonly ["result", "code"];
3632
+ /** What a code tool's handler is run with: the runner image's `python3` or `node`. */
3633
+ declare const TOOL_CODE_RUNTIMES: readonly ["python", "node"];
3634
+ type ToolCodeRuntime = (typeof TOOL_CODE_RUNTIMES)[number];
3635
+ /** The endings of a handler file of each runtime. */
3636
+ declare const TOOL_CODE_ENTRY_ENDINGS: Readonly<Record<ToolCodeRuntime, readonly string[]>>;
3637
+ /** How long a handler may run where its tool names no time, and at most, in seconds. */
3638
+ declare const TOOL_CODE_TIMEOUT_DEFAULT_SECONDS = 30;
3639
+ declare const TOOL_CODE_TIMEOUT_MAX_SECONDS = 120;
3640
+ /**
3641
+ * How many files a code tool holds at most, how large one is and how large all are. A
3642
+ * TypeScript tool is one bundled module that carries Zod, about 330 KiB minified, so one file
3643
+ * may be as large as all of them.
3644
+ */
3645
+ declare const TOOL_FILES_MAX = 32;
3646
+ declare const TOOL_FILE_MAX_BYTES: number;
3647
+ declare const TOOL_FILES_MAX_BYTES: number;
3648
+ /**
3649
+ * A path in a code tool's folder: `/`-separated parts of letters, digits, `_`, `-` and `.`,
3650
+ * each starting with a letter, a digit or `_`. No part is `..`, none is hidden and none is
3651
+ * empty, so a path never leaves the folder.
3652
+ */
3653
+ declare const TOOL_FILE_PATH_PATTERN: RegExp;
3654
+ /** How many Connection operations one code tool declares at most. */
3655
+ declare const TOOL_CONNECTIONS_MAX = 32;
3656
+ declare const toolConnectionOperationSchema: z.ZodString;
3657
+ declare const toolNameSchema: z.ZodString;
3658
+ /**
3659
+ * A tool's input schema: a JSON Schema of an object, bounded in size and depth. Whether it
3660
+ * compiles is asked where the kind is checked, in the platform's schema checker.
3661
+ */
3662
+ declare const toolInputSchemaSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3663
+ declare const toolResultSchema: z.ZodObject<{
3664
+ kind: z.ZodString;
3665
+ key: z.ZodOptional<z.ZodString>;
3666
+ title: z.ZodString;
3667
+ schemaVersion: z.ZodOptional<z.ZodNumber>;
3668
+ reply: z.ZodOptional<z.ZodString>;
3669
+ }, z.core.$strict>;
3670
+ declare const toolFilePathSchema: z.ZodString;
3671
+ /** One file of a code tool's folder, as text. */
3672
+ declare const toolFileSchema: z.ZodObject<{
3673
+ path: z.ZodString;
3674
+ content: z.ZodString;
3675
+ }, z.core.$strict>;
3676
+ declare const toolAssetConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3677
+ type: z.ZodLiteral<"result">;
3678
+ result: z.ZodObject<{
3679
+ kind: z.ZodString;
3680
+ key: z.ZodOptional<z.ZodString>;
3681
+ title: z.ZodString;
3682
+ schemaVersion: z.ZodOptional<z.ZodNumber>;
3683
+ reply: z.ZodOptional<z.ZodString>;
3684
+ }, z.core.$strict>;
3685
+ name: z.ZodString;
3686
+ title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3687
+ en: z.ZodOptional<z.ZodString>;
3688
+ de: z.ZodOptional<z.ZodString>;
3689
+ }, z.core.$strict>]>;
3690
+ summary: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3691
+ en: z.ZodOptional<z.ZodString>;
3692
+ de: z.ZodOptional<z.ZodString>;
3693
+ }, z.core.$strict>]>>;
3694
+ description: z.ZodString;
3695
+ icon: z.ZodOptional<z.ZodString>;
3696
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3697
+ }, z.core.$strict>, z.ZodObject<{
3698
+ type: z.ZodLiteral<"code">;
3699
+ runtime: z.ZodEnum<{
3700
+ python: "python";
3701
+ node: "node";
3702
+ }>;
3703
+ entry: z.ZodString;
3704
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
3705
+ connections: z.ZodOptional<z.ZodArray<z.ZodString>>;
3706
+ files: z.ZodArray<z.ZodObject<{
3707
+ path: z.ZodString;
3708
+ content: z.ZodString;
3709
+ }, z.core.$strict>>;
3710
+ name: z.ZodString;
3711
+ title: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3712
+ en: z.ZodOptional<z.ZodString>;
3713
+ de: z.ZodOptional<z.ZodString>;
3714
+ }, z.core.$strict>]>;
3715
+ summary: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3716
+ en: z.ZodOptional<z.ZodString>;
3717
+ de: z.ZodOptional<z.ZodString>;
3718
+ }, z.core.$strict>]>>;
3719
+ description: z.ZodString;
3720
+ icon: z.ZodOptional<z.ZodString>;
3721
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3722
+ }, z.core.$strict>], "type">;
3723
+ type ToolAssetConfig = z.infer<typeof toolAssetConfigSchema>;
3724
+ type ResultToolConfig = Extract<ToolAssetConfig, {
3725
+ type: "result";
3726
+ }>;
3727
+ type CodeToolConfig = Extract<ToolAssetConfig, {
3728
+ type: "code";
3729
+ }>;
3730
+ /** How long a call of a code tool may run, in seconds. */
3731
+ declare function toolCodeTimeoutSeconds(tool: Pick<CodeToolConfig, "timeoutSeconds">): number;
3732
+ /** The operation a published tool contributes. */
3733
+ declare function toolCallOperationName(tool: string): string;
3734
+ /** The tool a name `tool.<name>.call` names, or nothing for any other name. */
3735
+ declare function toolOfOperationName(name: string): string | undefined;
3736
+
3737
+ /**
3738
+ * The modules a handler imports by name: `catalyst_tool` and `catalyst_tools` in Python,
3739
+ * `catalyst-tool` and `catalyst-tools` in Node.
3740
+ */
3741
+ declare const TOOL_CODE_LIBRARY: readonly {
3742
+ path: string;
3743
+ content: string;
3744
+ }[];
3745
+
3746
+ /** How large a handler's answer may be, as JSON in UTF-8: what it hands the model and a display. */
3747
+ declare const TOOL_CODE_ANSWER_MAX_BYTES: number;
3748
+ /** How large what the model is handed of an answer may be, as JSON in UTF-8. */
3749
+ declare const TOOL_CODE_OUTPUT_MAX_BYTES: number;
3750
+ /** How long a display's HTML may be: what `show_view` takes. */
3751
+ declare const TOOL_CODE_HTML_MAX_CHARS = 200000;
3752
+ /** How many Connection calls one handler makes at most. A further one is refused. */
3753
+ declare const TOOL_CODE_REQUESTS_MAX = 50;
3754
+ /** How large one request of a handler is at most, as one line of JSON in UTF-8. */
3755
+ declare const TOOL_CODE_REQUEST_MAX_BYTES: number;
3756
+ /** How large the answer to one request is at most, as JSON in UTF-8. */
3757
+ declare const TOOL_CODE_REQUEST_ANSWER_MAX_BYTES: number;
3758
+ /** The length of a text in UTF-8, in bytes, in Node and in a browser. */
3759
+ declare function utf8Bytes(text: string): number;
3760
+ /** What a handler shows beside the chat: data of a display kind, or its own HTML. */
3761
+ declare const toolCodeDisplaySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3762
+ type: z.ZodLiteral<"data">;
3763
+ kind: z.ZodString;
3764
+ title: z.ZodString;
3765
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3766
+ schemaVersion: z.ZodOptional<z.ZodNumber>;
3767
+ }, z.core.$strict>, z.ZodObject<{
3768
+ type: z.ZodLiteral<"html">;
3769
+ title: z.ZodOptional<z.ZodString>;
3770
+ html: z.ZodString;
3771
+ }, z.core.$strict>], "type">;
3772
+ type ToolCodeDisplay = z.infer<typeof toolCodeDisplaySchema>;
3773
+ /** What a handler answers: `output` for the model, and at most one display beside the chat. */
3774
+ declare const toolCodeAnswerSchema: z.ZodObject<{
3775
+ output: z.ZodUnknown;
3776
+ display: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3777
+ type: z.ZodLiteral<"data">;
3778
+ kind: z.ZodString;
3779
+ title: z.ZodString;
3780
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3781
+ schemaVersion: z.ZodOptional<z.ZodNumber>;
3782
+ }, z.core.$strict>, z.ZodObject<{
3783
+ type: z.ZodLiteral<"html">;
3784
+ title: z.ZodOptional<z.ZodString>;
3785
+ html: z.ZodString;
3786
+ }, z.core.$strict>], "type">>;
3787
+ }, z.core.$strict>;
3788
+
3789
+ export { ACCESS_SOURCES, ACTIONS, ACTIVE_AGENT_RUN_STATUSES, ADMINISTERED_USER_STATUSES, AGENT_AVAILABILITY_MODES, AGENT_EDITABLE_FIELDS, AGENT_PREVIEW_SOURCES, AGENT_RUN_FAILURE_CATEGORIES, AGENT_RUN_STATUSES, AGENT_STARTERS_MAX, AGENT_USE_SETTINGS, ALWAYS_ALLOW_LOCK_SOURCES, API_CREDENTIAL_SCOPES, APPROVAL_CHECK_FAILURE_OUTCOMES, APPROVAL_CHECK_STATUSES, APPROVAL_EXECUTIONS, APPROVAL_REQUEST_STATUSES, APP_ACTION_CALL_STATUSES, APP_AUDIENCES, APP_ERROR_CODES, APP_ERROR_STATUS_CODES, APP_MODES, ARTIFACT_PREVIEW_IMAGE_FORMATS, ARTIFACT_PREVIEW_IMAGE_MIME_TYPES, ARTIFACT_PREVIEW_STATUSES, ASSET_ACCESS_VERBS, ASSET_LIFECYCLES, ASSET_MOVE_EDITORS, ASSET_MOVE_PATHS, ASSET_MOVE_STATUSES, ASSET_MOVE_USERS, ASSET_NAME_REFUSAL_REASONS, ASSET_OWNER_KINDS, ASSET_OWNER_RUNGS, ASSET_REPO_BUNDLE_KINDS, ASSET_REPRESENTATIONS, ASSET_RIGHT_VERBS, ASSET_SYNC_CHANGE_TYPES, ATTACHMENT_CREATE_OUTCOMES, AUDIT_ACTOR_KINDS, AUDIT_EVENT_STATUSES, AUDIT_OUTCOMES, AUDIT_TIERS, AUTH_PRINCIPAL_KINDS, AUTH_SCOPE_WILDCARD, AWS_ACCOUNT_ID, type AccessSource, type ActiveAgentRunStatus, type AdministeredUserStatus, type AgentAvailabilityMode, type AgentConfig, type AgentEditableField, type AgentInitialPromptConfig, type AgentRunFailureCategory, type AgentRunStatus, type AgentUse, type ApiCredentialScope, type AppActionCallStatus, type AppErrorCode, type AppMode, type ApprovalCheckFailureOutcome, type ApprovalCheckStatus, type ApprovalExecution, type ApprovalRequestStatus, type ArtifactPreviewImageFormat, type ArtifactPreviewImageMimeType, type ArtifactPreviewStatus, type AssetLifecycle, type AssetMoveEditors, type AssetMovePath, type AssetMoveStatus, type AssetMoveUsers, type AssetNameRefusalReason, type AssetOwnerKind, type AssetOwnerRung, type AssetRepoBundleKind, type AssetRepresentation, type AssetSyncChangeType, type AttachmentCreateOutcome, type AuditActorKind, type AuditEventStatus, type AuditOutcome, type AuditTier, type AuthPrincipalKind, BEDROCK_REGION, CATALOGUE_CATEGORIES, CATALOGUE_PARTS, CHAT_MESSAGE_ROLES, CHAT_SESSION_AUTH_SCOPES, COLLABORATION_WORKSPACE_KINDS, CONFIG_ASSET_CHANGE_OPERATIONS, CONFIG_ASSET_KINDS, CONNECTION_BINDING_STATES, CONNECTION_CREDENTIAL_MODES, CONNECTION_EXPOSURES, CONNECTION_HEALTH_STATES, CONNECTION_NAME_MAX_LENGTH, CONNECTION_NAME_PATTERN, CONNECTION_NETWORKS, CONNECTION_OAUTH_REGISTRATIONS, CONNECTION_OPERATION_POLICIES, CONNECTION_OPERATION_STATUSES, CONNECTION_ORIGINS, CONNECTION_OWN_TOKEN_SCHEMES, CONNECTION_OWN_TOKEN_STATES, CONNECTION_PROPOSAL_BINDING_STATES, CONNECTION_PROPOSAL_STATES, CONNECTION_PROVIDER_REVOCATIONS, CONNECTION_SECRET_STATES, CONNECTION_SIGN_IN_NEEDS, CONNECTION_TEST_CREDENTIAL_STATES, CONNECTOR_FORM_FIELD_VALUES, CONNECTOR_TEST_STATUSES, CONVERSATION_ATTACHMENT_STATUSES, CONVERSATION_KINDS, CONVERSATION_TITLE_MAX_CHARS, CONVERSATION_VISIBILITIES, type CallableOperationView, type CallableOperationsPage, type CatalogueCategory, type CataloguePart, type ChatMessageRole, type ChatSessionAuthScope, type CodeToolConfig, type CollaborationWorkspaceKind, type ConfigAssetChangeOperation, type ConfigAssetKind, type ConnectionBindingState, type ConnectionCredentialMode, type ConnectionExposure, type ConnectionHealth, type ConnectionNetwork, type ConnectionOAuthRegistration, type ConnectionOperationPolicy, type ConnectionOperationStatus, type ConnectionOrigin, type ConnectionOwnTokenScheme, type ConnectionOwnTokenState, type ConnectionProposalBindingState, type ConnectionProposalState, type ConnectionProviderRevocation, type ConnectionSecretState, type ConnectionSignInNeed, type ConnectionTestCredentialState, type ConnectorTestStatus, type ConversationAttachmentStatus, type ConversationKind, type ConversationVisibility, DATABASE_RELATION_TYPES, DATA_STORE_CONDITIONS, DATA_STORE_DESCRIPTION_TOOL_NAME, DATA_STORE_INSERT_CONFLICT_MODES, DATA_STORE_LOAD_CONFLICT_MODES, DATA_STORE_MIGRATION_OUTCOMES, DATA_STORE_SCALAR_TYPES, DATA_STORE_STATUSES, DECIDED_APPROVAL_REQUEST_STATUSES, DELETION_STATES, DRAFT_TEST_TARGETS, type DataScopes, type DataStoreCondition, type DataStoreInsertConflictMode, type DataStoreLoadConflictMode, type DataStoreMigrationOutcome, type DataStoreRecordField, type DataStoreRecordProposalItem, type DataStoreRecordsDecideInput, type DataStoreRecordsDecideOutput, type DataStoreRecordsFlaggedInput, type DataStoreRecordsFlaggedOutput, type DataStoreRecordsProposeInput, type DataStoreRecordsRule, type DataStoreScalarType, type DataStoreStatus, type DatabaseRelationType, type DecidedApprovalRequestStatus, type DeletionState, ENDED_AGENT_RUN_STATUSES, ENDED_APPROVAL_EXECUTIONS, type EndedAgentRunStatus, type EndedApprovalExecution, FAILED_JOB_STATUSES, FEEDBACK_ASSET_KINDS, FEEDBACK_CATEGORY_MAX_LENGTH, FEEDBACK_NOTE_MAX_LENGTH, FEEDBACK_STATES, FEEDBACK_SUBJECT_KINDS, FEEDBACK_SUMMARY_MAX_LENGTH, FEEDBACK_TEXT_MAX_LENGTH, FIRST_PARTY_AUTH_SCOPES, FOLLOW_UP_MODES, FOLLOW_UP_STATUSES, type FailedJobStatus, type FeedbackAssetKind, type FeedbackState, type FeedbackSubjectKind, type FirstPartyAuthScope, GRANT_EFFECTS, GRANT_HOLDER_KINDS, GRANT_REQUEST_STALE_REASONS, GRANT_SCOPE_KINDS, GUARDRAIL_CHECK_KINDS, GUARDRAIL_HIT_OUTCOMES, GUARDRAIL_NAME_MAX_LENGTH, GUARDRAIL_NAME_PATTERN, GUARDRAIL_OUTCOMES, type GrantEffect, type GrantHolderKind, type GrantRequestStaleReason, type GrantScopeKind, type GuardrailHitOutcome, type GuardrailOutcome, HTML_PDF_MAX_HTML_BYTES, HTML_PDF_MAX_PAGES, HTML_PDF_MAX_PDF_BYTES, HTML_PDF_OPTIONS_HEADER, HTML_PDF_PAGES_HEADER, HTML_PDF_PAGE_FORMATS, HTML_PDF_REFUSALS, HTML_PDF_RENDERS_PER_MINUTE_PER_SESSION, HTML_PDF_RENDER_MS, type HtmlPdfInput, type HtmlPdfOptions, type HtmlPdfOutcome, type HtmlPdfRefusal, IDEMPOTENCY_KEY_MAX_LENGTH, INFRASTRUCTURE_SECRET_STATES, INFRASTRUCTURE_WITHHELD_FIELDS, type InfrastructureSecretState, type InfrastructureWithheldField, JOB_STATUSES, type JobStatus, KNOWLEDGE_BASE_STATUSES, KNOWLEDGE_CHECK_STATUSES, KNOWLEDGE_DOCUMENT_FAILURE_CODES, KNOWLEDGE_DOCUMENT_STATES, KNOWLEDGE_DOCUMENT_TEXT_MAX_BYTES, KNOWLEDGE_DOCUMENT_WAIT_CODES, KNOWLEDGE_EMBEDDING_STATES, KNOWLEDGE_FILE_MAX_BYTES, KNOWLEDGE_FILE_MAX_BYTES_CEILING, KNOWLEDGE_ORIGIN_LINK_CHANGES, KNOWLEDGE_ORIGIN_LINK_MAX_CHARS, KNOWLEDGE_PENDING_MAX_LIMIT, KNOWLEDGE_SEARCH_SIGNALS, KNOWLEDGE_SOURCE_FAILURE_CODES, KNOWLEDGE_SOURCE_ITEM_FAILURE_CODES, KNOWLEDGE_SOURCE_ITEM_SHOWN_STATES, KNOWLEDGE_SOURCE_ITEM_STATES, KNOWLEDGE_SYNC_COUNTS, KNOWLEDGE_SYNC_MODES, KNOWLEDGE_SYNC_RUN_STATES, type KnowledgeBaseStatus, type KnowledgeCheckStatus, type KnowledgeDocumentFailureCode, type KnowledgeDocumentState, type KnowledgeDocumentWaitCode, type KnowledgeExtractFieldsInput, type KnowledgeExtractFieldsOutput, type KnowledgeFirstPassConfirmation, type KnowledgeIngestFetch, type KnowledgeIngestInput, type KnowledgeIngestItem, type KnowledgeIngestOutput, type KnowledgeLocateInput, type KnowledgeLocateOutput, type KnowledgePendingInput, type KnowledgePendingOutput, type KnowledgePendingPageRow, type KnowledgePendingRow, type KnowledgeProcessorOutput, type KnowledgePutProcessedInput, type KnowledgeRetryInput, type KnowledgeRetryOutput, type KnowledgeSearchSignal, type KnowledgeSourceFailureCode, type KnowledgeSourceItemFailureCode, type KnowledgeSourceItemShownState, type KnowledgeSourceItemState, type KnowledgeSourceItemsInput, type KnowledgeSourceItemsOutput, type KnowledgeSourcesOutput, type KnowledgeSyncCount, type KnowledgeSyncInput, type KnowledgeSyncMode, type KnowledgeSyncResult, type KnowledgeSyncRunState, type KnowledgeWithdrawInput, type KnowledgeWithdrawOutput, type KnowledgeWorkflowSource, type KnowledgeWorkflowSourcesOutput, LISTED_DATA_STORE_STATUSES, LIVE_JOB_STATUSES, type ListedDataStoreStatus, type LiveJobStatus, type LocaleCode, type LocalizedStringConfig, MAIL_ADDRESS_MAX_LENGTH, MAIL_ATTACHMENTS_MAX_BYTES, MAIL_ATTACHMENTS_MAX_FILES, MAIL_AUDIT_MAX_DOMAINS, MAIL_BODY_MAX_BYTES, MAIL_OUTBOUND_DEFAULT_LIMITS, MAIL_OUTBOUND_FOOTER_MAX_LENGTH, MAIL_RECIPIENT_DOMAINS_ANY, MAIL_RECIPIENT_DOMAIN_PATTERN, MAIL_RECIPIENT_ID_PATTERN, MAIL_SENDER_CONNECTION_PREFIX, MAIL_SENDER_NAME_MAX_LENGTH, MAIL_SENDER_RESOURCE_KIND, MAIL_SENDER_SYSTEM, MAIL_SENDER_SYSTEM_ICON, MAIL_SENDER_USE_ACTION, MAIL_SEND_ERROR_CODES, MAIL_SEND_MAX_ADDRESSES, MAIL_SEND_OPERATION, MAIL_SEND_REFUSAL_REASONS, MAIL_SUBJECT_MAX_LENGTH, MAIL_WORKFLOW_MESSAGE_TEMPLATE, MANAGED_FILE_STATUSES, MEMBER_BUNDLE_CHANGES, MEMBER_BUNDLE_STATES, MESSAGE_FINISH_STATUSES, MODEL_FALLBACK_REASONS, MODEL_PROVIDER_AUTH_MODES, MODEL_USAGE_EVENT_STATUSES, MODEL_USAGE_LIMIT_METRICS, MODEL_USAGE_LIMIT_PERIODS, MODEL_USAGE_LIMIT_SCOPES, MODEL_USAGE_SOURCES, MODEL_USAGE_TIERS, type MailPreviewRecipient, type MailSendErrorCode, type MailSendInput, type MailSendInputFields, type MailSendOutput, type MailSendPreview, type MailSendRecipient, type MailSendRecipientList, type MailSendRefusalDetails, type MailSendSimulatedOutput, type MailSenderId, type MemberBundleChange, type MemberBundleState, type MessageFinishStatus, type ModelFallbackReason, type ModelProviderAuthMode, type ModelUsageEventStatus, type ModelUsageRefusal, type ModelUsageSource, type ModelUsageTier, NOTIFY_CHANNELS, type NotifyChannel, OPENAI_COMPATIBLE_APIS, OPERATIONS_AUDIENCES, OPERATION_CHANGE_CLASSES, OPERATION_CONFIRMATION_DECISIONS, OPERATION_DENIAL_REASONS, OPERATION_EFFECTS, OPERATION_ORIGIN_KINDS, OPERATION_RUN_DECISION_MODES, OPERATION_RUN_DECISION_REASONS, OPERATION_RUN_STATUSES, OPERATION_SOURCE_KINDS, OPERATION_TARGETS, OWN_SERVER_SIGN_INS, type OpenaiCompatibleApi, type OperationBatchFailure, type OperationBatchResult, type OperationDenialReason, type OperationEffect, type OperationOriginKind, type OperationPaging, type OperationRunDecisionMode, type OperationRunDecisionReason, type OperationRunStatus, type OperationScope, type OperationSourceKind, type OperationSourceView, type OperationTarget, type OperationsAudience, type OwnServerSignIn, PERSONAL_AGENTS_KEY, PERSONAL_WORKSPACES_KEY, PERSON_POLICY_SETTINGS, PLATFORM_REPORT_NOTE_MAX_LENGTH, POLICY_VALUES, PREVIEW_CAPTURES_PER_HOUR, PREVIEW_CAPTURES_PER_RUN, PREVIEW_CAPTURE_MAX_BYTES, PREVIEW_CAPTURE_MAX_HEIGHT, PREVIEW_CAPTURE_MAX_WIDTH, PREVIEW_CAPTURE_REFUSALS, PREVIEW_CAPTURE_SIZES, PREVIEW_CAPTURE_STATUSES, PREVIEW_CAPTURE_TOOL_NAME, PREVIEW_CAPTURE_WAIT_MS, PREVIEW_REPORT_BRIDGE_STATES, PREVIEW_REPORT_ENTRY_KINDS, PREVIEW_REPORT_KEEP_MS, PREVIEW_REPORT_MAX_BYTES, PREVIEW_REPORT_MAX_ENTRIES, PREVIEW_REPORT_MAX_MESSAGE_CHARS, PRINCIPAL_HOLDER_KINDS, PROJECT_ACTIONS, PROJECT_ASSET_KIND, PROJECT_AUDIENCES, PROJECT_CHOICE_REFUSALS, PROJECT_DELETION_CONVERSATIONS, PROJECT_DESCRIPTION_MAX_LENGTH, PROJECT_FILE_CHANGES, PROJECT_FILE_ORIGINS, PROJECT_FOLDER_WRITE_CHANGES, PROJECT_KNOWLEDGE_BASES_MAX, PROJECT_NAME_MAX_LENGTH, PROJECT_NAME_PATTERN, PROJECT_SKILLS_MAX, PROJECT_TITLE_MAX_LENGTH, PROVIDER_CHECK_ERROR_CLASSES, PROVIDER_PORTS, PROVIDER_REGIONS, PUBLISHED_DATA_CONSUMER_KINDS, PUBLISH_CHANGE_KINDS, type PlatformAction, type PolicyValue, type PreviewCaptureRefusal, type PreviewReport, type PreviewReportBridge, type PreviewReportEntry, type PreviewReportEntryKind, type PrincipalHolderKind, type ProjectAudience, type ProjectDeletionConversations, type ProviderCheckErrorClass, type ProviderPort, type ProviderRegion, type PublishedDataConsumerKind, READING_POLICY_VALUES, REASONING_EFFORTS, RECORDS_FLAGGED_MAX_ITEMS_PER_PAGE, RECORDS_PROPOSE_MAX_FIELDS_PER_ITEM, RECORDS_PROPOSE_MAX_ITEMS_PER_CALL, RECORD_FIELD_FAILURE_CODES, RECORD_FIELD_STATES, RECORD_FLAG_REASONS, ROLE_GRANT_SCOPE_KINDS, ROLE_PENDING_CHANGES, ROLE_PENDING_DECISIONS, type ReadingPolicyValue, type ReasoningEffortConfig, type RecordColumn, type RecordEvidenceResult, type ResultToolConfig, type RoleGrantScopeKind, type RolePendingDecision, SCHEDULED_START_STATES, SECRET_NAME_EXPECTATION, SERVER_PREVIEW_CAPTURE_REFUSALS, SERVICE_PRINCIPAL_PERMISSIONS, SERVICE_PRINCIPAL_STATUSES, SKILL_CHANGE_TYPES, SKILL_FRONTMATTER_FIELDS, SKILL_FRONTMATTER_MAX_BYTES, SKILL_FRONTMATTER_MAX_DEPTH, SKILL_NAME_PATTERN, SKILL_NAME_RULE, SKILL_ORIGINS, SKILL_PORTABLE_DESCRIPTION_MAX_CHARS, SKILL_PORTABLE_NAME_MAX_CHARS, SKILL_RESOURCE_MEDIA_TYPES, SKILL_STARTERS_FILL, SKILL_STARTERS_MAX, SKILL_STARTER_LINE_MAX_LENGTH, SKILL_SUMMARY_MAX_LENGTH, STARTER_ICON_NAMES, STRUCTURED_DATA_REVIEW_REASONS, STUDIO_KIND_PATHS, SUPPORTED_IMAGE_MIME_TYPES, type ScopeAssignmentInput, type ScopedTables, type ServerPreviewCaptureInput, type ServerPreviewCaptureOutcome, type ServicePrincipalPermission, type ServicePrincipalStatus, type SkillChangeType, type SkillConfig, type SkillFileEntry, type SkillFrontmatterRefusal, SkillMarkdownError, type SkillOrigin, type SkillResourceConfig, type SkillResourceMediaType, type SkillStarterConfig, type StarterIconName, type StructuredDataReviewReason, type SupportedImageMimeType, THEME_MODES, THEME_MODE_PREFERENCES, TOOL_ASSET_KIND, TOOL_CALL_STATES, TOOL_CODE_ANSWER_MAX_BYTES, TOOL_CODE_ENTRY_ENDINGS, TOOL_CODE_HTML_MAX_CHARS, TOOL_CODE_LIBRARY, TOOL_CODE_OUTPUT_MAX_BYTES, TOOL_CODE_REQUESTS_MAX, TOOL_CODE_REQUEST_ANSWER_MAX_BYTES, TOOL_CODE_REQUEST_MAX_BYTES, TOOL_CODE_RUNTIMES, TOOL_CODE_TIMEOUT_DEFAULT_SECONDS, TOOL_CODE_TIMEOUT_MAX_SECONDS, TOOL_CONNECTIONS_MAX, TOOL_DECISION_MODES, TOOL_DECISION_OUTCOMES, TOOL_DESCRIPTION_MAX_CHARS, TOOL_DISPLAY_MODES, TOOL_FILES_MAX, TOOL_FILES_MAX_BYTES, TOOL_FILE_MAX_BYTES, TOOL_FILE_PATH_PATTERN, TOOL_GROUPS, TOOL_INPUT_PARSE_ERROR_CODES, TOOL_INPUT_SCHEMA_MAX_BYTES, TOOL_INPUT_SCHEMA_MAX_DEPTH, TOOL_NAME_MAX_LENGTH, TOOL_NAME_PATTERN, TOOL_NAME_RULE, TOOL_OPERATION_PREFIX, TOOL_RESULT_DEFAULT_REPLY, TOOL_RESULT_KIND_PATTERN, TOOL_TYPES, type ThemeMode, type ThemeModePreference, type ToolAssetConfig, type ToolCallState, type ToolCodeDisplay, type ToolCodeRuntime, type ToolDisplayMode, type ToolGroup, type ToolInputParseErrorCode, USAGE_BREAKDOWN_DIMENSIONS, USAGE_COST_STATUSES, USAGE_ORIGINS, USAGE_PURPOSE_AGENT_KEY_PREFIX, USAGE_SPEND_LIMIT_LEVELS, USER_STATUSES, type UnboundPreviewReport, type UsageCostStatus, type UserStatus, WAITING_OPERATION_RUN_STATUSES, WEB_SOURCE_PROVIDERS, WORKFLOW_CAPABILITY_UNITS, WORKFLOW_CODE_STEP_AVAILABILITY, WORKFLOW_DATASET_DOWNLOAD_FORMATS, WORKFLOW_DATASET_STATES, WORKFLOW_ENDED_STATUSES, WORKFLOW_EXECUTED_STEP_TYPES, WORKFLOW_KINDS, WORKFLOW_MARKDOWN_MAX_COLUMNS, WORKFLOW_MARKDOWN_MAX_ROWS, WORKFLOW_NAME_PATTERN, WORKFLOW_NAME_RULE, WORKFLOW_PACKAGE_MANIFEST_STATES, WORKFLOW_RESERVED_STEP_TYPES, WORKFLOW_RIGHTS_REVISIONS, WORKFLOW_RIGHT_NEEDED_FOR, WORKFLOW_RIGHT_REFUSALS, WORKFLOW_RUN_ACCOUNT_STATUSES, WORKFLOW_RUN_MODES, WORKFLOW_RUN_STATUSES, WORKFLOW_STEP_RUN_STATUSES, WORKFLOW_STEP_SOURCE_KINDS, WORKFLOW_STEP_TYPES, WORKFLOW_TEST_REVISIONS, WORKFLOW_TEXT_FORMAT_MARKDOWN, WORKFLOW_TEXT_MAX_PARTS, WORKFLOW_TRIGGER_KINDS, WORKFLOW_WEBHOOK_HEADERS, WORKFLOW_WEBHOOK_LIMITS, WORKSPACE_ACCENT_COLORS, WORKSPACE_ACCESS_STATES, WORKSPACE_BUNDLES, WORKSPACE_COMMAND_STATUSES, WORKSPACE_FILE_KINDS, WORKSPACE_MEMBERSHIP_ROLES, WORKSPACE_OWNED_RIGHT_KINDS, WORKSPACE_SECTIONS, WORKSPACE_USE_ASSET_KINDS, WORKSPACE_VISIBILITIES, type WebSourceProvider, type WorkflowAssetConfig, type WorkflowCapabilityUnit, type WorkflowDatasetDownloadFormat, type WorkflowDatasetState, type WorkflowEndedStatus, type WorkflowKind, type WorkflowMailSenderFact, type WorkflowMessageMailParams, type WorkflowReservedStepType, type WorkflowRunMode, type WorkflowRunStatus, type WorkflowStepRunStatus, type WorkflowStepSourceKind, type WorkflowStepType, type WorkflowTestRevision, type WorkflowTriggerKind, type WorkspaceAccentColor, type WorkspaceAccessState, type WorkspaceBundle, type WorkspaceCommandStatus, type WorkspaceFileKind, type WorkspaceMembershipRole, type WorkspaceSection, type WorkspaceVisibility, YAML_DATA_MAX_VALUES, YamlDataError, type YamlDataIssue, type YamlDataIssueCode, type YamlDataOptions, type YamlDataResult, agentConfigSchema, appInterfacePath, assetPagePath, bedrockProfileRefusal, boundPreviewReport, callableOperationSchema, callableOperationsPageSchema, checkStorableTexts, conversationInterfacePath, dataScopeNameSchema, dataScopesSchema, dataStoreDescriptionInputSchema, dataStoreDescriptionSchema, dataStoreRecordFieldSchema, dataStoreRecordProposalItemSchema, dataStoreRecordsContracts, dataStoreRecordsDecideInputSchema, dataStoreRecordsDecideOutputSchema, dataStoreRecordsFlaggedInputSchema, dataStoreRecordsFlaggedOutputSchema, dataStoreRecordsProposeInputSchema, dataStoreRecordsRuleSchema, deriveSkillTitle, formatSkillMarkdown, htmlPdfOptionsSchema, inboxItemPath, isPlainConfigObject, isPreviewCaptureWithinBounds, isRecord, isSecretName, isStarterIconName, isStorableText, knowledgeExtractFieldsInputSchema, knowledgeExtractFieldsOutputSchema, knowledgeFieldValueSchema, knowledgeFirstPassConfirmationSchema, knowledgeIngestFetchSchema, knowledgeIngestInputSchema, knowledgeIngestItemSchema, knowledgeIngestOutputSchema, knowledgeLocateInputSchema, knowledgeLocateOutputSchema, knowledgeOriginLinkSchema, knowledgePendingInputSchema, knowledgePendingOutputSchema, knowledgePendingPageRowSchema, knowledgePendingRowSchema, knowledgeProcessorOutputSchema, knowledgePutProcessedInputSchema, knowledgeRecordsRefusalSchema, knowledgeRetryInputSchema, knowledgeRetryOutputSchema, knowledgeSourceItemsInputSchema, knowledgeSourceItemsOutputSchema, knowledgeSourcesOutputSchema, knowledgeSyncInputSchema, knowledgeSyncResultSchema, knowledgeWithdrawInputSchema, knowledgeWithdrawOutputSchema, knowledgeWorkflowSourceSchema, knowledgeWorkflowSourcesOutputSchema, knowledgeWriteContracts, loadYamlData, localeCodes, localizedStringSchema, mailAddressSchema, mailBodySchema, mailCopyRecipientListSchema, mailPreviewRecipientSchema, mailRecipientDomainSchema, mailRecipientListSchema, mailRecipientSchema, mailReplyToSchema, mailSendContract, mailSendInputSchema, mailSendOutputSchema, mailSendPreviewSchema, mailSendRefusalDetailsSchema, mailSendSimulatedOutputSchema, mailSenderIdSchema, mailSenderNameSchema, mailSubjectSchema, mergeConfigObjects, operationBatchFailureSchema, operationBatchResultSchema, operationPagingSchema, operationSourceSchema, parseSkillMarkdown, previewReportEntrySchema, previewReportSchema, providerRegionSchema, readWebpSize, readYamlData, recordColumnTakes, recordEvidenceResultSchema, scopeAssignmentInputSchema, scopedTablesSchema, scrubPreviewFile, scrubPreviewText, serverPreviewCaptureInputSchema, serverPreviewCaptureOutcomeSchema, skillConfigSchema, skillFileEntrySchema, skillFileFrontmatterSchema, skillNameSchema, skillPortabilityIssues, skillResourceConfigSchema, skillResourceMediaTypeForPath, skillResourcePathSchema, skillStarterSchema, toolAssetConfigSchema, toolCallOperationName, toolCodeAnswerSchema, toolCodeDisplaySchema, toolCodeTimeoutSeconds, toolConnectionOperationSchema, toolFilePathSchema, toolFileSchema, toolInputSchemaSchema, toolNameSchema, toolOfOperationName, toolResultSchema, utf8Bytes, workflowConfigSchema, workflowDataFlowsSchema, workflowDatasetReferenceSchema, workflowFileReferenceSchema, workflowMailSenderFactSchema, workflowMessageMailParamsSchema, writeYamlData, yamlValueIssue, yamlValueIssueSentence };