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

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,12 +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.js";
7
- import { XataProtocol, } from "../protocol.js";
8
6
  import { UnknownXataError } from "../errors.js";
7
+ import { XataProtocol } from "../protocol.js";
9
8
  import * as Retry from "../retry.js";
9
+ import * as T from "../traits.js";
10
10
  export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
11
11
  /*@__PURE__*/ S.TaggedError()("BadRequest", {
12
12
  code: S.Number,
@@ -54,9 +54,7 @@ export const BranchLogsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
54
54
  method: "POST",
55
55
  uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}/logs",
56
56
  code: 200,
57
- }))).annotate({
58
- identifier: "BranchLogsRequest",
59
- });
57
+ }))).annotate({ identifier: "BranchLogsRequest" });
60
58
  export const LogLevel = S.String;
61
59
  export const LogEntry = /*@__PURE__*/ S.suspend(() => S.Struct({
62
60
  timestamp: S.String,
@@ -90,16 +88,12 @@ export const BranchMetricsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
90
88
  method: "POST",
91
89
  uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}/metrics",
92
90
  code: 200,
93
- }))).annotate({
94
- identifier: "BranchMetricsRequest",
95
- });
91
+ }))).annotate({ identifier: "BranchMetricsRequest" });
96
92
  export const MetricSeriesAggregation = S.String;
97
93
  export const MetricSeriesValuesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
98
94
  timestamp: S.String,
99
95
  value: S.Number,
100
- })).annotate({
101
- identifier: "MetricSeriesValuesItem",
102
- });
96
+ })).annotate({ identifier: "MetricSeriesValuesItem" });
103
97
  export const MetricSeriesValuesList = /*@__PURE__*/ S.Array(MetricSeriesValuesItem);
104
98
  export const MetricSeries = /*@__PURE__*/ S.suspend(() => S.Struct({
105
99
  instanceID: S.String,
@@ -111,15 +105,34 @@ export const BranchMetricResult = /*@__PURE__*/ S.suspend(() => S.Struct({
111
105
  metric: S.String,
112
106
  unit: S.String,
113
107
  series: BranchMetricResultSeriesList,
114
- })).annotate({
115
- identifier: "BranchMetricResult",
116
- });
108
+ })).annotate({ identifier: "BranchMetricResult" });
117
109
  export const BranchMetricsResultsList = /*@__PURE__*/ S.Array(BranchMetricResult);
118
110
  export const BranchMetrics = /*@__PURE__*/ S.suspend(() => S.Struct({
119
111
  start: S.String,
120
112
  end: S.String,
121
113
  results: BranchMetricsResultsList,
122
114
  })).annotate({ identifier: "BranchMetrics" });
115
+ export const ClaimOrganizationSSODomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
116
+ organizationID: S.String.pipe(T.Label()),
117
+ domain: S.String,
118
+ }).pipe(T.Http({ method: "POST", uri: "/organizations/{organizationID}/sso/domains", code: 200 }))).annotate({
119
+ identifier: "ClaimOrganizationSSODomainRequest",
120
+ });
121
+ export const OrganizationSSODomainVerification = /*@__PURE__*/ S.suspend(() => S.Struct({
122
+ record_name: S.String,
123
+ record_type: S.String,
124
+ record_value: S.String,
125
+ })).annotate({
126
+ identifier: "OrganizationSSODomainVerification",
127
+ });
128
+ export const OrganizationSSODomain = /*@__PURE__*/ S.suspend(() => S.Struct({
129
+ domain: S.String,
130
+ provider_alias: S.String,
131
+ verified: S.Boolean,
132
+ verification: S.optional(S.NullOr(OrganizationSSODomainVerification)),
133
+ missing_since: S.optional(S.NullOr(S.String)),
134
+ revokes_at: S.optional(S.NullOr(S.String)),
135
+ })).annotate({ identifier: "OrganizationSSODomain" });
123
136
  export const CreateBillingCheckoutSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
124
137
  organizationID: S.String.pipe(T.Label()),
125
138
  }).pipe(T.Http({
@@ -151,15 +164,11 @@ export const BillingPaymentMethodSessionResponse = /*@__PURE__*/ S.suspend(() =>
151
164
  export const ScaleToZeroConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({
152
165
  enabled: S.Boolean,
153
166
  inactivityPeriodMinutes: S.Number,
154
- })).annotate({
155
- identifier: "ScaleToZeroConfiguration",
156
- });
167
+ })).annotate({ identifier: "ScaleToZeroConfiguration" });
157
168
  export const BackupConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({
158
169
  retentionPeriod: S.optional(S.Number),
159
170
  backupTime: S.optional(S.String),
160
- })).annotate({
161
- identifier: "BackupConfiguration",
162
- });
171
+ })).annotate({ identifier: "BackupConfiguration" });
163
172
  export const CreateBranchRequestMode = S.String;
164
173
  export const CreateBranchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
165
174
  organizationID: S.String.pipe(T.Label()),
@@ -173,9 +182,7 @@ export const CreateBranchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
173
182
  method: "POST",
174
183
  uri: "/organizations/{organizationID}/projects/{projectID}/branches",
175
184
  code: 200,
176
- }))).annotate({
177
- identifier: "CreateBranchRequest",
178
- });
185
+ }))).annotate({ identifier: "CreateBranchRequest" });
179
186
  export const BranchShortMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
180
187
  id: S.String,
181
188
  name: S.String,
@@ -186,9 +193,7 @@ export const BranchShortMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
186
193
  connectionString: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
187
194
  region: S.String,
188
195
  publicAccess: S.Boolean,
189
- })).annotate({
190
- identifier: "BranchShortMetadata",
191
- });
196
+ })).annotate({ identifier: "BranchShortMetadata" });
192
197
  export const CreateGithubAppInstallationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
193
198
  organizationID: S.String.pipe(T.Label()),
194
199
  installationId: S.Number,
@@ -205,9 +210,7 @@ export const GithubInstallation = /*@__PURE__*/ S.suspend(() => S.Struct({
205
210
  organization: S.String,
206
211
  createdAt: S.String,
207
212
  updatedAt: S.String,
208
- })).annotate({
209
- identifier: "GithubInstallation",
210
- });
213
+ })).annotate({ identifier: "GithubInstallation" });
211
214
  export const CreateGithubRepositoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
212
215
  organizationID: S.String.pipe(T.Label()),
213
216
  projectID: S.String.pipe(T.Label()),
@@ -227,9 +230,7 @@ export const GithubRepository = /*@__PURE__*/ S.suspend(() => S.Struct({
227
230
  rootBranchId: S.String,
228
231
  createdAt: S.String,
229
232
  updatedAt: S.String,
230
- })).annotate({
231
- identifier: "GithubRepository",
232
- });
233
+ })).annotate({ identifier: "GithubRepository" });
233
234
  export const CreateOrganizationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
234
235
  name: S.String,
235
236
  }).pipe(T.Http({ method: "POST", uri: "/organizations", code: 200 }))).annotate({
@@ -247,9 +248,7 @@ export const OrganizationStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
247
248
  usage_tier: OrganizationStatusUsageTier,
248
249
  last_updated: S.String,
249
250
  created_at: S.optional(S.String),
250
- })).annotate({
251
- identifier: "OrganizationStatus",
252
- });
251
+ })).annotate({ identifier: "OrganizationStatus" });
253
252
  export const OrganizationMarketplaceProvider = S.String;
254
253
  export const Organization = /*@__PURE__*/ S.suspend(() => S.Struct({
255
254
  id: S.String,
@@ -258,10 +257,8 @@ export const Organization = /*@__PURE__*/ S.suspend(() => S.Struct({
258
257
  marketplace: S.optional(S.NullOr(OrganizationMarketplaceProvider)),
259
258
  })).annotate({ identifier: "Organization" });
260
259
  export const CreateOrganizationAPIKeyRequestScopesList = /*@__PURE__*/ S.Array(S.String);
261
- export const CreateOrganizationAPIKeyRequestProjectsList =
262
- /*@__PURE__*/ S.Array(S.String);
263
- export const CreateOrganizationAPIKeyRequestBranchesList =
264
- /*@__PURE__*/ S.Array(S.String);
260
+ export const CreateOrganizationAPIKeyRequestProjectsList = /*@__PURE__*/ S.Array(S.String);
261
+ export const CreateOrganizationAPIKeyRequestBranchesList = /*@__PURE__*/ S.Array(S.String);
265
262
  export const CreateOrganizationAPIKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
266
263
  organizationID: S.String.pipe(T.Label()),
267
264
  name: S.String,
@@ -269,11 +266,7 @@ export const CreateOrganizationAPIKeyRequest = /*@__PURE__*/ S.suspend(() => S.S
269
266
  scopes: S.optional(CreateOrganizationAPIKeyRequestScopesList),
270
267
  projects: S.optional(CreateOrganizationAPIKeyRequestProjectsList),
271
268
  branches: S.optional(CreateOrganizationAPIKeyRequestBranchesList),
272
- }).pipe(T.Http({
273
- method: "POST",
274
- uri: "/organizations/{organizationID}/api-keys",
275
- code: 200,
276
- }))).annotate({
269
+ }).pipe(T.Http({ method: "POST", uri: "/organizations/{organizationID}/api-keys", code: 200 }))).annotate({
277
270
  identifier: "CreateOrganizationAPIKeyRequest",
278
271
  });
279
272
  export const FullAPIKeyScopesList = /*@__PURE__*/ S.Array(S.String);
@@ -298,19 +291,37 @@ export const CreateOrganizationAPIKeyResponse = /*@__PURE__*/ S.suspend(() => S.
298
291
  })).annotate({
299
292
  identifier: "CreateOrganizationAPIKeyResponse",
300
293
  });
294
+ export const OrganizationRoleName = S.String;
301
295
  export const CreateOrganizationInvitationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
302
296
  organizationID: S.String.pipe(T.Label()),
303
297
  email: S.String,
304
- }).pipe(T.Http({
305
- method: "POST",
306
- uri: "/organizations/{organizationID}/invitations",
307
- code: 200,
308
- }))).annotate({
298
+ role: S.optional(OrganizationRoleName),
299
+ }).pipe(T.Http({ method: "POST", uri: "/organizations/{organizationID}/invitations", code: 200 }))).annotate({
309
300
  identifier: "CreateOrganizationInvitationRequest",
310
301
  });
311
302
  export const CreateOrganizationInvitationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
312
303
  identifier: "CreateOrganizationInvitationResponse",
313
304
  });
305
+ export const OrganizationSSOProviderType = S.String;
306
+ export const CreateOrganizationSSOProviderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
307
+ organizationID: S.String.pipe(T.Label()),
308
+ type: OrganizationSSOProviderType,
309
+ domain: S.String,
310
+ issuer: S.optional(S.String),
311
+ client_id: S.String,
312
+ client_secret: S.String.pipe(T.SensitiveValue({})),
313
+ }).pipe(T.Http({ method: "POST", uri: "/organizations/{organizationID}/sso/providers", code: 200 }))).annotate({
314
+ identifier: "CreateOrganizationSSOProviderRequest",
315
+ });
316
+ export const OrganizationSSOProvider = /*@__PURE__*/ S.suspend(() => S.Struct({
317
+ alias: S.String,
318
+ type: OrganizationSSOProviderType,
319
+ display_name: S.String,
320
+ domain: S.String,
321
+ enforced: S.Boolean,
322
+ issuer: S.optional(S.String),
323
+ client_id: S.String,
324
+ })).annotate({ identifier: "OrganizationSSOProvider" });
314
325
  export const ProjectScaleToZeroConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({
315
326
  baseBranches: ScaleToZeroConfiguration,
316
327
  childBranches: ScaleToZeroConfiguration,
@@ -325,26 +336,16 @@ export const IPFilteringConfigurationCidrList = /*@__PURE__*/ S.Array(CidrEntry)
325
336
  export const IPFilteringConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({
326
337
  enabled: S.Boolean,
327
338
  cidr: IPFilteringConfigurationCidrList,
328
- })).annotate({
329
- identifier: "IPFilteringConfiguration",
330
- });
339
+ })).annotate({ identifier: "IPFilteringConfiguration" });
331
340
  export const ProjectConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({
332
341
  scaleToZero: ProjectScaleToZeroConfiguration,
333
342
  ipFiltering: S.optional(IPFilteringConfiguration),
334
- })).annotate({
335
- identifier: "ProjectConfiguration",
336
- });
343
+ })).annotate({ identifier: "ProjectConfiguration" });
337
344
  export const CreateProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
338
345
  organizationID: S.String.pipe(T.Label()),
339
346
  name: S.String,
340
347
  configuration: S.optional(ProjectConfiguration),
341
- }).pipe(T.Http({
342
- method: "POST",
343
- uri: "/organizations/{organizationID}/projects",
344
- code: 200,
345
- }))).annotate({
346
- identifier: "CreateProjectRequest",
347
- });
348
+ }).pipe(T.Http({ method: "POST", uri: "/organizations/{organizationID}/projects", code: 200 }))).annotate({ identifier: "CreateProjectRequest" });
348
349
  export const Project = /*@__PURE__*/ S.suspend(() => S.Struct({
349
350
  id: S.String,
350
351
  name: S.String,
@@ -361,14 +362,10 @@ export const CreateUserAPIKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
361
362
  scopes: S.optional(CreateUserAPIKeyRequestScopesList),
362
363
  projects: S.optional(CreateUserAPIKeyRequestProjectsList),
363
364
  branches: S.optional(CreateUserAPIKeyRequestBranchesList),
364
- }).pipe(T.Http({ method: "POST", uri: "/api-keys", code: 200 }))).annotate({
365
- identifier: "CreateUserAPIKeyRequest",
366
- });
365
+ }).pipe(T.Http({ method: "POST", uri: "/api-keys", code: 200 }))).annotate({ identifier: "CreateUserAPIKeyRequest" });
367
366
  export const CreateUserAPIKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
368
367
  key: FullAPIKey,
369
- })).annotate({
370
- identifier: "CreateUserAPIKeyResponse",
371
- });
368
+ })).annotate({ identifier: "CreateUserAPIKeyResponse" });
372
369
  export const DeleteBranchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
373
370
  organizationID: S.String.pipe(T.Label()),
374
371
  projectID: S.String.pipe(T.Label()),
@@ -377,9 +374,7 @@ export const DeleteBranchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
377
374
  method: "DELETE",
378
375
  uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}",
379
376
  code: 200,
380
- }))).annotate({
381
- identifier: "DeleteBranchRequest",
382
- });
377
+ }))).annotate({ identifier: "DeleteBranchRequest" });
383
378
  export const DeleteBranchResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
384
379
  identifier: "DeleteBranchResponse",
385
380
  });
@@ -401,11 +396,7 @@ export const DeleteInstallationRequest = /*@__PURE__*/ S.suspend(() => S.Struct(
401
396
  installationId: S.String.pipe(T.Label()),
402
397
  cascadeResourceDeletion: S.optional(S.Boolean),
403
398
  reason: S.optional(S.String),
404
- }).pipe(T.Http({
405
- method: "DELETE",
406
- uri: "/v1/installations/{installationId}",
407
- code: 200,
408
- }))).annotate({
399
+ }).pipe(T.Http({ method: "DELETE", uri: "/v1/installations/{installationId}", code: 200 }))).annotate({
409
400
  identifier: "DeleteInstallationRequest",
410
401
  });
411
402
  export const DeleteInstallationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
@@ -413,11 +404,7 @@ export const DeleteInstallationResponse = /*@__PURE__*/ S.suspend(() => S.Struct
413
404
  });
414
405
  export const DeleteOrganizationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
415
406
  organizationID: S.String.pipe(T.Label()),
416
- }).pipe(T.Http({
417
- method: "DELETE",
418
- uri: "/organizations/{organizationID}",
419
- code: 200,
420
- }))).annotate({
407
+ }).pipe(T.Http({ method: "DELETE", uri: "/organizations/{organizationID}", code: 200 }))).annotate({
421
408
  identifier: "DeleteOrganizationRequest",
422
409
  });
423
410
  export const DeleteOrganizationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
@@ -427,11 +414,7 @@ export const DeleteOrganizationAPIKeysRequestIdsList = /*@__PURE__*/ S.Array(S.S
427
414
  export const DeleteOrganizationAPIKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
428
415
  organizationID: S.String.pipe(T.Label()),
429
416
  ids: DeleteOrganizationAPIKeysRequestIdsList,
430
- }).pipe(T.Http({
431
- method: "DELETE",
432
- uri: "/organizations/{organizationID}/api-keys",
433
- code: 200,
434
- }))).annotate({
417
+ }).pipe(T.Http({ method: "DELETE", uri: "/organizations/{organizationID}/api-keys", code: 200 }))).annotate({
435
418
  identifier: "DeleteOrganizationAPIKeysRequest",
436
419
  });
437
420
  export const DeleteOrganizationAPIKeysResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
@@ -450,6 +433,32 @@ export const DeleteOrganizationInvitationRequest = /*@__PURE__*/ S.suspend(() =>
450
433
  export const DeleteOrganizationInvitationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
451
434
  identifier: "DeleteOrganizationInvitationResponse",
452
435
  });
436
+ export const DeleteOrganizationSSODomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
437
+ organizationID: S.String.pipe(T.Label()),
438
+ domain: S.String.pipe(T.Label()),
439
+ }).pipe(T.Http({
440
+ method: "DELETE",
441
+ uri: "/organizations/{organizationID}/sso/domains/{domain}",
442
+ code: 200,
443
+ }))).annotate({
444
+ identifier: "DeleteOrganizationSSODomainRequest",
445
+ });
446
+ export const DeleteOrganizationSSODomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
447
+ identifier: "DeleteOrganizationSSODomainResponse",
448
+ });
449
+ export const DeleteOrganizationSSOProviderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
450
+ organizationID: S.String.pipe(T.Label()),
451
+ providerAlias: S.String.pipe(T.Label()),
452
+ }).pipe(T.Http({
453
+ method: "DELETE",
454
+ uri: "/organizations/{organizationID}/sso/providers/{providerAlias}",
455
+ code: 200,
456
+ }))).annotate({
457
+ identifier: "DeleteOrganizationSSOProviderRequest",
458
+ });
459
+ export const DeleteOrganizationSSOProviderResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
460
+ identifier: "DeleteOrganizationSSOProviderResponse",
461
+ });
453
462
  export const DeleteProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
454
463
  organizationID: S.String.pipe(T.Label()),
455
464
  projectID: S.String.pipe(T.Label()),
@@ -457,18 +466,25 @@ export const DeleteProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
457
466
  method: "DELETE",
458
467
  uri: "/organizations/{organizationID}/projects/{projectID}",
459
468
  code: 200,
460
- }))).annotate({
461
- identifier: "DeleteProjectRequest",
462
- });
469
+ }))).annotate({ identifier: "DeleteProjectRequest" });
463
470
  export const DeleteProjectResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
464
471
  identifier: "DeleteProjectResponse",
465
472
  });
473
+ export const DeleteResourceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
474
+ installationId: S.String.pipe(T.Label()),
475
+ resourceId: S.String.pipe(T.Label()),
476
+ }).pipe(T.Http({
477
+ method: "DELETE",
478
+ uri: "/v1/installations/{installationId}/resources/{resourceId}",
479
+ code: 200,
480
+ }))).annotate({ identifier: "DeleteResourceRequest" });
481
+ export const DeleteResourceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
482
+ identifier: "DeleteResourceResponse",
483
+ });
466
484
  export const DeleteUserAPIKeysRequestIdsList = /*@__PURE__*/ S.Array(S.String);
467
485
  export const DeleteUserAPIKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
468
486
  ids: DeleteUserAPIKeysRequestIdsList,
469
- }).pipe(T.Http({ method: "DELETE", uri: "/api-keys", code: 200 }))).annotate({
470
- identifier: "DeleteUserAPIKeysRequest",
471
- });
487
+ }).pipe(T.Http({ method: "DELETE", uri: "/api-keys", code: 200 }))).annotate({ identifier: "DeleteUserAPIKeysRequest" });
472
488
  export const DeleteUserAPIKeysResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
473
489
  identifier: "DeleteUserAPIKeysResponse",
474
490
  });
@@ -480,18 +496,14 @@ export const DescribeBranchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
480
496
  method: "GET",
481
497
  uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}",
482
498
  code: 200,
483
- }))).annotate({
484
- identifier: "DescribeBranchRequest",
485
- });
499
+ }))).annotate({ identifier: "DescribeBranchRequest" });
486
500
  export const BranchStatusStatusType = S.String;
487
501
  export const ClusterLifecycleState = S.String;
488
502
  export const ClusterLifecycle = /*@__PURE__*/ S.suspend(() => S.Struct({
489
503
  state: ClusterLifecycleState,
490
504
  reason: S.optional(S.String),
491
505
  phase: S.String,
492
- })).annotate({
493
- identifier: "ClusterLifecycle",
494
- });
506
+ })).annotate({ identifier: "ClusterLifecycle" });
495
507
  export const InstanceStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
496
508
  id: S.String,
497
509
  status: S.String,
@@ -508,8 +520,7 @@ export const BranchStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
508
520
  instanceReadyCount: S.Number,
509
521
  instances: BranchStatusInstancesList,
510
522
  })).annotate({ identifier: "BranchStatus" });
511
- export const ClusterConfigurationPostgresConfigurationParametersMap =
512
- /*@__PURE__*/ S.Record(S.String, S.String);
523
+ export const ClusterConfigurationPostgresConfigurationParametersMap = /*@__PURE__*/ S.Record(S.String, S.String);
513
524
  export const ClusterConfigurationPreloadLibrariesList = /*@__PURE__*/ S.Array(S.String);
514
525
  export const ClusterConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({
515
526
  region: S.String,
@@ -519,9 +530,7 @@ export const ClusterConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({
519
530
  replicas: S.Number,
520
531
  postgresConfigurationParameters: S.optional(ClusterConfigurationPostgresConfigurationParametersMap),
521
532
  preloadLibraries: S.optional(ClusterConfigurationPreloadLibrariesList),
522
- })).annotate({
523
- identifier: "ClusterConfiguration",
524
- });
533
+ })).annotate({ identifier: "ClusterConfiguration" });
525
534
  export const BranchMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
526
535
  id: S.String,
527
536
  name: S.String,
@@ -546,9 +555,7 @@ export const GetBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
546
555
  method: "GET",
547
556
  uri: "/organizations/{organizationID}/projects/{projectID}/backups/{backupID}",
548
557
  code: 200,
549
- }))).annotate({
550
- identifier: "GetBackupRequest",
551
- });
558
+ }))).annotate({ identifier: "GetBackupRequest" });
552
559
  export const BackupMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
553
560
  id: S.String,
554
561
  branchID: S.String,
@@ -558,11 +565,7 @@ export const BackupMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
558
565
  })).annotate({ identifier: "BackupMetadata" });
559
566
  export const GetBillingCustomerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
560
567
  organizationID: S.String.pipe(T.Label()),
561
- }).pipe(T.Http({
562
- method: "GET",
563
- uri: "/organizations/{organizationID}/billing/customer",
564
- code: 200,
565
- }))).annotate({
568
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/billing/customer", code: 200 }))).annotate({
566
569
  identifier: "GetBillingCustomerRequest",
567
570
  });
568
571
  export const BillingCollectionMethod = S.String;
@@ -571,14 +574,10 @@ export const BillingPaymentMethodCard = /*@__PURE__*/ S.suspend(() => S.Struct({
571
574
  last4: S.String,
572
575
  expiry_month: S.Number,
573
576
  expiry_year: S.Number,
574
- })).annotate({
575
- identifier: "BillingPaymentMethodCard",
576
- });
577
+ })).annotate({ identifier: "BillingPaymentMethodCard" });
577
578
  export const BillingPaymentMethod = /*@__PURE__*/ S.suspend(() => S.Struct({
578
579
  card: BillingPaymentMethodCard,
579
- })).annotate({
580
- identifier: "BillingPaymentMethod",
581
- });
580
+ })).annotate({ identifier: "BillingPaymentMethod" });
582
581
  export const BillingCreditStatus = S.String;
583
582
  export const BillingCredit = /*@__PURE__*/ S.suspend(() => S.Struct({
584
583
  id: S.String,
@@ -599,9 +598,7 @@ export const BillingCreditDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
599
598
  total_active_credits: S.Number,
600
599
  days_until_last_active_credit_expiry: S.NullOr(S.Number),
601
600
  days_until_last_expiry_with_balance: S.NullOr(S.Number),
602
- })).annotate({
603
- identifier: "BillingCreditDetails",
604
- });
601
+ })).annotate({ identifier: "BillingCreditDetails" });
605
602
  export const BillingCustomerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
606
603
  billing_email: S.String,
607
604
  marketplace: S.NullOr(OrganizationMarketplaceProvider),
@@ -611,18 +608,12 @@ export const BillingCustomerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
611
608
  default_payment_method: S.NullOr(BillingPaymentMethod),
612
609
  credits: BillingCustomerResponseCreditsList,
613
610
  credit_details: BillingCreditDetails,
614
- })).annotate({
615
- identifier: "BillingCustomerResponse",
616
- });
611
+ })).annotate({ identifier: "BillingCustomerResponse" });
617
612
  export const GetBillingInvoicesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
618
613
  organizationID: S.String.pipe(T.Label()),
619
614
  cursor: S.optional(S.String.pipe(T.Query())),
620
615
  limit: S.optional(S.Number.pipe(T.Query())),
621
- }).pipe(T.Http({
622
- method: "GET",
623
- uri: "/organizations/{organizationID}/billing/invoices",
624
- code: 200,
625
- }))).annotate({
616
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/billing/invoices", code: 200 }))).annotate({
626
617
  identifier: "GetBillingInvoicesRequest",
627
618
  });
628
619
  export const BillingInvoiceStatus = S.String;
@@ -639,15 +630,11 @@ export const BillingInvoicesResponseDataList = /*@__PURE__*/ S.Array(BillingInvo
639
630
  export const PaginationMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
640
631
  has_more: S.Boolean,
641
632
  next_cursor: S.NullOr(S.String),
642
- })).annotate({
643
- identifier: "PaginationMetadata",
644
- });
633
+ })).annotate({ identifier: "PaginationMetadata" });
645
634
  export const BillingInvoicesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
646
635
  data: BillingInvoicesResponseDataList,
647
636
  pagination_metadata: PaginationMetadata,
648
- })).annotate({
649
- identifier: "BillingInvoicesResponse",
650
- });
637
+ })).annotate({ identifier: "BillingInvoicesResponse" });
651
638
  export const GetBillingUpcomingInvoiceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
652
639
  organizationID: S.String.pipe(T.Label()),
653
640
  }).pipe(T.Http({
@@ -687,9 +674,7 @@ export const BranchCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({
687
674
  port: S.Number,
688
675
  dbname: S.String,
689
676
  connectionString: S.String.pipe(T.SensitiveValue({})),
690
- })).annotate({
691
- identifier: "BranchCredentials",
692
- });
677
+ })).annotate({ identifier: "BranchCredentials" });
693
678
  export const GetBranchPostgresConfigRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
694
679
  organizationID: S.String.pipe(T.Label()),
695
680
  projectID: S.String.pipe(T.Label()),
@@ -702,8 +687,7 @@ export const GetBranchPostgresConfigRequest = /*@__PURE__*/ S.suspend(() => S.St
702
687
  identifier: "GetBranchPostgresConfigRequest",
703
688
  });
704
689
  export const PostgresConfigParameterType = S.String;
705
- export const PostgresConfigParameterAcceptableRangeEnumValuesList =
706
- /*@__PURE__*/ S.Array(S.String);
690
+ export const PostgresConfigParameterAcceptableRangeEnumValuesList = /*@__PURE__*/ S.Array(S.String);
707
691
  export const PostgresConfigParameterAcceptableRange = /*@__PURE__*/ S.suspend(() => S.Struct({
708
692
  minValue: S.optional(S.String),
709
693
  maxValue: S.optional(S.String),
@@ -724,30 +708,11 @@ export const PostgresConfigParameter = /*@__PURE__*/ S.suspend(() => S.Struct({
724
708
  documentationLink: S.String,
725
709
  recommendation: S.String,
726
710
  restartRequired: S.optional(S.Boolean),
727
- })).annotate({
728
- identifier: "PostgresConfigParameter",
729
- });
711
+ })).annotate({ identifier: "PostgresConfigParameter" });
730
712
  export const PostgresConfigDetailsParametersList = /*@__PURE__*/ S.Array(PostgresConfigParameter);
731
713
  export const PostgresConfigDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
732
714
  parameters: PostgresConfigDetailsParametersList,
733
- })).annotate({
734
- identifier: "PostgresConfigDetails",
735
- });
736
- export const GetDefaultProjectLimitsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
737
- organizationID: S.String.pipe(T.Label()),
738
- }).pipe(T.Http({
739
- method: "GET",
740
- uri: "/organizations/{organizationID}/projects/limits",
741
- code: 200,
742
- }))).annotate({
743
- identifier: "GetDefaultProjectLimitsRequest",
744
- });
745
- export const ProjectLimits = /*@__PURE__*/ S.suspend(() => S.Struct({
746
- maxInstances: S.Number,
747
- minInstances: S.Number,
748
- maxDescriptionLength: S.Number,
749
- maxBranches: S.Number,
750
- })).annotate({ identifier: "ProjectLimits" });
715
+ })).annotate({ identifier: "PostgresConfigDetails" });
751
716
  export const GetGithubRepositoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
752
717
  organizationID: S.String.pipe(T.Label()),
753
718
  projectID: S.String.pipe(T.Label()),
@@ -766,13 +731,7 @@ export const GetGithubRepositoryResponse = /*@__PURE__*/ S.suspend(() => S.Struc
766
731
  });
767
732
  export const GetOrganizationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
768
733
  organizationID: S.String.pipe(T.Label()),
769
- }).pipe(T.Http({
770
- method: "GET",
771
- uri: "/organizations/{organizationID}",
772
- code: 200,
773
- }))).annotate({
774
- identifier: "GetOrganizationRequest",
775
- });
734
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}", code: 200 }))).annotate({ identifier: "GetOrganizationRequest" });
776
735
  export const GetOrganizationInvitationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
777
736
  organizationID: S.String.pipe(T.Label()),
778
737
  invitationID: S.String.pipe(T.Label()),
@@ -793,17 +752,11 @@ export const OrganizationInvitation = /*@__PURE__*/ S.suspend(() => S.Struct({
793
752
  created_at: S.String,
794
753
  expires_at: S.String,
795
754
  status: OrganizationInvitationStatus,
796
- invite_link: S.optional(S.String),
797
- })).annotate({
798
- identifier: "OrganizationInvitation",
799
- });
755
+ role: OrganizationRoleName,
756
+ })).annotate({ identifier: "OrganizationInvitation" });
800
757
  export const GetOrganizationLimitsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
801
758
  organizationID: S.String.pipe(T.Label()),
802
- }).pipe(T.Http({
803
- method: "GET",
804
- uri: "/organizations/{organizationID}/limits",
805
- code: 200,
806
- }))).annotate({
759
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/limits", code: 200 }))).annotate({
807
760
  identifier: "GetOrganizationLimitsRequest",
808
761
  });
809
762
  export const GetOrganizationLimitsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -822,11 +775,7 @@ export const GetOrganizationLimitsResponse = /*@__PURE__*/ S.suspend(() => S.Str
822
775
  });
823
776
  export const GetOrganizationMembershipLimitsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
824
777
  organizationID: S.String.pipe(T.Label()),
825
- }).pipe(T.Http({
826
- method: "GET",
827
- uri: "/organizations/{organizationID}/membership-limits",
828
- code: 200,
829
- }))).annotate({
778
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/membership-limits", code: 200 }))).annotate({
830
779
  identifier: "GetOrganizationMembershipLimitsRequest",
831
780
  });
832
781
  export const OrganizationMembershipLimits = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -838,21 +787,30 @@ export const OrganizationMembershipLimits = /*@__PURE__*/ S.suspend(() => S.Stru
838
787
  export const GetOrganizationsListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/organizations", code: 200 }))).annotate({
839
788
  identifier: "GetOrganizationsListRequest",
840
789
  });
841
- export const GetOrganizationsListResponseOrganizationsItem =
842
- /*@__PURE__*/ S.suspend(() => S.Struct({
790
+ export const GetOrganizationsListResponseOrganizationsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
843
791
  id: S.String,
844
792
  name: S.String,
845
793
  status: OrganizationStatus,
846
794
  })).annotate({
847
795
  identifier: "GetOrganizationsListResponseOrganizationsItem",
848
796
  });
849
- export const GetOrganizationsListResponseOrganizationsList =
850
- /*@__PURE__*/ S.Array(GetOrganizationsListResponseOrganizationsItem);
797
+ export const GetOrganizationsListResponseOrganizationsList = /*@__PURE__*/ S.Array(GetOrganizationsListResponseOrganizationsItem);
851
798
  export const GetOrganizationsListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
852
799
  organizations: GetOrganizationsListResponseOrganizationsList,
853
800
  })).annotate({
854
801
  identifier: "GetOrganizationsListResponse",
855
802
  });
803
+ export const GetOrganizationSSORequest = /*@__PURE__*/ S.suspend(() => S.Struct({
804
+ organizationID: S.String.pipe(T.Label()),
805
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/sso", code: 200 }))).annotate({
806
+ identifier: "GetOrganizationSSORequest",
807
+ });
808
+ export const OrganizationSSOProvidersList = /*@__PURE__*/ S.Array(OrganizationSSOProvider);
809
+ export const OrganizationSSODomainsList = /*@__PURE__*/ S.Array(OrganizationSSODomain);
810
+ export const OrganizationSSO = /*@__PURE__*/ S.suspend(() => S.Struct({
811
+ providers: OrganizationSSOProvidersList,
812
+ domains: OrganizationSSODomainsList,
813
+ })).annotate({ identifier: "OrganizationSSO" });
856
814
  export const GetProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
857
815
  organizationID: S.String.pipe(T.Label()),
858
816
  projectID: S.String.pipe(T.Label()),
@@ -860,9 +818,7 @@ export const GetProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
860
818
  method: "GET",
861
819
  uri: "/organizations/{organizationID}/projects/{projectID}",
862
820
  code: 200,
863
- }))).annotate({
864
- identifier: "GetProjectRequest",
865
- });
821
+ }))).annotate({ identifier: "GetProjectRequest" });
866
822
  export const GetProjectLimitsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
867
823
  organizationID: S.String.pipe(T.Label()),
868
824
  projectID: S.String.pipe(T.Label()),
@@ -870,9 +826,7 @@ export const GetProjectLimitsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
870
826
  method: "GET",
871
827
  uri: "/organizations/{organizationID}/projects/{projectID}/limits",
872
828
  code: 200,
873
- }))).annotate({
874
- identifier: "GetProjectLimitsRequest",
875
- });
829
+ }))).annotate({ identifier: "GetProjectLimitsRequest" });
876
830
  export const EffectiveProjectLimits = /*@__PURE__*/ S.suspend(() => S.Struct({
877
831
  maxDescriptionLength: S.Number,
878
832
  maxBranchesPerProject: S.Number,
@@ -881,15 +835,27 @@ export const EffectiveProjectLimits = /*@__PURE__*/ S.suspend(() => S.Struct({
881
835
  maxAllowedInstanceType: S.Number,
882
836
  maxBranchesPerHour: S.Number,
883
837
  maxStorageGBPerBranch: S.Number,
884
- })).annotate({
885
- identifier: "EffectiveProjectLimits",
886
- });
838
+ })).annotate({ identifier: "EffectiveProjectLimits" });
839
+ export const GetResourceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
840
+ installationId: S.String.pipe(T.Label()),
841
+ resourceId: S.String.pipe(T.Label()),
842
+ }).pipe(T.Http({
843
+ method: "GET",
844
+ uri: "/v1/installations/{installationId}/resources/{resourceId}",
845
+ code: 200,
846
+ }))).annotate({ identifier: "GetResourceRequest" });
847
+ export const ResourceMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
848
+ export const Resource = /*@__PURE__*/ S.suspend(() => S.Struct({
849
+ id: S.String,
850
+ productId: S.String,
851
+ name: S.String,
852
+ metadata: ResourceMetadataMap,
853
+ status: S.String,
854
+ })).annotate({ identifier: "Resource" });
887
855
  export const GithubWebhookRequestBodyMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
888
856
  export const GithubWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
889
857
  body: GithubWebhookRequestBodyMap.pipe(T.HttpBody()),
890
- }).pipe(T.Http({ method: "POST", uri: "/webhooks/github", code: 200 }))).annotate({
891
- identifier: "GithubWebhookRequest",
892
- });
858
+ }).pipe(T.Http({ method: "POST", uri: "/webhooks/github", code: 200 }))).annotate({ identifier: "GithubWebhookRequest" });
893
859
  export const GithubWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
894
860
  identifier: "GithubWebhookResponse",
895
861
  });
@@ -900,15 +866,48 @@ export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
900
866
  method: "GET",
901
867
  uri: "/organizations/{organizationID}/projects/{projectID}/backups",
902
868
  code: 200,
903
- }))).annotate({
904
- identifier: "ListBackupsRequest",
905
- });
869
+ }))).annotate({ identifier: "ListBackupsRequest" });
906
870
  export const ListBackupsResponseBackupsList = /*@__PURE__*/ S.Array(BackupMetadata);
907
871
  export const ListBackupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
908
872
  backups: ListBackupsResponseBackupsList,
909
- })).annotate({
910
- identifier: "ListBackupsResponse",
911
- });
873
+ })).annotate({ identifier: "ListBackupsResponse" });
874
+ export const ListBillingPlansForProductRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
875
+ productSlug: S.String.pipe(T.Label()),
876
+ metadata: S.optional(S.String.pipe(T.Query())),
877
+ }).pipe(T.Http({ method: "GET", uri: "/v1/products/{productSlug}/plans", code: 200 }))).annotate({
878
+ identifier: "ListBillingPlansForProductRequest",
879
+ });
880
+ export const PlanDetail = /*@__PURE__*/ S.suspend(() => S.Struct({
881
+ label: S.String,
882
+ value: S.optional(S.String),
883
+ })).annotate({ identifier: "PlanDetail" });
884
+ export const BillingPlanDetailsList = /*@__PURE__*/ S.Array(PlanDetail);
885
+ export const BillingPlanHighlightedDetailsList = /*@__PURE__*/ S.Array(PlanDetail);
886
+ export const PlanQuoteLine = /*@__PURE__*/ S.suspend(() => S.Struct({
887
+ line: S.String,
888
+ amount: S.String,
889
+ })).annotate({ identifier: "PlanQuoteLine" });
890
+ export const BillingPlanQuoteList = /*@__PURE__*/ S.Array(PlanQuoteLine);
891
+ export const BillingPlan = /*@__PURE__*/ S.suspend(() => S.Struct({
892
+ id: S.String,
893
+ type: S.String,
894
+ name: S.String,
895
+ description: S.String,
896
+ scope: S.optional(S.String),
897
+ paymentMethodRequired: S.optional(S.Boolean),
898
+ preauthorizationAmount: S.optional(S.Number),
899
+ initialCharge: S.optional(S.String),
900
+ cost: S.optional(S.String),
901
+ details: S.optional(BillingPlanDetailsList),
902
+ highlightedDetails: S.optional(BillingPlanHighlightedDetailsList),
903
+ quote: S.optional(BillingPlanQuoteList),
904
+ effectiveDate: S.optional(S.String),
905
+ disabled: S.optional(S.Boolean),
906
+ })).annotate({ identifier: "BillingPlan" });
907
+ export const ListBillingPlansResponsePlansList = /*@__PURE__*/ S.Array(BillingPlan);
908
+ export const ListBillingPlansResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
909
+ plans: ListBillingPlansResponsePlansList,
910
+ })).annotate({ identifier: "ListBillingPlansResponse" });
912
911
  export const ListBranchesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
913
912
  organizationID: S.String.pipe(T.Label()),
914
913
  projectID: S.String.pipe(T.Label()),
@@ -916,9 +915,7 @@ export const ListBranchesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
916
915
  method: "GET",
917
916
  uri: "/organizations/{organizationID}/projects/{projectID}/branches",
918
917
  code: 200,
919
- }))).annotate({
920
- identifier: "ListBranchesRequest",
921
- });
918
+ }))).annotate({ identifier: "ListBranchesRequest" });
922
919
  export const BranchListMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
923
920
  id: S.String,
924
921
  name: S.String,
@@ -929,26 +926,16 @@ export const BranchListMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
929
926
  region: S.String,
930
927
  publicAccess: S.Boolean,
931
928
  backupsEnabled: S.Boolean,
932
- })).annotate({
933
- identifier: "BranchListMetadata",
934
- });
929
+ })).annotate({ identifier: "BranchListMetadata" });
935
930
  export const ListBranchesResponseBranchesList = /*@__PURE__*/ S.Array(BranchListMetadata);
936
931
  export const ListBranchesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
937
932
  branches: ListBranchesResponseBranchesList,
938
- })).annotate({
939
- identifier: "ListBranchesResponse",
940
- });
933
+ })).annotate({ identifier: "ListBranchesResponse" });
941
934
  export const ListExtensionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
942
935
  organizationID: S.String.pipe(T.Label()),
943
936
  image: S.String.pipe(T.Query()),
944
937
  region: S.optional(S.String.pipe(T.Query())),
945
- }).pipe(T.Http({
946
- method: "GET",
947
- uri: "/organizations/{organizationID}/extensions",
948
- code: 200,
949
- }))).annotate({
950
- identifier: "ListExtensionsRequest",
951
- });
938
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/extensions", code: 200 }))).annotate({ identifier: "ListExtensionsRequest" });
952
939
  export const ExtensionType = S.String;
953
940
  export const Extension = /*@__PURE__*/ S.suspend(() => S.Struct({
954
941
  name: S.String,
@@ -961,9 +948,7 @@ export const Extension = /*@__PURE__*/ S.suspend(() => S.Struct({
961
948
  export const ListExtensionsResponseExtensionsList = /*@__PURE__*/ S.Array(Extension);
962
949
  export const ListExtensionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
963
950
  extensions: ListExtensionsResponseExtensionsList,
964
- })).annotate({
965
- identifier: "ListExtensionsResponse",
966
- });
951
+ })).annotate({ identifier: "ListExtensionsResponse" });
967
952
  export const ListGithubAppInstallationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
968
953
  organizationID: S.String.pipe(T.Label()),
969
954
  }).pipe(T.Http({
@@ -973,8 +958,7 @@ export const ListGithubAppInstallationsRequest = /*@__PURE__*/ S.suspend(() => S
973
958
  }))).annotate({
974
959
  identifier: "ListGithubAppInstallationsRequest",
975
960
  });
976
- export const ListGithubAppInstallationsResponseInstallationsList =
977
- /*@__PURE__*/ S.Array(GithubInstallation);
961
+ export const ListGithubAppInstallationsResponseInstallationsList = /*@__PURE__*/ S.Array(GithubInstallation);
978
962
  export const ListGithubAppInstallationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
979
963
  installations: ListGithubAppInstallationsResponseInstallationsList,
980
964
  })).annotate({
@@ -983,13 +967,7 @@ export const ListGithubAppInstallationsResponse = /*@__PURE__*/ S.suspend(() =>
983
967
  export const ListImagesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
984
968
  organizationID: S.String.pipe(T.Label()),
985
969
  region: S.optional(S.String.pipe(T.Query())),
986
- }).pipe(T.Http({
987
- method: "GET",
988
- uri: "/organizations/{organizationID}/images",
989
- code: 200,
990
- }))).annotate({
991
- identifier: "ListImagesRequest",
992
- });
970
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/images", code: 200 }))).annotate({ identifier: "ListImagesRequest" });
993
971
  export const ImageRegionList = /*@__PURE__*/ S.Array(S.String);
994
972
  export const Image = /*@__PURE__*/ S.suspend(() => S.Struct({
995
973
  name: S.String,
@@ -1000,21 +978,12 @@ export const Image = /*@__PURE__*/ S.suspend(() => S.Struct({
1000
978
  export const ListImagesResponseImagesList = /*@__PURE__*/ S.Array(Image);
1001
979
  export const ListImagesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1002
980
  images: ListImagesResponseImagesList,
1003
- })).annotate({
1004
- identifier: "ListImagesResponse",
1005
- });
981
+ })).annotate({ identifier: "ListImagesResponse" });
1006
982
  export const ListInstanceTypesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1007
983
  organizationID: S.String.pipe(T.Label()),
1008
984
  region: S.String.pipe(T.Query()),
1009
- }).pipe(T.Http({
1010
- method: "GET",
1011
- uri: "/organizations/{organizationID}/instanceTypes",
1012
- code: 200,
1013
- }))).annotate({
1014
- identifier: "ListInstanceTypesRequest",
1015
- });
1016
- export const ListInstanceTypesResponseInstanceTypesItem =
1017
- /*@__PURE__*/ S.suspend(() => S.Struct({
985
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/instanceTypes", code: 200 }))).annotate({ identifier: "ListInstanceTypesRequest" });
986
+ export const ListInstanceTypesResponseInstanceTypesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1018
987
  name: S.String,
1019
988
  vcpus: S.Number,
1020
989
  ram: S.Number,
@@ -1032,11 +1001,7 @@ export const ListInstanceTypesResponse = /*@__PURE__*/ S.suspend(() => S.Struct(
1032
1001
  });
1033
1002
  export const ListOrganizationAPIKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1034
1003
  organizationID: S.String.pipe(T.Label()),
1035
- }).pipe(T.Http({
1036
- method: "GET",
1037
- uri: "/organizations/{organizationID}/api-keys",
1038
- code: 200,
1039
- }))).annotate({
1004
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/api-keys", code: 200 }))).annotate({
1040
1005
  identifier: "ListOrganizationAPIKeysRequest",
1041
1006
  });
1042
1007
  export const APIKeyPreviewScopesList = /*@__PURE__*/ S.Array(S.String);
@@ -1071,15 +1036,10 @@ export const ListOrganizationInvitationsRequest = /*@__PURE__*/ S.suspend(() =>
1071
1036
  search: S.optional(S.String.pipe(T.Query())),
1072
1037
  first: S.optional(S.Number.pipe(T.Query())),
1073
1038
  max: S.optional(S.Number.pipe(T.Query())),
1074
- }).pipe(T.Http({
1075
- method: "GET",
1076
- uri: "/organizations/{organizationID}/invitations",
1077
- code: 200,
1078
- }))).annotate({
1039
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/invitations", code: 200 }))).annotate({
1079
1040
  identifier: "ListOrganizationInvitationsRequest",
1080
1041
  });
1081
- export const ListOrganizationInvitationsResponseInvitationsList =
1082
- /*@__PURE__*/ S.Array(OrganizationInvitation);
1042
+ export const ListOrganizationInvitationsResponseInvitationsList = /*@__PURE__*/ S.Array(OrganizationInvitation);
1083
1043
  export const ListOrganizationInvitationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1084
1044
  invitations: ListOrganizationInvitationsResponseInvitationsList,
1085
1045
  })).annotate({
@@ -1087,48 +1047,47 @@ export const ListOrganizationInvitationsResponse = /*@__PURE__*/ S.suspend(() =>
1087
1047
  });
1088
1048
  export const ListOrganizationMembersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1089
1049
  organizationID: S.String.pipe(T.Label()),
1090
- }).pipe(T.Http({
1091
- method: "GET",
1092
- uri: "/organizations/{organizationID}/members",
1093
- code: 200,
1094
- }))).annotate({
1050
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/members", code: 200 }))).annotate({
1095
1051
  identifier: "ListOrganizationMembersRequest",
1096
1052
  });
1097
- export const UserWithID = /*@__PURE__*/ S.suspend(() => S.Struct({
1053
+ export const OrganizationMember = /*@__PURE__*/ S.suspend(() => S.Struct({
1098
1054
  email: S.String,
1099
1055
  name: S.String,
1100
1056
  id: S.String,
1101
- })).annotate({ identifier: "UserWithID" });
1102
- export const ListOrganizationMembersResponseMembersList = /*@__PURE__*/ S.Array(UserWithID);
1057
+ role: OrganizationRoleName,
1058
+ })).annotate({ identifier: "OrganizationMember" });
1059
+ export const ListOrganizationMembersResponseMembersList = /*@__PURE__*/ S.Array(OrganizationMember);
1103
1060
  export const ListOrganizationMembersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1104
1061
  members: ListOrganizationMembersResponseMembersList,
1105
1062
  })).annotate({
1106
1063
  identifier: "ListOrganizationMembersResponse",
1107
1064
  });
1108
- export const ListProjectsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1065
+ export const ListOrganizationRolesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1109
1066
  organizationID: S.String.pipe(T.Label()),
1110
- }).pipe(T.Http({
1111
- method: "GET",
1112
- uri: "/organizations/{organizationID}/projects",
1113
- code: 200,
1114
- }))).annotate({
1115
- identifier: "ListProjectsRequest",
1067
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/roles", code: 200 }))).annotate({
1068
+ identifier: "ListOrganizationRolesRequest",
1069
+ });
1070
+ export const OrganizationRole = /*@__PURE__*/ S.suspend(() => S.Struct({
1071
+ id: OrganizationRoleName,
1072
+ name: S.String,
1073
+ description: S.String,
1074
+ })).annotate({ identifier: "OrganizationRole" });
1075
+ export const ListOrganizationRolesResponseRolesList = /*@__PURE__*/ S.Array(OrganizationRole);
1076
+ export const ListOrganizationRolesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1077
+ roles: ListOrganizationRolesResponseRolesList,
1078
+ })).annotate({
1079
+ identifier: "ListOrganizationRolesResponse",
1116
1080
  });
1081
+ export const ListProjectsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1082
+ organizationID: S.String.pipe(T.Label()),
1083
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/projects", code: 200 }))).annotate({ identifier: "ListProjectsRequest" });
1117
1084
  export const ListProjectsResponseProjectsList = /*@__PURE__*/ S.Array(Project);
1118
1085
  export const ListProjectsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1119
1086
  projects: ListProjectsResponseProjectsList,
1120
- })).annotate({
1121
- identifier: "ListProjectsResponse",
1122
- });
1087
+ })).annotate({ identifier: "ListProjectsResponse" });
1123
1088
  export const ListRegionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1124
1089
  organizationID: S.String.pipe(T.Label()),
1125
- }).pipe(T.Http({
1126
- method: "GET",
1127
- uri: "/organizations/{organizationID}/regions",
1128
- code: 200,
1129
- }))).annotate({
1130
- identifier: "ListRegionsRequest",
1131
- });
1090
+ }).pipe(T.Http({ method: "GET", uri: "/organizations/{organizationID}/regions", code: 200 }))).annotate({ identifier: "ListRegionsRequest" });
1132
1091
  export const ListRegionsResponseRegionsItemProvider = S.String;
1133
1092
  export const ListRegionsResponseRegionsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1134
1093
  id: S.String,
@@ -1142,27 +1101,50 @@ export const ListRegionsResponseRegionsItem = /*@__PURE__*/ S.suspend(() => S.St
1142
1101
  export const ListRegionsResponseRegionsList = /*@__PURE__*/ S.Array(ListRegionsResponseRegionsItem);
1143
1102
  export const ListRegionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1144
1103
  regions: ListRegionsResponseRegionsList,
1145
- })).annotate({
1146
- identifier: "ListRegionsResponse",
1147
- });
1148
- export const ListUserAPIKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/api-keys", code: 200 }))).annotate({
1149
- identifier: "ListUserAPIKeysRequest",
1150
- });
1104
+ })).annotate({ identifier: "ListRegionsResponse" });
1105
+ export const ListUserAPIKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/api-keys", code: 200 }))).annotate({ identifier: "ListUserAPIKeysRequest" });
1151
1106
  export const ListUserAPIKeysResponseKeysList = /*@__PURE__*/ S.Array(APIKeyPreview);
1152
1107
  export const ListUserAPIKeysResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1153
1108
  keys: ListUserAPIKeysResponseKeysList,
1154
- })).annotate({
1155
- identifier: "ListUserAPIKeysResponse",
1156
- });
1109
+ })).annotate({ identifier: "ListUserAPIKeysResponse" });
1157
1110
  export const OrbWebhookRequestBodyMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1158
1111
  export const OrbWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1159
1112
  body: OrbWebhookRequestBodyMap.pipe(T.HttpBody()),
1160
- }).pipe(T.Http({ method: "POST", uri: "/webhooks/orb", code: 200 }))).annotate({
1161
- identifier: "OrbWebhookRequest",
1162
- });
1113
+ }).pipe(T.Http({ method: "POST", uri: "/webhooks/orb", code: 200 }))).annotate({ identifier: "OrbWebhookRequest" });
1163
1114
  export const OrbWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1164
1115
  identifier: "OrbWebhookResponse",
1165
1116
  });
1117
+ export const ProvisionResourceRequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1118
+ export const ProvisionResourceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1119
+ installationId: S.String.pipe(T.Label()),
1120
+ productId: S.String,
1121
+ name: S.String,
1122
+ metadata: ProvisionResourceRequestMetadataMap,
1123
+ billingPlanId: S.String,
1124
+ externalId: S.optional(S.String),
1125
+ }).pipe(T.Http({ method: "POST", uri: "/v1/installations/{installationId}/resources", code: 200 }))).annotate({ identifier: "ProvisionResourceRequest" });
1126
+ export const ProvisionedResourceMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1127
+ export const SecretEnvironmentOverrides = /*@__PURE__*/ S.suspend(() => S.Struct({
1128
+ development: S.optional(S.String),
1129
+ preview: S.optional(S.String),
1130
+ production: S.optional(S.String),
1131
+ })).annotate({
1132
+ identifier: "SecretEnvironmentOverrides",
1133
+ });
1134
+ export const Secret = /*@__PURE__*/ S.suspend(() => S.Struct({
1135
+ name: S.String,
1136
+ value: S.String,
1137
+ environmentOverrides: S.optional(SecretEnvironmentOverrides),
1138
+ })).annotate({ identifier: "Secret" });
1139
+ export const ProvisionedResourceSecretsList = /*@__PURE__*/ S.Array(Secret);
1140
+ export const ProvisionedResource = /*@__PURE__*/ S.suspend(() => S.Struct({
1141
+ id: S.String,
1142
+ productId: S.String,
1143
+ name: S.String,
1144
+ metadata: ProvisionedResourceMetadataMap,
1145
+ status: S.String,
1146
+ secrets: ProvisionedResourceSecretsList,
1147
+ })).annotate({ identifier: "ProvisionedResource" });
1166
1148
  export const QueryRequestParamsList = /*@__PURE__*/ S.Array(S.Unknown);
1167
1149
  export const QueryItemParamsList = /*@__PURE__*/ S.Array(S.Unknown);
1168
1150
  export const QueryItem = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1185,9 +1167,7 @@ export const FieldDefinition = /*@__PURE__*/ S.suspend(() => S.Struct({
1185
1167
  dataTypeSize: S.Number,
1186
1168
  dataTypeModifier: S.Number,
1187
1169
  format: S.String,
1188
- })).annotate({
1189
- identifier: "FieldDefinition",
1190
- });
1170
+ })).annotate({ identifier: "FieldDefinition" });
1191
1171
  export const QueryResultFieldsList = /*@__PURE__*/ S.Array(FieldDefinition);
1192
1172
  export const QueryResultRowsList = /*@__PURE__*/ S.Array(S.Unknown);
1193
1173
  export const QueryResult = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1236,11 +1216,7 @@ export const RemoveOrganizationMemberResponse = /*@__PURE__*/ S.suspend(() => S.
1236
1216
  });
1237
1217
  export const RequestOrganizationDeletionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1238
1218
  organizationID: S.String.pipe(T.Label()),
1239
- }).pipe(T.Http({
1240
- method: "POST",
1241
- uri: "/organizations/{organizationID}/deletion-request",
1242
- code: 200,
1243
- }))).annotate({
1219
+ }).pipe(T.Http({ method: "POST", uri: "/organizations/{organizationID}/deletion-request", code: 200 }))).annotate({
1244
1220
  identifier: "RequestOrganizationDeletionRequest",
1245
1221
  });
1246
1222
  export const RequestOrganizationDeletionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
@@ -1272,9 +1248,7 @@ export const RestoreFromBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1272
1248
  method: "POST",
1273
1249
  uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}/restore",
1274
1250
  code: 200,
1275
- }))).annotate({
1276
- identifier: "RestoreFromBackupRequest",
1277
- });
1251
+ }))).annotate({ identifier: "RestoreFromBackupRequest" });
1278
1252
  export const RotateBranchCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1279
1253
  organizationID: S.String.pipe(T.Label()),
1280
1254
  projectID: S.String.pipe(T.Label()),
@@ -1287,9 +1261,7 @@ export const RotateBranchCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.St
1287
1261
  }))).annotate({
1288
1262
  identifier: "RotateBranchCredentialsRequest",
1289
1263
  });
1290
- export const RotateBranchCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1291
- identifier: "RotateBranchCredentialsResponse",
1292
- });
1264
+ export const RotateBranchCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ identifier: "RotateBranchCredentialsResponse" });
1293
1265
  export const SendMcpRequestRequestJsonrpc = S.String;
1294
1266
  export const SendMcpRequestRequestId = S.Unknown;
1295
1267
  export const SendMcpRequestRequestParamsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
@@ -1298,9 +1270,7 @@ export const SendMcpRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1298
1270
  id: S.optional(SendMcpRequestRequestId),
1299
1271
  method: S.String,
1300
1272
  params: S.optional(SendMcpRequestRequestParamsMap),
1301
- }).pipe(T.Http({ method: "POST", uri: "/mcp", code: 200 }))).annotate({
1302
- identifier: "SendMcpRequestRequest",
1303
- });
1273
+ }).pipe(T.Http({ method: "POST", uri: "/mcp", code: 200 }))).annotate({ identifier: "SendMcpRequestRequest" });
1304
1274
  export const JSONRPCResponseJsonrpc = S.String;
1305
1275
  export const JSONRPCResponseId = S.Unknown;
1306
1276
  export const JSONRPCResponseResultMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
@@ -1314,30 +1284,46 @@ export const JSONRPCResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1314
1284
  id: JSONRPCResponseId,
1315
1285
  result: S.optional(JSONRPCResponseResultMap),
1316
1286
  error: S.optional(JSONRPCError),
1317
- })).annotate({
1318
- identifier: "JSONRPCResponse",
1287
+ })).annotate({ identifier: "JSONRPCResponse" });
1288
+ export const SetOrganizationMemberRoleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1289
+ organizationID: S.String.pipe(T.Label()),
1290
+ userID: S.String.pipe(T.Label()),
1291
+ role: OrganizationRoleName,
1292
+ }).pipe(T.Http({
1293
+ method: "PUT",
1294
+ uri: "/organizations/{organizationID}/members/{userID}/role",
1295
+ code: 200,
1296
+ }))).annotate({
1297
+ identifier: "SetOrganizationMemberRoleRequest",
1298
+ });
1299
+ export const SetOrganizationMemberRoleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1300
+ identifier: "SetOrganizationMemberRoleResponse",
1301
+ });
1302
+ export const SetOrganizationSSOProviderEnforcementRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1303
+ organizationID: S.String.pipe(T.Label()),
1304
+ providerAlias: S.String.pipe(T.Label()),
1305
+ enforced: S.Boolean,
1306
+ }).pipe(T.Http({
1307
+ method: "PUT",
1308
+ uri: "/organizations/{organizationID}/sso/providers/{providerAlias}/enforcement",
1309
+ code: 200,
1310
+ }))).annotate({
1311
+ identifier: "SetOrganizationSSOProviderEnforcementRequest",
1319
1312
  });
1320
1313
  export const StripeWebhookRequestBodyMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1321
1314
  export const StripeWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1322
1315
  body: StripeWebhookRequestBodyMap.pipe(T.HttpBody()),
1323
- }).pipe(T.Http({ method: "POST", uri: "/webhooks/stripe", code: 200 }))).annotate({
1324
- identifier: "StripeWebhookRequest",
1325
- });
1316
+ }).pipe(T.Http({ method: "POST", uri: "/webhooks/stripe", code: 200 }))).annotate({ identifier: "StripeWebhookRequest" });
1326
1317
  export const StripeWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1327
1318
  identifier: "StripeWebhookResponse",
1328
1319
  });
1329
1320
  export const UpdateBillingCustomerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1330
1321
  organizationID: S.String.pipe(T.Label()),
1331
1322
  billing_email: S.String,
1332
- }).pipe(T.Http({
1333
- method: "PATCH",
1334
- uri: "/organizations/{organizationID}/billing/customer",
1335
- code: 200,
1336
- }))).annotate({
1323
+ }).pipe(T.Http({ method: "PATCH", uri: "/organizations/{organizationID}/billing/customer", code: 200 }))).annotate({
1337
1324
  identifier: "UpdateBillingCustomerRequest",
1338
1325
  });
1339
- export const UpdateBranchRequestPostgresConfigurationParametersMap =
1340
- /*@__PURE__*/ S.Record(S.String, S.String);
1326
+ export const UpdateBranchRequestPostgresConfigurationParametersMap = /*@__PURE__*/ S.Record(S.String, S.String);
1341
1327
  export const UpdateBranchRequestPreloadLibrariesList = /*@__PURE__*/ S.Array(S.String);
1342
1328
  export const UpdateBranchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1343
1329
  organizationID: S.String.pipe(T.Label()),
@@ -1358,9 +1344,7 @@ export const UpdateBranchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1358
1344
  method: "PATCH",
1359
1345
  uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}",
1360
1346
  code: 200,
1361
- }))).annotate({
1362
- identifier: "UpdateBranchRequest",
1363
- });
1347
+ }))).annotate({ identifier: "UpdateBranchRequest" });
1364
1348
  export const UpdateGithubAppInstallationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1365
1349
  organizationID: S.String.pipe(T.Label()),
1366
1350
  githubInstallationID: S.String.pipe(T.Label()),
@@ -1388,12 +1372,21 @@ export const UpdateOrganizationRequest = /*@__PURE__*/ S.suspend(() => S.Struct(
1388
1372
  organizationID: S.String.pipe(T.Label()),
1389
1373
  id: S.optional(S.String),
1390
1374
  name: S.optional(S.String),
1375
+ }).pipe(T.Http({ method: "PUT", uri: "/organizations/{organizationID}", code: 200 }))).annotate({
1376
+ identifier: "UpdateOrganizationRequest",
1377
+ });
1378
+ export const UpdateOrganizationSSOProviderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1379
+ organizationID: S.String.pipe(T.Label()),
1380
+ providerAlias: S.String.pipe(T.Label()),
1381
+ issuer: S.optional(S.String),
1382
+ client_id: S.String,
1383
+ client_secret: S.String.pipe(T.SensitiveValue({})),
1391
1384
  }).pipe(T.Http({
1392
1385
  method: "PUT",
1393
- uri: "/organizations/{organizationID}",
1386
+ uri: "/organizations/{organizationID}/sso/providers/{providerAlias}",
1394
1387
  code: 200,
1395
1388
  }))).annotate({
1396
- identifier: "UpdateOrganizationRequest",
1389
+ identifier: "UpdateOrganizationSSOProviderRequest",
1397
1390
  });
1398
1391
  export const UpdateProjectConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({
1399
1392
  scaleToZero: S.optional(ProjectScaleToZeroConfiguration),
@@ -1410,18 +1403,13 @@ export const UpdateProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1410
1403
  method: "PATCH",
1411
1404
  uri: "/organizations/{organizationID}/projects/{projectID}",
1412
1405
  code: 200,
1413
- }))).annotate({
1414
- identifier: "UpdateProjectRequest",
1415
- });
1406
+ }))).annotate({ identifier: "UpdateProjectRequest" });
1416
1407
  export const UpsertInstallationRequestScopesList = /*@__PURE__*/ S.Array(S.String);
1417
- export const UpsertInstallationRequestAcceptedPoliciesMap =
1418
- /*@__PURE__*/ S.Record(S.String, S.String);
1408
+ export const UpsertInstallationRequestAcceptedPoliciesMap = /*@__PURE__*/ S.Record(S.String, S.String);
1419
1409
  export const InstallationCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({
1420
1410
  access_token: S.String.pipe(T.SensitiveValue({})),
1421
1411
  token_type: S.String,
1422
- })).annotate({
1423
- identifier: "InstallationCredentials",
1424
- });
1412
+ })).annotate({ identifier: "InstallationCredentials" });
1425
1413
  export const InstallationAccountContact = /*@__PURE__*/ S.suspend(() => S.Struct({
1426
1414
  email: S.String,
1427
1415
  name: S.optional(S.String),
@@ -1432,28 +1420,30 @@ export const InstallationAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
1432
1420
  name: S.optional(S.String),
1433
1421
  url: S.String,
1434
1422
  contact: S.optional(InstallationAccountContact),
1435
- })).annotate({
1436
- identifier: "InstallationAccount",
1437
- });
1423
+ })).annotate({ identifier: "InstallationAccount" });
1438
1424
  export const UpsertInstallationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1439
1425
  installationId: S.String.pipe(T.Label()),
1440
1426
  scopes: UpsertInstallationRequestScopesList,
1441
1427
  acceptedPolicies: UpsertInstallationRequestAcceptedPoliciesMap,
1442
1428
  credentials: InstallationCredentials,
1443
1429
  account: InstallationAccount,
1444
- }).pipe(T.Http({
1445
- method: "PUT",
1446
- uri: "/v1/installations/{installationId}",
1447
- code: 200,
1448
- }))).annotate({
1430
+ }).pipe(T.Http({ method: "PUT", uri: "/v1/installations/{installationId}", code: 200 }))).annotate({
1449
1431
  identifier: "UpsertInstallationRequest",
1450
1432
  });
1451
1433
  export const UpsertInstallationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1452
1434
  identifier: "UpsertInstallationResponse",
1453
1435
  });
1454
- export const WebsocketRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v2", code: 200 }))).annotate({
1455
- identifier: "WebsocketRequest",
1436
+ export const VerifyOrganizationSSODomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1437
+ organizationID: S.String.pipe(T.Label()),
1438
+ domain: S.String.pipe(T.Label()),
1439
+ }).pipe(T.Http({
1440
+ method: "POST",
1441
+ uri: "/organizations/{organizationID}/sso/domains/{domain}/verify",
1442
+ code: 200,
1443
+ }))).annotate({
1444
+ identifier: "VerifyOrganizationSSODomainRequest",
1456
1445
  });
1446
+ export const WebsocketRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v2", code: 200 }))).annotate({ identifier: "WebsocketRequest" });
1457
1447
  export const WebsocketResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1458
1448
  identifier: "WebsocketResponse",
1459
1449
  });
@@ -1473,6 +1463,14 @@ export const branchMetrics2 = /*@__PURE__*/ API.make(() => ({
1473
1463
  protocol: XataProtocol,
1474
1464
  retry: Retry.Retry,
1475
1465
  }));
1466
+ /** 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. */
1467
+ export const claimOrganizationSSODomain = /*@__PURE__*/ API.make(() => ({
1468
+ input: ClaimOrganizationSSODomainRequest,
1469
+ output: OrganizationSSODomain,
1470
+ errors: [BadRequest, Forbidden, Conflict, UnknownXataError],
1471
+ protocol: XataProtocol,
1472
+ retry: Retry.Retry,
1473
+ }));
1476
1474
  /** Create a billing checkout session Creates a Stripe checkout session used to activate card billing for an organization. */
1477
1475
  export const createBillingCheckoutSession = /*@__PURE__*/ API.make(() => ({
1478
1476
  input: CreateBillingCheckoutSessionRequest,
@@ -1537,6 +1535,14 @@ export const createOrganizationInvitation = /*@__PURE__*/ API.make(() => ({
1537
1535
  protocol: XataProtocol,
1538
1536
  retry: Retry.Retry,
1539
1537
  }));
1538
+ /** 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. */
1539
+ export const createOrganizationSSOProvider = /*@__PURE__*/ API.make(() => ({
1540
+ input: CreateOrganizationSSOProviderRequest,
1541
+ output: OrganizationSSOProvider,
1542
+ errors: [BadRequest, Forbidden, Conflict, UnknownXataError],
1543
+ protocol: XataProtocol,
1544
+ retry: Retry.Retry,
1545
+ }));
1540
1546
  /** Create a new project Creates a new project within the specified organization. Projects are containers for database branches and resources. */
1541
1547
  export const createProject = /*@__PURE__*/ API.make(() => ({
1542
1548
  input: CreateProjectRequest,
@@ -1601,6 +1607,22 @@ export const deleteOrganizationInvitation = /*@__PURE__*/ API.make(() => ({
1601
1607
  protocol: XataProtocol,
1602
1608
  retry: Retry.Retry,
1603
1609
  }));
1610
+ /** 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. */
1611
+ export const deleteOrganizationSSODomain = /*@__PURE__*/ API.make(() => ({
1612
+ input: DeleteOrganizationSSODomainRequest,
1613
+ output: DeleteOrganizationSSODomainResponse,
1614
+ errors: [Forbidden, Conflict, UnknownXataError],
1615
+ protocol: XataProtocol,
1616
+ retry: Retry.Retry,
1617
+ }));
1618
+ /** 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. */
1619
+ export const deleteOrganizationSSOProvider = /*@__PURE__*/ API.make(() => ({
1620
+ input: DeleteOrganizationSSOProviderRequest,
1621
+ output: DeleteOrganizationSSOProviderResponse,
1622
+ errors: [Forbidden, UnknownXataError],
1623
+ protocol: XataProtocol,
1624
+ retry: Retry.Retry,
1625
+ }));
1604
1626
  /** Delete a project Permanently deletes a specific project by its ID and all associated resources including branches and databases. This action cannot be undone. */
1605
1627
  export const deleteProject = /*@__PURE__*/ API.make(() => ({
1606
1628
  input: DeleteProjectRequest,
@@ -1609,6 +1631,14 @@ export const deleteProject = /*@__PURE__*/ API.make(() => ({
1609
1631
  protocol: XataProtocol,
1610
1632
  retry: Retry.Retry,
1611
1633
  }));
1634
+ /** 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. */
1635
+ export const deleteResource = /*@__PURE__*/ API.make(() => ({
1636
+ input: DeleteResourceRequest,
1637
+ output: DeleteResourceResponse,
1638
+ errors: [Forbidden, NotFound, UnknownXataError],
1639
+ protocol: XataProtocol,
1640
+ retry: Retry.Retry,
1641
+ }));
1612
1642
  /** Bulk delete API Keys for the authenticated user Delete multiple API keys in a single request. */
1613
1643
  export const deleteUserAPIKeys = /*@__PURE__*/ API.make(() => ({
1614
1644
  input: DeleteUserAPIKeysRequest,
@@ -1673,14 +1703,6 @@ export const getBranchPostgresConfig = /*@__PURE__*/ API.make(() => ({
1673
1703
  protocol: XataProtocol,
1674
1704
  retry: Retry.Retry,
1675
1705
  }));
1676
- /** Get project resource limits Retrieves the default resource limits for projects in the specified organization, including maximum instances, storage, and allowed regions. */
1677
- export const getDefaultProjectLimits = /*@__PURE__*/ API.make(() => ({
1678
- input: GetDefaultProjectLimitsRequest,
1679
- output: ProjectLimits,
1680
- errors: [UnknownXataError],
1681
- protocol: XataProtocol,
1682
- retry: Retry.Retry,
1683
- }));
1684
1706
  /** Get GitHub repository for branch Returns the GitHub repository mapping for the specified branch. */
1685
1707
  export const getGithubRepository = /*@__PURE__*/ API.make(() => ({
1686
1708
  input: GetGithubRepositoryRequest,
@@ -1729,6 +1751,14 @@ export const getOrganizationsList = /*@__PURE__*/ API.make(() => ({
1729
1751
  protocol: XataProtocol,
1730
1752
  retry: Retry.Retry,
1731
1753
  }));
1754
+ /** 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. */
1755
+ export const getOrganizationSSO = /*@__PURE__*/ API.make(() => ({
1756
+ input: GetOrganizationSSORequest,
1757
+ output: OrganizationSSO,
1758
+ errors: [Forbidden, UnknownXataError],
1759
+ protocol: XataProtocol,
1760
+ retry: Retry.Retry,
1761
+ }));
1732
1762
  /** Get project details Retrieves detailed information about a specific project by its ID within the specified organization. */
1733
1763
  export const getProject = /*@__PURE__*/ API.make(() => ({
1734
1764
  input: GetProjectRequest,
@@ -1745,6 +1775,14 @@ export const getProjectLimits = /*@__PURE__*/ API.make(() => ({
1745
1775
  protocol: XataProtocol,
1746
1776
  retry: Retry.Retry,
1747
1777
  }));
1778
+ /** 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. */
1779
+ export const getResource = /*@__PURE__*/ API.make(() => ({
1780
+ input: GetResourceRequest,
1781
+ output: Resource,
1782
+ errors: [Forbidden, NotFound, UnknownXataError],
1783
+ protocol: XataProtocol,
1784
+ retry: Retry.Retry,
1785
+ }));
1748
1786
  /** 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. */
1749
1787
  export const githubWebhook = /*@__PURE__*/ API.make(() => ({
1750
1788
  input: GithubWebhookRequest,
@@ -1761,6 +1799,14 @@ export const listBackups = /*@__PURE__*/ API.make(() => ({
1761
1799
  protocol: XataProtocol,
1762
1800
  retry: Retry.Retry,
1763
1801
  }));
1802
+ /** 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). */
1803
+ export const listBillingPlansForProduct = /*@__PURE__*/ API.make(() => ({
1804
+ input: ListBillingPlansForProductRequest,
1805
+ output: ListBillingPlansResponse,
1806
+ errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
1807
+ protocol: XataProtocol,
1808
+ retry: Retry.Retry,
1809
+ }));
1764
1810
  /** List all branches Retrieves a list of all branches within the specified project, including their metadata, region, and access settings. */
1765
1811
  export const listBranches = /*@__PURE__*/ API.make(() => ({
1766
1812
  input: ListBranchesRequest,
@@ -1825,6 +1871,14 @@ export const listOrganizationMembers = /*@__PURE__*/ API.make(() => ({
1825
1871
  protocol: XataProtocol,
1826
1872
  retry: Retry.Retry,
1827
1873
  }));
1874
+ /** List the roles assignable in an organization Roles are predefined. Every member of an organization holds exactly one. */
1875
+ export const listOrganizationRoles = /*@__PURE__*/ API.make(() => ({
1876
+ input: ListOrganizationRolesRequest,
1877
+ output: ListOrganizationRolesResponse,
1878
+ errors: [Forbidden, NotFound, UnknownXataError],
1879
+ protocol: XataProtocol,
1880
+ retry: Retry.Retry,
1881
+ }));
1828
1882
  /** List all projects Retrieves a list of all projects within the specified organization that the authenticated user has access to. */
1829
1883
  export const listProjects = /*@__PURE__*/ API.make(() => ({
1830
1884
  input: ListProjectsRequest,
@@ -1857,8 +1911,17 @@ export const orbWebhook = /*@__PURE__*/ API.make(() => ({
1857
1911
  protocol: XataProtocol,
1858
1912
  retry: Retry.Retry,
1859
1913
  }));
1914
+ /** 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. */
1915
+ export const provisionResource = /*@__PURE__*/ API.make(() => ({
1916
+ input: ProvisionResourceRequest,
1917
+ output: ProvisionedResource,
1918
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownXataError],
1919
+ protocol: XataProtocol,
1920
+ retry: Retry.Retry,
1921
+ }));
1860
1922
  /** 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. */
1861
- export const query = /*@__PURE__*/ API.make(() => ({
1923
+ export const query =
1924
+ /*@__PURE__*/ API.make(() => ({
1862
1925
  input: QueryRequest,
1863
1926
  output: QueryResponse,
1864
1927
  errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownXataError],
@@ -1877,7 +1940,7 @@ export const registerMarketplace = /*@__PURE__*/ API.make(() => ({
1877
1940
  export const removeOrganizationMember = /*@__PURE__*/ API.make(() => ({
1878
1941
  input: RemoveOrganizationMemberRequest,
1879
1942
  output: RemoveOrganizationMemberResponse,
1880
- errors: [UnknownXataError],
1943
+ errors: [BadRequest, Conflict, UnknownXataError],
1881
1944
  protocol: XataProtocol,
1882
1945
  retry: Retry.Retry,
1883
1946
  }));
@@ -1921,6 +1984,22 @@ export const sendMcpRequest = /*@__PURE__*/ API.make(() => ({
1921
1984
  protocol: XataProtocol,
1922
1985
  retry: Retry.Retry,
1923
1986
  }));
1987
+ /** Set the role of an organization member Replaces the member's current role. An organization always retains at least one Admin. */
1988
+ export const setOrganizationMemberRole = /*@__PURE__*/ API.make(() => ({
1989
+ input: SetOrganizationMemberRoleRequest,
1990
+ output: SetOrganizationMemberRoleResponse,
1991
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownXataError],
1992
+ protocol: XataProtocol,
1993
+ retry: Retry.Retry,
1994
+ }));
1995
+ /** 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. */
1996
+ export const setOrganizationSSOProviderEnforcement = /*@__PURE__*/ API.make(() => ({
1997
+ input: SetOrganizationSSOProviderEnforcementRequest,
1998
+ output: OrganizationSSOProvider,
1999
+ errors: [Forbidden, NotFound, Conflict, UnknownXataError],
2000
+ protocol: XataProtocol,
2001
+ retry: Retry.Retry,
2002
+ }));
1924
2003
  /** 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. */
1925
2004
  export const stripeWebhook = /*@__PURE__*/ API.make(() => ({
1926
2005
  input: StripeWebhookRequest,
@@ -1969,6 +2048,14 @@ export const updateOrganization = /*@__PURE__*/ API.make(() => ({
1969
2048
  protocol: XataProtocol,
1970
2049
  retry: Retry.Retry,
1971
2050
  }));
2051
+ /** 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. */
2052
+ export const updateOrganizationSSOProvider = /*@__PURE__*/ API.make(() => ({
2053
+ input: UpdateOrganizationSSOProviderRequest,
2054
+ output: OrganizationSSOProvider,
2055
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownXataError],
2056
+ protocol: XataProtocol,
2057
+ retry: Retry.Retry,
2058
+ }));
1972
2059
  /** Update project details Updates the details of a specific project by its ID, such as changing its name. */
1973
2060
  export const updateProject = /*@__PURE__*/ API.make(() => ({
1974
2061
  input: UpdateProjectRequest,
@@ -1985,6 +2072,14 @@ export const upsertInstallation = /*@__PURE__*/ API.make(() => ({
1985
2072
  protocol: XataProtocol,
1986
2073
  retry: Retry.Retry,
1987
2074
  }));
2075
+ /** 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. */
2076
+ export const verifyOrganizationSSODomain = /*@__PURE__*/ API.make(() => ({
2077
+ input: VerifyOrganizationSSODomainRequest,
2078
+ output: OrganizationSSODomain,
2079
+ errors: [Forbidden, NotFound, Conflict, UnknownXataError],
2080
+ protocol: XataProtocol,
2081
+ retry: Retry.Retry,
2082
+ }));
1988
2083
  /** 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. */
1989
2084
  export const websocket = /*@__PURE__*/ API.make(() => ({
1990
2085
  input: WebsocketRequest,