@phala/cloud 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/apps/get_app_attestation.d.ts +17 -7
- package/dist/actions/cvms/commit_cvm_provision.d.ts +6 -0
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +156 -12
- package/dist/actions/cvms/get_cvm_list.d.ts +8 -10
- package/dist/actions/cvms/get_cvm_status_batch.d.ts +247 -24
- package/dist/actions/cvms/patch_cvm.d.ts +16 -0
- package/dist/actions/cvms/provision_cvm.d.ts +900 -51
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +215 -5
- package/dist/actions/cvms/update_cvm_envs.d.ts +16 -0
- package/dist/actions/cvms/update_cvm_resources.d.ts +24 -2
- package/dist/actions/cvms/update_cvm_visibility.d.ts +2 -0
- package/dist/actions/cvms/update_docker_compose.d.ts +31 -0
- package/dist/actions/cvms/update_prelaunch_script.d.ts +31 -0
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +16 -0
- package/dist/actions/get_available_nodes.d.ts +259 -0
- package/dist/actions/get_cvm_create_resources.d.ts +351 -0
- package/dist/actions/index.d.ts +6 -2
- package/dist/actions/kms/get_kms_contract.d.ts +59 -0
- package/dist/actions/kms/get_kms_list.d.ts +15 -0
- package/dist/actions/kms/get_kms_onchain_detail.d.ts +54 -0
- package/dist/actions/kms/list_kms_contract_nodes.d.ts +98 -0
- package/dist/actions/kms/list_kms_contracts.d.ts +152 -0
- package/dist/actions/workspaces/get_workspace.d.ts +4 -0
- package/dist/actions/workspaces/get_workspace_nodes.d.ts +161 -0
- package/dist/actions/workspaces/list_workspaces.d.ts +126 -0
- package/dist/client.d.ts +4 -1
- package/dist/create-client.d.ts +48 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1527 -1207
- package/dist/index.mjs +1452 -1151
- package/dist/types/app_compose.d.ts +50 -5
- package/dist/types/app_info_v20251028.d.ts +44 -0
- package/dist/types/app_info_v20260121.d.ts +2324 -0
- package/dist/types/client.d.ts +2 -2
- package/dist/types/cvm_info_v20251028.d.ts +23 -0
- package/dist/types/cvm_info_v20260121.d.ts +977 -0
- package/dist/types/kms_contract.d.ts +64 -0
- package/dist/types/kms_info.d.ts +8 -0
- package/dist/types/version-mappings.d.ts +6 -6
- package/dist/utils/error_codes.d.ts +1 -0
- package/dist/utils/errors.d.ts +30 -1
- package/dist/utils/get_compose_hash.d.ts +24 -0
- package/dist/utils/get_mr_config_id.d.ts +55 -0
- package/dist/utils/index.d.ts +3 -2
- package/package.json +3 -3
|
@@ -23,6 +23,7 @@ export declare const GetKmsListSchema: z.ZodObject<{
|
|
|
23
23
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
24
24
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
25
25
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
26
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
27
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
27
28
|
id: z.ZodString;
|
|
28
29
|
slug: z.ZodNullable<z.ZodString>;
|
|
@@ -31,6 +32,7 @@ export declare const GetKmsListSchema: z.ZodObject<{
|
|
|
31
32
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
32
33
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
33
34
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
35
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
36
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
35
37
|
id: z.ZodString;
|
|
36
38
|
slug: z.ZodNullable<z.ZodString>;
|
|
@@ -39,6 +41,7 @@ export declare const GetKmsListSchema: z.ZodObject<{
|
|
|
39
41
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
40
42
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
41
43
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
44
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
45
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
43
46
|
id: z.ZodString;
|
|
44
47
|
slug: z.ZodNullable<z.ZodString>;
|
|
@@ -47,6 +50,7 @@ export declare const GetKmsListSchema: z.ZodObject<{
|
|
|
47
50
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
48
51
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
49
52
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
53
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
54
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
51
55
|
id: z.ZodString;
|
|
52
56
|
slug: z.ZodNullable<z.ZodString>;
|
|
@@ -55,6 +59,7 @@ export declare const GetKmsListSchema: z.ZodObject<{
|
|
|
55
59
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
56
60
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
57
61
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
62
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
63
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
59
64
|
total: z.ZodNumber;
|
|
60
65
|
page: z.ZodNumber;
|
|
@@ -70,6 +75,7 @@ export declare const GetKmsListSchema: z.ZodObject<{
|
|
|
70
75
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
71
76
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
72
77
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
78
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
79
|
}, z.ZodTypeAny, "passthrough">[];
|
|
74
80
|
page: number;
|
|
75
81
|
page_size: number;
|
|
@@ -84,6 +90,7 @@ export declare const GetKmsListSchema: z.ZodObject<{
|
|
|
84
90
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
85
91
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
86
92
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
93
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
94
|
}, z.ZodTypeAny, "passthrough">[];
|
|
88
95
|
page: number;
|
|
89
96
|
page_size: number;
|
|
@@ -93,6 +100,14 @@ export type GetKmsListRequest = z.infer<typeof GetKmsListRequestSchema>;
|
|
|
93
100
|
export type GetKmsListResponse = z.infer<typeof GetKmsListSchema> & {
|
|
94
101
|
items: KmsInfo[];
|
|
95
102
|
};
|
|
103
|
+
/**
|
|
104
|
+
* List KMS nodes (legacy, node-centric shape).
|
|
105
|
+
*
|
|
106
|
+
* @deprecated From API version 2026-06-23 the KMS API is contract-centric. Use
|
|
107
|
+
* `listKmsContracts` to list contracts and `listKmsContractNodes` to list a
|
|
108
|
+
* contract's nodes. This action stays pinned to the legacy node-list shape via
|
|
109
|
+
* the `2026-05-22` API version.
|
|
110
|
+
*/
|
|
96
111
|
declare const getKmsList: {
|
|
97
112
|
(client: Client<import("../..").ApiVersion>, params?: {
|
|
98
113
|
is_onchain?: boolean | undefined;
|
|
@@ -34,6 +34,9 @@ export declare const OnChainKmsContractSchema: z.ZodObject<{
|
|
|
34
34
|
contract_address: z.ZodString;
|
|
35
35
|
chain_id: z.ZodNumber;
|
|
36
36
|
chain_name: z.ZodString;
|
|
37
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
40
|
devices: z.ZodArray<z.ZodObject<{
|
|
38
41
|
device_id: z.ZodString;
|
|
39
42
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -67,6 +70,9 @@ export declare const OnChainKmsContractSchema: z.ZodObject<{
|
|
|
67
70
|
contract_address: z.ZodString;
|
|
68
71
|
chain_id: z.ZodNumber;
|
|
69
72
|
chain_name: z.ZodString;
|
|
73
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
76
|
devices: z.ZodArray<z.ZodObject<{
|
|
71
77
|
device_id: z.ZodString;
|
|
72
78
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -100,6 +106,9 @@ export declare const OnChainKmsContractSchema: z.ZodObject<{
|
|
|
100
106
|
contract_address: z.ZodString;
|
|
101
107
|
chain_id: z.ZodNumber;
|
|
102
108
|
chain_name: z.ZodString;
|
|
109
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
112
|
devices: z.ZodArray<z.ZodObject<{
|
|
104
113
|
device_id: z.ZodString;
|
|
105
114
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -138,6 +147,9 @@ export declare const GetKmsOnChainDetailResponseSchema: z.ZodObject<{
|
|
|
138
147
|
contract_address: z.ZodString;
|
|
139
148
|
chain_id: z.ZodNumber;
|
|
140
149
|
chain_name: z.ZodString;
|
|
150
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
151
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
152
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
141
153
|
devices: z.ZodArray<z.ZodObject<{
|
|
142
154
|
device_id: z.ZodString;
|
|
143
155
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -171,6 +183,9 @@ export declare const GetKmsOnChainDetailResponseSchema: z.ZodObject<{
|
|
|
171
183
|
contract_address: z.ZodString;
|
|
172
184
|
chain_id: z.ZodNumber;
|
|
173
185
|
chain_name: z.ZodString;
|
|
186
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
187
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
188
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
174
189
|
devices: z.ZodArray<z.ZodObject<{
|
|
175
190
|
device_id: z.ZodString;
|
|
176
191
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -204,6 +219,9 @@ export declare const GetKmsOnChainDetailResponseSchema: z.ZodObject<{
|
|
|
204
219
|
contract_address: z.ZodString;
|
|
205
220
|
chain_id: z.ZodNumber;
|
|
206
221
|
chain_name: z.ZodString;
|
|
222
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
224
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
207
225
|
devices: z.ZodArray<z.ZodObject<{
|
|
208
226
|
device_id: z.ZodString;
|
|
209
227
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -241,6 +259,9 @@ export declare const GetKmsOnChainDetailResponseSchema: z.ZodObject<{
|
|
|
241
259
|
contract_address: z.ZodString;
|
|
242
260
|
chain_id: z.ZodNumber;
|
|
243
261
|
chain_name: z.ZodString;
|
|
262
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
263
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
264
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
244
265
|
devices: z.ZodArray<z.ZodObject<{
|
|
245
266
|
device_id: z.ZodString;
|
|
246
267
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -274,6 +295,9 @@ export declare const GetKmsOnChainDetailResponseSchema: z.ZodObject<{
|
|
|
274
295
|
contract_address: z.ZodString;
|
|
275
296
|
chain_id: z.ZodNumber;
|
|
276
297
|
chain_name: z.ZodString;
|
|
298
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
299
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
301
|
devices: z.ZodArray<z.ZodObject<{
|
|
278
302
|
device_id: z.ZodString;
|
|
279
303
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -307,6 +331,9 @@ export declare const GetKmsOnChainDetailResponseSchema: z.ZodObject<{
|
|
|
307
331
|
contract_address: z.ZodString;
|
|
308
332
|
chain_id: z.ZodNumber;
|
|
309
333
|
chain_name: z.ZodString;
|
|
334
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
335
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
336
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
310
337
|
devices: z.ZodArray<z.ZodObject<{
|
|
311
338
|
device_id: z.ZodString;
|
|
312
339
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -344,6 +371,9 @@ export declare const GetKmsOnChainDetailResponseSchema: z.ZodObject<{
|
|
|
344
371
|
contract_address: z.ZodString;
|
|
345
372
|
chain_id: z.ZodNumber;
|
|
346
373
|
chain_name: z.ZodString;
|
|
374
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
375
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
376
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
347
377
|
devices: z.ZodArray<z.ZodObject<{
|
|
348
378
|
device_id: z.ZodString;
|
|
349
379
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -377,6 +407,9 @@ export declare const GetKmsOnChainDetailResponseSchema: z.ZodObject<{
|
|
|
377
407
|
contract_address: z.ZodString;
|
|
378
408
|
chain_id: z.ZodNumber;
|
|
379
409
|
chain_name: z.ZodString;
|
|
410
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
411
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
412
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
413
|
devices: z.ZodArray<z.ZodObject<{
|
|
381
414
|
device_id: z.ZodString;
|
|
382
415
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -410,6 +443,9 @@ export declare const GetKmsOnChainDetailResponseSchema: z.ZodObject<{
|
|
|
410
443
|
contract_address: z.ZodString;
|
|
411
444
|
chain_id: z.ZodNumber;
|
|
412
445
|
chain_name: z.ZodString;
|
|
446
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
447
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
448
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
413
449
|
devices: z.ZodArray<z.ZodObject<{
|
|
414
450
|
device_id: z.ZodString;
|
|
415
451
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -460,6 +496,9 @@ declare const getKmsOnChainDetail: {
|
|
|
460
496
|
contract_address: z.ZodString;
|
|
461
497
|
chain_id: z.ZodNumber;
|
|
462
498
|
chain_name: z.ZodString;
|
|
499
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
500
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
501
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
463
502
|
devices: z.ZodArray<z.ZodObject<{
|
|
464
503
|
device_id: z.ZodString;
|
|
465
504
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -493,6 +532,9 @@ declare const getKmsOnChainDetail: {
|
|
|
493
532
|
contract_address: z.ZodString;
|
|
494
533
|
chain_id: z.ZodNumber;
|
|
495
534
|
chain_name: z.ZodString;
|
|
535
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
536
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
537
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
496
538
|
devices: z.ZodArray<z.ZodObject<{
|
|
497
539
|
device_id: z.ZodString;
|
|
498
540
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -526,6 +568,9 @@ declare const getKmsOnChainDetail: {
|
|
|
526
568
|
contract_address: z.ZodString;
|
|
527
569
|
chain_id: z.ZodNumber;
|
|
528
570
|
chain_name: z.ZodString;
|
|
571
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
572
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
573
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
529
574
|
devices: z.ZodArray<z.ZodObject<{
|
|
530
575
|
device_id: z.ZodString;
|
|
531
576
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -577,6 +622,9 @@ declare const getKmsOnChainDetail: {
|
|
|
577
622
|
contract_address: z.ZodString;
|
|
578
623
|
chain_id: z.ZodNumber;
|
|
579
624
|
chain_name: z.ZodString;
|
|
625
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
626
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
627
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
580
628
|
devices: z.ZodArray<z.ZodObject<{
|
|
581
629
|
device_id: z.ZodString;
|
|
582
630
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -610,6 +658,9 @@ declare const getKmsOnChainDetail: {
|
|
|
610
658
|
contract_address: z.ZodString;
|
|
611
659
|
chain_id: z.ZodNumber;
|
|
612
660
|
chain_name: z.ZodString;
|
|
661
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
662
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
663
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
613
664
|
devices: z.ZodArray<z.ZodObject<{
|
|
614
665
|
device_id: z.ZodString;
|
|
615
666
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -643,6 +694,9 @@ declare const getKmsOnChainDetail: {
|
|
|
643
694
|
contract_address: z.ZodString;
|
|
644
695
|
chain_id: z.ZodNumber;
|
|
645
696
|
chain_name: z.ZodString;
|
|
697
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
698
|
+
ca_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
699
|
+
gateway_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
646
700
|
devices: z.ZodArray<z.ZodObject<{
|
|
647
701
|
device_id: z.ZodString;
|
|
648
702
|
node_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ListKmsContractNodesRequestSchema: z.ZodObject<{
|
|
3
|
+
slug: z.ZodString;
|
|
4
|
+
}, "strict", z.ZodTypeAny, {
|
|
5
|
+
slug: string;
|
|
6
|
+
}, {
|
|
7
|
+
slug: string;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const ListKmsContractNodesSchema: z.ZodObject<{
|
|
10
|
+
items: z.ZodArray<z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
13
|
+
url: z.ZodString;
|
|
14
|
+
version: z.ZodString;
|
|
15
|
+
kms_type: z.ZodString;
|
|
16
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
19
|
+
url: z.ZodString;
|
|
20
|
+
version: z.ZodString;
|
|
21
|
+
kms_type: z.ZodString;
|
|
22
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
25
|
+
url: z.ZodString;
|
|
26
|
+
version: z.ZodString;
|
|
27
|
+
kms_type: z.ZodString;
|
|
28
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
29
|
+
total: z.ZodNumber;
|
|
30
|
+
}, "strict", z.ZodTypeAny, {
|
|
31
|
+
total: number;
|
|
32
|
+
items: z.objectOutputType<{
|
|
33
|
+
id: z.ZodString;
|
|
34
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
35
|
+
url: z.ZodString;
|
|
36
|
+
version: z.ZodString;
|
|
37
|
+
kms_type: z.ZodString;
|
|
38
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
39
|
+
}, {
|
|
40
|
+
total: number;
|
|
41
|
+
items: z.objectInputType<{
|
|
42
|
+
id: z.ZodString;
|
|
43
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
44
|
+
url: z.ZodString;
|
|
45
|
+
version: z.ZodString;
|
|
46
|
+
kms_type: z.ZodString;
|
|
47
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
48
|
+
}>;
|
|
49
|
+
export type ListKmsContractNodesRequest = z.infer<typeof ListKmsContractNodesRequestSchema>;
|
|
50
|
+
export type ListKmsContractNodesResponse = z.infer<typeof ListKmsContractNodesSchema>;
|
|
51
|
+
declare const listKmsContractNodes: {
|
|
52
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
53
|
+
slug: string;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
total: number;
|
|
56
|
+
items: z.objectOutputType<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
59
|
+
url: z.ZodString;
|
|
60
|
+
version: z.ZodString;
|
|
61
|
+
kms_type: z.ZodString;
|
|
62
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
63
|
+
}>;
|
|
64
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
65
|
+
slug: string;
|
|
66
|
+
}, parameters: {
|
|
67
|
+
schema: T;
|
|
68
|
+
}): Promise<z.TypeOf<T>>;
|
|
69
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
70
|
+
slug: string;
|
|
71
|
+
}, parameters: {
|
|
72
|
+
schema: false;
|
|
73
|
+
}): Promise<unknown>;
|
|
74
|
+
}, safeListKmsContractNodes: {
|
|
75
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
76
|
+
slug: string;
|
|
77
|
+
}): Promise<import("../..").SafeResult<{
|
|
78
|
+
total: number;
|
|
79
|
+
items: z.objectOutputType<{
|
|
80
|
+
id: z.ZodString;
|
|
81
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
82
|
+
url: z.ZodString;
|
|
83
|
+
version: z.ZodString;
|
|
84
|
+
kms_type: z.ZodString;
|
|
85
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
86
|
+
}>>;
|
|
87
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
88
|
+
slug: string;
|
|
89
|
+
}, parameters: {
|
|
90
|
+
schema: T;
|
|
91
|
+
}): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
92
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
93
|
+
slug: string;
|
|
94
|
+
}, parameters: {
|
|
95
|
+
schema: false;
|
|
96
|
+
}): Promise<import("../..").SafeResult<unknown>>;
|
|
97
|
+
};
|
|
98
|
+
export { listKmsContractNodes, safeListKmsContractNodes };
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ListKmsContractsRequestSchema: z.ZodObject<{
|
|
3
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
4
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
5
|
+
is_onchain: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
}, "strict", z.ZodTypeAny, {
|
|
7
|
+
is_onchain?: boolean | undefined;
|
|
8
|
+
page?: number | undefined;
|
|
9
|
+
page_size?: number | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
is_onchain?: boolean | undefined;
|
|
12
|
+
page?: number | undefined;
|
|
13
|
+
page_size?: number | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const ListKmsContractsSchema: z.ZodObject<{
|
|
16
|
+
items: z.ZodArray<z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
19
|
+
label: z.ZodNullable<z.ZodString>;
|
|
20
|
+
contract_address: z.ZodString;
|
|
21
|
+
chain_id: z.ZodNumber;
|
|
22
|
+
k256_pubkey: z.ZodNullable<z.ZodString>;
|
|
23
|
+
ca_pubkey: z.ZodNullable<z.ZodString>;
|
|
24
|
+
node_count: z.ZodNumber;
|
|
25
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
28
|
+
label: z.ZodNullable<z.ZodString>;
|
|
29
|
+
contract_address: z.ZodString;
|
|
30
|
+
chain_id: z.ZodNumber;
|
|
31
|
+
k256_pubkey: z.ZodNullable<z.ZodString>;
|
|
32
|
+
ca_pubkey: z.ZodNullable<z.ZodString>;
|
|
33
|
+
node_count: z.ZodNumber;
|
|
34
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
37
|
+
label: z.ZodNullable<z.ZodString>;
|
|
38
|
+
contract_address: z.ZodString;
|
|
39
|
+
chain_id: z.ZodNumber;
|
|
40
|
+
k256_pubkey: z.ZodNullable<z.ZodString>;
|
|
41
|
+
ca_pubkey: z.ZodNullable<z.ZodString>;
|
|
42
|
+
node_count: z.ZodNumber;
|
|
43
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
44
|
+
total: z.ZodNumber;
|
|
45
|
+
page: z.ZodNumber;
|
|
46
|
+
page_size: z.ZodNumber;
|
|
47
|
+
pages: z.ZodNumber;
|
|
48
|
+
}, "strict", z.ZodTypeAny, {
|
|
49
|
+
total: number;
|
|
50
|
+
items: z.objectOutputType<{
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
53
|
+
label: z.ZodNullable<z.ZodString>;
|
|
54
|
+
contract_address: z.ZodString;
|
|
55
|
+
chain_id: z.ZodNumber;
|
|
56
|
+
k256_pubkey: z.ZodNullable<z.ZodString>;
|
|
57
|
+
ca_pubkey: z.ZodNullable<z.ZodString>;
|
|
58
|
+
node_count: z.ZodNumber;
|
|
59
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
60
|
+
page: number;
|
|
61
|
+
page_size: number;
|
|
62
|
+
pages: number;
|
|
63
|
+
}, {
|
|
64
|
+
total: number;
|
|
65
|
+
items: z.objectInputType<{
|
|
66
|
+
id: z.ZodString;
|
|
67
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
68
|
+
label: z.ZodNullable<z.ZodString>;
|
|
69
|
+
contract_address: z.ZodString;
|
|
70
|
+
chain_id: z.ZodNumber;
|
|
71
|
+
k256_pubkey: z.ZodNullable<z.ZodString>;
|
|
72
|
+
ca_pubkey: z.ZodNullable<z.ZodString>;
|
|
73
|
+
node_count: z.ZodNumber;
|
|
74
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
75
|
+
page: number;
|
|
76
|
+
page_size: number;
|
|
77
|
+
pages: number;
|
|
78
|
+
}>;
|
|
79
|
+
export type ListKmsContractsRequest = z.infer<typeof ListKmsContractsRequestSchema>;
|
|
80
|
+
export type ListKmsContractsResponse = z.infer<typeof ListKmsContractsSchema>;
|
|
81
|
+
declare const listKmsContracts: {
|
|
82
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: {
|
|
83
|
+
is_onchain?: boolean | undefined;
|
|
84
|
+
page?: number | undefined;
|
|
85
|
+
page_size?: number | undefined;
|
|
86
|
+
} | undefined): Promise<{
|
|
87
|
+
total: number;
|
|
88
|
+
items: z.objectOutputType<{
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
91
|
+
label: z.ZodNullable<z.ZodString>;
|
|
92
|
+
contract_address: z.ZodString;
|
|
93
|
+
chain_id: z.ZodNumber;
|
|
94
|
+
k256_pubkey: z.ZodNullable<z.ZodString>;
|
|
95
|
+
ca_pubkey: z.ZodNullable<z.ZodString>;
|
|
96
|
+
node_count: z.ZodNumber;
|
|
97
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
98
|
+
page: number;
|
|
99
|
+
page_size: number;
|
|
100
|
+
pages: number;
|
|
101
|
+
}>;
|
|
102
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: {
|
|
103
|
+
is_onchain?: boolean | undefined;
|
|
104
|
+
page?: number | undefined;
|
|
105
|
+
page_size?: number | undefined;
|
|
106
|
+
} | undefined, parameters?: {
|
|
107
|
+
schema: T;
|
|
108
|
+
} | undefined): Promise<z.TypeOf<T>>;
|
|
109
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: {
|
|
110
|
+
is_onchain?: boolean | undefined;
|
|
111
|
+
page?: number | undefined;
|
|
112
|
+
page_size?: number | undefined;
|
|
113
|
+
} | undefined, parameters?: {
|
|
114
|
+
schema: false;
|
|
115
|
+
} | undefined): Promise<unknown>;
|
|
116
|
+
}, safeListKmsContracts: {
|
|
117
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: {
|
|
118
|
+
is_onchain?: boolean | undefined;
|
|
119
|
+
page?: number | undefined;
|
|
120
|
+
page_size?: number | undefined;
|
|
121
|
+
} | undefined): Promise<import("../..").SafeResult<{
|
|
122
|
+
total: number;
|
|
123
|
+
items: z.objectOutputType<{
|
|
124
|
+
id: z.ZodString;
|
|
125
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
126
|
+
label: z.ZodNullable<z.ZodString>;
|
|
127
|
+
contract_address: z.ZodString;
|
|
128
|
+
chain_id: z.ZodNumber;
|
|
129
|
+
k256_pubkey: z.ZodNullable<z.ZodString>;
|
|
130
|
+
ca_pubkey: z.ZodNullable<z.ZodString>;
|
|
131
|
+
node_count: z.ZodNumber;
|
|
132
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
133
|
+
page: number;
|
|
134
|
+
page_size: number;
|
|
135
|
+
pages: number;
|
|
136
|
+
}>>;
|
|
137
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: {
|
|
138
|
+
is_onchain?: boolean | undefined;
|
|
139
|
+
page?: number | undefined;
|
|
140
|
+
page_size?: number | undefined;
|
|
141
|
+
} | undefined, parameters?: {
|
|
142
|
+
schema: T;
|
|
143
|
+
} | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
144
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: {
|
|
145
|
+
is_onchain?: boolean | undefined;
|
|
146
|
+
page?: number | undefined;
|
|
147
|
+
page_size?: number | undefined;
|
|
148
|
+
} | undefined, parameters?: {
|
|
149
|
+
schema: false;
|
|
150
|
+
} | undefined): Promise<import("../..").SafeResult<unknown>>;
|
|
151
|
+
};
|
|
152
|
+
export { listKmsContracts, safeListKmsContracts };
|
|
@@ -74,6 +74,8 @@ declare const getWorkspace: {
|
|
|
74
74
|
is_default: z.ZodBoolean;
|
|
75
75
|
created_at: z.ZodString;
|
|
76
76
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
78
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
79
|
}, z.ZodTypeAny, "passthrough">>;
|
|
78
80
|
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: string, parameters: {
|
|
79
81
|
schema: T;
|
|
@@ -92,6 +94,8 @@ declare const getWorkspace: {
|
|
|
92
94
|
is_default: z.ZodBoolean;
|
|
93
95
|
created_at: z.ZodString;
|
|
94
96
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
98
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
99
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
96
100
|
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: string, parameters: {
|
|
97
101
|
schema: T;
|