@phala/cloud 0.0.8 → 0.0.9

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.
@@ -92,31 +92,47 @@ export declare const GetCvmListSchema: z.ZodObject<{
92
92
  project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
93
  project_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
94
  billing_period: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
- kms_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
95
+ kms_info: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodObject<{
96
96
  id: z.ZodString;
97
- slug: z.ZodString;
97
+ slug: z.ZodNullable<z.ZodString>;
98
98
  url: z.ZodString;
99
99
  version: z.ZodString;
100
- chain_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
101
- kms_contract_address: z.ZodOptional<z.ZodString>;
102
- gateway_app_id: z.ZodOptional<z.ZodString>;
103
- }, "strip", z.ZodTypeAny, {
104
- version: string;
105
- id: string;
106
- slug: string;
107
- url: string;
108
- chain_id?: number | null | undefined;
109
- kms_contract_address?: string | undefined;
110
- gateway_app_id?: string | undefined;
111
- }, {
112
- version: string;
113
- id: string;
114
- slug: string;
115
- url: string;
116
- chain_id?: number | null | undefined;
117
- kms_contract_address?: string | undefined;
118
- gateway_app_id?: string | undefined;
119
- }>>>;
100
+ chain_id: z.ZodNullable<z.ZodNumber>;
101
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
102
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
103
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
104
+ id: z.ZodString;
105
+ slug: z.ZodNullable<z.ZodString>;
106
+ url: z.ZodString;
107
+ version: z.ZodString;
108
+ chain_id: z.ZodNullable<z.ZodNumber>;
109
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
110
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
111
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
112
+ id: z.ZodString;
113
+ slug: z.ZodNullable<z.ZodString>;
114
+ url: z.ZodString;
115
+ version: z.ZodString;
116
+ chain_id: z.ZodNullable<z.ZodNumber>;
117
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
118
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
119
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
120
+ id: z.ZodString;
121
+ slug: z.ZodNullable<z.ZodString>;
122
+ url: z.ZodString;
123
+ version: z.ZodString;
124
+ chain_id: z.ZodNullable<z.ZodNumber>;
125
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
126
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
127
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
128
+ id: z.ZodString;
129
+ slug: z.ZodNullable<z.ZodString>;
130
+ url: z.ZodString;
131
+ version: z.ZodString;
132
+ chain_id: z.ZodNullable<z.ZodNumber>;
133
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
134
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
135
+ }, z.ZodTypeAny, "passthrough">>>>;
120
136
  vcpu: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
121
137
  memory: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
122
138
  disk_size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -166,15 +182,15 @@ export declare const GetCvmListSchema: z.ZodObject<{
166
182
  project_id?: string | null | undefined;
167
183
  project_type?: string | null | undefined;
168
184
  billing_period?: string | null | undefined;
169
- kms_info?: {
170
- version: string;
171
- id: string;
172
- slug: string;
173
- url: string;
174
- chain_id?: number | null | undefined;
175
- kms_contract_address?: string | undefined;
176
- gateway_app_id?: string | undefined;
177
- } | null | undefined;
185
+ kms_info?: z.objectOutputType<{
186
+ id: z.ZodString;
187
+ slug: z.ZodNullable<z.ZodString>;
188
+ url: z.ZodString;
189
+ version: z.ZodString;
190
+ chain_id: z.ZodNullable<z.ZodNumber>;
191
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
192
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
193
+ }, z.ZodTypeAny, "passthrough"> | null | undefined;
178
194
  vcpu?: number | null | undefined;
179
195
  memory?: number | null | undefined;
180
196
  disk_size?: number | null | undefined;
@@ -218,15 +234,15 @@ export declare const GetCvmListSchema: z.ZodObject<{
218
234
  project_id?: string | null | undefined;
219
235
  project_type?: string | null | undefined;
220
236
  billing_period?: string | null | undefined;
221
- kms_info?: {
222
- version: string;
223
- id: string;
224
- slug: string;
225
- url: string;
226
- chain_id?: number | null | undefined;
227
- kms_contract_address?: string | undefined;
228
- gateway_app_id?: string | undefined;
229
- } | null | undefined;
237
+ kms_info?: z.objectInputType<{
238
+ id: z.ZodString;
239
+ slug: z.ZodNullable<z.ZodString>;
240
+ url: z.ZodString;
241
+ version: z.ZodString;
242
+ chain_id: z.ZodNullable<z.ZodNumber>;
243
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
244
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
245
+ }, z.ZodTypeAny, "passthrough"> | null | undefined;
230
246
  vcpu?: number | null | undefined;
231
247
  memory?: number | null | undefined;
232
248
  disk_size?: number | null | undefined;
@@ -278,15 +294,15 @@ export declare const GetCvmListSchema: z.ZodObject<{
278
294
  project_id?: string | null | undefined;
279
295
  project_type?: string | null | undefined;
280
296
  billing_period?: string | null | undefined;
281
- kms_info?: {
282
- version: string;
283
- id: string;
284
- slug: string;
285
- url: string;
286
- chain_id?: number | null | undefined;
287
- kms_contract_address?: string | undefined;
288
- gateway_app_id?: string | undefined;
289
- } | null | undefined;
297
+ kms_info?: z.objectOutputType<{
298
+ id: z.ZodString;
299
+ slug: z.ZodNullable<z.ZodString>;
300
+ url: z.ZodString;
301
+ version: z.ZodString;
302
+ chain_id: z.ZodNullable<z.ZodNumber>;
303
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
304
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
305
+ }, z.ZodTypeAny, "passthrough"> | null | undefined;
290
306
  vcpu?: number | null | undefined;
291
307
  memory?: number | null | undefined;
292
308
  disk_size?: number | null | undefined;
@@ -336,15 +352,15 @@ export declare const GetCvmListSchema: z.ZodObject<{
336
352
  project_id?: string | null | undefined;
337
353
  project_type?: string | null | undefined;
338
354
  billing_period?: string | null | undefined;
339
- kms_info?: {
340
- version: string;
341
- id: string;
342
- slug: string;
343
- url: string;
344
- chain_id?: number | null | undefined;
345
- kms_contract_address?: string | undefined;
346
- gateway_app_id?: string | undefined;
347
- } | null | undefined;
355
+ kms_info?: z.objectInputType<{
356
+ id: z.ZodString;
357
+ slug: z.ZodNullable<z.ZodString>;
358
+ url: z.ZodString;
359
+ version: z.ZodString;
360
+ chain_id: z.ZodNullable<z.ZodNumber>;
361
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
362
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
363
+ }, z.ZodTypeAny, "passthrough"> | null | undefined;
348
364
  vcpu?: number | null | undefined;
349
365
  memory?: number | null | undefined;
350
366
  disk_size?: number | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"get_cvm_list.d.ts","sourceRoot":"","sources":["../../src/actions/get_cvm_list.ts"],"names":[],"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BAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAElE,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,SAAS,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAEtE,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,SAAS,IAAI,gBAAgB,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC;AAE1F;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EACpF,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,iBAAiB,EAC3B,UAAU,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,GACnC,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAalC;AAED;;GAEG;AACH,wBAAsB,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EACxF,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,iBAAiB,EAC3B,UAAU,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,GACnC,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,CA0B9C"}
package/dist/index.js CHANGED
@@ -48,7 +48,6 @@ __export(index_exports, {
48
48
  GetCvmComposeFileResultSchema: () => GetCvmComposeFileResultSchema,
49
49
  GetCvmListSchema: () => GetCvmListSchema,
50
50
  GetKmsListSchema: () => GetKmsListSchema,
51
- KMSInfoSchema: () => KMSInfoSchema,
52
51
  KmsInfoSchema: () => KmsInfoSchema,
53
52
  ManagedUserSchema: () => ManagedUserSchema,
54
53
  NetworkError: () => NetworkError,
@@ -469,16 +468,6 @@ var CvmNetworkUrlsSchema = import_zod3.z.object({
469
468
  app: import_zod3.z.string(),
470
469
  instance: import_zod3.z.string()
471
470
  });
472
- var KMSInfoSchema = import_zod3.z.object({
473
- id: import_zod3.z.string(),
474
- // HashedId is represented as string in JS
475
- slug: import_zod3.z.string(),
476
- url: import_zod3.z.string(),
477
- version: import_zod3.z.string(),
478
- chain_id: import_zod3.z.number().optional().nullable(),
479
- kms_contract_address: import_zod3.z.string().optional(),
480
- gateway_app_id: import_zod3.z.string().optional()
481
- });
482
471
  var CvmInfoSchema = import_zod3.z.object({
483
472
  hosted: VmInfoSchema,
484
473
  name: import_zod3.z.string(),
@@ -494,7 +483,7 @@ var CvmInfoSchema = import_zod3.z.object({
494
483
  // HashedId is represented as string in JS
495
484
  project_type: import_zod3.z.string().nullable(),
496
485
  billing_period: import_zod3.z.string().nullable(),
497
- kms_info: KMSInfoSchema.nullable(),
486
+ kms_info: KmsInfoSchema.nullable(),
498
487
  vcpu: import_zod3.z.number().nullable(),
499
488
  memory: import_zod3.z.number().nullable(),
500
489
  disk_size: import_zod3.z.number().nullable(),
@@ -523,7 +512,7 @@ var CvmLegacyDetailSchema = import_zod3.z.object({
523
512
  public_logs: import_zod3.z.boolean(),
524
513
  dapp_dashboard_url: import_zod3.z.string().nullable(),
525
514
  syslog_endpoint: import_zod3.z.string().nullable(),
526
- kms_info: KMSInfoSchema.nullable(),
515
+ kms_info: KmsInfoSchema.nullable(),
527
516
  contract_address: import_zod3.z.string().nullable(),
528
517
  deployer_address: import_zod3.z.string().nullable(),
529
518
  scheduled_delete_at: import_zod3.z.string().nullable(),
@@ -2549,7 +2538,6 @@ var import_verify_env_encrypt_public_key = require("@phala/dstack-sdk/verify-env
2549
2538
  GetCvmComposeFileResultSchema,
2550
2539
  GetCvmListSchema,
2551
2540
  GetKmsListSchema,
2552
- KMSInfoSchema,
2553
2541
  KmsInfoSchema,
2554
2542
  ManagedUserSchema,
2555
2543
  NetworkError,
package/dist/index.mjs CHANGED
@@ -349,16 +349,6 @@ var CvmNetworkUrlsSchema = z3.object({
349
349
  app: z3.string(),
350
350
  instance: z3.string()
351
351
  });
352
- var KMSInfoSchema = z3.object({
353
- id: z3.string(),
354
- // HashedId is represented as string in JS
355
- slug: z3.string(),
356
- url: z3.string(),
357
- version: z3.string(),
358
- chain_id: z3.number().optional().nullable(),
359
- kms_contract_address: z3.string().optional(),
360
- gateway_app_id: z3.string().optional()
361
- });
362
352
  var CvmInfoSchema = z3.object({
363
353
  hosted: VmInfoSchema,
364
354
  name: z3.string(),
@@ -374,7 +364,7 @@ var CvmInfoSchema = z3.object({
374
364
  // HashedId is represented as string in JS
375
365
  project_type: z3.string().nullable(),
376
366
  billing_period: z3.string().nullable(),
377
- kms_info: KMSInfoSchema.nullable(),
367
+ kms_info: KmsInfoSchema.nullable(),
378
368
  vcpu: z3.number().nullable(),
379
369
  memory: z3.number().nullable(),
380
370
  disk_size: z3.number().nullable(),
@@ -403,7 +393,7 @@ var CvmLegacyDetailSchema = z3.object({
403
393
  public_logs: z3.boolean(),
404
394
  dapp_dashboard_url: z3.string().nullable(),
405
395
  syslog_endpoint: z3.string().nullable(),
406
- kms_info: KMSInfoSchema.nullable(),
396
+ kms_info: KmsInfoSchema.nullable(),
407
397
  contract_address: z3.string().nullable(),
408
398
  deployer_address: z3.string().nullable(),
409
399
  scheduled_delete_at: z3.string().nullable(),
@@ -2447,7 +2437,6 @@ export {
2447
2437
  GetCvmComposeFileResultSchema,
2448
2438
  GetCvmListSchema,
2449
2439
  GetKmsListSchema,
2450
- KMSInfoSchema,
2451
2440
  KmsInfoSchema,
2452
2441
  ManagedUserSchema,
2453
2442
  NetworkError,
@@ -76,31 +76,6 @@ export declare const CvmNetworkUrlsSchema: z.ZodObject<{
76
76
  app: string;
77
77
  instance: string;
78
78
  }>;
79
- export declare const KMSInfoSchema: z.ZodObject<{
80
- id: z.ZodString;
81
- slug: z.ZodString;
82
- url: z.ZodString;
83
- version: z.ZodString;
84
- chain_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
85
- kms_contract_address: z.ZodOptional<z.ZodString>;
86
- gateway_app_id: z.ZodOptional<z.ZodString>;
87
- }, "strip", z.ZodTypeAny, {
88
- version: string;
89
- id: string;
90
- slug: string;
91
- url: string;
92
- chain_id?: number | null | undefined;
93
- kms_contract_address?: string | undefined;
94
- gateway_app_id?: string | undefined;
95
- }, {
96
- version: string;
97
- id: string;
98
- slug: string;
99
- url: string;
100
- chain_id?: number | null | undefined;
101
- kms_contract_address?: string | undefined;
102
- gateway_app_id?: string | undefined;
103
- }>;
104
79
  export declare const CvmInfoSchema: z.ZodObject<{
105
80
  hosted: z.ZodOptional<z.ZodObject<{
106
81
  id: z.ZodString;
@@ -178,31 +153,47 @@ export declare const CvmInfoSchema: z.ZodObject<{
178
153
  project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
179
154
  project_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
155
  billing_period: z.ZodOptional<z.ZodNullable<z.ZodString>>;
181
- kms_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
156
+ kms_info: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodObject<{
182
157
  id: z.ZodString;
183
- slug: z.ZodString;
158
+ slug: z.ZodNullable<z.ZodString>;
184
159
  url: z.ZodString;
185
160
  version: z.ZodString;
186
- chain_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
187
- kms_contract_address: z.ZodOptional<z.ZodString>;
188
- gateway_app_id: z.ZodOptional<z.ZodString>;
189
- }, "strip", z.ZodTypeAny, {
190
- version: string;
191
- id: string;
192
- slug: string;
193
- url: string;
194
- chain_id?: number | null | undefined;
195
- kms_contract_address?: string | undefined;
196
- gateway_app_id?: string | undefined;
197
- }, {
198
- version: string;
199
- id: string;
200
- slug: string;
201
- url: string;
202
- chain_id?: number | null | undefined;
203
- kms_contract_address?: string | undefined;
204
- gateway_app_id?: string | undefined;
205
- }>>>;
161
+ chain_id: z.ZodNullable<z.ZodNumber>;
162
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
163
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
164
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
165
+ id: z.ZodString;
166
+ slug: z.ZodNullable<z.ZodString>;
167
+ url: z.ZodString;
168
+ version: z.ZodString;
169
+ chain_id: z.ZodNullable<z.ZodNumber>;
170
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
171
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
172
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
173
+ id: z.ZodString;
174
+ slug: z.ZodNullable<z.ZodString>;
175
+ url: z.ZodString;
176
+ version: z.ZodString;
177
+ chain_id: z.ZodNullable<z.ZodNumber>;
178
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
179
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
180
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
181
+ id: z.ZodString;
182
+ slug: z.ZodNullable<z.ZodString>;
183
+ url: z.ZodString;
184
+ version: z.ZodString;
185
+ chain_id: z.ZodNullable<z.ZodNumber>;
186
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
187
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
188
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
189
+ id: z.ZodString;
190
+ slug: z.ZodNullable<z.ZodString>;
191
+ url: z.ZodString;
192
+ version: z.ZodString;
193
+ chain_id: z.ZodNullable<z.ZodNumber>;
194
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
195
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
196
+ }, z.ZodTypeAny, "passthrough">>>>;
206
197
  vcpu: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
207
198
  memory: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
208
199
  disk_size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -252,15 +243,15 @@ export declare const CvmInfoSchema: z.ZodObject<{
252
243
  project_id?: string | null | undefined;
253
244
  project_type?: string | null | undefined;
254
245
  billing_period?: string | null | undefined;
255
- kms_info?: {
256
- version: string;
257
- id: string;
258
- slug: string;
259
- url: string;
260
- chain_id?: number | null | undefined;
261
- kms_contract_address?: string | undefined;
262
- gateway_app_id?: string | undefined;
263
- } | null | undefined;
246
+ kms_info?: z.objectOutputType<{
247
+ id: z.ZodString;
248
+ slug: z.ZodNullable<z.ZodString>;
249
+ url: z.ZodString;
250
+ version: z.ZodString;
251
+ chain_id: z.ZodNullable<z.ZodNumber>;
252
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
253
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
254
+ }, z.ZodTypeAny, "passthrough"> | null | undefined;
264
255
  vcpu?: number | null | undefined;
265
256
  memory?: number | null | undefined;
266
257
  disk_size?: number | null | undefined;
@@ -304,15 +295,15 @@ export declare const CvmInfoSchema: z.ZodObject<{
304
295
  project_id?: string | null | undefined;
305
296
  project_type?: string | null | undefined;
306
297
  billing_period?: string | null | undefined;
307
- kms_info?: {
308
- version: string;
309
- id: string;
310
- slug: string;
311
- url: string;
312
- chain_id?: number | null | undefined;
313
- kms_contract_address?: string | undefined;
314
- gateway_app_id?: string | undefined;
315
- } | null | undefined;
298
+ kms_info?: z.objectInputType<{
299
+ id: z.ZodString;
300
+ slug: z.ZodNullable<z.ZodString>;
301
+ url: z.ZodString;
302
+ version: z.ZodString;
303
+ chain_id: z.ZodNullable<z.ZodNumber>;
304
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
305
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
306
+ }, z.ZodTypeAny, "passthrough"> | null | undefined;
316
307
  vcpu?: number | null | undefined;
317
308
  memory?: number | null | undefined;
318
309
  disk_size?: number | null | undefined;
@@ -357,31 +348,47 @@ export declare const CvmLegacyDetailSchema: z.ZodObject<{
357
348
  public_logs: z.ZodBoolean;
358
349
  dapp_dashboard_url: z.ZodNullable<z.ZodString>;
359
350
  syslog_endpoint: z.ZodNullable<z.ZodString>;
360
- kms_info: z.ZodNullable<z.ZodObject<{
351
+ kms_info: z.ZodNullable<z.ZodEffects<z.ZodObject<{
361
352
  id: z.ZodString;
362
- slug: z.ZodString;
353
+ slug: z.ZodNullable<z.ZodString>;
363
354
  url: z.ZodString;
364
355
  version: z.ZodString;
365
- chain_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
366
- kms_contract_address: z.ZodOptional<z.ZodString>;
367
- gateway_app_id: z.ZodOptional<z.ZodString>;
368
- }, "strip", z.ZodTypeAny, {
369
- version: string;
370
- id: string;
371
- slug: string;
372
- url: string;
373
- chain_id?: number | null | undefined;
374
- kms_contract_address?: string | undefined;
375
- gateway_app_id?: string | undefined;
376
- }, {
377
- version: string;
378
- id: string;
379
- slug: string;
380
- url: string;
381
- chain_id?: number | null | undefined;
382
- kms_contract_address?: string | undefined;
383
- gateway_app_id?: string | undefined;
384
- }>>;
356
+ chain_id: z.ZodNullable<z.ZodNumber>;
357
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
358
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
359
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
360
+ id: z.ZodString;
361
+ slug: z.ZodNullable<z.ZodString>;
362
+ url: z.ZodString;
363
+ version: z.ZodString;
364
+ chain_id: z.ZodNullable<z.ZodNumber>;
365
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
366
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
367
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
368
+ id: z.ZodString;
369
+ slug: z.ZodNullable<z.ZodString>;
370
+ url: z.ZodString;
371
+ version: z.ZodString;
372
+ chain_id: z.ZodNullable<z.ZodNumber>;
373
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
374
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
375
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
376
+ id: z.ZodString;
377
+ slug: z.ZodNullable<z.ZodString>;
378
+ url: z.ZodString;
379
+ version: z.ZodString;
380
+ chain_id: z.ZodNullable<z.ZodNumber>;
381
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
382
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
383
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
384
+ id: z.ZodString;
385
+ slug: z.ZodNullable<z.ZodString>;
386
+ url: z.ZodString;
387
+ version: z.ZodString;
388
+ chain_id: z.ZodNullable<z.ZodNumber>;
389
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
390
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
391
+ }, z.ZodTypeAny, "passthrough">>>;
385
392
  contract_address: z.ZodNullable<z.ZodString>;
386
393
  deployer_address: z.ZodNullable<z.ZodString>;
387
394
  scheduled_delete_at: z.ZodNullable<z.ZodString>;
@@ -408,15 +415,15 @@ export declare const CvmLegacyDetailSchema: z.ZodObject<{
408
415
  syslog_endpoint: string | null;
409
416
  project_id: string | null;
410
417
  project_type: string | null;
411
- kms_info: {
412
- version: string;
413
- id: string;
414
- slug: string;
415
- url: string;
416
- chain_id?: number | null | undefined;
417
- kms_contract_address?: string | undefined;
418
- gateway_app_id?: string | undefined;
419
- } | null;
418
+ kms_info: z.objectOutputType<{
419
+ id: z.ZodString;
420
+ slug: z.ZodNullable<z.ZodString>;
421
+ url: z.ZodString;
422
+ version: z.ZodString;
423
+ chain_id: z.ZodNullable<z.ZodNumber>;
424
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
425
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
426
+ }, z.ZodTypeAny, "passthrough"> | null;
420
427
  vcpu: number | null;
421
428
  memory: number | null;
422
429
  disk_size: number | null;
@@ -451,15 +458,15 @@ export declare const CvmLegacyDetailSchema: z.ZodObject<{
451
458
  syslog_endpoint: string | null;
452
459
  project_id: string | null;
453
460
  project_type: string | null;
454
- kms_info: {
455
- version: string;
456
- id: string;
457
- slug: string;
458
- url: string;
459
- chain_id?: number | null | undefined;
460
- kms_contract_address?: string | undefined;
461
- gateway_app_id?: string | undefined;
462
- } | null;
461
+ kms_info: z.objectInputType<{
462
+ id: z.ZodString;
463
+ slug: z.ZodNullable<z.ZodString>;
464
+ url: z.ZodString;
465
+ version: z.ZodString;
466
+ chain_id: z.ZodNullable<z.ZodNumber>;
467
+ kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
468
+ gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
469
+ }, z.ZodTypeAny, "passthrough"> | null;
463
470
  vcpu: number | null;
464
471
  memory: number | null;
465
472
  disk_size: number | null;
@@ -1 +1 @@
1
- {"version":3,"file":"cvm_info.d.ts","sourceRoot":"","sources":["../../src/types/cvm_info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,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,MAAM,YAAY,CAAC;AAEzD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcvB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;EAG5B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;EAIxB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAC;AAGH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBd,CAAC;AAEb,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAGpD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phala/cloud",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "TypeScript SDK for Phala Cloud API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",