@phala/cloud 0.2.3 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/actions/apps/get_app_attestation.d.ts +963 -0
  2. package/dist/actions/apps/get_app_device_allowlist.d.ts +108 -0
  3. package/dist/actions/blockchains/abi/dstack_app.d.ts +101 -0
  4. package/dist/actions/blockchains/add_device.d.ts +62 -0
  5. package/dist/actions/blockchains/check_device_allowed.d.ts +44 -0
  6. package/dist/actions/blockchains/get_allowed_devices.d.ts +65 -0
  7. package/dist/actions/blockchains/remove_device.d.ts +62 -0
  8. package/dist/actions/blockchains/set_allow_any_device.d.ts +62 -0
  9. package/dist/actions/cvms/get_cvm_attestation.d.ts +220 -0
  10. package/dist/actions/cvms/get_cvm_compose_file.d.ts +16 -0
  11. package/dist/actions/cvms/get_cvm_user_config.d.ts +92 -0
  12. package/dist/actions/cvms/provision_cvm.d.ts +26 -1
  13. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +18 -0
  14. package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +93 -0
  15. package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +194 -0
  16. package/dist/actions/cvms/replicate_cvm.d.ts +126 -0
  17. package/dist/actions/cvms/restart_cvm.d.ts +2 -2
  18. package/dist/actions/cvms/shutdown_cvm.d.ts +2 -2
  19. package/dist/actions/cvms/start_cvm.d.ts +2 -2
  20. package/dist/actions/cvms/stop_cvm.d.ts +2 -2
  21. package/dist/actions/index.d.ts +20 -1
  22. package/dist/actions/kms/get_kms_onchain_detail.d.ts +688 -0
  23. package/dist/actions/os_images/get_os_images.d.ts +217 -0
  24. package/dist/actions/ssh_keys/create_ssh_key.d.ts +104 -0
  25. package/dist/actions/ssh_keys/delete_ssh_key.d.ts +65 -0
  26. package/dist/actions/ssh_keys/import_github_profile.d.ts +93 -0
  27. package/dist/actions/ssh_keys/list_ssh_keys.d.ts +101 -0
  28. package/dist/actions/ssh_keys/sync_github_ssh_keys.d.ts +78 -0
  29. package/dist/actions/workspaces/get_workspace.d.ts +2 -0
  30. package/dist/actions/workspaces/list_workspaces.d.ts +18 -0
  31. package/dist/create-client.d.ts +106 -0
  32. package/dist/index.js +1500 -322
  33. package/dist/index.mjs +1441 -320
  34. package/dist/types/app_compose.d.ts +5 -0
  35. package/dist/types/app_info_v20260121.d.ts +68 -0
  36. package/dist/types/cvm_info.d.ts +3 -3
  37. package/dist/types/cvm_info_v20260121.d.ts +22 -0
  38. package/package.json +1 -1
@@ -0,0 +1,108 @@
1
+ import { z } from "zod";
2
+ import { type Client, type SafeResult } from "../../client";
3
+ import type { ApiVersion } from "../../types/client";
4
+ declare const DeviceAllowlistItemSchema: z.ZodObject<{
5
+ device_id: z.ZodString;
6
+ node_name: z.ZodNullable<z.ZodString>;
7
+ cvm_ids: z.ZodArray<z.ZodNumber, "many">;
8
+ allowed_onchain: z.ZodBoolean;
9
+ status: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ status: string;
12
+ device_id: string;
13
+ node_name: string | null;
14
+ cvm_ids: number[];
15
+ allowed_onchain: boolean;
16
+ }, {
17
+ status: string;
18
+ device_id: string;
19
+ node_name: string | null;
20
+ cvm_ids: number[];
21
+ allowed_onchain: boolean;
22
+ }>;
23
+ declare const DeviceAllowlistResponseSchema: z.ZodObject<{
24
+ is_onchain_kms: z.ZodBoolean;
25
+ allow_any_device: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
26
+ chain_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
+ app_contract_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ devices: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
29
+ device_id: z.ZodString;
30
+ node_name: z.ZodNullable<z.ZodString>;
31
+ cvm_ids: z.ZodArray<z.ZodNumber, "many">;
32
+ allowed_onchain: z.ZodBoolean;
33
+ status: z.ZodString;
34
+ }, "strip", z.ZodTypeAny, {
35
+ status: string;
36
+ device_id: string;
37
+ node_name: string | null;
38
+ cvm_ids: number[];
39
+ allowed_onchain: boolean;
40
+ }, {
41
+ status: string;
42
+ device_id: string;
43
+ node_name: string | null;
44
+ cvm_ids: number[];
45
+ allowed_onchain: boolean;
46
+ }>, "many">>>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ devices: {
49
+ status: string;
50
+ device_id: string;
51
+ node_name: string | null;
52
+ cvm_ids: number[];
53
+ allowed_onchain: boolean;
54
+ }[];
55
+ is_onchain_kms: boolean;
56
+ chain_id?: number | null | undefined;
57
+ allow_any_device?: boolean | null | undefined;
58
+ app_contract_address?: string | null | undefined;
59
+ }, {
60
+ is_onchain_kms: boolean;
61
+ chain_id?: number | null | undefined;
62
+ devices?: {
63
+ status: string;
64
+ device_id: string;
65
+ node_name: string | null;
66
+ cvm_ids: number[];
67
+ allowed_onchain: boolean;
68
+ }[] | undefined;
69
+ allow_any_device?: boolean | null | undefined;
70
+ app_contract_address?: string | null | undefined;
71
+ }>;
72
+ export type DeviceAllowlistItem = z.infer<typeof DeviceAllowlistItemSchema>;
73
+ export type DeviceAllowlistResponse = z.infer<typeof DeviceAllowlistResponseSchema>;
74
+ export declare const GetAppDeviceAllowlistRequestSchema: z.ZodObject<{
75
+ appId: z.ZodString;
76
+ }, "strict", z.ZodTypeAny, {
77
+ appId: string;
78
+ }, {
79
+ appId: string;
80
+ }>;
81
+ export type GetAppDeviceAllowlistRequest = z.infer<typeof GetAppDeviceAllowlistRequestSchema>;
82
+ /**
83
+ * Get device allowlist status for an app's CVMs
84
+ *
85
+ * For on-chain KMS apps, queries the blockchain in real-time to check
86
+ * which devices are registered in the app contract.
87
+ *
88
+ * @param client - The API client
89
+ * @param request - Request parameters
90
+ * @param request.appId - The hex app identifier
91
+ * @returns Device allowlist status
92
+ *
93
+ * @example
94
+ * ```typescript
95
+ * const allowlist = await getAppDeviceAllowlist(client, { appId: "abc123" })
96
+ * if (allowlist.is_onchain_kms) {
97
+ * for (const device of allowlist.devices) {
98
+ * console.log(device.device_id, device.status)
99
+ * }
100
+ * }
101
+ * ```
102
+ */
103
+ export declare function getAppDeviceAllowlist<V extends ApiVersion>(client: Client<V>, request: GetAppDeviceAllowlistRequest): Promise<DeviceAllowlistResponse>;
104
+ /**
105
+ * Safe version of getAppDeviceAllowlist that returns a SafeResult instead of throwing
106
+ */
107
+ export declare function safeGetAppDeviceAllowlist<V extends ApiVersion>(client: Client<V>, request: GetAppDeviceAllowlistRequest): Promise<SafeResult<DeviceAllowlistResponse>>;
108
+ export {};
@@ -0,0 +1,101 @@
1
+ /**
2
+ * DstackApp contract ABI — subset used by SDK blockchain actions.
3
+ *
4
+ * The full ABI lives in teehouse-ui; we only include the functions and events
5
+ * that the SDK needs for device management and read-only queries.
6
+ */
7
+ export declare const dstackAppAbi: readonly [{
8
+ readonly inputs: readonly [{
9
+ readonly internalType: "bytes32";
10
+ readonly name: "deviceId";
11
+ readonly type: "bytes32";
12
+ }];
13
+ readonly name: "addDevice";
14
+ readonly outputs: readonly [];
15
+ readonly stateMutability: "nonpayable";
16
+ readonly type: "function";
17
+ }, {
18
+ readonly inputs: readonly [{
19
+ readonly internalType: "bytes32";
20
+ readonly name: "deviceId";
21
+ readonly type: "bytes32";
22
+ }];
23
+ readonly name: "removeDevice";
24
+ readonly outputs: readonly [];
25
+ readonly stateMutability: "nonpayable";
26
+ readonly type: "function";
27
+ }, {
28
+ readonly inputs: readonly [{
29
+ readonly internalType: "bool";
30
+ readonly name: "_allowAnyDevice";
31
+ readonly type: "bool";
32
+ }];
33
+ readonly name: "setAllowAnyDevice";
34
+ readonly outputs: readonly [];
35
+ readonly stateMutability: "nonpayable";
36
+ readonly type: "function";
37
+ }, {
38
+ readonly inputs: readonly [{
39
+ readonly internalType: "bytes32";
40
+ readonly name: "";
41
+ readonly type: "bytes32";
42
+ }];
43
+ readonly name: "allowedDeviceIds";
44
+ readonly outputs: readonly [{
45
+ readonly internalType: "bool";
46
+ readonly name: "";
47
+ readonly type: "bool";
48
+ }];
49
+ readonly stateMutability: "view";
50
+ readonly type: "function";
51
+ }, {
52
+ readonly inputs: readonly [];
53
+ readonly name: "allowAnyDevice";
54
+ readonly outputs: readonly [{
55
+ readonly internalType: "bool";
56
+ readonly name: "";
57
+ readonly type: "bool";
58
+ }];
59
+ readonly stateMutability: "view";
60
+ readonly type: "function";
61
+ }, {
62
+ readonly inputs: readonly [];
63
+ readonly name: "owner";
64
+ readonly outputs: readonly [{
65
+ readonly internalType: "address";
66
+ readonly name: "";
67
+ readonly type: "address";
68
+ }];
69
+ readonly stateMutability: "view";
70
+ readonly type: "function";
71
+ }, {
72
+ readonly anonymous: false;
73
+ readonly inputs: readonly [{
74
+ readonly indexed: false;
75
+ readonly internalType: "bytes32";
76
+ readonly name: "deviceId";
77
+ readonly type: "bytes32";
78
+ }];
79
+ readonly name: "DeviceAdded";
80
+ readonly type: "event";
81
+ }, {
82
+ readonly anonymous: false;
83
+ readonly inputs: readonly [{
84
+ readonly indexed: false;
85
+ readonly internalType: "bytes32";
86
+ readonly name: "deviceId";
87
+ readonly type: "bytes32";
88
+ }];
89
+ readonly name: "DeviceRemoved";
90
+ readonly type: "event";
91
+ }, {
92
+ readonly anonymous: false;
93
+ readonly inputs: readonly [{
94
+ readonly indexed: false;
95
+ readonly internalType: "bool";
96
+ readonly name: "allowAny";
97
+ readonly type: "bool";
98
+ }];
99
+ readonly name: "AllowAnyDeviceSet";
100
+ readonly type: "event";
101
+ }];
@@ -0,0 +1,62 @@
1
+ import { z } from "zod";
2
+ import { type Chain, type Address, type Hash, type Hex, type TransactionReceipt, type PublicClient, type WalletClient } from "viem";
3
+ import { type TransactionTracker, type RetryOptions } from "../../utils";
4
+ export type AddDeviceRequest = {
5
+ chain?: Chain;
6
+ rpcUrl?: string;
7
+ appAddress: Address;
8
+ deviceId: string;
9
+ privateKey?: Hex;
10
+ walletClient?: WalletClient;
11
+ publicClient?: PublicClient;
12
+ skipPrerequisiteChecks?: boolean;
13
+ minBalance?: string;
14
+ timeout?: number;
15
+ retryOptions?: RetryOptions;
16
+ signal?: AbortSignal;
17
+ onTransactionStateChange?: (state: TransactionTracker["status"]) => void;
18
+ onTransactionSubmitted?: (hash: Hash) => void;
19
+ onTransactionConfirmed?: (receipt: TransactionReceipt) => void;
20
+ };
21
+ export declare const AddDeviceSchema: z.ZodObject<{
22
+ appAddress: z.ZodString;
23
+ deviceId: z.ZodString;
24
+ transactionHash: z.ZodString;
25
+ blockNumber: z.ZodOptional<z.ZodBigInt>;
26
+ gasUsed: z.ZodOptional<z.ZodBigInt>;
27
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
28
+ appAddress: z.ZodString;
29
+ deviceId: z.ZodString;
30
+ transactionHash: z.ZodString;
31
+ blockNumber: z.ZodOptional<z.ZodBigInt>;
32
+ gasUsed: z.ZodOptional<z.ZodBigInt>;
33
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
34
+ appAddress: z.ZodString;
35
+ deviceId: z.ZodString;
36
+ transactionHash: z.ZodString;
37
+ blockNumber: z.ZodOptional<z.ZodBigInt>;
38
+ gasUsed: z.ZodOptional<z.ZodBigInt>;
39
+ }, z.ZodTypeAny, "passthrough">>;
40
+ export type AddDevice = z.infer<typeof AddDeviceSchema>;
41
+ export type AddDeviceParameters<T = undefined> = T extends z.ZodTypeAny ? {
42
+ schema: T;
43
+ } : T extends false ? {
44
+ schema: false;
45
+ } : {
46
+ schema?: z.ZodTypeAny | false;
47
+ };
48
+ export type AddDeviceReturnType<T = undefined> = T extends z.ZodTypeAny ? z.infer<T> : T extends false ? unknown : AddDevice;
49
+ export declare function addDevice<T extends z.ZodTypeAny | false | undefined = undefined>(request: AddDeviceRequest, parameters?: AddDeviceParameters<T>): Promise<AddDeviceReturnType<T>>;
50
+ export type SafeAddDeviceResult<T = undefined> = {
51
+ success: true;
52
+ data: AddDeviceReturnType<T>;
53
+ } | {
54
+ success: false;
55
+ error: {
56
+ isRequestError: true;
57
+ message: string;
58
+ status: number;
59
+ detail: string;
60
+ };
61
+ };
62
+ export declare function safeAddDevice<T extends z.ZodTypeAny | false | undefined = undefined>(request: AddDeviceRequest, parameters?: AddDeviceParameters<T>): Promise<SafeAddDeviceResult<T>>;
@@ -0,0 +1,44 @@
1
+ import { type Chain, type Address, type PublicClient } from "viem";
2
+ /**
3
+ * Check whether a specific device is allowed by a DstackApp contract.
4
+ *
5
+ * Reads the `allowAnyDevice()` flag first; if false, checks
6
+ * `allowedDeviceIds(deviceId)`.
7
+ *
8
+ * @group Actions
9
+ * @since 0.6.0
10
+ *
11
+ * ## Usage
12
+ *
13
+ * ```typescript
14
+ * import { checkDeviceAllowed } from '@phala/cloud'
15
+ * import { base } from 'viem/chains'
16
+ *
17
+ * const allowed = await checkDeviceAllowed({
18
+ * chain: base,
19
+ * appAddress: "0x1234...abcd",
20
+ * deviceId: "0xaabbccdd...",
21
+ * })
22
+ * console.log(allowed) // true or false
23
+ * ```
24
+ */
25
+ export type CheckDeviceAllowedRequest = {
26
+ chain?: Chain;
27
+ rpcUrl?: string;
28
+ appAddress: Address;
29
+ deviceId: string;
30
+ publicClient?: PublicClient;
31
+ };
32
+ export declare function checkDeviceAllowed(request: CheckDeviceAllowedRequest): Promise<boolean>;
33
+ export declare function safeCheckDeviceAllowed(request: CheckDeviceAllowedRequest): Promise<{
34
+ success: true;
35
+ data: boolean;
36
+ } | {
37
+ success: false;
38
+ error: {
39
+ isRequestError: true;
40
+ message: string;
41
+ status: number;
42
+ detail: string;
43
+ };
44
+ }>;
@@ -0,0 +1,65 @@
1
+ import { z } from "zod";
2
+ import { type Chain, type Address, type PublicClient } from "viem";
3
+ /**
4
+ * Query the on-chain device allowlist for a DstackApp contract.
5
+ *
6
+ * Checks a list of candidate device IDs against the contract's
7
+ * `allowedDeviceIds` mapping and returns the ones that are allowed.
8
+ *
9
+ * @group Actions
10
+ * @since 0.6.0
11
+ *
12
+ * ## Usage
13
+ *
14
+ * ```typescript
15
+ * import { getAllowedDevices } from '@phala/cloud'
16
+ * import { base } from 'viem/chains'
17
+ *
18
+ * const result = await getAllowedDevices({
19
+ * chain: base,
20
+ * appAddress: "0x1234...abcd",
21
+ * deviceIds: ["0xaa...", "0xbb..."],
22
+ * })
23
+ * console.log(result.devices) // ["0xaa..."]
24
+ * console.log(result.allowAnyDevice) // false
25
+ * ```
26
+ */
27
+ export type GetAllowedDevicesRequest = {
28
+ chain?: Chain;
29
+ rpcUrl?: string;
30
+ appAddress: Address;
31
+ /** Candidate device IDs to check against the on-chain allowlist. */
32
+ deviceIds: string[];
33
+ publicClient?: PublicClient;
34
+ };
35
+ export declare const GetAllowedDevicesSchema: z.ZodObject<{
36
+ appAddress: z.ZodString;
37
+ owner: z.ZodString;
38
+ allowAnyDevice: z.ZodBoolean;
39
+ devices: z.ZodArray<z.ZodString, "many">;
40
+ }, "strip", z.ZodTypeAny, {
41
+ devices: string[];
42
+ allowAnyDevice: boolean;
43
+ owner: string;
44
+ appAddress: string;
45
+ }, {
46
+ devices: string[];
47
+ allowAnyDevice: boolean;
48
+ owner: string;
49
+ appAddress: string;
50
+ }>;
51
+ export type GetAllowedDevices = z.infer<typeof GetAllowedDevicesSchema>;
52
+ export declare function getAllowedDevices(request: GetAllowedDevicesRequest): Promise<GetAllowedDevices>;
53
+ export type SafeGetAllowedDevicesResult = {
54
+ success: true;
55
+ data: GetAllowedDevices;
56
+ } | {
57
+ success: false;
58
+ error: {
59
+ isRequestError: true;
60
+ message: string;
61
+ status: number;
62
+ detail: string;
63
+ };
64
+ };
65
+ export declare function safeGetAllowedDevices(request: GetAllowedDevicesRequest): Promise<SafeGetAllowedDevicesResult>;
@@ -0,0 +1,62 @@
1
+ import { z } from "zod";
2
+ import { type Chain, type Address, type Hash, type Hex, type TransactionReceipt, type PublicClient, type WalletClient } from "viem";
3
+ import { type TransactionTracker, type RetryOptions } from "../../utils";
4
+ export type RemoveDeviceRequest = {
5
+ chain?: Chain;
6
+ rpcUrl?: string;
7
+ appAddress: Address;
8
+ deviceId: string;
9
+ privateKey?: Hex;
10
+ walletClient?: WalletClient;
11
+ publicClient?: PublicClient;
12
+ skipPrerequisiteChecks?: boolean;
13
+ minBalance?: string;
14
+ timeout?: number;
15
+ retryOptions?: RetryOptions;
16
+ signal?: AbortSignal;
17
+ onTransactionStateChange?: (state: TransactionTracker["status"]) => void;
18
+ onTransactionSubmitted?: (hash: Hash) => void;
19
+ onTransactionConfirmed?: (receipt: TransactionReceipt) => void;
20
+ };
21
+ export declare const RemoveDeviceSchema: z.ZodObject<{
22
+ appAddress: z.ZodString;
23
+ deviceId: z.ZodString;
24
+ transactionHash: z.ZodString;
25
+ blockNumber: z.ZodOptional<z.ZodBigInt>;
26
+ gasUsed: z.ZodOptional<z.ZodBigInt>;
27
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
28
+ appAddress: z.ZodString;
29
+ deviceId: z.ZodString;
30
+ transactionHash: z.ZodString;
31
+ blockNumber: z.ZodOptional<z.ZodBigInt>;
32
+ gasUsed: z.ZodOptional<z.ZodBigInt>;
33
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
34
+ appAddress: z.ZodString;
35
+ deviceId: z.ZodString;
36
+ transactionHash: z.ZodString;
37
+ blockNumber: z.ZodOptional<z.ZodBigInt>;
38
+ gasUsed: z.ZodOptional<z.ZodBigInt>;
39
+ }, z.ZodTypeAny, "passthrough">>;
40
+ export type RemoveDevice = z.infer<typeof RemoveDeviceSchema>;
41
+ export type RemoveDeviceParameters<T = undefined> = T extends z.ZodTypeAny ? {
42
+ schema: T;
43
+ } : T extends false ? {
44
+ schema: false;
45
+ } : {
46
+ schema?: z.ZodTypeAny | false;
47
+ };
48
+ export type RemoveDeviceReturnType<T = undefined> = T extends z.ZodTypeAny ? z.infer<T> : T extends false ? unknown : RemoveDevice;
49
+ export declare function removeDevice<T extends z.ZodTypeAny | false | undefined = undefined>(request: RemoveDeviceRequest, parameters?: RemoveDeviceParameters<T>): Promise<RemoveDeviceReturnType<T>>;
50
+ export type SafeRemoveDeviceResult<T = undefined> = {
51
+ success: true;
52
+ data: RemoveDeviceReturnType<T>;
53
+ } | {
54
+ success: false;
55
+ error: {
56
+ isRequestError: true;
57
+ message: string;
58
+ status: number;
59
+ detail: string;
60
+ };
61
+ };
62
+ export declare function safeRemoveDevice<T extends z.ZodTypeAny | false | undefined = undefined>(request: RemoveDeviceRequest, parameters?: RemoveDeviceParameters<T>): Promise<SafeRemoveDeviceResult<T>>;
@@ -0,0 +1,62 @@
1
+ import { z } from "zod";
2
+ import { type Chain, type Address, type Hash, type Hex, type TransactionReceipt, type PublicClient, type WalletClient } from "viem";
3
+ import { type TransactionTracker, type RetryOptions } from "../../utils";
4
+ export type SetAllowAnyDeviceRequest = {
5
+ chain?: Chain;
6
+ rpcUrl?: string;
7
+ appAddress: Address;
8
+ allow: boolean;
9
+ privateKey?: Hex;
10
+ walletClient?: WalletClient;
11
+ publicClient?: PublicClient;
12
+ skipPrerequisiteChecks?: boolean;
13
+ minBalance?: string;
14
+ timeout?: number;
15
+ retryOptions?: RetryOptions;
16
+ signal?: AbortSignal;
17
+ onTransactionStateChange?: (state: TransactionTracker["status"]) => void;
18
+ onTransactionSubmitted?: (hash: Hash) => void;
19
+ onTransactionConfirmed?: (receipt: TransactionReceipt) => void;
20
+ };
21
+ export declare const SetAllowAnyDeviceSchema: z.ZodObject<{
22
+ appAddress: z.ZodString;
23
+ allow: z.ZodBoolean;
24
+ transactionHash: z.ZodString;
25
+ blockNumber: z.ZodOptional<z.ZodBigInt>;
26
+ gasUsed: z.ZodOptional<z.ZodBigInt>;
27
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
28
+ appAddress: z.ZodString;
29
+ allow: z.ZodBoolean;
30
+ transactionHash: z.ZodString;
31
+ blockNumber: z.ZodOptional<z.ZodBigInt>;
32
+ gasUsed: z.ZodOptional<z.ZodBigInt>;
33
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
34
+ appAddress: z.ZodString;
35
+ allow: z.ZodBoolean;
36
+ transactionHash: z.ZodString;
37
+ blockNumber: z.ZodOptional<z.ZodBigInt>;
38
+ gasUsed: z.ZodOptional<z.ZodBigInt>;
39
+ }, z.ZodTypeAny, "passthrough">>;
40
+ export type SetAllowAnyDevice = z.infer<typeof SetAllowAnyDeviceSchema>;
41
+ export type SetAllowAnyDeviceParameters<T = undefined> = T extends z.ZodTypeAny ? {
42
+ schema: T;
43
+ } : T extends false ? {
44
+ schema: false;
45
+ } : {
46
+ schema?: z.ZodTypeAny | false;
47
+ };
48
+ export type SetAllowAnyDeviceReturnType<T = undefined> = T extends z.ZodTypeAny ? z.infer<T> : T extends false ? unknown : SetAllowAnyDevice;
49
+ export declare function setAllowAnyDevice<T extends z.ZodTypeAny | false | undefined = undefined>(request: SetAllowAnyDeviceRequest, parameters?: SetAllowAnyDeviceParameters<T>): Promise<SetAllowAnyDeviceReturnType<T>>;
50
+ export type SafeSetAllowAnyDeviceResult<T = undefined> = {
51
+ success: true;
52
+ data: SetAllowAnyDeviceReturnType<T>;
53
+ } | {
54
+ success: false;
55
+ error: {
56
+ isRequestError: true;
57
+ message: string;
58
+ status: number;
59
+ detail: string;
60
+ };
61
+ };
62
+ export declare function safeSetAllowAnyDevice<T extends z.ZodTypeAny | false | undefined = undefined>(request: SetAllowAnyDeviceRequest, parameters?: SetAllowAnyDeviceParameters<T>): Promise<SafeSetAllowAnyDeviceResult<T>>;