@phala/cloud 0.2.9 → 0.2.10
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/dist/actions/apps/check_app_cvms_is_allowed.d.ts +315 -5
- package/dist/actions/apps/check_app_is_allowed.d.ts +2 -2
- package/dist/actions/apps/create_app_instance.d.ts +13 -4
- package/dist/actions/apps/get_app_attestation.d.ts +50 -0
- package/dist/actions/apps/get_app_device_allowlist.d.ts +274 -5
- package/dist/actions/apps/get_app_filter_options.d.ts +2 -2
- package/dist/actions/cvms/check_cvm_is_allowed.d.ts +133 -3
- package/dist/actions/cvms/commit_cvm_provision.d.ts +425 -148
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +328 -0
- package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +93 -0
- package/dist/actions/cvms/provision_cvm.d.ts +243 -225
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +216 -0
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +123 -5
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +236 -7
- package/dist/actions/cvms/replicate_cvm.d.ts +4 -4
- package/dist/actions/cvms/restart_cvm.d.ts +4 -4
- package/dist/actions/cvms/shutdown_cvm.d.ts +4 -4
- package/dist/actions/cvms/start_cvm.d.ts +4 -4
- package/dist/actions/cvms/stop_cvm.d.ts +4 -4
- package/dist/actions/cvms/update_cvm_visibility.d.ts +2 -2
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +319 -0
- package/dist/actions/get_cvm_create_resources.d.ts +2412 -0
- package/dist/actions/index.d.ts +3 -0
- package/dist/actions/workspaces/get_workspace.d.ts +2 -0
- package/dist/actions/workspaces/list_workspaces.d.ts +18 -0
- package/dist/client.d.ts +5 -2
- package/dist/create-client.d.ts +48 -0
- package/dist/index.js +1634 -1218
- package/dist/index.mjs +1602 -1216
- package/dist/types/app_compose.d.ts +125 -0
- package/dist/types/app_info_v20251028.d.ts +8 -131
- package/dist/types/app_info_v20260121.d.ts +4500 -168
- package/dist/types/client.d.ts +2 -2
- package/dist/types/cvm_info.d.ts +533 -7
- package/dist/types/cvm_info_v20251028.d.ts +18 -18
- package/dist/types/cvm_info_v20260121.d.ts +1640 -89
- package/dist/types/version-mappings.d.ts +8 -8
- package/dist/utils/errors.d.ts +8 -1
- package/package.json +2 -2
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const AppCvmsBatchIsAllowedResponseV20260121Schema: z.ZodObject<{
|
|
3
3
|
is_onchain: z.ZodBoolean;
|
|
4
|
+
total: z.ZodDefault<z.ZodNumber>;
|
|
5
|
+
allowed_count: z.ZodDefault<z.ZodNumber>;
|
|
6
|
+
denied_count: z.ZodDefault<z.ZodNumber>;
|
|
7
|
+
error_count: z.ZodDefault<z.ZodNumber>;
|
|
8
|
+
} & {
|
|
4
9
|
results: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5
10
|
app_contract_address: z.ZodString;
|
|
6
11
|
compose_hash: z.ZodString;
|
|
@@ -33,10 +38,162 @@ export declare const AppCvmsBatchIsAllowedResponseSchema: z.ZodObject<{
|
|
|
33
38
|
error?: string | null | undefined;
|
|
34
39
|
device_id_allowed?: boolean | null | undefined;
|
|
35
40
|
}>, "many">>;
|
|
41
|
+
skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
total: number;
|
|
44
|
+
is_onchain: boolean;
|
|
45
|
+
results: {
|
|
46
|
+
device_id: string;
|
|
47
|
+
compose_hash: string;
|
|
48
|
+
compose_hash_allowed: boolean;
|
|
49
|
+
is_allowed: boolean;
|
|
50
|
+
cvm_id: number;
|
|
51
|
+
app_contract_address: string;
|
|
52
|
+
allow_any_device: boolean;
|
|
53
|
+
error?: string | null | undefined;
|
|
54
|
+
device_id_allowed?: boolean | null | undefined;
|
|
55
|
+
}[];
|
|
56
|
+
allowed_count: number;
|
|
57
|
+
denied_count: number;
|
|
58
|
+
error_count: number;
|
|
59
|
+
skipped_cvm_ids: number[];
|
|
60
|
+
}, {
|
|
61
|
+
is_onchain: boolean;
|
|
62
|
+
total?: number | undefined;
|
|
63
|
+
results?: {
|
|
64
|
+
device_id: string;
|
|
65
|
+
compose_hash: string;
|
|
66
|
+
compose_hash_allowed: boolean;
|
|
67
|
+
is_allowed: boolean;
|
|
68
|
+
cvm_id: number;
|
|
69
|
+
app_contract_address: string;
|
|
70
|
+
allow_any_device: boolean;
|
|
71
|
+
error?: string | null | undefined;
|
|
72
|
+
device_id_allowed?: boolean | null | undefined;
|
|
73
|
+
}[] | undefined;
|
|
74
|
+
allowed_count?: number | undefined;
|
|
75
|
+
denied_count?: number | undefined;
|
|
76
|
+
error_count?: number | undefined;
|
|
77
|
+
skipped_cvm_ids?: number[] | undefined;
|
|
78
|
+
}>;
|
|
79
|
+
export type AppCvmsBatchIsAllowedResponseV20260121 = z.infer<typeof AppCvmsBatchIsAllowedResponseV20260121Schema>;
|
|
80
|
+
export declare const AppCvmsBatchIsAllowedResponseV20260522Schema: z.ZodObject<{
|
|
81
|
+
is_onchain: z.ZodBoolean;
|
|
82
|
+
total: z.ZodDefault<z.ZodNumber>;
|
|
83
|
+
allowed_count: z.ZodDefault<z.ZodNumber>;
|
|
84
|
+
denied_count: z.ZodDefault<z.ZodNumber>;
|
|
85
|
+
error_count: z.ZodDefault<z.ZodNumber>;
|
|
86
|
+
} & {
|
|
87
|
+
results: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
88
|
+
app_contract_address: z.ZodString;
|
|
89
|
+
compose_hash: z.ZodString;
|
|
90
|
+
device_id: z.ZodString;
|
|
91
|
+
compose_hash_allowed: z.ZodBoolean;
|
|
92
|
+
allow_any_device: z.ZodBoolean;
|
|
93
|
+
device_id_allowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
94
|
+
is_allowed: z.ZodBoolean;
|
|
95
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
} & {
|
|
97
|
+
cvm_id: z.ZodString;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
device_id: string;
|
|
100
|
+
compose_hash: string;
|
|
101
|
+
compose_hash_allowed: boolean;
|
|
102
|
+
is_allowed: boolean;
|
|
103
|
+
cvm_id: string;
|
|
104
|
+
app_contract_address: string;
|
|
105
|
+
allow_any_device: boolean;
|
|
106
|
+
error?: string | null | undefined;
|
|
107
|
+
device_id_allowed?: boolean | null | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
device_id: string;
|
|
110
|
+
compose_hash: string;
|
|
111
|
+
compose_hash_allowed: boolean;
|
|
112
|
+
is_allowed: boolean;
|
|
113
|
+
cvm_id: string;
|
|
114
|
+
app_contract_address: string;
|
|
115
|
+
allow_any_device: boolean;
|
|
116
|
+
error?: string | null | undefined;
|
|
117
|
+
device_id_allowed?: boolean | null | undefined;
|
|
118
|
+
}>, "many">>;
|
|
119
|
+
skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
total: number;
|
|
122
|
+
is_onchain: boolean;
|
|
123
|
+
results: {
|
|
124
|
+
device_id: string;
|
|
125
|
+
compose_hash: string;
|
|
126
|
+
compose_hash_allowed: boolean;
|
|
127
|
+
is_allowed: boolean;
|
|
128
|
+
cvm_id: string;
|
|
129
|
+
app_contract_address: string;
|
|
130
|
+
allow_any_device: boolean;
|
|
131
|
+
error?: string | null | undefined;
|
|
132
|
+
device_id_allowed?: boolean | null | undefined;
|
|
133
|
+
}[];
|
|
134
|
+
allowed_count: number;
|
|
135
|
+
denied_count: number;
|
|
136
|
+
error_count: number;
|
|
137
|
+
skipped_cvm_ids: string[];
|
|
138
|
+
}, {
|
|
139
|
+
is_onchain: boolean;
|
|
140
|
+
total?: number | undefined;
|
|
141
|
+
results?: {
|
|
142
|
+
device_id: string;
|
|
143
|
+
compose_hash: string;
|
|
144
|
+
compose_hash_allowed: boolean;
|
|
145
|
+
is_allowed: boolean;
|
|
146
|
+
cvm_id: string;
|
|
147
|
+
app_contract_address: string;
|
|
148
|
+
allow_any_device: boolean;
|
|
149
|
+
error?: string | null | undefined;
|
|
150
|
+
device_id_allowed?: boolean | null | undefined;
|
|
151
|
+
}[] | undefined;
|
|
152
|
+
allowed_count?: number | undefined;
|
|
153
|
+
denied_count?: number | undefined;
|
|
154
|
+
error_count?: number | undefined;
|
|
155
|
+
skipped_cvm_ids?: string[] | undefined;
|
|
156
|
+
}>;
|
|
157
|
+
export type AppCvmsBatchIsAllowedResponseV20260522 = z.infer<typeof AppCvmsBatchIsAllowedResponseV20260522Schema>;
|
|
158
|
+
export declare const AppCvmsBatchIsAllowedResponseAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
159
|
+
is_onchain: z.ZodBoolean;
|
|
36
160
|
total: z.ZodDefault<z.ZodNumber>;
|
|
37
161
|
allowed_count: z.ZodDefault<z.ZodNumber>;
|
|
38
162
|
denied_count: z.ZodDefault<z.ZodNumber>;
|
|
39
163
|
error_count: z.ZodDefault<z.ZodNumber>;
|
|
164
|
+
} & {
|
|
165
|
+
results: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
166
|
+
app_contract_address: z.ZodString;
|
|
167
|
+
compose_hash: z.ZodString;
|
|
168
|
+
device_id: z.ZodString;
|
|
169
|
+
compose_hash_allowed: z.ZodBoolean;
|
|
170
|
+
allow_any_device: z.ZodBoolean;
|
|
171
|
+
device_id_allowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
172
|
+
is_allowed: z.ZodBoolean;
|
|
173
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
174
|
+
} & {
|
|
175
|
+
cvm_id: z.ZodNumber;
|
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
|
177
|
+
device_id: string;
|
|
178
|
+
compose_hash: string;
|
|
179
|
+
compose_hash_allowed: boolean;
|
|
180
|
+
is_allowed: boolean;
|
|
181
|
+
cvm_id: number;
|
|
182
|
+
app_contract_address: string;
|
|
183
|
+
allow_any_device: boolean;
|
|
184
|
+
error?: string | null | undefined;
|
|
185
|
+
device_id_allowed?: boolean | null | undefined;
|
|
186
|
+
}, {
|
|
187
|
+
device_id: string;
|
|
188
|
+
compose_hash: string;
|
|
189
|
+
compose_hash_allowed: boolean;
|
|
190
|
+
is_allowed: boolean;
|
|
191
|
+
cvm_id: number;
|
|
192
|
+
app_contract_address: string;
|
|
193
|
+
allow_any_device: boolean;
|
|
194
|
+
error?: string | null | undefined;
|
|
195
|
+
device_id_allowed?: boolean | null | undefined;
|
|
196
|
+
}>, "many">>;
|
|
40
197
|
skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
41
198
|
}, "strip", z.ZodTypeAny, {
|
|
42
199
|
total: number;
|
|
@@ -74,6 +231,159 @@ export declare const AppCvmsBatchIsAllowedResponseSchema: z.ZodObject<{
|
|
|
74
231
|
denied_count?: number | undefined;
|
|
75
232
|
error_count?: number | undefined;
|
|
76
233
|
skipped_cvm_ids?: number[] | undefined;
|
|
234
|
+
}>, z.ZodObject<{
|
|
235
|
+
is_onchain: z.ZodBoolean;
|
|
236
|
+
total: z.ZodDefault<z.ZodNumber>;
|
|
237
|
+
allowed_count: z.ZodDefault<z.ZodNumber>;
|
|
238
|
+
denied_count: z.ZodDefault<z.ZodNumber>;
|
|
239
|
+
error_count: z.ZodDefault<z.ZodNumber>;
|
|
240
|
+
} & {
|
|
241
|
+
results: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
242
|
+
app_contract_address: z.ZodString;
|
|
243
|
+
compose_hash: z.ZodString;
|
|
244
|
+
device_id: z.ZodString;
|
|
245
|
+
compose_hash_allowed: z.ZodBoolean;
|
|
246
|
+
allow_any_device: z.ZodBoolean;
|
|
247
|
+
device_id_allowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
248
|
+
is_allowed: z.ZodBoolean;
|
|
249
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
250
|
+
} & {
|
|
251
|
+
cvm_id: z.ZodString;
|
|
252
|
+
}, "strip", z.ZodTypeAny, {
|
|
253
|
+
device_id: string;
|
|
254
|
+
compose_hash: string;
|
|
255
|
+
compose_hash_allowed: boolean;
|
|
256
|
+
is_allowed: boolean;
|
|
257
|
+
cvm_id: string;
|
|
258
|
+
app_contract_address: string;
|
|
259
|
+
allow_any_device: boolean;
|
|
260
|
+
error?: string | null | undefined;
|
|
261
|
+
device_id_allowed?: boolean | null | undefined;
|
|
262
|
+
}, {
|
|
263
|
+
device_id: string;
|
|
264
|
+
compose_hash: string;
|
|
265
|
+
compose_hash_allowed: boolean;
|
|
266
|
+
is_allowed: boolean;
|
|
267
|
+
cvm_id: string;
|
|
268
|
+
app_contract_address: string;
|
|
269
|
+
allow_any_device: boolean;
|
|
270
|
+
error?: string | null | undefined;
|
|
271
|
+
device_id_allowed?: boolean | null | undefined;
|
|
272
|
+
}>, "many">>;
|
|
273
|
+
skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
274
|
+
}, "strip", z.ZodTypeAny, {
|
|
275
|
+
total: number;
|
|
276
|
+
is_onchain: boolean;
|
|
277
|
+
results: {
|
|
278
|
+
device_id: string;
|
|
279
|
+
compose_hash: string;
|
|
280
|
+
compose_hash_allowed: boolean;
|
|
281
|
+
is_allowed: boolean;
|
|
282
|
+
cvm_id: string;
|
|
283
|
+
app_contract_address: string;
|
|
284
|
+
allow_any_device: boolean;
|
|
285
|
+
error?: string | null | undefined;
|
|
286
|
+
device_id_allowed?: boolean | null | undefined;
|
|
287
|
+
}[];
|
|
288
|
+
allowed_count: number;
|
|
289
|
+
denied_count: number;
|
|
290
|
+
error_count: number;
|
|
291
|
+
skipped_cvm_ids: string[];
|
|
292
|
+
}, {
|
|
293
|
+
is_onchain: boolean;
|
|
294
|
+
total?: number | undefined;
|
|
295
|
+
results?: {
|
|
296
|
+
device_id: string;
|
|
297
|
+
compose_hash: string;
|
|
298
|
+
compose_hash_allowed: boolean;
|
|
299
|
+
is_allowed: boolean;
|
|
300
|
+
cvm_id: string;
|
|
301
|
+
app_contract_address: string;
|
|
302
|
+
allow_any_device: boolean;
|
|
303
|
+
error?: string | null | undefined;
|
|
304
|
+
device_id_allowed?: boolean | null | undefined;
|
|
305
|
+
}[] | undefined;
|
|
306
|
+
allowed_count?: number | undefined;
|
|
307
|
+
denied_count?: number | undefined;
|
|
308
|
+
error_count?: number | undefined;
|
|
309
|
+
skipped_cvm_ids?: string[] | undefined;
|
|
310
|
+
}>]>;
|
|
311
|
+
export declare const AppCvmsBatchIsAllowedResponseSchema: z.ZodObject<{
|
|
312
|
+
is_onchain: z.ZodBoolean;
|
|
313
|
+
total: z.ZodDefault<z.ZodNumber>;
|
|
314
|
+
allowed_count: z.ZodDefault<z.ZodNumber>;
|
|
315
|
+
denied_count: z.ZodDefault<z.ZodNumber>;
|
|
316
|
+
error_count: z.ZodDefault<z.ZodNumber>;
|
|
317
|
+
} & {
|
|
318
|
+
results: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
319
|
+
app_contract_address: z.ZodString;
|
|
320
|
+
compose_hash: z.ZodString;
|
|
321
|
+
device_id: z.ZodString;
|
|
322
|
+
compose_hash_allowed: z.ZodBoolean;
|
|
323
|
+
allow_any_device: z.ZodBoolean;
|
|
324
|
+
device_id_allowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
325
|
+
is_allowed: z.ZodBoolean;
|
|
326
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
327
|
+
} & {
|
|
328
|
+
cvm_id: z.ZodString;
|
|
329
|
+
}, "strip", z.ZodTypeAny, {
|
|
330
|
+
device_id: string;
|
|
331
|
+
compose_hash: string;
|
|
332
|
+
compose_hash_allowed: boolean;
|
|
333
|
+
is_allowed: boolean;
|
|
334
|
+
cvm_id: string;
|
|
335
|
+
app_contract_address: string;
|
|
336
|
+
allow_any_device: boolean;
|
|
337
|
+
error?: string | null | undefined;
|
|
338
|
+
device_id_allowed?: boolean | null | undefined;
|
|
339
|
+
}, {
|
|
340
|
+
device_id: string;
|
|
341
|
+
compose_hash: string;
|
|
342
|
+
compose_hash_allowed: boolean;
|
|
343
|
+
is_allowed: boolean;
|
|
344
|
+
cvm_id: string;
|
|
345
|
+
app_contract_address: string;
|
|
346
|
+
allow_any_device: boolean;
|
|
347
|
+
error?: string | null | undefined;
|
|
348
|
+
device_id_allowed?: boolean | null | undefined;
|
|
349
|
+
}>, "many">>;
|
|
350
|
+
skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
351
|
+
}, "strip", z.ZodTypeAny, {
|
|
352
|
+
total: number;
|
|
353
|
+
is_onchain: boolean;
|
|
354
|
+
results: {
|
|
355
|
+
device_id: string;
|
|
356
|
+
compose_hash: string;
|
|
357
|
+
compose_hash_allowed: boolean;
|
|
358
|
+
is_allowed: boolean;
|
|
359
|
+
cvm_id: string;
|
|
360
|
+
app_contract_address: string;
|
|
361
|
+
allow_any_device: boolean;
|
|
362
|
+
error?: string | null | undefined;
|
|
363
|
+
device_id_allowed?: boolean | null | undefined;
|
|
364
|
+
}[];
|
|
365
|
+
allowed_count: number;
|
|
366
|
+
denied_count: number;
|
|
367
|
+
error_count: number;
|
|
368
|
+
skipped_cvm_ids: string[];
|
|
369
|
+
}, {
|
|
370
|
+
is_onchain: boolean;
|
|
371
|
+
total?: number | undefined;
|
|
372
|
+
results?: {
|
|
373
|
+
device_id: string;
|
|
374
|
+
compose_hash: string;
|
|
375
|
+
compose_hash_allowed: boolean;
|
|
376
|
+
is_allowed: boolean;
|
|
377
|
+
cvm_id: string;
|
|
378
|
+
app_contract_address: string;
|
|
379
|
+
allow_any_device: boolean;
|
|
380
|
+
error?: string | null | undefined;
|
|
381
|
+
device_id_allowed?: boolean | null | undefined;
|
|
382
|
+
}[] | undefined;
|
|
383
|
+
allowed_count?: number | undefined;
|
|
384
|
+
denied_count?: number | undefined;
|
|
385
|
+
error_count?: number | undefined;
|
|
386
|
+
skipped_cvm_ids?: string[] | undefined;
|
|
77
387
|
}>;
|
|
78
388
|
export type AppCvmsBatchIsAllowedResponse = z.infer<typeof AppCvmsBatchIsAllowedResponseSchema>;
|
|
79
389
|
export declare const CheckAppCvmsIsAllowedRequestSchema: z.ZodObject<{
|
|
@@ -107,7 +417,7 @@ declare const checkAppCvmsIsAllowed: {
|
|
|
107
417
|
compose_hash: string;
|
|
108
418
|
compose_hash_allowed: boolean;
|
|
109
419
|
is_allowed: boolean;
|
|
110
|
-
cvm_id:
|
|
420
|
+
cvm_id: string;
|
|
111
421
|
app_contract_address: string;
|
|
112
422
|
allow_any_device: boolean;
|
|
113
423
|
error?: string | null | undefined;
|
|
@@ -116,7 +426,7 @@ declare const checkAppCvmsIsAllowed: {
|
|
|
116
426
|
allowed_count: number;
|
|
117
427
|
denied_count: number;
|
|
118
428
|
error_count: number;
|
|
119
|
-
skipped_cvm_ids:
|
|
429
|
+
skipped_cvm_ids: string[];
|
|
120
430
|
}>;
|
|
121
431
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
122
432
|
appId: string;
|
|
@@ -139,7 +449,7 @@ declare const checkAppCvmsIsAllowed: {
|
|
|
139
449
|
compose_hash: string;
|
|
140
450
|
compose_hash_allowed: boolean;
|
|
141
451
|
is_allowed: boolean;
|
|
142
|
-
cvm_id:
|
|
452
|
+
cvm_id: string;
|
|
143
453
|
app_contract_address: string;
|
|
144
454
|
allow_any_device: boolean;
|
|
145
455
|
error?: string | null | undefined;
|
|
@@ -148,7 +458,7 @@ declare const checkAppCvmsIsAllowed: {
|
|
|
148
458
|
allowed_count: number;
|
|
149
459
|
denied_count: number;
|
|
150
460
|
error_count: number;
|
|
151
|
-
skipped_cvm_ids:
|
|
461
|
+
skipped_cvm_ids: string[];
|
|
152
462
|
}>>;
|
|
153
463
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
154
464
|
appId: string;
|
|
@@ -49,7 +49,7 @@ declare const checkAppIsAllowed: {
|
|
|
49
49
|
allow_any_device: boolean;
|
|
50
50
|
error?: string | null | undefined;
|
|
51
51
|
device_id_allowed?: boolean | null | undefined;
|
|
52
|
-
cvm_id?:
|
|
52
|
+
cvm_id?: string | undefined;
|
|
53
53
|
}>;
|
|
54
54
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
55
55
|
compose_hash: string;
|
|
@@ -85,7 +85,7 @@ declare const checkAppIsAllowed: {
|
|
|
85
85
|
allow_any_device: boolean;
|
|
86
86
|
error?: string | null | undefined;
|
|
87
87
|
device_id_allowed?: boolean | null | undefined;
|
|
88
|
-
cvm_id?:
|
|
88
|
+
cvm_id?: string | undefined;
|
|
89
89
|
}>>;
|
|
90
90
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
91
91
|
compose_hash: string;
|
|
@@ -43,6 +43,7 @@ import { z } from "zod";
|
|
|
43
43
|
*/
|
|
44
44
|
export declare const CreateAppInstanceRequestSchema: z.ZodObject<{
|
|
45
45
|
appId: z.ZodString;
|
|
46
|
+
name: z.ZodOptional<z.ZodString>;
|
|
46
47
|
node_id: z.ZodOptional<z.ZodNumber>;
|
|
47
48
|
docker_compose_file: z.ZodOptional<z.ZodString>;
|
|
48
49
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
@@ -52,6 +53,7 @@ export declare const CreateAppInstanceRequestSchema: z.ZodObject<{
|
|
|
52
53
|
transaction_hash: z.ZodOptional<z.ZodString>;
|
|
53
54
|
}, "strict", z.ZodTypeAny, {
|
|
54
55
|
appId: string;
|
|
56
|
+
name?: string | undefined;
|
|
55
57
|
compose_hash?: string | undefined;
|
|
56
58
|
node_id?: number | undefined;
|
|
57
59
|
docker_compose_file?: string | undefined;
|
|
@@ -61,6 +63,7 @@ export declare const CreateAppInstanceRequestSchema: z.ZodObject<{
|
|
|
61
63
|
token?: string | undefined;
|
|
62
64
|
}, {
|
|
63
65
|
appId: string;
|
|
66
|
+
name?: string | undefined;
|
|
64
67
|
compose_hash?: string | undefined;
|
|
65
68
|
node_id?: number | undefined;
|
|
66
69
|
docker_compose_file?: string | undefined;
|
|
@@ -73,6 +76,7 @@ export type CreateAppInstanceRequest = z.infer<typeof CreateAppInstanceRequestSc
|
|
|
73
76
|
declare const createAppInstance: {
|
|
74
77
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
75
78
|
appId: string;
|
|
79
|
+
name?: string | undefined;
|
|
76
80
|
compose_hash?: string | undefined;
|
|
77
81
|
node_id?: number | undefined;
|
|
78
82
|
docker_compose_file?: string | undefined;
|
|
@@ -83,7 +87,7 @@ declare const createAppInstance: {
|
|
|
83
87
|
}): Promise<{
|
|
84
88
|
status: string;
|
|
85
89
|
name: string;
|
|
86
|
-
id:
|
|
90
|
+
id: string;
|
|
87
91
|
app_id: string;
|
|
88
92
|
instance_id: string | null;
|
|
89
93
|
vcpu: number;
|
|
@@ -101,7 +105,7 @@ declare const createAppInstance: {
|
|
|
101
105
|
region_identifier?: string | null | undefined;
|
|
102
106
|
} | null | undefined;
|
|
103
107
|
base_image?: string | null | undefined;
|
|
104
|
-
user_id?:
|
|
108
|
+
user_id?: string | null | undefined;
|
|
105
109
|
docker_compose_file?: string | null | undefined;
|
|
106
110
|
features?: string[] | null | undefined;
|
|
107
111
|
manifest_version?: number | null | undefined;
|
|
@@ -109,6 +113,7 @@ declare const createAppInstance: {
|
|
|
109
113
|
}>;
|
|
110
114
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
111
115
|
appId: string;
|
|
116
|
+
name?: string | undefined;
|
|
112
117
|
compose_hash?: string | undefined;
|
|
113
118
|
node_id?: number | undefined;
|
|
114
119
|
docker_compose_file?: string | undefined;
|
|
@@ -121,6 +126,7 @@ declare const createAppInstance: {
|
|
|
121
126
|
}): Promise<z.TypeOf<T>>;
|
|
122
127
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
123
128
|
appId: string;
|
|
129
|
+
name?: string | undefined;
|
|
124
130
|
compose_hash?: string | undefined;
|
|
125
131
|
node_id?: number | undefined;
|
|
126
132
|
docker_compose_file?: string | undefined;
|
|
@@ -134,6 +140,7 @@ declare const createAppInstance: {
|
|
|
134
140
|
}, safeCreateAppInstance: {
|
|
135
141
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
136
142
|
appId: string;
|
|
143
|
+
name?: string | undefined;
|
|
137
144
|
compose_hash?: string | undefined;
|
|
138
145
|
node_id?: number | undefined;
|
|
139
146
|
docker_compose_file?: string | undefined;
|
|
@@ -144,7 +151,7 @@ declare const createAppInstance: {
|
|
|
144
151
|
}): Promise<import("../..").SafeResult<{
|
|
145
152
|
status: string;
|
|
146
153
|
name: string;
|
|
147
|
-
id:
|
|
154
|
+
id: string;
|
|
148
155
|
app_id: string;
|
|
149
156
|
instance_id: string | null;
|
|
150
157
|
vcpu: number;
|
|
@@ -162,7 +169,7 @@ declare const createAppInstance: {
|
|
|
162
169
|
region_identifier?: string | null | undefined;
|
|
163
170
|
} | null | undefined;
|
|
164
171
|
base_image?: string | null | undefined;
|
|
165
|
-
user_id?:
|
|
172
|
+
user_id?: string | null | undefined;
|
|
166
173
|
docker_compose_file?: string | null | undefined;
|
|
167
174
|
features?: string[] | null | undefined;
|
|
168
175
|
manifest_version?: number | null | undefined;
|
|
@@ -170,6 +177,7 @@ declare const createAppInstance: {
|
|
|
170
177
|
}>>;
|
|
171
178
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
172
179
|
appId: string;
|
|
180
|
+
name?: string | undefined;
|
|
173
181
|
compose_hash?: string | undefined;
|
|
174
182
|
node_id?: number | undefined;
|
|
175
183
|
docker_compose_file?: string | undefined;
|
|
@@ -182,6 +190,7 @@ declare const createAppInstance: {
|
|
|
182
190
|
}): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
183
191
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
184
192
|
appId: string;
|
|
193
|
+
name?: string | undefined;
|
|
185
194
|
compose_hash?: string | undefined;
|
|
186
195
|
node_id?: number | undefined;
|
|
187
196
|
docker_compose_file?: string | undefined;
|
|
@@ -7,7 +7,12 @@ export declare const AppAttestationInstanceSchema: z.ZodObject<{
|
|
|
7
7
|
image_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
8
|
quote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
ppid: z.ZodOptional<z.ZodString>;
|
|
10
|
+
ppid_sha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
11
|
device_id: z.ZodOptional<z.ZodString>;
|
|
12
|
+
fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
tee_tcb_svn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
cpusvn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
pcesvn: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
16
|
tcb_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12
17
|
mrtd: z.ZodString;
|
|
13
18
|
rootfs_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -174,6 +179,7 @@ export declare const AppAttestationInstanceSchema: z.ZodObject<{
|
|
|
174
179
|
device_id?: string | undefined;
|
|
175
180
|
ppid?: string | undefined;
|
|
176
181
|
compose_file?: string | null | undefined;
|
|
182
|
+
fmspc?: string | null | undefined;
|
|
177
183
|
quote?: string | null | undefined;
|
|
178
184
|
app_certificates?: {
|
|
179
185
|
version: string;
|
|
@@ -217,6 +223,10 @@ export declare const AppAttestationInstanceSchema: z.ZodObject<{
|
|
|
217
223
|
}[];
|
|
218
224
|
rootfs_hash?: string | null | undefined;
|
|
219
225
|
} | null | undefined;
|
|
226
|
+
ppid_sha256?: string | null | undefined;
|
|
227
|
+
tee_tcb_svn?: string | null | undefined;
|
|
228
|
+
cpusvn?: string | null | undefined;
|
|
229
|
+
pcesvn?: number | null | undefined;
|
|
220
230
|
}, {
|
|
221
231
|
status?: string | undefined;
|
|
222
232
|
name?: string | undefined;
|
|
@@ -227,6 +237,7 @@ export declare const AppAttestationInstanceSchema: z.ZodObject<{
|
|
|
227
237
|
device_id?: string | undefined;
|
|
228
238
|
ppid?: string | undefined;
|
|
229
239
|
compose_file?: string | null | undefined;
|
|
240
|
+
fmspc?: string | null | undefined;
|
|
230
241
|
quote?: string | null | undefined;
|
|
231
242
|
app_certificates?: {
|
|
232
243
|
version: string;
|
|
@@ -270,6 +281,10 @@ export declare const AppAttestationInstanceSchema: z.ZodObject<{
|
|
|
270
281
|
}[];
|
|
271
282
|
rootfs_hash?: string | null | undefined;
|
|
272
283
|
} | null | undefined;
|
|
284
|
+
ppid_sha256?: string | null | undefined;
|
|
285
|
+
tee_tcb_svn?: string | null | undefined;
|
|
286
|
+
cpusvn?: string | null | undefined;
|
|
287
|
+
pcesvn?: number | null | undefined;
|
|
273
288
|
}>;
|
|
274
289
|
export type AppAttestationInstance = z.infer<typeof AppAttestationInstanceSchema>;
|
|
275
290
|
export declare const AppAttestationResponseSchema: z.ZodObject<{
|
|
@@ -308,7 +323,12 @@ export declare const AppAttestationResponseSchema: z.ZodObject<{
|
|
|
308
323
|
image_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
309
324
|
quote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
310
325
|
ppid: z.ZodOptional<z.ZodString>;
|
|
326
|
+
ppid_sha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
311
327
|
device_id: z.ZodOptional<z.ZodString>;
|
|
328
|
+
fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
329
|
+
tee_tcb_svn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
330
|
+
cpusvn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
331
|
+
pcesvn: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
312
332
|
tcb_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
313
333
|
mrtd: z.ZodString;
|
|
314
334
|
rootfs_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -475,6 +495,7 @@ export declare const AppAttestationResponseSchema: z.ZodObject<{
|
|
|
475
495
|
device_id?: string | undefined;
|
|
476
496
|
ppid?: string | undefined;
|
|
477
497
|
compose_file?: string | null | undefined;
|
|
498
|
+
fmspc?: string | null | undefined;
|
|
478
499
|
quote?: string | null | undefined;
|
|
479
500
|
app_certificates?: {
|
|
480
501
|
version: string;
|
|
@@ -518,6 +539,10 @@ export declare const AppAttestationResponseSchema: z.ZodObject<{
|
|
|
518
539
|
}[];
|
|
519
540
|
rootfs_hash?: string | null | undefined;
|
|
520
541
|
} | null | undefined;
|
|
542
|
+
ppid_sha256?: string | null | undefined;
|
|
543
|
+
tee_tcb_svn?: string | null | undefined;
|
|
544
|
+
cpusvn?: string | null | undefined;
|
|
545
|
+
pcesvn?: number | null | undefined;
|
|
521
546
|
}, {
|
|
522
547
|
status?: string | undefined;
|
|
523
548
|
name?: string | undefined;
|
|
@@ -528,6 +553,7 @@ export declare const AppAttestationResponseSchema: z.ZodObject<{
|
|
|
528
553
|
device_id?: string | undefined;
|
|
529
554
|
ppid?: string | undefined;
|
|
530
555
|
compose_file?: string | null | undefined;
|
|
556
|
+
fmspc?: string | null | undefined;
|
|
531
557
|
quote?: string | null | undefined;
|
|
532
558
|
app_certificates?: {
|
|
533
559
|
version: string;
|
|
@@ -571,6 +597,10 @@ export declare const AppAttestationResponseSchema: z.ZodObject<{
|
|
|
571
597
|
}[];
|
|
572
598
|
rootfs_hash?: string | null | undefined;
|
|
573
599
|
} | null | undefined;
|
|
600
|
+
ppid_sha256?: string | null | undefined;
|
|
601
|
+
tee_tcb_svn?: string | null | undefined;
|
|
602
|
+
cpusvn?: string | null | undefined;
|
|
603
|
+
pcesvn?: number | null | undefined;
|
|
574
604
|
}>, "many">;
|
|
575
605
|
kms_guest_agent_info: z.ZodNullable<z.ZodObject<{
|
|
576
606
|
app_id: z.ZodOptional<z.ZodString>;
|
|
@@ -627,6 +657,7 @@ export declare const AppAttestationResponseSchema: z.ZodObject<{
|
|
|
627
657
|
device_id?: string | undefined;
|
|
628
658
|
ppid?: string | undefined;
|
|
629
659
|
compose_file?: string | null | undefined;
|
|
660
|
+
fmspc?: string | null | undefined;
|
|
630
661
|
quote?: string | null | undefined;
|
|
631
662
|
app_certificates?: {
|
|
632
663
|
version: string;
|
|
@@ -670,6 +701,10 @@ export declare const AppAttestationResponseSchema: z.ZodObject<{
|
|
|
670
701
|
}[];
|
|
671
702
|
rootfs_hash?: string | null | undefined;
|
|
672
703
|
} | null | undefined;
|
|
704
|
+
ppid_sha256?: string | null | undefined;
|
|
705
|
+
tee_tcb_svn?: string | null | undefined;
|
|
706
|
+
cpusvn?: string | null | undefined;
|
|
707
|
+
pcesvn?: number | null | undefined;
|
|
673
708
|
}[];
|
|
674
709
|
kms_guest_agent_info: z.objectOutputType<{
|
|
675
710
|
app_id: z.ZodOptional<z.ZodString>;
|
|
@@ -706,6 +741,7 @@ export declare const AppAttestationResponseSchema: z.ZodObject<{
|
|
|
706
741
|
device_id?: string | undefined;
|
|
707
742
|
ppid?: string | undefined;
|
|
708
743
|
compose_file?: string | null | undefined;
|
|
744
|
+
fmspc?: string | null | undefined;
|
|
709
745
|
quote?: string | null | undefined;
|
|
710
746
|
app_certificates?: {
|
|
711
747
|
version: string;
|
|
@@ -749,6 +785,10 @@ export declare const AppAttestationResponseSchema: z.ZodObject<{
|
|
|
749
785
|
}[];
|
|
750
786
|
rootfs_hash?: string | null | undefined;
|
|
751
787
|
} | null | undefined;
|
|
788
|
+
ppid_sha256?: string | null | undefined;
|
|
789
|
+
tee_tcb_svn?: string | null | undefined;
|
|
790
|
+
cpusvn?: string | null | undefined;
|
|
791
|
+
pcesvn?: number | null | undefined;
|
|
752
792
|
}[];
|
|
753
793
|
kms_guest_agent_info: z.objectInputType<{
|
|
754
794
|
app_id: z.ZodOptional<z.ZodString>;
|
|
@@ -798,6 +838,7 @@ declare const getAppAttestation: {
|
|
|
798
838
|
device_id?: string | undefined;
|
|
799
839
|
ppid?: string | undefined;
|
|
800
840
|
compose_file?: string | null | undefined;
|
|
841
|
+
fmspc?: string | null | undefined;
|
|
801
842
|
quote?: string | null | undefined;
|
|
802
843
|
app_certificates?: {
|
|
803
844
|
version: string;
|
|
@@ -841,6 +882,10 @@ declare const getAppAttestation: {
|
|
|
841
882
|
}[];
|
|
842
883
|
rootfs_hash?: string | null | undefined;
|
|
843
884
|
} | null | undefined;
|
|
885
|
+
ppid_sha256?: string | null | undefined;
|
|
886
|
+
tee_tcb_svn?: string | null | undefined;
|
|
887
|
+
cpusvn?: string | null | undefined;
|
|
888
|
+
pcesvn?: number | null | undefined;
|
|
844
889
|
}[];
|
|
845
890
|
kms_guest_agent_info: z.objectOutputType<{
|
|
846
891
|
app_id: z.ZodOptional<z.ZodString>;
|
|
@@ -891,6 +936,7 @@ declare const getAppAttestation: {
|
|
|
891
936
|
device_id?: string | undefined;
|
|
892
937
|
ppid?: string | undefined;
|
|
893
938
|
compose_file?: string | null | undefined;
|
|
939
|
+
fmspc?: string | null | undefined;
|
|
894
940
|
quote?: string | null | undefined;
|
|
895
941
|
app_certificates?: {
|
|
896
942
|
version: string;
|
|
@@ -934,6 +980,10 @@ declare const getAppAttestation: {
|
|
|
934
980
|
}[];
|
|
935
981
|
rootfs_hash?: string | null | undefined;
|
|
936
982
|
} | null | undefined;
|
|
983
|
+
ppid_sha256?: string | null | undefined;
|
|
984
|
+
tee_tcb_svn?: string | null | undefined;
|
|
985
|
+
cpusvn?: string | null | undefined;
|
|
986
|
+
pcesvn?: number | null | undefined;
|
|
937
987
|
}[];
|
|
938
988
|
kms_guest_agent_info: z.objectOutputType<{
|
|
939
989
|
app_id: z.ZodOptional<z.ZodString>;
|