@distilled.cloud/xata 1.0.0-rc.18 → 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.
@@ -75,9 +75,9 @@ export interface LogFilter {
75
75
  /** Match operator. */
76
76
  op: LogFilterOp | (string & {});
77
77
  /** Used with `op: in`. */
78
- values?: LogFilterValuesList;
78
+ values?: LogFilterValuesList | undefined;
79
79
  /** Used with the body operators. */
80
- value?: string;
80
+ value?: string | undefined;
81
81
  }
82
82
  /** Filters applied to log entries. Multiple filters are combined with AND. */
83
83
  export type BranchLogsRequestFiltersList = Array<LogFilter>;
@@ -90,20 +90,20 @@ export interface BranchLogsRequest {
90
90
  /** End time */
91
91
  end: string;
92
92
  /** Filters applied to log entries. Multiple filters are combined with AND. */
93
- filters?: BranchLogsRequestFiltersList;
94
- limit?: number;
93
+ filters?: BranchLogsRequestFiltersList | undefined;
94
+ limit?: number | undefined;
95
95
  /** Pagination cursor from a previous response */
96
- cursor?: string;
96
+ cursor?: string | undefined;
97
97
  }
98
98
  /** Log level enumeration */
99
99
  export type LogLevel = "debug" | "info" | "warning" | "error";
100
100
  export interface LogEntry {
101
101
  timestamp: string;
102
102
  instanceID: string;
103
- level?: LogLevel;
103
+ level?: LogLevel | undefined;
104
104
  message: string;
105
105
  /** Name of the PostgreSQL process that emitted the log */
106
- process?: string;
106
+ process?: string | undefined;
107
107
  }
108
108
  export type BranchLogsLogsList = Array<LogEntry>;
109
109
  /** A collection of logs for each of the instances of a branch */
@@ -151,7 +151,7 @@ export interface BranchMetricsRequest {
151
151
  /** List of metric names to query. */
152
152
  metrics: BranchMetricsRequestMetricsList;
153
153
  /** List of instance IDs to query */
154
- instances?: BranchMetricsRequestInstancesList;
154
+ instances?: BranchMetricsRequestInstancesList | undefined;
155
155
  /** 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. */
156
156
  aggregations: BranchMetricsRequestAggregationsList;
157
157
  }
@@ -212,11 +212,11 @@ export interface OrganizationSSODomain {
212
212
  /** Whether control of the domain has been proven through DNS */
213
213
  verified: boolean;
214
214
  /** The DNS record that proves control of the domain. It must stay published while the domain is verified. */
215
- verification?: OrganizationSSODomainVerification | null;
215
+ verification?: OrganizationSSODomainVerification | null | undefined;
216
216
  /** When the daily recheck first found the record missing from a verified domain. */
217
- missing_since?: string | null;
217
+ missing_since?: string | null | undefined;
218
218
  /** When the domain stops being verified if the record is still missing. */
219
- revokes_at?: string | null;
219
+ revokes_at?: string | null | undefined;
220
220
  }
221
221
  export interface CreateBillingCheckoutSessionRequest {
222
222
  /** Unique identifier for a specific organization */
@@ -243,10 +243,10 @@ export interface ScaleToZeroConfiguration {
243
243
  }
244
244
  /** Details about the branch continuous backup configuration */
245
245
  export interface BackupConfiguration {
246
- /** how long are we keeping the backups around for */
247
- retentionPeriod?: number;
248
- /** time of day/week when we are taking a full backup */
249
- backupTime?: string;
246
+ /** 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. */
247
+ retentionPeriod?: number | undefined;
248
+ /** 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. */
249
+ backupTime?: string | undefined;
250
250
  }
251
251
  /** The mode used to discriminate between types of branches. */
252
252
  export type CreateBranchRequestMode = "inherit" | "custom";
@@ -258,9 +258,9 @@ export interface CreateBranchRequest {
258
258
  /** Human-readable name for the new branch */
259
259
  name: string;
260
260
  /** Optional description for the branch purpose or contents. An empty string is stored as no description. */
261
- description?: string;
262
- scaleToZero?: ScaleToZeroConfiguration;
263
- backupConfiguration?: BackupConfiguration;
261
+ description?: string | undefined;
262
+ scaleToZero?: ScaleToZeroConfiguration | undefined;
263
+ backupConfiguration?: BackupConfiguration | undefined;
264
264
  /** The mode used to discriminate between types of branches. */
265
265
  mode: CreateBranchRequestMode | (string & {});
266
266
  }
@@ -271,15 +271,15 @@ export interface BranchShortMetadata {
271
271
  /** Human-readable name of the branch */
272
272
  name: string;
273
273
  /** Optional description of the branch purpose or contents */
274
- description?: string;
274
+ description?: string | undefined;
275
275
  /** Timestamp when the branch was created */
276
276
  createdAt: string;
277
277
  /** Timestamp when the branch was last updated */
278
278
  updatedAt: string;
279
279
  /** Identifier of the parent branch if this is a derived branch, null otherwise */
280
- parentID?: string | null;
280
+ parentID?: string | null | undefined;
281
281
  /** 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. */
282
- connectionString?: string | Redacted.Redacted<string> | null;
282
+ connectionString?: string | Redacted.Redacted<string> | null | undefined;
283
283
  /** Geographic region where the branch is deployed */
284
284
  region: string;
285
285
  /** Whether the branch allows public access without authentication */
@@ -350,17 +350,17 @@ export interface OrganizationStatus {
350
350
  /** Indicates if the organization has been disabled by an admin */
351
351
  disabled_by_admin: boolean;
352
352
  /** Reason for the current admin status */
353
- admin_reason?: string;
353
+ admin_reason?: string | undefined;
354
354
  /** Indicates the status of the organization from a billing perspective */
355
355
  billing_status: OrganizationStatusBillingStatus;
356
356
  /** Reason for the current billing status */
357
- billing_reason?: string;
357
+ billing_reason?: string | undefined;
358
358
  /** Usage tier of the organization. t1 is the default for new organizations, t2 is assigned when a valid payment method is on file. */
359
359
  usage_tier: OrganizationStatusUsageTier;
360
360
  /** Timestamp of the last update to the organization's status */
361
361
  last_updated: string;
362
362
  /** Timestamp when the organization was created */
363
- created_at?: string;
363
+ created_at?: string | undefined;
364
364
  }
365
365
  /** Marketplace provider associated with an organization. */
366
366
  export type OrganizationMarketplaceProvider = "aws";
@@ -373,7 +373,7 @@ export interface Organization {
373
373
  /** Current status of the organization */
374
374
  status: OrganizationStatus;
375
375
  /** Marketplace provider for this organization (e.g. "aws"), if billed through a marketplace */
376
- marketplace?: OrganizationMarketplaceProvider | null;
376
+ marketplace?: OrganizationMarketplaceProvider | null | undefined;
377
377
  }
378
378
  /** Optional scopes assigned to the API key */
379
379
  export type CreateOrganizationAPIKeyRequestScopesList = Array<string>;
@@ -386,13 +386,13 @@ export interface CreateOrganizationAPIKeyRequest {
386
386
  organizationID: string;
387
387
  name: string;
388
388
  /** Expiration date for the API key, null for no expiry */
389
- expiry?: string | null;
389
+ expiry?: string | null | undefined;
390
390
  /** Optional scopes assigned to the API key */
391
- scopes?: CreateOrganizationAPIKeyRequestScopesList;
391
+ scopes?: CreateOrganizationAPIKeyRequestScopesList | undefined;
392
392
  /** Limit access to these projects */
393
- projects?: CreateOrganizationAPIKeyRequestProjectsList;
393
+ projects?: CreateOrganizationAPIKeyRequestProjectsList | undefined;
394
394
  /** Limit access to these branches */
395
- branches?: CreateOrganizationAPIKeyRequestBranchesList;
395
+ branches?: CreateOrganizationAPIKeyRequestBranchesList | undefined;
396
396
  }
397
397
  export type FullAPIKeyScopesList = Array<string>;
398
398
  /** Projects this API key has access to */
@@ -416,9 +416,9 @@ export interface FullAPIKey {
416
416
  /** The actual API key token */
417
417
  token: string;
418
418
  /** ID of the user that created this API key */
419
- created_by?: string | null;
419
+ created_by?: string | null | undefined;
420
420
  /** ID of the API key that created this API key */
421
- created_by_key?: string | null;
421
+ created_by_key?: string | null | undefined;
422
422
  }
423
423
  export interface CreateOrganizationAPIKeyResponse {
424
424
  key: FullAPIKey;
@@ -431,7 +431,7 @@ export interface CreateOrganizationInvitationRequest {
431
431
  /** Email address of the user to invite */
432
432
  email: string;
433
433
  /** Role the user holds once they accept the invitation. Optional; when omitted, the least privileged role offered applies */
434
- role?: OrganizationRoleName | (string & {});
434
+ role?: OrganizationRoleName | (string & {}) | undefined;
435
435
  }
436
436
  export interface CreateOrganizationInvitationResponse {}
437
437
  /** 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. */
@@ -443,7 +443,7 @@ export interface CreateOrganizationSSOProviderRequest {
443
443
  /** The verified email domain this provider will serve. */
444
444
  domain: string;
445
445
  /** 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. */
446
- issuer?: string;
446
+ issuer?: string | undefined;
447
447
  /** OAuth client ID the organization registered with the provider */
448
448
  client_id: string;
449
449
  /** OAuth client secret. Write-only: it is stored in Keycloak and is never returned by this API. */
@@ -461,7 +461,7 @@ export interface OrganizationSSOProvider {
461
461
  /** 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. */
462
462
  enforced: boolean;
463
463
  /** OIDC issuer URL, without the /.well-known suffix. */
464
- issuer?: string;
464
+ issuer?: string | undefined;
465
465
  /** OAuth client ID the organization registered with the provider. */
466
466
  client_id: string;
467
467
  }
@@ -474,7 +474,7 @@ export interface CidrEntry {
474
474
  /** IP address or CIDR block (e.g., "192.168.0.0/24") */
475
475
  cidr: string;
476
476
  /** Optional label for the CIDR entry */
477
- description?: string;
477
+ description?: string | undefined;
478
478
  }
479
479
  export type IPFilteringConfigurationCidrList = Array<CidrEntry>;
480
480
  /** Configuration for IP filtering on project branches */
@@ -486,14 +486,14 @@ export interface IPFilteringConfiguration {
486
486
  /** Configuration details for a project, including its scale to zero settings */
487
487
  export interface ProjectConfiguration {
488
488
  scaleToZero: ProjectScaleToZeroConfiguration;
489
- ipFiltering?: IPFilteringConfiguration;
489
+ ipFiltering?: IPFilteringConfiguration | undefined;
490
490
  }
491
491
  export interface CreateProjectRequest {
492
492
  /** Unique identifier of the organization to create the project in */
493
493
  organizationID: string;
494
494
  /** Human-readable name for the new project */
495
495
  name: string;
496
- configuration?: ProjectConfiguration;
496
+ configuration?: ProjectConfiguration | undefined;
497
497
  }
498
498
  /** Details of a project including its ID, name, and creation/update timestamps */
499
499
  export interface Project {
@@ -516,13 +516,13 @@ export type CreateUserAPIKeyRequestBranchesList = Array<string>;
516
516
  export interface CreateUserAPIKeyRequest {
517
517
  name: string;
518
518
  /** Expiration date for the API key, null for no expiry */
519
- expiry?: string | null;
519
+ expiry?: string | null | undefined;
520
520
  /** Optional scopes assigned to the API key */
521
- scopes?: CreateUserAPIKeyRequestScopesList;
521
+ scopes?: CreateUserAPIKeyRequestScopesList | undefined;
522
522
  /** Limit access to these projects */
523
- projects?: CreateUserAPIKeyRequestProjectsList;
523
+ projects?: CreateUserAPIKeyRequestProjectsList | undefined;
524
524
  /** Limit access to these branches */
525
- branches?: CreateUserAPIKeyRequestBranchesList;
525
+ branches?: CreateUserAPIKeyRequestBranchesList | undefined;
526
526
  }
527
527
  export interface CreateUserAPIKeyResponse {
528
528
  key: FullAPIKey;
@@ -549,9 +549,9 @@ export interface DeleteInstallationRequest {
549
549
  /** Vercel installation id (icfg_...). */
550
550
  installationId: string;
551
551
  /** Whether to delete the installation's resources along with the installation. */
552
- cascadeResourceDeletion?: boolean;
552
+ cascadeResourceDeletion?: boolean | undefined;
553
553
  /** The reason for deleting the installation. */
554
- reason?: string;
554
+ reason?: string | undefined;
555
555
  }
556
556
  export interface DeleteInstallationResponse {}
557
557
  export interface DeleteOrganizationRequest {
@@ -632,7 +632,7 @@ export interface ClusterLifecycle {
632
632
  /** Current operational state of the cluster (ready, creating, updating, etc.) */
633
633
  state: ClusterLifecycleState;
634
634
  /** Reason for the current lifecycle state, especially useful for non-ready states */
635
- reason?: string;
635
+ reason?: string | undefined;
636
636
  /** Current phase within the lifecycle process */
637
637
  phase: string;
638
638
  }
@@ -656,8 +656,8 @@ export interface BranchStatus {
656
656
  /** Type of status of the branch */
657
657
  statusType: BranchStatusStatusType;
658
658
  /** Human-readable message explaining the current status */
659
- message?: string;
660
- lifecycle?: ClusterLifecycle;
659
+ message?: string | undefined;
660
+ lifecycle?: ClusterLifecycle | undefined;
661
661
  /** Total number of database instances in the cluster */
662
662
  instanceCount: number;
663
663
  /** Number of database instances that are ready and operational */
@@ -676,7 +676,7 @@ export interface ClusterConfiguration {
676
676
  /** Geographic region where the cluster will be deployed */
677
677
  region: string;
678
678
  /** Branch storage in GiB (gigabytes) */
679
- storage?: number;
679
+ storage?: number | undefined;
680
680
  /** The instance type according to the xata instance types available */
681
681
  instanceType: string;
682
682
  /** PostgreSQL image to use for the database instances */
@@ -684,9 +684,11 @@ export interface ClusterConfiguration {
684
684
  /** Number of replicas in the branch. Every child branch is created with no replicas. This can be updated. */
685
685
  replicas: number;
686
686
  /** Arbitrary PostgreSQL configuration parameters for the cluster */
687
- postgresConfigurationParameters?: ClusterConfigurationPostgresConfigurationParametersMap;
687
+ postgresConfigurationParameters?:
688
+ | ClusterConfigurationPostgresConfigurationParametersMap
689
+ | undefined;
688
690
  /** List of PostgreSQL extensions and libraries to preload */
689
- preloadLibraries?: ClusterConfigurationPreloadLibrariesList;
691
+ preloadLibraries?: ClusterConfigurationPreloadLibrariesList | undefined;
690
692
  }
691
693
  /** Detailed metadata about a branch, including its status and configuration */
692
694
  export interface BranchMetadata {
@@ -695,13 +697,13 @@ export interface BranchMetadata {
695
697
  /** Human-readable name of the branch */
696
698
  name: string;
697
699
  /** Optional description of the branch purpose or contents */
698
- description?: string;
700
+ description?: string | undefined;
699
701
  /** Timestamp when the branch was created */
700
702
  createdAt: string;
701
703
  /** Timestamp when the branch was last updated */
702
704
  updatedAt: string;
703
705
  /** Identifier of the parent branch if this is a derived branch, null otherwise */
704
- parentID?: string | null;
706
+ parentID?: string | null | undefined;
705
707
  /** Geographic region where the branch is deployed */
706
708
  region: string;
707
709
  status: BranchStatus;
@@ -713,7 +715,7 @@ export interface BranchMetadata {
713
715
  backupsEnabled: boolean;
714
716
  scaleToZero: ScaleToZeroConfiguration;
715
717
  configuration: ClusterConfiguration;
716
- backupConfiguration?: BackupConfiguration;
718
+ backupConfiguration?: BackupConfiguration | undefined;
717
719
  }
718
720
  export interface GetBackupRequest {
719
721
  /** Unique identifier of the organization containing the project */
@@ -727,12 +729,12 @@ export interface GetBackupRequest {
727
729
  export interface BackupMetadata {
728
730
  /** unique identifier for the backup */
729
731
  id: string;
730
- /** the branchID the branch associated with the backup */
732
+ /** ID of the branch that the backup belongs to */
731
733
  branchID: string;
732
- /** the earlies point in time available for restoring the branch */
733
- earliestRestore?: string;
734
- /** the latest point in time available for restoring the branch */
735
- latestRestore?: string;
734
+ /** The earliest point in time that the branch can be restored to. It is absent until the first backup of the branch completes. */
735
+ earliestRestore?: string | undefined;
736
+ /** 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. */
737
+ latestRestore?: string | undefined;
736
738
  /** description of the backup */
737
739
  description: string;
738
740
  }
@@ -802,9 +804,9 @@ export interface GetBillingInvoicesRequest {
802
804
  /** Unique identifier for a specific organization */
803
805
  organizationID: string;
804
806
  /** Pagination cursor from a previous response */
805
- cursor?: string;
807
+ cursor?: string | undefined;
806
808
  /** Number of invoices to fetch */
807
- limit?: number;
809
+ limit?: number | undefined;
808
810
  }
809
811
  export type BillingInvoiceStatus = "draft" | "issued" | "paid" | "void" | "synced";
810
812
  export interface BillingInvoice {
@@ -847,7 +849,7 @@ export interface GetBranchCredentialsRequest {
847
849
  projectID: string;
848
850
  branchID: string;
849
851
  /** Username that the credentials requested for, defaults to `xata` */
850
- username?: string;
852
+ username?: string | undefined;
851
853
  }
852
854
  /** Credentials and connection details for accessing a branch */
853
855
  export interface BranchCredentials {
@@ -886,11 +888,11 @@ export type PostgresConfigParameterAcceptableRangeEnumValuesList = Array<string>
886
888
  /** Information about the acceptable range of values for this parameter */
887
889
  export interface PostgresConfigParameterAcceptableRange {
888
890
  /** Minimum allowed value (if applicable) */
889
- minValue?: string;
891
+ minValue?: string | undefined;
890
892
  /** Maximum allowed value (if applicable) */
891
- maxValue?: string;
893
+ maxValue?: string | undefined;
892
894
  /** List of allowed enum values (if applicable) */
893
- enumValues?: PostgresConfigParameterAcceptableRangeEnumValuesList;
895
+ enumValues?: PostgresConfigParameterAcceptableRangeEnumValuesList | undefined;
894
896
  }
895
897
  /** The source of the default value */
896
898
  export type PostgresConfigParameterDefaultValueSource = "postgres" | "instance_type";
@@ -905,7 +907,7 @@ export interface PostgresConfigParameter {
905
907
  /** The section/category this parameter belongs to */
906
908
  section: string;
907
909
  /** Information about the acceptable range of values for this parameter */
908
- acceptableRange?: PostgresConfigParameterAcceptableRange;
910
+ acceptableRange?: PostgresConfigParameterAcceptableRange | undefined;
909
911
  /** The default value for this parameter */
910
912
  defaultValue: string;
911
913
  /** The source of the default value */
@@ -917,7 +919,7 @@ export interface PostgresConfigParameter {
917
919
  /** Optional recommendation for this parameter (currently empty) */
918
920
  recommendation: string;
919
921
  /** Whether a database restart is required for this parameter change to take effect */
920
- restartRequired?: boolean;
922
+ restartRequired?: boolean | undefined;
921
923
  }
922
924
  /** Array of PostgreSQL configuration parameters with detailed information */
923
925
  export type PostgresConfigDetailsParametersList = Array<PostgresConfigParameter>;
@@ -958,9 +960,9 @@ export interface OrganizationInvitation {
958
960
  /** Email address of the invited user */
959
961
  email: string;
960
962
  /** First name of the invited user */
961
- first_name?: string | null;
963
+ first_name?: string | null | undefined;
962
964
  /** Last name of the invited user */
963
- last_name?: string | null;
965
+ last_name?: string | null | undefined;
964
966
  /** Timestamp when the invitation was created */
965
967
  created_at: string;
966
968
  /** Timestamp when the invitation expires */
@@ -1075,7 +1077,7 @@ export interface GetResourceRequest {
1075
1077
  }
1076
1078
  /** User-inputted metadata based on the registered metadata schema. */
1077
1079
  export type ResourceMetadataMap = { [key: string]: unknown | undefined };
1078
- /** 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. */
1080
+ /** A provisioned Vercel Marketplace resource. Matches Vercel's Partner API "Get Resource" response. Secrets/connection info are returned by Provision Resource, not here. */
1079
1081
  export interface Resource {
1080
1082
  /** The partner-specific resource id. */
1081
1083
  id: string;
@@ -1110,11 +1112,11 @@ export interface ListBillingPlansForProductRequest {
1110
1112
  /** Vercel product slug (e.g. xata-postgres). */
1111
1113
  productSlug: string;
1112
1114
  /** Opaque metadata forwarded by Vercel. */
1113
- metadata?: string;
1115
+ metadata?: string | undefined;
1114
1116
  }
1115
1117
  export interface PlanDetail {
1116
1118
  label: string;
1117
- value?: string;
1119
+ value?: string | undefined;
1118
1120
  }
1119
1121
  export type BillingPlanDetailsList = Array<PlanDetail>;
1120
1122
  export type BillingPlanHighlightedDetailsList = Array<PlanDetail>;
@@ -1132,20 +1134,20 @@ export interface BillingPlan {
1132
1134
  name: string;
1133
1135
  description: string;
1134
1136
  /** Plan scope; installation-level plans require enablement on the integration. */
1135
- scope?: string;
1137
+ scope?: string | undefined;
1136
1138
  /** Subscription plans only. false means the plan is completely free. */
1137
- paymentMethodRequired?: boolean;
1139
+ paymentMethodRequired?: boolean | undefined;
1138
1140
  /** Subscription + paymentMethodRequired. Amount used to test the payment method; never charged. */
1139
- preauthorizationAmount?: number;
1141
+ preauthorizationAmount?: number | undefined;
1140
1142
  /** Subscription + paymentMethodRequired. Amount invoiced immediately at sign-up (decimal USD string). */
1141
- initialCharge?: string;
1143
+ initialCharge?: string | undefined;
1142
1144
  /** Display cost for fixed-cost plans, e.g. "$20.00/month". Omitted for usage-based plans. */
1143
- cost?: string;
1144
- details?: BillingPlanDetailsList;
1145
- highlightedDetails?: BillingPlanHighlightedDetailsList;
1146
- quote?: BillingPlanQuoteList;
1147
- effectiveDate?: string;
1148
- disabled?: boolean;
1145
+ cost?: string | undefined;
1146
+ details?: BillingPlanDetailsList | undefined;
1147
+ highlightedDetails?: BillingPlanHighlightedDetailsList | undefined;
1148
+ quote?: BillingPlanQuoteList | undefined;
1149
+ effectiveDate?: string | undefined;
1150
+ disabled?: boolean | undefined;
1149
1151
  }
1150
1152
  export type ListBillingPlansResponsePlansList = Array<BillingPlan>;
1151
1153
  /** The billing plans available for a product. */
@@ -1165,13 +1167,13 @@ export interface BranchListMetadata {
1165
1167
  /** Human-readable name of the branch */
1166
1168
  name: string;
1167
1169
  /** Optional description of the branch purpose or contents */
1168
- description?: string;
1170
+ description?: string | undefined;
1169
1171
  /** Timestamp when the branch was created */
1170
1172
  createdAt: string;
1171
1173
  /** Timestamp when the branch was last updated */
1172
1174
  updatedAt: string;
1173
1175
  /** Identifier of the parent branch if this is a derived branch, null otherwise */
1174
- parentID?: string | null;
1176
+ parentID?: string | null | undefined;
1175
1177
  /** Geographic region where the branch is deployed */
1176
1178
  region: string;
1177
1179
  /** Whether the branch allows public access without authentication */
@@ -1191,7 +1193,7 @@ export interface ListExtensionsRequest {
1191
1193
  /** Image for which we list extensions */
1192
1194
  image: string;
1193
1195
  /** Region to list extensions for image in */
1194
- region?: string;
1196
+ region?: string | undefined;
1195
1197
  }
1196
1198
  /** type of installation */
1197
1199
  export type ExtensionType = "extension" | "plugin" | "module";
@@ -1230,7 +1232,7 @@ export interface ListImagesRequest {
1230
1232
  /** Unique identifier of the organization to check image availability */
1231
1233
  organizationID: string;
1232
1234
  /** Region to check image availability for organization */
1233
- region?: string;
1235
+ region?: string | undefined;
1234
1236
  }
1235
1237
  /** region where this instance type is available */
1236
1238
  export type ImageRegionList = Array<string>;
@@ -1243,7 +1245,7 @@ export interface Image {
1243
1245
  /** full postgres version */
1244
1246
  fullVersion: string;
1245
1247
  /** region where this instance type is available */
1246
- region?: ImageRegionList;
1248
+ region?: ImageRegionList | undefined;
1247
1249
  }
1248
1250
  /** Array of available images with their properties */
1249
1251
  export type ListImagesResponseImagesList = Array<Image>;
@@ -1302,9 +1304,9 @@ export interface APIKeyPreview {
1302
1304
  /** Timestamp of the last time the key was used (null if never) */
1303
1305
  last_used: string | null;
1304
1306
  /** ID of the user that created this API key */
1305
- created_by?: string | null;
1307
+ created_by?: string | null | undefined;
1306
1308
  /** ID of the API key that created this API key */
1307
- created_by_key?: string | null;
1309
+ created_by_key?: string | null | undefined;
1308
1310
  }
1309
1311
  /** Array of API keys for the organization */
1310
1312
  export type ListOrganizationAPIKeysResponseKeysList = Array<APIKeyPreview>;
@@ -1317,19 +1319,19 @@ export interface ListOrganizationInvitationsRequest {
1317
1319
  /** Unique identifier for a specific organization */
1318
1320
  organizationID: string;
1319
1321
  /** Filter invitations by status */
1320
- status?: ListOrganizationInvitationsRequestStatus | (string & {});
1322
+ status?: ListOrganizationInvitationsRequestStatus | (string & {}) | undefined;
1321
1323
  /** Filter invitations by email address */
1322
- email?: string;
1324
+ email?: string | undefined;
1323
1325
  /** Filter invitations by first name */
1324
- first_name?: string;
1326
+ first_name?: string | undefined;
1325
1327
  /** Filter invitations by last name */
1326
- last_name?: string;
1328
+ last_name?: string | undefined;
1327
1329
  /** Search invitations by email or name */
1328
- search?: string;
1330
+ search?: string | undefined;
1329
1331
  /** Index of the first result to return (0-based offset for pagination) */
1330
- first?: number;
1332
+ first?: number | undefined;
1331
1333
  /** Maximum number of results to return */
1332
- max?: number;
1334
+ max?: number | undefined;
1333
1335
  }
1334
1336
  export type ListOrganizationInvitationsResponseInvitationsList = Array<OrganizationInvitation>;
1335
1337
  export interface ListOrganizationInvitationsResponse {
@@ -1430,15 +1432,15 @@ export interface ProvisionResourceRequest {
1430
1432
  /** Selected Vercel billing plan id. */
1431
1433
  billingPlanId: string;
1432
1434
  /** Partner-provided identifier indicating the source of provisioning. */
1433
- externalId?: string;
1435
+ externalId?: string | undefined;
1434
1436
  }
1435
1437
  /** User-inputted metadata based on the registered metadata schema. */
1436
1438
  export type ProvisionedResourceMetadataMap = { [key: string]: unknown | undefined };
1437
1439
  /** Per-environment values that override value for that Vercel environment. */
1438
1440
  export interface SecretEnvironmentOverrides {
1439
- development?: string;
1440
- preview?: string;
1441
- production?: string;
1441
+ development?: string | undefined;
1442
+ preview?: string | undefined;
1443
+ production?: string | undefined;
1442
1444
  }
1443
1445
  /** A connection secret exposed as an environment variable on connected Vercel projects. */
1444
1446
  export interface Secret {
@@ -1447,7 +1449,7 @@ export interface Secret {
1447
1449
  /** Default value, used when no per-environment override applies. */
1448
1450
  value: string;
1449
1451
  /** Per-environment values that override value for that Vercel environment. */
1450
- environmentOverrides?: SecretEnvironmentOverrides;
1452
+ environmentOverrides?: SecretEnvironmentOverrides | undefined;
1451
1453
  }
1452
1454
  /** Connection secrets that become environment variables on connected projects. */
1453
1455
  export type ProvisionedResourceSecretsList = Array<Secret>;
@@ -1475,21 +1477,21 @@ export interface QueryItem {
1475
1477
  /** SQL query to execute. */
1476
1478
  query: string;
1477
1479
  /** Positional parameters for the query. */
1478
- params?: QueryItemParamsList;
1480
+ params?: QueryItemParamsList | undefined;
1479
1481
  /** Override array mode for this individual query. */
1480
- arrayMode?: boolean;
1482
+ arrayMode?: boolean | undefined;
1481
1483
  }
1482
1484
  /** Array of queries for batch execution within a single transaction. */
1483
1485
  export type QueryRequestQueriesList = Array<QueryItem>;
1484
1486
  export interface QueryRequest {
1485
1487
  /** SQL query to execute (single query mode). */
1486
- query?: string;
1488
+ query?: string | undefined;
1487
1489
  /** Positional parameters for the query (`$1`, `$2`, ...). */
1488
- params?: QueryRequestParamsList;
1490
+ params?: QueryRequestParamsList | undefined;
1489
1491
  /** Array of queries for batch execution within a single transaction. */
1490
- queries?: QueryRequestQueriesList;
1492
+ queries?: QueryRequestQueriesList | undefined;
1491
1493
  /** Override array mode for this query (single query mode only). */
1492
- arrayMode?: boolean;
1494
+ arrayMode?: boolean | undefined;
1493
1495
  }
1494
1496
  /** PostgreSQL column metadata from the row description message. */
1495
1497
  export interface FieldDefinition {
@@ -1583,10 +1585,12 @@ export interface RestoreFromBackupRequest {
1583
1585
  /** Human-readable name of the branch */
1584
1586
  name: string;
1585
1587
  /** Optional description of the branch purpose or contents */
1586
- description?: string;
1587
- scaleToZero?: ScaleToZeroConfiguration;
1588
- backupConfiguration?: BackupConfiguration;
1589
- configuration?: ClusterConfiguration;
1588
+ description?: string | undefined;
1589
+ scaleToZero?: ScaleToZeroConfiguration | undefined;
1590
+ backupConfiguration?: BackupConfiguration | undefined;
1591
+ configuration?: ClusterConfiguration | undefined;
1592
+ /** 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. */
1593
+ targetTime?: string | undefined;
1590
1594
  }
1591
1595
  export interface RotateBranchCredentialsRequest {
1592
1596
  organizationID: string;
@@ -1606,11 +1610,11 @@ export interface SendMcpRequestRequest {
1606
1610
  /** JSON-RPC protocol version. Always `2.0`. */
1607
1611
  jsonrpc: SendMcpRequestRequestJsonrpc | (string & {});
1608
1612
  /** Request identifier, echoed on the response. Omitted for notifications. */
1609
- id?: SendMcpRequestRequestId;
1613
+ id?: SendMcpRequestRequestId | undefined;
1610
1614
  /** MCP method, such as `initialize`, `tools/list`, or `tools/call`. */
1611
1615
  method: string;
1612
1616
  /** Method parameters as defined by the MCP specification. */
1613
- params?: SendMcpRequestRequestParamsMap;
1617
+ params?: SendMcpRequestRequestParamsMap | undefined;
1614
1618
  }
1615
1619
  /** JSON-RPC protocol version. Always `2.0`. */
1616
1620
  export type JSONRPCResponseJsonrpc = "2.0";
@@ -1625,7 +1629,7 @@ export interface JSONRPCError {
1625
1629
  /** Short description of the error. */
1626
1630
  message: string;
1627
1631
  /** Additional error detail. */
1628
- data?: unknown;
1632
+ data?: unknown | undefined;
1629
1633
  }
1630
1634
  /** A JSON-RPC 2.0 response. Exactly one of `result` or `error` is present. */
1631
1635
  export interface JSONRPCResponse {
@@ -1634,8 +1638,8 @@ export interface JSONRPCResponse {
1634
1638
  /** Identifier of the request this responds to. */
1635
1639
  id: JSONRPCResponseId;
1636
1640
  /** Method result as defined by the MCP specification. */
1637
- result?: JSONRPCResponseResultMap;
1638
- error?: JSONRPCError;
1641
+ result?: JSONRPCResponseResultMap | undefined;
1642
+ error?: JSONRPCError | undefined;
1639
1643
  }
1640
1644
  export interface SetOrganizationMemberRoleRequest {
1641
1645
  /** Unique identifier for a specific organization */
@@ -1678,25 +1682,27 @@ export interface UpdateBranchRequest {
1678
1682
  /** Unique identifier of the branch to update */
1679
1683
  branchID: string;
1680
1684
  /** New name for the branch */
1681
- name?: string;
1685
+ name?: string | undefined;
1682
1686
  /** New description for the branch. Send an empty string to clear it. */
1683
- description?: string;
1687
+ description?: string | undefined;
1684
1688
  /** Number of database replicas to scale to */
1685
- replicas?: number;
1689
+ replicas?: number | undefined;
1686
1690
  /** Branch storage in GiB (gigabytes). The maximum allowed value depends on the organization's storage limit. */
1687
- storage?: number;
1691
+ storage?: number | undefined;
1688
1692
  /** New instance type for the branch */
1689
- instanceType?: string;
1690
- backupConfiguration?: BackupConfiguration;
1693
+ instanceType?: string | undefined;
1694
+ backupConfiguration?: BackupConfiguration | undefined;
1691
1695
  /** Enabled when the branch should be hibernated, disabled if it needs to be reactivated. */
1692
- hibernate?: boolean;
1693
- scaleToZero?: ScaleToZeroConfiguration;
1696
+ hibernate?: boolean | undefined;
1697
+ scaleToZero?: ScaleToZeroConfiguration | undefined;
1694
1698
  /** Arbitrary PostgreSQL configuration parameters for the cluster */
1695
- postgresConfigurationParameters?: UpdateBranchRequestPostgresConfigurationParametersMap;
1699
+ postgresConfigurationParameters?:
1700
+ | UpdateBranchRequestPostgresConfigurationParametersMap
1701
+ | undefined;
1696
1702
  /** List of PostgreSQL extensions and libraries to preload */
1697
- preloadLibraries?: UpdateBranchRequestPreloadLibrariesList;
1703
+ preloadLibraries?: UpdateBranchRequestPreloadLibrariesList | undefined;
1698
1704
  /** PostgreSQL image to use for the database instances */
1699
- image?: string;
1705
+ image?: string | undefined;
1700
1706
  }
1701
1707
  export interface UpdateGithubAppInstallationRequest {
1702
1708
  /** Unique identifier of the organization */
@@ -1720,9 +1726,9 @@ export interface UpdateOrganizationRequest {
1720
1726
  /** Unique identifier for a specific organization */
1721
1727
  organizationID: string;
1722
1728
  /** Unique identifier for the organization to update */
1723
- id?: string;
1729
+ id?: string | undefined;
1724
1730
  /** New name for the organization */
1725
- name?: string;
1731
+ name?: string | undefined;
1726
1732
  }
1727
1733
  export interface UpdateOrganizationSSOProviderRequest {
1728
1734
  /** Unique identifier for a specific organization */
@@ -1730,7 +1736,7 @@ export interface UpdateOrganizationSSOProviderRequest {
1730
1736
  /** Alias identifying one of the organization's SSO identity providers */
1731
1737
  providerAlias: string;
1732
1738
  /** OIDC issuer URL. Required for `oidc`, and for `microsoft` where it names the Entra tenant; ignored for `google`. */
1733
- issuer?: string;
1739
+ issuer?: string | undefined;
1734
1740
  /** OAuth client ID the organization registered with the provider */
1735
1741
  client_id: string;
1736
1742
  /** OAuth client secret. Write-only: it is stored in Keycloak and is never returned by this API. */
@@ -1738,8 +1744,8 @@ export interface UpdateOrganizationSSOProviderRequest {
1738
1744
  }
1739
1745
  /** Partial configuration update for a project */
1740
1746
  export interface UpdateProjectConfiguration {
1741
- scaleToZero?: ProjectScaleToZeroConfiguration;
1742
- ipFiltering?: IPFilteringConfiguration;
1747
+ scaleToZero?: ProjectScaleToZeroConfiguration | undefined;
1748
+ ipFiltering?: IPFilteringConfiguration | undefined;
1743
1749
  }
1744
1750
  export interface UpdateProjectRequest {
1745
1751
  /** Unique identifier of the organization containing the project */
@@ -1747,8 +1753,8 @@ export interface UpdateProjectRequest {
1747
1753
  /** Unique identifier of the project to update */
1748
1754
  projectID: string;
1749
1755
  /** New name for the project */
1750
- name?: string;
1751
- configuration?: UpdateProjectConfiguration;
1756
+ name?: string | undefined;
1757
+ configuration?: UpdateProjectConfiguration | undefined;
1752
1758
  }
1753
1759
  /** Scopes granted to the installation. */
1754
1760
  export type UpsertInstallationRequestScopesList = Array<string>;
@@ -1763,16 +1769,16 @@ export interface InstallationCredentials {
1763
1769
  /** Contact details for the account. */
1764
1770
  export interface InstallationAccountContact {
1765
1771
  email: string;
1766
- name?: string;
1772
+ name?: string | undefined;
1767
1773
  }
1768
1774
  /** The Vercel account/team installing the integration. */
1769
1775
  export interface InstallationAccount {
1770
1776
  /** Team name (absent for personal accounts). */
1771
- name?: string;
1777
+ name?: string | undefined;
1772
1778
  /** URL of the account on Vercel. */
1773
1779
  url: string;
1774
1780
  /** Contact details for the account. */
1775
- contact?: InstallationAccountContact;
1781
+ contact?: InstallationAccountContact | undefined;
1776
1782
  }
1777
1783
  export interface UpsertInstallationRequest {
1778
1784
  /** Vercel installation id (icfg_...). */
@@ -2802,7 +2808,7 @@ export const provisionResource: API.OperationMethod<
2802
2808
  }));
2803
2809
 
2804
2810
  export type QueryError = BadRequest | Forbidden | NotFound | Conflict | XataOpError;
2805
- /** 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. */
2811
+ /** 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. */
2806
2812
  export const query: API.OperationMethod<QueryRequest, QueryResponse, QueryError, XataOpContext> =
2807
2813
  /*@__PURE__*/ API.make(() => ({
2808
2814
  input: __S(1171, __c73, 3) as any as S.Schema<QueryRequest>,
@@ -2883,7 +2889,7 @@ export const resendOrganizationInvitation: API.OperationMethod<
2883
2889
  }));
2884
2890
 
2885
2891
  export type RestoreFromBackupError = BadRequest | NotFound | XataOpError;
2886
- /** Create a new branch from a backup of another branch Creates a new backup branch within the specified project. */
2892
+ /** 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. */
2887
2893
  export const restoreFromBackup: API.OperationMethod<
2888
2894
  RestoreFromBackupRequest,
2889
2895
  BranchShortMetadata,
@@ -4972,6 +4978,7 @@ function __c78(j: number): any {
4972
4978
  scaleToZero: S.optional(__S(1568, __c98, 0)),
4973
4979
  backupConfiguration: S.optional(__S(1584, __c99, 0)),
4974
4980
  configuration: S.optional(__S(448, __c28, 0)),
4981
+ targetTime: S.optional(S.String),
4975
4982
  }).pipe(
4976
4983
  T.Http({
4977
4984
  method: "POST",