@distilled.cloud/xata 1.0.0-rc.15 → 1.0.0-rc.16

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.
@@ -1,42 +1,42 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
- import * as S from "@distilled.cloud/core/schema";
3
- import * as Redacted from "effect/Redacted";
2
+ import * as S from "@distilled.cloud/core/schema-lite";
3
+ import type * as Redacted from "effect/Redacted";
4
4
  import { type XataOpError, type XataOpContext } from "../protocol.ts";
5
5
  export type { XataOpError, XataOpContext };
6
- declare const BadRequest_base: S.Class<BadRequest, S.TaggedStruct<"BadRequest", {
6
+ declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
7
7
  readonly code: any;
8
8
  readonly message: any;
9
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
9
+ }> & (new (...args: any[]) => {
10
10
  "@distilled.cloud/error/categories": {
11
11
  BadRequestError: true;
12
12
  };
13
13
  });
14
14
  export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
15
15
  }
16
- declare const Conflict_base: S.Class<Conflict, S.TaggedStruct<"Conflict", {
16
+ declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
17
17
  readonly code: any;
18
18
  readonly message: any;
19
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
19
+ }> & (new (...args: any[]) => {
20
20
  "@distilled.cloud/error/categories": {
21
21
  ConflictError: true;
22
22
  };
23
23
  });
24
24
  export declare class Conflict extends /*@__PURE__*/ Conflict_base {
25
25
  }
26
- declare const Forbidden_base: S.Class<Forbidden, S.TaggedStruct<"Forbidden", {
26
+ declare const Forbidden_base: S.TaggedErrorClass<"Forbidden", {
27
27
  readonly code: any;
28
28
  readonly message: any;
29
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
29
+ }> & (new (...args: any[]) => {
30
30
  "@distilled.cloud/error/categories": {
31
31
  AuthError: true;
32
32
  };
33
33
  });
34
34
  export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
35
35
  }
36
- declare const NotFound_base: S.Class<NotFound, S.TaggedStruct<"NotFound", {
36
+ declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
37
37
  readonly code: any;
38
38
  readonly message: any;
39
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
39
+ }> & (new (...args: any[]) => {
40
40
  "@distilled.cloud/error/categories": {
41
41
  BadRequestError: true;
42
42
  };
@@ -45,13 +45,10 @@ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
45
45
  }
46
46
  /** Log attribute to filter on. */
47
47
  export type LogFilterField = "instance" | "level" | "process" | "body";
48
- export declare const LogFilterField: any;
49
48
  /** Match operator. */
50
49
  export type LogFilterOp = "in" | "contains" | "icontains" | "regex" | "iregex";
51
- export declare const LogFilterOp: any;
52
50
  /** Used with `op: in`. */
53
51
  export type LogFilterValuesList = Array<string>;
54
- export declare const LogFilterValuesList: S.Schema<LogFilterValuesList>;
55
52
  /** A single filter on log entries. */
56
53
  export interface LogFilter {
57
54
  /** Log attribute to filter on. */
@@ -63,10 +60,8 @@ export interface LogFilter {
63
60
  /** Used with the body operators. */
64
61
  value?: string;
65
62
  }
66
- export declare const LogFilter: S.Schema<LogFilter>;
67
63
  /** Filters applied to log entries. Multiple filters are combined with AND. */
68
64
  export type BranchLogsRequestFiltersList = Array<LogFilter>;
69
- export declare const BranchLogsRequestFiltersList: S.Schema<BranchLogsRequestFiltersList>;
70
65
  export interface BranchLogsRequest {
71
66
  organizationID: string;
72
67
  projectID: string;
@@ -81,10 +76,8 @@ export interface BranchLogsRequest {
81
76
  /** Pagination cursor from a previous response */
82
77
  cursor?: string;
83
78
  }
84
- export declare const BranchLogsRequest: S.Schema<BranchLogsRequest>;
85
79
  /** Log level enumeration */
86
80
  export type LogLevel = "debug" | "info" | "warning" | "error";
87
- export declare const LogLevel: any;
88
81
  export interface LogEntry {
89
82
  timestamp: string;
90
83
  instanceID: string;
@@ -93,9 +86,7 @@ export interface LogEntry {
93
86
  /** Name of the PostgreSQL process that emitted the log */
94
87
  process?: string;
95
88
  }
96
- export declare const LogEntry: S.Schema<LogEntry>;
97
89
  export type BranchLogsLogsList = Array<LogEntry>;
98
- export declare const BranchLogsLogsList: S.Schema<BranchLogsLogsList>;
99
90
  /** A collection of logs for each of the instances of a branch */
100
91
  export interface BranchLogs {
101
92
  start: string;
@@ -104,21 +95,15 @@ export interface BranchLogs {
104
95
  /** Pagination cursor for the next page */
105
96
  nextCursor: string | null;
106
97
  }
107
- export declare const BranchLogs: S.Schema<BranchLogs>;
108
98
  /** Name of a branch metric exposed by the API. */
109
99
  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
100
  /** List of metric names to query. */
112
101
  export type BranchMetricsRequestMetricsList = Array<BranchMetricName | (string & {})>;
113
- export declare const BranchMetricsRequestMetricsList: S.Schema<BranchMetricsRequestMetricsList>;
114
102
  /** List of instance IDs to query */
115
103
  export type BranchMetricsRequestInstancesList = Array<string>;
116
- export declare const BranchMetricsRequestInstancesList: S.Schema<BranchMetricsRequestInstancesList>;
117
104
  export type BranchMetricsRequestAggregationsItem = "avg" | "max" | "min";
118
- export declare const BranchMetricsRequestAggregationsItem: any;
119
105
  /** 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
106
  export type BranchMetricsRequestAggregationsList = Array<BranchMetricsRequestAggregationsItem | (string & {})>;
121
- export declare const BranchMetricsRequestAggregationsList: S.Schema<BranchMetricsRequestAggregationsList>;
122
107
  export interface BranchMetricsRequest {
123
108
  organizationID: string;
124
109
  projectID: string;
@@ -134,17 +119,13 @@ export interface BranchMetricsRequest {
134
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. */
135
120
  aggregations: BranchMetricsRequestAggregationsList;
136
121
  }
137
- export declare const BranchMetricsRequest: S.Schema<BranchMetricsRequest>;
138
122
  /** The aggregation used to generate this time-series */
139
123
  export type MetricSeriesAggregation = "avg" | "max" | "min";
140
- export declare const MetricSeriesAggregation: any;
141
124
  export interface MetricSeriesValuesItem {
142
125
  timestamp: string;
143
126
  value: number;
144
127
  }
145
- export declare const MetricSeriesValuesItem: S.Schema<MetricSeriesValuesItem>;
146
128
  export type MetricSeriesValuesList = Array<MetricSeriesValuesItem>;
147
- export declare const MetricSeriesValuesList: S.Schema<MetricSeriesValuesList>;
148
129
  /** The metric series */
149
130
  export interface MetricSeries {
150
131
  /** ID of the instance */
@@ -153,9 +134,7 @@ export interface MetricSeries {
153
134
  aggregation: MetricSeriesAggregation;
154
135
  values: MetricSeriesValuesList;
155
136
  }
156
- export declare const MetricSeries: S.Schema<MetricSeries>;
157
137
  export type BranchMetricResultSeriesList = Array<MetricSeries>;
158
- export declare const BranchMetricResultSeriesList: S.Schema<BranchMetricResultSeriesList>;
159
138
  /** Time-series for a single metric. */
160
139
  export interface BranchMetricResult {
161
140
  /** Name of the queried metric. */
@@ -164,10 +143,8 @@ export interface BranchMetricResult {
164
143
  unit: string;
165
144
  series: BranchMetricResultSeriesList;
166
145
  }
167
- export declare const BranchMetricResult: S.Schema<BranchMetricResult>;
168
146
  /** One entry per requested metric, in the order the metrics were requested. */
169
147
  export type BranchMetricsResultsList = Array<BranchMetricResult>;
170
- export declare const BranchMetricsResultsList: S.Schema<BranchMetricsResultsList>;
171
148
  /** A collection of metrics (cpu, memory, disk,...) for each of the instances of a branch */
172
149
  export interface BranchMetrics {
173
150
  start: string;
@@ -175,14 +152,12 @@ export interface BranchMetrics {
175
152
  /** One entry per requested metric, in the order the metrics were requested. */
176
153
  results: BranchMetricsResultsList;
177
154
  }
178
- export declare const BranchMetrics: S.Schema<BranchMetrics>;
179
155
  export interface ClaimOrganizationSSODomainRequest {
180
156
  /** Unique identifier for a specific organization */
181
157
  organizationID: string;
182
158
  /** Bare email domain to claim, for example acme.com. */
183
159
  domain: string;
184
160
  }
185
- export declare const ClaimOrganizationSSODomainRequest: S.Schema<ClaimOrganizationSSODomainRequest>;
186
161
  /** The DNS TXT record that proves an organization controls a domain */
187
162
  export interface OrganizationSSODomainVerification {
188
163
  /** Name to create the record at */
@@ -192,7 +167,6 @@ export interface OrganizationSSODomainVerification {
192
167
  /** Value the record must hold */
193
168
  record_value: string;
194
169
  }
195
- export declare const OrganizationSSODomainVerification: S.Schema<OrganizationSSODomainVerification>;
196
170
  /** An email domain claimed by an organization for SSO */
197
171
  export interface OrganizationSSODomain {
198
172
  /** The claimed email domain */
@@ -208,27 +182,22 @@ export interface OrganizationSSODomain {
208
182
  /** When the domain stops being verified if the record is still missing. */
209
183
  revokes_at?: string | null;
210
184
  }
211
- export declare const OrganizationSSODomain: S.Schema<OrganizationSSODomain>;
212
185
  export interface CreateBillingCheckoutSessionRequest {
213
186
  /** Unique identifier for a specific organization */
214
187
  organizationID: string;
215
188
  }
216
- export declare const CreateBillingCheckoutSessionRequest: S.Schema<CreateBillingCheckoutSessionRequest>;
217
189
  export interface BillingCheckoutSessionResponse {
218
190
  /** Stripe checkout session URL */
219
191
  url: string;
220
192
  }
221
- export declare const BillingCheckoutSessionResponse: S.Schema<BillingCheckoutSessionResponse>;
222
193
  export interface CreateBillingPaymentMethodSessionRequest {
223
194
  /** Unique identifier for a specific organization */
224
195
  organizationID: string;
225
196
  }
226
- export declare const CreateBillingPaymentMethodSessionRequest: S.Schema<CreateBillingPaymentMethodSessionRequest>;
227
197
  export interface BillingPaymentMethodSessionResponse {
228
198
  /** Stripe payment method session URL */
229
199
  url: string;
230
200
  }
231
- export declare const BillingPaymentMethodSessionResponse: S.Schema<BillingPaymentMethodSessionResponse>;
232
201
  /** Configuration for scaling branches to zero when not in use */
233
202
  export interface ScaleToZeroConfiguration {
234
203
  /** Whether scale to zero is enabled */
@@ -236,7 +205,6 @@ export interface ScaleToZeroConfiguration {
236
205
  /** Duration in minutes after which branches will be hibernated if not accessed */
237
206
  inactivityPeriodMinutes: number;
238
207
  }
239
- export declare const ScaleToZeroConfiguration: S.Schema<ScaleToZeroConfiguration>;
240
208
  /** Details about the branch continuous backup configuration */
241
209
  export interface BackupConfiguration {
242
210
  /** how long are we keeping the backups around for */
@@ -244,10 +212,8 @@ export interface BackupConfiguration {
244
212
  /** time of day/week when we are taking a full backup */
245
213
  backupTime?: string;
246
214
  }
247
- export declare const BackupConfiguration: S.Schema<BackupConfiguration>;
248
215
  /** The mode used to discriminate between types of branches. */
249
216
  export type CreateBranchRequestMode = "inherit" | "custom";
250
- export declare const CreateBranchRequestMode: any;
251
217
  export interface CreateBranchRequest {
252
218
  /** Unique identifier of the organization containing the project */
253
219
  organizationID: string;
@@ -262,7 +228,6 @@ export interface CreateBranchRequest {
262
228
  /** The mode used to discriminate between types of branches. */
263
229
  mode: CreateBranchRequestMode | (string & {});
264
230
  }
265
- export declare const CreateBranchRequest: S.Schema<CreateBranchRequest>;
266
231
  /** Basic metadata about a branch, used in response to create/update operations */
267
232
  export interface BranchShortMetadata {
268
233
  /** Unique identifier for the branch */
@@ -284,14 +249,12 @@ export interface BranchShortMetadata {
284
249
  /** Whether the branch allows public access without authentication */
285
250
  publicAccess: boolean;
286
251
  }
287
- export declare const BranchShortMetadata: S.Schema<BranchShortMetadata>;
288
252
  export interface CreateGithubAppInstallationRequest {
289
253
  /** Unique identifier of the organization */
290
254
  organizationID: string;
291
255
  /** GitHub App installation ID */
292
256
  installationId: number;
293
257
  }
294
- export declare const CreateGithubAppInstallationRequest: S.Schema<CreateGithubAppInstallationRequest>;
295
258
  /** A GitHub App installation associated with an organization */
296
259
  export interface GithubInstallation {
297
260
  /** Unique identifier of the installation record */
@@ -305,7 +268,6 @@ export interface GithubInstallation {
305
268
  /** Timestamp when the installation was last updated */
306
269
  updatedAt: string;
307
270
  }
308
- export declare const GithubInstallation: S.Schema<GithubInstallation>;
309
271
  export interface CreateGithubRepositoryRequest {
310
272
  /** Unique identifier of the organization */
311
273
  organizationID: string;
@@ -316,7 +278,6 @@ export interface CreateGithubRepositoryRequest {
316
278
  /** GitHub repository ID */
317
279
  githubRepositoryID: number;
318
280
  }
319
- export declare const CreateGithubRepositoryRequest: S.Schema<CreateGithubRepositoryRequest>;
320
281
  /** A mapping between a GitHub repository and a Xata project */
321
282
  export interface GithubRepository {
322
283
  /** Unique identifier of the mapping record */
@@ -332,21 +293,16 @@ export interface GithubRepository {
332
293
  /** Timestamp when the mapping was last updated */
333
294
  updatedAt: string;
334
295
  }
335
- export declare const GithubRepository: S.Schema<GithubRepository>;
336
296
  export interface CreateOrganizationRequest {
337
297
  /** Name for the new organization */
338
298
  name: string;
339
299
  }
340
- export declare const CreateOrganizationRequest: S.Schema<CreateOrganizationRequest>;
341
300
  /** Indicates whether the organization is active, it's computed as `!disabled_by_admin AND billing_status == 'ok'` */
342
301
  export type OrganizationStatusStatus = "enabled" | "disabled";
343
- export declare const OrganizationStatusStatus: any;
344
302
  /** Indicates the status of the organization from a billing perspective */
345
303
  export type OrganizationStatusBillingStatus = "ok" | "no_payment_method" | "invoice_overdue" | "unknown" | "deletion_requested";
346
- export declare const OrganizationStatusBillingStatus: any;
347
304
  /** Usage tier of the organization. t1 is the default for new organizations, t2 is assigned when a valid payment method is on file. */
348
305
  export type OrganizationStatusUsageTier = "t1" | "t2";
349
- export declare const OrganizationStatusUsageTier: any;
350
306
  export interface OrganizationStatus {
351
307
  /** Indicates whether the organization is active, it's computed as `!disabled_by_admin AND billing_status == 'ok'` */
352
308
  status: OrganizationStatusStatus;
@@ -365,10 +321,8 @@ export interface OrganizationStatus {
365
321
  /** Timestamp when the organization was created */
366
322
  created_at?: string;
367
323
  }
368
- export declare const OrganizationStatus: S.Schema<OrganizationStatus>;
369
324
  /** Marketplace provider associated with an organization. */
370
325
  export type OrganizationMarketplaceProvider = "aws";
371
- export declare const OrganizationMarketplaceProvider: any;
372
326
  /** Organization details including ID and name */
373
327
  export interface Organization {
374
328
  /** Unique identifier for the organization */
@@ -380,16 +334,12 @@ export interface Organization {
380
334
  /** Marketplace provider for this organization (e.g. "aws"), if billed through a marketplace */
381
335
  marketplace?: OrganizationMarketplaceProvider | null;
382
336
  }
383
- export declare const Organization: S.Schema<Organization>;
384
337
  /** Optional scopes assigned to the API key */
385
338
  export type CreateOrganizationAPIKeyRequestScopesList = Array<string>;
386
- export declare const CreateOrganizationAPIKeyRequestScopesList: S.Schema<CreateOrganizationAPIKeyRequestScopesList>;
387
339
  /** Limit access to these projects */
388
340
  export type CreateOrganizationAPIKeyRequestProjectsList = Array<string>;
389
- export declare const CreateOrganizationAPIKeyRequestProjectsList: S.Schema<CreateOrganizationAPIKeyRequestProjectsList>;
390
341
  /** Limit access to these branches */
391
342
  export type CreateOrganizationAPIKeyRequestBranchesList = Array<string>;
392
- export declare const CreateOrganizationAPIKeyRequestBranchesList: S.Schema<CreateOrganizationAPIKeyRequestBranchesList>;
393
343
  export interface CreateOrganizationAPIKeyRequest {
394
344
  /** Unique identifier for a specific organization */
395
345
  organizationID: string;
@@ -403,15 +353,11 @@ export interface CreateOrganizationAPIKeyRequest {
403
353
  /** Limit access to these branches */
404
354
  branches?: CreateOrganizationAPIKeyRequestBranchesList;
405
355
  }
406
- export declare const CreateOrganizationAPIKeyRequest: S.Schema<CreateOrganizationAPIKeyRequest>;
407
356
  export type FullAPIKeyScopesList = Array<string>;
408
- export declare const FullAPIKeyScopesList: S.Schema<FullAPIKeyScopesList>;
409
357
  /** Projects this API key has access to */
410
358
  export type FullAPIKeyProjectsList = Array<string>;
411
- export declare const FullAPIKeyProjectsList: S.Schema<FullAPIKeyProjectsList>;
412
359
  /** Branches this API key has access to */
413
360
  export type FullAPIKeyBranchesList = Array<string>;
414
- export declare const FullAPIKeyBranchesList: S.Schema<FullAPIKeyBranchesList>;
415
361
  export interface FullAPIKey {
416
362
  id: string;
417
363
  name: string;
@@ -433,14 +379,11 @@ export interface FullAPIKey {
433
379
  /** ID of the API key that created this API key */
434
380
  created_by_key?: string | null;
435
381
  }
436
- export declare const FullAPIKey: S.Schema<FullAPIKey>;
437
382
  export interface CreateOrganizationAPIKeyResponse {
438
383
  key: FullAPIKey;
439
384
  }
440
- export declare const CreateOrganizationAPIKeyResponse: S.Schema<CreateOrganizationAPIKeyResponse>;
441
385
  /** The roles a member of an organization can hold */
442
386
  export type OrganizationRoleName = "admin" | "editor";
443
- export declare const OrganizationRoleName: any;
444
387
  export interface CreateOrganizationInvitationRequest {
445
388
  /** Unique identifier for a specific organization */
446
389
  organizationID: string;
@@ -449,13 +392,10 @@ export interface CreateOrganizationInvitationRequest {
449
392
  /** Role the user holds once they accept the invitation. Optional; when omitted, the least privileged role offered applies */
450
393
  role?: OrganizationRoleName | (string & {});
451
394
  }
452
- export declare const CreateOrganizationInvitationRequest: S.Schema<CreateOrganizationInvitationRequest>;
453
395
  export interface CreateOrganizationInvitationResponse {
454
396
  }
455
- export declare const CreateOrganizationInvitationResponse: S.Schema<CreateOrganizationInvitationResponse>;
456
397
  /** Which identity provider this is. `google` pins the login to a Google Workspace domain and `microsoft` to a single Entra tenant, taken from the issuer; `oidc` is the fallback for anything else that speaks OpenID Connect. */
457
398
  export type OrganizationSSOProviderType = "google" | "microsoft" | "oidc";
458
- export declare const OrganizationSSOProviderType: any;
459
399
  export interface CreateOrganizationSSOProviderRequest {
460
400
  /** Unique identifier for a specific organization */
461
401
  organizationID: string;
@@ -469,7 +409,6 @@ export interface CreateOrganizationSSOProviderRequest {
469
409
  /** OAuth client secret. Write-only: it is stored in Keycloak and is never returned by this API. */
470
410
  client_secret: string | Redacted.Redacted<string>;
471
411
  }
472
- export declare const CreateOrganizationSSOProviderRequest: S.Schema<CreateOrganizationSSOProviderRequest>;
473
412
  /** An identity provider serving one of the organization's verified domains. The client secret is write-only and is never returned. */
474
413
  export interface OrganizationSSOProvider {
475
414
  /** Stable identifier for this provider, used in its own endpoints. */
@@ -486,35 +425,29 @@ export interface OrganizationSSOProvider {
486
425
  /** OAuth client ID the organization registered with the provider. */
487
426
  client_id: string;
488
427
  }
489
- export declare const OrganizationSSOProvider: S.Schema<OrganizationSSOProvider>;
490
428
  /** Whether the project branches are configured to scale down to zero when not in use */
491
429
  export interface ProjectScaleToZeroConfiguration {
492
430
  baseBranches: ScaleToZeroConfiguration;
493
431
  childBranches: ScaleToZeroConfiguration;
494
432
  }
495
- export declare const ProjectScaleToZeroConfiguration: S.Schema<ProjectScaleToZeroConfiguration>;
496
433
  export interface CidrEntry {
497
434
  /** IP address or CIDR block (e.g., "192.168.0.0/24") */
498
435
  cidr: string;
499
436
  /** Optional label for the CIDR entry */
500
437
  description?: string;
501
438
  }
502
- export declare const CidrEntry: S.Schema<CidrEntry>;
503
439
  export type IPFilteringConfigurationCidrList = Array<CidrEntry>;
504
- export declare const IPFilteringConfigurationCidrList: S.Schema<IPFilteringConfigurationCidrList>;
505
440
  /** Configuration for IP filtering on project branches */
506
441
  export interface IPFilteringConfiguration {
507
442
  /** Whether IP filtering is enabled */
508
443
  enabled: boolean;
509
444
  cidr: IPFilteringConfigurationCidrList;
510
445
  }
511
- export declare const IPFilteringConfiguration: S.Schema<IPFilteringConfiguration>;
512
446
  /** Configuration details for a project, including its scale to zero settings */
513
447
  export interface ProjectConfiguration {
514
448
  scaleToZero: ProjectScaleToZeroConfiguration;
515
449
  ipFiltering?: IPFilteringConfiguration;
516
450
  }
517
- export declare const ProjectConfiguration: S.Schema<ProjectConfiguration>;
518
451
  export interface CreateProjectRequest {
519
452
  /** Unique identifier of the organization to create the project in */
520
453
  organizationID: string;
@@ -522,7 +455,6 @@ export interface CreateProjectRequest {
522
455
  name: string;
523
456
  configuration?: ProjectConfiguration;
524
457
  }
525
- export declare const CreateProjectRequest: S.Schema<CreateProjectRequest>;
526
458
  /** Details of a project including its ID, name, and creation/update timestamps */
527
459
  export interface Project {
528
460
  /** Unique identifier for the project */
@@ -535,16 +467,12 @@ export interface Project {
535
467
  updatedAt: string;
536
468
  configuration: ProjectConfiguration;
537
469
  }
538
- export declare const Project: S.Schema<Project>;
539
470
  /** Optional scopes assigned to the API key */
540
471
  export type CreateUserAPIKeyRequestScopesList = Array<string>;
541
- export declare const CreateUserAPIKeyRequestScopesList: S.Schema<CreateUserAPIKeyRequestScopesList>;
542
472
  /** Limit access to these projects */
543
473
  export type CreateUserAPIKeyRequestProjectsList = Array<string>;
544
- export declare const CreateUserAPIKeyRequestProjectsList: S.Schema<CreateUserAPIKeyRequestProjectsList>;
545
474
  /** Limit access to these branches */
546
475
  export type CreateUserAPIKeyRequestBranchesList = Array<string>;
547
- export declare const CreateUserAPIKeyRequestBranchesList: S.Schema<CreateUserAPIKeyRequestBranchesList>;
548
476
  export interface CreateUserAPIKeyRequest {
549
477
  name: string;
550
478
  /** Expiration date for the API key, null for no expiry */
@@ -556,11 +484,9 @@ export interface CreateUserAPIKeyRequest {
556
484
  /** Limit access to these branches */
557
485
  branches?: CreateUserAPIKeyRequestBranchesList;
558
486
  }
559
- export declare const CreateUserAPIKeyRequest: S.Schema<CreateUserAPIKeyRequest>;
560
487
  export interface CreateUserAPIKeyResponse {
561
488
  key: FullAPIKey;
562
489
  }
563
- export declare const CreateUserAPIKeyResponse: S.Schema<CreateUserAPIKeyResponse>;
564
490
  export interface DeleteBranchRequest {
565
491
  /** Unique identifier of the organization containing the project */
566
492
  organizationID: string;
@@ -569,10 +495,8 @@ export interface DeleteBranchRequest {
569
495
  /** Unique identifier of the branch to delete */
570
496
  branchID: string;
571
497
  }
572
- export declare const DeleteBranchRequest: S.Schema<DeleteBranchRequest>;
573
498
  export interface DeleteBranchResponse {
574
499
  }
575
- export declare const DeleteBranchResponse: S.Schema<DeleteBranchResponse>;
576
500
  export interface DeleteGithubRepositoryRequest {
577
501
  /** Unique identifier of the organization */
578
502
  organizationID: string;
@@ -581,10 +505,8 @@ export interface DeleteGithubRepositoryRequest {
581
505
  /** Unique identifier of the branch */
582
506
  branchID: string;
583
507
  }
584
- export declare const DeleteGithubRepositoryRequest: S.Schema<DeleteGithubRepositoryRequest>;
585
508
  export interface DeleteGithubRepositoryResponse {
586
509
  }
587
- export declare const DeleteGithubRepositoryResponse: S.Schema<DeleteGithubRepositoryResponse>;
588
510
  export interface DeleteInstallationRequest {
589
511
  /** Vercel installation id (icfg_...). */
590
512
  installationId: string;
@@ -593,92 +515,72 @@ export interface DeleteInstallationRequest {
593
515
  /** The reason for deleting the installation. */
594
516
  reason?: string;
595
517
  }
596
- export declare const DeleteInstallationRequest: S.Schema<DeleteInstallationRequest>;
597
518
  export interface DeleteInstallationResponse {
598
519
  }
599
- export declare const DeleteInstallationResponse: S.Schema<DeleteInstallationResponse>;
600
520
  export interface DeleteOrganizationRequest {
601
521
  /** Unique identifier for a specific organization */
602
522
  organizationID: string;
603
523
  }
604
- export declare const DeleteOrganizationRequest: S.Schema<DeleteOrganizationRequest>;
605
524
  export interface DeleteOrganizationResponse {
606
525
  }
607
- export declare const DeleteOrganizationResponse: S.Schema<DeleteOrganizationResponse>;
608
526
  /** Array of API key IDs to delete */
609
527
  export type DeleteOrganizationAPIKeysRequestIdsList = Array<string>;
610
- export declare const DeleteOrganizationAPIKeysRequestIdsList: S.Schema<DeleteOrganizationAPIKeysRequestIdsList>;
611
528
  export interface DeleteOrganizationAPIKeysRequest {
612
529
  /** Unique identifier for a specific organization */
613
530
  organizationID: string;
614
531
  /** Array of API key IDs to delete */
615
532
  ids: DeleteOrganizationAPIKeysRequestIdsList;
616
533
  }
617
- export declare const DeleteOrganizationAPIKeysRequest: S.Schema<DeleteOrganizationAPIKeysRequest>;
618
534
  export interface DeleteOrganizationAPIKeysResponse {
619
535
  }
620
- export declare const DeleteOrganizationAPIKeysResponse: S.Schema<DeleteOrganizationAPIKeysResponse>;
621
536
  export interface DeleteOrganizationInvitationRequest {
622
537
  /** Unique identifier for a specific organization */
623
538
  organizationID: string;
624
539
  /** Unique identifier for an invitation */
625
540
  invitationID: string;
626
541
  }
627
- export declare const DeleteOrganizationInvitationRequest: S.Schema<DeleteOrganizationInvitationRequest>;
628
542
  export interface DeleteOrganizationInvitationResponse {
629
543
  }
630
- export declare const DeleteOrganizationInvitationResponse: S.Schema<DeleteOrganizationInvitationResponse>;
631
544
  export interface DeleteOrganizationSSODomainRequest {
632
545
  /** Unique identifier for a specific organization */
633
546
  organizationID: string;
634
547
  /** Email domain claimed for SSO */
635
548
  domain: string;
636
549
  }
637
- export declare const DeleteOrganizationSSODomainRequest: S.Schema<DeleteOrganizationSSODomainRequest>;
638
550
  export interface DeleteOrganizationSSODomainResponse {
639
551
  }
640
- export declare const DeleteOrganizationSSODomainResponse: S.Schema<DeleteOrganizationSSODomainResponse>;
641
552
  export interface DeleteOrganizationSSOProviderRequest {
642
553
  /** Unique identifier for a specific organization */
643
554
  organizationID: string;
644
555
  /** Alias identifying one of the organization's SSO identity providers */
645
556
  providerAlias: string;
646
557
  }
647
- export declare const DeleteOrganizationSSOProviderRequest: S.Schema<DeleteOrganizationSSOProviderRequest>;
648
558
  export interface DeleteOrganizationSSOProviderResponse {
649
559
  }
650
- export declare const DeleteOrganizationSSOProviderResponse: S.Schema<DeleteOrganizationSSOProviderResponse>;
651
560
  export interface DeleteProjectRequest {
652
561
  /** Unique identifier of the organization containing the project */
653
562
  organizationID: string;
654
563
  /** Unique identifier of the project to delete */
655
564
  projectID: string;
656
565
  }
657
- export declare const DeleteProjectRequest: S.Schema<DeleteProjectRequest>;
658
566
  export interface DeleteProjectResponse {
659
567
  }
660
- export declare const DeleteProjectResponse: S.Schema<DeleteProjectResponse>;
661
568
  export interface DeleteResourceRequest {
662
569
  /** Vercel installation id (icfg_...). */
663
570
  installationId: string;
664
571
  /** Vercel resource id. */
665
572
  resourceId: string;
666
573
  }
667
- export declare const DeleteResourceRequest: S.Schema<DeleteResourceRequest>;
668
574
  export interface DeleteResourceResponse {
669
575
  }
670
- export declare const DeleteResourceResponse: S.Schema<DeleteResourceResponse>;
671
576
  /** Array of API key IDs to delete (maximum 50 keys per request) */
672
577
  export type DeleteUserAPIKeysRequestIdsList = Array<string>;
673
- export declare const DeleteUserAPIKeysRequestIdsList: S.Schema<DeleteUserAPIKeysRequestIdsList>;
674
578
  export interface DeleteUserAPIKeysRequest {
675
579
  /** Array of API key IDs to delete (maximum 50 keys per request) */
676
580
  ids: DeleteUserAPIKeysRequestIdsList;
677
581
  }
678
- export declare const DeleteUserAPIKeysRequest: S.Schema<DeleteUserAPIKeysRequest>;
679
582
  export interface DeleteUserAPIKeysResponse {
680
583
  }
681
- export declare const DeleteUserAPIKeysResponse: S.Schema<DeleteUserAPIKeysResponse>;
682
584
  export interface DescribeBranchRequest {
683
585
  /** Unique identifier of the organization containing the project */
684
586
  organizationID: string;
@@ -687,13 +589,10 @@ export interface DescribeBranchRequest {
687
589
  /** Unique identifier of the branch to retrieve details for */
688
590
  branchID: string;
689
591
  }
690
- export declare const DescribeBranchRequest: S.Schema<DescribeBranchRequest>;
691
592
  /** Type of status of the branch */
692
593
  export type BranchStatusStatusType = "STATUS_TYPE_UNSPECIFIED" | "STATUS_TYPE_HEALTHY" | "STATUS_TYPE_TRANSIENT" | "STATUS_TYPE_FAULT" | "STATUS_TYPE_HIBERNATED";
693
- export declare const BranchStatusStatusType: any;
694
594
  /** Current operational state of the cluster (ready, creating, updating, etc.) */
695
595
  export type ClusterLifecycleState = "ready" | "creating" | "updating" | "upgrading" | "unknown";
696
- export declare const ClusterLifecycleState: any;
697
596
  /** Information about the current lifecycle state of a database cluster */
698
597
  export interface ClusterLifecycle {
699
598
  /** Current operational state of the cluster (ready, creating, updating, etc.) */
@@ -703,7 +602,6 @@ export interface ClusterLifecycle {
703
602
  /** Current phase within the lifecycle process */
704
603
  phase: string;
705
604
  }
706
- export declare const ClusterLifecycle: S.Schema<ClusterLifecycle>;
707
605
  /** Status information about an individual database instance within a cluster */
708
606
  export interface InstanceStatus {
709
607
  /** Unique identifier for the database instance */
@@ -715,10 +613,8 @@ export interface InstanceStatus {
715
613
  /** Indicates if this instance is the target primary during a failover operation */
716
614
  targetPrimary: boolean;
717
615
  }
718
- export declare const InstanceStatus: S.Schema<InstanceStatus>;
719
616
  /** Details about each individual database instance in the cluster */
720
617
  export type BranchStatusInstancesList = Array<InstanceStatus>;
721
- export declare const BranchStatusInstancesList: S.Schema<BranchStatusInstancesList>;
722
618
  /** Detailed status information about a branch and its underlying database cluster */
723
619
  export interface BranchStatus {
724
620
  /** Status indicator for the branch according to CNPG */
@@ -735,15 +631,12 @@ export interface BranchStatus {
735
631
  /** Details about each individual database instance in the cluster */
736
632
  instances: BranchStatusInstancesList;
737
633
  }
738
- export declare const BranchStatus: S.Schema<BranchStatus>;
739
634
  /** Arbitrary PostgreSQL configuration parameters for the cluster */
740
635
  export type ClusterConfigurationPostgresConfigurationParametersMap = {
741
636
  [key: string]: string | undefined;
742
637
  };
743
- export declare const ClusterConfigurationPostgresConfigurationParametersMap: S.Schema<ClusterConfigurationPostgresConfigurationParametersMap>;
744
638
  /** List of PostgreSQL extensions and libraries to preload */
745
639
  export type ClusterConfigurationPreloadLibrariesList = Array<string>;
746
- export declare const ClusterConfigurationPreloadLibrariesList: S.Schema<ClusterConfigurationPreloadLibrariesList>;
747
640
  /** Configuration details for a database cluster backing a branch */
748
641
  export interface ClusterConfiguration {
749
642
  /** Geographic region where the cluster will be deployed */
@@ -761,7 +654,6 @@ export interface ClusterConfiguration {
761
654
  /** List of PostgreSQL extensions and libraries to preload */
762
655
  preloadLibraries?: ClusterConfigurationPreloadLibrariesList;
763
656
  }
764
- export declare const ClusterConfiguration: S.Schema<ClusterConfiguration>;
765
657
  /** Detailed metadata about a branch, including its status and configuration */
766
658
  export interface BranchMetadata {
767
659
  /** Unique identifier for the branch */
@@ -789,7 +681,6 @@ export interface BranchMetadata {
789
681
  configuration: ClusterConfiguration;
790
682
  backupConfiguration?: BackupConfiguration;
791
683
  }
792
- export declare const BranchMetadata: S.Schema<BranchMetadata>;
793
684
  export interface GetBackupRequest {
794
685
  /** Unique identifier of the organization containing the project */
795
686
  organizationID: string;
@@ -798,7 +689,6 @@ export interface GetBackupRequest {
798
689
  /** Unique identifier of the backup for the project */
799
690
  backupID: string;
800
691
  }
801
- export declare const GetBackupRequest: S.Schema<GetBackupRequest>;
802
692
  /** metadata about a continuous backup */
803
693
  export interface BackupMetadata {
804
694
  /** unique identifier for the backup */
@@ -812,28 +702,22 @@ export interface BackupMetadata {
812
702
  /** description of the backup */
813
703
  description: string;
814
704
  }
815
- export declare const BackupMetadata: S.Schema<BackupMetadata>;
816
705
  export interface GetBillingCustomerRequest {
817
706
  /** Unique identifier for a specific organization */
818
707
  organizationID: string;
819
708
  }
820
- export declare const GetBillingCustomerRequest: S.Schema<GetBillingCustomerRequest>;
821
709
  /** How billing payment is collected for the organization. */
822
710
  export type BillingCollectionMethod = "unknown" | "stripe_payment_method" | "marketplace" | "bank_transfer";
823
- export declare const BillingCollectionMethod: any;
824
711
  export interface BillingPaymentMethodCard {
825
712
  brand: string;
826
713
  last4: string;
827
714
  expiry_month: number;
828
715
  expiry_year: number;
829
716
  }
830
- export declare const BillingPaymentMethodCard: S.Schema<BillingPaymentMethodCard>;
831
717
  export interface BillingPaymentMethod {
832
718
  card: BillingPaymentMethodCard;
833
719
  }
834
- export declare const BillingPaymentMethod: S.Schema<BillingPaymentMethod>;
835
720
  export type BillingCreditStatus = "active" | "pending_payment";
836
- export declare const BillingCreditStatus: any;
837
721
  export interface BillingCredit {
838
722
  id: string;
839
723
  /** Remaining credit balance. */
@@ -846,12 +730,9 @@ export interface BillingCredit {
846
730
  maximum_initial_balance: number;
847
731
  status: BillingCreditStatus;
848
732
  }
849
- export declare const BillingCredit: S.Schema<BillingCredit>;
850
733
  export type BillingCustomerResponseCreditsList = Array<BillingCredit>;
851
- export declare const BillingCustomerResponseCreditsList: S.Schema<BillingCustomerResponseCreditsList>;
852
734
  /** Credits with active status, a reached effective date, positive balance, and no past expiry. */
853
735
  export type BillingCreditDetailsActiveCreditsList = Array<BillingCredit>;
854
- export declare const BillingCreditDetailsActiveCreditsList: S.Schema<BillingCreditDetailsActiveCreditsList>;
855
736
  export interface BillingCreditDetails {
856
737
  total_lifetime_credits: number;
857
738
  last_expiry: string | null;
@@ -865,7 +746,6 @@ export interface BillingCreditDetails {
865
746
  /** Days until the last positive-balance credit expiry, or null when there is no future positive-balance credit expiry. */
866
747
  days_until_last_expiry_with_balance: number | null;
867
748
  }
868
- export declare const BillingCreditDetails: S.Schema<BillingCreditDetails>;
869
749
  export interface BillingCustomerResponse {
870
750
  billing_email: string;
871
751
  /** Marketplace provider for this organization (e.g. "aws"), if billed through a marketplace */
@@ -880,7 +760,6 @@ export interface BillingCustomerResponse {
880
760
  credits: BillingCustomerResponseCreditsList;
881
761
  credit_details: BillingCreditDetails;
882
762
  }
883
- export declare const BillingCustomerResponse: S.Schema<BillingCustomerResponse>;
884
763
  export interface GetBillingInvoicesRequest {
885
764
  /** Unique identifier for a specific organization */
886
765
  organizationID: string;
@@ -889,9 +768,7 @@ export interface GetBillingInvoicesRequest {
889
768
  /** Number of invoices to fetch */
890
769
  limit?: number;
891
770
  }
892
- export declare const GetBillingInvoicesRequest: S.Schema<GetBillingInvoicesRequest>;
893
771
  export type BillingInvoiceStatus = "draft" | "issued" | "paid" | "void" | "synced";
894
- export declare const BillingInvoiceStatus: any;
895
772
  export interface BillingInvoice {
896
773
  id: string;
897
774
  invoice_number: string;
@@ -902,24 +779,19 @@ export interface BillingInvoice {
902
779
  status: BillingInvoiceStatus;
903
780
  invoice_pdf: string | null;
904
781
  }
905
- export declare const BillingInvoice: S.Schema<BillingInvoice>;
906
782
  export type BillingInvoicesResponseDataList = Array<BillingInvoice>;
907
- export declare const BillingInvoicesResponseDataList: S.Schema<BillingInvoicesResponseDataList>;
908
783
  export interface PaginationMetadata {
909
784
  has_more: boolean;
910
785
  next_cursor: string | null;
911
786
  }
912
- export declare const PaginationMetadata: S.Schema<PaginationMetadata>;
913
787
  export interface BillingInvoicesResponse {
914
788
  data: BillingInvoicesResponseDataList;
915
789
  pagination_metadata: PaginationMetadata;
916
790
  }
917
- export declare const BillingInvoicesResponse: S.Schema<BillingInvoicesResponse>;
918
791
  export interface GetBillingUpcomingInvoiceRequest {
919
792
  /** Unique identifier for a specific organization */
920
793
  organizationID: string;
921
794
  }
922
- export declare const GetBillingUpcomingInvoiceRequest: S.Schema<GetBillingUpcomingInvoiceRequest>;
923
795
  export interface BillingUpcomingInvoiceResponse {
924
796
  created_at: string;
925
797
  /** Decimal amount due. */
@@ -932,7 +804,6 @@ export interface BillingUpcomingInvoiceResponse {
932
804
  total: number;
933
805
  hosted_invoice_url: string | null;
934
806
  }
935
- export declare const BillingUpcomingInvoiceResponse: S.Schema<BillingUpcomingInvoiceResponse>;
936
807
  export interface GetBranchCredentialsRequest {
937
808
  organizationID: string;
938
809
  projectID: string;
@@ -940,7 +811,6 @@ export interface GetBranchCredentialsRequest {
940
811
  /** Username that the credentials requested for, defaults to `xata` */
941
812
  username?: string;
942
813
  }
943
- export declare const GetBranchCredentialsRequest: S.Schema<GetBranchCredentialsRequest>;
944
814
  /** Credentials and connection details for accessing a branch */
945
815
  export interface BranchCredentials {
946
816
  /** Username for accessing the branch database */
@@ -956,7 +826,6 @@ export interface BranchCredentials {
956
826
  /** Database connection string for accessing this branch. It carries no sslmode parameter, clients choose their own TLS settings. */
957
827
  connectionString: string | Redacted.Redacted<string>;
958
828
  }
959
- export declare const BranchCredentials: S.Schema<BranchCredentials>;
960
829
  export interface GetBranchPostgresConfigRequest {
961
830
  /** Unique identifier of the organization containing the project */
962
831
  organizationID: string;
@@ -965,13 +834,10 @@ export interface GetBranchPostgresConfigRequest {
965
834
  /** Unique identifier of the branch to retrieve PostgreSQL configuration for */
966
835
  branchID: string;
967
836
  }
968
- export declare const GetBranchPostgresConfigRequest: S.Schema<GetBranchPostgresConfigRequest>;
969
837
  /** The data type of the parameter */
970
838
  export type PostgresConfigParameterType = "string" | "int" | "float" | "bytes" | "enum" | "duration" | "boolean";
971
- export declare const PostgresConfigParameterType: any;
972
839
  /** List of allowed enum values (if applicable) */
973
840
  export type PostgresConfigParameterAcceptableRangeEnumValuesList = Array<string>;
974
- export declare const PostgresConfigParameterAcceptableRangeEnumValuesList: S.Schema<PostgresConfigParameterAcceptableRangeEnumValuesList>;
975
841
  /** Information about the acceptable range of values for this parameter */
976
842
  export interface PostgresConfigParameterAcceptableRange {
977
843
  /** Minimum allowed value (if applicable) */
@@ -981,10 +847,8 @@ export interface PostgresConfigParameterAcceptableRange {
981
847
  /** List of allowed enum values (if applicable) */
982
848
  enumValues?: PostgresConfigParameterAcceptableRangeEnumValuesList;
983
849
  }
984
- export declare const PostgresConfigParameterAcceptableRange: S.Schema<PostgresConfigParameterAcceptableRange>;
985
850
  /** The source of the default value */
986
851
  export type PostgresConfigParameterDefaultValueSource = "postgres" | "instance_type";
987
- export declare const PostgresConfigParameterDefaultValueSource: any;
988
852
  /** Detailed information about a single PostgreSQL configuration parameter */
989
853
  export interface PostgresConfigParameter {
990
854
  /** The name of the PostgreSQL parameter */
@@ -1010,16 +874,13 @@ export interface PostgresConfigParameter {
1010
874
  /** Whether a database restart is required for this parameter change to take effect */
1011
875
  restartRequired?: boolean;
1012
876
  }
1013
- export declare const PostgresConfigParameter: S.Schema<PostgresConfigParameter>;
1014
877
  /** Array of PostgreSQL configuration parameters with detailed information */
1015
878
  export type PostgresConfigDetailsParametersList = Array<PostgresConfigParameter>;
1016
- export declare const PostgresConfigDetailsParametersList: S.Schema<PostgresConfigDetailsParametersList>;
1017
879
  /** Detailed information about PostgreSQL configuration parameters for a branch */
1018
880
  export interface PostgresConfigDetails {
1019
881
  /** Array of PostgreSQL configuration parameters with detailed information */
1020
882
  parameters: PostgresConfigDetailsParametersList;
1021
883
  }
1022
- export declare const PostgresConfigDetails: S.Schema<PostgresConfigDetails>;
1023
884
  export interface GetGithubRepositoryRequest {
1024
885
  /** Unique identifier of the organization */
1025
886
  organizationID: string;
@@ -1028,27 +889,22 @@ export interface GetGithubRepositoryRequest {
1028
889
  /** Unique identifier of the branch */
1029
890
  branchID: string;
1030
891
  }
1031
- export declare const GetGithubRepositoryRequest: S.Schema<GetGithubRepositoryRequest>;
1032
892
  export interface GetGithubRepositoryResponse {
1033
893
  /** Repository mapping details, null if no mapping exists */
1034
894
  mapping: GithubRepository | null;
1035
895
  }
1036
- export declare const GetGithubRepositoryResponse: S.Schema<GetGithubRepositoryResponse>;
1037
896
  export interface GetOrganizationRequest {
1038
897
  /** Unique identifier for a specific organization */
1039
898
  organizationID: string;
1040
899
  }
1041
- export declare const GetOrganizationRequest: S.Schema<GetOrganizationRequest>;
1042
900
  export interface GetOrganizationInvitationRequest {
1043
901
  /** Unique identifier for a specific organization */
1044
902
  organizationID: string;
1045
903
  /** Unique identifier for an invitation */
1046
904
  invitationID: string;
1047
905
  }
1048
- export declare const GetOrganizationInvitationRequest: S.Schema<GetOrganizationInvitationRequest>;
1049
906
  /** Current status of the invitation */
1050
907
  export type OrganizationInvitationStatus = "pending" | "expired";
1051
- export declare const OrganizationInvitationStatus: any;
1052
908
  export interface OrganizationInvitation {
1053
909
  /** Unique identifier for the invitation */
1054
910
  id: string;
@@ -1069,12 +925,10 @@ export interface OrganizationInvitation {
1069
925
  /** Role the user holds once they accept the invitation */
1070
926
  role: OrganizationRoleName;
1071
927
  }
1072
- export declare const OrganizationInvitation: S.Schema<OrganizationInvitation>;
1073
928
  export interface GetOrganizationLimitsRequest {
1074
929
  /** Unique identifier of the organization */
1075
930
  organizationID: string;
1076
931
  }
1077
- export declare const GetOrganizationLimitsRequest: S.Schema<GetOrganizationLimitsRequest>;
1078
932
  export interface GetOrganizationLimitsResponse {
1079
933
  /** Maximum character length allowed for branch descriptions */
1080
934
  maxDescriptionLength: number;
@@ -1097,12 +951,10 @@ export interface GetOrganizationLimitsResponse {
1097
951
  /** Maximum number of active branches allowed across all projects in the organization */
1098
952
  maxBranchesPerOrg: number;
1099
953
  }
1100
- export declare const GetOrganizationLimitsResponse: S.Schema<GetOrganizationLimitsResponse>;
1101
954
  export interface GetOrganizationMembershipLimitsRequest {
1102
955
  /** Unique identifier for a specific organization */
1103
956
  organizationID: string;
1104
957
  }
1105
- export declare const GetOrganizationMembershipLimitsRequest: S.Schema<GetOrganizationMembershipLimitsRequest>;
1106
958
  /** Membership limits for an organization */
1107
959
  export interface OrganizationMembershipLimits {
1108
960
  /** Maximum number of members allowed in the organization */
@@ -1110,10 +962,8 @@ export interface OrganizationMembershipLimits {
1110
962
  /** Maximum number of pending invitations allowed at once */
1111
963
  maxInvites: number;
1112
964
  }
1113
- export declare const OrganizationMembershipLimits: S.Schema<OrganizationMembershipLimits>;
1114
965
  export interface GetOrganizationsListRequest {
1115
966
  }
1116
- export declare const GetOrganizationsListRequest: S.Schema<GetOrganizationsListRequest>;
1117
967
  export interface GetOrganizationsListResponseOrganizationsItem {
1118
968
  /** Unique identifier for the organization */
1119
969
  id: string;
@@ -1122,26 +972,20 @@ export interface GetOrganizationsListResponseOrganizationsItem {
1122
972
  /** Current status of the organization */
1123
973
  status: OrganizationStatus;
1124
974
  }
1125
- export declare const GetOrganizationsListResponseOrganizationsItem: S.Schema<GetOrganizationsListResponseOrganizationsItem>;
1126
975
  /** List of organizations the user has access to */
1127
976
  export type GetOrganizationsListResponseOrganizationsList = Array<GetOrganizationsListResponseOrganizationsItem>;
1128
- export declare const GetOrganizationsListResponseOrganizationsList: S.Schema<GetOrganizationsListResponseOrganizationsList>;
1129
977
  export interface GetOrganizationsListResponse {
1130
978
  /** List of organizations the user has access to */
1131
979
  organizations: GetOrganizationsListResponseOrganizationsList;
1132
980
  }
1133
- export declare const GetOrganizationsListResponse: S.Schema<GetOrganizationsListResponse>;
1134
981
  export interface GetOrganizationSSORequest {
1135
982
  /** Unique identifier for a specific organization */
1136
983
  organizationID: string;
1137
984
  }
1138
- export declare const GetOrganizationSSORequest: S.Schema<GetOrganizationSSORequest>;
1139
985
  /** Identity providers registered for this organization, at most one per verified domain. */
1140
986
  export type OrganizationSSOProvidersList = Array<OrganizationSSOProvider>;
1141
- export declare const OrganizationSSOProvidersList: S.Schema<OrganizationSSOProvidersList>;
1142
987
  /** Email domains claimed for this organization, verified and pending. */
1143
988
  export type OrganizationSSODomainsList = Array<OrganizationSSODomain>;
1144
- export declare const OrganizationSSODomainsList: S.Schema<OrganizationSSODomainsList>;
1145
989
  /** An organization's single sign-on setup, as one identity provider per verified email domain. */
1146
990
  export interface OrganizationSSO {
1147
991
  /** Identity providers registered for this organization, at most one per verified domain. */
@@ -1149,21 +993,18 @@ export interface OrganizationSSO {
1149
993
  /** Email domains claimed for this organization, verified and pending. */
1150
994
  domains: OrganizationSSODomainsList;
1151
995
  }
1152
- export declare const OrganizationSSO: S.Schema<OrganizationSSO>;
1153
996
  export interface GetProjectRequest {
1154
997
  /** Unique identifier of the organization containing the project */
1155
998
  organizationID: string;
1156
999
  /** Unique identifier of the project to retrieve */
1157
1000
  projectID: string;
1158
1001
  }
1159
- export declare const GetProjectRequest: S.Schema<GetProjectRequest>;
1160
1002
  export interface GetProjectLimitsRequest {
1161
1003
  /** Unique identifier of the organization */
1162
1004
  organizationID: string;
1163
1005
  /** Unique identifier of the project to get limits for */
1164
1006
  projectID: string;
1165
1007
  }
1166
- export declare const GetProjectLimitsRequest: S.Schema<GetProjectLimitsRequest>;
1167
1008
  /** Full set of resource limits applicable to a project and its branches */
1168
1009
  export interface EffectiveProjectLimits {
1169
1010
  /** Maximum character length allowed for branch descriptions */
@@ -1181,19 +1022,16 @@ export interface EffectiveProjectLimits {
1181
1022
  /** Maximum storage in GiB (gigabytes) allowed per branch; 0 means no limit */
1182
1023
  maxStorageGBPerBranch: number;
1183
1024
  }
1184
- export declare const EffectiveProjectLimits: S.Schema<EffectiveProjectLimits>;
1185
1025
  export interface GetResourceRequest {
1186
1026
  /** Vercel installation id (icfg_...). */
1187
1027
  installationId: string;
1188
1028
  /** Vercel resource id. */
1189
1029
  resourceId: string;
1190
1030
  }
1191
- export declare const GetResourceRequest: S.Schema<GetResourceRequest>;
1192
1031
  /** User-inputted metadata based on the registered metadata schema. */
1193
1032
  export type ResourceMetadataMap = {
1194
1033
  [key: string]: unknown | undefined;
1195
1034
  };
1196
- export declare const ResourceMetadataMap: S.Schema<ResourceMetadataMap>;
1197
1035
  /** A provisioned Vercel Marketplace resource. Matches Vercel's Partner API "Get Resource" response. Secrets/connection info are returned by Provision Resource, not here. The optional billingPlan, protocolSettings, and notification fields are not yet populated. */
1198
1036
  export interface Resource {
1199
1037
  /** The partner-specific resource id. */
@@ -1207,57 +1045,44 @@ export interface Resource {
1207
1045
  /** Resource lifecycle status. One of Vercel's values: ready, pending, onboarding, suspended, resumed, uninstalled, error. */
1208
1046
  status: string;
1209
1047
  }
1210
- export declare const Resource: S.Schema<Resource>;
1211
1048
  /** GitHub webhook event payload */
1212
1049
  export type GithubWebhookRequestBodyMap = {
1213
1050
  [key: string]: unknown | undefined;
1214
1051
  };
1215
- export declare const GithubWebhookRequestBodyMap: S.Schema<GithubWebhookRequestBodyMap>;
1216
1052
  export interface GithubWebhookRequest {
1217
1053
  body: GithubWebhookRequestBodyMap;
1218
1054
  }
1219
- export declare const GithubWebhookRequest: S.Schema<GithubWebhookRequest>;
1220
1055
  export interface GithubWebhookResponse {
1221
1056
  }
1222
- export declare const GithubWebhookResponse: S.Schema<GithubWebhookResponse>;
1223
1057
  export interface ListBackupsRequest {
1224
1058
  /** Unique identifier of the organization containing the project */
1225
1059
  organizationID: string;
1226
1060
  /** Unique identifier of the project to retrieve backups for */
1227
1061
  projectID: string;
1228
1062
  }
1229
- export declare const ListBackupsRequest: S.Schema<ListBackupsRequest>;
1230
1063
  /** list of backups within the project */
1231
1064
  export type ListBackupsResponseBackupsList = Array<BackupMetadata>;
1232
- export declare const ListBackupsResponseBackupsList: S.Schema<ListBackupsResponseBackupsList>;
1233
1065
  export interface ListBackupsResponse {
1234
1066
  /** list of backups within the project */
1235
1067
  backups: ListBackupsResponseBackupsList;
1236
1068
  }
1237
- export declare const ListBackupsResponse: S.Schema<ListBackupsResponse>;
1238
1069
  export interface ListBillingPlansForProductRequest {
1239
1070
  /** Vercel product slug (e.g. xata-postgres). */
1240
1071
  productSlug: string;
1241
1072
  /** Opaque metadata forwarded by Vercel. */
1242
1073
  metadata?: string;
1243
1074
  }
1244
- export declare const ListBillingPlansForProductRequest: S.Schema<ListBillingPlansForProductRequest>;
1245
1075
  export interface PlanDetail {
1246
1076
  label: string;
1247
1077
  value?: string;
1248
1078
  }
1249
- export declare const PlanDetail: S.Schema<PlanDetail>;
1250
1079
  export type BillingPlanDetailsList = Array<PlanDetail>;
1251
- export declare const BillingPlanDetailsList: S.Schema<BillingPlanDetailsList>;
1252
1080
  export type BillingPlanHighlightedDetailsList = Array<PlanDetail>;
1253
- export declare const BillingPlanHighlightedDetailsList: S.Schema<BillingPlanHighlightedDetailsList>;
1254
1081
  export interface PlanQuoteLine {
1255
1082
  line: string;
1256
1083
  amount: string;
1257
1084
  }
1258
- export declare const PlanQuoteLine: S.Schema<PlanQuoteLine>;
1259
1085
  export type BillingPlanQuoteList = Array<PlanQuoteLine>;
1260
- export declare const BillingPlanQuoteList: S.Schema<BillingPlanQuoteList>;
1261
1086
  /** A Vercel Marketplace billing plan. Billing SKU only; it does not change Xata entitlements. */
1262
1087
  export interface BillingPlan {
1263
1088
  /** Partner-provided billing plan id. */
@@ -1282,21 +1107,17 @@ export interface BillingPlan {
1282
1107
  effectiveDate?: string;
1283
1108
  disabled?: boolean;
1284
1109
  }
1285
- export declare const BillingPlan: S.Schema<BillingPlan>;
1286
1110
  export type ListBillingPlansResponsePlansList = Array<BillingPlan>;
1287
- export declare const ListBillingPlansResponsePlansList: S.Schema<ListBillingPlansResponsePlansList>;
1288
1111
  /** The billing plans available for a product. */
1289
1112
  export interface ListBillingPlansResponse {
1290
1113
  plans: ListBillingPlansResponsePlansList;
1291
1114
  }
1292
- export declare const ListBillingPlansResponse: S.Schema<ListBillingPlansResponse>;
1293
1115
  export interface ListBranchesRequest {
1294
1116
  /** Unique identifier of the organization containing the project */
1295
1117
  organizationID: string;
1296
1118
  /** Unique identifier of the project to list branches from */
1297
1119
  projectID: string;
1298
1120
  }
1299
- export declare const ListBranchesRequest: S.Schema<ListBranchesRequest>;
1300
1121
  /** Metadata about a branch used when listing branches in a project */
1301
1122
  export interface BranchListMetadata {
1302
1123
  /** Unique identifier for the branch */
@@ -1318,15 +1139,12 @@ export interface BranchListMetadata {
1318
1139
  /** Whether the branch is in a region that supports backups */
1319
1140
  backupsEnabled: boolean;
1320
1141
  }
1321
- export declare const BranchListMetadata: S.Schema<BranchListMetadata>;
1322
1142
  /** Array of branch objects with their metadata */
1323
1143
  export type ListBranchesResponseBranchesList = Array<BranchListMetadata>;
1324
- export declare const ListBranchesResponseBranchesList: S.Schema<ListBranchesResponseBranchesList>;
1325
1144
  export interface ListBranchesResponse {
1326
1145
  /** Array of branch objects with their metadata */
1327
1146
  branches: ListBranchesResponseBranchesList;
1328
1147
  }
1329
- export declare const ListBranchesResponse: S.Schema<ListBranchesResponse>;
1330
1148
  export interface ListExtensionsRequest {
1331
1149
  /** Unique identifier of the organization to check instance type availability for */
1332
1150
  organizationID: string;
@@ -1335,10 +1153,8 @@ export interface ListExtensionsRequest {
1335
1153
  /** Region to list extensions for image in */
1336
1154
  region?: string;
1337
1155
  }
1338
- export declare const ListExtensionsRequest: S.Schema<ListExtensionsRequest>;
1339
1156
  /** type of installation */
1340
1157
  export type ExtensionType = "extension" | "plugin" | "module";
1341
- export declare const ExtensionType: any;
1342
1158
  /** Details of a postgres extension */
1343
1159
  export interface Extension {
1344
1160
  /** Extension name */
@@ -1354,38 +1170,30 @@ export interface Extension {
1354
1170
  /** type of installation */
1355
1171
  type: ExtensionType;
1356
1172
  }
1357
- export declare const Extension: S.Schema<Extension>;
1358
1173
  /** Array of available images with their properties */
1359
1174
  export type ListExtensionsResponseExtensionsList = Array<Extension>;
1360
- export declare const ListExtensionsResponseExtensionsList: S.Schema<ListExtensionsResponseExtensionsList>;
1361
1175
  export interface ListExtensionsResponse {
1362
1176
  /** Array of available images with their properties */
1363
1177
  extensions: ListExtensionsResponseExtensionsList;
1364
1178
  }
1365
- export declare const ListExtensionsResponse: S.Schema<ListExtensionsResponse>;
1366
1179
  export interface ListGithubAppInstallationsRequest {
1367
1180
  /** Unique identifier of the organization */
1368
1181
  organizationID: string;
1369
1182
  }
1370
- export declare const ListGithubAppInstallationsRequest: S.Schema<ListGithubAppInstallationsRequest>;
1371
1183
  /** Array of GitHub App installations */
1372
1184
  export type ListGithubAppInstallationsResponseInstallationsList = Array<GithubInstallation>;
1373
- export declare const ListGithubAppInstallationsResponseInstallationsList: S.Schema<ListGithubAppInstallationsResponseInstallationsList>;
1374
1185
  export interface ListGithubAppInstallationsResponse {
1375
1186
  /** Array of GitHub App installations */
1376
1187
  installations: ListGithubAppInstallationsResponseInstallationsList;
1377
1188
  }
1378
- export declare const ListGithubAppInstallationsResponse: S.Schema<ListGithubAppInstallationsResponse>;
1379
1189
  export interface ListImagesRequest {
1380
1190
  /** Unique identifier of the organization to check image availability */
1381
1191
  organizationID: string;
1382
1192
  /** Region to check image availability for organization */
1383
1193
  region?: string;
1384
1194
  }
1385
- export declare const ListImagesRequest: S.Schema<ListImagesRequest>;
1386
1195
  /** region where this instance type is available */
1387
1196
  export type ImageRegionList = Array<string>;
1388
- export declare const ImageRegionList: S.Schema<ImageRegionList>;
1389
1197
  /** Details of a postgres image */
1390
1198
  export interface Image {
1391
1199
  /** Image name */
@@ -1397,22 +1205,18 @@ export interface Image {
1397
1205
  /** region where this instance type is available */
1398
1206
  region?: ImageRegionList;
1399
1207
  }
1400
- export declare const Image: S.Schema<Image>;
1401
1208
  /** Array of available images with their properties */
1402
1209
  export type ListImagesResponseImagesList = Array<Image>;
1403
- export declare const ListImagesResponseImagesList: S.Schema<ListImagesResponseImagesList>;
1404
1210
  export interface ListImagesResponse {
1405
1211
  /** Array of available images with their properties */
1406
1212
  images: ListImagesResponseImagesList;
1407
1213
  }
1408
- export declare const ListImagesResponse: S.Schema<ListImagesResponse>;
1409
1214
  export interface ListInstanceTypesRequest {
1410
1215
  /** Unique identifier of the organization to check instance type availability for */
1411
1216
  organizationID: string;
1412
1217
  /** Region to check instance type availability for */
1413
1218
  region: string;
1414
1219
  }
1415
- export declare const ListInstanceTypesRequest: S.Schema<ListInstanceTypesRequest>;
1416
1220
  export interface ListInstanceTypesResponseInstanceTypesItem {
1417
1221
  /** Instance type name */
1418
1222
  name: string;
@@ -1427,28 +1231,21 @@ export interface ListInstanceTypesResponseInstanceTypesItem {
1427
1231
  /** region where this instance type is available */
1428
1232
  region: string;
1429
1233
  }
1430
- export declare const ListInstanceTypesResponseInstanceTypesItem: S.Schema<ListInstanceTypesResponseInstanceTypesItem>;
1431
1234
  /** Array of available instance types with their properties */
1432
1235
  export type ListInstanceTypesResponseInstanceTypesList = Array<ListInstanceTypesResponseInstanceTypesItem>;
1433
- export declare const ListInstanceTypesResponseInstanceTypesList: S.Schema<ListInstanceTypesResponseInstanceTypesList>;
1434
1236
  export interface ListInstanceTypesResponse {
1435
1237
  /** Array of available instance types with their properties */
1436
1238
  instanceTypes: ListInstanceTypesResponseInstanceTypesList;
1437
1239
  }
1438
- export declare const ListInstanceTypesResponse: S.Schema<ListInstanceTypesResponse>;
1439
1240
  export interface ListOrganizationAPIKeysRequest {
1440
1241
  /** Unique identifier for a specific organization */
1441
1242
  organizationID: string;
1442
1243
  }
1443
- export declare const ListOrganizationAPIKeysRequest: S.Schema<ListOrganizationAPIKeysRequest>;
1444
1244
  export type APIKeyPreviewScopesList = Array<string>;
1445
- export declare const APIKeyPreviewScopesList: S.Schema<APIKeyPreviewScopesList>;
1446
1245
  /** Projects this API key has access to */
1447
1246
  export type APIKeyPreviewProjectsList = Array<string>;
1448
- export declare const APIKeyPreviewProjectsList: S.Schema<APIKeyPreviewProjectsList>;
1449
1247
  /** Branches this API key has access to */
1450
1248
  export type APIKeyPreviewBranchesList = Array<string>;
1451
- export declare const APIKeyPreviewBranchesList: S.Schema<APIKeyPreviewBranchesList>;
1452
1249
  export interface APIKeyPreview {
1453
1250
  id: string;
1454
1251
  name: string;
@@ -1468,17 +1265,13 @@ export interface APIKeyPreview {
1468
1265
  /** ID of the API key that created this API key */
1469
1266
  created_by_key?: string | null;
1470
1267
  }
1471
- export declare const APIKeyPreview: S.Schema<APIKeyPreview>;
1472
1268
  /** Array of API keys for the organization */
1473
1269
  export type ListOrganizationAPIKeysResponseKeysList = Array<APIKeyPreview>;
1474
- export declare const ListOrganizationAPIKeysResponseKeysList: S.Schema<ListOrganizationAPIKeysResponseKeysList>;
1475
1270
  export interface ListOrganizationAPIKeysResponse {
1476
1271
  /** Array of API keys for the organization */
1477
1272
  keys: ListOrganizationAPIKeysResponseKeysList;
1478
1273
  }
1479
- export declare const ListOrganizationAPIKeysResponse: S.Schema<ListOrganizationAPIKeysResponse>;
1480
1274
  export type ListOrganizationInvitationsRequestStatus = "pending" | "expired";
1481
- export declare const ListOrganizationInvitationsRequestStatus: any;
1482
1275
  export interface ListOrganizationInvitationsRequest {
1483
1276
  /** Unique identifier for a specific organization */
1484
1277
  organizationID: string;
@@ -1497,18 +1290,14 @@ export interface ListOrganizationInvitationsRequest {
1497
1290
  /** Maximum number of results to return */
1498
1291
  max?: number;
1499
1292
  }
1500
- export declare const ListOrganizationInvitationsRequest: S.Schema<ListOrganizationInvitationsRequest>;
1501
1293
  export type ListOrganizationInvitationsResponseInvitationsList = Array<OrganizationInvitation>;
1502
- export declare const ListOrganizationInvitationsResponseInvitationsList: S.Schema<ListOrganizationInvitationsResponseInvitationsList>;
1503
1294
  export interface ListOrganizationInvitationsResponse {
1504
1295
  invitations: ListOrganizationInvitationsResponseInvitationsList;
1505
1296
  }
1506
- export declare const ListOrganizationInvitationsResponse: S.Schema<ListOrganizationInvitationsResponse>;
1507
1297
  export interface ListOrganizationMembersRequest {
1508
1298
  /** Unique identifier for a specific organization */
1509
1299
  organizationID: string;
1510
1300
  }
1511
- export declare const ListOrganizationMembersRequest: S.Schema<ListOrganizationMembersRequest>;
1512
1301
  /** A member of an organization and the role they hold in it */
1513
1302
  export interface OrganizationMember {
1514
1303
  /** Email address associated with the user account */
@@ -1518,18 +1307,14 @@ export interface OrganizationMember {
1518
1307
  id: string;
1519
1308
  role: OrganizationRoleName;
1520
1309
  }
1521
- export declare const OrganizationMember: S.Schema<OrganizationMember>;
1522
1310
  export type ListOrganizationMembersResponseMembersList = Array<OrganizationMember>;
1523
- export declare const ListOrganizationMembersResponseMembersList: S.Schema<ListOrganizationMembersResponseMembersList>;
1524
1311
  export interface ListOrganizationMembersResponse {
1525
1312
  members: ListOrganizationMembersResponseMembersList;
1526
1313
  }
1527
- export declare const ListOrganizationMembersResponse: S.Schema<ListOrganizationMembersResponse>;
1528
1314
  export interface ListOrganizationRolesRequest {
1529
1315
  /** Unique identifier for a specific organization */
1530
1316
  organizationID: string;
1531
1317
  }
1532
- export declare const ListOrganizationRolesRequest: S.Schema<ListOrganizationRolesRequest>;
1533
1318
  /** A role that can be held by a member of an organization */
1534
1319
  export interface OrganizationRole {
1535
1320
  /** Stable identifier for the role */
@@ -1539,34 +1324,26 @@ export interface OrganizationRole {
1539
1324
  /** What the role allows */
1540
1325
  description: string;
1541
1326
  }
1542
- export declare const OrganizationRole: S.Schema<OrganizationRole>;
1543
1327
  export type ListOrganizationRolesResponseRolesList = Array<OrganizationRole>;
1544
- export declare const ListOrganizationRolesResponseRolesList: S.Schema<ListOrganizationRolesResponseRolesList>;
1545
1328
  export interface ListOrganizationRolesResponse {
1546
1329
  roles: ListOrganizationRolesResponseRolesList;
1547
1330
  }
1548
- export declare const ListOrganizationRolesResponse: S.Schema<ListOrganizationRolesResponse>;
1549
1331
  export interface ListProjectsRequest {
1550
1332
  /** Unique identifier of the organization to list projects from */
1551
1333
  organizationID: string;
1552
1334
  }
1553
- export declare const ListProjectsRequest: S.Schema<ListProjectsRequest>;
1554
1335
  /** Array of project objects with their metadata */
1555
1336
  export type ListProjectsResponseProjectsList = Array<Project>;
1556
- export declare const ListProjectsResponseProjectsList: S.Schema<ListProjectsResponseProjectsList>;
1557
1337
  export interface ListProjectsResponse {
1558
1338
  /** Array of project objects with their metadata */
1559
1339
  projects: ListProjectsResponseProjectsList;
1560
1340
  }
1561
- export declare const ListProjectsResponse: S.Schema<ListProjectsResponse>;
1562
1341
  export interface ListRegionsRequest {
1563
1342
  /** Unique identifier of the organization to check region availability for */
1564
1343
  organizationID: string;
1565
1344
  }
1566
- export declare const ListRegionsRequest: S.Schema<ListRegionsRequest>;
1567
1345
  /** Cloud provider the region runs on */
1568
1346
  export type ListRegionsResponseRegionsItemProvider = "aws" | "gcp" | "azure" | "custom";
1569
- export declare const ListRegionsResponseRegionsItemProvider: any;
1570
1347
  export interface ListRegionsResponseRegionsItem {
1571
1348
  /** Unique identifier for the region */
1572
1349
  id: string;
@@ -1579,43 +1356,33 @@ export interface ListRegionsResponseRegionsItem {
1579
1356
  /** Organization that owns this region, if set the region is only available to this organization */
1580
1357
  organizationId: string | null;
1581
1358
  }
1582
- export declare const ListRegionsResponseRegionsItem: S.Schema<ListRegionsResponseRegionsItem>;
1583
1359
  /** Array of available regions with their properties */
1584
1360
  export type ListRegionsResponseRegionsList = Array<ListRegionsResponseRegionsItem>;
1585
- export declare const ListRegionsResponseRegionsList: S.Schema<ListRegionsResponseRegionsList>;
1586
1361
  export interface ListRegionsResponse {
1587
1362
  /** Array of available regions with their properties */
1588
1363
  regions: ListRegionsResponseRegionsList;
1589
1364
  }
1590
- export declare const ListRegionsResponse: S.Schema<ListRegionsResponse>;
1591
1365
  export interface ListUserAPIKeysRequest {
1592
1366
  }
1593
- export declare const ListUserAPIKeysRequest: S.Schema<ListUserAPIKeysRequest>;
1594
1367
  /** Array of API keys for the user */
1595
1368
  export type ListUserAPIKeysResponseKeysList = Array<APIKeyPreview>;
1596
- export declare const ListUserAPIKeysResponseKeysList: S.Schema<ListUserAPIKeysResponseKeysList>;
1597
1369
  export interface ListUserAPIKeysResponse {
1598
1370
  /** Array of API keys for the user */
1599
1371
  keys: ListUserAPIKeysResponseKeysList;
1600
1372
  }
1601
- export declare const ListUserAPIKeysResponse: S.Schema<ListUserAPIKeysResponse>;
1602
1373
  /** Orb webhook event payload */
1603
1374
  export type OrbWebhookRequestBodyMap = {
1604
1375
  [key: string]: unknown | undefined;
1605
1376
  };
1606
- export declare const OrbWebhookRequestBodyMap: S.Schema<OrbWebhookRequestBodyMap>;
1607
1377
  export interface OrbWebhookRequest {
1608
1378
  body: OrbWebhookRequestBodyMap;
1609
1379
  }
1610
- export declare const OrbWebhookRequest: S.Schema<OrbWebhookRequest>;
1611
1380
  export interface OrbWebhookResponse {
1612
1381
  }
1613
- export declare const OrbWebhookResponse: S.Schema<OrbWebhookResponse>;
1614
1382
  /** User-inputted metadata based on the registered metadata schema. */
1615
1383
  export type ProvisionResourceRequestMetadataMap = {
1616
1384
  [key: string]: unknown | undefined;
1617
1385
  };
1618
- export declare const ProvisionResourceRequestMetadataMap: S.Schema<ProvisionResourceRequestMetadataMap>;
1619
1386
  export interface ProvisionResourceRequest {
1620
1387
  /** Vercel installation id (icfg_...). */
1621
1388
  installationId: string;
@@ -1630,19 +1397,16 @@ export interface ProvisionResourceRequest {
1630
1397
  /** Partner-provided identifier indicating the source of provisioning. */
1631
1398
  externalId?: string;
1632
1399
  }
1633
- export declare const ProvisionResourceRequest: S.Schema<ProvisionResourceRequest>;
1634
1400
  /** User-inputted metadata based on the registered metadata schema. */
1635
1401
  export type ProvisionedResourceMetadataMap = {
1636
1402
  [key: string]: unknown | undefined;
1637
1403
  };
1638
- export declare const ProvisionedResourceMetadataMap: S.Schema<ProvisionedResourceMetadataMap>;
1639
1404
  /** Per-environment values that override value for that Vercel environment. */
1640
1405
  export interface SecretEnvironmentOverrides {
1641
1406
  development?: string;
1642
1407
  preview?: string;
1643
1408
  production?: string;
1644
1409
  }
1645
- export declare const SecretEnvironmentOverrides: S.Schema<SecretEnvironmentOverrides>;
1646
1410
  /** A connection secret exposed as an environment variable on connected Vercel projects. */
1647
1411
  export interface Secret {
1648
1412
  /** Environment variable name. */
@@ -1652,10 +1416,8 @@ export interface Secret {
1652
1416
  /** Per-environment values that override value for that Vercel environment. */
1653
1417
  environmentOverrides?: SecretEnvironmentOverrides;
1654
1418
  }
1655
- export declare const Secret: S.Schema<Secret>;
1656
1419
  /** Connection secrets that become environment variables on connected projects. */
1657
1420
  export type ProvisionedResourceSecretsList = Array<Secret>;
1658
- export declare const ProvisionedResourceSecretsList: S.Schema<ProvisionedResourceSecretsList>;
1659
1421
  /** A newly provisioned resource: the Resource fields plus the connection secrets. Provision Resource is the only endpoint that returns secrets. */
1660
1422
  export interface ProvisionedResource {
1661
1423
  /** The partner-specific resource id. */
@@ -1671,13 +1433,10 @@ export interface ProvisionedResource {
1671
1433
  /** Connection secrets that become environment variables on connected projects. */
1672
1434
  secrets: ProvisionedResourceSecretsList;
1673
1435
  }
1674
- export declare const ProvisionedResource: S.Schema<ProvisionedResource>;
1675
1436
  /** Positional parameters for the query (`$1`, `$2`, ...). */
1676
1437
  export type QueryRequestParamsList = Array<unknown>;
1677
- export declare const QueryRequestParamsList: S.Schema<QueryRequestParamsList>;
1678
1438
  /** Positional parameters for the query. */
1679
1439
  export type QueryItemParamsList = Array<unknown>;
1680
- export declare const QueryItemParamsList: S.Schema<QueryItemParamsList>;
1681
1440
  /** A single query within a batch request. */
1682
1441
  export interface QueryItem {
1683
1442
  /** SQL query to execute. */
@@ -1687,10 +1446,8 @@ export interface QueryItem {
1687
1446
  /** Override array mode for this individual query. */
1688
1447
  arrayMode?: boolean;
1689
1448
  }
1690
- export declare const QueryItem: S.Schema<QueryItem>;
1691
1449
  /** Array of queries for batch execution within a single transaction. */
1692
1450
  export type QueryRequestQueriesList = Array<QueryItem>;
1693
- export declare const QueryRequestQueriesList: S.Schema<QueryRequestQueriesList>;
1694
1451
  export interface QueryRequest {
1695
1452
  /** SQL query to execute (single query mode). */
1696
1453
  query?: string;
@@ -1701,7 +1458,6 @@ export interface QueryRequest {
1701
1458
  /** Override array mode for this query (single query mode only). */
1702
1459
  arrayMode?: boolean;
1703
1460
  }
1704
- export declare const QueryRequest: S.Schema<QueryRequest>;
1705
1461
  /** PostgreSQL column metadata from the row description message. */
1706
1462
  export interface FieldDefinition {
1707
1463
  /** Column name. */
@@ -1719,13 +1475,10 @@ export interface FieldDefinition {
1719
1475
  /** Data format (`text` or `binary`). */
1720
1476
  format: string;
1721
1477
  }
1722
- export declare const FieldDefinition: S.Schema<FieldDefinition>;
1723
1478
  /** Column metadata for the result set. */
1724
1479
  export type QueryResultFieldsList = Array<FieldDefinition>;
1725
- export declare const QueryResultFieldsList: S.Schema<QueryResultFieldsList>;
1726
1480
  /** Result rows. Each row is an object (column-name keys) or an array (when array mode is enabled). */
1727
1481
  export type QueryResultRowsList = Array<unknown>;
1728
- export declare const QueryResultRowsList: S.Schema<QueryResultRowsList>;
1729
1482
  /** Result of a single SQL query execution. */
1730
1483
  export interface QueryResult {
1731
1484
  /** Column metadata for the result set. */
@@ -1739,23 +1492,17 @@ export interface QueryResult {
1739
1492
  /** Whether rows are returned as arrays (`true`) or objects (`false`). */
1740
1493
  rowAsArray: boolean;
1741
1494
  }
1742
- export declare const QueryResult: S.Schema<QueryResult>;
1743
1495
  /** Results for each query in the batch, in order. */
1744
1496
  export type BatchResponseResultsList = Array<QueryResult>;
1745
- export declare const BatchResponseResultsList: S.Schema<BatchResponseResultsList>;
1746
1497
  /** Response for a batch query execution. */
1747
1498
  export interface BatchResponse {
1748
1499
  /** Results for each query in the batch, in order. */
1749
1500
  results: BatchResponseResultsList;
1750
1501
  }
1751
- export declare const BatchResponse: S.Schema<BatchResponse>;
1752
1502
  export type QueryResponseBody = QueryResult | BatchResponse;
1753
- export declare const QueryResponseBody: S.Schema<QueryResponseBody>;
1754
1503
  export type QueryResponse = QueryResponseBody;
1755
- export declare const QueryResponse: S.Schema<QueryResponse>;
1756
1504
  /** Marketplace provider accepted for registration. */
1757
1505
  export type MarketplaceRegistrationProvider = "aws";
1758
- export declare const MarketplaceRegistrationProvider: any;
1759
1506
  /** AWS-specific marketplace details */
1760
1507
  export interface RegisterMarketplaceRequestAws {
1761
1508
  /** AWS Marketplace customer ID */
@@ -1765,7 +1512,6 @@ export interface RegisterMarketplaceRequestAws {
1765
1512
  /** AWS account ID */
1766
1513
  account_id: string;
1767
1514
  }
1768
- export declare const RegisterMarketplaceRequestAws: S.Schema<RegisterMarketplaceRequestAws>;
1769
1515
  export interface RegisterMarketplaceRequest {
1770
1516
  /** The cloud marketplace provider */
1771
1517
  marketplace: MarketplaceRegistrationProvider | (string & {});
@@ -1774,38 +1520,30 @@ export interface RegisterMarketplaceRequest {
1774
1520
  /** AWS-specific marketplace details */
1775
1521
  aws: RegisterMarketplaceRequestAws;
1776
1522
  }
1777
- export declare const RegisterMarketplaceRequest: S.Schema<RegisterMarketplaceRequest>;
1778
1523
  export interface RegisterMarketplaceResponse {
1779
1524
  }
1780
- export declare const RegisterMarketplaceResponse: S.Schema<RegisterMarketplaceResponse>;
1781
1525
  export interface RemoveOrganizationMemberRequest {
1782
1526
  /** Unique identifier for a specific organization */
1783
1527
  organizationID: string;
1784
1528
  /** Unique identifier for a specific user account */
1785
1529
  userID: string;
1786
1530
  }
1787
- export declare const RemoveOrganizationMemberRequest: S.Schema<RemoveOrganizationMemberRequest>;
1788
1531
  export interface RemoveOrganizationMemberResponse {
1789
1532
  }
1790
- export declare const RemoveOrganizationMemberResponse: S.Schema<RemoveOrganizationMemberResponse>;
1791
1533
  export interface RequestOrganizationDeletionRequest {
1792
1534
  /** Unique identifier for a specific organization */
1793
1535
  organizationID: string;
1794
1536
  }
1795
- export declare const RequestOrganizationDeletionRequest: S.Schema<RequestOrganizationDeletionRequest>;
1796
1537
  export interface RequestOrganizationDeletionResponse {
1797
1538
  }
1798
- export declare const RequestOrganizationDeletionResponse: S.Schema<RequestOrganizationDeletionResponse>;
1799
1539
  export interface ResendOrganizationInvitationRequest {
1800
1540
  /** Unique identifier for a specific organization */
1801
1541
  organizationID: string;
1802
1542
  /** Unique identifier for an invitation */
1803
1543
  invitationID: string;
1804
1544
  }
1805
- export declare const ResendOrganizationInvitationRequest: S.Schema<ResendOrganizationInvitationRequest>;
1806
1545
  export interface ResendOrganizationInvitationResponse {
1807
1546
  }
1808
- export declare const ResendOrganizationInvitationResponse: S.Schema<ResendOrganizationInvitationResponse>;
1809
1547
  export interface RestoreFromBackupRequest {
1810
1548
  /** Unique identifier of the organization containing the project */
1811
1549
  organizationID: string;
@@ -1821,7 +1559,6 @@ export interface RestoreFromBackupRequest {
1821
1559
  backupConfiguration?: BackupConfiguration;
1822
1560
  configuration?: ClusterConfiguration;
1823
1561
  }
1824
- export declare const RestoreFromBackupRequest: S.Schema<RestoreFromBackupRequest>;
1825
1562
  export interface RotateBranchCredentialsRequest {
1826
1563
  organizationID: string;
1827
1564
  projectID: string;
@@ -1829,21 +1566,16 @@ export interface RotateBranchCredentialsRequest {
1829
1566
  /** Database username to rotate credentials for */
1830
1567
  username: string;
1831
1568
  }
1832
- export declare const RotateBranchCredentialsRequest: S.Schema<RotateBranchCredentialsRequest>;
1833
1569
  export interface RotateBranchCredentialsResponse {
1834
1570
  }
1835
- export declare const RotateBranchCredentialsResponse: S.Schema<RotateBranchCredentialsResponse>;
1836
1571
  /** JSON-RPC protocol version. Always `2.0`. */
1837
1572
  export type SendMcpRequestRequestJsonrpc = "2.0";
1838
- export declare const SendMcpRequestRequestJsonrpc: any;
1839
1573
  /** Request identifier, echoed on the response. Omitted for notifications. */
1840
1574
  export type SendMcpRequestRequestId = string | number;
1841
- export declare const SendMcpRequestRequestId: S.Schema<SendMcpRequestRequestId>;
1842
1575
  /** Method parameters as defined by the MCP specification. */
1843
1576
  export type SendMcpRequestRequestParamsMap = {
1844
1577
  [key: string]: unknown | undefined;
1845
1578
  };
1846
- export declare const SendMcpRequestRequestParamsMap: S.Schema<SendMcpRequestRequestParamsMap>;
1847
1579
  export interface SendMcpRequestRequest {
1848
1580
  /** JSON-RPC protocol version. Always `2.0`. */
1849
1581
  jsonrpc: SendMcpRequestRequestJsonrpc | (string & {});
@@ -1854,18 +1586,14 @@ export interface SendMcpRequestRequest {
1854
1586
  /** Method parameters as defined by the MCP specification. */
1855
1587
  params?: SendMcpRequestRequestParamsMap;
1856
1588
  }
1857
- export declare const SendMcpRequestRequest: S.Schema<SendMcpRequestRequest>;
1858
1589
  /** JSON-RPC protocol version. Always `2.0`. */
1859
1590
  export type JSONRPCResponseJsonrpc = "2.0";
1860
- export declare const JSONRPCResponseJsonrpc: any;
1861
1591
  /** Identifier of the request this responds to. */
1862
1592
  export type JSONRPCResponseId = string | number;
1863
- export declare const JSONRPCResponseId: S.Schema<JSONRPCResponseId>;
1864
1593
  /** Method result as defined by the MCP specification. */
1865
1594
  export type JSONRPCResponseResultMap = {
1866
1595
  [key: string]: unknown | undefined;
1867
1596
  };
1868
- export declare const JSONRPCResponseResultMap: S.Schema<JSONRPCResponseResultMap>;
1869
1597
  /** A JSON-RPC 2.0 error. Failures inside a tool are reported in the tool result with `isError`, not here. */
1870
1598
  export interface JSONRPCError {
1871
1599
  /** JSON-RPC error code. */
@@ -1875,7 +1603,6 @@ export interface JSONRPCError {
1875
1603
  /** Additional error detail. */
1876
1604
  data?: unknown;
1877
1605
  }
1878
- export declare const JSONRPCError: S.Schema<JSONRPCError>;
1879
1606
  /** A JSON-RPC 2.0 response. Exactly one of `result` or `error` is present. */
1880
1607
  export interface JSONRPCResponse {
1881
1608
  /** JSON-RPC protocol version. Always `2.0`. */
@@ -1886,7 +1613,6 @@ export interface JSONRPCResponse {
1886
1613
  result?: JSONRPCResponseResultMap;
1887
1614
  error?: JSONRPCError;
1888
1615
  }
1889
- export declare const JSONRPCResponse: S.Schema<JSONRPCResponse>;
1890
1616
  export interface SetOrganizationMemberRoleRequest {
1891
1617
  /** Unique identifier for a specific organization */
1892
1618
  organizationID: string;
@@ -1894,10 +1620,8 @@ export interface SetOrganizationMemberRoleRequest {
1894
1620
  userID: string;
1895
1621
  role: OrganizationRoleName | (string & {});
1896
1622
  }
1897
- export declare const SetOrganizationMemberRoleRequest: S.Schema<SetOrganizationMemberRoleRequest>;
1898
1623
  export interface SetOrganizationMemberRoleResponse {
1899
1624
  }
1900
- export declare const SetOrganizationMemberRoleResponse: S.Schema<SetOrganizationMemberRoleResponse>;
1901
1625
  export interface SetOrganizationSSOProviderEnforcementRequest {
1902
1626
  /** Unique identifier for a specific organization */
1903
1627
  organizationID: string;
@@ -1906,33 +1630,26 @@ export interface SetOrganizationSSOProviderEnforcementRequest {
1906
1630
  /** Enable to send every address on the domain to this provider. Disable to let members sign in however they could before. */
1907
1631
  enforced: boolean;
1908
1632
  }
1909
- export declare const SetOrganizationSSOProviderEnforcementRequest: S.Schema<SetOrganizationSSOProviderEnforcementRequest>;
1910
1633
  /** Stripe webhook event payload */
1911
1634
  export type StripeWebhookRequestBodyMap = {
1912
1635
  [key: string]: unknown | undefined;
1913
1636
  };
1914
- export declare const StripeWebhookRequestBodyMap: S.Schema<StripeWebhookRequestBodyMap>;
1915
1637
  export interface StripeWebhookRequest {
1916
1638
  body: StripeWebhookRequestBodyMap;
1917
1639
  }
1918
- export declare const StripeWebhookRequest: S.Schema<StripeWebhookRequest>;
1919
1640
  export interface StripeWebhookResponse {
1920
1641
  }
1921
- export declare const StripeWebhookResponse: S.Schema<StripeWebhookResponse>;
1922
1642
  export interface UpdateBillingCustomerRequest {
1923
1643
  /** Unique identifier for a specific organization */
1924
1644
  organizationID: string;
1925
1645
  billing_email: string;
1926
1646
  }
1927
- export declare const UpdateBillingCustomerRequest: S.Schema<UpdateBillingCustomerRequest>;
1928
1647
  /** Arbitrary PostgreSQL configuration parameters for the cluster */
1929
1648
  export type UpdateBranchRequestPostgresConfigurationParametersMap = {
1930
1649
  [key: string]: string | undefined;
1931
1650
  };
1932
- export declare const UpdateBranchRequestPostgresConfigurationParametersMap: S.Schema<UpdateBranchRequestPostgresConfigurationParametersMap>;
1933
1651
  /** List of PostgreSQL extensions and libraries to preload */
1934
1652
  export type UpdateBranchRequestPreloadLibrariesList = Array<string>;
1935
- export declare const UpdateBranchRequestPreloadLibrariesList: S.Schema<UpdateBranchRequestPreloadLibrariesList>;
1936
1653
  export interface UpdateBranchRequest {
1937
1654
  /** Unique identifier of the organization containing the project */
1938
1655
  organizationID: string;
@@ -1961,7 +1678,6 @@ export interface UpdateBranchRequest {
1961
1678
  /** PostgreSQL image to use for the database instances */
1962
1679
  image?: string;
1963
1680
  }
1964
- export declare const UpdateBranchRequest: S.Schema<UpdateBranchRequest>;
1965
1681
  export interface UpdateGithubAppInstallationRequest {
1966
1682
  /** Unique identifier of the organization */
1967
1683
  organizationID: string;
@@ -1970,7 +1686,6 @@ export interface UpdateGithubAppInstallationRequest {
1970
1686
  /** GitHub App installation ID */
1971
1687
  installationId: number;
1972
1688
  }
1973
- export declare const UpdateGithubAppInstallationRequest: S.Schema<UpdateGithubAppInstallationRequest>;
1974
1689
  export interface UpdateGithubRepositoryRequest {
1975
1690
  /** Unique identifier of the organization */
1976
1691
  organizationID: string;
@@ -1981,7 +1696,6 @@ export interface UpdateGithubRepositoryRequest {
1981
1696
  /** GitHub repository ID */
1982
1697
  githubRepositoryID: number;
1983
1698
  }
1984
- export declare const UpdateGithubRepositoryRequest: S.Schema<UpdateGithubRepositoryRequest>;
1985
1699
  export interface UpdateOrganizationRequest {
1986
1700
  /** Unique identifier for a specific organization */
1987
1701
  organizationID: string;
@@ -1990,7 +1704,6 @@ export interface UpdateOrganizationRequest {
1990
1704
  /** New name for the organization */
1991
1705
  name?: string;
1992
1706
  }
1993
- export declare const UpdateOrganizationRequest: S.Schema<UpdateOrganizationRequest>;
1994
1707
  export interface UpdateOrganizationSSOProviderRequest {
1995
1708
  /** Unique identifier for a specific organization */
1996
1709
  organizationID: string;
@@ -2003,13 +1716,11 @@ export interface UpdateOrganizationSSOProviderRequest {
2003
1716
  /** OAuth client secret. Write-only: it is stored in Keycloak and is never returned by this API. */
2004
1717
  client_secret: string | Redacted.Redacted<string>;
2005
1718
  }
2006
- export declare const UpdateOrganizationSSOProviderRequest: S.Schema<UpdateOrganizationSSOProviderRequest>;
2007
1719
  /** Partial configuration update for a project */
2008
1720
  export interface UpdateProjectConfiguration {
2009
1721
  scaleToZero?: ProjectScaleToZeroConfiguration;
2010
1722
  ipFiltering?: IPFilteringConfiguration;
2011
1723
  }
2012
- export declare const UpdateProjectConfiguration: S.Schema<UpdateProjectConfiguration>;
2013
1724
  export interface UpdateProjectRequest {
2014
1725
  /** Unique identifier of the organization containing the project */
2015
1726
  organizationID: string;
@@ -2019,28 +1730,23 @@ export interface UpdateProjectRequest {
2019
1730
  name?: string;
2020
1731
  configuration?: UpdateProjectConfiguration;
2021
1732
  }
2022
- export declare const UpdateProjectRequest: S.Schema<UpdateProjectRequest>;
2023
1733
  /** Scopes granted to the installation. */
2024
1734
  export type UpsertInstallationRequestScopesList = Array<string>;
2025
- export declare const UpsertInstallationRequestScopesList: S.Schema<UpsertInstallationRequestScopesList>;
2026
1735
  /** Map of policy id to the acceptance timestamp (RFC 3339), e.g. {"toc": "2024-02-28T10:00:00Z"}. */
2027
1736
  export type UpsertInstallationRequestAcceptedPoliciesMap = {
2028
1737
  [key: string]: string | undefined;
2029
1738
  };
2030
- export declare const UpsertInstallationRequestAcceptedPoliciesMap: S.Schema<UpsertInstallationRequestAcceptedPoliciesMap>;
2031
1739
  export interface InstallationCredentials {
2032
1740
  /** Installation access token that authenticates our outbound Partner API calls to Vercel. Stored encrypted at rest. */
2033
1741
  access_token: string | Redacted.Redacted<string>;
2034
1742
  /** Token type (e.g. "Bearer"). */
2035
1743
  token_type: string;
2036
1744
  }
2037
- export declare const InstallationCredentials: S.Schema<InstallationCredentials>;
2038
1745
  /** Contact details for the account. */
2039
1746
  export interface InstallationAccountContact {
2040
1747
  email: string;
2041
1748
  name?: string;
2042
1749
  }
2043
- export declare const InstallationAccountContact: S.Schema<InstallationAccountContact>;
2044
1750
  /** The Vercel account/team installing the integration. */
2045
1751
  export interface InstallationAccount {
2046
1752
  /** Team name (absent for personal accounts). */
@@ -2050,7 +1756,6 @@ export interface InstallationAccount {
2050
1756
  /** Contact details for the account. */
2051
1757
  contact?: InstallationAccountContact;
2052
1758
  }
2053
- export declare const InstallationAccount: S.Schema<InstallationAccount>;
2054
1759
  export interface UpsertInstallationRequest {
2055
1760
  /** Vercel installation id (icfg_...). */
2056
1761
  installationId: string;
@@ -2061,23 +1766,18 @@ export interface UpsertInstallationRequest {
2061
1766
  credentials: InstallationCredentials;
2062
1767
  account: InstallationAccount;
2063
1768
  }
2064
- export declare const UpsertInstallationRequest: S.Schema<UpsertInstallationRequest>;
2065
1769
  export interface UpsertInstallationResponse {
2066
1770
  }
2067
- export declare const UpsertInstallationResponse: S.Schema<UpsertInstallationResponse>;
2068
1771
  export interface VerifyOrganizationSSODomainRequest {
2069
1772
  /** Unique identifier for a specific organization */
2070
1773
  organizationID: string;
2071
1774
  /** Email domain claimed for SSO */
2072
1775
  domain: string;
2073
1776
  }
2074
- export declare const VerifyOrganizationSSODomainRequest: S.Schema<VerifyOrganizationSSODomainRequest>;
2075
1777
  export interface WebsocketRequest {
2076
1778
  }
2077
- export declare const WebsocketRequest: S.Schema<WebsocketRequest>;
2078
1779
  export interface WebsocketResponse {
2079
1780
  }
2080
- export declare const WebsocketResponse: S.Schema<WebsocketResponse>;
2081
1781
  export type BranchLogs2Error = BadRequest | NotFound | XataOpError;
2082
1782
  /** Retrieve branch logs */
2083
1783
  export declare const branchLogs2: API.OperationMethod<BranchLogsRequest, BranchLogs, BranchLogs2Error, XataOpContext>;