@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,12 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { type Client, type SafeResult } from "../../client";
|
|
3
3
|
import type { ApiVersion } from "../../types/client";
|
|
4
|
-
declare const
|
|
4
|
+
export declare const DeviceAllowlistItemV20260121Schema: z.ZodObject<{
|
|
5
5
|
device_id: z.ZodString;
|
|
6
6
|
node_name: z.ZodNullable<z.ZodString>;
|
|
7
|
-
cvm_ids: z.ZodArray<z.ZodNumber, "many">;
|
|
8
7
|
allowed_onchain: z.ZodBoolean;
|
|
9
8
|
status: z.ZodString;
|
|
9
|
+
} & {
|
|
10
|
+
cvm_ids: z.ZodArray<z.ZodNumber, "many">;
|
|
10
11
|
}, "strip", z.ZodTypeAny, {
|
|
11
12
|
status: string;
|
|
12
13
|
device_id: string;
|
|
@@ -20,17 +21,184 @@ declare const DeviceAllowlistItemSchema: z.ZodObject<{
|
|
|
20
21
|
cvm_ids: number[];
|
|
21
22
|
allowed_onchain: boolean;
|
|
22
23
|
}>;
|
|
23
|
-
|
|
24
|
+
export type DeviceAllowlistItemV20260121 = z.infer<typeof DeviceAllowlistItemV20260121Schema>;
|
|
25
|
+
export declare const DeviceAllowlistItemV20260522Schema: z.ZodObject<{
|
|
26
|
+
device_id: z.ZodString;
|
|
27
|
+
node_name: z.ZodNullable<z.ZodString>;
|
|
28
|
+
allowed_onchain: z.ZodBoolean;
|
|
29
|
+
status: z.ZodString;
|
|
30
|
+
} & {
|
|
31
|
+
cvm_ids: z.ZodArray<z.ZodString, "many">;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
status: string;
|
|
34
|
+
device_id: string;
|
|
35
|
+
node_name: string | null;
|
|
36
|
+
cvm_ids: string[];
|
|
37
|
+
allowed_onchain: boolean;
|
|
38
|
+
}, {
|
|
39
|
+
status: string;
|
|
40
|
+
device_id: string;
|
|
41
|
+
node_name: string | null;
|
|
42
|
+
cvm_ids: string[];
|
|
43
|
+
allowed_onchain: boolean;
|
|
44
|
+
}>;
|
|
45
|
+
export type DeviceAllowlistItemV20260522 = z.infer<typeof DeviceAllowlistItemV20260522Schema>;
|
|
46
|
+
export declare const DeviceAllowlistResponseV20260121Schema: z.ZodObject<{
|
|
24
47
|
is_onchain_kms: z.ZodBoolean;
|
|
25
48
|
allow_any_device: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
49
|
chain_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
50
|
app_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
} & {
|
|
28
52
|
devices: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
29
53
|
device_id: z.ZodString;
|
|
30
54
|
node_name: z.ZodNullable<z.ZodString>;
|
|
55
|
+
allowed_onchain: z.ZodBoolean;
|
|
56
|
+
status: z.ZodString;
|
|
57
|
+
} & {
|
|
31
58
|
cvm_ids: z.ZodArray<z.ZodNumber, "many">;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
status: string;
|
|
61
|
+
device_id: string;
|
|
62
|
+
node_name: string | null;
|
|
63
|
+
cvm_ids: number[];
|
|
64
|
+
allowed_onchain: boolean;
|
|
65
|
+
}, {
|
|
66
|
+
status: string;
|
|
67
|
+
device_id: string;
|
|
68
|
+
node_name: string | null;
|
|
69
|
+
cvm_ids: number[];
|
|
70
|
+
allowed_onchain: boolean;
|
|
71
|
+
}>, "many">>>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
devices: {
|
|
74
|
+
status: string;
|
|
75
|
+
device_id: string;
|
|
76
|
+
node_name: string | null;
|
|
77
|
+
cvm_ids: number[];
|
|
78
|
+
allowed_onchain: boolean;
|
|
79
|
+
}[];
|
|
80
|
+
is_onchain_kms: boolean;
|
|
81
|
+
chain_id?: number | null | undefined;
|
|
82
|
+
app_contract_address?: string | null | undefined;
|
|
83
|
+
allow_any_device?: boolean | null | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
is_onchain_kms: boolean;
|
|
86
|
+
chain_id?: number | null | undefined;
|
|
87
|
+
devices?: {
|
|
88
|
+
status: string;
|
|
89
|
+
device_id: string;
|
|
90
|
+
node_name: string | null;
|
|
91
|
+
cvm_ids: number[];
|
|
92
|
+
allowed_onchain: boolean;
|
|
93
|
+
}[] | undefined;
|
|
94
|
+
app_contract_address?: string | null | undefined;
|
|
95
|
+
allow_any_device?: boolean | null | undefined;
|
|
96
|
+
}>;
|
|
97
|
+
export type DeviceAllowlistResponseV20260121 = z.infer<typeof DeviceAllowlistResponseV20260121Schema>;
|
|
98
|
+
export declare const DeviceAllowlistResponseV20260522Schema: z.ZodObject<{
|
|
99
|
+
is_onchain_kms: z.ZodBoolean;
|
|
100
|
+
allow_any_device: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
101
|
+
chain_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
102
|
+
app_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
} & {
|
|
104
|
+
devices: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
|
+
device_id: z.ZodString;
|
|
106
|
+
node_name: z.ZodNullable<z.ZodString>;
|
|
32
107
|
allowed_onchain: z.ZodBoolean;
|
|
33
108
|
status: z.ZodString;
|
|
109
|
+
} & {
|
|
110
|
+
cvm_ids: z.ZodArray<z.ZodString, "many">;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
status: string;
|
|
113
|
+
device_id: string;
|
|
114
|
+
node_name: string | null;
|
|
115
|
+
cvm_ids: string[];
|
|
116
|
+
allowed_onchain: boolean;
|
|
117
|
+
}, {
|
|
118
|
+
status: string;
|
|
119
|
+
device_id: string;
|
|
120
|
+
node_name: string | null;
|
|
121
|
+
cvm_ids: string[];
|
|
122
|
+
allowed_onchain: boolean;
|
|
123
|
+
}>, "many">>>;
|
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
|
125
|
+
devices: {
|
|
126
|
+
status: string;
|
|
127
|
+
device_id: string;
|
|
128
|
+
node_name: string | null;
|
|
129
|
+
cvm_ids: string[];
|
|
130
|
+
allowed_onchain: boolean;
|
|
131
|
+
}[];
|
|
132
|
+
is_onchain_kms: boolean;
|
|
133
|
+
chain_id?: number | null | undefined;
|
|
134
|
+
app_contract_address?: string | null | undefined;
|
|
135
|
+
allow_any_device?: boolean | null | undefined;
|
|
136
|
+
}, {
|
|
137
|
+
is_onchain_kms: boolean;
|
|
138
|
+
chain_id?: number | null | undefined;
|
|
139
|
+
devices?: {
|
|
140
|
+
status: string;
|
|
141
|
+
device_id: string;
|
|
142
|
+
node_name: string | null;
|
|
143
|
+
cvm_ids: string[];
|
|
144
|
+
allowed_onchain: boolean;
|
|
145
|
+
}[] | undefined;
|
|
146
|
+
app_contract_address?: string | null | undefined;
|
|
147
|
+
allow_any_device?: boolean | null | undefined;
|
|
148
|
+
}>;
|
|
149
|
+
export type DeviceAllowlistResponseV20260522 = z.infer<typeof DeviceAllowlistResponseV20260522Schema>;
|
|
150
|
+
declare const DeviceAllowlistItemAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
151
|
+
device_id: z.ZodString;
|
|
152
|
+
node_name: z.ZodNullable<z.ZodString>;
|
|
153
|
+
allowed_onchain: z.ZodBoolean;
|
|
154
|
+
status: z.ZodString;
|
|
155
|
+
} & {
|
|
156
|
+
cvm_ids: z.ZodArray<z.ZodNumber, "many">;
|
|
157
|
+
}, "strip", z.ZodTypeAny, {
|
|
158
|
+
status: string;
|
|
159
|
+
device_id: string;
|
|
160
|
+
node_name: string | null;
|
|
161
|
+
cvm_ids: number[];
|
|
162
|
+
allowed_onchain: boolean;
|
|
163
|
+
}, {
|
|
164
|
+
status: string;
|
|
165
|
+
device_id: string;
|
|
166
|
+
node_name: string | null;
|
|
167
|
+
cvm_ids: number[];
|
|
168
|
+
allowed_onchain: boolean;
|
|
169
|
+
}>, z.ZodObject<{
|
|
170
|
+
device_id: z.ZodString;
|
|
171
|
+
node_name: z.ZodNullable<z.ZodString>;
|
|
172
|
+
allowed_onchain: z.ZodBoolean;
|
|
173
|
+
status: z.ZodString;
|
|
174
|
+
} & {
|
|
175
|
+
cvm_ids: z.ZodArray<z.ZodString, "many">;
|
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
|
177
|
+
status: string;
|
|
178
|
+
device_id: string;
|
|
179
|
+
node_name: string | null;
|
|
180
|
+
cvm_ids: string[];
|
|
181
|
+
allowed_onchain: boolean;
|
|
182
|
+
}, {
|
|
183
|
+
status: string;
|
|
184
|
+
device_id: string;
|
|
185
|
+
node_name: string | null;
|
|
186
|
+
cvm_ids: string[];
|
|
187
|
+
allowed_onchain: boolean;
|
|
188
|
+
}>]>;
|
|
189
|
+
declare const DeviceAllowlistResponseAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
190
|
+
is_onchain_kms: z.ZodBoolean;
|
|
191
|
+
allow_any_device: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
192
|
+
chain_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
193
|
+
app_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
194
|
+
} & {
|
|
195
|
+
devices: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
196
|
+
device_id: z.ZodString;
|
|
197
|
+
node_name: z.ZodNullable<z.ZodString>;
|
|
198
|
+
allowed_onchain: z.ZodBoolean;
|
|
199
|
+
status: z.ZodString;
|
|
200
|
+
} & {
|
|
201
|
+
cvm_ids: z.ZodArray<z.ZodNumber, "many">;
|
|
34
202
|
}, "strip", z.ZodTypeAny, {
|
|
35
203
|
status: string;
|
|
36
204
|
device_id: string;
|
|
@@ -68,9 +236,111 @@ declare const DeviceAllowlistResponseSchema: z.ZodObject<{
|
|
|
68
236
|
}[] | undefined;
|
|
69
237
|
app_contract_address?: string | null | undefined;
|
|
70
238
|
allow_any_device?: boolean | null | undefined;
|
|
239
|
+
}>, z.ZodObject<{
|
|
240
|
+
is_onchain_kms: z.ZodBoolean;
|
|
241
|
+
allow_any_device: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
242
|
+
chain_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
243
|
+
app_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
244
|
+
} & {
|
|
245
|
+
devices: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
246
|
+
device_id: z.ZodString;
|
|
247
|
+
node_name: z.ZodNullable<z.ZodString>;
|
|
248
|
+
allowed_onchain: z.ZodBoolean;
|
|
249
|
+
status: z.ZodString;
|
|
250
|
+
} & {
|
|
251
|
+
cvm_ids: z.ZodArray<z.ZodString, "many">;
|
|
252
|
+
}, "strip", z.ZodTypeAny, {
|
|
253
|
+
status: string;
|
|
254
|
+
device_id: string;
|
|
255
|
+
node_name: string | null;
|
|
256
|
+
cvm_ids: string[];
|
|
257
|
+
allowed_onchain: boolean;
|
|
258
|
+
}, {
|
|
259
|
+
status: string;
|
|
260
|
+
device_id: string;
|
|
261
|
+
node_name: string | null;
|
|
262
|
+
cvm_ids: string[];
|
|
263
|
+
allowed_onchain: boolean;
|
|
264
|
+
}>, "many">>>;
|
|
265
|
+
}, "strip", z.ZodTypeAny, {
|
|
266
|
+
devices: {
|
|
267
|
+
status: string;
|
|
268
|
+
device_id: string;
|
|
269
|
+
node_name: string | null;
|
|
270
|
+
cvm_ids: string[];
|
|
271
|
+
allowed_onchain: boolean;
|
|
272
|
+
}[];
|
|
273
|
+
is_onchain_kms: boolean;
|
|
274
|
+
chain_id?: number | null | undefined;
|
|
275
|
+
app_contract_address?: string | null | undefined;
|
|
276
|
+
allow_any_device?: boolean | null | undefined;
|
|
277
|
+
}, {
|
|
278
|
+
is_onchain_kms: boolean;
|
|
279
|
+
chain_id?: number | null | undefined;
|
|
280
|
+
devices?: {
|
|
281
|
+
status: string;
|
|
282
|
+
device_id: string;
|
|
283
|
+
node_name: string | null;
|
|
284
|
+
cvm_ids: string[];
|
|
285
|
+
allowed_onchain: boolean;
|
|
286
|
+
}[] | undefined;
|
|
287
|
+
app_contract_address?: string | null | undefined;
|
|
288
|
+
allow_any_device?: boolean | null | undefined;
|
|
289
|
+
}>]>;
|
|
290
|
+
declare const DeviceAllowlistResponseSchema: z.ZodObject<{
|
|
291
|
+
is_onchain_kms: z.ZodBoolean;
|
|
292
|
+
allow_any_device: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
293
|
+
chain_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
294
|
+
app_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
295
|
+
} & {
|
|
296
|
+
devices: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
297
|
+
device_id: z.ZodString;
|
|
298
|
+
node_name: z.ZodNullable<z.ZodString>;
|
|
299
|
+
allowed_onchain: z.ZodBoolean;
|
|
300
|
+
status: z.ZodString;
|
|
301
|
+
} & {
|
|
302
|
+
cvm_ids: z.ZodArray<z.ZodString, "many">;
|
|
303
|
+
}, "strip", z.ZodTypeAny, {
|
|
304
|
+
status: string;
|
|
305
|
+
device_id: string;
|
|
306
|
+
node_name: string | null;
|
|
307
|
+
cvm_ids: string[];
|
|
308
|
+
allowed_onchain: boolean;
|
|
309
|
+
}, {
|
|
310
|
+
status: string;
|
|
311
|
+
device_id: string;
|
|
312
|
+
node_name: string | null;
|
|
313
|
+
cvm_ids: string[];
|
|
314
|
+
allowed_onchain: boolean;
|
|
315
|
+
}>, "many">>>;
|
|
316
|
+
}, "strip", z.ZodTypeAny, {
|
|
317
|
+
devices: {
|
|
318
|
+
status: string;
|
|
319
|
+
device_id: string;
|
|
320
|
+
node_name: string | null;
|
|
321
|
+
cvm_ids: string[];
|
|
322
|
+
allowed_onchain: boolean;
|
|
323
|
+
}[];
|
|
324
|
+
is_onchain_kms: boolean;
|
|
325
|
+
chain_id?: number | null | undefined;
|
|
326
|
+
app_contract_address?: string | null | undefined;
|
|
327
|
+
allow_any_device?: boolean | null | undefined;
|
|
328
|
+
}, {
|
|
329
|
+
is_onchain_kms: boolean;
|
|
330
|
+
chain_id?: number | null | undefined;
|
|
331
|
+
devices?: {
|
|
332
|
+
status: string;
|
|
333
|
+
device_id: string;
|
|
334
|
+
node_name: string | null;
|
|
335
|
+
cvm_ids: string[];
|
|
336
|
+
allowed_onchain: boolean;
|
|
337
|
+
}[] | undefined;
|
|
338
|
+
app_contract_address?: string | null | undefined;
|
|
339
|
+
allow_any_device?: boolean | null | undefined;
|
|
71
340
|
}>;
|
|
72
|
-
export type DeviceAllowlistItem = z.infer<typeof
|
|
341
|
+
export type DeviceAllowlistItem = z.infer<typeof DeviceAllowlistItemV20260522Schema>;
|
|
73
342
|
export type DeviceAllowlistResponse = z.infer<typeof DeviceAllowlistResponseSchema>;
|
|
343
|
+
export { DeviceAllowlistItemAnySchema, DeviceAllowlistResponseAnySchema };
|
|
74
344
|
export declare const GetAppDeviceAllowlistRequestSchema: z.ZodObject<{
|
|
75
345
|
appId: z.ZodString;
|
|
76
346
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -105,4 +375,3 @@ export declare function getAppDeviceAllowlist<V extends ApiVersion>(client: Clie
|
|
|
105
375
|
* Safe version of getAppDeviceAllowlist that returns a SafeResult instead of throwing
|
|
106
376
|
*/
|
|
107
377
|
export declare function safeGetAppDeviceAllowlist<V extends ApiVersion>(client: Client<V>, request: GetAppDeviceAllowlistRequest): Promise<SafeResult<DeviceAllowlistResponse>>;
|
|
108
|
-
export {};
|
|
@@ -11,17 +11,17 @@ export declare const AppFilterOptionsSchema: z.ZodObject<{
|
|
|
11
11
|
nodes: z.ZodArray<z.ZodString, "many">;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
13
|
nodes: string[];
|
|
14
|
+
instance_types: string[];
|
|
14
15
|
statuses: string[];
|
|
15
16
|
image_versions: string[];
|
|
16
|
-
instance_types: string[];
|
|
17
17
|
kms_slugs: string[];
|
|
18
18
|
kms_types: string[];
|
|
19
19
|
regions: string[];
|
|
20
20
|
}, {
|
|
21
21
|
nodes: string[];
|
|
22
|
+
instance_types: string[];
|
|
22
23
|
statuses: string[];
|
|
23
24
|
image_versions: string[];
|
|
24
|
-
instance_types: string[];
|
|
25
25
|
kms_slugs: string[];
|
|
26
26
|
kms_types: string[];
|
|
27
27
|
regions: string[];
|
|
@@ -1,6 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const IsAllowedResultV20260121Schema: z.ZodObject<{
|
|
3
|
+
app_contract_address: z.ZodString;
|
|
4
|
+
compose_hash: z.ZodString;
|
|
5
|
+
device_id: z.ZodString;
|
|
6
|
+
compose_hash_allowed: z.ZodBoolean;
|
|
7
|
+
allow_any_device: z.ZodBoolean;
|
|
8
|
+
device_id_allowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
9
|
+
is_allowed: z.ZodBoolean;
|
|
10
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
} & {
|
|
3
12
|
cvm_id: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
device_id: string;
|
|
15
|
+
compose_hash: string;
|
|
16
|
+
compose_hash_allowed: boolean;
|
|
17
|
+
is_allowed: boolean;
|
|
18
|
+
app_contract_address: string;
|
|
19
|
+
allow_any_device: boolean;
|
|
20
|
+
error?: string | null | undefined;
|
|
21
|
+
device_id_allowed?: boolean | null | undefined;
|
|
22
|
+
cvm_id?: number | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
device_id: string;
|
|
25
|
+
compose_hash: string;
|
|
26
|
+
compose_hash_allowed: boolean;
|
|
27
|
+
is_allowed: boolean;
|
|
28
|
+
app_contract_address: string;
|
|
29
|
+
allow_any_device: boolean;
|
|
30
|
+
error?: string | null | undefined;
|
|
31
|
+
device_id_allowed?: boolean | null | undefined;
|
|
32
|
+
cvm_id?: number | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
export type IsAllowedResultV20260121 = z.infer<typeof IsAllowedResultV20260121Schema>;
|
|
35
|
+
export declare const IsAllowedResultV20260522Schema: z.ZodObject<{
|
|
4
36
|
app_contract_address: z.ZodString;
|
|
5
37
|
compose_hash: z.ZodString;
|
|
6
38
|
device_id: z.ZodString;
|
|
@@ -9,6 +41,41 @@ export declare const IsAllowedResultSchema: z.ZodObject<{
|
|
|
9
41
|
device_id_allowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
10
42
|
is_allowed: z.ZodBoolean;
|
|
11
43
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
} & {
|
|
45
|
+
cvm_id: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
device_id: string;
|
|
48
|
+
compose_hash: string;
|
|
49
|
+
compose_hash_allowed: boolean;
|
|
50
|
+
is_allowed: boolean;
|
|
51
|
+
app_contract_address: string;
|
|
52
|
+
allow_any_device: boolean;
|
|
53
|
+
error?: string | null | undefined;
|
|
54
|
+
device_id_allowed?: boolean | null | undefined;
|
|
55
|
+
cvm_id?: string | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
device_id: string;
|
|
58
|
+
compose_hash: string;
|
|
59
|
+
compose_hash_allowed: boolean;
|
|
60
|
+
is_allowed: boolean;
|
|
61
|
+
app_contract_address: string;
|
|
62
|
+
allow_any_device: boolean;
|
|
63
|
+
error?: string | null | undefined;
|
|
64
|
+
device_id_allowed?: boolean | null | undefined;
|
|
65
|
+
cvm_id?: string | undefined;
|
|
66
|
+
}>;
|
|
67
|
+
export type IsAllowedResultV20260522 = z.infer<typeof IsAllowedResultV20260522Schema>;
|
|
68
|
+
export declare const IsAllowedResultAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
69
|
+
app_contract_address: z.ZodString;
|
|
70
|
+
compose_hash: z.ZodString;
|
|
71
|
+
device_id: z.ZodString;
|
|
72
|
+
compose_hash_allowed: z.ZodBoolean;
|
|
73
|
+
allow_any_device: z.ZodBoolean;
|
|
74
|
+
device_id_allowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
75
|
+
is_allowed: z.ZodBoolean;
|
|
76
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
} & {
|
|
78
|
+
cvm_id: z.ZodOptional<z.ZodNumber>;
|
|
12
79
|
}, "strip", z.ZodTypeAny, {
|
|
13
80
|
device_id: string;
|
|
14
81
|
compose_hash: string;
|
|
@@ -29,6 +96,69 @@ export declare const IsAllowedResultSchema: z.ZodObject<{
|
|
|
29
96
|
error?: string | null | undefined;
|
|
30
97
|
device_id_allowed?: boolean | null | undefined;
|
|
31
98
|
cvm_id?: number | undefined;
|
|
99
|
+
}>, z.ZodObject<{
|
|
100
|
+
app_contract_address: z.ZodString;
|
|
101
|
+
compose_hash: z.ZodString;
|
|
102
|
+
device_id: z.ZodString;
|
|
103
|
+
compose_hash_allowed: z.ZodBoolean;
|
|
104
|
+
allow_any_device: z.ZodBoolean;
|
|
105
|
+
device_id_allowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
106
|
+
is_allowed: z.ZodBoolean;
|
|
107
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
} & {
|
|
109
|
+
cvm_id: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
|
111
|
+
device_id: string;
|
|
112
|
+
compose_hash: string;
|
|
113
|
+
compose_hash_allowed: boolean;
|
|
114
|
+
is_allowed: boolean;
|
|
115
|
+
app_contract_address: string;
|
|
116
|
+
allow_any_device: boolean;
|
|
117
|
+
error?: string | null | undefined;
|
|
118
|
+
device_id_allowed?: boolean | null | undefined;
|
|
119
|
+
cvm_id?: string | undefined;
|
|
120
|
+
}, {
|
|
121
|
+
device_id: string;
|
|
122
|
+
compose_hash: string;
|
|
123
|
+
compose_hash_allowed: boolean;
|
|
124
|
+
is_allowed: boolean;
|
|
125
|
+
app_contract_address: string;
|
|
126
|
+
allow_any_device: boolean;
|
|
127
|
+
error?: string | null | undefined;
|
|
128
|
+
device_id_allowed?: boolean | null | undefined;
|
|
129
|
+
cvm_id?: string | undefined;
|
|
130
|
+
}>]>;
|
|
131
|
+
export declare const IsAllowedResultSchema: z.ZodObject<{
|
|
132
|
+
app_contract_address: z.ZodString;
|
|
133
|
+
compose_hash: z.ZodString;
|
|
134
|
+
device_id: z.ZodString;
|
|
135
|
+
compose_hash_allowed: z.ZodBoolean;
|
|
136
|
+
allow_any_device: z.ZodBoolean;
|
|
137
|
+
device_id_allowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
138
|
+
is_allowed: z.ZodBoolean;
|
|
139
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
|
+
} & {
|
|
141
|
+
cvm_id: z.ZodOptional<z.ZodString>;
|
|
142
|
+
}, "strip", z.ZodTypeAny, {
|
|
143
|
+
device_id: string;
|
|
144
|
+
compose_hash: string;
|
|
145
|
+
compose_hash_allowed: boolean;
|
|
146
|
+
is_allowed: boolean;
|
|
147
|
+
app_contract_address: string;
|
|
148
|
+
allow_any_device: boolean;
|
|
149
|
+
error?: string | null | undefined;
|
|
150
|
+
device_id_allowed?: boolean | null | undefined;
|
|
151
|
+
cvm_id?: string | undefined;
|
|
152
|
+
}, {
|
|
153
|
+
device_id: string;
|
|
154
|
+
compose_hash: string;
|
|
155
|
+
compose_hash_allowed: boolean;
|
|
156
|
+
is_allowed: boolean;
|
|
157
|
+
app_contract_address: string;
|
|
158
|
+
allow_any_device: boolean;
|
|
159
|
+
error?: string | null | undefined;
|
|
160
|
+
device_id_allowed?: boolean | null | undefined;
|
|
161
|
+
cvm_id?: string | undefined;
|
|
32
162
|
}>;
|
|
33
163
|
export type IsAllowedResult = z.infer<typeof IsAllowedResultSchema>;
|
|
34
164
|
declare const CheckCvmIsAllowedInputSchema: z.ZodObject<{
|
|
@@ -90,7 +220,7 @@ declare const checkCvmIsAllowed: {
|
|
|
90
220
|
allow_any_device: boolean;
|
|
91
221
|
error?: string | null | undefined;
|
|
92
222
|
device_id_allowed?: boolean | null | undefined;
|
|
93
|
-
cvm_id?:
|
|
223
|
+
cvm_id?: string | undefined;
|
|
94
224
|
}>;
|
|
95
225
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
96
226
|
cvmId: string;
|
|
@@ -123,7 +253,7 @@ declare const checkCvmIsAllowed: {
|
|
|
123
253
|
allow_any_device: boolean;
|
|
124
254
|
error?: string | null | undefined;
|
|
125
255
|
device_id_allowed?: boolean | null | undefined;
|
|
126
|
-
cvm_id?:
|
|
256
|
+
cvm_id?: string | undefined;
|
|
127
257
|
}>>;
|
|
128
258
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
129
259
|
cvmId: string;
|