@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,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 { CheckAppCvmsIsAllowedResponse } from "../../types/version-mappings";
|
|
2
5
|
export declare const AppCvmsBatchIsAllowedResponseV20260121Schema: z.ZodObject<{
|
|
3
6
|
is_onchain: z.ZodBoolean;
|
|
4
7
|
total: z.ZodDefault<z.ZodNumber>;
|
|
@@ -18,62 +21,62 @@ export declare const AppCvmsBatchIsAllowedResponseV20260121Schema: z.ZodObject<{
|
|
|
18
21
|
} & {
|
|
19
22
|
cvm_id: z.ZodNumber;
|
|
20
23
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
|
|
24
|
+
app_contract_address: string;
|
|
22
25
|
compose_hash: string;
|
|
26
|
+
device_id: string;
|
|
23
27
|
compose_hash_allowed: boolean;
|
|
28
|
+
allow_any_device: boolean;
|
|
24
29
|
is_allowed: boolean;
|
|
25
30
|
cvm_id: number;
|
|
26
|
-
app_contract_address: string;
|
|
27
|
-
allow_any_device: boolean;
|
|
28
31
|
error?: string | null | undefined;
|
|
29
32
|
device_id_allowed?: boolean | null | undefined;
|
|
30
33
|
}, {
|
|
31
|
-
|
|
34
|
+
app_contract_address: string;
|
|
32
35
|
compose_hash: string;
|
|
36
|
+
device_id: string;
|
|
33
37
|
compose_hash_allowed: boolean;
|
|
38
|
+
allow_any_device: boolean;
|
|
34
39
|
is_allowed: boolean;
|
|
35
40
|
cvm_id: number;
|
|
36
|
-
app_contract_address: string;
|
|
37
|
-
allow_any_device: boolean;
|
|
38
41
|
error?: string | null | undefined;
|
|
39
42
|
device_id_allowed?: boolean | null | undefined;
|
|
40
43
|
}>, "many">>;
|
|
41
44
|
skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
42
45
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
total: number;
|
|
44
46
|
is_onchain: boolean;
|
|
47
|
+
total: number;
|
|
48
|
+
allowed_count: number;
|
|
49
|
+
denied_count: number;
|
|
50
|
+
error_count: number;
|
|
45
51
|
results: {
|
|
46
|
-
|
|
52
|
+
app_contract_address: string;
|
|
47
53
|
compose_hash: string;
|
|
54
|
+
device_id: string;
|
|
48
55
|
compose_hash_allowed: boolean;
|
|
56
|
+
allow_any_device: boolean;
|
|
49
57
|
is_allowed: boolean;
|
|
50
58
|
cvm_id: number;
|
|
51
|
-
app_contract_address: string;
|
|
52
|
-
allow_any_device: boolean;
|
|
53
59
|
error?: string | null | undefined;
|
|
54
60
|
device_id_allowed?: boolean | null | undefined;
|
|
55
61
|
}[];
|
|
56
|
-
allowed_count: number;
|
|
57
|
-
denied_count: number;
|
|
58
|
-
error_count: number;
|
|
59
62
|
skipped_cvm_ids: number[];
|
|
60
63
|
}, {
|
|
61
64
|
is_onchain: boolean;
|
|
62
65
|
total?: number | undefined;
|
|
66
|
+
allowed_count?: number | undefined;
|
|
67
|
+
denied_count?: number | undefined;
|
|
68
|
+
error_count?: number | undefined;
|
|
63
69
|
results?: {
|
|
64
|
-
|
|
70
|
+
app_contract_address: string;
|
|
65
71
|
compose_hash: string;
|
|
72
|
+
device_id: string;
|
|
66
73
|
compose_hash_allowed: boolean;
|
|
74
|
+
allow_any_device: boolean;
|
|
67
75
|
is_allowed: boolean;
|
|
68
76
|
cvm_id: number;
|
|
69
|
-
app_contract_address: string;
|
|
70
|
-
allow_any_device: boolean;
|
|
71
77
|
error?: string | null | undefined;
|
|
72
78
|
device_id_allowed?: boolean | null | undefined;
|
|
73
79
|
}[] | undefined;
|
|
74
|
-
allowed_count?: number | undefined;
|
|
75
|
-
denied_count?: number | undefined;
|
|
76
|
-
error_count?: number | undefined;
|
|
77
80
|
skipped_cvm_ids?: number[] | undefined;
|
|
78
81
|
}>;
|
|
79
82
|
export type AppCvmsBatchIsAllowedResponseV20260121 = z.infer<typeof AppCvmsBatchIsAllowedResponseV20260121Schema>;
|
|
@@ -96,62 +99,62 @@ export declare const AppCvmsBatchIsAllowedResponseV20260522Schema: z.ZodObject<{
|
|
|
96
99
|
} & {
|
|
97
100
|
cvm_id: z.ZodString;
|
|
98
101
|
}, "strip", z.ZodTypeAny, {
|
|
99
|
-
|
|
102
|
+
app_contract_address: string;
|
|
100
103
|
compose_hash: string;
|
|
104
|
+
device_id: string;
|
|
101
105
|
compose_hash_allowed: boolean;
|
|
106
|
+
allow_any_device: boolean;
|
|
102
107
|
is_allowed: boolean;
|
|
103
108
|
cvm_id: string;
|
|
104
|
-
app_contract_address: string;
|
|
105
|
-
allow_any_device: boolean;
|
|
106
109
|
error?: string | null | undefined;
|
|
107
110
|
device_id_allowed?: boolean | null | undefined;
|
|
108
111
|
}, {
|
|
109
|
-
|
|
112
|
+
app_contract_address: string;
|
|
110
113
|
compose_hash: string;
|
|
114
|
+
device_id: string;
|
|
111
115
|
compose_hash_allowed: boolean;
|
|
116
|
+
allow_any_device: boolean;
|
|
112
117
|
is_allowed: boolean;
|
|
113
118
|
cvm_id: string;
|
|
114
|
-
app_contract_address: string;
|
|
115
|
-
allow_any_device: boolean;
|
|
116
119
|
error?: string | null | undefined;
|
|
117
120
|
device_id_allowed?: boolean | null | undefined;
|
|
118
121
|
}>, "many">>;
|
|
119
122
|
skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
120
123
|
}, "strip", z.ZodTypeAny, {
|
|
121
|
-
total: number;
|
|
122
124
|
is_onchain: boolean;
|
|
125
|
+
total: number;
|
|
126
|
+
allowed_count: number;
|
|
127
|
+
denied_count: number;
|
|
128
|
+
error_count: number;
|
|
123
129
|
results: {
|
|
124
|
-
|
|
130
|
+
app_contract_address: string;
|
|
125
131
|
compose_hash: string;
|
|
132
|
+
device_id: string;
|
|
126
133
|
compose_hash_allowed: boolean;
|
|
134
|
+
allow_any_device: boolean;
|
|
127
135
|
is_allowed: boolean;
|
|
128
136
|
cvm_id: string;
|
|
129
|
-
app_contract_address: string;
|
|
130
|
-
allow_any_device: boolean;
|
|
131
137
|
error?: string | null | undefined;
|
|
132
138
|
device_id_allowed?: boolean | null | undefined;
|
|
133
139
|
}[];
|
|
134
|
-
allowed_count: number;
|
|
135
|
-
denied_count: number;
|
|
136
|
-
error_count: number;
|
|
137
140
|
skipped_cvm_ids: string[];
|
|
138
141
|
}, {
|
|
139
142
|
is_onchain: boolean;
|
|
140
143
|
total?: number | undefined;
|
|
144
|
+
allowed_count?: number | undefined;
|
|
145
|
+
denied_count?: number | undefined;
|
|
146
|
+
error_count?: number | undefined;
|
|
141
147
|
results?: {
|
|
142
|
-
|
|
148
|
+
app_contract_address: string;
|
|
143
149
|
compose_hash: string;
|
|
150
|
+
device_id: string;
|
|
144
151
|
compose_hash_allowed: boolean;
|
|
152
|
+
allow_any_device: boolean;
|
|
145
153
|
is_allowed: boolean;
|
|
146
154
|
cvm_id: string;
|
|
147
|
-
app_contract_address: string;
|
|
148
|
-
allow_any_device: boolean;
|
|
149
155
|
error?: string | null | undefined;
|
|
150
156
|
device_id_allowed?: boolean | null | undefined;
|
|
151
157
|
}[] | undefined;
|
|
152
|
-
allowed_count?: number | undefined;
|
|
153
|
-
denied_count?: number | undefined;
|
|
154
|
-
error_count?: number | undefined;
|
|
155
158
|
skipped_cvm_ids?: string[] | undefined;
|
|
156
159
|
}>;
|
|
157
160
|
export type AppCvmsBatchIsAllowedResponseV20260522 = z.infer<typeof AppCvmsBatchIsAllowedResponseV20260522Schema>;
|
|
@@ -174,62 +177,62 @@ export declare const AppCvmsBatchIsAllowedResponseAnySchema: z.ZodUnion<[z.ZodOb
|
|
|
174
177
|
} & {
|
|
175
178
|
cvm_id: z.ZodNumber;
|
|
176
179
|
}, "strip", z.ZodTypeAny, {
|
|
177
|
-
|
|
180
|
+
app_contract_address: string;
|
|
178
181
|
compose_hash: string;
|
|
182
|
+
device_id: string;
|
|
179
183
|
compose_hash_allowed: boolean;
|
|
184
|
+
allow_any_device: boolean;
|
|
180
185
|
is_allowed: boolean;
|
|
181
186
|
cvm_id: number;
|
|
182
|
-
app_contract_address: string;
|
|
183
|
-
allow_any_device: boolean;
|
|
184
187
|
error?: string | null | undefined;
|
|
185
188
|
device_id_allowed?: boolean | null | undefined;
|
|
186
189
|
}, {
|
|
187
|
-
|
|
190
|
+
app_contract_address: string;
|
|
188
191
|
compose_hash: string;
|
|
192
|
+
device_id: string;
|
|
189
193
|
compose_hash_allowed: boolean;
|
|
194
|
+
allow_any_device: boolean;
|
|
190
195
|
is_allowed: boolean;
|
|
191
196
|
cvm_id: number;
|
|
192
|
-
app_contract_address: string;
|
|
193
|
-
allow_any_device: boolean;
|
|
194
197
|
error?: string | null | undefined;
|
|
195
198
|
device_id_allowed?: boolean | null | undefined;
|
|
196
199
|
}>, "many">>;
|
|
197
200
|
skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
198
201
|
}, "strip", z.ZodTypeAny, {
|
|
199
|
-
total: number;
|
|
200
202
|
is_onchain: boolean;
|
|
203
|
+
total: number;
|
|
204
|
+
allowed_count: number;
|
|
205
|
+
denied_count: number;
|
|
206
|
+
error_count: number;
|
|
201
207
|
results: {
|
|
202
|
-
|
|
208
|
+
app_contract_address: string;
|
|
203
209
|
compose_hash: string;
|
|
210
|
+
device_id: string;
|
|
204
211
|
compose_hash_allowed: boolean;
|
|
212
|
+
allow_any_device: boolean;
|
|
205
213
|
is_allowed: boolean;
|
|
206
214
|
cvm_id: number;
|
|
207
|
-
app_contract_address: string;
|
|
208
|
-
allow_any_device: boolean;
|
|
209
215
|
error?: string | null | undefined;
|
|
210
216
|
device_id_allowed?: boolean | null | undefined;
|
|
211
217
|
}[];
|
|
212
|
-
allowed_count: number;
|
|
213
|
-
denied_count: number;
|
|
214
|
-
error_count: number;
|
|
215
218
|
skipped_cvm_ids: number[];
|
|
216
219
|
}, {
|
|
217
220
|
is_onchain: boolean;
|
|
218
221
|
total?: number | undefined;
|
|
222
|
+
allowed_count?: number | undefined;
|
|
223
|
+
denied_count?: number | undefined;
|
|
224
|
+
error_count?: number | undefined;
|
|
219
225
|
results?: {
|
|
220
|
-
|
|
226
|
+
app_contract_address: string;
|
|
221
227
|
compose_hash: string;
|
|
228
|
+
device_id: string;
|
|
222
229
|
compose_hash_allowed: boolean;
|
|
230
|
+
allow_any_device: boolean;
|
|
223
231
|
is_allowed: boolean;
|
|
224
232
|
cvm_id: number;
|
|
225
|
-
app_contract_address: string;
|
|
226
|
-
allow_any_device: boolean;
|
|
227
233
|
error?: string | null | undefined;
|
|
228
234
|
device_id_allowed?: boolean | null | undefined;
|
|
229
235
|
}[] | undefined;
|
|
230
|
-
allowed_count?: number | undefined;
|
|
231
|
-
denied_count?: number | undefined;
|
|
232
|
-
error_count?: number | undefined;
|
|
233
236
|
skipped_cvm_ids?: number[] | undefined;
|
|
234
237
|
}>, z.ZodObject<{
|
|
235
238
|
is_onchain: z.ZodBoolean;
|
|
@@ -250,62 +253,62 @@ export declare const AppCvmsBatchIsAllowedResponseAnySchema: z.ZodUnion<[z.ZodOb
|
|
|
250
253
|
} & {
|
|
251
254
|
cvm_id: z.ZodString;
|
|
252
255
|
}, "strip", z.ZodTypeAny, {
|
|
253
|
-
|
|
256
|
+
app_contract_address: string;
|
|
254
257
|
compose_hash: string;
|
|
258
|
+
device_id: string;
|
|
255
259
|
compose_hash_allowed: boolean;
|
|
260
|
+
allow_any_device: boolean;
|
|
256
261
|
is_allowed: boolean;
|
|
257
262
|
cvm_id: string;
|
|
258
|
-
app_contract_address: string;
|
|
259
|
-
allow_any_device: boolean;
|
|
260
263
|
error?: string | null | undefined;
|
|
261
264
|
device_id_allowed?: boolean | null | undefined;
|
|
262
265
|
}, {
|
|
263
|
-
|
|
266
|
+
app_contract_address: string;
|
|
264
267
|
compose_hash: string;
|
|
268
|
+
device_id: string;
|
|
265
269
|
compose_hash_allowed: boolean;
|
|
270
|
+
allow_any_device: boolean;
|
|
266
271
|
is_allowed: boolean;
|
|
267
272
|
cvm_id: string;
|
|
268
|
-
app_contract_address: string;
|
|
269
|
-
allow_any_device: boolean;
|
|
270
273
|
error?: string | null | undefined;
|
|
271
274
|
device_id_allowed?: boolean | null | undefined;
|
|
272
275
|
}>, "many">>;
|
|
273
276
|
skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
274
277
|
}, "strip", z.ZodTypeAny, {
|
|
275
|
-
total: number;
|
|
276
278
|
is_onchain: boolean;
|
|
279
|
+
total: number;
|
|
280
|
+
allowed_count: number;
|
|
281
|
+
denied_count: number;
|
|
282
|
+
error_count: number;
|
|
277
283
|
results: {
|
|
278
|
-
|
|
284
|
+
app_contract_address: string;
|
|
279
285
|
compose_hash: string;
|
|
286
|
+
device_id: string;
|
|
280
287
|
compose_hash_allowed: boolean;
|
|
288
|
+
allow_any_device: boolean;
|
|
281
289
|
is_allowed: boolean;
|
|
282
290
|
cvm_id: string;
|
|
283
|
-
app_contract_address: string;
|
|
284
|
-
allow_any_device: boolean;
|
|
285
291
|
error?: string | null | undefined;
|
|
286
292
|
device_id_allowed?: boolean | null | undefined;
|
|
287
293
|
}[];
|
|
288
|
-
allowed_count: number;
|
|
289
|
-
denied_count: number;
|
|
290
|
-
error_count: number;
|
|
291
294
|
skipped_cvm_ids: string[];
|
|
292
295
|
}, {
|
|
293
296
|
is_onchain: boolean;
|
|
294
297
|
total?: number | undefined;
|
|
298
|
+
allowed_count?: number | undefined;
|
|
299
|
+
denied_count?: number | undefined;
|
|
300
|
+
error_count?: number | undefined;
|
|
295
301
|
results?: {
|
|
296
|
-
|
|
302
|
+
app_contract_address: string;
|
|
297
303
|
compose_hash: string;
|
|
304
|
+
device_id: string;
|
|
298
305
|
compose_hash_allowed: boolean;
|
|
306
|
+
allow_any_device: boolean;
|
|
299
307
|
is_allowed: boolean;
|
|
300
308
|
cvm_id: string;
|
|
301
|
-
app_contract_address: string;
|
|
302
|
-
allow_any_device: boolean;
|
|
303
309
|
error?: string | null | undefined;
|
|
304
310
|
device_id_allowed?: boolean | null | undefined;
|
|
305
311
|
}[] | undefined;
|
|
306
|
-
allowed_count?: number | undefined;
|
|
307
|
-
denied_count?: number | undefined;
|
|
308
|
-
error_count?: number | undefined;
|
|
309
312
|
skipped_cvm_ids?: string[] | undefined;
|
|
310
313
|
}>]>;
|
|
311
314
|
export declare const AppCvmsBatchIsAllowedResponseSchema: z.ZodObject<{
|
|
@@ -327,62 +330,62 @@ export declare const AppCvmsBatchIsAllowedResponseSchema: z.ZodObject<{
|
|
|
327
330
|
} & {
|
|
328
331
|
cvm_id: z.ZodString;
|
|
329
332
|
}, "strip", z.ZodTypeAny, {
|
|
330
|
-
|
|
333
|
+
app_contract_address: string;
|
|
331
334
|
compose_hash: string;
|
|
335
|
+
device_id: string;
|
|
332
336
|
compose_hash_allowed: boolean;
|
|
337
|
+
allow_any_device: boolean;
|
|
333
338
|
is_allowed: boolean;
|
|
334
339
|
cvm_id: string;
|
|
335
|
-
app_contract_address: string;
|
|
336
|
-
allow_any_device: boolean;
|
|
337
340
|
error?: string | null | undefined;
|
|
338
341
|
device_id_allowed?: boolean | null | undefined;
|
|
339
342
|
}, {
|
|
340
|
-
|
|
343
|
+
app_contract_address: string;
|
|
341
344
|
compose_hash: string;
|
|
345
|
+
device_id: string;
|
|
342
346
|
compose_hash_allowed: boolean;
|
|
347
|
+
allow_any_device: boolean;
|
|
343
348
|
is_allowed: boolean;
|
|
344
349
|
cvm_id: string;
|
|
345
|
-
app_contract_address: string;
|
|
346
|
-
allow_any_device: boolean;
|
|
347
350
|
error?: string | null | undefined;
|
|
348
351
|
device_id_allowed?: boolean | null | undefined;
|
|
349
352
|
}>, "many">>;
|
|
350
353
|
skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
351
354
|
}, "strip", z.ZodTypeAny, {
|
|
352
|
-
total: number;
|
|
353
355
|
is_onchain: boolean;
|
|
356
|
+
total: number;
|
|
357
|
+
allowed_count: number;
|
|
358
|
+
denied_count: number;
|
|
359
|
+
error_count: number;
|
|
354
360
|
results: {
|
|
355
|
-
|
|
361
|
+
app_contract_address: string;
|
|
356
362
|
compose_hash: string;
|
|
363
|
+
device_id: string;
|
|
357
364
|
compose_hash_allowed: boolean;
|
|
365
|
+
allow_any_device: boolean;
|
|
358
366
|
is_allowed: boolean;
|
|
359
367
|
cvm_id: string;
|
|
360
|
-
app_contract_address: string;
|
|
361
|
-
allow_any_device: boolean;
|
|
362
368
|
error?: string | null | undefined;
|
|
363
369
|
device_id_allowed?: boolean | null | undefined;
|
|
364
370
|
}[];
|
|
365
|
-
allowed_count: number;
|
|
366
|
-
denied_count: number;
|
|
367
|
-
error_count: number;
|
|
368
371
|
skipped_cvm_ids: string[];
|
|
369
372
|
}, {
|
|
370
373
|
is_onchain: boolean;
|
|
371
374
|
total?: number | undefined;
|
|
375
|
+
allowed_count?: number | undefined;
|
|
376
|
+
denied_count?: number | undefined;
|
|
377
|
+
error_count?: number | undefined;
|
|
372
378
|
results?: {
|
|
373
|
-
|
|
379
|
+
app_contract_address: string;
|
|
374
380
|
compose_hash: string;
|
|
381
|
+
device_id: string;
|
|
375
382
|
compose_hash_allowed: boolean;
|
|
383
|
+
allow_any_device: boolean;
|
|
376
384
|
is_allowed: boolean;
|
|
377
385
|
cvm_id: string;
|
|
378
|
-
app_contract_address: string;
|
|
379
|
-
allow_any_device: boolean;
|
|
380
386
|
error?: string | null | undefined;
|
|
381
387
|
device_id_allowed?: boolean | null | undefined;
|
|
382
388
|
}[] | undefined;
|
|
383
|
-
allowed_count?: number | undefined;
|
|
384
|
-
denied_count?: number | undefined;
|
|
385
|
-
error_count?: number | undefined;
|
|
386
389
|
skipped_cvm_ids?: string[] | undefined;
|
|
387
390
|
}>;
|
|
388
391
|
export type AppCvmsBatchIsAllowedResponse = z.infer<typeof AppCvmsBatchIsAllowedResponseSchema>;
|
|
@@ -406,69 +409,5 @@ export type CheckAppCvmsIsAllowedRequest = z.infer<typeof CheckAppCvmsIsAllowedR
|
|
|
406
409
|
* @param request.appId - The hex app identifier
|
|
407
410
|
* @returns Batch allowance check results for all CVMs
|
|
408
411
|
*/
|
|
409
|
-
declare
|
|
410
|
-
|
|
411
|
-
appId: string;
|
|
412
|
-
}): Promise<{
|
|
413
|
-
total: number;
|
|
414
|
-
is_onchain: boolean;
|
|
415
|
-
results: {
|
|
416
|
-
device_id: string;
|
|
417
|
-
compose_hash: string;
|
|
418
|
-
compose_hash_allowed: boolean;
|
|
419
|
-
is_allowed: boolean;
|
|
420
|
-
cvm_id: string;
|
|
421
|
-
app_contract_address: string;
|
|
422
|
-
allow_any_device: boolean;
|
|
423
|
-
error?: string | null | undefined;
|
|
424
|
-
device_id_allowed?: boolean | null | undefined;
|
|
425
|
-
}[];
|
|
426
|
-
allowed_count: number;
|
|
427
|
-
denied_count: number;
|
|
428
|
-
error_count: number;
|
|
429
|
-
skipped_cvm_ids: string[];
|
|
430
|
-
}>;
|
|
431
|
-
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
432
|
-
appId: string;
|
|
433
|
-
}, parameters: {
|
|
434
|
-
schema: T;
|
|
435
|
-
}): Promise<z.TypeOf<T>>;
|
|
436
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
437
|
-
appId: string;
|
|
438
|
-
}, parameters: {
|
|
439
|
-
schema: false;
|
|
440
|
-
}): Promise<unknown>;
|
|
441
|
-
}, safeCheckAppCvmsIsAllowed: {
|
|
442
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
443
|
-
appId: string;
|
|
444
|
-
}): Promise<import("../..").SafeResult<{
|
|
445
|
-
total: number;
|
|
446
|
-
is_onchain: boolean;
|
|
447
|
-
results: {
|
|
448
|
-
device_id: string;
|
|
449
|
-
compose_hash: string;
|
|
450
|
-
compose_hash_allowed: boolean;
|
|
451
|
-
is_allowed: boolean;
|
|
452
|
-
cvm_id: string;
|
|
453
|
-
app_contract_address: string;
|
|
454
|
-
allow_any_device: boolean;
|
|
455
|
-
error?: string | null | undefined;
|
|
456
|
-
device_id_allowed?: boolean | null | undefined;
|
|
457
|
-
}[];
|
|
458
|
-
allowed_count: number;
|
|
459
|
-
denied_count: number;
|
|
460
|
-
error_count: number;
|
|
461
|
-
skipped_cvm_ids: string[];
|
|
462
|
-
}>>;
|
|
463
|
-
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
464
|
-
appId: string;
|
|
465
|
-
}, parameters: {
|
|
466
|
-
schema: T;
|
|
467
|
-
}): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
468
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
469
|
-
appId: string;
|
|
470
|
-
}, parameters: {
|
|
471
|
-
schema: false;
|
|
472
|
-
}): Promise<import("../..").SafeResult<unknown>>;
|
|
473
|
-
};
|
|
474
|
-
export { checkAppCvmsIsAllowed, safeCheckAppCvmsIsAllowed };
|
|
412
|
+
export declare function checkAppCvmsIsAllowed<V extends ApiVersion>(client: Client<V>, request: CheckAppCvmsIsAllowedRequest): Promise<CheckAppCvmsIsAllowedResponse<V>>;
|
|
413
|
+
export declare function safeCheckAppCvmsIsAllowed<V extends ApiVersion>(client: Client<V>, request: CheckAppCvmsIsAllowedRequest): Promise<SafeResult<CheckAppCvmsIsAllowedResponse<V>>>;
|
|
@@ -8,15 +8,15 @@ export declare const CheckAppIsAllowedRequestSchema: z.ZodObject<{
|
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
compose_hash: string;
|
|
10
10
|
appId: string;
|
|
11
|
-
chain_id?: number | undefined;
|
|
12
11
|
device_id?: string | undefined;
|
|
13
12
|
node_id?: number | undefined;
|
|
13
|
+
chain_id?: number | undefined;
|
|
14
14
|
}, {
|
|
15
15
|
compose_hash: string;
|
|
16
16
|
appId: string;
|
|
17
|
-
chain_id?: number | undefined;
|
|
18
17
|
device_id?: string | undefined;
|
|
19
18
|
node_id?: number | undefined;
|
|
19
|
+
chain_id?: number | undefined;
|
|
20
20
|
}>;
|
|
21
21
|
export type CheckAppIsAllowedRequest = z.infer<typeof CheckAppIsAllowedRequestSchema>;
|
|
22
22
|
/**
|
|
@@ -37,16 +37,16 @@ declare const checkAppIsAllowed: {
|
|
|
37
37
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
38
38
|
compose_hash: string;
|
|
39
39
|
appId: string;
|
|
40
|
-
chain_id?: number | undefined;
|
|
41
40
|
device_id?: string | undefined;
|
|
42
41
|
node_id?: number | undefined;
|
|
42
|
+
chain_id?: number | undefined;
|
|
43
43
|
}): Promise<{
|
|
44
|
-
|
|
44
|
+
app_contract_address: string;
|
|
45
45
|
compose_hash: string;
|
|
46
|
+
device_id: string;
|
|
46
47
|
compose_hash_allowed: boolean;
|
|
47
|
-
is_allowed: boolean;
|
|
48
|
-
app_contract_address: string;
|
|
49
48
|
allow_any_device: boolean;
|
|
49
|
+
is_allowed: boolean;
|
|
50
50
|
error?: string | null | undefined;
|
|
51
51
|
device_id_allowed?: boolean | null | undefined;
|
|
52
52
|
cvm_id?: string | undefined;
|
|
@@ -54,18 +54,18 @@ declare const checkAppIsAllowed: {
|
|
|
54
54
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
55
55
|
compose_hash: string;
|
|
56
56
|
appId: string;
|
|
57
|
-
chain_id?: number | undefined;
|
|
58
57
|
device_id?: string | undefined;
|
|
59
58
|
node_id?: number | undefined;
|
|
59
|
+
chain_id?: number | undefined;
|
|
60
60
|
}, parameters: {
|
|
61
61
|
schema: T;
|
|
62
62
|
}): Promise<z.TypeOf<T>>;
|
|
63
63
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
64
64
|
compose_hash: string;
|
|
65
65
|
appId: string;
|
|
66
|
-
chain_id?: number | undefined;
|
|
67
66
|
device_id?: string | undefined;
|
|
68
67
|
node_id?: number | undefined;
|
|
68
|
+
chain_id?: number | undefined;
|
|
69
69
|
}, parameters: {
|
|
70
70
|
schema: false;
|
|
71
71
|
}): Promise<unknown>;
|
|
@@ -73,16 +73,16 @@ declare const checkAppIsAllowed: {
|
|
|
73
73
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
74
74
|
compose_hash: string;
|
|
75
75
|
appId: string;
|
|
76
|
-
chain_id?: number | undefined;
|
|
77
76
|
device_id?: string | undefined;
|
|
78
77
|
node_id?: number | undefined;
|
|
78
|
+
chain_id?: number | undefined;
|
|
79
79
|
}): Promise<import("../..").SafeResult<{
|
|
80
|
-
|
|
80
|
+
app_contract_address: string;
|
|
81
81
|
compose_hash: string;
|
|
82
|
+
device_id: string;
|
|
82
83
|
compose_hash_allowed: boolean;
|
|
83
|
-
is_allowed: boolean;
|
|
84
|
-
app_contract_address: string;
|
|
85
84
|
allow_any_device: boolean;
|
|
85
|
+
is_allowed: boolean;
|
|
86
86
|
error?: string | null | undefined;
|
|
87
87
|
device_id_allowed?: boolean | null | undefined;
|
|
88
88
|
cvm_id?: string | undefined;
|
|
@@ -90,18 +90,18 @@ declare const checkAppIsAllowed: {
|
|
|
90
90
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
91
91
|
compose_hash: string;
|
|
92
92
|
appId: string;
|
|
93
|
-
chain_id?: number | undefined;
|
|
94
93
|
device_id?: string | undefined;
|
|
95
94
|
node_id?: number | undefined;
|
|
95
|
+
chain_id?: number | undefined;
|
|
96
96
|
}, parameters: {
|
|
97
97
|
schema: T;
|
|
98
98
|
}): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
99
99
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
100
100
|
compose_hash: string;
|
|
101
101
|
appId: string;
|
|
102
|
-
chain_id?: number | undefined;
|
|
103
102
|
device_id?: string | undefined;
|
|
104
103
|
node_id?: number | undefined;
|
|
104
|
+
chain_id?: number | undefined;
|
|
105
105
|
}, parameters: {
|
|
106
106
|
schema: false;
|
|
107
107
|
}): Promise<import("../..").SafeResult<unknown>>;
|