@phala/cloud 0.0.4 → 0.0.5
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/actions/get_available_nodes.d.ts +87 -15
- package/dist/actions/get_available_nodes.d.ts.map +1 -1
- package/dist/actions/get_kms_list.d.ts +21 -2
- package/dist/actions/get_kms_list.d.ts.map +1 -1
- package/dist/actions/provision_cvm_compose_file_update.d.ts +51 -3
- package/dist/actions/provision_cvm_compose_file_update.d.ts.map +1 -1
- package/dist/index.js +24 -3
- package/dist/index.mjs +24 -3
- package/dist/types/kms_info.d.ts +51 -2
- package/dist/types/kms_info.d.ts.map +1 -1
- package/dist/types/supported_chains.d.ts +3 -0
- package/dist/types/supported_chains.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -99,10 +99,12 @@ export declare const TeepodCapacitySchema: z.ZodObject<{
|
|
|
99
99
|
version: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
100
100
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
101
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
102
|
-
dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
103
102
|
support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
|
|
104
103
|
fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
104
|
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
default_kms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
|
+
kms_list: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
106
108
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
107
109
|
teepod_id: z.ZodNumber;
|
|
108
110
|
name: z.ZodString;
|
|
@@ -127,10 +129,12 @@ export declare const TeepodCapacitySchema: z.ZodObject<{
|
|
|
127
129
|
version: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
128
130
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
131
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
130
|
-
dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
131
132
|
support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
|
|
132
133
|
fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
133
134
|
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
135
|
+
region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
136
|
+
default_kms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
|
+
kms_list: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
134
138
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
135
139
|
teepod_id: z.ZodNumber;
|
|
136
140
|
name: z.ZodString;
|
|
@@ -155,10 +159,12 @@ export declare const TeepodCapacitySchema: z.ZodObject<{
|
|
|
155
159
|
version: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
156
160
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
157
161
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
158
|
-
dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
159
162
|
support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
|
|
160
163
|
fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
164
|
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
|
+
region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
166
|
+
default_kms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
167
|
+
kms_list: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
162
168
|
}, z.ZodTypeAny, "passthrough">>;
|
|
163
169
|
export declare const ResourceThresholdSchema: z.ZodObject<{
|
|
164
170
|
max_instances: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -218,10 +224,12 @@ export declare const AvailableNodesSchema: z.ZodObject<{
|
|
|
218
224
|
version: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
219
225
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
220
226
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
221
|
-
dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
222
227
|
support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
|
|
223
228
|
fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
224
229
|
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
230
|
+
region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
231
|
+
default_kms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
232
|
+
kms_list: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
225
233
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
226
234
|
teepod_id: z.ZodNumber;
|
|
227
235
|
name: z.ZodString;
|
|
@@ -246,10 +254,12 @@ export declare const AvailableNodesSchema: z.ZodObject<{
|
|
|
246
254
|
version: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
247
255
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
248
256
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
249
|
-
dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
250
257
|
support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
|
|
251
258
|
fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
252
259
|
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
260
|
+
region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
261
|
+
default_kms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
262
|
+
kms_list: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
253
263
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
254
264
|
teepod_id: z.ZodNumber;
|
|
255
265
|
name: z.ZodString;
|
|
@@ -274,12 +284,14 @@ export declare const AvailableNodesSchema: z.ZodObject<{
|
|
|
274
284
|
version: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
275
285
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
276
286
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
277
|
-
dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
278
287
|
support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
|
|
279
288
|
fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
280
289
|
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
290
|
+
region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
291
|
+
default_kms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
292
|
+
kms_list: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
281
293
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
282
|
-
kms_list: z.ZodArray<z.ZodObject<{
|
|
294
|
+
kms_list: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
283
295
|
id: z.ZodString;
|
|
284
296
|
slug: z.ZodNullable<z.ZodString>;
|
|
285
297
|
url: z.ZodString;
|
|
@@ -303,6 +315,22 @@ export declare const AvailableNodesSchema: z.ZodObject<{
|
|
|
303
315
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
304
316
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
305
317
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
318
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
319
|
+
id: z.ZodString;
|
|
320
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
321
|
+
url: z.ZodString;
|
|
322
|
+
version: z.ZodString;
|
|
323
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
324
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
325
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
326
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
327
|
+
id: z.ZodString;
|
|
328
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
329
|
+
url: z.ZodString;
|
|
330
|
+
version: z.ZodString;
|
|
331
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
332
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
333
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
306
334
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
307
335
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
308
336
|
tier: z.ZodString;
|
|
@@ -346,10 +374,12 @@ export declare const AvailableNodesSchema: z.ZodObject<{
|
|
|
346
374
|
version: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
347
375
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
348
376
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
349
|
-
dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
350
377
|
support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
|
|
351
378
|
fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
352
379
|
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
|
+
region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
381
|
+
default_kms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
382
|
+
kms_list: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
353
383
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
354
384
|
teepod_id: z.ZodNumber;
|
|
355
385
|
name: z.ZodString;
|
|
@@ -374,10 +404,12 @@ export declare const AvailableNodesSchema: z.ZodObject<{
|
|
|
374
404
|
version: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
375
405
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
376
406
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
377
|
-
dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
378
407
|
support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
|
|
379
408
|
fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
409
|
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
410
|
+
region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
411
|
+
default_kms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
412
|
+
kms_list: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
381
413
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
382
414
|
teepod_id: z.ZodNumber;
|
|
383
415
|
name: z.ZodString;
|
|
@@ -402,12 +434,14 @@ export declare const AvailableNodesSchema: z.ZodObject<{
|
|
|
402
434
|
version: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
403
435
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
404
436
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
405
|
-
dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
406
437
|
support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
|
|
407
438
|
fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
408
439
|
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
440
|
+
region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
441
|
+
default_kms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
442
|
+
kms_list: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
409
443
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
410
|
-
kms_list: z.ZodArray<z.ZodObject<{
|
|
444
|
+
kms_list: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
411
445
|
id: z.ZodString;
|
|
412
446
|
slug: z.ZodNullable<z.ZodString>;
|
|
413
447
|
url: z.ZodString;
|
|
@@ -431,6 +465,22 @@ export declare const AvailableNodesSchema: z.ZodObject<{
|
|
|
431
465
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
432
466
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
433
467
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
468
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
469
|
+
id: z.ZodString;
|
|
470
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
471
|
+
url: z.ZodString;
|
|
472
|
+
version: z.ZodString;
|
|
473
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
474
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
475
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
476
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
477
|
+
id: z.ZodString;
|
|
478
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
479
|
+
url: z.ZodString;
|
|
480
|
+
version: z.ZodString;
|
|
481
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
482
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
483
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
434
484
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
435
485
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
436
486
|
tier: z.ZodString;
|
|
@@ -474,10 +524,12 @@ export declare const AvailableNodesSchema: z.ZodObject<{
|
|
|
474
524
|
version: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
475
525
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
476
526
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
477
|
-
dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
478
527
|
support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
|
|
479
528
|
fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
480
529
|
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
530
|
+
region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
531
|
+
default_kms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
532
|
+
kms_list: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
481
533
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
482
534
|
teepod_id: z.ZodNumber;
|
|
483
535
|
name: z.ZodString;
|
|
@@ -502,10 +554,12 @@ export declare const AvailableNodesSchema: z.ZodObject<{
|
|
|
502
554
|
version: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
503
555
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
504
556
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
505
|
-
dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
506
557
|
support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
|
|
507
558
|
fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
508
559
|
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
560
|
+
region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
561
|
+
default_kms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
562
|
+
kms_list: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
509
563
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
510
564
|
teepod_id: z.ZodNumber;
|
|
511
565
|
name: z.ZodString;
|
|
@@ -530,12 +584,14 @@ export declare const AvailableNodesSchema: z.ZodObject<{
|
|
|
530
584
|
version: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
531
585
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
532
586
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
533
|
-
dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
534
587
|
support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
|
|
535
588
|
fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
536
589
|
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
590
|
+
region_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
591
|
+
default_kms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
592
|
+
kms_list: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
537
593
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
538
|
-
kms_list: z.ZodArray<z.ZodObject<{
|
|
594
|
+
kms_list: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
539
595
|
id: z.ZodString;
|
|
540
596
|
slug: z.ZodNullable<z.ZodString>;
|
|
541
597
|
url: z.ZodString;
|
|
@@ -559,6 +615,22 @@ export declare const AvailableNodesSchema: z.ZodObject<{
|
|
|
559
615
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
560
616
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
561
617
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
618
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
619
|
+
id: z.ZodString;
|
|
620
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
621
|
+
url: z.ZodString;
|
|
622
|
+
version: z.ZodString;
|
|
623
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
624
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
625
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
626
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
627
|
+
id: z.ZodString;
|
|
628
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
629
|
+
url: z.ZodString;
|
|
630
|
+
version: z.ZodString;
|
|
631
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
632
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
633
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
562
634
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
563
635
|
}, z.ZodTypeAny, "passthrough">>;
|
|
564
636
|
export type AvailableOSImage = z.infer<typeof AvailableOSImageSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_available_nodes.d.ts","sourceRoot":"","sources":["../../src/actions/get_available_nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;gCAOnB,CAAC;AAEjB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"get_available_nodes.d.ts","sourceRoot":"","sources":["../../src/actions/get_available_nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;gCAOnB,CAAC;AAEjB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAiBjB,CAAC;AAEjB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;gCAOpB,CAAC;AAEjB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAC/F,MAAM,EAAE,MAAM,EACd,UAAU,CAAC,EAAE,2BAA2B,CAAC,CAAC,CAAC,GAC1C,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC,CAarD"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { type Client, type SafeResult } from "../client";
|
|
3
|
+
import { KmsInfo } from "../types/kms_info";
|
|
3
4
|
import { ActionParameters, ActionReturnType } from "../types/common";
|
|
4
5
|
export declare const GetKmsListRequestSchema: z.ZodObject<{
|
|
5
6
|
page: z.ZodOptional<z.ZodNumber>;
|
|
@@ -15,7 +16,7 @@ export declare const GetKmsListRequestSchema: z.ZodObject<{
|
|
|
15
16
|
is_onchain?: boolean | undefined;
|
|
16
17
|
}>;
|
|
17
18
|
export declare const GetKmsListSchema: z.ZodObject<{
|
|
18
|
-
items: z.ZodArray<z.ZodObject<{
|
|
19
|
+
items: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
19
20
|
id: z.ZodString;
|
|
20
21
|
slug: z.ZodNullable<z.ZodString>;
|
|
21
22
|
url: z.ZodString;
|
|
@@ -39,6 +40,22 @@ export declare const GetKmsListSchema: z.ZodObject<{
|
|
|
39
40
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
40
41
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
41
42
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
43
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
46
|
+
url: z.ZodString;
|
|
47
|
+
version: z.ZodString;
|
|
48
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
49
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
50
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
51
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
52
|
+
id: z.ZodString;
|
|
53
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
54
|
+
url: z.ZodString;
|
|
55
|
+
version: z.ZodString;
|
|
56
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
57
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
58
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
42
59
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
43
60
|
total: z.ZodNumber;
|
|
44
61
|
page: z.ZodNumber;
|
|
@@ -74,7 +91,9 @@ export declare const GetKmsListSchema: z.ZodObject<{
|
|
|
74
91
|
pages: number;
|
|
75
92
|
}>;
|
|
76
93
|
export type GetKmsListRequest = z.infer<typeof GetKmsListRequestSchema>;
|
|
77
|
-
export type GetKmsListResponse = z.infer<typeof GetKmsListSchema
|
|
94
|
+
export type GetKmsListResponse = z.infer<typeof GetKmsListSchema> & {
|
|
95
|
+
items: KmsInfo[];
|
|
96
|
+
};
|
|
78
97
|
export type GetKmsListParameters<T = undefined> = ActionParameters<T>;
|
|
79
98
|
export type GetKmsListReturnType<T = undefined> = ActionReturnType<GetKmsListResponse, T>;
|
|
80
99
|
export declare function getKmsList<T extends z.ZodSchema | false | undefined = undefined>(client: Client, request?: GetKmsListRequest, parameters?: GetKmsListParameters<T>): Promise<GetKmsListReturnType<T>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_kms_list.d.ts","sourceRoot":"","sources":["../../src/actions/get_kms_list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK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AAED,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"}
|
|
@@ -209,7 +209,7 @@ export declare const ProvisionCvmComposeFileUpdateResultSchema: z.ZodObject<{
|
|
|
209
209
|
app_id: z.ZodNullable<z.ZodString>;
|
|
210
210
|
device_id: z.ZodNullable<z.ZodString>;
|
|
211
211
|
compose_hash: z.ZodString;
|
|
212
|
-
kms_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
212
|
+
kms_info: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodObject<{
|
|
213
213
|
id: z.ZodString;
|
|
214
214
|
slug: z.ZodNullable<z.ZodString>;
|
|
215
215
|
url: z.ZodString;
|
|
@@ -233,12 +233,28 @@ export declare const ProvisionCvmComposeFileUpdateResultSchema: z.ZodObject<{
|
|
|
233
233
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
234
234
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
235
235
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
236
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
237
|
+
id: z.ZodString;
|
|
238
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
239
|
+
url: z.ZodString;
|
|
240
|
+
version: z.ZodString;
|
|
241
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
242
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
243
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
244
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
245
|
+
id: z.ZodString;
|
|
246
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
247
|
+
url: z.ZodString;
|
|
248
|
+
version: z.ZodString;
|
|
249
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
250
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
251
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
236
252
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
237
253
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
238
254
|
app_id: z.ZodNullable<z.ZodString>;
|
|
239
255
|
device_id: z.ZodNullable<z.ZodString>;
|
|
240
256
|
compose_hash: z.ZodString;
|
|
241
|
-
kms_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
257
|
+
kms_info: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodObject<{
|
|
242
258
|
id: z.ZodString;
|
|
243
259
|
slug: z.ZodNullable<z.ZodString>;
|
|
244
260
|
url: z.ZodString;
|
|
@@ -262,12 +278,28 @@ export declare const ProvisionCvmComposeFileUpdateResultSchema: z.ZodObject<{
|
|
|
262
278
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
263
279
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
264
280
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
281
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
282
|
+
id: z.ZodString;
|
|
283
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
284
|
+
url: z.ZodString;
|
|
285
|
+
version: z.ZodString;
|
|
286
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
287
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
288
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
289
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
290
|
+
id: z.ZodString;
|
|
291
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
292
|
+
url: z.ZodString;
|
|
293
|
+
version: z.ZodString;
|
|
294
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
295
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
296
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
265
297
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
266
298
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
267
299
|
app_id: z.ZodNullable<z.ZodString>;
|
|
268
300
|
device_id: z.ZodNullable<z.ZodString>;
|
|
269
301
|
compose_hash: z.ZodString;
|
|
270
|
-
kms_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
302
|
+
kms_info: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodObject<{
|
|
271
303
|
id: z.ZodString;
|
|
272
304
|
slug: z.ZodNullable<z.ZodString>;
|
|
273
305
|
url: z.ZodString;
|
|
@@ -291,6 +323,22 @@ export declare const ProvisionCvmComposeFileUpdateResultSchema: z.ZodObject<{
|
|
|
291
323
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
292
324
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
293
325
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
326
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
327
|
+
id: z.ZodString;
|
|
328
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
329
|
+
url: z.ZodString;
|
|
330
|
+
version: z.ZodString;
|
|
331
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
332
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
333
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
334
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
335
|
+
id: z.ZodString;
|
|
336
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
337
|
+
url: z.ZodString;
|
|
338
|
+
version: z.ZodString;
|
|
339
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
340
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
341
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
294
342
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
295
343
|
}, z.ZodTypeAny, "passthrough">>;
|
|
296
344
|
export type ProvisionCvmComposeFileUpdateRequest = z.input<typeof ProvisionCvmComposeFileUpdateRequestSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provision_cvm_compose_file_update.d.ts","sourceRoot":"","sources":["../../src/actions/provision_cvm_compose_file_update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4EG;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AmC,EACnC,CAAC,CACF,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAsB,6BAA6B,CACjD,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAErD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,oCAAoC,EAC7C,UAAU,CAAC,EAAE,uCAAuC,CAAC,CAAC,CAAC,GACtD,OAAO,CAAC,uCAAuC,CAAC,CAAC,CAAC,CAAC,CAcrD;AAED;;GAEG;AACH,wBAAsB,iCAAiC,CACrD,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAErD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,oCAAoC,EAC7C,UAAU,CAAC,EAAE,uCAAuC,CAAC,CAAC,CAAC,GACtD,OAAO,CAAC,UAAU,CAAC,uCAAuC,CAAC,CAAC,CAAC,CAAC,CAAC,CAwBjE"}
|
package/dist/index.js
CHANGED
|
@@ -1025,7 +1025,17 @@ var import_zod4 = require("zod");
|
|
|
1025
1025
|
|
|
1026
1026
|
// src/types/kms_info.ts
|
|
1027
1027
|
var import_zod3 = require("zod");
|
|
1028
|
-
|
|
1028
|
+
|
|
1029
|
+
// src/types/supported_chains.ts
|
|
1030
|
+
var import_chains = require("viem/chains");
|
|
1031
|
+
var SUPPORTED_CHAINS = {
|
|
1032
|
+
[import_chains.mainnet.id]: import_chains.mainnet,
|
|
1033
|
+
[import_chains.base.id]: import_chains.base,
|
|
1034
|
+
[import_chains.anvil.id]: import_chains.anvil
|
|
1035
|
+
};
|
|
1036
|
+
|
|
1037
|
+
// src/types/kms_info.ts
|
|
1038
|
+
var KmsInfoBaseSchema = import_zod3.z.object({
|
|
1029
1039
|
id: import_zod3.z.string(),
|
|
1030
1040
|
slug: import_zod3.z.string().nullable(),
|
|
1031
1041
|
url: import_zod3.z.string(),
|
|
@@ -1034,6 +1044,15 @@ var KmsInfoSchema = import_zod3.z.object({
|
|
|
1034
1044
|
kms_contract_address: import_zod3.z.string().nullable().transform((val) => val),
|
|
1035
1045
|
gateway_app_id: import_zod3.z.string().nullable().transform((val) => val)
|
|
1036
1046
|
}).passthrough();
|
|
1047
|
+
var KmsInfoSchema = KmsInfoBaseSchema.transform((data) => {
|
|
1048
|
+
if (data.chain_id != null) {
|
|
1049
|
+
const chain = SUPPORTED_CHAINS[data.chain_id];
|
|
1050
|
+
if (chain) {
|
|
1051
|
+
return { ...data, chain };
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
return data;
|
|
1055
|
+
});
|
|
1037
1056
|
|
|
1038
1057
|
// src/actions/get_available_nodes.ts
|
|
1039
1058
|
var AvailableOSImageSchema = import_zod4.z.object({
|
|
@@ -1051,10 +1070,12 @@ var TeepodCapacitySchema = import_zod4.z.object({
|
|
|
1051
1070
|
remaining_memory: import_zod4.z.number(),
|
|
1052
1071
|
remaining_cvm_slots: import_zod4.z.number(),
|
|
1053
1072
|
images: import_zod4.z.array(AvailableOSImageSchema),
|
|
1054
|
-
dedicated_for_team_id: import_zod4.z.number().nullable().optional(),
|
|
1055
1073
|
support_onchain_kms: import_zod4.z.boolean().optional(),
|
|
1056
1074
|
fmspc: import_zod4.z.string().nullable().optional(),
|
|
1057
|
-
device_id: import_zod4.z.string().nullable().optional()
|
|
1075
|
+
device_id: import_zod4.z.string().nullable().optional(),
|
|
1076
|
+
region_identifier: import_zod4.z.string().nullable().optional(),
|
|
1077
|
+
default_kms: import_zod4.z.string().nullable().optional(),
|
|
1078
|
+
kms_list: import_zod4.z.array(import_zod4.z.string()).default([])
|
|
1058
1079
|
}).passthrough();
|
|
1059
1080
|
var ResourceThresholdSchema = import_zod4.z.object({
|
|
1060
1081
|
max_instances: import_zod4.z.number().nullable().optional(),
|
package/dist/index.mjs
CHANGED
|
@@ -928,7 +928,17 @@ import { z as z4 } from "zod";
|
|
|
928
928
|
|
|
929
929
|
// src/types/kms_info.ts
|
|
930
930
|
import { z as z3 } from "zod";
|
|
931
|
-
|
|
931
|
+
|
|
932
|
+
// src/types/supported_chains.ts
|
|
933
|
+
import { anvil, base, mainnet } from "viem/chains";
|
|
934
|
+
var SUPPORTED_CHAINS = {
|
|
935
|
+
[mainnet.id]: mainnet,
|
|
936
|
+
[base.id]: base,
|
|
937
|
+
[anvil.id]: anvil
|
|
938
|
+
};
|
|
939
|
+
|
|
940
|
+
// src/types/kms_info.ts
|
|
941
|
+
var KmsInfoBaseSchema = z3.object({
|
|
932
942
|
id: z3.string(),
|
|
933
943
|
slug: z3.string().nullable(),
|
|
934
944
|
url: z3.string(),
|
|
@@ -937,6 +947,15 @@ var KmsInfoSchema = z3.object({
|
|
|
937
947
|
kms_contract_address: z3.string().nullable().transform((val) => val),
|
|
938
948
|
gateway_app_id: z3.string().nullable().transform((val) => val)
|
|
939
949
|
}).passthrough();
|
|
950
|
+
var KmsInfoSchema = KmsInfoBaseSchema.transform((data) => {
|
|
951
|
+
if (data.chain_id != null) {
|
|
952
|
+
const chain = SUPPORTED_CHAINS[data.chain_id];
|
|
953
|
+
if (chain) {
|
|
954
|
+
return { ...data, chain };
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
return data;
|
|
958
|
+
});
|
|
940
959
|
|
|
941
960
|
// src/actions/get_available_nodes.ts
|
|
942
961
|
var AvailableOSImageSchema = z4.object({
|
|
@@ -954,10 +973,12 @@ var TeepodCapacitySchema = z4.object({
|
|
|
954
973
|
remaining_memory: z4.number(),
|
|
955
974
|
remaining_cvm_slots: z4.number(),
|
|
956
975
|
images: z4.array(AvailableOSImageSchema),
|
|
957
|
-
dedicated_for_team_id: z4.number().nullable().optional(),
|
|
958
976
|
support_onchain_kms: z4.boolean().optional(),
|
|
959
977
|
fmspc: z4.string().nullable().optional(),
|
|
960
|
-
device_id: z4.string().nullable().optional()
|
|
978
|
+
device_id: z4.string().nullable().optional(),
|
|
979
|
+
region_identifier: z4.string().nullable().optional(),
|
|
980
|
+
default_kms: z4.string().nullable().optional(),
|
|
981
|
+
kms_list: z4.array(z4.string()).default([])
|
|
961
982
|
}).passthrough();
|
|
962
983
|
var ResourceThresholdSchema = z4.object({
|
|
963
984
|
max_instances: z4.number().nullable().optional(),
|
package/dist/types/kms_info.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Chain } from "viem";
|
|
1
2
|
import { z } from "zod";
|
|
2
|
-
|
|
3
|
+
declare const KmsInfoBaseSchema: z.ZodObject<{
|
|
3
4
|
id: z.ZodString;
|
|
4
5
|
slug: z.ZodNullable<z.ZodString>;
|
|
5
6
|
url: z.ZodString;
|
|
@@ -24,5 +25,53 @@ export declare const KmsInfoSchema: z.ZodObject<{
|
|
|
24
25
|
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
25
26
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
26
27
|
}, z.ZodTypeAny, "passthrough">>;
|
|
27
|
-
export
|
|
28
|
+
export declare const KmsInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
29
|
+
id: z.ZodString;
|
|
30
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
31
|
+
url: z.ZodString;
|
|
32
|
+
version: z.ZodString;
|
|
33
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
35
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
36
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
39
|
+
url: z.ZodString;
|
|
40
|
+
version: z.ZodString;
|
|
41
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
42
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
43
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
44
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
47
|
+
url: z.ZodString;
|
|
48
|
+
version: z.ZodString;
|
|
49
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
50
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
51
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
52
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
55
|
+
url: z.ZodString;
|
|
56
|
+
version: z.ZodString;
|
|
57
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
58
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
59
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
60
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
63
|
+
url: z.ZodString;
|
|
64
|
+
version: z.ZodString;
|
|
65
|
+
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
66
|
+
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
67
|
+
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
68
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
69
|
+
export type KmsInfo = (z.infer<typeof KmsInfoBaseSchema> & {
|
|
70
|
+
chain_id: number;
|
|
71
|
+
chain: Chain;
|
|
72
|
+
}) | (z.infer<typeof KmsInfoBaseSchema> & {
|
|
73
|
+
chain_id: undefined | null;
|
|
74
|
+
chain: undefined;
|
|
75
|
+
});
|
|
76
|
+
export {};
|
|
28
77
|
//# sourceMappingURL=kms_info.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kms_info.d.ts","sourceRoot":"","sources":["../../src/types/kms_info.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"kms_info.d.ts","sourceRoot":"","sources":["../../src/types/kms_info.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;gCAgBP,CAAC;AAEjB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAQxB,CAAC;AAEH,MAAM,MAAM,OAAO,GACf,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAAC,GACxE,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,GAAG;IAAE,QAAQ,EAAE,SAAS,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supported_chains.d.ts","sourceRoot":"","sources":["../../src/types/supported_chains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,MAAM,CAAC;AAGlC,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAI5D,CAAC"}
|