@phala/cloud 0.2.4 → 0.2.8

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