shoal-web-sdk 1.0.28 → 1.0.29

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.
@@ -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;
@@ -1807,7 +1813,7 @@ export type CreateNeonProjectResponses = {
1807
1813
  /**
1808
1814
  * Project created successfully.
1809
1815
  */
1810
- 201: NeonProject;
1816
+ 201: NeonCreatedProject;
1811
1817
  };
1812
1818
  export type CreateNeonProjectResponse = CreateNeonProjectResponses[keyof CreateNeonProjectResponses];
1813
1819
  export type ListNeonBranchesData = {
@@ -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>;
@@ -2712,11 +2737,29 @@ export declare const zCreateNeonProjectData: z.ZodObject<{
2712
2737
  * Project created successfully.
2713
2738
  */
2714
2739
  export declare const zCreateNeonProjectResponse: z.ZodObject<{
2715
- id: z.ZodString;
2716
- name: z.ZodString;
2717
- region_id: z.ZodString;
2718
- pg_version: z.ZodInt;
2719
- created_at: z.ZodISODateTime;
2740
+ project: z.ZodObject<{
2741
+ id: z.ZodString;
2742
+ name: z.ZodString;
2743
+ region_id: z.ZodString;
2744
+ pg_version: z.ZodInt;
2745
+ created_at: z.ZodISODateTime;
2746
+ }, z.core.$strip>;
2747
+ branch: z.ZodObject<{
2748
+ id: z.ZodString;
2749
+ name: z.ZodString;
2750
+ project_id: z.ZodString;
2751
+ default: z.ZodBoolean;
2752
+ created_at: z.ZodISODateTime;
2753
+ }, z.core.$strip>;
2754
+ database: z.ZodObject<{
2755
+ id: z.ZodCoercedBigInt<unknown>;
2756
+ name: z.ZodString;
2757
+ owner_name: z.ZodString;
2758
+ branch_id: z.ZodString;
2759
+ created_at: z.ZodISODateTime;
2760
+ updated_at: z.ZodISODateTime;
2761
+ }, z.core.$strip>;
2762
+ connection_uri: z.ZodString;
2720
2763
  }, z.core.$strip>;
2721
2764
  export declare const zListNeonBranchesData: z.ZodObject<{
2722
2765
  body: z.ZodOptional<z.ZodNever>;
@@ -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()),
@@ -1120,7 +1126,7 @@ export const zCreateNeonProjectData = z.object({
1120
1126
  /**
1121
1127
  * Project created successfully.
1122
1128
  */
1123
- export const zCreateNeonProjectResponse = zNeonProject;
1129
+ export const zCreateNeonProjectResponse = zNeonCreatedProject;
1124
1130
  export const zListNeonBranchesData = z.object({
1125
1131
  body: z.optional(z.never()),
1126
1132
  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").NeonProject | undefined;
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"> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoal-web-sdk",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build-hooks": "npx tsx tanstack-codegen/generator.ts",