shoal-web-sdk 1.0.11 → 1.0.13

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.
@@ -9,6 +9,31 @@ export type EnvironmentVariable = {
9
9
  key: string;
10
10
  value: string;
11
11
  };
12
+ export type UpdateBlueprint = {
13
+ name?: string;
14
+ shortDescription?: string;
15
+ description?: string;
16
+ exported?: Array<string>;
17
+ };
18
+ export type CreateBlueprint = {
19
+ name: string;
20
+ shortDescription?: string;
21
+ description: string;
22
+ exported: Array<string>;
23
+ };
24
+ export type Blueprint = {
25
+ id: string;
26
+ environment: string;
27
+ ref: string;
28
+ updatedAt: string;
29
+ createdAt: string;
30
+ author: string;
31
+ updatedBy: string;
32
+ name: string;
33
+ shortDescription: string;
34
+ description: string;
35
+ exported: Array<EnvironmentVariable>;
36
+ };
12
37
  export type PlatformTier = 'free' | 'pro' | 'enterprise';
13
38
  export type BillingInterval = 'monthly' | 'annual';
14
39
  export type BillingPlanLookupKey = 'free-monthly' | 'pro-monthly' | 'pro-annual';
@@ -40,6 +65,9 @@ export type Pagination = {
40
65
  limit: number;
41
66
  total: number;
42
67
  };
68
+ export type PaginatedBlueprints = Pagination & {
69
+ blueprints: Array<Blueprint>;
70
+ };
43
71
  export type PaginatedInvites = Pagination & {
44
72
  invites: Array<Invite>;
45
73
  };
@@ -361,6 +389,8 @@ export type Node = {
361
389
  } & DatabaseNodeProps) | ({
362
390
  typ: 'function';
363
391
  } & FunctionNodeProps) | ({
392
+ typ: 'neondb';
393
+ } & NeonDbNodeProps) | ({
364
394
  typ: 'queue';
365
395
  } & QueueNodeProps) | ({
366
396
  typ: 'proxy';
@@ -371,7 +401,7 @@ export type Node = {
371
401
  } & SchedulerNodeProps);
372
402
  };
373
403
  export type EdgeType = 'network' | 'route';
374
- export type NodeType = 'cache' | 'comment' | 'container' | 'cronjob' | 'database' | 'function' | 'queue' | 'proxy' | 'vm' | 'scheduler';
404
+ export type NodeType = 'cache' | 'comment' | 'container' | 'cronjob' | 'database' | 'function' | 'neondb' | 'queue' | 'proxy' | 'vm' | 'scheduler';
375
405
  export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';
376
406
  export type CommentNodeProps = {
377
407
  comment?: string;
@@ -420,6 +450,21 @@ export type CronJobNodeProps = {
420
450
  export type DatabaseNodeProps = {
421
451
  space?: number;
422
452
  };
453
+ export type NeonDbNodeProps = {
454
+ orgId: string;
455
+ orgName: string;
456
+ projectId?: string;
457
+ projectName?: string;
458
+ branchId?: string;
459
+ branchName?: string;
460
+ dbName: string;
461
+ roleName: string;
462
+ regionId: string;
463
+ pgVersion: number;
464
+ autoscalingLimitMinCu?: number;
465
+ autoscalingLimitMaxCu?: number;
466
+ suspendTimeoutSeconds: number;
467
+ };
423
468
  export type FunctionNodeProps = {
424
469
  region: Region;
425
470
  language: string;
@@ -578,6 +623,17 @@ export type DeploymentStatusInformation = {
578
623
  status?: DeploymentStatus;
579
624
  message?: string;
580
625
  };
626
+ export type SetSpacePropertyRequest = {
627
+ key: string;
628
+ value: string;
629
+ };
630
+ export type SpaceProperty = {
631
+ key: string;
632
+ value: string;
633
+ };
634
+ export type SpacePropertiesResponse = {
635
+ properties: Array<SpaceProperty>;
636
+ };
581
637
  /**
582
638
  * Clients known etag of the version.
583
639
  */
@@ -658,6 +714,22 @@ export type RepoOwner = string;
658
714
  * Repository name.
659
715
  */
660
716
  export type RepoName = string;
717
+ /**
718
+ * Blueprint UUID.
719
+ */
720
+ export type BlueprintIdQuery = string;
721
+ /**
722
+ * Blueprint UUID.
723
+ */
724
+ export type BlueprintId = string;
725
+ /**
726
+ * Search value for a searchable field on an endpoint.
727
+ */
728
+ export type Search = string;
729
+ /**
730
+ * The order results will appear in.
731
+ */
732
+ export type Order = 'asc' | 'desc';
661
733
  /**
662
734
  * Page number (1-based).
663
735
  */
@@ -1515,6 +1587,129 @@ export type RecordOnboardingAnalyticsResponses = {
1515
1587
  */
1516
1588
  202: unknown;
1517
1589
  };
1590
+ export type PreviewBlueprintData = {
1591
+ body?: never;
1592
+ path: {
1593
+ /**
1594
+ * Blueprint UUID.
1595
+ */
1596
+ blueprint: string;
1597
+ };
1598
+ query?: never;
1599
+ url: '/blueprints/preview/{blueprint}';
1600
+ };
1601
+ export type PreviewBlueprintErrors = {
1602
+ /**
1603
+ * Bad request.
1604
+ */
1605
+ 400: ErrorResponse;
1606
+ /**
1607
+ * Unauthorised user.
1608
+ */
1609
+ 401: ErrorResponse;
1610
+ /**
1611
+ * Invalid credentials.
1612
+ */
1613
+ 403: ErrorResponse;
1614
+ /**
1615
+ * Unexpected error.
1616
+ */
1617
+ 500: ErrorResponse;
1618
+ };
1619
+ export type PreviewBlueprintError = PreviewBlueprintErrors[keyof PreviewBlueprintErrors];
1620
+ export type PreviewBlueprintResponses = {
1621
+ /**
1622
+ * The blueprint nodes.
1623
+ */
1624
+ 200: Nodes;
1625
+ };
1626
+ export type PreviewBlueprintResponse = PreviewBlueprintResponses[keyof PreviewBlueprintResponses];
1627
+ export type ViewBlueprintsData = {
1628
+ body?: never;
1629
+ path?: never;
1630
+ query?: {
1631
+ /**
1632
+ * Page size (max 100).
1633
+ */
1634
+ limit?: number;
1635
+ /**
1636
+ * Page number (1-based).
1637
+ */
1638
+ page?: number;
1639
+ /**
1640
+ * Search value for a searchable field on an endpoint.
1641
+ */
1642
+ search?: string;
1643
+ /**
1644
+ * The order results will appear in.
1645
+ */
1646
+ order?: 'asc' | 'desc';
1647
+ };
1648
+ url: '/blueprints/view';
1649
+ };
1650
+ export type ViewBlueprintsErrors = {
1651
+ /**
1652
+ * Bad request.
1653
+ */
1654
+ 400: ErrorResponse;
1655
+ /**
1656
+ * Unauthorised user.
1657
+ */
1658
+ 401: ErrorResponse;
1659
+ /**
1660
+ * Invalid credentials.
1661
+ */
1662
+ 403: ErrorResponse;
1663
+ /**
1664
+ * Unexpected error.
1665
+ */
1666
+ 500: ErrorResponse;
1667
+ };
1668
+ export type ViewBlueprintsError = ViewBlueprintsErrors[keyof ViewBlueprintsErrors];
1669
+ export type ViewBlueprintsResponses = {
1670
+ /**
1671
+ * Paginated blueprints
1672
+ */
1673
+ 200: PaginatedBlueprints;
1674
+ };
1675
+ export type ViewBlueprintsResponse = ViewBlueprintsResponses[keyof ViewBlueprintsResponses];
1676
+ export type GetBlueprintData = {
1677
+ body?: never;
1678
+ path: {
1679
+ /**
1680
+ * Blueprint UUID.
1681
+ */
1682
+ blueprint: string;
1683
+ };
1684
+ query?: never;
1685
+ url: '/blueprints/{blueprint}';
1686
+ };
1687
+ export type GetBlueprintErrors = {
1688
+ /**
1689
+ * Bad request.
1690
+ */
1691
+ 400: ErrorResponse;
1692
+ /**
1693
+ * Unauthorised user.
1694
+ */
1695
+ 401: ErrorResponse;
1696
+ /**
1697
+ * Invalid credentials.
1698
+ */
1699
+ 403: ErrorResponse;
1700
+ /**
1701
+ * Unexpected error.
1702
+ */
1703
+ 500: ErrorResponse;
1704
+ };
1705
+ export type GetBlueprintError = GetBlueprintErrors[keyof GetBlueprintErrors];
1706
+ export type GetBlueprintResponses = {
1707
+ /**
1708
+ * The blueprint.
1709
+ */
1710
+ 200: Blueprint;
1711
+ };
1712
+ export type GetBlueprintResponse = GetBlueprintResponses[keyof GetBlueprintResponses];
1518
1713
  export type CreateSpaceData = {
1519
1714
  body: CreateSpace;
1520
1715
  path?: never;
@@ -2518,6 +2713,149 @@ export type CreateEnvironmentVariableResponses = {
2518
2713
  */
2519
2714
  201: unknown;
2520
2715
  };
2716
+ export type DeleteBlueprintData = {
2717
+ body?: never;
2718
+ path: {
2719
+ /**
2720
+ * Blueprint UUID.
2721
+ */
2722
+ blueprint: string;
2723
+ /**
2724
+ * The space handle. This must be globally unique.
2725
+ */
2726
+ spaceHandle: string;
2727
+ /**
2728
+ * A project name. This must be unique to a space.
2729
+ */
2730
+ projectHandle: string;
2731
+ /**
2732
+ * An environment name (e.g., dev, prod, foo-bar). This must be unique to a project.
2733
+ */
2734
+ environmentHandle: string;
2735
+ };
2736
+ query?: never;
2737
+ url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{blueprint}';
2738
+ };
2739
+ export type DeleteBlueprintErrors = {
2740
+ /**
2741
+ * Bad request.
2742
+ */
2743
+ 400: ErrorResponse;
2744
+ /**
2745
+ * Unauthorised user.
2746
+ */
2747
+ 401: ErrorResponse;
2748
+ /**
2749
+ * Invalid credentials.
2750
+ */
2751
+ 403: ErrorResponse;
2752
+ /**
2753
+ * Unexpected error.
2754
+ */
2755
+ 500: ErrorResponse;
2756
+ };
2757
+ export type DeleteBlueprintError = DeleteBlueprintErrors[keyof DeleteBlueprintErrors];
2758
+ export type DeleteBlueprintResponses = {
2759
+ /**
2760
+ * Blueprint deleted.
2761
+ */
2762
+ 204: void;
2763
+ };
2764
+ export type DeleteBlueprintResponse = DeleteBlueprintResponses[keyof DeleteBlueprintResponses];
2765
+ export type UpdateBlueprintData = {
2766
+ body: UpdateBlueprint;
2767
+ path: {
2768
+ /**
2769
+ * Blueprint UUID.
2770
+ */
2771
+ blueprint: string;
2772
+ /**
2773
+ * The space handle. This must be globally unique.
2774
+ */
2775
+ spaceHandle: string;
2776
+ /**
2777
+ * A project name. This must be unique to a space.
2778
+ */
2779
+ projectHandle: string;
2780
+ /**
2781
+ * An environment name (e.g., dev, prod, foo-bar). This must be unique to a project.
2782
+ */
2783
+ environmentHandle: string;
2784
+ };
2785
+ query?: never;
2786
+ url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{blueprint}';
2787
+ };
2788
+ export type UpdateBlueprintErrors = {
2789
+ /**
2790
+ * Bad request.
2791
+ */
2792
+ 400: ErrorResponse;
2793
+ /**
2794
+ * Unauthorised user.
2795
+ */
2796
+ 401: ErrorResponse;
2797
+ /**
2798
+ * Invalid credentials.
2799
+ */
2800
+ 403: ErrorResponse;
2801
+ /**
2802
+ * Unexpected error.
2803
+ */
2804
+ 500: ErrorResponse;
2805
+ };
2806
+ export type UpdateBlueprintError = UpdateBlueprintErrors[keyof UpdateBlueprintErrors];
2807
+ export type UpdateBlueprintResponses = {
2808
+ /**
2809
+ * Updated Blueprint.
2810
+ */
2811
+ 200: Blueprint;
2812
+ };
2813
+ export type UpdateBlueprintResponse = UpdateBlueprintResponses[keyof UpdateBlueprintResponses];
2814
+ export type CreateBlueprintData = {
2815
+ body: CreateBlueprint;
2816
+ path: {
2817
+ /**
2818
+ * The space handle. This must be globally unique.
2819
+ */
2820
+ spaceHandle: string;
2821
+ /**
2822
+ * A project name. This must be unique to a space.
2823
+ */
2824
+ projectHandle: string;
2825
+ /**
2826
+ * An environment name (e.g., dev, prod, foo-bar). This must be unique to a project.
2827
+ */
2828
+ environmentHandle: string;
2829
+ };
2830
+ query?: never;
2831
+ url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/blueprints/create';
2832
+ };
2833
+ export type CreateBlueprintErrors = {
2834
+ /**
2835
+ * Bad request.
2836
+ */
2837
+ 400: ErrorResponse;
2838
+ /**
2839
+ * Unauthorised user.
2840
+ */
2841
+ 401: ErrorResponse;
2842
+ /**
2843
+ * Invalid credentials.
2844
+ */
2845
+ 403: ErrorResponse;
2846
+ /**
2847
+ * Unexpected error.
2848
+ */
2849
+ 500: ErrorResponse;
2850
+ };
2851
+ export type CreateBlueprintError = CreateBlueprintErrors[keyof CreateBlueprintErrors];
2852
+ export type CreateBlueprintResponses = {
2853
+ /**
2854
+ * Blueprint created
2855
+ */
2856
+ 201: Blueprint;
2857
+ };
2858
+ export type CreateBlueprintResponse = CreateBlueprintResponses[keyof CreateBlueprintResponses];
2521
2859
  export type GetVersionData = {
2522
2860
  body?: never;
2523
2861
  path: {
@@ -2571,6 +2909,59 @@ export type GetVersionResponses = {
2571
2909
  200: Version;
2572
2910
  };
2573
2911
  export type GetVersionResponse = GetVersionResponses[keyof GetVersionResponses];
2912
+ export type ImportBlueprintData = {
2913
+ body?: never;
2914
+ path: {
2915
+ /**
2916
+ * The space handle. This must be globally unique.
2917
+ */
2918
+ spaceHandle: string;
2919
+ /**
2920
+ * A project name. This must be unique to a space.
2921
+ */
2922
+ projectHandle: string;
2923
+ /**
2924
+ * An environment name (e.g., dev, prod, foo-bar). This must be unique to a project.
2925
+ */
2926
+ environmentHandle: string;
2927
+ /**
2928
+ * A version number with in an environment.
2929
+ */
2930
+ version: string;
2931
+ };
2932
+ query: {
2933
+ /**
2934
+ * Blueprint UUID.
2935
+ */
2936
+ blueprint: string;
2937
+ };
2938
+ url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/import';
2939
+ };
2940
+ export type ImportBlueprintErrors = {
2941
+ /**
2942
+ * Unauthorised user.
2943
+ */
2944
+ 401: ErrorResponse;
2945
+ /**
2946
+ * Invalid credentials.
2947
+ */
2948
+ 403: ErrorResponse;
2949
+ /**
2950
+ * Related content not found.
2951
+ */
2952
+ 404: ErrorResponse;
2953
+ /**
2954
+ * Unexpected error.
2955
+ */
2956
+ 500: ErrorResponse;
2957
+ };
2958
+ export type ImportBlueprintError = ImportBlueprintErrors[keyof ImportBlueprintErrors];
2959
+ export type ImportBlueprintResponses = {
2960
+ /**
2961
+ * The blueprint contents was successfully imported. This does not overwrite existing graph content.
2962
+ */
2963
+ 202: unknown;
2964
+ };
2574
2965
  export type GetGraphOverviewData = {
2575
2966
  body?: never;
2576
2967
  path: {
@@ -3243,3 +3634,72 @@ export type ListBillingInvoicesResponses = {
3243
3634
  200: InvoicesResponse;
3244
3635
  };
3245
3636
  export type ListBillingInvoicesResponse = ListBillingInvoicesResponses[keyof ListBillingInvoicesResponses];
3637
+ export type GetSpacePropertiesData = {
3638
+ body?: never;
3639
+ path: {
3640
+ /**
3641
+ * The space handle. This must be globally unique.
3642
+ */
3643
+ spaceHandle: string;
3644
+ };
3645
+ query?: never;
3646
+ url: '/auth/{spaceHandle}/properties';
3647
+ };
3648
+ export type GetSpacePropertiesErrors = {
3649
+ /**
3650
+ * Unauthorised user.
3651
+ */
3652
+ 401: ErrorResponse;
3653
+ /**
3654
+ * Invalid credentials.
3655
+ */
3656
+ 403: ErrorResponse;
3657
+ /**
3658
+ * Unexpected error.
3659
+ */
3660
+ 500: ErrorResponse;
3661
+ };
3662
+ export type GetSpacePropertiesError = GetSpacePropertiesErrors[keyof GetSpacePropertiesErrors];
3663
+ export type GetSpacePropertiesResponses = {
3664
+ /**
3665
+ * The space properties.
3666
+ */
3667
+ 200: SpacePropertiesResponse;
3668
+ };
3669
+ export type GetSpacePropertiesResponse = GetSpacePropertiesResponses[keyof GetSpacePropertiesResponses];
3670
+ export type SetSpacePropertyData = {
3671
+ body: SetSpacePropertyRequest;
3672
+ path: {
3673
+ /**
3674
+ * The space handle. This must be globally unique.
3675
+ */
3676
+ spaceHandle: string;
3677
+ };
3678
+ query?: never;
3679
+ url: '/auth/{spaceHandle}/properties';
3680
+ };
3681
+ export type SetSpacePropertyErrors = {
3682
+ /**
3683
+ * Invalid request body.
3684
+ */
3685
+ 400: ErrorResponse;
3686
+ /**
3687
+ * Unauthorised user.
3688
+ */
3689
+ 401: ErrorResponse;
3690
+ /**
3691
+ * Invalid credentials.
3692
+ */
3693
+ 403: ErrorResponse;
3694
+ /**
3695
+ * Unexpected error.
3696
+ */
3697
+ 500: ErrorResponse;
3698
+ };
3699
+ export type SetSpacePropertyError = SetSpacePropertyErrors[keyof SetSpacePropertyErrors];
3700
+ export type SetSpacePropertyResponses = {
3701
+ /**
3702
+ * Property set successfully.
3703
+ */
3704
+ 202: unknown;
3705
+ };