@distilled.cloud/turso 1.0.0-rc.20 → 1.0.0-rc.22
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/README.md +0 -1
- package/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +7 -3
- package/lib/credentials.d.ts.map +1 -1
- package/lib/errors.d.ts +7 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.lazy.js.map +1 -1
- package/lib/protocol.d.ts +9 -12
- package/lib/protocol.d.ts.map +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/turso.d.ts +38 -5
- package/lib/services/turso.d.ts.map +1 -1
- package/lib/services/turso.js +81 -80
- package/lib/services/turso.js.map +1 -1
- package/lib/services.lazy/turso.js +1 -1
- package/lib/traits.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/credentials.ts +20 -15
- package/src/errors.ts +9 -1
- package/src/protocol.ts +13 -21
- package/src/services/turso.ts +413 -263
package/src/services/turso.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as C from "@distilled.cloud/core/category";
|
|
|
4
4
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
5
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
6
|
import type * as Redacted from "effect/Redacted";
|
|
7
|
+
import { TursoServiceErrors } from "../errors.ts";
|
|
7
8
|
import { TursoProtocol, type TursoOpError, type TursoOpContext } from "../protocol.ts";
|
|
8
9
|
import * as Retry from "../retry.ts";
|
|
9
10
|
import * as T from "../traits.ts";
|
|
@@ -30,36 +31,101 @@ export class BadRequest
|
|
|
30
31
|
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
31
32
|
code: S.Number,
|
|
32
33
|
message: S.String,
|
|
34
|
+
body: /*@__PURE__*/ S.optional(
|
|
35
|
+
/*@__PURE__*/ S.Union([
|
|
36
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
37
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
38
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
39
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
40
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
41
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
42
|
+
S.String,
|
|
43
|
+
]),
|
|
44
|
+
),
|
|
45
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
33
46
|
}).pipe(C.withBadRequestError),
|
|
34
47
|
[{ status: 400 }],
|
|
35
|
-
)
|
|
48
|
+
)
|
|
49
|
+
{
|
|
50
|
+
declare readonly body?:
|
|
51
|
+
| Error400Body4
|
|
52
|
+
| Error400Body
|
|
53
|
+
| Error400Body2
|
|
54
|
+
| Error400Body3
|
|
55
|
+
| Error400Body5
|
|
56
|
+
| Error400Body6
|
|
57
|
+
| string;
|
|
58
|
+
}
|
|
36
59
|
|
|
37
60
|
export class Conflict
|
|
38
61
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
39
62
|
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
40
63
|
code: S.Number,
|
|
41
64
|
message: S.String,
|
|
65
|
+
body: /*@__PURE__*/ S.optional(
|
|
66
|
+
/*@__PURE__*/ S.Union([
|
|
67
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
68
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
69
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
70
|
+
S.String,
|
|
71
|
+
]),
|
|
72
|
+
),
|
|
73
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
42
74
|
}).pipe(C.withConflictError),
|
|
43
75
|
[{ status: 409 }],
|
|
44
|
-
)
|
|
76
|
+
)
|
|
77
|
+
{
|
|
78
|
+
declare readonly body?: Error409Body3 | Error409Body | Error409Body2 | string;
|
|
79
|
+
}
|
|
45
80
|
|
|
46
81
|
export class Forbidden
|
|
47
82
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
48
83
|
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
49
84
|
code: S.Number,
|
|
50
85
|
message: S.String,
|
|
86
|
+
body: /*@__PURE__*/ S.optional(
|
|
87
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]),
|
|
88
|
+
),
|
|
89
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
51
90
|
}).pipe(C.withAuthError),
|
|
52
91
|
[{ status: 403 }],
|
|
53
|
-
)
|
|
92
|
+
)
|
|
93
|
+
{
|
|
94
|
+
declare readonly body?: Error403Body | string;
|
|
95
|
+
}
|
|
54
96
|
|
|
55
97
|
export class NotFound
|
|
56
98
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
57
99
|
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
58
100
|
code: S.Number,
|
|
59
101
|
message: S.String,
|
|
102
|
+
body: /*@__PURE__*/ S.optional(
|
|
103
|
+
/*@__PURE__*/ S.Union([
|
|
104
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
105
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
106
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
107
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
108
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
109
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
110
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
111
|
+
S.String,
|
|
112
|
+
]),
|
|
113
|
+
),
|
|
114
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
60
115
|
}).pipe(C.withBadRequestError),
|
|
61
116
|
[{ status: 404 }],
|
|
62
|
-
)
|
|
117
|
+
)
|
|
118
|
+
{
|
|
119
|
+
declare readonly body?:
|
|
120
|
+
| Error400Body
|
|
121
|
+
| Error404Body3
|
|
122
|
+
| Error404Body
|
|
123
|
+
| Error404Body6
|
|
124
|
+
| Error404Body2
|
|
125
|
+
| Error404Body4
|
|
126
|
+
| Error404Body5
|
|
127
|
+
| string;
|
|
128
|
+
}
|
|
63
129
|
|
|
64
130
|
export interface AddLocationToGroupRequest {
|
|
65
131
|
/** The slug of the organization or user account. */
|
|
@@ -164,7 +230,7 @@ export type CreateDatabaseRequestRemoteEncryptionEncryptionCipher =
|
|
|
164
230
|
/** Encryption configuration for the database. Can be used when creating a new encrypted database, creating a encrypted database from upload (`seed.type = "database_upload"`), or forking from an encrypted database (required when the source database is encrypted). */
|
|
165
231
|
export interface CreateDatabaseRequestRemoteEncryption {
|
|
166
232
|
/** Base64-encoded encryption key. Key size depends on cipher: 32 bytes for aes256gcm, chacha20poly1305, aegis256 variants; 16 bytes for aes128gcm, aegis128l variants. */
|
|
167
|
-
encryption_key?: string | undefined;
|
|
233
|
+
encryption_key?: Redacted.Redacted<string> | undefined;
|
|
168
234
|
/** The encryption cipher to use. */
|
|
169
235
|
encryption_cipher?:
|
|
170
236
|
| CreateDatabaseRequestRemoteEncryptionEncryptionCipher
|
|
@@ -1019,7 +1085,7 @@ export interface RevokeAPITokenRequest {
|
|
|
1019
1085
|
}
|
|
1020
1086
|
export interface RevokeAPITokenResponse {
|
|
1021
1087
|
/** The revoked token name. */
|
|
1022
|
-
token?: string | undefined;
|
|
1088
|
+
token?: Redacted.Redacted<string> | undefined;
|
|
1023
1089
|
}
|
|
1024
1090
|
export interface RevokeOrganizationAPITokenRequest {
|
|
1025
1091
|
/** The slug of the organization or user account. */
|
|
@@ -1029,7 +1095,7 @@ export interface RevokeOrganizationAPITokenRequest {
|
|
|
1029
1095
|
}
|
|
1030
1096
|
export interface RevokeOrganizationAPITokenResponse {
|
|
1031
1097
|
/** The ID of the revoked token. */
|
|
1032
|
-
token?: string | undefined;
|
|
1098
|
+
token?: Redacted.Redacted<string> | undefined;
|
|
1033
1099
|
}
|
|
1034
1100
|
export interface TransferGroupRequest {
|
|
1035
1101
|
/** The slug of the organization or user account. */
|
|
@@ -1146,6 +1212,27 @@ export interface ValidateAPITokenResponse {
|
|
|
1146
1212
|
/** The time of expiration for the provided token in unix epoch seconds, or `-1` if there is no expiration. */
|
|
1147
1213
|
exp?: number | undefined;
|
|
1148
1214
|
}
|
|
1215
|
+
export interface Error400Body4 {
|
|
1216
|
+
/** The error message */
|
|
1217
|
+
error?: string | undefined;
|
|
1218
|
+
}
|
|
1219
|
+
export type Error400Body = Error400Body4;
|
|
1220
|
+
export type Error400Body2 = Error400Body4;
|
|
1221
|
+
export type Error400Body3 = Error400Body4;
|
|
1222
|
+
export type Error400Body5 = Error400Body4;
|
|
1223
|
+
export type Error400Body6 = Error400Body4;
|
|
1224
|
+
export type Error409Body3 = Error400Body4;
|
|
1225
|
+
export type Error409Body = Error400Body4;
|
|
1226
|
+
export type Error409Body2 = Error400Body4;
|
|
1227
|
+
export type Error403Body = Error400Body4;
|
|
1228
|
+
export type Error404Body3 = Error400Body4;
|
|
1229
|
+
export type Error404Body = Error400Body4;
|
|
1230
|
+
export interface Error404Body6 {
|
|
1231
|
+
error?: string | undefined;
|
|
1232
|
+
}
|
|
1233
|
+
export type Error404Body2 = Error400Body4;
|
|
1234
|
+
export type Error404Body4 = Error400Body4;
|
|
1235
|
+
export type Error404Body5 = Error400Body4;
|
|
1149
1236
|
export type AddLocationToGroupError = BadRequest | NotFound | TursoOpError;
|
|
1150
1237
|
/** Add Location to Group Adds a location to the specified group. */
|
|
1151
1238
|
export const addLocationToGroup: API.OperationMethod<
|
|
@@ -1154,9 +1241,10 @@ export const addLocationToGroup: API.OperationMethod<
|
|
|
1154
1241
|
AddLocationToGroupError,
|
|
1155
1242
|
TursoOpContext
|
|
1156
1243
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1157
|
-
input: __S(
|
|
1158
|
-
output: __S(
|
|
1244
|
+
input: __S(352, __c44, 0) as any as S.Schema<AddLocationToGroupRequest>,
|
|
1245
|
+
output: __S(376, __c47, 0) as any as S.Schema<AddLocationToGroupResponse>,
|
|
1159
1246
|
errors: [BadRequest, NotFound],
|
|
1247
|
+
serviceErrors: TursoServiceErrors,
|
|
1160
1248
|
protocol: TursoProtocol,
|
|
1161
1249
|
retry: Retry.Retry,
|
|
1162
1250
|
telemetry: TELEMETRY,
|
|
@@ -1171,9 +1259,10 @@ export const addOrganizationMember: API.OperationMethod<
|
|
|
1171
1259
|
AddOrganizationMemberError,
|
|
1172
1260
|
TursoOpContext
|
|
1173
1261
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1174
|
-
input: __S(
|
|
1175
|
-
output: __S(
|
|
1262
|
+
input: __S(472, __c59, 0) as any as S.Schema<AddOrganizationMemberRequest>,
|
|
1263
|
+
output: __S(473, __c59, 1) as any as S.Schema<AddOrganizationMemberResponse>,
|
|
1176
1264
|
errors: [BadRequest, NotFound, Conflict],
|
|
1265
|
+
serviceErrors: TursoServiceErrors,
|
|
1177
1266
|
protocol: TursoProtocol,
|
|
1178
1267
|
retry: Retry.Retry,
|
|
1179
1268
|
telemetry: TELEMETRY,
|
|
@@ -1188,9 +1277,10 @@ export const createAPIToken: API.OperationMethod<
|
|
|
1188
1277
|
CreateAPITokenError,
|
|
1189
1278
|
TursoOpContext
|
|
1190
1279
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1191
|
-
input: __S(
|
|
1192
|
-
output: __S(
|
|
1280
|
+
input: __S(537, __c67, 1) as any as S.Schema<CreateAPITokenRequest>,
|
|
1281
|
+
output: __S(538, __c67, 2) as any as S.Schema<CreateAPITokenResponse>,
|
|
1193
1282
|
errors: [BadRequest, NotFound, Conflict],
|
|
1283
|
+
serviceErrors: TursoServiceErrors,
|
|
1194
1284
|
protocol: TursoProtocol,
|
|
1195
1285
|
retry: Retry.Retry,
|
|
1196
1286
|
telemetry: TELEMETRY,
|
|
@@ -1205,9 +1295,10 @@ export const createDatabase: API.OperationMethod<
|
|
|
1205
1295
|
CreateDatabaseError,
|
|
1206
1296
|
TursoOpContext
|
|
1207
1297
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1208
|
-
input: __S(
|
|
1209
|
-
output: __S(
|
|
1298
|
+
input: __S(546, __c68, 2) as any as S.Schema<CreateDatabaseRequest>,
|
|
1299
|
+
output: __S(548, __c68, 4) as any as S.Schema<CreateDatabaseResponse>,
|
|
1210
1300
|
errors: [BadRequest, Conflict],
|
|
1301
|
+
serviceErrors: TursoServiceErrors,
|
|
1211
1302
|
protocol: TursoProtocol,
|
|
1212
1303
|
retry: Retry.Retry,
|
|
1213
1304
|
telemetry: TELEMETRY,
|
|
@@ -1222,9 +1313,10 @@ export const createDatabaseToken: API.OperationMethod<
|
|
|
1222
1313
|
CreateDatabaseTokenError,
|
|
1223
1314
|
TursoOpContext
|
|
1224
1315
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1225
|
-
input: __S(
|
|
1226
|
-
output: __S(
|
|
1316
|
+
input: __S(552, __c69, 0) as any as S.Schema<CreateDatabaseTokenRequest>,
|
|
1317
|
+
output: __S(562, __c70, 2) as any as S.Schema<CreateDatabaseTokenResponse>,
|
|
1227
1318
|
errors: [BadRequest, NotFound],
|
|
1319
|
+
serviceErrors: TursoServiceErrors,
|
|
1228
1320
|
protocol: TursoProtocol,
|
|
1229
1321
|
retry: Retry.Retry,
|
|
1230
1322
|
telemetry: TELEMETRY,
|
|
@@ -1239,9 +1331,10 @@ export const createGroup: API.OperationMethod<
|
|
|
1239
1331
|
CreateGroupError,
|
|
1240
1332
|
TursoOpContext
|
|
1241
1333
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1242
|
-
input: __S(
|
|
1243
|
-
output: __S(
|
|
1334
|
+
input: __S(568, __c71, 0) as any as S.Schema<CreateGroupRequest>,
|
|
1335
|
+
output: __S(376, __c47, 0) as any as S.Schema<CreateGroupResponse>,
|
|
1244
1336
|
errors: [BadRequest, Conflict],
|
|
1337
|
+
serviceErrors: TursoServiceErrors,
|
|
1245
1338
|
protocol: TursoProtocol,
|
|
1246
1339
|
retry: Retry.Retry,
|
|
1247
1340
|
telemetry: TELEMETRY,
|
|
@@ -1256,9 +1349,10 @@ export const createGroupToken: API.OperationMethod<
|
|
|
1256
1349
|
CreateGroupTokenError,
|
|
1257
1350
|
TursoOpContext
|
|
1258
1351
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1259
|
-
input: __S(
|
|
1260
|
-
output: __S(
|
|
1352
|
+
input: __S(8, __c1, 0) as any as S.Schema<CreateGroupTokenRequest>,
|
|
1353
|
+
output: __S(562, __c70, 2) as any as S.Schema<CreateGroupTokenResponse>,
|
|
1261
1354
|
errors: [BadRequest, NotFound],
|
|
1355
|
+
serviceErrors: TursoServiceErrors,
|
|
1262
1356
|
protocol: TursoProtocol,
|
|
1263
1357
|
retry: Retry.Retry,
|
|
1264
1358
|
telemetry: TELEMETRY,
|
|
@@ -1273,9 +1367,10 @@ export const deleteDatabase: API.OperationMethod<
|
|
|
1273
1367
|
DeleteDatabaseError,
|
|
1274
1368
|
TursoOpContext
|
|
1275
1369
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1276
|
-
input: __S(
|
|
1277
|
-
output: __S(
|
|
1370
|
+
input: __S(16, __c2, 0) as any as S.Schema<DeleteDatabaseRequest>,
|
|
1371
|
+
output: __S(17, __c2, 1) as any as S.Schema<DeleteDatabaseResponse>,
|
|
1278
1372
|
errors: [NotFound],
|
|
1373
|
+
serviceErrors: TursoServiceErrors,
|
|
1279
1374
|
protocol: TursoProtocol,
|
|
1280
1375
|
retry: Retry.Retry,
|
|
1281
1376
|
telemetry: TELEMETRY,
|
|
@@ -1290,9 +1385,10 @@ export const deleteGroup: API.OperationMethod<
|
|
|
1290
1385
|
DeleteGroupError,
|
|
1291
1386
|
TursoOpContext
|
|
1292
1387
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1293
|
-
input: __S(
|
|
1294
|
-
output: __S(
|
|
1388
|
+
input: __S(24, __c3, 0) as any as S.Schema<DeleteGroupRequest>,
|
|
1389
|
+
output: __S(376, __c47, 0) as any as S.Schema<DeleteGroupResponse>,
|
|
1295
1390
|
errors: [NotFound],
|
|
1391
|
+
serviceErrors: TursoServiceErrors,
|
|
1296
1392
|
protocol: TursoProtocol,
|
|
1297
1393
|
retry: Retry.Retry,
|
|
1298
1394
|
telemetry: TELEMETRY,
|
|
@@ -1307,9 +1403,10 @@ export const deleteOrganizationInviteByEmailV2: API.OperationMethod<
|
|
|
1307
1403
|
DeleteOrganizationInviteByEmailV2Error,
|
|
1308
1404
|
TursoOpContext
|
|
1309
1405
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1310
|
-
input: __S(
|
|
1311
|
-
output: __S(
|
|
1406
|
+
input: __S(32, __c4, 0) as any as S.Schema<DeleteOrganizationInviteByEmailV2Request>,
|
|
1407
|
+
output: __S(40, __c5, 0) as any as S.Schema<DeleteOrganizationInviteByEmailV2Response>,
|
|
1312
1408
|
errors: [NotFound],
|
|
1409
|
+
serviceErrors: TursoServiceErrors,
|
|
1313
1410
|
protocol: TursoProtocol,
|
|
1314
1411
|
retry: Retry.Retry,
|
|
1315
1412
|
telemetry: TELEMETRY,
|
|
@@ -1324,9 +1421,10 @@ export const getCurrentUser: API.OperationMethod<
|
|
|
1324
1421
|
GetCurrentUserError,
|
|
1325
1422
|
TursoOpContext
|
|
1326
1423
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1327
|
-
input: __S(
|
|
1328
|
-
output: __S(
|
|
1424
|
+
input: __S(48, __c6, 0) as any as S.Schema<GetCurrentUserRequest>,
|
|
1425
|
+
output: __S(50, __c6, 2) as any as S.Schema<GetCurrentUserResponse>,
|
|
1329
1426
|
errors: [],
|
|
1427
|
+
serviceErrors: TursoServiceErrors,
|
|
1330
1428
|
protocol: TursoProtocol,
|
|
1331
1429
|
retry: Retry.Retry,
|
|
1332
1430
|
telemetry: TELEMETRY,
|
|
@@ -1341,9 +1439,10 @@ export const getDatabase: API.OperationMethod<
|
|
|
1341
1439
|
GetDatabaseError,
|
|
1342
1440
|
TursoOpContext
|
|
1343
1441
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1344
|
-
input: __S(
|
|
1345
|
-
output: __S(
|
|
1442
|
+
input: __S(56, __c7, 0) as any as S.Schema<GetDatabaseRequest>,
|
|
1443
|
+
output: __S(57, __c7, 1) as any as S.Schema<GetDatabaseResponse>,
|
|
1346
1444
|
errors: [NotFound],
|
|
1445
|
+
serviceErrors: TursoServiceErrors,
|
|
1347
1446
|
protocol: TursoProtocol,
|
|
1348
1447
|
retry: Retry.Retry,
|
|
1349
1448
|
telemetry: TELEMETRY,
|
|
@@ -1358,9 +1457,10 @@ export const getDatabaseConfiguration: API.OperationMethod<
|
|
|
1358
1457
|
GetDatabaseConfigurationError,
|
|
1359
1458
|
TursoOpContext
|
|
1360
1459
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1361
|
-
input: __S(
|
|
1362
|
-
output: __S(
|
|
1460
|
+
input: __S(72, __c9, 0) as any as S.Schema<GetDatabaseConfigurationRequest>,
|
|
1461
|
+
output: __S(80, __c10, 0) as any as S.Schema<DatabaseConfigurationResponse>,
|
|
1363
1462
|
errors: [NotFound],
|
|
1463
|
+
serviceErrors: TursoServiceErrors,
|
|
1364
1464
|
protocol: TursoProtocol,
|
|
1365
1465
|
retry: Retry.Retry,
|
|
1366
1466
|
telemetry: TELEMETRY,
|
|
@@ -1375,9 +1475,10 @@ export const getDatabaseInstance: API.OperationMethod<
|
|
|
1375
1475
|
GetDatabaseInstanceError,
|
|
1376
1476
|
TursoOpContext
|
|
1377
1477
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1378
|
-
input: __S(
|
|
1379
|
-
output: __S(
|
|
1478
|
+
input: __S(88, __c11, 0) as any as S.Schema<GetDatabaseInstanceRequest>,
|
|
1479
|
+
output: __S(89, __c11, 1) as any as S.Schema<GetDatabaseInstanceResponse>,
|
|
1380
1480
|
errors: [NotFound],
|
|
1481
|
+
serviceErrors: TursoServiceErrors,
|
|
1381
1482
|
protocol: TursoProtocol,
|
|
1382
1483
|
retry: Retry.Retry,
|
|
1383
1484
|
telemetry: TELEMETRY,
|
|
@@ -1392,9 +1493,10 @@ export const getDatabaseStats: API.OperationMethod<
|
|
|
1392
1493
|
GetDatabaseStatsError,
|
|
1393
1494
|
TursoOpContext
|
|
1394
1495
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1395
|
-
input: __S(
|
|
1396
|
-
output: __S(
|
|
1496
|
+
input: __S(104, __c13, 0) as any as S.Schema<GetDatabaseStatsRequest>,
|
|
1497
|
+
output: __S(107, __c13, 3) as any as S.Schema<GetDatabaseStatsResponse>,
|
|
1397
1498
|
errors: [NotFound],
|
|
1499
|
+
serviceErrors: TursoServiceErrors,
|
|
1398
1500
|
protocol: TursoProtocol,
|
|
1399
1501
|
retry: Retry.Retry,
|
|
1400
1502
|
telemetry: TELEMETRY,
|
|
@@ -1409,9 +1511,10 @@ export const getDatabaseUsage: API.OperationMethod<
|
|
|
1409
1511
|
GetDatabaseUsageError,
|
|
1410
1512
|
TursoOpContext
|
|
1411
1513
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1412
|
-
input: __S(
|
|
1413
|
-
output: __S(
|
|
1514
|
+
input: __S(112, __c14, 0) as any as S.Schema<GetDatabaseUsageRequest>,
|
|
1515
|
+
output: __S(113, __c14, 1) as any as S.Schema<GetDatabaseUsageResponse>,
|
|
1414
1516
|
errors: [BadRequest, NotFound],
|
|
1517
|
+
serviceErrors: TursoServiceErrors,
|
|
1415
1518
|
protocol: TursoProtocol,
|
|
1416
1519
|
retry: Retry.Retry,
|
|
1417
1520
|
telemetry: TELEMETRY,
|
|
@@ -1426,9 +1529,10 @@ export const getGroup: API.OperationMethod<
|
|
|
1426
1529
|
GetGroupError,
|
|
1427
1530
|
TursoOpContext
|
|
1428
1531
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1429
|
-
input: __S(
|
|
1430
|
-
output: __S(
|
|
1532
|
+
input: __S(128, __c16, 0) as any as S.Schema<GetGroupRequest>,
|
|
1533
|
+
output: __S(376, __c47, 0) as any as S.Schema<GetGroupResponse>,
|
|
1431
1534
|
errors: [NotFound],
|
|
1535
|
+
serviceErrors: TursoServiceErrors,
|
|
1432
1536
|
protocol: TursoProtocol,
|
|
1433
1537
|
retry: Retry.Retry,
|
|
1434
1538
|
telemetry: TELEMETRY,
|
|
@@ -1443,9 +1547,10 @@ export const getGroupConfiguration: API.OperationMethod<
|
|
|
1443
1547
|
GetGroupConfigurationError,
|
|
1444
1548
|
TursoOpContext
|
|
1445
1549
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1446
|
-
input: __S(
|
|
1447
|
-
output: __S(
|
|
1550
|
+
input: __S(136, __c17, 0) as any as S.Schema<GetGroupConfigurationRequest>,
|
|
1551
|
+
output: __S(144, __c18, 0) as any as S.Schema<GroupConfigurationResponse>,
|
|
1448
1552
|
errors: [NotFound],
|
|
1553
|
+
serviceErrors: TursoServiceErrors,
|
|
1449
1554
|
protocol: TursoProtocol,
|
|
1450
1555
|
retry: Retry.Retry,
|
|
1451
1556
|
telemetry: TELEMETRY,
|
|
@@ -1460,9 +1565,10 @@ export const getOrganization: API.OperationMethod<
|
|
|
1460
1565
|
GetOrganizationError,
|
|
1461
1566
|
TursoOpContext
|
|
1462
1567
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1463
|
-
input: __S(
|
|
1464
|
-
output: __S(
|
|
1568
|
+
input: __S(152, __c19, 0) as any as S.Schema<GetOrganizationRequest>,
|
|
1569
|
+
output: __S(168, __c21, 0) as any as S.Schema<GetOrganizationResponse>,
|
|
1465
1570
|
errors: [NotFound],
|
|
1571
|
+
serviceErrors: TursoServiceErrors,
|
|
1466
1572
|
protocol: TursoProtocol,
|
|
1467
1573
|
retry: Retry.Retry,
|
|
1468
1574
|
telemetry: TELEMETRY,
|
|
@@ -1477,9 +1583,10 @@ export const getOrganizationMember: API.OperationMethod<
|
|
|
1477
1583
|
GetOrganizationMemberError,
|
|
1478
1584
|
TursoOpContext
|
|
1479
1585
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1480
|
-
input: __S(
|
|
1481
|
-
output: __S(
|
|
1586
|
+
input: __S(176, __c22, 0) as any as S.Schema<GetOrganizationMemberRequest>,
|
|
1587
|
+
output: __S(177, __c22, 1) as any as S.Schema<GetOrganizationMemberResponse>,
|
|
1482
1588
|
errors: [NotFound],
|
|
1589
|
+
serviceErrors: TursoServiceErrors,
|
|
1483
1590
|
protocol: TursoProtocol,
|
|
1484
1591
|
retry: Retry.Retry,
|
|
1485
1592
|
telemetry: TELEMETRY,
|
|
@@ -1494,9 +1601,10 @@ export const getOrganizationSubscription: API.OperationMethod<
|
|
|
1494
1601
|
GetOrganizationSubscriptionError,
|
|
1495
1602
|
TursoOpContext
|
|
1496
1603
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1497
|
-
input: __S(
|
|
1498
|
-
output: __S(
|
|
1604
|
+
input: __S(192, __c24, 0) as any as S.Schema<GetOrganizationSubscriptionRequest>,
|
|
1605
|
+
output: __S(194, __c24, 2) as any as S.Schema<GetOrganizationSubscriptionResponse>,
|
|
1499
1606
|
errors: [],
|
|
1607
|
+
serviceErrors: TursoServiceErrors,
|
|
1500
1608
|
protocol: TursoProtocol,
|
|
1501
1609
|
retry: Retry.Retry,
|
|
1502
1610
|
telemetry: TELEMETRY,
|
|
@@ -1511,9 +1619,10 @@ export const getOrganizationUsage: API.OperationMethod<
|
|
|
1511
1619
|
GetOrganizationUsageError,
|
|
1512
1620
|
TursoOpContext
|
|
1513
1621
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1514
|
-
input: __S(
|
|
1515
|
-
output: __S(
|
|
1622
|
+
input: __S(200, __c25, 0) as any as S.Schema<GetOrganizationUsageRequest>,
|
|
1623
|
+
output: __S(204, __c25, 4) as any as S.Schema<GetOrganizationUsageResponse>,
|
|
1516
1624
|
errors: [],
|
|
1625
|
+
serviceErrors: TursoServiceErrors,
|
|
1517
1626
|
protocol: TursoProtocol,
|
|
1518
1627
|
retry: Retry.Retry,
|
|
1519
1628
|
telemetry: TELEMETRY,
|
|
@@ -1521,16 +1630,17 @@ export const getOrganizationUsage: API.OperationMethod<
|
|
|
1521
1630
|
}));
|
|
1522
1631
|
|
|
1523
1632
|
export type InvalidateDatabaseTokensError = NotFound | TursoOpError;
|
|
1524
|
-
/** Invalidate All Database Auth Tokens Invalidates all authorization tokens for the specified database. */
|
|
1633
|
+
/** Invalidate All Database Auth Tokens Invalidates all database-scoped authorization tokens for the specified database. On AWS, only tokens for this database are invalidated; group tokens and tokens for other databases in the group are not affected. */
|
|
1525
1634
|
export const invalidateDatabaseTokens: API.OperationMethod<
|
|
1526
1635
|
InvalidateDatabaseTokensRequest,
|
|
1527
1636
|
InvalidateDatabaseTokensResponse,
|
|
1528
1637
|
InvalidateDatabaseTokensError,
|
|
1529
1638
|
TursoOpContext
|
|
1530
1639
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1531
|
-
input: __S(
|
|
1532
|
-
output: __S(
|
|
1640
|
+
input: __S(208, __c26, 0) as any as S.Schema<InvalidateDatabaseTokensRequest>,
|
|
1641
|
+
output: __S(40, __c5, 0) as any as S.Schema<InvalidateDatabaseTokensResponse>,
|
|
1533
1642
|
errors: [NotFound],
|
|
1643
|
+
serviceErrors: TursoServiceErrors,
|
|
1534
1644
|
protocol: TursoProtocol,
|
|
1535
1645
|
retry: Retry.Retry,
|
|
1536
1646
|
telemetry: TELEMETRY,
|
|
@@ -1538,16 +1648,17 @@ export const invalidateDatabaseTokens: API.OperationMethod<
|
|
|
1538
1648
|
}));
|
|
1539
1649
|
|
|
1540
1650
|
export type InvalidateGroupTokensError = NotFound | TursoOpError;
|
|
1541
|
-
/** Invalidate All Group Auth Tokens Invalidates all authorization tokens for the specified group. */
|
|
1651
|
+
/** Invalidate All Group Auth Tokens Invalidates all group authorization tokens for the specified group. On AWS, database-scoped tokens are not invalidated; invalidate them per database. */
|
|
1542
1652
|
export const invalidateGroupTokens: API.OperationMethod<
|
|
1543
1653
|
InvalidateGroupTokensRequest,
|
|
1544
1654
|
InvalidateGroupTokensResponse,
|
|
1545
1655
|
InvalidateGroupTokensError,
|
|
1546
1656
|
TursoOpContext
|
|
1547
1657
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1548
|
-
input: __S(
|
|
1549
|
-
output: __S(
|
|
1658
|
+
input: __S(216, __c27, 0) as any as S.Schema<InvalidateGroupTokensRequest>,
|
|
1659
|
+
output: __S(40, __c5, 0) as any as S.Schema<InvalidateGroupTokensResponse>,
|
|
1550
1660
|
errors: [NotFound],
|
|
1661
|
+
serviceErrors: TursoServiceErrors,
|
|
1551
1662
|
protocol: TursoProtocol,
|
|
1552
1663
|
retry: Retry.Retry,
|
|
1553
1664
|
telemetry: TELEMETRY,
|
|
@@ -1562,9 +1673,10 @@ export const inviteOrganizationMemberV2: API.OperationMethod<
|
|
|
1562
1673
|
InviteOrganizationMemberV2Error,
|
|
1563
1674
|
TursoOpContext
|
|
1564
1675
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1565
|
-
input: __S(
|
|
1566
|
-
output: __S(
|
|
1676
|
+
input: __S(224, __c28, 0) as any as S.Schema<InviteOrganizationMemberV2Request>,
|
|
1677
|
+
output: __S(226, __c28, 2) as any as S.Schema<InviteOrganizationMemberV2Response>,
|
|
1567
1678
|
errors: [BadRequest],
|
|
1679
|
+
serviceErrors: TursoServiceErrors,
|
|
1568
1680
|
protocol: TursoProtocol,
|
|
1569
1681
|
retry: Retry.Retry,
|
|
1570
1682
|
telemetry: TELEMETRY,
|
|
@@ -1579,9 +1691,10 @@ export const listAPITokens: API.OperationMethod<
|
|
|
1579
1691
|
ListAPITokensError,
|
|
1580
1692
|
TursoOpContext
|
|
1581
1693
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1582
|
-
input: __S(
|
|
1583
|
-
output: __S(
|
|
1694
|
+
input: __S(232, __c29, 0) as any as S.Schema<ListAPITokensRequest>,
|
|
1695
|
+
output: __S(235, __c29, 3) as any as S.Schema<ListAPITokensResponse>,
|
|
1584
1696
|
errors: [],
|
|
1697
|
+
serviceErrors: TursoServiceErrors,
|
|
1585
1698
|
protocol: TursoProtocol,
|
|
1586
1699
|
retry: Retry.Retry,
|
|
1587
1700
|
telemetry: TELEMETRY,
|
|
@@ -1596,9 +1709,10 @@ export const listDatabaseInstances: API.OperationMethod<
|
|
|
1596
1709
|
ListDatabaseInstancesError,
|
|
1597
1710
|
TursoOpContext
|
|
1598
1711
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1599
|
-
input: __S(
|
|
1600
|
-
output: __S(
|
|
1712
|
+
input: __S(240, __c30, 0) as any as S.Schema<ListDatabaseInstancesRequest>,
|
|
1713
|
+
output: __S(242, __c30, 2) as any as S.Schema<ListDatabaseInstancesResponse>,
|
|
1601
1714
|
errors: [NotFound],
|
|
1715
|
+
serviceErrors: TursoServiceErrors,
|
|
1602
1716
|
protocol: TursoProtocol,
|
|
1603
1717
|
retry: Retry.Retry,
|
|
1604
1718
|
telemetry: TELEMETRY,
|
|
@@ -1613,9 +1727,10 @@ export const listDatabases: API.OperationMethod<
|
|
|
1613
1727
|
ListDatabasesError,
|
|
1614
1728
|
TursoOpContext
|
|
1615
1729
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1616
|
-
input: __S(
|
|
1617
|
-
output: __S(
|
|
1730
|
+
input: __S(248, __c31, 0) as any as S.Schema<ListDatabasesRequest>,
|
|
1731
|
+
output: __S(250, __c31, 2) as any as S.Schema<ListDatabasesResponse>,
|
|
1618
1732
|
errors: [],
|
|
1733
|
+
serviceErrors: TursoServiceErrors,
|
|
1619
1734
|
protocol: TursoProtocol,
|
|
1620
1735
|
retry: Retry.Retry,
|
|
1621
1736
|
telemetry: TELEMETRY,
|
|
@@ -1630,9 +1745,10 @@ export const listDeletedDatabases: API.OperationMethod<
|
|
|
1630
1745
|
ListDeletedDatabasesError,
|
|
1631
1746
|
TursoOpContext
|
|
1632
1747
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1633
|
-
input: __S(
|
|
1634
|
-
output: __S(
|
|
1748
|
+
input: __S(256, __c32, 0) as any as S.Schema<ListDeletedDatabasesRequest>,
|
|
1749
|
+
output: __S(257, __c32, 1) as any as S.Schema<ListDeletedDatabasesResponse>,
|
|
1635
1750
|
errors: [Forbidden],
|
|
1751
|
+
serviceErrors: TursoServiceErrors,
|
|
1636
1752
|
protocol: TursoProtocol,
|
|
1637
1753
|
retry: Retry.Retry,
|
|
1638
1754
|
telemetry: TELEMETRY,
|
|
@@ -1647,9 +1763,10 @@ export const listDeletedGroups: API.OperationMethod<
|
|
|
1647
1763
|
ListDeletedGroupsError,
|
|
1648
1764
|
TursoOpContext
|
|
1649
1765
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1650
|
-
input: __S(
|
|
1651
|
-
output: __S(
|
|
1766
|
+
input: __S(288, __c36, 0) as any as S.Schema<ListDeletedGroupsRequest>,
|
|
1767
|
+
output: __S(291, __c36, 3) as any as S.Schema<ListDeletedGroupsResponse>,
|
|
1652
1768
|
errors: [Forbidden],
|
|
1769
|
+
serviceErrors: TursoServiceErrors,
|
|
1653
1770
|
protocol: TursoProtocol,
|
|
1654
1771
|
retry: Retry.Retry,
|
|
1655
1772
|
telemetry: TELEMETRY,
|
|
@@ -1664,9 +1781,10 @@ export const listGroups: API.OperationMethod<
|
|
|
1664
1781
|
ListGroupsError,
|
|
1665
1782
|
TursoOpContext
|
|
1666
1783
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1667
|
-
input: __S(
|
|
1668
|
-
output: __S(
|
|
1784
|
+
input: __S(296, __c37, 0) as any as S.Schema<ListGroupsRequest>,
|
|
1785
|
+
output: __S(298, __c37, 2) as any as S.Schema<ListGroupsResponse>,
|
|
1669
1786
|
errors: [],
|
|
1787
|
+
serviceErrors: TursoServiceErrors,
|
|
1670
1788
|
protocol: TursoProtocol,
|
|
1671
1789
|
retry: Retry.Retry,
|
|
1672
1790
|
telemetry: TELEMETRY,
|
|
@@ -1681,9 +1799,10 @@ export const listLocations: API.OperationMethod<
|
|
|
1681
1799
|
ListLocationsError,
|
|
1682
1800
|
TursoOpContext
|
|
1683
1801
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1684
|
-
input: __S(
|
|
1685
|
-
output: __S(
|
|
1802
|
+
input: __S(304, __c38, 0) as any as S.Schema<ListLocationsRequest>,
|
|
1803
|
+
output: __S(305, __c38, 1) as any as S.Schema<ListLocationsResponse>,
|
|
1686
1804
|
errors: [],
|
|
1805
|
+
serviceErrors: TursoServiceErrors,
|
|
1687
1806
|
protocol: TursoProtocol,
|
|
1688
1807
|
retry: Retry.Retry,
|
|
1689
1808
|
telemetry: TELEMETRY,
|
|
@@ -1698,9 +1817,10 @@ export const listOrganizationAPITokens: API.OperationMethod<
|
|
|
1698
1817
|
ListOrganizationAPITokensError,
|
|
1699
1818
|
TursoOpContext
|
|
1700
1819
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1701
|
-
input: __S(
|
|
1702
|
-
output: __S(
|
|
1820
|
+
input: __S(320, __c40, 0) as any as S.Schema<ListOrganizationAPITokensRequest>,
|
|
1821
|
+
output: __S(324, __c40, 4) as any as S.Schema<ListOrganizationAPITokensResponse>,
|
|
1703
1822
|
errors: [],
|
|
1823
|
+
serviceErrors: TursoServiceErrors,
|
|
1704
1824
|
protocol: TursoProtocol,
|
|
1705
1825
|
retry: Retry.Retry,
|
|
1706
1826
|
telemetry: TELEMETRY,
|
|
@@ -1715,9 +1835,10 @@ export const listOrganizationAuditLogs: API.OperationMethod<
|
|
|
1715
1835
|
ListOrganizationAuditLogsError,
|
|
1716
1836
|
TursoOpContext
|
|
1717
1837
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1718
|
-
input: __S(
|
|
1719
|
-
output: __S(
|
|
1838
|
+
input: __S(328, __c41, 0) as any as S.Schema<ListOrganizationAuditLogsRequest>,
|
|
1839
|
+
output: __S(332, __c41, 4) as any as S.Schema<ListOrganizationAuditLogsResponse>,
|
|
1720
1840
|
errors: [],
|
|
1841
|
+
serviceErrors: TursoServiceErrors,
|
|
1721
1842
|
protocol: TursoProtocol,
|
|
1722
1843
|
retry: Retry.Retry,
|
|
1723
1844
|
telemetry: TELEMETRY,
|
|
@@ -1732,9 +1853,10 @@ export const listOrganizationInvitesV2: API.OperationMethod<
|
|
|
1732
1853
|
ListOrganizationInvitesV2Error,
|
|
1733
1854
|
TursoOpContext
|
|
1734
1855
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1735
|
-
input: __S(
|
|
1736
|
-
output: __S(
|
|
1856
|
+
input: __S(336, __c42, 0) as any as S.Schema<ListOrganizationInvitesV2Request>,
|
|
1857
|
+
output: __S(339, __c42, 3) as any as S.Schema<ListOrganizationInvitesV2Response>,
|
|
1737
1858
|
errors: [],
|
|
1859
|
+
serviceErrors: TursoServiceErrors,
|
|
1738
1860
|
protocol: TursoProtocol,
|
|
1739
1861
|
retry: Retry.Retry,
|
|
1740
1862
|
telemetry: TELEMETRY,
|
|
@@ -1749,9 +1871,10 @@ export const listOrganizationInvoices: API.OperationMethod<
|
|
|
1749
1871
|
ListOrganizationInvoicesError,
|
|
1750
1872
|
TursoOpContext
|
|
1751
1873
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1752
|
-
input: __S(
|
|
1753
|
-
output: __S(
|
|
1874
|
+
input: __S(344, __c43, 0) as any as S.Schema<ListOrganizationInvoicesRequest>,
|
|
1875
|
+
output: __S(347, __c43, 3) as any as S.Schema<ListOrganizationInvoicesResponse>,
|
|
1754
1876
|
errors: [],
|
|
1877
|
+
serviceErrors: TursoServiceErrors,
|
|
1755
1878
|
protocol: TursoProtocol,
|
|
1756
1879
|
retry: Retry.Retry,
|
|
1757
1880
|
telemetry: TELEMETRY,
|
|
@@ -1766,9 +1889,10 @@ export const listOrganizationMembers: API.OperationMethod<
|
|
|
1766
1889
|
ListOrganizationMembersError,
|
|
1767
1890
|
TursoOpContext
|
|
1768
1891
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1769
|
-
input: __S(
|
|
1770
|
-
output: __S(
|
|
1892
|
+
input: __S(384, __c48, 0) as any as S.Schema<ListOrganizationMembersRequest>,
|
|
1893
|
+
output: __S(386, __c48, 2) as any as S.Schema<ListOrganizationMembersResponse>,
|
|
1771
1894
|
errors: [],
|
|
1895
|
+
serviceErrors: TursoServiceErrors,
|
|
1772
1896
|
protocol: TursoProtocol,
|
|
1773
1897
|
retry: Retry.Retry,
|
|
1774
1898
|
telemetry: TELEMETRY,
|
|
@@ -1783,9 +1907,10 @@ export const listOrganizationPlans: API.OperationMethod<
|
|
|
1783
1907
|
ListOrganizationPlansError,
|
|
1784
1908
|
TursoOpContext
|
|
1785
1909
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1786
|
-
input: __S(
|
|
1787
|
-
output: __S(
|
|
1910
|
+
input: __S(392, __c49, 0) as any as S.Schema<ListOrganizationPlansRequest>,
|
|
1911
|
+
output: __S(398, __c49, 6) as any as S.Schema<ListOrganizationPlansResponse>,
|
|
1788
1912
|
errors: [],
|
|
1913
|
+
serviceErrors: TursoServiceErrors,
|
|
1789
1914
|
protocol: TursoProtocol,
|
|
1790
1915
|
retry: Retry.Retry,
|
|
1791
1916
|
telemetry: TELEMETRY,
|
|
@@ -1800,9 +1925,10 @@ export const listOrganizations: API.OperationMethod<
|
|
|
1800
1925
|
ListOrganizationsError,
|
|
1801
1926
|
TursoOpContext
|
|
1802
1927
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1803
|
-
input: __S(
|
|
1804
|
-
output: __S(
|
|
1928
|
+
input: __S(400, __c50, 0) as any as S.Schema<ListOrganizationsRequest>,
|
|
1929
|
+
output: __S(402, __c50, 2) as any as S.Schema<ListOrganizationsResponse>,
|
|
1805
1930
|
errors: [],
|
|
1931
|
+
serviceErrors: TursoServiceErrors,
|
|
1806
1932
|
protocol: TursoProtocol,
|
|
1807
1933
|
retry: Retry.Retry,
|
|
1808
1934
|
telemetry: TELEMETRY,
|
|
@@ -1817,9 +1943,10 @@ export const removeLocationFromGroup: API.OperationMethod<
|
|
|
1817
1943
|
RemoveLocationFromGroupError,
|
|
1818
1944
|
TursoOpContext
|
|
1819
1945
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1820
|
-
input: __S(
|
|
1821
|
-
output: __S(
|
|
1946
|
+
input: __S(408, __c51, 0) as any as S.Schema<RemoveLocationFromGroupRequest>,
|
|
1947
|
+
output: __S(376, __c47, 0) as any as S.Schema<RemoveLocationFromGroupResponse>,
|
|
1822
1948
|
errors: [BadRequest, NotFound],
|
|
1949
|
+
serviceErrors: TursoServiceErrors,
|
|
1823
1950
|
protocol: TursoProtocol,
|
|
1824
1951
|
retry: Retry.Retry,
|
|
1825
1952
|
telemetry: TELEMETRY,
|
|
@@ -1834,9 +1961,10 @@ export const removeOrganizationMember: API.OperationMethod<
|
|
|
1834
1961
|
RemoveOrganizationMemberError,
|
|
1835
1962
|
TursoOpContext
|
|
1836
1963
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1837
|
-
input: __S(
|
|
1838
|
-
output: __S(
|
|
1964
|
+
input: __S(416, __c52, 0) as any as S.Schema<RemoveOrganizationMemberRequest>,
|
|
1965
|
+
output: __S(417, __c52, 1) as any as S.Schema<RemoveOrganizationMemberResponse>,
|
|
1839
1966
|
errors: [NotFound],
|
|
1967
|
+
serviceErrors: TursoServiceErrors,
|
|
1840
1968
|
protocol: TursoProtocol,
|
|
1841
1969
|
retry: Retry.Retry,
|
|
1842
1970
|
telemetry: TELEMETRY,
|
|
@@ -1851,9 +1979,10 @@ export const restoreDatabase: API.OperationMethod<
|
|
|
1851
1979
|
RestoreDatabaseError,
|
|
1852
1980
|
TursoOpContext
|
|
1853
1981
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1854
|
-
input: __S(
|
|
1855
|
-
output: __S(
|
|
1982
|
+
input: __S(424, __c53, 0) as any as S.Schema<RestoreDatabaseRequest>,
|
|
1983
|
+
output: __S(425, __c53, 1) as any as S.Schema<RestoreDatabaseResponse>,
|
|
1856
1984
|
errors: [BadRequest, Forbidden, NotFound],
|
|
1985
|
+
serviceErrors: TursoServiceErrors,
|
|
1857
1986
|
protocol: TursoProtocol,
|
|
1858
1987
|
retry: Retry.Retry,
|
|
1859
1988
|
telemetry: TELEMETRY,
|
|
@@ -1868,9 +1997,10 @@ export const restoreGroup: API.OperationMethod<
|
|
|
1868
1997
|
RestoreGroupError,
|
|
1869
1998
|
TursoOpContext
|
|
1870
1999
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1871
|
-
input: __S(
|
|
1872
|
-
output: __S(
|
|
2000
|
+
input: __S(432, __c54, 0) as any as S.Schema<RestoreGroupRequest>,
|
|
2001
|
+
output: __S(433, __c54, 1) as any as S.Schema<RestoreGroupResponse>,
|
|
1873
2002
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2003
|
+
serviceErrors: TursoServiceErrors,
|
|
1874
2004
|
protocol: TursoProtocol,
|
|
1875
2005
|
retry: Retry.Retry,
|
|
1876
2006
|
telemetry: TELEMETRY,
|
|
@@ -1885,9 +2015,10 @@ export const revokeAPIToken: API.OperationMethod<
|
|
|
1885
2015
|
RevokeAPITokenError,
|
|
1886
2016
|
TursoOpContext
|
|
1887
2017
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1888
|
-
input: __S(
|
|
1889
|
-
output: __S(
|
|
2018
|
+
input: __S(440, __c55, 0) as any as S.Schema<RevokeAPITokenRequest>,
|
|
2019
|
+
output: __S(448, __c56, 0) as any as S.Schema<RevokeAPITokenResponse>,
|
|
1890
2020
|
errors: [NotFound],
|
|
2021
|
+
serviceErrors: TursoServiceErrors,
|
|
1891
2022
|
protocol: TursoProtocol,
|
|
1892
2023
|
retry: Retry.Retry,
|
|
1893
2024
|
telemetry: TELEMETRY,
|
|
@@ -1902,9 +2033,10 @@ export const revokeOrganizationAPIToken: API.OperationMethod<
|
|
|
1902
2033
|
RevokeOrganizationAPITokenError,
|
|
1903
2034
|
TursoOpContext
|
|
1904
2035
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1905
|
-
input: __S(
|
|
1906
|
-
output: __S(
|
|
2036
|
+
input: __S(456, __c57, 0) as any as S.Schema<RevokeOrganizationAPITokenRequest>,
|
|
2037
|
+
output: __S(448, __c56, 0) as any as S.Schema<RevokeOrganizationAPITokenResponse>,
|
|
1907
2038
|
errors: [NotFound],
|
|
2039
|
+
serviceErrors: TursoServiceErrors,
|
|
1908
2040
|
protocol: TursoProtocol,
|
|
1909
2041
|
retry: Retry.Retry,
|
|
1910
2042
|
telemetry: TELEMETRY,
|
|
@@ -1919,9 +2051,10 @@ export const transferGroup: API.OperationMethod<
|
|
|
1919
2051
|
TransferGroupError,
|
|
1920
2052
|
TursoOpContext
|
|
1921
2053
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1922
|
-
input: __S(
|
|
1923
|
-
output: __S(
|
|
2054
|
+
input: __S(464, __c58, 0) as any as S.Schema<TransferGroupRequest>,
|
|
2055
|
+
output: __S(368, __c46, 0) as any as S.Schema<TransferGroupResponse>,
|
|
1924
2056
|
errors: [NotFound],
|
|
2057
|
+
serviceErrors: TursoServiceErrors,
|
|
1925
2058
|
protocol: TursoProtocol,
|
|
1926
2059
|
retry: Retry.Retry,
|
|
1927
2060
|
telemetry: TELEMETRY,
|
|
@@ -1936,9 +2069,10 @@ export const unarchiveGroup: API.OperationMethod<
|
|
|
1936
2069
|
UnarchiveGroupError,
|
|
1937
2070
|
TursoOpContext
|
|
1938
2071
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1939
|
-
input: __S(
|
|
1940
|
-
output: __S(
|
|
2072
|
+
input: __S(480, __c60, 0) as any as S.Schema<UnarchiveGroupRequest>,
|
|
2073
|
+
output: __S(376, __c47, 0) as any as S.Schema<UnarchiveGroupResponse>,
|
|
1941
2074
|
errors: [NotFound],
|
|
2075
|
+
serviceErrors: TursoServiceErrors,
|
|
1942
2076
|
protocol: TursoProtocol,
|
|
1943
2077
|
retry: Retry.Retry,
|
|
1944
2078
|
telemetry: TELEMETRY,
|
|
@@ -1953,9 +2087,10 @@ export const updateDatabaseConfiguration: API.OperationMethod<
|
|
|
1953
2087
|
UpdateDatabaseConfigurationError,
|
|
1954
2088
|
TursoOpContext
|
|
1955
2089
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1956
|
-
input: __S(
|
|
1957
|
-
output: __S(
|
|
2090
|
+
input: __S(488, __c61, 0) as any as S.Schema<UpdateDatabaseConfigurationRequest>,
|
|
2091
|
+
output: __S(80, __c10, 0) as any as S.Schema<DatabaseConfigurationResponse>,
|
|
1958
2092
|
errors: [NotFound],
|
|
2093
|
+
serviceErrors: TursoServiceErrors,
|
|
1959
2094
|
protocol: TursoProtocol,
|
|
1960
2095
|
retry: Retry.Retry,
|
|
1961
2096
|
telemetry: TELEMETRY,
|
|
@@ -1970,9 +2105,10 @@ export const updateGroupConfiguration: API.OperationMethod<
|
|
|
1970
2105
|
UpdateGroupConfigurationError,
|
|
1971
2106
|
TursoOpContext
|
|
1972
2107
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1973
|
-
input: __S(
|
|
1974
|
-
output: __S(
|
|
2108
|
+
input: __S(496, __c62, 0) as any as S.Schema<UpdateGroupConfigurationRequest>,
|
|
2109
|
+
output: __S(144, __c18, 0) as any as S.Schema<GroupConfigurationResponse>,
|
|
1975
2110
|
errors: [NotFound],
|
|
2111
|
+
serviceErrors: TursoServiceErrors,
|
|
1976
2112
|
protocol: TursoProtocol,
|
|
1977
2113
|
retry: Retry.Retry,
|
|
1978
2114
|
telemetry: TELEMETRY,
|
|
@@ -1987,9 +2123,10 @@ export const updateGroupDatabases: API.OperationMethod<
|
|
|
1987
2123
|
UpdateGroupDatabasesError,
|
|
1988
2124
|
TursoOpContext
|
|
1989
2125
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1990
|
-
input: __S(
|
|
1991
|
-
output: __S(
|
|
2126
|
+
input: __S(504, __c63, 0) as any as S.Schema<UpdateGroupDatabasesRequest>,
|
|
2127
|
+
output: __S(40, __c5, 0) as any as S.Schema<UpdateGroupDatabasesResponse>,
|
|
1992
2128
|
errors: [NotFound],
|
|
2129
|
+
serviceErrors: TursoServiceErrors,
|
|
1993
2130
|
protocol: TursoProtocol,
|
|
1994
2131
|
retry: Retry.Retry,
|
|
1995
2132
|
telemetry: TELEMETRY,
|
|
@@ -2004,9 +2141,10 @@ export const updateMemberRole: API.OperationMethod<
|
|
|
2004
2141
|
UpdateMemberRoleError,
|
|
2005
2142
|
TursoOpContext
|
|
2006
2143
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2007
|
-
input: __S(
|
|
2008
|
-
output: __S(
|
|
2144
|
+
input: __S(512, __c64, 0) as any as S.Schema<UpdateMemberRoleRequest>,
|
|
2145
|
+
output: __S(514, __c64, 2) as any as S.Schema<UpdateMemberRoleResponse>,
|
|
2009
2146
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2147
|
+
serviceErrors: TursoServiceErrors,
|
|
2010
2148
|
protocol: TursoProtocol,
|
|
2011
2149
|
retry: Retry.Retry,
|
|
2012
2150
|
telemetry: TELEMETRY,
|
|
@@ -2021,9 +2159,10 @@ export const updateOrganization: API.OperationMethod<
|
|
|
2021
2159
|
UpdateOrganizationError,
|
|
2022
2160
|
TursoOpContext
|
|
2023
2161
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2024
|
-
input: __S(
|
|
2025
|
-
output: __S(
|
|
2162
|
+
input: __S(520, __c65, 0) as any as S.Schema<UpdateOrganizationRequest>,
|
|
2163
|
+
output: __S(168, __c21, 0) as any as S.Schema<UpdateOrganizationResponse>,
|
|
2026
2164
|
errors: [],
|
|
2165
|
+
serviceErrors: TursoServiceErrors,
|
|
2027
2166
|
protocol: TursoProtocol,
|
|
2028
2167
|
retry: Retry.Retry,
|
|
2029
2168
|
telemetry: TELEMETRY,
|
|
@@ -2038,9 +2177,10 @@ export const validateAPIToken: API.OperationMethod<
|
|
|
2038
2177
|
ValidateAPITokenError,
|
|
2039
2178
|
TursoOpContext
|
|
2040
2179
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2041
|
-
input: __S(
|
|
2042
|
-
output: __S(
|
|
2180
|
+
input: __S(528, __c66, 0) as any as S.Schema<ValidateAPITokenRequest>,
|
|
2181
|
+
output: __S(529, __c66, 1) as any as S.Schema<ValidateAPITokenResponse>,
|
|
2043
2182
|
errors: [],
|
|
2183
|
+
serviceErrors: TursoServiceErrors,
|
|
2044
2184
|
protocol: TursoProtocol,
|
|
2045
2185
|
retry: Retry.Retry,
|
|
2046
2186
|
telemetry: TELEMETRY,
|
|
@@ -2049,6 +2189,16 @@ export const validateAPIToken: API.OperationMethod<
|
|
|
2049
2189
|
|
|
2050
2190
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
2051
2191
|
function __c0(j: number): any {
|
|
2192
|
+
switch (j) {
|
|
2193
|
+
case 0:
|
|
2194
|
+
return S.suspend(() =>
|
|
2195
|
+
S.Struct({
|
|
2196
|
+
error: S.optional(S.String),
|
|
2197
|
+
}),
|
|
2198
|
+
).annotate({ identifier: "Error400Body4" });
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
function __c1(j: number): any {
|
|
2052
2202
|
switch (j) {
|
|
2053
2203
|
case 0:
|
|
2054
2204
|
return S.suspend(() =>
|
|
@@ -2057,7 +2207,7 @@ function __c0(j: number): any {
|
|
|
2057
2207
|
groupName: S.String.pipe(T.Label()),
|
|
2058
2208
|
expiration: S.optional(S.String.pipe(T.Query())),
|
|
2059
2209
|
authorization: S.optional(S.String.pipe(T.Query())),
|
|
2060
|
-
permissions: S.optional(__S(
|
|
2210
|
+
permissions: S.optional(__S(561, __c70, 1)),
|
|
2061
2211
|
}).pipe(
|
|
2062
2212
|
T.Http({
|
|
2063
2213
|
method: "POST",
|
|
@@ -2068,7 +2218,7 @@ function __c0(j: number): any {
|
|
|
2068
2218
|
).annotate({ identifier: "CreateGroupTokenRequest" });
|
|
2069
2219
|
}
|
|
2070
2220
|
}
|
|
2071
|
-
function
|
|
2221
|
+
function __c2(j: number): any {
|
|
2072
2222
|
switch (j) {
|
|
2073
2223
|
case 0:
|
|
2074
2224
|
return S.suspend(() =>
|
|
@@ -2091,7 +2241,7 @@ function __c1(j: number): any {
|
|
|
2091
2241
|
).annotate({ identifier: "DeleteDatabaseResponse" });
|
|
2092
2242
|
}
|
|
2093
2243
|
}
|
|
2094
|
-
function
|
|
2244
|
+
function __c3(j: number): any {
|
|
2095
2245
|
switch (j) {
|
|
2096
2246
|
case 0:
|
|
2097
2247
|
return S.suspend(() =>
|
|
@@ -2108,7 +2258,7 @@ function __c2(j: number): any {
|
|
|
2108
2258
|
).annotate({ identifier: "DeleteGroupRequest" });
|
|
2109
2259
|
}
|
|
2110
2260
|
}
|
|
2111
|
-
function
|
|
2261
|
+
function __c4(j: number): any {
|
|
2112
2262
|
switch (j) {
|
|
2113
2263
|
case 0:
|
|
2114
2264
|
return S.suspend(() =>
|
|
@@ -2125,7 +2275,7 @@ function __c3(j: number): any {
|
|
|
2125
2275
|
).annotate({ identifier: "DeleteOrganizationInviteByEmailV2Request" });
|
|
2126
2276
|
}
|
|
2127
2277
|
}
|
|
2128
|
-
function
|
|
2278
|
+
function __c5(j: number): any {
|
|
2129
2279
|
switch (j) {
|
|
2130
2280
|
case 0:
|
|
2131
2281
|
return S.suspend(() => S.Struct({})).annotate({
|
|
@@ -2133,7 +2283,7 @@ function __c4(j: number): any {
|
|
|
2133
2283
|
});
|
|
2134
2284
|
}
|
|
2135
2285
|
}
|
|
2136
|
-
function
|
|
2286
|
+
function __c6(j: number): any {
|
|
2137
2287
|
switch (j) {
|
|
2138
2288
|
case 0:
|
|
2139
2289
|
return S.suspend(() =>
|
|
@@ -2154,12 +2304,12 @@ function __c5(j: number): any {
|
|
|
2154
2304
|
case 2:
|
|
2155
2305
|
return S.suspend(() =>
|
|
2156
2306
|
S.Struct({
|
|
2157
|
-
user: S.optional(__S(
|
|
2307
|
+
user: S.optional(__S(49, __c6, 1)),
|
|
2158
2308
|
}),
|
|
2159
2309
|
).annotate({ identifier: "GetCurrentUserResponse" });
|
|
2160
2310
|
}
|
|
2161
2311
|
}
|
|
2162
|
-
function
|
|
2312
|
+
function __c7(j: number): any {
|
|
2163
2313
|
switch (j) {
|
|
2164
2314
|
case 0:
|
|
2165
2315
|
return S.suspend(() =>
|
|
@@ -2177,12 +2327,12 @@ function __c6(j: number): any {
|
|
|
2177
2327
|
case 1:
|
|
2178
2328
|
return S.suspend(() =>
|
|
2179
2329
|
S.Struct({
|
|
2180
|
-
database: S.optional(__S(
|
|
2330
|
+
database: S.optional(__S(65, __c8, 1)),
|
|
2181
2331
|
}),
|
|
2182
2332
|
).annotate({ identifier: "GetDatabaseResponse" });
|
|
2183
2333
|
}
|
|
2184
2334
|
}
|
|
2185
|
-
function
|
|
2335
|
+
function __c8(j: number): any {
|
|
2186
2336
|
switch (j) {
|
|
2187
2337
|
case 0:
|
|
2188
2338
|
return S.suspend(() =>
|
|
@@ -2200,17 +2350,17 @@ function __c7(j: number): any {
|
|
|
2200
2350
|
Hostname: S.optional(S.String),
|
|
2201
2351
|
block_reads: S.optional(S.Boolean),
|
|
2202
2352
|
block_writes: S.optional(S.Boolean),
|
|
2203
|
-
regions: S.optional(__S(
|
|
2353
|
+
regions: S.optional(__S(360, __c45, 0)),
|
|
2204
2354
|
primaryRegion: S.optional(S.String),
|
|
2205
2355
|
group: S.optional(S.String),
|
|
2206
2356
|
delete_protection: S.optional(S.Boolean),
|
|
2207
|
-
parent: S.optional(S.NullOr(__S(
|
|
2357
|
+
parent: S.optional(S.NullOr(__S(64, __c8, 0))),
|
|
2208
2358
|
allow_attach: S.optional(S.Boolean),
|
|
2209
2359
|
}),
|
|
2210
2360
|
).annotate({ identifier: "Database" });
|
|
2211
2361
|
}
|
|
2212
2362
|
}
|
|
2213
|
-
function
|
|
2363
|
+
function __c9(j: number): any {
|
|
2214
2364
|
switch (j) {
|
|
2215
2365
|
case 0:
|
|
2216
2366
|
return S.suspend(() =>
|
|
@@ -2227,7 +2377,7 @@ function __c8(j: number): any {
|
|
|
2227
2377
|
).annotate({ identifier: "GetDatabaseConfigurationRequest" });
|
|
2228
2378
|
}
|
|
2229
2379
|
}
|
|
2230
|
-
function
|
|
2380
|
+
function __c10(j: number): any {
|
|
2231
2381
|
switch (j) {
|
|
2232
2382
|
case 0:
|
|
2233
2383
|
return S.suspend(() =>
|
|
@@ -2237,13 +2387,13 @@ function __c9(j: number): any {
|
|
|
2237
2387
|
block_reads: S.optional(S.Boolean),
|
|
2238
2388
|
block_writes: S.optional(S.Boolean),
|
|
2239
2389
|
delete_protection: S.optional(S.Boolean),
|
|
2240
|
-
allowed_ips: S.optional(__S(
|
|
2241
|
-
allowed_aws_vpc_ids: S.optional(__S(
|
|
2390
|
+
allowed_ips: S.optional(__S(360, __c45, 0)),
|
|
2391
|
+
allowed_aws_vpc_ids: S.optional(__S(360, __c45, 0)),
|
|
2242
2392
|
}),
|
|
2243
2393
|
).annotate({ identifier: "DatabaseConfigurationResponse" });
|
|
2244
2394
|
}
|
|
2245
2395
|
}
|
|
2246
|
-
function
|
|
2396
|
+
function __c11(j: number): any {
|
|
2247
2397
|
switch (j) {
|
|
2248
2398
|
case 0:
|
|
2249
2399
|
return S.suspend(() =>
|
|
@@ -2262,12 +2412,12 @@ function __c10(j: number): any {
|
|
|
2262
2412
|
case 1:
|
|
2263
2413
|
return S.suspend(() =>
|
|
2264
2414
|
S.Struct({
|
|
2265
|
-
instance: S.optional(__S(
|
|
2415
|
+
instance: S.optional(__S(96, __c12, 0)),
|
|
2266
2416
|
}),
|
|
2267
2417
|
).annotate({ identifier: "GetDatabaseInstanceResponse" });
|
|
2268
2418
|
}
|
|
2269
2419
|
}
|
|
2270
|
-
function
|
|
2420
|
+
function __c12(j: number): any {
|
|
2271
2421
|
switch (j) {
|
|
2272
2422
|
case 0:
|
|
2273
2423
|
return S.suspend(() =>
|
|
@@ -2281,7 +2431,7 @@ function __c11(j: number): any {
|
|
|
2281
2431
|
).annotate({ identifier: "Instance" });
|
|
2282
2432
|
}
|
|
2283
2433
|
}
|
|
2284
|
-
function
|
|
2434
|
+
function __c13(j: number): any {
|
|
2285
2435
|
switch (j) {
|
|
2286
2436
|
case 0:
|
|
2287
2437
|
return S.suspend(() =>
|
|
@@ -2305,16 +2455,16 @@ function __c12(j: number): any {
|
|
|
2305
2455
|
}),
|
|
2306
2456
|
).annotate({ identifier: "DatabaseStatsOutput" });
|
|
2307
2457
|
case 2:
|
|
2308
|
-
return S.Array(__S(
|
|
2458
|
+
return S.Array(__S(105, __c13, 1));
|
|
2309
2459
|
case 3:
|
|
2310
2460
|
return S.suspend(() =>
|
|
2311
2461
|
S.Struct({
|
|
2312
|
-
top_queries: S.optional(S.NullOr(__S(
|
|
2462
|
+
top_queries: S.optional(S.NullOr(__S(106, __c13, 2))),
|
|
2313
2463
|
}),
|
|
2314
2464
|
).annotate({ identifier: "GetDatabaseStatsResponse" });
|
|
2315
2465
|
}
|
|
2316
2466
|
}
|
|
2317
|
-
function
|
|
2467
|
+
function __c14(j: number): any {
|
|
2318
2468
|
switch (j) {
|
|
2319
2469
|
case 0:
|
|
2320
2470
|
return S.suspend(() =>
|
|
@@ -2334,12 +2484,12 @@ function __c13(j: number): any {
|
|
|
2334
2484
|
case 1:
|
|
2335
2485
|
return S.suspend(() =>
|
|
2336
2486
|
S.Struct({
|
|
2337
|
-
database: S.optional(__S(
|
|
2487
|
+
database: S.optional(__S(123, __c15, 3)),
|
|
2338
2488
|
}),
|
|
2339
2489
|
).annotate({ identifier: "GetDatabaseUsageResponse" });
|
|
2340
2490
|
}
|
|
2341
2491
|
}
|
|
2342
|
-
function
|
|
2492
|
+
function __c15(j: number): any {
|
|
2343
2493
|
switch (j) {
|
|
2344
2494
|
case 0:
|
|
2345
2495
|
return S.suspend(() =>
|
|
@@ -2354,22 +2504,22 @@ function __c14(j: number): any {
|
|
|
2354
2504
|
return S.suspend(() =>
|
|
2355
2505
|
S.Struct({
|
|
2356
2506
|
uuid: S.optional(S.String),
|
|
2357
|
-
usage: S.optional(__S(
|
|
2507
|
+
usage: S.optional(__S(120, __c15, 0)),
|
|
2358
2508
|
}),
|
|
2359
2509
|
).annotate({ identifier: "DatabaseUsageOutputInstancesItem" });
|
|
2360
2510
|
case 2:
|
|
2361
|
-
return S.Array(__S(
|
|
2511
|
+
return S.Array(__S(121, __c15, 1));
|
|
2362
2512
|
case 3:
|
|
2363
2513
|
return S.suspend(() =>
|
|
2364
2514
|
S.Struct({
|
|
2365
2515
|
uuid: S.optional(S.String),
|
|
2366
|
-
instances: S.optional(__S(
|
|
2367
|
-
total: S.optional(__S(
|
|
2516
|
+
instances: S.optional(__S(122, __c15, 2)),
|
|
2517
|
+
total: S.optional(__S(120, __c15, 0)),
|
|
2368
2518
|
}),
|
|
2369
2519
|
).annotate({ identifier: "DatabaseUsageOutput" });
|
|
2370
2520
|
}
|
|
2371
2521
|
}
|
|
2372
|
-
function
|
|
2522
|
+
function __c16(j: number): any {
|
|
2373
2523
|
switch (j) {
|
|
2374
2524
|
case 0:
|
|
2375
2525
|
return S.suspend(() =>
|
|
@@ -2386,7 +2536,7 @@ function __c15(j: number): any {
|
|
|
2386
2536
|
).annotate({ identifier: "GetGroupRequest" });
|
|
2387
2537
|
}
|
|
2388
2538
|
}
|
|
2389
|
-
function
|
|
2539
|
+
function __c17(j: number): any {
|
|
2390
2540
|
switch (j) {
|
|
2391
2541
|
case 0:
|
|
2392
2542
|
return S.suspend(() =>
|
|
@@ -2403,7 +2553,7 @@ function __c16(j: number): any {
|
|
|
2403
2553
|
).annotate({ identifier: "GetGroupConfigurationRequest" });
|
|
2404
2554
|
}
|
|
2405
2555
|
}
|
|
2406
|
-
function
|
|
2556
|
+
function __c18(j: number): any {
|
|
2407
2557
|
switch (j) {
|
|
2408
2558
|
case 0:
|
|
2409
2559
|
return S.suspend(() =>
|
|
@@ -2413,7 +2563,7 @@ function __c17(j: number): any {
|
|
|
2413
2563
|
).annotate({ identifier: "GroupConfigurationResponse" });
|
|
2414
2564
|
}
|
|
2415
2565
|
}
|
|
2416
|
-
function
|
|
2566
|
+
function __c19(j: number): any {
|
|
2417
2567
|
switch (j) {
|
|
2418
2568
|
case 0:
|
|
2419
2569
|
return S.suspend(() =>
|
|
@@ -2423,7 +2573,7 @@ function __c18(j: number): any {
|
|
|
2423
2573
|
).annotate({ identifier: "GetOrganizationRequest" });
|
|
2424
2574
|
}
|
|
2425
2575
|
}
|
|
2426
|
-
function
|
|
2576
|
+
function __c20(j: number): any {
|
|
2427
2577
|
switch (j) {
|
|
2428
2578
|
case 0:
|
|
2429
2579
|
return S.suspend(() =>
|
|
@@ -2443,17 +2593,17 @@ function __c19(j: number): any {
|
|
|
2443
2593
|
).annotate({ identifier: "Organization" });
|
|
2444
2594
|
}
|
|
2445
2595
|
}
|
|
2446
|
-
function
|
|
2596
|
+
function __c21(j: number): any {
|
|
2447
2597
|
switch (j) {
|
|
2448
2598
|
case 0:
|
|
2449
2599
|
return S.suspend(() =>
|
|
2450
2600
|
S.Struct({
|
|
2451
|
-
organization: S.optional(__S(
|
|
2601
|
+
organization: S.optional(__S(160, __c20, 0)),
|
|
2452
2602
|
}),
|
|
2453
2603
|
).annotate({ identifier: "GetOrganizationResponse" });
|
|
2454
2604
|
}
|
|
2455
2605
|
}
|
|
2456
|
-
function
|
|
2606
|
+
function __c22(j: number): any {
|
|
2457
2607
|
switch (j) {
|
|
2458
2608
|
case 0:
|
|
2459
2609
|
return S.suspend(() =>
|
|
@@ -2471,12 +2621,12 @@ function __c21(j: number): any {
|
|
|
2471
2621
|
case 1:
|
|
2472
2622
|
return S.suspend(() =>
|
|
2473
2623
|
S.Struct({
|
|
2474
|
-
member: S.optional(__S(
|
|
2624
|
+
member: S.optional(__S(184, __c23, 0)),
|
|
2475
2625
|
}),
|
|
2476
2626
|
).annotate({ identifier: "GetOrganizationMemberResponse" });
|
|
2477
2627
|
}
|
|
2478
2628
|
}
|
|
2479
|
-
function
|
|
2629
|
+
function __c23(j: number): any {
|
|
2480
2630
|
switch (j) {
|
|
2481
2631
|
case 0:
|
|
2482
2632
|
return S.suspend(() =>
|
|
@@ -2488,7 +2638,7 @@ function __c22(j: number): any {
|
|
|
2488
2638
|
).annotate({ identifier: "Member" });
|
|
2489
2639
|
}
|
|
2490
2640
|
}
|
|
2491
|
-
function
|
|
2641
|
+
function __c24(j: number): any {
|
|
2492
2642
|
switch (j) {
|
|
2493
2643
|
case 0:
|
|
2494
2644
|
return S.suspend(() =>
|
|
@@ -2514,12 +2664,12 @@ function __c23(j: number): any {
|
|
|
2514
2664
|
case 2:
|
|
2515
2665
|
return S.suspend(() =>
|
|
2516
2666
|
S.Struct({
|
|
2517
|
-
subscription: S.optional(__S(
|
|
2667
|
+
subscription: S.optional(__S(193, __c24, 1)),
|
|
2518
2668
|
}),
|
|
2519
2669
|
).annotate({ identifier: "GetOrganizationSubscriptionResponse" });
|
|
2520
2670
|
}
|
|
2521
2671
|
}
|
|
2522
|
-
function
|
|
2672
|
+
function __c25(j: number): any {
|
|
2523
2673
|
switch (j) {
|
|
2524
2674
|
case 0:
|
|
2525
2675
|
return S.suspend(() =>
|
|
@@ -2542,24 +2692,24 @@ function __c24(j: number): any {
|
|
|
2542
2692
|
}),
|
|
2543
2693
|
).annotate({ identifier: "GetOrganizationUsageResponseOrganizationUsage" });
|
|
2544
2694
|
case 2:
|
|
2545
|
-
return S.Array(__S(
|
|
2695
|
+
return S.Array(__S(123, __c15, 3));
|
|
2546
2696
|
case 3:
|
|
2547
2697
|
return S.suspend(() =>
|
|
2548
2698
|
S.Struct({
|
|
2549
2699
|
uuid: S.optional(S.String),
|
|
2550
|
-
usage: S.optional(__S(
|
|
2551
|
-
databases: S.optional(__S(
|
|
2700
|
+
usage: S.optional(__S(201, __c25, 1)),
|
|
2701
|
+
databases: S.optional(__S(202, __c25, 2)),
|
|
2552
2702
|
}),
|
|
2553
2703
|
).annotate({ identifier: "GetOrganizationUsageResponseOrganization" });
|
|
2554
2704
|
case 4:
|
|
2555
2705
|
return S.suspend(() =>
|
|
2556
2706
|
S.Struct({
|
|
2557
|
-
organization: S.optional(__S(
|
|
2707
|
+
organization: S.optional(__S(203, __c25, 3)),
|
|
2558
2708
|
}),
|
|
2559
2709
|
).annotate({ identifier: "GetOrganizationUsageResponse" });
|
|
2560
2710
|
}
|
|
2561
2711
|
}
|
|
2562
|
-
function
|
|
2712
|
+
function __c26(j: number): any {
|
|
2563
2713
|
switch (j) {
|
|
2564
2714
|
case 0:
|
|
2565
2715
|
return S.suspend(() =>
|
|
@@ -2576,7 +2726,7 @@ function __c25(j: number): any {
|
|
|
2576
2726
|
).annotate({ identifier: "InvalidateDatabaseTokensRequest" });
|
|
2577
2727
|
}
|
|
2578
2728
|
}
|
|
2579
|
-
function
|
|
2729
|
+
function __c27(j: number): any {
|
|
2580
2730
|
switch (j) {
|
|
2581
2731
|
case 0:
|
|
2582
2732
|
return S.suspend(() =>
|
|
@@ -2593,7 +2743,7 @@ function __c26(j: number): any {
|
|
|
2593
2743
|
).annotate({ identifier: "InvalidateGroupTokensRequest" });
|
|
2594
2744
|
}
|
|
2595
2745
|
}
|
|
2596
|
-
function
|
|
2746
|
+
function __c28(j: number): any {
|
|
2597
2747
|
switch (j) {
|
|
2598
2748
|
case 0:
|
|
2599
2749
|
return S.suspend(() =>
|
|
@@ -2621,12 +2771,12 @@ function __c27(j: number): any {
|
|
|
2621
2771
|
case 2:
|
|
2622
2772
|
return S.suspend(() =>
|
|
2623
2773
|
S.Struct({
|
|
2624
|
-
invited: S.optional(__S(
|
|
2774
|
+
invited: S.optional(__S(225, __c28, 1)),
|
|
2625
2775
|
}),
|
|
2626
2776
|
).annotate({ identifier: "InviteOrganizationMemberV2Response" });
|
|
2627
2777
|
}
|
|
2628
2778
|
}
|
|
2629
|
-
function
|
|
2779
|
+
function __c29(j: number): any {
|
|
2630
2780
|
switch (j) {
|
|
2631
2781
|
case 0:
|
|
2632
2782
|
return S.suspend(() =>
|
|
@@ -2639,21 +2789,21 @@ function __c28(j: number): any {
|
|
|
2639
2789
|
id: S.optional(S.String),
|
|
2640
2790
|
organization: S.optional(S.String),
|
|
2641
2791
|
group: S.optional(S.String),
|
|
2642
|
-
scopes: S.optional(__S(
|
|
2792
|
+
scopes: S.optional(__S(360, __c45, 0)),
|
|
2643
2793
|
created_at: S.optional(S.String),
|
|
2644
2794
|
}),
|
|
2645
2795
|
).annotate({ identifier: "APIToken" });
|
|
2646
2796
|
case 2:
|
|
2647
|
-
return S.Array(__S(
|
|
2797
|
+
return S.Array(__S(233, __c29, 1));
|
|
2648
2798
|
case 3:
|
|
2649
2799
|
return S.suspend(() =>
|
|
2650
2800
|
S.Struct({
|
|
2651
|
-
tokens: S.optional(__S(
|
|
2801
|
+
tokens: S.optional(__S(234, __c29, 2)),
|
|
2652
2802
|
}),
|
|
2653
2803
|
).annotate({ identifier: "ListAPITokensResponse" });
|
|
2654
2804
|
}
|
|
2655
2805
|
}
|
|
2656
|
-
function
|
|
2806
|
+
function __c30(j: number): any {
|
|
2657
2807
|
switch (j) {
|
|
2658
2808
|
case 0:
|
|
2659
2809
|
return S.suspend(() =>
|
|
@@ -2669,16 +2819,16 @@ function __c29(j: number): any {
|
|
|
2669
2819
|
),
|
|
2670
2820
|
).annotate({ identifier: "ListDatabaseInstancesRequest" });
|
|
2671
2821
|
case 1:
|
|
2672
|
-
return S.Array(__S(
|
|
2822
|
+
return S.Array(__S(96, __c12, 0));
|
|
2673
2823
|
case 2:
|
|
2674
2824
|
return S.suspend(() =>
|
|
2675
2825
|
S.Struct({
|
|
2676
|
-
instances: S.optional(__S(
|
|
2826
|
+
instances: S.optional(__S(241, __c30, 1)),
|
|
2677
2827
|
}),
|
|
2678
2828
|
).annotate({ identifier: "ListDatabaseInstancesResponse" });
|
|
2679
2829
|
}
|
|
2680
2830
|
}
|
|
2681
|
-
function
|
|
2831
|
+
function __c31(j: number): any {
|
|
2682
2832
|
switch (j) {
|
|
2683
2833
|
case 0:
|
|
2684
2834
|
return S.suspend(() =>
|
|
@@ -2696,16 +2846,16 @@ function __c30(j: number): any {
|
|
|
2696
2846
|
),
|
|
2697
2847
|
).annotate({ identifier: "ListDatabasesRequest" });
|
|
2698
2848
|
case 1:
|
|
2699
|
-
return S.Array(__S(
|
|
2849
|
+
return S.Array(__S(65, __c8, 1));
|
|
2700
2850
|
case 2:
|
|
2701
2851
|
return S.suspend(() =>
|
|
2702
2852
|
S.Struct({
|
|
2703
|
-
databases: S.optional(__S(
|
|
2853
|
+
databases: S.optional(__S(249, __c31, 1)),
|
|
2704
2854
|
}),
|
|
2705
2855
|
).annotate({ identifier: "ListDatabasesResponse" });
|
|
2706
2856
|
}
|
|
2707
2857
|
}
|
|
2708
|
-
function
|
|
2858
|
+
function __c32(j: number): any {
|
|
2709
2859
|
switch (j) {
|
|
2710
2860
|
case 0:
|
|
2711
2861
|
return S.suspend(() =>
|
|
@@ -2722,13 +2872,13 @@ function __c31(j: number): any {
|
|
|
2722
2872
|
case 1:
|
|
2723
2873
|
return S.suspend(() =>
|
|
2724
2874
|
S.Struct({
|
|
2725
|
-
databases: S.optional(__S(
|
|
2726
|
-
pagination: S.optional(__S(
|
|
2875
|
+
databases: S.optional(__S(280, __c35, 0)),
|
|
2876
|
+
pagination: S.optional(__S(264, __c33, 0)),
|
|
2727
2877
|
}),
|
|
2728
2878
|
).annotate({ identifier: "ListDeletedDatabasesResponse" });
|
|
2729
2879
|
}
|
|
2730
2880
|
}
|
|
2731
|
-
function
|
|
2881
|
+
function __c33(j: number): any {
|
|
2732
2882
|
switch (j) {
|
|
2733
2883
|
case 0:
|
|
2734
2884
|
return S.suspend(() =>
|
|
@@ -2738,7 +2888,7 @@ function __c32(j: number): any {
|
|
|
2738
2888
|
).annotate({ identifier: "Pagination" });
|
|
2739
2889
|
}
|
|
2740
2890
|
}
|
|
2741
|
-
function
|
|
2891
|
+
function __c34(j: number): any {
|
|
2742
2892
|
switch (j) {
|
|
2743
2893
|
case 0:
|
|
2744
2894
|
return S.suspend(() =>
|
|
@@ -2749,7 +2899,7 @@ function __c33(j: number): any {
|
|
|
2749
2899
|
group: S.optional(S.String),
|
|
2750
2900
|
group_id: S.optional(S.String),
|
|
2751
2901
|
organization_id: S.optional(S.String),
|
|
2752
|
-
regions: S.optional(__S(
|
|
2902
|
+
regions: S.optional(__S(360, __c45, 0)),
|
|
2753
2903
|
primaryRegion: S.optional(S.String),
|
|
2754
2904
|
delete_protection: S.optional(S.Boolean),
|
|
2755
2905
|
deleted_at: S.optional(S.String),
|
|
@@ -2758,13 +2908,13 @@ function __c33(j: number): any {
|
|
|
2758
2908
|
).annotate({ identifier: "DeletedDatabase" });
|
|
2759
2909
|
}
|
|
2760
2910
|
}
|
|
2761
|
-
function
|
|
2911
|
+
function __c35(j: number): any {
|
|
2762
2912
|
switch (j) {
|
|
2763
2913
|
case 0:
|
|
2764
|
-
return S.Array(__S(
|
|
2914
|
+
return S.Array(__S(272, __c34, 0));
|
|
2765
2915
|
}
|
|
2766
2916
|
}
|
|
2767
|
-
function
|
|
2917
|
+
function __c36(j: number): any {
|
|
2768
2918
|
switch (j) {
|
|
2769
2919
|
case 0:
|
|
2770
2920
|
return S.suspend(() =>
|
|
@@ -2790,17 +2940,17 @@ function __c35(j: number): any {
|
|
|
2790
2940
|
}),
|
|
2791
2941
|
).annotate({ identifier: "DeletedGroup" });
|
|
2792
2942
|
case 2:
|
|
2793
|
-
return S.Array(__S(
|
|
2943
|
+
return S.Array(__S(289, __c36, 1));
|
|
2794
2944
|
case 3:
|
|
2795
2945
|
return S.suspend(() =>
|
|
2796
2946
|
S.Struct({
|
|
2797
|
-
groups: S.optional(__S(
|
|
2798
|
-
pagination: S.optional(__S(
|
|
2947
|
+
groups: S.optional(__S(290, __c36, 2)),
|
|
2948
|
+
pagination: S.optional(__S(264, __c33, 0)),
|
|
2799
2949
|
}),
|
|
2800
2950
|
).annotate({ identifier: "ListDeletedGroupsResponse" });
|
|
2801
2951
|
}
|
|
2802
2952
|
}
|
|
2803
|
-
function
|
|
2953
|
+
function __c37(j: number): any {
|
|
2804
2954
|
switch (j) {
|
|
2805
2955
|
case 0:
|
|
2806
2956
|
return S.suspend(() =>
|
|
@@ -2811,16 +2961,16 @@ function __c36(j: number): any {
|
|
|
2811
2961
|
),
|
|
2812
2962
|
).annotate({ identifier: "ListGroupsRequest" });
|
|
2813
2963
|
case 1:
|
|
2814
|
-
return S.Array(__S(
|
|
2964
|
+
return S.Array(__S(368, __c46, 0));
|
|
2815
2965
|
case 2:
|
|
2816
2966
|
return S.suspend(() =>
|
|
2817
2967
|
S.Struct({
|
|
2818
|
-
groups: S.optional(__S(
|
|
2968
|
+
groups: S.optional(__S(297, __c37, 1)),
|
|
2819
2969
|
}),
|
|
2820
2970
|
).annotate({ identifier: "ListGroupsResponse" });
|
|
2821
2971
|
}
|
|
2822
2972
|
}
|
|
2823
|
-
function
|
|
2973
|
+
function __c38(j: number): any {
|
|
2824
2974
|
switch (j) {
|
|
2825
2975
|
case 0:
|
|
2826
2976
|
return S.suspend(() =>
|
|
@@ -2829,18 +2979,18 @@ function __c37(j: number): any {
|
|
|
2829
2979
|
case 1:
|
|
2830
2980
|
return S.suspend(() =>
|
|
2831
2981
|
S.Struct({
|
|
2832
|
-
locations: S.optional(__S(
|
|
2982
|
+
locations: S.optional(__S(312, __c39, 0)),
|
|
2833
2983
|
}),
|
|
2834
2984
|
).annotate({ identifier: "ListLocationsResponse" });
|
|
2835
2985
|
}
|
|
2836
2986
|
}
|
|
2837
|
-
function
|
|
2987
|
+
function __c39(j: number): any {
|
|
2838
2988
|
switch (j) {
|
|
2839
2989
|
case 0:
|
|
2840
2990
|
return S.Record(S.String, S.String);
|
|
2841
2991
|
}
|
|
2842
2992
|
}
|
|
2843
|
-
function
|
|
2993
|
+
function __c40(j: number): any {
|
|
2844
2994
|
switch (j) {
|
|
2845
2995
|
case 0:
|
|
2846
2996
|
return S.suspend(() =>
|
|
@@ -2868,22 +3018,22 @@ function __c39(j: number): any {
|
|
|
2868
3018
|
id: S.optional(S.String),
|
|
2869
3019
|
organization: S.optional(S.String),
|
|
2870
3020
|
group: S.optional(S.String),
|
|
2871
|
-
scopes: S.optional(__S(
|
|
2872
|
-
owner: S.optional(__S(
|
|
3021
|
+
scopes: S.optional(__S(360, __c45, 0)),
|
|
3022
|
+
owner: S.optional(__S(321, __c40, 1)),
|
|
2873
3023
|
created_at: S.optional(S.String),
|
|
2874
3024
|
}),
|
|
2875
3025
|
).annotate({ identifier: "ListOrganizationAPITokensResponseTokensItem" });
|
|
2876
3026
|
case 3:
|
|
2877
|
-
return S.Array(__S(
|
|
3027
|
+
return S.Array(__S(322, __c40, 2));
|
|
2878
3028
|
case 4:
|
|
2879
3029
|
return S.suspend(() =>
|
|
2880
3030
|
S.Struct({
|
|
2881
|
-
tokens: S.optional(__S(
|
|
3031
|
+
tokens: S.optional(__S(323, __c40, 3)),
|
|
2882
3032
|
}),
|
|
2883
3033
|
).annotate({ identifier: "ListOrganizationAPITokensResponse" });
|
|
2884
3034
|
}
|
|
2885
3035
|
}
|
|
2886
|
-
function
|
|
3036
|
+
function __c41(j: number): any {
|
|
2887
3037
|
switch (j) {
|
|
2888
3038
|
case 0:
|
|
2889
3039
|
return S.suspend(() =>
|
|
@@ -2911,7 +3061,7 @@ function __c40(j: number): any {
|
|
|
2911
3061
|
}),
|
|
2912
3062
|
).annotate({ identifier: "AuditLog" });
|
|
2913
3063
|
case 2:
|
|
2914
|
-
return S.Array(__S(
|
|
3064
|
+
return S.Array(__S(329, __c41, 1));
|
|
2915
3065
|
case 3:
|
|
2916
3066
|
return S.suspend(() =>
|
|
2917
3067
|
S.Struct({
|
|
@@ -2924,13 +3074,13 @@ function __c40(j: number): any {
|
|
|
2924
3074
|
case 4:
|
|
2925
3075
|
return S.suspend(() =>
|
|
2926
3076
|
S.Struct({
|
|
2927
|
-
audit_logs: S.optional(__S(
|
|
2928
|
-
pagination: S.optional(__S(
|
|
3077
|
+
audit_logs: S.optional(__S(330, __c41, 2)),
|
|
3078
|
+
pagination: S.optional(__S(331, __c41, 3)),
|
|
2929
3079
|
}),
|
|
2930
3080
|
).annotate({ identifier: "ListOrganizationAuditLogsResponse" });
|
|
2931
3081
|
}
|
|
2932
3082
|
}
|
|
2933
|
-
function
|
|
3083
|
+
function __c42(j: number): any {
|
|
2934
3084
|
switch (j) {
|
|
2935
3085
|
case 0:
|
|
2936
3086
|
return S.suspend(() =>
|
|
@@ -2950,16 +3100,16 @@ function __c41(j: number): any {
|
|
|
2950
3100
|
}),
|
|
2951
3101
|
).annotate({ identifier: "InviteV2" });
|
|
2952
3102
|
case 2:
|
|
2953
|
-
return S.Array(__S(
|
|
3103
|
+
return S.Array(__S(337, __c42, 1));
|
|
2954
3104
|
case 3:
|
|
2955
3105
|
return S.suspend(() =>
|
|
2956
3106
|
S.Struct({
|
|
2957
|
-
invites: S.optional(__S(
|
|
3107
|
+
invites: S.optional(__S(338, __c42, 2)),
|
|
2958
3108
|
}),
|
|
2959
3109
|
).annotate({ identifier: "ListOrganizationInvitesV2Response" });
|
|
2960
3110
|
}
|
|
2961
3111
|
}
|
|
2962
|
-
function
|
|
3112
|
+
function __c43(j: number): any {
|
|
2963
3113
|
switch (j) {
|
|
2964
3114
|
case 0:
|
|
2965
3115
|
return S.suspend(() =>
|
|
@@ -2986,16 +3136,16 @@ function __c42(j: number): any {
|
|
|
2986
3136
|
}),
|
|
2987
3137
|
).annotate({ identifier: "ListOrganizationInvoicesResponseInvoicesItem" });
|
|
2988
3138
|
case 2:
|
|
2989
|
-
return S.Array(__S(
|
|
3139
|
+
return S.Array(__S(345, __c43, 1));
|
|
2990
3140
|
case 3:
|
|
2991
3141
|
return S.suspend(() =>
|
|
2992
3142
|
S.Struct({
|
|
2993
|
-
invoices: S.optional(__S(
|
|
3143
|
+
invoices: S.optional(__S(346, __c43, 2)),
|
|
2994
3144
|
}),
|
|
2995
3145
|
).annotate({ identifier: "ListOrganizationInvoicesResponse" });
|
|
2996
3146
|
}
|
|
2997
3147
|
}
|
|
2998
|
-
function
|
|
3148
|
+
function __c44(j: number): any {
|
|
2999
3149
|
switch (j) {
|
|
3000
3150
|
case 0:
|
|
3001
3151
|
return S.suspend(() =>
|
|
@@ -3013,13 +3163,13 @@ function __c43(j: number): any {
|
|
|
3013
3163
|
).annotate({ identifier: "AddLocationToGroupRequest" });
|
|
3014
3164
|
}
|
|
3015
3165
|
}
|
|
3016
|
-
function
|
|
3166
|
+
function __c45(j: number): any {
|
|
3017
3167
|
switch (j) {
|
|
3018
3168
|
case 0:
|
|
3019
3169
|
return S.Array(S.String);
|
|
3020
3170
|
}
|
|
3021
3171
|
}
|
|
3022
|
-
function
|
|
3172
|
+
function __c46(j: number): any {
|
|
3023
3173
|
switch (j) {
|
|
3024
3174
|
case 0:
|
|
3025
3175
|
return S.suspend(() =>
|
|
@@ -3027,24 +3177,24 @@ function __c45(j: number): any {
|
|
|
3027
3177
|
name: S.optional(S.String),
|
|
3028
3178
|
version: S.optional(S.String),
|
|
3029
3179
|
uuid: S.optional(S.String),
|
|
3030
|
-
locations: S.optional(__S(
|
|
3180
|
+
locations: S.optional(__S(360, __c45, 0)),
|
|
3031
3181
|
primary: S.optional(S.String),
|
|
3032
3182
|
delete_protection: S.optional(S.Boolean),
|
|
3033
3183
|
}),
|
|
3034
3184
|
).annotate({ identifier: "Group" });
|
|
3035
3185
|
}
|
|
3036
3186
|
}
|
|
3037
|
-
function
|
|
3187
|
+
function __c47(j: number): any {
|
|
3038
3188
|
switch (j) {
|
|
3039
3189
|
case 0:
|
|
3040
3190
|
return S.suspend(() =>
|
|
3041
3191
|
S.Struct({
|
|
3042
|
-
group: S.optional(__S(
|
|
3192
|
+
group: S.optional(__S(368, __c46, 0)),
|
|
3043
3193
|
}),
|
|
3044
3194
|
).annotate({ identifier: "AddLocationToGroupResponse" });
|
|
3045
3195
|
}
|
|
3046
3196
|
}
|
|
3047
|
-
function
|
|
3197
|
+
function __c48(j: number): any {
|
|
3048
3198
|
switch (j) {
|
|
3049
3199
|
case 0:
|
|
3050
3200
|
return S.suspend(() =>
|
|
@@ -3055,16 +3205,16 @@ function __c47(j: number): any {
|
|
|
3055
3205
|
),
|
|
3056
3206
|
).annotate({ identifier: "ListOrganizationMembersRequest" });
|
|
3057
3207
|
case 1:
|
|
3058
|
-
return S.Array(__S(
|
|
3208
|
+
return S.Array(__S(184, __c23, 0));
|
|
3059
3209
|
case 2:
|
|
3060
3210
|
return S.suspend(() =>
|
|
3061
3211
|
S.Struct({
|
|
3062
|
-
members: S.optional(__S(
|
|
3212
|
+
members: S.optional(__S(385, __c48, 1)),
|
|
3063
3213
|
}),
|
|
3064
3214
|
).annotate({ identifier: "ListOrganizationMembersResponse" });
|
|
3065
3215
|
}
|
|
3066
3216
|
}
|
|
3067
|
-
function
|
|
3217
|
+
function __c49(j: number): any {
|
|
3068
3218
|
switch (j) {
|
|
3069
3219
|
case 0:
|
|
3070
3220
|
return S.suspend(() =>
|
|
@@ -3082,7 +3232,7 @@ function __c48(j: number): any {
|
|
|
3082
3232
|
}),
|
|
3083
3233
|
).annotate({ identifier: "PlanPrice" });
|
|
3084
3234
|
case 2:
|
|
3085
|
-
return S.Array(__S(
|
|
3235
|
+
return S.Array(__S(393, __c49, 1));
|
|
3086
3236
|
case 3:
|
|
3087
3237
|
return S.suspend(() =>
|
|
3088
3238
|
S.Struct({
|
|
@@ -3100,35 +3250,35 @@ function __c48(j: number): any {
|
|
|
3100
3250
|
S.Struct({
|
|
3101
3251
|
name: S.optional(S.String),
|
|
3102
3252
|
price: S.optional(S.String),
|
|
3103
|
-
prices: S.optional(__S(
|
|
3104
|
-
quotas: S.optional(__S(
|
|
3253
|
+
prices: S.optional(__S(394, __c49, 2)),
|
|
3254
|
+
quotas: S.optional(__S(395, __c49, 3)),
|
|
3105
3255
|
}),
|
|
3106
3256
|
).annotate({ identifier: "OrganizationPlan" });
|
|
3107
3257
|
case 5:
|
|
3108
|
-
return S.Array(__S(
|
|
3258
|
+
return S.Array(__S(396, __c49, 4));
|
|
3109
3259
|
case 6:
|
|
3110
3260
|
return S.suspend(() =>
|
|
3111
3261
|
S.Struct({
|
|
3112
|
-
plans: S.optional(__S(
|
|
3262
|
+
plans: S.optional(__S(397, __c49, 5)),
|
|
3113
3263
|
}),
|
|
3114
3264
|
).annotate({ identifier: "ListOrganizationPlansResponse" });
|
|
3115
3265
|
}
|
|
3116
3266
|
}
|
|
3117
|
-
function
|
|
3267
|
+
function __c50(j: number): any {
|
|
3118
3268
|
switch (j) {
|
|
3119
3269
|
case 0:
|
|
3120
3270
|
return S.suspend(() =>
|
|
3121
3271
|
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v1/organizations", code: 200 })),
|
|
3122
3272
|
).annotate({ identifier: "ListOrganizationsRequest" });
|
|
3123
3273
|
case 1:
|
|
3124
|
-
return S.Array(__S(
|
|
3274
|
+
return S.Array(__S(160, __c20, 0));
|
|
3125
3275
|
case 2:
|
|
3126
|
-
return S.suspend(() => __S(
|
|
3276
|
+
return S.suspend(() => __S(401, __c50, 1).pipe(T.RawResponseRoot())).annotate({
|
|
3127
3277
|
identifier: "ListOrganizationsResponse",
|
|
3128
3278
|
});
|
|
3129
3279
|
}
|
|
3130
3280
|
}
|
|
3131
|
-
function
|
|
3281
|
+
function __c51(j: number): any {
|
|
3132
3282
|
switch (j) {
|
|
3133
3283
|
case 0:
|
|
3134
3284
|
return S.suspend(() =>
|
|
@@ -3146,7 +3296,7 @@ function __c50(j: number): any {
|
|
|
3146
3296
|
).annotate({ identifier: "RemoveLocationFromGroupRequest" });
|
|
3147
3297
|
}
|
|
3148
3298
|
}
|
|
3149
|
-
function
|
|
3299
|
+
function __c52(j: number): any {
|
|
3150
3300
|
switch (j) {
|
|
3151
3301
|
case 0:
|
|
3152
3302
|
return S.suspend(() =>
|
|
@@ -3169,7 +3319,7 @@ function __c51(j: number): any {
|
|
|
3169
3319
|
).annotate({ identifier: "RemoveOrganizationMemberResponse" });
|
|
3170
3320
|
}
|
|
3171
3321
|
}
|
|
3172
|
-
function
|
|
3322
|
+
function __c53(j: number): any {
|
|
3173
3323
|
switch (j) {
|
|
3174
3324
|
case 0:
|
|
3175
3325
|
return S.suspend(() =>
|
|
@@ -3188,12 +3338,12 @@ function __c52(j: number): any {
|
|
|
3188
3338
|
case 1:
|
|
3189
3339
|
return S.suspend(() =>
|
|
3190
3340
|
S.Struct({
|
|
3191
|
-
database: S.optional(__S(
|
|
3341
|
+
database: S.optional(__S(272, __c34, 0)),
|
|
3192
3342
|
}),
|
|
3193
3343
|
).annotate({ identifier: "RestoreDatabaseResponse" });
|
|
3194
3344
|
}
|
|
3195
3345
|
}
|
|
3196
|
-
function
|
|
3346
|
+
function __c54(j: number): any {
|
|
3197
3347
|
switch (j) {
|
|
3198
3348
|
case 0:
|
|
3199
3349
|
return S.suspend(() =>
|
|
@@ -3211,14 +3361,14 @@ function __c53(j: number): any {
|
|
|
3211
3361
|
case 1:
|
|
3212
3362
|
return S.suspend(() =>
|
|
3213
3363
|
S.Struct({
|
|
3214
|
-
group: S.optional(__S(
|
|
3215
|
-
databases: S.optional(__S(
|
|
3216
|
-
failures: S.optional(__S(
|
|
3364
|
+
group: S.optional(__S(368, __c46, 0)),
|
|
3365
|
+
databases: S.optional(__S(280, __c35, 0)),
|
|
3366
|
+
failures: S.optional(__S(312, __c39, 0)),
|
|
3217
3367
|
}),
|
|
3218
3368
|
).annotate({ identifier: "RestoreGroupResponse" });
|
|
3219
3369
|
}
|
|
3220
3370
|
}
|
|
3221
|
-
function
|
|
3371
|
+
function __c55(j: number): any {
|
|
3222
3372
|
switch (j) {
|
|
3223
3373
|
case 0:
|
|
3224
3374
|
return S.suspend(() =>
|
|
@@ -3228,17 +3378,17 @@ function __c54(j: number): any {
|
|
|
3228
3378
|
).annotate({ identifier: "RevokeAPITokenRequest" });
|
|
3229
3379
|
}
|
|
3230
3380
|
}
|
|
3231
|
-
function
|
|
3381
|
+
function __c56(j: number): any {
|
|
3232
3382
|
switch (j) {
|
|
3233
3383
|
case 0:
|
|
3234
3384
|
return S.suspend(() =>
|
|
3235
3385
|
S.Struct({
|
|
3236
|
-
token: S.optional(S.String),
|
|
3386
|
+
token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
3237
3387
|
}),
|
|
3238
3388
|
).annotate({ identifier: "RevokeAPITokenResponse" });
|
|
3239
3389
|
}
|
|
3240
3390
|
}
|
|
3241
|
-
function
|
|
3391
|
+
function __c57(j: number): any {
|
|
3242
3392
|
switch (j) {
|
|
3243
3393
|
case 0:
|
|
3244
3394
|
return S.suspend(() =>
|
|
@@ -3255,7 +3405,7 @@ function __c56(j: number): any {
|
|
|
3255
3405
|
).annotate({ identifier: "RevokeOrganizationAPITokenRequest" });
|
|
3256
3406
|
}
|
|
3257
3407
|
}
|
|
3258
|
-
function
|
|
3408
|
+
function __c58(j: number): any {
|
|
3259
3409
|
switch (j) {
|
|
3260
3410
|
case 0:
|
|
3261
3411
|
return S.suspend(() =>
|
|
@@ -3273,7 +3423,7 @@ function __c57(j: number): any {
|
|
|
3273
3423
|
).annotate({ identifier: "TransferGroupRequest" });
|
|
3274
3424
|
}
|
|
3275
3425
|
}
|
|
3276
|
-
function
|
|
3426
|
+
function __c59(j: number): any {
|
|
3277
3427
|
switch (j) {
|
|
3278
3428
|
case 0:
|
|
3279
3429
|
return S.suspend(() =>
|
|
@@ -3298,7 +3448,7 @@ function __c58(j: number): any {
|
|
|
3298
3448
|
).annotate({ identifier: "AddOrganizationMemberResponse" });
|
|
3299
3449
|
}
|
|
3300
3450
|
}
|
|
3301
|
-
function
|
|
3451
|
+
function __c60(j: number): any {
|
|
3302
3452
|
switch (j) {
|
|
3303
3453
|
case 0:
|
|
3304
3454
|
return S.suspend(() =>
|
|
@@ -3315,7 +3465,7 @@ function __c59(j: number): any {
|
|
|
3315
3465
|
).annotate({ identifier: "UnarchiveGroupRequest" });
|
|
3316
3466
|
}
|
|
3317
3467
|
}
|
|
3318
|
-
function
|
|
3468
|
+
function __c61(j: number): any {
|
|
3319
3469
|
switch (j) {
|
|
3320
3470
|
case 0:
|
|
3321
3471
|
return S.suspend(() =>
|
|
@@ -3327,8 +3477,8 @@ function __c60(j: number): any {
|
|
|
3327
3477
|
block_reads: S.optional(S.Boolean),
|
|
3328
3478
|
block_writes: S.optional(S.Boolean),
|
|
3329
3479
|
delete_protection: S.optional(S.Boolean),
|
|
3330
|
-
allowed_ips: S.optional(__S(
|
|
3331
|
-
allowed_aws_vpc_ids: S.optional(__S(
|
|
3480
|
+
allowed_ips: S.optional(__S(360, __c45, 0)),
|
|
3481
|
+
allowed_aws_vpc_ids: S.optional(__S(360, __c45, 0)),
|
|
3332
3482
|
}).pipe(
|
|
3333
3483
|
T.Http({
|
|
3334
3484
|
method: "PATCH",
|
|
@@ -3339,7 +3489,7 @@ function __c60(j: number): any {
|
|
|
3339
3489
|
).annotate({ identifier: "UpdateDatabaseConfigurationRequest" });
|
|
3340
3490
|
}
|
|
3341
3491
|
}
|
|
3342
|
-
function
|
|
3492
|
+
function __c62(j: number): any {
|
|
3343
3493
|
switch (j) {
|
|
3344
3494
|
case 0:
|
|
3345
3495
|
return S.suspend(() =>
|
|
@@ -3357,7 +3507,7 @@ function __c61(j: number): any {
|
|
|
3357
3507
|
).annotate({ identifier: "UpdateGroupConfigurationRequest" });
|
|
3358
3508
|
}
|
|
3359
3509
|
}
|
|
3360
|
-
function
|
|
3510
|
+
function __c63(j: number): any {
|
|
3361
3511
|
switch (j) {
|
|
3362
3512
|
case 0:
|
|
3363
3513
|
return S.suspend(() =>
|
|
@@ -3374,7 +3524,7 @@ function __c62(j: number): any {
|
|
|
3374
3524
|
).annotate({ identifier: "UpdateGroupDatabasesRequest" });
|
|
3375
3525
|
}
|
|
3376
3526
|
}
|
|
3377
|
-
function
|
|
3527
|
+
function __c64(j: number): any {
|
|
3378
3528
|
switch (j) {
|
|
3379
3529
|
case 0:
|
|
3380
3530
|
return S.suspend(() =>
|
|
@@ -3401,12 +3551,12 @@ function __c63(j: number): any {
|
|
|
3401
3551
|
case 2:
|
|
3402
3552
|
return S.suspend(() =>
|
|
3403
3553
|
S.Struct({
|
|
3404
|
-
member: S.optional(__S(
|
|
3554
|
+
member: S.optional(__S(513, __c64, 1)),
|
|
3405
3555
|
}),
|
|
3406
3556
|
).annotate({ identifier: "UpdateMemberRoleResponse" });
|
|
3407
3557
|
}
|
|
3408
3558
|
}
|
|
3409
|
-
function
|
|
3559
|
+
function __c65(j: number): any {
|
|
3410
3560
|
switch (j) {
|
|
3411
3561
|
case 0:
|
|
3412
3562
|
return S.suspend(() =>
|
|
@@ -3421,7 +3571,7 @@ function __c64(j: number): any {
|
|
|
3421
3571
|
).annotate({ identifier: "UpdateOrganizationRequest" });
|
|
3422
3572
|
}
|
|
3423
3573
|
}
|
|
3424
|
-
function
|
|
3574
|
+
function __c66(j: number): any {
|
|
3425
3575
|
switch (j) {
|
|
3426
3576
|
case 0:
|
|
3427
3577
|
return S.suspend(() =>
|
|
@@ -3435,7 +3585,7 @@ function __c65(j: number): any {
|
|
|
3435
3585
|
).annotate({ identifier: "ValidateAPITokenResponse" });
|
|
3436
3586
|
}
|
|
3437
3587
|
}
|
|
3438
|
-
function
|
|
3588
|
+
function __c67(j: number): any {
|
|
3439
3589
|
switch (j) {
|
|
3440
3590
|
case 0:
|
|
3441
3591
|
return S.Array(S.String);
|
|
@@ -3445,7 +3595,7 @@ function __c66(j: number): any {
|
|
|
3445
3595
|
tokenName: S.String.pipe(T.Label()),
|
|
3446
3596
|
organization: S.optional(S.String),
|
|
3447
3597
|
group: S.optional(S.String),
|
|
3448
|
-
scopes: S.optional(__S(
|
|
3598
|
+
scopes: S.optional(__S(536, __c67, 0)),
|
|
3449
3599
|
}).pipe(T.Http({ method: "POST", uri: "/v1/auth/api-tokens/{tokenName}", code: 200 })),
|
|
3450
3600
|
).annotate({ identifier: "CreateAPITokenRequest" });
|
|
3451
3601
|
case 2:
|
|
@@ -3458,7 +3608,7 @@ function __c66(j: number): any {
|
|
|
3458
3608
|
).annotate({ identifier: "CreateAPITokenResponse" });
|
|
3459
3609
|
}
|
|
3460
3610
|
}
|
|
3461
|
-
function
|
|
3611
|
+
function __c68(j: number): any {
|
|
3462
3612
|
switch (j) {
|
|
3463
3613
|
case 0:
|
|
3464
3614
|
return S.suspend(() =>
|
|
@@ -3471,7 +3621,7 @@ function __c67(j: number): any {
|
|
|
3471
3621
|
case 1:
|
|
3472
3622
|
return S.suspend(() =>
|
|
3473
3623
|
S.Struct({
|
|
3474
|
-
encryption_key: S.optional(S.String),
|
|
3624
|
+
encryption_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
3475
3625
|
encryption_cipher: S.optional(S.String),
|
|
3476
3626
|
}),
|
|
3477
3627
|
).annotate({ identifier: "CreateDatabaseRequestRemoteEncryption" });
|
|
@@ -3481,9 +3631,9 @@ function __c67(j: number): any {
|
|
|
3481
3631
|
organizationSlug: S.String.pipe(T.Label()),
|
|
3482
3632
|
name: S.String,
|
|
3483
3633
|
group: S.String,
|
|
3484
|
-
seed: S.optional(__S(
|
|
3634
|
+
seed: S.optional(__S(544, __c68, 0)),
|
|
3485
3635
|
size_limit: S.optional(S.String),
|
|
3486
|
-
remote_encryption: S.optional(__S(
|
|
3636
|
+
remote_encryption: S.optional(__S(545, __c68, 1)),
|
|
3487
3637
|
}).pipe(
|
|
3488
3638
|
T.Http({
|
|
3489
3639
|
method: "POST",
|
|
@@ -3503,12 +3653,12 @@ function __c67(j: number): any {
|
|
|
3503
3653
|
case 4:
|
|
3504
3654
|
return S.suspend(() =>
|
|
3505
3655
|
S.Struct({
|
|
3506
|
-
database: S.optional(__S(
|
|
3656
|
+
database: S.optional(__S(547, __c68, 3)),
|
|
3507
3657
|
}),
|
|
3508
3658
|
).annotate({ identifier: "CreateDatabaseResponse" });
|
|
3509
3659
|
}
|
|
3510
3660
|
}
|
|
3511
|
-
function
|
|
3661
|
+
function __c69(j: number): any {
|
|
3512
3662
|
switch (j) {
|
|
3513
3663
|
case 0:
|
|
3514
3664
|
return S.suspend(() =>
|
|
@@ -3517,7 +3667,7 @@ function __c68(j: number): any {
|
|
|
3517
3667
|
databaseName: S.String.pipe(T.Label()),
|
|
3518
3668
|
expiration: S.optional(S.String.pipe(T.Query())),
|
|
3519
3669
|
authorization: S.optional(S.String.pipe(T.Query())),
|
|
3520
|
-
permissions: S.optional(__S(
|
|
3670
|
+
permissions: S.optional(__S(561, __c70, 1)),
|
|
3521
3671
|
}).pipe(
|
|
3522
3672
|
T.Http({
|
|
3523
3673
|
method: "POST",
|
|
@@ -3528,18 +3678,18 @@ function __c68(j: number): any {
|
|
|
3528
3678
|
).annotate({ identifier: "CreateDatabaseTokenRequest" });
|
|
3529
3679
|
}
|
|
3530
3680
|
}
|
|
3531
|
-
function
|
|
3681
|
+
function __c70(j: number): any {
|
|
3532
3682
|
switch (j) {
|
|
3533
3683
|
case 0:
|
|
3534
3684
|
return S.suspend(() =>
|
|
3535
3685
|
S.Struct({
|
|
3536
|
-
databases: S.optional(__S(
|
|
3686
|
+
databases: S.optional(__S(360, __c45, 0)),
|
|
3537
3687
|
}),
|
|
3538
3688
|
).annotate({ identifier: "CreateDatabaseTokenRequestPermissionsReadAttach" });
|
|
3539
3689
|
case 1:
|
|
3540
3690
|
return S.suspend(() =>
|
|
3541
3691
|
S.Struct({
|
|
3542
|
-
read_attach: S.optional(__S(
|
|
3692
|
+
read_attach: S.optional(__S(560, __c70, 0)),
|
|
3543
3693
|
}),
|
|
3544
3694
|
).annotate({ identifier: "CreateDatabaseTokenRequestPermissions" });
|
|
3545
3695
|
case 2:
|
|
@@ -3550,7 +3700,7 @@ function __c69(j: number): any {
|
|
|
3550
3700
|
).annotate({ identifier: "CreateDatabaseTokenResponse" });
|
|
3551
3701
|
}
|
|
3552
3702
|
}
|
|
3553
|
-
function
|
|
3703
|
+
function __c71(j: number): any {
|
|
3554
3704
|
switch (j) {
|
|
3555
3705
|
case 0:
|
|
3556
3706
|
return S.suspend(() =>
|