@agent-os-sdk/client 0.5.2 → 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.
@@ -36,7 +36,7 @@ export interface GraphsGetResponse {
36
36
 
37
37
  export interface GraphsCommitRequest {
38
38
  agent_id: string;
39
- proposed_spec: unknown;
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>(`/v2/api/graph/${agentId}`, {
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>("/v2/api/graph/commit", {
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>(`/v2/api/graph/${agentId}/revisions`, {
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>(`/v2/api/graph/${agentId}/revisions/${revision}`, {
162
+ return this.client.GET<GraphsRevisionResponse>(`/v1/api/graph/${agentId}/revisions/${revision}`, {
163
163
  headers: this.headers(),
164
164
  });
165
165
  }
@@ -55,7 +55,7 @@ export class InfoModule {
55
55
  * Get server information.
56
56
  */
57
57
  async get(): Promise<APIResponse<ServerInfo>> {
58
- return this.client.GET<ServerInfo>("/v1/api/info", {
58
+ return this.client.GET<ServerInfo>("/v1/info", {
59
59
  headers: this.headers(),
60
60
  });
61
61
  }