phala 1.1.0-beta.1 → 1.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -42
- package/dist/api/index.d.ts +437 -2372
- package/dist/api/index.js +20597 -1
- package/dist/index.js +20891 -86
- package/package.json +87 -84
- package/dist/_esm-2SSTGT5A.js +0 -10
- package/dist/_esm-2SSTGT5A.js.map +0 -1
- package/dist/api/index.js.map +0 -1
- package/dist/ccip-V5MAMPAX.js +0 -2
- package/dist/ccip-V5MAMPAX.js.map +0 -1
- package/dist/chunk-KC2EQH4K.js +0 -2
- package/dist/chunk-KC2EQH4K.js.map +0 -1
- package/dist/chunk-WITLSA6W.js +0 -42
- package/dist/chunk-WITLSA6W.js.map +0 -1
- package/dist/chunk-ZUJB7PGQ.js +0 -58
- package/dist/chunk-ZUJB7PGQ.js.map +0 -1
- package/dist/index.js.map +0 -1
package/dist/api/index.d.ts
CHANGED
@@ -1,2077 +1,185 @@
|
|
1
|
-
import {
|
2
|
-
import { AxiosRequestConfig } from 'axios';
|
3
|
-
|
4
|
-
type ZodDecimalCheck = {
|
5
|
-
kind: 'precision';
|
6
|
-
value: number;
|
7
|
-
message?: string;
|
8
|
-
} | {
|
9
|
-
kind: 'wholeNumber';
|
10
|
-
value: number;
|
11
|
-
message?: string;
|
12
|
-
} | {
|
13
|
-
kind: 'min';
|
14
|
-
value: number;
|
15
|
-
inclusive: boolean;
|
16
|
-
message?: string;
|
17
|
-
} | {
|
18
|
-
kind: 'max';
|
19
|
-
value: number;
|
20
|
-
inclusive: boolean;
|
21
|
-
message?: string;
|
22
|
-
} | {
|
23
|
-
kind: 'finite';
|
24
|
-
message?: string;
|
25
|
-
};
|
26
|
-
declare const zodDecimalKind = "ZodDecimal";
|
27
|
-
interface ZodDecimalDef extends ZodTypeDef {
|
28
|
-
checks: ZodDecimalCheck[];
|
29
|
-
typeName: typeof zodDecimalKind;
|
30
|
-
coerce: boolean;
|
31
|
-
}
|
32
|
-
declare class ZodDecimal extends ZodType<number, ZodDecimalDef, any> {
|
33
|
-
_parse(input: ParseInput): ParseReturnType<number>;
|
34
|
-
static create: (params?: RawCreateParams & {
|
35
|
-
coerce?: true;
|
36
|
-
}) => ZodDecimal;
|
37
|
-
protected setLimit(kind: 'min' | 'max', value: number, inclusive: boolean, message?: string): ZodDecimal;
|
38
|
-
_addCheck(check: ZodDecimalCheck): ZodDecimal;
|
39
|
-
lte(value: number, message?: string): ZodDecimal;
|
40
|
-
lt(value: number, message?: string): ZodDecimal;
|
41
|
-
max: (value: number, message?: string) => ZodDecimal;
|
42
|
-
gt(value: number, message?: string): ZodDecimal;
|
43
|
-
gte(value: number, message?: string): ZodDecimal;
|
44
|
-
min: (value: number, message?: string) => ZodDecimal;
|
45
|
-
precision(value: number, message?: string): ZodDecimal;
|
46
|
-
wholeNumber(value: number, message?: string): ZodDecimal;
|
47
|
-
get minValue(): number;
|
48
|
-
get maxValue(): number;
|
49
|
-
positive(message?: string): ZodDecimal;
|
50
|
-
negative(message?: string): ZodDecimal;
|
51
|
-
nonpositive(message?: string): ZodDecimal;
|
52
|
-
nonnegative(message?: string): ZodDecimal;
|
53
|
-
finite(message?: string): ZodDecimal;
|
54
|
-
safe(message?: string): ZodDecimal;
|
55
|
-
get isFinite(): boolean;
|
56
|
-
}
|
1
|
+
import { z } from 'zod';
|
57
2
|
|
58
3
|
declare const dockerConfigSchema: z.ZodObject<{
|
59
4
|
password: z.ZodString;
|
60
5
|
registry: z.ZodNullable<z.ZodString>;
|
61
6
|
username: z.ZodString;
|
62
7
|
}, "strip", z.ZodTypeAny, {
|
8
|
+
username?: string;
|
63
9
|
password?: string;
|
64
10
|
registry?: string;
|
65
|
-
username?: string;
|
66
11
|
}, {
|
12
|
+
username?: string;
|
67
13
|
password?: string;
|
68
14
|
registry?: string;
|
69
|
-
username?: string;
|
70
15
|
}>;
|
71
16
|
declare const composeFileSchema: z.ZodObject<{
|
72
17
|
docker_compose_file: z.ZodString;
|
73
|
-
docker_config: z.ZodOptional<z.ZodObject<{
|
18
|
+
docker_config: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
74
19
|
password: z.ZodString;
|
75
20
|
registry: z.ZodNullable<z.ZodString>;
|
76
|
-
username: z.ZodString;
|
77
|
-
}, "strip", z.ZodTypeAny, {
|
78
|
-
password?: string;
|
79
|
-
registry?: string;
|
80
|
-
username?: string;
|
81
|
-
}, {
|
82
|
-
password?: string;
|
83
|
-
registry?: string;
|
84
|
-
username?: string;
|
85
|
-
}>>;
|
86
|
-
features: z.ZodArray<z.ZodString, "many">;
|
87
|
-
kms_enabled: z.ZodBoolean;
|
88
|
-
manifest_version: z.ZodNumber;
|
89
|
-
name: z.ZodString;
|
90
|
-
public_logs: z.ZodBoolean;
|
91
|
-
public_sysinfo: z.ZodBoolean;
|
92
|
-
runner: z.ZodOptional<z.ZodString>;
|
93
|
-
salt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
94
|
-
tproxy_enabled: z.ZodBoolean;
|
95
|
-
version: z.ZodOptional<z.ZodString>;
|
96
|
-
}, "strip", z.ZodTypeAny, {
|
97
|
-
docker_compose_file?: string;
|
98
|
-
docker_config?: {
|
99
|
-
password?: string;
|
100
|
-
registry?: string;
|
101
|
-
username?: string;
|
102
|
-
};
|
103
|
-
features?: string[];
|
104
|
-
kms_enabled?: boolean;
|
105
|
-
manifest_version?: number;
|
106
|
-
name?: string;
|
107
|
-
public_logs?: boolean;
|
108
|
-
public_sysinfo?: boolean;
|
109
|
-
runner?: string;
|
110
|
-
salt?: string;
|
111
|
-
tproxy_enabled?: boolean;
|
112
|
-
version?: string;
|
113
|
-
}, {
|
114
|
-
docker_compose_file?: string;
|
115
|
-
docker_config?: {
|
116
|
-
password?: string;
|
117
|
-
registry?: string;
|
118
|
-
username?: string;
|
119
|
-
};
|
120
|
-
features?: string[];
|
121
|
-
kms_enabled?: boolean;
|
122
|
-
manifest_version?: number;
|
123
|
-
name?: string;
|
124
|
-
public_logs?: boolean;
|
125
|
-
public_sysinfo?: boolean;
|
126
|
-
runner?: string;
|
127
|
-
salt?: string;
|
128
|
-
tproxy_enabled?: boolean;
|
129
|
-
version?: string;
|
130
|
-
}>;
|
131
|
-
declare const configurationSchema: z.ZodObject<{
|
132
|
-
name: z.ZodString;
|
133
|
-
image: z.ZodString;
|
134
|
-
compose_file: z.ZodNullable<z.ZodObject<{
|
135
|
-
docker_compose_file: z.ZodString;
|
136
|
-
docker_config: z.ZodOptional<z.ZodObject<{
|
137
|
-
password: z.ZodString;
|
138
|
-
registry: z.ZodNullable<z.ZodString>;
|
139
|
-
username: z.ZodString;
|
140
|
-
}, "strip", z.ZodTypeAny, {
|
141
|
-
password?: string;
|
142
|
-
registry?: string;
|
143
|
-
username?: string;
|
144
|
-
}, {
|
145
|
-
password?: string;
|
146
|
-
registry?: string;
|
147
|
-
username?: string;
|
148
|
-
}>>;
|
149
|
-
features: z.ZodArray<z.ZodString, "many">;
|
150
|
-
kms_enabled: z.ZodBoolean;
|
151
|
-
manifest_version: z.ZodNumber;
|
152
|
-
name: z.ZodString;
|
153
|
-
public_logs: z.ZodBoolean;
|
154
|
-
public_sysinfo: z.ZodBoolean;
|
155
|
-
runner: z.ZodOptional<z.ZodString>;
|
156
|
-
salt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
157
|
-
tproxy_enabled: z.ZodBoolean;
|
158
|
-
version: z.ZodOptional<z.ZodString>;
|
159
|
-
}, "strip", z.ZodTypeAny, {
|
160
|
-
docker_compose_file?: string;
|
161
|
-
docker_config?: {
|
162
|
-
password?: string;
|
163
|
-
registry?: string;
|
164
|
-
username?: string;
|
165
|
-
};
|
166
|
-
features?: string[];
|
167
|
-
kms_enabled?: boolean;
|
168
|
-
manifest_version?: number;
|
169
|
-
name?: string;
|
170
|
-
public_logs?: boolean;
|
171
|
-
public_sysinfo?: boolean;
|
172
|
-
runner?: string;
|
173
|
-
salt?: string;
|
174
|
-
tproxy_enabled?: boolean;
|
175
|
-
version?: string;
|
176
|
-
}, {
|
177
|
-
docker_compose_file?: string;
|
178
|
-
docker_config?: {
|
179
|
-
password?: string;
|
180
|
-
registry?: string;
|
181
|
-
username?: string;
|
182
|
-
};
|
183
|
-
features?: string[];
|
184
|
-
kms_enabled?: boolean;
|
185
|
-
manifest_version?: number;
|
186
|
-
name?: string;
|
187
|
-
public_logs?: boolean;
|
188
|
-
public_sysinfo?: boolean;
|
189
|
-
runner?: string;
|
190
|
-
salt?: string;
|
191
|
-
tproxy_enabled?: boolean;
|
192
|
-
version?: string;
|
193
|
-
}>>;
|
194
|
-
vcpu: z.ZodNumber;
|
195
|
-
memory: z.ZodNumber;
|
196
|
-
disk_size: z.ZodNumber;
|
197
|
-
ports: z.ZodArray<z.ZodAny, "many">;
|
198
|
-
}, "strip", z.ZodTypeAny, {
|
199
|
-
name?: string;
|
200
|
-
image?: string;
|
201
|
-
compose_file?: {
|
202
|
-
docker_compose_file?: string;
|
203
|
-
docker_config?: {
|
204
|
-
password?: string;
|
205
|
-
registry?: string;
|
206
|
-
username?: string;
|
207
|
-
};
|
208
|
-
features?: string[];
|
209
|
-
kms_enabled?: boolean;
|
210
|
-
manifest_version?: number;
|
211
|
-
name?: string;
|
212
|
-
public_logs?: boolean;
|
213
|
-
public_sysinfo?: boolean;
|
214
|
-
runner?: string;
|
215
|
-
salt?: string;
|
216
|
-
tproxy_enabled?: boolean;
|
217
|
-
version?: string;
|
218
|
-
};
|
219
|
-
vcpu?: number;
|
220
|
-
memory?: number;
|
221
|
-
disk_size?: number;
|
222
|
-
ports?: any[];
|
223
|
-
}, {
|
224
|
-
name?: string;
|
225
|
-
image?: string;
|
226
|
-
compose_file?: {
|
227
|
-
docker_compose_file?: string;
|
228
|
-
docker_config?: {
|
229
|
-
password?: string;
|
230
|
-
registry?: string;
|
231
|
-
username?: string;
|
232
|
-
};
|
233
|
-
features?: string[];
|
234
|
-
kms_enabled?: boolean;
|
235
|
-
manifest_version?: number;
|
236
|
-
name?: string;
|
237
|
-
public_logs?: boolean;
|
238
|
-
public_sysinfo?: boolean;
|
239
|
-
runner?: string;
|
240
|
-
salt?: string;
|
241
|
-
tproxy_enabled?: boolean;
|
242
|
-
version?: string;
|
243
|
-
};
|
244
|
-
vcpu?: number;
|
245
|
-
memory?: number;
|
246
|
-
disk_size?: number;
|
247
|
-
ports?: any[];
|
248
|
-
}>;
|
249
|
-
declare const hostedSchema: z.ZodObject<{
|
250
|
-
id: z.ZodString;
|
251
|
-
name: z.ZodString;
|
252
|
-
status: z.ZodString;
|
253
|
-
uptime: z.ZodString;
|
254
|
-
app_url: z.ZodString;
|
255
|
-
app_id: z.ZodString;
|
256
|
-
instance_id: z.ZodString;
|
257
|
-
configuration: z.ZodObject<{
|
258
|
-
name: z.ZodString;
|
259
|
-
image: z.ZodString;
|
260
|
-
compose_file: z.ZodNullable<z.ZodObject<{
|
261
|
-
docker_compose_file: z.ZodString;
|
262
|
-
docker_config: z.ZodOptional<z.ZodObject<{
|
263
|
-
password: z.ZodString;
|
264
|
-
registry: z.ZodNullable<z.ZodString>;
|
265
|
-
username: z.ZodString;
|
266
|
-
}, "strip", z.ZodTypeAny, {
|
267
|
-
password?: string;
|
268
|
-
registry?: string;
|
269
|
-
username?: string;
|
270
|
-
}, {
|
271
|
-
password?: string;
|
272
|
-
registry?: string;
|
273
|
-
username?: string;
|
274
|
-
}>>;
|
275
|
-
features: z.ZodArray<z.ZodString, "many">;
|
276
|
-
kms_enabled: z.ZodBoolean;
|
277
|
-
manifest_version: z.ZodNumber;
|
278
|
-
name: z.ZodString;
|
279
|
-
public_logs: z.ZodBoolean;
|
280
|
-
public_sysinfo: z.ZodBoolean;
|
281
|
-
runner: z.ZodOptional<z.ZodString>;
|
282
|
-
salt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
283
|
-
tproxy_enabled: z.ZodBoolean;
|
284
|
-
version: z.ZodOptional<z.ZodString>;
|
285
|
-
}, "strip", z.ZodTypeAny, {
|
286
|
-
docker_compose_file?: string;
|
287
|
-
docker_config?: {
|
288
|
-
password?: string;
|
289
|
-
registry?: string;
|
290
|
-
username?: string;
|
291
|
-
};
|
292
|
-
features?: string[];
|
293
|
-
kms_enabled?: boolean;
|
294
|
-
manifest_version?: number;
|
295
|
-
name?: string;
|
296
|
-
public_logs?: boolean;
|
297
|
-
public_sysinfo?: boolean;
|
298
|
-
runner?: string;
|
299
|
-
salt?: string;
|
300
|
-
tproxy_enabled?: boolean;
|
301
|
-
version?: string;
|
302
|
-
}, {
|
303
|
-
docker_compose_file?: string;
|
304
|
-
docker_config?: {
|
305
|
-
password?: string;
|
306
|
-
registry?: string;
|
307
|
-
username?: string;
|
308
|
-
};
|
309
|
-
features?: string[];
|
310
|
-
kms_enabled?: boolean;
|
311
|
-
manifest_version?: number;
|
312
|
-
name?: string;
|
313
|
-
public_logs?: boolean;
|
314
|
-
public_sysinfo?: boolean;
|
315
|
-
runner?: string;
|
316
|
-
salt?: string;
|
317
|
-
tproxy_enabled?: boolean;
|
318
|
-
version?: string;
|
319
|
-
}>>;
|
320
|
-
vcpu: z.ZodNumber;
|
321
|
-
memory: z.ZodNumber;
|
322
|
-
disk_size: z.ZodNumber;
|
323
|
-
ports: z.ZodArray<z.ZodAny, "many">;
|
324
|
-
}, "strip", z.ZodTypeAny, {
|
325
|
-
name?: string;
|
326
|
-
image?: string;
|
327
|
-
compose_file?: {
|
328
|
-
docker_compose_file?: string;
|
329
|
-
docker_config?: {
|
330
|
-
password?: string;
|
331
|
-
registry?: string;
|
332
|
-
username?: string;
|
333
|
-
};
|
334
|
-
features?: string[];
|
335
|
-
kms_enabled?: boolean;
|
336
|
-
manifest_version?: number;
|
337
|
-
name?: string;
|
338
|
-
public_logs?: boolean;
|
339
|
-
public_sysinfo?: boolean;
|
340
|
-
runner?: string;
|
341
|
-
salt?: string;
|
342
|
-
tproxy_enabled?: boolean;
|
343
|
-
version?: string;
|
344
|
-
};
|
345
|
-
vcpu?: number;
|
346
|
-
memory?: number;
|
347
|
-
disk_size?: number;
|
348
|
-
ports?: any[];
|
349
|
-
}, {
|
350
|
-
name?: string;
|
351
|
-
image?: string;
|
352
|
-
compose_file?: {
|
353
|
-
docker_compose_file?: string;
|
354
|
-
docker_config?: {
|
355
|
-
password?: string;
|
356
|
-
registry?: string;
|
357
|
-
username?: string;
|
358
|
-
};
|
359
|
-
features?: string[];
|
360
|
-
kms_enabled?: boolean;
|
361
|
-
manifest_version?: number;
|
362
|
-
name?: string;
|
363
|
-
public_logs?: boolean;
|
364
|
-
public_sysinfo?: boolean;
|
365
|
-
runner?: string;
|
366
|
-
salt?: string;
|
367
|
-
tproxy_enabled?: boolean;
|
368
|
-
version?: string;
|
369
|
-
};
|
370
|
-
vcpu?: number;
|
371
|
-
memory?: number;
|
372
|
-
disk_size?: number;
|
373
|
-
ports?: any[];
|
374
|
-
}>;
|
375
|
-
exited_at: z.ZodString;
|
376
|
-
boot_progress: z.ZodString;
|
377
|
-
boot_error: z.ZodString;
|
378
|
-
shutdown_progress: z.ZodString;
|
379
|
-
image_version: z.ZodString;
|
380
|
-
}, "strip", z.ZodTypeAny, {
|
381
|
-
status?: string;
|
382
|
-
name?: string;
|
383
|
-
id?: string;
|
384
|
-
uptime?: string;
|
385
|
-
app_url?: string;
|
386
|
-
app_id?: string;
|
387
|
-
instance_id?: string;
|
388
|
-
configuration?: {
|
389
|
-
name?: string;
|
390
|
-
image?: string;
|
391
|
-
compose_file?: {
|
392
|
-
docker_compose_file?: string;
|
393
|
-
docker_config?: {
|
394
|
-
password?: string;
|
395
|
-
registry?: string;
|
396
|
-
username?: string;
|
397
|
-
};
|
398
|
-
features?: string[];
|
399
|
-
kms_enabled?: boolean;
|
400
|
-
manifest_version?: number;
|
401
|
-
name?: string;
|
402
|
-
public_logs?: boolean;
|
403
|
-
public_sysinfo?: boolean;
|
404
|
-
runner?: string;
|
405
|
-
salt?: string;
|
406
|
-
tproxy_enabled?: boolean;
|
407
|
-
version?: string;
|
408
|
-
};
|
409
|
-
vcpu?: number;
|
410
|
-
memory?: number;
|
411
|
-
disk_size?: number;
|
412
|
-
ports?: any[];
|
413
|
-
};
|
414
|
-
exited_at?: string;
|
415
|
-
boot_progress?: string;
|
416
|
-
boot_error?: string;
|
417
|
-
shutdown_progress?: string;
|
418
|
-
image_version?: string;
|
419
|
-
}, {
|
420
|
-
status?: string;
|
421
|
-
name?: string;
|
422
|
-
id?: string;
|
423
|
-
uptime?: string;
|
424
|
-
app_url?: string;
|
425
|
-
app_id?: string;
|
426
|
-
instance_id?: string;
|
427
|
-
configuration?: {
|
428
|
-
name?: string;
|
429
|
-
image?: string;
|
430
|
-
compose_file?: {
|
431
|
-
docker_compose_file?: string;
|
432
|
-
docker_config?: {
|
433
|
-
password?: string;
|
434
|
-
registry?: string;
|
435
|
-
username?: string;
|
436
|
-
};
|
437
|
-
features?: string[];
|
438
|
-
kms_enabled?: boolean;
|
439
|
-
manifest_version?: number;
|
440
|
-
name?: string;
|
441
|
-
public_logs?: boolean;
|
442
|
-
public_sysinfo?: boolean;
|
443
|
-
runner?: string;
|
444
|
-
salt?: string;
|
445
|
-
tproxy_enabled?: boolean;
|
446
|
-
version?: string;
|
447
|
-
};
|
448
|
-
vcpu?: number;
|
449
|
-
memory?: number;
|
450
|
-
disk_size?: number;
|
451
|
-
ports?: any[];
|
452
|
-
};
|
453
|
-
exited_at?: string;
|
454
|
-
boot_progress?: string;
|
455
|
-
boot_error?: string;
|
456
|
-
shutdown_progress?: string;
|
457
|
-
image_version?: string;
|
458
|
-
}>;
|
459
|
-
declare const managedUserSchema: z.ZodObject<{
|
460
|
-
id: z.ZodNumber;
|
461
|
-
username: z.ZodString;
|
462
|
-
}, "strip", z.ZodTypeAny, {
|
463
|
-
username?: string;
|
464
|
-
id?: number;
|
465
|
-
}, {
|
466
|
-
username?: string;
|
467
|
-
id?: number;
|
468
|
-
}>;
|
469
|
-
declare const nodeSchema: z.ZodObject<{
|
470
|
-
id: z.ZodNumber;
|
471
|
-
name: z.ZodString;
|
472
|
-
region_identifier: z.ZodOptional<z.ZodString>;
|
473
|
-
}, "strip", z.ZodTypeAny, {
|
474
|
-
name?: string;
|
475
|
-
id?: number;
|
476
|
-
region_identifier?: string;
|
477
|
-
}, {
|
478
|
-
name?: string;
|
479
|
-
id?: number;
|
480
|
-
region_identifier?: string;
|
481
|
-
}>;
|
482
|
-
declare const cvmInstanceSchema: z.ZodObject<{
|
483
|
-
hosted: z.ZodObject<{
|
484
|
-
id: z.ZodString;
|
485
|
-
name: z.ZodString;
|
486
|
-
status: z.ZodString;
|
487
|
-
uptime: z.ZodString;
|
488
|
-
app_url: z.ZodString;
|
489
|
-
app_id: z.ZodString;
|
490
|
-
instance_id: z.ZodString;
|
491
|
-
configuration: z.ZodObject<{
|
492
|
-
name: z.ZodString;
|
493
|
-
image: z.ZodString;
|
494
|
-
compose_file: z.ZodNullable<z.ZodObject<{
|
495
|
-
docker_compose_file: z.ZodString;
|
496
|
-
docker_config: z.ZodOptional<z.ZodObject<{
|
497
|
-
password: z.ZodString;
|
498
|
-
registry: z.ZodNullable<z.ZodString>;
|
499
|
-
username: z.ZodString;
|
500
|
-
}, "strip", z.ZodTypeAny, {
|
501
|
-
password?: string;
|
502
|
-
registry?: string;
|
503
|
-
username?: string;
|
504
|
-
}, {
|
505
|
-
password?: string;
|
506
|
-
registry?: string;
|
507
|
-
username?: string;
|
508
|
-
}>>;
|
509
|
-
features: z.ZodArray<z.ZodString, "many">;
|
510
|
-
kms_enabled: z.ZodBoolean;
|
511
|
-
manifest_version: z.ZodNumber;
|
512
|
-
name: z.ZodString;
|
513
|
-
public_logs: z.ZodBoolean;
|
514
|
-
public_sysinfo: z.ZodBoolean;
|
515
|
-
runner: z.ZodOptional<z.ZodString>;
|
516
|
-
salt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
517
|
-
tproxy_enabled: z.ZodBoolean;
|
518
|
-
version: z.ZodOptional<z.ZodString>;
|
519
|
-
}, "strip", z.ZodTypeAny, {
|
520
|
-
docker_compose_file?: string;
|
521
|
-
docker_config?: {
|
522
|
-
password?: string;
|
523
|
-
registry?: string;
|
524
|
-
username?: string;
|
525
|
-
};
|
526
|
-
features?: string[];
|
527
|
-
kms_enabled?: boolean;
|
528
|
-
manifest_version?: number;
|
529
|
-
name?: string;
|
530
|
-
public_logs?: boolean;
|
531
|
-
public_sysinfo?: boolean;
|
532
|
-
runner?: string;
|
533
|
-
salt?: string;
|
534
|
-
tproxy_enabled?: boolean;
|
535
|
-
version?: string;
|
536
|
-
}, {
|
537
|
-
docker_compose_file?: string;
|
538
|
-
docker_config?: {
|
539
|
-
password?: string;
|
540
|
-
registry?: string;
|
541
|
-
username?: string;
|
542
|
-
};
|
543
|
-
features?: string[];
|
544
|
-
kms_enabled?: boolean;
|
545
|
-
manifest_version?: number;
|
546
|
-
name?: string;
|
547
|
-
public_logs?: boolean;
|
548
|
-
public_sysinfo?: boolean;
|
549
|
-
runner?: string;
|
550
|
-
salt?: string;
|
551
|
-
tproxy_enabled?: boolean;
|
552
|
-
version?: string;
|
553
|
-
}>>;
|
554
|
-
vcpu: z.ZodNumber;
|
555
|
-
memory: z.ZodNumber;
|
556
|
-
disk_size: z.ZodNumber;
|
557
|
-
ports: z.ZodArray<z.ZodAny, "many">;
|
558
|
-
}, "strip", z.ZodTypeAny, {
|
559
|
-
name?: string;
|
560
|
-
image?: string;
|
561
|
-
compose_file?: {
|
562
|
-
docker_compose_file?: string;
|
563
|
-
docker_config?: {
|
564
|
-
password?: string;
|
565
|
-
registry?: string;
|
566
|
-
username?: string;
|
567
|
-
};
|
568
|
-
features?: string[];
|
569
|
-
kms_enabled?: boolean;
|
570
|
-
manifest_version?: number;
|
571
|
-
name?: string;
|
572
|
-
public_logs?: boolean;
|
573
|
-
public_sysinfo?: boolean;
|
574
|
-
runner?: string;
|
575
|
-
salt?: string;
|
576
|
-
tproxy_enabled?: boolean;
|
577
|
-
version?: string;
|
578
|
-
};
|
579
|
-
vcpu?: number;
|
580
|
-
memory?: number;
|
581
|
-
disk_size?: number;
|
582
|
-
ports?: any[];
|
583
|
-
}, {
|
584
|
-
name?: string;
|
585
|
-
image?: string;
|
586
|
-
compose_file?: {
|
587
|
-
docker_compose_file?: string;
|
588
|
-
docker_config?: {
|
589
|
-
password?: string;
|
590
|
-
registry?: string;
|
591
|
-
username?: string;
|
592
|
-
};
|
593
|
-
features?: string[];
|
594
|
-
kms_enabled?: boolean;
|
595
|
-
manifest_version?: number;
|
596
|
-
name?: string;
|
597
|
-
public_logs?: boolean;
|
598
|
-
public_sysinfo?: boolean;
|
599
|
-
runner?: string;
|
600
|
-
salt?: string;
|
601
|
-
tproxy_enabled?: boolean;
|
602
|
-
version?: string;
|
603
|
-
};
|
604
|
-
vcpu?: number;
|
605
|
-
memory?: number;
|
606
|
-
disk_size?: number;
|
607
|
-
ports?: any[];
|
608
|
-
}>;
|
609
|
-
exited_at: z.ZodString;
|
610
|
-
boot_progress: z.ZodString;
|
611
|
-
boot_error: z.ZodString;
|
612
|
-
shutdown_progress: z.ZodString;
|
613
|
-
image_version: z.ZodString;
|
614
|
-
}, "strip", z.ZodTypeAny, {
|
615
|
-
status?: string;
|
616
|
-
name?: string;
|
617
|
-
id?: string;
|
618
|
-
uptime?: string;
|
619
|
-
app_url?: string;
|
620
|
-
app_id?: string;
|
621
|
-
instance_id?: string;
|
622
|
-
configuration?: {
|
623
|
-
name?: string;
|
624
|
-
image?: string;
|
625
|
-
compose_file?: {
|
626
|
-
docker_compose_file?: string;
|
627
|
-
docker_config?: {
|
628
|
-
password?: string;
|
629
|
-
registry?: string;
|
630
|
-
username?: string;
|
631
|
-
};
|
632
|
-
features?: string[];
|
633
|
-
kms_enabled?: boolean;
|
634
|
-
manifest_version?: number;
|
635
|
-
name?: string;
|
636
|
-
public_logs?: boolean;
|
637
|
-
public_sysinfo?: boolean;
|
638
|
-
runner?: string;
|
639
|
-
salt?: string;
|
640
|
-
tproxy_enabled?: boolean;
|
641
|
-
version?: string;
|
642
|
-
};
|
643
|
-
vcpu?: number;
|
644
|
-
memory?: number;
|
645
|
-
disk_size?: number;
|
646
|
-
ports?: any[];
|
647
|
-
};
|
648
|
-
exited_at?: string;
|
649
|
-
boot_progress?: string;
|
650
|
-
boot_error?: string;
|
651
|
-
shutdown_progress?: string;
|
652
|
-
image_version?: string;
|
653
|
-
}, {
|
654
|
-
status?: string;
|
655
|
-
name?: string;
|
656
|
-
id?: string;
|
657
|
-
uptime?: string;
|
658
|
-
app_url?: string;
|
659
|
-
app_id?: string;
|
660
|
-
instance_id?: string;
|
661
|
-
configuration?: {
|
662
|
-
name?: string;
|
663
|
-
image?: string;
|
664
|
-
compose_file?: {
|
665
|
-
docker_compose_file?: string;
|
666
|
-
docker_config?: {
|
667
|
-
password?: string;
|
668
|
-
registry?: string;
|
669
|
-
username?: string;
|
670
|
-
};
|
671
|
-
features?: string[];
|
672
|
-
kms_enabled?: boolean;
|
673
|
-
manifest_version?: number;
|
674
|
-
name?: string;
|
675
|
-
public_logs?: boolean;
|
676
|
-
public_sysinfo?: boolean;
|
677
|
-
runner?: string;
|
678
|
-
salt?: string;
|
679
|
-
tproxy_enabled?: boolean;
|
680
|
-
version?: string;
|
681
|
-
};
|
682
|
-
vcpu?: number;
|
683
|
-
memory?: number;
|
684
|
-
disk_size?: number;
|
685
|
-
ports?: any[];
|
686
|
-
};
|
687
|
-
exited_at?: string;
|
688
|
-
boot_progress?: string;
|
689
|
-
boot_error?: string;
|
690
|
-
shutdown_progress?: string;
|
691
|
-
image_version?: string;
|
692
|
-
}>;
|
693
|
-
name: z.ZodString;
|
694
|
-
managed_user: z.ZodObject<{
|
695
|
-
id: z.ZodNumber;
|
696
|
-
username: z.ZodString;
|
697
|
-
}, "strip", z.ZodTypeAny, {
|
698
|
-
username?: string;
|
699
|
-
id?: number;
|
700
|
-
}, {
|
701
|
-
username?: string;
|
702
|
-
id?: number;
|
703
|
-
}>;
|
704
|
-
node: z.ZodObject<{
|
705
|
-
id: z.ZodNumber;
|
706
|
-
name: z.ZodString;
|
707
|
-
region_identifier: z.ZodOptional<z.ZodString>;
|
708
|
-
}, "strip", z.ZodTypeAny, {
|
709
|
-
name?: string;
|
710
|
-
id?: number;
|
711
|
-
region_identifier?: string;
|
712
|
-
}, {
|
713
|
-
name?: string;
|
714
|
-
id?: number;
|
715
|
-
region_identifier?: string;
|
716
|
-
}>;
|
717
|
-
listed: z.ZodBoolean;
|
718
|
-
status: z.ZodString;
|
719
|
-
in_progress: z.ZodBoolean;
|
720
|
-
dapp_dashboard_url: z.ZodNullable<z.ZodString>;
|
721
|
-
syslog_endpoint: z.ZodString;
|
722
|
-
allow_upgrade: z.ZodBoolean;
|
723
|
-
}, "strip", z.ZodTypeAny, {
|
724
|
-
status?: string;
|
725
|
-
name?: string;
|
726
|
-
hosted?: {
|
727
|
-
status?: string;
|
728
|
-
name?: string;
|
729
|
-
id?: string;
|
730
|
-
uptime?: string;
|
731
|
-
app_url?: string;
|
732
|
-
app_id?: string;
|
733
|
-
instance_id?: string;
|
734
|
-
configuration?: {
|
735
|
-
name?: string;
|
736
|
-
image?: string;
|
737
|
-
compose_file?: {
|
738
|
-
docker_compose_file?: string;
|
739
|
-
docker_config?: {
|
740
|
-
password?: string;
|
741
|
-
registry?: string;
|
742
|
-
username?: string;
|
743
|
-
};
|
744
|
-
features?: string[];
|
745
|
-
kms_enabled?: boolean;
|
746
|
-
manifest_version?: number;
|
747
|
-
name?: string;
|
748
|
-
public_logs?: boolean;
|
749
|
-
public_sysinfo?: boolean;
|
750
|
-
runner?: string;
|
751
|
-
salt?: string;
|
752
|
-
tproxy_enabled?: boolean;
|
753
|
-
version?: string;
|
754
|
-
};
|
755
|
-
vcpu?: number;
|
756
|
-
memory?: number;
|
757
|
-
disk_size?: number;
|
758
|
-
ports?: any[];
|
759
|
-
};
|
760
|
-
exited_at?: string;
|
761
|
-
boot_progress?: string;
|
762
|
-
boot_error?: string;
|
763
|
-
shutdown_progress?: string;
|
764
|
-
image_version?: string;
|
765
|
-
};
|
766
|
-
managed_user?: {
|
767
|
-
username?: string;
|
768
|
-
id?: number;
|
769
|
-
};
|
770
|
-
node?: {
|
771
|
-
name?: string;
|
772
|
-
id?: number;
|
773
|
-
region_identifier?: string;
|
774
|
-
};
|
775
|
-
listed?: boolean;
|
776
|
-
in_progress?: boolean;
|
777
|
-
dapp_dashboard_url?: string;
|
778
|
-
syslog_endpoint?: string;
|
779
|
-
allow_upgrade?: boolean;
|
780
|
-
}, {
|
781
|
-
status?: string;
|
782
|
-
name?: string;
|
783
|
-
hosted?: {
|
784
|
-
status?: string;
|
785
|
-
name?: string;
|
786
|
-
id?: string;
|
787
|
-
uptime?: string;
|
788
|
-
app_url?: string;
|
789
|
-
app_id?: string;
|
790
|
-
instance_id?: string;
|
791
|
-
configuration?: {
|
792
|
-
name?: string;
|
793
|
-
image?: string;
|
794
|
-
compose_file?: {
|
795
|
-
docker_compose_file?: string;
|
796
|
-
docker_config?: {
|
797
|
-
password?: string;
|
798
|
-
registry?: string;
|
799
|
-
username?: string;
|
800
|
-
};
|
801
|
-
features?: string[];
|
802
|
-
kms_enabled?: boolean;
|
803
|
-
manifest_version?: number;
|
804
|
-
name?: string;
|
805
|
-
public_logs?: boolean;
|
806
|
-
public_sysinfo?: boolean;
|
807
|
-
runner?: string;
|
808
|
-
salt?: string;
|
809
|
-
tproxy_enabled?: boolean;
|
810
|
-
version?: string;
|
811
|
-
};
|
812
|
-
vcpu?: number;
|
813
|
-
memory?: number;
|
814
|
-
disk_size?: number;
|
815
|
-
ports?: any[];
|
816
|
-
};
|
817
|
-
exited_at?: string;
|
818
|
-
boot_progress?: string;
|
819
|
-
boot_error?: string;
|
820
|
-
shutdown_progress?: string;
|
821
|
-
image_version?: string;
|
822
|
-
};
|
823
|
-
managed_user?: {
|
824
|
-
username?: string;
|
825
|
-
id?: number;
|
826
|
-
};
|
827
|
-
node?: {
|
828
|
-
name?: string;
|
829
|
-
id?: number;
|
830
|
-
region_identifier?: string;
|
831
|
-
};
|
832
|
-
listed?: boolean;
|
833
|
-
in_progress?: boolean;
|
834
|
-
dapp_dashboard_url?: string;
|
835
|
-
syslog_endpoint?: string;
|
836
|
-
allow_upgrade?: boolean;
|
837
|
-
}>;
|
838
|
-
declare const postCvmResponseSchema: z.ZodObject<{
|
839
|
-
id: z.ZodNumber;
|
840
|
-
name: z.ZodString;
|
841
|
-
status: z.ZodString;
|
842
|
-
teepod_id: z.ZodNullable<z.ZodNumber>;
|
843
|
-
teepod: z.ZodNullable<z.ZodObject<{
|
844
|
-
id: z.ZodNumber;
|
845
|
-
name: z.ZodString;
|
846
|
-
}, "strip", z.ZodTypeAny, {
|
847
|
-
name?: string;
|
848
|
-
id?: number;
|
849
|
-
}, {
|
850
|
-
name?: string;
|
851
|
-
id?: number;
|
852
|
-
}>>;
|
853
|
-
user_id: z.ZodNumber;
|
854
|
-
app_id: z.ZodString;
|
855
|
-
vm_uuid: z.ZodNullable<z.ZodString>;
|
856
|
-
instance_id: z.ZodNullable<z.ZodString>;
|
857
|
-
app_url: z.ZodNullable<z.ZodString>;
|
858
|
-
base_image: z.ZodString;
|
859
|
-
vcpu: z.ZodNumber;
|
860
|
-
memory: z.ZodNumber;
|
861
|
-
disk_size: z.ZodNumber;
|
862
|
-
manifest_version: z.ZodNumber;
|
863
|
-
version: z.ZodNullable<z.ZodString>;
|
864
|
-
runner: z.ZodString;
|
865
|
-
docker_compose_file: z.ZodString;
|
866
|
-
features: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
867
|
-
created_at: z.ZodString;
|
868
|
-
encrypted_env_pubkey: z.ZodString;
|
869
|
-
device_id: z.ZodOptional<z.ZodString>;
|
870
|
-
kms_contract_address: z.ZodOptional<z.ZodString>;
|
871
|
-
kms_owner_address: z.ZodOptional<z.ZodString>;
|
872
|
-
}, "strip", z.ZodTypeAny, {
|
873
|
-
teepod?: {
|
874
|
-
name?: string;
|
875
|
-
id?: number;
|
876
|
-
};
|
877
|
-
status?: string;
|
878
|
-
docker_compose_file?: string;
|
879
|
-
features?: string[];
|
880
|
-
manifest_version?: number;
|
881
|
-
name?: string;
|
882
|
-
runner?: string;
|
883
|
-
version?: string;
|
884
|
-
vcpu?: number;
|
885
|
-
memory?: number;
|
886
|
-
disk_size?: number;
|
887
|
-
id?: number;
|
888
|
-
app_url?: string;
|
889
|
-
app_id?: string;
|
890
|
-
instance_id?: string;
|
891
|
-
teepod_id?: number;
|
892
|
-
user_id?: number;
|
893
|
-
vm_uuid?: string;
|
894
|
-
base_image?: string;
|
895
|
-
created_at?: string;
|
896
|
-
encrypted_env_pubkey?: string;
|
897
|
-
device_id?: string;
|
898
|
-
kms_contract_address?: string;
|
899
|
-
kms_owner_address?: string;
|
900
|
-
}, {
|
901
|
-
teepod?: {
|
902
|
-
name?: string;
|
903
|
-
id?: number;
|
904
|
-
};
|
905
|
-
status?: string;
|
906
|
-
docker_compose_file?: string;
|
907
|
-
features?: string[];
|
908
|
-
manifest_version?: number;
|
909
|
-
name?: string;
|
910
|
-
runner?: string;
|
911
|
-
version?: string;
|
912
|
-
vcpu?: number;
|
913
|
-
memory?: number;
|
914
|
-
disk_size?: number;
|
915
|
-
id?: number;
|
916
|
-
app_url?: string;
|
917
|
-
app_id?: string;
|
918
|
-
instance_id?: string;
|
919
|
-
teepod_id?: number;
|
920
|
-
user_id?: number;
|
921
|
-
vm_uuid?: string;
|
922
|
-
base_image?: string;
|
923
|
-
created_at?: string;
|
924
|
-
encrypted_env_pubkey?: string;
|
925
|
-
device_id?: string;
|
926
|
-
kms_contract_address?: string;
|
927
|
-
kms_owner_address?: string;
|
928
|
-
}>;
|
929
|
-
declare const getPubkeyFromCvmResponseSchema: z.ZodObject<{
|
930
|
-
app_env_encrypt_pubkey: z.ZodString;
|
931
|
-
app_id_salt: z.ZodString;
|
932
|
-
}, "strip", z.ZodTypeAny, {
|
933
|
-
app_env_encrypt_pubkey?: string;
|
934
|
-
app_id_salt?: string;
|
935
|
-
}, {
|
936
|
-
app_env_encrypt_pubkey?: string;
|
937
|
-
app_id_salt?: string;
|
938
|
-
}>;
|
939
|
-
declare const getCvmByAppIdResponseSchema: z.ZodObject<{
|
940
|
-
id: z.ZodNumber;
|
941
|
-
teepod_id: z.ZodNullable<z.ZodNumber>;
|
942
|
-
teepod: z.ZodNullable<z.ZodObject<{
|
943
|
-
id: z.ZodNumber;
|
944
|
-
name: z.ZodString;
|
945
|
-
}, "strip", z.ZodTypeAny, {
|
946
|
-
name?: string;
|
947
|
-
id?: number;
|
948
|
-
}, {
|
949
|
-
name?: string;
|
950
|
-
id?: number;
|
951
|
-
}>>;
|
952
|
-
name: z.ZodString;
|
953
|
-
status: z.ZodString;
|
954
|
-
in_progress: z.ZodBoolean;
|
955
|
-
app_id: z.ZodString;
|
956
|
-
vm_uuid: z.ZodString;
|
957
|
-
instance_id: z.ZodNullable<z.ZodString>;
|
958
|
-
vcpu: z.ZodNumber;
|
959
|
-
memory: z.ZodNumber;
|
960
|
-
disk_size: z.ZodNumber;
|
961
|
-
base_image: z.ZodString;
|
962
|
-
encrypted_env_pubkey: z.ZodString;
|
963
|
-
listed: z.ZodBoolean;
|
964
|
-
project_id: z.ZodString;
|
965
|
-
project_type: z.ZodNullable<z.ZodString>;
|
966
|
-
compose_file: z.ZodOptional<z.ZodObject<{
|
967
|
-
docker_compose_file: z.ZodString;
|
968
|
-
docker_config: z.ZodOptional<z.ZodObject<{
|
969
|
-
password: z.ZodString;
|
970
|
-
registry: z.ZodNullable<z.ZodString>;
|
971
|
-
username: z.ZodString;
|
972
|
-
}, "strip", z.ZodTypeAny, {
|
973
|
-
password?: string;
|
974
|
-
registry?: string;
|
975
|
-
username?: string;
|
976
|
-
}, {
|
977
|
-
password?: string;
|
978
|
-
registry?: string;
|
979
|
-
username?: string;
|
980
|
-
}>>;
|
981
|
-
features: z.ZodArray<z.ZodString, "many">;
|
982
|
-
kms_enabled: z.ZodBoolean;
|
983
|
-
manifest_version: z.ZodNumber;
|
984
|
-
name: z.ZodString;
|
985
|
-
public_logs: z.ZodBoolean;
|
986
|
-
public_sysinfo: z.ZodBoolean;
|
987
|
-
runner: z.ZodOptional<z.ZodString>;
|
988
|
-
salt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
989
|
-
tproxy_enabled: z.ZodBoolean;
|
990
|
-
version: z.ZodOptional<z.ZodString>;
|
991
|
-
}, "strip", z.ZodTypeAny, {
|
992
|
-
docker_compose_file?: string;
|
993
|
-
docker_config?: {
|
994
|
-
password?: string;
|
995
|
-
registry?: string;
|
996
|
-
username?: string;
|
997
|
-
};
|
998
|
-
features?: string[];
|
999
|
-
kms_enabled?: boolean;
|
1000
|
-
manifest_version?: number;
|
1001
|
-
name?: string;
|
1002
|
-
public_logs?: boolean;
|
1003
|
-
public_sysinfo?: boolean;
|
1004
|
-
runner?: string;
|
1005
|
-
salt?: string;
|
1006
|
-
tproxy_enabled?: boolean;
|
1007
|
-
version?: string;
|
1008
|
-
}, {
|
1009
|
-
docker_compose_file?: string;
|
1010
|
-
docker_config?: {
|
1011
|
-
password?: string;
|
1012
|
-
registry?: string;
|
1013
|
-
username?: string;
|
1014
|
-
};
|
1015
|
-
features?: string[];
|
1016
|
-
kms_enabled?: boolean;
|
1017
|
-
manifest_version?: number;
|
1018
|
-
name?: string;
|
1019
|
-
public_logs?: boolean;
|
1020
|
-
public_sysinfo?: boolean;
|
1021
|
-
runner?: string;
|
1022
|
-
salt?: string;
|
1023
|
-
tproxy_enabled?: boolean;
|
1024
|
-
version?: string;
|
1025
|
-
}>>;
|
1026
|
-
kms_info: z.ZodOptional<z.ZodAny>;
|
1027
|
-
}, "strip", z.ZodTypeAny, {
|
1028
|
-
teepod?: {
|
1029
|
-
name?: string;
|
1030
|
-
id?: number;
|
1031
|
-
};
|
1032
|
-
status?: string;
|
1033
|
-
name?: string;
|
1034
|
-
compose_file?: {
|
1035
|
-
docker_compose_file?: string;
|
1036
|
-
docker_config?: {
|
1037
|
-
password?: string;
|
1038
|
-
registry?: string;
|
1039
|
-
username?: string;
|
1040
|
-
};
|
1041
|
-
features?: string[];
|
1042
|
-
kms_enabled?: boolean;
|
1043
|
-
manifest_version?: number;
|
1044
|
-
name?: string;
|
1045
|
-
public_logs?: boolean;
|
1046
|
-
public_sysinfo?: boolean;
|
1047
|
-
runner?: string;
|
1048
|
-
salt?: string;
|
1049
|
-
tproxy_enabled?: boolean;
|
1050
|
-
version?: string;
|
1051
|
-
};
|
1052
|
-
vcpu?: number;
|
1053
|
-
memory?: number;
|
1054
|
-
disk_size?: number;
|
1055
|
-
id?: number;
|
1056
|
-
app_id?: string;
|
1057
|
-
instance_id?: string;
|
1058
|
-
listed?: boolean;
|
1059
|
-
in_progress?: boolean;
|
1060
|
-
teepod_id?: number;
|
1061
|
-
vm_uuid?: string;
|
1062
|
-
base_image?: string;
|
1063
|
-
encrypted_env_pubkey?: string;
|
1064
|
-
project_id?: string;
|
1065
|
-
project_type?: string;
|
1066
|
-
kms_info?: any;
|
1067
|
-
}, {
|
1068
|
-
teepod?: {
|
1069
|
-
name?: string;
|
1070
|
-
id?: number;
|
1071
|
-
};
|
1072
|
-
status?: string;
|
1073
|
-
name?: string;
|
1074
|
-
compose_file?: {
|
1075
|
-
docker_compose_file?: string;
|
1076
|
-
docker_config?: {
|
1077
|
-
password?: string;
|
1078
|
-
registry?: string;
|
1079
|
-
username?: string;
|
1080
|
-
};
|
1081
|
-
features?: string[];
|
1082
|
-
kms_enabled?: boolean;
|
1083
|
-
manifest_version?: number;
|
1084
|
-
name?: string;
|
1085
|
-
public_logs?: boolean;
|
1086
|
-
public_sysinfo?: boolean;
|
1087
|
-
runner?: string;
|
1088
|
-
salt?: string;
|
1089
|
-
tproxy_enabled?: boolean;
|
1090
|
-
version?: string;
|
1091
|
-
};
|
1092
|
-
vcpu?: number;
|
1093
|
-
memory?: number;
|
1094
|
-
disk_size?: number;
|
1095
|
-
id?: number;
|
1096
|
-
app_id?: string;
|
1097
|
-
instance_id?: string;
|
1098
|
-
listed?: boolean;
|
1099
|
-
in_progress?: boolean;
|
1100
|
-
teepod_id?: number;
|
1101
|
-
vm_uuid?: string;
|
1102
|
-
base_image?: string;
|
1103
|
-
encrypted_env_pubkey?: string;
|
1104
|
-
project_id?: string;
|
1105
|
-
project_type?: string;
|
1106
|
-
kms_info?: any;
|
1107
|
-
}>;
|
1108
|
-
declare const getUserInfoResponseSchema: z.ZodObject<{
|
1109
|
-
username: z.ZodString;
|
1110
|
-
email: z.ZodString;
|
1111
|
-
credits: ZodDecimal;
|
1112
|
-
granted_credits: ZodDecimal;
|
1113
|
-
role: z.ZodString;
|
1114
|
-
avatar: z.ZodString;
|
1115
|
-
flag_reset_password: z.ZodBoolean;
|
1116
|
-
team_name: z.ZodString;
|
1117
|
-
team_tier: z.ZodString;
|
1118
|
-
trial_ended_at: z.ZodNullable<z.ZodString>;
|
1119
|
-
}, "strip", z.ZodTypeAny, {
|
1120
|
-
username?: string;
|
1121
|
-
email?: string;
|
1122
|
-
credits?: number;
|
1123
|
-
granted_credits?: number;
|
1124
|
-
role?: string;
|
1125
|
-
avatar?: string;
|
1126
|
-
flag_reset_password?: boolean;
|
1127
|
-
team_name?: string;
|
1128
|
-
team_tier?: string;
|
1129
|
-
trial_ended_at?: string;
|
1130
|
-
}, {
|
1131
|
-
username?: string;
|
1132
|
-
email?: string;
|
1133
|
-
credits?: any;
|
1134
|
-
granted_credits?: any;
|
1135
|
-
role?: string;
|
1136
|
-
avatar?: string;
|
1137
|
-
flag_reset_password?: boolean;
|
1138
|
-
team_name?: string;
|
1139
|
-
team_tier?: string;
|
1140
|
-
trial_ended_at?: string;
|
1141
|
-
}>;
|
1142
|
-
declare const getCvmsByUserIdResponseSchema: z.ZodArray<z.ZodObject<{
|
1143
|
-
hosted: z.ZodObject<{
|
1144
|
-
id: z.ZodString;
|
1145
|
-
name: z.ZodString;
|
1146
|
-
status: z.ZodString;
|
1147
|
-
uptime: z.ZodString;
|
1148
|
-
app_url: z.ZodString;
|
1149
|
-
app_id: z.ZodString;
|
1150
|
-
instance_id: z.ZodString;
|
1151
|
-
configuration: z.ZodObject<{
|
1152
|
-
name: z.ZodString;
|
1153
|
-
image: z.ZodString;
|
1154
|
-
compose_file: z.ZodNullable<z.ZodObject<{
|
1155
|
-
docker_compose_file: z.ZodString;
|
1156
|
-
docker_config: z.ZodOptional<z.ZodObject<{
|
1157
|
-
password: z.ZodString;
|
1158
|
-
registry: z.ZodNullable<z.ZodString>;
|
1159
|
-
username: z.ZodString;
|
1160
|
-
}, "strip", z.ZodTypeAny, {
|
1161
|
-
password?: string;
|
1162
|
-
registry?: string;
|
1163
|
-
username?: string;
|
1164
|
-
}, {
|
1165
|
-
password?: string;
|
1166
|
-
registry?: string;
|
1167
|
-
username?: string;
|
1168
|
-
}>>;
|
1169
|
-
features: z.ZodArray<z.ZodString, "many">;
|
1170
|
-
kms_enabled: z.ZodBoolean;
|
1171
|
-
manifest_version: z.ZodNumber;
|
1172
|
-
name: z.ZodString;
|
1173
|
-
public_logs: z.ZodBoolean;
|
1174
|
-
public_sysinfo: z.ZodBoolean;
|
1175
|
-
runner: z.ZodOptional<z.ZodString>;
|
1176
|
-
salt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1177
|
-
tproxy_enabled: z.ZodBoolean;
|
1178
|
-
version: z.ZodOptional<z.ZodString>;
|
1179
|
-
}, "strip", z.ZodTypeAny, {
|
1180
|
-
docker_compose_file?: string;
|
1181
|
-
docker_config?: {
|
1182
|
-
password?: string;
|
1183
|
-
registry?: string;
|
1184
|
-
username?: string;
|
1185
|
-
};
|
1186
|
-
features?: string[];
|
1187
|
-
kms_enabled?: boolean;
|
1188
|
-
manifest_version?: number;
|
1189
|
-
name?: string;
|
1190
|
-
public_logs?: boolean;
|
1191
|
-
public_sysinfo?: boolean;
|
1192
|
-
runner?: string;
|
1193
|
-
salt?: string;
|
1194
|
-
tproxy_enabled?: boolean;
|
1195
|
-
version?: string;
|
1196
|
-
}, {
|
1197
|
-
docker_compose_file?: string;
|
1198
|
-
docker_config?: {
|
1199
|
-
password?: string;
|
1200
|
-
registry?: string;
|
1201
|
-
username?: string;
|
1202
|
-
};
|
1203
|
-
features?: string[];
|
1204
|
-
kms_enabled?: boolean;
|
1205
|
-
manifest_version?: number;
|
1206
|
-
name?: string;
|
1207
|
-
public_logs?: boolean;
|
1208
|
-
public_sysinfo?: boolean;
|
1209
|
-
runner?: string;
|
1210
|
-
salt?: string;
|
1211
|
-
tproxy_enabled?: boolean;
|
1212
|
-
version?: string;
|
1213
|
-
}>>;
|
1214
|
-
vcpu: z.ZodNumber;
|
1215
|
-
memory: z.ZodNumber;
|
1216
|
-
disk_size: z.ZodNumber;
|
1217
|
-
ports: z.ZodArray<z.ZodAny, "many">;
|
1218
|
-
}, "strip", z.ZodTypeAny, {
|
1219
|
-
name?: string;
|
1220
|
-
image?: string;
|
1221
|
-
compose_file?: {
|
1222
|
-
docker_compose_file?: string;
|
1223
|
-
docker_config?: {
|
1224
|
-
password?: string;
|
1225
|
-
registry?: string;
|
1226
|
-
username?: string;
|
1227
|
-
};
|
1228
|
-
features?: string[];
|
1229
|
-
kms_enabled?: boolean;
|
1230
|
-
manifest_version?: number;
|
1231
|
-
name?: string;
|
1232
|
-
public_logs?: boolean;
|
1233
|
-
public_sysinfo?: boolean;
|
1234
|
-
runner?: string;
|
1235
|
-
salt?: string;
|
1236
|
-
tproxy_enabled?: boolean;
|
1237
|
-
version?: string;
|
1238
|
-
};
|
1239
|
-
vcpu?: number;
|
1240
|
-
memory?: number;
|
1241
|
-
disk_size?: number;
|
1242
|
-
ports?: any[];
|
1243
|
-
}, {
|
1244
|
-
name?: string;
|
1245
|
-
image?: string;
|
1246
|
-
compose_file?: {
|
1247
|
-
docker_compose_file?: string;
|
1248
|
-
docker_config?: {
|
1249
|
-
password?: string;
|
1250
|
-
registry?: string;
|
1251
|
-
username?: string;
|
1252
|
-
};
|
1253
|
-
features?: string[];
|
1254
|
-
kms_enabled?: boolean;
|
1255
|
-
manifest_version?: number;
|
1256
|
-
name?: string;
|
1257
|
-
public_logs?: boolean;
|
1258
|
-
public_sysinfo?: boolean;
|
1259
|
-
runner?: string;
|
1260
|
-
salt?: string;
|
1261
|
-
tproxy_enabled?: boolean;
|
1262
|
-
version?: string;
|
1263
|
-
};
|
1264
|
-
vcpu?: number;
|
1265
|
-
memory?: number;
|
1266
|
-
disk_size?: number;
|
1267
|
-
ports?: any[];
|
1268
|
-
}>;
|
1269
|
-
exited_at: z.ZodString;
|
1270
|
-
boot_progress: z.ZodString;
|
1271
|
-
boot_error: z.ZodString;
|
1272
|
-
shutdown_progress: z.ZodString;
|
1273
|
-
image_version: z.ZodString;
|
1274
|
-
}, "strip", z.ZodTypeAny, {
|
1275
|
-
status?: string;
|
1276
|
-
name?: string;
|
1277
|
-
id?: string;
|
1278
|
-
uptime?: string;
|
1279
|
-
app_url?: string;
|
1280
|
-
app_id?: string;
|
1281
|
-
instance_id?: string;
|
1282
|
-
configuration?: {
|
1283
|
-
name?: string;
|
1284
|
-
image?: string;
|
1285
|
-
compose_file?: {
|
1286
|
-
docker_compose_file?: string;
|
1287
|
-
docker_config?: {
|
1288
|
-
password?: string;
|
1289
|
-
registry?: string;
|
1290
|
-
username?: string;
|
1291
|
-
};
|
1292
|
-
features?: string[];
|
1293
|
-
kms_enabled?: boolean;
|
1294
|
-
manifest_version?: number;
|
1295
|
-
name?: string;
|
1296
|
-
public_logs?: boolean;
|
1297
|
-
public_sysinfo?: boolean;
|
1298
|
-
runner?: string;
|
1299
|
-
salt?: string;
|
1300
|
-
tproxy_enabled?: boolean;
|
1301
|
-
version?: string;
|
1302
|
-
};
|
1303
|
-
vcpu?: number;
|
1304
|
-
memory?: number;
|
1305
|
-
disk_size?: number;
|
1306
|
-
ports?: any[];
|
1307
|
-
};
|
1308
|
-
exited_at?: string;
|
1309
|
-
boot_progress?: string;
|
1310
|
-
boot_error?: string;
|
1311
|
-
shutdown_progress?: string;
|
1312
|
-
image_version?: string;
|
1313
|
-
}, {
|
1314
|
-
status?: string;
|
1315
|
-
name?: string;
|
1316
|
-
id?: string;
|
1317
|
-
uptime?: string;
|
1318
|
-
app_url?: string;
|
1319
|
-
app_id?: string;
|
1320
|
-
instance_id?: string;
|
1321
|
-
configuration?: {
|
1322
|
-
name?: string;
|
1323
|
-
image?: string;
|
1324
|
-
compose_file?: {
|
1325
|
-
docker_compose_file?: string;
|
1326
|
-
docker_config?: {
|
1327
|
-
password?: string;
|
1328
|
-
registry?: string;
|
1329
|
-
username?: string;
|
1330
|
-
};
|
1331
|
-
features?: string[];
|
1332
|
-
kms_enabled?: boolean;
|
1333
|
-
manifest_version?: number;
|
1334
|
-
name?: string;
|
1335
|
-
public_logs?: boolean;
|
1336
|
-
public_sysinfo?: boolean;
|
1337
|
-
runner?: string;
|
1338
|
-
salt?: string;
|
1339
|
-
tproxy_enabled?: boolean;
|
1340
|
-
version?: string;
|
1341
|
-
};
|
1342
|
-
vcpu?: number;
|
1343
|
-
memory?: number;
|
1344
|
-
disk_size?: number;
|
1345
|
-
ports?: any[];
|
1346
|
-
};
|
1347
|
-
exited_at?: string;
|
1348
|
-
boot_progress?: string;
|
1349
|
-
boot_error?: string;
|
1350
|
-
shutdown_progress?: string;
|
1351
|
-
image_version?: string;
|
1352
|
-
}>;
|
1353
|
-
name: z.ZodString;
|
1354
|
-
managed_user: z.ZodObject<{
|
1355
|
-
id: z.ZodNumber;
|
1356
|
-
username: z.ZodString;
|
1357
|
-
}, "strip", z.ZodTypeAny, {
|
1358
|
-
username?: string;
|
1359
|
-
id?: number;
|
1360
|
-
}, {
|
1361
|
-
username?: string;
|
1362
|
-
id?: number;
|
1363
|
-
}>;
|
1364
|
-
node: z.ZodObject<{
|
1365
|
-
id: z.ZodNumber;
|
1366
|
-
name: z.ZodString;
|
1367
|
-
region_identifier: z.ZodOptional<z.ZodString>;
|
1368
|
-
}, "strip", z.ZodTypeAny, {
|
1369
|
-
name?: string;
|
1370
|
-
id?: number;
|
1371
|
-
region_identifier?: string;
|
1372
|
-
}, {
|
1373
|
-
name?: string;
|
1374
|
-
id?: number;
|
1375
|
-
region_identifier?: string;
|
1376
|
-
}>;
|
1377
|
-
listed: z.ZodBoolean;
|
1378
|
-
status: z.ZodString;
|
1379
|
-
in_progress: z.ZodBoolean;
|
1380
|
-
dapp_dashboard_url: z.ZodNullable<z.ZodString>;
|
1381
|
-
syslog_endpoint: z.ZodString;
|
1382
|
-
allow_upgrade: z.ZodBoolean;
|
1383
|
-
}, "strip", z.ZodTypeAny, {
|
1384
|
-
status?: string;
|
1385
|
-
name?: string;
|
1386
|
-
hosted?: {
|
1387
|
-
status?: string;
|
1388
|
-
name?: string;
|
1389
|
-
id?: string;
|
1390
|
-
uptime?: string;
|
1391
|
-
app_url?: string;
|
1392
|
-
app_id?: string;
|
1393
|
-
instance_id?: string;
|
1394
|
-
configuration?: {
|
1395
|
-
name?: string;
|
1396
|
-
image?: string;
|
1397
|
-
compose_file?: {
|
1398
|
-
docker_compose_file?: string;
|
1399
|
-
docker_config?: {
|
1400
|
-
password?: string;
|
1401
|
-
registry?: string;
|
1402
|
-
username?: string;
|
1403
|
-
};
|
1404
|
-
features?: string[];
|
1405
|
-
kms_enabled?: boolean;
|
1406
|
-
manifest_version?: number;
|
1407
|
-
name?: string;
|
1408
|
-
public_logs?: boolean;
|
1409
|
-
public_sysinfo?: boolean;
|
1410
|
-
runner?: string;
|
1411
|
-
salt?: string;
|
1412
|
-
tproxy_enabled?: boolean;
|
1413
|
-
version?: string;
|
1414
|
-
};
|
1415
|
-
vcpu?: number;
|
1416
|
-
memory?: number;
|
1417
|
-
disk_size?: number;
|
1418
|
-
ports?: any[];
|
1419
|
-
};
|
1420
|
-
exited_at?: string;
|
1421
|
-
boot_progress?: string;
|
1422
|
-
boot_error?: string;
|
1423
|
-
shutdown_progress?: string;
|
1424
|
-
image_version?: string;
|
1425
|
-
};
|
1426
|
-
managed_user?: {
|
1427
|
-
username?: string;
|
1428
|
-
id?: number;
|
1429
|
-
};
|
1430
|
-
node?: {
|
1431
|
-
name?: string;
|
1432
|
-
id?: number;
|
1433
|
-
region_identifier?: string;
|
1434
|
-
};
|
1435
|
-
listed?: boolean;
|
1436
|
-
in_progress?: boolean;
|
1437
|
-
dapp_dashboard_url?: string;
|
1438
|
-
syslog_endpoint?: string;
|
1439
|
-
allow_upgrade?: boolean;
|
1440
|
-
}, {
|
1441
|
-
status?: string;
|
1442
|
-
name?: string;
|
1443
|
-
hosted?: {
|
1444
|
-
status?: string;
|
1445
|
-
name?: string;
|
1446
|
-
id?: string;
|
1447
|
-
uptime?: string;
|
1448
|
-
app_url?: string;
|
1449
|
-
app_id?: string;
|
1450
|
-
instance_id?: string;
|
1451
|
-
configuration?: {
|
1452
|
-
name?: string;
|
1453
|
-
image?: string;
|
1454
|
-
compose_file?: {
|
1455
|
-
docker_compose_file?: string;
|
1456
|
-
docker_config?: {
|
1457
|
-
password?: string;
|
1458
|
-
registry?: string;
|
1459
|
-
username?: string;
|
1460
|
-
};
|
1461
|
-
features?: string[];
|
1462
|
-
kms_enabled?: boolean;
|
1463
|
-
manifest_version?: number;
|
1464
|
-
name?: string;
|
1465
|
-
public_logs?: boolean;
|
1466
|
-
public_sysinfo?: boolean;
|
1467
|
-
runner?: string;
|
1468
|
-
salt?: string;
|
1469
|
-
tproxy_enabled?: boolean;
|
1470
|
-
version?: string;
|
1471
|
-
};
|
1472
|
-
vcpu?: number;
|
1473
|
-
memory?: number;
|
1474
|
-
disk_size?: number;
|
1475
|
-
ports?: any[];
|
1476
|
-
};
|
1477
|
-
exited_at?: string;
|
1478
|
-
boot_progress?: string;
|
1479
|
-
boot_error?: string;
|
1480
|
-
shutdown_progress?: string;
|
1481
|
-
image_version?: string;
|
1482
|
-
};
|
1483
|
-
managed_user?: {
|
1484
|
-
username?: string;
|
1485
|
-
id?: number;
|
1486
|
-
};
|
1487
|
-
node?: {
|
1488
|
-
name?: string;
|
1489
|
-
id?: number;
|
1490
|
-
region_identifier?: string;
|
1491
|
-
};
|
1492
|
-
listed?: boolean;
|
1493
|
-
in_progress?: boolean;
|
1494
|
-
dapp_dashboard_url?: string;
|
1495
|
-
syslog_endpoint?: string;
|
1496
|
-
allow_upgrade?: boolean;
|
1497
|
-
}>, "many">;
|
1498
|
-
declare const upgradeCvmResponseSchema: z.ZodObject<{
|
1499
|
-
detail: z.ZodString;
|
1500
|
-
}, "strip", z.ZodTypeAny, {
|
1501
|
-
detail?: string;
|
1502
|
-
}, {
|
1503
|
-
detail?: string;
|
1504
|
-
}>;
|
1505
|
-
declare const updatePatchCvmComposeResponseSchema: z.ZodUnion<[z.ZodNull, z.ZodObject<{
|
1506
|
-
detail: z.ZodArray<z.ZodObject<{
|
1507
|
-
loc: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
|
1508
|
-
msg: z.ZodString;
|
1509
|
-
type: z.ZodString;
|
1510
|
-
}, "strip", z.ZodTypeAny, {
|
1511
|
-
type?: string;
|
1512
|
-
loc?: (string | number)[];
|
1513
|
-
msg?: string;
|
1514
|
-
}, {
|
1515
|
-
type?: string;
|
1516
|
-
loc?: (string | number)[];
|
1517
|
-
msg?: string;
|
1518
|
-
}>, "many">;
|
1519
|
-
}, "strip", z.ZodTypeAny, {
|
1520
|
-
detail?: {
|
1521
|
-
type?: string;
|
1522
|
-
loc?: (string | number)[];
|
1523
|
-
msg?: string;
|
1524
|
-
}[];
|
1525
|
-
}, {
|
1526
|
-
detail?: {
|
1527
|
-
type?: string;
|
1528
|
-
loc?: (string | number)[];
|
1529
|
-
msg?: string;
|
1530
|
-
}[];
|
1531
|
-
}>]>;
|
1532
|
-
declare const updateCvmComposeResponseSchema: z.ZodObject<{
|
1533
|
-
app_id: z.ZodString;
|
1534
|
-
device_id: z.ZodString;
|
1535
|
-
compose_hash: z.ZodString;
|
1536
|
-
kms_info: z.ZodOptional<z.ZodObject<{
|
1537
|
-
chain_id: z.ZodNumber;
|
1538
|
-
kms_url: z.ZodString;
|
1539
|
-
kms_contract_address: z.ZodString;
|
1540
|
-
}, "strip", z.ZodTypeAny, {
|
1541
|
-
kms_contract_address?: string;
|
1542
|
-
chain_id?: number;
|
1543
|
-
kms_url?: string;
|
1544
|
-
}, {
|
1545
|
-
kms_contract_address?: string;
|
1546
|
-
chain_id?: number;
|
1547
|
-
kms_url?: string;
|
1548
|
-
}>>;
|
1549
|
-
}, "strip", z.ZodTypeAny, {
|
1550
|
-
app_id?: string;
|
1551
|
-
device_id?: string;
|
1552
|
-
kms_info?: {
|
1553
|
-
kms_contract_address?: string;
|
1554
|
-
chain_id?: number;
|
1555
|
-
kms_url?: string;
|
1556
|
-
};
|
1557
|
-
compose_hash?: string;
|
1558
|
-
}, {
|
1559
|
-
app_id?: string;
|
1560
|
-
device_id?: string;
|
1561
|
-
kms_info?: {
|
1562
|
-
kms_contract_address?: string;
|
1563
|
-
chain_id?: number;
|
1564
|
-
kms_url?: string;
|
1565
|
-
};
|
1566
|
-
compose_hash?: string;
|
1567
|
-
}>;
|
1568
|
-
declare const getCvmComposeFileResponseSchema: z.ZodObject<{
|
1569
|
-
allowed_envs: z.ZodArray<z.ZodString, "many">;
|
1570
|
-
bash_script: z.ZodNullable<z.ZodString>;
|
1571
|
-
docker_compose_file: z.ZodString;
|
1572
|
-
kms_enabled: z.ZodBoolean;
|
1573
|
-
local_key_provider_enabled: z.ZodBoolean;
|
1574
|
-
manifest_version: z.ZodNumber;
|
1575
|
-
name: z.ZodString;
|
1576
|
-
no_instance_id: z.ZodBoolean;
|
1577
|
-
pre_launch_script: z.ZodString;
|
1578
|
-
public_logs: z.ZodBoolean;
|
1579
|
-
public_sysinfo: z.ZodBoolean;
|
1580
|
-
runner: z.ZodString;
|
1581
|
-
salt: z.ZodNullable<z.ZodString>;
|
1582
|
-
tproxy_enabled: z.ZodBoolean;
|
1583
|
-
gateway_enabled: z.ZodBoolean;
|
1584
|
-
features: z.ZodArray<z.ZodString, "many">;
|
1585
|
-
}, "strip", z.ZodTypeAny, {
|
1586
|
-
docker_compose_file?: string;
|
1587
|
-
features?: string[];
|
1588
|
-
kms_enabled?: boolean;
|
1589
|
-
manifest_version?: number;
|
1590
|
-
name?: string;
|
1591
|
-
public_logs?: boolean;
|
1592
|
-
public_sysinfo?: boolean;
|
1593
|
-
runner?: string;
|
1594
|
-
salt?: string;
|
1595
|
-
tproxy_enabled?: boolean;
|
1596
|
-
allowed_envs?: string[];
|
1597
|
-
bash_script?: string;
|
1598
|
-
local_key_provider_enabled?: boolean;
|
1599
|
-
no_instance_id?: boolean;
|
1600
|
-
pre_launch_script?: string;
|
1601
|
-
gateway_enabled?: boolean;
|
1602
|
-
}, {
|
1603
|
-
docker_compose_file?: string;
|
1604
|
-
features?: string[];
|
1605
|
-
kms_enabled?: boolean;
|
1606
|
-
manifest_version?: number;
|
1607
|
-
name?: string;
|
1608
|
-
public_logs?: boolean;
|
1609
|
-
public_sysinfo?: boolean;
|
1610
|
-
runner?: string;
|
1611
|
-
salt?: string;
|
1612
|
-
tproxy_enabled?: boolean;
|
1613
|
-
allowed_envs?: string[];
|
1614
|
-
bash_script?: string;
|
1615
|
-
local_key_provider_enabled?: boolean;
|
1616
|
-
no_instance_id?: boolean;
|
1617
|
-
pre_launch_script?: string;
|
1618
|
-
gateway_enabled?: boolean;
|
1619
|
-
}>;
|
1620
|
-
declare const encryptedEnvItemSchema: z.ZodObject<{
|
1621
|
-
key: z.ZodString;
|
1622
|
-
value: z.ZodString;
|
1623
|
-
}, "strip", z.ZodTypeAny, {
|
1624
|
-
key?: string;
|
1625
|
-
value?: string;
|
1626
|
-
}, {
|
1627
|
-
key?: string;
|
1628
|
-
value?: string;
|
1629
|
-
}>;
|
1630
|
-
declare const imageSchema: z.ZodObject<{
|
1631
|
-
name: z.ZodString;
|
1632
|
-
description: z.ZodOptional<z.ZodString>;
|
1633
|
-
version: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
1634
|
-
is_dev: z.ZodOptional<z.ZodBoolean>;
|
1635
|
-
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1636
|
-
rootfs_hash: z.ZodOptional<z.ZodString>;
|
1637
|
-
shared_ro: z.ZodOptional<z.ZodBoolean>;
|
1638
|
-
cmdline: z.ZodOptional<z.ZodString>;
|
1639
|
-
kernel: z.ZodOptional<z.ZodString>;
|
1640
|
-
initrd: z.ZodOptional<z.ZodString>;
|
1641
|
-
hda: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1642
|
-
rootfs: z.ZodOptional<z.ZodString>;
|
1643
|
-
bios: z.ZodOptional<z.ZodString>;
|
1644
|
-
}, "strip", z.ZodTypeAny, {
|
1645
|
-
description?: string;
|
1646
|
-
name?: string;
|
1647
|
-
version?: number[];
|
1648
|
-
is_dev?: boolean;
|
1649
|
-
os_image_hash?: string;
|
1650
|
-
rootfs_hash?: string;
|
1651
|
-
shared_ro?: boolean;
|
1652
|
-
cmdline?: string;
|
1653
|
-
kernel?: string;
|
1654
|
-
initrd?: string;
|
1655
|
-
hda?: string;
|
1656
|
-
rootfs?: string;
|
1657
|
-
bios?: string;
|
1658
|
-
}, {
|
1659
|
-
description?: string;
|
1660
|
-
name?: string;
|
1661
|
-
version?: number[];
|
1662
|
-
is_dev?: boolean;
|
1663
|
-
os_image_hash?: string;
|
1664
|
-
rootfs_hash?: string;
|
1665
|
-
shared_ro?: boolean;
|
1666
|
-
cmdline?: string;
|
1667
|
-
kernel?: string;
|
1668
|
-
initrd?: string;
|
1669
|
-
hda?: string;
|
1670
|
-
rootfs?: string;
|
1671
|
-
bios?: string;
|
1672
|
-
}>;
|
1673
|
-
declare const teepodSchema: z.ZodObject<{
|
1674
|
-
teepod_id: z.ZodNullable<z.ZodNumber>;
|
1675
|
-
id: z.ZodOptional<z.ZodNumber>;
|
1676
|
-
name: z.ZodString;
|
1677
|
-
listed: z.ZodOptional<z.ZodBoolean>;
|
1678
|
-
resource_score: z.ZodOptional<z.ZodNumber>;
|
1679
|
-
remaining_vcpu: z.ZodOptional<z.ZodNumber>;
|
1680
|
-
remaining_memory: z.ZodOptional<z.ZodNumber>;
|
1681
|
-
remaining_cvm_slots: z.ZodOptional<z.ZodNumber>;
|
1682
|
-
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1683
|
-
name: z.ZodString;
|
1684
|
-
description: z.ZodOptional<z.ZodString>;
|
1685
|
-
version: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
1686
|
-
is_dev: z.ZodOptional<z.ZodBoolean>;
|
1687
|
-
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1688
|
-
rootfs_hash: z.ZodOptional<z.ZodString>;
|
1689
|
-
shared_ro: z.ZodOptional<z.ZodBoolean>;
|
1690
|
-
cmdline: z.ZodOptional<z.ZodString>;
|
1691
|
-
kernel: z.ZodOptional<z.ZodString>;
|
1692
|
-
initrd: z.ZodOptional<z.ZodString>;
|
1693
|
-
hda: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1694
|
-
rootfs: z.ZodOptional<z.ZodString>;
|
1695
|
-
bios: z.ZodOptional<z.ZodString>;
|
1696
|
-
}, "strip", z.ZodTypeAny, {
|
1697
|
-
description?: string;
|
1698
|
-
name?: string;
|
1699
|
-
version?: number[];
|
1700
|
-
is_dev?: boolean;
|
1701
|
-
os_image_hash?: string;
|
1702
|
-
rootfs_hash?: string;
|
1703
|
-
shared_ro?: boolean;
|
1704
|
-
cmdline?: string;
|
1705
|
-
kernel?: string;
|
1706
|
-
initrd?: string;
|
1707
|
-
hda?: string;
|
1708
|
-
rootfs?: string;
|
1709
|
-
bios?: string;
|
1710
|
-
}, {
|
1711
|
-
description?: string;
|
1712
|
-
name?: string;
|
1713
|
-
version?: number[];
|
1714
|
-
is_dev?: boolean;
|
1715
|
-
os_image_hash?: string;
|
1716
|
-
rootfs_hash?: string;
|
1717
|
-
shared_ro?: boolean;
|
1718
|
-
cmdline?: string;
|
1719
|
-
kernel?: string;
|
1720
|
-
initrd?: string;
|
1721
|
-
hda?: string;
|
1722
|
-
rootfs?: string;
|
1723
|
-
bios?: string;
|
1724
|
-
}>, "many">>;
|
1725
|
-
region_identifier: z.ZodOptional<z.ZodString>;
|
1726
|
-
dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
1727
|
-
support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
|
1728
|
-
fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1729
|
-
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1730
|
-
}, "strip", z.ZodTypeAny, {
|
1731
|
-
name?: string;
|
1732
|
-
id?: number;
|
1733
|
-
region_identifier?: string;
|
1734
|
-
listed?: boolean;
|
1735
|
-
teepod_id?: number;
|
1736
|
-
device_id?: string;
|
1737
|
-
resource_score?: number;
|
1738
|
-
remaining_vcpu?: number;
|
1739
|
-
remaining_memory?: number;
|
1740
|
-
remaining_cvm_slots?: number;
|
1741
|
-
images?: {
|
1742
|
-
description?: string;
|
1743
|
-
name?: string;
|
1744
|
-
version?: number[];
|
1745
|
-
is_dev?: boolean;
|
1746
|
-
os_image_hash?: string;
|
1747
|
-
rootfs_hash?: string;
|
1748
|
-
shared_ro?: boolean;
|
1749
|
-
cmdline?: string;
|
1750
|
-
kernel?: string;
|
1751
|
-
initrd?: string;
|
1752
|
-
hda?: string;
|
1753
|
-
rootfs?: string;
|
1754
|
-
bios?: string;
|
1755
|
-
}[];
|
1756
|
-
dedicated_for_team_id?: number;
|
1757
|
-
support_onchain_kms?: boolean;
|
1758
|
-
fmspc?: string;
|
1759
|
-
}, {
|
1760
|
-
name?: string;
|
1761
|
-
id?: number;
|
1762
|
-
region_identifier?: string;
|
1763
|
-
listed?: boolean;
|
1764
|
-
teepod_id?: number;
|
1765
|
-
device_id?: string;
|
1766
|
-
resource_score?: number;
|
1767
|
-
remaining_vcpu?: number;
|
1768
|
-
remaining_memory?: number;
|
1769
|
-
remaining_cvm_slots?: number;
|
1770
|
-
images?: {
|
1771
|
-
description?: string;
|
1772
|
-
name?: string;
|
1773
|
-
version?: number[];
|
1774
|
-
is_dev?: boolean;
|
1775
|
-
os_image_hash?: string;
|
1776
|
-
rootfs_hash?: string;
|
1777
|
-
shared_ro?: boolean;
|
1778
|
-
cmdline?: string;
|
1779
|
-
kernel?: string;
|
1780
|
-
initrd?: string;
|
1781
|
-
hda?: string;
|
1782
|
-
rootfs?: string;
|
1783
|
-
bios?: string;
|
1784
|
-
}[];
|
1785
|
-
dedicated_for_team_id?: number;
|
1786
|
-
support_onchain_kms?: boolean;
|
1787
|
-
fmspc?: string;
|
1788
|
-
}>;
|
1789
|
-
declare const capacitySchema: z.ZodObject<{
|
1790
|
-
max_instances: z.ZodNullable<z.ZodNumber>;
|
1791
|
-
max_vcpu: z.ZodNullable<z.ZodNumber>;
|
1792
|
-
max_memory: z.ZodNullable<z.ZodNumber>;
|
1793
|
-
max_disk: z.ZodNullable<z.ZodNumber>;
|
1794
|
-
}, "strip", z.ZodTypeAny, {
|
1795
|
-
max_instances?: number;
|
1796
|
-
max_vcpu?: number;
|
1797
|
-
max_memory?: number;
|
1798
|
-
max_disk?: number;
|
1799
|
-
}, {
|
1800
|
-
max_instances?: number;
|
1801
|
-
max_vcpu?: number;
|
1802
|
-
max_memory?: number;
|
1803
|
-
max_disk?: number;
|
1804
|
-
}>;
|
1805
|
-
declare const kmsListItemSchema: z.ZodObject<{
|
1806
|
-
id: z.ZodString;
|
1807
|
-
url: z.ZodString;
|
1808
|
-
version: z.ZodString;
|
1809
|
-
chain_id: z.ZodNumber;
|
1810
|
-
kms_contract_address: z.ZodString;
|
1811
|
-
gateway_app_id: z.ZodString;
|
1812
|
-
}, "strip", z.ZodTypeAny, {
|
1813
|
-
url?: string;
|
1814
|
-
version?: string;
|
1815
|
-
id?: string;
|
1816
|
-
kms_contract_address?: string;
|
1817
|
-
chain_id?: number;
|
1818
|
-
gateway_app_id?: string;
|
1819
|
-
}, {
|
1820
|
-
url?: string;
|
1821
|
-
version?: string;
|
1822
|
-
id?: string;
|
1823
|
-
kms_contract_address?: string;
|
1824
|
-
chain_id?: number;
|
1825
|
-
gateway_app_id?: string;
|
1826
|
-
}>;
|
1827
|
-
declare const teepodResponseSchema: z.ZodObject<{
|
1828
|
-
tier: z.ZodString;
|
1829
|
-
capacity: z.ZodObject<{
|
1830
|
-
max_instances: z.ZodNullable<z.ZodNumber>;
|
1831
|
-
max_vcpu: z.ZodNullable<z.ZodNumber>;
|
1832
|
-
max_memory: z.ZodNullable<z.ZodNumber>;
|
1833
|
-
max_disk: z.ZodNullable<z.ZodNumber>;
|
21
|
+
username: z.ZodString;
|
1834
22
|
}, "strip", z.ZodTypeAny, {
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
1838
|
-
max_disk?: number;
|
23
|
+
username?: string;
|
24
|
+
password?: string;
|
25
|
+
registry?: string;
|
1839
26
|
}, {
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1845
|
-
|
1846
|
-
|
1847
|
-
|
27
|
+
username?: string;
|
28
|
+
password?: string;
|
29
|
+
registry?: string;
|
30
|
+
}>>>;
|
31
|
+
features: z.ZodArray<z.ZodString, "many">;
|
32
|
+
kms_enabled: z.ZodBoolean;
|
33
|
+
manifest_version: z.ZodNumber;
|
34
|
+
name: z.ZodString;
|
35
|
+
public_logs: z.ZodBoolean;
|
36
|
+
public_sysinfo: z.ZodBoolean;
|
37
|
+
runner: z.ZodOptional<z.ZodString>;
|
38
|
+
salt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
39
|
+
tproxy_enabled: z.ZodBoolean;
|
40
|
+
version: z.ZodOptional<z.ZodString>;
|
41
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
42
|
+
docker_compose_file: z.ZodString;
|
43
|
+
docker_config: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
44
|
+
password: z.ZodString;
|
45
|
+
registry: z.ZodNullable<z.ZodString>;
|
46
|
+
username: z.ZodString;
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
48
|
+
username?: string;
|
49
|
+
password?: string;
|
50
|
+
registry?: string;
|
51
|
+
}, {
|
52
|
+
username?: string;
|
53
|
+
password?: string;
|
54
|
+
registry?: string;
|
55
|
+
}>>>;
|
56
|
+
features: z.ZodArray<z.ZodString, "many">;
|
57
|
+
kms_enabled: z.ZodBoolean;
|
58
|
+
manifest_version: z.ZodNumber;
|
59
|
+
name: z.ZodString;
|
60
|
+
public_logs: z.ZodBoolean;
|
61
|
+
public_sysinfo: z.ZodBoolean;
|
62
|
+
runner: z.ZodOptional<z.ZodString>;
|
63
|
+
salt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
64
|
+
tproxy_enabled: z.ZodBoolean;
|
65
|
+
version: z.ZodOptional<z.ZodString>;
|
66
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
67
|
+
docker_compose_file: z.ZodString;
|
68
|
+
docker_config: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
69
|
+
password: z.ZodString;
|
70
|
+
registry: z.ZodNullable<z.ZodString>;
|
71
|
+
username: z.ZodString;
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
73
|
+
username?: string;
|
74
|
+
password?: string;
|
75
|
+
registry?: string;
|
76
|
+
}, {
|
77
|
+
username?: string;
|
78
|
+
password?: string;
|
79
|
+
registry?: string;
|
80
|
+
}>>>;
|
81
|
+
features: z.ZodArray<z.ZodString, "many">;
|
82
|
+
kms_enabled: z.ZodBoolean;
|
83
|
+
manifest_version: z.ZodNumber;
|
84
|
+
name: z.ZodString;
|
85
|
+
public_logs: z.ZodBoolean;
|
86
|
+
public_sysinfo: z.ZodBoolean;
|
87
|
+
runner: z.ZodOptional<z.ZodString>;
|
88
|
+
salt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
89
|
+
tproxy_enabled: z.ZodBoolean;
|
90
|
+
version: z.ZodOptional<z.ZodString>;
|
91
|
+
}, z.ZodTypeAny, "passthrough">>;
|
92
|
+
declare const postCvmResponseSchema: z.ZodObject<{
|
93
|
+
id: z.ZodNumber;
|
94
|
+
name: z.ZodString;
|
95
|
+
status: z.ZodString;
|
96
|
+
teepod_id: z.ZodNullable<z.ZodNumber>;
|
97
|
+
teepod: z.ZodNullable<z.ZodObject<{
|
98
|
+
id: z.ZodNumber;
|
1848
99
|
name: z.ZodString;
|
1849
|
-
listed: z.ZodOptional<z.ZodBoolean>;
|
1850
|
-
resource_score: z.ZodOptional<z.ZodNumber>;
|
1851
|
-
remaining_vcpu: z.ZodOptional<z.ZodNumber>;
|
1852
|
-
remaining_memory: z.ZodOptional<z.ZodNumber>;
|
1853
|
-
remaining_cvm_slots: z.ZodOptional<z.ZodNumber>;
|
1854
|
-
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1855
|
-
name: z.ZodString;
|
1856
|
-
description: z.ZodOptional<z.ZodString>;
|
1857
|
-
version: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
1858
|
-
is_dev: z.ZodOptional<z.ZodBoolean>;
|
1859
|
-
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1860
|
-
rootfs_hash: z.ZodOptional<z.ZodString>;
|
1861
|
-
shared_ro: z.ZodOptional<z.ZodBoolean>;
|
1862
|
-
cmdline: z.ZodOptional<z.ZodString>;
|
1863
|
-
kernel: z.ZodOptional<z.ZodString>;
|
1864
|
-
initrd: z.ZodOptional<z.ZodString>;
|
1865
|
-
hda: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1866
|
-
rootfs: z.ZodOptional<z.ZodString>;
|
1867
|
-
bios: z.ZodOptional<z.ZodString>;
|
1868
|
-
}, "strip", z.ZodTypeAny, {
|
1869
|
-
description?: string;
|
1870
|
-
name?: string;
|
1871
|
-
version?: number[];
|
1872
|
-
is_dev?: boolean;
|
1873
|
-
os_image_hash?: string;
|
1874
|
-
rootfs_hash?: string;
|
1875
|
-
shared_ro?: boolean;
|
1876
|
-
cmdline?: string;
|
1877
|
-
kernel?: string;
|
1878
|
-
initrd?: string;
|
1879
|
-
hda?: string;
|
1880
|
-
rootfs?: string;
|
1881
|
-
bios?: string;
|
1882
|
-
}, {
|
1883
|
-
description?: string;
|
1884
|
-
name?: string;
|
1885
|
-
version?: number[];
|
1886
|
-
is_dev?: boolean;
|
1887
|
-
os_image_hash?: string;
|
1888
|
-
rootfs_hash?: string;
|
1889
|
-
shared_ro?: boolean;
|
1890
|
-
cmdline?: string;
|
1891
|
-
kernel?: string;
|
1892
|
-
initrd?: string;
|
1893
|
-
hda?: string;
|
1894
|
-
rootfs?: string;
|
1895
|
-
bios?: string;
|
1896
|
-
}>, "many">>;
|
1897
|
-
region_identifier: z.ZodOptional<z.ZodString>;
|
1898
|
-
dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
1899
|
-
support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
|
1900
|
-
fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1901
|
-
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1902
100
|
}, "strip", z.ZodTypeAny, {
|
1903
101
|
name?: string;
|
1904
102
|
id?: number;
|
1905
|
-
region_identifier?: string;
|
1906
|
-
listed?: boolean;
|
1907
|
-
teepod_id?: number;
|
1908
|
-
device_id?: string;
|
1909
|
-
resource_score?: number;
|
1910
|
-
remaining_vcpu?: number;
|
1911
|
-
remaining_memory?: number;
|
1912
|
-
remaining_cvm_slots?: number;
|
1913
|
-
images?: {
|
1914
|
-
description?: string;
|
1915
|
-
name?: string;
|
1916
|
-
version?: number[];
|
1917
|
-
is_dev?: boolean;
|
1918
|
-
os_image_hash?: string;
|
1919
|
-
rootfs_hash?: string;
|
1920
|
-
shared_ro?: boolean;
|
1921
|
-
cmdline?: string;
|
1922
|
-
kernel?: string;
|
1923
|
-
initrd?: string;
|
1924
|
-
hda?: string;
|
1925
|
-
rootfs?: string;
|
1926
|
-
bios?: string;
|
1927
|
-
}[];
|
1928
|
-
dedicated_for_team_id?: number;
|
1929
|
-
support_onchain_kms?: boolean;
|
1930
|
-
fmspc?: string;
|
1931
103
|
}, {
|
1932
104
|
name?: string;
|
1933
105
|
id?: number;
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1937
|
-
|
1938
|
-
|
1939
|
-
|
1940
|
-
|
1941
|
-
|
1942
|
-
|
1943
|
-
|
1944
|
-
|
1945
|
-
|
1946
|
-
|
1947
|
-
|
1948
|
-
|
1949
|
-
|
1950
|
-
|
1951
|
-
kernel?: string;
|
1952
|
-
initrd?: string;
|
1953
|
-
hda?: string;
|
1954
|
-
rootfs?: string;
|
1955
|
-
bios?: string;
|
1956
|
-
}[];
|
1957
|
-
dedicated_for_team_id?: number;
|
1958
|
-
support_onchain_kms?: boolean;
|
1959
|
-
fmspc?: string;
|
1960
|
-
}>, "many">;
|
1961
|
-
kms_list: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1962
|
-
id: z.ZodString;
|
1963
|
-
url: z.ZodString;
|
1964
|
-
version: z.ZodString;
|
1965
|
-
chain_id: z.ZodNumber;
|
1966
|
-
kms_contract_address: z.ZodString;
|
1967
|
-
gateway_app_id: z.ZodString;
|
1968
|
-
}, "strip", z.ZodTypeAny, {
|
1969
|
-
url?: string;
|
1970
|
-
version?: string;
|
1971
|
-
id?: string;
|
1972
|
-
kms_contract_address?: string;
|
1973
|
-
chain_id?: number;
|
1974
|
-
gateway_app_id?: string;
|
1975
|
-
}, {
|
1976
|
-
url?: string;
|
1977
|
-
version?: string;
|
1978
|
-
id?: string;
|
1979
|
-
kms_contract_address?: string;
|
1980
|
-
chain_id?: number;
|
1981
|
-
gateway_app_id?: string;
|
1982
|
-
}>, "many">>;
|
106
|
+
}>>;
|
107
|
+
user_id: z.ZodNumber;
|
108
|
+
app_id: z.ZodString;
|
109
|
+
vm_uuid: z.ZodNullable<z.ZodString>;
|
110
|
+
instance_id: z.ZodNullable<z.ZodString>;
|
111
|
+
app_url: z.ZodNullable<z.ZodString>;
|
112
|
+
base_image: z.ZodString;
|
113
|
+
vcpu: z.ZodNumber;
|
114
|
+
memory: z.ZodNumber;
|
115
|
+
disk_size: z.ZodNumber;
|
116
|
+
manifest_version: z.ZodNumber;
|
117
|
+
version: z.ZodString;
|
118
|
+
runner: z.ZodString;
|
119
|
+
docker_compose_file: z.ZodString;
|
120
|
+
features: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
121
|
+
created_at: z.ZodString;
|
122
|
+
encrypted_env_pubkey: z.ZodString;
|
1983
123
|
}, "strip", z.ZodTypeAny, {
|
1984
|
-
|
124
|
+
status?: string;
|
125
|
+
name?: string;
|
126
|
+
vcpu?: number;
|
127
|
+
memory?: number;
|
128
|
+
version?: string;
|
129
|
+
runner?: string;
|
130
|
+
docker_compose_file?: string;
|
131
|
+
features?: string[];
|
132
|
+
manifest_version?: number;
|
133
|
+
id?: number;
|
134
|
+
teepod_id?: number;
|
135
|
+
teepod?: {
|
1985
136
|
name?: string;
|
1986
137
|
id?: number;
|
1987
|
-
region_identifier?: string;
|
1988
|
-
listed?: boolean;
|
1989
|
-
teepod_id?: number;
|
1990
|
-
device_id?: string;
|
1991
|
-
resource_score?: number;
|
1992
|
-
remaining_vcpu?: number;
|
1993
|
-
remaining_memory?: number;
|
1994
|
-
remaining_cvm_slots?: number;
|
1995
|
-
images?: {
|
1996
|
-
description?: string;
|
1997
|
-
name?: string;
|
1998
|
-
version?: number[];
|
1999
|
-
is_dev?: boolean;
|
2000
|
-
os_image_hash?: string;
|
2001
|
-
rootfs_hash?: string;
|
2002
|
-
shared_ro?: boolean;
|
2003
|
-
cmdline?: string;
|
2004
|
-
kernel?: string;
|
2005
|
-
initrd?: string;
|
2006
|
-
hda?: string;
|
2007
|
-
rootfs?: string;
|
2008
|
-
bios?: string;
|
2009
|
-
}[];
|
2010
|
-
dedicated_for_team_id?: number;
|
2011
|
-
support_onchain_kms?: boolean;
|
2012
|
-
fmspc?: string;
|
2013
|
-
}[];
|
2014
|
-
tier?: string;
|
2015
|
-
capacity?: {
|
2016
|
-
max_instances?: number;
|
2017
|
-
max_vcpu?: number;
|
2018
|
-
max_memory?: number;
|
2019
|
-
max_disk?: number;
|
2020
138
|
};
|
2021
|
-
|
2022
|
-
|
2023
|
-
|
2024
|
-
|
2025
|
-
|
2026
|
-
|
2027
|
-
|
2028
|
-
|
139
|
+
user_id?: number;
|
140
|
+
app_id?: string;
|
141
|
+
vm_uuid?: string;
|
142
|
+
instance_id?: string;
|
143
|
+
app_url?: string;
|
144
|
+
base_image?: string;
|
145
|
+
disk_size?: number;
|
146
|
+
created_at?: string;
|
147
|
+
encrypted_env_pubkey?: string;
|
2029
148
|
}, {
|
2030
|
-
|
149
|
+
status?: string;
|
150
|
+
name?: string;
|
151
|
+
vcpu?: number;
|
152
|
+
memory?: number;
|
153
|
+
version?: string;
|
154
|
+
runner?: string;
|
155
|
+
docker_compose_file?: string;
|
156
|
+
features?: string[];
|
157
|
+
manifest_version?: number;
|
158
|
+
id?: number;
|
159
|
+
teepod_id?: number;
|
160
|
+
teepod?: {
|
2031
161
|
name?: string;
|
2032
162
|
id?: number;
|
2033
|
-
region_identifier?: string;
|
2034
|
-
listed?: boolean;
|
2035
|
-
teepod_id?: number;
|
2036
|
-
device_id?: string;
|
2037
|
-
resource_score?: number;
|
2038
|
-
remaining_vcpu?: number;
|
2039
|
-
remaining_memory?: number;
|
2040
|
-
remaining_cvm_slots?: number;
|
2041
|
-
images?: {
|
2042
|
-
description?: string;
|
2043
|
-
name?: string;
|
2044
|
-
version?: number[];
|
2045
|
-
is_dev?: boolean;
|
2046
|
-
os_image_hash?: string;
|
2047
|
-
rootfs_hash?: string;
|
2048
|
-
shared_ro?: boolean;
|
2049
|
-
cmdline?: string;
|
2050
|
-
kernel?: string;
|
2051
|
-
initrd?: string;
|
2052
|
-
hda?: string;
|
2053
|
-
rootfs?: string;
|
2054
|
-
bios?: string;
|
2055
|
-
}[];
|
2056
|
-
dedicated_for_team_id?: number;
|
2057
|
-
support_onchain_kms?: boolean;
|
2058
|
-
fmspc?: string;
|
2059
|
-
}[];
|
2060
|
-
tier?: string;
|
2061
|
-
capacity?: {
|
2062
|
-
max_instances?: number;
|
2063
|
-
max_vcpu?: number;
|
2064
|
-
max_memory?: number;
|
2065
|
-
max_disk?: number;
|
2066
163
|
};
|
2067
|
-
|
2068
|
-
|
2069
|
-
|
2070
|
-
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
2074
|
-
|
164
|
+
user_id?: number;
|
165
|
+
app_id?: string;
|
166
|
+
vm_uuid?: string;
|
167
|
+
instance_id?: string;
|
168
|
+
app_url?: string;
|
169
|
+
base_image?: string;
|
170
|
+
disk_size?: number;
|
171
|
+
created_at?: string;
|
172
|
+
encrypted_env_pubkey?: string;
|
173
|
+
}>;
|
174
|
+
declare const encryptedEnvItemSchema: z.ZodObject<{
|
175
|
+
key: z.ZodString;
|
176
|
+
value: z.ZodString;
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
178
|
+
value?: string;
|
179
|
+
key?: string;
|
180
|
+
}, {
|
181
|
+
value?: string;
|
182
|
+
key?: string;
|
2075
183
|
}>;
|
2076
184
|
declare const getCvmNetworkResponseSchema: z.ZodObject<{
|
2077
185
|
is_online: z.ZodBoolean;
|
@@ -2110,64 +218,12 @@ declare const getCvmNetworkResponseSchema: z.ZodObject<{
|
|
2110
218
|
instance?: string;
|
2111
219
|
}[];
|
2112
220
|
}>;
|
2113
|
-
declare const kmsPubkeyResponseSchema: z.ZodObject<{
|
2114
|
-
public_key: z.ZodString;
|
2115
|
-
signature: z.ZodString;
|
2116
|
-
}, "strip", z.ZodTypeAny, {
|
2117
|
-
public_key?: string;
|
2118
|
-
signature?: string;
|
2119
|
-
}, {
|
2120
|
-
public_key?: string;
|
2121
|
-
signature?: string;
|
2122
|
-
}>;
|
2123
|
-
type KmsPubkeyResponse = z.infer<typeof kmsPubkeyResponseSchema>;
|
2124
|
-
type KmsListItem = z.infer<typeof kmsListItemSchema>;
|
2125
221
|
type DockerConfig = z.infer<typeof dockerConfigSchema>;
|
2126
222
|
type ComposeFile = z.infer<typeof composeFileSchema>;
|
2127
|
-
type Configuration = z.infer<typeof configurationSchema>;
|
2128
|
-
type Hosted = z.infer<typeof hostedSchema>;
|
2129
|
-
type ManagedUser = z.infer<typeof managedUserSchema>;
|
2130
|
-
type Node = z.infer<typeof nodeSchema>;
|
2131
|
-
type CvmInstance = z.infer<typeof cvmInstanceSchema>;
|
2132
223
|
type PostCvmResponse = z.infer<typeof postCvmResponseSchema>;
|
2133
|
-
type GetPubkeyFromCvmResponse = z.infer<typeof getPubkeyFromCvmResponseSchema>;
|
2134
|
-
type GetCvmByAppIdResponse = z.infer<typeof getCvmByAppIdResponseSchema>;
|
2135
|
-
type GetUserInfoResponse = z.infer<typeof getUserInfoResponseSchema>;
|
2136
|
-
type GetCvmsByUserIdResponse = z.infer<typeof getCvmsByUserIdResponseSchema>;
|
2137
|
-
type UpgradeCvmResponse = z.infer<typeof upgradeCvmResponseSchema>;
|
2138
|
-
type UpdateCvmComposeResponse = z.infer<typeof updateCvmComposeResponseSchema>;
|
2139
|
-
type UpdatePatchCvmComposeResponse = z.infer<typeof updatePatchCvmComposeResponseSchema>;
|
2140
|
-
type GetCvmComposeFileResponse = z.infer<typeof getCvmComposeFileResponseSchema>;
|
2141
224
|
type EncryptedEnvItem = z.infer<typeof encryptedEnvItemSchema>;
|
2142
|
-
type TEEPod = z.infer<typeof teepodSchema>;
|
2143
|
-
type Image = z.infer<typeof imageSchema>;
|
2144
|
-
type Capacity = z.infer<typeof capacitySchema>;
|
2145
|
-
type TeepodResponse = z.infer<typeof teepodResponseSchema>;
|
2146
225
|
type CvmAttestationResponse = z.infer<typeof cvmAttestationResponseSchema>;
|
2147
226
|
type GetCvmNetworkResponse = z.infer<typeof getCvmNetworkResponseSchema>;
|
2148
|
-
declare const provisionCvmResponseSchema: z.ZodObject<{
|
2149
|
-
app_id: z.ZodNullable<z.ZodString>;
|
2150
|
-
app_env_encrypt_pubkey: z.ZodString;
|
2151
|
-
compose_hash: z.ZodString;
|
2152
|
-
fmspc: z.ZodString;
|
2153
|
-
device_id: z.ZodString;
|
2154
|
-
os_image_hash: z.ZodString;
|
2155
|
-
}, "strip", z.ZodTypeAny, {
|
2156
|
-
app_id?: string;
|
2157
|
-
device_id?: string;
|
2158
|
-
app_env_encrypt_pubkey?: string;
|
2159
|
-
compose_hash?: string;
|
2160
|
-
os_image_hash?: string;
|
2161
|
-
fmspc?: string;
|
2162
|
-
}, {
|
2163
|
-
app_id?: string;
|
2164
|
-
device_id?: string;
|
2165
|
-
app_env_encrypt_pubkey?: string;
|
2166
|
-
compose_hash?: string;
|
2167
|
-
os_image_hash?: string;
|
2168
|
-
fmspc?: string;
|
2169
|
-
}>;
|
2170
|
-
type ProvisionCvmResponse = z.infer<typeof provisionCvmResponseSchema>;
|
2171
227
|
/**
|
2172
228
|
* Certificate naming information
|
2173
229
|
*/
|
@@ -2217,123 +273,6 @@ interface TCBInfo {
|
|
2217
273
|
rtmr3: string;
|
2218
274
|
event_log: TCBEventLogEntry[];
|
2219
275
|
}
|
2220
|
-
declare const cvmComposeConfigSchema: z.ZodObject<{
|
2221
|
-
compose_file: z.ZodObject<{
|
2222
|
-
bash_script: z.ZodNullable<z.ZodString>;
|
2223
|
-
docker_compose_file: z.ZodString;
|
2224
|
-
docker_config: z.ZodObject<{
|
2225
|
-
password: z.ZodString;
|
2226
|
-
registry: z.ZodNullable<z.ZodString>;
|
2227
|
-
username: z.ZodString;
|
2228
|
-
}, "strip", z.ZodTypeAny, {
|
2229
|
-
password?: string;
|
2230
|
-
registry?: string;
|
2231
|
-
username?: string;
|
2232
|
-
}, {
|
2233
|
-
password?: string;
|
2234
|
-
registry?: string;
|
2235
|
-
username?: string;
|
2236
|
-
}>;
|
2237
|
-
features: z.ZodArray<z.ZodString, "many">;
|
2238
|
-
kms_enabled: z.ZodBoolean;
|
2239
|
-
manifest_version: z.ZodNumber;
|
2240
|
-
name: z.ZodString;
|
2241
|
-
pre_launch_script: z.ZodString;
|
2242
|
-
public_logs: z.ZodBoolean;
|
2243
|
-
public_sysinfo: z.ZodBoolean;
|
2244
|
-
runner: z.ZodString;
|
2245
|
-
salt: z.ZodString;
|
2246
|
-
tproxy_enabled: z.ZodBoolean;
|
2247
|
-
version: z.ZodString;
|
2248
|
-
}, "strip", z.ZodTypeAny, {
|
2249
|
-
docker_compose_file?: string;
|
2250
|
-
docker_config?: {
|
2251
|
-
password?: string;
|
2252
|
-
registry?: string;
|
2253
|
-
username?: string;
|
2254
|
-
};
|
2255
|
-
features?: string[];
|
2256
|
-
kms_enabled?: boolean;
|
2257
|
-
manifest_version?: number;
|
2258
|
-
name?: string;
|
2259
|
-
public_logs?: boolean;
|
2260
|
-
public_sysinfo?: boolean;
|
2261
|
-
runner?: string;
|
2262
|
-
salt?: string;
|
2263
|
-
tproxy_enabled?: boolean;
|
2264
|
-
version?: string;
|
2265
|
-
bash_script?: string;
|
2266
|
-
pre_launch_script?: string;
|
2267
|
-
}, {
|
2268
|
-
docker_compose_file?: string;
|
2269
|
-
docker_config?: {
|
2270
|
-
password?: string;
|
2271
|
-
registry?: string;
|
2272
|
-
username?: string;
|
2273
|
-
};
|
2274
|
-
features?: string[];
|
2275
|
-
kms_enabled?: boolean;
|
2276
|
-
manifest_version?: number;
|
2277
|
-
name?: string;
|
2278
|
-
public_logs?: boolean;
|
2279
|
-
public_sysinfo?: boolean;
|
2280
|
-
runner?: string;
|
2281
|
-
salt?: string;
|
2282
|
-
tproxy_enabled?: boolean;
|
2283
|
-
version?: string;
|
2284
|
-
bash_script?: string;
|
2285
|
-
pre_launch_script?: string;
|
2286
|
-
}>;
|
2287
|
-
env_pubkey: z.ZodString;
|
2288
|
-
salt: z.ZodString;
|
2289
|
-
}, "strip", z.ZodTypeAny, {
|
2290
|
-
salt?: string;
|
2291
|
-
compose_file?: {
|
2292
|
-
docker_compose_file?: string;
|
2293
|
-
docker_config?: {
|
2294
|
-
password?: string;
|
2295
|
-
registry?: string;
|
2296
|
-
username?: string;
|
2297
|
-
};
|
2298
|
-
features?: string[];
|
2299
|
-
kms_enabled?: boolean;
|
2300
|
-
manifest_version?: number;
|
2301
|
-
name?: string;
|
2302
|
-
public_logs?: boolean;
|
2303
|
-
public_sysinfo?: boolean;
|
2304
|
-
runner?: string;
|
2305
|
-
salt?: string;
|
2306
|
-
tproxy_enabled?: boolean;
|
2307
|
-
version?: string;
|
2308
|
-
bash_script?: string;
|
2309
|
-
pre_launch_script?: string;
|
2310
|
-
};
|
2311
|
-
env_pubkey?: string;
|
2312
|
-
}, {
|
2313
|
-
salt?: string;
|
2314
|
-
compose_file?: {
|
2315
|
-
docker_compose_file?: string;
|
2316
|
-
docker_config?: {
|
2317
|
-
password?: string;
|
2318
|
-
registry?: string;
|
2319
|
-
username?: string;
|
2320
|
-
};
|
2321
|
-
features?: string[];
|
2322
|
-
kms_enabled?: boolean;
|
2323
|
-
manifest_version?: number;
|
2324
|
-
name?: string;
|
2325
|
-
public_logs?: boolean;
|
2326
|
-
public_sysinfo?: boolean;
|
2327
|
-
runner?: string;
|
2328
|
-
salt?: string;
|
2329
|
-
tproxy_enabled?: boolean;
|
2330
|
-
version?: string;
|
2331
|
-
bash_script?: string;
|
2332
|
-
pre_launch_script?: string;
|
2333
|
-
};
|
2334
|
-
env_pubkey?: string;
|
2335
|
-
}>;
|
2336
|
-
type CvmComposeConfig = z.infer<typeof cvmComposeConfigSchema>;
|
2337
276
|
declare const replicateCvmResponseSchema: z.ZodObject<{
|
2338
277
|
id: z.ZodNumber;
|
2339
278
|
name: z.ZodString;
|
@@ -2366,53 +305,53 @@ declare const replicateCvmResponseSchema: z.ZodObject<{
|
|
2366
305
|
created_at: z.ZodString;
|
2367
306
|
encrypted_env_pubkey: z.ZodString;
|
2368
307
|
}, "strip", z.ZodTypeAny, {
|
2369
|
-
teepod?: {
|
2370
|
-
name?: string;
|
2371
|
-
id?: number;
|
2372
|
-
};
|
2373
308
|
status?: string;
|
2374
|
-
docker_compose_file?: string;
|
2375
|
-
features?: string[];
|
2376
|
-
manifest_version?: number;
|
2377
309
|
name?: string;
|
2378
|
-
runner?: string;
|
2379
|
-
version?: string;
|
2380
310
|
vcpu?: number;
|
2381
311
|
memory?: number;
|
2382
|
-
|
312
|
+
version?: string;
|
313
|
+
runner?: string;
|
314
|
+
docker_compose_file?: string;
|
315
|
+
features?: string[];
|
316
|
+
manifest_version?: number;
|
2383
317
|
id?: number;
|
2384
|
-
app_url?: string;
|
2385
|
-
app_id?: string;
|
2386
|
-
instance_id?: string;
|
2387
318
|
teepod_id?: number;
|
319
|
+
teepod?: {
|
320
|
+
name?: string;
|
321
|
+
id?: number;
|
322
|
+
};
|
2388
323
|
user_id?: number;
|
324
|
+
app_id?: string;
|
2389
325
|
vm_uuid?: string;
|
326
|
+
instance_id?: string;
|
327
|
+
app_url?: string;
|
2390
328
|
base_image?: string;
|
329
|
+
disk_size?: number;
|
2391
330
|
created_at?: string;
|
2392
331
|
encrypted_env_pubkey?: string;
|
2393
332
|
}, {
|
2394
|
-
teepod?: {
|
2395
|
-
name?: string;
|
2396
|
-
id?: number;
|
2397
|
-
};
|
2398
333
|
status?: string;
|
2399
|
-
docker_compose_file?: string;
|
2400
|
-
features?: string[];
|
2401
|
-
manifest_version?: number;
|
2402
334
|
name?: string;
|
2403
|
-
runner?: string;
|
2404
|
-
version?: string;
|
2405
335
|
vcpu?: number;
|
2406
336
|
memory?: number;
|
2407
|
-
|
337
|
+
version?: string;
|
338
|
+
runner?: string;
|
339
|
+
docker_compose_file?: string;
|
340
|
+
features?: string[];
|
341
|
+
manifest_version?: number;
|
2408
342
|
id?: number;
|
2409
|
-
app_url?: string;
|
2410
|
-
app_id?: string;
|
2411
|
-
instance_id?: string;
|
2412
343
|
teepod_id?: number;
|
344
|
+
teepod?: {
|
345
|
+
name?: string;
|
346
|
+
id?: number;
|
347
|
+
};
|
2413
348
|
user_id?: number;
|
349
|
+
app_id?: string;
|
2414
350
|
vm_uuid?: string;
|
351
|
+
instance_id?: string;
|
352
|
+
app_url?: string;
|
2415
353
|
base_image?: string;
|
354
|
+
disk_size?: number;
|
2416
355
|
created_at?: string;
|
2417
356
|
encrypted_env_pubkey?: string;
|
2418
357
|
}>;
|
@@ -2538,8 +477,8 @@ declare const cvmAttestationResponseSchema: z.ZodObject<{
|
|
2538
477
|
event_payload?: string;
|
2539
478
|
}>, "many">;
|
2540
479
|
}, "strip", z.ZodTypeAny, {
|
2541
|
-
rootfs_hash?: string;
|
2542
480
|
mrtd?: string;
|
481
|
+
rootfs_hash?: string;
|
2543
482
|
rtmr0?: string;
|
2544
483
|
rtmr1?: string;
|
2545
484
|
rtmr2?: string;
|
@@ -2552,8 +491,8 @@ declare const cvmAttestationResponseSchema: z.ZodObject<{
|
|
2552
491
|
event_payload?: string;
|
2553
492
|
}[];
|
2554
493
|
}, {
|
2555
|
-
rootfs_hash?: string;
|
2556
494
|
mrtd?: string;
|
495
|
+
rootfs_hash?: string;
|
2557
496
|
rtmr0?: string;
|
2558
497
|
rtmr1?: string;
|
2559
498
|
rtmr2?: string;
|
@@ -2568,7 +507,6 @@ declare const cvmAttestationResponseSchema: z.ZodObject<{
|
|
2568
507
|
}>>;
|
2569
508
|
compose_file: z.ZodNullable<z.ZodString>;
|
2570
509
|
}, "strip", z.ZodTypeAny, {
|
2571
|
-
compose_file?: string;
|
2572
510
|
is_online?: boolean;
|
2573
511
|
is_public?: boolean;
|
2574
512
|
error?: string;
|
@@ -2597,8 +535,8 @@ declare const cvmAttestationResponseSchema: z.ZodObject<{
|
|
2597
535
|
quote?: string;
|
2598
536
|
}[];
|
2599
537
|
tcb_info?: {
|
2600
|
-
rootfs_hash?: string;
|
2601
538
|
mrtd?: string;
|
539
|
+
rootfs_hash?: string;
|
2602
540
|
rtmr0?: string;
|
2603
541
|
rtmr1?: string;
|
2604
542
|
rtmr2?: string;
|
@@ -2611,8 +549,8 @@ declare const cvmAttestationResponseSchema: z.ZodObject<{
|
|
2611
549
|
event_payload?: string;
|
2612
550
|
}[];
|
2613
551
|
};
|
2614
|
-
}, {
|
2615
552
|
compose_file?: string;
|
553
|
+
}, {
|
2616
554
|
is_online?: boolean;
|
2617
555
|
is_public?: boolean;
|
2618
556
|
error?: string;
|
@@ -2641,8 +579,8 @@ declare const cvmAttestationResponseSchema: z.ZodObject<{
|
|
2641
579
|
quote?: string;
|
2642
580
|
}[];
|
2643
581
|
tcb_info?: {
|
2644
|
-
rootfs_hash?: string;
|
2645
582
|
mrtd?: string;
|
583
|
+
rootfs_hash?: string;
|
2646
584
|
rtmr0?: string;
|
2647
585
|
rtmr1?: string;
|
2648
586
|
rtmr2?: string;
|
@@ -2655,149 +593,265 @@ declare const cvmAttestationResponseSchema: z.ZodObject<{
|
|
2655
593
|
event_payload?: string;
|
2656
594
|
}[];
|
2657
595
|
};
|
596
|
+
compose_file?: string;
|
2658
597
|
}>;
|
2659
|
-
|
2660
|
-
|
2661
|
-
|
2662
|
-
|
2663
|
-
|
2664
|
-
|
2665
|
-
|
2666
|
-
|
2667
|
-
|
2668
|
-
|
2669
|
-
|
2670
|
-
|
2671
|
-
|
2672
|
-
|
2673
|
-
|
2674
|
-
|
598
|
+
declare const imageSchema: z.ZodObject<{
|
599
|
+
name: z.ZodString;
|
600
|
+
description: z.ZodOptional<z.ZodString>;
|
601
|
+
version: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
602
|
+
is_dev: z.ZodOptional<z.ZodBoolean>;
|
603
|
+
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
604
|
+
rootfs_hash: z.ZodOptional<z.ZodString>;
|
605
|
+
shared_ro: z.ZodOptional<z.ZodBoolean>;
|
606
|
+
cmdline: z.ZodOptional<z.ZodString>;
|
607
|
+
kernel: z.ZodOptional<z.ZodString>;
|
608
|
+
initrd: z.ZodOptional<z.ZodString>;
|
609
|
+
hda: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
610
|
+
rootfs: z.ZodOptional<z.ZodString>;
|
611
|
+
bios: z.ZodOptional<z.ZodString>;
|
612
|
+
}, "strip", z.ZodTypeAny, {
|
613
|
+
name?: string;
|
614
|
+
description?: string;
|
615
|
+
version?: number[];
|
616
|
+
rootfs_hash?: string;
|
617
|
+
is_dev?: boolean;
|
618
|
+
os_image_hash?: string;
|
619
|
+
shared_ro?: boolean;
|
620
|
+
cmdline?: string;
|
621
|
+
kernel?: string;
|
622
|
+
initrd?: string;
|
623
|
+
hda?: string;
|
624
|
+
rootfs?: string;
|
625
|
+
bios?: string;
|
626
|
+
}, {
|
627
|
+
name?: string;
|
628
|
+
description?: string;
|
629
|
+
version?: number[];
|
630
|
+
rootfs_hash?: string;
|
631
|
+
is_dev?: boolean;
|
632
|
+
os_image_hash?: string;
|
633
|
+
shared_ro?: boolean;
|
634
|
+
cmdline?: string;
|
635
|
+
kernel?: string;
|
636
|
+
initrd?: string;
|
637
|
+
hda?: string;
|
638
|
+
rootfs?: string;
|
639
|
+
bios?: string;
|
640
|
+
}>;
|
641
|
+
declare const teepodSchema: z.ZodObject<{
|
642
|
+
teepod_id: z.ZodNullable<z.ZodNumber>;
|
643
|
+
id: z.ZodOptional<z.ZodNumber>;
|
644
|
+
name: z.ZodString;
|
645
|
+
listed: z.ZodOptional<z.ZodBoolean>;
|
646
|
+
resource_score: z.ZodOptional<z.ZodNumber>;
|
647
|
+
remaining_vcpu: z.ZodOptional<z.ZodNumber>;
|
648
|
+
remaining_memory: z.ZodOptional<z.ZodNumber>;
|
649
|
+
remaining_cvm_slots: z.ZodOptional<z.ZodNumber>;
|
650
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
651
|
+
name: z.ZodString;
|
652
|
+
description: z.ZodOptional<z.ZodString>;
|
653
|
+
version: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
654
|
+
is_dev: z.ZodOptional<z.ZodBoolean>;
|
655
|
+
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
656
|
+
rootfs_hash: z.ZodOptional<z.ZodString>;
|
657
|
+
shared_ro: z.ZodOptional<z.ZodBoolean>;
|
658
|
+
cmdline: z.ZodOptional<z.ZodString>;
|
659
|
+
kernel: z.ZodOptional<z.ZodString>;
|
660
|
+
initrd: z.ZodOptional<z.ZodString>;
|
661
|
+
hda: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
662
|
+
rootfs: z.ZodOptional<z.ZodString>;
|
663
|
+
bios: z.ZodOptional<z.ZodString>;
|
664
|
+
}, "strip", z.ZodTypeAny, {
|
665
|
+
name?: string;
|
666
|
+
description?: string;
|
667
|
+
version?: number[];
|
668
|
+
rootfs_hash?: string;
|
669
|
+
is_dev?: boolean;
|
670
|
+
os_image_hash?: string;
|
671
|
+
shared_ro?: boolean;
|
672
|
+
cmdline?: string;
|
673
|
+
kernel?: string;
|
674
|
+
initrd?: string;
|
675
|
+
hda?: string;
|
676
|
+
rootfs?: string;
|
677
|
+
bios?: string;
|
678
|
+
}, {
|
679
|
+
name?: string;
|
680
|
+
description?: string;
|
681
|
+
version?: number[];
|
682
|
+
rootfs_hash?: string;
|
683
|
+
is_dev?: boolean;
|
684
|
+
os_image_hash?: string;
|
685
|
+
shared_ro?: boolean;
|
686
|
+
cmdline?: string;
|
687
|
+
kernel?: string;
|
688
|
+
initrd?: string;
|
689
|
+
hda?: string;
|
690
|
+
rootfs?: string;
|
691
|
+
bios?: string;
|
692
|
+
}>, "many">>;
|
693
|
+
region_identifier: z.ZodOptional<z.ZodString>;
|
694
|
+
dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
695
|
+
support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
|
696
|
+
fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
697
|
+
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
698
|
+
}, "strip", z.ZodTypeAny, {
|
699
|
+
name?: string;
|
700
|
+
id?: number;
|
701
|
+
teepod_id?: number;
|
702
|
+
listed?: boolean;
|
703
|
+
resource_score?: number;
|
704
|
+
remaining_vcpu?: number;
|
705
|
+
remaining_memory?: number;
|
706
|
+
remaining_cvm_slots?: number;
|
707
|
+
images?: {
|
708
|
+
name?: string;
|
709
|
+
description?: string;
|
710
|
+
version?: number[];
|
711
|
+
rootfs_hash?: string;
|
712
|
+
is_dev?: boolean;
|
713
|
+
os_image_hash?: string;
|
714
|
+
shared_ro?: boolean;
|
715
|
+
cmdline?: string;
|
716
|
+
kernel?: string;
|
717
|
+
initrd?: string;
|
718
|
+
hda?: string;
|
719
|
+
rootfs?: string;
|
720
|
+
bios?: string;
|
721
|
+
}[];
|
722
|
+
region_identifier?: string;
|
723
|
+
dedicated_for_team_id?: number;
|
724
|
+
support_onchain_kms?: boolean;
|
725
|
+
fmspc?: string;
|
726
|
+
device_id?: string;
|
727
|
+
}, {
|
728
|
+
name?: string;
|
729
|
+
id?: number;
|
730
|
+
teepod_id?: number;
|
731
|
+
listed?: boolean;
|
732
|
+
resource_score?: number;
|
733
|
+
remaining_vcpu?: number;
|
734
|
+
remaining_memory?: number;
|
735
|
+
remaining_cvm_slots?: number;
|
736
|
+
images?: {
|
737
|
+
name?: string;
|
738
|
+
description?: string;
|
739
|
+
version?: number[];
|
740
|
+
rootfs_hash?: string;
|
741
|
+
is_dev?: boolean;
|
742
|
+
os_image_hash?: string;
|
743
|
+
shared_ro?: boolean;
|
744
|
+
cmdline?: string;
|
745
|
+
kernel?: string;
|
746
|
+
initrd?: string;
|
747
|
+
hda?: string;
|
748
|
+
rootfs?: string;
|
749
|
+
bios?: string;
|
750
|
+
}[];
|
751
|
+
region_identifier?: string;
|
752
|
+
dedicated_for_team_id?: number;
|
753
|
+
support_onchain_kms?: boolean;
|
754
|
+
fmspc?: string;
|
755
|
+
device_id?: string;
|
756
|
+
}>;
|
757
|
+
type TEEPod = z.infer<typeof teepodSchema>;
|
758
|
+
type Image = z.infer<typeof imageSchema>;
|
759
|
+
interface TeepodResponse {
|
760
|
+
nodes: TEEPod[];
|
761
|
+
kms_list?: KmsListItem[];
|
2675
762
|
}
|
2676
|
-
|
2677
|
-
|
2678
|
-
|
2679
|
-
|
2680
|
-
|
2681
|
-
|
2682
|
-
|
2683
|
-
|
2684
|
-
* VM configuration type
|
2685
|
-
*/
|
2686
|
-
interface VMConfig {
|
2687
|
-
[key: string]: unknown;
|
763
|
+
interface KmsListItem {
|
764
|
+
id?: string;
|
765
|
+
slug?: string | null;
|
766
|
+
url: string;
|
767
|
+
version: string;
|
768
|
+
chain_id?: number | null;
|
769
|
+
kms_contract_address?: string | null;
|
770
|
+
gateway_app_id?: string | null;
|
2688
771
|
}
|
2689
|
-
|
2690
|
-
|
2691
|
-
|
2692
|
-
|
772
|
+
interface PubkeyResponse {
|
773
|
+
app_env_encrypt_pubkey: string;
|
774
|
+
app_id_salt: string;
|
775
|
+
}
|
776
|
+
interface CvmInfoResponse {
|
777
|
+
id: number;
|
778
|
+
name: string;
|
779
|
+
status: string;
|
2693
780
|
app_id: string;
|
781
|
+
vcpu: number;
|
782
|
+
memory: number;
|
783
|
+
disk_size: number;
|
784
|
+
base_image: string;
|
785
|
+
encrypted_env_pubkey: string;
|
786
|
+
env_pubkey?: string;
|
787
|
+
}
|
788
|
+
interface UpgradeResponse {
|
789
|
+
detail?: string;
|
790
|
+
[key: string]: unknown;
|
791
|
+
}
|
792
|
+
interface UserInfoResponse {
|
793
|
+
username: string;
|
794
|
+
[key: string]: unknown;
|
795
|
+
}
|
796
|
+
interface CvmListResponse {
|
797
|
+
items: unknown[];
|
798
|
+
[key: string]: unknown;
|
799
|
+
}
|
800
|
+
interface AvailableNodesResponse {
|
801
|
+
nodes: TEEPod[];
|
802
|
+
kms_list?: KmsListItem[];
|
803
|
+
}
|
804
|
+
interface CvmComposeConfigResponse {
|
805
|
+
env_pubkey: string;
|
2694
806
|
[key: string]: unknown;
|
2695
807
|
}
|
808
|
+
|
2696
809
|
/**
|
2697
810
|
* Check CVM exists for the current user and appId
|
2698
|
-
* @param appId App ID
|
2699
|
-
* @returns CVM appId string or
|
811
|
+
* @param appId App ID (with or without app_ prefix)
|
812
|
+
* @returns CVM appId string (without app_ prefix) or throws if not found
|
2700
813
|
*/
|
2701
814
|
declare function checkCvmExists(appId: string): Promise<string>;
|
2702
815
|
/**
|
2703
|
-
* Get
|
2704
|
-
* @param appId App ID
|
2705
|
-
* @returns CVM details
|
2706
|
-
*/
|
2707
|
-
declare function getCvmByAppId(appId: string): Promise<GetCvmByAppIdResponse>;
|
2708
|
-
/**
|
2709
|
-
* Get a CVM by CVM ID
|
2710
|
-
* @param cvmId CVM ID
|
816
|
+
* Get CVM by App ID using SDK
|
817
|
+
* @param appId App ID (with or without app_ prefix)
|
2711
818
|
* @returns CVM details
|
2712
819
|
*/
|
2713
|
-
declare function
|
820
|
+
declare function getCvmByAppId(appId: string): Promise<CvmInfoResponse>;
|
2714
821
|
/**
|
2715
|
-
* Get compose
|
2716
|
-
* @param cvmId CVM ID
|
2717
|
-
* @returns Compose file
|
2718
|
-
*/
|
2719
|
-
declare function getCvmComposeFile(cvmId: string): Promise<GetCvmComposeFileResponse>;
|
2720
|
-
/**
|
2721
|
-
* Get public key from CVM
|
2722
|
-
* @param vmConfig VM configuration
|
2723
|
-
* @returns Public key
|
822
|
+
* Get CVM compose configuration
|
2724
823
|
*/
|
2725
|
-
declare function
|
824
|
+
declare function getCvmComposeConfig(cvmId: string): Promise<CvmComposeConfigResponse>;
|
2726
825
|
/**
|
2727
|
-
* Get network information
|
2728
|
-
* @param appId App ID
|
826
|
+
* Get CVM network information
|
827
|
+
* @param appId App ID (with or without app_ prefix)
|
2729
828
|
* @returns Network information
|
2730
829
|
*/
|
2731
830
|
declare function getCvmNetwork(appId: string): Promise<GetCvmNetworkResponse>;
|
2732
|
-
/**
|
2733
|
-
* Provision a new CVM for on-chain KMS.
|
2734
|
-
* @param vmConfig VM configuration
|
2735
|
-
* @returns Provisioning details (kms_id, compose_hash)
|
2736
|
-
*/
|
2737
|
-
declare function provisionCvm(vmConfig: VMConfig): Promise<ProvisionCvmResponse>;
|
2738
|
-
/**
|
2739
|
-
* Create a new CVM for on-chain KMS.
|
2740
|
-
* @param vmConfig VM configuration
|
2741
|
-
* @returns Created CVM details
|
2742
|
-
*/
|
2743
|
-
declare function createCvmOnChainKms(vmConfig: VMConfig): Promise<PostCvmResponse>;
|
2744
|
-
/**
|
2745
|
-
* Create a new CVM
|
2746
|
-
* @param vmConfig VM configuration
|
2747
|
-
* @returns Created CVM details
|
2748
|
-
*/
|
2749
|
-
declare function createCvm(vmConfig: VMConfig): Promise<PostCvmResponse>;
|
2750
831
|
/**
|
2751
832
|
* Start a CVM
|
2752
|
-
* @param appId App ID
|
833
|
+
* @param appId App ID (with or without app_ prefix)
|
2753
834
|
* @returns Success status
|
2754
835
|
*/
|
2755
836
|
declare function startCvm(appId: string): Promise<PostCvmResponse>;
|
2756
837
|
/**
|
2757
838
|
* Stop a CVM
|
2758
|
-
* @param appId App ID
|
839
|
+
* @param appId App ID (with or without app_ prefix)
|
2759
840
|
* @returns Success status
|
2760
841
|
*/
|
2761
842
|
declare function stopCvm(appId: string): Promise<PostCvmResponse>;
|
2762
843
|
/**
|
2763
844
|
* Restart a CVM
|
2764
|
-
* @param appId App ID
|
845
|
+
* @param appId App ID (with or without app_ prefix)
|
2765
846
|
* @returns Success status
|
2766
847
|
*/
|
2767
848
|
declare function restartCvm(appId: string): Promise<PostCvmResponse>;
|
2768
|
-
/**
|
2769
|
-
* Upgrade a CVM
|
2770
|
-
* @param appId App ID
|
2771
|
-
* @param vmConfig VM configuration
|
2772
|
-
* @returns Upgrade response
|
2773
|
-
*/
|
2774
|
-
declare function upgradeCvm(appId: string, vmConfig: VMConfig): Promise<UpgradeCvmResponse>;
|
2775
|
-
/**
|
2776
|
-
* Update a CVM's compose file
|
2777
|
-
* @param cvmId CVM ID
|
2778
|
-
* @param payload Update payload
|
2779
|
-
* @returns Update response
|
2780
|
-
*/
|
2781
|
-
declare function updateCvmCompose(cvmId: string, payload: unknown): Promise<UpdateCvmComposeResponse>;
|
2782
|
-
/**
|
2783
|
-
* Update a CVM's compose file
|
2784
|
-
* @param cvmId CVM ID
|
2785
|
-
* @param payload Update payload
|
2786
|
-
* @returns Update response
|
2787
|
-
*/
|
2788
|
-
declare function updatePatchCvmCompose(cvmId: string, payload: unknown): Promise<UpdatePatchCvmComposeResponse>;
|
2789
849
|
/**
|
2790
850
|
* Delete a CVM
|
2791
|
-
* @param appId App ID
|
851
|
+
* @param appId App ID (with or without app_ prefix)
|
2792
852
|
* @returns Success status
|
2793
853
|
*/
|
2794
854
|
declare function deleteCvm(appId: string): Promise<boolean>;
|
2795
|
-
/**
|
2796
|
-
* Update a CVM
|
2797
|
-
* @param updatePayload Update payload
|
2798
|
-
* @returns Updated CVM details
|
2799
|
-
*/
|
2800
|
-
declare function updateCvm(updatePayload: UpdateCvmPayload): Promise<unknown>;
|
2801
855
|
/**
|
2802
856
|
* Presents a list of CVMs to the user and allows them to select one
|
2803
857
|
* @returns The selected CVM app ID or undefined if no CVMs exist
|
@@ -2805,7 +859,7 @@ declare function updateCvm(updatePayload: UpdateCvmPayload): Promise<unknown>;
|
|
2805
859
|
declare function selectCvm(): Promise<string | undefined>;
|
2806
860
|
/**
|
2807
861
|
* Get attestation information for a CVM
|
2808
|
-
* @param appId App ID
|
862
|
+
* @param appId App ID (with or without app_ prefix)
|
2809
863
|
* @returns Attestation information
|
2810
864
|
*/
|
2811
865
|
declare function getCvmAttestation(appId: string): Promise<CvmAttestationResponse>;
|
@@ -2818,47 +872,58 @@ interface ResizeCvmPayload {
|
|
2818
872
|
disk_size?: number;
|
2819
873
|
allow_restart?: number;
|
2820
874
|
}
|
875
|
+
/**
|
876
|
+
* Replicate a CVM
|
877
|
+
* @param appId App ID (with or without app_ prefix)
|
878
|
+
*/
|
879
|
+
declare function replicateCvm(appId: string, payload: {
|
880
|
+
teepod_id?: number;
|
881
|
+
encrypted_env?: string;
|
882
|
+
}): Promise<ReplicateCvmResponse>;
|
2821
883
|
/**
|
2822
884
|
* Resize a CVM's resources
|
2823
|
-
* @param appId App ID
|
885
|
+
* @param appId App ID (with or without app_ prefix)
|
2824
886
|
* @param vcpu Number of virtual CPUs (optional)
|
2825
887
|
* @param memory Memory size in MB (optional)
|
2826
888
|
* @param diskSize Disk size in GB (optional)
|
2827
889
|
* @param allowRestart Whether to allow restart (1) or not (0) for the resize operation (optional)
|
2828
890
|
* @returns Success status
|
2829
891
|
*/
|
892
|
+
declare function resizeCvm(appId: string, vcpu?: number, memory?: number, diskSize?: number, allowRestart?: number): Promise<boolean>;
|
2830
893
|
/**
|
2831
|
-
*
|
2832
|
-
* @param appId App ID of the CVM to replicate
|
2833
|
-
* @param payload Replication payload
|
2834
|
-
* @returns New CVM details
|
894
|
+
* VM configuration type
|
2835
895
|
*/
|
896
|
+
interface VMConfig {
|
897
|
+
[key: string]: unknown;
|
898
|
+
}
|
2836
899
|
/**
|
2837
|
-
* Get CVM
|
900
|
+
* Get public key from CVM (Legacy)
|
901
|
+
* @deprecated This is a legacy function for create command
|
902
|
+
* @param vmConfig VM configuration
|
903
|
+
* @returns Public key
|
2838
904
|
*/
|
2839
|
-
declare function
|
905
|
+
declare function getPubkeyFromCvm(vmConfig: VMConfig): Promise<PubkeyResponse>;
|
2840
906
|
/**
|
2841
|
-
*
|
907
|
+
* Create a new CVM (Legacy)
|
908
|
+
* @deprecated This is a legacy function, consider using SDK's provisionCvm
|
909
|
+
* @param vmConfig VM configuration
|
910
|
+
* @returns Created CVM details
|
2842
911
|
*/
|
2843
|
-
declare function
|
2844
|
-
teepod_id?: number;
|
2845
|
-
encrypted_env?: string;
|
2846
|
-
}): Promise<ReplicateCvmResponse>;
|
2847
|
-
declare function resizeCvm(appId: string, vcpu?: number, memory?: number, diskSize?: number, allowRestart?: number): Promise<boolean>;
|
2848
|
-
|
912
|
+
declare function createCvm(vmConfig: VMConfig): Promise<PostCvmResponse>;
|
2849
913
|
/**
|
2850
|
-
*
|
2851
|
-
* @
|
914
|
+
* Upgrade a CVM (Legacy)
|
915
|
+
* @deprecated This is a legacy function, consider using SDK's provisionCvmComposeFileUpdate
|
916
|
+
* @param appId App ID (with or without app_ prefix)
|
917
|
+
* @param vmConfig VM configuration
|
918
|
+
* @returns Upgrade response
|
2852
919
|
*/
|
2853
|
-
declare function
|
920
|
+
declare function upgradeCvm(appId: string, vmConfig: VMConfig): Promise<UpgradeResponse>;
|
2854
921
|
/**
|
2855
|
-
* Get
|
2856
|
-
* This
|
2857
|
-
*
|
2858
|
-
*
|
2859
|
-
* @param teepodId TEEPod ID
|
2860
|
-
* @returns List of images for the TEEPod
|
922
|
+
* Get all TEEPods with their images (Legacy)
|
923
|
+
* @deprecated This is a legacy function for create command, use SDK's safeGetAvailableNodes instead
|
924
|
+
* @param v03x_only Only get v0.3.x compatible nodes
|
925
|
+
* @returns List of TEEPods with embedded images
|
2861
926
|
*/
|
2862
|
-
declare function
|
927
|
+
declare function getTeepods(v03x_only?: boolean): Promise<TeepodResponse>;
|
2863
928
|
|
2864
|
-
export {
|
929
|
+
export { AvailableNodesResponse, CertificateInfo, CertificateNameInfo, ComposeFile, CvmAttestationResponse, CvmComposeConfigResponse, CvmInfoResponse, CvmListResponse, DockerConfig, EncryptedEnvItem, GetCvmNetworkResponse, Image, KmsListItem, PostCvmResponse, PubkeyResponse, ReplicateCvmResponse, ResizeCvmPayload, TCBEventLogEntry, TCBInfo, TEEPod, TeepodResponse, UpgradeResponse, UserInfoResponse, VMConfig, checkCvmExists, composeFileSchema, createCvm, cvmAttestationResponseSchema, deleteCvm, dockerConfigSchema, encryptedEnvItemSchema, getCvmAttestation, getCvmByAppId, getCvmComposeConfig, getCvmNetwork, getCvmNetworkResponseSchema, getPubkeyFromCvm, getTeepods, imageSchema, postCvmResponseSchema, replicateCvm, replicateCvmResponseSchema, resizeCvm, restartCvm, selectCvm, startCvm, stopCvm, teepodSchema, upgradeCvm };
|