alchemy 0.73.0 → 0.74.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/bin/alchemy.js +3326 -4424
- package/bin/alchemy.ts +2 -0
- package/bin/commands/configure.ts +4 -1
- package/bin/commands/util.ts +510 -0
- package/bin/services/execute-alchemy.ts +2 -1
- package/bin/trpc.ts +22 -16
- package/lib/cloudflare/bound.d.ts +1 -1
- package/lib/cloudflare/bound.d.ts.map +1 -1
- package/lib/cloudflare/miniflare/miniflare-worker-proxy.d.ts.map +1 -1
- package/lib/cloudflare/miniflare/miniflare-worker-proxy.js +6 -14
- package/lib/cloudflare/miniflare/miniflare-worker-proxy.js.map +1 -1
- package/lib/cloudflare/miniflare/remote-binding-proxy.d.ts.map +1 -1
- package/lib/cloudflare/miniflare/remote-binding-proxy.js +12 -4
- package/lib/cloudflare/miniflare/remote-binding-proxy.js.map +1 -1
- package/lib/cloudflare/tanstack-start/tanstack-start.d.ts.map +1 -1
- package/lib/cloudflare/tanstack-start/tanstack-start.js +8 -1
- package/lib/cloudflare/tanstack-start/tanstack-start.js.map +1 -1
- package/lib/cloudflare/vite/plugin.d.ts.map +1 -1
- package/lib/cloudflare/vite/plugin.js +23 -9
- package/lib/cloudflare/vite/plugin.js.map +1 -1
- package/lib/planetscale/branch.d.ts +6 -0
- package/lib/planetscale/branch.d.ts.map +1 -1
- package/lib/planetscale/branch.js +2 -1
- package/lib/planetscale/branch.js.map +1 -1
- package/lib/planetscale/database.d.ts +6 -0
- package/lib/planetscale/database.d.ts.map +1 -1
- package/lib/planetscale/database.js +2 -1
- package/lib/planetscale/database.js.map +1 -1
- package/lib/planetscale/password.d.ts +6 -0
- package/lib/planetscale/password.d.ts.map +1 -1
- package/lib/planetscale/password.js +2 -1
- package/lib/planetscale/password.js.map +1 -1
- package/lib/planetscale/role.d.ts +6 -0
- package/lib/planetscale/role.d.ts.map +1 -1
- package/lib/planetscale/role.js +2 -1
- package/lib/planetscale/role.js.map +1 -1
- package/lib/prisma-postgres/api/client.gen.d.ts +13 -0
- package/lib/prisma-postgres/api/client.gen.d.ts.map +1 -0
- package/lib/prisma-postgres/api/client.gen.js +6 -0
- package/lib/prisma-postgres/api/client.gen.js.map +1 -0
- package/lib/prisma-postgres/api/sdk.gen.d.ts +120 -0
- package/lib/prisma-postgres/api/sdk.gen.d.ts.map +1 -0
- package/lib/prisma-postgres/api/sdk.gen.js +219 -0
- package/lib/prisma-postgres/api/sdk.gen.js.map +1 -0
- package/lib/prisma-postgres/api/types.gen.d.ts +957 -0
- package/lib/prisma-postgres/api/types.gen.d.ts.map +1 -0
- package/lib/prisma-postgres/api/types.gen.js +2 -0
- package/lib/prisma-postgres/api/types.gen.js.map +1 -0
- package/lib/prisma-postgres/api.d.ts +29 -0
- package/lib/prisma-postgres/api.d.ts.map +1 -0
- package/lib/prisma-postgres/api.js +49 -0
- package/lib/prisma-postgres/api.js.map +1 -0
- package/lib/prisma-postgres/connection.d.ts +87 -0
- package/lib/prisma-postgres/connection.d.ts.map +1 -0
- package/lib/prisma-postgres/connection.js +73 -0
- package/lib/prisma-postgres/connection.js.map +1 -0
- package/lib/prisma-postgres/database.d.ts +104 -0
- package/lib/prisma-postgres/database.d.ts.map +1 -0
- package/lib/prisma-postgres/database.js +88 -0
- package/lib/prisma-postgres/database.js.map +1 -0
- package/lib/prisma-postgres/index.d.ts +5 -0
- package/lib/prisma-postgres/index.d.ts.map +1 -0
- package/lib/prisma-postgres/index.js +5 -0
- package/lib/prisma-postgres/index.js.map +1 -0
- package/lib/prisma-postgres/project.d.ts +69 -0
- package/lib/prisma-postgres/project.d.ts.map +1 -0
- package/lib/prisma-postgres/project.js +62 -0
- package/lib/prisma-postgres/project.js.map +1 -0
- package/lib/prisma-postgres/workspace.d.ts +18 -0
- package/lib/prisma-postgres/workspace.d.ts.map +1 -0
- package/lib/prisma-postgres/workspace.js +21 -0
- package/lib/prisma-postgres/workspace.js.map +1 -0
- package/lib/util/http.d.ts +5 -2
- package/lib/util/http.d.ts.map +1 -1
- package/lib/util/http.js +71 -26
- package/lib/util/http.js.map +1 -1
- package/package.json +9 -1
- package/src/cloudflare/bound.ts +3 -1
- package/src/cloudflare/miniflare/miniflare-worker-proxy.ts +10 -13
- package/src/cloudflare/miniflare/remote-binding-proxy.ts +12 -4
- package/src/cloudflare/tanstack-start/tanstack-start.ts +9 -1
- package/src/cloudflare/vite/plugin.ts +24 -10
- package/src/planetscale/branch.ts +9 -1
- package/src/planetscale/database.ts +9 -1
- package/src/planetscale/password.ts +9 -1
- package/src/planetscale/role.ts +9 -1
- package/src/prisma-postgres/api/client.gen.ts +27 -0
- package/src/prisma-postgres/api/sdk.gen.ts +437 -0
- package/src/prisma-postgres/api/types.gen.ts +1096 -0
- package/src/prisma-postgres/api.ts +79 -0
- package/src/prisma-postgres/connection.ts +154 -0
- package/src/prisma-postgres/database.ts +178 -0
- package/src/prisma-postgres/index.ts +4 -0
- package/src/prisma-postgres/project.ts +131 -0
- package/src/prisma-postgres/workspace.ts +27 -0
- package/src/util/http.ts +79 -33
- package/workers/cloudflare-state-store.js +1 -1
- package/workers/tunnel-proxy.js +1 -1
|
@@ -0,0 +1,1096 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
|
|
3
|
+
export type ClientOptions = {
|
|
4
|
+
baseUrl: `${string}://${string}` | (string & {});
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export type DeleteDatabaseConnectionStringData = {
|
|
8
|
+
body?: never;
|
|
9
|
+
path: {
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
12
|
+
query?: never;
|
|
13
|
+
url: "/v1/connections/{id}";
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type DeleteDatabaseConnectionStringErrors = {
|
|
17
|
+
/**
|
|
18
|
+
* Missing or invalid authorization token.
|
|
19
|
+
*/
|
|
20
|
+
401: {
|
|
21
|
+
error: {
|
|
22
|
+
code: string;
|
|
23
|
+
message: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Database with the given ID was not found.
|
|
28
|
+
*/
|
|
29
|
+
404: {
|
|
30
|
+
error: {
|
|
31
|
+
code: string;
|
|
32
|
+
message: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type DeleteDatabaseConnectionStringError =
|
|
38
|
+
DeleteDatabaseConnectionStringErrors[keyof DeleteDatabaseConnectionStringErrors];
|
|
39
|
+
|
|
40
|
+
export type DeleteDatabaseConnectionStringResponses = {
|
|
41
|
+
/**
|
|
42
|
+
* Deleted the database connection string.
|
|
43
|
+
*/
|
|
44
|
+
204: void;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type DeleteDatabaseConnectionStringResponse =
|
|
48
|
+
DeleteDatabaseConnectionStringResponses[keyof DeleteDatabaseConnectionStringResponses];
|
|
49
|
+
|
|
50
|
+
export type DeleteDatabaseData = {
|
|
51
|
+
body?: never;
|
|
52
|
+
path: {
|
|
53
|
+
databaseId: string;
|
|
54
|
+
};
|
|
55
|
+
query?: never;
|
|
56
|
+
url: "/v1/databases/{databaseId}";
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type DeleteDatabaseErrors = {
|
|
60
|
+
/**
|
|
61
|
+
* Missing or invalid authorization token.
|
|
62
|
+
*/
|
|
63
|
+
401: {
|
|
64
|
+
error: {
|
|
65
|
+
code: string;
|
|
66
|
+
message: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Cannot delete the default environment.
|
|
71
|
+
*/
|
|
72
|
+
403: {
|
|
73
|
+
error: {
|
|
74
|
+
code: string;
|
|
75
|
+
message: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Database with the given ID was not found.
|
|
80
|
+
*/
|
|
81
|
+
404: {
|
|
82
|
+
error: {
|
|
83
|
+
code: string;
|
|
84
|
+
message: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export type DeleteDatabaseError =
|
|
90
|
+
DeleteDatabaseErrors[keyof DeleteDatabaseErrors];
|
|
91
|
+
|
|
92
|
+
export type DeleteDatabaseResponses = {
|
|
93
|
+
/**
|
|
94
|
+
* Deleted the database successfully.
|
|
95
|
+
*/
|
|
96
|
+
204: void;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export type DeleteDatabaseResponse =
|
|
100
|
+
DeleteDatabaseResponses[keyof DeleteDatabaseResponses];
|
|
101
|
+
|
|
102
|
+
export type GetDatabaseData = {
|
|
103
|
+
body?: never;
|
|
104
|
+
path: {
|
|
105
|
+
databaseId: string;
|
|
106
|
+
};
|
|
107
|
+
query?: never;
|
|
108
|
+
url: "/v1/databases/{databaseId}";
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export type GetDatabaseErrors = {
|
|
112
|
+
/**
|
|
113
|
+
* Missing or invalid authorization token.
|
|
114
|
+
*/
|
|
115
|
+
401: {
|
|
116
|
+
error: {
|
|
117
|
+
code: string;
|
|
118
|
+
message: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Database with the given ID was not found.
|
|
123
|
+
*/
|
|
124
|
+
404: {
|
|
125
|
+
error: {
|
|
126
|
+
code: string;
|
|
127
|
+
message: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export type GetDatabaseError = GetDatabaseErrors[keyof GetDatabaseErrors];
|
|
133
|
+
|
|
134
|
+
export type GetDatabaseResponses = {
|
|
135
|
+
/**
|
|
136
|
+
* Returned the database with the given ID.
|
|
137
|
+
*/
|
|
138
|
+
200: {
|
|
139
|
+
data: {
|
|
140
|
+
id: string;
|
|
141
|
+
type: "database";
|
|
142
|
+
name: string;
|
|
143
|
+
status: "failure" | "provisioning" | "ready" | "recovering";
|
|
144
|
+
createdAt: string;
|
|
145
|
+
isDefault: boolean;
|
|
146
|
+
project: {
|
|
147
|
+
id: string;
|
|
148
|
+
name: string;
|
|
149
|
+
};
|
|
150
|
+
region: {
|
|
151
|
+
id: string;
|
|
152
|
+
name: string;
|
|
153
|
+
} | null;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export type GetDatabaseResponse =
|
|
159
|
+
GetDatabaseResponses[keyof GetDatabaseResponses];
|
|
160
|
+
|
|
161
|
+
export type ListDatabaseConnectionsData = {
|
|
162
|
+
body?: never;
|
|
163
|
+
path: {
|
|
164
|
+
databaseId: string;
|
|
165
|
+
};
|
|
166
|
+
query?: {
|
|
167
|
+
cursor?: string | null;
|
|
168
|
+
limit?: number;
|
|
169
|
+
};
|
|
170
|
+
url: "/v1/databases/{databaseId}/connections";
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export type ListDatabaseConnectionsErrors = {
|
|
174
|
+
/**
|
|
175
|
+
* Missing or invalid authorization token.
|
|
176
|
+
*/
|
|
177
|
+
401: {
|
|
178
|
+
error: {
|
|
179
|
+
code: string;
|
|
180
|
+
message: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
export type ListDatabaseConnectionsError =
|
|
186
|
+
ListDatabaseConnectionsErrors[keyof ListDatabaseConnectionsErrors];
|
|
187
|
+
|
|
188
|
+
export type ListDatabaseConnectionsResponses = {
|
|
189
|
+
/**
|
|
190
|
+
* Returned all connections for the given database.
|
|
191
|
+
*/
|
|
192
|
+
200: {
|
|
193
|
+
data: Array<{
|
|
194
|
+
id: string;
|
|
195
|
+
type: "connection";
|
|
196
|
+
name: string;
|
|
197
|
+
createdAt: string;
|
|
198
|
+
database: {
|
|
199
|
+
id: string;
|
|
200
|
+
name: string;
|
|
201
|
+
};
|
|
202
|
+
}>;
|
|
203
|
+
pagination: {
|
|
204
|
+
nextCursor: string | null;
|
|
205
|
+
hasMore: boolean;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
export type ListDatabaseConnectionsResponse =
|
|
211
|
+
ListDatabaseConnectionsResponses[keyof ListDatabaseConnectionsResponses];
|
|
212
|
+
|
|
213
|
+
export type CreateDatabaseConnectionStringData = {
|
|
214
|
+
body?: {
|
|
215
|
+
name: string;
|
|
216
|
+
};
|
|
217
|
+
path: {
|
|
218
|
+
databaseId: string;
|
|
219
|
+
};
|
|
220
|
+
query?: never;
|
|
221
|
+
url: "/v1/databases/{databaseId}/connections";
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
export type CreateDatabaseConnectionStringErrors = {
|
|
225
|
+
/**
|
|
226
|
+
* Missing or invalid authorization token.
|
|
227
|
+
*/
|
|
228
|
+
401: {
|
|
229
|
+
error: {
|
|
230
|
+
code: string;
|
|
231
|
+
message: string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* Database with the given ID was not found.
|
|
236
|
+
*/
|
|
237
|
+
404: {
|
|
238
|
+
error: {
|
|
239
|
+
code: string;
|
|
240
|
+
message: string;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
export type CreateDatabaseConnectionStringError =
|
|
246
|
+
CreateDatabaseConnectionStringErrors[keyof CreateDatabaseConnectionStringErrors];
|
|
247
|
+
|
|
248
|
+
export type CreateDatabaseConnectionStringResponses = {
|
|
249
|
+
/**
|
|
250
|
+
* Created a new connection string for the database.
|
|
251
|
+
*/
|
|
252
|
+
200: {
|
|
253
|
+
data: {
|
|
254
|
+
id: string;
|
|
255
|
+
type: "connection";
|
|
256
|
+
name: string;
|
|
257
|
+
createdAt: string;
|
|
258
|
+
connectionString: string;
|
|
259
|
+
database: {
|
|
260
|
+
id: string;
|
|
261
|
+
name: string;
|
|
262
|
+
};
|
|
263
|
+
host: string | null;
|
|
264
|
+
pass: string | null;
|
|
265
|
+
user: string | null;
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
export type CreateDatabaseConnectionStringResponse =
|
|
271
|
+
CreateDatabaseConnectionStringResponses[keyof CreateDatabaseConnectionStringResponses];
|
|
272
|
+
|
|
273
|
+
export type ListBackupsData = {
|
|
274
|
+
body?: never;
|
|
275
|
+
path: {
|
|
276
|
+
databaseId: string;
|
|
277
|
+
};
|
|
278
|
+
query?: {
|
|
279
|
+
limit?: number;
|
|
280
|
+
};
|
|
281
|
+
url: "/v1/databases/{databaseId}/backups";
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
export type ListBackupsErrors = {
|
|
285
|
+
/**
|
|
286
|
+
* Missing or invalid authorization token.
|
|
287
|
+
*/
|
|
288
|
+
401: {
|
|
289
|
+
error: {
|
|
290
|
+
code: string;
|
|
291
|
+
message: string;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* Database with the given ID was not found.
|
|
296
|
+
*/
|
|
297
|
+
404: {
|
|
298
|
+
error: {
|
|
299
|
+
code: string;
|
|
300
|
+
message: string;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* Remote database backups are not supported
|
|
305
|
+
*/
|
|
306
|
+
422: {
|
|
307
|
+
error: {
|
|
308
|
+
code: string;
|
|
309
|
+
message: string;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
export type ListBackupsError = ListBackupsErrors[keyof ListBackupsErrors];
|
|
315
|
+
|
|
316
|
+
export type ListBackupsResponses = {
|
|
317
|
+
/**
|
|
318
|
+
* Returned backups for the given database.
|
|
319
|
+
*/
|
|
320
|
+
200: {
|
|
321
|
+
data: Array<{
|
|
322
|
+
id: string;
|
|
323
|
+
backupType: "full" | "incremental";
|
|
324
|
+
createdAt: string;
|
|
325
|
+
size?: number;
|
|
326
|
+
status: "running" | "completed" | "failed" | "unknown";
|
|
327
|
+
type?: "backup";
|
|
328
|
+
}>;
|
|
329
|
+
meta: {
|
|
330
|
+
backupRetentionDays: number;
|
|
331
|
+
};
|
|
332
|
+
pagination: {
|
|
333
|
+
hasMore: boolean;
|
|
334
|
+
limit: number | null;
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
export type ListBackupsResponse =
|
|
340
|
+
ListBackupsResponses[keyof ListBackupsResponses];
|
|
341
|
+
|
|
342
|
+
export type GetDatabaseUsageMetricsData = {
|
|
343
|
+
body?: never;
|
|
344
|
+
path: {
|
|
345
|
+
databaseId: string;
|
|
346
|
+
};
|
|
347
|
+
query?: {
|
|
348
|
+
/**
|
|
349
|
+
* Start date for metrics query. Defaults to start of current month if not provided.
|
|
350
|
+
*/
|
|
351
|
+
startDate?: string;
|
|
352
|
+
/**
|
|
353
|
+
* End date for metrics query. Will be set to end of day if a future date is provided. Defaults to current date if not provided.
|
|
354
|
+
*/
|
|
355
|
+
endDate?: string;
|
|
356
|
+
};
|
|
357
|
+
url: "/v1/databases/{databaseId}/usage";
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
export type GetDatabaseUsageMetricsErrors = {
|
|
361
|
+
/**
|
|
362
|
+
* Invalid request parameters
|
|
363
|
+
*/
|
|
364
|
+
400: {
|
|
365
|
+
error: {
|
|
366
|
+
code: string;
|
|
367
|
+
message: string;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
/**
|
|
371
|
+
* Missing or invalid authorization token.
|
|
372
|
+
*/
|
|
373
|
+
401: {
|
|
374
|
+
error: {
|
|
375
|
+
code: string;
|
|
376
|
+
message: string;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* Database with the given ID was not found.
|
|
381
|
+
*/
|
|
382
|
+
404: {
|
|
383
|
+
error: {
|
|
384
|
+
code: string;
|
|
385
|
+
message: string;
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* Error occurred while fetching metrics
|
|
390
|
+
*/
|
|
391
|
+
500: {
|
|
392
|
+
error: {
|
|
393
|
+
code: string;
|
|
394
|
+
message: string;
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
export type GetDatabaseUsageMetricsError =
|
|
400
|
+
GetDatabaseUsageMetricsErrors[keyof GetDatabaseUsageMetricsErrors];
|
|
401
|
+
|
|
402
|
+
export type GetDatabaseUsageMetricsResponses = {
|
|
403
|
+
/**
|
|
404
|
+
* Returned usage metrics for the given database.
|
|
405
|
+
*/
|
|
406
|
+
200: {
|
|
407
|
+
period: {
|
|
408
|
+
start: string;
|
|
409
|
+
end: string;
|
|
410
|
+
};
|
|
411
|
+
metrics: {
|
|
412
|
+
operations: {
|
|
413
|
+
used: number;
|
|
414
|
+
unit: "ops";
|
|
415
|
+
};
|
|
416
|
+
storage: {
|
|
417
|
+
used: number;
|
|
418
|
+
unit: "GiB";
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
generatedAt: string;
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
export type GetDatabaseUsageMetricsResponse =
|
|
426
|
+
GetDatabaseUsageMetricsResponses[keyof GetDatabaseUsageMetricsResponses];
|
|
427
|
+
|
|
428
|
+
export type ListProjectsData = {
|
|
429
|
+
body?: never;
|
|
430
|
+
path?: never;
|
|
431
|
+
query?: {
|
|
432
|
+
cursor?: string | null;
|
|
433
|
+
limit?: number;
|
|
434
|
+
};
|
|
435
|
+
url: "/v1/projects";
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
export type ListProjectsErrors = {
|
|
439
|
+
/**
|
|
440
|
+
* Missing or invalid authorization token.
|
|
441
|
+
*/
|
|
442
|
+
401: {
|
|
443
|
+
error: {
|
|
444
|
+
code: string;
|
|
445
|
+
message: string;
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
|
|
450
|
+
export type ListProjectsError = ListProjectsErrors[keyof ListProjectsErrors];
|
|
451
|
+
|
|
452
|
+
export type ListProjectsResponses = {
|
|
453
|
+
/**
|
|
454
|
+
* Returns the list of projects.
|
|
455
|
+
*/
|
|
456
|
+
200: {
|
|
457
|
+
data: Array<{
|
|
458
|
+
id: string;
|
|
459
|
+
type: "project";
|
|
460
|
+
name: string;
|
|
461
|
+
createdAt: string;
|
|
462
|
+
workspace: {
|
|
463
|
+
id: string;
|
|
464
|
+
name: string;
|
|
465
|
+
};
|
|
466
|
+
}>;
|
|
467
|
+
pagination: {
|
|
468
|
+
nextCursor: string | null;
|
|
469
|
+
hasMore: boolean;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
export type ListProjectsResponse =
|
|
475
|
+
ListProjectsResponses[keyof ListProjectsResponses];
|
|
476
|
+
|
|
477
|
+
export type CreateProjectWithPostgresDatabaseData = {
|
|
478
|
+
body?: {
|
|
479
|
+
createDatabase?: boolean;
|
|
480
|
+
name?: string;
|
|
481
|
+
region?:
|
|
482
|
+
| "us-east-1"
|
|
483
|
+
| "us-west-1"
|
|
484
|
+
| "eu-west-3"
|
|
485
|
+
| "eu-central-1"
|
|
486
|
+
| "ap-northeast-1"
|
|
487
|
+
| "ap-southeast-1";
|
|
488
|
+
};
|
|
489
|
+
path?: never;
|
|
490
|
+
query?: never;
|
|
491
|
+
url: "/v1/projects";
|
|
492
|
+
};
|
|
493
|
+
|
|
494
|
+
export type CreateProjectWithPostgresDatabaseErrors = {
|
|
495
|
+
/**
|
|
496
|
+
* Missing or invalid authorization token.
|
|
497
|
+
*/
|
|
498
|
+
401: {
|
|
499
|
+
error: {
|
|
500
|
+
code: string;
|
|
501
|
+
message: string;
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
export type CreateProjectWithPostgresDatabaseError =
|
|
507
|
+
CreateProjectWithPostgresDatabaseErrors[keyof CreateProjectWithPostgresDatabaseErrors];
|
|
508
|
+
|
|
509
|
+
export type CreateProjectWithPostgresDatabaseResponses = {
|
|
510
|
+
/**
|
|
511
|
+
* New project created.
|
|
512
|
+
*/
|
|
513
|
+
201: {
|
|
514
|
+
data: {
|
|
515
|
+
id: string;
|
|
516
|
+
type: "project";
|
|
517
|
+
name: string;
|
|
518
|
+
createdAt: string;
|
|
519
|
+
workspace: {
|
|
520
|
+
id: string;
|
|
521
|
+
name: string;
|
|
522
|
+
};
|
|
523
|
+
database: {
|
|
524
|
+
id: string;
|
|
525
|
+
type: "database";
|
|
526
|
+
name: string;
|
|
527
|
+
status: "provisioning" | "ready";
|
|
528
|
+
createdAt: string;
|
|
529
|
+
isDefault: boolean;
|
|
530
|
+
region: {
|
|
531
|
+
id: string;
|
|
532
|
+
name: string;
|
|
533
|
+
};
|
|
534
|
+
apiKeys: Array<{
|
|
535
|
+
id: string;
|
|
536
|
+
type: "connection";
|
|
537
|
+
name: string;
|
|
538
|
+
createdAt: string;
|
|
539
|
+
connectionString: string;
|
|
540
|
+
}>;
|
|
541
|
+
connectionString: string | null;
|
|
542
|
+
directConnection: {
|
|
543
|
+
host: string;
|
|
544
|
+
pass: string;
|
|
545
|
+
user: string;
|
|
546
|
+
} | null;
|
|
547
|
+
} | null;
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
|
|
552
|
+
export type CreateProjectWithPostgresDatabaseResponse =
|
|
553
|
+
CreateProjectWithPostgresDatabaseResponses[keyof CreateProjectWithPostgresDatabaseResponses];
|
|
554
|
+
|
|
555
|
+
export type DeleteProjectData = {
|
|
556
|
+
body?: never;
|
|
557
|
+
path: {
|
|
558
|
+
id: string;
|
|
559
|
+
};
|
|
560
|
+
query?: never;
|
|
561
|
+
url: "/v1/projects/{id}";
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
export type DeleteProjectErrors = {
|
|
565
|
+
/**
|
|
566
|
+
* Project cannot be deleted due to existing dependencies.
|
|
567
|
+
*/
|
|
568
|
+
400: {
|
|
569
|
+
error: {
|
|
570
|
+
code: string;
|
|
571
|
+
message: string;
|
|
572
|
+
};
|
|
573
|
+
};
|
|
574
|
+
/**
|
|
575
|
+
* Unauthorized
|
|
576
|
+
*/
|
|
577
|
+
401: {
|
|
578
|
+
error: {
|
|
579
|
+
code: string;
|
|
580
|
+
message: string;
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
/**
|
|
584
|
+
* Project with the specified ID was not found
|
|
585
|
+
*/
|
|
586
|
+
404: {
|
|
587
|
+
error: {
|
|
588
|
+
code: string;
|
|
589
|
+
message: string;
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
|
|
594
|
+
export type DeleteProjectError = DeleteProjectErrors[keyof DeleteProjectErrors];
|
|
595
|
+
|
|
596
|
+
export type DeleteProjectResponses = {
|
|
597
|
+
/**
|
|
598
|
+
* Project deleted.
|
|
599
|
+
*/
|
|
600
|
+
204: void;
|
|
601
|
+
};
|
|
602
|
+
|
|
603
|
+
export type DeleteProjectResponse =
|
|
604
|
+
DeleteProjectResponses[keyof DeleteProjectResponses];
|
|
605
|
+
|
|
606
|
+
export type GetProjectData = {
|
|
607
|
+
body?: never;
|
|
608
|
+
path: {
|
|
609
|
+
id: string;
|
|
610
|
+
};
|
|
611
|
+
query?: never;
|
|
612
|
+
url: "/v1/projects/{id}";
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
export type GetProjectErrors = {
|
|
616
|
+
/**
|
|
617
|
+
* Missing or invalid authorization token.
|
|
618
|
+
*/
|
|
619
|
+
401: {
|
|
620
|
+
error: {
|
|
621
|
+
code: string;
|
|
622
|
+
message: string;
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
/**
|
|
626
|
+
* Project with the specified ID was not found.
|
|
627
|
+
*/
|
|
628
|
+
404: {
|
|
629
|
+
error: {
|
|
630
|
+
code: string;
|
|
631
|
+
message: string;
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
export type GetProjectError = GetProjectErrors[keyof GetProjectErrors];
|
|
637
|
+
|
|
638
|
+
export type GetProjectResponses = {
|
|
639
|
+
/**
|
|
640
|
+
* Project retrieved.
|
|
641
|
+
*/
|
|
642
|
+
200: {
|
|
643
|
+
data: {
|
|
644
|
+
id: string;
|
|
645
|
+
type: "project";
|
|
646
|
+
name: string;
|
|
647
|
+
createdAt: string;
|
|
648
|
+
workspace: {
|
|
649
|
+
id: string;
|
|
650
|
+
name: string;
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
export type GetProjectResponse = GetProjectResponses[keyof GetProjectResponses];
|
|
657
|
+
|
|
658
|
+
export type TransferProjectData = {
|
|
659
|
+
body?: {
|
|
660
|
+
recipientAccessToken: string;
|
|
661
|
+
};
|
|
662
|
+
path: {
|
|
663
|
+
id: string;
|
|
664
|
+
};
|
|
665
|
+
query?: never;
|
|
666
|
+
url: "/v1/projects/{id}/transfer";
|
|
667
|
+
};
|
|
668
|
+
|
|
669
|
+
export type TransferProjectErrors = {
|
|
670
|
+
/**
|
|
671
|
+
* Missing or invalid authorization token.
|
|
672
|
+
*/
|
|
673
|
+
401: {
|
|
674
|
+
error: {
|
|
675
|
+
code: string;
|
|
676
|
+
message: string;
|
|
677
|
+
};
|
|
678
|
+
};
|
|
679
|
+
/**
|
|
680
|
+
* Project with the given ID was not found.
|
|
681
|
+
*/
|
|
682
|
+
404: {
|
|
683
|
+
error: {
|
|
684
|
+
code: string;
|
|
685
|
+
message: string;
|
|
686
|
+
};
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
|
|
690
|
+
export type TransferProjectError =
|
|
691
|
+
TransferProjectErrors[keyof TransferProjectErrors];
|
|
692
|
+
|
|
693
|
+
export type TransferProjectResponses = {
|
|
694
|
+
/**
|
|
695
|
+
* Project transferred
|
|
696
|
+
*/
|
|
697
|
+
204: void;
|
|
698
|
+
};
|
|
699
|
+
|
|
700
|
+
export type TransferProjectResponse =
|
|
701
|
+
TransferProjectResponses[keyof TransferProjectResponses];
|
|
702
|
+
|
|
703
|
+
export type ListDatabasesData = {
|
|
704
|
+
body?: never;
|
|
705
|
+
path: {
|
|
706
|
+
projectId: string;
|
|
707
|
+
};
|
|
708
|
+
query?: {
|
|
709
|
+
cursor?: string | null;
|
|
710
|
+
limit?: number;
|
|
711
|
+
};
|
|
712
|
+
url: "/v1/projects/{projectId}/databases";
|
|
713
|
+
};
|
|
714
|
+
|
|
715
|
+
export type ListDatabasesErrors = {
|
|
716
|
+
/**
|
|
717
|
+
* Missing or invalid authorization token.
|
|
718
|
+
*/
|
|
719
|
+
401: {
|
|
720
|
+
error: {
|
|
721
|
+
code: string;
|
|
722
|
+
message: string;
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
/**
|
|
726
|
+
* Project with the given ID was not found.
|
|
727
|
+
*/
|
|
728
|
+
404: {
|
|
729
|
+
error: {
|
|
730
|
+
code: string;
|
|
731
|
+
message: string;
|
|
732
|
+
};
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
export type ListDatabasesError = ListDatabasesErrors[keyof ListDatabasesErrors];
|
|
737
|
+
|
|
738
|
+
export type ListDatabasesResponses = {
|
|
739
|
+
/**
|
|
740
|
+
* Returned the databases for the given project ID.
|
|
741
|
+
*/
|
|
742
|
+
200: {
|
|
743
|
+
data: Array<{
|
|
744
|
+
id: string;
|
|
745
|
+
type: "database";
|
|
746
|
+
name: string;
|
|
747
|
+
status: "failure" | "provisioning" | "ready" | "recovering";
|
|
748
|
+
createdAt: string;
|
|
749
|
+
isDefault: boolean;
|
|
750
|
+
project: {
|
|
751
|
+
id: string;
|
|
752
|
+
name: string;
|
|
753
|
+
};
|
|
754
|
+
region: {
|
|
755
|
+
id: string;
|
|
756
|
+
name: string;
|
|
757
|
+
} | null;
|
|
758
|
+
}>;
|
|
759
|
+
pagination: {
|
|
760
|
+
nextCursor: string | null;
|
|
761
|
+
hasMore: boolean;
|
|
762
|
+
};
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
|
|
766
|
+
export type ListDatabasesResponse =
|
|
767
|
+
ListDatabasesResponses[keyof ListDatabasesResponses];
|
|
768
|
+
|
|
769
|
+
export type CreateDatabaseData = {
|
|
770
|
+
body?: {
|
|
771
|
+
region?:
|
|
772
|
+
| "us-east-1"
|
|
773
|
+
| "us-west-1"
|
|
774
|
+
| "eu-west-3"
|
|
775
|
+
| "eu-central-1"
|
|
776
|
+
| "ap-northeast-1"
|
|
777
|
+
| "ap-southeast-1";
|
|
778
|
+
name?: string;
|
|
779
|
+
isDefault?: boolean;
|
|
780
|
+
fromDatabase?: {
|
|
781
|
+
id: string;
|
|
782
|
+
backupId?: string;
|
|
783
|
+
};
|
|
784
|
+
};
|
|
785
|
+
path: {
|
|
786
|
+
projectId: string;
|
|
787
|
+
};
|
|
788
|
+
query?: never;
|
|
789
|
+
url: "/v1/projects/{projectId}/databases";
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
export type CreateDatabaseErrors = {
|
|
793
|
+
/**
|
|
794
|
+
* The request is invalid due to missing or invalid parameters.
|
|
795
|
+
*/
|
|
796
|
+
400: {
|
|
797
|
+
error: {
|
|
798
|
+
code: string;
|
|
799
|
+
message: string;
|
|
800
|
+
};
|
|
801
|
+
};
|
|
802
|
+
/**
|
|
803
|
+
* Missing or invalid authorization token.
|
|
804
|
+
*/
|
|
805
|
+
401: {
|
|
806
|
+
error: {
|
|
807
|
+
code: string;
|
|
808
|
+
message: string;
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
/**
|
|
812
|
+
* Project does not belong to the service token’s workspace.
|
|
813
|
+
*/
|
|
814
|
+
403: {
|
|
815
|
+
error: {
|
|
816
|
+
code: string;
|
|
817
|
+
message: string;
|
|
818
|
+
};
|
|
819
|
+
};
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
export type CreateDatabaseError =
|
|
823
|
+
CreateDatabaseErrors[keyof CreateDatabaseErrors];
|
|
824
|
+
|
|
825
|
+
export type CreateDatabaseResponses = {
|
|
826
|
+
/**
|
|
827
|
+
* Created a new database for the project.
|
|
828
|
+
*/
|
|
829
|
+
201: {
|
|
830
|
+
data: {
|
|
831
|
+
id: string;
|
|
832
|
+
type: "database";
|
|
833
|
+
name: string;
|
|
834
|
+
status: "provisioning" | "ready";
|
|
835
|
+
createdAt: string;
|
|
836
|
+
isDefault: boolean;
|
|
837
|
+
project: {
|
|
838
|
+
id: string;
|
|
839
|
+
name: string;
|
|
840
|
+
};
|
|
841
|
+
region: {
|
|
842
|
+
id: string;
|
|
843
|
+
name: string;
|
|
844
|
+
};
|
|
845
|
+
apiKeys: Array<{
|
|
846
|
+
id: string;
|
|
847
|
+
type: "connection";
|
|
848
|
+
name: string;
|
|
849
|
+
createdAt: string;
|
|
850
|
+
connectionString: string;
|
|
851
|
+
}>;
|
|
852
|
+
connectionString: string | null;
|
|
853
|
+
directConnection: {
|
|
854
|
+
host: string;
|
|
855
|
+
pass: string;
|
|
856
|
+
user: string;
|
|
857
|
+
} | null;
|
|
858
|
+
};
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
|
|
862
|
+
export type CreateDatabaseResponse =
|
|
863
|
+
CreateDatabaseResponses[keyof CreateDatabaseResponses];
|
|
864
|
+
|
|
865
|
+
export type ListIntegrationsData = {
|
|
866
|
+
body?: never;
|
|
867
|
+
path: {
|
|
868
|
+
workspaceId: string;
|
|
869
|
+
};
|
|
870
|
+
query?: {
|
|
871
|
+
cursor?: string | null;
|
|
872
|
+
limit?: number;
|
|
873
|
+
};
|
|
874
|
+
url: "/v1/workspaces/{workspaceId}/integrations";
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
export type ListIntegrationsErrors = {
|
|
878
|
+
/**
|
|
879
|
+
* Missing or invalid authorization token.
|
|
880
|
+
*/
|
|
881
|
+
401: {
|
|
882
|
+
error: {
|
|
883
|
+
code: string;
|
|
884
|
+
message: string;
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
/**
|
|
888
|
+
* Workspace with the given ID was not found.
|
|
889
|
+
*/
|
|
890
|
+
404: {
|
|
891
|
+
error: {
|
|
892
|
+
code: string;
|
|
893
|
+
message: string;
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
};
|
|
897
|
+
|
|
898
|
+
export type ListIntegrationsError =
|
|
899
|
+
ListIntegrationsErrors[keyof ListIntegrationsErrors];
|
|
900
|
+
|
|
901
|
+
export type ListIntegrationsResponses = {
|
|
902
|
+
/**
|
|
903
|
+
* Returned the integrations for the given workspace ID.
|
|
904
|
+
*/
|
|
905
|
+
200: {
|
|
906
|
+
data: Array<{
|
|
907
|
+
id: string;
|
|
908
|
+
createdAt: string;
|
|
909
|
+
scopes: Array<string>;
|
|
910
|
+
client: {
|
|
911
|
+
id: string;
|
|
912
|
+
name: string;
|
|
913
|
+
createdAt: string;
|
|
914
|
+
};
|
|
915
|
+
createdByUser: {
|
|
916
|
+
id: string;
|
|
917
|
+
email: string;
|
|
918
|
+
displayName: string | null;
|
|
919
|
+
};
|
|
920
|
+
}>;
|
|
921
|
+
pagination: {
|
|
922
|
+
nextCursor: string | null;
|
|
923
|
+
hasMore: boolean;
|
|
924
|
+
};
|
|
925
|
+
};
|
|
926
|
+
};
|
|
927
|
+
|
|
928
|
+
export type ListIntegrationsResponse =
|
|
929
|
+
ListIntegrationsResponses[keyof ListIntegrationsResponses];
|
|
930
|
+
|
|
931
|
+
export type RevokeIntegrationTokensData = {
|
|
932
|
+
body?: never;
|
|
933
|
+
path: {
|
|
934
|
+
clientId: string;
|
|
935
|
+
workspaceId: string;
|
|
936
|
+
};
|
|
937
|
+
query?: never;
|
|
938
|
+
url: "/v1/workspaces/{workspaceId}/integrations/{clientId}";
|
|
939
|
+
};
|
|
940
|
+
|
|
941
|
+
export type RevokeIntegrationTokensErrors = {
|
|
942
|
+
/**
|
|
943
|
+
* Missing or invalid authorization token.
|
|
944
|
+
*/
|
|
945
|
+
401: {
|
|
946
|
+
error: {
|
|
947
|
+
code: string;
|
|
948
|
+
message: string;
|
|
949
|
+
};
|
|
950
|
+
};
|
|
951
|
+
/**
|
|
952
|
+
* Integration with the given client ID was not found.
|
|
953
|
+
*/
|
|
954
|
+
404: {
|
|
955
|
+
error: {
|
|
956
|
+
code: string;
|
|
957
|
+
message: string;
|
|
958
|
+
};
|
|
959
|
+
};
|
|
960
|
+
};
|
|
961
|
+
|
|
962
|
+
export type RevokeIntegrationTokensError =
|
|
963
|
+
RevokeIntegrationTokensErrors[keyof RevokeIntegrationTokensErrors];
|
|
964
|
+
|
|
965
|
+
export type RevokeIntegrationTokensResponses = {
|
|
966
|
+
/**
|
|
967
|
+
* Revoked the integration tokens.
|
|
968
|
+
*/
|
|
969
|
+
204: void;
|
|
970
|
+
};
|
|
971
|
+
|
|
972
|
+
export type RevokeIntegrationTokensResponse =
|
|
973
|
+
RevokeIntegrationTokensResponses[keyof RevokeIntegrationTokensResponses];
|
|
974
|
+
|
|
975
|
+
export type GetPrismaPostgresRegionsData = {
|
|
976
|
+
body?: never;
|
|
977
|
+
path?: never;
|
|
978
|
+
query?: never;
|
|
979
|
+
url: "/v1/regions/postgres";
|
|
980
|
+
};
|
|
981
|
+
|
|
982
|
+
export type GetPrismaPostgresRegionsErrors = {
|
|
983
|
+
/**
|
|
984
|
+
* Missing or invalid authorization token.
|
|
985
|
+
*/
|
|
986
|
+
401: {
|
|
987
|
+
error: {
|
|
988
|
+
code: string;
|
|
989
|
+
message: string;
|
|
990
|
+
};
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
|
|
994
|
+
export type GetPrismaPostgresRegionsError =
|
|
995
|
+
GetPrismaPostgresRegionsErrors[keyof GetPrismaPostgresRegionsErrors];
|
|
996
|
+
|
|
997
|
+
export type GetPrismaPostgresRegionsResponses = {
|
|
998
|
+
/**
|
|
999
|
+
* Returns all available regions for Prisma Postgres.
|
|
1000
|
+
*/
|
|
1001
|
+
200: {
|
|
1002
|
+
data: Array<{
|
|
1003
|
+
id: string;
|
|
1004
|
+
type: "region";
|
|
1005
|
+
name: string;
|
|
1006
|
+
status: "available" | "unavailable";
|
|
1007
|
+
}>;
|
|
1008
|
+
};
|
|
1009
|
+
};
|
|
1010
|
+
|
|
1011
|
+
export type GetPrismaPostgresRegionsResponse =
|
|
1012
|
+
GetPrismaPostgresRegionsResponses[keyof GetPrismaPostgresRegionsResponses];
|
|
1013
|
+
|
|
1014
|
+
export type GetPrismaAccelerateRegionsData = {
|
|
1015
|
+
body?: never;
|
|
1016
|
+
path?: never;
|
|
1017
|
+
query?: never;
|
|
1018
|
+
url: "/v1/regions/accelerate";
|
|
1019
|
+
};
|
|
1020
|
+
|
|
1021
|
+
export type GetPrismaAccelerateRegionsErrors = {
|
|
1022
|
+
/**
|
|
1023
|
+
* Missing or invalid authorization token.
|
|
1024
|
+
*/
|
|
1025
|
+
401: {
|
|
1026
|
+
error: {
|
|
1027
|
+
code: string;
|
|
1028
|
+
message: string;
|
|
1029
|
+
};
|
|
1030
|
+
};
|
|
1031
|
+
};
|
|
1032
|
+
|
|
1033
|
+
export type GetPrismaAccelerateRegionsError =
|
|
1034
|
+
GetPrismaAccelerateRegionsErrors[keyof GetPrismaAccelerateRegionsErrors];
|
|
1035
|
+
|
|
1036
|
+
export type GetPrismaAccelerateRegionsResponses = {
|
|
1037
|
+
/**
|
|
1038
|
+
* Returns all available regions for Prisma Accelerate.
|
|
1039
|
+
*/
|
|
1040
|
+
200: {
|
|
1041
|
+
data: Array<{
|
|
1042
|
+
id: string;
|
|
1043
|
+
type: "region";
|
|
1044
|
+
name: string;
|
|
1045
|
+
}>;
|
|
1046
|
+
};
|
|
1047
|
+
};
|
|
1048
|
+
|
|
1049
|
+
export type GetPrismaAccelerateRegionsResponse =
|
|
1050
|
+
GetPrismaAccelerateRegionsResponses[keyof GetPrismaAccelerateRegionsResponses];
|
|
1051
|
+
|
|
1052
|
+
export type ListWorkspacesData = {
|
|
1053
|
+
body?: never;
|
|
1054
|
+
path?: never;
|
|
1055
|
+
query?: {
|
|
1056
|
+
cursor?: string | null;
|
|
1057
|
+
limit?: number;
|
|
1058
|
+
};
|
|
1059
|
+
url: "/v1/workspaces";
|
|
1060
|
+
};
|
|
1061
|
+
|
|
1062
|
+
export type ListWorkspacesErrors = {
|
|
1063
|
+
/**
|
|
1064
|
+
* Missing or invalid authorization token.
|
|
1065
|
+
*/
|
|
1066
|
+
401: {
|
|
1067
|
+
error: {
|
|
1068
|
+
code: string;
|
|
1069
|
+
message: string;
|
|
1070
|
+
};
|
|
1071
|
+
};
|
|
1072
|
+
};
|
|
1073
|
+
|
|
1074
|
+
export type ListWorkspacesError =
|
|
1075
|
+
ListWorkspacesErrors[keyof ListWorkspacesErrors];
|
|
1076
|
+
|
|
1077
|
+
export type ListWorkspacesResponses = {
|
|
1078
|
+
/**
|
|
1079
|
+
* Returns the list of workspaces the current token can access.
|
|
1080
|
+
*/
|
|
1081
|
+
200: {
|
|
1082
|
+
data: Array<{
|
|
1083
|
+
id: string;
|
|
1084
|
+
type: "workspace";
|
|
1085
|
+
name: string;
|
|
1086
|
+
createdAt: string;
|
|
1087
|
+
}>;
|
|
1088
|
+
pagination: {
|
|
1089
|
+
nextCursor: string | null;
|
|
1090
|
+
hasMore: boolean;
|
|
1091
|
+
};
|
|
1092
|
+
};
|
|
1093
|
+
};
|
|
1094
|
+
|
|
1095
|
+
export type ListWorkspacesResponse =
|
|
1096
|
+
ListWorkspacesResponses[keyof ListWorkspacesResponses];
|