@distilled.cloud/turso 1.0.0-rc.17 → 1.0.0-rc.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +10 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/protocol.d.ts +3 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/services/turso.d.ts +271 -271
- package/lib/services/turso.d.ts.map +1 -1
- package/lib/services/turso.js +80 -79
- package/lib/services/turso.js.map +1 -1
- package/lib/services.lazy/turso.js +1 -1
- package/package.json +6 -5
- package/src/credentials.ts +3 -2
- package/src/index.ts +3 -3
- package/src/protocol.ts +8 -2
- package/src/services/turso.ts +395 -270
package/src/services/turso.ts
CHANGED
|
@@ -12,6 +12,19 @@ const __s: any[] = [];
|
|
|
12
12
|
|
|
13
13
|
export type { TursoOpError, TursoOpContext };
|
|
14
14
|
|
|
15
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
16
|
+
const TELEMETRY = {
|
|
17
|
+
system: "turso-api",
|
|
18
|
+
responseHeaders: [
|
|
19
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
20
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
21
|
+
],
|
|
22
|
+
prefix: "Turso",
|
|
23
|
+
service: "Turso",
|
|
24
|
+
labels: "turso",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
15
28
|
export class BadRequest
|
|
16
29
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
17
30
|
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
@@ -60,21 +73,21 @@ export interface AddLocationToGroupRequest {
|
|
|
60
73
|
export type GroupLocationsList = Array<string>;
|
|
61
74
|
export interface Group {
|
|
62
75
|
/** The group name, unique across your organization. */
|
|
63
|
-
name?: string;
|
|
76
|
+
name?: string | undefined;
|
|
64
77
|
/** The current libSQL server version the databases in that group are running. */
|
|
65
|
-
version?: string;
|
|
78
|
+
version?: string | undefined;
|
|
66
79
|
/** The group universal unique identifier (UUID). */
|
|
67
|
-
uuid?: string;
|
|
80
|
+
uuid?: string | undefined;
|
|
68
81
|
/** An array of location keys the group is located. */
|
|
69
|
-
locations?: GroupLocationsList;
|
|
82
|
+
locations?: GroupLocationsList | undefined;
|
|
70
83
|
/** The primary location key. */
|
|
71
|
-
primary?: string;
|
|
84
|
+
primary?: string | undefined;
|
|
72
85
|
/** The current status for delete protection. If enabled, the group and all its databases cannot be deleted. */
|
|
73
|
-
delete_protection?: boolean;
|
|
86
|
+
delete_protection?: boolean | undefined;
|
|
74
87
|
}
|
|
75
88
|
export interface AddLocationToGroupResponse {
|
|
76
89
|
/** The group with the added location */
|
|
77
|
-
group?: Group;
|
|
90
|
+
group?: Group | undefined;
|
|
78
91
|
}
|
|
79
92
|
/** The role given to the user. */
|
|
80
93
|
export type AddOrganizationMemberRequestRole = "admin" | "member" | "viewer";
|
|
@@ -82,15 +95,15 @@ export interface AddOrganizationMemberRequest {
|
|
|
82
95
|
/** The slug of the organization or user account. */
|
|
83
96
|
organizationSlug: string;
|
|
84
97
|
/** The username of an existing Turso user. */
|
|
85
|
-
username?: string;
|
|
98
|
+
username?: string | undefined;
|
|
86
99
|
/** The role given to the user. */
|
|
87
|
-
role?: AddOrganizationMemberRequestRole | (string & {});
|
|
100
|
+
role?: AddOrganizationMemberRequestRole | (string & {}) | undefined;
|
|
88
101
|
}
|
|
89
102
|
/** The role assigned to the member. */
|
|
90
103
|
export type Role = "owner" | "admin" | "member" | "viewer";
|
|
91
104
|
export interface AddOrganizationMemberResponse {
|
|
92
|
-
member?: string;
|
|
93
|
-
role?: Role;
|
|
105
|
+
member?: string | undefined;
|
|
106
|
+
role?: Role | undefined;
|
|
94
107
|
}
|
|
95
108
|
export type CreateAPITokenRequestScopesItem =
|
|
96
109
|
| "read"
|
|
@@ -102,9 +115,12 @@ export type CreateAPITokenRequestScopesItem =
|
|
|
102
115
|
| "group:configure"
|
|
103
116
|
| "group:mint-token"
|
|
104
117
|
| "group:rotate-creds"
|
|
118
|
+
| "group:create"
|
|
119
|
+
| "group:delete"
|
|
120
|
+
| "org:read"
|
|
105
121
|
| "read-only"
|
|
106
122
|
| "full-access";
|
|
107
|
-
/** Permissions to grant
|
|
123
|
+
/** Permissions to grant the token. Each entry is either an individual scope or one of the presets `read-only` (expands to `read`) and `full-access` (expands to every group scope, without `group:create`, `group:delete`, and `org:read`). Required and must be non-empty when `group` is set. Optional for an org-scoped token: without `scopes`, the token can do everything that its user can do in the organization. `group:create`, `group:delete`, and `org:read` are valid only on org-scoped tokens. `db:mint-token` lets the token issue new SQL credentials; `db:rotate-creds` invalidates every existing SQL token for the database -- they are deliberately separate because rotation is destructive. */
|
|
108
124
|
export type CreateAPITokenRequestScopesList = Array<
|
|
109
125
|
CreateAPITokenRequestScopesItem | (string & {})
|
|
110
126
|
>;
|
|
@@ -112,27 +128,27 @@ export interface CreateAPITokenRequest {
|
|
|
112
128
|
/** The name of the api token. */
|
|
113
129
|
tokenName: string;
|
|
114
130
|
/** The organization slug to restrict this token to. Required when `group` is set. */
|
|
115
|
-
organization?: string;
|
|
131
|
+
organization?: string | undefined;
|
|
116
132
|
/** The group name (inside `organization`) to restrict this token to. Requires `organization` and a non-empty `scopes` list. */
|
|
117
|
-
group?: string;
|
|
118
|
-
/** Permissions to grant
|
|
119
|
-
scopes?: CreateAPITokenRequestScopesList;
|
|
133
|
+
group?: string | undefined;
|
|
134
|
+
/** Permissions to grant the token. Each entry is either an individual scope or one of the presets `read-only` (expands to `read`) and `full-access` (expands to every group scope, without `group:create`, `group:delete`, and `org:read`). Required and must be non-empty when `group` is set. Optional for an org-scoped token: without `scopes`, the token can do everything that its user can do in the organization. `group:create`, `group:delete`, and `org:read` are valid only on org-scoped tokens. `db:mint-token` lets the token issue new SQL credentials; `db:rotate-creds` invalidates every existing SQL token for the database -- they are deliberately separate because rotation is destructive. */
|
|
135
|
+
scopes?: CreateAPITokenRequestScopesList | undefined;
|
|
120
136
|
}
|
|
121
137
|
export interface CreateAPITokenResponse {
|
|
122
|
-
name?: string;
|
|
123
|
-
id?: string;
|
|
138
|
+
name?: string | undefined;
|
|
139
|
+
id?: string | undefined;
|
|
124
140
|
/** The actual token contents as a JWT. This is used with the `Bearer` header, see [Authentication](/authentication) for more details. **This token is never revealed again.** */
|
|
125
|
-
token?: Redacted.Redacted<string
|
|
141
|
+
token?: Redacted.Redacted<string> | undefined;
|
|
126
142
|
}
|
|
127
143
|
/** The type of seed to be used to create a new database. Use `database` to copy from an existing database, or `database_upload` to [upload a SQLite database file](/api-reference/databases/upload). */
|
|
128
144
|
export type CreateDatabaseRequestSeedType = "database" | "database_upload";
|
|
129
145
|
export interface CreateDatabaseRequestSeed {
|
|
130
146
|
/** The type of seed to be used to create a new database. Use `database` to copy from an existing database, or `database_upload` to [upload a SQLite database file](/api-reference/databases/upload). */
|
|
131
|
-
type?: CreateDatabaseRequestSeedType | (string & {});
|
|
147
|
+
type?: CreateDatabaseRequestSeedType | (string & {}) | undefined;
|
|
132
148
|
/** The name of the existing database when `database` is used as a seed type. */
|
|
133
|
-
name?: string;
|
|
149
|
+
name?: string | undefined;
|
|
134
150
|
/** A formatted [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) recovery point to create a database from. This must be within the last 24 hours, or 30 days on the scaler plan. */
|
|
135
|
-
timestamp?: string;
|
|
151
|
+
timestamp?: string | undefined;
|
|
136
152
|
}
|
|
137
153
|
/** The encryption cipher to use. */
|
|
138
154
|
export type CreateDatabaseRequestRemoteEncryptionEncryptionCipher =
|
|
@@ -148,9 +164,12 @@ export type CreateDatabaseRequestRemoteEncryptionEncryptionCipher =
|
|
|
148
164
|
/** 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). */
|
|
149
165
|
export interface CreateDatabaseRequestRemoteEncryption {
|
|
150
166
|
/** Base64-encoded encryption key. Key size depends on cipher: 32 bytes for aes256gcm, chacha20poly1305, aegis256 variants; 16 bytes for aes128gcm, aegis128l variants. */
|
|
151
|
-
encryption_key?: string;
|
|
167
|
+
encryption_key?: string | undefined;
|
|
152
168
|
/** The encryption cipher to use. */
|
|
153
|
-
encryption_cipher?:
|
|
169
|
+
encryption_cipher?:
|
|
170
|
+
| CreateDatabaseRequestRemoteEncryptionEncryptionCipher
|
|
171
|
+
| (string & {})
|
|
172
|
+
| undefined;
|
|
154
173
|
}
|
|
155
174
|
export interface CreateDatabaseRequest {
|
|
156
175
|
/** The slug of the organization or user account. */
|
|
@@ -159,31 +178,31 @@ export interface CreateDatabaseRequest {
|
|
|
159
178
|
name: string;
|
|
160
179
|
/** The name of the group where the database should be created. **The group must already exist.** */
|
|
161
180
|
group: string;
|
|
162
|
-
seed?: CreateDatabaseRequestSeed;
|
|
181
|
+
seed?: CreateDatabaseRequestSeed | undefined;
|
|
163
182
|
/** The maximum size of the database in bytes. Values with units are also accepted, e.g. 1mb, 256mb, 1gb. */
|
|
164
|
-
size_limit?: string;
|
|
183
|
+
size_limit?: string | undefined;
|
|
165
184
|
/** 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). */
|
|
166
|
-
remote_encryption?: CreateDatabaseRequestRemoteEncryption;
|
|
185
|
+
remote_encryption?: CreateDatabaseRequestRemoteEncryption | undefined;
|
|
167
186
|
}
|
|
168
187
|
export interface CreateDatabaseOutput {
|
|
169
|
-
DbId?: string;
|
|
170
|
-
Hostname?: string;
|
|
171
|
-
Name?: string;
|
|
188
|
+
DbId?: string | undefined;
|
|
189
|
+
Hostname?: string | undefined;
|
|
190
|
+
Name?: string | undefined;
|
|
172
191
|
}
|
|
173
192
|
export interface CreateDatabaseResponse {
|
|
174
193
|
/** The newly created database */
|
|
175
|
-
database?: CreateDatabaseOutput;
|
|
194
|
+
database?: CreateDatabaseOutput | undefined;
|
|
176
195
|
}
|
|
177
196
|
export type CreateDatabaseTokenRequestAuthorization = "full-access" | "read-only";
|
|
178
197
|
export type CreateDatabaseTokenRequestPermissionsReadAttachDatabasesList = Array<string>;
|
|
179
198
|
/** Read `ATTACH` permission for the token. */
|
|
180
199
|
export interface CreateDatabaseTokenRequestPermissionsReadAttach {
|
|
181
|
-
databases?: CreateDatabaseTokenRequestPermissionsReadAttachDatabasesList;
|
|
200
|
+
databases?: CreateDatabaseTokenRequestPermissionsReadAttachDatabasesList | undefined;
|
|
182
201
|
}
|
|
183
202
|
/** The permissions for the token. */
|
|
184
203
|
export interface CreateDatabaseTokenRequestPermissions {
|
|
185
204
|
/** Read `ATTACH` permission for the token. */
|
|
186
|
-
read_attach?: CreateDatabaseTokenRequestPermissionsReadAttach;
|
|
205
|
+
read_attach?: CreateDatabaseTokenRequestPermissionsReadAttach | undefined;
|
|
187
206
|
}
|
|
188
207
|
export interface CreateDatabaseTokenRequest {
|
|
189
208
|
/** The slug of the organization or user account. */
|
|
@@ -191,15 +210,15 @@ export interface CreateDatabaseTokenRequest {
|
|
|
191
210
|
/** The name of the database. */
|
|
192
211
|
databaseName: string;
|
|
193
212
|
/** Expiration time for the token (e.g., 2w1d30m). */
|
|
194
|
-
expiration?: string;
|
|
213
|
+
expiration?: string | undefined;
|
|
195
214
|
/** Authorization level for the token (full-access or read-only). */
|
|
196
|
-
authorization?: CreateDatabaseTokenRequestAuthorization | (string & {});
|
|
215
|
+
authorization?: CreateDatabaseTokenRequestAuthorization | (string & {}) | undefined;
|
|
197
216
|
/** The permissions for the token. */
|
|
198
|
-
permissions?: CreateDatabaseTokenRequestPermissions;
|
|
217
|
+
permissions?: CreateDatabaseTokenRequestPermissions | undefined;
|
|
199
218
|
}
|
|
200
219
|
export interface CreateDatabaseTokenResponse {
|
|
201
220
|
/** The generated authorization token (JWT). */
|
|
202
|
-
jwt?: Redacted.Redacted<string
|
|
221
|
+
jwt?: Redacted.Redacted<string> | undefined;
|
|
203
222
|
}
|
|
204
223
|
/** Set to `all` to enable all extensions. */
|
|
205
224
|
export type ExtensionsCase0 = "all";
|
|
@@ -225,22 +244,22 @@ export interface CreateGroupRequest {
|
|
|
225
244
|
name: string;
|
|
226
245
|
/** The location key for the new group. */
|
|
227
246
|
location: string;
|
|
228
|
-
extensions?: Extensions;
|
|
247
|
+
extensions?: Extensions | undefined;
|
|
229
248
|
}
|
|
230
249
|
export interface CreateGroupResponse {
|
|
231
250
|
/** The newly created group */
|
|
232
|
-
group?: Group;
|
|
251
|
+
group?: Group | undefined;
|
|
233
252
|
}
|
|
234
253
|
export type CreateGroupTokenRequestAuthorization = "full-access" | "read-only";
|
|
235
254
|
export type CreateGroupTokenRequestPermissionsReadAttachDatabasesList = Array<string>;
|
|
236
255
|
/** Read `ATTACH` permission for the token. */
|
|
237
256
|
export interface CreateGroupTokenRequestPermissionsReadAttach {
|
|
238
|
-
databases?: CreateGroupTokenRequestPermissionsReadAttachDatabasesList;
|
|
257
|
+
databases?: CreateGroupTokenRequestPermissionsReadAttachDatabasesList | undefined;
|
|
239
258
|
}
|
|
240
259
|
/** The permissions for the token. */
|
|
241
260
|
export interface CreateGroupTokenRequestPermissions {
|
|
242
261
|
/** Read `ATTACH` permission for the token. */
|
|
243
|
-
read_attach?: CreateGroupTokenRequestPermissionsReadAttach;
|
|
262
|
+
read_attach?: CreateGroupTokenRequestPermissionsReadAttach | undefined;
|
|
244
263
|
}
|
|
245
264
|
export interface CreateGroupTokenRequest {
|
|
246
265
|
/** The slug of the organization or user account. */
|
|
@@ -248,15 +267,15 @@ export interface CreateGroupTokenRequest {
|
|
|
248
267
|
/** The name of the group. */
|
|
249
268
|
groupName: string;
|
|
250
269
|
/** Expiration time for the token (e.g., 2w1d30m). */
|
|
251
|
-
expiration?: string;
|
|
270
|
+
expiration?: string | undefined;
|
|
252
271
|
/** Authorization level for the token (full-access or read-only). */
|
|
253
|
-
authorization?: CreateGroupTokenRequestAuthorization | (string & {});
|
|
272
|
+
authorization?: CreateGroupTokenRequestAuthorization | (string & {}) | undefined;
|
|
254
273
|
/** The permissions for the token. */
|
|
255
|
-
permissions?: CreateGroupTokenRequestPermissions;
|
|
274
|
+
permissions?: CreateGroupTokenRequestPermissions | undefined;
|
|
256
275
|
}
|
|
257
276
|
export interface CreateGroupTokenResponse {
|
|
258
277
|
/** The generated authorization token (JWT). */
|
|
259
|
-
jwt?: Redacted.Redacted<string
|
|
278
|
+
jwt?: Redacted.Redacted<string> | undefined;
|
|
260
279
|
}
|
|
261
280
|
export interface DeleteDatabaseRequest {
|
|
262
281
|
/** The slug of the organization or user account. */
|
|
@@ -266,7 +285,7 @@ export interface DeleteDatabaseRequest {
|
|
|
266
285
|
}
|
|
267
286
|
export interface DeleteDatabaseResponse {
|
|
268
287
|
/** The name of the database that was deleted. */
|
|
269
|
-
database?: string;
|
|
288
|
+
database?: string | undefined;
|
|
270
289
|
}
|
|
271
290
|
export interface DeleteGroupRequest {
|
|
272
291
|
/** The slug of the organization or user account. */
|
|
@@ -275,7 +294,7 @@ export interface DeleteGroupRequest {
|
|
|
275
294
|
groupName: string;
|
|
276
295
|
}
|
|
277
296
|
export interface DeleteGroupResponse {
|
|
278
|
-
group?: Group;
|
|
297
|
+
group?: Group | undefined;
|
|
279
298
|
}
|
|
280
299
|
export interface DeleteOrganizationInviteByEmailV2Request {
|
|
281
300
|
/** The slug of the organization or user account. */
|
|
@@ -286,22 +305,22 @@ export interface DeleteOrganizationInviteByEmailV2Response {}
|
|
|
286
305
|
export interface GetCurrentUserRequest {}
|
|
287
306
|
export interface GetCurrentUserResponseUser {
|
|
288
307
|
/** The username of the user. */
|
|
289
|
-
username?: string;
|
|
308
|
+
username?: string | undefined;
|
|
290
309
|
/** The display name of the user. */
|
|
291
|
-
name?: string;
|
|
310
|
+
name?: string | undefined;
|
|
292
311
|
/** The primary email address of the user. */
|
|
293
|
-
email?: string;
|
|
312
|
+
email?: string | undefined;
|
|
294
313
|
/** URL to the user's avatar image. */
|
|
295
|
-
avatarUrl?: string;
|
|
314
|
+
avatarUrl?: string | undefined;
|
|
296
315
|
/** The user's current plan. */
|
|
297
|
-
plan?: string;
|
|
316
|
+
plan?: string | undefined;
|
|
298
317
|
/** Whether the user has multi-factor authentication enabled. */
|
|
299
|
-
mfa?: boolean;
|
|
318
|
+
mfa?: boolean | undefined;
|
|
300
319
|
/** Whether the user has pending organization invites waiting to be accepted or declined. */
|
|
301
|
-
has_pending_invites?: boolean;
|
|
320
|
+
has_pending_invites?: boolean | undefined;
|
|
302
321
|
}
|
|
303
322
|
export interface GetCurrentUserResponse {
|
|
304
|
-
user?: GetCurrentUserResponseUser;
|
|
323
|
+
user?: GetCurrentUserResponseUser | undefined;
|
|
305
324
|
}
|
|
306
325
|
export interface GetDatabaseRequest {
|
|
307
326
|
/** The slug of the organization or user account. */
|
|
@@ -313,37 +332,37 @@ export interface GetDatabaseRequest {
|
|
|
313
332
|
export type DatabaseRegionsList = Array<string>;
|
|
314
333
|
export interface DatabaseParent {
|
|
315
334
|
/** The parent database identifier. */
|
|
316
|
-
id?: string;
|
|
335
|
+
id?: string | undefined;
|
|
317
336
|
/** The name of the parent database. */
|
|
318
|
-
name?: string;
|
|
337
|
+
name?: string | undefined;
|
|
319
338
|
/** The timestamp when the database was branched from the parent. */
|
|
320
|
-
branched_at?: string;
|
|
339
|
+
branched_at?: string | undefined;
|
|
321
340
|
}
|
|
322
341
|
export interface Database {
|
|
323
342
|
/** The database name, **unique** across your organization. */
|
|
324
|
-
Name?: string;
|
|
343
|
+
Name?: string | undefined;
|
|
325
344
|
/** The database universal unique identifier (UUID). */
|
|
326
|
-
DbId?: string;
|
|
345
|
+
DbId?: string | undefined;
|
|
327
346
|
/** The DNS hostname used for client libSQL and HTTP connections. */
|
|
328
|
-
Hostname?: string;
|
|
347
|
+
Hostname?: string | undefined;
|
|
329
348
|
/** The current status for blocked reads. */
|
|
330
|
-
block_reads?: boolean;
|
|
349
|
+
block_reads?: boolean | undefined;
|
|
331
350
|
/** The current status for blocked writes. */
|
|
332
|
-
block_writes?: boolean;
|
|
351
|
+
block_writes?: boolean | undefined;
|
|
333
352
|
/** A list of regions for the group the database belongs to. */
|
|
334
|
-
regions?: DatabaseRegionsList;
|
|
353
|
+
regions?: DatabaseRegionsList | undefined;
|
|
335
354
|
/** The primary region location code the group the database belongs to. */
|
|
336
|
-
primaryRegion?: string;
|
|
355
|
+
primaryRegion?: string | undefined;
|
|
337
356
|
/** The name of the group the database belongs to. */
|
|
338
|
-
group?: string;
|
|
357
|
+
group?: string | undefined;
|
|
339
358
|
/** The current status for delete protection. If enabled, the database cannot be deleted. */
|
|
340
|
-
delete_protection?: boolean;
|
|
341
|
-
parent?: DatabaseParent | null;
|
|
359
|
+
delete_protection?: boolean | undefined;
|
|
360
|
+
parent?: DatabaseParent | null | undefined;
|
|
342
361
|
/** Whether other databases may be attached to this database with `ATTACH`. */
|
|
343
|
-
allow_attach?: boolean;
|
|
362
|
+
allow_attach?: boolean | undefined;
|
|
344
363
|
}
|
|
345
364
|
export interface GetDatabaseResponse {
|
|
346
|
-
database?: Database;
|
|
365
|
+
database?: Database | undefined;
|
|
347
366
|
}
|
|
348
367
|
export interface GetDatabaseConfigurationRequest {
|
|
349
368
|
/** The slug of the organization or user account. */
|
|
@@ -357,19 +376,19 @@ export type DatabaseConfigurationResponseAllowedIpsList = Array<string>;
|
|
|
357
376
|
export type DatabaseConfigurationResponseAllowedAwsVpcIdsList = Array<string>;
|
|
358
377
|
export interface DatabaseConfigurationResponse {
|
|
359
378
|
/** The maximum size of the database in bytes. Values with units are also accepted, e.g. 1mb, 256mb, 1gb. */
|
|
360
|
-
size_limit?: string;
|
|
379
|
+
size_limit?: string | undefined;
|
|
361
380
|
/** Allow or disallow attaching databases to the current database. */
|
|
362
|
-
allow_attach?: boolean;
|
|
381
|
+
allow_attach?: boolean | undefined;
|
|
363
382
|
/** The current status for blocked reads. */
|
|
364
|
-
block_reads?: boolean;
|
|
383
|
+
block_reads?: boolean | undefined;
|
|
365
384
|
/** The current status for blocked writes. */
|
|
366
|
-
block_writes?: boolean;
|
|
385
|
+
block_writes?: boolean | undefined;
|
|
367
386
|
/** Prevent the database from being deleted. */
|
|
368
|
-
delete_protection?: boolean;
|
|
387
|
+
delete_protection?: boolean | undefined;
|
|
369
388
|
/** List of allowed IP addresses and CIDR blocks. Empty means no IP restriction. */
|
|
370
|
-
allowed_ips?: DatabaseConfigurationResponseAllowedIpsList;
|
|
389
|
+
allowed_ips?: DatabaseConfigurationResponseAllowedIpsList | undefined;
|
|
371
390
|
/** List of allowed AWS VPC endpoint IDs. Empty means no VPC endpoint restriction. */
|
|
372
|
-
allowed_aws_vpc_ids?: DatabaseConfigurationResponseAllowedAwsVpcIdsList;
|
|
391
|
+
allowed_aws_vpc_ids?: DatabaseConfigurationResponseAllowedAwsVpcIdsList | undefined;
|
|
373
392
|
}
|
|
374
393
|
export interface GetDatabaseInstanceRequest {
|
|
375
394
|
/** The slug of the organization or user account. */
|
|
@@ -383,18 +402,18 @@ export interface GetDatabaseInstanceRequest {
|
|
|
383
402
|
export type InstanceType = "primary" | "replica";
|
|
384
403
|
export interface Instance {
|
|
385
404
|
/** The instance universal unique identifier (UUID). */
|
|
386
|
-
uuid?: string;
|
|
405
|
+
uuid?: string | undefined;
|
|
387
406
|
/** The name of the instance (location code). */
|
|
388
|
-
name?: string;
|
|
407
|
+
name?: string | undefined;
|
|
389
408
|
/** The type of database instance this, will be `primary` or `replica`. */
|
|
390
|
-
type?: InstanceType;
|
|
409
|
+
type?: InstanceType | undefined;
|
|
391
410
|
/** The location code for the region this instance is located. */
|
|
392
|
-
region?: string;
|
|
411
|
+
region?: string | undefined;
|
|
393
412
|
/** The DNS hostname used for client libSQL and HTTP connections (specific to this instance only). */
|
|
394
|
-
hostname?: string;
|
|
413
|
+
hostname?: string | undefined;
|
|
395
414
|
}
|
|
396
415
|
export interface GetDatabaseInstanceResponse {
|
|
397
|
-
instance?: Instance;
|
|
416
|
+
instance?: Instance | undefined;
|
|
398
417
|
}
|
|
399
418
|
export interface GetDatabaseStatsRequest {
|
|
400
419
|
/** The slug of the organization or user account. */
|
|
@@ -404,17 +423,17 @@ export interface GetDatabaseStatsRequest {
|
|
|
404
423
|
}
|
|
405
424
|
export interface DatabaseStatsOutput {
|
|
406
425
|
/** A string representing the SQL query executed. */
|
|
407
|
-
query?: string;
|
|
426
|
+
query?: string | undefined;
|
|
408
427
|
/** An integer indicating the number of rows read by the query, which reflects the volume of data the query processed from the database. */
|
|
409
|
-
rows_read?: number;
|
|
428
|
+
rows_read?: number | undefined;
|
|
410
429
|
/** An integer indicating the number of rows written (inserted, updated, or deleted) by the query, which reflects the impact of the query on the database data. */
|
|
411
|
-
rows_written?: number;
|
|
430
|
+
rows_written?: number | undefined;
|
|
412
431
|
}
|
|
413
432
|
/** The top queries performed on the given database as well as the total rows read and written. */
|
|
414
433
|
export type GetDatabaseStatsResponseTopQueriesList = Array<DatabaseStatsOutput>;
|
|
415
434
|
export interface GetDatabaseStatsResponse {
|
|
416
435
|
/** The top queries performed on the given database as well as the total rows read and written. */
|
|
417
|
-
top_queries?: GetDatabaseStatsResponseTopQueriesList | null;
|
|
436
|
+
top_queries?: GetDatabaseStatsResponseTopQueriesList | null | undefined;
|
|
418
437
|
}
|
|
419
438
|
export interface GetDatabaseUsageRequest {
|
|
420
439
|
/** The slug of the organization or user account. */
|
|
@@ -422,38 +441,38 @@ export interface GetDatabaseUsageRequest {
|
|
|
422
441
|
/** The name of the database. */
|
|
423
442
|
databaseName: string;
|
|
424
443
|
/** The datetime to retrieve usage **from** in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Defaults to the current calendar month if not provided. Example: `2023-01-01T00:00:00Z` */
|
|
425
|
-
from?: string;
|
|
444
|
+
from?: string | undefined;
|
|
426
445
|
/** The datetime to retrieve usage **to** in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Defaults to the current calendar month if not provided. Example: `2023-02-01T00:00:00Z` */
|
|
427
|
-
to?: string;
|
|
446
|
+
to?: string | undefined;
|
|
428
447
|
}
|
|
429
448
|
export interface DatabaseUsageObject {
|
|
430
449
|
/** The total rows read in the time period. */
|
|
431
|
-
rows_read?: number;
|
|
450
|
+
rows_read?: number | undefined;
|
|
432
451
|
/** The total rows written in the time period. */
|
|
433
|
-
rows_written?: number;
|
|
452
|
+
rows_written?: number | undefined;
|
|
434
453
|
/** The total storage used. */
|
|
435
|
-
storage_bytes?: number;
|
|
454
|
+
storage_bytes?: number | undefined;
|
|
436
455
|
/** The total bytes synced. */
|
|
437
|
-
bytes_synced?: number;
|
|
456
|
+
bytes_synced?: number | undefined;
|
|
438
457
|
}
|
|
439
458
|
export interface DatabaseUsageOutputInstancesItem {
|
|
440
459
|
/** The instance universal unique identifier (UUID). */
|
|
441
|
-
uuid?: string;
|
|
460
|
+
uuid?: string | undefined;
|
|
442
461
|
/** The usage for the current database instance. */
|
|
443
|
-
usage?: DatabaseUsageObject;
|
|
462
|
+
usage?: DatabaseUsageObject | undefined;
|
|
444
463
|
}
|
|
445
464
|
/** The usage objects for instances of the current database. */
|
|
446
465
|
export type DatabaseUsageOutputInstancesList = Array<DatabaseUsageOutputInstancesItem>;
|
|
447
466
|
export interface DatabaseUsageOutput {
|
|
448
|
-
uuid?: string;
|
|
467
|
+
uuid?: string | undefined;
|
|
449
468
|
/** The usage objects for instances of the current database. */
|
|
450
|
-
instances?: DatabaseUsageOutputInstancesList;
|
|
469
|
+
instances?: DatabaseUsageOutputInstancesList | undefined;
|
|
451
470
|
/** The total usage for the database. */
|
|
452
|
-
total?: DatabaseUsageObject;
|
|
471
|
+
total?: DatabaseUsageObject | undefined;
|
|
453
472
|
}
|
|
454
473
|
export interface GetDatabaseUsageResponse {
|
|
455
474
|
/** The database usage object, containg the total and individual instance usage for rows read and written, as well as the total storage size (in bytes). */
|
|
456
|
-
database?: DatabaseUsageOutput;
|
|
475
|
+
database?: DatabaseUsageOutput | undefined;
|
|
457
476
|
}
|
|
458
477
|
export interface GetGroupRequest {
|
|
459
478
|
/** The slug of the organization or user account. */
|
|
@@ -462,7 +481,7 @@ export interface GetGroupRequest {
|
|
|
462
481
|
groupName: string;
|
|
463
482
|
}
|
|
464
483
|
export interface GetGroupResponse {
|
|
465
|
-
group?: Group;
|
|
484
|
+
group?: Group | undefined;
|
|
466
485
|
}
|
|
467
486
|
export interface GetGroupConfigurationRequest {
|
|
468
487
|
/** The slug of the organization or user account. */
|
|
@@ -472,7 +491,7 @@ export interface GetGroupConfigurationRequest {
|
|
|
472
491
|
}
|
|
473
492
|
export interface GroupConfigurationResponse {
|
|
474
493
|
/** Prevent the group from being deleted. */
|
|
475
|
-
delete_protection?: boolean;
|
|
494
|
+
delete_protection?: boolean | undefined;
|
|
476
495
|
}
|
|
477
496
|
export interface GetOrganizationRequest {
|
|
478
497
|
/** The slug of the organization or user account. */
|
|
@@ -482,30 +501,30 @@ export interface GetOrganizationRequest {
|
|
|
482
501
|
export type OrganizationType = "personal" | "team";
|
|
483
502
|
export interface Organization {
|
|
484
503
|
/** The organization name. Every user has a `personal` organization for their own account. */
|
|
485
|
-
name?: string;
|
|
504
|
+
name?: string | undefined;
|
|
486
505
|
/** The organization slug. This will be your username for `personal` accounts. */
|
|
487
|
-
slug?: string;
|
|
506
|
+
slug?: string | undefined;
|
|
488
507
|
/** The type of account this organization is. Will always be `personal` or `team`. */
|
|
489
|
-
type?: OrganizationType;
|
|
508
|
+
type?: OrganizationType | undefined;
|
|
490
509
|
/** The name of the organization. Every user has a `personal` organization for their own account. */
|
|
491
|
-
overages?: boolean;
|
|
510
|
+
overages?: boolean | undefined;
|
|
492
511
|
/** Whether all members of the organization are required to have multi-factor authentication enabled. */
|
|
493
|
-
require_mfa?: boolean;
|
|
512
|
+
require_mfa?: boolean | undefined;
|
|
494
513
|
/** Returns the current status for blocked reads. */
|
|
495
|
-
blocked_reads?: boolean;
|
|
514
|
+
blocked_reads?: boolean | undefined;
|
|
496
515
|
/** Returns the current status for blocked writes. */
|
|
497
|
-
blocked_writes?: boolean;
|
|
516
|
+
blocked_writes?: boolean | undefined;
|
|
498
517
|
/** The pricing plan identifier this organization is subscribed to. */
|
|
499
|
-
plan_id?: string;
|
|
518
|
+
plan_id?: string | undefined;
|
|
500
519
|
/** The billing cycle for the paid plan, if any. */
|
|
501
|
-
plan_timeline?: string;
|
|
520
|
+
plan_timeline?: string | undefined;
|
|
502
521
|
/** The external platform this organization is managed by. Will be empty for Turso managed organizations. */
|
|
503
|
-
platform?: string;
|
|
522
|
+
platform?: string | undefined;
|
|
504
523
|
/** Whether deleted database and group recovery is enabled for the organization. Returned when retrieving a single organization. */
|
|
505
|
-
restore_enabled?: boolean;
|
|
524
|
+
restore_enabled?: boolean | undefined;
|
|
506
525
|
}
|
|
507
526
|
export interface GetOrganizationResponse {
|
|
508
|
-
organization?: Organization;
|
|
527
|
+
organization?: Organization | undefined;
|
|
509
528
|
}
|
|
510
529
|
export interface GetOrganizationMemberRequest {
|
|
511
530
|
/** The slug of the organization or user account. */
|
|
@@ -517,14 +536,14 @@ export interface GetOrganizationMemberRequest {
|
|
|
517
536
|
export type MemberRole = "owner" | "admin" | "member" | "viewer";
|
|
518
537
|
export interface Member {
|
|
519
538
|
/** The username for the member. */
|
|
520
|
-
username?: string;
|
|
539
|
+
username?: string | undefined;
|
|
521
540
|
/** The role assigned to the member. */
|
|
522
|
-
role?: MemberRole;
|
|
541
|
+
role?: MemberRole | undefined;
|
|
523
542
|
/** The email for the member. */
|
|
524
|
-
email?: string;
|
|
543
|
+
email?: string | undefined;
|
|
525
544
|
}
|
|
526
545
|
export interface GetOrganizationMemberResponse {
|
|
527
|
-
member?: Member;
|
|
546
|
+
member?: Member | undefined;
|
|
528
547
|
}
|
|
529
548
|
export interface GetOrganizationSubscriptionRequest {
|
|
530
549
|
/** The slug of the organization or user account. */
|
|
@@ -532,16 +551,16 @@ export interface GetOrganizationSubscriptionRequest {
|
|
|
532
551
|
}
|
|
533
552
|
export interface GetOrganizationSubscriptionResponseSubscription {
|
|
534
553
|
/** The name of the plan for the current subscription. */
|
|
535
|
-
name?: string;
|
|
554
|
+
name?: string | undefined;
|
|
536
555
|
/** Whether overages are enabled for the organization. */
|
|
537
|
-
overages?: boolean;
|
|
556
|
+
overages?: boolean | undefined;
|
|
538
557
|
/** The name of the plan for the current subscription. */
|
|
539
|
-
plan?: string;
|
|
558
|
+
plan?: string | undefined;
|
|
540
559
|
/** Whether the plan is billed monthly or yearly. */
|
|
541
|
-
timeline?: string;
|
|
560
|
+
timeline?: string | undefined;
|
|
542
561
|
}
|
|
543
562
|
export interface GetOrganizationSubscriptionResponse {
|
|
544
|
-
subscription?: GetOrganizationSubscriptionResponseSubscription;
|
|
563
|
+
subscription?: GetOrganizationSubscriptionResponseSubscription | undefined;
|
|
545
564
|
}
|
|
546
565
|
export interface GetOrganizationUsageRequest {
|
|
547
566
|
/** The slug of the organization or user account. */
|
|
@@ -550,34 +569,34 @@ export interface GetOrganizationUsageRequest {
|
|
|
550
569
|
/** The usage object for the organization. */
|
|
551
570
|
export interface GetOrganizationUsageResponseOrganizationUsage {
|
|
552
571
|
/** The number of rows read allowed for the specific plan. */
|
|
553
|
-
rows_read?: number;
|
|
572
|
+
rows_read?: number | undefined;
|
|
554
573
|
/** The number of rows written allowed for the specific plan. */
|
|
555
|
-
rows_written?: number;
|
|
574
|
+
rows_written?: number | undefined;
|
|
556
575
|
/** The number of databases allowed for the specific plan. */
|
|
557
|
-
databases?: number;
|
|
576
|
+
databases?: number | undefined;
|
|
558
577
|
/** The number of locations allowed for the specific plan. */
|
|
559
|
-
locations?: number;
|
|
578
|
+
locations?: number | undefined;
|
|
560
579
|
/** The amount of storage allowed for the specific plan, in bytes. */
|
|
561
|
-
storage_bytes?: number;
|
|
580
|
+
storage_bytes?: number | undefined;
|
|
562
581
|
/** The number of groups allowed for the specific plan. */
|
|
563
|
-
groups?: number;
|
|
582
|
+
groups?: number | undefined;
|
|
564
583
|
/** The number of bytes synced allowed for the specific plan, in bytes. */
|
|
565
|
-
bytes_synced?: number;
|
|
584
|
+
bytes_synced?: number | undefined;
|
|
566
585
|
}
|
|
567
586
|
/** The databases for the organization and their usage. */
|
|
568
587
|
export type GetOrganizationUsageResponseOrganizationDatabasesList = Array<DatabaseUsageOutput>;
|
|
569
588
|
/** The organization usage object, containing the total usage for rows read and written, as well as the total storage size (in bytes). */
|
|
570
589
|
export interface GetOrganizationUsageResponseOrganization {
|
|
571
590
|
/** The UUID of the organization. */
|
|
572
|
-
uuid?: string;
|
|
591
|
+
uuid?: string | undefined;
|
|
573
592
|
/** The usage object for the organization. */
|
|
574
|
-
usage?: GetOrganizationUsageResponseOrganizationUsage;
|
|
593
|
+
usage?: GetOrganizationUsageResponseOrganizationUsage | undefined;
|
|
575
594
|
/** The databases for the organization and their usage. */
|
|
576
|
-
databases?: GetOrganizationUsageResponseOrganizationDatabasesList;
|
|
595
|
+
databases?: GetOrganizationUsageResponseOrganizationDatabasesList | undefined;
|
|
577
596
|
}
|
|
578
597
|
export interface GetOrganizationUsageResponse {
|
|
579
598
|
/** The organization usage object, containing the total usage for rows read and written, as well as the total storage size (in bytes). */
|
|
580
|
-
organization?: GetOrganizationUsageResponseOrganization;
|
|
599
|
+
organization?: GetOrganizationUsageResponseOrganization | undefined;
|
|
581
600
|
}
|
|
582
601
|
export interface InvalidateDatabaseTokensRequest {
|
|
583
602
|
/** The slug of the organization or user account. */
|
|
@@ -599,45 +618,45 @@ export interface InviteOrganizationMemberV2Request {
|
|
|
599
618
|
/** The slug of the organization or user account. */
|
|
600
619
|
organizationSlug: string;
|
|
601
620
|
/** The email of the user you want to invite. Exactly one of email or username must be provided. */
|
|
602
|
-
email?: string;
|
|
621
|
+
email?: string | undefined;
|
|
603
622
|
/** The username of an existing Turso user you want to invite. Exactly one of email or username must be provided. */
|
|
604
|
-
username?: string;
|
|
623
|
+
username?: string | undefined;
|
|
605
624
|
/** The role given to the user. */
|
|
606
|
-
role?: InviteOrganizationMemberV2RequestRole | (string & {});
|
|
625
|
+
role?: InviteOrganizationMemberV2RequestRole | (string & {}) | undefined;
|
|
607
626
|
}
|
|
608
627
|
/** The assigned role for the invited user. */
|
|
609
628
|
export type InviteCreatedV2Role = "admin" | "member" | "viewer";
|
|
610
629
|
export interface InviteCreatedV2 {
|
|
611
630
|
/** The email of the person invited. */
|
|
612
|
-
email?: string;
|
|
631
|
+
email?: string | undefined;
|
|
613
632
|
/** The assigned role for the invited user. */
|
|
614
|
-
role?: InviteCreatedV2Role;
|
|
633
|
+
role?: InviteCreatedV2Role | undefined;
|
|
615
634
|
/** The name of the organization the user was invited to. */
|
|
616
|
-
organization?: string;
|
|
635
|
+
organization?: string | undefined;
|
|
617
636
|
}
|
|
618
637
|
export interface InviteOrganizationMemberV2Response {
|
|
619
|
-
invited?: InviteCreatedV2;
|
|
638
|
+
invited?: InviteCreatedV2 | undefined;
|
|
620
639
|
}
|
|
621
640
|
export interface ListAPITokensRequest {}
|
|
622
|
-
/** The expanded list of scopes granted to this token. Present only for
|
|
641
|
+
/** The expanded list of scopes granted to this token. Present only for tokens with scopes. Presets passed at creation time (`read-only`, `full-access`) are stored as the underlying individual scopes and are returned in that form. */
|
|
623
642
|
export type APITokenScopesList = Array<string>;
|
|
624
643
|
export interface APIToken {
|
|
625
644
|
/** The name given to the API Token. */
|
|
626
|
-
name?: string;
|
|
645
|
+
name?: string | undefined;
|
|
627
646
|
/** The ID generated by Turso for the API Token. */
|
|
628
|
-
id?: string;
|
|
647
|
+
id?: string | undefined;
|
|
629
648
|
/** The organization slug this token is restricted to. Omitted if the token has access to all organizations. */
|
|
630
|
-
organization?: string;
|
|
649
|
+
organization?: string | undefined;
|
|
631
650
|
/** The group name this token is pinned to. Present only for group-scoped tokens. */
|
|
632
|
-
group?: string;
|
|
633
|
-
/** The expanded list of scopes granted to this token. Present only for
|
|
634
|
-
scopes?: APITokenScopesList;
|
|
651
|
+
group?: string | undefined;
|
|
652
|
+
/** The expanded list of scopes granted to this token. Present only for tokens with scopes. Presets passed at creation time (`read-only`, `full-access`) are stored as the underlying individual scopes and are returned in that form. */
|
|
653
|
+
scopes?: APITokenScopesList | undefined;
|
|
635
654
|
/** The date the token was created, in `YYYY-MM-DD` format. */
|
|
636
|
-
created_at?: string;
|
|
655
|
+
created_at?: string | undefined;
|
|
637
656
|
}
|
|
638
657
|
export type ListAPITokensResponseTokensList = Array<APIToken>;
|
|
639
658
|
export interface ListAPITokensResponse {
|
|
640
|
-
tokens?: ListAPITokensResponseTokensList;
|
|
659
|
+
tokens?: ListAPITokensResponseTokensList | undefined;
|
|
641
660
|
}
|
|
642
661
|
export interface ListDatabaseInstancesRequest {
|
|
643
662
|
/** The slug of the organization or user account. */
|
|
@@ -647,21 +666,21 @@ export interface ListDatabaseInstancesRequest {
|
|
|
647
666
|
}
|
|
648
667
|
export type ListDatabaseInstancesResponseInstancesList = Array<Instance>;
|
|
649
668
|
export interface ListDatabaseInstancesResponse {
|
|
650
|
-
instances?: ListDatabaseInstancesResponseInstancesList;
|
|
669
|
+
instances?: ListDatabaseInstancesResponseInstancesList | undefined;
|
|
651
670
|
}
|
|
652
671
|
export interface ListDatabasesRequest {
|
|
653
672
|
/** The slug of the organization or user account. */
|
|
654
673
|
organizationSlug: string;
|
|
655
674
|
/** Filter databases by group name. */
|
|
656
|
-
group?: string;
|
|
675
|
+
group?: string | undefined;
|
|
657
676
|
/** The schema database name that can be used to get databases that belong to that parent schema. */
|
|
658
|
-
schema?: string;
|
|
677
|
+
schema?: string | undefined;
|
|
659
678
|
/** Filter database branches by using their parent database ID. */
|
|
660
|
-
parent?: string;
|
|
679
|
+
parent?: string | undefined;
|
|
661
680
|
}
|
|
662
681
|
export type ListDatabasesResponseDatabasesList = Array<Database>;
|
|
663
682
|
export interface ListDatabasesResponse {
|
|
664
|
-
databases?: ListDatabasesResponseDatabasesList;
|
|
683
|
+
databases?: ListDatabasesResponseDatabasesList | undefined;
|
|
665
684
|
}
|
|
666
685
|
export interface ListDeletedDatabasesRequest {
|
|
667
686
|
/** The UUID of the organization. Retrieve it with the Retrieve Organization endpoint (the `id` field). */
|
|
@@ -669,69 +688,69 @@ export interface ListDeletedDatabasesRequest {
|
|
|
669
688
|
/** Must be `true` to list deleted databases. */
|
|
670
689
|
deleted: boolean;
|
|
671
690
|
/** Filter deleted databases by name. */
|
|
672
|
-
search?: string;
|
|
691
|
+
search?: string | undefined;
|
|
673
692
|
/** Page size, from 1 to 1000. */
|
|
674
|
-
limit?: number;
|
|
693
|
+
limit?: number | undefined;
|
|
675
694
|
/** Opaque pagination cursor from the previous page's `pagination.next`. */
|
|
676
|
-
cursor?: string;
|
|
695
|
+
cursor?: string | undefined;
|
|
677
696
|
}
|
|
678
697
|
/** The regions the database was located in. */
|
|
679
698
|
export type DeletedDatabaseRegionsList = Array<string>;
|
|
680
699
|
export interface DeletedDatabase {
|
|
681
700
|
/** The database name. */
|
|
682
|
-
Name?: string;
|
|
701
|
+
Name?: string | undefined;
|
|
683
702
|
/** The database UUID. Use it to restore the database. */
|
|
684
|
-
DbId?: string;
|
|
703
|
+
DbId?: string | undefined;
|
|
685
704
|
/** The DNS hostname the database had, used for client and HTTP connections. */
|
|
686
|
-
Hostname?: string;
|
|
705
|
+
Hostname?: string | undefined;
|
|
687
706
|
/** The name of the group the database belonged to. */
|
|
688
|
-
group?: string;
|
|
707
|
+
group?: string | undefined;
|
|
689
708
|
/** The UUID of the group the database belonged to. */
|
|
690
|
-
group_id?: string;
|
|
709
|
+
group_id?: string | undefined;
|
|
691
710
|
/** The UUID of the organization. */
|
|
692
|
-
organization_id?: string;
|
|
711
|
+
organization_id?: string | undefined;
|
|
693
712
|
/** The regions the database was located in. */
|
|
694
|
-
regions?: DeletedDatabaseRegionsList;
|
|
713
|
+
regions?: DeletedDatabaseRegionsList | undefined;
|
|
695
714
|
/** The primary region of the database. */
|
|
696
|
-
primaryRegion?: string;
|
|
715
|
+
primaryRegion?: string | undefined;
|
|
697
716
|
/** Whether delete protection was enabled for the database. */
|
|
698
|
-
delete_protection?: boolean;
|
|
717
|
+
delete_protection?: boolean | undefined;
|
|
699
718
|
/** When the database was deleted. */
|
|
700
|
-
deleted_at?: string;
|
|
719
|
+
deleted_at?: string | undefined;
|
|
701
720
|
/** Set when the database's group was deleted with it. Restoring the database also restores the group. */
|
|
702
|
-
group_deleted_at?: string;
|
|
721
|
+
group_deleted_at?: string | undefined;
|
|
703
722
|
}
|
|
704
723
|
export type ListDeletedDatabasesResponseDatabasesList = Array<DeletedDatabase>;
|
|
705
724
|
export interface Pagination {
|
|
706
725
|
/** Opaque cursor for the next page. Pass it back as the `cursor` query parameter. Absent on the last page. */
|
|
707
|
-
next?: string;
|
|
726
|
+
next?: string | undefined;
|
|
708
727
|
}
|
|
709
728
|
export interface ListDeletedDatabasesResponse {
|
|
710
|
-
databases?: ListDeletedDatabasesResponseDatabasesList;
|
|
711
|
-
pagination?: Pagination;
|
|
729
|
+
databases?: ListDeletedDatabasesResponseDatabasesList | undefined;
|
|
730
|
+
pagination?: Pagination | undefined;
|
|
712
731
|
}
|
|
713
732
|
export interface ListDeletedGroupsRequest {
|
|
714
733
|
/** The UUID of the organization. Retrieve it with the Retrieve Organization endpoint (the `id` field). */
|
|
715
734
|
organizationId: string;
|
|
716
735
|
/** Page size, from 1 to 1000. */
|
|
717
|
-
limit?: number;
|
|
736
|
+
limit?: number | undefined;
|
|
718
737
|
/** Opaque pagination cursor from the previous page's `pagination.next`. */
|
|
719
|
-
cursor?: string;
|
|
738
|
+
cursor?: string | undefined;
|
|
720
739
|
}
|
|
721
740
|
export interface DeletedGroup {
|
|
722
741
|
/** The group UUID. Use it to restore the group. */
|
|
723
|
-
uuid?: string;
|
|
742
|
+
uuid?: string | undefined;
|
|
724
743
|
/** The group name. */
|
|
725
|
-
name?: string;
|
|
744
|
+
name?: string | undefined;
|
|
726
745
|
/** When the group was deleted. */
|
|
727
|
-
deleted_at?: string;
|
|
746
|
+
deleted_at?: string | undefined;
|
|
728
747
|
/** The number of member databases that restoring the group would bring back with it. */
|
|
729
|
-
cascade_databases?: number;
|
|
748
|
+
cascade_databases?: number | undefined;
|
|
730
749
|
}
|
|
731
750
|
export type ListDeletedGroupsResponseGroupsList = Array<DeletedGroup>;
|
|
732
751
|
export interface ListDeletedGroupsResponse {
|
|
733
|
-
groups?: ListDeletedGroupsResponseGroupsList;
|
|
734
|
-
pagination?: Pagination;
|
|
752
|
+
groups?: ListDeletedGroupsResponseGroupsList | undefined;
|
|
753
|
+
pagination?: Pagination | undefined;
|
|
735
754
|
}
|
|
736
755
|
export interface ListGroupsRequest {
|
|
737
756
|
/** The slug of the organization or user account. */
|
|
@@ -739,54 +758,54 @@ export interface ListGroupsRequest {
|
|
|
739
758
|
}
|
|
740
759
|
export type ListGroupsResponseGroupsList = Array<Group>;
|
|
741
760
|
export interface ListGroupsResponse {
|
|
742
|
-
groups?: ListGroupsResponseGroupsList;
|
|
761
|
+
groups?: ListGroupsResponseGroupsList | undefined;
|
|
743
762
|
}
|
|
744
763
|
export interface ListLocationsRequest {}
|
|
745
764
|
/** A mapping of location codes to location names. */
|
|
746
765
|
export type ListLocationsResponseLocationsMap = { [key: string]: string | undefined };
|
|
747
766
|
export interface ListLocationsResponse {
|
|
748
767
|
/** A mapping of location codes to location names. */
|
|
749
|
-
locations?: ListLocationsResponseLocationsMap;
|
|
768
|
+
locations?: ListLocationsResponseLocationsMap | undefined;
|
|
750
769
|
}
|
|
751
770
|
export interface ListOrganizationAPITokensRequest {
|
|
752
771
|
/** The slug of the organization or user account. */
|
|
753
772
|
organizationSlug: string;
|
|
754
773
|
}
|
|
755
|
-
/** The expanded scope list. Present only for
|
|
774
|
+
/** The expanded scope list. Present only for tokens with scopes. */
|
|
756
775
|
export type ListOrganizationAPITokensResponseTokensItemScopesList = Array<string>;
|
|
757
776
|
/** The user who minted the token. Returned to admins and owners so they can see who provisioned each token. */
|
|
758
777
|
export interface ListOrganizationAPITokensResponseTokensItemOwner {
|
|
759
|
-
username?: string;
|
|
760
|
-
email?: string;
|
|
778
|
+
username?: string | undefined;
|
|
779
|
+
email?: string | undefined;
|
|
761
780
|
}
|
|
762
781
|
export interface ListOrganizationAPITokensResponseTokensItem {
|
|
763
782
|
/** The token name. */
|
|
764
|
-
name?: string;
|
|
783
|
+
name?: string | undefined;
|
|
765
784
|
/** The token ID. Pass this to the revoke endpoint. */
|
|
766
|
-
id?: string;
|
|
785
|
+
id?: string | undefined;
|
|
767
786
|
/** The organization slug. Always equal to the path parameter for tokens returned here. */
|
|
768
|
-
organization?: string;
|
|
787
|
+
organization?: string | undefined;
|
|
769
788
|
/** The group name. Present only for group-scoped tokens. */
|
|
770
|
-
group?: string;
|
|
771
|
-
/** The expanded scope list. Present only for
|
|
772
|
-
scopes?: ListOrganizationAPITokensResponseTokensItemScopesList;
|
|
789
|
+
group?: string | undefined;
|
|
790
|
+
/** The expanded scope list. Present only for tokens with scopes. */
|
|
791
|
+
scopes?: ListOrganizationAPITokensResponseTokensItemScopesList | undefined;
|
|
773
792
|
/** The user who minted the token. Returned to admins and owners so they can see who provisioned each token. */
|
|
774
|
-
owner?: ListOrganizationAPITokensResponseTokensItemOwner;
|
|
793
|
+
owner?: ListOrganizationAPITokensResponseTokensItemOwner | undefined;
|
|
775
794
|
/** The date the token was created. */
|
|
776
|
-
created_at?: string;
|
|
795
|
+
created_at?: string | undefined;
|
|
777
796
|
}
|
|
778
797
|
export type ListOrganizationAPITokensResponseTokensList =
|
|
779
798
|
Array<ListOrganizationAPITokensResponseTokensItem>;
|
|
780
799
|
export interface ListOrganizationAPITokensResponse {
|
|
781
|
-
tokens?: ListOrganizationAPITokensResponseTokensList;
|
|
800
|
+
tokens?: ListOrganizationAPITokensResponseTokensList | undefined;
|
|
782
801
|
}
|
|
783
802
|
export interface ListOrganizationAuditLogsRequest {
|
|
784
803
|
/** The slug of the organization or user account. */
|
|
785
804
|
organizationSlug: string;
|
|
786
805
|
/** The limit of items to return per page. Defaults to 100. */
|
|
787
|
-
page_size?: number;
|
|
806
|
+
page_size?: number | undefined;
|
|
788
807
|
/** The page number to return. Defaults to 1. */
|
|
789
|
-
page?: number;
|
|
808
|
+
page?: number | undefined;
|
|
790
809
|
}
|
|
791
810
|
/** The code associated to the action taken. */
|
|
792
811
|
export type AuditLogCode =
|
|
@@ -816,32 +835,32 @@ export type AuditLogCode =
|
|
|
816
835
|
| "user-delete";
|
|
817
836
|
export interface AuditLog {
|
|
818
837
|
/** The code associated to the action taken. */
|
|
819
|
-
code?: AuditLogCode;
|
|
838
|
+
code?: AuditLogCode | undefined;
|
|
820
839
|
/** Additional context from the performed action. */
|
|
821
|
-
message?: string;
|
|
840
|
+
message?: string | undefined;
|
|
822
841
|
/** Where this action was performed. Will be either `cli` or `web` depending on the `User-Agent` sent to the API. */
|
|
823
|
-
origin?: string;
|
|
842
|
+
origin?: string | undefined;
|
|
824
843
|
/** The username of the user who performed the action. */
|
|
825
|
-
author?: string;
|
|
844
|
+
author?: string | undefined;
|
|
826
845
|
/** A formatted [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp this action was performed. */
|
|
827
|
-
created_at?: string;
|
|
846
|
+
created_at?: string | undefined;
|
|
828
847
|
/** The payload of the action performed. */
|
|
829
|
-
data?: unknown;
|
|
848
|
+
data?: unknown | undefined;
|
|
830
849
|
}
|
|
831
850
|
export type ListOrganizationAuditLogsResponseAuditLogsList = Array<AuditLog>;
|
|
832
851
|
export interface ListOrganizationAuditLogsResponsePagination {
|
|
833
852
|
/** The current page number. */
|
|
834
|
-
page?: number;
|
|
853
|
+
page?: number | undefined;
|
|
835
854
|
/** The number of items per page. */
|
|
836
|
-
page_size?: number;
|
|
855
|
+
page_size?: number | undefined;
|
|
837
856
|
/** The total number of pages. */
|
|
838
|
-
total_pages?: number;
|
|
857
|
+
total_pages?: number | undefined;
|
|
839
858
|
/** The total number of items. */
|
|
840
|
-
total_rows?: number;
|
|
859
|
+
total_rows?: number | undefined;
|
|
841
860
|
}
|
|
842
861
|
export interface ListOrganizationAuditLogsResponse {
|
|
843
|
-
audit_logs?: ListOrganizationAuditLogsResponseAuditLogsList;
|
|
844
|
-
pagination?: ListOrganizationAuditLogsResponsePagination;
|
|
862
|
+
audit_logs?: ListOrganizationAuditLogsResponseAuditLogsList | undefined;
|
|
863
|
+
pagination?: ListOrganizationAuditLogsResponsePagination | undefined;
|
|
845
864
|
}
|
|
846
865
|
export interface ListOrganizationInvitesV2Request {
|
|
847
866
|
/** The slug of the organization or user account. */
|
|
@@ -851,45 +870,45 @@ export interface ListOrganizationInvitesV2Request {
|
|
|
851
870
|
export type InviteV2Role = "admin" | "member" | "viewer";
|
|
852
871
|
export interface InviteV2 {
|
|
853
872
|
/** The unique ID for the invite. */
|
|
854
|
-
id?: number;
|
|
873
|
+
id?: number | undefined;
|
|
855
874
|
/** The email of the person invited. */
|
|
856
|
-
email?: string;
|
|
875
|
+
email?: string | undefined;
|
|
857
876
|
/** The assigned role for the invited user. */
|
|
858
|
-
role?: InviteV2Role;
|
|
877
|
+
role?: InviteV2Role | undefined;
|
|
859
878
|
/** The datetime the invite was created in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. */
|
|
860
|
-
created_at?: string;
|
|
879
|
+
created_at?: string | undefined;
|
|
861
880
|
}
|
|
862
881
|
export type ListOrganizationInvitesV2ResponseInvitesList = Array<InviteV2>;
|
|
863
882
|
export interface ListOrganizationInvitesV2Response {
|
|
864
|
-
invites?: ListOrganizationInvitesV2ResponseInvitesList;
|
|
883
|
+
invites?: ListOrganizationInvitesV2ResponseInvitesList | undefined;
|
|
865
884
|
}
|
|
866
885
|
export type ListOrganizationInvoicesRequestType = "all" | "upcoming" | "issued";
|
|
867
886
|
export interface ListOrganizationInvoicesRequest {
|
|
868
887
|
/** The slug of the organization or user account. */
|
|
869
888
|
organizationSlug: string;
|
|
870
889
|
/** The type of invoice to retrieve. */
|
|
871
|
-
type?: ListOrganizationInvoicesRequestType | (string & {});
|
|
890
|
+
type?: ListOrganizationInvoicesRequestType | (string & {}) | undefined;
|
|
872
891
|
}
|
|
873
892
|
export interface ListOrganizationInvoicesResponseInvoicesItem {
|
|
874
893
|
/** The unique ID for the invoice. */
|
|
875
|
-
invoice_number?: string;
|
|
894
|
+
invoice_number?: string | undefined;
|
|
876
895
|
/** The formatted price in USD for the invoice. */
|
|
877
|
-
amount_due?: string;
|
|
896
|
+
amount_due?: string | undefined;
|
|
878
897
|
/** The due date for the invoice. */
|
|
879
|
-
due_date?: string;
|
|
898
|
+
due_date?: string | undefined;
|
|
880
899
|
/** The date the invoice was paid. */
|
|
881
|
-
paid_at?: string;
|
|
900
|
+
paid_at?: string | undefined;
|
|
882
901
|
/** The date the invoice payment last failed. */
|
|
883
|
-
payment_failed_at?: string;
|
|
902
|
+
payment_failed_at?: string | undefined;
|
|
884
903
|
/** The link to the invoice PDF you can download. */
|
|
885
|
-
invoice_pdf?: string;
|
|
904
|
+
invoice_pdf?: string | undefined;
|
|
886
905
|
}
|
|
887
906
|
/** The list of invoices for the organization. */
|
|
888
907
|
export type ListOrganizationInvoicesResponseInvoicesList =
|
|
889
908
|
Array<ListOrganizationInvoicesResponseInvoicesItem>;
|
|
890
909
|
export interface ListOrganizationInvoicesResponse {
|
|
891
910
|
/** The list of invoices for the organization. */
|
|
892
|
-
invoices?: ListOrganizationInvoicesResponseInvoicesList;
|
|
911
|
+
invoices?: ListOrganizationInvoicesResponseInvoicesList | undefined;
|
|
893
912
|
}
|
|
894
913
|
export interface ListOrganizationMembersRequest {
|
|
895
914
|
/** The slug of the organization or user account. */
|
|
@@ -897,7 +916,7 @@ export interface ListOrganizationMembersRequest {
|
|
|
897
916
|
}
|
|
898
917
|
export type ListOrganizationMembersResponseMembersList = Array<Member>;
|
|
899
918
|
export interface ListOrganizationMembersResponse {
|
|
900
|
-
members?: ListOrganizationMembersResponseMembersList;
|
|
919
|
+
members?: ListOrganizationMembersResponseMembersList | undefined;
|
|
901
920
|
}
|
|
902
921
|
export interface ListOrganizationPlansRequest {
|
|
903
922
|
/** The slug of the organization or user account. */
|
|
@@ -905,40 +924,40 @@ export interface ListOrganizationPlansRequest {
|
|
|
905
924
|
}
|
|
906
925
|
export interface PlanPrice {
|
|
907
926
|
/** Price of the available plan. */
|
|
908
|
-
value?: string;
|
|
927
|
+
value?: string | undefined;
|
|
909
928
|
/** Payment regularity. */
|
|
910
|
-
timeline?: string;
|
|
929
|
+
timeline?: string | undefined;
|
|
911
930
|
}
|
|
912
931
|
export type OrganizationPlanPricesList = Array<PlanPrice>;
|
|
913
932
|
export interface PlanQuotas {
|
|
914
933
|
/** The number of rows read allowed for the specific plan. */
|
|
915
|
-
rowsRead?: number;
|
|
934
|
+
rowsRead?: number | undefined;
|
|
916
935
|
/** The number of rows written allowed for the specific plan. */
|
|
917
|
-
rowsWritten?: number;
|
|
936
|
+
rowsWritten?: number | undefined;
|
|
918
937
|
/** The number of databases allowed for the specific plan. */
|
|
919
|
-
databases?: number | null;
|
|
938
|
+
databases?: number | null | undefined;
|
|
920
939
|
/** The number of locations allowed for the specific plan. */
|
|
921
|
-
locations?: number;
|
|
940
|
+
locations?: number | undefined;
|
|
922
941
|
/** The amount of storage allowed for the specific plan, in bytes. */
|
|
923
|
-
storage?: number;
|
|
942
|
+
storage?: number | undefined;
|
|
924
943
|
/** The number of groups allowed for the specific plan. */
|
|
925
|
-
groups?: number;
|
|
944
|
+
groups?: number | undefined;
|
|
926
945
|
/** The number of bytes synced allowed for the specific plan, in bytes. */
|
|
927
|
-
bytesSynced?: number;
|
|
946
|
+
bytesSynced?: number | undefined;
|
|
928
947
|
}
|
|
929
948
|
export interface OrganizationPlan {
|
|
930
949
|
/** The name of the plan. */
|
|
931
|
-
name?: string;
|
|
950
|
+
name?: string | undefined;
|
|
932
951
|
/** The monthly price of the plan. */
|
|
933
|
-
price?: string;
|
|
934
|
-
prices?: OrganizationPlanPricesList;
|
|
935
|
-
quotas?: PlanQuotas;
|
|
952
|
+
price?: string | undefined;
|
|
953
|
+
prices?: OrganizationPlanPricesList | undefined;
|
|
954
|
+
quotas?: PlanQuotas | undefined;
|
|
936
955
|
}
|
|
937
956
|
/** List of available plans. */
|
|
938
957
|
export type ListOrganizationPlansResponsePlansList = Array<OrganizationPlan>;
|
|
939
958
|
export interface ListOrganizationPlansResponse {
|
|
940
959
|
/** List of available plans. */
|
|
941
|
-
plans?: ListOrganizationPlansResponsePlansList;
|
|
960
|
+
plans?: ListOrganizationPlansResponsePlansList | undefined;
|
|
942
961
|
}
|
|
943
962
|
export interface ListOrganizationsRequest {}
|
|
944
963
|
export type ListOrganizationsResponseBodyList = Array<Organization>;
|
|
@@ -953,7 +972,7 @@ export interface RemoveLocationFromGroupRequest {
|
|
|
953
972
|
}
|
|
954
973
|
export interface RemoveLocationFromGroupResponse {
|
|
955
974
|
/** The group with the removed location */
|
|
956
|
-
group?: Group;
|
|
975
|
+
group?: Group | undefined;
|
|
957
976
|
}
|
|
958
977
|
export interface RemoveOrganizationMemberRequest {
|
|
959
978
|
/** The slug of the organization or user account. */
|
|
@@ -962,7 +981,7 @@ export interface RemoveOrganizationMemberRequest {
|
|
|
962
981
|
username: string;
|
|
963
982
|
}
|
|
964
983
|
export interface RemoveOrganizationMemberResponse {
|
|
965
|
-
member?: string;
|
|
984
|
+
member?: string | undefined;
|
|
966
985
|
}
|
|
967
986
|
export interface RestoreDatabaseRequest {
|
|
968
987
|
/** The UUID of the organization. Retrieve it with the Retrieve Organization endpoint (the `id` field). */
|
|
@@ -970,11 +989,11 @@ export interface RestoreDatabaseRequest {
|
|
|
970
989
|
/** The UUID of the database, as returned when listing deleted databases (the `DbId` field). */
|
|
971
990
|
databaseId: string;
|
|
972
991
|
/** Optional new name for the restored database. If omitted, the original name is reused. The hostname is re-derived from the name. */
|
|
973
|
-
name?: string;
|
|
992
|
+
name?: string | undefined;
|
|
974
993
|
}
|
|
975
994
|
export interface RestoreDatabaseResponse {
|
|
976
995
|
/** The restored database. */
|
|
977
|
-
database?: DeletedDatabase;
|
|
996
|
+
database?: DeletedDatabase | undefined;
|
|
978
997
|
}
|
|
979
998
|
export interface RestoreGroupRequest {
|
|
980
999
|
/** The UUID of the organization. Retrieve it with the Retrieve Organization endpoint (the `id` field). */
|
|
@@ -988,11 +1007,11 @@ export type RestoreGroupResponseDatabasesList = Array<DeletedDatabase>;
|
|
|
988
1007
|
export type RestoreGroupResponseFailuresMap = { [key: string]: string | undefined };
|
|
989
1008
|
export interface RestoreGroupResponse {
|
|
990
1009
|
/** The restored group. */
|
|
991
|
-
group?: Group;
|
|
1010
|
+
group?: Group | undefined;
|
|
992
1011
|
/** The member databases restored with the group, in restore order. */
|
|
993
|
-
databases?: RestoreGroupResponseDatabasesList;
|
|
1012
|
+
databases?: RestoreGroupResponseDatabasesList | undefined;
|
|
994
1013
|
/** Maps database UUID to error message for members whose restore failed. Retry them individually with Restore Database. */
|
|
995
|
-
failures?: RestoreGroupResponseFailuresMap;
|
|
1014
|
+
failures?: RestoreGroupResponseFailuresMap | undefined;
|
|
996
1015
|
}
|
|
997
1016
|
export interface RevokeAPITokenRequest {
|
|
998
1017
|
/** The name of the api token. */
|
|
@@ -1000,7 +1019,7 @@ export interface RevokeAPITokenRequest {
|
|
|
1000
1019
|
}
|
|
1001
1020
|
export interface RevokeAPITokenResponse {
|
|
1002
1021
|
/** The revoked token name. */
|
|
1003
|
-
token?: string;
|
|
1022
|
+
token?: string | undefined;
|
|
1004
1023
|
}
|
|
1005
1024
|
export interface RevokeOrganizationAPITokenRequest {
|
|
1006
1025
|
/** The slug of the organization or user account. */
|
|
@@ -1010,7 +1029,7 @@ export interface RevokeOrganizationAPITokenRequest {
|
|
|
1010
1029
|
}
|
|
1011
1030
|
export interface RevokeOrganizationAPITokenResponse {
|
|
1012
1031
|
/** The ID of the revoked token. */
|
|
1013
|
-
token?: string;
|
|
1032
|
+
token?: string | undefined;
|
|
1014
1033
|
}
|
|
1015
1034
|
export interface TransferGroupRequest {
|
|
1016
1035
|
/** The slug of the organization or user account. */
|
|
@@ -1018,23 +1037,23 @@ export interface TransferGroupRequest {
|
|
|
1018
1037
|
/** The name of the group. */
|
|
1019
1038
|
groupName: string;
|
|
1020
1039
|
/** The slug of the organization to transfer the group to. */
|
|
1021
|
-
organization?: string;
|
|
1040
|
+
organization?: string | undefined;
|
|
1022
1041
|
}
|
|
1023
1042
|
/** An array of location keys the group is located. */
|
|
1024
1043
|
export type TransferGroupResponseLocationsList = Array<string>;
|
|
1025
1044
|
export interface TransferGroupResponse {
|
|
1026
1045
|
/** The group name, unique across your organization. */
|
|
1027
|
-
name?: string;
|
|
1046
|
+
name?: string | undefined;
|
|
1028
1047
|
/** The current libSQL server version the databases in that group are running. */
|
|
1029
|
-
version?: string;
|
|
1048
|
+
version?: string | undefined;
|
|
1030
1049
|
/** The group universal unique identifier (UUID). */
|
|
1031
|
-
uuid?: string;
|
|
1050
|
+
uuid?: string | undefined;
|
|
1032
1051
|
/** An array of location keys the group is located. */
|
|
1033
|
-
locations?: TransferGroupResponseLocationsList;
|
|
1052
|
+
locations?: TransferGroupResponseLocationsList | undefined;
|
|
1034
1053
|
/** The primary location key. */
|
|
1035
|
-
primary?: string;
|
|
1054
|
+
primary?: string | undefined;
|
|
1036
1055
|
/** The current status for delete protection. If enabled, the group and all its databases cannot be deleted. */
|
|
1037
|
-
delete_protection?: boolean;
|
|
1056
|
+
delete_protection?: boolean | undefined;
|
|
1038
1057
|
}
|
|
1039
1058
|
export interface UnarchiveGroupRequest {
|
|
1040
1059
|
/** The slug of the organization or user account. */
|
|
@@ -1044,7 +1063,7 @@ export interface UnarchiveGroupRequest {
|
|
|
1044
1063
|
}
|
|
1045
1064
|
export interface UnarchiveGroupResponse {
|
|
1046
1065
|
/** The group that was unarchived */
|
|
1047
|
-
group?: Group;
|
|
1066
|
+
group?: Group | undefined;
|
|
1048
1067
|
}
|
|
1049
1068
|
/** List of allowed IP addresses and CIDR blocks. Only connections from these sources are accepted. Pass an empty array to clear the list. Omit to leave unchanged. */
|
|
1050
1069
|
export type UpdateDatabaseConfigurationRequestAllowedIpsList = Array<string>;
|
|
@@ -1056,19 +1075,19 @@ export interface UpdateDatabaseConfigurationRequest {
|
|
|
1056
1075
|
/** The name of the database. */
|
|
1057
1076
|
databaseName: string;
|
|
1058
1077
|
/** The maximum size of the database in bytes. Values with units are also accepted, e.g. 1mb, 256mb, 1gb. */
|
|
1059
|
-
size_limit?: string;
|
|
1078
|
+
size_limit?: string | undefined;
|
|
1060
1079
|
/** Allow or disallow attaching databases to the current database. */
|
|
1061
|
-
allow_attach?: boolean;
|
|
1080
|
+
allow_attach?: boolean | undefined;
|
|
1062
1081
|
/** Block all database reads. */
|
|
1063
|
-
block_reads?: boolean;
|
|
1082
|
+
block_reads?: boolean | undefined;
|
|
1064
1083
|
/** Block all database writes. */
|
|
1065
|
-
block_writes?: boolean;
|
|
1084
|
+
block_writes?: boolean | undefined;
|
|
1066
1085
|
/** Prevent the database from being deleted. */
|
|
1067
|
-
delete_protection?: boolean;
|
|
1086
|
+
delete_protection?: boolean | undefined;
|
|
1068
1087
|
/** List of allowed IP addresses and CIDR blocks. Only connections from these sources are accepted. Pass an empty array to clear the list. Omit to leave unchanged. */
|
|
1069
|
-
allowed_ips?: UpdateDatabaseConfigurationRequestAllowedIpsList;
|
|
1088
|
+
allowed_ips?: UpdateDatabaseConfigurationRequestAllowedIpsList | undefined;
|
|
1070
1089
|
/** List of allowed AWS VPC endpoint IDs (vpce-...). Only connections arriving through these endpoints are accepted. Pass an empty array to clear the list. Omit to leave unchanged. */
|
|
1071
|
-
allowed_aws_vpc_ids?: UpdateDatabaseConfigurationRequestAllowedAwsVpcIdsList;
|
|
1090
|
+
allowed_aws_vpc_ids?: UpdateDatabaseConfigurationRequestAllowedAwsVpcIdsList | undefined;
|
|
1072
1091
|
}
|
|
1073
1092
|
export interface UpdateGroupConfigurationRequest {
|
|
1074
1093
|
/** The slug of the organization or user account. */
|
|
@@ -1076,7 +1095,7 @@ export interface UpdateGroupConfigurationRequest {
|
|
|
1076
1095
|
/** The name of the group. */
|
|
1077
1096
|
groupName: string;
|
|
1078
1097
|
/** Prevent the group from being deleted. */
|
|
1079
|
-
delete_protection?: boolean;
|
|
1098
|
+
delete_protection?: boolean | undefined;
|
|
1080
1099
|
}
|
|
1081
1100
|
export interface UpdateGroupDatabasesRequest {
|
|
1082
1101
|
/** The slug of the organization or user account. */
|
|
@@ -1099,33 +1118,33 @@ export interface UpdateMemberRoleRequest {
|
|
|
1099
1118
|
export type UpdateMemberRoleResponseMemberRole = "admin" | "member" | "viewer";
|
|
1100
1119
|
export interface UpdateMemberRoleResponseMember {
|
|
1101
1120
|
/** The username of the updated member. */
|
|
1102
|
-
username?: string;
|
|
1121
|
+
username?: string | undefined;
|
|
1103
1122
|
/** The email of the updated member. */
|
|
1104
|
-
email?: string;
|
|
1123
|
+
email?: string | undefined;
|
|
1105
1124
|
/** The new role of the updated member. */
|
|
1106
|
-
role?: UpdateMemberRoleResponseMemberRole;
|
|
1125
|
+
role?: UpdateMemberRoleResponseMemberRole | undefined;
|
|
1107
1126
|
}
|
|
1108
1127
|
export interface UpdateMemberRoleResponse {
|
|
1109
|
-
member?: UpdateMemberRoleResponseMember;
|
|
1128
|
+
member?: UpdateMemberRoleResponseMember | undefined;
|
|
1110
1129
|
}
|
|
1111
1130
|
export interface UpdateOrganizationRequest {
|
|
1112
1131
|
/** The slug of the organization or user account. */
|
|
1113
1132
|
organizationSlug: string;
|
|
1114
1133
|
/** Enable or disable overages for the organization. */
|
|
1115
|
-
overages?: boolean;
|
|
1134
|
+
overages?: boolean | undefined;
|
|
1116
1135
|
/** Require all members of the organization to have multi-factor authentication enabled. The requesting user must have MFA enabled on their own account before enabling this requirement. */
|
|
1117
|
-
require_mfa?: boolean;
|
|
1136
|
+
require_mfa?: boolean | undefined;
|
|
1118
1137
|
/** Enable or disable deleted database and group recovery for the organization. Must be updated separately from other organization settings. Requires an admin or owner. */
|
|
1119
|
-
restore_enabled?: boolean;
|
|
1138
|
+
restore_enabled?: boolean | undefined;
|
|
1120
1139
|
}
|
|
1121
1140
|
export interface UpdateOrganizationResponse {
|
|
1122
1141
|
/** The updated organization. */
|
|
1123
|
-
organization?: Organization;
|
|
1142
|
+
organization?: Organization | undefined;
|
|
1124
1143
|
}
|
|
1125
1144
|
export interface ValidateAPITokenRequest {}
|
|
1126
1145
|
export interface ValidateAPITokenResponse {
|
|
1127
1146
|
/** The time of expiration for the provided token in unix epoch seconds, or `-1` if there is no expiration. */
|
|
1128
|
-
exp?: number;
|
|
1147
|
+
exp?: number | undefined;
|
|
1129
1148
|
}
|
|
1130
1149
|
export type AddLocationToGroupError = BadRequest | NotFound | TursoOpError;
|
|
1131
1150
|
/** Add Location to Group Adds a location to the specified group. */
|
|
@@ -1140,6 +1159,8 @@ export const addLocationToGroup: API.OperationMethod<
|
|
|
1140
1159
|
errors: [BadRequest, NotFound],
|
|
1141
1160
|
protocol: TursoProtocol,
|
|
1142
1161
|
retry: Retry.Retry,
|
|
1162
|
+
telemetry: TELEMETRY,
|
|
1163
|
+
span: "AddLocationToGroup",
|
|
1143
1164
|
}));
|
|
1144
1165
|
|
|
1145
1166
|
export type AddOrganizationMemberError = BadRequest | NotFound | Conflict | TursoOpError;
|
|
@@ -1155,10 +1176,12 @@ export const addOrganizationMember: API.OperationMethod<
|
|
|
1155
1176
|
errors: [BadRequest, NotFound, Conflict],
|
|
1156
1177
|
protocol: TursoProtocol,
|
|
1157
1178
|
retry: Retry.Retry,
|
|
1179
|
+
telemetry: TELEMETRY,
|
|
1180
|
+
span: "AddOrganizationMember",
|
|
1158
1181
|
}));
|
|
1159
1182
|
|
|
1160
1183
|
export type CreateAPITokenError = BadRequest | NotFound | Conflict | TursoOpError;
|
|
1161
|
-
/** Create API Token Returns a new API token belonging to a user. The token can be minted at three levels of restriction, in increasing order of narrowness: - **Organization-scoped** -- pass `organization`. The token can only act on resources inside that organization. - **Group-scoped** -- pass `organization`, `group`, and `scopes`. The token is pinned to a single group inside the organization and only the operations listed in `scopes` are allowed. The caller must be an admin or owner of the organization. - **Unrestricted** *(deprecated)* -- no request body. The token can act on every organization the caller belongs to. **Unrestricted tokens are deprecated and will be removed in a future release.** Always pass `organization` for new tokens and rotate existing unrestricted tokens to scoped tokens. Group-scoped tokens are designed for automations that should be able to provision and manage databases inside a single group without being able to touch the rest of the organization. */
|
|
1184
|
+
/** Create API Token Returns a new API token belonging to a user. The token can be minted at three levels of restriction, in increasing order of narrowness: - **Organization-scoped** -- pass `organization`, and optionally `scopes`. The token can only act on resources inside that organization. With `scopes`, it can do only the listed operations, in every group of the organization. - **Group-scoped** -- pass `organization`, `group`, and `scopes`. The token is pinned to a single group inside the organization and only the operations listed in `scopes` are allowed. The caller must be an admin or owner of the organization. - **Unrestricted** *(deprecated)* -- no request body. The token can act on every organization the caller belongs to. **Unrestricted tokens are deprecated and will be removed in a future release.** Always pass `organization` for new tokens and rotate existing unrestricted tokens to scoped tokens. Group-scoped tokens are designed for automations that should be able to provision and manage databases inside a single group without being able to touch the rest of the organization. */
|
|
1162
1185
|
export const createAPIToken: API.OperationMethod<
|
|
1163
1186
|
CreateAPITokenRequest,
|
|
1164
1187
|
CreateAPITokenResponse,
|
|
@@ -1170,6 +1193,8 @@ export const createAPIToken: API.OperationMethod<
|
|
|
1170
1193
|
errors: [BadRequest, NotFound, Conflict],
|
|
1171
1194
|
protocol: TursoProtocol,
|
|
1172
1195
|
retry: Retry.Retry,
|
|
1196
|
+
telemetry: TELEMETRY,
|
|
1197
|
+
span: "CreateAPIToken",
|
|
1173
1198
|
}));
|
|
1174
1199
|
|
|
1175
1200
|
export type CreateDatabaseError = BadRequest | Conflict | TursoOpError;
|
|
@@ -1185,6 +1210,8 @@ export const createDatabase: API.OperationMethod<
|
|
|
1185
1210
|
errors: [BadRequest, Conflict],
|
|
1186
1211
|
protocol: TursoProtocol,
|
|
1187
1212
|
retry: Retry.Retry,
|
|
1213
|
+
telemetry: TELEMETRY,
|
|
1214
|
+
span: "CreateDatabase",
|
|
1188
1215
|
}));
|
|
1189
1216
|
|
|
1190
1217
|
export type CreateDatabaseTokenError = BadRequest | NotFound | TursoOpError;
|
|
@@ -1200,6 +1227,8 @@ export const createDatabaseToken: API.OperationMethod<
|
|
|
1200
1227
|
errors: [BadRequest, NotFound],
|
|
1201
1228
|
protocol: TursoProtocol,
|
|
1202
1229
|
retry: Retry.Retry,
|
|
1230
|
+
telemetry: TELEMETRY,
|
|
1231
|
+
span: "CreateDatabaseToken",
|
|
1203
1232
|
}));
|
|
1204
1233
|
|
|
1205
1234
|
export type CreateGroupError = BadRequest | Conflict | TursoOpError;
|
|
@@ -1215,6 +1244,8 @@ export const createGroup: API.OperationMethod<
|
|
|
1215
1244
|
errors: [BadRequest, Conflict],
|
|
1216
1245
|
protocol: TursoProtocol,
|
|
1217
1246
|
retry: Retry.Retry,
|
|
1247
|
+
telemetry: TELEMETRY,
|
|
1248
|
+
span: "CreateGroup",
|
|
1218
1249
|
}));
|
|
1219
1250
|
|
|
1220
1251
|
export type CreateGroupTokenError = BadRequest | NotFound | TursoOpError;
|
|
@@ -1230,6 +1261,8 @@ export const createGroupToken: API.OperationMethod<
|
|
|
1230
1261
|
errors: [BadRequest, NotFound],
|
|
1231
1262
|
protocol: TursoProtocol,
|
|
1232
1263
|
retry: Retry.Retry,
|
|
1264
|
+
telemetry: TELEMETRY,
|
|
1265
|
+
span: "CreateGroupToken",
|
|
1233
1266
|
}));
|
|
1234
1267
|
|
|
1235
1268
|
export type DeleteDatabaseError = NotFound | TursoOpError;
|
|
@@ -1245,6 +1278,8 @@ export const deleteDatabase: API.OperationMethod<
|
|
|
1245
1278
|
errors: [NotFound],
|
|
1246
1279
|
protocol: TursoProtocol,
|
|
1247
1280
|
retry: Retry.Retry,
|
|
1281
|
+
telemetry: TELEMETRY,
|
|
1282
|
+
span: "DeleteDatabase",
|
|
1248
1283
|
}));
|
|
1249
1284
|
|
|
1250
1285
|
export type DeleteGroupError = NotFound | TursoOpError;
|
|
@@ -1260,6 +1295,8 @@ export const deleteGroup: API.OperationMethod<
|
|
|
1260
1295
|
errors: [NotFound],
|
|
1261
1296
|
protocol: TursoProtocol,
|
|
1262
1297
|
retry: Retry.Retry,
|
|
1298
|
+
telemetry: TELEMETRY,
|
|
1299
|
+
span: "DeleteGroup",
|
|
1263
1300
|
}));
|
|
1264
1301
|
|
|
1265
1302
|
export type DeleteOrganizationInviteByEmailV2Error = NotFound | TursoOpError;
|
|
@@ -1275,6 +1312,8 @@ export const deleteOrganizationInviteByEmailV2: API.OperationMethod<
|
|
|
1275
1312
|
errors: [NotFound],
|
|
1276
1313
|
protocol: TursoProtocol,
|
|
1277
1314
|
retry: Retry.Retry,
|
|
1315
|
+
telemetry: TELEMETRY,
|
|
1316
|
+
span: "DeleteOrganizationInviteByEmailV2",
|
|
1278
1317
|
}));
|
|
1279
1318
|
|
|
1280
1319
|
export type GetCurrentUserError = TursoOpError;
|
|
@@ -1290,6 +1329,8 @@ export const getCurrentUser: API.OperationMethod<
|
|
|
1290
1329
|
errors: [],
|
|
1291
1330
|
protocol: TursoProtocol,
|
|
1292
1331
|
retry: Retry.Retry,
|
|
1332
|
+
telemetry: TELEMETRY,
|
|
1333
|
+
span: "GetCurrentUser",
|
|
1293
1334
|
}));
|
|
1294
1335
|
|
|
1295
1336
|
export type GetDatabaseError = NotFound | TursoOpError;
|
|
@@ -1305,6 +1346,8 @@ export const getDatabase: API.OperationMethod<
|
|
|
1305
1346
|
errors: [NotFound],
|
|
1306
1347
|
protocol: TursoProtocol,
|
|
1307
1348
|
retry: Retry.Retry,
|
|
1349
|
+
telemetry: TELEMETRY,
|
|
1350
|
+
span: "GetDatabase",
|
|
1308
1351
|
}));
|
|
1309
1352
|
|
|
1310
1353
|
export type GetDatabaseConfigurationError = NotFound | TursoOpError;
|
|
@@ -1320,6 +1363,8 @@ export const getDatabaseConfiguration: API.OperationMethod<
|
|
|
1320
1363
|
errors: [NotFound],
|
|
1321
1364
|
protocol: TursoProtocol,
|
|
1322
1365
|
retry: Retry.Retry,
|
|
1366
|
+
telemetry: TELEMETRY,
|
|
1367
|
+
span: "GetDatabaseConfiguration",
|
|
1323
1368
|
}));
|
|
1324
1369
|
|
|
1325
1370
|
export type GetDatabaseInstanceError = NotFound | TursoOpError;
|
|
@@ -1335,6 +1380,8 @@ export const getDatabaseInstance: API.OperationMethod<
|
|
|
1335
1380
|
errors: [NotFound],
|
|
1336
1381
|
protocol: TursoProtocol,
|
|
1337
1382
|
retry: Retry.Retry,
|
|
1383
|
+
telemetry: TELEMETRY,
|
|
1384
|
+
span: "GetDatabaseInstance",
|
|
1338
1385
|
}));
|
|
1339
1386
|
|
|
1340
1387
|
export type GetDatabaseStatsError = NotFound | TursoOpError;
|
|
@@ -1350,6 +1397,8 @@ export const getDatabaseStats: API.OperationMethod<
|
|
|
1350
1397
|
errors: [NotFound],
|
|
1351
1398
|
protocol: TursoProtocol,
|
|
1352
1399
|
retry: Retry.Retry,
|
|
1400
|
+
telemetry: TELEMETRY,
|
|
1401
|
+
span: "GetDatabaseStats",
|
|
1353
1402
|
}));
|
|
1354
1403
|
|
|
1355
1404
|
export type GetDatabaseUsageError = BadRequest | NotFound | TursoOpError;
|
|
@@ -1365,6 +1414,8 @@ export const getDatabaseUsage: API.OperationMethod<
|
|
|
1365
1414
|
errors: [BadRequest, NotFound],
|
|
1366
1415
|
protocol: TursoProtocol,
|
|
1367
1416
|
retry: Retry.Retry,
|
|
1417
|
+
telemetry: TELEMETRY,
|
|
1418
|
+
span: "GetDatabaseUsage",
|
|
1368
1419
|
}));
|
|
1369
1420
|
|
|
1370
1421
|
export type GetGroupError = NotFound | TursoOpError;
|
|
@@ -1380,6 +1431,8 @@ export const getGroup: API.OperationMethod<
|
|
|
1380
1431
|
errors: [NotFound],
|
|
1381
1432
|
protocol: TursoProtocol,
|
|
1382
1433
|
retry: Retry.Retry,
|
|
1434
|
+
telemetry: TELEMETRY,
|
|
1435
|
+
span: "GetGroup",
|
|
1383
1436
|
}));
|
|
1384
1437
|
|
|
1385
1438
|
export type GetGroupConfigurationError = NotFound | TursoOpError;
|
|
@@ -1395,6 +1448,8 @@ export const getGroupConfiguration: API.OperationMethod<
|
|
|
1395
1448
|
errors: [NotFound],
|
|
1396
1449
|
protocol: TursoProtocol,
|
|
1397
1450
|
retry: Retry.Retry,
|
|
1451
|
+
telemetry: TELEMETRY,
|
|
1452
|
+
span: "GetGroupConfiguration",
|
|
1398
1453
|
}));
|
|
1399
1454
|
|
|
1400
1455
|
export type GetOrganizationError = NotFound | TursoOpError;
|
|
@@ -1410,6 +1465,8 @@ export const getOrganization: API.OperationMethod<
|
|
|
1410
1465
|
errors: [NotFound],
|
|
1411
1466
|
protocol: TursoProtocol,
|
|
1412
1467
|
retry: Retry.Retry,
|
|
1468
|
+
telemetry: TELEMETRY,
|
|
1469
|
+
span: "GetOrganization",
|
|
1413
1470
|
}));
|
|
1414
1471
|
|
|
1415
1472
|
export type GetOrganizationMemberError = NotFound | TursoOpError;
|
|
@@ -1425,6 +1482,8 @@ export const getOrganizationMember: API.OperationMethod<
|
|
|
1425
1482
|
errors: [NotFound],
|
|
1426
1483
|
protocol: TursoProtocol,
|
|
1427
1484
|
retry: Retry.Retry,
|
|
1485
|
+
telemetry: TELEMETRY,
|
|
1486
|
+
span: "GetOrganizationMember",
|
|
1428
1487
|
}));
|
|
1429
1488
|
|
|
1430
1489
|
export type GetOrganizationSubscriptionError = TursoOpError;
|
|
@@ -1440,6 +1499,8 @@ export const getOrganizationSubscription: API.OperationMethod<
|
|
|
1440
1499
|
errors: [],
|
|
1441
1500
|
protocol: TursoProtocol,
|
|
1442
1501
|
retry: Retry.Retry,
|
|
1502
|
+
telemetry: TELEMETRY,
|
|
1503
|
+
span: "GetOrganizationSubscription",
|
|
1443
1504
|
}));
|
|
1444
1505
|
|
|
1445
1506
|
export type GetOrganizationUsageError = TursoOpError;
|
|
@@ -1455,6 +1516,8 @@ export const getOrganizationUsage: API.OperationMethod<
|
|
|
1455
1516
|
errors: [],
|
|
1456
1517
|
protocol: TursoProtocol,
|
|
1457
1518
|
retry: Retry.Retry,
|
|
1519
|
+
telemetry: TELEMETRY,
|
|
1520
|
+
span: "GetOrganizationUsage",
|
|
1458
1521
|
}));
|
|
1459
1522
|
|
|
1460
1523
|
export type InvalidateDatabaseTokensError = NotFound | TursoOpError;
|
|
@@ -1470,6 +1533,8 @@ export const invalidateDatabaseTokens: API.OperationMethod<
|
|
|
1470
1533
|
errors: [NotFound],
|
|
1471
1534
|
protocol: TursoProtocol,
|
|
1472
1535
|
retry: Retry.Retry,
|
|
1536
|
+
telemetry: TELEMETRY,
|
|
1537
|
+
span: "InvalidateDatabaseTokens",
|
|
1473
1538
|
}));
|
|
1474
1539
|
|
|
1475
1540
|
export type InvalidateGroupTokensError = NotFound | TursoOpError;
|
|
@@ -1485,6 +1550,8 @@ export const invalidateGroupTokens: API.OperationMethod<
|
|
|
1485
1550
|
errors: [NotFound],
|
|
1486
1551
|
protocol: TursoProtocol,
|
|
1487
1552
|
retry: Retry.Retry,
|
|
1553
|
+
telemetry: TELEMETRY,
|
|
1554
|
+
span: "InvalidateGroupTokens",
|
|
1488
1555
|
}));
|
|
1489
1556
|
|
|
1490
1557
|
export type InviteOrganizationMemberV2Error = BadRequest | TursoOpError;
|
|
@@ -1500,6 +1567,8 @@ export const inviteOrganizationMemberV2: API.OperationMethod<
|
|
|
1500
1567
|
errors: [BadRequest],
|
|
1501
1568
|
protocol: TursoProtocol,
|
|
1502
1569
|
retry: Retry.Retry,
|
|
1570
|
+
telemetry: TELEMETRY,
|
|
1571
|
+
span: "InviteOrganizationMemberV2",
|
|
1503
1572
|
}));
|
|
1504
1573
|
|
|
1505
1574
|
export type ListAPITokensError = TursoOpError;
|
|
@@ -1515,6 +1584,8 @@ export const listAPITokens: API.OperationMethod<
|
|
|
1515
1584
|
errors: [],
|
|
1516
1585
|
protocol: TursoProtocol,
|
|
1517
1586
|
retry: Retry.Retry,
|
|
1587
|
+
telemetry: TELEMETRY,
|
|
1588
|
+
span: "ListAPITokens",
|
|
1518
1589
|
}));
|
|
1519
1590
|
|
|
1520
1591
|
export type ListDatabaseInstancesError = NotFound | TursoOpError;
|
|
@@ -1530,6 +1601,8 @@ export const listDatabaseInstances: API.OperationMethod<
|
|
|
1530
1601
|
errors: [NotFound],
|
|
1531
1602
|
protocol: TursoProtocol,
|
|
1532
1603
|
retry: Retry.Retry,
|
|
1604
|
+
telemetry: TELEMETRY,
|
|
1605
|
+
span: "ListDatabaseInstances",
|
|
1533
1606
|
}));
|
|
1534
1607
|
|
|
1535
1608
|
export type ListDatabasesError = TursoOpError;
|
|
@@ -1545,6 +1618,8 @@ export const listDatabases: API.OperationMethod<
|
|
|
1545
1618
|
errors: [],
|
|
1546
1619
|
protocol: TursoProtocol,
|
|
1547
1620
|
retry: Retry.Retry,
|
|
1621
|
+
telemetry: TELEMETRY,
|
|
1622
|
+
span: "ListDatabases",
|
|
1548
1623
|
}));
|
|
1549
1624
|
|
|
1550
1625
|
export type ListDeletedDatabasesError = Forbidden | TursoOpError;
|
|
@@ -1560,6 +1635,8 @@ export const listDeletedDatabases: API.OperationMethod<
|
|
|
1560
1635
|
errors: [Forbidden],
|
|
1561
1636
|
protocol: TursoProtocol,
|
|
1562
1637
|
retry: Retry.Retry,
|
|
1638
|
+
telemetry: TELEMETRY,
|
|
1639
|
+
span: "ListDeletedDatabases",
|
|
1563
1640
|
}));
|
|
1564
1641
|
|
|
1565
1642
|
export type ListDeletedGroupsError = Forbidden | TursoOpError;
|
|
@@ -1575,6 +1652,8 @@ export const listDeletedGroups: API.OperationMethod<
|
|
|
1575
1652
|
errors: [Forbidden],
|
|
1576
1653
|
protocol: TursoProtocol,
|
|
1577
1654
|
retry: Retry.Retry,
|
|
1655
|
+
telemetry: TELEMETRY,
|
|
1656
|
+
span: "ListDeletedGroups",
|
|
1578
1657
|
}));
|
|
1579
1658
|
|
|
1580
1659
|
export type ListGroupsError = TursoOpError;
|
|
@@ -1590,6 +1669,8 @@ export const listGroups: API.OperationMethod<
|
|
|
1590
1669
|
errors: [],
|
|
1591
1670
|
protocol: TursoProtocol,
|
|
1592
1671
|
retry: Retry.Retry,
|
|
1672
|
+
telemetry: TELEMETRY,
|
|
1673
|
+
span: "ListGroups",
|
|
1593
1674
|
}));
|
|
1594
1675
|
|
|
1595
1676
|
export type ListLocationsError = TursoOpError;
|
|
@@ -1605,6 +1686,8 @@ export const listLocations: API.OperationMethod<
|
|
|
1605
1686
|
errors: [],
|
|
1606
1687
|
protocol: TursoProtocol,
|
|
1607
1688
|
retry: Retry.Retry,
|
|
1689
|
+
telemetry: TELEMETRY,
|
|
1690
|
+
span: "ListLocations",
|
|
1608
1691
|
}));
|
|
1609
1692
|
|
|
1610
1693
|
export type ListOrganizationAPITokensError = TursoOpError;
|
|
@@ -1620,6 +1703,8 @@ export const listOrganizationAPITokens: API.OperationMethod<
|
|
|
1620
1703
|
errors: [],
|
|
1621
1704
|
protocol: TursoProtocol,
|
|
1622
1705
|
retry: Retry.Retry,
|
|
1706
|
+
telemetry: TELEMETRY,
|
|
1707
|
+
span: "ListOrganizationAPITokens",
|
|
1623
1708
|
}));
|
|
1624
1709
|
|
|
1625
1710
|
export type ListOrganizationAuditLogsError = TursoOpError;
|
|
@@ -1635,6 +1720,8 @@ export const listOrganizationAuditLogs: API.OperationMethod<
|
|
|
1635
1720
|
errors: [],
|
|
1636
1721
|
protocol: TursoProtocol,
|
|
1637
1722
|
retry: Retry.Retry,
|
|
1723
|
+
telemetry: TELEMETRY,
|
|
1724
|
+
span: "ListOrganizationAuditLogs",
|
|
1638
1725
|
}));
|
|
1639
1726
|
|
|
1640
1727
|
export type ListOrganizationInvitesV2Error = TursoOpError;
|
|
@@ -1650,6 +1737,8 @@ export const listOrganizationInvitesV2: API.OperationMethod<
|
|
|
1650
1737
|
errors: [],
|
|
1651
1738
|
protocol: TursoProtocol,
|
|
1652
1739
|
retry: Retry.Retry,
|
|
1740
|
+
telemetry: TELEMETRY,
|
|
1741
|
+
span: "ListOrganizationInvitesV2",
|
|
1653
1742
|
}));
|
|
1654
1743
|
|
|
1655
1744
|
export type ListOrganizationInvoicesError = TursoOpError;
|
|
@@ -1665,6 +1754,8 @@ export const listOrganizationInvoices: API.OperationMethod<
|
|
|
1665
1754
|
errors: [],
|
|
1666
1755
|
protocol: TursoProtocol,
|
|
1667
1756
|
retry: Retry.Retry,
|
|
1757
|
+
telemetry: TELEMETRY,
|
|
1758
|
+
span: "ListOrganizationInvoices",
|
|
1668
1759
|
}));
|
|
1669
1760
|
|
|
1670
1761
|
export type ListOrganizationMembersError = TursoOpError;
|
|
@@ -1680,6 +1771,8 @@ export const listOrganizationMembers: API.OperationMethod<
|
|
|
1680
1771
|
errors: [],
|
|
1681
1772
|
protocol: TursoProtocol,
|
|
1682
1773
|
retry: Retry.Retry,
|
|
1774
|
+
telemetry: TELEMETRY,
|
|
1775
|
+
span: "ListOrganizationMembers",
|
|
1683
1776
|
}));
|
|
1684
1777
|
|
|
1685
1778
|
export type ListOrganizationPlansError = TursoOpError;
|
|
@@ -1695,6 +1788,8 @@ export const listOrganizationPlans: API.OperationMethod<
|
|
|
1695
1788
|
errors: [],
|
|
1696
1789
|
protocol: TursoProtocol,
|
|
1697
1790
|
retry: Retry.Retry,
|
|
1791
|
+
telemetry: TELEMETRY,
|
|
1792
|
+
span: "ListOrganizationPlans",
|
|
1698
1793
|
}));
|
|
1699
1794
|
|
|
1700
1795
|
export type ListOrganizationsError = TursoOpError;
|
|
@@ -1710,6 +1805,8 @@ export const listOrganizations: API.OperationMethod<
|
|
|
1710
1805
|
errors: [],
|
|
1711
1806
|
protocol: TursoProtocol,
|
|
1712
1807
|
retry: Retry.Retry,
|
|
1808
|
+
telemetry: TELEMETRY,
|
|
1809
|
+
span: "ListOrganizations",
|
|
1713
1810
|
}));
|
|
1714
1811
|
|
|
1715
1812
|
export type RemoveLocationFromGroupError = BadRequest | NotFound | TursoOpError;
|
|
@@ -1725,6 +1822,8 @@ export const removeLocationFromGroup: API.OperationMethod<
|
|
|
1725
1822
|
errors: [BadRequest, NotFound],
|
|
1726
1823
|
protocol: TursoProtocol,
|
|
1727
1824
|
retry: Retry.Retry,
|
|
1825
|
+
telemetry: TELEMETRY,
|
|
1826
|
+
span: "RemoveLocationFromGroup",
|
|
1728
1827
|
}));
|
|
1729
1828
|
|
|
1730
1829
|
export type RemoveOrganizationMemberError = NotFound | TursoOpError;
|
|
@@ -1740,6 +1839,8 @@ export const removeOrganizationMember: API.OperationMethod<
|
|
|
1740
1839
|
errors: [NotFound],
|
|
1741
1840
|
protocol: TursoProtocol,
|
|
1742
1841
|
retry: Retry.Retry,
|
|
1842
|
+
telemetry: TELEMETRY,
|
|
1843
|
+
span: "RemoveOrganizationMember",
|
|
1743
1844
|
}));
|
|
1744
1845
|
|
|
1745
1846
|
export type RestoreDatabaseError = BadRequest | Forbidden | NotFound | TursoOpError;
|
|
@@ -1755,6 +1856,8 @@ export const restoreDatabase: API.OperationMethod<
|
|
|
1755
1856
|
errors: [BadRequest, Forbidden, NotFound],
|
|
1756
1857
|
protocol: TursoProtocol,
|
|
1757
1858
|
retry: Retry.Retry,
|
|
1859
|
+
telemetry: TELEMETRY,
|
|
1860
|
+
span: "RestoreDatabase",
|
|
1758
1861
|
}));
|
|
1759
1862
|
|
|
1760
1863
|
export type RestoreGroupError = BadRequest | Forbidden | NotFound | TursoOpError;
|
|
@@ -1770,6 +1873,8 @@ export const restoreGroup: API.OperationMethod<
|
|
|
1770
1873
|
errors: [BadRequest, Forbidden, NotFound],
|
|
1771
1874
|
protocol: TursoProtocol,
|
|
1772
1875
|
retry: Retry.Retry,
|
|
1876
|
+
telemetry: TELEMETRY,
|
|
1877
|
+
span: "RestoreGroup",
|
|
1773
1878
|
}));
|
|
1774
1879
|
|
|
1775
1880
|
export type RevokeAPITokenError = NotFound | TursoOpError;
|
|
@@ -1785,6 +1890,8 @@ export const revokeAPIToken: API.OperationMethod<
|
|
|
1785
1890
|
errors: [NotFound],
|
|
1786
1891
|
protocol: TursoProtocol,
|
|
1787
1892
|
retry: Retry.Retry,
|
|
1893
|
+
telemetry: TELEMETRY,
|
|
1894
|
+
span: "RevokeAPIToken",
|
|
1788
1895
|
}));
|
|
1789
1896
|
|
|
1790
1897
|
export type RevokeOrganizationAPITokenError = NotFound | TursoOpError;
|
|
@@ -1800,6 +1907,8 @@ export const revokeOrganizationAPIToken: API.OperationMethod<
|
|
|
1800
1907
|
errors: [NotFound],
|
|
1801
1908
|
protocol: TursoProtocol,
|
|
1802
1909
|
retry: Retry.Retry,
|
|
1910
|
+
telemetry: TELEMETRY,
|
|
1911
|
+
span: "RevokeOrganizationAPIToken",
|
|
1803
1912
|
}));
|
|
1804
1913
|
|
|
1805
1914
|
export type TransferGroupError = NotFound | TursoOpError;
|
|
@@ -1815,6 +1924,8 @@ export const transferGroup: API.OperationMethod<
|
|
|
1815
1924
|
errors: [NotFound],
|
|
1816
1925
|
protocol: TursoProtocol,
|
|
1817
1926
|
retry: Retry.Retry,
|
|
1927
|
+
telemetry: TELEMETRY,
|
|
1928
|
+
span: "TransferGroup",
|
|
1818
1929
|
}));
|
|
1819
1930
|
|
|
1820
1931
|
export type UnarchiveGroupError = NotFound | TursoOpError;
|
|
@@ -1830,6 +1941,8 @@ export const unarchiveGroup: API.OperationMethod<
|
|
|
1830
1941
|
errors: [NotFound],
|
|
1831
1942
|
protocol: TursoProtocol,
|
|
1832
1943
|
retry: Retry.Retry,
|
|
1944
|
+
telemetry: TELEMETRY,
|
|
1945
|
+
span: "UnarchiveGroup",
|
|
1833
1946
|
}));
|
|
1834
1947
|
|
|
1835
1948
|
export type UpdateDatabaseConfigurationError = NotFound | TursoOpError;
|
|
@@ -1845,6 +1958,8 @@ export const updateDatabaseConfiguration: API.OperationMethod<
|
|
|
1845
1958
|
errors: [NotFound],
|
|
1846
1959
|
protocol: TursoProtocol,
|
|
1847
1960
|
retry: Retry.Retry,
|
|
1961
|
+
telemetry: TELEMETRY,
|
|
1962
|
+
span: "UpdateDatabaseConfiguration",
|
|
1848
1963
|
}));
|
|
1849
1964
|
|
|
1850
1965
|
export type UpdateGroupConfigurationError = NotFound | TursoOpError;
|
|
@@ -1860,6 +1975,8 @@ export const updateGroupConfiguration: API.OperationMethod<
|
|
|
1860
1975
|
errors: [NotFound],
|
|
1861
1976
|
protocol: TursoProtocol,
|
|
1862
1977
|
retry: Retry.Retry,
|
|
1978
|
+
telemetry: TELEMETRY,
|
|
1979
|
+
span: "UpdateGroupConfiguration",
|
|
1863
1980
|
}));
|
|
1864
1981
|
|
|
1865
1982
|
export type UpdateGroupDatabasesError = NotFound | TursoOpError;
|
|
@@ -1875,6 +1992,8 @@ export const updateGroupDatabases: API.OperationMethod<
|
|
|
1875
1992
|
errors: [NotFound],
|
|
1876
1993
|
protocol: TursoProtocol,
|
|
1877
1994
|
retry: Retry.Retry,
|
|
1995
|
+
telemetry: TELEMETRY,
|
|
1996
|
+
span: "UpdateGroupDatabases",
|
|
1878
1997
|
}));
|
|
1879
1998
|
|
|
1880
1999
|
export type UpdateMemberRoleError = BadRequest | Forbidden | NotFound | TursoOpError;
|
|
@@ -1890,6 +2009,8 @@ export const updateMemberRole: API.OperationMethod<
|
|
|
1890
2009
|
errors: [BadRequest, Forbidden, NotFound],
|
|
1891
2010
|
protocol: TursoProtocol,
|
|
1892
2011
|
retry: Retry.Retry,
|
|
2012
|
+
telemetry: TELEMETRY,
|
|
2013
|
+
span: "UpdateMemberRole",
|
|
1893
2014
|
}));
|
|
1894
2015
|
|
|
1895
2016
|
export type UpdateOrganizationError = TursoOpError;
|
|
@@ -1905,6 +2026,8 @@ export const updateOrganization: API.OperationMethod<
|
|
|
1905
2026
|
errors: [],
|
|
1906
2027
|
protocol: TursoProtocol,
|
|
1907
2028
|
retry: Retry.Retry,
|
|
2029
|
+
telemetry: TELEMETRY,
|
|
2030
|
+
span: "UpdateOrganization",
|
|
1908
2031
|
}));
|
|
1909
2032
|
|
|
1910
2033
|
export type ValidateAPITokenError = TursoOpError;
|
|
@@ -1920,6 +2043,8 @@ export const validateAPIToken: API.OperationMethod<
|
|
|
1920
2043
|
errors: [],
|
|
1921
2044
|
protocol: TursoProtocol,
|
|
1922
2045
|
retry: Retry.Retry,
|
|
2046
|
+
telemetry: TELEMETRY,
|
|
2047
|
+
span: "ValidateAPIToken",
|
|
1923
2048
|
}));
|
|
1924
2049
|
|
|
1925
2050
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|