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

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 (320) hide show
  1. package/LICENSE +201 -0
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +9 -1
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +24 -3
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +15 -6
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +8 -6
  10. package/lib/index.d.ts.map +1 -1
  11. package/lib/index.js +8 -6
  12. package/lib/index.js.map +1 -1
  13. package/lib/protocol.d.ts +18 -0
  14. package/lib/protocol.d.ts.map +1 -0
  15. package/lib/protocol.js +46 -0
  16. package/lib/protocol.js.map +1 -0
  17. package/lib/retry.d.ts +4 -4
  18. package/lib/retry.js +4 -4
  19. package/lib/services/index.d.ts +2 -0
  20. package/lib/services/index.d.ts.map +1 -0
  21. package/lib/services/index.js +3 -0
  22. package/lib/services/index.js.map +1 -0
  23. package/lib/services/turso.d.ts +1296 -0
  24. package/lib/services/turso.d.ts.map +1 -0
  25. package/lib/services/turso.js +1462 -0
  26. package/lib/services/turso.js.map +1 -0
  27. package/lib/traits.d.ts +10 -2
  28. package/lib/traits.d.ts.map +1 -1
  29. package/lib/traits.js +10 -2
  30. package/lib/traits.js.map +1 -1
  31. package/package.json +37 -41
  32. package/src/credentials.ts +9 -1
  33. package/src/errors.ts +44 -7
  34. package/src/index.ts +12 -6
  35. package/src/protocol.ts +68 -0
  36. package/src/retry.ts +4 -4
  37. package/src/services/index.ts +2 -0
  38. package/src/services/turso.ts +3425 -0
  39. package/src/traits.ts +44 -2
  40. package/README.md +0 -36
  41. package/lib/category.d.ts +0 -5
  42. package/lib/category.d.ts.map +0 -1
  43. package/lib/category.js +0 -5
  44. package/lib/category.js.map +0 -1
  45. package/lib/client.d.ts +0 -11
  46. package/lib/client.d.ts.map +0 -1
  47. package/lib/client.js +0 -59
  48. package/lib/client.js.map +0 -1
  49. package/lib/operations/addLocationToGroup.d.ts +0 -30
  50. package/lib/operations/addLocationToGroup.d.ts.map +0 -1
  51. package/lib/operations/addLocationToGroup.js +0 -40
  52. package/lib/operations/addLocationToGroup.js.map +0 -1
  53. package/lib/operations/addOrganizationMember.d.ts +0 -22
  54. package/lib/operations/addOrganizationMember.d.ts.map +0 -1
  55. package/lib/operations/addOrganizationMember.js +0 -32
  56. package/lib/operations/addOrganizationMember.js.map +0 -1
  57. package/lib/operations/createAPIToken.d.ts +0 -28
  58. package/lib/operations/createAPIToken.d.ts.map +0 -1
  59. package/lib/operations/createAPIToken.js +0 -44
  60. package/lib/operations/createAPIToken.js.map +0 -1
  61. package/lib/operations/createDatabase.d.ts +0 -35
  62. package/lib/operations/createDatabase.d.ts.map +0 -1
  63. package/lib/operations/createDatabase.js +0 -53
  64. package/lib/operations/createDatabase.js.map +0 -1
  65. package/lib/operations/createDatabaseToken.d.ts +0 -30
  66. package/lib/operations/createDatabaseToken.d.ts.map +0 -1
  67. package/lib/operations/createDatabaseToken.js +0 -40
  68. package/lib/operations/createDatabaseToken.js.map +0 -1
  69. package/lib/operations/createGroup.d.ts +0 -29
  70. package/lib/operations/createGroup.d.ts.map +0 -1
  71. package/lib/operations/createGroup.js +0 -51
  72. package/lib/operations/createGroup.js.map +0 -1
  73. package/lib/operations/createGroupToken.d.ts +0 -30
  74. package/lib/operations/createGroupToken.d.ts.map +0 -1
  75. package/lib/operations/createGroupToken.js +0 -38
  76. package/lib/operations/createGroupToken.js.map +0 -1
  77. package/lib/operations/deleteDatabase.d.ts +0 -21
  78. package/lib/operations/deleteDatabase.d.ts.map +0 -1
  79. package/lib/operations/deleteDatabase.js +0 -29
  80. package/lib/operations/deleteDatabase.js.map +0 -1
  81. package/lib/operations/deleteGroup.d.ts +0 -28
  82. package/lib/operations/deleteGroup.d.ts.map +0 -1
  83. package/lib/operations/deleteGroup.js +0 -36
  84. package/lib/operations/deleteGroup.js.map +0 -1
  85. package/lib/operations/deleteOrganizationInviteByEmail.d.ts +0 -21
  86. package/lib/operations/deleteOrganizationInviteByEmail.d.ts.map +0 -1
  87. package/lib/operations/deleteOrganizationInviteByEmail.js +0 -30
  88. package/lib/operations/deleteOrganizationInviteByEmail.js.map +0 -1
  89. package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts +0 -18
  90. package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts.map +0 -1
  91. package/lib/operations/deleteOrganizationInviteByEmailV2.js +0 -29
  92. package/lib/operations/deleteOrganizationInviteByEmailV2.js.map +0 -1
  93. package/lib/operations/getCurrentUser.d.ts +0 -23
  94. package/lib/operations/getCurrentUser.d.ts.map +0 -1
  95. package/lib/operations/getCurrentUser.js +0 -26
  96. package/lib/operations/getCurrentUser.js.map +0 -1
  97. package/lib/operations/getDatabase.d.ts +0 -36
  98. package/lib/operations/getDatabase.d.ts.map +0 -1
  99. package/lib/operations/getDatabase.js +0 -44
  100. package/lib/operations/getDatabase.js.map +0 -1
  101. package/lib/operations/getDatabaseConfiguration.d.ts +0 -27
  102. package/lib/operations/getDatabaseConfiguration.d.ts.map +0 -1
  103. package/lib/operations/getDatabaseConfiguration.js +0 -37
  104. package/lib/operations/getDatabaseConfiguration.js.map +0 -1
  105. package/lib/operations/getDatabaseInstance.d.ts +0 -29
  106. package/lib/operations/getDatabaseInstance.d.ts.map +0 -1
  107. package/lib/operations/getDatabaseInstance.js +0 -39
  108. package/lib/operations/getDatabaseInstance.js.map +0 -1
  109. package/lib/operations/getDatabaseStats.d.ts +0 -25
  110. package/lib/operations/getDatabaseStats.d.ts.map +0 -1
  111. package/lib/operations/getDatabaseStats.js +0 -33
  112. package/lib/operations/getDatabaseStats.js.map +0 -1
  113. package/lib/operations/getDatabaseUsage.d.ts +0 -42
  114. package/lib/operations/getDatabaseUsage.d.ts.map +0 -1
  115. package/lib/operations/getDatabaseUsage.js +0 -50
  116. package/lib/operations/getDatabaseUsage.js.map +0 -1
  117. package/lib/operations/getGroup.d.ts +0 -28
  118. package/lib/operations/getGroup.d.ts.map +0 -1
  119. package/lib/operations/getGroup.js +0 -36
  120. package/lib/operations/getGroup.js.map +0 -1
  121. package/lib/operations/getGroupConfiguration.d.ts +0 -21
  122. package/lib/operations/getGroupConfiguration.d.ts.map +0 -1
  123. package/lib/operations/getGroupConfiguration.js +0 -31
  124. package/lib/operations/getGroupConfiguration.js.map +0 -1
  125. package/lib/operations/getOrganization.d.ts +0 -30
  126. package/lib/operations/getOrganization.d.ts.map +0 -1
  127. package/lib/operations/getOrganization.js +0 -35
  128. package/lib/operations/getOrganization.js.map +0 -1
  129. package/lib/operations/getOrganizationMember.d.ts +0 -25
  130. package/lib/operations/getOrganizationMember.d.ts.map +0 -1
  131. package/lib/operations/getOrganizationMember.js +0 -35
  132. package/lib/operations/getOrganizationMember.js.map +0 -1
  133. package/lib/operations/getOrganizationSubscription.d.ts +0 -23
  134. package/lib/operations/getOrganizationSubscription.d.ts.map +0 -1
  135. package/lib/operations/getOrganizationSubscription.js +0 -32
  136. package/lib/operations/getOrganizationSubscription.js.map +0 -1
  137. package/lib/operations/getOrganizationUsage.d.ts +0 -47
  138. package/lib/operations/getOrganizationUsage.d.ts.map +0 -1
  139. package/lib/operations/getOrganizationUsage.js +0 -56
  140. package/lib/operations/getOrganizationUsage.js.map +0 -1
  141. package/lib/operations/index.d.ts +0 -50
  142. package/lib/operations/index.d.ts.map +0 -1
  143. package/lib/operations/index.js +0 -50
  144. package/lib/operations/index.js.map +0 -1
  145. package/lib/operations/invalidateDatabaseTokens.d.ts +0 -19
  146. package/lib/operations/invalidateDatabaseTokens.d.ts.map +0 -1
  147. package/lib/operations/invalidateDatabaseTokens.js +0 -29
  148. package/lib/operations/invalidateDatabaseTokens.js.map +0 -1
  149. package/lib/operations/invalidateGroupTokens.d.ts +0 -19
  150. package/lib/operations/invalidateGroupTokens.d.ts.map +0 -1
  151. package/lib/operations/invalidateGroupTokens.js +0 -29
  152. package/lib/operations/invalidateGroupTokens.js.map +0 -1
  153. package/lib/operations/inviteOrganizationMember.d.ts +0 -69
  154. package/lib/operations/inviteOrganizationMember.d.ts.map +0 -1
  155. package/lib/operations/inviteOrganizationMember.js +0 -54
  156. package/lib/operations/inviteOrganizationMember.js.map +0 -1
  157. package/lib/operations/inviteOrganizationMemberV2.d.ts +0 -25
  158. package/lib/operations/inviteOrganizationMemberV2.d.ts.map +0 -1
  159. package/lib/operations/inviteOrganizationMemberV2.js +0 -34
  160. package/lib/operations/inviteOrganizationMemberV2.js.map +0 -1
  161. package/lib/operations/listAPITokens.d.ts +0 -22
  162. package/lib/operations/listAPITokens.d.ts.map +0 -1
  163. package/lib/operations/listAPITokens.js +0 -25
  164. package/lib/operations/listAPITokens.js.map +0 -1
  165. package/lib/operations/listDatabaseInstances.d.ts +0 -27
  166. package/lib/operations/listDatabaseInstances.d.ts.map +0 -1
  167. package/lib/operations/listDatabaseInstances.js +0 -37
  168. package/lib/operations/listDatabaseInstances.js.map +0 -1
  169. package/lib/operations/listDatabases.d.ts +0 -39
  170. package/lib/operations/listDatabases.d.ts.map +0 -1
  171. package/lib/operations/listDatabases.js +0 -46
  172. package/lib/operations/listDatabases.js.map +0 -1
  173. package/lib/operations/listGroups.d.ts +0 -25
  174. package/lib/operations/listGroups.d.ts.map +0 -1
  175. package/lib/operations/listGroups.js +0 -32
  176. package/lib/operations/listGroups.js.map +0 -1
  177. package/lib/operations/listLocations.d.ts +0 -15
  178. package/lib/operations/listLocations.d.ts.map +0 -1
  179. package/lib/operations/listLocations.js +0 -18
  180. package/lib/operations/listLocations.js.map +0 -1
  181. package/lib/operations/listOrganizationAPITokens.d.ts +0 -33
  182. package/lib/operations/listOrganizationAPITokens.d.ts.map +0 -1
  183. package/lib/operations/listOrganizationAPITokens.js +0 -42
  184. package/lib/operations/listOrganizationAPITokens.js.map +0 -1
  185. package/lib/operations/listOrganizationAuditLogs.d.ts +0 -35
  186. package/lib/operations/listOrganizationAuditLogs.d.ts.map +0 -1
  187. package/lib/operations/listOrganizationAuditLogs.js +0 -69
  188. package/lib/operations/listOrganizationAuditLogs.js.map +0 -1
  189. package/lib/operations/listOrganizationInvites.d.ts +0 -64
  190. package/lib/operations/listOrganizationInvites.d.ts.map +0 -1
  191. package/lib/operations/listOrganizationInvites.js +0 -50
  192. package/lib/operations/listOrganizationInvites.js.map +0 -1
  193. package/lib/operations/listOrganizationInvitesV2.d.ts +0 -23
  194. package/lib/operations/listOrganizationInvitesV2.d.ts.map +0 -1
  195. package/lib/operations/listOrganizationInvitesV2.js +0 -32
  196. package/lib/operations/listOrganizationInvitesV2.js.map +0 -1
  197. package/lib/operations/listOrganizationInvoices.d.ts +0 -27
  198. package/lib/operations/listOrganizationInvoices.d.ts.map +0 -1
  199. package/lib/operations/listOrganizationInvoices.js +0 -36
  200. package/lib/operations/listOrganizationInvoices.js.map +0 -1
  201. package/lib/operations/listOrganizationMembers.d.ts +0 -22
  202. package/lib/operations/listOrganizationMembers.d.ts.map +0 -1
  203. package/lib/operations/listOrganizationMembers.js +0 -31
  204. package/lib/operations/listOrganizationMembers.js.map +0 -1
  205. package/lib/operations/listOrganizationPlans.d.ts +0 -34
  206. package/lib/operations/listOrganizationPlans.d.ts.map +0 -1
  207. package/lib/operations/listOrganizationPlans.js +0 -43
  208. package/lib/operations/listOrganizationPlans.js.map +0 -1
  209. package/lib/operations/listOrganizations.d.ts +0 -24
  210. package/lib/operations/listOrganizations.d.ts.map +0 -1
  211. package/lib/operations/listOrganizations.js +0 -27
  212. package/lib/operations/listOrganizations.js.map +0 -1
  213. package/lib/operations/removeLocationFromGroup.d.ts +0 -30
  214. package/lib/operations/removeLocationFromGroup.d.ts.map +0 -1
  215. package/lib/operations/removeLocationFromGroup.js +0 -40
  216. package/lib/operations/removeLocationFromGroup.js.map +0 -1
  217. package/lib/operations/removeOrganizationMember.d.ts +0 -21
  218. package/lib/operations/removeOrganizationMember.d.ts.map +0 -1
  219. package/lib/operations/removeOrganizationMember.js +0 -31
  220. package/lib/operations/removeOrganizationMember.js.map +0 -1
  221. package/lib/operations/revokeAPIToken.d.ts +0 -19
  222. package/lib/operations/revokeAPIToken.d.ts.map +0 -1
  223. package/lib/operations/revokeAPIToken.js +0 -24
  224. package/lib/operations/revokeAPIToken.js.map +0 -1
  225. package/lib/operations/revokeOrganizationAPIToken.d.ts +0 -25
  226. package/lib/operations/revokeOrganizationAPIToken.d.ts.map +0 -1
  227. package/lib/operations/revokeOrganizationAPIToken.js +0 -34
  228. package/lib/operations/revokeOrganizationAPIToken.js.map +0 -1
  229. package/lib/operations/transferGroup.d.ts +0 -27
  230. package/lib/operations/transferGroup.d.ts.map +0 -1
  231. package/lib/operations/transferGroup.js +0 -35
  232. package/lib/operations/transferGroup.js.map +0 -1
  233. package/lib/operations/unarchiveGroup.d.ts +0 -28
  234. package/lib/operations/unarchiveGroup.d.ts.map +0 -1
  235. package/lib/operations/unarchiveGroup.js +0 -36
  236. package/lib/operations/unarchiveGroup.js.map +0 -1
  237. package/lib/operations/updateDatabaseConfiguration.d.ts +0 -34
  238. package/lib/operations/updateDatabaseConfiguration.d.ts.map +0 -1
  239. package/lib/operations/updateDatabaseConfiguration.js +0 -44
  240. package/lib/operations/updateDatabaseConfiguration.js.map +0 -1
  241. package/lib/operations/updateGroupConfiguration.d.ts +0 -22
  242. package/lib/operations/updateGroupConfiguration.d.ts.map +0 -1
  243. package/lib/operations/updateGroupConfiguration.js +0 -32
  244. package/lib/operations/updateGroupConfiguration.js.map +0 -1
  245. package/lib/operations/updateGroupDatabases.d.ts +0 -19
  246. package/lib/operations/updateGroupDatabases.d.ts.map +0 -1
  247. package/lib/operations/updateGroupDatabases.js +0 -29
  248. package/lib/operations/updateGroupDatabases.js.map +0 -1
  249. package/lib/operations/updateMemberRole.d.ts +0 -26
  250. package/lib/operations/updateMemberRole.d.ts.map +0 -1
  251. package/lib/operations/updateMemberRole.js +0 -34
  252. package/lib/operations/updateMemberRole.js.map +0 -1
  253. package/lib/operations/updateOrganization.d.ts +0 -31
  254. package/lib/operations/updateOrganization.d.ts.map +0 -1
  255. package/lib/operations/updateOrganization.js +0 -37
  256. package/lib/operations/updateOrganization.js.map +0 -1
  257. package/lib/operations/validateAPIToken.d.ts +0 -15
  258. package/lib/operations/validateAPIToken.d.ts.map +0 -1
  259. package/lib/operations/validateAPIToken.js +0 -18
  260. package/lib/operations/validateAPIToken.js.map +0 -1
  261. package/lib/sensitive.d.ts +0 -5
  262. package/lib/sensitive.d.ts.map +0 -1
  263. package/lib/sensitive.js +0 -5
  264. package/lib/sensitive.js.map +0 -1
  265. package/src/category.ts +0 -4
  266. package/src/client.ts +0 -74
  267. package/src/operations/addLocationToGroup.ts +0 -63
  268. package/src/operations/addOrganizationMember.ts +0 -49
  269. package/src/operations/createAPIToken.ts +0 -77
  270. package/src/operations/createDatabase.ts +0 -94
  271. package/src/operations/createDatabaseToken.ts +0 -62
  272. package/src/operations/createGroup.ts +0 -92
  273. package/src/operations/createGroupToken.ts +0 -58
  274. package/src/operations/deleteDatabase.ts +0 -42
  275. package/src/operations/deleteGroup.ts +0 -58
  276. package/src/operations/deleteOrganizationInviteByEmail.ts +0 -38
  277. package/src/operations/deleteOrganizationInviteByEmailV2.ts +0 -40
  278. package/src/operations/getCurrentUser.ts +0 -46
  279. package/src/operations/getDatabase.ts +0 -74
  280. package/src/operations/getDatabaseConfiguration.ts +0 -56
  281. package/src/operations/getDatabaseInstance.ts +0 -61
  282. package/src/operations/getDatabaseStats.ts +0 -54
  283. package/src/operations/getDatabaseUsage.ts +0 -92
  284. package/src/operations/getGroup.ts +0 -58
  285. package/src/operations/getGroupConfiguration.ts +0 -44
  286. package/src/operations/getOrganization.ts +0 -60
  287. package/src/operations/getOrganizationMember.ts +0 -56
  288. package/src/operations/getOrganizationSubscription.ts +0 -51
  289. package/src/operations/getOrganizationUsage.ts +0 -113
  290. package/src/operations/index.ts +0 -49
  291. package/src/operations/invalidateDatabaseTokens.ts +0 -40
  292. package/src/operations/invalidateGroupTokens.ts +0 -40
  293. package/src/operations/inviteOrganizationMember.ts +0 -66
  294. package/src/operations/inviteOrganizationMemberV2.ts +0 -55
  295. package/src/operations/listAPITokens.ts +0 -46
  296. package/src/operations/listDatabaseInstances.ts +0 -60
  297. package/src/operations/listDatabases.ts +0 -80
  298. package/src/operations/listGroups.ts +0 -55
  299. package/src/operations/listLocations.ts +0 -28
  300. package/src/operations/listOrganizationAPITokens.ts +0 -68
  301. package/src/operations/listOrganizationAuditLogs.ts +0 -128
  302. package/src/operations/listOrganizationInvites.ts +0 -64
  303. package/src/operations/listOrganizationInvitesV2.ts +0 -53
  304. package/src/operations/listOrganizationInvoices.ts +0 -60
  305. package/src/operations/listOrganizationMembers.ts +0 -53
  306. package/src/operations/listOrganizationPlans.ts +0 -78
  307. package/src/operations/listOrganizations.ts +0 -48
  308. package/src/operations/removeLocationFromGroup.ts +0 -63
  309. package/src/operations/removeOrganizationMember.ts +0 -44
  310. package/src/operations/revokeAPIToken.ts +0 -36
  311. package/src/operations/revokeOrganizationAPIToken.ts +0 -47
  312. package/src/operations/transferGroup.ts +0 -54
  313. package/src/operations/unarchiveGroup.ts +0 -58
  314. package/src/operations/updateDatabaseConfiguration.ts +0 -70
  315. package/src/operations/updateGroupConfiguration.ts +0 -46
  316. package/src/operations/updateGroupDatabases.ts +0 -40
  317. package/src/operations/updateMemberRole.ts +0 -54
  318. package/src/operations/updateOrganization.ts +0 -64
  319. package/src/operations/validateAPIToken.ts +0 -28
  320. package/src/sensitive.ts +0 -4
@@ -1,23 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- export interface ListOrganizationInvitesV2Input {
3
- organizationSlug: string;
4
- }
5
- export declare const ListOrganizationInvitesV2Input: Schema.Codec<ListOrganizationInvitesV2Input>;
6
- export interface ListOrganizationInvitesV2Output {
7
- invites?: {
8
- id?: number;
9
- email?: string;
10
- role?: "admin" | "member" | "viewer";
11
- created_at?: string;
12
- }[];
13
- }
14
- export declare const ListOrganizationInvitesV2Output: Schema.Codec<ListOrganizationInvitesV2Output>;
15
- /**
16
- * List Invites
17
- *
18
- * Returns a list of pending invites for the organization.
19
- *
20
- * @param organizationSlug - The slug of the organization or user account.
21
- */
22
- export declare const listOrganizationInvitesV2: import("@distilled.cloud/core/client").OperationMethod<ListOrganizationInvitesV2Input, ListOrganizationInvitesV2Output, never, import("../credentials.ts").Credentials, never>;
23
- //# sourceMappingURL=listOrganizationInvitesV2.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listOrganizationInvitesV2.d.ts","sourceRoot":"","sources":["../../src/operations/listOrganizationInvitesV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,8BAA8B;IAC7C,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AACD,eAAO,MAAM,8BAA8B,EAQzB,MAAM,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;AAG/D,MAAM,WAAW,+BAA+B;IAC9C,OAAO,CAAC,EAAE;QACR,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;QACrC,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,EAAE,CAAC;CACL;AACD,eAAO,MAAM,+BAA+B,EAYzB,MAAM,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;AAGjE;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,gLAGnC,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 ListOrganizationInvitesV2Input =
5
- /*@__PURE__*/ Schema.Struct({
6
- organizationSlug: Schema.String.pipe(T.PathParam()),
7
- }).pipe(T.Http({
8
- method: "GET",
9
- path: "/v2/organizations/{organizationSlug}/invites",
10
- }));
11
- export const ListOrganizationInvitesV2Output =
12
- /*@__PURE__*/ Schema.Struct({
13
- invites: Schema.optional(Schema.Array(Schema.Struct({
14
- id: Schema.optional(Schema.Number),
15
- email: Schema.optional(Schema.String),
16
- role: Schema.optional(Schema.Literals(["admin", "member", "viewer"])),
17
- created_at: Schema.optional(Schema.String),
18
- }))),
19
- });
20
- // The operation
21
- /**
22
- * List Invites
23
- *
24
- * Returns a list of pending invites for the organization.
25
- *
26
- * @param organizationSlug - The slug of the organization or user account.
27
- */
28
- export const listOrganizationInvitesV2 = /*@__PURE__*/ API.make(() => ({
29
- inputSchema: ListOrganizationInvitesV2Input,
30
- outputSchema: ListOrganizationInvitesV2Output,
31
- }));
32
- //# sourceMappingURL=listOrganizationInvitesV2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listOrganizationInvitesV2.js","sourceRoot":"","sources":["../../src/operations/listOrganizationInvitesV2.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,8BAA8B;AACzC,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,8CAA8C;CACrD,CAAC,CACwD,CAAC;AAW/D,MAAM,CAAC,MAAM,+BAA+B;AAC1C,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC,QAAQ,CACtB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAClC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;QACrE,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KAC3C,CAAC,CACH,CACF;CACF,CAA6D,CAAC;AAEjE,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACrE,WAAW,EAAE,8BAA8B;IAC3C,YAAY,EAAE,+BAA+B;CAC9C,CAAC,CAAC,CAAC"}
@@ -1,27 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- export interface ListOrganizationInvoicesInput {
3
- organizationSlug: string;
4
- type?: "all" | "upcoming" | "issued";
5
- }
6
- export declare const ListOrganizationInvoicesInput: Schema.Codec<ListOrganizationInvoicesInput>;
7
- export interface ListOrganizationInvoicesOutput {
8
- invoices?: {
9
- invoice_number?: string;
10
- amount_due?: string;
11
- due_date?: string;
12
- paid_at?: string;
13
- payment_failed_at?: string;
14
- invoice_pdf?: string;
15
- }[];
16
- }
17
- export declare const ListOrganizationInvoicesOutput: Schema.Codec<ListOrganizationInvoicesOutput>;
18
- /**
19
- * List Invoices
20
- *
21
- * Returns a list of invoices for the organization.
22
- *
23
- * @param organizationSlug - The slug of the organization or user account.
24
- * @param type - The type of invoice to retrieve.
25
- */
26
- export declare const listOrganizationInvoices: import("@distilled.cloud/core/client").OperationMethod<ListOrganizationInvoicesInput, ListOrganizationInvoicesOutput, never, import("../credentials.ts").Credentials, never>;
27
- //# sourceMappingURL=listOrganizationInvoices.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listOrganizationInvoices.d.ts","sourceRoot":"","sources":["../../src/operations/listOrganizationInvoices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,6BAA6B;IAC5C,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,KAAK,GAAG,UAAU,GAAG,QAAQ,CAAC;CACtC;AACD,eAAO,MAAM,6BAA6B,EASxB,MAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAG9D,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,EAAE;QACT,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,EAAE,CAAC;CACL;AACD,eAAO,MAAM,8BAA8B,EAcxB,MAAM,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;AAGhE;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,8KAGlC,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
- export const ListOrganizationInvoicesInput =
5
- /*@__PURE__*/ Schema.Struct({
6
- organizationSlug: Schema.String.pipe(T.PathParam()),
7
- type: Schema.optional(Schema.Literals(["all", "upcoming", "issued"])),
8
- }).pipe(T.Http({
9
- method: "GET",
10
- path: "/v1/organizations/{organizationSlug}/invoices",
11
- }));
12
- export const ListOrganizationInvoicesOutput =
13
- /*@__PURE__*/ Schema.Struct({
14
- invoices: Schema.optional(Schema.Array(Schema.Struct({
15
- invoice_number: Schema.optional(Schema.String),
16
- amount_due: Schema.optional(Schema.String),
17
- due_date: Schema.optional(Schema.String),
18
- paid_at: Schema.optional(Schema.String),
19
- payment_failed_at: Schema.optional(Schema.String),
20
- invoice_pdf: Schema.optional(Schema.String),
21
- }))),
22
- });
23
- // The operation
24
- /**
25
- * List Invoices
26
- *
27
- * Returns a list of invoices for the organization.
28
- *
29
- * @param organizationSlug - The slug of the organization or user account.
30
- * @param type - The type of invoice to retrieve.
31
- */
32
- export const listOrganizationInvoices = /*@__PURE__*/ API.make(() => ({
33
- inputSchema: ListOrganizationInvoicesInput,
34
- outputSchema: ListOrganizationInvoicesOutput,
35
- }));
36
- //# sourceMappingURL=listOrganizationInvoices.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listOrganizationInvoices.js","sourceRoot":"","sources":["../../src/operations/listOrganizationInvoices.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;AAOlC,MAAM,CAAC,MAAM,6BAA6B;AACxC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;CACtE,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,+CAA+C;CACtD,CAAC,CACuD,CAAC;AAa9D,MAAM,CAAC,MAAM,8BAA8B;AACzC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC,QAAQ,CACvB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;QACZ,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC9C,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC1C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACxC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACjD,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KAC5C,CAAC,CACH,CACF;CACF,CAA4D,CAAC;AAEhE,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACpE,WAAW,EAAE,6BAA6B;IAC1C,YAAY,EAAE,8BAA8B;CAC7C,CAAC,CAAC,CAAC"}
@@ -1,22 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- export interface ListOrganizationMembersInput {
3
- organizationSlug: string;
4
- }
5
- export declare const ListOrganizationMembersInput: Schema.Codec<ListOrganizationMembersInput>;
6
- export interface ListOrganizationMembersOutput {
7
- members?: {
8
- username?: string;
9
- role?: "owner" | "admin" | "member" | "viewer";
10
- email?: string;
11
- }[];
12
- }
13
- export declare const ListOrganizationMembersOutput: Schema.Codec<ListOrganizationMembersOutput>;
14
- /**
15
- * List Members
16
- *
17
- * Returns a list of members part of the organization.
18
- *
19
- * @param organizationSlug - The slug of the organization or user account.
20
- */
21
- export declare const listOrganizationMembers: import("@distilled.cloud/core/client").OperationMethod<ListOrganizationMembersInput, ListOrganizationMembersOutput, never, import("../credentials.ts").Credentials, never>;
22
- //# sourceMappingURL=listOrganizationMembers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listOrganizationMembers.d.ts","sourceRoot":"","sources":["../../src/operations/listOrganizationMembers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,4BAA4B;IAC3C,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AACD,eAAO,MAAM,4BAA4B,EAQvB,MAAM,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;AAG7D,MAAM,WAAW,6BAA6B;IAC5C,OAAO,CAAC,EAAE;QACR,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,EAAE,CAAC;CACL;AACD,eAAO,MAAM,6BAA6B,EAavB,MAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAG/D;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,4KAGjC,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
- export const ListOrganizationMembersInput =
5
- /*@__PURE__*/ Schema.Struct({
6
- organizationSlug: Schema.String.pipe(T.PathParam()),
7
- }).pipe(T.Http({
8
- method: "GET",
9
- path: "/v1/organizations/{organizationSlug}/members",
10
- }));
11
- export const ListOrganizationMembersOutput =
12
- /*@__PURE__*/ Schema.Struct({
13
- members: Schema.optional(Schema.Array(Schema.Struct({
14
- username: Schema.optional(Schema.String),
15
- role: Schema.optional(Schema.Literals(["owner", "admin", "member", "viewer"])),
16
- email: Schema.optional(Schema.String),
17
- }))),
18
- });
19
- // The operation
20
- /**
21
- * List Members
22
- *
23
- * Returns a list of members part of the organization.
24
- *
25
- * @param organizationSlug - The slug of the organization or user account.
26
- */
27
- export const listOrganizationMembers = /*@__PURE__*/ API.make(() => ({
28
- inputSchema: ListOrganizationMembersInput,
29
- outputSchema: ListOrganizationMembersOutput,
30
- }));
31
- //# sourceMappingURL=listOrganizationMembers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listOrganizationMembers.js","sourceRoot":"","sources":["../../src/operations/listOrganizationMembers.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,4BAA4B;AACvC,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,8CAA8C;CACrD,CAAC,CACsD,CAAC;AAU7D,MAAM,CAAC,MAAM,6BAA6B;AACxC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC,QAAQ,CACtB,MAAM,CAAC,KAAK,CACV,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;CACF,CAA2D,CAAC;AAE/D,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACnE,WAAW,EAAE,4BAA4B;IACzC,YAAY,EAAE,6BAA6B;CAC5C,CAAC,CAAC,CAAC"}
@@ -1,34 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- export interface ListOrganizationPlansInput {
3
- organizationSlug: string;
4
- }
5
- export declare const ListOrganizationPlansInput: Schema.Codec<ListOrganizationPlansInput>;
6
- export interface ListOrganizationPlansOutput {
7
- plans?: {
8
- name?: string;
9
- price?: string;
10
- prices?: {
11
- value?: string;
12
- timeline?: string;
13
- }[];
14
- quotas?: {
15
- rowsRead?: number;
16
- rowsWritten?: number;
17
- databases?: number | null;
18
- locations?: number;
19
- storage?: number;
20
- groups?: number;
21
- bytesSynced?: number;
22
- };
23
- }[];
24
- }
25
- export declare const ListOrganizationPlansOutput: Schema.Codec<ListOrganizationPlansOutput>;
26
- /**
27
- * List Plans
28
- *
29
- * Returns a list of available plans and their quotas.
30
- *
31
- * @param organizationSlug - The slug of the organization or user account.
32
- */
33
- export declare const listOrganizationPlans: import("@distilled.cloud/core/client").OperationMethod<ListOrganizationPlansInput, ListOrganizationPlansOutput, never, import("../credentials.ts").Credentials, never>;
34
- //# sourceMappingURL=listOrganizationPlans.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listOrganizationPlans.d.ts","sourceRoot":"","sources":["../../src/operations/listOrganizationPlans.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,0BAA0B;IACzC,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AACD,eAAO,MAAM,0BAA0B,EAQrB,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;AAG3D,MAAM,WAAW,2BAA2B;IAC1C,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QACjD,MAAM,CAAC,EAAE;YACP,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,WAAW,CAAC,EAAE,MAAM,CAAC;SACtB,CAAC;KACH,EAAE,CAAC;CACL;AACD,eAAO,MAAM,2BAA2B,EA6BrB,MAAM,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;AAG7D;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,wKAG/B,CAAC"}
@@ -1,43 +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 ListOrganizationPlansInput =
5
- /*@__PURE__*/ Schema.Struct({
6
- organizationSlug: Schema.String.pipe(T.PathParam()),
7
- }).pipe(T.Http({
8
- method: "GET",
9
- path: "/v1/organizations/{organizationSlug}/plans",
10
- }));
11
- export const ListOrganizationPlansOutput =
12
- /*@__PURE__*/ Schema.Struct({
13
- plans: Schema.optional(Schema.Array(Schema.Struct({
14
- name: Schema.optional(Schema.String),
15
- price: Schema.optional(Schema.String),
16
- prices: Schema.optional(Schema.Array(Schema.Struct({
17
- value: Schema.optional(Schema.String),
18
- timeline: Schema.optional(Schema.String),
19
- }))),
20
- quotas: Schema.optional(Schema.Struct({
21
- rowsRead: Schema.optional(Schema.Number),
22
- rowsWritten: Schema.optional(Schema.Number),
23
- databases: Schema.optional(Schema.NullOr(Schema.Number)),
24
- locations: Schema.optional(Schema.Number),
25
- storage: Schema.optional(Schema.Number),
26
- groups: Schema.optional(Schema.Number),
27
- bytesSynced: Schema.optional(Schema.Number),
28
- })),
29
- }))),
30
- });
31
- // The operation
32
- /**
33
- * List Plans
34
- *
35
- * Returns a list of available plans and their quotas.
36
- *
37
- * @param organizationSlug - The slug of the organization or user account.
38
- */
39
- export const listOrganizationPlans = /*@__PURE__*/ API.make(() => ({
40
- inputSchema: ListOrganizationPlansInput,
41
- outputSchema: ListOrganizationPlansOutput,
42
- }));
43
- //# sourceMappingURL=listOrganizationPlans.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listOrganizationPlans.js","sourceRoot":"","sources":["../../src/operations/listOrganizationPlans.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,0BAA0B;AACrC,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,4CAA4C;CACnD,CAAC,CACoD,CAAC;AAmB3D,MAAM,CAAC,MAAM,2BAA2B;AACtC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC,QAAQ,CACpB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;YACZ,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACrC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;SACzC,CAAC,CACH,CACF;QACD,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,MAAM,CAAC;YACZ,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACxC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YAC3C,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACxD,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACzC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACvC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACtC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;SAC5C,CAAC,CACH;KACF,CAAC,CACH,CACF;CACF,CAAyD,CAAC;AAE7D,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACjE,WAAW,EAAE,0BAA0B;IACvC,YAAY,EAAE,2BAA2B;CAC1C,CAAC,CAAC,CAAC"}
@@ -1,24 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- export interface ListOrganizationsInput {
3
- }
4
- export declare const ListOrganizationsInput: Schema.Codec<ListOrganizationsInput>;
5
- export type ListOrganizationsOutput = {
6
- name?: string;
7
- slug?: string;
8
- type?: "personal" | "team";
9
- overages?: boolean;
10
- require_mfa?: boolean;
11
- blocked_reads?: boolean;
12
- blocked_writes?: boolean;
13
- plan_id?: string;
14
- plan_timeline?: string;
15
- platform?: string;
16
- }[];
17
- export declare const ListOrganizationsOutput: Schema.Codec<ListOrganizationsOutput>;
18
- /**
19
- * List Organizations
20
- *
21
- * Returns a list of organizations the authenticated user owns or is a member of.
22
- */
23
- export declare const listOrganizations: import("@distilled.cloud/core/client").OperationMethod<ListOrganizationsInput, ListOrganizationsOutput, never, import("../credentials.ts").Credentials, never>;
24
- //# sourceMappingURL=listOrganizations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listOrganizations.d.ts","sourceRoot":"","sources":["../../src/operations/listOrganizations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,sBAAsB;CAAG;AAC1C,eAAO,MAAM,sBAAsB,EAEnB,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAGrD,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,EAAE,CAAC;AACJ,eAAO,MAAM,uBAAuB,EAapB,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;AAGtD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,gKAG3B,CAAC"}
@@ -1,27 +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 ListOrganizationsInput = /*@__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/v1/organizations" }));
5
- export const ListOrganizationsOutput = /*@__PURE__*/ Schema.Array(Schema.Struct({
6
- name: Schema.optional(Schema.String),
7
- slug: Schema.optional(Schema.String),
8
- type: Schema.optional(Schema.Literals(["personal", "team"])),
9
- overages: Schema.optional(Schema.Boolean),
10
- require_mfa: Schema.optional(Schema.Boolean),
11
- blocked_reads: Schema.optional(Schema.Boolean),
12
- blocked_writes: Schema.optional(Schema.Boolean),
13
- plan_id: Schema.optional(Schema.String),
14
- plan_timeline: Schema.optional(Schema.String),
15
- platform: Schema.optional(Schema.String),
16
- }));
17
- // The operation
18
- /**
19
- * List Organizations
20
- *
21
- * Returns a list of organizations the authenticated user owns or is a member of.
22
- */
23
- export const listOrganizations = /*@__PURE__*/ API.make(() => ({
24
- inputSchema: ListOrganizationsInput,
25
- outputSchema: ListOrganizationsOutput,
26
- }));
27
- //# sourceMappingURL=listOrganizations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listOrganizations.js","sourceRoot":"","sources":["../../src/operations/listOrganizations.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;AAIlC,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CACxE,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CACF,CAAC;AAerD,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,MAAM,CAAC,KAAK,CAC/D,MAAM,CAAC,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;IAC5D,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IACzC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IAC5C,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IAC9C,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IAC/C,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACzC,CAAC,CACiD,CAAC;AAEtD,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC7D,WAAW,EAAE,sBAAsB;IACnC,YAAY,EAAE,uBAAuB;CACtC,CAAC,CAAC,CAAC"}
@@ -1,30 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { BadRequest, NotFound } from "../errors.ts";
3
- export interface RemoveLocationFromGroupInput {
4
- organizationSlug: string;
5
- groupName: string;
6
- location: string;
7
- }
8
- export declare const RemoveLocationFromGroupInput: Schema.Codec<RemoveLocationFromGroupInput>;
9
- export interface RemoveLocationFromGroupOutput {
10
- group?: {
11
- name?: string;
12
- version?: string;
13
- uuid?: string;
14
- locations?: string[];
15
- primary?: string;
16
- delete_protection?: boolean;
17
- };
18
- }
19
- export declare const RemoveLocationFromGroupOutput: Schema.Codec<RemoveLocationFromGroupOutput>;
20
- /**
21
- * Remove Location from Group
22
- *
23
- * Removes a location from the specified group.
24
- *
25
- * @param organizationSlug - The slug of the organization or user account.
26
- * @param groupName - The name of the group.
27
- * @param location - The location code to remove from the group.
28
- */
29
- export declare const removeLocationFromGroup: import("@distilled.cloud/core/client").OperationMethod<RemoveLocationFromGroupInput, RemoveLocationFromGroupOutput, BadRequest | NotFound, import("../credentials.ts").Credentials, never>;
30
- //# sourceMappingURL=removeLocationFromGroup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"removeLocationFromGroup.d.ts","sourceRoot":"","sources":["../../src/operations/removeLocationFromGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,WAAW,4BAA4B;IAC3C,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,eAAO,MAAM,4BAA4B,EAUvB,MAAM,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;AAG7D,MAAM,WAAW,6BAA6B;IAC5C,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,6BAA6B,EAYvB,MAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAG/D;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,4LAIjC,CAAC"}
@@ -1,40 +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 RemoveLocationFromGroupInput =
6
- /*@__PURE__*/ Schema.Struct({
7
- organizationSlug: Schema.String.pipe(T.PathParam()),
8
- groupName: Schema.String.pipe(T.PathParam()),
9
- location: Schema.String.pipe(T.PathParam()),
10
- }).pipe(T.Http({
11
- method: "DELETE",
12
- path: "/v1/organizations/{organizationSlug}/groups/{groupName}/locations/{location}",
13
- }));
14
- export const RemoveLocationFromGroupOutput =
15
- /*@__PURE__*/ Schema.Struct({
16
- group: Schema.optional(Schema.Struct({
17
- name: Schema.optional(Schema.String),
18
- version: Schema.optional(Schema.String),
19
- uuid: Schema.optional(Schema.String),
20
- locations: Schema.optional(Schema.Array(Schema.String)),
21
- primary: Schema.optional(Schema.String),
22
- delete_protection: Schema.optional(Schema.Boolean),
23
- })),
24
- });
25
- // The operation
26
- /**
27
- * Remove Location from Group
28
- *
29
- * Removes a location from the specified group.
30
- *
31
- * @param organizationSlug - The slug of the organization or user account.
32
- * @param groupName - The name of the group.
33
- * @param location - The location code to remove from the group.
34
- */
35
- export const removeLocationFromGroup = /*@__PURE__*/ API.make(() => ({
36
- inputSchema: RemoveLocationFromGroupInput,
37
- outputSchema: RemoveLocationFromGroupOutput,
38
- errors: [BadRequest, NotFound],
39
- }));
40
- //# sourceMappingURL=removeLocationFromGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"removeLocationFromGroup.js","sourceRoot":"","sources":["../../src/operations/removeLocationFromGroup.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;AAQpD,MAAM,CAAC,MAAM,4BAA4B;AACvC,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;IAC5C,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,QAAQ;IAChB,IAAI,EAAE,8EAA8E;CACrF,CAAC,CACsD,CAAC;AAa7D,MAAM,CAAC,MAAM,6BAA6B;AACxC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,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,CAA2D,CAAC;AAE/D,gBAAgB;AAChB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACnE,WAAW,EAAE,4BAA4B;IACzC,YAAY,EAAE,6BAA6B;IAC3C,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAU;CACxC,CAAC,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { NotFound } from "../errors.ts";
3
- export interface RemoveOrganizationMemberInput {
4
- organizationSlug: string;
5
- username: string;
6
- }
7
- export declare const RemoveOrganizationMemberInput: Schema.Codec<RemoveOrganizationMemberInput>;
8
- export interface RemoveOrganizationMemberOutput {
9
- member?: string;
10
- }
11
- export declare const RemoveOrganizationMemberOutput: Schema.Codec<RemoveOrganizationMemberOutput>;
12
- /**
13
- * Remove Member
14
- *
15
- * Remove a user from the organization by username.
16
- *
17
- * @param organizationSlug - The slug of the organization or user account.
18
- * @param username - The username of a Turso user or organization member.
19
- */
20
- export declare const removeOrganizationMember: import("@distilled.cloud/core/client").OperationMethod<RemoveOrganizationMemberInput, RemoveOrganizationMemberOutput, NotFound, import("../credentials.ts").Credentials, never>;
21
- //# sourceMappingURL=removeOrganizationMember.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"removeOrganizationMember.d.ts","sourceRoot":"","sources":["../../src/operations/removeOrganizationMember.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,WAAW,6BAA6B;IAC5C,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,eAAO,MAAM,6BAA6B,EASxB,MAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAG9D,MAAM,WAAW,8BAA8B;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,eAAO,MAAM,8BAA8B,EAGxB,MAAM,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;AAGhE;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,iLAIlC,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 RemoveOrganizationMemberInput =
6
- /*@__PURE__*/ Schema.Struct({
7
- organizationSlug: Schema.String.pipe(T.PathParam()),
8
- username: Schema.String.pipe(T.PathParam()),
9
- }).pipe(T.Http({
10
- method: "DELETE",
11
- path: "/v1/organizations/{organizationSlug}/members/{username}",
12
- }));
13
- export const RemoveOrganizationMemberOutput =
14
- /*@__PURE__*/ Schema.Struct({
15
- member: Schema.optional(Schema.String),
16
- });
17
- // The operation
18
- /**
19
- * Remove Member
20
- *
21
- * Remove a user from the organization by username.
22
- *
23
- * @param organizationSlug - The slug of the organization or user account.
24
- * @param username - The username of a Turso user or organization member.
25
- */
26
- export const removeOrganizationMember = /*@__PURE__*/ API.make(() => ({
27
- inputSchema: RemoveOrganizationMemberInput,
28
- outputSchema: RemoveOrganizationMemberOutput,
29
- errors: [NotFound],
30
- }));
31
- //# sourceMappingURL=removeOrganizationMember.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"removeOrganizationMember.js","sourceRoot":"","sources":["../../src/operations/removeOrganizationMember.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,6BAA6B;AACxC,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,QAAQ;IAChB,IAAI,EAAE,yDAAyD;CAChE,CAAC,CACuD,CAAC;AAM9D,MAAM,CAAC,MAAM,8BAA8B;AACzC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACvC,CAA4D,CAAC;AAEhE,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACpE,WAAW,EAAE,6BAA6B;IAC1C,YAAY,EAAE,8BAA8B;IAC5C,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
@@ -1,19 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { NotFound } from "../errors.ts";
3
- export interface RevokeAPITokenInput {
4
- tokenName: string;
5
- }
6
- export declare const RevokeAPITokenInput: Schema.Codec<RevokeAPITokenInput>;
7
- export interface RevokeAPITokenOutput {
8
- token?: string;
9
- }
10
- export declare const RevokeAPITokenOutput: Schema.Codec<RevokeAPITokenOutput>;
11
- /**
12
- * Revoke API Token
13
- *
14
- * Revokes the provided API token belonging to a user.
15
- *
16
- * @param tokenName - The name of the api token.
17
- */
18
- export declare const revokeAPIToken: import("@distilled.cloud/core/client").OperationMethod<RevokeAPITokenInput, RevokeAPITokenOutput, NotFound, import("../credentials.ts").Credentials, never>;
19
- //# sourceMappingURL=revokeAPIToken.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"revokeAPIToken.d.ts","sourceRoot":"","sources":["../../src/operations/revokeAPIToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,eAAO,MAAM,mBAAmB,EAIhB,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;AAGlD,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,eAAO,MAAM,oBAAoB,EAEhB,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;AAGpD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,6JAIxB,CAAC"}
@@ -1,24 +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 RevokeAPITokenInput = /*@__PURE__*/ Schema.Struct({
6
- tokenName: Schema.String.pipe(T.PathParam()),
7
- }).pipe(T.Http({ method: "DELETE", path: "/v1/auth/api-tokens/{tokenName}" }));
8
- export const RevokeAPITokenOutput = /*@__PURE__*/ Schema.Struct({
9
- token: Schema.optional(Schema.String),
10
- });
11
- // The operation
12
- /**
13
- * Revoke API Token
14
- *
15
- * Revokes the provided API token belonging to a user.
16
- *
17
- * @param tokenName - The name of the api token.
18
- */
19
- export const revokeAPIToken = /*@__PURE__*/ API.make(() => ({
20
- inputSchema: RevokeAPITokenInput,
21
- outputSchema: RevokeAPITokenOutput,
22
- errors: [NotFound],
23
- }));
24
- //# sourceMappingURL=revokeAPIToken.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"revokeAPIToken.js","sourceRoot":"","sources":["../../src/operations/revokeAPIToken.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,mBAAmB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC7C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,iCAAiC,EAAE,CAAC,CACtB,CAAC;AAMlD,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC9D,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACtC,CAAkD,CAAC;AAEpD,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1D,WAAW,EAAE,mBAAmB;IAChC,YAAY,EAAE,oBAAoB;IAClC,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
@@ -1,25 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- export interface RevokeOrganizationAPITokenInput {
3
- organizationSlug: string;
4
- tokenId: string;
5
- }
6
- export declare const RevokeOrganizationAPITokenInput: Schema.Codec<RevokeOrganizationAPITokenInput>;
7
- export interface RevokeOrganizationAPITokenOutput {
8
- token?: string;
9
- }
10
- export declare const RevokeOrganizationAPITokenOutput: Schema.Codec<RevokeOrganizationAPITokenOutput>;
11
- /**
12
- * Revoke Organization API Token
13
- *
14
- * Revokes a token scoped to this organization.
15
- * 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.
16
- * Authorization is symmetric with the list endpoint:
17
- * - **Admins and owners** can revoke any token scoped to the organization (org-scoped or group-scoped, regardless of who minted it).
18
- * - **Members and viewers** can revoke only tokens they minted themselves.
19
- * 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).
20
- *
21
- * @param organizationSlug - The slug of the organization or user account.
22
- * @param tokenId - The ID of the token to revoke (from the list endpoint).
23
- */
24
- export declare const revokeOrganizationAPIToken: import("@distilled.cloud/core/client").OperationMethod<RevokeOrganizationAPITokenInput, RevokeOrganizationAPITokenOutput, never, import("../credentials.ts").Credentials, never>;
25
- //# sourceMappingURL=revokeOrganizationAPIToken.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"revokeOrganizationAPIToken.d.ts","sourceRoot":"","sources":["../../src/operations/revokeOrganizationAPIToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,+BAA+B;IAC9C,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AACD,eAAO,MAAM,+BAA+B,EAS1B,MAAM,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;AAGhE,MAAM,WAAW,gCAAgC;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,eAAO,MAAM,gCAAgC,EAG1B,MAAM,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;AAGlE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B,kLAGpC,CAAC"}
@@ -1,34 +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 RevokeOrganizationAPITokenInput =
5
- /*@__PURE__*/ Schema.Struct({
6
- organizationSlug: Schema.String.pipe(T.PathParam()),
7
- tokenId: Schema.String.pipe(T.PathParam()),
8
- }).pipe(T.Http({
9
- method: "DELETE",
10
- path: "/v1/organizations/{organizationSlug}/api-tokens/{tokenId}",
11
- }));
12
- export const RevokeOrganizationAPITokenOutput =
13
- /*@__PURE__*/ Schema.Struct({
14
- token: Schema.optional(Schema.String),
15
- });
16
- // The operation
17
- /**
18
- * Revoke Organization API Token
19
- *
20
- * Revokes a token scoped to this organization.
21
- * 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.
22
- * Authorization is symmetric with the list endpoint:
23
- * - **Admins and owners** can revoke any token scoped to the organization (org-scoped or group-scoped, regardless of who minted it).
24
- * - **Members and viewers** can revoke only tokens they minted themselves.
25
- * 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).
26
- *
27
- * @param organizationSlug - The slug of the organization or user account.
28
- * @param tokenId - The ID of the token to revoke (from the list endpoint).
29
- */
30
- export const revokeOrganizationAPIToken = /*@__PURE__*/ API.make(() => ({
31
- inputSchema: RevokeOrganizationAPITokenInput,
32
- outputSchema: RevokeOrganizationAPITokenOutput,
33
- }));
34
- //# sourceMappingURL=revokeOrganizationAPIToken.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"revokeOrganizationAPIToken.js","sourceRoot":"","sources":["../../src/operations/revokeOrganizationAPIToken.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;AAOlC,MAAM,CAAC,MAAM,+BAA+B;AAC1C,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC3C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,2DAA2D;CAClE,CAAC,CACyD,CAAC;AAMhE,MAAM,CAAC,MAAM,gCAAgC;AAC3C,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACtC,CAA8D,CAAC;AAElE,gBAAgB;AAChB;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACtE,WAAW,EAAE,+BAA+B;IAC5C,YAAY,EAAE,gCAAgC;CAC/C,CAAC,CAAC,CAAC"}