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