@distilled.cloud/xata 0.0.0 → 1.0.0-rc.9
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.
- package/LICENSE +201 -0
- package/lib/credentials.d.ts +29 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +35 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +24 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +28 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +9 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +9 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +45 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +32 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +32 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/xata.d.ts +1973 -0
- package/lib/services/xata.d.ts.map +1 -0
- package/lib/services/xata.js +1999 -0
- package/lib/services/xata.js.map +1 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +77 -6
- package/src/credentials.ts +57 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +31 -0
- package/src/pagination.ts +8 -0
- package/src/protocol.ts +69 -0
- package/src/retry.ts +54 -0
- package/src/services/index.ts +2 -0
- package/src/services/xata.ts +4907 -0
- package/src/traits.ts +44 -0
|
@@ -0,0 +1,1999 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-xata). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
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
|
+
import { UnknownXataError } from "../errors.js";
|
|
9
|
+
import * as Retry from "../retry.js";
|
|
10
|
+
export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
11
|
+
/*@__PURE__*/ S.TaggedError()("BadRequest", {
|
|
12
|
+
code: S.Number,
|
|
13
|
+
message: S.String,
|
|
14
|
+
}).pipe(C.withBadRequestError), [{ status: 400 }]) {
|
|
15
|
+
}
|
|
16
|
+
export class Conflict extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
17
|
+
/*@__PURE__*/ S.TaggedError()("Conflict", {
|
|
18
|
+
code: S.Number,
|
|
19
|
+
message: S.String,
|
|
20
|
+
}).pipe(C.withConflictError), [{ status: 409 }]) {
|
|
21
|
+
}
|
|
22
|
+
export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
23
|
+
/*@__PURE__*/ S.TaggedError()("Forbidden", {
|
|
24
|
+
code: S.Number,
|
|
25
|
+
message: S.String,
|
|
26
|
+
}).pipe(C.withAuthError), [{ status: 403 }]) {
|
|
27
|
+
}
|
|
28
|
+
export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
29
|
+
/*@__PURE__*/ S.TaggedError()("NotFound", {
|
|
30
|
+
code: S.Number,
|
|
31
|
+
message: S.String,
|
|
32
|
+
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
33
|
+
}
|
|
34
|
+
export const LogFilterField = /*@__PURE__*/ S.String;
|
|
35
|
+
export const LogFilterOp = /*@__PURE__*/ S.String;
|
|
36
|
+
export const LogFilterValuesList = /*@__PURE__*/ S.Array(S.String);
|
|
37
|
+
export const LogFilter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
38
|
+
field: LogFilterField,
|
|
39
|
+
op: LogFilterOp,
|
|
40
|
+
values: S.optional(LogFilterValuesList),
|
|
41
|
+
value: S.optional(S.String),
|
|
42
|
+
})).annotate({ identifier: "LogFilter" });
|
|
43
|
+
export const BranchLogsRequestFiltersList = /*@__PURE__*/ S.Array(LogFilter);
|
|
44
|
+
export const BranchLogsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
45
|
+
organizationID: S.String.pipe(T.Label()),
|
|
46
|
+
projectID: S.String.pipe(T.Label()),
|
|
47
|
+
branchID: S.String.pipe(T.Label()),
|
|
48
|
+
start: S.String,
|
|
49
|
+
end: S.String,
|
|
50
|
+
filters: S.optional(BranchLogsRequestFiltersList),
|
|
51
|
+
limit: S.optional(S.Number),
|
|
52
|
+
cursor: S.optional(S.String),
|
|
53
|
+
}).pipe(T.Http({
|
|
54
|
+
method: "POST",
|
|
55
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}/logs",
|
|
56
|
+
code: 200,
|
|
57
|
+
}))).annotate({
|
|
58
|
+
identifier: "BranchLogsRequest",
|
|
59
|
+
});
|
|
60
|
+
export const LogLevel = /*@__PURE__*/ S.String;
|
|
61
|
+
export const LogEntry = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
62
|
+
timestamp: S.String,
|
|
63
|
+
instanceID: S.String,
|
|
64
|
+
level: S.optional(LogLevel),
|
|
65
|
+
message: S.String,
|
|
66
|
+
process: S.optional(S.String),
|
|
67
|
+
})).annotate({ identifier: "LogEntry" });
|
|
68
|
+
export const BranchLogsLogsList = /*@__PURE__*/ S.Array(LogEntry);
|
|
69
|
+
export const BranchLogs = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
70
|
+
start: S.String,
|
|
71
|
+
end: S.String,
|
|
72
|
+
logs: BranchLogsLogsList,
|
|
73
|
+
nextCursor: S.NullOr(S.String),
|
|
74
|
+
})).annotate({ identifier: "BranchLogs" });
|
|
75
|
+
export const BranchMetricName = /*@__PURE__*/ S.String;
|
|
76
|
+
export const BranchMetricsRequestMetricsList = /*@__PURE__*/ S.Array(BranchMetricName);
|
|
77
|
+
export const BranchMetricsRequestInstancesList = /*@__PURE__*/ S.Array(S.String);
|
|
78
|
+
export const BranchMetricsRequestAggregationsItem = /*@__PURE__*/ S.String;
|
|
79
|
+
export const BranchMetricsRequestAggregationsList = /*@__PURE__*/ S.Array(BranchMetricsRequestAggregationsItem);
|
|
80
|
+
export const BranchMetricsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
81
|
+
organizationID: S.String.pipe(T.Label()),
|
|
82
|
+
projectID: S.String.pipe(T.Label()),
|
|
83
|
+
branchID: S.String.pipe(T.Label()),
|
|
84
|
+
start: S.String,
|
|
85
|
+
end: S.String,
|
|
86
|
+
metrics: BranchMetricsRequestMetricsList,
|
|
87
|
+
instances: S.optional(BranchMetricsRequestInstancesList),
|
|
88
|
+
aggregations: BranchMetricsRequestAggregationsList,
|
|
89
|
+
}).pipe(T.Http({
|
|
90
|
+
method: "POST",
|
|
91
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}/metrics",
|
|
92
|
+
code: 200,
|
|
93
|
+
}))).annotate({
|
|
94
|
+
identifier: "BranchMetricsRequest",
|
|
95
|
+
});
|
|
96
|
+
export const MetricSeriesAggregation = /*@__PURE__*/ S.String;
|
|
97
|
+
export const MetricSeriesValuesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
98
|
+
timestamp: S.String,
|
|
99
|
+
value: S.Number,
|
|
100
|
+
})).annotate({
|
|
101
|
+
identifier: "MetricSeriesValuesItem",
|
|
102
|
+
});
|
|
103
|
+
export const MetricSeriesValuesList = /*@__PURE__*/ S.Array(MetricSeriesValuesItem);
|
|
104
|
+
export const MetricSeries = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
105
|
+
instanceID: S.String,
|
|
106
|
+
aggregation: MetricSeriesAggregation,
|
|
107
|
+
values: MetricSeriesValuesList,
|
|
108
|
+
})).annotate({ identifier: "MetricSeries" });
|
|
109
|
+
export const BranchMetricResultSeriesList = /*@__PURE__*/ S.Array(MetricSeries);
|
|
110
|
+
export const BranchMetricResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
111
|
+
metric: S.String,
|
|
112
|
+
unit: S.String,
|
|
113
|
+
series: BranchMetricResultSeriesList,
|
|
114
|
+
})).annotate({
|
|
115
|
+
identifier: "BranchMetricResult",
|
|
116
|
+
});
|
|
117
|
+
export const BranchMetricsResultsList = /*@__PURE__*/ S.Array(BranchMetricResult);
|
|
118
|
+
export const BranchMetrics = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
119
|
+
start: S.String,
|
|
120
|
+
end: S.String,
|
|
121
|
+
results: BranchMetricsResultsList,
|
|
122
|
+
})).annotate({ identifier: "BranchMetrics" });
|
|
123
|
+
export const CreateBillingCheckoutSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
124
|
+
organizationID: S.String.pipe(T.Label()),
|
|
125
|
+
}).pipe(T.Http({
|
|
126
|
+
method: "POST",
|
|
127
|
+
uri: "/organizations/{organizationID}/billing/checkout-session",
|
|
128
|
+
code: 200,
|
|
129
|
+
}))).annotate({
|
|
130
|
+
identifier: "CreateBillingCheckoutSessionRequest",
|
|
131
|
+
});
|
|
132
|
+
export const BillingCheckoutSessionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
133
|
+
url: S.String,
|
|
134
|
+
})).annotate({
|
|
135
|
+
identifier: "BillingCheckoutSessionResponse",
|
|
136
|
+
});
|
|
137
|
+
export const CreateBillingPaymentMethodSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
138
|
+
organizationID: S.String.pipe(T.Label()),
|
|
139
|
+
}).pipe(T.Http({
|
|
140
|
+
method: "POST",
|
|
141
|
+
uri: "/organizations/{organizationID}/billing/payment-method-session",
|
|
142
|
+
code: 200,
|
|
143
|
+
}))).annotate({
|
|
144
|
+
identifier: "CreateBillingPaymentMethodSessionRequest",
|
|
145
|
+
});
|
|
146
|
+
export const BillingPaymentMethodSessionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
147
|
+
url: S.String,
|
|
148
|
+
})).annotate({
|
|
149
|
+
identifier: "BillingPaymentMethodSessionResponse",
|
|
150
|
+
});
|
|
151
|
+
export const ScaleToZeroConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
152
|
+
enabled: S.Boolean,
|
|
153
|
+
inactivityPeriodMinutes: S.Number,
|
|
154
|
+
})).annotate({
|
|
155
|
+
identifier: "ScaleToZeroConfiguration",
|
|
156
|
+
});
|
|
157
|
+
export const BackupConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
158
|
+
retentionPeriod: S.optional(S.Number),
|
|
159
|
+
backupTime: S.optional(S.String),
|
|
160
|
+
})).annotate({
|
|
161
|
+
identifier: "BackupConfiguration",
|
|
162
|
+
});
|
|
163
|
+
export const CreateBranchRequestMode = /*@__PURE__*/ S.String;
|
|
164
|
+
export const CreateBranchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
165
|
+
organizationID: S.String.pipe(T.Label()),
|
|
166
|
+
projectID: S.String.pipe(T.Label()),
|
|
167
|
+
name: S.String,
|
|
168
|
+
description: S.optional(S.String),
|
|
169
|
+
scaleToZero: S.optional(ScaleToZeroConfiguration),
|
|
170
|
+
backupConfiguration: S.optional(BackupConfiguration),
|
|
171
|
+
mode: CreateBranchRequestMode,
|
|
172
|
+
}).pipe(T.Http({
|
|
173
|
+
method: "POST",
|
|
174
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/branches",
|
|
175
|
+
code: 200,
|
|
176
|
+
}))).annotate({
|
|
177
|
+
identifier: "CreateBranchRequest",
|
|
178
|
+
});
|
|
179
|
+
export const BranchShortMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
180
|
+
id: S.String,
|
|
181
|
+
name: S.String,
|
|
182
|
+
description: S.optional(S.String),
|
|
183
|
+
createdAt: S.String,
|
|
184
|
+
updatedAt: S.String,
|
|
185
|
+
parentID: S.optional(S.NullOr(S.String)),
|
|
186
|
+
connectionString: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
187
|
+
region: S.String,
|
|
188
|
+
publicAccess: S.Boolean,
|
|
189
|
+
})).annotate({
|
|
190
|
+
identifier: "BranchShortMetadata",
|
|
191
|
+
});
|
|
192
|
+
export const CreateGithubAppInstallationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
193
|
+
organizationID: S.String.pipe(T.Label()),
|
|
194
|
+
installationId: S.Number,
|
|
195
|
+
}).pipe(T.Http({
|
|
196
|
+
method: "POST",
|
|
197
|
+
uri: "/organizations/{organizationID}/githubapp/installations",
|
|
198
|
+
code: 200,
|
|
199
|
+
}))).annotate({
|
|
200
|
+
identifier: "CreateGithubAppInstallationRequest",
|
|
201
|
+
});
|
|
202
|
+
export const GithubInstallation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
203
|
+
id: S.String,
|
|
204
|
+
installationId: S.Number,
|
|
205
|
+
organization: S.String,
|
|
206
|
+
createdAt: S.String,
|
|
207
|
+
updatedAt: S.String,
|
|
208
|
+
})).annotate({
|
|
209
|
+
identifier: "GithubInstallation",
|
|
210
|
+
});
|
|
211
|
+
export const CreateGithubRepositoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
212
|
+
organizationID: S.String.pipe(T.Label()),
|
|
213
|
+
projectID: S.String.pipe(T.Label()),
|
|
214
|
+
branchID: S.String.pipe(T.Label()),
|
|
215
|
+
githubRepositoryID: S.Number,
|
|
216
|
+
}).pipe(T.Http({
|
|
217
|
+
method: "POST",
|
|
218
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}/githubapp/repository",
|
|
219
|
+
code: 200,
|
|
220
|
+
}))).annotate({
|
|
221
|
+
identifier: "CreateGithubRepositoryRequest",
|
|
222
|
+
});
|
|
223
|
+
export const GithubRepository = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
224
|
+
id: S.String,
|
|
225
|
+
githubRepositoryID: S.Number,
|
|
226
|
+
project: S.String,
|
|
227
|
+
rootBranchId: S.String,
|
|
228
|
+
createdAt: S.String,
|
|
229
|
+
updatedAt: S.String,
|
|
230
|
+
})).annotate({
|
|
231
|
+
identifier: "GithubRepository",
|
|
232
|
+
});
|
|
233
|
+
export const CreateOrganizationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
234
|
+
name: S.String,
|
|
235
|
+
}).pipe(T.Http({ method: "POST", uri: "/organizations", code: 200 }))).annotate({
|
|
236
|
+
identifier: "CreateOrganizationRequest",
|
|
237
|
+
});
|
|
238
|
+
export const OrganizationStatusStatus = /*@__PURE__*/ S.String;
|
|
239
|
+
export const OrganizationStatusBillingStatus = /*@__PURE__*/ S.String;
|
|
240
|
+
export const OrganizationStatusUsageTier = /*@__PURE__*/ S.String;
|
|
241
|
+
export const OrganizationStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
242
|
+
status: OrganizationStatusStatus,
|
|
243
|
+
disabled_by_admin: S.Boolean,
|
|
244
|
+
admin_reason: S.optional(S.String),
|
|
245
|
+
billing_status: OrganizationStatusBillingStatus,
|
|
246
|
+
billing_reason: S.optional(S.String),
|
|
247
|
+
usage_tier: OrganizationStatusUsageTier,
|
|
248
|
+
last_updated: S.String,
|
|
249
|
+
created_at: S.optional(S.String),
|
|
250
|
+
})).annotate({
|
|
251
|
+
identifier: "OrganizationStatus",
|
|
252
|
+
});
|
|
253
|
+
export const OrganizationMarketplaceProvider = /*@__PURE__*/ S.String;
|
|
254
|
+
export const Organization = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
255
|
+
id: S.String,
|
|
256
|
+
name: S.String,
|
|
257
|
+
status: OrganizationStatus,
|
|
258
|
+
marketplace: S.optional(S.NullOr(OrganizationMarketplaceProvider)),
|
|
259
|
+
})).annotate({ identifier: "Organization" });
|
|
260
|
+
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);
|
|
265
|
+
export const CreateOrganizationAPIKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
266
|
+
organizationID: S.String.pipe(T.Label()),
|
|
267
|
+
name: S.String,
|
|
268
|
+
expiry: S.optional(S.NullOr(S.String)),
|
|
269
|
+
scopes: S.optional(CreateOrganizationAPIKeyRequestScopesList),
|
|
270
|
+
projects: S.optional(CreateOrganizationAPIKeyRequestProjectsList),
|
|
271
|
+
branches: S.optional(CreateOrganizationAPIKeyRequestBranchesList),
|
|
272
|
+
}).pipe(T.Http({
|
|
273
|
+
method: "POST",
|
|
274
|
+
uri: "/organizations/{organizationID}/api-keys",
|
|
275
|
+
code: 200,
|
|
276
|
+
}))).annotate({
|
|
277
|
+
identifier: "CreateOrganizationAPIKeyRequest",
|
|
278
|
+
});
|
|
279
|
+
export const FullAPIKeyScopesList = /*@__PURE__*/ S.Array(S.String);
|
|
280
|
+
export const FullAPIKeyProjectsList = /*@__PURE__*/ S.Array(S.String);
|
|
281
|
+
export const FullAPIKeyBranchesList = /*@__PURE__*/ S.Array(S.String);
|
|
282
|
+
export const FullAPIKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
283
|
+
id: S.String,
|
|
284
|
+
name: S.String,
|
|
285
|
+
preview: S.String,
|
|
286
|
+
scopes: FullAPIKeyScopesList,
|
|
287
|
+
projects: FullAPIKeyProjectsList,
|
|
288
|
+
branches: FullAPIKeyBranchesList,
|
|
289
|
+
created_at: S.String,
|
|
290
|
+
expiry: S.NullOr(S.String),
|
|
291
|
+
last_used: S.NullOr(S.String),
|
|
292
|
+
token: S.String,
|
|
293
|
+
created_by: S.optional(S.NullOr(S.String)),
|
|
294
|
+
created_by_key: S.optional(S.NullOr(S.String)),
|
|
295
|
+
})).annotate({ identifier: "FullAPIKey" });
|
|
296
|
+
export const CreateOrganizationAPIKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
297
|
+
key: FullAPIKey,
|
|
298
|
+
})).annotate({
|
|
299
|
+
identifier: "CreateOrganizationAPIKeyResponse",
|
|
300
|
+
});
|
|
301
|
+
export const CreateOrganizationInvitationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
302
|
+
organizationID: S.String.pipe(T.Label()),
|
|
303
|
+
email: S.String,
|
|
304
|
+
}).pipe(T.Http({
|
|
305
|
+
method: "POST",
|
|
306
|
+
uri: "/organizations/{organizationID}/invitations",
|
|
307
|
+
code: 200,
|
|
308
|
+
}))).annotate({
|
|
309
|
+
identifier: "CreateOrganizationInvitationRequest",
|
|
310
|
+
});
|
|
311
|
+
export const CreateOrganizationInvitationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
312
|
+
identifier: "CreateOrganizationInvitationResponse",
|
|
313
|
+
});
|
|
314
|
+
export const ProjectScaleToZeroConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
315
|
+
baseBranches: ScaleToZeroConfiguration,
|
|
316
|
+
childBranches: ScaleToZeroConfiguration,
|
|
317
|
+
})).annotate({
|
|
318
|
+
identifier: "ProjectScaleToZeroConfiguration",
|
|
319
|
+
});
|
|
320
|
+
export const CidrEntry = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
321
|
+
cidr: S.String,
|
|
322
|
+
description: S.optional(S.String),
|
|
323
|
+
})).annotate({ identifier: "CidrEntry" });
|
|
324
|
+
export const IPFilteringConfigurationCidrList = /*@__PURE__*/ S.Array(CidrEntry);
|
|
325
|
+
export const IPFilteringConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
326
|
+
enabled: S.Boolean,
|
|
327
|
+
cidr: IPFilteringConfigurationCidrList,
|
|
328
|
+
})).annotate({
|
|
329
|
+
identifier: "IPFilteringConfiguration",
|
|
330
|
+
});
|
|
331
|
+
export const ProjectConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
332
|
+
scaleToZero: ProjectScaleToZeroConfiguration,
|
|
333
|
+
ipFiltering: S.optional(IPFilteringConfiguration),
|
|
334
|
+
})).annotate({
|
|
335
|
+
identifier: "ProjectConfiguration",
|
|
336
|
+
});
|
|
337
|
+
export const CreateProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
338
|
+
organizationID: S.String.pipe(T.Label()),
|
|
339
|
+
name: S.String,
|
|
340
|
+
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
|
+
export const Project = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
349
|
+
id: S.String,
|
|
350
|
+
name: S.String,
|
|
351
|
+
createdAt: S.String,
|
|
352
|
+
updatedAt: S.String,
|
|
353
|
+
configuration: ProjectConfiguration,
|
|
354
|
+
})).annotate({ identifier: "Project" });
|
|
355
|
+
export const CreateUserAPIKeyRequestScopesList = /*@__PURE__*/ S.Array(S.String);
|
|
356
|
+
export const CreateUserAPIKeyRequestProjectsList = /*@__PURE__*/ S.Array(S.String);
|
|
357
|
+
export const CreateUserAPIKeyRequestBranchesList = /*@__PURE__*/ S.Array(S.String);
|
|
358
|
+
export const CreateUserAPIKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
359
|
+
name: S.String,
|
|
360
|
+
expiry: S.optional(S.NullOr(S.String)),
|
|
361
|
+
scopes: S.optional(CreateUserAPIKeyRequestScopesList),
|
|
362
|
+
projects: S.optional(CreateUserAPIKeyRequestProjectsList),
|
|
363
|
+
branches: S.optional(CreateUserAPIKeyRequestBranchesList),
|
|
364
|
+
}).pipe(T.Http({ method: "POST", uri: "/api-keys", code: 200 }))).annotate({
|
|
365
|
+
identifier: "CreateUserAPIKeyRequest",
|
|
366
|
+
});
|
|
367
|
+
export const CreateUserAPIKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
368
|
+
key: FullAPIKey,
|
|
369
|
+
})).annotate({
|
|
370
|
+
identifier: "CreateUserAPIKeyResponse",
|
|
371
|
+
});
|
|
372
|
+
export const DeleteBranchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
373
|
+
organizationID: S.String.pipe(T.Label()),
|
|
374
|
+
projectID: S.String.pipe(T.Label()),
|
|
375
|
+
branchID: S.String.pipe(T.Label()),
|
|
376
|
+
}).pipe(T.Http({
|
|
377
|
+
method: "DELETE",
|
|
378
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}",
|
|
379
|
+
code: 200,
|
|
380
|
+
}))).annotate({
|
|
381
|
+
identifier: "DeleteBranchRequest",
|
|
382
|
+
});
|
|
383
|
+
export const DeleteBranchResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
384
|
+
identifier: "DeleteBranchResponse",
|
|
385
|
+
});
|
|
386
|
+
export const DeleteGithubRepositoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
387
|
+
organizationID: S.String.pipe(T.Label()),
|
|
388
|
+
projectID: S.String.pipe(T.Label()),
|
|
389
|
+
branchID: S.String.pipe(T.Label()),
|
|
390
|
+
}).pipe(T.Http({
|
|
391
|
+
method: "DELETE",
|
|
392
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}/githubapp/repository",
|
|
393
|
+
code: 200,
|
|
394
|
+
}))).annotate({
|
|
395
|
+
identifier: "DeleteGithubRepositoryRequest",
|
|
396
|
+
});
|
|
397
|
+
export const DeleteGithubRepositoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
398
|
+
identifier: "DeleteGithubRepositoryResponse",
|
|
399
|
+
});
|
|
400
|
+
export const DeleteInstallationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
401
|
+
installationId: S.String.pipe(T.Label()),
|
|
402
|
+
cascadeResourceDeletion: S.optional(S.Boolean),
|
|
403
|
+
reason: S.optional(S.String),
|
|
404
|
+
}).pipe(T.Http({
|
|
405
|
+
method: "DELETE",
|
|
406
|
+
uri: "/v1/installations/{installationId}",
|
|
407
|
+
code: 200,
|
|
408
|
+
}))).annotate({
|
|
409
|
+
identifier: "DeleteInstallationRequest",
|
|
410
|
+
});
|
|
411
|
+
export const DeleteInstallationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
412
|
+
identifier: "DeleteInstallationResponse",
|
|
413
|
+
});
|
|
414
|
+
export const DeleteOrganizationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
415
|
+
organizationID: S.String.pipe(T.Label()),
|
|
416
|
+
}).pipe(T.Http({
|
|
417
|
+
method: "DELETE",
|
|
418
|
+
uri: "/organizations/{organizationID}",
|
|
419
|
+
code: 200,
|
|
420
|
+
}))).annotate({
|
|
421
|
+
identifier: "DeleteOrganizationRequest",
|
|
422
|
+
});
|
|
423
|
+
export const DeleteOrganizationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
424
|
+
identifier: "DeleteOrganizationResponse",
|
|
425
|
+
});
|
|
426
|
+
export const DeleteOrganizationAPIKeysRequestIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
427
|
+
export const DeleteOrganizationAPIKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
428
|
+
organizationID: S.String.pipe(T.Label()),
|
|
429
|
+
ids: DeleteOrganizationAPIKeysRequestIdsList,
|
|
430
|
+
}).pipe(T.Http({
|
|
431
|
+
method: "DELETE",
|
|
432
|
+
uri: "/organizations/{organizationID}/api-keys",
|
|
433
|
+
code: 200,
|
|
434
|
+
}))).annotate({
|
|
435
|
+
identifier: "DeleteOrganizationAPIKeysRequest",
|
|
436
|
+
});
|
|
437
|
+
export const DeleteOrganizationAPIKeysResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
438
|
+
identifier: "DeleteOrganizationAPIKeysResponse",
|
|
439
|
+
});
|
|
440
|
+
export const DeleteOrganizationInvitationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
441
|
+
organizationID: S.String.pipe(T.Label()),
|
|
442
|
+
invitationID: S.String.pipe(T.Label()),
|
|
443
|
+
}).pipe(T.Http({
|
|
444
|
+
method: "DELETE",
|
|
445
|
+
uri: "/organizations/{organizationID}/invitations/{invitationID}",
|
|
446
|
+
code: 200,
|
|
447
|
+
}))).annotate({
|
|
448
|
+
identifier: "DeleteOrganizationInvitationRequest",
|
|
449
|
+
});
|
|
450
|
+
export const DeleteOrganizationInvitationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
451
|
+
identifier: "DeleteOrganizationInvitationResponse",
|
|
452
|
+
});
|
|
453
|
+
export const DeleteProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
454
|
+
organizationID: S.String.pipe(T.Label()),
|
|
455
|
+
projectID: S.String.pipe(T.Label()),
|
|
456
|
+
}).pipe(T.Http({
|
|
457
|
+
method: "DELETE",
|
|
458
|
+
uri: "/organizations/{organizationID}/projects/{projectID}",
|
|
459
|
+
code: 200,
|
|
460
|
+
}))).annotate({
|
|
461
|
+
identifier: "DeleteProjectRequest",
|
|
462
|
+
});
|
|
463
|
+
export const DeleteProjectResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
464
|
+
identifier: "DeleteProjectResponse",
|
|
465
|
+
});
|
|
466
|
+
export const DeleteUserAPIKeysRequestIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
467
|
+
export const DeleteUserAPIKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
468
|
+
ids: DeleteUserAPIKeysRequestIdsList,
|
|
469
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/api-keys", code: 200 }))).annotate({
|
|
470
|
+
identifier: "DeleteUserAPIKeysRequest",
|
|
471
|
+
});
|
|
472
|
+
export const DeleteUserAPIKeysResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
473
|
+
identifier: "DeleteUserAPIKeysResponse",
|
|
474
|
+
});
|
|
475
|
+
export const DescribeBranchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
476
|
+
organizationID: S.String.pipe(T.Label()),
|
|
477
|
+
projectID: S.String.pipe(T.Label()),
|
|
478
|
+
branchID: S.String.pipe(T.Label()),
|
|
479
|
+
}).pipe(T.Http({
|
|
480
|
+
method: "GET",
|
|
481
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}",
|
|
482
|
+
code: 200,
|
|
483
|
+
}))).annotate({
|
|
484
|
+
identifier: "DescribeBranchRequest",
|
|
485
|
+
});
|
|
486
|
+
export const BranchStatusStatusType = /*@__PURE__*/ S.String;
|
|
487
|
+
export const ClusterLifecycleState = /*@__PURE__*/ S.String;
|
|
488
|
+
export const ClusterLifecycle = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
489
|
+
state: ClusterLifecycleState,
|
|
490
|
+
reason: S.optional(S.String),
|
|
491
|
+
phase: S.String,
|
|
492
|
+
})).annotate({
|
|
493
|
+
identifier: "ClusterLifecycle",
|
|
494
|
+
});
|
|
495
|
+
export const InstanceStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
496
|
+
id: S.String,
|
|
497
|
+
status: S.String,
|
|
498
|
+
primary: S.Boolean,
|
|
499
|
+
targetPrimary: S.Boolean,
|
|
500
|
+
})).annotate({ identifier: "InstanceStatus" });
|
|
501
|
+
export const BranchStatusInstancesList = /*@__PURE__*/ S.Array(InstanceStatus);
|
|
502
|
+
export const BranchStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
503
|
+
status: S.String,
|
|
504
|
+
statusType: BranchStatusStatusType,
|
|
505
|
+
message: S.optional(S.String),
|
|
506
|
+
lifecycle: S.optional(ClusterLifecycle),
|
|
507
|
+
instanceCount: S.Number,
|
|
508
|
+
instanceReadyCount: S.Number,
|
|
509
|
+
instances: BranchStatusInstancesList,
|
|
510
|
+
})).annotate({ identifier: "BranchStatus" });
|
|
511
|
+
export const ClusterConfigurationPostgresConfigurationParametersMap =
|
|
512
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
513
|
+
export const ClusterConfigurationPreloadLibrariesList = /*@__PURE__*/ S.Array(S.String);
|
|
514
|
+
export const ClusterConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
515
|
+
region: S.String,
|
|
516
|
+
storage: S.optional(S.Number),
|
|
517
|
+
instanceType: S.String,
|
|
518
|
+
image: S.String,
|
|
519
|
+
replicas: S.Number,
|
|
520
|
+
postgresConfigurationParameters: S.optional(ClusterConfigurationPostgresConfigurationParametersMap),
|
|
521
|
+
preloadLibraries: S.optional(ClusterConfigurationPreloadLibrariesList),
|
|
522
|
+
})).annotate({
|
|
523
|
+
identifier: "ClusterConfiguration",
|
|
524
|
+
});
|
|
525
|
+
export const BranchMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
526
|
+
id: S.String,
|
|
527
|
+
name: S.String,
|
|
528
|
+
description: S.optional(S.String),
|
|
529
|
+
createdAt: S.String,
|
|
530
|
+
updatedAt: S.String,
|
|
531
|
+
parentID: S.optional(S.NullOr(S.String)),
|
|
532
|
+
region: S.String,
|
|
533
|
+
status: BranchStatus,
|
|
534
|
+
connectionString: S.NullOr(S.String).pipe(T.SensitiveValue({})),
|
|
535
|
+
publicAccess: S.Boolean,
|
|
536
|
+
backupsEnabled: S.Boolean,
|
|
537
|
+
scaleToZero: ScaleToZeroConfiguration,
|
|
538
|
+
configuration: ClusterConfiguration,
|
|
539
|
+
backupConfiguration: S.optional(BackupConfiguration),
|
|
540
|
+
})).annotate({ identifier: "BranchMetadata" });
|
|
541
|
+
export const GetBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
542
|
+
organizationID: S.String.pipe(T.Label()),
|
|
543
|
+
projectID: S.String.pipe(T.Label()),
|
|
544
|
+
backupID: S.String.pipe(T.Label()),
|
|
545
|
+
}).pipe(T.Http({
|
|
546
|
+
method: "GET",
|
|
547
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/backups/{backupID}",
|
|
548
|
+
code: 200,
|
|
549
|
+
}))).annotate({
|
|
550
|
+
identifier: "GetBackupRequest",
|
|
551
|
+
});
|
|
552
|
+
export const BackupMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
553
|
+
id: S.String,
|
|
554
|
+
branchID: S.String,
|
|
555
|
+
earliestRestore: S.optional(S.String),
|
|
556
|
+
latestRestore: S.optional(S.String),
|
|
557
|
+
description: S.String,
|
|
558
|
+
})).annotate({ identifier: "BackupMetadata" });
|
|
559
|
+
export const GetBillingCustomerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
560
|
+
organizationID: S.String.pipe(T.Label()),
|
|
561
|
+
}).pipe(T.Http({
|
|
562
|
+
method: "GET",
|
|
563
|
+
uri: "/organizations/{organizationID}/billing/customer",
|
|
564
|
+
code: 200,
|
|
565
|
+
}))).annotate({
|
|
566
|
+
identifier: "GetBillingCustomerRequest",
|
|
567
|
+
});
|
|
568
|
+
export const BillingCollectionMethod = /*@__PURE__*/ S.String;
|
|
569
|
+
export const BillingPaymentMethodCard = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
570
|
+
brand: S.String,
|
|
571
|
+
last4: S.String,
|
|
572
|
+
expiry_month: S.Number,
|
|
573
|
+
expiry_year: S.Number,
|
|
574
|
+
})).annotate({
|
|
575
|
+
identifier: "BillingPaymentMethodCard",
|
|
576
|
+
});
|
|
577
|
+
export const BillingPaymentMethod = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
578
|
+
card: BillingPaymentMethodCard,
|
|
579
|
+
})).annotate({
|
|
580
|
+
identifier: "BillingPaymentMethod",
|
|
581
|
+
});
|
|
582
|
+
export const BillingCreditStatus = /*@__PURE__*/ S.String;
|
|
583
|
+
export const BillingCredit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
584
|
+
id: S.String,
|
|
585
|
+
balance: S.Number,
|
|
586
|
+
effective_date: S.String,
|
|
587
|
+
expiry_date: S.NullOr(S.String),
|
|
588
|
+
maximum_initial_balance: S.Number,
|
|
589
|
+
status: BillingCreditStatus,
|
|
590
|
+
})).annotate({ identifier: "BillingCredit" });
|
|
591
|
+
export const BillingCustomerResponseCreditsList = /*@__PURE__*/ S.Array(BillingCredit);
|
|
592
|
+
export const BillingCreditDetailsActiveCreditsList = /*@__PURE__*/ S.Array(BillingCredit);
|
|
593
|
+
export const BillingCreditDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
594
|
+
total_lifetime_credits: S.Number,
|
|
595
|
+
last_expiry: S.NullOr(S.String),
|
|
596
|
+
last_expiry_with_balance: S.NullOr(S.String),
|
|
597
|
+
active_credits: BillingCreditDetailsActiveCreditsList,
|
|
598
|
+
last_active_credit_expiry: S.NullOr(S.String),
|
|
599
|
+
total_active_credits: S.Number,
|
|
600
|
+
days_until_last_active_credit_expiry: S.NullOr(S.Number),
|
|
601
|
+
days_until_last_expiry_with_balance: S.NullOr(S.Number),
|
|
602
|
+
})).annotate({
|
|
603
|
+
identifier: "BillingCreditDetails",
|
|
604
|
+
});
|
|
605
|
+
export const BillingCustomerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
606
|
+
billing_email: S.String,
|
|
607
|
+
marketplace: S.NullOr(OrganizationMarketplaceProvider),
|
|
608
|
+
collection_method: BillingCollectionMethod,
|
|
609
|
+
can_collect_payment: S.Boolean,
|
|
610
|
+
has_payment_method: S.Boolean,
|
|
611
|
+
default_payment_method: S.NullOr(BillingPaymentMethod),
|
|
612
|
+
credits: BillingCustomerResponseCreditsList,
|
|
613
|
+
credit_details: BillingCreditDetails,
|
|
614
|
+
})).annotate({
|
|
615
|
+
identifier: "BillingCustomerResponse",
|
|
616
|
+
});
|
|
617
|
+
export const GetBillingInvoicesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
618
|
+
organizationID: S.String.pipe(T.Label()),
|
|
619
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
620
|
+
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({
|
|
626
|
+
identifier: "GetBillingInvoicesRequest",
|
|
627
|
+
});
|
|
628
|
+
export const BillingInvoiceStatus = /*@__PURE__*/ S.String;
|
|
629
|
+
export const BillingInvoice = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
630
|
+
id: S.String,
|
|
631
|
+
invoice_number: S.String,
|
|
632
|
+
amount_due: S.Number,
|
|
633
|
+
currency: S.String,
|
|
634
|
+
invoice_date: S.String,
|
|
635
|
+
status: BillingInvoiceStatus,
|
|
636
|
+
invoice_pdf: S.NullOr(S.String),
|
|
637
|
+
})).annotate({ identifier: "BillingInvoice" });
|
|
638
|
+
export const BillingInvoicesResponseDataList = /*@__PURE__*/ S.Array(BillingInvoice);
|
|
639
|
+
export const PaginationMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
640
|
+
has_more: S.Boolean,
|
|
641
|
+
next_cursor: S.NullOr(S.String),
|
|
642
|
+
})).annotate({
|
|
643
|
+
identifier: "PaginationMetadata",
|
|
644
|
+
});
|
|
645
|
+
export const BillingInvoicesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
646
|
+
data: BillingInvoicesResponseDataList,
|
|
647
|
+
pagination_metadata: PaginationMetadata,
|
|
648
|
+
})).annotate({
|
|
649
|
+
identifier: "BillingInvoicesResponse",
|
|
650
|
+
});
|
|
651
|
+
export const GetBillingUpcomingInvoiceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
652
|
+
organizationID: S.String.pipe(T.Label()),
|
|
653
|
+
}).pipe(T.Http({
|
|
654
|
+
method: "GET",
|
|
655
|
+
uri: "/organizations/{organizationID}/billing/invoices/upcoming",
|
|
656
|
+
code: 200,
|
|
657
|
+
}))).annotate({
|
|
658
|
+
identifier: "GetBillingUpcomingInvoiceRequest",
|
|
659
|
+
});
|
|
660
|
+
export const BillingUpcomingInvoiceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
661
|
+
created_at: S.String,
|
|
662
|
+
amount_due: S.Number,
|
|
663
|
+
currency: S.String,
|
|
664
|
+
target_date: S.String,
|
|
665
|
+
subtotal: S.Number,
|
|
666
|
+
total: S.Number,
|
|
667
|
+
hosted_invoice_url: S.NullOr(S.String),
|
|
668
|
+
})).annotate({
|
|
669
|
+
identifier: "BillingUpcomingInvoiceResponse",
|
|
670
|
+
});
|
|
671
|
+
export const GetBranchCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
672
|
+
organizationID: S.String.pipe(T.Label()),
|
|
673
|
+
projectID: S.String.pipe(T.Label()),
|
|
674
|
+
branchID: S.String.pipe(T.Label()),
|
|
675
|
+
username: S.optional(S.String.pipe(T.Query())),
|
|
676
|
+
}).pipe(T.Http({
|
|
677
|
+
method: "GET",
|
|
678
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}/credentials",
|
|
679
|
+
code: 200,
|
|
680
|
+
}))).annotate({
|
|
681
|
+
identifier: "GetBranchCredentialsRequest",
|
|
682
|
+
});
|
|
683
|
+
export const BranchCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
684
|
+
username: S.String,
|
|
685
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
686
|
+
hostname: S.String,
|
|
687
|
+
port: S.Number,
|
|
688
|
+
dbname: S.String,
|
|
689
|
+
connectionString: S.String.pipe(T.SensitiveValue({})),
|
|
690
|
+
})).annotate({
|
|
691
|
+
identifier: "BranchCredentials",
|
|
692
|
+
});
|
|
693
|
+
export const GetBranchPostgresConfigRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
694
|
+
organizationID: S.String.pipe(T.Label()),
|
|
695
|
+
projectID: S.String.pipe(T.Label()),
|
|
696
|
+
branchID: S.String.pipe(T.Label()),
|
|
697
|
+
}).pipe(T.Http({
|
|
698
|
+
method: "GET",
|
|
699
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}/postgres-config",
|
|
700
|
+
code: 200,
|
|
701
|
+
}))).annotate({
|
|
702
|
+
identifier: "GetBranchPostgresConfigRequest",
|
|
703
|
+
});
|
|
704
|
+
export const PostgresConfigParameterType = /*@__PURE__*/ S.String;
|
|
705
|
+
export const PostgresConfigParameterAcceptableRangeEnumValuesList =
|
|
706
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
707
|
+
export const PostgresConfigParameterAcceptableRange = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
708
|
+
minValue: S.optional(S.String),
|
|
709
|
+
maxValue: S.optional(S.String),
|
|
710
|
+
enumValues: S.optional(PostgresConfigParameterAcceptableRangeEnumValuesList),
|
|
711
|
+
})).annotate({
|
|
712
|
+
identifier: "PostgresConfigParameterAcceptableRange",
|
|
713
|
+
});
|
|
714
|
+
export const PostgresConfigParameterDefaultValueSource = /*@__PURE__*/ S.String;
|
|
715
|
+
export const PostgresConfigParameter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
716
|
+
name: S.String,
|
|
717
|
+
type: PostgresConfigParameterType,
|
|
718
|
+
description: S.String,
|
|
719
|
+
section: S.String,
|
|
720
|
+
acceptableRange: S.optional(PostgresConfigParameterAcceptableRange),
|
|
721
|
+
defaultValue: S.String,
|
|
722
|
+
defaultValueSource: PostgresConfigParameterDefaultValueSource,
|
|
723
|
+
currentValue: S.String,
|
|
724
|
+
documentationLink: S.String,
|
|
725
|
+
recommendation: S.String,
|
|
726
|
+
restartRequired: S.optional(S.Boolean),
|
|
727
|
+
})).annotate({
|
|
728
|
+
identifier: "PostgresConfigParameter",
|
|
729
|
+
});
|
|
730
|
+
export const PostgresConfigDetailsParametersList = /*@__PURE__*/ S.Array(PostgresConfigParameter);
|
|
731
|
+
export const PostgresConfigDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
732
|
+
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" });
|
|
751
|
+
export const GetGithubRepositoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
752
|
+
organizationID: S.String.pipe(T.Label()),
|
|
753
|
+
projectID: S.String.pipe(T.Label()),
|
|
754
|
+
branchID: S.String.pipe(T.Label()),
|
|
755
|
+
}).pipe(T.Http({
|
|
756
|
+
method: "GET",
|
|
757
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}/githubapp/repository",
|
|
758
|
+
code: 200,
|
|
759
|
+
}))).annotate({
|
|
760
|
+
identifier: "GetGithubRepositoryRequest",
|
|
761
|
+
});
|
|
762
|
+
export const GetGithubRepositoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
763
|
+
mapping: S.NullOr(GithubRepository),
|
|
764
|
+
})).annotate({
|
|
765
|
+
identifier: "GetGithubRepositoryResponse",
|
|
766
|
+
});
|
|
767
|
+
export const GetOrganizationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
768
|
+
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
|
+
});
|
|
776
|
+
export const GetOrganizationInvitationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
777
|
+
organizationID: S.String.pipe(T.Label()),
|
|
778
|
+
invitationID: S.String.pipe(T.Label()),
|
|
779
|
+
}).pipe(T.Http({
|
|
780
|
+
method: "GET",
|
|
781
|
+
uri: "/organizations/{organizationID}/invitations/{invitationID}",
|
|
782
|
+
code: 200,
|
|
783
|
+
}))).annotate({
|
|
784
|
+
identifier: "GetOrganizationInvitationRequest",
|
|
785
|
+
});
|
|
786
|
+
export const OrganizationInvitationStatus = /*@__PURE__*/ S.String;
|
|
787
|
+
export const OrganizationInvitation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
788
|
+
id: S.String,
|
|
789
|
+
organization_id: S.String,
|
|
790
|
+
email: S.String,
|
|
791
|
+
first_name: S.optional(S.NullOr(S.String)),
|
|
792
|
+
last_name: S.optional(S.NullOr(S.String)),
|
|
793
|
+
created_at: S.String,
|
|
794
|
+
expires_at: S.String,
|
|
795
|
+
status: OrganizationInvitationStatus,
|
|
796
|
+
invite_link: S.optional(S.String),
|
|
797
|
+
})).annotate({
|
|
798
|
+
identifier: "OrganizationInvitation",
|
|
799
|
+
});
|
|
800
|
+
export const GetOrganizationLimitsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
801
|
+
organizationID: S.String.pipe(T.Label()),
|
|
802
|
+
}).pipe(T.Http({
|
|
803
|
+
method: "GET",
|
|
804
|
+
uri: "/organizations/{organizationID}/limits",
|
|
805
|
+
code: 200,
|
|
806
|
+
}))).annotate({
|
|
807
|
+
identifier: "GetOrganizationLimitsRequest",
|
|
808
|
+
});
|
|
809
|
+
export const GetOrganizationLimitsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
810
|
+
maxDescriptionLength: S.Number,
|
|
811
|
+
maxBranchesPerProject: S.Number,
|
|
812
|
+
maxInstancesPerBranch: S.Number,
|
|
813
|
+
minInstancesPerBranch: S.Number,
|
|
814
|
+
maxAllowedInstanceType: S.Number,
|
|
815
|
+
maxBranchesPerHour: S.Number,
|
|
816
|
+
maxStorageGBPerBranch: S.Number,
|
|
817
|
+
maxProjects: S.Number,
|
|
818
|
+
maxProjectsPerHour: S.Number,
|
|
819
|
+
maxBranchesPerOrg: S.Number,
|
|
820
|
+
})).annotate({
|
|
821
|
+
identifier: "GetOrganizationLimitsResponse",
|
|
822
|
+
});
|
|
823
|
+
export const GetOrganizationMembershipLimitsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
824
|
+
organizationID: S.String.pipe(T.Label()),
|
|
825
|
+
}).pipe(T.Http({
|
|
826
|
+
method: "GET",
|
|
827
|
+
uri: "/organizations/{organizationID}/membership-limits",
|
|
828
|
+
code: 200,
|
|
829
|
+
}))).annotate({
|
|
830
|
+
identifier: "GetOrganizationMembershipLimitsRequest",
|
|
831
|
+
});
|
|
832
|
+
export const OrganizationMembershipLimits = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
833
|
+
maxMembers: S.Number,
|
|
834
|
+
maxInvites: S.Number,
|
|
835
|
+
})).annotate({
|
|
836
|
+
identifier: "OrganizationMembershipLimits",
|
|
837
|
+
});
|
|
838
|
+
export const GetOrganizationsListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/organizations", code: 200 }))).annotate({
|
|
839
|
+
identifier: "GetOrganizationsListRequest",
|
|
840
|
+
});
|
|
841
|
+
export const GetOrganizationsListResponseOrganizationsItem =
|
|
842
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
843
|
+
id: S.String,
|
|
844
|
+
name: S.String,
|
|
845
|
+
status: OrganizationStatus,
|
|
846
|
+
})).annotate({
|
|
847
|
+
identifier: "GetOrganizationsListResponseOrganizationsItem",
|
|
848
|
+
});
|
|
849
|
+
export const GetOrganizationsListResponseOrganizationsList =
|
|
850
|
+
/*@__PURE__*/ S.Array(GetOrganizationsListResponseOrganizationsItem);
|
|
851
|
+
export const GetOrganizationsListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
852
|
+
organizations: GetOrganizationsListResponseOrganizationsList,
|
|
853
|
+
})).annotate({
|
|
854
|
+
identifier: "GetOrganizationsListResponse",
|
|
855
|
+
});
|
|
856
|
+
export const GetProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
857
|
+
organizationID: S.String.pipe(T.Label()),
|
|
858
|
+
projectID: S.String.pipe(T.Label()),
|
|
859
|
+
}).pipe(T.Http({
|
|
860
|
+
method: "GET",
|
|
861
|
+
uri: "/organizations/{organizationID}/projects/{projectID}",
|
|
862
|
+
code: 200,
|
|
863
|
+
}))).annotate({
|
|
864
|
+
identifier: "GetProjectRequest",
|
|
865
|
+
});
|
|
866
|
+
export const GetProjectLimitsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
867
|
+
organizationID: S.String.pipe(T.Label()),
|
|
868
|
+
projectID: S.String.pipe(T.Label()),
|
|
869
|
+
}).pipe(T.Http({
|
|
870
|
+
method: "GET",
|
|
871
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/limits",
|
|
872
|
+
code: 200,
|
|
873
|
+
}))).annotate({
|
|
874
|
+
identifier: "GetProjectLimitsRequest",
|
|
875
|
+
});
|
|
876
|
+
export const EffectiveProjectLimits = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
877
|
+
maxDescriptionLength: S.Number,
|
|
878
|
+
maxBranchesPerProject: S.Number,
|
|
879
|
+
maxInstancesPerBranch: S.Number,
|
|
880
|
+
minInstancesPerBranch: S.Number,
|
|
881
|
+
maxAllowedInstanceType: S.Number,
|
|
882
|
+
maxBranchesPerHour: S.Number,
|
|
883
|
+
maxStorageGBPerBranch: S.Number,
|
|
884
|
+
})).annotate({
|
|
885
|
+
identifier: "EffectiveProjectLimits",
|
|
886
|
+
});
|
|
887
|
+
export const GithubWebhookRequestBodyMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
888
|
+
export const GithubWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
889
|
+
body: GithubWebhookRequestBodyMap.pipe(T.HttpBody()),
|
|
890
|
+
}).pipe(T.Http({ method: "POST", uri: "/webhooks/github", code: 200 }))).annotate({
|
|
891
|
+
identifier: "GithubWebhookRequest",
|
|
892
|
+
});
|
|
893
|
+
export const GithubWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
894
|
+
identifier: "GithubWebhookResponse",
|
|
895
|
+
});
|
|
896
|
+
export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
897
|
+
organizationID: S.String.pipe(T.Label()),
|
|
898
|
+
projectID: S.String.pipe(T.Label()),
|
|
899
|
+
}).pipe(T.Http({
|
|
900
|
+
method: "GET",
|
|
901
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/backups",
|
|
902
|
+
code: 200,
|
|
903
|
+
}))).annotate({
|
|
904
|
+
identifier: "ListBackupsRequest",
|
|
905
|
+
});
|
|
906
|
+
export const ListBackupsResponseBackupsList = /*@__PURE__*/ S.Array(BackupMetadata);
|
|
907
|
+
export const ListBackupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
908
|
+
backups: ListBackupsResponseBackupsList,
|
|
909
|
+
})).annotate({
|
|
910
|
+
identifier: "ListBackupsResponse",
|
|
911
|
+
});
|
|
912
|
+
export const ListBranchesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
913
|
+
organizationID: S.String.pipe(T.Label()),
|
|
914
|
+
projectID: S.String.pipe(T.Label()),
|
|
915
|
+
}).pipe(T.Http({
|
|
916
|
+
method: "GET",
|
|
917
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/branches",
|
|
918
|
+
code: 200,
|
|
919
|
+
}))).annotate({
|
|
920
|
+
identifier: "ListBranchesRequest",
|
|
921
|
+
});
|
|
922
|
+
export const BranchListMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
923
|
+
id: S.String,
|
|
924
|
+
name: S.String,
|
|
925
|
+
description: S.optional(S.String),
|
|
926
|
+
createdAt: S.String,
|
|
927
|
+
updatedAt: S.String,
|
|
928
|
+
parentID: S.optional(S.NullOr(S.String)),
|
|
929
|
+
region: S.String,
|
|
930
|
+
publicAccess: S.Boolean,
|
|
931
|
+
backupsEnabled: S.Boolean,
|
|
932
|
+
})).annotate({
|
|
933
|
+
identifier: "BranchListMetadata",
|
|
934
|
+
});
|
|
935
|
+
export const ListBranchesResponseBranchesList = /*@__PURE__*/ S.Array(BranchListMetadata);
|
|
936
|
+
export const ListBranchesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
937
|
+
branches: ListBranchesResponseBranchesList,
|
|
938
|
+
})).annotate({
|
|
939
|
+
identifier: "ListBranchesResponse",
|
|
940
|
+
});
|
|
941
|
+
export const ListExtensionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
942
|
+
organizationID: S.String.pipe(T.Label()),
|
|
943
|
+
image: S.String.pipe(T.Query()),
|
|
944
|
+
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
|
+
});
|
|
952
|
+
export const ExtensionType = /*@__PURE__*/ S.String;
|
|
953
|
+
export const Extension = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
954
|
+
name: S.String,
|
|
955
|
+
version: S.String,
|
|
956
|
+
description: S.String,
|
|
957
|
+
docs: S.String,
|
|
958
|
+
preloadRequired: S.Boolean,
|
|
959
|
+
type: ExtensionType,
|
|
960
|
+
})).annotate({ identifier: "Extension" });
|
|
961
|
+
export const ListExtensionsResponseExtensionsList = /*@__PURE__*/ S.Array(Extension);
|
|
962
|
+
export const ListExtensionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
963
|
+
extensions: ListExtensionsResponseExtensionsList,
|
|
964
|
+
})).annotate({
|
|
965
|
+
identifier: "ListExtensionsResponse",
|
|
966
|
+
});
|
|
967
|
+
export const ListGithubAppInstallationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
968
|
+
organizationID: S.String.pipe(T.Label()),
|
|
969
|
+
}).pipe(T.Http({
|
|
970
|
+
method: "GET",
|
|
971
|
+
uri: "/organizations/{organizationID}/githubapp/installations",
|
|
972
|
+
code: 200,
|
|
973
|
+
}))).annotate({
|
|
974
|
+
identifier: "ListGithubAppInstallationsRequest",
|
|
975
|
+
});
|
|
976
|
+
export const ListGithubAppInstallationsResponseInstallationsList =
|
|
977
|
+
/*@__PURE__*/ S.Array(GithubInstallation);
|
|
978
|
+
export const ListGithubAppInstallationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
979
|
+
installations: ListGithubAppInstallationsResponseInstallationsList,
|
|
980
|
+
})).annotate({
|
|
981
|
+
identifier: "ListGithubAppInstallationsResponse",
|
|
982
|
+
});
|
|
983
|
+
export const ListImagesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
984
|
+
organizationID: S.String.pipe(T.Label()),
|
|
985
|
+
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
|
+
});
|
|
993
|
+
export const ImageRegionList = /*@__PURE__*/ S.Array(S.String);
|
|
994
|
+
export const Image = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
995
|
+
name: S.String,
|
|
996
|
+
majorVersion: S.String,
|
|
997
|
+
fullVersion: S.String,
|
|
998
|
+
region: S.optional(ImageRegionList),
|
|
999
|
+
})).annotate({ identifier: "Image" });
|
|
1000
|
+
export const ListImagesResponseImagesList = /*@__PURE__*/ S.Array(Image);
|
|
1001
|
+
export const ListImagesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1002
|
+
images: ListImagesResponseImagesList,
|
|
1003
|
+
})).annotate({
|
|
1004
|
+
identifier: "ListImagesResponse",
|
|
1005
|
+
});
|
|
1006
|
+
export const ListInstanceTypesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1007
|
+
organizationID: S.String.pipe(T.Label()),
|
|
1008
|
+
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({
|
|
1018
|
+
name: S.String,
|
|
1019
|
+
vcpus: S.Number,
|
|
1020
|
+
ram: S.Number,
|
|
1021
|
+
hourlyRate: S.Number,
|
|
1022
|
+
storageMonthlyRate: S.Number,
|
|
1023
|
+
region: S.String,
|
|
1024
|
+
})).annotate({
|
|
1025
|
+
identifier: "ListInstanceTypesResponseInstanceTypesItem",
|
|
1026
|
+
});
|
|
1027
|
+
export const ListInstanceTypesResponseInstanceTypesList = /*@__PURE__*/ S.Array(ListInstanceTypesResponseInstanceTypesItem);
|
|
1028
|
+
export const ListInstanceTypesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1029
|
+
instanceTypes: ListInstanceTypesResponseInstanceTypesList,
|
|
1030
|
+
})).annotate({
|
|
1031
|
+
identifier: "ListInstanceTypesResponse",
|
|
1032
|
+
});
|
|
1033
|
+
export const ListOrganizationAPIKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1034
|
+
organizationID: S.String.pipe(T.Label()),
|
|
1035
|
+
}).pipe(T.Http({
|
|
1036
|
+
method: "GET",
|
|
1037
|
+
uri: "/organizations/{organizationID}/api-keys",
|
|
1038
|
+
code: 200,
|
|
1039
|
+
}))).annotate({
|
|
1040
|
+
identifier: "ListOrganizationAPIKeysRequest",
|
|
1041
|
+
});
|
|
1042
|
+
export const APIKeyPreviewScopesList = /*@__PURE__*/ S.Array(S.String);
|
|
1043
|
+
export const APIKeyPreviewProjectsList = /*@__PURE__*/ S.Array(S.String);
|
|
1044
|
+
export const APIKeyPreviewBranchesList = /*@__PURE__*/ S.Array(S.String);
|
|
1045
|
+
export const APIKeyPreview = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1046
|
+
id: S.String,
|
|
1047
|
+
name: S.String,
|
|
1048
|
+
preview: S.String,
|
|
1049
|
+
scopes: APIKeyPreviewScopesList,
|
|
1050
|
+
projects: APIKeyPreviewProjectsList,
|
|
1051
|
+
branches: APIKeyPreviewBranchesList,
|
|
1052
|
+
created_at: S.String,
|
|
1053
|
+
expiry: S.NullOr(S.String),
|
|
1054
|
+
last_used: S.NullOr(S.String),
|
|
1055
|
+
created_by: S.optional(S.NullOr(S.String)),
|
|
1056
|
+
created_by_key: S.optional(S.NullOr(S.String)),
|
|
1057
|
+
})).annotate({ identifier: "APIKeyPreview" });
|
|
1058
|
+
export const ListOrganizationAPIKeysResponseKeysList = /*@__PURE__*/ S.Array(APIKeyPreview);
|
|
1059
|
+
export const ListOrganizationAPIKeysResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1060
|
+
keys: ListOrganizationAPIKeysResponseKeysList,
|
|
1061
|
+
})).annotate({
|
|
1062
|
+
identifier: "ListOrganizationAPIKeysResponse",
|
|
1063
|
+
});
|
|
1064
|
+
export const ListOrganizationInvitationsRequestStatus = /*@__PURE__*/ S.String;
|
|
1065
|
+
export const ListOrganizationInvitationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1066
|
+
organizationID: S.String.pipe(T.Label()),
|
|
1067
|
+
status: S.optional(ListOrganizationInvitationsRequestStatus.pipe(T.Query())),
|
|
1068
|
+
email: S.optional(S.String.pipe(T.Query())),
|
|
1069
|
+
first_name: S.optional(S.String.pipe(T.Query())),
|
|
1070
|
+
last_name: S.optional(S.String.pipe(T.Query())),
|
|
1071
|
+
search: S.optional(S.String.pipe(T.Query())),
|
|
1072
|
+
first: S.optional(S.Number.pipe(T.Query())),
|
|
1073
|
+
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({
|
|
1079
|
+
identifier: "ListOrganizationInvitationsRequest",
|
|
1080
|
+
});
|
|
1081
|
+
export const ListOrganizationInvitationsResponseInvitationsList =
|
|
1082
|
+
/*@__PURE__*/ S.Array(OrganizationInvitation);
|
|
1083
|
+
export const ListOrganizationInvitationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1084
|
+
invitations: ListOrganizationInvitationsResponseInvitationsList,
|
|
1085
|
+
})).annotate({
|
|
1086
|
+
identifier: "ListOrganizationInvitationsResponse",
|
|
1087
|
+
});
|
|
1088
|
+
export const ListOrganizationMembersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1089
|
+
organizationID: S.String.pipe(T.Label()),
|
|
1090
|
+
}).pipe(T.Http({
|
|
1091
|
+
method: "GET",
|
|
1092
|
+
uri: "/organizations/{organizationID}/members",
|
|
1093
|
+
code: 200,
|
|
1094
|
+
}))).annotate({
|
|
1095
|
+
identifier: "ListOrganizationMembersRequest",
|
|
1096
|
+
});
|
|
1097
|
+
export const UserWithID = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1098
|
+
email: S.String,
|
|
1099
|
+
name: S.String,
|
|
1100
|
+
id: S.String,
|
|
1101
|
+
})).annotate({ identifier: "UserWithID" });
|
|
1102
|
+
export const ListOrganizationMembersResponseMembersList = /*@__PURE__*/ S.Array(UserWithID);
|
|
1103
|
+
export const ListOrganizationMembersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1104
|
+
members: ListOrganizationMembersResponseMembersList,
|
|
1105
|
+
})).annotate({
|
|
1106
|
+
identifier: "ListOrganizationMembersResponse",
|
|
1107
|
+
});
|
|
1108
|
+
export const ListProjectsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1109
|
+
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",
|
|
1116
|
+
});
|
|
1117
|
+
export const ListProjectsResponseProjectsList = /*@__PURE__*/ S.Array(Project);
|
|
1118
|
+
export const ListProjectsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1119
|
+
projects: ListProjectsResponseProjectsList,
|
|
1120
|
+
})).annotate({
|
|
1121
|
+
identifier: "ListProjectsResponse",
|
|
1122
|
+
});
|
|
1123
|
+
export const ListRegionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1124
|
+
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
|
+
});
|
|
1132
|
+
export const ListRegionsResponseRegionsItemProvider = /*@__PURE__*/ S.String;
|
|
1133
|
+
export const ListRegionsResponseRegionsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1134
|
+
id: S.String,
|
|
1135
|
+
publicAccess: S.Boolean,
|
|
1136
|
+
backupsEnabled: S.Boolean,
|
|
1137
|
+
provider: ListRegionsResponseRegionsItemProvider,
|
|
1138
|
+
organizationId: S.NullOr(S.String),
|
|
1139
|
+
})).annotate({
|
|
1140
|
+
identifier: "ListRegionsResponseRegionsItem",
|
|
1141
|
+
});
|
|
1142
|
+
export const ListRegionsResponseRegionsList = /*@__PURE__*/ S.Array(ListRegionsResponseRegionsItem);
|
|
1143
|
+
export const ListRegionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1144
|
+
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
|
+
});
|
|
1151
|
+
export const ListUserAPIKeysResponseKeysList = /*@__PURE__*/ S.Array(APIKeyPreview);
|
|
1152
|
+
export const ListUserAPIKeysResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1153
|
+
keys: ListUserAPIKeysResponseKeysList,
|
|
1154
|
+
})).annotate({
|
|
1155
|
+
identifier: "ListUserAPIKeysResponse",
|
|
1156
|
+
});
|
|
1157
|
+
export const OrbWebhookRequestBodyMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1158
|
+
export const OrbWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1159
|
+
body: OrbWebhookRequestBodyMap.pipe(T.HttpBody()),
|
|
1160
|
+
}).pipe(T.Http({ method: "POST", uri: "/webhooks/orb", code: 200 }))).annotate({
|
|
1161
|
+
identifier: "OrbWebhookRequest",
|
|
1162
|
+
});
|
|
1163
|
+
export const OrbWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1164
|
+
identifier: "OrbWebhookResponse",
|
|
1165
|
+
});
|
|
1166
|
+
export const QueryRequestParamsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
1167
|
+
export const QueryItemParamsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
1168
|
+
export const QueryItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1169
|
+
query: S.String,
|
|
1170
|
+
params: S.optional(QueryItemParamsList),
|
|
1171
|
+
arrayMode: S.optional(S.Boolean),
|
|
1172
|
+
})).annotate({ identifier: "QueryItem" });
|
|
1173
|
+
export const QueryRequestQueriesList = /*@__PURE__*/ S.Array(QueryItem);
|
|
1174
|
+
export const QueryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1175
|
+
query: S.optional(S.String),
|
|
1176
|
+
params: S.optional(QueryRequestParamsList),
|
|
1177
|
+
queries: S.optional(QueryRequestQueriesList),
|
|
1178
|
+
arrayMode: S.optional(S.Boolean),
|
|
1179
|
+
}).pipe(T.Http({ method: "POST", uri: "/sql", code: 200 }))).annotate({ identifier: "QueryRequest" });
|
|
1180
|
+
export const FieldDefinition = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1181
|
+
name: S.String,
|
|
1182
|
+
tableID: S.Number,
|
|
1183
|
+
columnID: S.Number,
|
|
1184
|
+
dataTypeID: S.Number,
|
|
1185
|
+
dataTypeSize: S.Number,
|
|
1186
|
+
dataTypeModifier: S.Number,
|
|
1187
|
+
format: S.String,
|
|
1188
|
+
})).annotate({
|
|
1189
|
+
identifier: "FieldDefinition",
|
|
1190
|
+
});
|
|
1191
|
+
export const QueryResultFieldsList = /*@__PURE__*/ S.Array(FieldDefinition);
|
|
1192
|
+
export const QueryResultRowsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
1193
|
+
export const QueryResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1194
|
+
fields: QueryResultFieldsList,
|
|
1195
|
+
command: S.String,
|
|
1196
|
+
rowCount: S.NullOr(S.Number),
|
|
1197
|
+
rows: QueryResultRowsList,
|
|
1198
|
+
rowAsArray: S.Boolean,
|
|
1199
|
+
})).annotate({ identifier: "QueryResult" });
|
|
1200
|
+
export const BatchResponseResultsList = /*@__PURE__*/ S.Array(QueryResult);
|
|
1201
|
+
export const BatchResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1202
|
+
results: BatchResponseResultsList,
|
|
1203
|
+
})).annotate({ identifier: "BatchResponse" });
|
|
1204
|
+
export const QueryResponseBody =
|
|
1205
|
+
/*@__PURE__*/ S.Unknown;
|
|
1206
|
+
export const QueryResponse = /*@__PURE__*/ S.suspend(() => QueryResponseBody.pipe(T.RawResponseRoot())).annotate({ identifier: "QueryResponse" });
|
|
1207
|
+
export const MarketplaceRegistrationProvider = /*@__PURE__*/ S.String;
|
|
1208
|
+
export const RegisterMarketplaceRequestAws = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1209
|
+
customer_id: S.String,
|
|
1210
|
+
product_id: S.String,
|
|
1211
|
+
account_id: S.String,
|
|
1212
|
+
})).annotate({
|
|
1213
|
+
identifier: "RegisterMarketplaceRequestAws",
|
|
1214
|
+
});
|
|
1215
|
+
export const RegisterMarketplaceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1216
|
+
marketplace: MarketplaceRegistrationProvider,
|
|
1217
|
+
company_name: S.String,
|
|
1218
|
+
aws: RegisterMarketplaceRequestAws,
|
|
1219
|
+
}).pipe(T.Http({ method: "POST", uri: "/marketplace/register", code: 200 }))).annotate({
|
|
1220
|
+
identifier: "RegisterMarketplaceRequest",
|
|
1221
|
+
});
|
|
1222
|
+
export const RegisterMarketplaceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1223
|
+
identifier: "RegisterMarketplaceResponse",
|
|
1224
|
+
});
|
|
1225
|
+
export const RemoveOrganizationMemberRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1226
|
+
organizationID: S.String.pipe(T.Label()),
|
|
1227
|
+
userID: S.String.pipe(T.Label()),
|
|
1228
|
+
}).pipe(T.Http({
|
|
1229
|
+
method: "DELETE",
|
|
1230
|
+
uri: "/organizations/{organizationID}/members/{userID}",
|
|
1231
|
+
code: 200,
|
|
1232
|
+
}))).annotate({
|
|
1233
|
+
identifier: "RemoveOrganizationMemberRequest",
|
|
1234
|
+
});
|
|
1235
|
+
export const RemoveOrganizationMemberResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1236
|
+
identifier: "RemoveOrganizationMemberResponse",
|
|
1237
|
+
});
|
|
1238
|
+
export const RequestOrganizationDeletionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1239
|
+
organizationID: S.String.pipe(T.Label()),
|
|
1240
|
+
}).pipe(T.Http({
|
|
1241
|
+
method: "POST",
|
|
1242
|
+
uri: "/organizations/{organizationID}/deletion-request",
|
|
1243
|
+
code: 200,
|
|
1244
|
+
}))).annotate({
|
|
1245
|
+
identifier: "RequestOrganizationDeletionRequest",
|
|
1246
|
+
});
|
|
1247
|
+
export const RequestOrganizationDeletionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1248
|
+
identifier: "RequestOrganizationDeletionResponse",
|
|
1249
|
+
});
|
|
1250
|
+
export const ResendOrganizationInvitationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1251
|
+
organizationID: S.String.pipe(T.Label()),
|
|
1252
|
+
invitationID: S.String.pipe(T.Label()),
|
|
1253
|
+
}).pipe(T.Http({
|
|
1254
|
+
method: "POST",
|
|
1255
|
+
uri: "/organizations/{organizationID}/invitations/{invitationID}/resend",
|
|
1256
|
+
code: 200,
|
|
1257
|
+
}))).annotate({
|
|
1258
|
+
identifier: "ResendOrganizationInvitationRequest",
|
|
1259
|
+
});
|
|
1260
|
+
export const ResendOrganizationInvitationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1261
|
+
identifier: "ResendOrganizationInvitationResponse",
|
|
1262
|
+
});
|
|
1263
|
+
export const RestoreFromBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1264
|
+
organizationID: S.String.pipe(T.Label()),
|
|
1265
|
+
projectID: S.String.pipe(T.Label()),
|
|
1266
|
+
branchID: S.String.pipe(T.Label()),
|
|
1267
|
+
name: S.String,
|
|
1268
|
+
description: S.optional(S.String),
|
|
1269
|
+
scaleToZero: S.optional(ScaleToZeroConfiguration),
|
|
1270
|
+
backupConfiguration: S.optional(BackupConfiguration),
|
|
1271
|
+
configuration: S.optional(ClusterConfiguration),
|
|
1272
|
+
}).pipe(T.Http({
|
|
1273
|
+
method: "POST",
|
|
1274
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}/restore",
|
|
1275
|
+
code: 200,
|
|
1276
|
+
}))).annotate({
|
|
1277
|
+
identifier: "RestoreFromBackupRequest",
|
|
1278
|
+
});
|
|
1279
|
+
export const RotateBranchCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1280
|
+
organizationID: S.String.pipe(T.Label()),
|
|
1281
|
+
projectID: S.String.pipe(T.Label()),
|
|
1282
|
+
branchID: S.String.pipe(T.Label()),
|
|
1283
|
+
username: S.String,
|
|
1284
|
+
}).pipe(T.Http({
|
|
1285
|
+
method: "POST",
|
|
1286
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}/credentials/rotate",
|
|
1287
|
+
code: 200,
|
|
1288
|
+
}))).annotate({
|
|
1289
|
+
identifier: "RotateBranchCredentialsRequest",
|
|
1290
|
+
});
|
|
1291
|
+
export const RotateBranchCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1292
|
+
identifier: "RotateBranchCredentialsResponse",
|
|
1293
|
+
});
|
|
1294
|
+
export const SendMcpRequestRequestJsonrpc = /*@__PURE__*/ S.String;
|
|
1295
|
+
export const SendMcpRequestRequestId =
|
|
1296
|
+
/*@__PURE__*/ S.Unknown;
|
|
1297
|
+
export const SendMcpRequestRequestParamsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1298
|
+
export const SendMcpRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1299
|
+
jsonrpc: SendMcpRequestRequestJsonrpc,
|
|
1300
|
+
id: S.optional(SendMcpRequestRequestId),
|
|
1301
|
+
method: S.String,
|
|
1302
|
+
params: S.optional(SendMcpRequestRequestParamsMap),
|
|
1303
|
+
}).pipe(T.Http({ method: "POST", uri: "/mcp", code: 200 }))).annotate({
|
|
1304
|
+
identifier: "SendMcpRequestRequest",
|
|
1305
|
+
});
|
|
1306
|
+
export const JSONRPCResponseJsonrpc = /*@__PURE__*/ S.String;
|
|
1307
|
+
export const JSONRPCResponseId =
|
|
1308
|
+
/*@__PURE__*/ S.Unknown;
|
|
1309
|
+
export const JSONRPCResponseResultMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1310
|
+
export const JSONRPCError = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1311
|
+
code: S.Number,
|
|
1312
|
+
message: S.String,
|
|
1313
|
+
data: S.optional(S.Unknown),
|
|
1314
|
+
})).annotate({ identifier: "JSONRPCError" });
|
|
1315
|
+
export const JSONRPCResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1316
|
+
jsonrpc: JSONRPCResponseJsonrpc,
|
|
1317
|
+
id: JSONRPCResponseId,
|
|
1318
|
+
result: S.optional(JSONRPCResponseResultMap),
|
|
1319
|
+
error: S.optional(JSONRPCError),
|
|
1320
|
+
})).annotate({
|
|
1321
|
+
identifier: "JSONRPCResponse",
|
|
1322
|
+
});
|
|
1323
|
+
export const StripeWebhookRequestBodyMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1324
|
+
export const StripeWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1325
|
+
body: StripeWebhookRequestBodyMap.pipe(T.HttpBody()),
|
|
1326
|
+
}).pipe(T.Http({ method: "POST", uri: "/webhooks/stripe", code: 200 }))).annotate({
|
|
1327
|
+
identifier: "StripeWebhookRequest",
|
|
1328
|
+
});
|
|
1329
|
+
export const StripeWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1330
|
+
identifier: "StripeWebhookResponse",
|
|
1331
|
+
});
|
|
1332
|
+
export const UpdateBillingCustomerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1333
|
+
organizationID: S.String.pipe(T.Label()),
|
|
1334
|
+
billing_email: S.String,
|
|
1335
|
+
}).pipe(T.Http({
|
|
1336
|
+
method: "PATCH",
|
|
1337
|
+
uri: "/organizations/{organizationID}/billing/customer",
|
|
1338
|
+
code: 200,
|
|
1339
|
+
}))).annotate({
|
|
1340
|
+
identifier: "UpdateBillingCustomerRequest",
|
|
1341
|
+
});
|
|
1342
|
+
export const UpdateBranchRequestPostgresConfigurationParametersMap =
|
|
1343
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
1344
|
+
export const UpdateBranchRequestPreloadLibrariesList = /*@__PURE__*/ S.Array(S.String);
|
|
1345
|
+
export const UpdateBranchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1346
|
+
organizationID: S.String.pipe(T.Label()),
|
|
1347
|
+
projectID: S.String.pipe(T.Label()),
|
|
1348
|
+
branchID: S.String.pipe(T.Label()),
|
|
1349
|
+
name: S.optional(S.String),
|
|
1350
|
+
description: S.optional(S.String),
|
|
1351
|
+
replicas: S.optional(S.Number),
|
|
1352
|
+
storage: S.optional(S.Number),
|
|
1353
|
+
instanceType: S.optional(S.String),
|
|
1354
|
+
backupConfiguration: S.optional(BackupConfiguration),
|
|
1355
|
+
hibernate: S.optional(S.Boolean),
|
|
1356
|
+
scaleToZero: S.optional(ScaleToZeroConfiguration),
|
|
1357
|
+
postgresConfigurationParameters: S.optional(UpdateBranchRequestPostgresConfigurationParametersMap),
|
|
1358
|
+
preloadLibraries: S.optional(UpdateBranchRequestPreloadLibrariesList),
|
|
1359
|
+
image: S.optional(S.String),
|
|
1360
|
+
}).pipe(T.Http({
|
|
1361
|
+
method: "PATCH",
|
|
1362
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}",
|
|
1363
|
+
code: 200,
|
|
1364
|
+
}))).annotate({
|
|
1365
|
+
identifier: "UpdateBranchRequest",
|
|
1366
|
+
});
|
|
1367
|
+
export const UpdateGithubAppInstallationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1368
|
+
organizationID: S.String.pipe(T.Label()),
|
|
1369
|
+
githubInstallationID: S.String.pipe(T.Label()),
|
|
1370
|
+
installationId: S.Number,
|
|
1371
|
+
}).pipe(T.Http({
|
|
1372
|
+
method: "PUT",
|
|
1373
|
+
uri: "/organizations/{organizationID}/githubapp/installations/{githubInstallationID}",
|
|
1374
|
+
code: 200,
|
|
1375
|
+
}))).annotate({
|
|
1376
|
+
identifier: "UpdateGithubAppInstallationRequest",
|
|
1377
|
+
});
|
|
1378
|
+
export const UpdateGithubRepositoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1379
|
+
organizationID: S.String.pipe(T.Label()),
|
|
1380
|
+
projectID: S.String.pipe(T.Label()),
|
|
1381
|
+
branchID: S.String.pipe(T.Label()),
|
|
1382
|
+
githubRepositoryID: S.Number,
|
|
1383
|
+
}).pipe(T.Http({
|
|
1384
|
+
method: "PUT",
|
|
1385
|
+
uri: "/organizations/{organizationID}/projects/{projectID}/branches/{branchID}/githubapp/repository",
|
|
1386
|
+
code: 200,
|
|
1387
|
+
}))).annotate({
|
|
1388
|
+
identifier: "UpdateGithubRepositoryRequest",
|
|
1389
|
+
});
|
|
1390
|
+
export const UpdateOrganizationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1391
|
+
organizationID: S.String.pipe(T.Label()),
|
|
1392
|
+
id: S.optional(S.String),
|
|
1393
|
+
name: S.optional(S.String),
|
|
1394
|
+
}).pipe(T.Http({
|
|
1395
|
+
method: "PUT",
|
|
1396
|
+
uri: "/organizations/{organizationID}",
|
|
1397
|
+
code: 200,
|
|
1398
|
+
}))).annotate({
|
|
1399
|
+
identifier: "UpdateOrganizationRequest",
|
|
1400
|
+
});
|
|
1401
|
+
export const UpdateProjectConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1402
|
+
scaleToZero: S.optional(ProjectScaleToZeroConfiguration),
|
|
1403
|
+
ipFiltering: S.optional(IPFilteringConfiguration),
|
|
1404
|
+
})).annotate({
|
|
1405
|
+
identifier: "UpdateProjectConfiguration",
|
|
1406
|
+
});
|
|
1407
|
+
export const UpdateProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1408
|
+
organizationID: S.String.pipe(T.Label()),
|
|
1409
|
+
projectID: S.String.pipe(T.Label()),
|
|
1410
|
+
name: S.optional(S.String),
|
|
1411
|
+
configuration: S.optional(UpdateProjectConfiguration),
|
|
1412
|
+
}).pipe(T.Http({
|
|
1413
|
+
method: "PATCH",
|
|
1414
|
+
uri: "/organizations/{organizationID}/projects/{projectID}",
|
|
1415
|
+
code: 200,
|
|
1416
|
+
}))).annotate({
|
|
1417
|
+
identifier: "UpdateProjectRequest",
|
|
1418
|
+
});
|
|
1419
|
+
export const UpsertInstallationRequestScopesList = /*@__PURE__*/ S.Array(S.String);
|
|
1420
|
+
export const UpsertInstallationRequestAcceptedPoliciesMap =
|
|
1421
|
+
/*@__PURE__*/ S.Record(S.String, S.String);
|
|
1422
|
+
export const InstallationCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1423
|
+
access_token: S.String.pipe(T.SensitiveValue({})),
|
|
1424
|
+
token_type: S.String,
|
|
1425
|
+
})).annotate({
|
|
1426
|
+
identifier: "InstallationCredentials",
|
|
1427
|
+
});
|
|
1428
|
+
export const InstallationAccountContact = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1429
|
+
email: S.String,
|
|
1430
|
+
name: S.optional(S.String),
|
|
1431
|
+
})).annotate({
|
|
1432
|
+
identifier: "InstallationAccountContact",
|
|
1433
|
+
});
|
|
1434
|
+
export const InstallationAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1435
|
+
name: S.optional(S.String),
|
|
1436
|
+
url: S.String,
|
|
1437
|
+
contact: S.optional(InstallationAccountContact),
|
|
1438
|
+
})).annotate({
|
|
1439
|
+
identifier: "InstallationAccount",
|
|
1440
|
+
});
|
|
1441
|
+
export const UpsertInstallationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1442
|
+
installationId: S.String.pipe(T.Label()),
|
|
1443
|
+
scopes: UpsertInstallationRequestScopesList,
|
|
1444
|
+
acceptedPolicies: UpsertInstallationRequestAcceptedPoliciesMap,
|
|
1445
|
+
credentials: InstallationCredentials,
|
|
1446
|
+
account: InstallationAccount,
|
|
1447
|
+
}).pipe(T.Http({
|
|
1448
|
+
method: "PUT",
|
|
1449
|
+
uri: "/v1/installations/{installationId}",
|
|
1450
|
+
code: 200,
|
|
1451
|
+
}))).annotate({
|
|
1452
|
+
identifier: "UpsertInstallationRequest",
|
|
1453
|
+
});
|
|
1454
|
+
export const UpsertInstallationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1455
|
+
identifier: "UpsertInstallationResponse",
|
|
1456
|
+
});
|
|
1457
|
+
export const WebsocketRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v2", code: 200 }))).annotate({
|
|
1458
|
+
identifier: "WebsocketRequest",
|
|
1459
|
+
});
|
|
1460
|
+
export const WebsocketResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1461
|
+
identifier: "WebsocketResponse",
|
|
1462
|
+
});
|
|
1463
|
+
/** Retrieve branch logs */
|
|
1464
|
+
export const branchLogs2 = /*@__PURE__*/ API.make(() => ({
|
|
1465
|
+
input: BranchLogsRequest,
|
|
1466
|
+
output: BranchLogs,
|
|
1467
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1468
|
+
protocol: XataProtocol,
|
|
1469
|
+
retry: Retry.Retry,
|
|
1470
|
+
}));
|
|
1471
|
+
/** Retrieve branch metrics Returns time-series data for one or more metrics of a branch. */
|
|
1472
|
+
export const branchMetrics2 = /*@__PURE__*/ API.make(() => ({
|
|
1473
|
+
input: BranchMetricsRequest,
|
|
1474
|
+
output: BranchMetrics,
|
|
1475
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1476
|
+
protocol: XataProtocol,
|
|
1477
|
+
retry: Retry.Retry,
|
|
1478
|
+
}));
|
|
1479
|
+
/** Create a billing checkout session Creates a Stripe checkout session used to activate card billing for an organization. */
|
|
1480
|
+
export const createBillingCheckoutSession = /*@__PURE__*/ API.make(() => ({
|
|
1481
|
+
input: CreateBillingCheckoutSessionRequest,
|
|
1482
|
+
output: BillingCheckoutSessionResponse,
|
|
1483
|
+
errors: [BadRequest, Forbidden, UnknownXataError],
|
|
1484
|
+
protocol: XataProtocol,
|
|
1485
|
+
retry: Retry.Retry,
|
|
1486
|
+
}));
|
|
1487
|
+
/** Create a billing payment method session Creates a Stripe setup-mode checkout session used to add or update an organization payment method. */
|
|
1488
|
+
export const createBillingPaymentMethodSession = /*@__PURE__*/ API.make(() => ({
|
|
1489
|
+
input: CreateBillingPaymentMethodSessionRequest,
|
|
1490
|
+
output: BillingPaymentMethodSessionResponse,
|
|
1491
|
+
errors: [BadRequest, Forbidden, UnknownXataError],
|
|
1492
|
+
protocol: XataProtocol,
|
|
1493
|
+
retry: Retry.Retry,
|
|
1494
|
+
}));
|
|
1495
|
+
/** Create a new branch Creates a new branch within the specified project. Branches can be created from scratch or derived from an existing parent branch. */
|
|
1496
|
+
export const createBranch = /*@__PURE__*/ API.make(() => ({
|
|
1497
|
+
input: CreateBranchRequest,
|
|
1498
|
+
output: BranchShortMetadata,
|
|
1499
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1500
|
+
protocol: XataProtocol,
|
|
1501
|
+
retry: Retry.Retry,
|
|
1502
|
+
}));
|
|
1503
|
+
/** Create GitHub App installation Creates a new GitHub App installation mapping for the specified organization. */
|
|
1504
|
+
export const createGithubAppInstallation = /*@__PURE__*/ API.make(() => ({
|
|
1505
|
+
input: CreateGithubAppInstallationRequest,
|
|
1506
|
+
output: GithubInstallation,
|
|
1507
|
+
errors: [BadRequest, Conflict, UnknownXataError],
|
|
1508
|
+
protocol: XataProtocol,
|
|
1509
|
+
retry: Retry.Retry,
|
|
1510
|
+
}));
|
|
1511
|
+
/** Create GitHub repository mapping Creates a new GitHub repository to Xata branch mapping. */
|
|
1512
|
+
export const createGithubRepository = /*@__PURE__*/ API.make(() => ({
|
|
1513
|
+
input: CreateGithubRepositoryRequest,
|
|
1514
|
+
output: GithubRepository,
|
|
1515
|
+
errors: [BadRequest, Conflict, UnknownXataError],
|
|
1516
|
+
protocol: XataProtocol,
|
|
1517
|
+
retry: Retry.Retry,
|
|
1518
|
+
}));
|
|
1519
|
+
/** Create a new organization Creates a new organization with the authenticated user as its single owner. */
|
|
1520
|
+
export const createOrganization = /*@__PURE__*/ API.make(() => ({
|
|
1521
|
+
input: CreateOrganizationRequest,
|
|
1522
|
+
output: Organization,
|
|
1523
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1524
|
+
protocol: XataProtocol,
|
|
1525
|
+
retry: Retry.Retry,
|
|
1526
|
+
}));
|
|
1527
|
+
/** Create an Organization API Key Create a new API key for an organization. */
|
|
1528
|
+
export const createOrganizationAPIKey = /*@__PURE__*/ API.make(() => ({
|
|
1529
|
+
input: CreateOrganizationAPIKeyRequest,
|
|
1530
|
+
output: CreateOrganizationAPIKeyResponse,
|
|
1531
|
+
errors: [BadRequest, UnknownXataError],
|
|
1532
|
+
protocol: XataProtocol,
|
|
1533
|
+
retry: Retry.Retry,
|
|
1534
|
+
}));
|
|
1535
|
+
/** Send an invitation to join an organization Send an invitation email to a user to join an organization. */
|
|
1536
|
+
export const createOrganizationInvitation = /*@__PURE__*/ API.make(() => ({
|
|
1537
|
+
input: CreateOrganizationInvitationRequest,
|
|
1538
|
+
output: CreateOrganizationInvitationResponse,
|
|
1539
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownXataError],
|
|
1540
|
+
protocol: XataProtocol,
|
|
1541
|
+
retry: Retry.Retry,
|
|
1542
|
+
}));
|
|
1543
|
+
/** Create a new project Creates a new project within the specified organization. Projects are containers for database branches and resources. */
|
|
1544
|
+
export const createProject = /*@__PURE__*/ API.make(() => ({
|
|
1545
|
+
input: CreateProjectRequest,
|
|
1546
|
+
output: Project,
|
|
1547
|
+
errors: [BadRequest, UnknownXataError],
|
|
1548
|
+
protocol: XataProtocol,
|
|
1549
|
+
retry: Retry.Retry,
|
|
1550
|
+
}));
|
|
1551
|
+
/** Create a User API Key Create a new API key for the authenticated user. */
|
|
1552
|
+
export const createUserAPIKey = /*@__PURE__*/ API.make(() => ({
|
|
1553
|
+
input: CreateUserAPIKeyRequest,
|
|
1554
|
+
output: CreateUserAPIKeyResponse,
|
|
1555
|
+
errors: [BadRequest, UnknownXataError],
|
|
1556
|
+
protocol: XataProtocol,
|
|
1557
|
+
retry: Retry.Retry,
|
|
1558
|
+
}));
|
|
1559
|
+
/** Delete a branch Permanently deletes a specific branch by its ID and all associated data. This action cannot be undone. */
|
|
1560
|
+
export const deleteBranch = /*@__PURE__*/ API.make(() => ({
|
|
1561
|
+
input: DeleteBranchRequest,
|
|
1562
|
+
output: DeleteBranchResponse,
|
|
1563
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1564
|
+
protocol: XataProtocol,
|
|
1565
|
+
retry: Retry.Retry,
|
|
1566
|
+
}));
|
|
1567
|
+
/** Delete GitHub repository mapping Deletes the GitHub repository mapping for the specified branch. */
|
|
1568
|
+
export const deleteGithubRepository = /*@__PURE__*/ API.make(() => ({
|
|
1569
|
+
input: DeleteGithubRepositoryRequest,
|
|
1570
|
+
output: DeleteGithubRepositoryResponse,
|
|
1571
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1572
|
+
protocol: XataProtocol,
|
|
1573
|
+
retry: Retry.Retry,
|
|
1574
|
+
}));
|
|
1575
|
+
/** Delete a Vercel Marketplace installation Begin uninstalling an installation. The installation is marked 'deleting' so billing can finalize before being soft-deleted; the 204 defers final deletion to Vercel's 24-hour window. (Vercel's contract also allows a 200 with {"finalized": true} for immediate deletion; Xata always finalizes asynchronously.) */
|
|
1576
|
+
export const deleteInstallation = /*@__PURE__*/ API.make(() => ({
|
|
1577
|
+
input: DeleteInstallationRequest,
|
|
1578
|
+
output: DeleteInstallationResponse,
|
|
1579
|
+
errors: [Forbidden, Conflict, UnknownXataError],
|
|
1580
|
+
protocol: XataProtocol,
|
|
1581
|
+
retry: Retry.Retry,
|
|
1582
|
+
}));
|
|
1583
|
+
/** Delete an organization [Not implemented yet] Permanently delete an organization. This action cannot be undone. */
|
|
1584
|
+
export const deleteOrganization = /*@__PURE__*/ API.make(() => ({
|
|
1585
|
+
input: DeleteOrganizationRequest,
|
|
1586
|
+
output: DeleteOrganizationResponse,
|
|
1587
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
|
|
1588
|
+
protocol: XataProtocol,
|
|
1589
|
+
retry: Retry.Retry,
|
|
1590
|
+
}));
|
|
1591
|
+
/** Bulk delete API Keys for an organization Delete multiple API keys in a single request. */
|
|
1592
|
+
export const deleteOrganizationAPIKeys = /*@__PURE__*/ API.make(() => ({
|
|
1593
|
+
input: DeleteOrganizationAPIKeysRequest,
|
|
1594
|
+
output: DeleteOrganizationAPIKeysResponse,
|
|
1595
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1596
|
+
protocol: XataProtocol,
|
|
1597
|
+
retry: Retry.Retry,
|
|
1598
|
+
}));
|
|
1599
|
+
/** Delete an invitation Permanently delete an invitation record. */
|
|
1600
|
+
export const deleteOrganizationInvitation = /*@__PURE__*/ API.make(() => ({
|
|
1601
|
+
input: DeleteOrganizationInvitationRequest,
|
|
1602
|
+
output: DeleteOrganizationInvitationResponse,
|
|
1603
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
|
|
1604
|
+
protocol: XataProtocol,
|
|
1605
|
+
retry: Retry.Retry,
|
|
1606
|
+
}));
|
|
1607
|
+
/** Delete a project Permanently deletes a specific project by its ID and all associated resources including branches and databases. This action cannot be undone. */
|
|
1608
|
+
export const deleteProject = /*@__PURE__*/ API.make(() => ({
|
|
1609
|
+
input: DeleteProjectRequest,
|
|
1610
|
+
output: DeleteProjectResponse,
|
|
1611
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1612
|
+
protocol: XataProtocol,
|
|
1613
|
+
retry: Retry.Retry,
|
|
1614
|
+
}));
|
|
1615
|
+
/** Bulk delete API Keys for the authenticated user Delete multiple API keys in a single request. */
|
|
1616
|
+
export const deleteUserAPIKeys = /*@__PURE__*/ API.make(() => ({
|
|
1617
|
+
input: DeleteUserAPIKeysRequest,
|
|
1618
|
+
output: DeleteUserAPIKeysResponse,
|
|
1619
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1620
|
+
protocol: XataProtocol,
|
|
1621
|
+
retry: Retry.Retry,
|
|
1622
|
+
}));
|
|
1623
|
+
/** Get branch details Retrieves detailed information about a specific branch by its ID, including status, connection string, and configuration. */
|
|
1624
|
+
export const describeBranch = /*@__PURE__*/ API.make(() => ({
|
|
1625
|
+
input: DescribeBranchRequest,
|
|
1626
|
+
output: BranchMetadata,
|
|
1627
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1628
|
+
protocol: XataProtocol,
|
|
1629
|
+
retry: Retry.Retry,
|
|
1630
|
+
}));
|
|
1631
|
+
/** Get project backup by ID Retrieves a backup by ID for the specified project. */
|
|
1632
|
+
export const getBackup = /*@__PURE__*/ API.make(() => ({
|
|
1633
|
+
input: GetBackupRequest,
|
|
1634
|
+
output: BackupMetadata,
|
|
1635
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1636
|
+
protocol: XataProtocol,
|
|
1637
|
+
retry: Retry.Retry,
|
|
1638
|
+
}));
|
|
1639
|
+
/** Get billing customer details Retrieves billing customer details for the specified organization. */
|
|
1640
|
+
export const getBillingCustomer = /*@__PURE__*/ API.make(() => ({
|
|
1641
|
+
input: GetBillingCustomerRequest,
|
|
1642
|
+
output: BillingCustomerResponse,
|
|
1643
|
+
errors: [Forbidden, NotFound, UnknownXataError],
|
|
1644
|
+
protocol: XataProtocol,
|
|
1645
|
+
retry: Retry.Retry,
|
|
1646
|
+
}));
|
|
1647
|
+
/** List billing invoices Retrieves billing invoices for the specified organization. */
|
|
1648
|
+
export const getBillingInvoices = /*@__PURE__*/ API.make(() => ({
|
|
1649
|
+
input: GetBillingInvoicesRequest,
|
|
1650
|
+
output: BillingInvoicesResponse,
|
|
1651
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
|
|
1652
|
+
protocol: XataProtocol,
|
|
1653
|
+
retry: Retry.Retry,
|
|
1654
|
+
}));
|
|
1655
|
+
/** Get upcoming billing invoice Retrieves the upcoming billing invoice for the specified organization's active subscription. Organizations are expected to have at most one active subscription. */
|
|
1656
|
+
export const getBillingUpcomingInvoice = /*@__PURE__*/ API.make(() => ({
|
|
1657
|
+
input: GetBillingUpcomingInvoiceRequest,
|
|
1658
|
+
output: BillingUpcomingInvoiceResponse,
|
|
1659
|
+
errors: [Forbidden, NotFound, UnknownXataError],
|
|
1660
|
+
protocol: XataProtocol,
|
|
1661
|
+
retry: Retry.Retry,
|
|
1662
|
+
}));
|
|
1663
|
+
/** Retrieve branch credentials */
|
|
1664
|
+
export const getBranchCredentials = /*@__PURE__*/ API.make(() => ({
|
|
1665
|
+
input: GetBranchCredentialsRequest,
|
|
1666
|
+
output: BranchCredentials,
|
|
1667
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1668
|
+
protocol: XataProtocol,
|
|
1669
|
+
retry: Retry.Retry,
|
|
1670
|
+
}));
|
|
1671
|
+
/** Get PostgreSQL configuration details Retrieves detailed information about the current PostgreSQL configuration parameters for a branch, including parameter types, descriptions, acceptable ranges, default values, and current values. */
|
|
1672
|
+
export const getBranchPostgresConfig = /*@__PURE__*/ API.make(() => ({
|
|
1673
|
+
input: GetBranchPostgresConfigRequest,
|
|
1674
|
+
output: PostgresConfigDetails,
|
|
1675
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1676
|
+
protocol: XataProtocol,
|
|
1677
|
+
retry: Retry.Retry,
|
|
1678
|
+
}));
|
|
1679
|
+
/** Get project resource limits Retrieves the default resource limits for projects in the specified organization, including maximum instances, storage, and allowed regions. */
|
|
1680
|
+
export const getDefaultProjectLimits = /*@__PURE__*/ API.make(() => ({
|
|
1681
|
+
input: GetDefaultProjectLimitsRequest,
|
|
1682
|
+
output: ProjectLimits,
|
|
1683
|
+
errors: [UnknownXataError],
|
|
1684
|
+
protocol: XataProtocol,
|
|
1685
|
+
retry: Retry.Retry,
|
|
1686
|
+
}));
|
|
1687
|
+
/** Get GitHub repository for branch Returns the GitHub repository mapping for the specified branch. */
|
|
1688
|
+
export const getGithubRepository = /*@__PURE__*/ API.make(() => ({
|
|
1689
|
+
input: GetGithubRepositoryRequest,
|
|
1690
|
+
output: GetGithubRepositoryResponse,
|
|
1691
|
+
errors: [BadRequest, UnknownXataError],
|
|
1692
|
+
protocol: XataProtocol,
|
|
1693
|
+
retry: Retry.Retry,
|
|
1694
|
+
}));
|
|
1695
|
+
/** Get organization details Retrieve detailed information about a specific organization by its ID. */
|
|
1696
|
+
export const getOrganization = /*@__PURE__*/ API.make(() => ({
|
|
1697
|
+
input: GetOrganizationRequest,
|
|
1698
|
+
output: Organization,
|
|
1699
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
|
|
1700
|
+
protocol: XataProtocol,
|
|
1701
|
+
retry: Retry.Retry,
|
|
1702
|
+
}));
|
|
1703
|
+
/** Get details of a specific invitation Retrieve detailed information about a specific invitation by its ID. */
|
|
1704
|
+
export const getOrganizationInvitation = /*@__PURE__*/ API.make(() => ({
|
|
1705
|
+
input: GetOrganizationInvitationRequest,
|
|
1706
|
+
output: OrganizationInvitation,
|
|
1707
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
|
|
1708
|
+
protocol: XataProtocol,
|
|
1709
|
+
retry: Retry.Retry,
|
|
1710
|
+
}));
|
|
1711
|
+
/** Get organization resource limits Retrieves the effective org-level limits, including project creation limits and branch configuration defaults. Project-specific overrides are not applied here. */
|
|
1712
|
+
export const getOrganizationLimits = /*@__PURE__*/ API.make(() => ({
|
|
1713
|
+
input: GetOrganizationLimitsRequest,
|
|
1714
|
+
output: GetOrganizationLimitsResponse,
|
|
1715
|
+
errors: [Forbidden, UnknownXataError],
|
|
1716
|
+
protocol: XataProtocol,
|
|
1717
|
+
retry: Retry.Retry,
|
|
1718
|
+
}));
|
|
1719
|
+
/** Get organization membership limits Retrieves the membership limits for the specified organization (maximum members and invitations). */
|
|
1720
|
+
export const getOrganizationMembershipLimits = /*@__PURE__*/ API.make(() => ({
|
|
1721
|
+
input: GetOrganizationMembershipLimitsRequest,
|
|
1722
|
+
output: OrganizationMembershipLimits,
|
|
1723
|
+
errors: [Forbidden, UnknownXataError],
|
|
1724
|
+
protocol: XataProtocol,
|
|
1725
|
+
retry: Retry.Retry,
|
|
1726
|
+
}));
|
|
1727
|
+
/** Get list of organizations Retrieve the list of all organizations the authenticated user belongs to, including their IDs and names. This endpoint allows users to view all organizations they have access to. */
|
|
1728
|
+
export const getOrganizationsList = /*@__PURE__*/ API.make(() => ({
|
|
1729
|
+
input: GetOrganizationsListRequest,
|
|
1730
|
+
output: GetOrganizationsListResponse,
|
|
1731
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1732
|
+
protocol: XataProtocol,
|
|
1733
|
+
retry: Retry.Retry,
|
|
1734
|
+
}));
|
|
1735
|
+
/** Get project details Retrieves detailed information about a specific project by its ID within the specified organization. */
|
|
1736
|
+
export const getProject = /*@__PURE__*/ API.make(() => ({
|
|
1737
|
+
input: GetProjectRequest,
|
|
1738
|
+
output: Project,
|
|
1739
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1740
|
+
protocol: XataProtocol,
|
|
1741
|
+
retry: Retry.Retry,
|
|
1742
|
+
}));
|
|
1743
|
+
/** Get project resource limits Retrieves the effective resource limits for the specified project, merging organization-level overrides with any project-specific overrides. */
|
|
1744
|
+
export const getProjectLimits = /*@__PURE__*/ API.make(() => ({
|
|
1745
|
+
input: GetProjectLimitsRequest,
|
|
1746
|
+
output: EffectiveProjectLimits,
|
|
1747
|
+
errors: [UnknownXataError],
|
|
1748
|
+
protocol: XataProtocol,
|
|
1749
|
+
retry: Retry.Retry,
|
|
1750
|
+
}));
|
|
1751
|
+
/** 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. */
|
|
1752
|
+
export const githubWebhook = /*@__PURE__*/ API.make(() => ({
|
|
1753
|
+
input: GithubWebhookRequest,
|
|
1754
|
+
output: GithubWebhookResponse,
|
|
1755
|
+
errors: [BadRequest, UnknownXataError],
|
|
1756
|
+
protocol: XataProtocol,
|
|
1757
|
+
retry: Retry.Retry,
|
|
1758
|
+
}));
|
|
1759
|
+
/** List project backups Retrieves a list of backups for the specified project. */
|
|
1760
|
+
export const listBackups = /*@__PURE__*/ API.make(() => ({
|
|
1761
|
+
input: ListBackupsRequest,
|
|
1762
|
+
output: ListBackupsResponse,
|
|
1763
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1764
|
+
protocol: XataProtocol,
|
|
1765
|
+
retry: Retry.Retry,
|
|
1766
|
+
}));
|
|
1767
|
+
/** List all branches Retrieves a list of all branches within the specified project, including their metadata, region, and access settings. */
|
|
1768
|
+
export const listBranches = /*@__PURE__*/ API.make(() => ({
|
|
1769
|
+
input: ListBranchesRequest,
|
|
1770
|
+
output: ListBranchesResponse,
|
|
1771
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1772
|
+
protocol: XataProtocol,
|
|
1773
|
+
retry: Retry.Retry,
|
|
1774
|
+
}));
|
|
1775
|
+
/** Get available extensions for image Retrieves a list of all extensions for the specified image in the organization and region given */
|
|
1776
|
+
export const listExtensions = /*@__PURE__*/ API.make(() => ({
|
|
1777
|
+
input: ListExtensionsRequest,
|
|
1778
|
+
output: ListExtensionsResponse,
|
|
1779
|
+
errors: [BadRequest, UnknownXataError],
|
|
1780
|
+
protocol: XataProtocol,
|
|
1781
|
+
retry: Retry.Retry,
|
|
1782
|
+
}));
|
|
1783
|
+
/** List GitHub App installations for organization Returns all GitHub App installations associated with the specified organization. */
|
|
1784
|
+
export const listGithubAppInstallations = /*@__PURE__*/ API.make(() => ({
|
|
1785
|
+
input: ListGithubAppInstallationsRequest,
|
|
1786
|
+
output: ListGithubAppInstallationsResponse,
|
|
1787
|
+
errors: [BadRequest, UnknownXataError],
|
|
1788
|
+
protocol: XataProtocol,
|
|
1789
|
+
retry: Retry.Retry,
|
|
1790
|
+
}));
|
|
1791
|
+
/** Get available images Retrieves a list of all images for the specified organization and region */
|
|
1792
|
+
export const listImages = /*@__PURE__*/ API.make(() => ({
|
|
1793
|
+
input: ListImagesRequest,
|
|
1794
|
+
output: ListImagesResponse,
|
|
1795
|
+
errors: [BadRequest, UnknownXataError],
|
|
1796
|
+
protocol: XataProtocol,
|
|
1797
|
+
retry: Retry.Retry,
|
|
1798
|
+
}));
|
|
1799
|
+
/** Get available instance types Retrieves a list of all instance types for the specified organization and region */
|
|
1800
|
+
export const listInstanceTypes = /*@__PURE__*/ API.make(() => ({
|
|
1801
|
+
input: ListInstanceTypesRequest,
|
|
1802
|
+
output: ListInstanceTypesResponse,
|
|
1803
|
+
errors: [BadRequest, UnknownXataError],
|
|
1804
|
+
protocol: XataProtocol,
|
|
1805
|
+
retry: Retry.Retry,
|
|
1806
|
+
}));
|
|
1807
|
+
/** List API Keys for an organization Retrieve a list of API keys for a specific organization. */
|
|
1808
|
+
export const listOrganizationAPIKeys = /*@__PURE__*/ API.make(() => ({
|
|
1809
|
+
input: ListOrganizationAPIKeysRequest,
|
|
1810
|
+
output: ListOrganizationAPIKeysResponse,
|
|
1811
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
|
|
1812
|
+
protocol: XataProtocol,
|
|
1813
|
+
retry: Retry.Retry,
|
|
1814
|
+
}));
|
|
1815
|
+
/** List invitations for an organization Retrieve all invitations for an organization with optional filtering by status, email, and name. */
|
|
1816
|
+
export const listOrganizationInvitations = /*@__PURE__*/ API.make(() => ({
|
|
1817
|
+
input: ListOrganizationInvitationsRequest,
|
|
1818
|
+
output: ListOrganizationInvitationsResponse,
|
|
1819
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
|
|
1820
|
+
protocol: XataProtocol,
|
|
1821
|
+
retry: Retry.Retry,
|
|
1822
|
+
}));
|
|
1823
|
+
/** List members of an organization */
|
|
1824
|
+
export const listOrganizationMembers = /*@__PURE__*/ API.make(() => ({
|
|
1825
|
+
input: ListOrganizationMembersRequest,
|
|
1826
|
+
output: ListOrganizationMembersResponse,
|
|
1827
|
+
errors: [UnknownXataError],
|
|
1828
|
+
protocol: XataProtocol,
|
|
1829
|
+
retry: Retry.Retry,
|
|
1830
|
+
}));
|
|
1831
|
+
/** List all projects Retrieves a list of all projects within the specified organization that the authenticated user has access to. */
|
|
1832
|
+
export const listProjects = /*@__PURE__*/ API.make(() => ({
|
|
1833
|
+
input: ListProjectsRequest,
|
|
1834
|
+
output: ListProjectsResponse,
|
|
1835
|
+
errors: [BadRequest, UnknownXataError],
|
|
1836
|
+
protocol: XataProtocol,
|
|
1837
|
+
retry: Retry.Retry,
|
|
1838
|
+
}));
|
|
1839
|
+
/** Get available regions Retrieves a list of all regions where new branches can be deployed for the specified organization. */
|
|
1840
|
+
export const listRegions = /*@__PURE__*/ API.make(() => ({
|
|
1841
|
+
input: ListRegionsRequest,
|
|
1842
|
+
output: ListRegionsResponse,
|
|
1843
|
+
errors: [BadRequest, UnknownXataError],
|
|
1844
|
+
protocol: XataProtocol,
|
|
1845
|
+
retry: Retry.Retry,
|
|
1846
|
+
}));
|
|
1847
|
+
/** List API Keys for the authenticated user Retrieve a list of API keys for the authenticated user. */
|
|
1848
|
+
export const listUserAPIKeys = /*@__PURE__*/ API.make(() => ({
|
|
1849
|
+
input: ListUserAPIKeysRequest,
|
|
1850
|
+
output: ListUserAPIKeysResponse,
|
|
1851
|
+
errors: [BadRequest, UnknownXataError],
|
|
1852
|
+
protocol: XataProtocol,
|
|
1853
|
+
retry: Retry.Retry,
|
|
1854
|
+
}));
|
|
1855
|
+
/** Orb billing webhook Endpoint used by Orb to deliver billing-related webhook events. This endpoint is authenticated via Orb's HMAC signature headers, not via the normal API authentication. */
|
|
1856
|
+
export const orbWebhook = /*@__PURE__*/ API.make(() => ({
|
|
1857
|
+
input: OrbWebhookRequest,
|
|
1858
|
+
output: OrbWebhookResponse,
|
|
1859
|
+
errors: [BadRequest, UnknownXataError],
|
|
1860
|
+
protocol: XataProtocol,
|
|
1861
|
+
retry: Retry.Retry,
|
|
1862
|
+
}));
|
|
1863
|
+
/** 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. */
|
|
1864
|
+
export const query = /*@__PURE__*/ API.make(() => ({
|
|
1865
|
+
input: QueryRequest,
|
|
1866
|
+
output: QueryResponse,
|
|
1867
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownXataError],
|
|
1868
|
+
protocol: XataProtocol,
|
|
1869
|
+
retry: Retry.Retry,
|
|
1870
|
+
}));
|
|
1871
|
+
/** Register with a cloud marketplace Links the authenticated user to a cloud marketplace subscription. Only one marketplace registration is allowed per user. */
|
|
1872
|
+
export const registerMarketplace = /*@__PURE__*/ API.make(() => ({
|
|
1873
|
+
input: RegisterMarketplaceRequest,
|
|
1874
|
+
output: RegisterMarketplaceResponse,
|
|
1875
|
+
errors: [BadRequest, Conflict, UnknownXataError],
|
|
1876
|
+
protocol: XataProtocol,
|
|
1877
|
+
retry: Retry.Retry,
|
|
1878
|
+
}));
|
|
1879
|
+
/** Remove a member from an organization */
|
|
1880
|
+
export const removeOrganizationMember = /*@__PURE__*/ API.make(() => ({
|
|
1881
|
+
input: RemoveOrganizationMemberRequest,
|
|
1882
|
+
output: RemoveOrganizationMemberResponse,
|
|
1883
|
+
errors: [UnknownXataError],
|
|
1884
|
+
protocol: XataProtocol,
|
|
1885
|
+
retry: Retry.Retry,
|
|
1886
|
+
}));
|
|
1887
|
+
/** 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. */
|
|
1888
|
+
export const requestOrganizationDeletion = /*@__PURE__*/ API.make(() => ({
|
|
1889
|
+
input: RequestOrganizationDeletionRequest,
|
|
1890
|
+
output: RequestOrganizationDeletionResponse,
|
|
1891
|
+
errors: [BadRequest, Forbidden, Conflict, UnknownXataError],
|
|
1892
|
+
protocol: XataProtocol,
|
|
1893
|
+
retry: Retry.Retry,
|
|
1894
|
+
}));
|
|
1895
|
+
/** Resend an invitation Resend a pending invitation with a fresh expiration time. */
|
|
1896
|
+
export const resendOrganizationInvitation = /*@__PURE__*/ API.make(() => ({
|
|
1897
|
+
input: ResendOrganizationInvitationRequest,
|
|
1898
|
+
output: ResendOrganizationInvitationResponse,
|
|
1899
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
|
|
1900
|
+
protocol: XataProtocol,
|
|
1901
|
+
retry: Retry.Retry,
|
|
1902
|
+
}));
|
|
1903
|
+
/** Create a new branch from a backup of another branch Creates a new backup branch within the specified project. */
|
|
1904
|
+
export const restoreFromBackup = /*@__PURE__*/ API.make(() => ({
|
|
1905
|
+
input: RestoreFromBackupRequest,
|
|
1906
|
+
output: BranchShortMetadata,
|
|
1907
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1908
|
+
protocol: XataProtocol,
|
|
1909
|
+
retry: Retry.Retry,
|
|
1910
|
+
}));
|
|
1911
|
+
/** Rotate branch credentials Triggers a credential rotation for the branch database user. The new credentials can be retrieved via the credentials endpoint after rotation completes. */
|
|
1912
|
+
export const rotateBranchCredentials = /*@__PURE__*/ API.make(() => ({
|
|
1913
|
+
input: RotateBranchCredentialsRequest,
|
|
1914
|
+
output: RotateBranchCredentialsResponse,
|
|
1915
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1916
|
+
protocol: XataProtocol,
|
|
1917
|
+
retry: Retry.Retry,
|
|
1918
|
+
}));
|
|
1919
|
+
/** Send an MCP message Handle a single JSON-RPC 2.0 message from an MCP client, per the MCP [Streamable HTTP transport](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports). The server is stateless: every request is self-contained and carries the caller's credential, so there is no session to establish or resume. `GET` and `DELETE` on this path return `405 Method Not Allowed`. **Requests** (messages with an `id`) are answered with the JSON-RPC response, either as `application/json` or as a `text/event-stream` carrying the response and any notifications emitted while it runs. Requests must accept both. **Notifications and responses** (messages without an `id`) are answered with `202 Accepted` and an empty body. */
|
|
1920
|
+
export const sendMcpRequest = /*@__PURE__*/ API.make(() => ({
|
|
1921
|
+
input: SendMcpRequestRequest,
|
|
1922
|
+
output: JSONRPCResponse,
|
|
1923
|
+
errors: [BadRequest, UnknownXataError],
|
|
1924
|
+
protocol: XataProtocol,
|
|
1925
|
+
retry: Retry.Retry,
|
|
1926
|
+
}));
|
|
1927
|
+
/** 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. */
|
|
1928
|
+
export const stripeWebhook = /*@__PURE__*/ API.make(() => ({
|
|
1929
|
+
input: StripeWebhookRequest,
|
|
1930
|
+
output: StripeWebhookResponse,
|
|
1931
|
+
errors: [BadRequest, UnknownXataError],
|
|
1932
|
+
protocol: XataProtocol,
|
|
1933
|
+
retry: Retry.Retry,
|
|
1934
|
+
}));
|
|
1935
|
+
/** Update billing customer details Updates billing customer details for the specified organization. */
|
|
1936
|
+
export const updateBillingCustomer = /*@__PURE__*/ API.make(() => ({
|
|
1937
|
+
input: UpdateBillingCustomerRequest,
|
|
1938
|
+
output: BillingCustomerResponse,
|
|
1939
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
|
|
1940
|
+
protocol: XataProtocol,
|
|
1941
|
+
retry: Retry.Retry,
|
|
1942
|
+
}));
|
|
1943
|
+
/** Update branch details Updates the configuration of a specific branch by its ID, such as changing its name, description, or resource allocation. */
|
|
1944
|
+
export const updateBranch = /*@__PURE__*/ API.make(() => ({
|
|
1945
|
+
input: UpdateBranchRequest,
|
|
1946
|
+
output: BranchShortMetadata,
|
|
1947
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1948
|
+
protocol: XataProtocol,
|
|
1949
|
+
retry: Retry.Retry,
|
|
1950
|
+
}));
|
|
1951
|
+
/** Update GitHub App installation Updates an existing GitHub App installation mapping. */
|
|
1952
|
+
export const updateGithubAppInstallation = /*@__PURE__*/ API.make(() => ({
|
|
1953
|
+
input: UpdateGithubAppInstallationRequest,
|
|
1954
|
+
output: GithubInstallation,
|
|
1955
|
+
errors: [BadRequest, NotFound, Conflict, UnknownXataError],
|
|
1956
|
+
protocol: XataProtocol,
|
|
1957
|
+
retry: Retry.Retry,
|
|
1958
|
+
}));
|
|
1959
|
+
/** Update GitHub repository mapping Updates an existing GitHub repository to Xata branch mapping. */
|
|
1960
|
+
export const updateGithubRepository = /*@__PURE__*/ API.make(() => ({
|
|
1961
|
+
input: UpdateGithubRepositoryRequest,
|
|
1962
|
+
output: GithubRepository,
|
|
1963
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1964
|
+
protocol: XataProtocol,
|
|
1965
|
+
retry: Retry.Retry,
|
|
1966
|
+
}));
|
|
1967
|
+
/** Update organization details Update information for an existing organization, such as its name. */
|
|
1968
|
+
export const updateOrganization = /*@__PURE__*/ API.make(() => ({
|
|
1969
|
+
input: UpdateOrganizationRequest,
|
|
1970
|
+
output: Organization,
|
|
1971
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownXataError],
|
|
1972
|
+
protocol: XataProtocol,
|
|
1973
|
+
retry: Retry.Retry,
|
|
1974
|
+
}));
|
|
1975
|
+
/** Update project details Updates the details of a specific project by its ID, such as changing its name. */
|
|
1976
|
+
export const updateProject = /*@__PURE__*/ API.make(() => ({
|
|
1977
|
+
input: UpdateProjectRequest,
|
|
1978
|
+
output: Project,
|
|
1979
|
+
errors: [BadRequest, NotFound, UnknownXataError],
|
|
1980
|
+
protocol: XataProtocol,
|
|
1981
|
+
retry: Retry.Retry,
|
|
1982
|
+
}));
|
|
1983
|
+
/** 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. */
|
|
1984
|
+
export const upsertInstallation = /*@__PURE__*/ API.make(() => ({
|
|
1985
|
+
input: UpsertInstallationRequest,
|
|
1986
|
+
output: UpsertInstallationResponse,
|
|
1987
|
+
errors: [BadRequest, Forbidden, Conflict, UnknownXataError],
|
|
1988
|
+
protocol: XataProtocol,
|
|
1989
|
+
retry: Retry.Retry,
|
|
1990
|
+
}));
|
|
1991
|
+
/** 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. */
|
|
1992
|
+
export const websocket = /*@__PURE__*/ API.make(() => ({
|
|
1993
|
+
input: WebsocketRequest,
|
|
1994
|
+
output: WebsocketResponse,
|
|
1995
|
+
errors: [BadRequest, UnknownXataError],
|
|
1996
|
+
protocol: XataProtocol,
|
|
1997
|
+
retry: Retry.Retry,
|
|
1998
|
+
}));
|
|
1999
|
+
//# sourceMappingURL=xata.js.map
|