pgbeam 0.2.2 → 0.2.4
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/LICENSE +190 -0
- package/README.md +8 -0
- package/dist/index.cjs +14 -12
- package/dist/index.d.cts +998 -973
- package/dist/index.d.mts +998 -973
- package/dist/index.mjs +14 -12
- package/dist/operations.cjs +11 -9
- package/dist/operations.d.cts +836 -800
- package/dist/operations.d.mts +836 -800
- package/dist/operations.mjs +11 -9
- package/package.json +5 -5
package/dist/operations.d.cts
CHANGED
|
@@ -1,544 +1,429 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
6
|
* @description Full account data export for privacy and data-portability requests.
|
|
7
|
-
|
|
7
|
+
*/
|
|
8
8
|
type AccountExport = {
|
|
9
9
|
/**
|
|
10
10
|
* @description Core user profile data.
|
|
11
11
|
* @type object
|
|
12
|
-
|
|
12
|
+
*/
|
|
13
13
|
user: {
|
|
14
14
|
/**
|
|
15
15
|
* @description User identifier.
|
|
16
16
|
* @type string
|
|
17
|
-
|
|
17
|
+
*/
|
|
18
18
|
id: string;
|
|
19
19
|
/**
|
|
20
20
|
* @description Display name for the user.
|
|
21
21
|
* @type string
|
|
22
|
-
|
|
22
|
+
*/
|
|
23
23
|
name: string;
|
|
24
24
|
/**
|
|
25
25
|
* @description Primary account email address.
|
|
26
26
|
* @type string, email
|
|
27
|
-
|
|
27
|
+
*/
|
|
28
28
|
email: string;
|
|
29
29
|
/**
|
|
30
30
|
* @description Whether the email address has been verified.
|
|
31
31
|
* @type boolean
|
|
32
|
-
|
|
32
|
+
*/
|
|
33
33
|
email_verified: boolean;
|
|
34
34
|
/**
|
|
35
35
|
* @description Avatar image URL, if present.
|
|
36
36
|
* @type string | undefined
|
|
37
|
-
|
|
37
|
+
*/
|
|
38
38
|
image?: string;
|
|
39
39
|
/**
|
|
40
40
|
* @description When the user account was created.
|
|
41
41
|
* @type string, date-time
|
|
42
|
-
|
|
42
|
+
*/
|
|
43
43
|
created_at: string;
|
|
44
44
|
/**
|
|
45
45
|
* @description When the user profile was last updated.
|
|
46
46
|
* @type string, date-time
|
|
47
|
-
|
|
47
|
+
*/
|
|
48
48
|
updated_at: string;
|
|
49
49
|
};
|
|
50
50
|
/**
|
|
51
51
|
* @description Organizations the user belongs to.
|
|
52
52
|
* @type array
|
|
53
|
-
|
|
53
|
+
*/
|
|
54
54
|
organizations: {
|
|
55
55
|
/**
|
|
56
56
|
* @description Organization identifier.
|
|
57
57
|
* @type string
|
|
58
|
-
|
|
58
|
+
*/
|
|
59
59
|
id: string;
|
|
60
60
|
/**
|
|
61
61
|
* @description Organization display name.
|
|
62
62
|
* @type string
|
|
63
|
-
|
|
63
|
+
*/
|
|
64
64
|
name: string;
|
|
65
65
|
/**
|
|
66
66
|
* @description Organization slug used in URLs and routing.
|
|
67
67
|
* @type string
|
|
68
|
-
|
|
68
|
+
*/
|
|
69
69
|
slug: string;
|
|
70
70
|
/**
|
|
71
71
|
* @description User role within the organization.
|
|
72
72
|
* @type string
|
|
73
|
-
|
|
73
|
+
*/
|
|
74
74
|
role: string;
|
|
75
75
|
/**
|
|
76
76
|
* @description When the organization membership was created.
|
|
77
77
|
* @type string, date-time
|
|
78
|
-
|
|
78
|
+
*/
|
|
79
79
|
created_at: string;
|
|
80
80
|
}[];
|
|
81
81
|
/**
|
|
82
82
|
* @description Projects owned through the user\'s organizations.
|
|
83
83
|
* @type array
|
|
84
|
-
|
|
84
|
+
*/
|
|
85
85
|
projects: {
|
|
86
86
|
/**
|
|
87
87
|
* @description Project identifier.
|
|
88
88
|
* @type string
|
|
89
|
-
|
|
89
|
+
*/
|
|
90
90
|
id: string;
|
|
91
91
|
/**
|
|
92
92
|
* @description Owning organization identifier.
|
|
93
93
|
* @type string
|
|
94
|
-
|
|
94
|
+
*/
|
|
95
95
|
org_id: string;
|
|
96
96
|
/**
|
|
97
97
|
* @description Project display name.
|
|
98
98
|
* @type string
|
|
99
|
-
|
|
99
|
+
*/
|
|
100
100
|
name: string;
|
|
101
101
|
/**
|
|
102
102
|
* @description Project description at export time.
|
|
103
103
|
* @type string
|
|
104
|
-
|
|
104
|
+
*/
|
|
105
105
|
description: string;
|
|
106
106
|
/**
|
|
107
107
|
* @description Project lifecycle status.
|
|
108
108
|
* @type string
|
|
109
|
-
|
|
109
|
+
*/
|
|
110
110
|
status: string;
|
|
111
111
|
/**
|
|
112
112
|
* @description When the project was created.
|
|
113
113
|
* @type string, date-time
|
|
114
|
-
|
|
114
|
+
*/
|
|
115
115
|
created_at: string;
|
|
116
116
|
}[];
|
|
117
117
|
/**
|
|
118
118
|
* @description Databases registered under the exported projects.
|
|
119
119
|
* @type array
|
|
120
|
-
|
|
120
|
+
*/
|
|
121
121
|
databases: {
|
|
122
122
|
/**
|
|
123
123
|
* @description Database identifier.
|
|
124
124
|
* @type string
|
|
125
|
-
|
|
125
|
+
*/
|
|
126
126
|
id: string;
|
|
127
127
|
/**
|
|
128
128
|
* @description Owning project identifier.
|
|
129
129
|
* @type string
|
|
130
|
-
|
|
130
|
+
*/
|
|
131
131
|
project_id: string;
|
|
132
132
|
/**
|
|
133
133
|
* @description Upstream PostgreSQL host.
|
|
134
134
|
* @type string
|
|
135
|
-
|
|
135
|
+
*/
|
|
136
136
|
host: string;
|
|
137
137
|
/**
|
|
138
138
|
* @description Upstream PostgreSQL port.
|
|
139
139
|
* @type integer
|
|
140
|
-
|
|
140
|
+
*/
|
|
141
141
|
port: number;
|
|
142
142
|
/**
|
|
143
143
|
* @description Upstream PostgreSQL database name.
|
|
144
144
|
* @type string
|
|
145
|
-
|
|
145
|
+
*/
|
|
146
146
|
name: string;
|
|
147
147
|
/**
|
|
148
148
|
* @description PostgreSQL SSL mode in use for the database.
|
|
149
149
|
* @type string
|
|
150
|
-
|
|
150
|
+
*/
|
|
151
151
|
ssl_mode: string;
|
|
152
152
|
/**
|
|
153
153
|
* @description Database role within the project.
|
|
154
154
|
* @type string
|
|
155
|
-
|
|
155
|
+
*/
|
|
156
156
|
role: string;
|
|
157
157
|
/**
|
|
158
158
|
* @description When the database registration was created.
|
|
159
159
|
* @type string, date-time
|
|
160
|
-
|
|
160
|
+
*/
|
|
161
161
|
created_at: string;
|
|
162
162
|
}[];
|
|
163
163
|
/**
|
|
164
164
|
* @description Auth sessions associated with the user.
|
|
165
165
|
* @type array
|
|
166
|
-
|
|
166
|
+
*/
|
|
167
167
|
sessions: {
|
|
168
168
|
/**
|
|
169
169
|
* @description Session identifier.
|
|
170
170
|
* @type string
|
|
171
|
-
|
|
171
|
+
*/
|
|
172
172
|
id: string;
|
|
173
173
|
/**
|
|
174
174
|
* @description When the session expires.
|
|
175
175
|
* @type string, date-time
|
|
176
|
-
|
|
176
|
+
*/
|
|
177
177
|
expires_at: string;
|
|
178
178
|
/**
|
|
179
179
|
* @description When the session was created.
|
|
180
180
|
* @type string, date-time
|
|
181
|
-
|
|
181
|
+
*/
|
|
182
182
|
created_at: string;
|
|
183
183
|
/**
|
|
184
184
|
* @description IP address used to create the session, if known.
|
|
185
185
|
* @type string | undefined
|
|
186
|
-
|
|
186
|
+
*/
|
|
187
187
|
ip_address?: string;
|
|
188
188
|
/**
|
|
189
189
|
* @description User agent captured for the session, if known.
|
|
190
190
|
* @type string | undefined
|
|
191
|
-
|
|
191
|
+
*/
|
|
192
192
|
user_agent?: string;
|
|
193
193
|
}[];
|
|
194
194
|
/**
|
|
195
195
|
* @description User communication preferences.
|
|
196
196
|
* @type object
|
|
197
|
-
|
|
197
|
+
*/
|
|
198
198
|
email_preferences: {
|
|
199
199
|
/**
|
|
200
200
|
* @description Whether marketing emails are enabled.
|
|
201
201
|
* @type boolean | undefined
|
|
202
|
-
|
|
202
|
+
*/
|
|
203
203
|
marketing_emails?: boolean;
|
|
204
204
|
/**
|
|
205
205
|
* @description Whether usage alert emails are enabled.
|
|
206
206
|
* @type boolean | undefined
|
|
207
|
-
|
|
207
|
+
*/
|
|
208
208
|
usage_limit_alerts?: boolean;
|
|
209
209
|
};
|
|
210
210
|
/**
|
|
211
211
|
* @description Recorded legal-document acceptances for the user.
|
|
212
212
|
* @type array
|
|
213
|
-
|
|
213
|
+
*/
|
|
214
214
|
consents: {
|
|
215
215
|
/**
|
|
216
216
|
* @description Consent record identifier.
|
|
217
217
|
* @type string
|
|
218
|
-
|
|
218
|
+
*/
|
|
219
219
|
id: string;
|
|
220
220
|
/**
|
|
221
221
|
* @description Legal document type accepted by the user.
|
|
222
222
|
* @type string
|
|
223
|
-
|
|
223
|
+
*/
|
|
224
224
|
document_type: string;
|
|
225
225
|
/**
|
|
226
226
|
* @description Accepted document version.
|
|
227
227
|
* @type string
|
|
228
|
-
|
|
228
|
+
*/
|
|
229
229
|
document_version: string;
|
|
230
230
|
/**
|
|
231
231
|
* @description When the document was accepted.
|
|
232
232
|
* @type string, date-time
|
|
233
|
-
|
|
233
|
+
*/
|
|
234
234
|
accepted_at: string;
|
|
235
235
|
/**
|
|
236
236
|
* @description IP address captured when consent was recorded.
|
|
237
237
|
* @type string | undefined
|
|
238
|
-
|
|
238
|
+
*/
|
|
239
239
|
ip_address?: string;
|
|
240
240
|
}[];
|
|
241
241
|
/**
|
|
242
242
|
* @description Recent audit log entries associated with the account.
|
|
243
243
|
* @type array
|
|
244
|
-
|
|
244
|
+
*/
|
|
245
245
|
audit_logs: {
|
|
246
246
|
/**
|
|
247
247
|
* @description Audit log entry identifier.
|
|
248
248
|
* @type string
|
|
249
|
-
|
|
249
|
+
*/
|
|
250
250
|
id: string;
|
|
251
251
|
/**
|
|
252
252
|
* @description Action captured by the audit log entry.
|
|
253
253
|
* @type string
|
|
254
|
-
|
|
254
|
+
*/
|
|
255
255
|
action: string;
|
|
256
256
|
/**
|
|
257
257
|
* @description Type of resource affected by the action.
|
|
258
258
|
* @type string | undefined
|
|
259
|
-
|
|
259
|
+
*/
|
|
260
260
|
resource_type?: string;
|
|
261
261
|
/**
|
|
262
262
|
* @description Identifier of the affected resource.
|
|
263
263
|
* @type string | undefined
|
|
264
|
-
|
|
264
|
+
*/
|
|
265
265
|
resource_id?: string;
|
|
266
266
|
/**
|
|
267
267
|
* @description IP address associated with the action, if known.
|
|
268
268
|
* @type string | undefined
|
|
269
|
-
|
|
269
|
+
*/
|
|
270
270
|
ip_address?: string;
|
|
271
271
|
/**
|
|
272
272
|
* @description When the audit log entry was recorded.
|
|
273
273
|
* @type string, date-time
|
|
274
|
-
|
|
274
|
+
*/
|
|
275
275
|
created_at: string;
|
|
276
276
|
}[];
|
|
277
277
|
/**
|
|
278
278
|
* @description When the export was generated.
|
|
279
279
|
* @type string, date-time
|
|
280
|
-
|
|
280
|
+
*/
|
|
281
281
|
exported_at: string;
|
|
282
282
|
};
|
|
283
283
|
|
|
284
284
|
/**
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
285
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
286
|
+
* Do not edit manually.
|
|
287
|
+
*/
|
|
288
288
|
|
|
289
289
|
/**
|
|
290
290
|
* @description Account data export.
|
|
291
|
-
|
|
291
|
+
*/
|
|
292
292
|
type ExportAccountData200 = AccountExport;
|
|
293
293
|
type ExportAccountDataQueryResponse = ExportAccountData200;
|
|
294
294
|
|
|
295
295
|
/**
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* @description Recent activity snapshot for a project in an organization.
|
|
301
|
-
*/
|
|
302
|
-
type ActivityEntry = {
|
|
303
|
-
/**
|
|
304
|
-
* @description Unique activity snapshot identifier.
|
|
305
|
-
* @type string
|
|
306
|
-
*/
|
|
307
|
-
id: string;
|
|
308
|
-
/**
|
|
309
|
-
* @description Project that produced the activity snapshot.
|
|
310
|
-
* @type string
|
|
311
|
-
*/
|
|
312
|
-
project_id: string;
|
|
313
|
-
/**
|
|
314
|
-
* @description Project display name at the time of the snapshot.
|
|
315
|
-
* @type string
|
|
316
|
-
*/
|
|
317
|
-
project_name: string;
|
|
318
|
-
/**
|
|
319
|
-
* @description Region where the activity was observed.
|
|
320
|
-
* @type string
|
|
321
|
-
*/
|
|
322
|
-
region: string;
|
|
323
|
-
/**
|
|
324
|
-
* @description Total queries observed in the snapshot interval.
|
|
325
|
-
* @type integer, int64
|
|
326
|
-
*/
|
|
327
|
-
queries_total: number;
|
|
328
|
-
/**
|
|
329
|
-
* @description Number of cache hits during the interval.
|
|
330
|
-
* @type integer, int64
|
|
331
|
-
*/
|
|
332
|
-
cache_hits: number;
|
|
333
|
-
/**
|
|
334
|
-
* @description Number of cache misses during the interval.
|
|
335
|
-
* @type integer, int64
|
|
336
|
-
*/
|
|
337
|
-
cache_misses: number;
|
|
338
|
-
/**
|
|
339
|
-
* @description Average query latency in milliseconds.
|
|
340
|
-
* @type number, double
|
|
341
|
-
*/
|
|
342
|
-
avg_latency_ms: number;
|
|
343
|
-
/**
|
|
344
|
-
* @description 99th percentile query latency in milliseconds.
|
|
345
|
-
* @type number, double
|
|
346
|
-
*/
|
|
347
|
-
p99_latency_ms: number;
|
|
348
|
-
/**
|
|
349
|
-
* @description Number of active proxy connections during the interval.
|
|
350
|
-
* @type integer
|
|
351
|
-
*/
|
|
352
|
-
active_connections: number;
|
|
353
|
-
/**
|
|
354
|
-
* @description When the activity snapshot was recorded.
|
|
355
|
-
* @type string, date-time
|
|
356
|
-
*/
|
|
357
|
-
created_at: string;
|
|
358
|
-
};
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
362
|
-
* Do not edit manually.
|
|
363
|
-
*/
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* @description Response envelope for organization activity queries.
|
|
367
|
-
*/
|
|
368
|
-
type ActivityResponse = {
|
|
369
|
-
/**
|
|
370
|
-
* @description Recent activity snapshots for projects in the organization.
|
|
371
|
-
* @type array
|
|
372
|
-
*/
|
|
373
|
-
entries: ActivityEntry[];
|
|
374
|
-
};
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
378
|
-
* Do not edit manually.
|
|
379
|
-
*/
|
|
380
|
-
|
|
381
|
-
type GetOrganizationActivityPathParams = {
|
|
382
|
-
/**
|
|
383
|
-
* @description Unique organization identifier.
|
|
384
|
-
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
385
|
-
* @type string
|
|
386
|
-
*/
|
|
387
|
-
org_id: string;
|
|
388
|
-
};
|
|
389
|
-
type GetOrganizationActivityQueryParams = {
|
|
390
|
-
/**
|
|
391
|
-
* @description Maximum number of activity entries to return.
|
|
392
|
-
* @minLength 1
|
|
393
|
-
* @maxLength 1000
|
|
394
|
-
* @default 100
|
|
395
|
-
* @type integer | undefined
|
|
396
|
-
*/
|
|
397
|
-
limit?: number;
|
|
398
|
-
/**
|
|
399
|
-
* @description Filter activity by event type (e.g. metrics, connection).
|
|
400
|
-
* @type string | undefined
|
|
401
|
-
*/
|
|
402
|
-
event_type?: string;
|
|
403
|
-
};
|
|
404
|
-
/**
|
|
405
|
-
* @description Recent activity entries.
|
|
406
|
-
*/
|
|
407
|
-
type GetOrganizationActivity200 = ActivityResponse;
|
|
408
|
-
type GetOrganizationActivityQueryResponse = GetOrganizationActivity200;
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
412
|
-
* Do not edit manually.
|
|
413
|
-
*/
|
|
296
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
297
|
+
* Do not edit manually.
|
|
298
|
+
*/
|
|
414
299
|
/**
|
|
415
300
|
* @description Effective usage limits enforced for an organization plan.
|
|
416
|
-
|
|
301
|
+
*/
|
|
417
302
|
type PlanLimits = {
|
|
418
303
|
/**
|
|
419
304
|
* @description Maximum queries per day across all projects. 0 means unlimited.
|
|
420
305
|
* @type integer, int64
|
|
421
|
-
|
|
306
|
+
*/
|
|
422
307
|
queries_per_day: number;
|
|
423
308
|
/**
|
|
424
309
|
* @description Maximum number of active projects.
|
|
425
310
|
* @type integer
|
|
426
|
-
|
|
311
|
+
*/
|
|
427
312
|
max_projects: number;
|
|
428
313
|
/**
|
|
429
314
|
* @description Maximum databases per project.
|
|
430
315
|
* @type integer
|
|
431
|
-
|
|
316
|
+
*/
|
|
432
317
|
max_databases: number;
|
|
433
318
|
/**
|
|
434
319
|
* @description Maximum concurrent connections per project.
|
|
435
320
|
* @type integer
|
|
436
|
-
|
|
321
|
+
*/
|
|
437
322
|
max_connections: number;
|
|
438
323
|
/**
|
|
439
324
|
* @description Maximum queries per second per project.
|
|
440
325
|
* @type integer
|
|
441
|
-
|
|
326
|
+
*/
|
|
442
327
|
queries_per_second: number;
|
|
443
328
|
/**
|
|
444
329
|
* @description Monthly data transfer quota in bytes. 0 means unlimited.
|
|
445
330
|
* @type integer, int64
|
|
446
|
-
|
|
331
|
+
*/
|
|
447
332
|
bytes_per_month: number;
|
|
448
333
|
/**
|
|
449
334
|
* @description Maximum query shapes in cache rules. 0 means unlimited.
|
|
450
335
|
* @type integer
|
|
451
|
-
|
|
336
|
+
*/
|
|
452
337
|
max_query_shapes: number;
|
|
453
338
|
/**
|
|
454
339
|
* @description Number of seats included in the plan.
|
|
455
340
|
* @type integer
|
|
456
|
-
|
|
341
|
+
*/
|
|
457
342
|
included_seats: number;
|
|
458
343
|
};
|
|
459
344
|
|
|
460
345
|
/**
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
346
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
347
|
+
* Do not edit manually.
|
|
348
|
+
*/
|
|
464
349
|
|
|
465
350
|
/**
|
|
466
351
|
* @description Publicly visible plan metadata and limits.
|
|
467
|
-
|
|
352
|
+
*/
|
|
468
353
|
type PlanInfo = {
|
|
469
354
|
/**
|
|
470
355
|
* @description Plan tier name (starter, pro, scale).
|
|
471
356
|
* @type string
|
|
472
|
-
|
|
357
|
+
*/
|
|
473
358
|
name: string;
|
|
474
359
|
/**
|
|
475
360
|
* @description Display label for the plan.
|
|
476
361
|
* @type string
|
|
477
|
-
|
|
362
|
+
*/
|
|
478
363
|
label: string;
|
|
479
364
|
/**
|
|
480
365
|
* @description Monthly price in dollars.
|
|
481
366
|
* @type integer
|
|
482
|
-
|
|
367
|
+
*/
|
|
483
368
|
monthly_price: number;
|
|
484
369
|
/**
|
|
485
370
|
* @description Annual price in dollars (if applicable).
|
|
486
371
|
* @type integer | undefined
|
|
487
|
-
|
|
372
|
+
*/
|
|
488
373
|
annual_price?: number;
|
|
489
374
|
/**
|
|
490
375
|
* @description Short description of the plan.
|
|
491
376
|
* @type string | undefined
|
|
492
|
-
|
|
377
|
+
*/
|
|
493
378
|
description?: string;
|
|
494
379
|
/**
|
|
495
380
|
* @description Human-readable overage pricing text.
|
|
496
381
|
* @type string | undefined
|
|
497
|
-
|
|
382
|
+
*/
|
|
498
383
|
overage_text?: string;
|
|
499
384
|
/**
|
|
500
385
|
* @description Number of trial days for new signups.
|
|
501
386
|
* @type integer | undefined
|
|
502
|
-
|
|
387
|
+
*/
|
|
503
388
|
trial_days?: number;
|
|
504
389
|
/**
|
|
505
390
|
* @description Effective usage limits enforced for an organization plan.
|
|
506
391
|
* @type object
|
|
507
|
-
|
|
392
|
+
*/
|
|
508
393
|
limits: PlanLimits;
|
|
509
394
|
};
|
|
510
395
|
|
|
511
396
|
/**
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
397
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
398
|
+
* Do not edit manually.
|
|
399
|
+
*/
|
|
515
400
|
|
|
516
401
|
/**
|
|
517
402
|
* @description Response envelope for listing available billing plans.
|
|
518
|
-
|
|
403
|
+
*/
|
|
519
404
|
type ListPlansResponse = {
|
|
520
405
|
/**
|
|
521
406
|
* @description Billing plans available for self-serve signups.
|
|
522
407
|
* @type array
|
|
523
|
-
|
|
408
|
+
*/
|
|
524
409
|
plans: PlanInfo[];
|
|
525
410
|
};
|
|
526
411
|
|
|
527
412
|
/**
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
413
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
414
|
+
* Do not edit manually.
|
|
415
|
+
*/
|
|
531
416
|
|
|
532
417
|
/**
|
|
533
418
|
* @description List of available plans.
|
|
534
|
-
|
|
419
|
+
*/
|
|
535
420
|
type ListPlans200 = ListPlansResponse;
|
|
536
421
|
type ListPlansQueryResponse = ListPlans200;
|
|
537
422
|
|
|
538
423
|
/**
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
424
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
425
|
+
* Do not edit manually.
|
|
426
|
+
*/
|
|
542
427
|
|
|
543
428
|
declare const organizationPlanPlanEnum: {
|
|
544
429
|
readonly starter: "starter";
|
|
@@ -567,158 +452,158 @@ declare const organizationPlanSubscriptionStatusEnum: {
|
|
|
567
452
|
type OrganizationPlanSubscriptionStatusEnumKey = (typeof organizationPlanSubscriptionStatusEnum)[keyof typeof organizationPlanSubscriptionStatusEnum];
|
|
568
453
|
/**
|
|
569
454
|
* @description Billing state and plan limits for an organization.
|
|
570
|
-
|
|
455
|
+
*/
|
|
571
456
|
type OrganizationPlan = {
|
|
572
457
|
/**
|
|
573
458
|
* @description Organization identifier the plan applies to.
|
|
574
459
|
* @type string
|
|
575
|
-
|
|
460
|
+
*/
|
|
576
461
|
org_id: string;
|
|
577
462
|
/**
|
|
578
463
|
* @description Current plan tier.
|
|
579
464
|
* @type string
|
|
580
|
-
|
|
465
|
+
*/
|
|
581
466
|
plan: OrganizationPlanPlanEnumKey;
|
|
582
467
|
/**
|
|
583
468
|
* @description Which billing provider manages this organization\'s subscription.
|
|
584
469
|
* @type string | undefined
|
|
585
|
-
|
|
470
|
+
*/
|
|
586
471
|
billing_provider?: OrganizationPlanBillingProviderEnumKey;
|
|
587
472
|
/**
|
|
588
473
|
* @description Stripe subscription status.
|
|
589
474
|
* @type string | undefined
|
|
590
|
-
|
|
475
|
+
*/
|
|
591
476
|
subscription_status?: OrganizationPlanSubscriptionStatusEnumKey;
|
|
592
477
|
/**
|
|
593
478
|
* @description End of current billing period.
|
|
594
479
|
* @type string | undefined, date-time
|
|
595
|
-
|
|
480
|
+
*/
|
|
596
481
|
current_period_end?: string;
|
|
597
482
|
/**
|
|
598
483
|
* @description Whether the organization billing is active (false = suspended).
|
|
599
484
|
* @type boolean | undefined
|
|
600
|
-
|
|
485
|
+
*/
|
|
601
486
|
enabled?: boolean;
|
|
602
487
|
/**
|
|
603
488
|
* @description Whether the organization has custom enterprise pricing.
|
|
604
489
|
* @type boolean | undefined
|
|
605
|
-
|
|
490
|
+
*/
|
|
606
491
|
custom_pricing?: boolean;
|
|
607
492
|
/**
|
|
608
493
|
* @description Monthly spend limit in dollars. Null means no limit.
|
|
609
494
|
* @type number, double
|
|
610
|
-
|
|
495
|
+
*/
|
|
611
496
|
spend_limit?: number | null;
|
|
612
497
|
/**
|
|
613
498
|
* @description Effective usage limits enforced for an organization plan.
|
|
614
499
|
* @type object
|
|
615
|
-
|
|
500
|
+
*/
|
|
616
501
|
limits: PlanLimits;
|
|
617
502
|
/**
|
|
618
503
|
* @description When the billing record was created.
|
|
619
504
|
* @type string | undefined, date-time
|
|
620
|
-
|
|
505
|
+
*/
|
|
621
506
|
created_at?: string;
|
|
622
507
|
/**
|
|
623
508
|
* @description When the billing record was last updated.
|
|
624
509
|
* @type string | undefined, date-time
|
|
625
|
-
|
|
510
|
+
*/
|
|
626
511
|
updated_at?: string;
|
|
627
512
|
};
|
|
628
513
|
|
|
629
514
|
/**
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
515
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
516
|
+
* Do not edit manually.
|
|
517
|
+
*/
|
|
633
518
|
|
|
634
519
|
type GetOrganizationPlanPathParams = {
|
|
635
520
|
/**
|
|
636
521
|
* @description Unique organization identifier.
|
|
637
522
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
638
523
|
* @type string
|
|
639
|
-
|
|
524
|
+
*/
|
|
640
525
|
org_id: string;
|
|
641
526
|
};
|
|
642
527
|
/**
|
|
643
528
|
* @description Organization plan details.
|
|
644
|
-
|
|
529
|
+
*/
|
|
645
530
|
type GetOrganizationPlan200 = OrganizationPlan;
|
|
646
531
|
type GetOrganizationPlanQueryResponse = GetOrganizationPlan200;
|
|
647
532
|
|
|
648
533
|
/**
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
534
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
535
|
+
* Do not edit manually.
|
|
536
|
+
*/
|
|
652
537
|
/**
|
|
653
538
|
* @description Request body for updating an organization\'s monthly spend cap.
|
|
654
|
-
|
|
539
|
+
*/
|
|
655
540
|
type UpdateSpendLimitRequest = {
|
|
656
541
|
/**
|
|
657
542
|
* @description Monthly spend limit in dollars. Null to remove the limit.
|
|
658
543
|
* @type number, double
|
|
659
|
-
|
|
544
|
+
*/
|
|
660
545
|
spend_limit?: number | null;
|
|
661
546
|
};
|
|
662
547
|
|
|
663
548
|
/**
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
549
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
550
|
+
* Do not edit manually.
|
|
551
|
+
*/
|
|
667
552
|
|
|
668
553
|
type UpdateSpendLimitPathParams = {
|
|
669
554
|
/**
|
|
670
555
|
* @description Unique organization identifier.
|
|
671
556
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
672
557
|
* @type string
|
|
673
|
-
|
|
558
|
+
*/
|
|
674
559
|
org_id: string;
|
|
675
560
|
};
|
|
676
561
|
/**
|
|
677
562
|
* @description Spend limit updated.
|
|
678
|
-
|
|
563
|
+
*/
|
|
679
564
|
type UpdateSpendLimit200 = OrganizationPlan;
|
|
680
565
|
type UpdateSpendLimitMutationRequest = UpdateSpendLimitRequest;
|
|
681
566
|
type UpdateSpendLimitMutationResponse = UpdateSpendLimit200;
|
|
682
567
|
|
|
683
568
|
/**
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
569
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
570
|
+
* Do not edit manually.
|
|
571
|
+
*/
|
|
687
572
|
/**
|
|
688
573
|
* @description Request body for capturing cancellation feedback from a user.
|
|
689
|
-
|
|
574
|
+
*/
|
|
690
575
|
type CancellationFeedbackRequest = {
|
|
691
576
|
/**
|
|
692
577
|
* @description Predefined cancellation reason.
|
|
693
578
|
* @type string | undefined
|
|
694
|
-
|
|
579
|
+
*/
|
|
695
580
|
reason?: string;
|
|
696
581
|
/**
|
|
697
582
|
* @description Free-text feedback from the user.
|
|
698
583
|
* @type string | undefined
|
|
699
|
-
|
|
584
|
+
*/
|
|
700
585
|
feedback?: string;
|
|
701
586
|
};
|
|
702
587
|
|
|
703
588
|
/**
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
589
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
590
|
+
* Do not edit manually.
|
|
591
|
+
*/
|
|
707
592
|
|
|
708
593
|
type SubmitCancellationFeedbackPathParams = {
|
|
709
594
|
/**
|
|
710
595
|
* @description Unique organization identifier.
|
|
711
596
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
712
597
|
* @type string
|
|
713
|
-
|
|
598
|
+
*/
|
|
714
599
|
org_id: string;
|
|
715
600
|
};
|
|
716
601
|
type SubmitCancellationFeedbackMutationRequest = CancellationFeedbackRequest;
|
|
717
602
|
|
|
718
603
|
/**
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
604
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
605
|
+
* Do not edit manually.
|
|
606
|
+
*/
|
|
722
607
|
declare const cacheRuleEntryQueryTypeEnum: {
|
|
723
608
|
readonly read: "read";
|
|
724
609
|
readonly write: "write";
|
|
@@ -734,120 +619,120 @@ declare const cacheRuleEntryRecommendationEnum: {
|
|
|
734
619
|
type CacheRuleEntryRecommendationEnumKey = (typeof cacheRuleEntryRecommendationEnum)[keyof typeof cacheRuleEntryRecommendationEnum];
|
|
735
620
|
/**
|
|
736
621
|
* @description Observed query shape and its cache recommendation for a database.
|
|
737
|
-
|
|
622
|
+
*/
|
|
738
623
|
type CacheRuleEntry = {
|
|
739
624
|
/**
|
|
740
625
|
* @description xxhash64 hex of the normalized SQL.
|
|
741
626
|
* @type string
|
|
742
|
-
|
|
627
|
+
*/
|
|
743
628
|
query_hash: string;
|
|
744
629
|
/**
|
|
745
630
|
* @description SQL with literals replaced by $N placeholders.
|
|
746
631
|
* @type string
|
|
747
|
-
|
|
632
|
+
*/
|
|
748
633
|
normalized_sql: string;
|
|
749
634
|
/**
|
|
750
635
|
* @description Query classification.
|
|
751
636
|
* @type string
|
|
752
|
-
|
|
637
|
+
*/
|
|
753
638
|
query_type: CacheRuleEntryQueryTypeEnumKey;
|
|
754
639
|
/**
|
|
755
640
|
* @description Whether caching is enabled for this query shape.
|
|
756
641
|
* @type boolean
|
|
757
|
-
|
|
642
|
+
*/
|
|
758
643
|
cache_enabled: boolean;
|
|
759
644
|
/**
|
|
760
645
|
* @description TTL override in seconds. Null means use project default.
|
|
761
646
|
* @minLength 0
|
|
762
647
|
* @type integer
|
|
763
|
-
|
|
648
|
+
*/
|
|
764
649
|
cache_ttl_seconds?: number | null;
|
|
765
650
|
/**
|
|
766
651
|
* @description SWR override in seconds. Null means use project default.
|
|
767
652
|
* @minLength 0
|
|
768
653
|
* @type integer
|
|
769
|
-
|
|
654
|
+
*/
|
|
770
655
|
cache_swr_seconds?: number | null;
|
|
771
656
|
/**
|
|
772
657
|
* @description Total number of executions observed.
|
|
773
658
|
* @type integer, int64
|
|
774
|
-
|
|
659
|
+
*/
|
|
775
660
|
call_count: number;
|
|
776
661
|
/**
|
|
777
662
|
* @description Average query latency in milliseconds.
|
|
778
663
|
* @type number, double
|
|
779
|
-
|
|
664
|
+
*/
|
|
780
665
|
avg_latency_ms: number;
|
|
781
666
|
/**
|
|
782
667
|
* @description 95th percentile latency in milliseconds.
|
|
783
668
|
* @type number, double
|
|
784
|
-
|
|
669
|
+
*/
|
|
785
670
|
p95_latency_ms: number;
|
|
786
671
|
/**
|
|
787
672
|
* @description Average response size in bytes.
|
|
788
673
|
* @type integer, int64
|
|
789
|
-
|
|
674
|
+
*/
|
|
790
675
|
avg_response_bytes: number;
|
|
791
676
|
/**
|
|
792
677
|
* @description Response stability rate (0.0 to 1.0). Higher means more stable.
|
|
793
678
|
* @type number, double
|
|
794
|
-
|
|
679
|
+
*/
|
|
795
680
|
stability_rate: number;
|
|
796
681
|
/**
|
|
797
682
|
* @description Cache recommendation based on frequency, latency, and stability.
|
|
798
683
|
* @type string
|
|
799
|
-
|
|
684
|
+
*/
|
|
800
685
|
recommendation: CacheRuleEntryRecommendationEnumKey;
|
|
801
686
|
/**
|
|
802
687
|
* @description When this query was first observed.
|
|
803
688
|
* @type string, date-time
|
|
804
|
-
|
|
689
|
+
*/
|
|
805
690
|
first_seen_at: string;
|
|
806
691
|
/**
|
|
807
692
|
* @description When this query was last observed.
|
|
808
693
|
* @type string, date-time
|
|
809
|
-
|
|
694
|
+
*/
|
|
810
695
|
last_seen_at: string;
|
|
811
696
|
};
|
|
812
697
|
|
|
813
698
|
/**
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
699
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
700
|
+
* Do not edit manually.
|
|
701
|
+
*/
|
|
817
702
|
|
|
818
703
|
/**
|
|
819
704
|
* @description Cursor-paginated cache-rule entries for a database.
|
|
820
|
-
|
|
705
|
+
*/
|
|
821
706
|
type ListCacheRulesResponse = {
|
|
822
707
|
/**
|
|
823
708
|
* @description Query shapes returned for the current page.
|
|
824
709
|
* @type array
|
|
825
|
-
|
|
710
|
+
*/
|
|
826
711
|
entries: CacheRuleEntry[];
|
|
827
712
|
/**
|
|
828
713
|
* @description Opaque token for cursor-based pagination.
|
|
829
714
|
* @type string | undefined
|
|
830
|
-
|
|
715
|
+
*/
|
|
831
716
|
next_page_token?: string;
|
|
832
717
|
};
|
|
833
718
|
|
|
834
719
|
/**
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
720
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
721
|
+
* Do not edit manually.
|
|
722
|
+
*/
|
|
838
723
|
|
|
839
724
|
type ListCacheRulesPathParams = {
|
|
840
725
|
/**
|
|
841
726
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
842
727
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
843
728
|
* @type string
|
|
844
|
-
|
|
729
|
+
*/
|
|
845
730
|
project_id: string;
|
|
846
731
|
/**
|
|
847
732
|
* @description Unique database identifier (prefixed, e.g. db_xxx).
|
|
848
733
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
849
734
|
* @type string
|
|
850
|
-
|
|
735
|
+
*/
|
|
851
736
|
database_id: string;
|
|
852
737
|
};
|
|
853
738
|
type ListCacheRulesQueryParams = {
|
|
@@ -857,83 +742,83 @@ type ListCacheRulesQueryParams = {
|
|
|
857
742
|
* @maxLength 100
|
|
858
743
|
* @default 20
|
|
859
744
|
* @type integer | undefined
|
|
860
|
-
|
|
745
|
+
*/
|
|
861
746
|
page_size?: number;
|
|
862
747
|
/**
|
|
863
748
|
* @description Opaque token for cursor-based pagination.
|
|
864
749
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
865
750
|
* @type string | undefined
|
|
866
|
-
|
|
751
|
+
*/
|
|
867
752
|
page_token?: string;
|
|
868
753
|
};
|
|
869
754
|
/**
|
|
870
755
|
* @description Cache rule entries.
|
|
871
|
-
|
|
756
|
+
*/
|
|
872
757
|
type ListCacheRules200 = ListCacheRulesResponse;
|
|
873
758
|
type ListCacheRulesQueryResponse = ListCacheRules200;
|
|
874
759
|
|
|
875
760
|
/**
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
761
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
762
|
+
* Do not edit manually.
|
|
763
|
+
*/
|
|
879
764
|
/**
|
|
880
765
|
* @description Request body for updating cache behavior of a query shape.
|
|
881
|
-
|
|
766
|
+
*/
|
|
882
767
|
type UpdateCacheRuleRequest = {
|
|
883
768
|
/**
|
|
884
769
|
* @description Whether to enable caching for this query shape.
|
|
885
770
|
* @type boolean
|
|
886
|
-
|
|
771
|
+
*/
|
|
887
772
|
cache_enabled: boolean;
|
|
888
773
|
/**
|
|
889
774
|
* @description TTL override in seconds. Null to use project default.
|
|
890
775
|
* @minLength 0
|
|
891
776
|
* @maxLength 86400
|
|
892
777
|
* @type integer
|
|
893
|
-
|
|
778
|
+
*/
|
|
894
779
|
cache_ttl_seconds?: number | null;
|
|
895
780
|
/**
|
|
896
781
|
* @description SWR override in seconds. Null to use project default.
|
|
897
782
|
* @minLength 0
|
|
898
783
|
* @maxLength 86400
|
|
899
784
|
* @type integer
|
|
900
|
-
|
|
785
|
+
*/
|
|
901
786
|
cache_swr_seconds?: number | null;
|
|
902
787
|
};
|
|
903
788
|
|
|
904
789
|
/**
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
790
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
791
|
+
* Do not edit manually.
|
|
792
|
+
*/
|
|
908
793
|
|
|
909
794
|
/**
|
|
910
795
|
* @description Response returned after updating a cache rule.
|
|
911
|
-
|
|
796
|
+
*/
|
|
912
797
|
type UpdateCacheRuleResponse = {
|
|
913
798
|
/**
|
|
914
799
|
* @description Observed query shape and its cache recommendation for a database.
|
|
915
800
|
* @type object
|
|
916
|
-
|
|
801
|
+
*/
|
|
917
802
|
entry: CacheRuleEntry;
|
|
918
803
|
};
|
|
919
804
|
|
|
920
805
|
/**
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
806
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
807
|
+
* Do not edit manually.
|
|
808
|
+
*/
|
|
924
809
|
|
|
925
810
|
type UpdateCacheRulePathParams = {
|
|
926
811
|
/**
|
|
927
812
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
928
813
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
929
814
|
* @type string
|
|
930
|
-
|
|
815
|
+
*/
|
|
931
816
|
project_id: string;
|
|
932
817
|
/**
|
|
933
818
|
* @description Unique database identifier (prefixed, e.g. db_xxx).
|
|
934
819
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
935
820
|
* @type string
|
|
936
|
-
|
|
821
|
+
*/
|
|
937
822
|
database_id: string;
|
|
938
823
|
/**
|
|
939
824
|
* @description xxhash64 hex of the normalized SQL.
|
|
@@ -941,29 +826,29 @@ type UpdateCacheRulePathParams = {
|
|
|
941
826
|
* @maxLength 16
|
|
942
827
|
* @pattern ^[a-f0-9]+$
|
|
943
828
|
* @type string
|
|
944
|
-
|
|
829
|
+
*/
|
|
945
830
|
query_hash: string;
|
|
946
831
|
};
|
|
947
832
|
/**
|
|
948
833
|
* @description Cache rule updated.
|
|
949
|
-
|
|
834
|
+
*/
|
|
950
835
|
type UpdateCacheRule200 = UpdateCacheRuleResponse;
|
|
951
836
|
type UpdateCacheRuleMutationRequest = UpdateCacheRuleRequest;
|
|
952
837
|
type UpdateCacheRuleMutationResponse = UpdateCacheRule200;
|
|
953
838
|
|
|
954
839
|
/**
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
840
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
841
|
+
* Do not edit manually.
|
|
842
|
+
*/
|
|
958
843
|
/**
|
|
959
844
|
* @description Query cache configuration.
|
|
960
|
-
|
|
845
|
+
*/
|
|
961
846
|
type CacheConfig = {
|
|
962
847
|
/**
|
|
963
848
|
* @description Whether query caching is enabled. When false, all queries bypass the cache.
|
|
964
849
|
* @default true
|
|
965
850
|
* @type boolean
|
|
966
|
-
|
|
851
|
+
*/
|
|
967
852
|
enabled: boolean;
|
|
968
853
|
/**
|
|
969
854
|
* @description Cache TTL in seconds for query results.
|
|
@@ -971,7 +856,7 @@ type CacheConfig = {
|
|
|
971
856
|
* @maxLength 86400
|
|
972
857
|
* @default 60
|
|
973
858
|
* @type integer
|
|
974
|
-
|
|
859
|
+
*/
|
|
975
860
|
ttl_seconds: number;
|
|
976
861
|
/**
|
|
977
862
|
* @description Maximum number of cached query results.
|
|
@@ -979,7 +864,7 @@ type CacheConfig = {
|
|
|
979
864
|
* @maxLength 1000000
|
|
980
865
|
* @default 10000
|
|
981
866
|
* @type integer
|
|
982
|
-
|
|
867
|
+
*/
|
|
983
868
|
max_entries: number;
|
|
984
869
|
/**
|
|
985
870
|
* @description Stale-while-revalidate window in seconds.
|
|
@@ -987,14 +872,14 @@ type CacheConfig = {
|
|
|
987
872
|
* @maxLength 86400
|
|
988
873
|
* @default 30
|
|
989
874
|
* @type integer
|
|
990
|
-
|
|
875
|
+
*/
|
|
991
876
|
swr_seconds: number;
|
|
992
877
|
};
|
|
993
878
|
|
|
994
879
|
/**
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
880
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
881
|
+
* Do not edit manually.
|
|
882
|
+
*/
|
|
998
883
|
declare const databaseRoleEnum: {
|
|
999
884
|
readonly primary: "primary";
|
|
1000
885
|
readonly replica: "replica";
|
|
@@ -1003,13 +888,13 @@ type DatabaseRoleEnumKey = (typeof databaseRoleEnum)[keyof typeof databaseRoleEn
|
|
|
1003
888
|
/**
|
|
1004
889
|
* @description Database role. Primary receives writes, replicas receive reads.
|
|
1005
890
|
* @default primary
|
|
1006
|
-
|
|
891
|
+
*/
|
|
1007
892
|
type DatabaseRole = DatabaseRoleEnumKey;
|
|
1008
893
|
|
|
1009
894
|
/**
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
895
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
896
|
+
* Do not edit manually.
|
|
897
|
+
*/
|
|
1013
898
|
declare const poolModeEnum: {
|
|
1014
899
|
readonly session: "session";
|
|
1015
900
|
readonly transaction: "transaction";
|
|
@@ -1018,17 +903,17 @@ declare const poolModeEnum: {
|
|
|
1018
903
|
type PoolModeEnumKey = (typeof poolModeEnum)[keyof typeof poolModeEnum];
|
|
1019
904
|
/**
|
|
1020
905
|
* @description Connection pool mode.
|
|
1021
|
-
|
|
906
|
+
*/
|
|
1022
907
|
type PoolMode = PoolModeEnumKey;
|
|
1023
908
|
|
|
1024
909
|
/**
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
910
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
911
|
+
* Do not edit manually.
|
|
912
|
+
*/
|
|
1028
913
|
|
|
1029
914
|
/**
|
|
1030
915
|
* @description Connection pool configuration.
|
|
1031
|
-
|
|
916
|
+
*/
|
|
1032
917
|
type PoolConfig = {
|
|
1033
918
|
/**
|
|
1034
919
|
* @description Maximum connections in the pool.
|
|
@@ -1036,7 +921,7 @@ type PoolConfig = {
|
|
|
1036
921
|
* @maxLength 10000
|
|
1037
922
|
* @default 10
|
|
1038
923
|
* @type integer
|
|
1039
|
-
|
|
924
|
+
*/
|
|
1040
925
|
pool_size: number;
|
|
1041
926
|
/**
|
|
1042
927
|
* @description Minimum idle connections maintained.
|
|
@@ -1044,12 +929,12 @@ type PoolConfig = {
|
|
|
1044
929
|
* @maxLength 10000
|
|
1045
930
|
* @default 1
|
|
1046
931
|
* @type integer
|
|
1047
|
-
|
|
932
|
+
*/
|
|
1048
933
|
min_pool_size: number;
|
|
1049
934
|
/**
|
|
1050
935
|
* @description Connection pool mode.
|
|
1051
936
|
* @type string
|
|
1052
|
-
|
|
937
|
+
*/
|
|
1053
938
|
pool_mode: PoolMode;
|
|
1054
939
|
/**
|
|
1055
940
|
* @description Maximum concurrent upstream connections per pool.
|
|
@@ -1057,14 +942,14 @@ type PoolConfig = {
|
|
|
1057
942
|
* @maxLength 10000
|
|
1058
943
|
* @default 200
|
|
1059
944
|
* @type integer | undefined
|
|
1060
|
-
|
|
945
|
+
*/
|
|
1061
946
|
max_active?: number;
|
|
1062
947
|
};
|
|
1063
948
|
|
|
1064
949
|
/**
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
950
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
951
|
+
* Do not edit manually.
|
|
952
|
+
*/
|
|
1068
953
|
declare const SSLModeEnum: {
|
|
1069
954
|
readonly disable: "disable";
|
|
1070
955
|
readonly allow: "allow";
|
|
@@ -1076,125 +961,139 @@ declare const SSLModeEnum: {
|
|
|
1076
961
|
type SSLModeEnumKey = (typeof SSLModeEnum)[keyof typeof SSLModeEnum];
|
|
1077
962
|
/**
|
|
1078
963
|
* @description PostgreSQL SSL connection mode.
|
|
1079
|
-
|
|
964
|
+
*/
|
|
1080
965
|
type SSLMode = SSLModeEnumKey;
|
|
1081
966
|
|
|
1082
967
|
/**
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
968
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
969
|
+
* Do not edit manually.
|
|
970
|
+
*/
|
|
1086
971
|
|
|
1087
972
|
/**
|
|
1088
973
|
* @description Registered upstream PostgreSQL database for a project.
|
|
1089
|
-
|
|
974
|
+
*/
|
|
1090
975
|
type Database = {
|
|
1091
976
|
/**
|
|
1092
977
|
* @description Unique database identifier (prefixed).
|
|
1093
978
|
* @type string
|
|
1094
|
-
|
|
979
|
+
*/
|
|
1095
980
|
id: string;
|
|
1096
981
|
/**
|
|
1097
982
|
* @description Owning project ID.
|
|
1098
983
|
* @type string
|
|
1099
|
-
|
|
984
|
+
*/
|
|
1100
985
|
project_id: string;
|
|
1101
986
|
/**
|
|
1102
987
|
* @description Connection string for connecting through PgBeam proxy. Password is replaced with a placeholder.
|
|
1103
988
|
* @type string | undefined
|
|
1104
|
-
|
|
989
|
+
*/
|
|
1105
990
|
readonly connection_string?: string;
|
|
1106
991
|
/**
|
|
1107
992
|
* @description PostgreSQL host.
|
|
1108
993
|
* @type string
|
|
1109
|
-
|
|
994
|
+
*/
|
|
1110
995
|
host: string;
|
|
1111
996
|
/**
|
|
1112
997
|
* @description PostgreSQL port.
|
|
1113
998
|
* @minLength 1
|
|
1114
999
|
* @maxLength 65535
|
|
1115
1000
|
* @type integer
|
|
1116
|
-
|
|
1001
|
+
*/
|
|
1117
1002
|
port: number;
|
|
1118
1003
|
/**
|
|
1119
1004
|
* @description PostgreSQL database name.
|
|
1120
1005
|
* @type string
|
|
1121
|
-
|
|
1006
|
+
*/
|
|
1122
1007
|
name: string;
|
|
1123
1008
|
/**
|
|
1124
1009
|
* @description PostgreSQL username.
|
|
1125
1010
|
* @type string
|
|
1126
|
-
|
|
1011
|
+
*/
|
|
1127
1012
|
username: string;
|
|
1128
1013
|
/**
|
|
1129
1014
|
* @description PostgreSQL SSL connection mode.
|
|
1130
1015
|
* @type string
|
|
1131
|
-
|
|
1016
|
+
*/
|
|
1132
1017
|
ssl_mode: SSLMode;
|
|
1133
1018
|
/**
|
|
1134
1019
|
* @description Database role. Primary receives writes, replicas receive reads.
|
|
1135
1020
|
* @default "primary"
|
|
1136
1021
|
* @type string | undefined
|
|
1137
|
-
|
|
1022
|
+
*/
|
|
1138
1023
|
role?: DatabaseRole;
|
|
1139
1024
|
/**
|
|
1140
1025
|
* @description Region where the connection pool is maintained (near the database). When set and different from the client\'s edge region, queries are relayed through the pool region\'s data plane. Empty means direct connection.\n
|
|
1141
1026
|
* @type string | undefined
|
|
1142
|
-
|
|
1027
|
+
*/
|
|
1143
1028
|
pool_region?: string;
|
|
1029
|
+
/**
|
|
1030
|
+
* @description Query timeout in milliseconds. When set (> 0), the proxy sends SET statement_timeout on upstream connections. 0 means disabled (default).\n
|
|
1031
|
+
* @minLength 0
|
|
1032
|
+
* @maxLength 300000
|
|
1033
|
+
* @default 0
|
|
1034
|
+
* @type integer | undefined
|
|
1035
|
+
*/
|
|
1036
|
+
query_timeout_ms?: number;
|
|
1037
|
+
/**
|
|
1038
|
+
* @description When enabled and replicas are configured, SELECT queries automatically route to read replicas without requiring the @pgbeam:replica SQL annotation.\n
|
|
1039
|
+
* @default false
|
|
1040
|
+
* @type boolean | undefined
|
|
1041
|
+
*/
|
|
1042
|
+
auto_read_routing?: boolean;
|
|
1144
1043
|
/**
|
|
1145
1044
|
* @description Query cache configuration.
|
|
1146
1045
|
* @type object
|
|
1147
|
-
|
|
1046
|
+
*/
|
|
1148
1047
|
cache_config: CacheConfig;
|
|
1149
1048
|
/**
|
|
1150
1049
|
* @description Connection pool configuration.
|
|
1151
1050
|
* @type object
|
|
1152
|
-
|
|
1051
|
+
*/
|
|
1153
1052
|
pool_config: PoolConfig;
|
|
1154
1053
|
/**
|
|
1155
1054
|
* @description When the database registration was created.
|
|
1156
1055
|
* @type string, date-time
|
|
1157
|
-
|
|
1056
|
+
*/
|
|
1158
1057
|
created_at: string;
|
|
1159
1058
|
/**
|
|
1160
1059
|
* @description When the database registration was last updated.
|
|
1161
1060
|
* @type string, date-time
|
|
1162
|
-
|
|
1061
|
+
*/
|
|
1163
1062
|
updated_at: string;
|
|
1164
1063
|
};
|
|
1165
1064
|
|
|
1166
1065
|
/**
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1066
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1067
|
+
* Do not edit manually.
|
|
1068
|
+
*/
|
|
1170
1069
|
|
|
1171
1070
|
/**
|
|
1172
1071
|
* @description Cursor-paginated list of databases attached to a project.
|
|
1173
|
-
|
|
1072
|
+
*/
|
|
1174
1073
|
type ListDatabasesResponse = {
|
|
1175
1074
|
/**
|
|
1176
1075
|
* @description Databases on the current page.
|
|
1177
1076
|
* @type array
|
|
1178
|
-
|
|
1077
|
+
*/
|
|
1179
1078
|
databases: Database[];
|
|
1180
1079
|
/**
|
|
1181
1080
|
* @description Token for the next page. Empty if no more results.
|
|
1182
1081
|
* @type string | undefined
|
|
1183
|
-
|
|
1082
|
+
*/
|
|
1184
1083
|
next_page_token?: string;
|
|
1185
1084
|
};
|
|
1186
1085
|
|
|
1187
1086
|
/**
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1087
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1088
|
+
* Do not edit manually.
|
|
1089
|
+
*/
|
|
1191
1090
|
|
|
1192
1091
|
type ListDatabasesPathParams = {
|
|
1193
1092
|
/**
|
|
1194
1093
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
1195
1094
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1196
1095
|
* @type string
|
|
1197
|
-
|
|
1096
|
+
*/
|
|
1198
1097
|
project_id: string;
|
|
1199
1098
|
};
|
|
1200
1099
|
type ListDatabasesQueryParams = {
|
|
@@ -1204,431 +1103,457 @@ type ListDatabasesQueryParams = {
|
|
|
1204
1103
|
* @maxLength 100
|
|
1205
1104
|
* @default 20
|
|
1206
1105
|
* @type integer | undefined
|
|
1207
|
-
|
|
1106
|
+
*/
|
|
1208
1107
|
page_size?: number;
|
|
1209
1108
|
/**
|
|
1210
1109
|
* @description Opaque token for cursor-based pagination.
|
|
1211
1110
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1212
1111
|
* @type string | undefined
|
|
1213
|
-
|
|
1112
|
+
*/
|
|
1214
1113
|
page_token?: string;
|
|
1215
1114
|
};
|
|
1216
1115
|
/**
|
|
1217
1116
|
* @description List of databases.
|
|
1218
|
-
|
|
1117
|
+
*/
|
|
1219
1118
|
type ListDatabases200 = ListDatabasesResponse;
|
|
1220
1119
|
type ListDatabasesQueryResponse = ListDatabases200;
|
|
1221
1120
|
|
|
1222
1121
|
/**
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1122
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1123
|
+
* Do not edit manually.
|
|
1124
|
+
*/
|
|
1226
1125
|
|
|
1227
1126
|
/**
|
|
1228
1127
|
* @description Request body for registering an upstream database.
|
|
1229
|
-
|
|
1128
|
+
*/
|
|
1230
1129
|
type CreateDatabaseRequest = {
|
|
1231
1130
|
/**
|
|
1232
1131
|
* @description PostgreSQL host.
|
|
1233
1132
|
* @minLength 1
|
|
1234
1133
|
* @pattern ^[^\s\x00]+$
|
|
1235
1134
|
* @type string
|
|
1236
|
-
|
|
1135
|
+
*/
|
|
1237
1136
|
host: string;
|
|
1238
1137
|
/**
|
|
1239
1138
|
* @description PostgreSQL port.
|
|
1240
1139
|
* @minLength 1
|
|
1241
1140
|
* @maxLength 65535
|
|
1242
1141
|
* @type integer
|
|
1243
|
-
|
|
1142
|
+
*/
|
|
1244
1143
|
port: number;
|
|
1245
1144
|
/**
|
|
1246
1145
|
* @description PostgreSQL database name.
|
|
1247
1146
|
* @minLength 1
|
|
1248
1147
|
* @pattern ^[^\x00]+$
|
|
1249
1148
|
* @type string
|
|
1250
|
-
|
|
1149
|
+
*/
|
|
1251
1150
|
name: string;
|
|
1252
1151
|
/**
|
|
1253
1152
|
* @description PostgreSQL username.
|
|
1254
1153
|
* @minLength 1
|
|
1255
1154
|
* @pattern ^[^\x00]+$
|
|
1256
1155
|
* @type string
|
|
1257
|
-
|
|
1156
|
+
*/
|
|
1258
1157
|
username: string;
|
|
1259
1158
|
/**
|
|
1260
1159
|
* @description PostgreSQL password. Stored encrypted at rest.
|
|
1261
1160
|
* @minLength 1
|
|
1262
1161
|
* @pattern ^[^\x00]+$
|
|
1263
1162
|
* @type string, password
|
|
1264
|
-
|
|
1163
|
+
*/
|
|
1265
1164
|
password: string;
|
|
1266
1165
|
/**
|
|
1267
1166
|
* @description PostgreSQL SSL connection mode.
|
|
1268
1167
|
* @type string | undefined
|
|
1269
|
-
|
|
1168
|
+
*/
|
|
1270
1169
|
ssl_mode?: SSLMode;
|
|
1271
1170
|
/**
|
|
1272
1171
|
* @description Database role. Primary receives writes, replicas receive reads.
|
|
1273
1172
|
* @default "primary"
|
|
1274
1173
|
* @type string | undefined
|
|
1275
|
-
|
|
1174
|
+
*/
|
|
1276
1175
|
role?: DatabaseRole;
|
|
1277
1176
|
/**
|
|
1278
1177
|
* @description Region where the connection pool is maintained (near the database). When set and different from the client\'s edge region, queries are relayed through the pool region\'s data plane. Empty means direct connection.\n
|
|
1279
1178
|
* @type string | undefined
|
|
1280
|
-
|
|
1179
|
+
*/
|
|
1281
1180
|
pool_region?: string;
|
|
1181
|
+
/**
|
|
1182
|
+
* @description Query timeout in milliseconds. 0 means disabled (default).\n
|
|
1183
|
+
* @minLength 0
|
|
1184
|
+
* @maxLength 300000
|
|
1185
|
+
* @default 0
|
|
1186
|
+
* @type integer | undefined
|
|
1187
|
+
*/
|
|
1188
|
+
query_timeout_ms?: number;
|
|
1189
|
+
/**
|
|
1190
|
+
* @description Auto-route SELECT queries to read replicas.\n
|
|
1191
|
+
* @default false
|
|
1192
|
+
* @type boolean | undefined
|
|
1193
|
+
*/
|
|
1194
|
+
auto_read_routing?: boolean;
|
|
1282
1195
|
/**
|
|
1283
1196
|
* @description Query cache configuration.
|
|
1284
1197
|
* @type object | undefined
|
|
1285
|
-
|
|
1198
|
+
*/
|
|
1286
1199
|
cache_config?: CacheConfig;
|
|
1287
1200
|
/**
|
|
1288
1201
|
* @description Connection pool configuration.
|
|
1289
1202
|
* @type object | undefined
|
|
1290
|
-
|
|
1203
|
+
*/
|
|
1291
1204
|
pool_config?: PoolConfig;
|
|
1292
1205
|
};
|
|
1293
1206
|
|
|
1294
1207
|
/**
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1208
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1209
|
+
* Do not edit manually.
|
|
1210
|
+
*/
|
|
1298
1211
|
|
|
1299
1212
|
type CreateDatabasePathParams = {
|
|
1300
1213
|
/**
|
|
1301
1214
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
1302
1215
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1303
1216
|
* @type string
|
|
1304
|
-
|
|
1217
|
+
*/
|
|
1305
1218
|
project_id: string;
|
|
1306
1219
|
};
|
|
1307
1220
|
/**
|
|
1308
1221
|
* @description Database created.
|
|
1309
|
-
|
|
1222
|
+
*/
|
|
1310
1223
|
type CreateDatabase201 = Database;
|
|
1311
1224
|
type CreateDatabaseMutationRequest = CreateDatabaseRequest;
|
|
1312
1225
|
type CreateDatabaseMutationResponse = CreateDatabase201;
|
|
1313
1226
|
|
|
1314
1227
|
/**
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1228
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1229
|
+
* Do not edit manually.
|
|
1230
|
+
*/
|
|
1318
1231
|
|
|
1319
1232
|
type GetDatabasePathParams = {
|
|
1320
1233
|
/**
|
|
1321
1234
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
1322
1235
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1323
1236
|
* @type string
|
|
1324
|
-
|
|
1237
|
+
*/
|
|
1325
1238
|
project_id: string;
|
|
1326
1239
|
/**
|
|
1327
1240
|
* @description Unique database identifier (prefixed, e.g. db_xxx).
|
|
1328
1241
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1329
1242
|
* @type string
|
|
1330
|
-
|
|
1243
|
+
*/
|
|
1331
1244
|
database_id: string;
|
|
1332
1245
|
};
|
|
1333
1246
|
/**
|
|
1334
1247
|
* @description Database found.
|
|
1335
|
-
|
|
1248
|
+
*/
|
|
1336
1249
|
type GetDatabase200 = Database;
|
|
1337
1250
|
type GetDatabaseQueryResponse = GetDatabase200;
|
|
1338
1251
|
|
|
1339
1252
|
/**
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1253
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1254
|
+
* Do not edit manually.
|
|
1255
|
+
*/
|
|
1343
1256
|
|
|
1344
1257
|
/**
|
|
1345
1258
|
* @description Request body for partially updating an upstream database.
|
|
1346
|
-
|
|
1259
|
+
*/
|
|
1347
1260
|
type UpdateDatabaseRequest = {
|
|
1348
1261
|
/**
|
|
1349
1262
|
* @description Updated PostgreSQL host.
|
|
1350
1263
|
* @minLength 1
|
|
1351
1264
|
* @pattern ^[^\x00]+$
|
|
1352
1265
|
* @type string | undefined
|
|
1353
|
-
|
|
1266
|
+
*/
|
|
1354
1267
|
host?: string;
|
|
1355
1268
|
/**
|
|
1356
1269
|
* @description Updated PostgreSQL port.
|
|
1357
1270
|
* @minLength 1
|
|
1358
1271
|
* @maxLength 65535
|
|
1359
1272
|
* @type integer | undefined
|
|
1360
|
-
|
|
1273
|
+
*/
|
|
1361
1274
|
port?: number;
|
|
1362
1275
|
/**
|
|
1363
1276
|
* @description Updated PostgreSQL database name.
|
|
1364
1277
|
* @pattern ^[^\x00]*$
|
|
1365
1278
|
* @type string | undefined
|
|
1366
|
-
|
|
1279
|
+
*/
|
|
1367
1280
|
name?: string;
|
|
1368
1281
|
/**
|
|
1369
1282
|
* @description Updated PostgreSQL username.
|
|
1370
1283
|
* @pattern ^[^\x00]*$
|
|
1371
1284
|
* @type string | undefined
|
|
1372
|
-
|
|
1285
|
+
*/
|
|
1373
1286
|
username?: string;
|
|
1374
1287
|
/**
|
|
1375
1288
|
* @description Updated PostgreSQL password.
|
|
1376
1289
|
* @pattern ^[^\x00]*$
|
|
1377
1290
|
* @type string | undefined, password
|
|
1378
|
-
|
|
1291
|
+
*/
|
|
1379
1292
|
password?: string;
|
|
1380
1293
|
/**
|
|
1381
1294
|
* @description PostgreSQL SSL connection mode.
|
|
1382
1295
|
* @type string | undefined
|
|
1383
|
-
|
|
1296
|
+
*/
|
|
1384
1297
|
ssl_mode?: SSLMode;
|
|
1385
1298
|
/**
|
|
1386
1299
|
* @description Database role. Primary receives writes, replicas receive reads.
|
|
1387
1300
|
* @default "primary"
|
|
1388
1301
|
* @type string | undefined
|
|
1389
|
-
|
|
1302
|
+
*/
|
|
1390
1303
|
role?: DatabaseRole;
|
|
1391
1304
|
/**
|
|
1392
1305
|
* @description Region where the connection pool is maintained (near the database). When set and different from the client\'s edge region, queries are relayed through the pool region\'s data plane. Empty means direct connection.\n
|
|
1393
1306
|
* @type string | undefined
|
|
1394
|
-
|
|
1307
|
+
*/
|
|
1395
1308
|
pool_region?: string;
|
|
1309
|
+
/**
|
|
1310
|
+
* @description Query timeout in milliseconds. 0 means disabled.\n
|
|
1311
|
+
* @minLength 0
|
|
1312
|
+
* @maxLength 300000
|
|
1313
|
+
* @type integer | undefined
|
|
1314
|
+
*/
|
|
1315
|
+
query_timeout_ms?: number;
|
|
1316
|
+
/**
|
|
1317
|
+
* @description Auto-route SELECT queries to read replicas.\n
|
|
1318
|
+
* @type boolean | undefined
|
|
1319
|
+
*/
|
|
1320
|
+
auto_read_routing?: boolean;
|
|
1396
1321
|
/**
|
|
1397
1322
|
* @description Query cache configuration.
|
|
1398
1323
|
* @type object | undefined
|
|
1399
|
-
|
|
1324
|
+
*/
|
|
1400
1325
|
cache_config?: CacheConfig;
|
|
1401
1326
|
/**
|
|
1402
1327
|
* @description Connection pool configuration.
|
|
1403
1328
|
* @type object | undefined
|
|
1404
|
-
|
|
1329
|
+
*/
|
|
1405
1330
|
pool_config?: PoolConfig;
|
|
1406
1331
|
};
|
|
1407
1332
|
|
|
1408
1333
|
/**
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1334
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1335
|
+
* Do not edit manually.
|
|
1336
|
+
*/
|
|
1412
1337
|
|
|
1413
1338
|
type UpdateDatabasePathParams = {
|
|
1414
1339
|
/**
|
|
1415
1340
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
1416
1341
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1417
1342
|
* @type string
|
|
1418
|
-
|
|
1343
|
+
*/
|
|
1419
1344
|
project_id: string;
|
|
1420
1345
|
/**
|
|
1421
1346
|
* @description Unique database identifier (prefixed, e.g. db_xxx).
|
|
1422
1347
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1423
1348
|
* @type string
|
|
1424
|
-
|
|
1349
|
+
*/
|
|
1425
1350
|
database_id: string;
|
|
1426
1351
|
};
|
|
1427
1352
|
/**
|
|
1428
1353
|
* @description Database updated.
|
|
1429
|
-
|
|
1354
|
+
*/
|
|
1430
1355
|
type UpdateDatabase200 = Database;
|
|
1431
1356
|
type UpdateDatabaseMutationRequest = UpdateDatabaseRequest;
|
|
1432
1357
|
type UpdateDatabaseMutationResponse = UpdateDatabase200;
|
|
1433
1358
|
|
|
1434
1359
|
/**
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1360
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1361
|
+
* Do not edit manually.
|
|
1362
|
+
*/
|
|
1438
1363
|
|
|
1439
1364
|
type DeleteDatabasePathParams = {
|
|
1440
1365
|
/**
|
|
1441
1366
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
1442
1367
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1443
1368
|
* @type string
|
|
1444
|
-
|
|
1369
|
+
*/
|
|
1445
1370
|
project_id: string;
|
|
1446
1371
|
/**
|
|
1447
1372
|
* @description Unique database identifier (prefixed, e.g. db_xxx).
|
|
1448
1373
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1449
1374
|
* @type string
|
|
1450
|
-
|
|
1375
|
+
*/
|
|
1451
1376
|
database_id: string;
|
|
1452
1377
|
};
|
|
1453
1378
|
|
|
1454
1379
|
/**
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1380
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1381
|
+
* Do not edit manually.
|
|
1382
|
+
*/
|
|
1458
1383
|
/**
|
|
1459
1384
|
* @description Result of testing connectivity to an upstream database.
|
|
1460
|
-
|
|
1385
|
+
*/
|
|
1461
1386
|
type TestConnectionResult = {
|
|
1462
1387
|
/**
|
|
1463
1388
|
* @description Whether the connection test succeeded.
|
|
1464
1389
|
* @type boolean
|
|
1465
|
-
|
|
1390
|
+
*/
|
|
1466
1391
|
ok: boolean;
|
|
1467
1392
|
/**
|
|
1468
1393
|
* @description Round-trip connection time in milliseconds.
|
|
1469
1394
|
* @type number
|
|
1470
|
-
|
|
1395
|
+
*/
|
|
1471
1396
|
latency_ms?: number | null;
|
|
1472
1397
|
/**
|
|
1473
1398
|
* @description Error message if the connection test failed.
|
|
1474
1399
|
* @type string | undefined
|
|
1475
|
-
|
|
1400
|
+
*/
|
|
1476
1401
|
error?: string;
|
|
1477
1402
|
/**
|
|
1478
1403
|
* @description PostgreSQL server version string, if available.
|
|
1479
1404
|
* @type string | undefined
|
|
1480
|
-
|
|
1405
|
+
*/
|
|
1481
1406
|
server_version?: string;
|
|
1482
1407
|
};
|
|
1483
1408
|
|
|
1484
1409
|
/**
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1410
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1411
|
+
* Do not edit manually.
|
|
1412
|
+
*/
|
|
1488
1413
|
|
|
1489
1414
|
type TestDatabaseConnectionPathParams = {
|
|
1490
1415
|
/**
|
|
1491
1416
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
1492
1417
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1493
1418
|
* @type string
|
|
1494
|
-
|
|
1419
|
+
*/
|
|
1495
1420
|
project_id: string;
|
|
1496
1421
|
/**
|
|
1497
1422
|
* @description Unique database identifier (prefixed, e.g. db_xxx).
|
|
1498
1423
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1499
1424
|
* @type string
|
|
1500
|
-
|
|
1425
|
+
*/
|
|
1501
1426
|
database_id: string;
|
|
1502
1427
|
};
|
|
1503
1428
|
/**
|
|
1504
1429
|
* @description Connection test result.
|
|
1505
|
-
|
|
1430
|
+
*/
|
|
1506
1431
|
type TestDatabaseConnection200 = TestConnectionResult;
|
|
1507
1432
|
type TestDatabaseConnectionMutationResponse = TestDatabaseConnection200;
|
|
1508
1433
|
|
|
1509
1434
|
/**
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1435
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1436
|
+
* Do not edit manually.
|
|
1437
|
+
*/
|
|
1513
1438
|
/**
|
|
1514
1439
|
* @description Custom database hostname attached to a project.
|
|
1515
|
-
|
|
1440
|
+
*/
|
|
1516
1441
|
type CustomDomain = {
|
|
1517
1442
|
/**
|
|
1518
1443
|
* @description Unique domain identifier (prefixed).
|
|
1519
1444
|
* @type string
|
|
1520
|
-
|
|
1445
|
+
*/
|
|
1521
1446
|
id: string;
|
|
1522
1447
|
/**
|
|
1523
1448
|
* @description Owning project ID.
|
|
1524
1449
|
* @type string
|
|
1525
|
-
|
|
1450
|
+
*/
|
|
1526
1451
|
project_id: string;
|
|
1527
1452
|
/**
|
|
1528
1453
|
* @description The custom domain name.
|
|
1529
1454
|
* @type string
|
|
1530
|
-
|
|
1455
|
+
*/
|
|
1531
1456
|
domain: string;
|
|
1532
1457
|
/**
|
|
1533
1458
|
* @description Whether DNS ownership has been verified.
|
|
1534
1459
|
* @type boolean
|
|
1535
|
-
|
|
1460
|
+
*/
|
|
1536
1461
|
verified: boolean;
|
|
1537
1462
|
/**
|
|
1538
1463
|
* @description When DNS verification was completed.
|
|
1539
1464
|
* @type string, date-time
|
|
1540
|
-
|
|
1465
|
+
*/
|
|
1541
1466
|
verified_at?: string | null;
|
|
1542
1467
|
/**
|
|
1543
1468
|
* @description When the TLS certificate expires.
|
|
1544
1469
|
* @type string, date-time
|
|
1545
|
-
|
|
1470
|
+
*/
|
|
1546
1471
|
tls_cert_expiry?: string | null;
|
|
1547
1472
|
/**
|
|
1548
1473
|
* @description Token value for the DNS TXT record verification.
|
|
1549
1474
|
* @type string
|
|
1550
|
-
|
|
1475
|
+
*/
|
|
1551
1476
|
dns_verification_token: string;
|
|
1552
1477
|
/**
|
|
1553
1478
|
* @description DNS records the user needs to create.
|
|
1554
1479
|
* @type object | undefined
|
|
1555
|
-
|
|
1480
|
+
*/
|
|
1556
1481
|
dns_instructions?: {
|
|
1557
1482
|
/**
|
|
1558
1483
|
* @description The CNAME record host.
|
|
1559
1484
|
* @type string | undefined
|
|
1560
|
-
|
|
1485
|
+
*/
|
|
1561
1486
|
cname_host?: string;
|
|
1562
1487
|
/**
|
|
1563
1488
|
* @description The CNAME record target.
|
|
1564
1489
|
* @type string | undefined
|
|
1565
|
-
|
|
1490
|
+
*/
|
|
1566
1491
|
cname_target?: string;
|
|
1567
1492
|
/**
|
|
1568
1493
|
* @description The TXT record host for verification.
|
|
1569
1494
|
* @type string | undefined
|
|
1570
|
-
|
|
1495
|
+
*/
|
|
1571
1496
|
txt_host?: string;
|
|
1572
1497
|
/**
|
|
1573
1498
|
* @description The TXT record value for verification.
|
|
1574
1499
|
* @type string | undefined
|
|
1575
|
-
|
|
1500
|
+
*/
|
|
1576
1501
|
txt_value?: string;
|
|
1577
1502
|
/**
|
|
1578
1503
|
* @description The CNAME record host for ACME TLS certificate issuance.
|
|
1579
1504
|
* @type string | undefined
|
|
1580
|
-
|
|
1505
|
+
*/
|
|
1581
1506
|
acme_cname_host?: string;
|
|
1582
1507
|
/**
|
|
1583
1508
|
* @description The CNAME target for ACME challenge delegation.
|
|
1584
1509
|
* @type string | undefined
|
|
1585
|
-
|
|
1510
|
+
*/
|
|
1586
1511
|
acme_cname_target?: string;
|
|
1587
1512
|
};
|
|
1588
1513
|
/**
|
|
1589
1514
|
* @description When the custom domain was created.
|
|
1590
1515
|
* @type string, date-time
|
|
1591
|
-
|
|
1516
|
+
*/
|
|
1592
1517
|
created_at: string;
|
|
1593
1518
|
/**
|
|
1594
1519
|
* @description When the custom domain was last updated.
|
|
1595
1520
|
* @type string, date-time
|
|
1596
|
-
|
|
1521
|
+
*/
|
|
1597
1522
|
updated_at: string;
|
|
1598
1523
|
};
|
|
1599
1524
|
|
|
1600
1525
|
/**
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1526
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1527
|
+
* Do not edit manually.
|
|
1528
|
+
*/
|
|
1604
1529
|
|
|
1605
1530
|
/**
|
|
1606
1531
|
* @description Cursor-paginated list of custom domains for a project.
|
|
1607
|
-
|
|
1532
|
+
*/
|
|
1608
1533
|
type ListCustomDomainsResponse = {
|
|
1609
1534
|
/**
|
|
1610
1535
|
* @description Custom domains on the current page.
|
|
1611
1536
|
* @type array
|
|
1612
|
-
|
|
1537
|
+
*/
|
|
1613
1538
|
domains: CustomDomain[];
|
|
1614
1539
|
/**
|
|
1615
1540
|
* @description Token for the next page. Empty if no more results.
|
|
1616
1541
|
* @type string | undefined
|
|
1617
|
-
|
|
1542
|
+
*/
|
|
1618
1543
|
next_page_token?: string;
|
|
1619
1544
|
};
|
|
1620
1545
|
|
|
1621
1546
|
/**
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1547
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1548
|
+
* Do not edit manually.
|
|
1549
|
+
*/
|
|
1625
1550
|
|
|
1626
1551
|
type ListCustomDomainsPathParams = {
|
|
1627
1552
|
/**
|
|
1628
1553
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
1629
1554
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1630
1555
|
* @type string
|
|
1631
|
-
|
|
1556
|
+
*/
|
|
1632
1557
|
project_id: string;
|
|
1633
1558
|
};
|
|
1634
1559
|
type ListCustomDomainsQueryParams = {
|
|
@@ -1638,28 +1563,28 @@ type ListCustomDomainsQueryParams = {
|
|
|
1638
1563
|
* @maxLength 100
|
|
1639
1564
|
* @default 20
|
|
1640
1565
|
* @type integer | undefined
|
|
1641
|
-
|
|
1566
|
+
*/
|
|
1642
1567
|
page_size?: number;
|
|
1643
1568
|
/**
|
|
1644
1569
|
* @description Opaque token for cursor-based pagination.
|
|
1645
1570
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1646
1571
|
* @type string | undefined
|
|
1647
|
-
|
|
1572
|
+
*/
|
|
1648
1573
|
page_token?: string;
|
|
1649
1574
|
};
|
|
1650
1575
|
/**
|
|
1651
1576
|
* @description List of custom domains.
|
|
1652
|
-
|
|
1577
|
+
*/
|
|
1653
1578
|
type ListCustomDomains200 = ListCustomDomainsResponse;
|
|
1654
1579
|
type ListCustomDomainsQueryResponse = ListCustomDomains200;
|
|
1655
1580
|
|
|
1656
1581
|
/**
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1582
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1583
|
+
* Do not edit manually.
|
|
1584
|
+
*/
|
|
1660
1585
|
/**
|
|
1661
1586
|
* @description Request body for attaching a custom domain to a project.
|
|
1662
|
-
|
|
1587
|
+
*/
|
|
1663
1588
|
type CreateCustomDomainRequest = {
|
|
1664
1589
|
/**
|
|
1665
1590
|
* @description The custom domain name to add (e.g., db.example.com).
|
|
@@ -1667,105 +1592,105 @@ type CreateCustomDomainRequest = {
|
|
|
1667
1592
|
* @maxLength 253
|
|
1668
1593
|
* @pattern ^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?)*$
|
|
1669
1594
|
* @type string
|
|
1670
|
-
|
|
1595
|
+
*/
|
|
1671
1596
|
domain: string;
|
|
1672
1597
|
};
|
|
1673
1598
|
|
|
1674
1599
|
/**
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1600
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1601
|
+
* Do not edit manually.
|
|
1602
|
+
*/
|
|
1678
1603
|
|
|
1679
1604
|
type CreateCustomDomainPathParams = {
|
|
1680
1605
|
/**
|
|
1681
1606
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
1682
1607
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1683
1608
|
* @type string
|
|
1684
|
-
|
|
1609
|
+
*/
|
|
1685
1610
|
project_id: string;
|
|
1686
1611
|
};
|
|
1687
1612
|
/**
|
|
1688
1613
|
* @description Custom domain created.
|
|
1689
|
-
|
|
1614
|
+
*/
|
|
1690
1615
|
type CreateCustomDomain201 = CustomDomain;
|
|
1691
1616
|
type CreateCustomDomainMutationRequest = CreateCustomDomainRequest;
|
|
1692
1617
|
type CreateCustomDomainMutationResponse = CreateCustomDomain201;
|
|
1693
1618
|
|
|
1694
1619
|
/**
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1620
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1621
|
+
* Do not edit manually.
|
|
1622
|
+
*/
|
|
1698
1623
|
|
|
1699
1624
|
type DeleteCustomDomainPathParams = {
|
|
1700
1625
|
/**
|
|
1701
1626
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
1702
1627
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1703
1628
|
* @type string
|
|
1704
|
-
|
|
1629
|
+
*/
|
|
1705
1630
|
project_id: string;
|
|
1706
1631
|
/**
|
|
1707
1632
|
* @description Unique custom domain identifier (prefixed, e.g. dom_xxx).
|
|
1708
1633
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1709
1634
|
* @type string
|
|
1710
|
-
|
|
1635
|
+
*/
|
|
1711
1636
|
domain_id: string;
|
|
1712
1637
|
};
|
|
1713
1638
|
|
|
1714
1639
|
/**
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1640
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1641
|
+
* Do not edit manually.
|
|
1642
|
+
*/
|
|
1718
1643
|
|
|
1719
1644
|
/**
|
|
1720
1645
|
* @description Result of checking DNS ownership for a custom domain.
|
|
1721
|
-
|
|
1646
|
+
*/
|
|
1722
1647
|
type VerifyCustomDomainResponse = {
|
|
1723
1648
|
/**
|
|
1724
1649
|
* @description Whether DNS verification succeeded.
|
|
1725
1650
|
* @type boolean
|
|
1726
|
-
|
|
1651
|
+
*/
|
|
1727
1652
|
verified: boolean;
|
|
1728
1653
|
/**
|
|
1729
1654
|
* @description Error message if verification failed.
|
|
1730
1655
|
* @type string | undefined
|
|
1731
|
-
|
|
1656
|
+
*/
|
|
1732
1657
|
error?: string;
|
|
1733
1658
|
/**
|
|
1734
1659
|
* @description Custom database hostname attached to a project.
|
|
1735
1660
|
* @type object | undefined
|
|
1736
|
-
|
|
1661
|
+
*/
|
|
1737
1662
|
domain?: CustomDomain;
|
|
1738
1663
|
};
|
|
1739
1664
|
|
|
1740
1665
|
/**
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1666
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1667
|
+
* Do not edit manually.
|
|
1668
|
+
*/
|
|
1744
1669
|
|
|
1745
1670
|
type VerifyCustomDomainPathParams = {
|
|
1746
1671
|
/**
|
|
1747
1672
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
1748
1673
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1749
1674
|
* @type string
|
|
1750
|
-
|
|
1675
|
+
*/
|
|
1751
1676
|
project_id: string;
|
|
1752
1677
|
/**
|
|
1753
1678
|
* @description Unique custom domain identifier (prefixed, e.g. dom_xxx).
|
|
1754
1679
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1755
1680
|
* @type string
|
|
1756
|
-
|
|
1681
|
+
*/
|
|
1757
1682
|
domain_id: string;
|
|
1758
1683
|
};
|
|
1759
1684
|
/**
|
|
1760
1685
|
* @description Verification result.
|
|
1761
|
-
|
|
1686
|
+
*/
|
|
1762
1687
|
type VerifyCustomDomain200 = VerifyCustomDomainResponse;
|
|
1763
1688
|
type VerifyCustomDomainMutationResponse = VerifyCustomDomain200;
|
|
1764
1689
|
|
|
1765
1690
|
/**
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1691
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1692
|
+
* Do not edit manually.
|
|
1693
|
+
*/
|
|
1769
1694
|
declare const healthResponseStatusEnum: {
|
|
1770
1695
|
readonly ok: "ok";
|
|
1771
1696
|
readonly degraded: "degraded";
|
|
@@ -1773,168 +1698,168 @@ declare const healthResponseStatusEnum: {
|
|
|
1773
1698
|
type HealthResponseStatusEnumKey = (typeof healthResponseStatusEnum)[keyof typeof healthResponseStatusEnum];
|
|
1774
1699
|
/**
|
|
1775
1700
|
* @description Health status and build metadata for the API service.
|
|
1776
|
-
|
|
1701
|
+
*/
|
|
1777
1702
|
type HealthResponse = {
|
|
1778
1703
|
/**
|
|
1779
1704
|
* @description Overall service health.
|
|
1780
1705
|
* @type string
|
|
1781
|
-
|
|
1706
|
+
*/
|
|
1782
1707
|
status: HealthResponseStatusEnumKey;
|
|
1783
1708
|
/**
|
|
1784
1709
|
* @description API server version.
|
|
1785
1710
|
* @type string
|
|
1786
|
-
|
|
1711
|
+
*/
|
|
1787
1712
|
version: string;
|
|
1788
1713
|
/**
|
|
1789
1714
|
* @description Resolved image SHA (digest or SHA tag).
|
|
1790
1715
|
* @type string
|
|
1791
|
-
|
|
1716
|
+
*/
|
|
1792
1717
|
image_sha: string;
|
|
1793
1718
|
/**
|
|
1794
1719
|
* @description Server time.
|
|
1795
1720
|
* @type string | undefined, date-time
|
|
1796
|
-
|
|
1721
|
+
*/
|
|
1797
1722
|
timestamp?: string;
|
|
1798
1723
|
};
|
|
1799
1724
|
|
|
1800
1725
|
/**
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1726
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1727
|
+
* Do not edit manually.
|
|
1728
|
+
*/
|
|
1804
1729
|
|
|
1805
1730
|
/**
|
|
1806
1731
|
* @description Service is healthy.
|
|
1807
|
-
|
|
1732
|
+
*/
|
|
1808
1733
|
type GetHealth200 = HealthResponse;
|
|
1809
1734
|
type GetHealthQueryResponse = GetHealth200;
|
|
1810
1735
|
|
|
1811
1736
|
/**
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1737
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1738
|
+
* Do not edit manually.
|
|
1739
|
+
*/
|
|
1815
1740
|
/**
|
|
1816
1741
|
* @description Aggregate cache performance metrics for the selected time range.
|
|
1817
|
-
|
|
1742
|
+
*/
|
|
1818
1743
|
type CacheSummary = {
|
|
1819
1744
|
/**
|
|
1820
1745
|
* @description Total number of cache hits in the selected time range.
|
|
1821
1746
|
* @type integer, int64
|
|
1822
|
-
|
|
1747
|
+
*/
|
|
1823
1748
|
total_hits: number;
|
|
1824
1749
|
/**
|
|
1825
1750
|
* @description Total number of cache misses in the selected time range.
|
|
1826
1751
|
* @type integer, int64
|
|
1827
|
-
|
|
1752
|
+
*/
|
|
1828
1753
|
total_misses: number;
|
|
1829
1754
|
/**
|
|
1830
1755
|
* @description Cache hit rate as a fraction (0.0 to 1.0).
|
|
1831
1756
|
* @type number, double
|
|
1832
|
-
|
|
1757
|
+
*/
|
|
1833
1758
|
hit_rate: number;
|
|
1834
1759
|
};
|
|
1835
1760
|
|
|
1836
1761
|
/**
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1762
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1763
|
+
* Do not edit manually.
|
|
1764
|
+
*/
|
|
1840
1765
|
/**
|
|
1841
1766
|
* @description Aggregate latency metrics for the selected time range.
|
|
1842
|
-
|
|
1767
|
+
*/
|
|
1843
1768
|
type LatencySummary = {
|
|
1844
1769
|
/**
|
|
1845
1770
|
* @description Average latency in milliseconds across all queries.
|
|
1846
1771
|
* @type number, double
|
|
1847
|
-
|
|
1772
|
+
*/
|
|
1848
1773
|
avg_ms: number;
|
|
1849
1774
|
/**
|
|
1850
1775
|
* @description P99 latency in milliseconds across all queries.
|
|
1851
1776
|
* @type number, double
|
|
1852
|
-
|
|
1777
|
+
*/
|
|
1853
1778
|
p99_ms: number;
|
|
1854
1779
|
};
|
|
1855
1780
|
|
|
1856
1781
|
/**
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1782
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1783
|
+
* Do not edit manually.
|
|
1784
|
+
*/
|
|
1860
1785
|
/**
|
|
1861
1786
|
* @description Aggregated analytics for a normalized SQL query shape.
|
|
1862
|
-
|
|
1787
|
+
*/
|
|
1863
1788
|
type QueryInsight = {
|
|
1864
1789
|
/**
|
|
1865
1790
|
* @description xxhash64 of the normalized SQL pattern (hex).
|
|
1866
1791
|
* @type string
|
|
1867
|
-
|
|
1792
|
+
*/
|
|
1868
1793
|
query_hash: string;
|
|
1869
1794
|
/**
|
|
1870
1795
|
* @description Normalized SQL pattern (truncated to 500 chars).
|
|
1871
1796
|
* @type string
|
|
1872
|
-
|
|
1797
|
+
*/
|
|
1873
1798
|
query_pattern: string;
|
|
1874
1799
|
/**
|
|
1875
1800
|
* @description Total number of executions in the time range.
|
|
1876
1801
|
* @type integer, int64
|
|
1877
|
-
|
|
1802
|
+
*/
|
|
1878
1803
|
total_count: number;
|
|
1879
1804
|
/**
|
|
1880
1805
|
* @description Total cache hits attributed to the query shape.
|
|
1881
1806
|
* @type integer, int64
|
|
1882
|
-
|
|
1807
|
+
*/
|
|
1883
1808
|
total_cache_hits: number;
|
|
1884
1809
|
/**
|
|
1885
1810
|
* @description Total cache misses attributed to the query shape.
|
|
1886
1811
|
* @type integer, int64
|
|
1887
|
-
|
|
1812
|
+
*/
|
|
1888
1813
|
total_cache_misses: number;
|
|
1889
1814
|
/**
|
|
1890
1815
|
* @description Average query latency in milliseconds.
|
|
1891
1816
|
* @type number, double
|
|
1892
|
-
|
|
1817
|
+
*/
|
|
1893
1818
|
avg_latency_ms: number;
|
|
1894
1819
|
/**
|
|
1895
1820
|
* @description P99 query latency in milliseconds.
|
|
1896
1821
|
* @type number, double
|
|
1897
|
-
|
|
1822
|
+
*/
|
|
1898
1823
|
p99_latency_ms: number;
|
|
1899
1824
|
};
|
|
1900
1825
|
|
|
1901
1826
|
/**
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1827
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1828
|
+
* Do not edit manually.
|
|
1829
|
+
*/
|
|
1905
1830
|
|
|
1906
1831
|
/**
|
|
1907
1832
|
* @description Query insights, cache performance, and latency for a project.
|
|
1908
|
-
|
|
1833
|
+
*/
|
|
1909
1834
|
type ProjectInsights = {
|
|
1910
1835
|
/**
|
|
1911
1836
|
* @description Top query shapes observed for the project.
|
|
1912
1837
|
* @type array
|
|
1913
|
-
|
|
1838
|
+
*/
|
|
1914
1839
|
queries: QueryInsight[];
|
|
1915
1840
|
/**
|
|
1916
1841
|
* @description Aggregate cache performance metrics for the selected time range.
|
|
1917
1842
|
* @type object
|
|
1918
|
-
|
|
1843
|
+
*/
|
|
1919
1844
|
cache: CacheSummary;
|
|
1920
1845
|
/**
|
|
1921
1846
|
* @description Aggregate latency metrics for the selected time range.
|
|
1922
1847
|
* @type object
|
|
1923
|
-
|
|
1848
|
+
*/
|
|
1924
1849
|
latency: LatencySummary;
|
|
1925
1850
|
};
|
|
1926
1851
|
|
|
1927
1852
|
/**
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1853
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1854
|
+
* Do not edit manually.
|
|
1855
|
+
*/
|
|
1931
1856
|
|
|
1932
1857
|
type GetProjectInsightsPathParams = {
|
|
1933
1858
|
/**
|
|
1934
1859
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
1935
1860
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
1936
1861
|
* @type string
|
|
1937
|
-
|
|
1862
|
+
*/
|
|
1938
1863
|
project_id: string;
|
|
1939
1864
|
};
|
|
1940
1865
|
declare const getProjectInsightsQueryParamsRangeEnum: {
|
|
@@ -1949,7 +1874,7 @@ type GetProjectInsightsQueryParams = {
|
|
|
1949
1874
|
* @description Time range to query. Defaults to 24h.
|
|
1950
1875
|
* @default "24h"
|
|
1951
1876
|
* @type string | undefined
|
|
1952
|
-
|
|
1877
|
+
*/
|
|
1953
1878
|
range?: GetProjectInsightsQueryParamsRangeEnumKey;
|
|
1954
1879
|
/**
|
|
1955
1880
|
* @description Maximum number of top queries to return (1-100).
|
|
@@ -1957,108 +1882,207 @@ type GetProjectInsightsQueryParams = {
|
|
|
1957
1882
|
* @maxLength 100
|
|
1958
1883
|
* @default 20
|
|
1959
1884
|
* @type integer | undefined
|
|
1960
|
-
|
|
1885
|
+
*/
|
|
1961
1886
|
limit?: number;
|
|
1962
1887
|
};
|
|
1963
1888
|
/**
|
|
1964
1889
|
* @description Query insights for the project.
|
|
1965
|
-
|
|
1890
|
+
*/
|
|
1966
1891
|
type GetProjectInsights200 = ProjectInsights;
|
|
1967
1892
|
type GetProjectInsightsQueryResponse = GetProjectInsights200;
|
|
1968
1893
|
|
|
1969
1894
|
/**
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1895
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1896
|
+
* Do not edit manually.
|
|
1897
|
+
*/
|
|
1898
|
+
declare const mcpRequestJsonrpcEnum: {
|
|
1899
|
+
readonly "2.0": "2.0";
|
|
1900
|
+
};
|
|
1901
|
+
type McpRequestJsonrpcEnumKey = (typeof mcpRequestJsonrpcEnum)[keyof typeof mcpRequestJsonrpcEnum];
|
|
1902
|
+
declare const mcpRequestMethodEnum: {
|
|
1903
|
+
readonly initialize: "initialize";
|
|
1904
|
+
readonly "notifications/initialized": "notifications/initialized";
|
|
1905
|
+
readonly "tools/list": "tools/list";
|
|
1906
|
+
readonly "tools/call": "tools/call";
|
|
1907
|
+
readonly ping: "ping";
|
|
1908
|
+
};
|
|
1909
|
+
type McpRequestMethodEnumKey = (typeof mcpRequestMethodEnum)[keyof typeof mcpRequestMethodEnum];
|
|
1910
|
+
/**
|
|
1911
|
+
* @description JSON-RPC 2.0 request envelope for MCP over Streamable HTTP.
|
|
1912
|
+
*/
|
|
1913
|
+
type McpRequest = {
|
|
1914
|
+
/**
|
|
1915
|
+
* @description JSON-RPC version. Must be \"2.0\".
|
|
1916
|
+
* @type string
|
|
1917
|
+
*/
|
|
1918
|
+
jsonrpc: McpRequestJsonrpcEnumKey;
|
|
1919
|
+
/**
|
|
1920
|
+
* @description Request identifier. Omit for notifications.
|
|
1921
|
+
* @type string | undefined
|
|
1922
|
+
*/
|
|
1923
|
+
id?: string;
|
|
1924
|
+
/**
|
|
1925
|
+
* @description MCP method to invoke.
|
|
1926
|
+
* @type string
|
|
1927
|
+
*/
|
|
1928
|
+
method: McpRequestMethodEnumKey;
|
|
1929
|
+
/**
|
|
1930
|
+
* @description Method-specific parameters.
|
|
1931
|
+
* @type object | undefined
|
|
1932
|
+
*/
|
|
1933
|
+
params?: object;
|
|
1934
|
+
};
|
|
1935
|
+
|
|
1936
|
+
/**
|
|
1937
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1938
|
+
* Do not edit manually.
|
|
1939
|
+
*/
|
|
1940
|
+
declare const mcpResponseJsonrpcEnum: {
|
|
1941
|
+
readonly "2.0": "2.0";
|
|
1942
|
+
};
|
|
1943
|
+
type McpResponseJsonrpcEnumKey = (typeof mcpResponseJsonrpcEnum)[keyof typeof mcpResponseJsonrpcEnum];
|
|
1944
|
+
/**
|
|
1945
|
+
* @description JSON-RPC 2.0 response envelope for MCP over Streamable HTTP.
|
|
1946
|
+
*/
|
|
1947
|
+
type McpResponse = {
|
|
1948
|
+
/**
|
|
1949
|
+
* @description JSON-RPC version. Always \"2.0\".
|
|
1950
|
+
* @type string
|
|
1951
|
+
*/
|
|
1952
|
+
jsonrpc: McpResponseJsonrpcEnumKey;
|
|
1953
|
+
/**
|
|
1954
|
+
* @description Mirrors the request id. Null for parse errors.
|
|
1955
|
+
* @type string
|
|
1956
|
+
*/
|
|
1957
|
+
id: string | null;
|
|
1958
|
+
/**
|
|
1959
|
+
* @description Method-specific result (present on success).
|
|
1960
|
+
* @type object | undefined
|
|
1961
|
+
*/
|
|
1962
|
+
result?: object;
|
|
1963
|
+
/**
|
|
1964
|
+
* @description JSON-RPC error (present on failure).
|
|
1965
|
+
* @type object | undefined
|
|
1966
|
+
*/
|
|
1967
|
+
error?: {
|
|
1968
|
+
/**
|
|
1969
|
+
* @description JSON-RPC error code.
|
|
1970
|
+
* @type integer | undefined
|
|
1971
|
+
*/
|
|
1972
|
+
code?: number;
|
|
1973
|
+
/**
|
|
1974
|
+
* @description Human-readable error message.
|
|
1975
|
+
* @type string | undefined
|
|
1976
|
+
*/
|
|
1977
|
+
message?: string;
|
|
1978
|
+
};
|
|
1979
|
+
};
|
|
1980
|
+
|
|
1981
|
+
/**
|
|
1982
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1983
|
+
* Do not edit manually.
|
|
1984
|
+
*/
|
|
1985
|
+
|
|
1986
|
+
/**
|
|
1987
|
+
* @description JSON-RPC 2.0 response.
|
|
1988
|
+
*/
|
|
1989
|
+
type McpTransport200 = McpResponse;
|
|
1990
|
+
type McpTransportMutationRequest = McpRequest;
|
|
1991
|
+
type McpTransportMutationResponse = McpTransport200;
|
|
1992
|
+
|
|
1993
|
+
/**
|
|
1994
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
1995
|
+
* Do not edit manually.
|
|
1996
|
+
*/
|
|
1973
1997
|
/**
|
|
1974
1998
|
* @description Progress state for the dashboard onboarding checklist.
|
|
1975
|
-
|
|
1999
|
+
*/
|
|
1976
2000
|
type OnboardingProgress = {
|
|
1977
2001
|
/**
|
|
1978
2002
|
* @description Organization ID this onboarding belongs to.
|
|
1979
2003
|
* @type string
|
|
1980
|
-
|
|
2004
|
+
*/
|
|
1981
2005
|
organization_id: string;
|
|
1982
2006
|
/**
|
|
1983
2007
|
* @description Whether the organization has been created.
|
|
1984
2008
|
* @type boolean
|
|
1985
|
-
|
|
2009
|
+
*/
|
|
1986
2010
|
org_created: boolean;
|
|
1987
2011
|
/**
|
|
1988
2012
|
* @description Whether a project has been created.
|
|
1989
2013
|
* @type boolean
|
|
1990
|
-
|
|
2014
|
+
*/
|
|
1991
2015
|
project_created: boolean;
|
|
1992
2016
|
/**
|
|
1993
2017
|
* @description Whether a database has been added.
|
|
1994
2018
|
* @type boolean
|
|
1995
|
-
|
|
2019
|
+
*/
|
|
1996
2020
|
database_added: boolean;
|
|
1997
2021
|
/**
|
|
1998
2022
|
* @description Whether the database connection has been tested.
|
|
1999
2023
|
* @type boolean
|
|
2000
|
-
|
|
2024
|
+
*/
|
|
2001
2025
|
connection_tested: boolean;
|
|
2002
2026
|
/**
|
|
2003
2027
|
* @description Whether the connection string has been copied.
|
|
2004
2028
|
* @type boolean
|
|
2005
|
-
|
|
2029
|
+
*/
|
|
2006
2030
|
connection_string_copied: boolean;
|
|
2007
2031
|
/**
|
|
2008
2032
|
* @description Whether the first query has been run through PgBeam.
|
|
2009
2033
|
* @type boolean
|
|
2010
|
-
|
|
2034
|
+
*/
|
|
2011
2035
|
first_query_run: boolean;
|
|
2012
2036
|
/**
|
|
2013
2037
|
* @description Whether the user has dismissed the onboarding checklist.
|
|
2014
2038
|
* @type boolean
|
|
2015
|
-
|
|
2039
|
+
*/
|
|
2016
2040
|
dismissed: boolean;
|
|
2017
2041
|
/**
|
|
2018
2042
|
* @description Whether all onboarding steps are complete.
|
|
2019
2043
|
* @type boolean
|
|
2020
|
-
|
|
2044
|
+
*/
|
|
2021
2045
|
completed: boolean;
|
|
2022
2046
|
/**
|
|
2023
2047
|
* @description Number of completed onboarding steps.
|
|
2024
2048
|
* @type integer
|
|
2025
|
-
|
|
2049
|
+
*/
|
|
2026
2050
|
steps_completed: number;
|
|
2027
2051
|
/**
|
|
2028
2052
|
* @description Total number of onboarding steps.
|
|
2029
2053
|
* @type integer
|
|
2030
|
-
|
|
2054
|
+
*/
|
|
2031
2055
|
steps_total: number;
|
|
2032
2056
|
/**
|
|
2033
2057
|
* @description When onboarding was completed. Null if not yet completed.
|
|
2034
2058
|
* @type string, date-time
|
|
2035
|
-
|
|
2059
|
+
*/
|
|
2036
2060
|
completed_at?: string | null;
|
|
2037
2061
|
};
|
|
2038
2062
|
|
|
2039
2063
|
/**
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2064
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2065
|
+
* Do not edit manually.
|
|
2066
|
+
*/
|
|
2043
2067
|
|
|
2044
2068
|
type GetOnboardingProgressPathParams = {
|
|
2045
2069
|
/**
|
|
2046
2070
|
* @description Unique organization identifier.
|
|
2047
2071
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
2048
2072
|
* @type string
|
|
2049
|
-
|
|
2073
|
+
*/
|
|
2050
2074
|
org_id: string;
|
|
2051
2075
|
};
|
|
2052
2076
|
/**
|
|
2053
2077
|
* @description Onboarding progress.
|
|
2054
|
-
|
|
2078
|
+
*/
|
|
2055
2079
|
type GetOnboardingProgress200 = OnboardingProgress;
|
|
2056
2080
|
type GetOnboardingProgressQueryResponse = GetOnboardingProgress200;
|
|
2057
2081
|
|
|
2058
2082
|
/**
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2083
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2084
|
+
* Do not edit manually.
|
|
2085
|
+
*/
|
|
2062
2086
|
declare const updateOnboardingRequestStepEnum: {
|
|
2063
2087
|
readonly project_created: "project_created";
|
|
2064
2088
|
readonly database_added: "database_added";
|
|
@@ -2069,44 +2093,44 @@ declare const updateOnboardingRequestStepEnum: {
|
|
|
2069
2093
|
type UpdateOnboardingRequestStepEnumKey = (typeof updateOnboardingRequestStepEnum)[keyof typeof updateOnboardingRequestStepEnum];
|
|
2070
2094
|
/**
|
|
2071
2095
|
* @description Request body for advancing or dismissing onboarding.
|
|
2072
|
-
|
|
2096
|
+
*/
|
|
2073
2097
|
type UpdateOnboardingRequest = {
|
|
2074
2098
|
/**
|
|
2075
2099
|
* @description The onboarding step to mark as complete.
|
|
2076
2100
|
* @type string | undefined
|
|
2077
|
-
|
|
2101
|
+
*/
|
|
2078
2102
|
step?: UpdateOnboardingRequestStepEnumKey;
|
|
2079
2103
|
/**
|
|
2080
2104
|
* @description Set to true to dismiss the onboarding checklist.
|
|
2081
2105
|
* @type boolean | undefined
|
|
2082
|
-
|
|
2106
|
+
*/
|
|
2083
2107
|
dismiss?: boolean;
|
|
2084
2108
|
};
|
|
2085
2109
|
|
|
2086
2110
|
/**
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2111
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2112
|
+
* Do not edit manually.
|
|
2113
|
+
*/
|
|
2090
2114
|
|
|
2091
2115
|
type UpdateOnboardingProgressPathParams = {
|
|
2092
2116
|
/**
|
|
2093
2117
|
* @description Unique organization identifier.
|
|
2094
2118
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
2095
2119
|
* @type string
|
|
2096
|
-
|
|
2120
|
+
*/
|
|
2097
2121
|
org_id: string;
|
|
2098
2122
|
};
|
|
2099
2123
|
/**
|
|
2100
2124
|
* @description Updated onboarding progress.
|
|
2101
|
-
|
|
2125
|
+
*/
|
|
2102
2126
|
type UpdateOnboardingProgress200 = OnboardingProgress;
|
|
2103
2127
|
type UpdateOnboardingProgressMutationRequest = UpdateOnboardingRequest;
|
|
2104
2128
|
type UpdateOnboardingProgressMutationResponse = UpdateOnboardingProgress200;
|
|
2105
2129
|
|
|
2106
2130
|
/**
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2131
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2132
|
+
* Do not edit manually.
|
|
2133
|
+
*/
|
|
2110
2134
|
declare const projectStatusEnum: {
|
|
2111
2135
|
readonly active: "active";
|
|
2112
2136
|
readonly suspended: "suspended";
|
|
@@ -2115,13 +2139,13 @@ declare const projectStatusEnum: {
|
|
|
2115
2139
|
type ProjectStatusEnumKey = (typeof projectStatusEnum)[keyof typeof projectStatusEnum];
|
|
2116
2140
|
/**
|
|
2117
2141
|
* @description Project lifecycle status.
|
|
2118
|
-
|
|
2142
|
+
*/
|
|
2119
2143
|
type ProjectStatus = ProjectStatusEnumKey;
|
|
2120
2144
|
|
|
2121
2145
|
/**
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2146
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2147
|
+
* Do not edit manually.
|
|
2148
|
+
*/
|
|
2125
2149
|
|
|
2126
2150
|
declare const projectCloudEnum: {
|
|
2127
2151
|
readonly aws: "aws";
|
|
@@ -2131,124 +2155,129 @@ declare const projectCloudEnum: {
|
|
|
2131
2155
|
type ProjectCloudEnumKey = (typeof projectCloudEnum)[keyof typeof projectCloudEnum];
|
|
2132
2156
|
/**
|
|
2133
2157
|
* @description Project configuration and current control-plane state.
|
|
2134
|
-
|
|
2158
|
+
*/
|
|
2135
2159
|
type Project = {
|
|
2136
2160
|
/**
|
|
2137
2161
|
* @description Unique project identifier (prefixed).
|
|
2138
2162
|
* @type string
|
|
2139
|
-
|
|
2163
|
+
*/
|
|
2140
2164
|
id: string;
|
|
2141
2165
|
/**
|
|
2142
2166
|
* @description Better Auth organization ID that owns this project.
|
|
2143
2167
|
* @type string
|
|
2144
|
-
|
|
2168
|
+
*/
|
|
2145
2169
|
org_id: string;
|
|
2146
2170
|
/**
|
|
2147
2171
|
* @description Human-readable project name.
|
|
2148
2172
|
* @minLength 1
|
|
2149
2173
|
* @maxLength 100
|
|
2150
2174
|
* @type string
|
|
2151
|
-
|
|
2175
|
+
*/
|
|
2152
2176
|
name: string;
|
|
2153
2177
|
/**
|
|
2154
2178
|
* @description Optional project description.
|
|
2155
2179
|
* @maxLength 500
|
|
2156
2180
|
* @type string | undefined
|
|
2157
|
-
|
|
2181
|
+
*/
|
|
2158
2182
|
description?: string;
|
|
2159
2183
|
/**
|
|
2160
2184
|
* @description User-defined labels applied to the project.
|
|
2161
2185
|
* @type array | undefined
|
|
2162
|
-
|
|
2186
|
+
*/
|
|
2163
2187
|
tags?: string[];
|
|
2164
2188
|
/**
|
|
2165
2189
|
* @description Cloud provider where the project runs.
|
|
2166
2190
|
* @type string | undefined
|
|
2167
|
-
|
|
2191
|
+
*/
|
|
2168
2192
|
readonly cloud?: ProjectCloudEnumKey;
|
|
2169
2193
|
/**
|
|
2170
2194
|
* @description Proxy hostname for connecting through PgBeam (e.g., myproject.aws.pgbeam.app).
|
|
2171
2195
|
* @type string | undefined
|
|
2172
|
-
|
|
2196
|
+
*/
|
|
2173
2197
|
readonly proxy_host?: string;
|
|
2174
2198
|
/**
|
|
2175
2199
|
* @description Maximum queries per second for this project. 0 means unlimited.
|
|
2176
2200
|
* @minLength 0
|
|
2177
2201
|
* @maxLength 2147483647
|
|
2178
2202
|
* @type integer | undefined, int32
|
|
2179
|
-
|
|
2203
|
+
*/
|
|
2180
2204
|
queries_per_second?: number;
|
|
2181
2205
|
/**
|
|
2182
2206
|
* @description Burst allowance above the steady-state rate. 0 uses queries_per_second as burst.
|
|
2183
2207
|
* @minLength 0
|
|
2184
2208
|
* @maxLength 2147483647
|
|
2185
2209
|
* @type integer | undefined, int32
|
|
2186
|
-
|
|
2210
|
+
*/
|
|
2187
2211
|
burst_size?: number;
|
|
2188
2212
|
/**
|
|
2189
2213
|
* @description Maximum concurrent proxy connections. 0 means unlimited.
|
|
2190
2214
|
* @minLength 0
|
|
2191
2215
|
* @maxLength 2147483647
|
|
2192
2216
|
* @type integer | undefined, int32
|
|
2193
|
-
|
|
2217
|
+
*/
|
|
2194
2218
|
max_connections?: number;
|
|
2219
|
+
/**
|
|
2220
|
+
* @description IP allowlist as CIDR ranges (e.g., [\"10.0.0.0/8\", \"203.0.113.5/32\"]). When non-empty, only connections from matching IPs are accepted. Empty array means all IPs are allowed (default).\n
|
|
2221
|
+
* @type array | undefined
|
|
2222
|
+
*/
|
|
2223
|
+
allowed_cidrs?: string[];
|
|
2195
2224
|
/**
|
|
2196
2225
|
* @description Number of databases attached to this project.
|
|
2197
2226
|
* @type integer | undefined
|
|
2198
|
-
|
|
2227
|
+
*/
|
|
2199
2228
|
readonly database_count?: number;
|
|
2200
2229
|
/**
|
|
2201
2230
|
* @description Current active connections (latest metrics snapshot). 0 when no metrics data.
|
|
2202
2231
|
* @type integer | undefined
|
|
2203
|
-
|
|
2232
|
+
*/
|
|
2204
2233
|
readonly active_connections?: number;
|
|
2205
2234
|
/**
|
|
2206
2235
|
* @description Project lifecycle status.
|
|
2207
2236
|
* @type string
|
|
2208
|
-
|
|
2237
|
+
*/
|
|
2209
2238
|
status: ProjectStatus;
|
|
2210
2239
|
/**
|
|
2211
2240
|
* @description When the project was created.
|
|
2212
2241
|
* @type string, date-time
|
|
2213
|
-
|
|
2242
|
+
*/
|
|
2214
2243
|
created_at: string;
|
|
2215
2244
|
/**
|
|
2216
2245
|
* @description When the project was last updated.
|
|
2217
2246
|
* @type string, date-time
|
|
2218
|
-
|
|
2247
|
+
*/
|
|
2219
2248
|
updated_at: string;
|
|
2220
2249
|
};
|
|
2221
2250
|
|
|
2222
2251
|
/**
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2252
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2253
|
+
* Do not edit manually.
|
|
2254
|
+
*/
|
|
2226
2255
|
|
|
2227
2256
|
/**
|
|
2228
2257
|
* @description Cursor-paginated list of projects for an organization.
|
|
2229
|
-
|
|
2258
|
+
*/
|
|
2230
2259
|
type ListProjectsResponse = {
|
|
2231
2260
|
/**
|
|
2232
2261
|
* @description Projects on the current page.
|
|
2233
2262
|
* @type array
|
|
2234
|
-
|
|
2263
|
+
*/
|
|
2235
2264
|
projects: Project[];
|
|
2236
2265
|
/**
|
|
2237
2266
|
* @description Total number of projects (across all pages).
|
|
2238
2267
|
* @type integer
|
|
2239
|
-
|
|
2268
|
+
*/
|
|
2240
2269
|
total: number;
|
|
2241
2270
|
/**
|
|
2242
2271
|
* @description Token for the next page. Empty if no more results.
|
|
2243
2272
|
* @type string | undefined
|
|
2244
|
-
|
|
2273
|
+
*/
|
|
2245
2274
|
next_page_token?: string;
|
|
2246
2275
|
};
|
|
2247
2276
|
|
|
2248
2277
|
/**
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2278
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2279
|
+
* Do not edit manually.
|
|
2280
|
+
*/
|
|
2252
2281
|
|
|
2253
2282
|
declare const listProjectsQueryParamsSortByEnum: {
|
|
2254
2283
|
readonly name: "name";
|
|
@@ -2261,7 +2290,7 @@ type ListProjectsQueryParams = {
|
|
|
2261
2290
|
* @description Organization ID to filter projects.
|
|
2262
2291
|
* @pattern ^[\x20-\x7E]+$
|
|
2263
2292
|
* @type string
|
|
2264
|
-
|
|
2293
|
+
*/
|
|
2265
2294
|
org_id: string;
|
|
2266
2295
|
/**
|
|
2267
2296
|
* @description Maximum number of items to return (1-100, default 20).
|
|
@@ -2269,31 +2298,31 @@ type ListProjectsQueryParams = {
|
|
|
2269
2298
|
* @maxLength 100
|
|
2270
2299
|
* @default 20
|
|
2271
2300
|
* @type integer | undefined
|
|
2272
|
-
|
|
2301
|
+
*/
|
|
2273
2302
|
page_size?: number;
|
|
2274
2303
|
/**
|
|
2275
2304
|
* @description Opaque token for cursor-based pagination.
|
|
2276
2305
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
2277
2306
|
* @type string | undefined
|
|
2278
|
-
|
|
2307
|
+
*/
|
|
2279
2308
|
page_token?: string;
|
|
2280
2309
|
/**
|
|
2281
2310
|
* @description Sort field for projects list.
|
|
2282
2311
|
* @default "created_at"
|
|
2283
2312
|
* @type string | undefined
|
|
2284
|
-
|
|
2313
|
+
*/
|
|
2285
2314
|
sort_by?: ListProjectsQueryParamsSortByEnumKey;
|
|
2286
2315
|
};
|
|
2287
2316
|
/**
|
|
2288
2317
|
* @description List of projects.
|
|
2289
|
-
|
|
2318
|
+
*/
|
|
2290
2319
|
type ListProjects200 = ListProjectsResponse;
|
|
2291
2320
|
type ListProjectsQueryResponse = ListProjects200;
|
|
2292
2321
|
|
|
2293
2322
|
/**
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2323
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2324
|
+
* Do not edit manually.
|
|
2325
|
+
*/
|
|
2297
2326
|
|
|
2298
2327
|
declare const createProjectRequestCloudEnum: {
|
|
2299
2328
|
readonly aws: "aws";
|
|
@@ -2303,7 +2332,7 @@ declare const createProjectRequestCloudEnum: {
|
|
|
2303
2332
|
type CreateProjectRequestCloudEnumKey = (typeof createProjectRequestCloudEnum)[keyof typeof createProjectRequestCloudEnum];
|
|
2304
2333
|
/**
|
|
2305
2334
|
* @description Request body for creating a project and its primary database.
|
|
2306
|
-
|
|
2335
|
+
*/
|
|
2307
2336
|
type CreateProjectRequest = {
|
|
2308
2337
|
/**
|
|
2309
2338
|
* @description Human-readable project name.
|
|
@@ -2311,99 +2340,99 @@ type CreateProjectRequest = {
|
|
|
2311
2340
|
* @maxLength 100
|
|
2312
2341
|
* @pattern ^[^\x00]*$
|
|
2313
2342
|
* @type string
|
|
2314
|
-
|
|
2343
|
+
*/
|
|
2315
2344
|
name: string;
|
|
2316
2345
|
/**
|
|
2317
2346
|
* @description Better Auth organization ID.
|
|
2318
2347
|
* @minLength 1
|
|
2319
2348
|
* @pattern ^[^\x00]+$
|
|
2320
2349
|
* @type string
|
|
2321
|
-
|
|
2350
|
+
*/
|
|
2322
2351
|
org_id: string;
|
|
2323
2352
|
/**
|
|
2324
2353
|
* @description Optional project description.
|
|
2325
2354
|
* @maxLength 500
|
|
2326
2355
|
* @type string | undefined
|
|
2327
|
-
|
|
2356
|
+
*/
|
|
2328
2357
|
description?: string;
|
|
2329
2358
|
/**
|
|
2330
2359
|
* @description User-defined labels to attach to the project.
|
|
2331
2360
|
* @type array | undefined
|
|
2332
|
-
|
|
2361
|
+
*/
|
|
2333
2362
|
tags?: string[];
|
|
2334
2363
|
/**
|
|
2335
2364
|
* @description Cloud provider for the project.
|
|
2336
2365
|
* @default "aws"
|
|
2337
2366
|
* @type string | undefined
|
|
2338
|
-
|
|
2367
|
+
*/
|
|
2339
2368
|
cloud?: CreateProjectRequestCloudEnumKey;
|
|
2340
2369
|
/**
|
|
2341
2370
|
* @description Request body for registering an upstream database.
|
|
2342
2371
|
* @type object
|
|
2343
|
-
|
|
2372
|
+
*/
|
|
2344
2373
|
database: CreateDatabaseRequest;
|
|
2345
2374
|
};
|
|
2346
2375
|
|
|
2347
2376
|
/**
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2377
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2378
|
+
* Do not edit manually.
|
|
2379
|
+
*/
|
|
2351
2380
|
|
|
2352
2381
|
/**
|
|
2353
2382
|
* @description Response returned after creating a project and its primary database.
|
|
2354
|
-
|
|
2383
|
+
*/
|
|
2355
2384
|
type CreateProjectResponse = {
|
|
2356
2385
|
/**
|
|
2357
2386
|
* @description Project configuration and current control-plane state.
|
|
2358
2387
|
* @type object
|
|
2359
|
-
|
|
2388
|
+
*/
|
|
2360
2389
|
project: Project;
|
|
2361
2390
|
/**
|
|
2362
2391
|
* @description Registered upstream PostgreSQL database for a project.
|
|
2363
2392
|
* @type object | undefined
|
|
2364
|
-
|
|
2393
|
+
*/
|
|
2365
2394
|
database?: Database;
|
|
2366
2395
|
};
|
|
2367
2396
|
|
|
2368
2397
|
/**
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2398
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2399
|
+
* Do not edit manually.
|
|
2400
|
+
*/
|
|
2372
2401
|
|
|
2373
2402
|
/**
|
|
2374
2403
|
* @description Project created.
|
|
2375
|
-
|
|
2404
|
+
*/
|
|
2376
2405
|
type CreateProject201 = CreateProjectResponse;
|
|
2377
2406
|
type CreateProjectMutationRequest = CreateProjectRequest;
|
|
2378
2407
|
type CreateProjectMutationResponse = CreateProject201;
|
|
2379
2408
|
|
|
2380
2409
|
/**
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2410
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2411
|
+
* Do not edit manually.
|
|
2412
|
+
*/
|
|
2384
2413
|
|
|
2385
2414
|
type GetProjectPathParams = {
|
|
2386
2415
|
/**
|
|
2387
2416
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
2388
2417
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
2389
2418
|
* @type string
|
|
2390
|
-
|
|
2419
|
+
*/
|
|
2391
2420
|
project_id: string;
|
|
2392
2421
|
};
|
|
2393
2422
|
/**
|
|
2394
2423
|
* @description Project found.
|
|
2395
|
-
|
|
2424
|
+
*/
|
|
2396
2425
|
type GetProject200 = Project;
|
|
2397
2426
|
type GetProjectQueryResponse = GetProject200;
|
|
2398
2427
|
|
|
2399
2428
|
/**
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2429
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2430
|
+
* Do not edit manually.
|
|
2431
|
+
*/
|
|
2403
2432
|
|
|
2404
2433
|
/**
|
|
2405
2434
|
* @description Request body for partially updating a project.
|
|
2406
|
-
|
|
2435
|
+
*/
|
|
2407
2436
|
type UpdateProjectRequest = {
|
|
2408
2437
|
/**
|
|
2409
2438
|
* @description Updated project name.
|
|
@@ -2411,178 +2440,183 @@ type UpdateProjectRequest = {
|
|
|
2411
2440
|
* @maxLength 100
|
|
2412
2441
|
* @pattern ^[^\x00]*$
|
|
2413
2442
|
* @type string | undefined
|
|
2414
|
-
|
|
2443
|
+
*/
|
|
2415
2444
|
name?: string;
|
|
2416
2445
|
/**
|
|
2417
2446
|
* @description Updated project description.
|
|
2418
2447
|
* @maxLength 500
|
|
2419
2448
|
* @type string | undefined
|
|
2420
|
-
|
|
2449
|
+
*/
|
|
2421
2450
|
description?: string;
|
|
2422
2451
|
/**
|
|
2423
2452
|
* @description Replacement set of user-defined project labels.
|
|
2424
2453
|
* @type array | undefined
|
|
2425
|
-
|
|
2454
|
+
*/
|
|
2426
2455
|
tags?: string[];
|
|
2427
2456
|
/**
|
|
2428
2457
|
* @description Project lifecycle status.
|
|
2429
2458
|
* @type string | undefined
|
|
2430
|
-
|
|
2459
|
+
*/
|
|
2431
2460
|
status?: ProjectStatus;
|
|
2432
2461
|
/**
|
|
2433
2462
|
* @description Maximum queries per second. 0 means unlimited.
|
|
2434
2463
|
* @minLength 0
|
|
2435
2464
|
* @maxLength 2147483647
|
|
2436
2465
|
* @type integer | undefined, int32
|
|
2437
|
-
|
|
2466
|
+
*/
|
|
2438
2467
|
queries_per_second?: number;
|
|
2439
2468
|
/**
|
|
2440
2469
|
* @description Burst allowance above steady-state rate.
|
|
2441
2470
|
* @minLength 0
|
|
2442
2471
|
* @maxLength 2147483647
|
|
2443
2472
|
* @type integer | undefined, int32
|
|
2444
|
-
|
|
2473
|
+
*/
|
|
2445
2474
|
burst_size?: number;
|
|
2446
2475
|
/**
|
|
2447
2476
|
* @description Maximum concurrent proxy connections. 0 means unlimited.
|
|
2448
2477
|
* @minLength 0
|
|
2449
2478
|
* @maxLength 2147483647
|
|
2450
2479
|
* @type integer | undefined, int32
|
|
2451
|
-
|
|
2480
|
+
*/
|
|
2452
2481
|
max_connections?: number;
|
|
2482
|
+
/**
|
|
2483
|
+
* @description IP allowlist as CIDR ranges. Empty array means allow all.\n
|
|
2484
|
+
* @type array | undefined
|
|
2485
|
+
*/
|
|
2486
|
+
allowed_cidrs?: string[];
|
|
2453
2487
|
};
|
|
2454
2488
|
|
|
2455
2489
|
/**
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2490
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2491
|
+
* Do not edit manually.
|
|
2492
|
+
*/
|
|
2459
2493
|
|
|
2460
2494
|
type UpdateProjectPathParams = {
|
|
2461
2495
|
/**
|
|
2462
2496
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
2463
2497
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
2464
2498
|
* @type string
|
|
2465
|
-
|
|
2499
|
+
*/
|
|
2466
2500
|
project_id: string;
|
|
2467
2501
|
};
|
|
2468
2502
|
/**
|
|
2469
2503
|
* @description Project updated.
|
|
2470
|
-
|
|
2504
|
+
*/
|
|
2471
2505
|
type UpdateProject200 = Project;
|
|
2472
2506
|
type UpdateProjectMutationRequest = UpdateProjectRequest;
|
|
2473
2507
|
type UpdateProjectMutationResponse = UpdateProject200;
|
|
2474
2508
|
|
|
2475
2509
|
/**
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2510
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2511
|
+
* Do not edit manually.
|
|
2512
|
+
*/
|
|
2479
2513
|
|
|
2480
2514
|
type DeleteProjectPathParams = {
|
|
2481
2515
|
/**
|
|
2482
2516
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
2483
2517
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
2484
2518
|
* @type string
|
|
2485
|
-
|
|
2519
|
+
*/
|
|
2486
2520
|
project_id: string;
|
|
2487
2521
|
};
|
|
2488
2522
|
|
|
2489
2523
|
/**
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2524
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2525
|
+
* Do not edit manually.
|
|
2526
|
+
*/
|
|
2493
2527
|
/**
|
|
2494
2528
|
* @description Aggregated project metrics captured for a point in time.
|
|
2495
|
-
|
|
2529
|
+
*/
|
|
2496
2530
|
type MetricsSnapshot = {
|
|
2497
2531
|
/**
|
|
2498
2532
|
* @description Unique metrics snapshot identifier.
|
|
2499
2533
|
* @type string
|
|
2500
|
-
|
|
2534
|
+
*/
|
|
2501
2535
|
id: string;
|
|
2502
2536
|
/**
|
|
2503
2537
|
* @description Project that produced the metrics snapshot.
|
|
2504
2538
|
* @type string
|
|
2505
|
-
|
|
2539
|
+
*/
|
|
2506
2540
|
project_id: string;
|
|
2507
2541
|
/**
|
|
2508
2542
|
* @description Region where the traffic was served.
|
|
2509
2543
|
* @type string
|
|
2510
|
-
|
|
2544
|
+
*/
|
|
2511
2545
|
region: string;
|
|
2512
2546
|
/**
|
|
2513
2547
|
* @description Total queries served during the snapshot interval.
|
|
2514
2548
|
* @type integer, int64
|
|
2515
|
-
|
|
2549
|
+
*/
|
|
2516
2550
|
queries_total: number;
|
|
2517
2551
|
/**
|
|
2518
2552
|
* @description Number of queries served from cache.
|
|
2519
2553
|
* @type integer, int64
|
|
2520
|
-
|
|
2554
|
+
*/
|
|
2521
2555
|
cache_hits: number;
|
|
2522
2556
|
/**
|
|
2523
2557
|
* @description Number of queries forwarded upstream.
|
|
2524
2558
|
* @type integer, int64
|
|
2525
|
-
|
|
2559
|
+
*/
|
|
2526
2560
|
cache_misses: number;
|
|
2527
2561
|
/**
|
|
2528
2562
|
* @description Current active proxy connections.
|
|
2529
2563
|
* @type integer
|
|
2530
|
-
|
|
2564
|
+
*/
|
|
2531
2565
|
active_connections: number;
|
|
2532
2566
|
/**
|
|
2533
2567
|
* @description Average end-to-end query latency in milliseconds.
|
|
2534
2568
|
* @type number, double
|
|
2535
|
-
|
|
2569
|
+
*/
|
|
2536
2570
|
avg_latency_ms: number;
|
|
2537
2571
|
/**
|
|
2538
2572
|
* @description 99th percentile end-to-end query latency in milliseconds.
|
|
2539
2573
|
* @type number, double
|
|
2540
|
-
|
|
2574
|
+
*/
|
|
2541
2575
|
p99_latency_ms: number;
|
|
2542
2576
|
/**
|
|
2543
2577
|
* @description Average upstream connection acquisition latency in milliseconds.
|
|
2544
2578
|
* @type number | undefined, double
|
|
2545
|
-
|
|
2579
|
+
*/
|
|
2546
2580
|
avg_connect_ms?: number;
|
|
2547
2581
|
/**
|
|
2548
2582
|
* @description Average upstream query execution latency in milliseconds.
|
|
2549
2583
|
* @type number | undefined, double
|
|
2550
|
-
|
|
2584
|
+
*/
|
|
2551
2585
|
avg_query_ms?: number;
|
|
2552
2586
|
/**
|
|
2553
2587
|
* @description When the snapshot was recorded.
|
|
2554
2588
|
* @type string, date-time
|
|
2555
|
-
|
|
2589
|
+
*/
|
|
2556
2590
|
created_at: string;
|
|
2557
2591
|
};
|
|
2558
2592
|
|
|
2559
2593
|
/**
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2594
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2595
|
+
* Do not edit manually.
|
|
2596
|
+
*/
|
|
2563
2597
|
|
|
2564
2598
|
/**
|
|
2565
2599
|
* @description Response envelope for recent project metrics snapshots.
|
|
2566
|
-
|
|
2600
|
+
*/
|
|
2567
2601
|
type ProjectMetricsResponse = {
|
|
2568
2602
|
/**
|
|
2569
2603
|
* @description Metrics snapshots ordered from newest to oldest.
|
|
2570
2604
|
* @type array
|
|
2571
|
-
|
|
2605
|
+
*/
|
|
2572
2606
|
snapshots: MetricsSnapshot[];
|
|
2573
2607
|
};
|
|
2574
2608
|
|
|
2575
2609
|
/**
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2610
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2611
|
+
* Do not edit manually.
|
|
2612
|
+
*/
|
|
2579
2613
|
|
|
2580
2614
|
type GetProjectMetricsPathParams = {
|
|
2581
2615
|
/**
|
|
2582
2616
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
2583
2617
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
2584
2618
|
* @type string
|
|
2585
|
-
|
|
2619
|
+
*/
|
|
2586
2620
|
project_id: string;
|
|
2587
2621
|
};
|
|
2588
2622
|
type GetProjectMetricsQueryParams = {
|
|
@@ -2592,24 +2626,24 @@ type GetProjectMetricsQueryParams = {
|
|
|
2592
2626
|
* @maxLength 1000
|
|
2593
2627
|
* @default 60
|
|
2594
2628
|
* @type integer | undefined
|
|
2595
|
-
|
|
2629
|
+
*/
|
|
2596
2630
|
limit?: number;
|
|
2597
2631
|
/**
|
|
2598
2632
|
* @description Filter metrics by region code.
|
|
2599
2633
|
* @type string | undefined
|
|
2600
|
-
|
|
2634
|
+
*/
|
|
2601
2635
|
region?: string;
|
|
2602
2636
|
};
|
|
2603
2637
|
/**
|
|
2604
2638
|
* @description Metrics snapshots
|
|
2605
|
-
|
|
2639
|
+
*/
|
|
2606
2640
|
type GetProjectMetrics200 = ProjectMetricsResponse;
|
|
2607
2641
|
type GetProjectMetricsQueryResponse = GetProjectMetrics200;
|
|
2608
2642
|
|
|
2609
2643
|
/**
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2644
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2645
|
+
* Do not edit manually.
|
|
2646
|
+
*/
|
|
2613
2647
|
declare const regionProviderEnum: {
|
|
2614
2648
|
readonly aws: "aws";
|
|
2615
2649
|
readonly azure: "azure";
|
|
@@ -2624,401 +2658,401 @@ declare const regionStatusEnum: {
|
|
|
2624
2658
|
type RegionStatusEnumKey = (typeof regionStatusEnum)[keyof typeof regionStatusEnum];
|
|
2625
2659
|
/**
|
|
2626
2660
|
* @description Data plane region available for PgBeam traffic.
|
|
2627
|
-
|
|
2661
|
+
*/
|
|
2628
2662
|
type Region = {
|
|
2629
2663
|
/**
|
|
2630
2664
|
* @description Region identifier (e.g. us-east-1).
|
|
2631
2665
|
* @type string
|
|
2632
|
-
|
|
2666
|
+
*/
|
|
2633
2667
|
id: string;
|
|
2634
2668
|
/**
|
|
2635
2669
|
* @description Human-readable region name.
|
|
2636
2670
|
* @type string
|
|
2637
|
-
|
|
2671
|
+
*/
|
|
2638
2672
|
name: string;
|
|
2639
2673
|
/**
|
|
2640
2674
|
* @description Cloud provider.
|
|
2641
2675
|
* @type string
|
|
2642
|
-
|
|
2676
|
+
*/
|
|
2643
2677
|
provider: RegionProviderEnumKey;
|
|
2644
2678
|
/**
|
|
2645
2679
|
* @description Region operational status.
|
|
2646
2680
|
* @type string
|
|
2647
|
-
|
|
2681
|
+
*/
|
|
2648
2682
|
status: RegionStatusEnumKey;
|
|
2649
2683
|
/**
|
|
2650
2684
|
* @description Whether new projects can currently be assigned to the region.
|
|
2651
2685
|
* @type boolean
|
|
2652
|
-
|
|
2686
|
+
*/
|
|
2653
2687
|
available: boolean;
|
|
2654
2688
|
/**
|
|
2655
2689
|
* @description Continent where the region is located.
|
|
2656
2690
|
* @type string | undefined
|
|
2657
|
-
|
|
2691
|
+
*/
|
|
2658
2692
|
continent?: string;
|
|
2659
2693
|
/**
|
|
2660
2694
|
* @description Country where the region is located.
|
|
2661
2695
|
* @type string | undefined
|
|
2662
|
-
|
|
2696
|
+
*/
|
|
2663
2697
|
country?: string;
|
|
2664
2698
|
};
|
|
2665
2699
|
|
|
2666
2700
|
/**
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2701
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2702
|
+
* Do not edit manually.
|
|
2703
|
+
*/
|
|
2670
2704
|
|
|
2671
2705
|
/**
|
|
2672
2706
|
* @description Response envelope for available region queries.
|
|
2673
|
-
|
|
2707
|
+
*/
|
|
2674
2708
|
type ListRegionsResponse = {
|
|
2675
2709
|
/**
|
|
2676
2710
|
* @description Regions currently known to the control plane.
|
|
2677
2711
|
* @type array
|
|
2678
|
-
|
|
2712
|
+
*/
|
|
2679
2713
|
regions: Region[];
|
|
2680
2714
|
};
|
|
2681
2715
|
|
|
2682
2716
|
/**
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2717
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2718
|
+
* Do not edit manually.
|
|
2719
|
+
*/
|
|
2686
2720
|
|
|
2687
2721
|
/**
|
|
2688
2722
|
* @description List of regions.
|
|
2689
|
-
|
|
2723
|
+
*/
|
|
2690
2724
|
type ListRegions200 = ListRegionsResponse;
|
|
2691
2725
|
type ListRegionsQueryResponse = ListRegions200;
|
|
2692
2726
|
|
|
2693
2727
|
/**
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2728
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2729
|
+
* Do not edit manually.
|
|
2730
|
+
*/
|
|
2697
2731
|
|
|
2698
2732
|
/**
|
|
2699
2733
|
* @description Read replica registered for a primary database.
|
|
2700
|
-
|
|
2734
|
+
*/
|
|
2701
2735
|
type Replica = {
|
|
2702
2736
|
/**
|
|
2703
2737
|
* @description Unique replica identifier (prefixed).
|
|
2704
2738
|
* @type string
|
|
2705
|
-
|
|
2739
|
+
*/
|
|
2706
2740
|
id: string;
|
|
2707
2741
|
/**
|
|
2708
2742
|
* @description Parent database ID.
|
|
2709
2743
|
* @type string
|
|
2710
|
-
|
|
2744
|
+
*/
|
|
2711
2745
|
database_id: string;
|
|
2712
2746
|
/**
|
|
2713
2747
|
* @description PostgreSQL replica host.
|
|
2714
2748
|
* @type string
|
|
2715
|
-
|
|
2749
|
+
*/
|
|
2716
2750
|
host: string;
|
|
2717
2751
|
/**
|
|
2718
2752
|
* @description PostgreSQL replica port.
|
|
2719
2753
|
* @minLength 1
|
|
2720
2754
|
* @maxLength 65535
|
|
2721
2755
|
* @type integer
|
|
2722
|
-
|
|
2756
|
+
*/
|
|
2723
2757
|
port: number;
|
|
2724
2758
|
/**
|
|
2725
2759
|
* @description PostgreSQL SSL connection mode.
|
|
2726
2760
|
* @type string
|
|
2727
|
-
|
|
2761
|
+
*/
|
|
2728
2762
|
ssl_mode: SSLMode;
|
|
2729
2763
|
/**
|
|
2730
2764
|
* @description When the replica was created.
|
|
2731
2765
|
* @type string, date-time
|
|
2732
|
-
|
|
2766
|
+
*/
|
|
2733
2767
|
created_at: string;
|
|
2734
2768
|
/**
|
|
2735
2769
|
* @description When the replica was last updated.
|
|
2736
2770
|
* @type string, date-time
|
|
2737
|
-
|
|
2771
|
+
*/
|
|
2738
2772
|
updated_at: string;
|
|
2739
2773
|
};
|
|
2740
2774
|
|
|
2741
2775
|
/**
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2776
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2777
|
+
* Do not edit manually.
|
|
2778
|
+
*/
|
|
2745
2779
|
|
|
2746
2780
|
/**
|
|
2747
2781
|
* @description Response envelope for listing registered replicas.
|
|
2748
|
-
|
|
2782
|
+
*/
|
|
2749
2783
|
type ListReplicasResponse = {
|
|
2750
2784
|
/**
|
|
2751
2785
|
* @description Read replicas attached to the database.
|
|
2752
2786
|
* @type array
|
|
2753
|
-
|
|
2787
|
+
*/
|
|
2754
2788
|
replicas: Replica[];
|
|
2755
2789
|
};
|
|
2756
2790
|
|
|
2757
2791
|
/**
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2792
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2793
|
+
* Do not edit manually.
|
|
2794
|
+
*/
|
|
2761
2795
|
|
|
2762
2796
|
type ListReplicasPathParams = {
|
|
2763
2797
|
/**
|
|
2764
2798
|
* @description Unique database identifier (prefixed, e.g. db_xxx).
|
|
2765
2799
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
2766
2800
|
* @type string
|
|
2767
|
-
|
|
2801
|
+
*/
|
|
2768
2802
|
database_id: string;
|
|
2769
2803
|
};
|
|
2770
2804
|
/**
|
|
2771
2805
|
* @description List of replicas.
|
|
2772
|
-
|
|
2806
|
+
*/
|
|
2773
2807
|
type ListReplicas200 = ListReplicasResponse;
|
|
2774
2808
|
type ListReplicasQueryResponse = ListReplicas200;
|
|
2775
2809
|
|
|
2776
2810
|
/**
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2811
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2812
|
+
* Do not edit manually.
|
|
2813
|
+
*/
|
|
2780
2814
|
|
|
2781
2815
|
/**
|
|
2782
2816
|
* @description Request body for adding a read replica to a database.
|
|
2783
|
-
|
|
2817
|
+
*/
|
|
2784
2818
|
type CreateReplicaRequest = {
|
|
2785
2819
|
/**
|
|
2786
2820
|
* @description PostgreSQL replica host.
|
|
2787
2821
|
* @minLength 1
|
|
2788
2822
|
* @pattern ^[^\s\x00]+$
|
|
2789
2823
|
* @type string
|
|
2790
|
-
|
|
2824
|
+
*/
|
|
2791
2825
|
host: string;
|
|
2792
2826
|
/**
|
|
2793
2827
|
* @description PostgreSQL replica port.
|
|
2794
2828
|
* @minLength 1
|
|
2795
2829
|
* @maxLength 65535
|
|
2796
2830
|
* @type integer
|
|
2797
|
-
|
|
2831
|
+
*/
|
|
2798
2832
|
port: number;
|
|
2799
2833
|
/**
|
|
2800
2834
|
* @description PostgreSQL SSL connection mode.
|
|
2801
2835
|
* @type string | undefined
|
|
2802
|
-
|
|
2836
|
+
*/
|
|
2803
2837
|
ssl_mode?: SSLMode;
|
|
2804
2838
|
};
|
|
2805
2839
|
|
|
2806
2840
|
/**
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2841
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2842
|
+
* Do not edit manually.
|
|
2843
|
+
*/
|
|
2810
2844
|
|
|
2811
2845
|
type CreateReplicaPathParams = {
|
|
2812
2846
|
/**
|
|
2813
2847
|
* @description Unique database identifier (prefixed, e.g. db_xxx).
|
|
2814
2848
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
2815
2849
|
* @type string
|
|
2816
|
-
|
|
2850
|
+
*/
|
|
2817
2851
|
database_id: string;
|
|
2818
2852
|
};
|
|
2819
2853
|
/**
|
|
2820
2854
|
* @description Replica created.
|
|
2821
|
-
|
|
2855
|
+
*/
|
|
2822
2856
|
type CreateReplica201 = Replica;
|
|
2823
2857
|
type CreateReplicaMutationRequest = CreateReplicaRequest;
|
|
2824
2858
|
type CreateReplicaMutationResponse = CreateReplica201;
|
|
2825
2859
|
|
|
2826
2860
|
/**
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2861
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2862
|
+
* Do not edit manually.
|
|
2863
|
+
*/
|
|
2830
2864
|
|
|
2831
2865
|
type DeleteReplicaPathParams = {
|
|
2832
2866
|
/**
|
|
2833
2867
|
* @description Unique database identifier (prefixed, e.g. db_xxx).
|
|
2834
2868
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
2835
2869
|
* @type string
|
|
2836
|
-
|
|
2870
|
+
*/
|
|
2837
2871
|
database_id: string;
|
|
2838
2872
|
/**
|
|
2839
2873
|
* @description Unique replica identifier (prefixed, e.g. rep_xxx).
|
|
2840
2874
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
2841
2875
|
* @type string
|
|
2842
|
-
|
|
2876
|
+
*/
|
|
2843
2877
|
replica_id: string;
|
|
2844
2878
|
};
|
|
2845
2879
|
|
|
2846
2880
|
/**
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2881
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2882
|
+
* Do not edit manually.
|
|
2883
|
+
*/
|
|
2850
2884
|
/**
|
|
2851
2885
|
* @description Daily usage totals aggregated across all projects in an organization.
|
|
2852
|
-
|
|
2886
|
+
*/
|
|
2853
2887
|
type DailyUsage = {
|
|
2854
2888
|
/**
|
|
2855
2889
|
* @description Usage date in UTC.
|
|
2856
2890
|
* @type string, date
|
|
2857
|
-
|
|
2891
|
+
*/
|
|
2858
2892
|
day: string;
|
|
2859
2893
|
/**
|
|
2860
2894
|
* @description Total queries served on the day.
|
|
2861
2895
|
* @type integer, int64
|
|
2862
|
-
|
|
2896
|
+
*/
|
|
2863
2897
|
queries_total: number;
|
|
2864
2898
|
/**
|
|
2865
2899
|
* @description Total cache hits on the day.
|
|
2866
2900
|
* @type integer, int64
|
|
2867
|
-
|
|
2901
|
+
*/
|
|
2868
2902
|
cache_hits: number;
|
|
2869
2903
|
/**
|
|
2870
2904
|
* @description Total cache misses on the day.
|
|
2871
2905
|
* @type integer, int64
|
|
2872
|
-
|
|
2906
|
+
*/
|
|
2873
2907
|
cache_misses: number;
|
|
2874
2908
|
/**
|
|
2875
2909
|
* @description Total proxy connection time consumed on the day.
|
|
2876
2910
|
* @type integer, int64
|
|
2877
|
-
|
|
2911
|
+
*/
|
|
2878
2912
|
connection_seconds: number;
|
|
2879
2913
|
/**
|
|
2880
2914
|
* @description Total bytes transferred to clients.
|
|
2881
2915
|
* @type integer, int64
|
|
2882
|
-
|
|
2916
|
+
*/
|
|
2883
2917
|
bytes_transferred: number;
|
|
2884
2918
|
};
|
|
2885
2919
|
|
|
2886
2920
|
/**
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2921
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2922
|
+
* Do not edit manually.
|
|
2923
|
+
*/
|
|
2890
2924
|
|
|
2891
2925
|
/**
|
|
2892
2926
|
* @description Response envelope for organization usage queries.
|
|
2893
|
-
|
|
2927
|
+
*/
|
|
2894
2928
|
type UsageResponse = {
|
|
2895
2929
|
/**
|
|
2896
2930
|
* @description Daily usage entries aggregated across the organization.
|
|
2897
2931
|
* @type array
|
|
2898
|
-
|
|
2932
|
+
*/
|
|
2899
2933
|
usage: DailyUsage[];
|
|
2900
2934
|
};
|
|
2901
2935
|
|
|
2902
2936
|
/**
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2937
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2938
|
+
* Do not edit manually.
|
|
2939
|
+
*/
|
|
2906
2940
|
|
|
2907
2941
|
type GetOrganizationUsagePathParams = {
|
|
2908
2942
|
/**
|
|
2909
2943
|
* @description Unique organization identifier.
|
|
2910
2944
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
2911
2945
|
* @type string
|
|
2912
|
-
|
|
2946
|
+
*/
|
|
2913
2947
|
org_id: string;
|
|
2914
2948
|
};
|
|
2915
2949
|
type GetOrganizationUsageQueryParams = {
|
|
2916
2950
|
/**
|
|
2917
2951
|
* @description Start date (inclusive, YYYY-MM-DD).
|
|
2918
2952
|
* @type string, date
|
|
2919
|
-
|
|
2953
|
+
*/
|
|
2920
2954
|
start_date: string;
|
|
2921
2955
|
/**
|
|
2922
2956
|
* @description End date (inclusive, YYYY-MM-DD).
|
|
2923
2957
|
* @type string, date
|
|
2924
|
-
|
|
2958
|
+
*/
|
|
2925
2959
|
end_date: string;
|
|
2926
2960
|
};
|
|
2927
2961
|
/**
|
|
2928
2962
|
* @description Daily usage data.
|
|
2929
|
-
|
|
2963
|
+
*/
|
|
2930
2964
|
type GetOrganizationUsage200 = UsageResponse;
|
|
2931
2965
|
type GetOrganizationUsageQueryResponse = GetOrganizationUsage200;
|
|
2932
2966
|
|
|
2933
2967
|
/**
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2968
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
2969
|
+
* Do not edit manually.
|
|
2970
|
+
*/
|
|
2937
2971
|
/**
|
|
2938
2972
|
* @description Daily usage totals for a single project and region.
|
|
2939
|
-
|
|
2973
|
+
*/
|
|
2940
2974
|
type ProjectDailyUsage = {
|
|
2941
2975
|
/**
|
|
2942
2976
|
* @description Usage date in UTC.
|
|
2943
2977
|
* @type string, date
|
|
2944
|
-
|
|
2978
|
+
*/
|
|
2945
2979
|
day: string;
|
|
2946
2980
|
/**
|
|
2947
2981
|
* @description Region where the traffic was served.
|
|
2948
2982
|
* @type string
|
|
2949
|
-
|
|
2983
|
+
*/
|
|
2950
2984
|
region: string;
|
|
2951
2985
|
/**
|
|
2952
2986
|
* @description Total queries served on the day.
|
|
2953
2987
|
* @type integer, int64
|
|
2954
|
-
|
|
2988
|
+
*/
|
|
2955
2989
|
queries_total: number;
|
|
2956
2990
|
/**
|
|
2957
2991
|
* @description Total cache hits on the day.
|
|
2958
2992
|
* @type integer, int64
|
|
2959
|
-
|
|
2993
|
+
*/
|
|
2960
2994
|
cache_hits: number;
|
|
2961
2995
|
/**
|
|
2962
2996
|
* @description Total cache misses on the day.
|
|
2963
2997
|
* @type integer, int64
|
|
2964
|
-
|
|
2998
|
+
*/
|
|
2965
2999
|
cache_misses: number;
|
|
2966
3000
|
/**
|
|
2967
3001
|
* @description Total proxy connection time consumed on the day.
|
|
2968
3002
|
* @type integer, int64
|
|
2969
|
-
|
|
3003
|
+
*/
|
|
2970
3004
|
connection_seconds: number;
|
|
2971
3005
|
/**
|
|
2972
3006
|
* @description Total bytes transferred to clients.
|
|
2973
3007
|
* @type integer, int64
|
|
2974
|
-
|
|
3008
|
+
*/
|
|
2975
3009
|
bytes_transferred: number;
|
|
2976
3010
|
};
|
|
2977
3011
|
|
|
2978
3012
|
/**
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
3013
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3014
|
+
* Do not edit manually.
|
|
3015
|
+
*/
|
|
2982
3016
|
|
|
2983
3017
|
/**
|
|
2984
3018
|
* @description Response envelope for project usage queries.
|
|
2985
|
-
|
|
3019
|
+
*/
|
|
2986
3020
|
type ProjectUsageResponse = {
|
|
2987
3021
|
/**
|
|
2988
3022
|
* @description Daily usage entries grouped by region for the project.
|
|
2989
3023
|
* @type array
|
|
2990
|
-
|
|
3024
|
+
*/
|
|
2991
3025
|
usage: ProjectDailyUsage[];
|
|
2992
3026
|
};
|
|
2993
3027
|
|
|
2994
3028
|
/**
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
3029
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
3030
|
+
* Do not edit manually.
|
|
3031
|
+
*/
|
|
2998
3032
|
|
|
2999
3033
|
type GetProjectUsagePathParams = {
|
|
3000
3034
|
/**
|
|
3001
3035
|
* @description Unique project identifier (prefixed, e.g. prj_xxx).
|
|
3002
3036
|
* @pattern ^[a-zA-Z0-9_.-]+$
|
|
3003
3037
|
* @type string
|
|
3004
|
-
|
|
3038
|
+
*/
|
|
3005
3039
|
project_id: string;
|
|
3006
3040
|
};
|
|
3007
3041
|
type GetProjectUsageQueryParams = {
|
|
3008
3042
|
/**
|
|
3009
3043
|
* @description Start date (inclusive, YYYY-MM-DD).
|
|
3010
3044
|
* @type string, date
|
|
3011
|
-
|
|
3045
|
+
*/
|
|
3012
3046
|
start_date: string;
|
|
3013
3047
|
/**
|
|
3014
3048
|
* @description End date (inclusive, YYYY-MM-DD).
|
|
3015
3049
|
* @type string, date
|
|
3016
|
-
|
|
3050
|
+
*/
|
|
3017
3051
|
end_date: string;
|
|
3018
3052
|
};
|
|
3019
3053
|
/**
|
|
3020
3054
|
* @description Daily usage data by region.
|
|
3021
|
-
|
|
3055
|
+
*/
|
|
3022
3056
|
type GetProjectUsage200 = ProjectUsageResponse;
|
|
3023
3057
|
type GetProjectUsageQueryResponse = GetProjectUsage200;
|
|
3024
3058
|
|
|
@@ -3043,10 +3077,6 @@ declare const operationsByTag: {
|
|
|
3043
3077
|
};
|
|
3044
3078
|
};
|
|
3045
3079
|
readonly analytics: {
|
|
3046
|
-
readonly getOrganizationActivity: {
|
|
3047
|
-
readonly method: "GET";
|
|
3048
|
-
readonly path: "/v1/organizations/{org_id}/activity";
|
|
3049
|
-
};
|
|
3050
3080
|
readonly listPlans: {
|
|
3051
3081
|
readonly method: "GET";
|
|
3052
3082
|
readonly path: "/v1/plans";
|
|
@@ -3174,6 +3204,12 @@ declare const operationsByTag: {
|
|
|
3174
3204
|
readonly path: "/v1/regions";
|
|
3175
3205
|
};
|
|
3176
3206
|
};
|
|
3207
|
+
readonly mCP: {
|
|
3208
|
+
readonly mcpTransport: {
|
|
3209
|
+
readonly method: "POST";
|
|
3210
|
+
readonly path: "/v1/mcp";
|
|
3211
|
+
};
|
|
3212
|
+
};
|
|
3177
3213
|
};
|
|
3178
3214
|
declare const operationsByPath: {
|
|
3179
3215
|
readonly "GET /v1/account/export": {
|
|
@@ -3181,11 +3217,6 @@ declare const operationsByPath: {
|
|
|
3181
3217
|
readonly path: "/v1/account/export";
|
|
3182
3218
|
readonly operationId: "exportAccountData";
|
|
3183
3219
|
};
|
|
3184
|
-
readonly "GET /v1/organizations/{org_id}/activity": {
|
|
3185
|
-
readonly method: "GET";
|
|
3186
|
-
readonly path: "/v1/organizations/{org_id}/activity";
|
|
3187
|
-
readonly operationId: "getOrganizationActivity";
|
|
3188
|
-
};
|
|
3189
3220
|
readonly "GET /v1/plans": {
|
|
3190
3221
|
readonly method: "GET";
|
|
3191
3222
|
readonly path: "/v1/plans";
|
|
@@ -3276,6 +3307,11 @@ declare const operationsByPath: {
|
|
|
3276
3307
|
readonly path: "/v1/projects/{project_id}/insights";
|
|
3277
3308
|
readonly operationId: "getProjectInsights";
|
|
3278
3309
|
};
|
|
3310
|
+
readonly "POST /v1/mcp": {
|
|
3311
|
+
readonly method: "POST";
|
|
3312
|
+
readonly path: "/v1/mcp";
|
|
3313
|
+
readonly operationId: "mcpTransport";
|
|
3314
|
+
};
|
|
3279
3315
|
readonly "GET /v1/organizations/{org_id}/onboarding": {
|
|
3280
3316
|
readonly method: "GET";
|
|
3281
3317
|
readonly path: "/v1/organizations/{org_id}/onboarding";
|
|
@@ -3359,10 +3395,6 @@ interface ApiOperations {
|
|
|
3359
3395
|
}): Promise<UpdateOnboardingProgressMutationResponse>;
|
|
3360
3396
|
};
|
|
3361
3397
|
analytics: {
|
|
3362
|
-
getOrganizationActivity(params: {
|
|
3363
|
-
pathParams: GetOrganizationActivityPathParams;
|
|
3364
|
-
queryParams?: GetOrganizationActivityQueryParams;
|
|
3365
|
-
}): Promise<GetOrganizationActivityQueryResponse>;
|
|
3366
3398
|
listPlans(): Promise<ListPlansQueryResponse>;
|
|
3367
3399
|
getOrganizationPlan(params: {
|
|
3368
3400
|
pathParams: GetOrganizationPlanPathParams;
|
|
@@ -3469,19 +3501,17 @@ interface ApiOperations {
|
|
|
3469
3501
|
getHealth(): Promise<GetHealthQueryResponse>;
|
|
3470
3502
|
listRegions(): Promise<ListRegionsQueryResponse>;
|
|
3471
3503
|
};
|
|
3504
|
+
mCP: {
|
|
3505
|
+
mcpTransport(params: {
|
|
3506
|
+
body: McpTransportMutationRequest;
|
|
3507
|
+
}): Promise<McpTransportMutationResponse>;
|
|
3508
|
+
};
|
|
3472
3509
|
}
|
|
3473
3510
|
interface RequestMap {
|
|
3474
3511
|
"GET /v1/account/export": {
|
|
3475
3512
|
params?: undefined;
|
|
3476
3513
|
response: ExportAccountDataQueryResponse;
|
|
3477
3514
|
};
|
|
3478
|
-
"GET /v1/organizations/{org_id}/activity": {
|
|
3479
|
-
params: {
|
|
3480
|
-
pathParams: GetOrganizationActivityPathParams;
|
|
3481
|
-
queryParams?: GetOrganizationActivityQueryParams;
|
|
3482
|
-
};
|
|
3483
|
-
response: GetOrganizationActivityQueryResponse;
|
|
3484
|
-
};
|
|
3485
3515
|
"GET /v1/plans": {
|
|
3486
3516
|
params?: undefined;
|
|
3487
3517
|
response: ListPlansQueryResponse;
|
|
@@ -3596,6 +3626,12 @@ interface RequestMap {
|
|
|
3596
3626
|
};
|
|
3597
3627
|
response: GetProjectInsightsQueryResponse;
|
|
3598
3628
|
};
|
|
3629
|
+
"POST /v1/mcp": {
|
|
3630
|
+
params: {
|
|
3631
|
+
body: McpTransportMutationRequest;
|
|
3632
|
+
};
|
|
3633
|
+
response: McpTransportMutationResponse;
|
|
3634
|
+
};
|
|
3599
3635
|
"GET /v1/organizations/{org_id}/onboarding": {
|
|
3600
3636
|
params: {
|
|
3601
3637
|
pathParams: GetOnboardingProgressPathParams;
|