shoal-web-sdk 1.0.12 → 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,23 +9,28 @@ export type EnvironmentVariable = {
9
9
  key: string;
10
10
  value: string;
11
11
  };
12
- export type UpdateTemplate = {
12
+ export type UpdateBlueprint = {
13
13
  name?: string;
14
+ shortDescription?: string;
14
15
  description?: string;
15
16
  exported?: Array<string>;
16
17
  };
17
- export type CreateTemplate = {
18
+ export type CreateBlueprint = {
18
19
  name: string;
20
+ shortDescription?: string;
19
21
  description: string;
20
22
  exported: Array<string>;
21
23
  };
22
- export type Template = {
24
+ export type Blueprint = {
23
25
  id: string;
24
26
  environment: string;
25
27
  ref: string;
26
28
  updatedAt: string;
27
29
  createdAt: string;
30
+ author: string;
31
+ updatedBy: string;
28
32
  name: string;
33
+ shortDescription: string;
29
34
  description: string;
30
35
  exported: Array<EnvironmentVariable>;
31
36
  };
@@ -60,8 +65,8 @@ export type Pagination = {
60
65
  limit: number;
61
66
  total: number;
62
67
  };
63
- export type PaginatedTemplates = Pagination & {
64
- templates: Array<Template>;
68
+ export type PaginatedBlueprints = Pagination & {
69
+ blueprints: Array<Blueprint>;
65
70
  };
66
71
  export type PaginatedInvites = Pagination & {
67
72
  invites: Array<Invite>;
@@ -710,9 +715,13 @@ export type RepoOwner = string;
710
715
  */
711
716
  export type RepoName = string;
712
717
  /**
713
- * Template UUID.
718
+ * Blueprint UUID.
714
719
  */
715
- export type TemplateId = string;
720
+ export type BlueprintIdQuery = string;
721
+ /**
722
+ * Blueprint UUID.
723
+ */
724
+ export type BlueprintId = string;
716
725
  /**
717
726
  * Search value for a searchable field on an endpoint.
718
727
  */
@@ -1578,30 +1587,18 @@ export type RecordOnboardingAnalyticsResponses = {
1578
1587
  */
1579
1588
  202: unknown;
1580
1589
  };
1581
- export type ViewTemplatesData = {
1590
+ export type PreviewBlueprintData = {
1582
1591
  body?: never;
1583
- path?: never;
1584
- query?: {
1585
- /**
1586
- * Page size (max 100).
1587
- */
1588
- limit?: number;
1589
- /**
1590
- * Page number (1-based).
1591
- */
1592
- page?: number;
1593
- /**
1594
- * Search value for a searchable field on an endpoint.
1595
- */
1596
- search?: string;
1592
+ path: {
1597
1593
  /**
1598
- * The order results will appear in.
1594
+ * Blueprint UUID.
1599
1595
  */
1600
- order?: 'asc' | 'desc';
1596
+ blueprint: string;
1601
1597
  };
1602
- url: '/templates/view';
1598
+ query?: never;
1599
+ url: '/blueprints/preview/{blueprint}';
1603
1600
  };
1604
- export type ViewTemplatesErrors = {
1601
+ export type PreviewBlueprintErrors = {
1605
1602
  /**
1606
1603
  * Bad request.
1607
1604
  */
@@ -1619,26 +1616,38 @@ export type ViewTemplatesErrors = {
1619
1616
  */
1620
1617
  500: ErrorResponse;
1621
1618
  };
1622
- export type ViewTemplatesError = ViewTemplatesErrors[keyof ViewTemplatesErrors];
1623
- export type ViewTemplatesResponses = {
1619
+ export type PreviewBlueprintError = PreviewBlueprintErrors[keyof PreviewBlueprintErrors];
1620
+ export type PreviewBlueprintResponses = {
1624
1621
  /**
1625
- * Paginated templates
1622
+ * The blueprint nodes.
1626
1623
  */
1627
- 200: PaginatedTemplates;
1624
+ 200: Nodes;
1628
1625
  };
1629
- export type ViewTemplatesResponse = ViewTemplatesResponses[keyof ViewTemplatesResponses];
1630
- export type GetTemplateData = {
1626
+ export type PreviewBlueprintResponse = PreviewBlueprintResponses[keyof PreviewBlueprintResponses];
1627
+ export type ViewBlueprintsData = {
1631
1628
  body?: never;
1632
- path: {
1629
+ path?: never;
1630
+ query?: {
1633
1631
  /**
1634
- * Template UUID.
1632
+ * Page size (max 100).
1635
1633
  */
1636
- template: string;
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';
1637
1647
  };
1638
- query?: never;
1639
- url: '/templates/{template}';
1648
+ url: '/blueprints/view';
1640
1649
  };
1641
- export type GetTemplateErrors = {
1650
+ export type ViewBlueprintsErrors = {
1642
1651
  /**
1643
1652
  * Bad request.
1644
1653
  */
@@ -1656,26 +1665,26 @@ export type GetTemplateErrors = {
1656
1665
  */
1657
1666
  500: ErrorResponse;
1658
1667
  };
1659
- export type GetTemplateError = GetTemplateErrors[keyof GetTemplateErrors];
1660
- export type GetTemplateResponses = {
1668
+ export type ViewBlueprintsError = ViewBlueprintsErrors[keyof ViewBlueprintsErrors];
1669
+ export type ViewBlueprintsResponses = {
1661
1670
  /**
1662
- * The template.
1671
+ * Paginated blueprints
1663
1672
  */
1664
- 200: Template;
1673
+ 200: PaginatedBlueprints;
1665
1674
  };
1666
- export type GetTemplateResponse = GetTemplateResponses[keyof GetTemplateResponses];
1667
- export type UpdateTemplateData = {
1668
- body: UpdateTemplate;
1675
+ export type ViewBlueprintsResponse = ViewBlueprintsResponses[keyof ViewBlueprintsResponses];
1676
+ export type GetBlueprintData = {
1677
+ body?: never;
1669
1678
  path: {
1670
1679
  /**
1671
- * Template UUID.
1680
+ * Blueprint UUID.
1672
1681
  */
1673
- template: string;
1682
+ blueprint: string;
1674
1683
  };
1675
1684
  query?: never;
1676
- url: '/templates/{template}';
1685
+ url: '/blueprints/{blueprint}';
1677
1686
  };
1678
- export type UpdateTemplateErrors = {
1687
+ export type GetBlueprintErrors = {
1679
1688
  /**
1680
1689
  * Bad request.
1681
1690
  */
@@ -1693,14 +1702,14 @@ export type UpdateTemplateErrors = {
1693
1702
  */
1694
1703
  500: ErrorResponse;
1695
1704
  };
1696
- export type UpdateTemplateError = UpdateTemplateErrors[keyof UpdateTemplateErrors];
1697
- export type UpdateTemplateResponses = {
1705
+ export type GetBlueprintError = GetBlueprintErrors[keyof GetBlueprintErrors];
1706
+ export type GetBlueprintResponses = {
1698
1707
  /**
1699
- * Updated Template.
1708
+ * The blueprint.
1700
1709
  */
1701
- 200: Template;
1710
+ 200: Blueprint;
1702
1711
  };
1703
- export type UpdateTemplateResponse = UpdateTemplateResponses[keyof UpdateTemplateResponses];
1712
+ export type GetBlueprintResponse = GetBlueprintResponses[keyof GetBlueprintResponses];
1704
1713
  export type CreateSpaceData = {
1705
1714
  body: CreateSpace;
1706
1715
  path?: never;
@@ -2704,13 +2713,13 @@ export type CreateEnvironmentVariableResponses = {
2704
2713
  */
2705
2714
  201: unknown;
2706
2715
  };
2707
- export type DeleteTemplateData = {
2716
+ export type DeleteBlueprintData = {
2708
2717
  body?: never;
2709
2718
  path: {
2710
2719
  /**
2711
- * Template UUID.
2720
+ * Blueprint UUID.
2712
2721
  */
2713
- template: string;
2722
+ blueprint: string;
2714
2723
  /**
2715
2724
  * The space handle. This must be globally unique.
2716
2725
  */
@@ -2725,9 +2734,9 @@ export type DeleteTemplateData = {
2725
2734
  environmentHandle: string;
2726
2735
  };
2727
2736
  query?: never;
2728
- url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{template}';
2737
+ url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{blueprint}';
2729
2738
  };
2730
- export type DeleteTemplateErrors = {
2739
+ export type DeleteBlueprintErrors = {
2731
2740
  /**
2732
2741
  * Bad request.
2733
2742
  */
@@ -2745,16 +2754,65 @@ export type DeleteTemplateErrors = {
2745
2754
  */
2746
2755
  500: ErrorResponse;
2747
2756
  };
2748
- export type DeleteTemplateError = DeleteTemplateErrors[keyof DeleteTemplateErrors];
2749
- export type DeleteTemplateResponses = {
2757
+ export type DeleteBlueprintError = DeleteBlueprintErrors[keyof DeleteBlueprintErrors];
2758
+ export type DeleteBlueprintResponses = {
2750
2759
  /**
2751
- * Template deleted.
2760
+ * Blueprint deleted.
2752
2761
  */
2753
2762
  204: void;
2754
2763
  };
2755
- export type DeleteTemplateResponse = DeleteTemplateResponses[keyof DeleteTemplateResponses];
2756
- export type CreateTemplateData = {
2757
- body: CreateTemplate;
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;
2758
2816
  path: {
2759
2817
  /**
2760
2818
  * The space handle. This must be globally unique.
@@ -2770,9 +2828,9 @@ export type CreateTemplateData = {
2770
2828
  environmentHandle: string;
2771
2829
  };
2772
2830
  query?: never;
2773
- url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/templates/create';
2831
+ url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/blueprints/create';
2774
2832
  };
2775
- export type CreateTemplateErrors = {
2833
+ export type CreateBlueprintErrors = {
2776
2834
  /**
2777
2835
  * Bad request.
2778
2836
  */
@@ -2790,14 +2848,14 @@ export type CreateTemplateErrors = {
2790
2848
  */
2791
2849
  500: ErrorResponse;
2792
2850
  };
2793
- export type CreateTemplateError = CreateTemplateErrors[keyof CreateTemplateErrors];
2794
- export type CreateTemplateResponses = {
2851
+ export type CreateBlueprintError = CreateBlueprintErrors[keyof CreateBlueprintErrors];
2852
+ export type CreateBlueprintResponses = {
2795
2853
  /**
2796
- * Template created
2854
+ * Blueprint created
2797
2855
  */
2798
- 201: Template;
2856
+ 201: Blueprint;
2799
2857
  };
2800
- export type CreateTemplateResponse = CreateTemplateResponses[keyof CreateTemplateResponses];
2858
+ export type CreateBlueprintResponse = CreateBlueprintResponses[keyof CreateBlueprintResponses];
2801
2859
  export type GetVersionData = {
2802
2860
  body?: never;
2803
2861
  path: {
@@ -2851,6 +2909,59 @@ export type GetVersionResponses = {
2851
2909
  200: Version;
2852
2910
  };
2853
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
+ };
2854
2965
  export type GetGraphOverviewData = {
2855
2966
  body?: never;
2856
2967
  path: {