@atlanai/sdk 0.2.2 → 0.2.4
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/README.md +6 -2
- package/dist/client.d.ts +20 -3
- package/dist/client.js +130 -9
- package/dist/errors.d.ts +10 -0
- package/dist/errors.js +34 -1
- package/dist/evals.d.ts +135 -8
- package/dist/evals.js +1004 -73
- package/dist/index.d.ts +3 -2
- package/dist/index.js +7 -1
- package/dist/manifest.json +84 -11
- package/dist/raw/agent/apis/AgentsApi.d.ts +29 -0
- package/dist/raw/agent/apis/AgentsApi.js +62 -1
- package/dist/raw/agent/apis/SessionsApi.d.ts +2 -2
- package/dist/raw/agent/apis/SessionsApi.js +2 -2
- package/dist/raw/agent/models/AgentAgentArtifactView.d.ts +48 -0
- package/dist/raw/agent/models/AgentAgentArtifactView.js +13 -0
- package/dist/raw/agent/models/AgentAgentEnvironmentArtifactView.d.ts +12 -0
- package/dist/raw/agent/models/AgentAgentEnvironmentArtifactView.js +2 -0
- package/dist/raw/agent/models/AgentAgentEnvironmentMeta.d.ts +12 -0
- package/dist/raw/agent/models/AgentAgentEnvironmentMeta.js +2 -0
- package/dist/raw/agent/models/AgentAgentMeta.d.ts +48 -0
- package/dist/raw/agent/models/AgentAgentMeta.js +13 -0
- package/dist/raw/agent/models/AgentAgentProviderArtifactView.d.ts +55 -2
- package/dist/raw/agent/models/AgentAgentProviderArtifactView.js +8 -0
- package/dist/raw/agent/models/AgentAgentProviderCreate.d.ts +24 -3
- package/dist/raw/agent/models/AgentAgentProviderCreate.js +4 -0
- package/dist/raw/agent/models/AgentAgentProviderMeta.d.ts +56 -13
- package/dist/raw/agent/models/AgentAgentProviderMeta.js +8 -0
- package/dist/raw/agent/models/AgentAgentProviderPatch.d.ts +13 -0
- package/dist/raw/agent/models/AgentAgentProviderPatch.js +4 -0
- package/dist/raw/agent/models/AgentAgentProviderType.d.ts +19 -9
- package/dist/raw/agent/models/AgentAgentProviderType.js +18 -8
- package/dist/raw/agent/models/AgentListAgentFrameworks401Response.d.ts +1 -0
- package/dist/raw/agent/models/AgentListAgentFrameworks401Response.js +1 -0
- package/dist/raw/agent/models/AgentPageSessionEventView.d.ts +3 -3
- package/dist/raw/agent/models/AgentPageSessionEventView.js +3 -3
- package/dist/raw/agent/models/AgentRemoteSessionEvent.d.ts +38 -0
- package/dist/raw/agent/models/AgentRemoteSessionEvent.js +58 -0
- package/dist/raw/agent/models/AgentSessionArtifactView.d.ts +25 -0
- package/dist/raw/agent/models/AgentSessionArtifactView.js +2 -0
- package/dist/raw/agent/models/AgentSessionEventView.d.ts +30 -0
- package/dist/raw/agent/models/AgentSessionEventView.js +57 -0
- package/dist/raw/agent/models/AgentSessionMeta.d.ts +25 -0
- package/dist/raw/agent/models/AgentSessionMeta.js +2 -0
- package/dist/raw/agent/models/AgentSessionStreamFrame.d.ts +8 -6
- package/dist/raw/agent/models/AgentSessionStreamFrame.js +7 -0
- package/dist/raw/agent/models/AgentSyncState.d.ts +27 -0
- package/dist/raw/agent/models/AgentSyncState.js +55 -0
- package/dist/raw/agent/models/TriggerBody.d.ts +52 -0
- package/dist/raw/agent/models/TriggerBody.js +58 -0
- package/dist/raw/agent/models/index.d.ts +4 -1
- package/dist/raw/agent/models/index.js +4 -1
- package/dist/raw/eval/models/EvalListDatasets401Response.d.ts +1 -0
- package/dist/raw/eval/models/EvalListDatasets401Response.js +1 -0
- package/dist/raw/file/models/FileList401Response.d.ts +1 -0
- package/dist/raw/file/models/FileList401Response.js +1 -0
- package/dist/raw/mcp/apis/ServersApi.d.ts +2 -2
- package/dist/raw/mcp/apis/ServersApi.js +2 -2
- package/dist/raw/mcp/models/McpConnectionState.d.ts +2 -1
- package/dist/raw/mcp/models/McpConnectionState.js +2 -1
- package/dist/raw/mcp/models/McpListServers401Response.d.ts +1 -0
- package/dist/raw/mcp/models/McpListServers401Response.js +1 -0
- package/dist/raw/mcp/models/McpServerTestResponse.d.ts +13 -2
- package/dist/raw/model/models/ModelListProviders401Response.d.ts +1 -0
- package/dist/raw/model/models/ModelListProviders401Response.js +1 -0
- package/dist/raw/registry/apis/WorkspacesApi.d.ts +28 -0
- package/dist/raw/registry/apis/WorkspacesApi.js +61 -1
- package/dist/raw/registry/models/CreateWorkspaceBody.d.ts +9 -0
- package/dist/raw/registry/models/CreateWorkspaceBody.js +2 -0
- package/dist/raw/registry/models/RegistryAggregate401Response.d.ts +1 -0
- package/dist/raw/registry/models/RegistryAggregate401Response.js +1 -0
- package/dist/raw/registry/models/RegistryWorkspaceView.d.ts +9 -0
- package/dist/raw/registry/models/RegistryWorkspaceView.js +4 -0
- package/dist/raw/registry/models/SearchRequest.d.ts +1 -1
- package/dist/raw/registry/models/SetVisibilityBody.d.ts +33 -0
- package/dist/raw/registry/models/SetVisibilityBody.js +50 -0
- package/dist/raw/registry/models/index.d.ts +1 -0
- package/dist/raw/registry/models/index.js +1 -0
- package/dist/raw/secret/apis/OauthApi.d.ts +143 -0
- package/dist/raw/secret/apis/OauthApi.js +335 -0
- package/dist/raw/secret/apis/index.d.ts +1 -0
- package/dist/raw/secret/apis/index.js +19 -0
- package/dist/raw/secret/index.d.ts +1 -0
- package/dist/raw/secret/index.js +1 -0
- package/dist/raw/secret/models/GatewayOauthCompleteRequest.d.ts +32 -0
- package/dist/raw/secret/models/GatewayOauthCompleteRequest.js +50 -0
- package/dist/raw/secret/models/GatewayOauthCompletion.d.ts +46 -0
- package/dist/raw/secret/models/GatewayOauthCompletion.js +55 -0
- package/dist/raw/secret/models/GatewayOauthConnection.d.ts +83 -0
- package/dist/raw/secret/models/GatewayOauthConnection.js +83 -0
- package/dist/raw/secret/models/GatewayOauthOwner.d.ts +31 -0
- package/dist/raw/secret/models/GatewayOauthOwner.js +59 -0
- package/dist/raw/secret/models/GatewayOauthProviderView.d.ts +69 -0
- package/dist/raw/secret/models/GatewayOauthProviderView.js +69 -0
- package/dist/raw/secret/models/GatewayOauthStartRequest.d.ts +52 -0
- package/dist/raw/secret/models/GatewayOauthStartRequest.js +59 -0
- package/dist/raw/secret/models/GatewayOauthStarted.d.ts +39 -0
- package/dist/raw/secret/models/GatewayOauthStarted.js +54 -0
- package/dist/raw/secret/models/SecretCompleteOauth400Response.d.ts +70 -0
- package/dist/raw/secret/models/SecretCompleteOauth400Response.js +80 -0
- package/dist/raw/secret/models/SecretCompleteOauth413Response.d.ts +64 -0
- package/dist/raw/secret/models/SecretCompleteOauth413Response.js +74 -0
- package/dist/raw/secret/models/SecretCompleteOauth415Response.d.ts +64 -0
- package/dist/raw/secret/models/SecretCompleteOauth415Response.js +74 -0
- package/dist/raw/secret/models/SecretCompleteOauth422Response.d.ts +63 -0
- package/dist/raw/secret/models/SecretCompleteOauth422Response.js +75 -0
- package/dist/raw/secret/models/SecretDisconnectOauth400Response.d.ts +67 -0
- package/dist/raw/secret/models/SecretDisconnectOauth400Response.js +77 -0
- package/dist/raw/secret/models/SecretOauthCallback400Response.d.ts +68 -0
- package/dist/raw/secret/models/SecretOauthCallback400Response.js +78 -0
- package/dist/raw/secret/models/SecretOauthCallback401Response.d.ts +80 -0
- package/dist/raw/secret/models/SecretOauthCallback401Response.js +90 -0
- package/dist/raw/secret/models/SecretOauthCallback403Response.d.ts +66 -0
- package/dist/raw/secret/models/SecretOauthCallback403Response.js +76 -0
- package/dist/raw/secret/models/SecretOauthCallback404Response.d.ts +65 -0
- package/dist/raw/secret/models/SecretOauthCallback404Response.js +75 -0
- package/dist/raw/secret/models/SecretOauthCallback500Response.d.ts +64 -0
- package/dist/raw/secret/models/SecretOauthCallback500Response.js +74 -0
- package/dist/raw/secret/models/SecretOauthCallback503Response.d.ts +66 -0
- package/dist/raw/secret/models/SecretOauthCallback503Response.js +76 -0
- package/dist/raw/secret/models/SecretOauthCallback504Response.d.ts +63 -0
- package/dist/raw/secret/models/SecretOauthCallback504Response.js +75 -0
- package/dist/raw/secret/models/index.d.ts +19 -0
- package/dist/raw/secret/models/index.js +19 -0
- package/dist/raw/skill/models/SkillInsightSchemas401Response.d.ts +1 -0
- package/dist/raw/skill/models/SkillInsightSchemas401Response.js +1 -0
- package/dist/resource-types.d.ts +670 -0
- package/dist/resource-types.js +2 -0
- package/dist/resources.d.ts +10 -0
- package/dist/resources.js +54 -4
- package/dist/resources.json +86 -0
- package/dist/tracing/client.d.ts +8 -1
- package/dist/tracing/client.js +43 -16
- package/dist/tracing/config.d.ts +3 -1
- package/dist/tracing/config.js +7 -2
- package/dist/tracing/exporter.d.ts +19 -1
- package/dist/tracing/exporter.js +56 -14
- package/dist/tracing/propagation.d.ts +2 -0
- package/dist/tracing/propagation.js +16 -0
- package/dist/tracing/semconv.d.ts +4 -0
- package/dist/tracing/semconv.js +14 -2
- package/dist/tracing/spans.d.ts +2 -0
- package/dist/tracing/spans.js +12 -1
- package/dist/tracing/version.d.ts +1 -1
- package/dist/tracing/version.js +1 -1
- package/package.json +1 -1
- package/dist/raw/agent/models/Box.d.ts +0 -342
- package/dist/raw/agent/models/Box.js +0 -167
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Harness and agent catalog
|
|
6
|
+
* A `harness` is a tool a human drives; an `agent` is built with an `agent_framework` and run on an `agent_provider`. The gateway executes neither. This surface is the typed catalog for both — plus the `agent_framework` and `harness_vendor` catalogs, the `agent_provider` substrate, the `agent_environment` sandbox, and the `session`/`session_message` run history — the one agent run-trigger, live session reads (poll + SSE), and the access-controlled trace facade.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAgentRemoteSessionEvent = instanceOfAgentRemoteSessionEvent;
|
|
17
|
+
exports.AgentRemoteSessionEventFromJSON = AgentRemoteSessionEventFromJSON;
|
|
18
|
+
exports.AgentRemoteSessionEventFromJSONTyped = AgentRemoteSessionEventFromJSONTyped;
|
|
19
|
+
exports.AgentRemoteSessionEventToJSON = AgentRemoteSessionEventToJSON;
|
|
20
|
+
exports.AgentRemoteSessionEventToJSONTyped = AgentRemoteSessionEventToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentRemoteSessionEvent interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentRemoteSessionEvent(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AgentRemoteSessionEventFromJSON(json) {
|
|
28
|
+
return AgentRemoteSessionEventFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AgentRemoteSessionEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
if (!ignoreDiscriminator) {
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
38
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AgentRemoteSessionEventToJSON(json) {
|
|
42
|
+
return AgentRemoteSessionEventToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AgentRemoteSessionEventToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
if (!ignoreDiscriminator) {
|
|
49
|
+
switch (value['type']) {
|
|
50
|
+
default:
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value['id'],
|
|
56
|
+
'type': value['type'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -320,6 +320,31 @@ export interface AgentSessionArtifactView {
|
|
|
320
320
|
* @memberof AgentSessionArtifactView
|
|
321
321
|
*/
|
|
322
322
|
modelId?: string;
|
|
323
|
+
/**
|
|
324
|
+
* The provider's own session id, for a run the gateway triggered on a
|
|
325
|
+
* delegating `agent_provider`. Absent for every uploaded transcript, which is
|
|
326
|
+
* what makes it the discriminator the read path branches on: a session with
|
|
327
|
+
* one is read through to the provider for live status and events, a session
|
|
328
|
+
* without one is served from its stored artifacts.
|
|
329
|
+
*
|
|
330
|
+
* **Written by the run-trigger, and not published on `SessionCreate`.** A
|
|
331
|
+
* caller can still reach it through the generic
|
|
332
|
+
* `POST /registry/v1/artifacts/session` route, and the blast radius of that is
|
|
333
|
+
* deliberately bounded rather than blocked: the read-through resolves its
|
|
334
|
+
* credential from the session's own `agent_provider_id`, which must be a row
|
|
335
|
+
* in the caller's tenant holding the caller's own API key — so a forged handle
|
|
336
|
+
* can only read a session in the workspace that caller already owns. It is
|
|
337
|
+
* self-harm, the same footing `agent.update.pre`'s tamper-restore leaves its
|
|
338
|
+
* own remote identity on.
|
|
339
|
+
*
|
|
340
|
+
* What *is* refused outright is a harness session carrying one
|
|
341
|
+
* ([`crate::hooks::session_create_pre`]), because that subject can never
|
|
342
|
+
* satisfy the read-through and the handle could only point at an unrelated
|
|
343
|
+
* run.
|
|
344
|
+
* @type {string}
|
|
345
|
+
* @memberof AgentSessionArtifactView
|
|
346
|
+
*/
|
|
347
|
+
remoteSessionId?: string | null;
|
|
323
348
|
/**
|
|
324
349
|
*
|
|
325
350
|
* @type {AgentSessionStatus}
|
|
@@ -107,6 +107,7 @@ function AgentSessionArtifactViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
107
107
|
'isSubjectSystem': json['is_subject_system'] == null ? undefined : json['is_subject_system'],
|
|
108
108
|
'messageCount': json['message_count'] == null ? undefined : json['message_count'],
|
|
109
109
|
'modelId': json['model_id'] == null ? undefined : json['model_id'],
|
|
110
|
+
'remoteSessionId': json['remote_session_id'] === undefined ? undefined : json['remote_session_id'] === null ? null : json['remote_session_id'],
|
|
110
111
|
'sessionStatus': json['session_status'] == null ? undefined : (0, AgentSessionStatus_1.AgentSessionStatusFromJSON)(json['session_status']),
|
|
111
112
|
'stopReason': json['stop_reason'] === undefined ? undefined : json['stop_reason'] === null ? null : json['stop_reason'],
|
|
112
113
|
'subjectId': json['subject_id'] == null ? undefined : json['subject_id'],
|
|
@@ -174,6 +175,7 @@ function AgentSessionArtifactViewToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
174
175
|
'is_subject_system': value['isSubjectSystem'],
|
|
175
176
|
'message_count': value['messageCount'],
|
|
176
177
|
'model_id': value['modelId'],
|
|
178
|
+
'remote_session_id': value['remoteSessionId'],
|
|
177
179
|
'session_status': (0, AgentSessionStatus_1.AgentSessionStatusToJSON)(value['sessionStatus']),
|
|
178
180
|
'stop_reason': value['stopReason'],
|
|
179
181
|
'subject_id': value['subjectId'],
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Harness and agent catalog
|
|
3
|
+
* A `harness` is a tool a human drives; an `agent` is built with an `agent_framework` and run on an `agent_provider`. The gateway executes neither. This surface is the typed catalog for both — plus the `agent_framework` and `harness_vendor` catalogs, the `agent_provider` substrate, the `agent_environment` sandbox, and the `session`/`session_message` run history — the one agent run-trigger, live session reads (poll + SSE), and the access-controlled trace facade.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AgentRemoteSessionEvent } from './AgentRemoteSessionEvent';
|
|
13
|
+
import type { AgentSessionMessageArtifactView } from './AgentSessionMessageArtifactView';
|
|
14
|
+
/**
|
|
15
|
+
* @type AgentSessionEventView
|
|
16
|
+
* One item of a session's event log.
|
|
17
|
+
*
|
|
18
|
+
* A `oneOf` over two shapes, because a session's log has two possible origins
|
|
19
|
+
* and they are not the same vocabulary: an uploaded transcript is
|
|
20
|
+
* `session_message` artifacts the gateway defined, and a delegated run's log is
|
|
21
|
+
* the provider's own events. Normalizing the second onto the first is the
|
|
22
|
+
* tempting move and the wrong one — it would silently drop whatever the provider
|
|
23
|
+
* adds next, and the provider owns that vocabulary.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
export type AgentSessionEventView = AgentRemoteSessionEvent | AgentSessionMessageArtifactView;
|
|
27
|
+
export declare function AgentSessionEventViewFromJSON(json: any): AgentSessionEventView;
|
|
28
|
+
export declare function AgentSessionEventViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentSessionEventView;
|
|
29
|
+
export declare function AgentSessionEventViewToJSON(json: any): any;
|
|
30
|
+
export declare function AgentSessionEventViewToJSONTyped(value?: AgentSessionEventView | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Harness and agent catalog
|
|
6
|
+
* A `harness` is a tool a human drives; an `agent` is built with an `agent_framework` and run on an `agent_provider`. The gateway executes neither. This surface is the typed catalog for both — plus the `agent_framework` and `harness_vendor` catalogs, the `agent_provider` substrate, the `agent_environment` sandbox, and the `session`/`session_message` run history — the one agent run-trigger, live session reads (poll + SSE), and the access-controlled trace facade.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AgentSessionEventViewFromJSON = AgentSessionEventViewFromJSON;
|
|
17
|
+
exports.AgentSessionEventViewFromJSONTyped = AgentSessionEventViewFromJSONTyped;
|
|
18
|
+
exports.AgentSessionEventViewToJSON = AgentSessionEventViewToJSON;
|
|
19
|
+
exports.AgentSessionEventViewToJSONTyped = AgentSessionEventViewToJSONTyped;
|
|
20
|
+
const AgentRemoteSessionEvent_1 = require("./AgentRemoteSessionEvent");
|
|
21
|
+
const AgentSessionMessageArtifactView_1 = require("./AgentSessionMessageArtifactView");
|
|
22
|
+
function AgentSessionEventViewFromJSON(json) {
|
|
23
|
+
return AgentSessionEventViewFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
function AgentSessionEventViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
if (typeof json !== 'object') {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
if ((0, AgentRemoteSessionEvent_1.instanceOfAgentRemoteSessionEvent)(json)) {
|
|
33
|
+
return (0, AgentRemoteSessionEvent_1.AgentRemoteSessionEventFromJSONTyped)(json, true);
|
|
34
|
+
}
|
|
35
|
+
if ((0, AgentSessionMessageArtifactView_1.instanceOfAgentSessionMessageArtifactView)(json)) {
|
|
36
|
+
return (0, AgentSessionMessageArtifactView_1.AgentSessionMessageArtifactViewFromJSONTyped)(json, true);
|
|
37
|
+
}
|
|
38
|
+
return {};
|
|
39
|
+
}
|
|
40
|
+
function AgentSessionEventViewToJSON(json) {
|
|
41
|
+
return AgentSessionEventViewToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AgentSessionEventViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
if (typeof value !== 'object') {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
if ((0, AgentRemoteSessionEvent_1.instanceOfAgentRemoteSessionEvent)(value)) {
|
|
51
|
+
return (0, AgentRemoteSessionEvent_1.AgentRemoteSessionEventToJSON)(value);
|
|
52
|
+
}
|
|
53
|
+
if ((0, AgentSessionMessageArtifactView_1.instanceOfAgentSessionMessageArtifactView)(value)) {
|
|
54
|
+
return (0, AgentSessionMessageArtifactView_1.AgentSessionMessageArtifactViewToJSON)(value);
|
|
55
|
+
}
|
|
56
|
+
return {};
|
|
57
|
+
}
|
|
@@ -91,6 +91,31 @@ export interface AgentSessionMeta {
|
|
|
91
91
|
* @memberof AgentSessionMeta
|
|
92
92
|
*/
|
|
93
93
|
modelId?: string;
|
|
94
|
+
/**
|
|
95
|
+
* The provider's own session id, for a run the gateway triggered on a
|
|
96
|
+
* delegating `agent_provider`. Absent for every uploaded transcript, which is
|
|
97
|
+
* what makes it the discriminator the read path branches on: a session with
|
|
98
|
+
* one is read through to the provider for live status and events, a session
|
|
99
|
+
* without one is served from its stored artifacts.
|
|
100
|
+
*
|
|
101
|
+
* **Written by the run-trigger, and not published on `SessionCreate`.** A
|
|
102
|
+
* caller can still reach it through the generic
|
|
103
|
+
* `POST /registry/v1/artifacts/session` route, and the blast radius of that is
|
|
104
|
+
* deliberately bounded rather than blocked: the read-through resolves its
|
|
105
|
+
* credential from the session's own `agent_provider_id`, which must be a row
|
|
106
|
+
* in the caller's tenant holding the caller's own API key — so a forged handle
|
|
107
|
+
* can only read a session in the workspace that caller already owns. It is
|
|
108
|
+
* self-harm, the same footing `agent.update.pre`'s tamper-restore leaves its
|
|
109
|
+
* own remote identity on.
|
|
110
|
+
*
|
|
111
|
+
* What *is* refused outright is a harness session carrying one
|
|
112
|
+
* ([`crate::hooks::session_create_pre`]), because that subject can never
|
|
113
|
+
* satisfy the read-through and the handle could only point at an unrelated
|
|
114
|
+
* run.
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof AgentSessionMeta
|
|
117
|
+
*/
|
|
118
|
+
remoteSessionId?: string | null;
|
|
94
119
|
/**
|
|
95
120
|
*
|
|
96
121
|
* @type {AgentSessionStatus}
|
|
@@ -52,6 +52,7 @@ function AgentSessionMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'isSubjectSystem': json['is_subject_system'] == null ? undefined : json['is_subject_system'],
|
|
53
53
|
'messageCount': json['message_count'] == null ? undefined : json['message_count'],
|
|
54
54
|
'modelId': json['model_id'] == null ? undefined : json['model_id'],
|
|
55
|
+
'remoteSessionId': json['remote_session_id'] === undefined ? undefined : json['remote_session_id'] === null ? null : json['remote_session_id'],
|
|
55
56
|
'sessionStatus': (0, AgentSessionStatus_1.AgentSessionStatusFromJSON)(json['session_status']),
|
|
56
57
|
'stopReason': json['stop_reason'] === undefined ? undefined : json['stop_reason'] === null ? null : json['stop_reason'],
|
|
57
58
|
'subjectId': json['subject_id'],
|
|
@@ -84,6 +85,7 @@ function AgentSessionMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
84
85
|
'is_subject_system': value['isSubjectSystem'],
|
|
85
86
|
'message_count': value['messageCount'],
|
|
86
87
|
'model_id': value['modelId'],
|
|
88
|
+
'remote_session_id': value['remoteSessionId'],
|
|
87
89
|
'session_status': (0, AgentSessionStatus_1.AgentSessionStatusToJSON)(value['sessionStatus']),
|
|
88
90
|
'stop_reason': value['stopReason'],
|
|
89
91
|
'subject_id': value['subjectId'],
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AgentRemoteSessionEvent } from './AgentRemoteSessionEvent';
|
|
12
13
|
import type { AgentSessionMessageMeta } from './AgentSessionMessageMeta';
|
|
13
14
|
import type { AgentSessionStreamTerminal } from './AgentSessionStreamTerminal';
|
|
14
15
|
/**
|
|
@@ -20,14 +21,15 @@ import type { AgentSessionStreamTerminal } from './AgentSessionStreamTerminal';
|
|
|
20
21
|
* describes a frame rather than the whole body — which is why the handler returns
|
|
21
22
|
* `Sse<…>` and never this type.
|
|
22
23
|
*
|
|
23
|
-
* The `Turn`
|
|
24
|
-
* `session_message`'s metadata object
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* special-case, so it is built from this
|
|
24
|
+
* The `Turn` and `Remote` variants are **schema-only**: the tail forwards those
|
|
25
|
+
* frames verbatim (a `session_message`'s metadata object, or a provider event) so
|
|
26
|
+
* nothing is lost in translation, and both shapes are already pinned by the
|
|
27
|
+
* components they name. `Terminal` *is* constructed — it is the one shape unique
|
|
28
|
+
* to the stream, and the one a client must special-case, so it is built from this
|
|
29
|
+
* type rather than formatted by hand.
|
|
28
30
|
* @export
|
|
29
31
|
*/
|
|
30
|
-
export type AgentSessionStreamFrame = AgentSessionMessageMeta | AgentSessionStreamTerminal;
|
|
32
|
+
export type AgentSessionStreamFrame = AgentRemoteSessionEvent | AgentSessionMessageMeta | AgentSessionStreamTerminal;
|
|
31
33
|
export declare function AgentSessionStreamFrameFromJSON(json: any): AgentSessionStreamFrame;
|
|
32
34
|
export declare function AgentSessionStreamFrameFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentSessionStreamFrame;
|
|
33
35
|
export declare function AgentSessionStreamFrameToJSON(json: any): any;
|
|
@@ -17,6 +17,7 @@ exports.AgentSessionStreamFrameFromJSON = AgentSessionStreamFrameFromJSON;
|
|
|
17
17
|
exports.AgentSessionStreamFrameFromJSONTyped = AgentSessionStreamFrameFromJSONTyped;
|
|
18
18
|
exports.AgentSessionStreamFrameToJSON = AgentSessionStreamFrameToJSON;
|
|
19
19
|
exports.AgentSessionStreamFrameToJSONTyped = AgentSessionStreamFrameToJSONTyped;
|
|
20
|
+
const AgentRemoteSessionEvent_1 = require("./AgentRemoteSessionEvent");
|
|
20
21
|
const AgentSessionMessageMeta_1 = require("./AgentSessionMessageMeta");
|
|
21
22
|
const AgentSessionStreamTerminal_1 = require("./AgentSessionStreamTerminal");
|
|
22
23
|
function AgentSessionStreamFrameFromJSON(json) {
|
|
@@ -29,6 +30,9 @@ function AgentSessionStreamFrameFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
30
|
if (typeof json !== 'object') {
|
|
30
31
|
return json;
|
|
31
32
|
}
|
|
33
|
+
if ((0, AgentRemoteSessionEvent_1.instanceOfAgentRemoteSessionEvent)(json)) {
|
|
34
|
+
return (0, AgentRemoteSessionEvent_1.AgentRemoteSessionEventFromJSONTyped)(json, true);
|
|
35
|
+
}
|
|
32
36
|
if ((0, AgentSessionMessageMeta_1.instanceOfAgentSessionMessageMeta)(json)) {
|
|
33
37
|
return (0, AgentSessionMessageMeta_1.AgentSessionMessageMetaFromJSONTyped)(json, true);
|
|
34
38
|
}
|
|
@@ -47,6 +51,9 @@ function AgentSessionStreamFrameToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
47
51
|
if (typeof value !== 'object') {
|
|
48
52
|
return value;
|
|
49
53
|
}
|
|
54
|
+
if ((0, AgentRemoteSessionEvent_1.instanceOfAgentRemoteSessionEvent)(value)) {
|
|
55
|
+
return (0, AgentRemoteSessionEvent_1.AgentRemoteSessionEventToJSON)(value);
|
|
56
|
+
}
|
|
50
57
|
if ((0, AgentSessionMessageMeta_1.instanceOfAgentSessionMessageMeta)(value)) {
|
|
51
58
|
return (0, AgentSessionMessageMeta_1.AgentSessionMessageMetaToJSON)(value);
|
|
52
59
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Harness and agent catalog
|
|
3
|
+
* A `harness` is a tool a human drives; an `agent` is built with an `agent_framework` and run on an `agent_provider`. The gateway executes neither. This surface is the typed catalog for both — plus the `agent_framework` and `harness_vendor` catalogs, the `agent_provider` substrate, the `agent_environment` sandbox, and the `session`/`session_message` run history — the one agent run-trigger, live session reads (poll + SSE), and the access-controlled trace facade.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Where an agent's push to its provider stands. Promoted to the indexed
|
|
14
|
+
* `sync_state` `CHECK` column; doc-comment-free per variant.
|
|
15
|
+
* @export
|
|
16
|
+
* @enum {string}
|
|
17
|
+
*/
|
|
18
|
+
export declare enum AgentSyncState {
|
|
19
|
+
Pending = "pending",
|
|
20
|
+
Synced = "synced",
|
|
21
|
+
Failed = "failed"
|
|
22
|
+
}
|
|
23
|
+
export declare function instanceOfAgentSyncState(value: any): boolean;
|
|
24
|
+
export declare function AgentSyncStateFromJSON(json: any): AgentSyncState;
|
|
25
|
+
export declare function AgentSyncStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentSyncState;
|
|
26
|
+
export declare function AgentSyncStateToJSON(value?: AgentSyncState | null): any;
|
|
27
|
+
export declare function AgentSyncStateToJSONTyped(value: any, ignoreDiscriminator: boolean): AgentSyncState;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Harness and agent catalog
|
|
6
|
+
* A `harness` is a tool a human drives; an `agent` is built with an `agent_framework` and run on an `agent_provider`. The gateway executes neither. This surface is the typed catalog for both — plus the `agent_framework` and `harness_vendor` catalogs, the `agent_provider` substrate, the `agent_environment` sandbox, and the `session`/`session_message` run history — the one agent run-trigger, live session reads (poll + SSE), and the access-controlled trace facade.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AgentSyncState = void 0;
|
|
17
|
+
exports.instanceOfAgentSyncState = instanceOfAgentSyncState;
|
|
18
|
+
exports.AgentSyncStateFromJSON = AgentSyncStateFromJSON;
|
|
19
|
+
exports.AgentSyncStateFromJSONTyped = AgentSyncStateFromJSONTyped;
|
|
20
|
+
exports.AgentSyncStateToJSON = AgentSyncStateToJSON;
|
|
21
|
+
exports.AgentSyncStateToJSONTyped = AgentSyncStateToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Where an agent's push to its provider stands. Promoted to the indexed
|
|
24
|
+
* `sync_state` `CHECK` column; doc-comment-free per variant.
|
|
25
|
+
* @export
|
|
26
|
+
* @enum {string}
|
|
27
|
+
*/
|
|
28
|
+
var AgentSyncState;
|
|
29
|
+
(function (AgentSyncState) {
|
|
30
|
+
AgentSyncState["Pending"] = "pending";
|
|
31
|
+
AgentSyncState["Synced"] = "synced";
|
|
32
|
+
AgentSyncState["Failed"] = "failed";
|
|
33
|
+
})(AgentSyncState || (exports.AgentSyncState = AgentSyncState = {}));
|
|
34
|
+
function instanceOfAgentSyncState(value) {
|
|
35
|
+
for (const key in AgentSyncState) {
|
|
36
|
+
if (Object.prototype.hasOwnProperty.call(AgentSyncState, key)) {
|
|
37
|
+
if (AgentSyncState[key] === value) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
function AgentSyncStateFromJSON(json) {
|
|
45
|
+
return AgentSyncStateFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AgentSyncStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
function AgentSyncStateToJSON(value) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
function AgentSyncStateToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Harness and agent catalog
|
|
3
|
+
* A `harness` is a tool a human drives; an `agent` is built with an `agent_framework` and run on an `agent_provider`. The gateway executes neither. This surface is the typed catalog for both — plus the `agent_framework` and `harness_vendor` catalogs, the `agent_provider` substrate, the `agent_environment` sandbox, and the `session`/`session_message` run history — the one agent run-trigger, live session reads (poll + SSE), and the access-controlled trace facade.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The run-trigger body.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TriggerBody
|
|
16
|
+
*/
|
|
17
|
+
export interface TriggerBody {
|
|
18
|
+
/**
|
|
19
|
+
* An `agent_environment` artifact id; absent ⇒ the system default.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TriggerBody
|
|
22
|
+
*/
|
|
23
|
+
environmentId?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* The opening `user.message` for the remote session.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TriggerBody
|
|
28
|
+
*/
|
|
29
|
+
prompt: string;
|
|
30
|
+
/**
|
|
31
|
+
* The `agent_provider` to run on. **Required** — there is no account default
|
|
32
|
+
* to fall back to, and picking one for the caller would be picking which
|
|
33
|
+
* Anthropic workspace their run lands in.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof TriggerBody
|
|
36
|
+
*/
|
|
37
|
+
providerId: string;
|
|
38
|
+
/**
|
|
39
|
+
* A human label for the session (defaults to a prompt prefix).
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof TriggerBody
|
|
42
|
+
*/
|
|
43
|
+
title?: string | null;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the TriggerBody interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfTriggerBody(value: object): value is TriggerBody;
|
|
49
|
+
export declare function TriggerBodyFromJSON(json: any): TriggerBody;
|
|
50
|
+
export declare function TriggerBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): TriggerBody;
|
|
51
|
+
export declare function TriggerBodyToJSON(json: any): TriggerBody;
|
|
52
|
+
export declare function TriggerBodyToJSONTyped(value?: TriggerBody | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Harness and agent catalog
|
|
6
|
+
* A `harness` is a tool a human drives; an `agent` is built with an `agent_framework` and run on an `agent_provider`. The gateway executes neither. This surface is the typed catalog for both — plus the `agent_framework` and `harness_vendor` catalogs, the `agent_provider` substrate, the `agent_environment` sandbox, and the `session`/`session_message` run history — the one agent run-trigger, live session reads (poll + SSE), and the access-controlled trace facade.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfTriggerBody = instanceOfTriggerBody;
|
|
17
|
+
exports.TriggerBodyFromJSON = TriggerBodyFromJSON;
|
|
18
|
+
exports.TriggerBodyFromJSONTyped = TriggerBodyFromJSONTyped;
|
|
19
|
+
exports.TriggerBodyToJSON = TriggerBodyToJSON;
|
|
20
|
+
exports.TriggerBodyToJSONTyped = TriggerBodyToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TriggerBody interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTriggerBody(value) {
|
|
25
|
+
if (!('prompt' in value) || value['prompt'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if ((!('providerId' in value) && !('provider_id' in value)) || (value['providerId'] === undefined && value['provider_id'] === undefined))
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function TriggerBodyFromJSON(json) {
|
|
32
|
+
return TriggerBodyFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function TriggerBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'environmentId': json['environment_id'] === undefined ? undefined : json['environment_id'] === null ? null : json['environment_id'],
|
|
40
|
+
'prompt': json['prompt'],
|
|
41
|
+
'providerId': json['provider_id'],
|
|
42
|
+
'title': json['title'] === undefined ? undefined : json['title'] === null ? null : json['title'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function TriggerBodyToJSON(json) {
|
|
46
|
+
return TriggerBodyToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function TriggerBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'environment_id': value['environmentId'],
|
|
54
|
+
'prompt': value['prompt'],
|
|
55
|
+
'provider_id': value['providerId'],
|
|
56
|
+
'title': value['title'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -70,8 +70,10 @@ export * from './AgentPageSessionEventView';
|
|
|
70
70
|
export * from './AgentPageSessionMessageArtifactView';
|
|
71
71
|
export * from './AgentPatchAgentFramework412Response';
|
|
72
72
|
export * from './AgentQueryAgentTraceStats400Response';
|
|
73
|
+
export * from './AgentRemoteSessionEvent';
|
|
73
74
|
export * from './AgentSessionArtifactView';
|
|
74
75
|
export * from './AgentSessionCreate';
|
|
76
|
+
export * from './AgentSessionEventView';
|
|
75
77
|
export * from './AgentSessionMessageArtifactView';
|
|
76
78
|
export * from './AgentSessionMessageCreate';
|
|
77
79
|
export * from './AgentSessionMessageMeta';
|
|
@@ -82,6 +84,7 @@ export * from './AgentSessionStreamTerminal';
|
|
|
82
84
|
export * from './AgentSessionToolCall';
|
|
83
85
|
export * from './AgentSessionUsage';
|
|
84
86
|
export * from './AgentSubjectKind';
|
|
87
|
+
export * from './AgentSyncState';
|
|
85
88
|
export * from './AgentUploadAgentProfileImage400Response';
|
|
86
89
|
export * from './AgentUploadAgentProfileImage413Response';
|
|
87
90
|
export * from './AgentUploadAgentProfileImage422Response';
|
|
@@ -91,7 +94,6 @@ export * from './AgentVisitorLinkStatus';
|
|
|
91
94
|
export * from './AgentVisitorMeta';
|
|
92
95
|
export * from './AgentVisitorType';
|
|
93
96
|
export * from './ArtifactConflictProblem';
|
|
94
|
-
export * from './Box';
|
|
95
97
|
export * from './CostView';
|
|
96
98
|
export * from './CursorPage';
|
|
97
99
|
export * from './GatewayArtifactBase';
|
|
@@ -141,4 +143,5 @@ export * from './TraceParentView';
|
|
|
141
143
|
export * from './TraceStatus';
|
|
142
144
|
export * from './TraceSummaryStats';
|
|
143
145
|
export * from './TraceSummaryView';
|
|
146
|
+
export * from './TriggerBody';
|
|
144
147
|
export * from './UsageView';
|
|
@@ -88,8 +88,10 @@ __exportStar(require("./AgentPageSessionEventView"), exports);
|
|
|
88
88
|
__exportStar(require("./AgentPageSessionMessageArtifactView"), exports);
|
|
89
89
|
__exportStar(require("./AgentPatchAgentFramework412Response"), exports);
|
|
90
90
|
__exportStar(require("./AgentQueryAgentTraceStats400Response"), exports);
|
|
91
|
+
__exportStar(require("./AgentRemoteSessionEvent"), exports);
|
|
91
92
|
__exportStar(require("./AgentSessionArtifactView"), exports);
|
|
92
93
|
__exportStar(require("./AgentSessionCreate"), exports);
|
|
94
|
+
__exportStar(require("./AgentSessionEventView"), exports);
|
|
93
95
|
__exportStar(require("./AgentSessionMessageArtifactView"), exports);
|
|
94
96
|
__exportStar(require("./AgentSessionMessageCreate"), exports);
|
|
95
97
|
__exportStar(require("./AgentSessionMessageMeta"), exports);
|
|
@@ -100,6 +102,7 @@ __exportStar(require("./AgentSessionStreamTerminal"), exports);
|
|
|
100
102
|
__exportStar(require("./AgentSessionToolCall"), exports);
|
|
101
103
|
__exportStar(require("./AgentSessionUsage"), exports);
|
|
102
104
|
__exportStar(require("./AgentSubjectKind"), exports);
|
|
105
|
+
__exportStar(require("./AgentSyncState"), exports);
|
|
103
106
|
__exportStar(require("./AgentUploadAgentProfileImage400Response"), exports);
|
|
104
107
|
__exportStar(require("./AgentUploadAgentProfileImage413Response"), exports);
|
|
105
108
|
__exportStar(require("./AgentUploadAgentProfileImage422Response"), exports);
|
|
@@ -109,7 +112,6 @@ __exportStar(require("./AgentVisitorLinkStatus"), exports);
|
|
|
109
112
|
__exportStar(require("./AgentVisitorMeta"), exports);
|
|
110
113
|
__exportStar(require("./AgentVisitorType"), exports);
|
|
111
114
|
__exportStar(require("./ArtifactConflictProblem"), exports);
|
|
112
|
-
__exportStar(require("./Box"), exports);
|
|
113
115
|
__exportStar(require("./CostView"), exports);
|
|
114
116
|
__exportStar(require("./CursorPage"), exports);
|
|
115
117
|
__exportStar(require("./GatewayArtifactBase"), exports);
|
|
@@ -159,4 +161,5 @@ __exportStar(require("./TraceParentView"), exports);
|
|
|
159
161
|
__exportStar(require("./TraceStatus"), exports);
|
|
160
162
|
__exportStar(require("./TraceSummaryStats"), exports);
|
|
161
163
|
__exportStar(require("./TraceSummaryView"), exports);
|
|
164
|
+
__exportStar(require("./TriggerBody"), exports);
|
|
162
165
|
__exportStar(require("./UsageView"), exports);
|
|
@@ -65,6 +65,7 @@ export declare enum EvalListDatasets401ResponseCodeEnum {
|
|
|
65
65
|
TokenNotYetValid = "token_not_yet_valid",
|
|
66
66
|
TokenRejected = "token_rejected",
|
|
67
67
|
TokenServiceAccountUnbound = "token_service_account_unbound",
|
|
68
|
+
Unauthorized = "unauthorized",
|
|
68
69
|
UnknownAccount = "unknown_account",
|
|
69
70
|
UnknownKey = "unknown_key",
|
|
70
71
|
UntrustedIssuer = "untrusted_issuer"
|
|
@@ -39,6 +39,7 @@ var EvalListDatasets401ResponseCodeEnum;
|
|
|
39
39
|
EvalListDatasets401ResponseCodeEnum["TokenNotYetValid"] = "token_not_yet_valid";
|
|
40
40
|
EvalListDatasets401ResponseCodeEnum["TokenRejected"] = "token_rejected";
|
|
41
41
|
EvalListDatasets401ResponseCodeEnum["TokenServiceAccountUnbound"] = "token_service_account_unbound";
|
|
42
|
+
EvalListDatasets401ResponseCodeEnum["Unauthorized"] = "unauthorized";
|
|
42
43
|
EvalListDatasets401ResponseCodeEnum["UnknownAccount"] = "unknown_account";
|
|
43
44
|
EvalListDatasets401ResponseCodeEnum["UnknownKey"] = "unknown_key";
|
|
44
45
|
EvalListDatasets401ResponseCodeEnum["UntrustedIssuer"] = "untrusted_issuer";
|
|
@@ -65,6 +65,7 @@ export declare enum FileList401ResponseCodeEnum {
|
|
|
65
65
|
TokenNotYetValid = "token_not_yet_valid",
|
|
66
66
|
TokenRejected = "token_rejected",
|
|
67
67
|
TokenServiceAccountUnbound = "token_service_account_unbound",
|
|
68
|
+
Unauthorized = "unauthorized",
|
|
68
69
|
UnknownAccount = "unknown_account",
|
|
69
70
|
UnknownKey = "unknown_key",
|
|
70
71
|
UntrustedIssuer = "untrusted_issuer"
|
|
@@ -39,6 +39,7 @@ var FileList401ResponseCodeEnum;
|
|
|
39
39
|
FileList401ResponseCodeEnum["TokenNotYetValid"] = "token_not_yet_valid";
|
|
40
40
|
FileList401ResponseCodeEnum["TokenRejected"] = "token_rejected";
|
|
41
41
|
FileList401ResponseCodeEnum["TokenServiceAccountUnbound"] = "token_service_account_unbound";
|
|
42
|
+
FileList401ResponseCodeEnum["Unauthorized"] = "unauthorized";
|
|
42
43
|
FileList401ResponseCodeEnum["UnknownAccount"] = "unknown_account";
|
|
43
44
|
FileList401ResponseCodeEnum["UnknownKey"] = "unknown_key";
|
|
44
45
|
FileList401ResponseCodeEnum["UntrustedIssuer"] = "untrusted_issuer";
|
|
@@ -130,12 +130,12 @@ export declare class ServersApi extends runtime.BaseAPI {
|
|
|
130
130
|
*/
|
|
131
131
|
mcpTestServerRequestOpts(requestParameters: McpTestServerRequest): Promise<runtime.RequestOpts>;
|
|
132
132
|
/**
|
|
133
|
-
* Probe a registered downstream MCP server on demand: resolve its linked credential (or forward the caller\'s bearer for an open downstream), connect, and `tools/list`. Returns the connection state and advertised tool count. Useful after linking or rotating a secret.
|
|
133
|
+
* Probe a registered downstream MCP server on demand: resolve its linked credential (or forward the caller\'s bearer for an open downstream), connect, and `tools/list`. Returns the connection state and advertised tool count, and persists that state on the server. A downstream that answers but refuses the credential reports `auth_required`, not `unreachable` — the two want opposite fixes. Useful after linking or rotating a secret.
|
|
134
134
|
* Test an MCP server\'s connectivity
|
|
135
135
|
*/
|
|
136
136
|
mcpTestServerRaw(requestParameters: McpTestServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<McpServerTestResponse>>;
|
|
137
137
|
/**
|
|
138
|
-
* Probe a registered downstream MCP server on demand: resolve its linked credential (or forward the caller\'s bearer for an open downstream), connect, and `tools/list`. Returns the connection state and advertised tool count. Useful after linking or rotating a secret.
|
|
138
|
+
* Probe a registered downstream MCP server on demand: resolve its linked credential (or forward the caller\'s bearer for an open downstream), connect, and `tools/list`. Returns the connection state and advertised tool count, and persists that state on the server. A downstream that answers but refuses the credential reports `auth_required`, not `unreachable` — the two want opposite fixes. Useful after linking or rotating a secret.
|
|
139
139
|
* Test an MCP server\'s connectivity
|
|
140
140
|
*/
|
|
141
141
|
mcpTestServer(requestParameters: McpTestServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<McpServerTestResponse>;
|
|
@@ -338,7 +338,7 @@ class ServersApi extends runtime.BaseAPI {
|
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
/**
|
|
341
|
-
* Probe a registered downstream MCP server on demand: resolve its linked credential (or forward the caller\'s bearer for an open downstream), connect, and `tools/list`. Returns the connection state and advertised tool count. Useful after linking or rotating a secret.
|
|
341
|
+
* Probe a registered downstream MCP server on demand: resolve its linked credential (or forward the caller\'s bearer for an open downstream), connect, and `tools/list`. Returns the connection state and advertised tool count, and persists that state on the server. A downstream that answers but refuses the credential reports `auth_required`, not `unreachable` — the two want opposite fixes. Useful after linking or rotating a secret.
|
|
342
342
|
* Test an MCP server\'s connectivity
|
|
343
343
|
*/
|
|
344
344
|
async mcpTestServerRaw(requestParameters, initOverrides) {
|
|
@@ -347,7 +347,7 @@ class ServersApi extends runtime.BaseAPI {
|
|
|
347
347
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, McpServerTestResponse_1.McpServerTestResponseFromJSON)(jsonValue));
|
|
348
348
|
}
|
|
349
349
|
/**
|
|
350
|
-
* Probe a registered downstream MCP server on demand: resolve its linked credential (or forward the caller\'s bearer for an open downstream), connect, and `tools/list`. Returns the connection state and advertised tool count. Useful after linking or rotating a secret.
|
|
350
|
+
* Probe a registered downstream MCP server on demand: resolve its linked credential (or forward the caller\'s bearer for an open downstream), connect, and `tools/list`. Returns the connection state and advertised tool count, and persists that state on the server. A downstream that answers but refuses the credential reports `auth_required`, not `unreachable` — the two want opposite fixes. Useful after linking or rotating a secret.
|
|
351
351
|
* Test an MCP server\'s connectivity
|
|
352
352
|
*/
|
|
353
353
|
async mcpTestServer(requestParameters, initOverrides) {
|