@distilled.cloud/turso 1.0.0-rc.16 → 1.0.0-rc.18
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/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +10 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +1 -30
- package/lib/errors.js +1 -32
- package/lib/index.d.ts +3 -3
- package/lib/index.js +0 -13
- package/lib/index.lazy.js +6 -0
- package/lib/protocol.d.ts +2 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +1 -40
- package/lib/retry.js +1 -34
- package/lib/services/index.js +0 -2
- package/lib/services/turso.d.ts.map +1 -1
- package/lib/services/turso.js +83 -203
- package/lib/services/turso.js.map +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/turso.js +4 -0
- package/lib/traits.js +1 -13
- package/package.json +9 -9
- package/src/credentials.ts +3 -2
- package/src/index.ts +3 -3
- package/src/protocol.ts +6 -2
- package/src/services/turso.ts +119 -0
- package/lib/credentials.js.map +0 -1
- package/lib/errors.js.map +0 -1
- package/lib/protocol.js.map +0 -1
- package/lib/retry.js.map +0 -1
- package/lib/services/index.js.map +0 -1
- package/lib/traits.js.map +0 -1
- /package/lib/{index.js.map → index.lazy.js.map} +0 -0
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", {
|
|
@@ -1140,6 +1153,8 @@ export const addLocationToGroup: API.OperationMethod<
|
|
|
1140
1153
|
errors: [BadRequest, NotFound],
|
|
1141
1154
|
protocol: TursoProtocol,
|
|
1142
1155
|
retry: Retry.Retry,
|
|
1156
|
+
telemetry: TELEMETRY,
|
|
1157
|
+
span: "AddLocationToGroup",
|
|
1143
1158
|
}));
|
|
1144
1159
|
|
|
1145
1160
|
export type AddOrganizationMemberError = BadRequest | NotFound | Conflict | TursoOpError;
|
|
@@ -1155,6 +1170,8 @@ export const addOrganizationMember: API.OperationMethod<
|
|
|
1155
1170
|
errors: [BadRequest, NotFound, Conflict],
|
|
1156
1171
|
protocol: TursoProtocol,
|
|
1157
1172
|
retry: Retry.Retry,
|
|
1173
|
+
telemetry: TELEMETRY,
|
|
1174
|
+
span: "AddOrganizationMember",
|
|
1158
1175
|
}));
|
|
1159
1176
|
|
|
1160
1177
|
export type CreateAPITokenError = BadRequest | NotFound | Conflict | TursoOpError;
|
|
@@ -1170,6 +1187,8 @@ export const createAPIToken: API.OperationMethod<
|
|
|
1170
1187
|
errors: [BadRequest, NotFound, Conflict],
|
|
1171
1188
|
protocol: TursoProtocol,
|
|
1172
1189
|
retry: Retry.Retry,
|
|
1190
|
+
telemetry: TELEMETRY,
|
|
1191
|
+
span: "CreateAPIToken",
|
|
1173
1192
|
}));
|
|
1174
1193
|
|
|
1175
1194
|
export type CreateDatabaseError = BadRequest | Conflict | TursoOpError;
|
|
@@ -1185,6 +1204,8 @@ export const createDatabase: API.OperationMethod<
|
|
|
1185
1204
|
errors: [BadRequest, Conflict],
|
|
1186
1205
|
protocol: TursoProtocol,
|
|
1187
1206
|
retry: Retry.Retry,
|
|
1207
|
+
telemetry: TELEMETRY,
|
|
1208
|
+
span: "CreateDatabase",
|
|
1188
1209
|
}));
|
|
1189
1210
|
|
|
1190
1211
|
export type CreateDatabaseTokenError = BadRequest | NotFound | TursoOpError;
|
|
@@ -1200,6 +1221,8 @@ export const createDatabaseToken: API.OperationMethod<
|
|
|
1200
1221
|
errors: [BadRequest, NotFound],
|
|
1201
1222
|
protocol: TursoProtocol,
|
|
1202
1223
|
retry: Retry.Retry,
|
|
1224
|
+
telemetry: TELEMETRY,
|
|
1225
|
+
span: "CreateDatabaseToken",
|
|
1203
1226
|
}));
|
|
1204
1227
|
|
|
1205
1228
|
export type CreateGroupError = BadRequest | Conflict | TursoOpError;
|
|
@@ -1215,6 +1238,8 @@ export const createGroup: API.OperationMethod<
|
|
|
1215
1238
|
errors: [BadRequest, Conflict],
|
|
1216
1239
|
protocol: TursoProtocol,
|
|
1217
1240
|
retry: Retry.Retry,
|
|
1241
|
+
telemetry: TELEMETRY,
|
|
1242
|
+
span: "CreateGroup",
|
|
1218
1243
|
}));
|
|
1219
1244
|
|
|
1220
1245
|
export type CreateGroupTokenError = BadRequest | NotFound | TursoOpError;
|
|
@@ -1230,6 +1255,8 @@ export const createGroupToken: API.OperationMethod<
|
|
|
1230
1255
|
errors: [BadRequest, NotFound],
|
|
1231
1256
|
protocol: TursoProtocol,
|
|
1232
1257
|
retry: Retry.Retry,
|
|
1258
|
+
telemetry: TELEMETRY,
|
|
1259
|
+
span: "CreateGroupToken",
|
|
1233
1260
|
}));
|
|
1234
1261
|
|
|
1235
1262
|
export type DeleteDatabaseError = NotFound | TursoOpError;
|
|
@@ -1245,6 +1272,8 @@ export const deleteDatabase: API.OperationMethod<
|
|
|
1245
1272
|
errors: [NotFound],
|
|
1246
1273
|
protocol: TursoProtocol,
|
|
1247
1274
|
retry: Retry.Retry,
|
|
1275
|
+
telemetry: TELEMETRY,
|
|
1276
|
+
span: "DeleteDatabase",
|
|
1248
1277
|
}));
|
|
1249
1278
|
|
|
1250
1279
|
export type DeleteGroupError = NotFound | TursoOpError;
|
|
@@ -1260,6 +1289,8 @@ export const deleteGroup: API.OperationMethod<
|
|
|
1260
1289
|
errors: [NotFound],
|
|
1261
1290
|
protocol: TursoProtocol,
|
|
1262
1291
|
retry: Retry.Retry,
|
|
1292
|
+
telemetry: TELEMETRY,
|
|
1293
|
+
span: "DeleteGroup",
|
|
1263
1294
|
}));
|
|
1264
1295
|
|
|
1265
1296
|
export type DeleteOrganizationInviteByEmailV2Error = NotFound | TursoOpError;
|
|
@@ -1275,6 +1306,8 @@ export const deleteOrganizationInviteByEmailV2: API.OperationMethod<
|
|
|
1275
1306
|
errors: [NotFound],
|
|
1276
1307
|
protocol: TursoProtocol,
|
|
1277
1308
|
retry: Retry.Retry,
|
|
1309
|
+
telemetry: TELEMETRY,
|
|
1310
|
+
span: "DeleteOrganizationInviteByEmailV2",
|
|
1278
1311
|
}));
|
|
1279
1312
|
|
|
1280
1313
|
export type GetCurrentUserError = TursoOpError;
|
|
@@ -1290,6 +1323,8 @@ export const getCurrentUser: API.OperationMethod<
|
|
|
1290
1323
|
errors: [],
|
|
1291
1324
|
protocol: TursoProtocol,
|
|
1292
1325
|
retry: Retry.Retry,
|
|
1326
|
+
telemetry: TELEMETRY,
|
|
1327
|
+
span: "GetCurrentUser",
|
|
1293
1328
|
}));
|
|
1294
1329
|
|
|
1295
1330
|
export type GetDatabaseError = NotFound | TursoOpError;
|
|
@@ -1305,6 +1340,8 @@ export const getDatabase: API.OperationMethod<
|
|
|
1305
1340
|
errors: [NotFound],
|
|
1306
1341
|
protocol: TursoProtocol,
|
|
1307
1342
|
retry: Retry.Retry,
|
|
1343
|
+
telemetry: TELEMETRY,
|
|
1344
|
+
span: "GetDatabase",
|
|
1308
1345
|
}));
|
|
1309
1346
|
|
|
1310
1347
|
export type GetDatabaseConfigurationError = NotFound | TursoOpError;
|
|
@@ -1320,6 +1357,8 @@ export const getDatabaseConfiguration: API.OperationMethod<
|
|
|
1320
1357
|
errors: [NotFound],
|
|
1321
1358
|
protocol: TursoProtocol,
|
|
1322
1359
|
retry: Retry.Retry,
|
|
1360
|
+
telemetry: TELEMETRY,
|
|
1361
|
+
span: "GetDatabaseConfiguration",
|
|
1323
1362
|
}));
|
|
1324
1363
|
|
|
1325
1364
|
export type GetDatabaseInstanceError = NotFound | TursoOpError;
|
|
@@ -1335,6 +1374,8 @@ export const getDatabaseInstance: API.OperationMethod<
|
|
|
1335
1374
|
errors: [NotFound],
|
|
1336
1375
|
protocol: TursoProtocol,
|
|
1337
1376
|
retry: Retry.Retry,
|
|
1377
|
+
telemetry: TELEMETRY,
|
|
1378
|
+
span: "GetDatabaseInstance",
|
|
1338
1379
|
}));
|
|
1339
1380
|
|
|
1340
1381
|
export type GetDatabaseStatsError = NotFound | TursoOpError;
|
|
@@ -1350,6 +1391,8 @@ export const getDatabaseStats: API.OperationMethod<
|
|
|
1350
1391
|
errors: [NotFound],
|
|
1351
1392
|
protocol: TursoProtocol,
|
|
1352
1393
|
retry: Retry.Retry,
|
|
1394
|
+
telemetry: TELEMETRY,
|
|
1395
|
+
span: "GetDatabaseStats",
|
|
1353
1396
|
}));
|
|
1354
1397
|
|
|
1355
1398
|
export type GetDatabaseUsageError = BadRequest | NotFound | TursoOpError;
|
|
@@ -1365,6 +1408,8 @@ export const getDatabaseUsage: API.OperationMethod<
|
|
|
1365
1408
|
errors: [BadRequest, NotFound],
|
|
1366
1409
|
protocol: TursoProtocol,
|
|
1367
1410
|
retry: Retry.Retry,
|
|
1411
|
+
telemetry: TELEMETRY,
|
|
1412
|
+
span: "GetDatabaseUsage",
|
|
1368
1413
|
}));
|
|
1369
1414
|
|
|
1370
1415
|
export type GetGroupError = NotFound | TursoOpError;
|
|
@@ -1380,6 +1425,8 @@ export const getGroup: API.OperationMethod<
|
|
|
1380
1425
|
errors: [NotFound],
|
|
1381
1426
|
protocol: TursoProtocol,
|
|
1382
1427
|
retry: Retry.Retry,
|
|
1428
|
+
telemetry: TELEMETRY,
|
|
1429
|
+
span: "GetGroup",
|
|
1383
1430
|
}));
|
|
1384
1431
|
|
|
1385
1432
|
export type GetGroupConfigurationError = NotFound | TursoOpError;
|
|
@@ -1395,6 +1442,8 @@ export const getGroupConfiguration: API.OperationMethod<
|
|
|
1395
1442
|
errors: [NotFound],
|
|
1396
1443
|
protocol: TursoProtocol,
|
|
1397
1444
|
retry: Retry.Retry,
|
|
1445
|
+
telemetry: TELEMETRY,
|
|
1446
|
+
span: "GetGroupConfiguration",
|
|
1398
1447
|
}));
|
|
1399
1448
|
|
|
1400
1449
|
export type GetOrganizationError = NotFound | TursoOpError;
|
|
@@ -1410,6 +1459,8 @@ export const getOrganization: API.OperationMethod<
|
|
|
1410
1459
|
errors: [NotFound],
|
|
1411
1460
|
protocol: TursoProtocol,
|
|
1412
1461
|
retry: Retry.Retry,
|
|
1462
|
+
telemetry: TELEMETRY,
|
|
1463
|
+
span: "GetOrganization",
|
|
1413
1464
|
}));
|
|
1414
1465
|
|
|
1415
1466
|
export type GetOrganizationMemberError = NotFound | TursoOpError;
|
|
@@ -1425,6 +1476,8 @@ export const getOrganizationMember: API.OperationMethod<
|
|
|
1425
1476
|
errors: [NotFound],
|
|
1426
1477
|
protocol: TursoProtocol,
|
|
1427
1478
|
retry: Retry.Retry,
|
|
1479
|
+
telemetry: TELEMETRY,
|
|
1480
|
+
span: "GetOrganizationMember",
|
|
1428
1481
|
}));
|
|
1429
1482
|
|
|
1430
1483
|
export type GetOrganizationSubscriptionError = TursoOpError;
|
|
@@ -1440,6 +1493,8 @@ export const getOrganizationSubscription: API.OperationMethod<
|
|
|
1440
1493
|
errors: [],
|
|
1441
1494
|
protocol: TursoProtocol,
|
|
1442
1495
|
retry: Retry.Retry,
|
|
1496
|
+
telemetry: TELEMETRY,
|
|
1497
|
+
span: "GetOrganizationSubscription",
|
|
1443
1498
|
}));
|
|
1444
1499
|
|
|
1445
1500
|
export type GetOrganizationUsageError = TursoOpError;
|
|
@@ -1455,6 +1510,8 @@ export const getOrganizationUsage: API.OperationMethod<
|
|
|
1455
1510
|
errors: [],
|
|
1456
1511
|
protocol: TursoProtocol,
|
|
1457
1512
|
retry: Retry.Retry,
|
|
1513
|
+
telemetry: TELEMETRY,
|
|
1514
|
+
span: "GetOrganizationUsage",
|
|
1458
1515
|
}));
|
|
1459
1516
|
|
|
1460
1517
|
export type InvalidateDatabaseTokensError = NotFound | TursoOpError;
|
|
@@ -1470,6 +1527,8 @@ export const invalidateDatabaseTokens: API.OperationMethod<
|
|
|
1470
1527
|
errors: [NotFound],
|
|
1471
1528
|
protocol: TursoProtocol,
|
|
1472
1529
|
retry: Retry.Retry,
|
|
1530
|
+
telemetry: TELEMETRY,
|
|
1531
|
+
span: "InvalidateDatabaseTokens",
|
|
1473
1532
|
}));
|
|
1474
1533
|
|
|
1475
1534
|
export type InvalidateGroupTokensError = NotFound | TursoOpError;
|
|
@@ -1485,6 +1544,8 @@ export const invalidateGroupTokens: API.OperationMethod<
|
|
|
1485
1544
|
errors: [NotFound],
|
|
1486
1545
|
protocol: TursoProtocol,
|
|
1487
1546
|
retry: Retry.Retry,
|
|
1547
|
+
telemetry: TELEMETRY,
|
|
1548
|
+
span: "InvalidateGroupTokens",
|
|
1488
1549
|
}));
|
|
1489
1550
|
|
|
1490
1551
|
export type InviteOrganizationMemberV2Error = BadRequest | TursoOpError;
|
|
@@ -1500,6 +1561,8 @@ export const inviteOrganizationMemberV2: API.OperationMethod<
|
|
|
1500
1561
|
errors: [BadRequest],
|
|
1501
1562
|
protocol: TursoProtocol,
|
|
1502
1563
|
retry: Retry.Retry,
|
|
1564
|
+
telemetry: TELEMETRY,
|
|
1565
|
+
span: "InviteOrganizationMemberV2",
|
|
1503
1566
|
}));
|
|
1504
1567
|
|
|
1505
1568
|
export type ListAPITokensError = TursoOpError;
|
|
@@ -1515,6 +1578,8 @@ export const listAPITokens: API.OperationMethod<
|
|
|
1515
1578
|
errors: [],
|
|
1516
1579
|
protocol: TursoProtocol,
|
|
1517
1580
|
retry: Retry.Retry,
|
|
1581
|
+
telemetry: TELEMETRY,
|
|
1582
|
+
span: "ListAPITokens",
|
|
1518
1583
|
}));
|
|
1519
1584
|
|
|
1520
1585
|
export type ListDatabaseInstancesError = NotFound | TursoOpError;
|
|
@@ -1530,6 +1595,8 @@ export const listDatabaseInstances: API.OperationMethod<
|
|
|
1530
1595
|
errors: [NotFound],
|
|
1531
1596
|
protocol: TursoProtocol,
|
|
1532
1597
|
retry: Retry.Retry,
|
|
1598
|
+
telemetry: TELEMETRY,
|
|
1599
|
+
span: "ListDatabaseInstances",
|
|
1533
1600
|
}));
|
|
1534
1601
|
|
|
1535
1602
|
export type ListDatabasesError = TursoOpError;
|
|
@@ -1545,6 +1612,8 @@ export const listDatabases: API.OperationMethod<
|
|
|
1545
1612
|
errors: [],
|
|
1546
1613
|
protocol: TursoProtocol,
|
|
1547
1614
|
retry: Retry.Retry,
|
|
1615
|
+
telemetry: TELEMETRY,
|
|
1616
|
+
span: "ListDatabases",
|
|
1548
1617
|
}));
|
|
1549
1618
|
|
|
1550
1619
|
export type ListDeletedDatabasesError = Forbidden | TursoOpError;
|
|
@@ -1560,6 +1629,8 @@ export const listDeletedDatabases: API.OperationMethod<
|
|
|
1560
1629
|
errors: [Forbidden],
|
|
1561
1630
|
protocol: TursoProtocol,
|
|
1562
1631
|
retry: Retry.Retry,
|
|
1632
|
+
telemetry: TELEMETRY,
|
|
1633
|
+
span: "ListDeletedDatabases",
|
|
1563
1634
|
}));
|
|
1564
1635
|
|
|
1565
1636
|
export type ListDeletedGroupsError = Forbidden | TursoOpError;
|
|
@@ -1575,6 +1646,8 @@ export const listDeletedGroups: API.OperationMethod<
|
|
|
1575
1646
|
errors: [Forbidden],
|
|
1576
1647
|
protocol: TursoProtocol,
|
|
1577
1648
|
retry: Retry.Retry,
|
|
1649
|
+
telemetry: TELEMETRY,
|
|
1650
|
+
span: "ListDeletedGroups",
|
|
1578
1651
|
}));
|
|
1579
1652
|
|
|
1580
1653
|
export type ListGroupsError = TursoOpError;
|
|
@@ -1590,6 +1663,8 @@ export const listGroups: API.OperationMethod<
|
|
|
1590
1663
|
errors: [],
|
|
1591
1664
|
protocol: TursoProtocol,
|
|
1592
1665
|
retry: Retry.Retry,
|
|
1666
|
+
telemetry: TELEMETRY,
|
|
1667
|
+
span: "ListGroups",
|
|
1593
1668
|
}));
|
|
1594
1669
|
|
|
1595
1670
|
export type ListLocationsError = TursoOpError;
|
|
@@ -1605,6 +1680,8 @@ export const listLocations: API.OperationMethod<
|
|
|
1605
1680
|
errors: [],
|
|
1606
1681
|
protocol: TursoProtocol,
|
|
1607
1682
|
retry: Retry.Retry,
|
|
1683
|
+
telemetry: TELEMETRY,
|
|
1684
|
+
span: "ListLocations",
|
|
1608
1685
|
}));
|
|
1609
1686
|
|
|
1610
1687
|
export type ListOrganizationAPITokensError = TursoOpError;
|
|
@@ -1620,6 +1697,8 @@ export const listOrganizationAPITokens: API.OperationMethod<
|
|
|
1620
1697
|
errors: [],
|
|
1621
1698
|
protocol: TursoProtocol,
|
|
1622
1699
|
retry: Retry.Retry,
|
|
1700
|
+
telemetry: TELEMETRY,
|
|
1701
|
+
span: "ListOrganizationAPITokens",
|
|
1623
1702
|
}));
|
|
1624
1703
|
|
|
1625
1704
|
export type ListOrganizationAuditLogsError = TursoOpError;
|
|
@@ -1635,6 +1714,8 @@ export const listOrganizationAuditLogs: API.OperationMethod<
|
|
|
1635
1714
|
errors: [],
|
|
1636
1715
|
protocol: TursoProtocol,
|
|
1637
1716
|
retry: Retry.Retry,
|
|
1717
|
+
telemetry: TELEMETRY,
|
|
1718
|
+
span: "ListOrganizationAuditLogs",
|
|
1638
1719
|
}));
|
|
1639
1720
|
|
|
1640
1721
|
export type ListOrganizationInvitesV2Error = TursoOpError;
|
|
@@ -1650,6 +1731,8 @@ export const listOrganizationInvitesV2: API.OperationMethod<
|
|
|
1650
1731
|
errors: [],
|
|
1651
1732
|
protocol: TursoProtocol,
|
|
1652
1733
|
retry: Retry.Retry,
|
|
1734
|
+
telemetry: TELEMETRY,
|
|
1735
|
+
span: "ListOrganizationInvitesV2",
|
|
1653
1736
|
}));
|
|
1654
1737
|
|
|
1655
1738
|
export type ListOrganizationInvoicesError = TursoOpError;
|
|
@@ -1665,6 +1748,8 @@ export const listOrganizationInvoices: API.OperationMethod<
|
|
|
1665
1748
|
errors: [],
|
|
1666
1749
|
protocol: TursoProtocol,
|
|
1667
1750
|
retry: Retry.Retry,
|
|
1751
|
+
telemetry: TELEMETRY,
|
|
1752
|
+
span: "ListOrganizationInvoices",
|
|
1668
1753
|
}));
|
|
1669
1754
|
|
|
1670
1755
|
export type ListOrganizationMembersError = TursoOpError;
|
|
@@ -1680,6 +1765,8 @@ export const listOrganizationMembers: API.OperationMethod<
|
|
|
1680
1765
|
errors: [],
|
|
1681
1766
|
protocol: TursoProtocol,
|
|
1682
1767
|
retry: Retry.Retry,
|
|
1768
|
+
telemetry: TELEMETRY,
|
|
1769
|
+
span: "ListOrganizationMembers",
|
|
1683
1770
|
}));
|
|
1684
1771
|
|
|
1685
1772
|
export type ListOrganizationPlansError = TursoOpError;
|
|
@@ -1695,6 +1782,8 @@ export const listOrganizationPlans: API.OperationMethod<
|
|
|
1695
1782
|
errors: [],
|
|
1696
1783
|
protocol: TursoProtocol,
|
|
1697
1784
|
retry: Retry.Retry,
|
|
1785
|
+
telemetry: TELEMETRY,
|
|
1786
|
+
span: "ListOrganizationPlans",
|
|
1698
1787
|
}));
|
|
1699
1788
|
|
|
1700
1789
|
export type ListOrganizationsError = TursoOpError;
|
|
@@ -1710,6 +1799,8 @@ export const listOrganizations: API.OperationMethod<
|
|
|
1710
1799
|
errors: [],
|
|
1711
1800
|
protocol: TursoProtocol,
|
|
1712
1801
|
retry: Retry.Retry,
|
|
1802
|
+
telemetry: TELEMETRY,
|
|
1803
|
+
span: "ListOrganizations",
|
|
1713
1804
|
}));
|
|
1714
1805
|
|
|
1715
1806
|
export type RemoveLocationFromGroupError = BadRequest | NotFound | TursoOpError;
|
|
@@ -1725,6 +1816,8 @@ export const removeLocationFromGroup: API.OperationMethod<
|
|
|
1725
1816
|
errors: [BadRequest, NotFound],
|
|
1726
1817
|
protocol: TursoProtocol,
|
|
1727
1818
|
retry: Retry.Retry,
|
|
1819
|
+
telemetry: TELEMETRY,
|
|
1820
|
+
span: "RemoveLocationFromGroup",
|
|
1728
1821
|
}));
|
|
1729
1822
|
|
|
1730
1823
|
export type RemoveOrganizationMemberError = NotFound | TursoOpError;
|
|
@@ -1740,6 +1833,8 @@ export const removeOrganizationMember: API.OperationMethod<
|
|
|
1740
1833
|
errors: [NotFound],
|
|
1741
1834
|
protocol: TursoProtocol,
|
|
1742
1835
|
retry: Retry.Retry,
|
|
1836
|
+
telemetry: TELEMETRY,
|
|
1837
|
+
span: "RemoveOrganizationMember",
|
|
1743
1838
|
}));
|
|
1744
1839
|
|
|
1745
1840
|
export type RestoreDatabaseError = BadRequest | Forbidden | NotFound | TursoOpError;
|
|
@@ -1755,6 +1850,8 @@ export const restoreDatabase: API.OperationMethod<
|
|
|
1755
1850
|
errors: [BadRequest, Forbidden, NotFound],
|
|
1756
1851
|
protocol: TursoProtocol,
|
|
1757
1852
|
retry: Retry.Retry,
|
|
1853
|
+
telemetry: TELEMETRY,
|
|
1854
|
+
span: "RestoreDatabase",
|
|
1758
1855
|
}));
|
|
1759
1856
|
|
|
1760
1857
|
export type RestoreGroupError = BadRequest | Forbidden | NotFound | TursoOpError;
|
|
@@ -1770,6 +1867,8 @@ export const restoreGroup: API.OperationMethod<
|
|
|
1770
1867
|
errors: [BadRequest, Forbidden, NotFound],
|
|
1771
1868
|
protocol: TursoProtocol,
|
|
1772
1869
|
retry: Retry.Retry,
|
|
1870
|
+
telemetry: TELEMETRY,
|
|
1871
|
+
span: "RestoreGroup",
|
|
1773
1872
|
}));
|
|
1774
1873
|
|
|
1775
1874
|
export type RevokeAPITokenError = NotFound | TursoOpError;
|
|
@@ -1785,6 +1884,8 @@ export const revokeAPIToken: API.OperationMethod<
|
|
|
1785
1884
|
errors: [NotFound],
|
|
1786
1885
|
protocol: TursoProtocol,
|
|
1787
1886
|
retry: Retry.Retry,
|
|
1887
|
+
telemetry: TELEMETRY,
|
|
1888
|
+
span: "RevokeAPIToken",
|
|
1788
1889
|
}));
|
|
1789
1890
|
|
|
1790
1891
|
export type RevokeOrganizationAPITokenError = NotFound | TursoOpError;
|
|
@@ -1800,6 +1901,8 @@ export const revokeOrganizationAPIToken: API.OperationMethod<
|
|
|
1800
1901
|
errors: [NotFound],
|
|
1801
1902
|
protocol: TursoProtocol,
|
|
1802
1903
|
retry: Retry.Retry,
|
|
1904
|
+
telemetry: TELEMETRY,
|
|
1905
|
+
span: "RevokeOrganizationAPIToken",
|
|
1803
1906
|
}));
|
|
1804
1907
|
|
|
1805
1908
|
export type TransferGroupError = NotFound | TursoOpError;
|
|
@@ -1815,6 +1918,8 @@ export const transferGroup: API.OperationMethod<
|
|
|
1815
1918
|
errors: [NotFound],
|
|
1816
1919
|
protocol: TursoProtocol,
|
|
1817
1920
|
retry: Retry.Retry,
|
|
1921
|
+
telemetry: TELEMETRY,
|
|
1922
|
+
span: "TransferGroup",
|
|
1818
1923
|
}));
|
|
1819
1924
|
|
|
1820
1925
|
export type UnarchiveGroupError = NotFound | TursoOpError;
|
|
@@ -1830,6 +1935,8 @@ export const unarchiveGroup: API.OperationMethod<
|
|
|
1830
1935
|
errors: [NotFound],
|
|
1831
1936
|
protocol: TursoProtocol,
|
|
1832
1937
|
retry: Retry.Retry,
|
|
1938
|
+
telemetry: TELEMETRY,
|
|
1939
|
+
span: "UnarchiveGroup",
|
|
1833
1940
|
}));
|
|
1834
1941
|
|
|
1835
1942
|
export type UpdateDatabaseConfigurationError = NotFound | TursoOpError;
|
|
@@ -1845,6 +1952,8 @@ export const updateDatabaseConfiguration: API.OperationMethod<
|
|
|
1845
1952
|
errors: [NotFound],
|
|
1846
1953
|
protocol: TursoProtocol,
|
|
1847
1954
|
retry: Retry.Retry,
|
|
1955
|
+
telemetry: TELEMETRY,
|
|
1956
|
+
span: "UpdateDatabaseConfiguration",
|
|
1848
1957
|
}));
|
|
1849
1958
|
|
|
1850
1959
|
export type UpdateGroupConfigurationError = NotFound | TursoOpError;
|
|
@@ -1860,6 +1969,8 @@ export const updateGroupConfiguration: API.OperationMethod<
|
|
|
1860
1969
|
errors: [NotFound],
|
|
1861
1970
|
protocol: TursoProtocol,
|
|
1862
1971
|
retry: Retry.Retry,
|
|
1972
|
+
telemetry: TELEMETRY,
|
|
1973
|
+
span: "UpdateGroupConfiguration",
|
|
1863
1974
|
}));
|
|
1864
1975
|
|
|
1865
1976
|
export type UpdateGroupDatabasesError = NotFound | TursoOpError;
|
|
@@ -1875,6 +1986,8 @@ export const updateGroupDatabases: API.OperationMethod<
|
|
|
1875
1986
|
errors: [NotFound],
|
|
1876
1987
|
protocol: TursoProtocol,
|
|
1877
1988
|
retry: Retry.Retry,
|
|
1989
|
+
telemetry: TELEMETRY,
|
|
1990
|
+
span: "UpdateGroupDatabases",
|
|
1878
1991
|
}));
|
|
1879
1992
|
|
|
1880
1993
|
export type UpdateMemberRoleError = BadRequest | Forbidden | NotFound | TursoOpError;
|
|
@@ -1890,6 +2003,8 @@ export const updateMemberRole: API.OperationMethod<
|
|
|
1890
2003
|
errors: [BadRequest, Forbidden, NotFound],
|
|
1891
2004
|
protocol: TursoProtocol,
|
|
1892
2005
|
retry: Retry.Retry,
|
|
2006
|
+
telemetry: TELEMETRY,
|
|
2007
|
+
span: "UpdateMemberRole",
|
|
1893
2008
|
}));
|
|
1894
2009
|
|
|
1895
2010
|
export type UpdateOrganizationError = TursoOpError;
|
|
@@ -1905,6 +2020,8 @@ export const updateOrganization: API.OperationMethod<
|
|
|
1905
2020
|
errors: [],
|
|
1906
2021
|
protocol: TursoProtocol,
|
|
1907
2022
|
retry: Retry.Retry,
|
|
2023
|
+
telemetry: TELEMETRY,
|
|
2024
|
+
span: "UpdateOrganization",
|
|
1908
2025
|
}));
|
|
1909
2026
|
|
|
1910
2027
|
export type ValidateAPITokenError = TursoOpError;
|
|
@@ -1920,6 +2037,8 @@ export const validateAPIToken: API.OperationMethod<
|
|
|
1920
2037
|
errors: [],
|
|
1921
2038
|
protocol: TursoProtocol,
|
|
1922
2039
|
retry: Retry.Retry,
|
|
2040
|
+
telemetry: TELEMETRY,
|
|
2041
|
+
span: "ValidateAPIToken",
|
|
1923
2042
|
}));
|
|
1924
2043
|
|
|
1925
2044
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
package/lib/credentials.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,8BAA8B,CAAC;AAC7D;;;;;;;GAOG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,MAAM,oBAAoB,GAAG,wBAAwB,CAAC;AAO7D,MAAM,OAAO,WACX,SAAQ,aAAa,CAAb,aAAa,CAAC,OAAO,CAAC,OAAO,EAAsC,CAAC,kBAAkB,CAAC;CAAG;AAEpG,MAAM,SAAS,GAAG,aAAa,CAAC,YAAY,CAAC,GAAG,CAAC;IAC/C,MAAM,EAAE,aAAa,CAAC,YAAY,CAAC,MAAM,CAAC,eAAe,CAAC;CAC3D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,KAAK,CAAC,OAAO,CAC3D,WAAW;AACX,aAAa,CAAC,SAAS,CAAC,IAAI;AAC1B,aAAa,CAAC,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AAEF,kFAAkF;AAClF,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAElE,oFAAoF;AACpF,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC"}
|
package/lib/traits.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"traits.js","sourceRoot":"","sources":["../src/traits.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,cAAc,EACd,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAGhB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,6BAA6B,CAAC"}
|
|
File without changes
|