shoal-web-sdk 1.0.55 → 1.0.56

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.
@@ -517,6 +517,27 @@ export type OutputKeyMapping = {
517
517
  export type OutputEdgeProps = {
518
518
  mappings: Array<OutputKeyMapping>;
519
519
  };
520
+ export type EnvironmentNotificationType = 'LatestDeploymentStatusUpdate';
521
+ export type EnvironmentNotification = {
522
+ typ: EnvironmentNotificationType;
523
+ payload?: {
524
+ typ: 'LatestDeploymentStatusUpdate';
525
+ } & EnvironmentStatusUpdate;
526
+ };
527
+ export type EnvironmentStatusUpdate = {
528
+ id: string;
529
+ status: string;
530
+ message: string;
531
+ started_at: string;
532
+ finished_at?: string;
533
+ environment_id: string;
534
+ version: number;
535
+ is_latest: boolean;
536
+ };
537
+ export type UserUpdate = {
538
+ age: number;
539
+ phoneNumber: string;
540
+ };
520
541
  export type Node = {
521
542
  id: string;
522
543
  name?: PlainString;
@@ -631,6 +631,40 @@ export declare const zOutputEdgeProps: z.ZodObject<{
631
631
  local_env_var_key: z.ZodString;
632
632
  }, z.core.$strip>>;
633
633
  }, z.core.$strip>;
634
+ export declare const zEnvironmentNotificationType: z.ZodEnum<{
635
+ LatestDeploymentStatusUpdate: "LatestDeploymentStatusUpdate";
636
+ }>;
637
+ export declare const zEnvironmentStatusUpdate: z.ZodObject<{
638
+ id: z.ZodUUID;
639
+ status: z.ZodString;
640
+ message: z.ZodString;
641
+ started_at: z.ZodISODateTime;
642
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
643
+ environment_id: z.ZodUUID;
644
+ version: z.ZodInt;
645
+ is_latest: z.ZodBoolean;
646
+ }, z.core.$strip>;
647
+ export declare const zEnvironmentNotification: z.ZodObject<{
648
+ typ: z.ZodEnum<{
649
+ LatestDeploymentStatusUpdate: "LatestDeploymentStatusUpdate";
650
+ }>;
651
+ payload: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
652
+ typ: z.ZodLiteral<"LatestDeploymentStatusUpdate">;
653
+ }, z.core.$strip>, z.ZodObject<{
654
+ id: z.ZodUUID;
655
+ status: z.ZodString;
656
+ message: z.ZodString;
657
+ started_at: z.ZodISODateTime;
658
+ finished_at: z.ZodOptional<z.ZodISODateTime>;
659
+ environment_id: z.ZodUUID;
660
+ version: z.ZodInt;
661
+ is_latest: z.ZodBoolean;
662
+ }, z.core.$strip>>>;
663
+ }, z.core.$strip>;
664
+ export declare const zUserUpdate: z.ZodObject<{
665
+ age: z.ZodInt;
666
+ phoneNumber: z.ZodString;
667
+ }, z.core.$strip>;
634
668
  export declare const zEdgeType: z.ZodEnum<{
635
669
  network: "network";
636
670
  route: "route";
@@ -432,6 +432,29 @@ export const zOutputKeyMapping = z.object({
432
432
  export const zOutputEdgeProps = z.object({
433
433
  mappings: z.array(zOutputKeyMapping)
434
434
  });
435
+ export const zEnvironmentNotificationType = z.enum([
436
+ 'LatestDeploymentStatusUpdate'
437
+ ]);
438
+ export const zEnvironmentStatusUpdate = z.object({
439
+ id: z.uuid(),
440
+ status: z.string(),
441
+ message: z.string(),
442
+ started_at: z.iso.datetime(),
443
+ finished_at: z.optional(z.iso.datetime()),
444
+ environment_id: z.uuid(),
445
+ version: z.int(),
446
+ is_latest: z.boolean()
447
+ });
448
+ export const zEnvironmentNotification = z.object({
449
+ typ: zEnvironmentNotificationType,
450
+ payload: z.optional(z.object({
451
+ typ: z.literal('LatestDeploymentStatusUpdate')
452
+ }).and(zEnvironmentStatusUpdate))
453
+ });
454
+ export const zUserUpdate = z.object({
455
+ age: z.int(),
456
+ phoneNumber: z.string()
457
+ });
435
458
  export const zEdgeType = z.enum([
436
459
  'network',
437
460
  'route',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoal-web-sdk",
3
- "version": "1.0.55",
3
+ "version": "1.0.56",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build-hooks": "npx tsx tanstack-codegen/generator.ts",