@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.
package/dist/index.mjs CHANGED
@@ -365,7 +365,7 @@ var Client = class _Client {
365
365
  constructor(config = {}) {
366
366
  this.emitter = mitt();
367
367
  const resolvedApiKey = config.apiKey || process?.env?.PHALA_CLOUD_API_KEY;
368
- const resolvedBaseURL = config.baseURL || process?.env?.PHALA_CLOUD_API_PREFIX || "https://cloud-api.phala.network/api/v1";
368
+ const resolvedBaseURL = config.baseURL || process?.env?.PHALA_CLOUD_API_PREFIX || "https://cloud-api.phala.com/api/v1";
369
369
  const version = config.version && SUPPORTED_API_VERSIONS.includes(config.version) ? config.version : DEFAULT_API_VERSION;
370
370
  this.config = {
371
371
  ...config,
@@ -1065,6 +1065,7 @@ var WorkspaceResponseSchema = z7.object({
1065
1065
  slug: z7.string().nullable(),
1066
1066
  tier: z7.string(),
1067
1067
  role: z7.string(),
1068
+ is_default: z7.boolean(),
1068
1069
  created_at: z7.string()
1069
1070
  }).passthrough();
1070
1071
  var PaginationMetadataSchema = z7.object({
@@ -1237,7 +1238,9 @@ var CvmGatewayInfoV20260121Schema = z9.object({
1237
1238
  base_domain: z9.string().nullable().optional(),
1238
1239
  cname: z9.string().nullable().optional()
1239
1240
  });
1240
- var CvmNodeInfoV20260121Schema = z9.object({
1241
+ var NodeRefSchema = z9.object({
1242
+ object_type: z9.literal("node"),
1243
+ id: z9.number().int().nullable().optional(),
1241
1244
  name: z9.string().nullable().optional(),
1242
1245
  region: z9.string().nullable().optional(),
1243
1246
  device_id: z9.string().nullable().optional(),
@@ -1245,6 +1248,7 @@ var CvmNodeInfoV20260121Schema = z9.object({
1245
1248
  status: z9.string().nullable().optional(),
1246
1249
  version: z9.string().nullable().optional()
1247
1250
  });
1251
+ var CvmNodeInfoV20260121Schema = NodeRefSchema;
1248
1252
  var CvmInfoV20260121Schema = z9.object({
1249
1253
  id: z9.string(),
1250
1254
  // hashed CvmId
@@ -1252,7 +1256,7 @@ var CvmInfoV20260121Schema = z9.object({
1252
1256
  app_id: z9.string().nullable().optional(),
1253
1257
  vm_uuid: z9.string().nullable().optional(),
1254
1258
  resource: CvmResourceInfoV20260121Schema,
1255
- node_info: CvmNodeInfoV20260121Schema.nullable().optional(),
1259
+ node_info: NodeRefSchema.nullable().optional(),
1256
1260
  os: CvmOsInfoV20260121Schema.nullable().optional(),
1257
1261
  kms_type: KmsTypeSchema.nullable().optional(),
1258
1262
  kms_info: CvmKmsInfoV20260121Schema.nullable().optional(),
@@ -3841,17 +3845,10 @@ async function safeAddComposeHash(request, parameters) {
3841
3845
 
3842
3846
  // src/actions/workspaces/get_workspace_nodes.ts
3843
3847
  import { z as z43 } from "zod";
3844
- var NodeInfoSchema = z43.object({
3845
- id: z43.number().nullable(),
3846
- name: z43.string().nullable(),
3847
- region: z43.string().nullable(),
3848
- device_id: z43.string().nullable(),
3849
- ppid: z43.string().nullable(),
3850
- status: z43.string().nullable(),
3851
- version: z43.string().nullable()
3852
- }).passthrough();
3848
+ var NodeRefSchema2 = NodeRefSchema;
3849
+ var NodeInfoSchema = NodeRefSchema2;
3853
3850
  var GetWorkspaceNodesSchema = z43.object({
3854
- items: z43.array(NodeInfoSchema),
3851
+ items: z43.array(NodeRefSchema2),
3855
3852
  total: z43.number(),
3856
3853
  page: z43.number(),
3857
3854
  page_size: z43.number(),
@@ -4409,6 +4406,7 @@ export {
4409
4406
  NextAppIdsRequestSchema,
4410
4407
  NextAppIdsSchema,
4411
4408
  NodeInfoSchema,
4409
+ NodeRefSchema,
4412
4410
  OSImageVariantSchema,
4413
4411
  PaginatedCvmInfosV20251028Schema,
4414
4412
  PaginatedCvmInfosV20260121Schema,
@@ -38,6 +38,8 @@ export declare const DstackAppFullResponseV20260121Schema: z.ZodObject<{
38
38
  compute_billing_price?: string | null | undefined;
39
39
  }>;
40
40
  node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
+ object_type: z.ZodLiteral<"node">;
42
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
41
43
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
44
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
45
  device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -45,16 +47,20 @@ export declare const DstackAppFullResponseV20260121Schema: z.ZodObject<{
45
47
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
48
  version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
49
  }, "strip", z.ZodTypeAny, {
50
+ object_type: "node";
48
51
  status?: string | null | undefined;
49
52
  name?: string | null | undefined;
50
53
  version?: string | null | undefined;
54
+ id?: number | null | undefined;
51
55
  region?: string | null | undefined;
52
56
  device_id?: string | null | undefined;
53
57
  ppid?: string | null | undefined;
54
58
  }, {
59
+ object_type: "node";
55
60
  status?: string | null | undefined;
56
61
  name?: string | null | undefined;
57
62
  version?: string | null | undefined;
63
+ id?: number | null | undefined;
58
64
  region?: string | null | undefined;
59
65
  device_id?: string | null | undefined;
60
66
  ppid?: string | null | undefined;
@@ -214,9 +220,11 @@ export declare const DstackAppFullResponseV20260121Schema: z.ZodObject<{
214
220
  public_logs?: boolean | undefined;
215
221
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
216
222
  node_info?: {
223
+ object_type: "node";
217
224
  status?: string | null | undefined;
218
225
  name?: string | null | undefined;
219
226
  version?: string | null | undefined;
227
+ id?: number | null | undefined;
220
228
  region?: string | null | undefined;
221
229
  device_id?: string | null | undefined;
222
230
  ppid?: string | null | undefined;
@@ -285,9 +293,11 @@ export declare const DstackAppFullResponseV20260121Schema: z.ZodObject<{
285
293
  public_logs?: boolean | undefined;
286
294
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
287
295
  node_info?: {
296
+ object_type: "node";
288
297
  status?: string | null | undefined;
289
298
  name?: string | null | undefined;
290
299
  version?: string | null | undefined;
300
+ id?: number | null | undefined;
291
301
  region?: string | null | undefined;
292
302
  device_id?: string | null | undefined;
293
303
  ppid?: string | null | undefined;
@@ -351,6 +361,8 @@ export declare const DstackAppFullResponseV20260121Schema: z.ZodObject<{
351
361
  compute_billing_price?: string | null | undefined;
352
362
  }>;
353
363
  node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
364
+ object_type: z.ZodLiteral<"node">;
365
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
354
366
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
355
367
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
356
368
  device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -358,16 +370,20 @@ export declare const DstackAppFullResponseV20260121Schema: z.ZodObject<{
358
370
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
359
371
  version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
360
372
  }, "strip", z.ZodTypeAny, {
373
+ object_type: "node";
361
374
  status?: string | null | undefined;
362
375
  name?: string | null | undefined;
363
376
  version?: string | null | undefined;
377
+ id?: number | null | undefined;
364
378
  region?: string | null | undefined;
365
379
  device_id?: string | null | undefined;
366
380
  ppid?: string | null | undefined;
367
381
  }, {
382
+ object_type: "node";
368
383
  status?: string | null | undefined;
369
384
  name?: string | null | undefined;
370
385
  version?: string | null | undefined;
386
+ id?: number | null | undefined;
371
387
  region?: string | null | undefined;
372
388
  device_id?: string | null | undefined;
373
389
  ppid?: string | null | undefined;
@@ -527,9 +543,11 @@ export declare const DstackAppFullResponseV20260121Schema: z.ZodObject<{
527
543
  public_logs?: boolean | undefined;
528
544
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
529
545
  node_info?: {
546
+ object_type: "node";
530
547
  status?: string | null | undefined;
531
548
  name?: string | null | undefined;
532
549
  version?: string | null | undefined;
550
+ id?: number | null | undefined;
533
551
  region?: string | null | undefined;
534
552
  device_id?: string | null | undefined;
535
553
  ppid?: string | null | undefined;
@@ -598,9 +616,11 @@ export declare const DstackAppFullResponseV20260121Schema: z.ZodObject<{
598
616
  public_logs?: boolean | undefined;
599
617
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
600
618
  node_info?: {
619
+ object_type: "node";
601
620
  status?: string | null | undefined;
602
621
  name?: string | null | undefined;
603
622
  version?: string | null | undefined;
623
+ id?: number | null | undefined;
604
624
  region?: string | null | undefined;
605
625
  device_id?: string | null | undefined;
606
626
  ppid?: string | null | undefined;
@@ -679,9 +699,11 @@ export declare const DstackAppFullResponseV20260121Schema: z.ZodObject<{
679
699
  public_logs?: boolean | undefined;
680
700
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
681
701
  node_info?: {
702
+ object_type: "node";
682
703
  status?: string | null | undefined;
683
704
  name?: string | null | undefined;
684
705
  version?: string | null | undefined;
706
+ id?: number | null | undefined;
685
707
  region?: string | null | undefined;
686
708
  device_id?: string | null | undefined;
687
709
  ppid?: string | null | undefined;
@@ -755,9 +777,11 @@ export declare const DstackAppFullResponseV20260121Schema: z.ZodObject<{
755
777
  public_logs?: boolean | undefined;
756
778
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
757
779
  node_info?: {
780
+ object_type: "node";
758
781
  status?: string | null | undefined;
759
782
  name?: string | null | undefined;
760
783
  version?: string | null | undefined;
784
+ id?: number | null | undefined;
761
785
  region?: string | null | undefined;
762
786
  device_id?: string | null | undefined;
763
787
  ppid?: string | null | undefined;
@@ -835,9 +859,11 @@ export declare const DstackAppFullResponseV20260121Schema: z.ZodObject<{
835
859
  public_logs?: boolean | undefined;
836
860
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
837
861
  node_info?: {
862
+ object_type: "node";
838
863
  status?: string | null | undefined;
839
864
  name?: string | null | undefined;
840
865
  version?: string | null | undefined;
866
+ id?: number | null | undefined;
841
867
  region?: string | null | undefined;
842
868
  device_id?: string | null | undefined;
843
869
  ppid?: string | null | undefined;
@@ -908,9 +934,11 @@ export declare const DstackAppFullResponseV20260121Schema: z.ZodObject<{
908
934
  public_logs?: boolean | undefined;
909
935
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
910
936
  node_info?: {
937
+ object_type: "node";
911
938
  status?: string | null | undefined;
912
939
  name?: string | null | undefined;
913
940
  version?: string | null | undefined;
941
+ id?: number | null | undefined;
914
942
  region?: string | null | undefined;
915
943
  device_id?: string | null | undefined;
916
944
  ppid?: string | null | undefined;
@@ -1020,6 +1048,8 @@ export declare const DstackAppWithCvmResponseV20260121Schema: z.ZodUnion<[z.ZodO
1020
1048
  compute_billing_price?: string | null | undefined;
1021
1049
  }>;
1022
1050
  node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1051
+ object_type: z.ZodLiteral<"node">;
1052
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1023
1053
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1024
1054
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1025
1055
  device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1027,16 +1057,20 @@ export declare const DstackAppWithCvmResponseV20260121Schema: z.ZodUnion<[z.ZodO
1027
1057
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1028
1058
  version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1029
1059
  }, "strip", z.ZodTypeAny, {
1060
+ object_type: "node";
1030
1061
  status?: string | null | undefined;
1031
1062
  name?: string | null | undefined;
1032
1063
  version?: string | null | undefined;
1064
+ id?: number | null | undefined;
1033
1065
  region?: string | null | undefined;
1034
1066
  device_id?: string | null | undefined;
1035
1067
  ppid?: string | null | undefined;
1036
1068
  }, {
1069
+ object_type: "node";
1037
1070
  status?: string | null | undefined;
1038
1071
  name?: string | null | undefined;
1039
1072
  version?: string | null | undefined;
1073
+ id?: number | null | undefined;
1040
1074
  region?: string | null | undefined;
1041
1075
  device_id?: string | null | undefined;
1042
1076
  ppid?: string | null | undefined;
@@ -1196,9 +1230,11 @@ export declare const DstackAppWithCvmResponseV20260121Schema: z.ZodUnion<[z.ZodO
1196
1230
  public_logs?: boolean | undefined;
1197
1231
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1198
1232
  node_info?: {
1233
+ object_type: "node";
1199
1234
  status?: string | null | undefined;
1200
1235
  name?: string | null | undefined;
1201
1236
  version?: string | null | undefined;
1237
+ id?: number | null | undefined;
1202
1238
  region?: string | null | undefined;
1203
1239
  device_id?: string | null | undefined;
1204
1240
  ppid?: string | null | undefined;
@@ -1267,9 +1303,11 @@ export declare const DstackAppWithCvmResponseV20260121Schema: z.ZodUnion<[z.ZodO
1267
1303
  public_logs?: boolean | undefined;
1268
1304
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1269
1305
  node_info?: {
1306
+ object_type: "node";
1270
1307
  status?: string | null | undefined;
1271
1308
  name?: string | null | undefined;
1272
1309
  version?: string | null | undefined;
1310
+ id?: number | null | undefined;
1273
1311
  region?: string | null | undefined;
1274
1312
  device_id?: string | null | undefined;
1275
1313
  ppid?: string | null | undefined;
@@ -1333,6 +1371,8 @@ export declare const DstackAppWithCvmResponseV20260121Schema: z.ZodUnion<[z.ZodO
1333
1371
  compute_billing_price?: string | null | undefined;
1334
1372
  }>;
1335
1373
  node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1374
+ object_type: z.ZodLiteral<"node">;
1375
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1336
1376
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1337
1377
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1338
1378
  device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1340,16 +1380,20 @@ export declare const DstackAppWithCvmResponseV20260121Schema: z.ZodUnion<[z.ZodO
1340
1380
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1341
1381
  version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1342
1382
  }, "strip", z.ZodTypeAny, {
1383
+ object_type: "node";
1343
1384
  status?: string | null | undefined;
1344
1385
  name?: string | null | undefined;
1345
1386
  version?: string | null | undefined;
1387
+ id?: number | null | undefined;
1346
1388
  region?: string | null | undefined;
1347
1389
  device_id?: string | null | undefined;
1348
1390
  ppid?: string | null | undefined;
1349
1391
  }, {
1392
+ object_type: "node";
1350
1393
  status?: string | null | undefined;
1351
1394
  name?: string | null | undefined;
1352
1395
  version?: string | null | undefined;
1396
+ id?: number | null | undefined;
1353
1397
  region?: string | null | undefined;
1354
1398
  device_id?: string | null | undefined;
1355
1399
  ppid?: string | null | undefined;
@@ -1509,9 +1553,11 @@ export declare const DstackAppWithCvmResponseV20260121Schema: z.ZodUnion<[z.ZodO
1509
1553
  public_logs?: boolean | undefined;
1510
1554
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1511
1555
  node_info?: {
1556
+ object_type: "node";
1512
1557
  status?: string | null | undefined;
1513
1558
  name?: string | null | undefined;
1514
1559
  version?: string | null | undefined;
1560
+ id?: number | null | undefined;
1515
1561
  region?: string | null | undefined;
1516
1562
  device_id?: string | null | undefined;
1517
1563
  ppid?: string | null | undefined;
@@ -1580,9 +1626,11 @@ export declare const DstackAppWithCvmResponseV20260121Schema: z.ZodUnion<[z.ZodO
1580
1626
  public_logs?: boolean | undefined;
1581
1627
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1582
1628
  node_info?: {
1629
+ object_type: "node";
1583
1630
  status?: string | null | undefined;
1584
1631
  name?: string | null | undefined;
1585
1632
  version?: string | null | undefined;
1633
+ id?: number | null | undefined;
1586
1634
  region?: string | null | undefined;
1587
1635
  device_id?: string | null | undefined;
1588
1636
  ppid?: string | null | undefined;
@@ -1661,9 +1709,11 @@ export declare const DstackAppWithCvmResponseV20260121Schema: z.ZodUnion<[z.ZodO
1661
1709
  public_logs?: boolean | undefined;
1662
1710
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1663
1711
  node_info?: {
1712
+ object_type: "node";
1664
1713
  status?: string | null | undefined;
1665
1714
  name?: string | null | undefined;
1666
1715
  version?: string | null | undefined;
1716
+ id?: number | null | undefined;
1667
1717
  region?: string | null | undefined;
1668
1718
  device_id?: string | null | undefined;
1669
1719
  ppid?: string | null | undefined;
@@ -1737,9 +1787,11 @@ export declare const DstackAppWithCvmResponseV20260121Schema: z.ZodUnion<[z.ZodO
1737
1787
  public_logs?: boolean | undefined;
1738
1788
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1739
1789
  node_info?: {
1790
+ object_type: "node";
1740
1791
  status?: string | null | undefined;
1741
1792
  name?: string | null | undefined;
1742
1793
  version?: string | null | undefined;
1794
+ id?: number | null | undefined;
1743
1795
  region?: string | null | undefined;
1744
1796
  device_id?: string | null | undefined;
1745
1797
  ppid?: string | null | undefined;
@@ -1817,9 +1869,11 @@ export declare const DstackAppWithCvmResponseV20260121Schema: z.ZodUnion<[z.ZodO
1817
1869
  public_logs?: boolean | undefined;
1818
1870
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1819
1871
  node_info?: {
1872
+ object_type: "node";
1820
1873
  status?: string | null | undefined;
1821
1874
  name?: string | null | undefined;
1822
1875
  version?: string | null | undefined;
1876
+ id?: number | null | undefined;
1823
1877
  region?: string | null | undefined;
1824
1878
  device_id?: string | null | undefined;
1825
1879
  ppid?: string | null | undefined;
@@ -1890,9 +1944,11 @@ export declare const DstackAppWithCvmResponseV20260121Schema: z.ZodUnion<[z.ZodO
1890
1944
  public_logs?: boolean | undefined;
1891
1945
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1892
1946
  node_info?: {
1947
+ object_type: "node";
1893
1948
  status?: string | null | undefined;
1894
1949
  name?: string | null | undefined;
1895
1950
  version?: string | null | undefined;
1951
+ id?: number | null | undefined;
1896
1952
  region?: string | null | undefined;
1897
1953
  device_id?: string | null | undefined;
1898
1954
  ppid?: string | null | undefined;
@@ -2001,6 +2057,8 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
2001
2057
  compute_billing_price?: string | null | undefined;
2002
2058
  }>;
2003
2059
  node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2060
+ object_type: z.ZodLiteral<"node">;
2061
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2004
2062
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2005
2063
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2006
2064
  device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2008,16 +2066,20 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
2008
2066
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2009
2067
  version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2010
2068
  }, "strip", z.ZodTypeAny, {
2069
+ object_type: "node";
2011
2070
  status?: string | null | undefined;
2012
2071
  name?: string | null | undefined;
2013
2072
  version?: string | null | undefined;
2073
+ id?: number | null | undefined;
2014
2074
  region?: string | null | undefined;
2015
2075
  device_id?: string | null | undefined;
2016
2076
  ppid?: string | null | undefined;
2017
2077
  }, {
2078
+ object_type: "node";
2018
2079
  status?: string | null | undefined;
2019
2080
  name?: string | null | undefined;
2020
2081
  version?: string | null | undefined;
2082
+ id?: number | null | undefined;
2021
2083
  region?: string | null | undefined;
2022
2084
  device_id?: string | null | undefined;
2023
2085
  ppid?: string | null | undefined;
@@ -2177,9 +2239,11 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
2177
2239
  public_logs?: boolean | undefined;
2178
2240
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
2179
2241
  node_info?: {
2242
+ object_type: "node";
2180
2243
  status?: string | null | undefined;
2181
2244
  name?: string | null | undefined;
2182
2245
  version?: string | null | undefined;
2246
+ id?: number | null | undefined;
2183
2247
  region?: string | null | undefined;
2184
2248
  device_id?: string | null | undefined;
2185
2249
  ppid?: string | null | undefined;
@@ -2248,9 +2312,11 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
2248
2312
  public_logs?: boolean | undefined;
2249
2313
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
2250
2314
  node_info?: {
2315
+ object_type: "node";
2251
2316
  status?: string | null | undefined;
2252
2317
  name?: string | null | undefined;
2253
2318
  version?: string | null | undefined;
2319
+ id?: number | null | undefined;
2254
2320
  region?: string | null | undefined;
2255
2321
  device_id?: string | null | undefined;
2256
2322
  ppid?: string | null | undefined;
@@ -2314,6 +2380,8 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
2314
2380
  compute_billing_price?: string | null | undefined;
2315
2381
  }>;
2316
2382
  node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2383
+ object_type: z.ZodLiteral<"node">;
2384
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2317
2385
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2318
2386
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2319
2387
  device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2321,16 +2389,20 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
2321
2389
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2322
2390
  version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2323
2391
  }, "strip", z.ZodTypeAny, {
2392
+ object_type: "node";
2324
2393
  status?: string | null | undefined;
2325
2394
  name?: string | null | undefined;
2326
2395
  version?: string | null | undefined;
2396
+ id?: number | null | undefined;
2327
2397
  region?: string | null | undefined;
2328
2398
  device_id?: string | null | undefined;
2329
2399
  ppid?: string | null | undefined;
2330
2400
  }, {
2401
+ object_type: "node";
2331
2402
  status?: string | null | undefined;
2332
2403
  name?: string | null | undefined;
2333
2404
  version?: string | null | undefined;
2405
+ id?: number | null | undefined;
2334
2406
  region?: string | null | undefined;
2335
2407
  device_id?: string | null | undefined;
2336
2408
  ppid?: string | null | undefined;
@@ -2490,9 +2562,11 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
2490
2562
  public_logs?: boolean | undefined;
2491
2563
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
2492
2564
  node_info?: {
2565
+ object_type: "node";
2493
2566
  status?: string | null | undefined;
2494
2567
  name?: string | null | undefined;
2495
2568
  version?: string | null | undefined;
2569
+ id?: number | null | undefined;
2496
2570
  region?: string | null | undefined;
2497
2571
  device_id?: string | null | undefined;
2498
2572
  ppid?: string | null | undefined;
@@ -2561,9 +2635,11 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
2561
2635
  public_logs?: boolean | undefined;
2562
2636
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
2563
2637
  node_info?: {
2638
+ object_type: "node";
2564
2639
  status?: string | null | undefined;
2565
2640
  name?: string | null | undefined;
2566
2641
  version?: string | null | undefined;
2642
+ id?: number | null | undefined;
2567
2643
  region?: string | null | undefined;
2568
2644
  device_id?: string | null | undefined;
2569
2645
  ppid?: string | null | undefined;
@@ -2642,9 +2718,11 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
2642
2718
  public_logs?: boolean | undefined;
2643
2719
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
2644
2720
  node_info?: {
2721
+ object_type: "node";
2645
2722
  status?: string | null | undefined;
2646
2723
  name?: string | null | undefined;
2647
2724
  version?: string | null | undefined;
2725
+ id?: number | null | undefined;
2648
2726
  region?: string | null | undefined;
2649
2727
  device_id?: string | null | undefined;
2650
2728
  ppid?: string | null | undefined;
@@ -2718,9 +2796,11 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
2718
2796
  public_logs?: boolean | undefined;
2719
2797
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
2720
2798
  node_info?: {
2799
+ object_type: "node";
2721
2800
  status?: string | null | undefined;
2722
2801
  name?: string | null | undefined;
2723
2802
  version?: string | null | undefined;
2803
+ id?: number | null | undefined;
2724
2804
  region?: string | null | undefined;
2725
2805
  device_id?: string | null | undefined;
2726
2806
  ppid?: string | null | undefined;
@@ -2798,9 +2878,11 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
2798
2878
  public_logs?: boolean | undefined;
2799
2879
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
2800
2880
  node_info?: {
2881
+ object_type: "node";
2801
2882
  status?: string | null | undefined;
2802
2883
  name?: string | null | undefined;
2803
2884
  version?: string | null | undefined;
2885
+ id?: number | null | undefined;
2804
2886
  region?: string | null | undefined;
2805
2887
  device_id?: string | null | undefined;
2806
2888
  ppid?: string | null | undefined;
@@ -2871,9 +2953,11 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
2871
2953
  public_logs?: boolean | undefined;
2872
2954
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
2873
2955
  node_info?: {
2956
+ object_type: "node";
2874
2957
  status?: string | null | undefined;
2875
2958
  name?: string | null | undefined;
2876
2959
  version?: string | null | undefined;
2960
+ id?: number | null | undefined;
2877
2961
  region?: string | null | undefined;
2878
2962
  device_id?: string | null | undefined;
2879
2963
  ppid?: string | null | undefined;
@@ -2994,9 +3078,11 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
2994
3078
  public_logs?: boolean | undefined;
2995
3079
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
2996
3080
  node_info?: {
3081
+ object_type: "node";
2997
3082
  status?: string | null | undefined;
2998
3083
  name?: string | null | undefined;
2999
3084
  version?: string | null | undefined;
3085
+ id?: number | null | undefined;
3000
3086
  region?: string | null | undefined;
3001
3087
  device_id?: string | null | undefined;
3002
3088
  ppid?: string | null | undefined;
@@ -3070,9 +3156,11 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
3070
3156
  public_logs?: boolean | undefined;
3071
3157
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
3072
3158
  node_info?: {
3159
+ object_type: "node";
3073
3160
  status?: string | null | undefined;
3074
3161
  name?: string | null | undefined;
3075
3162
  version?: string | null | undefined;
3163
+ id?: number | null | undefined;
3076
3164
  region?: string | null | undefined;
3077
3165
  device_id?: string | null | undefined;
3078
3166
  ppid?: string | null | undefined;
@@ -3167,9 +3255,11 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
3167
3255
  public_logs?: boolean | undefined;
3168
3256
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
3169
3257
  node_info?: {
3258
+ object_type: "node";
3170
3259
  status?: string | null | undefined;
3171
3260
  name?: string | null | undefined;
3172
3261
  version?: string | null | undefined;
3262
+ id?: number | null | undefined;
3173
3263
  region?: string | null | undefined;
3174
3264
  device_id?: string | null | undefined;
3175
3265
  ppid?: string | null | undefined;
@@ -3240,9 +3330,11 @@ export declare const DstackAppListResponseV20260121Schema: z.ZodObject<{
3240
3330
  public_logs?: boolean | undefined;
3241
3331
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
3242
3332
  node_info?: {
3333
+ object_type: "node";
3243
3334
  status?: string | null | undefined;
3244
3335
  name?: string | null | undefined;
3245
3336
  version?: string | null | undefined;
3337
+ id?: number | null | undefined;
3246
3338
  region?: string | null | undefined;
3247
3339
  device_id?: string | null | undefined;
3248
3340
  ppid?: string | null | undefined;
@@ -67,7 +67,7 @@ export interface ClientConfig<V extends ApiVersion = ApiVersion> extends FetchOp
67
67
  /**
68
68
  * Base URL for the API (overrides FetchOptions baseURL)
69
69
  * If not provided, will read from PHALA_CLOUD_API_PREFIX environment variable
70
- * Defaults to "https://cloud-api.phala.network/v1"
70
+ * Defaults to "https://cloud-api.phala.com/api/v1"
71
71
  */
72
72
  baseURL?: string;
73
73
  /** Default timeout in milliseconds (overrides FetchOptions timeout) */