@agent-os-sdk/client 0.5.1 → 0.5.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/dist/generated/openapi.d.ts +567 -17
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/modules/graphs.d.ts +1 -1
- package/dist/modules/graphs.d.ts.map +1 -1
- package/dist/modules/graphs.js +4 -4
- package/dist/modules/info.js +1 -1
- package/dist/modules/runs.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +567 -17
- package/src/generated/swagger.json +915 -22
- package/src/modules/graphs.ts +5 -5
- package/src/modules/info.ts +1 -1
package/src/modules/graphs.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface GraphsGetResponse {
|
|
|
36
36
|
|
|
37
37
|
export interface GraphsCommitRequest {
|
|
38
38
|
agent_id: string;
|
|
39
|
-
|
|
39
|
+
graph_spec: unknown;
|
|
40
40
|
expected_revision?: string;
|
|
41
41
|
source?: string;
|
|
42
42
|
}
|
|
@@ -130,7 +130,7 @@ export class GraphsModule {
|
|
|
130
130
|
* @returns 200 with graph spec, or 404 if not initialized
|
|
131
131
|
*/
|
|
132
132
|
async get(agentId: string): Promise<APIResponse<GraphsGetResponse>> {
|
|
133
|
-
return this.client.GET<GraphsGetResponse>(`/
|
|
133
|
+
return this.client.GET<GraphsGetResponse>(`/v1/api/graph/${agentId}`, {
|
|
134
134
|
headers: this.headers(),
|
|
135
135
|
});
|
|
136
136
|
}
|
|
@@ -140,7 +140,7 @@ export class GraphsModule {
|
|
|
140
140
|
* @returns 200 (committed/no_change), or 409 on conflict
|
|
141
141
|
*/
|
|
142
142
|
async commit(request: GraphsCommitRequest): Promise<APIResponse<GraphsCommitResponse>> {
|
|
143
|
-
return this.client.POST<GraphsCommitResponse>("/
|
|
143
|
+
return this.client.POST<GraphsCommitResponse>("/v1/api/graph/commit", {
|
|
144
144
|
body: request,
|
|
145
145
|
headers: this.headers(),
|
|
146
146
|
});
|
|
@@ -150,7 +150,7 @@ export class GraphsModule {
|
|
|
150
150
|
* List revision history for an agent.
|
|
151
151
|
*/
|
|
152
152
|
async listRevisions(agentId: string): Promise<APIResponse<GraphsRevisionsListResponse>> {
|
|
153
|
-
return this.client.GET<GraphsRevisionsListResponse>(`/
|
|
153
|
+
return this.client.GET<GraphsRevisionsListResponse>(`/v1/api/graph/${agentId}/revisions`, {
|
|
154
154
|
headers: this.headers(),
|
|
155
155
|
});
|
|
156
156
|
}
|
|
@@ -159,7 +159,7 @@ export class GraphsModule {
|
|
|
159
159
|
* Get a specific revision.
|
|
160
160
|
*/
|
|
161
161
|
async getRevision(agentId: string, revision: string): Promise<APIResponse<GraphsRevisionResponse>> {
|
|
162
|
-
return this.client.GET<GraphsRevisionResponse>(`/
|
|
162
|
+
return this.client.GET<GraphsRevisionResponse>(`/v1/api/graph/${agentId}/revisions/${revision}`, {
|
|
163
163
|
headers: this.headers(),
|
|
164
164
|
});
|
|
165
165
|
}
|
package/src/modules/info.ts
CHANGED