@agent-os-sdk/client 0.9.23 → 0.9.24
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 +174 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/modules/agents.d.ts +40 -0
- package/dist/modules/agents.d.ts.map +1 -1
- package/dist/modules/agents.js +13 -0
- package/dist/modules/runs.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +174 -0
- package/src/generated/swagger.json +278 -0
- package/src/modules/agents.ts +61 -0
package/src/modules/agents.ts
CHANGED
|
@@ -105,6 +105,49 @@ export interface PublishPreviewResponse {
|
|
|
105
105
|
warnings: PublishPreviewIssue[];
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
export interface AgentPublishHistoryChangeSummary {
|
|
109
|
+
added_capability_refs: string[];
|
|
110
|
+
removed_capability_refs: string[];
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface AgentPublishHistoryItem {
|
|
114
|
+
release_id: string;
|
|
115
|
+
agent_id: string;
|
|
116
|
+
bundle_id: string;
|
|
117
|
+
previous_bundle_id?: string | null;
|
|
118
|
+
graph_version?: string | null;
|
|
119
|
+
runtime_package_hash: string;
|
|
120
|
+
content_hash: string;
|
|
121
|
+
action: "publish" | "rollback";
|
|
122
|
+
activated: boolean;
|
|
123
|
+
is_live: boolean;
|
|
124
|
+
status: "live" | "historical";
|
|
125
|
+
actor: string;
|
|
126
|
+
published_at: string;
|
|
127
|
+
reason?: string | null;
|
|
128
|
+
label?: string | null;
|
|
129
|
+
summary: string;
|
|
130
|
+
change_summary: AgentPublishHistoryChangeSummary;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export interface AgentPublishHistoryResponse {
|
|
134
|
+
agent_id: string;
|
|
135
|
+
live_bundle_id?: string | null;
|
|
136
|
+
items: AgentPublishHistoryItem[];
|
|
137
|
+
count: number;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface RollbackAgentRequest {
|
|
141
|
+
target_bundle_id: string;
|
|
142
|
+
reason?: string;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface AgentRollbackResponse {
|
|
146
|
+
agent_id: string;
|
|
147
|
+
live_bundle_id: string;
|
|
148
|
+
rollback_release: AgentPublishHistoryItem;
|
|
149
|
+
}
|
|
150
|
+
|
|
108
151
|
export interface AgentDraftIrResponse {
|
|
109
152
|
id: string;
|
|
110
153
|
name: string;
|
|
@@ -460,6 +503,24 @@ export class AgentsModule {
|
|
|
460
503
|
});
|
|
461
504
|
}
|
|
462
505
|
|
|
506
|
+
async listPublishes(agentId: string): Promise<APIResponse<AgentPublishHistoryResponse>> {
|
|
507
|
+
return this.client.GET<AgentPublishHistoryResponse>("/v1/api/agents/{id}/publishes", {
|
|
508
|
+
params: { path: { id: agentId } },
|
|
509
|
+
headers: this.headers(),
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
async rollback(
|
|
514
|
+
agentId: string,
|
|
515
|
+
body: RollbackAgentRequest
|
|
516
|
+
): Promise<APIResponse<AgentRollbackResponse>> {
|
|
517
|
+
return this.client.POST<AgentRollbackResponse>("/v1/api/agents/{id}/rollback", {
|
|
518
|
+
params: { path: { id: agentId } },
|
|
519
|
+
body,
|
|
520
|
+
headers: this.headers(),
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
|
|
463
524
|
// ======================== Bundles ========================
|
|
464
525
|
|
|
465
526
|
/**
|