@inferencesh/sdk 0.38.14 → 0.38.16
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/api/chats.d.ts +5 -0
- package/dist/api/chats.js +7 -0
- package/dist/api/knowledge.d.ts +6 -2
- package/dist/api/knowledge.js +11 -2
- package/dist/api/mcp-servers.d.ts +5 -2
- package/dist/api/mcp-servers.js +4 -3
- package/dist/api/publications.d.ts +38 -0
- package/dist/api/publications.js +49 -0
- package/dist/api/sandboxes.d.ts +38 -0
- package/dist/api/sandboxes.js +48 -0
- package/dist/api/write-bodies.d.ts +12 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +6 -0
- package/dist/types.d.ts +334 -22
- package/dist/types.js +155 -1
- package/package.json +1 -1
package/dist/api/chats.d.ts
CHANGED
|
@@ -12,6 +12,11 @@ export declare class ChatsAPI {
|
|
|
12
12
|
* List chats with cursor-based pagination
|
|
13
13
|
*/
|
|
14
14
|
list(params?: Partial<CursorListRequest>): Promise<Response<CursorListResponse<Chat>>>;
|
|
15
|
+
/**
|
|
16
|
+
* List the sub-agent chats a chat delegated to, with cursor-based
|
|
17
|
+
* pagination. The chats list leaves them out.
|
|
18
|
+
*/
|
|
19
|
+
listChildren(chatId: string, params?: Partial<CursorListRequest>): Promise<Response<CursorListResponse<Chat>>>;
|
|
15
20
|
/**
|
|
16
21
|
* Get a chat by ID
|
|
17
22
|
*/
|
package/dist/api/chats.js
CHANGED
|
@@ -11,6 +11,13 @@ export class ChatsAPI {
|
|
|
11
11
|
async list(params) {
|
|
12
12
|
return this.http.request('post', '/chats/list', { data: params });
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* List the sub-agent chats a chat delegated to, with cursor-based
|
|
16
|
+
* pagination. The chats list leaves them out.
|
|
17
|
+
*/
|
|
18
|
+
async listChildren(chatId, params) {
|
|
19
|
+
return this.http.request('post', `/chats/${chatId}/children/list`, { data: params });
|
|
20
|
+
}
|
|
14
21
|
/**
|
|
15
22
|
* Get a chat by ID
|
|
16
23
|
*/
|
package/dist/api/knowledge.d.ts
CHANGED
|
@@ -98,9 +98,13 @@ export declare class SkillsAPI {
|
|
|
98
98
|
*/
|
|
99
99
|
download(namespace: string, name: string): Promise<Response<unknown>>;
|
|
100
100
|
/**
|
|
101
|
-
* Get skill
|
|
101
|
+
* Get a skill's SKILL.md. The API answers with the markdown itself.
|
|
102
102
|
*/
|
|
103
|
-
getContent(namespace: string, name: string): Promise<Response<
|
|
103
|
+
getContent(namespace: string, name: string): Promise<Response<string>>;
|
|
104
|
+
/**
|
|
105
|
+
* Get one of a skill's files by its path in the skill (e.g. "scripts/run.sh").
|
|
106
|
+
*/
|
|
107
|
+
getFile(namespace: string, name: string, path: string): Promise<Response<string>>;
|
|
104
108
|
/**
|
|
105
109
|
* Transfer ownership
|
|
106
110
|
*/
|
package/dist/api/knowledge.js
CHANGED
|
@@ -139,10 +139,19 @@ export class SkillsAPI {
|
|
|
139
139
|
return this.http.request('get', `/skills/${namespace}/${name}/download`);
|
|
140
140
|
}
|
|
141
141
|
/**
|
|
142
|
-
* Get skill
|
|
142
|
+
* Get a skill's SKILL.md. The API answers with the markdown itself.
|
|
143
143
|
*/
|
|
144
144
|
async getContent(namespace, name) {
|
|
145
|
-
|
|
145
|
+
const response = await this.http.fetch(`/skills/${namespace}/${name}/content`);
|
|
146
|
+
return { data: await response.text(), messages: [] };
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Get one of a skill's files by its path in the skill (e.g. "scripts/run.sh").
|
|
150
|
+
*/
|
|
151
|
+
async getFile(namespace, name, path) {
|
|
152
|
+
const filePath = path.split('/').map(encodeURIComponent).join('/');
|
|
153
|
+
const response = await this.http.fetch(`/skills/${namespace}/${name}/files/${filePath}`);
|
|
154
|
+
return { data: await response.text(), messages: [] };
|
|
146
155
|
}
|
|
147
156
|
/**
|
|
148
157
|
* Transfer ownership
|
|
@@ -17,9 +17,12 @@ export declare class MCPServersAPI {
|
|
|
17
17
|
*/
|
|
18
18
|
get(slug: string): Promise<Response<MCPServerDTO>>;
|
|
19
19
|
/**
|
|
20
|
-
* List tools for an MCP server
|
|
20
|
+
* List tools for an MCP server. The API answers from the catalogue it
|
|
21
|
+
* recorded within the hour; refresh asks the server again.
|
|
21
22
|
*/
|
|
22
|
-
listTools(slug: string
|
|
23
|
+
listTools(slug: string, options?: {
|
|
24
|
+
refresh?: boolean;
|
|
25
|
+
}): Promise<Response<unknown[]>>;
|
|
23
26
|
/**
|
|
24
27
|
* Call a tool on an MCP server
|
|
25
28
|
*/
|
package/dist/api/mcp-servers.js
CHANGED
|
@@ -18,10 +18,11 @@ export class MCPServersAPI {
|
|
|
18
18
|
return this.http.request('get', `/mcps/${slug}`);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* List tools for an MCP server
|
|
21
|
+
* List tools for an MCP server. The API answers from the catalogue it
|
|
22
|
+
* recorded within the hour; refresh asks the server again.
|
|
22
23
|
*/
|
|
23
|
-
async listTools(slug) {
|
|
24
|
-
return this.http.request('get', `/mcps/${slug}/tools
|
|
24
|
+
async listTools(slug, options) {
|
|
25
|
+
return this.http.request('get', `/mcps/${slug}/tools`, options?.refresh ? { params: { refresh: 1 } } : {});
|
|
25
26
|
}
|
|
26
27
|
/**
|
|
27
28
|
* Call a tool on an MCP server
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { HttpClient } from '../http/client.js';
|
|
2
|
+
import type { Response } from '../http/response.js';
|
|
3
|
+
import type { PublicationCreateBody, PublicationUpdateBody } from './write-bodies.js';
|
|
4
|
+
import { PublicationDTO } from '../types.js';
|
|
5
|
+
/**
|
|
6
|
+
* Publications API
|
|
7
|
+
*
|
|
8
|
+
* A publication makes a resource (an agent) embeddable on other sites:
|
|
9
|
+
* which origins may embed it, its rate limit and its theme.
|
|
10
|
+
*/
|
|
11
|
+
export declare class PublicationsAPI {
|
|
12
|
+
private readonly http;
|
|
13
|
+
constructor(http: HttpClient);
|
|
14
|
+
/**
|
|
15
|
+
* List a resource's publications
|
|
16
|
+
*/
|
|
17
|
+
list(resourceType: string, resourceId: string): Promise<Response<PublicationDTO[]>>;
|
|
18
|
+
/**
|
|
19
|
+
* Get a publication by ID
|
|
20
|
+
*/
|
|
21
|
+
get(id: string): Promise<Response<PublicationDTO>>;
|
|
22
|
+
/**
|
|
23
|
+
* Publish a resource
|
|
24
|
+
*/
|
|
25
|
+
create(data: PublicationCreateBody): Promise<Response<PublicationDTO>>;
|
|
26
|
+
/**
|
|
27
|
+
* Write a publication's whole row: a field left out is cleared
|
|
28
|
+
*/
|
|
29
|
+
update(id: string, data: PublicationUpdateBody): Promise<Response<PublicationDTO>>;
|
|
30
|
+
/**
|
|
31
|
+
* Write only the fields sent
|
|
32
|
+
*/
|
|
33
|
+
patch(id: string, data: PublicationUpdateBody): Promise<Response<PublicationDTO>>;
|
|
34
|
+
/**
|
|
35
|
+
* Unpublish
|
|
36
|
+
*/
|
|
37
|
+
delete(id: string): Promise<Response<void>>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Publications API
|
|
3
|
+
*
|
|
4
|
+
* A publication makes a resource (an agent) embeddable on other sites:
|
|
5
|
+
* which origins may embed it, its rate limit and its theme.
|
|
6
|
+
*/
|
|
7
|
+
export class PublicationsAPI {
|
|
8
|
+
constructor(http) {
|
|
9
|
+
this.http = http;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* List a resource's publications
|
|
13
|
+
*/
|
|
14
|
+
async list(resourceType, resourceId) {
|
|
15
|
+
return this.http.request('get', '/publications', {
|
|
16
|
+
params: { resource_type: resourceType, resource_id: resourceId },
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Get a publication by ID
|
|
21
|
+
*/
|
|
22
|
+
async get(id) {
|
|
23
|
+
return this.http.request('get', `/publications/${id}`);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Publish a resource
|
|
27
|
+
*/
|
|
28
|
+
async create(data) {
|
|
29
|
+
return this.http.request('post', '/publications', { data });
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Write a publication's whole row: a field left out is cleared
|
|
33
|
+
*/
|
|
34
|
+
async update(id, data) {
|
|
35
|
+
return this.http.request('put', `/publications/${id}`, { data });
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Write only the fields sent
|
|
39
|
+
*/
|
|
40
|
+
async patch(id, data) {
|
|
41
|
+
return this.http.request('patch', `/publications/${id}`, { data });
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Unpublish
|
|
45
|
+
*/
|
|
46
|
+
async delete(id) {
|
|
47
|
+
return this.http.request('delete', `/publications/${id}`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { HttpClient } from '../http/client.js';
|
|
2
|
+
import type { Response } from '../http/response.js';
|
|
3
|
+
import { CreateSandboxRequest, CursorListRequest, CursorListResponse, SandboxDTO } from '../types.js';
|
|
4
|
+
/**
|
|
5
|
+
* Sandboxes API
|
|
6
|
+
*
|
|
7
|
+
* A sandbox is a box on one of our engines that runs belt and connects back
|
|
8
|
+
* as a remote. The owner sets what it should be (running, stopped, deleted);
|
|
9
|
+
* start, stop and delete answer at once and the status follows.
|
|
10
|
+
*/
|
|
11
|
+
export declare class SandboxesAPI {
|
|
12
|
+
private readonly http;
|
|
13
|
+
constructor(http: HttpClient);
|
|
14
|
+
/**
|
|
15
|
+
* List the caller's sandboxes with cursor-based pagination
|
|
16
|
+
*/
|
|
17
|
+
list(params?: Partial<CursorListRequest>): Promise<Response<CursorListResponse<SandboxDTO>>>;
|
|
18
|
+
/**
|
|
19
|
+
* Get a sandbox by ID
|
|
20
|
+
*/
|
|
21
|
+
get(id: string): Promise<Response<SandboxDTO>>;
|
|
22
|
+
/**
|
|
23
|
+
* Create a sandbox. Sizes left out take the defaults; it starts on its own.
|
|
24
|
+
*/
|
|
25
|
+
create(data: CreateSandboxRequest): Promise<Response<SandboxDTO>>;
|
|
26
|
+
/**
|
|
27
|
+
* Start a stopped sandbox. Its disk is new; its remote is the same.
|
|
28
|
+
*/
|
|
29
|
+
start(id: string): Promise<Response<SandboxDTO>>;
|
|
30
|
+
/**
|
|
31
|
+
* Stop a sandbox. The record and its remote stay.
|
|
32
|
+
*/
|
|
33
|
+
stop(id: string): Promise<Response<SandboxDTO>>;
|
|
34
|
+
/**
|
|
35
|
+
* Stop a sandbox, then remove the record and its remote
|
|
36
|
+
*/
|
|
37
|
+
delete(id: string): Promise<Response<void>>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandboxes API
|
|
3
|
+
*
|
|
4
|
+
* A sandbox is a box on one of our engines that runs belt and connects back
|
|
5
|
+
* as a remote. The owner sets what it should be (running, stopped, deleted);
|
|
6
|
+
* start, stop and delete answer at once and the status follows.
|
|
7
|
+
*/
|
|
8
|
+
export class SandboxesAPI {
|
|
9
|
+
constructor(http) {
|
|
10
|
+
this.http = http;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* List the caller's sandboxes with cursor-based pagination
|
|
14
|
+
*/
|
|
15
|
+
async list(params) {
|
|
16
|
+
return this.http.request('post', '/sandboxes/list', { data: params });
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Get a sandbox by ID
|
|
20
|
+
*/
|
|
21
|
+
async get(id) {
|
|
22
|
+
return this.http.request('get', `/sandboxes/${id}`);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Create a sandbox. Sizes left out take the defaults; it starts on its own.
|
|
26
|
+
*/
|
|
27
|
+
async create(data) {
|
|
28
|
+
return this.http.request('post', '/sandboxes', { data });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Start a stopped sandbox. Its disk is new; its remote is the same.
|
|
32
|
+
*/
|
|
33
|
+
async start(id) {
|
|
34
|
+
return this.http.request('post', `/sandboxes/${id}/start`);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Stop a sandbox. The record and its remote stay.
|
|
38
|
+
*/
|
|
39
|
+
async stop(id) {
|
|
40
|
+
return this.http.request('post', `/sandboxes/${id}/stop`);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Stop a sandbox, then remove the record and its remote
|
|
44
|
+
*/
|
|
45
|
+
async delete(id) {
|
|
46
|
+
return this.http.request('delete', `/sandboxes/${id}`);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* chats, engines and teams send PATCH; apps.patch and flows.patch are the
|
|
16
16
|
* partial siblings of the POST updates that also edit a version.
|
|
17
17
|
*/
|
|
18
|
-
import type { AgentConfigInput, ResourceImages, AppDTO, ChatDTO, CredentialRequirements, EngineDTO, FlowDTO, FlowVersionDTO, KnowledgeDTO, MCPServerDTO, ProjectDTO, TeamDTO, Visibility } from '../types.js';
|
|
18
|
+
import type { AgentConfigInput, ResourceImages, AppDTO, ChatDTO, CredentialRequirements, EngineDTO, FlowDTO, FlowVersionDTO, KnowledgeDTO, MCPServerDTO, ProjectDTO, PublicationDTO, TeamDTO, Visibility } from '../types.js';
|
|
19
19
|
/**
|
|
20
20
|
* POST /agents/{id}. Images, and a new version when `version` is set.
|
|
21
21
|
* Visibility: `agents.updateVisibility`. Name, title, harness, placement:
|
|
@@ -121,3 +121,14 @@ export interface MCPServerUpdateBody {
|
|
|
121
121
|
documentation_url?: string;
|
|
122
122
|
credentials?: CredentialRequirements;
|
|
123
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* POST /publications. What to publish (`resource_type`, e.g. "agent", and
|
|
126
|
+
* `resource_id`), where it may be embedded and how it looks. Namespace and
|
|
127
|
+
* name come from the resource; a new publication is enabled.
|
|
128
|
+
*/
|
|
129
|
+
export type PublicationCreateBody = Pick<PublicationDTO, 'resource_type' | 'resource_id'> & Partial<Pick<PublicationDTO, 'title' | 'allowed_origins' | 'rate_limit_rpm' | 'theme' | 'label' | 'visibility'>>;
|
|
130
|
+
/**
|
|
131
|
+
* PUT /publications/{id} writes the whole row: a field left out is cleared.
|
|
132
|
+
* PATCH (`publications.patch`) writes only the fields sent.
|
|
133
|
+
*/
|
|
134
|
+
export type PublicationUpdateBody = Partial<Pick<PublicationDTO, 'title' | 'allowed_origins' | 'rate_limit_rpm' | 'theme' | 'label' | 'enabled'>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export { FlowRunsAPI } from './api/flow-runs.js';
|
|
|
18
18
|
export { EnginesAPI } from './api/engines.js';
|
|
19
19
|
export { KnowledgeAPI, SkillsAPI } from './api/knowledge.js';
|
|
20
20
|
export { ArtifactsAPI } from './api/artifacts.js';
|
|
21
|
-
export type { AgentUpdateBody, AppPatchBody, AppUpdateBody, ChatUpdateBody, EngineUpdateBody, FlowUpdateBody, FlowPatchBody, FlowViewportBody, ProjectWriteBody, ProjectCreateBody, ProjectUpdateBody, KnowledgeUpdateBody, TeamUpdateBody, MCPServerCreateBody, MCPServerUpdateBody, } from './api/write-bodies.js';
|
|
21
|
+
export type { AgentUpdateBody, AppPatchBody, AppUpdateBody, ChatUpdateBody, EngineUpdateBody, FlowUpdateBody, FlowPatchBody, FlowViewportBody, ProjectWriteBody, ProjectCreateBody, ProjectUpdateBody, KnowledgeUpdateBody, TeamUpdateBody, MCPServerCreateBody, MCPServerUpdateBody, PublicationCreateBody, PublicationUpdateBody, } from './api/write-bodies.js';
|
|
22
22
|
export { TeamsAPI } from './api/teams.js';
|
|
23
23
|
export { SecretsAPI } from './api/secrets.js';
|
|
24
24
|
export { ApiKeysAPI } from './api/api-keys.js';
|
|
@@ -26,6 +26,8 @@ export { CredentialsAPI } from './api/credentials.js';
|
|
|
26
26
|
export { SearchAPI } from './api/search.js';
|
|
27
27
|
export { ProjectsAPI } from './api/projects.js';
|
|
28
28
|
export { MCPServersAPI } from './api/mcp-servers.js';
|
|
29
|
+
export { SandboxesAPI } from './api/sandboxes.js';
|
|
30
|
+
export { PublicationsAPI } from './api/publications.js';
|
|
29
31
|
export { LiveSession, accessUrl } from './live/session.js';
|
|
30
32
|
export type { LiveState, LiveEnd, LiveHandlers, LiveSessionOptions, RealtimeOptions, LiveUpdate, WebSocketLike, WebSocketConstructor } from './live/session.js';
|
|
31
33
|
export { STREAM_FORMAT, CLEAR_KEY, ERROR_KEY, REDIAL_CODES, RELAY_KEY } from './live/protocol.js';
|
|
@@ -62,6 +64,8 @@ import { CredentialsAPI } from './api/credentials.js';
|
|
|
62
64
|
import { SearchAPI } from './api/search.js';
|
|
63
65
|
import { ProjectsAPI } from './api/projects.js';
|
|
64
66
|
import { MCPServersAPI } from './api/mcp-servers.js';
|
|
67
|
+
import { SandboxesAPI } from './api/sandboxes.js';
|
|
68
|
+
import { PublicationsAPI } from './api/publications.js';
|
|
65
69
|
import { ApiAppRunRequest, TaskDTO as Task, AgentConfigInput as AgentConfig, FileDTO as File } from './types.js';
|
|
66
70
|
export interface InferenceConfig {
|
|
67
71
|
/** Your inference.sh API key (required unless using proxyUrl) */
|
|
@@ -118,6 +122,8 @@ export declare class Inference {
|
|
|
118
122
|
readonly search: SearchAPI;
|
|
119
123
|
readonly projects: ProjectsAPI;
|
|
120
124
|
readonly mcpServers: MCPServersAPI;
|
|
125
|
+
readonly sandboxes: SandboxesAPI;
|
|
126
|
+
readonly publications: PublicationsAPI;
|
|
121
127
|
readonly sockets: SocketsAPI;
|
|
122
128
|
constructor(config: InferenceConfig | HttpClientConfig);
|
|
123
129
|
/** @internal */
|
package/dist/index.js
CHANGED
|
@@ -27,6 +27,8 @@ export { CredentialsAPI } from './api/credentials.js';
|
|
|
27
27
|
export { SearchAPI } from './api/search.js';
|
|
28
28
|
export { ProjectsAPI } from './api/projects.js';
|
|
29
29
|
export { MCPServersAPI } from './api/mcp-servers.js';
|
|
30
|
+
export { SandboxesAPI } from './api/sandboxes.js';
|
|
31
|
+
export { PublicationsAPI } from './api/publications.js';
|
|
30
32
|
// Live: the socket of a stream task and the live fields of its schemas
|
|
31
33
|
export { LiveSession, accessUrl } from './live/session.js';
|
|
32
34
|
export { STREAM_FORMAT, CLEAR_KEY, ERROR_KEY, REDIAL_CODES, RELAY_KEY } from './live/protocol.js';
|
|
@@ -64,6 +66,8 @@ import { CredentialsAPI } from './api/credentials.js';
|
|
|
64
66
|
import { SearchAPI } from './api/search.js';
|
|
65
67
|
import { ProjectsAPI } from './api/projects.js';
|
|
66
68
|
import { MCPServersAPI } from './api/mcp-servers.js';
|
|
69
|
+
import { SandboxesAPI } from './api/sandboxes.js';
|
|
70
|
+
import { PublicationsAPI } from './api/publications.js';
|
|
67
71
|
/**
|
|
68
72
|
* Inference.sh SDK Client
|
|
69
73
|
*
|
|
@@ -107,6 +111,8 @@ export class Inference {
|
|
|
107
111
|
this.search = new SearchAPI(this.http);
|
|
108
112
|
this.projects = new ProjectsAPI(this.http);
|
|
109
113
|
this.mcpServers = new MCPServersAPI(this.http);
|
|
114
|
+
this.sandboxes = new SandboxesAPI(this.http);
|
|
115
|
+
this.publications = new PublicationsAPI(this.http);
|
|
110
116
|
this.sockets = new SocketsAPI(this.http, this.tasks);
|
|
111
117
|
}
|
|
112
118
|
// Legacy methods for backward compatibility
|
package/dist/types.d.ts
CHANGED
|
@@ -67,6 +67,11 @@ export interface AgentTool {
|
|
|
67
67
|
mcp?: MCPToolConfig;
|
|
68
68
|
client?: ClientToolConfig;
|
|
69
69
|
internal?: InternalToolConfig;
|
|
70
|
+
/**
|
|
71
|
+
* ContentTier overrides the tier the tool-result guard reads this
|
|
72
|
+
* tool's output at; empty is the tool type's.
|
|
73
|
+
*/
|
|
74
|
+
content_tier?: ContentTier;
|
|
70
75
|
}
|
|
71
76
|
/**
|
|
72
77
|
* InternalToolConfig contains configuration for internal/built-in tools
|
|
@@ -114,6 +119,7 @@ export interface AgentToolDTO {
|
|
|
114
119
|
type: ToolType;
|
|
115
120
|
require_approval?: boolean;
|
|
116
121
|
approval_timeout?: number;
|
|
122
|
+
content_tier?: ContentTier;
|
|
117
123
|
app?: AppToolConfigDTO;
|
|
118
124
|
agent?: AgentToolConfigDTO;
|
|
119
125
|
hook?: HookToolConfigDTO;
|
|
@@ -330,6 +336,11 @@ export interface AgentVersionDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
330
336
|
permissions?: AgentPermissions;
|
|
331
337
|
hooks?: LifecycleHookConfig[];
|
|
332
338
|
output_schema?: any;
|
|
339
|
+
/**
|
|
340
|
+
* ContentGuard is the agent's tool-result guard; absent is the
|
|
341
|
+
* platform's mode.
|
|
342
|
+
*/
|
|
343
|
+
content_guard?: ContentGuardConfig;
|
|
333
344
|
/**
|
|
334
345
|
* VisitorReads is the scope groups of the team's resources (knowledge,
|
|
335
346
|
* files, artifacts, remotes) a visitor of an embed of this version can
|
|
@@ -384,6 +395,7 @@ export interface AgentConfigInput {
|
|
|
384
395
|
permissions?: AgentPermissions;
|
|
385
396
|
hooks?: LifecycleHookConfig[];
|
|
386
397
|
output_schema?: any;
|
|
398
|
+
content_guard?: ContentGuardConfig;
|
|
387
399
|
}
|
|
388
400
|
/**
|
|
389
401
|
* CoreAppConfigInput is the API input shape for core app configuration.
|
|
@@ -466,7 +478,6 @@ export interface ApiAppRunRequest {
|
|
|
466
478
|
session?: string;
|
|
467
479
|
session_timeout?: number;
|
|
468
480
|
run_at?: string;
|
|
469
|
-
metadata?: TaskMetadata;
|
|
470
481
|
}
|
|
471
482
|
/**
|
|
472
483
|
* MessageInput is a message a caller sends to an agent: its text and the
|
|
@@ -721,10 +732,20 @@ export interface AdminElevateResponse {
|
|
|
721
732
|
export interface AdminElevationStatus {
|
|
722
733
|
elevated: boolean;
|
|
723
734
|
admin_until?: string;
|
|
735
|
+
/**
|
|
736
|
+
* AdminPower: a staff browser sign-in holds platform power on this
|
|
737
|
+
* request, until AdminPowerUntil (INF-1190). AdminPowerWithheld says
|
|
738
|
+
* why one that proved an authenticator holds none here: expired,
|
|
739
|
+
* other_client or wrong_origin.
|
|
740
|
+
*/
|
|
741
|
+
admin_power: boolean;
|
|
742
|
+
admin_power_until?: string;
|
|
743
|
+
admin_power_withheld?: string;
|
|
724
744
|
}
|
|
725
745
|
/**
|
|
726
746
|
* AdminElevationDropResponse is DELETE /device/auth/elevate. Dropped is
|
|
727
|
-
* false when the session held no elevation
|
|
747
|
+
* false when the session held no elevation (a CLI login) or no staff power
|
|
748
|
+
* or admin action window (a browser sign-in).
|
|
728
749
|
*/
|
|
729
750
|
export interface AdminElevationDropResponse {
|
|
730
751
|
elevated: boolean;
|
|
@@ -887,6 +908,13 @@ export interface CredentialCompleteOAuthRequest {
|
|
|
887
908
|
export interface CredentialConnectResponse {
|
|
888
909
|
credential?: CredentialDTO;
|
|
889
910
|
auth_url?: string;
|
|
911
|
+
/**
|
|
912
|
+
* ConnectURL is a short link on our app that sends the person who
|
|
913
|
+
* started this connect on to AuthURL. A client that does not finish the
|
|
914
|
+
* flow in its own browser tab (a CLI, an agent) shows this one: the
|
|
915
|
+
* app's callback completes only a flow its browser started.
|
|
916
|
+
*/
|
|
917
|
+
connect_url?: string;
|
|
890
918
|
state?: string;
|
|
891
919
|
code_verifier?: string;
|
|
892
920
|
instructions?: string;
|
|
@@ -2723,6 +2751,57 @@ export interface ConnectTokens {
|
|
|
2723
2751
|
RefreshToken: SensitiveString;
|
|
2724
2752
|
ExpiresAt?: string;
|
|
2725
2753
|
}
|
|
2754
|
+
/**
|
|
2755
|
+
* ContentGuardMode is what the tool-result guard does with what it finds in
|
|
2756
|
+
* a tool's result before the agent reads it.
|
|
2757
|
+
*/
|
|
2758
|
+
export type ContentGuardMode = "shadow" | "off" | "annotate" | "strict";
|
|
2759
|
+
/**
|
|
2760
|
+
* ContentGuardShadow scans and logs; the agent reads the result as the
|
|
2761
|
+
* tool returned it. The default.
|
|
2762
|
+
*/
|
|
2763
|
+
export declare const ContentGuardShadow: ContentGuardMode;
|
|
2764
|
+
/**
|
|
2765
|
+
* ContentGuardOff does nothing.
|
|
2766
|
+
*/
|
|
2767
|
+
export declare const ContentGuardOff: ContentGuardMode;
|
|
2768
|
+
/**
|
|
2769
|
+
* ContentGuardAnnotate frames third-party and content results as
|
|
2770
|
+
* untrusted data, notes findings under the frame's header, and judges
|
|
2771
|
+
* without waiting (a flag found later taints the run).
|
|
2772
|
+
*/
|
|
2773
|
+
export declare const ContentGuardAnnotate: ContentGuardMode;
|
|
2774
|
+
/**
|
|
2775
|
+
* ContentGuardStrict is annotate with the judge waited for, and a judge
|
|
2776
|
+
* that does not answer in time read as a flag.
|
|
2777
|
+
*/
|
|
2778
|
+
export declare const ContentGuardStrict: ContentGuardMode;
|
|
2779
|
+
/**
|
|
2780
|
+
* ContentGuardConfig is an agent's tool-result guard (content_guard).
|
|
2781
|
+
*/
|
|
2782
|
+
export interface ContentGuardConfig {
|
|
2783
|
+
/**
|
|
2784
|
+
* Mode: shadow (default), off, annotate or strict. Empty is the
|
|
2785
|
+
* platform's (content_guard.mode, itself shadow by default).
|
|
2786
|
+
*/
|
|
2787
|
+
mode?: ContentGuardMode;
|
|
2788
|
+
/**
|
|
2789
|
+
* IgnoreRules are rule ids not to apply (INF-PI-005 for an agent whose
|
|
2790
|
+
* job is reading Slack mentions).
|
|
2791
|
+
*/
|
|
2792
|
+
ignore_rules?: string[];
|
|
2793
|
+
}
|
|
2794
|
+
/**
|
|
2795
|
+
* ContentTier is how far a tool's output is from the agent's operator:
|
|
2796
|
+
* internal (the platform wrote it from the operator's own data), content
|
|
2797
|
+
* (the operator's stored content others may have written into) or
|
|
2798
|
+
* third_party (an app, an MCP server, an HTTP endpoint, a client, another
|
|
2799
|
+
* agent).
|
|
2800
|
+
*/
|
|
2801
|
+
export type ContentTier = "internal" | "content" | "third_party";
|
|
2802
|
+
export declare const ContentTierInternal: ContentTier;
|
|
2803
|
+
export declare const ContentTierContent: ContentTier;
|
|
2804
|
+
export declare const ContentTierThirdParty: ContentTier;
|
|
2726
2805
|
/**
|
|
2727
2806
|
* CredentialDTO is the API response for a credential (never exposes secrets).
|
|
2728
2807
|
*/
|
|
@@ -3151,6 +3230,23 @@ export interface WorkerDTO extends BaseModelDTO {
|
|
|
3151
3230
|
app_id: string;
|
|
3152
3231
|
app_version_id: string;
|
|
3153
3232
|
active_session_id?: string;
|
|
3233
|
+
/**
|
|
3234
|
+
* Kind is "app" for a sized app worker (INF-1159), made when a run was
|
|
3235
|
+
* placed and kept while warm; empty for a slot the engine registered.
|
|
3236
|
+
*/
|
|
3237
|
+
kind?: WorkerKind;
|
|
3238
|
+
/**
|
|
3239
|
+
* VCPUs, MemoryMiB and MemoryLimitMiB are a sized app worker's request
|
|
3240
|
+
* and memory cap (WorkerSize); 0 on a slot.
|
|
3241
|
+
*/
|
|
3242
|
+
vcpus?: number;
|
|
3243
|
+
memory_mib?: number;
|
|
3244
|
+
memory_limit_mib?: number;
|
|
3245
|
+
/**
|
|
3246
|
+
* MemoryDeclaredMiB is what the app declared when the request was
|
|
3247
|
+
* capped below it (workers.max_app_ram_mib); 0 when not capped.
|
|
3248
|
+
*/
|
|
3249
|
+
memory_declared_mib?: number;
|
|
3154
3250
|
gpus?: WorkerGPU[];
|
|
3155
3251
|
cpus?: WorkerCPU[];
|
|
3156
3252
|
rams?: WorkerRAM[];
|
|
@@ -3213,7 +3309,7 @@ export interface WorkerRAM {
|
|
|
3213
3309
|
* a task lists the ones it needs (Task.Requires); the scheduler only sends
|
|
3214
3310
|
* a task to an engine that has every one it needs.
|
|
3215
3311
|
*/
|
|
3216
|
-
export type EngineCapability = "egress_gateway" | "sandboxes" | "capacity" | "egress_pending" | "egress_grants" | "egress_decide";
|
|
3312
|
+
export type EngineCapability = "egress_gateway" | "sandboxes" | "capacity" | "egress_pending" | "egress_grants" | "egress_decide" | "sized_sandboxes" | "sized_workers";
|
|
3217
3313
|
/**
|
|
3218
3314
|
* EngineCapabilityEgressGateway: the engine runs its sandboxes behind
|
|
3219
3315
|
* the egress gateway, so it can take bound secrets (the v2 secrets
|
|
@@ -3255,6 +3351,25 @@ export declare const EngineCapabilityEgressGrants: EngineCapability;
|
|
|
3255
3351
|
* egress_answer and acks egress_revoke (INF-1173).
|
|
3256
3352
|
*/
|
|
3257
3353
|
export declare const EngineCapabilityEgressDecide: EngineCapability;
|
|
3354
|
+
/**
|
|
3355
|
+
* EngineCapabilitySizedSandboxes: the engine runs a sandbox's box that
|
|
3356
|
+
* holds no worker, sized by the start, and refuses one it has no room
|
|
3357
|
+
* for (SandboxBoxReasonNoRoom). The API then places sandboxes there by
|
|
3358
|
+
* size, against the engine's capacity, instead of leasing a worker
|
|
3359
|
+
* (INF-1158).
|
|
3360
|
+
*/
|
|
3361
|
+
export declare const EngineCapabilitySizedSandboxes: EngineCapability;
|
|
3362
|
+
/**
|
|
3363
|
+
* EngineCapabilitySizedWorkers: the engine registers no CPU slots
|
|
3364
|
+
* (EngineRegisterRequest.SizedWorkers) and makes a CPU app worker when a
|
|
3365
|
+
* run is dispatched to one it does not have, sized by the dispatch
|
|
3366
|
+
* (WsTaskRunPayload.Worker): its vCPUs as the CPU quota, its memory
|
|
3367
|
+
* limit as the cgroup cap. It refuses one it has no room for
|
|
3368
|
+
* (RejectionNoRoom), ends one on worker_release, and its committed_apps
|
|
3369
|
+
* counts its slot (GPU) workers only. The API then places CPU app runs
|
|
3370
|
+
* there by size, against the engine's capacity (INF-1159).
|
|
3371
|
+
*/
|
|
3372
|
+
export declare const EngineCapabilitySizedWorkers: EngineCapability;
|
|
3258
3373
|
/**
|
|
3259
3374
|
* EngineCapabilities is a set of capabilities, kept as a list. Nil and
|
|
3260
3375
|
* empty are the same: nothing beyond the base contract.
|
|
@@ -3284,6 +3399,14 @@ export interface EngineCapacity {
|
|
|
3284
3399
|
reserve: CapacityAmount;
|
|
3285
3400
|
allocatable: CapacityAmount;
|
|
3286
3401
|
committed: CapacityAmount;
|
|
3402
|
+
/**
|
|
3403
|
+
* CommittedApps is the apps' part of Committed: the CPU quota of the
|
|
3404
|
+
* workers running an app and the memory their containers use. Workers
|
|
3405
|
+
* are slots registered ahead of time, so an idle one holds nothing
|
|
3406
|
+
* until it runs something (INF-1159 gives apps real requests). Sized
|
|
3407
|
+
* sandbox placement adds the boxes the API placed to it.
|
|
3408
|
+
*/
|
|
3409
|
+
committed_apps: CapacityAmount;
|
|
3287
3410
|
used: CapacityAmount;
|
|
3288
3411
|
}
|
|
3289
3412
|
/**
|
|
@@ -3399,7 +3522,7 @@ export interface DecideEntitlementRequestRequest {
|
|
|
3399
3522
|
* and APIError.Code on the legacy envelope. Clients branch on these, so a
|
|
3400
3523
|
* code is a named const here, where it generates into models and the SDKs.
|
|
3401
3524
|
*/
|
|
3402
|
-
export type ErrorCode = "invalid_request" | "validation_error" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "name_conflict" | "already_exists" | "not_configured" | "method_not_allowed" | "rate_limited" | "internal_error" | "access_restricted" | "web_access_restricted" | "requirements_not_met" | "team_role_required" | "in_other_workspace" | "blocked_by_usage_policy" | "last_owner" | "account_deactivated" | "account_banned" | "person_required" | "otp_required" | "requires_sign_in" | "insufficient_scope" | "invalid_scope" | "impersonation_reason_required" | "mcp_auth_expired" | "admin_session_required" | "admin_scopes_not_approved" | "cli_session_required" | "admin_required" | "same_admin_required" | "browser_session_required" | "invalid_ttl" | "admin_authenticator_required" | "last_authenticator" | "limit_exceeded" | "feature_not_available" | "entitlement_unavailable" | "purchase_required" | "payment_required" | "payment_method_required" | "form_closed" | "already_submitted" | "notifications_disabled" | "already_claimed" | "already_entitled" | "request_open" | "invalid_code" | "already_processed" | "expired" | "code_confirmation_required" | "app_retired" | "app_maintenance" | "invalid_transition" | "maintenance" | "SESSION_NOT_FOUND" | "SESSION_EXPIRED" | "SESSION_ENDED" | "WORKER_LEASED" | "APP_MISMATCH" | "VERSION_MISMATCH" | "agents_disabled" | "remote_offline" | "remote_timeout" | "harness_not_drivable" | "harness_too_old";
|
|
3525
|
+
export type ErrorCode = "invalid_request" | "validation_error" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "name_conflict" | "already_exists" | "not_configured" | "method_not_allowed" | "rate_limited" | "internal_error" | "access_restricted" | "web_access_restricted" | "requirements_not_met" | "team_role_required" | "in_other_workspace" | "visibility_not_allowed" | "blocked_by_usage_policy" | "last_owner" | "account_deactivated" | "account_banned" | "publish_quarantined" | "person_required" | "otp_required" | "requires_sign_in" | "insufficient_scope" | "invalid_scope" | "impersonation_reason_required" | "mcp_auth_expired" | "admin_session_required" | "admin_scopes_not_approved" | "cli_session_required" | "admin_required" | "same_admin_required" | "browser_session_required" | "invalid_ttl" | "admin_origin_required" | "admin_authenticator_required" | "last_authenticator" | "limit_exceeded" | "feature_not_available" | "entitlement_unavailable" | "purchase_required" | "payment_required" | "payment_method_required" | "form_closed" | "already_submitted" | "notifications_disabled" | "already_claimed" | "already_entitled" | "request_open" | "invalid_code" | "already_processed" | "expired" | "code_confirmation_required" | "app_retired" | "app_maintenance" | "invalid_transition" | "maintenance" | "SESSION_NOT_FOUND" | "SESSION_EXPIRED" | "SESSION_ENDED" | "WORKER_LEASED" | "APP_MISMATCH" | "VERSION_MISMATCH" | "agents_disabled" | "remote_offline" | "remote_timeout" | "harness_not_drivable" | "harness_too_old";
|
|
3403
3526
|
export declare const ErrorCodeInvalidRequest: ErrorCode;
|
|
3404
3527
|
export declare const ErrorCodeValidationError: ErrorCode;
|
|
3405
3528
|
export declare const ErrorCodeUnauthorized: ErrorCode;
|
|
@@ -3442,6 +3565,13 @@ export declare const ErrorCodeTeamRoleRequired: ErrorCode;
|
|
|
3442
3565
|
* the caller belongs to and could open there (InOtherWorkspaceMeta).
|
|
3443
3566
|
*/
|
|
3444
3567
|
export declare const ErrorCodeInOtherWorkspace: ErrorCode;
|
|
3568
|
+
/**
|
|
3569
|
+
* ErrorCodeVisibilityNotAllowed (400): the resource cannot take the
|
|
3570
|
+
* visibility asked for (models.VisibilityDeclarer): a task, a flow run
|
|
3571
|
+
* or an engine is private or team, never org, public or unlisted.
|
|
3572
|
+
* Meta is VisibilityNotAllowedMeta.
|
|
3573
|
+
*/
|
|
3574
|
+
export declare const ErrorCodeVisibilityNotAllowed: ErrorCode;
|
|
3445
3575
|
/**
|
|
3446
3576
|
* ErrorCodeBlockedByUsagePolicy: the resource is outside the team or org
|
|
3447
3577
|
* usage policy. The message names who to ask.
|
|
@@ -3460,6 +3590,13 @@ export declare const ErrorCodeLastOwner: ErrorCode;
|
|
|
3460
3590
|
*/
|
|
3461
3591
|
export declare const ErrorCodeAccountDeactivated: ErrorCode;
|
|
3462
3592
|
export declare const ErrorCodeAccountBanned: ErrorCode;
|
|
3593
|
+
/**
|
|
3594
|
+
* ErrorCodePublishQuarantined (403): the account may not make the row
|
|
3595
|
+
* public or unlisted yet: it is new (younger than 72 hours), its email
|
|
3596
|
+
* is not verified, or it is flagged (abuse.CheckPublish). Meta is
|
|
3597
|
+
* PublishQuarantinedMeta; Until says from when a new account can.
|
|
3598
|
+
*/
|
|
3599
|
+
export declare const ErrorCodePublishQuarantined: ErrorCode;
|
|
3463
3600
|
/**
|
|
3464
3601
|
* ErrorCodePersonRequired (403): only a person may do this, and the
|
|
3465
3602
|
* caller is a workspace's service account (a workspace API key), or the
|
|
@@ -3506,7 +3643,7 @@ export declare const ErrorCodeMCPAuthExpired: ErrorCode;
|
|
|
3506
3643
|
* grants one, and only the person's own browser sign-in changes how the
|
|
3507
3644
|
* account is signed into (authenticator enrollment, RequireBrowserSession).
|
|
3508
3645
|
* InvalidTTL (400): the elevation asked for a window outside
|
|
3509
|
-
* models.AdminElevationMinTTL..
|
|
3646
|
+
* models.AdminElevationMinTTL..admin.elevation.max_ttl.
|
|
3510
3647
|
* AdminScopesNotApproved (403): a platform admin's CLI login was approved
|
|
3511
3648
|
* with a scope list that does not name the admin scopes, so it can't be
|
|
3512
3649
|
* elevated: log in again approving them, then elevate.
|
|
@@ -3518,6 +3655,12 @@ export declare const ErrorCodeAdminRequired: ErrorCode;
|
|
|
3518
3655
|
export declare const ErrorCodeSameAdminRequired: ErrorCode;
|
|
3519
3656
|
export declare const ErrorCodeBrowserSessionRequired: ErrorCode;
|
|
3520
3657
|
export declare const ErrorCodeInvalidTTL: ErrorCode;
|
|
3658
|
+
/**
|
|
3659
|
+
* AdminOriginRequired (403): a staff browser sign-in's power is used
|
|
3660
|
+
* only from the admin origin (ADMIN_URL), never from the app where user
|
|
3661
|
+
* content renders, a frame or another site (INF-1190).
|
|
3662
|
+
*/
|
|
3663
|
+
export declare const ErrorCodeAdminOriginRequired: ErrorCode;
|
|
3521
3664
|
/**
|
|
3522
3665
|
* AdminAuthenticatorRequired (403): a platform admin without an
|
|
3523
3666
|
* authenticator app (TOTP) enrolled. Admin power needs one; until it is
|
|
@@ -3642,6 +3785,15 @@ export interface TeamRoleRequiredMeta {
|
|
|
3642
3785
|
export interface InOtherWorkspaceMeta {
|
|
3643
3786
|
team_id: string;
|
|
3644
3787
|
}
|
|
3788
|
+
/**
|
|
3789
|
+
* VisibilityNotAllowedMeta is the meta of a visibility_not_allowed error:
|
|
3790
|
+
* the resource, the visibility refused and the ones it may take.
|
|
3791
|
+
*/
|
|
3792
|
+
export interface VisibilityNotAllowedMeta {
|
|
3793
|
+
resource: string;
|
|
3794
|
+
visibility: Visibility;
|
|
3795
|
+
allowed: Visibility[];
|
|
3796
|
+
}
|
|
3645
3797
|
/**
|
|
3646
3798
|
* ScopeRefusedMeta is the meta of an insufficient_scope or
|
|
3647
3799
|
* requires_sign_in error: the scope the operation declares and the
|
|
@@ -3658,6 +3810,35 @@ export interface PaymentMethodRequiredMeta {
|
|
|
3658
3810
|
bounty_id?: string;
|
|
3659
3811
|
billing_page: string;
|
|
3660
3812
|
}
|
|
3813
|
+
/**
|
|
3814
|
+
* PublishQuarantineReason is why an account may not publish yet
|
|
3815
|
+
* (PublishQuarantinedMeta).
|
|
3816
|
+
*/
|
|
3817
|
+
export type PublishQuarantineReason = "new_account" | "unverified_email" | "flagged";
|
|
3818
|
+
/**
|
|
3819
|
+
* PublishQuarantineNewAccount: the account is younger than the
|
|
3820
|
+
* quarantine (72 hours by default); Until is when it ends.
|
|
3821
|
+
*/
|
|
3822
|
+
export declare const PublishQuarantineNewAccount: PublishQuarantineReason;
|
|
3823
|
+
/**
|
|
3824
|
+
* PublishQuarantineUnverifiedEmail: the account's email is not verified.
|
|
3825
|
+
*/
|
|
3826
|
+
export declare const PublishQuarantineUnverifiedEmail: PublishQuarantineReason;
|
|
3827
|
+
/**
|
|
3828
|
+
* PublishQuarantineFlagged: the account is banned or flagged.
|
|
3829
|
+
*/
|
|
3830
|
+
export declare const PublishQuarantineFlagged: PublishQuarantineReason;
|
|
3831
|
+
/**
|
|
3832
|
+
* PublishQuarantinedMeta is the meta of a publish_quarantined error: the
|
|
3833
|
+
* resource and visibility refused, why, and for a new account from when
|
|
3834
|
+
* it may publish.
|
|
3835
|
+
*/
|
|
3836
|
+
export interface PublishQuarantinedMeta {
|
|
3837
|
+
resource: string;
|
|
3838
|
+
visibility: Visibility;
|
|
3839
|
+
reason: PublishQuarantineReason;
|
|
3840
|
+
until?: string;
|
|
3841
|
+
}
|
|
3661
3842
|
/**
|
|
3662
3843
|
* FileMetadata holds probed media metadata cached on File records.
|
|
3663
3844
|
*/
|
|
@@ -4959,6 +5140,48 @@ export interface ProjectDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
4959
5140
|
parent?: ProjectDTO;
|
|
4960
5141
|
children: (ProjectDTO | undefined)[];
|
|
4961
5142
|
}
|
|
5143
|
+
/**
|
|
5144
|
+
* PublicationThemeColors defines the core colors for one mode (light or dark).
|
|
5145
|
+
*/
|
|
5146
|
+
export interface PublicationThemeColors {
|
|
5147
|
+
primary: string;
|
|
5148
|
+
secondary: string;
|
|
5149
|
+
background: string;
|
|
5150
|
+
text: string;
|
|
5151
|
+
border?: string;
|
|
5152
|
+
}
|
|
5153
|
+
/**
|
|
5154
|
+
* PublicationTheme defines branding colors for embedded UIs.
|
|
5155
|
+
*/
|
|
5156
|
+
export interface PublicationTheme {
|
|
5157
|
+
light: PublicationThemeColors;
|
|
5158
|
+
dark?: PublicationThemeColors;
|
|
5159
|
+
}
|
|
5160
|
+
/**
|
|
5161
|
+
* PublicationDTO for API responses.
|
|
5162
|
+
*/
|
|
5163
|
+
export interface PublicationDTO extends BaseModelDTO, PermissionModelDTO {
|
|
5164
|
+
resource_type: string;
|
|
5165
|
+
resource_id: string;
|
|
5166
|
+
namespace: string;
|
|
5167
|
+
name: string;
|
|
5168
|
+
/**
|
|
5169
|
+
* Title is the human-readable name; empty falls back to Name.
|
|
5170
|
+
*/
|
|
5171
|
+
title: string;
|
|
5172
|
+
allowed_origins?: string[];
|
|
5173
|
+
rate_limit_rpm?: number;
|
|
5174
|
+
theme?: PublicationTheme;
|
|
5175
|
+
label?: string;
|
|
5176
|
+
enabled: boolean;
|
|
5177
|
+
/**
|
|
5178
|
+
* VisitorReads is the scope groups of the team's resources (knowledge,
|
|
5179
|
+
* artifacts, files, remotes) a visitor can ask the published agent's
|
|
5180
|
+
* current version to reach by id: what its built-in tools add to an
|
|
5181
|
+
* embed run. Empty when its tools reach only what it names itself.
|
|
5182
|
+
*/
|
|
5183
|
+
visitor_reads: ScopeGroup[];
|
|
5184
|
+
}
|
|
4962
5185
|
/**
|
|
4963
5186
|
* AccessNoticeDTO is the redlist's notice to a restricted caller, as a
|
|
4964
5187
|
* refusal's meta.notice and /me's access_notice carry it.
|
|
@@ -5674,7 +5897,6 @@ export interface TaskLog {
|
|
|
5674
5897
|
content: string;
|
|
5675
5898
|
}
|
|
5676
5899
|
/**
|
|
5677
|
-
* TaskDTO is the full API response for a task.
|
|
5678
5900
|
* TaskEgress is what a task's sandbox sent to and received from the
|
|
5679
5901
|
* internet through the engine's egress gateway, in bytes.
|
|
5680
5902
|
*/
|
|
@@ -5682,6 +5904,15 @@ export interface TaskEgress {
|
|
|
5682
5904
|
bytes_out: number;
|
|
5683
5905
|
bytes_in: number;
|
|
5684
5906
|
}
|
|
5907
|
+
/**
|
|
5908
|
+
* TaskDTO is the full API response for a task.
|
|
5909
|
+
* A reader who may not inspect the task (shared.PermInspect: anyone but its
|
|
5910
|
+
* owner, whatever its visibility) gets it without its runtime internals
|
|
5911
|
+
* (task.withoutInternals): webhook, setup, engine and worker, egress and
|
|
5912
|
+
* session are absent, logs, workers and usage_events null, infra empty.
|
|
5913
|
+
* Those four keep their key, so a client that requires them (the Swift
|
|
5914
|
+
* SDK's infra) still decodes the task.
|
|
5915
|
+
*/
|
|
5685
5916
|
export interface TaskDTO extends BaseModelDTO, PermissionModelDTO {
|
|
5686
5917
|
graph_id?: string;
|
|
5687
5918
|
user_public_key: string;
|
|
@@ -6392,6 +6623,79 @@ export interface A2UISurface {
|
|
|
6392
6623
|
components: A2UIComponent[];
|
|
6393
6624
|
dataModel?: any;
|
|
6394
6625
|
}
|
|
6626
|
+
/**
|
|
6627
|
+
* DeadRunReason is why an ended agent run counts as dead: what happened.
|
|
6628
|
+
* Who caused it (DeadRunSource) follows from it (ClassifyDeadRun); it is
|
|
6629
|
+
* never set on its own.
|
|
6630
|
+
*/
|
|
6631
|
+
export type DeadRunReason = "model_stopped_early" | "model_empty_reply" | "model_output_limit" | "model_refused" | "provider_error" | "no_progress" | "platform_error" | "owner_setup";
|
|
6632
|
+
/**
|
|
6633
|
+
* DeadRunReasonModelStoppedEarly: the agent owes its output through
|
|
6634
|
+
* finish and the model ended its turn with text or reasoning and no tool
|
|
6635
|
+
* call.
|
|
6636
|
+
*/
|
|
6637
|
+
export declare const DeadRunReasonModelStoppedEarly: DeadRunReason;
|
|
6638
|
+
/**
|
|
6639
|
+
* DeadRunReasonModelEmptyReply: the agent owes its output through finish
|
|
6640
|
+
* and the model ended its turn with no content.
|
|
6641
|
+
*/
|
|
6642
|
+
export declare const DeadRunReasonModelEmptyReply: DeadRunReason;
|
|
6643
|
+
/**
|
|
6644
|
+
* DeadRunReasonModelOutputLimit: the agent owes its output through
|
|
6645
|
+
* finish and the model's turn was cut at its output token limit.
|
|
6646
|
+
*/
|
|
6647
|
+
export declare const DeadRunReasonModelOutputLimit: DeadRunReason;
|
|
6648
|
+
/**
|
|
6649
|
+
* DeadRunReasonModelRefused: the agent owes its output through finish
|
|
6650
|
+
* and the provider's safety system refused the turn of a run a trigger
|
|
6651
|
+
* started.
|
|
6652
|
+
*/
|
|
6653
|
+
export declare const DeadRunReasonModelRefused: DeadRunReason;
|
|
6654
|
+
/**
|
|
6655
|
+
* DeadRunReasonProviderError: the model call failed: the provider's or
|
|
6656
|
+
* engine's error, a timeout, or the error a remote harness reported.
|
|
6657
|
+
*/
|
|
6658
|
+
export declare const DeadRunReasonProviderError: DeadRunReason;
|
|
6659
|
+
/**
|
|
6660
|
+
* DeadRunReasonNoProgress: the platform ended a run that went quiet, or
|
|
6661
|
+
* a run a trigger started that was still working past its bound.
|
|
6662
|
+
*/
|
|
6663
|
+
export declare const DeadRunReasonNoProgress: DeadRunReason;
|
|
6664
|
+
/**
|
|
6665
|
+
* DeadRunReasonPlatformError: the run failed for the platform's own
|
|
6666
|
+
* reasons: storage, dispatch, a turn that could not start, a harness
|
|
6667
|
+
* session or remote lost.
|
|
6668
|
+
*/
|
|
6669
|
+
export declare const DeadRunReasonPlatformError: DeadRunReason;
|
|
6670
|
+
/**
|
|
6671
|
+
* DeadRunReasonOwnerSetup: a turn could not start because of something
|
|
6672
|
+
* the agent's owner has to fix: a missing secret or key, a credential
|
|
6673
|
+
* without the scope the call needs, no balance or payment method, an
|
|
6674
|
+
* agent with no model configured, an app outside the team's usage
|
|
6675
|
+
* policy.
|
|
6676
|
+
*/
|
|
6677
|
+
export declare const DeadRunReasonOwnerSetup: DeadRunReason;
|
|
6678
|
+
/**
|
|
6679
|
+
* DeadRunSource is who caused a dead agent run.
|
|
6680
|
+
*/
|
|
6681
|
+
export type DeadRunSource = "model" | "provider" | "platform" | "owner";
|
|
6682
|
+
/**
|
|
6683
|
+
* DeadRunSourceModel: the model ended without the output it owed.
|
|
6684
|
+
*/
|
|
6685
|
+
export declare const DeadRunSourceModel: DeadRunSource;
|
|
6686
|
+
/**
|
|
6687
|
+
* DeadRunSourceProvider: the model's provider (or the engine running
|
|
6688
|
+
* it) failed the call.
|
|
6689
|
+
*/
|
|
6690
|
+
export declare const DeadRunSourceProvider: DeadRunSource;
|
|
6691
|
+
/**
|
|
6692
|
+
* DeadRunSourcePlatform: the platform failed or ended the run.
|
|
6693
|
+
*/
|
|
6694
|
+
export declare const DeadRunSourcePlatform: DeadRunSource;
|
|
6695
|
+
/**
|
|
6696
|
+
* DeadRunSourceOwner: the agent's owner has to fix its setup.
|
|
6697
|
+
*/
|
|
6698
|
+
export declare const DeadRunSourceOwner: DeadRunSource;
|
|
6395
6699
|
/**
|
|
6396
6700
|
* ApiKeyScope is who an API key acts as, chosen when it is created, the way a
|
|
6397
6701
|
* credential's scope says who owns it.
|
|
@@ -6860,7 +7164,7 @@ export declare const VisibilityUnlisted: Visibility;
|
|
|
6860
7164
|
/**
|
|
6861
7165
|
* Permission represents a permission level for access checks.
|
|
6862
7166
|
*/
|
|
6863
|
-
export type Permission = "read" | "write" | "interact" | "use";
|
|
7167
|
+
export type Permission = "read" | "write" | "interact" | "use" | "inspect";
|
|
6864
7168
|
export declare const PermRead: Permission;
|
|
6865
7169
|
export declare const PermWrite: Permission;
|
|
6866
7170
|
/**
|
|
@@ -6876,6 +7180,14 @@ export declare const PermInteract: Permission;
|
|
|
6876
7180
|
* governed by their team/org usage policy (reach, INF-808).
|
|
6877
7181
|
*/
|
|
6878
7182
|
export declare const PermUse: Permission;
|
|
7183
|
+
/**
|
|
7184
|
+
* PermInspect reads a row's runtime internals: a task's logs,
|
|
7185
|
+
* telemetry, webhook, setup, engine and worker. The row's owner and the
|
|
7186
|
+
* stored entries on it grant it; no visibility does. Making a task
|
|
7187
|
+
* public shares what it was asked and what it answered, not how its run
|
|
7188
|
+
* went on the machine.
|
|
7189
|
+
*/
|
|
7190
|
+
export declare const PermInspect: Permission;
|
|
6879
7191
|
/**
|
|
6880
7192
|
* ACLGrantee is who an ACL entry is for (models.ACLEntry, INF-1130).
|
|
6881
7193
|
*/
|
|
@@ -7373,6 +7685,14 @@ export declare const WorkerStatusReserved: WorkerStatus;
|
|
|
7373
7685
|
export declare const WorkerStatusBusy: WorkerStatus;
|
|
7374
7686
|
export declare const WorkerStatusIdle: WorkerStatus;
|
|
7375
7687
|
export declare const WorkerStatusInactive: WorkerStatus;
|
|
7688
|
+
/**
|
|
7689
|
+
* WorkerKind is what a worker row is (INF-1156). Empty is a slot an engine
|
|
7690
|
+
* registered ahead of time; app is a sized live reservation for CPU app
|
|
7691
|
+
* runs, made when a run is placed and kept while warm (INF-1159).
|
|
7692
|
+
*/
|
|
7693
|
+
export type WorkerKind = "" | "app";
|
|
7694
|
+
export declare const WorkerKindSlot: WorkerKind;
|
|
7695
|
+
export declare const WorkerKindApp: WorkerKind;
|
|
7376
7696
|
export type FlowRunStatus = number;
|
|
7377
7697
|
export declare const FlowRunStatusUnknown: FlowRunStatus;
|
|
7378
7698
|
export declare const FlowRunStatusPending: FlowRunStatus;
|
|
@@ -8079,7 +8399,7 @@ export declare const DeviceTokenKindSession: DeviceTokenKind;
|
|
|
8079
8399
|
* TODO: retire once CLIs older than the session-token release are gone.
|
|
8080
8400
|
*/
|
|
8081
8401
|
export declare const DeviceTokenKindAPIKey: DeviceTokenKind;
|
|
8082
|
-
export type EntitlementResource = "api_keys" | "connectors" | "knowledge_bases" | "storage_mb" | "concurrency" | "rate_per_min" | "seats" | "triggers" | "retention_days" | "private_apps" | "task_executions" | "feature:byok" | "feature:seedance" | "feature:marketplace_publish" | "feature:forms" | "feature:sandboxes" | "feature:scopes" | "feature:webhooks" | "feature:team_billing" | "feature:auto_recharge" | "feature:invoices" | "feature:publish_apps";
|
|
8402
|
+
export type EntitlementResource = "api_keys" | "connectors" | "knowledge_bases" | "storage_mb" | "concurrency" | "rate_per_min" | "seats" | "triggers" | "retention_days" | "sandboxes" | "sandbox_vcpus" | "private_apps" | "task_executions" | "feature:byok" | "feature:seedance" | "feature:marketplace_publish" | "feature:forms" | "feature:sandboxes" | "feature:scopes" | "feature:webhooks" | "feature:team_billing" | "feature:auto_recharge" | "feature:invoices" | "feature:publish_apps";
|
|
8083
8403
|
/**
|
|
8084
8404
|
* Capacity limits — scale with tier
|
|
8085
8405
|
*/
|
|
@@ -8092,6 +8412,12 @@ export declare const ResourceRatePerMin: EntitlementResource;
|
|
|
8092
8412
|
export declare const ResourceSeats: EntitlementResource;
|
|
8093
8413
|
export declare const ResourceTriggers: EntitlementResource;
|
|
8094
8414
|
export declare const ResourceRetentionDays: EntitlementResource;
|
|
8415
|
+
/**
|
|
8416
|
+
* Sandboxes a team may hold placed at once, and their vCPUs together
|
|
8417
|
+
* (INF-1158). No row: the platform default (setting sandboxes.placement).
|
|
8418
|
+
*/
|
|
8419
|
+
export declare const ResourceSandboxes: EntitlementResource;
|
|
8420
|
+
export declare const ResourceSandboxVCPUs: EntitlementResource;
|
|
8095
8421
|
/**
|
|
8096
8422
|
* Legacy — kept for DB compatibility, no longer in plan seeds
|
|
8097
8423
|
*/
|
|
@@ -8521,20 +8847,6 @@ export declare const TaskLogTypeRun: TaskLogType;
|
|
|
8521
8847
|
export declare const TaskLogTypeServe: TaskLogType;
|
|
8522
8848
|
export declare const TaskLogTypeSetup: TaskLogType;
|
|
8523
8849
|
export declare const TaskLogTypeTask: TaskLogType;
|
|
8524
|
-
/**
|
|
8525
|
-
* TaskAction defines an action to execute when a task reaches a specific status.
|
|
8526
|
-
*/
|
|
8527
|
-
export interface TaskAction {
|
|
8528
|
-
key: string;
|
|
8529
|
-
on: string;
|
|
8530
|
-
params?: any;
|
|
8531
|
-
}
|
|
8532
|
-
/**
|
|
8533
|
-
* TaskMetadata holds optional metadata attached to a task.
|
|
8534
|
-
*/
|
|
8535
|
-
export interface TaskMetadata {
|
|
8536
|
-
action?: TaskAction;
|
|
8537
|
-
}
|
|
8538
8850
|
export type TeamType = "personal" | "team" | "system" | "org";
|
|
8539
8851
|
export declare const TeamTypePersonal: TeamType;
|
|
8540
8852
|
export declare const TeamTypeTeam: TeamType;
|
package/dist/types.js
CHANGED
|
@@ -438,6 +438,29 @@ export const ToolRiskMedium = "medium";
|
|
|
438
438
|
* ToolRiskHigh: dangerous or irreversible changes.
|
|
439
439
|
*/
|
|
440
440
|
export const ToolRiskHigh = "high";
|
|
441
|
+
/**
|
|
442
|
+
* ContentGuardShadow scans and logs; the agent reads the result as the
|
|
443
|
+
* tool returned it. The default.
|
|
444
|
+
*/
|
|
445
|
+
export const ContentGuardShadow = "shadow";
|
|
446
|
+
/**
|
|
447
|
+
* ContentGuardOff does nothing.
|
|
448
|
+
*/
|
|
449
|
+
export const ContentGuardOff = "off";
|
|
450
|
+
/**
|
|
451
|
+
* ContentGuardAnnotate frames third-party and content results as
|
|
452
|
+
* untrusted data, notes findings under the frame's header, and judges
|
|
453
|
+
* without waiting (a flag found later taints the run).
|
|
454
|
+
*/
|
|
455
|
+
export const ContentGuardAnnotate = "annotate";
|
|
456
|
+
/**
|
|
457
|
+
* ContentGuardStrict is annotate with the judge waited for, and a judge
|
|
458
|
+
* that does not answer in time read as a flag.
|
|
459
|
+
*/
|
|
460
|
+
export const ContentGuardStrict = "strict";
|
|
461
|
+
export const ContentTierInternal = "internal";
|
|
462
|
+
export const ContentTierContent = "content";
|
|
463
|
+
export const ContentTierThirdParty = "third_party";
|
|
441
464
|
export const EgressGrantScopeTask = "task";
|
|
442
465
|
export const EgressGrantScopeSandbox = "sandbox";
|
|
443
466
|
/**
|
|
@@ -517,6 +540,25 @@ export const EngineCapabilityEgressGrants = "egress_grants";
|
|
|
517
540
|
* egress_answer and acks egress_revoke (INF-1173).
|
|
518
541
|
*/
|
|
519
542
|
export const EngineCapabilityEgressDecide = "egress_decide";
|
|
543
|
+
/**
|
|
544
|
+
* EngineCapabilitySizedSandboxes: the engine runs a sandbox's box that
|
|
545
|
+
* holds no worker, sized by the start, and refuses one it has no room
|
|
546
|
+
* for (SandboxBoxReasonNoRoom). The API then places sandboxes there by
|
|
547
|
+
* size, against the engine's capacity, instead of leasing a worker
|
|
548
|
+
* (INF-1158).
|
|
549
|
+
*/
|
|
550
|
+
export const EngineCapabilitySizedSandboxes = "sized_sandboxes";
|
|
551
|
+
/**
|
|
552
|
+
* EngineCapabilitySizedWorkers: the engine registers no CPU slots
|
|
553
|
+
* (EngineRegisterRequest.SizedWorkers) and makes a CPU app worker when a
|
|
554
|
+
* run is dispatched to one it does not have, sized by the dispatch
|
|
555
|
+
* (WsTaskRunPayload.Worker): its vCPUs as the CPU quota, its memory
|
|
556
|
+
* limit as the cgroup cap. It refuses one it has no room for
|
|
557
|
+
* (RejectionNoRoom), ends one on worker_release, and its committed_apps
|
|
558
|
+
* counts its slot (GPU) workers only. The API then places CPU app runs
|
|
559
|
+
* there by size, against the engine's capacity (INF-1159).
|
|
560
|
+
*/
|
|
561
|
+
export const EngineCapabilitySizedWorkers = "sized_workers";
|
|
520
562
|
export const ErrorCodeInvalidRequest = "invalid_request";
|
|
521
563
|
export const ErrorCodeValidationError = "validation_error";
|
|
522
564
|
export const ErrorCodeUnauthorized = "unauthorized";
|
|
@@ -559,6 +601,13 @@ export const ErrorCodeTeamRoleRequired = "team_role_required";
|
|
|
559
601
|
* the caller belongs to and could open there (InOtherWorkspaceMeta).
|
|
560
602
|
*/
|
|
561
603
|
export const ErrorCodeInOtherWorkspace = "in_other_workspace";
|
|
604
|
+
/**
|
|
605
|
+
* ErrorCodeVisibilityNotAllowed (400): the resource cannot take the
|
|
606
|
+
* visibility asked for (models.VisibilityDeclarer): a task, a flow run
|
|
607
|
+
* or an engine is private or team, never org, public or unlisted.
|
|
608
|
+
* Meta is VisibilityNotAllowedMeta.
|
|
609
|
+
*/
|
|
610
|
+
export const ErrorCodeVisibilityNotAllowed = "visibility_not_allowed";
|
|
562
611
|
/**
|
|
563
612
|
* ErrorCodeBlockedByUsagePolicy: the resource is outside the team or org
|
|
564
613
|
* usage policy. The message names who to ask.
|
|
@@ -577,6 +626,13 @@ export const ErrorCodeLastOwner = "last_owner";
|
|
|
577
626
|
*/
|
|
578
627
|
export const ErrorCodeAccountDeactivated = "account_deactivated";
|
|
579
628
|
export const ErrorCodeAccountBanned = "account_banned";
|
|
629
|
+
/**
|
|
630
|
+
* ErrorCodePublishQuarantined (403): the account may not make the row
|
|
631
|
+
* public or unlisted yet: it is new (younger than 72 hours), its email
|
|
632
|
+
* is not verified, or it is flagged (abuse.CheckPublish). Meta is
|
|
633
|
+
* PublishQuarantinedMeta; Until says from when a new account can.
|
|
634
|
+
*/
|
|
635
|
+
export const ErrorCodePublishQuarantined = "publish_quarantined";
|
|
580
636
|
/**
|
|
581
637
|
* ErrorCodePersonRequired (403): only a person may do this, and the
|
|
582
638
|
* caller is a workspace's service account (a workspace API key), or the
|
|
@@ -623,7 +679,7 @@ export const ErrorCodeMCPAuthExpired = "mcp_auth_expired";
|
|
|
623
679
|
* grants one, and only the person's own browser sign-in changes how the
|
|
624
680
|
* account is signed into (authenticator enrollment, RequireBrowserSession).
|
|
625
681
|
* InvalidTTL (400): the elevation asked for a window outside
|
|
626
|
-
* models.AdminElevationMinTTL..
|
|
682
|
+
* models.AdminElevationMinTTL..admin.elevation.max_ttl.
|
|
627
683
|
* AdminScopesNotApproved (403): a platform admin's CLI login was approved
|
|
628
684
|
* with a scope list that does not name the admin scopes, so it can't be
|
|
629
685
|
* elevated: log in again approving them, then elevate.
|
|
@@ -635,6 +691,12 @@ export const ErrorCodeAdminRequired = "admin_required";
|
|
|
635
691
|
export const ErrorCodeSameAdminRequired = "same_admin_required";
|
|
636
692
|
export const ErrorCodeBrowserSessionRequired = "browser_session_required";
|
|
637
693
|
export const ErrorCodeInvalidTTL = "invalid_ttl";
|
|
694
|
+
/**
|
|
695
|
+
* AdminOriginRequired (403): a staff browser sign-in's power is used
|
|
696
|
+
* only from the admin origin (ADMIN_URL), never from the app where user
|
|
697
|
+
* content renders, a frame or another site (INF-1190).
|
|
698
|
+
*/
|
|
699
|
+
export const ErrorCodeAdminOriginRequired = "admin_origin_required";
|
|
638
700
|
/**
|
|
639
701
|
* AdminAuthenticatorRequired (403): a platform admin without an
|
|
640
702
|
* authenticator app (TOTP) enrolled. Admin power needs one; until it is
|
|
@@ -740,6 +802,19 @@ export const ErrorCodeRemoteOffline = "remote_offline";
|
|
|
740
802
|
export const ErrorCodeRemoteTimeout = "remote_timeout";
|
|
741
803
|
export const ErrorCodeHarnessNotDrivable = "harness_not_drivable";
|
|
742
804
|
export const ErrorCodeHarnessTooOld = "harness_too_old";
|
|
805
|
+
/**
|
|
806
|
+
* PublishQuarantineNewAccount: the account is younger than the
|
|
807
|
+
* quarantine (72 hours by default); Until is when it ends.
|
|
808
|
+
*/
|
|
809
|
+
export const PublishQuarantineNewAccount = "new_account";
|
|
810
|
+
/**
|
|
811
|
+
* PublishQuarantineUnverifiedEmail: the account's email is not verified.
|
|
812
|
+
*/
|
|
813
|
+
export const PublishQuarantineUnverifiedEmail = "unverified_email";
|
|
814
|
+
/**
|
|
815
|
+
* PublishQuarantineFlagged: the account is banned or flagged.
|
|
816
|
+
*/
|
|
817
|
+
export const PublishQuarantineFlagged = "flagged";
|
|
743
818
|
export const TaskFileRoleInput = "input";
|
|
744
819
|
export const TaskFileRoleOutput = "output";
|
|
745
820
|
/**
|
|
@@ -948,6 +1023,69 @@ export const A2UIArtifact = "Artifact";
|
|
|
948
1023
|
* postMessage, and whose tools/call requests it proxies to the server.
|
|
949
1024
|
*/
|
|
950
1025
|
export const A2UIMcpApp = "McpApp";
|
|
1026
|
+
/**
|
|
1027
|
+
* DeadRunReasonModelStoppedEarly: the agent owes its output through
|
|
1028
|
+
* finish and the model ended its turn with text or reasoning and no tool
|
|
1029
|
+
* call.
|
|
1030
|
+
*/
|
|
1031
|
+
export const DeadRunReasonModelStoppedEarly = "model_stopped_early";
|
|
1032
|
+
/**
|
|
1033
|
+
* DeadRunReasonModelEmptyReply: the agent owes its output through finish
|
|
1034
|
+
* and the model ended its turn with no content.
|
|
1035
|
+
*/
|
|
1036
|
+
export const DeadRunReasonModelEmptyReply = "model_empty_reply";
|
|
1037
|
+
/**
|
|
1038
|
+
* DeadRunReasonModelOutputLimit: the agent owes its output through
|
|
1039
|
+
* finish and the model's turn was cut at its output token limit.
|
|
1040
|
+
*/
|
|
1041
|
+
export const DeadRunReasonModelOutputLimit = "model_output_limit";
|
|
1042
|
+
/**
|
|
1043
|
+
* DeadRunReasonModelRefused: the agent owes its output through finish
|
|
1044
|
+
* and the provider's safety system refused the turn of a run a trigger
|
|
1045
|
+
* started.
|
|
1046
|
+
*/
|
|
1047
|
+
export const DeadRunReasonModelRefused = "model_refused";
|
|
1048
|
+
/**
|
|
1049
|
+
* DeadRunReasonProviderError: the model call failed: the provider's or
|
|
1050
|
+
* engine's error, a timeout, or the error a remote harness reported.
|
|
1051
|
+
*/
|
|
1052
|
+
export const DeadRunReasonProviderError = "provider_error";
|
|
1053
|
+
/**
|
|
1054
|
+
* DeadRunReasonNoProgress: the platform ended a run that went quiet, or
|
|
1055
|
+
* a run a trigger started that was still working past its bound.
|
|
1056
|
+
*/
|
|
1057
|
+
export const DeadRunReasonNoProgress = "no_progress";
|
|
1058
|
+
/**
|
|
1059
|
+
* DeadRunReasonPlatformError: the run failed for the platform's own
|
|
1060
|
+
* reasons: storage, dispatch, a turn that could not start, a harness
|
|
1061
|
+
* session or remote lost.
|
|
1062
|
+
*/
|
|
1063
|
+
export const DeadRunReasonPlatformError = "platform_error";
|
|
1064
|
+
/**
|
|
1065
|
+
* DeadRunReasonOwnerSetup: a turn could not start because of something
|
|
1066
|
+
* the agent's owner has to fix: a missing secret or key, a credential
|
|
1067
|
+
* without the scope the call needs, no balance or payment method, an
|
|
1068
|
+
* agent with no model configured, an app outside the team's usage
|
|
1069
|
+
* policy.
|
|
1070
|
+
*/
|
|
1071
|
+
export const DeadRunReasonOwnerSetup = "owner_setup";
|
|
1072
|
+
/**
|
|
1073
|
+
* DeadRunSourceModel: the model ended without the output it owed.
|
|
1074
|
+
*/
|
|
1075
|
+
export const DeadRunSourceModel = "model";
|
|
1076
|
+
/**
|
|
1077
|
+
* DeadRunSourceProvider: the model's provider (or the engine running
|
|
1078
|
+
* it) failed the call.
|
|
1079
|
+
*/
|
|
1080
|
+
export const DeadRunSourceProvider = "provider";
|
|
1081
|
+
/**
|
|
1082
|
+
* DeadRunSourcePlatform: the platform failed or ended the run.
|
|
1083
|
+
*/
|
|
1084
|
+
export const DeadRunSourcePlatform = "platform";
|
|
1085
|
+
/**
|
|
1086
|
+
* DeadRunSourceOwner: the agent's owner has to fix its setup.
|
|
1087
|
+
*/
|
|
1088
|
+
export const DeadRunSourceOwner = "owner";
|
|
951
1089
|
/**
|
|
952
1090
|
* ApiKeyScopeUser is a personal key: it acts as the person who created it,
|
|
953
1091
|
* in the workspace it was created in, and ends when they can no longer
|
|
@@ -1075,6 +1213,14 @@ export const PermInteract = "interact";
|
|
|
1075
1213
|
* governed by their team/org usage policy (reach, INF-808).
|
|
1076
1214
|
*/
|
|
1077
1215
|
export const PermUse = "use";
|
|
1216
|
+
/**
|
|
1217
|
+
* PermInspect reads a row's runtime internals: a task's logs,
|
|
1218
|
+
* telemetry, webhook, setup, engine and worker. The row's owner and the
|
|
1219
|
+
* stored entries on it grant it; no visibility does. Making a task
|
|
1220
|
+
* public shares what it was asked and what it answered, not how its run
|
|
1221
|
+
* went on the machine.
|
|
1222
|
+
*/
|
|
1223
|
+
export const PermInspect = "inspect";
|
|
1078
1224
|
export const ACLGranteeUser = "user";
|
|
1079
1225
|
export const ACLGranteeTeam = "team";
|
|
1080
1226
|
export const ACLGranteeOrg = "org";
|
|
@@ -1250,6 +1396,8 @@ export const WorkerStatusReserved = "reserved";
|
|
|
1250
1396
|
export const WorkerStatusBusy = "busy";
|
|
1251
1397
|
export const WorkerStatusIdle = "idle";
|
|
1252
1398
|
export const WorkerStatusInactive = "inactive";
|
|
1399
|
+
export const WorkerKindSlot = "";
|
|
1400
|
+
export const WorkerKindApp = "app";
|
|
1253
1401
|
export const FlowRunStatusUnknown = 0;
|
|
1254
1402
|
export const FlowRunStatusPending = 1;
|
|
1255
1403
|
export const FlowRunStatusRunning = 2;
|
|
@@ -1611,6 +1759,12 @@ export const ResourceRatePerMin = "rate_per_min";
|
|
|
1611
1759
|
export const ResourceSeats = "seats";
|
|
1612
1760
|
export const ResourceTriggers = "triggers";
|
|
1613
1761
|
export const ResourceRetentionDays = "retention_days";
|
|
1762
|
+
/**
|
|
1763
|
+
* Sandboxes a team may hold placed at once, and their vCPUs together
|
|
1764
|
+
* (INF-1158). No row: the platform default (setting sandboxes.placement).
|
|
1765
|
+
*/
|
|
1766
|
+
export const ResourceSandboxes = "sandboxes";
|
|
1767
|
+
export const ResourceSandboxVCPUs = "sandbox_vcpus";
|
|
1614
1768
|
/**
|
|
1615
1769
|
* Legacy — kept for DB compatibility, no longer in plan seeds
|
|
1616
1770
|
*/
|