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

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
@@ -1,29 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { NotFound } from "../errors.ts";
3
- export interface GetDatabaseInstanceInput {
4
- organizationSlug: string;
5
- databaseName: string;
6
- instanceName: string;
7
- }
8
- export declare const GetDatabaseInstanceInput: Schema.Codec<GetDatabaseInstanceInput>;
9
- export interface GetDatabaseInstanceOutput {
10
- instance?: {
11
- uuid?: string;
12
- name?: string;
13
- type?: "primary" | "replica";
14
- region?: string;
15
- hostname?: string;
16
- };
17
- }
18
- export declare const GetDatabaseInstanceOutput: Schema.Codec<GetDatabaseInstanceOutput>;
19
- /**
20
- * Retrieve Database Instance
21
- *
22
- * Return the individual database instance by name.
23
- *
24
- * @param organizationSlug - The slug of the organization or user account.
25
- * @param databaseName - The name of the database.
26
- * @param instanceName - The name of the instance (location code).
27
- */
28
- export declare const getDatabaseInstance: import("@distilled.cloud/core/client").OperationMethod<GetDatabaseInstanceInput, GetDatabaseInstanceOutput, NotFound, import("../credentials.ts").Credentials, never>;
29
- //# sourceMappingURL=getDatabaseInstance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDatabaseInstance.d.ts","sourceRoot":"","sources":["../../src/operations/getDatabaseInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,WAAW,wBAAwB;IACvC,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AACD,eAAO,MAAM,wBAAwB,EAUnB,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;AAGzD,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;QAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AACD,eAAO,MAAM,yBAAyB,EAWnB,MAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;AAG3D;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,uKAI7B,CAAC"}
@@ -1,39 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { API } from "../client.js";
3
- import * as T from "../traits.js";
4
- import { NotFound } from "../errors.js";
5
- export const GetDatabaseInstanceInput =
6
- /*@__PURE__*/ Schema.Struct({
7
- organizationSlug: Schema.String.pipe(T.PathParam()),
8
- databaseName: Schema.String.pipe(T.PathParam()),
9
- instanceName: Schema.String.pipe(T.PathParam()),
10
- }).pipe(T.Http({
11
- method: "GET",
12
- path: "/v1/organizations/{organizationSlug}/databases/{databaseName}/instances/{instanceName}",
13
- }));
14
- export const GetDatabaseInstanceOutput =
15
- /*@__PURE__*/ Schema.Struct({
16
- instance: Schema.optional(Schema.Struct({
17
- uuid: Schema.optional(Schema.String),
18
- name: Schema.optional(Schema.String),
19
- type: Schema.optional(Schema.Literals(["primary", "replica"])),
20
- region: Schema.optional(Schema.String),
21
- hostname: Schema.optional(Schema.String),
22
- })),
23
- });
24
- // The operation
25
- /**
26
- * Retrieve Database Instance
27
- *
28
- * Return the individual database instance by name.
29
- *
30
- * @param organizationSlug - The slug of the organization or user account.
31
- * @param databaseName - The name of the database.
32
- * @param instanceName - The name of the instance (location code).
33
- */
34
- export const getDatabaseInstance = /*@__PURE__*/ API.make(() => ({
35
- inputSchema: GetDatabaseInstanceInput,
36
- outputSchema: GetDatabaseInstanceOutput,
37
- errors: [NotFound],
38
- }));
39
- //# sourceMappingURL=getDatabaseInstance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDatabaseInstance.js","sourceRoot":"","sources":["../../src/operations/getDatabaseInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAQxC,MAAM,CAAC,MAAM,wBAAwB;AACnC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC/C,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAChD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,wFAAwF;CAC/F,CAAC,CACkD,CAAC;AAYzD,MAAM,CAAC,MAAM,yBAAyB;AACpC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC,QAAQ,CACvB,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;QAC9D,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACtC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACzC,CAAC,CACH;CACF,CAAuD,CAAC;AAE3D,gBAAgB;AAChB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC/D,WAAW,EAAE,wBAAwB;IACrC,YAAY,EAAE,yBAAyB;IACvC,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
@@ -1,25 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { NotFound } from "../errors.ts";
3
- export interface GetDatabaseStatsInput {
4
- organizationSlug: string;
5
- databaseName: string;
6
- }
7
- export declare const GetDatabaseStatsInput: Schema.Codec<GetDatabaseStatsInput>;
8
- export interface GetDatabaseStatsOutput {
9
- top_queries?: {
10
- query?: string;
11
- rows_read?: number;
12
- rows_written?: number;
13
- }[] | null;
14
- }
15
- export declare const GetDatabaseStatsOutput: Schema.Codec<GetDatabaseStatsOutput>;
16
- /**
17
- * Retrieve Database Stats
18
- *
19
- * Fetch the top queries of a database, including the count of rows read and written.
20
- *
21
- * @param organizationSlug - The slug of the organization or user account.
22
- * @param databaseName - The name of the database.
23
- */
24
- export declare const getDatabaseStats: import("@distilled.cloud/core/client").OperationMethod<GetDatabaseStatsInput, GetDatabaseStatsOutput, NotFound, import("../credentials.ts").Credentials, never>;
25
- //# sourceMappingURL=getDatabaseStats.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDatabaseStats.d.ts","sourceRoot":"","sources":["../../src/operations/getDatabaseStats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;CACtB;AACD,eAAO,MAAM,qBAAqB,EAQlB,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAGpD,MAAM,WAAW,sBAAsB;IACrC,WAAW,CAAC,EACR;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,GAC/D,IAAI,CAAC;CACV;AACD,eAAO,MAAM,sBAAsB,EAYlB,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAGtD;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,iKAI1B,CAAC"}
@@ -1,33 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { API } from "../client.js";
3
- import * as T from "../traits.js";
4
- import { NotFound } from "../errors.js";
5
- export const GetDatabaseStatsInput = /*@__PURE__*/ Schema.Struct({
6
- organizationSlug: Schema.String.pipe(T.PathParam()),
7
- databaseName: Schema.String.pipe(T.PathParam()),
8
- }).pipe(T.Http({
9
- method: "GET",
10
- path: "/v1/organizations/{organizationSlug}/databases/{databaseName}/stats",
11
- }));
12
- export const GetDatabaseStatsOutput = /*@__PURE__*/ Schema.Struct({
13
- top_queries: Schema.optional(Schema.NullOr(Schema.Array(Schema.Struct({
14
- query: Schema.optional(Schema.String),
15
- rows_read: Schema.optional(Schema.Number),
16
- rows_written: Schema.optional(Schema.Number),
17
- })))),
18
- });
19
- // The operation
20
- /**
21
- * Retrieve Database Stats
22
- *
23
- * Fetch the top queries of a database, including the count of rows read and written.
24
- *
25
- * @param organizationSlug - The slug of the organization or user account.
26
- * @param databaseName - The name of the database.
27
- */
28
- export const getDatabaseStats = /*@__PURE__*/ API.make(() => ({
29
- inputSchema: GetDatabaseStatsInput,
30
- outputSchema: GetDatabaseStatsOutput,
31
- errors: [NotFound],
32
- }));
33
- //# sourceMappingURL=getDatabaseStats.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDatabaseStats.js","sourceRoot":"","sources":["../../src/operations/getDatabaseStats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAOxC,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC/D,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAChD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,qEAAqE;CAC5E,CAAC,CAC+C,CAAC;AAQpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAChE,WAAW,EAAE,MAAM,CAAC,QAAQ,CAC1B,MAAM,CAAC,MAAM,CACX,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KAC7C,CAAC,CACH,CACF,CACF;CACF,CAAoD,CAAC;AAEtD,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5D,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,sBAAsB;IACpC,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
@@ -1,42 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { BadRequest, NotFound } from "../errors.ts";
3
- export interface GetDatabaseUsageInput {
4
- organizationSlug: string;
5
- databaseName: string;
6
- from?: string;
7
- to?: string;
8
- }
9
- export declare const GetDatabaseUsageInput: Schema.Codec<GetDatabaseUsageInput>;
10
- export interface GetDatabaseUsageOutput {
11
- database?: {
12
- uuid?: string;
13
- instances?: {
14
- uuid?: string;
15
- usage?: {
16
- rows_read?: number;
17
- rows_written?: number;
18
- storage_bytes?: number;
19
- bytes_synced?: number;
20
- };
21
- }[];
22
- total?: {
23
- rows_read?: number;
24
- rows_written?: number;
25
- storage_bytes?: number;
26
- bytes_synced?: number;
27
- };
28
- };
29
- }
30
- export declare const GetDatabaseUsageOutput: Schema.Codec<GetDatabaseUsageOutput>;
31
- /**
32
- * Retrieve Database Usage
33
- *
34
- * Fetch activity usage for a database in a given time period.
35
- *
36
- * @param organizationSlug - The slug of the organization or user account.
37
- * @param databaseName - The name of the database.
38
- * @param from - 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`
39
- * @param to - 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`
40
- */
41
- export declare const getDatabaseUsage: import("@distilled.cloud/core/client").OperationMethod<GetDatabaseUsageInput, GetDatabaseUsageOutput, BadRequest | NotFound, import("../credentials.ts").Credentials, never>;
42
- //# sourceMappingURL=getDatabaseUsage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDatabaseUsage.d.ts","sourceRoot":"","sources":["../../src/operations/getDatabaseUsage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AACD,eAAO,MAAM,qBAAqB,EAUlB,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAGpD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE;YACV,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,KAAK,CAAC,EAAE;gBACN,SAAS,CAAC,EAAE,MAAM,CAAC;gBACnB,YAAY,CAAC,EAAE,MAAM,CAAC;gBACtB,aAAa,CAAC,EAAE,MAAM,CAAC;gBACvB,YAAY,CAAC,EAAE,MAAM,CAAC;aACvB,CAAC;SACH,EAAE,CAAC;QACJ,KAAK,CAAC,EAAE;YACN,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,aAAa,CAAC,EAAE,MAAM,CAAC;YACvB,YAAY,CAAC,EAAE,MAAM,CAAC;SACvB,CAAC;KACH,CAAC;CACH;AACD,eAAO,MAAM,sBAAsB,EA6BlB,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAGtD;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,8KAI1B,CAAC"}
@@ -1,50 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { API } from "../client.js";
3
- import * as T from "../traits.js";
4
- import { BadRequest, NotFound } from "../errors.js";
5
- export const GetDatabaseUsageInput = /*@__PURE__*/ Schema.Struct({
6
- organizationSlug: Schema.String.pipe(T.PathParam()),
7
- databaseName: Schema.String.pipe(T.PathParam()),
8
- from: Schema.optional(Schema.String),
9
- to: Schema.optional(Schema.String),
10
- }).pipe(T.Http({
11
- method: "GET",
12
- path: "/v1/organizations/{organizationSlug}/databases/{databaseName}/usage",
13
- }));
14
- export const GetDatabaseUsageOutput = /*@__PURE__*/ Schema.Struct({
15
- database: Schema.optional(Schema.Struct({
16
- uuid: Schema.optional(Schema.String),
17
- instances: Schema.optional(Schema.Array(Schema.Struct({
18
- uuid: Schema.optional(Schema.String),
19
- usage: Schema.optional(Schema.Struct({
20
- rows_read: Schema.optional(Schema.Number),
21
- rows_written: Schema.optional(Schema.Number),
22
- storage_bytes: Schema.optional(Schema.Number),
23
- bytes_synced: Schema.optional(Schema.Number),
24
- })),
25
- }))),
26
- total: Schema.optional(Schema.Struct({
27
- rows_read: Schema.optional(Schema.Number),
28
- rows_written: Schema.optional(Schema.Number),
29
- storage_bytes: Schema.optional(Schema.Number),
30
- bytes_synced: Schema.optional(Schema.Number),
31
- })),
32
- })),
33
- });
34
- // The operation
35
- /**
36
- * Retrieve Database Usage
37
- *
38
- * Fetch activity usage for a database in a given time period.
39
- *
40
- * @param organizationSlug - The slug of the organization or user account.
41
- * @param databaseName - The name of the database.
42
- * @param from - 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`
43
- * @param to - 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`
44
- */
45
- export const getDatabaseUsage = /*@__PURE__*/ API.make(() => ({
46
- inputSchema: GetDatabaseUsageInput,
47
- outputSchema: GetDatabaseUsageOutput,
48
- errors: [BadRequest, NotFound],
49
- }));
50
- //# sourceMappingURL=getDatabaseUsage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDatabaseUsage.js","sourceRoot":"","sources":["../../src/operations/getDatabaseUsage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AASpD,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC/D,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC/C,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACnC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,qEAAqE;CAC5E,CAAC,CAC+C,CAAC;AAuBpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAChE,QAAQ,EAAE,MAAM,CAAC,QAAQ,CACvB,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,SAAS,EAAE,MAAM,CAAC,QAAQ,CACxB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACpC,KAAK,EAAE,MAAM,CAAC,QAAQ,CACpB,MAAM,CAAC,MAAM,CAAC;gBACZ,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBACzC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBAC5C,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBAC7C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;aAC7C,CAAC,CACH;SACF,CAAC,CACH,CACF;QACD,KAAK,EAAE,MAAM,CAAC,QAAQ,CACpB,MAAM,CAAC,MAAM,CAAC;YACZ,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACzC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YAC5C,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YAC7C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;SAC7C,CAAC,CACH;KACF,CAAC,CACH;CACF,CAAoD,CAAC;AAEtD,gBAAgB;AAChB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5D,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,sBAAsB;IACpC,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAU;CACxC,CAAC,CAAC,CAAC"}
@@ -1,28 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { NotFound } from "../errors.ts";
3
- export interface GetGroupInput {
4
- organizationSlug: string;
5
- groupName: string;
6
- }
7
- export declare const GetGroupInput: Schema.Codec<GetGroupInput>;
8
- export interface GetGroupOutput {
9
- group?: {
10
- name?: string;
11
- version?: string;
12
- uuid?: string;
13
- locations?: string[];
14
- primary?: string;
15
- delete_protection?: boolean;
16
- };
17
- }
18
- export declare const GetGroupOutput: Schema.Codec<GetGroupOutput>;
19
- /**
20
- * Retrieve Group
21
- *
22
- * Returns a group belonging to the organization or user.
23
- *
24
- * @param organizationSlug - The slug of the organization or user account.
25
- * @param groupName - The name of the group.
26
- */
27
- export declare const getGroup: import("@distilled.cloud/core/client").OperationMethod<GetGroupInput, GetGroupOutput, NotFound, import("../credentials.ts").Credentials, never>;
28
- //# sourceMappingURL=getGroup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getGroup.d.ts","sourceRoot":"","sources":["../../src/operations/getGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,WAAW,aAAa;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,eAAO,MAAM,aAAa,EAQV,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;AAG5C,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B,CAAC;CACH;AACD,eAAO,MAAM,cAAc,EAWV,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;AAG9C;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,iJAIlB,CAAC"}
@@ -1,36 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { API } from "../client.js";
3
- import * as T from "../traits.js";
4
- import { NotFound } from "../errors.js";
5
- export const GetGroupInput = /*@__PURE__*/ Schema.Struct({
6
- organizationSlug: Schema.String.pipe(T.PathParam()),
7
- groupName: Schema.String.pipe(T.PathParam()),
8
- }).pipe(T.Http({
9
- method: "GET",
10
- path: "/v1/organizations/{organizationSlug}/groups/{groupName}",
11
- }));
12
- export const GetGroupOutput = /*@__PURE__*/ Schema.Struct({
13
- group: Schema.optional(Schema.Struct({
14
- name: Schema.optional(Schema.String),
15
- version: Schema.optional(Schema.String),
16
- uuid: Schema.optional(Schema.String),
17
- locations: Schema.optional(Schema.Array(Schema.String)),
18
- primary: Schema.optional(Schema.String),
19
- delete_protection: Schema.optional(Schema.Boolean),
20
- })),
21
- });
22
- // The operation
23
- /**
24
- * Retrieve Group
25
- *
26
- * Returns a group belonging to the organization or user.
27
- *
28
- * @param organizationSlug - The slug of the organization or user account.
29
- * @param groupName - The name of the group.
30
- */
31
- export const getGroup = /*@__PURE__*/ API.make(() => ({
32
- inputSchema: GetGroupInput,
33
- outputSchema: GetGroupOutput,
34
- errors: [NotFound],
35
- }));
36
- //# sourceMappingURL=getGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getGroup.js","sourceRoot":"","sources":["../../src/operations/getGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAOxC,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACvD,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC7C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,yDAAyD;CAChE,CAAC,CACuC,CAAC;AAa5C,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxD,KAAK,EAAE,MAAM,CAAC,QAAQ,CACpB,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACvD,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;KACnD,CAAC,CACH;CACF,CAA4C,CAAC;AAE9C,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACpD,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { NotFound } from "../errors.ts";
3
- export interface GetGroupConfigurationInput {
4
- organizationSlug: string;
5
- groupName: string;
6
- }
7
- export declare const GetGroupConfigurationInput: Schema.Codec<GetGroupConfigurationInput>;
8
- export interface GetGroupConfigurationOutput {
9
- delete_protection?: boolean;
10
- }
11
- export declare const GetGroupConfigurationOutput: Schema.Codec<GetGroupConfigurationOutput>;
12
- /**
13
- * Retrieve Group Configuration
14
- *
15
- * Retrieve an individual group configuration belonging to the organization or user.
16
- *
17
- * @param organizationSlug - The slug of the organization or user account.
18
- * @param groupName - The name of the group.
19
- */
20
- export declare const getGroupConfiguration: import("@distilled.cloud/core/client").OperationMethod<GetGroupConfigurationInput, GetGroupConfigurationOutput, NotFound, import("../credentials.ts").Credentials, never>;
21
- //# sourceMappingURL=getGroupConfiguration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getGroupConfiguration.d.ts","sourceRoot":"","sources":["../../src/operations/getGroupConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,WAAW,0BAA0B;IACzC,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,eAAO,MAAM,0BAA0B,EASrB,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;AAG3D,MAAM,WAAW,2BAA2B;IAC1C,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AACD,eAAO,MAAM,2BAA2B,EAGrB,MAAM,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;AAG7D;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,2KAI/B,CAAC"}
@@ -1,31 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { API } from "../client.js";
3
- import * as T from "../traits.js";
4
- import { NotFound } from "../errors.js";
5
- export const GetGroupConfigurationInput =
6
- /*@__PURE__*/ Schema.Struct({
7
- organizationSlug: Schema.String.pipe(T.PathParam()),
8
- groupName: Schema.String.pipe(T.PathParam()),
9
- }).pipe(T.Http({
10
- method: "GET",
11
- path: "/v1/organizations/{organizationSlug}/groups/{groupName}/configuration",
12
- }));
13
- export const GetGroupConfigurationOutput =
14
- /*@__PURE__*/ Schema.Struct({
15
- delete_protection: Schema.optional(Schema.Boolean),
16
- });
17
- // The operation
18
- /**
19
- * Retrieve Group Configuration
20
- *
21
- * Retrieve an individual group configuration belonging to the organization or user.
22
- *
23
- * @param organizationSlug - The slug of the organization or user account.
24
- * @param groupName - The name of the group.
25
- */
26
- export const getGroupConfiguration = /*@__PURE__*/ API.make(() => ({
27
- inputSchema: GetGroupConfigurationInput,
28
- outputSchema: GetGroupConfigurationOutput,
29
- errors: [NotFound],
30
- }));
31
- //# sourceMappingURL=getGroupConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getGroupConfiguration.js","sourceRoot":"","sources":["../../src/operations/getGroupConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAOxC,MAAM,CAAC,MAAM,0BAA0B;AACrC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC7C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,uEAAuE;CAC9E,CAAC,CACoD,CAAC;AAM3D,MAAM,CAAC,MAAM,2BAA2B;AACtC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;CACnD,CAAyD,CAAC;AAE7D,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACjE,WAAW,EAAE,0BAA0B;IACvC,YAAY,EAAE,2BAA2B;IACzC,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
@@ -1,30 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { NotFound } from "../errors.ts";
3
- export interface GetOrganizationInput {
4
- organizationSlug: string;
5
- }
6
- export declare const GetOrganizationInput: Schema.Codec<GetOrganizationInput>;
7
- export interface GetOrganizationOutput {
8
- organization?: {
9
- name?: string;
10
- slug?: string;
11
- type?: "personal" | "team";
12
- overages?: boolean;
13
- require_mfa?: boolean;
14
- blocked_reads?: boolean;
15
- blocked_writes?: boolean;
16
- plan_id?: string;
17
- plan_timeline?: string;
18
- platform?: string;
19
- };
20
- }
21
- export declare const GetOrganizationOutput: Schema.Codec<GetOrganizationOutput>;
22
- /**
23
- * Retrieve Organization
24
- *
25
- * Retrieve details of a specific organization.
26
- *
27
- * @param organizationSlug - The slug of the organization or user account.
28
- */
29
- export declare const getOrganization: import("@distilled.cloud/core/client").OperationMethod<GetOrganizationInput, GetOrganizationOutput, NotFound, import("../credentials.ts").Credentials, never>;
30
- //# sourceMappingURL=getOrganization.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getOrganization.d.ts","sourceRoot":"","sources":["../../src/operations/getOrganization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,WAAW,oBAAoB;IACnC,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AACD,eAAO,MAAM,oBAAoB,EAIjB,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;AAGnD,MAAM,WAAW,qBAAqB;IACpC,YAAY,CAAC,EAAE;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;QAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AACD,eAAO,MAAM,qBAAqB,EAejB,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAGrD;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,+JAIzB,CAAC"}
@@ -1,35 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { API } from "../client.js";
3
- import * as T from "../traits.js";
4
- import { NotFound } from "../errors.js";
5
- export const GetOrganizationInput = /*@__PURE__*/ Schema.Struct({
6
- organizationSlug: Schema.String.pipe(T.PathParam()),
7
- }).pipe(T.Http({ method: "GET", path: "/v1/organizations/{organizationSlug}" }));
8
- export const GetOrganizationOutput = /*@__PURE__*/ Schema.Struct({
9
- organization: Schema.optional(Schema.Struct({
10
- name: Schema.optional(Schema.String),
11
- slug: Schema.optional(Schema.String),
12
- type: Schema.optional(Schema.Literals(["personal", "team"])),
13
- overages: Schema.optional(Schema.Boolean),
14
- require_mfa: Schema.optional(Schema.Boolean),
15
- blocked_reads: Schema.optional(Schema.Boolean),
16
- blocked_writes: Schema.optional(Schema.Boolean),
17
- plan_id: Schema.optional(Schema.String),
18
- plan_timeline: Schema.optional(Schema.String),
19
- platform: Schema.optional(Schema.String),
20
- })),
21
- });
22
- // The operation
23
- /**
24
- * Retrieve Organization
25
- *
26
- * Retrieve details of a specific organization.
27
- *
28
- * @param organizationSlug - The slug of the organization or user account.
29
- */
30
- export const getOrganization = /*@__PURE__*/ API.make(() => ({
31
- inputSchema: GetOrganizationInput,
32
- outputSchema: GetOrganizationOutput,
33
- errors: [NotFound],
34
- }));
35
- //# sourceMappingURL=getOrganization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getOrganization.js","sourceRoot":"","sources":["../../src/operations/getOrganization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAMxC,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC9D,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CACpD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,sCAAsC,EAAE,CAAC,CACvB,CAAC;AAiBnD,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC/D,YAAY,EAAE,MAAM,CAAC,QAAQ,CAC3B,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;QAC5D,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QACzC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QAC5C,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QAC9C,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC7C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACzC,CAAC,CACH;CACF,CAAmD,CAAC;AAErD,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC3D,WAAW,EAAE,oBAAoB;IACjC,YAAY,EAAE,qBAAqB;IACnC,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
@@ -1,25 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { NotFound } from "../errors.ts";
3
- export interface GetOrganizationMemberInput {
4
- organizationSlug: string;
5
- username: string;
6
- }
7
- export declare const GetOrganizationMemberInput: Schema.Codec<GetOrganizationMemberInput>;
8
- export interface GetOrganizationMemberOutput {
9
- member?: {
10
- username?: string;
11
- role?: "owner" | "admin" | "member" | "viewer";
12
- email?: string;
13
- };
14
- }
15
- export declare const GetOrganizationMemberOutput: Schema.Codec<GetOrganizationMemberOutput>;
16
- /**
17
- * Retrieve Member
18
- *
19
- * Retrieve details of a specific member in the organization.
20
- *
21
- * @param organizationSlug - The slug of the organization or user account.
22
- * @param username - The username of a Turso user or organization member.
23
- */
24
- export declare const getOrganizationMember: import("@distilled.cloud/core/client").OperationMethod<GetOrganizationMemberInput, GetOrganizationMemberOutput, NotFound, import("../credentials.ts").Credentials, never>;
25
- //# sourceMappingURL=getOrganizationMember.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getOrganizationMember.d.ts","sourceRoot":"","sources":["../../src/operations/getOrganizationMember.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,WAAW,0BAA0B;IACzC,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,eAAO,MAAM,0BAA0B,EASrB,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;AAG3D,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE;QACP,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;QAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AACD,eAAO,MAAM,2BAA2B,EAWrB,MAAM,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;AAG7D;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,2KAI/B,CAAC"}
@@ -1,35 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { API } from "../client.js";
3
- import * as T from "../traits.js";
4
- import { NotFound } from "../errors.js";
5
- export const GetOrganizationMemberInput =
6
- /*@__PURE__*/ Schema.Struct({
7
- organizationSlug: Schema.String.pipe(T.PathParam()),
8
- username: Schema.String.pipe(T.PathParam()),
9
- }).pipe(T.Http({
10
- method: "GET",
11
- path: "/v1/organizations/{organizationSlug}/members/{username}",
12
- }));
13
- export const GetOrganizationMemberOutput =
14
- /*@__PURE__*/ Schema.Struct({
15
- member: Schema.optional(Schema.Struct({
16
- username: Schema.optional(Schema.String),
17
- role: Schema.optional(Schema.Literals(["owner", "admin", "member", "viewer"])),
18
- email: Schema.optional(Schema.String),
19
- })),
20
- });
21
- // The operation
22
- /**
23
- * Retrieve Member
24
- *
25
- * Retrieve details of a specific member in the organization.
26
- *
27
- * @param organizationSlug - The slug of the organization or user account.
28
- * @param username - The username of a Turso user or organization member.
29
- */
30
- export const getOrganizationMember = /*@__PURE__*/ API.make(() => ({
31
- inputSchema: GetOrganizationMemberInput,
32
- outputSchema: GetOrganizationMemberOutput,
33
- errors: [NotFound],
34
- }));
35
- //# sourceMappingURL=getOrganizationMember.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getOrganizationMember.js","sourceRoot":"","sources":["../../src/operations/getOrganizationMember.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAOxC,MAAM,CAAC,MAAM,0BAA0B;AACrC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC5C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,yDAAyD;CAChE,CAAC,CACoD,CAAC;AAU3D,MAAM,CAAC,MAAM,2BAA2B;AACtC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACxC,IAAI,EAAE,MAAM,CAAC,QAAQ,CACnB,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CACxD;QACD,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACtC,CAAC,CACH;CACF,CAAyD,CAAC;AAE7D,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACjE,WAAW,EAAE,0BAA0B;IACvC,YAAY,EAAE,2BAA2B;IACzC,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
@@ -1,23 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- export interface GetOrganizationSubscriptionInput {
3
- organizationSlug: string;
4
- }
5
- export declare const GetOrganizationSubscriptionInput: Schema.Codec<GetOrganizationSubscriptionInput>;
6
- export interface GetOrganizationSubscriptionOutput {
7
- subscription?: {
8
- name?: string;
9
- overages?: boolean;
10
- plan?: string;
11
- timeline?: string;
12
- };
13
- }
14
- export declare const GetOrganizationSubscriptionOutput: Schema.Codec<GetOrganizationSubscriptionOutput>;
15
- /**
16
- * Current Subscription
17
- *
18
- * Returns the current subscription details for the organization.
19
- *
20
- * @param organizationSlug - The slug of the organization or user account.
21
- */
22
- export declare const getOrganizationSubscription: import("@distilled.cloud/core/client").OperationMethod<GetOrganizationSubscriptionInput, GetOrganizationSubscriptionOutput, never, import("../credentials.ts").Credentials, never>;
23
- //# sourceMappingURL=getOrganizationSubscription.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getOrganizationSubscription.d.ts","sourceRoot":"","sources":["../../src/operations/getOrganizationSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,gCAAgC;IAC/C,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AACD,eAAO,MAAM,gCAAgC,EAQ3B,MAAM,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;AAGjE,MAAM,WAAW,iCAAiC;IAChD,YAAY,CAAC,EAAE;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AACD,eAAO,MAAM,iCAAiC,EAU3B,MAAM,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;AAGnE;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,oLAGrC,CAAC"}
@@ -1,32 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { API } from "../client.js";
3
- import * as T from "../traits.js";
4
- export const GetOrganizationSubscriptionInput =
5
- /*@__PURE__*/ Schema.Struct({
6
- organizationSlug: Schema.String.pipe(T.PathParam()),
7
- }).pipe(T.Http({
8
- method: "GET",
9
- path: "/v1/organizations/{organizationSlug}/subscription",
10
- }));
11
- export const GetOrganizationSubscriptionOutput =
12
- /*@__PURE__*/ Schema.Struct({
13
- subscription: Schema.optional(Schema.Struct({
14
- name: Schema.optional(Schema.String),
15
- overages: Schema.optional(Schema.Boolean),
16
- plan: Schema.optional(Schema.String),
17
- timeline: Schema.optional(Schema.String),
18
- })),
19
- });
20
- // The operation
21
- /**
22
- * Current Subscription
23
- *
24
- * Returns the current subscription details for the organization.
25
- *
26
- * @param organizationSlug - The slug of the organization or user account.
27
- */
28
- export const getOrganizationSubscription = /*@__PURE__*/ API.make(() => ({
29
- inputSchema: GetOrganizationSubscriptionInput,
30
- outputSchema: GetOrganizationSubscriptionOutput,
31
- }));
32
- //# sourceMappingURL=getOrganizationSubscription.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getOrganizationSubscription.js","sourceRoot":"","sources":["../../src/operations/getOrganizationSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAMlC,MAAM,CAAC,MAAM,gCAAgC;AAC3C,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CACpD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,mDAAmD;CAC1D,CAAC,CAC0D,CAAC;AAWjE,MAAM,CAAC,MAAM,iCAAiC;AAC5C,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC,QAAQ,CAC3B,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QACzC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACzC,CAAC,CACH;CACF,CAA+D,CAAC;AAEnE,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACvE,WAAW,EAAE,gCAAgC;IAC7C,YAAY,EAAE,iCAAiC;CAChD,CAAC,CAAC,CAAC"}