shoal-web-sdk 0.0.95 → 0.0.97
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/sdk/types.gen.d.ts +35 -25
- package/dist/sdk/zod.gen.d.ts +266 -180
- package/dist/sdk/zod.gen.js +51 -36
- package/package.json +1 -1
package/dist/sdk/types.gen.d.ts
CHANGED
|
@@ -248,15 +248,27 @@ export type Edge = {
|
|
|
248
248
|
id: string;
|
|
249
249
|
src: string;
|
|
250
250
|
dst: string;
|
|
251
|
+
typ: EdgeType;
|
|
252
|
+
props?: ({
|
|
253
|
+
typ: 'comment';
|
|
254
|
+
} & NetworkEdgeProps) | ({
|
|
255
|
+
typ: 'cache';
|
|
256
|
+
} & RouteEdgeProps);
|
|
257
|
+
};
|
|
258
|
+
export type NetworkEdgeProps = {
|
|
259
|
+
a?: string;
|
|
260
|
+
};
|
|
261
|
+
export type RouteEdgeProps = {
|
|
262
|
+
b?: string;
|
|
251
263
|
};
|
|
252
264
|
export type Node = {
|
|
253
265
|
id: string;
|
|
254
266
|
name?: string;
|
|
255
267
|
description?: string;
|
|
256
|
-
x
|
|
257
|
-
y
|
|
258
|
-
width
|
|
259
|
-
height
|
|
268
|
+
x: number;
|
|
269
|
+
y: number;
|
|
270
|
+
width: number;
|
|
271
|
+
height: number;
|
|
260
272
|
edges?: Array<Edge>;
|
|
261
273
|
typ: NodeType;
|
|
262
274
|
props?: ({
|
|
@@ -272,41 +284,43 @@ export type Node = {
|
|
|
272
284
|
} & DatabaseNodeProps) | ({
|
|
273
285
|
typ: 'function';
|
|
274
286
|
} & FunctionNodeProps) | ({
|
|
275
|
-
typ: '
|
|
276
|
-
} &
|
|
287
|
+
typ: 'queue';
|
|
288
|
+
} & QueueNodeProps) | ({
|
|
277
289
|
typ: 'proxy';
|
|
278
290
|
} & ProxyNodeProps) | ({
|
|
279
291
|
typ: 'vm';
|
|
280
|
-
} & VmNodeProps)
|
|
292
|
+
} & VmNodeProps) | ({
|
|
293
|
+
typ: 'scheduler';
|
|
294
|
+
} & SchedulerNodeProps);
|
|
281
295
|
};
|
|
282
|
-
export type
|
|
296
|
+
export type EdgeType = 'network' | 'route';
|
|
297
|
+
export type NodeType = 'cache' | 'comment' | 'container' | 'cronjob' | 'database' | 'function' | 'queue' | 'proxy' | 'vm' | 'scheduler';
|
|
283
298
|
export type CommentNodeProps = {
|
|
284
299
|
comment?: string;
|
|
285
300
|
};
|
|
286
301
|
export type CacheNodeProps = {
|
|
287
302
|
size?: number;
|
|
288
303
|
};
|
|
304
|
+
export type SchedulerNodeProps = {
|
|
305
|
+
url?: string;
|
|
306
|
+
expression?: string;
|
|
307
|
+
};
|
|
289
308
|
export type ContainerNodeProps = {
|
|
290
|
-
region
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
ingress?: Ingress;
|
|
309
|
+
region: Region;
|
|
310
|
+
port: number;
|
|
311
|
+
cpu: Cpu;
|
|
312
|
+
memory: Memory;
|
|
313
|
+
ingress: Ingress;
|
|
296
314
|
timeoutSeconds?: number;
|
|
297
315
|
maxInstances?: number;
|
|
298
316
|
minInstances?: number;
|
|
299
317
|
concurrency?: number;
|
|
300
318
|
allowUnauthenticated?: boolean;
|
|
301
|
-
|
|
302
|
-
gitAccount?: string;
|
|
303
|
-
gitRepo?: string;
|
|
304
|
-
gitBranch?: string;
|
|
319
|
+
uri: string;
|
|
305
320
|
};
|
|
306
|
-
export type SourceType = 'GITHUB' | 'FLAT_FILE' | 'DOCKER_IMAGE';
|
|
307
321
|
export type Region = 'africa-south1' | 'asia-east1' | 'asia-east2' | 'asia-northeast1' | 'asia-northeast2' | 'asia-northeast3' | 'asia-south1' | 'asia-southeast1' | 'asia-southeast2' | 'australia-southeast1' | 'europe-north1' | 'europe-west1' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west6' | 'northamerica-northeast1' | 'northamerica-northeast2' | 'southamerica-east1' | 'southamerica-west1' | 'us-central1' | 'us-east1' | 'us-east4' | 'us-west1' | 'us-west2' | 'us-west3' | 'us-west4';
|
|
322
|
+
export type Cpu = '1' | '2' | '4' | '6' | '8' | '16' | '32';
|
|
308
323
|
export type Memory = '128Mi' | '256Mi' | '512Mi' | '1Gi' | '2Gi' | '4Gi' | '8Gi' | '16Gi' | '32Gi';
|
|
309
|
-
export type Cpu = '1' | '2' | '4' | '6' | '8';
|
|
310
324
|
export type Ingress = 'INGRESS_TRAFFIC_ALL' | 'INGRESS_TRAFFIC_INTERNAL_ONLY' | 'INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER';
|
|
311
325
|
export type CronJobNodeProps = {
|
|
312
326
|
cronTab?: string;
|
|
@@ -317,7 +331,7 @@ export type DatabaseNodeProps = {
|
|
|
317
331
|
export type FunctionNodeProps = {
|
|
318
332
|
cpus?: number;
|
|
319
333
|
};
|
|
320
|
-
export type
|
|
334
|
+
export type QueueNodeProps = {
|
|
321
335
|
foobar?: string;
|
|
322
336
|
};
|
|
323
337
|
export type ProxyNodeProps = {
|
|
@@ -326,10 +340,6 @@ export type ProxyNodeProps = {
|
|
|
326
340
|
export type VmNodeProps = {
|
|
327
341
|
os?: string;
|
|
328
342
|
};
|
|
329
|
-
export type SchedulerNodeProps = {
|
|
330
|
-
scheduleExpression?: string;
|
|
331
|
-
url?: string;
|
|
332
|
-
};
|
|
333
343
|
export type NodeSourceUploadResponse = {
|
|
334
344
|
fileName: string;
|
|
335
345
|
/**
|
package/dist/sdk/zod.gen.d.ts
CHANGED
|
@@ -385,10 +385,33 @@ export declare const zKindeOrganisationBillingAgreement: z.ZodObject<{
|
|
|
385
385
|
export declare const zUuids: z.ZodObject<{
|
|
386
386
|
ids: z.ZodArray<z.ZodUUID>;
|
|
387
387
|
}, z.core.$strip>;
|
|
388
|
+
export declare const zNetworkEdgeProps: z.ZodObject<{
|
|
389
|
+
a: z.ZodOptional<z.ZodString>;
|
|
390
|
+
}, z.core.$strip>;
|
|
391
|
+
export declare const zRouteEdgeProps: z.ZodObject<{
|
|
392
|
+
b: z.ZodOptional<z.ZodString>;
|
|
393
|
+
}, z.core.$strip>;
|
|
394
|
+
export declare const zEdgeType: z.ZodEnum<{
|
|
395
|
+
network: "network";
|
|
396
|
+
route: "route";
|
|
397
|
+
}>;
|
|
388
398
|
export declare const zEdge: z.ZodObject<{
|
|
389
399
|
id: z.ZodUUID;
|
|
390
400
|
src: z.ZodUUID;
|
|
391
401
|
dst: z.ZodUUID;
|
|
402
|
+
typ: z.ZodEnum<{
|
|
403
|
+
network: "network";
|
|
404
|
+
route: "route";
|
|
405
|
+
}>;
|
|
406
|
+
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
407
|
+
typ: z.ZodLiteral<"comment">;
|
|
408
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
409
|
+
a: z.ZodOptional<z.ZodString>;
|
|
410
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
411
|
+
typ: z.ZodLiteral<"cache">;
|
|
412
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
413
|
+
b: z.ZodOptional<z.ZodString>;
|
|
414
|
+
}, z.core.$strip>>]>>;
|
|
392
415
|
}, z.core.$strip>;
|
|
393
416
|
export declare const zNodeType: z.ZodEnum<{
|
|
394
417
|
function: "function";
|
|
@@ -397,7 +420,7 @@ export declare const zNodeType: z.ZodEnum<{
|
|
|
397
420
|
container: "container";
|
|
398
421
|
cronjob: "cronjob";
|
|
399
422
|
database: "database";
|
|
400
|
-
|
|
423
|
+
queue: "queue";
|
|
401
424
|
proxy: "proxy";
|
|
402
425
|
vm: "vm";
|
|
403
426
|
scheduler: "scheduler";
|
|
@@ -408,11 +431,10 @@ export declare const zCommentNodeProps: z.ZodObject<{
|
|
|
408
431
|
export declare const zCacheNodeProps: z.ZodObject<{
|
|
409
432
|
size: z.ZodOptional<z.ZodInt>;
|
|
410
433
|
}, z.core.$strip>;
|
|
411
|
-
export declare const
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
}>;
|
|
434
|
+
export declare const zSchedulerNodeProps: z.ZodObject<{
|
|
435
|
+
url: z.ZodOptional<z.ZodString>;
|
|
436
|
+
expression: z.ZodOptional<z.ZodString>;
|
|
437
|
+
}, z.core.$strip>;
|
|
416
438
|
export declare const zRegion: z.ZodEnum<{
|
|
417
439
|
"africa-south1": "africa-south1";
|
|
418
440
|
"asia-east1": "asia-east1";
|
|
@@ -442,6 +464,15 @@ export declare const zRegion: z.ZodEnum<{
|
|
|
442
464
|
"us-west3": "us-west3";
|
|
443
465
|
"us-west4": "us-west4";
|
|
444
466
|
}>;
|
|
467
|
+
export declare const zCpu: z.ZodEnum<{
|
|
468
|
+
1: "1";
|
|
469
|
+
2: "2";
|
|
470
|
+
4: "4";
|
|
471
|
+
6: "6";
|
|
472
|
+
8: "8";
|
|
473
|
+
16: "16";
|
|
474
|
+
32: "32";
|
|
475
|
+
}>;
|
|
445
476
|
export declare const zMemory: z.ZodEnum<{
|
|
446
477
|
"128Mi": "128Mi";
|
|
447
478
|
"256Mi": "256Mi";
|
|
@@ -453,20 +484,13 @@ export declare const zMemory: z.ZodEnum<{
|
|
|
453
484
|
"16Gi": "16Gi";
|
|
454
485
|
"32Gi": "32Gi";
|
|
455
486
|
}>;
|
|
456
|
-
export declare const zCpu: z.ZodEnum<{
|
|
457
|
-
1: "1";
|
|
458
|
-
2: "2";
|
|
459
|
-
4: "4";
|
|
460
|
-
6: "6";
|
|
461
|
-
8: "8";
|
|
462
|
-
}>;
|
|
463
487
|
export declare const zIngress: z.ZodEnum<{
|
|
464
488
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
|
465
489
|
INGRESS_TRAFFIC_INTERNAL_ONLY: "INGRESS_TRAFFIC_INTERNAL_ONLY";
|
|
466
490
|
INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER: "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER";
|
|
467
491
|
}>;
|
|
468
492
|
export declare const zContainerNodeProps: z.ZodObject<{
|
|
469
|
-
region: z.
|
|
493
|
+
region: z.ZodEnum<{
|
|
470
494
|
"africa-south1": "africa-south1";
|
|
471
495
|
"asia-east1": "asia-east1";
|
|
472
496
|
"asia-east2": "asia-east2";
|
|
@@ -494,17 +518,18 @@ export declare const zContainerNodeProps: z.ZodObject<{
|
|
|
494
518
|
"us-west2": "us-west2";
|
|
495
519
|
"us-west3": "us-west3";
|
|
496
520
|
"us-west4": "us-west4";
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
cpu: z.ZodOptional<z.ZodEnum<{
|
|
521
|
+
}>;
|
|
522
|
+
port: z.ZodInt;
|
|
523
|
+
cpu: z.ZodEnum<{
|
|
501
524
|
1: "1";
|
|
502
525
|
2: "2";
|
|
503
526
|
4: "4";
|
|
504
527
|
6: "6";
|
|
505
528
|
8: "8";
|
|
506
|
-
|
|
507
|
-
|
|
529
|
+
16: "16";
|
|
530
|
+
32: "32";
|
|
531
|
+
}>;
|
|
532
|
+
memory: z.ZodEnum<{
|
|
508
533
|
"128Mi": "128Mi";
|
|
509
534
|
"256Mi": "256Mi";
|
|
510
535
|
"512Mi": "512Mi";
|
|
@@ -514,25 +539,18 @@ export declare const zContainerNodeProps: z.ZodObject<{
|
|
|
514
539
|
"8Gi": "8Gi";
|
|
515
540
|
"16Gi": "16Gi";
|
|
516
541
|
"32Gi": "32Gi";
|
|
517
|
-
}
|
|
518
|
-
ingress: z.
|
|
542
|
+
}>;
|
|
543
|
+
ingress: z.ZodEnum<{
|
|
519
544
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
|
520
545
|
INGRESS_TRAFFIC_INTERNAL_ONLY: "INGRESS_TRAFFIC_INTERNAL_ONLY";
|
|
521
546
|
INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER: "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER";
|
|
522
|
-
}
|
|
547
|
+
}>;
|
|
523
548
|
timeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
524
549
|
maxInstances: z.ZodOptional<z.ZodInt>;
|
|
525
550
|
minInstances: z.ZodOptional<z.ZodInt>;
|
|
526
551
|
concurrency: z.ZodOptional<z.ZodInt>;
|
|
527
552
|
allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
|
|
528
|
-
|
|
529
|
-
GITHUB: "GITHUB";
|
|
530
|
-
FLAT_FILE: "FLAT_FILE";
|
|
531
|
-
DOCKER_IMAGE: "DOCKER_IMAGE";
|
|
532
|
-
}>>;
|
|
533
|
-
gitAccount: z.ZodOptional<z.ZodString>;
|
|
534
|
-
gitRepo: z.ZodOptional<z.ZodString>;
|
|
535
|
-
gitBranch: z.ZodOptional<z.ZodString>;
|
|
553
|
+
uri: z.ZodString;
|
|
536
554
|
}, z.core.$strip>;
|
|
537
555
|
export declare const zCronJobNodeProps: z.ZodObject<{
|
|
538
556
|
cronTab: z.ZodOptional<z.ZodString>;
|
|
@@ -543,7 +561,7 @@ export declare const zDatabaseNodeProps: z.ZodObject<{
|
|
|
543
561
|
export declare const zFunctionNodeProps: z.ZodObject<{
|
|
544
562
|
cpus: z.ZodOptional<z.ZodInt>;
|
|
545
563
|
}, z.core.$strip>;
|
|
546
|
-
export declare const
|
|
564
|
+
export declare const zQueueNodeProps: z.ZodObject<{
|
|
547
565
|
foobar: z.ZodOptional<z.ZodString>;
|
|
548
566
|
}, z.core.$strip>;
|
|
549
567
|
export declare const zProxyNodeProps: z.ZodObject<{
|
|
@@ -556,14 +574,27 @@ export declare const zNode: z.ZodObject<{
|
|
|
556
574
|
id: z.ZodUUID;
|
|
557
575
|
name: z.ZodOptional<z.ZodString>;
|
|
558
576
|
description: z.ZodOptional<z.ZodString>;
|
|
559
|
-
x: z.
|
|
560
|
-
y: z.
|
|
561
|
-
width: z.
|
|
562
|
-
height: z.
|
|
577
|
+
x: z.ZodNumber;
|
|
578
|
+
y: z.ZodNumber;
|
|
579
|
+
width: z.ZodInt;
|
|
580
|
+
height: z.ZodInt;
|
|
563
581
|
edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
564
582
|
id: z.ZodUUID;
|
|
565
583
|
src: z.ZodUUID;
|
|
566
584
|
dst: z.ZodUUID;
|
|
585
|
+
typ: z.ZodEnum<{
|
|
586
|
+
network: "network";
|
|
587
|
+
route: "route";
|
|
588
|
+
}>;
|
|
589
|
+
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
590
|
+
typ: z.ZodLiteral<"comment">;
|
|
591
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
592
|
+
a: z.ZodOptional<z.ZodString>;
|
|
593
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
594
|
+
typ: z.ZodLiteral<"cache">;
|
|
595
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
596
|
+
b: z.ZodOptional<z.ZodString>;
|
|
597
|
+
}, z.core.$strip>>]>>;
|
|
567
598
|
}, z.core.$strip>>>;
|
|
568
599
|
typ: z.ZodEnum<{
|
|
569
600
|
function: "function";
|
|
@@ -572,7 +603,7 @@ export declare const zNode: z.ZodObject<{
|
|
|
572
603
|
container: "container";
|
|
573
604
|
cronjob: "cronjob";
|
|
574
605
|
database: "database";
|
|
575
|
-
|
|
606
|
+
queue: "queue";
|
|
576
607
|
proxy: "proxy";
|
|
577
608
|
vm: "vm";
|
|
578
609
|
scheduler: "scheduler";
|
|
@@ -588,7 +619,7 @@ export declare const zNode: z.ZodObject<{
|
|
|
588
619
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
589
620
|
typ: z.ZodLiteral<"container">;
|
|
590
621
|
}, z.core.$strip>, z.ZodObject<{
|
|
591
|
-
region: z.
|
|
622
|
+
region: z.ZodEnum<{
|
|
592
623
|
"africa-south1": "africa-south1";
|
|
593
624
|
"asia-east1": "asia-east1";
|
|
594
625
|
"asia-east2": "asia-east2";
|
|
@@ -616,17 +647,18 @@ export declare const zNode: z.ZodObject<{
|
|
|
616
647
|
"us-west2": "us-west2";
|
|
617
648
|
"us-west3": "us-west3";
|
|
618
649
|
"us-west4": "us-west4";
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
cpu: z.ZodOptional<z.ZodEnum<{
|
|
650
|
+
}>;
|
|
651
|
+
port: z.ZodInt;
|
|
652
|
+
cpu: z.ZodEnum<{
|
|
623
653
|
1: "1";
|
|
624
654
|
2: "2";
|
|
625
655
|
4: "4";
|
|
626
656
|
6: "6";
|
|
627
657
|
8: "8";
|
|
628
|
-
|
|
629
|
-
|
|
658
|
+
16: "16";
|
|
659
|
+
32: "32";
|
|
660
|
+
}>;
|
|
661
|
+
memory: z.ZodEnum<{
|
|
630
662
|
"128Mi": "128Mi";
|
|
631
663
|
"256Mi": "256Mi";
|
|
632
664
|
"512Mi": "512Mi";
|
|
@@ -636,25 +668,18 @@ export declare const zNode: z.ZodObject<{
|
|
|
636
668
|
"8Gi": "8Gi";
|
|
637
669
|
"16Gi": "16Gi";
|
|
638
670
|
"32Gi": "32Gi";
|
|
639
|
-
}
|
|
640
|
-
ingress: z.
|
|
671
|
+
}>;
|
|
672
|
+
ingress: z.ZodEnum<{
|
|
641
673
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
|
642
674
|
INGRESS_TRAFFIC_INTERNAL_ONLY: "INGRESS_TRAFFIC_INTERNAL_ONLY";
|
|
643
675
|
INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER: "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER";
|
|
644
|
-
}
|
|
676
|
+
}>;
|
|
645
677
|
timeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
646
678
|
maxInstances: z.ZodOptional<z.ZodInt>;
|
|
647
679
|
minInstances: z.ZodOptional<z.ZodInt>;
|
|
648
680
|
concurrency: z.ZodOptional<z.ZodInt>;
|
|
649
681
|
allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
|
|
650
|
-
|
|
651
|
-
GITHUB: "GITHUB";
|
|
652
|
-
FLAT_FILE: "FLAT_FILE";
|
|
653
|
-
DOCKER_IMAGE: "DOCKER_IMAGE";
|
|
654
|
-
}>>;
|
|
655
|
-
gitAccount: z.ZodOptional<z.ZodString>;
|
|
656
|
-
gitRepo: z.ZodOptional<z.ZodString>;
|
|
657
|
-
gitBranch: z.ZodOptional<z.ZodString>;
|
|
682
|
+
uri: z.ZodString;
|
|
658
683
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
659
684
|
typ: z.ZodLiteral<"cronjob">;
|
|
660
685
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -668,7 +693,7 @@ export declare const zNode: z.ZodObject<{
|
|
|
668
693
|
}, z.core.$strip>, z.ZodObject<{
|
|
669
694
|
cpus: z.ZodOptional<z.ZodInt>;
|
|
670
695
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
671
|
-
typ: z.ZodLiteral<"
|
|
696
|
+
typ: z.ZodLiteral<"queue">;
|
|
672
697
|
}, z.core.$strip>, z.ZodObject<{
|
|
673
698
|
foobar: z.ZodOptional<z.ZodString>;
|
|
674
699
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
@@ -679,6 +704,11 @@ export declare const zNode: z.ZodObject<{
|
|
|
679
704
|
typ: z.ZodLiteral<"vm">;
|
|
680
705
|
}, z.core.$strip>, z.ZodObject<{
|
|
681
706
|
os: z.ZodOptional<z.ZodString>;
|
|
707
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
708
|
+
typ: z.ZodLiteral<"scheduler">;
|
|
709
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
710
|
+
url: z.ZodOptional<z.ZodString>;
|
|
711
|
+
expression: z.ZodOptional<z.ZodString>;
|
|
682
712
|
}, z.core.$strip>>]>>;
|
|
683
713
|
}, z.core.$strip>;
|
|
684
714
|
export declare const zNodes: z.ZodObject<{
|
|
@@ -686,14 +716,27 @@ export declare const zNodes: z.ZodObject<{
|
|
|
686
716
|
id: z.ZodUUID;
|
|
687
717
|
name: z.ZodOptional<z.ZodString>;
|
|
688
718
|
description: z.ZodOptional<z.ZodString>;
|
|
689
|
-
x: z.
|
|
690
|
-
y: z.
|
|
691
|
-
width: z.
|
|
692
|
-
height: z.
|
|
719
|
+
x: z.ZodNumber;
|
|
720
|
+
y: z.ZodNumber;
|
|
721
|
+
width: z.ZodInt;
|
|
722
|
+
height: z.ZodInt;
|
|
693
723
|
edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
694
724
|
id: z.ZodUUID;
|
|
695
725
|
src: z.ZodUUID;
|
|
696
726
|
dst: z.ZodUUID;
|
|
727
|
+
typ: z.ZodEnum<{
|
|
728
|
+
network: "network";
|
|
729
|
+
route: "route";
|
|
730
|
+
}>;
|
|
731
|
+
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
732
|
+
typ: z.ZodLiteral<"comment">;
|
|
733
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
734
|
+
a: z.ZodOptional<z.ZodString>;
|
|
735
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
736
|
+
typ: z.ZodLiteral<"cache">;
|
|
737
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
738
|
+
b: z.ZodOptional<z.ZodString>;
|
|
739
|
+
}, z.core.$strip>>]>>;
|
|
697
740
|
}, z.core.$strip>>>;
|
|
698
741
|
typ: z.ZodEnum<{
|
|
699
742
|
function: "function";
|
|
@@ -702,7 +745,7 @@ export declare const zNodes: z.ZodObject<{
|
|
|
702
745
|
container: "container";
|
|
703
746
|
cronjob: "cronjob";
|
|
704
747
|
database: "database";
|
|
705
|
-
|
|
748
|
+
queue: "queue";
|
|
706
749
|
proxy: "proxy";
|
|
707
750
|
vm: "vm";
|
|
708
751
|
scheduler: "scheduler";
|
|
@@ -718,7 +761,7 @@ export declare const zNodes: z.ZodObject<{
|
|
|
718
761
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
719
762
|
typ: z.ZodLiteral<"container">;
|
|
720
763
|
}, z.core.$strip>, z.ZodObject<{
|
|
721
|
-
region: z.
|
|
764
|
+
region: z.ZodEnum<{
|
|
722
765
|
"africa-south1": "africa-south1";
|
|
723
766
|
"asia-east1": "asia-east1";
|
|
724
767
|
"asia-east2": "asia-east2";
|
|
@@ -746,17 +789,18 @@ export declare const zNodes: z.ZodObject<{
|
|
|
746
789
|
"us-west2": "us-west2";
|
|
747
790
|
"us-west3": "us-west3";
|
|
748
791
|
"us-west4": "us-west4";
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
cpu: z.ZodOptional<z.ZodEnum<{
|
|
792
|
+
}>;
|
|
793
|
+
port: z.ZodInt;
|
|
794
|
+
cpu: z.ZodEnum<{
|
|
753
795
|
1: "1";
|
|
754
796
|
2: "2";
|
|
755
797
|
4: "4";
|
|
756
798
|
6: "6";
|
|
757
799
|
8: "8";
|
|
758
|
-
|
|
759
|
-
|
|
800
|
+
16: "16";
|
|
801
|
+
32: "32";
|
|
802
|
+
}>;
|
|
803
|
+
memory: z.ZodEnum<{
|
|
760
804
|
"128Mi": "128Mi";
|
|
761
805
|
"256Mi": "256Mi";
|
|
762
806
|
"512Mi": "512Mi";
|
|
@@ -766,25 +810,18 @@ export declare const zNodes: z.ZodObject<{
|
|
|
766
810
|
"8Gi": "8Gi";
|
|
767
811
|
"16Gi": "16Gi";
|
|
768
812
|
"32Gi": "32Gi";
|
|
769
|
-
}
|
|
770
|
-
ingress: z.
|
|
813
|
+
}>;
|
|
814
|
+
ingress: z.ZodEnum<{
|
|
771
815
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
|
772
816
|
INGRESS_TRAFFIC_INTERNAL_ONLY: "INGRESS_TRAFFIC_INTERNAL_ONLY";
|
|
773
817
|
INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER: "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER";
|
|
774
|
-
}
|
|
818
|
+
}>;
|
|
775
819
|
timeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
776
820
|
maxInstances: z.ZodOptional<z.ZodInt>;
|
|
777
821
|
minInstances: z.ZodOptional<z.ZodInt>;
|
|
778
822
|
concurrency: z.ZodOptional<z.ZodInt>;
|
|
779
823
|
allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
|
|
780
|
-
|
|
781
|
-
GITHUB: "GITHUB";
|
|
782
|
-
FLAT_FILE: "FLAT_FILE";
|
|
783
|
-
DOCKER_IMAGE: "DOCKER_IMAGE";
|
|
784
|
-
}>>;
|
|
785
|
-
gitAccount: z.ZodOptional<z.ZodString>;
|
|
786
|
-
gitRepo: z.ZodOptional<z.ZodString>;
|
|
787
|
-
gitBranch: z.ZodOptional<z.ZodString>;
|
|
824
|
+
uri: z.ZodString;
|
|
788
825
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
789
826
|
typ: z.ZodLiteral<"cronjob">;
|
|
790
827
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -798,7 +835,7 @@ export declare const zNodes: z.ZodObject<{
|
|
|
798
835
|
}, z.core.$strip>, z.ZodObject<{
|
|
799
836
|
cpus: z.ZodOptional<z.ZodInt>;
|
|
800
837
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
801
|
-
typ: z.ZodLiteral<"
|
|
838
|
+
typ: z.ZodLiteral<"queue">;
|
|
802
839
|
}, z.core.$strip>, z.ZodObject<{
|
|
803
840
|
foobar: z.ZodOptional<z.ZodString>;
|
|
804
841
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
@@ -809,6 +846,11 @@ export declare const zNodes: z.ZodObject<{
|
|
|
809
846
|
typ: z.ZodLiteral<"vm">;
|
|
810
847
|
}, z.core.$strip>, z.ZodObject<{
|
|
811
848
|
os: z.ZodOptional<z.ZodString>;
|
|
849
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
850
|
+
typ: z.ZodLiteral<"scheduler">;
|
|
851
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
852
|
+
url: z.ZodOptional<z.ZodString>;
|
|
853
|
+
expression: z.ZodOptional<z.ZodString>;
|
|
812
854
|
}, z.core.$strip>>]>>;
|
|
813
855
|
}, z.core.$strip>>;
|
|
814
856
|
}, z.core.$strip>;
|
|
@@ -818,14 +860,27 @@ export declare const zGraph: z.ZodObject<{
|
|
|
818
860
|
id: z.ZodUUID;
|
|
819
861
|
name: z.ZodOptional<z.ZodString>;
|
|
820
862
|
description: z.ZodOptional<z.ZodString>;
|
|
821
|
-
x: z.
|
|
822
|
-
y: z.
|
|
823
|
-
width: z.
|
|
824
|
-
height: z.
|
|
863
|
+
x: z.ZodNumber;
|
|
864
|
+
y: z.ZodNumber;
|
|
865
|
+
width: z.ZodInt;
|
|
866
|
+
height: z.ZodInt;
|
|
825
867
|
edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
826
868
|
id: z.ZodUUID;
|
|
827
869
|
src: z.ZodUUID;
|
|
828
870
|
dst: z.ZodUUID;
|
|
871
|
+
typ: z.ZodEnum<{
|
|
872
|
+
network: "network";
|
|
873
|
+
route: "route";
|
|
874
|
+
}>;
|
|
875
|
+
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
876
|
+
typ: z.ZodLiteral<"comment">;
|
|
877
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
878
|
+
a: z.ZodOptional<z.ZodString>;
|
|
879
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
880
|
+
typ: z.ZodLiteral<"cache">;
|
|
881
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
882
|
+
b: z.ZodOptional<z.ZodString>;
|
|
883
|
+
}, z.core.$strip>>]>>;
|
|
829
884
|
}, z.core.$strip>>>;
|
|
830
885
|
typ: z.ZodEnum<{
|
|
831
886
|
function: "function";
|
|
@@ -834,7 +889,7 @@ export declare const zGraph: z.ZodObject<{
|
|
|
834
889
|
container: "container";
|
|
835
890
|
cronjob: "cronjob";
|
|
836
891
|
database: "database";
|
|
837
|
-
|
|
892
|
+
queue: "queue";
|
|
838
893
|
proxy: "proxy";
|
|
839
894
|
vm: "vm";
|
|
840
895
|
scheduler: "scheduler";
|
|
@@ -850,7 +905,7 @@ export declare const zGraph: z.ZodObject<{
|
|
|
850
905
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
851
906
|
typ: z.ZodLiteral<"container">;
|
|
852
907
|
}, z.core.$strip>, z.ZodObject<{
|
|
853
|
-
region: z.
|
|
908
|
+
region: z.ZodEnum<{
|
|
854
909
|
"africa-south1": "africa-south1";
|
|
855
910
|
"asia-east1": "asia-east1";
|
|
856
911
|
"asia-east2": "asia-east2";
|
|
@@ -878,17 +933,18 @@ export declare const zGraph: z.ZodObject<{
|
|
|
878
933
|
"us-west2": "us-west2";
|
|
879
934
|
"us-west3": "us-west3";
|
|
880
935
|
"us-west4": "us-west4";
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
cpu: z.ZodOptional<z.ZodEnum<{
|
|
936
|
+
}>;
|
|
937
|
+
port: z.ZodInt;
|
|
938
|
+
cpu: z.ZodEnum<{
|
|
885
939
|
1: "1";
|
|
886
940
|
2: "2";
|
|
887
941
|
4: "4";
|
|
888
942
|
6: "6";
|
|
889
943
|
8: "8";
|
|
890
|
-
|
|
891
|
-
|
|
944
|
+
16: "16";
|
|
945
|
+
32: "32";
|
|
946
|
+
}>;
|
|
947
|
+
memory: z.ZodEnum<{
|
|
892
948
|
"128Mi": "128Mi";
|
|
893
949
|
"256Mi": "256Mi";
|
|
894
950
|
"512Mi": "512Mi";
|
|
@@ -898,25 +954,18 @@ export declare const zGraph: z.ZodObject<{
|
|
|
898
954
|
"8Gi": "8Gi";
|
|
899
955
|
"16Gi": "16Gi";
|
|
900
956
|
"32Gi": "32Gi";
|
|
901
|
-
}
|
|
902
|
-
ingress: z.
|
|
957
|
+
}>;
|
|
958
|
+
ingress: z.ZodEnum<{
|
|
903
959
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
|
904
960
|
INGRESS_TRAFFIC_INTERNAL_ONLY: "INGRESS_TRAFFIC_INTERNAL_ONLY";
|
|
905
961
|
INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER: "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER";
|
|
906
|
-
}
|
|
962
|
+
}>;
|
|
907
963
|
timeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
908
964
|
maxInstances: z.ZodOptional<z.ZodInt>;
|
|
909
965
|
minInstances: z.ZodOptional<z.ZodInt>;
|
|
910
966
|
concurrency: z.ZodOptional<z.ZodInt>;
|
|
911
967
|
allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
|
|
912
|
-
|
|
913
|
-
GITHUB: "GITHUB";
|
|
914
|
-
FLAT_FILE: "FLAT_FILE";
|
|
915
|
-
DOCKER_IMAGE: "DOCKER_IMAGE";
|
|
916
|
-
}>>;
|
|
917
|
-
gitAccount: z.ZodOptional<z.ZodString>;
|
|
918
|
-
gitRepo: z.ZodOptional<z.ZodString>;
|
|
919
|
-
gitBranch: z.ZodOptional<z.ZodString>;
|
|
968
|
+
uri: z.ZodString;
|
|
920
969
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
921
970
|
typ: z.ZodLiteral<"cronjob">;
|
|
922
971
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -930,7 +979,7 @@ export declare const zGraph: z.ZodObject<{
|
|
|
930
979
|
}, z.core.$strip>, z.ZodObject<{
|
|
931
980
|
cpus: z.ZodOptional<z.ZodInt>;
|
|
932
981
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
933
|
-
typ: z.ZodLiteral<"
|
|
982
|
+
typ: z.ZodLiteral<"queue">;
|
|
934
983
|
}, z.core.$strip>, z.ZodObject<{
|
|
935
984
|
foobar: z.ZodOptional<z.ZodString>;
|
|
936
985
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
@@ -941,13 +990,14 @@ export declare const zGraph: z.ZodObject<{
|
|
|
941
990
|
typ: z.ZodLiteral<"vm">;
|
|
942
991
|
}, z.core.$strip>, z.ZodObject<{
|
|
943
992
|
os: z.ZodOptional<z.ZodString>;
|
|
993
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
994
|
+
typ: z.ZodLiteral<"scheduler">;
|
|
995
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
996
|
+
url: z.ZodOptional<z.ZodString>;
|
|
997
|
+
expression: z.ZodOptional<z.ZodString>;
|
|
944
998
|
}, z.core.$strip>>]>>;
|
|
945
999
|
}, z.core.$strip>>;
|
|
946
1000
|
}, z.core.$strip>;
|
|
947
|
-
export declare const zSchedulerNodeProps: z.ZodObject<{
|
|
948
|
-
scheduleExpression: z.ZodOptional<z.ZodString>;
|
|
949
|
-
url: z.ZodOptional<z.ZodString>;
|
|
950
|
-
}, z.core.$strip>;
|
|
951
1001
|
export declare const zNodeSourceUploadResponse: z.ZodObject<{
|
|
952
1002
|
fileName: z.ZodString;
|
|
953
1003
|
size: z.ZodCoercedBigInt<unknown>;
|
|
@@ -1055,14 +1105,27 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
1055
1105
|
id: z.ZodUUID;
|
|
1056
1106
|
name: z.ZodOptional<z.ZodString>;
|
|
1057
1107
|
description: z.ZodOptional<z.ZodString>;
|
|
1058
|
-
x: z.
|
|
1059
|
-
y: z.
|
|
1060
|
-
width: z.
|
|
1061
|
-
height: z.
|
|
1108
|
+
x: z.ZodNumber;
|
|
1109
|
+
y: z.ZodNumber;
|
|
1110
|
+
width: z.ZodInt;
|
|
1111
|
+
height: z.ZodInt;
|
|
1062
1112
|
edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1063
1113
|
id: z.ZodUUID;
|
|
1064
1114
|
src: z.ZodUUID;
|
|
1065
1115
|
dst: z.ZodUUID;
|
|
1116
|
+
typ: z.ZodEnum<{
|
|
1117
|
+
network: "network";
|
|
1118
|
+
route: "route";
|
|
1119
|
+
}>;
|
|
1120
|
+
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
1121
|
+
typ: z.ZodLiteral<"comment">;
|
|
1122
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1123
|
+
a: z.ZodOptional<z.ZodString>;
|
|
1124
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1125
|
+
typ: z.ZodLiteral<"cache">;
|
|
1126
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1127
|
+
b: z.ZodOptional<z.ZodString>;
|
|
1128
|
+
}, z.core.$strip>>]>>;
|
|
1066
1129
|
}, z.core.$strip>>>;
|
|
1067
1130
|
typ: z.ZodEnum<{
|
|
1068
1131
|
function: "function";
|
|
@@ -1071,7 +1134,7 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
1071
1134
|
container: "container";
|
|
1072
1135
|
cronjob: "cronjob";
|
|
1073
1136
|
database: "database";
|
|
1074
|
-
|
|
1137
|
+
queue: "queue";
|
|
1075
1138
|
proxy: "proxy";
|
|
1076
1139
|
vm: "vm";
|
|
1077
1140
|
scheduler: "scheduler";
|
|
@@ -1087,7 +1150,7 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
1087
1150
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1088
1151
|
typ: z.ZodLiteral<"container">;
|
|
1089
1152
|
}, z.core.$strip>, z.ZodObject<{
|
|
1090
|
-
region: z.
|
|
1153
|
+
region: z.ZodEnum<{
|
|
1091
1154
|
"africa-south1": "africa-south1";
|
|
1092
1155
|
"asia-east1": "asia-east1";
|
|
1093
1156
|
"asia-east2": "asia-east2";
|
|
@@ -1115,17 +1178,18 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
1115
1178
|
"us-west2": "us-west2";
|
|
1116
1179
|
"us-west3": "us-west3";
|
|
1117
1180
|
"us-west4": "us-west4";
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
cpu: z.ZodOptional<z.ZodEnum<{
|
|
1181
|
+
}>;
|
|
1182
|
+
port: z.ZodInt;
|
|
1183
|
+
cpu: z.ZodEnum<{
|
|
1122
1184
|
1: "1";
|
|
1123
1185
|
2: "2";
|
|
1124
1186
|
4: "4";
|
|
1125
1187
|
6: "6";
|
|
1126
1188
|
8: "8";
|
|
1127
|
-
|
|
1128
|
-
|
|
1189
|
+
16: "16";
|
|
1190
|
+
32: "32";
|
|
1191
|
+
}>;
|
|
1192
|
+
memory: z.ZodEnum<{
|
|
1129
1193
|
"128Mi": "128Mi";
|
|
1130
1194
|
"256Mi": "256Mi";
|
|
1131
1195
|
"512Mi": "512Mi";
|
|
@@ -1135,25 +1199,18 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
1135
1199
|
"8Gi": "8Gi";
|
|
1136
1200
|
"16Gi": "16Gi";
|
|
1137
1201
|
"32Gi": "32Gi";
|
|
1138
|
-
}
|
|
1139
|
-
ingress: z.
|
|
1202
|
+
}>;
|
|
1203
|
+
ingress: z.ZodEnum<{
|
|
1140
1204
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
|
1141
1205
|
INGRESS_TRAFFIC_INTERNAL_ONLY: "INGRESS_TRAFFIC_INTERNAL_ONLY";
|
|
1142
1206
|
INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER: "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER";
|
|
1143
|
-
}
|
|
1207
|
+
}>;
|
|
1144
1208
|
timeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
1145
1209
|
maxInstances: z.ZodOptional<z.ZodInt>;
|
|
1146
1210
|
minInstances: z.ZodOptional<z.ZodInt>;
|
|
1147
1211
|
concurrency: z.ZodOptional<z.ZodInt>;
|
|
1148
1212
|
allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
|
|
1149
|
-
|
|
1150
|
-
GITHUB: "GITHUB";
|
|
1151
|
-
FLAT_FILE: "FLAT_FILE";
|
|
1152
|
-
DOCKER_IMAGE: "DOCKER_IMAGE";
|
|
1153
|
-
}>>;
|
|
1154
|
-
gitAccount: z.ZodOptional<z.ZodString>;
|
|
1155
|
-
gitRepo: z.ZodOptional<z.ZodString>;
|
|
1156
|
-
gitBranch: z.ZodOptional<z.ZodString>;
|
|
1213
|
+
uri: z.ZodString;
|
|
1157
1214
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1158
1215
|
typ: z.ZodLiteral<"cronjob">;
|
|
1159
1216
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1167,7 +1224,7 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
1167
1224
|
}, z.core.$strip>, z.ZodObject<{
|
|
1168
1225
|
cpus: z.ZodOptional<z.ZodInt>;
|
|
1169
1226
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1170
|
-
typ: z.ZodLiteral<"
|
|
1227
|
+
typ: z.ZodLiteral<"queue">;
|
|
1171
1228
|
}, z.core.$strip>, z.ZodObject<{
|
|
1172
1229
|
foobar: z.ZodOptional<z.ZodString>;
|
|
1173
1230
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
@@ -1178,6 +1235,11 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
1178
1235
|
typ: z.ZodLiteral<"vm">;
|
|
1179
1236
|
}, z.core.$strip>, z.ZodObject<{
|
|
1180
1237
|
os: z.ZodOptional<z.ZodString>;
|
|
1238
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1239
|
+
typ: z.ZodLiteral<"scheduler">;
|
|
1240
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1241
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1242
|
+
expression: z.ZodOptional<z.ZodString>;
|
|
1181
1243
|
}, z.core.$strip>>]>>;
|
|
1182
1244
|
}, z.core.$strip>>;
|
|
1183
1245
|
}, z.core.$strip>;
|
|
@@ -1763,14 +1825,27 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
1763
1825
|
id: z.ZodUUID;
|
|
1764
1826
|
name: z.ZodOptional<z.ZodString>;
|
|
1765
1827
|
description: z.ZodOptional<z.ZodString>;
|
|
1766
|
-
x: z.
|
|
1767
|
-
y: z.
|
|
1768
|
-
width: z.
|
|
1769
|
-
height: z.
|
|
1828
|
+
x: z.ZodNumber;
|
|
1829
|
+
y: z.ZodNumber;
|
|
1830
|
+
width: z.ZodInt;
|
|
1831
|
+
height: z.ZodInt;
|
|
1770
1832
|
edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1771
1833
|
id: z.ZodUUID;
|
|
1772
1834
|
src: z.ZodUUID;
|
|
1773
1835
|
dst: z.ZodUUID;
|
|
1836
|
+
typ: z.ZodEnum<{
|
|
1837
|
+
network: "network";
|
|
1838
|
+
route: "route";
|
|
1839
|
+
}>;
|
|
1840
|
+
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
1841
|
+
typ: z.ZodLiteral<"comment">;
|
|
1842
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1843
|
+
a: z.ZodOptional<z.ZodString>;
|
|
1844
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1845
|
+
typ: z.ZodLiteral<"cache">;
|
|
1846
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1847
|
+
b: z.ZodOptional<z.ZodString>;
|
|
1848
|
+
}, z.core.$strip>>]>>;
|
|
1774
1849
|
}, z.core.$strip>>>;
|
|
1775
1850
|
typ: z.ZodEnum<{
|
|
1776
1851
|
function: "function";
|
|
@@ -1779,7 +1854,7 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
1779
1854
|
container: "container";
|
|
1780
1855
|
cronjob: "cronjob";
|
|
1781
1856
|
database: "database";
|
|
1782
|
-
|
|
1857
|
+
queue: "queue";
|
|
1783
1858
|
proxy: "proxy";
|
|
1784
1859
|
vm: "vm";
|
|
1785
1860
|
scheduler: "scheduler";
|
|
@@ -1795,7 +1870,7 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
1795
1870
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1796
1871
|
typ: z.ZodLiteral<"container">;
|
|
1797
1872
|
}, z.core.$strip>, z.ZodObject<{
|
|
1798
|
-
region: z.
|
|
1873
|
+
region: z.ZodEnum<{
|
|
1799
1874
|
"africa-south1": "africa-south1";
|
|
1800
1875
|
"asia-east1": "asia-east1";
|
|
1801
1876
|
"asia-east2": "asia-east2";
|
|
@@ -1823,17 +1898,18 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
1823
1898
|
"us-west2": "us-west2";
|
|
1824
1899
|
"us-west3": "us-west3";
|
|
1825
1900
|
"us-west4": "us-west4";
|
|
1826
|
-
}
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
cpu: z.ZodOptional<z.ZodEnum<{
|
|
1901
|
+
}>;
|
|
1902
|
+
port: z.ZodInt;
|
|
1903
|
+
cpu: z.ZodEnum<{
|
|
1830
1904
|
1: "1";
|
|
1831
1905
|
2: "2";
|
|
1832
1906
|
4: "4";
|
|
1833
1907
|
6: "6";
|
|
1834
1908
|
8: "8";
|
|
1835
|
-
|
|
1836
|
-
|
|
1909
|
+
16: "16";
|
|
1910
|
+
32: "32";
|
|
1911
|
+
}>;
|
|
1912
|
+
memory: z.ZodEnum<{
|
|
1837
1913
|
"128Mi": "128Mi";
|
|
1838
1914
|
"256Mi": "256Mi";
|
|
1839
1915
|
"512Mi": "512Mi";
|
|
@@ -1843,25 +1919,18 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
1843
1919
|
"8Gi": "8Gi";
|
|
1844
1920
|
"16Gi": "16Gi";
|
|
1845
1921
|
"32Gi": "32Gi";
|
|
1846
|
-
}
|
|
1847
|
-
ingress: z.
|
|
1922
|
+
}>;
|
|
1923
|
+
ingress: z.ZodEnum<{
|
|
1848
1924
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
|
1849
1925
|
INGRESS_TRAFFIC_INTERNAL_ONLY: "INGRESS_TRAFFIC_INTERNAL_ONLY";
|
|
1850
1926
|
INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER: "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER";
|
|
1851
|
-
}
|
|
1927
|
+
}>;
|
|
1852
1928
|
timeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
1853
1929
|
maxInstances: z.ZodOptional<z.ZodInt>;
|
|
1854
1930
|
minInstances: z.ZodOptional<z.ZodInt>;
|
|
1855
1931
|
concurrency: z.ZodOptional<z.ZodInt>;
|
|
1856
1932
|
allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
|
|
1857
|
-
|
|
1858
|
-
GITHUB: "GITHUB";
|
|
1859
|
-
FLAT_FILE: "FLAT_FILE";
|
|
1860
|
-
DOCKER_IMAGE: "DOCKER_IMAGE";
|
|
1861
|
-
}>>;
|
|
1862
|
-
gitAccount: z.ZodOptional<z.ZodString>;
|
|
1863
|
-
gitRepo: z.ZodOptional<z.ZodString>;
|
|
1864
|
-
gitBranch: z.ZodOptional<z.ZodString>;
|
|
1933
|
+
uri: z.ZodString;
|
|
1865
1934
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1866
1935
|
typ: z.ZodLiteral<"cronjob">;
|
|
1867
1936
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1875,7 +1944,7 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
1875
1944
|
}, z.core.$strip>, z.ZodObject<{
|
|
1876
1945
|
cpus: z.ZodOptional<z.ZodInt>;
|
|
1877
1946
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1878
|
-
typ: z.ZodLiteral<"
|
|
1947
|
+
typ: z.ZodLiteral<"queue">;
|
|
1879
1948
|
}, z.core.$strip>, z.ZodObject<{
|
|
1880
1949
|
foobar: z.ZodOptional<z.ZodString>;
|
|
1881
1950
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
@@ -1886,6 +1955,11 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
1886
1955
|
typ: z.ZodLiteral<"vm">;
|
|
1887
1956
|
}, z.core.$strip>, z.ZodObject<{
|
|
1888
1957
|
os: z.ZodOptional<z.ZodString>;
|
|
1958
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1959
|
+
typ: z.ZodLiteral<"scheduler">;
|
|
1960
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1961
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1962
|
+
expression: z.ZodOptional<z.ZodString>;
|
|
1889
1963
|
}, z.core.$strip>>]>>;
|
|
1890
1964
|
}, z.core.$strip>>;
|
|
1891
1965
|
}, z.core.$strip>;
|
|
@@ -1895,14 +1969,27 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
1895
1969
|
id: z.ZodUUID;
|
|
1896
1970
|
name: z.ZodOptional<z.ZodString>;
|
|
1897
1971
|
description: z.ZodOptional<z.ZodString>;
|
|
1898
|
-
x: z.
|
|
1899
|
-
y: z.
|
|
1900
|
-
width: z.
|
|
1901
|
-
height: z.
|
|
1972
|
+
x: z.ZodNumber;
|
|
1973
|
+
y: z.ZodNumber;
|
|
1974
|
+
width: z.ZodInt;
|
|
1975
|
+
height: z.ZodInt;
|
|
1902
1976
|
edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1903
1977
|
id: z.ZodUUID;
|
|
1904
1978
|
src: z.ZodUUID;
|
|
1905
1979
|
dst: z.ZodUUID;
|
|
1980
|
+
typ: z.ZodEnum<{
|
|
1981
|
+
network: "network";
|
|
1982
|
+
route: "route";
|
|
1983
|
+
}>;
|
|
1984
|
+
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
1985
|
+
typ: z.ZodLiteral<"comment">;
|
|
1986
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1987
|
+
a: z.ZodOptional<z.ZodString>;
|
|
1988
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1989
|
+
typ: z.ZodLiteral<"cache">;
|
|
1990
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1991
|
+
b: z.ZodOptional<z.ZodString>;
|
|
1992
|
+
}, z.core.$strip>>]>>;
|
|
1906
1993
|
}, z.core.$strip>>>;
|
|
1907
1994
|
typ: z.ZodEnum<{
|
|
1908
1995
|
function: "function";
|
|
@@ -1911,7 +1998,7 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
1911
1998
|
container: "container";
|
|
1912
1999
|
cronjob: "cronjob";
|
|
1913
2000
|
database: "database";
|
|
1914
|
-
|
|
2001
|
+
queue: "queue";
|
|
1915
2002
|
proxy: "proxy";
|
|
1916
2003
|
vm: "vm";
|
|
1917
2004
|
scheduler: "scheduler";
|
|
@@ -1927,7 +2014,7 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
1927
2014
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1928
2015
|
typ: z.ZodLiteral<"container">;
|
|
1929
2016
|
}, z.core.$strip>, z.ZodObject<{
|
|
1930
|
-
region: z.
|
|
2017
|
+
region: z.ZodEnum<{
|
|
1931
2018
|
"africa-south1": "africa-south1";
|
|
1932
2019
|
"asia-east1": "asia-east1";
|
|
1933
2020
|
"asia-east2": "asia-east2";
|
|
@@ -1955,17 +2042,18 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
1955
2042
|
"us-west2": "us-west2";
|
|
1956
2043
|
"us-west3": "us-west3";
|
|
1957
2044
|
"us-west4": "us-west4";
|
|
1958
|
-
}
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
cpu: z.ZodOptional<z.ZodEnum<{
|
|
2045
|
+
}>;
|
|
2046
|
+
port: z.ZodInt;
|
|
2047
|
+
cpu: z.ZodEnum<{
|
|
1962
2048
|
1: "1";
|
|
1963
2049
|
2: "2";
|
|
1964
2050
|
4: "4";
|
|
1965
2051
|
6: "6";
|
|
1966
2052
|
8: "8";
|
|
1967
|
-
|
|
1968
|
-
|
|
2053
|
+
16: "16";
|
|
2054
|
+
32: "32";
|
|
2055
|
+
}>;
|
|
2056
|
+
memory: z.ZodEnum<{
|
|
1969
2057
|
"128Mi": "128Mi";
|
|
1970
2058
|
"256Mi": "256Mi";
|
|
1971
2059
|
"512Mi": "512Mi";
|
|
@@ -1975,25 +2063,18 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
1975
2063
|
"8Gi": "8Gi";
|
|
1976
2064
|
"16Gi": "16Gi";
|
|
1977
2065
|
"32Gi": "32Gi";
|
|
1978
|
-
}
|
|
1979
|
-
ingress: z.
|
|
2066
|
+
}>;
|
|
2067
|
+
ingress: z.ZodEnum<{
|
|
1980
2068
|
INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
|
|
1981
2069
|
INGRESS_TRAFFIC_INTERNAL_ONLY: "INGRESS_TRAFFIC_INTERNAL_ONLY";
|
|
1982
2070
|
INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER: "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER";
|
|
1983
|
-
}
|
|
2071
|
+
}>;
|
|
1984
2072
|
timeoutSeconds: z.ZodOptional<z.ZodInt>;
|
|
1985
2073
|
maxInstances: z.ZodOptional<z.ZodInt>;
|
|
1986
2074
|
minInstances: z.ZodOptional<z.ZodInt>;
|
|
1987
2075
|
concurrency: z.ZodOptional<z.ZodInt>;
|
|
1988
2076
|
allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
|
|
1989
|
-
|
|
1990
|
-
GITHUB: "GITHUB";
|
|
1991
|
-
FLAT_FILE: "FLAT_FILE";
|
|
1992
|
-
DOCKER_IMAGE: "DOCKER_IMAGE";
|
|
1993
|
-
}>>;
|
|
1994
|
-
gitAccount: z.ZodOptional<z.ZodString>;
|
|
1995
|
-
gitRepo: z.ZodOptional<z.ZodString>;
|
|
1996
|
-
gitBranch: z.ZodOptional<z.ZodString>;
|
|
2077
|
+
uri: z.ZodString;
|
|
1997
2078
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1998
2079
|
typ: z.ZodLiteral<"cronjob">;
|
|
1999
2080
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2007,7 +2088,7 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
2007
2088
|
}, z.core.$strip>, z.ZodObject<{
|
|
2008
2089
|
cpus: z.ZodOptional<z.ZodInt>;
|
|
2009
2090
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2010
|
-
typ: z.ZodLiteral<"
|
|
2091
|
+
typ: z.ZodLiteral<"queue">;
|
|
2011
2092
|
}, z.core.$strip>, z.ZodObject<{
|
|
2012
2093
|
foobar: z.ZodOptional<z.ZodString>;
|
|
2013
2094
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
@@ -2018,6 +2099,11 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
2018
2099
|
typ: z.ZodLiteral<"vm">;
|
|
2019
2100
|
}, z.core.$strip>, z.ZodObject<{
|
|
2020
2101
|
os: z.ZodOptional<z.ZodString>;
|
|
2102
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2103
|
+
typ: z.ZodLiteral<"scheduler">;
|
|
2104
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2105
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2106
|
+
expression: z.ZodOptional<z.ZodString>;
|
|
2021
2107
|
}, z.core.$strip>>]>>;
|
|
2022
2108
|
}, z.core.$strip>>;
|
|
2023
2109
|
}, z.core.$strip>;
|
package/dist/sdk/zod.gen.js
CHANGED
|
@@ -240,10 +240,29 @@ export const zKindeOrganisationBillingAgreement = z.object({
|
|
|
240
240
|
export const zUuids = z.object({
|
|
241
241
|
ids: z.array(z.uuid())
|
|
242
242
|
});
|
|
243
|
+
export const zNetworkEdgeProps = z.object({
|
|
244
|
+
a: z.optional(z.string())
|
|
245
|
+
});
|
|
246
|
+
export const zRouteEdgeProps = z.object({
|
|
247
|
+
b: z.optional(z.string())
|
|
248
|
+
});
|
|
249
|
+
export const zEdgeType = z.enum([
|
|
250
|
+
'network',
|
|
251
|
+
'route'
|
|
252
|
+
]);
|
|
243
253
|
export const zEdge = z.object({
|
|
244
254
|
id: z.uuid(),
|
|
245
255
|
src: z.uuid(),
|
|
246
|
-
dst: z.uuid()
|
|
256
|
+
dst: z.uuid(),
|
|
257
|
+
typ: zEdgeType,
|
|
258
|
+
props: z.optional(z.union([
|
|
259
|
+
z.object({
|
|
260
|
+
typ: z.literal('comment')
|
|
261
|
+
}).and(zNetworkEdgeProps),
|
|
262
|
+
z.object({
|
|
263
|
+
typ: z.literal('cache')
|
|
264
|
+
}).and(zRouteEdgeProps)
|
|
265
|
+
]))
|
|
247
266
|
});
|
|
248
267
|
export const zNodeType = z.enum([
|
|
249
268
|
'cache',
|
|
@@ -252,7 +271,7 @@ export const zNodeType = z.enum([
|
|
|
252
271
|
'cronjob',
|
|
253
272
|
'database',
|
|
254
273
|
'function',
|
|
255
|
-
'
|
|
274
|
+
'queue',
|
|
256
275
|
'proxy',
|
|
257
276
|
'vm',
|
|
258
277
|
'scheduler'
|
|
@@ -263,11 +282,10 @@ export const zCommentNodeProps = z.object({
|
|
|
263
282
|
export const zCacheNodeProps = z.object({
|
|
264
283
|
size: z.optional(z.int())
|
|
265
284
|
});
|
|
266
|
-
export const
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
]);
|
|
285
|
+
export const zSchedulerNodeProps = z.object({
|
|
286
|
+
url: z.optional(z.string()),
|
|
287
|
+
expression: z.optional(z.string())
|
|
288
|
+
});
|
|
271
289
|
export const zRegion = z.enum([
|
|
272
290
|
'africa-south1',
|
|
273
291
|
'asia-east1',
|
|
@@ -297,6 +315,15 @@ export const zRegion = z.enum([
|
|
|
297
315
|
'us-west3',
|
|
298
316
|
'us-west4'
|
|
299
317
|
]);
|
|
318
|
+
export const zCpu = z.enum([
|
|
319
|
+
'1',
|
|
320
|
+
'2',
|
|
321
|
+
'4',
|
|
322
|
+
'6',
|
|
323
|
+
'8',
|
|
324
|
+
'16',
|
|
325
|
+
'32'
|
|
326
|
+
]);
|
|
300
327
|
export const zMemory = z.enum([
|
|
301
328
|
'128Mi',
|
|
302
329
|
'256Mi',
|
|
@@ -308,34 +335,23 @@ export const zMemory = z.enum([
|
|
|
308
335
|
'16Gi',
|
|
309
336
|
'32Gi'
|
|
310
337
|
]);
|
|
311
|
-
export const zCpu = z.enum([
|
|
312
|
-
'1',
|
|
313
|
-
'2',
|
|
314
|
-
'4',
|
|
315
|
-
'6',
|
|
316
|
-
'8'
|
|
317
|
-
]);
|
|
318
338
|
export const zIngress = z.enum([
|
|
319
339
|
'INGRESS_TRAFFIC_ALL',
|
|
320
340
|
'INGRESS_TRAFFIC_INTERNAL_ONLY',
|
|
321
341
|
'INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER'
|
|
322
342
|
]);
|
|
323
343
|
export const zContainerNodeProps = z.object({
|
|
324
|
-
region:
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
ingress: z.optional(zIngress),
|
|
344
|
+
region: zRegion,
|
|
345
|
+
port: z.int(),
|
|
346
|
+
cpu: zCpu,
|
|
347
|
+
memory: zMemory,
|
|
348
|
+
ingress: zIngress,
|
|
330
349
|
timeoutSeconds: z.optional(z.int()),
|
|
331
350
|
maxInstances: z.optional(z.int()),
|
|
332
351
|
minInstances: z.optional(z.int()),
|
|
333
352
|
concurrency: z.optional(z.int()),
|
|
334
353
|
allowUnauthenticated: z.optional(z.boolean()),
|
|
335
|
-
|
|
336
|
-
gitAccount: z.optional(z.string()),
|
|
337
|
-
gitRepo: z.optional(z.string()),
|
|
338
|
-
gitBranch: z.optional(z.string())
|
|
354
|
+
uri: z.string()
|
|
339
355
|
});
|
|
340
356
|
export const zCronJobNodeProps = z.object({
|
|
341
357
|
cronTab: z.optional(z.string())
|
|
@@ -346,7 +362,7 @@ export const zDatabaseNodeProps = z.object({
|
|
|
346
362
|
export const zFunctionNodeProps = z.object({
|
|
347
363
|
cpus: z.optional(z.int())
|
|
348
364
|
});
|
|
349
|
-
export const
|
|
365
|
+
export const zQueueNodeProps = z.object({
|
|
350
366
|
foobar: z.optional(z.string())
|
|
351
367
|
});
|
|
352
368
|
export const zProxyNodeProps = z.object({
|
|
@@ -359,10 +375,10 @@ export const zNode = z.object({
|
|
|
359
375
|
id: z.uuid(),
|
|
360
376
|
name: z.optional(z.string()),
|
|
361
377
|
description: z.optional(z.string()),
|
|
362
|
-
x: z.
|
|
363
|
-
y: z.
|
|
364
|
-
width: z.
|
|
365
|
-
height: z.
|
|
378
|
+
x: z.number(),
|
|
379
|
+
y: z.number(),
|
|
380
|
+
width: z.int(),
|
|
381
|
+
height: z.int(),
|
|
366
382
|
edges: z.optional(z.array(zEdge)),
|
|
367
383
|
typ: zNodeType,
|
|
368
384
|
props: z.optional(z.union([
|
|
@@ -385,14 +401,17 @@ export const zNode = z.object({
|
|
|
385
401
|
typ: z.literal('function')
|
|
386
402
|
}).and(zFunctionNodeProps),
|
|
387
403
|
z.object({
|
|
388
|
-
typ: z.literal('
|
|
389
|
-
}).and(
|
|
404
|
+
typ: z.literal('queue')
|
|
405
|
+
}).and(zQueueNodeProps),
|
|
390
406
|
z.object({
|
|
391
407
|
typ: z.literal('proxy')
|
|
392
408
|
}).and(zProxyNodeProps),
|
|
393
409
|
z.object({
|
|
394
410
|
typ: z.literal('vm')
|
|
395
|
-
}).and(zVmNodeProps)
|
|
411
|
+
}).and(zVmNodeProps),
|
|
412
|
+
z.object({
|
|
413
|
+
typ: z.literal('scheduler')
|
|
414
|
+
}).and(zSchedulerNodeProps)
|
|
396
415
|
]))
|
|
397
416
|
});
|
|
398
417
|
export const zNodes = z.object({
|
|
@@ -402,10 +421,6 @@ export const zGraph = z.object({
|
|
|
402
421
|
versionUUID: z.uuid(),
|
|
403
422
|
nodes: z.array(zNode)
|
|
404
423
|
});
|
|
405
|
-
export const zSchedulerNodeProps = z.object({
|
|
406
|
-
scheduleExpression: z.optional(z.string()),
|
|
407
|
-
url: z.optional(z.string())
|
|
408
|
-
});
|
|
409
424
|
export const zNodeSourceUploadResponse = z.object({
|
|
410
425
|
fileName: z.string(),
|
|
411
426
|
size: z.coerce.bigint(),
|