@phala/cloud 0.2.9 → 0.3.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.
Files changed (70) hide show
  1. package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +324 -75
  2. package/dist/actions/apps/check_app_is_allowed.d.ts +16 -16
  3. package/dist/actions/apps/create_app_instance.d.ts +33 -24
  4. package/dist/actions/apps/get_app_attestation.d.ts +82 -32
  5. package/dist/actions/apps/get_app_device_allowlist.d.ts +281 -11
  6. package/dist/actions/apps/get_app_filter_options.d.ts +2 -2
  7. package/dist/actions/apps/get_app_list.d.ts +2 -2
  8. package/dist/actions/cvms/check_cvm_is_allowed.d.ts +142 -74
  9. package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +12 -12
  10. package/dist/actions/cvms/commit_cvm_provision.d.ts +424 -277
  11. package/dist/actions/cvms/commit_cvm_update.d.ts +2 -2
  12. package/dist/actions/cvms/confirm_cvm_patch.d.ts +2 -2
  13. package/dist/actions/cvms/delete_cvm.d.ts +2 -2
  14. package/dist/actions/cvms/get_available_os_images.d.ts +2 -2
  15. package/dist/actions/cvms/get_cvm_attestation.d.ts +2 -2
  16. package/dist/actions/cvms/get_cvm_compose_file.d.ts +338 -10
  17. package/dist/actions/cvms/get_cvm_containers_stats.d.ts +10 -10
  18. package/dist/actions/cvms/get_cvm_docker_compose.d.ts +2 -2
  19. package/dist/actions/cvms/get_cvm_info.d.ts +2 -2
  20. package/dist/actions/cvms/get_cvm_list.d.ts +4 -4
  21. package/dist/actions/cvms/get_cvm_network.d.ts +2 -2
  22. package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +2 -2
  23. package/dist/actions/cvms/get_cvm_state.d.ts +6 -6
  24. package/dist/actions/cvms/get_cvm_stats.d.ts +2 -2
  25. package/dist/actions/cvms/get_cvm_status_batch.d.ts +6 -6
  26. package/dist/actions/cvms/get_cvm_user_config.d.ts +2 -2
  27. package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +93 -0
  28. package/dist/actions/cvms/patch_cvm.d.ts +18 -18
  29. package/dist/actions/cvms/provision_cvm.d.ts +243 -225
  30. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +254 -38
  31. package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +130 -43
  32. package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +294 -110
  33. package/dist/actions/cvms/replicate_cvm.d.ts +7 -72
  34. package/dist/actions/cvms/restart_cvm.d.ts +7 -72
  35. package/dist/actions/cvms/shutdown_cvm.d.ts +9 -72
  36. package/dist/actions/cvms/start_cvm.d.ts +7 -72
  37. package/dist/actions/cvms/stop_cvm.d.ts +7 -72
  38. package/dist/actions/cvms/update_cvm_envs.d.ts +20 -20
  39. package/dist/actions/cvms/update_cvm_resources.d.ts +2 -2
  40. package/dist/actions/cvms/update_cvm_visibility.d.ts +26 -26
  41. package/dist/actions/cvms/update_docker_compose.d.ts +20 -20
  42. package/dist/actions/cvms/update_os_image.d.ts +2 -2
  43. package/dist/actions/cvms/update_prelaunch_script.d.ts +20 -20
  44. package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +319 -0
  45. package/dist/actions/get_cvm_create_resources.d.ts +2412 -0
  46. package/dist/actions/index.d.ts +3 -0
  47. package/dist/actions/kms/get_kms_list.d.ts +10 -10
  48. package/dist/actions/kms/next_app_ids.d.ts +6 -6
  49. package/dist/actions/list-instance-types.d.ts +12 -12
  50. package/dist/actions/ssh_keys/create_ssh_key.d.ts +2 -2
  51. package/dist/actions/ssh_keys/list_ssh_keys.d.ts +4 -4
  52. package/dist/actions/workspaces/get_workspace.d.ts +2 -0
  53. package/dist/actions/workspaces/get_workspace_nodes.d.ts +14 -14
  54. package/dist/actions/workspaces/list_workspaces.d.ts +18 -0
  55. package/dist/client.d.ts +5 -2
  56. package/dist/create-client.d.ts +48 -0
  57. package/dist/index.js +1882 -1257
  58. package/dist/index.mjs +1850 -1255
  59. package/dist/types/app_compose.d.ts +125 -0
  60. package/dist/types/app_info_v20251028.d.ts +136 -259
  61. package/dist/types/app_info_v20260121.d.ts +4677 -345
  62. package/dist/types/app_revision.d.ts +8 -8
  63. package/dist/types/client.d.ts +2 -2
  64. package/dist/types/cvm_id.d.ts +6 -6
  65. package/dist/types/cvm_info.d.ts +536 -10
  66. package/dist/types/cvm_info_v20251028.d.ts +65 -65
  67. package/dist/types/cvm_info_v20260121.d.ts +1636 -85
  68. package/dist/types/version-mappings.d.ts +45 -8
  69. package/dist/utils/errors.d.ts +8 -1
  70. package/package.json +2 -2
@@ -1,6 +1,14 @@
1
1
  import { z } from "zod";
2
- export declare const AppCvmsBatchIsAllowedResponseSchema: z.ZodObject<{
2
+ import { type Client, type SafeResult } from "../../client";
3
+ import type { ApiVersion } from "../../types/client";
4
+ import type { CheckAppCvmsIsAllowedResponse } from "../../types/version-mappings";
5
+ export declare const AppCvmsBatchIsAllowedResponseV20260121Schema: z.ZodObject<{
3
6
  is_onchain: z.ZodBoolean;
7
+ total: z.ZodDefault<z.ZodNumber>;
8
+ allowed_count: z.ZodDefault<z.ZodNumber>;
9
+ denied_count: z.ZodDefault<z.ZodNumber>;
10
+ error_count: z.ZodDefault<z.ZodNumber>;
11
+ } & {
4
12
  results: z.ZodDefault<z.ZodArray<z.ZodObject<{
5
13
  app_contract_address: z.ZodString;
6
14
  compose_hash: z.ZodString;
@@ -13,67 +21,372 @@ export declare const AppCvmsBatchIsAllowedResponseSchema: z.ZodObject<{
13
21
  } & {
14
22
  cvm_id: z.ZodNumber;
15
23
  }, "strip", z.ZodTypeAny, {
16
- device_id: string;
24
+ app_contract_address: string;
17
25
  compose_hash: string;
26
+ device_id: string;
18
27
  compose_hash_allowed: boolean;
28
+ allow_any_device: boolean;
19
29
  is_allowed: boolean;
20
30
  cvm_id: number;
31
+ error?: string | null | undefined;
32
+ device_id_allowed?: boolean | null | undefined;
33
+ }, {
21
34
  app_contract_address: string;
35
+ compose_hash: string;
36
+ device_id: string;
37
+ compose_hash_allowed: boolean;
22
38
  allow_any_device: boolean;
39
+ is_allowed: boolean;
40
+ cvm_id: number;
23
41
  error?: string | null | undefined;
24
42
  device_id_allowed?: boolean | null | undefined;
25
- }, {
43
+ }>, "many">>;
44
+ skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ is_onchain: boolean;
47
+ total: number;
48
+ allowed_count: number;
49
+ denied_count: number;
50
+ error_count: number;
51
+ results: {
52
+ app_contract_address: string;
53
+ compose_hash: string;
26
54
  device_id: string;
55
+ compose_hash_allowed: boolean;
56
+ allow_any_device: boolean;
57
+ is_allowed: boolean;
58
+ cvm_id: number;
59
+ error?: string | null | undefined;
60
+ device_id_allowed?: boolean | null | undefined;
61
+ }[];
62
+ skipped_cvm_ids: number[];
63
+ }, {
64
+ is_onchain: boolean;
65
+ total?: number | undefined;
66
+ allowed_count?: number | undefined;
67
+ denied_count?: number | undefined;
68
+ error_count?: number | undefined;
69
+ results?: {
70
+ app_contract_address: string;
27
71
  compose_hash: string;
72
+ device_id: string;
28
73
  compose_hash_allowed: boolean;
74
+ allow_any_device: boolean;
29
75
  is_allowed: boolean;
30
76
  cvm_id: number;
77
+ error?: string | null | undefined;
78
+ device_id_allowed?: boolean | null | undefined;
79
+ }[] | undefined;
80
+ skipped_cvm_ids?: number[] | undefined;
81
+ }>;
82
+ export type AppCvmsBatchIsAllowedResponseV20260121 = z.infer<typeof AppCvmsBatchIsAllowedResponseV20260121Schema>;
83
+ export declare const AppCvmsBatchIsAllowedResponseV20260522Schema: z.ZodObject<{
84
+ is_onchain: z.ZodBoolean;
85
+ total: z.ZodDefault<z.ZodNumber>;
86
+ allowed_count: z.ZodDefault<z.ZodNumber>;
87
+ denied_count: z.ZodDefault<z.ZodNumber>;
88
+ error_count: z.ZodDefault<z.ZodNumber>;
89
+ } & {
90
+ results: z.ZodDefault<z.ZodArray<z.ZodObject<{
91
+ app_contract_address: z.ZodString;
92
+ compose_hash: z.ZodString;
93
+ device_id: z.ZodString;
94
+ compose_hash_allowed: z.ZodBoolean;
95
+ allow_any_device: z.ZodBoolean;
96
+ device_id_allowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
97
+ is_allowed: z.ZodBoolean;
98
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ } & {
100
+ cvm_id: z.ZodString;
101
+ }, "strip", z.ZodTypeAny, {
102
+ app_contract_address: string;
103
+ compose_hash: string;
104
+ device_id: string;
105
+ compose_hash_allowed: boolean;
106
+ allow_any_device: boolean;
107
+ is_allowed: boolean;
108
+ cvm_id: string;
109
+ error?: string | null | undefined;
110
+ device_id_allowed?: boolean | null | undefined;
111
+ }, {
31
112
  app_contract_address: string;
113
+ compose_hash: string;
114
+ device_id: string;
115
+ compose_hash_allowed: boolean;
32
116
  allow_any_device: boolean;
117
+ is_allowed: boolean;
118
+ cvm_id: string;
33
119
  error?: string | null | undefined;
34
120
  device_id_allowed?: boolean | null | undefined;
35
121
  }>, "many">>;
122
+ skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ is_onchain: boolean;
125
+ total: number;
126
+ allowed_count: number;
127
+ denied_count: number;
128
+ error_count: number;
129
+ results: {
130
+ app_contract_address: string;
131
+ compose_hash: string;
132
+ device_id: string;
133
+ compose_hash_allowed: boolean;
134
+ allow_any_device: boolean;
135
+ is_allowed: boolean;
136
+ cvm_id: string;
137
+ error?: string | null | undefined;
138
+ device_id_allowed?: boolean | null | undefined;
139
+ }[];
140
+ skipped_cvm_ids: string[];
141
+ }, {
142
+ is_onchain: boolean;
143
+ total?: number | undefined;
144
+ allowed_count?: number | undefined;
145
+ denied_count?: number | undefined;
146
+ error_count?: number | undefined;
147
+ results?: {
148
+ app_contract_address: string;
149
+ compose_hash: string;
150
+ device_id: string;
151
+ compose_hash_allowed: boolean;
152
+ allow_any_device: boolean;
153
+ is_allowed: boolean;
154
+ cvm_id: string;
155
+ error?: string | null | undefined;
156
+ device_id_allowed?: boolean | null | undefined;
157
+ }[] | undefined;
158
+ skipped_cvm_ids?: string[] | undefined;
159
+ }>;
160
+ export type AppCvmsBatchIsAllowedResponseV20260522 = z.infer<typeof AppCvmsBatchIsAllowedResponseV20260522Schema>;
161
+ export declare const AppCvmsBatchIsAllowedResponseAnySchema: z.ZodUnion<[z.ZodObject<{
162
+ is_onchain: z.ZodBoolean;
36
163
  total: z.ZodDefault<z.ZodNumber>;
37
164
  allowed_count: z.ZodDefault<z.ZodNumber>;
38
165
  denied_count: z.ZodDefault<z.ZodNumber>;
39
166
  error_count: z.ZodDefault<z.ZodNumber>;
167
+ } & {
168
+ results: z.ZodDefault<z.ZodArray<z.ZodObject<{
169
+ app_contract_address: z.ZodString;
170
+ compose_hash: z.ZodString;
171
+ device_id: z.ZodString;
172
+ compose_hash_allowed: z.ZodBoolean;
173
+ allow_any_device: z.ZodBoolean;
174
+ device_id_allowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
175
+ is_allowed: z.ZodBoolean;
176
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
177
+ } & {
178
+ cvm_id: z.ZodNumber;
179
+ }, "strip", z.ZodTypeAny, {
180
+ app_contract_address: string;
181
+ compose_hash: string;
182
+ device_id: string;
183
+ compose_hash_allowed: boolean;
184
+ allow_any_device: boolean;
185
+ is_allowed: boolean;
186
+ cvm_id: number;
187
+ error?: string | null | undefined;
188
+ device_id_allowed?: boolean | null | undefined;
189
+ }, {
190
+ app_contract_address: string;
191
+ compose_hash: string;
192
+ device_id: string;
193
+ compose_hash_allowed: boolean;
194
+ allow_any_device: boolean;
195
+ is_allowed: boolean;
196
+ cvm_id: number;
197
+ error?: string | null | undefined;
198
+ device_id_allowed?: boolean | null | undefined;
199
+ }>, "many">>;
40
200
  skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
41
201
  }, "strip", z.ZodTypeAny, {
42
- total: number;
43
202
  is_onchain: boolean;
203
+ total: number;
204
+ allowed_count: number;
205
+ denied_count: number;
206
+ error_count: number;
44
207
  results: {
208
+ app_contract_address: string;
209
+ compose_hash: string;
45
210
  device_id: string;
211
+ compose_hash_allowed: boolean;
212
+ allow_any_device: boolean;
213
+ is_allowed: boolean;
214
+ cvm_id: number;
215
+ error?: string | null | undefined;
216
+ device_id_allowed?: boolean | null | undefined;
217
+ }[];
218
+ skipped_cvm_ids: number[];
219
+ }, {
220
+ is_onchain: boolean;
221
+ total?: number | undefined;
222
+ allowed_count?: number | undefined;
223
+ denied_count?: number | undefined;
224
+ error_count?: number | undefined;
225
+ results?: {
226
+ app_contract_address: string;
46
227
  compose_hash: string;
228
+ device_id: string;
47
229
  compose_hash_allowed: boolean;
230
+ allow_any_device: boolean;
48
231
  is_allowed: boolean;
49
232
  cvm_id: number;
233
+ error?: string | null | undefined;
234
+ device_id_allowed?: boolean | null | undefined;
235
+ }[] | undefined;
236
+ skipped_cvm_ids?: number[] | undefined;
237
+ }>, z.ZodObject<{
238
+ is_onchain: z.ZodBoolean;
239
+ total: z.ZodDefault<z.ZodNumber>;
240
+ allowed_count: z.ZodDefault<z.ZodNumber>;
241
+ denied_count: z.ZodDefault<z.ZodNumber>;
242
+ error_count: z.ZodDefault<z.ZodNumber>;
243
+ } & {
244
+ results: z.ZodDefault<z.ZodArray<z.ZodObject<{
245
+ app_contract_address: z.ZodString;
246
+ compose_hash: z.ZodString;
247
+ device_id: z.ZodString;
248
+ compose_hash_allowed: z.ZodBoolean;
249
+ allow_any_device: z.ZodBoolean;
250
+ device_id_allowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
251
+ is_allowed: z.ZodBoolean;
252
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
+ } & {
254
+ cvm_id: z.ZodString;
255
+ }, "strip", z.ZodTypeAny, {
50
256
  app_contract_address: string;
257
+ compose_hash: string;
258
+ device_id: string;
259
+ compose_hash_allowed: boolean;
51
260
  allow_any_device: boolean;
261
+ is_allowed: boolean;
262
+ cvm_id: string;
52
263
  error?: string | null | undefined;
53
264
  device_id_allowed?: boolean | null | undefined;
54
- }[];
265
+ }, {
266
+ app_contract_address: string;
267
+ compose_hash: string;
268
+ device_id: string;
269
+ compose_hash_allowed: boolean;
270
+ allow_any_device: boolean;
271
+ is_allowed: boolean;
272
+ cvm_id: string;
273
+ error?: string | null | undefined;
274
+ device_id_allowed?: boolean | null | undefined;
275
+ }>, "many">>;
276
+ skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
277
+ }, "strip", z.ZodTypeAny, {
278
+ is_onchain: boolean;
279
+ total: number;
55
280
  allowed_count: number;
56
281
  denied_count: number;
57
282
  error_count: number;
58
- skipped_cvm_ids: number[];
283
+ results: {
284
+ app_contract_address: string;
285
+ compose_hash: string;
286
+ device_id: string;
287
+ compose_hash_allowed: boolean;
288
+ allow_any_device: boolean;
289
+ is_allowed: boolean;
290
+ cvm_id: string;
291
+ error?: string | null | undefined;
292
+ device_id_allowed?: boolean | null | undefined;
293
+ }[];
294
+ skipped_cvm_ids: string[];
59
295
  }, {
60
296
  is_onchain: boolean;
61
297
  total?: number | undefined;
298
+ allowed_count?: number | undefined;
299
+ denied_count?: number | undefined;
300
+ error_count?: number | undefined;
62
301
  results?: {
302
+ app_contract_address: string;
303
+ compose_hash: string;
63
304
  device_id: string;
305
+ compose_hash_allowed: boolean;
306
+ allow_any_device: boolean;
307
+ is_allowed: boolean;
308
+ cvm_id: string;
309
+ error?: string | null | undefined;
310
+ device_id_allowed?: boolean | null | undefined;
311
+ }[] | undefined;
312
+ skipped_cvm_ids?: string[] | undefined;
313
+ }>]>;
314
+ export declare const AppCvmsBatchIsAllowedResponseSchema: z.ZodObject<{
315
+ is_onchain: z.ZodBoolean;
316
+ total: z.ZodDefault<z.ZodNumber>;
317
+ allowed_count: z.ZodDefault<z.ZodNumber>;
318
+ denied_count: z.ZodDefault<z.ZodNumber>;
319
+ error_count: z.ZodDefault<z.ZodNumber>;
320
+ } & {
321
+ results: z.ZodDefault<z.ZodArray<z.ZodObject<{
322
+ app_contract_address: z.ZodString;
323
+ compose_hash: z.ZodString;
324
+ device_id: z.ZodString;
325
+ compose_hash_allowed: z.ZodBoolean;
326
+ allow_any_device: z.ZodBoolean;
327
+ device_id_allowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
328
+ is_allowed: z.ZodBoolean;
329
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
+ } & {
331
+ cvm_id: z.ZodString;
332
+ }, "strip", z.ZodTypeAny, {
333
+ app_contract_address: string;
64
334
  compose_hash: string;
335
+ device_id: string;
65
336
  compose_hash_allowed: boolean;
337
+ allow_any_device: boolean;
66
338
  is_allowed: boolean;
67
- cvm_id: number;
339
+ cvm_id: string;
340
+ error?: string | null | undefined;
341
+ device_id_allowed?: boolean | null | undefined;
342
+ }, {
68
343
  app_contract_address: string;
344
+ compose_hash: string;
345
+ device_id: string;
346
+ compose_hash_allowed: boolean;
69
347
  allow_any_device: boolean;
348
+ is_allowed: boolean;
349
+ cvm_id: string;
70
350
  error?: string | null | undefined;
71
351
  device_id_allowed?: boolean | null | undefined;
72
- }[] | undefined;
352
+ }>, "many">>;
353
+ skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
354
+ }, "strip", z.ZodTypeAny, {
355
+ is_onchain: boolean;
356
+ total: number;
357
+ allowed_count: number;
358
+ denied_count: number;
359
+ error_count: number;
360
+ results: {
361
+ app_contract_address: string;
362
+ compose_hash: string;
363
+ device_id: string;
364
+ compose_hash_allowed: boolean;
365
+ allow_any_device: boolean;
366
+ is_allowed: boolean;
367
+ cvm_id: string;
368
+ error?: string | null | undefined;
369
+ device_id_allowed?: boolean | null | undefined;
370
+ }[];
371
+ skipped_cvm_ids: string[];
372
+ }, {
373
+ is_onchain: boolean;
374
+ total?: number | undefined;
73
375
  allowed_count?: number | undefined;
74
376
  denied_count?: number | undefined;
75
377
  error_count?: number | undefined;
76
- skipped_cvm_ids?: number[] | undefined;
378
+ results?: {
379
+ app_contract_address: string;
380
+ compose_hash: string;
381
+ device_id: string;
382
+ compose_hash_allowed: boolean;
383
+ allow_any_device: boolean;
384
+ is_allowed: boolean;
385
+ cvm_id: string;
386
+ error?: string | null | undefined;
387
+ device_id_allowed?: boolean | null | undefined;
388
+ }[] | undefined;
389
+ skipped_cvm_ids?: string[] | undefined;
77
390
  }>;
78
391
  export type AppCvmsBatchIsAllowedResponse = z.infer<typeof AppCvmsBatchIsAllowedResponseSchema>;
79
392
  export declare const CheckAppCvmsIsAllowedRequestSchema: z.ZodObject<{
@@ -96,69 +409,5 @@ export type CheckAppCvmsIsAllowedRequest = z.infer<typeof CheckAppCvmsIsAllowedR
96
409
  * @param request.appId - The hex app identifier
97
410
  * @returns Batch allowance check results for all CVMs
98
411
  */
99
- declare const checkAppCvmsIsAllowed: {
100
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
101
- appId: string;
102
- }): Promise<{
103
- total: number;
104
- is_onchain: boolean;
105
- results: {
106
- device_id: string;
107
- compose_hash: string;
108
- compose_hash_allowed: boolean;
109
- is_allowed: boolean;
110
- cvm_id: number;
111
- app_contract_address: string;
112
- allow_any_device: boolean;
113
- error?: string | null | undefined;
114
- device_id_allowed?: boolean | null | undefined;
115
- }[];
116
- allowed_count: number;
117
- denied_count: number;
118
- error_count: number;
119
- skipped_cvm_ids: number[];
120
- }>;
121
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
122
- appId: string;
123
- }, parameters: {
124
- schema: T;
125
- }): Promise<z.TypeOf<T>>;
126
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
127
- appId: string;
128
- }, parameters: {
129
- schema: false;
130
- }): Promise<unknown>;
131
- }, safeCheckAppCvmsIsAllowed: {
132
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
133
- appId: string;
134
- }): Promise<import("../..").SafeResult<{
135
- total: number;
136
- is_onchain: boolean;
137
- results: {
138
- device_id: string;
139
- compose_hash: string;
140
- compose_hash_allowed: boolean;
141
- is_allowed: boolean;
142
- cvm_id: number;
143
- app_contract_address: string;
144
- allow_any_device: boolean;
145
- error?: string | null | undefined;
146
- device_id_allowed?: boolean | null | undefined;
147
- }[];
148
- allowed_count: number;
149
- denied_count: number;
150
- error_count: number;
151
- skipped_cvm_ids: number[];
152
- }>>;
153
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
154
- appId: string;
155
- }, parameters: {
156
- schema: T;
157
- }): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
158
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
159
- appId: string;
160
- }, parameters: {
161
- schema: false;
162
- }): Promise<import("../..").SafeResult<unknown>>;
163
- };
164
- 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,35 +37,35 @@ 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
- device_id: string;
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
- cvm_id?: number | undefined;
52
+ cvm_id?: string | undefined;
53
53
  }>;
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,35 +73,35 @@ 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
- device_id: string;
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
- cvm_id?: number | undefined;
88
+ cvm_id?: string | undefined;
89
89
  }>>;
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>>;