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