@distilled.cloud/xata 1.0.0-rc.17 → 1.0.0-rc.19

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.
@@ -56,9 +56,9 @@ export interface LogFilter {
56
56
  /** Match operator. */
57
57
  op: LogFilterOp | (string & {});
58
58
  /** Used with `op: in`. */
59
- values?: LogFilterValuesList;
59
+ values?: LogFilterValuesList | undefined;
60
60
  /** Used with the body operators. */
61
- value?: string;
61
+ value?: string | undefined;
62
62
  }
63
63
  /** Filters applied to log entries. Multiple filters are combined with AND. */
64
64
  export type BranchLogsRequestFiltersList = Array<LogFilter>;
@@ -71,20 +71,20 @@ export interface BranchLogsRequest {
71
71
  /** End time */
72
72
  end: string;
73
73
  /** Filters applied to log entries. Multiple filters are combined with AND. */
74
- filters?: BranchLogsRequestFiltersList;
75
- limit?: number;
74
+ filters?: BranchLogsRequestFiltersList | undefined;
75
+ limit?: number | undefined;
76
76
  /** Pagination cursor from a previous response */
77
- cursor?: string;
77
+ cursor?: string | undefined;
78
78
  }
79
79
  /** Log level enumeration */
80
80
  export type LogLevel = "debug" | "info" | "warning" | "error";
81
81
  export interface LogEntry {
82
82
  timestamp: string;
83
83
  instanceID: string;
84
- level?: LogLevel;
84
+ level?: LogLevel | undefined;
85
85
  message: string;
86
86
  /** Name of the PostgreSQL process that emitted the log */
87
- process?: string;
87
+ process?: string | undefined;
88
88
  }
89
89
  export type BranchLogsLogsList = Array<LogEntry>;
90
90
  /** A collection of logs for each of the instances of a branch */
@@ -115,7 +115,7 @@ export interface BranchMetricsRequest {
115
115
  /** List of metric names to query. */
116
116
  metrics: BranchMetricsRequestMetricsList;
117
117
  /** List of instance IDs to query */
118
- instances?: BranchMetricsRequestInstancesList;
118
+ instances?: BranchMetricsRequestInstancesList | undefined;
119
119
  /** List of aggregations to get, this is how the data-points within the interval are aggregated. Each one will generate a separate time-series per metric in the response. */
120
120
  aggregations: BranchMetricsRequestAggregationsList;
121
121
  }
@@ -176,11 +176,11 @@ export interface OrganizationSSODomain {
176
176
  /** Whether control of the domain has been proven through DNS */
177
177
  verified: boolean;
178
178
  /** The DNS record that proves control of the domain. It must stay published while the domain is verified. */
179
- verification?: OrganizationSSODomainVerification | null;
179
+ verification?: OrganizationSSODomainVerification | null | undefined;
180
180
  /** When the daily recheck first found the record missing from a verified domain. */
181
- missing_since?: string | null;
181
+ missing_since?: string | null | undefined;
182
182
  /** When the domain stops being verified if the record is still missing. */
183
- revokes_at?: string | null;
183
+ revokes_at?: string | null | undefined;
184
184
  }
185
185
  export interface CreateBillingCheckoutSessionRequest {
186
186
  /** Unique identifier for a specific organization */
@@ -207,10 +207,10 @@ export interface ScaleToZeroConfiguration {
207
207
  }
208
208
  /** Details about the branch continuous backup configuration */
209
209
  export interface BackupConfiguration {
210
- /** how long are we keeping the backups around for */
211
- retentionPeriod?: number;
212
- /** time of day/week when we are taking a full backup */
213
- backupTime?: string;
210
+ /** Number of days of point-in-time recovery to guarantee. You can restore the branch to any point within this many days. To provide this, the most recent full backup taken before the start of the window is always kept, along with all changes made after it. Because of this, restore points older than retentionPeriod are sometimes available, but how far back they go depends on the backup schedule and is not guaranteed. */
211
+ retentionPeriod?: number | undefined;
212
+ /** When to take a full backup, in UTC, in the format D:HH:MM. D is * for every day, or 0-6 for one day of the week (0 is Sunday). If it is not set, a random time on Sunday between 02:00 and 05:59 is used. */
213
+ backupTime?: string | undefined;
214
214
  }
215
215
  /** The mode used to discriminate between types of branches. */
216
216
  export type CreateBranchRequestMode = "inherit" | "custom";
@@ -222,9 +222,9 @@ export interface CreateBranchRequest {
222
222
  /** Human-readable name for the new branch */
223
223
  name: string;
224
224
  /** Optional description for the branch purpose or contents. An empty string is stored as no description. */
225
- description?: string;
226
- scaleToZero?: ScaleToZeroConfiguration;
227
- backupConfiguration?: BackupConfiguration;
225
+ description?: string | undefined;
226
+ scaleToZero?: ScaleToZeroConfiguration | undefined;
227
+ backupConfiguration?: BackupConfiguration | undefined;
228
228
  /** The mode used to discriminate between types of branches. */
229
229
  mode: CreateBranchRequestMode | (string & {});
230
230
  }
@@ -235,15 +235,15 @@ export interface BranchShortMetadata {
235
235
  /** Human-readable name of the branch */
236
236
  name: string;
237
237
  /** Optional description of the branch purpose or contents */
238
- description?: string;
238
+ description?: string | undefined;
239
239
  /** Timestamp when the branch was created */
240
240
  createdAt: string;
241
241
  /** Timestamp when the branch was last updated */
242
242
  updatedAt: string;
243
243
  /** Identifier of the parent branch if this is a derived branch, null otherwise */
244
- parentID?: string | null;
244
+ parentID?: string | null | undefined;
245
245
  /** Deprecated: retrieve the connection string from the branch credentials endpoint (GET .../branches/{branchID}/credentials) instead. The hostname in this connection string carries a -deprecated marker in its first DNS label. */
246
- connectionString?: string | Redacted.Redacted<string> | null;
246
+ connectionString?: string | Redacted.Redacted<string> | null | undefined;
247
247
  /** Geographic region where the branch is deployed */
248
248
  region: string;
249
249
  /** Whether the branch allows public access without authentication */
@@ -309,17 +309,17 @@ export interface OrganizationStatus {
309
309
  /** Indicates if the organization has been disabled by an admin */
310
310
  disabled_by_admin: boolean;
311
311
  /** Reason for the current admin status */
312
- admin_reason?: string;
312
+ admin_reason?: string | undefined;
313
313
  /** Indicates the status of the organization from a billing perspective */
314
314
  billing_status: OrganizationStatusBillingStatus;
315
315
  /** Reason for the current billing status */
316
- billing_reason?: string;
316
+ billing_reason?: string | undefined;
317
317
  /** Usage tier of the organization. t1 is the default for new organizations, t2 is assigned when a valid payment method is on file. */
318
318
  usage_tier: OrganizationStatusUsageTier;
319
319
  /** Timestamp of the last update to the organization's status */
320
320
  last_updated: string;
321
321
  /** Timestamp when the organization was created */
322
- created_at?: string;
322
+ created_at?: string | undefined;
323
323
  }
324
324
  /** Marketplace provider associated with an organization. */
325
325
  export type OrganizationMarketplaceProvider = "aws";
@@ -332,7 +332,7 @@ export interface Organization {
332
332
  /** Current status of the organization */
333
333
  status: OrganizationStatus;
334
334
  /** Marketplace provider for this organization (e.g. "aws"), if billed through a marketplace */
335
- marketplace?: OrganizationMarketplaceProvider | null;
335
+ marketplace?: OrganizationMarketplaceProvider | null | undefined;
336
336
  }
337
337
  /** Optional scopes assigned to the API key */
338
338
  export type CreateOrganizationAPIKeyRequestScopesList = Array<string>;
@@ -345,13 +345,13 @@ export interface CreateOrganizationAPIKeyRequest {
345
345
  organizationID: string;
346
346
  name: string;
347
347
  /** Expiration date for the API key, null for no expiry */
348
- expiry?: string | null;
348
+ expiry?: string | null | undefined;
349
349
  /** Optional scopes assigned to the API key */
350
- scopes?: CreateOrganizationAPIKeyRequestScopesList;
350
+ scopes?: CreateOrganizationAPIKeyRequestScopesList | undefined;
351
351
  /** Limit access to these projects */
352
- projects?: CreateOrganizationAPIKeyRequestProjectsList;
352
+ projects?: CreateOrganizationAPIKeyRequestProjectsList | undefined;
353
353
  /** Limit access to these branches */
354
- branches?: CreateOrganizationAPIKeyRequestBranchesList;
354
+ branches?: CreateOrganizationAPIKeyRequestBranchesList | undefined;
355
355
  }
356
356
  export type FullAPIKeyScopesList = Array<string>;
357
357
  /** Projects this API key has access to */
@@ -375,9 +375,9 @@ export interface FullAPIKey {
375
375
  /** The actual API key token */
376
376
  token: string;
377
377
  /** ID of the user that created this API key */
378
- created_by?: string | null;
378
+ created_by?: string | null | undefined;
379
379
  /** ID of the API key that created this API key */
380
- created_by_key?: string | null;
380
+ created_by_key?: string | null | undefined;
381
381
  }
382
382
  export interface CreateOrganizationAPIKeyResponse {
383
383
  key: FullAPIKey;
@@ -390,7 +390,7 @@ export interface CreateOrganizationInvitationRequest {
390
390
  /** Email address of the user to invite */
391
391
  email: string;
392
392
  /** Role the user holds once they accept the invitation. Optional; when omitted, the least privileged role offered applies */
393
- role?: OrganizationRoleName | (string & {});
393
+ role?: OrganizationRoleName | (string & {}) | undefined;
394
394
  }
395
395
  export interface CreateOrganizationInvitationResponse {
396
396
  }
@@ -403,7 +403,7 @@ export interface CreateOrganizationSSOProviderRequest {
403
403
  /** The verified email domain this provider will serve. */
404
404
  domain: string;
405
405
  /** OIDC issuer URL. Required for `oidc`, and for `microsoft` where it names the Entra tenant; ignored for `google`. Must be https, and must serve a /.well-known/openid-configuration document naming itself as the issuer. */
406
- issuer?: string;
406
+ issuer?: string | undefined;
407
407
  /** OAuth client ID the organization registered with the provider */
408
408
  client_id: string;
409
409
  /** OAuth client secret. Write-only: it is stored in Keycloak and is never returned by this API. */
@@ -421,7 +421,7 @@ export interface OrganizationSSOProvider {
421
421
  /** Whether members on this domain are sent to this provider automatically, leaving no other way in. Registering a provider does not set this; it is enabled separately. */
422
422
  enforced: boolean;
423
423
  /** OIDC issuer URL, without the /.well-known suffix. */
424
- issuer?: string;
424
+ issuer?: string | undefined;
425
425
  /** OAuth client ID the organization registered with the provider. */
426
426
  client_id: string;
427
427
  }
@@ -434,7 +434,7 @@ export interface CidrEntry {
434
434
  /** IP address or CIDR block (e.g., "192.168.0.0/24") */
435
435
  cidr: string;
436
436
  /** Optional label for the CIDR entry */
437
- description?: string;
437
+ description?: string | undefined;
438
438
  }
439
439
  export type IPFilteringConfigurationCidrList = Array<CidrEntry>;
440
440
  /** Configuration for IP filtering on project branches */
@@ -446,14 +446,14 @@ export interface IPFilteringConfiguration {
446
446
  /** Configuration details for a project, including its scale to zero settings */
447
447
  export interface ProjectConfiguration {
448
448
  scaleToZero: ProjectScaleToZeroConfiguration;
449
- ipFiltering?: IPFilteringConfiguration;
449
+ ipFiltering?: IPFilteringConfiguration | undefined;
450
450
  }
451
451
  export interface CreateProjectRequest {
452
452
  /** Unique identifier of the organization to create the project in */
453
453
  organizationID: string;
454
454
  /** Human-readable name for the new project */
455
455
  name: string;
456
- configuration?: ProjectConfiguration;
456
+ configuration?: ProjectConfiguration | undefined;
457
457
  }
458
458
  /** Details of a project including its ID, name, and creation/update timestamps */
459
459
  export interface Project {
@@ -476,13 +476,13 @@ export type CreateUserAPIKeyRequestBranchesList = Array<string>;
476
476
  export interface CreateUserAPIKeyRequest {
477
477
  name: string;
478
478
  /** Expiration date for the API key, null for no expiry */
479
- expiry?: string | null;
479
+ expiry?: string | null | undefined;
480
480
  /** Optional scopes assigned to the API key */
481
- scopes?: CreateUserAPIKeyRequestScopesList;
481
+ scopes?: CreateUserAPIKeyRequestScopesList | undefined;
482
482
  /** Limit access to these projects */
483
- projects?: CreateUserAPIKeyRequestProjectsList;
483
+ projects?: CreateUserAPIKeyRequestProjectsList | undefined;
484
484
  /** Limit access to these branches */
485
- branches?: CreateUserAPIKeyRequestBranchesList;
485
+ branches?: CreateUserAPIKeyRequestBranchesList | undefined;
486
486
  }
487
487
  export interface CreateUserAPIKeyResponse {
488
488
  key: FullAPIKey;
@@ -511,9 +511,9 @@ export interface DeleteInstallationRequest {
511
511
  /** Vercel installation id (icfg_...). */
512
512
  installationId: string;
513
513
  /** Whether to delete the installation's resources along with the installation. */
514
- cascadeResourceDeletion?: boolean;
514
+ cascadeResourceDeletion?: boolean | undefined;
515
515
  /** The reason for deleting the installation. */
516
- reason?: string;
516
+ reason?: string | undefined;
517
517
  }
518
518
  export interface DeleteInstallationResponse {
519
519
  }
@@ -598,7 +598,7 @@ export interface ClusterLifecycle {
598
598
  /** Current operational state of the cluster (ready, creating, updating, etc.) */
599
599
  state: ClusterLifecycleState;
600
600
  /** Reason for the current lifecycle state, especially useful for non-ready states */
601
- reason?: string;
601
+ reason?: string | undefined;
602
602
  /** Current phase within the lifecycle process */
603
603
  phase: string;
604
604
  }
@@ -622,8 +622,8 @@ export interface BranchStatus {
622
622
  /** Type of status of the branch */
623
623
  statusType: BranchStatusStatusType;
624
624
  /** Human-readable message explaining the current status */
625
- message?: string;
626
- lifecycle?: ClusterLifecycle;
625
+ message?: string | undefined;
626
+ lifecycle?: ClusterLifecycle | undefined;
627
627
  /** Total number of database instances in the cluster */
628
628
  instanceCount: number;
629
629
  /** Number of database instances that are ready and operational */
@@ -642,7 +642,7 @@ export interface ClusterConfiguration {
642
642
  /** Geographic region where the cluster will be deployed */
643
643
  region: string;
644
644
  /** Branch storage in GiB (gigabytes) */
645
- storage?: number;
645
+ storage?: number | undefined;
646
646
  /** The instance type according to the xata instance types available */
647
647
  instanceType: string;
648
648
  /** PostgreSQL image to use for the database instances */
@@ -650,9 +650,9 @@ export interface ClusterConfiguration {
650
650
  /** Number of replicas in the branch. Every child branch is created with no replicas. This can be updated. */
651
651
  replicas: number;
652
652
  /** Arbitrary PostgreSQL configuration parameters for the cluster */
653
- postgresConfigurationParameters?: ClusterConfigurationPostgresConfigurationParametersMap;
653
+ postgresConfigurationParameters?: ClusterConfigurationPostgresConfigurationParametersMap | undefined;
654
654
  /** List of PostgreSQL extensions and libraries to preload */
655
- preloadLibraries?: ClusterConfigurationPreloadLibrariesList;
655
+ preloadLibraries?: ClusterConfigurationPreloadLibrariesList | undefined;
656
656
  }
657
657
  /** Detailed metadata about a branch, including its status and configuration */
658
658
  export interface BranchMetadata {
@@ -661,13 +661,13 @@ export interface BranchMetadata {
661
661
  /** Human-readable name of the branch */
662
662
  name: string;
663
663
  /** Optional description of the branch purpose or contents */
664
- description?: string;
664
+ description?: string | undefined;
665
665
  /** Timestamp when the branch was created */
666
666
  createdAt: string;
667
667
  /** Timestamp when the branch was last updated */
668
668
  updatedAt: string;
669
669
  /** Identifier of the parent branch if this is a derived branch, null otherwise */
670
- parentID?: string | null;
670
+ parentID?: string | null | undefined;
671
671
  /** Geographic region where the branch is deployed */
672
672
  region: string;
673
673
  status: BranchStatus;
@@ -679,7 +679,7 @@ export interface BranchMetadata {
679
679
  backupsEnabled: boolean;
680
680
  scaleToZero: ScaleToZeroConfiguration;
681
681
  configuration: ClusterConfiguration;
682
- backupConfiguration?: BackupConfiguration;
682
+ backupConfiguration?: BackupConfiguration | undefined;
683
683
  }
684
684
  export interface GetBackupRequest {
685
685
  /** Unique identifier of the organization containing the project */
@@ -693,12 +693,12 @@ export interface GetBackupRequest {
693
693
  export interface BackupMetadata {
694
694
  /** unique identifier for the backup */
695
695
  id: string;
696
- /** the branchID the branch associated with the backup */
696
+ /** ID of the branch that the backup belongs to */
697
697
  branchID: string;
698
- /** the earlies point in time available for restoring the branch */
699
- earliestRestore?: string;
700
- /** the latest point in time available for restoring the branch */
701
- latestRestore?: string;
698
+ /** The earliest point in time that the branch can be restored to. It is absent until the first backup of the branch completes. */
699
+ earliestRestore?: string | undefined;
700
+ /** The latest point in time that the branch is known to be restorable to. It is updated from the archived WAL at most every five minutes, so it can be several minutes behind the current time. It is absent until the first backup of the branch completes. */
701
+ latestRestore?: string | undefined;
702
702
  /** description of the backup */
703
703
  description: string;
704
704
  }
@@ -764,9 +764,9 @@ export interface GetBillingInvoicesRequest {
764
764
  /** Unique identifier for a specific organization */
765
765
  organizationID: string;
766
766
  /** Pagination cursor from a previous response */
767
- cursor?: string;
767
+ cursor?: string | undefined;
768
768
  /** Number of invoices to fetch */
769
- limit?: number;
769
+ limit?: number | undefined;
770
770
  }
771
771
  export type BillingInvoiceStatus = "draft" | "issued" | "paid" | "void" | "synced";
772
772
  export interface BillingInvoice {
@@ -809,7 +809,7 @@ export interface GetBranchCredentialsRequest {
809
809
  projectID: string;
810
810
  branchID: string;
811
811
  /** Username that the credentials requested for, defaults to `xata` */
812
- username?: string;
812
+ username?: string | undefined;
813
813
  }
814
814
  /** Credentials and connection details for accessing a branch */
815
815
  export interface BranchCredentials {
@@ -841,11 +841,11 @@ export type PostgresConfigParameterAcceptableRangeEnumValuesList = Array<string>
841
841
  /** Information about the acceptable range of values for this parameter */
842
842
  export interface PostgresConfigParameterAcceptableRange {
843
843
  /** Minimum allowed value (if applicable) */
844
- minValue?: string;
844
+ minValue?: string | undefined;
845
845
  /** Maximum allowed value (if applicable) */
846
- maxValue?: string;
846
+ maxValue?: string | undefined;
847
847
  /** List of allowed enum values (if applicable) */
848
- enumValues?: PostgresConfigParameterAcceptableRangeEnumValuesList;
848
+ enumValues?: PostgresConfigParameterAcceptableRangeEnumValuesList | undefined;
849
849
  }
850
850
  /** The source of the default value */
851
851
  export type PostgresConfigParameterDefaultValueSource = "postgres" | "instance_type";
@@ -860,7 +860,7 @@ export interface PostgresConfigParameter {
860
860
  /** The section/category this parameter belongs to */
861
861
  section: string;
862
862
  /** Information about the acceptable range of values for this parameter */
863
- acceptableRange?: PostgresConfigParameterAcceptableRange;
863
+ acceptableRange?: PostgresConfigParameterAcceptableRange | undefined;
864
864
  /** The default value for this parameter */
865
865
  defaultValue: string;
866
866
  /** The source of the default value */
@@ -872,7 +872,7 @@ export interface PostgresConfigParameter {
872
872
  /** Optional recommendation for this parameter (currently empty) */
873
873
  recommendation: string;
874
874
  /** Whether a database restart is required for this parameter change to take effect */
875
- restartRequired?: boolean;
875
+ restartRequired?: boolean | undefined;
876
876
  }
877
877
  /** Array of PostgreSQL configuration parameters with detailed information */
878
878
  export type PostgresConfigDetailsParametersList = Array<PostgresConfigParameter>;
@@ -913,9 +913,9 @@ export interface OrganizationInvitation {
913
913
  /** Email address of the invited user */
914
914
  email: string;
915
915
  /** First name of the invited user */
916
- first_name?: string | null;
916
+ first_name?: string | null | undefined;
917
917
  /** Last name of the invited user */
918
- last_name?: string | null;
918
+ last_name?: string | null | undefined;
919
919
  /** Timestamp when the invitation was created */
920
920
  created_at: string;
921
921
  /** Timestamp when the invitation expires */
@@ -1032,7 +1032,7 @@ export interface GetResourceRequest {
1032
1032
  export type ResourceMetadataMap = {
1033
1033
  [key: string]: unknown | undefined;
1034
1034
  };
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. */
1035
+ /** A provisioned Vercel Marketplace resource. Matches Vercel's Partner API "Get Resource" response. Secrets/connection info are returned by Provision Resource, not here. */
1036
1036
  export interface Resource {
1037
1037
  /** The partner-specific resource id. */
1038
1038
  id: string;
@@ -1070,11 +1070,11 @@ export interface ListBillingPlansForProductRequest {
1070
1070
  /** Vercel product slug (e.g. xata-postgres). */
1071
1071
  productSlug: string;
1072
1072
  /** Opaque metadata forwarded by Vercel. */
1073
- metadata?: string;
1073
+ metadata?: string | undefined;
1074
1074
  }
1075
1075
  export interface PlanDetail {
1076
1076
  label: string;
1077
- value?: string;
1077
+ value?: string | undefined;
1078
1078
  }
1079
1079
  export type BillingPlanDetailsList = Array<PlanDetail>;
1080
1080
  export type BillingPlanHighlightedDetailsList = Array<PlanDetail>;
@@ -1092,20 +1092,20 @@ export interface BillingPlan {
1092
1092
  name: string;
1093
1093
  description: string;
1094
1094
  /** Plan scope; installation-level plans require enablement on the integration. */
1095
- scope?: string;
1095
+ scope?: string | undefined;
1096
1096
  /** Subscription plans only. false means the plan is completely free. */
1097
- paymentMethodRequired?: boolean;
1097
+ paymentMethodRequired?: boolean | undefined;
1098
1098
  /** Subscription + paymentMethodRequired. Amount used to test the payment method; never charged. */
1099
- preauthorizationAmount?: number;
1099
+ preauthorizationAmount?: number | undefined;
1100
1100
  /** Subscription + paymentMethodRequired. Amount invoiced immediately at sign-up (decimal USD string). */
1101
- initialCharge?: string;
1101
+ initialCharge?: string | undefined;
1102
1102
  /** Display cost for fixed-cost plans, e.g. "$20.00/month". Omitted for usage-based plans. */
1103
- cost?: string;
1104
- details?: BillingPlanDetailsList;
1105
- highlightedDetails?: BillingPlanHighlightedDetailsList;
1106
- quote?: BillingPlanQuoteList;
1107
- effectiveDate?: string;
1108
- disabled?: boolean;
1103
+ cost?: string | undefined;
1104
+ details?: BillingPlanDetailsList | undefined;
1105
+ highlightedDetails?: BillingPlanHighlightedDetailsList | undefined;
1106
+ quote?: BillingPlanQuoteList | undefined;
1107
+ effectiveDate?: string | undefined;
1108
+ disabled?: boolean | undefined;
1109
1109
  }
1110
1110
  export type ListBillingPlansResponsePlansList = Array<BillingPlan>;
1111
1111
  /** The billing plans available for a product. */
@@ -1125,13 +1125,13 @@ export interface BranchListMetadata {
1125
1125
  /** Human-readable name of the branch */
1126
1126
  name: string;
1127
1127
  /** Optional description of the branch purpose or contents */
1128
- description?: string;
1128
+ description?: string | undefined;
1129
1129
  /** Timestamp when the branch was created */
1130
1130
  createdAt: string;
1131
1131
  /** Timestamp when the branch was last updated */
1132
1132
  updatedAt: string;
1133
1133
  /** Identifier of the parent branch if this is a derived branch, null otherwise */
1134
- parentID?: string | null;
1134
+ parentID?: string | null | undefined;
1135
1135
  /** Geographic region where the branch is deployed */
1136
1136
  region: string;
1137
1137
  /** Whether the branch allows public access without authentication */
@@ -1151,7 +1151,7 @@ export interface ListExtensionsRequest {
1151
1151
  /** Image for which we list extensions */
1152
1152
  image: string;
1153
1153
  /** Region to list extensions for image in */
1154
- region?: string;
1154
+ region?: string | undefined;
1155
1155
  }
1156
1156
  /** type of installation */
1157
1157
  export type ExtensionType = "extension" | "plugin" | "module";
@@ -1190,7 +1190,7 @@ export interface ListImagesRequest {
1190
1190
  /** Unique identifier of the organization to check image availability */
1191
1191
  organizationID: string;
1192
1192
  /** Region to check image availability for organization */
1193
- region?: string;
1193
+ region?: string | undefined;
1194
1194
  }
1195
1195
  /** region where this instance type is available */
1196
1196
  export type ImageRegionList = Array<string>;
@@ -1203,7 +1203,7 @@ export interface Image {
1203
1203
  /** full postgres version */
1204
1204
  fullVersion: string;
1205
1205
  /** region where this instance type is available */
1206
- region?: ImageRegionList;
1206
+ region?: ImageRegionList | undefined;
1207
1207
  }
1208
1208
  /** Array of available images with their properties */
1209
1209
  export type ListImagesResponseImagesList = Array<Image>;
@@ -1261,9 +1261,9 @@ export interface APIKeyPreview {
1261
1261
  /** Timestamp of the last time the key was used (null if never) */
1262
1262
  last_used: string | null;
1263
1263
  /** ID of the user that created this API key */
1264
- created_by?: string | null;
1264
+ created_by?: string | null | undefined;
1265
1265
  /** ID of the API key that created this API key */
1266
- created_by_key?: string | null;
1266
+ created_by_key?: string | null | undefined;
1267
1267
  }
1268
1268
  /** Array of API keys for the organization */
1269
1269
  export type ListOrganizationAPIKeysResponseKeysList = Array<APIKeyPreview>;
@@ -1276,19 +1276,19 @@ export interface ListOrganizationInvitationsRequest {
1276
1276
  /** Unique identifier for a specific organization */
1277
1277
  organizationID: string;
1278
1278
  /** Filter invitations by status */
1279
- status?: ListOrganizationInvitationsRequestStatus | (string & {});
1279
+ status?: ListOrganizationInvitationsRequestStatus | (string & {}) | undefined;
1280
1280
  /** Filter invitations by email address */
1281
- email?: string;
1281
+ email?: string | undefined;
1282
1282
  /** Filter invitations by first name */
1283
- first_name?: string;
1283
+ first_name?: string | undefined;
1284
1284
  /** Filter invitations by last name */
1285
- last_name?: string;
1285
+ last_name?: string | undefined;
1286
1286
  /** Search invitations by email or name */
1287
- search?: string;
1287
+ search?: string | undefined;
1288
1288
  /** Index of the first result to return (0-based offset for pagination) */
1289
- first?: number;
1289
+ first?: number | undefined;
1290
1290
  /** Maximum number of results to return */
1291
- max?: number;
1291
+ max?: number | undefined;
1292
1292
  }
1293
1293
  export type ListOrganizationInvitationsResponseInvitationsList = Array<OrganizationInvitation>;
1294
1294
  export interface ListOrganizationInvitationsResponse {
@@ -1395,7 +1395,7 @@ export interface ProvisionResourceRequest {
1395
1395
  /** Selected Vercel billing plan id. */
1396
1396
  billingPlanId: string;
1397
1397
  /** Partner-provided identifier indicating the source of provisioning. */
1398
- externalId?: string;
1398
+ externalId?: string | undefined;
1399
1399
  }
1400
1400
  /** User-inputted metadata based on the registered metadata schema. */
1401
1401
  export type ProvisionedResourceMetadataMap = {
@@ -1403,9 +1403,9 @@ export type ProvisionedResourceMetadataMap = {
1403
1403
  };
1404
1404
  /** Per-environment values that override value for that Vercel environment. */
1405
1405
  export interface SecretEnvironmentOverrides {
1406
- development?: string;
1407
- preview?: string;
1408
- production?: string;
1406
+ development?: string | undefined;
1407
+ preview?: string | undefined;
1408
+ production?: string | undefined;
1409
1409
  }
1410
1410
  /** A connection secret exposed as an environment variable on connected Vercel projects. */
1411
1411
  export interface Secret {
@@ -1414,7 +1414,7 @@ export interface Secret {
1414
1414
  /** Default value, used when no per-environment override applies. */
1415
1415
  value: string;
1416
1416
  /** Per-environment values that override value for that Vercel environment. */
1417
- environmentOverrides?: SecretEnvironmentOverrides;
1417
+ environmentOverrides?: SecretEnvironmentOverrides | undefined;
1418
1418
  }
1419
1419
  /** Connection secrets that become environment variables on connected projects. */
1420
1420
  export type ProvisionedResourceSecretsList = Array<Secret>;
@@ -1442,21 +1442,21 @@ export interface QueryItem {
1442
1442
  /** SQL query to execute. */
1443
1443
  query: string;
1444
1444
  /** Positional parameters for the query. */
1445
- params?: QueryItemParamsList;
1445
+ params?: QueryItemParamsList | undefined;
1446
1446
  /** Override array mode for this individual query. */
1447
- arrayMode?: boolean;
1447
+ arrayMode?: boolean | undefined;
1448
1448
  }
1449
1449
  /** Array of queries for batch execution within a single transaction. */
1450
1450
  export type QueryRequestQueriesList = Array<QueryItem>;
1451
1451
  export interface QueryRequest {
1452
1452
  /** SQL query to execute (single query mode). */
1453
- query?: string;
1453
+ query?: string | undefined;
1454
1454
  /** Positional parameters for the query (`$1`, `$2`, ...). */
1455
- params?: QueryRequestParamsList;
1455
+ params?: QueryRequestParamsList | undefined;
1456
1456
  /** Array of queries for batch execution within a single transaction. */
1457
- queries?: QueryRequestQueriesList;
1457
+ queries?: QueryRequestQueriesList | undefined;
1458
1458
  /** Override array mode for this query (single query mode only). */
1459
- arrayMode?: boolean;
1459
+ arrayMode?: boolean | undefined;
1460
1460
  }
1461
1461
  /** PostgreSQL column metadata from the row description message. */
1462
1462
  export interface FieldDefinition {
@@ -1554,10 +1554,12 @@ export interface RestoreFromBackupRequest {
1554
1554
  /** Human-readable name of the branch */
1555
1555
  name: string;
1556
1556
  /** Optional description of the branch purpose or contents */
1557
- description?: string;
1558
- scaleToZero?: ScaleToZeroConfiguration;
1559
- backupConfiguration?: BackupConfiguration;
1560
- configuration?: ClusterConfiguration;
1557
+ description?: string | undefined;
1558
+ scaleToZero?: ScaleToZeroConfiguration | undefined;
1559
+ backupConfiguration?: BackupConfiguration | undefined;
1560
+ configuration?: ClusterConfiguration | undefined;
1561
+ /** Point in time to restore the source branch to. It must be in the recovery window that getBackup reports, from earliestRestore to latestRestore. If it is not set, the new branch is restored to the end of the archived WAL at the time the restore runs. */
1562
+ targetTime?: string | undefined;
1561
1563
  }
1562
1564
  export interface RotateBranchCredentialsRequest {
1563
1565
  organizationID: string;
@@ -1580,11 +1582,11 @@ export interface SendMcpRequestRequest {
1580
1582
  /** JSON-RPC protocol version. Always `2.0`. */
1581
1583
  jsonrpc: SendMcpRequestRequestJsonrpc | (string & {});
1582
1584
  /** Request identifier, echoed on the response. Omitted for notifications. */
1583
- id?: SendMcpRequestRequestId;
1585
+ id?: SendMcpRequestRequestId | undefined;
1584
1586
  /** MCP method, such as `initialize`, `tools/list`, or `tools/call`. */
1585
1587
  method: string;
1586
1588
  /** Method parameters as defined by the MCP specification. */
1587
- params?: SendMcpRequestRequestParamsMap;
1589
+ params?: SendMcpRequestRequestParamsMap | undefined;
1588
1590
  }
1589
1591
  /** JSON-RPC protocol version. Always `2.0`. */
1590
1592
  export type JSONRPCResponseJsonrpc = "2.0";
@@ -1601,7 +1603,7 @@ export interface JSONRPCError {
1601
1603
  /** Short description of the error. */
1602
1604
  message: string;
1603
1605
  /** Additional error detail. */
1604
- data?: unknown;
1606
+ data?: unknown | undefined;
1605
1607
  }
1606
1608
  /** A JSON-RPC 2.0 response. Exactly one of `result` or `error` is present. */
1607
1609
  export interface JSONRPCResponse {
@@ -1610,8 +1612,8 @@ export interface JSONRPCResponse {
1610
1612
  /** Identifier of the request this responds to. */
1611
1613
  id: JSONRPCResponseId;
1612
1614
  /** Method result as defined by the MCP specification. */
1613
- result?: JSONRPCResponseResultMap;
1614
- error?: JSONRPCError;
1615
+ result?: JSONRPCResponseResultMap | undefined;
1616
+ error?: JSONRPCError | undefined;
1615
1617
  }
1616
1618
  export interface SetOrganizationMemberRoleRequest {
1617
1619
  /** Unique identifier for a specific organization */
@@ -1658,25 +1660,25 @@ export interface UpdateBranchRequest {
1658
1660
  /** Unique identifier of the branch to update */
1659
1661
  branchID: string;
1660
1662
  /** New name for the branch */
1661
- name?: string;
1663
+ name?: string | undefined;
1662
1664
  /** New description for the branch. Send an empty string to clear it. */
1663
- description?: string;
1665
+ description?: string | undefined;
1664
1666
  /** Number of database replicas to scale to */
1665
- replicas?: number;
1667
+ replicas?: number | undefined;
1666
1668
  /** Branch storage in GiB (gigabytes). The maximum allowed value depends on the organization's storage limit. */
1667
- storage?: number;
1669
+ storage?: number | undefined;
1668
1670
  /** New instance type for the branch */
1669
- instanceType?: string;
1670
- backupConfiguration?: BackupConfiguration;
1671
+ instanceType?: string | undefined;
1672
+ backupConfiguration?: BackupConfiguration | undefined;
1671
1673
  /** Enabled when the branch should be hibernated, disabled if it needs to be reactivated. */
1672
- hibernate?: boolean;
1673
- scaleToZero?: ScaleToZeroConfiguration;
1674
+ hibernate?: boolean | undefined;
1675
+ scaleToZero?: ScaleToZeroConfiguration | undefined;
1674
1676
  /** Arbitrary PostgreSQL configuration parameters for the cluster */
1675
- postgresConfigurationParameters?: UpdateBranchRequestPostgresConfigurationParametersMap;
1677
+ postgresConfigurationParameters?: UpdateBranchRequestPostgresConfigurationParametersMap | undefined;
1676
1678
  /** List of PostgreSQL extensions and libraries to preload */
1677
- preloadLibraries?: UpdateBranchRequestPreloadLibrariesList;
1679
+ preloadLibraries?: UpdateBranchRequestPreloadLibrariesList | undefined;
1678
1680
  /** PostgreSQL image to use for the database instances */
1679
- image?: string;
1681
+ image?: string | undefined;
1680
1682
  }
1681
1683
  export interface UpdateGithubAppInstallationRequest {
1682
1684
  /** Unique identifier of the organization */
@@ -1700,9 +1702,9 @@ export interface UpdateOrganizationRequest {
1700
1702
  /** Unique identifier for a specific organization */
1701
1703
  organizationID: string;
1702
1704
  /** Unique identifier for the organization to update */
1703
- id?: string;
1705
+ id?: string | undefined;
1704
1706
  /** New name for the organization */
1705
- name?: string;
1707
+ name?: string | undefined;
1706
1708
  }
1707
1709
  export interface UpdateOrganizationSSOProviderRequest {
1708
1710
  /** Unique identifier for a specific organization */
@@ -1710,7 +1712,7 @@ export interface UpdateOrganizationSSOProviderRequest {
1710
1712
  /** Alias identifying one of the organization's SSO identity providers */
1711
1713
  providerAlias: string;
1712
1714
  /** OIDC issuer URL. Required for `oidc`, and for `microsoft` where it names the Entra tenant; ignored for `google`. */
1713
- issuer?: string;
1715
+ issuer?: string | undefined;
1714
1716
  /** OAuth client ID the organization registered with the provider */
1715
1717
  client_id: string;
1716
1718
  /** OAuth client secret. Write-only: it is stored in Keycloak and is never returned by this API. */
@@ -1718,8 +1720,8 @@ export interface UpdateOrganizationSSOProviderRequest {
1718
1720
  }
1719
1721
  /** Partial configuration update for a project */
1720
1722
  export interface UpdateProjectConfiguration {
1721
- scaleToZero?: ProjectScaleToZeroConfiguration;
1722
- ipFiltering?: IPFilteringConfiguration;
1723
+ scaleToZero?: ProjectScaleToZeroConfiguration | undefined;
1724
+ ipFiltering?: IPFilteringConfiguration | undefined;
1723
1725
  }
1724
1726
  export interface UpdateProjectRequest {
1725
1727
  /** Unique identifier of the organization containing the project */
@@ -1727,8 +1729,8 @@ export interface UpdateProjectRequest {
1727
1729
  /** Unique identifier of the project to update */
1728
1730
  projectID: string;
1729
1731
  /** New name for the project */
1730
- name?: string;
1731
- configuration?: UpdateProjectConfiguration;
1732
+ name?: string | undefined;
1733
+ configuration?: UpdateProjectConfiguration | undefined;
1732
1734
  }
1733
1735
  /** Scopes granted to the installation. */
1734
1736
  export type UpsertInstallationRequestScopesList = Array<string>;
@@ -1745,16 +1747,16 @@ export interface InstallationCredentials {
1745
1747
  /** Contact details for the account. */
1746
1748
  export interface InstallationAccountContact {
1747
1749
  email: string;
1748
- name?: string;
1750
+ name?: string | undefined;
1749
1751
  }
1750
1752
  /** The Vercel account/team installing the integration. */
1751
1753
  export interface InstallationAccount {
1752
1754
  /** Team name (absent for personal accounts). */
1753
- name?: string;
1755
+ name?: string | undefined;
1754
1756
  /** URL of the account on Vercel. */
1755
1757
  url: string;
1756
1758
  /** Contact details for the account. */
1757
- contact?: InstallationAccountContact;
1759
+ contact?: InstallationAccountContact | undefined;
1758
1760
  }
1759
1761
  export interface UpsertInstallationRequest {
1760
1762
  /** Vercel installation id (icfg_...). */
@@ -1956,7 +1958,7 @@ export type ProvisionResourceError = BadRequest | Forbidden | NotFound | Conflic
1956
1958
  /** Provision a Vercel Marketplace resource Create a resource (a Xata project and its branches) and return it with the connection secrets. Vercel calls this when a customer creates a resource. Idempotent when an Idempotency-Key header is sent: a retry with the same key returns the existing resource unchanged, and reusing the key with a different body is a conflict (409). Without the header there is no stable key, so each call provisions a new resource. */
1957
1959
  export declare const provisionResource: API.OperationMethod<ProvisionResourceRequest, ProvisionedResource, ProvisionResourceError, XataOpContext>;
1958
1960
  export type QueryError = BadRequest | Forbidden | NotFound | Conflict | XataOpError;
1959
- /** Execute SQL query Execute a single SQL query or a batch of queries against a PostgreSQL branch. **Authentication:** send the branch's PostgreSQL connection string in the `Connection-String` header. The control-plane API key (Bearer token) is **not** accepted on the gateway host. **Routing:** the target branch, region, and endpoint type are taken from the hostname embedded in the connection string, which must match the request host. See the `Connection-String` security scheme for the host format. **Single query:** provide `query` (and optional `params`) at the top level. **Batch:** provide `queries` as an array of query objects, or send the request body as a JSON array. Batch queries execute within a single transaction. */
1961
+ /** Execute SQL query Execute a single SQL query or a batch of queries against a PostgreSQL branch. **Authentication:** send the branch's PostgreSQL connection string in the `Connection-String` header. The control-plane API key (Bearer token) is **not** accepted on the gateway host. **Routing:** the target branch, region, and endpoint type are taken from the hostname embedded in the connection string, which must match the request host. See the `Connection-String` security scheme for the host format. **Single query:** provide `query` (and optional `params`) at the top level. **Batch:** provide `queries` as an array of query objects, or send the request body as a JSON array. Batch queries execute within a single transaction. **Errors:** PostgreSQL errors return 400 with their SQLSTATE in `code` and their diagnostic fields. A 503 means the gateway could not reach the database: `08001` when a connection cannot be established and `08006` when an established connection fails. A 503 does not guarantee that replaying a write is safe: a connection failure can leave its outcome unknown. */
1960
1962
  export declare const query: API.OperationMethod<QueryRequest, QueryResponse, QueryError, XataOpContext>;
1961
1963
  export type RegisterMarketplaceError = BadRequest | Conflict | XataOpError;
1962
1964
  /** Register with a cloud marketplace Links the authenticated user to a cloud marketplace subscription. Only one marketplace registration is allowed per user. */
@@ -1971,7 +1973,7 @@ export type ResendOrganizationInvitationError = BadRequest | Forbidden | NotFoun
1971
1973
  /** Resend an invitation Resend a pending invitation with a fresh expiration time. */
1972
1974
  export declare const resendOrganizationInvitation: API.OperationMethod<ResendOrganizationInvitationRequest, ResendOrganizationInvitationResponse, ResendOrganizationInvitationError, XataOpContext>;
1973
1975
  export type RestoreFromBackupError = BadRequest | NotFound | XataOpError;
1974
- /** Create a new branch from a backup of another branch Creates a new backup branch within the specified project. */
1976
+ /** Create a new branch from a backup of another branch Creates a new branch from the continuous backup of the source branch. The source branch does not change. The new branch is created in the region and cell of the source branch, and its parentID is the source branch. */
1975
1977
  export declare const restoreFromBackup: API.OperationMethod<RestoreFromBackupRequest, BranchShortMetadata, RestoreFromBackupError, XataOpContext>;
1976
1978
  export type RotateBranchCredentialsError = BadRequest | NotFound | XataOpError;
1977
1979
  /** Rotate branch credentials Triggers a credential rotation for the branch database user. The new credentials can be retrieved via the credentials endpoint after rotation completes. */