@phala/cloud 0.4.0 → 0.6.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/README.md +20 -0
- package/dist/actions/api_tokens/revoke_current_api_token.d.ts +47 -0
- package/dist/actions/apps/app_launch_token.d.ts +121 -0
- package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +17 -311
- package/dist/actions/apps/check_app_is_allowed.d.ts +20 -32
- package/dist/actions/apps/create_app_instance.d.ts +43 -63
- package/dist/actions/apps/get_app_attestation.d.ts +113 -779
- package/dist/actions/apps/get_app_cvms.d.ts +1 -5
- package/dist/actions/apps/get_app_device_allowlist.d.ts +26 -272
- package/dist/actions/apps/get_app_filter_options.d.ts +8 -24
- package/dist/actions/apps/get_app_info.d.ts +1 -5
- package/dist/actions/apps/get_app_list.d.ts +2 -26
- package/dist/actions/apps/get_app_revision_detail.d.ts +1 -9
- package/dist/actions/apps/get_app_revisions.d.ts +1 -9
- package/dist/actions/blockchains/add_compose_hash.d.ts +1 -13
- package/dist/actions/blockchains/add_device.d.ts +1 -13
- package/dist/actions/blockchains/deploy_app_auth.d.ts +3 -95
- package/dist/actions/blockchains/get_allowed_devices.d.ts +2 -12
- package/dist/actions/blockchains/remove_device.d.ts +1 -13
- package/dist/actions/blockchains/set_allow_any_device.d.ts +1 -13
- package/dist/actions/cvms/check_cvm_is_allowed.d.ts +13 -138
- package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +9 -45
- package/dist/actions/cvms/commit_cvm_provision.d.ts +32 -422
- package/dist/actions/cvms/commit_cvm_update.d.ts +70 -41
- package/dist/actions/cvms/confirm_cvm_patch.d.ts +62 -35
- package/dist/actions/cvms/cvm_annotations.d.ts +152 -0
- package/dist/actions/cvms/delete_cvm.d.ts +8 -14
- package/dist/actions/cvms/get_available_os_images.d.ts +70 -111
- package/dist/actions/cvms/get_cvm_attestation.d.ts +34 -392
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +384 -614
- package/dist/actions/cvms/get_cvm_containers_stats.d.ts +25 -91
- package/dist/actions/cvms/get_cvm_docker_compose.d.ts +8 -14
- package/dist/actions/cvms/get_cvm_info.d.ts +6 -12
- package/dist/actions/cvms/get_cvm_init_scripts.d.ts +92 -0
- package/dist/actions/cvms/get_cvm_list.d.ts +7 -13
- package/dist/actions/cvms/get_cvm_network.d.ts +18 -50
- package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +8 -14
- package/dist/actions/cvms/get_cvm_state.d.ts +11 -37
- package/dist/actions/cvms/get_cvm_stats.d.ts +23 -149
- package/dist/actions/cvms/get_cvm_status_batch.d.ts +19 -209
- package/dist/actions/cvms/get_cvm_user_config.d.ts +13 -24
- package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +9 -27
- package/dist/actions/cvms/log-time.d.ts +5 -0
- package/dist/actions/cvms/logs.d.ts +64 -0
- package/dist/actions/cvms/patch_cvm.d.ts +665 -295
- package/dist/actions/cvms/provision_cvm.d.ts +329 -1561
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +550 -953
- package/dist/actions/cvms/put_cvm_init_scripts.d.ts +150 -0
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +74 -131
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +77 -297
- package/dist/actions/cvms/replicate_cvm.d.ts +7 -21
- package/dist/actions/cvms/restart_cvm.d.ts +3 -18
- package/dist/actions/cvms/shutdown_cvm.d.ts +6 -12
- package/dist/actions/cvms/start_cvm.d.ts +6 -12
- package/dist/actions/cvms/stop_cvm.d.ts +6 -12
- package/dist/actions/cvms/update_cvm_envs.d.ts +136 -203
- package/dist/actions/cvms/update_cvm_resources.d.ts +82 -48
- package/dist/actions/cvms/update_cvm_visibility.d.ts +90 -132
- package/dist/actions/cvms/update_docker_compose.d.ts +127 -202
- package/dist/actions/cvms/update_os_image.d.ts +55 -28
- package/dist/actions/cvms/update_prelaunch_script.d.ts +127 -202
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +118 -193
- package/dist/actions/cvms/watch_cvm_state.d.ts +5 -15
- package/dist/actions/get_available_nodes.d.ts +186 -1067
- package/dist/actions/get_cvm_create_resources.d.ts +138 -2489
- package/dist/actions/index.d.ts +9 -2
- package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +11 -23
- package/dist/actions/kms/get_kms_contract.d.ts +25 -27
- package/dist/actions/kms/get_kms_info.d.ts +3 -7
- package/dist/actions/kms/get_kms_list.d.ts +34 -88
- package/dist/actions/kms/get_kms_onchain_detail.d.ts +66 -664
- package/dist/actions/kms/list_kms_contract_nodes.d.ts +21 -53
- package/dist/actions/kms/list_kms_contracts.d.ts +33 -87
- package/dist/actions/kms/next_app_ids.d.ts +5 -25
- package/dist/actions/list-instance-types.d.ts +77 -257
- package/dist/actions/os_images/get_os_images.d.ts +38 -152
- package/dist/actions/ssh_keys/create_ssh_key.d.ts +11 -17
- package/dist/actions/ssh_keys/delete_ssh_key.d.ts +3 -7
- package/dist/actions/ssh_keys/get_cvm_ssh_keys.d.ts +113 -0
- package/dist/actions/ssh_keys/import_github_profile.d.ts +7 -21
- package/dist/actions/ssh_keys/list_ssh_keys.d.ts +2 -50
- package/dist/actions/ssh_keys/sync_github_ssh_keys.d.ts +8 -20
- package/dist/actions/ssh_keys/update_cvm_ssh_keys.d.ts +140 -0
- package/dist/actions/workspaces/get_workspace.d.ts +32 -28
- package/dist/actions/workspaces/get_workspace_nodes.d.ts +34 -321
- package/dist/actions/workspaces/get_workspace_quotas.d.ts +107 -1021
- package/dist/actions/workspaces/list_workspaces.d.ts +67 -369
- package/dist/client.d.ts +23 -4
- package/dist/create-client.d.ts +1900 -1
- package/dist/credentials/current_user_v20251028.d.ts +1 -17
- package/dist/credentials/current_user_v20260121.d.ts +22 -227
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6004 -4537
- package/dist/index.mjs +6033 -4625
- package/dist/types/app_compose.d.ts +108 -221
- package/dist/types/app_info_v20251028.d.ts +22 -1067
- package/dist/types/app_info_v20260121.d.ts +442 -8900
- package/dist/types/app_revision.d.ts +15 -371
- package/dist/types/client.d.ts +16 -0
- package/dist/types/common.d.ts +6 -0
- package/dist/types/cvm_id.d.ts +12 -57
- package/dist/types/cvm_info.d.ts +33 -460
- package/dist/types/cvm_info_v20251028.d.ts +100 -821
- package/dist/types/cvm_info_v20260121.d.ts +254 -3160
- package/dist/types/kms_contract.d.ts +2 -32
- package/dist/types/kms_info.d.ts +34 -68
- package/dist/user-agent.d.ts +30 -0
- package/dist/utils/define-action.d.ts +4 -4
- package/dist/utils/errors.d.ts +4 -36
- package/dist/utils/get_compose_hash.d.ts +36 -5
- package/dist/utils/get_mr_config_id.d.ts +94 -3
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/placement-request.d.ts +3 -0
- package/package.json +4 -4
|
@@ -21,32 +21,12 @@ export declare const CertificateSubjectSchema: z.ZodObject<{
|
|
|
21
21
|
country: z.ZodNullable<z.ZodString>;
|
|
22
22
|
state: z.ZodNullable<z.ZodString>;
|
|
23
23
|
locality: z.ZodNullable<z.ZodString>;
|
|
24
|
-
},
|
|
25
|
-
state: string | null;
|
|
26
|
-
common_name: string | null;
|
|
27
|
-
organization: string | null;
|
|
28
|
-
country: string | null;
|
|
29
|
-
locality: string | null;
|
|
30
|
-
}, {
|
|
31
|
-
state: string | null;
|
|
32
|
-
common_name: string | null;
|
|
33
|
-
organization: string | null;
|
|
34
|
-
country: string | null;
|
|
35
|
-
locality: string | null;
|
|
36
|
-
}>;
|
|
24
|
+
}, z.core.$strip>;
|
|
37
25
|
export declare const CertificateIssuerSchema: z.ZodObject<{
|
|
38
26
|
common_name: z.ZodNullable<z.ZodString>;
|
|
39
27
|
organization: z.ZodNullable<z.ZodString>;
|
|
40
28
|
country: z.ZodNullable<z.ZodString>;
|
|
41
|
-
},
|
|
42
|
-
common_name: string | null;
|
|
43
|
-
organization: string | null;
|
|
44
|
-
country: string | null;
|
|
45
|
-
}, {
|
|
46
|
-
common_name: string | null;
|
|
47
|
-
organization: string | null;
|
|
48
|
-
country: string | null;
|
|
49
|
-
}>;
|
|
29
|
+
}, z.core.$strip>;
|
|
50
30
|
export declare const CertificateSchema: z.ZodObject<{
|
|
51
31
|
subject: z.ZodObject<{
|
|
52
32
|
common_name: z.ZodNullable<z.ZodString>;
|
|
@@ -54,114 +34,32 @@ export declare const CertificateSchema: z.ZodObject<{
|
|
|
54
34
|
country: z.ZodNullable<z.ZodString>;
|
|
55
35
|
state: z.ZodNullable<z.ZodString>;
|
|
56
36
|
locality: z.ZodNullable<z.ZodString>;
|
|
57
|
-
},
|
|
58
|
-
state: string | null;
|
|
59
|
-
common_name: string | null;
|
|
60
|
-
organization: string | null;
|
|
61
|
-
country: string | null;
|
|
62
|
-
locality: string | null;
|
|
63
|
-
}, {
|
|
64
|
-
state: string | null;
|
|
65
|
-
common_name: string | null;
|
|
66
|
-
organization: string | null;
|
|
67
|
-
country: string | null;
|
|
68
|
-
locality: string | null;
|
|
69
|
-
}>;
|
|
37
|
+
}, z.core.$strip>;
|
|
70
38
|
issuer: z.ZodObject<{
|
|
71
39
|
common_name: z.ZodNullable<z.ZodString>;
|
|
72
40
|
organization: z.ZodNullable<z.ZodString>;
|
|
73
41
|
country: z.ZodNullable<z.ZodString>;
|
|
74
|
-
},
|
|
75
|
-
common_name: string | null;
|
|
76
|
-
organization: string | null;
|
|
77
|
-
country: string | null;
|
|
78
|
-
}, {
|
|
79
|
-
common_name: string | null;
|
|
80
|
-
organization: string | null;
|
|
81
|
-
country: string | null;
|
|
82
|
-
}>;
|
|
42
|
+
}, z.core.$strip>;
|
|
83
43
|
serial_number: z.ZodString;
|
|
84
44
|
not_before: z.ZodString;
|
|
85
45
|
not_after: z.ZodString;
|
|
86
46
|
version: z.ZodString;
|
|
87
47
|
fingerprint: z.ZodString;
|
|
88
48
|
signature_algorithm: z.ZodString;
|
|
89
|
-
sans: z.ZodNullable<z.ZodArray<z.ZodString
|
|
49
|
+
sans: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
90
50
|
is_ca: z.ZodBoolean;
|
|
91
51
|
position_in_chain: z.ZodNullable<z.ZodNumber>;
|
|
92
52
|
quote: z.ZodNullable<z.ZodString>;
|
|
93
53
|
app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
54
|
cert_usage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
-
},
|
|
96
|
-
version: string;
|
|
97
|
-
subject: {
|
|
98
|
-
state: string | null;
|
|
99
|
-
common_name: string | null;
|
|
100
|
-
organization: string | null;
|
|
101
|
-
country: string | null;
|
|
102
|
-
locality: string | null;
|
|
103
|
-
};
|
|
104
|
-
issuer: {
|
|
105
|
-
common_name: string | null;
|
|
106
|
-
organization: string | null;
|
|
107
|
-
country: string | null;
|
|
108
|
-
};
|
|
109
|
-
serial_number: string;
|
|
110
|
-
not_before: string;
|
|
111
|
-
not_after: string;
|
|
112
|
-
fingerprint: string;
|
|
113
|
-
signature_algorithm: string;
|
|
114
|
-
sans: string[] | null;
|
|
115
|
-
is_ca: boolean;
|
|
116
|
-
position_in_chain: number | null;
|
|
117
|
-
quote: string | null;
|
|
118
|
-
app_id?: string | null | undefined;
|
|
119
|
-
cert_usage?: string | null | undefined;
|
|
120
|
-
}, {
|
|
121
|
-
version: string;
|
|
122
|
-
subject: {
|
|
123
|
-
state: string | null;
|
|
124
|
-
common_name: string | null;
|
|
125
|
-
organization: string | null;
|
|
126
|
-
country: string | null;
|
|
127
|
-
locality: string | null;
|
|
128
|
-
};
|
|
129
|
-
issuer: {
|
|
130
|
-
common_name: string | null;
|
|
131
|
-
organization: string | null;
|
|
132
|
-
country: string | null;
|
|
133
|
-
};
|
|
134
|
-
serial_number: string;
|
|
135
|
-
not_before: string;
|
|
136
|
-
not_after: string;
|
|
137
|
-
fingerprint: string;
|
|
138
|
-
signature_algorithm: string;
|
|
139
|
-
sans: string[] | null;
|
|
140
|
-
is_ca: boolean;
|
|
141
|
-
position_in_chain: number | null;
|
|
142
|
-
quote: string | null;
|
|
143
|
-
app_id?: string | null | undefined;
|
|
144
|
-
cert_usage?: string | null | undefined;
|
|
145
|
-
}>;
|
|
55
|
+
}, z.core.$strip>;
|
|
146
56
|
export declare const EventLogSchema: z.ZodObject<{
|
|
147
57
|
imr: z.ZodNumber;
|
|
148
58
|
event_type: z.ZodNumber;
|
|
149
59
|
digest: z.ZodString;
|
|
150
60
|
event: z.ZodString;
|
|
151
61
|
event_payload: z.ZodString;
|
|
152
|
-
},
|
|
153
|
-
imr: number;
|
|
154
|
-
event_type: number;
|
|
155
|
-
digest: string;
|
|
156
|
-
event: string;
|
|
157
|
-
event_payload: string;
|
|
158
|
-
}, {
|
|
159
|
-
imr: number;
|
|
160
|
-
event_type: number;
|
|
161
|
-
digest: string;
|
|
162
|
-
event: string;
|
|
163
|
-
event_payload: string;
|
|
164
|
-
}>;
|
|
62
|
+
}, z.core.$strip>;
|
|
165
63
|
export declare const TcbInfoSchema: z.ZodObject<{
|
|
166
64
|
mrtd: z.ZodString;
|
|
167
65
|
rootfs_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -175,51 +73,9 @@ export declare const TcbInfoSchema: z.ZodObject<{
|
|
|
175
73
|
digest: z.ZodString;
|
|
176
74
|
event: z.ZodString;
|
|
177
75
|
event_payload: z.ZodString;
|
|
178
|
-
},
|
|
179
|
-
imr: number;
|
|
180
|
-
event_type: number;
|
|
181
|
-
digest: string;
|
|
182
|
-
event: string;
|
|
183
|
-
event_payload: string;
|
|
184
|
-
}, {
|
|
185
|
-
imr: number;
|
|
186
|
-
event_type: number;
|
|
187
|
-
digest: string;
|
|
188
|
-
event: string;
|
|
189
|
-
event_payload: string;
|
|
190
|
-
}>, "many">;
|
|
76
|
+
}, z.core.$strip>>;
|
|
191
77
|
app_compose: z.ZodString;
|
|
192
|
-
},
|
|
193
|
-
app_compose: string;
|
|
194
|
-
mrtd: string;
|
|
195
|
-
rtmr0: string;
|
|
196
|
-
rtmr1: string;
|
|
197
|
-
rtmr2: string;
|
|
198
|
-
rtmr3: string;
|
|
199
|
-
event_log: {
|
|
200
|
-
imr: number;
|
|
201
|
-
event_type: number;
|
|
202
|
-
digest: string;
|
|
203
|
-
event: string;
|
|
204
|
-
event_payload: string;
|
|
205
|
-
}[];
|
|
206
|
-
rootfs_hash?: string | null | undefined;
|
|
207
|
-
}, {
|
|
208
|
-
app_compose: string;
|
|
209
|
-
mrtd: string;
|
|
210
|
-
rtmr0: string;
|
|
211
|
-
rtmr1: string;
|
|
212
|
-
rtmr2: string;
|
|
213
|
-
rtmr3: string;
|
|
214
|
-
event_log: {
|
|
215
|
-
imr: number;
|
|
216
|
-
event_type: number;
|
|
217
|
-
digest: string;
|
|
218
|
-
event: string;
|
|
219
|
-
event_payload: string;
|
|
220
|
-
}[];
|
|
221
|
-
rootfs_hash?: string | null | undefined;
|
|
222
|
-
}>;
|
|
78
|
+
}, z.core.$strip>;
|
|
223
79
|
export declare const CvmAttestationSchema: z.ZodObject<{
|
|
224
80
|
name: z.ZodNullable<z.ZodString>;
|
|
225
81
|
is_online: z.ZodBoolean;
|
|
@@ -232,95 +88,25 @@ export declare const CvmAttestationSchema: z.ZodObject<{
|
|
|
232
88
|
country: z.ZodNullable<z.ZodString>;
|
|
233
89
|
state: z.ZodNullable<z.ZodString>;
|
|
234
90
|
locality: z.ZodNullable<z.ZodString>;
|
|
235
|
-
},
|
|
236
|
-
state: string | null;
|
|
237
|
-
common_name: string | null;
|
|
238
|
-
organization: string | null;
|
|
239
|
-
country: string | null;
|
|
240
|
-
locality: string | null;
|
|
241
|
-
}, {
|
|
242
|
-
state: string | null;
|
|
243
|
-
common_name: string | null;
|
|
244
|
-
organization: string | null;
|
|
245
|
-
country: string | null;
|
|
246
|
-
locality: string | null;
|
|
247
|
-
}>;
|
|
91
|
+
}, z.core.$strip>;
|
|
248
92
|
issuer: z.ZodObject<{
|
|
249
93
|
common_name: z.ZodNullable<z.ZodString>;
|
|
250
94
|
organization: z.ZodNullable<z.ZodString>;
|
|
251
95
|
country: z.ZodNullable<z.ZodString>;
|
|
252
|
-
},
|
|
253
|
-
common_name: string | null;
|
|
254
|
-
organization: string | null;
|
|
255
|
-
country: string | null;
|
|
256
|
-
}, {
|
|
257
|
-
common_name: string | null;
|
|
258
|
-
organization: string | null;
|
|
259
|
-
country: string | null;
|
|
260
|
-
}>;
|
|
96
|
+
}, z.core.$strip>;
|
|
261
97
|
serial_number: z.ZodString;
|
|
262
98
|
not_before: z.ZodString;
|
|
263
99
|
not_after: z.ZodString;
|
|
264
100
|
version: z.ZodString;
|
|
265
101
|
fingerprint: z.ZodString;
|
|
266
102
|
signature_algorithm: z.ZodString;
|
|
267
|
-
sans: z.ZodNullable<z.ZodArray<z.ZodString
|
|
103
|
+
sans: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
268
104
|
is_ca: z.ZodBoolean;
|
|
269
105
|
position_in_chain: z.ZodNullable<z.ZodNumber>;
|
|
270
106
|
quote: z.ZodNullable<z.ZodString>;
|
|
271
107
|
app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
272
108
|
cert_usage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
273
|
-
},
|
|
274
|
-
version: string;
|
|
275
|
-
subject: {
|
|
276
|
-
state: string | null;
|
|
277
|
-
common_name: string | null;
|
|
278
|
-
organization: string | null;
|
|
279
|
-
country: string | null;
|
|
280
|
-
locality: string | null;
|
|
281
|
-
};
|
|
282
|
-
issuer: {
|
|
283
|
-
common_name: string | null;
|
|
284
|
-
organization: string | null;
|
|
285
|
-
country: string | null;
|
|
286
|
-
};
|
|
287
|
-
serial_number: string;
|
|
288
|
-
not_before: string;
|
|
289
|
-
not_after: string;
|
|
290
|
-
fingerprint: string;
|
|
291
|
-
signature_algorithm: string;
|
|
292
|
-
sans: string[] | null;
|
|
293
|
-
is_ca: boolean;
|
|
294
|
-
position_in_chain: number | null;
|
|
295
|
-
quote: string | null;
|
|
296
|
-
app_id?: string | null | undefined;
|
|
297
|
-
cert_usage?: string | null | undefined;
|
|
298
|
-
}, {
|
|
299
|
-
version: string;
|
|
300
|
-
subject: {
|
|
301
|
-
state: string | null;
|
|
302
|
-
common_name: string | null;
|
|
303
|
-
organization: string | null;
|
|
304
|
-
country: string | null;
|
|
305
|
-
locality: string | null;
|
|
306
|
-
};
|
|
307
|
-
issuer: {
|
|
308
|
-
common_name: string | null;
|
|
309
|
-
organization: string | null;
|
|
310
|
-
country: string | null;
|
|
311
|
-
};
|
|
312
|
-
serial_number: string;
|
|
313
|
-
not_before: string;
|
|
314
|
-
not_after: string;
|
|
315
|
-
fingerprint: string;
|
|
316
|
-
signature_algorithm: string;
|
|
317
|
-
sans: string[] | null;
|
|
318
|
-
is_ca: boolean;
|
|
319
|
-
position_in_chain: number | null;
|
|
320
|
-
quote: string | null;
|
|
321
|
-
app_id?: string | null | undefined;
|
|
322
|
-
cert_usage?: string | null | undefined;
|
|
323
|
-
}>, "many">>;
|
|
109
|
+
}, z.core.$strip>>>;
|
|
324
110
|
tcb_info: z.ZodNullable<z.ZodObject<{
|
|
325
111
|
mrtd: z.ZodString;
|
|
326
112
|
rootfs_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -334,186 +120,40 @@ export declare const CvmAttestationSchema: z.ZodObject<{
|
|
|
334
120
|
digest: z.ZodString;
|
|
335
121
|
event: z.ZodString;
|
|
336
122
|
event_payload: z.ZodString;
|
|
337
|
-
},
|
|
338
|
-
imr: number;
|
|
339
|
-
event_type: number;
|
|
340
|
-
digest: string;
|
|
341
|
-
event: string;
|
|
342
|
-
event_payload: string;
|
|
343
|
-
}, {
|
|
344
|
-
imr: number;
|
|
345
|
-
event_type: number;
|
|
346
|
-
digest: string;
|
|
347
|
-
event: string;
|
|
348
|
-
event_payload: string;
|
|
349
|
-
}>, "many">;
|
|
123
|
+
}, z.core.$strip>>;
|
|
350
124
|
app_compose: z.ZodString;
|
|
351
|
-
},
|
|
352
|
-
app_compose: string;
|
|
353
|
-
mrtd: string;
|
|
354
|
-
rtmr0: string;
|
|
355
|
-
rtmr1: string;
|
|
356
|
-
rtmr2: string;
|
|
357
|
-
rtmr3: string;
|
|
358
|
-
event_log: {
|
|
359
|
-
imr: number;
|
|
360
|
-
event_type: number;
|
|
361
|
-
digest: string;
|
|
362
|
-
event: string;
|
|
363
|
-
event_payload: string;
|
|
364
|
-
}[];
|
|
365
|
-
rootfs_hash?: string | null | undefined;
|
|
366
|
-
}, {
|
|
367
|
-
app_compose: string;
|
|
368
|
-
mrtd: string;
|
|
369
|
-
rtmr0: string;
|
|
370
|
-
rtmr1: string;
|
|
371
|
-
rtmr2: string;
|
|
372
|
-
rtmr3: string;
|
|
373
|
-
event_log: {
|
|
374
|
-
imr: number;
|
|
375
|
-
event_type: number;
|
|
376
|
-
digest: string;
|
|
377
|
-
event: string;
|
|
378
|
-
event_payload: string;
|
|
379
|
-
}[];
|
|
380
|
-
rootfs_hash?: string | null | undefined;
|
|
381
|
-
}>>;
|
|
125
|
+
}, z.core.$strip>>;
|
|
382
126
|
compose_file: z.ZodNullable<z.ZodString>;
|
|
383
|
-
},
|
|
384
|
-
name: string | null;
|
|
385
|
-
error: string | null;
|
|
386
|
-
compose_file: string | null;
|
|
387
|
-
is_online: boolean;
|
|
388
|
-
is_public: boolean;
|
|
389
|
-
app_certificates: {
|
|
390
|
-
version: string;
|
|
391
|
-
subject: {
|
|
392
|
-
state: string | null;
|
|
393
|
-
common_name: string | null;
|
|
394
|
-
organization: string | null;
|
|
395
|
-
country: string | null;
|
|
396
|
-
locality: string | null;
|
|
397
|
-
};
|
|
398
|
-
issuer: {
|
|
399
|
-
common_name: string | null;
|
|
400
|
-
organization: string | null;
|
|
401
|
-
country: string | null;
|
|
402
|
-
};
|
|
403
|
-
serial_number: string;
|
|
404
|
-
not_before: string;
|
|
405
|
-
not_after: string;
|
|
406
|
-
fingerprint: string;
|
|
407
|
-
signature_algorithm: string;
|
|
408
|
-
sans: string[] | null;
|
|
409
|
-
is_ca: boolean;
|
|
410
|
-
position_in_chain: number | null;
|
|
411
|
-
quote: string | null;
|
|
412
|
-
app_id?: string | null | undefined;
|
|
413
|
-
cert_usage?: string | null | undefined;
|
|
414
|
-
}[] | null;
|
|
415
|
-
tcb_info: {
|
|
416
|
-
app_compose: string;
|
|
417
|
-
mrtd: string;
|
|
418
|
-
rtmr0: string;
|
|
419
|
-
rtmr1: string;
|
|
420
|
-
rtmr2: string;
|
|
421
|
-
rtmr3: string;
|
|
422
|
-
event_log: {
|
|
423
|
-
imr: number;
|
|
424
|
-
event_type: number;
|
|
425
|
-
digest: string;
|
|
426
|
-
event: string;
|
|
427
|
-
event_payload: string;
|
|
428
|
-
}[];
|
|
429
|
-
rootfs_hash?: string | null | undefined;
|
|
430
|
-
} | null;
|
|
431
|
-
}, {
|
|
432
|
-
name: string | null;
|
|
433
|
-
error: string | null;
|
|
434
|
-
compose_file: string | null;
|
|
435
|
-
is_online: boolean;
|
|
436
|
-
app_certificates: {
|
|
437
|
-
version: string;
|
|
438
|
-
subject: {
|
|
439
|
-
state: string | null;
|
|
440
|
-
common_name: string | null;
|
|
441
|
-
organization: string | null;
|
|
442
|
-
country: string | null;
|
|
443
|
-
locality: string | null;
|
|
444
|
-
};
|
|
445
|
-
issuer: {
|
|
446
|
-
common_name: string | null;
|
|
447
|
-
organization: string | null;
|
|
448
|
-
country: string | null;
|
|
449
|
-
};
|
|
450
|
-
serial_number: string;
|
|
451
|
-
not_before: string;
|
|
452
|
-
not_after: string;
|
|
453
|
-
fingerprint: string;
|
|
454
|
-
signature_algorithm: string;
|
|
455
|
-
sans: string[] | null;
|
|
456
|
-
is_ca: boolean;
|
|
457
|
-
position_in_chain: number | null;
|
|
458
|
-
quote: string | null;
|
|
459
|
-
app_id?: string | null | undefined;
|
|
460
|
-
cert_usage?: string | null | undefined;
|
|
461
|
-
}[] | null;
|
|
462
|
-
tcb_info: {
|
|
463
|
-
app_compose: string;
|
|
464
|
-
mrtd: string;
|
|
465
|
-
rtmr0: string;
|
|
466
|
-
rtmr1: string;
|
|
467
|
-
rtmr2: string;
|
|
468
|
-
rtmr3: string;
|
|
469
|
-
event_log: {
|
|
470
|
-
imr: number;
|
|
471
|
-
event_type: number;
|
|
472
|
-
digest: string;
|
|
473
|
-
event: string;
|
|
474
|
-
event_payload: string;
|
|
475
|
-
}[];
|
|
476
|
-
rootfs_hash?: string | null | undefined;
|
|
477
|
-
} | null;
|
|
478
|
-
is_public?: boolean | undefined;
|
|
479
|
-
}>;
|
|
127
|
+
}, z.core.$strip>;
|
|
480
128
|
export type CvmAttestation = z.infer<typeof CvmAttestationSchema>;
|
|
481
|
-
export declare const GetCvmAttestationRequestSchema: z.
|
|
129
|
+
export declare const GetCvmAttestationRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
482
130
|
id: z.ZodOptional<z.ZodString>;
|
|
483
131
|
uuid: z.ZodOptional<z.ZodString>;
|
|
484
132
|
app_id: z.ZodOptional<z.ZodString>;
|
|
485
133
|
instance_id: z.ZodOptional<z.ZodString>;
|
|
486
|
-
name: z.ZodOptional<z.
|
|
487
|
-
},
|
|
488
|
-
|
|
489
|
-
id?: string | undefined;
|
|
490
|
-
uuid?: string | undefined;
|
|
491
|
-
app_id?: string | undefined;
|
|
492
|
-
instance_id?: string | undefined;
|
|
134
|
+
name: z.ZodOptional<z.ZodString>;
|
|
135
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
136
|
+
cvmId: string;
|
|
493
137
|
}, {
|
|
494
|
-
name?: string | undefined;
|
|
495
138
|
id?: string | undefined;
|
|
496
139
|
uuid?: string | undefined;
|
|
497
140
|
app_id?: string | undefined;
|
|
498
141
|
instance_id?: string | undefined;
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
}, any>;
|
|
142
|
+
name?: string | undefined;
|
|
143
|
+
}>>;
|
|
502
144
|
export type GetCvmAttestationRequest = CvmIdInput;
|
|
503
145
|
declare const getCvmAttestation: {
|
|
504
146
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
|
|
505
147
|
name: string | null;
|
|
506
|
-
error: string | null;
|
|
507
|
-
compose_file: string | null;
|
|
508
148
|
is_online: boolean;
|
|
509
149
|
is_public: boolean;
|
|
150
|
+
error: string | null;
|
|
510
151
|
app_certificates: {
|
|
511
|
-
version: string;
|
|
512
152
|
subject: {
|
|
513
|
-
state: string | null;
|
|
514
153
|
common_name: string | null;
|
|
515
154
|
organization: string | null;
|
|
516
155
|
country: string | null;
|
|
156
|
+
state: string | null;
|
|
517
157
|
locality: string | null;
|
|
518
158
|
};
|
|
519
159
|
issuer: {
|
|
@@ -524,6 +164,7 @@ declare const getCvmAttestation: {
|
|
|
524
164
|
serial_number: string;
|
|
525
165
|
not_before: string;
|
|
526
166
|
not_after: string;
|
|
167
|
+
version: string;
|
|
527
168
|
fingerprint: string;
|
|
528
169
|
signature_algorithm: string;
|
|
529
170
|
sans: string[] | null;
|
|
@@ -534,7 +175,6 @@ declare const getCvmAttestation: {
|
|
|
534
175
|
cert_usage?: string | null | undefined;
|
|
535
176
|
}[] | null;
|
|
536
177
|
tcb_info: {
|
|
537
|
-
app_compose: string;
|
|
538
178
|
mrtd: string;
|
|
539
179
|
rtmr0: string;
|
|
540
180
|
rtmr1: string;
|
|
@@ -547,29 +187,29 @@ declare const getCvmAttestation: {
|
|
|
547
187
|
event: string;
|
|
548
188
|
event_payload: string;
|
|
549
189
|
}[];
|
|
190
|
+
app_compose: string;
|
|
550
191
|
rootfs_hash?: string | null | undefined;
|
|
551
192
|
} | null;
|
|
193
|
+
compose_file: string | null;
|
|
552
194
|
}>;
|
|
553
195
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
554
196
|
schema: T;
|
|
555
|
-
}): Promise<z.
|
|
197
|
+
}): Promise<z.core.output<T>>;
|
|
556
198
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
557
199
|
schema: false;
|
|
558
200
|
}): Promise<unknown>;
|
|
559
201
|
}, safeGetCvmAttestation: {
|
|
560
202
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
|
|
561
203
|
name: string | null;
|
|
562
|
-
error: string | null;
|
|
563
|
-
compose_file: string | null;
|
|
564
204
|
is_online: boolean;
|
|
565
205
|
is_public: boolean;
|
|
206
|
+
error: string | null;
|
|
566
207
|
app_certificates: {
|
|
567
|
-
version: string;
|
|
568
208
|
subject: {
|
|
569
|
-
state: string | null;
|
|
570
209
|
common_name: string | null;
|
|
571
210
|
organization: string | null;
|
|
572
211
|
country: string | null;
|
|
212
|
+
state: string | null;
|
|
573
213
|
locality: string | null;
|
|
574
214
|
};
|
|
575
215
|
issuer: {
|
|
@@ -580,6 +220,7 @@ declare const getCvmAttestation: {
|
|
|
580
220
|
serial_number: string;
|
|
581
221
|
not_before: string;
|
|
582
222
|
not_after: string;
|
|
223
|
+
version: string;
|
|
583
224
|
fingerprint: string;
|
|
584
225
|
signature_algorithm: string;
|
|
585
226
|
sans: string[] | null;
|
|
@@ -590,7 +231,6 @@ declare const getCvmAttestation: {
|
|
|
590
231
|
cert_usage?: string | null | undefined;
|
|
591
232
|
}[] | null;
|
|
592
233
|
tcb_info: {
|
|
593
|
-
app_compose: string;
|
|
594
234
|
mrtd: string;
|
|
595
235
|
rtmr0: string;
|
|
596
236
|
rtmr1: string;
|
|
@@ -603,12 +243,14 @@ declare const getCvmAttestation: {
|
|
|
603
243
|
event: string;
|
|
604
244
|
event_payload: string;
|
|
605
245
|
}[];
|
|
246
|
+
app_compose: string;
|
|
606
247
|
rootfs_hash?: string | null | undefined;
|
|
607
248
|
} | null;
|
|
249
|
+
compose_file: string | null;
|
|
608
250
|
}>>;
|
|
609
251
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
610
252
|
schema: T;
|
|
611
|
-
}): Promise<import("../..").SafeResult<z.
|
|
253
|
+
}): Promise<import("../..").SafeResult<z.core.output<T>>>;
|
|
612
254
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
613
255
|
schema: false;
|
|
614
256
|
}): Promise<import("../..").SafeResult<unknown>>;
|