@phala/cloud 0.2.1 → 0.2.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.
@@ -16,7 +16,7 @@ export { getKmsList, safeGetKmsList, GetKmsListSchema, GetKmsListRequestSchema,
16
16
  export { nextAppIds, safeNextAppIds, NextAppIdsSchema, NextAppIdsRequestSchema, type NextAppIdsRequest, type NextAppIds, } from "./kms/next_app_ids";
17
17
  export { listWorkspaces, safeListWorkspaces, WorkspaceResponseSchema, ListWorkspacesSchema, PaginationMetadataSchema, type WorkspaceResponse, type ListWorkspaces, type PaginationMetadata, type ListWorkspacesRequest, } from "./workspaces/list_workspaces";
18
18
  export { getWorkspace, safeGetWorkspace, } from "./workspaces/get_workspace";
19
- export { getWorkspaceNodes, safeGetWorkspaceNodes, NodeInfoSchema, GetWorkspaceNodesSchema, type NodeInfo, type GetWorkspaceNodes, type GetWorkspaceNodesRequest, } from "./workspaces/get_workspace_nodes";
19
+ export { getWorkspaceNodes, safeGetWorkspaceNodes, GetWorkspaceNodesSchema, type GetWorkspaceNodes, type GetWorkspaceNodesRequest, NodeInfoSchema, type NodeInfo, } from "./workspaces/get_workspace_nodes";
20
20
  export { getWorkspaceQuotas, safeGetWorkspaceQuotas, QuotaMetricSchema, WorkspaceQuotasSchema, WorkspaceReservedGpuQuotaSchema, GetWorkspaceQuotasSchema, type QuotaMetric, type WorkspaceQuotas, type WorkspaceReservedGpuQuota, type GetWorkspaceQuotas, type GetWorkspaceQuotasRequest, } from "./workspaces/get_workspace_quotas";
21
21
  export { listAllInstanceTypeFamilies, safeListAllInstanceTypeFamilies, listFamilyInstanceTypes, safeListFamilyInstanceTypes, AllFamiliesResponseSchema, FamilyInstanceTypesResponseSchema, FamilyGroupSchema, InstanceTypeSchema, ListFamilyInstanceTypesRequestSchema, type AllFamiliesResponse, type FamilyInstanceTypesResponse, type FamilyGroup, type InstanceType, type ListFamilyInstanceTypesRequest, } from "./list-instance-types";
22
22
  export { startCvm, safeStartCvm, StartCvmRequestSchema, type StartCvmRequest, } from "./cvms/start_cvm";
@@ -70,6 +70,7 @@ declare const getWorkspace: {
70
70
  slug: z.ZodNullable<z.ZodString>;
71
71
  tier: z.ZodString;
72
72
  role: z.ZodString;
73
+ is_default: z.ZodBoolean;
73
74
  created_at: z.ZodString;
74
75
  }, z.ZodTypeAny, "passthrough">>;
75
76
  <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: string, parameters: {
@@ -85,6 +86,7 @@ declare const getWorkspace: {
85
86
  slug: z.ZodNullable<z.ZodString>;
86
87
  tier: z.ZodString;
87
88
  role: z.ZodString;
89
+ is_default: z.ZodBoolean;
88
90
  created_at: z.ZodString;
89
91
  }, z.ZodTypeAny, "passthrough">>>;
90
92
  <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: string, parameters: {
@@ -63,123 +63,164 @@ import { type Client } from "../../client";
63
63
  * }
64
64
  * ```
65
65
  */
66
+ export declare const NodeRefSchema: z.ZodObject<{
67
+ object_type: z.ZodLiteral<"node">;
68
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
69
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ 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
+ region?: string | null | undefined;
82
+ device_id?: 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
+ region?: string | null | undefined;
91
+ device_id?: string | null | undefined;
92
+ ppid?: string | null | undefined;
93
+ }>;
66
94
  export declare const NodeInfoSchema: z.ZodObject<{
67
- id: z.ZodNullable<z.ZodNumber>;
68
- name: z.ZodNullable<z.ZodString>;
69
- region: z.ZodNullable<z.ZodString>;
70
- device_id: z.ZodNullable<z.ZodString>;
71
- ppid: z.ZodNullable<z.ZodString>;
72
- status: z.ZodNullable<z.ZodString>;
73
- version: z.ZodNullable<z.ZodString>;
74
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
75
- id: z.ZodNullable<z.ZodNumber>;
76
- name: z.ZodNullable<z.ZodString>;
77
- region: z.ZodNullable<z.ZodString>;
78
- device_id: z.ZodNullable<z.ZodString>;
79
- ppid: z.ZodNullable<z.ZodString>;
80
- status: z.ZodNullable<z.ZodString>;
81
- version: z.ZodNullable<z.ZodString>;
82
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
83
- id: z.ZodNullable<z.ZodNumber>;
84
- name: z.ZodNullable<z.ZodString>;
85
- region: z.ZodNullable<z.ZodString>;
86
- device_id: z.ZodNullable<z.ZodString>;
87
- ppid: z.ZodNullable<z.ZodString>;
88
- status: z.ZodNullable<z.ZodString>;
89
- version: z.ZodNullable<z.ZodString>;
90
- }, z.ZodTypeAny, "passthrough">>;
95
+ object_type: z.ZodLiteral<"node">;
96
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
97
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
+ 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
+ region?: string | null | undefined;
110
+ device_id?: 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
+ region?: string | null | undefined;
119
+ device_id?: string | null | undefined;
120
+ ppid?: string | null | undefined;
121
+ }>;
91
122
  export declare const GetWorkspaceNodesSchema: z.ZodObject<{
92
123
  items: z.ZodArray<z.ZodObject<{
93
- id: z.ZodNullable<z.ZodNumber>;
94
- name: z.ZodNullable<z.ZodString>;
95
- region: z.ZodNullable<z.ZodString>;
96
- device_id: z.ZodNullable<z.ZodString>;
97
- ppid: z.ZodNullable<z.ZodString>;
98
- status: z.ZodNullable<z.ZodString>;
99
- version: z.ZodNullable<z.ZodString>;
100
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
101
- id: z.ZodNullable<z.ZodNumber>;
102
- name: z.ZodNullable<z.ZodString>;
103
- region: z.ZodNullable<z.ZodString>;
104
- device_id: z.ZodNullable<z.ZodString>;
105
- ppid: z.ZodNullable<z.ZodString>;
106
- status: z.ZodNullable<z.ZodString>;
107
- version: z.ZodNullable<z.ZodString>;
108
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
109
- id: z.ZodNullable<z.ZodNumber>;
110
- name: z.ZodNullable<z.ZodString>;
111
- region: z.ZodNullable<z.ZodString>;
112
- device_id: z.ZodNullable<z.ZodString>;
113
- ppid: z.ZodNullable<z.ZodString>;
114
- status: z.ZodNullable<z.ZodString>;
115
- version: z.ZodNullable<z.ZodString>;
116
- }, z.ZodTypeAny, "passthrough">>, "many">;
124
+ object_type: z.ZodLiteral<"node">;
125
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
126
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
128
+ device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
130
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
+ 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
+ region?: string | null | undefined;
139
+ device_id?: 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
+ region?: string | null | undefined;
148
+ device_id?: string | null | undefined;
149
+ ppid?: string | null | undefined;
150
+ }>, "many">;
117
151
  total: z.ZodNumber;
118
152
  page: z.ZodNumber;
119
153
  page_size: z.ZodNumber;
120
154
  pages: z.ZodNumber;
121
155
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
122
156
  items: z.ZodArray<z.ZodObject<{
123
- id: z.ZodNullable<z.ZodNumber>;
124
- name: z.ZodNullable<z.ZodString>;
125
- region: z.ZodNullable<z.ZodString>;
126
- device_id: z.ZodNullable<z.ZodString>;
127
- ppid: z.ZodNullable<z.ZodString>;
128
- status: z.ZodNullable<z.ZodString>;
129
- version: z.ZodNullable<z.ZodString>;
130
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
131
- id: z.ZodNullable<z.ZodNumber>;
132
- name: z.ZodNullable<z.ZodString>;
133
- region: z.ZodNullable<z.ZodString>;
134
- device_id: z.ZodNullable<z.ZodString>;
135
- ppid: z.ZodNullable<z.ZodString>;
136
- status: z.ZodNullable<z.ZodString>;
137
- version: z.ZodNullable<z.ZodString>;
138
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
139
- id: z.ZodNullable<z.ZodNumber>;
140
- name: z.ZodNullable<z.ZodString>;
141
- region: z.ZodNullable<z.ZodString>;
142
- device_id: z.ZodNullable<z.ZodString>;
143
- ppid: z.ZodNullable<z.ZodString>;
144
- status: z.ZodNullable<z.ZodString>;
145
- version: z.ZodNullable<z.ZodString>;
146
- }, z.ZodTypeAny, "passthrough">>, "many">;
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
+ region?: string | null | undefined;
172
+ device_id?: 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
+ region?: string | null | undefined;
181
+ device_id?: string | null | undefined;
182
+ ppid?: string | null | undefined;
183
+ }>, "many">;
147
184
  total: z.ZodNumber;
148
185
  page: z.ZodNumber;
149
186
  page_size: z.ZodNumber;
150
187
  pages: z.ZodNumber;
151
188
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
152
189
  items: z.ZodArray<z.ZodObject<{
153
- id: z.ZodNullable<z.ZodNumber>;
154
- name: z.ZodNullable<z.ZodString>;
155
- region: z.ZodNullable<z.ZodString>;
156
- device_id: z.ZodNullable<z.ZodString>;
157
- ppid: z.ZodNullable<z.ZodString>;
158
- status: z.ZodNullable<z.ZodString>;
159
- version: z.ZodNullable<z.ZodString>;
160
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
161
- id: z.ZodNullable<z.ZodNumber>;
162
- name: z.ZodNullable<z.ZodString>;
163
- region: z.ZodNullable<z.ZodString>;
164
- device_id: z.ZodNullable<z.ZodString>;
165
- ppid: z.ZodNullable<z.ZodString>;
166
- status: z.ZodNullable<z.ZodString>;
167
- version: z.ZodNullable<z.ZodString>;
168
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
169
- id: z.ZodNullable<z.ZodNumber>;
170
- name: z.ZodNullable<z.ZodString>;
171
- region: z.ZodNullable<z.ZodString>;
172
- device_id: z.ZodNullable<z.ZodString>;
173
- ppid: z.ZodNullable<z.ZodString>;
174
- status: z.ZodNullable<z.ZodString>;
175
- version: z.ZodNullable<z.ZodString>;
176
- }, z.ZodTypeAny, "passthrough">>, "many">;
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
+ region?: string | null | undefined;
205
+ device_id?: 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
+ region?: string | null | undefined;
214
+ device_id?: string | null | undefined;
215
+ ppid?: string | null | undefined;
216
+ }>, "many">;
177
217
  total: z.ZodNumber;
178
218
  page: z.ZodNumber;
179
219
  page_size: z.ZodNumber;
180
220
  pages: z.ZodNumber;
181
221
  }, z.ZodTypeAny, "passthrough">>;
182
- export type NodeInfo = z.infer<typeof NodeInfoSchema>;
222
+ export type NodeRef = z.infer<typeof NodeRefSchema>;
223
+ export type NodeInfo = NodeRef;
183
224
  export type GetWorkspaceNodes = z.infer<typeof GetWorkspaceNodesSchema>;
184
225
  export type GetWorkspaceNodesRequest = {
185
226
  teamSlug: string;
@@ -189,30 +230,33 @@ export type GetWorkspaceNodesRequest = {
189
230
  declare const getWorkspaceNodes: {
190
231
  (client: Client<import("../..").ApiVersion>, params: GetWorkspaceNodesRequest): Promise<z.objectOutputType<{
191
232
  items: z.ZodArray<z.ZodObject<{
192
- id: z.ZodNullable<z.ZodNumber>;
193
- name: z.ZodNullable<z.ZodString>;
194
- region: z.ZodNullable<z.ZodString>;
195
- device_id: z.ZodNullable<z.ZodString>;
196
- ppid: z.ZodNullable<z.ZodString>;
197
- status: z.ZodNullable<z.ZodString>;
198
- version: z.ZodNullable<z.ZodString>;
199
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
200
- id: z.ZodNullable<z.ZodNumber>;
201
- name: z.ZodNullable<z.ZodString>;
202
- region: z.ZodNullable<z.ZodString>;
203
- device_id: z.ZodNullable<z.ZodString>;
204
- ppid: z.ZodNullable<z.ZodString>;
205
- status: z.ZodNullable<z.ZodString>;
206
- version: z.ZodNullable<z.ZodString>;
207
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
208
- id: z.ZodNullable<z.ZodNumber>;
209
- name: z.ZodNullable<z.ZodString>;
210
- region: z.ZodNullable<z.ZodString>;
211
- device_id: z.ZodNullable<z.ZodString>;
212
- ppid: z.ZodNullable<z.ZodString>;
213
- status: z.ZodNullable<z.ZodString>;
214
- version: z.ZodNullable<z.ZodString>;
215
- }, z.ZodTypeAny, "passthrough">>, "many">;
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, {
242
+ object_type: "node";
243
+ status?: string | null | undefined;
244
+ name?: string | null | undefined;
245
+ version?: string | null | undefined;
246
+ id?: number | null | undefined;
247
+ region?: string | null | undefined;
248
+ device_id?: string | null | undefined;
249
+ ppid?: string | null | undefined;
250
+ }, {
251
+ object_type: "node";
252
+ status?: string | null | undefined;
253
+ name?: string | null | undefined;
254
+ version?: string | null | undefined;
255
+ id?: number | null | undefined;
256
+ region?: string | null | undefined;
257
+ device_id?: string | null | undefined;
258
+ ppid?: string | null | undefined;
259
+ }>, "many">;
216
260
  total: z.ZodNumber;
217
261
  page: z.ZodNumber;
218
262
  page_size: z.ZodNumber;
@@ -227,30 +271,33 @@ declare const getWorkspaceNodes: {
227
271
  }, safeGetWorkspaceNodes: {
228
272
  (client: Client<import("../..").ApiVersion>, params: GetWorkspaceNodesRequest): Promise<import("../..").SafeResult<z.objectOutputType<{
229
273
  items: z.ZodArray<z.ZodObject<{
230
- id: z.ZodNullable<z.ZodNumber>;
231
- name: z.ZodNullable<z.ZodString>;
232
- region: z.ZodNullable<z.ZodString>;
233
- device_id: z.ZodNullable<z.ZodString>;
234
- ppid: z.ZodNullable<z.ZodString>;
235
- status: z.ZodNullable<z.ZodString>;
236
- version: z.ZodNullable<z.ZodString>;
237
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
238
- id: z.ZodNullable<z.ZodNumber>;
239
- name: z.ZodNullable<z.ZodString>;
240
- region: z.ZodNullable<z.ZodString>;
241
- device_id: z.ZodNullable<z.ZodString>;
242
- ppid: z.ZodNullable<z.ZodString>;
243
- status: z.ZodNullable<z.ZodString>;
244
- version: z.ZodNullable<z.ZodString>;
245
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
246
- id: z.ZodNullable<z.ZodNumber>;
247
- name: z.ZodNullable<z.ZodString>;
248
- region: z.ZodNullable<z.ZodString>;
249
- device_id: z.ZodNullable<z.ZodString>;
250
- ppid: z.ZodNullable<z.ZodString>;
251
- status: z.ZodNullable<z.ZodString>;
252
- version: z.ZodNullable<z.ZodString>;
253
- }, z.ZodTypeAny, "passthrough">>, "many">;
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, {
283
+ object_type: "node";
284
+ status?: string | null | undefined;
285
+ name?: string | null | undefined;
286
+ version?: string | null | undefined;
287
+ id?: number | null | undefined;
288
+ region?: string | null | undefined;
289
+ device_id?: string | null | undefined;
290
+ ppid?: string | null | undefined;
291
+ }, {
292
+ object_type: "node";
293
+ status?: string | null | undefined;
294
+ name?: string | null | undefined;
295
+ version?: string | null | undefined;
296
+ id?: number | null | undefined;
297
+ region?: string | null | undefined;
298
+ device_id?: string | null | undefined;
299
+ ppid?: string | null | undefined;
300
+ }>, "many">;
254
301
  total: z.ZodNumber;
255
302
  page: z.ZodNumber;
256
303
  page_size: z.ZodNumber;
@@ -67,6 +67,7 @@ export declare const WorkspaceResponseSchema: z.ZodObject<{
67
67
  slug: z.ZodNullable<z.ZodString>;
68
68
  tier: z.ZodString;
69
69
  role: z.ZodString;
70
+ is_default: z.ZodBoolean;
70
71
  created_at: z.ZodString;
71
72
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
72
73
  id: z.ZodString;
@@ -74,6 +75,7 @@ export declare const WorkspaceResponseSchema: z.ZodObject<{
74
75
  slug: z.ZodNullable<z.ZodString>;
75
76
  tier: z.ZodString;
76
77
  role: z.ZodString;
78
+ is_default: z.ZodBoolean;
77
79
  created_at: z.ZodString;
78
80
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
79
81
  id: z.ZodString;
@@ -81,6 +83,7 @@ export declare const WorkspaceResponseSchema: z.ZodObject<{
81
83
  slug: z.ZodNullable<z.ZodString>;
82
84
  tier: z.ZodString;
83
85
  role: z.ZodString;
86
+ is_default: z.ZodBoolean;
84
87
  created_at: z.ZodString;
85
88
  }, z.ZodTypeAny, "passthrough">>;
86
89
  export declare const PaginationMetadataSchema: z.ZodObject<{
@@ -103,6 +106,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
103
106
  slug: z.ZodNullable<z.ZodString>;
104
107
  tier: z.ZodString;
105
108
  role: z.ZodString;
109
+ is_default: z.ZodBoolean;
106
110
  created_at: z.ZodString;
107
111
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
108
112
  id: z.ZodString;
@@ -110,6 +114,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
110
114
  slug: z.ZodNullable<z.ZodString>;
111
115
  tier: z.ZodString;
112
116
  role: z.ZodString;
117
+ is_default: z.ZodBoolean;
113
118
  created_at: z.ZodString;
114
119
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
115
120
  id: z.ZodString;
@@ -117,6 +122,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
117
122
  slug: z.ZodNullable<z.ZodString>;
118
123
  tier: z.ZodString;
119
124
  role: z.ZodString;
125
+ is_default: z.ZodBoolean;
120
126
  created_at: z.ZodString;
121
127
  }, z.ZodTypeAny, "passthrough">>, "many">;
122
128
  pagination: z.ZodObject<{
@@ -139,6 +145,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
139
145
  slug: z.ZodNullable<z.ZodString>;
140
146
  tier: z.ZodString;
141
147
  role: z.ZodString;
148
+ is_default: z.ZodBoolean;
142
149
  created_at: z.ZodString;
143
150
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
144
151
  id: z.ZodString;
@@ -146,6 +153,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
146
153
  slug: z.ZodNullable<z.ZodString>;
147
154
  tier: z.ZodString;
148
155
  role: z.ZodString;
156
+ is_default: z.ZodBoolean;
149
157
  created_at: z.ZodString;
150
158
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
151
159
  id: z.ZodString;
@@ -153,6 +161,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
153
161
  slug: z.ZodNullable<z.ZodString>;
154
162
  tier: z.ZodString;
155
163
  role: z.ZodString;
164
+ is_default: z.ZodBoolean;
156
165
  created_at: z.ZodString;
157
166
  }, z.ZodTypeAny, "passthrough">>, "many">;
158
167
  pagination: z.ZodObject<{
@@ -175,6 +184,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
175
184
  slug: z.ZodNullable<z.ZodString>;
176
185
  tier: z.ZodString;
177
186
  role: z.ZodString;
187
+ is_default: z.ZodBoolean;
178
188
  created_at: z.ZodString;
179
189
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
180
190
  id: z.ZodString;
@@ -182,6 +192,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
182
192
  slug: z.ZodNullable<z.ZodString>;
183
193
  tier: z.ZodString;
184
194
  role: z.ZodString;
195
+ is_default: z.ZodBoolean;
185
196
  created_at: z.ZodString;
186
197
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
187
198
  id: z.ZodString;
@@ -189,6 +200,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
189
200
  slug: z.ZodNullable<z.ZodString>;
190
201
  tier: z.ZodString;
191
202
  role: z.ZodString;
203
+ is_default: z.ZodBoolean;
192
204
  created_at: z.ZodString;
193
205
  }, z.ZodTypeAny, "passthrough">>, "many">;
194
206
  pagination: z.ZodObject<{
@@ -220,6 +232,7 @@ declare const listWorkspaces: {
220
232
  slug: z.ZodNullable<z.ZodString>;
221
233
  tier: z.ZodString;
222
234
  role: z.ZodString;
235
+ is_default: z.ZodBoolean;
223
236
  created_at: z.ZodString;
224
237
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
225
238
  id: z.ZodString;
@@ -227,6 +240,7 @@ declare const listWorkspaces: {
227
240
  slug: z.ZodNullable<z.ZodString>;
228
241
  tier: z.ZodString;
229
242
  role: z.ZodString;
243
+ is_default: z.ZodBoolean;
230
244
  created_at: z.ZodString;
231
245
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
232
246
  id: z.ZodString;
@@ -234,6 +248,7 @@ declare const listWorkspaces: {
234
248
  slug: z.ZodNullable<z.ZodString>;
235
249
  tier: z.ZodString;
236
250
  role: z.ZodString;
251
+ is_default: z.ZodBoolean;
237
252
  created_at: z.ZodString;
238
253
  }, z.ZodTypeAny, "passthrough">>, "many">;
239
254
  pagination: z.ZodObject<{
@@ -264,6 +279,7 @@ declare const listWorkspaces: {
264
279
  slug: z.ZodNullable<z.ZodString>;
265
280
  tier: z.ZodString;
266
281
  role: z.ZodString;
282
+ is_default: z.ZodBoolean;
267
283
  created_at: z.ZodString;
268
284
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
269
285
  id: z.ZodString;
@@ -271,6 +287,7 @@ declare const listWorkspaces: {
271
287
  slug: z.ZodNullable<z.ZodString>;
272
288
  tier: z.ZodString;
273
289
  role: z.ZodString;
290
+ is_default: z.ZodBoolean;
274
291
  created_at: z.ZodString;
275
292
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
276
293
  id: z.ZodString;
@@ -278,6 +295,7 @@ declare const listWorkspaces: {
278
295
  slug: z.ZodNullable<z.ZodString>;
279
296
  tier: z.ZodString;
280
297
  role: z.ZodString;
298
+ is_default: z.ZodBoolean;
281
299
  created_at: z.ZodString;
282
300
  }, z.ZodTypeAny, "passthrough">>, "many">;
283
301
  pagination: z.ZodObject<{
package/dist/index.js CHANGED
@@ -123,6 +123,7 @@ __export(index_exports, {
123
123
  NextAppIdsRequestSchema: () => NextAppIdsRequestSchema,
124
124
  NextAppIdsSchema: () => NextAppIdsSchema,
125
125
  NodeInfoSchema: () => NodeInfoSchema,
126
+ NodeRefSchema: () => NodeRefSchema,
126
127
  OSImageVariantSchema: () => OSImageVariantSchema,
127
128
  PaginatedCvmInfosV20251028Schema: () => PaginatedCvmInfosV20251028Schema,
128
129
  PaginatedCvmInfosV20260121Schema: () => PaginatedCvmInfosV20260121Schema,
@@ -672,7 +673,7 @@ var Client = class _Client {
672
673
  constructor(config = {}) {
673
674
  this.emitter = (0, import_mitt.default)();
674
675
  const resolvedApiKey = config.apiKey || process?.env?.PHALA_CLOUD_API_KEY;
675
- const resolvedBaseURL = config.baseURL || process?.env?.PHALA_CLOUD_API_PREFIX || "https://cloud-api.phala.network/api/v1";
676
+ const resolvedBaseURL = config.baseURL || process?.env?.PHALA_CLOUD_API_PREFIX || "https://cloud-api.phala.com/api/v1";
676
677
  const version = config.version && SUPPORTED_API_VERSIONS.includes(config.version) ? config.version : DEFAULT_API_VERSION;
677
678
  this.config = {
678
679
  ...config,
@@ -1372,6 +1373,7 @@ var WorkspaceResponseSchema = import_zod7.z.object({
1372
1373
  slug: import_zod7.z.string().nullable(),
1373
1374
  tier: import_zod7.z.string(),
1374
1375
  role: import_zod7.z.string(),
1376
+ is_default: import_zod7.z.boolean(),
1375
1377
  created_at: import_zod7.z.string()
1376
1378
  }).passthrough();
1377
1379
  var PaginationMetadataSchema = import_zod7.z.object({
@@ -1544,7 +1546,9 @@ var CvmGatewayInfoV20260121Schema = import_zod9.z.object({
1544
1546
  base_domain: import_zod9.z.string().nullable().optional(),
1545
1547
  cname: import_zod9.z.string().nullable().optional()
1546
1548
  });
1547
- var CvmNodeInfoV20260121Schema = import_zod9.z.object({
1549
+ var NodeRefSchema = import_zod9.z.object({
1550
+ object_type: import_zod9.z.literal("node"),
1551
+ id: import_zod9.z.number().int().nullable().optional(),
1548
1552
  name: import_zod9.z.string().nullable().optional(),
1549
1553
  region: import_zod9.z.string().nullable().optional(),
1550
1554
  device_id: import_zod9.z.string().nullable().optional(),
@@ -1552,6 +1556,7 @@ var CvmNodeInfoV20260121Schema = import_zod9.z.object({
1552
1556
  status: import_zod9.z.string().nullable().optional(),
1553
1557
  version: import_zod9.z.string().nullable().optional()
1554
1558
  });
1559
+ var CvmNodeInfoV20260121Schema = NodeRefSchema;
1555
1560
  var CvmInfoV20260121Schema = import_zod9.z.object({
1556
1561
  id: import_zod9.z.string(),
1557
1562
  // hashed CvmId
@@ -1559,7 +1564,7 @@ var CvmInfoV20260121Schema = import_zod9.z.object({
1559
1564
  app_id: import_zod9.z.string().nullable().optional(),
1560
1565
  vm_uuid: import_zod9.z.string().nullable().optional(),
1561
1566
  resource: CvmResourceInfoV20260121Schema,
1562
- node_info: CvmNodeInfoV20260121Schema.nullable().optional(),
1567
+ node_info: NodeRefSchema.nullable().optional(),
1563
1568
  os: CvmOsInfoV20260121Schema.nullable().optional(),
1564
1569
  kms_type: KmsTypeSchema.nullable().optional(),
1565
1570
  kms_info: CvmKmsInfoV20260121Schema.nullable().optional(),
@@ -4131,17 +4136,10 @@ async function safeAddComposeHash(request, parameters) {
4131
4136
 
4132
4137
  // src/actions/workspaces/get_workspace_nodes.ts
4133
4138
  var import_zod43 = require("zod");
4134
- var NodeInfoSchema = import_zod43.z.object({
4135
- id: import_zod43.z.number().nullable(),
4136
- name: import_zod43.z.string().nullable(),
4137
- region: import_zod43.z.string().nullable(),
4138
- device_id: import_zod43.z.string().nullable(),
4139
- ppid: import_zod43.z.string().nullable(),
4140
- status: import_zod43.z.string().nullable(),
4141
- version: import_zod43.z.string().nullable()
4142
- }).passthrough();
4139
+ var NodeRefSchema2 = NodeRefSchema;
4140
+ var NodeInfoSchema = NodeRefSchema2;
4143
4141
  var GetWorkspaceNodesSchema = import_zod43.z.object({
4144
- items: import_zod43.z.array(NodeInfoSchema),
4142
+ items: import_zod43.z.array(NodeRefSchema2),
4145
4143
  total: import_zod43.z.number(),
4146
4144
  page: import_zod43.z.number(),
4147
4145
  page_size: import_zod43.z.number(),
@@ -4698,6 +4696,7 @@ var import_verify_env_encrypt_public_key = require("@phala/dstack-sdk/verify-env
4698
4696
  NextAppIdsRequestSchema,
4699
4697
  NextAppIdsSchema,
4700
4698
  NodeInfoSchema,
4699
+ NodeRefSchema,
4701
4700
  OSImageVariantSchema,
4702
4701
  PaginatedCvmInfosV20251028Schema,
4703
4702
  PaginatedCvmInfosV20260121Schema,