@distilled.cloud/xata 0.0.0 → 1.0.0-rc.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/LICENSE +201 -0
  2. package/lib/credentials.d.ts +29 -0
  3. package/lib/credentials.d.ts.map +1 -0
  4. package/lib/credentials.js +35 -0
  5. package/lib/credentials.js.map +1 -0
  6. package/lib/errors.d.ts +36 -0
  7. package/lib/errors.d.ts.map +1 -0
  8. package/lib/errors.js +26 -0
  9. package/lib/errors.js.map +1 -0
  10. package/lib/index.d.ts +24 -0
  11. package/lib/index.d.ts.map +1 -0
  12. package/lib/index.js +28 -0
  13. package/lib/index.js.map +1 -0
  14. package/lib/pagination.d.ts +9 -0
  15. package/lib/pagination.d.ts.map +1 -0
  16. package/lib/pagination.js +9 -0
  17. package/lib/pagination.js.map +1 -0
  18. package/lib/protocol.d.ts +18 -0
  19. package/lib/protocol.d.ts.map +1 -0
  20. package/lib/protocol.js +45 -0
  21. package/lib/protocol.js.map +1 -0
  22. package/lib/retry.d.ts +32 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +32 -0
  25. package/lib/retry.js.map +1 -0
  26. package/lib/services/index.d.ts +2 -0
  27. package/lib/services/index.d.ts.map +1 -0
  28. package/lib/services/index.js +3 -0
  29. package/lib/services/index.js.map +1 -0
  30. package/lib/services/xata.d.ts +1973 -0
  31. package/lib/services/xata.d.ts.map +1 -0
  32. package/lib/services/xata.js +1996 -0
  33. package/lib/services/xata.js.map +1 -0
  34. package/lib/traits.d.ts +11 -0
  35. package/lib/traits.d.ts.map +1 -0
  36. package/lib/traits.js +11 -0
  37. package/lib/traits.js.map +1 -0
  38. package/package.json +77 -6
  39. package/src/credentials.ts +57 -0
  40. package/src/errors.ts +50 -0
  41. package/src/index.ts +31 -0
  42. package/src/pagination.ts +8 -0
  43. package/src/protocol.ts +69 -0
  44. package/src/retry.ts +54 -0
  45. package/src/services/index.ts +2 -0
  46. package/src/services/xata.ts +4907 -0
  47. package/src/traits.ts +44 -0
@@ -0,0 +1,1973 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as Redacted from "effect/Redacted";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import { type XataOpError, type XataOpContext } from "../protocol.ts";
5
+ export type { XataOpError, XataOpContext };
6
+ declare const BadRequest_base: S.Class<BadRequest, S.TaggedStruct<"BadRequest", {
7
+ readonly code: any;
8
+ readonly message: any;
9
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
10
+ "@distilled.cloud/error/categories": {
11
+ BadRequestError: true;
12
+ };
13
+ });
14
+ export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
15
+ }
16
+ declare const Conflict_base: S.Class<Conflict, S.TaggedStruct<"Conflict", {
17
+ readonly code: any;
18
+ readonly message: any;
19
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
20
+ "@distilled.cloud/error/categories": {
21
+ ConflictError: true;
22
+ };
23
+ });
24
+ export declare class Conflict extends /*@__PURE__*/ Conflict_base {
25
+ }
26
+ declare const Forbidden_base: S.Class<Forbidden, S.TaggedStruct<"Forbidden", {
27
+ readonly code: any;
28
+ readonly message: any;
29
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
30
+ "@distilled.cloud/error/categories": {
31
+ AuthError: true;
32
+ };
33
+ });
34
+ export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
35
+ }
36
+ declare const NotFound_base: S.Class<NotFound, S.TaggedStruct<"NotFound", {
37
+ readonly code: any;
38
+ readonly message: any;
39
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
40
+ "@distilled.cloud/error/categories": {
41
+ BadRequestError: true;
42
+ };
43
+ });
44
+ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
45
+ }
46
+ /** Log attribute to filter on. */
47
+ export type LogFilterField = "instance" | "level" | "process" | "body";
48
+ export declare const LogFilterField: any;
49
+ /** Match operator. */
50
+ export type LogFilterOp = "in" | "contains" | "icontains" | "regex" | "iregex";
51
+ export declare const LogFilterOp: any;
52
+ /** Used with `op: in`. */
53
+ export type LogFilterValuesList = Array<string>;
54
+ export declare const LogFilterValuesList: S.Schema<LogFilterValuesList>;
55
+ /** A single filter on log entries. */
56
+ export interface LogFilter {
57
+ /** Log attribute to filter on. */
58
+ field: LogFilterField | (string & {});
59
+ /** Match operator. */
60
+ op: LogFilterOp | (string & {});
61
+ /** Used with `op: in`. */
62
+ values?: LogFilterValuesList;
63
+ /** Used with the body operators. */
64
+ value?: string;
65
+ }
66
+ export declare const LogFilter: S.Schema<LogFilter>;
67
+ /** Filters applied to log entries. Multiple filters are combined with AND. */
68
+ export type BranchLogsRequestFiltersList = Array<LogFilter>;
69
+ export declare const BranchLogsRequestFiltersList: S.Schema<BranchLogsRequestFiltersList>;
70
+ export interface BranchLogsRequest {
71
+ organizationID: string;
72
+ projectID: string;
73
+ branchID: string;
74
+ /** Start time */
75
+ start: string;
76
+ /** End time */
77
+ end: string;
78
+ /** Filters applied to log entries. Multiple filters are combined with AND. */
79
+ filters?: BranchLogsRequestFiltersList;
80
+ limit?: number;
81
+ /** Pagination cursor from a previous response */
82
+ cursor?: string;
83
+ }
84
+ export declare const BranchLogsRequest: S.Schema<BranchLogsRequest>;
85
+ /** Log level enumeration */
86
+ export type LogLevel = "debug" | "info" | "warning" | "error";
87
+ export declare const LogLevel: any;
88
+ export interface LogEntry {
89
+ timestamp: string;
90
+ instanceID: string;
91
+ level?: LogLevel;
92
+ message: string;
93
+ /** Name of the PostgreSQL process that emitted the log */
94
+ process?: string;
95
+ }
96
+ export declare const LogEntry: S.Schema<LogEntry>;
97
+ export type BranchLogsLogsList = Array<LogEntry>;
98
+ export declare const BranchLogsLogsList: S.Schema<BranchLogsLogsList>;
99
+ /** A collection of logs for each of the instances of a branch */
100
+ export interface BranchLogs {
101
+ start: string;
102
+ end: string;
103
+ logs: BranchLogsLogsList;
104
+ /** Pagination cursor for the next page */
105
+ nextCursor: string | null;
106
+ }
107
+ export declare const BranchLogs: S.Schema<BranchLogs>;
108
+ /** Name of a branch metric exposed by the API. */
109
+ export type BranchMetricName = "cpu" | "memory" | "disk" | "connections_active" | "connections_idle" | "network_ingress" | "network_egress" | "iops_read" | "iops_write" | "latency_read" | "latency_write" | "throughput_read" | "throughput_write" | "wal_sync_time" | "replication_lag_time";
110
+ export declare const BranchMetricName: any;
111
+ /** List of metric names to query. */
112
+ export type BranchMetricsRequestMetricsList = Array<BranchMetricName | (string & {})>;
113
+ export declare const BranchMetricsRequestMetricsList: S.Schema<BranchMetricsRequestMetricsList>;
114
+ /** List of instance IDs to query */
115
+ export type BranchMetricsRequestInstancesList = Array<string>;
116
+ export declare const BranchMetricsRequestInstancesList: S.Schema<BranchMetricsRequestInstancesList>;
117
+ export type BranchMetricsRequestAggregationsItem = "avg" | "max" | "min";
118
+ export declare const BranchMetricsRequestAggregationsItem: any;
119
+ /** List of aggregations to get, this is how the data-points within the interval are aggregated. Each one will generate a separate time-series per metric in the response. */
120
+ export type BranchMetricsRequestAggregationsList = Array<BranchMetricsRequestAggregationsItem | (string & {})>;
121
+ export declare const BranchMetricsRequestAggregationsList: S.Schema<BranchMetricsRequestAggregationsList>;
122
+ export interface BranchMetricsRequest {
123
+ organizationID: string;
124
+ projectID: string;
125
+ branchID: string;
126
+ /** Start time */
127
+ start: string;
128
+ /** End time */
129
+ end: string;
130
+ /** List of metric names to query. */
131
+ metrics: BranchMetricsRequestMetricsList;
132
+ /** List of instance IDs to query */
133
+ instances?: BranchMetricsRequestInstancesList;
134
+ /** List of aggregations to get, this is how the data-points within the interval are aggregated. Each one will generate a separate time-series per metric in the response. */
135
+ aggregations: BranchMetricsRequestAggregationsList;
136
+ }
137
+ export declare const BranchMetricsRequest: S.Schema<BranchMetricsRequest>;
138
+ /** The aggregation used to generate this time-series */
139
+ export type MetricSeriesAggregation = "avg" | "max" | "min";
140
+ export declare const MetricSeriesAggregation: any;
141
+ export interface MetricSeriesValuesItem {
142
+ timestamp: string;
143
+ value: number;
144
+ }
145
+ export declare const MetricSeriesValuesItem: S.Schema<MetricSeriesValuesItem>;
146
+ export type MetricSeriesValuesList = Array<MetricSeriesValuesItem>;
147
+ export declare const MetricSeriesValuesList: S.Schema<MetricSeriesValuesList>;
148
+ /** The metric series */
149
+ export interface MetricSeries {
150
+ /** ID of the instance */
151
+ instanceID: string;
152
+ /** The aggregation used to generate this time-series */
153
+ aggregation: MetricSeriesAggregation;
154
+ values: MetricSeriesValuesList;
155
+ }
156
+ export declare const MetricSeries: S.Schema<MetricSeries>;
157
+ export type BranchMetricResultSeriesList = Array<MetricSeries>;
158
+ export declare const BranchMetricResultSeriesList: S.Schema<BranchMetricResultSeriesList>;
159
+ /** Time-series for a single metric. */
160
+ export interface BranchMetricResult {
161
+ /** Name of the queried metric. */
162
+ metric: string;
163
+ /** Unit of the metric (percentage, bytes, ms, etc.) */
164
+ unit: string;
165
+ series: BranchMetricResultSeriesList;
166
+ }
167
+ export declare const BranchMetricResult: S.Schema<BranchMetricResult>;
168
+ /** One entry per requested metric, in the order the metrics were requested. */
169
+ export type BranchMetricsResultsList = Array<BranchMetricResult>;
170
+ export declare const BranchMetricsResultsList: S.Schema<BranchMetricsResultsList>;
171
+ /** A collection of metrics (cpu, memory, disk,...) for each of the instances of a branch */
172
+ export interface BranchMetrics {
173
+ start: string;
174
+ end: string;
175
+ /** One entry per requested metric, in the order the metrics were requested. */
176
+ results: BranchMetricsResultsList;
177
+ }
178
+ export declare const BranchMetrics: S.Schema<BranchMetrics>;
179
+ export interface CreateBillingCheckoutSessionRequest {
180
+ /** Unique identifier for a specific organization */
181
+ organizationID: string;
182
+ }
183
+ export declare const CreateBillingCheckoutSessionRequest: S.Schema<CreateBillingCheckoutSessionRequest>;
184
+ export interface BillingCheckoutSessionResponse {
185
+ /** Stripe checkout session URL */
186
+ url: string;
187
+ }
188
+ export declare const BillingCheckoutSessionResponse: S.Schema<BillingCheckoutSessionResponse>;
189
+ export interface CreateBillingPaymentMethodSessionRequest {
190
+ /** Unique identifier for a specific organization */
191
+ organizationID: string;
192
+ }
193
+ export declare const CreateBillingPaymentMethodSessionRequest: S.Schema<CreateBillingPaymentMethodSessionRequest>;
194
+ export interface BillingPaymentMethodSessionResponse {
195
+ /** Stripe payment method session URL */
196
+ url: string;
197
+ }
198
+ export declare const BillingPaymentMethodSessionResponse: S.Schema<BillingPaymentMethodSessionResponse>;
199
+ /** Configuration for scaling branches to zero when not in use */
200
+ export interface ScaleToZeroConfiguration {
201
+ /** Whether scale to zero is enabled */
202
+ enabled: boolean;
203
+ /** Duration in minutes after which branches will be hibernated if not accessed */
204
+ inactivityPeriodMinutes: number;
205
+ }
206
+ export declare const ScaleToZeroConfiguration: S.Schema<ScaleToZeroConfiguration>;
207
+ /** Details about the branch continuous backup configuration */
208
+ export interface BackupConfiguration {
209
+ /** how long are we keeping the backups around for */
210
+ retentionPeriod?: number;
211
+ /** time of day/week when we are taking a full backup */
212
+ backupTime?: string;
213
+ }
214
+ export declare const BackupConfiguration: S.Schema<BackupConfiguration>;
215
+ /** The mode used to discriminate between types of branches. */
216
+ export type CreateBranchRequestMode = "inherit" | "custom";
217
+ export declare const CreateBranchRequestMode: any;
218
+ export interface CreateBranchRequest {
219
+ /** Unique identifier of the organization containing the project */
220
+ organizationID: string;
221
+ /** Unique identifier of the project to create the branch in */
222
+ projectID: string;
223
+ /** Human-readable name for the new branch */
224
+ name: string;
225
+ /** Optional description for the branch purpose or contents (max 50 characters) */
226
+ description?: string;
227
+ scaleToZero?: ScaleToZeroConfiguration;
228
+ backupConfiguration?: BackupConfiguration;
229
+ /** The mode used to discriminate between types of branches. */
230
+ mode: CreateBranchRequestMode | (string & {});
231
+ }
232
+ export declare const CreateBranchRequest: S.Schema<CreateBranchRequest>;
233
+ /** Basic metadata about a branch, used in response to create/update operations */
234
+ export interface BranchShortMetadata {
235
+ /** Unique identifier for the branch */
236
+ id: string;
237
+ /** Human-readable name of the branch */
238
+ name: string;
239
+ /** Optional description of the branch purpose or contents */
240
+ description?: string;
241
+ /** Timestamp when the branch was created */
242
+ createdAt: string;
243
+ /** Timestamp when the branch was last updated */
244
+ updatedAt: string;
245
+ /** Identifier of the parent branch if this is a derived branch, null otherwise */
246
+ parentID?: string | null;
247
+ /** Deprecated: retrieve the connection string from the branch credentials endpoint (GET .../branches/{branchID}/credentials) instead. The hostname in this connection string carries a -deprecated marker in its first DNS label. */
248
+ connectionString?: string | Redacted.Redacted<string> | null;
249
+ /** Geographic region where the branch is deployed */
250
+ region: string;
251
+ /** Whether the branch allows public access without authentication */
252
+ publicAccess: boolean;
253
+ }
254
+ export declare const BranchShortMetadata: S.Schema<BranchShortMetadata>;
255
+ export interface CreateGithubAppInstallationRequest {
256
+ /** Unique identifier of the organization */
257
+ organizationID: string;
258
+ /** GitHub App installation ID */
259
+ installationId: number;
260
+ }
261
+ export declare const CreateGithubAppInstallationRequest: S.Schema<CreateGithubAppInstallationRequest>;
262
+ /** A GitHub App installation associated with an organization */
263
+ export interface GithubInstallation {
264
+ /** Unique identifier of the installation record */
265
+ id: string;
266
+ /** GitHub App installation ID */
267
+ installationId: number;
268
+ /** Organization ID this installation belongs to */
269
+ organization: string;
270
+ /** Timestamp when the installation was created */
271
+ createdAt: string;
272
+ /** Timestamp when the installation was last updated */
273
+ updatedAt: string;
274
+ }
275
+ export declare const GithubInstallation: S.Schema<GithubInstallation>;
276
+ export interface CreateGithubRepositoryRequest {
277
+ /** Unique identifier of the organization */
278
+ organizationID: string;
279
+ /** Unique identifier of the project */
280
+ projectID: string;
281
+ /** Unique identifier of the branch */
282
+ branchID: string;
283
+ /** GitHub repository ID */
284
+ githubRepositoryID: number;
285
+ }
286
+ export declare const CreateGithubRepositoryRequest: S.Schema<CreateGithubRepositoryRequest>;
287
+ /** A mapping between a GitHub repository and a Xata project */
288
+ export interface GithubRepository {
289
+ /** Unique identifier of the mapping record */
290
+ id: string;
291
+ /** GitHub repository ID */
292
+ githubRepositoryID: number;
293
+ /** Project ID this mapping is associated with */
294
+ project: string;
295
+ /** ID of the root Xata branch mapped to this repository */
296
+ rootBranchId: string;
297
+ /** Timestamp when the mapping was created */
298
+ createdAt: string;
299
+ /** Timestamp when the mapping was last updated */
300
+ updatedAt: string;
301
+ }
302
+ export declare const GithubRepository: S.Schema<GithubRepository>;
303
+ export interface CreateOrganizationRequest {
304
+ /** Name for the new organization */
305
+ name: string;
306
+ }
307
+ export declare const CreateOrganizationRequest: S.Schema<CreateOrganizationRequest>;
308
+ /** Indicates whether the organization is active, it's computed as `!disabled_by_admin AND billing_status == 'ok'` */
309
+ export type OrganizationStatusStatus = "enabled" | "disabled";
310
+ export declare const OrganizationStatusStatus: any;
311
+ /** Indicates the status of the organization from a billing perspective */
312
+ export type OrganizationStatusBillingStatus = "ok" | "no_payment_method" | "invoice_overdue" | "unknown" | "deletion_requested";
313
+ export declare const OrganizationStatusBillingStatus: any;
314
+ /** Usage tier of the organization. t1 is the default for new organizations, t2 is assigned when a valid payment method is on file. */
315
+ export type OrganizationStatusUsageTier = "t1" | "t2";
316
+ export declare const OrganizationStatusUsageTier: any;
317
+ export interface OrganizationStatus {
318
+ /** Indicates whether the organization is active, it's computed as `!disabled_by_admin AND billing_status == 'ok'` */
319
+ status: OrganizationStatusStatus;
320
+ /** Indicates if the organization has been disabled by an admin */
321
+ disabled_by_admin: boolean;
322
+ /** Reason for the current admin status */
323
+ admin_reason?: string;
324
+ /** Indicates the status of the organization from a billing perspective */
325
+ billing_status: OrganizationStatusBillingStatus;
326
+ /** Reason for the current billing status */
327
+ billing_reason?: string;
328
+ /** Usage tier of the organization. t1 is the default for new organizations, t2 is assigned when a valid payment method is on file. */
329
+ usage_tier: OrganizationStatusUsageTier;
330
+ /** Timestamp of the last update to the organization's status */
331
+ last_updated: string;
332
+ /** Timestamp when the organization was created */
333
+ created_at?: string;
334
+ }
335
+ export declare const OrganizationStatus: S.Schema<OrganizationStatus>;
336
+ /** Marketplace provider associated with an organization. */
337
+ export type OrganizationMarketplaceProvider = "aws";
338
+ export declare const OrganizationMarketplaceProvider: any;
339
+ /** Organization details including ID and name */
340
+ export interface Organization {
341
+ /** Unique identifier for the organization */
342
+ id: string;
343
+ /** Human-readable name of the organization */
344
+ name: string;
345
+ /** Current status of the organization */
346
+ status: OrganizationStatus;
347
+ /** Marketplace provider for this organization (e.g. "aws"), if billed through a marketplace */
348
+ marketplace?: OrganizationMarketplaceProvider | null;
349
+ }
350
+ export declare const Organization: S.Schema<Organization>;
351
+ /** Optional scopes assigned to the API key */
352
+ export type CreateOrganizationAPIKeyRequestScopesList = Array<string>;
353
+ export declare const CreateOrganizationAPIKeyRequestScopesList: S.Schema<CreateOrganizationAPIKeyRequestScopesList>;
354
+ /** Limit access to these projects */
355
+ export type CreateOrganizationAPIKeyRequestProjectsList = Array<string>;
356
+ export declare const CreateOrganizationAPIKeyRequestProjectsList: S.Schema<CreateOrganizationAPIKeyRequestProjectsList>;
357
+ /** Limit access to these branches */
358
+ export type CreateOrganizationAPIKeyRequestBranchesList = Array<string>;
359
+ export declare const CreateOrganizationAPIKeyRequestBranchesList: S.Schema<CreateOrganizationAPIKeyRequestBranchesList>;
360
+ export interface CreateOrganizationAPIKeyRequest {
361
+ /** Unique identifier for a specific organization */
362
+ organizationID: string;
363
+ name: string;
364
+ /** Expiration date for the API key, null for no expiry */
365
+ expiry?: string | null;
366
+ /** Optional scopes assigned to the API key */
367
+ scopes?: CreateOrganizationAPIKeyRequestScopesList;
368
+ /** Limit access to these projects */
369
+ projects?: CreateOrganizationAPIKeyRequestProjectsList;
370
+ /** Limit access to these branches */
371
+ branches?: CreateOrganizationAPIKeyRequestBranchesList;
372
+ }
373
+ export declare const CreateOrganizationAPIKeyRequest: S.Schema<CreateOrganizationAPIKeyRequest>;
374
+ export type FullAPIKeyScopesList = Array<string>;
375
+ export declare const FullAPIKeyScopesList: S.Schema<FullAPIKeyScopesList>;
376
+ /** Projects this API key has access to */
377
+ export type FullAPIKeyProjectsList = Array<string>;
378
+ export declare const FullAPIKeyProjectsList: S.Schema<FullAPIKeyProjectsList>;
379
+ /** Branches this API key has access to */
380
+ export type FullAPIKeyBranchesList = Array<string>;
381
+ export declare const FullAPIKeyBranchesList: S.Schema<FullAPIKeyBranchesList>;
382
+ export interface FullAPIKey {
383
+ id: string;
384
+ name: string;
385
+ preview: string;
386
+ scopes: FullAPIKeyScopesList;
387
+ /** Projects this API key has access to */
388
+ projects: FullAPIKeyProjectsList;
389
+ /** Branches this API key has access to */
390
+ branches: FullAPIKeyBranchesList;
391
+ created_at: string;
392
+ /** Date when the API key expires (null if no expiry) */
393
+ expiry: string | null;
394
+ /** Timestamp of the last time the key was used (null if never) */
395
+ last_used: string | null;
396
+ /** The actual API key token */
397
+ token: string;
398
+ /** ID of the user that created this API key */
399
+ created_by?: string | null;
400
+ /** ID of the API key that created this API key */
401
+ created_by_key?: string | null;
402
+ }
403
+ export declare const FullAPIKey: S.Schema<FullAPIKey>;
404
+ export interface CreateOrganizationAPIKeyResponse {
405
+ key: FullAPIKey;
406
+ }
407
+ export declare const CreateOrganizationAPIKeyResponse: S.Schema<CreateOrganizationAPIKeyResponse>;
408
+ export interface CreateOrganizationInvitationRequest {
409
+ /** Unique identifier for a specific organization */
410
+ organizationID: string;
411
+ /** Email address of the user to invite */
412
+ email: string;
413
+ }
414
+ export declare const CreateOrganizationInvitationRequest: S.Schema<CreateOrganizationInvitationRequest>;
415
+ export interface CreateOrganizationInvitationResponse {
416
+ }
417
+ export declare const CreateOrganizationInvitationResponse: S.Schema<CreateOrganizationInvitationResponse>;
418
+ /** Whether the project branches are configured to scale down to zero when not in use */
419
+ export interface ProjectScaleToZeroConfiguration {
420
+ baseBranches: ScaleToZeroConfiguration;
421
+ childBranches: ScaleToZeroConfiguration;
422
+ }
423
+ export declare const ProjectScaleToZeroConfiguration: S.Schema<ProjectScaleToZeroConfiguration>;
424
+ export interface CidrEntry {
425
+ /** IP address or CIDR block (e.g., "192.168.0.0/24") */
426
+ cidr: string;
427
+ /** Optional label for the CIDR entry */
428
+ description?: string;
429
+ }
430
+ export declare const CidrEntry: S.Schema<CidrEntry>;
431
+ export type IPFilteringConfigurationCidrList = Array<CidrEntry>;
432
+ export declare const IPFilteringConfigurationCidrList: S.Schema<IPFilteringConfigurationCidrList>;
433
+ /** Configuration for IP filtering on project branches */
434
+ export interface IPFilteringConfiguration {
435
+ /** Whether IP filtering is enabled */
436
+ enabled: boolean;
437
+ cidr: IPFilteringConfigurationCidrList;
438
+ }
439
+ export declare const IPFilteringConfiguration: S.Schema<IPFilteringConfiguration>;
440
+ /** Configuration details for a project, including its scale to zero settings */
441
+ export interface ProjectConfiguration {
442
+ scaleToZero: ProjectScaleToZeroConfiguration;
443
+ ipFiltering?: IPFilteringConfiguration;
444
+ }
445
+ export declare const ProjectConfiguration: S.Schema<ProjectConfiguration>;
446
+ export interface CreateProjectRequest {
447
+ /** Unique identifier of the organization to create the project in */
448
+ organizationID: string;
449
+ /** Human-readable name for the new project */
450
+ name: string;
451
+ configuration?: ProjectConfiguration;
452
+ }
453
+ export declare const CreateProjectRequest: S.Schema<CreateProjectRequest>;
454
+ /** Details of a project including its ID, name, and creation/update timestamps */
455
+ export interface Project {
456
+ /** Unique identifier for the project */
457
+ id: string;
458
+ /** Human-readable name of the project */
459
+ name: string;
460
+ /** Timestamp when the project was created */
461
+ createdAt: string;
462
+ /** Timestamp when the project was last updated */
463
+ updatedAt: string;
464
+ configuration: ProjectConfiguration;
465
+ }
466
+ export declare const Project: S.Schema<Project>;
467
+ /** Optional scopes assigned to the API key */
468
+ export type CreateUserAPIKeyRequestScopesList = Array<string>;
469
+ export declare const CreateUserAPIKeyRequestScopesList: S.Schema<CreateUserAPIKeyRequestScopesList>;
470
+ /** Limit access to these projects */
471
+ export type CreateUserAPIKeyRequestProjectsList = Array<string>;
472
+ export declare const CreateUserAPIKeyRequestProjectsList: S.Schema<CreateUserAPIKeyRequestProjectsList>;
473
+ /** Limit access to these branches */
474
+ export type CreateUserAPIKeyRequestBranchesList = Array<string>;
475
+ export declare const CreateUserAPIKeyRequestBranchesList: S.Schema<CreateUserAPIKeyRequestBranchesList>;
476
+ export interface CreateUserAPIKeyRequest {
477
+ name: string;
478
+ /** Expiration date for the API key, null for no expiry */
479
+ expiry?: string | null;
480
+ /** Optional scopes assigned to the API key */
481
+ scopes?: CreateUserAPIKeyRequestScopesList;
482
+ /** Limit access to these projects */
483
+ projects?: CreateUserAPIKeyRequestProjectsList;
484
+ /** Limit access to these branches */
485
+ branches?: CreateUserAPIKeyRequestBranchesList;
486
+ }
487
+ export declare const CreateUserAPIKeyRequest: S.Schema<CreateUserAPIKeyRequest>;
488
+ export interface CreateUserAPIKeyResponse {
489
+ key: FullAPIKey;
490
+ }
491
+ export declare const CreateUserAPIKeyResponse: S.Schema<CreateUserAPIKeyResponse>;
492
+ export interface DeleteBranchRequest {
493
+ /** Unique identifier of the organization containing the project */
494
+ organizationID: string;
495
+ /** Unique identifier of the project containing the branch */
496
+ projectID: string;
497
+ /** Unique identifier of the branch to delete */
498
+ branchID: string;
499
+ }
500
+ export declare const DeleteBranchRequest: S.Schema<DeleteBranchRequest>;
501
+ export interface DeleteBranchResponse {
502
+ }
503
+ export declare const DeleteBranchResponse: S.Schema<DeleteBranchResponse>;
504
+ export interface DeleteGithubRepositoryRequest {
505
+ /** Unique identifier of the organization */
506
+ organizationID: string;
507
+ /** Unique identifier of the project */
508
+ projectID: string;
509
+ /** Unique identifier of the branch */
510
+ branchID: string;
511
+ }
512
+ export declare const DeleteGithubRepositoryRequest: S.Schema<DeleteGithubRepositoryRequest>;
513
+ export interface DeleteGithubRepositoryResponse {
514
+ }
515
+ export declare const DeleteGithubRepositoryResponse: S.Schema<DeleteGithubRepositoryResponse>;
516
+ export interface DeleteInstallationRequest {
517
+ /** Vercel installation id (icfg_...). */
518
+ installationId: string;
519
+ /** Whether to delete the installation's resources along with the installation. */
520
+ cascadeResourceDeletion?: boolean;
521
+ /** The reason for deleting the installation. */
522
+ reason?: string;
523
+ }
524
+ export declare const DeleteInstallationRequest: S.Schema<DeleteInstallationRequest>;
525
+ export interface DeleteInstallationResponse {
526
+ }
527
+ export declare const DeleteInstallationResponse: S.Schema<DeleteInstallationResponse>;
528
+ export interface DeleteOrganizationRequest {
529
+ /** Unique identifier for a specific organization */
530
+ organizationID: string;
531
+ }
532
+ export declare const DeleteOrganizationRequest: S.Schema<DeleteOrganizationRequest>;
533
+ export interface DeleteOrganizationResponse {
534
+ }
535
+ export declare const DeleteOrganizationResponse: S.Schema<DeleteOrganizationResponse>;
536
+ /** Array of API key IDs to delete */
537
+ export type DeleteOrganizationAPIKeysRequestIdsList = Array<string>;
538
+ export declare const DeleteOrganizationAPIKeysRequestIdsList: S.Schema<DeleteOrganizationAPIKeysRequestIdsList>;
539
+ export interface DeleteOrganizationAPIKeysRequest {
540
+ /** Unique identifier for a specific organization */
541
+ organizationID: string;
542
+ /** Array of API key IDs to delete */
543
+ ids: DeleteOrganizationAPIKeysRequestIdsList;
544
+ }
545
+ export declare const DeleteOrganizationAPIKeysRequest: S.Schema<DeleteOrganizationAPIKeysRequest>;
546
+ export interface DeleteOrganizationAPIKeysResponse {
547
+ }
548
+ export declare const DeleteOrganizationAPIKeysResponse: S.Schema<DeleteOrganizationAPIKeysResponse>;
549
+ export interface DeleteOrganizationInvitationRequest {
550
+ /** Unique identifier for a specific organization */
551
+ organizationID: string;
552
+ /** Unique identifier for an invitation */
553
+ invitationID: string;
554
+ }
555
+ export declare const DeleteOrganizationInvitationRequest: S.Schema<DeleteOrganizationInvitationRequest>;
556
+ export interface DeleteOrganizationInvitationResponse {
557
+ }
558
+ export declare const DeleteOrganizationInvitationResponse: S.Schema<DeleteOrganizationInvitationResponse>;
559
+ export interface DeleteProjectRequest {
560
+ /** Unique identifier of the organization containing the project */
561
+ organizationID: string;
562
+ /** Unique identifier of the project to delete */
563
+ projectID: string;
564
+ }
565
+ export declare const DeleteProjectRequest: S.Schema<DeleteProjectRequest>;
566
+ export interface DeleteProjectResponse {
567
+ }
568
+ export declare const DeleteProjectResponse: S.Schema<DeleteProjectResponse>;
569
+ /** Array of API key IDs to delete (maximum 50 keys per request) */
570
+ export type DeleteUserAPIKeysRequestIdsList = Array<string>;
571
+ export declare const DeleteUserAPIKeysRequestIdsList: S.Schema<DeleteUserAPIKeysRequestIdsList>;
572
+ export interface DeleteUserAPIKeysRequest {
573
+ /** Array of API key IDs to delete (maximum 50 keys per request) */
574
+ ids: DeleteUserAPIKeysRequestIdsList;
575
+ }
576
+ export declare const DeleteUserAPIKeysRequest: S.Schema<DeleteUserAPIKeysRequest>;
577
+ export interface DeleteUserAPIKeysResponse {
578
+ }
579
+ export declare const DeleteUserAPIKeysResponse: S.Schema<DeleteUserAPIKeysResponse>;
580
+ export interface DescribeBranchRequest {
581
+ /** Unique identifier of the organization containing the project */
582
+ organizationID: string;
583
+ /** Unique identifier of the project containing the branch */
584
+ projectID: string;
585
+ /** Unique identifier of the branch to retrieve details for */
586
+ branchID: string;
587
+ }
588
+ export declare const DescribeBranchRequest: S.Schema<DescribeBranchRequest>;
589
+ /** Type of status of the branch */
590
+ export type BranchStatusStatusType = "STATUS_TYPE_UNSPECIFIED" | "STATUS_TYPE_HEALTHY" | "STATUS_TYPE_TRANSIENT" | "STATUS_TYPE_FAULT" | "STATUS_TYPE_HIBERNATED";
591
+ export declare const BranchStatusStatusType: any;
592
+ /** Current operational state of the cluster (ready, creating, updating, etc.) */
593
+ export type ClusterLifecycleState = "ready" | "creating" | "updating" | "upgrading" | "unknown";
594
+ export declare const ClusterLifecycleState: any;
595
+ /** Information about the current lifecycle state of a database cluster */
596
+ export interface ClusterLifecycle {
597
+ /** Current operational state of the cluster (ready, creating, updating, etc.) */
598
+ state: ClusterLifecycleState;
599
+ /** Reason for the current lifecycle state, especially useful for non-ready states */
600
+ reason?: string;
601
+ /** Current phase within the lifecycle process */
602
+ phase: string;
603
+ }
604
+ export declare const ClusterLifecycle: S.Schema<ClusterLifecycle>;
605
+ /** Status information about an individual database instance within a cluster */
606
+ export interface InstanceStatus {
607
+ /** Unique identifier for the database instance */
608
+ id: string;
609
+ /** Current operational status of the instance */
610
+ status: string;
611
+ /** Indicates if this instance is currently the primary (write) instance */
612
+ primary: boolean;
613
+ /** Indicates if this instance is the target primary during a failover operation */
614
+ targetPrimary: boolean;
615
+ }
616
+ export declare const InstanceStatus: S.Schema<InstanceStatus>;
617
+ /** Details about each individual database instance in the cluster */
618
+ export type BranchStatusInstancesList = Array<InstanceStatus>;
619
+ export declare const BranchStatusInstancesList: S.Schema<BranchStatusInstancesList>;
620
+ /** Detailed status information about a branch and its underlying database cluster */
621
+ export interface BranchStatus {
622
+ /** Status indicator for the branch according to CNPG */
623
+ status: string;
624
+ /** Type of status of the branch */
625
+ statusType: BranchStatusStatusType;
626
+ /** Human-readable message explaining the current status */
627
+ message?: string;
628
+ lifecycle?: ClusterLifecycle;
629
+ /** Total number of database instances in the cluster */
630
+ instanceCount: number;
631
+ /** Number of database instances that are ready and operational */
632
+ instanceReadyCount: number;
633
+ /** Details about each individual database instance in the cluster */
634
+ instances: BranchStatusInstancesList;
635
+ }
636
+ export declare const BranchStatus: S.Schema<BranchStatus>;
637
+ /** Arbitrary PostgreSQL configuration parameters for the cluster */
638
+ export type ClusterConfigurationPostgresConfigurationParametersMap = {
639
+ [key: string]: string | undefined;
640
+ };
641
+ export declare const ClusterConfigurationPostgresConfigurationParametersMap: S.Schema<ClusterConfigurationPostgresConfigurationParametersMap>;
642
+ /** List of PostgreSQL extensions and libraries to preload */
643
+ export type ClusterConfigurationPreloadLibrariesList = Array<string>;
644
+ export declare const ClusterConfigurationPreloadLibrariesList: S.Schema<ClusterConfigurationPreloadLibrariesList>;
645
+ /** Configuration details for a database cluster backing a branch */
646
+ export interface ClusterConfiguration {
647
+ /** Geographic region where the cluster will be deployed */
648
+ region: string;
649
+ /** Branch storage in GiB (gigabytes) */
650
+ storage?: number;
651
+ /** The instance type according to the xata instance types available */
652
+ instanceType: string;
653
+ /** PostgreSQL image to use for the database instances */
654
+ image: string;
655
+ /** Number of replicas in the branch. Every child branch is created with no replicas. This can be updated. */
656
+ replicas: number;
657
+ /** Arbitrary PostgreSQL configuration parameters for the cluster */
658
+ postgresConfigurationParameters?: ClusterConfigurationPostgresConfigurationParametersMap;
659
+ /** List of PostgreSQL extensions and libraries to preload */
660
+ preloadLibraries?: ClusterConfigurationPreloadLibrariesList;
661
+ }
662
+ export declare const ClusterConfiguration: S.Schema<ClusterConfiguration>;
663
+ /** Detailed metadata about a branch, including its status and configuration */
664
+ export interface BranchMetadata {
665
+ /** Unique identifier for the branch */
666
+ id: string;
667
+ /** Human-readable name of the branch */
668
+ name: string;
669
+ /** Optional description of the branch purpose or contents */
670
+ description?: string;
671
+ /** Timestamp when the branch was created */
672
+ createdAt: string;
673
+ /** Timestamp when the branch was last updated */
674
+ updatedAt: string;
675
+ /** Identifier of the parent branch if this is a derived branch, null otherwise */
676
+ parentID?: string | null;
677
+ /** Geographic region where the branch is deployed */
678
+ region: string;
679
+ status: BranchStatus;
680
+ /** Deprecated: retrieve the connection string from the branch credentials endpoint (GET .../branches/{branchID}/credentials) instead. The hostname in this connection string carries a -deprecated marker in its first DNS label. */
681
+ connectionString: string | Redacted.Redacted<string> | null;
682
+ /** Whether the branch allows public access without authentication */
683
+ publicAccess: boolean;
684
+ /** Whether the branch is in a region that supports backups */
685
+ backupsEnabled: boolean;
686
+ scaleToZero: ScaleToZeroConfiguration;
687
+ configuration: ClusterConfiguration;
688
+ backupConfiguration?: BackupConfiguration;
689
+ }
690
+ export declare const BranchMetadata: S.Schema<BranchMetadata>;
691
+ export interface GetBackupRequest {
692
+ /** Unique identifier of the organization containing the project */
693
+ organizationID: string;
694
+ /** Unique identifier of the project to retrieve backups for */
695
+ projectID: string;
696
+ /** Unique identifier of the backup for the project */
697
+ backupID: string;
698
+ }
699
+ export declare const GetBackupRequest: S.Schema<GetBackupRequest>;
700
+ /** metadata about a continuous backup */
701
+ export interface BackupMetadata {
702
+ /** unique identifier for the backup */
703
+ id: string;
704
+ /** the branchID the branch associated with the backup */
705
+ branchID: string;
706
+ /** the earlies point in time available for restoring the branch */
707
+ earliestRestore?: string;
708
+ /** the latest point in time available for restoring the branch */
709
+ latestRestore?: string;
710
+ /** description of the backup */
711
+ description: string;
712
+ }
713
+ export declare const BackupMetadata: S.Schema<BackupMetadata>;
714
+ export interface GetBillingCustomerRequest {
715
+ /** Unique identifier for a specific organization */
716
+ organizationID: string;
717
+ }
718
+ export declare const GetBillingCustomerRequest: S.Schema<GetBillingCustomerRequest>;
719
+ /** How billing payment is collected for the organization. */
720
+ export type BillingCollectionMethod = "unknown" | "stripe_payment_method" | "marketplace" | "bank_transfer";
721
+ export declare const BillingCollectionMethod: any;
722
+ export interface BillingPaymentMethodCard {
723
+ brand: string;
724
+ last4: string;
725
+ expiry_month: number;
726
+ expiry_year: number;
727
+ }
728
+ export declare const BillingPaymentMethodCard: S.Schema<BillingPaymentMethodCard>;
729
+ export interface BillingPaymentMethod {
730
+ card: BillingPaymentMethodCard;
731
+ }
732
+ export declare const BillingPaymentMethod: S.Schema<BillingPaymentMethod>;
733
+ export type BillingCreditStatus = "active" | "pending_payment";
734
+ export declare const BillingCreditStatus: any;
735
+ export interface BillingCredit {
736
+ id: string;
737
+ /** Remaining credit balance. */
738
+ balance: number;
739
+ /** Date when the credit becomes usable. */
740
+ effective_date: string;
741
+ /** Date when the credit expires, or null for credits that do not expire. */
742
+ expiry_date: string | null;
743
+ /** Initial credit balance before any usage. */
744
+ maximum_initial_balance: number;
745
+ status: BillingCreditStatus;
746
+ }
747
+ export declare const BillingCredit: S.Schema<BillingCredit>;
748
+ export type BillingCustomerResponseCreditsList = Array<BillingCredit>;
749
+ export declare const BillingCustomerResponseCreditsList: S.Schema<BillingCustomerResponseCreditsList>;
750
+ /** Credits with active status, a reached effective date, positive balance, and no past expiry. */
751
+ export type BillingCreditDetailsActiveCreditsList = Array<BillingCredit>;
752
+ export declare const BillingCreditDetailsActiveCreditsList: S.Schema<BillingCreditDetailsActiveCreditsList>;
753
+ export interface BillingCreditDetails {
754
+ total_lifetime_credits: number;
755
+ last_expiry: string | null;
756
+ last_expiry_with_balance: string | null;
757
+ /** Credits with active status, a reached effective date, positive balance, and no past expiry. */
758
+ active_credits: BillingCreditDetailsActiveCreditsList;
759
+ last_active_credit_expiry: string | null;
760
+ total_active_credits: number;
761
+ /** Days until the last active credit expiry, or null when there is no future active credit expiry. */
762
+ days_until_last_active_credit_expiry: number | null;
763
+ /** Days until the last positive-balance credit expiry, or null when there is no future positive-balance credit expiry. */
764
+ days_until_last_expiry_with_balance: number | null;
765
+ }
766
+ export declare const BillingCreditDetails: S.Schema<BillingCreditDetails>;
767
+ export interface BillingCustomerResponse {
768
+ billing_email: string;
769
+ /** Marketplace provider for this organization (e.g. "aws"), if billed through a marketplace */
770
+ marketplace: OrganizationMarketplaceProvider | null;
771
+ /** Read-only collection method configured for the organization. */
772
+ collection_method: BillingCollectionMethod;
773
+ can_collect_payment: boolean;
774
+ /** True when the customer has a valid Stripe default card payment method. */
775
+ has_payment_method: boolean;
776
+ /** The Stripe default card payment method, when one is configured and retrievable. */
777
+ default_payment_method: BillingPaymentMethod | null;
778
+ credits: BillingCustomerResponseCreditsList;
779
+ credit_details: BillingCreditDetails;
780
+ }
781
+ export declare const BillingCustomerResponse: S.Schema<BillingCustomerResponse>;
782
+ export interface GetBillingInvoicesRequest {
783
+ /** Unique identifier for a specific organization */
784
+ organizationID: string;
785
+ /** Pagination cursor from a previous response */
786
+ cursor?: string;
787
+ /** Number of invoices to fetch */
788
+ limit?: number;
789
+ }
790
+ export declare const GetBillingInvoicesRequest: S.Schema<GetBillingInvoicesRequest>;
791
+ export type BillingInvoiceStatus = "draft" | "issued" | "paid" | "void" | "synced";
792
+ export declare const BillingInvoiceStatus: any;
793
+ export interface BillingInvoice {
794
+ id: string;
795
+ invoice_number: string;
796
+ /** Decimal amount due. */
797
+ amount_due: number;
798
+ currency: string;
799
+ invoice_date: string;
800
+ status: BillingInvoiceStatus;
801
+ invoice_pdf: string | null;
802
+ }
803
+ export declare const BillingInvoice: S.Schema<BillingInvoice>;
804
+ export type BillingInvoicesResponseDataList = Array<BillingInvoice>;
805
+ export declare const BillingInvoicesResponseDataList: S.Schema<BillingInvoicesResponseDataList>;
806
+ export interface PaginationMetadata {
807
+ has_more: boolean;
808
+ next_cursor: string | null;
809
+ }
810
+ export declare const PaginationMetadata: S.Schema<PaginationMetadata>;
811
+ export interface BillingInvoicesResponse {
812
+ data: BillingInvoicesResponseDataList;
813
+ pagination_metadata: PaginationMetadata;
814
+ }
815
+ export declare const BillingInvoicesResponse: S.Schema<BillingInvoicesResponse>;
816
+ export interface GetBillingUpcomingInvoiceRequest {
817
+ /** Unique identifier for a specific organization */
818
+ organizationID: string;
819
+ }
820
+ export declare const GetBillingUpcomingInvoiceRequest: S.Schema<GetBillingUpcomingInvoiceRequest>;
821
+ export interface BillingUpcomingInvoiceResponse {
822
+ created_at: string;
823
+ /** Decimal amount due. */
824
+ amount_due: number;
825
+ currency: string;
826
+ target_date: string;
827
+ /** Decimal subtotal. */
828
+ subtotal: number;
829
+ /** Decimal total. */
830
+ total: number;
831
+ hosted_invoice_url: string | null;
832
+ }
833
+ export declare const BillingUpcomingInvoiceResponse: S.Schema<BillingUpcomingInvoiceResponse>;
834
+ export interface GetBranchCredentialsRequest {
835
+ organizationID: string;
836
+ projectID: string;
837
+ branchID: string;
838
+ /** Username that the credentials requested for, defaults to `xata` */
839
+ username?: string;
840
+ }
841
+ export declare const GetBranchCredentialsRequest: S.Schema<GetBranchCredentialsRequest>;
842
+ /** Credentials and connection details for accessing a branch */
843
+ export interface BranchCredentials {
844
+ /** Username for accessing the branch database */
845
+ username: string;
846
+ /** Password for accessing the branch database */
847
+ password: string | Redacted.Redacted<string>;
848
+ /** Hostname for accessing the branch database */
849
+ hostname: string;
850
+ /** Port for accessing the branch database */
851
+ port: number;
852
+ /** Name of the database to connect to */
853
+ dbname: string;
854
+ /** Database connection string for accessing this branch. It carries no sslmode parameter, clients choose their own TLS settings. */
855
+ connectionString: string | Redacted.Redacted<string>;
856
+ }
857
+ export declare const BranchCredentials: S.Schema<BranchCredentials>;
858
+ export interface GetBranchPostgresConfigRequest {
859
+ /** Unique identifier of the organization containing the project */
860
+ organizationID: string;
861
+ /** Unique identifier of the project containing the branch */
862
+ projectID: string;
863
+ /** Unique identifier of the branch to retrieve PostgreSQL configuration for */
864
+ branchID: string;
865
+ }
866
+ export declare const GetBranchPostgresConfigRequest: S.Schema<GetBranchPostgresConfigRequest>;
867
+ /** The data type of the parameter */
868
+ export type PostgresConfigParameterType = "string" | "int" | "float" | "bytes" | "enum" | "duration" | "boolean";
869
+ export declare const PostgresConfigParameterType: any;
870
+ /** List of allowed enum values (if applicable) */
871
+ export type PostgresConfigParameterAcceptableRangeEnumValuesList = Array<string>;
872
+ export declare const PostgresConfigParameterAcceptableRangeEnumValuesList: S.Schema<PostgresConfigParameterAcceptableRangeEnumValuesList>;
873
+ /** Information about the acceptable range of values for this parameter */
874
+ export interface PostgresConfigParameterAcceptableRange {
875
+ /** Minimum allowed value (if applicable) */
876
+ minValue?: string;
877
+ /** Maximum allowed value (if applicable) */
878
+ maxValue?: string;
879
+ /** List of allowed enum values (if applicable) */
880
+ enumValues?: PostgresConfigParameterAcceptableRangeEnumValuesList;
881
+ }
882
+ export declare const PostgresConfigParameterAcceptableRange: S.Schema<PostgresConfigParameterAcceptableRange>;
883
+ /** The source of the default value */
884
+ export type PostgresConfigParameterDefaultValueSource = "postgres" | "instance_type";
885
+ export declare const PostgresConfigParameterDefaultValueSource: any;
886
+ /** Detailed information about a single PostgreSQL configuration parameter */
887
+ export interface PostgresConfigParameter {
888
+ /** The name of the PostgreSQL parameter */
889
+ name: string;
890
+ /** The data type of the parameter */
891
+ type: PostgresConfigParameterType;
892
+ /** Human-readable description of what the parameter controls */
893
+ description: string;
894
+ /** The section/category this parameter belongs to */
895
+ section: string;
896
+ /** Information about the acceptable range of values for this parameter */
897
+ acceptableRange?: PostgresConfigParameterAcceptableRange;
898
+ /** The default value for this parameter */
899
+ defaultValue: string;
900
+ /** The source of the default value */
901
+ defaultValueSource: PostgresConfigParameterDefaultValueSource;
902
+ /** The current value of this parameter in the branch */
903
+ currentValue: string;
904
+ /** Link to PostgreSQL documentation for this parameter */
905
+ documentationLink: string;
906
+ /** Optional recommendation for this parameter (currently empty) */
907
+ recommendation: string;
908
+ /** Whether a database restart is required for this parameter change to take effect */
909
+ restartRequired?: boolean;
910
+ }
911
+ export declare const PostgresConfigParameter: S.Schema<PostgresConfigParameter>;
912
+ /** Array of PostgreSQL configuration parameters with detailed information */
913
+ export type PostgresConfigDetailsParametersList = Array<PostgresConfigParameter>;
914
+ export declare const PostgresConfigDetailsParametersList: S.Schema<PostgresConfigDetailsParametersList>;
915
+ /** Detailed information about PostgreSQL configuration parameters for a branch */
916
+ export interface PostgresConfigDetails {
917
+ /** Array of PostgreSQL configuration parameters with detailed information */
918
+ parameters: PostgresConfigDetailsParametersList;
919
+ }
920
+ export declare const PostgresConfigDetails: S.Schema<PostgresConfigDetails>;
921
+ export interface GetDefaultProjectLimitsRequest {
922
+ /** Unique identifier of the organization to get project limits for */
923
+ organizationID: string;
924
+ }
925
+ export declare const GetDefaultProjectLimitsRequest: S.Schema<GetDefaultProjectLimitsRequest>;
926
+ /** Resource limits and constraints for projects within an organization */
927
+ export interface ProjectLimits {
928
+ /** Maximum number of database instances allowed per branch */
929
+ maxInstances: number;
930
+ /** Minimum number of database instances required per branch */
931
+ minInstances: number;
932
+ /** Maximum character length allowed for project descriptions */
933
+ maxDescriptionLength: number;
934
+ /** Maximum number of branches allowed per project */
935
+ maxBranches: number;
936
+ }
937
+ export declare const ProjectLimits: S.Schema<ProjectLimits>;
938
+ export interface GetGithubRepositoryRequest {
939
+ /** Unique identifier of the organization */
940
+ organizationID: string;
941
+ /** Unique identifier of the project */
942
+ projectID: string;
943
+ /** Unique identifier of the branch */
944
+ branchID: string;
945
+ }
946
+ export declare const GetGithubRepositoryRequest: S.Schema<GetGithubRepositoryRequest>;
947
+ export interface GetGithubRepositoryResponse {
948
+ /** Repository mapping details, null if no mapping exists */
949
+ mapping: GithubRepository | null;
950
+ }
951
+ export declare const GetGithubRepositoryResponse: S.Schema<GetGithubRepositoryResponse>;
952
+ export interface GetOrganizationRequest {
953
+ /** Unique identifier for a specific organization */
954
+ organizationID: string;
955
+ }
956
+ export declare const GetOrganizationRequest: S.Schema<GetOrganizationRequest>;
957
+ export interface GetOrganizationInvitationRequest {
958
+ /** Unique identifier for a specific organization */
959
+ organizationID: string;
960
+ /** Unique identifier for an invitation */
961
+ invitationID: string;
962
+ }
963
+ export declare const GetOrganizationInvitationRequest: S.Schema<GetOrganizationInvitationRequest>;
964
+ /** Current status of the invitation */
965
+ export type OrganizationInvitationStatus = "pending" | "expired";
966
+ export declare const OrganizationInvitationStatus: any;
967
+ export interface OrganizationInvitation {
968
+ /** Unique identifier for the invitation */
969
+ id: string;
970
+ /** ID of the organization the invitation is for */
971
+ organization_id: string;
972
+ /** Email address of the invited user */
973
+ email: string;
974
+ /** First name of the invited user */
975
+ first_name?: string | null;
976
+ /** Last name of the invited user */
977
+ last_name?: string | null;
978
+ /** Timestamp when the invitation was created */
979
+ created_at: string;
980
+ /** Timestamp when the invitation expires */
981
+ expires_at: string;
982
+ /** Current status of the invitation */
983
+ status: OrganizationInvitationStatus;
984
+ /** URL link to accept the invitation */
985
+ invite_link?: string;
986
+ }
987
+ export declare const OrganizationInvitation: S.Schema<OrganizationInvitation>;
988
+ export interface GetOrganizationLimitsRequest {
989
+ /** Unique identifier of the organization */
990
+ organizationID: string;
991
+ }
992
+ export declare const GetOrganizationLimitsRequest: S.Schema<GetOrganizationLimitsRequest>;
993
+ export interface GetOrganizationLimitsResponse {
994
+ /** Maximum character length allowed for project descriptions */
995
+ maxDescriptionLength: number;
996
+ /** Maximum number of branches allowed per project */
997
+ maxBranchesPerProject: number;
998
+ /** Maximum number of database instances allowed per branch */
999
+ maxInstancesPerBranch: number;
1000
+ /** Minimum number of database instances required per branch */
1001
+ minInstancesPerBranch: number;
1002
+ /** Maximum VCPUs (in millicores) allowed per instance; instance types with a higher VCPUsRequest are unavailable */
1003
+ maxAllowedInstanceType: number;
1004
+ /** Maximum number of branches that can be created in a rolling one-hour window */
1005
+ maxBranchesPerHour: number;
1006
+ /** Maximum storage in GiB (gigabytes) allowed per branch; 0 means no limit */
1007
+ maxStorageGBPerBranch: number;
1008
+ /** Maximum number of projects allowed in the organization */
1009
+ maxProjects: number;
1010
+ /** Maximum number of projects that can be created in a rolling one-hour window */
1011
+ maxProjectsPerHour: number;
1012
+ /** Maximum number of active branches allowed across all projects in the organization */
1013
+ maxBranchesPerOrg: number;
1014
+ }
1015
+ export declare const GetOrganizationLimitsResponse: S.Schema<GetOrganizationLimitsResponse>;
1016
+ export interface GetOrganizationMembershipLimitsRequest {
1017
+ /** Unique identifier for a specific organization */
1018
+ organizationID: string;
1019
+ }
1020
+ export declare const GetOrganizationMembershipLimitsRequest: S.Schema<GetOrganizationMembershipLimitsRequest>;
1021
+ /** Membership limits for an organization */
1022
+ export interface OrganizationMembershipLimits {
1023
+ /** Maximum number of members allowed in the organization */
1024
+ maxMembers: number;
1025
+ /** Maximum number of pending invitations allowed at once */
1026
+ maxInvites: number;
1027
+ }
1028
+ export declare const OrganizationMembershipLimits: S.Schema<OrganizationMembershipLimits>;
1029
+ export interface GetOrganizationsListRequest {
1030
+ }
1031
+ export declare const GetOrganizationsListRequest: S.Schema<GetOrganizationsListRequest>;
1032
+ export interface GetOrganizationsListResponseOrganizationsItem {
1033
+ /** Unique identifier for the organization */
1034
+ id: string;
1035
+ /** Human-readable name of the organization */
1036
+ name: string;
1037
+ /** Current status of the organization */
1038
+ status: OrganizationStatus;
1039
+ }
1040
+ export declare const GetOrganizationsListResponseOrganizationsItem: S.Schema<GetOrganizationsListResponseOrganizationsItem>;
1041
+ /** List of organizations the user has access to */
1042
+ export type GetOrganizationsListResponseOrganizationsList = Array<GetOrganizationsListResponseOrganizationsItem>;
1043
+ export declare const GetOrganizationsListResponseOrganizationsList: S.Schema<GetOrganizationsListResponseOrganizationsList>;
1044
+ export interface GetOrganizationsListResponse {
1045
+ /** List of organizations the user has access to */
1046
+ organizations: GetOrganizationsListResponseOrganizationsList;
1047
+ }
1048
+ export declare const GetOrganizationsListResponse: S.Schema<GetOrganizationsListResponse>;
1049
+ export interface GetProjectRequest {
1050
+ /** Unique identifier of the organization containing the project */
1051
+ organizationID: string;
1052
+ /** Unique identifier of the project to retrieve */
1053
+ projectID: string;
1054
+ }
1055
+ export declare const GetProjectRequest: S.Schema<GetProjectRequest>;
1056
+ export interface GetProjectLimitsRequest {
1057
+ /** Unique identifier of the organization */
1058
+ organizationID: string;
1059
+ /** Unique identifier of the project to get limits for */
1060
+ projectID: string;
1061
+ }
1062
+ export declare const GetProjectLimitsRequest: S.Schema<GetProjectLimitsRequest>;
1063
+ /** Full set of resource limits applicable to a project and its branches */
1064
+ export interface EffectiveProjectLimits {
1065
+ /** Maximum character length allowed for project descriptions */
1066
+ maxDescriptionLength: number;
1067
+ /** Maximum number of branches allowed per project */
1068
+ maxBranchesPerProject: number;
1069
+ /** Maximum number of database instances allowed per branch */
1070
+ maxInstancesPerBranch: number;
1071
+ /** Minimum number of database instances required per branch */
1072
+ minInstancesPerBranch: number;
1073
+ /** Maximum VCPUs (in millicores) allowed per instance; instance types with a higher VCPUsRequest are unavailable */
1074
+ maxAllowedInstanceType: number;
1075
+ /** Maximum number of branches that can be created in a rolling one-hour window */
1076
+ maxBranchesPerHour: number;
1077
+ /** Maximum storage in GiB (gigabytes) allowed per branch; 0 means no limit */
1078
+ maxStorageGBPerBranch: number;
1079
+ }
1080
+ export declare const EffectiveProjectLimits: S.Schema<EffectiveProjectLimits>;
1081
+ /** GitHub webhook event payload */
1082
+ export type GithubWebhookRequestBodyMap = {
1083
+ [key: string]: unknown | undefined;
1084
+ };
1085
+ export declare const GithubWebhookRequestBodyMap: S.Schema<GithubWebhookRequestBodyMap>;
1086
+ export interface GithubWebhookRequest {
1087
+ body: GithubWebhookRequestBodyMap;
1088
+ }
1089
+ export declare const GithubWebhookRequest: S.Schema<GithubWebhookRequest>;
1090
+ export interface GithubWebhookResponse {
1091
+ }
1092
+ export declare const GithubWebhookResponse: S.Schema<GithubWebhookResponse>;
1093
+ export interface ListBackupsRequest {
1094
+ /** Unique identifier of the organization containing the project */
1095
+ organizationID: string;
1096
+ /** Unique identifier of the project to retrieve backups for */
1097
+ projectID: string;
1098
+ }
1099
+ export declare const ListBackupsRequest: S.Schema<ListBackupsRequest>;
1100
+ /** list of backups within the project */
1101
+ export type ListBackupsResponseBackupsList = Array<BackupMetadata>;
1102
+ export declare const ListBackupsResponseBackupsList: S.Schema<ListBackupsResponseBackupsList>;
1103
+ export interface ListBackupsResponse {
1104
+ /** list of backups within the project */
1105
+ backups: ListBackupsResponseBackupsList;
1106
+ }
1107
+ export declare const ListBackupsResponse: S.Schema<ListBackupsResponse>;
1108
+ export interface ListBranchesRequest {
1109
+ /** Unique identifier of the organization containing the project */
1110
+ organizationID: string;
1111
+ /** Unique identifier of the project to list branches from */
1112
+ projectID: string;
1113
+ }
1114
+ export declare const ListBranchesRequest: S.Schema<ListBranchesRequest>;
1115
+ /** Metadata about a branch used when listing branches in a project */
1116
+ export interface BranchListMetadata {
1117
+ /** Unique identifier for the branch */
1118
+ id: string;
1119
+ /** Human-readable name of the branch */
1120
+ name: string;
1121
+ /** Optional description of the branch purpose or contents */
1122
+ description?: string;
1123
+ /** Timestamp when the branch was created */
1124
+ createdAt: string;
1125
+ /** Timestamp when the branch was last updated */
1126
+ updatedAt: string;
1127
+ /** Identifier of the parent branch if this is a derived branch, null otherwise */
1128
+ parentID?: string | null;
1129
+ /** Geographic region where the branch is deployed */
1130
+ region: string;
1131
+ /** Whether the branch allows public access without authentication */
1132
+ publicAccess: boolean;
1133
+ /** Whether the branch is in a region that supports backups */
1134
+ backupsEnabled: boolean;
1135
+ }
1136
+ export declare const BranchListMetadata: S.Schema<BranchListMetadata>;
1137
+ /** Array of branch objects with their metadata */
1138
+ export type ListBranchesResponseBranchesList = Array<BranchListMetadata>;
1139
+ export declare const ListBranchesResponseBranchesList: S.Schema<ListBranchesResponseBranchesList>;
1140
+ export interface ListBranchesResponse {
1141
+ /** Array of branch objects with their metadata */
1142
+ branches: ListBranchesResponseBranchesList;
1143
+ }
1144
+ export declare const ListBranchesResponse: S.Schema<ListBranchesResponse>;
1145
+ export interface ListExtensionsRequest {
1146
+ /** Unique identifier of the organization to check instance type availability for */
1147
+ organizationID: string;
1148
+ /** Image for which we list extensions */
1149
+ image: string;
1150
+ /** Region to list extensions for image in */
1151
+ region?: string;
1152
+ }
1153
+ export declare const ListExtensionsRequest: S.Schema<ListExtensionsRequest>;
1154
+ /** type of installation */
1155
+ export type ExtensionType = "extension" | "plugin" | "module";
1156
+ export declare const ExtensionType: any;
1157
+ /** Details of a postgres extension */
1158
+ export interface Extension {
1159
+ /** Extension name */
1160
+ name: string;
1161
+ /** Extension version */
1162
+ version: string;
1163
+ /** Extension description */
1164
+ description: string;
1165
+ /** Documentation URL */
1166
+ docs: string;
1167
+ /** is preload required for the extension or not */
1168
+ preloadRequired: boolean;
1169
+ /** type of installation */
1170
+ type: ExtensionType;
1171
+ }
1172
+ export declare const Extension: S.Schema<Extension>;
1173
+ /** Array of available images with their properties */
1174
+ export type ListExtensionsResponseExtensionsList = Array<Extension>;
1175
+ export declare const ListExtensionsResponseExtensionsList: S.Schema<ListExtensionsResponseExtensionsList>;
1176
+ export interface ListExtensionsResponse {
1177
+ /** Array of available images with their properties */
1178
+ extensions: ListExtensionsResponseExtensionsList;
1179
+ }
1180
+ export declare const ListExtensionsResponse: S.Schema<ListExtensionsResponse>;
1181
+ export interface ListGithubAppInstallationsRequest {
1182
+ /** Unique identifier of the organization */
1183
+ organizationID: string;
1184
+ }
1185
+ export declare const ListGithubAppInstallationsRequest: S.Schema<ListGithubAppInstallationsRequest>;
1186
+ /** Array of GitHub App installations */
1187
+ export type ListGithubAppInstallationsResponseInstallationsList = Array<GithubInstallation>;
1188
+ export declare const ListGithubAppInstallationsResponseInstallationsList: S.Schema<ListGithubAppInstallationsResponseInstallationsList>;
1189
+ export interface ListGithubAppInstallationsResponse {
1190
+ /** Array of GitHub App installations */
1191
+ installations: ListGithubAppInstallationsResponseInstallationsList;
1192
+ }
1193
+ export declare const ListGithubAppInstallationsResponse: S.Schema<ListGithubAppInstallationsResponse>;
1194
+ export interface ListImagesRequest {
1195
+ /** Unique identifier of the organization to check image availability */
1196
+ organizationID: string;
1197
+ /** Region to check image availability for organization */
1198
+ region?: string;
1199
+ }
1200
+ export declare const ListImagesRequest: S.Schema<ListImagesRequest>;
1201
+ /** region where this instance type is available */
1202
+ export type ImageRegionList = Array<string>;
1203
+ export declare const ImageRegionList: S.Schema<ImageRegionList>;
1204
+ /** Details of a postgres image */
1205
+ export interface Image {
1206
+ /** Image name */
1207
+ name: string;
1208
+ /** major postgres version */
1209
+ majorVersion: string;
1210
+ /** full postgres version */
1211
+ fullVersion: string;
1212
+ /** region where this instance type is available */
1213
+ region?: ImageRegionList;
1214
+ }
1215
+ export declare const Image: S.Schema<Image>;
1216
+ /** Array of available images with their properties */
1217
+ export type ListImagesResponseImagesList = Array<Image>;
1218
+ export declare const ListImagesResponseImagesList: S.Schema<ListImagesResponseImagesList>;
1219
+ export interface ListImagesResponse {
1220
+ /** Array of available images with their properties */
1221
+ images: ListImagesResponseImagesList;
1222
+ }
1223
+ export declare const ListImagesResponse: S.Schema<ListImagesResponse>;
1224
+ export interface ListInstanceTypesRequest {
1225
+ /** Unique identifier of the organization to check instance type availability for */
1226
+ organizationID: string;
1227
+ /** Region to check instance type availability for */
1228
+ region: string;
1229
+ }
1230
+ export declare const ListInstanceTypesRequest: S.Schema<ListInstanceTypesRequest>;
1231
+ export interface ListInstanceTypesResponseInstanceTypesItem {
1232
+ /** Instance type name */
1233
+ name: string;
1234
+ /** number of vCPUs */
1235
+ vcpus: number;
1236
+ /** memory in Gi */
1237
+ ram: number;
1238
+ /** price per hour for this instance type and region */
1239
+ hourlyRate: number;
1240
+ /** price per month for a GB of storage for this region */
1241
+ storageMonthlyRate: number;
1242
+ /** region where this instance type is available */
1243
+ region: string;
1244
+ }
1245
+ export declare const ListInstanceTypesResponseInstanceTypesItem: S.Schema<ListInstanceTypesResponseInstanceTypesItem>;
1246
+ /** Array of available instance types with their properties */
1247
+ export type ListInstanceTypesResponseInstanceTypesList = Array<ListInstanceTypesResponseInstanceTypesItem>;
1248
+ export declare const ListInstanceTypesResponseInstanceTypesList: S.Schema<ListInstanceTypesResponseInstanceTypesList>;
1249
+ export interface ListInstanceTypesResponse {
1250
+ /** Array of available instance types with their properties */
1251
+ instanceTypes: ListInstanceTypesResponseInstanceTypesList;
1252
+ }
1253
+ export declare const ListInstanceTypesResponse: S.Schema<ListInstanceTypesResponse>;
1254
+ export interface ListOrganizationAPIKeysRequest {
1255
+ /** Unique identifier for a specific organization */
1256
+ organizationID: string;
1257
+ }
1258
+ export declare const ListOrganizationAPIKeysRequest: S.Schema<ListOrganizationAPIKeysRequest>;
1259
+ export type APIKeyPreviewScopesList = Array<string>;
1260
+ export declare const APIKeyPreviewScopesList: S.Schema<APIKeyPreviewScopesList>;
1261
+ /** Projects this API key has access to */
1262
+ export type APIKeyPreviewProjectsList = Array<string>;
1263
+ export declare const APIKeyPreviewProjectsList: S.Schema<APIKeyPreviewProjectsList>;
1264
+ /** Branches this API key has access to */
1265
+ export type APIKeyPreviewBranchesList = Array<string>;
1266
+ export declare const APIKeyPreviewBranchesList: S.Schema<APIKeyPreviewBranchesList>;
1267
+ export interface APIKeyPreview {
1268
+ id: string;
1269
+ name: string;
1270
+ preview: string;
1271
+ scopes: APIKeyPreviewScopesList;
1272
+ /** Projects this API key has access to */
1273
+ projects: APIKeyPreviewProjectsList;
1274
+ /** Branches this API key has access to */
1275
+ branches: APIKeyPreviewBranchesList;
1276
+ created_at: string;
1277
+ /** Date when the API key expires (null if no expiry) */
1278
+ expiry: string | null;
1279
+ /** Timestamp of the last time the key was used (null if never) */
1280
+ last_used: string | null;
1281
+ /** ID of the user that created this API key */
1282
+ created_by?: string | null;
1283
+ /** ID of the API key that created this API key */
1284
+ created_by_key?: string | null;
1285
+ }
1286
+ export declare const APIKeyPreview: S.Schema<APIKeyPreview>;
1287
+ /** Array of API keys for the organization */
1288
+ export type ListOrganizationAPIKeysResponseKeysList = Array<APIKeyPreview>;
1289
+ export declare const ListOrganizationAPIKeysResponseKeysList: S.Schema<ListOrganizationAPIKeysResponseKeysList>;
1290
+ export interface ListOrganizationAPIKeysResponse {
1291
+ /** Array of API keys for the organization */
1292
+ keys: ListOrganizationAPIKeysResponseKeysList;
1293
+ }
1294
+ export declare const ListOrganizationAPIKeysResponse: S.Schema<ListOrganizationAPIKeysResponse>;
1295
+ export type ListOrganizationInvitationsRequestStatus = "pending" | "expired";
1296
+ export declare const ListOrganizationInvitationsRequestStatus: any;
1297
+ export interface ListOrganizationInvitationsRequest {
1298
+ /** Unique identifier for a specific organization */
1299
+ organizationID: string;
1300
+ /** Filter invitations by status */
1301
+ status?: ListOrganizationInvitationsRequestStatus | (string & {});
1302
+ /** Filter invitations by email address */
1303
+ email?: string;
1304
+ /** Filter invitations by first name */
1305
+ first_name?: string;
1306
+ /** Filter invitations by last name */
1307
+ last_name?: string;
1308
+ /** Search invitations by email or name */
1309
+ search?: string;
1310
+ /** Index of the first result to return (0-based offset for pagination) */
1311
+ first?: number;
1312
+ /** Maximum number of results to return */
1313
+ max?: number;
1314
+ }
1315
+ export declare const ListOrganizationInvitationsRequest: S.Schema<ListOrganizationInvitationsRequest>;
1316
+ export type ListOrganizationInvitationsResponseInvitationsList = Array<OrganizationInvitation>;
1317
+ export declare const ListOrganizationInvitationsResponseInvitationsList: S.Schema<ListOrganizationInvitationsResponseInvitationsList>;
1318
+ export interface ListOrganizationInvitationsResponse {
1319
+ invitations: ListOrganizationInvitationsResponseInvitationsList;
1320
+ }
1321
+ export declare const ListOrganizationInvitationsResponse: S.Schema<ListOrganizationInvitationsResponse>;
1322
+ export interface ListOrganizationMembersRequest {
1323
+ /** Unique identifier for a specific organization */
1324
+ organizationID: string;
1325
+ }
1326
+ export declare const ListOrganizationMembersRequest: S.Schema<ListOrganizationMembersRequest>;
1327
+ export interface UserWithID {
1328
+ /** Email address associated with the user account */
1329
+ email: string;
1330
+ /** Name of the user */
1331
+ name: string;
1332
+ id: string;
1333
+ }
1334
+ export declare const UserWithID: S.Schema<UserWithID>;
1335
+ export type ListOrganizationMembersResponseMembersList = Array<UserWithID>;
1336
+ export declare const ListOrganizationMembersResponseMembersList: S.Schema<ListOrganizationMembersResponseMembersList>;
1337
+ export interface ListOrganizationMembersResponse {
1338
+ members: ListOrganizationMembersResponseMembersList;
1339
+ }
1340
+ export declare const ListOrganizationMembersResponse: S.Schema<ListOrganizationMembersResponse>;
1341
+ export interface ListProjectsRequest {
1342
+ /** Unique identifier of the organization to list projects from */
1343
+ organizationID: string;
1344
+ }
1345
+ export declare const ListProjectsRequest: S.Schema<ListProjectsRequest>;
1346
+ /** Array of project objects with their metadata */
1347
+ export type ListProjectsResponseProjectsList = Array<Project>;
1348
+ export declare const ListProjectsResponseProjectsList: S.Schema<ListProjectsResponseProjectsList>;
1349
+ export interface ListProjectsResponse {
1350
+ /** Array of project objects with their metadata */
1351
+ projects: ListProjectsResponseProjectsList;
1352
+ }
1353
+ export declare const ListProjectsResponse: S.Schema<ListProjectsResponse>;
1354
+ export interface ListRegionsRequest {
1355
+ /** Unique identifier of the organization to check region availability for */
1356
+ organizationID: string;
1357
+ }
1358
+ export declare const ListRegionsRequest: S.Schema<ListRegionsRequest>;
1359
+ /** Cloud provider the region runs on */
1360
+ export type ListRegionsResponseRegionsItemProvider = "aws" | "gcp" | "custom";
1361
+ export declare const ListRegionsResponseRegionsItemProvider: any;
1362
+ export interface ListRegionsResponseRegionsItem {
1363
+ /** Unique identifier for the region */
1364
+ id: string;
1365
+ /** Whether data plane is public-facing to the internet in this region */
1366
+ publicAccess: boolean;
1367
+ /** Whether backups are enabled for branches created in this region */
1368
+ backupsEnabled: boolean;
1369
+ /** Cloud provider the region runs on */
1370
+ provider: ListRegionsResponseRegionsItemProvider;
1371
+ /** Organization that owns this region, if set the region is only available to this organization */
1372
+ organizationId: string | null;
1373
+ }
1374
+ export declare const ListRegionsResponseRegionsItem: S.Schema<ListRegionsResponseRegionsItem>;
1375
+ /** Array of available regions with their properties */
1376
+ export type ListRegionsResponseRegionsList = Array<ListRegionsResponseRegionsItem>;
1377
+ export declare const ListRegionsResponseRegionsList: S.Schema<ListRegionsResponseRegionsList>;
1378
+ export interface ListRegionsResponse {
1379
+ /** Array of available regions with their properties */
1380
+ regions: ListRegionsResponseRegionsList;
1381
+ }
1382
+ export declare const ListRegionsResponse: S.Schema<ListRegionsResponse>;
1383
+ export interface ListUserAPIKeysRequest {
1384
+ }
1385
+ export declare const ListUserAPIKeysRequest: S.Schema<ListUserAPIKeysRequest>;
1386
+ /** Array of API keys for the user */
1387
+ export type ListUserAPIKeysResponseKeysList = Array<APIKeyPreview>;
1388
+ export declare const ListUserAPIKeysResponseKeysList: S.Schema<ListUserAPIKeysResponseKeysList>;
1389
+ export interface ListUserAPIKeysResponse {
1390
+ /** Array of API keys for the user */
1391
+ keys: ListUserAPIKeysResponseKeysList;
1392
+ }
1393
+ export declare const ListUserAPIKeysResponse: S.Schema<ListUserAPIKeysResponse>;
1394
+ /** Orb webhook event payload */
1395
+ export type OrbWebhookRequestBodyMap = {
1396
+ [key: string]: unknown | undefined;
1397
+ };
1398
+ export declare const OrbWebhookRequestBodyMap: S.Schema<OrbWebhookRequestBodyMap>;
1399
+ export interface OrbWebhookRequest {
1400
+ body: OrbWebhookRequestBodyMap;
1401
+ }
1402
+ export declare const OrbWebhookRequest: S.Schema<OrbWebhookRequest>;
1403
+ export interface OrbWebhookResponse {
1404
+ }
1405
+ export declare const OrbWebhookResponse: S.Schema<OrbWebhookResponse>;
1406
+ /** Positional parameters for the query (`$1`, `$2`, ...). */
1407
+ export type QueryRequestParamsList = Array<unknown>;
1408
+ export declare const QueryRequestParamsList: S.Schema<QueryRequestParamsList>;
1409
+ /** Positional parameters for the query. */
1410
+ export type QueryItemParamsList = Array<unknown>;
1411
+ export declare const QueryItemParamsList: S.Schema<QueryItemParamsList>;
1412
+ /** A single query within a batch request. */
1413
+ export interface QueryItem {
1414
+ /** SQL query to execute. */
1415
+ query: string;
1416
+ /** Positional parameters for the query. */
1417
+ params?: QueryItemParamsList;
1418
+ /** Override array mode for this individual query. */
1419
+ arrayMode?: boolean;
1420
+ }
1421
+ export declare const QueryItem: S.Schema<QueryItem>;
1422
+ /** Array of queries for batch execution within a single transaction. */
1423
+ export type QueryRequestQueriesList = Array<QueryItem>;
1424
+ export declare const QueryRequestQueriesList: S.Schema<QueryRequestQueriesList>;
1425
+ export interface QueryRequest {
1426
+ /** SQL query to execute (single query mode). */
1427
+ query?: string;
1428
+ /** Positional parameters for the query (`$1`, `$2`, ...). */
1429
+ params?: QueryRequestParamsList;
1430
+ /** Array of queries for batch execution within a single transaction. */
1431
+ queries?: QueryRequestQueriesList;
1432
+ /** Override array mode for this query (single query mode only). */
1433
+ arrayMode?: boolean;
1434
+ }
1435
+ export declare const QueryRequest: S.Schema<QueryRequest>;
1436
+ /** PostgreSQL column metadata from the row description message. */
1437
+ export interface FieldDefinition {
1438
+ /** Column name. */
1439
+ name: string;
1440
+ /** OID of the source table (0 if not a table column). */
1441
+ tableID: number;
1442
+ /** Attribute number of the column within the table. */
1443
+ columnID: number;
1444
+ /** OID of the column data type. */
1445
+ dataTypeID: number;
1446
+ /** Data type size (negative for variable-length types). */
1447
+ dataTypeSize: number;
1448
+ /** Type-specific modifier (e.g. precision/scale for numeric types). */
1449
+ dataTypeModifier: number;
1450
+ /** Data format (`text` or `binary`). */
1451
+ format: string;
1452
+ }
1453
+ export declare const FieldDefinition: S.Schema<FieldDefinition>;
1454
+ /** Column metadata for the result set. */
1455
+ export type QueryResultFieldsList = Array<FieldDefinition>;
1456
+ export declare const QueryResultFieldsList: S.Schema<QueryResultFieldsList>;
1457
+ /** Result rows. Each row is an object (column-name keys) or an array (when array mode is enabled). */
1458
+ export type QueryResultRowsList = Array<unknown>;
1459
+ export declare const QueryResultRowsList: S.Schema<QueryResultRowsList>;
1460
+ /** Result of a single SQL query execution. */
1461
+ export interface QueryResult {
1462
+ /** Column metadata for the result set. */
1463
+ fields: QueryResultFieldsList;
1464
+ /** PostgreSQL command tag (e.g. `SELECT`, `INSERT`, `UPDATE`, `DELETE`). */
1465
+ command: string;
1466
+ /** Number of rows affected by the command. */
1467
+ rowCount: number | null;
1468
+ /** Result rows. Each row is an object (column-name keys) or an array (when array mode is enabled). */
1469
+ rows: QueryResultRowsList;
1470
+ /** Whether rows are returned as arrays (`true`) or objects (`false`). */
1471
+ rowAsArray: boolean;
1472
+ }
1473
+ export declare const QueryResult: S.Schema<QueryResult>;
1474
+ /** Results for each query in the batch, in order. */
1475
+ export type BatchResponseResultsList = Array<QueryResult>;
1476
+ export declare const BatchResponseResultsList: S.Schema<BatchResponseResultsList>;
1477
+ /** Response for a batch query execution. */
1478
+ export interface BatchResponse {
1479
+ /** Results for each query in the batch, in order. */
1480
+ results: BatchResponseResultsList;
1481
+ }
1482
+ export declare const BatchResponse: S.Schema<BatchResponse>;
1483
+ export type QueryResponseBody = QueryResult | BatchResponse;
1484
+ export declare const QueryResponseBody: S.Schema<QueryResponseBody>;
1485
+ export type QueryResponse = QueryResponseBody;
1486
+ export declare const QueryResponse: S.Schema<QueryResponse>;
1487
+ /** Marketplace provider accepted for registration. */
1488
+ export type MarketplaceRegistrationProvider = "aws";
1489
+ export declare const MarketplaceRegistrationProvider: any;
1490
+ /** AWS-specific marketplace details */
1491
+ export interface RegisterMarketplaceRequestAws {
1492
+ /** AWS Marketplace customer ID */
1493
+ customer_id: string;
1494
+ /** AWS Marketplace product ID */
1495
+ product_id: string;
1496
+ /** AWS account ID */
1497
+ account_id: string;
1498
+ }
1499
+ export declare const RegisterMarketplaceRequestAws: S.Schema<RegisterMarketplaceRequestAws>;
1500
+ export interface RegisterMarketplaceRequest {
1501
+ /** The cloud marketplace provider */
1502
+ marketplace: MarketplaceRegistrationProvider | (string & {});
1503
+ /** Company name for the marketplace registration */
1504
+ company_name: string;
1505
+ /** AWS-specific marketplace details */
1506
+ aws: RegisterMarketplaceRequestAws;
1507
+ }
1508
+ export declare const RegisterMarketplaceRequest: S.Schema<RegisterMarketplaceRequest>;
1509
+ export interface RegisterMarketplaceResponse {
1510
+ }
1511
+ export declare const RegisterMarketplaceResponse: S.Schema<RegisterMarketplaceResponse>;
1512
+ export interface RemoveOrganizationMemberRequest {
1513
+ /** Unique identifier for a specific organization */
1514
+ organizationID: string;
1515
+ /** Unique identifier for a specific user account */
1516
+ userID: string;
1517
+ }
1518
+ export declare const RemoveOrganizationMemberRequest: S.Schema<RemoveOrganizationMemberRequest>;
1519
+ export interface RemoveOrganizationMemberResponse {
1520
+ }
1521
+ export declare const RemoveOrganizationMemberResponse: S.Schema<RemoveOrganizationMemberResponse>;
1522
+ export interface RequestOrganizationDeletionRequest {
1523
+ /** Unique identifier for a specific organization */
1524
+ organizationID: string;
1525
+ }
1526
+ export declare const RequestOrganizationDeletionRequest: S.Schema<RequestOrganizationDeletionRequest>;
1527
+ export interface RequestOrganizationDeletionResponse {
1528
+ }
1529
+ export declare const RequestOrganizationDeletionResponse: S.Schema<RequestOrganizationDeletionResponse>;
1530
+ export interface ResendOrganizationInvitationRequest {
1531
+ /** Unique identifier for a specific organization */
1532
+ organizationID: string;
1533
+ /** Unique identifier for an invitation */
1534
+ invitationID: string;
1535
+ }
1536
+ export declare const ResendOrganizationInvitationRequest: S.Schema<ResendOrganizationInvitationRequest>;
1537
+ export interface ResendOrganizationInvitationResponse {
1538
+ }
1539
+ export declare const ResendOrganizationInvitationResponse: S.Schema<ResendOrganizationInvitationResponse>;
1540
+ export interface RestoreFromBackupRequest {
1541
+ /** Unique identifier of the organization containing the project */
1542
+ organizationID: string;
1543
+ /** Unique identifier of the project containing the source branch */
1544
+ projectID: string;
1545
+ /** Unique identifier of the source branch of the backup */
1546
+ branchID: string;
1547
+ /** Human-readable name of the branch */
1548
+ name: string;
1549
+ /** Optional description of the branch purpose or contents */
1550
+ description?: string;
1551
+ scaleToZero?: ScaleToZeroConfiguration;
1552
+ backupConfiguration?: BackupConfiguration;
1553
+ configuration?: ClusterConfiguration;
1554
+ }
1555
+ export declare const RestoreFromBackupRequest: S.Schema<RestoreFromBackupRequest>;
1556
+ export interface RotateBranchCredentialsRequest {
1557
+ organizationID: string;
1558
+ projectID: string;
1559
+ branchID: string;
1560
+ /** Database username to rotate credentials for */
1561
+ username: string;
1562
+ }
1563
+ export declare const RotateBranchCredentialsRequest: S.Schema<RotateBranchCredentialsRequest>;
1564
+ export interface RotateBranchCredentialsResponse {
1565
+ }
1566
+ export declare const RotateBranchCredentialsResponse: S.Schema<RotateBranchCredentialsResponse>;
1567
+ /** JSON-RPC protocol version. Always `2.0`. */
1568
+ export type SendMcpRequestRequestJsonrpc = "2.0";
1569
+ export declare const SendMcpRequestRequestJsonrpc: any;
1570
+ /** Request identifier, echoed on the response. Omitted for notifications. */
1571
+ export type SendMcpRequestRequestId = string | number;
1572
+ export declare const SendMcpRequestRequestId: S.Schema<SendMcpRequestRequestId>;
1573
+ /** Method parameters as defined by the MCP specification. */
1574
+ export type SendMcpRequestRequestParamsMap = {
1575
+ [key: string]: unknown | undefined;
1576
+ };
1577
+ export declare const SendMcpRequestRequestParamsMap: S.Schema<SendMcpRequestRequestParamsMap>;
1578
+ export interface SendMcpRequestRequest {
1579
+ /** JSON-RPC protocol version. Always `2.0`. */
1580
+ jsonrpc: SendMcpRequestRequestJsonrpc | (string & {});
1581
+ /** Request identifier, echoed on the response. Omitted for notifications. */
1582
+ id?: SendMcpRequestRequestId;
1583
+ /** MCP method, such as `initialize`, `tools/list`, or `tools/call`. */
1584
+ method: string;
1585
+ /** Method parameters as defined by the MCP specification. */
1586
+ params?: SendMcpRequestRequestParamsMap;
1587
+ }
1588
+ export declare const SendMcpRequestRequest: S.Schema<SendMcpRequestRequest>;
1589
+ /** JSON-RPC protocol version. Always `2.0`. */
1590
+ export type JSONRPCResponseJsonrpc = "2.0";
1591
+ export declare const JSONRPCResponseJsonrpc: any;
1592
+ /** Identifier of the request this responds to. */
1593
+ export type JSONRPCResponseId = string | number;
1594
+ export declare const JSONRPCResponseId: S.Schema<JSONRPCResponseId>;
1595
+ /** Method result as defined by the MCP specification. */
1596
+ export type JSONRPCResponseResultMap = {
1597
+ [key: string]: unknown | undefined;
1598
+ };
1599
+ export declare const JSONRPCResponseResultMap: S.Schema<JSONRPCResponseResultMap>;
1600
+ /** A JSON-RPC 2.0 error. Failures inside a tool are reported in the tool result with `isError`, not here. */
1601
+ export interface JSONRPCError {
1602
+ /** JSON-RPC error code. */
1603
+ code: number;
1604
+ /** Short description of the error. */
1605
+ message: string;
1606
+ /** Additional error detail. */
1607
+ data?: unknown;
1608
+ }
1609
+ export declare const JSONRPCError: S.Schema<JSONRPCError>;
1610
+ /** A JSON-RPC 2.0 response. Exactly one of `result` or `error` is present. */
1611
+ export interface JSONRPCResponse {
1612
+ /** JSON-RPC protocol version. Always `2.0`. */
1613
+ jsonrpc: JSONRPCResponseJsonrpc;
1614
+ /** Identifier of the request this responds to. */
1615
+ id: JSONRPCResponseId;
1616
+ /** Method result as defined by the MCP specification. */
1617
+ result?: JSONRPCResponseResultMap;
1618
+ error?: JSONRPCError;
1619
+ }
1620
+ export declare const JSONRPCResponse: S.Schema<JSONRPCResponse>;
1621
+ /** Stripe webhook event payload */
1622
+ export type StripeWebhookRequestBodyMap = {
1623
+ [key: string]: unknown | undefined;
1624
+ };
1625
+ export declare const StripeWebhookRequestBodyMap: S.Schema<StripeWebhookRequestBodyMap>;
1626
+ export interface StripeWebhookRequest {
1627
+ body: StripeWebhookRequestBodyMap;
1628
+ }
1629
+ export declare const StripeWebhookRequest: S.Schema<StripeWebhookRequest>;
1630
+ export interface StripeWebhookResponse {
1631
+ }
1632
+ export declare const StripeWebhookResponse: S.Schema<StripeWebhookResponse>;
1633
+ export interface UpdateBillingCustomerRequest {
1634
+ /** Unique identifier for a specific organization */
1635
+ organizationID: string;
1636
+ billing_email: string;
1637
+ }
1638
+ export declare const UpdateBillingCustomerRequest: S.Schema<UpdateBillingCustomerRequest>;
1639
+ /** Arbitrary PostgreSQL configuration parameters for the cluster */
1640
+ export type UpdateBranchRequestPostgresConfigurationParametersMap = {
1641
+ [key: string]: string | undefined;
1642
+ };
1643
+ export declare const UpdateBranchRequestPostgresConfigurationParametersMap: S.Schema<UpdateBranchRequestPostgresConfigurationParametersMap>;
1644
+ /** List of PostgreSQL extensions and libraries to preload */
1645
+ export type UpdateBranchRequestPreloadLibrariesList = Array<string>;
1646
+ export declare const UpdateBranchRequestPreloadLibrariesList: S.Schema<UpdateBranchRequestPreloadLibrariesList>;
1647
+ export interface UpdateBranchRequest {
1648
+ /** Unique identifier of the organization containing the project */
1649
+ organizationID: string;
1650
+ /** Unique identifier of the project containing the branch */
1651
+ projectID: string;
1652
+ /** Unique identifier of the branch to update */
1653
+ branchID: string;
1654
+ /** New name for the branch */
1655
+ name?: string;
1656
+ /** New description for the branch (max 50 characters) */
1657
+ description?: string;
1658
+ /** Number of database replicas to scale to */
1659
+ replicas?: number;
1660
+ /** Branch storage in GiB (gigabytes). The maximum allowed value depends on the organization's storage limit. */
1661
+ storage?: number;
1662
+ /** New instance type for the branch */
1663
+ instanceType?: string;
1664
+ backupConfiguration?: BackupConfiguration;
1665
+ /** Enabled when the branch should be hibernated, disabled if it needs to be reactivated. */
1666
+ hibernate?: boolean;
1667
+ scaleToZero?: ScaleToZeroConfiguration;
1668
+ /** Arbitrary PostgreSQL configuration parameters for the cluster */
1669
+ postgresConfigurationParameters?: UpdateBranchRequestPostgresConfigurationParametersMap;
1670
+ /** List of PostgreSQL extensions and libraries to preload */
1671
+ preloadLibraries?: UpdateBranchRequestPreloadLibrariesList;
1672
+ /** PostgreSQL image to use for the database instances */
1673
+ image?: string;
1674
+ }
1675
+ export declare const UpdateBranchRequest: S.Schema<UpdateBranchRequest>;
1676
+ export interface UpdateGithubAppInstallationRequest {
1677
+ /** Unique identifier of the organization */
1678
+ organizationID: string;
1679
+ /** Unique identifier of the GitHub installation record */
1680
+ githubInstallationID: string;
1681
+ /** GitHub App installation ID */
1682
+ installationId: number;
1683
+ }
1684
+ export declare const UpdateGithubAppInstallationRequest: S.Schema<UpdateGithubAppInstallationRequest>;
1685
+ export interface UpdateGithubRepositoryRequest {
1686
+ /** Unique identifier of the organization */
1687
+ organizationID: string;
1688
+ /** Unique identifier of the project */
1689
+ projectID: string;
1690
+ /** Unique identifier of the branch */
1691
+ branchID: string;
1692
+ /** GitHub repository ID */
1693
+ githubRepositoryID: number;
1694
+ }
1695
+ export declare const UpdateGithubRepositoryRequest: S.Schema<UpdateGithubRepositoryRequest>;
1696
+ export interface UpdateOrganizationRequest {
1697
+ /** Unique identifier for a specific organization */
1698
+ organizationID: string;
1699
+ /** Unique identifier for the organization to update */
1700
+ id?: string;
1701
+ /** New name for the organization */
1702
+ name?: string;
1703
+ }
1704
+ export declare const UpdateOrganizationRequest: S.Schema<UpdateOrganizationRequest>;
1705
+ /** Partial configuration update for a project */
1706
+ export interface UpdateProjectConfiguration {
1707
+ scaleToZero?: ProjectScaleToZeroConfiguration;
1708
+ ipFiltering?: IPFilteringConfiguration;
1709
+ }
1710
+ export declare const UpdateProjectConfiguration: S.Schema<UpdateProjectConfiguration>;
1711
+ export interface UpdateProjectRequest {
1712
+ /** Unique identifier of the organization containing the project */
1713
+ organizationID: string;
1714
+ /** Unique identifier of the project to update */
1715
+ projectID: string;
1716
+ /** New name for the project */
1717
+ name?: string;
1718
+ configuration?: UpdateProjectConfiguration;
1719
+ }
1720
+ export declare const UpdateProjectRequest: S.Schema<UpdateProjectRequest>;
1721
+ /** Scopes granted to the installation. */
1722
+ export type UpsertInstallationRequestScopesList = Array<string>;
1723
+ export declare const UpsertInstallationRequestScopesList: S.Schema<UpsertInstallationRequestScopesList>;
1724
+ /** Map of policy id to the acceptance timestamp (RFC 3339), e.g. {"toc": "2024-02-28T10:00:00Z"}. */
1725
+ export type UpsertInstallationRequestAcceptedPoliciesMap = {
1726
+ [key: string]: string | undefined;
1727
+ };
1728
+ export declare const UpsertInstallationRequestAcceptedPoliciesMap: S.Schema<UpsertInstallationRequestAcceptedPoliciesMap>;
1729
+ export interface InstallationCredentials {
1730
+ /** Installation access token that authenticates our outbound Partner API calls to Vercel. Stored encrypted at rest. */
1731
+ access_token: string | Redacted.Redacted<string>;
1732
+ /** Token type (e.g. "Bearer"). */
1733
+ token_type: string;
1734
+ }
1735
+ export declare const InstallationCredentials: S.Schema<InstallationCredentials>;
1736
+ /** Contact details for the account. */
1737
+ export interface InstallationAccountContact {
1738
+ email: string;
1739
+ name?: string;
1740
+ }
1741
+ export declare const InstallationAccountContact: S.Schema<InstallationAccountContact>;
1742
+ /** The Vercel account/team installing the integration. */
1743
+ export interface InstallationAccount {
1744
+ /** Team name (absent for personal accounts). */
1745
+ name?: string;
1746
+ /** URL of the account on Vercel. */
1747
+ url: string;
1748
+ /** Contact details for the account. */
1749
+ contact?: InstallationAccountContact;
1750
+ }
1751
+ export declare const InstallationAccount: S.Schema<InstallationAccount>;
1752
+ export interface UpsertInstallationRequest {
1753
+ /** Vercel installation id (icfg_...). */
1754
+ installationId: string;
1755
+ /** Scopes granted to the installation. */
1756
+ scopes: UpsertInstallationRequestScopesList;
1757
+ /** Map of policy id to the acceptance timestamp (RFC 3339), e.g. {"toc": "2024-02-28T10:00:00Z"}. */
1758
+ acceptedPolicies: UpsertInstallationRequestAcceptedPoliciesMap;
1759
+ credentials: InstallationCredentials;
1760
+ account: InstallationAccount;
1761
+ }
1762
+ export declare const UpsertInstallationRequest: S.Schema<UpsertInstallationRequest>;
1763
+ export interface UpsertInstallationResponse {
1764
+ }
1765
+ export declare const UpsertInstallationResponse: S.Schema<UpsertInstallationResponse>;
1766
+ export interface WebsocketRequest {
1767
+ }
1768
+ export declare const WebsocketRequest: S.Schema<WebsocketRequest>;
1769
+ export interface WebsocketResponse {
1770
+ }
1771
+ export declare const WebsocketResponse: S.Schema<WebsocketResponse>;
1772
+ export type BranchLogs2Error = BadRequest | NotFound | XataOpError;
1773
+ /** Retrieve branch logs */
1774
+ export declare const branchLogs2: API.OperationMethod<BranchLogsRequest, BranchLogs, BranchLogs2Error, XataOpContext>;
1775
+ export type BranchMetrics2Error = BadRequest | NotFound | XataOpError;
1776
+ /** Retrieve branch metrics Returns time-series data for one or more metrics of a branch. */
1777
+ export declare const branchMetrics2: API.OperationMethod<BranchMetricsRequest, BranchMetrics, BranchMetrics2Error, XataOpContext>;
1778
+ export type CreateBillingCheckoutSessionError = BadRequest | Forbidden | XataOpError;
1779
+ /** Create a billing checkout session Creates a Stripe checkout session used to activate card billing for an organization. */
1780
+ export declare const createBillingCheckoutSession: API.OperationMethod<CreateBillingCheckoutSessionRequest, BillingCheckoutSessionResponse, CreateBillingCheckoutSessionError, XataOpContext>;
1781
+ export type CreateBillingPaymentMethodSessionError = BadRequest | Forbidden | XataOpError;
1782
+ /** Create a billing payment method session Creates a Stripe setup-mode checkout session used to add or update an organization payment method. */
1783
+ export declare const createBillingPaymentMethodSession: API.OperationMethod<CreateBillingPaymentMethodSessionRequest, BillingPaymentMethodSessionResponse, CreateBillingPaymentMethodSessionError, XataOpContext>;
1784
+ export type CreateBranchError = BadRequest | NotFound | XataOpError;
1785
+ /** Create a new branch Creates a new branch within the specified project. Branches can be created from scratch or derived from an existing parent branch. */
1786
+ export declare const createBranch: API.OperationMethod<CreateBranchRequest, BranchShortMetadata, CreateBranchError, XataOpContext>;
1787
+ export type CreateGithubAppInstallationError = BadRequest | Conflict | XataOpError;
1788
+ /** Create GitHub App installation Creates a new GitHub App installation mapping for the specified organization. */
1789
+ export declare const createGithubAppInstallation: API.OperationMethod<CreateGithubAppInstallationRequest, GithubInstallation, CreateGithubAppInstallationError, XataOpContext>;
1790
+ export type CreateGithubRepositoryError = BadRequest | Conflict | XataOpError;
1791
+ /** Create GitHub repository mapping Creates a new GitHub repository to Xata branch mapping. */
1792
+ export declare const createGithubRepository: API.OperationMethod<CreateGithubRepositoryRequest, GithubRepository, CreateGithubRepositoryError, XataOpContext>;
1793
+ export type CreateOrganizationError = BadRequest | NotFound | XataOpError;
1794
+ /** Create a new organization Creates a new organization with the authenticated user as its single owner. */
1795
+ export declare const createOrganization: API.OperationMethod<CreateOrganizationRequest, Organization, CreateOrganizationError, XataOpContext>;
1796
+ export type CreateOrganizationAPIKeyError = BadRequest | XataOpError;
1797
+ /** Create an Organization API Key Create a new API key for an organization. */
1798
+ export declare const createOrganizationAPIKey: API.OperationMethod<CreateOrganizationAPIKeyRequest, CreateOrganizationAPIKeyResponse, CreateOrganizationAPIKeyError, XataOpContext>;
1799
+ export type CreateOrganizationInvitationError = BadRequest | Forbidden | NotFound | Conflict | XataOpError;
1800
+ /** Send an invitation to join an organization Send an invitation email to a user to join an organization. */
1801
+ export declare const createOrganizationInvitation: API.OperationMethod<CreateOrganizationInvitationRequest, CreateOrganizationInvitationResponse, CreateOrganizationInvitationError, XataOpContext>;
1802
+ export type CreateProjectError = BadRequest | XataOpError;
1803
+ /** Create a new project Creates a new project within the specified organization. Projects are containers for database branches and resources. */
1804
+ export declare const createProject: API.OperationMethod<CreateProjectRequest, Project, CreateProjectError, XataOpContext>;
1805
+ export type CreateUserAPIKeyError = BadRequest | XataOpError;
1806
+ /** Create a User API Key Create a new API key for the authenticated user. */
1807
+ export declare const createUserAPIKey: API.OperationMethod<CreateUserAPIKeyRequest, CreateUserAPIKeyResponse, CreateUserAPIKeyError, XataOpContext>;
1808
+ export type DeleteBranchError = BadRequest | NotFound | XataOpError;
1809
+ /** Delete a branch Permanently deletes a specific branch by its ID and all associated data. This action cannot be undone. */
1810
+ export declare const deleteBranch: API.OperationMethod<DeleteBranchRequest, DeleteBranchResponse, DeleteBranchError, XataOpContext>;
1811
+ export type DeleteGithubRepositoryError = BadRequest | NotFound | XataOpError;
1812
+ /** Delete GitHub repository mapping Deletes the GitHub repository mapping for the specified branch. */
1813
+ export declare const deleteGithubRepository: API.OperationMethod<DeleteGithubRepositoryRequest, DeleteGithubRepositoryResponse, DeleteGithubRepositoryError, XataOpContext>;
1814
+ export type DeleteInstallationError = Forbidden | Conflict | XataOpError;
1815
+ /** Delete a Vercel Marketplace installation Begin uninstalling an installation. The installation is marked 'deleting' so billing can finalize before being soft-deleted; the 204 defers final deletion to Vercel's 24-hour window. (Vercel's contract also allows a 200 with {"finalized": true} for immediate deletion; Xata always finalizes asynchronously.) */
1816
+ export declare const deleteInstallation: API.OperationMethod<DeleteInstallationRequest, DeleteInstallationResponse, DeleteInstallationError, XataOpContext>;
1817
+ export type DeleteOrganizationError = BadRequest | Forbidden | NotFound | XataOpError;
1818
+ /** Delete an organization [Not implemented yet] Permanently delete an organization. This action cannot be undone. */
1819
+ export declare const deleteOrganization: API.OperationMethod<DeleteOrganizationRequest, DeleteOrganizationResponse, DeleteOrganizationError, XataOpContext>;
1820
+ export type DeleteOrganizationAPIKeysError = BadRequest | NotFound | XataOpError;
1821
+ /** Bulk delete API Keys for an organization Delete multiple API keys in a single request. */
1822
+ export declare const deleteOrganizationAPIKeys: API.OperationMethod<DeleteOrganizationAPIKeysRequest, DeleteOrganizationAPIKeysResponse, DeleteOrganizationAPIKeysError, XataOpContext>;
1823
+ export type DeleteOrganizationInvitationError = BadRequest | Forbidden | NotFound | XataOpError;
1824
+ /** Delete an invitation Permanently delete an invitation record. */
1825
+ export declare const deleteOrganizationInvitation: API.OperationMethod<DeleteOrganizationInvitationRequest, DeleteOrganizationInvitationResponse, DeleteOrganizationInvitationError, XataOpContext>;
1826
+ export type DeleteProjectError = BadRequest | NotFound | XataOpError;
1827
+ /** Delete a project Permanently deletes a specific project by its ID and all associated resources including branches and databases. This action cannot be undone. */
1828
+ export declare const deleteProject: API.OperationMethod<DeleteProjectRequest, DeleteProjectResponse, DeleteProjectError, XataOpContext>;
1829
+ export type DeleteUserAPIKeysError = BadRequest | NotFound | XataOpError;
1830
+ /** Bulk delete API Keys for the authenticated user Delete multiple API keys in a single request. */
1831
+ export declare const deleteUserAPIKeys: API.OperationMethod<DeleteUserAPIKeysRequest, DeleteUserAPIKeysResponse, DeleteUserAPIKeysError, XataOpContext>;
1832
+ export type DescribeBranchError = BadRequest | NotFound | XataOpError;
1833
+ /** Get branch details Retrieves detailed information about a specific branch by its ID, including status, connection string, and configuration. */
1834
+ export declare const describeBranch: API.OperationMethod<DescribeBranchRequest, BranchMetadata, DescribeBranchError, XataOpContext>;
1835
+ export type GetBackupError = BadRequest | NotFound | XataOpError;
1836
+ /** Get project backup by ID Retrieves a backup by ID for the specified project. */
1837
+ export declare const getBackup: API.OperationMethod<GetBackupRequest, BackupMetadata, GetBackupError, XataOpContext>;
1838
+ export type GetBillingCustomerError = Forbidden | NotFound | XataOpError;
1839
+ /** Get billing customer details Retrieves billing customer details for the specified organization. */
1840
+ export declare const getBillingCustomer: API.OperationMethod<GetBillingCustomerRequest, BillingCustomerResponse, GetBillingCustomerError, XataOpContext>;
1841
+ export type GetBillingInvoicesError = BadRequest | Forbidden | NotFound | XataOpError;
1842
+ /** List billing invoices Retrieves billing invoices for the specified organization. */
1843
+ export declare const getBillingInvoices: API.OperationMethod<GetBillingInvoicesRequest, BillingInvoicesResponse, GetBillingInvoicesError, XataOpContext>;
1844
+ export type GetBillingUpcomingInvoiceError = Forbidden | NotFound | XataOpError;
1845
+ /** Get upcoming billing invoice Retrieves the upcoming billing invoice for the specified organization's active subscription. Organizations are expected to have at most one active subscription. */
1846
+ export declare const getBillingUpcomingInvoice: API.OperationMethod<GetBillingUpcomingInvoiceRequest, BillingUpcomingInvoiceResponse, GetBillingUpcomingInvoiceError, XataOpContext>;
1847
+ export type GetBranchCredentialsError = BadRequest | NotFound | XataOpError;
1848
+ /** Retrieve branch credentials */
1849
+ export declare const getBranchCredentials: API.OperationMethod<GetBranchCredentialsRequest, BranchCredentials, GetBranchCredentialsError, XataOpContext>;
1850
+ export type GetBranchPostgresConfigError = BadRequest | NotFound | XataOpError;
1851
+ /** Get PostgreSQL configuration details Retrieves detailed information about the current PostgreSQL configuration parameters for a branch, including parameter types, descriptions, acceptable ranges, default values, and current values. */
1852
+ export declare const getBranchPostgresConfig: API.OperationMethod<GetBranchPostgresConfigRequest, PostgresConfigDetails, GetBranchPostgresConfigError, XataOpContext>;
1853
+ export type GetDefaultProjectLimitsError = XataOpError;
1854
+ /** Get project resource limits Retrieves the default resource limits for projects in the specified organization, including maximum instances, storage, and allowed regions. */
1855
+ export declare const getDefaultProjectLimits: API.OperationMethod<GetDefaultProjectLimitsRequest, ProjectLimits, GetDefaultProjectLimitsError, XataOpContext>;
1856
+ export type GetGithubRepositoryError = BadRequest | XataOpError;
1857
+ /** Get GitHub repository for branch Returns the GitHub repository mapping for the specified branch. */
1858
+ export declare const getGithubRepository: API.OperationMethod<GetGithubRepositoryRequest, GetGithubRepositoryResponse, GetGithubRepositoryError, XataOpContext>;
1859
+ export type GetOrganizationError = BadRequest | Forbidden | NotFound | XataOpError;
1860
+ /** Get organization details Retrieve detailed information about a specific organization by its ID. */
1861
+ export declare const getOrganization: API.OperationMethod<GetOrganizationRequest, Organization, GetOrganizationError, XataOpContext>;
1862
+ export type GetOrganizationInvitationError = BadRequest | Forbidden | NotFound | XataOpError;
1863
+ /** Get details of a specific invitation Retrieve detailed information about a specific invitation by its ID. */
1864
+ export declare const getOrganizationInvitation: API.OperationMethod<GetOrganizationInvitationRequest, OrganizationInvitation, GetOrganizationInvitationError, XataOpContext>;
1865
+ export type GetOrganizationLimitsError = Forbidden | XataOpError;
1866
+ /** Get organization resource limits Retrieves the effective org-level limits, including project creation limits and branch configuration defaults. Project-specific overrides are not applied here. */
1867
+ export declare const getOrganizationLimits: API.OperationMethod<GetOrganizationLimitsRequest, GetOrganizationLimitsResponse, GetOrganizationLimitsError, XataOpContext>;
1868
+ export type GetOrganizationMembershipLimitsError = Forbidden | XataOpError;
1869
+ /** Get organization membership limits Retrieves the membership limits for the specified organization (maximum members and invitations). */
1870
+ export declare const getOrganizationMembershipLimits: API.OperationMethod<GetOrganizationMembershipLimitsRequest, OrganizationMembershipLimits, GetOrganizationMembershipLimitsError, XataOpContext>;
1871
+ export type GetOrganizationsListError = BadRequest | NotFound | XataOpError;
1872
+ /** Get list of organizations Retrieve the list of all organizations the authenticated user belongs to, including their IDs and names. This endpoint allows users to view all organizations they have access to. */
1873
+ export declare const getOrganizationsList: API.OperationMethod<GetOrganizationsListRequest, GetOrganizationsListResponse, GetOrganizationsListError, XataOpContext>;
1874
+ export type GetProjectError = BadRequest | NotFound | XataOpError;
1875
+ /** Get project details Retrieves detailed information about a specific project by its ID within the specified organization. */
1876
+ export declare const getProject: API.OperationMethod<GetProjectRequest, Project, GetProjectError, XataOpContext>;
1877
+ export type GetProjectLimitsError = XataOpError;
1878
+ /** Get project resource limits Retrieves the effective resource limits for the specified project, merging organization-level overrides with any project-specific overrides. */
1879
+ export declare const getProjectLimits: API.OperationMethod<GetProjectLimitsRequest, EffectiveProjectLimits, GetProjectLimitsError, XataOpContext>;
1880
+ export type GithubWebhookError = BadRequest | XataOpError;
1881
+ /** GitHub App webhook Endpoint used by GitHub to deliver App webhook events. This endpoint is authenticated via GitHub's HMAC-SHA256 signature header, not via the normal API authentication. */
1882
+ export declare const githubWebhook: API.OperationMethod<GithubWebhookRequest, GithubWebhookResponse, GithubWebhookError, XataOpContext>;
1883
+ export type ListBackupsError = BadRequest | NotFound | XataOpError;
1884
+ /** List project backups Retrieves a list of backups for the specified project. */
1885
+ export declare const listBackups: API.OperationMethod<ListBackupsRequest, ListBackupsResponse, ListBackupsError, XataOpContext>;
1886
+ export type ListBranchesError = BadRequest | NotFound | XataOpError;
1887
+ /** List all branches Retrieves a list of all branches within the specified project, including their metadata, region, and access settings. */
1888
+ export declare const listBranches: API.OperationMethod<ListBranchesRequest, ListBranchesResponse, ListBranchesError, XataOpContext>;
1889
+ export type ListExtensionsError = BadRequest | XataOpError;
1890
+ /** Get available extensions for image Retrieves a list of all extensions for the specified image in the organization and region given */
1891
+ export declare const listExtensions: API.OperationMethod<ListExtensionsRequest, ListExtensionsResponse, ListExtensionsError, XataOpContext>;
1892
+ export type ListGithubAppInstallationsError = BadRequest | XataOpError;
1893
+ /** List GitHub App installations for organization Returns all GitHub App installations associated with the specified organization. */
1894
+ export declare const listGithubAppInstallations: API.OperationMethod<ListGithubAppInstallationsRequest, ListGithubAppInstallationsResponse, ListGithubAppInstallationsError, XataOpContext>;
1895
+ export type ListImagesError = BadRequest | XataOpError;
1896
+ /** Get available images Retrieves a list of all images for the specified organization and region */
1897
+ export declare const listImages: API.OperationMethod<ListImagesRequest, ListImagesResponse, ListImagesError, XataOpContext>;
1898
+ export type ListInstanceTypesError = BadRequest | XataOpError;
1899
+ /** Get available instance types Retrieves a list of all instance types for the specified organization and region */
1900
+ export declare const listInstanceTypes: API.OperationMethod<ListInstanceTypesRequest, ListInstanceTypesResponse, ListInstanceTypesError, XataOpContext>;
1901
+ export type ListOrganizationAPIKeysError = BadRequest | Forbidden | NotFound | XataOpError;
1902
+ /** List API Keys for an organization Retrieve a list of API keys for a specific organization. */
1903
+ export declare const listOrganizationAPIKeys: API.OperationMethod<ListOrganizationAPIKeysRequest, ListOrganizationAPIKeysResponse, ListOrganizationAPIKeysError, XataOpContext>;
1904
+ export type ListOrganizationInvitationsError = BadRequest | Forbidden | NotFound | XataOpError;
1905
+ /** List invitations for an organization Retrieve all invitations for an organization with optional filtering by status, email, and name. */
1906
+ export declare const listOrganizationInvitations: API.OperationMethod<ListOrganizationInvitationsRequest, ListOrganizationInvitationsResponse, ListOrganizationInvitationsError, XataOpContext>;
1907
+ export type ListOrganizationMembersError = XataOpError;
1908
+ /** List members of an organization */
1909
+ export declare const listOrganizationMembers: API.OperationMethod<ListOrganizationMembersRequest, ListOrganizationMembersResponse, ListOrganizationMembersError, XataOpContext>;
1910
+ export type ListProjectsError = BadRequest | XataOpError;
1911
+ /** List all projects Retrieves a list of all projects within the specified organization that the authenticated user has access to. */
1912
+ export declare const listProjects: API.OperationMethod<ListProjectsRequest, ListProjectsResponse, ListProjectsError, XataOpContext>;
1913
+ export type ListRegionsError = BadRequest | XataOpError;
1914
+ /** Get available regions Retrieves a list of all regions where new branches can be deployed for the specified organization. */
1915
+ export declare const listRegions: API.OperationMethod<ListRegionsRequest, ListRegionsResponse, ListRegionsError, XataOpContext>;
1916
+ export type ListUserAPIKeysError = BadRequest | XataOpError;
1917
+ /** List API Keys for the authenticated user Retrieve a list of API keys for the authenticated user. */
1918
+ export declare const listUserAPIKeys: API.OperationMethod<ListUserAPIKeysRequest, ListUserAPIKeysResponse, ListUserAPIKeysError, XataOpContext>;
1919
+ export type OrbWebhookError = BadRequest | XataOpError;
1920
+ /** Orb billing webhook Endpoint used by Orb to deliver billing-related webhook events. This endpoint is authenticated via Orb's HMAC signature headers, not via the normal API authentication. */
1921
+ export declare const orbWebhook: API.OperationMethod<OrbWebhookRequest, OrbWebhookResponse, OrbWebhookError, XataOpContext>;
1922
+ export type QueryError = BadRequest | Forbidden | NotFound | Conflict | XataOpError;
1923
+ /** Execute SQL query Execute a single SQL query or a batch of queries against a PostgreSQL branch. **Authentication:** send the branch's PostgreSQL connection string in the `Connection-String` header. The control-plane API key (Bearer token) is **not** accepted on the gateway host. **Routing:** the target branch, region, and endpoint type are taken from the hostname embedded in the connection string, which must match the request host. See the `Connection-String` security scheme for the host format. **Single query:** provide `query` (and optional `params`) at the top level. **Batch:** provide `queries` as an array of query objects, or send the request body as a JSON array. Batch queries execute within a single transaction. */
1924
+ export declare const query: API.OperationMethod<QueryRequest, QueryResponse, QueryError, XataOpContext>;
1925
+ export type RegisterMarketplaceError = BadRequest | Conflict | XataOpError;
1926
+ /** Register with a cloud marketplace Links the authenticated user to a cloud marketplace subscription. Only one marketplace registration is allowed per user. */
1927
+ export declare const registerMarketplace: API.OperationMethod<RegisterMarketplaceRequest, RegisterMarketplaceResponse, RegisterMarketplaceError, XataOpContext>;
1928
+ export type RemoveOrganizationMemberError = XataOpError;
1929
+ /** Remove a member from an organization */
1930
+ export declare const removeOrganizationMember: API.OperationMethod<RemoveOrganizationMemberRequest, RemoveOrganizationMemberResponse, RemoveOrganizationMemberError, XataOpContext>;
1931
+ export type RequestOrganizationDeletionError = BadRequest | Forbidden | Conflict | XataOpError;
1932
+ /** Request organization deletion Flags the organization for deletion. The request is rejected if the organization still has active projects. The subscription is cancelled immediately and any outstanding invoices are collected automatically after a grace period that prevents missing delayed usage reports. Deletion completes asynchronously once all invoices are issued and settled. */
1933
+ export declare const requestOrganizationDeletion: API.OperationMethod<RequestOrganizationDeletionRequest, RequestOrganizationDeletionResponse, RequestOrganizationDeletionError, XataOpContext>;
1934
+ export type ResendOrganizationInvitationError = BadRequest | Forbidden | NotFound | XataOpError;
1935
+ /** Resend an invitation Resend a pending invitation with a fresh expiration time. */
1936
+ export declare const resendOrganizationInvitation: API.OperationMethod<ResendOrganizationInvitationRequest, ResendOrganizationInvitationResponse, ResendOrganizationInvitationError, XataOpContext>;
1937
+ export type RestoreFromBackupError = BadRequest | NotFound | XataOpError;
1938
+ /** Create a new branch from a backup of another branch Creates a new backup branch within the specified project. */
1939
+ export declare const restoreFromBackup: API.OperationMethod<RestoreFromBackupRequest, BranchShortMetadata, RestoreFromBackupError, XataOpContext>;
1940
+ export type RotateBranchCredentialsError = BadRequest | NotFound | XataOpError;
1941
+ /** Rotate branch credentials Triggers a credential rotation for the branch database user. The new credentials can be retrieved via the credentials endpoint after rotation completes. */
1942
+ export declare const rotateBranchCredentials: API.OperationMethod<RotateBranchCredentialsRequest, RotateBranchCredentialsResponse, RotateBranchCredentialsError, XataOpContext>;
1943
+ export type SendMcpRequestError = BadRequest | XataOpError;
1944
+ /** Send an MCP message Handle a single JSON-RPC 2.0 message from an MCP client, per the MCP [Streamable HTTP transport](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports). The server is stateless: every request is self-contained and carries the caller's credential, so there is no session to establish or resume. `GET` and `DELETE` on this path return `405 Method Not Allowed`. **Requests** (messages with an `id`) are answered with the JSON-RPC response, either as `application/json` or as a `text/event-stream` carrying the response and any notifications emitted while it runs. Requests must accept both. **Notifications and responses** (messages without an `id`) are answered with `202 Accepted` and an empty body. */
1945
+ export declare const sendMcpRequest: API.OperationMethod<SendMcpRequestRequest, JSONRPCResponse, SendMcpRequestError, XataOpContext>;
1946
+ export type StripeWebhookError = BadRequest | XataOpError;
1947
+ /** Stripe webhook Endpoint used by Stripe to deliver webhook events. This endpoint is authenticated via Stripe's signature headers, not via the normal API authentication. */
1948
+ export declare const stripeWebhook: API.OperationMethod<StripeWebhookRequest, StripeWebhookResponse, StripeWebhookError, XataOpContext>;
1949
+ export type UpdateBillingCustomerError = BadRequest | Forbidden | NotFound | XataOpError;
1950
+ /** Update billing customer details Updates billing customer details for the specified organization. */
1951
+ export declare const updateBillingCustomer: API.OperationMethod<UpdateBillingCustomerRequest, BillingCustomerResponse, UpdateBillingCustomerError, XataOpContext>;
1952
+ export type UpdateBranchError = BadRequest | NotFound | XataOpError;
1953
+ /** Update branch details Updates the configuration of a specific branch by its ID, such as changing its name, description, or resource allocation. */
1954
+ export declare const updateBranch: API.OperationMethod<UpdateBranchRequest, BranchShortMetadata, UpdateBranchError, XataOpContext>;
1955
+ export type UpdateGithubAppInstallationError = BadRequest | NotFound | Conflict | XataOpError;
1956
+ /** Update GitHub App installation Updates an existing GitHub App installation mapping. */
1957
+ export declare const updateGithubAppInstallation: API.OperationMethod<UpdateGithubAppInstallationRequest, GithubInstallation, UpdateGithubAppInstallationError, XataOpContext>;
1958
+ export type UpdateGithubRepositoryError = BadRequest | NotFound | XataOpError;
1959
+ /** Update GitHub repository mapping Updates an existing GitHub repository to Xata branch mapping. */
1960
+ export declare const updateGithubRepository: API.OperationMethod<UpdateGithubRepositoryRequest, GithubRepository, UpdateGithubRepositoryError, XataOpContext>;
1961
+ export type UpdateOrganizationError = BadRequest | Forbidden | NotFound | XataOpError;
1962
+ /** Update organization details Update information for an existing organization, such as its name. */
1963
+ export declare const updateOrganization: API.OperationMethod<UpdateOrganizationRequest, Organization, UpdateOrganizationError, XataOpContext>;
1964
+ export type UpdateProjectError = BadRequest | NotFound | XataOpError;
1965
+ /** Update project details Updates the details of a specific project by its ID, such as changing its name. */
1966
+ export declare const updateProject: API.OperationMethod<UpdateProjectRequest, Project, UpdateProjectError, XataOpContext>;
1967
+ export type UpsertInstallationError = BadRequest | Forbidden | Conflict | XataOpError;
1968
+ /** Upsert a Vercel Marketplace installation Create or update an installation. Vercel sends this when a customer installs (or re-sends it idempotently). The acting account is taken from the signed token claims, not this body. There is one installation per Vercel team, and an installation can own many Xata organizations. */
1969
+ export declare const upsertInstallation: API.OperationMethod<UpsertInstallationRequest, UpsertInstallationResponse, UpsertInstallationError, XataOpContext>;
1970
+ export type WebsocketError = BadRequest | XataOpError;
1971
+ /** WebSocket wire protocol proxy Upgrade to a WebSocket connection that proxies the PostgreSQL wire protocol. The client sends and receives PostgreSQL protocol messages over binary WebSocket frames. **Authentication:** the same branch connection string credential as the HTTP SQL endpoint is used, but it is supplied via the PostgreSQL startup message inside the wire protocol rather than an HTTP header. The control-plane API key (Bearer token) is not accepted. */
1972
+ export declare const websocket: API.OperationMethod<WebsocketRequest, WebsocketResponse, WebsocketError, XataOpContext>;
1973
+ //# sourceMappingURL=xata.d.ts.map