contree-client 0.1.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.
@@ -0,0 +1,193 @@
1
+ // Generated by codegen from the OpenAPI spec - do not edit.
2
+
3
+ import type { RequestSpec, ResponseData } from "./runtime.js";
4
+
5
+ import type {
6
+ DirectoryList,
7
+ File,
8
+ FileResponse,
9
+ FileSpec,
10
+ FilesListResponse,
11
+ Image,
12
+ ImageImportRegistry,
13
+ ImageListResponse,
14
+ InstanceResourcesLimits,
15
+ InstanceSpawnResponse,
16
+ OperationResponse,
17
+ OperationStatus,
18
+ OperationSummary,
19
+ StreamRepr,
20
+ WhoAmIResponse,
21
+ } from "./models.js";
22
+
23
+ export declare function buildListImages(options?: {
24
+ limit?: number | null;
25
+ offset?: number | null;
26
+ tagged?: boolean;
27
+ tag?: string | null;
28
+ uuid?: string | null;
29
+ since?: string | number | Date | null;
30
+ until?: string | number | Date | null;
31
+ }): RequestSpec;
32
+
33
+ export declare function parseListImages(
34
+ response: ResponseData,
35
+ ): ImageListResponse;
36
+
37
+ export declare function buildDeleteImageTag(
38
+ imageUuid: string,
39
+ options?: { tag?: string | null },
40
+ ): RequestSpec;
41
+
42
+ export declare function parseDeleteImageTag(response: ResponseData): null;
43
+
44
+ export declare function buildUpdateImageTag(
45
+ imageUuid: string,
46
+ tag: string,
47
+ ): RequestSpec;
48
+
49
+ export declare function parseUpdateImageTag(response: ResponseData): Image;
50
+
51
+ export declare function buildImportImage(
52
+ registry: ImageImportRegistry,
53
+ options?: { tag?: string | null | undefined; timeout?: number | undefined },
54
+ ): RequestSpec;
55
+
56
+ export declare function parseImportImage(response: ResponseData): string;
57
+
58
+ export declare function buildListFiles(options?: {
59
+ limit?: number | null;
60
+ offset?: number | null;
61
+ since?: string | number | Date | null;
62
+ until?: string | number | Date | null;
63
+ }): RequestSpec;
64
+
65
+ export declare function parseListFiles(
66
+ response: ResponseData,
67
+ ): FilesListResponse;
68
+
69
+ export declare function buildUploadFile(
70
+ content: Uint8Array | Blob | ReadableStream<Uint8Array>,
71
+ ): RequestSpec;
72
+
73
+ export declare function parseUploadFile(response: ResponseData): FileResponse;
74
+
75
+ export declare function buildGetFile(sha256: string): RequestSpec;
76
+
77
+ export declare function parseGetFile(response: ResponseData): File;
78
+
79
+ export declare function buildCheckFileExists(sha256: string): RequestSpec;
80
+
81
+ export declare function parseCheckFileExists(response: ResponseData): boolean;
82
+
83
+ export declare function buildSpawnInstance(
84
+ command: string,
85
+ image: string,
86
+ options?: {
87
+ disposable?: boolean | undefined;
88
+ hostname?: string | undefined;
89
+ args?: string[] | undefined;
90
+ shell?: boolean | undefined;
91
+ env?: Record<string, string> | null | undefined;
92
+ preserve_env?: boolean | undefined;
93
+ cwd?: string | undefined;
94
+ uid?: number | undefined;
95
+ gid?: number | undefined;
96
+ resources_limits?: InstanceResourcesLimits | undefined;
97
+ stdin?: StreamRepr | undefined;
98
+ timeout?: number | undefined;
99
+ truncate_output_at?: number | undefined;
100
+ files?: Record<string, FileSpec> | undefined;
101
+ },
102
+ ): RequestSpec;
103
+
104
+ export declare function parseSpawnInstance(
105
+ response: ResponseData,
106
+ ): InstanceSpawnResponse;
107
+
108
+ export declare function buildListOperations(options?: {
109
+ limit?: number | null;
110
+ offset?: number | null;
111
+ status?: OperationStatus | string | null;
112
+ kind?: "image_import" | "instance" | null;
113
+ since?: string | number | Date | null;
114
+ until?: string | number | Date | null;
115
+ }): RequestSpec;
116
+
117
+ export declare function parseListOperations(
118
+ response: ResponseData,
119
+ ): OperationSummary[];
120
+
121
+ export declare function buildGetOperationStatus(
122
+ operationId: string,
123
+ options?: { inflight?: boolean },
124
+ ): RequestSpec;
125
+
126
+ export declare function parseGetOperationStatus(
127
+ response: ResponseData,
128
+ ): OperationResponse;
129
+
130
+ export declare function buildCancelOperation(operationId: string): RequestSpec;
131
+
132
+ export declare function parseCancelOperation(response: ResponseData): null;
133
+
134
+ export declare function buildIterOperationEvents(
135
+ operationId: string,
136
+ options?: {
137
+ follow?: boolean;
138
+ spid?: number | null;
139
+ since?: number | null;
140
+ last_event_id?: number | null;
141
+ },
142
+ ): RequestSpec;
143
+
144
+ export declare function buildInspectFindImageByTag(tag: string): RequestSpec;
145
+
146
+ export declare function parseInspectFindImageByTag(
147
+ response: ResponseData,
148
+ ): string;
149
+
150
+ export declare function buildInspectImage(imageUuid: string): RequestSpec;
151
+
152
+ export declare function parseInspectImage(response: ResponseData): Image;
153
+
154
+ export declare function buildInspectImageDownload(
155
+ imageUuid: string,
156
+ path: string,
157
+ ): RequestSpec;
158
+
159
+ export declare function parseInspectImageDownload(
160
+ response: ResponseData,
161
+ ): Uint8Array;
162
+
163
+ export declare function buildCheckImageFile(
164
+ imageUuid: string,
165
+ path: string,
166
+ ): RequestSpec;
167
+
168
+ export declare function parseCheckImageFile(response: ResponseData): boolean;
169
+
170
+ export declare function buildInspectImageArchive(
171
+ imageUuid: string,
172
+ path: string,
173
+ ): RequestSpec;
174
+
175
+ export declare function buildCheckImageArchive(
176
+ imageUuid: string,
177
+ path: string,
178
+ ): RequestSpec;
179
+
180
+ export declare function parseCheckImageArchive(response: ResponseData): boolean;
181
+
182
+ export declare function buildInspectImageList(
183
+ imageUuid: string,
184
+ path: string,
185
+ ): RequestSpec;
186
+
187
+ export declare function parseInspectImageList(
188
+ response: ResponseData,
189
+ ): DirectoryList;
190
+
191
+ export declare function buildWhoami(): RequestSpec;
192
+
193
+ export declare function parseWhoami(response: ResponseData): WhoAmIResponse;