@phala/cloud 0.1.0 → 0.1.1-beta.2
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/{add_compose_hash.d.ts → blockchains/add_compose_hash.d.ts} +1 -2
- package/dist/actions/{deploy_app_auth.d.ts → blockchains/deploy_app_auth.d.ts} +1 -2
- package/dist/actions/{commit_cvm_compose_file_update.d.ts → cvms/commit_cvm_compose_file_update.d.ts} +10 -11
- package/dist/actions/{commit_cvm_provision.d.ts → cvms/commit_cvm_provision.d.ts} +14 -15
- package/dist/actions/{get_cvm_compose_file.d.ts → cvms/get_cvm_compose_file.d.ts} +74 -6
- package/dist/actions/cvms/get_cvm_info.d.ts +85 -0
- package/dist/actions/{get_cvm_list.d.ts → cvms/get_cvm_list.d.ts} +48 -49
- package/dist/actions/{provision_cvm.d.ts → cvms/provision_cvm.d.ts} +16 -17
- package/dist/actions/{provision_cvm_compose_file_update.d.ts → cvms/provision_cvm_compose_file_update.d.ts} +153 -18
- package/dist/actions/get_available_nodes.d.ts +0 -1
- package/dist/actions/get_current_user.d.ts +35 -16
- package/dist/actions/index.d.ts +13 -14
- package/dist/actions/{get_app_env_encrypt_pubkey.d.ts → kms/get_app_env_encrypt_pubkey.d.ts} +8 -9
- package/dist/actions/{get_kms_info.d.ts → kms/get_kms_info.d.ts} +6 -22
- package/dist/actions/{get_kms_list.d.ts → kms/get_kms_list.d.ts} +6 -35
- package/dist/actions/list-instance-types.d.ts +0 -1
- package/dist/actions/workspaces/get_workspace.d.ts +0 -1
- package/dist/actions/workspaces/list_workspaces.d.ts +0 -1
- package/dist/client.d.ts +0 -1
- package/dist/create-client.d.ts +267 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +858 -832
- package/dist/index.mjs +825 -800
- package/dist/parse_dotenv.d.ts +0 -1
- package/dist/types/app_compose.d.ts +0 -1
- package/dist/types/client.d.ts +0 -1
- package/dist/types/common.d.ts +0 -1
- package/dist/types/cvm_info.d.ts +34 -35
- package/dist/types/index.d.ts +0 -1
- package/dist/types/kms_info.d.ts +0 -1
- package/dist/types/supported_chains.d.ts +0 -1
- package/dist/utils/as-hex.d.ts +0 -1
- package/dist/utils/client-factories.d.ts +0 -1
- package/dist/utils/define-action.d.ts +7 -8
- package/dist/utils/get_compose_hash.d.ts +0 -1
- package/dist/utils/get_error_message.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/network.d.ts +0 -1
- package/dist/utils/transaction.d.ts +0 -1
- package/dist/utils/validate-parameters.d.ts +0 -1
- package/package.json +65 -66
- package/dist/actions/add_compose_hash.d.ts.map +0 -1
- package/dist/actions/commit_cvm_compose_file_update.d.ts.map +0 -1
- package/dist/actions/commit_cvm_provision.d.ts.map +0 -1
- package/dist/actions/deploy_app_auth.d.ts.map +0 -1
- package/dist/actions/get_app_env_encrypt_pubkey.d.ts.map +0 -1
- package/dist/actions/get_available_nodes.d.ts.map +0 -1
- package/dist/actions/get_current_user.d.ts.map +0 -1
- package/dist/actions/get_cvm_compose_file.d.ts.map +0 -1
- package/dist/actions/get_cvm_info.d.ts +0 -172
- package/dist/actions/get_cvm_info.d.ts.map +0 -1
- package/dist/actions/get_cvm_list.d.ts.map +0 -1
- package/dist/actions/get_kms_info.d.ts.map +0 -1
- package/dist/actions/get_kms_list.d.ts.map +0 -1
- package/dist/actions/index.d.ts.map +0 -1
- package/dist/actions/list-instance-types.d.ts.map +0 -1
- package/dist/actions/provision_cvm.d.ts.map +0 -1
- package/dist/actions/provision_cvm_compose_file_update.d.ts.map +0 -1
- package/dist/actions/workspaces/get_workspace.d.ts.map +0 -1
- package/dist/actions/workspaces/list_workspaces.d.ts.map +0 -1
- package/dist/client.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/parse_dotenv.d.ts.map +0 -1
- package/dist/types/app_compose.d.ts.map +0 -1
- package/dist/types/client.d.ts.map +0 -1
- package/dist/types/common.d.ts.map +0 -1
- package/dist/types/cvm_info.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/kms_info.d.ts.map +0 -1
- package/dist/types/supported_chains.d.ts.map +0 -1
- package/dist/utils/as-hex.d.ts.map +0 -1
- package/dist/utils/client-factories.d.ts.map +0 -1
- package/dist/utils/define-action.d.ts.map +0 -1
- package/dist/utils/get_compose_hash.d.ts.map +0 -1
- package/dist/utils/get_error_message.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/network.d.ts.map +0 -1
- package/dist/utils/transaction.d.ts.map +0 -1
- package/dist/utils/validate-parameters.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { type Client } from "
|
|
2
|
+
import { type Client } from "../../client";
|
|
3
3
|
/**
|
|
4
4
|
* Provision CVM compose file update
|
|
5
5
|
*
|
|
@@ -123,8 +123,8 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
123
123
|
name?: string | undefined;
|
|
124
124
|
public_sysinfo?: boolean | undefined;
|
|
125
125
|
public_logs?: boolean | undefined;
|
|
126
|
-
pre_launch_script?: string | undefined;
|
|
127
126
|
allowed_envs?: string[] | undefined;
|
|
127
|
+
pre_launch_script?: string | undefined;
|
|
128
128
|
kms_enabled?: boolean | undefined;
|
|
129
129
|
tproxy_enabled?: boolean | undefined;
|
|
130
130
|
manifest_version?: number | undefined;
|
|
@@ -143,8 +143,8 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
143
143
|
name?: string | undefined;
|
|
144
144
|
public_sysinfo?: boolean | undefined;
|
|
145
145
|
public_logs?: boolean | undefined;
|
|
146
|
-
pre_launch_script?: string | undefined;
|
|
147
146
|
allowed_envs?: string[] | undefined;
|
|
147
|
+
pre_launch_script?: string | undefined;
|
|
148
148
|
kms_enabled?: boolean | undefined;
|
|
149
149
|
tproxy_enabled?: boolean | undefined;
|
|
150
150
|
manifest_version?: number | undefined;
|
|
@@ -163,8 +163,8 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
163
163
|
name?: string | undefined;
|
|
164
164
|
public_sysinfo?: boolean | undefined;
|
|
165
165
|
public_logs?: boolean | undefined;
|
|
166
|
-
pre_launch_script?: string | undefined;
|
|
167
166
|
allowed_envs?: string[] | undefined;
|
|
167
|
+
pre_launch_script?: string | undefined;
|
|
168
168
|
kms_enabled?: boolean | undefined;
|
|
169
169
|
tproxy_enabled?: boolean | undefined;
|
|
170
170
|
manifest_version?: number | undefined;
|
|
@@ -183,8 +183,8 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
183
183
|
name?: string | undefined;
|
|
184
184
|
public_sysinfo?: boolean | undefined;
|
|
185
185
|
public_logs?: boolean | undefined;
|
|
186
|
-
pre_launch_script?: string | undefined;
|
|
187
186
|
allowed_envs?: string[] | undefined;
|
|
187
|
+
pre_launch_script?: string | undefined;
|
|
188
188
|
kms_enabled?: boolean | undefined;
|
|
189
189
|
tproxy_enabled?: boolean | undefined;
|
|
190
190
|
manifest_version?: number | undefined;
|
|
@@ -204,8 +204,8 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
204
204
|
name?: string | undefined;
|
|
205
205
|
public_sysinfo?: boolean | undefined;
|
|
206
206
|
public_logs?: boolean | undefined;
|
|
207
|
-
pre_launch_script?: string | undefined;
|
|
208
207
|
allowed_envs?: string[] | undefined;
|
|
208
|
+
pre_launch_script?: string | undefined;
|
|
209
209
|
kms_enabled?: boolean | undefined;
|
|
210
210
|
tproxy_enabled?: boolean | undefined;
|
|
211
211
|
manifest_version?: number | undefined;
|
|
@@ -220,8 +220,8 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
220
220
|
name?: string | undefined;
|
|
221
221
|
public_sysinfo?: boolean | undefined;
|
|
222
222
|
public_logs?: boolean | undefined;
|
|
223
|
-
pre_launch_script?: string | undefined;
|
|
224
223
|
allowed_envs?: string[] | undefined;
|
|
224
|
+
pre_launch_script?: string | undefined;
|
|
225
225
|
kms_enabled?: boolean | undefined;
|
|
226
226
|
tproxy_enabled?: boolean | undefined;
|
|
227
227
|
manifest_version?: number | undefined;
|
|
@@ -241,8 +241,8 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
241
241
|
name?: string | undefined;
|
|
242
242
|
public_sysinfo?: boolean | undefined;
|
|
243
243
|
public_logs?: boolean | undefined;
|
|
244
|
-
pre_launch_script?: string | undefined;
|
|
245
244
|
allowed_envs?: string[] | undefined;
|
|
245
|
+
pre_launch_script?: string | undefined;
|
|
246
246
|
kms_enabled?: boolean | undefined;
|
|
247
247
|
tproxy_enabled?: boolean | undefined;
|
|
248
248
|
manifest_version?: number | undefined;
|
|
@@ -392,6 +392,142 @@ export declare const ProvisionCvmComposeFileUpdateResultSchema: z.ZodObject<{
|
|
|
392
392
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
393
393
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
394
394
|
}, z.ZodTypeAny, "passthrough">>;
|
|
395
|
+
export declare const ProvisionCvmComposeFileUpdateSchema: z.ZodObject<{
|
|
396
|
+
app_id: z.ZodNullable<z.ZodString>;
|
|
397
|
+
device_id: z.ZodNullable<z.ZodString>;
|
|
398
|
+
compose_hash: z.ZodString;
|
|
399
|
+
kms_info: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodObject<{
|
|
400
|
+
id: z.ZodString;
|
|
401
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
402
|
+
url: z.ZodString;
|
|
403
|
+
version: z.ZodString;
|
|
404
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
405
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
406
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
407
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
408
|
+
id: z.ZodString;
|
|
409
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
410
|
+
url: z.ZodString;
|
|
411
|
+
version: z.ZodString;
|
|
412
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
413
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
414
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
415
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
416
|
+
id: z.ZodString;
|
|
417
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
418
|
+
url: z.ZodString;
|
|
419
|
+
version: z.ZodString;
|
|
420
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
421
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
422
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
423
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
424
|
+
id: z.ZodString;
|
|
425
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
426
|
+
url: z.ZodString;
|
|
427
|
+
version: z.ZodString;
|
|
428
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
429
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
430
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
431
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
432
|
+
id: z.ZodString;
|
|
433
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
434
|
+
url: z.ZodString;
|
|
435
|
+
version: z.ZodString;
|
|
436
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
437
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
438
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
439
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
440
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
441
|
+
app_id: z.ZodNullable<z.ZodString>;
|
|
442
|
+
device_id: z.ZodNullable<z.ZodString>;
|
|
443
|
+
compose_hash: z.ZodString;
|
|
444
|
+
kms_info: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodObject<{
|
|
445
|
+
id: z.ZodString;
|
|
446
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
447
|
+
url: z.ZodString;
|
|
448
|
+
version: z.ZodString;
|
|
449
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
450
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
451
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
452
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
453
|
+
id: z.ZodString;
|
|
454
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
455
|
+
url: z.ZodString;
|
|
456
|
+
version: z.ZodString;
|
|
457
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
458
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
459
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
460
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
461
|
+
id: z.ZodString;
|
|
462
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
463
|
+
url: z.ZodString;
|
|
464
|
+
version: z.ZodString;
|
|
465
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
466
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
467
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
468
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
469
|
+
id: z.ZodString;
|
|
470
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
471
|
+
url: z.ZodString;
|
|
472
|
+
version: z.ZodString;
|
|
473
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
474
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
475
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
476
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
477
|
+
id: z.ZodString;
|
|
478
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
479
|
+
url: z.ZodString;
|
|
480
|
+
version: z.ZodString;
|
|
481
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
482
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
483
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
484
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
485
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
486
|
+
app_id: z.ZodNullable<z.ZodString>;
|
|
487
|
+
device_id: z.ZodNullable<z.ZodString>;
|
|
488
|
+
compose_hash: z.ZodString;
|
|
489
|
+
kms_info: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodObject<{
|
|
490
|
+
id: z.ZodString;
|
|
491
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
492
|
+
url: z.ZodString;
|
|
493
|
+
version: z.ZodString;
|
|
494
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
495
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
496
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
497
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
498
|
+
id: z.ZodString;
|
|
499
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
500
|
+
url: z.ZodString;
|
|
501
|
+
version: z.ZodString;
|
|
502
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
503
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
504
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
505
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
506
|
+
id: z.ZodString;
|
|
507
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
508
|
+
url: z.ZodString;
|
|
509
|
+
version: z.ZodString;
|
|
510
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
511
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
512
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
513
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
514
|
+
id: z.ZodString;
|
|
515
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
516
|
+
url: z.ZodString;
|
|
517
|
+
version: z.ZodString;
|
|
518
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
519
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
520
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
521
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
522
|
+
id: z.ZodString;
|
|
523
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
524
|
+
url: z.ZodString;
|
|
525
|
+
version: z.ZodString;
|
|
526
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
527
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
528
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
529
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
530
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
395
531
|
export type ProvisionCvmComposeFileUpdateRequest = z.input<typeof ProvisionCvmComposeFileUpdateRequestSchema>;
|
|
396
532
|
export type ProvisionCvmComposeFileUpdateResult = z.infer<typeof ProvisionCvmComposeFileUpdateResultSchema>;
|
|
397
533
|
/**
|
|
@@ -409,8 +545,8 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
409
545
|
name?: string | undefined;
|
|
410
546
|
public_sysinfo?: boolean | undefined;
|
|
411
547
|
public_logs?: boolean | undefined;
|
|
412
|
-
pre_launch_script?: string | undefined;
|
|
413
548
|
allowed_envs?: string[] | undefined;
|
|
549
|
+
pre_launch_script?: string | undefined;
|
|
414
550
|
kms_enabled?: boolean | undefined;
|
|
415
551
|
tproxy_enabled?: boolean | undefined;
|
|
416
552
|
manifest_version?: number | undefined;
|
|
@@ -475,8 +611,8 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
475
611
|
name?: string | undefined;
|
|
476
612
|
public_sysinfo?: boolean | undefined;
|
|
477
613
|
public_logs?: boolean | undefined;
|
|
478
|
-
pre_launch_script?: string | undefined;
|
|
479
614
|
allowed_envs?: string[] | undefined;
|
|
615
|
+
pre_launch_script?: string | undefined;
|
|
480
616
|
kms_enabled?: boolean | undefined;
|
|
481
617
|
tproxy_enabled?: boolean | undefined;
|
|
482
618
|
manifest_version?: number | undefined;
|
|
@@ -498,8 +634,8 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
498
634
|
name?: string | undefined;
|
|
499
635
|
public_sysinfo?: boolean | undefined;
|
|
500
636
|
public_logs?: boolean | undefined;
|
|
501
|
-
pre_launch_script?: string | undefined;
|
|
502
637
|
allowed_envs?: string[] | undefined;
|
|
638
|
+
pre_launch_script?: string | undefined;
|
|
503
639
|
kms_enabled?: boolean | undefined;
|
|
504
640
|
tproxy_enabled?: boolean | undefined;
|
|
505
641
|
manifest_version?: number | undefined;
|
|
@@ -522,8 +658,8 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
522
658
|
name?: string | undefined;
|
|
523
659
|
public_sysinfo?: boolean | undefined;
|
|
524
660
|
public_logs?: boolean | undefined;
|
|
525
|
-
pre_launch_script?: string | undefined;
|
|
526
661
|
allowed_envs?: string[] | undefined;
|
|
662
|
+
pre_launch_script?: string | undefined;
|
|
527
663
|
kms_enabled?: boolean | undefined;
|
|
528
664
|
tproxy_enabled?: boolean | undefined;
|
|
529
665
|
manifest_version?: number | undefined;
|
|
@@ -536,7 +672,7 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
536
672
|
instance_id?: string | undefined;
|
|
537
673
|
uuid?: string | undefined;
|
|
538
674
|
update_env_vars?: boolean | null | undefined;
|
|
539
|
-
}): Promise<import("
|
|
675
|
+
}): Promise<import("../..").SafeResult<z.objectOutputType<{
|
|
540
676
|
app_id: z.ZodNullable<z.ZodString>;
|
|
541
677
|
device_id: z.ZodNullable<z.ZodString>;
|
|
542
678
|
compose_hash: z.ZodString;
|
|
@@ -588,8 +724,8 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
588
724
|
name?: string | undefined;
|
|
589
725
|
public_sysinfo?: boolean | undefined;
|
|
590
726
|
public_logs?: boolean | undefined;
|
|
591
|
-
pre_launch_script?: string | undefined;
|
|
592
727
|
allowed_envs?: string[] | undefined;
|
|
728
|
+
pre_launch_script?: string | undefined;
|
|
593
729
|
kms_enabled?: boolean | undefined;
|
|
594
730
|
tproxy_enabled?: boolean | undefined;
|
|
595
731
|
manifest_version?: number | undefined;
|
|
@@ -604,15 +740,15 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
604
740
|
update_env_vars?: boolean | null | undefined;
|
|
605
741
|
}, parameters: {
|
|
606
742
|
schema: T;
|
|
607
|
-
}): Promise<import("
|
|
743
|
+
}): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
608
744
|
(client: Client, params: {
|
|
609
745
|
app_compose: {
|
|
610
746
|
docker_compose_file: string;
|
|
611
747
|
name?: string | undefined;
|
|
612
748
|
public_sysinfo?: boolean | undefined;
|
|
613
749
|
public_logs?: boolean | undefined;
|
|
614
|
-
pre_launch_script?: string | undefined;
|
|
615
750
|
allowed_envs?: string[] | undefined;
|
|
751
|
+
pre_launch_script?: string | undefined;
|
|
616
752
|
kms_enabled?: boolean | undefined;
|
|
617
753
|
tproxy_enabled?: boolean | undefined;
|
|
618
754
|
manifest_version?: number | undefined;
|
|
@@ -627,7 +763,6 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
627
763
|
update_env_vars?: boolean | null | undefined;
|
|
628
764
|
}, parameters: {
|
|
629
765
|
schema: false;
|
|
630
|
-
}): Promise<import("
|
|
766
|
+
}): Promise<import("../..").SafeResult<unknown>>;
|
|
631
767
|
};
|
|
632
768
|
export { provisionCvmComposeFileUpdate, safeProvisionCvmComposeFileUpdate };
|
|
633
|
-
//# sourceMappingURL=provision_cvm_compose_file_update.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { type Client
|
|
3
|
-
import { ActionParameters, ActionReturnType } from "../types/common";
|
|
2
|
+
import { type Client } from "../client";
|
|
4
3
|
/**
|
|
5
4
|
* Get current user information and validate API token
|
|
6
5
|
*
|
|
@@ -85,17 +84,37 @@ export declare const CurrentUserSchema: z.ZodObject<{
|
|
|
85
84
|
team_tier: z.ZodString;
|
|
86
85
|
}, z.ZodTypeAny, "passthrough">>;
|
|
87
86
|
export type CurrentUser = z.infer<typeof CurrentUserSchema>;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
87
|
+
declare const getCurrentUser: {
|
|
88
|
+
(client: Client): Promise<z.objectOutputType<{
|
|
89
|
+
username: z.ZodString;
|
|
90
|
+
email: z.ZodString;
|
|
91
|
+
credits: z.ZodNumber;
|
|
92
|
+
granted_credits: z.ZodNumber;
|
|
93
|
+
avatar: z.ZodString;
|
|
94
|
+
team_name: z.ZodString;
|
|
95
|
+
team_tier: z.ZodString;
|
|
96
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
97
|
+
<T extends z.ZodTypeAny>(client: Client, parameters: {
|
|
98
|
+
schema: T;
|
|
99
|
+
}): Promise<z.TypeOf<T>>;
|
|
100
|
+
(client: Client, parameters: {
|
|
101
|
+
schema: false;
|
|
102
|
+
}): Promise<unknown>;
|
|
103
|
+
}, safeGetCurrentUser: {
|
|
104
|
+
(client: Client): Promise<import("..").SafeResult<z.objectOutputType<{
|
|
105
|
+
username: z.ZodString;
|
|
106
|
+
email: z.ZodString;
|
|
107
|
+
credits: z.ZodNumber;
|
|
108
|
+
granted_credits: z.ZodNumber;
|
|
109
|
+
avatar: z.ZodString;
|
|
110
|
+
team_name: z.ZodString;
|
|
111
|
+
team_tier: z.ZodString;
|
|
112
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
113
|
+
<T extends z.ZodTypeAny>(client: Client, parameters: {
|
|
114
|
+
schema: T;
|
|
115
|
+
}): Promise<import("..").SafeResult<z.TypeOf<T>>>;
|
|
116
|
+
(client: Client, parameters: {
|
|
117
|
+
schema: false;
|
|
118
|
+
}): Promise<import("..").SafeResult<unknown>>;
|
|
119
|
+
};
|
|
120
|
+
export { getCurrentUser, safeGetCurrentUser };
|
package/dist/actions/index.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
export { getCurrentUser, safeGetCurrentUser,
|
|
1
|
+
export { getCurrentUser, safeGetCurrentUser, CurrentUserSchema, type CurrentUser, } from "./get_current_user";
|
|
2
2
|
export { getAvailableNodes, safeGetAvailableNodes, AvailableNodesSchema, type AvailableNodes, type AvailableOSImage, type TeepodCapacity, type ResourceThreshold, } from "./get_available_nodes";
|
|
3
|
-
export { provisionCvm, safeProvisionCvm, ProvisionCvmSchema, type ProvisionCvm, ProvisionCvmRequestSchema, type ProvisionCvmRequest, } from "./provision_cvm";
|
|
4
|
-
export { commitCvmProvision, safeCommitCvmProvision, CommitCvmProvisionSchema, type CommitCvmProvision, CommitCvmProvisionRequestSchema, type CommitCvmProvisionRequest, } from "./commit_cvm_provision";
|
|
5
|
-
export { deployAppAuth, safeDeployAppAuth, type DeployAppAuthParameters, type DeployAppAuthReturnType, DeployAppAuthSchema, type DeployAppAuth, DeployAppAuthRequestSchema, type DeployAppAuthRequest, type SafeDeployAppAuthResult, } from "./deploy_app_auth";
|
|
6
|
-
export { addComposeHash, safeAddComposeHash, type AddComposeHashParameters, type AddComposeHashReturnType, AddComposeHashSchema, type AddComposeHash, type AddComposeHashRequest, type SafeAddComposeHashResult, } from "./add_compose_hash";
|
|
7
|
-
export { getCvmComposeFile, safeGetCvmComposeFile, type GetCvmComposeFileResult, GetCvmComposeFileRequestSchema, type GetCvmComposeFileRequest, } from "./get_cvm_compose_file";
|
|
8
|
-
export { provisionCvmComposeFileUpdate, safeProvisionCvmComposeFileUpdate, ProvisionCvmComposeFileUpdateRequestSchema, type ProvisionCvmComposeFileUpdateRequest, ProvisionCvmComposeFileUpdateResultSchema, type ProvisionCvmComposeFileUpdateResult, } from "./provision_cvm_compose_file_update";
|
|
9
|
-
export { commitCvmComposeFileUpdate, safeCommitCvmComposeFileUpdate, CommitCvmComposeFileUpdateRequestSchema, type CommitCvmComposeFileUpdateRequest, CommitCvmComposeFileUpdateSchema, type CommitCvmComposeFileUpdate, } from "./commit_cvm_compose_file_update";
|
|
10
|
-
export { getAppEnvEncryptPubKey, safeGetAppEnvEncryptPubKey, GetAppEnvEncryptPubKeySchema, type GetAppEnvEncryptPubKeyRequest, type GetAppEnvEncryptPubKey, GetAppEnvEncryptPubKeyRequestSchema, } from "./get_app_env_encrypt_pubkey";
|
|
11
|
-
export { getCvmInfo, safeGetCvmInfo, CvmLegacyDetailSchema, GetCvmInfoRequestSchema, type GetCvmInfoRequest, type GetCvmInfoResponse, } from "./get_cvm_info";
|
|
12
|
-
export { getCvmList, safeGetCvmList, GetCvmListSchema, GetCvmListRequestSchema, type GetCvmListRequest, type GetCvmListResponse, } from "./get_cvm_list";
|
|
13
|
-
export { getKmsInfo, safeGetKmsInfo, GetKmsInfoRequestSchema, type GetKmsInfoRequest, } from "./get_kms_info";
|
|
14
|
-
export { getKmsList, safeGetKmsList, GetKmsListSchema, GetKmsListRequestSchema, type GetKmsListRequest, type GetKmsListResponse, } from "./get_kms_list";
|
|
3
|
+
export { provisionCvm, safeProvisionCvm, ProvisionCvmSchema, type ProvisionCvm, ProvisionCvmRequestSchema, type ProvisionCvmRequest, } from "./cvms/provision_cvm";
|
|
4
|
+
export { commitCvmProvision, safeCommitCvmProvision, CommitCvmProvisionSchema, type CommitCvmProvision, CommitCvmProvisionRequestSchema, type CommitCvmProvisionRequest, } from "./cvms/commit_cvm_provision";
|
|
5
|
+
export { deployAppAuth, safeDeployAppAuth, type DeployAppAuthParameters, type DeployAppAuthReturnType, DeployAppAuthSchema, type DeployAppAuth, DeployAppAuthRequestSchema, type DeployAppAuthRequest, type SafeDeployAppAuthResult, } from "./blockchains/deploy_app_auth";
|
|
6
|
+
export { addComposeHash, safeAddComposeHash, type AddComposeHashParameters, type AddComposeHashReturnType, AddComposeHashSchema, type AddComposeHash, type AddComposeHashRequest, type SafeAddComposeHashResult, } from "./blockchains/add_compose_hash";
|
|
7
|
+
export { getCvmComposeFile, safeGetCvmComposeFile, type GetCvmComposeFileResult, GetCvmComposeFileRequestSchema, type GetCvmComposeFileRequest, } from "./cvms/get_cvm_compose_file";
|
|
8
|
+
export { provisionCvmComposeFileUpdate, safeProvisionCvmComposeFileUpdate, ProvisionCvmComposeFileUpdateRequestSchema, type ProvisionCvmComposeFileUpdateRequest, ProvisionCvmComposeFileUpdateResultSchema, type ProvisionCvmComposeFileUpdateResult, } from "./cvms/provision_cvm_compose_file_update";
|
|
9
|
+
export { commitCvmComposeFileUpdate, safeCommitCvmComposeFileUpdate, CommitCvmComposeFileUpdateRequestSchema, type CommitCvmComposeFileUpdateRequest, CommitCvmComposeFileUpdateSchema, type CommitCvmComposeFileUpdate, } from "./cvms/commit_cvm_compose_file_update";
|
|
10
|
+
export { getAppEnvEncryptPubKey, safeGetAppEnvEncryptPubKey, GetAppEnvEncryptPubKeySchema, type GetAppEnvEncryptPubKeyRequest, type GetAppEnvEncryptPubKey, GetAppEnvEncryptPubKeyRequestSchema, } from "./kms/get_app_env_encrypt_pubkey";
|
|
11
|
+
export { getCvmInfo, safeGetCvmInfo, CvmLegacyDetailSchema, GetCvmInfoRequestSchema, type GetCvmInfoRequest, type GetCvmInfoResponse, } from "./cvms/get_cvm_info";
|
|
12
|
+
export { getCvmList, safeGetCvmList, GetCvmListSchema, GetCvmListRequestSchema, type GetCvmListRequest, type GetCvmListResponse, } from "./cvms/get_cvm_list";
|
|
13
|
+
export { getKmsInfo, safeGetKmsInfo, GetKmsInfoRequestSchema, type GetKmsInfoRequest, } from "./kms/get_kms_info";
|
|
14
|
+
export { getKmsList, safeGetKmsList, GetKmsListSchema, GetKmsListRequestSchema, type GetKmsListRequest, type GetKmsListResponse, } from "./kms/get_kms_list";
|
|
15
15
|
export { listWorkspaces, safeListWorkspaces, WorkspaceResponseSchema, ListWorkspacesSchema, PaginationMetadataSchema, type WorkspaceResponse, type ListWorkspaces, type PaginationMetadata, type ListWorkspacesRequest, } from "./workspaces/list_workspaces";
|
|
16
16
|
export { getWorkspace, safeGetWorkspace, } from "./workspaces/get_workspace";
|
|
17
17
|
export { listInstanceTypes, safeListInstanceTypes, PaginatedInstanceTypesSchema, InstanceTypeSchema, type PaginatedInstanceTypes, type InstanceType, type ListInstanceTypesRequest, ListInstanceTypesRequestSchema, } from "./list-instance-types";
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/actions/{get_app_env_encrypt_pubkey.d.ts → kms/get_app_env_encrypt_pubkey.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { type Client } from "
|
|
2
|
+
import { type Client } from "../../client";
|
|
3
3
|
export declare const GetAppEnvEncryptPubKeyRequestSchema: z.ZodObject<{
|
|
4
4
|
kms: z.ZodString;
|
|
5
5
|
app_id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -14,11 +14,11 @@ export declare const GetAppEnvEncryptPubKeySchema: z.ZodObject<{
|
|
|
14
14
|
public_key: z.ZodString;
|
|
15
15
|
signature: z.ZodString;
|
|
16
16
|
}, "strict", z.ZodTypeAny, {
|
|
17
|
-
signature: string;
|
|
18
17
|
public_key: string;
|
|
19
|
-
}, {
|
|
20
18
|
signature: string;
|
|
19
|
+
}, {
|
|
21
20
|
public_key: string;
|
|
21
|
+
signature: string;
|
|
22
22
|
}>;
|
|
23
23
|
export type GetAppEnvEncryptPubKeyRequest = z.infer<typeof GetAppEnvEncryptPubKeyRequestSchema>;
|
|
24
24
|
export type GetAppEnvEncryptPubKey = z.infer<typeof GetAppEnvEncryptPubKeySchema>;
|
|
@@ -27,8 +27,8 @@ declare const getAppEnvEncryptPubKey: {
|
|
|
27
27
|
app_id: string;
|
|
28
28
|
kms: string;
|
|
29
29
|
}): Promise<{
|
|
30
|
-
signature: string;
|
|
31
30
|
public_key: string;
|
|
31
|
+
signature: string;
|
|
32
32
|
}>;
|
|
33
33
|
<T extends z.ZodTypeAny>(client: Client, params: {
|
|
34
34
|
app_id: string;
|
|
@@ -46,22 +46,21 @@ declare const getAppEnvEncryptPubKey: {
|
|
|
46
46
|
(client: Client, params: {
|
|
47
47
|
app_id: string;
|
|
48
48
|
kms: string;
|
|
49
|
-
}): Promise<import("
|
|
50
|
-
signature: string;
|
|
49
|
+
}): Promise<import("../..").SafeResult<{
|
|
51
50
|
public_key: string;
|
|
51
|
+
signature: string;
|
|
52
52
|
}>>;
|
|
53
53
|
<T extends z.ZodTypeAny>(client: Client, params: {
|
|
54
54
|
app_id: string;
|
|
55
55
|
kms: string;
|
|
56
56
|
}, parameters: {
|
|
57
57
|
schema: T;
|
|
58
|
-
}): Promise<import("
|
|
58
|
+
}): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
59
59
|
(client: Client, params: {
|
|
60
60
|
app_id: string;
|
|
61
61
|
kms: string;
|
|
62
62
|
}, parameters: {
|
|
63
63
|
schema: false;
|
|
64
|
-
}): Promise<import("
|
|
64
|
+
}): Promise<import("../..").SafeResult<unknown>>;
|
|
65
65
|
};
|
|
66
66
|
export { getAppEnvEncryptPubKey, safeGetAppEnvEncryptPubKey };
|
|
67
|
-
//# sourceMappingURL=get_app_env_encrypt_pubkey.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { Client } from "
|
|
2
|
+
import type { Client } from "../../client";
|
|
3
|
+
import { KmsInfo } from "../../types/kms_info";
|
|
3
4
|
export declare const GetKmsInfoRequestSchema: z.ZodObject<{
|
|
4
5
|
kms_id: z.ZodString;
|
|
5
6
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -25,15 +26,7 @@ export type GetKmsInfoRequest = z.infer<typeof GetKmsInfoRequestSchema>;
|
|
|
25
26
|
declare const getKmsInfo: {
|
|
26
27
|
(client: Client, params: {
|
|
27
28
|
kms_id: string;
|
|
28
|
-
}): Promise<
|
|
29
|
-
id: z.ZodString;
|
|
30
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
31
|
-
url: z.ZodString;
|
|
32
|
-
version: z.ZodString;
|
|
33
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
34
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
35
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
36
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
29
|
+
}): Promise<KmsInfo>;
|
|
37
30
|
<T extends z.ZodTypeAny>(client: Client, params: {
|
|
38
31
|
kms_id: string;
|
|
39
32
|
}, parameters: {
|
|
@@ -47,25 +40,16 @@ declare const getKmsInfo: {
|
|
|
47
40
|
}, safeGetKmsInfo: {
|
|
48
41
|
(client: Client, params: {
|
|
49
42
|
kms_id: string;
|
|
50
|
-
}): Promise<import("
|
|
51
|
-
id: z.ZodString;
|
|
52
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
53
|
-
url: z.ZodString;
|
|
54
|
-
version: z.ZodString;
|
|
55
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
56
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
57
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
58
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
43
|
+
}): Promise<import("../..").SafeResult<KmsInfo>>;
|
|
59
44
|
<T extends z.ZodTypeAny>(client: Client, params: {
|
|
60
45
|
kms_id: string;
|
|
61
46
|
}, parameters: {
|
|
62
47
|
schema: T;
|
|
63
|
-
}): Promise<import("
|
|
48
|
+
}): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
64
49
|
(client: Client, params: {
|
|
65
50
|
kms_id: string;
|
|
66
51
|
}, parameters: {
|
|
67
52
|
schema: false;
|
|
68
|
-
}): Promise<import("
|
|
53
|
+
}): Promise<import("../..").SafeResult<unknown>>;
|
|
69
54
|
};
|
|
70
55
|
export { getKmsInfo, safeGetKmsInfo };
|
|
71
|
-
//# sourceMappingURL=get_kms_info.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { type Client } from "
|
|
3
|
-
import { type KmsInfo } from "
|
|
2
|
+
import { type Client } from "../../client";
|
|
3
|
+
import { type KmsInfo } from "../../types/kms_info";
|
|
4
4
|
export declare const GetKmsListRequestSchema: z.ZodObject<{
|
|
5
5
|
page: z.ZodOptional<z.ZodNumber>;
|
|
6
6
|
page_size: z.ZodOptional<z.ZodNumber>;
|
|
@@ -98,21 +98,7 @@ declare const getKmsList: {
|
|
|
98
98
|
page?: number | undefined;
|
|
99
99
|
page_size?: number | undefined;
|
|
100
100
|
is_onchain?: boolean | undefined;
|
|
101
|
-
} | undefined): Promise<
|
|
102
|
-
page: number;
|
|
103
|
-
page_size: number;
|
|
104
|
-
items: z.objectOutputType<{
|
|
105
|
-
id: z.ZodString;
|
|
106
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
107
|
-
url: z.ZodString;
|
|
108
|
-
version: z.ZodString;
|
|
109
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
110
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
111
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
112
|
-
}, z.ZodTypeAny, "passthrough">[];
|
|
113
|
-
total: number;
|
|
114
|
-
pages: number;
|
|
115
|
-
}>;
|
|
101
|
+
} | undefined): Promise<GetKmsListResponse>;
|
|
116
102
|
<T extends z.ZodTypeAny>(client: Client, params?: {
|
|
117
103
|
page?: number | undefined;
|
|
118
104
|
page_size?: number | undefined;
|
|
@@ -132,35 +118,20 @@ declare const getKmsList: {
|
|
|
132
118
|
page?: number | undefined;
|
|
133
119
|
page_size?: number | undefined;
|
|
134
120
|
is_onchain?: boolean | undefined;
|
|
135
|
-
} | undefined): Promise<import("
|
|
136
|
-
page: number;
|
|
137
|
-
page_size: number;
|
|
138
|
-
items: z.objectOutputType<{
|
|
139
|
-
id: z.ZodString;
|
|
140
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
141
|
-
url: z.ZodString;
|
|
142
|
-
version: z.ZodString;
|
|
143
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
144
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
145
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
146
|
-
}, z.ZodTypeAny, "passthrough">[];
|
|
147
|
-
total: number;
|
|
148
|
-
pages: number;
|
|
149
|
-
}>>;
|
|
121
|
+
} | undefined): Promise<import("../..").SafeResult<GetKmsListResponse>>;
|
|
150
122
|
<T extends z.ZodTypeAny>(client: Client, params?: {
|
|
151
123
|
page?: number | undefined;
|
|
152
124
|
page_size?: number | undefined;
|
|
153
125
|
is_onchain?: boolean | undefined;
|
|
154
126
|
} | undefined, parameters?: {
|
|
155
127
|
schema: T;
|
|
156
|
-
} | undefined): Promise<import("
|
|
128
|
+
} | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
157
129
|
(client: Client, params?: {
|
|
158
130
|
page?: number | undefined;
|
|
159
131
|
page_size?: number | undefined;
|
|
160
132
|
is_onchain?: boolean | undefined;
|
|
161
133
|
} | undefined, parameters?: {
|
|
162
134
|
schema: false;
|
|
163
|
-
} | undefined): Promise<import("
|
|
135
|
+
} | undefined): Promise<import("../..").SafeResult<unknown>>;
|
|
164
136
|
};
|
|
165
137
|
export { getKmsList, safeGetKmsList };
|
|
166
|
-
//# sourceMappingURL=get_kms_list.d.ts.map
|
package/dist/client.d.ts
CHANGED