@supabase/mcp-server-supabase 0.13.0 → 0.15.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.
- package/dist/chunk-6CRL5K4W.cjs +2 -0
- package/dist/chunk-6CRL5K4W.cjs.map +1 -0
- package/dist/chunk-AO46QKX4.js +2 -0
- package/dist/chunk-AO46QKX4.js.map +1 -0
- package/dist/chunk-K35CHAKZ.js +2 -0
- package/dist/chunk-K35CHAKZ.js.map +1 -0
- package/dist/chunk-MCGVYF75.cjs +285 -0
- package/dist/chunk-MCGVYF75.cjs.map +1 -0
- package/dist/chunk-MYMWFJP6.cjs +65 -0
- package/dist/chunk-MYMWFJP6.cjs.map +1 -0
- package/dist/chunk-RAFOVMAQ.cjs +2 -0
- package/dist/chunk-RAFOVMAQ.cjs.map +1 -0
- package/dist/chunk-RARMLKMM.js +285 -0
- package/dist/chunk-RARMLKMM.js.map +1 -0
- package/dist/chunk-VZ3JIRKN.js +65 -0
- package/dist/chunk-VZ3JIRKN.js.map +1 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +550 -17
- package/dist/index.d.ts +550 -17
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/platform/api-platform.cjs +1 -1
- package/dist/platform/api-platform.js +1 -1
- package/dist/platform/index.cjs +1 -1
- package/dist/platform/index.cjs.map +1 -1
- package/dist/platform/index.d.cts +290 -1
- package/dist/platform/index.d.ts +290 -1
- package/dist/platform/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-536WYGSZ.cjs +0 -2
- package/dist/chunk-536WYGSZ.cjs.map +0 -1
- package/dist/chunk-BAHK6DOT.js +0 -280
- package/dist/chunk-BAHK6DOT.js.map +0 -1
- package/dist/chunk-ETDG2YWQ.cjs +0 -50
- package/dist/chunk-ETDG2YWQ.cjs.map +0 -1
- package/dist/chunk-HJCSISZG.cjs +0 -280
- package/dist/chunk-HJCSISZG.cjs.map +0 -1
- package/dist/chunk-LGYQEOKZ.js +0 -2
- package/dist/chunk-LGYQEOKZ.js.map +0 -1
- package/dist/chunk-MGV6E7CY.js +0 -17
- package/dist/chunk-MGV6E7CY.js.map +0 -1
- package/dist/chunk-UY7NVUDB.cjs +0 -17
- package/dist/chunk-UY7NVUDB.cjs.map +0 -1
- package/dist/chunk-ZKX2YAIQ.js +0 -50
- package/dist/chunk-ZKX2YAIQ.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b as
|
|
1
|
+
import{a,b as p,c as s,d as c,h as n,i,j as e}from"./chunk-RARMLKMM.js";import{a as r,g as t}from"./chunk-VZ3JIRKN.js";import"./chunk-K35CHAKZ.js";import{createMcpHandler as l}from"@modelcontextprotocol/server";function b(o){return l(()=>e(o),{legacy:"reject"})}var f=r.version;export{s as CURRENT_ELICITATION_TOOLS,c as CURRENT_FEATURE_GROUPS,a as ToolCallerError,t as createFeedbackOperations,b as createSupabaseMcpHandler,e as createSupabaseMcpServer,i as createToolSchemas,p as isToolCallerError,n as supabaseMcpToolSchemas,f as version};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/transports/http.ts","../src/index.ts"],"sourcesContent":["import { createMcpHandler } from '@modelcontextprotocol/server';\n\nimport {\n createSupabaseMcpServer,\n type SupabaseMcpServerOptions,\n} from '../server.js';\n\n// Modern protocol only: created with `legacy: 'reject'`, so a client that\n// speaks just the 2025-era protocol gets an HTTP 400 instead of being served.\nexport function createSupabaseMcpHandler(options: SupabaseMcpServerOptions) {\n return createMcpHandler(() => createSupabaseMcpServer(options), {\n legacy: 'reject',\n });\n}\n","import packageJson from '../package.json' with { type: 'json' };\n\nexport type { ToolCallCallback } from '@supabase/mcp-utils';\nexport type { SupabasePlatform } from './platform/index.js';\nexport {\n createSupabaseMcpServer,\n type SupabaseMcpServerOptions,\n} from './server.js';\nexport { createSupabaseMcpHandler } from './transports/http.js';\nexport {\n CURRENT_ELICITATION_TOOLS,\n CURRENT_FEATURE_GROUPS,\n type ElicitationToolName,\n type FeatureGroup,\n} from './types.js';\nexport const version = packageJson.version;\n\nexport {\n createToolSchemas,\n supabaseMcpToolSchemas,\n} from './tools/tool-schemas.js';\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/transports/http.ts","../src/index.ts"],"sourcesContent":["import { createMcpHandler } from '@modelcontextprotocol/server';\n\nimport {\n createSupabaseMcpServer,\n type SupabaseMcpServerOptions,\n} from '../server.js';\n\n// Modern protocol only: created with `legacy: 'reject'`, so a client that\n// speaks just the 2025-era protocol gets an HTTP 400 instead of being served.\nexport function createSupabaseMcpHandler(options: SupabaseMcpServerOptions) {\n return createMcpHandler(() => createSupabaseMcpServer(options), {\n legacy: 'reject',\n });\n}\n","import packageJson from '../package.json' with { type: 'json' };\n\nexport type {\n ObservationContext,\n ObservationEnd,\n ObservationFact,\n ObservedMethod,\n ObservedTool,\n ConfirmationFeature,\n RequestObservation,\n RequestObserver,\n} from './observation.js';\nexport { isToolCallerError, ToolCallerError } from './errors.js';\nexport type { ToolCallCallback } from '@supabase/mcp-utils';\nexport {\n createFeedbackOperations,\n type FeedbackOperationsOptions,\n} from './platform/feedback.js';\nexport type { FeedbackOperations, SupabasePlatform } from './platform/index.js';\nexport {\n createSupabaseMcpServer,\n type SupabaseMcpServerOptions,\n} from './server.js';\nexport { createSupabaseMcpHandler } from './transports/http.js';\nexport {\n CURRENT_ELICITATION_TOOLS,\n CURRENT_FEATURE_GROUPS,\n type ElicitationToolName,\n type FeatureGroup,\n} from './types.js';\nexport const version = packageJson.version;\n\nexport {\n createToolSchemas,\n supabaseMcpToolSchemas,\n} from './tools/tool-schemas.js';\n"],"mappings":"mJAAA,OAAS,oBAAAA,MAAwB,+BAS1B,SAASC,EAAyBC,EAAmC,CAC1E,OAAOC,EAAiB,IAAMC,EAAwBF,CAAO,EAAG,CAC9D,OAAQ,QACV,CAAC,CACH,CCiBO,IAAMG,EAAUC,EAAY","names":["createMcpHandler","createSupabaseMcpHandler","options","createMcpHandler","createSupabaseMcpServer","version","package_default"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRAFOVMAQcjs = require('../chunk-RAFOVMAQ.cjs');require('../chunk-MYMWFJP6.cjs');require('../chunk-PHWSETKC.cjs');require('../chunk-6CRL5K4W.cjs');exports.createSupabaseApiPlatform = _chunkRAFOVMAQcjs.a;
|
|
2
2
|
//# sourceMappingURL=api-platform.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-AO46QKX4.js";import"../chunk-VZ3JIRKN.js";import"../chunk-LU6L7C36.js";import"../chunk-K35CHAKZ.js";export{a as createSupabaseApiPlatform};
|
|
2
2
|
//# sourceMappingURL=api-platform.js.map
|
package/dist/platform/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-PHWSETKC.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-PHWSETKC.cjs');var _chunk6CRL5K4Wcjs = require('../chunk-6CRL5K4W.cjs');exports.apiKeyTypeSchema = _chunk6CRL5K4Wcjs.x; exports.applyMigrationOptionsSchema = _chunk6CRL5K4Wcjs.n; exports.branchSchema = _chunk6CRL5K4Wcjs.f; exports.createBranchOptionsSchema = _chunk6CRL5K4Wcjs.j; exports.createNotebookOptionsSchema = _chunk6CRL5K4Wcjs.u; exports.createProjectOptionsSchema = _chunk6CRL5K4Wcjs.i; exports.deployEdgeFunctionOptionsSchema = _chunk6CRL5K4Wcjs.l; exports.edgeFunctionSchema = _chunk6CRL5K4Wcjs.g; exports.edgeFunctionWithBodySchema = _chunk6CRL5K4Wcjs.h; exports.executeSqlOptionsSchema = _chunk6CRL5K4Wcjs.m; exports.generateTypescriptTypesResultSchema = _chunk6CRL5K4Wcjs.s; exports.getLogsOptionsSchema = _chunk6CRL5K4Wcjs.q; exports.logsServiceSchema = _chunk6CRL5K4Wcjs.p; exports.migrationSchema = _chunk6CRL5K4Wcjs.o; exports.notebookCellSchema = _chunk6CRL5K4Wcjs.t; exports.notebookSchema = _chunk6CRL5K4Wcjs.v; exports.notebookWithContentSchema = _chunk6CRL5K4Wcjs.w; exports.organizationSchema = _chunk6CRL5K4Wcjs.d; exports.projectSchema = _chunk6CRL5K4Wcjs.e; exports.queryLogsOptionsSchema = _chunk6CRL5K4Wcjs.r; exports.resetBranchOptionsSchema = _chunk6CRL5K4Wcjs.k; exports.storageBucketSchema = _chunk6CRL5K4Wcjs.b; exports.storageConfigSchema = _chunk6CRL5K4Wcjs.c;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/mcp/mcp/packages/mcp-server-supabase/dist/platform/index.cjs"],"names":[],"mappings":"AAAA,0GAA6B,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/mcp/mcp/packages/mcp-server-supabase/dist/platform/index.cjs"],"names":[],"mappings":"AAAA,0GAA6B,yDAAoM,ysCAA4nB","file":"/home/runner/work/mcp/mcp/packages/mcp-server-supabase/dist/platform/index.cjs"}
|
|
@@ -134,6 +134,7 @@ declare const executeSqlOptionsSchema: z.ZodObject<{
|
|
|
134
134
|
query: z.ZodString;
|
|
135
135
|
parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
136
136
|
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
137
|
+
max_result_bytes: z.ZodOptional<z.ZodNumber>;
|
|
137
138
|
}, z.core.$strip>;
|
|
138
139
|
declare const applyMigrationOptionsSchema: z.ZodObject<{
|
|
139
140
|
name: z.ZodString;
|
|
@@ -175,6 +176,263 @@ declare const queryLogsOptionsSchema: z.ZodObject<{
|
|
|
175
176
|
declare const generateTypescriptTypesResultSchema: z.ZodObject<{
|
|
176
177
|
types: z.ZodString;
|
|
177
178
|
}, z.core.$strip>;
|
|
179
|
+
declare const notebookCellSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
180
|
+
id: z.ZodString;
|
|
181
|
+
type: z.ZodLiteral<"markdown">;
|
|
182
|
+
text: z.ZodString;
|
|
183
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
184
|
+
id: z.ZodString;
|
|
185
|
+
type: z.ZodLiteral<"database">;
|
|
186
|
+
sql: z.ZodString;
|
|
187
|
+
row_limit: z.ZodNumber;
|
|
188
|
+
database_identifier: z.ZodOptional<z.ZodString>;
|
|
189
|
+
title: z.ZodOptional<z.ZodString>;
|
|
190
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
191
|
+
table: "table";
|
|
192
|
+
chart: "chart";
|
|
193
|
+
}>>;
|
|
194
|
+
chart: z.ZodOptional<z.ZodObject<{
|
|
195
|
+
type: z.ZodEnum<{
|
|
196
|
+
bar: "bar";
|
|
197
|
+
line: "line";
|
|
198
|
+
}>;
|
|
199
|
+
x_column: z.ZodString;
|
|
200
|
+
y_series: z.ZodArray<z.ZodObject<{
|
|
201
|
+
column: z.ZodString;
|
|
202
|
+
}, z.core.$strip>>;
|
|
203
|
+
scale: z.ZodEnum<{
|
|
204
|
+
linear: "linear";
|
|
205
|
+
log: "log";
|
|
206
|
+
}>;
|
|
207
|
+
cumulative: z.ZodBoolean;
|
|
208
|
+
show_labels: z.ZodBoolean;
|
|
209
|
+
}, z.core.$strip>>;
|
|
210
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
211
|
+
id: z.ZodString;
|
|
212
|
+
type: z.ZodLiteral<"log">;
|
|
213
|
+
sql: z.ZodString;
|
|
214
|
+
time_range: z.ZodUnion<readonly [z.ZodObject<{
|
|
215
|
+
type: z.ZodLiteral<"absolute">;
|
|
216
|
+
start: z.ZodString;
|
|
217
|
+
end: z.ZodString;
|
|
218
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
219
|
+
type: z.ZodLiteral<"relative">;
|
|
220
|
+
unit: z.ZodEnum<{
|
|
221
|
+
minute: "minute";
|
|
222
|
+
hour: "hour";
|
|
223
|
+
day: "day";
|
|
224
|
+
week: "week";
|
|
225
|
+
month: "month";
|
|
226
|
+
year: "year";
|
|
227
|
+
}>;
|
|
228
|
+
amount: z.ZodNumber;
|
|
229
|
+
}, z.core.$strip>]>;
|
|
230
|
+
title: z.ZodOptional<z.ZodString>;
|
|
231
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
232
|
+
table: "table";
|
|
233
|
+
chart: "chart";
|
|
234
|
+
}>>;
|
|
235
|
+
chart: z.ZodOptional<z.ZodObject<{
|
|
236
|
+
type: z.ZodEnum<{
|
|
237
|
+
bar: "bar";
|
|
238
|
+
line: "line";
|
|
239
|
+
}>;
|
|
240
|
+
x_column: z.ZodString;
|
|
241
|
+
y_series: z.ZodArray<z.ZodObject<{
|
|
242
|
+
column: z.ZodString;
|
|
243
|
+
}, z.core.$strip>>;
|
|
244
|
+
scale: z.ZodEnum<{
|
|
245
|
+
linear: "linear";
|
|
246
|
+
log: "log";
|
|
247
|
+
}>;
|
|
248
|
+
cumulative: z.ZodBoolean;
|
|
249
|
+
show_labels: z.ZodBoolean;
|
|
250
|
+
}, z.core.$strip>>;
|
|
251
|
+
}, z.core.$strip>], "type">;
|
|
252
|
+
declare const createNotebookOptionsSchema: z.ZodObject<{
|
|
253
|
+
name: z.ZodString;
|
|
254
|
+
description: z.ZodOptional<z.ZodString>;
|
|
255
|
+
content: z.ZodObject<{
|
|
256
|
+
cells: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
257
|
+
type: z.ZodLiteral<"markdown">;
|
|
258
|
+
text: z.ZodString;
|
|
259
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
260
|
+
type: z.ZodLiteral<"database">;
|
|
261
|
+
title: z.ZodOptional<z.ZodString>;
|
|
262
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
263
|
+
table: "table";
|
|
264
|
+
chart: "chart";
|
|
265
|
+
}>>;
|
|
266
|
+
sql: z.ZodString;
|
|
267
|
+
row_limit: z.ZodNumber;
|
|
268
|
+
database_identifier: z.ZodOptional<z.ZodString>;
|
|
269
|
+
chart: z.ZodOptional<z.ZodObject<{
|
|
270
|
+
type: z.ZodEnum<{
|
|
271
|
+
bar: "bar";
|
|
272
|
+
line: "line";
|
|
273
|
+
}>;
|
|
274
|
+
x_column: z.ZodString;
|
|
275
|
+
scale: z.ZodEnum<{
|
|
276
|
+
linear: "linear";
|
|
277
|
+
log: "log";
|
|
278
|
+
}>;
|
|
279
|
+
cumulative: z.ZodBoolean;
|
|
280
|
+
show_labels: z.ZodBoolean;
|
|
281
|
+
y_series: z.ZodArray<z.ZodObject<{
|
|
282
|
+
column: z.ZodString;
|
|
283
|
+
}, z.core.$strict>>;
|
|
284
|
+
}, z.core.$strict>>;
|
|
285
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
286
|
+
type: z.ZodLiteral<"log">;
|
|
287
|
+
title: z.ZodOptional<z.ZodString>;
|
|
288
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
289
|
+
table: "table";
|
|
290
|
+
chart: "chart";
|
|
291
|
+
}>>;
|
|
292
|
+
sql: z.ZodString;
|
|
293
|
+
time_range: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
294
|
+
type: z.ZodLiteral<"absolute">;
|
|
295
|
+
start: z.ZodISODateTime;
|
|
296
|
+
end: z.ZodISODateTime;
|
|
297
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
298
|
+
type: z.ZodLiteral<"relative">;
|
|
299
|
+
unit: z.ZodEnum<{
|
|
300
|
+
minute: "minute";
|
|
301
|
+
hour: "hour";
|
|
302
|
+
day: "day";
|
|
303
|
+
week: "week";
|
|
304
|
+
month: "month";
|
|
305
|
+
year: "year";
|
|
306
|
+
}>;
|
|
307
|
+
amount: z.ZodNumber;
|
|
308
|
+
}, z.core.$strict>], "type">;
|
|
309
|
+
chart: z.ZodOptional<z.ZodObject<{
|
|
310
|
+
type: z.ZodEnum<{
|
|
311
|
+
bar: "bar";
|
|
312
|
+
line: "line";
|
|
313
|
+
}>;
|
|
314
|
+
x_column: z.ZodString;
|
|
315
|
+
scale: z.ZodEnum<{
|
|
316
|
+
linear: "linear";
|
|
317
|
+
log: "log";
|
|
318
|
+
}>;
|
|
319
|
+
cumulative: z.ZodBoolean;
|
|
320
|
+
show_labels: z.ZodBoolean;
|
|
321
|
+
y_series: z.ZodArray<z.ZodObject<{
|
|
322
|
+
column: z.ZodString;
|
|
323
|
+
}, z.core.$strict>>;
|
|
324
|
+
}, z.core.$strict>>;
|
|
325
|
+
}, z.core.$strict>], "type">>;
|
|
326
|
+
}, z.core.$strip>;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
|
+
declare const notebookSchema: z.ZodObject<{
|
|
329
|
+
id: z.ZodString;
|
|
330
|
+
name: z.ZodString;
|
|
331
|
+
description: z.ZodNullable<z.ZodString>;
|
|
332
|
+
favorite: z.ZodBoolean;
|
|
333
|
+
inserted_at: z.ZodString;
|
|
334
|
+
updated_at: z.ZodString;
|
|
335
|
+
owner: z.ZodNullable<z.ZodObject<{
|
|
336
|
+
id: z.ZodNumber;
|
|
337
|
+
username: z.ZodString;
|
|
338
|
+
}, z.core.$strip>>;
|
|
339
|
+
updated_by: z.ZodNullable<z.ZodObject<{
|
|
340
|
+
id: z.ZodNumber;
|
|
341
|
+
username: z.ZodString;
|
|
342
|
+
}, z.core.$strip>>;
|
|
343
|
+
}, z.core.$strip>;
|
|
344
|
+
declare const notebookWithContentSchema: z.ZodObject<{
|
|
345
|
+
id: z.ZodString;
|
|
346
|
+
name: z.ZodString;
|
|
347
|
+
description: z.ZodNullable<z.ZodString>;
|
|
348
|
+
favorite: z.ZodBoolean;
|
|
349
|
+
inserted_at: z.ZodString;
|
|
350
|
+
updated_at: z.ZodString;
|
|
351
|
+
owner: z.ZodNullable<z.ZodObject<{
|
|
352
|
+
id: z.ZodNumber;
|
|
353
|
+
username: z.ZodString;
|
|
354
|
+
}, z.core.$strip>>;
|
|
355
|
+
updated_by: z.ZodNullable<z.ZodObject<{
|
|
356
|
+
id: z.ZodNumber;
|
|
357
|
+
username: z.ZodString;
|
|
358
|
+
}, z.core.$strip>>;
|
|
359
|
+
content: z.ZodObject<{
|
|
360
|
+
schema_version: z.ZodNumber;
|
|
361
|
+
cells: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
362
|
+
id: z.ZodString;
|
|
363
|
+
type: z.ZodLiteral<"markdown">;
|
|
364
|
+
text: z.ZodString;
|
|
365
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
366
|
+
id: z.ZodString;
|
|
367
|
+
type: z.ZodLiteral<"database">;
|
|
368
|
+
sql: z.ZodString;
|
|
369
|
+
row_limit: z.ZodNumber;
|
|
370
|
+
database_identifier: z.ZodOptional<z.ZodString>;
|
|
371
|
+
title: z.ZodOptional<z.ZodString>;
|
|
372
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
373
|
+
table: "table";
|
|
374
|
+
chart: "chart";
|
|
375
|
+
}>>;
|
|
376
|
+
chart: z.ZodOptional<z.ZodObject<{
|
|
377
|
+
type: z.ZodEnum<{
|
|
378
|
+
bar: "bar";
|
|
379
|
+
line: "line";
|
|
380
|
+
}>;
|
|
381
|
+
x_column: z.ZodString;
|
|
382
|
+
y_series: z.ZodArray<z.ZodObject<{
|
|
383
|
+
column: z.ZodString;
|
|
384
|
+
}, z.core.$strip>>;
|
|
385
|
+
scale: z.ZodEnum<{
|
|
386
|
+
linear: "linear";
|
|
387
|
+
log: "log";
|
|
388
|
+
}>;
|
|
389
|
+
cumulative: z.ZodBoolean;
|
|
390
|
+
show_labels: z.ZodBoolean;
|
|
391
|
+
}, z.core.$strip>>;
|
|
392
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
393
|
+
id: z.ZodString;
|
|
394
|
+
type: z.ZodLiteral<"log">;
|
|
395
|
+
sql: z.ZodString;
|
|
396
|
+
time_range: z.ZodUnion<readonly [z.ZodObject<{
|
|
397
|
+
type: z.ZodLiteral<"absolute">;
|
|
398
|
+
start: z.ZodString;
|
|
399
|
+
end: z.ZodString;
|
|
400
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
401
|
+
type: z.ZodLiteral<"relative">;
|
|
402
|
+
unit: z.ZodEnum<{
|
|
403
|
+
minute: "minute";
|
|
404
|
+
hour: "hour";
|
|
405
|
+
day: "day";
|
|
406
|
+
week: "week";
|
|
407
|
+
month: "month";
|
|
408
|
+
year: "year";
|
|
409
|
+
}>;
|
|
410
|
+
amount: z.ZodNumber;
|
|
411
|
+
}, z.core.$strip>]>;
|
|
412
|
+
title: z.ZodOptional<z.ZodString>;
|
|
413
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
414
|
+
table: "table";
|
|
415
|
+
chart: "chart";
|
|
416
|
+
}>>;
|
|
417
|
+
chart: z.ZodOptional<z.ZodObject<{
|
|
418
|
+
type: z.ZodEnum<{
|
|
419
|
+
bar: "bar";
|
|
420
|
+
line: "line";
|
|
421
|
+
}>;
|
|
422
|
+
x_column: z.ZodString;
|
|
423
|
+
y_series: z.ZodArray<z.ZodObject<{
|
|
424
|
+
column: z.ZodString;
|
|
425
|
+
}, z.core.$strip>>;
|
|
426
|
+
scale: z.ZodEnum<{
|
|
427
|
+
linear: "linear";
|
|
428
|
+
log: "log";
|
|
429
|
+
}>;
|
|
430
|
+
cumulative: z.ZodBoolean;
|
|
431
|
+
show_labels: z.ZodBoolean;
|
|
432
|
+
}, z.core.$strip>>;
|
|
433
|
+
}, z.core.$strip>], "type">>;
|
|
434
|
+
}, z.core.$strip>;
|
|
435
|
+
}, z.core.$strip>;
|
|
178
436
|
type Organization = z.infer<typeof organizationSchema>;
|
|
179
437
|
type Project = z.infer<typeof projectSchema>;
|
|
180
438
|
type Branch = z.infer<typeof branchSchema>;
|
|
@@ -194,6 +452,10 @@ type QueryLogsOptions = z.infer<typeof queryLogsOptionsSchema>;
|
|
|
194
452
|
type GenerateTypescriptTypesResult = z.infer<typeof generateTypescriptTypesResultSchema>;
|
|
195
453
|
type StorageConfig = z.infer<typeof storageConfigSchema>;
|
|
196
454
|
type StorageBucket = z.infer<typeof storageBucketSchema>;
|
|
455
|
+
type NotebookCell = z.infer<typeof notebookCellSchema>;
|
|
456
|
+
type CreateNotebookOptions = z.infer<typeof createNotebookOptionsSchema>;
|
|
457
|
+
type Notebook = z.infer<typeof notebookSchema>;
|
|
458
|
+
type NotebookWithContent = z.infer<typeof notebookWithContentSchema>;
|
|
197
459
|
type DatabaseOperations = {
|
|
198
460
|
executeSql<T>(projectId: string, options: ExecuteSqlOptions): Promise<T[]>;
|
|
199
461
|
listMigrations(projectId: string): Promise<Migration[]>;
|
|
@@ -234,6 +496,7 @@ type DebuggingOperations = {
|
|
|
234
496
|
queryLogs?(projectId: string, options: QueryLogsOptions): Promise<unknown>;
|
|
235
497
|
getSecurityAdvisors(projectId: string): Promise<unknown>;
|
|
236
498
|
getPerformanceAdvisors(projectId: string): Promise<unknown>;
|
|
499
|
+
getHealthAdvisors?(projectId: string): Promise<unknown>;
|
|
237
500
|
};
|
|
238
501
|
declare const apiKeyTypeSchema: z.ZodEnum<{
|
|
239
502
|
legacy: "legacy";
|
|
@@ -273,6 +536,30 @@ type BranchingOperations = {
|
|
|
273
536
|
type SecretOperations = {
|
|
274
537
|
getUpdatedAt(projectId: string, name: string): Promise<Date | undefined>;
|
|
275
538
|
};
|
|
539
|
+
type NotebookOperations = {
|
|
540
|
+
/** Optional for platforms that only support reading notebooks. */
|
|
541
|
+
createNotebook?(projectId: string, options: CreateNotebookOptions): Promise<NotebookWithContent>;
|
|
542
|
+
listNotebooks(projectId: string): Promise<Notebook[]>;
|
|
543
|
+
getNotebook(projectId: string, notebookId: string): Promise<NotebookWithContent>;
|
|
544
|
+
};
|
|
545
|
+
type FeedbackOperations = {
|
|
546
|
+
submit(input: {
|
|
547
|
+
feedback: string;
|
|
548
|
+
projectId?: string;
|
|
549
|
+
clientInfo?: {
|
|
550
|
+
name: string;
|
|
551
|
+
version: string;
|
|
552
|
+
};
|
|
553
|
+
}): Promise<{
|
|
554
|
+
deleteToken: string;
|
|
555
|
+
}>;
|
|
556
|
+
delete(input: {
|
|
557
|
+
deleteToken: string;
|
|
558
|
+
projectId?: string;
|
|
559
|
+
}): Promise<{
|
|
560
|
+
deleted: boolean;
|
|
561
|
+
}>;
|
|
562
|
+
};
|
|
276
563
|
type SupabasePlatform = {
|
|
277
564
|
init?(info: InitData): Promise<void>;
|
|
278
565
|
account?: AccountOperations;
|
|
@@ -283,6 +570,8 @@ type SupabasePlatform = {
|
|
|
283
570
|
storage?: StorageOperations;
|
|
284
571
|
branching?: BranchingOperations;
|
|
285
572
|
secrets?: SecretOperations;
|
|
573
|
+
notebooks?: NotebookOperations;
|
|
574
|
+
feedback?: FeedbackOperations;
|
|
286
575
|
};
|
|
287
576
|
|
|
288
|
-
export { type AccountOperations, type ApiKey, type ApiKeyType, type ApplyMigrationOptions, type Branch, type BranchingOperations, type CreateBranchOptions, type CreateProjectOptions, type DatabaseOperations, type DebuggingOperations, type DeployEdgeFunctionOptions, type DevelopmentOperations, type EdgeFunction, type EdgeFunctionWithBody, type EdgeFunctionsOperations, type ExecuteSqlOptions, type GenerateTypescriptTypesResult, type GetLogsOptions, type ListMigrationsResult, type LogsDialect, type LogsService, type Migration, type Organization, type Project, type QueryLogsOptions, type ResetBranchOptions, type SecretOperations, type StorageBucket, type StorageConfig, type StorageOperations, type SuccessResponse, type SupabasePlatform, apiKeyTypeSchema, applyMigrationOptionsSchema, branchSchema, createBranchOptionsSchema, createProjectOptionsSchema, deployEdgeFunctionOptionsSchema, edgeFunctionSchema, edgeFunctionWithBodySchema, executeSqlOptionsSchema, generateTypescriptTypesResultSchema, getLogsOptionsSchema, logsServiceSchema, migrationSchema, organizationSchema, projectSchema, queryLogsOptionsSchema, resetBranchOptionsSchema, storageBucketSchema, storageConfigSchema };
|
|
577
|
+
export { type AccountOperations, type ApiKey, type ApiKeyType, type ApplyMigrationOptions, type Branch, type BranchingOperations, type CreateBranchOptions, type CreateNotebookOptions, type CreateProjectOptions, type DatabaseOperations, type DebuggingOperations, type DeployEdgeFunctionOptions, type DevelopmentOperations, type EdgeFunction, type EdgeFunctionWithBody, type EdgeFunctionsOperations, type ExecuteSqlOptions, type FeedbackOperations, type GenerateTypescriptTypesResult, type GetLogsOptions, type ListMigrationsResult, type LogsDialect, type LogsService, type Migration, type Notebook, type NotebookCell, type NotebookOperations, type NotebookWithContent, type Organization, type Project, type QueryLogsOptions, type ResetBranchOptions, type SecretOperations, type StorageBucket, type StorageConfig, type StorageOperations, type SuccessResponse, type SupabasePlatform, apiKeyTypeSchema, applyMigrationOptionsSchema, branchSchema, createBranchOptionsSchema, createNotebookOptionsSchema, createProjectOptionsSchema, deployEdgeFunctionOptionsSchema, edgeFunctionSchema, edgeFunctionWithBodySchema, executeSqlOptionsSchema, generateTypescriptTypesResultSchema, getLogsOptionsSchema, logsServiceSchema, migrationSchema, notebookCellSchema, notebookSchema, notebookWithContentSchema, organizationSchema, projectSchema, queryLogsOptionsSchema, resetBranchOptionsSchema, storageBucketSchema, storageConfigSchema };
|