@neon/tools 0.8.0 → 1.1.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"bind.d.ts","sourceRoot":"","sources":["../../../src/lib/ergonomic/bind.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,UAAU,EACf,KAAK,UAAU,EAEf,KAAK,SAAS,EACd,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACN,KAAK,eAAe,EACpB,kBAAkB,EAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEN,KAAK,oBAAoB,EAEzB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACX,QAAQ,EACR,QAAQ,EACR,mBAAmB,EACnB,wBAAwB,EACxB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,iBAAiB;IACjC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IACrB,IAAI,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;CAC1B;AASD,KAAK,KAAK,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,IAAI,GAAG,MAAM,IAAI,EAAE,GAClE,IAAI,SAAS,SAAS,CAAC,IAAI,CAAC,GAC3B,IAAI,SAAS,SAAS,CAAC,IAAI,CAAC,GAC3B,GAAG,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,GACvB,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,GACpC,GAAG,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,GACxB,CAAC,CAAC;AAEL,KAAK,WAAW,CAAC,EAA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Q,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC5E,wBAAgB,aAAa,CAC5B,KAAK,CAAC,EAAE,SAAS,UAAU,EAC3B,KAAK,CAAC,CAAC,SAAS,eAAe,EAC/B,KAAK,CAAC,IAAI,SAAS,MAAM,cAAc,CAAC,CAAC,CAAC,GAAG,MAAM,EACnD,MAAM,EAEN,OAAO,EAAE,iBAAiB,EAC1B,IAAI,EAAE,iBAAiB,GAAG;IACzB,EAAE,EAAE,EAAE,CAAC;IACP,SAAS,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,SAAS,IAAI,EAAE,CAAC;IACtB,GAAG,EAAE,CACJ,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,EACtB,KAAK,EAAE,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,EAC5B,MAAM,CAAC,EAAE,WAAW,KAChB,OAAO,CAAC,MAAM,CAAC,CAAC;CACrB,GACC,QAAQ,CACV,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EACrD,WAAW,CAAC,EAAE,CAAC,EACf,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CACzB,CAAC"}
@@ -4,7 +4,7 @@ import { operationFactories } from "../../operations.gen.js";
4
4
  import { NeonError, createNeonClient } from "@neon/sdk";
5
5
  import * as z from "zod";
6
6
  //#region src/lib/ergonomic/bind.ts
7
- const ALL_PAGES = " This tool returns every page. Pass limit to cap how many items come back. Do not pass a cursor.";
7
+ const ALL_PAGES = " Returns every page. Pass limit to cap how many.";
8
8
  const inertClient = createNeonClient({ apiKey: "unused" }).client;
9
9
  const snakeSegment = (segment) => segment.replace(/[A-Z]/g, (character) => `_${character.toLowerCase()}`);
10
10
  const publishedId = (id) => {
@@ -173,6 +173,137 @@ export declare const toolFactories: {
173
173
  hipaa_enabled_at?: string | null | undefined;
174
174
  effective_project_permission?: (import("@neon/sdk").ProjectPermissionLevel | null) | undefined;
175
175
  }>;
176
+ "projects.create": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
177
+ settings: z.ZodOptional<z.ZodObject<{
178
+ quota: z.ZodOptional<z.ZodObject<{
179
+ active_time_seconds: z.ZodOptional<z.ZodInt>;
180
+ compute_time_seconds: z.ZodOptional<z.ZodInt>;
181
+ written_data_bytes: z.ZodOptional<z.ZodInt>;
182
+ data_transfer_bytes: z.ZodOptional<z.ZodInt>;
183
+ logical_size_bytes: z.ZodOptional<z.ZodInt>;
184
+ }, z.core.$strict>>;
185
+ allowed_ips: z.ZodOptional<z.ZodObject<{
186
+ ips: z.ZodOptional<z.ZodArray<z.ZodString>>;
187
+ protected_branches_only: z.ZodOptional<z.ZodBoolean>;
188
+ }, z.core.$strict>>;
189
+ enable_logical_replication: z.ZodOptional<z.ZodBoolean>;
190
+ maintenance_window: z.ZodOptional<z.ZodObject<{
191
+ weekdays: z.ZodArray<z.ZodInt>;
192
+ start_time: z.ZodString;
193
+ end_time: z.ZodString;
194
+ }, z.core.$strict>>;
195
+ block_public_connections: z.ZodOptional<z.ZodBoolean>;
196
+ block_vpc_connections: z.ZodOptional<z.ZodBoolean>;
197
+ audit_log_level: z.ZodOptional<z.ZodEnum<{
198
+ base: "base";
199
+ extended: "extended";
200
+ full: "full";
201
+ }>>;
202
+ hipaa: z.ZodOptional<z.ZodBoolean>;
203
+ preload_libraries: z.ZodOptional<z.ZodObject<{
204
+ use_defaults: z.ZodOptional<z.ZodBoolean>;
205
+ enabled_libraries: z.ZodOptional<z.ZodArray<z.ZodString>>;
206
+ }, z.core.$strict>>;
207
+ }, z.core.$strict>>;
208
+ name: z.ZodOptional<z.ZodString>;
209
+ branch: z.ZodOptional<z.ZodObject<{
210
+ name: z.ZodOptional<z.ZodString>;
211
+ role_name: z.ZodOptional<z.ZodString>;
212
+ database_name: z.ZodOptional<z.ZodString>;
213
+ annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
214
+ }, z.core.$strict>>;
215
+ autoscaling_limit_min_cu: z.ZodOptional<z.ZodNumber>;
216
+ autoscaling_limit_max_cu: z.ZodOptional<z.ZodNumber>;
217
+ provisioner: z.ZodOptional<z.ZodString>;
218
+ region_id: z.ZodOptional<z.ZodString>;
219
+ default_endpoint_settings: z.ZodOptional<z.ZodObject<{
220
+ pg_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
221
+ pgbouncer_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
222
+ autoscaling_limit_min_cu: z.ZodOptional<z.ZodNumber>;
223
+ autoscaling_limit_max_cu: z.ZodOptional<z.ZodNumber>;
224
+ suspend_timeout_seconds: z.ZodOptional<z.ZodInt>;
225
+ }, z.core.$strict>>;
226
+ pg_version: z.ZodOptional<z.ZodInt>;
227
+ store_passwords: z.ZodOptional<z.ZodBoolean>;
228
+ history_retention_seconds: z.ZodOptional<z.ZodInt>;
229
+ org_id: z.ZodOptional<z.ZodString>;
230
+ }, z.core.$strict>, "create_projects", {
231
+ data_storage_bytes_hour: number;
232
+ data_transfer_bytes: number;
233
+ written_data_bytes: number;
234
+ compute_time_seconds: number;
235
+ active_time_seconds: number;
236
+ cpu_used_sec: number;
237
+ id: string;
238
+ platform_id: string;
239
+ region_id: string;
240
+ name: string;
241
+ provisioner: import("@neon/sdk").Provisioner;
242
+ default_endpoint_settings?: {
243
+ pg_settings?: {
244
+ [x: string]: string;
245
+ } | null | undefined;
246
+ pgbouncer_settings?: {
247
+ [x: string]: string;
248
+ } | null | undefined;
249
+ autoscaling_limit_min_cu?: number | null | undefined;
250
+ autoscaling_limit_max_cu?: number | null | undefined;
251
+ suspend_timeout_seconds?: number | null | undefined;
252
+ } | null | undefined;
253
+ settings?: {
254
+ quota?: {
255
+ active_time_seconds?: number | null | undefined;
256
+ compute_time_seconds?: number | null | undefined;
257
+ written_data_bytes?: number | null | undefined;
258
+ data_transfer_bytes?: number | null | undefined;
259
+ logical_size_bytes?: number | null | undefined;
260
+ } | null | undefined;
261
+ allowed_ips?: {
262
+ ips?: string[] | null | undefined;
263
+ protected_branches_only?: boolean | null | undefined;
264
+ } | null | undefined;
265
+ enable_logical_replication?: boolean | null | undefined;
266
+ maintenance_window?: {
267
+ weekdays: number[];
268
+ start_time: string;
269
+ end_time: string;
270
+ } | null | undefined;
271
+ block_public_connections?: boolean | null | undefined;
272
+ block_vpc_connections?: boolean | null | undefined;
273
+ audit_log_level?: import("@neon/sdk").ProjectAuditLogLevel | null | undefined;
274
+ hipaa?: boolean | null | undefined;
275
+ preload_libraries?: {
276
+ use_defaults?: boolean | null | undefined;
277
+ enabled_libraries?: string[] | null | undefined;
278
+ } | null | undefined;
279
+ } | null | undefined;
280
+ pg_version: import("@neon/sdk").PgVersion;
281
+ proxy_host: string;
282
+ branch_logical_size_limit: number;
283
+ branch_logical_size_limit_bytes: number;
284
+ store_passwords: boolean;
285
+ maintenance_starts_at?: string | null | undefined;
286
+ creation_source: string;
287
+ history_retention_seconds: number;
288
+ created_at: string;
289
+ updated_at: string;
290
+ synthetic_storage_size?: number | null | undefined;
291
+ consumption_period_start: string;
292
+ consumption_period_end: string;
293
+ quota_reset_at?: string | null | undefined;
294
+ owner_id: string;
295
+ owner?: {
296
+ email: string;
297
+ name: string;
298
+ branches_limit: number;
299
+ subscription_type: import("@neon/sdk").BillingSubscriptionType;
300
+ } | null | undefined;
301
+ compute_last_active_at?: string | null | undefined;
302
+ org_id?: string | null | undefined;
303
+ maintenance_scheduled_for?: string | null | undefined;
304
+ hipaa_enabled_at?: string | null | undefined;
305
+ effective_project_permission?: (import("@neon/sdk").ProjectPermissionLevel | null) | undefined;
306
+ }>;
176
307
  "projects.createAndConnect": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
177
308
  pooled: z.ZodOptional<z.ZodBoolean>;
178
309
  settings: z.ZodOptional<z.ZodObject<{
@@ -802,7 +933,60 @@ export declare const toolFactories: {
802
933
  deletion_method: "user" | "ttl";
803
934
  } | null | undefined;
804
935
  }>;
805
- "branches.createWithCompute": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
936
+ "branches.create": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
937
+ project_id: z.ZodString;
938
+ name: z.ZodOptional<z.ZodString>;
939
+ parent_id: z.ZodOptional<z.ZodString>;
940
+ compute: z.ZodOptional<z.ZodObject<{
941
+ min_cu: z.ZodOptional<z.ZodNumber>;
942
+ max_cu: z.ZodOptional<z.ZodNumber>;
943
+ suspend_timeout_seconds: z.ZodOptional<z.ZodInt>;
944
+ }, z.core.$strict>>;
945
+ no_compute: z.ZodOptional<z.ZodBoolean>;
946
+ }, z.core.$strict>, "create_branches", {
947
+ id: string;
948
+ project_id: string;
949
+ parent_id?: string | null | undefined;
950
+ parent_lsn?: string | null | undefined;
951
+ parent_timestamp?: string | null | undefined;
952
+ name: string;
953
+ current_state: import("@neon/sdk").BranchState;
954
+ pending_state?: string | null | undefined;
955
+ state_changed_at: string;
956
+ logical_size?: number | null | undefined;
957
+ creation_source: string;
958
+ primary?: boolean | null | undefined;
959
+ default: boolean;
960
+ protected: boolean;
961
+ cpu_used_sec: number;
962
+ compute_time_seconds: number;
963
+ active_time_seconds: number;
964
+ written_data_bytes: number;
965
+ data_transfer_bytes: number;
966
+ created_at: string;
967
+ updated_at: string;
968
+ ttl_interval_seconds?: number | null | undefined;
969
+ expires_at?: string | null | undefined;
970
+ last_reset_at?: string | null | undefined;
971
+ created_by?: {
972
+ name?: string | null | undefined;
973
+ image?: string | null | undefined;
974
+ } | null | undefined;
975
+ init_source?: string | null | undefined;
976
+ restore_status?: string | null | undefined;
977
+ restored_from?: string | null | undefined;
978
+ restored_as?: string | null | undefined;
979
+ restricted_actions?: {
980
+ name: string;
981
+ reason: string;
982
+ }[] | null | undefined;
983
+ recovery?: {
984
+ deleted_at: string;
985
+ recoverable_until: string;
986
+ deletion_method: "user" | "ttl";
987
+ } | null | undefined;
988
+ }>;
989
+ "branches.createAndConnect": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
806
990
  project_id: z.ZodString;
807
991
  name: z.ZodOptional<z.ZodString>;
808
992
  parent_id: z.ZodOptional<z.ZodString>;
@@ -812,7 +996,7 @@ export declare const toolFactories: {
812
996
  suspend_timeout_seconds: z.ZodOptional<z.ZodInt>;
813
997
  }, z.core.$strict>>;
814
998
  pooled: z.ZodOptional<z.ZodBoolean>;
815
- }, z.core.$strict>, "create_with_compute_branches", {
999
+ }, z.core.$strict>, "create_and_connect_branches", {
816
1000
  branch: {
817
1001
  id: string;
818
1002
  project_id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/lib/ergonomic/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAMN,KAAK,iBAAiB,EACtB,MAAM,WAAW,CAAC;AAWnB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAS3C,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,UAAU,CAAC,CAAC;AAE7D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAytC6C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { decodeBase64 } from "../binary.js";
2
2
  import { bindTool, collectObjectList, collectPages, fromGenerated, publishedId } from "./bind.js";
3
- import { compareSchemaTool, connectionStringTool, createBranchWithComputeTool, createProjectAndConnectTool, getDefaultTool, resetFromParentTool, restoreSnapshotTool, setScheduleTool } from "./composed.js";
3
+ import { compareSchemaTool, connectionStringTool, createBranchAndConnectTool, createBranchTool, createProjectAndConnectTool, createProjectTool, getDefaultTool, resetFromParentTool, restoreSnapshotTool, setScheduleTool } from "./composed.js";
4
4
  import * as z from "zod";
5
5
  //#region src/lib/ergonomic/catalog.ts
6
6
  const logReadAnnotations = {
@@ -28,6 +28,7 @@ const toolFactories = {
28
28
  generated: "getProject",
29
29
  run: (neon, input, signal) => neon.projects.get(input.project_id, { signal })
30
30
  }),
31
+ "projects.create": createProjectTool,
31
32
  "projects.createAndConnect": createProjectAndConnectTool,
32
33
  "projects.update": (options) => fromGenerated(options, {
33
34
  id: "projects.update",
@@ -122,7 +123,8 @@ const toolFactories = {
122
123
  generated: "getProjectBranch",
123
124
  run: (neon, input, signal) => neon.branches.get(input.project_id, input.branch_id, { signal })
124
125
  }),
125
- "branches.createWithCompute": createBranchWithComputeTool,
126
+ "branches.create": createBranchTool,
127
+ "branches.createAndConnect": createBranchAndConnectTool,
126
128
  "branches.update": (options) => fromGenerated(options, {
127
129
  id: "branches.update",
128
130
  generated: "updateProjectBranch",
@@ -1,6 +1,17 @@
1
1
  import * as z from "zod";
2
2
  import { type ToolClientOptions } from "./bind.js";
3
- export declare const createBranchWithComputeInputSchema: z.ZodObject<{
3
+ export declare const createBranchInputSchema: z.ZodObject<{
4
+ project_id: z.ZodString;
5
+ name: z.ZodOptional<z.ZodString>;
6
+ parent_id: z.ZodOptional<z.ZodString>;
7
+ compute: z.ZodOptional<z.ZodObject<{
8
+ min_cu: z.ZodOptional<z.ZodNumber>;
9
+ max_cu: z.ZodOptional<z.ZodNumber>;
10
+ suspend_timeout_seconds: z.ZodOptional<z.ZodInt>;
11
+ }, z.core.$strict>>;
12
+ no_compute: z.ZodOptional<z.ZodBoolean>;
13
+ }, z.core.$strict>;
14
+ export declare const createBranchAndConnectInputSchema: z.ZodObject<{
4
15
  project_id: z.ZodString;
5
16
  name: z.ZodOptional<z.ZodString>;
6
17
  parent_id: z.ZodOptional<z.ZodString>;
@@ -11,6 +22,61 @@ export declare const createBranchWithComputeInputSchema: z.ZodObject<{
11
22
  }, z.core.$strict>>;
12
23
  pooled: z.ZodOptional<z.ZodBoolean>;
13
24
  }, z.core.$strict>;
25
+ export declare const createProjectInputSchema: z.ZodObject<{
26
+ settings: z.ZodOptional<z.ZodObject<{
27
+ quota: z.ZodOptional<z.ZodObject<{
28
+ active_time_seconds: z.ZodOptional<z.ZodInt>;
29
+ compute_time_seconds: z.ZodOptional<z.ZodInt>;
30
+ written_data_bytes: z.ZodOptional<z.ZodInt>;
31
+ data_transfer_bytes: z.ZodOptional<z.ZodInt>;
32
+ logical_size_bytes: z.ZodOptional<z.ZodInt>;
33
+ }, z.core.$strict>>;
34
+ allowed_ips: z.ZodOptional<z.ZodObject<{
35
+ ips: z.ZodOptional<z.ZodArray<z.ZodString>>;
36
+ protected_branches_only: z.ZodOptional<z.ZodBoolean>;
37
+ }, z.core.$strict>>;
38
+ enable_logical_replication: z.ZodOptional<z.ZodBoolean>;
39
+ maintenance_window: z.ZodOptional<z.ZodObject<{
40
+ weekdays: z.ZodArray<z.ZodInt>;
41
+ start_time: z.ZodString;
42
+ end_time: z.ZodString;
43
+ }, z.core.$strict>>;
44
+ block_public_connections: z.ZodOptional<z.ZodBoolean>;
45
+ block_vpc_connections: z.ZodOptional<z.ZodBoolean>;
46
+ audit_log_level: z.ZodOptional<z.ZodEnum<{
47
+ base: "base";
48
+ extended: "extended";
49
+ full: "full";
50
+ }>>;
51
+ hipaa: z.ZodOptional<z.ZodBoolean>;
52
+ preload_libraries: z.ZodOptional<z.ZodObject<{
53
+ use_defaults: z.ZodOptional<z.ZodBoolean>;
54
+ enabled_libraries: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
+ }, z.core.$strict>>;
56
+ }, z.core.$strict>>;
57
+ name: z.ZodOptional<z.ZodString>;
58
+ branch: z.ZodOptional<z.ZodObject<{
59
+ name: z.ZodOptional<z.ZodString>;
60
+ role_name: z.ZodOptional<z.ZodString>;
61
+ database_name: z.ZodOptional<z.ZodString>;
62
+ annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
63
+ }, z.core.$strict>>;
64
+ autoscaling_limit_min_cu: z.ZodOptional<z.ZodNumber>;
65
+ autoscaling_limit_max_cu: z.ZodOptional<z.ZodNumber>;
66
+ provisioner: z.ZodOptional<z.ZodString>;
67
+ region_id: z.ZodOptional<z.ZodString>;
68
+ default_endpoint_settings: z.ZodOptional<z.ZodObject<{
69
+ pg_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
70
+ pgbouncer_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
71
+ autoscaling_limit_min_cu: z.ZodOptional<z.ZodNumber>;
72
+ autoscaling_limit_max_cu: z.ZodOptional<z.ZodNumber>;
73
+ suspend_timeout_seconds: z.ZodOptional<z.ZodInt>;
74
+ }, z.core.$strict>>;
75
+ pg_version: z.ZodOptional<z.ZodInt>;
76
+ store_passwords: z.ZodOptional<z.ZodBoolean>;
77
+ history_retention_seconds: z.ZodOptional<z.ZodInt>;
78
+ org_id: z.ZodOptional<z.ZodString>;
79
+ }, z.core.$strict>;
14
80
  export declare const createProjectAndConnectInputSchema: z.ZodObject<{
15
81
  pooled: z.ZodOptional<z.ZodBoolean>;
16
82
  settings: z.ZodOptional<z.ZodObject<{
@@ -115,7 +181,60 @@ export declare const setScheduleInputSchema: z.ZodObject<{
115
181
  retention_seconds: z.ZodOptional<z.ZodInt>;
116
182
  }, z.core.$strict>>;
117
183
  }, z.core.$strict>;
118
- export declare const createBranchWithComputeTool: (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
184
+ export declare const createBranchTool: (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
185
+ project_id: z.ZodString;
186
+ name: z.ZodOptional<z.ZodString>;
187
+ parent_id: z.ZodOptional<z.ZodString>;
188
+ compute: z.ZodOptional<z.ZodObject<{
189
+ min_cu: z.ZodOptional<z.ZodNumber>;
190
+ max_cu: z.ZodOptional<z.ZodNumber>;
191
+ suspend_timeout_seconds: z.ZodOptional<z.ZodInt>;
192
+ }, z.core.$strict>>;
193
+ no_compute: z.ZodOptional<z.ZodBoolean>;
194
+ }, z.core.$strict>, "create_branches", {
195
+ id: string;
196
+ project_id: string;
197
+ parent_id?: string | null | undefined;
198
+ parent_lsn?: string | null | undefined;
199
+ parent_timestamp?: string | null | undefined;
200
+ name: string;
201
+ current_state: import("@neon/sdk").BranchState;
202
+ pending_state?: string | null | undefined;
203
+ state_changed_at: string;
204
+ logical_size?: number | null | undefined;
205
+ creation_source: string;
206
+ primary?: boolean | null | undefined;
207
+ default: boolean;
208
+ protected: boolean;
209
+ cpu_used_sec: number;
210
+ compute_time_seconds: number;
211
+ active_time_seconds: number;
212
+ written_data_bytes: number;
213
+ data_transfer_bytes: number;
214
+ created_at: string;
215
+ updated_at: string;
216
+ ttl_interval_seconds?: number | null | undefined;
217
+ expires_at?: string | null | undefined;
218
+ last_reset_at?: string | null | undefined;
219
+ created_by?: {
220
+ name?: string | null | undefined;
221
+ image?: string | null | undefined;
222
+ } | null | undefined;
223
+ init_source?: string | null | undefined;
224
+ restore_status?: string | null | undefined;
225
+ restored_from?: string | null | undefined;
226
+ restored_as?: string | null | undefined;
227
+ restricted_actions?: {
228
+ name: string;
229
+ reason: string;
230
+ }[] | null | undefined;
231
+ recovery?: {
232
+ deleted_at: string;
233
+ recoverable_until: string;
234
+ deletion_method: "user" | "ttl";
235
+ } | null | undefined;
236
+ }>;
237
+ export declare const createBranchAndConnectTool: (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
119
238
  project_id: z.ZodString;
120
239
  name: z.ZodOptional<z.ZodString>;
121
240
  parent_id: z.ZodOptional<z.ZodString>;
@@ -125,7 +244,7 @@ export declare const createBranchWithComputeTool: (options: ToolClientOptions) =
125
244
  suspend_timeout_seconds: z.ZodOptional<z.ZodInt>;
126
245
  }, z.core.$strict>>;
127
246
  pooled: z.ZodOptional<z.ZodBoolean>;
128
- }, z.core.$strict>, "create_with_compute_branches", {
247
+ }, z.core.$strict>, "create_and_connect_branches", {
129
248
  branch: {
130
249
  id: string;
131
250
  project_id: string;
@@ -210,6 +329,137 @@ export declare const createBranchWithComputeTool: (options: ToolClientOptions) =
210
329
  };
211
330
  connectionString: string;
212
331
  }>;
332
+ export declare const createProjectTool: (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
333
+ settings: z.ZodOptional<z.ZodObject<{
334
+ quota: z.ZodOptional<z.ZodObject<{
335
+ active_time_seconds: z.ZodOptional<z.ZodInt>;
336
+ compute_time_seconds: z.ZodOptional<z.ZodInt>;
337
+ written_data_bytes: z.ZodOptional<z.ZodInt>;
338
+ data_transfer_bytes: z.ZodOptional<z.ZodInt>;
339
+ logical_size_bytes: z.ZodOptional<z.ZodInt>;
340
+ }, z.core.$strict>>;
341
+ allowed_ips: z.ZodOptional<z.ZodObject<{
342
+ ips: z.ZodOptional<z.ZodArray<z.ZodString>>;
343
+ protected_branches_only: z.ZodOptional<z.ZodBoolean>;
344
+ }, z.core.$strict>>;
345
+ enable_logical_replication: z.ZodOptional<z.ZodBoolean>;
346
+ maintenance_window: z.ZodOptional<z.ZodObject<{
347
+ weekdays: z.ZodArray<z.ZodInt>;
348
+ start_time: z.ZodString;
349
+ end_time: z.ZodString;
350
+ }, z.core.$strict>>;
351
+ block_public_connections: z.ZodOptional<z.ZodBoolean>;
352
+ block_vpc_connections: z.ZodOptional<z.ZodBoolean>;
353
+ audit_log_level: z.ZodOptional<z.ZodEnum<{
354
+ base: "base";
355
+ extended: "extended";
356
+ full: "full";
357
+ }>>;
358
+ hipaa: z.ZodOptional<z.ZodBoolean>;
359
+ preload_libraries: z.ZodOptional<z.ZodObject<{
360
+ use_defaults: z.ZodOptional<z.ZodBoolean>;
361
+ enabled_libraries: z.ZodOptional<z.ZodArray<z.ZodString>>;
362
+ }, z.core.$strict>>;
363
+ }, z.core.$strict>>;
364
+ name: z.ZodOptional<z.ZodString>;
365
+ branch: z.ZodOptional<z.ZodObject<{
366
+ name: z.ZodOptional<z.ZodString>;
367
+ role_name: z.ZodOptional<z.ZodString>;
368
+ database_name: z.ZodOptional<z.ZodString>;
369
+ annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
370
+ }, z.core.$strict>>;
371
+ autoscaling_limit_min_cu: z.ZodOptional<z.ZodNumber>;
372
+ autoscaling_limit_max_cu: z.ZodOptional<z.ZodNumber>;
373
+ provisioner: z.ZodOptional<z.ZodString>;
374
+ region_id: z.ZodOptional<z.ZodString>;
375
+ default_endpoint_settings: z.ZodOptional<z.ZodObject<{
376
+ pg_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
377
+ pgbouncer_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
378
+ autoscaling_limit_min_cu: z.ZodOptional<z.ZodNumber>;
379
+ autoscaling_limit_max_cu: z.ZodOptional<z.ZodNumber>;
380
+ suspend_timeout_seconds: z.ZodOptional<z.ZodInt>;
381
+ }, z.core.$strict>>;
382
+ pg_version: z.ZodOptional<z.ZodInt>;
383
+ store_passwords: z.ZodOptional<z.ZodBoolean>;
384
+ history_retention_seconds: z.ZodOptional<z.ZodInt>;
385
+ org_id: z.ZodOptional<z.ZodString>;
386
+ }, z.core.$strict>, "create_projects", {
387
+ data_storage_bytes_hour: number;
388
+ data_transfer_bytes: number;
389
+ written_data_bytes: number;
390
+ compute_time_seconds: number;
391
+ active_time_seconds: number;
392
+ cpu_used_sec: number;
393
+ id: string;
394
+ platform_id: string;
395
+ region_id: string;
396
+ name: string;
397
+ provisioner: import("@neon/sdk").Provisioner;
398
+ default_endpoint_settings?: {
399
+ pg_settings?: {
400
+ [x: string]: string;
401
+ } | null | undefined;
402
+ pgbouncer_settings?: {
403
+ [x: string]: string;
404
+ } | null | undefined;
405
+ autoscaling_limit_min_cu?: number | null | undefined;
406
+ autoscaling_limit_max_cu?: number | null | undefined;
407
+ suspend_timeout_seconds?: number | null | undefined;
408
+ } | null | undefined;
409
+ settings?: {
410
+ quota?: {
411
+ active_time_seconds?: number | null | undefined;
412
+ compute_time_seconds?: number | null | undefined;
413
+ written_data_bytes?: number | null | undefined;
414
+ data_transfer_bytes?: number | null | undefined;
415
+ logical_size_bytes?: number | null | undefined;
416
+ } | null | undefined;
417
+ allowed_ips?: {
418
+ ips?: string[] | null | undefined;
419
+ protected_branches_only?: boolean | null | undefined;
420
+ } | null | undefined;
421
+ enable_logical_replication?: boolean | null | undefined;
422
+ maintenance_window?: {
423
+ weekdays: number[];
424
+ start_time: string;
425
+ end_time: string;
426
+ } | null | undefined;
427
+ block_public_connections?: boolean | null | undefined;
428
+ block_vpc_connections?: boolean | null | undefined;
429
+ audit_log_level?: import("@neon/sdk").ProjectAuditLogLevel | null | undefined;
430
+ hipaa?: boolean | null | undefined;
431
+ preload_libraries?: {
432
+ use_defaults?: boolean | null | undefined;
433
+ enabled_libraries?: string[] | null | undefined;
434
+ } | null | undefined;
435
+ } | null | undefined;
436
+ pg_version: import("@neon/sdk").PgVersion;
437
+ proxy_host: string;
438
+ branch_logical_size_limit: number;
439
+ branch_logical_size_limit_bytes: number;
440
+ store_passwords: boolean;
441
+ maintenance_starts_at?: string | null | undefined;
442
+ creation_source: string;
443
+ history_retention_seconds: number;
444
+ created_at: string;
445
+ updated_at: string;
446
+ synthetic_storage_size?: number | null | undefined;
447
+ consumption_period_start: string;
448
+ consumption_period_end: string;
449
+ quota_reset_at?: string | null | undefined;
450
+ owner_id: string;
451
+ owner?: {
452
+ email: string;
453
+ name: string;
454
+ branches_limit: number;
455
+ subscription_type: import("@neon/sdk").BillingSubscriptionType;
456
+ } | null | undefined;
457
+ compute_last_active_at?: string | null | undefined;
458
+ org_id?: string | null | undefined;
459
+ maintenance_scheduled_for?: string | null | undefined;
460
+ hipaa_enabled_at?: string | null | undefined;
461
+ effective_project_permission?: (import("@neon/sdk").ProjectPermissionLevel | null) | undefined;
462
+ }>;
213
463
  export declare const createProjectAndConnectTool: (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
214
464
  pooled: z.ZodOptional<z.ZodBoolean>;
215
465
  settings: z.ZodOptional<z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"composed.d.ts","sourceRoot":"","sources":["../../../src/lib/ergonomic/composed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAyB,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAuB1E,eAAO,MAAM,kCAAkC;;;;;;;;;;kBAY7C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAG7C,CAAC;AAEH,eAAO,MAAM,qBAAqB;;kBAEhC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;kBAOrC,CAAC;AAIH,eAAO,MAAM,wBAAwB;;;;;;;;;kBASnC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;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