@agent-os-sdk/client 0.4.5 → 0.4.7
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 +109 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/modules/agents.d.ts +9 -0
- package/dist/modules/agents.d.ts.map +1 -1
- package/dist/modules/agents.js +25 -0
- package/dist/modules/runs.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +109 -0
- package/src/generated/swagger.json +133 -1
- package/src/modules/agents.ts +36 -0
|
@@ -526,6 +526,101 @@ export interface paths {
|
|
|
526
526
|
patch?: never;
|
|
527
527
|
trace?: never;
|
|
528
528
|
};
|
|
529
|
+
"/v1/api/agents/{id}/draft/graph": {
|
|
530
|
+
parameters: {
|
|
531
|
+
query?: never;
|
|
532
|
+
header?: never;
|
|
533
|
+
path?: never;
|
|
534
|
+
cookie?: never;
|
|
535
|
+
};
|
|
536
|
+
get?: never;
|
|
537
|
+
/**
|
|
538
|
+
* Updates the draft graph specification for an agent (autosave/resume).
|
|
539
|
+
* @description **IMPORTANT:** Draft is for UI autosave only. Publish does NOT read from draft.
|
|
540
|
+
* Publish continues to use `request.GraphSpec` as the canonical source.
|
|
541
|
+
*
|
|
542
|
+
* Requires `If-Match` header with ETag from previous GET/PUT.
|
|
543
|
+
*
|
|
544
|
+
* **ETag Format:**
|
|
545
|
+
* - Header: `"agentId:ticks"` (with quotes)
|
|
546
|
+
* - Body: `agentId:ticks` (no quotes)
|
|
547
|
+
*
|
|
548
|
+
* **Hints (in ProblemDetails.Extensions):**
|
|
549
|
+
* - 428: `include_if_match` - SDK should auto-fetch ETag
|
|
550
|
+
* - 412: `reload_and_retry` - Front should refetch and confirm
|
|
551
|
+
* - 400: `fix_payload` - Editor should show validation error
|
|
552
|
+
*/
|
|
553
|
+
put: {
|
|
554
|
+
parameters: {
|
|
555
|
+
query?: never;
|
|
556
|
+
header?: never;
|
|
557
|
+
path: {
|
|
558
|
+
id: string;
|
|
559
|
+
};
|
|
560
|
+
cookie?: never;
|
|
561
|
+
};
|
|
562
|
+
requestBody?: {
|
|
563
|
+
content: {
|
|
564
|
+
"application/json": components["schemas"]["UpdateDraftGraphRequest"];
|
|
565
|
+
"text/json": components["schemas"]["UpdateDraftGraphRequest"];
|
|
566
|
+
"application/*+json": components["schemas"]["UpdateDraftGraphRequest"];
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
responses: {
|
|
570
|
+
/** @description OK */
|
|
571
|
+
200: {
|
|
572
|
+
headers: {
|
|
573
|
+
[name: string]: unknown;
|
|
574
|
+
};
|
|
575
|
+
content: {
|
|
576
|
+
"application/json": components["schemas"]["AgentDraftResponse"];
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
/** @description Bad Request */
|
|
580
|
+
400: {
|
|
581
|
+
headers: {
|
|
582
|
+
[name: string]: unknown;
|
|
583
|
+
};
|
|
584
|
+
content: {
|
|
585
|
+
"application/json": components["schemas"]["ProblemDetails"];
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
/** @description Not Found */
|
|
589
|
+
404: {
|
|
590
|
+
headers: {
|
|
591
|
+
[name: string]: unknown;
|
|
592
|
+
};
|
|
593
|
+
content: {
|
|
594
|
+
"application/json": components["schemas"]["ProblemDetails"];
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
/** @description Precondition Failed */
|
|
598
|
+
412: {
|
|
599
|
+
headers: {
|
|
600
|
+
[name: string]: unknown;
|
|
601
|
+
};
|
|
602
|
+
content: {
|
|
603
|
+
"application/json": components["schemas"]["ProblemDetails"];
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
/** @description Precondition Required */
|
|
607
|
+
428: {
|
|
608
|
+
headers: {
|
|
609
|
+
[name: string]: unknown;
|
|
610
|
+
};
|
|
611
|
+
content: {
|
|
612
|
+
"application/json": components["schemas"]["ProblemDetails"];
|
|
613
|
+
};
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
post?: never;
|
|
618
|
+
delete?: never;
|
|
619
|
+
options?: never;
|
|
620
|
+
head?: never;
|
|
621
|
+
patch?: never;
|
|
622
|
+
trace?: never;
|
|
623
|
+
};
|
|
529
624
|
"/v1/api/agents/{id}/graph": {
|
|
530
625
|
parameters: {
|
|
531
626
|
query?: never;
|
|
@@ -7613,6 +7708,17 @@ export interface components {
|
|
|
7613
7708
|
/** Format: date-time */
|
|
7614
7709
|
created_at?: string;
|
|
7615
7710
|
};
|
|
7711
|
+
AgentDraftResponse: {
|
|
7712
|
+
/** Format: uuid */
|
|
7713
|
+
id?: string;
|
|
7714
|
+
name?: string | null;
|
|
7715
|
+
draft_graph_json?: string | null;
|
|
7716
|
+
/** Format: date-time */
|
|
7717
|
+
draft_updated_at?: string | null;
|
|
7718
|
+
/** Format: uuid */
|
|
7719
|
+
live_bundle_id?: string | null;
|
|
7720
|
+
e_tag?: string | null;
|
|
7721
|
+
};
|
|
7616
7722
|
AgentExportAgent: {
|
|
7617
7723
|
/** Format: uuid */
|
|
7618
7724
|
id?: string;
|
|
@@ -8372,6 +8478,9 @@ export interface components {
|
|
|
8372
8478
|
/** Format: uuid */
|
|
8373
8479
|
agentId?: string | null;
|
|
8374
8480
|
};
|
|
8481
|
+
UpdateDraftGraphRequest: {
|
|
8482
|
+
graphJson?: unknown;
|
|
8483
|
+
};
|
|
8375
8484
|
UpdateMemberRequest: {
|
|
8376
8485
|
/** Format: uuid */
|
|
8377
8486
|
role_id?: string | null;
|