@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.
Files changed (112) hide show
  1. package/README.md +20 -0
  2. package/dist/actions/api_tokens/revoke_current_api_token.d.ts +47 -0
  3. package/dist/actions/apps/app_launch_token.d.ts +121 -0
  4. package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +17 -311
  5. package/dist/actions/apps/check_app_is_allowed.d.ts +20 -32
  6. package/dist/actions/apps/create_app_instance.d.ts +43 -63
  7. package/dist/actions/apps/get_app_attestation.d.ts +116 -772
  8. package/dist/actions/apps/get_app_cvms.d.ts +1 -5
  9. package/dist/actions/apps/get_app_device_allowlist.d.ts +26 -272
  10. package/dist/actions/apps/get_app_filter_options.d.ts +8 -24
  11. package/dist/actions/apps/get_app_info.d.ts +1 -5
  12. package/dist/actions/apps/get_app_list.d.ts +2 -26
  13. package/dist/actions/apps/get_app_revision_detail.d.ts +1 -9
  14. package/dist/actions/apps/get_app_revisions.d.ts +1 -9
  15. package/dist/actions/blockchains/add_compose_hash.d.ts +1 -13
  16. package/dist/actions/blockchains/add_device.d.ts +1 -13
  17. package/dist/actions/blockchains/deploy_app_auth.d.ts +3 -95
  18. package/dist/actions/blockchains/get_allowed_devices.d.ts +2 -12
  19. package/dist/actions/blockchains/remove_device.d.ts +1 -13
  20. package/dist/actions/blockchains/set_allow_any_device.d.ts +1 -13
  21. package/dist/actions/cvms/check_cvm_is_allowed.d.ts +13 -138
  22. package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +9 -45
  23. package/dist/actions/cvms/commit_cvm_provision.d.ts +32 -416
  24. package/dist/actions/cvms/commit_cvm_update.d.ts +70 -41
  25. package/dist/actions/cvms/confirm_cvm_patch.d.ts +62 -35
  26. package/dist/actions/cvms/cvm_annotations.d.ts +152 -0
  27. package/dist/actions/cvms/delete_cvm.d.ts +8 -14
  28. package/dist/actions/cvms/get_available_os_images.d.ts +70 -111
  29. package/dist/actions/cvms/get_cvm_attestation.d.ts +34 -392
  30. package/dist/actions/cvms/get_cvm_compose_file.d.ts +426 -512
  31. package/dist/actions/cvms/get_cvm_containers_stats.d.ts +25 -91
  32. package/dist/actions/cvms/get_cvm_docker_compose.d.ts +8 -14
  33. package/dist/actions/cvms/get_cvm_info.d.ts +6 -12
  34. package/dist/actions/cvms/get_cvm_init_scripts.d.ts +87 -0
  35. package/dist/actions/cvms/get_cvm_list.d.ts +9 -17
  36. package/dist/actions/cvms/get_cvm_network.d.ts +18 -50
  37. package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +8 -14
  38. package/dist/actions/cvms/get_cvm_state.d.ts +11 -37
  39. package/dist/actions/cvms/get_cvm_stats.d.ts +23 -149
  40. package/dist/actions/cvms/get_cvm_status_batch.d.ts +97 -64
  41. package/dist/actions/cvms/get_cvm_user_config.d.ts +13 -24
  42. package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +9 -27
  43. package/dist/actions/cvms/patch_cvm.d.ts +666 -287
  44. package/dist/actions/cvms/provision_cvm.d.ts +339 -725
  45. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +584 -777
  46. package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +74 -131
  47. package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +77 -297
  48. package/dist/actions/cvms/replicate_cvm.d.ts +7 -21
  49. package/dist/actions/cvms/restart_cvm.d.ts +3 -18
  50. package/dist/actions/cvms/shutdown_cvm.d.ts +6 -12
  51. package/dist/actions/cvms/start_cvm.d.ts +6 -12
  52. package/dist/actions/cvms/stop_cvm.d.ts +6 -12
  53. package/dist/actions/cvms/update_cvm_envs.d.ts +144 -195
  54. package/dist/actions/cvms/update_cvm_resources.d.ts +93 -37
  55. package/dist/actions/cvms/update_cvm_visibility.d.ts +90 -130
  56. package/dist/actions/cvms/update_docker_compose.d.ts +143 -187
  57. package/dist/actions/cvms/update_os_image.d.ts +55 -28
  58. package/dist/actions/cvms/update_prelaunch_script.d.ts +143 -187
  59. package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +126 -185
  60. package/dist/actions/cvms/watch_cvm_state.d.ts +5 -15
  61. package/dist/actions/get_available_nodes.d.ts +201 -823
  62. package/dist/actions/get_cvm_create_resources.d.ts +150 -2150
  63. package/dist/actions/index.d.ts +14 -4
  64. package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +11 -23
  65. package/dist/actions/kms/get_kms_contract.d.ts +57 -0
  66. package/dist/actions/kms/get_kms_info.d.ts +3 -7
  67. package/dist/actions/kms/get_kms_list.d.ts +43 -82
  68. package/dist/actions/kms/get_kms_onchain_detail.d.ts +72 -616
  69. package/dist/actions/kms/list_kms_contract_nodes.d.ts +66 -0
  70. package/dist/actions/kms/list_kms_contracts.d.ts +98 -0
  71. package/dist/actions/kms/next_app_ids.d.ts +5 -25
  72. package/dist/actions/list-instance-types.d.ts +77 -257
  73. package/dist/actions/os_images/get_os_images.d.ts +38 -152
  74. package/dist/actions/ssh_keys/create_ssh_key.d.ts +11 -17
  75. package/dist/actions/ssh_keys/delete_ssh_key.d.ts +3 -7
  76. package/dist/actions/ssh_keys/get_cvm_ssh_keys.d.ts +113 -0
  77. package/dist/actions/ssh_keys/import_github_profile.d.ts +7 -21
  78. package/dist/actions/ssh_keys/list_ssh_keys.d.ts +2 -50
  79. package/dist/actions/ssh_keys/sync_github_ssh_keys.d.ts +8 -20
  80. package/dist/actions/ssh_keys/update_cvm_ssh_keys.d.ts +140 -0
  81. package/dist/actions/workspaces/get_workspace.d.ts +32 -24
  82. package/dist/actions/workspaces/get_workspace_nodes.d.ts +56 -182
  83. package/dist/actions/workspaces/get_workspace_quotas.d.ts +107 -1021
  84. package/dist/actions/workspaces/list_workspaces.d.ts +69 -245
  85. package/dist/client.d.ts +27 -5
  86. package/dist/create-client.d.ts +1820 -1
  87. package/dist/credentials/current_user_v20251028.d.ts +1 -17
  88. package/dist/credentials/current_user_v20260121.d.ts +22 -227
  89. package/dist/index.d.ts +1 -2
  90. package/dist/index.js +5454 -4389
  91. package/dist/index.mjs +5396 -4395
  92. package/dist/types/app_compose.d.ts +116 -184
  93. package/dist/types/app_info_v20251028.d.ts +29 -1030
  94. package/dist/types/app_info_v20260121.d.ts +686 -6832
  95. package/dist/types/app_revision.d.ts +15 -371
  96. package/dist/types/client.d.ts +18 -2
  97. package/dist/types/common.d.ts +6 -0
  98. package/dist/types/cvm_id.d.ts +12 -57
  99. package/dist/types/cvm_info.d.ts +33 -460
  100. package/dist/types/cvm_info_v20251028.d.ts +102 -800
  101. package/dist/types/cvm_info_v20260121.d.ts +411 -2347
  102. package/dist/types/kms_contract.d.ts +34 -0
  103. package/dist/types/kms_info.d.ts +34 -60
  104. package/dist/types/version-mappings.d.ts +6 -6
  105. package/dist/utils/define-action.d.ts +4 -4
  106. package/dist/utils/error_codes.d.ts +1 -0
  107. package/dist/utils/errors.d.ts +34 -37
  108. package/dist/utils/get_compose_hash.d.ts +59 -4
  109. package/dist/utils/get_mr_config_id.d.ts +146 -0
  110. package/dist/utils/index.d.ts +3 -2
  111. package/dist/utils/placement-request.d.ts +3 -0
  112. package/package.json +4 -4
@@ -0,0 +1,140 @@
1
+ import { z } from "zod";
2
+ export declare const UpdateCvmSshKeysRequestSchema: z.ZodObject<{
3
+ id: z.ZodOptional<z.ZodString>;
4
+ uuid: z.ZodOptional<z.ZodString>;
5
+ app_id: z.ZodOptional<z.ZodString>;
6
+ instance_id: z.ZodOptional<z.ZodString>;
7
+ name: z.ZodOptional<z.ZodString>;
8
+ ssh_key_ids: z.ZodArray<z.ZodString>;
9
+ usernames: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ apply_now: z.ZodOptional<z.ZodBoolean>;
11
+ }, z.core.$strip>;
12
+ export type UpdateCvmSshKeysRequest = z.input<typeof UpdateCvmSshKeysRequestSchema>;
13
+ /**
14
+ * Replace the SSH keys a CVM authorizes.
15
+ *
16
+ * `ssh_key_ids` is the replacement set. Optional `usernames` are resolved
17
+ * server-side to that member's keys and unioned into the set. Keys take
18
+ * effect at the next power-on, or immediately when `apply_now` restarts the CVM.
19
+ *
20
+ * @example
21
+ * ```typescript
22
+ * import { createClient, updateCvmSshKeys } from '@phala/cloud'
23
+ *
24
+ * const client = createClient({ apiKey: 'your-api-key' })
25
+ * const result = await updateCvmSshKeys(client, {
26
+ * id: 'app_123',
27
+ * ssh_key_ids: ['sshkey_abc'],
28
+ * usernames: ['alice'],
29
+ * apply_now: false,
30
+ * })
31
+ * ```
32
+ *
33
+ * ## Safe Version
34
+ *
35
+ * ```typescript
36
+ * const result = await safeUpdateCvmSshKeys(client, {
37
+ * id: 'app_123',
38
+ * ssh_key_ids: ['sshkey_abc'],
39
+ * })
40
+ * if (!result.success) {
41
+ * console.error(result.error.message)
42
+ * }
43
+ * ```
44
+ */
45
+ declare const updateCvmSshKeys: {
46
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
47
+ ssh_key_ids: string[];
48
+ id?: string | undefined;
49
+ uuid?: string | undefined;
50
+ app_id?: string | undefined;
51
+ instance_id?: string | undefined;
52
+ name?: string | undefined;
53
+ usernames?: string[] | undefined;
54
+ apply_now?: boolean | undefined;
55
+ }): Promise<{
56
+ keys: {
57
+ id: string;
58
+ owner_user_id: string;
59
+ owner_username: string;
60
+ added_by_user_id: string;
61
+ name: string;
62
+ public_key: string;
63
+ fingerprint: string;
64
+ key_type: string;
65
+ }[];
66
+ restart_required: boolean;
67
+ }>;
68
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
69
+ ssh_key_ids: string[];
70
+ id?: string | undefined;
71
+ uuid?: string | undefined;
72
+ app_id?: string | undefined;
73
+ instance_id?: string | undefined;
74
+ name?: string | undefined;
75
+ usernames?: string[] | undefined;
76
+ apply_now?: boolean | undefined;
77
+ }, parameters: {
78
+ schema: T;
79
+ }): Promise<z.core.output<T>>;
80
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
81
+ ssh_key_ids: string[];
82
+ id?: string | undefined;
83
+ uuid?: string | undefined;
84
+ app_id?: string | undefined;
85
+ instance_id?: string | undefined;
86
+ name?: string | undefined;
87
+ usernames?: string[] | undefined;
88
+ apply_now?: boolean | undefined;
89
+ }, parameters: {
90
+ schema: false;
91
+ }): Promise<unknown>;
92
+ }, safeUpdateCvmSshKeys: {
93
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
94
+ ssh_key_ids: string[];
95
+ id?: string | undefined;
96
+ uuid?: string | undefined;
97
+ app_id?: string | undefined;
98
+ instance_id?: string | undefined;
99
+ name?: string | undefined;
100
+ usernames?: string[] | undefined;
101
+ apply_now?: boolean | undefined;
102
+ }): Promise<import("../..").SafeResult<{
103
+ keys: {
104
+ id: string;
105
+ owner_user_id: string;
106
+ owner_username: string;
107
+ added_by_user_id: string;
108
+ name: string;
109
+ public_key: string;
110
+ fingerprint: string;
111
+ key_type: string;
112
+ }[];
113
+ restart_required: boolean;
114
+ }>>;
115
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
116
+ ssh_key_ids: string[];
117
+ id?: string | undefined;
118
+ uuid?: string | undefined;
119
+ app_id?: string | undefined;
120
+ instance_id?: string | undefined;
121
+ name?: string | undefined;
122
+ usernames?: string[] | undefined;
123
+ apply_now?: boolean | undefined;
124
+ }, parameters: {
125
+ schema: T;
126
+ }): Promise<import("../..").SafeResult<z.core.output<T>>>;
127
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
128
+ ssh_key_ids: string[];
129
+ id?: string | undefined;
130
+ uuid?: string | undefined;
131
+ app_id?: string | undefined;
132
+ instance_id?: string | undefined;
133
+ name?: string | undefined;
134
+ usernames?: string[] | undefined;
135
+ apply_now?: boolean | undefined;
136
+ }, parameters: {
137
+ schema: false;
138
+ }): Promise<import("../..").SafeResult<unknown>>;
139
+ };
140
+ export { updateCvmSshKeys, safeUpdateCvmSshKeys };
@@ -64,38 +64,46 @@ import { type Client } from "../../client";
64
64
  * ```
65
65
  */
66
66
  declare const getWorkspace: {
67
- (client: Client<import("../..").ApiVersion>, params: string): Promise<z.objectOutputType<{
68
- id: z.ZodString;
69
- name: z.ZodString;
70
- slug: z.ZodNullable<z.ZodString>;
71
- avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
- tier: z.ZodString;
73
- role: z.ZodString;
74
- is_default: z.ZodBoolean;
75
- created_at: z.ZodString;
76
- confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
77
- }, z.ZodTypeAny, "passthrough">>;
67
+ (client: Client<import("../..").ApiVersion>, params: string): Promise<{
68
+ [x: string]: unknown;
69
+ id: string;
70
+ name: string;
71
+ slug: string | null;
72
+ tier: string;
73
+ role: string;
74
+ is_default: boolean;
75
+ created_at: string;
76
+ billing_status: "active" | "suspended" | "abandoned";
77
+ avatar_url?: string | null | undefined;
78
+ description?: string | null | undefined;
79
+ confidential_models_enabled?: boolean | undefined;
80
+ suspended_at?: string | null | undefined;
81
+ }>;
78
82
  <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: string, parameters: {
79
83
  schema: T;
80
- }): Promise<z.TypeOf<T>>;
84
+ }): Promise<z.core.output<T>>;
81
85
  (client: Client<import("../..").ApiVersion>, params: string, parameters: {
82
86
  schema: false;
83
87
  }): Promise<unknown>;
84
88
  }, safeGetWorkspace: {
85
- (client: Client<import("../..").ApiVersion>, params: string): Promise<import("../..").SafeResult<z.objectOutputType<{
86
- id: z.ZodString;
87
- name: z.ZodString;
88
- slug: z.ZodNullable<z.ZodString>;
89
- avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
- tier: z.ZodString;
91
- role: z.ZodString;
92
- is_default: z.ZodBoolean;
93
- created_at: z.ZodString;
94
- confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
95
- }, z.ZodTypeAny, "passthrough">>>;
89
+ (client: Client<import("../..").ApiVersion>, params: string): Promise<import("../..").SafeResult<{
90
+ [x: string]: unknown;
91
+ id: string;
92
+ name: string;
93
+ slug: string | null;
94
+ tier: string;
95
+ role: string;
96
+ is_default: boolean;
97
+ created_at: string;
98
+ billing_status: "active" | "suspended" | "abandoned";
99
+ avatar_url?: string | null | undefined;
100
+ description?: string | null | undefined;
101
+ confidential_models_enabled?: boolean | undefined;
102
+ suspended_at?: string | null | undefined;
103
+ }>>;
96
104
  <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: string, parameters: {
97
105
  schema: T;
98
- }): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
106
+ }): Promise<import("../..").SafeResult<z.core.output<T>>>;
99
107
  (client: Client<import("../..").ApiVersion>, params: string, parameters: {
100
108
  schema: false;
101
109
  }): Promise<import("../..").SafeResult<unknown>>;
@@ -69,56 +69,30 @@ export declare const NodeRefSchema: z.ZodObject<{
69
69
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
70
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
71
  device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ device_ids: z.ZodDefault<z.ZodArray<z.ZodObject<{
73
+ device_id: z.ZodString;
74
+ algorithm_version: z.ZodString;
75
+ enabled: z.ZodBoolean;
76
+ }, z.core.$strip>>>;
72
77
  ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
78
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
79
  version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
- }, "strip", z.ZodTypeAny, {
76
- object_type: "node";
77
- status?: string | null | undefined;
78
- name?: string | null | undefined;
79
- version?: string | null | undefined;
80
- id?: number | null | undefined;
81
- device_id?: string | null | undefined;
82
- region?: string | null | undefined;
83
- ppid?: string | null | undefined;
84
- }, {
85
- object_type: "node";
86
- status?: string | null | undefined;
87
- name?: string | null | undefined;
88
- version?: string | null | undefined;
89
- id?: number | null | undefined;
90
- device_id?: string | null | undefined;
91
- region?: string | null | undefined;
92
- ppid?: string | null | undefined;
93
- }>;
80
+ }, z.core.$strip>;
94
81
  export declare const NodeInfoSchema: z.ZodObject<{
95
82
  object_type: z.ZodLiteral<"node">;
96
83
  id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
97
84
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
85
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
86
  device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
+ device_ids: z.ZodDefault<z.ZodArray<z.ZodObject<{
88
+ device_id: z.ZodString;
89
+ algorithm_version: z.ZodString;
90
+ enabled: z.ZodBoolean;
91
+ }, z.core.$strip>>>;
100
92
  ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
93
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
94
  version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
- }, "strip", z.ZodTypeAny, {
104
- object_type: "node";
105
- status?: string | null | undefined;
106
- name?: string | null | undefined;
107
- version?: string | null | undefined;
108
- id?: number | null | undefined;
109
- device_id?: string | null | undefined;
110
- region?: string | null | undefined;
111
- ppid?: string | null | undefined;
112
- }, {
113
- object_type: "node";
114
- status?: string | null | undefined;
115
- name?: string | null | undefined;
116
- version?: string | null | undefined;
117
- id?: number | null | undefined;
118
- device_id?: string | null | undefined;
119
- region?: string | null | undefined;
120
- ppid?: string | null | undefined;
121
- }>;
95
+ }, z.core.$strip>;
122
96
  export declare const GetWorkspaceNodesSchema: z.ZodObject<{
123
97
  items: z.ZodArray<z.ZodObject<{
124
98
  object_type: z.ZodLiteral<"node">;
@@ -126,99 +100,21 @@ export declare const GetWorkspaceNodesSchema: z.ZodObject<{
126
100
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
101
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
128
102
  device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ device_ids: z.ZodDefault<z.ZodArray<z.ZodObject<{
104
+ device_id: z.ZodString;
105
+ algorithm_version: z.ZodString;
106
+ enabled: z.ZodBoolean;
107
+ }, z.core.$strip>>>;
129
108
  ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
130
109
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
110
  version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
- }, "strip", z.ZodTypeAny, {
133
- object_type: "node";
134
- status?: string | null | undefined;
135
- name?: string | null | undefined;
136
- version?: string | null | undefined;
137
- id?: number | null | undefined;
138
- device_id?: string | null | undefined;
139
- region?: string | null | undefined;
140
- ppid?: string | null | undefined;
141
- }, {
142
- object_type: "node";
143
- status?: string | null | undefined;
144
- name?: string | null | undefined;
145
- version?: string | null | undefined;
146
- id?: number | null | undefined;
147
- device_id?: string | null | undefined;
148
- region?: string | null | undefined;
149
- ppid?: string | null | undefined;
150
- }>, "many">;
111
+ node: z.ZodString;
112
+ }, z.core.$strip>>;
151
113
  total: z.ZodNumber;
152
114
  page: z.ZodNumber;
153
115
  page_size: z.ZodNumber;
154
116
  pages: z.ZodNumber;
155
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
156
- items: z.ZodArray<z.ZodObject<{
157
- object_type: z.ZodLiteral<"node">;
158
- id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
159
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
- region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
- device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
- ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
- status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
- version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
- }, "strip", z.ZodTypeAny, {
166
- object_type: "node";
167
- status?: string | null | undefined;
168
- name?: string | null | undefined;
169
- version?: string | null | undefined;
170
- id?: number | null | undefined;
171
- device_id?: string | null | undefined;
172
- region?: string | null | undefined;
173
- ppid?: string | null | undefined;
174
- }, {
175
- object_type: "node";
176
- status?: string | null | undefined;
177
- name?: string | null | undefined;
178
- version?: string | null | undefined;
179
- id?: number | null | undefined;
180
- device_id?: string | null | undefined;
181
- region?: string | null | undefined;
182
- ppid?: string | null | undefined;
183
- }>, "many">;
184
- total: z.ZodNumber;
185
- page: z.ZodNumber;
186
- page_size: z.ZodNumber;
187
- pages: z.ZodNumber;
188
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
189
- items: z.ZodArray<z.ZodObject<{
190
- object_type: z.ZodLiteral<"node">;
191
- id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
192
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
- region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
- device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
195
- ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
- status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
- version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
198
- }, "strip", z.ZodTypeAny, {
199
- object_type: "node";
200
- status?: string | null | undefined;
201
- name?: string | null | undefined;
202
- version?: string | null | undefined;
203
- id?: number | null | undefined;
204
- device_id?: string | null | undefined;
205
- region?: string | null | undefined;
206
- ppid?: string | null | undefined;
207
- }, {
208
- object_type: "node";
209
- status?: string | null | undefined;
210
- name?: string | null | undefined;
211
- version?: string | null | undefined;
212
- id?: number | null | undefined;
213
- device_id?: string | null | undefined;
214
- region?: string | null | undefined;
215
- ppid?: string | null | undefined;
216
- }>, "many">;
217
- total: z.ZodNumber;
218
- page: z.ZodNumber;
219
- page_size: z.ZodNumber;
220
- pages: z.ZodNumber;
221
- }, z.ZodTypeAny, "passthrough">>;
117
+ }, z.core.$loose>;
222
118
  export type NodeRef = z.infer<typeof NodeRefSchema>;
223
119
  export type NodeInfo = NodeRef;
224
120
  export type GetWorkspaceNodes = z.infer<typeof GetWorkspaceNodesSchema>;
@@ -228,84 +124,62 @@ export type GetWorkspaceNodesRequest = {
228
124
  pageSize?: number;
229
125
  };
230
126
  declare const getWorkspaceNodes: {
231
- (client: Client<import("../..").ApiVersion>, params: GetWorkspaceNodesRequest): Promise<z.objectOutputType<{
232
- items: z.ZodArray<z.ZodObject<{
233
- object_type: z.ZodLiteral<"node">;
234
- id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
235
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
236
- region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
237
- device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
238
- ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
239
- status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
240
- version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
241
- }, "strip", z.ZodTypeAny, {
127
+ (client: Client<import("../..").ApiVersion>, params: GetWorkspaceNodesRequest): Promise<{
128
+ [x: string]: unknown;
129
+ items: {
242
130
  object_type: "node";
243
- status?: string | null | undefined;
244
- name?: string | null | undefined;
245
- version?: string | null | undefined;
131
+ device_ids: {
132
+ device_id: string;
133
+ algorithm_version: string;
134
+ enabled: boolean;
135
+ }[];
136
+ node: string;
246
137
  id?: number | null | undefined;
247
- device_id?: string | null | undefined;
138
+ name?: string | null | undefined;
248
139
  region?: string | null | undefined;
140
+ device_id?: string | null | undefined;
249
141
  ppid?: string | null | undefined;
250
- }, {
251
- object_type: "node";
252
142
  status?: string | null | undefined;
253
- name?: string | null | undefined;
254
143
  version?: string | null | undefined;
255
- id?: number | null | undefined;
256
- device_id?: string | null | undefined;
257
- region?: string | null | undefined;
258
- ppid?: string | null | undefined;
259
- }>, "many">;
260
- total: z.ZodNumber;
261
- page: z.ZodNumber;
262
- page_size: z.ZodNumber;
263
- pages: z.ZodNumber;
264
- }, z.ZodTypeAny, "passthrough">>;
144
+ }[];
145
+ total: number;
146
+ page: number;
147
+ page_size: number;
148
+ pages: number;
149
+ }>;
265
150
  <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: GetWorkspaceNodesRequest, parameters: {
266
151
  schema: T;
267
- }): Promise<z.TypeOf<T>>;
152
+ }): Promise<z.core.output<T>>;
268
153
  (client: Client<import("../..").ApiVersion>, params: GetWorkspaceNodesRequest, parameters: {
269
154
  schema: false;
270
155
  }): Promise<unknown>;
271
156
  }, safeGetWorkspaceNodes: {
272
- (client: Client<import("../..").ApiVersion>, params: GetWorkspaceNodesRequest): Promise<import("../..").SafeResult<z.objectOutputType<{
273
- items: z.ZodArray<z.ZodObject<{
274
- object_type: z.ZodLiteral<"node">;
275
- id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
276
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
- region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
278
- device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
279
- ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
280
- status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
281
- version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
282
- }, "strip", z.ZodTypeAny, {
157
+ (client: Client<import("../..").ApiVersion>, params: GetWorkspaceNodesRequest): Promise<import("../..").SafeResult<{
158
+ [x: string]: unknown;
159
+ items: {
283
160
  object_type: "node";
284
- status?: string | null | undefined;
285
- name?: string | null | undefined;
286
- version?: string | null | undefined;
161
+ device_ids: {
162
+ device_id: string;
163
+ algorithm_version: string;
164
+ enabled: boolean;
165
+ }[];
166
+ node: string;
287
167
  id?: number | null | undefined;
288
- device_id?: string | null | undefined;
168
+ name?: string | null | undefined;
289
169
  region?: string | null | undefined;
170
+ device_id?: string | null | undefined;
290
171
  ppid?: string | null | undefined;
291
- }, {
292
- object_type: "node";
293
172
  status?: string | null | undefined;
294
- name?: string | null | undefined;
295
173
  version?: string | null | undefined;
296
- id?: number | null | undefined;
297
- device_id?: string | null | undefined;
298
- region?: string | null | undefined;
299
- ppid?: string | null | undefined;
300
- }>, "many">;
301
- total: z.ZodNumber;
302
- page: z.ZodNumber;
303
- page_size: z.ZodNumber;
304
- pages: z.ZodNumber;
305
- }, z.ZodTypeAny, "passthrough">>>;
174
+ }[];
175
+ total: number;
176
+ page: number;
177
+ page_size: number;
178
+ pages: number;
179
+ }>>;
306
180
  <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: GetWorkspaceNodesRequest, parameters: {
307
181
  schema: T;
308
- }): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
182
+ }): Promise<import("../..").SafeResult<z.core.output<T>>>;
309
183
  (client: Client<import("../..").ApiVersion>, params: GetWorkspaceNodesRequest, parameters: {
310
184
  schema: false;
311
185
  }): Promise<import("../..").SafeResult<unknown>>;