@distilled.cloud/xata 1.0.0-rc.13 → 1.0.0-rc.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,12 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import * as C from "@distilled.cloud/core/category";
1
3
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-xata). Do not edit.
2
4
  import * as S from "@distilled.cloud/core/schema";
3
5
  import * as Redacted from "effect/Redacted";
4
- import * as API from "@distilled.cloud/core/api";
5
- import * as C from "@distilled.cloud/core/category";
6
- import * as T from "../traits.ts";
7
- import {
8
- XataProtocol,
9
- type XataOpError,
10
- type XataOpContext,
11
- } from "../protocol.ts";
12
6
  import { UnknownXataError } from "../errors.ts";
7
+ import { XataProtocol, type XataOpError, type XataOpContext } from "../protocol.ts";
13
8
  import * as Retry from "../retry.ts";
9
+ import * as T from "../traits.ts";
14
10
 
15
11
  export type { XataOpError, XataOpContext };
16
12
 
@@ -121,9 +117,7 @@ export const BranchLogsRequest = /*@__PURE__*/ S.suspend(() =>
121
117
  code: 200,
122
118
  }),
123
119
  ),
124
- ).annotate({
125
- identifier: "BranchLogsRequest",
126
- }) as any as S.Schema<BranchLogsRequest>;
120
+ ).annotate({ identifier: "BranchLogsRequest" }) as any as S.Schema<BranchLogsRequest>;
127
121
 
128
122
  /** Log level enumeration */
129
123
  export type LogLevel = "debug" | "info" | "warning" | "error";
@@ -189,9 +183,7 @@ export type BranchMetricName =
189
183
  export const BranchMetricName = S.String;
190
184
 
191
185
  /** List of metric names to query. */
192
- export type BranchMetricsRequestMetricsList = Array<
193
- BranchMetricName | (string & {})
194
- >;
186
+ export type BranchMetricsRequestMetricsList = Array<BranchMetricName | (string & {})>;
195
187
  export const BranchMetricsRequestMetricsList = /*@__PURE__*/ S.Array(
196
188
  BranchMetricName,
197
189
  ) as any as S.Schema<BranchMetricsRequestMetricsList>;
@@ -245,9 +237,7 @@ export const BranchMetricsRequest = /*@__PURE__*/ S.suspend(() =>
245
237
  code: 200,
246
238
  }),
247
239
  ),
248
- ).annotate({
249
- identifier: "BranchMetricsRequest",
250
- }) as any as S.Schema<BranchMetricsRequest>;
240
+ ).annotate({ identifier: "BranchMetricsRequest" }) as any as S.Schema<BranchMetricsRequest>;
251
241
 
252
242
  /** The aggregation used to generate this time-series */
253
243
  export type MetricSeriesAggregation = "avg" | "max" | "min";
@@ -262,9 +252,7 @@ export const MetricSeriesValuesItem = /*@__PURE__*/ S.suspend(() =>
262
252
  timestamp: S.String,
263
253
  value: S.Number,
264
254
  }),
265
- ).annotate({
266
- identifier: "MetricSeriesValuesItem",
267
- }) as any as S.Schema<MetricSeriesValuesItem>;
255
+ ).annotate({ identifier: "MetricSeriesValuesItem" }) as any as S.Schema<MetricSeriesValuesItem>;
268
256
 
269
257
  export type MetricSeriesValuesList = Array<MetricSeriesValuesItem>;
270
258
  export const MetricSeriesValuesList = /*@__PURE__*/ S.Array(
@@ -306,9 +294,7 @@ export const BranchMetricResult = /*@__PURE__*/ S.suspend(() =>
306
294
  unit: S.String,
307
295
  series: BranchMetricResultSeriesList,
308
296
  }),
309
- ).annotate({
310
- identifier: "BranchMetricResult",
311
- }) as any as S.Schema<BranchMetricResult>;
297
+ ).annotate({ identifier: "BranchMetricResult" }) as any as S.Schema<BranchMetricResult>;
312
298
 
313
299
  /** One entry per requested metric, in the order the metrics were requested. */
314
300
  export type BranchMetricsResultsList = Array<BranchMetricResult>;
@@ -331,6 +317,68 @@ export const BranchMetrics = /*@__PURE__*/ S.suspend(() =>
331
317
  }),
332
318
  ).annotate({ identifier: "BranchMetrics" }) as any as S.Schema<BranchMetrics>;
333
319
 
320
+ export interface ClaimOrganizationSSODomainRequest {
321
+ /** Unique identifier for a specific organization */
322
+ organizationID: string;
323
+ /** Bare email domain to claim, for example acme.com. */
324
+ domain: string;
325
+ }
326
+ export const ClaimOrganizationSSODomainRequest = /*@__PURE__*/ S.suspend(() =>
327
+ S.Struct({
328
+ organizationID: S.String.pipe(T.Label()),
329
+ domain: S.String,
330
+ }).pipe(
331
+ T.Http({ method: "POST", uri: "/organizations/{organizationID}/sso/domains", code: 200 }),
332
+ ),
333
+ ).annotate({
334
+ identifier: "ClaimOrganizationSSODomainRequest",
335
+ }) as any as S.Schema<ClaimOrganizationSSODomainRequest>;
336
+
337
+ /** The DNS TXT record that proves an organization controls a domain */
338
+ export interface OrganizationSSODomainVerification {
339
+ /** Name to create the record at */
340
+ record_name: string;
341
+ /** DNS record type */
342
+ record_type: string;
343
+ /** Value the record must hold */
344
+ record_value: string;
345
+ }
346
+ export const OrganizationSSODomainVerification = /*@__PURE__*/ S.suspend(() =>
347
+ S.Struct({
348
+ record_name: S.String,
349
+ record_type: S.String,
350
+ record_value: S.String,
351
+ }),
352
+ ).annotate({
353
+ identifier: "OrganizationSSODomainVerification",
354
+ }) as any as S.Schema<OrganizationSSODomainVerification>;
355
+
356
+ /** An email domain claimed by an organization for SSO */
357
+ export interface OrganizationSSODomain {
358
+ /** The claimed email domain */
359
+ domain: string;
360
+ /** The alias an identity provider on this domain will be given. Derived from the organization and the domain, so it is known before the provider exists, which is what lets a client show the redirect URI to register with the provider up front. */
361
+ provider_alias: string;
362
+ /** Whether control of the domain has been proven through DNS */
363
+ verified: boolean;
364
+ /** The DNS record that proves control of the domain. It must stay published while the domain is verified. */
365
+ verification?: OrganizationSSODomainVerification | null;
366
+ /** When the daily recheck first found the record missing from a verified domain. */
367
+ missing_since?: string | null;
368
+ /** When the domain stops being verified if the record is still missing. */
369
+ revokes_at?: string | null;
370
+ }
371
+ export const OrganizationSSODomain = /*@__PURE__*/ S.suspend(() =>
372
+ S.Struct({
373
+ domain: S.String,
374
+ provider_alias: S.String,
375
+ verified: S.Boolean,
376
+ verification: S.optional(S.NullOr(OrganizationSSODomainVerification)),
377
+ missing_since: S.optional(S.NullOr(S.String)),
378
+ revokes_at: S.optional(S.NullOr(S.String)),
379
+ }),
380
+ ).annotate({ identifier: "OrganizationSSODomain" }) as any as S.Schema<OrganizationSSODomain>;
381
+
334
382
  export interface CreateBillingCheckoutSessionRequest {
335
383
  /** Unique identifier for a specific organization */
336
384
  organizationID: string;
@@ -365,17 +413,16 @@ export interface CreateBillingPaymentMethodSessionRequest {
365
413
  /** Unique identifier for a specific organization */
366
414
  organizationID: string;
367
415
  }
368
- export const CreateBillingPaymentMethodSessionRequest = /*@__PURE__*/ S.suspend(
369
- () =>
370
- S.Struct({
371
- organizationID: S.String.pipe(T.Label()),
372
- }).pipe(
373
- T.Http({
374
- method: "POST",
375
- uri: "/organizations/{organizationID}/billing/payment-method-session",
376
- code: 200,
377
- }),
378
- ),
416
+ export const CreateBillingPaymentMethodSessionRequest = /*@__PURE__*/ S.suspend(() =>
417
+ S.Struct({
418
+ organizationID: S.String.pipe(T.Label()),
419
+ }).pipe(
420
+ T.Http({
421
+ method: "POST",
422
+ uri: "/organizations/{organizationID}/billing/payment-method-session",
423
+ code: 200,
424
+ }),
425
+ ),
379
426
  ).annotate({
380
427
  identifier: "CreateBillingPaymentMethodSessionRequest",
381
428
  }) as any as S.Schema<CreateBillingPaymentMethodSessionRequest>;
@@ -404,9 +451,7 @@ export const ScaleToZeroConfiguration = /*@__PURE__*/ S.suspend(() =>
404
451
  enabled: S.Boolean,
405
452
  inactivityPeriodMinutes: S.Number,
406
453
  }),
407
- ).annotate({
408
- identifier: "ScaleToZeroConfiguration",
409
- }) as any as S.Schema<ScaleToZeroConfiguration>;
454
+ ).annotate({ identifier: "ScaleToZeroConfiguration" }) as any as S.Schema<ScaleToZeroConfiguration>;
410
455
 
411
456
  /** Details about the branch continuous backup configuration */
412
457
  export interface BackupConfiguration {
@@ -420,9 +465,7 @@ export const BackupConfiguration = /*@__PURE__*/ S.suspend(() =>
420
465
  retentionPeriod: S.optional(S.Number),
421
466
  backupTime: S.optional(S.String),
422
467
  }),
423
- ).annotate({
424
- identifier: "BackupConfiguration",
425
- }) as any as S.Schema<BackupConfiguration>;
468
+ ).annotate({ identifier: "BackupConfiguration" }) as any as S.Schema<BackupConfiguration>;
426
469
 
427
470
  /** The mode used to discriminate between types of branches. */
428
471
  export type CreateBranchRequestMode = "inherit" | "custom";
@@ -435,7 +478,7 @@ export interface CreateBranchRequest {
435
478
  projectID: string;
436
479
  /** Human-readable name for the new branch */
437
480
  name: string;
438
- /** Optional description for the branch purpose or contents (max 50 characters) */
481
+ /** Optional description for the branch purpose or contents. An empty string is stored as no description. */
439
482
  description?: string;
440
483
  scaleToZero?: ScaleToZeroConfiguration;
441
484
  backupConfiguration?: BackupConfiguration;
@@ -458,9 +501,7 @@ export const CreateBranchRequest = /*@__PURE__*/ S.suspend(() =>
458
501
  code: 200,
459
502
  }),
460
503
  ),
461
- ).annotate({
462
- identifier: "CreateBranchRequest",
463
- }) as any as S.Schema<CreateBranchRequest>;
504
+ ).annotate({ identifier: "CreateBranchRequest" }) as any as S.Schema<CreateBranchRequest>;
464
505
 
465
506
  /** Basic metadata about a branch, used in response to create/update operations */
466
507
  export interface BranchShortMetadata {
@@ -495,9 +536,7 @@ export const BranchShortMetadata = /*@__PURE__*/ S.suspend(() =>
495
536
  region: S.String,
496
537
  publicAccess: S.Boolean,
497
538
  }),
498
- ).annotate({
499
- identifier: "BranchShortMetadata",
500
- }) as any as S.Schema<BranchShortMetadata>;
539
+ ).annotate({ identifier: "BranchShortMetadata" }) as any as S.Schema<BranchShortMetadata>;
501
540
 
502
541
  export interface CreateGithubAppInstallationRequest {
503
542
  /** Unique identifier of the organization */
@@ -541,9 +580,7 @@ export const GithubInstallation = /*@__PURE__*/ S.suspend(() =>
541
580
  createdAt: S.String,
542
581
  updatedAt: S.String,
543
582
  }),
544
- ).annotate({
545
- identifier: "GithubInstallation",
546
- }) as any as S.Schema<GithubInstallation>;
583
+ ).annotate({ identifier: "GithubInstallation" }) as any as S.Schema<GithubInstallation>;
547
584
 
548
585
  export interface CreateGithubRepositoryRequest {
549
586
  /** Unique identifier of the organization */
@@ -596,9 +633,7 @@ export const GithubRepository = /*@__PURE__*/ S.suspend(() =>
596
633
  createdAt: S.String,
597
634
  updatedAt: S.String,
598
635
  }),
599
- ).annotate({
600
- identifier: "GithubRepository",
601
- }) as any as S.Schema<GithubRepository>;
636
+ ).annotate({ identifier: "GithubRepository" }) as any as S.Schema<GithubRepository>;
602
637
 
603
638
  export interface CreateOrganizationRequest {
604
639
  /** Name for the new organization */
@@ -658,9 +693,7 @@ export const OrganizationStatus = /*@__PURE__*/ S.suspend(() =>
658
693
  last_updated: S.String,
659
694
  created_at: S.optional(S.String),
660
695
  }),
661
- ).annotate({
662
- identifier: "OrganizationStatus",
663
- }) as any as S.Schema<OrganizationStatus>;
696
+ ).annotate({ identifier: "OrganizationStatus" }) as any as S.Schema<OrganizationStatus>;
664
697
 
665
698
  /** Marketplace provider associated with an organization. */
666
699
  export type OrganizationMarketplaceProvider = "aws";
@@ -694,17 +727,15 @@ export const CreateOrganizationAPIKeyRequestScopesList = /*@__PURE__*/ S.Array(
694
727
 
695
728
  /** Limit access to these projects */
696
729
  export type CreateOrganizationAPIKeyRequestProjectsList = Array<string>;
697
- export const CreateOrganizationAPIKeyRequestProjectsList =
698
- /*@__PURE__*/ S.Array(
699
- S.String,
700
- ) as any as S.Schema<CreateOrganizationAPIKeyRequestProjectsList>;
730
+ export const CreateOrganizationAPIKeyRequestProjectsList = /*@__PURE__*/ S.Array(
731
+ S.String,
732
+ ) as any as S.Schema<CreateOrganizationAPIKeyRequestProjectsList>;
701
733
 
702
734
  /** Limit access to these branches */
703
735
  export type CreateOrganizationAPIKeyRequestBranchesList = Array<string>;
704
- export const CreateOrganizationAPIKeyRequestBranchesList =
705
- /*@__PURE__*/ S.Array(
706
- S.String,
707
- ) as any as S.Schema<CreateOrganizationAPIKeyRequestBranchesList>;
736
+ export const CreateOrganizationAPIKeyRequestBranchesList = /*@__PURE__*/ S.Array(
737
+ S.String,
738
+ ) as any as S.Schema<CreateOrganizationAPIKeyRequestBranchesList>;
708
739
 
709
740
  export interface CreateOrganizationAPIKeyRequest {
710
741
  /** Unique identifier for a specific organization */
@@ -727,13 +758,7 @@ export const CreateOrganizationAPIKeyRequest = /*@__PURE__*/ S.suspend(() =>
727
758
  scopes: S.optional(CreateOrganizationAPIKeyRequestScopesList),
728
759
  projects: S.optional(CreateOrganizationAPIKeyRequestProjectsList),
729
760
  branches: S.optional(CreateOrganizationAPIKeyRequestBranchesList),
730
- }).pipe(
731
- T.Http({
732
- method: "POST",
733
- uri: "/organizations/{organizationID}/api-keys",
734
- code: 200,
735
- }),
736
- ),
761
+ }).pipe(T.Http({ method: "POST", uri: "/organizations/{organizationID}/api-keys", code: 200 })),
737
762
  ).annotate({
738
763
  identifier: "CreateOrganizationAPIKeyRequest",
739
764
  }) as any as S.Schema<CreateOrganizationAPIKeyRequest>;
@@ -804,34 +829,97 @@ export const CreateOrganizationAPIKeyResponse = /*@__PURE__*/ S.suspend(() =>
804
829
  identifier: "CreateOrganizationAPIKeyResponse",
805
830
  }) as any as S.Schema<CreateOrganizationAPIKeyResponse>;
806
831
 
832
+ /** The roles a member of an organization can hold */
833
+ export type OrganizationRoleName = "admin" | "editor";
834
+ export const OrganizationRoleName = S.String;
835
+
807
836
  export interface CreateOrganizationInvitationRequest {
808
837
  /** Unique identifier for a specific organization */
809
838
  organizationID: string;
810
839
  /** Email address of the user to invite */
811
840
  email: string;
841
+ /** Role the user holds once they accept the invitation. Optional; when omitted, the least privileged role offered applies */
842
+ role?: OrganizationRoleName | (string & {});
812
843
  }
813
844
  export const CreateOrganizationInvitationRequest = /*@__PURE__*/ S.suspend(() =>
814
845
  S.Struct({
815
846
  organizationID: S.String.pipe(T.Label()),
816
847
  email: S.String,
848
+ role: S.optional(OrganizationRoleName),
817
849
  }).pipe(
818
- T.Http({
819
- method: "POST",
820
- uri: "/organizations/{organizationID}/invitations",
821
- code: 200,
822
- }),
850
+ T.Http({ method: "POST", uri: "/organizations/{organizationID}/invitations", code: 200 }),
823
851
  ),
824
852
  ).annotate({
825
853
  identifier: "CreateOrganizationInvitationRequest",
826
854
  }) as any as S.Schema<CreateOrganizationInvitationRequest>;
827
855
 
828
856
  export interface CreateOrganizationInvitationResponse {}
829
- export const CreateOrganizationInvitationResponse = /*@__PURE__*/ S.suspend(
830
- () => S.Struct({}),
857
+ export const CreateOrganizationInvitationResponse = /*@__PURE__*/ S.suspend(() =>
858
+ S.Struct({}),
831
859
  ).annotate({
832
860
  identifier: "CreateOrganizationInvitationResponse",
833
861
  }) as any as S.Schema<CreateOrganizationInvitationResponse>;
834
862
 
863
+ /** 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. */
864
+ export type OrganizationSSOProviderType = "google" | "microsoft" | "oidc";
865
+ export const OrganizationSSOProviderType = S.String;
866
+
867
+ export interface CreateOrganizationSSOProviderRequest {
868
+ /** Unique identifier for a specific organization */
869
+ organizationID: string;
870
+ type: OrganizationSSOProviderType | (string & {});
871
+ /** The verified email domain this provider will serve. */
872
+ domain: string;
873
+ /** 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. */
874
+ issuer?: string;
875
+ /** OAuth client ID the organization registered with the provider */
876
+ client_id: string;
877
+ /** OAuth client secret. Write-only: it is stored in Keycloak and is never returned by this API. */
878
+ client_secret: string | Redacted.Redacted<string>;
879
+ }
880
+ export const CreateOrganizationSSOProviderRequest = /*@__PURE__*/ S.suspend(() =>
881
+ S.Struct({
882
+ organizationID: S.String.pipe(T.Label()),
883
+ type: OrganizationSSOProviderType,
884
+ domain: S.String,
885
+ issuer: S.optional(S.String),
886
+ client_id: S.String,
887
+ client_secret: S.String.pipe(T.SensitiveValue({})),
888
+ }).pipe(
889
+ T.Http({ method: "POST", uri: "/organizations/{organizationID}/sso/providers", code: 200 }),
890
+ ),
891
+ ).annotate({
892
+ identifier: "CreateOrganizationSSOProviderRequest",
893
+ }) as any as S.Schema<CreateOrganizationSSOProviderRequest>;
894
+
895
+ /** An identity provider serving one of the organization's verified domains. The client secret is write-only and is never returned. */
896
+ export interface OrganizationSSOProvider {
897
+ /** Stable identifier for this provider, used in its own endpoints. */
898
+ alias: string;
899
+ type: OrganizationSSOProviderType;
900
+ /** Name members see for this provider when signing in. */
901
+ display_name: string;
902
+ /** The verified email domain this provider serves. Empty while the domain is not verified. */
903
+ domain: string;
904
+ /** 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. */
905
+ enforced: boolean;
906
+ /** OIDC issuer URL, without the /.well-known suffix. */
907
+ issuer?: string;
908
+ /** OAuth client ID the organization registered with the provider. */
909
+ client_id: string;
910
+ }
911
+ export const OrganizationSSOProvider = /*@__PURE__*/ S.suspend(() =>
912
+ S.Struct({
913
+ alias: S.String,
914
+ type: OrganizationSSOProviderType,
915
+ display_name: S.String,
916
+ domain: S.String,
917
+ enforced: S.Boolean,
918
+ issuer: S.optional(S.String),
919
+ client_id: S.String,
920
+ }),
921
+ ).annotate({ identifier: "OrganizationSSOProvider" }) as any as S.Schema<OrganizationSSOProvider>;
922
+
835
923
  /** Whether the project branches are configured to scale down to zero when not in use */
836
924
  export interface ProjectScaleToZeroConfiguration {
837
925
  baseBranches: ScaleToZeroConfiguration;
@@ -875,9 +963,7 @@ export const IPFilteringConfiguration = /*@__PURE__*/ S.suspend(() =>
875
963
  enabled: S.Boolean,
876
964
  cidr: IPFilteringConfigurationCidrList,
877
965
  }),
878
- ).annotate({
879
- identifier: "IPFilteringConfiguration",
880
- }) as any as S.Schema<IPFilteringConfiguration>;
966
+ ).annotate({ identifier: "IPFilteringConfiguration" }) as any as S.Schema<IPFilteringConfiguration>;
881
967
 
882
968
  /** Configuration details for a project, including its scale to zero settings */
883
969
  export interface ProjectConfiguration {
@@ -889,9 +975,7 @@ export const ProjectConfiguration = /*@__PURE__*/ S.suspend(() =>
889
975
  scaleToZero: ProjectScaleToZeroConfiguration,
890
976
  ipFiltering: S.optional(IPFilteringConfiguration),
891
977
  }),
892
- ).annotate({
893
- identifier: "ProjectConfiguration",
894
- }) as any as S.Schema<ProjectConfiguration>;
978
+ ).annotate({ identifier: "ProjectConfiguration" }) as any as S.Schema<ProjectConfiguration>;
895
979
 
896
980
  export interface CreateProjectRequest {
897
981
  /** Unique identifier of the organization to create the project in */
@@ -905,16 +989,8 @@ export const CreateProjectRequest = /*@__PURE__*/ S.suspend(() =>
905
989
  organizationID: S.String.pipe(T.Label()),
906
990
  name: S.String,
907
991
  configuration: S.optional(ProjectConfiguration),
908
- }).pipe(
909
- T.Http({
910
- method: "POST",
911
- uri: "/organizations/{organizationID}/projects",
912
- code: 200,
913
- }),
914
- ),
915
- ).annotate({
916
- identifier: "CreateProjectRequest",
917
- }) as any as S.Schema<CreateProjectRequest>;
992
+ }).pipe(T.Http({ method: "POST", uri: "/organizations/{organizationID}/projects", code: 200 })),
993
+ ).annotate({ identifier: "CreateProjectRequest" }) as any as S.Schema<CreateProjectRequest>;
918
994
 
919
995
  /** Details of a project including its ID, name, and creation/update timestamps */
920
996
  export interface Project {
@@ -975,9 +1051,7 @@ export const CreateUserAPIKeyRequest = /*@__PURE__*/ S.suspend(() =>
975
1051
  projects: S.optional(CreateUserAPIKeyRequestProjectsList),
976
1052
  branches: S.optional(CreateUserAPIKeyRequestBranchesList),
977
1053
  }).pipe(T.Http({ method: "POST", uri: "/api-keys", code: 200 })),
978
- ).annotate({
979
- identifier: "CreateUserAPIKeyRequest",
980
- }) as any as S.Schema<CreateUserAPIKeyRequest>;
1054
+ ).annotate({ identifier: "CreateUserAPIKeyRequest" }) as any as S.Schema<CreateUserAPIKeyRequest>;
981
1055
 
982
1056
  export interface CreateUserAPIKeyResponse {
983
1057
  key: FullAPIKey;
@@ -986,9 +1060,7 @@ export const CreateUserAPIKeyResponse = /*@__PURE__*/ S.suspend(() =>
986
1060
  S.Struct({
987
1061
  key: FullAPIKey,
988
1062
  }),
989
- ).annotate({
990
- identifier: "CreateUserAPIKeyResponse",
991
- }) as any as S.Schema<CreateUserAPIKeyResponse>;
1063
+ ).annotate({ identifier: "CreateUserAPIKeyResponse" }) as any as S.Schema<CreateUserAPIKeyResponse>;
992
1064
 
993
1065
  export interface DeleteBranchRequest {
994
1066
  /** Unique identifier of the organization containing the project */
@@ -1010,14 +1082,10 @@ export const DeleteBranchRequest = /*@__PURE__*/ S.suspend(() =>
1010
1082
  code: 200,
1011
1083
  }),
1012
1084
  ),
1013
- ).annotate({
1014
- identifier: "DeleteBranchRequest",
1015
- }) as any as S.Schema<DeleteBranchRequest>;
1085
+ ).annotate({ identifier: "DeleteBranchRequest" }) as any as S.Schema<DeleteBranchRequest>;
1016
1086
 
1017
1087
  export interface DeleteBranchResponse {}
1018
- export const DeleteBranchResponse = /*@__PURE__*/ S.suspend(() =>
1019
- S.Struct({}),
1020
- ).annotate({
1088
+ export const DeleteBranchResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1021
1089
  identifier: "DeleteBranchResponse",
1022
1090
  }) as any as S.Schema<DeleteBranchResponse>;
1023
1091
 
@@ -1046,9 +1114,7 @@ export const DeleteGithubRepositoryRequest = /*@__PURE__*/ S.suspend(() =>
1046
1114
  }) as any as S.Schema<DeleteGithubRepositoryRequest>;
1047
1115
 
1048
1116
  export interface DeleteGithubRepositoryResponse {}
1049
- export const DeleteGithubRepositoryResponse = /*@__PURE__*/ S.suspend(() =>
1050
- S.Struct({}),
1051
- ).annotate({
1117
+ export const DeleteGithubRepositoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1052
1118
  identifier: "DeleteGithubRepositoryResponse",
1053
1119
  }) as any as S.Schema<DeleteGithubRepositoryResponse>;
1054
1120
 
@@ -1065,21 +1131,13 @@ export const DeleteInstallationRequest = /*@__PURE__*/ S.suspend(() =>
1065
1131
  installationId: S.String.pipe(T.Label()),
1066
1132
  cascadeResourceDeletion: S.optional(S.Boolean),
1067
1133
  reason: S.optional(S.String),
1068
- }).pipe(
1069
- T.Http({
1070
- method: "DELETE",
1071
- uri: "/v1/installations/{installationId}",
1072
- code: 200,
1073
- }),
1074
- ),
1134
+ }).pipe(T.Http({ method: "DELETE", uri: "/v1/installations/{installationId}", code: 200 })),
1075
1135
  ).annotate({
1076
1136
  identifier: "DeleteInstallationRequest",
1077
1137
  }) as any as S.Schema<DeleteInstallationRequest>;
1078
1138
 
1079
1139
  export interface DeleteInstallationResponse {}
1080
- export const DeleteInstallationResponse = /*@__PURE__*/ S.suspend(() =>
1081
- S.Struct({}),
1082
- ).annotate({
1140
+ export const DeleteInstallationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1083
1141
  identifier: "DeleteInstallationResponse",
1084
1142
  }) as any as S.Schema<DeleteInstallationResponse>;
1085
1143
 
@@ -1090,21 +1148,13 @@ export interface DeleteOrganizationRequest {
1090
1148
  export const DeleteOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
1091
1149
  S.Struct({
1092
1150
  organizationID: S.String.pipe(T.Label()),
1093
- }).pipe(
1094
- T.Http({
1095
- method: "DELETE",
1096
- uri: "/organizations/{organizationID}",
1097
- code: 200,
1098
- }),
1099
- ),
1151
+ }).pipe(T.Http({ method: "DELETE", uri: "/organizations/{organizationID}", code: 200 })),
1100
1152
  ).annotate({
1101
1153
  identifier: "DeleteOrganizationRequest",
1102
1154
  }) as any as S.Schema<DeleteOrganizationRequest>;
1103
1155
 
1104
1156
  export interface DeleteOrganizationResponse {}
1105
- export const DeleteOrganizationResponse = /*@__PURE__*/ S.suspend(() =>
1106
- S.Struct({}),
1107
- ).annotate({
1157
+ export const DeleteOrganizationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1108
1158
  identifier: "DeleteOrganizationResponse",
1109
1159
  }) as any as S.Schema<DeleteOrganizationResponse>;
1110
1160
 
@@ -1124,13 +1174,7 @@ export const DeleteOrganizationAPIKeysRequest = /*@__PURE__*/ S.suspend(() =>
1124
1174
  S.Struct({
1125
1175
  organizationID: S.String.pipe(T.Label()),
1126
1176
  ids: DeleteOrganizationAPIKeysRequestIdsList,
1127
- }).pipe(
1128
- T.Http({
1129
- method: "DELETE",
1130
- uri: "/organizations/{organizationID}/api-keys",
1131
- code: 200,
1132
- }),
1133
- ),
1177
+ }).pipe(T.Http({ method: "DELETE", uri: "/organizations/{organizationID}/api-keys", code: 200 })),
1134
1178
  ).annotate({
1135
1179
  identifier: "DeleteOrganizationAPIKeysRequest",
1136
1180
  }) as any as S.Schema<DeleteOrganizationAPIKeysRequest>;
@@ -1164,12 +1208,68 @@ export const DeleteOrganizationInvitationRequest = /*@__PURE__*/ S.suspend(() =>
1164
1208
  }) as any as S.Schema<DeleteOrganizationInvitationRequest>;
1165
1209
 
1166
1210
  export interface DeleteOrganizationInvitationResponse {}
1167
- export const DeleteOrganizationInvitationResponse = /*@__PURE__*/ S.suspend(
1168
- () => S.Struct({}),
1211
+ export const DeleteOrganizationInvitationResponse = /*@__PURE__*/ S.suspend(() =>
1212
+ S.Struct({}),
1169
1213
  ).annotate({
1170
1214
  identifier: "DeleteOrganizationInvitationResponse",
1171
1215
  }) as any as S.Schema<DeleteOrganizationInvitationResponse>;
1172
1216
 
1217
+ export interface DeleteOrganizationSSODomainRequest {
1218
+ /** Unique identifier for a specific organization */
1219
+ organizationID: string;
1220
+ /** Email domain claimed for SSO */
1221
+ domain: string;
1222
+ }
1223
+ export const DeleteOrganizationSSODomainRequest = /*@__PURE__*/ S.suspend(() =>
1224
+ S.Struct({
1225
+ organizationID: S.String.pipe(T.Label()),
1226
+ domain: S.String.pipe(T.Label()),
1227
+ }).pipe(
1228
+ T.Http({
1229
+ method: "DELETE",
1230
+ uri: "/organizations/{organizationID}/sso/domains/{domain}",
1231
+ code: 200,
1232
+ }),
1233
+ ),
1234
+ ).annotate({
1235
+ identifier: "DeleteOrganizationSSODomainRequest",
1236
+ }) as any as S.Schema<DeleteOrganizationSSODomainRequest>;
1237
+
1238
+ export interface DeleteOrganizationSSODomainResponse {}
1239
+ export const DeleteOrganizationSSODomainResponse = /*@__PURE__*/ S.suspend(() =>
1240
+ S.Struct({}),
1241
+ ).annotate({
1242
+ identifier: "DeleteOrganizationSSODomainResponse",
1243
+ }) as any as S.Schema<DeleteOrganizationSSODomainResponse>;
1244
+
1245
+ export interface DeleteOrganizationSSOProviderRequest {
1246
+ /** Unique identifier for a specific organization */
1247
+ organizationID: string;
1248
+ /** Alias identifying one of the organization's SSO identity providers */
1249
+ providerAlias: string;
1250
+ }
1251
+ export const DeleteOrganizationSSOProviderRequest = /*@__PURE__*/ S.suspend(() =>
1252
+ S.Struct({
1253
+ organizationID: S.String.pipe(T.Label()),
1254
+ providerAlias: S.String.pipe(T.Label()),
1255
+ }).pipe(
1256
+ T.Http({
1257
+ method: "DELETE",
1258
+ uri: "/organizations/{organizationID}/sso/providers/{providerAlias}",
1259
+ code: 200,
1260
+ }),
1261
+ ),
1262
+ ).annotate({
1263
+ identifier: "DeleteOrganizationSSOProviderRequest",
1264
+ }) as any as S.Schema<DeleteOrganizationSSOProviderRequest>;
1265
+
1266
+ export interface DeleteOrganizationSSOProviderResponse {}
1267
+ export const DeleteOrganizationSSOProviderResponse = /*@__PURE__*/ S.suspend(() =>
1268
+ S.Struct({}),
1269
+ ).annotate({
1270
+ identifier: "DeleteOrganizationSSOProviderResponse",
1271
+ }) as any as S.Schema<DeleteOrganizationSSOProviderResponse>;
1272
+
1173
1273
  export interface DeleteProjectRequest {
1174
1274
  /** Unique identifier of the organization containing the project */
1175
1275
  organizationID: string;
@@ -1187,17 +1287,37 @@ export const DeleteProjectRequest = /*@__PURE__*/ S.suspend(() =>
1187
1287
  code: 200,
1188
1288
  }),
1189
1289
  ),
1190
- ).annotate({
1191
- identifier: "DeleteProjectRequest",
1192
- }) as any as S.Schema<DeleteProjectRequest>;
1290
+ ).annotate({ identifier: "DeleteProjectRequest" }) as any as S.Schema<DeleteProjectRequest>;
1193
1291
 
1194
1292
  export interface DeleteProjectResponse {}
1195
- export const DeleteProjectResponse = /*@__PURE__*/ S.suspend(() =>
1196
- S.Struct({}),
1197
- ).annotate({
1293
+ export const DeleteProjectResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1198
1294
  identifier: "DeleteProjectResponse",
1199
1295
  }) as any as S.Schema<DeleteProjectResponse>;
1200
1296
 
1297
+ export interface DeleteResourceRequest {
1298
+ /** Vercel installation id (icfg_...). */
1299
+ installationId: string;
1300
+ /** Vercel resource id. */
1301
+ resourceId: string;
1302
+ }
1303
+ export const DeleteResourceRequest = /*@__PURE__*/ S.suspend(() =>
1304
+ S.Struct({
1305
+ installationId: S.String.pipe(T.Label()),
1306
+ resourceId: S.String.pipe(T.Label()),
1307
+ }).pipe(
1308
+ T.Http({
1309
+ method: "DELETE",
1310
+ uri: "/v1/installations/{installationId}/resources/{resourceId}",
1311
+ code: 200,
1312
+ }),
1313
+ ),
1314
+ ).annotate({ identifier: "DeleteResourceRequest" }) as any as S.Schema<DeleteResourceRequest>;
1315
+
1316
+ export interface DeleteResourceResponse {}
1317
+ export const DeleteResourceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1318
+ identifier: "DeleteResourceResponse",
1319
+ }) as any as S.Schema<DeleteResourceResponse>;
1320
+
1201
1321
  /** Array of API key IDs to delete (maximum 50 keys per request) */
1202
1322
  export type DeleteUserAPIKeysRequestIdsList = Array<string>;
1203
1323
  export const DeleteUserAPIKeysRequestIdsList = /*@__PURE__*/ S.Array(
@@ -1212,14 +1332,10 @@ export const DeleteUserAPIKeysRequest = /*@__PURE__*/ S.suspend(() =>
1212
1332
  S.Struct({
1213
1333
  ids: DeleteUserAPIKeysRequestIdsList,
1214
1334
  }).pipe(T.Http({ method: "DELETE", uri: "/api-keys", code: 200 })),
1215
- ).annotate({
1216
- identifier: "DeleteUserAPIKeysRequest",
1217
- }) as any as S.Schema<DeleteUserAPIKeysRequest>;
1335
+ ).annotate({ identifier: "DeleteUserAPIKeysRequest" }) as any as S.Schema<DeleteUserAPIKeysRequest>;
1218
1336
 
1219
1337
  export interface DeleteUserAPIKeysResponse {}
1220
- export const DeleteUserAPIKeysResponse = /*@__PURE__*/ S.suspend(() =>
1221
- S.Struct({}),
1222
- ).annotate({
1338
+ export const DeleteUserAPIKeysResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1223
1339
  identifier: "DeleteUserAPIKeysResponse",
1224
1340
  }) as any as S.Schema<DeleteUserAPIKeysResponse>;
1225
1341
 
@@ -1243,9 +1359,7 @@ export const DescribeBranchRequest = /*@__PURE__*/ S.suspend(() =>
1243
1359
  code: 200,
1244
1360
  }),
1245
1361
  ),
1246
- ).annotate({
1247
- identifier: "DescribeBranchRequest",
1248
- }) as any as S.Schema<DescribeBranchRequest>;
1362
+ ).annotate({ identifier: "DescribeBranchRequest" }) as any as S.Schema<DescribeBranchRequest>;
1249
1363
 
1250
1364
  /** Type of status of the branch */
1251
1365
  export type BranchStatusStatusType =
@@ -1257,12 +1371,7 @@ export type BranchStatusStatusType =
1257
1371
  export const BranchStatusStatusType = S.String;
1258
1372
 
1259
1373
  /** Current operational state of the cluster (ready, creating, updating, etc.) */
1260
- export type ClusterLifecycleState =
1261
- | "ready"
1262
- | "creating"
1263
- | "updating"
1264
- | "upgrading"
1265
- | "unknown";
1374
+ export type ClusterLifecycleState = "ready" | "creating" | "updating" | "upgrading" | "unknown";
1266
1375
  export const ClusterLifecycleState = S.String;
1267
1376
 
1268
1377
  /** Information about the current lifecycle state of a database cluster */
@@ -1280,9 +1389,7 @@ export const ClusterLifecycle = /*@__PURE__*/ S.suspend(() =>
1280
1389
  reason: S.optional(S.String),
1281
1390
  phase: S.String,
1282
1391
  }),
1283
- ).annotate({
1284
- identifier: "ClusterLifecycle",
1285
- }) as any as S.Schema<ClusterLifecycle>;
1392
+ ).annotate({ identifier: "ClusterLifecycle" }) as any as S.Schema<ClusterLifecycle>;
1286
1393
 
1287
1394
  /** Status information about an individual database instance within a cluster */
1288
1395
  export interface InstanceStatus {
@@ -1342,11 +1449,10 @@ export const BranchStatus = /*@__PURE__*/ S.suspend(() =>
1342
1449
  export type ClusterConfigurationPostgresConfigurationParametersMap = {
1343
1450
  [key: string]: string | undefined;
1344
1451
  };
1345
- export const ClusterConfigurationPostgresConfigurationParametersMap =
1346
- /*@__PURE__*/ S.Record(
1347
- S.String,
1348
- S.String,
1349
- ) as any as S.Schema<ClusterConfigurationPostgresConfigurationParametersMap>;
1452
+ export const ClusterConfigurationPostgresConfigurationParametersMap = /*@__PURE__*/ S.Record(
1453
+ S.String,
1454
+ S.String,
1455
+ ) as any as S.Schema<ClusterConfigurationPostgresConfigurationParametersMap>;
1350
1456
 
1351
1457
  /** List of PostgreSQL extensions and libraries to preload */
1352
1458
  export type ClusterConfigurationPreloadLibrariesList = Array<string>;
@@ -1383,9 +1489,7 @@ export const ClusterConfiguration = /*@__PURE__*/ S.suspend(() =>
1383
1489
  ),
1384
1490
  preloadLibraries: S.optional(ClusterConfigurationPreloadLibrariesList),
1385
1491
  }),
1386
- ).annotate({
1387
- identifier: "ClusterConfiguration",
1388
- }) as any as S.Schema<ClusterConfiguration>;
1492
+ ).annotate({ identifier: "ClusterConfiguration" }) as any as S.Schema<ClusterConfiguration>;
1389
1493
 
1390
1494
  /** Detailed metadata about a branch, including its status and configuration */
1391
1495
  export interface BranchMetadata {
@@ -1453,9 +1557,7 @@ export const GetBackupRequest = /*@__PURE__*/ S.suspend(() =>
1453
1557
  code: 200,
1454
1558
  }),
1455
1559
  ),
1456
- ).annotate({
1457
- identifier: "GetBackupRequest",
1458
- }) as any as S.Schema<GetBackupRequest>;
1560
+ ).annotate({ identifier: "GetBackupRequest" }) as any as S.Schema<GetBackupRequest>;
1459
1561
 
1460
1562
  /** metadata about a continuous backup */
1461
1563
  export interface BackupMetadata {
@@ -1488,11 +1590,7 @@ export const GetBillingCustomerRequest = /*@__PURE__*/ S.suspend(() =>
1488
1590
  S.Struct({
1489
1591
  organizationID: S.String.pipe(T.Label()),
1490
1592
  }).pipe(
1491
- T.Http({
1492
- method: "GET",
1493
- uri: "/organizations/{organizationID}/billing/customer",
1494
- code: 200,
1495
- }),
1593
+ T.Http({ method: "GET", uri: "/organizations/{organizationID}/billing/customer", code: 200 }),
1496
1594
  ),
1497
1595
  ).annotate({
1498
1596
  identifier: "GetBillingCustomerRequest",
@@ -1519,9 +1617,7 @@ export const BillingPaymentMethodCard = /*@__PURE__*/ S.suspend(() =>
1519
1617
  expiry_month: S.Number,
1520
1618
  expiry_year: S.Number,
1521
1619
  }),
1522
- ).annotate({
1523
- identifier: "BillingPaymentMethodCard",
1524
- }) as any as S.Schema<BillingPaymentMethodCard>;
1620
+ ).annotate({ identifier: "BillingPaymentMethodCard" }) as any as S.Schema<BillingPaymentMethodCard>;
1525
1621
 
1526
1622
  export interface BillingPaymentMethod {
1527
1623
  card: BillingPaymentMethodCard;
@@ -1530,9 +1626,7 @@ export const BillingPaymentMethod = /*@__PURE__*/ S.suspend(() =>
1530
1626
  S.Struct({
1531
1627
  card: BillingPaymentMethodCard,
1532
1628
  }),
1533
- ).annotate({
1534
- identifier: "BillingPaymentMethod",
1535
- }) as any as S.Schema<BillingPaymentMethod>;
1629
+ ).annotate({ identifier: "BillingPaymentMethod" }) as any as S.Schema<BillingPaymentMethod>;
1536
1630
 
1537
1631
  export type BillingCreditStatus = "active" | "pending_payment";
1538
1632
  export const BillingCreditStatus = S.String;
@@ -1595,9 +1689,7 @@ export const BillingCreditDetails = /*@__PURE__*/ S.suspend(() =>
1595
1689
  days_until_last_active_credit_expiry: S.NullOr(S.Number),
1596
1690
  days_until_last_expiry_with_balance: S.NullOr(S.Number),
1597
1691
  }),
1598
- ).annotate({
1599
- identifier: "BillingCreditDetails",
1600
- }) as any as S.Schema<BillingCreditDetails>;
1692
+ ).annotate({ identifier: "BillingCreditDetails" }) as any as S.Schema<BillingCreditDetails>;
1601
1693
 
1602
1694
  export interface BillingCustomerResponse {
1603
1695
  billing_email: string;
@@ -1624,9 +1716,7 @@ export const BillingCustomerResponse = /*@__PURE__*/ S.suspend(() =>
1624
1716
  credits: BillingCustomerResponseCreditsList,
1625
1717
  credit_details: BillingCreditDetails,
1626
1718
  }),
1627
- ).annotate({
1628
- identifier: "BillingCustomerResponse",
1629
- }) as any as S.Schema<BillingCustomerResponse>;
1719
+ ).annotate({ identifier: "BillingCustomerResponse" }) as any as S.Schema<BillingCustomerResponse>;
1630
1720
 
1631
1721
  export interface GetBillingInvoicesRequest {
1632
1722
  /** Unique identifier for a specific organization */
@@ -1642,22 +1732,13 @@ export const GetBillingInvoicesRequest = /*@__PURE__*/ S.suspend(() =>
1642
1732
  cursor: S.optional(S.String.pipe(T.Query())),
1643
1733
  limit: S.optional(S.Number.pipe(T.Query())),
1644
1734
  }).pipe(
1645
- T.Http({
1646
- method: "GET",
1647
- uri: "/organizations/{organizationID}/billing/invoices",
1648
- code: 200,
1649
- }),
1735
+ T.Http({ method: "GET", uri: "/organizations/{organizationID}/billing/invoices", code: 200 }),
1650
1736
  ),
1651
1737
  ).annotate({
1652
1738
  identifier: "GetBillingInvoicesRequest",
1653
1739
  }) as any as S.Schema<GetBillingInvoicesRequest>;
1654
1740
 
1655
- export type BillingInvoiceStatus =
1656
- | "draft"
1657
- | "issued"
1658
- | "paid"
1659
- | "void"
1660
- | "synced";
1741
+ export type BillingInvoiceStatus = "draft" | "issued" | "paid" | "void" | "synced";
1661
1742
  export const BillingInvoiceStatus = S.String;
1662
1743
 
1663
1744
  export interface BillingInvoice {
@@ -1696,9 +1777,7 @@ export const PaginationMetadata = /*@__PURE__*/ S.suspend(() =>
1696
1777
  has_more: S.Boolean,
1697
1778
  next_cursor: S.NullOr(S.String),
1698
1779
  }),
1699
- ).annotate({
1700
- identifier: "PaginationMetadata",
1701
- }) as any as S.Schema<PaginationMetadata>;
1780
+ ).annotate({ identifier: "PaginationMetadata" }) as any as S.Schema<PaginationMetadata>;
1702
1781
 
1703
1782
  export interface BillingInvoicesResponse {
1704
1783
  data: BillingInvoicesResponseDataList;
@@ -1709,9 +1788,7 @@ export const BillingInvoicesResponse = /*@__PURE__*/ S.suspend(() =>
1709
1788
  data: BillingInvoicesResponseDataList,
1710
1789
  pagination_metadata: PaginationMetadata,
1711
1790
  }),
1712
- ).annotate({
1713
- identifier: "BillingInvoicesResponse",
1714
- }) as any as S.Schema<BillingInvoicesResponse>;
1791
+ ).annotate({ identifier: "BillingInvoicesResponse" }) as any as S.Schema<BillingInvoicesResponse>;
1715
1792
 
1716
1793
  export interface GetBillingUpcomingInvoiceRequest {
1717
1794
  /** Unique identifier for a specific organization */
@@ -1805,9 +1882,7 @@ export const BranchCredentials = /*@__PURE__*/ S.suspend(() =>
1805
1882
  dbname: S.String,
1806
1883
  connectionString: S.String.pipe(T.SensitiveValue({})),
1807
1884
  }),
1808
- ).annotate({
1809
- identifier: "BranchCredentials",
1810
- }) as any as S.Schema<BranchCredentials>;
1885
+ ).annotate({ identifier: "BranchCredentials" }) as any as S.Schema<BranchCredentials>;
1811
1886
 
1812
1887
  export interface GetBranchPostgresConfigRequest {
1813
1888
  /** Unique identifier of the organization containing the project */
@@ -1845,12 +1920,10 @@ export type PostgresConfigParameterType =
1845
1920
  export const PostgresConfigParameterType = S.String;
1846
1921
 
1847
1922
  /** List of allowed enum values (if applicable) */
1848
- export type PostgresConfigParameterAcceptableRangeEnumValuesList =
1849
- Array<string>;
1850
- export const PostgresConfigParameterAcceptableRangeEnumValuesList =
1851
- /*@__PURE__*/ S.Array(
1852
- S.String,
1853
- ) as any as S.Schema<PostgresConfigParameterAcceptableRangeEnumValuesList>;
1923
+ export type PostgresConfigParameterAcceptableRangeEnumValuesList = Array<string>;
1924
+ export const PostgresConfigParameterAcceptableRangeEnumValuesList = /*@__PURE__*/ S.Array(
1925
+ S.String,
1926
+ ) as any as S.Schema<PostgresConfigParameterAcceptableRangeEnumValuesList>;
1854
1927
 
1855
1928
  /** Information about the acceptable range of values for this parameter */
1856
1929
  export interface PostgresConfigParameterAcceptableRange {
@@ -1861,23 +1934,18 @@ export interface PostgresConfigParameterAcceptableRange {
1861
1934
  /** List of allowed enum values (if applicable) */
1862
1935
  enumValues?: PostgresConfigParameterAcceptableRangeEnumValuesList;
1863
1936
  }
1864
- export const PostgresConfigParameterAcceptableRange = /*@__PURE__*/ S.suspend(
1865
- () =>
1866
- S.Struct({
1867
- minValue: S.optional(S.String),
1868
- maxValue: S.optional(S.String),
1869
- enumValues: S.optional(
1870
- PostgresConfigParameterAcceptableRangeEnumValuesList,
1871
- ),
1872
- }),
1937
+ export const PostgresConfigParameterAcceptableRange = /*@__PURE__*/ S.suspend(() =>
1938
+ S.Struct({
1939
+ minValue: S.optional(S.String),
1940
+ maxValue: S.optional(S.String),
1941
+ enumValues: S.optional(PostgresConfigParameterAcceptableRangeEnumValuesList),
1942
+ }),
1873
1943
  ).annotate({
1874
1944
  identifier: "PostgresConfigParameterAcceptableRange",
1875
1945
  }) as any as S.Schema<PostgresConfigParameterAcceptableRange>;
1876
1946
 
1877
1947
  /** The source of the default value */
1878
- export type PostgresConfigParameterDefaultValueSource =
1879
- | "postgres"
1880
- | "instance_type";
1948
+ export type PostgresConfigParameterDefaultValueSource = "postgres" | "instance_type";
1881
1949
  export const PostgresConfigParameterDefaultValueSource = S.String;
1882
1950
 
1883
1951
  /** Detailed information about a single PostgreSQL configuration parameter */
@@ -1919,13 +1987,10 @@ export const PostgresConfigParameter = /*@__PURE__*/ S.suspend(() =>
1919
1987
  recommendation: S.String,
1920
1988
  restartRequired: S.optional(S.Boolean),
1921
1989
  }),
1922
- ).annotate({
1923
- identifier: "PostgresConfigParameter",
1924
- }) as any as S.Schema<PostgresConfigParameter>;
1990
+ ).annotate({ identifier: "PostgresConfigParameter" }) as any as S.Schema<PostgresConfigParameter>;
1925
1991
 
1926
1992
  /** Array of PostgreSQL configuration parameters with detailed information */
1927
- export type PostgresConfigDetailsParametersList =
1928
- Array<PostgresConfigParameter>;
1993
+ export type PostgresConfigDetailsParametersList = Array<PostgresConfigParameter>;
1929
1994
  export const PostgresConfigDetailsParametersList = /*@__PURE__*/ S.Array(
1930
1995
  PostgresConfigParameter,
1931
1996
  ) as any as S.Schema<PostgresConfigDetailsParametersList>;
@@ -1939,47 +2004,7 @@ export const PostgresConfigDetails = /*@__PURE__*/ S.suspend(() =>
1939
2004
  S.Struct({
1940
2005
  parameters: PostgresConfigDetailsParametersList,
1941
2006
  }),
1942
- ).annotate({
1943
- identifier: "PostgresConfigDetails",
1944
- }) as any as S.Schema<PostgresConfigDetails>;
1945
-
1946
- export interface GetDefaultProjectLimitsRequest {
1947
- /** Unique identifier of the organization to get project limits for */
1948
- organizationID: string;
1949
- }
1950
- export const GetDefaultProjectLimitsRequest = /*@__PURE__*/ S.suspend(() =>
1951
- S.Struct({
1952
- organizationID: S.String.pipe(T.Label()),
1953
- }).pipe(
1954
- T.Http({
1955
- method: "GET",
1956
- uri: "/organizations/{organizationID}/projects/limits",
1957
- code: 200,
1958
- }),
1959
- ),
1960
- ).annotate({
1961
- identifier: "GetDefaultProjectLimitsRequest",
1962
- }) as any as S.Schema<GetDefaultProjectLimitsRequest>;
1963
-
1964
- /** Resource limits and constraints for projects within an organization */
1965
- export interface ProjectLimits {
1966
- /** Maximum number of database instances allowed per branch */
1967
- maxInstances: number;
1968
- /** Minimum number of database instances required per branch */
1969
- minInstances: number;
1970
- /** Maximum character length allowed for project descriptions */
1971
- maxDescriptionLength: number;
1972
- /** Maximum number of branches allowed per project */
1973
- maxBranches: number;
1974
- }
1975
- export const ProjectLimits = /*@__PURE__*/ S.suspend(() =>
1976
- S.Struct({
1977
- maxInstances: S.Number,
1978
- minInstances: S.Number,
1979
- maxDescriptionLength: S.Number,
1980
- maxBranches: S.Number,
1981
- }),
1982
- ).annotate({ identifier: "ProjectLimits" }) as any as S.Schema<ProjectLimits>;
2007
+ ).annotate({ identifier: "PostgresConfigDetails" }) as any as S.Schema<PostgresConfigDetails>;
1983
2008
 
1984
2009
  export interface GetGithubRepositoryRequest {
1985
2010
  /** Unique identifier of the organization */
@@ -2024,16 +2049,8 @@ export interface GetOrganizationRequest {
2024
2049
  export const GetOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
2025
2050
  S.Struct({
2026
2051
  organizationID: S.String.pipe(T.Label()),
2027
- }).pipe(
2028
- T.Http({
2029
- method: "GET",
2030
- uri: "/organizations/{organizationID}",
2031
- code: 200,
2032
- }),
2033
- ),
2034
- ).annotate({
2035
- identifier: "GetOrganizationRequest",
2036
- }) as any as S.Schema<GetOrganizationRequest>;
2052
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}", code: 200 })),
2053
+ ).annotate({ identifier: "GetOrganizationRequest" }) as any as S.Schema<GetOrganizationRequest>;
2037
2054
 
2038
2055
  export interface GetOrganizationInvitationRequest {
2039
2056
  /** Unique identifier for a specific organization */
@@ -2077,8 +2094,8 @@ export interface OrganizationInvitation {
2077
2094
  expires_at: string;
2078
2095
  /** Current status of the invitation */
2079
2096
  status: OrganizationInvitationStatus;
2080
- /** URL link to accept the invitation */
2081
- invite_link?: string;
2097
+ /** Role the user holds once they accept the invitation */
2098
+ role: OrganizationRoleName;
2082
2099
  }
2083
2100
  export const OrganizationInvitation = /*@__PURE__*/ S.suspend(() =>
2084
2101
  S.Struct({
@@ -2090,11 +2107,9 @@ export const OrganizationInvitation = /*@__PURE__*/ S.suspend(() =>
2090
2107
  created_at: S.String,
2091
2108
  expires_at: S.String,
2092
2109
  status: OrganizationInvitationStatus,
2093
- invite_link: S.optional(S.String),
2110
+ role: OrganizationRoleName,
2094
2111
  }),
2095
- ).annotate({
2096
- identifier: "OrganizationInvitation",
2097
- }) as any as S.Schema<OrganizationInvitation>;
2112
+ ).annotate({ identifier: "OrganizationInvitation" }) as any as S.Schema<OrganizationInvitation>;
2098
2113
 
2099
2114
  export interface GetOrganizationLimitsRequest {
2100
2115
  /** Unique identifier of the organization */
@@ -2103,19 +2118,13 @@ export interface GetOrganizationLimitsRequest {
2103
2118
  export const GetOrganizationLimitsRequest = /*@__PURE__*/ S.suspend(() =>
2104
2119
  S.Struct({
2105
2120
  organizationID: S.String.pipe(T.Label()),
2106
- }).pipe(
2107
- T.Http({
2108
- method: "GET",
2109
- uri: "/organizations/{organizationID}/limits",
2110
- code: 200,
2111
- }),
2112
- ),
2121
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/limits", code: 200 })),
2113
2122
  ).annotate({
2114
2123
  identifier: "GetOrganizationLimitsRequest",
2115
2124
  }) as any as S.Schema<GetOrganizationLimitsRequest>;
2116
2125
 
2117
2126
  export interface GetOrganizationLimitsResponse {
2118
- /** Maximum character length allowed for project descriptions */
2127
+ /** Maximum character length allowed for branch descriptions */
2119
2128
  maxDescriptionLength: number;
2120
2129
  /** Maximum number of branches allowed per project */
2121
2130
  maxBranchesPerProject: number;
@@ -2157,17 +2166,12 @@ export interface GetOrganizationMembershipLimitsRequest {
2157
2166
  /** Unique identifier for a specific organization */
2158
2167
  organizationID: string;
2159
2168
  }
2160
- export const GetOrganizationMembershipLimitsRequest = /*@__PURE__*/ S.suspend(
2161
- () =>
2162
- S.Struct({
2163
- organizationID: S.String.pipe(T.Label()),
2164
- }).pipe(
2165
- T.Http({
2166
- method: "GET",
2167
- uri: "/organizations/{organizationID}/membership-limits",
2168
- code: 200,
2169
- }),
2170
- ),
2169
+ export const GetOrganizationMembershipLimitsRequest = /*@__PURE__*/ S.suspend(() =>
2170
+ S.Struct({
2171
+ organizationID: S.String.pipe(T.Label()),
2172
+ }).pipe(
2173
+ T.Http({ method: "GET", uri: "/organizations/{organizationID}/membership-limits", code: 200 }),
2174
+ ),
2171
2175
  ).annotate({
2172
2176
  identifier: "GetOrganizationMembershipLimitsRequest",
2173
2177
  }) as any as S.Schema<GetOrganizationMembershipLimitsRequest>;
@@ -2190,9 +2194,7 @@ export const OrganizationMembershipLimits = /*@__PURE__*/ S.suspend(() =>
2190
2194
 
2191
2195
  export interface GetOrganizationsListRequest {}
2192
2196
  export const GetOrganizationsListRequest = /*@__PURE__*/ S.suspend(() =>
2193
- S.Struct({}).pipe(
2194
- T.Http({ method: "GET", uri: "/organizations", code: 200 }),
2195
- ),
2197
+ S.Struct({}).pipe(T.Http({ method: "GET", uri: "/organizations", code: 200 })),
2196
2198
  ).annotate({
2197
2199
  identifier: "GetOrganizationsListRequest",
2198
2200
  }) as any as S.Schema<GetOrganizationsListRequest>;
@@ -2205,24 +2207,22 @@ export interface GetOrganizationsListResponseOrganizationsItem {
2205
2207
  /** Current status of the organization */
2206
2208
  status: OrganizationStatus;
2207
2209
  }
2208
- export const GetOrganizationsListResponseOrganizationsItem =
2209
- /*@__PURE__*/ S.suspend(() =>
2210
- S.Struct({
2211
- id: S.String,
2212
- name: S.String,
2213
- status: OrganizationStatus,
2214
- }),
2215
- ).annotate({
2216
- identifier: "GetOrganizationsListResponseOrganizationsItem",
2217
- }) as any as S.Schema<GetOrganizationsListResponseOrganizationsItem>;
2210
+ export const GetOrganizationsListResponseOrganizationsItem = /*@__PURE__*/ S.suspend(() =>
2211
+ S.Struct({
2212
+ id: S.String,
2213
+ name: S.String,
2214
+ status: OrganizationStatus,
2215
+ }),
2216
+ ).annotate({
2217
+ identifier: "GetOrganizationsListResponseOrganizationsItem",
2218
+ }) as any as S.Schema<GetOrganizationsListResponseOrganizationsItem>;
2218
2219
 
2219
2220
  /** List of organizations the user has access to */
2220
2221
  export type GetOrganizationsListResponseOrganizationsList =
2221
2222
  Array<GetOrganizationsListResponseOrganizationsItem>;
2222
- export const GetOrganizationsListResponseOrganizationsList =
2223
- /*@__PURE__*/ S.Array(
2224
- GetOrganizationsListResponseOrganizationsItem,
2225
- ) as any as S.Schema<GetOrganizationsListResponseOrganizationsList>;
2223
+ export const GetOrganizationsListResponseOrganizationsList = /*@__PURE__*/ S.Array(
2224
+ GetOrganizationsListResponseOrganizationsItem,
2225
+ ) as any as S.Schema<GetOrganizationsListResponseOrganizationsList>;
2226
2226
 
2227
2227
  export interface GetOrganizationsListResponse {
2228
2228
  /** List of organizations the user has access to */
@@ -2236,6 +2236,44 @@ export const GetOrganizationsListResponse = /*@__PURE__*/ S.suspend(() =>
2236
2236
  identifier: "GetOrganizationsListResponse",
2237
2237
  }) as any as S.Schema<GetOrganizationsListResponse>;
2238
2238
 
2239
+ export interface GetOrganizationSSORequest {
2240
+ /** Unique identifier for a specific organization */
2241
+ organizationID: string;
2242
+ }
2243
+ export const GetOrganizationSSORequest = /*@__PURE__*/ S.suspend(() =>
2244
+ S.Struct({
2245
+ organizationID: S.String.pipe(T.Label()),
2246
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/sso", code: 200 })),
2247
+ ).annotate({
2248
+ identifier: "GetOrganizationSSORequest",
2249
+ }) as any as S.Schema<GetOrganizationSSORequest>;
2250
+
2251
+ /** Identity providers registered for this organization, at most one per verified domain. */
2252
+ export type OrganizationSSOProvidersList = Array<OrganizationSSOProvider>;
2253
+ export const OrganizationSSOProvidersList = /*@__PURE__*/ S.Array(
2254
+ OrganizationSSOProvider,
2255
+ ) as any as S.Schema<OrganizationSSOProvidersList>;
2256
+
2257
+ /** Email domains claimed for this organization, verified and pending. */
2258
+ export type OrganizationSSODomainsList = Array<OrganizationSSODomain>;
2259
+ export const OrganizationSSODomainsList = /*@__PURE__*/ S.Array(
2260
+ OrganizationSSODomain,
2261
+ ) as any as S.Schema<OrganizationSSODomainsList>;
2262
+
2263
+ /** An organization's single sign-on setup, as one identity provider per verified email domain. */
2264
+ export interface OrganizationSSO {
2265
+ /** Identity providers registered for this organization, at most one per verified domain. */
2266
+ providers: OrganizationSSOProvidersList;
2267
+ /** Email domains claimed for this organization, verified and pending. */
2268
+ domains: OrganizationSSODomainsList;
2269
+ }
2270
+ export const OrganizationSSO = /*@__PURE__*/ S.suspend(() =>
2271
+ S.Struct({
2272
+ providers: OrganizationSSOProvidersList,
2273
+ domains: OrganizationSSODomainsList,
2274
+ }),
2275
+ ).annotate({ identifier: "OrganizationSSO" }) as any as S.Schema<OrganizationSSO>;
2276
+
2239
2277
  export interface GetProjectRequest {
2240
2278
  /** Unique identifier of the organization containing the project */
2241
2279
  organizationID: string;
@@ -2253,9 +2291,7 @@ export const GetProjectRequest = /*@__PURE__*/ S.suspend(() =>
2253
2291
  code: 200,
2254
2292
  }),
2255
2293
  ),
2256
- ).annotate({
2257
- identifier: "GetProjectRequest",
2258
- }) as any as S.Schema<GetProjectRequest>;
2294
+ ).annotate({ identifier: "GetProjectRequest" }) as any as S.Schema<GetProjectRequest>;
2259
2295
 
2260
2296
  export interface GetProjectLimitsRequest {
2261
2297
  /** Unique identifier of the organization */
@@ -2274,13 +2310,11 @@ export const GetProjectLimitsRequest = /*@__PURE__*/ S.suspend(() =>
2274
2310
  code: 200,
2275
2311
  }),
2276
2312
  ),
2277
- ).annotate({
2278
- identifier: "GetProjectLimitsRequest",
2279
- }) as any as S.Schema<GetProjectLimitsRequest>;
2313
+ ).annotate({ identifier: "GetProjectLimitsRequest" }) as any as S.Schema<GetProjectLimitsRequest>;
2280
2314
 
2281
2315
  /** Full set of resource limits applicable to a project and its branches */
2282
2316
  export interface EffectiveProjectLimits {
2283
- /** Maximum character length allowed for project descriptions */
2317
+ /** Maximum character length allowed for branch descriptions */
2284
2318
  maxDescriptionLength: number;
2285
2319
  /** Maximum number of branches allowed per project */
2286
2320
  maxBranchesPerProject: number;
@@ -2305,34 +2339,75 @@ export const EffectiveProjectLimits = /*@__PURE__*/ S.suspend(() =>
2305
2339
  maxBranchesPerHour: S.Number,
2306
2340
  maxStorageGBPerBranch: S.Number,
2307
2341
  }),
2308
- ).annotate({
2309
- identifier: "EffectiveProjectLimits",
2310
- }) as any as S.Schema<EffectiveProjectLimits>;
2311
-
2312
- /** GitHub webhook event payload */
2313
- export type GithubWebhookRequestBodyMap = {
2314
- [key: string]: unknown | undefined;
2315
- };
2316
- export const GithubWebhookRequestBodyMap = /*@__PURE__*/ S.Record(
2317
- S.String,
2318
- S.Unknown,
2319
- ) as any as S.Schema<GithubWebhookRequestBodyMap>;
2342
+ ).annotate({ identifier: "EffectiveProjectLimits" }) as any as S.Schema<EffectiveProjectLimits>;
2320
2343
 
2321
- export interface GithubWebhookRequest {
2322
- body: GithubWebhookRequestBodyMap;
2344
+ export interface GetResourceRequest {
2345
+ /** Vercel installation id (icfg_...). */
2346
+ installationId: string;
2347
+ /** Vercel resource id. */
2348
+ resourceId: string;
2323
2349
  }
2324
- export const GithubWebhookRequest = /*@__PURE__*/ S.suspend(() =>
2350
+ export const GetResourceRequest = /*@__PURE__*/ S.suspend(() =>
2325
2351
  S.Struct({
2326
- body: GithubWebhookRequestBodyMap.pipe(T.HttpBody()),
2327
- }).pipe(T.Http({ method: "POST", uri: "/webhooks/github", code: 200 })),
2328
- ).annotate({
2329
- identifier: "GithubWebhookRequest",
2330
- }) as any as S.Schema<GithubWebhookRequest>;
2352
+ installationId: S.String.pipe(T.Label()),
2353
+ resourceId: S.String.pipe(T.Label()),
2354
+ }).pipe(
2355
+ T.Http({
2356
+ method: "GET",
2357
+ uri: "/v1/installations/{installationId}/resources/{resourceId}",
2358
+ code: 200,
2359
+ }),
2360
+ ),
2361
+ ).annotate({ identifier: "GetResourceRequest" }) as any as S.Schema<GetResourceRequest>;
2362
+
2363
+ /** User-inputted metadata based on the registered metadata schema. */
2364
+ export type ResourceMetadataMap = { [key: string]: unknown | undefined };
2365
+ export const ResourceMetadataMap = /*@__PURE__*/ S.Record(
2366
+ S.String,
2367
+ S.Unknown,
2368
+ ) as any as S.Schema<ResourceMetadataMap>;
2369
+
2370
+ /** 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. */
2371
+ export interface Resource {
2372
+ /** The partner-specific resource id. */
2373
+ id: string;
2374
+ /** The partner-specific product id/slug. */
2375
+ productId: string;
2376
+ /** User-inputted resource name. */
2377
+ name: string;
2378
+ /** User-inputted metadata based on the registered metadata schema. */
2379
+ metadata: ResourceMetadataMap;
2380
+ /** Resource lifecycle status. One of Vercel's values: ready, pending, onboarding, suspended, resumed, uninstalled, error. */
2381
+ status: string;
2382
+ }
2383
+ export const Resource = /*@__PURE__*/ S.suspend(() =>
2384
+ S.Struct({
2385
+ id: S.String,
2386
+ productId: S.String,
2387
+ name: S.String,
2388
+ metadata: ResourceMetadataMap,
2389
+ status: S.String,
2390
+ }),
2391
+ ).annotate({ identifier: "Resource" }) as any as S.Schema<Resource>;
2392
+
2393
+ /** GitHub webhook event payload */
2394
+ export type GithubWebhookRequestBodyMap = { [key: string]: unknown | undefined };
2395
+ export const GithubWebhookRequestBodyMap = /*@__PURE__*/ S.Record(
2396
+ S.String,
2397
+ S.Unknown,
2398
+ ) as any as S.Schema<GithubWebhookRequestBodyMap>;
2399
+
2400
+ export interface GithubWebhookRequest {
2401
+ body: GithubWebhookRequestBodyMap;
2402
+ }
2403
+ export const GithubWebhookRequest = /*@__PURE__*/ S.suspend(() =>
2404
+ S.Struct({
2405
+ body: GithubWebhookRequestBodyMap.pipe(T.HttpBody()),
2406
+ }).pipe(T.Http({ method: "POST", uri: "/webhooks/github", code: 200 })),
2407
+ ).annotate({ identifier: "GithubWebhookRequest" }) as any as S.Schema<GithubWebhookRequest>;
2331
2408
 
2332
2409
  export interface GithubWebhookResponse {}
2333
- export const GithubWebhookResponse = /*@__PURE__*/ S.suspend(() =>
2334
- S.Struct({}),
2335
- ).annotate({
2410
+ export const GithubWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2336
2411
  identifier: "GithubWebhookResponse",
2337
2412
  }) as any as S.Schema<GithubWebhookResponse>;
2338
2413
 
@@ -2353,9 +2428,7 @@ export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() =>
2353
2428
  code: 200,
2354
2429
  }),
2355
2430
  ),
2356
- ).annotate({
2357
- identifier: "ListBackupsRequest",
2358
- }) as any as S.Schema<ListBackupsRequest>;
2431
+ ).annotate({ identifier: "ListBackupsRequest" }) as any as S.Schema<ListBackupsRequest>;
2359
2432
 
2360
2433
  /** list of backups within the project */
2361
2434
  export type ListBackupsResponseBackupsList = Array<BackupMetadata>;
@@ -2371,9 +2444,117 @@ export const ListBackupsResponse = /*@__PURE__*/ S.suspend(() =>
2371
2444
  S.Struct({
2372
2445
  backups: ListBackupsResponseBackupsList,
2373
2446
  }),
2447
+ ).annotate({ identifier: "ListBackupsResponse" }) as any as S.Schema<ListBackupsResponse>;
2448
+
2449
+ export interface ListBillingPlansForProductRequest {
2450
+ /** Vercel product slug (e.g. xata-postgres). */
2451
+ productSlug: string;
2452
+ /** Opaque metadata forwarded by Vercel. */
2453
+ metadata?: string;
2454
+ }
2455
+ export const ListBillingPlansForProductRequest = /*@__PURE__*/ S.suspend(() =>
2456
+ S.Struct({
2457
+ productSlug: S.String.pipe(T.Label()),
2458
+ metadata: S.optional(S.String.pipe(T.Query())),
2459
+ }).pipe(T.Http({ method: "GET", uri: "/v1/products/{productSlug}/plans", code: 200 })),
2374
2460
  ).annotate({
2375
- identifier: "ListBackupsResponse",
2376
- }) as any as S.Schema<ListBackupsResponse>;
2461
+ identifier: "ListBillingPlansForProductRequest",
2462
+ }) as any as S.Schema<ListBillingPlansForProductRequest>;
2463
+
2464
+ export interface PlanDetail {
2465
+ label: string;
2466
+ value?: string;
2467
+ }
2468
+ export const PlanDetail = /*@__PURE__*/ S.suspend(() =>
2469
+ S.Struct({
2470
+ label: S.String,
2471
+ value: S.optional(S.String),
2472
+ }),
2473
+ ).annotate({ identifier: "PlanDetail" }) as any as S.Schema<PlanDetail>;
2474
+
2475
+ export type BillingPlanDetailsList = Array<PlanDetail>;
2476
+ export const BillingPlanDetailsList = /*@__PURE__*/ S.Array(
2477
+ PlanDetail,
2478
+ ) as any as S.Schema<BillingPlanDetailsList>;
2479
+
2480
+ export type BillingPlanHighlightedDetailsList = Array<PlanDetail>;
2481
+ export const BillingPlanHighlightedDetailsList = /*@__PURE__*/ S.Array(
2482
+ PlanDetail,
2483
+ ) as any as S.Schema<BillingPlanHighlightedDetailsList>;
2484
+
2485
+ export interface PlanQuoteLine {
2486
+ line: string;
2487
+ amount: string;
2488
+ }
2489
+ export const PlanQuoteLine = /*@__PURE__*/ S.suspend(() =>
2490
+ S.Struct({
2491
+ line: S.String,
2492
+ amount: S.String,
2493
+ }),
2494
+ ).annotate({ identifier: "PlanQuoteLine" }) as any as S.Schema<PlanQuoteLine>;
2495
+
2496
+ export type BillingPlanQuoteList = Array<PlanQuoteLine>;
2497
+ export const BillingPlanQuoteList = /*@__PURE__*/ S.Array(
2498
+ PlanQuoteLine,
2499
+ ) as any as S.Schema<BillingPlanQuoteList>;
2500
+
2501
+ /** A Vercel Marketplace billing plan. Billing SKU only; it does not change Xata entitlements. */
2502
+ export interface BillingPlan {
2503
+ /** Partner-provided billing plan id. */
2504
+ id: string;
2505
+ /** Plan type: "subscription" or "prepayment". */
2506
+ type: string;
2507
+ name: string;
2508
+ description: string;
2509
+ /** Plan scope; installation-level plans require enablement on the integration. */
2510
+ scope?: string;
2511
+ /** Subscription plans only. false means the plan is completely free. */
2512
+ paymentMethodRequired?: boolean;
2513
+ /** Subscription + paymentMethodRequired. Amount used to test the payment method; never charged. */
2514
+ preauthorizationAmount?: number;
2515
+ /** Subscription + paymentMethodRequired. Amount invoiced immediately at sign-up (decimal USD string). */
2516
+ initialCharge?: string;
2517
+ /** Display cost for fixed-cost plans, e.g. "$20.00/month". Omitted for usage-based plans. */
2518
+ cost?: string;
2519
+ details?: BillingPlanDetailsList;
2520
+ highlightedDetails?: BillingPlanHighlightedDetailsList;
2521
+ quote?: BillingPlanQuoteList;
2522
+ effectiveDate?: string;
2523
+ disabled?: boolean;
2524
+ }
2525
+ export const BillingPlan = /*@__PURE__*/ S.suspend(() =>
2526
+ S.Struct({
2527
+ id: S.String,
2528
+ type: S.String,
2529
+ name: S.String,
2530
+ description: S.String,
2531
+ scope: S.optional(S.String),
2532
+ paymentMethodRequired: S.optional(S.Boolean),
2533
+ preauthorizationAmount: S.optional(S.Number),
2534
+ initialCharge: S.optional(S.String),
2535
+ cost: S.optional(S.String),
2536
+ details: S.optional(BillingPlanDetailsList),
2537
+ highlightedDetails: S.optional(BillingPlanHighlightedDetailsList),
2538
+ quote: S.optional(BillingPlanQuoteList),
2539
+ effectiveDate: S.optional(S.String),
2540
+ disabled: S.optional(S.Boolean),
2541
+ }),
2542
+ ).annotate({ identifier: "BillingPlan" }) as any as S.Schema<BillingPlan>;
2543
+
2544
+ export type ListBillingPlansResponsePlansList = Array<BillingPlan>;
2545
+ export const ListBillingPlansResponsePlansList = /*@__PURE__*/ S.Array(
2546
+ BillingPlan,
2547
+ ) as any as S.Schema<ListBillingPlansResponsePlansList>;
2548
+
2549
+ /** The billing plans available for a product. */
2550
+ export interface ListBillingPlansResponse {
2551
+ plans: ListBillingPlansResponsePlansList;
2552
+ }
2553
+ export const ListBillingPlansResponse = /*@__PURE__*/ S.suspend(() =>
2554
+ S.Struct({
2555
+ plans: ListBillingPlansResponsePlansList,
2556
+ }),
2557
+ ).annotate({ identifier: "ListBillingPlansResponse" }) as any as S.Schema<ListBillingPlansResponse>;
2377
2558
 
2378
2559
  export interface ListBranchesRequest {
2379
2560
  /** Unique identifier of the organization containing the project */
@@ -2392,9 +2573,7 @@ export const ListBranchesRequest = /*@__PURE__*/ S.suspend(() =>
2392
2573
  code: 200,
2393
2574
  }),
2394
2575
  ),
2395
- ).annotate({
2396
- identifier: "ListBranchesRequest",
2397
- }) as any as S.Schema<ListBranchesRequest>;
2576
+ ).annotate({ identifier: "ListBranchesRequest" }) as any as S.Schema<ListBranchesRequest>;
2398
2577
 
2399
2578
  /** Metadata about a branch used when listing branches in a project */
2400
2579
  export interface BranchListMetadata {
@@ -2429,9 +2608,7 @@ export const BranchListMetadata = /*@__PURE__*/ S.suspend(() =>
2429
2608
  publicAccess: S.Boolean,
2430
2609
  backupsEnabled: S.Boolean,
2431
2610
  }),
2432
- ).annotate({
2433
- identifier: "BranchListMetadata",
2434
- }) as any as S.Schema<BranchListMetadata>;
2611
+ ).annotate({ identifier: "BranchListMetadata" }) as any as S.Schema<BranchListMetadata>;
2435
2612
 
2436
2613
  /** Array of branch objects with their metadata */
2437
2614
  export type ListBranchesResponseBranchesList = Array<BranchListMetadata>;
@@ -2447,9 +2624,7 @@ export const ListBranchesResponse = /*@__PURE__*/ S.suspend(() =>
2447
2624
  S.Struct({
2448
2625
  branches: ListBranchesResponseBranchesList,
2449
2626
  }),
2450
- ).annotate({
2451
- identifier: "ListBranchesResponse",
2452
- }) as any as S.Schema<ListBranchesResponse>;
2627
+ ).annotate({ identifier: "ListBranchesResponse" }) as any as S.Schema<ListBranchesResponse>;
2453
2628
 
2454
2629
  export interface ListExtensionsRequest {
2455
2630
  /** Unique identifier of the organization to check instance type availability for */
@@ -2464,16 +2639,8 @@ export const ListExtensionsRequest = /*@__PURE__*/ S.suspend(() =>
2464
2639
  organizationID: S.String.pipe(T.Label()),
2465
2640
  image: S.String.pipe(T.Query()),
2466
2641
  region: S.optional(S.String.pipe(T.Query())),
2467
- }).pipe(
2468
- T.Http({
2469
- method: "GET",
2470
- uri: "/organizations/{organizationID}/extensions",
2471
- code: 200,
2472
- }),
2473
- ),
2474
- ).annotate({
2475
- identifier: "ListExtensionsRequest",
2476
- }) as any as S.Schema<ListExtensionsRequest>;
2642
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/extensions", code: 200 })),
2643
+ ).annotate({ identifier: "ListExtensionsRequest" }) as any as S.Schema<ListExtensionsRequest>;
2477
2644
 
2478
2645
  /** type of installation */
2479
2646
  export type ExtensionType = "extension" | "plugin" | "module";
@@ -2519,9 +2686,7 @@ export const ListExtensionsResponse = /*@__PURE__*/ S.suspend(() =>
2519
2686
  S.Struct({
2520
2687
  extensions: ListExtensionsResponseExtensionsList,
2521
2688
  }),
2522
- ).annotate({
2523
- identifier: "ListExtensionsResponse",
2524
- }) as any as S.Schema<ListExtensionsResponse>;
2689
+ ).annotate({ identifier: "ListExtensionsResponse" }) as any as S.Schema<ListExtensionsResponse>;
2525
2690
 
2526
2691
  export interface ListGithubAppInstallationsRequest {
2527
2692
  /** Unique identifier of the organization */
@@ -2542,12 +2707,10 @@ export const ListGithubAppInstallationsRequest = /*@__PURE__*/ S.suspend(() =>
2542
2707
  }) as any as S.Schema<ListGithubAppInstallationsRequest>;
2543
2708
 
2544
2709
  /** Array of GitHub App installations */
2545
- export type ListGithubAppInstallationsResponseInstallationsList =
2546
- Array<GithubInstallation>;
2547
- export const ListGithubAppInstallationsResponseInstallationsList =
2548
- /*@__PURE__*/ S.Array(
2549
- GithubInstallation,
2550
- ) as any as S.Schema<ListGithubAppInstallationsResponseInstallationsList>;
2710
+ export type ListGithubAppInstallationsResponseInstallationsList = Array<GithubInstallation>;
2711
+ export const ListGithubAppInstallationsResponseInstallationsList = /*@__PURE__*/ S.Array(
2712
+ GithubInstallation,
2713
+ ) as any as S.Schema<ListGithubAppInstallationsResponseInstallationsList>;
2551
2714
 
2552
2715
  export interface ListGithubAppInstallationsResponse {
2553
2716
  /** Array of GitHub App installations */
@@ -2571,22 +2734,12 @@ export const ListImagesRequest = /*@__PURE__*/ S.suspend(() =>
2571
2734
  S.Struct({
2572
2735
  organizationID: S.String.pipe(T.Label()),
2573
2736
  region: S.optional(S.String.pipe(T.Query())),
2574
- }).pipe(
2575
- T.Http({
2576
- method: "GET",
2577
- uri: "/organizations/{organizationID}/images",
2578
- code: 200,
2579
- }),
2580
- ),
2581
- ).annotate({
2582
- identifier: "ListImagesRequest",
2583
- }) as any as S.Schema<ListImagesRequest>;
2737
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/images", code: 200 })),
2738
+ ).annotate({ identifier: "ListImagesRequest" }) as any as S.Schema<ListImagesRequest>;
2584
2739
 
2585
2740
  /** region where this instance type is available */
2586
2741
  export type ImageRegionList = Array<string>;
2587
- export const ImageRegionList = /*@__PURE__*/ S.Array(
2588
- S.String,
2589
- ) as any as S.Schema<ImageRegionList>;
2742
+ export const ImageRegionList = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<ImageRegionList>;
2590
2743
 
2591
2744
  /** Details of a postgres image */
2592
2745
  export interface Image {
@@ -2622,9 +2775,7 @@ export const ListImagesResponse = /*@__PURE__*/ S.suspend(() =>
2622
2775
  S.Struct({
2623
2776
  images: ListImagesResponseImagesList,
2624
2777
  }),
2625
- ).annotate({
2626
- identifier: "ListImagesResponse",
2627
- }) as any as S.Schema<ListImagesResponse>;
2778
+ ).annotate({ identifier: "ListImagesResponse" }) as any as S.Schema<ListImagesResponse>;
2628
2779
 
2629
2780
  export interface ListInstanceTypesRequest {
2630
2781
  /** Unique identifier of the organization to check instance type availability for */
@@ -2637,15 +2788,9 @@ export const ListInstanceTypesRequest = /*@__PURE__*/ S.suspend(() =>
2637
2788
  organizationID: S.String.pipe(T.Label()),
2638
2789
  region: S.String.pipe(T.Query()),
2639
2790
  }).pipe(
2640
- T.Http({
2641
- method: "GET",
2642
- uri: "/organizations/{organizationID}/instanceTypes",
2643
- code: 200,
2644
- }),
2791
+ T.Http({ method: "GET", uri: "/organizations/{organizationID}/instanceTypes", code: 200 }),
2645
2792
  ),
2646
- ).annotate({
2647
- identifier: "ListInstanceTypesRequest",
2648
- }) as any as S.Schema<ListInstanceTypesRequest>;
2793
+ ).annotate({ identifier: "ListInstanceTypesRequest" }) as any as S.Schema<ListInstanceTypesRequest>;
2649
2794
 
2650
2795
  export interface ListInstanceTypesResponseInstanceTypesItem {
2651
2796
  /** Instance type name */
@@ -2661,19 +2806,18 @@ export interface ListInstanceTypesResponseInstanceTypesItem {
2661
2806
  /** region where this instance type is available */
2662
2807
  region: string;
2663
2808
  }
2664
- export const ListInstanceTypesResponseInstanceTypesItem =
2665
- /*@__PURE__*/ S.suspend(() =>
2666
- S.Struct({
2667
- name: S.String,
2668
- vcpus: S.Number,
2669
- ram: S.Number,
2670
- hourlyRate: S.Number,
2671
- storageMonthlyRate: S.Number,
2672
- region: S.String,
2673
- }),
2674
- ).annotate({
2675
- identifier: "ListInstanceTypesResponseInstanceTypesItem",
2676
- }) as any as S.Schema<ListInstanceTypesResponseInstanceTypesItem>;
2809
+ export const ListInstanceTypesResponseInstanceTypesItem = /*@__PURE__*/ S.suspend(() =>
2810
+ S.Struct({
2811
+ name: S.String,
2812
+ vcpus: S.Number,
2813
+ ram: S.Number,
2814
+ hourlyRate: S.Number,
2815
+ storageMonthlyRate: S.Number,
2816
+ region: S.String,
2817
+ }),
2818
+ ).annotate({
2819
+ identifier: "ListInstanceTypesResponseInstanceTypesItem",
2820
+ }) as any as S.Schema<ListInstanceTypesResponseInstanceTypesItem>;
2677
2821
 
2678
2822
  /** Array of available instance types with their properties */
2679
2823
  export type ListInstanceTypesResponseInstanceTypesList =
@@ -2701,13 +2845,7 @@ export interface ListOrganizationAPIKeysRequest {
2701
2845
  export const ListOrganizationAPIKeysRequest = /*@__PURE__*/ S.suspend(() =>
2702
2846
  S.Struct({
2703
2847
  organizationID: S.String.pipe(T.Label()),
2704
- }).pipe(
2705
- T.Http({
2706
- method: "GET",
2707
- uri: "/organizations/{organizationID}/api-keys",
2708
- code: 200,
2709
- }),
2710
- ),
2848
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/api-keys", code: 200 })),
2711
2849
  ).annotate({
2712
2850
  identifier: "ListOrganizationAPIKeysRequest",
2713
2851
  }) as any as S.Schema<ListOrganizationAPIKeysRequest>;
@@ -2806,32 +2944,22 @@ export interface ListOrganizationInvitationsRequest {
2806
2944
  export const ListOrganizationInvitationsRequest = /*@__PURE__*/ S.suspend(() =>
2807
2945
  S.Struct({
2808
2946
  organizationID: S.String.pipe(T.Label()),
2809
- status: S.optional(
2810
- ListOrganizationInvitationsRequestStatus.pipe(T.Query()),
2811
- ),
2947
+ status: S.optional(ListOrganizationInvitationsRequestStatus.pipe(T.Query())),
2812
2948
  email: S.optional(S.String.pipe(T.Query())),
2813
2949
  first_name: S.optional(S.String.pipe(T.Query())),
2814
2950
  last_name: S.optional(S.String.pipe(T.Query())),
2815
2951
  search: S.optional(S.String.pipe(T.Query())),
2816
2952
  first: S.optional(S.Number.pipe(T.Query())),
2817
2953
  max: S.optional(S.Number.pipe(T.Query())),
2818
- }).pipe(
2819
- T.Http({
2820
- method: "GET",
2821
- uri: "/organizations/{organizationID}/invitations",
2822
- code: 200,
2823
- }),
2824
- ),
2954
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/invitations", code: 200 })),
2825
2955
  ).annotate({
2826
2956
  identifier: "ListOrganizationInvitationsRequest",
2827
2957
  }) as any as S.Schema<ListOrganizationInvitationsRequest>;
2828
2958
 
2829
- export type ListOrganizationInvitationsResponseInvitationsList =
2830
- Array<OrganizationInvitation>;
2831
- export const ListOrganizationInvitationsResponseInvitationsList =
2832
- /*@__PURE__*/ S.Array(
2833
- OrganizationInvitation,
2834
- ) as any as S.Schema<ListOrganizationInvitationsResponseInvitationsList>;
2959
+ export type ListOrganizationInvitationsResponseInvitationsList = Array<OrganizationInvitation>;
2960
+ export const ListOrganizationInvitationsResponseInvitationsList = /*@__PURE__*/ S.Array(
2961
+ OrganizationInvitation,
2962
+ ) as any as S.Schema<ListOrganizationInvitationsResponseInvitationsList>;
2835
2963
 
2836
2964
  export interface ListOrganizationInvitationsResponse {
2837
2965
  invitations: ListOrganizationInvitationsResponseInvitationsList;
@@ -2851,35 +2979,32 @@ export interface ListOrganizationMembersRequest {
2851
2979
  export const ListOrganizationMembersRequest = /*@__PURE__*/ S.suspend(() =>
2852
2980
  S.Struct({
2853
2981
  organizationID: S.String.pipe(T.Label()),
2854
- }).pipe(
2855
- T.Http({
2856
- method: "GET",
2857
- uri: "/organizations/{organizationID}/members",
2858
- code: 200,
2859
- }),
2860
- ),
2982
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/members", code: 200 })),
2861
2983
  ).annotate({
2862
2984
  identifier: "ListOrganizationMembersRequest",
2863
2985
  }) as any as S.Schema<ListOrganizationMembersRequest>;
2864
2986
 
2865
- export interface UserWithID {
2987
+ /** A member of an organization and the role they hold in it */
2988
+ export interface OrganizationMember {
2866
2989
  /** Email address associated with the user account */
2867
2990
  email: string;
2868
2991
  /** Name of the user */
2869
2992
  name: string;
2870
2993
  id: string;
2994
+ role: OrganizationRoleName;
2871
2995
  }
2872
- export const UserWithID = /*@__PURE__*/ S.suspend(() =>
2996
+ export const OrganizationMember = /*@__PURE__*/ S.suspend(() =>
2873
2997
  S.Struct({
2874
2998
  email: S.String,
2875
2999
  name: S.String,
2876
3000
  id: S.String,
3001
+ role: OrganizationRoleName,
2877
3002
  }),
2878
- ).annotate({ identifier: "UserWithID" }) as any as S.Schema<UserWithID>;
3003
+ ).annotate({ identifier: "OrganizationMember" }) as any as S.Schema<OrganizationMember>;
2879
3004
 
2880
- export type ListOrganizationMembersResponseMembersList = Array<UserWithID>;
3005
+ export type ListOrganizationMembersResponseMembersList = Array<OrganizationMember>;
2881
3006
  export const ListOrganizationMembersResponseMembersList = /*@__PURE__*/ S.Array(
2882
- UserWithID,
3007
+ OrganizationMember,
2883
3008
  ) as any as S.Schema<ListOrganizationMembersResponseMembersList>;
2884
3009
 
2885
3010
  export interface ListOrganizationMembersResponse {
@@ -2893,6 +3018,51 @@ export const ListOrganizationMembersResponse = /*@__PURE__*/ S.suspend(() =>
2893
3018
  identifier: "ListOrganizationMembersResponse",
2894
3019
  }) as any as S.Schema<ListOrganizationMembersResponse>;
2895
3020
 
3021
+ export interface ListOrganizationRolesRequest {
3022
+ /** Unique identifier for a specific organization */
3023
+ organizationID: string;
3024
+ }
3025
+ export const ListOrganizationRolesRequest = /*@__PURE__*/ S.suspend(() =>
3026
+ S.Struct({
3027
+ organizationID: S.String.pipe(T.Label()),
3028
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/roles", code: 200 })),
3029
+ ).annotate({
3030
+ identifier: "ListOrganizationRolesRequest",
3031
+ }) as any as S.Schema<ListOrganizationRolesRequest>;
3032
+
3033
+ /** A role that can be held by a member of an organization */
3034
+ export interface OrganizationRole {
3035
+ /** Stable identifier for the role */
3036
+ id: OrganizationRoleName;
3037
+ /** Human-readable name of the role */
3038
+ name: string;
3039
+ /** What the role allows */
3040
+ description: string;
3041
+ }
3042
+ export const OrganizationRole = /*@__PURE__*/ S.suspend(() =>
3043
+ S.Struct({
3044
+ id: OrganizationRoleName,
3045
+ name: S.String,
3046
+ description: S.String,
3047
+ }),
3048
+ ).annotate({ identifier: "OrganizationRole" }) as any as S.Schema<OrganizationRole>;
3049
+
3050
+ export type ListOrganizationRolesResponseRolesList = Array<OrganizationRole>;
3051
+ export const ListOrganizationRolesResponseRolesList = /*@__PURE__*/ S.Array(
3052
+ OrganizationRole,
3053
+ ) as any as S.Schema<ListOrganizationRolesResponseRolesList>;
3054
+
3055
+ export interface ListOrganizationRolesResponse {
3056
+ roles: ListOrganizationRolesResponseRolesList;
3057
+ }
3058
+ export const ListOrganizationRolesResponse = /*@__PURE__*/ S.suspend(() =>
3059
+ S.Struct({
3060
+ roles: ListOrganizationRolesResponseRolesList,
3061
+ }),
3062
+ ).annotate({
3063
+ identifier: "ListOrganizationRolesResponse",
3064
+ }) as any as S.Schema<ListOrganizationRolesResponse>;
3065
+
2896
3066
  export interface ListProjectsRequest {
2897
3067
  /** Unique identifier of the organization to list projects from */
2898
3068
  organizationID: string;
@@ -2900,16 +3070,8 @@ export interface ListProjectsRequest {
2900
3070
  export const ListProjectsRequest = /*@__PURE__*/ S.suspend(() =>
2901
3071
  S.Struct({
2902
3072
  organizationID: S.String.pipe(T.Label()),
2903
- }).pipe(
2904
- T.Http({
2905
- method: "GET",
2906
- uri: "/organizations/{organizationID}/projects",
2907
- code: 200,
2908
- }),
2909
- ),
2910
- ).annotate({
2911
- identifier: "ListProjectsRequest",
2912
- }) as any as S.Schema<ListProjectsRequest>;
3073
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/projects", code: 200 })),
3074
+ ).annotate({ identifier: "ListProjectsRequest" }) as any as S.Schema<ListProjectsRequest>;
2913
3075
 
2914
3076
  /** Array of project objects with their metadata */
2915
3077
  export type ListProjectsResponseProjectsList = Array<Project>;
@@ -2925,9 +3087,7 @@ export const ListProjectsResponse = /*@__PURE__*/ S.suspend(() =>
2925
3087
  S.Struct({
2926
3088
  projects: ListProjectsResponseProjectsList,
2927
3089
  }),
2928
- ).annotate({
2929
- identifier: "ListProjectsResponse",
2930
- }) as any as S.Schema<ListProjectsResponse>;
3090
+ ).annotate({ identifier: "ListProjectsResponse" }) as any as S.Schema<ListProjectsResponse>;
2931
3091
 
2932
3092
  export interface ListRegionsRequest {
2933
3093
  /** Unique identifier of the organization to check region availability for */
@@ -2936,19 +3096,11 @@ export interface ListRegionsRequest {
2936
3096
  export const ListRegionsRequest = /*@__PURE__*/ S.suspend(() =>
2937
3097
  S.Struct({
2938
3098
  organizationID: S.String.pipe(T.Label()),
2939
- }).pipe(
2940
- T.Http({
2941
- method: "GET",
2942
- uri: "/organizations/{organizationID}/regions",
2943
- code: 200,
2944
- }),
2945
- ),
2946
- ).annotate({
2947
- identifier: "ListRegionsRequest",
2948
- }) as any as S.Schema<ListRegionsRequest>;
3099
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/regions", code: 200 })),
3100
+ ).annotate({ identifier: "ListRegionsRequest" }) as any as S.Schema<ListRegionsRequest>;
2949
3101
 
2950
3102
  /** Cloud provider the region runs on */
2951
- export type ListRegionsResponseRegionsItemProvider = "aws" | "gcp" | "custom";
3103
+ export type ListRegionsResponseRegionsItemProvider = "aws" | "gcp" | "azure" | "custom";
2952
3104
  export const ListRegionsResponseRegionsItemProvider = S.String;
2953
3105
 
2954
3106
  export interface ListRegionsResponseRegionsItem {
@@ -2976,8 +3128,7 @@ export const ListRegionsResponseRegionsItem = /*@__PURE__*/ S.suspend(() =>
2976
3128
  }) as any as S.Schema<ListRegionsResponseRegionsItem>;
2977
3129
 
2978
3130
  /** Array of available regions with their properties */
2979
- export type ListRegionsResponseRegionsList =
2980
- Array<ListRegionsResponseRegionsItem>;
3131
+ export type ListRegionsResponseRegionsList = Array<ListRegionsResponseRegionsItem>;
2981
3132
  export const ListRegionsResponseRegionsList = /*@__PURE__*/ S.Array(
2982
3133
  ListRegionsResponseRegionsItem,
2983
3134
  ) as any as S.Schema<ListRegionsResponseRegionsList>;
@@ -2990,16 +3141,12 @@ export const ListRegionsResponse = /*@__PURE__*/ S.suspend(() =>
2990
3141
  S.Struct({
2991
3142
  regions: ListRegionsResponseRegionsList,
2992
3143
  }),
2993
- ).annotate({
2994
- identifier: "ListRegionsResponse",
2995
- }) as any as S.Schema<ListRegionsResponse>;
3144
+ ).annotate({ identifier: "ListRegionsResponse" }) as any as S.Schema<ListRegionsResponse>;
2996
3145
 
2997
3146
  export interface ListUserAPIKeysRequest {}
2998
3147
  export const ListUserAPIKeysRequest = /*@__PURE__*/ S.suspend(() =>
2999
3148
  S.Struct({}).pipe(T.Http({ method: "GET", uri: "/api-keys", code: 200 })),
3000
- ).annotate({
3001
- identifier: "ListUserAPIKeysRequest",
3002
- }) as any as S.Schema<ListUserAPIKeysRequest>;
3149
+ ).annotate({ identifier: "ListUserAPIKeysRequest" }) as any as S.Schema<ListUserAPIKeysRequest>;
3003
3150
 
3004
3151
  /** Array of API keys for the user */
3005
3152
  export type ListUserAPIKeysResponseKeysList = Array<APIKeyPreview>;
@@ -3015,9 +3162,7 @@ export const ListUserAPIKeysResponse = /*@__PURE__*/ S.suspend(() =>
3015
3162
  S.Struct({
3016
3163
  keys: ListUserAPIKeysResponseKeysList,
3017
3164
  }),
3018
- ).annotate({
3019
- identifier: "ListUserAPIKeysResponse",
3020
- }) as any as S.Schema<ListUserAPIKeysResponse>;
3165
+ ).annotate({ identifier: "ListUserAPIKeysResponse" }) as any as S.Schema<ListUserAPIKeysResponse>;
3021
3166
 
3022
3167
  /** Orb webhook event payload */
3023
3168
  export type OrbWebhookRequestBodyMap = { [key: string]: unknown | undefined };
@@ -3033,17 +3178,119 @@ export const OrbWebhookRequest = /*@__PURE__*/ S.suspend(() =>
3033
3178
  S.Struct({
3034
3179
  body: OrbWebhookRequestBodyMap.pipe(T.HttpBody()),
3035
3180
  }).pipe(T.Http({ method: "POST", uri: "/webhooks/orb", code: 200 })),
3036
- ).annotate({
3037
- identifier: "OrbWebhookRequest",
3038
- }) as any as S.Schema<OrbWebhookRequest>;
3181
+ ).annotate({ identifier: "OrbWebhookRequest" }) as any as S.Schema<OrbWebhookRequest>;
3039
3182
 
3040
3183
  export interface OrbWebhookResponse {}
3041
- export const OrbWebhookResponse = /*@__PURE__*/ S.suspend(() =>
3042
- S.Struct({}),
3043
- ).annotate({
3184
+ export const OrbWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
3044
3185
  identifier: "OrbWebhookResponse",
3045
3186
  }) as any as S.Schema<OrbWebhookResponse>;
3046
3187
 
3188
+ /** User-inputted metadata based on the registered metadata schema. */
3189
+ export type ProvisionResourceRequestMetadataMap = { [key: string]: unknown | undefined };
3190
+ export const ProvisionResourceRequestMetadataMap = /*@__PURE__*/ S.Record(
3191
+ S.String,
3192
+ S.Unknown,
3193
+ ) as any as S.Schema<ProvisionResourceRequestMetadataMap>;
3194
+
3195
+ export interface ProvisionResourceRequest {
3196
+ /** Vercel installation id (icfg_...). */
3197
+ installationId: string;
3198
+ /** The partner-specific product id/slug. */
3199
+ productId: string;
3200
+ /** User-inputted resource name. */
3201
+ name: string;
3202
+ /** User-inputted metadata based on the registered metadata schema. */
3203
+ metadata: ProvisionResourceRequestMetadataMap;
3204
+ /** Selected Vercel billing plan id. */
3205
+ billingPlanId: string;
3206
+ /** Partner-provided identifier indicating the source of provisioning. */
3207
+ externalId?: string;
3208
+ }
3209
+ export const ProvisionResourceRequest = /*@__PURE__*/ S.suspend(() =>
3210
+ S.Struct({
3211
+ installationId: S.String.pipe(T.Label()),
3212
+ productId: S.String,
3213
+ name: S.String,
3214
+ metadata: ProvisionResourceRequestMetadataMap,
3215
+ billingPlanId: S.String,
3216
+ externalId: S.optional(S.String),
3217
+ }).pipe(
3218
+ T.Http({ method: "POST", uri: "/v1/installations/{installationId}/resources", code: 200 }),
3219
+ ),
3220
+ ).annotate({ identifier: "ProvisionResourceRequest" }) as any as S.Schema<ProvisionResourceRequest>;
3221
+
3222
+ /** User-inputted metadata based on the registered metadata schema. */
3223
+ export type ProvisionedResourceMetadataMap = { [key: string]: unknown | undefined };
3224
+ export const ProvisionedResourceMetadataMap = /*@__PURE__*/ S.Record(
3225
+ S.String,
3226
+ S.Unknown,
3227
+ ) as any as S.Schema<ProvisionedResourceMetadataMap>;
3228
+
3229
+ /** Per-environment values that override value for that Vercel environment. */
3230
+ export interface SecretEnvironmentOverrides {
3231
+ development?: string;
3232
+ preview?: string;
3233
+ production?: string;
3234
+ }
3235
+ export const SecretEnvironmentOverrides = /*@__PURE__*/ S.suspend(() =>
3236
+ S.Struct({
3237
+ development: S.optional(S.String),
3238
+ preview: S.optional(S.String),
3239
+ production: S.optional(S.String),
3240
+ }),
3241
+ ).annotate({
3242
+ identifier: "SecretEnvironmentOverrides",
3243
+ }) as any as S.Schema<SecretEnvironmentOverrides>;
3244
+
3245
+ /** A connection secret exposed as an environment variable on connected Vercel projects. */
3246
+ export interface Secret {
3247
+ /** Environment variable name. */
3248
+ name: string;
3249
+ /** Default value, used when no per-environment override applies. */
3250
+ value: string;
3251
+ /** Per-environment values that override value for that Vercel environment. */
3252
+ environmentOverrides?: SecretEnvironmentOverrides;
3253
+ }
3254
+ export const Secret = /*@__PURE__*/ S.suspend(() =>
3255
+ S.Struct({
3256
+ name: S.String,
3257
+ value: S.String,
3258
+ environmentOverrides: S.optional(SecretEnvironmentOverrides),
3259
+ }),
3260
+ ).annotate({ identifier: "Secret" }) as any as S.Schema<Secret>;
3261
+
3262
+ /** Connection secrets that become environment variables on connected projects. */
3263
+ export type ProvisionedResourceSecretsList = Array<Secret>;
3264
+ export const ProvisionedResourceSecretsList = /*@__PURE__*/ S.Array(
3265
+ Secret,
3266
+ ) as any as S.Schema<ProvisionedResourceSecretsList>;
3267
+
3268
+ /** A newly provisioned resource: the Resource fields plus the connection secrets. Provision Resource is the only endpoint that returns secrets. */
3269
+ export interface ProvisionedResource {
3270
+ /** The partner-specific resource id. */
3271
+ id: string;
3272
+ /** The partner-specific product id/slug. */
3273
+ productId: string;
3274
+ /** User-inputted resource name. */
3275
+ name: string;
3276
+ /** User-inputted metadata based on the registered metadata schema. */
3277
+ metadata: ProvisionedResourceMetadataMap;
3278
+ /** Resource lifecycle status. One of Vercel's values: ready, pending, onboarding, suspended, resumed, uninstalled, error. */
3279
+ status: string;
3280
+ /** Connection secrets that become environment variables on connected projects. */
3281
+ secrets: ProvisionedResourceSecretsList;
3282
+ }
3283
+ export const ProvisionedResource = /*@__PURE__*/ S.suspend(() =>
3284
+ S.Struct({
3285
+ id: S.String,
3286
+ productId: S.String,
3287
+ name: S.String,
3288
+ metadata: ProvisionedResourceMetadataMap,
3289
+ status: S.String,
3290
+ secrets: ProvisionedResourceSecretsList,
3291
+ }),
3292
+ ).annotate({ identifier: "ProvisionedResource" }) as any as S.Schema<ProvisionedResource>;
3293
+
3047
3294
  /** Positional parameters for the query (`$1`, `$2`, ...). */
3048
3295
  export type QueryRequestParamsList = Array<unknown>;
3049
3296
  export const QueryRequestParamsList = /*@__PURE__*/ S.Array(
@@ -3104,7 +3351,7 @@ export interface FieldDefinition {
3104
3351
  name: string;
3105
3352
  /** OID of the source table (0 if not a table column). */
3106
3353
  tableID: number;
3107
- /** Attribute number of the column within the table. */
3354
+ /** Attribute number of the column within the table (0 if not a table column, negative for system columns). */
3108
3355
  columnID: number;
3109
3356
  /** OID of the column data type. */
3110
3357
  dataTypeID: number;
@@ -3125,9 +3372,7 @@ export const FieldDefinition = /*@__PURE__*/ S.suspend(() =>
3125
3372
  dataTypeModifier: S.Number,
3126
3373
  format: S.String,
3127
3374
  }),
3128
- ).annotate({
3129
- identifier: "FieldDefinition",
3130
- }) as any as S.Schema<FieldDefinition>;
3375
+ ).annotate({ identifier: "FieldDefinition" }) as any as S.Schema<FieldDefinition>;
3131
3376
 
3132
3377
  /** Column metadata for the result set. */
3133
3378
  export type QueryResultFieldsList = Array<FieldDefinition>;
@@ -3182,8 +3427,7 @@ export const BatchResponse = /*@__PURE__*/ S.suspend(() =>
3182
3427
  ).annotate({ identifier: "BatchResponse" }) as any as S.Schema<BatchResponse>;
3183
3428
 
3184
3429
  export type QueryResponseBody = QueryResult | BatchResponse;
3185
- export const QueryResponseBody =
3186
- S.Unknown as any as S.Schema<QueryResponseBody>;
3430
+ export const QueryResponseBody = S.Unknown as any as S.Schema<QueryResponseBody>;
3187
3431
 
3188
3432
  export type QueryResponse = QueryResponseBody;
3189
3433
  export const QueryResponse = /*@__PURE__*/ S.suspend(() =>
@@ -3232,9 +3476,7 @@ export const RegisterMarketplaceRequest = /*@__PURE__*/ S.suspend(() =>
3232
3476
  }) as any as S.Schema<RegisterMarketplaceRequest>;
3233
3477
 
3234
3478
  export interface RegisterMarketplaceResponse {}
3235
- export const RegisterMarketplaceResponse = /*@__PURE__*/ S.suspend(() =>
3236
- S.Struct({}),
3237
- ).annotate({
3479
+ export const RegisterMarketplaceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
3238
3480
  identifier: "RegisterMarketplaceResponse",
3239
3481
  }) as any as S.Schema<RegisterMarketplaceResponse>;
3240
3482
 
@@ -3274,11 +3516,7 @@ export const RequestOrganizationDeletionRequest = /*@__PURE__*/ S.suspend(() =>
3274
3516
  S.Struct({
3275
3517
  organizationID: S.String.pipe(T.Label()),
3276
3518
  }).pipe(
3277
- T.Http({
3278
- method: "POST",
3279
- uri: "/organizations/{organizationID}/deletion-request",
3280
- code: 200,
3281
- }),
3519
+ T.Http({ method: "POST", uri: "/organizations/{organizationID}/deletion-request", code: 200 }),
3282
3520
  ),
3283
3521
  ).annotate({
3284
3522
  identifier: "RequestOrganizationDeletionRequest",
@@ -3313,8 +3551,8 @@ export const ResendOrganizationInvitationRequest = /*@__PURE__*/ S.suspend(() =>
3313
3551
  }) as any as S.Schema<ResendOrganizationInvitationRequest>;
3314
3552
 
3315
3553
  export interface ResendOrganizationInvitationResponse {}
3316
- export const ResendOrganizationInvitationResponse = /*@__PURE__*/ S.suspend(
3317
- () => S.Struct({}),
3554
+ export const ResendOrganizationInvitationResponse = /*@__PURE__*/ S.suspend(() =>
3555
+ S.Struct({}),
3318
3556
  ).annotate({
3319
3557
  identifier: "ResendOrganizationInvitationResponse",
3320
3558
  }) as any as S.Schema<ResendOrganizationInvitationResponse>;
@@ -3351,9 +3589,7 @@ export const RestoreFromBackupRequest = /*@__PURE__*/ S.suspend(() =>
3351
3589
  code: 200,
3352
3590
  }),
3353
3591
  ),
3354
- ).annotate({
3355
- identifier: "RestoreFromBackupRequest",
3356
- }) as any as S.Schema<RestoreFromBackupRequest>;
3592
+ ).annotate({ identifier: "RestoreFromBackupRequest" }) as any as S.Schema<RestoreFromBackupRequest>;
3357
3593
 
3358
3594
  export interface RotateBranchCredentialsRequest {
3359
3595
  organizationID: string;
@@ -3380,11 +3616,9 @@ export const RotateBranchCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
3380
3616
  }) as any as S.Schema<RotateBranchCredentialsRequest>;
3381
3617
 
3382
3618
  export interface RotateBranchCredentialsResponse {}
3383
- export const RotateBranchCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
3384
- S.Struct({}),
3385
- ).annotate({
3386
- identifier: "RotateBranchCredentialsResponse",
3387
- }) as any as S.Schema<RotateBranchCredentialsResponse>;
3619
+ export const RotateBranchCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate(
3620
+ { identifier: "RotateBranchCredentialsResponse" },
3621
+ ) as any as S.Schema<RotateBranchCredentialsResponse>;
3388
3622
 
3389
3623
  /** JSON-RPC protocol version. Always `2.0`. */
3390
3624
  export type SendMcpRequestRequestJsonrpc = "2.0";
@@ -3392,13 +3626,10 @@ export const SendMcpRequestRequestJsonrpc = S.String;
3392
3626
 
3393
3627
  /** Request identifier, echoed on the response. Omitted for notifications. */
3394
3628
  export type SendMcpRequestRequestId = string | number;
3395
- export const SendMcpRequestRequestId =
3396
- S.Unknown as any as S.Schema<SendMcpRequestRequestId>;
3629
+ export const SendMcpRequestRequestId = S.Unknown as any as S.Schema<SendMcpRequestRequestId>;
3397
3630
 
3398
3631
  /** Method parameters as defined by the MCP specification. */
3399
- export type SendMcpRequestRequestParamsMap = {
3400
- [key: string]: unknown | undefined;
3401
- };
3632
+ export type SendMcpRequestRequestParamsMap = { [key: string]: unknown | undefined };
3402
3633
  export const SendMcpRequestRequestParamsMap = /*@__PURE__*/ S.Record(
3403
3634
  S.String,
3404
3635
  S.Unknown,
@@ -3421,9 +3652,7 @@ export const SendMcpRequestRequest = /*@__PURE__*/ S.suspend(() =>
3421
3652
  method: S.String,
3422
3653
  params: S.optional(SendMcpRequestRequestParamsMap),
3423
3654
  }).pipe(T.Http({ method: "POST", uri: "/mcp", code: 200 })),
3424
- ).annotate({
3425
- identifier: "SendMcpRequestRequest",
3426
- }) as any as S.Schema<SendMcpRequestRequest>;
3655
+ ).annotate({ identifier: "SendMcpRequestRequest" }) as any as S.Schema<SendMcpRequestRequest>;
3427
3656
 
3428
3657
  /** JSON-RPC protocol version. Always `2.0`. */
3429
3658
  export type JSONRPCResponseJsonrpc = "2.0";
@@ -3431,8 +3660,7 @@ export const JSONRPCResponseJsonrpc = S.String;
3431
3660
 
3432
3661
  /** Identifier of the request this responds to. */
3433
3662
  export type JSONRPCResponseId = string | number;
3434
- export const JSONRPCResponseId =
3435
- S.Unknown as any as S.Schema<JSONRPCResponseId>;
3663
+ export const JSONRPCResponseId = S.Unknown as any as S.Schema<JSONRPCResponseId>;
3436
3664
 
3437
3665
  /** Method result as defined by the MCP specification. */
3438
3666
  export type JSONRPCResponseResultMap = { [key: string]: unknown | undefined };
@@ -3475,14 +3703,64 @@ export const JSONRPCResponse = /*@__PURE__*/ S.suspend(() =>
3475
3703
  result: S.optional(JSONRPCResponseResultMap),
3476
3704
  error: S.optional(JSONRPCError),
3477
3705
  }),
3706
+ ).annotate({ identifier: "JSONRPCResponse" }) as any as S.Schema<JSONRPCResponse>;
3707
+
3708
+ export interface SetOrganizationMemberRoleRequest {
3709
+ /** Unique identifier for a specific organization */
3710
+ organizationID: string;
3711
+ /** Unique identifier for a specific user account */
3712
+ userID: string;
3713
+ role: OrganizationRoleName | (string & {});
3714
+ }
3715
+ export const SetOrganizationMemberRoleRequest = /*@__PURE__*/ S.suspend(() =>
3716
+ S.Struct({
3717
+ organizationID: S.String.pipe(T.Label()),
3718
+ userID: S.String.pipe(T.Label()),
3719
+ role: OrganizationRoleName,
3720
+ }).pipe(
3721
+ T.Http({
3722
+ method: "PUT",
3723
+ uri: "/organizations/{organizationID}/members/{userID}/role",
3724
+ code: 200,
3725
+ }),
3726
+ ),
3727
+ ).annotate({
3728
+ identifier: "SetOrganizationMemberRoleRequest",
3729
+ }) as any as S.Schema<SetOrganizationMemberRoleRequest>;
3730
+
3731
+ export interface SetOrganizationMemberRoleResponse {}
3732
+ export const SetOrganizationMemberRoleResponse = /*@__PURE__*/ S.suspend(() =>
3733
+ S.Struct({}),
3734
+ ).annotate({
3735
+ identifier: "SetOrganizationMemberRoleResponse",
3736
+ }) as any as S.Schema<SetOrganizationMemberRoleResponse>;
3737
+
3738
+ export interface SetOrganizationSSOProviderEnforcementRequest {
3739
+ /** Unique identifier for a specific organization */
3740
+ organizationID: string;
3741
+ /** Alias identifying one of the organization's SSO identity providers */
3742
+ providerAlias: string;
3743
+ /** Enable to send every address on the domain to this provider. Disable to let members sign in however they could before. */
3744
+ enforced: boolean;
3745
+ }
3746
+ export const SetOrganizationSSOProviderEnforcementRequest = /*@__PURE__*/ S.suspend(() =>
3747
+ S.Struct({
3748
+ organizationID: S.String.pipe(T.Label()),
3749
+ providerAlias: S.String.pipe(T.Label()),
3750
+ enforced: S.Boolean,
3751
+ }).pipe(
3752
+ T.Http({
3753
+ method: "PUT",
3754
+ uri: "/organizations/{organizationID}/sso/providers/{providerAlias}/enforcement",
3755
+ code: 200,
3756
+ }),
3757
+ ),
3478
3758
  ).annotate({
3479
- identifier: "JSONRPCResponse",
3480
- }) as any as S.Schema<JSONRPCResponse>;
3759
+ identifier: "SetOrganizationSSOProviderEnforcementRequest",
3760
+ }) as any as S.Schema<SetOrganizationSSOProviderEnforcementRequest>;
3481
3761
 
3482
3762
  /** Stripe webhook event payload */
3483
- export type StripeWebhookRequestBodyMap = {
3484
- [key: string]: unknown | undefined;
3485
- };
3763
+ export type StripeWebhookRequestBodyMap = { [key: string]: unknown | undefined };
3486
3764
  export const StripeWebhookRequestBodyMap = /*@__PURE__*/ S.Record(
3487
3765
  S.String,
3488
3766
  S.Unknown,
@@ -3495,14 +3773,10 @@ export const StripeWebhookRequest = /*@__PURE__*/ S.suspend(() =>
3495
3773
  S.Struct({
3496
3774
  body: StripeWebhookRequestBodyMap.pipe(T.HttpBody()),
3497
3775
  }).pipe(T.Http({ method: "POST", uri: "/webhooks/stripe", code: 200 })),
3498
- ).annotate({
3499
- identifier: "StripeWebhookRequest",
3500
- }) as any as S.Schema<StripeWebhookRequest>;
3776
+ ).annotate({ identifier: "StripeWebhookRequest" }) as any as S.Schema<StripeWebhookRequest>;
3501
3777
 
3502
3778
  export interface StripeWebhookResponse {}
3503
- export const StripeWebhookResponse = /*@__PURE__*/ S.suspend(() =>
3504
- S.Struct({}),
3505
- ).annotate({
3779
+ export const StripeWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
3506
3780
  identifier: "StripeWebhookResponse",
3507
3781
  }) as any as S.Schema<StripeWebhookResponse>;
3508
3782
 
@@ -3516,11 +3790,7 @@ export const UpdateBillingCustomerRequest = /*@__PURE__*/ S.suspend(() =>
3516
3790
  organizationID: S.String.pipe(T.Label()),
3517
3791
  billing_email: S.String,
3518
3792
  }).pipe(
3519
- T.Http({
3520
- method: "PATCH",
3521
- uri: "/organizations/{organizationID}/billing/customer",
3522
- code: 200,
3523
- }),
3793
+ T.Http({ method: "PATCH", uri: "/organizations/{organizationID}/billing/customer", code: 200 }),
3524
3794
  ),
3525
3795
  ).annotate({
3526
3796
  identifier: "UpdateBillingCustomerRequest",
@@ -3530,11 +3800,10 @@ export const UpdateBillingCustomerRequest = /*@__PURE__*/ S.suspend(() =>
3530
3800
  export type UpdateBranchRequestPostgresConfigurationParametersMap = {
3531
3801
  [key: string]: string | undefined;
3532
3802
  };
3533
- export const UpdateBranchRequestPostgresConfigurationParametersMap =
3534
- /*@__PURE__*/ S.Record(
3535
- S.String,
3536
- S.String,
3537
- ) as any as S.Schema<UpdateBranchRequestPostgresConfigurationParametersMap>;
3803
+ export const UpdateBranchRequestPostgresConfigurationParametersMap = /*@__PURE__*/ S.Record(
3804
+ S.String,
3805
+ S.String,
3806
+ ) as any as S.Schema<UpdateBranchRequestPostgresConfigurationParametersMap>;
3538
3807
 
3539
3808
  /** List of PostgreSQL extensions and libraries to preload */
3540
3809
  export type UpdateBranchRequestPreloadLibrariesList = Array<string>;
@@ -3551,7 +3820,7 @@ export interface UpdateBranchRequest {
3551
3820
  branchID: string;
3552
3821
  /** New name for the branch */
3553
3822
  name?: string;
3554
- /** New description for the branch (max 50 characters) */
3823
+ /** New description for the branch. Send an empty string to clear it. */
3555
3824
  description?: string;
3556
3825
  /** Number of database replicas to scale to */
3557
3826
  replicas?: number;
@@ -3595,9 +3864,7 @@ export const UpdateBranchRequest = /*@__PURE__*/ S.suspend(() =>
3595
3864
  code: 200,
3596
3865
  }),
3597
3866
  ),
3598
- ).annotate({
3599
- identifier: "UpdateBranchRequest",
3600
- }) as any as S.Schema<UpdateBranchRequest>;
3867
+ ).annotate({ identifier: "UpdateBranchRequest" }) as any as S.Schema<UpdateBranchRequest>;
3601
3868
 
3602
3869
  export interface UpdateGithubAppInstallationRequest {
3603
3870
  /** Unique identifier of the organization */
@@ -3663,16 +3930,40 @@ export const UpdateOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
3663
3930
  organizationID: S.String.pipe(T.Label()),
3664
3931
  id: S.optional(S.String),
3665
3932
  name: S.optional(S.String),
3933
+ }).pipe(T.Http({ method: "PUT", uri: "/organizations/{organizationID}", code: 200 })),
3934
+ ).annotate({
3935
+ identifier: "UpdateOrganizationRequest",
3936
+ }) as any as S.Schema<UpdateOrganizationRequest>;
3937
+
3938
+ export interface UpdateOrganizationSSOProviderRequest {
3939
+ /** Unique identifier for a specific organization */
3940
+ organizationID: string;
3941
+ /** Alias identifying one of the organization's SSO identity providers */
3942
+ providerAlias: string;
3943
+ /** OIDC issuer URL. Required for `oidc`, and for `microsoft` where it names the Entra tenant; ignored for `google`. */
3944
+ issuer?: string;
3945
+ /** OAuth client ID the organization registered with the provider */
3946
+ client_id: string;
3947
+ /** OAuth client secret. Write-only: it is stored in Keycloak and is never returned by this API. */
3948
+ client_secret: string | Redacted.Redacted<string>;
3949
+ }
3950
+ export const UpdateOrganizationSSOProviderRequest = /*@__PURE__*/ S.suspend(() =>
3951
+ S.Struct({
3952
+ organizationID: S.String.pipe(T.Label()),
3953
+ providerAlias: S.String.pipe(T.Label()),
3954
+ issuer: S.optional(S.String),
3955
+ client_id: S.String,
3956
+ client_secret: S.String.pipe(T.SensitiveValue({})),
3666
3957
  }).pipe(
3667
3958
  T.Http({
3668
3959
  method: "PUT",
3669
- uri: "/organizations/{organizationID}",
3960
+ uri: "/organizations/{organizationID}/sso/providers/{providerAlias}",
3670
3961
  code: 200,
3671
3962
  }),
3672
3963
  ),
3673
3964
  ).annotate({
3674
- identifier: "UpdateOrganizationRequest",
3675
- }) as any as S.Schema<UpdateOrganizationRequest>;
3965
+ identifier: "UpdateOrganizationSSOProviderRequest",
3966
+ }) as any as S.Schema<UpdateOrganizationSSOProviderRequest>;
3676
3967
 
3677
3968
  /** Partial configuration update for a project */
3678
3969
  export interface UpdateProjectConfiguration {
@@ -3710,9 +4001,7 @@ export const UpdateProjectRequest = /*@__PURE__*/ S.suspend(() =>
3710
4001
  code: 200,
3711
4002
  }),
3712
4003
  ),
3713
- ).annotate({
3714
- identifier: "UpdateProjectRequest",
3715
- }) as any as S.Schema<UpdateProjectRequest>;
4004
+ ).annotate({ identifier: "UpdateProjectRequest" }) as any as S.Schema<UpdateProjectRequest>;
3716
4005
 
3717
4006
  /** Scopes granted to the installation. */
3718
4007
  export type UpsertInstallationRequestScopesList = Array<string>;
@@ -3721,14 +4010,11 @@ export const UpsertInstallationRequestScopesList = /*@__PURE__*/ S.Array(
3721
4010
  ) as any as S.Schema<UpsertInstallationRequestScopesList>;
3722
4011
 
3723
4012
  /** Map of policy id to the acceptance timestamp (RFC 3339), e.g. {"toc": "2024-02-28T10:00:00Z"}. */
3724
- export type UpsertInstallationRequestAcceptedPoliciesMap = {
3725
- [key: string]: string | undefined;
3726
- };
3727
- export const UpsertInstallationRequestAcceptedPoliciesMap =
3728
- /*@__PURE__*/ S.Record(
3729
- S.String,
3730
- S.String,
3731
- ) as any as S.Schema<UpsertInstallationRequestAcceptedPoliciesMap>;
4013
+ export type UpsertInstallationRequestAcceptedPoliciesMap = { [key: string]: string | undefined };
4014
+ export const UpsertInstallationRequestAcceptedPoliciesMap = /*@__PURE__*/ S.Record(
4015
+ S.String,
4016
+ S.String,
4017
+ ) as any as S.Schema<UpsertInstallationRequestAcceptedPoliciesMap>;
3732
4018
 
3733
4019
  export interface InstallationCredentials {
3734
4020
  /** Installation access token that authenticates our outbound Partner API calls to Vercel. Stored encrypted at rest. */
@@ -3741,9 +4027,7 @@ export const InstallationCredentials = /*@__PURE__*/ S.suspend(() =>
3741
4027
  access_token: S.String.pipe(T.SensitiveValue({})),
3742
4028
  token_type: S.String,
3743
4029
  }),
3744
- ).annotate({
3745
- identifier: "InstallationCredentials",
3746
- }) as any as S.Schema<InstallationCredentials>;
4030
+ ).annotate({ identifier: "InstallationCredentials" }) as any as S.Schema<InstallationCredentials>;
3747
4031
 
3748
4032
  /** Contact details for the account. */
3749
4033
  export interface InstallationAccountContact {
@@ -3774,9 +4058,7 @@ export const InstallationAccount = /*@__PURE__*/ S.suspend(() =>
3774
4058
  url: S.String,
3775
4059
  contact: S.optional(InstallationAccountContact),
3776
4060
  }),
3777
- ).annotate({
3778
- identifier: "InstallationAccount",
3779
- }) as any as S.Schema<InstallationAccount>;
4061
+ ).annotate({ identifier: "InstallationAccount" }) as any as S.Schema<InstallationAccount>;
3780
4062
 
3781
4063
  export interface UpsertInstallationRequest {
3782
4064
  /** Vercel installation id (icfg_...). */
@@ -3795,35 +4077,44 @@ export const UpsertInstallationRequest = /*@__PURE__*/ S.suspend(() =>
3795
4077
  acceptedPolicies: UpsertInstallationRequestAcceptedPoliciesMap,
3796
4078
  credentials: InstallationCredentials,
3797
4079
  account: InstallationAccount,
3798
- }).pipe(
3799
- T.Http({
3800
- method: "PUT",
3801
- uri: "/v1/installations/{installationId}",
3802
- code: 200,
3803
- }),
3804
- ),
4080
+ }).pipe(T.Http({ method: "PUT", uri: "/v1/installations/{installationId}", code: 200 })),
3805
4081
  ).annotate({
3806
4082
  identifier: "UpsertInstallationRequest",
3807
4083
  }) as any as S.Schema<UpsertInstallationRequest>;
3808
4084
 
3809
4085
  export interface UpsertInstallationResponse {}
3810
- export const UpsertInstallationResponse = /*@__PURE__*/ S.suspend(() =>
3811
- S.Struct({}),
3812
- ).annotate({
4086
+ export const UpsertInstallationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
3813
4087
  identifier: "UpsertInstallationResponse",
3814
4088
  }) as any as S.Schema<UpsertInstallationResponse>;
3815
4089
 
4090
+ export interface VerifyOrganizationSSODomainRequest {
4091
+ /** Unique identifier for a specific organization */
4092
+ organizationID: string;
4093
+ /** Email domain claimed for SSO */
4094
+ domain: string;
4095
+ }
4096
+ export const VerifyOrganizationSSODomainRequest = /*@__PURE__*/ S.suspend(() =>
4097
+ S.Struct({
4098
+ organizationID: S.String.pipe(T.Label()),
4099
+ domain: S.String.pipe(T.Label()),
4100
+ }).pipe(
4101
+ T.Http({
4102
+ method: "POST",
4103
+ uri: "/organizations/{organizationID}/sso/domains/{domain}/verify",
4104
+ code: 200,
4105
+ }),
4106
+ ),
4107
+ ).annotate({
4108
+ identifier: "VerifyOrganizationSSODomainRequest",
4109
+ }) as any as S.Schema<VerifyOrganizationSSODomainRequest>;
4110
+
3816
4111
  export interface WebsocketRequest {}
3817
4112
  export const WebsocketRequest = /*@__PURE__*/ S.suspend(() =>
3818
4113
  S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v2", code: 200 })),
3819
- ).annotate({
3820
- identifier: "WebsocketRequest",
3821
- }) as any as S.Schema<WebsocketRequest>;
4114
+ ).annotate({ identifier: "WebsocketRequest" }) as any as S.Schema<WebsocketRequest>;
3822
4115
 
3823
4116
  export interface WebsocketResponse {}
3824
- export const WebsocketResponse = /*@__PURE__*/ S.suspend(() =>
3825
- S.Struct({}),
3826
- ).annotate({
4117
+ export const WebsocketResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
3827
4118
  identifier: "WebsocketResponse",
3828
4119
  }) as any as S.Schema<WebsocketResponse>;
3829
4120
 
@@ -3857,10 +4148,22 @@ export const branchMetrics2: API.OperationMethod<
3857
4148
  retry: Retry.Retry,
3858
4149
  }));
3859
4150
 
3860
- export type CreateBillingCheckoutSessionError =
3861
- | BadRequest
3862
- | Forbidden
3863
- | XataOpError;
4151
+ export type ClaimOrganizationSSODomainError = BadRequest | Forbidden | Conflict | XataOpError;
4152
+ /** Claim an email domain for SSO Claims an email domain and returns the DNS record that proves control of it. A claim is only a note to ourselves: nothing is registered against the domain until verification succeeds, so claiming a domain neither affects anyone's sign-in nor stops another organization claiming it first. A domain another organization has already registered is refused with 409, before any DNS record is published. */
4153
+ export const claimOrganizationSSODomain: API.OperationMethod<
4154
+ ClaimOrganizationSSODomainRequest,
4155
+ OrganizationSSODomain,
4156
+ ClaimOrganizationSSODomainError,
4157
+ XataOpContext
4158
+ > = /*@__PURE__*/ API.make(() => ({
4159
+ input: ClaimOrganizationSSODomainRequest,
4160
+ output: OrganizationSSODomain,
4161
+ errors: [BadRequest, Forbidden, Conflict, UnknownXataError],
4162
+ protocol: XataProtocol,
4163
+ retry: Retry.Retry,
4164
+ }));
4165
+
4166
+ export type CreateBillingCheckoutSessionError = BadRequest | Forbidden | XataOpError;
3864
4167
  /** Create a billing checkout session Creates a Stripe checkout session used to activate card billing for an organization. */
3865
4168
  export const createBillingCheckoutSession: API.OperationMethod<
3866
4169
  CreateBillingCheckoutSessionRequest,
@@ -3875,10 +4178,7 @@ export const createBillingCheckoutSession: API.OperationMethod<
3875
4178
  retry: Retry.Retry,
3876
4179
  }));
3877
4180
 
3878
- export type CreateBillingPaymentMethodSessionError =
3879
- | BadRequest
3880
- | Forbidden
3881
- | XataOpError;
4181
+ export type CreateBillingPaymentMethodSessionError = BadRequest | Forbidden | XataOpError;
3882
4182
  /** Create a billing payment method session Creates a Stripe setup-mode checkout session used to add or update an organization payment method. */
3883
4183
  export const createBillingPaymentMethodSession: API.OperationMethod<
3884
4184
  CreateBillingPaymentMethodSessionRequest,
@@ -3908,10 +4208,7 @@ export const createBranch: API.OperationMethod<
3908
4208
  retry: Retry.Retry,
3909
4209
  }));
3910
4210
 
3911
- export type CreateGithubAppInstallationError =
3912
- | BadRequest
3913
- | Conflict
3914
- | XataOpError;
4211
+ export type CreateGithubAppInstallationError = BadRequest | Conflict | XataOpError;
3915
4212
  /** Create GitHub App installation Creates a new GitHub App installation mapping for the specified organization. */
3916
4213
  export const createGithubAppInstallation: API.OperationMethod<
3917
4214
  CreateGithubAppInstallationRequest,
@@ -3991,6 +4288,21 @@ export const createOrganizationInvitation: API.OperationMethod<
3991
4288
  retry: Retry.Retry,
3992
4289
  }));
3993
4290
 
4291
+ export type CreateOrganizationSSOProviderError = BadRequest | Forbidden | Conflict | XataOpError;
4292
+ /** Register an identity provider for a verified domain Registers an identity provider for one verified domain. `google` needs only the credentials and pins the login to that Google Workspace domain; `microsoft` pins it to the Entra tenant in the issuer; `oidc` is the fallback for any other provider and discovers its endpoints from the issuer's `/.well-known/openid-configuration`. The domain must already be verified, and registering does not redirect anyone on its own: that is enabled separately. */
4293
+ export const createOrganizationSSOProvider: API.OperationMethod<
4294
+ CreateOrganizationSSOProviderRequest,
4295
+ OrganizationSSOProvider,
4296
+ CreateOrganizationSSOProviderError,
4297
+ XataOpContext
4298
+ > = /*@__PURE__*/ API.make(() => ({
4299
+ input: CreateOrganizationSSOProviderRequest,
4300
+ output: OrganizationSSOProvider,
4301
+ errors: [BadRequest, Forbidden, Conflict, UnknownXataError],
4302
+ protocol: XataProtocol,
4303
+ retry: Retry.Retry,
4304
+ }));
4305
+
3994
4306
  export type CreateProjectError = BadRequest | XataOpError;
3995
4307
  /** Create a new project Creates a new project within the specified organization. Projects are containers for database branches and resources. */
3996
4308
  export const createProject: API.OperationMethod<
@@ -4066,11 +4378,7 @@ export const deleteInstallation: API.OperationMethod<
4066
4378
  retry: Retry.Retry,
4067
4379
  }));
4068
4380
 
4069
- export type DeleteOrganizationError =
4070
- | BadRequest
4071
- | Forbidden
4072
- | NotFound
4073
- | XataOpError;
4381
+ export type DeleteOrganizationError = BadRequest | Forbidden | NotFound | XataOpError;
4074
4382
  /** Delete an organization [Not implemented yet] Permanently delete an organization. This action cannot be undone. */
4075
4383
  export const deleteOrganization: API.OperationMethod<
4076
4384
  DeleteOrganizationRequest,
@@ -4085,10 +4393,7 @@ export const deleteOrganization: API.OperationMethod<
4085
4393
  retry: Retry.Retry,
4086
4394
  }));
4087
4395
 
4088
- export type DeleteOrganizationAPIKeysError =
4089
- | BadRequest
4090
- | NotFound
4091
- | XataOpError;
4396
+ export type DeleteOrganizationAPIKeysError = BadRequest | NotFound | XataOpError;
4092
4397
  /** Bulk delete API Keys for an organization Delete multiple API keys in a single request. */
4093
4398
  export const deleteOrganizationAPIKeys: API.OperationMethod<
4094
4399
  DeleteOrganizationAPIKeysRequest,
@@ -4103,11 +4408,7 @@ export const deleteOrganizationAPIKeys: API.OperationMethod<
4103
4408
  retry: Retry.Retry,
4104
4409
  }));
4105
4410
 
4106
- export type DeleteOrganizationInvitationError =
4107
- | BadRequest
4108
- | Forbidden
4109
- | NotFound
4110
- | XataOpError;
4411
+ export type DeleteOrganizationInvitationError = BadRequest | Forbidden | NotFound | XataOpError;
4111
4412
  /** Delete an invitation Permanently delete an invitation record. */
4112
4413
  export const deleteOrganizationInvitation: API.OperationMethod<
4113
4414
  DeleteOrganizationInvitationRequest,
@@ -4122,6 +4423,36 @@ export const deleteOrganizationInvitation: API.OperationMethod<
4122
4423
  retry: Retry.Retry,
4123
4424
  }));
4124
4425
 
4426
+ export type DeleteOrganizationSSODomainError = Forbidden | Conflict | XataOpError;
4427
+ /** Release a claimed or verified domain Drops a pending claim, or releases a verified domain so members on it sign in however they could before. Refused with a 409 while the organization has a provider for the domain; remove the provider first. Idempotent. */
4428
+ export const deleteOrganizationSSODomain: API.OperationMethod<
4429
+ DeleteOrganizationSSODomainRequest,
4430
+ DeleteOrganizationSSODomainResponse,
4431
+ DeleteOrganizationSSODomainError,
4432
+ XataOpContext
4433
+ > = /*@__PURE__*/ API.make(() => ({
4434
+ input: DeleteOrganizationSSODomainRequest,
4435
+ output: DeleteOrganizationSSODomainResponse,
4436
+ errors: [Forbidden, Conflict, UnknownXataError],
4437
+ protocol: XataProtocol,
4438
+ retry: Retry.Retry,
4439
+ }));
4440
+
4441
+ export type DeleteOrganizationSSOProviderError = Forbidden | XataOpError;
4442
+ /** Remove an identity provider Deletes the provider, so members on its domain fall back to the sign-in methods they had before. The domain stays verified and can be given another provider. Idempotent. */
4443
+ export const deleteOrganizationSSOProvider: API.OperationMethod<
4444
+ DeleteOrganizationSSOProviderRequest,
4445
+ DeleteOrganizationSSOProviderResponse,
4446
+ DeleteOrganizationSSOProviderError,
4447
+ XataOpContext
4448
+ > = /*@__PURE__*/ API.make(() => ({
4449
+ input: DeleteOrganizationSSOProviderRequest,
4450
+ output: DeleteOrganizationSSOProviderResponse,
4451
+ errors: [Forbidden, UnknownXataError],
4452
+ protocol: XataProtocol,
4453
+ retry: Retry.Retry,
4454
+ }));
4455
+
4125
4456
  export type DeleteProjectError = BadRequest | NotFound | XataOpError;
4126
4457
  /** Delete a project Permanently deletes a specific project by its ID and all associated resources including branches and databases. This action cannot be undone. */
4127
4458
  export const deleteProject: API.OperationMethod<
@@ -4137,6 +4468,21 @@ export const deleteProject: API.OperationMethod<
4137
4468
  retry: Retry.Retry,
4138
4469
  }));
4139
4470
 
4471
+ export type DeleteResourceError = Forbidden | NotFound | XataOpError;
4472
+ /** Delete a Vercel Marketplace resource Deprovision a resource (its Xata project and branches) and mark the tracking records deleting. Vercel calls this when a customer removes a resource. Idempotent: a resource already being torn down is deprovisioned again harmlessly; a resource that no longer exists returns 404. */
4473
+ export const deleteResource: API.OperationMethod<
4474
+ DeleteResourceRequest,
4475
+ DeleteResourceResponse,
4476
+ DeleteResourceError,
4477
+ XataOpContext
4478
+ > = /*@__PURE__*/ API.make(() => ({
4479
+ input: DeleteResourceRequest,
4480
+ output: DeleteResourceResponse,
4481
+ errors: [Forbidden, NotFound, UnknownXataError],
4482
+ protocol: XataProtocol,
4483
+ retry: Retry.Retry,
4484
+ }));
4485
+
4140
4486
  export type DeleteUserAPIKeysError = BadRequest | NotFound | XataOpError;
4141
4487
  /** Bulk delete API Keys for the authenticated user Delete multiple API keys in a single request. */
4142
4488
  export const deleteUserAPIKeys: API.OperationMethod<
@@ -4197,11 +4543,7 @@ export const getBillingCustomer: API.OperationMethod<
4197
4543
  retry: Retry.Retry,
4198
4544
  }));
4199
4545
 
4200
- export type GetBillingInvoicesError =
4201
- | BadRequest
4202
- | Forbidden
4203
- | NotFound
4204
- | XataOpError;
4546
+ export type GetBillingInvoicesError = BadRequest | Forbidden | NotFound | XataOpError;
4205
4547
  /** List billing invoices Retrieves billing invoices for the specified organization. */
4206
4548
  export const getBillingInvoices: API.OperationMethod<
4207
4549
  GetBillingInvoicesRequest,
@@ -4261,21 +4603,6 @@ export const getBranchPostgresConfig: API.OperationMethod<
4261
4603
  retry: Retry.Retry,
4262
4604
  }));
4263
4605
 
4264
- export type GetDefaultProjectLimitsError = XataOpError;
4265
- /** Get project resource limits Retrieves the default resource limits for projects in the specified organization, including maximum instances, storage, and allowed regions. */
4266
- export const getDefaultProjectLimits: API.OperationMethod<
4267
- GetDefaultProjectLimitsRequest,
4268
- ProjectLimits,
4269
- GetDefaultProjectLimitsError,
4270
- XataOpContext
4271
- > = /*@__PURE__*/ API.make(() => ({
4272
- input: GetDefaultProjectLimitsRequest,
4273
- output: ProjectLimits,
4274
- errors: [UnknownXataError],
4275
- protocol: XataProtocol,
4276
- retry: Retry.Retry,
4277
- }));
4278
-
4279
4606
  export type GetGithubRepositoryError = BadRequest | XataOpError;
4280
4607
  /** Get GitHub repository for branch Returns the GitHub repository mapping for the specified branch. */
4281
4608
  export const getGithubRepository: API.OperationMethod<
@@ -4291,11 +4618,7 @@ export const getGithubRepository: API.OperationMethod<
4291
4618
  retry: Retry.Retry,
4292
4619
  }));
4293
4620
 
4294
- export type GetOrganizationError =
4295
- | BadRequest
4296
- | Forbidden
4297
- | NotFound
4298
- | XataOpError;
4621
+ export type GetOrganizationError = BadRequest | Forbidden | NotFound | XataOpError;
4299
4622
  /** Get organization details Retrieve detailed information about a specific organization by its ID. */
4300
4623
  export const getOrganization: API.OperationMethod<
4301
4624
  GetOrganizationRequest,
@@ -4310,11 +4633,7 @@ export const getOrganization: API.OperationMethod<
4310
4633
  retry: Retry.Retry,
4311
4634
  }));
4312
4635
 
4313
- export type GetOrganizationInvitationError =
4314
- | BadRequest
4315
- | Forbidden
4316
- | NotFound
4317
- | XataOpError;
4636
+ export type GetOrganizationInvitationError = BadRequest | Forbidden | NotFound | XataOpError;
4318
4637
  /** Get details of a specific invitation Retrieve detailed information about a specific invitation by its ID. */
4319
4638
  export const getOrganizationInvitation: API.OperationMethod<
4320
4639
  GetOrganizationInvitationRequest,
@@ -4374,6 +4693,21 @@ export const getOrganizationsList: API.OperationMethod<
4374
4693
  retry: Retry.Retry,
4375
4694
  }));
4376
4695
 
4696
+ export type GetOrganizationSSOError = Forbidden | XataOpError;
4697
+ /** Get the organization's SSO configuration Lists the organization's identity providers and the email domains claimed for them. An organization signs in through one provider per verified domain, so both are collections. Client secrets are write-only and are never returned. An organization that has not set anything up yet responds 200 with empty lists. */
4698
+ export const getOrganizationSSO: API.OperationMethod<
4699
+ GetOrganizationSSORequest,
4700
+ OrganizationSSO,
4701
+ GetOrganizationSSOError,
4702
+ XataOpContext
4703
+ > = /*@__PURE__*/ API.make(() => ({
4704
+ input: GetOrganizationSSORequest,
4705
+ output: OrganizationSSO,
4706
+ errors: [Forbidden, UnknownXataError],
4707
+ protocol: XataProtocol,
4708
+ retry: Retry.Retry,
4709
+ }));
4710
+
4377
4711
  export type GetProjectError = BadRequest | NotFound | XataOpError;
4378
4712
  /** Get project details Retrieves detailed information about a specific project by its ID within the specified organization. */
4379
4713
  export const getProject: API.OperationMethod<
@@ -4404,6 +4738,21 @@ export const getProjectLimits: API.OperationMethod<
4404
4738
  retry: Retry.Retry,
4405
4739
  }));
4406
4740
 
4741
+ export type GetResourceError = Forbidden | NotFound | XataOpError;
4742
+ /** Get a Vercel Marketplace resource Return a provisioned resource. Scoped to the installation in the signed token; a resource owned by another installation is reported as not found. */
4743
+ export const getResource: API.OperationMethod<
4744
+ GetResourceRequest,
4745
+ Resource,
4746
+ GetResourceError,
4747
+ XataOpContext
4748
+ > = /*@__PURE__*/ API.make(() => ({
4749
+ input: GetResourceRequest,
4750
+ output: Resource,
4751
+ errors: [Forbidden, NotFound, UnknownXataError],
4752
+ protocol: XataProtocol,
4753
+ retry: Retry.Retry,
4754
+ }));
4755
+
4407
4756
  export type GithubWebhookError = BadRequest | XataOpError;
4408
4757
  /** GitHub App webhook Endpoint used by GitHub to deliver App webhook events. This endpoint is authenticated via GitHub's HMAC-SHA256 signature header, not via the normal API authentication. */
4409
4758
  export const githubWebhook: API.OperationMethod<
@@ -4434,6 +4783,21 @@ export const listBackups: API.OperationMethod<
4434
4783
  retry: Retry.Retry,
4435
4784
  }));
4436
4785
 
4786
+ export type ListBillingPlansForProductError = BadRequest | Forbidden | NotFound | XataOpError;
4787
+ /** List billing plans for a product Return the product's available billing plans, rendered into Vercel's billingPlan shape. Vercel calls this to show plans when a customer creates a resource; it may be called before any installation exists, so the signed token can carry no installation or account id. Plans are billing SKUs only and do not change Xata entitlements (every Vercel org is T2). */
4788
+ export const listBillingPlansForProduct: API.OperationMethod<
4789
+ ListBillingPlansForProductRequest,
4790
+ ListBillingPlansResponse,
4791
+ ListBillingPlansForProductError,
4792
+ XataOpContext
4793
+ > = /*@__PURE__*/ API.make(() => ({
4794
+ input: ListBillingPlansForProductRequest,
4795
+ output: ListBillingPlansResponse,
4796
+ errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
4797
+ protocol: XataProtocol,
4798
+ retry: Retry.Retry,
4799
+ }));
4800
+
4437
4801
  export type ListBranchesError = BadRequest | NotFound | XataOpError;
4438
4802
  /** List all branches Retrieves a list of all branches within the specified project, including their metadata, region, and access settings. */
4439
4803
  export const listBranches: API.OperationMethod<
@@ -4509,11 +4873,7 @@ export const listInstanceTypes: API.OperationMethod<
4509
4873
  retry: Retry.Retry,
4510
4874
  }));
4511
4875
 
4512
- export type ListOrganizationAPIKeysError =
4513
- | BadRequest
4514
- | Forbidden
4515
- | NotFound
4516
- | XataOpError;
4876
+ export type ListOrganizationAPIKeysError = BadRequest | Forbidden | NotFound | XataOpError;
4517
4877
  /** List API Keys for an organization Retrieve a list of API keys for a specific organization. */
4518
4878
  export const listOrganizationAPIKeys: API.OperationMethod<
4519
4879
  ListOrganizationAPIKeysRequest,
@@ -4528,11 +4888,7 @@ export const listOrganizationAPIKeys: API.OperationMethod<
4528
4888
  retry: Retry.Retry,
4529
4889
  }));
4530
4890
 
4531
- export type ListOrganizationInvitationsError =
4532
- | BadRequest
4533
- | Forbidden
4534
- | NotFound
4535
- | XataOpError;
4891
+ export type ListOrganizationInvitationsError = BadRequest | Forbidden | NotFound | XataOpError;
4536
4892
  /** List invitations for an organization Retrieve all invitations for an organization with optional filtering by status, email, and name. */
4537
4893
  export const listOrganizationInvitations: API.OperationMethod<
4538
4894
  ListOrganizationInvitationsRequest,
@@ -4562,6 +4918,21 @@ export const listOrganizationMembers: API.OperationMethod<
4562
4918
  retry: Retry.Retry,
4563
4919
  }));
4564
4920
 
4921
+ export type ListOrganizationRolesError = Forbidden | NotFound | XataOpError;
4922
+ /** List the roles assignable in an organization Roles are predefined. Every member of an organization holds exactly one. */
4923
+ export const listOrganizationRoles: API.OperationMethod<
4924
+ ListOrganizationRolesRequest,
4925
+ ListOrganizationRolesResponse,
4926
+ ListOrganizationRolesError,
4927
+ XataOpContext
4928
+ > = /*@__PURE__*/ API.make(() => ({
4929
+ input: ListOrganizationRolesRequest,
4930
+ output: ListOrganizationRolesResponse,
4931
+ errors: [Forbidden, NotFound, UnknownXataError],
4932
+ protocol: XataProtocol,
4933
+ retry: Retry.Retry,
4934
+ }));
4935
+
4565
4936
  export type ListProjectsError = BadRequest | XataOpError;
4566
4937
  /** List all projects Retrieves a list of all projects within the specified organization that the authenticated user has access to. */
4567
4938
  export const listProjects: API.OperationMethod<
@@ -4622,26 +4993,32 @@ export const orbWebhook: API.OperationMethod<
4622
4993
  retry: Retry.Retry,
4623
4994
  }));
4624
4995
 
4625
- export type QueryError =
4626
- | BadRequest
4627
- | Forbidden
4628
- | NotFound
4629
- | Conflict
4630
- | XataOpError;
4631
- /** 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. */
4632
- export const query: API.OperationMethod<
4633
- QueryRequest,
4634
- QueryResponse,
4635
- QueryError,
4996
+ export type ProvisionResourceError = BadRequest | Forbidden | NotFound | Conflict | XataOpError;
4997
+ /** Provision a Vercel Marketplace resource Create a resource (a Xata project and its branches) and return it with the connection secrets. Vercel calls this when a customer creates a resource. Idempotent when an Idempotency-Key header is sent: a retry with the same key returns the existing resource unchanged, and reusing the key with a different body is a conflict (409). Without the header there is no stable key, so each call provisions a new resource. */
4998
+ export const provisionResource: API.OperationMethod<
4999
+ ProvisionResourceRequest,
5000
+ ProvisionedResource,
5001
+ ProvisionResourceError,
4636
5002
  XataOpContext
4637
5003
  > = /*@__PURE__*/ API.make(() => ({
4638
- input: QueryRequest,
4639
- output: QueryResponse,
5004
+ input: ProvisionResourceRequest,
5005
+ output: ProvisionedResource,
4640
5006
  errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownXataError],
4641
5007
  protocol: XataProtocol,
4642
5008
  retry: Retry.Retry,
4643
5009
  }));
4644
5010
 
5011
+ export type QueryError = BadRequest | Forbidden | NotFound | Conflict | XataOpError;
5012
+ /** 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. */
5013
+ export const query: API.OperationMethod<QueryRequest, QueryResponse, QueryError, XataOpContext> =
5014
+ /*@__PURE__*/ API.make(() => ({
5015
+ input: QueryRequest,
5016
+ output: QueryResponse,
5017
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownXataError],
5018
+ protocol: XataProtocol,
5019
+ retry: Retry.Retry,
5020
+ }));
5021
+
4645
5022
  export type RegisterMarketplaceError = BadRequest | Conflict | XataOpError;
4646
5023
  /** Register with a cloud marketplace Links the authenticated user to a cloud marketplace subscription. Only one marketplace registration is allowed per user. */
4647
5024
  export const registerMarketplace: API.OperationMethod<
@@ -4657,7 +5034,7 @@ export const registerMarketplace: API.OperationMethod<
4657
5034
  retry: Retry.Retry,
4658
5035
  }));
4659
5036
 
4660
- export type RemoveOrganizationMemberError = XataOpError;
5037
+ export type RemoveOrganizationMemberError = BadRequest | Conflict | XataOpError;
4661
5038
  /** Remove a member from an organization */
4662
5039
  export const removeOrganizationMember: API.OperationMethod<
4663
5040
  RemoveOrganizationMemberRequest,
@@ -4667,16 +5044,12 @@ export const removeOrganizationMember: API.OperationMethod<
4667
5044
  > = /*@__PURE__*/ API.make(() => ({
4668
5045
  input: RemoveOrganizationMemberRequest,
4669
5046
  output: RemoveOrganizationMemberResponse,
4670
- errors: [UnknownXataError],
5047
+ errors: [BadRequest, Conflict, UnknownXataError],
4671
5048
  protocol: XataProtocol,
4672
5049
  retry: Retry.Retry,
4673
5050
  }));
4674
5051
 
4675
- export type RequestOrganizationDeletionError =
4676
- | BadRequest
4677
- | Forbidden
4678
- | Conflict
4679
- | XataOpError;
5052
+ export type RequestOrganizationDeletionError = BadRequest | Forbidden | Conflict | XataOpError;
4680
5053
  /** Request organization deletion Flags the organization for deletion. The request is rejected if the organization still has active projects. The subscription is cancelled immediately and any outstanding invoices are collected automatically after a grace period that prevents missing delayed usage reports. Deletion completes asynchronously once all invoices are issued and settled. */
4681
5054
  export const requestOrganizationDeletion: API.OperationMethod<
4682
5055
  RequestOrganizationDeletionRequest,
@@ -4691,11 +5064,7 @@ export const requestOrganizationDeletion: API.OperationMethod<
4691
5064
  retry: Retry.Retry,
4692
5065
  }));
4693
5066
 
4694
- export type ResendOrganizationInvitationError =
4695
- | BadRequest
4696
- | Forbidden
4697
- | NotFound
4698
- | XataOpError;
5067
+ export type ResendOrganizationInvitationError = BadRequest | Forbidden | NotFound | XataOpError;
4699
5068
  /** Resend an invitation Resend a pending invitation with a fresh expiration time. */
4700
5069
  export const resendOrganizationInvitation: API.OperationMethod<
4701
5070
  ResendOrganizationInvitationRequest,
@@ -4755,6 +5124,45 @@ export const sendMcpRequest: API.OperationMethod<
4755
5124
  retry: Retry.Retry,
4756
5125
  }));
4757
5126
 
5127
+ export type SetOrganizationMemberRoleError =
5128
+ | BadRequest
5129
+ | Forbidden
5130
+ | NotFound
5131
+ | Conflict
5132
+ | XataOpError;
5133
+ /** Set the role of an organization member Replaces the member's current role. An organization always retains at least one Admin. */
5134
+ export const setOrganizationMemberRole: API.OperationMethod<
5135
+ SetOrganizationMemberRoleRequest,
5136
+ SetOrganizationMemberRoleResponse,
5137
+ SetOrganizationMemberRoleError,
5138
+ XataOpContext
5139
+ > = /*@__PURE__*/ API.make(() => ({
5140
+ input: SetOrganizationMemberRoleRequest,
5141
+ output: SetOrganizationMemberRoleResponse,
5142
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownXataError],
5143
+ protocol: XataProtocol,
5144
+ retry: Retry.Retry,
5145
+ }));
5146
+
5147
+ export type SetOrganizationSSOProviderEnforcementError =
5148
+ | Forbidden
5149
+ | NotFound
5150
+ | Conflict
5151
+ | XataOpError;
5152
+ /** Require members on this provider's domain to sign in through it Enabling sends every address on the provider's domain to it, leaving those members no other way in. Refused with a 409 until the domain is verified. Disabling needs nothing, so the way out is always open. */
5153
+ export const setOrganizationSSOProviderEnforcement: API.OperationMethod<
5154
+ SetOrganizationSSOProviderEnforcementRequest,
5155
+ OrganizationSSOProvider,
5156
+ SetOrganizationSSOProviderEnforcementError,
5157
+ XataOpContext
5158
+ > = /*@__PURE__*/ API.make(() => ({
5159
+ input: SetOrganizationSSOProviderEnforcementRequest,
5160
+ output: OrganizationSSOProvider,
5161
+ errors: [Forbidden, NotFound, Conflict, UnknownXataError],
5162
+ protocol: XataProtocol,
5163
+ retry: Retry.Retry,
5164
+ }));
5165
+
4758
5166
  export type StripeWebhookError = BadRequest | XataOpError;
4759
5167
  /** Stripe webhook Endpoint used by Stripe to deliver webhook events. This endpoint is authenticated via Stripe's signature headers, not via the normal API authentication. */
4760
5168
  export const stripeWebhook: API.OperationMethod<
@@ -4770,11 +5178,7 @@ export const stripeWebhook: API.OperationMethod<
4770
5178
  retry: Retry.Retry,
4771
5179
  }));
4772
5180
 
4773
- export type UpdateBillingCustomerError =
4774
- | BadRequest
4775
- | Forbidden
4776
- | NotFound
4777
- | XataOpError;
5181
+ export type UpdateBillingCustomerError = BadRequest | Forbidden | NotFound | XataOpError;
4778
5182
  /** Update billing customer details Updates billing customer details for the specified organization. */
4779
5183
  export const updateBillingCustomer: API.OperationMethod<
4780
5184
  UpdateBillingCustomerRequest,
@@ -4804,11 +5208,7 @@ export const updateBranch: API.OperationMethod<
4804
5208
  retry: Retry.Retry,
4805
5209
  }));
4806
5210
 
4807
- export type UpdateGithubAppInstallationError =
4808
- | BadRequest
4809
- | NotFound
4810
- | Conflict
4811
- | XataOpError;
5211
+ export type UpdateGithubAppInstallationError = BadRequest | NotFound | Conflict | XataOpError;
4812
5212
  /** Update GitHub App installation Updates an existing GitHub App installation mapping. */
4813
5213
  export const updateGithubAppInstallation: API.OperationMethod<
4814
5214
  UpdateGithubAppInstallationRequest,
@@ -4838,11 +5238,7 @@ export const updateGithubRepository: API.OperationMethod<
4838
5238
  retry: Retry.Retry,
4839
5239
  }));
4840
5240
 
4841
- export type UpdateOrganizationError =
4842
- | BadRequest
4843
- | Forbidden
4844
- | NotFound
4845
- | XataOpError;
5241
+ export type UpdateOrganizationError = BadRequest | Forbidden | NotFound | XataOpError;
4846
5242
  /** Update organization details Update information for an existing organization, such as its name. */
4847
5243
  export const updateOrganization: API.OperationMethod<
4848
5244
  UpdateOrganizationRequest,
@@ -4857,6 +5253,26 @@ export const updateOrganization: API.OperationMethod<
4857
5253
  retry: Retry.Retry,
4858
5254
  }));
4859
5255
 
5256
+ export type UpdateOrganizationSSOProviderError =
5257
+ | BadRequest
5258
+ | Forbidden
5259
+ | NotFound
5260
+ | Conflict
5261
+ | XataOpError;
5262
+ /** Update an identity provider's credentials Replaces the provider's credentials, and for `oidc` re-discovers its endpoints from the issuer. The domain it serves and whether it is enforced are carried across unchanged, so rotating a client secret does not quietly turn enforcement off. A provider whose domain stopped being verified is refused until the domain verifies again. */
5263
+ export const updateOrganizationSSOProvider: API.OperationMethod<
5264
+ UpdateOrganizationSSOProviderRequest,
5265
+ OrganizationSSOProvider,
5266
+ UpdateOrganizationSSOProviderError,
5267
+ XataOpContext
5268
+ > = /*@__PURE__*/ API.make(() => ({
5269
+ input: UpdateOrganizationSSOProviderRequest,
5270
+ output: OrganizationSSOProvider,
5271
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownXataError],
5272
+ protocol: XataProtocol,
5273
+ retry: Retry.Retry,
5274
+ }));
5275
+
4860
5276
  export type UpdateProjectError = BadRequest | NotFound | XataOpError;
4861
5277
  /** Update project details Updates the details of a specific project by its ID, such as changing its name. */
4862
5278
  export const updateProject: API.OperationMethod<
@@ -4872,11 +5288,7 @@ export const updateProject: API.OperationMethod<
4872
5288
  retry: Retry.Retry,
4873
5289
  }));
4874
5290
 
4875
- export type UpsertInstallationError =
4876
- | BadRequest
4877
- | Forbidden
4878
- | Conflict
4879
- | XataOpError;
5291
+ export type UpsertInstallationError = BadRequest | Forbidden | Conflict | XataOpError;
4880
5292
  /** Upsert a Vercel Marketplace installation Create or update an installation. Vercel sends this when a customer installs (or re-sends it idempotently). The acting account is taken from the signed token claims, not this body. There is one installation per Vercel team, and an installation can own many Xata organizations. */
4881
5293
  export const upsertInstallation: API.OperationMethod<
4882
5294
  UpsertInstallationRequest,
@@ -4891,6 +5303,21 @@ export const upsertInstallation: API.OperationMethod<
4891
5303
  retry: Retry.Retry,
4892
5304
  }));
4893
5305
 
5306
+ export type VerifyOrganizationSSODomainError = Forbidden | NotFound | Conflict | XataOpError;
5307
+ /** Check the DNS record for a claimed domain Looks up the challenge TXT record. Verification is a poll, not a command: a missing or stale record is reported as `verified: false` on a 200 rather than as an error, so a client can retry while DNS propagates. Verifying a domain that lost its verification restores its provider, with enforcement off. */
5308
+ export const verifyOrganizationSSODomain: API.OperationMethod<
5309
+ VerifyOrganizationSSODomainRequest,
5310
+ OrganizationSSODomain,
5311
+ VerifyOrganizationSSODomainError,
5312
+ XataOpContext
5313
+ > = /*@__PURE__*/ API.make(() => ({
5314
+ input: VerifyOrganizationSSODomainRequest,
5315
+ output: OrganizationSSODomain,
5316
+ errors: [Forbidden, NotFound, Conflict, UnknownXataError],
5317
+ protocol: XataProtocol,
5318
+ retry: Retry.Retry,
5319
+ }));
5320
+
4894
5321
  export type WebsocketError = BadRequest | XataOpError;
4895
5322
  /** WebSocket wire protocol proxy Upgrade to a WebSocket connection that proxies the PostgreSQL wire protocol. The client sends and receives PostgreSQL protocol messages over binary WebSocket frames. **Authentication:** the same branch connection string credential as the HTTP SQL endpoint is used, but it is supplied via the PostgreSQL startup message inside the wire protocol rather than an HTTP header. The control-plane API key (Bearer token) is not accepted. */
4896
5323
  export const websocket: API.OperationMethod<