@supabase/mcp-server-supabase 0.18.0 → 0.19.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-3BFHAE72.js +17 -0
- package/dist/chunk-3BFHAE72.js.map +1 -0
- package/dist/chunk-6DARTJRP.js +50 -0
- package/dist/chunk-6DARTJRP.js.map +1 -0
- package/dist/chunk-6QB2YXYQ.cjs +17 -0
- package/dist/chunk-6QB2YXYQ.cjs.map +1 -0
- package/dist/{chunk-TK2UZS5X.cjs → chunk-C4YUF27U.cjs} +11 -26
- package/dist/chunk-C4YUF27U.cjs.map +1 -0
- package/dist/chunk-DG3LSIFH.cjs +2 -0
- package/dist/chunk-DG3LSIFH.cjs.map +1 -0
- package/dist/chunk-OO7IZCN3.cjs +295 -0
- package/dist/chunk-OO7IZCN3.cjs.map +1 -0
- package/dist/chunk-VV4YSLRO.cjs +1 -0
- package/dist/{chunk-PHWSETKC.cjs.map → chunk-VV4YSLRO.cjs.map} +1 -1
- package/dist/chunk-W6H5VMAV.js +1 -0
- package/dist/chunk-WAYAYNQY.js +295 -0
- package/dist/chunk-WAYAYNQY.js.map +1 -0
- package/dist/chunk-YW7R6DLX.js +2 -0
- package/dist/chunk-YW7R6DLX.js.map +1 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -18
- package/dist/index.d.ts +31 -18
- 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.d.cts +1 -1
- package/dist/platform/api-platform.d.ts +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 +13 -576
- package/dist/platform/index.d.ts +13 -576
- package/dist/platform/index.js +1 -1
- package/dist/types-abfpaWQw.d.cts +582 -0
- package/dist/types-abfpaWQw.d.ts +582 -0
- package/package.json +3 -1
- package/dist/chunk-6FWRABME.cjs +0 -2
- package/dist/chunk-6FWRABME.cjs.map +0 -1
- package/dist/chunk-BTGEP5EB.js +0 -65
- package/dist/chunk-BTGEP5EB.js.map +0 -1
- package/dist/chunk-DIWVSO7X.cjs +0 -2
- package/dist/chunk-DIWVSO7X.cjs.map +0 -1
- package/dist/chunk-DP5DAOXI.cjs +0 -295
- package/dist/chunk-DP5DAOXI.cjs.map +0 -1
- package/dist/chunk-JIUJWRLL.js +0 -2
- package/dist/chunk-JIUJWRLL.js.map +0 -1
- package/dist/chunk-LL3YUIO5.js +0 -2
- package/dist/chunk-LL3YUIO5.js.map +0 -1
- package/dist/chunk-LU6L7C36.js +0 -1
- package/dist/chunk-PHWSETKC.cjs +0 -1
- package/dist/chunk-TK2UZS5X.cjs.map +0 -1
- package/dist/chunk-WOFMZZMH.js +0 -295
- package/dist/chunk-WOFMZZMH.js.map +0 -1
- /package/dist/{chunk-LU6L7C36.js.map → chunk-W6H5VMAV.js.map} +0 -0
|
@@ -1,582 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
export { X as AccountOperations, a1 as ApiKey, a0 as ApiKeyType, F as ApplyMigrationOptions, B as Branch, a4 as BranchingOperations, y as CreateBranchOptions, T as CreateNotebookOptions, C as CreateProjectOptions, W as DatabaseOperations, _ as DebuggingOperations, D as DeployEdgeFunctionOptions, a2 as DevelopmentOperations, E as EdgeFunction, x as EdgeFunctionWithBody, Y as EdgeFunctionsOperations, A as ExecuteSqlOptions, a7 as FeedbackOperations, I as GenerateTypescriptTypesResult, H as GetLogsOptions, L as ListMigrationsResult, Z as LogsDialect, G as LogsService, M as Migration, U as Notebook, N as NotebookCell, a6 as NotebookOperations, V as NotebookWithContent, O as Organization, P as Project, Q as QueryLogsOptions, z as ResetBranchOptions, R as ResultTooLargeError, a5 as SecretOperations, K as StorageBucket, J as StorageConfig, a3 as StorageOperations, a as SuccessResponse, S as SupabasePlatform, $ as apiKeyTypeSchema, j as applyMigrationOptionsSchema, c as branchSchema, g as createBranchOptionsSchema, u as createNotebookOptionsSchema, f as createProjectOptionsSchema, h as deployEdgeFunctionOptionsSchema, e as edgeFunctionSchema, d as edgeFunctionWithBodySchema, i as executeSqlOptionsSchema, n as generateTypescriptTypesResultSchema, k as getLogsOptionsSchema, l as logsServiceSchema, m as migrationSchema, t as notebookCellSchema, v as notebookSchema, w as notebookWithContentSchema, o as organizationSchema, p as projectSchema, q as queryLogsOptionsSchema, r as resetBranchOptionsSchema, s as storageBucketSchema, b as storageConfigSchema } from '../types-abfpaWQw.cjs';
|
|
2
|
+
import '@supabase/mcp-utils';
|
|
3
|
+
import 'zod/v4';
|
|
3
4
|
|
|
4
|
-
type SuccessResponse = {
|
|
5
|
-
success: true;
|
|
6
|
-
};
|
|
7
|
-
declare const storageBucketSchema: z.ZodObject<{
|
|
8
|
-
id: z.ZodString;
|
|
9
|
-
name: z.ZodString;
|
|
10
|
-
owner: z.ZodString;
|
|
11
|
-
created_at: z.ZodString;
|
|
12
|
-
updated_at: z.ZodString;
|
|
13
|
-
public: z.ZodBoolean;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
declare const storageConfigSchema: z.ZodObject<{
|
|
16
|
-
fileSizeLimit: z.ZodNumber;
|
|
17
|
-
features: z.ZodObject<{
|
|
18
|
-
imageTransformation: z.ZodObject<{
|
|
19
|
-
enabled: z.ZodBoolean;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
s3Protocol: z.ZodObject<{
|
|
22
|
-
enabled: z.ZodBoolean;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
}, z.core.$strip>;
|
|
26
|
-
declare const organizationSchema: z.ZodObject<{
|
|
27
|
-
id: z.ZodString;
|
|
28
|
-
name: z.ZodString;
|
|
29
|
-
plan: z.ZodOptional<z.ZodString>;
|
|
30
|
-
allowed_release_channels: z.ZodArray<z.ZodString>;
|
|
31
|
-
opt_in_tags: z.ZodArray<z.ZodString>;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
declare const projectSchema: z.ZodObject<{
|
|
34
|
-
id: z.ZodString;
|
|
35
|
-
ref: z.ZodString;
|
|
36
|
-
organization_id: z.ZodString;
|
|
37
|
-
organization_slug: z.ZodString;
|
|
38
|
-
name: z.ZodString;
|
|
39
|
-
status: z.ZodString;
|
|
40
|
-
created_at: z.ZodString;
|
|
41
|
-
region: z.ZodString;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
declare const branchSchema: z.ZodObject<{
|
|
44
|
-
id: z.ZodString;
|
|
45
|
-
name: z.ZodString;
|
|
46
|
-
project_ref: z.ZodString;
|
|
47
|
-
parent_project_ref: z.ZodString;
|
|
48
|
-
is_default: z.ZodBoolean;
|
|
49
|
-
git_branch: z.ZodOptional<z.ZodString>;
|
|
50
|
-
pr_number: z.ZodOptional<z.ZodNumber>;
|
|
51
|
-
latest_check_run_id: z.ZodOptional<z.ZodNumber>;
|
|
52
|
-
persistent: z.ZodBoolean;
|
|
53
|
-
status: z.ZodEnum<{
|
|
54
|
-
CREATING_PROJECT: "CREATING_PROJECT";
|
|
55
|
-
RUNNING_MIGRATIONS: "RUNNING_MIGRATIONS";
|
|
56
|
-
MIGRATIONS_PASSED: "MIGRATIONS_PASSED";
|
|
57
|
-
MIGRATIONS_FAILED: "MIGRATIONS_FAILED";
|
|
58
|
-
FUNCTIONS_DEPLOYED: "FUNCTIONS_DEPLOYED";
|
|
59
|
-
FUNCTIONS_FAILED: "FUNCTIONS_FAILED";
|
|
60
|
-
}>;
|
|
61
|
-
created_at: z.ZodString;
|
|
62
|
-
updated_at: z.ZodString;
|
|
63
|
-
}, z.core.$strip>;
|
|
64
|
-
declare const edgeFunctionSchema: z.ZodObject<{
|
|
65
|
-
id: z.ZodString;
|
|
66
|
-
slug: z.ZodString;
|
|
67
|
-
name: z.ZodString;
|
|
68
|
-
status: z.ZodString;
|
|
69
|
-
version: z.ZodNumber;
|
|
70
|
-
created_at: z.ZodOptional<z.ZodNumber>;
|
|
71
|
-
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
72
|
-
verify_jwt: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
-
import_map: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
-
import_map_path: z.ZodOptional<z.ZodString>;
|
|
75
|
-
entrypoint_path: z.ZodOptional<z.ZodString>;
|
|
76
|
-
}, z.core.$strip>;
|
|
77
|
-
declare const edgeFunctionWithBodySchema: z.ZodObject<{
|
|
78
|
-
id: z.ZodString;
|
|
79
|
-
slug: z.ZodString;
|
|
80
|
-
name: z.ZodString;
|
|
81
|
-
status: z.ZodString;
|
|
82
|
-
version: z.ZodNumber;
|
|
83
|
-
created_at: z.ZodOptional<z.ZodNumber>;
|
|
84
|
-
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
85
|
-
verify_jwt: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
-
import_map: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
-
import_map_path: z.ZodOptional<z.ZodString>;
|
|
88
|
-
entrypoint_path: z.ZodOptional<z.ZodString>;
|
|
89
|
-
files: z.ZodArray<z.ZodObject<{
|
|
90
|
-
name: z.ZodString;
|
|
91
|
-
content: z.ZodString;
|
|
92
|
-
}, z.core.$strip>>;
|
|
93
|
-
}, z.core.$strip>;
|
|
94
|
-
declare const createProjectOptionsSchema: z.ZodObject<{
|
|
95
|
-
name: z.ZodString;
|
|
96
|
-
organization_id: z.ZodString;
|
|
97
|
-
region: z.ZodEnum<{
|
|
98
|
-
"us-west-1": "us-west-1";
|
|
99
|
-
"us-east-1": "us-east-1";
|
|
100
|
-
"us-east-2": "us-east-2";
|
|
101
|
-
"ca-central-1": "ca-central-1";
|
|
102
|
-
"eu-west-1": "eu-west-1";
|
|
103
|
-
"eu-west-2": "eu-west-2";
|
|
104
|
-
"eu-west-3": "eu-west-3";
|
|
105
|
-
"eu-central-1": "eu-central-1";
|
|
106
|
-
"eu-central-2": "eu-central-2";
|
|
107
|
-
"eu-north-1": "eu-north-1";
|
|
108
|
-
"ap-south-1": "ap-south-1";
|
|
109
|
-
"ap-southeast-1": "ap-southeast-1";
|
|
110
|
-
"ap-northeast-1": "ap-northeast-1";
|
|
111
|
-
"ap-northeast-2": "ap-northeast-2";
|
|
112
|
-
"ap-southeast-2": "ap-southeast-2";
|
|
113
|
-
"sa-east-1": "sa-east-1";
|
|
114
|
-
}>;
|
|
115
|
-
db_pass: z.ZodOptional<z.ZodString>;
|
|
116
|
-
}, z.core.$strip>;
|
|
117
|
-
declare const createBranchOptionsSchema: z.ZodObject<{
|
|
118
|
-
name: z.ZodString;
|
|
119
|
-
}, z.core.$strip>;
|
|
120
|
-
declare const resetBranchOptionsSchema: z.ZodObject<{
|
|
121
|
-
migration_version: z.ZodOptional<z.ZodString>;
|
|
122
|
-
}, z.core.$strip>;
|
|
123
|
-
declare const deployEdgeFunctionOptionsSchema: z.ZodObject<{
|
|
124
|
-
name: z.ZodString;
|
|
125
|
-
entrypoint_path: z.ZodString;
|
|
126
|
-
import_map_path: z.ZodOptional<z.ZodString>;
|
|
127
|
-
verify_jwt: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
-
files: z.ZodArray<z.ZodObject<{
|
|
129
|
-
name: z.ZodString;
|
|
130
|
-
content: z.ZodString;
|
|
131
|
-
}, z.core.$strip>>;
|
|
132
|
-
}, z.core.$strip>;
|
|
133
|
-
declare class ResultTooLargeError extends Error {
|
|
134
|
-
name: string;
|
|
135
|
-
}
|
|
136
|
-
declare const executeSqlOptionsSchema: z.ZodObject<{
|
|
137
|
-
query: z.ZodString;
|
|
138
|
-
parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
139
|
-
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
-
max_result_bytes: z.ZodOptional<z.ZodNumber>;
|
|
141
|
-
}, z.core.$strip>;
|
|
142
|
-
declare const applyMigrationOptionsSchema: z.ZodObject<{
|
|
143
|
-
name: z.ZodString;
|
|
144
|
-
query: z.ZodString;
|
|
145
|
-
}, z.core.$strip>;
|
|
146
|
-
declare const migrationSchema: z.ZodObject<{
|
|
147
|
-
version: z.ZodString;
|
|
148
|
-
name: z.ZodOptional<z.ZodString>;
|
|
149
|
-
}, z.core.$strip>;
|
|
150
|
-
declare const logsServiceSchema: z.ZodEnum<{
|
|
151
|
-
storage: "storage";
|
|
152
|
-
api: "api";
|
|
153
|
-
"branch-action": "branch-action";
|
|
154
|
-
postgres: "postgres";
|
|
155
|
-
"edge-function": "edge-function";
|
|
156
|
-
"edge-function-runtime": "edge-function-runtime";
|
|
157
|
-
auth: "auth";
|
|
158
|
-
realtime: "realtime";
|
|
159
|
-
}>;
|
|
160
|
-
declare const getLogsOptionsSchema: z.ZodObject<{
|
|
161
|
-
service: z.ZodEnum<{
|
|
162
|
-
storage: "storage";
|
|
163
|
-
api: "api";
|
|
164
|
-
"branch-action": "branch-action";
|
|
165
|
-
postgres: "postgres";
|
|
166
|
-
"edge-function": "edge-function";
|
|
167
|
-
"edge-function-runtime": "edge-function-runtime";
|
|
168
|
-
auth: "auth";
|
|
169
|
-
realtime: "realtime";
|
|
170
|
-
}>;
|
|
171
|
-
iso_timestamp_start: z.ZodOptional<z.ZodString>;
|
|
172
|
-
iso_timestamp_end: z.ZodOptional<z.ZodString>;
|
|
173
|
-
}, z.core.$strip>;
|
|
174
|
-
declare const queryLogsOptionsSchema: z.ZodObject<{
|
|
175
|
-
sql: z.ZodString;
|
|
176
|
-
iso_timestamp_start: z.ZodOptional<z.ZodString>;
|
|
177
|
-
iso_timestamp_end: z.ZodOptional<z.ZodString>;
|
|
178
|
-
max_result_bytes: z.ZodOptional<z.ZodNumber>;
|
|
179
|
-
}, z.core.$strip>;
|
|
180
|
-
declare const generateTypescriptTypesResultSchema: z.ZodObject<{
|
|
181
|
-
types: z.ZodString;
|
|
182
|
-
}, z.core.$strip>;
|
|
183
|
-
declare const notebookCellSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
184
|
-
id: z.ZodString;
|
|
185
|
-
type: z.ZodLiteral<"markdown">;
|
|
186
|
-
text: z.ZodString;
|
|
187
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
188
|
-
id: z.ZodString;
|
|
189
|
-
type: z.ZodLiteral<"database">;
|
|
190
|
-
sql: z.ZodString;
|
|
191
|
-
row_limit: z.ZodNumber;
|
|
192
|
-
database_identifier: z.ZodOptional<z.ZodString>;
|
|
193
|
-
title: z.ZodOptional<z.ZodString>;
|
|
194
|
-
view: z.ZodOptional<z.ZodEnum<{
|
|
195
|
-
table: "table";
|
|
196
|
-
chart: "chart";
|
|
197
|
-
}>>;
|
|
198
|
-
chart: z.ZodOptional<z.ZodObject<{
|
|
199
|
-
type: z.ZodEnum<{
|
|
200
|
-
bar: "bar";
|
|
201
|
-
line: "line";
|
|
202
|
-
}>;
|
|
203
|
-
x_column: z.ZodString;
|
|
204
|
-
y_series: z.ZodArray<z.ZodObject<{
|
|
205
|
-
column: z.ZodString;
|
|
206
|
-
}, z.core.$strip>>;
|
|
207
|
-
scale: z.ZodEnum<{
|
|
208
|
-
linear: "linear";
|
|
209
|
-
log: "log";
|
|
210
|
-
}>;
|
|
211
|
-
cumulative: z.ZodBoolean;
|
|
212
|
-
show_labels: z.ZodBoolean;
|
|
213
|
-
}, z.core.$strip>>;
|
|
214
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
215
|
-
id: z.ZodString;
|
|
216
|
-
type: z.ZodLiteral<"log">;
|
|
217
|
-
sql: z.ZodString;
|
|
218
|
-
time_range: z.ZodUnion<readonly [z.ZodObject<{
|
|
219
|
-
type: z.ZodLiteral<"absolute">;
|
|
220
|
-
start: z.ZodString;
|
|
221
|
-
end: z.ZodString;
|
|
222
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
223
|
-
type: z.ZodLiteral<"relative">;
|
|
224
|
-
unit: z.ZodEnum<{
|
|
225
|
-
minute: "minute";
|
|
226
|
-
hour: "hour";
|
|
227
|
-
day: "day";
|
|
228
|
-
week: "week";
|
|
229
|
-
month: "month";
|
|
230
|
-
year: "year";
|
|
231
|
-
}>;
|
|
232
|
-
amount: z.ZodNumber;
|
|
233
|
-
}, z.core.$strip>]>;
|
|
234
|
-
title: z.ZodOptional<z.ZodString>;
|
|
235
|
-
view: z.ZodOptional<z.ZodEnum<{
|
|
236
|
-
table: "table";
|
|
237
|
-
chart: "chart";
|
|
238
|
-
}>>;
|
|
239
|
-
chart: z.ZodOptional<z.ZodObject<{
|
|
240
|
-
type: z.ZodEnum<{
|
|
241
|
-
bar: "bar";
|
|
242
|
-
line: "line";
|
|
243
|
-
}>;
|
|
244
|
-
x_column: z.ZodString;
|
|
245
|
-
y_series: z.ZodArray<z.ZodObject<{
|
|
246
|
-
column: z.ZodString;
|
|
247
|
-
}, z.core.$strip>>;
|
|
248
|
-
scale: z.ZodEnum<{
|
|
249
|
-
linear: "linear";
|
|
250
|
-
log: "log";
|
|
251
|
-
}>;
|
|
252
|
-
cumulative: z.ZodBoolean;
|
|
253
|
-
show_labels: z.ZodBoolean;
|
|
254
|
-
}, z.core.$strip>>;
|
|
255
|
-
}, z.core.$strip>], "type">;
|
|
256
|
-
declare const createNotebookOptionsSchema: z.ZodObject<{
|
|
257
|
-
name: z.ZodString;
|
|
258
|
-
description: z.ZodOptional<z.ZodString>;
|
|
259
|
-
content: z.ZodObject<{
|
|
260
|
-
cells: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
261
|
-
type: z.ZodLiteral<"markdown">;
|
|
262
|
-
text: z.ZodString;
|
|
263
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
264
|
-
type: z.ZodLiteral<"database">;
|
|
265
|
-
title: z.ZodOptional<z.ZodString>;
|
|
266
|
-
view: z.ZodOptional<z.ZodEnum<{
|
|
267
|
-
table: "table";
|
|
268
|
-
chart: "chart";
|
|
269
|
-
}>>;
|
|
270
|
-
sql: z.ZodString;
|
|
271
|
-
row_limit: z.ZodNumber;
|
|
272
|
-
database_identifier: z.ZodOptional<z.ZodString>;
|
|
273
|
-
chart: z.ZodOptional<z.ZodObject<{
|
|
274
|
-
type: z.ZodEnum<{
|
|
275
|
-
bar: "bar";
|
|
276
|
-
line: "line";
|
|
277
|
-
}>;
|
|
278
|
-
x_column: z.ZodString;
|
|
279
|
-
scale: z.ZodEnum<{
|
|
280
|
-
linear: "linear";
|
|
281
|
-
log: "log";
|
|
282
|
-
}>;
|
|
283
|
-
cumulative: z.ZodBoolean;
|
|
284
|
-
show_labels: z.ZodBoolean;
|
|
285
|
-
y_series: z.ZodArray<z.ZodObject<{
|
|
286
|
-
column: z.ZodString;
|
|
287
|
-
}, z.core.$strict>>;
|
|
288
|
-
}, z.core.$strict>>;
|
|
289
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
290
|
-
type: z.ZodLiteral<"log">;
|
|
291
|
-
title: z.ZodOptional<z.ZodString>;
|
|
292
|
-
view: z.ZodOptional<z.ZodEnum<{
|
|
293
|
-
table: "table";
|
|
294
|
-
chart: "chart";
|
|
295
|
-
}>>;
|
|
296
|
-
sql: z.ZodString;
|
|
297
|
-
time_range: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
298
|
-
type: z.ZodLiteral<"absolute">;
|
|
299
|
-
start: z.ZodISODateTime;
|
|
300
|
-
end: z.ZodISODateTime;
|
|
301
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
302
|
-
type: z.ZodLiteral<"relative">;
|
|
303
|
-
unit: z.ZodEnum<{
|
|
304
|
-
minute: "minute";
|
|
305
|
-
hour: "hour";
|
|
306
|
-
day: "day";
|
|
307
|
-
week: "week";
|
|
308
|
-
month: "month";
|
|
309
|
-
year: "year";
|
|
310
|
-
}>;
|
|
311
|
-
amount: z.ZodNumber;
|
|
312
|
-
}, z.core.$strict>], "type">;
|
|
313
|
-
chart: z.ZodOptional<z.ZodObject<{
|
|
314
|
-
type: z.ZodEnum<{
|
|
315
|
-
bar: "bar";
|
|
316
|
-
line: "line";
|
|
317
|
-
}>;
|
|
318
|
-
x_column: z.ZodString;
|
|
319
|
-
scale: z.ZodEnum<{
|
|
320
|
-
linear: "linear";
|
|
321
|
-
log: "log";
|
|
322
|
-
}>;
|
|
323
|
-
cumulative: z.ZodBoolean;
|
|
324
|
-
show_labels: z.ZodBoolean;
|
|
325
|
-
y_series: z.ZodArray<z.ZodObject<{
|
|
326
|
-
column: z.ZodString;
|
|
327
|
-
}, z.core.$strict>>;
|
|
328
|
-
}, z.core.$strict>>;
|
|
329
|
-
}, z.core.$strict>], "type">>;
|
|
330
|
-
}, z.core.$strip>;
|
|
331
|
-
}, z.core.$strip>;
|
|
332
|
-
declare const notebookSchema: z.ZodObject<{
|
|
333
|
-
id: z.ZodString;
|
|
334
|
-
name: z.ZodString;
|
|
335
|
-
description: z.ZodNullable<z.ZodString>;
|
|
336
|
-
favorite: z.ZodBoolean;
|
|
337
|
-
inserted_at: z.ZodString;
|
|
338
|
-
updated_at: z.ZodString;
|
|
339
|
-
owner: z.ZodNullable<z.ZodObject<{
|
|
340
|
-
id: z.ZodNumber;
|
|
341
|
-
username: z.ZodString;
|
|
342
|
-
}, z.core.$strip>>;
|
|
343
|
-
updated_by: z.ZodNullable<z.ZodObject<{
|
|
344
|
-
id: z.ZodNumber;
|
|
345
|
-
username: z.ZodString;
|
|
346
|
-
}, z.core.$strip>>;
|
|
347
|
-
}, z.core.$strip>;
|
|
348
|
-
declare const notebookWithContentSchema: z.ZodObject<{
|
|
349
|
-
id: z.ZodString;
|
|
350
|
-
name: z.ZodString;
|
|
351
|
-
description: z.ZodNullable<z.ZodString>;
|
|
352
|
-
favorite: z.ZodBoolean;
|
|
353
|
-
inserted_at: z.ZodString;
|
|
354
|
-
updated_at: z.ZodString;
|
|
355
|
-
owner: z.ZodNullable<z.ZodObject<{
|
|
356
|
-
id: z.ZodNumber;
|
|
357
|
-
username: z.ZodString;
|
|
358
|
-
}, z.core.$strip>>;
|
|
359
|
-
updated_by: z.ZodNullable<z.ZodObject<{
|
|
360
|
-
id: z.ZodNumber;
|
|
361
|
-
username: z.ZodString;
|
|
362
|
-
}, z.core.$strip>>;
|
|
363
|
-
content: z.ZodObject<{
|
|
364
|
-
schema_version: z.ZodNumber;
|
|
365
|
-
cells: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
366
|
-
id: z.ZodString;
|
|
367
|
-
type: z.ZodLiteral<"markdown">;
|
|
368
|
-
text: z.ZodString;
|
|
369
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
370
|
-
id: z.ZodString;
|
|
371
|
-
type: z.ZodLiteral<"database">;
|
|
372
|
-
sql: z.ZodString;
|
|
373
|
-
row_limit: z.ZodNumber;
|
|
374
|
-
database_identifier: z.ZodOptional<z.ZodString>;
|
|
375
|
-
title: z.ZodOptional<z.ZodString>;
|
|
376
|
-
view: z.ZodOptional<z.ZodEnum<{
|
|
377
|
-
table: "table";
|
|
378
|
-
chart: "chart";
|
|
379
|
-
}>>;
|
|
380
|
-
chart: z.ZodOptional<z.ZodObject<{
|
|
381
|
-
type: z.ZodEnum<{
|
|
382
|
-
bar: "bar";
|
|
383
|
-
line: "line";
|
|
384
|
-
}>;
|
|
385
|
-
x_column: z.ZodString;
|
|
386
|
-
y_series: z.ZodArray<z.ZodObject<{
|
|
387
|
-
column: z.ZodString;
|
|
388
|
-
}, z.core.$strip>>;
|
|
389
|
-
scale: z.ZodEnum<{
|
|
390
|
-
linear: "linear";
|
|
391
|
-
log: "log";
|
|
392
|
-
}>;
|
|
393
|
-
cumulative: z.ZodBoolean;
|
|
394
|
-
show_labels: z.ZodBoolean;
|
|
395
|
-
}, z.core.$strip>>;
|
|
396
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
397
|
-
id: z.ZodString;
|
|
398
|
-
type: z.ZodLiteral<"log">;
|
|
399
|
-
sql: z.ZodString;
|
|
400
|
-
time_range: z.ZodUnion<readonly [z.ZodObject<{
|
|
401
|
-
type: z.ZodLiteral<"absolute">;
|
|
402
|
-
start: z.ZodString;
|
|
403
|
-
end: z.ZodString;
|
|
404
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
405
|
-
type: z.ZodLiteral<"relative">;
|
|
406
|
-
unit: z.ZodEnum<{
|
|
407
|
-
minute: "minute";
|
|
408
|
-
hour: "hour";
|
|
409
|
-
day: "day";
|
|
410
|
-
week: "week";
|
|
411
|
-
month: "month";
|
|
412
|
-
year: "year";
|
|
413
|
-
}>;
|
|
414
|
-
amount: z.ZodNumber;
|
|
415
|
-
}, z.core.$strip>]>;
|
|
416
|
-
title: z.ZodOptional<z.ZodString>;
|
|
417
|
-
view: z.ZodOptional<z.ZodEnum<{
|
|
418
|
-
table: "table";
|
|
419
|
-
chart: "chart";
|
|
420
|
-
}>>;
|
|
421
|
-
chart: z.ZodOptional<z.ZodObject<{
|
|
422
|
-
type: z.ZodEnum<{
|
|
423
|
-
bar: "bar";
|
|
424
|
-
line: "line";
|
|
425
|
-
}>;
|
|
426
|
-
x_column: z.ZodString;
|
|
427
|
-
y_series: z.ZodArray<z.ZodObject<{
|
|
428
|
-
column: z.ZodString;
|
|
429
|
-
}, z.core.$strip>>;
|
|
430
|
-
scale: z.ZodEnum<{
|
|
431
|
-
linear: "linear";
|
|
432
|
-
log: "log";
|
|
433
|
-
}>;
|
|
434
|
-
cumulative: z.ZodBoolean;
|
|
435
|
-
show_labels: z.ZodBoolean;
|
|
436
|
-
}, z.core.$strip>>;
|
|
437
|
-
}, z.core.$strip>], "type">>;
|
|
438
|
-
}, z.core.$strip>;
|
|
439
|
-
}, z.core.$strip>;
|
|
440
|
-
type Organization = z.infer<typeof organizationSchema>;
|
|
441
|
-
type Project = z.infer<typeof projectSchema>;
|
|
442
|
-
type Branch = z.infer<typeof branchSchema>;
|
|
443
|
-
type EdgeFunction = z.infer<typeof edgeFunctionSchema>;
|
|
444
|
-
type EdgeFunctionWithBody = z.infer<typeof edgeFunctionWithBodySchema>;
|
|
445
|
-
type CreateProjectOptions = z.infer<typeof createProjectOptionsSchema>;
|
|
446
|
-
type CreateBranchOptions = z.infer<typeof createBranchOptionsSchema>;
|
|
447
|
-
type ResetBranchOptions = z.infer<typeof resetBranchOptionsSchema>;
|
|
448
|
-
type DeployEdgeFunctionOptions = z.infer<typeof deployEdgeFunctionOptionsSchema>;
|
|
449
|
-
type ExecuteSqlOptions = z.infer<typeof executeSqlOptionsSchema>;
|
|
450
|
-
type ApplyMigrationOptions = z.infer<typeof applyMigrationOptionsSchema>;
|
|
451
|
-
type Migration = z.infer<typeof migrationSchema>;
|
|
452
|
-
type ListMigrationsResult = z.infer<typeof migrationSchema>;
|
|
453
|
-
type LogsService = z.infer<typeof logsServiceSchema>;
|
|
454
|
-
type GetLogsOptions = z.infer<typeof getLogsOptionsSchema>;
|
|
455
|
-
type QueryLogsOptions = z.infer<typeof queryLogsOptionsSchema>;
|
|
456
|
-
type GenerateTypescriptTypesResult = z.infer<typeof generateTypescriptTypesResultSchema>;
|
|
457
|
-
type StorageConfig = z.infer<typeof storageConfigSchema>;
|
|
458
|
-
type StorageBucket = z.infer<typeof storageBucketSchema>;
|
|
459
|
-
type NotebookCell = z.infer<typeof notebookCellSchema>;
|
|
460
|
-
type CreateNotebookOptions = z.infer<typeof createNotebookOptionsSchema>;
|
|
461
|
-
type Notebook = z.infer<typeof notebookSchema>;
|
|
462
|
-
type NotebookWithContent = z.infer<typeof notebookWithContentSchema>;
|
|
463
|
-
type DatabaseOperations = {
|
|
464
|
-
executeSql<T>(projectId: string, options: ExecuteSqlOptions): Promise<T[]>;
|
|
465
|
-
listMigrations(projectId: string): Promise<Migration[]>;
|
|
466
|
-
applyMigration(projectId: string, options: ApplyMigrationOptions): Promise<void>;
|
|
467
|
-
};
|
|
468
|
-
type AccountOperations = {
|
|
469
|
-
listOrganizations(): Promise<{
|
|
470
|
-
id: string;
|
|
471
|
-
slug: string;
|
|
472
|
-
name: string;
|
|
473
|
-
}[]>;
|
|
474
|
-
getOrganization(organizationId: string): Promise<Organization>;
|
|
475
|
-
listProjects(): Promise<Project[]>;
|
|
476
|
-
getProject(projectId: string): Promise<Project>;
|
|
477
|
-
createProject(options: CreateProjectOptions): Promise<Project>;
|
|
478
|
-
pauseProject(projectId: string): Promise<void>;
|
|
479
|
-
restoreProject(projectId: string): Promise<void>;
|
|
480
|
-
};
|
|
481
|
-
type EdgeFunctionsOperations = {
|
|
482
|
-
listEdgeFunctions(projectId: string): Promise<EdgeFunction[]>;
|
|
483
|
-
getEdgeFunction(projectId: string, functionSlug: string): Promise<EdgeFunctionWithBody>;
|
|
484
|
-
deployEdgeFunction(projectId: string, options: DeployEdgeFunctionOptions): Promise<Omit<EdgeFunction, 'files'>>;
|
|
485
|
-
};
|
|
486
5
|
/**
|
|
487
|
-
*
|
|
488
|
-
*
|
|
489
|
-
*
|
|
490
|
-
* engines (hosted ClickHouse vs. self-hosted/CLI BigQuery).
|
|
6
|
+
* Import map file names detected in an Edge Function's root, in order of
|
|
7
|
+
* precedence: `deno.json` before `deno.jsonc`, as the Supabase CLI does, then
|
|
8
|
+
* the legacy `import_map.json`.
|
|
491
9
|
*/
|
|
492
|
-
|
|
493
|
-
type DebuggingOperations = {
|
|
494
|
-
/**
|
|
495
|
-
* SQL dialect accepted by `queryLogs`. Defaults to `'clickhouse'` when unset,
|
|
496
|
-
* preserving the behavior of platforms that predate this field.
|
|
497
|
-
*/
|
|
498
|
-
logsDialect?: LogsDialect;
|
|
499
|
-
getLogs(projectId: string, options: GetLogsOptions): Promise<unknown>;
|
|
500
|
-
queryLogs?(projectId: string, options: QueryLogsOptions): Promise<unknown>;
|
|
501
|
-
getSecurityAdvisors(projectId: string): Promise<unknown>;
|
|
502
|
-
getPerformanceAdvisors(projectId: string): Promise<unknown>;
|
|
503
|
-
getHealthAdvisors?(projectId: string): Promise<unknown>;
|
|
504
|
-
};
|
|
505
|
-
declare const apiKeyTypeSchema: z.ZodEnum<{
|
|
506
|
-
legacy: "legacy";
|
|
507
|
-
publishable: "publishable";
|
|
508
|
-
}>;
|
|
509
|
-
type ApiKeyType = z.infer<typeof apiKeyTypeSchema>;
|
|
510
|
-
type ApiKey = {
|
|
511
|
-
api_key: string;
|
|
512
|
-
name: string;
|
|
513
|
-
type: ApiKeyType;
|
|
514
|
-
description?: string;
|
|
515
|
-
id?: string;
|
|
516
|
-
disabled?: boolean;
|
|
517
|
-
};
|
|
518
|
-
type DevelopmentOperations = {
|
|
519
|
-
getProjectUrl(projectId: string): Promise<string>;
|
|
520
|
-
getPublishableKeys(projectId: string): Promise<ApiKey[]>;
|
|
521
|
-
generateTypescriptTypes(projectId: string): Promise<GenerateTypescriptTypesResult>;
|
|
522
|
-
};
|
|
523
|
-
type StorageOperations = {
|
|
524
|
-
getStorageConfig(projectId: string): Promise<StorageConfig>;
|
|
525
|
-
updateStorageConfig(projectId: string, config: StorageConfig): Promise<void>;
|
|
526
|
-
listAllBuckets(projectId: string): Promise<StorageBucket[]>;
|
|
527
|
-
};
|
|
528
|
-
type BranchingOperations = {
|
|
529
|
-
listBranches(projectId: string): Promise<Branch[]>;
|
|
530
|
-
createBranch(projectId: string, options: CreateBranchOptions): Promise<Branch>;
|
|
531
|
-
deleteBranch(branchId: string): Promise<void>;
|
|
532
|
-
mergeBranch(branchId: string): Promise<void>;
|
|
533
|
-
resetBranch(branchId: string, options: ResetBranchOptions): Promise<void>;
|
|
534
|
-
rebaseBranch(branchId: string): Promise<void>;
|
|
535
|
-
};
|
|
10
|
+
declare const DEFAULT_IMPORT_MAP_FILENAMES: readonly ["deno.json", "deno.jsonc", "import_map.json"];
|
|
536
11
|
/**
|
|
537
|
-
*
|
|
538
|
-
*
|
|
12
|
+
* Picks the import map to deploy with when none was given or previously set,
|
|
13
|
+
* independent of the order the files were passed in.
|
|
539
14
|
*/
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
};
|
|
543
|
-
type NotebookOperations = {
|
|
544
|
-
/** Optional for platforms that only support reading notebooks. */
|
|
545
|
-
createNotebook?(projectId: string, options: CreateNotebookOptions): Promise<NotebookWithContent>;
|
|
546
|
-
listNotebooks(projectId: string): Promise<Notebook[]>;
|
|
547
|
-
getNotebook(projectId: string, notebookId: string): Promise<NotebookWithContent>;
|
|
548
|
-
deleteNotebook(projectId: string, notebookId: string): Promise<void>;
|
|
549
|
-
};
|
|
550
|
-
type FeedbackOperations = {
|
|
551
|
-
submit(input: {
|
|
552
|
-
feedback: string;
|
|
553
|
-
projectId?: string;
|
|
554
|
-
clientInfo?: {
|
|
555
|
-
name: string;
|
|
556
|
-
version: string;
|
|
557
|
-
};
|
|
558
|
-
}): Promise<{
|
|
559
|
-
deleteToken: string;
|
|
560
|
-
}>;
|
|
561
|
-
delete(input: {
|
|
562
|
-
deleteToken: string;
|
|
563
|
-
projectId?: string;
|
|
564
|
-
}): Promise<{
|
|
565
|
-
deleted: boolean;
|
|
566
|
-
}>;
|
|
567
|
-
};
|
|
568
|
-
type SupabasePlatform = {
|
|
569
|
-
init?(info: InitData): Promise<void>;
|
|
570
|
-
account?: AccountOperations;
|
|
571
|
-
database?: DatabaseOperations;
|
|
572
|
-
functions?: EdgeFunctionsOperations;
|
|
573
|
-
debugging?: DebuggingOperations;
|
|
574
|
-
development?: DevelopmentOperations;
|
|
575
|
-
storage?: StorageOperations;
|
|
576
|
-
branching?: BranchingOperations;
|
|
577
|
-
secrets?: SecretOperations;
|
|
578
|
-
notebooks?: NotebookOperations;
|
|
579
|
-
feedback?: FeedbackOperations;
|
|
580
|
-
};
|
|
15
|
+
declare function getDefaultImportMapPath(files: {
|
|
16
|
+
name: string;
|
|
17
|
+
}[]): "deno.json" | "deno.jsonc" | "import_map.json" | undefined;
|
|
581
18
|
|
|
582
|
-
export {
|
|
19
|
+
export { DEFAULT_IMPORT_MAP_FILENAMES, getDefaultImportMapPath };
|