@neon/tools 1.3.3 → 1.4.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.
@@ -2140,7 +2140,7 @@ export declare const toolFactories: {
2140
2140
  "triggers.list": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
2141
2141
  project_id: z.ZodString;
2142
2142
  branch_id: z.ZodString;
2143
- }, z.core.$strict>, "list_triggers", {
2143
+ }, z.core.$strict>, "list_triggers", ({
2144
2144
  type: "schedule";
2145
2145
  trigger_id: import("@neon/sdk").TriggerId;
2146
2146
  function_slug: string;
@@ -2152,9 +2152,21 @@ export declare const toolFactories: {
2152
2152
  enabled: boolean;
2153
2153
  version: number;
2154
2154
  next_run_at: string | null;
2155
- source_branch_id: string;
2156
2155
  inherited: boolean;
2157
- }[]>;
2156
+ } | {
2157
+ type: "storage_object_created";
2158
+ trigger_id: import("@neon/sdk").TriggerId;
2159
+ function_slug: string;
2160
+ name: string;
2161
+ function_path: string;
2162
+ storage_object_created: {
2163
+ bucket_name: string;
2164
+ prefix?: string | null | undefined;
2165
+ };
2166
+ enabled: boolean;
2167
+ version: number;
2168
+ inherited: boolean;
2169
+ })[]>;
2158
2170
  "triggers.get": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
2159
2171
  project_id: z.ZodString;
2160
2172
  branch_id: z.ZodString;
@@ -2171,16 +2183,25 @@ export declare const toolFactories: {
2171
2183
  enabled: boolean;
2172
2184
  version: number;
2173
2185
  next_run_at: string | null;
2174
- source_branch_id: string;
2186
+ inherited: boolean;
2187
+ } | {
2188
+ type: "storage_object_created";
2189
+ trigger_id: import("@neon/sdk").TriggerId;
2190
+ function_slug: string;
2191
+ name: string;
2192
+ function_path: string;
2193
+ storage_object_created: {
2194
+ bucket_name: string;
2195
+ prefix?: string | null | undefined;
2196
+ };
2197
+ enabled: boolean;
2198
+ version: number;
2175
2199
  inherited: boolean;
2176
2200
  }>;
2177
2201
  "triggers.create": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
2178
2202
  project_id: z.ZodString;
2179
2203
  branch_id: z.ZodString;
2180
- body: z.ZodObject<{
2181
- type: z.ZodEnum<{
2182
- schedule: "schedule";
2183
- }>;
2204
+ body: z.ZodDiscriminatedUnion<[z.ZodObject<{
2184
2205
  function_slug: z.ZodString;
2185
2206
  name: z.ZodString;
2186
2207
  function_path: z.ZodOptional<z.ZodString>;
@@ -2188,7 +2209,18 @@ export declare const toolFactories: {
2188
2209
  cron: z.ZodString;
2189
2210
  }, z.core.$strict>;
2190
2211
  enabled: z.ZodOptional<z.ZodBoolean>;
2191
- }, z.core.$strict>;
2212
+ type: z.ZodLiteral<"schedule">;
2213
+ }, z.core.$strict>, z.ZodObject<{
2214
+ function_slug: z.ZodString;
2215
+ name: z.ZodString;
2216
+ function_path: z.ZodOptional<z.ZodString>;
2217
+ storage_object_created: z.ZodObject<{
2218
+ bucket_name: z.ZodString;
2219
+ prefix: z.ZodOptional<z.ZodString>;
2220
+ }, z.core.$strict>;
2221
+ enabled: z.ZodOptional<z.ZodBoolean>;
2222
+ type: z.ZodLiteral<"storage_object_created">;
2223
+ }, z.core.$strict>], "type">;
2192
2224
  }, z.core.$strict>, "create_triggers", {
2193
2225
  type: "schedule";
2194
2226
  trigger_id: import("@neon/sdk").TriggerId;
@@ -2201,17 +2233,26 @@ export declare const toolFactories: {
2201
2233
  enabled: boolean;
2202
2234
  version: number;
2203
2235
  next_run_at: string | null;
2204
- source_branch_id: string;
2236
+ inherited: boolean;
2237
+ } | {
2238
+ type: "storage_object_created";
2239
+ trigger_id: import("@neon/sdk").TriggerId;
2240
+ function_slug: string;
2241
+ name: string;
2242
+ function_path: string;
2243
+ storage_object_created: {
2244
+ bucket_name: string;
2245
+ prefix?: string | null | undefined;
2246
+ };
2247
+ enabled: boolean;
2248
+ version: number;
2205
2249
  inherited: boolean;
2206
2250
  }>;
2207
2251
  "triggers.update": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
2208
2252
  project_id: z.ZodString;
2209
2253
  branch_id: z.ZodString;
2210
2254
  trigger_id: z.ZodString;
2211
- body: z.ZodObject<{
2212
- type: z.ZodEnum<{
2213
- schedule: "schedule";
2214
- }>;
2255
+ body: z.ZodDiscriminatedUnion<[z.ZodObject<{
2215
2256
  function_slug: z.ZodOptional<z.ZodString>;
2216
2257
  name: z.ZodOptional<z.ZodString>;
2217
2258
  function_path: z.ZodOptional<z.ZodString>;
@@ -2219,7 +2260,18 @@ export declare const toolFactories: {
2219
2260
  cron: z.ZodString;
2220
2261
  }, z.core.$strict>>;
2221
2262
  enabled: z.ZodOptional<z.ZodBoolean>;
2222
- }, z.core.$strict>;
2263
+ type: z.ZodLiteral<"schedule">;
2264
+ }, z.core.$strict>, z.ZodObject<{
2265
+ function_slug: z.ZodOptional<z.ZodString>;
2266
+ name: z.ZodOptional<z.ZodString>;
2267
+ function_path: z.ZodOptional<z.ZodString>;
2268
+ storage_object_created: z.ZodOptional<z.ZodObject<{
2269
+ bucket_name: z.ZodString;
2270
+ prefix: z.ZodOptional<z.ZodString>;
2271
+ }, z.core.$strict>>;
2272
+ enabled: z.ZodOptional<z.ZodBoolean>;
2273
+ type: z.ZodLiteral<"storage_object_created">;
2274
+ }, z.core.$strict>], "type">;
2223
2275
  }, z.core.$strict>, "update_triggers", {
2224
2276
  type: "schedule";
2225
2277
  trigger_id: import("@neon/sdk").TriggerId;
@@ -2232,7 +2284,19 @@ export declare const toolFactories: {
2232
2284
  enabled: boolean;
2233
2285
  version: number;
2234
2286
  next_run_at: string | null;
2235
- source_branch_id: string;
2287
+ inherited: boolean;
2288
+ } | {
2289
+ type: "storage_object_created";
2290
+ trigger_id: import("@neon/sdk").TriggerId;
2291
+ function_slug: string;
2292
+ name: string;
2293
+ function_path: string;
2294
+ storage_object_created: {
2295
+ bucket_name: string;
2296
+ prefix?: string | null | undefined;
2297
+ };
2298
+ enabled: boolean;
2299
+ version: number;
2236
2300
  inherited: boolean;
2237
2301
  }>;
2238
2302
  "triggers.delete": (options: ToolClientOptions) => import("../operation.js").NeonTool<z.ZodObject<{
@@ -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;AAanB,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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