@phala/cloud 0.2.10 → 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.
- 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 +32 -32
- 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 +5 -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 +10 -10
- 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 +4 -4
- 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 +6 -6
- 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 +18 -18
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +38 -38
- 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 +20 -20
- package/dist/actions/cvms/update_cvm_resources.d.ts +2 -2
- package/dist/actions/cvms/update_cvm_visibility.d.ts +24 -24
- package/dist/actions/cvms/update_docker_compose.d.ts +20 -20
- package/dist/actions/cvms/update_os_image.d.ts +2 -2
- package/dist/actions/cvms/update_prelaunch_script.d.ts +20 -20
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +20 -20
- package/dist/actions/kms/get_kms_list.d.ts +10 -10
- 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_nodes.d.ts +14 -14
- package/dist/index.js +254 -45
- package/dist/index.mjs +254 -45
- package/dist/types/app_info_v20251028.d.ts +128 -128
- package/dist/types/app_info_v20260121.d.ts +490 -490
- package/dist/types/app_revision.d.ts +8 -8
- 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 +47 -47
- package/dist/types/cvm_info_v20260121.d.ts +148 -148
- package/dist/types/version-mappings.d.ts +37 -0
- package/package.json +1 -1
|
@@ -57,8 +57,8 @@ export declare const CreateAppInstanceRequestSchema: z.ZodObject<{
|
|
|
57
57
|
compose_hash?: string | undefined;
|
|
58
58
|
node_id?: number | undefined;
|
|
59
59
|
docker_compose_file?: string | undefined;
|
|
60
|
-
pre_launch_script?: string | undefined;
|
|
61
60
|
encrypted_env?: string | undefined;
|
|
61
|
+
pre_launch_script?: string | undefined;
|
|
62
62
|
transaction_hash?: string | undefined;
|
|
63
63
|
token?: string | undefined;
|
|
64
64
|
}, {
|
|
@@ -67,8 +67,8 @@ export declare const CreateAppInstanceRequestSchema: z.ZodObject<{
|
|
|
67
67
|
compose_hash?: string | undefined;
|
|
68
68
|
node_id?: number | undefined;
|
|
69
69
|
docker_compose_file?: string | undefined;
|
|
70
|
-
pre_launch_script?: string | undefined;
|
|
71
70
|
encrypted_env?: string | undefined;
|
|
71
|
+
pre_launch_script?: string | undefined;
|
|
72
72
|
transaction_hash?: string | undefined;
|
|
73
73
|
token?: string | undefined;
|
|
74
74
|
}>;
|
|
@@ -80,8 +80,8 @@ declare const createAppInstance: {
|
|
|
80
80
|
compose_hash?: string | undefined;
|
|
81
81
|
node_id?: number | undefined;
|
|
82
82
|
docker_compose_file?: string | undefined;
|
|
83
|
-
pre_launch_script?: string | undefined;
|
|
84
83
|
encrypted_env?: string | undefined;
|
|
84
|
+
pre_launch_script?: string | undefined;
|
|
85
85
|
transaction_hash?: string | undefined;
|
|
86
86
|
token?: string | undefined;
|
|
87
87
|
}): Promise<{
|
|
@@ -90,26 +90,26 @@ declare const createAppInstance: {
|
|
|
90
90
|
id: string;
|
|
91
91
|
app_id: string;
|
|
92
92
|
instance_id: string | null;
|
|
93
|
+
teepod_id: number;
|
|
94
|
+
vm_uuid: string | null;
|
|
93
95
|
vcpu: number;
|
|
94
96
|
memory: number;
|
|
95
97
|
disk_size: number;
|
|
96
|
-
teepod_id: number;
|
|
97
|
-
vm_uuid: string | null;
|
|
98
|
-
encrypted_env_pubkey: string | null;
|
|
99
98
|
created_at: string;
|
|
99
|
+
encrypted_env_pubkey: string | null;
|
|
100
100
|
version?: string | null | undefined;
|
|
101
|
-
app_url?: string | null | undefined;
|
|
102
101
|
teepod?: {
|
|
103
102
|
name: string;
|
|
104
103
|
id: number;
|
|
105
104
|
region_identifier?: string | null | undefined;
|
|
106
105
|
} | null | undefined;
|
|
106
|
+
app_url?: string | null | undefined;
|
|
107
107
|
base_image?: string | null | undefined;
|
|
108
|
-
user_id?: string | null | undefined;
|
|
109
|
-
docker_compose_file?: string | null | undefined;
|
|
110
|
-
features?: string[] | null | undefined;
|
|
111
108
|
manifest_version?: number | null | undefined;
|
|
112
109
|
runner?: string | null | undefined;
|
|
110
|
+
docker_compose_file?: string | null | undefined;
|
|
111
|
+
features?: string[] | null | undefined;
|
|
112
|
+
user_id?: string | null | undefined;
|
|
113
113
|
}>;
|
|
114
114
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
115
115
|
appId: string;
|
|
@@ -117,8 +117,8 @@ declare const createAppInstance: {
|
|
|
117
117
|
compose_hash?: string | undefined;
|
|
118
118
|
node_id?: number | undefined;
|
|
119
119
|
docker_compose_file?: string | undefined;
|
|
120
|
-
pre_launch_script?: string | undefined;
|
|
121
120
|
encrypted_env?: string | undefined;
|
|
121
|
+
pre_launch_script?: string | undefined;
|
|
122
122
|
transaction_hash?: string | undefined;
|
|
123
123
|
token?: string | undefined;
|
|
124
124
|
}, parameters: {
|
|
@@ -130,8 +130,8 @@ declare const createAppInstance: {
|
|
|
130
130
|
compose_hash?: string | undefined;
|
|
131
131
|
node_id?: number | undefined;
|
|
132
132
|
docker_compose_file?: string | undefined;
|
|
133
|
-
pre_launch_script?: string | undefined;
|
|
134
133
|
encrypted_env?: string | undefined;
|
|
134
|
+
pre_launch_script?: string | undefined;
|
|
135
135
|
transaction_hash?: string | undefined;
|
|
136
136
|
token?: string | undefined;
|
|
137
137
|
}, parameters: {
|
|
@@ -144,8 +144,8 @@ declare const createAppInstance: {
|
|
|
144
144
|
compose_hash?: string | undefined;
|
|
145
145
|
node_id?: number | undefined;
|
|
146
146
|
docker_compose_file?: string | undefined;
|
|
147
|
-
pre_launch_script?: string | undefined;
|
|
148
147
|
encrypted_env?: string | undefined;
|
|
148
|
+
pre_launch_script?: string | undefined;
|
|
149
149
|
transaction_hash?: string | undefined;
|
|
150
150
|
token?: string | undefined;
|
|
151
151
|
}): Promise<import("../..").SafeResult<{
|
|
@@ -154,26 +154,26 @@ declare const createAppInstance: {
|
|
|
154
154
|
id: string;
|
|
155
155
|
app_id: string;
|
|
156
156
|
instance_id: string | null;
|
|
157
|
+
teepod_id: number;
|
|
158
|
+
vm_uuid: string | null;
|
|
157
159
|
vcpu: number;
|
|
158
160
|
memory: number;
|
|
159
161
|
disk_size: number;
|
|
160
|
-
teepod_id: number;
|
|
161
|
-
vm_uuid: string | null;
|
|
162
|
-
encrypted_env_pubkey: string | null;
|
|
163
162
|
created_at: string;
|
|
163
|
+
encrypted_env_pubkey: string | null;
|
|
164
164
|
version?: string | null | undefined;
|
|
165
|
-
app_url?: string | null | undefined;
|
|
166
165
|
teepod?: {
|
|
167
166
|
name: string;
|
|
168
167
|
id: number;
|
|
169
168
|
region_identifier?: string | null | undefined;
|
|
170
169
|
} | null | undefined;
|
|
170
|
+
app_url?: string | null | undefined;
|
|
171
171
|
base_image?: string | null | undefined;
|
|
172
|
-
user_id?: string | null | undefined;
|
|
173
|
-
docker_compose_file?: string | null | undefined;
|
|
174
|
-
features?: string[] | null | undefined;
|
|
175
172
|
manifest_version?: number | null | undefined;
|
|
176
173
|
runner?: string | null | undefined;
|
|
174
|
+
docker_compose_file?: string | null | undefined;
|
|
175
|
+
features?: string[] | null | undefined;
|
|
176
|
+
user_id?: string | null | undefined;
|
|
177
177
|
}>>;
|
|
178
178
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
179
179
|
appId: string;
|
|
@@ -181,8 +181,8 @@ declare const createAppInstance: {
|
|
|
181
181
|
compose_hash?: string | undefined;
|
|
182
182
|
node_id?: number | undefined;
|
|
183
183
|
docker_compose_file?: string | undefined;
|
|
184
|
-
pre_launch_script?: string | undefined;
|
|
185
184
|
encrypted_env?: string | undefined;
|
|
185
|
+
pre_launch_script?: string | undefined;
|
|
186
186
|
transaction_hash?: string | undefined;
|
|
187
187
|
token?: string | undefined;
|
|
188
188
|
}, parameters: {
|
|
@@ -194,8 +194,8 @@ declare const createAppInstance: {
|
|
|
194
194
|
compose_hash?: string | undefined;
|
|
195
195
|
node_id?: number | undefined;
|
|
196
196
|
docker_compose_file?: string | undefined;
|
|
197
|
-
pre_launch_script?: string | undefined;
|
|
198
197
|
encrypted_env?: string | undefined;
|
|
198
|
+
pre_launch_script?: string | undefined;
|
|
199
199
|
transaction_hash?: string | undefined;
|
|
200
200
|
token?: string | undefined;
|
|
201
201
|
}, parameters: {
|
|
@@ -174,9 +174,9 @@ export declare const AppAttestationInstanceSchema: z.ZodObject<{
|
|
|
174
174
|
name?: string | undefined;
|
|
175
175
|
error?: string | null | undefined;
|
|
176
176
|
instance_id?: string | null | undefined;
|
|
177
|
-
image_version?: string | null | undefined;
|
|
178
|
-
vm_uuid?: string | null | undefined;
|
|
179
177
|
device_id?: string | undefined;
|
|
178
|
+
vm_uuid?: string | null | undefined;
|
|
179
|
+
image_version?: string | null | undefined;
|
|
180
180
|
ppid?: string | undefined;
|
|
181
181
|
compose_file?: string | null | undefined;
|
|
182
182
|
fmspc?: string | null | undefined;
|
|
@@ -232,9 +232,9 @@ export declare const AppAttestationInstanceSchema: z.ZodObject<{
|
|
|
232
232
|
name?: string | undefined;
|
|
233
233
|
error?: string | null | undefined;
|
|
234
234
|
instance_id?: string | null | undefined;
|
|
235
|
-
image_version?: string | null | undefined;
|
|
236
|
-
vm_uuid?: string | null | undefined;
|
|
237
235
|
device_id?: string | undefined;
|
|
236
|
+
vm_uuid?: string | null | undefined;
|
|
237
|
+
image_version?: string | null | undefined;
|
|
238
238
|
ppid?: string | undefined;
|
|
239
239
|
compose_file?: string | null | undefined;
|
|
240
240
|
fmspc?: string | null | undefined;
|
|
@@ -300,18 +300,18 @@ export declare const AppAttestationResponseSchema: z.ZodObject<{
|
|
|
300
300
|
kms_type: z.ZodString;
|
|
301
301
|
}, "strip", z.ZodTypeAny, {
|
|
302
302
|
version: string;
|
|
303
|
-
url: string;
|
|
304
303
|
chain_id: string | null;
|
|
305
|
-
gateway_app_id: string | null;
|
|
306
304
|
contract_address: string;
|
|
305
|
+
url: string;
|
|
306
|
+
gateway_app_id: string | null;
|
|
307
307
|
kms_type: string;
|
|
308
308
|
gateway_app_url: string;
|
|
309
309
|
}, {
|
|
310
310
|
version: string;
|
|
311
|
-
url: string;
|
|
312
311
|
chain_id: string | null;
|
|
313
|
-
gateway_app_id: string | null;
|
|
314
312
|
contract_address: string;
|
|
313
|
+
url: string;
|
|
314
|
+
gateway_app_id: string | null;
|
|
315
315
|
kms_type: string;
|
|
316
316
|
gateway_app_url: string;
|
|
317
317
|
}>;
|
|
@@ -490,9 +490,9 @@ export declare const AppAttestationResponseSchema: z.ZodObject<{
|
|
|
490
490
|
name?: string | undefined;
|
|
491
491
|
error?: string | null | undefined;
|
|
492
492
|
instance_id?: string | null | undefined;
|
|
493
|
-
image_version?: string | null | undefined;
|
|
494
|
-
vm_uuid?: string | null | undefined;
|
|
495
493
|
device_id?: string | undefined;
|
|
494
|
+
vm_uuid?: string | null | undefined;
|
|
495
|
+
image_version?: string | null | undefined;
|
|
496
496
|
ppid?: string | undefined;
|
|
497
497
|
compose_file?: string | null | undefined;
|
|
498
498
|
fmspc?: string | null | undefined;
|
|
@@ -548,9 +548,9 @@ export declare const AppAttestationResponseSchema: z.ZodObject<{
|
|
|
548
548
|
name?: string | undefined;
|
|
549
549
|
error?: string | null | undefined;
|
|
550
550
|
instance_id?: string | null | undefined;
|
|
551
|
-
image_version?: string | null | undefined;
|
|
552
|
-
vm_uuid?: string | null | undefined;
|
|
553
551
|
device_id?: string | undefined;
|
|
552
|
+
vm_uuid?: string | null | undefined;
|
|
553
|
+
image_version?: string | null | undefined;
|
|
554
554
|
ppid?: string | undefined;
|
|
555
555
|
compose_file?: string | null | undefined;
|
|
556
556
|
fmspc?: string | null | undefined;
|
|
@@ -637,24 +637,24 @@ export declare const AppAttestationResponseSchema: z.ZodObject<{
|
|
|
637
637
|
qemu_version: z.ZodNullable<z.ZodString>;
|
|
638
638
|
}, "strip", z.ZodTypeAny, {
|
|
639
639
|
app_id: string;
|
|
640
|
+
contract_address: string;
|
|
640
641
|
kms_info: {
|
|
641
642
|
version: string;
|
|
642
|
-
url: string;
|
|
643
643
|
chain_id: string | null;
|
|
644
|
-
gateway_app_id: string | null;
|
|
645
644
|
contract_address: string;
|
|
645
|
+
url: string;
|
|
646
|
+
gateway_app_id: string | null;
|
|
646
647
|
kms_type: string;
|
|
647
648
|
gateway_app_url: string;
|
|
648
649
|
};
|
|
649
|
-
contract_address: string;
|
|
650
650
|
instances: {
|
|
651
651
|
status?: string | undefined;
|
|
652
652
|
name?: string | undefined;
|
|
653
653
|
error?: string | null | undefined;
|
|
654
654
|
instance_id?: string | null | undefined;
|
|
655
|
-
image_version?: string | null | undefined;
|
|
656
|
-
vm_uuid?: string | null | undefined;
|
|
657
655
|
device_id?: string | undefined;
|
|
656
|
+
vm_uuid?: string | null | undefined;
|
|
657
|
+
image_version?: string | null | undefined;
|
|
658
658
|
ppid?: string | undefined;
|
|
659
659
|
compose_file?: string | null | undefined;
|
|
660
660
|
fmspc?: string | null | undefined;
|
|
@@ -721,24 +721,24 @@ export declare const AppAttestationResponseSchema: z.ZodObject<{
|
|
|
721
721
|
qemu_version: string | null;
|
|
722
722
|
}, {
|
|
723
723
|
app_id: string;
|
|
724
|
+
contract_address: string;
|
|
724
725
|
kms_info: {
|
|
725
726
|
version: string;
|
|
726
|
-
url: string;
|
|
727
727
|
chain_id: string | null;
|
|
728
|
-
gateway_app_id: string | null;
|
|
729
728
|
contract_address: string;
|
|
729
|
+
url: string;
|
|
730
|
+
gateway_app_id: string | null;
|
|
730
731
|
kms_type: string;
|
|
731
732
|
gateway_app_url: string;
|
|
732
733
|
};
|
|
733
|
-
contract_address: string;
|
|
734
734
|
instances: {
|
|
735
735
|
status?: string | undefined;
|
|
736
736
|
name?: string | undefined;
|
|
737
737
|
error?: string | null | undefined;
|
|
738
738
|
instance_id?: string | null | undefined;
|
|
739
|
-
image_version?: string | null | undefined;
|
|
740
|
-
vm_uuid?: string | null | undefined;
|
|
741
739
|
device_id?: string | undefined;
|
|
740
|
+
vm_uuid?: string | null | undefined;
|
|
741
|
+
image_version?: string | null | undefined;
|
|
742
742
|
ppid?: string | undefined;
|
|
743
743
|
compose_file?: string | null | undefined;
|
|
744
744
|
fmspc?: string | null | undefined;
|
|
@@ -818,24 +818,24 @@ declare const getAppAttestation: {
|
|
|
818
818
|
appId: string;
|
|
819
819
|
}): Promise<{
|
|
820
820
|
app_id: string;
|
|
821
|
+
contract_address: string;
|
|
821
822
|
kms_info: {
|
|
822
823
|
version: string;
|
|
823
|
-
url: string;
|
|
824
824
|
chain_id: string | null;
|
|
825
|
-
gateway_app_id: string | null;
|
|
826
825
|
contract_address: string;
|
|
826
|
+
url: string;
|
|
827
|
+
gateway_app_id: string | null;
|
|
827
828
|
kms_type: string;
|
|
828
829
|
gateway_app_url: string;
|
|
829
830
|
};
|
|
830
|
-
contract_address: string;
|
|
831
831
|
instances: {
|
|
832
832
|
status?: string | undefined;
|
|
833
833
|
name?: string | undefined;
|
|
834
834
|
error?: string | null | undefined;
|
|
835
835
|
instance_id?: string | null | undefined;
|
|
836
|
-
image_version?: string | null | undefined;
|
|
837
|
-
vm_uuid?: string | null | undefined;
|
|
838
836
|
device_id?: string | undefined;
|
|
837
|
+
vm_uuid?: string | null | undefined;
|
|
838
|
+
image_version?: string | null | undefined;
|
|
839
839
|
ppid?: string | undefined;
|
|
840
840
|
compose_file?: string | null | undefined;
|
|
841
841
|
fmspc?: string | null | undefined;
|
|
@@ -916,24 +916,24 @@ declare const getAppAttestation: {
|
|
|
916
916
|
appId: string;
|
|
917
917
|
}): Promise<import("../..").SafeResult<{
|
|
918
918
|
app_id: string;
|
|
919
|
+
contract_address: string;
|
|
919
920
|
kms_info: {
|
|
920
921
|
version: string;
|
|
921
|
-
url: string;
|
|
922
922
|
chain_id: string | null;
|
|
923
|
-
gateway_app_id: string | null;
|
|
924
923
|
contract_address: string;
|
|
924
|
+
url: string;
|
|
925
|
+
gateway_app_id: string | null;
|
|
925
926
|
kms_type: string;
|
|
926
927
|
gateway_app_url: string;
|
|
927
928
|
};
|
|
928
|
-
contract_address: string;
|
|
929
929
|
instances: {
|
|
930
930
|
status?: string | undefined;
|
|
931
931
|
name?: string | undefined;
|
|
932
932
|
error?: string | null | undefined;
|
|
933
933
|
instance_id?: string | null | undefined;
|
|
934
|
-
image_version?: string | null | undefined;
|
|
935
|
-
vm_uuid?: string | null | undefined;
|
|
936
934
|
device_id?: string | undefined;
|
|
935
|
+
vm_uuid?: string | null | undefined;
|
|
936
|
+
image_version?: string | null | undefined;
|
|
937
937
|
ppid?: string | undefined;
|
|
938
938
|
compose_file?: string | null | undefined;
|
|
939
939
|
fmspc?: string | null | undefined;
|
|
@@ -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;
|