pgbeam 0.1.0 → 0.2.1

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.
@@ -2,224 +2,280 @@
2
2
  * Generated by Kubb (https://kubb.dev/).
3
3
  * Do not edit manually.
4
4
  */
5
+ /**
6
+ * @description Full account data export for privacy and data-portability requests.
7
+ */
5
8
  type AccountExport = {
6
9
  /**
10
+ * @description Core user profile data.
7
11
  * @type object
8
12
  */
9
13
  user: {
10
14
  /**
15
+ * @description User identifier.
11
16
  * @type string
12
17
  */
13
18
  id: string;
14
19
  /**
20
+ * @description Display name for the user.
15
21
  * @type string
16
22
  */
17
23
  name: string;
18
24
  /**
25
+ * @description Primary account email address.
19
26
  * @type string, email
20
27
  */
21
28
  email: string;
22
29
  /**
30
+ * @description Whether the email address has been verified.
23
31
  * @type boolean
24
32
  */
25
33
  email_verified: boolean;
26
34
  /**
35
+ * @description Avatar image URL, if present.
27
36
  * @type string | undefined
28
37
  */
29
38
  image?: string;
30
39
  /**
40
+ * @description When the user account was created.
31
41
  * @type string, date-time
32
42
  */
33
43
  created_at: string;
34
44
  /**
45
+ * @description When the user profile was last updated.
35
46
  * @type string, date-time
36
47
  */
37
48
  updated_at: string;
38
49
  };
39
50
  /**
51
+ * @description Organizations the user belongs to.
40
52
  * @type array
41
53
  */
42
54
  organizations: {
43
55
  /**
56
+ * @description Organization identifier.
44
57
  * @type string
45
58
  */
46
59
  id: string;
47
60
  /**
61
+ * @description Organization display name.
48
62
  * @type string
49
63
  */
50
64
  name: string;
51
65
  /**
66
+ * @description Organization slug used in URLs and routing.
52
67
  * @type string
53
68
  */
54
69
  slug: string;
55
70
  /**
71
+ * @description User role within the organization.
56
72
  * @type string
57
73
  */
58
74
  role: string;
59
75
  /**
76
+ * @description When the organization membership was created.
60
77
  * @type string, date-time
61
78
  */
62
79
  created_at: string;
63
80
  }[];
64
81
  /**
82
+ * @description Projects owned through the user\'s organizations.
65
83
  * @type array
66
84
  */
67
85
  projects: {
68
86
  /**
87
+ * @description Project identifier.
69
88
  * @type string
70
89
  */
71
90
  id: string;
72
91
  /**
92
+ * @description Owning organization identifier.
73
93
  * @type string
74
94
  */
75
95
  org_id: string;
76
96
  /**
97
+ * @description Project display name.
77
98
  * @type string
78
99
  */
79
100
  name: string;
80
101
  /**
102
+ * @description Project description at export time.
81
103
  * @type string
82
104
  */
83
105
  description: string;
84
106
  /**
107
+ * @description Project lifecycle status.
85
108
  * @type string
86
109
  */
87
110
  status: string;
88
111
  /**
112
+ * @description When the project was created.
89
113
  * @type string, date-time
90
114
  */
91
115
  created_at: string;
92
116
  }[];
93
117
  /**
118
+ * @description Databases registered under the exported projects.
94
119
  * @type array
95
120
  */
96
121
  databases: {
97
122
  /**
123
+ * @description Database identifier.
98
124
  * @type string
99
125
  */
100
126
  id: string;
101
127
  /**
128
+ * @description Owning project identifier.
102
129
  * @type string
103
130
  */
104
131
  project_id: string;
105
132
  /**
133
+ * @description Upstream PostgreSQL host.
106
134
  * @type string
107
135
  */
108
136
  host: string;
109
137
  /**
138
+ * @description Upstream PostgreSQL port.
110
139
  * @type integer
111
140
  */
112
141
  port: number;
113
142
  /**
143
+ * @description Upstream PostgreSQL database name.
114
144
  * @type string
115
145
  */
116
146
  name: string;
117
147
  /**
148
+ * @description PostgreSQL SSL mode in use for the database.
118
149
  * @type string
119
150
  */
120
151
  ssl_mode: string;
121
152
  /**
153
+ * @description Database role within the project.
122
154
  * @type string
123
155
  */
124
156
  role: string;
125
157
  /**
158
+ * @description When the database registration was created.
126
159
  * @type string, date-time
127
160
  */
128
161
  created_at: string;
129
162
  }[];
130
163
  /**
164
+ * @description Auth sessions associated with the user.
131
165
  * @type array
132
166
  */
133
167
  sessions: {
134
168
  /**
169
+ * @description Session identifier.
135
170
  * @type string
136
171
  */
137
172
  id: string;
138
173
  /**
174
+ * @description When the session expires.
139
175
  * @type string, date-time
140
176
  */
141
177
  expires_at: string;
142
178
  /**
179
+ * @description When the session was created.
143
180
  * @type string, date-time
144
181
  */
145
182
  created_at: string;
146
183
  /**
184
+ * @description IP address used to create the session, if known.
147
185
  * @type string | undefined
148
186
  */
149
187
  ip_address?: string;
150
188
  /**
189
+ * @description User agent captured for the session, if known.
151
190
  * @type string | undefined
152
191
  */
153
192
  user_agent?: string;
154
193
  }[];
155
194
  /**
195
+ * @description User communication preferences.
156
196
  * @type object
157
197
  */
158
198
  email_preferences: {
159
199
  /**
200
+ * @description Whether marketing emails are enabled.
160
201
  * @type boolean | undefined
161
202
  */
162
203
  marketing_emails?: boolean;
163
204
  /**
205
+ * @description Whether usage alert emails are enabled.
164
206
  * @type boolean | undefined
165
207
  */
166
208
  usage_limit_alerts?: boolean;
167
209
  };
168
210
  /**
211
+ * @description Recorded legal-document acceptances for the user.
169
212
  * @type array
170
213
  */
171
214
  consents: {
172
215
  /**
216
+ * @description Consent record identifier.
173
217
  * @type string
174
218
  */
175
219
  id: string;
176
220
  /**
221
+ * @description Legal document type accepted by the user.
177
222
  * @type string
178
223
  */
179
224
  document_type: string;
180
225
  /**
226
+ * @description Accepted document version.
181
227
  * @type string
182
228
  */
183
229
  document_version: string;
184
230
  /**
231
+ * @description When the document was accepted.
185
232
  * @type string, date-time
186
233
  */
187
234
  accepted_at: string;
188
235
  /**
236
+ * @description IP address captured when consent was recorded.
189
237
  * @type string | undefined
190
238
  */
191
239
  ip_address?: string;
192
240
  }[];
193
241
  /**
242
+ * @description Recent audit log entries associated with the account.
194
243
  * @type array
195
244
  */
196
245
  audit_logs: {
197
246
  /**
247
+ * @description Audit log entry identifier.
198
248
  * @type string
199
249
  */
200
250
  id: string;
201
251
  /**
252
+ * @description Action captured by the audit log entry.
202
253
  * @type string
203
254
  */
204
255
  action: string;
205
256
  /**
257
+ * @description Type of resource affected by the action.
206
258
  * @type string | undefined
207
259
  */
208
260
  resource_type?: string;
209
261
  /**
262
+ * @description Identifier of the affected resource.
210
263
  * @type string | undefined
211
264
  */
212
265
  resource_id?: string;
213
266
  /**
267
+ * @description IP address associated with the action, if known.
214
268
  * @type string | undefined
215
269
  */
216
270
  ip_address?: string;
217
271
  /**
272
+ * @description When the audit log entry was recorded.
218
273
  * @type string, date-time
219
274
  */
220
275
  created_at: string;
221
276
  }[];
222
277
  /**
278
+ * @description When the export was generated.
223
279
  * @type string, date-time
224
280
  */
225
281
  exported_at: string;
@@ -240,48 +296,62 @@ type ExportAccountDataQueryResponse = ExportAccountData200;
240
296
  * Generated by Kubb (https://kubb.dev/).
241
297
  * Do not edit manually.
242
298
  */
299
+ /**
300
+ * @description Recent activity snapshot for a project in an organization.
301
+ */
243
302
  type ActivityEntry = {
244
303
  /**
304
+ * @description Unique activity snapshot identifier.
245
305
  * @type string
246
306
  */
247
307
  id: string;
248
308
  /**
309
+ * @description Project that produced the activity snapshot.
249
310
  * @type string
250
311
  */
251
312
  project_id: string;
252
313
  /**
314
+ * @description Project display name at the time of the snapshot.
253
315
  * @type string
254
316
  */
255
317
  project_name: string;
256
318
  /**
319
+ * @description Region where the activity was observed.
257
320
  * @type string
258
321
  */
259
322
  region: string;
260
323
  /**
324
+ * @description Total queries observed in the snapshot interval.
261
325
  * @type integer, int64
262
326
  */
263
327
  queries_total: number;
264
328
  /**
329
+ * @description Number of cache hits during the interval.
265
330
  * @type integer, int64
266
331
  */
267
332
  cache_hits: number;
268
333
  /**
334
+ * @description Number of cache misses during the interval.
269
335
  * @type integer, int64
270
336
  */
271
337
  cache_misses: number;
272
338
  /**
339
+ * @description Average query latency in milliseconds.
273
340
  * @type number, double
274
341
  */
275
342
  avg_latency_ms: number;
276
343
  /**
344
+ * @description 99th percentile query latency in milliseconds.
277
345
  * @type number, double
278
346
  */
279
347
  p99_latency_ms: number;
280
348
  /**
349
+ * @description Number of active proxy connections during the interval.
281
350
  * @type integer
282
351
  */
283
352
  active_connections: number;
284
353
  /**
354
+ * @description When the activity snapshot was recorded.
285
355
  * @type string, date-time
286
356
  */
287
357
  created_at: string;
@@ -292,8 +362,12 @@ type ActivityEntry = {
292
362
  * Do not edit manually.
293
363
  */
294
364
 
365
+ /**
366
+ * @description Response envelope for organization activity queries.
367
+ */
295
368
  type ActivityResponse = {
296
369
  /**
370
+ * @description Recent activity snapshots for projects in the organization.
297
371
  * @type array
298
372
  */
299
373
  entries: ActivityEntry[];
@@ -306,14 +380,17 @@ type ActivityResponse = {
306
380
 
307
381
  type GetOrganizationActivityPathParams = {
308
382
  /**
383
+ * @description Unique organization identifier.
384
+ * @pattern ^[a-zA-Z0-9_.-]+$
309
385
  * @type string
310
386
  */
311
387
  org_id: string;
312
388
  };
313
389
  type GetOrganizationActivityQueryParams = {
314
390
  /**
391
+ * @description Maximum number of activity entries to return.
315
392
  * @minLength 1
316
- * @maxLength 500
393
+ * @maxLength 1000
317
394
  * @default 100
318
395
  * @type integer | undefined
319
396
  */
@@ -334,6 +411,9 @@ type GetOrganizationActivityQueryResponse = GetOrganizationActivity200;
334
411
  * Generated by Kubb (https://kubb.dev/).
335
412
  * Do not edit manually.
336
413
  */
414
+ /**
415
+ * @description Effective usage limits enforced for an organization plan.
416
+ */
337
417
  type PlanLimits = {
338
418
  /**
339
419
  * @description Maximum queries per day across all projects. 0 means unlimited.
@@ -365,6 +445,16 @@ type PlanLimits = {
365
445
  * @type integer, int64
366
446
  */
367
447
  bytes_per_month: number;
448
+ /**
449
+ * @description Maximum query shapes in cache rules. 0 means unlimited.
450
+ * @type integer
451
+ */
452
+ max_query_shapes: number;
453
+ /**
454
+ * @description Number of seats included in the plan.
455
+ * @type integer
456
+ */
457
+ included_seats: number;
368
458
  };
369
459
 
370
460
  /**
@@ -372,6 +462,9 @@ type PlanLimits = {
372
462
  * Do not edit manually.
373
463
  */
374
464
 
465
+ /**
466
+ * @description Publicly visible plan metadata and limits.
467
+ */
375
468
  type PlanInfo = {
376
469
  /**
377
470
  * @description Plan tier name (starter, pro, scale).
@@ -409,6 +502,7 @@ type PlanInfo = {
409
502
  */
410
503
  trial_days?: number;
411
504
  /**
505
+ * @description Effective usage limits enforced for an organization plan.
412
506
  * @type object
413
507
  */
414
508
  limits: PlanLimits;
@@ -419,8 +513,12 @@ type PlanInfo = {
419
513
  * Do not edit manually.
420
514
  */
421
515
 
516
+ /**
517
+ * @description Response envelope for listing available billing plans.
518
+ */
422
519
  type ListPlansResponse = {
423
520
  /**
521
+ * @description Billing plans available for self-serve signups.
424
522
  * @type array
425
523
  */
426
524
  plans: PlanInfo[];
@@ -446,8 +544,15 @@ declare const organizationPlanPlanEnum: {
446
544
  readonly starter: "starter";
447
545
  readonly pro: "pro";
448
546
  readonly scale: "scale";
547
+ readonly enterprise: "enterprise";
449
548
  };
450
549
  type OrganizationPlanPlanEnumKey = (typeof organizationPlanPlanEnum)[keyof typeof organizationPlanPlanEnum];
550
+ declare const organizationPlanBillingProviderEnum: {
551
+ readonly stripe: "stripe";
552
+ readonly vercel: "vercel";
553
+ readonly aws: "aws";
554
+ };
555
+ type OrganizationPlanBillingProviderEnumKey = (typeof organizationPlanBillingProviderEnum)[keyof typeof organizationPlanBillingProviderEnum];
451
556
  declare const organizationPlanSubscriptionStatusEnum: {
452
557
  readonly none: "none";
453
558
  readonly active: "active";
@@ -460,8 +565,12 @@ declare const organizationPlanSubscriptionStatusEnum: {
460
565
  readonly paused: "paused";
461
566
  };
462
567
  type OrganizationPlanSubscriptionStatusEnumKey = (typeof organizationPlanSubscriptionStatusEnum)[keyof typeof organizationPlanSubscriptionStatusEnum];
568
+ /**
569
+ * @description Billing state and plan limits for an organization.
570
+ */
463
571
  type OrganizationPlan = {
464
572
  /**
573
+ * @description Organization identifier the plan applies to.
465
574
  * @type string
466
575
  */
467
576
  org_id: string;
@@ -470,6 +579,11 @@ type OrganizationPlan = {
470
579
  * @type string
471
580
  */
472
581
  plan: OrganizationPlanPlanEnumKey;
582
+ /**
583
+ * @description Which billing provider manages this organization\'s subscription.
584
+ * @type string | undefined
585
+ */
586
+ billing_provider?: OrganizationPlanBillingProviderEnumKey;
473
587
  /**
474
588
  * @description Stripe subscription status.
475
589
  * @type string | undefined
@@ -486,14 +600,27 @@ type OrganizationPlan = {
486
600
  */
487
601
  enabled?: boolean;
488
602
  /**
603
+ * @description Whether the organization has custom enterprise pricing.
604
+ * @type boolean | undefined
605
+ */
606
+ custom_pricing?: boolean;
607
+ /**
608
+ * @description Monthly spend limit in dollars. Null means no limit.
609
+ * @type number, double
610
+ */
611
+ spend_limit?: number | null;
612
+ /**
613
+ * @description Effective usage limits enforced for an organization plan.
489
614
  * @type object
490
615
  */
491
616
  limits: PlanLimits;
492
617
  /**
618
+ * @description When the billing record was created.
493
619
  * @type string | undefined, date-time
494
620
  */
495
621
  created_at?: string;
496
622
  /**
623
+ * @description When the billing record was last updated.
497
624
  * @type string | undefined, date-time
498
625
  */
499
626
  updated_at?: string;
@@ -506,6 +633,8 @@ type OrganizationPlan = {
506
633
 
507
634
  type GetOrganizationPlanPathParams = {
508
635
  /**
636
+ * @description Unique organization identifier.
637
+ * @pattern ^[a-zA-Z0-9_.-]+$
509
638
  * @type string
510
639
  */
511
640
  org_id: string;
@@ -520,20 +649,93 @@ type GetOrganizationPlanQueryResponse = GetOrganizationPlan200;
520
649
  * Generated by Kubb (https://kubb.dev/).
521
650
  * Do not edit manually.
522
651
  */
523
- declare const queryCatalogEntryQueryTypeEnum: {
652
+ /**
653
+ * @description Request body for updating an organization\'s monthly spend cap.
654
+ */
655
+ type UpdateSpendLimitRequest = {
656
+ /**
657
+ * @description Monthly spend limit in dollars. Null to remove the limit.
658
+ * @type number, double
659
+ */
660
+ spend_limit?: number | null;
661
+ };
662
+
663
+ /**
664
+ * Generated by Kubb (https://kubb.dev/).
665
+ * Do not edit manually.
666
+ */
667
+
668
+ type UpdateSpendLimitPathParams = {
669
+ /**
670
+ * @description Unique organization identifier.
671
+ * @pattern ^[a-zA-Z0-9_.-]+$
672
+ * @type string
673
+ */
674
+ org_id: string;
675
+ };
676
+ /**
677
+ * @description Spend limit updated.
678
+ */
679
+ type UpdateSpendLimit200 = OrganizationPlan;
680
+ type UpdateSpendLimitMutationRequest = UpdateSpendLimitRequest;
681
+ type UpdateSpendLimitMutationResponse = UpdateSpendLimit200;
682
+
683
+ /**
684
+ * Generated by Kubb (https://kubb.dev/).
685
+ * Do not edit manually.
686
+ */
687
+ /**
688
+ * @description Request body for capturing cancellation feedback from a user.
689
+ */
690
+ type CancellationFeedbackRequest = {
691
+ /**
692
+ * @description Predefined cancellation reason.
693
+ * @type string | undefined
694
+ */
695
+ reason?: string;
696
+ /**
697
+ * @description Free-text feedback from the user.
698
+ * @type string | undefined
699
+ */
700
+ feedback?: string;
701
+ };
702
+
703
+ /**
704
+ * Generated by Kubb (https://kubb.dev/).
705
+ * Do not edit manually.
706
+ */
707
+
708
+ type SubmitCancellationFeedbackPathParams = {
709
+ /**
710
+ * @description Unique organization identifier.
711
+ * @pattern ^[a-zA-Z0-9_.-]+$
712
+ * @type string
713
+ */
714
+ org_id: string;
715
+ };
716
+ type SubmitCancellationFeedbackMutationRequest = CancellationFeedbackRequest;
717
+
718
+ /**
719
+ * Generated by Kubb (https://kubb.dev/).
720
+ * Do not edit manually.
721
+ */
722
+ declare const cacheRuleEntryQueryTypeEnum: {
524
723
  readonly read: "read";
525
724
  readonly write: "write";
526
725
  readonly other: "other";
527
726
  };
528
- type QueryCatalogEntryQueryTypeEnumKey = (typeof queryCatalogEntryQueryTypeEnum)[keyof typeof queryCatalogEntryQueryTypeEnum];
529
- declare const queryCatalogEntryRecommendationEnum: {
727
+ type CacheRuleEntryQueryTypeEnumKey = (typeof cacheRuleEntryQueryTypeEnum)[keyof typeof cacheRuleEntryQueryTypeEnum];
728
+ declare const cacheRuleEntryRecommendationEnum: {
530
729
  readonly great: "great";
531
730
  readonly good: "good";
532
731
  readonly fair: "fair";
533
732
  readonly poor: "poor";
534
733
  };
535
- type QueryCatalogEntryRecommendationEnumKey = (typeof queryCatalogEntryRecommendationEnum)[keyof typeof queryCatalogEntryRecommendationEnum];
536
- type QueryCatalogEntry = {
734
+ type CacheRuleEntryRecommendationEnumKey = (typeof cacheRuleEntryRecommendationEnum)[keyof typeof cacheRuleEntryRecommendationEnum];
735
+ /**
736
+ * @description Observed query shape and its cache recommendation for a database.
737
+ */
738
+ type CacheRuleEntry = {
537
739
  /**
538
740
  * @description xxhash64 hex of the normalized SQL.
539
741
  * @type string
@@ -548,7 +750,7 @@ type QueryCatalogEntry = {
548
750
  * @description Query classification.
549
751
  * @type string
550
752
  */
551
- query_type: QueryCatalogEntryQueryTypeEnumKey;
753
+ query_type: CacheRuleEntryQueryTypeEnumKey;
552
754
  /**
553
755
  * @description Whether caching is enabled for this query shape.
554
756
  * @type boolean
@@ -595,7 +797,7 @@ type QueryCatalogEntry = {
595
797
  * @description Cache recommendation based on frequency, latency, and stability.
596
798
  * @type string
597
799
  */
598
- recommendation: QueryCatalogEntryRecommendationEnumKey;
800
+ recommendation: CacheRuleEntryRecommendationEnumKey;
599
801
  /**
600
802
  * @description When this query was first observed.
601
803
  * @type string, date-time
@@ -613,11 +815,15 @@ type QueryCatalogEntry = {
613
815
  * Do not edit manually.
614
816
  */
615
817
 
616
- type ListQueryCatalogResponse = {
818
+ /**
819
+ * @description Cursor-paginated cache-rule entries for a database.
820
+ */
821
+ type ListCacheRulesResponse = {
617
822
  /**
823
+ * @description Query shapes returned for the current page.
618
824
  * @type array
619
825
  */
620
- entries: QueryCatalogEntry[];
826
+ entries: CacheRuleEntry[];
621
827
  /**
622
828
  * @description Opaque token for cursor-based pagination.
623
829
  * @type string | undefined
@@ -630,7 +836,7 @@ type ListQueryCatalogResponse = {
630
836
  * Do not edit manually.
631
837
  */
632
838
 
633
- type ListQueryCatalogPathParams = {
839
+ type ListCacheRulesPathParams = {
634
840
  /**
635
841
  * @description Unique project identifier (prefixed, e.g. prj_xxx).
636
842
  * @pattern ^[a-zA-Z0-9_.-]+$
@@ -644,7 +850,7 @@ type ListQueryCatalogPathParams = {
644
850
  */
645
851
  database_id: string;
646
852
  };
647
- type ListQueryCatalogQueryParams = {
853
+ type ListCacheRulesQueryParams = {
648
854
  /**
649
855
  * @description Maximum number of items to return (1-100, default 20).
650
856
  * @minLength 1
@@ -661,15 +867,18 @@ type ListQueryCatalogQueryParams = {
661
867
  page_token?: string;
662
868
  };
663
869
  /**
664
- * @description Query catalog entries.
870
+ * @description Cache rule entries.
665
871
  */
666
- type ListQueryCatalog200 = ListQueryCatalogResponse;
667
- type ListQueryCatalogQueryResponse = ListQueryCatalog200;
872
+ type ListCacheRules200 = ListCacheRulesResponse;
873
+ type ListCacheRulesQueryResponse = ListCacheRules200;
668
874
 
669
875
  /**
670
876
  * Generated by Kubb (https://kubb.dev/).
671
877
  * Do not edit manually.
672
878
  */
879
+ /**
880
+ * @description Request body for updating cache behavior of a query shape.
881
+ */
673
882
  type UpdateCacheRuleRequest = {
674
883
  /**
675
884
  * @description Whether to enable caching for this query shape.
@@ -697,11 +906,15 @@ type UpdateCacheRuleRequest = {
697
906
  * Do not edit manually.
698
907
  */
699
908
 
909
+ /**
910
+ * @description Response returned after updating a cache rule.
911
+ */
700
912
  type UpdateCacheRuleResponse = {
701
913
  /**
914
+ * @description Observed query shape and its cache recommendation for a database.
702
915
  * @type object
703
916
  */
704
- entry: QueryCatalogEntry;
917
+ entry: CacheRuleEntry;
705
918
  };
706
919
 
707
920
  /**
@@ -838,6 +1051,14 @@ type PoolConfig = {
838
1051
  * @type string
839
1052
  */
840
1053
  pool_mode: PoolMode;
1054
+ /**
1055
+ * @description Maximum concurrent upstream connections per pool.
1056
+ * @minLength 1
1057
+ * @maxLength 10000
1058
+ * @default 200
1059
+ * @type integer | undefined
1060
+ */
1061
+ max_active?: number;
841
1062
  };
842
1063
 
843
1064
  /**
@@ -863,6 +1084,9 @@ type SSLMode = SSLModeEnumKey;
863
1084
  * Do not edit manually.
864
1085
  */
865
1086
 
1087
+ /**
1088
+ * @description Registered upstream PostgreSQL database for a project.
1089
+ */
866
1090
  type Database = {
867
1091
  /**
868
1092
  * @description Unique database identifier (prefixed).
@@ -913,7 +1137,7 @@ type Database = {
913
1137
  */
914
1138
  role?: DatabaseRole;
915
1139
  /**
916
- * @description AWS 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
1140
+ * @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
917
1141
  * @type string | undefined
918
1142
  */
919
1143
  pool_region?: string;
@@ -928,10 +1152,12 @@ type Database = {
928
1152
  */
929
1153
  pool_config: PoolConfig;
930
1154
  /**
1155
+ * @description When the database registration was created.
931
1156
  * @type string, date-time
932
1157
  */
933
1158
  created_at: string;
934
1159
  /**
1160
+ * @description When the database registration was last updated.
935
1161
  * @type string, date-time
936
1162
  */
937
1163
  updated_at: string;
@@ -942,8 +1168,12 @@ type Database = {
942
1168
  * Do not edit manually.
943
1169
  */
944
1170
 
1171
+ /**
1172
+ * @description Cursor-paginated list of databases attached to a project.
1173
+ */
945
1174
  type ListDatabasesResponse = {
946
1175
  /**
1176
+ * @description Databases on the current page.
947
1177
  * @type array
948
1178
  */
949
1179
  databases: Database[];
@@ -994,6 +1224,9 @@ type ListDatabasesQueryResponse = ListDatabases200;
994
1224
  * Do not edit manually.
995
1225
  */
996
1226
 
1227
+ /**
1228
+ * @description Request body for registering an upstream database.
1229
+ */
997
1230
  type CreateDatabaseRequest = {
998
1231
  /**
999
1232
  * @description PostgreSQL host.
@@ -1042,7 +1275,7 @@ type CreateDatabaseRequest = {
1042
1275
  */
1043
1276
  role?: DatabaseRole;
1044
1277
  /**
1045
- * @description AWS 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
1278
+ * @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
1046
1279
  * @type string | undefined
1047
1280
  */
1048
1281
  pool_region?: string;
@@ -1108,6 +1341,9 @@ type GetDatabaseQueryResponse = GetDatabase200;
1108
1341
  * Do not edit manually.
1109
1342
  */
1110
1343
 
1344
+ /**
1345
+ * @description Request body for partially updating an upstream database.
1346
+ */
1111
1347
  type UpdateDatabaseRequest = {
1112
1348
  /**
1113
1349
  * @description Updated PostgreSQL host.
@@ -1153,7 +1389,7 @@ type UpdateDatabaseRequest = {
1153
1389
  */
1154
1390
  role?: DatabaseRole;
1155
1391
  /**
1156
- * @description AWS 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
1392
+ * @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
1157
1393
  * @type string | undefined
1158
1394
  */
1159
1395
  pool_region?: string;
@@ -1219,6 +1455,9 @@ type DeleteDatabasePathParams = {
1219
1455
  * Generated by Kubb (https://kubb.dev/).
1220
1456
  * Do not edit manually.
1221
1457
  */
1458
+ /**
1459
+ * @description Result of testing connectivity to an upstream database.
1460
+ */
1222
1461
  type TestConnectionResult = {
1223
1462
  /**
1224
1463
  * @description Whether the connection test succeeded.
@@ -1271,6 +1510,9 @@ type TestDatabaseConnectionMutationResponse = TestDatabaseConnection200;
1271
1510
  * Generated by Kubb (https://kubb.dev/).
1272
1511
  * Do not edit manually.
1273
1512
  */
1513
+ /**
1514
+ * @description Custom database hostname attached to a project.
1515
+ */
1274
1516
  type CustomDomain = {
1275
1517
  /**
1276
1518
  * @description Unique domain identifier (prefixed).
@@ -1344,10 +1586,12 @@ type CustomDomain = {
1344
1586
  acme_cname_target?: string;
1345
1587
  };
1346
1588
  /**
1589
+ * @description When the custom domain was created.
1347
1590
  * @type string, date-time
1348
1591
  */
1349
1592
  created_at: string;
1350
1593
  /**
1594
+ * @description When the custom domain was last updated.
1351
1595
  * @type string, date-time
1352
1596
  */
1353
1597
  updated_at: string;
@@ -1358,8 +1602,12 @@ type CustomDomain = {
1358
1602
  * Do not edit manually.
1359
1603
  */
1360
1604
 
1605
+ /**
1606
+ * @description Cursor-paginated list of custom domains for a project.
1607
+ */
1361
1608
  type ListCustomDomainsResponse = {
1362
1609
  /**
1610
+ * @description Custom domains on the current page.
1363
1611
  * @type array
1364
1612
  */
1365
1613
  domains: CustomDomain[];
@@ -1409,6 +1657,9 @@ type ListCustomDomainsQueryResponse = ListCustomDomains200;
1409
1657
  * Generated by Kubb (https://kubb.dev/).
1410
1658
  * Do not edit manually.
1411
1659
  */
1660
+ /**
1661
+ * @description Request body for attaching a custom domain to a project.
1662
+ */
1412
1663
  type CreateCustomDomainRequest = {
1413
1664
  /**
1414
1665
  * @description The custom domain name to add (e.g., db.example.com).
@@ -1465,6 +1716,9 @@ type DeleteCustomDomainPathParams = {
1465
1716
  * Do not edit manually.
1466
1717
  */
1467
1718
 
1719
+ /**
1720
+ * @description Result of checking DNS ownership for a custom domain.
1721
+ */
1468
1722
  type VerifyCustomDomainResponse = {
1469
1723
  /**
1470
1724
  * @description Whether DNS verification succeeded.
@@ -1477,6 +1731,7 @@ type VerifyCustomDomainResponse = {
1477
1731
  */
1478
1732
  error?: string;
1479
1733
  /**
1734
+ * @description Custom database hostname attached to a project.
1480
1735
  * @type object | undefined
1481
1736
  */
1482
1737
  domain?: CustomDomain;
@@ -1516,6 +1771,9 @@ declare const healthResponseStatusEnum: {
1516
1771
  readonly degraded: "degraded";
1517
1772
  };
1518
1773
  type HealthResponseStatusEnumKey = (typeof healthResponseStatusEnum)[keyof typeof healthResponseStatusEnum];
1774
+ /**
1775
+ * @description Health status and build metadata for the API service.
1776
+ */
1519
1777
  type HealthResponse = {
1520
1778
  /**
1521
1779
  * @description Overall service health.
@@ -1554,12 +1812,17 @@ type GetHealthQueryResponse = GetHealth200;
1554
1812
  * Generated by Kubb (https://kubb.dev/).
1555
1813
  * Do not edit manually.
1556
1814
  */
1815
+ /**
1816
+ * @description Aggregate cache performance metrics for the selected time range.
1817
+ */
1557
1818
  type CacheSummary = {
1558
1819
  /**
1820
+ * @description Total number of cache hits in the selected time range.
1559
1821
  * @type integer, int64
1560
1822
  */
1561
1823
  total_hits: number;
1562
1824
  /**
1825
+ * @description Total number of cache misses in the selected time range.
1563
1826
  * @type integer, int64
1564
1827
  */
1565
1828
  total_misses: number;
@@ -1574,6 +1837,9 @@ type CacheSummary = {
1574
1837
  * Generated by Kubb (https://kubb.dev/).
1575
1838
  * Do not edit manually.
1576
1839
  */
1840
+ /**
1841
+ * @description Aggregate latency metrics for the selected time range.
1842
+ */
1577
1843
  type LatencySummary = {
1578
1844
  /**
1579
1845
  * @description Average latency in milliseconds across all queries.
@@ -1591,6 +1857,9 @@ type LatencySummary = {
1591
1857
  * Generated by Kubb (https://kubb.dev/).
1592
1858
  * Do not edit manually.
1593
1859
  */
1860
+ /**
1861
+ * @description Aggregated analytics for a normalized SQL query shape.
1862
+ */
1594
1863
  type QueryInsight = {
1595
1864
  /**
1596
1865
  * @description xxhash64 of the normalized SQL pattern (hex).
@@ -1608,10 +1877,12 @@ type QueryInsight = {
1608
1877
  */
1609
1878
  total_count: number;
1610
1879
  /**
1880
+ * @description Total cache hits attributed to the query shape.
1611
1881
  * @type integer, int64
1612
1882
  */
1613
1883
  total_cache_hits: number;
1614
1884
  /**
1885
+ * @description Total cache misses attributed to the query shape.
1615
1886
  * @type integer, int64
1616
1887
  */
1617
1888
  total_cache_misses: number;
@@ -1632,16 +1903,22 @@ type QueryInsight = {
1632
1903
  * Do not edit manually.
1633
1904
  */
1634
1905
 
1906
+ /**
1907
+ * @description Query insights, cache performance, and latency for a project.
1908
+ */
1635
1909
  type ProjectInsights = {
1636
1910
  /**
1911
+ * @description Top query shapes observed for the project.
1637
1912
  * @type array
1638
1913
  */
1639
1914
  queries: QueryInsight[];
1640
1915
  /**
1916
+ * @description Aggregate cache performance metrics for the selected time range.
1641
1917
  * @type object
1642
1918
  */
1643
1919
  cache: CacheSummary;
1644
1920
  /**
1921
+ * @description Aggregate latency metrics for the selected time range.
1645
1922
  * @type object
1646
1923
  */
1647
1924
  latency: LatencySummary;
@@ -1693,6 +1970,9 @@ type GetProjectInsightsQueryResponse = GetProjectInsights200;
1693
1970
  * Generated by Kubb (https://kubb.dev/).
1694
1971
  * Do not edit manually.
1695
1972
  */
1973
+ /**
1974
+ * @description Progress state for the dashboard onboarding checklist.
1975
+ */
1696
1976
  type OnboardingProgress = {
1697
1977
  /**
1698
1978
  * @description Organization ID this onboarding belongs to.
@@ -1751,9 +2031,9 @@ type OnboardingProgress = {
1751
2031
  steps_total: number;
1752
2032
  /**
1753
2033
  * @description When onboarding was completed. Null if not yet completed.
1754
- * @type string | undefined, date-time
2034
+ * @type string, date-time
1755
2035
  */
1756
- completed_at?: string;
2036
+ completed_at?: string | null;
1757
2037
  };
1758
2038
 
1759
2039
  /**
@@ -1763,8 +2043,8 @@ type OnboardingProgress = {
1763
2043
 
1764
2044
  type GetOnboardingProgressPathParams = {
1765
2045
  /**
1766
- * @description Organization ID.
1767
- * @pattern ^[\x20-\x7E]+$
2046
+ * @description Unique organization identifier.
2047
+ * @pattern ^[a-zA-Z0-9_.-]+$
1768
2048
  * @type string
1769
2049
  */
1770
2050
  org_id: string;
@@ -1787,6 +2067,9 @@ declare const updateOnboardingRequestStepEnum: {
1787
2067
  readonly first_query_run: "first_query_run";
1788
2068
  };
1789
2069
  type UpdateOnboardingRequestStepEnumKey = (typeof updateOnboardingRequestStepEnum)[keyof typeof updateOnboardingRequestStepEnum];
2070
+ /**
2071
+ * @description Request body for advancing or dismissing onboarding.
2072
+ */
1790
2073
  type UpdateOnboardingRequest = {
1791
2074
  /**
1792
2075
  * @description The onboarding step to mark as complete.
@@ -1807,8 +2090,8 @@ type UpdateOnboardingRequest = {
1807
2090
 
1808
2091
  type UpdateOnboardingProgressPathParams = {
1809
2092
  /**
1810
- * @description Organization ID.
1811
- * @pattern ^[\x20-\x7E]+$
2093
+ * @description Unique organization identifier.
2094
+ * @pattern ^[a-zA-Z0-9_.-]+$
1812
2095
  * @type string
1813
2096
  */
1814
2097
  org_id: string;
@@ -1840,6 +2123,15 @@ type ProjectStatus = ProjectStatusEnumKey;
1840
2123
  * Do not edit manually.
1841
2124
  */
1842
2125
 
2126
+ declare const projectCloudEnum: {
2127
+ readonly aws: "aws";
2128
+ readonly azure: "azure";
2129
+ readonly gcp: "gcp";
2130
+ };
2131
+ type ProjectCloudEnumKey = (typeof projectCloudEnum)[keyof typeof projectCloudEnum];
2132
+ /**
2133
+ * @description Project configuration and current control-plane state.
2134
+ */
1843
2135
  type Project = {
1844
2136
  /**
1845
2137
  * @description Unique project identifier (prefixed).
@@ -1865,11 +2157,17 @@ type Project = {
1865
2157
  */
1866
2158
  description?: string;
1867
2159
  /**
2160
+ * @description User-defined labels applied to the project.
1868
2161
  * @type array | undefined
1869
2162
  */
1870
2163
  tags?: string[];
1871
2164
  /**
1872
- * @description Proxy hostname for connecting through PgBeam (e.g., myproject.gw.pgbeam.app).
2165
+ * @description Cloud provider where the project runs.
2166
+ * @type string | undefined
2167
+ */
2168
+ readonly cloud?: ProjectCloudEnumKey;
2169
+ /**
2170
+ * @description Proxy hostname for connecting through PgBeam (e.g., myproject.aws.pgbeam.app).
1873
2171
  * @type string | undefined
1874
2172
  */
1875
2173
  readonly proxy_host?: string;
@@ -1910,10 +2208,12 @@ type Project = {
1910
2208
  */
1911
2209
  status: ProjectStatus;
1912
2210
  /**
2211
+ * @description When the project was created.
1913
2212
  * @type string, date-time
1914
2213
  */
1915
2214
  created_at: string;
1916
2215
  /**
2216
+ * @description When the project was last updated.
1917
2217
  * @type string, date-time
1918
2218
  */
1919
2219
  updated_at: string;
@@ -1924,8 +2224,12 @@ type Project = {
1924
2224
  * Do not edit manually.
1925
2225
  */
1926
2226
 
2227
+ /**
2228
+ * @description Cursor-paginated list of projects for an organization.
2229
+ */
1927
2230
  type ListProjectsResponse = {
1928
2231
  /**
2232
+ * @description Projects on the current page.
1929
2233
  * @type array
1930
2234
  */
1931
2235
  projects: Project[];
@@ -1991,6 +2295,15 @@ type ListProjectsQueryResponse = ListProjects200;
1991
2295
  * Do not edit manually.
1992
2296
  */
1993
2297
 
2298
+ declare const createProjectRequestCloudEnum: {
2299
+ readonly aws: "aws";
2300
+ readonly azure: "azure";
2301
+ readonly gcp: "gcp";
2302
+ };
2303
+ type CreateProjectRequestCloudEnumKey = (typeof createProjectRequestCloudEnum)[keyof typeof createProjectRequestCloudEnum];
2304
+ /**
2305
+ * @description Request body for creating a project and its primary database.
2306
+ */
1994
2307
  type CreateProjectRequest = {
1995
2308
  /**
1996
2309
  * @description Human-readable project name.
@@ -2002,21 +2315,30 @@ type CreateProjectRequest = {
2002
2315
  name: string;
2003
2316
  /**
2004
2317
  * @description Better Auth organization ID.
2005
- * @pattern ^[^\x00]*$
2318
+ * @minLength 1
2319
+ * @pattern ^[^\x00]+$
2006
2320
  * @type string
2007
2321
  */
2008
2322
  org_id: string;
2009
2323
  /**
2324
+ * @description Optional project description.
2010
2325
  * @maxLength 500
2011
2326
  * @type string | undefined
2012
2327
  */
2013
2328
  description?: string;
2014
2329
  /**
2330
+ * @description User-defined labels to attach to the project.
2015
2331
  * @type array | undefined
2016
2332
  */
2017
2333
  tags?: string[];
2018
2334
  /**
2019
- * @description Primary database. Created atomically with the project.
2335
+ * @description Cloud provider for the project.
2336
+ * @default "aws"
2337
+ * @type string | undefined
2338
+ */
2339
+ cloud?: CreateProjectRequestCloudEnumKey;
2340
+ /**
2341
+ * @description Request body for registering an upstream database.
2020
2342
  * @type object
2021
2343
  */
2022
2344
  database: CreateDatabaseRequest;
@@ -2027,12 +2349,17 @@ type CreateProjectRequest = {
2027
2349
  * Do not edit manually.
2028
2350
  */
2029
2351
 
2352
+ /**
2353
+ * @description Response returned after creating a project and its primary database.
2354
+ */
2030
2355
  type CreateProjectResponse = {
2031
2356
  /**
2357
+ * @description Project configuration and current control-plane state.
2032
2358
  * @type object
2033
2359
  */
2034
2360
  project: Project;
2035
2361
  /**
2362
+ * @description Registered upstream PostgreSQL database for a project.
2036
2363
  * @type object | undefined
2037
2364
  */
2038
2365
  database?: Database;
@@ -2074,6 +2401,9 @@ type GetProjectQueryResponse = GetProject200;
2074
2401
  * Do not edit manually.
2075
2402
  */
2076
2403
 
2404
+ /**
2405
+ * @description Request body for partially updating a project.
2406
+ */
2077
2407
  type UpdateProjectRequest = {
2078
2408
  /**
2079
2409
  * @description Updated project name.
@@ -2084,11 +2414,13 @@ type UpdateProjectRequest = {
2084
2414
  */
2085
2415
  name?: string;
2086
2416
  /**
2417
+ * @description Updated project description.
2087
2418
  * @maxLength 500
2088
2419
  * @type string | undefined
2089
2420
  */
2090
2421
  description?: string;
2091
2422
  /**
2423
+ * @description Replacement set of user-defined project labels.
2092
2424
  * @type array | undefined
2093
2425
  */
2094
2426
  tags?: string[];
@@ -2158,40 +2490,52 @@ type DeleteProjectPathParams = {
2158
2490
  * Generated by Kubb (https://kubb.dev/).
2159
2491
  * Do not edit manually.
2160
2492
  */
2493
+ /**
2494
+ * @description Aggregated project metrics captured for a point in time.
2495
+ */
2161
2496
  type MetricsSnapshot = {
2162
2497
  /**
2498
+ * @description Unique metrics snapshot identifier.
2163
2499
  * @type string
2164
2500
  */
2165
2501
  id: string;
2166
2502
  /**
2503
+ * @description Project that produced the metrics snapshot.
2167
2504
  * @type string
2168
2505
  */
2169
2506
  project_id: string;
2170
2507
  /**
2508
+ * @description Region where the traffic was served.
2171
2509
  * @type string
2172
2510
  */
2173
2511
  region: string;
2174
2512
  /**
2513
+ * @description Total queries served during the snapshot interval.
2175
2514
  * @type integer, int64
2176
2515
  */
2177
2516
  queries_total: number;
2178
2517
  /**
2518
+ * @description Number of queries served from cache.
2179
2519
  * @type integer, int64
2180
2520
  */
2181
2521
  cache_hits: number;
2182
2522
  /**
2523
+ * @description Number of queries forwarded upstream.
2183
2524
  * @type integer, int64
2184
2525
  */
2185
2526
  cache_misses: number;
2186
2527
  /**
2528
+ * @description Current active proxy connections.
2187
2529
  * @type integer
2188
2530
  */
2189
2531
  active_connections: number;
2190
2532
  /**
2533
+ * @description Average end-to-end query latency in milliseconds.
2191
2534
  * @type number, double
2192
2535
  */
2193
2536
  avg_latency_ms: number;
2194
2537
  /**
2538
+ * @description 99th percentile end-to-end query latency in milliseconds.
2195
2539
  * @type number, double
2196
2540
  */
2197
2541
  p99_latency_ms: number;
@@ -2206,11 +2550,28 @@ type MetricsSnapshot = {
2206
2550
  */
2207
2551
  avg_query_ms?: number;
2208
2552
  /**
2553
+ * @description When the snapshot was recorded.
2209
2554
  * @type string, date-time
2210
2555
  */
2211
2556
  created_at: string;
2212
2557
  };
2213
2558
 
2559
+ /**
2560
+ * Generated by Kubb (https://kubb.dev/).
2561
+ * Do not edit manually.
2562
+ */
2563
+
2564
+ /**
2565
+ * @description Response envelope for recent project metrics snapshots.
2566
+ */
2567
+ type ProjectMetricsResponse = {
2568
+ /**
2569
+ * @description Metrics snapshots ordered from newest to oldest.
2570
+ * @type array
2571
+ */
2572
+ snapshots: MetricsSnapshot[];
2573
+ };
2574
+
2214
2575
  /**
2215
2576
  * Generated by Kubb (https://kubb.dev/).
2216
2577
  * Do not edit manually.
@@ -2226,6 +2587,7 @@ type GetProjectMetricsPathParams = {
2226
2587
  };
2227
2588
  type GetProjectMetricsQueryParams = {
2228
2589
  /**
2590
+ * @description Maximum number of recent snapshots to return.
2229
2591
  * @minLength 1
2230
2592
  * @maxLength 1000
2231
2593
  * @default 60
@@ -2241,24 +2603,28 @@ type GetProjectMetricsQueryParams = {
2241
2603
  /**
2242
2604
  * @description Metrics snapshots
2243
2605
  */
2244
- type GetProjectMetrics200 = {
2245
- /**
2246
- * @type array
2247
- */
2248
- snapshots: MetricsSnapshot[];
2249
- };
2606
+ type GetProjectMetrics200 = ProjectMetricsResponse;
2250
2607
  type GetProjectMetricsQueryResponse = GetProjectMetrics200;
2251
2608
 
2252
2609
  /**
2253
2610
  * Generated by Kubb (https://kubb.dev/).
2254
2611
  * Do not edit manually.
2255
2612
  */
2613
+ declare const regionProviderEnum: {
2614
+ readonly aws: "aws";
2615
+ readonly azure: "azure";
2616
+ readonly gcp: "gcp";
2617
+ };
2618
+ type RegionProviderEnumKey = (typeof regionProviderEnum)[keyof typeof regionProviderEnum];
2256
2619
  declare const regionStatusEnum: {
2257
2620
  readonly active: "active";
2258
2621
  readonly draining: "draining";
2259
2622
  readonly inactive: "inactive";
2260
2623
  };
2261
2624
  type RegionStatusEnumKey = (typeof regionStatusEnum)[keyof typeof regionStatusEnum];
2625
+ /**
2626
+ * @description Data plane region available for PgBeam traffic.
2627
+ */
2262
2628
  type Region = {
2263
2629
  /**
2264
2630
  * @description Region identifier (e.g. us-east-1).
@@ -2274,21 +2640,24 @@ type Region = {
2274
2640
  * @description Cloud provider.
2275
2641
  * @type string
2276
2642
  */
2277
- provider: string;
2643
+ provider: RegionProviderEnumKey;
2278
2644
  /**
2279
2645
  * @description Region operational status.
2280
2646
  * @type string
2281
2647
  */
2282
2648
  status: RegionStatusEnumKey;
2283
2649
  /**
2650
+ * @description Whether new projects can currently be assigned to the region.
2284
2651
  * @type boolean
2285
2652
  */
2286
2653
  available: boolean;
2287
2654
  /**
2655
+ * @description Continent where the region is located.
2288
2656
  * @type string | undefined
2289
2657
  */
2290
2658
  continent?: string;
2291
2659
  /**
2660
+ * @description Country where the region is located.
2292
2661
  * @type string | undefined
2293
2662
  */
2294
2663
  country?: string;
@@ -2299,8 +2668,12 @@ type Region = {
2299
2668
  * Do not edit manually.
2300
2669
  */
2301
2670
 
2671
+ /**
2672
+ * @description Response envelope for available region queries.
2673
+ */
2302
2674
  type ListRegionsResponse = {
2303
2675
  /**
2676
+ * @description Regions currently known to the control plane.
2304
2677
  * @type array
2305
2678
  */
2306
2679
  regions: Region[];
@@ -2322,6 +2695,9 @@ type ListRegionsQueryResponse = ListRegions200;
2322
2695
  * Do not edit manually.
2323
2696
  */
2324
2697
 
2698
+ /**
2699
+ * @description Read replica registered for a primary database.
2700
+ */
2325
2701
  type Replica = {
2326
2702
  /**
2327
2703
  * @description Unique replica identifier (prefixed).
@@ -2351,10 +2727,12 @@ type Replica = {
2351
2727
  */
2352
2728
  ssl_mode: SSLMode;
2353
2729
  /**
2730
+ * @description When the replica was created.
2354
2731
  * @type string, date-time
2355
2732
  */
2356
2733
  created_at: string;
2357
2734
  /**
2735
+ * @description When the replica was last updated.
2358
2736
  * @type string, date-time
2359
2737
  */
2360
2738
  updated_at: string;
@@ -2365,8 +2743,12 @@ type Replica = {
2365
2743
  * Do not edit manually.
2366
2744
  */
2367
2745
 
2746
+ /**
2747
+ * @description Response envelope for listing registered replicas.
2748
+ */
2368
2749
  type ListReplicasResponse = {
2369
2750
  /**
2751
+ * @description Read replicas attached to the database.
2370
2752
  * @type array
2371
2753
  */
2372
2754
  replicas: Replica[];
@@ -2396,6 +2778,9 @@ type ListReplicasQueryResponse = ListReplicas200;
2396
2778
  * Do not edit manually.
2397
2779
  */
2398
2780
 
2781
+ /**
2782
+ * @description Request body for adding a read replica to a database.
2783
+ */
2399
2784
  type CreateReplicaRequest = {
2400
2785
  /**
2401
2786
  * @description PostgreSQL replica host.
@@ -2462,24 +2847,32 @@ type DeleteReplicaPathParams = {
2462
2847
  * Generated by Kubb (https://kubb.dev/).
2463
2848
  * Do not edit manually.
2464
2849
  */
2850
+ /**
2851
+ * @description Daily usage totals aggregated across all projects in an organization.
2852
+ */
2465
2853
  type DailyUsage = {
2466
2854
  /**
2855
+ * @description Usage date in UTC.
2467
2856
  * @type string, date
2468
2857
  */
2469
2858
  day: string;
2470
2859
  /**
2860
+ * @description Total queries served on the day.
2471
2861
  * @type integer, int64
2472
2862
  */
2473
2863
  queries_total: number;
2474
2864
  /**
2865
+ * @description Total cache hits on the day.
2475
2866
  * @type integer, int64
2476
2867
  */
2477
2868
  cache_hits: number;
2478
2869
  /**
2870
+ * @description Total cache misses on the day.
2479
2871
  * @type integer, int64
2480
2872
  */
2481
2873
  cache_misses: number;
2482
2874
  /**
2875
+ * @description Total proxy connection time consumed on the day.
2483
2876
  * @type integer, int64
2484
2877
  */
2485
2878
  connection_seconds: number;
@@ -2495,8 +2888,12 @@ type DailyUsage = {
2495
2888
  * Do not edit manually.
2496
2889
  */
2497
2890
 
2891
+ /**
2892
+ * @description Response envelope for organization usage queries.
2893
+ */
2498
2894
  type UsageResponse = {
2499
2895
  /**
2896
+ * @description Daily usage entries aggregated across the organization.
2500
2897
  * @type array
2501
2898
  */
2502
2899
  usage: DailyUsage[];
@@ -2509,6 +2906,8 @@ type UsageResponse = {
2509
2906
 
2510
2907
  type GetOrganizationUsagePathParams = {
2511
2908
  /**
2909
+ * @description Unique organization identifier.
2910
+ * @pattern ^[a-zA-Z0-9_.-]+$
2512
2911
  * @type string
2513
2912
  */
2514
2913
  org_id: string;
@@ -2535,28 +2934,37 @@ type GetOrganizationUsageQueryResponse = GetOrganizationUsage200;
2535
2934
  * Generated by Kubb (https://kubb.dev/).
2536
2935
  * Do not edit manually.
2537
2936
  */
2937
+ /**
2938
+ * @description Daily usage totals for a single project and region.
2939
+ */
2538
2940
  type ProjectDailyUsage = {
2539
2941
  /**
2942
+ * @description Usage date in UTC.
2540
2943
  * @type string, date
2541
2944
  */
2542
2945
  day: string;
2543
2946
  /**
2947
+ * @description Region where the traffic was served.
2544
2948
  * @type string
2545
2949
  */
2546
2950
  region: string;
2547
2951
  /**
2952
+ * @description Total queries served on the day.
2548
2953
  * @type integer, int64
2549
2954
  */
2550
2955
  queries_total: number;
2551
2956
  /**
2957
+ * @description Total cache hits on the day.
2552
2958
  * @type integer, int64
2553
2959
  */
2554
2960
  cache_hits: number;
2555
2961
  /**
2962
+ * @description Total cache misses on the day.
2556
2963
  * @type integer, int64
2557
2964
  */
2558
2965
  cache_misses: number;
2559
2966
  /**
2967
+ * @description Total proxy connection time consumed on the day.
2560
2968
  * @type integer, int64
2561
2969
  */
2562
2970
  connection_seconds: number;
@@ -2572,8 +2980,12 @@ type ProjectDailyUsage = {
2572
2980
  * Do not edit manually.
2573
2981
  */
2574
2982
 
2983
+ /**
2984
+ * @description Response envelope for project usage queries.
2985
+ */
2575
2986
  type ProjectUsageResponse = {
2576
2987
  /**
2988
+ * @description Daily usage entries grouped by region for the project.
2577
2989
  * @type array
2578
2990
  */
2579
2991
  usage: ProjectDailyUsage[];
@@ -2610,84 +3022,6 @@ type GetProjectUsageQueryParams = {
2610
3022
  type GetProjectUsage200 = ProjectUsageResponse;
2611
3023
  type GetProjectUsageQueryResponse = GetProjectUsage200;
2612
3024
 
2613
- /**
2614
- * Generated by Kubb (https://kubb.dev/).
2615
- * Do not edit manually.
2616
- */
2617
- type JoinWaitlistRequest = {
2618
- /**
2619
- * @type string, email
2620
- */
2621
- email: string;
2622
- /**
2623
- * @type string | undefined
2624
- */
2625
- name?: string;
2626
- /**
2627
- * @type string | undefined
2628
- */
2629
- company?: string;
2630
- };
2631
-
2632
- /**
2633
- * Generated by Kubb (https://kubb.dev/).
2634
- * Do not edit manually.
2635
- */
2636
- type WaitlistEntry = {
2637
- /**
2638
- * @type string
2639
- */
2640
- id: string;
2641
- /**
2642
- * @type string, email
2643
- */
2644
- email: string;
2645
- /**
2646
- * @type string
2647
- */
2648
- name: string;
2649
- /**
2650
- * @type string
2651
- */
2652
- company: string;
2653
- /**
2654
- * @type boolean
2655
- */
2656
- invited: boolean;
2657
- /**
2658
- * @type string, date-time
2659
- */
2660
- created_at: string;
2661
- /**
2662
- * @type string | undefined, date-time
2663
- */
2664
- invited_at?: string;
2665
- };
2666
-
2667
- /**
2668
- * Generated by Kubb (https://kubb.dev/).
2669
- * Do not edit manually.
2670
- */
2671
-
2672
- type JoinWaitlistResponse = {
2673
- /**
2674
- * @type object
2675
- */
2676
- entry: WaitlistEntry;
2677
- };
2678
-
2679
- /**
2680
- * Generated by Kubb (https://kubb.dev/).
2681
- * Do not edit manually.
2682
- */
2683
-
2684
- /**
2685
- * @description Successfully joined or already on the waitlist.
2686
- */
2687
- type JoinWaitlist200 = JoinWaitlistResponse;
2688
- type JoinWaitlistMutationRequest = JoinWaitlistRequest;
2689
- type JoinWaitlistMutationResponse = JoinWaitlist200;
2690
-
2691
3025
  /**
2692
3026
  * Generated by scripts/generate-maps.ts — do not edit manually.
2693
3027
  * Run: pnpm --filter pgbeam generate
@@ -2699,8 +3033,16 @@ declare const operationsByTag: {
2699
3033
  readonly method: "GET";
2700
3034
  readonly path: "/v1/account/export";
2701
3035
  };
3036
+ readonly getOnboardingProgress: {
3037
+ readonly method: "GET";
3038
+ readonly path: "/v1/organizations/{org_id}/onboarding";
3039
+ };
3040
+ readonly updateOnboardingProgress: {
3041
+ readonly method: "PATCH";
3042
+ readonly path: "/v1/organizations/{org_id}/onboarding";
3043
+ };
2702
3044
  };
2703
- readonly usage: {
3045
+ readonly analytics: {
2704
3046
  readonly getOrganizationActivity: {
2705
3047
  readonly method: "GET";
2706
3048
  readonly path: "/v1/organizations/{org_id}/activity";
@@ -2713,6 +3055,14 @@ declare const operationsByTag: {
2713
3055
  readonly method: "GET";
2714
3056
  readonly path: "/v1/organizations/{org_id}/plan";
2715
3057
  };
3058
+ readonly updateSpendLimit: {
3059
+ readonly method: "PUT";
3060
+ readonly path: "/v1/organizations/{org_id}/spend-limit";
3061
+ };
3062
+ readonly submitCancellationFeedback: {
3063
+ readonly method: "POST";
3064
+ readonly path: "/v1/organizations/{org_id}/cancellation-feedback";
3065
+ };
2716
3066
  readonly getProjectInsights: {
2717
3067
  readonly method: "GET";
2718
3068
  readonly path: "/v1/projects/{project_id}/insights";
@@ -2726,43 +3076,15 @@ declare const operationsByTag: {
2726
3076
  readonly path: "/v1/projects/{project_id}/usage";
2727
3077
  };
2728
3078
  };
2729
- readonly catalog: {
2730
- readonly listQueryCatalog: {
3079
+ readonly projects: {
3080
+ readonly listCacheRules: {
2731
3081
  readonly method: "GET";
2732
- readonly path: "/v1/projects/{project_id}/databases/{database_id}/catalog";
3082
+ readonly path: "/v1/projects/{project_id}/databases/{database_id}/cache-rules";
2733
3083
  };
2734
3084
  readonly updateCacheRule: {
2735
3085
  readonly method: "PUT";
2736
- readonly path: "/v1/projects/{project_id}/databases/{database_id}/catalog/{query_hash}/cache-rule";
3086
+ readonly path: "/v1/projects/{project_id}/databases/{database_id}/cache-rules/{query_hash}";
2737
3087
  };
2738
- };
2739
- readonly databases: {
2740
- readonly listDatabases: {
2741
- readonly method: "GET";
2742
- readonly path: "/v1/projects/{project_id}/databases";
2743
- };
2744
- readonly createDatabase: {
2745
- readonly method: "POST";
2746
- readonly path: "/v1/projects/{project_id}/databases";
2747
- };
2748
- readonly getDatabase: {
2749
- readonly method: "GET";
2750
- readonly path: "/v1/projects/{project_id}/databases/{database_id}";
2751
- };
2752
- readonly updateDatabase: {
2753
- readonly method: "PATCH";
2754
- readonly path: "/v1/projects/{project_id}/databases/{database_id}";
2755
- };
2756
- readonly deleteDatabase: {
2757
- readonly method: "DELETE";
2758
- readonly path: "/v1/projects/{project_id}/databases/{database_id}";
2759
- };
2760
- readonly testDatabaseConnection: {
2761
- readonly method: "POST";
2762
- readonly path: "/v1/projects/{project_id}/databases/{database_id}/test-connection";
2763
- };
2764
- };
2765
- readonly domains: {
2766
3088
  readonly listCustomDomains: {
2767
3089
  readonly method: "GET";
2768
3090
  readonly path: "/v1/projects/{project_id}/domains";
@@ -2779,24 +3101,6 @@ declare const operationsByTag: {
2779
3101
  readonly method: "POST";
2780
3102
  readonly path: "/v1/projects/{project_id}/domains/{domain_id}/verify";
2781
3103
  };
2782
- };
2783
- readonly health: {
2784
- readonly getHealth: {
2785
- readonly method: "GET";
2786
- readonly path: "/v1/health";
2787
- };
2788
- };
2789
- readonly onboarding: {
2790
- readonly getOnboardingProgress: {
2791
- readonly method: "GET";
2792
- readonly path: "/v1/organizations/{org_id}/onboarding";
2793
- };
2794
- readonly updateOnboardingProgress: {
2795
- readonly method: "PATCH";
2796
- readonly path: "/v1/organizations/{org_id}/onboarding";
2797
- };
2798
- };
2799
- readonly projects: {
2800
3104
  readonly listProjects: {
2801
3105
  readonly method: "GET";
2802
3106
  readonly path: "/v1/projects";
@@ -2821,14 +3125,6 @@ declare const operationsByTag: {
2821
3125
  readonly method: "GET";
2822
3126
  readonly path: "/v1/projects/{project_id}/metrics";
2823
3127
  };
2824
- };
2825
- readonly regions: {
2826
- readonly listRegions: {
2827
- readonly method: "GET";
2828
- readonly path: "/v1/regions";
2829
- };
2830
- };
2831
- readonly replicas: {
2832
3128
  readonly listReplicas: {
2833
3129
  readonly method: "GET";
2834
3130
  readonly path: "/v1/databases/{database_id}/replicas";
@@ -2842,10 +3138,40 @@ declare const operationsByTag: {
2842
3138
  readonly path: "/v1/databases/{database_id}/replicas/{replica_id}";
2843
3139
  };
2844
3140
  };
2845
- readonly waitlist: {
2846
- readonly joinWaitlist: {
3141
+ readonly databases: {
3142
+ readonly listDatabases: {
3143
+ readonly method: "GET";
3144
+ readonly path: "/v1/projects/{project_id}/databases";
3145
+ };
3146
+ readonly createDatabase: {
3147
+ readonly method: "POST";
3148
+ readonly path: "/v1/projects/{project_id}/databases";
3149
+ };
3150
+ readonly getDatabase: {
3151
+ readonly method: "GET";
3152
+ readonly path: "/v1/projects/{project_id}/databases/{database_id}";
3153
+ };
3154
+ readonly updateDatabase: {
3155
+ readonly method: "PATCH";
3156
+ readonly path: "/v1/projects/{project_id}/databases/{database_id}";
3157
+ };
3158
+ readonly deleteDatabase: {
3159
+ readonly method: "DELETE";
3160
+ readonly path: "/v1/projects/{project_id}/databases/{database_id}";
3161
+ };
3162
+ readonly testDatabaseConnection: {
2847
3163
  readonly method: "POST";
2848
- readonly path: "/v1/waitlist";
3164
+ readonly path: "/v1/projects/{project_id}/databases/{database_id}/test-connection";
3165
+ };
3166
+ };
3167
+ readonly platform: {
3168
+ readonly getHealth: {
3169
+ readonly method: "GET";
3170
+ readonly path: "/v1/health";
3171
+ };
3172
+ readonly listRegions: {
3173
+ readonly method: "GET";
3174
+ readonly path: "/v1/regions";
2849
3175
  };
2850
3176
  };
2851
3177
  };
@@ -2870,14 +3196,24 @@ declare const operationsByPath: {
2870
3196
  readonly path: "/v1/organizations/{org_id}/plan";
2871
3197
  readonly operationId: "getOrganizationPlan";
2872
3198
  };
2873
- readonly "GET /v1/projects/{project_id}/databases/{database_id}/catalog": {
3199
+ readonly "PUT /v1/organizations/{org_id}/spend-limit": {
3200
+ readonly method: "PUT";
3201
+ readonly path: "/v1/organizations/{org_id}/spend-limit";
3202
+ readonly operationId: "updateSpendLimit";
3203
+ };
3204
+ readonly "POST /v1/organizations/{org_id}/cancellation-feedback": {
3205
+ readonly method: "POST";
3206
+ readonly path: "/v1/organizations/{org_id}/cancellation-feedback";
3207
+ readonly operationId: "submitCancellationFeedback";
3208
+ };
3209
+ readonly "GET /v1/projects/{project_id}/databases/{database_id}/cache-rules": {
2874
3210
  readonly method: "GET";
2875
- readonly path: "/v1/projects/{project_id}/databases/{database_id}/catalog";
2876
- readonly operationId: "listQueryCatalog";
3211
+ readonly path: "/v1/projects/{project_id}/databases/{database_id}/cache-rules";
3212
+ readonly operationId: "listCacheRules";
2877
3213
  };
2878
- readonly "PUT /v1/projects/{project_id}/databases/{database_id}/catalog/{query_hash}/cache-rule": {
3214
+ readonly "PUT /v1/projects/{project_id}/databases/{database_id}/cache-rules/{query_hash}": {
2879
3215
  readonly method: "PUT";
2880
- readonly path: "/v1/projects/{project_id}/databases/{database_id}/catalog/{query_hash}/cache-rule";
3216
+ readonly path: "/v1/projects/{project_id}/databases/{database_id}/cache-rules/{query_hash}";
2881
3217
  readonly operationId: "updateCacheRule";
2882
3218
  };
2883
3219
  readonly "GET /v1/projects/{project_id}/databases": {
@@ -3010,17 +3346,19 @@ declare const operationsByPath: {
3010
3346
  readonly path: "/v1/projects/{project_id}/usage";
3011
3347
  readonly operationId: "getProjectUsage";
3012
3348
  };
3013
- readonly "POST /v1/waitlist": {
3014
- readonly method: "POST";
3015
- readonly path: "/v1/waitlist";
3016
- readonly operationId: "joinWaitlist";
3017
- };
3018
3349
  };
3019
3350
  interface ApiOperations {
3020
3351
  account: {
3021
3352
  exportAccountData(): Promise<ExportAccountDataQueryResponse>;
3353
+ getOnboardingProgress(params: {
3354
+ pathParams: GetOnboardingProgressPathParams;
3355
+ }): Promise<GetOnboardingProgressQueryResponse>;
3356
+ updateOnboardingProgress(params: {
3357
+ pathParams: UpdateOnboardingProgressPathParams;
3358
+ body: UpdateOnboardingProgressMutationRequest;
3359
+ }): Promise<UpdateOnboardingProgressMutationResponse>;
3022
3360
  };
3023
- usage: {
3361
+ analytics: {
3024
3362
  getOrganizationActivity(params: {
3025
3363
  pathParams: GetOrganizationActivityPathParams;
3026
3364
  queryParams?: GetOrganizationActivityQueryParams;
@@ -3029,6 +3367,14 @@ interface ApiOperations {
3029
3367
  getOrganizationPlan(params: {
3030
3368
  pathParams: GetOrganizationPlanPathParams;
3031
3369
  }): Promise<GetOrganizationPlanQueryResponse>;
3370
+ updateSpendLimit(params: {
3371
+ pathParams: UpdateSpendLimitPathParams;
3372
+ body: UpdateSpendLimitMutationRequest;
3373
+ }): Promise<UpdateSpendLimitMutationResponse>;
3374
+ submitCancellationFeedback(params: {
3375
+ pathParams: SubmitCancellationFeedbackPathParams;
3376
+ body: SubmitCancellationFeedbackMutationRequest;
3377
+ }): Promise<void>;
3032
3378
  getProjectInsights(params: {
3033
3379
  pathParams: GetProjectInsightsPathParams;
3034
3380
  queryParams?: GetProjectInsightsQueryParams;
@@ -3042,40 +3388,15 @@ interface ApiOperations {
3042
3388
  queryParams: GetProjectUsageQueryParams;
3043
3389
  }): Promise<GetProjectUsageQueryResponse>;
3044
3390
  };
3045
- catalog: {
3046
- listQueryCatalog(params: {
3047
- pathParams: ListQueryCatalogPathParams;
3048
- queryParams?: ListQueryCatalogQueryParams;
3049
- }): Promise<ListQueryCatalogQueryResponse>;
3391
+ projects: {
3392
+ listCacheRules(params: {
3393
+ pathParams: ListCacheRulesPathParams;
3394
+ queryParams?: ListCacheRulesQueryParams;
3395
+ }): Promise<ListCacheRulesQueryResponse>;
3050
3396
  updateCacheRule(params: {
3051
3397
  pathParams: UpdateCacheRulePathParams;
3052
3398
  body: UpdateCacheRuleMutationRequest;
3053
3399
  }): Promise<UpdateCacheRuleMutationResponse>;
3054
- };
3055
- databases: {
3056
- listDatabases(params: {
3057
- pathParams: ListDatabasesPathParams;
3058
- queryParams?: ListDatabasesQueryParams;
3059
- }): Promise<ListDatabasesQueryResponse>;
3060
- createDatabase(params: {
3061
- pathParams: CreateDatabasePathParams;
3062
- body: CreateDatabaseMutationRequest;
3063
- }): Promise<CreateDatabaseMutationResponse>;
3064
- getDatabase(params: {
3065
- pathParams: GetDatabasePathParams;
3066
- }): Promise<GetDatabaseQueryResponse>;
3067
- updateDatabase(params: {
3068
- pathParams: UpdateDatabasePathParams;
3069
- body: UpdateDatabaseMutationRequest;
3070
- }): Promise<UpdateDatabaseMutationResponse>;
3071
- deleteDatabase(params: {
3072
- pathParams: DeleteDatabasePathParams;
3073
- }): Promise<void>;
3074
- testDatabaseConnection(params: {
3075
- pathParams: TestDatabaseConnectionPathParams;
3076
- }): Promise<TestDatabaseConnectionMutationResponse>;
3077
- };
3078
- domains: {
3079
3400
  listCustomDomains(params: {
3080
3401
  pathParams: ListCustomDomainsPathParams;
3081
3402
  queryParams?: ListCustomDomainsQueryParams;
@@ -3090,20 +3411,6 @@ interface ApiOperations {
3090
3411
  verifyCustomDomain(params: {
3091
3412
  pathParams: VerifyCustomDomainPathParams;
3092
3413
  }): Promise<VerifyCustomDomainMutationResponse>;
3093
- };
3094
- health: {
3095
- getHealth(): Promise<GetHealthQueryResponse>;
3096
- };
3097
- onboarding: {
3098
- getOnboardingProgress(params: {
3099
- pathParams: GetOnboardingProgressPathParams;
3100
- }): Promise<GetOnboardingProgressQueryResponse>;
3101
- updateOnboardingProgress(params: {
3102
- pathParams: UpdateOnboardingProgressPathParams;
3103
- body: UpdateOnboardingProgressMutationRequest;
3104
- }): Promise<UpdateOnboardingProgressMutationResponse>;
3105
- };
3106
- projects: {
3107
3414
  listProjects(params: {
3108
3415
  queryParams: ListProjectsQueryParams;
3109
3416
  }): Promise<ListProjectsQueryResponse>;
@@ -3124,11 +3431,6 @@ interface ApiOperations {
3124
3431
  pathParams: GetProjectMetricsPathParams;
3125
3432
  queryParams?: GetProjectMetricsQueryParams;
3126
3433
  }): Promise<GetProjectMetricsQueryResponse>;
3127
- };
3128
- regions: {
3129
- listRegions(): Promise<ListRegionsQueryResponse>;
3130
- };
3131
- replicas: {
3132
3434
  listReplicas(params: {
3133
3435
  pathParams: ListReplicasPathParams;
3134
3436
  }): Promise<ListReplicasQueryResponse>;
@@ -3140,10 +3442,32 @@ interface ApiOperations {
3140
3442
  pathParams: DeleteReplicaPathParams;
3141
3443
  }): Promise<void>;
3142
3444
  };
3143
- waitlist: {
3144
- joinWaitlist(params: {
3145
- body: JoinWaitlistMutationRequest;
3146
- }): Promise<JoinWaitlistMutationResponse>;
3445
+ databases: {
3446
+ listDatabases(params: {
3447
+ pathParams: ListDatabasesPathParams;
3448
+ queryParams?: ListDatabasesQueryParams;
3449
+ }): Promise<ListDatabasesQueryResponse>;
3450
+ createDatabase(params: {
3451
+ pathParams: CreateDatabasePathParams;
3452
+ body: CreateDatabaseMutationRequest;
3453
+ }): Promise<CreateDatabaseMutationResponse>;
3454
+ getDatabase(params: {
3455
+ pathParams: GetDatabasePathParams;
3456
+ }): Promise<GetDatabaseQueryResponse>;
3457
+ updateDatabase(params: {
3458
+ pathParams: UpdateDatabasePathParams;
3459
+ body: UpdateDatabaseMutationRequest;
3460
+ }): Promise<UpdateDatabaseMutationResponse>;
3461
+ deleteDatabase(params: {
3462
+ pathParams: DeleteDatabasePathParams;
3463
+ }): Promise<void>;
3464
+ testDatabaseConnection(params: {
3465
+ pathParams: TestDatabaseConnectionPathParams;
3466
+ }): Promise<TestDatabaseConnectionMutationResponse>;
3467
+ };
3468
+ platform: {
3469
+ getHealth(): Promise<GetHealthQueryResponse>;
3470
+ listRegions(): Promise<ListRegionsQueryResponse>;
3147
3471
  };
3148
3472
  }
3149
3473
  interface RequestMap {
@@ -3168,14 +3492,28 @@ interface RequestMap {
3168
3492
  };
3169
3493
  response: GetOrganizationPlanQueryResponse;
3170
3494
  };
3171
- "GET /v1/projects/{project_id}/databases/{database_id}/catalog": {
3495
+ "PUT /v1/organizations/{org_id}/spend-limit": {
3172
3496
  params: {
3173
- pathParams: ListQueryCatalogPathParams;
3174
- queryParams?: ListQueryCatalogQueryParams;
3497
+ pathParams: UpdateSpendLimitPathParams;
3498
+ body: UpdateSpendLimitMutationRequest;
3175
3499
  };
3176
- response: ListQueryCatalogQueryResponse;
3500
+ response: UpdateSpendLimitMutationResponse;
3501
+ };
3502
+ "POST /v1/organizations/{org_id}/cancellation-feedback": {
3503
+ params: {
3504
+ pathParams: SubmitCancellationFeedbackPathParams;
3505
+ body: SubmitCancellationFeedbackMutationRequest;
3506
+ };
3507
+ response: void;
3177
3508
  };
3178
- "PUT /v1/projects/{project_id}/databases/{database_id}/catalog/{query_hash}/cache-rule": {
3509
+ "GET /v1/projects/{project_id}/databases/{database_id}/cache-rules": {
3510
+ params: {
3511
+ pathParams: ListCacheRulesPathParams;
3512
+ queryParams?: ListCacheRulesQueryParams;
3513
+ };
3514
+ response: ListCacheRulesQueryResponse;
3515
+ };
3516
+ "PUT /v1/projects/{project_id}/databases/{database_id}/cache-rules/{query_hash}": {
3179
3517
  params: {
3180
3518
  pathParams: UpdateCacheRulePathParams;
3181
3519
  body: UpdateCacheRuleMutationRequest;
@@ -3346,12 +3684,6 @@ interface RequestMap {
3346
3684
  };
3347
3685
  response: GetProjectUsageQueryResponse;
3348
3686
  };
3349
- "POST /v1/waitlist": {
3350
- params: {
3351
- body: JoinWaitlistMutationRequest;
3352
- };
3353
- response: JoinWaitlistMutationResponse;
3354
- };
3355
3687
  }
3356
3688
  type ApiTag = keyof ApiOperations;
3357
3689
  type Route = keyof RequestMap;