shoal-web-sdk 1.0.28 → 1.0.30
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
CHANGED
|
@@ -681,6 +681,12 @@ export type NeonDatabase = {
|
|
|
681
681
|
created_at: string;
|
|
682
682
|
updated_at: string;
|
|
683
683
|
};
|
|
684
|
+
export type NeonCreatedProject = {
|
|
685
|
+
project: NeonProject;
|
|
686
|
+
branch: NeonBranch;
|
|
687
|
+
database: NeonDatabase;
|
|
688
|
+
connection_uri: string;
|
|
689
|
+
};
|
|
684
690
|
export type CreateNeonProject = {
|
|
685
691
|
org_id: string;
|
|
686
692
|
name?: string;
|
|
@@ -759,6 +765,10 @@ export type NeonBranchId = string;
|
|
|
759
765
|
* The Neon branch ID.
|
|
760
766
|
*/
|
|
761
767
|
export type NeonBranchIdPath = string;
|
|
768
|
+
/**
|
|
769
|
+
* The Neon organization ID.
|
|
770
|
+
*/
|
|
771
|
+
export type NeonOrganizationId = string;
|
|
762
772
|
/**
|
|
763
773
|
* The endpoint ID to connect to.
|
|
764
774
|
*/
|
|
@@ -1751,7 +1761,12 @@ export type ListNeonProjectsData = {
|
|
|
1751
1761
|
'x-neon-api-key': string;
|
|
1752
1762
|
};
|
|
1753
1763
|
path?: never;
|
|
1754
|
-
query
|
|
1764
|
+
query: {
|
|
1765
|
+
/**
|
|
1766
|
+
* The Neon organization ID.
|
|
1767
|
+
*/
|
|
1768
|
+
orgId: string;
|
|
1769
|
+
};
|
|
1755
1770
|
url: '/auth/neon/projects';
|
|
1756
1771
|
};
|
|
1757
1772
|
export type ListNeonProjectsErrors = {
|
|
@@ -1807,7 +1822,7 @@ export type CreateNeonProjectResponses = {
|
|
|
1807
1822
|
/**
|
|
1808
1823
|
* Project created successfully.
|
|
1809
1824
|
*/
|
|
1810
|
-
201:
|
|
1825
|
+
201: NeonCreatedProject;
|
|
1811
1826
|
};
|
|
1812
1827
|
export type CreateNeonProjectResponse = CreateNeonProjectResponses[keyof CreateNeonProjectResponses];
|
|
1813
1828
|
export type ListNeonBranchesData = {
|
package/dist/sdk/zod.gen.d.ts
CHANGED
|
@@ -1434,6 +1434,31 @@ export declare const zNeonDatabase: z.ZodObject<{
|
|
|
1434
1434
|
created_at: z.ZodISODateTime;
|
|
1435
1435
|
updated_at: z.ZodISODateTime;
|
|
1436
1436
|
}, z.core.$strip>;
|
|
1437
|
+
export declare const zNeonCreatedProject: z.ZodObject<{
|
|
1438
|
+
project: z.ZodObject<{
|
|
1439
|
+
id: z.ZodString;
|
|
1440
|
+
name: z.ZodString;
|
|
1441
|
+
region_id: z.ZodString;
|
|
1442
|
+
pg_version: z.ZodInt;
|
|
1443
|
+
created_at: z.ZodISODateTime;
|
|
1444
|
+
}, z.core.$strip>;
|
|
1445
|
+
branch: z.ZodObject<{
|
|
1446
|
+
id: z.ZodString;
|
|
1447
|
+
name: z.ZodString;
|
|
1448
|
+
project_id: z.ZodString;
|
|
1449
|
+
default: z.ZodBoolean;
|
|
1450
|
+
created_at: z.ZodISODateTime;
|
|
1451
|
+
}, z.core.$strip>;
|
|
1452
|
+
database: z.ZodObject<{
|
|
1453
|
+
id: z.ZodCoercedBigInt<unknown>;
|
|
1454
|
+
name: z.ZodString;
|
|
1455
|
+
owner_name: z.ZodString;
|
|
1456
|
+
branch_id: z.ZodString;
|
|
1457
|
+
created_at: z.ZodISODateTime;
|
|
1458
|
+
updated_at: z.ZodISODateTime;
|
|
1459
|
+
}, z.core.$strip>;
|
|
1460
|
+
connection_uri: z.ZodString;
|
|
1461
|
+
}, z.core.$strip>;
|
|
1437
1462
|
export declare const zCreateNeonProject: z.ZodObject<{
|
|
1438
1463
|
org_id: z.ZodString;
|
|
1439
1464
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1512,6 +1537,10 @@ export declare const zNeonBranchId: z.ZodString;
|
|
|
1512
1537
|
* The Neon branch ID.
|
|
1513
1538
|
*/
|
|
1514
1539
|
export declare const zNeonBranchIdPath: z.ZodString;
|
|
1540
|
+
/**
|
|
1541
|
+
* The Neon organization ID.
|
|
1542
|
+
*/
|
|
1543
|
+
export declare const zNeonOrganizationId: z.ZodString;
|
|
1515
1544
|
/**
|
|
1516
1545
|
* The endpoint ID to connect to.
|
|
1517
1546
|
*/
|
|
@@ -2680,7 +2709,9 @@ export declare const zFetchNeonConnectionUriResponse: z.ZodObject<{
|
|
|
2680
2709
|
export declare const zListNeonProjectsData: z.ZodObject<{
|
|
2681
2710
|
body: z.ZodOptional<z.ZodNever>;
|
|
2682
2711
|
path: z.ZodOptional<z.ZodNever>;
|
|
2683
|
-
query: z.
|
|
2712
|
+
query: z.ZodObject<{
|
|
2713
|
+
orgId: z.ZodString;
|
|
2714
|
+
}, z.core.$strip>;
|
|
2684
2715
|
headers: z.ZodObject<{
|
|
2685
2716
|
'x-neon-api-key': z.ZodString;
|
|
2686
2717
|
}, z.core.$strip>;
|
|
@@ -2712,11 +2743,29 @@ export declare const zCreateNeonProjectData: z.ZodObject<{
|
|
|
2712
2743
|
* Project created successfully.
|
|
2713
2744
|
*/
|
|
2714
2745
|
export declare const zCreateNeonProjectResponse: z.ZodObject<{
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2746
|
+
project: z.ZodObject<{
|
|
2747
|
+
id: z.ZodString;
|
|
2748
|
+
name: z.ZodString;
|
|
2749
|
+
region_id: z.ZodString;
|
|
2750
|
+
pg_version: z.ZodInt;
|
|
2751
|
+
created_at: z.ZodISODateTime;
|
|
2752
|
+
}, z.core.$strip>;
|
|
2753
|
+
branch: z.ZodObject<{
|
|
2754
|
+
id: z.ZodString;
|
|
2755
|
+
name: z.ZodString;
|
|
2756
|
+
project_id: z.ZodString;
|
|
2757
|
+
default: z.ZodBoolean;
|
|
2758
|
+
created_at: z.ZodISODateTime;
|
|
2759
|
+
}, z.core.$strip>;
|
|
2760
|
+
database: z.ZodObject<{
|
|
2761
|
+
id: z.ZodCoercedBigInt<unknown>;
|
|
2762
|
+
name: z.ZodString;
|
|
2763
|
+
owner_name: z.ZodString;
|
|
2764
|
+
branch_id: z.ZodString;
|
|
2765
|
+
created_at: z.ZodISODateTime;
|
|
2766
|
+
updated_at: z.ZodISODateTime;
|
|
2767
|
+
}, z.core.$strip>;
|
|
2768
|
+
connection_uri: z.ZodString;
|
|
2720
2769
|
}, z.core.$strip>;
|
|
2721
2770
|
export declare const zListNeonBranchesData: z.ZodObject<{
|
|
2722
2771
|
body: z.ZodOptional<z.ZodNever>;
|
package/dist/sdk/zod.gen.js
CHANGED
|
@@ -669,6 +669,12 @@ export const zNeonDatabase = z.object({
|
|
|
669
669
|
created_at: z.iso.datetime(),
|
|
670
670
|
updated_at: z.iso.datetime()
|
|
671
671
|
});
|
|
672
|
+
export const zNeonCreatedProject = z.object({
|
|
673
|
+
project: zNeonProject,
|
|
674
|
+
branch: zNeonBranch,
|
|
675
|
+
database: zNeonDatabase,
|
|
676
|
+
connection_uri: z.string()
|
|
677
|
+
});
|
|
672
678
|
export const zCreateNeonProject = z.object({
|
|
673
679
|
org_id: z.string(),
|
|
674
680
|
name: z.optional(z.string()),
|
|
@@ -747,6 +753,10 @@ export const zNeonBranchId = z.string();
|
|
|
747
753
|
* The Neon branch ID.
|
|
748
754
|
*/
|
|
749
755
|
export const zNeonBranchIdPath = z.string();
|
|
756
|
+
/**
|
|
757
|
+
* The Neon organization ID.
|
|
758
|
+
*/
|
|
759
|
+
export const zNeonOrganizationId = z.string();
|
|
750
760
|
/**
|
|
751
761
|
* The endpoint ID to connect to.
|
|
752
762
|
*/
|
|
@@ -1100,7 +1110,9 @@ export const zFetchNeonConnectionUriResponse = zNeonConnectionUri;
|
|
|
1100
1110
|
export const zListNeonProjectsData = z.object({
|
|
1101
1111
|
body: z.optional(z.never()),
|
|
1102
1112
|
path: z.optional(z.never()),
|
|
1103
|
-
query: z.
|
|
1113
|
+
query: z.object({
|
|
1114
|
+
orgId: z.string()
|
|
1115
|
+
}),
|
|
1104
1116
|
headers: z.object({
|
|
1105
1117
|
'x-neon-api-key': z.string()
|
|
1106
1118
|
})
|
|
@@ -1120,7 +1132,7 @@ export const zCreateNeonProjectData = z.object({
|
|
|
1120
1132
|
/**
|
|
1121
1133
|
* Project created successfully.
|
|
1122
1134
|
*/
|
|
1123
|
-
export const zCreateNeonProjectResponse =
|
|
1135
|
+
export const zCreateNeonProjectResponse = zNeonCreatedProject;
|
|
1124
1136
|
export const zListNeonBranchesData = z.object({
|
|
1125
1137
|
body: z.optional(z.never()),
|
|
1126
1138
|
path: z.object({
|
|
@@ -109,7 +109,7 @@ export declare const useCreateNeonProject: (config?: {
|
|
|
109
109
|
onError?: Parameters<typeof useMutation>["0"]["onError"];
|
|
110
110
|
retry?: boolean;
|
|
111
111
|
}) => import("@tanstack/react-query").UseMutationResult<{
|
|
112
|
-
data: import("../../sdk/types.gen").
|
|
112
|
+
data: import("../../sdk/types.gen").NeonCreatedProject | undefined;
|
|
113
113
|
headers: Headers;
|
|
114
114
|
}, unknown, Omit<CreateNeonProjectData, "url">, unknown>;
|
|
115
115
|
export declare const useListNeonBranches: (options: Omit<ListNeonBranchesData, "url"> & {
|