@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.
@@ -131,7 +131,38 @@ export declare const CvmGatewayInfoV20260121Schema: z.ZodObject<{
131
131
  cname?: string | null | undefined;
132
132
  }>;
133
133
  export type CvmGatewayInfoV20260121 = z.infer<typeof CvmGatewayInfoV20260121Schema>;
134
+ export declare const NodeRefSchema: z.ZodObject<{
135
+ object_type: z.ZodLiteral<"node">;
136
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
137
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
+ device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
+ ppid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ object_type: "node";
145
+ status?: string | null | undefined;
146
+ name?: string | null | undefined;
147
+ version?: string | null | undefined;
148
+ id?: number | null | undefined;
149
+ region?: string | null | undefined;
150
+ device_id?: string | null | undefined;
151
+ ppid?: string | null | undefined;
152
+ }, {
153
+ object_type: "node";
154
+ status?: string | null | undefined;
155
+ name?: string | null | undefined;
156
+ version?: string | null | undefined;
157
+ id?: number | null | undefined;
158
+ region?: string | null | undefined;
159
+ device_id?: string | null | undefined;
160
+ ppid?: string | null | undefined;
161
+ }>;
162
+ export type NodeRef = z.infer<typeof NodeRefSchema>;
134
163
  export declare const CvmNodeInfoV20260121Schema: z.ZodObject<{
164
+ object_type: z.ZodLiteral<"node">;
165
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
135
166
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
167
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
168
  device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -139,21 +170,25 @@ export declare const CvmNodeInfoV20260121Schema: z.ZodObject<{
139
170
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
171
  version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
172
  }, "strip", z.ZodTypeAny, {
173
+ object_type: "node";
142
174
  status?: string | null | undefined;
143
175
  name?: string | null | undefined;
144
176
  version?: string | null | undefined;
177
+ id?: number | null | undefined;
145
178
  region?: string | null | undefined;
146
179
  device_id?: string | null | undefined;
147
180
  ppid?: string | null | undefined;
148
181
  }, {
182
+ object_type: "node";
149
183
  status?: string | null | undefined;
150
184
  name?: string | null | undefined;
151
185
  version?: string | null | undefined;
186
+ id?: number | null | undefined;
152
187
  region?: string | null | undefined;
153
188
  device_id?: string | null | undefined;
154
189
  ppid?: string | null | undefined;
155
190
  }>;
156
- export type CvmNodeInfoV20260121 = z.infer<typeof CvmNodeInfoV20260121Schema>;
191
+ export type CvmNodeInfoV20260121 = NodeRef;
157
192
  export declare const CvmInfoV20260121Schema: z.ZodObject<{
158
193
  id: z.ZodString;
159
194
  name: z.ZodString;
@@ -185,6 +220,8 @@ export declare const CvmInfoV20260121Schema: z.ZodObject<{
185
220
  compute_billing_price?: string | null | undefined;
186
221
  }>;
187
222
  node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
223
+ object_type: z.ZodLiteral<"node">;
224
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
188
225
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
189
226
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
190
227
  device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -192,16 +229,20 @@ export declare const CvmInfoV20260121Schema: z.ZodObject<{
192
229
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
230
  version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
231
  }, "strip", z.ZodTypeAny, {
232
+ object_type: "node";
195
233
  status?: string | null | undefined;
196
234
  name?: string | null | undefined;
197
235
  version?: string | null | undefined;
236
+ id?: number | null | undefined;
198
237
  region?: string | null | undefined;
199
238
  device_id?: string | null | undefined;
200
239
  ppid?: string | null | undefined;
201
240
  }, {
241
+ object_type: "node";
202
242
  status?: string | null | undefined;
203
243
  name?: string | null | undefined;
204
244
  version?: string | null | undefined;
245
+ id?: number | null | undefined;
205
246
  region?: string | null | undefined;
206
247
  device_id?: string | null | undefined;
207
248
  ppid?: string | null | undefined;
@@ -361,9 +402,11 @@ export declare const CvmInfoV20260121Schema: z.ZodObject<{
361
402
  public_logs?: boolean | undefined;
362
403
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
363
404
  node_info?: {
405
+ object_type: "node";
364
406
  status?: string | null | undefined;
365
407
  name?: string | null | undefined;
366
408
  version?: string | null | undefined;
409
+ id?: number | null | undefined;
367
410
  region?: string | null | undefined;
368
411
  device_id?: string | null | undefined;
369
412
  ppid?: string | null | undefined;
@@ -432,9 +475,11 @@ export declare const CvmInfoV20260121Schema: z.ZodObject<{
432
475
  public_logs?: boolean | undefined;
433
476
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
434
477
  node_info?: {
478
+ object_type: "node";
435
479
  status?: string | null | undefined;
436
480
  name?: string | null | undefined;
437
481
  version?: string | null | undefined;
482
+ id?: number | null | undefined;
438
483
  region?: string | null | undefined;
439
484
  device_id?: string | null | undefined;
440
485
  ppid?: string | null | undefined;
@@ -499,6 +544,8 @@ export declare const CvmInfoDetailV20260121Schema: z.ZodObject<{
499
544
  compute_billing_price?: string | null | undefined;
500
545
  }>;
501
546
  node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
547
+ object_type: z.ZodLiteral<"node">;
548
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
502
549
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
503
550
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
504
551
  device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -506,16 +553,20 @@ export declare const CvmInfoDetailV20260121Schema: z.ZodObject<{
506
553
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
507
554
  version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
508
555
  }, "strip", z.ZodTypeAny, {
556
+ object_type: "node";
509
557
  status?: string | null | undefined;
510
558
  name?: string | null | undefined;
511
559
  version?: string | null | undefined;
560
+ id?: number | null | undefined;
512
561
  region?: string | null | undefined;
513
562
  device_id?: string | null | undefined;
514
563
  ppid?: string | null | undefined;
515
564
  }, {
565
+ object_type: "node";
516
566
  status?: string | null | undefined;
517
567
  name?: string | null | undefined;
518
568
  version?: string | null | undefined;
569
+ id?: number | null | undefined;
519
570
  region?: string | null | undefined;
520
571
  device_id?: string | null | undefined;
521
572
  ppid?: string | null | undefined;
@@ -677,9 +728,11 @@ export declare const CvmInfoDetailV20260121Schema: z.ZodObject<{
677
728
  public_logs?: boolean | undefined;
678
729
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
679
730
  node_info?: {
731
+ object_type: "node";
680
732
  status?: string | null | undefined;
681
733
  name?: string | null | undefined;
682
734
  version?: string | null | undefined;
735
+ id?: number | null | undefined;
683
736
  region?: string | null | undefined;
684
737
  device_id?: string | null | undefined;
685
738
  ppid?: string | null | undefined;
@@ -749,9 +802,11 @@ export declare const CvmInfoDetailV20260121Schema: z.ZodObject<{
749
802
  public_logs?: boolean | undefined;
750
803
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
751
804
  node_info?: {
805
+ object_type: "node";
752
806
  status?: string | null | undefined;
753
807
  name?: string | null | undefined;
754
808
  version?: string | null | undefined;
809
+ id?: number | null | undefined;
755
810
  region?: string | null | undefined;
756
811
  device_id?: string | null | undefined;
757
812
  ppid?: string | null | undefined;
@@ -818,6 +873,8 @@ export declare const PaginatedCvmInfosV20260121Schema: z.ZodObject<{
818
873
  compute_billing_price?: string | null | undefined;
819
874
  }>;
820
875
  node_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
876
+ object_type: z.ZodLiteral<"node">;
877
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
821
878
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
822
879
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
823
880
  device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -825,16 +882,20 @@ export declare const PaginatedCvmInfosV20260121Schema: z.ZodObject<{
825
882
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
826
883
  version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
827
884
  }, "strip", z.ZodTypeAny, {
885
+ object_type: "node";
828
886
  status?: string | null | undefined;
829
887
  name?: string | null | undefined;
830
888
  version?: string | null | undefined;
889
+ id?: number | null | undefined;
831
890
  region?: string | null | undefined;
832
891
  device_id?: string | null | undefined;
833
892
  ppid?: string | null | undefined;
834
893
  }, {
894
+ object_type: "node";
835
895
  status?: string | null | undefined;
836
896
  name?: string | null | undefined;
837
897
  version?: string | null | undefined;
898
+ id?: number | null | undefined;
838
899
  region?: string | null | undefined;
839
900
  device_id?: string | null | undefined;
840
901
  ppid?: string | null | undefined;
@@ -994,9 +1055,11 @@ export declare const PaginatedCvmInfosV20260121Schema: z.ZodObject<{
994
1055
  public_logs?: boolean | undefined;
995
1056
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
996
1057
  node_info?: {
1058
+ object_type: "node";
997
1059
  status?: string | null | undefined;
998
1060
  name?: string | null | undefined;
999
1061
  version?: string | null | undefined;
1062
+ id?: number | null | undefined;
1000
1063
  region?: string | null | undefined;
1001
1064
  device_id?: string | null | undefined;
1002
1065
  ppid?: string | null | undefined;
@@ -1065,9 +1128,11 @@ export declare const PaginatedCvmInfosV20260121Schema: z.ZodObject<{
1065
1128
  public_logs?: boolean | undefined;
1066
1129
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1067
1130
  node_info?: {
1131
+ object_type: "node";
1068
1132
  status?: string | null | undefined;
1069
1133
  name?: string | null | undefined;
1070
1134
  version?: string | null | undefined;
1135
+ id?: number | null | undefined;
1071
1136
  region?: string | null | undefined;
1072
1137
  device_id?: string | null | undefined;
1073
1138
  ppid?: string | null | undefined;
@@ -1144,9 +1209,11 @@ export declare const PaginatedCvmInfosV20260121Schema: z.ZodObject<{
1144
1209
  public_logs?: boolean | undefined;
1145
1210
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1146
1211
  node_info?: {
1212
+ object_type: "node";
1147
1213
  status?: string | null | undefined;
1148
1214
  name?: string | null | undefined;
1149
1215
  version?: string | null | undefined;
1216
+ id?: number | null | undefined;
1150
1217
  region?: string | null | undefined;
1151
1218
  device_id?: string | null | undefined;
1152
1219
  ppid?: string | null | undefined;
@@ -1221,9 +1288,11 @@ export declare const PaginatedCvmInfosV20260121Schema: z.ZodObject<{
1221
1288
  public_logs?: boolean | undefined;
1222
1289
  kms_type?: "legacy" | "phala" | "ethereum" | "base" | null | undefined;
1223
1290
  node_info?: {
1291
+ object_type: "node";
1224
1292
  status?: string | null | undefined;
1225
1293
  name?: string | null | undefined;
1226
1294
  version?: string | null | undefined;
1295
+ id?: number | null | undefined;
1227
1296
  region?: string | null | undefined;
1228
1297
  device_id?: string | null | undefined;
1229
1298
  ppid?: string | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phala/cloud",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "TypeScript SDK for Phala Cloud API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",