@amigo-ai/platform-sdk 0.86.0 → 0.88.0
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/api.md +16 -0
- package/dist/index.cjs +114 -0
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +114 -0
- package/dist/index.mjs.map +3 -3
- package/dist/resources/agent-definitions.js +61 -0
- package/dist/resources/agent-definitions.js.map +1 -0
- package/dist/resources/agent-runs.js +46 -0
- package/dist/resources/agent-runs.js.map +1 -0
- package/dist/types/generated/api.d.ts +273 -6
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/index.d.cts +4 -0
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/resources/agent-definitions.d.ts +85 -0
- package/dist/types/resources/agent-definitions.d.ts.map +1 -0
- package/dist/types/resources/agent-runs.d.ts +102 -0
- package/dist/types/resources/agent-runs.d.ts.map +1 -0
- package/dist/types/resources/external-integrations.d.ts.map +1 -1
- package/dist/types/resources/intake.d.ts.map +1 -1
- package/dist/types/resources/integrations.d.ts.map +1 -1
- package/dist/types/resources/metrics.d.ts.map +1 -1
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/surfaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { WorkspaceScopedResource, extractData } from './base.js';
|
|
2
|
+
/**
|
|
3
|
+
* Native (bring-your-own) agent definition registry — the frameworks layer's
|
|
4
|
+
* registry for native framework agents (OpenAI SDK / Anthropic SDK) that run
|
|
5
|
+
* against the platform world-model tools. Register is an idempotent push: a new
|
|
6
|
+
* content hash mints a new immutable, clamp-validated version.
|
|
7
|
+
*/
|
|
8
|
+
export class AgentDefinitionsResource extends WorkspaceScopedResource {
|
|
9
|
+
async list(params) {
|
|
10
|
+
return extractData(await this.client.GET('/v1/{workspace_id}/agent-definitions', {
|
|
11
|
+
params: { path: { workspace_id: this.workspaceId }, query: params },
|
|
12
|
+
}));
|
|
13
|
+
}
|
|
14
|
+
listAutoPaging(params) {
|
|
15
|
+
return this.iteratePaginatedList((pageParams) => this.list(pageParams), params);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Register (idempotent push) a native definition. An identical body re-push
|
|
19
|
+
* reports `created: false`; a changed body mints a new version.
|
|
20
|
+
*/
|
|
21
|
+
async register(body) {
|
|
22
|
+
return extractData(await this.client.POST('/v1/{workspace_id}/agent-definitions', {
|
|
23
|
+
params: { path: { workspace_id: this.workspaceId } },
|
|
24
|
+
body,
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
/** Dry-run clamp validation — nothing is stored; 422 with the offending paths on failure. */
|
|
28
|
+
async validate(body) {
|
|
29
|
+
return extractData(await this.client.POST('/v1/{workspace_id}/agent-definitions/validate', {
|
|
30
|
+
params: { path: { workspace_id: this.workspaceId } },
|
|
31
|
+
body,
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
|
+
async get(definitionId) {
|
|
35
|
+
return extractData(await this.client.GET('/v1/{workspace_id}/agent-definitions/{definition_id}', {
|
|
36
|
+
params: {
|
|
37
|
+
path: { workspace_id: this.workspaceId, definition_id: definitionId },
|
|
38
|
+
},
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
/** Fetch a specific immutable version, including its clamped body. */
|
|
42
|
+
async getVersion(definitionId, version) {
|
|
43
|
+
return extractData(await this.client.GET('/v1/{workspace_id}/agent-definitions/{definition_id}/versions/{version}', {
|
|
44
|
+
params: {
|
|
45
|
+
path: {
|
|
46
|
+
workspace_id: this.workspaceId,
|
|
47
|
+
definition_id: definitionId,
|
|
48
|
+
version,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
}));
|
|
52
|
+
}
|
|
53
|
+
async archive(definitionId) {
|
|
54
|
+
await this.client.DELETE('/v1/{workspace_id}/agent-definitions/{definition_id}', {
|
|
55
|
+
params: {
|
|
56
|
+
path: { workspace_id: this.workspaceId, definition_id: definitionId },
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=agent-definitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-definitions.js","sourceRoot":"","sources":["../../src/resources/agent-definitions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAahE;;;;;GAKG;AACH,MAAM,OAAO,wBAAyB,SAAQ,uBAAuB;IACnE,KAAK,CAAC,IAAI,CAAC,MAAmC;QAC5C,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,sCAAsC,EAAE;YAC5D,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;SACpE,CAAC,CACH,CAAA;IACH,CAAC;IAED,cAAc,CAAC,MAAmC;QAChD,OAAO,IAAI,CAAC,oBAAoB,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,CAAA;IACjF,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,QAAQ,CAAC,IAA6D;QAC1E,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,sCAAsC,EAAE;YAC7D,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE;YACpD,IAAI;SACL,CAAC,CACH,CAAA;IACH,CAAC;IAED,6FAA6F;IAC7F,KAAK,CAAC,QAAQ,CAAC,IAA6D;QAC1E,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,+CAA+C,EAAE;YACtE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE;YACpD,IAAI;SACL,CAAC,CACH,CAAA;IACH,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,YAAoB;QAC5B,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,sDAAsD,EAAE;YAC5E,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE;aACtE;SACF,CAAC,CACH,CAAA;IACH,CAAC;IAED,sEAAsE;IACtE,KAAK,CAAC,UAAU,CAAC,YAAoB,EAAE,OAAe;QACpD,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CACnB,yEAAyE,EACzE;YACE,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,YAAY,EAAE,IAAI,CAAC,WAAW;oBAC9B,aAAa,EAAE,YAAY;oBAC3B,OAAO;iBACR;aACF;SACF,CACF,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,YAAoB;QAChC,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,sDAAsD,EAAE;YAC/E,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE;aACtE;SACF,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { WorkspaceScopedResource, extractData } from './base.js';
|
|
2
|
+
/**
|
|
3
|
+
* Framework agent runs — the RUN + CONTEXT edges of the framework-agnostic
|
|
4
|
+
* world-model harness.
|
|
5
|
+
*
|
|
6
|
+
* Launch a message through a framework harness (OpenAI SDK / Anthropic SDK)
|
|
7
|
+
* bound to a service + version set, or a native run from a registered/inline
|
|
8
|
+
* definition; poll it to a terminal status; and fetch the retrievable harness
|
|
9
|
+
* context a run is handed. A run executes the chosen framework unmodified
|
|
10
|
+
* against the platform MCP world-tools edge.
|
|
11
|
+
*/
|
|
12
|
+
export class AgentRunsResource extends WorkspaceScopedResource {
|
|
13
|
+
/**
|
|
14
|
+
* Launch a framework agent run — a platform run (`service_id` + `framework`)
|
|
15
|
+
* or a native run (`native`). Non-blocking; returns a running `run_id`, poll
|
|
16
|
+
* {@link get}.
|
|
17
|
+
*/
|
|
18
|
+
async create(body) {
|
|
19
|
+
return extractData(await this.client.POST('/v1/{workspace_id}/agent-runs', {
|
|
20
|
+
params: { path: { workspace_id: this.workspaceId } },
|
|
21
|
+
body,
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
/** Fetch a run snapshot: status, final text, trajectory, and token usage. */
|
|
25
|
+
async get(runId) {
|
|
26
|
+
return extractData(await this.client.GET('/v1/{workspace_id}/agent-runs/{run_id}', {
|
|
27
|
+
params: { path: { workspace_id: this.workspaceId, run_id: runId } },
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The CONTEXT edge — the retrievable, framework-neutral session bootstrap a
|
|
32
|
+
* service hands an agent: identity/instructions, world scope, tool
|
|
33
|
+
* descriptors, guardrails, the real enforced write-floor, and runtime. This
|
|
34
|
+
* is the exact context a remote framework would fetch before a run.
|
|
35
|
+
*/
|
|
36
|
+
async harnessContext(params) {
|
|
37
|
+
return extractData(await this.client.GET('/v1/{workspace_id}/agent-runs/harness-context', {
|
|
38
|
+
params: {
|
|
39
|
+
path: { workspace_id: this.workspaceId },
|
|
40
|
+
// camelCase args → snake_case wire query (service_id / version_set).
|
|
41
|
+
query: { service_id: params.serviceId, version_set: params.versionSet },
|
|
42
|
+
},
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=agent-runs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-runs.js","sourceRoot":"","sources":["../../src/resources/agent-runs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAEhE;;;;;;;;;GASG;AACH,MAAM,OAAO,iBAAkB,SAAQ,uBAAuB;IAC5D;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,IAAoD;QAC/D,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,+BAA+B,EAAE;YACtD,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE;YACpD,IAAI;SACL,CAAC,CACH,CAAA;IACH,CAAC;IAED,6EAA6E;IAC7E,KAAK,CAAC,GAAG,CAAC,KAAa;QACrB,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,wCAAwC,EAAE;YAC9D,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE;SACpE,CAAC,CACH,CAAA;IACH,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAAC,MAAkD;QACrE,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,+CAA+C,EAAE;YACrE,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE;gBACxC,qEAAqE;gBACrE,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,CAAC,UAAU,EAAE;aACxE;SACF,CAAC,CACH,CAAA;IACH,CAAC;CACF"}
|
|
@@ -807,6 +807,26 @@ export interface paths {
|
|
|
807
807
|
patch?: never;
|
|
808
808
|
trace?: never;
|
|
809
809
|
};
|
|
810
|
+
"/v1/{workspace_id}/agent-runs/harness-context": {
|
|
811
|
+
parameters: {
|
|
812
|
+
query?: never;
|
|
813
|
+
header?: never;
|
|
814
|
+
path?: never;
|
|
815
|
+
cookie?: never;
|
|
816
|
+
};
|
|
817
|
+
/**
|
|
818
|
+
* Fetch the neutral session-bootstrap context for a service
|
|
819
|
+
* @description The retrievable CONTEXT edge of the world-model harness: identity + reference instructions, world scope, tool descriptors, guardrails, and the REAL server-enforced write-floor — the byte-identical projection the hosted runner renders from, so a customer's own framework can bootstrap a session against the same world model. PHI-free (the API-run projection carries no scoped entities or rendered caller prose).
|
|
820
|
+
*/
|
|
821
|
+
get: operations["get_harness_context_v1__workspace_id__agent_runs_harness_context_get"];
|
|
822
|
+
put?: never;
|
|
823
|
+
post?: never;
|
|
824
|
+
delete?: never;
|
|
825
|
+
options?: never;
|
|
826
|
+
head?: never;
|
|
827
|
+
patch?: never;
|
|
828
|
+
trace?: never;
|
|
829
|
+
};
|
|
810
830
|
"/v1/{workspace_id}/agent-runs/{run_id}": {
|
|
811
831
|
parameters: {
|
|
812
832
|
query?: never;
|
|
@@ -8237,7 +8257,7 @@ export interface components {
|
|
|
8237
8257
|
* Framework
|
|
8238
8258
|
* @enum {string}
|
|
8239
8259
|
*/
|
|
8240
|
-
framework: "claude-agent-sdk" | "openai-agents"
|
|
8260
|
+
framework: "claude-agent-sdk" | "openai-agents";
|
|
8241
8261
|
/** Name */
|
|
8242
8262
|
name: string;
|
|
8243
8263
|
/**
|
|
@@ -8268,7 +8288,7 @@ export interface components {
|
|
|
8268
8288
|
* Framework
|
|
8269
8289
|
* @enum {string}
|
|
8270
8290
|
*/
|
|
8271
|
-
framework: "claude-agent-sdk" | "openai-agents"
|
|
8291
|
+
framework: "claude-agent-sdk" | "openai-agents";
|
|
8272
8292
|
/** Name */
|
|
8273
8293
|
name: string;
|
|
8274
8294
|
/**
|
|
@@ -8296,7 +8316,7 @@ export interface components {
|
|
|
8296
8316
|
* Framework
|
|
8297
8317
|
* @enum {string}
|
|
8298
8318
|
*/
|
|
8299
|
-
framework: "claude-agent-sdk" | "openai-agents"
|
|
8319
|
+
framework: "claude-agent-sdk" | "openai-agents";
|
|
8300
8320
|
/** Has Write Tools */
|
|
8301
8321
|
has_write_tools: boolean;
|
|
8302
8322
|
/** Validator Rev */
|
|
@@ -8317,6 +8337,46 @@ export interface components {
|
|
|
8317
8337
|
/** Version */
|
|
8318
8338
|
version: number;
|
|
8319
8339
|
};
|
|
8340
|
+
/**
|
|
8341
|
+
* AgentIdentity
|
|
8342
|
+
* @description Who the agent IS — platform-authored only; ``None`` for native runs
|
|
8343
|
+
* (a customer's own definition carries its own identity). Named
|
|
8344
|
+
* ``AgentIdentity`` (not ``Identity``) to avoid colliding with the existing
|
|
8345
|
+
* ``config.models.Identity`` OpenAPI schema (a same-name collision would
|
|
8346
|
+
* force-rename that shipped schema — a breaking spec change).
|
|
8347
|
+
*/
|
|
8348
|
+
AgentIdentity: {
|
|
8349
|
+
/**
|
|
8350
|
+
* Developed By
|
|
8351
|
+
* @default
|
|
8352
|
+
*/
|
|
8353
|
+
developed_by?: string;
|
|
8354
|
+
/**
|
|
8355
|
+
* Entry Actor Name
|
|
8356
|
+
* @default
|
|
8357
|
+
*/
|
|
8358
|
+
entry_actor_name?: string;
|
|
8359
|
+
/**
|
|
8360
|
+
* Initial State
|
|
8361
|
+
* @default
|
|
8362
|
+
*/
|
|
8363
|
+
initial_state?: string;
|
|
8364
|
+
/**
|
|
8365
|
+
* Instructions
|
|
8366
|
+
* @default
|
|
8367
|
+
*/
|
|
8368
|
+
instructions?: string;
|
|
8369
|
+
/**
|
|
8370
|
+
* Name
|
|
8371
|
+
* @default
|
|
8372
|
+
*/
|
|
8373
|
+
name?: string;
|
|
8374
|
+
/**
|
|
8375
|
+
* Role
|
|
8376
|
+
* @default
|
|
8377
|
+
*/
|
|
8378
|
+
role?: string;
|
|
8379
|
+
};
|
|
8320
8380
|
/** AgentResponse */
|
|
8321
8381
|
AgentResponse: {
|
|
8322
8382
|
/**
|
|
@@ -16017,6 +16077,26 @@ export interface components {
|
|
|
16017
16077
|
/** Name */
|
|
16018
16078
|
name: string;
|
|
16019
16079
|
};
|
|
16080
|
+
/** Guardrails */
|
|
16081
|
+
Guardrails: {
|
|
16082
|
+
/**
|
|
16083
|
+
* Global Action Guidelines
|
|
16084
|
+
* @default []
|
|
16085
|
+
*/
|
|
16086
|
+
global_action_guidelines?: string[];
|
|
16087
|
+
/**
|
|
16088
|
+
* Global Boundary Constraints
|
|
16089
|
+
* @default []
|
|
16090
|
+
*/
|
|
16091
|
+
global_boundary_constraints?: string[];
|
|
16092
|
+
/**
|
|
16093
|
+
* Guardrails
|
|
16094
|
+
* @default []
|
|
16095
|
+
*/
|
|
16096
|
+
guardrails?: {
|
|
16097
|
+
[key: string]: unknown;
|
|
16098
|
+
}[];
|
|
16099
|
+
};
|
|
16020
16100
|
/** HTTPValidationError */
|
|
16021
16101
|
HTTPValidationError: {
|
|
16022
16102
|
/** Detail */
|
|
@@ -16059,6 +16139,33 @@ export interface components {
|
|
|
16059
16139
|
/** Regulatory Basis */
|
|
16060
16140
|
regulatory_basis: string;
|
|
16061
16141
|
};
|
|
16142
|
+
/**
|
|
16143
|
+
* HarnessContext
|
|
16144
|
+
* @description The neutral, retrievable session-bootstrap context for ANY framework.
|
|
16145
|
+
*/
|
|
16146
|
+
HarnessContext: {
|
|
16147
|
+
/**
|
|
16148
|
+
* Config Fingerprint
|
|
16149
|
+
* @default
|
|
16150
|
+
*/
|
|
16151
|
+
config_fingerprint?: string;
|
|
16152
|
+
/**
|
|
16153
|
+
* Context Version
|
|
16154
|
+
* @default 1
|
|
16155
|
+
*/
|
|
16156
|
+
context_version?: number;
|
|
16157
|
+
guardrails: components["schemas"]["Guardrails"];
|
|
16158
|
+
identity?: components["schemas"]["AgentIdentity"] | null;
|
|
16159
|
+
runtime: components["schemas"]["Runtime"];
|
|
16160
|
+
/**
|
|
16161
|
+
* Source
|
|
16162
|
+
* @default
|
|
16163
|
+
*/
|
|
16164
|
+
source?: string;
|
|
16165
|
+
tools: components["schemas"]["Tools"];
|
|
16166
|
+
world_scope: components["schemas"]["WorldScope"];
|
|
16167
|
+
write_floor: components["schemas"]["WriteFloor"];
|
|
16168
|
+
};
|
|
16062
16169
|
/** HealFieldRequest */
|
|
16063
16170
|
HealFieldRequest: {
|
|
16064
16171
|
/** Context */
|
|
@@ -20394,7 +20501,7 @@ export interface components {
|
|
|
20394
20501
|
* Framework
|
|
20395
20502
|
* @enum {string}
|
|
20396
20503
|
*/
|
|
20397
|
-
framework: "claude-agent-sdk" | "openai-agents"
|
|
20504
|
+
framework: "claude-agent-sdk" | "openai-agents";
|
|
20398
20505
|
/** Has Write Tools */
|
|
20399
20506
|
has_write_tools: boolean;
|
|
20400
20507
|
/** Version */
|
|
@@ -21114,6 +21221,29 @@ export interface components {
|
|
|
21114
21221
|
/** Tags */
|
|
21115
21222
|
tags?: string[];
|
|
21116
21223
|
};
|
|
21224
|
+
/** Runtime */
|
|
21225
|
+
Runtime: {
|
|
21226
|
+
/**
|
|
21227
|
+
* Caller Context
|
|
21228
|
+
* @default
|
|
21229
|
+
*/
|
|
21230
|
+
caller_context?: string;
|
|
21231
|
+
/**
|
|
21232
|
+
* Channel Kind
|
|
21233
|
+
* @default
|
|
21234
|
+
*/
|
|
21235
|
+
channel_kind?: string;
|
|
21236
|
+
/**
|
|
21237
|
+
* Engage Model
|
|
21238
|
+
* @default
|
|
21239
|
+
*/
|
|
21240
|
+
engage_model?: string;
|
|
21241
|
+
/**
|
|
21242
|
+
* Language
|
|
21243
|
+
* @default
|
|
21244
|
+
*/
|
|
21245
|
+
language?: string;
|
|
21246
|
+
};
|
|
21117
21247
|
/** SafetyState */
|
|
21118
21248
|
SafetyState: {
|
|
21119
21249
|
/**
|
|
@@ -24965,6 +25095,23 @@ export interface components {
|
|
|
24965
25095
|
*/
|
|
24966
25096
|
type: "tool_call_started";
|
|
24967
25097
|
};
|
|
25098
|
+
/** ToolDescriptor */
|
|
25099
|
+
ToolDescriptor: {
|
|
25100
|
+
/**
|
|
25101
|
+
* Description
|
|
25102
|
+
* @default
|
|
25103
|
+
*/
|
|
25104
|
+
description?: string;
|
|
25105
|
+
/**
|
|
25106
|
+
* Input Schema
|
|
25107
|
+
* @default {}
|
|
25108
|
+
*/
|
|
25109
|
+
input_schema?: {
|
|
25110
|
+
[key: string]: unknown;
|
|
25111
|
+
};
|
|
25112
|
+
/** Name */
|
|
25113
|
+
name: string;
|
|
25114
|
+
};
|
|
24968
25115
|
/** ToolExecuteRequest */
|
|
24969
25116
|
ToolExecuteRequest: {
|
|
24970
25117
|
/**
|
|
@@ -25089,6 +25236,28 @@ export interface components {
|
|
|
25089
25236
|
*/
|
|
25090
25237
|
total_calls?: number;
|
|
25091
25238
|
};
|
|
25239
|
+
/**
|
|
25240
|
+
* Tools
|
|
25241
|
+
* @description Discovery hint — the neutral descriptors. NOT the enforcement (the MCP
|
|
25242
|
+
* edge is; a remote agent discovers live schemas from the server too).
|
|
25243
|
+
*/
|
|
25244
|
+
Tools: {
|
|
25245
|
+
/**
|
|
25246
|
+
* Descriptors
|
|
25247
|
+
* @default []
|
|
25248
|
+
*/
|
|
25249
|
+
descriptors?: components["schemas"]["ToolDescriptor"][];
|
|
25250
|
+
/**
|
|
25251
|
+
* Read Tool Names
|
|
25252
|
+
* @default []
|
|
25253
|
+
*/
|
|
25254
|
+
read_tool_names?: string[];
|
|
25255
|
+
/**
|
|
25256
|
+
* Write Tool Names
|
|
25257
|
+
* @default []
|
|
25258
|
+
*/
|
|
25259
|
+
write_tool_names?: string[];
|
|
25260
|
+
};
|
|
25092
25261
|
/**
|
|
25093
25262
|
* TraceAnalysisListItem
|
|
25094
25263
|
* @description Compact summary of a trace analysis row for list views.
|
|
@@ -26651,7 +26820,7 @@ export interface components {
|
|
|
26651
26820
|
* Framework
|
|
26652
26821
|
* @enum {string}
|
|
26653
26822
|
*/
|
|
26654
|
-
framework: "claude-agent-sdk" | "openai-agents"
|
|
26823
|
+
framework: "claude-agent-sdk" | "openai-agents";
|
|
26655
26824
|
/** Has Write Tools */
|
|
26656
26825
|
has_write_tools: boolean;
|
|
26657
26826
|
/**
|
|
@@ -27260,6 +27429,28 @@ export interface components {
|
|
|
27260
27429
|
/** Sources */
|
|
27261
27430
|
sources?: components["schemas"]["SourceBreakdownItem"][];
|
|
27262
27431
|
};
|
|
27432
|
+
/**
|
|
27433
|
+
* WorldScope
|
|
27434
|
+
* @description The world slice — ids only (the leaf stays I/O-free). This is the
|
|
27435
|
+
* read/subject scope, NOT the write bound (see ``write_floor``).
|
|
27436
|
+
*/
|
|
27437
|
+
WorldScope: {
|
|
27438
|
+
/**
|
|
27439
|
+
* Allow Create
|
|
27440
|
+
* @default false
|
|
27441
|
+
*/
|
|
27442
|
+
allow_create?: boolean;
|
|
27443
|
+
/**
|
|
27444
|
+
* Scoped Entity Ids
|
|
27445
|
+
* @default []
|
|
27446
|
+
*/
|
|
27447
|
+
scoped_entity_ids?: string[];
|
|
27448
|
+
/**
|
|
27449
|
+
* Workspace Id
|
|
27450
|
+
* Format: uuid
|
|
27451
|
+
*/
|
|
27452
|
+
workspace_id: string;
|
|
27453
|
+
};
|
|
27263
27454
|
/**
|
|
27264
27455
|
* WrapUpRequest
|
|
27265
27456
|
* @description Request to record operator intervention wrap-up.
|
|
@@ -27283,6 +27474,48 @@ export interface components {
|
|
|
27283
27474
|
/** Success */
|
|
27284
27475
|
success: boolean;
|
|
27285
27476
|
};
|
|
27477
|
+
/**
|
|
27478
|
+
* WriteFloor
|
|
27479
|
+
* @description The REAL server-enforced write bound (audit G8) — advisory to render;
|
|
27480
|
+
* the MCP edge enforces it regardless of what a client does.
|
|
27481
|
+
*/
|
|
27482
|
+
WriteFloor: {
|
|
27483
|
+
/**
|
|
27484
|
+
* Allow Create
|
|
27485
|
+
* @default false
|
|
27486
|
+
*/
|
|
27487
|
+
allow_create?: boolean;
|
|
27488
|
+
/**
|
|
27489
|
+
* Clinical Write Principal
|
|
27490
|
+
* @default provider-only
|
|
27491
|
+
*/
|
|
27492
|
+
clinical_write_principal?: string;
|
|
27493
|
+
/**
|
|
27494
|
+
* Clinical Write Scope
|
|
27495
|
+
* @default any-entity-in-workspace
|
|
27496
|
+
*/
|
|
27497
|
+
clinical_write_scope?: string;
|
|
27498
|
+
/**
|
|
27499
|
+
* Enforced At
|
|
27500
|
+
* @default mcp-world-tools-edge
|
|
27501
|
+
*/
|
|
27502
|
+
enforced_at?: string;
|
|
27503
|
+
/**
|
|
27504
|
+
* Enrichment Write Scope
|
|
27505
|
+
* @default caller-anchor-only
|
|
27506
|
+
*/
|
|
27507
|
+
enrichment_write_scope?: string;
|
|
27508
|
+
/**
|
|
27509
|
+
* Requires Entity Anchor
|
|
27510
|
+
* @default true
|
|
27511
|
+
*/
|
|
27512
|
+
requires_entity_anchor?: boolean;
|
|
27513
|
+
/**
|
|
27514
|
+
* Unanchored Or Api Key Writes
|
|
27515
|
+
* @default none
|
|
27516
|
+
*/
|
|
27517
|
+
unanchored_or_api_key_writes?: string;
|
|
27518
|
+
};
|
|
27286
27519
|
/** @enum {string} */
|
|
27287
27520
|
_Access: "read" | "write";
|
|
27288
27521
|
_DatasetSlug: string;
|
|
@@ -30016,7 +30249,7 @@ export interface operations {
|
|
|
30016
30249
|
list_agent_definitions_v1__workspace_id__agent_definitions_get: {
|
|
30017
30250
|
parameters: {
|
|
30018
30251
|
query?: {
|
|
30019
|
-
framework?: ("claude-agent-sdk" | "openai-agents"
|
|
30252
|
+
framework?: ("claude-agent-sdk" | "openai-agents") | null;
|
|
30020
30253
|
include_archived?: boolean;
|
|
30021
30254
|
limit?: number;
|
|
30022
30255
|
continuation_token?: unknown;
|
|
@@ -30249,6 +30482,40 @@ export interface operations {
|
|
|
30249
30482
|
};
|
|
30250
30483
|
};
|
|
30251
30484
|
};
|
|
30485
|
+
get_harness_context_v1__workspace_id__agent_runs_harness_context_get: {
|
|
30486
|
+
parameters: {
|
|
30487
|
+
query: {
|
|
30488
|
+
service_id: string;
|
|
30489
|
+
version_set?: string;
|
|
30490
|
+
};
|
|
30491
|
+
header?: never;
|
|
30492
|
+
path: {
|
|
30493
|
+
workspace_id: string;
|
|
30494
|
+
};
|
|
30495
|
+
cookie?: never;
|
|
30496
|
+
};
|
|
30497
|
+
requestBody?: never;
|
|
30498
|
+
responses: {
|
|
30499
|
+
/** @description Successful Response */
|
|
30500
|
+
200: {
|
|
30501
|
+
headers: {
|
|
30502
|
+
[name: string]: unknown;
|
|
30503
|
+
};
|
|
30504
|
+
content: {
|
|
30505
|
+
"application/json": components["schemas"]["HarnessContext"];
|
|
30506
|
+
};
|
|
30507
|
+
};
|
|
30508
|
+
/** @description Validation Error */
|
|
30509
|
+
422: {
|
|
30510
|
+
headers: {
|
|
30511
|
+
[name: string]: unknown;
|
|
30512
|
+
};
|
|
30513
|
+
content: {
|
|
30514
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
30515
|
+
};
|
|
30516
|
+
};
|
|
30517
|
+
};
|
|
30518
|
+
};
|
|
30252
30519
|
get_agent_run_v1__workspace_id__agent_runs__run_id__get: {
|
|
30253
30520
|
parameters: {
|
|
30254
30521
|
query?: never;
|