@phala/cloud 0.2.10 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +100 -161
- package/dist/actions/apps/check_app_is_allowed.d.ts +14 -14
- package/dist/actions/apps/create_app_instance.d.ts +22 -22
- package/dist/actions/apps/get_app_attestation.d.ts +43 -33
- package/dist/actions/apps/get_app_device_allowlist.d.ts +51 -50
- package/dist/actions/apps/get_app_list.d.ts +2 -2
- package/dist/actions/cvms/check_cvm_is_allowed.d.ts +40 -102
- package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +12 -12
- package/dist/actions/cvms/commit_cvm_provision.d.ts +11 -135
- package/dist/actions/cvms/commit_cvm_update.d.ts +2 -2
- package/dist/actions/cvms/confirm_cvm_patch.d.ts +2 -2
- package/dist/actions/cvms/delete_cvm.d.ts +2 -2
- package/dist/actions/cvms/get_available_os_images.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_attestation.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +166 -22
- package/dist/actions/cvms/get_cvm_containers_stats.d.ts +10 -10
- package/dist/actions/cvms/get_cvm_docker_compose.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_info.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_list.d.ts +8 -10
- package/dist/actions/cvms/get_cvm_network.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_state.d.ts +6 -6
- package/dist/actions/cvms/get_cvm_stats.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_status_batch.d.ts +253 -30
- package/dist/actions/cvms/get_cvm_user_config.d.ts +2 -2
- package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +2 -2
- package/dist/actions/cvms/patch_cvm.d.ts +34 -18
- package/dist/actions/cvms/provision_cvm.d.ts +900 -51
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +253 -43
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +27 -58
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +120 -165
- package/dist/actions/cvms/replicate_cvm.d.ts +7 -72
- package/dist/actions/cvms/restart_cvm.d.ts +7 -72
- package/dist/actions/cvms/shutdown_cvm.d.ts +9 -72
- package/dist/actions/cvms/start_cvm.d.ts +7 -72
- package/dist/actions/cvms/stop_cvm.d.ts +7 -72
- package/dist/actions/cvms/update_cvm_envs.d.ts +36 -20
- package/dist/actions/cvms/update_cvm_resources.d.ts +26 -4
- package/dist/actions/cvms/update_cvm_visibility.d.ts +26 -24
- package/dist/actions/cvms/update_docker_compose.d.ts +51 -20
- package/dist/actions/cvms/update_os_image.d.ts +2 -2
- package/dist/actions/cvms/update_prelaunch_script.d.ts +51 -20
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +36 -20
- package/dist/actions/get_available_nodes.d.ts +259 -0
- package/dist/actions/get_cvm_create_resources.d.ts +351 -0
- package/dist/actions/index.d.ts +6 -2
- package/dist/actions/kms/get_kms_contract.d.ts +59 -0
- package/dist/actions/kms/get_kms_list.d.ts +25 -10
- package/dist/actions/kms/get_kms_onchain_detail.d.ts +54 -0
- package/dist/actions/kms/list_kms_contract_nodes.d.ts +98 -0
- package/dist/actions/kms/list_kms_contracts.d.ts +152 -0
- package/dist/actions/kms/next_app_ids.d.ts +6 -6
- package/dist/actions/list-instance-types.d.ts +12 -12
- package/dist/actions/ssh_keys/create_ssh_key.d.ts +2 -2
- package/dist/actions/ssh_keys/list_ssh_keys.d.ts +4 -4
- package/dist/actions/workspaces/get_workspace.d.ts +4 -0
- package/dist/actions/workspaces/get_workspace_nodes.d.ts +175 -14
- package/dist/actions/workspaces/list_workspaces.d.ts +126 -0
- package/dist/client.d.ts +4 -1
- package/dist/create-client.d.ts +48 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1779 -1250
- package/dist/index.mjs +1704 -1194
- package/dist/types/app_compose.d.ts +50 -5
- package/dist/types/app_info_v20251028.d.ts +172 -128
- package/dist/types/app_info_v20260121.d.ts +2814 -490
- package/dist/types/app_revision.d.ts +8 -8
- package/dist/types/client.d.ts +2 -2
- package/dist/types/cvm_id.d.ts +6 -6
- package/dist/types/cvm_info.d.ts +98 -98
- package/dist/types/cvm_info_v20251028.d.ts +70 -47
- package/dist/types/cvm_info_v20260121.d.ts +1125 -148
- package/dist/types/kms_contract.d.ts +64 -0
- package/dist/types/kms_info.d.ts +8 -0
- package/dist/types/version-mappings.d.ts +43 -6
- package/dist/utils/error_codes.d.ts +1 -0
- package/dist/utils/errors.d.ts +30 -1
- package/dist/utils/get_compose_hash.d.ts +24 -0
- package/dist/utils/get_mr_config_id.d.ts +55 -0
- package/dist/utils/index.d.ts +3 -2
- package/package.json +3 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { type Client, type SafeResult } from "../../client";
|
|
3
3
|
import type { ApiVersion } from "../../types/client";
|
|
4
|
+
import type { GetAppDeviceAllowlistResponse } from "../../types/version-mappings";
|
|
4
5
|
export declare const DeviceAllowlistItemV20260121Schema: z.ZodObject<{
|
|
5
6
|
device_id: z.ZodString;
|
|
6
7
|
node_name: z.ZodNullable<z.ZodString>;
|
|
@@ -12,14 +13,14 @@ export declare const DeviceAllowlistItemV20260121Schema: z.ZodObject<{
|
|
|
12
13
|
status: string;
|
|
13
14
|
device_id: string;
|
|
14
15
|
node_name: string | null;
|
|
15
|
-
cvm_ids: number[];
|
|
16
16
|
allowed_onchain: boolean;
|
|
17
|
+
cvm_ids: number[];
|
|
17
18
|
}, {
|
|
18
19
|
status: string;
|
|
19
20
|
device_id: string;
|
|
20
21
|
node_name: string | null;
|
|
21
|
-
cvm_ids: number[];
|
|
22
22
|
allowed_onchain: boolean;
|
|
23
|
+
cvm_ids: number[];
|
|
23
24
|
}>;
|
|
24
25
|
export type DeviceAllowlistItemV20260121 = z.infer<typeof DeviceAllowlistItemV20260121Schema>;
|
|
25
26
|
export declare const DeviceAllowlistItemV20260522Schema: z.ZodObject<{
|
|
@@ -33,14 +34,14 @@ export declare const DeviceAllowlistItemV20260522Schema: z.ZodObject<{
|
|
|
33
34
|
status: string;
|
|
34
35
|
device_id: string;
|
|
35
36
|
node_name: string | null;
|
|
36
|
-
cvm_ids: string[];
|
|
37
37
|
allowed_onchain: boolean;
|
|
38
|
+
cvm_ids: string[];
|
|
38
39
|
}, {
|
|
39
40
|
status: string;
|
|
40
41
|
device_id: string;
|
|
41
42
|
node_name: string | null;
|
|
42
|
-
cvm_ids: string[];
|
|
43
43
|
allowed_onchain: boolean;
|
|
44
|
+
cvm_ids: string[];
|
|
44
45
|
}>;
|
|
45
46
|
export type DeviceAllowlistItemV20260522 = z.infer<typeof DeviceAllowlistItemV20260522Schema>;
|
|
46
47
|
export declare const DeviceAllowlistResponseV20260121Schema: z.ZodObject<{
|
|
@@ -60,39 +61,39 @@ export declare const DeviceAllowlistResponseV20260121Schema: z.ZodObject<{
|
|
|
60
61
|
status: string;
|
|
61
62
|
device_id: string;
|
|
62
63
|
node_name: string | null;
|
|
63
|
-
cvm_ids: number[];
|
|
64
64
|
allowed_onchain: boolean;
|
|
65
|
+
cvm_ids: number[];
|
|
65
66
|
}, {
|
|
66
67
|
status: string;
|
|
67
68
|
device_id: string;
|
|
68
69
|
node_name: string | null;
|
|
69
|
-
cvm_ids: number[];
|
|
70
70
|
allowed_onchain: boolean;
|
|
71
|
+
cvm_ids: number[];
|
|
71
72
|
}>, "many">>>;
|
|
72
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
is_onchain_kms: boolean;
|
|
73
75
|
devices: {
|
|
74
76
|
status: string;
|
|
75
77
|
device_id: string;
|
|
76
78
|
node_name: string | null;
|
|
77
|
-
cvm_ids: number[];
|
|
78
79
|
allowed_onchain: boolean;
|
|
80
|
+
cvm_ids: number[];
|
|
79
81
|
}[];
|
|
80
|
-
is_onchain_kms: boolean;
|
|
81
|
-
chain_id?: number | null | undefined;
|
|
82
82
|
app_contract_address?: string | null | undefined;
|
|
83
83
|
allow_any_device?: boolean | null | undefined;
|
|
84
|
+
chain_id?: number | null | undefined;
|
|
84
85
|
}, {
|
|
85
86
|
is_onchain_kms: boolean;
|
|
87
|
+
app_contract_address?: string | null | undefined;
|
|
88
|
+
allow_any_device?: boolean | null | undefined;
|
|
86
89
|
chain_id?: number | null | undefined;
|
|
87
90
|
devices?: {
|
|
88
91
|
status: string;
|
|
89
92
|
device_id: string;
|
|
90
93
|
node_name: string | null;
|
|
91
|
-
cvm_ids: number[];
|
|
92
94
|
allowed_onchain: boolean;
|
|
95
|
+
cvm_ids: number[];
|
|
93
96
|
}[] | undefined;
|
|
94
|
-
app_contract_address?: string | null | undefined;
|
|
95
|
-
allow_any_device?: boolean | null | undefined;
|
|
96
97
|
}>;
|
|
97
98
|
export type DeviceAllowlistResponseV20260121 = z.infer<typeof DeviceAllowlistResponseV20260121Schema>;
|
|
98
99
|
export declare const DeviceAllowlistResponseV20260522Schema: z.ZodObject<{
|
|
@@ -112,39 +113,39 @@ export declare const DeviceAllowlistResponseV20260522Schema: z.ZodObject<{
|
|
|
112
113
|
status: string;
|
|
113
114
|
device_id: string;
|
|
114
115
|
node_name: string | null;
|
|
115
|
-
cvm_ids: string[];
|
|
116
116
|
allowed_onchain: boolean;
|
|
117
|
+
cvm_ids: string[];
|
|
117
118
|
}, {
|
|
118
119
|
status: string;
|
|
119
120
|
device_id: string;
|
|
120
121
|
node_name: string | null;
|
|
121
|
-
cvm_ids: string[];
|
|
122
122
|
allowed_onchain: boolean;
|
|
123
|
+
cvm_ids: string[];
|
|
123
124
|
}>, "many">>>;
|
|
124
125
|
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
is_onchain_kms: boolean;
|
|
125
127
|
devices: {
|
|
126
128
|
status: string;
|
|
127
129
|
device_id: string;
|
|
128
130
|
node_name: string | null;
|
|
129
|
-
cvm_ids: string[];
|
|
130
131
|
allowed_onchain: boolean;
|
|
132
|
+
cvm_ids: string[];
|
|
131
133
|
}[];
|
|
132
|
-
is_onchain_kms: boolean;
|
|
133
|
-
chain_id?: number | null | undefined;
|
|
134
134
|
app_contract_address?: string | null | undefined;
|
|
135
135
|
allow_any_device?: boolean | null | undefined;
|
|
136
|
+
chain_id?: number | null | undefined;
|
|
136
137
|
}, {
|
|
137
138
|
is_onchain_kms: boolean;
|
|
139
|
+
app_contract_address?: string | null | undefined;
|
|
140
|
+
allow_any_device?: boolean | null | undefined;
|
|
138
141
|
chain_id?: number | null | undefined;
|
|
139
142
|
devices?: {
|
|
140
143
|
status: string;
|
|
141
144
|
device_id: string;
|
|
142
145
|
node_name: string | null;
|
|
143
|
-
cvm_ids: string[];
|
|
144
146
|
allowed_onchain: boolean;
|
|
147
|
+
cvm_ids: string[];
|
|
145
148
|
}[] | undefined;
|
|
146
|
-
app_contract_address?: string | null | undefined;
|
|
147
|
-
allow_any_device?: boolean | null | undefined;
|
|
148
149
|
}>;
|
|
149
150
|
export type DeviceAllowlistResponseV20260522 = z.infer<typeof DeviceAllowlistResponseV20260522Schema>;
|
|
150
151
|
declare const DeviceAllowlistItemAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
@@ -158,14 +159,14 @@ declare const DeviceAllowlistItemAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
158
159
|
status: string;
|
|
159
160
|
device_id: string;
|
|
160
161
|
node_name: string | null;
|
|
161
|
-
cvm_ids: number[];
|
|
162
162
|
allowed_onchain: boolean;
|
|
163
|
+
cvm_ids: number[];
|
|
163
164
|
}, {
|
|
164
165
|
status: string;
|
|
165
166
|
device_id: string;
|
|
166
167
|
node_name: string | null;
|
|
167
|
-
cvm_ids: number[];
|
|
168
168
|
allowed_onchain: boolean;
|
|
169
|
+
cvm_ids: number[];
|
|
169
170
|
}>, z.ZodObject<{
|
|
170
171
|
device_id: z.ZodString;
|
|
171
172
|
node_name: z.ZodNullable<z.ZodString>;
|
|
@@ -177,14 +178,14 @@ declare const DeviceAllowlistItemAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
177
178
|
status: string;
|
|
178
179
|
device_id: string;
|
|
179
180
|
node_name: string | null;
|
|
180
|
-
cvm_ids: string[];
|
|
181
181
|
allowed_onchain: boolean;
|
|
182
|
+
cvm_ids: string[];
|
|
182
183
|
}, {
|
|
183
184
|
status: string;
|
|
184
185
|
device_id: string;
|
|
185
186
|
node_name: string | null;
|
|
186
|
-
cvm_ids: string[];
|
|
187
187
|
allowed_onchain: boolean;
|
|
188
|
+
cvm_ids: string[];
|
|
188
189
|
}>]>;
|
|
189
190
|
declare const DeviceAllowlistResponseAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
190
191
|
is_onchain_kms: z.ZodBoolean;
|
|
@@ -203,39 +204,39 @@ declare const DeviceAllowlistResponseAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
203
204
|
status: string;
|
|
204
205
|
device_id: string;
|
|
205
206
|
node_name: string | null;
|
|
206
|
-
cvm_ids: number[];
|
|
207
207
|
allowed_onchain: boolean;
|
|
208
|
+
cvm_ids: number[];
|
|
208
209
|
}, {
|
|
209
210
|
status: string;
|
|
210
211
|
device_id: string;
|
|
211
212
|
node_name: string | null;
|
|
212
|
-
cvm_ids: number[];
|
|
213
213
|
allowed_onchain: boolean;
|
|
214
|
+
cvm_ids: number[];
|
|
214
215
|
}>, "many">>>;
|
|
215
216
|
}, "strip", z.ZodTypeAny, {
|
|
217
|
+
is_onchain_kms: boolean;
|
|
216
218
|
devices: {
|
|
217
219
|
status: string;
|
|
218
220
|
device_id: string;
|
|
219
221
|
node_name: string | null;
|
|
220
|
-
cvm_ids: number[];
|
|
221
222
|
allowed_onchain: boolean;
|
|
223
|
+
cvm_ids: number[];
|
|
222
224
|
}[];
|
|
223
|
-
is_onchain_kms: boolean;
|
|
224
|
-
chain_id?: number | null | undefined;
|
|
225
225
|
app_contract_address?: string | null | undefined;
|
|
226
226
|
allow_any_device?: boolean | null | undefined;
|
|
227
|
+
chain_id?: number | null | undefined;
|
|
227
228
|
}, {
|
|
228
229
|
is_onchain_kms: boolean;
|
|
230
|
+
app_contract_address?: string | null | undefined;
|
|
231
|
+
allow_any_device?: boolean | null | undefined;
|
|
229
232
|
chain_id?: number | null | undefined;
|
|
230
233
|
devices?: {
|
|
231
234
|
status: string;
|
|
232
235
|
device_id: string;
|
|
233
236
|
node_name: string | null;
|
|
234
|
-
cvm_ids: number[];
|
|
235
237
|
allowed_onchain: boolean;
|
|
238
|
+
cvm_ids: number[];
|
|
236
239
|
}[] | undefined;
|
|
237
|
-
app_contract_address?: string | null | undefined;
|
|
238
|
-
allow_any_device?: boolean | null | undefined;
|
|
239
240
|
}>, z.ZodObject<{
|
|
240
241
|
is_onchain_kms: z.ZodBoolean;
|
|
241
242
|
allow_any_device: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -253,39 +254,39 @@ declare const DeviceAllowlistResponseAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
253
254
|
status: string;
|
|
254
255
|
device_id: string;
|
|
255
256
|
node_name: string | null;
|
|
256
|
-
cvm_ids: string[];
|
|
257
257
|
allowed_onchain: boolean;
|
|
258
|
+
cvm_ids: string[];
|
|
258
259
|
}, {
|
|
259
260
|
status: string;
|
|
260
261
|
device_id: string;
|
|
261
262
|
node_name: string | null;
|
|
262
|
-
cvm_ids: string[];
|
|
263
263
|
allowed_onchain: boolean;
|
|
264
|
+
cvm_ids: string[];
|
|
264
265
|
}>, "many">>>;
|
|
265
266
|
}, "strip", z.ZodTypeAny, {
|
|
267
|
+
is_onchain_kms: boolean;
|
|
266
268
|
devices: {
|
|
267
269
|
status: string;
|
|
268
270
|
device_id: string;
|
|
269
271
|
node_name: string | null;
|
|
270
|
-
cvm_ids: string[];
|
|
271
272
|
allowed_onchain: boolean;
|
|
273
|
+
cvm_ids: string[];
|
|
272
274
|
}[];
|
|
273
|
-
is_onchain_kms: boolean;
|
|
274
|
-
chain_id?: number | null | undefined;
|
|
275
275
|
app_contract_address?: string | null | undefined;
|
|
276
276
|
allow_any_device?: boolean | null | undefined;
|
|
277
|
+
chain_id?: number | null | undefined;
|
|
277
278
|
}, {
|
|
278
279
|
is_onchain_kms: boolean;
|
|
280
|
+
app_contract_address?: string | null | undefined;
|
|
281
|
+
allow_any_device?: boolean | null | undefined;
|
|
279
282
|
chain_id?: number | null | undefined;
|
|
280
283
|
devices?: {
|
|
281
284
|
status: string;
|
|
282
285
|
device_id: string;
|
|
283
286
|
node_name: string | null;
|
|
284
|
-
cvm_ids: string[];
|
|
285
287
|
allowed_onchain: boolean;
|
|
288
|
+
cvm_ids: string[];
|
|
286
289
|
}[] | undefined;
|
|
287
|
-
app_contract_address?: string | null | undefined;
|
|
288
|
-
allow_any_device?: boolean | null | undefined;
|
|
289
290
|
}>]>;
|
|
290
291
|
declare const DeviceAllowlistResponseSchema: z.ZodObject<{
|
|
291
292
|
is_onchain_kms: z.ZodBoolean;
|
|
@@ -304,39 +305,39 @@ declare const DeviceAllowlistResponseSchema: z.ZodObject<{
|
|
|
304
305
|
status: string;
|
|
305
306
|
device_id: string;
|
|
306
307
|
node_name: string | null;
|
|
307
|
-
cvm_ids: string[];
|
|
308
308
|
allowed_onchain: boolean;
|
|
309
|
+
cvm_ids: string[];
|
|
309
310
|
}, {
|
|
310
311
|
status: string;
|
|
311
312
|
device_id: string;
|
|
312
313
|
node_name: string | null;
|
|
313
|
-
cvm_ids: string[];
|
|
314
314
|
allowed_onchain: boolean;
|
|
315
|
+
cvm_ids: string[];
|
|
315
316
|
}>, "many">>>;
|
|
316
317
|
}, "strip", z.ZodTypeAny, {
|
|
318
|
+
is_onchain_kms: boolean;
|
|
317
319
|
devices: {
|
|
318
320
|
status: string;
|
|
319
321
|
device_id: string;
|
|
320
322
|
node_name: string | null;
|
|
321
|
-
cvm_ids: string[];
|
|
322
323
|
allowed_onchain: boolean;
|
|
324
|
+
cvm_ids: string[];
|
|
323
325
|
}[];
|
|
324
|
-
is_onchain_kms: boolean;
|
|
325
|
-
chain_id?: number | null | undefined;
|
|
326
326
|
app_contract_address?: string | null | undefined;
|
|
327
327
|
allow_any_device?: boolean | null | undefined;
|
|
328
|
+
chain_id?: number | null | undefined;
|
|
328
329
|
}, {
|
|
329
330
|
is_onchain_kms: boolean;
|
|
331
|
+
app_contract_address?: string | null | undefined;
|
|
332
|
+
allow_any_device?: boolean | null | undefined;
|
|
330
333
|
chain_id?: number | null | undefined;
|
|
331
334
|
devices?: {
|
|
332
335
|
status: string;
|
|
333
336
|
device_id: string;
|
|
334
337
|
node_name: string | null;
|
|
335
|
-
cvm_ids: string[];
|
|
336
338
|
allowed_onchain: boolean;
|
|
339
|
+
cvm_ids: string[];
|
|
337
340
|
}[] | undefined;
|
|
338
|
-
app_contract_address?: string | null | undefined;
|
|
339
|
-
allow_any_device?: boolean | null | undefined;
|
|
340
341
|
}>;
|
|
341
342
|
export type DeviceAllowlistItem = z.infer<typeof DeviceAllowlistItemV20260522Schema>;
|
|
342
343
|
export type DeviceAllowlistResponse = z.infer<typeof DeviceAllowlistResponseSchema>;
|
|
@@ -370,8 +371,8 @@ export type GetAppDeviceAllowlistRequest = z.infer<typeof GetAppDeviceAllowlistR
|
|
|
370
371
|
* }
|
|
371
372
|
* ```
|
|
372
373
|
*/
|
|
373
|
-
export declare function getAppDeviceAllowlist<V extends ApiVersion>(client: Client<V>, request: GetAppDeviceAllowlistRequest): Promise<
|
|
374
|
+
export declare function getAppDeviceAllowlist<V extends ApiVersion>(client: Client<V>, request: GetAppDeviceAllowlistRequest): Promise<GetAppDeviceAllowlistResponse<V>>;
|
|
374
375
|
/**
|
|
375
376
|
* Safe version of getAppDeviceAllowlist that returns a SafeResult instead of throwing
|
|
376
377
|
*/
|
|
377
|
-
export declare function safeGetAppDeviceAllowlist<V extends ApiVersion>(client: Client<V>, request: GetAppDeviceAllowlistRequest): Promise<SafeResult<
|
|
378
|
+
export declare function safeGetAppDeviceAllowlist<V extends ApiVersion>(client: Client<V>, request: GetAppDeviceAllowlistRequest): Promise<SafeResult<GetAppDeviceAllowlistResponse<V>>>;
|
|
@@ -16,10 +16,10 @@ export declare const GetAppListRequestSchema: z.ZodObject<{
|
|
|
16
16
|
region: z.ZodOptional<z.ZodString>;
|
|
17
17
|
}, "strict", z.ZodTypeAny, {
|
|
18
18
|
status?: string[] | undefined;
|
|
19
|
+
base_image?: string | undefined;
|
|
19
20
|
search?: string | undefined;
|
|
20
21
|
node?: string | undefined;
|
|
21
22
|
listed?: boolean | undefined;
|
|
22
|
-
base_image?: string | undefined;
|
|
23
23
|
instance_type?: string | undefined;
|
|
24
24
|
page?: number | undefined;
|
|
25
25
|
page_size?: number | undefined;
|
|
@@ -28,10 +28,10 @@ export declare const GetAppListRequestSchema: z.ZodObject<{
|
|
|
28
28
|
region?: string | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
status?: string[] | undefined;
|
|
31
|
+
base_image?: string | undefined;
|
|
31
32
|
search?: string | undefined;
|
|
32
33
|
node?: string | undefined;
|
|
33
34
|
listed?: boolean | undefined;
|
|
34
|
-
base_image?: string | undefined;
|
|
35
35
|
instance_type?: string | undefined;
|
|
36
36
|
page?: number | undefined;
|
|
37
37
|
page_size?: number | undefined;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { type Client, type SafeResult } from "../../client";
|
|
3
|
+
import type { ApiVersion } from "../../types/client";
|
|
4
|
+
import type { CheckCvmIsAllowedResponse } from "../../types/version-mappings";
|
|
2
5
|
export declare const IsAllowedResultV20260121Schema: z.ZodObject<{
|
|
3
6
|
app_contract_address: z.ZodString;
|
|
4
7
|
compose_hash: z.ZodString;
|
|
@@ -11,22 +14,22 @@ export declare const IsAllowedResultV20260121Schema: z.ZodObject<{
|
|
|
11
14
|
} & {
|
|
12
15
|
cvm_id: z.ZodOptional<z.ZodNumber>;
|
|
13
16
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
|
|
17
|
+
app_contract_address: string;
|
|
15
18
|
compose_hash: string;
|
|
19
|
+
device_id: string;
|
|
16
20
|
compose_hash_allowed: boolean;
|
|
17
|
-
is_allowed: boolean;
|
|
18
|
-
app_contract_address: string;
|
|
19
21
|
allow_any_device: boolean;
|
|
22
|
+
is_allowed: boolean;
|
|
20
23
|
error?: string | null | undefined;
|
|
21
24
|
device_id_allowed?: boolean | null | undefined;
|
|
22
25
|
cvm_id?: number | undefined;
|
|
23
26
|
}, {
|
|
24
|
-
|
|
27
|
+
app_contract_address: string;
|
|
25
28
|
compose_hash: string;
|
|
29
|
+
device_id: string;
|
|
26
30
|
compose_hash_allowed: boolean;
|
|
27
|
-
is_allowed: boolean;
|
|
28
|
-
app_contract_address: string;
|
|
29
31
|
allow_any_device: boolean;
|
|
32
|
+
is_allowed: boolean;
|
|
30
33
|
error?: string | null | undefined;
|
|
31
34
|
device_id_allowed?: boolean | null | undefined;
|
|
32
35
|
cvm_id?: number | undefined;
|
|
@@ -44,22 +47,22 @@ export declare const IsAllowedResultV20260522Schema: z.ZodObject<{
|
|
|
44
47
|
} & {
|
|
45
48
|
cvm_id: z.ZodOptional<z.ZodString>;
|
|
46
49
|
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
|
|
50
|
+
app_contract_address: string;
|
|
48
51
|
compose_hash: string;
|
|
52
|
+
device_id: string;
|
|
49
53
|
compose_hash_allowed: boolean;
|
|
50
|
-
is_allowed: boolean;
|
|
51
|
-
app_contract_address: string;
|
|
52
54
|
allow_any_device: boolean;
|
|
55
|
+
is_allowed: boolean;
|
|
53
56
|
error?: string | null | undefined;
|
|
54
57
|
device_id_allowed?: boolean | null | undefined;
|
|
55
58
|
cvm_id?: string | undefined;
|
|
56
59
|
}, {
|
|
57
|
-
|
|
60
|
+
app_contract_address: string;
|
|
58
61
|
compose_hash: string;
|
|
62
|
+
device_id: string;
|
|
59
63
|
compose_hash_allowed: boolean;
|
|
60
|
-
is_allowed: boolean;
|
|
61
|
-
app_contract_address: string;
|
|
62
64
|
allow_any_device: boolean;
|
|
65
|
+
is_allowed: boolean;
|
|
63
66
|
error?: string | null | undefined;
|
|
64
67
|
device_id_allowed?: boolean | null | undefined;
|
|
65
68
|
cvm_id?: string | undefined;
|
|
@@ -77,22 +80,22 @@ export declare const IsAllowedResultAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
77
80
|
} & {
|
|
78
81
|
cvm_id: z.ZodOptional<z.ZodNumber>;
|
|
79
82
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
-
|
|
83
|
+
app_contract_address: string;
|
|
81
84
|
compose_hash: string;
|
|
85
|
+
device_id: string;
|
|
82
86
|
compose_hash_allowed: boolean;
|
|
83
|
-
is_allowed: boolean;
|
|
84
|
-
app_contract_address: string;
|
|
85
87
|
allow_any_device: boolean;
|
|
88
|
+
is_allowed: boolean;
|
|
86
89
|
error?: string | null | undefined;
|
|
87
90
|
device_id_allowed?: boolean | null | undefined;
|
|
88
91
|
cvm_id?: number | undefined;
|
|
89
92
|
}, {
|
|
90
|
-
|
|
93
|
+
app_contract_address: string;
|
|
91
94
|
compose_hash: string;
|
|
95
|
+
device_id: string;
|
|
92
96
|
compose_hash_allowed: boolean;
|
|
93
|
-
is_allowed: boolean;
|
|
94
|
-
app_contract_address: string;
|
|
95
97
|
allow_any_device: boolean;
|
|
98
|
+
is_allowed: boolean;
|
|
96
99
|
error?: string | null | undefined;
|
|
97
100
|
device_id_allowed?: boolean | null | undefined;
|
|
98
101
|
cvm_id?: number | undefined;
|
|
@@ -108,22 +111,22 @@ export declare const IsAllowedResultAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
108
111
|
} & {
|
|
109
112
|
cvm_id: z.ZodOptional<z.ZodString>;
|
|
110
113
|
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
|
|
114
|
+
app_contract_address: string;
|
|
112
115
|
compose_hash: string;
|
|
116
|
+
device_id: string;
|
|
113
117
|
compose_hash_allowed: boolean;
|
|
114
|
-
is_allowed: boolean;
|
|
115
|
-
app_contract_address: string;
|
|
116
118
|
allow_any_device: boolean;
|
|
119
|
+
is_allowed: boolean;
|
|
117
120
|
error?: string | null | undefined;
|
|
118
121
|
device_id_allowed?: boolean | null | undefined;
|
|
119
122
|
cvm_id?: string | undefined;
|
|
120
123
|
}, {
|
|
121
|
-
|
|
124
|
+
app_contract_address: string;
|
|
122
125
|
compose_hash: string;
|
|
126
|
+
device_id: string;
|
|
123
127
|
compose_hash_allowed: boolean;
|
|
124
|
-
is_allowed: boolean;
|
|
125
|
-
app_contract_address: string;
|
|
126
128
|
allow_any_device: boolean;
|
|
129
|
+
is_allowed: boolean;
|
|
127
130
|
error?: string | null | undefined;
|
|
128
131
|
device_id_allowed?: boolean | null | undefined;
|
|
129
132
|
cvm_id?: string | undefined;
|
|
@@ -140,22 +143,22 @@ export declare const IsAllowedResultSchema: z.ZodObject<{
|
|
|
140
143
|
} & {
|
|
141
144
|
cvm_id: z.ZodOptional<z.ZodString>;
|
|
142
145
|
}, "strip", z.ZodTypeAny, {
|
|
143
|
-
|
|
146
|
+
app_contract_address: string;
|
|
144
147
|
compose_hash: string;
|
|
148
|
+
device_id: string;
|
|
145
149
|
compose_hash_allowed: boolean;
|
|
146
|
-
is_allowed: boolean;
|
|
147
|
-
app_contract_address: string;
|
|
148
150
|
allow_any_device: boolean;
|
|
151
|
+
is_allowed: boolean;
|
|
149
152
|
error?: string | null | undefined;
|
|
150
153
|
device_id_allowed?: boolean | null | undefined;
|
|
151
154
|
cvm_id?: string | undefined;
|
|
152
155
|
}, {
|
|
153
|
-
|
|
156
|
+
app_contract_address: string;
|
|
154
157
|
compose_hash: string;
|
|
158
|
+
device_id: string;
|
|
155
159
|
compose_hash_allowed: boolean;
|
|
156
|
-
is_allowed: boolean;
|
|
157
|
-
app_contract_address: string;
|
|
158
160
|
allow_any_device: boolean;
|
|
161
|
+
is_allowed: boolean;
|
|
159
162
|
error?: string | null | undefined;
|
|
160
163
|
device_id_allowed?: boolean | null | undefined;
|
|
161
164
|
cvm_id?: string | undefined;
|
|
@@ -168,13 +171,13 @@ declare const CheckCvmIsAllowedInputSchema: z.ZodObject<{
|
|
|
168
171
|
device_id: z.ZodOptional<z.ZodString>;
|
|
169
172
|
}, "strip", z.ZodTypeAny, {
|
|
170
173
|
cvmId: string;
|
|
171
|
-
device_id?: string | undefined;
|
|
172
174
|
compose_hash?: string | undefined;
|
|
175
|
+
device_id?: string | undefined;
|
|
173
176
|
node_id?: number | undefined;
|
|
174
177
|
}, {
|
|
175
178
|
cvmId: string;
|
|
176
|
-
device_id?: string | undefined;
|
|
177
179
|
compose_hash?: string | undefined;
|
|
180
|
+
device_id?: string | undefined;
|
|
178
181
|
node_id?: number | undefined;
|
|
179
182
|
}>;
|
|
180
183
|
export declare const CheckCvmIsAllowedRequestSchema: z.ZodObject<{
|
|
@@ -184,13 +187,13 @@ export declare const CheckCvmIsAllowedRequestSchema: z.ZodObject<{
|
|
|
184
187
|
device_id: z.ZodOptional<z.ZodString>;
|
|
185
188
|
}, "strip", z.ZodTypeAny, {
|
|
186
189
|
cvmId: string;
|
|
187
|
-
device_id?: string | undefined;
|
|
188
190
|
compose_hash?: string | undefined;
|
|
191
|
+
device_id?: string | undefined;
|
|
189
192
|
node_id?: number | undefined;
|
|
190
193
|
}, {
|
|
191
194
|
cvmId: string;
|
|
192
|
-
device_id?: string | undefined;
|
|
193
195
|
compose_hash?: string | undefined;
|
|
196
|
+
device_id?: string | undefined;
|
|
194
197
|
node_id?: number | undefined;
|
|
195
198
|
}>;
|
|
196
199
|
export type CheckCvmIsAllowedRequest = z.infer<typeof CheckCvmIsAllowedInputSchema>;
|
|
@@ -205,71 +208,6 @@ export type CheckCvmIsAllowedRequest = z.infer<typeof CheckCvmIsAllowedInputSche
|
|
|
205
208
|
* @param request.device_id - Optional device ID override
|
|
206
209
|
* @returns On-chain allowance check result
|
|
207
210
|
*/
|
|
208
|
-
declare
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
device_id?: string | undefined;
|
|
212
|
-
compose_hash?: string | undefined;
|
|
213
|
-
node_id?: number | undefined;
|
|
214
|
-
}): Promise<{
|
|
215
|
-
device_id: string;
|
|
216
|
-
compose_hash: string;
|
|
217
|
-
compose_hash_allowed: boolean;
|
|
218
|
-
is_allowed: boolean;
|
|
219
|
-
app_contract_address: string;
|
|
220
|
-
allow_any_device: boolean;
|
|
221
|
-
error?: string | null | undefined;
|
|
222
|
-
device_id_allowed?: boolean | null | undefined;
|
|
223
|
-
cvm_id?: string | undefined;
|
|
224
|
-
}>;
|
|
225
|
-
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
226
|
-
cvmId: string;
|
|
227
|
-
device_id?: string | undefined;
|
|
228
|
-
compose_hash?: string | undefined;
|
|
229
|
-
node_id?: number | undefined;
|
|
230
|
-
}, parameters: {
|
|
231
|
-
schema: T;
|
|
232
|
-
}): Promise<z.TypeOf<T>>;
|
|
233
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
234
|
-
cvmId: string;
|
|
235
|
-
device_id?: string | undefined;
|
|
236
|
-
compose_hash?: string | undefined;
|
|
237
|
-
node_id?: number | undefined;
|
|
238
|
-
}, parameters: {
|
|
239
|
-
schema: false;
|
|
240
|
-
}): Promise<unknown>;
|
|
241
|
-
}, safeCheckCvmIsAllowed: {
|
|
242
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
243
|
-
cvmId: string;
|
|
244
|
-
device_id?: string | undefined;
|
|
245
|
-
compose_hash?: string | undefined;
|
|
246
|
-
node_id?: number | undefined;
|
|
247
|
-
}): Promise<import("../..").SafeResult<{
|
|
248
|
-
device_id: string;
|
|
249
|
-
compose_hash: string;
|
|
250
|
-
compose_hash_allowed: boolean;
|
|
251
|
-
is_allowed: boolean;
|
|
252
|
-
app_contract_address: string;
|
|
253
|
-
allow_any_device: boolean;
|
|
254
|
-
error?: string | null | undefined;
|
|
255
|
-
device_id_allowed?: boolean | null | undefined;
|
|
256
|
-
cvm_id?: string | undefined;
|
|
257
|
-
}>>;
|
|
258
|
-
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
259
|
-
cvmId: string;
|
|
260
|
-
device_id?: string | undefined;
|
|
261
|
-
compose_hash?: string | undefined;
|
|
262
|
-
node_id?: number | undefined;
|
|
263
|
-
}, parameters: {
|
|
264
|
-
schema: T;
|
|
265
|
-
}): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
266
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
267
|
-
cvmId: string;
|
|
268
|
-
device_id?: string | undefined;
|
|
269
|
-
compose_hash?: string | undefined;
|
|
270
|
-
node_id?: number | undefined;
|
|
271
|
-
}, parameters: {
|
|
272
|
-
schema: false;
|
|
273
|
-
}): Promise<import("../..").SafeResult<unknown>>;
|
|
274
|
-
};
|
|
275
|
-
export { checkCvmIsAllowed, safeCheckCvmIsAllowed };
|
|
211
|
+
export declare function checkCvmIsAllowed<V extends ApiVersion>(client: Client<V>, request: CheckCvmIsAllowedRequest): Promise<CheckCvmIsAllowedResponse<V>>;
|
|
212
|
+
export declare function safeCheckCvmIsAllowed<V extends ApiVersion>(client: Client<V>, request: CheckCvmIsAllowedRequest): Promise<SafeResult<CheckCvmIsAllowedResponse<V>>>;
|
|
213
|
+
export {};
|
|
@@ -81,38 +81,38 @@ export declare const CommitCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.Zod
|
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
82
|
compose_hash: string;
|
|
83
83
|
id?: string | undefined;
|
|
84
|
+
uuid?: string | undefined;
|
|
84
85
|
app_id?: string | undefined;
|
|
85
86
|
instance_id?: string | undefined;
|
|
86
|
-
uuid?: string | undefined;
|
|
87
|
-
env_keys?: string[] | undefined;
|
|
88
87
|
encrypted_env?: string | undefined;
|
|
88
|
+
env_keys?: string[] | undefined;
|
|
89
89
|
update_env_vars?: boolean | null | undefined;
|
|
90
90
|
}, {
|
|
91
91
|
compose_hash: string;
|
|
92
92
|
id?: string | undefined;
|
|
93
|
+
uuid?: string | undefined;
|
|
93
94
|
app_id?: string | undefined;
|
|
94
95
|
instance_id?: string | undefined;
|
|
95
|
-
uuid?: string | undefined;
|
|
96
|
-
env_keys?: string[] | undefined;
|
|
97
96
|
encrypted_env?: string | undefined;
|
|
97
|
+
env_keys?: string[] | undefined;
|
|
98
98
|
update_env_vars?: boolean | null | undefined;
|
|
99
99
|
}>, {
|
|
100
100
|
compose_hash: string;
|
|
101
101
|
id?: string | undefined;
|
|
102
|
+
uuid?: string | undefined;
|
|
102
103
|
app_id?: string | undefined;
|
|
103
104
|
instance_id?: string | undefined;
|
|
104
|
-
uuid?: string | undefined;
|
|
105
|
-
env_keys?: string[] | undefined;
|
|
106
105
|
encrypted_env?: string | undefined;
|
|
106
|
+
env_keys?: string[] | undefined;
|
|
107
107
|
update_env_vars?: boolean | null | undefined;
|
|
108
108
|
}, {
|
|
109
109
|
compose_hash: string;
|
|
110
110
|
id?: string | undefined;
|
|
111
|
+
uuid?: string | undefined;
|
|
111
112
|
app_id?: string | undefined;
|
|
112
113
|
instance_id?: string | undefined;
|
|
113
|
-
uuid?: string | undefined;
|
|
114
|
-
env_keys?: string[] | undefined;
|
|
115
114
|
encrypted_env?: string | undefined;
|
|
115
|
+
env_keys?: string[] | undefined;
|
|
116
116
|
update_env_vars?: boolean | null | undefined;
|
|
117
117
|
}>, {
|
|
118
118
|
cvmId: string | undefined;
|
|
@@ -123,21 +123,21 @@ export declare const CommitCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.Zod
|
|
|
123
123
|
_raw: {
|
|
124
124
|
compose_hash: string;
|
|
125
125
|
id?: string | undefined;
|
|
126
|
+
uuid?: string | undefined;
|
|
126
127
|
app_id?: string | undefined;
|
|
127
128
|
instance_id?: string | undefined;
|
|
128
|
-
uuid?: string | undefined;
|
|
129
|
-
env_keys?: string[] | undefined;
|
|
130
129
|
encrypted_env?: string | undefined;
|
|
130
|
+
env_keys?: string[] | undefined;
|
|
131
131
|
update_env_vars?: boolean | null | undefined;
|
|
132
132
|
};
|
|
133
133
|
}, {
|
|
134
134
|
compose_hash: string;
|
|
135
135
|
id?: string | undefined;
|
|
136
|
+
uuid?: string | undefined;
|
|
136
137
|
app_id?: string | undefined;
|
|
137
138
|
instance_id?: string | undefined;
|
|
138
|
-
uuid?: string | undefined;
|
|
139
|
-
env_keys?: string[] | undefined;
|
|
140
139
|
encrypted_env?: string | undefined;
|
|
140
|
+
env_keys?: string[] | undefined;
|
|
141
141
|
update_env_vars?: boolean | null | undefined;
|
|
142
142
|
}>;
|
|
143
143
|
export declare const CommitCvmComposeFileUpdateSchema: z.ZodEffects<z.ZodAny, undefined, any>;
|