@agent-os-sdk/client 0.4.2 → 0.4.4

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.
@@ -50,7 +50,7 @@ export interface paths {
50
50
  path?: never;
51
51
  cookie?: never;
52
52
  };
53
- /** Export an agent with all its versions. */
53
+ /** Export an agent with all its bundles. */
54
54
  get: {
55
55
  parameters: {
56
56
  query?: never;
@@ -91,11 +91,12 @@ export interface paths {
91
91
  /**
92
92
  * Import an agent bundle.
93
93
  * @description Imports an agent bundle into the current tenant/workspace.
94
- * The agent and all versions are created with new IDs to avoid conflicts.
94
+ * The agent and all bundles are created with new IDs to avoid conflicts.
95
95
  *
96
96
  * **Security:**
97
97
  * - Tenant and workspace are resolved from the authenticated context
98
98
  * - Original IDs from the bundle are replaced with new GUIDs
99
+ * - LiveBundleId is preserved via ID mapping
99
100
  */
100
101
  post: {
101
102
  parameters: {
@@ -104,23 +105,22 @@ export interface paths {
104
105
  path?: never;
105
106
  cookie?: never;
106
107
  };
107
- /** @description The agent bundle to import. */
108
108
  requestBody?: {
109
109
  content: {
110
- "application/json": components["schemas"]["AgentBundle"];
111
- "text/json": components["schemas"]["AgentBundle"];
112
- "application/*+json": components["schemas"]["AgentBundle"];
110
+ "application/json": components["schemas"]["AgentExportBundle"];
111
+ "text/json": components["schemas"]["AgentExportBundle"];
112
+ "application/*+json": components["schemas"]["AgentExportBundle"];
113
113
  };
114
114
  };
115
115
  responses: {
116
- /** @description Agent imported successfully. */
116
+ /** @description Created */
117
117
  201: {
118
118
  headers: {
119
119
  [name: string]: unknown;
120
120
  };
121
121
  content?: never;
122
122
  };
123
- /** @description Invalid bundle format. */
123
+ /** @description Bad Request */
124
124
  400: {
125
125
  headers: {
126
126
  [name: string]: unknown;
@@ -129,7 +129,7 @@ export interface paths {
129
129
  "application/json": components["schemas"]["ProblemDetails"];
130
130
  };
131
131
  };
132
- /** @description Authentication required or missing workspace context. */
132
+ /** @description Unauthorized */
133
133
  401: {
134
134
  headers: {
135
135
  [name: string]: unknown;
@@ -455,232 +455,43 @@ export interface paths {
455
455
  };
456
456
  trace?: never;
457
457
  };
458
- "/v1/api/agents/{id}/graph": {
458
+ "/v1/api/agents/{id}/publish": {
459
459
  parameters: {
460
460
  query?: never;
461
461
  header?: never;
462
462
  path?: never;
463
463
  cookie?: never;
464
464
  };
465
- /**
466
- * Gets a Mermaid diagram representation of the agent's graph.
467
- * @description Returns the agent's workflow as a Mermaid diagram string that can be rendered
468
- * in any Mermaid-compatible viewer. Uses the currently live version of the agent.
469
- *
470
- * **Example Response:**
471
- * ```json
472
- * {
473
- * "mermaid": "graph TD\n START --> LLM --> END",
474
- * "agent_id": "...",
475
- * "live_version_id": "..."
476
- * }
477
- * ```
478
- */
479
- get: {
480
- parameters: {
481
- query?: never;
482
- header?: never;
483
- path: {
484
- /** @description The unique identifier (GUID) of the agent. */
485
- id: string;
486
- };
487
- cookie?: never;
488
- };
489
- requestBody?: never;
490
- responses: {
491
- /** @description Returns the Mermaid graph representation. */
492
- 200: {
493
- headers: {
494
- [name: string]: unknown;
495
- };
496
- content?: never;
497
- };
498
- /** @description Authentication required. */
499
- 401: {
500
- headers: {
501
- [name: string]: unknown;
502
- };
503
- content: {
504
- "application/json": components["schemas"]["ProblemDetails"];
505
- };
506
- };
507
- /** @description Agent not found or not accessible. */
508
- 404: {
509
- headers: {
510
- [name: string]: unknown;
511
- };
512
- content: {
513
- "application/json": components["schemas"]["ProblemDetails"];
514
- };
515
- };
516
- };
517
- };
465
+ get?: never;
518
466
  put?: never;
519
- post?: never;
520
- delete?: never;
521
- options?: never;
522
- head?: never;
523
- patch?: never;
524
- trace?: never;
525
- };
526
- "/v1/api/agents/{agentId}/versions/{versionId}/manifest": {
527
- parameters: {
528
- query?: never;
529
- header?: never;
530
- path?: never;
531
- cookie?: never;
532
- };
533
- /** Get artifact manifest for a version. */
534
- get: {
467
+ /** Publishes a new version (bundle) of the agent. */
468
+ post: {
535
469
  parameters: {
536
470
  query?: never;
537
471
  header?: never;
538
472
  path: {
539
- agentId: string;
540
- versionId: string;
473
+ id: string;
541
474
  };
542
475
  cookie?: never;
543
476
  };
544
- requestBody?: never;
545
- responses: {
546
- /** @description OK */
547
- 200: {
548
- headers: {
549
- [name: string]: unknown;
550
- };
551
- content?: never;
552
- };
553
- };
554
- };
555
- put?: never;
556
- post?: never;
557
- delete?: never;
558
- options?: never;
559
- head?: never;
560
- patch?: never;
561
- trace?: never;
562
- };
563
- "/v1/api/agents/{agentId}/versions/{versionId}/graph/mermaid": {
564
- parameters: {
565
- query?: never;
566
- header?: never;
567
- path?: never;
568
- cookie?: never;
569
- };
570
- /** Get Mermaid diagram for graph. */
571
- get: {
572
- parameters: {
573
- query?: never;
574
- header?: never;
575
- path: {
576
- agentId: string;
577
- versionId: string;
477
+ requestBody?: {
478
+ content: {
479
+ "application/json": components["schemas"]["PublishAgentRequest"];
480
+ "text/json": components["schemas"]["PublishAgentRequest"];
481
+ "application/*+json": components["schemas"]["PublishAgentRequest"];
578
482
  };
579
- cookie?: never;
580
483
  };
581
- requestBody?: never;
582
484
  responses: {
583
485
  /** @description OK */
584
486
  200: {
585
- headers: {
586
- [name: string]: unknown;
587
- };
588
- content?: never;
589
- };
590
- };
591
- };
592
- put?: never;
593
- post?: never;
594
- delete?: never;
595
- options?: never;
596
- head?: never;
597
- patch?: never;
598
- trace?: never;
599
- };
600
- "/v1/api/agents/{agentId}/versions": {
601
- parameters: {
602
- query?: never;
603
- header?: never;
604
- path?: never;
605
- cookie?: never;
606
- };
607
- /**
608
- * Lists all versions for an agent.
609
- * @description Returns all versions of the specified agent, ordered by creation date (newest first).
610
- * The response includes which version is currently set as "live".
611
- */
612
- get: {
613
- parameters: {
614
- query?: never;
615
- header?: never;
616
- path: {
617
- /** @description The unique identifier of the agent. */
618
- agentId: string;
619
- };
620
- cookie?: never;
621
- };
622
- requestBody?: never;
623
- responses: {
624
- /** @description Returns the list of versions. */
625
- 200: {
626
- headers: {
627
- [name: string]: unknown;
628
- };
629
- content?: never;
630
- };
631
- /** @description Authentication required. */
632
- 401: {
633
487
  headers: {
634
488
  [name: string]: unknown;
635
489
  };
636
490
  content: {
637
- "application/json": components["schemas"]["ProblemDetails"];
638
- };
639
- };
640
- };
641
- };
642
- put?: never;
643
- /**
644
- * Creates a new version for an agent.
645
- * @description Creates an immutable snapshot of the agent's configuration. The new version
646
- * can optionally be marked as the live version immediately.
647
- *
648
- * **Example Request:**
649
- * ```json
650
- * {
651
- * "version_tag": "v1.2.0",
652
- * "graph_spec": { "nodes": [...], "edges": [...] },
653
- * "set_live": true
654
- * }
655
- * ```
656
- */
657
- post: {
658
- parameters: {
659
- query?: never;
660
- header?: never;
661
- path: {
662
- /** @description The unique identifier of the parent agent. */
663
- agentId: string;
664
- };
665
- cookie?: never;
666
- };
667
- /** @description The version creation request with graph specification. */
668
- requestBody?: {
669
- content: {
670
- "application/json": components["schemas"]["CreateAgentVersionRequest"];
671
- "text/json": components["schemas"]["CreateAgentVersionRequest"];
672
- "application/*+json": components["schemas"]["CreateAgentVersionRequest"];
673
- };
674
- };
675
- responses: {
676
- /** @description Version created successfully. */
677
- 201: {
678
- headers: {
679
- [name: string]: unknown;
491
+ "application/json": components["schemas"]["BundleResponse"];
680
492
  };
681
- content?: never;
682
493
  };
683
- /** @description Invalid request body or validation error. */
494
+ /** @description Bad Request */
684
495
  400: {
685
496
  headers: {
686
497
  [name: string]: unknown;
@@ -689,7 +500,7 @@ export interface paths {
689
500
  "application/json": components["schemas"]["ProblemDetails"];
690
501
  };
691
502
  };
692
- /** @description Authentication required. */
503
+ /** @description Unauthorized */
693
504
  401: {
694
505
  headers: {
695
506
  [name: string]: unknown;
@@ -698,7 +509,7 @@ export interface paths {
698
509
  "application/json": components["schemas"]["ProblemDetails"];
699
510
  };
700
511
  };
701
- /** @description Parent agent not found. */
512
+ /** @description Not Found */
702
513
  404: {
703
514
  headers: {
704
515
  [name: string]: unknown;
@@ -715,109 +526,7 @@ export interface paths {
715
526
  patch?: never;
716
527
  trace?: never;
717
528
  };
718
- "/v1/api/agents/{agentId}/versions/{versionId}": {
719
- parameters: {
720
- query?: never;
721
- header?: never;
722
- path?: never;
723
- cookie?: never;
724
- };
725
- /**
726
- * Retrieves a specific version by its identifier.
727
- * @description Returns the full details of a specific agent version, including its
728
- * graph specification and all configuration settings.
729
- */
730
- get: {
731
- parameters: {
732
- query?: never;
733
- header?: never;
734
- path: {
735
- /** @description The unique identifier of the parent agent. */
736
- agentId: string;
737
- /** @description The unique identifier of the version to retrieve. */
738
- versionId: string;
739
- };
740
- cookie?: never;
741
- };
742
- requestBody?: never;
743
- responses: {
744
- /** @description Returns the version details. */
745
- 200: {
746
- headers: {
747
- [name: string]: unknown;
748
- };
749
- content?: never;
750
- };
751
- /** @description Authentication required. */
752
- 401: {
753
- headers: {
754
- [name: string]: unknown;
755
- };
756
- content: {
757
- "application/json": components["schemas"]["ProblemDetails"];
758
- };
759
- };
760
- /** @description Version not found. */
761
- 404: {
762
- headers: {
763
- [name: string]: unknown;
764
- };
765
- content: {
766
- "application/json": components["schemas"]["ProblemDetails"];
767
- };
768
- };
769
- };
770
- };
771
- put?: never;
772
- post?: never;
773
- delete?: never;
774
- options?: never;
775
- head?: never;
776
- /**
777
- * Updates are not allowed - versions are immutable.
778
- * @description Agent versions are immutable by design. This endpoint always returns a 409 Conflict
779
- * to enforce this invariant. To change an agent's behavior, create a new version instead.
780
- *
781
- * **Why immutability?**
782
- * - Reproducibility: Every run can be traced to an exact version
783
- * - Auditability: Version history provides a complete changelog
784
- * - Rollback: Easy to revert to any previous version
785
- */
786
- patch: {
787
- parameters: {
788
- query?: never;
789
- header?: never;
790
- path: {
791
- /** @description The unique identifier of the parent agent. */
792
- agentId: string;
793
- /** @description The unique identifier of the version. */
794
- versionId: string;
795
- };
796
- cookie?: never;
797
- };
798
- /** @description The update request (ignored - updates not allowed). */
799
- requestBody?: {
800
- content: {
801
- "application/json": unknown;
802
- "text/json": unknown;
803
- "application/*+json": unknown;
804
- };
805
- };
806
- responses: {
807
- /** @description Versions are immutable. Create a new version instead. */
808
- 409: {
809
- headers: {
810
- [name: string]: unknown;
811
- };
812
- content: {
813
- "application/json": components["schemas"]["ProblemDetails"];
814
- };
815
- };
816
- };
817
- };
818
- trace?: never;
819
- };
820
- "/v1/api/agents/{agentId}/versions/{versionId}/bundle": {
529
+ "/v1/api/agents/{id}/graph": {
821
530
  parameters: {
822
531
  query?: never;
823
532
  header?: never;
@@ -825,52 +534,33 @@ export interface paths {
825
534
  cookie?: never;
826
535
  };
827
536
  /**
828
- * Gets the full execution bundle for a version including resolved graph_spec.
829
- * @description Returns the complete graph specification and metadata for a version.
830
- * The graph_spec is fully resolved - no need to fetch artifacts separately.
831
- *
832
- * **Caching:** Uses strong ETag based on artifact_hash for efficient caching.
833
- * Include `If-None-Match` header to get 304 Not Modified when content unchanged.
537
+ * Gets a Mermaid diagram representation of the agent's graph.
538
+ * @description Returns the agent's workflow as a Mermaid diagram string that can be rendered
539
+ * in any Mermaid-compatible viewer. Uses the currently live version of the agent.
834
540
  *
835
541
  * **Example Response:**
836
542
  * ```json
837
543
  * {
838
- * "version": { "id": "...", "version_tag": "v1.2.0", ... },
839
- * "graph_spec": { "nodes": [...], "edges": [...] },
840
- * "artifact_hash": "a1b2c3...",
841
- * "format": "langgraph_json_v1",
842
- * "resolved_at": "2024-01-01T12:00:00Z"
544
+ * "mermaid": "graph TD\n START --> LLM --> END",
545
+ * "agent_id": "...",
546
+ * "live_version_id": "..."
843
547
  * }
844
548
  * ```
845
549
  */
846
550
  get: {
847
551
  parameters: {
848
552
  query?: never;
849
- header?: {
850
- /** @description Optional ETag for cache validation (304 support). */
851
- "If-None-Match"?: string;
852
- };
553
+ header?: never;
853
554
  path: {
854
- /** @description The unique identifier of the parent agent. */
855
- agentId: string;
856
- /** @description The unique identifier of the version to retrieve. */
857
- versionId: string;
555
+ /** @description The unique identifier (GUID) of the agent. */
556
+ id: string;
858
557
  };
859
558
  cookie?: never;
860
559
  };
861
560
  requestBody?: never;
862
561
  responses: {
863
- /** @description Returns the full bundle. */
562
+ /** @description Returns the Mermaid graph representation. */
864
563
  200: {
865
- headers: {
866
- [name: string]: unknown;
867
- };
868
- content: {
869
- "application/json": components["schemas"]["AgentVersionBundleResponse"];
870
- };
871
- };
872
- /** @description Content not modified (ETag matched). */
873
- 304: {
874
564
  headers: {
875
565
  [name: string]: unknown;
876
566
  };
@@ -885,7 +575,7 @@ export interface paths {
885
575
  "application/json": components["schemas"]["ProblemDetails"];
886
576
  };
887
577
  };
888
- /** @description Agent or version not found. */
578
+ /** @description Agent not found or not accessible. */
889
579
  404: {
890
580
  headers: {
891
581
  [name: string]: unknown;
@@ -1319,6 +1009,7 @@ export interface paths {
1319
1009
  /**
1320
1010
  * Chat with the Meta-Agent to modify an agent's graph.
1321
1011
  * Returns SSE stream: message, graph_update, done events.
1012
+ * @description KERNEL: Frontend sends intention only. CP loads everything from DB.
1322
1013
  */
1323
1014
  post: {
1324
1015
  parameters: {
@@ -1394,18 +1085,132 @@ export interface paths {
1394
1085
  patch?: never;
1395
1086
  trace?: never;
1396
1087
  };
1397
- "/v1/api/catalog/nodes": {
1088
+ "/v1/api/agents/{agentId}/bundles/{bundleId}/manifest": {
1089
+ parameters: {
1090
+ query?: never;
1091
+ header?: never;
1092
+ path?: never;
1093
+ cookie?: never;
1094
+ };
1095
+ /** Get artifact manifest for a bundle. */
1096
+ get: {
1097
+ parameters: {
1098
+ query?: never;
1099
+ header?: never;
1100
+ path: {
1101
+ agentId: string;
1102
+ bundleId: string;
1103
+ };
1104
+ cookie?: never;
1105
+ };
1106
+ requestBody?: never;
1107
+ responses: {
1108
+ /** @description OK */
1109
+ 200: {
1110
+ headers: {
1111
+ [name: string]: unknown;
1112
+ };
1113
+ content?: never;
1114
+ };
1115
+ };
1116
+ };
1117
+ put?: never;
1118
+ post?: never;
1119
+ delete?: never;
1120
+ options?: never;
1121
+ head?: never;
1122
+ patch?: never;
1123
+ trace?: never;
1124
+ };
1125
+ "/v1/api/agents/{agentId}/bundles/{bundleId}/graph/mermaid": {
1126
+ parameters: {
1127
+ query?: never;
1128
+ header?: never;
1129
+ path?: never;
1130
+ cookie?: never;
1131
+ };
1132
+ /** Get Mermaid diagram for graph. */
1133
+ get: {
1134
+ parameters: {
1135
+ query?: never;
1136
+ header?: never;
1137
+ path: {
1138
+ agentId: string;
1139
+ bundleId: string;
1140
+ };
1141
+ cookie?: never;
1142
+ };
1143
+ requestBody?: never;
1144
+ responses: {
1145
+ /** @description OK */
1146
+ 200: {
1147
+ headers: {
1148
+ [name: string]: unknown;
1149
+ };
1150
+ content?: never;
1151
+ };
1152
+ };
1153
+ };
1154
+ put?: never;
1155
+ post?: never;
1156
+ delete?: never;
1157
+ options?: never;
1158
+ head?: never;
1159
+ patch?: never;
1160
+ trace?: never;
1161
+ };
1162
+ "/v1/api/catalog/nodes": {
1163
+ parameters: {
1164
+ query?: never;
1165
+ header?: never;
1166
+ path?: never;
1167
+ cookie?: never;
1168
+ };
1169
+ /** Get the Node Types Catalog. */
1170
+ get: {
1171
+ parameters: {
1172
+ query?: {
1173
+ /** @description API version (default: 1) */
1174
+ version?: number;
1175
+ };
1176
+ header?: never;
1177
+ path?: never;
1178
+ cookie?: never;
1179
+ };
1180
+ requestBody?: never;
1181
+ responses: {
1182
+ /** @description OK */
1183
+ 200: {
1184
+ headers: {
1185
+ [name: string]: unknown;
1186
+ };
1187
+ content: {
1188
+ "application/json": components["schemas"]["NodeCatalogResponse"];
1189
+ };
1190
+ };
1191
+ };
1192
+ };
1193
+ put?: never;
1194
+ post?: never;
1195
+ delete?: never;
1196
+ options?: never;
1197
+ head?: never;
1198
+ patch?: never;
1199
+ trace?: never;
1200
+ };
1201
+ "/v1/api/triggers/templates": {
1398
1202
  parameters: {
1399
1203
  query?: never;
1400
1204
  header?: never;
1401
1205
  path?: never;
1402
1206
  cookie?: never;
1403
1207
  };
1404
- /** Get the Node Catalog (v1). */
1208
+ /** Get the Trigger Templates Catalog. */
1405
1209
  get: {
1406
1210
  parameters: {
1407
1211
  query?: {
1408
- version?: string;
1212
+ /** @description API version (default: 1) */
1213
+ version?: number;
1409
1214
  };
1410
1215
  header?: never;
1411
1216
  path?: never;
@@ -1418,7 +1223,9 @@ export interface paths {
1418
1223
  headers: {
1419
1224
  [name: string]: unknown;
1420
1225
  };
1421
- content?: never;
1226
+ content: {
1227
+ "application/json": components["schemas"]["TriggerTemplatesCatalogResponse"];
1228
+ };
1422
1229
  };
1423
1230
  };
1424
1231
  };
@@ -1430,18 +1237,19 @@ export interface paths {
1430
1237
  patch?: never;
1431
1238
  trace?: never;
1432
1239
  };
1433
- "/v1/api/triggers/templates": {
1240
+ "/v1/api/catalog/presets": {
1434
1241
  parameters: {
1435
1242
  query?: never;
1436
1243
  header?: never;
1437
1244
  path?: never;
1438
1245
  cookie?: never;
1439
1246
  };
1440
- /** Get the Trigger Templates Catalog (v1). */
1247
+ /** Get the Node Presets Catalog. */
1441
1248
  get: {
1442
1249
  parameters: {
1443
1250
  query?: {
1444
- version?: string;
1251
+ /** @description API version (default: 1) */
1252
+ version?: number;
1445
1253
  };
1446
1254
  header?: never;
1447
1255
  path?: never;
@@ -1454,7 +1262,9 @@ export interface paths {
1454
1262
  headers: {
1455
1263
  [name: string]: unknown;
1456
1264
  };
1457
- content?: never;
1265
+ content: {
1266
+ "application/json": components["schemas"]["NodePresetsCatalogResponse"];
1267
+ };
1458
1268
  };
1459
1269
  };
1460
1270
  };
@@ -1751,7 +1561,37 @@ export interface paths {
1751
1561
  path?: never;
1752
1562
  cookie?: never;
1753
1563
  };
1754
- get?: never;
1564
+ /** Gets a single credential by ID. */
1565
+ get: {
1566
+ parameters: {
1567
+ query?: never;
1568
+ header?: never;
1569
+ path: {
1570
+ /** @description The credential ID. */
1571
+ id: string;
1572
+ };
1573
+ cookie?: never;
1574
+ };
1575
+ requestBody?: never;
1576
+ responses: {
1577
+ /** @description Returns the credential. */
1578
+ 200: {
1579
+ headers: {
1580
+ [name: string]: unknown;
1581
+ };
1582
+ content?: never;
1583
+ };
1584
+ /** @description Credential not found. */
1585
+ 404: {
1586
+ headers: {
1587
+ [name: string]: unknown;
1588
+ };
1589
+ content: {
1590
+ "application/json": components["schemas"]["ProblemDetails"];
1591
+ };
1592
+ };
1593
+ };
1594
+ };
1755
1595
  put?: never;
1756
1596
  post?: never;
1757
1597
  delete?: never;
@@ -3683,22 +3523,237 @@ export interface paths {
3683
3523
  patch?: never;
3684
3524
  trace?: never;
3685
3525
  };
3686
- "/v1/api/prompts": {
3526
+ "/v1/api/prompts": {
3527
+ parameters: {
3528
+ query?: never;
3529
+ header?: never;
3530
+ path?: never;
3531
+ cookie?: never;
3532
+ };
3533
+ /** List all prompts in the workspace. */
3534
+ get: {
3535
+ parameters: {
3536
+ query?: {
3537
+ skip?: number;
3538
+ take?: number;
3539
+ };
3540
+ header?: never;
3541
+ path?: never;
3542
+ cookie?: never;
3543
+ };
3544
+ requestBody?: never;
3545
+ responses: {
3546
+ /** @description OK */
3547
+ 200: {
3548
+ headers: {
3549
+ [name: string]: unknown;
3550
+ };
3551
+ content?: never;
3552
+ };
3553
+ };
3554
+ };
3555
+ put?: never;
3556
+ /** Create a new prompt. */
3557
+ post: {
3558
+ parameters: {
3559
+ query?: never;
3560
+ header?: never;
3561
+ path?: never;
3562
+ cookie?: never;
3563
+ };
3564
+ requestBody?: {
3565
+ content: {
3566
+ "application/json": components["schemas"]["CreatePromptRequest"];
3567
+ "text/json": components["schemas"]["CreatePromptRequest"];
3568
+ "application/*+json": components["schemas"]["CreatePromptRequest"];
3569
+ };
3570
+ };
3571
+ responses: {
3572
+ /** @description OK */
3573
+ 200: {
3574
+ headers: {
3575
+ [name: string]: unknown;
3576
+ };
3577
+ content?: never;
3578
+ };
3579
+ };
3580
+ };
3581
+ delete?: never;
3582
+ options?: never;
3583
+ head?: never;
3584
+ patch?: never;
3585
+ trace?: never;
3586
+ };
3587
+ "/v1/api/prompts/{id}": {
3588
+ parameters: {
3589
+ query?: never;
3590
+ header?: never;
3591
+ path?: never;
3592
+ cookie?: never;
3593
+ };
3594
+ /** Get a prompt by ID. */
3595
+ get: {
3596
+ parameters: {
3597
+ query?: never;
3598
+ header?: never;
3599
+ path: {
3600
+ id: string;
3601
+ };
3602
+ cookie?: never;
3603
+ };
3604
+ requestBody?: never;
3605
+ responses: {
3606
+ /** @description OK */
3607
+ 200: {
3608
+ headers: {
3609
+ [name: string]: unknown;
3610
+ };
3611
+ content?: never;
3612
+ };
3613
+ };
3614
+ };
3615
+ put?: never;
3616
+ post?: never;
3617
+ /** Delete a prompt (soft delete). */
3618
+ delete: {
3619
+ parameters: {
3620
+ query?: never;
3621
+ header?: never;
3622
+ path: {
3623
+ id: string;
3624
+ };
3625
+ cookie?: never;
3626
+ };
3627
+ requestBody?: never;
3628
+ responses: {
3629
+ /** @description OK */
3630
+ 200: {
3631
+ headers: {
3632
+ [name: string]: unknown;
3633
+ };
3634
+ content?: never;
3635
+ };
3636
+ };
3637
+ };
3638
+ options?: never;
3639
+ head?: never;
3640
+ patch?: never;
3641
+ trace?: never;
3642
+ };
3643
+ "/v1/api/prompts/by-name/{name}": {
3644
+ parameters: {
3645
+ query?: never;
3646
+ header?: never;
3647
+ path?: never;
3648
+ cookie?: never;
3649
+ };
3650
+ /** Get a prompt by name. */
3651
+ get: {
3652
+ parameters: {
3653
+ query?: never;
3654
+ header?: never;
3655
+ path: {
3656
+ name: string;
3657
+ };
3658
+ cookie?: never;
3659
+ };
3660
+ requestBody?: never;
3661
+ responses: {
3662
+ /** @description OK */
3663
+ 200: {
3664
+ headers: {
3665
+ [name: string]: unknown;
3666
+ };
3667
+ content?: never;
3668
+ };
3669
+ };
3670
+ };
3671
+ put?: never;
3672
+ post?: never;
3673
+ delete?: never;
3674
+ options?: never;
3675
+ head?: never;
3676
+ patch?: never;
3677
+ trace?: never;
3678
+ };
3679
+ "/v1/api/prompts/{id}/versions": {
3680
+ parameters: {
3681
+ query?: never;
3682
+ header?: never;
3683
+ path?: never;
3684
+ cookie?: never;
3685
+ };
3686
+ /** Get all versions of a prompt. */
3687
+ get: {
3688
+ parameters: {
3689
+ query?: never;
3690
+ header?: never;
3691
+ path: {
3692
+ id: string;
3693
+ };
3694
+ cookie?: never;
3695
+ };
3696
+ requestBody?: never;
3697
+ responses: {
3698
+ /** @description OK */
3699
+ 200: {
3700
+ headers: {
3701
+ [name: string]: unknown;
3702
+ };
3703
+ content?: never;
3704
+ };
3705
+ };
3706
+ };
3707
+ put?: never;
3708
+ /** Create a new version of a prompt. */
3709
+ post: {
3710
+ parameters: {
3711
+ query?: never;
3712
+ header?: never;
3713
+ path: {
3714
+ id: string;
3715
+ };
3716
+ cookie?: never;
3717
+ };
3718
+ requestBody?: {
3719
+ content: {
3720
+ "application/json": components["schemas"]["CreatePromptVersionRequest"];
3721
+ "text/json": components["schemas"]["CreatePromptVersionRequest"];
3722
+ "application/*+json": components["schemas"]["CreatePromptVersionRequest"];
3723
+ };
3724
+ };
3725
+ responses: {
3726
+ /** @description OK */
3727
+ 200: {
3728
+ headers: {
3729
+ [name: string]: unknown;
3730
+ };
3731
+ content?: never;
3732
+ };
3733
+ };
3734
+ };
3735
+ delete?: never;
3736
+ options?: never;
3737
+ head?: never;
3738
+ patch?: never;
3739
+ trace?: never;
3740
+ };
3741
+ "/v1/api/prompts/{id}/versions/{versionNumber}": {
3687
3742
  parameters: {
3688
3743
  query?: never;
3689
3744
  header?: never;
3690
3745
  path?: never;
3691
3746
  cookie?: never;
3692
3747
  };
3693
- /** List all prompts in the workspace. */
3748
+ /** Get a specific version of a prompt. */
3694
3749
  get: {
3695
3750
  parameters: {
3696
- query?: {
3697
- skip?: number;
3698
- take?: number;
3699
- };
3751
+ query?: never;
3700
3752
  header?: never;
3701
- path?: never;
3753
+ path: {
3754
+ id: string;
3755
+ versionNumber: number;
3756
+ };
3702
3757
  cookie?: never;
3703
3758
  };
3704
3759
  requestBody?: never;
@@ -3713,51 +3768,27 @@ export interface paths {
3713
3768
  };
3714
3769
  };
3715
3770
  put?: never;
3716
- /** Create a new prompt. */
3717
- post: {
3718
- parameters: {
3719
- query?: never;
3720
- header?: never;
3721
- path?: never;
3722
- cookie?: never;
3723
- };
3724
- requestBody?: {
3725
- content: {
3726
- "application/json": components["schemas"]["CreatePromptRequest"];
3727
- "text/json": components["schemas"]["CreatePromptRequest"];
3728
- "application/*+json": components["schemas"]["CreatePromptRequest"];
3729
- };
3730
- };
3731
- responses: {
3732
- /** @description OK */
3733
- 200: {
3734
- headers: {
3735
- [name: string]: unknown;
3736
- };
3737
- content?: never;
3738
- };
3739
- };
3740
- };
3771
+ post?: never;
3741
3772
  delete?: never;
3742
3773
  options?: never;
3743
3774
  head?: never;
3744
3775
  patch?: never;
3745
3776
  trace?: never;
3746
3777
  };
3747
- "/v1/api/prompts/{id}": {
3778
+ "/v1/api/prompts/{name}/latest": {
3748
3779
  parameters: {
3749
3780
  query?: never;
3750
3781
  header?: never;
3751
3782
  path?: never;
3752
3783
  cookie?: never;
3753
3784
  };
3754
- /** Get a prompt by ID. */
3785
+ /** Get the latest (live) version of a prompt. */
3755
3786
  get: {
3756
3787
  parameters: {
3757
3788
  query?: never;
3758
3789
  header?: never;
3759
3790
  path: {
3760
- id: string;
3791
+ name: string;
3761
3792
  };
3762
3793
  cookie?: never;
3763
3794
  };
@@ -3774,8 +3805,23 @@ export interface paths {
3774
3805
  };
3775
3806
  put?: never;
3776
3807
  post?: never;
3777
- /** Delete a prompt (soft delete). */
3778
- delete: {
3808
+ delete?: never;
3809
+ options?: never;
3810
+ head?: never;
3811
+ patch?: never;
3812
+ trace?: never;
3813
+ };
3814
+ "/v1/api/prompts/{id}/live": {
3815
+ parameters: {
3816
+ query?: never;
3817
+ header?: never;
3818
+ path?: never;
3819
+ cookie?: never;
3820
+ };
3821
+ get?: never;
3822
+ put?: never;
3823
+ /** Set which version is live. */
3824
+ post: {
3779
3825
  parameters: {
3780
3826
  query?: never;
3781
3827
  header?: never;
@@ -3784,7 +3830,13 @@ export interface paths {
3784
3830
  };
3785
3831
  cookie?: never;
3786
3832
  };
3787
- requestBody?: never;
3833
+ requestBody?: {
3834
+ content: {
3835
+ "application/json": components["schemas"]["SetLiveVersionRequest"];
3836
+ "text/json": components["schemas"]["SetLiveVersionRequest"];
3837
+ "application/*+json": components["schemas"]["SetLiveVersionRequest"];
3838
+ };
3839
+ };
3788
3840
  responses: {
3789
3841
  /** @description OK */
3790
3842
  200: {
@@ -3795,20 +3847,23 @@ export interface paths {
3795
3847
  };
3796
3848
  };
3797
3849
  };
3850
+ delete?: never;
3798
3851
  options?: never;
3799
3852
  head?: never;
3800
3853
  patch?: never;
3801
3854
  trace?: never;
3802
3855
  };
3803
- "/v1/api/prompts/by-name/{name}": {
3856
+ "/v1/api/prompts/{name}/playground": {
3804
3857
  parameters: {
3805
3858
  query?: never;
3806
3859
  header?: never;
3807
3860
  path?: never;
3808
3861
  cookie?: never;
3809
3862
  };
3810
- /** Get a prompt by name. */
3811
- get: {
3863
+ get?: never;
3864
+ put?: never;
3865
+ /** Playground - Render a prompt template with variables. */
3866
+ post: {
3812
3867
  parameters: {
3813
3868
  query?: never;
3814
3869
  header?: never;
@@ -3817,7 +3872,13 @@ export interface paths {
3817
3872
  };
3818
3873
  cookie?: never;
3819
3874
  };
3820
- requestBody?: never;
3875
+ requestBody?: {
3876
+ content: {
3877
+ "application/json": components["schemas"]["PlaygroundRequest"];
3878
+ "text/json": components["schemas"]["PlaygroundRequest"];
3879
+ "application/*+json": components["schemas"]["PlaygroundRequest"];
3880
+ };
3881
+ };
3821
3882
  responses: {
3822
3883
  /** @description OK */
3823
3884
  200: {
@@ -3828,29 +3889,25 @@ export interface paths {
3828
3889
  };
3829
3890
  };
3830
3891
  };
3831
- put?: never;
3832
- post?: never;
3833
3892
  delete?: never;
3834
3893
  options?: never;
3835
3894
  head?: never;
3836
3895
  patch?: never;
3837
3896
  trace?: never;
3838
3897
  };
3839
- "/v1/api/prompts/{id}/versions": {
3898
+ "/v1/api/roles": {
3840
3899
  parameters: {
3841
3900
  query?: never;
3842
3901
  header?: never;
3843
3902
  path?: never;
3844
3903
  cookie?: never;
3845
3904
  };
3846
- /** Get all versions of a prompt. */
3905
+ /** List all roles available in the tenant. */
3847
3906
  get: {
3848
3907
  parameters: {
3849
3908
  query?: never;
3850
3909
  header?: never;
3851
- path: {
3852
- id: string;
3853
- };
3910
+ path?: never;
3854
3911
  cookie?: never;
3855
3912
  };
3856
3913
  requestBody?: never;
@@ -3865,21 +3922,19 @@ export interface paths {
3865
3922
  };
3866
3923
  };
3867
3924
  put?: never;
3868
- /** Create a new version of a prompt. */
3925
+ /** Create a new custom role. */
3869
3926
  post: {
3870
3927
  parameters: {
3871
3928
  query?: never;
3872
3929
  header?: never;
3873
- path: {
3874
- id: string;
3875
- };
3930
+ path?: never;
3876
3931
  cookie?: never;
3877
3932
  };
3878
3933
  requestBody?: {
3879
3934
  content: {
3880
- "application/json": components["schemas"]["CreatePromptVersionRequest"];
3881
- "text/json": components["schemas"]["CreatePromptVersionRequest"];
3882
- "application/*+json": components["schemas"]["CreatePromptVersionRequest"];
3935
+ "application/json": components["schemas"]["CreateRoleRequest"];
3936
+ "text/json": components["schemas"]["CreateRoleRequest"];
3937
+ "application/*+json": components["schemas"]["CreateRoleRequest"];
3883
3938
  };
3884
3939
  };
3885
3940
  responses: {
@@ -3898,22 +3953,19 @@ export interface paths {
3898
3953
  patch?: never;
3899
3954
  trace?: never;
3900
3955
  };
3901
- "/v1/api/prompts/{id}/versions/{versionNumber}": {
3956
+ "/v1/api/roles/permissions": {
3902
3957
  parameters: {
3903
3958
  query?: never;
3904
3959
  header?: never;
3905
3960
  path?: never;
3906
3961
  cookie?: never;
3907
3962
  };
3908
- /** Get a specific version of a prompt. */
3963
+ /** List all available system permissions. */
3909
3964
  get: {
3910
3965
  parameters: {
3911
3966
  query?: never;
3912
3967
  header?: never;
3913
- path: {
3914
- id: string;
3915
- versionNumber: number;
3916
- };
3968
+ path?: never;
3917
3969
  cookie?: never;
3918
3970
  };
3919
3971
  requestBody?: never;
@@ -3935,20 +3987,20 @@ export interface paths {
3935
3987
  patch?: never;
3936
3988
  trace?: never;
3937
3989
  };
3938
- "/v1/api/prompts/{name}/latest": {
3990
+ "/v1/api/roles/{id}": {
3939
3991
  parameters: {
3940
3992
  query?: never;
3941
3993
  header?: never;
3942
3994
  path?: never;
3943
3995
  cookie?: never;
3944
3996
  };
3945
- /** Get the latest (live) version of a prompt. */
3997
+ /** Get a specific role by ID. */
3946
3998
  get: {
3947
3999
  parameters: {
3948
4000
  query?: never;
3949
4001
  header?: never;
3950
4002
  path: {
3951
- name: string;
4003
+ id: string;
3952
4004
  };
3953
4005
  cookie?: never;
3954
4006
  };
@@ -3963,25 +4015,11 @@ export interface paths {
3963
4015
  };
3964
4016
  };
3965
4017
  };
3966
- put?: never;
3967
- post?: never;
3968
- delete?: never;
3969
- options?: never;
3970
- head?: never;
3971
- patch?: never;
3972
- trace?: never;
3973
- };
3974
- "/v1/api/prompts/{id}/live": {
3975
- parameters: {
3976
- query?: never;
3977
- header?: never;
3978
- path?: never;
3979
- cookie?: never;
3980
- };
3981
- get?: never;
3982
- put?: never;
3983
- /** Set which version is live. */
3984
- post: {
4018
+ /**
4019
+ * Update an existing custom role.
4020
+ * System roles cannot be updated.
4021
+ */
4022
+ put: {
3985
4023
  parameters: {
3986
4024
  query?: never;
3987
4025
  header?: never;
@@ -3992,9 +4030,9 @@ export interface paths {
3992
4030
  };
3993
4031
  requestBody?: {
3994
4032
  content: {
3995
- "application/json": components["schemas"]["SetLiveVersionRequest"];
3996
- "text/json": components["schemas"]["SetLiveVersionRequest"];
3997
- "application/*+json": components["schemas"]["SetLiveVersionRequest"];
4033
+ "application/json": components["schemas"]["UpdateRoleRequest"];
4034
+ "text/json": components["schemas"]["UpdateRoleRequest"];
4035
+ "application/*+json": components["schemas"]["UpdateRoleRequest"];
3998
4036
  };
3999
4037
  };
4000
4038
  responses: {
@@ -4007,13 +4045,38 @@ export interface paths {
4007
4045
  };
4008
4046
  };
4009
4047
  };
4010
- delete?: never;
4048
+ post?: never;
4049
+ /**
4050
+ * Delete a custom role.
4051
+ * System roles cannot be deleted.
4052
+ * Roles assigned to members cannot be deleted.
4053
+ */
4054
+ delete: {
4055
+ parameters: {
4056
+ query?: never;
4057
+ header?: never;
4058
+ path: {
4059
+ id: string;
4060
+ };
4061
+ cookie?: never;
4062
+ };
4063
+ requestBody?: never;
4064
+ responses: {
4065
+ /** @description OK */
4066
+ 200: {
4067
+ headers: {
4068
+ [name: string]: unknown;
4069
+ };
4070
+ content?: never;
4071
+ };
4072
+ };
4073
+ };
4011
4074
  options?: never;
4012
4075
  head?: never;
4013
4076
  patch?: never;
4014
4077
  trace?: never;
4015
4078
  };
4016
- "/v1/api/prompts/{name}/playground": {
4079
+ "/v1/api/roles/seed-defaults": {
4017
4080
  parameters: {
4018
4081
  query?: never;
4019
4082
  header?: never;
@@ -4022,23 +4085,15 @@ export interface paths {
4022
4085
  };
4023
4086
  get?: never;
4024
4087
  put?: never;
4025
- /** Playground - Render a prompt template with variables. */
4088
+ /** SEED DEFAULT PERMISSIONS (Temporary/Admin Helper) */
4026
4089
  post: {
4027
4090
  parameters: {
4028
4091
  query?: never;
4029
4092
  header?: never;
4030
- path: {
4031
- name: string;
4032
- };
4093
+ path?: never;
4033
4094
  cookie?: never;
4034
4095
  };
4035
- requestBody?: {
4036
- content: {
4037
- "application/json": components["schemas"]["PlaygroundRequest"];
4038
- "text/json": components["schemas"]["PlaygroundRequest"];
4039
- "application/*+json": components["schemas"]["PlaygroundRequest"];
4040
- };
4041
- };
4096
+ requestBody?: never;
4042
4097
  responses: {
4043
4098
  /** @description OK */
4044
4099
  200: {
@@ -4306,7 +4361,7 @@ export interface paths {
4306
4361
  cookie?: never;
4307
4362
  };
4308
4363
  /**
4309
- * Wave 1.0: Get run events for polling-based replay.
4364
+ * .0: Get run events for polling-based replay.
4310
4365
  * Returns events after a specific sequence number for incremental polling.
4311
4366
  * @description This is the recommended endpoint for SDK/UI event consumption.
4312
4367
  * Events are ordered by sequence number (ascending) and limited to prevent
@@ -4580,7 +4635,7 @@ export interface paths {
4580
4635
  cookie?: never;
4581
4636
  };
4582
4637
  /**
4583
- * Wave 5.2: Stream run events via SSE (Server-Sent Events).
4638
+ * .2: Stream run events via SSE (Server-Sent Events).
4584
4639
  * Uses robust internal polling (Cinema V1.2) to ensure strict ordering and reliability.
4585
4640
  * Closes connection when run is terminal and all events are delivered.
4586
4641
  */
@@ -6891,7 +6946,7 @@ export interface paths {
6891
6946
  patch?: never;
6892
6947
  trace?: never;
6893
6948
  };
6894
- "/v1/api/tenants/{tenantId}/workspaces": {
6949
+ "/v1/api/workspaces": {
6895
6950
  parameters: {
6896
6951
  query?: never;
6897
6952
  header?: never;
@@ -6902,9 +6957,7 @@ export interface paths {
6902
6957
  parameters: {
6903
6958
  query?: never;
6904
6959
  header?: never;
6905
- path: {
6906
- tenantId: string;
6907
- };
6960
+ path?: never;
6908
6961
  cookie?: never;
6909
6962
  };
6910
6963
  requestBody?: never;
@@ -6923,9 +6976,7 @@ export interface paths {
6923
6976
  parameters: {
6924
6977
  query?: never;
6925
6978
  header?: never;
6926
- path: {
6927
- tenantId: string;
6928
- };
6979
+ path?: never;
6929
6980
  cookie?: never;
6930
6981
  };
6931
6982
  requestBody?: {
@@ -6951,7 +7002,7 @@ export interface paths {
6951
7002
  patch?: never;
6952
7003
  trace?: never;
6953
7004
  };
6954
- "/v1/api/tenants/{tenantId}/workspaces/{id}": {
7005
+ "/v1/api/workspaces/{id}": {
6955
7006
  parameters: {
6956
7007
  query?: never;
6957
7008
  header?: never;
@@ -6963,7 +7014,6 @@ export interface paths {
6963
7014
  query?: never;
6964
7015
  header?: never;
6965
7016
  path: {
6966
- tenantId: string;
6967
7017
  id: string;
6968
7018
  };
6969
7019
  cookie?: never;
@@ -6984,7 +7034,6 @@ export interface paths {
6984
7034
  query?: never;
6985
7035
  header?: never;
6986
7036
  path: {
6987
- tenantId: string;
6988
7037
  id: string;
6989
7038
  };
6990
7039
  cookie?: never;
@@ -7012,7 +7061,6 @@ export interface paths {
7012
7061
  query?: never;
7013
7062
  header?: never;
7014
7063
  path: {
7015
- tenantId: string;
7016
7064
  id: string;
7017
7065
  };
7018
7066
  cookie?: never;
@@ -7130,46 +7178,29 @@ export interface components {
7130
7178
  [key: string]: unknown;
7131
7179
  } | null;
7132
7180
  };
7133
- AgentBundle: {
7134
- schema_version?: string | null;
7135
- /** Format: date-time */
7136
- exported_at?: string;
7137
- agent?: components["schemas"]["AgentBundleAgent"];
7138
- versions?: components["schemas"]["AgentBundleVersion"][] | null;
7139
- };
7140
- AgentBundleAgent: {
7181
+ AgentBundleItem: {
7141
7182
  /** Format: uuid */
7142
7183
  id?: string;
7143
- name?: string | null;
7144
- /** Format: uuid */
7145
- live_version_id?: string | null;
7146
- };
7147
- AgentBundleVersion: {
7148
- /** Format: uuid */
7149
- id?: string;
7150
- version_tag?: string | null;
7151
7184
  artifact_uri?: string | null;
7152
7185
  artifact_hash?: string | null;
7153
7186
  format?: string | null;
7187
+ content_hash?: string | null;
7154
7188
  /** Format: date-time */
7155
7189
  created_at?: string;
7156
7190
  };
7157
- AgentVersionBundleResponse: {
7158
- version?: components["schemas"]["AgentVersionMetadata"];
7159
- graph_spec?: unknown;
7160
- artifact_hash?: string | null;
7161
- format?: string | null;
7162
- /** Format: date-time */
7163
- resolved_at?: string;
7164
- };
7165
- AgentVersionMetadata: {
7191
+ AgentExportAgent: {
7166
7192
  /** Format: uuid */
7167
7193
  id?: string;
7194
+ name?: string | null;
7168
7195
  /** Format: uuid */
7169
- agent_id?: string;
7170
- version_tag?: string | null;
7196
+ live_bundle_id?: string | null;
7197
+ };
7198
+ AgentExportBundle: {
7199
+ schema_version?: string | null;
7171
7200
  /** Format: date-time */
7172
- created_at?: string;
7201
+ exported_at?: string;
7202
+ agent?: components["schemas"]["AgentExportAgent"];
7203
+ bundles?: components["schemas"]["AgentBundleItem"][] | null;
7173
7204
  };
7174
7205
  ApprovalDecision: {
7175
7206
  decision?: string | null;
@@ -7198,9 +7229,7 @@ export interface components {
7198
7229
  /** Format: uuid */
7199
7230
  workspace_id?: string;
7200
7231
  /** Format: uuid */
7201
- agent_id?: string | null;
7202
- /** Format: uuid */
7203
- agent_version_id?: string | null;
7232
+ agent_id?: string;
7204
7233
  inputs?: components["schemas"]["BatchInput"][] | null;
7205
7234
  };
7206
7235
  BatchRunResponse: {
@@ -7212,13 +7241,31 @@ export interface components {
7212
7241
  /** Format: uuid */
7213
7242
  agent_id?: string;
7214
7243
  };
7215
- /** @description Request DTO for builder chat. */
7244
+ /**
7245
+ * @description KERNEL P0: Request DTO for builder chat.
7246
+ * Contains ONLY intention fields. No graph_spec, no catalogs.
7247
+ */
7216
7248
  BuilderChatRequest: {
7217
7249
  message?: string | null;
7218
- current_graph_spec?: unknown;
7219
7250
  thread_id?: string | null;
7220
- catalog_versions?: components["schemas"]["CatalogVersionsDto"];
7221
- catalog_ref?: string | null;
7251
+ base_graph_etag?: string | null;
7252
+ };
7253
+ BundleResponse: {
7254
+ /** Format: uuid */
7255
+ id?: string;
7256
+ /** Format: uuid */
7257
+ tenant_id?: string;
7258
+ /** Format: uuid */
7259
+ workspace_id?: string;
7260
+ /** Format: uuid */
7261
+ agent_id?: string;
7262
+ artifact_uri?: string | null;
7263
+ artifact_hash?: string | null;
7264
+ format?: string | null;
7265
+ content_hash?: string | null;
7266
+ /** Format: date-time */
7267
+ created_at?: string;
7268
+ label?: string | null;
7222
7269
  };
7223
7270
  CancelRequest: {
7224
7271
  reason?: string | null;
@@ -7229,12 +7276,6 @@ export interface components {
7229
7276
  status?: string | null;
7230
7277
  was_cancelled?: boolean;
7231
7278
  };
7232
- /** @description Catalog versions for world snapshot. */
7233
- CatalogVersionsDto: {
7234
- nodes?: string | null;
7235
- tools?: string | null;
7236
- triggers?: string | null;
7237
- };
7238
7279
  /**
7239
7280
  * Format: int32
7240
7281
  * @enum {integer}
@@ -7293,14 +7334,6 @@ export interface components {
7293
7334
  CreateAgentRequest: {
7294
7335
  name?: string | null;
7295
7336
  };
7296
- CreateAgentVersionRequest: {
7297
- /** Format: uuid */
7298
- tenant_id?: string;
7299
- /** Format: uuid */
7300
- workspace_id?: string;
7301
- version_tag?: string | null;
7302
- graph_spec?: unknown;
7303
- };
7304
7337
  CreateCheckpointRequest: {
7305
7338
  step_name?: string | null;
7306
7339
  checkpoint_ns?: string | null;
@@ -7332,7 +7365,7 @@ export interface components {
7332
7365
  agent_id?: string;
7333
7366
  schedule?: string | null;
7334
7367
  /** Format: uuid */
7335
- agent_version_id?: string | null;
7368
+ bundle_id?: string | null;
7336
7369
  input?: unknown;
7337
7370
  enabled?: boolean | null;
7338
7371
  };
@@ -7348,7 +7381,7 @@ export interface components {
7348
7381
  /** Format: uuid */
7349
7382
  agent_id?: string;
7350
7383
  /** Format: uuid */
7351
- agent_version_id?: string | null;
7384
+ bundle_id?: string | null;
7352
7385
  name?: string | null;
7353
7386
  config?: {
7354
7387
  [key: string]: unknown;
@@ -7375,6 +7408,10 @@ export interface components {
7375
7408
  commit_message?: string | null;
7376
7409
  set_as_live?: boolean;
7377
7410
  };
7411
+ CreateRoleRequest: {
7412
+ name?: string | null;
7413
+ permissions?: string[] | null;
7414
+ };
7378
7415
  CreateRunRequest: {
7379
7416
  /** Format: uuid */
7380
7417
  tenant_id?: string;
@@ -7382,12 +7419,12 @@ export interface components {
7382
7419
  workspace_id?: string;
7383
7420
  /** Format: uuid */
7384
7421
  agent_id?: string | null;
7385
- /** Format: uuid */
7386
- agent_version_id?: string | null;
7387
7422
  thread?: components["schemas"]["ThreadRequest"];
7388
7423
  idempotency_key?: string | null;
7389
7424
  input?: unknown;
7390
7425
  webhook_url?: string | null;
7426
+ /** Format: uuid */
7427
+ bundle_id?: string | null;
7391
7428
  };
7392
7429
  CreateTenantRequest: {
7393
7430
  name?: string | null;
@@ -7423,6 +7460,8 @@ export interface components {
7423
7460
  /** Format: uuid */
7424
7461
  agent_id?: string;
7425
7462
  name?: string | null;
7463
+ trigger_type?: string | null;
7464
+ config?: unknown;
7426
7465
  };
7427
7466
  CreateVectorStoreRequest: {
7428
7467
  name?: string | null;
@@ -7508,7 +7547,8 @@ export interface components {
7508
7547
  };
7509
7548
  InviteMemberRequest: {
7510
7549
  /** Format: uuid */
7511
- user_id?: string;
7550
+ user_id?: string | null;
7551
+ email?: string | null;
7512
7552
  /** Format: uuid */
7513
7553
  role_id?: string;
7514
7554
  workspace_ids?: string[] | null;
@@ -7519,6 +7559,32 @@ export interface components {
7519
7559
  method?: string | null;
7520
7560
  params?: unknown;
7521
7561
  };
7562
+ NodeCatalogResponse: {
7563
+ version: string | null;
7564
+ nodes: components["schemas"]["NodeTypeDto"][] | null;
7565
+ };
7566
+ NodePresetDto: {
7567
+ preset_slug: string | null;
7568
+ base_node_slug: string | null;
7569
+ title: string | null;
7570
+ description?: string | null;
7571
+ default_config?: unknown;
7572
+ locked_fields?: unknown;
7573
+ ui_variant?: string | null;
7574
+ };
7575
+ NodePresetsCatalogResponse: {
7576
+ version: string | null;
7577
+ presets: components["schemas"]["NodePresetDto"][] | null;
7578
+ };
7579
+ NodeTypeDto: {
7580
+ id: string | null;
7581
+ title: string | null;
7582
+ category: string | null;
7583
+ description?: string | null;
7584
+ ports?: unknown;
7585
+ config_schema?: unknown;
7586
+ default_config?: unknown;
7587
+ };
7522
7588
  PlaygroundRequest: {
7523
7589
  variables?: {
7524
7590
  [key: string]: unknown;
@@ -7537,8 +7603,6 @@ export interface components {
7537
7603
  workspace_id?: string;
7538
7604
  /** Format: uuid */
7539
7605
  agent_id?: string;
7540
- /** Format: uuid */
7541
- agent_version_id?: string | null;
7542
7606
  input?: unknown;
7543
7607
  /** Format: int32 */
7544
7608
  timeout_seconds?: number | null;
@@ -7572,6 +7636,11 @@ export interface components {
7572
7636
  } & {
7573
7637
  [key: string]: unknown;
7574
7638
  };
7639
+ PublishAgentRequest: {
7640
+ version_label?: string | null;
7641
+ graph_spec?: unknown;
7642
+ set_as_live?: boolean;
7643
+ };
7575
7644
  ReplayRequest: {
7576
7645
  modified_input?: string | null;
7577
7646
  create_new_thread?: boolean;
@@ -7590,8 +7659,6 @@ export interface components {
7590
7659
  };
7591
7660
  RerunRequest: {
7592
7661
  input?: unknown;
7593
- /** Format: uuid */
7594
- agent_version_id?: string | null;
7595
7662
  };
7596
7663
  RerunResponse: {
7597
7664
  /** Format: uuid */
@@ -7636,7 +7703,7 @@ export interface components {
7636
7703
  /** Format: uuid */
7637
7704
  agent_id?: string;
7638
7705
  /** Format: uuid */
7639
- agent_version_id?: string;
7706
+ bundle_id?: string;
7640
7707
  /** Format: uuid */
7641
7708
  thread_id?: string;
7642
7709
  status?: components["schemas"]["RunStatus"];
@@ -7764,8 +7831,6 @@ export interface components {
7764
7831
  workspace_id?: string;
7765
7832
  /** Format: uuid */
7766
7833
  agent_id?: string | null;
7767
- /** Format: uuid */
7768
- agent_version_id?: string | null;
7769
7834
  thread?: components["schemas"]["ThreadRequest"];
7770
7835
  idempotency_key?: string | null;
7771
7836
  input?: unknown;
@@ -7790,6 +7855,10 @@ export interface components {
7790
7855
  ThreadSearchRequest: {
7791
7856
  /** Format: uuid */
7792
7857
  workspace_id?: string | null;
7858
+ /** @description Filter by external conversation ID (exact match). */
7859
+ external_conversation_id?: string | null;
7860
+ /** @description Filter by channel (Http, Whatsapp, Chatwoot, etc). */
7861
+ channel?: string | null;
7793
7862
  /** Format: uuid */
7794
7863
  agent_id?: string | null;
7795
7864
  /** Format: date-time */
@@ -7808,10 +7877,23 @@ export interface components {
7808
7877
  name?: string | null;
7809
7878
  arguments?: unknown;
7810
7879
  };
7880
+ TriggerTemplateDto: {
7881
+ slug: string | null;
7882
+ kind: string | null;
7883
+ name: string | null;
7884
+ description?: string | null;
7885
+ run_input_schema?: unknown;
7886
+ example_payload?: unknown;
7887
+ config_schema?: unknown;
7888
+ };
7889
+ TriggerTemplatesCatalogResponse: {
7890
+ version: string | null;
7891
+ templates: components["schemas"]["TriggerTemplateDto"][] | null;
7892
+ };
7811
7893
  UpdateAgentRequest: {
7812
7894
  name?: string | null;
7813
7895
  /** Format: uuid */
7814
- live_version_id?: string | null;
7896
+ live_bundle_id?: string | null;
7815
7897
  };
7816
7898
  UpdateCredentialRequest: {
7817
7899
  name?: string | null;
@@ -7831,6 +7913,10 @@ export interface components {
7831
7913
  role_id?: string | null;
7832
7914
  workspace_ids?: string[] | null;
7833
7915
  };
7916
+ UpdateRoleRequest: {
7917
+ name?: string | null;
7918
+ permissions?: string[] | null;
7919
+ };
7834
7920
  UpdateTenantRequest: {
7835
7921
  name?: string | null;
7836
7922
  slug?: string | null;
@@ -7931,8 +8017,6 @@ export interface components {
7931
8017
  workspace_id?: string;
7932
8018
  /** Format: uuid */
7933
8019
  agent_id?: string | null;
7934
- /** Format: uuid */
7935
- agent_version_id?: string | null;
7936
8020
  thread?: components["schemas"]["ThreadRequest"];
7937
8021
  idempotency_key?: string | null;
7938
8022
  input?: unknown;