@phala/cloud 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/dist/actions/api_tokens/revoke_current_api_token.d.ts +47 -0
- package/dist/actions/apps/app_launch_token.d.ts +121 -0
- package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +17 -311
- package/dist/actions/apps/check_app_is_allowed.d.ts +20 -32
- package/dist/actions/apps/create_app_instance.d.ts +43 -63
- package/dist/actions/apps/get_app_attestation.d.ts +116 -772
- package/dist/actions/apps/get_app_cvms.d.ts +1 -5
- package/dist/actions/apps/get_app_device_allowlist.d.ts +26 -272
- package/dist/actions/apps/get_app_filter_options.d.ts +8 -24
- package/dist/actions/apps/get_app_info.d.ts +1 -5
- package/dist/actions/apps/get_app_list.d.ts +2 -26
- package/dist/actions/apps/get_app_revision_detail.d.ts +1 -9
- package/dist/actions/apps/get_app_revisions.d.ts +1 -9
- package/dist/actions/blockchains/add_compose_hash.d.ts +1 -13
- package/dist/actions/blockchains/add_device.d.ts +1 -13
- package/dist/actions/blockchains/deploy_app_auth.d.ts +3 -95
- package/dist/actions/blockchains/get_allowed_devices.d.ts +2 -12
- package/dist/actions/blockchains/remove_device.d.ts +1 -13
- package/dist/actions/blockchains/set_allow_any_device.d.ts +1 -13
- package/dist/actions/cvms/check_cvm_is_allowed.d.ts +13 -138
- package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +9 -45
- package/dist/actions/cvms/commit_cvm_provision.d.ts +32 -416
- package/dist/actions/cvms/commit_cvm_update.d.ts +70 -41
- package/dist/actions/cvms/confirm_cvm_patch.d.ts +62 -35
- package/dist/actions/cvms/cvm_annotations.d.ts +152 -0
- package/dist/actions/cvms/delete_cvm.d.ts +8 -14
- package/dist/actions/cvms/get_available_os_images.d.ts +70 -111
- package/dist/actions/cvms/get_cvm_attestation.d.ts +34 -392
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +426 -512
- package/dist/actions/cvms/get_cvm_containers_stats.d.ts +25 -91
- package/dist/actions/cvms/get_cvm_docker_compose.d.ts +8 -14
- package/dist/actions/cvms/get_cvm_info.d.ts +6 -12
- package/dist/actions/cvms/get_cvm_init_scripts.d.ts +87 -0
- package/dist/actions/cvms/get_cvm_list.d.ts +9 -17
- package/dist/actions/cvms/get_cvm_network.d.ts +18 -50
- package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +8 -14
- package/dist/actions/cvms/get_cvm_state.d.ts +11 -37
- package/dist/actions/cvms/get_cvm_stats.d.ts +23 -149
- package/dist/actions/cvms/get_cvm_status_batch.d.ts +97 -64
- package/dist/actions/cvms/get_cvm_user_config.d.ts +13 -24
- package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +9 -27
- package/dist/actions/cvms/patch_cvm.d.ts +666 -287
- package/dist/actions/cvms/provision_cvm.d.ts +339 -725
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +584 -777
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +74 -131
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +77 -297
- package/dist/actions/cvms/replicate_cvm.d.ts +7 -21
- package/dist/actions/cvms/restart_cvm.d.ts +3 -18
- package/dist/actions/cvms/shutdown_cvm.d.ts +6 -12
- package/dist/actions/cvms/start_cvm.d.ts +6 -12
- package/dist/actions/cvms/stop_cvm.d.ts +6 -12
- package/dist/actions/cvms/update_cvm_envs.d.ts +144 -195
- package/dist/actions/cvms/update_cvm_resources.d.ts +93 -37
- package/dist/actions/cvms/update_cvm_visibility.d.ts +90 -130
- package/dist/actions/cvms/update_docker_compose.d.ts +143 -187
- package/dist/actions/cvms/update_os_image.d.ts +55 -28
- package/dist/actions/cvms/update_prelaunch_script.d.ts +143 -187
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +126 -185
- package/dist/actions/cvms/watch_cvm_state.d.ts +5 -15
- package/dist/actions/get_available_nodes.d.ts +201 -823
- package/dist/actions/get_cvm_create_resources.d.ts +150 -2150
- package/dist/actions/index.d.ts +14 -4
- package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +11 -23
- package/dist/actions/kms/get_kms_contract.d.ts +57 -0
- package/dist/actions/kms/get_kms_info.d.ts +3 -7
- package/dist/actions/kms/get_kms_list.d.ts +43 -82
- package/dist/actions/kms/get_kms_onchain_detail.d.ts +72 -616
- package/dist/actions/kms/list_kms_contract_nodes.d.ts +66 -0
- package/dist/actions/kms/list_kms_contracts.d.ts +98 -0
- package/dist/actions/kms/next_app_ids.d.ts +5 -25
- package/dist/actions/list-instance-types.d.ts +77 -257
- package/dist/actions/os_images/get_os_images.d.ts +38 -152
- package/dist/actions/ssh_keys/create_ssh_key.d.ts +11 -17
- package/dist/actions/ssh_keys/delete_ssh_key.d.ts +3 -7
- package/dist/actions/ssh_keys/get_cvm_ssh_keys.d.ts +113 -0
- package/dist/actions/ssh_keys/import_github_profile.d.ts +7 -21
- package/dist/actions/ssh_keys/list_ssh_keys.d.ts +2 -50
- package/dist/actions/ssh_keys/sync_github_ssh_keys.d.ts +8 -20
- package/dist/actions/ssh_keys/update_cvm_ssh_keys.d.ts +140 -0
- package/dist/actions/workspaces/get_workspace.d.ts +32 -24
- package/dist/actions/workspaces/get_workspace_nodes.d.ts +56 -182
- package/dist/actions/workspaces/get_workspace_quotas.d.ts +107 -1021
- package/dist/actions/workspaces/list_workspaces.d.ts +69 -245
- package/dist/client.d.ts +27 -5
- package/dist/create-client.d.ts +1820 -1
- package/dist/credentials/current_user_v20251028.d.ts +1 -17
- package/dist/credentials/current_user_v20260121.d.ts +22 -227
- package/dist/index.d.ts +1 -2
- package/dist/index.js +5454 -4389
- package/dist/index.mjs +5396 -4395
- package/dist/types/app_compose.d.ts +116 -184
- package/dist/types/app_info_v20251028.d.ts +29 -1030
- package/dist/types/app_info_v20260121.d.ts +686 -6832
- package/dist/types/app_revision.d.ts +15 -371
- package/dist/types/client.d.ts +18 -2
- package/dist/types/common.d.ts +6 -0
- package/dist/types/cvm_id.d.ts +12 -57
- package/dist/types/cvm_info.d.ts +33 -460
- package/dist/types/cvm_info_v20251028.d.ts +102 -800
- package/dist/types/cvm_info_v20260121.d.ts +411 -2347
- package/dist/types/kms_contract.d.ts +34 -0
- package/dist/types/kms_info.d.ts +34 -60
- package/dist/types/version-mappings.d.ts +6 -6
- package/dist/utils/define-action.d.ts +4 -4
- package/dist/utils/error_codes.d.ts +1 -0
- package/dist/utils/errors.d.ts +34 -37
- package/dist/utils/get_compose_hash.d.ts +59 -4
- package/dist/utils/get_mr_config_id.d.ts +146 -0
- package/dist/utils/index.d.ts +3 -2
- package/dist/utils/placement-request.d.ts +3 -0
- package/package.json +4 -4
package/dist/actions/index.d.ts
CHANGED
|
@@ -22,6 +22,10 @@ export { getCvmInfo, safeGetCvmInfo, GetCvmInfoRequestSchema, type GetCvmInfoReq
|
|
|
22
22
|
export { getCvmList, safeGetCvmList, GetCvmListRequestSchema, type GetCvmListRequest, } from "./cvms/get_cvm_list";
|
|
23
23
|
export { getKmsInfo, safeGetKmsInfo, GetKmsInfoRequestSchema, type GetKmsInfoRequest, } from "./kms/get_kms_info";
|
|
24
24
|
export { getKmsList, safeGetKmsList, GetKmsListSchema, GetKmsListRequestSchema, type GetKmsListRequest, type GetKmsListResponse, } from "./kms/get_kms_list";
|
|
25
|
+
export { listKmsContracts, safeListKmsContracts, ListKmsContractsSchema, ListKmsContractsRequestSchema, type ListKmsContractsRequest, type ListKmsContractsResponse, } from "./kms/list_kms_contracts";
|
|
26
|
+
export { getKmsContract, safeGetKmsContract, GetKmsContractRequestSchema, type GetKmsContractRequest, type GetKmsContract, } from "./kms/get_kms_contract";
|
|
27
|
+
export { listKmsContractNodes, safeListKmsContractNodes, ListKmsContractNodesSchema, ListKmsContractNodesRequestSchema, type ListKmsContractNodesRequest, type ListKmsContractNodesResponse, } from "./kms/list_kms_contract_nodes";
|
|
28
|
+
export { KmsContractInfoSchema, KmsContractNodeSchema, type KmsContractInfo, type KmsContractNode, } from "../types/kms_contract";
|
|
25
29
|
export { getKmsOnChainDetail, safeGetKmsOnChainDetail, GetKmsOnChainDetailResponseSchema, GetKmsOnChainDetailRequestSchema, OnChainKmsContractSchema, OnChainDeviceSchema, OnChainOsImageSchema, type GetKmsOnChainDetailResponse, type GetKmsOnChainDetailRequest, type OnChainKmsContract, type OnChainDevice, type OnChainOsImage, } from "./kms/get_kms_onchain_detail";
|
|
26
30
|
export { nextAppIds, safeNextAppIds, NextAppIdsSchema, NextAppIdsRequestSchema, type NextAppIdsRequest, type NextAppIds, } from "./kms/next_app_ids";
|
|
27
31
|
export { listWorkspaces, safeListWorkspaces, WorkspaceResponseSchema, ListWorkspacesSchema, PaginationMetadataSchema, type WorkspaceResponse, type ListWorkspaces, type PaginationMetadata, type ListWorkspacesRequest, } from "./workspaces/list_workspaces";
|
|
@@ -42,11 +46,11 @@ export { getCvmState, safeGetCvmState, CvmStateSchema, GetCvmStateRequestSchema,
|
|
|
42
46
|
export { watchCvmState, WatchCvmStateRequestSchema, type WatchCvmStateRequest, type WatchCvmStateOptions, type SSEEvent, WatchAbortedError, MaxRetriesExceededError, } from "./cvms/watch_cvm_state";
|
|
43
47
|
export { getCvmAttestation, safeGetCvmAttestation, CvmAttestationSchema, GetCvmAttestationRequestSchema, CertificateSubjectSchema, CertificateIssuerSchema, CertificateSchema, EventLogSchema, TcbInfoSchema, type GetCvmAttestationRequest, type CvmAttestation, } from "./cvms/get_cvm_attestation";
|
|
44
48
|
export { getCvmDockerCompose, safeGetCvmDockerCompose, GetCvmDockerComposeRequestSchema, type GetCvmDockerComposeRequest, } from "./cvms/get_cvm_docker_compose";
|
|
45
|
-
export { patchCvm, safePatchCvm, PatchCvmRequestSchema, PatchCvmResultSchema, type PatchCvmRequest, type PatchCvmResult, type PatchCvmAccepted, type PatchCvmHashRequired, } from "./cvms/patch_cvm";
|
|
49
|
+
export { patchCvm, safePatchCvm, PatchCvmRequestSchema, PatchCvmResultSchema, PatchCvmGpuConfigSchema, ComposePatchSchema, ComposeRequirementsPatchSchema, type ComposePatch, type PatchCvmGpuConfig, type PatchCvmRequest, type PatchCvmResult, type PatchCvmAccepted, type PatchCvmHashRequired, } from "./cvms/patch_cvm";
|
|
46
50
|
export { confirmCvmPatch, safeConfirmCvmPatch, ConfirmCvmPatchRequestSchema, type ConfirmCvmPatchRequest, type ConfirmCvmPatchResult, } from "./cvms/confirm_cvm_patch";
|
|
47
51
|
export { commitCvmUpdate, safeCommitCvmUpdate, CommitCvmUpdateRequestSchema, type CommitCvmUpdateRequest, type CommitCvmUpdateResult, } from "./cvms/commit_cvm_update";
|
|
48
|
-
export { updateCvmResources, safeUpdateCvmResources, UpdateCvmResourcesRequestSchema, type UpdateCvmResourcesRequest, } from "./cvms/update_cvm_resources";
|
|
49
|
-
export { updateCvmVisibility, safeUpdateCvmVisibility, UpdateCvmVisibilityRequestSchema, type UpdateCvmVisibilityRequest, } from "./cvms/update_cvm_visibility";
|
|
52
|
+
export { updateCvmResources, safeUpdateCvmResources, UpdateCvmResourcesRequestSchema, type UpdateCvmResourcesRequest, type UpdateCvmResourcesResponse, } from "./cvms/update_cvm_resources";
|
|
53
|
+
export { updateCvmVisibility, safeUpdateCvmVisibility, UpdateCvmVisibilityRequestSchema, UpdateCvmVisibilityResponseSchema, type UpdateCvmVisibilityRequest, type UpdateCvmVisibilityResponse, } from "./cvms/update_cvm_visibility";
|
|
50
54
|
export { refreshCvmInstanceId, safeRefreshCvmInstanceId, InstanceIdRefreshResultSchema, RefreshCvmInstanceIdRequestSchema, type InstanceIdRefreshResult, type RefreshCvmInstanceIdRequest, } from "./cvms/refresh_cvm_instance_id";
|
|
51
55
|
export { refreshCvmInstanceIds, safeRefreshCvmInstanceIds, RefreshCvmInstanceIdsRequestSchema, RefreshCvmInstanceIdsResponseSchema, type RefreshCvmInstanceIdsRequest, type RefreshCvmInstanceIdsResponse, } from "./cvms/refresh_cvm_instance_ids";
|
|
52
56
|
export { getAvailableOsImages, safeGetAvailableOsImages, OSImageVariantSchema, GetAvailableOSImagesResponseSchema, GetAvailableOSImagesRequestSchema, type OSImageVariant, type GetAvailableOSImagesResponse, type GetAvailableOSImagesRequest, } from "./cvms/get_available_os_images";
|
|
@@ -56,13 +60,18 @@ export { updatePreLaunchScript, safeUpdatePreLaunchScript, UpdatePreLaunchScript
|
|
|
56
60
|
export { getCvmPreLaunchScript, safeGetCvmPreLaunchScript, GetCvmPreLaunchScriptRequestSchema, type GetCvmPreLaunchScriptRequest, } from "./cvms/get_cvm_prelaunch_script";
|
|
57
61
|
export { getPreLaunchScriptUpgradeStatus, safeGetPreLaunchScriptUpgradeStatus, GetPreLaunchScriptUpgradeStatusRequestSchema, type GetPreLaunchScriptUpgradeStatusRequest, PreLaunchScriptUpgradeStatusSchema, type PreLaunchScriptUpgradeStatus, } from "./cvms/get_prelaunch_script_upgrade_status";
|
|
58
62
|
export { upgradePreLaunchScript, safeUpgradePreLaunchScript, UpgradePreLaunchScriptRequestSchema, type UpgradePreLaunchScriptRequest, UpgradePreLaunchScriptResultSchema, type UpgradePreLaunchScriptResult, type UpgradePreLaunchScriptInProgress, type UpgradePreLaunchScriptPreconditionRequired, } from "./cvms/upgrade_prelaunch_script";
|
|
59
|
-
export { getCvmStatusBatch, safeGetCvmStatusBatch, CvmStatusSchema, GetCvmStatusBatchResponseSchema, GetCvmStatusBatchRequestSchema, type CvmStatus, type GetCvmStatusBatchResponse, type GetCvmStatusBatchRequest, } from "./cvms/get_cvm_status_batch";
|
|
63
|
+
export { getCvmStatusBatch, safeGetCvmStatusBatch, CvmResourceUsageSchema, CvmStatusSchema, GetCvmStatusBatchResponseSchema, GetCvmStatusBatchRequestSchema, type CvmResourceUsage, type CvmStatus, type GetCvmStatusBatchResponse, type GetCvmStatusBatchRequest, } from "./cvms/get_cvm_status_batch";
|
|
60
64
|
export { getCvmUserConfig, safeGetCvmUserConfig, CvmUserConfigSchema, GetCvmUserConfigRequestSchema, type CvmUserConfig, type GetCvmUserConfigRequest, } from "./cvms/get_cvm_user_config";
|
|
65
|
+
export { getCvmAnnotations, safeGetCvmAnnotations, updateCvmAnnotations, safeUpdateCvmAnnotations, CvmAnnotationsSchema, GetCvmAnnotationsRequestSchema, UpdateCvmAnnotationsRequestSchema, type CvmAnnotations, type GetCvmAnnotationsRequest, type UpdateCvmAnnotationsRequest, } from "./cvms/cvm_annotations";
|
|
66
|
+
export { getCvmInitScripts, safeGetCvmInitScripts, CvmInitScriptSchema, CvmInitScriptsSchema, GetCvmInitScriptsRequestSchema, type CvmInitScript, type CvmInitScripts, type GetCvmInitScriptsRequest, } from "./cvms/get_cvm_init_scripts";
|
|
61
67
|
export { listSshKeys, safeListSshKeys, SshKeySchema, ListSshKeysResponseSchema, type SshKey, type ListSshKeysResponse, } from "./ssh_keys/list_ssh_keys";
|
|
62
68
|
export { importGithubProfileSshKeys, safeImportGithubProfileSshKeys, ImportGithubProfileRequestSchema, ImportGithubProfileResponseSchema, type ImportGithubProfileRequest, type ImportGithubProfileResponse, } from "./ssh_keys/import_github_profile";
|
|
63
69
|
export { createSshKey, safeCreateSshKey, CreateSshKeyRequestSchema, type CreateSshKeyRequest, } from "./ssh_keys/create_ssh_key";
|
|
64
70
|
export { deleteSshKey, safeDeleteSshKey, DeleteSshKeyRequestSchema, type DeleteSshKeyRequest, } from "./ssh_keys/delete_ssh_key";
|
|
65
71
|
export { syncGithubSshKeys, safeSyncGithubSshKeys, SyncGithubSshKeysResponseSchema, type SyncGithubSshKeysResponse, } from "./ssh_keys/sync_github_ssh_keys";
|
|
72
|
+
export { getCvmSshKeys, safeGetCvmSshKeys, CvmSshKeySchema, CvmSshKeysResponseSchema, GetCvmSshKeysRequestSchema, type CvmSshKey, type CvmSshKeysResponse, type GetCvmSshKeysRequest, } from "./ssh_keys/get_cvm_ssh_keys";
|
|
73
|
+
export { updateCvmSshKeys, safeUpdateCvmSshKeys, UpdateCvmSshKeysRequestSchema, type UpdateCvmSshKeysRequest, } from "./ssh_keys/update_cvm_ssh_keys";
|
|
74
|
+
export { revokeCurrentApiToken, safeRevokeCurrentApiToken, } from "./api_tokens/revoke_current_api_token";
|
|
66
75
|
export { checkCvmIsAllowed, safeCheckCvmIsAllowed, IsAllowedResultSchema, CheckCvmIsAllowedRequestSchema, type IsAllowedResult, type CheckCvmIsAllowedRequest, } from "./cvms/check_cvm_is_allowed";
|
|
67
76
|
export { checkAppIsAllowed, safeCheckAppIsAllowed, CheckAppIsAllowedRequestSchema, type CheckAppIsAllowedRequest, } from "./apps/check_app_is_allowed";
|
|
68
77
|
export { checkAppCvmsIsAllowed, safeCheckAppCvmsIsAllowed, AppCvmsBatchIsAllowedResponseSchema, CheckAppCvmsIsAllowedRequestSchema, type AppCvmsBatchIsAllowedResponse, type CheckAppCvmsIsAllowedRequest, } from "./apps/check_app_cvms_is_allowed";
|
|
@@ -75,4 +84,5 @@ export { getAppRevisions, safeGetAppRevisions, GetAppRevisionsRequestSchema, typ
|
|
|
75
84
|
export { getAppRevisionDetail, safeGetAppRevisionDetail, GetAppRevisionDetailRequestSchema, type GetAppRevisionDetailRequest, } from "./apps/get_app_revision_detail";
|
|
76
85
|
export { getAppFilterOptions, safeGetAppFilterOptions, AppFilterOptionsSchema, type AppFilterOptions, } from "./apps/get_app_filter_options";
|
|
77
86
|
export { getAppAttestation, safeGetAppAttestation, AppAttestationInstanceSchema, AppAttestationResponseSchema, GetAppAttestationRequestSchema, type AppAttestationInstance, type AppAttestationResponse, type GetAppAttestationRequest, } from "./apps/get_app_attestation";
|
|
87
|
+
export { setAppLaunchToken, safeSetAppLaunchToken, clearAppLaunchToken, safeClearAppLaunchToken, AppLaunchTokenSchema, SetAppLaunchTokenRequestSchema, ClearAppLaunchTokenRequestSchema, type AppLaunchToken, type SetAppLaunchTokenRequest, type ClearAppLaunchTokenRequest, } from "./apps/app_launch_token";
|
|
78
88
|
export { getOsImages, safeGetOsImages, GetOsImagesResponseSchema, GetOsImagesRequestSchema, OSImagePublicSchema, type GetOsImagesResponse, type GetOsImagesRequest, type OSImagePublic, } from "./os_images/get_os_images";
|
|
@@ -2,63 +2,51 @@ import { z } from "zod";
|
|
|
2
2
|
import { type Client } from "../../client";
|
|
3
3
|
export declare const GetAppEnvEncryptPubKeyRequestSchema: z.ZodObject<{
|
|
4
4
|
kms: z.ZodString;
|
|
5
|
-
app_id: z.
|
|
6
|
-
},
|
|
7
|
-
app_id: string;
|
|
8
|
-
kms: string;
|
|
9
|
-
}, {
|
|
10
|
-
app_id: string;
|
|
11
|
-
kms: string;
|
|
12
|
-
}>;
|
|
5
|
+
app_id: z.ZodString;
|
|
6
|
+
}, z.core.$strict>;
|
|
13
7
|
export declare const GetAppEnvEncryptPubKeySchema: z.ZodObject<{
|
|
14
8
|
public_key: z.ZodString;
|
|
15
9
|
signature: z.ZodString;
|
|
16
|
-
},
|
|
17
|
-
public_key: string;
|
|
18
|
-
signature: string;
|
|
19
|
-
}, {
|
|
20
|
-
public_key: string;
|
|
21
|
-
signature: string;
|
|
22
|
-
}>;
|
|
10
|
+
}, z.core.$strict>;
|
|
23
11
|
export type GetAppEnvEncryptPubKeyRequest = z.infer<typeof GetAppEnvEncryptPubKeyRequestSchema>;
|
|
24
12
|
export type GetAppEnvEncryptPubKey = z.infer<typeof GetAppEnvEncryptPubKeySchema>;
|
|
25
13
|
declare const getAppEnvEncryptPubKey: {
|
|
26
14
|
(client: Client<import("../..").ApiVersion>, params: {
|
|
27
|
-
app_id: string;
|
|
28
15
|
kms: string;
|
|
16
|
+
app_id: string;
|
|
29
17
|
}): Promise<{
|
|
30
18
|
public_key: string;
|
|
31
19
|
signature: string;
|
|
32
20
|
}>;
|
|
33
21
|
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: {
|
|
34
|
-
app_id: string;
|
|
35
22
|
kms: string;
|
|
23
|
+
app_id: string;
|
|
36
24
|
}, parameters: {
|
|
37
25
|
schema: T;
|
|
38
|
-
}): Promise<z.
|
|
26
|
+
}): Promise<z.core.output<T>>;
|
|
39
27
|
(client: Client<import("../..").ApiVersion>, params: {
|
|
40
|
-
app_id: string;
|
|
41
28
|
kms: string;
|
|
29
|
+
app_id: string;
|
|
42
30
|
}, parameters: {
|
|
43
31
|
schema: false;
|
|
44
32
|
}): Promise<unknown>;
|
|
45
33
|
}, safeGetAppEnvEncryptPubKey: {
|
|
46
34
|
(client: Client<import("../..").ApiVersion>, params: {
|
|
47
|
-
app_id: string;
|
|
48
35
|
kms: string;
|
|
36
|
+
app_id: string;
|
|
49
37
|
}): Promise<import("../..").SafeResult<{
|
|
50
38
|
public_key: string;
|
|
51
39
|
signature: string;
|
|
52
40
|
}>>;
|
|
53
41
|
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: {
|
|
54
|
-
app_id: string;
|
|
55
42
|
kms: string;
|
|
43
|
+
app_id: string;
|
|
56
44
|
}, parameters: {
|
|
57
45
|
schema: T;
|
|
58
|
-
}): Promise<import("../..").SafeResult<z.
|
|
46
|
+
}): Promise<import("../..").SafeResult<z.core.output<T>>>;
|
|
59
47
|
(client: Client<import("../..").ApiVersion>, params: {
|
|
60
|
-
app_id: string;
|
|
61
48
|
kms: string;
|
|
49
|
+
app_id: string;
|
|
62
50
|
}, parameters: {
|
|
63
51
|
schema: false;
|
|
64
52
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { KmsContractInfoSchema } from "../../types/kms_contract";
|
|
3
|
+
export declare const GetKmsContractRequestSchema: z.ZodObject<{
|
|
4
|
+
slug: z.ZodString;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
export type GetKmsContractRequest = z.infer<typeof GetKmsContractRequestSchema>;
|
|
7
|
+
export type GetKmsContract = z.infer<typeof KmsContractInfoSchema>;
|
|
8
|
+
declare const getKmsContract: {
|
|
9
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
10
|
+
slug: string;
|
|
11
|
+
}): Promise<{
|
|
12
|
+
[x: string]: unknown;
|
|
13
|
+
id: string;
|
|
14
|
+
slug: string | null;
|
|
15
|
+
label: string | null;
|
|
16
|
+
contract_address: string;
|
|
17
|
+
chain_id: number;
|
|
18
|
+
k256_pubkey: string | null;
|
|
19
|
+
ca_pubkey: string | null;
|
|
20
|
+
node_count: number;
|
|
21
|
+
}>;
|
|
22
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
23
|
+
slug: string;
|
|
24
|
+
}, parameters: {
|
|
25
|
+
schema: T;
|
|
26
|
+
}): Promise<z.core.output<T>>;
|
|
27
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
28
|
+
slug: string;
|
|
29
|
+
}, parameters: {
|
|
30
|
+
schema: false;
|
|
31
|
+
}): Promise<unknown>;
|
|
32
|
+
}, safeGetKmsContract: {
|
|
33
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
34
|
+
slug: string;
|
|
35
|
+
}): Promise<import("../..").SafeResult<{
|
|
36
|
+
[x: string]: unknown;
|
|
37
|
+
id: string;
|
|
38
|
+
slug: string | null;
|
|
39
|
+
label: string | null;
|
|
40
|
+
contract_address: string;
|
|
41
|
+
chain_id: number;
|
|
42
|
+
k256_pubkey: string | null;
|
|
43
|
+
ca_pubkey: string | null;
|
|
44
|
+
node_count: number;
|
|
45
|
+
}>>;
|
|
46
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
47
|
+
slug: string;
|
|
48
|
+
}, parameters: {
|
|
49
|
+
schema: T;
|
|
50
|
+
}): Promise<import("../..").SafeResult<z.core.output<T>>>;
|
|
51
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
52
|
+
slug: string;
|
|
53
|
+
}, parameters: {
|
|
54
|
+
schema: false;
|
|
55
|
+
}): Promise<import("../..").SafeResult<unknown>>;
|
|
56
|
+
};
|
|
57
|
+
export { getKmsContract, safeGetKmsContract };
|
|
@@ -3,11 +3,7 @@ import type { Client } from "../../client";
|
|
|
3
3
|
import { KmsInfo } from "../../types/kms_info";
|
|
4
4
|
export declare const GetKmsInfoRequestSchema: z.ZodObject<{
|
|
5
5
|
kms_id: z.ZodString;
|
|
6
|
-
},
|
|
7
|
-
kms_id: string;
|
|
8
|
-
}, {
|
|
9
|
-
kms_id: string;
|
|
10
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
11
7
|
export type GetKmsInfoRequest = z.infer<typeof GetKmsInfoRequestSchema>;
|
|
12
8
|
/**
|
|
13
9
|
* Get information about a specific KMS
|
|
@@ -31,7 +27,7 @@ declare const getKmsInfo: {
|
|
|
31
27
|
kms_id: string;
|
|
32
28
|
}, parameters: {
|
|
33
29
|
schema: T;
|
|
34
|
-
}): Promise<z.
|
|
30
|
+
}): Promise<z.core.output<T>>;
|
|
35
31
|
(client: Client<import("../..").ApiVersion>, params: {
|
|
36
32
|
kms_id: string;
|
|
37
33
|
}, parameters: {
|
|
@@ -45,7 +41,7 @@ declare const getKmsInfo: {
|
|
|
45
41
|
kms_id: string;
|
|
46
42
|
}, parameters: {
|
|
47
43
|
schema: T;
|
|
48
|
-
}): Promise<import("../..").SafeResult<z.
|
|
44
|
+
}): Promise<import("../..").SafeResult<z.core.output<T>>>;
|
|
49
45
|
(client: Client<import("../..").ApiVersion>, params: {
|
|
50
46
|
kms_id: string;
|
|
51
47
|
}, parameters: {
|
|
@@ -5,131 +5,92 @@ export declare const GetKmsListRequestSchema: z.ZodObject<{
|
|
|
5
5
|
page: z.ZodOptional<z.ZodNumber>;
|
|
6
6
|
page_size: z.ZodOptional<z.ZodNumber>;
|
|
7
7
|
is_onchain: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
-
},
|
|
9
|
-
is_onchain?: boolean | undefined;
|
|
10
|
-
page?: number | undefined;
|
|
11
|
-
page_size?: number | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
is_onchain?: boolean | undefined;
|
|
14
|
-
page?: number | undefined;
|
|
15
|
-
page_size?: number | undefined;
|
|
16
|
-
}>;
|
|
8
|
+
}, z.core.$strict>;
|
|
17
9
|
export declare const GetKmsListSchema: z.ZodObject<{
|
|
18
|
-
items: z.ZodArray<z.
|
|
10
|
+
items: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
19
11
|
id: z.ZodString;
|
|
20
12
|
slug: z.ZodNullable<z.ZodString>;
|
|
21
13
|
url: z.ZodString;
|
|
22
14
|
version: z.ZodString;
|
|
23
15
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
24
|
-
kms_contract_address: z.
|
|
25
|
-
gateway_app_id: z.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
49
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
50
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
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">>, "many">;
|
|
16
|
+
kms_contract_address: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
|
|
17
|
+
gateway_app_id: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
|
|
18
|
+
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$loose>, z.ZodTransform<{
|
|
20
|
+
[x: string]: unknown;
|
|
21
|
+
id: string;
|
|
22
|
+
slug: string | null;
|
|
23
|
+
url: string;
|
|
24
|
+
version: string;
|
|
25
|
+
chain_id: number | null;
|
|
26
|
+
kms_contract_address: `0x${string}`;
|
|
27
|
+
gateway_app_id: `0x${string}`;
|
|
28
|
+
k256_pubkey?: string | null | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
[x: string]: unknown;
|
|
31
|
+
id: string;
|
|
32
|
+
slug: string | null;
|
|
33
|
+
url: string;
|
|
34
|
+
version: string;
|
|
35
|
+
chain_id: number | null;
|
|
36
|
+
kms_contract_address: `0x${string}`;
|
|
37
|
+
gateway_app_id: `0x${string}`;
|
|
38
|
+
k256_pubkey?: string | null | undefined;
|
|
39
|
+
}>>>;
|
|
59
40
|
total: z.ZodNumber;
|
|
60
41
|
page: z.ZodNumber;
|
|
61
42
|
page_size: z.ZodNumber;
|
|
62
43
|
pages: z.ZodNumber;
|
|
63
|
-
},
|
|
64
|
-
total: number;
|
|
65
|
-
items: z.objectOutputType<{
|
|
66
|
-
id: z.ZodString;
|
|
67
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
68
|
-
url: z.ZodString;
|
|
69
|
-
version: z.ZodString;
|
|
70
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
71
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
72
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
73
|
-
}, z.ZodTypeAny, "passthrough">[];
|
|
74
|
-
page: number;
|
|
75
|
-
page_size: number;
|
|
76
|
-
pages: number;
|
|
77
|
-
}, {
|
|
78
|
-
total: number;
|
|
79
|
-
items: z.objectInputType<{
|
|
80
|
-
id: z.ZodString;
|
|
81
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
82
|
-
url: z.ZodString;
|
|
83
|
-
version: z.ZodString;
|
|
84
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
85
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
86
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
87
|
-
}, z.ZodTypeAny, "passthrough">[];
|
|
88
|
-
page: number;
|
|
89
|
-
page_size: number;
|
|
90
|
-
pages: number;
|
|
91
|
-
}>;
|
|
44
|
+
}, z.core.$strict>;
|
|
92
45
|
export type GetKmsListRequest = z.infer<typeof GetKmsListRequestSchema>;
|
|
93
46
|
export type GetKmsListResponse = z.infer<typeof GetKmsListSchema> & {
|
|
94
47
|
items: KmsInfo[];
|
|
95
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* List KMS nodes (legacy, node-centric shape).
|
|
51
|
+
*
|
|
52
|
+
* @deprecated From API version 2026-06-23 the KMS API is contract-centric. Use
|
|
53
|
+
* `listKmsContracts` to list contracts and `listKmsContractNodes` to list a
|
|
54
|
+
* contract's nodes. This action stays pinned to the legacy node-list shape via
|
|
55
|
+
* the `2026-05-22` API version.
|
|
56
|
+
*/
|
|
96
57
|
declare const getKmsList: {
|
|
97
58
|
(client: Client<import("../..").ApiVersion>, params?: {
|
|
98
|
-
is_onchain?: boolean | undefined;
|
|
99
59
|
page?: number | undefined;
|
|
100
60
|
page_size?: number | undefined;
|
|
61
|
+
is_onchain?: boolean | undefined;
|
|
101
62
|
} | undefined): Promise<GetKmsListResponse>;
|
|
102
63
|
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params?: {
|
|
103
|
-
is_onchain?: boolean | undefined;
|
|
104
64
|
page?: number | undefined;
|
|
105
65
|
page_size?: number | undefined;
|
|
66
|
+
is_onchain?: boolean | undefined;
|
|
106
67
|
} | undefined, parameters?: {
|
|
107
68
|
schema: T;
|
|
108
|
-
} | undefined): Promise<z.
|
|
69
|
+
} | undefined): Promise<z.core.output<T>>;
|
|
109
70
|
(client: Client<import("../..").ApiVersion>, params?: {
|
|
110
|
-
is_onchain?: boolean | undefined;
|
|
111
71
|
page?: number | undefined;
|
|
112
72
|
page_size?: number | undefined;
|
|
73
|
+
is_onchain?: boolean | undefined;
|
|
113
74
|
} | undefined, parameters?: {
|
|
114
75
|
schema: false;
|
|
115
76
|
} | undefined): Promise<unknown>;
|
|
116
77
|
}, safeGetKmsList: {
|
|
117
78
|
(client: Client<import("../..").ApiVersion>, params?: {
|
|
118
|
-
is_onchain?: boolean | undefined;
|
|
119
79
|
page?: number | undefined;
|
|
120
80
|
page_size?: number | undefined;
|
|
81
|
+
is_onchain?: boolean | undefined;
|
|
121
82
|
} | undefined): Promise<import("../..").SafeResult<GetKmsListResponse>>;
|
|
122
83
|
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params?: {
|
|
123
|
-
is_onchain?: boolean | undefined;
|
|
124
84
|
page?: number | undefined;
|
|
125
85
|
page_size?: number | undefined;
|
|
86
|
+
is_onchain?: boolean | undefined;
|
|
126
87
|
} | undefined, parameters?: {
|
|
127
88
|
schema: T;
|
|
128
|
-
} | undefined): Promise<import("../..").SafeResult<z.
|
|
89
|
+
} | undefined): Promise<import("../..").SafeResult<z.core.output<T>>>;
|
|
129
90
|
(client: Client<import("../..").ApiVersion>, params?: {
|
|
130
|
-
is_onchain?: boolean | undefined;
|
|
131
91
|
page?: number | undefined;
|
|
132
92
|
page_size?: number | undefined;
|
|
93
|
+
is_onchain?: boolean | undefined;
|
|
133
94
|
} | undefined, parameters?: {
|
|
134
95
|
schema: false;
|
|
135
96
|
} | undefined): Promise<import("../..").SafeResult<unknown>>;
|