shoal-web-sdk 1.0.55 → 1.0.57
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 +23 -1
- package/dist/sdk/zod.gen.d.ts +62 -14
- package/dist/sdk/zod.gen.js +25 -1
- package/package.json +1 -1
package/dist/sdk/types.gen.d.ts
CHANGED
|
@@ -508,7 +508,8 @@ export type NetworkEdgeProps = {
|
|
|
508
508
|
a?: string;
|
|
509
509
|
};
|
|
510
510
|
export type RouteEdgeProps = {
|
|
511
|
-
path
|
|
511
|
+
path: string;
|
|
512
|
+
replace?: string;
|
|
512
513
|
};
|
|
513
514
|
export type OutputKeyMapping = {
|
|
514
515
|
output_key: string;
|
|
@@ -517,6 +518,27 @@ export type OutputKeyMapping = {
|
|
|
517
518
|
export type OutputEdgeProps = {
|
|
518
519
|
mappings: Array<OutputKeyMapping>;
|
|
519
520
|
};
|
|
521
|
+
export type EnvironmentNotificationType = 'LatestDeploymentStatusUpdate';
|
|
522
|
+
export type EnvironmentNotification = {
|
|
523
|
+
typ: EnvironmentNotificationType;
|
|
524
|
+
payload?: {
|
|
525
|
+
typ: 'LatestDeploymentStatusUpdate';
|
|
526
|
+
} & EnvironmentStatusUpdate;
|
|
527
|
+
};
|
|
528
|
+
export type EnvironmentStatusUpdate = {
|
|
529
|
+
id: string;
|
|
530
|
+
status: string;
|
|
531
|
+
message: string;
|
|
532
|
+
started_at: string;
|
|
533
|
+
finished_at?: string;
|
|
534
|
+
environment_id: string;
|
|
535
|
+
version: number;
|
|
536
|
+
is_latest: boolean;
|
|
537
|
+
};
|
|
538
|
+
export type UserUpdate = {
|
|
539
|
+
age: number;
|
|
540
|
+
phoneNumber: string;
|
|
541
|
+
};
|
|
520
542
|
export type Node = {
|
|
521
543
|
id: string;
|
|
522
544
|
name?: PlainString;
|
package/dist/sdk/zod.gen.d.ts
CHANGED
|
@@ -619,7 +619,8 @@ export declare const zNetworkEdgeProps: z.ZodObject<{
|
|
|
619
619
|
a: z.ZodOptional<z.ZodString>;
|
|
620
620
|
}, z.core.$strip>;
|
|
621
621
|
export declare const zRouteEdgeProps: z.ZodObject<{
|
|
622
|
-
path: z.
|
|
622
|
+
path: z.ZodString;
|
|
623
|
+
replace: z.ZodOptional<z.ZodString>;
|
|
623
624
|
}, z.core.$strip>;
|
|
624
625
|
export declare const zOutputKeyMapping: z.ZodObject<{
|
|
625
626
|
output_key: z.ZodString;
|
|
@@ -631,6 +632,40 @@ export declare const zOutputEdgeProps: z.ZodObject<{
|
|
|
631
632
|
local_env_var_key: z.ZodString;
|
|
632
633
|
}, z.core.$strip>>;
|
|
633
634
|
}, z.core.$strip>;
|
|
635
|
+
export declare const zEnvironmentNotificationType: z.ZodEnum<{
|
|
636
|
+
LatestDeploymentStatusUpdate: "LatestDeploymentStatusUpdate";
|
|
637
|
+
}>;
|
|
638
|
+
export declare const zEnvironmentStatusUpdate: z.ZodObject<{
|
|
639
|
+
id: z.ZodUUID;
|
|
640
|
+
status: z.ZodString;
|
|
641
|
+
message: z.ZodString;
|
|
642
|
+
started_at: z.ZodISODateTime;
|
|
643
|
+
finished_at: z.ZodOptional<z.ZodISODateTime>;
|
|
644
|
+
environment_id: z.ZodUUID;
|
|
645
|
+
version: z.ZodInt;
|
|
646
|
+
is_latest: z.ZodBoolean;
|
|
647
|
+
}, z.core.$strip>;
|
|
648
|
+
export declare const zEnvironmentNotification: z.ZodObject<{
|
|
649
|
+
typ: z.ZodEnum<{
|
|
650
|
+
LatestDeploymentStatusUpdate: "LatestDeploymentStatusUpdate";
|
|
651
|
+
}>;
|
|
652
|
+
payload: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
653
|
+
typ: z.ZodLiteral<"LatestDeploymentStatusUpdate">;
|
|
654
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
655
|
+
id: z.ZodUUID;
|
|
656
|
+
status: z.ZodString;
|
|
657
|
+
message: z.ZodString;
|
|
658
|
+
started_at: z.ZodISODateTime;
|
|
659
|
+
finished_at: z.ZodOptional<z.ZodISODateTime>;
|
|
660
|
+
environment_id: z.ZodUUID;
|
|
661
|
+
version: z.ZodInt;
|
|
662
|
+
is_latest: z.ZodBoolean;
|
|
663
|
+
}, z.core.$strip>>>;
|
|
664
|
+
}, z.core.$strip>;
|
|
665
|
+
export declare const zUserUpdate: z.ZodObject<{
|
|
666
|
+
age: z.ZodInt;
|
|
667
|
+
phoneNumber: z.ZodString;
|
|
668
|
+
}, z.core.$strip>;
|
|
634
669
|
export declare const zEdgeType: z.ZodEnum<{
|
|
635
670
|
network: "network";
|
|
636
671
|
route: "route";
|
|
@@ -652,7 +687,8 @@ export declare const zEdge: z.ZodObject<{
|
|
|
652
687
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
653
688
|
typ: z.ZodLiteral<"route">;
|
|
654
689
|
}, z.core.$strip>, z.ZodObject<{
|
|
655
|
-
path: z.
|
|
690
|
+
path: z.ZodString;
|
|
691
|
+
replace: z.ZodOptional<z.ZodString>;
|
|
656
692
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
657
693
|
typ: z.ZodLiteral<"output">;
|
|
658
694
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -951,7 +987,8 @@ export declare const zNode: z.ZodObject<{
|
|
|
951
987
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
952
988
|
typ: z.ZodLiteral<"route">;
|
|
953
989
|
}, z.core.$strip>, z.ZodObject<{
|
|
954
|
-
path: z.
|
|
990
|
+
path: z.ZodString;
|
|
991
|
+
replace: z.ZodOptional<z.ZodString>;
|
|
955
992
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
956
993
|
typ: z.ZodLiteral<"output">;
|
|
957
994
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1181,7 +1218,8 @@ export declare const zNodes: z.ZodObject<{
|
|
|
1181
1218
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1182
1219
|
typ: z.ZodLiteral<"route">;
|
|
1183
1220
|
}, z.core.$strip>, z.ZodObject<{
|
|
1184
|
-
path: z.
|
|
1221
|
+
path: z.ZodString;
|
|
1222
|
+
replace: z.ZodOptional<z.ZodString>;
|
|
1185
1223
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1186
1224
|
typ: z.ZodLiteral<"output">;
|
|
1187
1225
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1414,7 +1452,8 @@ export declare const zGraph: z.ZodObject<{
|
|
|
1414
1452
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1415
1453
|
typ: z.ZodLiteral<"route">;
|
|
1416
1454
|
}, z.core.$strip>, z.ZodObject<{
|
|
1417
|
-
path: z.
|
|
1455
|
+
path: z.ZodString;
|
|
1456
|
+
replace: z.ZodOptional<z.ZodString>;
|
|
1418
1457
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1419
1458
|
typ: z.ZodLiteral<"output">;
|
|
1420
1459
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1652,7 +1691,8 @@ export declare const zBlueprintDetail: z.ZodObject<{
|
|
|
1652
1691
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1653
1692
|
typ: z.ZodLiteral<"route">;
|
|
1654
1693
|
}, z.core.$strip>, z.ZodObject<{
|
|
1655
|
-
path: z.
|
|
1694
|
+
path: z.ZodString;
|
|
1695
|
+
replace: z.ZodOptional<z.ZodString>;
|
|
1656
1696
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
1657
1697
|
typ: z.ZodLiteral<"output">;
|
|
1658
1698
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2508,7 +2548,8 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
|
|
|
2508
2548
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2509
2549
|
typ: z.ZodLiteral<"route">;
|
|
2510
2550
|
}, z.core.$strip>, z.ZodObject<{
|
|
2511
|
-
path: z.
|
|
2551
|
+
path: z.ZodString;
|
|
2552
|
+
replace: z.ZodOptional<z.ZodString>;
|
|
2512
2553
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2513
2554
|
typ: z.ZodLiteral<"output">;
|
|
2514
2555
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2740,7 +2781,8 @@ export declare const zUpdateGraphM2mData: z.ZodObject<{
|
|
|
2740
2781
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2741
2782
|
typ: z.ZodLiteral<"route">;
|
|
2742
2783
|
}, z.core.$strip>, z.ZodObject<{
|
|
2743
|
-
path: z.
|
|
2784
|
+
path: z.ZodString;
|
|
2785
|
+
replace: z.ZodOptional<z.ZodString>;
|
|
2744
2786
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2745
2787
|
typ: z.ZodLiteral<"output">;
|
|
2746
2788
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2989,7 +3031,8 @@ export declare const zFetchNodeM2mResponse: z.ZodObject<{
|
|
|
2989
3031
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2990
3032
|
typ: z.ZodLiteral<"route">;
|
|
2991
3033
|
}, z.core.$strip>, z.ZodObject<{
|
|
2992
|
-
path: z.
|
|
3034
|
+
path: z.ZodString;
|
|
3035
|
+
replace: z.ZodOptional<z.ZodString>;
|
|
2993
3036
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
2994
3037
|
typ: z.ZodLiteral<"output">;
|
|
2995
3038
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3219,7 +3262,8 @@ export declare const zUpdateNodeM2mData: z.ZodObject<{
|
|
|
3219
3262
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3220
3263
|
typ: z.ZodLiteral<"route">;
|
|
3221
3264
|
}, z.core.$strip>, z.ZodObject<{
|
|
3222
|
-
path: z.
|
|
3265
|
+
path: z.ZodString;
|
|
3266
|
+
replace: z.ZodOptional<z.ZodString>;
|
|
3223
3267
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3224
3268
|
typ: z.ZodLiteral<"output">;
|
|
3225
3269
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3518,7 +3562,8 @@ export declare const zGetBlueprintM2mResponse: z.ZodObject<{
|
|
|
3518
3562
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3519
3563
|
typ: z.ZodLiteral<"route">;
|
|
3520
3564
|
}, z.core.$strip>, z.ZodObject<{
|
|
3521
|
-
path: z.
|
|
3565
|
+
path: z.ZodString;
|
|
3566
|
+
replace: z.ZodOptional<z.ZodString>;
|
|
3522
3567
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3523
3568
|
typ: z.ZodLiteral<"output">;
|
|
3524
3569
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -4409,7 +4454,8 @@ export declare const zPreviewBlueprintResponse: z.ZodObject<{
|
|
|
4409
4454
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
4410
4455
|
typ: z.ZodLiteral<"route">;
|
|
4411
4456
|
}, z.core.$strip>, z.ZodObject<{
|
|
4412
|
-
path: z.
|
|
4457
|
+
path: z.ZodString;
|
|
4458
|
+
replace: z.ZodOptional<z.ZodString>;
|
|
4413
4459
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
4414
4460
|
typ: z.ZodLiteral<"output">;
|
|
4415
4461
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -5427,7 +5473,8 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
|
|
|
5427
5473
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
5428
5474
|
typ: z.ZodLiteral<"route">;
|
|
5429
5475
|
}, z.core.$strip>, z.ZodObject<{
|
|
5430
|
-
path: z.
|
|
5476
|
+
path: z.ZodString;
|
|
5477
|
+
replace: z.ZodOptional<z.ZodString>;
|
|
5431
5478
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
5432
5479
|
typ: z.ZodLiteral<"output">;
|
|
5433
5480
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -5659,7 +5706,8 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
|
|
|
5659
5706
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
5660
5707
|
typ: z.ZodLiteral<"route">;
|
|
5661
5708
|
}, z.core.$strip>, z.ZodObject<{
|
|
5662
|
-
path: z.
|
|
5709
|
+
path: z.ZodString;
|
|
5710
|
+
replace: z.ZodOptional<z.ZodString>;
|
|
5663
5711
|
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
5664
5712
|
typ: z.ZodLiteral<"output">;
|
|
5665
5713
|
}, z.core.$strip>, z.ZodObject<{
|
package/dist/sdk/zod.gen.js
CHANGED
|
@@ -423,7 +423,8 @@ export const zNetworkEdgeProps = z.object({
|
|
|
423
423
|
a: z.optional(z.string())
|
|
424
424
|
});
|
|
425
425
|
export const zRouteEdgeProps = z.object({
|
|
426
|
-
path: z.
|
|
426
|
+
path: z.string(),
|
|
427
|
+
replace: z.optional(z.string())
|
|
427
428
|
});
|
|
428
429
|
export const zOutputKeyMapping = z.object({
|
|
429
430
|
output_key: z.string(),
|
|
@@ -432,6 +433,29 @@ export const zOutputKeyMapping = z.object({
|
|
|
432
433
|
export const zOutputEdgeProps = z.object({
|
|
433
434
|
mappings: z.array(zOutputKeyMapping)
|
|
434
435
|
});
|
|
436
|
+
export const zEnvironmentNotificationType = z.enum([
|
|
437
|
+
'LatestDeploymentStatusUpdate'
|
|
438
|
+
]);
|
|
439
|
+
export const zEnvironmentStatusUpdate = z.object({
|
|
440
|
+
id: z.uuid(),
|
|
441
|
+
status: z.string(),
|
|
442
|
+
message: z.string(),
|
|
443
|
+
started_at: z.iso.datetime(),
|
|
444
|
+
finished_at: z.optional(z.iso.datetime()),
|
|
445
|
+
environment_id: z.uuid(),
|
|
446
|
+
version: z.int(),
|
|
447
|
+
is_latest: z.boolean()
|
|
448
|
+
});
|
|
449
|
+
export const zEnvironmentNotification = z.object({
|
|
450
|
+
typ: zEnvironmentNotificationType,
|
|
451
|
+
payload: z.optional(z.object({
|
|
452
|
+
typ: z.literal('LatestDeploymentStatusUpdate')
|
|
453
|
+
}).and(zEnvironmentStatusUpdate))
|
|
454
|
+
});
|
|
455
|
+
export const zUserUpdate = z.object({
|
|
456
|
+
age: z.int(),
|
|
457
|
+
phoneNumber: z.string()
|
|
458
|
+
});
|
|
435
459
|
export const zEdgeType = z.enum([
|
|
436
460
|
'network',
|
|
437
461
|
'route',
|