@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.
@@ -13,6 +13,19 @@ const __s: any[] = [];
13
13
 
14
14
  export type { XataOpError, XataOpContext };
15
15
 
16
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
17
+ const TELEMETRY = {
18
+ system: "xata-api",
19
+ responseHeaders: [
20
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
21
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
22
+ ],
23
+ prefix: "Xata",
24
+ service: "Xata",
25
+ labels: "xata",
26
+ propagate: "w3c",
27
+ } as const;
28
+
16
29
  export class BadRequest
17
30
  extends /*@__PURE__*/ T.applyErrorMatchers(
18
31
  /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
@@ -62,9 +75,9 @@ export interface LogFilter {
62
75
  /** Match operator. */
63
76
  op: LogFilterOp | (string & {});
64
77
  /** Used with `op: in`. */
65
- values?: LogFilterValuesList;
78
+ values?: LogFilterValuesList | undefined;
66
79
  /** Used with the body operators. */
67
- value?: string;
80
+ value?: string | undefined;
68
81
  }
69
82
  /** Filters applied to log entries. Multiple filters are combined with AND. */
70
83
  export type BranchLogsRequestFiltersList = Array<LogFilter>;
@@ -77,20 +90,20 @@ export interface BranchLogsRequest {
77
90
  /** End time */
78
91
  end: string;
79
92
  /** Filters applied to log entries. Multiple filters are combined with AND. */
80
- filters?: BranchLogsRequestFiltersList;
81
- limit?: number;
93
+ filters?: BranchLogsRequestFiltersList | undefined;
94
+ limit?: number | undefined;
82
95
  /** Pagination cursor from a previous response */
83
- cursor?: string;
96
+ cursor?: string | undefined;
84
97
  }
85
98
  /** Log level enumeration */
86
99
  export type LogLevel = "debug" | "info" | "warning" | "error";
87
100
  export interface LogEntry {
88
101
  timestamp: string;
89
102
  instanceID: string;
90
- level?: LogLevel;
103
+ level?: LogLevel | undefined;
91
104
  message: string;
92
105
  /** Name of the PostgreSQL process that emitted the log */
93
- process?: string;
106
+ process?: string | undefined;
94
107
  }
95
108
  export type BranchLogsLogsList = Array<LogEntry>;
96
109
  /** A collection of logs for each of the instances of a branch */
@@ -138,7 +151,7 @@ export interface BranchMetricsRequest {
138
151
  /** List of metric names to query. */
139
152
  metrics: BranchMetricsRequestMetricsList;
140
153
  /** List of instance IDs to query */
141
- instances?: BranchMetricsRequestInstancesList;
154
+ instances?: BranchMetricsRequestInstancesList | undefined;
142
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. */
143
156
  aggregations: BranchMetricsRequestAggregationsList;
144
157
  }
@@ -199,11 +212,11 @@ export interface OrganizationSSODomain {
199
212
  /** Whether control of the domain has been proven through DNS */
200
213
  verified: boolean;
201
214
  /** The DNS record that proves control of the domain. It must stay published while the domain is verified. */
202
- verification?: OrganizationSSODomainVerification | null;
215
+ verification?: OrganizationSSODomainVerification | null | undefined;
203
216
  /** When the daily recheck first found the record missing from a verified domain. */
204
- missing_since?: string | null;
217
+ missing_since?: string | null | undefined;
205
218
  /** When the domain stops being verified if the record is still missing. */
206
- revokes_at?: string | null;
219
+ revokes_at?: string | null | undefined;
207
220
  }
208
221
  export interface CreateBillingCheckoutSessionRequest {
209
222
  /** Unique identifier for a specific organization */
@@ -230,10 +243,10 @@ export interface ScaleToZeroConfiguration {
230
243
  }
231
244
  /** Details about the branch continuous backup configuration */
232
245
  export interface BackupConfiguration {
233
- /** how long are we keeping the backups around for */
234
- retentionPeriod?: number;
235
- /** time of day/week when we are taking a full backup */
236
- 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;
237
250
  }
238
251
  /** The mode used to discriminate between types of branches. */
239
252
  export type CreateBranchRequestMode = "inherit" | "custom";
@@ -245,9 +258,9 @@ export interface CreateBranchRequest {
245
258
  /** Human-readable name for the new branch */
246
259
  name: string;
247
260
  /** Optional description for the branch purpose or contents. An empty string is stored as no description. */
248
- description?: string;
249
- scaleToZero?: ScaleToZeroConfiguration;
250
- backupConfiguration?: BackupConfiguration;
261
+ description?: string | undefined;
262
+ scaleToZero?: ScaleToZeroConfiguration | undefined;
263
+ backupConfiguration?: BackupConfiguration | undefined;
251
264
  /** The mode used to discriminate between types of branches. */
252
265
  mode: CreateBranchRequestMode | (string & {});
253
266
  }
@@ -258,15 +271,15 @@ export interface BranchShortMetadata {
258
271
  /** Human-readable name of the branch */
259
272
  name: string;
260
273
  /** Optional description of the branch purpose or contents */
261
- description?: string;
274
+ description?: string | undefined;
262
275
  /** Timestamp when the branch was created */
263
276
  createdAt: string;
264
277
  /** Timestamp when the branch was last updated */
265
278
  updatedAt: string;
266
279
  /** Identifier of the parent branch if this is a derived branch, null otherwise */
267
- parentID?: string | null;
280
+ parentID?: string | null | undefined;
268
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. */
269
- connectionString?: string | Redacted.Redacted<string> | null;
282
+ connectionString?: string | Redacted.Redacted<string> | null | undefined;
270
283
  /** Geographic region where the branch is deployed */
271
284
  region: string;
272
285
  /** Whether the branch allows public access without authentication */
@@ -337,17 +350,17 @@ export interface OrganizationStatus {
337
350
  /** Indicates if the organization has been disabled by an admin */
338
351
  disabled_by_admin: boolean;
339
352
  /** Reason for the current admin status */
340
- admin_reason?: string;
353
+ admin_reason?: string | undefined;
341
354
  /** Indicates the status of the organization from a billing perspective */
342
355
  billing_status: OrganizationStatusBillingStatus;
343
356
  /** Reason for the current billing status */
344
- billing_reason?: string;
357
+ billing_reason?: string | undefined;
345
358
  /** Usage tier of the organization. t1 is the default for new organizations, t2 is assigned when a valid payment method is on file. */
346
359
  usage_tier: OrganizationStatusUsageTier;
347
360
  /** Timestamp of the last update to the organization's status */
348
361
  last_updated: string;
349
362
  /** Timestamp when the organization was created */
350
- created_at?: string;
363
+ created_at?: string | undefined;
351
364
  }
352
365
  /** Marketplace provider associated with an organization. */
353
366
  export type OrganizationMarketplaceProvider = "aws";
@@ -360,7 +373,7 @@ export interface Organization {
360
373
  /** Current status of the organization */
361
374
  status: OrganizationStatus;
362
375
  /** Marketplace provider for this organization (e.g. "aws"), if billed through a marketplace */
363
- marketplace?: OrganizationMarketplaceProvider | null;
376
+ marketplace?: OrganizationMarketplaceProvider | null | undefined;
364
377
  }
365
378
  /** Optional scopes assigned to the API key */
366
379
  export type CreateOrganizationAPIKeyRequestScopesList = Array<string>;
@@ -373,13 +386,13 @@ export interface CreateOrganizationAPIKeyRequest {
373
386
  organizationID: string;
374
387
  name: string;
375
388
  /** Expiration date for the API key, null for no expiry */
376
- expiry?: string | null;
389
+ expiry?: string | null | undefined;
377
390
  /** Optional scopes assigned to the API key */
378
- scopes?: CreateOrganizationAPIKeyRequestScopesList;
391
+ scopes?: CreateOrganizationAPIKeyRequestScopesList | undefined;
379
392
  /** Limit access to these projects */
380
- projects?: CreateOrganizationAPIKeyRequestProjectsList;
393
+ projects?: CreateOrganizationAPIKeyRequestProjectsList | undefined;
381
394
  /** Limit access to these branches */
382
- branches?: CreateOrganizationAPIKeyRequestBranchesList;
395
+ branches?: CreateOrganizationAPIKeyRequestBranchesList | undefined;
383
396
  }
384
397
  export type FullAPIKeyScopesList = Array<string>;
385
398
  /** Projects this API key has access to */
@@ -403,9 +416,9 @@ export interface FullAPIKey {
403
416
  /** The actual API key token */
404
417
  token: string;
405
418
  /** ID of the user that created this API key */
406
- created_by?: string | null;
419
+ created_by?: string | null | undefined;
407
420
  /** ID of the API key that created this API key */
408
- created_by_key?: string | null;
421
+ created_by_key?: string | null | undefined;
409
422
  }
410
423
  export interface CreateOrganizationAPIKeyResponse {
411
424
  key: FullAPIKey;
@@ -418,7 +431,7 @@ export interface CreateOrganizationInvitationRequest {
418
431
  /** Email address of the user to invite */
419
432
  email: string;
420
433
  /** Role the user holds once they accept the invitation. Optional; when omitted, the least privileged role offered applies */
421
- role?: OrganizationRoleName | (string & {});
434
+ role?: OrganizationRoleName | (string & {}) | undefined;
422
435
  }
423
436
  export interface CreateOrganizationInvitationResponse {}
424
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. */
@@ -430,7 +443,7 @@ export interface CreateOrganizationSSOProviderRequest {
430
443
  /** The verified email domain this provider will serve. */
431
444
  domain: string;
432
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. */
433
- issuer?: string;
446
+ issuer?: string | undefined;
434
447
  /** OAuth client ID the organization registered with the provider */
435
448
  client_id: string;
436
449
  /** OAuth client secret. Write-only: it is stored in Keycloak and is never returned by this API. */
@@ -448,7 +461,7 @@ export interface OrganizationSSOProvider {
448
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. */
449
462
  enforced: boolean;
450
463
  /** OIDC issuer URL, without the /.well-known suffix. */
451
- issuer?: string;
464
+ issuer?: string | undefined;
452
465
  /** OAuth client ID the organization registered with the provider. */
453
466
  client_id: string;
454
467
  }
@@ -461,7 +474,7 @@ export interface CidrEntry {
461
474
  /** IP address or CIDR block (e.g., "192.168.0.0/24") */
462
475
  cidr: string;
463
476
  /** Optional label for the CIDR entry */
464
- description?: string;
477
+ description?: string | undefined;
465
478
  }
466
479
  export type IPFilteringConfigurationCidrList = Array<CidrEntry>;
467
480
  /** Configuration for IP filtering on project branches */
@@ -473,14 +486,14 @@ export interface IPFilteringConfiguration {
473
486
  /** Configuration details for a project, including its scale to zero settings */
474
487
  export interface ProjectConfiguration {
475
488
  scaleToZero: ProjectScaleToZeroConfiguration;
476
- ipFiltering?: IPFilteringConfiguration;
489
+ ipFiltering?: IPFilteringConfiguration | undefined;
477
490
  }
478
491
  export interface CreateProjectRequest {
479
492
  /** Unique identifier of the organization to create the project in */
480
493
  organizationID: string;
481
494
  /** Human-readable name for the new project */
482
495
  name: string;
483
- configuration?: ProjectConfiguration;
496
+ configuration?: ProjectConfiguration | undefined;
484
497
  }
485
498
  /** Details of a project including its ID, name, and creation/update timestamps */
486
499
  export interface Project {
@@ -503,13 +516,13 @@ export type CreateUserAPIKeyRequestBranchesList = Array<string>;
503
516
  export interface CreateUserAPIKeyRequest {
504
517
  name: string;
505
518
  /** Expiration date for the API key, null for no expiry */
506
- expiry?: string | null;
519
+ expiry?: string | null | undefined;
507
520
  /** Optional scopes assigned to the API key */
508
- scopes?: CreateUserAPIKeyRequestScopesList;
521
+ scopes?: CreateUserAPIKeyRequestScopesList | undefined;
509
522
  /** Limit access to these projects */
510
- projects?: CreateUserAPIKeyRequestProjectsList;
523
+ projects?: CreateUserAPIKeyRequestProjectsList | undefined;
511
524
  /** Limit access to these branches */
512
- branches?: CreateUserAPIKeyRequestBranchesList;
525
+ branches?: CreateUserAPIKeyRequestBranchesList | undefined;
513
526
  }
514
527
  export interface CreateUserAPIKeyResponse {
515
528
  key: FullAPIKey;
@@ -536,9 +549,9 @@ export interface DeleteInstallationRequest {
536
549
  /** Vercel installation id (icfg_...). */
537
550
  installationId: string;
538
551
  /** Whether to delete the installation's resources along with the installation. */
539
- cascadeResourceDeletion?: boolean;
552
+ cascadeResourceDeletion?: boolean | undefined;
540
553
  /** The reason for deleting the installation. */
541
- reason?: string;
554
+ reason?: string | undefined;
542
555
  }
543
556
  export interface DeleteInstallationResponse {}
544
557
  export interface DeleteOrganizationRequest {
@@ -619,7 +632,7 @@ export interface ClusterLifecycle {
619
632
  /** Current operational state of the cluster (ready, creating, updating, etc.) */
620
633
  state: ClusterLifecycleState;
621
634
  /** Reason for the current lifecycle state, especially useful for non-ready states */
622
- reason?: string;
635
+ reason?: string | undefined;
623
636
  /** Current phase within the lifecycle process */
624
637
  phase: string;
625
638
  }
@@ -643,8 +656,8 @@ export interface BranchStatus {
643
656
  /** Type of status of the branch */
644
657
  statusType: BranchStatusStatusType;
645
658
  /** Human-readable message explaining the current status */
646
- message?: string;
647
- lifecycle?: ClusterLifecycle;
659
+ message?: string | undefined;
660
+ lifecycle?: ClusterLifecycle | undefined;
648
661
  /** Total number of database instances in the cluster */
649
662
  instanceCount: number;
650
663
  /** Number of database instances that are ready and operational */
@@ -663,7 +676,7 @@ export interface ClusterConfiguration {
663
676
  /** Geographic region where the cluster will be deployed */
664
677
  region: string;
665
678
  /** Branch storage in GiB (gigabytes) */
666
- storage?: number;
679
+ storage?: number | undefined;
667
680
  /** The instance type according to the xata instance types available */
668
681
  instanceType: string;
669
682
  /** PostgreSQL image to use for the database instances */
@@ -671,9 +684,11 @@ export interface ClusterConfiguration {
671
684
  /** Number of replicas in the branch. Every child branch is created with no replicas. This can be updated. */
672
685
  replicas: number;
673
686
  /** Arbitrary PostgreSQL configuration parameters for the cluster */
674
- postgresConfigurationParameters?: ClusterConfigurationPostgresConfigurationParametersMap;
687
+ postgresConfigurationParameters?:
688
+ | ClusterConfigurationPostgresConfigurationParametersMap
689
+ | undefined;
675
690
  /** List of PostgreSQL extensions and libraries to preload */
676
- preloadLibraries?: ClusterConfigurationPreloadLibrariesList;
691
+ preloadLibraries?: ClusterConfigurationPreloadLibrariesList | undefined;
677
692
  }
678
693
  /** Detailed metadata about a branch, including its status and configuration */
679
694
  export interface BranchMetadata {
@@ -682,13 +697,13 @@ export interface BranchMetadata {
682
697
  /** Human-readable name of the branch */
683
698
  name: string;
684
699
  /** Optional description of the branch purpose or contents */
685
- description?: string;
700
+ description?: string | undefined;
686
701
  /** Timestamp when the branch was created */
687
702
  createdAt: string;
688
703
  /** Timestamp when the branch was last updated */
689
704
  updatedAt: string;
690
705
  /** Identifier of the parent branch if this is a derived branch, null otherwise */
691
- parentID?: string | null;
706
+ parentID?: string | null | undefined;
692
707
  /** Geographic region where the branch is deployed */
693
708
  region: string;
694
709
  status: BranchStatus;
@@ -700,7 +715,7 @@ export interface BranchMetadata {
700
715
  backupsEnabled: boolean;
701
716
  scaleToZero: ScaleToZeroConfiguration;
702
717
  configuration: ClusterConfiguration;
703
- backupConfiguration?: BackupConfiguration;
718
+ backupConfiguration?: BackupConfiguration | undefined;
704
719
  }
705
720
  export interface GetBackupRequest {
706
721
  /** Unique identifier of the organization containing the project */
@@ -714,12 +729,12 @@ export interface GetBackupRequest {
714
729
  export interface BackupMetadata {
715
730
  /** unique identifier for the backup */
716
731
  id: string;
717
- /** the branchID the branch associated with the backup */
732
+ /** ID of the branch that the backup belongs to */
718
733
  branchID: string;
719
- /** the earlies point in time available for restoring the branch */
720
- earliestRestore?: string;
721
- /** the latest point in time available for restoring the branch */
722
- 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;
723
738
  /** description of the backup */
724
739
  description: string;
725
740
  }
@@ -789,9 +804,9 @@ export interface GetBillingInvoicesRequest {
789
804
  /** Unique identifier for a specific organization */
790
805
  organizationID: string;
791
806
  /** Pagination cursor from a previous response */
792
- cursor?: string;
807
+ cursor?: string | undefined;
793
808
  /** Number of invoices to fetch */
794
- limit?: number;
809
+ limit?: number | undefined;
795
810
  }
796
811
  export type BillingInvoiceStatus = "draft" | "issued" | "paid" | "void" | "synced";
797
812
  export interface BillingInvoice {
@@ -834,7 +849,7 @@ export interface GetBranchCredentialsRequest {
834
849
  projectID: string;
835
850
  branchID: string;
836
851
  /** Username that the credentials requested for, defaults to `xata` */
837
- username?: string;
852
+ username?: string | undefined;
838
853
  }
839
854
  /** Credentials and connection details for accessing a branch */
840
855
  export interface BranchCredentials {
@@ -873,11 +888,11 @@ export type PostgresConfigParameterAcceptableRangeEnumValuesList = Array<string>
873
888
  /** Information about the acceptable range of values for this parameter */
874
889
  export interface PostgresConfigParameterAcceptableRange {
875
890
  /** Minimum allowed value (if applicable) */
876
- minValue?: string;
891
+ minValue?: string | undefined;
877
892
  /** Maximum allowed value (if applicable) */
878
- maxValue?: string;
893
+ maxValue?: string | undefined;
879
894
  /** List of allowed enum values (if applicable) */
880
- enumValues?: PostgresConfigParameterAcceptableRangeEnumValuesList;
895
+ enumValues?: PostgresConfigParameterAcceptableRangeEnumValuesList | undefined;
881
896
  }
882
897
  /** The source of the default value */
883
898
  export type PostgresConfigParameterDefaultValueSource = "postgres" | "instance_type";
@@ -892,7 +907,7 @@ export interface PostgresConfigParameter {
892
907
  /** The section/category this parameter belongs to */
893
908
  section: string;
894
909
  /** Information about the acceptable range of values for this parameter */
895
- acceptableRange?: PostgresConfigParameterAcceptableRange;
910
+ acceptableRange?: PostgresConfigParameterAcceptableRange | undefined;
896
911
  /** The default value for this parameter */
897
912
  defaultValue: string;
898
913
  /** The source of the default value */
@@ -904,7 +919,7 @@ export interface PostgresConfigParameter {
904
919
  /** Optional recommendation for this parameter (currently empty) */
905
920
  recommendation: string;
906
921
  /** Whether a database restart is required for this parameter change to take effect */
907
- restartRequired?: boolean;
922
+ restartRequired?: boolean | undefined;
908
923
  }
909
924
  /** Array of PostgreSQL configuration parameters with detailed information */
910
925
  export type PostgresConfigDetailsParametersList = Array<PostgresConfigParameter>;
@@ -945,9 +960,9 @@ export interface OrganizationInvitation {
945
960
  /** Email address of the invited user */
946
961
  email: string;
947
962
  /** First name of the invited user */
948
- first_name?: string | null;
963
+ first_name?: string | null | undefined;
949
964
  /** Last name of the invited user */
950
- last_name?: string | null;
965
+ last_name?: string | null | undefined;
951
966
  /** Timestamp when the invitation was created */
952
967
  created_at: string;
953
968
  /** Timestamp when the invitation expires */
@@ -1062,7 +1077,7 @@ export interface GetResourceRequest {
1062
1077
  }
1063
1078
  /** User-inputted metadata based on the registered metadata schema. */
1064
1079
  export type ResourceMetadataMap = { [key: string]: unknown | undefined };
1065
- /** 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. */
1066
1081
  export interface Resource {
1067
1082
  /** The partner-specific resource id. */
1068
1083
  id: string;
@@ -1097,11 +1112,11 @@ export interface ListBillingPlansForProductRequest {
1097
1112
  /** Vercel product slug (e.g. xata-postgres). */
1098
1113
  productSlug: string;
1099
1114
  /** Opaque metadata forwarded by Vercel. */
1100
- metadata?: string;
1115
+ metadata?: string | undefined;
1101
1116
  }
1102
1117
  export interface PlanDetail {
1103
1118
  label: string;
1104
- value?: string;
1119
+ value?: string | undefined;
1105
1120
  }
1106
1121
  export type BillingPlanDetailsList = Array<PlanDetail>;
1107
1122
  export type BillingPlanHighlightedDetailsList = Array<PlanDetail>;
@@ -1119,20 +1134,20 @@ export interface BillingPlan {
1119
1134
  name: string;
1120
1135
  description: string;
1121
1136
  /** Plan scope; installation-level plans require enablement on the integration. */
1122
- scope?: string;
1137
+ scope?: string | undefined;
1123
1138
  /** Subscription plans only. false means the plan is completely free. */
1124
- paymentMethodRequired?: boolean;
1139
+ paymentMethodRequired?: boolean | undefined;
1125
1140
  /** Subscription + paymentMethodRequired. Amount used to test the payment method; never charged. */
1126
- preauthorizationAmount?: number;
1141
+ preauthorizationAmount?: number | undefined;
1127
1142
  /** Subscription + paymentMethodRequired. Amount invoiced immediately at sign-up (decimal USD string). */
1128
- initialCharge?: string;
1143
+ initialCharge?: string | undefined;
1129
1144
  /** Display cost for fixed-cost plans, e.g. "$20.00/month". Omitted for usage-based plans. */
1130
- cost?: string;
1131
- details?: BillingPlanDetailsList;
1132
- highlightedDetails?: BillingPlanHighlightedDetailsList;
1133
- quote?: BillingPlanQuoteList;
1134
- effectiveDate?: string;
1135
- 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;
1136
1151
  }
1137
1152
  export type ListBillingPlansResponsePlansList = Array<BillingPlan>;
1138
1153
  /** The billing plans available for a product. */
@@ -1152,13 +1167,13 @@ export interface BranchListMetadata {
1152
1167
  /** Human-readable name of the branch */
1153
1168
  name: string;
1154
1169
  /** Optional description of the branch purpose or contents */
1155
- description?: string;
1170
+ description?: string | undefined;
1156
1171
  /** Timestamp when the branch was created */
1157
1172
  createdAt: string;
1158
1173
  /** Timestamp when the branch was last updated */
1159
1174
  updatedAt: string;
1160
1175
  /** Identifier of the parent branch if this is a derived branch, null otherwise */
1161
- parentID?: string | null;
1176
+ parentID?: string | null | undefined;
1162
1177
  /** Geographic region where the branch is deployed */
1163
1178
  region: string;
1164
1179
  /** Whether the branch allows public access without authentication */
@@ -1178,7 +1193,7 @@ export interface ListExtensionsRequest {
1178
1193
  /** Image for which we list extensions */
1179
1194
  image: string;
1180
1195
  /** Region to list extensions for image in */
1181
- region?: string;
1196
+ region?: string | undefined;
1182
1197
  }
1183
1198
  /** type of installation */
1184
1199
  export type ExtensionType = "extension" | "plugin" | "module";
@@ -1217,7 +1232,7 @@ export interface ListImagesRequest {
1217
1232
  /** Unique identifier of the organization to check image availability */
1218
1233
  organizationID: string;
1219
1234
  /** Region to check image availability for organization */
1220
- region?: string;
1235
+ region?: string | undefined;
1221
1236
  }
1222
1237
  /** region where this instance type is available */
1223
1238
  export type ImageRegionList = Array<string>;
@@ -1230,7 +1245,7 @@ export interface Image {
1230
1245
  /** full postgres version */
1231
1246
  fullVersion: string;
1232
1247
  /** region where this instance type is available */
1233
- region?: ImageRegionList;
1248
+ region?: ImageRegionList | undefined;
1234
1249
  }
1235
1250
  /** Array of available images with their properties */
1236
1251
  export type ListImagesResponseImagesList = Array<Image>;
@@ -1289,9 +1304,9 @@ export interface APIKeyPreview {
1289
1304
  /** Timestamp of the last time the key was used (null if never) */
1290
1305
  last_used: string | null;
1291
1306
  /** ID of the user that created this API key */
1292
- created_by?: string | null;
1307
+ created_by?: string | null | undefined;
1293
1308
  /** ID of the API key that created this API key */
1294
- created_by_key?: string | null;
1309
+ created_by_key?: string | null | undefined;
1295
1310
  }
1296
1311
  /** Array of API keys for the organization */
1297
1312
  export type ListOrganizationAPIKeysResponseKeysList = Array<APIKeyPreview>;
@@ -1304,19 +1319,19 @@ export interface ListOrganizationInvitationsRequest {
1304
1319
  /** Unique identifier for a specific organization */
1305
1320
  organizationID: string;
1306
1321
  /** Filter invitations by status */
1307
- status?: ListOrganizationInvitationsRequestStatus | (string & {});
1322
+ status?: ListOrganizationInvitationsRequestStatus | (string & {}) | undefined;
1308
1323
  /** Filter invitations by email address */
1309
- email?: string;
1324
+ email?: string | undefined;
1310
1325
  /** Filter invitations by first name */
1311
- first_name?: string;
1326
+ first_name?: string | undefined;
1312
1327
  /** Filter invitations by last name */
1313
- last_name?: string;
1328
+ last_name?: string | undefined;
1314
1329
  /** Search invitations by email or name */
1315
- search?: string;
1330
+ search?: string | undefined;
1316
1331
  /** Index of the first result to return (0-based offset for pagination) */
1317
- first?: number;
1332
+ first?: number | undefined;
1318
1333
  /** Maximum number of results to return */
1319
- max?: number;
1334
+ max?: number | undefined;
1320
1335
  }
1321
1336
  export type ListOrganizationInvitationsResponseInvitationsList = Array<OrganizationInvitation>;
1322
1337
  export interface ListOrganizationInvitationsResponse {
@@ -1417,15 +1432,15 @@ export interface ProvisionResourceRequest {
1417
1432
  /** Selected Vercel billing plan id. */
1418
1433
  billingPlanId: string;
1419
1434
  /** Partner-provided identifier indicating the source of provisioning. */
1420
- externalId?: string;
1435
+ externalId?: string | undefined;
1421
1436
  }
1422
1437
  /** User-inputted metadata based on the registered metadata schema. */
1423
1438
  export type ProvisionedResourceMetadataMap = { [key: string]: unknown | undefined };
1424
1439
  /** Per-environment values that override value for that Vercel environment. */
1425
1440
  export interface SecretEnvironmentOverrides {
1426
- development?: string;
1427
- preview?: string;
1428
- production?: string;
1441
+ development?: string | undefined;
1442
+ preview?: string | undefined;
1443
+ production?: string | undefined;
1429
1444
  }
1430
1445
  /** A connection secret exposed as an environment variable on connected Vercel projects. */
1431
1446
  export interface Secret {
@@ -1434,7 +1449,7 @@ export interface Secret {
1434
1449
  /** Default value, used when no per-environment override applies. */
1435
1450
  value: string;
1436
1451
  /** Per-environment values that override value for that Vercel environment. */
1437
- environmentOverrides?: SecretEnvironmentOverrides;
1452
+ environmentOverrides?: SecretEnvironmentOverrides | undefined;
1438
1453
  }
1439
1454
  /** Connection secrets that become environment variables on connected projects. */
1440
1455
  export type ProvisionedResourceSecretsList = Array<Secret>;
@@ -1462,21 +1477,21 @@ export interface QueryItem {
1462
1477
  /** SQL query to execute. */
1463
1478
  query: string;
1464
1479
  /** Positional parameters for the query. */
1465
- params?: QueryItemParamsList;
1480
+ params?: QueryItemParamsList | undefined;
1466
1481
  /** Override array mode for this individual query. */
1467
- arrayMode?: boolean;
1482
+ arrayMode?: boolean | undefined;
1468
1483
  }
1469
1484
  /** Array of queries for batch execution within a single transaction. */
1470
1485
  export type QueryRequestQueriesList = Array<QueryItem>;
1471
1486
  export interface QueryRequest {
1472
1487
  /** SQL query to execute (single query mode). */
1473
- query?: string;
1488
+ query?: string | undefined;
1474
1489
  /** Positional parameters for the query (`$1`, `$2`, ...). */
1475
- params?: QueryRequestParamsList;
1490
+ params?: QueryRequestParamsList | undefined;
1476
1491
  /** Array of queries for batch execution within a single transaction. */
1477
- queries?: QueryRequestQueriesList;
1492
+ queries?: QueryRequestQueriesList | undefined;
1478
1493
  /** Override array mode for this query (single query mode only). */
1479
- arrayMode?: boolean;
1494
+ arrayMode?: boolean | undefined;
1480
1495
  }
1481
1496
  /** PostgreSQL column metadata from the row description message. */
1482
1497
  export interface FieldDefinition {
@@ -1570,10 +1585,12 @@ export interface RestoreFromBackupRequest {
1570
1585
  /** Human-readable name of the branch */
1571
1586
  name: string;
1572
1587
  /** Optional description of the branch purpose or contents */
1573
- description?: string;
1574
- scaleToZero?: ScaleToZeroConfiguration;
1575
- backupConfiguration?: BackupConfiguration;
1576
- 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;
1577
1594
  }
1578
1595
  export interface RotateBranchCredentialsRequest {
1579
1596
  organizationID: string;
@@ -1593,11 +1610,11 @@ export interface SendMcpRequestRequest {
1593
1610
  /** JSON-RPC protocol version. Always `2.0`. */
1594
1611
  jsonrpc: SendMcpRequestRequestJsonrpc | (string & {});
1595
1612
  /** Request identifier, echoed on the response. Omitted for notifications. */
1596
- id?: SendMcpRequestRequestId;
1613
+ id?: SendMcpRequestRequestId | undefined;
1597
1614
  /** MCP method, such as `initialize`, `tools/list`, or `tools/call`. */
1598
1615
  method: string;
1599
1616
  /** Method parameters as defined by the MCP specification. */
1600
- params?: SendMcpRequestRequestParamsMap;
1617
+ params?: SendMcpRequestRequestParamsMap | undefined;
1601
1618
  }
1602
1619
  /** JSON-RPC protocol version. Always `2.0`. */
1603
1620
  export type JSONRPCResponseJsonrpc = "2.0";
@@ -1612,7 +1629,7 @@ export interface JSONRPCError {
1612
1629
  /** Short description of the error. */
1613
1630
  message: string;
1614
1631
  /** Additional error detail. */
1615
- data?: unknown;
1632
+ data?: unknown | undefined;
1616
1633
  }
1617
1634
  /** A JSON-RPC 2.0 response. Exactly one of `result` or `error` is present. */
1618
1635
  export interface JSONRPCResponse {
@@ -1621,8 +1638,8 @@ export interface JSONRPCResponse {
1621
1638
  /** Identifier of the request this responds to. */
1622
1639
  id: JSONRPCResponseId;
1623
1640
  /** Method result as defined by the MCP specification. */
1624
- result?: JSONRPCResponseResultMap;
1625
- error?: JSONRPCError;
1641
+ result?: JSONRPCResponseResultMap | undefined;
1642
+ error?: JSONRPCError | undefined;
1626
1643
  }
1627
1644
  export interface SetOrganizationMemberRoleRequest {
1628
1645
  /** Unique identifier for a specific organization */
@@ -1665,25 +1682,27 @@ export interface UpdateBranchRequest {
1665
1682
  /** Unique identifier of the branch to update */
1666
1683
  branchID: string;
1667
1684
  /** New name for the branch */
1668
- name?: string;
1685
+ name?: string | undefined;
1669
1686
  /** New description for the branch. Send an empty string to clear it. */
1670
- description?: string;
1687
+ description?: string | undefined;
1671
1688
  /** Number of database replicas to scale to */
1672
- replicas?: number;
1689
+ replicas?: number | undefined;
1673
1690
  /** Branch storage in GiB (gigabytes). The maximum allowed value depends on the organization's storage limit. */
1674
- storage?: number;
1691
+ storage?: number | undefined;
1675
1692
  /** New instance type for the branch */
1676
- instanceType?: string;
1677
- backupConfiguration?: BackupConfiguration;
1693
+ instanceType?: string | undefined;
1694
+ backupConfiguration?: BackupConfiguration | undefined;
1678
1695
  /** Enabled when the branch should be hibernated, disabled if it needs to be reactivated. */
1679
- hibernate?: boolean;
1680
- scaleToZero?: ScaleToZeroConfiguration;
1696
+ hibernate?: boolean | undefined;
1697
+ scaleToZero?: ScaleToZeroConfiguration | undefined;
1681
1698
  /** Arbitrary PostgreSQL configuration parameters for the cluster */
1682
- postgresConfigurationParameters?: UpdateBranchRequestPostgresConfigurationParametersMap;
1699
+ postgresConfigurationParameters?:
1700
+ | UpdateBranchRequestPostgresConfigurationParametersMap
1701
+ | undefined;
1683
1702
  /** List of PostgreSQL extensions and libraries to preload */
1684
- preloadLibraries?: UpdateBranchRequestPreloadLibrariesList;
1703
+ preloadLibraries?: UpdateBranchRequestPreloadLibrariesList | undefined;
1685
1704
  /** PostgreSQL image to use for the database instances */
1686
- image?: string;
1705
+ image?: string | undefined;
1687
1706
  }
1688
1707
  export interface UpdateGithubAppInstallationRequest {
1689
1708
  /** Unique identifier of the organization */
@@ -1707,9 +1726,9 @@ export interface UpdateOrganizationRequest {
1707
1726
  /** Unique identifier for a specific organization */
1708
1727
  organizationID: string;
1709
1728
  /** Unique identifier for the organization to update */
1710
- id?: string;
1729
+ id?: string | undefined;
1711
1730
  /** New name for the organization */
1712
- name?: string;
1731
+ name?: string | undefined;
1713
1732
  }
1714
1733
  export interface UpdateOrganizationSSOProviderRequest {
1715
1734
  /** Unique identifier for a specific organization */
@@ -1717,7 +1736,7 @@ export interface UpdateOrganizationSSOProviderRequest {
1717
1736
  /** Alias identifying one of the organization's SSO identity providers */
1718
1737
  providerAlias: string;
1719
1738
  /** OIDC issuer URL. Required for `oidc`, and for `microsoft` where it names the Entra tenant; ignored for `google`. */
1720
- issuer?: string;
1739
+ issuer?: string | undefined;
1721
1740
  /** OAuth client ID the organization registered with the provider */
1722
1741
  client_id: string;
1723
1742
  /** OAuth client secret. Write-only: it is stored in Keycloak and is never returned by this API. */
@@ -1725,8 +1744,8 @@ export interface UpdateOrganizationSSOProviderRequest {
1725
1744
  }
1726
1745
  /** Partial configuration update for a project */
1727
1746
  export interface UpdateProjectConfiguration {
1728
- scaleToZero?: ProjectScaleToZeroConfiguration;
1729
- ipFiltering?: IPFilteringConfiguration;
1747
+ scaleToZero?: ProjectScaleToZeroConfiguration | undefined;
1748
+ ipFiltering?: IPFilteringConfiguration | undefined;
1730
1749
  }
1731
1750
  export interface UpdateProjectRequest {
1732
1751
  /** Unique identifier of the organization containing the project */
@@ -1734,8 +1753,8 @@ export interface UpdateProjectRequest {
1734
1753
  /** Unique identifier of the project to update */
1735
1754
  projectID: string;
1736
1755
  /** New name for the project */
1737
- name?: string;
1738
- configuration?: UpdateProjectConfiguration;
1756
+ name?: string | undefined;
1757
+ configuration?: UpdateProjectConfiguration | undefined;
1739
1758
  }
1740
1759
  /** Scopes granted to the installation. */
1741
1760
  export type UpsertInstallationRequestScopesList = Array<string>;
@@ -1750,16 +1769,16 @@ export interface InstallationCredentials {
1750
1769
  /** Contact details for the account. */
1751
1770
  export interface InstallationAccountContact {
1752
1771
  email: string;
1753
- name?: string;
1772
+ name?: string | undefined;
1754
1773
  }
1755
1774
  /** The Vercel account/team installing the integration. */
1756
1775
  export interface InstallationAccount {
1757
1776
  /** Team name (absent for personal accounts). */
1758
- name?: string;
1777
+ name?: string | undefined;
1759
1778
  /** URL of the account on Vercel. */
1760
1779
  url: string;
1761
1780
  /** Contact details for the account. */
1762
- contact?: InstallationAccountContact;
1781
+ contact?: InstallationAccountContact | undefined;
1763
1782
  }
1764
1783
  export interface UpsertInstallationRequest {
1765
1784
  /** Vercel installation id (icfg_...). */
@@ -1793,6 +1812,8 @@ export const branchLogs2: API.OperationMethod<
1793
1812
  errors: [BadRequest, NotFound, UnknownXataError],
1794
1813
  protocol: XataProtocol,
1795
1814
  retry: Retry.Retry,
1815
+ telemetry: TELEMETRY,
1816
+ span: "BranchLogs2",
1796
1817
  }));
1797
1818
 
1798
1819
  export type BranchMetrics2Error = BadRequest | NotFound | XataOpError;
@@ -1808,6 +1829,8 @@ export const branchMetrics2: API.OperationMethod<
1808
1829
  errors: [BadRequest, NotFound, UnknownXataError],
1809
1830
  protocol: XataProtocol,
1810
1831
  retry: Retry.Retry,
1832
+ telemetry: TELEMETRY,
1833
+ span: "BranchMetrics2",
1811
1834
  }));
1812
1835
 
1813
1836
  export type ClaimOrganizationSSODomainError = BadRequest | Forbidden | Conflict | XataOpError;
@@ -1823,6 +1846,8 @@ export const claimOrganizationSSODomain: API.OperationMethod<
1823
1846
  errors: [BadRequest, Forbidden, Conflict, UnknownXataError],
1824
1847
  protocol: XataProtocol,
1825
1848
  retry: Retry.Retry,
1849
+ telemetry: TELEMETRY,
1850
+ span: "ClaimOrganizationSSODomain",
1826
1851
  }));
1827
1852
 
1828
1853
  export type CreateBillingCheckoutSessionError = BadRequest | Forbidden | XataOpError;
@@ -1838,6 +1863,8 @@ export const createBillingCheckoutSession: API.OperationMethod<
1838
1863
  errors: [BadRequest, Forbidden, UnknownXataError],
1839
1864
  protocol: XataProtocol,
1840
1865
  retry: Retry.Retry,
1866
+ telemetry: TELEMETRY,
1867
+ span: "CreateBillingCheckoutSession",
1841
1868
  }));
1842
1869
 
1843
1870
  export type CreateBillingPaymentMethodSessionError = BadRequest | Forbidden | XataOpError;
@@ -1853,6 +1880,8 @@ export const createBillingPaymentMethodSession: API.OperationMethod<
1853
1880
  errors: [BadRequest, Forbidden, UnknownXataError],
1854
1881
  protocol: XataProtocol,
1855
1882
  retry: Retry.Retry,
1883
+ telemetry: TELEMETRY,
1884
+ span: "CreateBillingPaymentMethodSession",
1856
1885
  }));
1857
1886
 
1858
1887
  export type CreateBranchError = BadRequest | NotFound | XataOpError;
@@ -1868,6 +1897,8 @@ export const createBranch: API.OperationMethod<
1868
1897
  errors: [BadRequest, NotFound, UnknownXataError],
1869
1898
  protocol: XataProtocol,
1870
1899
  retry: Retry.Retry,
1900
+ telemetry: TELEMETRY,
1901
+ span: "CreateBranch",
1871
1902
  }));
1872
1903
 
1873
1904
  export type CreateGithubAppInstallationError = BadRequest | Conflict | XataOpError;
@@ -1883,6 +1914,8 @@ export const createGithubAppInstallation: API.OperationMethod<
1883
1914
  errors: [BadRequest, Conflict, UnknownXataError],
1884
1915
  protocol: XataProtocol,
1885
1916
  retry: Retry.Retry,
1917
+ telemetry: TELEMETRY,
1918
+ span: "CreateGithubAppInstallation",
1886
1919
  }));
1887
1920
 
1888
1921
  export type CreateGithubRepositoryError = BadRequest | Conflict | XataOpError;
@@ -1898,6 +1931,8 @@ export const createGithubRepository: API.OperationMethod<
1898
1931
  errors: [BadRequest, Conflict, UnknownXataError],
1899
1932
  protocol: XataProtocol,
1900
1933
  retry: Retry.Retry,
1934
+ telemetry: TELEMETRY,
1935
+ span: "CreateGithubRepository",
1901
1936
  }));
1902
1937
 
1903
1938
  export type CreateOrganizationError = BadRequest | NotFound | XataOpError;
@@ -1913,6 +1948,8 @@ export const createOrganization: API.OperationMethod<
1913
1948
  errors: [BadRequest, NotFound, UnknownXataError],
1914
1949
  protocol: XataProtocol,
1915
1950
  retry: Retry.Retry,
1951
+ telemetry: TELEMETRY,
1952
+ span: "CreateOrganization",
1916
1953
  }));
1917
1954
 
1918
1955
  export type CreateOrganizationAPIKeyError = BadRequest | XataOpError;
@@ -1928,6 +1965,8 @@ export const createOrganizationAPIKey: API.OperationMethod<
1928
1965
  errors: [BadRequest, UnknownXataError],
1929
1966
  protocol: XataProtocol,
1930
1967
  retry: Retry.Retry,
1968
+ telemetry: TELEMETRY,
1969
+ span: "CreateOrganizationAPIKey",
1931
1970
  }));
1932
1971
 
1933
1972
  export type CreateOrganizationInvitationError =
@@ -1948,6 +1987,8 @@ export const createOrganizationInvitation: API.OperationMethod<
1948
1987
  errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownXataError],
1949
1988
  protocol: XataProtocol,
1950
1989
  retry: Retry.Retry,
1990
+ telemetry: TELEMETRY,
1991
+ span: "CreateOrganizationInvitation",
1951
1992
  }));
1952
1993
 
1953
1994
  export type CreateOrganizationSSOProviderError = BadRequest | Forbidden | Conflict | XataOpError;
@@ -1963,6 +2004,8 @@ export const createOrganizationSSOProvider: API.OperationMethod<
1963
2004
  errors: [BadRequest, Forbidden, Conflict, UnknownXataError],
1964
2005
  protocol: XataProtocol,
1965
2006
  retry: Retry.Retry,
2007
+ telemetry: TELEMETRY,
2008
+ span: "CreateOrganizationSSOProvider",
1966
2009
  }));
1967
2010
 
1968
2011
  export type CreateProjectError = BadRequest | XataOpError;
@@ -1978,6 +2021,8 @@ export const createProject: API.OperationMethod<
1978
2021
  errors: [BadRequest, UnknownXataError],
1979
2022
  protocol: XataProtocol,
1980
2023
  retry: Retry.Retry,
2024
+ telemetry: TELEMETRY,
2025
+ span: "CreateProject",
1981
2026
  }));
1982
2027
 
1983
2028
  export type CreateUserAPIKeyError = BadRequest | XataOpError;
@@ -1993,6 +2038,8 @@ export const createUserAPIKey: API.OperationMethod<
1993
2038
  errors: [BadRequest, UnknownXataError],
1994
2039
  protocol: XataProtocol,
1995
2040
  retry: Retry.Retry,
2041
+ telemetry: TELEMETRY,
2042
+ span: "CreateUserAPIKey",
1996
2043
  }));
1997
2044
 
1998
2045
  export type DeleteBranchError = BadRequest | NotFound | XataOpError;
@@ -2008,6 +2055,8 @@ export const deleteBranch: API.OperationMethod<
2008
2055
  errors: [BadRequest, NotFound, UnknownXataError],
2009
2056
  protocol: XataProtocol,
2010
2057
  retry: Retry.Retry,
2058
+ telemetry: TELEMETRY,
2059
+ span: "DeleteBranch",
2011
2060
  }));
2012
2061
 
2013
2062
  export type DeleteGithubRepositoryError = BadRequest | NotFound | XataOpError;
@@ -2023,6 +2072,8 @@ export const deleteGithubRepository: API.OperationMethod<
2023
2072
  errors: [BadRequest, NotFound, UnknownXataError],
2024
2073
  protocol: XataProtocol,
2025
2074
  retry: Retry.Retry,
2075
+ telemetry: TELEMETRY,
2076
+ span: "DeleteGithubRepository",
2026
2077
  }));
2027
2078
 
2028
2079
  export type DeleteInstallationError = Forbidden | Conflict | XataOpError;
@@ -2038,6 +2089,8 @@ export const deleteInstallation: API.OperationMethod<
2038
2089
  errors: [Forbidden, Conflict, UnknownXataError],
2039
2090
  protocol: XataProtocol,
2040
2091
  retry: Retry.Retry,
2092
+ telemetry: TELEMETRY,
2093
+ span: "DeleteInstallation",
2041
2094
  }));
2042
2095
 
2043
2096
  export type DeleteOrganizationError = BadRequest | Forbidden | NotFound | XataOpError;
@@ -2053,6 +2106,8 @@ export const deleteOrganization: API.OperationMethod<
2053
2106
  errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
2054
2107
  protocol: XataProtocol,
2055
2108
  retry: Retry.Retry,
2109
+ telemetry: TELEMETRY,
2110
+ span: "DeleteOrganization",
2056
2111
  }));
2057
2112
 
2058
2113
  export type DeleteOrganizationAPIKeysError = BadRequest | NotFound | XataOpError;
@@ -2068,6 +2123,8 @@ export const deleteOrganizationAPIKeys: API.OperationMethod<
2068
2123
  errors: [BadRequest, NotFound, UnknownXataError],
2069
2124
  protocol: XataProtocol,
2070
2125
  retry: Retry.Retry,
2126
+ telemetry: TELEMETRY,
2127
+ span: "DeleteOrganizationAPIKeys",
2071
2128
  }));
2072
2129
 
2073
2130
  export type DeleteOrganizationInvitationError = BadRequest | Forbidden | NotFound | XataOpError;
@@ -2083,6 +2140,8 @@ export const deleteOrganizationInvitation: API.OperationMethod<
2083
2140
  errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
2084
2141
  protocol: XataProtocol,
2085
2142
  retry: Retry.Retry,
2143
+ telemetry: TELEMETRY,
2144
+ span: "DeleteOrganizationInvitation",
2086
2145
  }));
2087
2146
 
2088
2147
  export type DeleteOrganizationSSODomainError = Forbidden | Conflict | XataOpError;
@@ -2098,6 +2157,8 @@ export const deleteOrganizationSSODomain: API.OperationMethod<
2098
2157
  errors: [Forbidden, Conflict, UnknownXataError],
2099
2158
  protocol: XataProtocol,
2100
2159
  retry: Retry.Retry,
2160
+ telemetry: TELEMETRY,
2161
+ span: "DeleteOrganizationSSODomain",
2101
2162
  }));
2102
2163
 
2103
2164
  export type DeleteOrganizationSSOProviderError = Forbidden | XataOpError;
@@ -2113,6 +2174,8 @@ export const deleteOrganizationSSOProvider: API.OperationMethod<
2113
2174
  errors: [Forbidden, UnknownXataError],
2114
2175
  protocol: XataProtocol,
2115
2176
  retry: Retry.Retry,
2177
+ telemetry: TELEMETRY,
2178
+ span: "DeleteOrganizationSSOProvider",
2116
2179
  }));
2117
2180
 
2118
2181
  export type DeleteProjectError = BadRequest | NotFound | XataOpError;
@@ -2128,6 +2191,8 @@ export const deleteProject: API.OperationMethod<
2128
2191
  errors: [BadRequest, NotFound, UnknownXataError],
2129
2192
  protocol: XataProtocol,
2130
2193
  retry: Retry.Retry,
2194
+ telemetry: TELEMETRY,
2195
+ span: "DeleteProject",
2131
2196
  }));
2132
2197
 
2133
2198
  export type DeleteResourceError = Forbidden | NotFound | XataOpError;
@@ -2143,6 +2208,8 @@ export const deleteResource: API.OperationMethod<
2143
2208
  errors: [Forbidden, NotFound, UnknownXataError],
2144
2209
  protocol: XataProtocol,
2145
2210
  retry: Retry.Retry,
2211
+ telemetry: TELEMETRY,
2212
+ span: "DeleteResource",
2146
2213
  }));
2147
2214
 
2148
2215
  export type DeleteUserAPIKeysError = BadRequest | NotFound | XataOpError;
@@ -2158,6 +2225,8 @@ export const deleteUserAPIKeys: API.OperationMethod<
2158
2225
  errors: [BadRequest, NotFound, UnknownXataError],
2159
2226
  protocol: XataProtocol,
2160
2227
  retry: Retry.Retry,
2228
+ telemetry: TELEMETRY,
2229
+ span: "DeleteUserAPIKeys",
2161
2230
  }));
2162
2231
 
2163
2232
  export type DescribeBranchError = BadRequest | NotFound | XataOpError;
@@ -2173,6 +2242,8 @@ export const describeBranch: API.OperationMethod<
2173
2242
  errors: [BadRequest, NotFound, UnknownXataError],
2174
2243
  protocol: XataProtocol,
2175
2244
  retry: Retry.Retry,
2245
+ telemetry: TELEMETRY,
2246
+ span: "DescribeBranch",
2176
2247
  }));
2177
2248
 
2178
2249
  export type GetBackupError = BadRequest | NotFound | XataOpError;
@@ -2188,6 +2259,8 @@ export const getBackup: API.OperationMethod<
2188
2259
  errors: [BadRequest, NotFound, UnknownXataError],
2189
2260
  protocol: XataProtocol,
2190
2261
  retry: Retry.Retry,
2262
+ telemetry: TELEMETRY,
2263
+ span: "GetBackup",
2191
2264
  }));
2192
2265
 
2193
2266
  export type GetBillingCustomerError = Forbidden | NotFound | XataOpError;
@@ -2203,6 +2276,8 @@ export const getBillingCustomer: API.OperationMethod<
2203
2276
  errors: [Forbidden, NotFound, UnknownXataError],
2204
2277
  protocol: XataProtocol,
2205
2278
  retry: Retry.Retry,
2279
+ telemetry: TELEMETRY,
2280
+ span: "GetBillingCustomer",
2206
2281
  }));
2207
2282
 
2208
2283
  export type GetBillingInvoicesError = BadRequest | Forbidden | NotFound | XataOpError;
@@ -2218,6 +2293,8 @@ export const getBillingInvoices: API.OperationMethod<
2218
2293
  errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
2219
2294
  protocol: XataProtocol,
2220
2295
  retry: Retry.Retry,
2296
+ telemetry: TELEMETRY,
2297
+ span: "GetBillingInvoices",
2221
2298
  }));
2222
2299
 
2223
2300
  export type GetBillingUpcomingInvoiceError = Forbidden | NotFound | XataOpError;
@@ -2233,6 +2310,8 @@ export const getBillingUpcomingInvoice: API.OperationMethod<
2233
2310
  errors: [Forbidden, NotFound, UnknownXataError],
2234
2311
  protocol: XataProtocol,
2235
2312
  retry: Retry.Retry,
2313
+ telemetry: TELEMETRY,
2314
+ span: "GetBillingUpcomingInvoice",
2236
2315
  }));
2237
2316
 
2238
2317
  export type GetBranchCredentialsError = BadRequest | NotFound | XataOpError;
@@ -2248,6 +2327,8 @@ export const getBranchCredentials: API.OperationMethod<
2248
2327
  errors: [BadRequest, NotFound, UnknownXataError],
2249
2328
  protocol: XataProtocol,
2250
2329
  retry: Retry.Retry,
2330
+ telemetry: TELEMETRY,
2331
+ span: "GetBranchCredentials",
2251
2332
  }));
2252
2333
 
2253
2334
  export type GetBranchPostgresConfigError = BadRequest | NotFound | XataOpError;
@@ -2263,6 +2344,8 @@ export const getBranchPostgresConfig: API.OperationMethod<
2263
2344
  errors: [BadRequest, NotFound, UnknownXataError],
2264
2345
  protocol: XataProtocol,
2265
2346
  retry: Retry.Retry,
2347
+ telemetry: TELEMETRY,
2348
+ span: "GetBranchPostgresConfig",
2266
2349
  }));
2267
2350
 
2268
2351
  export type GetGithubRepositoryError = BadRequest | XataOpError;
@@ -2278,6 +2361,8 @@ export const getGithubRepository: API.OperationMethod<
2278
2361
  errors: [BadRequest, UnknownXataError],
2279
2362
  protocol: XataProtocol,
2280
2363
  retry: Retry.Retry,
2364
+ telemetry: TELEMETRY,
2365
+ span: "GetGithubRepository",
2281
2366
  }));
2282
2367
 
2283
2368
  export type GetOrganizationError = BadRequest | Forbidden | NotFound | XataOpError;
@@ -2293,6 +2378,8 @@ export const getOrganization: API.OperationMethod<
2293
2378
  errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
2294
2379
  protocol: XataProtocol,
2295
2380
  retry: Retry.Retry,
2381
+ telemetry: TELEMETRY,
2382
+ span: "GetOrganization",
2296
2383
  }));
2297
2384
 
2298
2385
  export type GetOrganizationInvitationError = BadRequest | Forbidden | NotFound | XataOpError;
@@ -2308,6 +2395,8 @@ export const getOrganizationInvitation: API.OperationMethod<
2308
2395
  errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
2309
2396
  protocol: XataProtocol,
2310
2397
  retry: Retry.Retry,
2398
+ telemetry: TELEMETRY,
2399
+ span: "GetOrganizationInvitation",
2311
2400
  }));
2312
2401
 
2313
2402
  export type GetOrganizationLimitsError = Forbidden | XataOpError;
@@ -2323,6 +2412,8 @@ export const getOrganizationLimits: API.OperationMethod<
2323
2412
  errors: [Forbidden, UnknownXataError],
2324
2413
  protocol: XataProtocol,
2325
2414
  retry: Retry.Retry,
2415
+ telemetry: TELEMETRY,
2416
+ span: "GetOrganizationLimits",
2326
2417
  }));
2327
2418
 
2328
2419
  export type GetOrganizationMembershipLimitsError = Forbidden | XataOpError;
@@ -2338,6 +2429,8 @@ export const getOrganizationMembershipLimits: API.OperationMethod<
2338
2429
  errors: [Forbidden, UnknownXataError],
2339
2430
  protocol: XataProtocol,
2340
2431
  retry: Retry.Retry,
2432
+ telemetry: TELEMETRY,
2433
+ span: "GetOrganizationMembershipLimits",
2341
2434
  }));
2342
2435
 
2343
2436
  export type GetOrganizationsListError = BadRequest | NotFound | XataOpError;
@@ -2353,6 +2446,8 @@ export const getOrganizationsList: API.OperationMethod<
2353
2446
  errors: [BadRequest, NotFound, UnknownXataError],
2354
2447
  protocol: XataProtocol,
2355
2448
  retry: Retry.Retry,
2449
+ telemetry: TELEMETRY,
2450
+ span: "GetOrganizationsList",
2356
2451
  }));
2357
2452
 
2358
2453
  export type GetOrganizationSSOError = Forbidden | XataOpError;
@@ -2368,6 +2463,8 @@ export const getOrganizationSSO: API.OperationMethod<
2368
2463
  errors: [Forbidden, UnknownXataError],
2369
2464
  protocol: XataProtocol,
2370
2465
  retry: Retry.Retry,
2466
+ telemetry: TELEMETRY,
2467
+ span: "GetOrganizationSSO",
2371
2468
  }));
2372
2469
 
2373
2470
  export type GetProjectError = BadRequest | NotFound | XataOpError;
@@ -2383,6 +2480,8 @@ export const getProject: API.OperationMethod<
2383
2480
  errors: [BadRequest, NotFound, UnknownXataError],
2384
2481
  protocol: XataProtocol,
2385
2482
  retry: Retry.Retry,
2483
+ telemetry: TELEMETRY,
2484
+ span: "GetProject",
2386
2485
  }));
2387
2486
 
2388
2487
  export type GetProjectLimitsError = XataOpError;
@@ -2398,6 +2497,8 @@ export const getProjectLimits: API.OperationMethod<
2398
2497
  errors: [UnknownXataError],
2399
2498
  protocol: XataProtocol,
2400
2499
  retry: Retry.Retry,
2500
+ telemetry: TELEMETRY,
2501
+ span: "GetProjectLimits",
2401
2502
  }));
2402
2503
 
2403
2504
  export type GetResourceError = Forbidden | NotFound | XataOpError;
@@ -2413,6 +2514,8 @@ export const getResource: API.OperationMethod<
2413
2514
  errors: [Forbidden, NotFound, UnknownXataError],
2414
2515
  protocol: XataProtocol,
2415
2516
  retry: Retry.Retry,
2517
+ telemetry: TELEMETRY,
2518
+ span: "GetResource",
2416
2519
  }));
2417
2520
 
2418
2521
  export type GithubWebhookError = BadRequest | XataOpError;
@@ -2428,6 +2531,8 @@ export const githubWebhook: API.OperationMethod<
2428
2531
  errors: [BadRequest, UnknownXataError],
2429
2532
  protocol: XataProtocol,
2430
2533
  retry: Retry.Retry,
2534
+ telemetry: TELEMETRY,
2535
+ span: "GithubWebhook",
2431
2536
  }));
2432
2537
 
2433
2538
  export type ListBackupsError = BadRequest | NotFound | XataOpError;
@@ -2443,6 +2548,8 @@ export const listBackups: API.OperationMethod<
2443
2548
  errors: [BadRequest, NotFound, UnknownXataError],
2444
2549
  protocol: XataProtocol,
2445
2550
  retry: Retry.Retry,
2551
+ telemetry: TELEMETRY,
2552
+ span: "ListBackups",
2446
2553
  }));
2447
2554
 
2448
2555
  export type ListBillingPlansForProductError = BadRequest | Forbidden | NotFound | XataOpError;
@@ -2458,6 +2565,8 @@ export const listBillingPlansForProduct: API.OperationMethod<
2458
2565
  errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
2459
2566
  protocol: XataProtocol,
2460
2567
  retry: Retry.Retry,
2568
+ telemetry: TELEMETRY,
2569
+ span: "ListBillingPlansForProduct",
2461
2570
  }));
2462
2571
 
2463
2572
  export type ListBranchesError = BadRequest | NotFound | XataOpError;
@@ -2473,6 +2582,8 @@ export const listBranches: API.OperationMethod<
2473
2582
  errors: [BadRequest, NotFound, UnknownXataError],
2474
2583
  protocol: XataProtocol,
2475
2584
  retry: Retry.Retry,
2585
+ telemetry: TELEMETRY,
2586
+ span: "ListBranches",
2476
2587
  }));
2477
2588
 
2478
2589
  export type ListExtensionsError = BadRequest | XataOpError;
@@ -2488,6 +2599,8 @@ export const listExtensions: API.OperationMethod<
2488
2599
  errors: [BadRequest, UnknownXataError],
2489
2600
  protocol: XataProtocol,
2490
2601
  retry: Retry.Retry,
2602
+ telemetry: TELEMETRY,
2603
+ span: "ListExtensions",
2491
2604
  }));
2492
2605
 
2493
2606
  export type ListGithubAppInstallationsError = BadRequest | XataOpError;
@@ -2503,6 +2616,8 @@ export const listGithubAppInstallations: API.OperationMethod<
2503
2616
  errors: [BadRequest, UnknownXataError],
2504
2617
  protocol: XataProtocol,
2505
2618
  retry: Retry.Retry,
2619
+ telemetry: TELEMETRY,
2620
+ span: "ListGithubAppInstallations",
2506
2621
  }));
2507
2622
 
2508
2623
  export type ListImagesError = BadRequest | XataOpError;
@@ -2518,6 +2633,8 @@ export const listImages: API.OperationMethod<
2518
2633
  errors: [BadRequest, UnknownXataError],
2519
2634
  protocol: XataProtocol,
2520
2635
  retry: Retry.Retry,
2636
+ telemetry: TELEMETRY,
2637
+ span: "ListImages",
2521
2638
  }));
2522
2639
 
2523
2640
  export type ListInstanceTypesError = BadRequest | XataOpError;
@@ -2533,6 +2650,8 @@ export const listInstanceTypes: API.OperationMethod<
2533
2650
  errors: [BadRequest, UnknownXataError],
2534
2651
  protocol: XataProtocol,
2535
2652
  retry: Retry.Retry,
2653
+ telemetry: TELEMETRY,
2654
+ span: "ListInstanceTypes",
2536
2655
  }));
2537
2656
 
2538
2657
  export type ListOrganizationAPIKeysError = BadRequest | Forbidden | NotFound | XataOpError;
@@ -2548,6 +2667,8 @@ export const listOrganizationAPIKeys: API.OperationMethod<
2548
2667
  errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
2549
2668
  protocol: XataProtocol,
2550
2669
  retry: Retry.Retry,
2670
+ telemetry: TELEMETRY,
2671
+ span: "ListOrganizationAPIKeys",
2551
2672
  }));
2552
2673
 
2553
2674
  export type ListOrganizationInvitationsError = BadRequest | Forbidden | NotFound | XataOpError;
@@ -2563,6 +2684,8 @@ export const listOrganizationInvitations: API.OperationMethod<
2563
2684
  errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
2564
2685
  protocol: XataProtocol,
2565
2686
  retry: Retry.Retry,
2687
+ telemetry: TELEMETRY,
2688
+ span: "ListOrganizationInvitations",
2566
2689
  }));
2567
2690
 
2568
2691
  export type ListOrganizationMembersError = XataOpError;
@@ -2578,6 +2701,8 @@ export const listOrganizationMembers: API.OperationMethod<
2578
2701
  errors: [UnknownXataError],
2579
2702
  protocol: XataProtocol,
2580
2703
  retry: Retry.Retry,
2704
+ telemetry: TELEMETRY,
2705
+ span: "ListOrganizationMembers",
2581
2706
  }));
2582
2707
 
2583
2708
  export type ListOrganizationRolesError = Forbidden | NotFound | XataOpError;
@@ -2593,6 +2718,8 @@ export const listOrganizationRoles: API.OperationMethod<
2593
2718
  errors: [Forbidden, NotFound, UnknownXataError],
2594
2719
  protocol: XataProtocol,
2595
2720
  retry: Retry.Retry,
2721
+ telemetry: TELEMETRY,
2722
+ span: "ListOrganizationRoles",
2596
2723
  }));
2597
2724
 
2598
2725
  export type ListProjectsError = BadRequest | XataOpError;
@@ -2608,6 +2735,8 @@ export const listProjects: API.OperationMethod<
2608
2735
  errors: [BadRequest, UnknownXataError],
2609
2736
  protocol: XataProtocol,
2610
2737
  retry: Retry.Retry,
2738
+ telemetry: TELEMETRY,
2739
+ span: "ListProjects",
2611
2740
  }));
2612
2741
 
2613
2742
  export type ListRegionsError = BadRequest | XataOpError;
@@ -2623,6 +2752,8 @@ export const listRegions: API.OperationMethod<
2623
2752
  errors: [BadRequest, UnknownXataError],
2624
2753
  protocol: XataProtocol,
2625
2754
  retry: Retry.Retry,
2755
+ telemetry: TELEMETRY,
2756
+ span: "ListRegions",
2626
2757
  }));
2627
2758
 
2628
2759
  export type ListUserAPIKeysError = BadRequest | XataOpError;
@@ -2638,6 +2769,8 @@ export const listUserAPIKeys: API.OperationMethod<
2638
2769
  errors: [BadRequest, UnknownXataError],
2639
2770
  protocol: XataProtocol,
2640
2771
  retry: Retry.Retry,
2772
+ telemetry: TELEMETRY,
2773
+ span: "ListUserAPIKeys",
2641
2774
  }));
2642
2775
 
2643
2776
  export type OrbWebhookError = BadRequest | XataOpError;
@@ -2653,6 +2786,8 @@ export const orbWebhook: API.OperationMethod<
2653
2786
  errors: [BadRequest, UnknownXataError],
2654
2787
  protocol: XataProtocol,
2655
2788
  retry: Retry.Retry,
2789
+ telemetry: TELEMETRY,
2790
+ span: "OrbWebhook",
2656
2791
  }));
2657
2792
 
2658
2793
  export type ProvisionResourceError = BadRequest | Forbidden | NotFound | Conflict | XataOpError;
@@ -2668,10 +2803,12 @@ export const provisionResource: API.OperationMethod<
2668
2803
  errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownXataError],
2669
2804
  protocol: XataProtocol,
2670
2805
  retry: Retry.Retry,
2806
+ telemetry: TELEMETRY,
2807
+ span: "ProvisionResource",
2671
2808
  }));
2672
2809
 
2673
2810
  export type QueryError = BadRequest | Forbidden | NotFound | Conflict | XataOpError;
2674
- /** 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. */
2675
2812
  export const query: API.OperationMethod<QueryRequest, QueryResponse, QueryError, XataOpContext> =
2676
2813
  /*@__PURE__*/ API.make(() => ({
2677
2814
  input: __S(1171, __c73, 3) as any as S.Schema<QueryRequest>,
@@ -2679,6 +2816,8 @@ export const query: API.OperationMethod<QueryRequest, QueryResponse, QueryError,
2679
2816
  errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownXataError],
2680
2817
  protocol: XataProtocol,
2681
2818
  retry: Retry.Retry,
2819
+ telemetry: TELEMETRY,
2820
+ span: "Query",
2682
2821
  }));
2683
2822
 
2684
2823
  export type RegisterMarketplaceError = BadRequest | Conflict | XataOpError;
@@ -2694,6 +2833,8 @@ export const registerMarketplace: API.OperationMethod<
2694
2833
  errors: [BadRequest, Conflict, UnknownXataError],
2695
2834
  protocol: XataProtocol,
2696
2835
  retry: Retry.Retry,
2836
+ telemetry: TELEMETRY,
2837
+ span: "RegisterMarketplace",
2697
2838
  }));
2698
2839
 
2699
2840
  export type RemoveOrganizationMemberError = BadRequest | Conflict | XataOpError;
@@ -2709,6 +2850,8 @@ export const removeOrganizationMember: API.OperationMethod<
2709
2850
  errors: [BadRequest, Conflict, UnknownXataError],
2710
2851
  protocol: XataProtocol,
2711
2852
  retry: Retry.Retry,
2853
+ telemetry: TELEMETRY,
2854
+ span: "RemoveOrganizationMember",
2712
2855
  }));
2713
2856
 
2714
2857
  export type RequestOrganizationDeletionError = BadRequest | Forbidden | Conflict | XataOpError;
@@ -2724,6 +2867,8 @@ export const requestOrganizationDeletion: API.OperationMethod<
2724
2867
  errors: [BadRequest, Forbidden, Conflict, UnknownXataError],
2725
2868
  protocol: XataProtocol,
2726
2869
  retry: Retry.Retry,
2870
+ telemetry: TELEMETRY,
2871
+ span: "RequestOrganizationDeletion",
2727
2872
  }));
2728
2873
 
2729
2874
  export type ResendOrganizationInvitationError = BadRequest | Forbidden | NotFound | XataOpError;
@@ -2739,10 +2884,12 @@ export const resendOrganizationInvitation: API.OperationMethod<
2739
2884
  errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
2740
2885
  protocol: XataProtocol,
2741
2886
  retry: Retry.Retry,
2887
+ telemetry: TELEMETRY,
2888
+ span: "ResendOrganizationInvitation",
2742
2889
  }));
2743
2890
 
2744
2891
  export type RestoreFromBackupError = BadRequest | NotFound | XataOpError;
2745
- /** 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. */
2746
2893
  export const restoreFromBackup: API.OperationMethod<
2747
2894
  RestoreFromBackupRequest,
2748
2895
  BranchShortMetadata,
@@ -2754,6 +2901,8 @@ export const restoreFromBackup: API.OperationMethod<
2754
2901
  errors: [BadRequest, NotFound, UnknownXataError],
2755
2902
  protocol: XataProtocol,
2756
2903
  retry: Retry.Retry,
2904
+ telemetry: TELEMETRY,
2905
+ span: "RestoreFromBackup",
2757
2906
  }));
2758
2907
 
2759
2908
  export type RotateBranchCredentialsError = BadRequest | NotFound | XataOpError;
@@ -2769,6 +2918,8 @@ export const rotateBranchCredentials: API.OperationMethod<
2769
2918
  errors: [BadRequest, NotFound, UnknownXataError],
2770
2919
  protocol: XataProtocol,
2771
2920
  retry: Retry.Retry,
2921
+ telemetry: TELEMETRY,
2922
+ span: "RotateBranchCredentials",
2772
2923
  }));
2773
2924
 
2774
2925
  export type SendMcpRequestError = BadRequest | XataOpError;
@@ -2784,6 +2935,8 @@ export const sendMcpRequest: API.OperationMethod<
2784
2935
  errors: [BadRequest, UnknownXataError],
2785
2936
  protocol: XataProtocol,
2786
2937
  retry: Retry.Retry,
2938
+ telemetry: TELEMETRY,
2939
+ span: "SendMcpRequest",
2787
2940
  }));
2788
2941
 
2789
2942
  export type SetOrganizationMemberRoleError =
@@ -2804,6 +2957,8 @@ export const setOrganizationMemberRole: API.OperationMethod<
2804
2957
  errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownXataError],
2805
2958
  protocol: XataProtocol,
2806
2959
  retry: Retry.Retry,
2960
+ telemetry: TELEMETRY,
2961
+ span: "SetOrganizationMemberRole",
2807
2962
  }));
2808
2963
 
2809
2964
  export type SetOrganizationSSOProviderEnforcementError =
@@ -2823,6 +2978,8 @@ export const setOrganizationSSOProviderEnforcement: API.OperationMethod<
2823
2978
  errors: [Forbidden, NotFound, Conflict, UnknownXataError],
2824
2979
  protocol: XataProtocol,
2825
2980
  retry: Retry.Retry,
2981
+ telemetry: TELEMETRY,
2982
+ span: "SetOrganizationSSOProviderEnforcement",
2826
2983
  }));
2827
2984
 
2828
2985
  export type StripeWebhookError = BadRequest | XataOpError;
@@ -2838,6 +2995,8 @@ export const stripeWebhook: API.OperationMethod<
2838
2995
  errors: [BadRequest, UnknownXataError],
2839
2996
  protocol: XataProtocol,
2840
2997
  retry: Retry.Retry,
2998
+ telemetry: TELEMETRY,
2999
+ span: "StripeWebhook",
2841
3000
  }));
2842
3001
 
2843
3002
  export type UpdateBillingCustomerError = BadRequest | Forbidden | NotFound | XataOpError;
@@ -2853,6 +3012,8 @@ export const updateBillingCustomer: API.OperationMethod<
2853
3012
  errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
2854
3013
  protocol: XataProtocol,
2855
3014
  retry: Retry.Retry,
3015
+ telemetry: TELEMETRY,
3016
+ span: "UpdateBillingCustomer",
2856
3017
  }));
2857
3018
 
2858
3019
  export type UpdateBranchError = BadRequest | NotFound | XataOpError;
@@ -2868,6 +3029,8 @@ export const updateBranch: API.OperationMethod<
2868
3029
  errors: [BadRequest, NotFound, UnknownXataError],
2869
3030
  protocol: XataProtocol,
2870
3031
  retry: Retry.Retry,
3032
+ telemetry: TELEMETRY,
3033
+ span: "UpdateBranch",
2871
3034
  }));
2872
3035
 
2873
3036
  export type UpdateGithubAppInstallationError = BadRequest | NotFound | Conflict | XataOpError;
@@ -2883,6 +3046,8 @@ export const updateGithubAppInstallation: API.OperationMethod<
2883
3046
  errors: [BadRequest, NotFound, Conflict, UnknownXataError],
2884
3047
  protocol: XataProtocol,
2885
3048
  retry: Retry.Retry,
3049
+ telemetry: TELEMETRY,
3050
+ span: "UpdateGithubAppInstallation",
2886
3051
  }));
2887
3052
 
2888
3053
  export type UpdateGithubRepositoryError = BadRequest | NotFound | XataOpError;
@@ -2898,6 +3063,8 @@ export const updateGithubRepository: API.OperationMethod<
2898
3063
  errors: [BadRequest, NotFound, UnknownXataError],
2899
3064
  protocol: XataProtocol,
2900
3065
  retry: Retry.Retry,
3066
+ telemetry: TELEMETRY,
3067
+ span: "UpdateGithubRepository",
2901
3068
  }));
2902
3069
 
2903
3070
  export type UpdateOrganizationError = BadRequest | Forbidden | NotFound | XataOpError;
@@ -2913,6 +3080,8 @@ export const updateOrganization: API.OperationMethod<
2913
3080
  errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
2914
3081
  protocol: XataProtocol,
2915
3082
  retry: Retry.Retry,
3083
+ telemetry: TELEMETRY,
3084
+ span: "UpdateOrganization",
2916
3085
  }));
2917
3086
 
2918
3087
  export type UpdateOrganizationSSOProviderError =
@@ -2933,6 +3102,8 @@ export const updateOrganizationSSOProvider: API.OperationMethod<
2933
3102
  errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownXataError],
2934
3103
  protocol: XataProtocol,
2935
3104
  retry: Retry.Retry,
3105
+ telemetry: TELEMETRY,
3106
+ span: "UpdateOrganizationSSOProvider",
2936
3107
  }));
2937
3108
 
2938
3109
  export type UpdateProjectError = BadRequest | NotFound | XataOpError;
@@ -2948,6 +3119,8 @@ export const updateProject: API.OperationMethod<
2948
3119
  errors: [BadRequest, NotFound, UnknownXataError],
2949
3120
  protocol: XataProtocol,
2950
3121
  retry: Retry.Retry,
3122
+ telemetry: TELEMETRY,
3123
+ span: "UpdateProject",
2951
3124
  }));
2952
3125
 
2953
3126
  export type UpsertInstallationError = BadRequest | Forbidden | Conflict | XataOpError;
@@ -2963,6 +3136,8 @@ export const upsertInstallation: API.OperationMethod<
2963
3136
  errors: [BadRequest, Forbidden, Conflict, UnknownXataError],
2964
3137
  protocol: XataProtocol,
2965
3138
  retry: Retry.Retry,
3139
+ telemetry: TELEMETRY,
3140
+ span: "UpsertInstallation",
2966
3141
  }));
2967
3142
 
2968
3143
  export type VerifyOrganizationSSODomainError = Forbidden | NotFound | Conflict | XataOpError;
@@ -2978,6 +3153,8 @@ export const verifyOrganizationSSODomain: API.OperationMethod<
2978
3153
  errors: [Forbidden, NotFound, Conflict, UnknownXataError],
2979
3154
  protocol: XataProtocol,
2980
3155
  retry: Retry.Retry,
3156
+ telemetry: TELEMETRY,
3157
+ span: "VerifyOrganizationSSODomain",
2981
3158
  }));
2982
3159
 
2983
3160
  export type WebsocketError = BadRequest | XataOpError;
@@ -2993,6 +3170,8 @@ export const websocket: API.OperationMethod<
2993
3170
  errors: [BadRequest, UnknownXataError],
2994
3171
  protocol: XataProtocol,
2995
3172
  retry: Retry.Retry,
3173
+ telemetry: TELEMETRY,
3174
+ span: "Websocket",
2996
3175
  }));
2997
3176
 
2998
3177
  // Schema builders: each runs one schema initializer, on that schema's first use.
@@ -4799,6 +4978,7 @@ function __c78(j: number): any {
4799
4978
  scaleToZero: S.optional(__S(1568, __c98, 0)),
4800
4979
  backupConfiguration: S.optional(__S(1584, __c99, 0)),
4801
4980
  configuration: S.optional(__S(448, __c28, 0)),
4981
+ targetTime: S.optional(S.String),
4802
4982
  }).pipe(
4803
4983
  T.Http({
4804
4984
  method: "POST",