@work-shape/catalyst-asset-schemas 0.8.0-rc.3 → 0.8.0-rc.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2629 -29
- package/dist/index.js +1998 -88
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { z } from 'zod';
|
|
|
4
4
|
* The shape of an agent and of a skill as a file holds it. These are the public half of the
|
|
5
5
|
* asset model: a working copy, the command line tool and the instance read the same types.
|
|
6
6
|
*/
|
|
7
|
+
/** The configuration rights reported for an asset; publish applies to draft/published kinds. */
|
|
8
|
+
declare const ASSET_ACCESS_VERBS: readonly ["read", "write", "delete", "publish"];
|
|
7
9
|
declare const localeCodes: readonly ["en", "de"];
|
|
8
10
|
type LocaleCode = (typeof localeCodes)[number];
|
|
9
11
|
type LocalizedStringConfig = string | {
|
|
@@ -23,10 +25,17 @@ interface AgentConfig {
|
|
|
23
25
|
welcomeMessage?: LocalizedStringConfig;
|
|
24
26
|
welcomeSubtitle?: LocalizedStringConfig;
|
|
25
27
|
instructions: string;
|
|
28
|
+
/** What the instance adds after the instructions of an agent that ships with the platform. */
|
|
29
|
+
additionalInstructions?: string;
|
|
26
30
|
modelProviderId?: string;
|
|
27
31
|
modelBindingId?: string;
|
|
28
32
|
reasoningEffort?: ReasoningEffortConfig;
|
|
29
33
|
fastMode?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether a run of the agent goes on on its model binding's `fallback` when that binding is
|
|
36
|
+
* rate-limited or down. Unset is on.
|
|
37
|
+
*/
|
|
38
|
+
useModelFallback?: boolean;
|
|
30
39
|
/** Bindings users may pick for this agent in the chat, besides its own `modelBindingId`. */
|
|
31
40
|
userSelectableModelBindingIds?: string[];
|
|
32
41
|
/**
|
|
@@ -49,6 +58,13 @@ interface AgentConfig {
|
|
|
49
58
|
*/
|
|
50
59
|
knowledgeBases?: string[];
|
|
51
60
|
initialPrompts: AgentInitialPromptConfig[];
|
|
61
|
+
/**
|
|
62
|
+
* An agent that ships with the platform: its fields as the release shipped them last. Only
|
|
63
|
+
* the release seed writes it; every other write keeps it as stored.
|
|
64
|
+
*/
|
|
65
|
+
shipped?: Record<string, unknown>;
|
|
66
|
+
/** The shipped fields the instance changed and a release then shipped anew. */
|
|
67
|
+
shippedNewer?: string[];
|
|
52
68
|
}
|
|
53
69
|
interface SkillConfig {
|
|
54
70
|
name: string;
|
|
@@ -128,6 +144,76 @@ interface SkillResourceConfig {
|
|
|
128
144
|
mediaType: SkillResourceMediaType;
|
|
129
145
|
content: string;
|
|
130
146
|
}
|
|
147
|
+
/** Ordered from the narrowest App audience to the widest. */
|
|
148
|
+
declare const APP_AUDIENCES: readonly ["self", "workspace", "instance"];
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The one AWS region the `aws-bedrock` model provider calls. Bedrock's data retention is set to
|
|
152
|
+
* `none` there and nowhere else, and the EU inference profiles route from it to EU regions only.
|
|
153
|
+
*/
|
|
154
|
+
declare const BEDROCK_REGION = "eu-central-1";
|
|
155
|
+
/** The twelve digits of an AWS account id, the provider's `accountId`. */
|
|
156
|
+
declare const AWS_ACCOUNT_ID: RegExp;
|
|
157
|
+
/**
|
|
158
|
+
* Why a model id is not one the `aws-bedrock` provider calls, or undefined for an application
|
|
159
|
+
* inference profile of the configured account in `BEDROCK_REGION`. A profile of another account
|
|
160
|
+
* is refused before anything is sent: the key would be shown to a resource this instance does
|
|
161
|
+
* not own. Usage on Bedrock is attributed to a consumer by its application inference profile and
|
|
162
|
+
* the consumer's credential may call that alone, so a model id or a shared profile is refused.
|
|
163
|
+
* The reason never repeats the id: an ARN holds the account id. The adapter and the CLI that
|
|
164
|
+
* writes the entry apply the same rule.
|
|
165
|
+
*/
|
|
166
|
+
declare function bedrockProfileRefusal(model: string, accountId: string): string | undefined;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* How a release config file that `extends` another is read over it: objects merge key by key,
|
|
170
|
+
* the extending file winning; lists and values replace the base's wholesale. The instance's
|
|
171
|
+
* loader and the CLI that writes release config merge the same way.
|
|
172
|
+
*/
|
|
173
|
+
declare function mergeConfigObjects(base: Record<string, unknown>, overrides: Record<string, unknown>): Record<string, unknown>;
|
|
174
|
+
/** An object a config merges into, not a list or a YAML-derived value such as a Date. */
|
|
175
|
+
declare function isPlainConfigObject(value: unknown): value is Record<string, unknown>;
|
|
176
|
+
|
|
177
|
+
declare const PROJECT_ACTIONS: readonly ["project.read", "project.write", "project.delete"];
|
|
178
|
+
/** The kind of a project's definition: a named folder of chat work in one workspace. */
|
|
179
|
+
declare const PROJECT_ASSET_KIND = "project";
|
|
180
|
+
/**
|
|
181
|
+
* Who reads a project, its files and every conversation in it: every member of its workspace,
|
|
182
|
+
* or its creator alone. The same pair a conversation's visibility holds.
|
|
183
|
+
*/
|
|
184
|
+
declare const PROJECT_AUDIENCES: readonly ["workspace", "private"];
|
|
185
|
+
type ProjectAudience = (typeof PROJECT_AUDIENCES)[number];
|
|
186
|
+
/**
|
|
187
|
+
* What a project's deletion does with its chats (PRJ-6): they stay in the workspace, outside a
|
|
188
|
+
* project, or are deleted with it.
|
|
189
|
+
*/
|
|
190
|
+
declare const PROJECT_DELETION_CONVERSATIONS: readonly ["keep", "delete"];
|
|
191
|
+
type ProjectDeletionConversations = (typeof PROJECT_DELETION_CONVERSATIONS)[number];
|
|
192
|
+
/** Who made a version of a project file: a person on the page, an agent in a chat, an upload. */
|
|
193
|
+
declare const PROJECT_FILE_ORIGINS: readonly ["person", "agent", "upload"];
|
|
194
|
+
/** What a change did to a project's folder (PRJ-2). */
|
|
195
|
+
declare const PROJECT_FILE_CHANGES: readonly ["created", "updated", "deleted", "restored", "unchanged", "conflict_copy"];
|
|
196
|
+
/** What a write of an agent in the folder did: it neither deletes nor restores. */
|
|
197
|
+
declare const PROJECT_FOLDER_WRITE_CHANGES: readonly ["created", "updated", "unchanged", "conflict_copy"];
|
|
198
|
+
/** The longest title of a project, in characters. */
|
|
199
|
+
declare const PROJECT_TITLE_MAX_LENGTH = 120;
|
|
200
|
+
/** The longest description of a project, in characters. */
|
|
201
|
+
declare const PROJECT_DESCRIPTION_MAX_LENGTH = 500;
|
|
202
|
+
/** The most skills a project attaches (PRJ-7). */
|
|
203
|
+
declare const PROJECT_SKILLS_MAX = 20;
|
|
204
|
+
/** The most Knowledge Bases a project attaches (PRJ-8). */
|
|
205
|
+
declare const PROJECT_KNOWLEDGE_BASES_MAX = 20;
|
|
206
|
+
/**
|
|
207
|
+
* Why a project's choice is greyed: the person's own, in a project others read; or a Knowledge
|
|
208
|
+
* Base not everyone in the project's audience may search (PRJ-8).
|
|
209
|
+
*/
|
|
210
|
+
declare const PROJECT_CHOICE_REFUSALS: readonly ["own_in_shared_project", "not_everyone_may_use"];
|
|
211
|
+
/**
|
|
212
|
+
* The name the server makes of a title: lowercase words joined by hyphens, then a hyphen and a
|
|
213
|
+
* random suffix. A person never types it, and it never changes.
|
|
214
|
+
*/
|
|
215
|
+
declare const PROJECT_NAME_PATTERN: RegExp;
|
|
216
|
+
declare const PROJECT_NAME_MAX_LENGTH = 64;
|
|
131
217
|
|
|
132
218
|
/**
|
|
133
219
|
* The values the HTTP contract of an instance is written with: scopes, actions, error codes
|
|
@@ -137,16 +223,16 @@ interface SkillResourceConfig {
|
|
|
137
223
|
*/
|
|
138
224
|
declare const AUTH_SCOPE_WILDCARD: "*";
|
|
139
225
|
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"];
|
|
140
|
-
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"];
|
|
226
|
+
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"];
|
|
141
227
|
type ChatSessionAuthScope = (typeof CHAT_SESSION_AUTH_SCOPES)[number];
|
|
142
228
|
type FirstPartyAuthScope = (typeof FIRST_PARTY_AUTH_SCOPES)[number];
|
|
143
229
|
type OperationScope = Exclude<FirstPartyAuthScope, "*">;
|
|
144
|
-
|
|
230
|
+
/**
|
|
231
|
+
* Every right of the platform, one file per domain under `contract-values/`. The order is kept:
|
|
232
|
+
* `GRANTABLE_ACTIONS` filters it, and the rights dialog lists rights in it.
|
|
233
|
+
*/
|
|
234
|
+
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", "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", "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"];
|
|
145
235
|
type PlatformAction = (typeof ACTIONS)[number];
|
|
146
|
-
/** A Namespace prefix: lowercase words joined by single hyphens, ending in one hyphen. */
|
|
147
|
-
declare const NAMESPACE_PREFIX_PATTERN: RegExp;
|
|
148
|
-
declare const NAMESPACE_PREFIX_MIN_LENGTH = 2;
|
|
149
|
-
declare const NAMESPACE_PREFIX_MAX_LENGTH = 32;
|
|
150
236
|
type AppErrorCode = (typeof APP_ERROR_CODES)[number];
|
|
151
237
|
/** The HTTP status every error code answers with. */
|
|
152
238
|
declare const APP_ERROR_STATUS_CODES: Record<AppErrorCode, number>;
|
|
@@ -160,11 +246,11 @@ declare const IDEMPOTENCY_KEY_MAX_LENGTH = 255;
|
|
|
160
246
|
declare const PROVIDER_PORTS: readonly ["models", "mail", "objectStorage", "sandbox", "secrets"];
|
|
161
247
|
type ProviderPort = (typeof PROVIDER_PORTS)[number];
|
|
162
248
|
/**
|
|
163
|
-
* Where a provider processes the data an instance sends it.
|
|
164
|
-
*
|
|
249
|
+
* Where a provider processes the data an instance sends it. Only `eu` admits personal
|
|
250
|
+
* Connections; other short strings describe routes outside that boundary.
|
|
165
251
|
*/
|
|
166
252
|
declare const PROVIDER_REGIONS: readonly ["eu", "global"];
|
|
167
|
-
type ProviderRegion =
|
|
253
|
+
type ProviderRegion = string;
|
|
168
254
|
/**
|
|
169
255
|
* Why a check failed. Product-owned and closed: it is all of a failure that reaches a log, the
|
|
170
256
|
* API or a page, so a provider's own error text, which can repeat a key or an address, cannot.
|
|
@@ -173,7 +259,7 @@ declare const PROVIDER_CHECK_ERROR_CLASSES: readonly ["unreachable", "timeout",
|
|
|
173
259
|
type ProviderCheckErrorClass = (typeof PROVIDER_CHECK_ERROR_CLASSES)[number];
|
|
174
260
|
/**
|
|
175
261
|
* The immutable machine name. It is part of every operation name of the Connection
|
|
176
|
-
* (`connection.<name>.<operation>`), so it holds no dot.
|
|
262
|
+
* (`connection.<name>.<operation>`), so it holds no dot.
|
|
177
263
|
*/
|
|
178
264
|
declare const CONNECTION_NAME_PATTERN: RegExp;
|
|
179
265
|
declare const CONNECTION_NAME_MAX_LENGTH = 64;
|
|
@@ -193,10 +279,33 @@ type ConnectionExposure = (typeof CONNECTION_EXPOSURES)[number];
|
|
|
193
279
|
/** The health of a Connection as its page and its list show it. */
|
|
194
280
|
declare const CONNECTION_HEALTH_STATES: readonly ["unknown", "ok", "failed", "needs_configuration", "secret_unreadable"];
|
|
195
281
|
type ConnectionHealth = (typeof CONNECTION_HEALTH_STATES)[number];
|
|
282
|
+
/**
|
|
283
|
+
* Sharing an asset up the ladder (SHARE-1): its rungs, Nur ich (a Personal Workspace), Team (a
|
|
284
|
+
* Shared Workspace) and Alle (the instance); whether a move is made at once or as a request; how
|
|
285
|
+
* it ended; and who edits and uses the asset at its new owner.
|
|
286
|
+
*/
|
|
287
|
+
declare const ASSET_OWNER_RUNGS: readonly ["personal", "team", "everyone"];
|
|
288
|
+
type AssetOwnerRung = (typeof ASSET_OWNER_RUNGS)[number];
|
|
289
|
+
declare const ASSET_MOVE_PATHS: readonly ["direct", "request"];
|
|
290
|
+
type AssetMovePath = (typeof ASSET_MOVE_PATHS)[number];
|
|
291
|
+
declare const ASSET_MOVE_STATUSES: readonly ["moved", "requested"];
|
|
292
|
+
type AssetMoveStatus = (typeof ASSET_MOVE_STATUSES)[number];
|
|
293
|
+
declare const ASSET_MOVE_EDITORS: readonly ["workspace_builders", "instance_builders"];
|
|
294
|
+
type AssetMoveEditors = (typeof ASSET_MOVE_EDITORS)[number];
|
|
295
|
+
declare const ASSET_MOVE_USERS: readonly ["workspace_members", "everyone_where_offered"];
|
|
296
|
+
type AssetMoveUsers = (typeof ASSET_MOVE_USERS)[number];
|
|
196
297
|
declare const GRANT_HOLDER_KINDS: readonly ["user", "service_principal", "role", "group"];
|
|
197
298
|
type GrantHolderKind = (typeof GRANT_HOLDER_KINDS)[number];
|
|
198
|
-
declare const GRANT_SCOPE_KINDS: readonly ["instance", "workspace", "
|
|
299
|
+
declare const GRANT_SCOPE_KINDS: readonly ["instance", "workspace", "asset"];
|
|
199
300
|
type GrantScopeKind = (typeof GRANT_SCOPE_KINDS)[number];
|
|
301
|
+
/** Where a role's grant lies: the whole instance, one workspace or one asset. */
|
|
302
|
+
declare const ROLE_GRANT_SCOPE_KINDS: readonly ["instance", "workspace", "asset"];
|
|
303
|
+
type RoleGrantScopeKind = (typeof ROLE_GRANT_SCOPE_KINDS)[number];
|
|
304
|
+
/** What a release did to an action of a built-in role's default that waits for a decision. */
|
|
305
|
+
declare const ROLE_PENDING_CHANGES: readonly ["added", "removed"];
|
|
306
|
+
/** The decision on a pending action: apply what the release did, or dismiss it. */
|
|
307
|
+
declare const ROLE_PENDING_DECISIONS: readonly ["apply", "dismiss"];
|
|
308
|
+
type RolePendingDecision = (typeof ROLE_PENDING_DECISIONS)[number];
|
|
200
309
|
declare const GRANT_EFFECTS: readonly ["allow", "deny"];
|
|
201
310
|
type GrantEffect = (typeof GRANT_EFFECTS)[number];
|
|
202
311
|
declare const ACCESS_SOURCES: readonly ["role", "legacy_ref", "grant", "membership"];
|
|
@@ -209,14 +318,40 @@ declare const ADMINISTERED_USER_STATUSES: readonly ["active", "disabled", "delet
|
|
|
209
318
|
type AdministeredUserStatus = (typeof ADMINISTERED_USER_STATUSES)[number];
|
|
210
319
|
declare const SERVICE_PRINCIPAL_STATUSES: readonly ["active", "disabled"];
|
|
211
320
|
type ServicePrincipalStatus = (typeof SERVICE_PRINCIPAL_STATUSES)[number];
|
|
321
|
+
/**
|
|
322
|
+
* When the account a Workflow runs as needs a right its definition names. `publish`: the
|
|
323
|
+
* publish is refused without it. `run`: the step that needs it fails when it runs.
|
|
324
|
+
*/
|
|
325
|
+
declare const WORKFLOW_RIGHT_NEEDED_FOR: readonly ["publish", "run"];
|
|
326
|
+
/** The revision of a publish's Workflow the rights are read from: the one published, or a live child. */
|
|
327
|
+
declare const WORKFLOW_RIGHTS_REVISIONS: readonly ["draft", "published"];
|
|
328
|
+
/** How the account a Workflow names stands: a principal's status, or no principal of the name. */
|
|
329
|
+
declare const WORKFLOW_RUN_ACCOUNT_STATUSES: readonly ["active", "disabled", "unknown"];
|
|
330
|
+
/**
|
|
331
|
+
* Why a reader cannot give an account a right it lacks. `not_grantable`: nobody can give it to
|
|
332
|
+
* an account here. `not_administrator`: giving needs someone who administers technical
|
|
333
|
+
* accounts. `not_held`: the reader does not hold it there. `account_unavailable`: the account
|
|
334
|
+
* is missing or disabled. `asset_unavailable`: no active asset of the name exists.
|
|
335
|
+
*/
|
|
336
|
+
declare const WORKFLOW_RIGHT_REFUSALS: readonly ["not_grantable", "not_administrator", "not_held", "account_unavailable", "asset_unavailable", "not_visible"];
|
|
212
337
|
declare const SERVICE_PRINCIPAL_PERMISSIONS: readonly ["config_assets.read", "config_assets.release"];
|
|
213
338
|
type ServicePrincipalPermission = (typeof SERVICE_PRINCIPAL_PERMISSIONS)[number];
|
|
214
339
|
declare const API_CREDENTIAL_SCOPES: readonly ["config_assets:read", "config_assets:release"];
|
|
215
340
|
type ApiCredentialScope = (typeof API_CREDENTIAL_SCOPES)[number];
|
|
216
341
|
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"];
|
|
217
342
|
declare const OPERATION_EFFECTS: readonly ["reading", "changing"];
|
|
343
|
+
/** The parts a catalogue entry can bring: tools agents call, or a Knowledge Base source. */
|
|
344
|
+
declare const CATALOGUE_PARTS: readonly ["tools", "source"];
|
|
345
|
+
type CataloguePart = (typeof CATALOGUE_PARTS)[number];
|
|
346
|
+
/** The categories a catalogue entry's card is filed under. */
|
|
347
|
+
declare const CATALOGUE_CATEGORIES: readonly ["mail", "files", "accounting", "databases", "other"];
|
|
348
|
+
type CatalogueCategory = (typeof CATALOGUE_CATEGORIES)[number];
|
|
218
349
|
declare const OPERATION_TARGETS: readonly ["live", "test", "dry_run"];
|
|
219
350
|
type OperationTarget = (typeof OPERATION_TARGETS)[number];
|
|
351
|
+
/** The test target of an asset a call of a draft reaches (ADR-0031): there, or made by a change. */
|
|
352
|
+
declare const DRAFT_TEST_TARGETS: readonly ["present", "made_on_change"];
|
|
353
|
+
/** How a changing call a publish makes live differs from the live revision (DT-1b). */
|
|
354
|
+
declare const PUBLISH_CHANGE_KINDS: readonly ["new", "changed"];
|
|
220
355
|
declare const OPERATION_RUN_STATUSES: readonly ["running", "pending_confirmation", "pending_approval", "done", "failed", "denied", "expired"];
|
|
221
356
|
type OperationRunStatus = (typeof OPERATION_RUN_STATUSES)[number];
|
|
222
357
|
declare const OPERATION_ORIGIN_KINDS: readonly ["agent", "user", "cli", "mcp", "app", "workflow", "schedule"];
|
|
@@ -237,6 +372,8 @@ declare const SKILL_CHANGE_TYPES: readonly ["replace", "add", "new_resource"];
|
|
|
237
372
|
type SkillChangeType = (typeof SKILL_CHANGE_TYPES)[number];
|
|
238
373
|
declare const GUARDRAIL_OUTCOMES: readonly ["allow", "warn", "require_approval", "block"];
|
|
239
374
|
type GuardrailOutcome = (typeof GUARDRAIL_OUTCOMES)[number];
|
|
375
|
+
/** The kinds of a guardrail's check: an RE2 pattern, or a model reading the content. */
|
|
376
|
+
declare const GUARDRAIL_CHECK_KINDS: readonly ["pattern", "model_judge"];
|
|
240
377
|
declare const APP_MODES: readonly ["published", "draft"];
|
|
241
378
|
type AppMode = (typeof APP_MODES)[number];
|
|
242
379
|
declare const ASSET_NAME_REFUSAL_REASONS: readonly ["name_invalid", "name_taken"];
|
|
@@ -253,6 +390,12 @@ declare const CONFIG_ASSET_CHANGE_OPERATIONS: readonly ["create", "update", "del
|
|
|
253
390
|
type ConfigAssetChangeOperation = (typeof CONFIG_ASSET_CHANGE_OPERATIONS)[number];
|
|
254
391
|
declare const AGENT_AVAILABILITY_MODES: readonly ["all", "selected"];
|
|
255
392
|
type AgentAvailabilityMode = (typeof AGENT_AVAILABILITY_MODES)[number];
|
|
393
|
+
/**
|
|
394
|
+
* Who uses an agent where it is available (AGENT-USE-1): everyone who may work there, or only
|
|
395
|
+
* those `agent.use` allows on it. Every agent starts at `everyone`.
|
|
396
|
+
*/
|
|
397
|
+
declare const AGENT_USE_SETTINGS: readonly ["everyone", "granted"];
|
|
398
|
+
type AgentUse = (typeof AGENT_USE_SETTINGS)[number];
|
|
256
399
|
declare const AGENT_EDITABLE_FIELDS: readonly ["displayName", "description", "welcomeMessage", "welcomeSubtitle", "instructions", "modelBindingId", "reasoningEffort", "maxSteps", "toolNames", "skillNames", "knowledgeBases", "initialPrompts"];
|
|
257
400
|
type AgentEditableField = (typeof AGENT_EDITABLE_FIELDS)[number];
|
|
258
401
|
declare const ASSET_REPO_BUNDLE_KINDS: readonly ["full", "incremental"];
|
|
@@ -269,6 +412,21 @@ declare const COLLABORATION_WORKSPACE_KINDS: readonly ["personal", "shared"];
|
|
|
269
412
|
type CollaborationWorkspaceKind = (typeof COLLABORATION_WORKSPACE_KINDS)[number];
|
|
270
413
|
declare const WORKSPACE_ACCESS_STATES: readonly ["member", "request_pending", "can_request"];
|
|
271
414
|
type WorkspaceAccessState = (typeof WORKSPACE_ACCESS_STATES)[number];
|
|
415
|
+
/** The two bundles a member of a Shared Workspace holds one by one (AP-3). */
|
|
416
|
+
declare const WORKSPACE_BUNDLES: readonly ["builder", "publisher"];
|
|
417
|
+
type WorkspaceBundle = (typeof WORKSPACE_BUNDLES)[number];
|
|
418
|
+
/**
|
|
419
|
+
* Where a member stands with one bundle on the Members screen: held through a row in this
|
|
420
|
+
* workspace, held some other way (a role, a group or the whole instance), asked for, or not.
|
|
421
|
+
*/
|
|
422
|
+
declare const MEMBER_BUNDLE_STATES: readonly ["none", "requested", "held", "inherited"];
|
|
423
|
+
type MemberBundleState = (typeof MEMBER_BUNDLE_STATES)[number];
|
|
424
|
+
/** What the caller's switch does to one bundle of one member. */
|
|
425
|
+
declare const MEMBER_BUNDLE_CHANGES: readonly ["grant", "request", "revoke", "withdraw"];
|
|
426
|
+
type MemberBundleChange = (typeof MEMBER_BUNDLE_CHANGES)[number];
|
|
427
|
+
/** Why a request for Builder or Publisher can no longer give what it asked. */
|
|
428
|
+
declare const GRANT_REQUEST_STALE_REASONS: readonly ["member_left", "member_inactive", "already_held"];
|
|
429
|
+
type GrantRequestStaleReason = (typeof GRANT_REQUEST_STALE_REASONS)[number];
|
|
272
430
|
declare const DELETION_STATES: readonly ["deleting", "deleted"];
|
|
273
431
|
type DeletionState = (typeof DELETION_STATES)[number];
|
|
274
432
|
declare const WORKSPACE_SECTIONS: readonly ["agents", "apps"];
|
|
@@ -290,6 +448,8 @@ type ModelProviderAuthMode = (typeof MODEL_PROVIDER_AUTH_MODES)[number];
|
|
|
290
448
|
declare const CONVERSATION_VISIBILITIES: readonly ["workspace", "private"];
|
|
291
449
|
/** A conversation a person has, or the run thread of a Child Agent Run. */
|
|
292
450
|
declare const CONVERSATION_KINDS: readonly ["chat", "run_thread"];
|
|
451
|
+
/** The longest title a person or their agent can give a conversation. */
|
|
452
|
+
declare const CONVERSATION_TITLE_MAX_CHARS = 120;
|
|
293
453
|
type ConversationKind = (typeof CONVERSATION_KINDS)[number];
|
|
294
454
|
type ConversationVisibility = (typeof CONVERSATION_VISIBILITIES)[number];
|
|
295
455
|
declare const WEB_SOURCE_PROVIDERS: readonly ["openai-native", "serper", "tavily", "firecrawl", "browserbase", "direct"];
|
|
@@ -302,8 +462,10 @@ declare const ATTACHMENT_CREATE_OUTCOMES: readonly ["created", "already_availabl
|
|
|
302
462
|
type AttachmentCreateOutcome = (typeof ATTACHMENT_CREATE_OUTCOMES)[number];
|
|
303
463
|
declare const STRUCTURED_DATA_REVIEW_REASONS: readonly ["uncertain", "conflicting"];
|
|
304
464
|
type StructuredDataReviewReason = (typeof STRUCTURED_DATA_REVIEW_REASONS)[number];
|
|
305
|
-
|
|
306
|
-
declare const
|
|
465
|
+
/** Queued: sent as the next turn. Steer: taken in by the author's own running turn (FU-2). */
|
|
466
|
+
declare const FOLLOW_UP_MODES: readonly ["queue", "steer"];
|
|
467
|
+
/** `consumed`: a steer the running turn took in; `dispatched`: started as a turn of its own. */
|
|
468
|
+
declare const FOLLOW_UP_STATUSES: readonly ["pending", "dispatched", "consumed", "cancelled"];
|
|
307
469
|
declare const AGENT_RUN_STATUSES: readonly ["queued", "running", "waiting_for_decision", "waiting_for_subagents", "cancelling", "completed", "cancelled", "failed"];
|
|
308
470
|
type AgentRunStatus = (typeof AGENT_RUN_STATUSES)[number];
|
|
309
471
|
declare const AGENT_RUN_FAILURE_CATEGORIES: readonly ["app_error", "internal_error", "runtime_interrupted", "abort_error", "unknown_error"];
|
|
@@ -312,6 +474,10 @@ declare const TOOL_INPUT_PARSE_ERROR_CODES: readonly ["invalid_json", "invalid_t
|
|
|
312
474
|
type ToolInputParseErrorCode = (typeof TOOL_INPUT_PARSE_ERROR_CODES)[number];
|
|
313
475
|
declare const WAITING_OPERATION_RUN_STATUSES: readonly ["pending_confirmation", "pending_approval"];
|
|
314
476
|
declare const OPERATION_CONFIRMATION_DECISIONS: readonly ["confirm", "decline"];
|
|
477
|
+
/** A person's own value for an operation (OP-6): Always allow, Ask me, Never. */
|
|
478
|
+
declare const PERSON_POLICY_SETTINGS: readonly ["always_allow", "ask", "never"];
|
|
479
|
+
/** How far a changing operation reaches. One that declares none counts as `irreversible`. */
|
|
480
|
+
declare const OPERATION_CHANGE_CLASSES: readonly ["reversible", "irreversible", "outward"];
|
|
315
481
|
declare const TOOL_DECISION_MODES: readonly ["confirm", "approval"];
|
|
316
482
|
declare const TOOL_DECISION_OUTCOMES: readonly ["confirmed", "declined", "expired", "cancelled"];
|
|
317
483
|
declare const TOOL_CALL_STATES: readonly ["input_available", "waiting_for_decision", "output_available", "output_error"];
|
|
@@ -344,8 +510,17 @@ declare const CONNECTION_OPERATION_STATUSES: readonly ["ready", "awaiting_discov
|
|
|
344
510
|
type ConnectionOperationStatus = (typeof CONNECTION_OPERATION_STATUSES)[number];
|
|
345
511
|
declare const CONNECTION_SECRET_STATES: readonly ["set", "not_set", "unreadable"];
|
|
346
512
|
type ConnectionSecretState = (typeof CONNECTION_SECRET_STATES)[number];
|
|
513
|
+
/**
|
|
514
|
+
* The states of a Connection's test credential (ADR-0031). `stale`: one is stored that no call
|
|
515
|
+
* can use, since the Connection's address or auth scheme changed after it was set.
|
|
516
|
+
*/
|
|
517
|
+
declare const CONNECTION_TEST_CREDENTIAL_STATES: readonly ["not_set", "set", "stale"];
|
|
518
|
+
type ConnectionTestCredentialState = (typeof CONNECTION_TEST_CREDENTIAL_STATES)[number];
|
|
347
519
|
declare const CONNECTOR_TEST_STATUSES: readonly ["ready", "unauthorized", "network_denied", "unavailable", "oauth_required"];
|
|
348
520
|
type ConnectorTestStatus = (typeof CONNECTOR_TEST_STATUSES)[number];
|
|
521
|
+
/** Shared account, or the acting person's own account. */
|
|
522
|
+
declare const CONNECTION_CREDENTIAL_MODES: readonly ["shared", "user"];
|
|
523
|
+
type ConnectionCredentialMode = (typeof CONNECTION_CREDENTIAL_MODES)[number];
|
|
349
524
|
/**
|
|
350
525
|
* The state of a Connection's sign-in. `connected`: calls use it. `needs_reconnect`: the
|
|
351
526
|
* outside system refused it and a new sign-in is needed. `revoked`: someone disconnected it,
|
|
@@ -353,11 +528,20 @@ type ConnectorTestStatus = (typeof CONNECTOR_TEST_STATUSES)[number];
|
|
|
353
528
|
*/
|
|
354
529
|
declare const CONNECTION_BINDING_STATES: readonly ["connected", "needs_reconnect", "revoked"];
|
|
355
530
|
type ConnectionBindingState = (typeof CONNECTION_BINDING_STATES)[number];
|
|
531
|
+
/** What a chat Connection proposal's card needs to start setup or sign-in. */
|
|
532
|
+
declare const CONNECTION_PROPOSAL_STATES: readonly ["ready", "needs_setup"];
|
|
533
|
+
type ConnectionProposalState = (typeof CONNECTION_PROPOSAL_STATES)[number];
|
|
534
|
+
declare const CONNECTION_PROPOSAL_BINDING_STATES: readonly ["connected", "needs_reconnect", "not_connected"];
|
|
535
|
+
type ConnectionProposalBindingState = (typeof CONNECTION_PROPOSAL_BINDING_STATES)[number];
|
|
536
|
+
/** What a refused call of a personal Connection needs of its person: a first or a new sign-in. */
|
|
537
|
+
declare const CONNECTION_SIGN_IN_NEEDS: readonly ["not_connected", "needs_reconnect"];
|
|
538
|
+
type ConnectionSignInNeed = (typeof CONNECTION_SIGN_IN_NEEDS)[number];
|
|
356
539
|
/**
|
|
357
540
|
* How a Connection that signs in with OAuth has its client: registered by the platform
|
|
358
|
-
* (Dynamic Client Registration)
|
|
541
|
+
* (Dynamic Client Registration), issued by the provider and named in the settings, or the
|
|
542
|
+
* operator's managed client of release config (`infrastructure.oauthClients`, MS-APP-1).
|
|
359
543
|
*/
|
|
360
|
-
declare const CONNECTION_OAUTH_REGISTRATIONS: readonly ["dcr", "preregistered"];
|
|
544
|
+
declare const CONNECTION_OAUTH_REGISTRATIONS: readonly ["dcr", "preregistered", "managed"];
|
|
361
545
|
type ConnectionOAuthRegistration = (typeof CONNECTION_OAUTH_REGISTRATIONS)[number];
|
|
362
546
|
/**
|
|
363
547
|
* What the provider answered to the revocation of a sign-in (RFC 7009): it confirmed, it
|
|
@@ -387,6 +571,14 @@ type DataStoreMigrationOutcome = (typeof DATA_STORE_MIGRATION_OUTCOMES)[number];
|
|
|
387
571
|
*/
|
|
388
572
|
declare const KNOWLEDGE_BASE_STATUSES: readonly ["unchecked", "preparing", "ok", "needs_attention"];
|
|
389
573
|
type KnowledgeBaseStatus = (typeof KNOWLEDGE_BASE_STATUSES)[number];
|
|
574
|
+
/**
|
|
575
|
+
* The embedding of a Knowledge Base that searches by meaning. `current`: its index embeds with
|
|
576
|
+
* the model it is set to. `reindex_needed`: the index's model is gone from the instance, so
|
|
577
|
+
* search answers by words and titles alone. `reindex_available`: it is set to another model
|
|
578
|
+
* than its index uses. `reindexing`: a new index is being built beside the one search reads.
|
|
579
|
+
* `none`: nothing is embedded yet.
|
|
580
|
+
*/
|
|
581
|
+
declare const KNOWLEDGE_EMBEDDING_STATES: readonly ["current", "reindex_needed", "reindex_available", "reindexing", "none"];
|
|
390
582
|
/**
|
|
391
583
|
* What the page of a Knowledge Base shows of one document. `pending` is added and not yet
|
|
392
584
|
* searchable: waiting for its index job, being indexed or waiting for extraction. `indexed` is
|
|
@@ -396,10 +588,16 @@ type KnowledgeBaseStatus = (typeof KNOWLEDGE_BASE_STATUSES)[number];
|
|
|
396
588
|
declare const KNOWLEDGE_DOCUMENT_STATES: readonly ["pending", "indexed", "failed"];
|
|
397
589
|
type KnowledgeDocumentState = (typeof KNOWLEDGE_DOCUMENT_STATES)[number];
|
|
398
590
|
/**
|
|
399
|
-
*
|
|
400
|
-
*
|
|
591
|
+
* The largest file a Knowledge Base takes, as document processing takes it. A larger file is
|
|
592
|
+
* refused when it is added, with this limit named.
|
|
401
593
|
*/
|
|
402
|
-
declare const
|
|
594
|
+
declare const KNOWLEDGE_FILE_MAX_BYTES: number;
|
|
595
|
+
/**
|
|
596
|
+
* Why a document was not indexed. The first five and `knowledge_file_too_many_pages` can also
|
|
597
|
+
* come from the extraction of a PDF or DOCX (`KNOWLEDGE_EXTRACTION_FAILURE_CODES` in core); the
|
|
598
|
+
* rest are the index job's own. The list only gains members.
|
|
599
|
+
*/
|
|
600
|
+
declare const KNOWLEDGE_DOCUMENT_FAILURE_CODES: readonly ["knowledge_file_format_unsupported", "knowledge_file_over_limit", "knowledge_file_unreadable", "knowledge_file_missing", "knowledge_extraction_failed", "knowledge_file_format_unavailable", "knowledge_text_unreadable", "knowledge_text_empty", "knowledge_index_failed", "knowledge_file_too_many_pages", "knowledge_processor_output_invalid", "knowledge_conversion_timeout"];
|
|
403
601
|
type KnowledgeDocumentFailureCode = (typeof KNOWLEDGE_DOCUMENT_FAILURE_CODES)[number];
|
|
404
602
|
/**
|
|
405
603
|
* Why a `pending` document waits, where it waits for something other than its turn. It goes on
|
|
@@ -413,10 +611,10 @@ type KnowledgeDocumentWaitCode = (typeof KNOWLEDGE_DOCUMENT_WAIT_CODES)[number];
|
|
|
413
611
|
* recorded with `knowledge_file_over_limit` or `knowledge_file_format_unsupported` and never
|
|
414
612
|
* fetched. Spec: Synced sources, Contract freezes (SRC-0).
|
|
415
613
|
*/
|
|
416
|
-
declare const KNOWLEDGE_SOURCE_FAILURE_CODES: readonly ["knowledge_source_unreachable", "knowledge_source_refused", "knowledge_fetch_failed", "knowledge_source_limit_reached"];
|
|
614
|
+
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"];
|
|
417
615
|
type KnowledgeSourceFailureCode = (typeof KNOWLEDGE_SOURCE_FAILURE_CODES)[number];
|
|
418
616
|
/** The code a failed item of a synced source carries: a source code, or one it shares with a file added by hand. */
|
|
419
|
-
declare const KNOWLEDGE_SOURCE_ITEM_FAILURE_CODES: readonly ["knowledge_source_unreachable", "knowledge_source_refused", "knowledge_fetch_failed", "knowledge_source_limit_reached", "knowledge_file_over_limit", "knowledge_file_format_unsupported"];
|
|
617
|
+
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"];
|
|
420
618
|
type KnowledgeSourceItemFailureCode = (typeof KNOWLEDGE_SOURCE_ITEM_FAILURE_CODES)[number];
|
|
421
619
|
/**
|
|
422
620
|
* The state of an item of a synced source as the sync keeps it. It ends at `fetched`: from
|
|
@@ -426,11 +624,12 @@ declare const KNOWLEDGE_SOURCE_ITEM_STATES: readonly ["discovered", "fetched", "
|
|
|
426
624
|
type KnowledgeSourceItemState = (typeof KNOWLEDGE_SOURCE_ITEM_STATES)[number];
|
|
427
625
|
/**
|
|
428
626
|
* How a sync of a source walks it: `initial` and `full` list every item below its folders,
|
|
429
|
-
* `changes` reads the source's change feed from the stored cursor
|
|
627
|
+
* `changes` reads the source's change feed from the stored cursor, and `ingest` is one call
|
|
628
|
+
* of `knowledge.<id>.ingest` from a Workflow into its Workflow-fed source.
|
|
430
629
|
*/
|
|
431
|
-
declare const KNOWLEDGE_SYNC_MODES: readonly ["initial", "changes", "full"];
|
|
630
|
+
declare const KNOWLEDGE_SYNC_MODES: readonly ["initial", "changes", "full", "ingest"];
|
|
432
631
|
type KnowledgeSyncMode = (typeof KNOWLEDGE_SYNC_MODES)[number];
|
|
433
|
-
declare const KNOWLEDGE_SYNC_RUN_STATES: readonly ["running", "done", "failed"];
|
|
632
|
+
declare const KNOWLEDGE_SYNC_RUN_STATES: readonly ["running", "done", "failed", "superseded"];
|
|
434
633
|
type KnowledgeSyncRunState = (typeof KNOWLEDGE_SYNC_RUN_STATES)[number];
|
|
435
634
|
/** What a sync run counts, in this order wherever it shows them. */
|
|
436
635
|
declare const KNOWLEDGE_SYNC_COUNTS: readonly ["discovered", "added", "changed", "moved", "withdrawn", "failed", "skipped"];
|
|
@@ -443,15 +642,52 @@ declare const KNOWLEDGE_SEARCH_SIGNALS: readonly ["semantic", "keyword", "title"
|
|
|
443
642
|
type KnowledgeSearchSignal = (typeof KNOWLEDGE_SEARCH_SIGNALS)[number];
|
|
444
643
|
declare const DATABASE_RELATION_TYPES: readonly ["table", "view", "materialized_view", "foreign_table"];
|
|
445
644
|
type DatabaseRelationType = (typeof DATABASE_RELATION_TYPES)[number];
|
|
446
|
-
declare const WORKFLOW_RUN_STATUSES: readonly ["queued", "running", "waiting", "done", "failed", "cancelled", "limit_reached"];
|
|
645
|
+
declare const WORKFLOW_RUN_STATUSES: readonly ["continued", "queued", "running", "waiting", "done", "failed", "cancelled", "limit_reached"];
|
|
447
646
|
type WorkflowRunStatus = (typeof WORKFLOW_RUN_STATUSES)[number];
|
|
448
|
-
declare const WORKFLOW_STEP_TYPES: readonly ["trigger", "operation", "loop", "code", "output", "agent", "notify", "workflow"];
|
|
647
|
+
declare const WORKFLOW_STEP_TYPES: readonly ["trigger", "operation", "loop", "code", "output", "agent", "notify", "workflow", "condition", "parallel"];
|
|
449
648
|
type WorkflowStepType = (typeof WORKFLOW_STEP_TYPES)[number];
|
|
450
|
-
|
|
649
|
+
/**
|
|
650
|
+
* The step types this release executes. The engine accepts no definition that names another,
|
|
651
|
+
* and the interface offers no other in its palette (workflow-canvas 9.6). A list of its own, so
|
|
652
|
+
* it can be narrower than `WORKFLOW_STEP_TYPES` while a known type is not run yet.
|
|
653
|
+
*/
|
|
654
|
+
declare const WORKFLOW_EXECUTED_STEP_TYPES: readonly ["trigger", "operation", "loop", "code", "output", "agent", "notify", "workflow", "condition", "parallel"];
|
|
655
|
+
declare const WORKFLOW_RESERVED_STEP_TYPES: readonly [];
|
|
451
656
|
type WorkflowReservedStepType = (typeof WORKFLOW_RESERVED_STEP_TYPES)[number];
|
|
452
|
-
|
|
657
|
+
/**
|
|
658
|
+
* The bounds of a `webhook` trigger. A request is at most `maxBodyBytes`, its timestamp at most
|
|
659
|
+
* `toleranceMs` away from the instance's clock, its nonce used once, and a Workflow accepts
|
|
660
|
+
* `perMinute` requests a minute unless its trigger sets its own, up to `perMinuteMax`.
|
|
661
|
+
*/
|
|
662
|
+
declare const WORKFLOW_WEBHOOK_LIMITS: {
|
|
663
|
+
readonly maxBodyBytes: number;
|
|
664
|
+
readonly toleranceMs: number;
|
|
665
|
+
readonly perMinute: 60;
|
|
666
|
+
readonly perMinuteMax: 600;
|
|
667
|
+
readonly nonceMaxLength: 200;
|
|
668
|
+
};
|
|
669
|
+
/** The headers of a signed webhook request. */
|
|
670
|
+
declare const WORKFLOW_WEBHOOK_HEADERS: {
|
|
671
|
+
readonly timestamp: "catalyst-webhook-timestamp";
|
|
672
|
+
readonly nonce: "catalyst-webhook-nonce";
|
|
673
|
+
readonly signature: "catalyst-webhook-signature";
|
|
674
|
+
};
|
|
675
|
+
declare const WORKFLOW_TRIGGER_KINDS: readonly ["manual", "schedule", "parent", "outside", "webhook", "platform_event"];
|
|
453
676
|
type WorkflowTriggerKind = (typeof WORKFLOW_TRIGGER_KINDS)[number];
|
|
454
677
|
declare const NOTIFY_CHANNELS: readonly ["inbox", "mail"];
|
|
678
|
+
/**
|
|
679
|
+
* What an operation step's facts name as its source (`stepFacts`, workflow-canvas.md 9.8). A
|
|
680
|
+
* step on `mail.send` names its sender as `mail_sender`, with the sender's icon key as
|
|
681
|
+
* `service` (`MAIL_SENDER_SYSTEM_ICON`, or a Connection's service).
|
|
682
|
+
*/
|
|
683
|
+
declare const WORKFLOW_STEP_SOURCE_KINDS: readonly ["connection", "data_store", "knowledge_base", "workflow", "mail_sender", "other"];
|
|
684
|
+
type WorkflowStepSourceKind = (typeof WORKFLOW_STEP_SOURCE_KINDS)[number];
|
|
685
|
+
/**
|
|
686
|
+
* What an operation a step may call belongs to (`operations.list_callable`, WF-EDIT-3). `other`
|
|
687
|
+
* is an operation of the release.
|
|
688
|
+
*/
|
|
689
|
+
declare const OPERATION_SOURCE_KINDS: readonly ["connection", "data_store", "knowledge_base", "workflow", "other"];
|
|
690
|
+
type OperationSourceKind = (typeof OPERATION_SOURCE_KINDS)[number];
|
|
455
691
|
type NotifyChannel = (typeof NOTIFY_CHANNELS)[number];
|
|
456
692
|
declare const PRINCIPAL_HOLDER_KINDS: readonly ["user", "service_principal"];
|
|
457
693
|
type PrincipalHolderKind = (typeof PRINCIPAL_HOLDER_KINDS)[number];
|
|
@@ -459,10 +695,18 @@ declare const ASSET_OWNER_KINDS: readonly ["instance", "workspace"];
|
|
|
459
695
|
type AssetOwnerKind = (typeof ASSET_OWNER_KINDS)[number];
|
|
460
696
|
declare const READING_POLICY_VALUES: readonly ["allow", "deny"];
|
|
461
697
|
type ReadingPolicyValue = (typeof READING_POLICY_VALUES)[number];
|
|
698
|
+
/** Who locked "Always allow": the release config, which no screen lifts, or an instance admin. */
|
|
699
|
+
declare const ALWAYS_ALLOW_LOCK_SOURCES: readonly ["release", "instance"];
|
|
462
700
|
declare const CONNECTION_OPERATION_POLICIES: readonly ["deny", "approval"];
|
|
463
701
|
type ConnectionOperationPolicy = (typeof CONNECTION_OPERATION_POLICIES)[number];
|
|
464
702
|
declare const WORKFLOW_RUN_MODES: readonly ["live", "test"];
|
|
465
703
|
type WorkflowRunMode = (typeof WORKFLOW_RUN_MODES)[number];
|
|
704
|
+
/**
|
|
705
|
+
* Which revision of a Workflow a test run an App's draft started ran (DP-1): its draft, for a
|
|
706
|
+
* tester who may write it, or its published revision.
|
|
707
|
+
*/
|
|
708
|
+
declare const WORKFLOW_TEST_REVISIONS: readonly ["draft", "published"];
|
|
709
|
+
type WorkflowTestRevision = (typeof WORKFLOW_TEST_REVISIONS)[number];
|
|
466
710
|
declare const APP_ACTION_CALL_STATUSES: readonly ["done", "pending_approval"];
|
|
467
711
|
type AppActionCallStatus = (typeof APP_ACTION_CALL_STATUSES)[number];
|
|
468
712
|
declare const OPERATIONS_AUDIENCES: readonly ["workflow", "app"];
|
|
@@ -481,6 +725,13 @@ declare const USER_STATUSES: readonly ["active", "disabled"];
|
|
|
481
725
|
type UserStatus = (typeof USER_STATUSES)[number];
|
|
482
726
|
declare const MESSAGE_FINISH_STATUSES: readonly ["completed", "cancelled"];
|
|
483
727
|
type MessageFinishStatus = (typeof MESSAGE_FINISH_STATUSES)[number];
|
|
728
|
+
/**
|
|
729
|
+
* Why a run went on with its binding's fallback, as the person reads it: the model was
|
|
730
|
+
* overloaded (`rate_limit`) or could not be reached (`unavailable`: a server error, a timeout or
|
|
731
|
+
* a lost connection).
|
|
732
|
+
*/
|
|
733
|
+
declare const MODEL_FALLBACK_REASONS: readonly ["rate_limit", "unavailable"];
|
|
734
|
+
type ModelFallbackReason = (typeof MODEL_FALLBACK_REASONS)[number];
|
|
484
735
|
declare const ENDED_AGENT_RUN_STATUSES: readonly ["completed", "cancelled", "failed"];
|
|
485
736
|
type EndedAgentRunStatus = (typeof ENDED_AGENT_RUN_STATUSES)[number];
|
|
486
737
|
declare const ACTIVE_AGENT_RUN_STATUSES: readonly ["queued", "running", "waiting_for_decision", "waiting_for_subagents", "cancelling"];
|
|
@@ -499,9 +750,83 @@ declare const KNOWLEDGE_CHECK_STATUSES: readonly ["preparing", "ok", "needs_atte
|
|
|
499
750
|
type KnowledgeCheckStatus = (typeof KNOWLEDGE_CHECK_STATUSES)[number];
|
|
500
751
|
declare const WORKFLOW_STEP_RUN_STATUSES: readonly ["queued", "running", "waiting", "done", "failed", "cancelled"];
|
|
501
752
|
type WorkflowStepRunStatus = (typeof WORKFLOW_STEP_RUN_STATUSES)[number];
|
|
502
|
-
declare const WORKFLOW_ENDED_STATUSES: readonly ["done", "failed", "cancelled", "limit_reached"];
|
|
753
|
+
declare const WORKFLOW_ENDED_STATUSES: readonly ["continued", "done", "failed", "cancelled", "limit_reached"];
|
|
503
754
|
type WorkflowEndedStatus = (typeof WORKFLOW_ENDED_STATUSES)[number];
|
|
755
|
+
/** A released Managed File keeps its identity; original bytes live at the synced source. */
|
|
756
|
+
declare const MANAGED_FILE_STATUSES: readonly ["available", "released", "deleted"];
|
|
757
|
+
/** A Workflow automates a process unless it fills or processes data. */
|
|
758
|
+
declare const WORKFLOW_KINDS: readonly ["process", "data"];
|
|
759
|
+
type WorkflowKind = (typeof WORKFLOW_KINDS)[number];
|
|
760
|
+
/** Wire formats for a streamed Workflow result dataset. */
|
|
761
|
+
declare const WORKFLOW_DATASET_DOWNLOAD_FORMATS: readonly ["jsonl", "csv"];
|
|
762
|
+
type WorkflowDatasetDownloadFormat = (typeof WORKFLOW_DATASET_DOWNLOAD_FORMATS)[number];
|
|
763
|
+
/** Instance resources whose use may be inherited through workspace availability. */
|
|
764
|
+
declare const WORKSPACE_USE_ASSET_KINDS: readonly ["knowledge_base", "connection"];
|
|
765
|
+
/** Published assets that consume Connections or stored data. Agents hold tools separately. */
|
|
766
|
+
declare const PUBLISHED_DATA_CONSUMER_KINDS: readonly ["app", "workflow", "knowledge_base"];
|
|
767
|
+
type PublishedDataConsumerKind = (typeof PUBLISHED_DATA_CONSUMER_KINDS)[number];
|
|
768
|
+
/** State of a scheduled prompt. */
|
|
769
|
+
declare const SCHEDULED_START_STATES: readonly ["active", "paused"];
|
|
770
|
+
/** Which revision answered an agent preview turn. */
|
|
771
|
+
declare const AGENT_PREVIEW_SOURCES: readonly ["draft", "live"];
|
|
772
|
+
/** Server capture admission and the shared request lifecycle (browser transport retained). */
|
|
773
|
+
declare const PREVIEW_CAPTURE_SIZES: readonly ["phone", "tablet", "desktop"];
|
|
774
|
+
declare const PREVIEW_CAPTURE_STATUSES: readonly ["pending", "answering", "captured", "refused"];
|
|
775
|
+
declare const SERVER_PREVIEW_CAPTURE_REFUSALS: readonly ["capture_busy", "capture_failed"];
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* What `workflows.capabilities` says of a setting's number: bytes, a count, seconds, minutes,
|
|
779
|
+
* CPUs, or a duration written as text such as `7d`.
|
|
780
|
+
*/
|
|
781
|
+
declare const WORKFLOW_CAPABILITY_UNITS: readonly ["bytes", "count", "seconds", "minutes", "cpus", "duration"];
|
|
782
|
+
type WorkflowCapabilityUnit = (typeof WORKFLOW_CAPABILITY_UNITS)[number];
|
|
783
|
+
/**
|
|
784
|
+
* Whether the instance runs code steps: `available` where it has a sandbox and a command
|
|
785
|
+
* worker, `no_sandbox` where a code step would fail at once.
|
|
786
|
+
*/
|
|
787
|
+
declare const WORKFLOW_CODE_STEP_AVAILABILITY: readonly ["available", "no_sandbox"];
|
|
788
|
+
/** How the runner image's package manifest was read at startup (EW-PKG). */
|
|
789
|
+
declare const WORKFLOW_PACKAGE_MANIFEST_STATES: readonly ["available", "missing", "invalid"];
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* The path of the interface route that shows one App to a signed-in person: the published
|
|
793
|
+
* revision under `/apps/`, or the draft under `/app-drafts/`. Every path below the published
|
|
794
|
+
* one is the App's own, so the draft stands outside it: an App may have any route, `/edit`
|
|
795
|
+
* among them. The server answers it from `apps.preview` and the interface builds its routes
|
|
796
|
+
* from it, so the two never disagree.
|
|
797
|
+
*/
|
|
798
|
+
declare function appInterfacePath(input: {
|
|
799
|
+
workspaceId: string;
|
|
800
|
+
app: string;
|
|
801
|
+
mode: AppMode;
|
|
802
|
+
}): string;
|
|
803
|
+
/** The Studio list of each kind that has one, by the kind's id: `/build/<path>/<name>`. */
|
|
804
|
+
declare const STUDIO_KIND_PATHS: Readonly<Record<string, string>>;
|
|
805
|
+
/**
|
|
806
|
+
* The path of the page where a person works on an asset: its Studio page, a Workflow's canvas,
|
|
807
|
+
* or an App's draft. Nothing for a kind without a page, or for a Workflow or App without the
|
|
808
|
+
* workspace that owns it. It names only what the caller already read: kind, name and owner.
|
|
809
|
+
*/
|
|
810
|
+
declare function assetPagePath(asset: {
|
|
811
|
+
kind: string;
|
|
812
|
+
name: string;
|
|
813
|
+
workspaceId?: string | undefined;
|
|
814
|
+
}): string | undefined;
|
|
815
|
+
/**
|
|
816
|
+
* The path of one conversation of a workspace: a link to it opens the conversation, so a person
|
|
817
|
+
* goes on there with the work it holds, such as the files of an App built in it.
|
|
818
|
+
*/
|
|
819
|
+
declare function conversationInterfacePath(input: {
|
|
820
|
+
workspaceId: string;
|
|
821
|
+
conversationId: string;
|
|
822
|
+
}): string;
|
|
823
|
+
/** The path of one item of the Inbox, such as an approval request, by its id. */
|
|
824
|
+
declare function inboxItemPath(itemId: string): string;
|
|
825
|
+
|
|
826
|
+
declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
504
827
|
|
|
828
|
+
/** A short operator declaration of where a provider processes data. */
|
|
829
|
+
declare const providerRegionSchema: z.ZodString;
|
|
505
830
|
declare const localizedStringSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
506
831
|
en: z.ZodOptional<z.ZodString>;
|
|
507
832
|
de: z.ZodOptional<z.ZodString>;
|
|
@@ -660,6 +985,7 @@ declare const agentConfigSchema: z.ZodObject<{
|
|
|
660
985
|
de: z.ZodOptional<z.ZodString>;
|
|
661
986
|
}, z.core.$strict>]>>;
|
|
662
987
|
instructions: z.ZodString;
|
|
988
|
+
additionalInstructions: z.ZodOptional<z.ZodString>;
|
|
663
989
|
modelProviderId: z.ZodOptional<z.ZodString>;
|
|
664
990
|
modelBindingId: z.ZodOptional<z.ZodString>;
|
|
665
991
|
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
@@ -671,6 +997,7 @@ declare const agentConfigSchema: z.ZodObject<{
|
|
|
671
997
|
max: "max";
|
|
672
998
|
}>>;
|
|
673
999
|
fastMode: z.ZodOptional<z.ZodBoolean>;
|
|
1000
|
+
useModelFallback: z.ZodOptional<z.ZodBoolean>;
|
|
674
1001
|
userSelectableModelBindingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
675
1002
|
modelReasoningEfforts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
676
1003
|
none: "none";
|
|
@@ -695,6 +1022,8 @@ declare const agentConfigSchema: z.ZodObject<{
|
|
|
695
1022
|
de: z.ZodOptional<z.ZodString>;
|
|
696
1023
|
}, z.core.$strict>]>;
|
|
697
1024
|
}, z.core.$strip>>>;
|
|
1025
|
+
shipped: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1026
|
+
shippedNewer: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
698
1027
|
}, z.core.$strip>;
|
|
699
1028
|
/** The id of a Workflow, which is the name of its asset: part of `workflow.<id>.start`. */
|
|
700
1029
|
declare const WORKFLOW_NAME_PATTERN: RegExp;
|
|
@@ -721,6 +1050,15 @@ declare const workflowConfigSchema: z.ZodObject<{
|
|
|
721
1050
|
}, z.core.$strict>;
|
|
722
1051
|
type WorkflowAssetConfig = z.infer<typeof workflowConfigSchema>;
|
|
723
1052
|
|
|
1053
|
+
/** Why a reference is refused as a secret name. It never repeats the reference. */
|
|
1054
|
+
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";
|
|
1055
|
+
/**
|
|
1056
|
+
* True for text that is safe to repeat as the name of a secret: it reads as an environment
|
|
1057
|
+
* variable name and not as a credential. Anything else is refused as a name and is never put
|
|
1058
|
+
* into a message, a log line or an error. The instance and the CLI apply the same rule.
|
|
1059
|
+
*/
|
|
1060
|
+
declare function isSecretName(value: string): boolean;
|
|
1061
|
+
|
|
724
1062
|
/**
|
|
725
1063
|
* Why a frontmatter is refused before its fields are read: for an alias, for its depth, or
|
|
726
1064
|
* for the size of what it holds beside the name, the title and the description.
|
|
@@ -837,6 +1175,12 @@ declare function checkStorableTexts(value: unknown, maxValues: number): "storabl
|
|
|
837
1175
|
* aliases or holds text that cannot be stored is answered as an issue, never thrown.
|
|
838
1176
|
*/
|
|
839
1177
|
declare function readYamlData(text: string, file: string, options?: YamlDataOptions): YamlDataResult;
|
|
1178
|
+
/**
|
|
1179
|
+
* Writes JSON data as the YAML text a server makes of a file, such as a `workflow.yaml` it
|
|
1180
|
+
* renders from a stored definition: keys in the order the value holds them, no anchors, no
|
|
1181
|
+
* folded lines. The same value gives the same bytes, and `readYamlData` reads it back as it was.
|
|
1182
|
+
*/
|
|
1183
|
+
declare function writeYamlData(value: unknown): string;
|
|
840
1184
|
/** A YAML file `loadYamlData` refused. `issue` says why. */
|
|
841
1185
|
declare class YamlDataError extends Error {
|
|
842
1186
|
readonly issue: YamlDataIssue;
|
|
@@ -845,4 +1189,2260 @@ declare class YamlDataError extends Error {
|
|
|
845
1189
|
/** `readYamlData` for a caller that reports a refused file as an error: it throws `YamlDataError`. */
|
|
846
1190
|
declare function loadYamlData(text: string, file: string): unknown;
|
|
847
1191
|
|
|
848
|
-
|
|
1192
|
+
declare const knowledgeSyncInputSchema: z.ZodObject<{
|
|
1193
|
+
source: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1194
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
1195
|
+
full: "full";
|
|
1196
|
+
changes: "changes";
|
|
1197
|
+
}>>;
|
|
1198
|
+
confirm: z.ZodOptional<z.ZodBoolean>;
|
|
1199
|
+
}, z.core.$strict>;
|
|
1200
|
+
type KnowledgeSyncInput = z.infer<typeof knowledgeSyncInputSchema>;
|
|
1201
|
+
/** What a sync run ends with: the result of its Operation Run, and a Workflow step's output. */
|
|
1202
|
+
declare const knowledgeSyncResultSchema: z.ZodObject<{
|
|
1203
|
+
syncRunId: z.ZodString;
|
|
1204
|
+
source: z.ZodString;
|
|
1205
|
+
mode: z.ZodEnum<{
|
|
1206
|
+
full: "full";
|
|
1207
|
+
initial: "initial";
|
|
1208
|
+
changes: "changes";
|
|
1209
|
+
ingest: "ingest";
|
|
1210
|
+
}>;
|
|
1211
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1212
|
+
cursor_expired: "cursor_expired";
|
|
1213
|
+
}>>;
|
|
1214
|
+
state: z.ZodEnum<{
|
|
1215
|
+
failed: "failed";
|
|
1216
|
+
running: "running";
|
|
1217
|
+
done: "done";
|
|
1218
|
+
superseded: "superseded";
|
|
1219
|
+
}>;
|
|
1220
|
+
counts: z.ZodObject<{
|
|
1221
|
+
discovered: z.ZodNumber;
|
|
1222
|
+
added: z.ZodNumber;
|
|
1223
|
+
changed: z.ZodNumber;
|
|
1224
|
+
moved: z.ZodNumber;
|
|
1225
|
+
withdrawn: z.ZodNumber;
|
|
1226
|
+
failed: z.ZodNumber;
|
|
1227
|
+
skipped: z.ZodNumber;
|
|
1228
|
+
}, z.core.$strict>;
|
|
1229
|
+
bytesFetched: z.ZodNumber;
|
|
1230
|
+
failureCode: z.ZodOptional<z.ZodEnum<{
|
|
1231
|
+
knowledge_source_unreachable: "knowledge_source_unreachable";
|
|
1232
|
+
knowledge_source_refused: "knowledge_source_refused";
|
|
1233
|
+
knowledge_fetch_failed: "knowledge_fetch_failed";
|
|
1234
|
+
knowledge_source_limit_reached: "knowledge_source_limit_reached";
|
|
1235
|
+
knowledge_item_invalid: "knowledge_item_invalid";
|
|
1236
|
+
knowledge_fetch_not_allowed: "knowledge_fetch_not_allowed";
|
|
1237
|
+
knowledge_ingest_cancelled: "knowledge_ingest_cancelled";
|
|
1238
|
+
knowledge_item_removed: "knowledge_item_removed";
|
|
1239
|
+
}>>;
|
|
1240
|
+
startedAt: z.ZodString;
|
|
1241
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
1242
|
+
}, z.core.$strict>;
|
|
1243
|
+
type KnowledgeSyncResult = z.infer<typeof knowledgeSyncResultSchema>;
|
|
1244
|
+
/**
|
|
1245
|
+
* What the page shows of an item: its own state up to `fetched`, then its document's.
|
|
1246
|
+
* "Gefunden", "Geladen", "Durchsuchbar", "Fehlgeschlagen", "Entfernt".
|
|
1247
|
+
*/
|
|
1248
|
+
declare const KNOWLEDGE_SOURCE_ITEM_SHOWN_STATES: readonly ["discovered", "fetched", "indexed", "failed", "withdrawn"];
|
|
1249
|
+
type KnowledgeSourceItemShownState = (typeof KNOWLEDGE_SOURCE_ITEM_SHOWN_STATES)[number];
|
|
1250
|
+
/**
|
|
1251
|
+
* A first pass that stopped at 10,000 items and waits for one confirmation (KB-ISO-1b): what the
|
|
1252
|
+
* whole pass holds and what it would cost, estimated from the listed sizes with a factor per
|
|
1253
|
+
* format. Counts and sizes only, never a name.
|
|
1254
|
+
*/
|
|
1255
|
+
declare const knowledgeFirstPassConfirmationSchema: z.ZodObject<{
|
|
1256
|
+
syncRunId: z.ZodString;
|
|
1257
|
+
items: z.ZodNumber;
|
|
1258
|
+
bytes: z.ZodNumber;
|
|
1259
|
+
stop: z.ZodNumber;
|
|
1260
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
1261
|
+
min: z.ZodNumber;
|
|
1262
|
+
max: z.ZodNumber;
|
|
1263
|
+
}, z.core.$strict>>;
|
|
1264
|
+
passages: z.ZodOptional<z.ZodObject<{
|
|
1265
|
+
min: z.ZodNumber;
|
|
1266
|
+
max: z.ZodNumber;
|
|
1267
|
+
}, z.core.$strict>>;
|
|
1268
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1269
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
1270
|
+
min: z.ZodNumber;
|
|
1271
|
+
max: z.ZodNumber;
|
|
1272
|
+
currency: z.ZodString;
|
|
1273
|
+
}, z.core.$strict>>;
|
|
1274
|
+
room: z.ZodOptional<z.ZodBoolean>;
|
|
1275
|
+
storeBytes: z.ZodNumber;
|
|
1276
|
+
addedBytes: z.ZodOptional<z.ZodNumber>;
|
|
1277
|
+
limitBytes: z.ZodOptional<z.ZodNumber>;
|
|
1278
|
+
}, z.core.$strict>;
|
|
1279
|
+
type KnowledgeFirstPassConfirmation = z.infer<typeof knowledgeFirstPassConfirmationSchema>;
|
|
1280
|
+
declare const knowledgeSourcesOutputSchema: z.ZodObject<{
|
|
1281
|
+
sources: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1282
|
+
id: z.ZodString;
|
|
1283
|
+
connection: z.ZodString;
|
|
1284
|
+
kind: z.ZodOptional<z.ZodLiteral<"connector">>;
|
|
1285
|
+
items: z.ZodObject<{
|
|
1286
|
+
discovered: z.ZodNumber;
|
|
1287
|
+
fetched: z.ZodNumber;
|
|
1288
|
+
indexed: z.ZodNumber;
|
|
1289
|
+
failed: z.ZodNumber;
|
|
1290
|
+
withdrawn: z.ZodNumber;
|
|
1291
|
+
}, z.core.$strict>;
|
|
1292
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
1293
|
+
code: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1294
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
1295
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
1296
|
+
knowledge_source_unreachable: "knowledge_source_unreachable";
|
|
1297
|
+
knowledge_source_refused: "knowledge_source_refused";
|
|
1298
|
+
knowledge_fetch_failed: "knowledge_fetch_failed";
|
|
1299
|
+
knowledge_source_limit_reached: "knowledge_source_limit_reached";
|
|
1300
|
+
knowledge_item_invalid: "knowledge_item_invalid";
|
|
1301
|
+
knowledge_fetch_not_allowed: "knowledge_fetch_not_allowed";
|
|
1302
|
+
knowledge_ingest_cancelled: "knowledge_ingest_cancelled";
|
|
1303
|
+
knowledge_item_removed: "knowledge_item_removed";
|
|
1304
|
+
}>, z.ZodEnum<{
|
|
1305
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
1306
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
1307
|
+
knowledge_file_unreadable: "knowledge_file_unreadable";
|
|
1308
|
+
knowledge_file_missing: "knowledge_file_missing";
|
|
1309
|
+
knowledge_extraction_failed: "knowledge_extraction_failed";
|
|
1310
|
+
knowledge_file_format_unavailable: "knowledge_file_format_unavailable";
|
|
1311
|
+
knowledge_text_unreadable: "knowledge_text_unreadable";
|
|
1312
|
+
knowledge_text_empty: "knowledge_text_empty";
|
|
1313
|
+
knowledge_index_failed: "knowledge_index_failed";
|
|
1314
|
+
knowledge_file_too_many_pages: "knowledge_file_too_many_pages";
|
|
1315
|
+
knowledge_processor_output_invalid: "knowledge_processor_output_invalid";
|
|
1316
|
+
knowledge_conversion_timeout: "knowledge_conversion_timeout";
|
|
1317
|
+
}>]>;
|
|
1318
|
+
count: z.ZodNumber;
|
|
1319
|
+
}, z.core.$strict>>;
|
|
1320
|
+
running: z.ZodOptional<z.ZodObject<{
|
|
1321
|
+
syncRunId: z.ZodString;
|
|
1322
|
+
mode: z.ZodEnum<{
|
|
1323
|
+
full: "full";
|
|
1324
|
+
initial: "initial";
|
|
1325
|
+
changes: "changes";
|
|
1326
|
+
ingest: "ingest";
|
|
1327
|
+
}>;
|
|
1328
|
+
startedAt: z.ZodString;
|
|
1329
|
+
itemsPerMinute: z.ZodOptional<z.ZodNumber>;
|
|
1330
|
+
estimatedEndAt: z.ZodOptional<z.ZodString>;
|
|
1331
|
+
}, z.core.$strict>>;
|
|
1332
|
+
last: z.ZodOptional<z.ZodObject<{
|
|
1333
|
+
syncRunId: z.ZodString;
|
|
1334
|
+
source: z.ZodString;
|
|
1335
|
+
mode: z.ZodEnum<{
|
|
1336
|
+
full: "full";
|
|
1337
|
+
initial: "initial";
|
|
1338
|
+
changes: "changes";
|
|
1339
|
+
ingest: "ingest";
|
|
1340
|
+
}>;
|
|
1341
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1342
|
+
cursor_expired: "cursor_expired";
|
|
1343
|
+
}>>;
|
|
1344
|
+
state: z.ZodEnum<{
|
|
1345
|
+
failed: "failed";
|
|
1346
|
+
running: "running";
|
|
1347
|
+
done: "done";
|
|
1348
|
+
superseded: "superseded";
|
|
1349
|
+
}>;
|
|
1350
|
+
counts: z.ZodObject<{
|
|
1351
|
+
discovered: z.ZodNumber;
|
|
1352
|
+
added: z.ZodNumber;
|
|
1353
|
+
changed: z.ZodNumber;
|
|
1354
|
+
moved: z.ZodNumber;
|
|
1355
|
+
withdrawn: z.ZodNumber;
|
|
1356
|
+
failed: z.ZodNumber;
|
|
1357
|
+
skipped: z.ZodNumber;
|
|
1358
|
+
}, z.core.$strict>;
|
|
1359
|
+
bytesFetched: z.ZodNumber;
|
|
1360
|
+
failureCode: z.ZodOptional<z.ZodEnum<{
|
|
1361
|
+
knowledge_source_unreachable: "knowledge_source_unreachable";
|
|
1362
|
+
knowledge_source_refused: "knowledge_source_refused";
|
|
1363
|
+
knowledge_fetch_failed: "knowledge_fetch_failed";
|
|
1364
|
+
knowledge_source_limit_reached: "knowledge_source_limit_reached";
|
|
1365
|
+
knowledge_item_invalid: "knowledge_item_invalid";
|
|
1366
|
+
knowledge_fetch_not_allowed: "knowledge_fetch_not_allowed";
|
|
1367
|
+
knowledge_ingest_cancelled: "knowledge_ingest_cancelled";
|
|
1368
|
+
knowledge_item_removed: "knowledge_item_removed";
|
|
1369
|
+
}>>;
|
|
1370
|
+
startedAt: z.ZodString;
|
|
1371
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
1372
|
+
}, z.core.$strict>>;
|
|
1373
|
+
confirmation: z.ZodOptional<z.ZodObject<{
|
|
1374
|
+
syncRunId: z.ZodString;
|
|
1375
|
+
items: z.ZodNumber;
|
|
1376
|
+
bytes: z.ZodNumber;
|
|
1377
|
+
stop: z.ZodNumber;
|
|
1378
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
1379
|
+
min: z.ZodNumber;
|
|
1380
|
+
max: z.ZodNumber;
|
|
1381
|
+
}, z.core.$strict>>;
|
|
1382
|
+
passages: z.ZodOptional<z.ZodObject<{
|
|
1383
|
+
min: z.ZodNumber;
|
|
1384
|
+
max: z.ZodNumber;
|
|
1385
|
+
}, z.core.$strict>>;
|
|
1386
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1387
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
1388
|
+
min: z.ZodNumber;
|
|
1389
|
+
max: z.ZodNumber;
|
|
1390
|
+
currency: z.ZodString;
|
|
1391
|
+
}, z.core.$strict>>;
|
|
1392
|
+
room: z.ZodOptional<z.ZodBoolean>;
|
|
1393
|
+
storeBytes: z.ZodNumber;
|
|
1394
|
+
addedBytes: z.ZodOptional<z.ZodNumber>;
|
|
1395
|
+
limitBytes: z.ZodOptional<z.ZodNumber>;
|
|
1396
|
+
}, z.core.$strict>>;
|
|
1397
|
+
lastChangeAt: z.ZodOptional<z.ZodString>;
|
|
1398
|
+
oldestOpenChangeAt: z.ZodOptional<z.ZodString>;
|
|
1399
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1400
|
+
id: z.ZodString;
|
|
1401
|
+
kind: z.ZodLiteral<"workflow">;
|
|
1402
|
+
workflowId: z.ZodString;
|
|
1403
|
+
running: z.ZodOptional<z.ZodObject<{
|
|
1404
|
+
syncRunId: z.ZodString;
|
|
1405
|
+
mode: z.ZodEnum<{
|
|
1406
|
+
full: "full";
|
|
1407
|
+
initial: "initial";
|
|
1408
|
+
changes: "changes";
|
|
1409
|
+
ingest: "ingest";
|
|
1410
|
+
}>;
|
|
1411
|
+
startedAt: z.ZodString;
|
|
1412
|
+
itemsPerMinute: z.ZodOptional<z.ZodNumber>;
|
|
1413
|
+
estimatedEndAt: z.ZodOptional<z.ZodString>;
|
|
1414
|
+
}, z.core.$strict>>;
|
|
1415
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
1416
|
+
code: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1417
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
1418
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
1419
|
+
knowledge_source_unreachable: "knowledge_source_unreachable";
|
|
1420
|
+
knowledge_source_refused: "knowledge_source_refused";
|
|
1421
|
+
knowledge_fetch_failed: "knowledge_fetch_failed";
|
|
1422
|
+
knowledge_source_limit_reached: "knowledge_source_limit_reached";
|
|
1423
|
+
knowledge_item_invalid: "knowledge_item_invalid";
|
|
1424
|
+
knowledge_fetch_not_allowed: "knowledge_fetch_not_allowed";
|
|
1425
|
+
knowledge_ingest_cancelled: "knowledge_ingest_cancelled";
|
|
1426
|
+
knowledge_item_removed: "knowledge_item_removed";
|
|
1427
|
+
}>, z.ZodEnum<{
|
|
1428
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
1429
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
1430
|
+
knowledge_file_unreadable: "knowledge_file_unreadable";
|
|
1431
|
+
knowledge_file_missing: "knowledge_file_missing";
|
|
1432
|
+
knowledge_extraction_failed: "knowledge_extraction_failed";
|
|
1433
|
+
knowledge_file_format_unavailable: "knowledge_file_format_unavailable";
|
|
1434
|
+
knowledge_text_unreadable: "knowledge_text_unreadable";
|
|
1435
|
+
knowledge_text_empty: "knowledge_text_empty";
|
|
1436
|
+
knowledge_index_failed: "knowledge_index_failed";
|
|
1437
|
+
knowledge_file_too_many_pages: "knowledge_file_too_many_pages";
|
|
1438
|
+
knowledge_processor_output_invalid: "knowledge_processor_output_invalid";
|
|
1439
|
+
knowledge_conversion_timeout: "knowledge_conversion_timeout";
|
|
1440
|
+
}>]>;
|
|
1441
|
+
count: z.ZodNumber;
|
|
1442
|
+
}, z.core.$strict>>;
|
|
1443
|
+
items: z.ZodObject<{
|
|
1444
|
+
discovered: z.ZodNumber;
|
|
1445
|
+
fetched: z.ZodNumber;
|
|
1446
|
+
indexed: z.ZodNumber;
|
|
1447
|
+
failed: z.ZodNumber;
|
|
1448
|
+
withdrawn: z.ZodNumber;
|
|
1449
|
+
}, z.core.$strict>;
|
|
1450
|
+
last: z.ZodOptional<z.ZodObject<{
|
|
1451
|
+
syncRunId: z.ZodString;
|
|
1452
|
+
source: z.ZodString;
|
|
1453
|
+
mode: z.ZodEnum<{
|
|
1454
|
+
full: "full";
|
|
1455
|
+
initial: "initial";
|
|
1456
|
+
changes: "changes";
|
|
1457
|
+
ingest: "ingest";
|
|
1458
|
+
}>;
|
|
1459
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1460
|
+
cursor_expired: "cursor_expired";
|
|
1461
|
+
}>>;
|
|
1462
|
+
state: z.ZodEnum<{
|
|
1463
|
+
failed: "failed";
|
|
1464
|
+
running: "running";
|
|
1465
|
+
done: "done";
|
|
1466
|
+
superseded: "superseded";
|
|
1467
|
+
}>;
|
|
1468
|
+
counts: z.ZodObject<{
|
|
1469
|
+
discovered: z.ZodNumber;
|
|
1470
|
+
added: z.ZodNumber;
|
|
1471
|
+
changed: z.ZodNumber;
|
|
1472
|
+
moved: z.ZodNumber;
|
|
1473
|
+
withdrawn: z.ZodNumber;
|
|
1474
|
+
failed: z.ZodNumber;
|
|
1475
|
+
skipped: z.ZodNumber;
|
|
1476
|
+
}, z.core.$strict>;
|
|
1477
|
+
bytesFetched: z.ZodNumber;
|
|
1478
|
+
failureCode: z.ZodOptional<z.ZodEnum<{
|
|
1479
|
+
knowledge_source_unreachable: "knowledge_source_unreachable";
|
|
1480
|
+
knowledge_source_refused: "knowledge_source_refused";
|
|
1481
|
+
knowledge_fetch_failed: "knowledge_fetch_failed";
|
|
1482
|
+
knowledge_source_limit_reached: "knowledge_source_limit_reached";
|
|
1483
|
+
knowledge_item_invalid: "knowledge_item_invalid";
|
|
1484
|
+
knowledge_fetch_not_allowed: "knowledge_fetch_not_allowed";
|
|
1485
|
+
knowledge_ingest_cancelled: "knowledge_ingest_cancelled";
|
|
1486
|
+
knowledge_item_removed: "knowledge_item_removed";
|
|
1487
|
+
}>>;
|
|
1488
|
+
startedAt: z.ZodString;
|
|
1489
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
1490
|
+
}, z.core.$strict>>;
|
|
1491
|
+
confirmation: z.ZodOptional<z.ZodObject<{
|
|
1492
|
+
syncRunId: z.ZodString;
|
|
1493
|
+
items: z.ZodNumber;
|
|
1494
|
+
bytes: z.ZodNumber;
|
|
1495
|
+
stop: z.ZodNumber;
|
|
1496
|
+
tokens: z.ZodOptional<z.ZodObject<{
|
|
1497
|
+
min: z.ZodNumber;
|
|
1498
|
+
max: z.ZodNumber;
|
|
1499
|
+
}, z.core.$strict>>;
|
|
1500
|
+
passages: z.ZodOptional<z.ZodObject<{
|
|
1501
|
+
min: z.ZodNumber;
|
|
1502
|
+
max: z.ZodNumber;
|
|
1503
|
+
}, z.core.$strict>>;
|
|
1504
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1505
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
1506
|
+
min: z.ZodNumber;
|
|
1507
|
+
max: z.ZodNumber;
|
|
1508
|
+
currency: z.ZodString;
|
|
1509
|
+
}, z.core.$strict>>;
|
|
1510
|
+
room: z.ZodOptional<z.ZodBoolean>;
|
|
1511
|
+
storeBytes: z.ZodNumber;
|
|
1512
|
+
addedBytes: z.ZodOptional<z.ZodNumber>;
|
|
1513
|
+
limitBytes: z.ZodOptional<z.ZodNumber>;
|
|
1514
|
+
}, z.core.$strict>>;
|
|
1515
|
+
lastChangeAt: z.ZodOptional<z.ZodString>;
|
|
1516
|
+
oldestOpenChangeAt: z.ZodOptional<z.ZodString>;
|
|
1517
|
+
}, z.core.$strict>]>>;
|
|
1518
|
+
}, z.core.$strict>;
|
|
1519
|
+
type KnowledgeSourcesOutput = z.infer<typeof knowledgeSourcesOutputSchema>;
|
|
1520
|
+
declare const knowledgeSourceItemsInputSchema: z.ZodObject<{
|
|
1521
|
+
source: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1522
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
1523
|
+
failed: "failed";
|
|
1524
|
+
withdrawn: "withdrawn";
|
|
1525
|
+
indexed: "indexed";
|
|
1526
|
+
discovered: "discovered";
|
|
1527
|
+
fetched: "fetched";
|
|
1528
|
+
}>>;
|
|
1529
|
+
failureCode: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1530
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
1531
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
1532
|
+
knowledge_source_unreachable: "knowledge_source_unreachable";
|
|
1533
|
+
knowledge_source_refused: "knowledge_source_refused";
|
|
1534
|
+
knowledge_fetch_failed: "knowledge_fetch_failed";
|
|
1535
|
+
knowledge_source_limit_reached: "knowledge_source_limit_reached";
|
|
1536
|
+
knowledge_item_invalid: "knowledge_item_invalid";
|
|
1537
|
+
knowledge_fetch_not_allowed: "knowledge_fetch_not_allowed";
|
|
1538
|
+
knowledge_ingest_cancelled: "knowledge_ingest_cancelled";
|
|
1539
|
+
knowledge_item_removed: "knowledge_item_removed";
|
|
1540
|
+
}>, z.ZodEnum<{
|
|
1541
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
1542
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
1543
|
+
knowledge_file_unreadable: "knowledge_file_unreadable";
|
|
1544
|
+
knowledge_file_missing: "knowledge_file_missing";
|
|
1545
|
+
knowledge_extraction_failed: "knowledge_extraction_failed";
|
|
1546
|
+
knowledge_file_format_unavailable: "knowledge_file_format_unavailable";
|
|
1547
|
+
knowledge_text_unreadable: "knowledge_text_unreadable";
|
|
1548
|
+
knowledge_text_empty: "knowledge_text_empty";
|
|
1549
|
+
knowledge_index_failed: "knowledge_index_failed";
|
|
1550
|
+
knowledge_file_too_many_pages: "knowledge_file_too_many_pages";
|
|
1551
|
+
knowledge_processor_output_invalid: "knowledge_processor_output_invalid";
|
|
1552
|
+
knowledge_conversion_timeout: "knowledge_conversion_timeout";
|
|
1553
|
+
}>]>>;
|
|
1554
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1555
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1556
|
+
}, z.core.$strict>;
|
|
1557
|
+
type KnowledgeSourceItemsInput = z.infer<typeof knowledgeSourceItemsInputSchema>;
|
|
1558
|
+
declare const knowledgeSourceItemsOutputSchema: z.ZodObject<{
|
|
1559
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1560
|
+
id: z.ZodString;
|
|
1561
|
+
itemId: z.ZodString;
|
|
1562
|
+
name: z.ZodString;
|
|
1563
|
+
path: z.ZodString;
|
|
1564
|
+
state: z.ZodEnum<{
|
|
1565
|
+
failed: "failed";
|
|
1566
|
+
withdrawn: "withdrawn";
|
|
1567
|
+
indexed: "indexed";
|
|
1568
|
+
discovered: "discovered";
|
|
1569
|
+
fetched: "fetched";
|
|
1570
|
+
}>;
|
|
1571
|
+
failureCode: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1572
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
1573
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
1574
|
+
knowledge_source_unreachable: "knowledge_source_unreachable";
|
|
1575
|
+
knowledge_source_refused: "knowledge_source_refused";
|
|
1576
|
+
knowledge_fetch_failed: "knowledge_fetch_failed";
|
|
1577
|
+
knowledge_source_limit_reached: "knowledge_source_limit_reached";
|
|
1578
|
+
knowledge_item_invalid: "knowledge_item_invalid";
|
|
1579
|
+
knowledge_fetch_not_allowed: "knowledge_fetch_not_allowed";
|
|
1580
|
+
knowledge_ingest_cancelled: "knowledge_ingest_cancelled";
|
|
1581
|
+
knowledge_item_removed: "knowledge_item_removed";
|
|
1582
|
+
}>, z.ZodEnum<{
|
|
1583
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
1584
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
1585
|
+
knowledge_file_unreadable: "knowledge_file_unreadable";
|
|
1586
|
+
knowledge_file_missing: "knowledge_file_missing";
|
|
1587
|
+
knowledge_extraction_failed: "knowledge_extraction_failed";
|
|
1588
|
+
knowledge_file_format_unavailable: "knowledge_file_format_unavailable";
|
|
1589
|
+
knowledge_text_unreadable: "knowledge_text_unreadable";
|
|
1590
|
+
knowledge_text_empty: "knowledge_text_empty";
|
|
1591
|
+
knowledge_index_failed: "knowledge_index_failed";
|
|
1592
|
+
knowledge_file_too_many_pages: "knowledge_file_too_many_pages";
|
|
1593
|
+
knowledge_processor_output_invalid: "knowledge_processor_output_invalid";
|
|
1594
|
+
knowledge_conversion_timeout: "knowledge_conversion_timeout";
|
|
1595
|
+
}>]>>;
|
|
1596
|
+
documentId: z.ZodOptional<z.ZodString>;
|
|
1597
|
+
originLink: z.ZodOptional<z.ZodString>;
|
|
1598
|
+
changedAt: z.ZodString;
|
|
1599
|
+
}, z.core.$strict>>;
|
|
1600
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
1601
|
+
}, z.core.$strict>;
|
|
1602
|
+
type KnowledgeSourceItemsOutput = z.infer<typeof knowledgeSourceItemsOutputSchema>;
|
|
1603
|
+
/**
|
|
1604
|
+
* KB-5c's retry, widened: documents by id, or items of a source by id, by failure code or all
|
|
1605
|
+
* failed ones. A failed fetch is fetched again; a failed document of a synced source is
|
|
1606
|
+
* fetched and indexed again, because its original is not kept.
|
|
1607
|
+
*/
|
|
1608
|
+
declare const knowledgeRetryInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1609
|
+
documentIds: z.ZodArray<z.ZodString>;
|
|
1610
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1611
|
+
source: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1612
|
+
sourceItemIds: z.ZodArray<z.ZodString>;
|
|
1613
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1614
|
+
source: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1615
|
+
failureCode: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1616
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
1617
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
1618
|
+
knowledge_source_unreachable: "knowledge_source_unreachable";
|
|
1619
|
+
knowledge_source_refused: "knowledge_source_refused";
|
|
1620
|
+
knowledge_fetch_failed: "knowledge_fetch_failed";
|
|
1621
|
+
knowledge_source_limit_reached: "knowledge_source_limit_reached";
|
|
1622
|
+
knowledge_item_invalid: "knowledge_item_invalid";
|
|
1623
|
+
knowledge_fetch_not_allowed: "knowledge_fetch_not_allowed";
|
|
1624
|
+
knowledge_ingest_cancelled: "knowledge_ingest_cancelled";
|
|
1625
|
+
knowledge_item_removed: "knowledge_item_removed";
|
|
1626
|
+
}>, z.ZodEnum<{
|
|
1627
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
1628
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
1629
|
+
knowledge_file_unreadable: "knowledge_file_unreadable";
|
|
1630
|
+
knowledge_file_missing: "knowledge_file_missing";
|
|
1631
|
+
knowledge_extraction_failed: "knowledge_extraction_failed";
|
|
1632
|
+
knowledge_file_format_unavailable: "knowledge_file_format_unavailable";
|
|
1633
|
+
knowledge_text_unreadable: "knowledge_text_unreadable";
|
|
1634
|
+
knowledge_text_empty: "knowledge_text_empty";
|
|
1635
|
+
knowledge_index_failed: "knowledge_index_failed";
|
|
1636
|
+
knowledge_file_too_many_pages: "knowledge_file_too_many_pages";
|
|
1637
|
+
knowledge_processor_output_invalid: "knowledge_processor_output_invalid";
|
|
1638
|
+
knowledge_conversion_timeout: "knowledge_conversion_timeout";
|
|
1639
|
+
}>]>;
|
|
1640
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1641
|
+
source: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1642
|
+
all: z.ZodLiteral<true>;
|
|
1643
|
+
}, z.core.$strict>]>;
|
|
1644
|
+
type KnowledgeRetryInput = z.infer<typeof knowledgeRetryInputSchema>;
|
|
1645
|
+
declare const knowledgeRetryOutputSchema: z.ZodObject<{
|
|
1646
|
+
documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1647
|
+
id: z.ZodString;
|
|
1648
|
+
state: z.ZodEnum<{
|
|
1649
|
+
failed: "failed";
|
|
1650
|
+
pending: "pending";
|
|
1651
|
+
indexed: "indexed";
|
|
1652
|
+
}>;
|
|
1653
|
+
}, z.core.$strict>>>;
|
|
1654
|
+
queued: z.ZodNumber;
|
|
1655
|
+
released: z.ZodOptional<z.ZodNumber>;
|
|
1656
|
+
}, z.core.$strict>;
|
|
1657
|
+
type KnowledgeRetryOutput = z.infer<typeof knowledgeRetryOutputSchema>;
|
|
1658
|
+
declare const knowledgeLocateInputSchema: z.ZodObject<{
|
|
1659
|
+
sourceItemId: z.ZodString;
|
|
1660
|
+
}, z.core.$strict>;
|
|
1661
|
+
type KnowledgeLocateInput = z.infer<typeof knowledgeLocateInputSchema>;
|
|
1662
|
+
/** An item's state and times, and no content, name or path. */
|
|
1663
|
+
declare const knowledgeLocateOutputSchema: z.ZodObject<{
|
|
1664
|
+
sourceItemId: z.ZodString;
|
|
1665
|
+
source: z.ZodString;
|
|
1666
|
+
itemId: z.ZodString;
|
|
1667
|
+
state: z.ZodEnum<{
|
|
1668
|
+
failed: "failed";
|
|
1669
|
+
withdrawn: "withdrawn";
|
|
1670
|
+
indexed: "indexed";
|
|
1671
|
+
discovered: "discovered";
|
|
1672
|
+
fetched: "fetched";
|
|
1673
|
+
}>;
|
|
1674
|
+
discoveredAt: z.ZodString;
|
|
1675
|
+
fetchedAt: z.ZodOptional<z.ZodString>;
|
|
1676
|
+
withdrawnAt: z.ZodOptional<z.ZodString>;
|
|
1677
|
+
purgedAt: z.ZodOptional<z.ZodString>;
|
|
1678
|
+
removedAt: z.ZodOptional<z.ZodString>;
|
|
1679
|
+
}, z.core.$strict>;
|
|
1680
|
+
type KnowledgeLocateOutput = z.infer<typeof knowledgeLocateOutputSchema>;
|
|
1681
|
+
/**
|
|
1682
|
+
* The delete question of a Workflow (KBW-2c): the Knowledge Bases its source feeds, each with
|
|
1683
|
+
* how many documents it holds there, which a delete withdraws. Those the reader may not open are
|
|
1684
|
+
* counted only, by number of Knowledge Bases and documents, and never named.
|
|
1685
|
+
*/
|
|
1686
|
+
declare const knowledgeWorkflowSourcesOutputSchema: z.ZodObject<{
|
|
1687
|
+
knowledgeBases: z.ZodArray<z.ZodObject<{
|
|
1688
|
+
name: z.ZodString;
|
|
1689
|
+
title: z.ZodString;
|
|
1690
|
+
documents: z.ZodNumber;
|
|
1691
|
+
}, z.core.$strict>>;
|
|
1692
|
+
hidden: z.ZodObject<{
|
|
1693
|
+
knowledgeBases: z.ZodNumber;
|
|
1694
|
+
documents: z.ZodNumber;
|
|
1695
|
+
}, z.core.$strict>;
|
|
1696
|
+
}, z.core.$strict>;
|
|
1697
|
+
type KnowledgeWorkflowSourcesOutput = z.infer<typeof knowledgeWorkflowSourcesOutputSchema>;
|
|
1698
|
+
|
|
1699
|
+
/** Dataset checkpoints exposed in Workflow metadata; rows remain in object storage. */
|
|
1700
|
+
declare const WORKFLOW_DATASET_STATES: readonly ["writing", "complete", "deleted"];
|
|
1701
|
+
type WorkflowDatasetState = (typeof WORKFLOW_DATASET_STATES)[number];
|
|
1702
|
+
|
|
1703
|
+
/** The reference kept in step data; rows live in the owning run's dataset. */
|
|
1704
|
+
declare const workflowDatasetReferenceSchema: z.ZodObject<{
|
|
1705
|
+
$dataset: z.ZodString;
|
|
1706
|
+
rowCount: z.ZodNumber;
|
|
1707
|
+
bytes: z.ZodNumber;
|
|
1708
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1709
|
+
}, z.core.$strict>;
|
|
1710
|
+
/**
|
|
1711
|
+
* A file of a Workflow run as step data holds it: the id of the Managed File the run owns, its
|
|
1712
|
+
* name, its type and its size. The bytes stay in the run's files; no step carries them inline.
|
|
1713
|
+
*/
|
|
1714
|
+
declare const workflowFileReferenceSchema: z.ZodObject<{
|
|
1715
|
+
$file: z.ZodString;
|
|
1716
|
+
name: z.ZodString;
|
|
1717
|
+
mimeType: z.ZodString;
|
|
1718
|
+
bytes: z.ZodNumber;
|
|
1719
|
+
}, z.core.$strict>;
|
|
1720
|
+
/** One row of a batch's failures dataset, preserving the input item for a retry. */
|
|
1721
|
+
declare const operationBatchFailureSchema: z.ZodObject<{
|
|
1722
|
+
item: z.ZodJSONSchema;
|
|
1723
|
+
code: z.ZodString;
|
|
1724
|
+
message: z.ZodString;
|
|
1725
|
+
}, z.core.$strict>;
|
|
1726
|
+
/** One failed item never fails the call or its neighbours. */
|
|
1727
|
+
declare const operationBatchResultSchema: z.ZodObject<{
|
|
1728
|
+
done: z.ZodNumber;
|
|
1729
|
+
failed: z.ZodNumber;
|
|
1730
|
+
failures: z.ZodObject<{
|
|
1731
|
+
$dataset: z.ZodString;
|
|
1732
|
+
rowCount: z.ZodNumber;
|
|
1733
|
+
bytes: z.ZodNumber;
|
|
1734
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1735
|
+
}, z.core.$strict>;
|
|
1736
|
+
}, z.core.$strict>;
|
|
1737
|
+
type OperationBatchResult = z.infer<typeof operationBatchResultSchema>;
|
|
1738
|
+
type OperationBatchFailure = z.infer<typeof operationBatchFailureSchema>;
|
|
1739
|
+
|
|
1740
|
+
/** How long an origin link may be. */
|
|
1741
|
+
declare const KNOWLEDGE_ORIGIN_LINK_MAX_CHARS = 4000;
|
|
1742
|
+
/** What an edit did to the origin link of a document: entered or changed it, or cleared it. */
|
|
1743
|
+
declare const KNOWLEDGE_ORIGIN_LINK_CHANGES: readonly ["set", "cleared"];
|
|
1744
|
+
/**
|
|
1745
|
+
* Where a person opens the original of a document at its source (DS-6b): an `http` or `https`
|
|
1746
|
+
* address and nothing else, never one that carries a credential. The source's own sign-in
|
|
1747
|
+
* decides who reaches the original; a token in the link would decide it in its place.
|
|
1748
|
+
*/
|
|
1749
|
+
declare const knowledgeOriginLinkSchema: z.ZodURL;
|
|
1750
|
+
/** Reserved until CONN-DL: the Workflow's account must be allowed to use this Connection. */
|
|
1751
|
+
declare const knowledgeIngestFetchSchema: z.ZodObject<{
|
|
1752
|
+
connection: z.ZodString;
|
|
1753
|
+
operation: z.ZodString;
|
|
1754
|
+
input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
1755
|
+
}, z.core.$strict>;
|
|
1756
|
+
/** Exactly one content, in both the TypeScript type and the runtime schema. */
|
|
1757
|
+
declare const knowledgeIngestItemSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1758
|
+
itemId: z.ZodString;
|
|
1759
|
+
version: z.ZodString;
|
|
1760
|
+
name: z.ZodString;
|
|
1761
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1762
|
+
originLink: z.ZodOptional<z.ZodURL>;
|
|
1763
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
1764
|
+
fileId: z.ZodOptional<z.ZodNever>;
|
|
1765
|
+
fetch: z.ZodOptional<z.ZodNever>;
|
|
1766
|
+
text: z.ZodString;
|
|
1767
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1768
|
+
itemId: z.ZodString;
|
|
1769
|
+
version: z.ZodString;
|
|
1770
|
+
name: z.ZodString;
|
|
1771
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1772
|
+
originLink: z.ZodOptional<z.ZodURL>;
|
|
1773
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
1774
|
+
text: z.ZodOptional<z.ZodNever>;
|
|
1775
|
+
fetch: z.ZodOptional<z.ZodNever>;
|
|
1776
|
+
fileId: z.ZodString;
|
|
1777
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1778
|
+
itemId: z.ZodString;
|
|
1779
|
+
version: z.ZodString;
|
|
1780
|
+
name: z.ZodString;
|
|
1781
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1782
|
+
originLink: z.ZodOptional<z.ZodURL>;
|
|
1783
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
1784
|
+
text: z.ZodOptional<z.ZodNever>;
|
|
1785
|
+
fileId: z.ZodOptional<z.ZodNever>;
|
|
1786
|
+
fetch: z.ZodObject<{
|
|
1787
|
+
connection: z.ZodString;
|
|
1788
|
+
operation: z.ZodString;
|
|
1789
|
+
input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
1790
|
+
}, z.core.$strict>;
|
|
1791
|
+
}, z.core.$strict>]>;
|
|
1792
|
+
type KnowledgeIngestItem = z.infer<typeof knowledgeIngestItemSchema>;
|
|
1793
|
+
declare const knowledgeIngestInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1794
|
+
items: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1795
|
+
itemId: z.ZodString;
|
|
1796
|
+
version: z.ZodString;
|
|
1797
|
+
name: z.ZodString;
|
|
1798
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1799
|
+
originLink: z.ZodOptional<z.ZodURL>;
|
|
1800
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
1801
|
+
fileId: z.ZodOptional<z.ZodNever>;
|
|
1802
|
+
fetch: z.ZodOptional<z.ZodNever>;
|
|
1803
|
+
text: z.ZodString;
|
|
1804
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1805
|
+
itemId: z.ZodString;
|
|
1806
|
+
version: z.ZodString;
|
|
1807
|
+
name: z.ZodString;
|
|
1808
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1809
|
+
originLink: z.ZodOptional<z.ZodURL>;
|
|
1810
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
1811
|
+
text: z.ZodOptional<z.ZodNever>;
|
|
1812
|
+
fetch: z.ZodOptional<z.ZodNever>;
|
|
1813
|
+
fileId: z.ZodString;
|
|
1814
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1815
|
+
itemId: z.ZodString;
|
|
1816
|
+
version: z.ZodString;
|
|
1817
|
+
name: z.ZodString;
|
|
1818
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1819
|
+
originLink: z.ZodOptional<z.ZodURL>;
|
|
1820
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
1821
|
+
text: z.ZodOptional<z.ZodNever>;
|
|
1822
|
+
fileId: z.ZodOptional<z.ZodNever>;
|
|
1823
|
+
fetch: z.ZodObject<{
|
|
1824
|
+
connection: z.ZodString;
|
|
1825
|
+
operation: z.ZodString;
|
|
1826
|
+
input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
1827
|
+
}, z.core.$strict>;
|
|
1828
|
+
}, z.core.$strict>]>>;
|
|
1829
|
+
complete: z.ZodOptional<z.ZodBoolean>;
|
|
1830
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1831
|
+
dataset: z.ZodObject<{
|
|
1832
|
+
$dataset: z.ZodString;
|
|
1833
|
+
rowCount: z.ZodNumber;
|
|
1834
|
+
bytes: z.ZodNumber;
|
|
1835
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1836
|
+
}, z.core.$strict>;
|
|
1837
|
+
complete: z.ZodOptional<z.ZodBoolean>;
|
|
1838
|
+
}, z.core.$strict>]>;
|
|
1839
|
+
declare const knowledgeIngestOutputSchema: z.ZodObject<{
|
|
1840
|
+
done: z.ZodNumber;
|
|
1841
|
+
failed: z.ZodNumber;
|
|
1842
|
+
failures: z.ZodObject<{
|
|
1843
|
+
$dataset: z.ZodString;
|
|
1844
|
+
rowCount: z.ZodNumber;
|
|
1845
|
+
bytes: z.ZodNumber;
|
|
1846
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1847
|
+
}, z.core.$strict>;
|
|
1848
|
+
accepted: z.ZodNumber;
|
|
1849
|
+
withdrawn: z.ZodNumber;
|
|
1850
|
+
}, z.core.$strict>;
|
|
1851
|
+
declare const knowledgeWithdrawInputSchema: z.ZodObject<{
|
|
1852
|
+
itemIds: z.ZodArray<z.ZodString>;
|
|
1853
|
+
}, z.core.$strict>;
|
|
1854
|
+
declare const knowledgeWithdrawOutputSchema: z.ZodObject<{
|
|
1855
|
+
withdrawn: z.ZodNumber;
|
|
1856
|
+
}, z.core.$strict>;
|
|
1857
|
+
declare const knowledgePendingInputSchema: z.ZodObject<{
|
|
1858
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1859
|
+
since: z.ZodOptional<z.ZodISODateTime>;
|
|
1860
|
+
limit: z.ZodNumber;
|
|
1861
|
+
}, z.core.$strict>;
|
|
1862
|
+
declare const knowledgePendingRowSchema: z.ZodObject<{
|
|
1863
|
+
id: z.ZodString;
|
|
1864
|
+
type: z.ZodString;
|
|
1865
|
+
contentHash: z.ZodString;
|
|
1866
|
+
pages: z.ZodObject<{
|
|
1867
|
+
$dataset: z.ZodString;
|
|
1868
|
+
rowCount: z.ZodNumber;
|
|
1869
|
+
bytes: z.ZodNumber;
|
|
1870
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1871
|
+
}, z.core.$strict>;
|
|
1872
|
+
}, z.core.$strict>;
|
|
1873
|
+
declare const knowledgePendingOutputSchema: z.ZodObject<{
|
|
1874
|
+
documents: z.ZodObject<{
|
|
1875
|
+
$dataset: z.ZodString;
|
|
1876
|
+
rowCount: z.ZodNumber;
|
|
1877
|
+
bytes: z.ZodNumber;
|
|
1878
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1879
|
+
}, z.core.$strict>;
|
|
1880
|
+
}, z.core.$strict>;
|
|
1881
|
+
/**
|
|
1882
|
+
* A processor returns logical documents and page text (tables as Markdown), optional
|
|
1883
|
+
* section boundaries and fields. Chunking and vectors remain the platform's. This is the
|
|
1884
|
+
* single validator for built-ins and Workflow write-back; every refusal has the code
|
|
1885
|
+
* knowledge_processor_output_invalid. Fields' declared JSON Schema is checked by PROC-1.
|
|
1886
|
+
*/
|
|
1887
|
+
declare const knowledgeProcessorOutputSchema: z.ZodObject<{
|
|
1888
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
1889
|
+
pageFrom: z.ZodNumber;
|
|
1890
|
+
pageTo: z.ZodNumber;
|
|
1891
|
+
}, z.core.$strict>>;
|
|
1892
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1893
|
+
pageFrom: z.ZodNumber;
|
|
1894
|
+
pageTo: z.ZodNumber;
|
|
1895
|
+
title: z.ZodString;
|
|
1896
|
+
}, z.core.$strict>>>;
|
|
1897
|
+
fields: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
1898
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
1899
|
+
page: z.ZodNumber;
|
|
1900
|
+
text: z.ZodString;
|
|
1901
|
+
}, z.core.$strict>>;
|
|
1902
|
+
}, z.core.$strict>;
|
|
1903
|
+
type KnowledgeProcessorOutput = z.infer<typeof knowledgeProcessorOutputSchema>;
|
|
1904
|
+
declare const knowledgePutProcessedInputSchema: z.ZodObject<{
|
|
1905
|
+
items: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
1906
|
+
documentId: z.ZodString;
|
|
1907
|
+
contentHash: z.ZodString;
|
|
1908
|
+
workflowRevision: z.ZodString;
|
|
1909
|
+
output: z.ZodObject<{
|
|
1910
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
1911
|
+
pageFrom: z.ZodNumber;
|
|
1912
|
+
pageTo: z.ZodNumber;
|
|
1913
|
+
}, z.core.$strict>>;
|
|
1914
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1915
|
+
pageFrom: z.ZodNumber;
|
|
1916
|
+
pageTo: z.ZodNumber;
|
|
1917
|
+
title: z.ZodString;
|
|
1918
|
+
}, z.core.$strict>>>;
|
|
1919
|
+
fields: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
1920
|
+
pages: z.ZodObject<{
|
|
1921
|
+
$dataset: z.ZodString;
|
|
1922
|
+
rowCount: z.ZodNumber;
|
|
1923
|
+
bytes: z.ZodNumber;
|
|
1924
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1925
|
+
}, z.core.$strict>;
|
|
1926
|
+
}, z.core.$strict>;
|
|
1927
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
1928
|
+
$dataset: z.ZodString;
|
|
1929
|
+
rowCount: z.ZodNumber;
|
|
1930
|
+
bytes: z.ZodNumber;
|
|
1931
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1932
|
+
}, z.core.$strict>]>;
|
|
1933
|
+
}, z.core.$strict>;
|
|
1934
|
+
declare const knowledgeFieldValueSchema: z.ZodJSONSchema;
|
|
1935
|
+
declare const knowledgeExtractFieldsInputSchema: z.ZodObject<{
|
|
1936
|
+
documentId: z.ZodString;
|
|
1937
|
+
schema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
1938
|
+
}, z.core.$strict>;
|
|
1939
|
+
declare const knowledgeExtractFieldsOutputSchema: z.ZodObject<{
|
|
1940
|
+
droppedFields: z.ZodOptional<z.ZodNumber>;
|
|
1941
|
+
failedFields: z.ZodOptional<z.ZodNumber>;
|
|
1942
|
+
path: z.ZodString;
|
|
1943
|
+
date: z.ZodNullable<z.ZodISODate>;
|
|
1944
|
+
type: z.ZodString;
|
|
1945
|
+
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1946
|
+
value: z.ZodJSONSchema;
|
|
1947
|
+
page: z.ZodNumber;
|
|
1948
|
+
quote: z.ZodString;
|
|
1949
|
+
}, z.core.$strict>>;
|
|
1950
|
+
}, z.core.$strict>;
|
|
1951
|
+
/** Created by the first ingest, never authored in kb.yaml; the id cannot collide with a connector source. */
|
|
1952
|
+
declare const knowledgeWorkflowSourceSchema: z.ZodObject<{
|
|
1953
|
+
id: z.ZodString;
|
|
1954
|
+
kind: z.ZodLiteral<"workflow">;
|
|
1955
|
+
workflowId: z.ZodString;
|
|
1956
|
+
}, z.core.$strict>;
|
|
1957
|
+
type KnowledgeWorkflowSource = z.infer<typeof knowledgeWorkflowSourceSchema>;
|
|
1958
|
+
/** Contract inventory; completion, batch and dataset are present only where the table declares them. */
|
|
1959
|
+
declare const knowledgeWriteContracts: {
|
|
1960
|
+
readonly ingest: {
|
|
1961
|
+
readonly description: "Ingest items or a dataset into the calling data Workflow's source; complete promises a full pass, withdrawn only after the run succeeds.";
|
|
1962
|
+
readonly inputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1963
|
+
items: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1964
|
+
itemId: z.ZodString;
|
|
1965
|
+
version: z.ZodString;
|
|
1966
|
+
name: z.ZodString;
|
|
1967
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1968
|
+
originLink: z.ZodOptional<z.ZodURL>;
|
|
1969
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
1970
|
+
fileId: z.ZodOptional<z.ZodNever>;
|
|
1971
|
+
fetch: z.ZodOptional<z.ZodNever>;
|
|
1972
|
+
text: z.ZodString;
|
|
1973
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1974
|
+
itemId: z.ZodString;
|
|
1975
|
+
version: z.ZodString;
|
|
1976
|
+
name: z.ZodString;
|
|
1977
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1978
|
+
originLink: z.ZodOptional<z.ZodURL>;
|
|
1979
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
1980
|
+
text: z.ZodOptional<z.ZodNever>;
|
|
1981
|
+
fetch: z.ZodOptional<z.ZodNever>;
|
|
1982
|
+
fileId: z.ZodString;
|
|
1983
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1984
|
+
itemId: z.ZodString;
|
|
1985
|
+
version: z.ZodString;
|
|
1986
|
+
name: z.ZodString;
|
|
1987
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1988
|
+
originLink: z.ZodOptional<z.ZodURL>;
|
|
1989
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
1990
|
+
text: z.ZodOptional<z.ZodNever>;
|
|
1991
|
+
fileId: z.ZodOptional<z.ZodNever>;
|
|
1992
|
+
fetch: z.ZodObject<{
|
|
1993
|
+
connection: z.ZodString;
|
|
1994
|
+
operation: z.ZodString;
|
|
1995
|
+
input: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
1996
|
+
}, z.core.$strict>;
|
|
1997
|
+
}, z.core.$strict>]>>;
|
|
1998
|
+
complete: z.ZodOptional<z.ZodBoolean>;
|
|
1999
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2000
|
+
dataset: z.ZodObject<{
|
|
2001
|
+
$dataset: z.ZodString;
|
|
2002
|
+
rowCount: z.ZodNumber;
|
|
2003
|
+
bytes: z.ZodNumber;
|
|
2004
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
2005
|
+
}, z.core.$strict>;
|
|
2006
|
+
complete: z.ZodOptional<z.ZodBoolean>;
|
|
2007
|
+
}, z.core.$strict>]>;
|
|
2008
|
+
readonly outputSchema: z.ZodObject<{
|
|
2009
|
+
done: z.ZodNumber;
|
|
2010
|
+
failed: z.ZodNumber;
|
|
2011
|
+
failures: z.ZodObject<{
|
|
2012
|
+
$dataset: z.ZodString;
|
|
2013
|
+
rowCount: z.ZodNumber;
|
|
2014
|
+
bytes: z.ZodNumber;
|
|
2015
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
2016
|
+
}, z.core.$strict>;
|
|
2017
|
+
accepted: z.ZodNumber;
|
|
2018
|
+
withdrawn: z.ZodNumber;
|
|
2019
|
+
}, z.core.$strict>;
|
|
2020
|
+
readonly effect: "changing";
|
|
2021
|
+
readonly right: "knowledge_base.ingest";
|
|
2022
|
+
readonly keyLevel: "write";
|
|
2023
|
+
readonly completion: "async";
|
|
2024
|
+
readonly batch: true;
|
|
2025
|
+
};
|
|
2026
|
+
readonly withdraw: {
|
|
2027
|
+
readonly description: "Withdraw item ids from the calling Workflow's source; removed from search immediately.";
|
|
2028
|
+
readonly inputSchema: z.ZodObject<{
|
|
2029
|
+
itemIds: z.ZodArray<z.ZodString>;
|
|
2030
|
+
}, z.core.$strict>;
|
|
2031
|
+
readonly outputSchema: z.ZodObject<{
|
|
2032
|
+
withdrawn: z.ZodNumber;
|
|
2033
|
+
}, z.core.$strict>;
|
|
2034
|
+
readonly effect: "changing";
|
|
2035
|
+
readonly right: "knowledge_base.ingest";
|
|
2036
|
+
readonly keyLevel: "write";
|
|
2037
|
+
};
|
|
2038
|
+
readonly pending: {
|
|
2039
|
+
readonly description: "Pull pending documents by type and time as a dataset; page text is another dataset reference.";
|
|
2040
|
+
readonly inputSchema: z.ZodObject<{
|
|
2041
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2042
|
+
since: z.ZodOptional<z.ZodISODateTime>;
|
|
2043
|
+
limit: z.ZodNumber;
|
|
2044
|
+
}, z.core.$strict>;
|
|
2045
|
+
readonly outputSchema: z.ZodObject<{
|
|
2046
|
+
documents: z.ZodObject<{
|
|
2047
|
+
$dataset: z.ZodString;
|
|
2048
|
+
rowCount: z.ZodNumber;
|
|
2049
|
+
bytes: z.ZodNumber;
|
|
2050
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
2051
|
+
}, z.core.$strict>;
|
|
2052
|
+
}, z.core.$strict>;
|
|
2053
|
+
readonly rowSchema: z.ZodObject<{
|
|
2054
|
+
id: z.ZodString;
|
|
2055
|
+
type: z.ZodString;
|
|
2056
|
+
contentHash: z.ZodString;
|
|
2057
|
+
pages: z.ZodObject<{
|
|
2058
|
+
$dataset: z.ZodString;
|
|
2059
|
+
rowCount: z.ZodNumber;
|
|
2060
|
+
bytes: z.ZodNumber;
|
|
2061
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
2062
|
+
}, z.core.$strict>;
|
|
2063
|
+
}, z.core.$strict>;
|
|
2064
|
+
readonly effect: "reading";
|
|
2065
|
+
readonly right: "knowledge_base.read";
|
|
2066
|
+
readonly keyLevel: "read";
|
|
2067
|
+
readonly dataset: true;
|
|
2068
|
+
};
|
|
2069
|
+
readonly put_processed: {
|
|
2070
|
+
readonly description: "Write processor output by document, content hash and Workflow revision, with pages as a dataset reference like pending; the platform validates, chunks and indexes it, with per-item outcomes.";
|
|
2071
|
+
readonly inputSchema: z.ZodObject<{
|
|
2072
|
+
items: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
2073
|
+
documentId: z.ZodString;
|
|
2074
|
+
contentHash: z.ZodString;
|
|
2075
|
+
workflowRevision: z.ZodString;
|
|
2076
|
+
output: z.ZodObject<{
|
|
2077
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
2078
|
+
pageFrom: z.ZodNumber;
|
|
2079
|
+
pageTo: z.ZodNumber;
|
|
2080
|
+
}, z.core.$strict>>;
|
|
2081
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2082
|
+
pageFrom: z.ZodNumber;
|
|
2083
|
+
pageTo: z.ZodNumber;
|
|
2084
|
+
title: z.ZodString;
|
|
2085
|
+
}, z.core.$strict>>>;
|
|
2086
|
+
fields: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
2087
|
+
pages: z.ZodObject<{
|
|
2088
|
+
$dataset: z.ZodString;
|
|
2089
|
+
rowCount: z.ZodNumber;
|
|
2090
|
+
bytes: z.ZodNumber;
|
|
2091
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
2092
|
+
}, z.core.$strict>;
|
|
2093
|
+
}, z.core.$strict>;
|
|
2094
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
2095
|
+
$dataset: z.ZodString;
|
|
2096
|
+
rowCount: z.ZodNumber;
|
|
2097
|
+
bytes: z.ZodNumber;
|
|
2098
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
2099
|
+
}, z.core.$strict>]>;
|
|
2100
|
+
}, z.core.$strict>;
|
|
2101
|
+
readonly outputSchema: z.ZodObject<{
|
|
2102
|
+
done: z.ZodNumber;
|
|
2103
|
+
failed: z.ZodNumber;
|
|
2104
|
+
failures: z.ZodObject<{
|
|
2105
|
+
$dataset: z.ZodString;
|
|
2106
|
+
rowCount: z.ZodNumber;
|
|
2107
|
+
bytes: z.ZodNumber;
|
|
2108
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
2109
|
+
}, z.core.$strict>;
|
|
2110
|
+
}, z.core.$strict>;
|
|
2111
|
+
readonly effect: "changing";
|
|
2112
|
+
readonly right: "knowledge_base.ingest";
|
|
2113
|
+
readonly keyLevel: "write";
|
|
2114
|
+
readonly batch: true;
|
|
2115
|
+
};
|
|
2116
|
+
readonly extract_fields: {
|
|
2117
|
+
readonly description: "Extract fields by schema through the approved model binding within the Knowledge Base budget; each value carries page and quote evidence.";
|
|
2118
|
+
readonly inputSchema: z.ZodObject<{
|
|
2119
|
+
documentId: z.ZodString;
|
|
2120
|
+
schema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
2121
|
+
}, z.core.$strict>;
|
|
2122
|
+
readonly outputSchema: z.ZodObject<{
|
|
2123
|
+
droppedFields: z.ZodOptional<z.ZodNumber>;
|
|
2124
|
+
failedFields: z.ZodOptional<z.ZodNumber>;
|
|
2125
|
+
path: z.ZodString;
|
|
2126
|
+
date: z.ZodNullable<z.ZodISODate>;
|
|
2127
|
+
type: z.ZodString;
|
|
2128
|
+
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2129
|
+
value: z.ZodJSONSchema;
|
|
2130
|
+
page: z.ZodNumber;
|
|
2131
|
+
quote: z.ZodString;
|
|
2132
|
+
}, z.core.$strict>>;
|
|
2133
|
+
}, z.core.$strict>;
|
|
2134
|
+
readonly effect: "reading";
|
|
2135
|
+
readonly right: "knowledge_base.read";
|
|
2136
|
+
readonly keyLevel: "read";
|
|
2137
|
+
};
|
|
2138
|
+
};
|
|
2139
|
+
/** Records rules belong to the Data Store; kb.yaml must never hold them. */
|
|
2140
|
+
declare const knowledgeRecordsRefusalSchema: z.ZodOptional<z.ZodNever>;
|
|
2141
|
+
type KnowledgeIngestInput = z.infer<typeof knowledgeIngestInputSchema>;
|
|
2142
|
+
type KnowledgeIngestOutput = z.infer<typeof knowledgeIngestOutputSchema>;
|
|
2143
|
+
type KnowledgeIngestFetch = z.infer<typeof knowledgeIngestFetchSchema>;
|
|
2144
|
+
type KnowledgeWithdrawInput = z.infer<typeof knowledgeWithdrawInputSchema>;
|
|
2145
|
+
type KnowledgeWithdrawOutput = z.infer<typeof knowledgeWithdrawOutputSchema>;
|
|
2146
|
+
type KnowledgePendingInput = z.infer<typeof knowledgePendingInputSchema>;
|
|
2147
|
+
type KnowledgePendingRow = z.infer<typeof knowledgePendingRowSchema>;
|
|
2148
|
+
type KnowledgePendingOutput = z.infer<typeof knowledgePendingOutputSchema>;
|
|
2149
|
+
type KnowledgePutProcessedInput = z.infer<typeof knowledgePutProcessedInputSchema>;
|
|
2150
|
+
type KnowledgeExtractFieldsInput = z.infer<typeof knowledgeExtractFieldsInputSchema>;
|
|
2151
|
+
type KnowledgeExtractFieldsOutput = z.infer<typeof knowledgeExtractFieldsOutputSchema>;
|
|
2152
|
+
|
|
2153
|
+
/** Paging settings shared by accepted Connections and their API view. */
|
|
2154
|
+
declare const operationPagingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2155
|
+
by: z.ZodEnum<{
|
|
2156
|
+
page: "page";
|
|
2157
|
+
offset: "offset";
|
|
2158
|
+
}>;
|
|
2159
|
+
param: z.ZodString;
|
|
2160
|
+
sizeParam: z.ZodString;
|
|
2161
|
+
size: z.ZodNumber;
|
|
2162
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
2163
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2164
|
+
by: z.ZodEnum<{
|
|
2165
|
+
cursor: "cursor";
|
|
2166
|
+
next_link: "next_link";
|
|
2167
|
+
}>;
|
|
2168
|
+
param: z.ZodString;
|
|
2169
|
+
cursor: z.ZodString;
|
|
2170
|
+
}, z.core.$strict>], "by">;
|
|
2171
|
+
type OperationPaging = z.infer<typeof operationPagingSchema>;
|
|
2172
|
+
|
|
2173
|
+
/** Published data Workflows that fill or process an asset, with unreadable names withheld. */
|
|
2174
|
+
declare const workflowDataFlowsSchema: z.ZodObject<{
|
|
2175
|
+
fills: z.ZodArray<z.ZodObject<{
|
|
2176
|
+
id: z.ZodString;
|
|
2177
|
+
name: z.ZodString;
|
|
2178
|
+
title: z.ZodString;
|
|
2179
|
+
}, z.core.$strip>>;
|
|
2180
|
+
processes: z.ZodArray<z.ZodObject<{
|
|
2181
|
+
id: z.ZodString;
|
|
2182
|
+
name: z.ZodString;
|
|
2183
|
+
title: z.ZodString;
|
|
2184
|
+
}, z.core.$strip>>;
|
|
2185
|
+
hidden: z.ZodObject<{
|
|
2186
|
+
fills: z.ZodNumber;
|
|
2187
|
+
processes: z.ZodNumber;
|
|
2188
|
+
}, z.core.$strip>;
|
|
2189
|
+
truncated: z.ZodBoolean;
|
|
2190
|
+
}, z.core.$strip>;
|
|
2191
|
+
|
|
2192
|
+
declare const RECORDS_PROPOSE_MAX_ITEMS_PER_CALL = 1000;
|
|
2193
|
+
declare const RECORDS_PROPOSE_MAX_FIELDS_PER_ITEM = 1000;
|
|
2194
|
+
declare const RECORDS_FLAGGED_MAX_ITEMS_PER_PAGE = 10000;
|
|
2195
|
+
declare const dataStoreRecordsRuleSchema: z.ZodObject<{
|
|
2196
|
+
table: z.ZodString;
|
|
2197
|
+
key: z.ZodUnion<readonly [z.ZodObject<{
|
|
2198
|
+
column: z.ZodString;
|
|
2199
|
+
fromPath: z.ZodString;
|
|
2200
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2201
|
+
column: z.ZodString;
|
|
2202
|
+
fromField: z.ZodString;
|
|
2203
|
+
}, z.core.$strict>]>;
|
|
2204
|
+
precedence: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2205
|
+
review: z.ZodPrefault<z.ZodObject<{
|
|
2206
|
+
always: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2207
|
+
}, z.core.$strict>>;
|
|
2208
|
+
retainWithoutSource: z.ZodDefault<z.ZodBoolean>;
|
|
2209
|
+
}, z.core.$strict>;
|
|
2210
|
+
type DataStoreRecordsRule = z.infer<typeof dataStoreRecordsRuleSchema>;
|
|
2211
|
+
/** A necessary condition, never a model confidence score or proof of correctness. */
|
|
2212
|
+
declare const recordEvidenceResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2213
|
+
status: z.ZodLiteral<"passed">;
|
|
2214
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2215
|
+
status: z.ZodLiteral<"failed">;
|
|
2216
|
+
reason: z.ZodEnum<{
|
|
2217
|
+
page_not_found: "page_not_found";
|
|
2218
|
+
quote_not_found: "quote_not_found";
|
|
2219
|
+
value_not_parsed: "value_not_parsed";
|
|
2220
|
+
}>;
|
|
2221
|
+
}, z.core.$strict>], "status">;
|
|
2222
|
+
type RecordEvidenceResult = z.infer<typeof recordEvidenceResultSchema>;
|
|
2223
|
+
declare const RECORD_FIELD_STATES: readonly ["extracted", "confirmed", "corrected", "conflict"];
|
|
2224
|
+
/** Why a field waits for a person in "Prüfen". */
|
|
2225
|
+
declare const RECORD_FLAG_REASONS: readonly ["conflict", "not_evidenced", "confirmation_required", "key_unresolved"];
|
|
2226
|
+
declare const RECORD_FIELD_FAILURE_CODES: readonly ["record_field_unknown"];
|
|
2227
|
+
declare const dataStoreRecordProposalItemSchema: z.ZodObject<{
|
|
2228
|
+
knowledgeBaseId: z.ZodString;
|
|
2229
|
+
documentId: z.ZodString;
|
|
2230
|
+
kind: z.ZodString;
|
|
2231
|
+
documentDate: z.ZodNullable<z.ZodISODate>;
|
|
2232
|
+
path: z.ZodOptional<z.ZodString>;
|
|
2233
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
2234
|
+
value: z.ZodJSONSchema;
|
|
2235
|
+
page: z.ZodNumber;
|
|
2236
|
+
quote: z.ZodString;
|
|
2237
|
+
name: z.ZodString;
|
|
2238
|
+
}, z.core.$strict>>;
|
|
2239
|
+
}, z.core.$strict>;
|
|
2240
|
+
type DataStoreRecordProposalItem = z.infer<typeof dataStoreRecordProposalItemSchema>;
|
|
2241
|
+
declare const dataStoreRecordsProposeInputSchema: z.ZodObject<{
|
|
2242
|
+
table: z.ZodString;
|
|
2243
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2244
|
+
knowledgeBaseId: z.ZodString;
|
|
2245
|
+
documentId: z.ZodString;
|
|
2246
|
+
kind: z.ZodString;
|
|
2247
|
+
documentDate: z.ZodNullable<z.ZodISODate>;
|
|
2248
|
+
path: z.ZodOptional<z.ZodString>;
|
|
2249
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
2250
|
+
value: z.ZodJSONSchema;
|
|
2251
|
+
page: z.ZodNumber;
|
|
2252
|
+
quote: z.ZodString;
|
|
2253
|
+
name: z.ZodString;
|
|
2254
|
+
}, z.core.$strict>>;
|
|
2255
|
+
}, z.core.$strict>>;
|
|
2256
|
+
}, z.core.$strict>;
|
|
2257
|
+
type DataStoreRecordsProposeInput = z.infer<typeof dataStoreRecordsProposeInputSchema>;
|
|
2258
|
+
declare const dataStoreRecordsDecideInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2259
|
+
table: z.ZodString;
|
|
2260
|
+
key: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
2261
|
+
field: z.ZodString;
|
|
2262
|
+
documentId: z.ZodOptional<z.ZodString>;
|
|
2263
|
+
knowledgeBaseId: z.ZodOptional<z.ZodString>;
|
|
2264
|
+
action: z.ZodLiteral<"confirm">;
|
|
2265
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2266
|
+
table: z.ZodString;
|
|
2267
|
+
key: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
2268
|
+
field: z.ZodString;
|
|
2269
|
+
documentId: z.ZodOptional<z.ZodString>;
|
|
2270
|
+
knowledgeBaseId: z.ZodOptional<z.ZodString>;
|
|
2271
|
+
action: z.ZodLiteral<"correct">;
|
|
2272
|
+
value: z.ZodJSONSchema;
|
|
2273
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2274
|
+
table: z.ZodString;
|
|
2275
|
+
key: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
2276
|
+
field: z.ZodString;
|
|
2277
|
+
action: z.ZodLiteral<"assign">;
|
|
2278
|
+
documentId: z.ZodString;
|
|
2279
|
+
knowledgeBaseId: z.ZodString;
|
|
2280
|
+
}, z.core.$strict>], "action">;
|
|
2281
|
+
type DataStoreRecordsDecideInput = z.infer<typeof dataStoreRecordsDecideInputSchema>;
|
|
2282
|
+
declare const dataStoreRecordsDecideOutputSchema: z.ZodObject<{
|
|
2283
|
+
decided: z.ZodLiteral<true>;
|
|
2284
|
+
}, z.core.$strict>;
|
|
2285
|
+
declare const dataStoreRecordsFlaggedInputSchema: z.ZodObject<{
|
|
2286
|
+
table: z.ZodOptional<z.ZodString>;
|
|
2287
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
2288
|
+
limit: z.ZodNumber;
|
|
2289
|
+
}, z.core.$strict>;
|
|
2290
|
+
declare const dataStoreRecordFieldSchema: z.ZodObject<{
|
|
2291
|
+
value: z.ZodJSONSchema;
|
|
2292
|
+
page: z.ZodNumber;
|
|
2293
|
+
quote: z.ZodString;
|
|
2294
|
+
name: z.ZodString;
|
|
2295
|
+
correctedValue: z.ZodNullable<z.ZodJSONSchema>;
|
|
2296
|
+
table: z.ZodString;
|
|
2297
|
+
key: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2298
|
+
knowledgeBaseId: z.ZodString;
|
|
2299
|
+
documentId: z.ZodString;
|
|
2300
|
+
kind: z.ZodString;
|
|
2301
|
+
documentDate: z.ZodNullable<z.ZodISODate>;
|
|
2302
|
+
extractedAt: z.ZodISODateTime;
|
|
2303
|
+
evidence: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2304
|
+
status: z.ZodLiteral<"passed">;
|
|
2305
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2306
|
+
status: z.ZodLiteral<"failed">;
|
|
2307
|
+
reason: z.ZodEnum<{
|
|
2308
|
+
page_not_found: "page_not_found";
|
|
2309
|
+
quote_not_found: "quote_not_found";
|
|
2310
|
+
value_not_parsed: "value_not_parsed";
|
|
2311
|
+
}>;
|
|
2312
|
+
}, z.core.$strict>], "status">;
|
|
2313
|
+
state: z.ZodEnum<{
|
|
2314
|
+
confirmed: "confirmed";
|
|
2315
|
+
extracted: "extracted";
|
|
2316
|
+
corrected: "corrected";
|
|
2317
|
+
conflict: "conflict";
|
|
2318
|
+
}>;
|
|
2319
|
+
decidedBy: z.ZodNullable<z.ZodString>;
|
|
2320
|
+
decidedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
2321
|
+
}, z.core.$strict>;
|
|
2322
|
+
type DataStoreRecordField = z.infer<typeof dataStoreRecordFieldSchema>;
|
|
2323
|
+
declare const dataStoreRecordsFlaggedOutputSchema: z.ZodObject<{
|
|
2324
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2325
|
+
value: z.ZodJSONSchema;
|
|
2326
|
+
page: z.ZodNumber;
|
|
2327
|
+
quote: z.ZodString;
|
|
2328
|
+
name: z.ZodString;
|
|
2329
|
+
correctedValue: z.ZodNullable<z.ZodJSONSchema>;
|
|
2330
|
+
table: z.ZodString;
|
|
2331
|
+
key: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2332
|
+
knowledgeBaseId: z.ZodString;
|
|
2333
|
+
documentId: z.ZodString;
|
|
2334
|
+
kind: z.ZodString;
|
|
2335
|
+
documentDate: z.ZodNullable<z.ZodISODate>;
|
|
2336
|
+
extractedAt: z.ZodISODateTime;
|
|
2337
|
+
evidence: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2338
|
+
status: z.ZodLiteral<"passed">;
|
|
2339
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2340
|
+
status: z.ZodLiteral<"failed">;
|
|
2341
|
+
reason: z.ZodEnum<{
|
|
2342
|
+
page_not_found: "page_not_found";
|
|
2343
|
+
quote_not_found: "quote_not_found";
|
|
2344
|
+
value_not_parsed: "value_not_parsed";
|
|
2345
|
+
}>;
|
|
2346
|
+
}, z.core.$strict>], "status">;
|
|
2347
|
+
state: z.ZodEnum<{
|
|
2348
|
+
confirmed: "confirmed";
|
|
2349
|
+
extracted: "extracted";
|
|
2350
|
+
corrected: "corrected";
|
|
2351
|
+
conflict: "conflict";
|
|
2352
|
+
}>;
|
|
2353
|
+
decidedBy: z.ZodNullable<z.ZodString>;
|
|
2354
|
+
decidedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
2355
|
+
reason: z.ZodEnum<{
|
|
2356
|
+
conflict: "conflict";
|
|
2357
|
+
not_evidenced: "not_evidenced";
|
|
2358
|
+
confirmation_required: "confirmation_required";
|
|
2359
|
+
key_unresolved: "key_unresolved";
|
|
2360
|
+
}>;
|
|
2361
|
+
document: z.ZodOptional<z.ZodObject<{
|
|
2362
|
+
knowledgeBase: z.ZodString;
|
|
2363
|
+
fileName: z.ZodString;
|
|
2364
|
+
}, z.core.$strict>>;
|
|
2365
|
+
decidedByName: z.ZodOptional<z.ZodString>;
|
|
2366
|
+
}, z.core.$strict>>;
|
|
2367
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
2368
|
+
}, z.core.$strict>;
|
|
2369
|
+
type ColumnType = (typeof DATA_STORE_SCALAR_TYPES)[number];
|
|
2370
|
+
interface RecordColumn {
|
|
2371
|
+
name: string;
|
|
2372
|
+
type: ColumnType | `${ColumnType}[]` | "other";
|
|
2373
|
+
nullable: boolean;
|
|
2374
|
+
generated?: boolean;
|
|
2375
|
+
}
|
|
2376
|
+
/** Whether a column takes the value, as a proposal and a person's correction are checked. */
|
|
2377
|
+
declare function recordColumnTakes(column: RecordColumn, value: unknown): boolean;
|
|
2378
|
+
/**
|
|
2379
|
+
* Validate a whole item before any candidate or customer row is written. The batch writer
|
|
2380
|
+
* maps this refusal to record_field_unknown for that item and continues with other items.
|
|
2381
|
+
* Types come from the store catalog, never from the caller's extraction schema.
|
|
2382
|
+
*/
|
|
2383
|
+
declare function proposalItemSchemaFor(columns: readonly RecordColumn[]): z.ZodObject<{
|
|
2384
|
+
knowledgeBaseId: z.ZodString;
|
|
2385
|
+
documentId: z.ZodString;
|
|
2386
|
+
kind: z.ZodString;
|
|
2387
|
+
documentDate: z.ZodNullable<z.ZodISODate>;
|
|
2388
|
+
path: z.ZodOptional<z.ZodString>;
|
|
2389
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
2390
|
+
value: z.ZodJSONSchema;
|
|
2391
|
+
page: z.ZodNumber;
|
|
2392
|
+
quote: z.ZodString;
|
|
2393
|
+
name: z.ZodString;
|
|
2394
|
+
}, z.core.$strict>>;
|
|
2395
|
+
}, z.core.$strict>;
|
|
2396
|
+
/** Contracts only: REC-1a/1b/2 register the implementations, not REC-0. */
|
|
2397
|
+
declare const dataStoreRecordsContracts: {
|
|
2398
|
+
readonly propose: {
|
|
2399
|
+
readonly description: "Propose extracted fields with Knowledge Base/document/page/quote evidence. Validate each whole item against the published table before writing; failures are per item. Send at most 1000 items per call and 1000 fields per item; split larger work into batches. Merge by evidence precedence, then document date; unresolved keys and evidence go to review.";
|
|
2400
|
+
readonly inputSchema: z.ZodObject<{
|
|
2401
|
+
table: z.ZodString;
|
|
2402
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2403
|
+
knowledgeBaseId: z.ZodString;
|
|
2404
|
+
documentId: z.ZodString;
|
|
2405
|
+
kind: z.ZodString;
|
|
2406
|
+
documentDate: z.ZodNullable<z.ZodISODate>;
|
|
2407
|
+
path: z.ZodOptional<z.ZodString>;
|
|
2408
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
2409
|
+
value: z.ZodJSONSchema;
|
|
2410
|
+
page: z.ZodNumber;
|
|
2411
|
+
quote: z.ZodString;
|
|
2412
|
+
name: z.ZodString;
|
|
2413
|
+
}, z.core.$strict>>;
|
|
2414
|
+
}, z.core.$strict>>;
|
|
2415
|
+
}, z.core.$strict>;
|
|
2416
|
+
readonly outputSchema: z.ZodObject<{
|
|
2417
|
+
done: z.ZodNumber;
|
|
2418
|
+
failed: z.ZodNumber;
|
|
2419
|
+
failures: z.ZodObject<{
|
|
2420
|
+
$dataset: z.ZodString;
|
|
2421
|
+
rowCount: z.ZodNumber;
|
|
2422
|
+
bytes: z.ZodNumber;
|
|
2423
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
2424
|
+
}, z.core.$strict>;
|
|
2425
|
+
}, z.core.$strict>;
|
|
2426
|
+
readonly itemSchemaFor: typeof proposalItemSchemaFor;
|
|
2427
|
+
readonly effect: "changing";
|
|
2428
|
+
readonly right: "data_store.records";
|
|
2429
|
+
readonly keyLevel: "write";
|
|
2430
|
+
readonly batch: true;
|
|
2431
|
+
};
|
|
2432
|
+
readonly decide: {
|
|
2433
|
+
readonly description: "Confirm or correct a field against its evidence, or assign a document to an object key. Decisions are pinned; audit table/field/action/actor only, never the value.";
|
|
2434
|
+
readonly inputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2435
|
+
table: z.ZodString;
|
|
2436
|
+
key: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
2437
|
+
field: z.ZodString;
|
|
2438
|
+
documentId: z.ZodOptional<z.ZodString>;
|
|
2439
|
+
knowledgeBaseId: z.ZodOptional<z.ZodString>;
|
|
2440
|
+
action: z.ZodLiteral<"confirm">;
|
|
2441
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2442
|
+
table: z.ZodString;
|
|
2443
|
+
key: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
2444
|
+
field: z.ZodString;
|
|
2445
|
+
documentId: z.ZodOptional<z.ZodString>;
|
|
2446
|
+
knowledgeBaseId: z.ZodOptional<z.ZodString>;
|
|
2447
|
+
action: z.ZodLiteral<"correct">;
|
|
2448
|
+
value: z.ZodJSONSchema;
|
|
2449
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2450
|
+
table: z.ZodString;
|
|
2451
|
+
key: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
2452
|
+
field: z.ZodString;
|
|
2453
|
+
action: z.ZodLiteral<"assign">;
|
|
2454
|
+
documentId: z.ZodString;
|
|
2455
|
+
knowledgeBaseId: z.ZodString;
|
|
2456
|
+
}, z.core.$strict>], "action">;
|
|
2457
|
+
readonly outputSchema: z.ZodObject<{
|
|
2458
|
+
decided: z.ZodLiteral<true>;
|
|
2459
|
+
}, z.core.$strict>;
|
|
2460
|
+
readonly effect: "changing";
|
|
2461
|
+
readonly right: "data_store.records";
|
|
2462
|
+
readonly keyLevel: "write";
|
|
2463
|
+
};
|
|
2464
|
+
readonly flagged: {
|
|
2465
|
+
readonly description: "Page through fields needing review, up to 10000 per call; pass nextCursor as cursor for the next page. Check Knowledge Base access before showing any document citation; the store right alone does not grant access to source documents.";
|
|
2466
|
+
readonly inputSchema: z.ZodObject<{
|
|
2467
|
+
table: z.ZodOptional<z.ZodString>;
|
|
2468
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
2469
|
+
limit: z.ZodNumber;
|
|
2470
|
+
}, z.core.$strict>;
|
|
2471
|
+
readonly outputSchema: z.ZodObject<{
|
|
2472
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2473
|
+
value: z.ZodJSONSchema;
|
|
2474
|
+
page: z.ZodNumber;
|
|
2475
|
+
quote: z.ZodString;
|
|
2476
|
+
name: z.ZodString;
|
|
2477
|
+
correctedValue: z.ZodNullable<z.ZodJSONSchema>;
|
|
2478
|
+
table: z.ZodString;
|
|
2479
|
+
key: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2480
|
+
knowledgeBaseId: z.ZodString;
|
|
2481
|
+
documentId: z.ZodString;
|
|
2482
|
+
kind: z.ZodString;
|
|
2483
|
+
documentDate: z.ZodNullable<z.ZodISODate>;
|
|
2484
|
+
extractedAt: z.ZodISODateTime;
|
|
2485
|
+
evidence: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2486
|
+
status: z.ZodLiteral<"passed">;
|
|
2487
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2488
|
+
status: z.ZodLiteral<"failed">;
|
|
2489
|
+
reason: z.ZodEnum<{
|
|
2490
|
+
page_not_found: "page_not_found";
|
|
2491
|
+
quote_not_found: "quote_not_found";
|
|
2492
|
+
value_not_parsed: "value_not_parsed";
|
|
2493
|
+
}>;
|
|
2494
|
+
}, z.core.$strict>], "status">;
|
|
2495
|
+
state: z.ZodEnum<{
|
|
2496
|
+
confirmed: "confirmed";
|
|
2497
|
+
extracted: "extracted";
|
|
2498
|
+
corrected: "corrected";
|
|
2499
|
+
conflict: "conflict";
|
|
2500
|
+
}>;
|
|
2501
|
+
decidedBy: z.ZodNullable<z.ZodString>;
|
|
2502
|
+
decidedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
2503
|
+
reason: z.ZodEnum<{
|
|
2504
|
+
conflict: "conflict";
|
|
2505
|
+
not_evidenced: "not_evidenced";
|
|
2506
|
+
confirmation_required: "confirmation_required";
|
|
2507
|
+
key_unresolved: "key_unresolved";
|
|
2508
|
+
}>;
|
|
2509
|
+
document: z.ZodOptional<z.ZodObject<{
|
|
2510
|
+
knowledgeBase: z.ZodString;
|
|
2511
|
+
fileName: z.ZodString;
|
|
2512
|
+
}, z.core.$strict>>;
|
|
2513
|
+
decidedByName: z.ZodOptional<z.ZodString>;
|
|
2514
|
+
}, z.core.$strict>>;
|
|
2515
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
2516
|
+
}, z.core.$strict>;
|
|
2517
|
+
readonly effect: "reading";
|
|
2518
|
+
readonly right: "data_store.records";
|
|
2519
|
+
readonly keyLevel: "read";
|
|
2520
|
+
};
|
|
2521
|
+
};
|
|
2522
|
+
type DataStoreRecordsDecideOutput = z.infer<typeof dataStoreRecordsDecideOutputSchema>;
|
|
2523
|
+
type DataStoreRecordsFlaggedInput = z.infer<typeof dataStoreRecordsFlaggedInputSchema>;
|
|
2524
|
+
type DataStoreRecordsFlaggedOutput = z.infer<typeof dataStoreRecordsFlaggedOutputSchema>;
|
|
2525
|
+
|
|
2526
|
+
/** The UTC counter windows, metrics and scopes a model usage refusal may name. */
|
|
2527
|
+
declare const MODEL_USAGE_LIMIT_PERIODS: readonly ["day", "month"];
|
|
2528
|
+
declare const MODEL_USAGE_LIMIT_METRICS: readonly ["modelCallCount", "tokens", "costMicros"];
|
|
2529
|
+
declare const MODEL_USAGE_LIMIT_SCOPES: readonly ["instance", "user", "system", "workspace"];
|
|
2530
|
+
/**
|
|
2531
|
+
* Where an admin sets a spend limit (LU-2): the instance, one default for every shared
|
|
2532
|
+
* workspace and one for every user, and a value for one workspace or one user that replaces
|
|
2533
|
+
* that default.
|
|
2534
|
+
*/
|
|
2535
|
+
declare const USAGE_SPEND_LIMIT_LEVELS: readonly ["instance", "workspace_default", "workspace", "user_default", "user"];
|
|
2536
|
+
/** The limit that refused a call: its period, what it counts, and whose counter it is. */
|
|
2537
|
+
type ModelUsageRefusal = {
|
|
2538
|
+
period: (typeof MODEL_USAGE_LIMIT_PERIODS)[number];
|
|
2539
|
+
metric: (typeof MODEL_USAGE_LIMIT_METRICS)[number];
|
|
2540
|
+
/**
|
|
2541
|
+
* `user`: the person's own calls. `system`: the calls the product makes for a person, or
|
|
2542
|
+
* those no person made. `workspace`: the calls inside one shared workspace. `instance`: the
|
|
2543
|
+
* spend budget everyone shares.
|
|
2544
|
+
*/
|
|
2545
|
+
scope: (typeof MODEL_USAGE_LIMIT_SCOPES)[number];
|
|
2546
|
+
};
|
|
2547
|
+
/** The workspace key every Personal Workspace shares in the usage sums (LU-3): one row. */
|
|
2548
|
+
declare const PERSONAL_WORKSPACES_KEY = "personal";
|
|
2549
|
+
/**
|
|
2550
|
+
* The agent key every person's own agent ("Only me") shares in the usage of a shared workspace:
|
|
2551
|
+
* the team's Owners and the Usage page see that someone's own agent was used there, never which.
|
|
2552
|
+
* No agent the Studio names starts with a colon.
|
|
2553
|
+
*/
|
|
2554
|
+
declare const PERSONAL_AGENTS_KEY = ":personal";
|
|
2555
|
+
/** What the Breakdown of the Usage page groups by (LU-3, limits spec 3.3, view 2). */
|
|
2556
|
+
declare const USAGE_BREAKDOWN_DIMENSIONS: readonly ["workspace", "agent", "app", "workflow", "model", "origin"];
|
|
2557
|
+
/**
|
|
2558
|
+
* Where usage came from (limits spec 3.2): a conversation, an App, a Workflow, Knowledge Base
|
|
2559
|
+
* ingestion, or a call the product made for itself, such as a title or a guardrail check.
|
|
2560
|
+
*/
|
|
2561
|
+
declare const USAGE_ORIGINS: readonly ["conversation", "app", "workflow", "knowledge_base", "system"];
|
|
2562
|
+
|
|
2563
|
+
/**
|
|
2564
|
+
* The JSON Schema `format` of a string field that takes Markdown, such as the body of
|
|
2565
|
+
* `mail.send`. In such a field a referenced list of strings joins as a bulleted list and a
|
|
2566
|
+
* list of flat records as a table, and every referenced value is escaped as Markdown text.
|
|
2567
|
+
*/
|
|
2568
|
+
declare const WORKFLOW_TEXT_FORMAT_MARKDOWN = "markdown";
|
|
2569
|
+
/** The most parts one joined text has. */
|
|
2570
|
+
declare const WORKFLOW_TEXT_MAX_PARTS = 100;
|
|
2571
|
+
/** A referenced list in a Markdown field joins as at most this many rows; more is refused. */
|
|
2572
|
+
declare const WORKFLOW_MARKDOWN_MAX_ROWS = 100;
|
|
2573
|
+
/** A referenced list of records joins as a table of at most this many columns. */
|
|
2574
|
+
declare const WORKFLOW_MARKDOWN_MAX_COLUMNS = 8;
|
|
2575
|
+
|
|
2576
|
+
/** The platform operation. It exists on an instance only while `outbound.enabled` is true. */
|
|
2577
|
+
declare const MAIL_SEND_OPERATION = "mail.send";
|
|
2578
|
+
/** The resource kind of a sender. Its right is `mail_sender.use`, on one sender. */
|
|
2579
|
+
declare const MAIL_SENDER_RESOURCE_KIND = "mail_sender";
|
|
2580
|
+
declare const MAIL_SENDER_USE_ACTION = "mail_sender.use";
|
|
2581
|
+
/** The instance's own mailer (`infrastructure.mail`), the only sender until MAIL-M365S. */
|
|
2582
|
+
declare const MAIL_SENDER_SYSTEM = "system";
|
|
2583
|
+
/** The prefix of a Connection sender (MAIL-M365S, MAIL-M365P): `connection.<name>`. */
|
|
2584
|
+
declare const MAIL_SENDER_CONNECTION_PREFIX = "connection.";
|
|
2585
|
+
/**
|
|
2586
|
+
* The icon key the step shows for the system sender. An assembly may register the instance's
|
|
2587
|
+
* mark under it; without one the generic mail icon stands. A Connection sender shows its
|
|
2588
|
+
* Connection's `service` icon. The transport (Mailjet, capture, SMTP) never has an icon.
|
|
2589
|
+
*/
|
|
2590
|
+
declare const MAIL_SENDER_SYSTEM_ICON = "system-mail";
|
|
2591
|
+
/** The template `packages/mail` renders a mail of `mail.send` in. */
|
|
2592
|
+
declare const MAIL_WORKFLOW_MESSAGE_TEMPLATE = "workflow-message";
|
|
2593
|
+
/** Addresses of one mail once `{ workspace }` recipients are expanded, over to, cc and bcc. */
|
|
2594
|
+
declare const MAIL_SEND_MAX_ADDRESSES = 50;
|
|
2595
|
+
declare const MAIL_SUBJECT_MAX_LENGTH = 200;
|
|
2596
|
+
declare const MAIL_BODY_MAX_BYTES: number;
|
|
2597
|
+
declare const MAIL_SENDER_NAME_MAX_LENGTH = 80;
|
|
2598
|
+
/** The longest address RFC 5321 lets through a path. */
|
|
2599
|
+
declare const MAIL_ADDRESS_MAX_LENGTH = 254;
|
|
2600
|
+
/** `infrastructure.mail.outbound.limits` unless release config sets them; only it raises them. */
|
|
2601
|
+
declare const MAIL_OUTBOUND_DEFAULT_LIMITS: {
|
|
2602
|
+
readonly perWorkflowPerHour: 200;
|
|
2603
|
+
readonly perInstancePerDay: 1000;
|
|
2604
|
+
};
|
|
2605
|
+
/** One language's legal footer (§ 37a HGB company details), as plain text. */
|
|
2606
|
+
declare const MAIL_OUTBOUND_FOOTER_MAX_LENGTH = 2000;
|
|
2607
|
+
/** `mail.sent` names at most this many distinct recipient domains, then counts the rest. */
|
|
2608
|
+
declare const MAIL_AUDIT_MAX_DOMAINS = 10;
|
|
2609
|
+
/** Reserved for MAIL-4: Managed Files and datasets of the run, together. */
|
|
2610
|
+
declare const MAIL_ATTACHMENTS_MAX_FILES = 10;
|
|
2611
|
+
declare const MAIL_ATTACHMENTS_MAX_BYTES: number;
|
|
2612
|
+
/**
|
|
2613
|
+
* Why `mail.send` refused or failed a mail, as `details.reason` of a VALIDATION_FAILED and as
|
|
2614
|
+
* the code of a failed step. None is retried.
|
|
2615
|
+
* - `recipient_not_allowed`: an address outside `recipientDomains` that is not a person of the
|
|
2616
|
+
* instance, or such a `replyTo`. `details.domain` names its domain. Nothing is sent to any
|
|
2617
|
+
* recipient of the mail.
|
|
2618
|
+
* - `no_recipient`: `to` named people or workspaces, and none of them has an address.
|
|
2619
|
+
* - `workspace_not_allowed`: a `{ workspace }` recipient is not a Shared Workspace the author
|
|
2620
|
+
* of the mail can see: they are no member of it and no instance admin (MAIL-2). The author
|
|
2621
|
+
* is the person who saves, publishes or tests the Workflow, or for whom an agent calls; in a
|
|
2622
|
+
* published run, its publisher. Nothing is sent and no member of it is named.
|
|
2623
|
+
* - `mail_rejected`: the provider refused the mail before accepting it. `details.providerCode`
|
|
2624
|
+
* holds the provider's own code; its text is never kept.
|
|
2625
|
+
* A transient failure is not one of these: a refused connection is retried by the step's
|
|
2626
|
+
* attempts, and an answer lost after the request left is `operation_interrupted`.
|
|
2627
|
+
*/
|
|
2628
|
+
declare const MAIL_SEND_ERROR_CODES: {
|
|
2629
|
+
readonly recipientNotAllowed: "recipient_not_allowed";
|
|
2630
|
+
readonly noRecipient: "no_recipient";
|
|
2631
|
+
readonly mailRejected: "mail_rejected";
|
|
2632
|
+
readonly workspaceNotAllowed: "workspace_not_allowed";
|
|
2633
|
+
};
|
|
2634
|
+
type MailSendErrorCode = (typeof MAIL_SEND_ERROR_CODES)[keyof typeof MAIL_SEND_ERROR_CODES];
|
|
2635
|
+
declare const MAIL_SEND_REFUSAL_REASONS: readonly ["recipient_not_allowed", "no_recipient", "mail_rejected", "workspace_not_allowed"];
|
|
2636
|
+
/** `details` of a refused `mail.send`: the one refused domain, or the provider's code. */
|
|
2637
|
+
declare const mailSendRefusalDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2638
|
+
reason: z.ZodLiteral<"recipient_not_allowed">;
|
|
2639
|
+
domain: z.ZodString;
|
|
2640
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2641
|
+
reason: z.ZodLiteral<"no_recipient">;
|
|
2642
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2643
|
+
reason: z.ZodLiteral<"workspace_not_allowed">;
|
|
2644
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2645
|
+
reason: z.ZodLiteral<"mail_rejected">;
|
|
2646
|
+
providerCode: z.ZodOptional<z.ZodString>;
|
|
2647
|
+
}, z.core.$strict>], "reason">;
|
|
2648
|
+
type MailSendRefusalDetails = z.infer<typeof mailSendRefusalDetailsSchema>;
|
|
2649
|
+
/** A user or workspace id, as `NOTICE_ID_PATTERN` of core reads it. */
|
|
2650
|
+
declare const MAIL_RECIPIENT_ID_PATTERN: RegExp;
|
|
2651
|
+
/** One address as written. Its domain is compared without regard to case. */
|
|
2652
|
+
declare const mailAddressSchema: z.ZodEmail;
|
|
2653
|
+
/**
|
|
2654
|
+
* A domain of `recipientDomains`, lowercase: `kanzlei.de` matches that domain only,
|
|
2655
|
+
* `*.kanzlei.de` its subdomains and not the domain itself. `*` alone admits every address.
|
|
2656
|
+
*/
|
|
2657
|
+
declare const MAIL_RECIPIENT_DOMAIN_PATTERN: RegExp;
|
|
2658
|
+
declare const MAIL_RECIPIENT_DOMAINS_ANY = "*";
|
|
2659
|
+
declare const mailRecipientDomainSchema: z.ZodString;
|
|
2660
|
+
/**
|
|
2661
|
+
* Which sender the mail goes out as. `system` until MAIL-M365S; `connection.<name>` is
|
|
2662
|
+
* reserved and refused with `not_supported_yet`.
|
|
2663
|
+
*/
|
|
2664
|
+
declare const mailSenderIdSchema: z.ZodUnion<readonly [z.ZodLiteral<"system">, z.ZodTemplateLiteral<`connection.${string}`>]>;
|
|
2665
|
+
type MailSenderId = typeof MAIL_SENDER_SYSTEM | `connection.${string}`;
|
|
2666
|
+
/**
|
|
2667
|
+
* One recipient of a literal list: an address, a person of the instance by id, or a workspace,
|
|
2668
|
+
* which stands for its members. A person or member without an address is skipped and counted.
|
|
2669
|
+
*/
|
|
2670
|
+
declare const mailRecipientSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2671
|
+
address: z.ZodEmail;
|
|
2672
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2673
|
+
user: z.ZodString;
|
|
2674
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2675
|
+
workspace: z.ZodString;
|
|
2676
|
+
}, z.core.$strict>]>;
|
|
2677
|
+
type MailSendRecipient = z.infer<typeof mailRecipientSchema>;
|
|
2678
|
+
declare const mailRecipientListSchema: z.ZodUnion<readonly [z.ZodEmail, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodUnion<readonly [z.ZodObject<{
|
|
2679
|
+
address: z.ZodEmail;
|
|
2680
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2681
|
+
user: z.ZodString;
|
|
2682
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2683
|
+
workspace: z.ZodString;
|
|
2684
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
2685
|
+
email: z.ZodEmail;
|
|
2686
|
+
}, z.core.$loose>]>>]>;
|
|
2687
|
+
type MailSendRecipientList = z.infer<typeof mailRecipientListSchema>;
|
|
2688
|
+
/**
|
|
2689
|
+
* What `cc` and `bcc` take: as `to`, and an empty list too, since a referenced list of copy
|
|
2690
|
+
* recipients may hold nobody and the mail still goes to `to`.
|
|
2691
|
+
*/
|
|
2692
|
+
declare const mailCopyRecipientListSchema: z.ZodUnion<readonly [z.ZodEmail, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodUnion<readonly [z.ZodObject<{
|
|
2693
|
+
address: z.ZodEmail;
|
|
2694
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2695
|
+
user: z.ZodString;
|
|
2696
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2697
|
+
workspace: z.ZodString;
|
|
2698
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
2699
|
+
email: z.ZodEmail;
|
|
2700
|
+
}, z.core.$loose>]>>]>;
|
|
2701
|
+
/** One address, or a person of the instance. The recipient rule applies to it as to `to`. */
|
|
2702
|
+
declare const mailReplyToSchema: z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
|
|
2703
|
+
address: z.ZodEmail;
|
|
2704
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2705
|
+
user: z.ZodString;
|
|
2706
|
+
}, z.core.$strict>]>;
|
|
2707
|
+
/** One line of 1 to 200 characters with something besides spaces. */
|
|
2708
|
+
declare const mailSubjectSchema: z.ZodString;
|
|
2709
|
+
/**
|
|
2710
|
+
* The author's Markdown, rendered on the server: no raw HTML, no image, links over `https`,
|
|
2711
|
+
* `http` and `mailto` only. `format: markdown` is what makes a mapped field join lists and
|
|
2712
|
+
* tables (EW-TEXT) and escape every referenced value, and a field mapped as one reference show
|
|
2713
|
+
* each link's address after its label (MAIL-2).
|
|
2714
|
+
*/
|
|
2715
|
+
declare const mailBodySchema: z.ZodString;
|
|
2716
|
+
/** The display name on the From line. The address stays the sender's. */
|
|
2717
|
+
declare const mailSenderNameSchema: z.ZodString;
|
|
2718
|
+
/**
|
|
2719
|
+
* The input of `mail.send`, as the operation reads it after a step's mapping is resolved. Each
|
|
2720
|
+
* field of a step's mapping takes a literal, a reference or, for the strings, text joined
|
|
2721
|
+
* from parts (EW-TEXT). `attachments` arrives with MAIL-4 and is refused until then.
|
|
2722
|
+
*/
|
|
2723
|
+
declare const mailSendInputSchema: z.ZodObject<{
|
|
2724
|
+
sender: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"system">, z.ZodTemplateLiteral<`connection.${string}`>]>>;
|
|
2725
|
+
to: z.ZodUnion<readonly [z.ZodEmail, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodUnion<readonly [z.ZodObject<{
|
|
2726
|
+
address: z.ZodEmail;
|
|
2727
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2728
|
+
user: z.ZodString;
|
|
2729
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2730
|
+
workspace: z.ZodString;
|
|
2731
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
2732
|
+
email: z.ZodEmail;
|
|
2733
|
+
}, z.core.$loose>]>>]>;
|
|
2734
|
+
cc: z.ZodOptional<z.ZodUnion<readonly [z.ZodEmail, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodUnion<readonly [z.ZodObject<{
|
|
2735
|
+
address: z.ZodEmail;
|
|
2736
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2737
|
+
user: z.ZodString;
|
|
2738
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2739
|
+
workspace: z.ZodString;
|
|
2740
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
2741
|
+
email: z.ZodEmail;
|
|
2742
|
+
}, z.core.$loose>]>>]>>;
|
|
2743
|
+
bcc: z.ZodOptional<z.ZodUnion<readonly [z.ZodEmail, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodUnion<readonly [z.ZodObject<{
|
|
2744
|
+
address: z.ZodEmail;
|
|
2745
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2746
|
+
user: z.ZodString;
|
|
2747
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2748
|
+
workspace: z.ZodString;
|
|
2749
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
2750
|
+
email: z.ZodEmail;
|
|
2751
|
+
}, z.core.$loose>]>>]>>;
|
|
2752
|
+
subject: z.ZodString;
|
|
2753
|
+
body: z.ZodString;
|
|
2754
|
+
senderName: z.ZodOptional<z.ZodString>;
|
|
2755
|
+
replyTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
|
|
2756
|
+
address: z.ZodEmail;
|
|
2757
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2758
|
+
user: z.ZodString;
|
|
2759
|
+
}, z.core.$strict>]>>;
|
|
2760
|
+
locale: z.ZodOptional<z.ZodEnum<{
|
|
2761
|
+
en: "en";
|
|
2762
|
+
de: "de";
|
|
2763
|
+
}>>;
|
|
2764
|
+
}, z.core.$strict>;
|
|
2765
|
+
type MailSendInput = z.infer<typeof mailSendInputSchema>;
|
|
2766
|
+
type MailSendInputFields = z.input<typeof mailSendInputSchema>;
|
|
2767
|
+
/**
|
|
2768
|
+
* What a live or test send answers: counts and the provider's message id, never an address.
|
|
2769
|
+
* `skipped` counts people and members without an address. `test` marks "Run live once",
|
|
2770
|
+
* which sent to the tester alone.
|
|
2771
|
+
*/
|
|
2772
|
+
declare const mailSendOutputSchema: z.ZodObject<{
|
|
2773
|
+
sentAt: z.ZodISODateTime;
|
|
2774
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
2775
|
+
recipients: z.ZodObject<{
|
|
2776
|
+
to: z.ZodNumber;
|
|
2777
|
+
cc: z.ZodNumber;
|
|
2778
|
+
bcc: z.ZodNumber;
|
|
2779
|
+
}, z.core.$strict>;
|
|
2780
|
+
skipped: z.ZodNumber;
|
|
2781
|
+
test: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2782
|
+
}, z.core.$strict>;
|
|
2783
|
+
type MailSendOutput = z.infer<typeof mailSendOutputSchema>;
|
|
2784
|
+
/** A recipient as a preview names it: a person by name, an address as written. */
|
|
2785
|
+
declare const mailPreviewRecipientSchema: z.ZodObject<{
|
|
2786
|
+
kind: z.ZodEnum<{
|
|
2787
|
+
person: "person";
|
|
2788
|
+
address: "address";
|
|
2789
|
+
}>;
|
|
2790
|
+
label: z.ZodString;
|
|
2791
|
+
}, z.core.$strict>;
|
|
2792
|
+
type MailPreviewRecipient = z.infer<typeof mailPreviewRecipientSchema>;
|
|
2793
|
+
/**
|
|
2794
|
+
* The mail as it would go out, checked against the recipient rule. It is step data of a test
|
|
2795
|
+
* run and the confirmation card's content; it is never audit data.
|
|
2796
|
+
*/
|
|
2797
|
+
declare const mailSendPreviewSchema: z.ZodObject<{
|
|
2798
|
+
from: z.ZodObject<{
|
|
2799
|
+
name: z.ZodString;
|
|
2800
|
+
address: z.ZodEmail;
|
|
2801
|
+
}, z.core.$strict>;
|
|
2802
|
+
replyTo: z.ZodOptional<z.ZodEmail>;
|
|
2803
|
+
to: z.ZodArray<z.ZodObject<{
|
|
2804
|
+
kind: z.ZodEnum<{
|
|
2805
|
+
person: "person";
|
|
2806
|
+
address: "address";
|
|
2807
|
+
}>;
|
|
2808
|
+
label: z.ZodString;
|
|
2809
|
+
}, z.core.$strict>>;
|
|
2810
|
+
cc: z.ZodArray<z.ZodObject<{
|
|
2811
|
+
kind: z.ZodEnum<{
|
|
2812
|
+
person: "person";
|
|
2813
|
+
address: "address";
|
|
2814
|
+
}>;
|
|
2815
|
+
label: z.ZodString;
|
|
2816
|
+
}, z.core.$strict>>;
|
|
2817
|
+
bcc: z.ZodArray<z.ZodObject<{
|
|
2818
|
+
kind: z.ZodEnum<{
|
|
2819
|
+
person: "person";
|
|
2820
|
+
address: "address";
|
|
2821
|
+
}>;
|
|
2822
|
+
label: z.ZodString;
|
|
2823
|
+
}, z.core.$strict>>;
|
|
2824
|
+
skipped: z.ZodNumber;
|
|
2825
|
+
subject: z.ZodString;
|
|
2826
|
+
html: z.ZodString;
|
|
2827
|
+
text: z.ZodString;
|
|
2828
|
+
}, z.core.$strict>;
|
|
2829
|
+
type MailSendPreview = z.infer<typeof mailSendPreviewSchema>;
|
|
2830
|
+
/** What a simulated call (a test run's `dry_run`, an agent preview turn) answers. */
|
|
2831
|
+
declare const mailSendSimulatedOutputSchema: z.ZodObject<{
|
|
2832
|
+
simulated: z.ZodLiteral<true>;
|
|
2833
|
+
preview: z.ZodObject<{
|
|
2834
|
+
from: z.ZodObject<{
|
|
2835
|
+
name: z.ZodString;
|
|
2836
|
+
address: z.ZodEmail;
|
|
2837
|
+
}, z.core.$strict>;
|
|
2838
|
+
replyTo: z.ZodOptional<z.ZodEmail>;
|
|
2839
|
+
to: z.ZodArray<z.ZodObject<{
|
|
2840
|
+
kind: z.ZodEnum<{
|
|
2841
|
+
person: "person";
|
|
2842
|
+
address: "address";
|
|
2843
|
+
}>;
|
|
2844
|
+
label: z.ZodString;
|
|
2845
|
+
}, z.core.$strict>>;
|
|
2846
|
+
cc: z.ZodArray<z.ZodObject<{
|
|
2847
|
+
kind: z.ZodEnum<{
|
|
2848
|
+
person: "person";
|
|
2849
|
+
address: "address";
|
|
2850
|
+
}>;
|
|
2851
|
+
label: z.ZodString;
|
|
2852
|
+
}, z.core.$strict>>;
|
|
2853
|
+
bcc: z.ZodArray<z.ZodObject<{
|
|
2854
|
+
kind: z.ZodEnum<{
|
|
2855
|
+
person: "person";
|
|
2856
|
+
address: "address";
|
|
2857
|
+
}>;
|
|
2858
|
+
label: z.ZodString;
|
|
2859
|
+
}, z.core.$strict>>;
|
|
2860
|
+
skipped: z.ZodNumber;
|
|
2861
|
+
subject: z.ZodString;
|
|
2862
|
+
html: z.ZodString;
|
|
2863
|
+
text: z.ZodString;
|
|
2864
|
+
}, z.core.$strict>;
|
|
2865
|
+
}, z.core.$strict>;
|
|
2866
|
+
type MailSendSimulatedOutput = z.infer<typeof mailSendSimulatedOutputSchema>;
|
|
2867
|
+
/**
|
|
2868
|
+
* The params of the template `workflow-message`, per mail. The frame (the instance's name,
|
|
2869
|
+
* embedded logo, accent colour and `outbound.footer`) is the instance's and not a param; the
|
|
2870
|
+
* envelope (From name, to, cc, bcc, Reply-To) is the message's and not a param either.
|
|
2871
|
+
* `markdown` arrives with every joined referenced value already escaped, and a body mapped as
|
|
2872
|
+
* one reference with each link's address shown. `test` puts "[Test]" before
|
|
2873
|
+
* the subject and lists whom the mail would have reached.
|
|
2874
|
+
*/
|
|
2875
|
+
declare const workflowMessageMailParamsSchema: z.ZodObject<{
|
|
2876
|
+
subject: z.ZodString;
|
|
2877
|
+
markdown: z.ZodString;
|
|
2878
|
+
sentBy: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2879
|
+
kind: z.ZodLiteral<"workflow">;
|
|
2880
|
+
workflowName: z.ZodString;
|
|
2881
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2882
|
+
kind: z.ZodLiteral<"agent">;
|
|
2883
|
+
onBehalfOf: z.ZodString;
|
|
2884
|
+
}, z.core.$strict>], "kind">;
|
|
2885
|
+
test: z.ZodOptional<z.ZodObject<{
|
|
2886
|
+
intendedRecipients: z.ZodObject<{
|
|
2887
|
+
to: z.ZodArray<z.ZodObject<{
|
|
2888
|
+
kind: z.ZodEnum<{
|
|
2889
|
+
person: "person";
|
|
2890
|
+
address: "address";
|
|
2891
|
+
}>;
|
|
2892
|
+
label: z.ZodString;
|
|
2893
|
+
}, z.core.$strict>>;
|
|
2894
|
+
cc: z.ZodArray<z.ZodObject<{
|
|
2895
|
+
kind: z.ZodEnum<{
|
|
2896
|
+
person: "person";
|
|
2897
|
+
address: "address";
|
|
2898
|
+
}>;
|
|
2899
|
+
label: z.ZodString;
|
|
2900
|
+
}, z.core.$strict>>;
|
|
2901
|
+
bcc: z.ZodArray<z.ZodObject<{
|
|
2902
|
+
kind: z.ZodEnum<{
|
|
2903
|
+
person: "person";
|
|
2904
|
+
address: "address";
|
|
2905
|
+
}>;
|
|
2906
|
+
label: z.ZodString;
|
|
2907
|
+
}, z.core.$strict>>;
|
|
2908
|
+
}, z.core.$strict>;
|
|
2909
|
+
}, z.core.$strict>>;
|
|
2910
|
+
}, z.core.$strict>;
|
|
2911
|
+
type WorkflowMessageMailParams = z.infer<typeof workflowMessageMailParamsSchema>;
|
|
2912
|
+
/**
|
|
2913
|
+
* What the step facts of a `mail.send` step carry beside `source { kind: "mail_sender", title,
|
|
2914
|
+
* service }`, where `service` is the icon key: the sender's address and the instance's
|
|
2915
|
+
* `recipientDomains`, so the panel marks an address a run would refuse.
|
|
2916
|
+
*/
|
|
2917
|
+
declare const workflowMailSenderFactSchema: z.ZodObject<{
|
|
2918
|
+
sender: z.ZodString;
|
|
2919
|
+
title: z.ZodString;
|
|
2920
|
+
icon: z.ZodString;
|
|
2921
|
+
address: z.ZodEmail;
|
|
2922
|
+
recipientDomains: z.ZodArray<z.ZodString>;
|
|
2923
|
+
}, z.core.$strict>;
|
|
2924
|
+
type WorkflowMailSenderFact = z.infer<typeof workflowMailSenderFactSchema>;
|
|
2925
|
+
/** Contract only: MAIL-1 registers the operation while `outbound.enabled` is true. */
|
|
2926
|
+
declare const mailSendContract: {
|
|
2927
|
+
readonly name: "mail.send";
|
|
2928
|
+
readonly description: "Send one e-mail as a sender of the instance (system unless set). Recipients are addresses, people of the instance and workspaces; an address outside the instance's recipient domains is refused. The body is Markdown in the instance's frame. A test run previews the mail and sends nothing.";
|
|
2929
|
+
readonly inputSchema: z.ZodObject<{
|
|
2930
|
+
sender: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"system">, z.ZodTemplateLiteral<`connection.${string}`>]>>;
|
|
2931
|
+
to: z.ZodUnion<readonly [z.ZodEmail, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodUnion<readonly [z.ZodObject<{
|
|
2932
|
+
address: z.ZodEmail;
|
|
2933
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2934
|
+
user: z.ZodString;
|
|
2935
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2936
|
+
workspace: z.ZodString;
|
|
2937
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
2938
|
+
email: z.ZodEmail;
|
|
2939
|
+
}, z.core.$loose>]>>]>;
|
|
2940
|
+
cc: z.ZodOptional<z.ZodUnion<readonly [z.ZodEmail, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodUnion<readonly [z.ZodObject<{
|
|
2941
|
+
address: z.ZodEmail;
|
|
2942
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2943
|
+
user: z.ZodString;
|
|
2944
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2945
|
+
workspace: z.ZodString;
|
|
2946
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
2947
|
+
email: z.ZodEmail;
|
|
2948
|
+
}, z.core.$loose>]>>]>>;
|
|
2949
|
+
bcc: z.ZodOptional<z.ZodUnion<readonly [z.ZodEmail, z.ZodArray<z.ZodUnion<readonly [z.ZodEmail, z.ZodUnion<readonly [z.ZodObject<{
|
|
2950
|
+
address: z.ZodEmail;
|
|
2951
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2952
|
+
user: z.ZodString;
|
|
2953
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2954
|
+
workspace: z.ZodString;
|
|
2955
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
2956
|
+
email: z.ZodEmail;
|
|
2957
|
+
}, z.core.$loose>]>>]>>;
|
|
2958
|
+
subject: z.ZodString;
|
|
2959
|
+
body: z.ZodString;
|
|
2960
|
+
senderName: z.ZodOptional<z.ZodString>;
|
|
2961
|
+
replyTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodEmail, z.ZodObject<{
|
|
2962
|
+
address: z.ZodEmail;
|
|
2963
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2964
|
+
user: z.ZodString;
|
|
2965
|
+
}, z.core.$strict>]>>;
|
|
2966
|
+
locale: z.ZodOptional<z.ZodEnum<{
|
|
2967
|
+
en: "en";
|
|
2968
|
+
de: "de";
|
|
2969
|
+
}>>;
|
|
2970
|
+
}, z.core.$strict>;
|
|
2971
|
+
readonly outputSchema: z.ZodObject<{
|
|
2972
|
+
sentAt: z.ZodISODateTime;
|
|
2973
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
2974
|
+
recipients: z.ZodObject<{
|
|
2975
|
+
to: z.ZodNumber;
|
|
2976
|
+
cc: z.ZodNumber;
|
|
2977
|
+
bcc: z.ZodNumber;
|
|
2978
|
+
}, z.core.$strict>;
|
|
2979
|
+
skipped: z.ZodNumber;
|
|
2980
|
+
test: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2981
|
+
}, z.core.$strict>;
|
|
2982
|
+
readonly simulatedOutputSchema: z.ZodObject<{
|
|
2983
|
+
simulated: z.ZodLiteral<true>;
|
|
2984
|
+
preview: z.ZodObject<{
|
|
2985
|
+
from: z.ZodObject<{
|
|
2986
|
+
name: z.ZodString;
|
|
2987
|
+
address: z.ZodEmail;
|
|
2988
|
+
}, z.core.$strict>;
|
|
2989
|
+
replyTo: z.ZodOptional<z.ZodEmail>;
|
|
2990
|
+
to: z.ZodArray<z.ZodObject<{
|
|
2991
|
+
kind: z.ZodEnum<{
|
|
2992
|
+
person: "person";
|
|
2993
|
+
address: "address";
|
|
2994
|
+
}>;
|
|
2995
|
+
label: z.ZodString;
|
|
2996
|
+
}, z.core.$strict>>;
|
|
2997
|
+
cc: z.ZodArray<z.ZodObject<{
|
|
2998
|
+
kind: z.ZodEnum<{
|
|
2999
|
+
person: "person";
|
|
3000
|
+
address: "address";
|
|
3001
|
+
}>;
|
|
3002
|
+
label: z.ZodString;
|
|
3003
|
+
}, z.core.$strict>>;
|
|
3004
|
+
bcc: z.ZodArray<z.ZodObject<{
|
|
3005
|
+
kind: z.ZodEnum<{
|
|
3006
|
+
person: "person";
|
|
3007
|
+
address: "address";
|
|
3008
|
+
}>;
|
|
3009
|
+
label: z.ZodString;
|
|
3010
|
+
}, z.core.$strict>>;
|
|
3011
|
+
skipped: z.ZodNumber;
|
|
3012
|
+
subject: z.ZodString;
|
|
3013
|
+
html: z.ZodString;
|
|
3014
|
+
text: z.ZodString;
|
|
3015
|
+
}, z.core.$strict>;
|
|
3016
|
+
}, z.core.$strict>;
|
|
3017
|
+
readonly effect: "changing";
|
|
3018
|
+
readonly changeClass: "outward";
|
|
3019
|
+
readonly right: "mail_sender.use";
|
|
3020
|
+
readonly resourceKind: "mail_sender";
|
|
3021
|
+
readonly events: {
|
|
3022
|
+
readonly after: "mail.sent";
|
|
3023
|
+
readonly refused: "mail.refused";
|
|
3024
|
+
};
|
|
3025
|
+
readonly errorCodes: {
|
|
3026
|
+
readonly recipientNotAllowed: "recipient_not_allowed";
|
|
3027
|
+
readonly noRecipient: "no_recipient";
|
|
3028
|
+
readonly mailRejected: "mail_rejected";
|
|
3029
|
+
readonly workspaceNotAllowed: "workspace_not_allowed";
|
|
3030
|
+
};
|
|
3031
|
+
};
|
|
3032
|
+
|
|
3033
|
+
/** One instance's data separation dimension. SCOPE-1 serves one dimension. */
|
|
3034
|
+
declare const dataScopeNameSchema: z.ZodString;
|
|
3035
|
+
declare const dataScopesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3036
|
+
label: z.ZodString;
|
|
3037
|
+
valueType: z.ZodLiteral<"text">;
|
|
3038
|
+
}, z.core.$strict>>;
|
|
3039
|
+
type DataScopes = z.infer<typeof dataScopesSchema>;
|
|
3040
|
+
declare const scopeAssignmentInputSchema: z.ZodObject<{
|
|
3041
|
+
dimension: z.ZodString;
|
|
3042
|
+
holderKind: z.ZodEnum<{
|
|
3043
|
+
user: "user";
|
|
3044
|
+
service_principal: "service_principal";
|
|
3045
|
+
group: "group";
|
|
3046
|
+
}>;
|
|
3047
|
+
holderId: z.ZodString;
|
|
3048
|
+
effect: z.ZodEnum<{
|
|
3049
|
+
allow: "allow";
|
|
3050
|
+
deny: "deny";
|
|
3051
|
+
}>;
|
|
3052
|
+
values: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>;
|
|
3053
|
+
}, z.core.$strict>;
|
|
3054
|
+
type ScopeAssignmentInput = z.infer<typeof scopeAssignmentInputSchema>;
|
|
3055
|
+
declare const scopedTablesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3056
|
+
scope: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
3057
|
+
}, z.core.$strict>>;
|
|
3058
|
+
type ScopedTables = z.infer<typeof scopedTablesSchema>;
|
|
3059
|
+
|
|
3060
|
+
/** The longest comment. */
|
|
3061
|
+
declare const FEEDBACK_TEXT_MAX_LENGTH = 4000;
|
|
3062
|
+
/** The longest machine-written summary and category a workflow stores on a comment. */
|
|
3063
|
+
declare const FEEDBACK_SUMMARY_MAX_LENGTH = 1000;
|
|
3064
|
+
declare const FEEDBACK_CATEGORY_MAX_LENGTH = 60;
|
|
3065
|
+
/** The longest note a reviewer leaves when marking a comment handled. */
|
|
3066
|
+
declare const FEEDBACK_NOTE_MAX_LENGTH = 2000;
|
|
3067
|
+
/**
|
|
3068
|
+
* What a comment is about: an agent's answer (LU-4), an App a person uses, and the result of a
|
|
3069
|
+
* Workflow run that reached a person's Inbox (LU-6).
|
|
3070
|
+
*/
|
|
3071
|
+
declare const FEEDBACK_SUBJECT_KINDS: readonly ["message", "app", "workflow_run"];
|
|
3072
|
+
type FeedbackSubjectKind = (typeof FEEDBACK_SUBJECT_KINDS)[number];
|
|
3073
|
+
/** The kinds of asset a comment is about: an agent, an App, a Workflow. */
|
|
3074
|
+
declare const FEEDBACK_ASSET_KINDS: readonly ["agent", "app", "workflow"];
|
|
3075
|
+
type FeedbackAssetKind = (typeof FEEDBACK_ASSET_KINDS)[number];
|
|
3076
|
+
declare const FEEDBACK_STATES: readonly ["new", "handled"];
|
|
3077
|
+
type FeedbackState = (typeof FEEDBACK_STATES)[number];
|
|
3078
|
+
|
|
3079
|
+
/** The longest note a person adds to a report. It goes into the mail and is kept nowhere. */
|
|
3080
|
+
declare const PLATFORM_REPORT_NOTE_MAX_LENGTH = 2000;
|
|
3081
|
+
|
|
3082
|
+
/** The source of an operation. A source the caller may not read is told by its kind alone. */
|
|
3083
|
+
declare const operationSourceSchema: z.ZodObject<{
|
|
3084
|
+
kind: z.ZodEnum<{
|
|
3085
|
+
workflow: "workflow";
|
|
3086
|
+
other: "other";
|
|
3087
|
+
connection: "connection";
|
|
3088
|
+
data_store: "data_store";
|
|
3089
|
+
knowledge_base: "knowledge_base";
|
|
3090
|
+
}>;
|
|
3091
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3092
|
+
service: z.ZodOptional<z.ZodString>;
|
|
3093
|
+
}, z.core.$strip>;
|
|
3094
|
+
type OperationSourceView = z.infer<typeof operationSourceSchema>;
|
|
3095
|
+
declare const callableOperationSchema: z.ZodObject<{
|
|
3096
|
+
name: z.ZodString;
|
|
3097
|
+
effect: z.ZodEnum<{
|
|
3098
|
+
reading: "reading";
|
|
3099
|
+
changing: "changing";
|
|
3100
|
+
}>;
|
|
3101
|
+
title: z.ZodString;
|
|
3102
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3103
|
+
source: z.ZodObject<{
|
|
3104
|
+
kind: z.ZodEnum<{
|
|
3105
|
+
workflow: "workflow";
|
|
3106
|
+
other: "other";
|
|
3107
|
+
connection: "connection";
|
|
3108
|
+
data_store: "data_store";
|
|
3109
|
+
knowledge_base: "knowledge_base";
|
|
3110
|
+
}>;
|
|
3111
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3112
|
+
service: z.ZodOptional<z.ZodString>;
|
|
3113
|
+
}, z.core.$strip>;
|
|
3114
|
+
available: z.ZodBoolean;
|
|
3115
|
+
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3116
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3117
|
+
}, z.core.$strip>;
|
|
3118
|
+
type CallableOperationView = z.infer<typeof callableOperationSchema>;
|
|
3119
|
+
/** One page of callable operations. */
|
|
3120
|
+
declare const callableOperationsPageSchema: z.ZodObject<{
|
|
3121
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
3122
|
+
name: z.ZodString;
|
|
3123
|
+
effect: z.ZodEnum<{
|
|
3124
|
+
reading: "reading";
|
|
3125
|
+
changing: "changing";
|
|
3126
|
+
}>;
|
|
3127
|
+
title: z.ZodString;
|
|
3128
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3129
|
+
source: z.ZodObject<{
|
|
3130
|
+
kind: z.ZodEnum<{
|
|
3131
|
+
workflow: "workflow";
|
|
3132
|
+
other: "other";
|
|
3133
|
+
connection: "connection";
|
|
3134
|
+
data_store: "data_store";
|
|
3135
|
+
knowledge_base: "knowledge_base";
|
|
3136
|
+
}>;
|
|
3137
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3138
|
+
service: z.ZodOptional<z.ZodString>;
|
|
3139
|
+
}, z.core.$strip>;
|
|
3140
|
+
available: z.ZodBoolean;
|
|
3141
|
+
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3142
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3143
|
+
}, z.core.$strip>>;
|
|
3144
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
3145
|
+
truncated: z.ZodBoolean;
|
|
3146
|
+
}, z.core.$strip>;
|
|
3147
|
+
type CallableOperationsPage = z.infer<typeof callableOperationsPageSchema>;
|
|
3148
|
+
|
|
3149
|
+
/** The tool a run calls to look at the preview. */
|
|
3150
|
+
declare const PREVIEW_CAPTURE_TOOL_NAME = "preview.capture";
|
|
3151
|
+
/** The widest picture, in pixels at device pixel ratio 1. A wider preview is scaled down. */
|
|
3152
|
+
declare const PREVIEW_CAPTURE_MAX_WIDTH = 1280;
|
|
3153
|
+
/** The tallest picture. A longer page is cut there. */
|
|
3154
|
+
declare const PREVIEW_CAPTURE_MAX_HEIGHT = 1600;
|
|
3155
|
+
/** The largest picture, in bytes. */
|
|
3156
|
+
declare const PREVIEW_CAPTURE_MAX_BYTES = 400000;
|
|
3157
|
+
/** Pictures one run may take. */
|
|
3158
|
+
declare const PREVIEW_CAPTURES_PER_RUN = 3;
|
|
3159
|
+
/** Pictures one person's runs may take in an hour. */
|
|
3160
|
+
declare const PREVIEW_CAPTURES_PER_HOUR = 20;
|
|
3161
|
+
/** How long a run waits for the person's browser to answer. */
|
|
3162
|
+
declare const PREVIEW_CAPTURE_WAIT_MS = 10000;
|
|
3163
|
+
/**
|
|
3164
|
+
* Why no picture was taken:
|
|
3165
|
+
* - `capture_limit`: the run or the person took as many as they may.
|
|
3166
|
+
* - `capture_unavailable`: the browser cannot draw the preview into a picture, as in Safari.
|
|
3167
|
+
* - `preview_not_viewed`: the person has no preview of the conversation open, or it did not answer.
|
|
3168
|
+
* - `preview_personal_data`: the preview reaches data through a personal connection.
|
|
3169
|
+
*/
|
|
3170
|
+
declare const PREVIEW_CAPTURE_REFUSALS: readonly ["capture_limit", "capture_unavailable", "preview_not_viewed", "preview_personal_data"];
|
|
3171
|
+
type PreviewCaptureRefusal = (typeof PREVIEW_CAPTURE_REFUSALS)[number];
|
|
3172
|
+
/**
|
|
3173
|
+
* The size of a WebP image as its header states it, or nothing when the bytes are no complete
|
|
3174
|
+
* WebP file: a RIFF container of type WEBP whose length is the file's, with a `VP8 `, `VP8L`
|
|
3175
|
+
* or still `VP8X` chunk. The image is not decoded.
|
|
3176
|
+
*/
|
|
3177
|
+
declare function readWebpSize(bytes: Uint8Array): {
|
|
3178
|
+
width: number;
|
|
3179
|
+
height: number;
|
|
3180
|
+
} | undefined;
|
|
3181
|
+
/** Whether bytes are a WebP picture within the bounds of a capture. */
|
|
3182
|
+
declare function isPreviewCaptureWithinBounds(bytes: Uint8Array): {
|
|
3183
|
+
width: number;
|
|
3184
|
+
height: number;
|
|
3185
|
+
} | undefined;
|
|
3186
|
+
|
|
3187
|
+
/** Distinct entries a report lists. Repeats are counted, and entries past this are counted. */
|
|
3188
|
+
declare const PREVIEW_REPORT_MAX_ENTRIES = 10;
|
|
3189
|
+
/** The longest message an entry keeps, after scrubbing. */
|
|
3190
|
+
declare const PREVIEW_REPORT_MAX_MESSAGE_CHARS = 200;
|
|
3191
|
+
/** The longest report, as UTF-8 JSON. Entries that do not fit are counted, not listed. */
|
|
3192
|
+
declare const PREVIEW_REPORT_MAX_BYTES = 2048;
|
|
3193
|
+
/** How long a report is kept after it was last written. */
|
|
3194
|
+
declare const PREVIEW_REPORT_KEEP_MS: number;
|
|
3195
|
+
/**
|
|
3196
|
+
* What an entry is: an uncaught error, an unhandled rejection, a `console.error`, a content
|
|
3197
|
+
* policy violation, or a call of the page that failed (by action name and refusal code).
|
|
3198
|
+
*/
|
|
3199
|
+
declare const PREVIEW_REPORT_ENTRY_KINDS: readonly ["error", "rejection", "console", "policy", "call"];
|
|
3200
|
+
type PreviewReportEntryKind = (typeof PREVIEW_REPORT_ENTRY_KINDS)[number];
|
|
3201
|
+
/**
|
|
3202
|
+
* Whether the kit greeted: within 5 seconds of the frame loading, not (yet) while the frame is
|
|
3203
|
+
* young, not at all, or the folder does not use the kit, which the build records.
|
|
3204
|
+
*/
|
|
3205
|
+
declare const PREVIEW_REPORT_BRIDGE_STATES: readonly ["connected", "waiting", "not_connected", "not_used"];
|
|
3206
|
+
type PreviewReportBridge = (typeof PREVIEW_REPORT_BRIDGE_STATES)[number];
|
|
3207
|
+
declare const previewReportEntrySchema: z.ZodObject<{
|
|
3208
|
+
kind: z.ZodEnum<{
|
|
3209
|
+
error: "error";
|
|
3210
|
+
rejection: "rejection";
|
|
3211
|
+
console: "console";
|
|
3212
|
+
policy: "policy";
|
|
3213
|
+
call: "call";
|
|
3214
|
+
}>;
|
|
3215
|
+
message: z.ZodString;
|
|
3216
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3217
|
+
file: z.ZodOptional<z.ZodString>;
|
|
3218
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
3219
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
3220
|
+
count: z.ZodNumber;
|
|
3221
|
+
}, z.core.$strict>;
|
|
3222
|
+
type PreviewReportEntry = z.infer<typeof previewReportEntrySchema>;
|
|
3223
|
+
declare const previewReportSchema: z.ZodObject<{
|
|
3224
|
+
settled: z.ZodBoolean;
|
|
3225
|
+
loaded: z.ZodBoolean;
|
|
3226
|
+
bridge: z.ZodEnum<{
|
|
3227
|
+
connected: "connected";
|
|
3228
|
+
not_connected: "not_connected";
|
|
3229
|
+
waiting: "waiting";
|
|
3230
|
+
not_used: "not_used";
|
|
3231
|
+
}>;
|
|
3232
|
+
empty: z.ZodOptional<z.ZodBoolean>;
|
|
3233
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
3234
|
+
kind: z.ZodEnum<{
|
|
3235
|
+
error: "error";
|
|
3236
|
+
rejection: "rejection";
|
|
3237
|
+
console: "console";
|
|
3238
|
+
policy: "policy";
|
|
3239
|
+
call: "call";
|
|
3240
|
+
}>;
|
|
3241
|
+
message: z.ZodString;
|
|
3242
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3243
|
+
file: z.ZodOptional<z.ZodString>;
|
|
3244
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
3245
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
3246
|
+
count: z.ZodNumber;
|
|
3247
|
+
}, z.core.$strict>>;
|
|
3248
|
+
more: z.ZodNumber;
|
|
3249
|
+
}, z.core.$strict>;
|
|
3250
|
+
type PreviewReport = z.infer<typeof previewReportSchema>;
|
|
3251
|
+
/** A report as it is put together, before it is scrubbed and bounded. */
|
|
3252
|
+
interface UnboundPreviewReport {
|
|
3253
|
+
settled: boolean;
|
|
3254
|
+
loaded: boolean;
|
|
3255
|
+
bridge: PreviewReportBridge;
|
|
3256
|
+
empty?: boolean | undefined;
|
|
3257
|
+
entries: readonly {
|
|
3258
|
+
kind: PreviewReportEntryKind;
|
|
3259
|
+
message: string;
|
|
3260
|
+
code?: string | undefined;
|
|
3261
|
+
file?: string | undefined;
|
|
3262
|
+
line?: number | undefined;
|
|
3263
|
+
column?: number | undefined;
|
|
3264
|
+
count: number;
|
|
3265
|
+
}[];
|
|
3266
|
+
more?: number | undefined;
|
|
3267
|
+
}
|
|
3268
|
+
/**
|
|
3269
|
+
* A message as a report may keep it: long quoted text, the query of an address, mail
|
|
3270
|
+
* addresses, IBANs and digit runs become `…`, and at most 200 characters remain. The same text
|
|
3271
|
+
* scrubbed twice reads the same.
|
|
3272
|
+
*/
|
|
3273
|
+
declare function scrubPreviewText(text: string): string;
|
|
3274
|
+
/**
|
|
3275
|
+
* Where an entry came from, as a report may keep it: a path relative to the page, a kit file as
|
|
3276
|
+
* its path on the instance, or `inline`. Never an origin, a query or the token of the frame's
|
|
3277
|
+
* address. Anything else is dropped.
|
|
3278
|
+
*/
|
|
3279
|
+
declare function scrubPreviewFile(file: string | undefined): string | undefined;
|
|
3280
|
+
/**
|
|
3281
|
+
* The report as it may be kept: every message and file scrubbed, entries that read the same
|
|
3282
|
+
* afterwards merged with their counts added, at most 10 entries, at most 2 KB. What does not
|
|
3283
|
+
* fit is counted in `more`.
|
|
3284
|
+
*/
|
|
3285
|
+
declare function boundPreviewReport(input: UnboundPreviewReport): PreviewReport;
|
|
3286
|
+
|
|
3287
|
+
declare const DATA_STORE_DESCRIPTION_TOOL_NAME = "platform.data_stores.describe";
|
|
3288
|
+
declare const dataStoreDescriptionInputSchema: z.ZodObject<{
|
|
3289
|
+
store: z.ZodString;
|
|
3290
|
+
}, z.core.$strict>;
|
|
3291
|
+
/** Metadata only. No defaults, SQL, rows, samples or distinct values belong here. */
|
|
3292
|
+
declare const dataStoreDescriptionSchema: z.ZodObject<{
|
|
3293
|
+
name: z.ZodString;
|
|
3294
|
+
title: z.ZodString;
|
|
3295
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3296
|
+
owner: z.ZodUnion<readonly [z.ZodObject<{
|
|
3297
|
+
kind: z.ZodLiteral<"instance">;
|
|
3298
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3299
|
+
kind: z.ZodLiteral<"workspace">;
|
|
3300
|
+
workspaceId: z.ZodString;
|
|
3301
|
+
}, z.core.$strip>]>;
|
|
3302
|
+
published: z.ZodBoolean;
|
|
3303
|
+
tables: z.ZodArray<z.ZodObject<{
|
|
3304
|
+
name: z.ZodString;
|
|
3305
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3306
|
+
rowEstimate: z.ZodNullable<z.ZodNumber>;
|
|
3307
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
3308
|
+
name: z.ZodString;
|
|
3309
|
+
type: z.ZodString;
|
|
3310
|
+
description: z.ZodString;
|
|
3311
|
+
nullable: z.ZodBoolean;
|
|
3312
|
+
}, z.core.$strip>>;
|
|
3313
|
+
}, z.core.$strip>>;
|
|
3314
|
+
schemaAvailable: z.ZodBoolean;
|
|
3315
|
+
filledBy: z.ZodArray<z.ZodObject<{
|
|
3316
|
+
kind: z.ZodString;
|
|
3317
|
+
name: z.ZodString;
|
|
3318
|
+
title: z.ZodString;
|
|
3319
|
+
}, z.core.$strip>>;
|
|
3320
|
+
readBy: z.ZodArray<z.ZodObject<{
|
|
3321
|
+
kind: z.ZodString;
|
|
3322
|
+
name: z.ZodString;
|
|
3323
|
+
title: z.ZodString;
|
|
3324
|
+
}, z.core.$strip>>;
|
|
3325
|
+
usesTruncated: z.ZodBoolean;
|
|
3326
|
+
rights: z.ZodObject<{
|
|
3327
|
+
read: z.ZodBoolean;
|
|
3328
|
+
add: z.ZodBoolean;
|
|
3329
|
+
change: z.ZodBoolean;
|
|
3330
|
+
}, z.core.$strip>;
|
|
3331
|
+
chat: z.ZodObject<{
|
|
3332
|
+
canReadRows: z.ZodBoolean;
|
|
3333
|
+
reason: z.ZodString;
|
|
3334
|
+
nextStep: z.ZodOptional<z.ZodString>;
|
|
3335
|
+
}, z.core.$strip>;
|
|
3336
|
+
}, z.core.$strip>;
|
|
3337
|
+
|
|
3338
|
+
declare const serverPreviewCaptureInputSchema: z.ZodObject<{
|
|
3339
|
+
themeColors: z.ZodObject<{
|
|
3340
|
+
surfaceColor: z.ZodString;
|
|
3341
|
+
backgroundColor: z.ZodString;
|
|
3342
|
+
textColor: z.ZodString;
|
|
3343
|
+
mutedTextColor: z.ZodString;
|
|
3344
|
+
borderColor: z.ZodString;
|
|
3345
|
+
accentColor: z.ZodString;
|
|
3346
|
+
accentStrongColor: z.ZodString;
|
|
3347
|
+
}, z.core.$strict>;
|
|
3348
|
+
contentPath: z.ZodString;
|
|
3349
|
+
session: z.ZodString;
|
|
3350
|
+
deadline: z.ZodNumber;
|
|
3351
|
+
size: z.ZodEnum<{
|
|
3352
|
+
phone: "phone";
|
|
3353
|
+
tablet: "tablet";
|
|
3354
|
+
desktop: "desktop";
|
|
3355
|
+
}>;
|
|
3356
|
+
theme: z.ZodEnum<{
|
|
3357
|
+
light: "light";
|
|
3358
|
+
dark: "dark";
|
|
3359
|
+
}>;
|
|
3360
|
+
locale: z.ZodEnum<{
|
|
3361
|
+
en: "en";
|
|
3362
|
+
de: "de";
|
|
3363
|
+
}>;
|
|
3364
|
+
number: z.ZodNumber;
|
|
3365
|
+
}, z.core.$strict>;
|
|
3366
|
+
declare const serverPreviewCaptureOutcomeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3367
|
+
status: z.ZodLiteral<"done">;
|
|
3368
|
+
image: z.ZodString;
|
|
3369
|
+
report: z.ZodUnknown;
|
|
3370
|
+
blocked: z.ZodArray<z.ZodObject<{
|
|
3371
|
+
method: z.ZodString;
|
|
3372
|
+
host: z.ZodString;
|
|
3373
|
+
path: z.ZodString;
|
|
3374
|
+
}, z.core.$strict>>;
|
|
3375
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
3376
|
+
name: z.ZodString;
|
|
3377
|
+
code: z.ZodString;
|
|
3378
|
+
}, z.core.$strict>>;
|
|
3379
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3380
|
+
status: z.ZodLiteral<"refused">;
|
|
3381
|
+
code: z.ZodEnum<{
|
|
3382
|
+
capture_busy: "capture_busy";
|
|
3383
|
+
capture_failed: "capture_failed";
|
|
3384
|
+
}>;
|
|
3385
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3386
|
+
}, z.core.$strict>], "status">;
|
|
3387
|
+
type ServerPreviewCaptureInput = z.infer<typeof serverPreviewCaptureInputSchema>;
|
|
3388
|
+
type ServerPreviewCaptureOutcome = z.infer<typeof serverPreviewCaptureOutcomeSchema>;
|
|
3389
|
+
|
|
3390
|
+
/** The most bytes of HTML one render takes, as UTF-8, `data:` images and fonts included. */
|
|
3391
|
+
declare const HTML_PDF_MAX_HTML_BYTES: number;
|
|
3392
|
+
/** The most bytes the PDF of one render may have. A larger one is refused, never cut. */
|
|
3393
|
+
declare const HTML_PDF_MAX_PDF_BYTES: number;
|
|
3394
|
+
/** The most pages the PDF of one render may have. A longer one is refused, never cut. */
|
|
3395
|
+
declare const HTML_PDF_MAX_PAGES = 50;
|
|
3396
|
+
/** The longest one render may take in the renderer, waiting for a free slot included. */
|
|
3397
|
+
declare const HTML_PDF_RENDER_MS = 20000;
|
|
3398
|
+
/** How many renders one App frame may ask for in a minute. */
|
|
3399
|
+
declare const HTML_PDF_RENDERS_PER_MINUTE_PER_SESSION = 10;
|
|
3400
|
+
/** The header a request to the renderer names its layout in, as JSON; the body is the HTML. */
|
|
3401
|
+
declare const HTML_PDF_OPTIONS_HEADER = "x-pdf-options";
|
|
3402
|
+
/** The header the renderer's PDF answer names its page count in. */
|
|
3403
|
+
declare const HTML_PDF_PAGES_HEADER = "x-pdf-pages";
|
|
3404
|
+
declare const HTML_PDF_PAGE_FORMATS: readonly ["A3", "A4", "A5", "Letter", "Legal"];
|
|
3405
|
+
/**
|
|
3406
|
+
* Why a render was refused. `pdf_unavailable`: the instance runs no renderer.
|
|
3407
|
+
* `pdf_too_large`: the HTML or the PDF exceeds its bound. `pdf_too_many_pages`: the PDF would
|
|
3408
|
+
* have more pages than allowed. `pdf_busy`: every renderer is busy. `pdf_failed`: the render
|
|
3409
|
+
* failed or ran out of time.
|
|
3410
|
+
*/
|
|
3411
|
+
declare const HTML_PDF_REFUSALS: readonly ["pdf_unavailable", "pdf_too_large", "pdf_too_many_pages", "pdf_busy", "pdf_failed"];
|
|
3412
|
+
type HtmlPdfRefusal = (typeof HTML_PDF_REFUSALS)[number];
|
|
3413
|
+
/**
|
|
3414
|
+
* How the PDF's pages are laid out. Without `format` a size the HTML names in its own
|
|
3415
|
+
* `@page` rule holds, otherwise A4. Backgrounds and colours always print.
|
|
3416
|
+
*/
|
|
3417
|
+
declare const htmlPdfOptionsSchema: z.ZodObject<{
|
|
3418
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
3419
|
+
A3: "A3";
|
|
3420
|
+
A4: "A4";
|
|
3421
|
+
A5: "A5";
|
|
3422
|
+
Letter: "Letter";
|
|
3423
|
+
Legal: "Legal";
|
|
3424
|
+
}>>;
|
|
3425
|
+
landscape: z.ZodOptional<z.ZodBoolean>;
|
|
3426
|
+
margin: z.ZodOptional<z.ZodObject<{
|
|
3427
|
+
top: z.ZodOptional<z.ZodString>;
|
|
3428
|
+
right: z.ZodOptional<z.ZodString>;
|
|
3429
|
+
bottom: z.ZodOptional<z.ZodString>;
|
|
3430
|
+
left: z.ZodOptional<z.ZodString>;
|
|
3431
|
+
}, z.core.$strict>>;
|
|
3432
|
+
}, z.core.$strict>;
|
|
3433
|
+
type HtmlPdfOptions = z.infer<typeof htmlPdfOptionsSchema>;
|
|
3434
|
+
/** One render as the renderer is asked for it. */
|
|
3435
|
+
interface HtmlPdfInput {
|
|
3436
|
+
html: string;
|
|
3437
|
+
options: HtmlPdfOptions;
|
|
3438
|
+
}
|
|
3439
|
+
type HtmlPdfOutcome = {
|
|
3440
|
+
status: "done";
|
|
3441
|
+
pdf: Uint8Array;
|
|
3442
|
+
pages: number;
|
|
3443
|
+
} | {
|
|
3444
|
+
status: "refused";
|
|
3445
|
+
code: HtmlPdfRefusal;
|
|
3446
|
+
};
|
|
3447
|
+
|
|
3448
|
+
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_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_PROPOSAL_BINDING_STATES, CONNECTION_PROPOSAL_STATES, CONNECTION_PROVIDER_REVOCATIONS, CONNECTION_SECRET_STATES, CONNECTION_SIGN_IN_NEEDS, CONNECTION_TEST_CREDENTIAL_STATES, 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 CollaborationWorkspaceKind, type ConfigAssetChangeOperation, type ConfigAssetKind, type ConnectionBindingState, type ConnectionCredentialMode, type ConnectionExposure, type ConnectionHealth, type ConnectionNetwork, type ConnectionOAuthRegistration, type ConnectionOperationPolicy, type ConnectionOperationStatus, type ConnectionOrigin, 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_WAIT_CODES, KNOWLEDGE_EMBEDDING_STATES, KNOWLEDGE_FILE_MAX_BYTES, KNOWLEDGE_ORIGIN_LINK_CHANGES, KNOWLEDGE_ORIGIN_LINK_MAX_CHARS, 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 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, 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, 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 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_MAX, SKILL_STARTER_LINE_MAX_LENGTH, SKILL_SUMMARY_MAX_LENGTH, 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 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_BREAKDOWN_DIMENSIONS, USAGE_COST_STATUSES, USAGE_ORIGINS, 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_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, isStorableText, knowledgeExtractFieldsInputSchema, knowledgeExtractFieldsOutputSchema, knowledgeFieldValueSchema, knowledgeFirstPassConfirmationSchema, knowledgeIngestFetchSchema, knowledgeIngestInputSchema, knowledgeIngestItemSchema, knowledgeIngestOutputSchema, knowledgeLocateInputSchema, knowledgeLocateOutputSchema, knowledgeOriginLinkSchema, knowledgePendingInputSchema, knowledgePendingOutputSchema, 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, workflowConfigSchema, workflowDataFlowsSchema, workflowDatasetReferenceSchema, workflowFileReferenceSchema, workflowMailSenderFactSchema, workflowMessageMailParamsSchema, writeYamlData, yamlValueIssue, yamlValueIssueSentence };
|