@distilled.cloud/turso 0.30.3 → 1.0.0-rc.1

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.
Files changed (319) hide show
  1. package/lib/credentials.d.ts.map +1 -1
  2. package/lib/credentials.js +8 -0
  3. package/lib/credentials.js.map +1 -1
  4. package/lib/errors.d.ts +24 -3
  5. package/lib/errors.d.ts.map +1 -1
  6. package/lib/errors.js +13 -4
  7. package/lib/errors.js.map +1 -1
  8. package/lib/index.d.ts +8 -6
  9. package/lib/index.d.ts.map +1 -1
  10. package/lib/index.js +8 -6
  11. package/lib/index.js.map +1 -1
  12. package/lib/protocol.d.ts +18 -0
  13. package/lib/protocol.d.ts.map +1 -0
  14. package/lib/protocol.js +46 -0
  15. package/lib/protocol.js.map +1 -0
  16. package/lib/retry.d.ts +4 -4
  17. package/lib/retry.js +4 -4
  18. package/lib/services/index.d.ts +2 -0
  19. package/lib/services/index.d.ts.map +1 -0
  20. package/lib/services/index.js +3 -0
  21. package/lib/services/index.js.map +1 -0
  22. package/lib/services/turso.d.ts +1280 -0
  23. package/lib/services/turso.d.ts.map +1 -0
  24. package/lib/services/turso.js +1463 -0
  25. package/lib/services/turso.js.map +1 -0
  26. package/lib/traits.d.ts +10 -2
  27. package/lib/traits.d.ts.map +1 -1
  28. package/lib/traits.js +10 -2
  29. package/lib/traits.js.map +1 -1
  30. package/package.json +31 -37
  31. package/src/credentials.ts +8 -0
  32. package/src/errors.ts +42 -5
  33. package/src/index.ts +12 -6
  34. package/src/protocol.ts +68 -0
  35. package/src/retry.ts +4 -4
  36. package/src/services/index.ts +2 -0
  37. package/src/services/turso.ts +3426 -0
  38. package/src/traits.ts +44 -2
  39. package/README.md +0 -36
  40. package/lib/category.d.ts +0 -5
  41. package/lib/category.d.ts.map +0 -1
  42. package/lib/category.js +0 -5
  43. package/lib/category.js.map +0 -1
  44. package/lib/client.d.ts +0 -11
  45. package/lib/client.d.ts.map +0 -1
  46. package/lib/client.js +0 -59
  47. package/lib/client.js.map +0 -1
  48. package/lib/operations/addLocationToGroup.d.ts +0 -30
  49. package/lib/operations/addLocationToGroup.d.ts.map +0 -1
  50. package/lib/operations/addLocationToGroup.js +0 -40
  51. package/lib/operations/addLocationToGroup.js.map +0 -1
  52. package/lib/operations/addOrganizationMember.d.ts +0 -22
  53. package/lib/operations/addOrganizationMember.d.ts.map +0 -1
  54. package/lib/operations/addOrganizationMember.js +0 -32
  55. package/lib/operations/addOrganizationMember.js.map +0 -1
  56. package/lib/operations/createAPIToken.d.ts +0 -28
  57. package/lib/operations/createAPIToken.d.ts.map +0 -1
  58. package/lib/operations/createAPIToken.js +0 -44
  59. package/lib/operations/createAPIToken.js.map +0 -1
  60. package/lib/operations/createDatabase.d.ts +0 -35
  61. package/lib/operations/createDatabase.d.ts.map +0 -1
  62. package/lib/operations/createDatabase.js +0 -53
  63. package/lib/operations/createDatabase.js.map +0 -1
  64. package/lib/operations/createDatabaseToken.d.ts +0 -30
  65. package/lib/operations/createDatabaseToken.d.ts.map +0 -1
  66. package/lib/operations/createDatabaseToken.js +0 -40
  67. package/lib/operations/createDatabaseToken.js.map +0 -1
  68. package/lib/operations/createGroup.d.ts +0 -29
  69. package/lib/operations/createGroup.d.ts.map +0 -1
  70. package/lib/operations/createGroup.js +0 -51
  71. package/lib/operations/createGroup.js.map +0 -1
  72. package/lib/operations/createGroupToken.d.ts +0 -30
  73. package/lib/operations/createGroupToken.d.ts.map +0 -1
  74. package/lib/operations/createGroupToken.js +0 -38
  75. package/lib/operations/createGroupToken.js.map +0 -1
  76. package/lib/operations/deleteDatabase.d.ts +0 -21
  77. package/lib/operations/deleteDatabase.d.ts.map +0 -1
  78. package/lib/operations/deleteDatabase.js +0 -29
  79. package/lib/operations/deleteDatabase.js.map +0 -1
  80. package/lib/operations/deleteGroup.d.ts +0 -28
  81. package/lib/operations/deleteGroup.d.ts.map +0 -1
  82. package/lib/operations/deleteGroup.js +0 -36
  83. package/lib/operations/deleteGroup.js.map +0 -1
  84. package/lib/operations/deleteOrganizationInviteByEmail.d.ts +0 -21
  85. package/lib/operations/deleteOrganizationInviteByEmail.d.ts.map +0 -1
  86. package/lib/operations/deleteOrganizationInviteByEmail.js +0 -30
  87. package/lib/operations/deleteOrganizationInviteByEmail.js.map +0 -1
  88. package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts +0 -18
  89. package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts.map +0 -1
  90. package/lib/operations/deleteOrganizationInviteByEmailV2.js +0 -29
  91. package/lib/operations/deleteOrganizationInviteByEmailV2.js.map +0 -1
  92. package/lib/operations/getCurrentUser.d.ts +0 -23
  93. package/lib/operations/getCurrentUser.d.ts.map +0 -1
  94. package/lib/operations/getCurrentUser.js +0 -26
  95. package/lib/operations/getCurrentUser.js.map +0 -1
  96. package/lib/operations/getDatabase.d.ts +0 -36
  97. package/lib/operations/getDatabase.d.ts.map +0 -1
  98. package/lib/operations/getDatabase.js +0 -44
  99. package/lib/operations/getDatabase.js.map +0 -1
  100. package/lib/operations/getDatabaseConfiguration.d.ts +0 -27
  101. package/lib/operations/getDatabaseConfiguration.d.ts.map +0 -1
  102. package/lib/operations/getDatabaseConfiguration.js +0 -37
  103. package/lib/operations/getDatabaseConfiguration.js.map +0 -1
  104. package/lib/operations/getDatabaseInstance.d.ts +0 -29
  105. package/lib/operations/getDatabaseInstance.d.ts.map +0 -1
  106. package/lib/operations/getDatabaseInstance.js +0 -39
  107. package/lib/operations/getDatabaseInstance.js.map +0 -1
  108. package/lib/operations/getDatabaseStats.d.ts +0 -25
  109. package/lib/operations/getDatabaseStats.d.ts.map +0 -1
  110. package/lib/operations/getDatabaseStats.js +0 -33
  111. package/lib/operations/getDatabaseStats.js.map +0 -1
  112. package/lib/operations/getDatabaseUsage.d.ts +0 -42
  113. package/lib/operations/getDatabaseUsage.d.ts.map +0 -1
  114. package/lib/operations/getDatabaseUsage.js +0 -50
  115. package/lib/operations/getDatabaseUsage.js.map +0 -1
  116. package/lib/operations/getGroup.d.ts +0 -28
  117. package/lib/operations/getGroup.d.ts.map +0 -1
  118. package/lib/operations/getGroup.js +0 -36
  119. package/lib/operations/getGroup.js.map +0 -1
  120. package/lib/operations/getGroupConfiguration.d.ts +0 -21
  121. package/lib/operations/getGroupConfiguration.d.ts.map +0 -1
  122. package/lib/operations/getGroupConfiguration.js +0 -31
  123. package/lib/operations/getGroupConfiguration.js.map +0 -1
  124. package/lib/operations/getOrganization.d.ts +0 -30
  125. package/lib/operations/getOrganization.d.ts.map +0 -1
  126. package/lib/operations/getOrganization.js +0 -35
  127. package/lib/operations/getOrganization.js.map +0 -1
  128. package/lib/operations/getOrganizationMember.d.ts +0 -25
  129. package/lib/operations/getOrganizationMember.d.ts.map +0 -1
  130. package/lib/operations/getOrganizationMember.js +0 -35
  131. package/lib/operations/getOrganizationMember.js.map +0 -1
  132. package/lib/operations/getOrganizationSubscription.d.ts +0 -23
  133. package/lib/operations/getOrganizationSubscription.d.ts.map +0 -1
  134. package/lib/operations/getOrganizationSubscription.js +0 -32
  135. package/lib/operations/getOrganizationSubscription.js.map +0 -1
  136. package/lib/operations/getOrganizationUsage.d.ts +0 -47
  137. package/lib/operations/getOrganizationUsage.d.ts.map +0 -1
  138. package/lib/operations/getOrganizationUsage.js +0 -56
  139. package/lib/operations/getOrganizationUsage.js.map +0 -1
  140. package/lib/operations/index.d.ts +0 -50
  141. package/lib/operations/index.d.ts.map +0 -1
  142. package/lib/operations/index.js +0 -50
  143. package/lib/operations/index.js.map +0 -1
  144. package/lib/operations/invalidateDatabaseTokens.d.ts +0 -19
  145. package/lib/operations/invalidateDatabaseTokens.d.ts.map +0 -1
  146. package/lib/operations/invalidateDatabaseTokens.js +0 -29
  147. package/lib/operations/invalidateDatabaseTokens.js.map +0 -1
  148. package/lib/operations/invalidateGroupTokens.d.ts +0 -19
  149. package/lib/operations/invalidateGroupTokens.d.ts.map +0 -1
  150. package/lib/operations/invalidateGroupTokens.js +0 -29
  151. package/lib/operations/invalidateGroupTokens.js.map +0 -1
  152. package/lib/operations/inviteOrganizationMember.d.ts +0 -69
  153. package/lib/operations/inviteOrganizationMember.d.ts.map +0 -1
  154. package/lib/operations/inviteOrganizationMember.js +0 -54
  155. package/lib/operations/inviteOrganizationMember.js.map +0 -1
  156. package/lib/operations/inviteOrganizationMemberV2.d.ts +0 -25
  157. package/lib/operations/inviteOrganizationMemberV2.d.ts.map +0 -1
  158. package/lib/operations/inviteOrganizationMemberV2.js +0 -34
  159. package/lib/operations/inviteOrganizationMemberV2.js.map +0 -1
  160. package/lib/operations/listAPITokens.d.ts +0 -22
  161. package/lib/operations/listAPITokens.d.ts.map +0 -1
  162. package/lib/operations/listAPITokens.js +0 -25
  163. package/lib/operations/listAPITokens.js.map +0 -1
  164. package/lib/operations/listDatabaseInstances.d.ts +0 -27
  165. package/lib/operations/listDatabaseInstances.d.ts.map +0 -1
  166. package/lib/operations/listDatabaseInstances.js +0 -37
  167. package/lib/operations/listDatabaseInstances.js.map +0 -1
  168. package/lib/operations/listDatabases.d.ts +0 -39
  169. package/lib/operations/listDatabases.d.ts.map +0 -1
  170. package/lib/operations/listDatabases.js +0 -46
  171. package/lib/operations/listDatabases.js.map +0 -1
  172. package/lib/operations/listGroups.d.ts +0 -25
  173. package/lib/operations/listGroups.d.ts.map +0 -1
  174. package/lib/operations/listGroups.js +0 -32
  175. package/lib/operations/listGroups.js.map +0 -1
  176. package/lib/operations/listLocations.d.ts +0 -15
  177. package/lib/operations/listLocations.d.ts.map +0 -1
  178. package/lib/operations/listLocations.js +0 -18
  179. package/lib/operations/listLocations.js.map +0 -1
  180. package/lib/operations/listOrganizationAPITokens.d.ts +0 -33
  181. package/lib/operations/listOrganizationAPITokens.d.ts.map +0 -1
  182. package/lib/operations/listOrganizationAPITokens.js +0 -42
  183. package/lib/operations/listOrganizationAPITokens.js.map +0 -1
  184. package/lib/operations/listOrganizationAuditLogs.d.ts +0 -35
  185. package/lib/operations/listOrganizationAuditLogs.d.ts.map +0 -1
  186. package/lib/operations/listOrganizationAuditLogs.js +0 -69
  187. package/lib/operations/listOrganizationAuditLogs.js.map +0 -1
  188. package/lib/operations/listOrganizationInvites.d.ts +0 -64
  189. package/lib/operations/listOrganizationInvites.d.ts.map +0 -1
  190. package/lib/operations/listOrganizationInvites.js +0 -50
  191. package/lib/operations/listOrganizationInvites.js.map +0 -1
  192. package/lib/operations/listOrganizationInvitesV2.d.ts +0 -23
  193. package/lib/operations/listOrganizationInvitesV2.d.ts.map +0 -1
  194. package/lib/operations/listOrganizationInvitesV2.js +0 -32
  195. package/lib/operations/listOrganizationInvitesV2.js.map +0 -1
  196. package/lib/operations/listOrganizationInvoices.d.ts +0 -27
  197. package/lib/operations/listOrganizationInvoices.d.ts.map +0 -1
  198. package/lib/operations/listOrganizationInvoices.js +0 -36
  199. package/lib/operations/listOrganizationInvoices.js.map +0 -1
  200. package/lib/operations/listOrganizationMembers.d.ts +0 -22
  201. package/lib/operations/listOrganizationMembers.d.ts.map +0 -1
  202. package/lib/operations/listOrganizationMembers.js +0 -31
  203. package/lib/operations/listOrganizationMembers.js.map +0 -1
  204. package/lib/operations/listOrganizationPlans.d.ts +0 -34
  205. package/lib/operations/listOrganizationPlans.d.ts.map +0 -1
  206. package/lib/operations/listOrganizationPlans.js +0 -43
  207. package/lib/operations/listOrganizationPlans.js.map +0 -1
  208. package/lib/operations/listOrganizations.d.ts +0 -24
  209. package/lib/operations/listOrganizations.d.ts.map +0 -1
  210. package/lib/operations/listOrganizations.js +0 -27
  211. package/lib/operations/listOrganizations.js.map +0 -1
  212. package/lib/operations/removeLocationFromGroup.d.ts +0 -30
  213. package/lib/operations/removeLocationFromGroup.d.ts.map +0 -1
  214. package/lib/operations/removeLocationFromGroup.js +0 -40
  215. package/lib/operations/removeLocationFromGroup.js.map +0 -1
  216. package/lib/operations/removeOrganizationMember.d.ts +0 -21
  217. package/lib/operations/removeOrganizationMember.d.ts.map +0 -1
  218. package/lib/operations/removeOrganizationMember.js +0 -31
  219. package/lib/operations/removeOrganizationMember.js.map +0 -1
  220. package/lib/operations/revokeAPIToken.d.ts +0 -19
  221. package/lib/operations/revokeAPIToken.d.ts.map +0 -1
  222. package/lib/operations/revokeAPIToken.js +0 -24
  223. package/lib/operations/revokeAPIToken.js.map +0 -1
  224. package/lib/operations/revokeOrganizationAPIToken.d.ts +0 -25
  225. package/lib/operations/revokeOrganizationAPIToken.d.ts.map +0 -1
  226. package/lib/operations/revokeOrganizationAPIToken.js +0 -34
  227. package/lib/operations/revokeOrganizationAPIToken.js.map +0 -1
  228. package/lib/operations/transferGroup.d.ts +0 -27
  229. package/lib/operations/transferGroup.d.ts.map +0 -1
  230. package/lib/operations/transferGroup.js +0 -35
  231. package/lib/operations/transferGroup.js.map +0 -1
  232. package/lib/operations/unarchiveGroup.d.ts +0 -28
  233. package/lib/operations/unarchiveGroup.d.ts.map +0 -1
  234. package/lib/operations/unarchiveGroup.js +0 -36
  235. package/lib/operations/unarchiveGroup.js.map +0 -1
  236. package/lib/operations/updateDatabaseConfiguration.d.ts +0 -34
  237. package/lib/operations/updateDatabaseConfiguration.d.ts.map +0 -1
  238. package/lib/operations/updateDatabaseConfiguration.js +0 -44
  239. package/lib/operations/updateDatabaseConfiguration.js.map +0 -1
  240. package/lib/operations/updateGroupConfiguration.d.ts +0 -22
  241. package/lib/operations/updateGroupConfiguration.d.ts.map +0 -1
  242. package/lib/operations/updateGroupConfiguration.js +0 -32
  243. package/lib/operations/updateGroupConfiguration.js.map +0 -1
  244. package/lib/operations/updateGroupDatabases.d.ts +0 -19
  245. package/lib/operations/updateGroupDatabases.d.ts.map +0 -1
  246. package/lib/operations/updateGroupDatabases.js +0 -29
  247. package/lib/operations/updateGroupDatabases.js.map +0 -1
  248. package/lib/operations/updateMemberRole.d.ts +0 -26
  249. package/lib/operations/updateMemberRole.d.ts.map +0 -1
  250. package/lib/operations/updateMemberRole.js +0 -34
  251. package/lib/operations/updateMemberRole.js.map +0 -1
  252. package/lib/operations/updateOrganization.d.ts +0 -31
  253. package/lib/operations/updateOrganization.d.ts.map +0 -1
  254. package/lib/operations/updateOrganization.js +0 -37
  255. package/lib/operations/updateOrganization.js.map +0 -1
  256. package/lib/operations/validateAPIToken.d.ts +0 -15
  257. package/lib/operations/validateAPIToken.d.ts.map +0 -1
  258. package/lib/operations/validateAPIToken.js +0 -18
  259. package/lib/operations/validateAPIToken.js.map +0 -1
  260. package/lib/sensitive.d.ts +0 -5
  261. package/lib/sensitive.d.ts.map +0 -1
  262. package/lib/sensitive.js +0 -5
  263. package/lib/sensitive.js.map +0 -1
  264. package/src/category.ts +0 -4
  265. package/src/client.ts +0 -74
  266. package/src/operations/addLocationToGroup.ts +0 -63
  267. package/src/operations/addOrganizationMember.ts +0 -49
  268. package/src/operations/createAPIToken.ts +0 -77
  269. package/src/operations/createDatabase.ts +0 -94
  270. package/src/operations/createDatabaseToken.ts +0 -62
  271. package/src/operations/createGroup.ts +0 -92
  272. package/src/operations/createGroupToken.ts +0 -58
  273. package/src/operations/deleteDatabase.ts +0 -42
  274. package/src/operations/deleteGroup.ts +0 -58
  275. package/src/operations/deleteOrganizationInviteByEmail.ts +0 -38
  276. package/src/operations/deleteOrganizationInviteByEmailV2.ts +0 -40
  277. package/src/operations/getCurrentUser.ts +0 -46
  278. package/src/operations/getDatabase.ts +0 -74
  279. package/src/operations/getDatabaseConfiguration.ts +0 -56
  280. package/src/operations/getDatabaseInstance.ts +0 -61
  281. package/src/operations/getDatabaseStats.ts +0 -54
  282. package/src/operations/getDatabaseUsage.ts +0 -92
  283. package/src/operations/getGroup.ts +0 -58
  284. package/src/operations/getGroupConfiguration.ts +0 -44
  285. package/src/operations/getOrganization.ts +0 -60
  286. package/src/operations/getOrganizationMember.ts +0 -56
  287. package/src/operations/getOrganizationSubscription.ts +0 -51
  288. package/src/operations/getOrganizationUsage.ts +0 -113
  289. package/src/operations/index.ts +0 -49
  290. package/src/operations/invalidateDatabaseTokens.ts +0 -40
  291. package/src/operations/invalidateGroupTokens.ts +0 -40
  292. package/src/operations/inviteOrganizationMember.ts +0 -66
  293. package/src/operations/inviteOrganizationMemberV2.ts +0 -55
  294. package/src/operations/listAPITokens.ts +0 -46
  295. package/src/operations/listDatabaseInstances.ts +0 -60
  296. package/src/operations/listDatabases.ts +0 -80
  297. package/src/operations/listGroups.ts +0 -55
  298. package/src/operations/listLocations.ts +0 -28
  299. package/src/operations/listOrganizationAPITokens.ts +0 -68
  300. package/src/operations/listOrganizationAuditLogs.ts +0 -128
  301. package/src/operations/listOrganizationInvites.ts +0 -64
  302. package/src/operations/listOrganizationInvitesV2.ts +0 -53
  303. package/src/operations/listOrganizationInvoices.ts +0 -60
  304. package/src/operations/listOrganizationMembers.ts +0 -53
  305. package/src/operations/listOrganizationPlans.ts +0 -78
  306. package/src/operations/listOrganizations.ts +0 -48
  307. package/src/operations/removeLocationFromGroup.ts +0 -63
  308. package/src/operations/removeOrganizationMember.ts +0 -44
  309. package/src/operations/revokeAPIToken.ts +0 -36
  310. package/src/operations/revokeOrganizationAPIToken.ts +0 -47
  311. package/src/operations/transferGroup.ts +0 -54
  312. package/src/operations/unarchiveGroup.ts +0 -58
  313. package/src/operations/updateDatabaseConfiguration.ts +0 -70
  314. package/src/operations/updateGroupConfiguration.ts +0 -46
  315. package/src/operations/updateGroupDatabases.ts +0 -40
  316. package/src/operations/updateMemberRole.ts +0 -54
  317. package/src/operations/updateOrganization.ts +0 -64
  318. package/src/operations/validateAPIToken.ts +0 -28
  319. package/src/sensitive.ts +0 -4
@@ -0,0 +1,1280 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as API from "@distilled.cloud/core/api";
3
+ import { type TursoOpError, type TursoOpContext } from "../protocol.ts";
4
+ export type { TursoOpError, TursoOpContext };
5
+ declare const BadRequest_base: S.Class<BadRequest, S.TaggedStruct<"BadRequest", {
6
+ readonly code: any;
7
+ readonly message: any;
8
+ }>, import("effect/Cause").YieldableError>;
9
+ export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
10
+ }
11
+ declare const Conflict_base: S.Class<Conflict, S.TaggedStruct<"Conflict", {
12
+ readonly code: any;
13
+ readonly message: any;
14
+ }>, import("effect/Cause").YieldableError>;
15
+ export declare class Conflict extends /*@__PURE__*/ Conflict_base {
16
+ }
17
+ declare const Forbidden_base: S.Class<Forbidden, S.TaggedStruct<"Forbidden", {
18
+ readonly code: any;
19
+ readonly message: any;
20
+ }>, import("effect/Cause").YieldableError>;
21
+ export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
22
+ }
23
+ declare const NotFound_base: S.Class<NotFound, S.TaggedStruct<"NotFound", {
24
+ readonly code: any;
25
+ readonly message: any;
26
+ }>, import("effect/Cause").YieldableError>;
27
+ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
28
+ }
29
+ export interface AddLocationToGroupRequest {
30
+ /** The slug of the organization or user account. */
31
+ organizationSlug: string;
32
+ /** The name of the group. */
33
+ groupName: string;
34
+ /** The location code to add to the group. */
35
+ location: string;
36
+ }
37
+ export declare const AddLocationToGroupRequest: S.Schema<AddLocationToGroupRequest>;
38
+ /** An array of location keys the group is located. */
39
+ export type GroupLocationsList = Array<string>;
40
+ export declare const GroupLocationsList: S.Schema<GroupLocationsList>;
41
+ export interface Group {
42
+ /** The group name, unique across your organization. */
43
+ name?: string;
44
+ /** The current libSQL server version the databases in that group are running. */
45
+ version?: string;
46
+ /** The group universal unique identifier (UUID). */
47
+ uuid?: string;
48
+ /** An array of location keys the group is located. */
49
+ locations?: GroupLocationsList;
50
+ /** The primary location key. */
51
+ primary?: string;
52
+ /** The current status for delete protection. If enabled, the group and all its databases cannot be deleted. */
53
+ delete_protection?: boolean;
54
+ }
55
+ export declare const Group: S.Schema<Group>;
56
+ export interface AddLocationToGroupResponse {
57
+ /** The group with the added location */
58
+ group?: Group;
59
+ }
60
+ export declare const AddLocationToGroupResponse: S.Schema<AddLocationToGroupResponse>;
61
+ /** The role given to the user. */
62
+ export type AddOrganizationMemberRequestRole = "admin" | "member" | "viewer";
63
+ export declare const AddOrganizationMemberRequestRole: any;
64
+ export interface AddOrganizationMemberRequest {
65
+ /** The slug of the organization or user account. */
66
+ organizationSlug: string;
67
+ /** The username of an existing Turso user. */
68
+ username?: string;
69
+ /** The role given to the user. */
70
+ role?: AddOrganizationMemberRequestRole | (string & {});
71
+ }
72
+ export declare const AddOrganizationMemberRequest: S.Schema<AddOrganizationMemberRequest>;
73
+ /** The role assigned to the member. */
74
+ export type Role = "owner" | "admin" | "member" | "viewer";
75
+ export declare const Role: any;
76
+ export interface AddOrganizationMemberResponse {
77
+ member?: string;
78
+ role?: Role;
79
+ }
80
+ export declare const AddOrganizationMemberResponse: S.Schema<AddOrganizationMemberResponse>;
81
+ export type CreateAPITokenRequestScopesItem = "read" | "db:create" | "db:delete" | "db:configure" | "db:mint-token" | "db:rotate-creds" | "group:configure" | "group:mint-token" | "group:rotate-creds" | "read-only" | "full-access";
82
+ export declare const CreateAPITokenRequestScopesItem: any;
83
+ /** Permissions to grant a group-scoped token. Each entry is either an individual scope or one of the presets `read-only` (expands to `read`) and `full-access` (expands to every scope). Required and must be non-empty when `group` is set. `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. */
84
+ export type CreateAPITokenRequestScopesList = Array<CreateAPITokenRequestScopesItem | (string & {})>;
85
+ export declare const CreateAPITokenRequestScopesList: S.Schema<CreateAPITokenRequestScopesList>;
86
+ export interface CreateAPITokenRequest {
87
+ /** The name of the api token. */
88
+ tokenName: string;
89
+ /** The organization slug to restrict this token to. Required when `group` is set. */
90
+ organization?: string;
91
+ /** The group name (inside `organization`) to restrict this token to. Requires `organization` and a non-empty `scopes` list. */
92
+ group?: string;
93
+ /** Permissions to grant a group-scoped token. Each entry is either an individual scope or one of the presets `read-only` (expands to `read`) and `full-access` (expands to every scope). Required and must be non-empty when `group` is set. `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. */
94
+ scopes?: CreateAPITokenRequestScopesList;
95
+ }
96
+ export declare const CreateAPITokenRequest: S.Schema<CreateAPITokenRequest>;
97
+ export interface CreateAPITokenResponse {
98
+ name?: string;
99
+ id?: string;
100
+ /** 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.** */
101
+ token?: string;
102
+ }
103
+ export declare const CreateAPITokenResponse: S.Schema<CreateAPITokenResponse>;
104
+ /** 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). */
105
+ export type CreateDatabaseRequestSeedType = "database" | "database_upload";
106
+ export declare const CreateDatabaseRequestSeedType: any;
107
+ export interface CreateDatabaseRequestSeed {
108
+ /** 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). */
109
+ type?: CreateDatabaseRequestSeedType | (string & {});
110
+ /** The name of the existing database when `database` is used as a seed type. */
111
+ name?: string;
112
+ /** 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. */
113
+ timestamp?: string;
114
+ }
115
+ export declare const CreateDatabaseRequestSeed: S.Schema<CreateDatabaseRequestSeed>;
116
+ /** The encryption cipher to use. */
117
+ export type CreateDatabaseRequestRemoteEncryptionEncryptionCipher = "aes256gcm" | "aes128gcm" | "chacha20poly1305" | "aegis128l" | "aegis128x2" | "aegis128x4" | "aegis256" | "aegis256x2" | "aegis256x4";
118
+ export declare const CreateDatabaseRequestRemoteEncryptionEncryptionCipher: any;
119
+ /** 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). */
120
+ export interface CreateDatabaseRequestRemoteEncryption {
121
+ /** Base64-encoded encryption key. Key size depends on cipher: 32 bytes for aes256gcm, chacha20poly1305, aegis256 variants; 16 bytes for aes128gcm, aegis128l variants. */
122
+ encryption_key?: string;
123
+ /** The encryption cipher to use. */
124
+ encryption_cipher?: CreateDatabaseRequestRemoteEncryptionEncryptionCipher | (string & {});
125
+ }
126
+ export declare const CreateDatabaseRequestRemoteEncryption: S.Schema<CreateDatabaseRequestRemoteEncryption>;
127
+ export interface CreateDatabaseRequest {
128
+ /** The slug of the organization or user account. */
129
+ organizationSlug: string;
130
+ /** The name of the new database. Must contain only lowercase letters, numbers, dashes. No longer than 64 characters. */
131
+ name: string;
132
+ /** The name of the group where the database should be created. **The group must already exist.** */
133
+ group: string;
134
+ seed?: CreateDatabaseRequestSeed;
135
+ /** The maximum size of the database in bytes. Values with units are also accepted, e.g. 1mb, 256mb, 1gb. */
136
+ size_limit?: string;
137
+ /** 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). */
138
+ remote_encryption?: CreateDatabaseRequestRemoteEncryption;
139
+ }
140
+ export declare const CreateDatabaseRequest: S.Schema<CreateDatabaseRequest>;
141
+ export interface CreateDatabaseOutput {
142
+ DbId?: string;
143
+ Hostname?: string;
144
+ Name?: string;
145
+ }
146
+ export declare const CreateDatabaseOutput: S.Schema<CreateDatabaseOutput>;
147
+ export interface CreateDatabaseResponse {
148
+ /** The newly created database */
149
+ database?: CreateDatabaseOutput;
150
+ }
151
+ export declare const CreateDatabaseResponse: S.Schema<CreateDatabaseResponse>;
152
+ export type CreateDatabaseTokenRequestAuthorization = "full-access" | "read-only";
153
+ export declare const CreateDatabaseTokenRequestAuthorization: any;
154
+ export type CreateDatabaseTokenRequestPermissionsReadAttachDatabasesList = Array<string>;
155
+ export declare const CreateDatabaseTokenRequestPermissionsReadAttachDatabasesList: S.Schema<CreateDatabaseTokenRequestPermissionsReadAttachDatabasesList>;
156
+ /** Read `ATTACH` permission for the token. */
157
+ export interface CreateDatabaseTokenRequestPermissionsReadAttach {
158
+ databases?: CreateDatabaseTokenRequestPermissionsReadAttachDatabasesList;
159
+ }
160
+ export declare const CreateDatabaseTokenRequestPermissionsReadAttach: S.Schema<CreateDatabaseTokenRequestPermissionsReadAttach>;
161
+ /** The permissions for the token. */
162
+ export interface CreateDatabaseTokenRequestPermissions {
163
+ /** Read `ATTACH` permission for the token. */
164
+ read_attach?: CreateDatabaseTokenRequestPermissionsReadAttach;
165
+ }
166
+ export declare const CreateDatabaseTokenRequestPermissions: S.Schema<CreateDatabaseTokenRequestPermissions>;
167
+ export interface CreateDatabaseTokenRequest {
168
+ /** The slug of the organization or user account. */
169
+ organizationSlug: string;
170
+ /** The name of the database. */
171
+ databaseName: string;
172
+ /** Expiration time for the token (e.g., 2w1d30m). */
173
+ expiration?: string;
174
+ /** Authorization level for the token (full-access or read-only). */
175
+ authorization?: CreateDatabaseTokenRequestAuthorization | (string & {});
176
+ /** The permissions for the token. */
177
+ permissions?: CreateDatabaseTokenRequestPermissions;
178
+ }
179
+ export declare const CreateDatabaseTokenRequest: S.Schema<CreateDatabaseTokenRequest>;
180
+ export interface CreateDatabaseTokenResponse {
181
+ /** The generated authorization token (JWT). */
182
+ jwt?: string;
183
+ }
184
+ export declare const CreateDatabaseTokenResponse: S.Schema<CreateDatabaseTokenResponse>;
185
+ /** Set to `all` to enable all extensions. */
186
+ export type ExtensionsCase0 = "all";
187
+ export declare const ExtensionsCase0: any;
188
+ export type ExtensionsCase1Item = "vector" | "crypto" | "fuzzy" | "math" | "stats" | "text" | "unicode" | "uuid" | "regexp" | "vec";
189
+ export declare const ExtensionsCase1Item: any;
190
+ /** Array of extensions to enable. */
191
+ export type ExtensionsCase1List = Array<ExtensionsCase1Item | (string & {})>;
192
+ export declare const ExtensionsCase1List: S.Schema<ExtensionsCase1List>;
193
+ /** The extensions to enable for new databases created in this group. Users looking to enable vector extensions should instead use the native [libSQL vector datatype](/features/ai-and-embeddings). */
194
+ export type Extensions = ExtensionsCase0 | ExtensionsCase1List;
195
+ export declare const Extensions: S.Schema<Extensions>;
196
+ export interface CreateGroupRequest {
197
+ /** The slug of the organization or user account. */
198
+ organizationSlug: string;
199
+ /** The name of the new group. */
200
+ name: string;
201
+ /** The location key for the new group. */
202
+ location: string;
203
+ extensions?: Extensions;
204
+ }
205
+ export declare const CreateGroupRequest: S.Schema<CreateGroupRequest>;
206
+ export interface CreateGroupResponse {
207
+ /** The newly created group */
208
+ group?: Group;
209
+ }
210
+ export declare const CreateGroupResponse: S.Schema<CreateGroupResponse>;
211
+ export type CreateGroupTokenRequestAuthorization = "full-access" | "read-only";
212
+ export declare const CreateGroupTokenRequestAuthorization: any;
213
+ export type CreateGroupTokenRequestPermissionsReadAttachDatabasesList = Array<string>;
214
+ export declare const CreateGroupTokenRequestPermissionsReadAttachDatabasesList: S.Schema<CreateGroupTokenRequestPermissionsReadAttachDatabasesList>;
215
+ /** Read `ATTACH` permission for the token. */
216
+ export interface CreateGroupTokenRequestPermissionsReadAttach {
217
+ databases?: CreateGroupTokenRequestPermissionsReadAttachDatabasesList;
218
+ }
219
+ export declare const CreateGroupTokenRequestPermissionsReadAttach: S.Schema<CreateGroupTokenRequestPermissionsReadAttach>;
220
+ /** The permissions for the token. */
221
+ export interface CreateGroupTokenRequestPermissions {
222
+ /** Read `ATTACH` permission for the token. */
223
+ read_attach?: CreateGroupTokenRequestPermissionsReadAttach;
224
+ }
225
+ export declare const CreateGroupTokenRequestPermissions: S.Schema<CreateGroupTokenRequestPermissions>;
226
+ export interface CreateGroupTokenRequest {
227
+ /** The slug of the organization or user account. */
228
+ organizationSlug: string;
229
+ /** The name of the group. */
230
+ groupName: string;
231
+ /** Expiration time for the token (e.g., 2w1d30m). */
232
+ expiration?: string;
233
+ /** Authorization level for the token (full-access or read-only). */
234
+ authorization?: CreateGroupTokenRequestAuthorization | (string & {});
235
+ /** The permissions for the token. */
236
+ permissions?: CreateGroupTokenRequestPermissions;
237
+ }
238
+ export declare const CreateGroupTokenRequest: S.Schema<CreateGroupTokenRequest>;
239
+ export interface CreateGroupTokenResponse {
240
+ /** The generated authorization token (JWT). */
241
+ jwt?: string;
242
+ }
243
+ export declare const CreateGroupTokenResponse: S.Schema<CreateGroupTokenResponse>;
244
+ export interface DeleteDatabaseRequest {
245
+ /** The slug of the organization or user account. */
246
+ organizationSlug: string;
247
+ /** The name of the database. */
248
+ databaseName: string;
249
+ }
250
+ export declare const DeleteDatabaseRequest: S.Schema<DeleteDatabaseRequest>;
251
+ export interface DeleteDatabaseResponse {
252
+ /** The name of the database that was deleted. */
253
+ database?: string;
254
+ }
255
+ export declare const DeleteDatabaseResponse: S.Schema<DeleteDatabaseResponse>;
256
+ export interface DeleteGroupRequest {
257
+ /** The slug of the organization or user account. */
258
+ organizationSlug: string;
259
+ /** The name of the group. */
260
+ groupName: string;
261
+ }
262
+ export declare const DeleteGroupRequest: S.Schema<DeleteGroupRequest>;
263
+ export interface DeleteGroupResponse {
264
+ group?: Group;
265
+ }
266
+ export declare const DeleteGroupResponse: S.Schema<DeleteGroupResponse>;
267
+ export interface DeleteOrganizationInviteByEmailV2Request {
268
+ /** The slug of the organization or user account. */
269
+ organizationSlug: string;
270
+ email: string;
271
+ }
272
+ export declare const DeleteOrganizationInviteByEmailV2Request: S.Schema<DeleteOrganizationInviteByEmailV2Request>;
273
+ export interface DeleteOrganizationInviteByEmailV2Response {
274
+ }
275
+ export declare const DeleteOrganizationInviteByEmailV2Response: S.Schema<DeleteOrganizationInviteByEmailV2Response>;
276
+ export interface GetCurrentUserRequest {
277
+ }
278
+ export declare const GetCurrentUserRequest: S.Schema<GetCurrentUserRequest>;
279
+ export interface GetCurrentUserResponseUser {
280
+ /** The username of the user. */
281
+ username?: string;
282
+ /** The display name of the user. */
283
+ name?: string;
284
+ /** The primary email address of the user. */
285
+ email?: string;
286
+ /** URL to the user's avatar image. */
287
+ avatarUrl?: string;
288
+ /** The user's current plan. */
289
+ plan?: string;
290
+ /** Whether the user has multi-factor authentication enabled. */
291
+ mfa?: boolean;
292
+ /** Whether the user has pending organization invites waiting to be accepted or declined. */
293
+ has_pending_invites?: boolean;
294
+ }
295
+ export declare const GetCurrentUserResponseUser: S.Schema<GetCurrentUserResponseUser>;
296
+ export interface GetCurrentUserResponse {
297
+ user?: GetCurrentUserResponseUser;
298
+ }
299
+ export declare const GetCurrentUserResponse: S.Schema<GetCurrentUserResponse>;
300
+ export interface GetDatabaseRequest {
301
+ /** The slug of the organization or user account. */
302
+ organizationSlug: string;
303
+ /** The name of the database. */
304
+ databaseName: string;
305
+ }
306
+ export declare const GetDatabaseRequest: S.Schema<GetDatabaseRequest>;
307
+ /** A list of regions for the group the database belongs to. */
308
+ export type DatabaseRegionsList = Array<string>;
309
+ export declare const DatabaseRegionsList: S.Schema<DatabaseRegionsList>;
310
+ export interface DatabaseParent {
311
+ /** The parent database identifier. */
312
+ id?: string;
313
+ /** The name of the parent database. */
314
+ name?: string;
315
+ /** The timestamp when the database was branched from the parent. */
316
+ branched_at?: string;
317
+ }
318
+ export declare const DatabaseParent: S.Schema<DatabaseParent>;
319
+ export interface Database {
320
+ /** The database name, **unique** across your organization. */
321
+ Name?: string;
322
+ /** The database universal unique identifier (UUID). */
323
+ DbId?: string;
324
+ /** The DNS hostname used for client libSQL and HTTP connections. */
325
+ Hostname?: string;
326
+ /** The current status for blocked reads. */
327
+ block_reads?: boolean;
328
+ /** The current status for blocked writes. */
329
+ block_writes?: boolean;
330
+ /** A list of regions for the group the database belongs to. */
331
+ regions?: DatabaseRegionsList;
332
+ /** The primary region location code the group the database belongs to. */
333
+ primaryRegion?: string;
334
+ /** The name of the group the database belongs to. */
335
+ group?: string;
336
+ /** The current status for delete protection. If enabled, the database cannot be deleted. */
337
+ delete_protection?: boolean;
338
+ parent?: DatabaseParent | null;
339
+ }
340
+ export declare const Database: S.Schema<Database>;
341
+ export interface GetDatabaseResponse {
342
+ database?: Database;
343
+ }
344
+ export declare const GetDatabaseResponse: S.Schema<GetDatabaseResponse>;
345
+ export interface GetDatabaseConfigurationRequest {
346
+ /** The slug of the organization or user account. */
347
+ organizationSlug: string;
348
+ /** The name of the database. */
349
+ databaseName: string;
350
+ }
351
+ export declare const GetDatabaseConfigurationRequest: S.Schema<GetDatabaseConfigurationRequest>;
352
+ /** List of allowed IP addresses and CIDR blocks. Empty means no IP restriction. */
353
+ export type DatabaseConfigurationResponseAllowedIpsList = Array<string>;
354
+ export declare const DatabaseConfigurationResponseAllowedIpsList: S.Schema<DatabaseConfigurationResponseAllowedIpsList>;
355
+ /** List of allowed AWS VPC endpoint IDs. Empty means no VPC endpoint restriction. */
356
+ export type DatabaseConfigurationResponseAllowedAwsVpcIdsList = Array<string>;
357
+ export declare const DatabaseConfigurationResponseAllowedAwsVpcIdsList: S.Schema<DatabaseConfigurationResponseAllowedAwsVpcIdsList>;
358
+ export interface DatabaseConfigurationResponse {
359
+ /** The maximum size of the database in bytes. Values with units are also accepted, e.g. 1mb, 256mb, 1gb. */
360
+ size_limit?: string;
361
+ /** Allow or disallow attaching databases to the current database. */
362
+ allow_attach?: boolean;
363
+ /** The current status for blocked reads. */
364
+ block_reads?: boolean;
365
+ /** The current status for blocked writes. */
366
+ block_writes?: boolean;
367
+ /** Prevent the database from being deleted. */
368
+ delete_protection?: boolean;
369
+ /** List of allowed IP addresses and CIDR blocks. Empty means no IP restriction. */
370
+ allowed_ips?: DatabaseConfigurationResponseAllowedIpsList;
371
+ /** List of allowed AWS VPC endpoint IDs. Empty means no VPC endpoint restriction. */
372
+ allowed_aws_vpc_ids?: DatabaseConfigurationResponseAllowedAwsVpcIdsList;
373
+ }
374
+ export declare const DatabaseConfigurationResponse: S.Schema<DatabaseConfigurationResponse>;
375
+ export interface GetDatabaseInstanceRequest {
376
+ /** The slug of the organization or user account. */
377
+ organizationSlug: string;
378
+ /** The name of the database. */
379
+ databaseName: string;
380
+ /** The name of the instance (location code). */
381
+ instanceName: string;
382
+ }
383
+ export declare const GetDatabaseInstanceRequest: S.Schema<GetDatabaseInstanceRequest>;
384
+ /** The type of database instance this, will be `primary` or `replica`. */
385
+ export type InstanceType = "primary" | "replica";
386
+ export declare const InstanceType: any;
387
+ export interface Instance {
388
+ /** The instance universal unique identifier (UUID). */
389
+ uuid?: string;
390
+ /** The name of the instance (location code). */
391
+ name?: string;
392
+ /** The type of database instance this, will be `primary` or `replica`. */
393
+ type?: InstanceType;
394
+ /** The location code for the region this instance is located. */
395
+ region?: string;
396
+ /** The DNS hostname used for client libSQL and HTTP connections (specific to this instance only). */
397
+ hostname?: string;
398
+ }
399
+ export declare const Instance: S.Schema<Instance>;
400
+ export interface GetDatabaseInstanceResponse {
401
+ instance?: Instance;
402
+ }
403
+ export declare const GetDatabaseInstanceResponse: S.Schema<GetDatabaseInstanceResponse>;
404
+ export interface GetDatabaseStatsRequest {
405
+ /** The slug of the organization or user account. */
406
+ organizationSlug: string;
407
+ /** The name of the database. */
408
+ databaseName: string;
409
+ }
410
+ export declare const GetDatabaseStatsRequest: S.Schema<GetDatabaseStatsRequest>;
411
+ export interface DatabaseStatsOutput {
412
+ /** A string representing the SQL query executed. */
413
+ query?: string;
414
+ /** An integer indicating the number of rows read by the query, which reflects the volume of data the query processed from the database. */
415
+ rows_read?: number;
416
+ /** 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. */
417
+ rows_written?: number;
418
+ }
419
+ export declare const DatabaseStatsOutput: S.Schema<DatabaseStatsOutput>;
420
+ /** The top queries performed on the given database as well as the total rows read and written. */
421
+ export type GetDatabaseStatsResponseTopQueriesList = Array<DatabaseStatsOutput>;
422
+ export declare const GetDatabaseStatsResponseTopQueriesList: S.Schema<GetDatabaseStatsResponseTopQueriesList>;
423
+ export interface GetDatabaseStatsResponse {
424
+ /** The top queries performed on the given database as well as the total rows read and written. */
425
+ top_queries?: GetDatabaseStatsResponseTopQueriesList | null;
426
+ }
427
+ export declare const GetDatabaseStatsResponse: S.Schema<GetDatabaseStatsResponse>;
428
+ export interface GetDatabaseUsageRequest {
429
+ /** The slug of the organization or user account. */
430
+ organizationSlug: string;
431
+ /** The name of the database. */
432
+ databaseName: string;
433
+ /** 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` */
434
+ from?: string;
435
+ /** 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` */
436
+ to?: string;
437
+ }
438
+ export declare const GetDatabaseUsageRequest: S.Schema<GetDatabaseUsageRequest>;
439
+ export interface DatabaseUsageObject {
440
+ /** The total rows read in the time period. */
441
+ rows_read?: number;
442
+ /** The total rows written in the time period. */
443
+ rows_written?: number;
444
+ /** The total storage used. */
445
+ storage_bytes?: number;
446
+ /** The total bytes synced. */
447
+ bytes_synced?: number;
448
+ }
449
+ export declare const DatabaseUsageObject: S.Schema<DatabaseUsageObject>;
450
+ export interface DatabaseUsageOutputInstancesItem {
451
+ /** The instance universal unique identifier (UUID). */
452
+ uuid?: string;
453
+ /** The usage for the current database instance. */
454
+ usage?: DatabaseUsageObject;
455
+ }
456
+ export declare const DatabaseUsageOutputInstancesItem: S.Schema<DatabaseUsageOutputInstancesItem>;
457
+ /** The usage objects for instances of the current database. */
458
+ export type DatabaseUsageOutputInstancesList = Array<DatabaseUsageOutputInstancesItem>;
459
+ export declare const DatabaseUsageOutputInstancesList: S.Schema<DatabaseUsageOutputInstancesList>;
460
+ export interface DatabaseUsageOutput {
461
+ uuid?: string;
462
+ /** The usage objects for instances of the current database. */
463
+ instances?: DatabaseUsageOutputInstancesList;
464
+ /** The total usage for the database. */
465
+ total?: DatabaseUsageObject;
466
+ }
467
+ export declare const DatabaseUsageOutput: S.Schema<DatabaseUsageOutput>;
468
+ export interface GetDatabaseUsageResponse {
469
+ /** 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). */
470
+ database?: DatabaseUsageOutput;
471
+ }
472
+ export declare const GetDatabaseUsageResponse: S.Schema<GetDatabaseUsageResponse>;
473
+ export interface GetGroupRequest {
474
+ /** The slug of the organization or user account. */
475
+ organizationSlug: string;
476
+ /** The name of the group. */
477
+ groupName: string;
478
+ }
479
+ export declare const GetGroupRequest: S.Schema<GetGroupRequest>;
480
+ export interface GetGroupResponse {
481
+ group?: Group;
482
+ }
483
+ export declare const GetGroupResponse: S.Schema<GetGroupResponse>;
484
+ export interface GetGroupConfigurationRequest {
485
+ /** The slug of the organization or user account. */
486
+ organizationSlug: string;
487
+ /** The name of the group. */
488
+ groupName: string;
489
+ }
490
+ export declare const GetGroupConfigurationRequest: S.Schema<GetGroupConfigurationRequest>;
491
+ export interface GroupConfigurationResponse {
492
+ /** Prevent the group from being deleted. */
493
+ delete_protection?: boolean;
494
+ }
495
+ export declare const GroupConfigurationResponse: S.Schema<GroupConfigurationResponse>;
496
+ export interface GetOrganizationRequest {
497
+ /** The slug of the organization or user account. */
498
+ organizationSlug: string;
499
+ }
500
+ export declare const GetOrganizationRequest: S.Schema<GetOrganizationRequest>;
501
+ /** The type of account this organization is. Will always be `personal` or `team`. */
502
+ export type OrganizationType = "personal" | "team";
503
+ export declare const OrganizationType: any;
504
+ export interface Organization {
505
+ /** The organization name. Every user has a `personal` organization for their own account. */
506
+ name?: string;
507
+ /** The organization slug. This will be your username for `personal` accounts. */
508
+ slug?: string;
509
+ /** The type of account this organization is. Will always be `personal` or `team`. */
510
+ type?: OrganizationType;
511
+ /** The name of the organization. Every user has a `personal` organization for their own account. */
512
+ overages?: boolean;
513
+ /** Whether all members of the organization are required to have multi-factor authentication enabled. */
514
+ require_mfa?: boolean;
515
+ /** Returns the current status for blocked reads. */
516
+ blocked_reads?: boolean;
517
+ /** Returns the current status for blocked writes. */
518
+ blocked_writes?: boolean;
519
+ /** The pricing plan identifier this organization is subscribed to. */
520
+ plan_id?: string;
521
+ /** The billing cycle for the paid plan, if any. */
522
+ plan_timeline?: string;
523
+ /** The external platform this organization is managed by. Will be empty for Turso managed organizations. */
524
+ platform?: string;
525
+ }
526
+ export declare const Organization: S.Schema<Organization>;
527
+ export interface GetOrganizationResponse {
528
+ organization?: Organization;
529
+ }
530
+ export declare const GetOrganizationResponse: S.Schema<GetOrganizationResponse>;
531
+ export interface GetOrganizationMemberRequest {
532
+ /** The slug of the organization or user account. */
533
+ organizationSlug: string;
534
+ /** The username of a Turso user or organization member. */
535
+ username: string;
536
+ }
537
+ export declare const GetOrganizationMemberRequest: S.Schema<GetOrganizationMemberRequest>;
538
+ /** The role assigned to the member. */
539
+ export type MemberRole = "owner" | "admin" | "member" | "viewer";
540
+ export declare const MemberRole: any;
541
+ export interface Member {
542
+ /** The username for the member. */
543
+ username?: string;
544
+ /** The role assigned to the member. */
545
+ role?: MemberRole;
546
+ /** The email for the member. */
547
+ email?: string;
548
+ }
549
+ export declare const Member: S.Schema<Member>;
550
+ export interface GetOrganizationMemberResponse {
551
+ member?: Member;
552
+ }
553
+ export declare const GetOrganizationMemberResponse: S.Schema<GetOrganizationMemberResponse>;
554
+ export interface GetOrganizationSubscriptionRequest {
555
+ /** The slug of the organization or user account. */
556
+ organizationSlug: string;
557
+ }
558
+ export declare const GetOrganizationSubscriptionRequest: S.Schema<GetOrganizationSubscriptionRequest>;
559
+ export interface GetOrganizationSubscriptionResponseSubscription {
560
+ /** The name of the plan for the current subscription. */
561
+ name?: string;
562
+ /** Whether overages are enabled for the organization. */
563
+ overages?: boolean;
564
+ /** The name of the plan for the current subscription. */
565
+ plan?: string;
566
+ /** Whether the plan is billed monthly or yearly. */
567
+ timeline?: string;
568
+ }
569
+ export declare const GetOrganizationSubscriptionResponseSubscription: S.Schema<GetOrganizationSubscriptionResponseSubscription>;
570
+ export interface GetOrganizationSubscriptionResponse {
571
+ subscription?: GetOrganizationSubscriptionResponseSubscription;
572
+ }
573
+ export declare const GetOrganizationSubscriptionResponse: S.Schema<GetOrganizationSubscriptionResponse>;
574
+ export interface GetOrganizationUsageRequest {
575
+ /** The slug of the organization or user account. */
576
+ organizationSlug: string;
577
+ }
578
+ export declare const GetOrganizationUsageRequest: S.Schema<GetOrganizationUsageRequest>;
579
+ /** The usage object for the organization. */
580
+ export interface GetOrganizationUsageResponseOrganizationUsage {
581
+ /** The number of rows read allowed for the specific plan. */
582
+ rows_read?: number;
583
+ /** The number of rows written allowed for the specific plan. */
584
+ rows_written?: number;
585
+ /** The number of databases allowed for the specific plan. */
586
+ databases?: number;
587
+ /** The number of locations allowed for the specific plan. */
588
+ locations?: number;
589
+ /** The amount of storage allowed for the specific plan, in bytes. */
590
+ storage_bytes?: number;
591
+ /** The number of groups allowed for the specific plan. */
592
+ groups?: number;
593
+ /** The number of bytes synced allowed for the specific plan, in bytes. */
594
+ bytes_synced?: number;
595
+ }
596
+ export declare const GetOrganizationUsageResponseOrganizationUsage: S.Schema<GetOrganizationUsageResponseOrganizationUsage>;
597
+ /** The databases for the organization and their usage. */
598
+ export type GetOrganizationUsageResponseOrganizationDatabasesList = Array<DatabaseUsageOutput>;
599
+ export declare const GetOrganizationUsageResponseOrganizationDatabasesList: S.Schema<GetOrganizationUsageResponseOrganizationDatabasesList>;
600
+ /** The organization usage object, containing the total usage for rows read and written, as well as the total storage size (in bytes). */
601
+ export interface GetOrganizationUsageResponseOrganization {
602
+ /** The UUID of the organization. */
603
+ uuid?: string;
604
+ /** The usage object for the organization. */
605
+ usage?: GetOrganizationUsageResponseOrganizationUsage;
606
+ /** The databases for the organization and their usage. */
607
+ databases?: GetOrganizationUsageResponseOrganizationDatabasesList;
608
+ }
609
+ export declare const GetOrganizationUsageResponseOrganization: S.Schema<GetOrganizationUsageResponseOrganization>;
610
+ export interface GetOrganizationUsageResponse {
611
+ /** The organization usage object, containing the total usage for rows read and written, as well as the total storage size (in bytes). */
612
+ organization?: GetOrganizationUsageResponseOrganization;
613
+ }
614
+ export declare const GetOrganizationUsageResponse: S.Schema<GetOrganizationUsageResponse>;
615
+ export interface InvalidateDatabaseTokensRequest {
616
+ /** The slug of the organization or user account. */
617
+ organizationSlug: string;
618
+ /** The name of the database. */
619
+ databaseName: string;
620
+ }
621
+ export declare const InvalidateDatabaseTokensRequest: S.Schema<InvalidateDatabaseTokensRequest>;
622
+ export interface InvalidateDatabaseTokensResponse {
623
+ }
624
+ export declare const InvalidateDatabaseTokensResponse: S.Schema<InvalidateDatabaseTokensResponse>;
625
+ export interface InvalidateGroupTokensRequest {
626
+ /** The slug of the organization or user account. */
627
+ organizationSlug: string;
628
+ /** The name of the group. */
629
+ groupName: string;
630
+ }
631
+ export declare const InvalidateGroupTokensRequest: S.Schema<InvalidateGroupTokensRequest>;
632
+ export interface InvalidateGroupTokensResponse {
633
+ }
634
+ export declare const InvalidateGroupTokensResponse: S.Schema<InvalidateGroupTokensResponse>;
635
+ /** The role given to the user. */
636
+ export type InviteOrganizationMemberV2RequestRole = "admin" | "member" | "viewer";
637
+ export declare const InviteOrganizationMemberV2RequestRole: any;
638
+ export interface InviteOrganizationMemberV2Request {
639
+ /** The slug of the organization or user account. */
640
+ organizationSlug: string;
641
+ /** The email of the user you want to invite. Exactly one of email or username must be provided. */
642
+ email?: string;
643
+ /** The username of an existing Turso user you want to invite. Exactly one of email or username must be provided. */
644
+ username?: string;
645
+ /** The role given to the user. */
646
+ role?: InviteOrganizationMemberV2RequestRole | (string & {});
647
+ }
648
+ export declare const InviteOrganizationMemberV2Request: S.Schema<InviteOrganizationMemberV2Request>;
649
+ /** The assigned role for the invited user. */
650
+ export type InviteCreatedV2Role = "admin" | "member" | "viewer";
651
+ export declare const InviteCreatedV2Role: any;
652
+ export interface InviteCreatedV2 {
653
+ /** The email of the person invited. */
654
+ email?: string;
655
+ /** The assigned role for the invited user. */
656
+ role?: InviteCreatedV2Role;
657
+ /** The name of the organization the user was invited to. */
658
+ organization?: string;
659
+ }
660
+ export declare const InviteCreatedV2: S.Schema<InviteCreatedV2>;
661
+ export interface InviteOrganizationMemberV2Response {
662
+ invited?: InviteCreatedV2;
663
+ }
664
+ export declare const InviteOrganizationMemberV2Response: S.Schema<InviteOrganizationMemberV2Response>;
665
+ export interface ListAPITokensRequest {
666
+ }
667
+ export declare const ListAPITokensRequest: S.Schema<ListAPITokensRequest>;
668
+ /** The expanded list of scopes granted to this token. Present only for group-scoped tokens. Presets passed at creation time (`read-only`, `full-access`) are stored as the underlying individual scopes and are returned in that form. */
669
+ export type APITokenScopesList = Array<string>;
670
+ export declare const APITokenScopesList: S.Schema<APITokenScopesList>;
671
+ export interface APIToken {
672
+ /** The name given to the API Token. */
673
+ name?: string;
674
+ /** The ID generated by Turso for the API Token. */
675
+ id?: string;
676
+ /** The organization slug this token is restricted to. Omitted if the token has access to all organizations. */
677
+ organization?: string;
678
+ /** The group name this token is pinned to. Present only for group-scoped tokens. */
679
+ group?: string;
680
+ /** The expanded list of scopes granted to this token. Present only for group-scoped tokens. Presets passed at creation time (`read-only`, `full-access`) are stored as the underlying individual scopes and are returned in that form. */
681
+ scopes?: APITokenScopesList;
682
+ /** The date the token was created, in `YYYY-MM-DD` format. */
683
+ created_at?: string;
684
+ }
685
+ export declare const APIToken: S.Schema<APIToken>;
686
+ export type ListAPITokensResponseTokensList = Array<APIToken>;
687
+ export declare const ListAPITokensResponseTokensList: S.Schema<ListAPITokensResponseTokensList>;
688
+ export interface ListAPITokensResponse {
689
+ tokens?: ListAPITokensResponseTokensList;
690
+ }
691
+ export declare const ListAPITokensResponse: S.Schema<ListAPITokensResponse>;
692
+ export interface ListDatabaseInstancesRequest {
693
+ /** The slug of the organization or user account. */
694
+ organizationSlug: string;
695
+ /** The name of the database. */
696
+ databaseName: string;
697
+ }
698
+ export declare const ListDatabaseInstancesRequest: S.Schema<ListDatabaseInstancesRequest>;
699
+ export type ListDatabaseInstancesResponseInstancesList = Array<Instance>;
700
+ export declare const ListDatabaseInstancesResponseInstancesList: S.Schema<ListDatabaseInstancesResponseInstancesList>;
701
+ export interface ListDatabaseInstancesResponse {
702
+ instances?: ListDatabaseInstancesResponseInstancesList;
703
+ }
704
+ export declare const ListDatabaseInstancesResponse: S.Schema<ListDatabaseInstancesResponse>;
705
+ export interface ListDatabasesRequest {
706
+ /** The slug of the organization or user account. */
707
+ organizationSlug: string;
708
+ /** Filter databases by group name. */
709
+ group?: string;
710
+ /** The schema database name that can be used to get databases that belong to that parent schema. */
711
+ schema?: string;
712
+ /** Filter database branches by using their parent database ID. */
713
+ parent?: string;
714
+ }
715
+ export declare const ListDatabasesRequest: S.Schema<ListDatabasesRequest>;
716
+ export type ListDatabasesResponseDatabasesList = Array<Database>;
717
+ export declare const ListDatabasesResponseDatabasesList: S.Schema<ListDatabasesResponseDatabasesList>;
718
+ export interface ListDatabasesResponse {
719
+ databases?: ListDatabasesResponseDatabasesList;
720
+ }
721
+ export declare const ListDatabasesResponse: S.Schema<ListDatabasesResponse>;
722
+ export interface ListGroupsRequest {
723
+ /** The slug of the organization or user account. */
724
+ organizationSlug: string;
725
+ }
726
+ export declare const ListGroupsRequest: S.Schema<ListGroupsRequest>;
727
+ export type ListGroupsResponseGroupsList = Array<Group>;
728
+ export declare const ListGroupsResponseGroupsList: S.Schema<ListGroupsResponseGroupsList>;
729
+ export interface ListGroupsResponse {
730
+ groups?: ListGroupsResponseGroupsList;
731
+ }
732
+ export declare const ListGroupsResponse: S.Schema<ListGroupsResponse>;
733
+ export interface ListLocationsRequest {
734
+ }
735
+ export declare const ListLocationsRequest: S.Schema<ListLocationsRequest>;
736
+ /** A mapping of location codes to location names. */
737
+ export type ListLocationsResponseLocationsMap = {
738
+ [key: string]: string | undefined;
739
+ };
740
+ export declare const ListLocationsResponseLocationsMap: S.Schema<ListLocationsResponseLocationsMap>;
741
+ export interface ListLocationsResponse {
742
+ /** A mapping of location codes to location names. */
743
+ locations?: ListLocationsResponseLocationsMap;
744
+ }
745
+ export declare const ListLocationsResponse: S.Schema<ListLocationsResponse>;
746
+ export interface ListOrganizationAPITokensRequest {
747
+ /** The slug of the organization or user account. */
748
+ organizationSlug: string;
749
+ }
750
+ export declare const ListOrganizationAPITokensRequest: S.Schema<ListOrganizationAPITokensRequest>;
751
+ /** The expanded scope list. Present only for group-scoped tokens. */
752
+ export type ListOrganizationAPITokensResponseTokensItemScopesList = Array<string>;
753
+ export declare const ListOrganizationAPITokensResponseTokensItemScopesList: S.Schema<ListOrganizationAPITokensResponseTokensItemScopesList>;
754
+ /** The user who minted the token. Returned to admins and owners so they can see who provisioned each token. */
755
+ export interface ListOrganizationAPITokensResponseTokensItemOwner {
756
+ username?: string;
757
+ email?: string;
758
+ }
759
+ export declare const ListOrganizationAPITokensResponseTokensItemOwner: S.Schema<ListOrganizationAPITokensResponseTokensItemOwner>;
760
+ export interface ListOrganizationAPITokensResponseTokensItem {
761
+ /** The token name. */
762
+ name?: string;
763
+ /** The token ID. Pass this to the revoke endpoint. */
764
+ id?: string;
765
+ /** The organization slug. Always equal to the path parameter for tokens returned here. */
766
+ organization?: string;
767
+ /** The group name. Present only for group-scoped tokens. */
768
+ group?: string;
769
+ /** The expanded scope list. Present only for group-scoped tokens. */
770
+ scopes?: ListOrganizationAPITokensResponseTokensItemScopesList;
771
+ /** The user who minted the token. Returned to admins and owners so they can see who provisioned each token. */
772
+ owner?: ListOrganizationAPITokensResponseTokensItemOwner;
773
+ /** The date the token was created. */
774
+ created_at?: string;
775
+ }
776
+ export declare const ListOrganizationAPITokensResponseTokensItem: S.Schema<ListOrganizationAPITokensResponseTokensItem>;
777
+ export type ListOrganizationAPITokensResponseTokensList = Array<ListOrganizationAPITokensResponseTokensItem>;
778
+ export declare const ListOrganizationAPITokensResponseTokensList: S.Schema<ListOrganizationAPITokensResponseTokensList>;
779
+ export interface ListOrganizationAPITokensResponse {
780
+ tokens?: ListOrganizationAPITokensResponseTokensList;
781
+ }
782
+ export declare const ListOrganizationAPITokensResponse: S.Schema<ListOrganizationAPITokensResponse>;
783
+ export interface ListOrganizationAuditLogsRequest {
784
+ /** The slug of the organization or user account. */
785
+ organizationSlug: string;
786
+ /** The limit of items to return per page. Defaults to 100. */
787
+ page_size?: number;
788
+ /** The page number to return. Defaults to 1. */
789
+ page?: number;
790
+ }
791
+ export declare const ListOrganizationAuditLogsRequest: S.Schema<ListOrganizationAuditLogsRequest>;
792
+ /** The code associated to the action taken. */
793
+ export type AuditLogCode = "user-signup" | "db-create" | "db-delete" | "db-protect" | "db-unprotect" | "db-token-create" | "group-token-create" | "user-token-create" | "instance-create" | "instance-delete" | "org-create" | "org-delete" | "org-member-add" | "org-member-rm" | "org-member-leave" | "org-plan-update" | "org-set-overages" | "group-create" | "group-delete" | "group-unarchive" | "group-protect" | "group-unprotect" | "db-aunrchive" | "user-delete";
794
+ export declare const AuditLogCode: any;
795
+ export interface AuditLog {
796
+ /** The code associated to the action taken. */
797
+ code?: AuditLogCode;
798
+ /** Additional context from the performed action. */
799
+ message?: string;
800
+ /** Where this action was performed. Will be either `cli` or `web` depending on the `User-Agent` sent to the API. */
801
+ origin?: string;
802
+ /** The username of the user who performed the action. */
803
+ author?: string;
804
+ /** A formatted [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp this action was performed. */
805
+ created_at?: string;
806
+ /** The payload of the action performed. */
807
+ data?: unknown;
808
+ }
809
+ export declare const AuditLog: S.Schema<AuditLog>;
810
+ export type ListOrganizationAuditLogsResponseAuditLogsList = Array<AuditLog>;
811
+ export declare const ListOrganizationAuditLogsResponseAuditLogsList: S.Schema<ListOrganizationAuditLogsResponseAuditLogsList>;
812
+ export interface ListOrganizationAuditLogsResponsePagination {
813
+ /** The current page number. */
814
+ page?: number;
815
+ /** The number of items per page. */
816
+ page_size?: number;
817
+ /** The total number of pages. */
818
+ total_pages?: number;
819
+ /** The total number of items. */
820
+ total_rows?: number;
821
+ }
822
+ export declare const ListOrganizationAuditLogsResponsePagination: S.Schema<ListOrganizationAuditLogsResponsePagination>;
823
+ export interface ListOrganizationAuditLogsResponse {
824
+ audit_logs?: ListOrganizationAuditLogsResponseAuditLogsList;
825
+ pagination?: ListOrganizationAuditLogsResponsePagination;
826
+ }
827
+ export declare const ListOrganizationAuditLogsResponse: S.Schema<ListOrganizationAuditLogsResponse>;
828
+ export interface ListOrganizationInvitesV2Request {
829
+ /** The slug of the organization or user account. */
830
+ organizationSlug: string;
831
+ }
832
+ export declare const ListOrganizationInvitesV2Request: S.Schema<ListOrganizationInvitesV2Request>;
833
+ /** The assigned role for the invited user. */
834
+ export type InviteV2Role = "admin" | "member" | "viewer";
835
+ export declare const InviteV2Role: any;
836
+ export interface InviteV2 {
837
+ /** The unique ID for the invite. */
838
+ id?: number;
839
+ /** The email of the person invited. */
840
+ email?: string;
841
+ /** The assigned role for the invited user. */
842
+ role?: InviteV2Role;
843
+ /** The datetime the invite was created in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. */
844
+ created_at?: string;
845
+ }
846
+ export declare const InviteV2: S.Schema<InviteV2>;
847
+ export type ListOrganizationInvitesV2ResponseInvitesList = Array<InviteV2>;
848
+ export declare const ListOrganizationInvitesV2ResponseInvitesList: S.Schema<ListOrganizationInvitesV2ResponseInvitesList>;
849
+ export interface ListOrganizationInvitesV2Response {
850
+ invites?: ListOrganizationInvitesV2ResponseInvitesList;
851
+ }
852
+ export declare const ListOrganizationInvitesV2Response: S.Schema<ListOrganizationInvitesV2Response>;
853
+ export type ListOrganizationInvoicesRequestType = "all" | "upcoming" | "issued";
854
+ export declare const ListOrganizationInvoicesRequestType: any;
855
+ export interface ListOrganizationInvoicesRequest {
856
+ /** The slug of the organization or user account. */
857
+ organizationSlug: string;
858
+ /** The type of invoice to retrieve. */
859
+ type?: ListOrganizationInvoicesRequestType | (string & {});
860
+ }
861
+ export declare const ListOrganizationInvoicesRequest: S.Schema<ListOrganizationInvoicesRequest>;
862
+ export interface ListOrganizationInvoicesResponseInvoicesItem {
863
+ /** The unique ID for the invoice. */
864
+ invoice_number?: string;
865
+ /** The formatted price in USD for the invoice. */
866
+ amount_due?: string;
867
+ /** The due date for the invoice. */
868
+ due_date?: string;
869
+ /** The date the invoice was paid. */
870
+ paid_at?: string;
871
+ /** The date the invoice payment last failed. */
872
+ payment_failed_at?: string;
873
+ /** The link to the invoice PDF you can download. */
874
+ invoice_pdf?: string;
875
+ }
876
+ export declare const ListOrganizationInvoicesResponseInvoicesItem: S.Schema<ListOrganizationInvoicesResponseInvoicesItem>;
877
+ /** The list of invoices for the organization. */
878
+ export type ListOrganizationInvoicesResponseInvoicesList = Array<ListOrganizationInvoicesResponseInvoicesItem>;
879
+ export declare const ListOrganizationInvoicesResponseInvoicesList: S.Schema<ListOrganizationInvoicesResponseInvoicesList>;
880
+ export interface ListOrganizationInvoicesResponse {
881
+ /** The list of invoices for the organization. */
882
+ invoices?: ListOrganizationInvoicesResponseInvoicesList;
883
+ }
884
+ export declare const ListOrganizationInvoicesResponse: S.Schema<ListOrganizationInvoicesResponse>;
885
+ export interface ListOrganizationMembersRequest {
886
+ /** The slug of the organization or user account. */
887
+ organizationSlug: string;
888
+ }
889
+ export declare const ListOrganizationMembersRequest: S.Schema<ListOrganizationMembersRequest>;
890
+ export type ListOrganizationMembersResponseMembersList = Array<Member>;
891
+ export declare const ListOrganizationMembersResponseMembersList: S.Schema<ListOrganizationMembersResponseMembersList>;
892
+ export interface ListOrganizationMembersResponse {
893
+ members?: ListOrganizationMembersResponseMembersList;
894
+ }
895
+ export declare const ListOrganizationMembersResponse: S.Schema<ListOrganizationMembersResponse>;
896
+ export interface ListOrganizationPlansRequest {
897
+ /** The slug of the organization or user account. */
898
+ organizationSlug: string;
899
+ }
900
+ export declare const ListOrganizationPlansRequest: S.Schema<ListOrganizationPlansRequest>;
901
+ export interface PlanPrice {
902
+ /** Price of the available plan. */
903
+ value?: string;
904
+ /** Payment regularity. */
905
+ timeline?: string;
906
+ }
907
+ export declare const PlanPrice: S.Schema<PlanPrice>;
908
+ export type OrganizationPlanPricesList = Array<PlanPrice>;
909
+ export declare const OrganizationPlanPricesList: S.Schema<OrganizationPlanPricesList>;
910
+ export interface PlanQuotas {
911
+ /** The number of rows read allowed for the specific plan. */
912
+ rowsRead?: number;
913
+ /** The number of rows written allowed for the specific plan. */
914
+ rowsWritten?: number;
915
+ /** The number of databases allowed for the specific plan. */
916
+ databases?: number | null;
917
+ /** The number of locations allowed for the specific plan. */
918
+ locations?: number;
919
+ /** The amount of storage allowed for the specific plan, in bytes. */
920
+ storage?: number;
921
+ /** The number of groups allowed for the specific plan. */
922
+ groups?: number;
923
+ /** The number of bytes synced allowed for the specific plan, in bytes. */
924
+ bytesSynced?: number;
925
+ }
926
+ export declare const PlanQuotas: S.Schema<PlanQuotas>;
927
+ export interface OrganizationPlan {
928
+ /** The name of the plan. */
929
+ name?: string;
930
+ /** The monthly price of the plan. */
931
+ price?: string;
932
+ prices?: OrganizationPlanPricesList;
933
+ quotas?: PlanQuotas;
934
+ }
935
+ export declare const OrganizationPlan: S.Schema<OrganizationPlan>;
936
+ /** List of available plans. */
937
+ export type ListOrganizationPlansResponsePlansList = Array<OrganizationPlan>;
938
+ export declare const ListOrganizationPlansResponsePlansList: S.Schema<ListOrganizationPlansResponsePlansList>;
939
+ export interface ListOrganizationPlansResponse {
940
+ /** List of available plans. */
941
+ plans?: ListOrganizationPlansResponsePlansList;
942
+ }
943
+ export declare const ListOrganizationPlansResponse: S.Schema<ListOrganizationPlansResponse>;
944
+ export interface ListOrganizationsRequest {
945
+ }
946
+ export declare const ListOrganizationsRequest: S.Schema<ListOrganizationsRequest>;
947
+ export type ListOrganizationsResponseBodyList = Array<Organization>;
948
+ export declare const ListOrganizationsResponseBodyList: S.Schema<ListOrganizationsResponseBodyList>;
949
+ export type ListOrganizationsResponse = ListOrganizationsResponseBodyList;
950
+ export declare const ListOrganizationsResponse: S.Schema<ListOrganizationsResponse>;
951
+ export interface RemoveLocationFromGroupRequest {
952
+ /** The slug of the organization or user account. */
953
+ organizationSlug: string;
954
+ /** The name of the group. */
955
+ groupName: string;
956
+ /** The location code to remove from the group. */
957
+ location: string;
958
+ }
959
+ export declare const RemoveLocationFromGroupRequest: S.Schema<RemoveLocationFromGroupRequest>;
960
+ export interface RemoveLocationFromGroupResponse {
961
+ /** The group with the removed location */
962
+ group?: Group;
963
+ }
964
+ export declare const RemoveLocationFromGroupResponse: S.Schema<RemoveLocationFromGroupResponse>;
965
+ export interface RemoveOrganizationMemberRequest {
966
+ /** The slug of the organization or user account. */
967
+ organizationSlug: string;
968
+ /** The username of a Turso user or organization member. */
969
+ username: string;
970
+ }
971
+ export declare const RemoveOrganizationMemberRequest: S.Schema<RemoveOrganizationMemberRequest>;
972
+ export interface RemoveOrganizationMemberResponse {
973
+ member?: string;
974
+ }
975
+ export declare const RemoveOrganizationMemberResponse: S.Schema<RemoveOrganizationMemberResponse>;
976
+ export interface RevokeAPITokenRequest {
977
+ /** The name of the api token. */
978
+ tokenName: string;
979
+ }
980
+ export declare const RevokeAPITokenRequest: S.Schema<RevokeAPITokenRequest>;
981
+ export interface RevokeAPITokenResponse {
982
+ /** The revoked token name. */
983
+ token?: string;
984
+ }
985
+ export declare const RevokeAPITokenResponse: S.Schema<RevokeAPITokenResponse>;
986
+ export interface RevokeOrganizationAPITokenRequest {
987
+ /** The slug of the organization or user account. */
988
+ organizationSlug: string;
989
+ /** The ID of the token to revoke (from the list endpoint). */
990
+ tokenId: string;
991
+ }
992
+ export declare const RevokeOrganizationAPITokenRequest: S.Schema<RevokeOrganizationAPITokenRequest>;
993
+ export interface RevokeOrganizationAPITokenResponse {
994
+ /** The ID of the revoked token. */
995
+ token?: string;
996
+ }
997
+ export declare const RevokeOrganizationAPITokenResponse: S.Schema<RevokeOrganizationAPITokenResponse>;
998
+ export interface TransferGroupRequest {
999
+ /** The slug of the organization or user account. */
1000
+ organizationSlug: string;
1001
+ /** The name of the group. */
1002
+ groupName: string;
1003
+ /** The slug of the organization to transfer the group to. */
1004
+ organization?: string;
1005
+ }
1006
+ export declare const TransferGroupRequest: S.Schema<TransferGroupRequest>;
1007
+ /** An array of location keys the group is located. */
1008
+ export type TransferGroupResponseLocationsList = Array<string>;
1009
+ export declare const TransferGroupResponseLocationsList: S.Schema<TransferGroupResponseLocationsList>;
1010
+ export interface TransferGroupResponse {
1011
+ /** The group name, unique across your organization. */
1012
+ name?: string;
1013
+ /** The current libSQL server version the databases in that group are running. */
1014
+ version?: string;
1015
+ /** The group universal unique identifier (UUID). */
1016
+ uuid?: string;
1017
+ /** An array of location keys the group is located. */
1018
+ locations?: TransferGroupResponseLocationsList;
1019
+ /** The primary location key. */
1020
+ primary?: string;
1021
+ /** The current status for delete protection. If enabled, the group and all its databases cannot be deleted. */
1022
+ delete_protection?: boolean;
1023
+ }
1024
+ export declare const TransferGroupResponse: S.Schema<TransferGroupResponse>;
1025
+ export interface UnarchiveGroupRequest {
1026
+ /** The slug of the organization or user account. */
1027
+ organizationSlug: string;
1028
+ /** The name of the group. */
1029
+ groupName: string;
1030
+ }
1031
+ export declare const UnarchiveGroupRequest: S.Schema<UnarchiveGroupRequest>;
1032
+ export interface UnarchiveGroupResponse {
1033
+ /** The group that was unarchived */
1034
+ group?: Group;
1035
+ }
1036
+ export declare const UnarchiveGroupResponse: S.Schema<UnarchiveGroupResponse>;
1037
+ /** 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. */
1038
+ export type UpdateDatabaseConfigurationRequestAllowedIpsList = Array<string>;
1039
+ export declare const UpdateDatabaseConfigurationRequestAllowedIpsList: S.Schema<UpdateDatabaseConfigurationRequestAllowedIpsList>;
1040
+ /** 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. */
1041
+ export type UpdateDatabaseConfigurationRequestAllowedAwsVpcIdsList = Array<string>;
1042
+ export declare const UpdateDatabaseConfigurationRequestAllowedAwsVpcIdsList: S.Schema<UpdateDatabaseConfigurationRequestAllowedAwsVpcIdsList>;
1043
+ export interface UpdateDatabaseConfigurationRequest {
1044
+ /** The slug of the organization or user account. */
1045
+ organizationSlug: string;
1046
+ /** The name of the database. */
1047
+ databaseName: string;
1048
+ /** The maximum size of the database in bytes. Values with units are also accepted, e.g. 1mb, 256mb, 1gb. */
1049
+ size_limit?: string;
1050
+ /** Allow or disallow attaching databases to the current database. */
1051
+ allow_attach?: boolean;
1052
+ /** Block all database reads. */
1053
+ block_reads?: boolean;
1054
+ /** Block all database writes. */
1055
+ block_writes?: boolean;
1056
+ /** Prevent the database from being deleted. */
1057
+ delete_protection?: boolean;
1058
+ /** 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. */
1059
+ allowed_ips?: UpdateDatabaseConfigurationRequestAllowedIpsList;
1060
+ /** 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. */
1061
+ allowed_aws_vpc_ids?: UpdateDatabaseConfigurationRequestAllowedAwsVpcIdsList;
1062
+ }
1063
+ export declare const UpdateDatabaseConfigurationRequest: S.Schema<UpdateDatabaseConfigurationRequest>;
1064
+ export interface UpdateGroupConfigurationRequest {
1065
+ /** The slug of the organization or user account. */
1066
+ organizationSlug: string;
1067
+ /** The name of the group. */
1068
+ groupName: string;
1069
+ /** Prevent the group from being deleted. */
1070
+ delete_protection?: boolean;
1071
+ }
1072
+ export declare const UpdateGroupConfigurationRequest: S.Schema<UpdateGroupConfigurationRequest>;
1073
+ export interface UpdateGroupDatabasesRequest {
1074
+ /** The slug of the organization or user account. */
1075
+ organizationSlug: string;
1076
+ /** The name of the group. */
1077
+ groupName: string;
1078
+ }
1079
+ export declare const UpdateGroupDatabasesRequest: S.Schema<UpdateGroupDatabasesRequest>;
1080
+ export interface UpdateGroupDatabasesResponse {
1081
+ }
1082
+ export declare const UpdateGroupDatabasesResponse: S.Schema<UpdateGroupDatabasesResponse>;
1083
+ /** The new role to assign to the member. */
1084
+ export type UpdateMemberRoleRequestRole = "admin" | "member" | "viewer";
1085
+ export declare const UpdateMemberRoleRequestRole: any;
1086
+ export interface UpdateMemberRoleRequest {
1087
+ /** The slug of the organization or user account. */
1088
+ organizationSlug: string;
1089
+ /** The username of a Turso user or organization member. */
1090
+ username: string;
1091
+ /** The new role to assign to the member. */
1092
+ role: UpdateMemberRoleRequestRole | (string & {});
1093
+ }
1094
+ export declare const UpdateMemberRoleRequest: S.Schema<UpdateMemberRoleRequest>;
1095
+ /** The new role of the updated member. */
1096
+ export type UpdateMemberRoleResponseMemberRole = "admin" | "member" | "viewer";
1097
+ export declare const UpdateMemberRoleResponseMemberRole: any;
1098
+ export interface UpdateMemberRoleResponseMember {
1099
+ /** The username of the updated member. */
1100
+ username?: string;
1101
+ /** The email of the updated member. */
1102
+ email?: string;
1103
+ /** The new role of the updated member. */
1104
+ role?: UpdateMemberRoleResponseMemberRole;
1105
+ }
1106
+ export declare const UpdateMemberRoleResponseMember: S.Schema<UpdateMemberRoleResponseMember>;
1107
+ export interface UpdateMemberRoleResponse {
1108
+ member?: UpdateMemberRoleResponseMember;
1109
+ }
1110
+ export declare const UpdateMemberRoleResponse: S.Schema<UpdateMemberRoleResponse>;
1111
+ export interface UpdateOrganizationRequest {
1112
+ /** The slug of the organization or user account. */
1113
+ organizationSlug: string;
1114
+ /** Enable or disable overages for the organization. */
1115
+ overages?: boolean;
1116
+ /** 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;
1118
+ }
1119
+ export declare const UpdateOrganizationRequest: S.Schema<UpdateOrganizationRequest>;
1120
+ export interface UpdateOrganizationResponse {
1121
+ /** The updated organization. */
1122
+ organization?: Organization;
1123
+ }
1124
+ export declare const UpdateOrganizationResponse: S.Schema<UpdateOrganizationResponse>;
1125
+ export interface ValidateAPITokenRequest {
1126
+ }
1127
+ export declare const ValidateAPITokenRequest: S.Schema<ValidateAPITokenRequest>;
1128
+ export interface ValidateAPITokenResponse {
1129
+ /** The time of expiration for the provided token in unix epoch seconds, or `-1` if there is no expiration. */
1130
+ exp?: number;
1131
+ }
1132
+ export declare const ValidateAPITokenResponse: S.Schema<ValidateAPITokenResponse>;
1133
+ export type AddLocationToGroupError = BadRequest | NotFound | TursoOpError;
1134
+ /** Add Location to Group Adds a location to the specified group. */
1135
+ export declare const addLocationToGroup: API.OperationMethod<AddLocationToGroupRequest, AddLocationToGroupResponse, AddLocationToGroupError, TursoOpContext>;
1136
+ export type AddOrganizationMemberError = BadRequest | NotFound | Conflict | TursoOpError;
1137
+ /** Add Member Add an existing Turso user to an organization. */
1138
+ export declare const addOrganizationMember: API.OperationMethod<AddOrganizationMemberRequest, AddOrganizationMemberResponse, AddOrganizationMemberError, TursoOpContext>;
1139
+ export type CreateAPITokenError = TursoOpError;
1140
+ /** 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. */
1141
+ export declare const createAPIToken: API.OperationMethod<CreateAPITokenRequest, CreateAPITokenResponse, CreateAPITokenError, TursoOpContext>;
1142
+ export type CreateDatabaseError = BadRequest | Conflict | TursoOpError;
1143
+ /** Create Database Creates a new database in a group for the organization or user. */
1144
+ export declare const createDatabase: API.OperationMethod<CreateDatabaseRequest, CreateDatabaseResponse, CreateDatabaseError, TursoOpContext>;
1145
+ export type CreateDatabaseTokenError = BadRequest | NotFound | TursoOpError;
1146
+ /** Generate Database Auth Token Generates an authorization token for the specified database. */
1147
+ export declare const createDatabaseToken: API.OperationMethod<CreateDatabaseTokenRequest, CreateDatabaseTokenResponse, CreateDatabaseTokenError, TursoOpContext>;
1148
+ export type CreateGroupError = BadRequest | Conflict | TursoOpError;
1149
+ /** Create Group Creates a new group for the organization or user. */
1150
+ export declare const createGroup: API.OperationMethod<CreateGroupRequest, CreateGroupResponse, CreateGroupError, TursoOpContext>;
1151
+ export type CreateGroupTokenError = BadRequest | NotFound | TursoOpError;
1152
+ /** Create Group Auth Token Generates an authorization token for the specified group. */
1153
+ export declare const createGroupToken: API.OperationMethod<CreateGroupTokenRequest, CreateGroupTokenResponse, CreateGroupTokenError, TursoOpContext>;
1154
+ export type DeleteDatabaseError = NotFound | TursoOpError;
1155
+ /** Delete Database Delete a database belonging to the organization or user. */
1156
+ export declare const deleteDatabase: API.OperationMethod<DeleteDatabaseRequest, DeleteDatabaseResponse, DeleteDatabaseError, TursoOpContext>;
1157
+ export type DeleteGroupError = NotFound | TursoOpError;
1158
+ /** Delete Group Delete a group belonging to the organization or user. */
1159
+ export declare const deleteGroup: API.OperationMethod<DeleteGroupRequest, DeleteGroupResponse, DeleteGroupError, TursoOpContext>;
1160
+ export type DeleteOrganizationInviteByEmailV2Error = NotFound | TursoOpError;
1161
+ /** Delete Invite Delete a pending invite for the organization by email. */
1162
+ export declare const deleteOrganizationInviteByEmailV2: API.OperationMethod<DeleteOrganizationInviteByEmailV2Request, DeleteOrganizationInviteByEmailV2Response, DeleteOrganizationInviteByEmailV2Error, TursoOpContext>;
1163
+ export type GetCurrentUserError = TursoOpError;
1164
+ /** Get Current User Returns information about the currently authenticated user. */
1165
+ export declare const getCurrentUser: API.OperationMethod<GetCurrentUserRequest, GetCurrentUserResponse, GetCurrentUserError, TursoOpContext>;
1166
+ export type GetDatabaseError = NotFound | TursoOpError;
1167
+ /** Retrieve Database Returns a database belonging to the organization or user. */
1168
+ export declare const getDatabase: API.OperationMethod<GetDatabaseRequest, GetDatabaseResponse, GetDatabaseError, TursoOpContext>;
1169
+ export type GetDatabaseConfigurationError = NotFound | TursoOpError;
1170
+ /** Retrieve Database Configuration Retrieve an individual database configuration belonging to the organization or user. */
1171
+ export declare const getDatabaseConfiguration: API.OperationMethod<GetDatabaseConfigurationRequest, DatabaseConfigurationResponse, GetDatabaseConfigurationError, TursoOpContext>;
1172
+ export type GetDatabaseInstanceError = NotFound | TursoOpError;
1173
+ /** Retrieve Database Instance Return the individual database instance by name. */
1174
+ export declare const getDatabaseInstance: API.OperationMethod<GetDatabaseInstanceRequest, GetDatabaseInstanceResponse, GetDatabaseInstanceError, TursoOpContext>;
1175
+ export type GetDatabaseStatsError = NotFound | TursoOpError;
1176
+ /** Retrieve Database Stats Fetch the top queries of a database, including the count of rows read and written. */
1177
+ export declare const getDatabaseStats: API.OperationMethod<GetDatabaseStatsRequest, GetDatabaseStatsResponse, GetDatabaseStatsError, TursoOpContext>;
1178
+ export type GetDatabaseUsageError = BadRequest | NotFound | TursoOpError;
1179
+ /** Retrieve Database Usage Fetch activity usage for a database in a given time period. */
1180
+ export declare const getDatabaseUsage: API.OperationMethod<GetDatabaseUsageRequest, GetDatabaseUsageResponse, GetDatabaseUsageError, TursoOpContext>;
1181
+ export type GetGroupError = NotFound | TursoOpError;
1182
+ /** Retrieve Group Returns a group belonging to the organization or user. */
1183
+ export declare const getGroup: API.OperationMethod<GetGroupRequest, GetGroupResponse, GetGroupError, TursoOpContext>;
1184
+ export type GetGroupConfigurationError = NotFound | TursoOpError;
1185
+ /** Retrieve Group Configuration Retrieve an individual group configuration belonging to the organization or user. */
1186
+ export declare const getGroupConfiguration: API.OperationMethod<GetGroupConfigurationRequest, GroupConfigurationResponse, GetGroupConfigurationError, TursoOpContext>;
1187
+ export type GetOrganizationError = NotFound | TursoOpError;
1188
+ /** Retrieve Organization Retrieve details of a specific organization. */
1189
+ export declare const getOrganization: API.OperationMethod<GetOrganizationRequest, GetOrganizationResponse, GetOrganizationError, TursoOpContext>;
1190
+ export type GetOrganizationMemberError = NotFound | TursoOpError;
1191
+ /** Retrieve Member Retrieve details of a specific member in the organization. */
1192
+ export declare const getOrganizationMember: API.OperationMethod<GetOrganizationMemberRequest, GetOrganizationMemberResponse, GetOrganizationMemberError, TursoOpContext>;
1193
+ export type GetOrganizationSubscriptionError = TursoOpError;
1194
+ /** Current Subscription Returns the current subscription details for the organization. */
1195
+ export declare const getOrganizationSubscription: API.OperationMethod<GetOrganizationSubscriptionRequest, GetOrganizationSubscriptionResponse, GetOrganizationSubscriptionError, TursoOpContext>;
1196
+ export type GetOrganizationUsageError = TursoOpError;
1197
+ /** Organization Usage Fetch current billing cycle usage for an organization. */
1198
+ export declare const getOrganizationUsage: API.OperationMethod<GetOrganizationUsageRequest, GetOrganizationUsageResponse, GetOrganizationUsageError, TursoOpContext>;
1199
+ export type InvalidateDatabaseTokensError = NotFound | TursoOpError;
1200
+ /** Invalidate All Database Auth Tokens Invalidates all authorization tokens for the specified database. */
1201
+ export declare const invalidateDatabaseTokens: API.OperationMethod<InvalidateDatabaseTokensRequest, InvalidateDatabaseTokensResponse, InvalidateDatabaseTokensError, TursoOpContext>;
1202
+ export type InvalidateGroupTokensError = NotFound | TursoOpError;
1203
+ /** Invalidate All Group Auth Tokens Invalidates all authorization tokens for the specified group. */
1204
+ export declare const invalidateGroupTokens: API.OperationMethod<InvalidateGroupTokensRequest, InvalidateGroupTokensResponse, InvalidateGroupTokensError, TursoOpContext>;
1205
+ export type InviteOrganizationMemberV2Error = TursoOpError;
1206
+ /** Invite Organization Member Invite a user to an organization. If the user isn't already registered with Turso, they will receive a signup link. If an existing pending invite exists for the same email, it will be replaced. */
1207
+ export declare const inviteOrganizationMemberV2: API.OperationMethod<InviteOrganizationMemberV2Request, InviteOrganizationMemberV2Response, InviteOrganizationMemberV2Error, TursoOpContext>;
1208
+ export type ListAPITokensError = TursoOpError;
1209
+ /** List API Tokens Returns a list of API tokens belonging to a user. */
1210
+ export declare const listAPITokens: API.OperationMethod<ListAPITokensRequest, ListAPITokensResponse, ListAPITokensError, TursoOpContext>;
1211
+ export type ListDatabaseInstancesError = NotFound | TursoOpError;
1212
+ /** List Database Instances Returns a list of instances of a database. Instances are the individual primary or replica databases in each region defined by the group. */
1213
+ export declare const listDatabaseInstances: API.OperationMethod<ListDatabaseInstancesRequest, ListDatabaseInstancesResponse, ListDatabaseInstancesError, TursoOpContext>;
1214
+ export type ListDatabasesError = TursoOpError;
1215
+ /** List Databases Returns a list of databases belonging to the organization or user. */
1216
+ export declare const listDatabases: API.OperationMethod<ListDatabasesRequest, ListDatabasesResponse, ListDatabasesError, TursoOpContext>;
1217
+ export type ListGroupsError = TursoOpError;
1218
+ /** List Groups Returns a list of groups belonging to the organization or user. */
1219
+ export declare const listGroups: API.OperationMethod<ListGroupsRequest, ListGroupsResponse, ListGroupsError, TursoOpContext>;
1220
+ export type ListLocationsError = TursoOpError;
1221
+ /** List Locations Returns a list of locations where you can create or replicate databases. */
1222
+ export declare const listLocations: API.OperationMethod<ListLocationsRequest, ListLocationsResponse, ListLocationsError, TursoOpContext>;
1223
+ export type ListOrganizationAPITokensError = TursoOpError;
1224
+ /** List Organization API Tokens Returns the API tokens scoped to this organization (both organization-scoped and group-scoped). Unrestricted tokens are not returned here — manage those via [`GET /v1/auth/api-tokens`](/api-reference/tokens/list). Authorization is symmetric with the revoke endpoint: - **Admins and owners** see every token scoped to the organization, with the minting user attached in the `owner` field. - **Members and viewers** see only tokens they minted themselves. This mirrors the personal-access-token model used in GitHub organization settings: admins get the full attribution list; everyone else sees their own access. */
1225
+ export declare const listOrganizationAPITokens: API.OperationMethod<ListOrganizationAPITokensRequest, ListOrganizationAPITokensResponse, ListOrganizationAPITokensError, TursoOpContext>;
1226
+ export type ListOrganizationAuditLogsError = TursoOpError;
1227
+ /** List Audit Logs Return the audit logs for the given organization, ordered by the `created_at` field in descending order. */
1228
+ export declare const listOrganizationAuditLogs: API.OperationMethod<ListOrganizationAuditLogsRequest, ListOrganizationAuditLogsResponse, ListOrganizationAuditLogsError, TursoOpContext>;
1229
+ export type ListOrganizationInvitesV2Error = TursoOpError;
1230
+ /** List Invites Returns a list of pending invites for the organization. */
1231
+ export declare const listOrganizationInvitesV2: API.OperationMethod<ListOrganizationInvitesV2Request, ListOrganizationInvitesV2Response, ListOrganizationInvitesV2Error, TursoOpContext>;
1232
+ export type ListOrganizationInvoicesError = TursoOpError;
1233
+ /** List Invoices Returns a list of invoices for the organization. */
1234
+ export declare const listOrganizationInvoices: API.OperationMethod<ListOrganizationInvoicesRequest, ListOrganizationInvoicesResponse, ListOrganizationInvoicesError, TursoOpContext>;
1235
+ export type ListOrganizationMembersError = TursoOpError;
1236
+ /** List Members Returns a list of members part of the organization. */
1237
+ export declare const listOrganizationMembers: API.OperationMethod<ListOrganizationMembersRequest, ListOrganizationMembersResponse, ListOrganizationMembersError, TursoOpContext>;
1238
+ export type ListOrganizationPlansError = TursoOpError;
1239
+ /** List Plans Returns a list of available plans and their quotas. */
1240
+ export declare const listOrganizationPlans: API.OperationMethod<ListOrganizationPlansRequest, ListOrganizationPlansResponse, ListOrganizationPlansError, TursoOpContext>;
1241
+ export type ListOrganizationsError = TursoOpError;
1242
+ /** List Organizations Returns a list of organizations the authenticated user owns or is a member of. */
1243
+ export declare const listOrganizations: API.OperationMethod<ListOrganizationsRequest, ListOrganizationsResponse, ListOrganizationsError, TursoOpContext>;
1244
+ export type RemoveLocationFromGroupError = BadRequest | NotFound | TursoOpError;
1245
+ /** Remove Location from Group Removes a location from the specified group. */
1246
+ export declare const removeLocationFromGroup: API.OperationMethod<RemoveLocationFromGroupRequest, RemoveLocationFromGroupResponse, RemoveLocationFromGroupError, TursoOpContext>;
1247
+ export type RemoveOrganizationMemberError = NotFound | TursoOpError;
1248
+ /** Remove Member Remove a user from the organization by username. */
1249
+ export declare const removeOrganizationMember: API.OperationMethod<RemoveOrganizationMemberRequest, RemoveOrganizationMemberResponse, RemoveOrganizationMemberError, TursoOpContext>;
1250
+ export type RevokeAPITokenError = NotFound | TursoOpError;
1251
+ /** Revoke API Token Revokes the provided API token belonging to a user. */
1252
+ export declare const revokeAPIToken: API.OperationMethod<RevokeAPITokenRequest, RevokeAPITokenResponse, RevokeAPITokenError, TursoOpContext>;
1253
+ export type RevokeOrganizationAPITokenError = TursoOpError;
1254
+ /** Revoke Organization API Token Revokes a token scoped to this organization. The path takes a token **ID**, not a name, because names are unique per user but not across users — an admin revoking a member's token can't disambiguate by name alone. Authorization is symmetric with the list endpoint: - **Admins and owners** can revoke any token scoped to the organization (org-scoped or group-scoped, regardless of who minted it). - **Members and viewers** can revoke only tokens they minted themselves. A token scoped to a different organization returns `404`, not `403`, so the endpoint does not leak the existence of cross-org token IDs. Unrestricted tokens are also unreachable here and must be revoked via [`DELETE /v1/auth/api-tokens/{tokenName}`](/api-reference/tokens/revoke). */
1255
+ export declare const revokeOrganizationAPIToken: API.OperationMethod<RevokeOrganizationAPITokenRequest, RevokeOrganizationAPITokenResponse, RevokeOrganizationAPITokenError, TursoOpContext>;
1256
+ export type TransferGroupError = NotFound | TursoOpError;
1257
+ /** Transfer Group Transfer a group to another organization that you own or a member of. */
1258
+ export declare const transferGroup: API.OperationMethod<TransferGroupRequest, TransferGroupResponse, TransferGroupError, TursoOpContext>;
1259
+ export type UnarchiveGroupError = NotFound | TursoOpError;
1260
+ /** Unarchive Group Unarchive a group that has been archived due to inactivity. */
1261
+ export declare const unarchiveGroup: API.OperationMethod<UnarchiveGroupRequest, UnarchiveGroupResponse, UnarchiveGroupError, TursoOpContext>;
1262
+ export type UpdateDatabaseConfigurationError = NotFound | TursoOpError;
1263
+ /** Update Database Configuration Update a database configuration belonging to the organization or user. */
1264
+ export declare const updateDatabaseConfiguration: API.OperationMethod<UpdateDatabaseConfigurationRequest, DatabaseConfigurationResponse, UpdateDatabaseConfigurationError, TursoOpContext>;
1265
+ export type UpdateGroupConfigurationError = NotFound | TursoOpError;
1266
+ /** Update Group Configuration Update a group configuration belonging to the organization or user. */
1267
+ export declare const updateGroupConfiguration: API.OperationMethod<UpdateGroupConfigurationRequest, GroupConfigurationResponse, UpdateGroupConfigurationError, TursoOpContext>;
1268
+ export type UpdateGroupDatabasesError = NotFound | TursoOpError;
1269
+ /** Update Databases in a Group Updates all databases in the group to the latest libSQL version. */
1270
+ export declare const updateGroupDatabases: API.OperationMethod<UpdateGroupDatabasesRequest, UpdateGroupDatabasesResponse, UpdateGroupDatabasesError, TursoOpContext>;
1271
+ export type UpdateMemberRoleError = BadRequest | Forbidden | NotFound | TursoOpError;
1272
+ /** Update Member Role Update the role of an organization member. Only organization admins or owners can perform this action. */
1273
+ export declare const updateMemberRole: API.OperationMethod<UpdateMemberRoleRequest, UpdateMemberRoleResponse, UpdateMemberRoleError, TursoOpContext>;
1274
+ export type UpdateOrganizationError = TursoOpError;
1275
+ /** Update Organization Update an organization you own or are a member of. */
1276
+ export declare const updateOrganization: API.OperationMethod<UpdateOrganizationRequest, UpdateOrganizationResponse, UpdateOrganizationError, TursoOpContext>;
1277
+ export type ValidateAPITokenError = TursoOpError;
1278
+ /** Validate API Token Validates an API token belonging to a user. */
1279
+ export declare const validateAPIToken: API.OperationMethod<ValidateAPITokenRequest, ValidateAPITokenResponse, ValidateAPITokenError, TursoOpContext>;
1280
+ //# sourceMappingURL=turso.d.ts.map