@phala/cloud
Version:
TypeScript SDK for Phala Cloud API
30 lines • 1.62 kB
TypeScript
import { z } from "zod";
import { type Client, type SafeResult } from "../client";
import { ActionParameters, ActionReturnType } from "../types/common";
export declare const GetAppEnvEncryptPubKeyRequestSchema: z.ZodObject<{
kms: z.ZodString;
app_id: z.ZodEffects<z.ZodString, string, string>;
}, "strict", z.ZodTypeAny, {
app_id: string;
kms: string;
}, {
app_id: string;
kms: string;
}>;
export declare const GetAppEnvEncryptPubKeySchema: z.ZodObject<{
public_key: z.ZodString;
signature: z.ZodString;
}, "strict", z.ZodTypeAny, {
signature: string;
public_key: string;
}, {
signature: string;
public_key: string;
}>;
export type GetAppEnvEncryptPubKeyRequest = z.infer<typeof GetAppEnvEncryptPubKeyRequestSchema>;
export type GetAppEnvEncryptPubKey = z.infer<typeof GetAppEnvEncryptPubKeySchema>;
export type GetAppEnvEncryptPubKeyParameters<T = undefined> = ActionParameters<T>;
export type GetAppEnvEncryptPubKeyReturnType<T = undefined> = ActionReturnType<GetAppEnvEncryptPubKey, T>;
export declare const getAppEnvEncryptPubKey: <T extends z.ZodSchema | false | undefined = undefined>(client: Client, payload: GetAppEnvEncryptPubKeyRequest, parameters?: GetAppEnvEncryptPubKeyParameters<T>) => Promise<GetAppEnvEncryptPubKeyReturnType<T>>;
export declare const safeGetAppEnvEncryptPubKey: <T extends z.ZodSchema | false | undefined = undefined>(client: Client, payload: GetAppEnvEncryptPubKeyRequest, parameters?: GetAppEnvEncryptPubKeyParameters<T>) => Promise<SafeResult<GetAppEnvEncryptPubKeyReturnType<T>>>;
//# sourceMappingURL=get_app_env_encrypt_pubkey.d.ts.map