@phala/cloud 0.3.0 → 0.5.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 (112) hide show
  1. package/README.md +20 -0
  2. package/dist/actions/api_tokens/revoke_current_api_token.d.ts +47 -0
  3. package/dist/actions/apps/app_launch_token.d.ts +121 -0
  4. package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +17 -311
  5. package/dist/actions/apps/check_app_is_allowed.d.ts +20 -32
  6. package/dist/actions/apps/create_app_instance.d.ts +43 -63
  7. package/dist/actions/apps/get_app_attestation.d.ts +116 -772
  8. package/dist/actions/apps/get_app_cvms.d.ts +1 -5
  9. package/dist/actions/apps/get_app_device_allowlist.d.ts +26 -272
  10. package/dist/actions/apps/get_app_filter_options.d.ts +8 -24
  11. package/dist/actions/apps/get_app_info.d.ts +1 -5
  12. package/dist/actions/apps/get_app_list.d.ts +2 -26
  13. package/dist/actions/apps/get_app_revision_detail.d.ts +1 -9
  14. package/dist/actions/apps/get_app_revisions.d.ts +1 -9
  15. package/dist/actions/blockchains/add_compose_hash.d.ts +1 -13
  16. package/dist/actions/blockchains/add_device.d.ts +1 -13
  17. package/dist/actions/blockchains/deploy_app_auth.d.ts +3 -95
  18. package/dist/actions/blockchains/get_allowed_devices.d.ts +2 -12
  19. package/dist/actions/blockchains/remove_device.d.ts +1 -13
  20. package/dist/actions/blockchains/set_allow_any_device.d.ts +1 -13
  21. package/dist/actions/cvms/check_cvm_is_allowed.d.ts +13 -138
  22. package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +9 -45
  23. package/dist/actions/cvms/commit_cvm_provision.d.ts +32 -416
  24. package/dist/actions/cvms/commit_cvm_update.d.ts +70 -41
  25. package/dist/actions/cvms/confirm_cvm_patch.d.ts +62 -35
  26. package/dist/actions/cvms/cvm_annotations.d.ts +152 -0
  27. package/dist/actions/cvms/delete_cvm.d.ts +8 -14
  28. package/dist/actions/cvms/get_available_os_images.d.ts +70 -111
  29. package/dist/actions/cvms/get_cvm_attestation.d.ts +34 -392
  30. package/dist/actions/cvms/get_cvm_compose_file.d.ts +426 -512
  31. package/dist/actions/cvms/get_cvm_containers_stats.d.ts +25 -91
  32. package/dist/actions/cvms/get_cvm_docker_compose.d.ts +8 -14
  33. package/dist/actions/cvms/get_cvm_info.d.ts +6 -12
  34. package/dist/actions/cvms/get_cvm_init_scripts.d.ts +87 -0
  35. package/dist/actions/cvms/get_cvm_list.d.ts +9 -17
  36. package/dist/actions/cvms/get_cvm_network.d.ts +18 -50
  37. package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +8 -14
  38. package/dist/actions/cvms/get_cvm_state.d.ts +11 -37
  39. package/dist/actions/cvms/get_cvm_stats.d.ts +23 -149
  40. package/dist/actions/cvms/get_cvm_status_batch.d.ts +97 -64
  41. package/dist/actions/cvms/get_cvm_user_config.d.ts +13 -24
  42. package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +9 -27
  43. package/dist/actions/cvms/patch_cvm.d.ts +666 -287
  44. package/dist/actions/cvms/provision_cvm.d.ts +339 -725
  45. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +584 -777
  46. package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +74 -131
  47. package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +77 -297
  48. package/dist/actions/cvms/replicate_cvm.d.ts +7 -21
  49. package/dist/actions/cvms/restart_cvm.d.ts +3 -18
  50. package/dist/actions/cvms/shutdown_cvm.d.ts +6 -12
  51. package/dist/actions/cvms/start_cvm.d.ts +6 -12
  52. package/dist/actions/cvms/stop_cvm.d.ts +6 -12
  53. package/dist/actions/cvms/update_cvm_envs.d.ts +144 -195
  54. package/dist/actions/cvms/update_cvm_resources.d.ts +93 -37
  55. package/dist/actions/cvms/update_cvm_visibility.d.ts +90 -130
  56. package/dist/actions/cvms/update_docker_compose.d.ts +143 -187
  57. package/dist/actions/cvms/update_os_image.d.ts +55 -28
  58. package/dist/actions/cvms/update_prelaunch_script.d.ts +143 -187
  59. package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +126 -185
  60. package/dist/actions/cvms/watch_cvm_state.d.ts +5 -15
  61. package/dist/actions/get_available_nodes.d.ts +201 -823
  62. package/dist/actions/get_cvm_create_resources.d.ts +150 -2150
  63. package/dist/actions/index.d.ts +14 -4
  64. package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +11 -23
  65. package/dist/actions/kms/get_kms_contract.d.ts +57 -0
  66. package/dist/actions/kms/get_kms_info.d.ts +3 -7
  67. package/dist/actions/kms/get_kms_list.d.ts +43 -82
  68. package/dist/actions/kms/get_kms_onchain_detail.d.ts +72 -616
  69. package/dist/actions/kms/list_kms_contract_nodes.d.ts +66 -0
  70. package/dist/actions/kms/list_kms_contracts.d.ts +98 -0
  71. package/dist/actions/kms/next_app_ids.d.ts +5 -25
  72. package/dist/actions/list-instance-types.d.ts +77 -257
  73. package/dist/actions/os_images/get_os_images.d.ts +38 -152
  74. package/dist/actions/ssh_keys/create_ssh_key.d.ts +11 -17
  75. package/dist/actions/ssh_keys/delete_ssh_key.d.ts +3 -7
  76. package/dist/actions/ssh_keys/get_cvm_ssh_keys.d.ts +113 -0
  77. package/dist/actions/ssh_keys/import_github_profile.d.ts +7 -21
  78. package/dist/actions/ssh_keys/list_ssh_keys.d.ts +2 -50
  79. package/dist/actions/ssh_keys/sync_github_ssh_keys.d.ts +8 -20
  80. package/dist/actions/ssh_keys/update_cvm_ssh_keys.d.ts +140 -0
  81. package/dist/actions/workspaces/get_workspace.d.ts +32 -24
  82. package/dist/actions/workspaces/get_workspace_nodes.d.ts +56 -182
  83. package/dist/actions/workspaces/get_workspace_quotas.d.ts +107 -1021
  84. package/dist/actions/workspaces/list_workspaces.d.ts +69 -245
  85. package/dist/client.d.ts +27 -5
  86. package/dist/create-client.d.ts +1820 -1
  87. package/dist/credentials/current_user_v20251028.d.ts +1 -17
  88. package/dist/credentials/current_user_v20260121.d.ts +22 -227
  89. package/dist/index.d.ts +1 -2
  90. package/dist/index.js +5454 -4389
  91. package/dist/index.mjs +5396 -4395
  92. package/dist/types/app_compose.d.ts +116 -184
  93. package/dist/types/app_info_v20251028.d.ts +29 -1030
  94. package/dist/types/app_info_v20260121.d.ts +686 -6832
  95. package/dist/types/app_revision.d.ts +15 -371
  96. package/dist/types/client.d.ts +18 -2
  97. package/dist/types/common.d.ts +6 -0
  98. package/dist/types/cvm_id.d.ts +12 -57
  99. package/dist/types/cvm_info.d.ts +33 -460
  100. package/dist/types/cvm_info_v20251028.d.ts +102 -800
  101. package/dist/types/cvm_info_v20260121.d.ts +411 -2347
  102. package/dist/types/kms_contract.d.ts +34 -0
  103. package/dist/types/kms_info.d.ts +34 -60
  104. package/dist/types/version-mappings.d.ts +6 -6
  105. package/dist/utils/define-action.d.ts +4 -4
  106. package/dist/utils/error_codes.d.ts +1 -0
  107. package/dist/utils/errors.d.ts +34 -37
  108. package/dist/utils/get_compose_hash.d.ts +59 -4
  109. package/dist/utils/get_mr_config_id.d.ts +146 -0
  110. package/dist/utils/index.d.ts +3 -2
  111. package/dist/utils/placement-request.d.ts +3 -0
  112. package/package.json +4 -4
@@ -11,6 +11,7 @@ export declare const AppAttestationInstanceSchema: z.ZodObject<{
11
11
  device_id: z.ZodOptional<z.ZodString>;
12
12
  fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
13
  tee_tcb_svn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ mr_config_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
15
  cpusvn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
16
  pcesvn: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
17
  tcb_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -26,51 +27,9 @@ export declare const AppAttestationInstanceSchema: z.ZodObject<{
26
27
  digest: z.ZodString;
27
28
  event: z.ZodString;
28
29
  event_payload: z.ZodString;
29
- }, "strip", z.ZodTypeAny, {
30
- imr: number;
31
- event_type: number;
32
- digest: string;
33
- event: string;
34
- event_payload: string;
35
- }, {
36
- imr: number;
37
- event_type: number;
38
- digest: string;
39
- event: string;
40
- event_payload: string;
41
- }>, "many">;
30
+ }, z.core.$strip>>;
42
31
  app_compose: z.ZodString;
43
- }, "strip", z.ZodTypeAny, {
44
- app_compose: string;
45
- mrtd: string;
46
- rtmr0: string;
47
- rtmr1: string;
48
- rtmr2: string;
49
- rtmr3: string;
50
- event_log: {
51
- imr: number;
52
- event_type: number;
53
- digest: string;
54
- event: string;
55
- event_payload: string;
56
- }[];
57
- rootfs_hash?: string | null | undefined;
58
- }, {
59
- app_compose: string;
60
- mrtd: string;
61
- rtmr0: string;
62
- rtmr1: string;
63
- rtmr2: string;
64
- rtmr3: string;
65
- event_log: {
66
- imr: number;
67
- event_type: number;
68
- digest: string;
69
- event: string;
70
- event_payload: string;
71
- }[];
72
- rootfs_hash?: string | null | undefined;
73
- }>>>;
32
+ }, z.core.$strip>>>;
74
33
  app_certificates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
75
34
  subject: z.ZodObject<{
76
35
  common_name: z.ZodNullable<z.ZodString>;
@@ -78,243 +37,41 @@ export declare const AppAttestationInstanceSchema: z.ZodObject<{
78
37
  country: z.ZodNullable<z.ZodString>;
79
38
  state: z.ZodNullable<z.ZodString>;
80
39
  locality: z.ZodNullable<z.ZodString>;
81
- }, "strip", z.ZodTypeAny, {
82
- state: string | null;
83
- common_name: string | null;
84
- organization: string | null;
85
- country: string | null;
86
- locality: string | null;
87
- }, {
88
- state: string | null;
89
- common_name: string | null;
90
- organization: string | null;
91
- country: string | null;
92
- locality: string | null;
93
- }>;
40
+ }, z.core.$strip>;
94
41
  issuer: z.ZodObject<{
95
42
  common_name: z.ZodNullable<z.ZodString>;
96
43
  organization: z.ZodNullable<z.ZodString>;
97
44
  country: z.ZodNullable<z.ZodString>;
98
- }, "strip", z.ZodTypeAny, {
99
- common_name: string | null;
100
- organization: string | null;
101
- country: string | null;
102
- }, {
103
- common_name: string | null;
104
- organization: string | null;
105
- country: string | null;
106
- }>;
45
+ }, z.core.$strip>;
107
46
  serial_number: z.ZodString;
108
47
  not_before: z.ZodString;
109
48
  not_after: z.ZodString;
110
49
  version: z.ZodString;
111
50
  fingerprint: z.ZodString;
112
51
  signature_algorithm: z.ZodString;
113
- sans: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
52
+ sans: z.ZodNullable<z.ZodArray<z.ZodString>>;
114
53
  is_ca: z.ZodBoolean;
115
54
  position_in_chain: z.ZodNullable<z.ZodNumber>;
116
55
  quote: z.ZodNullable<z.ZodString>;
117
56
  app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
57
  cert_usage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
- }, "strip", z.ZodTypeAny, {
120
- version: string;
121
- subject: {
122
- state: string | null;
123
- common_name: string | null;
124
- organization: string | null;
125
- country: string | null;
126
- locality: string | null;
127
- };
128
- issuer: {
129
- common_name: string | null;
130
- organization: string | null;
131
- country: string | null;
132
- };
133
- serial_number: string;
134
- not_before: string;
135
- not_after: string;
136
- fingerprint: string;
137
- signature_algorithm: string;
138
- sans: string[] | null;
139
- is_ca: boolean;
140
- position_in_chain: number | null;
141
- quote: string | null;
142
- app_id?: string | null | undefined;
143
- cert_usage?: string | null | undefined;
144
- }, {
145
- version: string;
146
- subject: {
147
- state: string | null;
148
- common_name: string | null;
149
- organization: string | null;
150
- country: string | null;
151
- locality: string | null;
152
- };
153
- issuer: {
154
- common_name: string | null;
155
- organization: string | null;
156
- country: string | null;
157
- };
158
- serial_number: string;
159
- not_before: string;
160
- not_after: string;
161
- fingerprint: string;
162
- signature_algorithm: string;
163
- sans: string[] | null;
164
- is_ca: boolean;
165
- position_in_chain: number | null;
166
- quote: string | null;
167
- app_id?: string | null | undefined;
168
- cert_usage?: string | null | undefined;
169
- }>, "many">>>;
58
+ }, z.core.$strip>>>>;
170
59
  compose_file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
171
60
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
172
- }, "strip", z.ZodTypeAny, {
173
- status?: string | undefined;
174
- name?: string | undefined;
175
- error?: string | null | undefined;
176
- instance_id?: string | null | undefined;
177
- device_id?: string | undefined;
178
- vm_uuid?: string | null | undefined;
179
- image_version?: string | null | undefined;
180
- ppid?: string | undefined;
181
- compose_file?: string | null | undefined;
182
- fmspc?: string | null | undefined;
183
- quote?: string | null | undefined;
184
- app_certificates?: {
185
- version: string;
186
- subject: {
187
- state: string | null;
188
- common_name: string | null;
189
- organization: string | null;
190
- country: string | null;
191
- locality: string | null;
192
- };
193
- issuer: {
194
- common_name: string | null;
195
- organization: string | null;
196
- country: string | null;
197
- };
198
- serial_number: string;
199
- not_before: string;
200
- not_after: string;
201
- fingerprint: string;
202
- signature_algorithm: string;
203
- sans: string[] | null;
204
- is_ca: boolean;
205
- position_in_chain: number | null;
206
- quote: string | null;
207
- app_id?: string | null | undefined;
208
- cert_usage?: string | null | undefined;
209
- }[] | null | undefined;
210
- tcb_info?: {
211
- app_compose: string;
212
- mrtd: string;
213
- rtmr0: string;
214
- rtmr1: string;
215
- rtmr2: string;
216
- rtmr3: string;
217
- event_log: {
218
- imr: number;
219
- event_type: number;
220
- digest: string;
221
- event: string;
222
- event_payload: string;
223
- }[];
224
- rootfs_hash?: string | null | undefined;
225
- } | null | undefined;
226
- ppid_sha256?: string | null | undefined;
227
- tee_tcb_svn?: string | null | undefined;
228
- cpusvn?: string | null | undefined;
229
- pcesvn?: number | null | undefined;
230
- }, {
231
- status?: string | undefined;
232
- name?: string | undefined;
233
- error?: string | null | undefined;
234
- instance_id?: string | null | undefined;
235
- device_id?: string | undefined;
236
- vm_uuid?: string | null | undefined;
237
- image_version?: string | null | undefined;
238
- ppid?: string | undefined;
239
- compose_file?: string | null | undefined;
240
- fmspc?: string | null | undefined;
241
- quote?: string | null | undefined;
242
- app_certificates?: {
243
- version: string;
244
- subject: {
245
- state: string | null;
246
- common_name: string | null;
247
- organization: string | null;
248
- country: string | null;
249
- locality: string | null;
250
- };
251
- issuer: {
252
- common_name: string | null;
253
- organization: string | null;
254
- country: string | null;
255
- };
256
- serial_number: string;
257
- not_before: string;
258
- not_after: string;
259
- fingerprint: string;
260
- signature_algorithm: string;
261
- sans: string[] | null;
262
- is_ca: boolean;
263
- position_in_chain: number | null;
264
- quote: string | null;
265
- app_id?: string | null | undefined;
266
- cert_usage?: string | null | undefined;
267
- }[] | null | undefined;
268
- tcb_info?: {
269
- app_compose: string;
270
- mrtd: string;
271
- rtmr0: string;
272
- rtmr1: string;
273
- rtmr2: string;
274
- rtmr3: string;
275
- event_log: {
276
- imr: number;
277
- event_type: number;
278
- digest: string;
279
- event: string;
280
- event_payload: string;
281
- }[];
282
- rootfs_hash?: string | null | undefined;
283
- } | null | undefined;
284
- ppid_sha256?: string | null | undefined;
285
- tee_tcb_svn?: string | null | undefined;
286
- cpusvn?: string | null | undefined;
287
- pcesvn?: number | null | undefined;
288
- }>;
61
+ }, z.core.$strip>;
289
62
  export type AppAttestationInstance = z.infer<typeof AppAttestationInstanceSchema>;
290
63
  export declare const AppAttestationResponseSchema: z.ZodObject<{
291
64
  app_id: z.ZodString;
292
65
  contract_address: z.ZodString;
293
66
  kms_info: z.ZodObject<{
294
67
  contract_address: z.ZodString;
295
- chain_id: z.ZodNullable<z.ZodString>;
68
+ chain_id: z.ZodNullable<z.ZodNumber>;
296
69
  version: z.ZodString;
297
70
  url: z.ZodString;
298
71
  gateway_app_id: z.ZodNullable<z.ZodString>;
299
72
  gateway_app_url: z.ZodString;
300
73
  kms_type: z.ZodString;
301
- }, "strip", z.ZodTypeAny, {
302
- version: string;
303
- chain_id: string | null;
304
- contract_address: string;
305
- url: string;
306
- gateway_app_id: string | null;
307
- kms_type: string;
308
- gateway_app_url: string;
309
- }, {
310
- version: string;
311
- chain_id: string | null;
312
- contract_address: string;
313
- url: string;
314
- gateway_app_id: string | null;
315
- kms_type: string;
316
- gateway_app_url: string;
317
- }>;
74
+ }, z.core.$strip>;
318
75
  instances: z.ZodArray<z.ZodObject<{
319
76
  vm_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
320
77
  name: z.ZodOptional<z.ZodString>;
@@ -327,6 +84,7 @@ export declare const AppAttestationResponseSchema: z.ZodObject<{
327
84
  device_id: z.ZodOptional<z.ZodString>;
328
85
  fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
86
  tee_tcb_svn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
+ mr_config_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
88
  cpusvn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
331
89
  pcesvn: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
332
90
  tcb_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -342,51 +100,9 @@ export declare const AppAttestationResponseSchema: z.ZodObject<{
342
100
  digest: z.ZodString;
343
101
  event: z.ZodString;
344
102
  event_payload: z.ZodString;
345
- }, "strip", z.ZodTypeAny, {
346
- imr: number;
347
- event_type: number;
348
- digest: string;
349
- event: string;
350
- event_payload: string;
351
- }, {
352
- imr: number;
353
- event_type: number;
354
- digest: string;
355
- event: string;
356
- event_payload: string;
357
- }>, "many">;
103
+ }, z.core.$strip>>;
358
104
  app_compose: z.ZodString;
359
- }, "strip", z.ZodTypeAny, {
360
- app_compose: string;
361
- mrtd: string;
362
- rtmr0: string;
363
- rtmr1: string;
364
- rtmr2: string;
365
- rtmr3: string;
366
- event_log: {
367
- imr: number;
368
- event_type: number;
369
- digest: string;
370
- event: string;
371
- event_payload: string;
372
- }[];
373
- rootfs_hash?: string | null | undefined;
374
- }, {
375
- app_compose: string;
376
- mrtd: string;
377
- rtmr0: string;
378
- rtmr1: string;
379
- rtmr2: string;
380
- rtmr3: string;
381
- event_log: {
382
- imr: number;
383
- event_type: number;
384
- digest: string;
385
- event: string;
386
- event_payload: string;
387
- }[];
388
- rootfs_hash?: string | null | undefined;
389
- }>>>;
105
+ }, z.core.$strip>>>;
390
106
  app_certificates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
391
107
  subject: z.ZodObject<{
392
108
  common_name: z.ZodNullable<z.ZodString>;
@@ -394,424 +110,46 @@ export declare const AppAttestationResponseSchema: z.ZodObject<{
394
110
  country: z.ZodNullable<z.ZodString>;
395
111
  state: z.ZodNullable<z.ZodString>;
396
112
  locality: z.ZodNullable<z.ZodString>;
397
- }, "strip", z.ZodTypeAny, {
398
- state: string | null;
399
- common_name: string | null;
400
- organization: string | null;
401
- country: string | null;
402
- locality: string | null;
403
- }, {
404
- state: string | null;
405
- common_name: string | null;
406
- organization: string | null;
407
- country: string | null;
408
- locality: string | null;
409
- }>;
113
+ }, z.core.$strip>;
410
114
  issuer: z.ZodObject<{
411
115
  common_name: z.ZodNullable<z.ZodString>;
412
116
  organization: z.ZodNullable<z.ZodString>;
413
117
  country: z.ZodNullable<z.ZodString>;
414
- }, "strip", z.ZodTypeAny, {
415
- common_name: string | null;
416
- organization: string | null;
417
- country: string | null;
418
- }, {
419
- common_name: string | null;
420
- organization: string | null;
421
- country: string | null;
422
- }>;
118
+ }, z.core.$strip>;
423
119
  serial_number: z.ZodString;
424
120
  not_before: z.ZodString;
425
121
  not_after: z.ZodString;
426
122
  version: z.ZodString;
427
123
  fingerprint: z.ZodString;
428
124
  signature_algorithm: z.ZodString;
429
- sans: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
125
+ sans: z.ZodNullable<z.ZodArray<z.ZodString>>;
430
126
  is_ca: z.ZodBoolean;
431
127
  position_in_chain: z.ZodNullable<z.ZodNumber>;
432
128
  quote: z.ZodNullable<z.ZodString>;
433
129
  app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
130
  cert_usage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
435
- }, "strip", z.ZodTypeAny, {
436
- version: string;
437
- subject: {
438
- state: string | null;
439
- common_name: string | null;
440
- organization: string | null;
441
- country: string | null;
442
- locality: string | null;
443
- };
444
- issuer: {
445
- common_name: string | null;
446
- organization: string | null;
447
- country: string | null;
448
- };
449
- serial_number: string;
450
- not_before: string;
451
- not_after: string;
452
- fingerprint: string;
453
- signature_algorithm: string;
454
- sans: string[] | null;
455
- is_ca: boolean;
456
- position_in_chain: number | null;
457
- quote: string | null;
458
- app_id?: string | null | undefined;
459
- cert_usage?: string | null | undefined;
460
- }, {
461
- version: string;
462
- subject: {
463
- state: string | null;
464
- common_name: string | null;
465
- organization: string | null;
466
- country: string | null;
467
- locality: string | null;
468
- };
469
- issuer: {
470
- common_name: string | null;
471
- organization: string | null;
472
- country: string | null;
473
- };
474
- serial_number: string;
475
- not_before: string;
476
- not_after: string;
477
- fingerprint: string;
478
- signature_algorithm: string;
479
- sans: string[] | null;
480
- is_ca: boolean;
481
- position_in_chain: number | null;
482
- quote: string | null;
483
- app_id?: string | null | undefined;
484
- cert_usage?: string | null | undefined;
485
- }>, "many">>>;
131
+ }, z.core.$strip>>>>;
486
132
  compose_file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
487
133
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
488
- }, "strip", z.ZodTypeAny, {
489
- status?: string | undefined;
490
- name?: string | undefined;
491
- error?: string | null | undefined;
492
- instance_id?: string | null | undefined;
493
- device_id?: string | undefined;
494
- vm_uuid?: string | null | undefined;
495
- image_version?: string | null | undefined;
496
- ppid?: string | undefined;
497
- compose_file?: string | null | undefined;
498
- fmspc?: string | null | undefined;
499
- quote?: string | null | undefined;
500
- app_certificates?: {
501
- version: string;
502
- subject: {
503
- state: string | null;
504
- common_name: string | null;
505
- organization: string | null;
506
- country: string | null;
507
- locality: string | null;
508
- };
509
- issuer: {
510
- common_name: string | null;
511
- organization: string | null;
512
- country: string | null;
513
- };
514
- serial_number: string;
515
- not_before: string;
516
- not_after: string;
517
- fingerprint: string;
518
- signature_algorithm: string;
519
- sans: string[] | null;
520
- is_ca: boolean;
521
- position_in_chain: number | null;
522
- quote: string | null;
523
- app_id?: string | null | undefined;
524
- cert_usage?: string | null | undefined;
525
- }[] | null | undefined;
526
- tcb_info?: {
527
- app_compose: string;
528
- mrtd: string;
529
- rtmr0: string;
530
- rtmr1: string;
531
- rtmr2: string;
532
- rtmr3: string;
533
- event_log: {
534
- imr: number;
535
- event_type: number;
536
- digest: string;
537
- event: string;
538
- event_payload: string;
539
- }[];
540
- rootfs_hash?: string | null | undefined;
541
- } | null | undefined;
542
- ppid_sha256?: string | null | undefined;
543
- tee_tcb_svn?: string | null | undefined;
544
- cpusvn?: string | null | undefined;
545
- pcesvn?: number | null | undefined;
546
- }, {
547
- status?: string | undefined;
548
- name?: string | undefined;
549
- error?: string | null | undefined;
550
- instance_id?: string | null | undefined;
551
- device_id?: string | undefined;
552
- vm_uuid?: string | null | undefined;
553
- image_version?: string | null | undefined;
554
- ppid?: string | undefined;
555
- compose_file?: string | null | undefined;
556
- fmspc?: string | null | undefined;
557
- quote?: string | null | undefined;
558
- app_certificates?: {
559
- version: string;
560
- subject: {
561
- state: string | null;
562
- common_name: string | null;
563
- organization: string | null;
564
- country: string | null;
565
- locality: string | null;
566
- };
567
- issuer: {
568
- common_name: string | null;
569
- organization: string | null;
570
- country: string | null;
571
- };
572
- serial_number: string;
573
- not_before: string;
574
- not_after: string;
575
- fingerprint: string;
576
- signature_algorithm: string;
577
- sans: string[] | null;
578
- is_ca: boolean;
579
- position_in_chain: number | null;
580
- quote: string | null;
581
- app_id?: string | null | undefined;
582
- cert_usage?: string | null | undefined;
583
- }[] | null | undefined;
584
- tcb_info?: {
585
- app_compose: string;
586
- mrtd: string;
587
- rtmr0: string;
588
- rtmr1: string;
589
- rtmr2: string;
590
- rtmr3: string;
591
- event_log: {
592
- imr: number;
593
- event_type: number;
594
- digest: string;
595
- event: string;
596
- event_payload: string;
597
- }[];
598
- rootfs_hash?: string | null | undefined;
599
- } | null | undefined;
600
- ppid_sha256?: string | null | undefined;
601
- tee_tcb_svn?: string | null | undefined;
602
- cpusvn?: string | null | undefined;
603
- pcesvn?: number | null | undefined;
604
- }>, "many">;
134
+ }, z.core.$strip>>;
605
135
  kms_guest_agent_info: z.ZodNullable<z.ZodObject<{
606
136
  app_id: z.ZodOptional<z.ZodString>;
607
137
  instance_id: z.ZodOptional<z.ZodString>;
608
138
  app_name: z.ZodOptional<z.ZodString>;
609
139
  device_id: z.ZodOptional<z.ZodString>;
610
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
611
- app_id: z.ZodOptional<z.ZodString>;
612
- instance_id: z.ZodOptional<z.ZodString>;
613
- app_name: z.ZodOptional<z.ZodString>;
614
- device_id: z.ZodOptional<z.ZodString>;
615
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
616
- app_id: z.ZodOptional<z.ZodString>;
617
- instance_id: z.ZodOptional<z.ZodString>;
618
- app_name: z.ZodOptional<z.ZodString>;
619
- device_id: z.ZodOptional<z.ZodString>;
620
- }, z.ZodTypeAny, "passthrough">>>;
140
+ }, z.core.$loose>>;
621
141
  gateway_guest_agent_info: z.ZodNullable<z.ZodObject<{
622
142
  app_id: z.ZodOptional<z.ZodString>;
623
143
  instance_id: z.ZodOptional<z.ZodString>;
624
144
  app_name: z.ZodOptional<z.ZodString>;
625
145
  device_id: z.ZodOptional<z.ZodString>;
626
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
627
- app_id: z.ZodOptional<z.ZodString>;
628
- instance_id: z.ZodOptional<z.ZodString>;
629
- app_name: z.ZodOptional<z.ZodString>;
630
- device_id: z.ZodOptional<z.ZodString>;
631
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
632
- app_id: z.ZodOptional<z.ZodString>;
633
- instance_id: z.ZodOptional<z.ZodString>;
634
- app_name: z.ZodOptional<z.ZodString>;
635
- device_id: z.ZodOptional<z.ZodString>;
636
- }, z.ZodTypeAny, "passthrough">>>;
146
+ }, z.core.$loose>>;
637
147
  qemu_version: z.ZodNullable<z.ZodString>;
638
- }, "strip", z.ZodTypeAny, {
639
- app_id: string;
640
- contract_address: string;
641
- kms_info: {
642
- version: string;
643
- chain_id: string | null;
644
- contract_address: string;
645
- url: string;
646
- gateway_app_id: string | null;
647
- kms_type: string;
648
- gateway_app_url: string;
649
- };
650
- instances: {
651
- status?: string | undefined;
652
- name?: string | undefined;
653
- error?: string | null | undefined;
654
- instance_id?: string | null | undefined;
655
- device_id?: string | undefined;
656
- vm_uuid?: string | null | undefined;
657
- image_version?: string | null | undefined;
658
- ppid?: string | undefined;
659
- compose_file?: string | null | undefined;
660
- fmspc?: string | null | undefined;
661
- quote?: string | null | undefined;
662
- app_certificates?: {
663
- version: string;
664
- subject: {
665
- state: string | null;
666
- common_name: string | null;
667
- organization: string | null;
668
- country: string | null;
669
- locality: string | null;
670
- };
671
- issuer: {
672
- common_name: string | null;
673
- organization: string | null;
674
- country: string | null;
675
- };
676
- serial_number: string;
677
- not_before: string;
678
- not_after: string;
679
- fingerprint: string;
680
- signature_algorithm: string;
681
- sans: string[] | null;
682
- is_ca: boolean;
683
- position_in_chain: number | null;
684
- quote: string | null;
685
- app_id?: string | null | undefined;
686
- cert_usage?: string | null | undefined;
687
- }[] | null | undefined;
688
- tcb_info?: {
689
- app_compose: string;
690
- mrtd: string;
691
- rtmr0: string;
692
- rtmr1: string;
693
- rtmr2: string;
694
- rtmr3: string;
695
- event_log: {
696
- imr: number;
697
- event_type: number;
698
- digest: string;
699
- event: string;
700
- event_payload: string;
701
- }[];
702
- rootfs_hash?: string | null | undefined;
703
- } | null | undefined;
704
- ppid_sha256?: string | null | undefined;
705
- tee_tcb_svn?: string | null | undefined;
706
- cpusvn?: string | null | undefined;
707
- pcesvn?: number | null | undefined;
708
- }[];
709
- kms_guest_agent_info: z.objectOutputType<{
710
- app_id: z.ZodOptional<z.ZodString>;
711
- instance_id: z.ZodOptional<z.ZodString>;
712
- app_name: z.ZodOptional<z.ZodString>;
713
- device_id: z.ZodOptional<z.ZodString>;
714
- }, z.ZodTypeAny, "passthrough"> | null;
715
- gateway_guest_agent_info: z.objectOutputType<{
716
- app_id: z.ZodOptional<z.ZodString>;
717
- instance_id: z.ZodOptional<z.ZodString>;
718
- app_name: z.ZodOptional<z.ZodString>;
719
- device_id: z.ZodOptional<z.ZodString>;
720
- }, z.ZodTypeAny, "passthrough"> | null;
721
- qemu_version: string | null;
722
- }, {
723
- app_id: string;
724
- contract_address: string;
725
- kms_info: {
726
- version: string;
727
- chain_id: string | null;
728
- contract_address: string;
729
- url: string;
730
- gateway_app_id: string | null;
731
- kms_type: string;
732
- gateway_app_url: string;
733
- };
734
- instances: {
735
- status?: string | undefined;
736
- name?: string | undefined;
737
- error?: string | null | undefined;
738
- instance_id?: string | null | undefined;
739
- device_id?: string | undefined;
740
- vm_uuid?: string | null | undefined;
741
- image_version?: string | null | undefined;
742
- ppid?: string | undefined;
743
- compose_file?: string | null | undefined;
744
- fmspc?: string | null | undefined;
745
- quote?: string | null | undefined;
746
- app_certificates?: {
747
- version: string;
748
- subject: {
749
- state: string | null;
750
- common_name: string | null;
751
- organization: string | null;
752
- country: string | null;
753
- locality: string | null;
754
- };
755
- issuer: {
756
- common_name: string | null;
757
- organization: string | null;
758
- country: string | null;
759
- };
760
- serial_number: string;
761
- not_before: string;
762
- not_after: string;
763
- fingerprint: string;
764
- signature_algorithm: string;
765
- sans: string[] | null;
766
- is_ca: boolean;
767
- position_in_chain: number | null;
768
- quote: string | null;
769
- app_id?: string | null | undefined;
770
- cert_usage?: string | null | undefined;
771
- }[] | null | undefined;
772
- tcb_info?: {
773
- app_compose: string;
774
- mrtd: string;
775
- rtmr0: string;
776
- rtmr1: string;
777
- rtmr2: string;
778
- rtmr3: string;
779
- event_log: {
780
- imr: number;
781
- event_type: number;
782
- digest: string;
783
- event: string;
784
- event_payload: string;
785
- }[];
786
- rootfs_hash?: string | null | undefined;
787
- } | null | undefined;
788
- ppid_sha256?: string | null | undefined;
789
- tee_tcb_svn?: string | null | undefined;
790
- cpusvn?: string | null | undefined;
791
- pcesvn?: number | null | undefined;
792
- }[];
793
- kms_guest_agent_info: z.objectInputType<{
794
- app_id: z.ZodOptional<z.ZodString>;
795
- instance_id: z.ZodOptional<z.ZodString>;
796
- app_name: z.ZodOptional<z.ZodString>;
797
- device_id: z.ZodOptional<z.ZodString>;
798
- }, z.ZodTypeAny, "passthrough"> | null;
799
- gateway_guest_agent_info: z.objectInputType<{
800
- app_id: z.ZodOptional<z.ZodString>;
801
- instance_id: z.ZodOptional<z.ZodString>;
802
- app_name: z.ZodOptional<z.ZodString>;
803
- device_id: z.ZodOptional<z.ZodString>;
804
- }, z.ZodTypeAny, "passthrough"> | null;
805
- qemu_version: string | null;
806
- }>;
148
+ }, z.core.$strip>;
807
149
  export type AppAttestationResponse = z.infer<typeof AppAttestationResponseSchema>;
808
150
  export declare const GetAppAttestationRequestSchema: z.ZodObject<{
809
151
  appId: z.ZodString;
810
- }, "strict", z.ZodTypeAny, {
811
- appId: string;
812
- }, {
813
- appId: string;
814
- }>;
152
+ }, z.core.$strict>;
815
153
  export type GetAppAttestationRequest = z.infer<typeof GetAppAttestationRequestSchema>;
816
154
  declare const getAppAttestation: {
817
155
  (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
@@ -820,33 +158,51 @@ declare const getAppAttestation: {
820
158
  app_id: string;
821
159
  contract_address: string;
822
160
  kms_info: {
823
- version: string;
824
- chain_id: string | null;
825
161
  contract_address: string;
162
+ chain_id: number | null;
163
+ version: string;
826
164
  url: string;
827
165
  gateway_app_id: string | null;
828
- kms_type: string;
829
166
  gateway_app_url: string;
167
+ kms_type: string;
830
168
  };
831
169
  instances: {
832
- status?: string | undefined;
170
+ vm_uuid?: string | null | undefined;
833
171
  name?: string | undefined;
834
- error?: string | null | undefined;
835
172
  instance_id?: string | null | undefined;
836
- device_id?: string | undefined;
837
- vm_uuid?: string | null | undefined;
173
+ status?: string | undefined;
838
174
  image_version?: string | null | undefined;
175
+ quote?: string | null | undefined;
839
176
  ppid?: string | undefined;
840
- compose_file?: string | null | undefined;
177
+ ppid_sha256?: string | null | undefined;
178
+ device_id?: string | undefined;
841
179
  fmspc?: string | null | undefined;
842
- quote?: string | null | undefined;
180
+ tee_tcb_svn?: string | null | undefined;
181
+ mr_config_id?: string | null | undefined;
182
+ cpusvn?: string | null | undefined;
183
+ pcesvn?: number | null | undefined;
184
+ tcb_info?: {
185
+ mrtd: string;
186
+ rtmr0: string;
187
+ rtmr1: string;
188
+ rtmr2: string;
189
+ rtmr3: string;
190
+ event_log: {
191
+ imr: number;
192
+ event_type: number;
193
+ digest: string;
194
+ event: string;
195
+ event_payload: string;
196
+ }[];
197
+ app_compose: string;
198
+ rootfs_hash?: string | null | undefined;
199
+ } | null | undefined;
843
200
  app_certificates?: {
844
- version: string;
845
201
  subject: {
846
- state: string | null;
847
202
  common_name: string | null;
848
203
  organization: string | null;
849
204
  country: string | null;
205
+ state: string | null;
850
206
  locality: string | null;
851
207
  };
852
208
  issuer: {
@@ -857,6 +213,7 @@ declare const getAppAttestation: {
857
213
  serial_number: string;
858
214
  not_before: string;
859
215
  not_after: string;
216
+ version: string;
860
217
  fingerprint: string;
861
218
  signature_algorithm: string;
862
219
  sans: string[] | null;
@@ -866,46 +223,30 @@ declare const getAppAttestation: {
866
223
  app_id?: string | null | undefined;
867
224
  cert_usage?: string | null | undefined;
868
225
  }[] | null | undefined;
869
- tcb_info?: {
870
- app_compose: string;
871
- mrtd: string;
872
- rtmr0: string;
873
- rtmr1: string;
874
- rtmr2: string;
875
- rtmr3: string;
876
- event_log: {
877
- imr: number;
878
- event_type: number;
879
- digest: string;
880
- event: string;
881
- event_payload: string;
882
- }[];
883
- rootfs_hash?: string | null | undefined;
884
- } | null | undefined;
885
- ppid_sha256?: string | null | undefined;
886
- tee_tcb_svn?: string | null | undefined;
887
- cpusvn?: string | null | undefined;
888
- pcesvn?: number | null | undefined;
226
+ compose_file?: string | null | undefined;
227
+ error?: string | null | undefined;
889
228
  }[];
890
- kms_guest_agent_info: z.objectOutputType<{
891
- app_id: z.ZodOptional<z.ZodString>;
892
- instance_id: z.ZodOptional<z.ZodString>;
893
- app_name: z.ZodOptional<z.ZodString>;
894
- device_id: z.ZodOptional<z.ZodString>;
895
- }, z.ZodTypeAny, "passthrough"> | null;
896
- gateway_guest_agent_info: z.objectOutputType<{
897
- app_id: z.ZodOptional<z.ZodString>;
898
- instance_id: z.ZodOptional<z.ZodString>;
899
- app_name: z.ZodOptional<z.ZodString>;
900
- device_id: z.ZodOptional<z.ZodString>;
901
- }, z.ZodTypeAny, "passthrough"> | null;
229
+ kms_guest_agent_info: {
230
+ [x: string]: unknown;
231
+ app_id?: string | undefined;
232
+ instance_id?: string | undefined;
233
+ app_name?: string | undefined;
234
+ device_id?: string | undefined;
235
+ } | null;
236
+ gateway_guest_agent_info: {
237
+ [x: string]: unknown;
238
+ app_id?: string | undefined;
239
+ instance_id?: string | undefined;
240
+ app_name?: string | undefined;
241
+ device_id?: string | undefined;
242
+ } | null;
902
243
  qemu_version: string | null;
903
244
  }>;
904
245
  <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
905
246
  appId: string;
906
247
  }, parameters: {
907
248
  schema: T;
908
- }): Promise<z.TypeOf<T>>;
249
+ }): Promise<z.core.output<T>>;
909
250
  (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
910
251
  appId: string;
911
252
  }, parameters: {
@@ -918,33 +259,51 @@ declare const getAppAttestation: {
918
259
  app_id: string;
919
260
  contract_address: string;
920
261
  kms_info: {
921
- version: string;
922
- chain_id: string | null;
923
262
  contract_address: string;
263
+ chain_id: number | null;
264
+ version: string;
924
265
  url: string;
925
266
  gateway_app_id: string | null;
926
- kms_type: string;
927
267
  gateway_app_url: string;
268
+ kms_type: string;
928
269
  };
929
270
  instances: {
930
- status?: string | undefined;
271
+ vm_uuid?: string | null | undefined;
931
272
  name?: string | undefined;
932
- error?: string | null | undefined;
933
273
  instance_id?: string | null | undefined;
934
- device_id?: string | undefined;
935
- vm_uuid?: string | null | undefined;
274
+ status?: string | undefined;
936
275
  image_version?: string | null | undefined;
276
+ quote?: string | null | undefined;
937
277
  ppid?: string | undefined;
938
- compose_file?: string | null | undefined;
278
+ ppid_sha256?: string | null | undefined;
279
+ device_id?: string | undefined;
939
280
  fmspc?: string | null | undefined;
940
- quote?: string | null | undefined;
281
+ tee_tcb_svn?: string | null | undefined;
282
+ mr_config_id?: string | null | undefined;
283
+ cpusvn?: string | null | undefined;
284
+ pcesvn?: number | null | undefined;
285
+ tcb_info?: {
286
+ mrtd: string;
287
+ rtmr0: string;
288
+ rtmr1: string;
289
+ rtmr2: string;
290
+ rtmr3: string;
291
+ event_log: {
292
+ imr: number;
293
+ event_type: number;
294
+ digest: string;
295
+ event: string;
296
+ event_payload: string;
297
+ }[];
298
+ app_compose: string;
299
+ rootfs_hash?: string | null | undefined;
300
+ } | null | undefined;
941
301
  app_certificates?: {
942
- version: string;
943
302
  subject: {
944
- state: string | null;
945
303
  common_name: string | null;
946
304
  organization: string | null;
947
305
  country: string | null;
306
+ state: string | null;
948
307
  locality: string | null;
949
308
  };
950
309
  issuer: {
@@ -955,6 +314,7 @@ declare const getAppAttestation: {
955
314
  serial_number: string;
956
315
  not_before: string;
957
316
  not_after: string;
317
+ version: string;
958
318
  fingerprint: string;
959
319
  signature_algorithm: string;
960
320
  sans: string[] | null;
@@ -964,46 +324,30 @@ declare const getAppAttestation: {
964
324
  app_id?: string | null | undefined;
965
325
  cert_usage?: string | null | undefined;
966
326
  }[] | null | undefined;
967
- tcb_info?: {
968
- app_compose: string;
969
- mrtd: string;
970
- rtmr0: string;
971
- rtmr1: string;
972
- rtmr2: string;
973
- rtmr3: string;
974
- event_log: {
975
- imr: number;
976
- event_type: number;
977
- digest: string;
978
- event: string;
979
- event_payload: string;
980
- }[];
981
- rootfs_hash?: string | null | undefined;
982
- } | null | undefined;
983
- ppid_sha256?: string | null | undefined;
984
- tee_tcb_svn?: string | null | undefined;
985
- cpusvn?: string | null | undefined;
986
- pcesvn?: number | null | undefined;
327
+ compose_file?: string | null | undefined;
328
+ error?: string | null | undefined;
987
329
  }[];
988
- kms_guest_agent_info: z.objectOutputType<{
989
- app_id: z.ZodOptional<z.ZodString>;
990
- instance_id: z.ZodOptional<z.ZodString>;
991
- app_name: z.ZodOptional<z.ZodString>;
992
- device_id: z.ZodOptional<z.ZodString>;
993
- }, z.ZodTypeAny, "passthrough"> | null;
994
- gateway_guest_agent_info: z.objectOutputType<{
995
- app_id: z.ZodOptional<z.ZodString>;
996
- instance_id: z.ZodOptional<z.ZodString>;
997
- app_name: z.ZodOptional<z.ZodString>;
998
- device_id: z.ZodOptional<z.ZodString>;
999
- }, z.ZodTypeAny, "passthrough"> | null;
330
+ kms_guest_agent_info: {
331
+ [x: string]: unknown;
332
+ app_id?: string | undefined;
333
+ instance_id?: string | undefined;
334
+ app_name?: string | undefined;
335
+ device_id?: string | undefined;
336
+ } | null;
337
+ gateway_guest_agent_info: {
338
+ [x: string]: unknown;
339
+ app_id?: string | undefined;
340
+ instance_id?: string | undefined;
341
+ app_name?: string | undefined;
342
+ device_id?: string | undefined;
343
+ } | null;
1000
344
  qemu_version: string | null;
1001
345
  }>>;
1002
346
  <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
1003
347
  appId: string;
1004
348
  }, parameters: {
1005
349
  schema: T;
1006
- }): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
350
+ }): Promise<import("../..").SafeResult<z.core.output<T>>>;
1007
351
  (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
1008
352
  appId: string;
1009
353
  }, parameters: {