@atlanai/sdk 0.2.2 → 0.2.3
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 +4 -1
- package/dist/client.js +13 -1
- package/dist/errors.d.ts +1 -0
- package/dist/errors.js +12 -1
- package/dist/evals.d.ts +5 -1
- package/dist/evals.js +285 -70
- package/dist/index.d.ts +1 -0
- 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.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
|
@@ -1,342 +0,0 @@
|
|
|
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 { GatewayArtifactIdentityRevealView } from './GatewayArtifactIdentityRevealView';
|
|
13
|
-
import type { AgentSessionToolCall } from './AgentSessionToolCall';
|
|
14
|
-
import type { AgentMessageRole } from './AgentMessageRole';
|
|
15
|
-
import type { AgentSessionUsage } from './AgentSessionUsage';
|
|
16
|
-
import type { RegistryRelationshipsView } from './RegistryRelationshipsView';
|
|
17
|
-
/**
|
|
18
|
-
* Published representation of Box.
|
|
19
|
-
* @export
|
|
20
|
-
* @interface Box
|
|
21
|
-
*/
|
|
22
|
-
export interface Box {
|
|
23
|
-
/**
|
|
24
|
-
* Value of the `app` field.
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof Box
|
|
27
|
-
*/
|
|
28
|
-
app?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Value of the `artifact_status` field.
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof Box
|
|
33
|
-
*/
|
|
34
|
-
artifactStatus: string;
|
|
35
|
-
/**
|
|
36
|
-
* RFC 3339 commit timestamp (the cross-table monotonic cursor).
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof Box
|
|
39
|
-
*/
|
|
40
|
-
commitTs: string;
|
|
41
|
-
/**
|
|
42
|
-
* Value of the `content_hash_hex` field.
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof Box
|
|
45
|
-
*/
|
|
46
|
-
contentHashHex?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Value of the `created_at` field.
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof Box
|
|
51
|
-
*/
|
|
52
|
-
createdAt: string;
|
|
53
|
-
/**
|
|
54
|
-
* Value of the `created_by` field.
|
|
55
|
-
* @type {string}
|
|
56
|
-
* @memberof Box
|
|
57
|
-
*/
|
|
58
|
-
createdBy: string;
|
|
59
|
-
/**
|
|
60
|
-
* Human-readable description.
|
|
61
|
-
* @type {string}
|
|
62
|
-
* @memberof Box
|
|
63
|
-
*/
|
|
64
|
-
description?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Human-readable name.
|
|
67
|
-
* @type {string}
|
|
68
|
-
* @memberof Box
|
|
69
|
-
*/
|
|
70
|
-
displayName?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Kind-prefixed Crockford-base32 handle (`<kind>_<base32>`).
|
|
73
|
-
* @type {string}
|
|
74
|
-
* @memberof Box
|
|
75
|
-
*/
|
|
76
|
-
id: string;
|
|
77
|
-
/**
|
|
78
|
-
* Value of the `identity` field.
|
|
79
|
-
* @type {GatewayArtifactIdentityRevealView}
|
|
80
|
-
* @memberof Box
|
|
81
|
-
*/
|
|
82
|
-
identity?: GatewayArtifactIdentityRevealView;
|
|
83
|
-
/**
|
|
84
|
-
* Whether this is the head (latest) version of its line.
|
|
85
|
-
* @type {boolean}
|
|
86
|
-
* @memberof Box
|
|
87
|
-
*/
|
|
88
|
-
isLatest: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* Domain discriminator for this resource.
|
|
91
|
-
* @type {string}
|
|
92
|
-
* @memberof Box
|
|
93
|
-
*/
|
|
94
|
-
kind: string;
|
|
95
|
-
/**
|
|
96
|
-
* Stable machine handle ([AIP-122](https://google.aip.dev/122)): a short,
|
|
97
|
-
* identifier-shaped label (kebab-case by convention) meant for references,
|
|
98
|
-
* paths and code. **Not unique**, and not the artifact's identity — `id` is
|
|
99
|
-
* the only stable handle. Not format-validated today, so existing rows may
|
|
100
|
-
* hold prose.
|
|
101
|
-
* @type {string}
|
|
102
|
-
* @memberof Box
|
|
103
|
-
*/
|
|
104
|
-
name: string;
|
|
105
|
-
/**
|
|
106
|
-
* The Control-Plane OIDC client id this artifact authenticates as
|
|
107
|
-
* (`x-gateway-identity` kinds); absent for every other kind.
|
|
108
|
-
*
|
|
109
|
-
* **Derived, not stored, and present on the create response only.** The
|
|
110
|
-
* registry would resolve it from the artifact's `service_principals` row
|
|
111
|
-
* rather than keep a second copy on the artifact — but only the create path
|
|
112
|
-
* does that lookup, because it has just provisioned the identity. Every read
|
|
113
|
-
* shape (single read, list, search, `PATCH`) is built by one constructor that
|
|
114
|
-
* sets this `None`, so it is absent from all four.
|
|
115
|
-
*
|
|
116
|
-
* This block used to name the single-artifact read as a second populated path.
|
|
117
|
-
* It was never one. Adding it means deciding whether list and search pay a
|
|
118
|
-
* per-row identity read too; the lookup a future implementation would call is
|
|
119
|
-
* `registry_server::identity::artifact_principal`. It is the public half of the
|
|
120
|
-
* credential pair and is not secret.
|
|
121
|
-
* @type {string}
|
|
122
|
-
* @memberof Box
|
|
123
|
-
*/
|
|
124
|
-
oidcClientId?: string;
|
|
125
|
-
/**
|
|
126
|
-
* Canonical owner: the `users.user_id` this artifact belongs to, FK-backed.
|
|
127
|
-
*
|
|
128
|
-
* Defaulted to the creating principal, so this is normally set. Absent for a row created
|
|
129
|
-
* before that default landed, for a system-plane write, and for a principal with no directory
|
|
130
|
-
* row — a service account or a seed has nothing to own anything with.
|
|
131
|
-
* @type {string}
|
|
132
|
-
* @memberof Box
|
|
133
|
-
*/
|
|
134
|
-
ownerId?: string;
|
|
135
|
-
/**
|
|
136
|
-
* `project_`-prefixed handle of the project grouping this artifact, when it has
|
|
137
|
-
* one. Absent for an artifact that lives directly in its workspace — which also
|
|
138
|
-
* means it is not packaged into any Claude Code plugin, since packaging is
|
|
139
|
-
* per-project (project-2026-07-30-first-class-project-table).
|
|
140
|
-
* @type {string}
|
|
141
|
-
* @memberof Box
|
|
142
|
-
*/
|
|
143
|
-
projectId?: string;
|
|
144
|
-
/**
|
|
145
|
-
* The source repository this artifact came from, as a `repo_`-prefixed
|
|
146
|
-
* handle. Absent when the artifact has no repo.
|
|
147
|
-
* @type {string}
|
|
148
|
-
* @memberof Box
|
|
149
|
-
*/
|
|
150
|
-
repoId?: string;
|
|
151
|
-
/**
|
|
152
|
-
* Advisory origin timestamp for imported artifacts (RFC 3339); absent for
|
|
153
|
-
* natively-created artifacts. Distinct from `created_at` (the commit time).
|
|
154
|
-
* @type {string}
|
|
155
|
-
* @memberof Box
|
|
156
|
-
*/
|
|
157
|
-
sourceCreatedAt?: string;
|
|
158
|
-
/**
|
|
159
|
-
* Advisory upstream author (git `Name <email>`) of the first version
|
|
160
|
-
* upstream; absent when unset.
|
|
161
|
-
* @type {string}
|
|
162
|
-
* @memberof Box
|
|
163
|
-
*/
|
|
164
|
-
sourceCreatedBy?: string;
|
|
165
|
-
/**
|
|
166
|
-
* sha256 of the materialized content; absent when unset.
|
|
167
|
-
* @type {string}
|
|
168
|
-
* @memberof Box
|
|
169
|
-
*/
|
|
170
|
-
sourceDigest?: string;
|
|
171
|
-
/**
|
|
172
|
-
* The artifact's identifier in the system it came from — what the upstream
|
|
173
|
-
* calls it, as opposed to `source_uri`'s where-it-lives. Filterable and
|
|
174
|
-
* sortable, so a re-sync reconciles on this rather than on `name`; absent
|
|
175
|
-
* when unset.
|
|
176
|
-
* @type {string}
|
|
177
|
-
* @memberof Box
|
|
178
|
-
*/
|
|
179
|
-
sourceId?: string;
|
|
180
|
-
/**
|
|
181
|
-
* Advisory upstream last-modified timestamp (RFC 3339); absent when unset.
|
|
182
|
-
* @type {string}
|
|
183
|
-
* @memberof Box
|
|
184
|
-
*/
|
|
185
|
-
sourceLastModifiedAt?: string;
|
|
186
|
-
/**
|
|
187
|
-
* Advisory upstream author (git `Name <email>`) of the last change; absent
|
|
188
|
-
* when unset.
|
|
189
|
-
* @type {string}
|
|
190
|
-
* @memberof Box
|
|
191
|
-
*/
|
|
192
|
-
sourceLastModifiedBy?: string;
|
|
193
|
-
/**
|
|
194
|
-
*
|
|
195
|
-
* @type {any}
|
|
196
|
-
* @memberof Box
|
|
197
|
-
*/
|
|
198
|
-
sourceMetadata?: any | null;
|
|
199
|
-
/**
|
|
200
|
-
* Advisory timestamp (RFC 3339) of the last sync that produced a version.
|
|
201
|
-
* @type {string}
|
|
202
|
-
* @memberof Box
|
|
203
|
-
*/
|
|
204
|
-
sourceSyncedAt?: string;
|
|
205
|
-
/**
|
|
206
|
-
* Content authority for the line: `git`, `atlan`, `local`, or `external`
|
|
207
|
-
* for a system the gateway does not know (a customer's own runner or catalog).
|
|
208
|
-
* @type {string}
|
|
209
|
-
* @memberof Box
|
|
210
|
-
*/
|
|
211
|
-
sourceType: string;
|
|
212
|
-
/**
|
|
213
|
-
* Scheme-tagged origin; absent for a service-managed (`atlan`) line.
|
|
214
|
-
* @type {string}
|
|
215
|
-
* @memberof Box
|
|
216
|
-
*/
|
|
217
|
-
sourceUri?: string;
|
|
218
|
-
/**
|
|
219
|
-
* Advisory upstream version id (git commit hash / tag); distinct from
|
|
220
|
-
* `version_label`. Absent when unset.
|
|
221
|
-
* @type {string}
|
|
222
|
-
* @memberof Box
|
|
223
|
-
*/
|
|
224
|
-
sourceVersion?: string;
|
|
225
|
-
/**
|
|
226
|
-
* Value of the `updated_at` field.
|
|
227
|
-
* @type {string}
|
|
228
|
-
* @memberof Box
|
|
229
|
-
*/
|
|
230
|
-
updatedAt: string;
|
|
231
|
-
/**
|
|
232
|
-
* Value of the `updated_by` field.
|
|
233
|
-
* @type {string}
|
|
234
|
-
* @memberof Box
|
|
235
|
-
*/
|
|
236
|
-
updatedBy: string;
|
|
237
|
-
/**
|
|
238
|
-
* The free-form label the write set, verbatim. Absent when none was sent, and *not* the name
|
|
239
|
-
* the version shipped under — that is the release's own `version_label`.
|
|
240
|
-
* @type {string}
|
|
241
|
-
* @memberof Box
|
|
242
|
-
*/
|
|
243
|
-
versionLabel?: string;
|
|
244
|
-
/**
|
|
245
|
-
* This version's position in its line — the write index, 1-based and dense over versions
|
|
246
|
-
* *written*. Distinct from a release's `version_ordinal`, which counts versions **shipped**;
|
|
247
|
-
* the two agree under the default `auto` release policy and diverge under `manual`.
|
|
248
|
-
* @type {number}
|
|
249
|
-
* @memberof Box
|
|
250
|
-
*/
|
|
251
|
-
versionOrdinal: number;
|
|
252
|
-
/**
|
|
253
|
-
* `workspace_`-prefixed handle.
|
|
254
|
-
* @type {string}
|
|
255
|
-
* @memberof Box
|
|
256
|
-
*/
|
|
257
|
-
workspaceId: string;
|
|
258
|
-
/**
|
|
259
|
-
* Message text; absent for a tool-only assistant turn.
|
|
260
|
-
* @type {string}
|
|
261
|
-
* @memberof Box
|
|
262
|
-
*/
|
|
263
|
-
content?: string | null;
|
|
264
|
-
/**
|
|
265
|
-
* Whether the owning session's subject is a gateway-owned system artifact,
|
|
266
|
-
* denormalized for the history guard (no lookup). Server-owned: the
|
|
267
|
-
* create/update services always set it from the parent session.
|
|
268
|
-
* @type {boolean}
|
|
269
|
-
* @memberof Box
|
|
270
|
-
*/
|
|
271
|
-
isSubjectSystem?: boolean;
|
|
272
|
-
/**
|
|
273
|
-
*
|
|
274
|
-
* @type {AgentMessageRole}
|
|
275
|
-
* @memberof Box
|
|
276
|
-
*/
|
|
277
|
-
messageRole?: AgentMessageRole;
|
|
278
|
-
/**
|
|
279
|
-
* The model that produced an assistant message.
|
|
280
|
-
* @type {string}
|
|
281
|
-
* @memberof Box
|
|
282
|
-
*/
|
|
283
|
-
modelId?: string | null;
|
|
284
|
-
/**
|
|
285
|
-
* Order within the session (0-based); the stable sort key for playback.
|
|
286
|
-
* @type {number}
|
|
287
|
-
* @memberof Box
|
|
288
|
-
*/
|
|
289
|
-
sequenceNumber?: number;
|
|
290
|
-
/**
|
|
291
|
-
* The owning `session` handle.
|
|
292
|
-
* @type {string}
|
|
293
|
-
* @memberof Box
|
|
294
|
-
*/
|
|
295
|
-
sessionId?: string;
|
|
296
|
-
/**
|
|
297
|
-
* The tool call this message answers (message_role `tool`).
|
|
298
|
-
* @type {string}
|
|
299
|
-
* @memberof Box
|
|
300
|
-
*/
|
|
301
|
-
toolCallId?: string | null;
|
|
302
|
-
/**
|
|
303
|
-
* Requested tool calls on an assistant turn (OpenAI shape). Empty otherwise.
|
|
304
|
-
* @type {Array<AgentSessionToolCall>}
|
|
305
|
-
* @memberof Box
|
|
306
|
-
*/
|
|
307
|
-
toolCalls?: Array<AgentSessionToolCall>;
|
|
308
|
-
/**
|
|
309
|
-
* The tool's name (message_role `tool`).
|
|
310
|
-
* @type {string}
|
|
311
|
-
* @memberof Box
|
|
312
|
-
*/
|
|
313
|
-
toolName?: string | null;
|
|
314
|
-
/**
|
|
315
|
-
*
|
|
316
|
-
* @type {AgentSessionUsage}
|
|
317
|
-
* @memberof Box
|
|
318
|
-
*/
|
|
319
|
-
usage?: AgentSessionUsage;
|
|
320
|
-
/**
|
|
321
|
-
* Value of the `permissions` field.
|
|
322
|
-
* @type {{ [key: string]: boolean; }}
|
|
323
|
-
* @memberof Box
|
|
324
|
-
*/
|
|
325
|
-
permissions?: {
|
|
326
|
-
[key: string]: boolean;
|
|
327
|
-
} | null;
|
|
328
|
-
/**
|
|
329
|
-
* Value of the `relationships` field.
|
|
330
|
-
* @type {RegistryRelationshipsView}
|
|
331
|
-
* @memberof Box
|
|
332
|
-
*/
|
|
333
|
-
relationships?: RegistryRelationshipsView | null;
|
|
334
|
-
}
|
|
335
|
-
/**
|
|
336
|
-
* Check if a given object implements the Box interface.
|
|
337
|
-
*/
|
|
338
|
-
export declare function instanceOfBox(value: object): value is Box;
|
|
339
|
-
export declare function BoxFromJSON(json: any): Box;
|
|
340
|
-
export declare function BoxFromJSONTyped(json: any, ignoreDiscriminator: boolean): Box;
|
|
341
|
-
export declare function BoxToJSON(json: any): Box;
|
|
342
|
-
export declare function BoxToJSONTyped(value?: Box | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,167 +0,0 @@
|
|
|
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.instanceOfBox = instanceOfBox;
|
|
17
|
-
exports.BoxFromJSON = BoxFromJSON;
|
|
18
|
-
exports.BoxFromJSONTyped = BoxFromJSONTyped;
|
|
19
|
-
exports.BoxToJSON = BoxToJSON;
|
|
20
|
-
exports.BoxToJSONTyped = BoxToJSONTyped;
|
|
21
|
-
const GatewayArtifactIdentityRevealView_1 = require("./GatewayArtifactIdentityRevealView");
|
|
22
|
-
const AgentSessionToolCall_1 = require("./AgentSessionToolCall");
|
|
23
|
-
const AgentMessageRole_1 = require("./AgentMessageRole");
|
|
24
|
-
const AgentSessionUsage_1 = require("./AgentSessionUsage");
|
|
25
|
-
const RegistryRelationshipsView_1 = require("./RegistryRelationshipsView");
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the Box interface.
|
|
28
|
-
*/
|
|
29
|
-
function instanceOfBox(value) {
|
|
30
|
-
if ((!('artifactStatus' in value) && !('artifact_status' in value)) || (value['artifactStatus'] === undefined && value['artifact_status'] === undefined))
|
|
31
|
-
return false;
|
|
32
|
-
if ((!('commitTs' in value) && !('commit_ts' in value)) || (value['commitTs'] === undefined && value['commit_ts'] === undefined))
|
|
33
|
-
return false;
|
|
34
|
-
if ((!('createdAt' in value) && !('created_at' in value)) || (value['createdAt'] === undefined && value['created_at'] === undefined))
|
|
35
|
-
return false;
|
|
36
|
-
if ((!('createdBy' in value) && !('created_by' in value)) || (value['createdBy'] === undefined && value['created_by'] === undefined))
|
|
37
|
-
return false;
|
|
38
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
39
|
-
return false;
|
|
40
|
-
if ((!('isLatest' in value) && !('is_latest' in value)) || (value['isLatest'] === undefined && value['is_latest'] === undefined))
|
|
41
|
-
return false;
|
|
42
|
-
if (!('kind' in value) || value['kind'] === undefined)
|
|
43
|
-
return false;
|
|
44
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
45
|
-
return false;
|
|
46
|
-
if ((!('sourceType' in value) && !('source_type' in value)) || (value['sourceType'] === undefined && value['source_type'] === undefined))
|
|
47
|
-
return false;
|
|
48
|
-
if ((!('updatedAt' in value) && !('updated_at' in value)) || (value['updatedAt'] === undefined && value['updated_at'] === undefined))
|
|
49
|
-
return false;
|
|
50
|
-
if ((!('updatedBy' in value) && !('updated_by' in value)) || (value['updatedBy'] === undefined && value['updated_by'] === undefined))
|
|
51
|
-
return false;
|
|
52
|
-
if ((!('versionOrdinal' in value) && !('version_ordinal' in value)) || (value['versionOrdinal'] === undefined && value['version_ordinal'] === undefined))
|
|
53
|
-
return false;
|
|
54
|
-
if ((!('workspaceId' in value) && !('workspace_id' in value)) || (value['workspaceId'] === undefined && value['workspace_id'] === undefined))
|
|
55
|
-
return false;
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
function BoxFromJSON(json) {
|
|
59
|
-
return BoxFromJSONTyped(json, false);
|
|
60
|
-
}
|
|
61
|
-
function BoxFromJSONTyped(json, ignoreDiscriminator) {
|
|
62
|
-
if (json == null) {
|
|
63
|
-
return json;
|
|
64
|
-
}
|
|
65
|
-
return {
|
|
66
|
-
'app': json['app'] == null ? undefined : json['app'],
|
|
67
|
-
'artifactStatus': json['artifact_status'],
|
|
68
|
-
'commitTs': json['commit_ts'],
|
|
69
|
-
'contentHashHex': json['content_hash_hex'] == null ? undefined : json['content_hash_hex'],
|
|
70
|
-
'createdAt': json['created_at'],
|
|
71
|
-
'createdBy': json['created_by'],
|
|
72
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
73
|
-
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
74
|
-
'id': json['id'],
|
|
75
|
-
'identity': json['identity'] == null ? undefined : (0, GatewayArtifactIdentityRevealView_1.GatewayArtifactIdentityRevealViewFromJSON)(json['identity']),
|
|
76
|
-
'isLatest': json['is_latest'],
|
|
77
|
-
'kind': json['kind'],
|
|
78
|
-
'name': json['name'],
|
|
79
|
-
'oidcClientId': json['oidc_client_id'] == null ? undefined : json['oidc_client_id'],
|
|
80
|
-
'ownerId': json['owner_id'] == null ? undefined : json['owner_id'],
|
|
81
|
-
'projectId': json['project_id'] == null ? undefined : json['project_id'],
|
|
82
|
-
'repoId': json['repo_id'] == null ? undefined : json['repo_id'],
|
|
83
|
-
'sourceCreatedAt': json['source_created_at'] == null ? undefined : json['source_created_at'],
|
|
84
|
-
'sourceCreatedBy': json['source_created_by'] == null ? undefined : json['source_created_by'],
|
|
85
|
-
'sourceDigest': json['source_digest'] == null ? undefined : json['source_digest'],
|
|
86
|
-
'sourceId': json['source_id'] == null ? undefined : json['source_id'],
|
|
87
|
-
'sourceLastModifiedAt': json['source_last_modified_at'] == null ? undefined : json['source_last_modified_at'],
|
|
88
|
-
'sourceLastModifiedBy': json['source_last_modified_by'] == null ? undefined : json['source_last_modified_by'],
|
|
89
|
-
'sourceMetadata': json['source_metadata'] === undefined ? undefined : json['source_metadata'] === null ? null : json['source_metadata'],
|
|
90
|
-
'sourceSyncedAt': json['source_synced_at'] == null ? undefined : json['source_synced_at'],
|
|
91
|
-
'sourceType': json['source_type'],
|
|
92
|
-
'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
|
|
93
|
-
'sourceVersion': json['source_version'] == null ? undefined : json['source_version'],
|
|
94
|
-
'updatedAt': json['updated_at'],
|
|
95
|
-
'updatedBy': json['updated_by'],
|
|
96
|
-
'versionLabel': json['version_label'] == null ? undefined : json['version_label'],
|
|
97
|
-
'versionOrdinal': json['version_ordinal'],
|
|
98
|
-
'workspaceId': json['workspace_id'],
|
|
99
|
-
'content': json['content'] === undefined ? undefined : json['content'] === null ? null : json['content'],
|
|
100
|
-
'isSubjectSystem': json['is_subject_system'] == null ? undefined : json['is_subject_system'],
|
|
101
|
-
'messageRole': json['message_role'] == null ? undefined : (0, AgentMessageRole_1.AgentMessageRoleFromJSON)(json['message_role']),
|
|
102
|
-
'modelId': json['model_id'] === undefined ? undefined : json['model_id'] === null ? null : json['model_id'],
|
|
103
|
-
'sequenceNumber': json['sequence_number'] == null ? undefined : json['sequence_number'],
|
|
104
|
-
'sessionId': json['session_id'] == null ? undefined : json['session_id'],
|
|
105
|
-
'toolCallId': json['tool_call_id'] === undefined ? undefined : json['tool_call_id'] === null ? null : json['tool_call_id'],
|
|
106
|
-
'toolCalls': json['tool_calls'] == null ? undefined : (json['tool_calls'].map(AgentSessionToolCall_1.AgentSessionToolCallFromJSON)),
|
|
107
|
-
'toolName': json['tool_name'] === undefined ? undefined : json['tool_name'] === null ? null : json['tool_name'],
|
|
108
|
-
'usage': json['usage'] == null ? undefined : (0, AgentSessionUsage_1.AgentSessionUsageFromJSON)(json['usage']),
|
|
109
|
-
'permissions': json['permissions'] === undefined ? undefined : json['permissions'] === null ? null : json['permissions'],
|
|
110
|
-
'relationships': json['relationships'] === undefined ? undefined : json['relationships'] === null ? null : (0, RegistryRelationshipsView_1.RegistryRelationshipsViewFromJSON)(json['relationships']),
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
function BoxToJSON(json) {
|
|
114
|
-
return BoxToJSONTyped(json, false);
|
|
115
|
-
}
|
|
116
|
-
function BoxToJSONTyped(value, ignoreDiscriminator = false) {
|
|
117
|
-
if (value == null) {
|
|
118
|
-
return value;
|
|
119
|
-
}
|
|
120
|
-
return {
|
|
121
|
-
'app': value['app'],
|
|
122
|
-
'artifact_status': value['artifactStatus'],
|
|
123
|
-
'commit_ts': value['commitTs'],
|
|
124
|
-
'content_hash_hex': value['contentHashHex'],
|
|
125
|
-
'created_at': value['createdAt'],
|
|
126
|
-
'created_by': value['createdBy'],
|
|
127
|
-
'description': value['description'],
|
|
128
|
-
'display_name': value['displayName'],
|
|
129
|
-
'id': value['id'],
|
|
130
|
-
'identity': (0, GatewayArtifactIdentityRevealView_1.GatewayArtifactIdentityRevealViewToJSON)(value['identity']),
|
|
131
|
-
'is_latest': value['isLatest'],
|
|
132
|
-
'kind': value['kind'],
|
|
133
|
-
'name': value['name'],
|
|
134
|
-
'oidc_client_id': value['oidcClientId'],
|
|
135
|
-
'owner_id': value['ownerId'],
|
|
136
|
-
'project_id': value['projectId'],
|
|
137
|
-
'repo_id': value['repoId'],
|
|
138
|
-
'source_created_at': value['sourceCreatedAt'],
|
|
139
|
-
'source_created_by': value['sourceCreatedBy'],
|
|
140
|
-
'source_digest': value['sourceDigest'],
|
|
141
|
-
'source_id': value['sourceId'],
|
|
142
|
-
'source_last_modified_at': value['sourceLastModifiedAt'],
|
|
143
|
-
'source_last_modified_by': value['sourceLastModifiedBy'],
|
|
144
|
-
'source_metadata': value['sourceMetadata'],
|
|
145
|
-
'source_synced_at': value['sourceSyncedAt'],
|
|
146
|
-
'source_type': value['sourceType'],
|
|
147
|
-
'source_uri': value['sourceUri'],
|
|
148
|
-
'source_version': value['sourceVersion'],
|
|
149
|
-
'updated_at': value['updatedAt'],
|
|
150
|
-
'updated_by': value['updatedBy'],
|
|
151
|
-
'version_label': value['versionLabel'],
|
|
152
|
-
'version_ordinal': value['versionOrdinal'],
|
|
153
|
-
'workspace_id': value['workspaceId'],
|
|
154
|
-
'content': value['content'],
|
|
155
|
-
'is_subject_system': value['isSubjectSystem'],
|
|
156
|
-
'message_role': (0, AgentMessageRole_1.AgentMessageRoleToJSON)(value['messageRole']),
|
|
157
|
-
'model_id': value['modelId'],
|
|
158
|
-
'sequence_number': value['sequenceNumber'],
|
|
159
|
-
'session_id': value['sessionId'],
|
|
160
|
-
'tool_call_id': value['toolCallId'],
|
|
161
|
-
'tool_calls': value['toolCalls'] == null ? undefined : (value['toolCalls'].map(AgentSessionToolCall_1.AgentSessionToolCallToJSON)),
|
|
162
|
-
'tool_name': value['toolName'],
|
|
163
|
-
'usage': (0, AgentSessionUsage_1.AgentSessionUsageToJSON)(value['usage']),
|
|
164
|
-
'permissions': value['permissions'],
|
|
165
|
-
'relationships': (0, RegistryRelationshipsView_1.RegistryRelationshipsViewToJSON)(value['relationships']),
|
|
166
|
-
};
|
|
167
|
-
}
|