@openkaiden/kdn-api 0.9.0 → 0.11.0

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.
Files changed (2) hide show
  1. package/index.d.ts +107 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -97,7 +97,14 @@ export type paths = {
97
97
  * "timestamps": {
98
98
  * "created": 1777383824532,
99
99
  * "started": 1777383824532
100
- * }
100
+ * },
101
+ * "forwards": [
102
+ * {
103
+ * "target": 8080,
104
+ * "bind": "0.0.0.0",
105
+ * "port": 18080
106
+ * }
107
+ * ]
101
108
  * }
102
109
  */
103
110
  "application/json": components["schemas"]["Workspace"];
@@ -167,7 +174,14 @@ export type paths = {
167
174
  * "timestamps": {
168
175
  * "created": 1777383824532,
169
176
  * "started": 1777383824532
170
- * }
177
+ * },
178
+ * "forwards": [
179
+ * {
180
+ * "target": 8080,
181
+ * "bind": "0.0.0.0",
182
+ * "port": 18080
183
+ * }
184
+ * ]
171
185
  * },
172
186
  * {
173
187
  * "id": "20cb499a4561703e973631fa3036cc8be9a06b709759d23a7d7f6dd1df146d95",
@@ -181,7 +195,8 @@ export type paths = {
181
195
  * },
182
196
  * "timestamps": {
183
197
  * "created": 1777383824532
184
- * }
198
+ * },
199
+ * "forwards": []
185
200
  * }
186
201
  * ]
187
202
  * }
@@ -613,6 +628,67 @@ export type paths = {
613
628
  patch?: never;
614
629
  trace?: never;
615
630
  };
631
+ "/runtime/list": {
632
+ parameters: {
633
+ query?: never;
634
+ header?: never;
635
+ path?: never;
636
+ cookie?: never;
637
+ };
638
+ /** List runtimes */
639
+ get: {
640
+ parameters: {
641
+ query?: never;
642
+ header?: never;
643
+ path?: never;
644
+ cookie?: never;
645
+ };
646
+ requestBody?: never;
647
+ responses: {
648
+ /** @description Successful response */
649
+ 200: {
650
+ headers: {
651
+ [name: string]: unknown;
652
+ };
653
+ content: {
654
+ /**
655
+ * @example {
656
+ * "items": [
657
+ * {
658
+ * "name": "podman",
659
+ * "description": "Container-based runtime using Podman",
660
+ * "local": true
661
+ * }
662
+ * ]
663
+ * }
664
+ */
665
+ "application/json": components["schemas"]["RuntimesList"];
666
+ };
667
+ };
668
+ /** @description Error response */
669
+ 400: {
670
+ headers: {
671
+ [name: string]: unknown;
672
+ };
673
+ content: {
674
+ /**
675
+ * @example {
676
+ * "error": "Error: failed to list runtimes"
677
+ * }
678
+ */
679
+ "application/json": components["schemas"]["Error"];
680
+ };
681
+ };
682
+ };
683
+ };
684
+ put?: never;
685
+ post?: never;
686
+ delete?: never;
687
+ options?: never;
688
+ head?: never;
689
+ patch?: never;
690
+ trace?: never;
691
+ };
616
692
  "/service/list": {
617
693
  parameters: {
618
694
  query?: never;
@@ -702,6 +778,11 @@ export type components = {
702
778
  /** Format: int64 */
703
779
  started?: number;
704
780
  };
781
+ WorkspaceForward: {
782
+ target: number;
783
+ bind: string;
784
+ port: number;
785
+ };
705
786
  Workspace: {
706
787
  id: string;
707
788
  name: string;
@@ -711,6 +792,21 @@ export type components = {
711
792
  state: components["schemas"]["WorkspaceState"];
712
793
  paths: components["schemas"]["WorkspacePaths"];
713
794
  timestamps: components["schemas"]["WorkspaceTimestamps"];
795
+ /**
796
+ * @example [
797
+ * {
798
+ * "target": 8080,
799
+ * "bind": "0.0.0.0",
800
+ * "port": 18080
801
+ * },
802
+ * {
803
+ * "target": 5432,
804
+ * "bind": "localhost",
805
+ * "port": 5433
806
+ * }
807
+ * ]
808
+ */
809
+ forwards: components["schemas"]["WorkspaceForward"][];
714
810
  };
715
811
  Info: {
716
812
  version: string;
@@ -747,6 +843,14 @@ export type components = {
747
843
  SecretServicesList: {
748
844
  items: components["schemas"]["SecretService"][];
749
845
  };
846
+ RuntimeInfo: {
847
+ name: string;
848
+ description: string;
849
+ local: boolean;
850
+ };
851
+ RuntimesList: {
852
+ items: components["schemas"]["RuntimeInfo"][];
853
+ };
750
854
  };
751
855
  responses: never;
752
856
  parameters: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openkaiden/kdn-api",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "TypeScript types for the kaiden cli (kdn)",
5
5
  "repository": "https://github.com/openkaiden/kdn-api",
6
6
  "publishConfig": {