@powerlines/plugin-prisma 0.2.244 → 0.2.246

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.
Files changed (118) hide show
  1. package/dist/api/client/client.gen.d.cts +7 -0
  2. package/dist/api/client/client.gen.d.cts.map +1 -0
  3. package/dist/api/client/client.gen.d.mts +7 -0
  4. package/dist/api/client/client.gen.d.mts.map +1 -0
  5. package/dist/api/client/client.gen.mjs +2 -1
  6. package/dist/api/client/client.gen.mjs.map +1 -0
  7. package/dist/api/client/index.d.cts +8 -0
  8. package/dist/api/client/index.d.mts +8 -0
  9. package/dist/api/client/types.gen.d.cts +131 -0
  10. package/dist/api/client/types.gen.d.cts.map +1 -0
  11. package/dist/api/client/types.gen.d.mts +131 -0
  12. package/dist/api/client/types.gen.d.mts.map +1 -0
  13. package/dist/api/client/utils.gen.d.cts +44 -0
  14. package/dist/api/client/utils.gen.d.cts.map +1 -0
  15. package/dist/api/client/utils.gen.d.mts +44 -0
  16. package/dist/api/client/utils.gen.d.mts.map +1 -0
  17. package/dist/api/client/utils.gen.mjs +2 -1
  18. package/dist/api/client/utils.gen.mjs.map +1 -0
  19. package/dist/api/client.gen.d.cts +19 -0
  20. package/dist/api/client.gen.d.cts.map +1 -0
  21. package/dist/api/client.gen.d.mts +19 -0
  22. package/dist/api/client.gen.d.mts.map +1 -0
  23. package/dist/api/client.gen.mjs +2 -1
  24. package/dist/api/client.gen.mjs.map +1 -0
  25. package/dist/api/core/auth.gen.d.cts +24 -0
  26. package/dist/api/core/auth.gen.d.cts.map +1 -0
  27. package/dist/api/core/auth.gen.d.mts +24 -0
  28. package/dist/api/core/auth.gen.d.mts.map +1 -0
  29. package/dist/api/core/auth.gen.mjs +2 -1
  30. package/dist/api/core/auth.gen.mjs.map +1 -0
  31. package/dist/api/core/bodySerializer.gen.d.cts +32 -0
  32. package/dist/api/core/bodySerializer.gen.d.cts.map +1 -0
  33. package/dist/api/core/bodySerializer.gen.d.mts +32 -0
  34. package/dist/api/core/bodySerializer.gen.d.mts.map +1 -0
  35. package/dist/api/core/bodySerializer.gen.mjs +2 -1
  36. package/dist/api/core/bodySerializer.gen.mjs.map +1 -0
  37. package/dist/api/core/params.gen.d.cts +49 -0
  38. package/dist/api/core/params.gen.d.cts.map +1 -0
  39. package/dist/api/core/params.gen.d.mts +49 -0
  40. package/dist/api/core/params.gen.d.mts.map +1 -0
  41. package/dist/api/core/params.gen.mjs +2 -1
  42. package/dist/api/core/params.gen.mjs.map +1 -0
  43. package/dist/api/core/pathSerializer.gen.d.cts +56 -0
  44. package/dist/api/core/pathSerializer.gen.d.cts.map +1 -0
  45. package/dist/api/core/pathSerializer.gen.d.mts +56 -0
  46. package/dist/api/core/pathSerializer.gen.d.mts.map +1 -0
  47. package/dist/api/core/pathSerializer.gen.mjs +2 -1
  48. package/dist/api/core/pathSerializer.gen.mjs.map +1 -0
  49. package/dist/api/core/queryKeySerializer.gen.d.cts +23 -0
  50. package/dist/api/core/queryKeySerializer.gen.d.cts.map +1 -0
  51. package/dist/api/core/queryKeySerializer.gen.d.mts +23 -0
  52. package/dist/api/core/queryKeySerializer.gen.d.mts.map +1 -0
  53. package/dist/api/core/queryKeySerializer.gen.mjs +2 -1
  54. package/dist/api/core/queryKeySerializer.gen.mjs.map +1 -0
  55. package/dist/api/core/serverSentEvents.gen.d.cts +91 -0
  56. package/dist/api/core/serverSentEvents.gen.d.cts.map +1 -0
  57. package/dist/api/core/serverSentEvents.gen.d.mts +91 -0
  58. package/dist/api/core/serverSentEvents.gen.d.mts.map +1 -0
  59. package/dist/api/core/serverSentEvents.gen.mjs +2 -1
  60. package/dist/api/core/serverSentEvents.gen.mjs.map +1 -0
  61. package/dist/api/core/types.gen.d.cts +80 -0
  62. package/dist/api/core/types.gen.d.cts.map +1 -0
  63. package/dist/api/core/types.gen.d.mts +80 -0
  64. package/dist/api/core/types.gen.d.mts.map +1 -0
  65. package/dist/api/core/utils.gen.d.cts +34 -0
  66. package/dist/api/core/utils.gen.d.cts.map +1 -0
  67. package/dist/api/core/utils.gen.d.mts +34 -0
  68. package/dist/api/core/utils.gen.d.mts.map +1 -0
  69. package/dist/api/core/utils.gen.mjs +2 -1
  70. package/dist/api/core/utils.gen.mjs.map +1 -0
  71. package/dist/api/sdk.gen.d.cts +226 -0
  72. package/dist/api/sdk.gen.d.cts.map +1 -0
  73. package/dist/api/sdk.gen.d.mts +226 -0
  74. package/dist/api/sdk.gen.d.mts.map +1 -0
  75. package/dist/api/sdk.gen.mjs +2 -1
  76. package/dist/api/sdk.gen.mjs.map +1 -0
  77. package/dist/api/types.gen.d.cts +2365 -0
  78. package/dist/api/types.gen.d.cts.map +1 -0
  79. package/dist/api/types.gen.d.mts +2365 -0
  80. package/dist/api/types.gen.d.mts.map +1 -0
  81. package/dist/helpers/get-schema.d.cts +14 -0
  82. package/dist/helpers/get-schema.d.cts.map +1 -0
  83. package/dist/helpers/get-schema.d.mts +14 -0
  84. package/dist/helpers/get-schema.d.mts.map +1 -0
  85. package/dist/helpers/get-schema.mjs +2 -1
  86. package/dist/helpers/get-schema.mjs.map +1 -0
  87. package/dist/helpers/index.d.cts +4 -0
  88. package/dist/helpers/index.d.mts +4 -0
  89. package/dist/helpers/prisma-postgres.d.cts +65 -0
  90. package/dist/helpers/prisma-postgres.d.cts.map +1 -0
  91. package/dist/helpers/prisma-postgres.d.mts +65 -0
  92. package/dist/helpers/prisma-postgres.d.mts.map +1 -0
  93. package/dist/helpers/prisma-postgres.mjs +2 -1
  94. package/dist/helpers/prisma-postgres.mjs.map +1 -0
  95. package/dist/helpers/schema-creator.d.cts +21 -0
  96. package/dist/helpers/schema-creator.d.cts.map +1 -0
  97. package/dist/helpers/schema-creator.d.mts +21 -0
  98. package/dist/helpers/schema-creator.d.mts.map +1 -0
  99. package/dist/helpers/schema-creator.mjs +2 -1
  100. package/dist/helpers/schema-creator.mjs.map +1 -0
  101. package/dist/index.cjs +18 -24
  102. package/dist/index.d.cts +24 -0
  103. package/dist/index.d.cts.map +1 -0
  104. package/dist/index.d.mts +24 -0
  105. package/dist/index.d.mts.map +1 -0
  106. package/dist/index.mjs +16 -21
  107. package/dist/index.mjs.map +1 -0
  108. package/dist/types/index.d.cts +3 -0
  109. package/dist/types/index.d.mts +3 -0
  110. package/dist/types/plugin.d.cts +91 -0
  111. package/dist/types/plugin.d.cts.map +1 -0
  112. package/dist/types/plugin.d.mts +91 -0
  113. package/dist/types/plugin.d.mts.map +1 -0
  114. package/dist/types/prisma.d.cts +85 -0
  115. package/dist/types/prisma.d.cts.map +1 -0
  116. package/dist/types/prisma.d.mts +85 -0
  117. package/dist/types/prisma.d.mts.map +1 -0
  118. package/package.json +8 -7
@@ -0,0 +1,2365 @@
1
+ //#region src/api/types.gen.d.ts
2
+ type ClientOptions = {
3
+ baseUrl: `${string}://${string}` | (string & {});
4
+ };
5
+ type ListConnectionsData = {
6
+ body?: never;
7
+ path?: never;
8
+ query?: {
9
+ /**
10
+ * Cursor for pagination
11
+ */
12
+ cursor?: string | null;
13
+ /**
14
+ * Limit for pagination
15
+ */
16
+ limit?: number;
17
+ databaseId?: string;
18
+ };
19
+ url: '/v1/connections';
20
+ };
21
+ type ListConnectionsErrors = {
22
+ /**
23
+ * Missing or invalid authorization token.
24
+ */
25
+ 401: {
26
+ error: {
27
+ code: string;
28
+ message: string;
29
+ hint?: string;
30
+ };
31
+ };
32
+ };
33
+ type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
34
+ type ListConnectionsResponses = {
35
+ /**
36
+ * Returned list of connections.
37
+ */
38
+ 200: {
39
+ data: Array<{
40
+ id: string;
41
+ type: 'connection';
42
+ url: string;
43
+ name: string;
44
+ createdAt: string;
45
+ kind: 'postgres' | 'accelerate';
46
+ endpoints: {
47
+ direct?: {
48
+ host: string;
49
+ port: number;
50
+ };
51
+ pooled?: {
52
+ host: string;
53
+ port: number;
54
+ };
55
+ accelerate?: {
56
+ host: string;
57
+ port: number;
58
+ };
59
+ };
60
+ directConnection?: {
61
+ host: string;
62
+ pass: string;
63
+ user: string;
64
+ } | null;
65
+ database: {
66
+ id: string;
67
+ url: string;
68
+ name: string;
69
+ };
70
+ }>;
71
+ pagination: {
72
+ /**
73
+ * Next cursor to continue pagination
74
+ */
75
+ nextCursor: string | null;
76
+ /**
77
+ * Whether there are more items to paginate
78
+ */
79
+ hasMore: boolean;
80
+ };
81
+ };
82
+ };
83
+ type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
84
+ type CreateConnectionData = {
85
+ body?: {
86
+ databaseId: string;
87
+ name: string;
88
+ };
89
+ path?: never;
90
+ query?: never;
91
+ url: '/v1/connections';
92
+ };
93
+ type CreateConnectionErrors = {
94
+ /**
95
+ * Missing or invalid authorization token.
96
+ */
97
+ 401: {
98
+ error: {
99
+ code: string;
100
+ message: string;
101
+ hint?: string;
102
+ };
103
+ };
104
+ /**
105
+ * Database with the given ID was not found.
106
+ */
107
+ 404: {
108
+ error: {
109
+ code: string;
110
+ message: string;
111
+ hint?: string;
112
+ };
113
+ };
114
+ };
115
+ type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
116
+ type CreateConnectionResponses = {
117
+ /**
118
+ * Created a new connection.
119
+ */
120
+ 201: {
121
+ data: {
122
+ id: string;
123
+ type: 'connection';
124
+ url: string;
125
+ name: string;
126
+ createdAt: string;
127
+ kind: 'postgres' | 'accelerate';
128
+ endpoints: {
129
+ direct?: {
130
+ host: string;
131
+ port: number;
132
+ };
133
+ pooled?: {
134
+ host: string;
135
+ port: number;
136
+ };
137
+ accelerate?: {
138
+ host: string;
139
+ port: number;
140
+ };
141
+ };
142
+ connectionString: string;
143
+ directConnection?: {
144
+ host: string;
145
+ pass: string;
146
+ user: string;
147
+ } | null;
148
+ database: {
149
+ id: string;
150
+ url: string;
151
+ name: string;
152
+ };
153
+ host: string | null;
154
+ pass: string | null;
155
+ user: string | null;
156
+ };
157
+ };
158
+ };
159
+ type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
160
+ type DeleteConnectionData = {
161
+ body?: never;
162
+ path: {
163
+ id: string;
164
+ };
165
+ query?: never;
166
+ url: '/v1/connections/{id}';
167
+ };
168
+ type DeleteConnectionErrors = {
169
+ /**
170
+ * Missing or invalid authorization token.
171
+ */
172
+ 401: {
173
+ error: {
174
+ code: string;
175
+ message: string;
176
+ hint?: string;
177
+ };
178
+ };
179
+ /**
180
+ * Connection with the given ID was not found.
181
+ */
182
+ 404: {
183
+ error: {
184
+ code: string;
185
+ message: string;
186
+ hint?: string;
187
+ };
188
+ };
189
+ };
190
+ type DeleteConnectionError = DeleteConnectionErrors[keyof DeleteConnectionErrors];
191
+ type DeleteConnectionResponses = {
192
+ /**
193
+ * Deleted the connection.
194
+ */
195
+ 204: void;
196
+ };
197
+ type DeleteConnectionResponse = DeleteConnectionResponses[keyof DeleteConnectionResponses];
198
+ type GetConnectionData = {
199
+ body?: never;
200
+ path: {
201
+ id: string;
202
+ };
203
+ query?: never;
204
+ url: '/v1/connections/{id}';
205
+ };
206
+ type GetConnectionErrors = {
207
+ /**
208
+ * Missing or invalid authorization token.
209
+ */
210
+ 401: {
211
+ error: {
212
+ code: string;
213
+ message: string;
214
+ hint?: string;
215
+ };
216
+ };
217
+ /**
218
+ * Connection with the given ID was not found.
219
+ */
220
+ 404: {
221
+ error: {
222
+ code: string;
223
+ message: string;
224
+ hint?: string;
225
+ };
226
+ };
227
+ };
228
+ type GetConnectionError = GetConnectionErrors[keyof GetConnectionErrors];
229
+ type GetConnectionResponses = {
230
+ /**
231
+ * Returned the connection.
232
+ */
233
+ 200: {
234
+ data: {
235
+ id: string;
236
+ type: 'connection';
237
+ url: string;
238
+ name: string;
239
+ createdAt: string;
240
+ kind: 'postgres' | 'accelerate';
241
+ endpoints: {
242
+ direct?: {
243
+ host: string;
244
+ port: number;
245
+ };
246
+ pooled?: {
247
+ host: string;
248
+ port: number;
249
+ };
250
+ accelerate?: {
251
+ host: string;
252
+ port: number;
253
+ };
254
+ };
255
+ directConnection?: {
256
+ host: string;
257
+ pass: string;
258
+ user: string;
259
+ } | null;
260
+ database: {
261
+ id: string;
262
+ url: string;
263
+ name: string;
264
+ };
265
+ };
266
+ };
267
+ };
268
+ type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
269
+ type ListDatabasesData = {
270
+ body?: never;
271
+ path?: never;
272
+ query?: {
273
+ /**
274
+ * Cursor for pagination
275
+ */
276
+ cursor?: string | null;
277
+ /**
278
+ * Limit for pagination
279
+ */
280
+ limit?: number;
281
+ /**
282
+ * Filter databases by project ID
283
+ */
284
+ projectId?: string;
285
+ };
286
+ url: '/v1/databases';
287
+ };
288
+ type ListDatabasesErrors = {
289
+ /**
290
+ * Missing or invalid authorization token.
291
+ */
292
+ 401: {
293
+ error: {
294
+ code: string;
295
+ message: string;
296
+ hint?: string;
297
+ };
298
+ };
299
+ /**
300
+ * Actor does not have access to the requested databases.
301
+ */
302
+ 403: {
303
+ error: {
304
+ code: string;
305
+ message: string;
306
+ hint?: string;
307
+ };
308
+ };
309
+ };
310
+ type ListDatabasesError = ListDatabasesErrors[keyof ListDatabasesErrors];
311
+ type ListDatabasesResponses = {
312
+ /**
313
+ * Returns the list of databases.
314
+ */
315
+ 200: {
316
+ data: Array<{
317
+ id: string;
318
+ type: 'database';
319
+ url: string;
320
+ name: string;
321
+ status: 'failure' | 'provisioning' | 'ready' | 'recovering';
322
+ createdAt: string;
323
+ isDefault: boolean;
324
+ defaultConnectionId: string | null;
325
+ connections: Array<{
326
+ id: string;
327
+ type: 'connection';
328
+ url: string;
329
+ name: string;
330
+ createdAt: string;
331
+ kind: 'postgres' | 'accelerate';
332
+ endpoints: {
333
+ direct?: {
334
+ host: string;
335
+ port: number;
336
+ };
337
+ pooled?: {
338
+ host: string;
339
+ port: number;
340
+ };
341
+ accelerate?: {
342
+ host: string;
343
+ port: number;
344
+ };
345
+ };
346
+ directConnection?: {
347
+ host: string;
348
+ pass: string;
349
+ user: string;
350
+ } | null;
351
+ database: {
352
+ id: string;
353
+ url: string;
354
+ name: string;
355
+ };
356
+ }>;
357
+ project: {
358
+ id: string;
359
+ url: string;
360
+ name: string;
361
+ };
362
+ region: {
363
+ id: string;
364
+ name: string;
365
+ } | null;
366
+ }>;
367
+ pagination: {
368
+ /**
369
+ * Next cursor to continue pagination
370
+ */
371
+ nextCursor: string | null;
372
+ /**
373
+ * Whether there are more items to paginate
374
+ */
375
+ hasMore: boolean;
376
+ };
377
+ };
378
+ };
379
+ type ListDatabasesResponse = ListDatabasesResponses[keyof ListDatabasesResponses];
380
+ type CreateDatabaseData = {
381
+ body?: {
382
+ /**
383
+ * ID of the project to create the database in
384
+ */
385
+ projectId: string;
386
+ /**
387
+ * Region for the database
388
+ */
389
+ region?: string;
390
+ /**
391
+ * Display name for the database
392
+ */
393
+ name?: string;
394
+ /**
395
+ * Whether this is the default database
396
+ */
397
+ isDefault?: boolean;
398
+ };
399
+ path?: never;
400
+ query?: never;
401
+ url: '/v1/databases';
402
+ };
403
+ type CreateDatabaseErrors = {
404
+ /**
405
+ * Invalid request parameters.
406
+ */
407
+ 400: {
408
+ error: {
409
+ code: string;
410
+ message: string;
411
+ hint?: string;
412
+ };
413
+ };
414
+ /**
415
+ * Missing or invalid authorization token.
416
+ */
417
+ 401: {
418
+ error: {
419
+ code: string;
420
+ message: string;
421
+ hint?: string;
422
+ };
423
+ };
424
+ /**
425
+ * Actor does not have access to the specified project.
426
+ */
427
+ 403: {
428
+ error: {
429
+ code: string;
430
+ message: string;
431
+ hint?: string;
432
+ };
433
+ };
434
+ /**
435
+ * Project not found.
436
+ */
437
+ 404: {
438
+ error: {
439
+ code: string;
440
+ message: string;
441
+ hint?: string;
442
+ };
443
+ };
444
+ };
445
+ type CreateDatabaseError = CreateDatabaseErrors[keyof CreateDatabaseErrors];
446
+ type CreateDatabaseResponses = {
447
+ /**
448
+ * Created a new database.
449
+ */
450
+ 201: {
451
+ data: {
452
+ id: string;
453
+ type: 'database';
454
+ url: string;
455
+ name: string;
456
+ status: 'failure' | 'provisioning' | 'ready' | 'recovering';
457
+ createdAt: string;
458
+ isDefault: boolean;
459
+ defaultConnectionId: string | null;
460
+ connections: Array<{
461
+ id: string;
462
+ type: 'connection';
463
+ url: string;
464
+ name: string;
465
+ createdAt: string;
466
+ kind: 'postgres' | 'accelerate';
467
+ endpoints: {
468
+ direct?: {
469
+ host: string;
470
+ port: number;
471
+ };
472
+ pooled?: {
473
+ host: string;
474
+ port: number;
475
+ };
476
+ accelerate?: {
477
+ host: string;
478
+ port: number;
479
+ };
480
+ };
481
+ directConnection?: {
482
+ host: string;
483
+ pass: string;
484
+ user: string;
485
+ } | null;
486
+ database: {
487
+ id: string;
488
+ url: string;
489
+ name: string;
490
+ };
491
+ }>;
492
+ project: {
493
+ id: string;
494
+ url: string;
495
+ name: string;
496
+ };
497
+ region: {
498
+ id: string;
499
+ name: string;
500
+ } | null;
501
+ };
502
+ };
503
+ };
504
+ type CreateDatabaseResponse = CreateDatabaseResponses[keyof CreateDatabaseResponses];
505
+ type DeleteDatabaseData = {
506
+ body?: never;
507
+ path: {
508
+ databaseId: string;
509
+ };
510
+ query?: never;
511
+ url: '/v1/databases/{databaseId}';
512
+ };
513
+ type DeleteDatabaseErrors = {
514
+ /**
515
+ * Missing or invalid authorization token.
516
+ */
517
+ 401: {
518
+ error: {
519
+ code: string;
520
+ message: string;
521
+ hint?: string;
522
+ };
523
+ };
524
+ /**
525
+ * Cannot delete the default environment.
526
+ */
527
+ 403: {
528
+ error: {
529
+ code: string;
530
+ message: string;
531
+ hint?: string;
532
+ };
533
+ };
534
+ /**
535
+ * Database with the given ID was not found.
536
+ */
537
+ 404: {
538
+ error: {
539
+ code: string;
540
+ message: string;
541
+ hint?: string;
542
+ };
543
+ };
544
+ };
545
+ type DeleteDatabaseError = DeleteDatabaseErrors[keyof DeleteDatabaseErrors];
546
+ type DeleteDatabaseResponses = {
547
+ /**
548
+ * Deleted the database successfully.
549
+ */
550
+ 204: void;
551
+ };
552
+ type DeleteDatabaseResponse = DeleteDatabaseResponses[keyof DeleteDatabaseResponses];
553
+ type GetDatabaseData = {
554
+ body?: never;
555
+ path: {
556
+ databaseId: string;
557
+ };
558
+ query?: never;
559
+ url: '/v1/databases/{databaseId}';
560
+ };
561
+ type GetDatabaseErrors = {
562
+ /**
563
+ * Missing or invalid authorization token.
564
+ */
565
+ 401: {
566
+ error: {
567
+ code: string;
568
+ message: string;
569
+ hint?: string;
570
+ };
571
+ };
572
+ /**
573
+ * Actor does not have access to the database.
574
+ */
575
+ 403: {
576
+ error: {
577
+ code: string;
578
+ message: string;
579
+ hint?: string;
580
+ };
581
+ };
582
+ /**
583
+ * Database with the given ID was not found.
584
+ */
585
+ 404: {
586
+ error: {
587
+ code: string;
588
+ message: string;
589
+ hint?: string;
590
+ };
591
+ };
592
+ };
593
+ type GetDatabaseError = GetDatabaseErrors[keyof GetDatabaseErrors];
594
+ type GetDatabaseResponses = {
595
+ /**
596
+ * Returned the database with the given ID.
597
+ */
598
+ 200: {
599
+ data: {
600
+ id: string;
601
+ type: 'database';
602
+ url: string;
603
+ name: string;
604
+ status: 'failure' | 'provisioning' | 'ready' | 'recovering';
605
+ createdAt: string;
606
+ isDefault: boolean;
607
+ defaultConnectionId: string | null;
608
+ connections: Array<{
609
+ id: string;
610
+ type: 'connection';
611
+ url: string;
612
+ name: string;
613
+ createdAt: string;
614
+ kind: 'postgres' | 'accelerate';
615
+ endpoints: {
616
+ direct?: {
617
+ host: string;
618
+ port: number;
619
+ };
620
+ pooled?: {
621
+ host: string;
622
+ port: number;
623
+ };
624
+ accelerate?: {
625
+ host: string;
626
+ port: number;
627
+ };
628
+ };
629
+ directConnection?: {
630
+ host: string;
631
+ pass: string;
632
+ user: string;
633
+ } | null;
634
+ database: {
635
+ id: string;
636
+ url: string;
637
+ name: string;
638
+ };
639
+ }>;
640
+ project: {
641
+ id: string;
642
+ url: string;
643
+ name: string;
644
+ };
645
+ region: {
646
+ id: string;
647
+ name: string;
648
+ } | null;
649
+ };
650
+ };
651
+ };
652
+ type GetDatabaseResponse = GetDatabaseResponses[keyof GetDatabaseResponses];
653
+ type UpdateDatabaseData = {
654
+ body?: {
655
+ /**
656
+ * New display name for the database
657
+ */
658
+ name?: string;
659
+ };
660
+ path: {
661
+ databaseId: string;
662
+ };
663
+ query?: never;
664
+ url: '/v1/databases/{databaseId}';
665
+ };
666
+ type UpdateDatabaseErrors = {
667
+ /**
668
+ * Missing or invalid authorization token.
669
+ */
670
+ 401: {
671
+ error: {
672
+ code: string;
673
+ message: string;
674
+ hint?: string;
675
+ };
676
+ };
677
+ /**
678
+ * Actor does not have access to the database.
679
+ */
680
+ 403: {
681
+ error: {
682
+ code: string;
683
+ message: string;
684
+ hint?: string;
685
+ };
686
+ };
687
+ /**
688
+ * Database with the given ID was not found.
689
+ */
690
+ 404: {
691
+ error: {
692
+ code: string;
693
+ message: string;
694
+ hint?: string;
695
+ };
696
+ };
697
+ };
698
+ type UpdateDatabaseError = UpdateDatabaseErrors[keyof UpdateDatabaseErrors];
699
+ type UpdateDatabaseResponses = {
700
+ /**
701
+ * Updated the database.
702
+ */
703
+ 200: {
704
+ data: {
705
+ id: string;
706
+ type: 'database';
707
+ url: string;
708
+ name: string;
709
+ status: 'failure' | 'provisioning' | 'ready' | 'recovering';
710
+ createdAt: string;
711
+ isDefault: boolean;
712
+ defaultConnectionId: string | null;
713
+ connections: Array<{
714
+ id: string;
715
+ type: 'connection';
716
+ url: string;
717
+ name: string;
718
+ createdAt: string;
719
+ kind: 'postgres' | 'accelerate';
720
+ endpoints: {
721
+ direct?: {
722
+ host: string;
723
+ port: number;
724
+ };
725
+ pooled?: {
726
+ host: string;
727
+ port: number;
728
+ };
729
+ accelerate?: {
730
+ host: string;
731
+ port: number;
732
+ };
733
+ };
734
+ directConnection?: {
735
+ host: string;
736
+ pass: string;
737
+ user: string;
738
+ } | null;
739
+ database: {
740
+ id: string;
741
+ url: string;
742
+ name: string;
743
+ };
744
+ }>;
745
+ project: {
746
+ id: string;
747
+ url: string;
748
+ name: string;
749
+ };
750
+ region: {
751
+ id: string;
752
+ name: string;
753
+ } | null;
754
+ };
755
+ };
756
+ };
757
+ type UpdateDatabaseResponse = UpdateDatabaseResponses[keyof UpdateDatabaseResponses];
758
+ type ListDatabaseConnectionsData = {
759
+ body?: never;
760
+ path: {
761
+ databaseId: string;
762
+ };
763
+ query?: {
764
+ /**
765
+ * Cursor for pagination
766
+ */
767
+ cursor?: string | null;
768
+ /**
769
+ * Limit for pagination
770
+ */
771
+ limit?: number;
772
+ };
773
+ url: '/v1/databases/{databaseId}/connections';
774
+ };
775
+ type ListDatabaseConnectionsErrors = {
776
+ /**
777
+ * Missing or invalid authorization token.
778
+ */
779
+ 401: {
780
+ error: {
781
+ code: string;
782
+ message: string;
783
+ hint?: string;
784
+ };
785
+ };
786
+ };
787
+ type ListDatabaseConnectionsError = ListDatabaseConnectionsErrors[keyof ListDatabaseConnectionsErrors];
788
+ type ListDatabaseConnectionsResponses = {
789
+ /**
790
+ * Returned all connections for the given database.
791
+ */
792
+ 200: {
793
+ data: Array<{
794
+ id: string;
795
+ type: 'connection';
796
+ url: string;
797
+ name: string;
798
+ createdAt: string;
799
+ kind: 'postgres' | 'accelerate';
800
+ endpoints: {
801
+ direct?: {
802
+ host: string;
803
+ port: number;
804
+ };
805
+ pooled?: {
806
+ host: string;
807
+ port: number;
808
+ };
809
+ accelerate?: {
810
+ host: string;
811
+ port: number;
812
+ };
813
+ };
814
+ directConnection?: {
815
+ host: string;
816
+ pass: string;
817
+ user: string;
818
+ } | null;
819
+ database: {
820
+ id: string;
821
+ url: string;
822
+ name: string;
823
+ };
824
+ }>;
825
+ pagination: {
826
+ /**
827
+ * Next cursor to continue pagination
828
+ */
829
+ nextCursor: string | null;
830
+ /**
831
+ * Whether there are more items to paginate
832
+ */
833
+ hasMore: boolean;
834
+ };
835
+ };
836
+ };
837
+ type ListDatabaseConnectionsResponse = ListDatabaseConnectionsResponses[keyof ListDatabaseConnectionsResponses];
838
+ type CreateDatabaseConnectionStringData = {
839
+ body?: {
840
+ name: string;
841
+ };
842
+ path: {
843
+ databaseId: string;
844
+ };
845
+ query?: never;
846
+ url: '/v1/databases/{databaseId}/connections';
847
+ };
848
+ type CreateDatabaseConnectionStringErrors = {
849
+ /**
850
+ * Missing or invalid authorization token.
851
+ */
852
+ 401: {
853
+ error: {
854
+ code: string;
855
+ message: string;
856
+ hint?: string;
857
+ };
858
+ };
859
+ /**
860
+ * Database with the given ID was not found.
861
+ */
862
+ 404: {
863
+ error: {
864
+ code: string;
865
+ message: string;
866
+ hint?: string;
867
+ };
868
+ };
869
+ };
870
+ type CreateDatabaseConnectionStringError = CreateDatabaseConnectionStringErrors[keyof CreateDatabaseConnectionStringErrors];
871
+ type CreateDatabaseConnectionStringResponses = {
872
+ /**
873
+ * Created a new connection string for the database.
874
+ */
875
+ 200: {
876
+ data: {
877
+ id: string;
878
+ type: 'connection';
879
+ url: string;
880
+ name: string;
881
+ createdAt: string;
882
+ kind: 'postgres' | 'accelerate';
883
+ endpoints: {
884
+ direct?: {
885
+ host: string;
886
+ port: number;
887
+ connectionString: string;
888
+ };
889
+ pooled?: {
890
+ host: string;
891
+ port: number;
892
+ connectionString: string;
893
+ };
894
+ accelerate?: {
895
+ host: string;
896
+ port: number;
897
+ connectionString: string;
898
+ };
899
+ };
900
+ connectionString: string;
901
+ directConnection?: {
902
+ host: string;
903
+ pass: string;
904
+ user: string;
905
+ } | null;
906
+ database: {
907
+ id: string;
908
+ url: string;
909
+ name: string;
910
+ };
911
+ host: string | null;
912
+ pass: string | null;
913
+ user: string | null;
914
+ };
915
+ };
916
+ };
917
+ type CreateDatabaseConnectionStringResponse = CreateDatabaseConnectionStringResponses[keyof CreateDatabaseConnectionStringResponses];
918
+ type ListBackupsData = {
919
+ body?: never;
920
+ path: {
921
+ databaseId: string;
922
+ };
923
+ query?: {
924
+ limit?: number;
925
+ };
926
+ url: '/v1/databases/{databaseId}/backups';
927
+ };
928
+ type ListBackupsErrors = {
929
+ /**
930
+ * Missing or invalid authorization token.
931
+ */
932
+ 401: {
933
+ error: {
934
+ code: string;
935
+ message: string;
936
+ hint?: string;
937
+ };
938
+ };
939
+ /**
940
+ * Database with the given ID was not found.
941
+ */
942
+ 404: {
943
+ error: {
944
+ code: string;
945
+ message: string;
946
+ hint?: string;
947
+ };
948
+ };
949
+ /**
950
+ * Remote database backups are not supported
951
+ */
952
+ 422: {
953
+ error: {
954
+ code: string;
955
+ message: string;
956
+ hint?: string;
957
+ };
958
+ };
959
+ };
960
+ type ListBackupsError = ListBackupsErrors[keyof ListBackupsErrors];
961
+ type ListBackupsResponses = {
962
+ /**
963
+ * Returned backups for the given database.
964
+ */
965
+ 200: {
966
+ data: Array<{
967
+ /**
968
+ * The unique identifier for this backup
969
+ */
970
+ id: string;
971
+ /**
972
+ * Type of backup
973
+ */
974
+ backupType: 'full' | 'incremental';
975
+ /**
976
+ * Timestamp when the backup was created
977
+ */
978
+ createdAt: string;
979
+ /**
980
+ * Total file size (in bytes) of gzipped backup files
981
+ */
982
+ size?: number;
983
+ /**
984
+ * Status of backup instance
985
+ */
986
+ status: 'running' | 'completed' | 'failed' | 'unknown';
987
+ type?: 'backup';
988
+ }>;
989
+ meta: {
990
+ backupRetentionDays: number;
991
+ };
992
+ pagination: {
993
+ hasMore: boolean;
994
+ limit: number | null;
995
+ };
996
+ };
997
+ };
998
+ type ListBackupsResponse = ListBackupsResponses[keyof ListBackupsResponses];
999
+ type GetDatabaseUsageMetricsData = {
1000
+ body?: never;
1001
+ path: {
1002
+ databaseId: string;
1003
+ };
1004
+ query?: {
1005
+ /**
1006
+ * Start date for metrics query. Defaults to start of current month if not provided.
1007
+ */
1008
+ startDate?: string;
1009
+ /**
1010
+ * 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.
1011
+ */
1012
+ endDate?: string;
1013
+ };
1014
+ url: '/v1/databases/{databaseId}/usage';
1015
+ };
1016
+ type GetDatabaseUsageMetricsErrors = {
1017
+ /**
1018
+ * Invalid request parameters
1019
+ */
1020
+ 400: {
1021
+ error: {
1022
+ code: string;
1023
+ message: string;
1024
+ hint?: string;
1025
+ };
1026
+ };
1027
+ /**
1028
+ * Missing or invalid authorization token.
1029
+ */
1030
+ 401: {
1031
+ error: {
1032
+ code: string;
1033
+ message: string;
1034
+ hint?: string;
1035
+ };
1036
+ };
1037
+ /**
1038
+ * Database with the given ID was not found.
1039
+ */
1040
+ 404: {
1041
+ error: {
1042
+ code: string;
1043
+ message: string;
1044
+ hint?: string;
1045
+ };
1046
+ };
1047
+ /**
1048
+ * Error occurred while fetching metrics
1049
+ */
1050
+ 500: {
1051
+ error: {
1052
+ code: string;
1053
+ message: string;
1054
+ hint?: string;
1055
+ };
1056
+ };
1057
+ };
1058
+ type GetDatabaseUsageMetricsError = GetDatabaseUsageMetricsErrors[keyof GetDatabaseUsageMetricsErrors];
1059
+ type GetDatabaseUsageMetricsResponses = {
1060
+ /**
1061
+ * Returned usage metrics for the given database.
1062
+ */
1063
+ 200: {
1064
+ period: {
1065
+ start: string;
1066
+ end: string;
1067
+ };
1068
+ metrics: {
1069
+ operations: {
1070
+ used: number;
1071
+ unit: 'ops';
1072
+ };
1073
+ storage: {
1074
+ used: number;
1075
+ unit: 'GiB';
1076
+ };
1077
+ };
1078
+ generatedAt: string;
1079
+ };
1080
+ };
1081
+ type GetDatabaseUsageMetricsResponse = GetDatabaseUsageMetricsResponses[keyof GetDatabaseUsageMetricsResponses];
1082
+ type ListProjectsData = {
1083
+ body?: never;
1084
+ path?: never;
1085
+ query?: {
1086
+ /**
1087
+ * Cursor for pagination
1088
+ */
1089
+ cursor?: string | null;
1090
+ /**
1091
+ * Limit for pagination
1092
+ */
1093
+ limit?: number;
1094
+ };
1095
+ url: '/v1/projects';
1096
+ };
1097
+ type ListProjectsErrors = {
1098
+ /**
1099
+ * Missing or invalid authorization token.
1100
+ */
1101
+ 401: {
1102
+ error: {
1103
+ code: string;
1104
+ message: string;
1105
+ hint?: string;
1106
+ };
1107
+ };
1108
+ };
1109
+ type ListProjectsError = ListProjectsErrors[keyof ListProjectsErrors];
1110
+ type ListProjectsResponses = {
1111
+ /**
1112
+ * Returns the list of projects.
1113
+ */
1114
+ 200: {
1115
+ data: Array<{
1116
+ id: string;
1117
+ type: 'project';
1118
+ url: string;
1119
+ name: string;
1120
+ createdAt: string;
1121
+ workspace: {
1122
+ id: string;
1123
+ url: string;
1124
+ name: string;
1125
+ };
1126
+ }>;
1127
+ pagination: {
1128
+ /**
1129
+ * Next cursor to continue pagination
1130
+ */
1131
+ nextCursor: string | null;
1132
+ /**
1133
+ * Whether there are more items to paginate
1134
+ */
1135
+ hasMore: boolean;
1136
+ };
1137
+ };
1138
+ };
1139
+ type ListProjectsResponse = ListProjectsResponses[keyof ListProjectsResponses];
1140
+ type CreateProjectWithPostgresDatabaseData = {
1141
+ body?: {
1142
+ createDatabase?: boolean;
1143
+ name?: string;
1144
+ region?: 'us-east-1' | 'us-west-1' | 'eu-west-3' | 'eu-central-1' | 'ap-northeast-1' | 'ap-southeast-1';
1145
+ };
1146
+ path?: never;
1147
+ query?: never;
1148
+ url: '/v1/projects';
1149
+ };
1150
+ type CreateProjectWithPostgresDatabaseErrors = {
1151
+ /**
1152
+ * Missing or invalid authorization token.
1153
+ */
1154
+ 401: {
1155
+ error: {
1156
+ code: string;
1157
+ message: string;
1158
+ hint?: string;
1159
+ };
1160
+ };
1161
+ };
1162
+ type CreateProjectWithPostgresDatabaseError = CreateProjectWithPostgresDatabaseErrors[keyof CreateProjectWithPostgresDatabaseErrors];
1163
+ type CreateProjectWithPostgresDatabaseResponses = {
1164
+ /**
1165
+ * New project created.
1166
+ */
1167
+ 201: {
1168
+ data: {
1169
+ id: string;
1170
+ type: 'project';
1171
+ url: string;
1172
+ name: string;
1173
+ createdAt: string;
1174
+ workspace: {
1175
+ id: string;
1176
+ url: string;
1177
+ name: string;
1178
+ };
1179
+ database: {
1180
+ id: string;
1181
+ type: 'database';
1182
+ url: string;
1183
+ name: string;
1184
+ status: 'provisioning' | 'ready';
1185
+ createdAt: string;
1186
+ isDefault: boolean;
1187
+ defaultConnectionId: string | null;
1188
+ connections: Array<{
1189
+ id: string;
1190
+ type: 'connection';
1191
+ url: string;
1192
+ name: string;
1193
+ createdAt: string;
1194
+ kind: 'postgres' | 'accelerate';
1195
+ endpoints: {
1196
+ direct?: {
1197
+ host: string;
1198
+ port: number;
1199
+ connectionString?: string;
1200
+ };
1201
+ pooled?: {
1202
+ host: string;
1203
+ port: number;
1204
+ connectionString?: string;
1205
+ };
1206
+ accelerate?: {
1207
+ host: string;
1208
+ port: number;
1209
+ connectionString?: string;
1210
+ };
1211
+ };
1212
+ directConnection?: {
1213
+ host: string;
1214
+ pass: string;
1215
+ user: string;
1216
+ } | null;
1217
+ database: {
1218
+ id: string;
1219
+ url: string;
1220
+ name: string;
1221
+ };
1222
+ }>;
1223
+ region: {
1224
+ id: string;
1225
+ name: string;
1226
+ };
1227
+ apiKeys: Array<{
1228
+ id: string;
1229
+ type: 'connection';
1230
+ url: string;
1231
+ name: string;
1232
+ createdAt: string;
1233
+ kind: 'postgres' | 'accelerate';
1234
+ endpoints: {
1235
+ direct?: {
1236
+ host: string;
1237
+ port: number;
1238
+ };
1239
+ pooled?: {
1240
+ host: string;
1241
+ port: number;
1242
+ };
1243
+ accelerate?: {
1244
+ host: string;
1245
+ port: number;
1246
+ };
1247
+ };
1248
+ connectionString: string;
1249
+ directConnection?: {
1250
+ host: string;
1251
+ pass: string;
1252
+ user: string;
1253
+ } | null;
1254
+ }>;
1255
+ connectionString: string | null;
1256
+ directConnection: {
1257
+ host: string;
1258
+ pass: string;
1259
+ user: string;
1260
+ } | null;
1261
+ } | null;
1262
+ };
1263
+ };
1264
+ };
1265
+ type CreateProjectWithPostgresDatabaseResponse = CreateProjectWithPostgresDatabaseResponses[keyof CreateProjectWithPostgresDatabaseResponses];
1266
+ type DeleteProjectData = {
1267
+ body?: never;
1268
+ path: {
1269
+ id: string;
1270
+ };
1271
+ query?: never;
1272
+ url: '/v1/projects/{id}';
1273
+ };
1274
+ type DeleteProjectErrors = {
1275
+ /**
1276
+ * Project cannot be deleted due to existing dependencies.
1277
+ */
1278
+ 400: {
1279
+ error: {
1280
+ code: string;
1281
+ message: string;
1282
+ hint?: string;
1283
+ };
1284
+ };
1285
+ /**
1286
+ * Unauthorized
1287
+ */
1288
+ 401: {
1289
+ error: {
1290
+ code: string;
1291
+ message: string;
1292
+ hint?: string;
1293
+ };
1294
+ };
1295
+ /**
1296
+ * Project with the specified ID was not found
1297
+ */
1298
+ 404: {
1299
+ error: {
1300
+ code: string;
1301
+ message: string;
1302
+ hint?: string;
1303
+ };
1304
+ };
1305
+ };
1306
+ type DeleteProjectError = DeleteProjectErrors[keyof DeleteProjectErrors];
1307
+ type DeleteProjectResponses = {
1308
+ /**
1309
+ * Project deleted.
1310
+ */
1311
+ 204: void;
1312
+ };
1313
+ type DeleteProjectResponse = DeleteProjectResponses[keyof DeleteProjectResponses];
1314
+ type GetProjectData = {
1315
+ body?: never;
1316
+ path: {
1317
+ id: string;
1318
+ };
1319
+ query?: never;
1320
+ url: '/v1/projects/{id}';
1321
+ };
1322
+ type GetProjectErrors = {
1323
+ /**
1324
+ * Missing or invalid authorization token.
1325
+ */
1326
+ 401: {
1327
+ error: {
1328
+ code: string;
1329
+ message: string;
1330
+ hint?: string;
1331
+ };
1332
+ };
1333
+ /**
1334
+ * Project with the specified ID was not found.
1335
+ */
1336
+ 404: {
1337
+ error: {
1338
+ code: string;
1339
+ message: string;
1340
+ hint?: string;
1341
+ };
1342
+ };
1343
+ };
1344
+ type GetProjectError = GetProjectErrors[keyof GetProjectErrors];
1345
+ type GetProjectResponses = {
1346
+ /**
1347
+ * Project retrieved.
1348
+ */
1349
+ 200: {
1350
+ data: {
1351
+ id: string;
1352
+ type: 'project';
1353
+ url: string;
1354
+ name: string;
1355
+ createdAt: string;
1356
+ workspace: {
1357
+ id: string;
1358
+ url: string;
1359
+ name: string;
1360
+ };
1361
+ };
1362
+ };
1363
+ };
1364
+ type GetProjectResponse = GetProjectResponses[keyof GetProjectResponses];
1365
+ type UpdateProjectData = {
1366
+ body?: {
1367
+ name?: string;
1368
+ settings?: {
1369
+ [key: string]: unknown;
1370
+ };
1371
+ };
1372
+ path: {
1373
+ id: string;
1374
+ };
1375
+ query?: never;
1376
+ url: '/v1/projects/{id}';
1377
+ };
1378
+ type UpdateProjectErrors = {
1379
+ /**
1380
+ * Missing or invalid authorization token.
1381
+ */
1382
+ 401: {
1383
+ error: {
1384
+ code: string;
1385
+ message: string;
1386
+ hint?: string;
1387
+ };
1388
+ };
1389
+ /**
1390
+ * Actor does not have access to the project.
1391
+ */
1392
+ 403: {
1393
+ error: {
1394
+ code: string;
1395
+ message: string;
1396
+ hint?: string;
1397
+ };
1398
+ };
1399
+ /**
1400
+ * Project with the specified ID was not found.
1401
+ */
1402
+ 404: {
1403
+ error: {
1404
+ code: string;
1405
+ message: string;
1406
+ hint?: string;
1407
+ };
1408
+ };
1409
+ /**
1410
+ * Validation failed.
1411
+ */
1412
+ 422: {
1413
+ error: {
1414
+ code: string;
1415
+ message: string;
1416
+ hint?: string;
1417
+ };
1418
+ };
1419
+ };
1420
+ type UpdateProjectError = UpdateProjectErrors[keyof UpdateProjectErrors];
1421
+ type UpdateProjectResponses = {
1422
+ /**
1423
+ * Project updated.
1424
+ */
1425
+ 200: {
1426
+ data: {
1427
+ id: string;
1428
+ type: 'project';
1429
+ url: string;
1430
+ name: string;
1431
+ createdAt: string;
1432
+ workspace: {
1433
+ id: string;
1434
+ url: string;
1435
+ name: string;
1436
+ };
1437
+ };
1438
+ };
1439
+ };
1440
+ type UpdateProjectResponse = UpdateProjectResponses[keyof UpdateProjectResponses];
1441
+ type TransferProjectData = {
1442
+ body?: {
1443
+ recipientAccessToken: string;
1444
+ };
1445
+ path: {
1446
+ id: string;
1447
+ };
1448
+ query?: never;
1449
+ url: '/v1/projects/{id}/transfer';
1450
+ };
1451
+ type TransferProjectErrors = {
1452
+ /**
1453
+ * Missing or invalid authorization token.
1454
+ */
1455
+ 401: {
1456
+ error: {
1457
+ code: string;
1458
+ message: string;
1459
+ hint?: string;
1460
+ };
1461
+ };
1462
+ /**
1463
+ * Project with the given ID was not found.
1464
+ */
1465
+ 404: {
1466
+ error: {
1467
+ code: string;
1468
+ message: string;
1469
+ hint?: string;
1470
+ };
1471
+ };
1472
+ };
1473
+ type TransferProjectError = TransferProjectErrors[keyof TransferProjectErrors];
1474
+ type TransferProjectResponses = {
1475
+ /**
1476
+ * Project transferred
1477
+ */
1478
+ 204: void;
1479
+ };
1480
+ type TransferProjectResponse = TransferProjectResponses[keyof TransferProjectResponses];
1481
+ type ListDatabases2Data = {
1482
+ body?: never;
1483
+ path: {
1484
+ projectId: string;
1485
+ };
1486
+ query?: {
1487
+ /**
1488
+ * Cursor for pagination
1489
+ */
1490
+ cursor?: string | null;
1491
+ /**
1492
+ * Limit for pagination
1493
+ */
1494
+ limit?: number;
1495
+ };
1496
+ url: '/v1/projects/{projectId}/databases';
1497
+ };
1498
+ type ListDatabases2Errors = {
1499
+ /**
1500
+ * Missing or invalid authorization token.
1501
+ */
1502
+ 401: {
1503
+ error: {
1504
+ code: string;
1505
+ message: string;
1506
+ hint?: string;
1507
+ };
1508
+ };
1509
+ /**
1510
+ * Project with the given ID was not found.
1511
+ */
1512
+ 404: {
1513
+ error: {
1514
+ code: string;
1515
+ message: string;
1516
+ hint?: string;
1517
+ };
1518
+ };
1519
+ };
1520
+ type ListDatabases2Error = ListDatabases2Errors[keyof ListDatabases2Errors];
1521
+ type ListDatabases2Responses = {
1522
+ /**
1523
+ * Returned the databases for the given project ID.
1524
+ */
1525
+ 200: {
1526
+ data: Array<{
1527
+ id: string;
1528
+ type: 'database';
1529
+ url: string;
1530
+ name: string;
1531
+ status: 'failure' | 'provisioning' | 'ready' | 'recovering';
1532
+ createdAt: string;
1533
+ isDefault: boolean;
1534
+ defaultConnectionId: string | null;
1535
+ connections: Array<{
1536
+ id: string;
1537
+ type: 'connection';
1538
+ url: string;
1539
+ name: string;
1540
+ createdAt: string;
1541
+ kind: 'postgres' | 'accelerate';
1542
+ endpoints: {
1543
+ direct?: {
1544
+ host: string;
1545
+ port: number;
1546
+ };
1547
+ pooled?: {
1548
+ host: string;
1549
+ port: number;
1550
+ };
1551
+ accelerate?: {
1552
+ host: string;
1553
+ port: number;
1554
+ };
1555
+ };
1556
+ directConnection?: {
1557
+ host: string;
1558
+ pass: string;
1559
+ user: string;
1560
+ } | null;
1561
+ database: {
1562
+ id: string;
1563
+ url: string;
1564
+ name: string;
1565
+ };
1566
+ }>;
1567
+ project: {
1568
+ id: string;
1569
+ url: string;
1570
+ name: string;
1571
+ };
1572
+ region: {
1573
+ id: string;
1574
+ name: string;
1575
+ } | null;
1576
+ }>;
1577
+ pagination: {
1578
+ /**
1579
+ * Next cursor to continue pagination
1580
+ */
1581
+ nextCursor: string | null;
1582
+ /**
1583
+ * Whether there are more items to paginate
1584
+ */
1585
+ hasMore: boolean;
1586
+ };
1587
+ };
1588
+ };
1589
+ type ListDatabases2Response = ListDatabases2Responses[keyof ListDatabases2Responses];
1590
+ type CreateDatabase2Data = {
1591
+ body?: {
1592
+ region?: 'us-east-1' | 'us-west-1' | 'eu-west-3' | 'eu-central-1' | 'ap-northeast-1' | 'ap-southeast-1';
1593
+ name?: string;
1594
+ isDefault?: boolean;
1595
+ fromDatabase?: {
1596
+ id: string;
1597
+ /**
1598
+ * The unique identifier for this backup
1599
+ */
1600
+ backupId?: string;
1601
+ };
1602
+ };
1603
+ path: {
1604
+ projectId: string;
1605
+ };
1606
+ query?: never;
1607
+ url: '/v1/projects/{projectId}/databases';
1608
+ };
1609
+ type CreateDatabase2Errors = {
1610
+ /**
1611
+ * The request is invalid due to missing or invalid parameters.
1612
+ */
1613
+ 400: {
1614
+ error: {
1615
+ code: string;
1616
+ message: string;
1617
+ hint?: string;
1618
+ };
1619
+ };
1620
+ /**
1621
+ * Missing or invalid authorization token.
1622
+ */
1623
+ 401: {
1624
+ error: {
1625
+ code: string;
1626
+ message: string;
1627
+ hint?: string;
1628
+ };
1629
+ };
1630
+ /**
1631
+ * Project does not belong to the service token’s workspace.
1632
+ */
1633
+ 403: {
1634
+ error: {
1635
+ code: string;
1636
+ message: string;
1637
+ hint?: string;
1638
+ };
1639
+ };
1640
+ };
1641
+ type CreateDatabase2Error = CreateDatabase2Errors[keyof CreateDatabase2Errors];
1642
+ type CreateDatabase2Responses = {
1643
+ /**
1644
+ * Created a new database for the project.
1645
+ */
1646
+ 201: {
1647
+ data: {
1648
+ id: string;
1649
+ type: 'database';
1650
+ url: string;
1651
+ name: string;
1652
+ status: 'provisioning' | 'ready';
1653
+ createdAt: string;
1654
+ isDefault: boolean;
1655
+ defaultConnectionId: string | null;
1656
+ connections: Array<{
1657
+ id: string;
1658
+ type: 'connection';
1659
+ url: string;
1660
+ name: string;
1661
+ createdAt: string;
1662
+ kind: 'postgres' | 'accelerate';
1663
+ endpoints: {
1664
+ direct?: {
1665
+ host: string;
1666
+ port: number;
1667
+ connectionString?: string;
1668
+ };
1669
+ pooled?: {
1670
+ host: string;
1671
+ port: number;
1672
+ connectionString?: string;
1673
+ };
1674
+ accelerate?: {
1675
+ host: string;
1676
+ port: number;
1677
+ connectionString?: string;
1678
+ };
1679
+ };
1680
+ directConnection?: {
1681
+ host: string;
1682
+ pass: string;
1683
+ user: string;
1684
+ } | null;
1685
+ database: {
1686
+ id: string;
1687
+ url: string;
1688
+ name: string;
1689
+ };
1690
+ }>;
1691
+ project: {
1692
+ id: string;
1693
+ url: string;
1694
+ name: string;
1695
+ };
1696
+ region: {
1697
+ id: string;
1698
+ name: string;
1699
+ };
1700
+ apiKeys: Array<{
1701
+ id: string;
1702
+ type: 'connection';
1703
+ url: string;
1704
+ name: string;
1705
+ createdAt: string;
1706
+ kind: 'postgres' | 'accelerate';
1707
+ endpoints: {
1708
+ direct?: {
1709
+ host: string;
1710
+ port: number;
1711
+ };
1712
+ pooled?: {
1713
+ host: string;
1714
+ port: number;
1715
+ };
1716
+ accelerate?: {
1717
+ host: string;
1718
+ port: number;
1719
+ };
1720
+ };
1721
+ connectionString: string;
1722
+ directConnection?: {
1723
+ host: string;
1724
+ pass: string;
1725
+ user: string;
1726
+ } | null;
1727
+ }>;
1728
+ connectionString: string | null;
1729
+ directConnection: {
1730
+ host: string;
1731
+ pass: string;
1732
+ user: string;
1733
+ } | null;
1734
+ };
1735
+ };
1736
+ };
1737
+ type CreateDatabase2Response = CreateDatabase2Responses[keyof CreateDatabase2Responses];
1738
+ type ListIntegrationsData = {
1739
+ body?: never;
1740
+ path?: never;
1741
+ query: {
1742
+ /**
1743
+ * Cursor for pagination
1744
+ */
1745
+ cursor?: string | null;
1746
+ /**
1747
+ * Limit for pagination
1748
+ */
1749
+ limit?: number;
1750
+ workspaceId: string;
1751
+ };
1752
+ url: '/v1/integrations';
1753
+ };
1754
+ type ListIntegrationsErrors = {
1755
+ /**
1756
+ * Missing or invalid authorization token.
1757
+ */
1758
+ 401: {
1759
+ error: {
1760
+ code: string;
1761
+ message: string;
1762
+ hint?: string;
1763
+ };
1764
+ };
1765
+ };
1766
+ type ListIntegrationsError = ListIntegrationsErrors[keyof ListIntegrationsErrors];
1767
+ type ListIntegrationsResponses = {
1768
+ /**
1769
+ * Returned the integrations for the given workspace.
1770
+ */
1771
+ 200: {
1772
+ data: Array<{
1773
+ id: string;
1774
+ url: string;
1775
+ createdAt: string;
1776
+ scopes: Array<string>;
1777
+ client: {
1778
+ id: string;
1779
+ name: string;
1780
+ createdAt: string;
1781
+ };
1782
+ createdByUser: {
1783
+ id: string;
1784
+ email: string;
1785
+ displayName: string | null;
1786
+ };
1787
+ }>;
1788
+ pagination: {
1789
+ /**
1790
+ * Next cursor to continue pagination
1791
+ */
1792
+ nextCursor: string | null;
1793
+ /**
1794
+ * Whether there are more items to paginate
1795
+ */
1796
+ hasMore: boolean;
1797
+ };
1798
+ };
1799
+ };
1800
+ type ListIntegrationsResponse = ListIntegrationsResponses[keyof ListIntegrationsResponses];
1801
+ type DeleteIntegrationData = {
1802
+ body?: never;
1803
+ path: {
1804
+ id: string;
1805
+ };
1806
+ query?: never;
1807
+ url: '/v1/integrations/{id}';
1808
+ };
1809
+ type DeleteIntegrationErrors = {
1810
+ /**
1811
+ * Missing or invalid authorization token.
1812
+ */
1813
+ 401: {
1814
+ error: {
1815
+ code: string;
1816
+ message: string;
1817
+ hint?: string;
1818
+ };
1819
+ };
1820
+ /**
1821
+ * Integration with the given ID was not found.
1822
+ */
1823
+ 404: {
1824
+ error: {
1825
+ code: string;
1826
+ message: string;
1827
+ hint?: string;
1828
+ };
1829
+ };
1830
+ };
1831
+ type DeleteIntegrationError = DeleteIntegrationErrors[keyof DeleteIntegrationErrors];
1832
+ type DeleteIntegrationResponses = {
1833
+ /**
1834
+ * Revoked the integration tokens.
1835
+ */
1836
+ 204: void;
1837
+ };
1838
+ type DeleteIntegrationResponse = DeleteIntegrationResponses[keyof DeleteIntegrationResponses];
1839
+ type GetIntegrationByIdData = {
1840
+ body?: never;
1841
+ path: {
1842
+ id: string;
1843
+ };
1844
+ query?: never;
1845
+ url: '/v1/integrations/{id}';
1846
+ };
1847
+ type GetIntegrationByIdErrors = {
1848
+ /**
1849
+ * Missing or invalid authorization token.
1850
+ */
1851
+ 401: {
1852
+ error: {
1853
+ code: string;
1854
+ message: string;
1855
+ hint?: string;
1856
+ };
1857
+ };
1858
+ /**
1859
+ * Integration with the given ID was not found.
1860
+ */
1861
+ 404: {
1862
+ error: {
1863
+ code: string;
1864
+ message: string;
1865
+ hint?: string;
1866
+ };
1867
+ };
1868
+ };
1869
+ type GetIntegrationByIdError = GetIntegrationByIdErrors[keyof GetIntegrationByIdErrors];
1870
+ type GetIntegrationByIdResponses = {
1871
+ /**
1872
+ * Returned the integration.
1873
+ */
1874
+ 200: {
1875
+ data: {
1876
+ id: string;
1877
+ url: string;
1878
+ createdAt: string;
1879
+ scopes: Array<string>;
1880
+ client: {
1881
+ id: string;
1882
+ name: string;
1883
+ createdAt: string;
1884
+ };
1885
+ createdByUser: {
1886
+ id: string;
1887
+ email: string;
1888
+ displayName: string | null;
1889
+ };
1890
+ };
1891
+ };
1892
+ };
1893
+ type GetIntegrationByIdResponse = GetIntegrationByIdResponses[keyof GetIntegrationByIdResponses];
1894
+ type ListIntegrations2Data = {
1895
+ body?: never;
1896
+ path: {
1897
+ workspaceId: string;
1898
+ };
1899
+ query?: {
1900
+ /**
1901
+ * Cursor for pagination
1902
+ */
1903
+ cursor?: string | null;
1904
+ /**
1905
+ * Limit for pagination
1906
+ */
1907
+ limit?: number;
1908
+ };
1909
+ url: '/v1/workspaces/{workspaceId}/integrations';
1910
+ };
1911
+ type ListIntegrations2Errors = {
1912
+ /**
1913
+ * Missing or invalid authorization token.
1914
+ */
1915
+ 401: {
1916
+ error: {
1917
+ code: string;
1918
+ message: string;
1919
+ hint?: string;
1920
+ };
1921
+ };
1922
+ /**
1923
+ * Workspace with the given ID was not found.
1924
+ */
1925
+ 404: {
1926
+ error: {
1927
+ code: string;
1928
+ message: string;
1929
+ hint?: string;
1930
+ };
1931
+ };
1932
+ };
1933
+ type ListIntegrations2Error = ListIntegrations2Errors[keyof ListIntegrations2Errors];
1934
+ type ListIntegrations2Responses = {
1935
+ /**
1936
+ * Returned the integrations for the given workspace ID.
1937
+ */
1938
+ 200: {
1939
+ data: Array<{
1940
+ id: string;
1941
+ url: string;
1942
+ createdAt: string;
1943
+ scopes: Array<string>;
1944
+ client: {
1945
+ id: string;
1946
+ name: string;
1947
+ createdAt: string;
1948
+ };
1949
+ createdByUser: {
1950
+ id: string;
1951
+ email: string;
1952
+ displayName: string | null;
1953
+ };
1954
+ }>;
1955
+ pagination: {
1956
+ /**
1957
+ * Next cursor to continue pagination
1958
+ */
1959
+ nextCursor: string | null;
1960
+ /**
1961
+ * Whether there are more items to paginate
1962
+ */
1963
+ hasMore: boolean;
1964
+ };
1965
+ };
1966
+ };
1967
+ type ListIntegrations2Response = ListIntegrations2Responses[keyof ListIntegrations2Responses];
1968
+ type RevokeIntegrationTokensData = {
1969
+ body?: never;
1970
+ path: {
1971
+ clientId: string;
1972
+ workspaceId: string;
1973
+ };
1974
+ query?: never;
1975
+ url: '/v1/workspaces/{workspaceId}/integrations/{clientId}';
1976
+ };
1977
+ type RevokeIntegrationTokensErrors = {
1978
+ /**
1979
+ * Missing or invalid authorization token.
1980
+ */
1981
+ 401: {
1982
+ error: {
1983
+ code: string;
1984
+ message: string;
1985
+ hint?: string;
1986
+ };
1987
+ };
1988
+ /**
1989
+ * Integration with the given client ID was not found.
1990
+ */
1991
+ 404: {
1992
+ error: {
1993
+ code: string;
1994
+ message: string;
1995
+ hint?: string;
1996
+ };
1997
+ };
1998
+ };
1999
+ type RevokeIntegrationTokensError = RevokeIntegrationTokensErrors[keyof RevokeIntegrationTokensErrors];
2000
+ type RevokeIntegrationTokensResponses = {
2001
+ /**
2002
+ * Revoked the integration tokens.
2003
+ */
2004
+ 204: void;
2005
+ };
2006
+ type RevokeIntegrationTokensResponse = RevokeIntegrationTokensResponses[keyof RevokeIntegrationTokensResponses];
2007
+ type GetAllRegionsData = {
2008
+ body?: never;
2009
+ path?: never;
2010
+ query?: {
2011
+ product?: 'postgres' | 'accelerate';
2012
+ };
2013
+ url: '/v1/regions';
2014
+ };
2015
+ type GetAllRegionsErrors = {
2016
+ /**
2017
+ * Missing or invalid authorization token.
2018
+ */
2019
+ 401: {
2020
+ error: {
2021
+ code: string;
2022
+ message: string;
2023
+ hint?: string;
2024
+ };
2025
+ };
2026
+ };
2027
+ type GetAllRegionsError = GetAllRegionsErrors[keyof GetAllRegionsErrors];
2028
+ type GetAllRegionsResponses = {
2029
+ /**
2030
+ * Returns all available regions.
2031
+ */
2032
+ 200: {
2033
+ data: Array<{
2034
+ id: string;
2035
+ type: 'region';
2036
+ name: string;
2037
+ product: 'postgres' | 'accelerate';
2038
+ status?: 'available' | 'unavailable';
2039
+ }>;
2040
+ };
2041
+ };
2042
+ type GetAllRegionsResponse = GetAllRegionsResponses[keyof GetAllRegionsResponses];
2043
+ type GetPrismaPostgresRegionsData = {
2044
+ body?: never;
2045
+ path?: never;
2046
+ query?: never;
2047
+ url: '/v1/regions/postgres';
2048
+ };
2049
+ type GetPrismaPostgresRegionsErrors = {
2050
+ /**
2051
+ * Missing or invalid authorization token.
2052
+ */
2053
+ 401: {
2054
+ error: {
2055
+ code: string;
2056
+ message: string;
2057
+ hint?: string;
2058
+ };
2059
+ };
2060
+ };
2061
+ type GetPrismaPostgresRegionsError = GetPrismaPostgresRegionsErrors[keyof GetPrismaPostgresRegionsErrors];
2062
+ type GetPrismaPostgresRegionsResponses = {
2063
+ /**
2064
+ * Returns all available regions for Prisma Postgres.
2065
+ */
2066
+ 200: {
2067
+ data: Array<{
2068
+ id: string;
2069
+ type: 'region';
2070
+ name: string;
2071
+ status: 'available' | 'unavailable';
2072
+ }>;
2073
+ };
2074
+ };
2075
+ type GetPrismaPostgresRegionsResponse = GetPrismaPostgresRegionsResponses[keyof GetPrismaPostgresRegionsResponses];
2076
+ type GetPrismaAccelerateRegionsData = {
2077
+ body?: never;
2078
+ path?: never;
2079
+ query?: never;
2080
+ url: '/v1/regions/accelerate';
2081
+ };
2082
+ type GetPrismaAccelerateRegionsErrors = {
2083
+ /**
2084
+ * Missing or invalid authorization token.
2085
+ */
2086
+ 401: {
2087
+ error: {
2088
+ code: string;
2089
+ message: string;
2090
+ hint?: string;
2091
+ };
2092
+ };
2093
+ };
2094
+ type GetPrismaAccelerateRegionsError = GetPrismaAccelerateRegionsErrors[keyof GetPrismaAccelerateRegionsErrors];
2095
+ type GetPrismaAccelerateRegionsResponses = {
2096
+ /**
2097
+ * Returns all available regions for Prisma Accelerate.
2098
+ */
2099
+ 200: {
2100
+ data: Array<{
2101
+ id: string;
2102
+ type: 'region';
2103
+ name: string;
2104
+ }>;
2105
+ };
2106
+ };
2107
+ type GetPrismaAccelerateRegionsResponse = GetPrismaAccelerateRegionsResponses[keyof GetPrismaAccelerateRegionsResponses];
2108
+ type ListWorkspacesData = {
2109
+ body?: never;
2110
+ path?: never;
2111
+ query?: {
2112
+ /**
2113
+ * Cursor for pagination
2114
+ */
2115
+ cursor?: string | null;
2116
+ /**
2117
+ * Limit for pagination
2118
+ */
2119
+ limit?: number;
2120
+ };
2121
+ url: '/v1/workspaces';
2122
+ };
2123
+ type ListWorkspacesErrors = {
2124
+ /**
2125
+ * Missing or invalid authorization token.
2126
+ */
2127
+ 401: {
2128
+ error: {
2129
+ code: string;
2130
+ message: string;
2131
+ hint?: string;
2132
+ };
2133
+ };
2134
+ };
2135
+ type ListWorkspacesError = ListWorkspacesErrors[keyof ListWorkspacesErrors];
2136
+ type ListWorkspacesResponses = {
2137
+ /**
2138
+ * Returns the list of workspaces the current token can access.
2139
+ */
2140
+ 200: {
2141
+ data: Array<{
2142
+ id: string;
2143
+ type: 'workspace';
2144
+ url: string;
2145
+ name: string;
2146
+ createdAt: string;
2147
+ }>;
2148
+ pagination: {
2149
+ /**
2150
+ * Next cursor to continue pagination
2151
+ */
2152
+ nextCursor: string | null;
2153
+ /**
2154
+ * Whether there are more items to paginate
2155
+ */
2156
+ hasMore: boolean;
2157
+ };
2158
+ };
2159
+ };
2160
+ type ListWorkspacesResponse = ListWorkspacesResponses[keyof ListWorkspacesResponses];
2161
+ type GetWorkspaceData = {
2162
+ body?: never;
2163
+ path: {
2164
+ id: string;
2165
+ };
2166
+ query?: never;
2167
+ url: '/v1/workspaces/{id}';
2168
+ };
2169
+ type GetWorkspaceErrors = {
2170
+ /**
2171
+ * Missing or invalid authorization token.
2172
+ */
2173
+ 401: {
2174
+ error: {
2175
+ code: string;
2176
+ message: string;
2177
+ hint?: string;
2178
+ };
2179
+ };
2180
+ /**
2181
+ * Workspace with the specified ID was not found.
2182
+ */
2183
+ 404: {
2184
+ error: {
2185
+ code: string;
2186
+ message: string;
2187
+ hint?: string;
2188
+ };
2189
+ };
2190
+ };
2191
+ type GetWorkspaceError = GetWorkspaceErrors[keyof GetWorkspaceErrors];
2192
+ type GetWorkspaceResponses = {
2193
+ /**
2194
+ * Workspace retrieved.
2195
+ */
2196
+ 200: {
2197
+ data: {
2198
+ id: string;
2199
+ type: 'workspace';
2200
+ url: string;
2201
+ name: string;
2202
+ createdAt: string;
2203
+ };
2204
+ };
2205
+ };
2206
+ type GetWorkspaceResponse = GetWorkspaceResponses[keyof GetWorkspaceResponses];
2207
+ declare type __ΩClientOptions = any[];
2208
+ declare type __ΩListConnectionsData = any[];
2209
+ declare type __ΩListConnectionsErrors = any[];
2210
+ declare type __ΩListConnectionsError = any[];
2211
+ declare type __ΩListConnectionsResponses = any[];
2212
+ declare type __ΩListConnectionsResponse = any[];
2213
+ declare type __ΩCreateConnectionData = any[];
2214
+ declare type __ΩCreateConnectionErrors = any[];
2215
+ declare type __ΩCreateConnectionError = any[];
2216
+ declare type __ΩCreateConnectionResponses = any[];
2217
+ declare type __ΩCreateConnectionResponse = any[];
2218
+ declare type __ΩDeleteConnectionData = any[];
2219
+ declare type __ΩDeleteConnectionErrors = any[];
2220
+ declare type __ΩDeleteConnectionError = any[];
2221
+ declare type __ΩDeleteConnectionResponses = any[];
2222
+ declare type __ΩDeleteConnectionResponse = any[];
2223
+ declare type __ΩGetConnectionData = any[];
2224
+ declare type __ΩGetConnectionErrors = any[];
2225
+ declare type __ΩGetConnectionError = any[];
2226
+ declare type __ΩGetConnectionResponses = any[];
2227
+ declare type __ΩGetConnectionResponse = any[];
2228
+ declare type __ΩListDatabasesData = any[];
2229
+ declare type __ΩListDatabasesErrors = any[];
2230
+ declare type __ΩListDatabasesError = any[];
2231
+ declare type __ΩListDatabasesResponses = any[];
2232
+ declare type __ΩListDatabasesResponse = any[];
2233
+ declare type __ΩCreateDatabaseData = any[];
2234
+ declare type __ΩCreateDatabaseErrors = any[];
2235
+ declare type __ΩCreateDatabaseError = any[];
2236
+ declare type __ΩCreateDatabaseResponses = any[];
2237
+ declare type __ΩCreateDatabaseResponse = any[];
2238
+ declare type __ΩDeleteDatabaseData = any[];
2239
+ declare type __ΩDeleteDatabaseErrors = any[];
2240
+ declare type __ΩDeleteDatabaseError = any[];
2241
+ declare type __ΩDeleteDatabaseResponses = any[];
2242
+ declare type __ΩDeleteDatabaseResponse = any[];
2243
+ declare type __ΩGetDatabaseData = any[];
2244
+ declare type __ΩGetDatabaseErrors = any[];
2245
+ declare type __ΩGetDatabaseError = any[];
2246
+ declare type __ΩGetDatabaseResponses = any[];
2247
+ declare type __ΩGetDatabaseResponse = any[];
2248
+ declare type __ΩUpdateDatabaseData = any[];
2249
+ declare type __ΩUpdateDatabaseErrors = any[];
2250
+ declare type __ΩUpdateDatabaseError = any[];
2251
+ declare type __ΩUpdateDatabaseResponses = any[];
2252
+ declare type __ΩUpdateDatabaseResponse = any[];
2253
+ declare type __ΩListDatabaseConnectionsData = any[];
2254
+ declare type __ΩListDatabaseConnectionsErrors = any[];
2255
+ declare type __ΩListDatabaseConnectionsError = any[];
2256
+ declare type __ΩListDatabaseConnectionsResponses = any[];
2257
+ declare type __ΩListDatabaseConnectionsResponse = any[];
2258
+ declare type __ΩCreateDatabaseConnectionStringData = any[];
2259
+ declare type __ΩCreateDatabaseConnectionStringErrors = any[];
2260
+ declare type __ΩCreateDatabaseConnectionStringError = any[];
2261
+ declare type __ΩCreateDatabaseConnectionStringResponses = any[];
2262
+ declare type __ΩCreateDatabaseConnectionStringResponse = any[];
2263
+ declare type __ΩListBackupsData = any[];
2264
+ declare type __ΩListBackupsErrors = any[];
2265
+ declare type __ΩListBackupsError = any[];
2266
+ declare type __ΩListBackupsResponses = any[];
2267
+ declare type __ΩListBackupsResponse = any[];
2268
+ declare type __ΩGetDatabaseUsageMetricsData = any[];
2269
+ declare type __ΩGetDatabaseUsageMetricsErrors = any[];
2270
+ declare type __ΩGetDatabaseUsageMetricsError = any[];
2271
+ declare type __ΩGetDatabaseUsageMetricsResponses = any[];
2272
+ declare type __ΩGetDatabaseUsageMetricsResponse = any[];
2273
+ declare type __ΩListProjectsData = any[];
2274
+ declare type __ΩListProjectsErrors = any[];
2275
+ declare type __ΩListProjectsError = any[];
2276
+ declare type __ΩListProjectsResponses = any[];
2277
+ declare type __ΩListProjectsResponse = any[];
2278
+ declare type __ΩCreateProjectWithPostgresDatabaseData = any[];
2279
+ declare type __ΩCreateProjectWithPostgresDatabaseErrors = any[];
2280
+ declare type __ΩCreateProjectWithPostgresDatabaseError = any[];
2281
+ declare type __ΩCreateProjectWithPostgresDatabaseResponses = any[];
2282
+ declare type __ΩCreateProjectWithPostgresDatabaseResponse = any[];
2283
+ declare type __ΩDeleteProjectData = any[];
2284
+ declare type __ΩDeleteProjectErrors = any[];
2285
+ declare type __ΩDeleteProjectError = any[];
2286
+ declare type __ΩDeleteProjectResponses = any[];
2287
+ declare type __ΩDeleteProjectResponse = any[];
2288
+ declare type __ΩGetProjectData = any[];
2289
+ declare type __ΩGetProjectErrors = any[];
2290
+ declare type __ΩGetProjectError = any[];
2291
+ declare type __ΩGetProjectResponses = any[];
2292
+ declare type __ΩGetProjectResponse = any[];
2293
+ declare type __ΩUpdateProjectData = any[];
2294
+ declare type __ΩUpdateProjectErrors = any[];
2295
+ declare type __ΩUpdateProjectError = any[];
2296
+ declare type __ΩUpdateProjectResponses = any[];
2297
+ declare type __ΩUpdateProjectResponse = any[];
2298
+ declare type __ΩTransferProjectData = any[];
2299
+ declare type __ΩTransferProjectErrors = any[];
2300
+ declare type __ΩTransferProjectError = any[];
2301
+ declare type __ΩTransferProjectResponses = any[];
2302
+ declare type __ΩTransferProjectResponse = any[];
2303
+ declare type __ΩListDatabases2Data = any[];
2304
+ declare type __ΩListDatabases2Errors = any[];
2305
+ declare type __ΩListDatabases2Error = any[];
2306
+ declare type __ΩListDatabases2Responses = any[];
2307
+ declare type __ΩListDatabases2Response = any[];
2308
+ declare type __ΩCreateDatabase2Data = any[];
2309
+ declare type __ΩCreateDatabase2Errors = any[];
2310
+ declare type __ΩCreateDatabase2Error = any[];
2311
+ declare type __ΩCreateDatabase2Responses = any[];
2312
+ declare type __ΩCreateDatabase2Response = any[];
2313
+ declare type __ΩListIntegrationsData = any[];
2314
+ declare type __ΩListIntegrationsErrors = any[];
2315
+ declare type __ΩListIntegrationsError = any[];
2316
+ declare type __ΩListIntegrationsResponses = any[];
2317
+ declare type __ΩListIntegrationsResponse = any[];
2318
+ declare type __ΩDeleteIntegrationData = any[];
2319
+ declare type __ΩDeleteIntegrationErrors = any[];
2320
+ declare type __ΩDeleteIntegrationError = any[];
2321
+ declare type __ΩDeleteIntegrationResponses = any[];
2322
+ declare type __ΩDeleteIntegrationResponse = any[];
2323
+ declare type __ΩGetIntegrationByIdData = any[];
2324
+ declare type __ΩGetIntegrationByIdErrors = any[];
2325
+ declare type __ΩGetIntegrationByIdError = any[];
2326
+ declare type __ΩGetIntegrationByIdResponses = any[];
2327
+ declare type __ΩGetIntegrationByIdResponse = any[];
2328
+ declare type __ΩListIntegrations2Data = any[];
2329
+ declare type __ΩListIntegrations2Errors = any[];
2330
+ declare type __ΩListIntegrations2Error = any[];
2331
+ declare type __ΩListIntegrations2Responses = any[];
2332
+ declare type __ΩListIntegrations2Response = any[];
2333
+ declare type __ΩRevokeIntegrationTokensData = any[];
2334
+ declare type __ΩRevokeIntegrationTokensErrors = any[];
2335
+ declare type __ΩRevokeIntegrationTokensError = any[];
2336
+ declare type __ΩRevokeIntegrationTokensResponses = any[];
2337
+ declare type __ΩRevokeIntegrationTokensResponse = any[];
2338
+ declare type __ΩGetAllRegionsData = any[];
2339
+ declare type __ΩGetAllRegionsErrors = any[];
2340
+ declare type __ΩGetAllRegionsError = any[];
2341
+ declare type __ΩGetAllRegionsResponses = any[];
2342
+ declare type __ΩGetAllRegionsResponse = any[];
2343
+ declare type __ΩGetPrismaPostgresRegionsData = any[];
2344
+ declare type __ΩGetPrismaPostgresRegionsErrors = any[];
2345
+ declare type __ΩGetPrismaPostgresRegionsError = any[];
2346
+ declare type __ΩGetPrismaPostgresRegionsResponses = any[];
2347
+ declare type __ΩGetPrismaPostgresRegionsResponse = any[];
2348
+ declare type __ΩGetPrismaAccelerateRegionsData = any[];
2349
+ declare type __ΩGetPrismaAccelerateRegionsErrors = any[];
2350
+ declare type __ΩGetPrismaAccelerateRegionsError = any[];
2351
+ declare type __ΩGetPrismaAccelerateRegionsResponses = any[];
2352
+ declare type __ΩGetPrismaAccelerateRegionsResponse = any[];
2353
+ declare type __ΩListWorkspacesData = any[];
2354
+ declare type __ΩListWorkspacesErrors = any[];
2355
+ declare type __ΩListWorkspacesError = any[];
2356
+ declare type __ΩListWorkspacesResponses = any[];
2357
+ declare type __ΩListWorkspacesResponse = any[];
2358
+ declare type __ΩGetWorkspaceData = any[];
2359
+ declare type __ΩGetWorkspaceErrors = any[];
2360
+ declare type __ΩGetWorkspaceError = any[];
2361
+ declare type __ΩGetWorkspaceResponses = any[];
2362
+ declare type __ΩGetWorkspaceResponse = any[];
2363
+ //#endregion
2364
+ export { ClientOptions, CreateConnectionData, CreateConnectionError, CreateConnectionErrors, CreateConnectionResponse, CreateConnectionResponses, CreateDatabase2Data, CreateDatabase2Error, CreateDatabase2Errors, CreateDatabase2Response, CreateDatabase2Responses, CreateDatabaseConnectionStringData, CreateDatabaseConnectionStringError, CreateDatabaseConnectionStringErrors, CreateDatabaseConnectionStringResponse, CreateDatabaseConnectionStringResponses, CreateDatabaseData, CreateDatabaseError, CreateDatabaseErrors, CreateDatabaseResponse, CreateDatabaseResponses, CreateProjectWithPostgresDatabaseData, CreateProjectWithPostgresDatabaseError, CreateProjectWithPostgresDatabaseErrors, CreateProjectWithPostgresDatabaseResponse, CreateProjectWithPostgresDatabaseResponses, DeleteConnectionData, DeleteConnectionError, DeleteConnectionErrors, DeleteConnectionResponse, DeleteConnectionResponses, DeleteDatabaseData, DeleteDatabaseError, DeleteDatabaseErrors, DeleteDatabaseResponse, DeleteDatabaseResponses, DeleteIntegrationData, DeleteIntegrationError, DeleteIntegrationErrors, DeleteIntegrationResponse, DeleteIntegrationResponses, DeleteProjectData, DeleteProjectError, DeleteProjectErrors, DeleteProjectResponse, DeleteProjectResponses, GetAllRegionsData, GetAllRegionsError, GetAllRegionsErrors, GetAllRegionsResponse, GetAllRegionsResponses, GetConnectionData, GetConnectionError, GetConnectionErrors, GetConnectionResponse, GetConnectionResponses, GetDatabaseData, GetDatabaseError, GetDatabaseErrors, GetDatabaseResponse, GetDatabaseResponses, GetDatabaseUsageMetricsData, GetDatabaseUsageMetricsError, GetDatabaseUsageMetricsErrors, GetDatabaseUsageMetricsResponse, GetDatabaseUsageMetricsResponses, GetIntegrationByIdData, GetIntegrationByIdError, GetIntegrationByIdErrors, GetIntegrationByIdResponse, GetIntegrationByIdResponses, GetPrismaAccelerateRegionsData, GetPrismaAccelerateRegionsError, GetPrismaAccelerateRegionsErrors, GetPrismaAccelerateRegionsResponse, GetPrismaAccelerateRegionsResponses, GetPrismaPostgresRegionsData, GetPrismaPostgresRegionsError, GetPrismaPostgresRegionsErrors, GetPrismaPostgresRegionsResponse, GetPrismaPostgresRegionsResponses, GetProjectData, GetProjectError, GetProjectErrors, GetProjectResponse, GetProjectResponses, GetWorkspaceData, GetWorkspaceError, GetWorkspaceErrors, GetWorkspaceResponse, GetWorkspaceResponses, ListBackupsData, ListBackupsError, ListBackupsErrors, ListBackupsResponse, ListBackupsResponses, ListConnectionsData, ListConnectionsError, ListConnectionsErrors, ListConnectionsResponse, ListConnectionsResponses, ListDatabaseConnectionsData, ListDatabaseConnectionsError, ListDatabaseConnectionsErrors, ListDatabaseConnectionsResponse, ListDatabaseConnectionsResponses, ListDatabases2Data, ListDatabases2Error, ListDatabases2Errors, ListDatabases2Response, ListDatabases2Responses, ListDatabasesData, ListDatabasesError, ListDatabasesErrors, ListDatabasesResponse, ListDatabasesResponses, ListIntegrations2Data, ListIntegrations2Error, ListIntegrations2Errors, ListIntegrations2Response, ListIntegrations2Responses, ListIntegrationsData, ListIntegrationsError, ListIntegrationsErrors, ListIntegrationsResponse, ListIntegrationsResponses, ListProjectsData, ListProjectsError, ListProjectsErrors, ListProjectsResponse, ListProjectsResponses, ListWorkspacesData, ListWorkspacesError, ListWorkspacesErrors, ListWorkspacesResponse, ListWorkspacesResponses, RevokeIntegrationTokensData, RevokeIntegrationTokensError, RevokeIntegrationTokensErrors, RevokeIntegrationTokensResponse, RevokeIntegrationTokensResponses, TransferProjectData, TransferProjectError, TransferProjectErrors, TransferProjectResponse, TransferProjectResponses, UpdateDatabaseData, UpdateDatabaseError, UpdateDatabaseErrors, UpdateDatabaseResponse, UpdateDatabaseResponses, UpdateProjectData, UpdateProjectError, UpdateProjectErrors, UpdateProjectResponse, UpdateProjectResponses, __ΩClientOptions, __ΩCreateConnectionData, __ΩCreateConnectionError, __ΩCreateConnectionErrors, __ΩCreateConnectionResponse, __ΩCreateConnectionResponses, __ΩCreateDatabase2Data, __ΩCreateDatabase2Error, __ΩCreateDatabase2Errors, __ΩCreateDatabase2Response, __ΩCreateDatabase2Responses, __ΩCreateDatabaseConnectionStringData, __ΩCreateDatabaseConnectionStringError, __ΩCreateDatabaseConnectionStringErrors, __ΩCreateDatabaseConnectionStringResponse, __ΩCreateDatabaseConnectionStringResponses, __ΩCreateDatabaseData, __ΩCreateDatabaseError, __ΩCreateDatabaseErrors, __ΩCreateDatabaseResponse, __ΩCreateDatabaseResponses, __ΩCreateProjectWithPostgresDatabaseData, __ΩCreateProjectWithPostgresDatabaseError, __ΩCreateProjectWithPostgresDatabaseErrors, __ΩCreateProjectWithPostgresDatabaseResponse, __ΩCreateProjectWithPostgresDatabaseResponses, __ΩDeleteConnectionData, __ΩDeleteConnectionError, __ΩDeleteConnectionErrors, __ΩDeleteConnectionResponse, __ΩDeleteConnectionResponses, __ΩDeleteDatabaseData, __ΩDeleteDatabaseError, __ΩDeleteDatabaseErrors, __ΩDeleteDatabaseResponse, __ΩDeleteDatabaseResponses, __ΩDeleteIntegrationData, __ΩDeleteIntegrationError, __ΩDeleteIntegrationErrors, __ΩDeleteIntegrationResponse, __ΩDeleteIntegrationResponses, __ΩDeleteProjectData, __ΩDeleteProjectError, __ΩDeleteProjectErrors, __ΩDeleteProjectResponse, __ΩDeleteProjectResponses, __ΩGetAllRegionsData, __ΩGetAllRegionsError, __ΩGetAllRegionsErrors, __ΩGetAllRegionsResponse, __ΩGetAllRegionsResponses, __ΩGetConnectionData, __ΩGetConnectionError, __ΩGetConnectionErrors, __ΩGetConnectionResponse, __ΩGetConnectionResponses, __ΩGetDatabaseData, __ΩGetDatabaseError, __ΩGetDatabaseErrors, __ΩGetDatabaseResponse, __ΩGetDatabaseResponses, __ΩGetDatabaseUsageMetricsData, __ΩGetDatabaseUsageMetricsError, __ΩGetDatabaseUsageMetricsErrors, __ΩGetDatabaseUsageMetricsResponse, __ΩGetDatabaseUsageMetricsResponses, __ΩGetIntegrationByIdData, __ΩGetIntegrationByIdError, __ΩGetIntegrationByIdErrors, __ΩGetIntegrationByIdResponse, __ΩGetIntegrationByIdResponses, __ΩGetPrismaAccelerateRegionsData, __ΩGetPrismaAccelerateRegionsError, __ΩGetPrismaAccelerateRegionsErrors, __ΩGetPrismaAccelerateRegionsResponse, __ΩGetPrismaAccelerateRegionsResponses, __ΩGetPrismaPostgresRegionsData, __ΩGetPrismaPostgresRegionsError, __ΩGetPrismaPostgresRegionsErrors, __ΩGetPrismaPostgresRegionsResponse, __ΩGetPrismaPostgresRegionsResponses, __ΩGetProjectData, __ΩGetProjectError, __ΩGetProjectErrors, __ΩGetProjectResponse, __ΩGetProjectResponses, __ΩGetWorkspaceData, __ΩGetWorkspaceError, __ΩGetWorkspaceErrors, __ΩGetWorkspaceResponse, __ΩGetWorkspaceResponses, __ΩListBackupsData, __ΩListBackupsError, __ΩListBackupsErrors, __ΩListBackupsResponse, __ΩListBackupsResponses, __ΩListConnectionsData, __ΩListConnectionsError, __ΩListConnectionsErrors, __ΩListConnectionsResponse, __ΩListConnectionsResponses, __ΩListDatabaseConnectionsData, __ΩListDatabaseConnectionsError, __ΩListDatabaseConnectionsErrors, __ΩListDatabaseConnectionsResponse, __ΩListDatabaseConnectionsResponses, __ΩListDatabases2Data, __ΩListDatabases2Error, __ΩListDatabases2Errors, __ΩListDatabases2Response, __ΩListDatabases2Responses, __ΩListDatabasesData, __ΩListDatabasesError, __ΩListDatabasesErrors, __ΩListDatabasesResponse, __ΩListDatabasesResponses, __ΩListIntegrations2Data, __ΩListIntegrations2Error, __ΩListIntegrations2Errors, __ΩListIntegrations2Response, __ΩListIntegrations2Responses, __ΩListIntegrationsData, __ΩListIntegrationsError, __ΩListIntegrationsErrors, __ΩListIntegrationsResponse, __ΩListIntegrationsResponses, __ΩListProjectsData, __ΩListProjectsError, __ΩListProjectsErrors, __ΩListProjectsResponse, __ΩListProjectsResponses, __ΩListWorkspacesData, __ΩListWorkspacesError, __ΩListWorkspacesErrors, __ΩListWorkspacesResponse, __ΩListWorkspacesResponses, __ΩRevokeIntegrationTokensData, __ΩRevokeIntegrationTokensError, __ΩRevokeIntegrationTokensErrors, __ΩRevokeIntegrationTokensResponse, __ΩRevokeIntegrationTokensResponses, __ΩTransferProjectData, __ΩTransferProjectError, __ΩTransferProjectErrors, __ΩTransferProjectResponse, __ΩTransferProjectResponses, __ΩUpdateDatabaseData, __ΩUpdateDatabaseError, __ΩUpdateDatabaseErrors, __ΩUpdateDatabaseResponse, __ΩUpdateDatabaseResponses, __ΩUpdateProjectData, __ΩUpdateProjectError, __ΩUpdateProjectErrors, __ΩUpdateProjectResponse, __ΩUpdateProjectResponses };
2365
+ //# sourceMappingURL=types.gen.d.cts.map