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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/lib/credentials.d.ts.map +1 -1
  2. package/lib/credentials.js +8 -0
  3. package/lib/credentials.js.map +1 -1
  4. package/lib/errors.d.ts +24 -3
  5. package/lib/errors.d.ts.map +1 -1
  6. package/lib/errors.js +13 -4
  7. package/lib/errors.js.map +1 -1
  8. package/lib/index.d.ts +8 -6
  9. package/lib/index.d.ts.map +1 -1
  10. package/lib/index.js +8 -6
  11. package/lib/index.js.map +1 -1
  12. package/lib/protocol.d.ts +18 -0
  13. package/lib/protocol.d.ts.map +1 -0
  14. package/lib/protocol.js +46 -0
  15. package/lib/protocol.js.map +1 -0
  16. package/lib/retry.d.ts +4 -4
  17. package/lib/retry.js +4 -4
  18. package/lib/services/index.d.ts +2 -0
  19. package/lib/services/index.d.ts.map +1 -0
  20. package/lib/services/index.js +3 -0
  21. package/lib/services/index.js.map +1 -0
  22. package/lib/services/turso.d.ts +1280 -0
  23. package/lib/services/turso.d.ts.map +1 -0
  24. package/lib/services/turso.js +1463 -0
  25. package/lib/services/turso.js.map +1 -0
  26. package/lib/traits.d.ts +10 -2
  27. package/lib/traits.d.ts.map +1 -1
  28. package/lib/traits.js +10 -2
  29. package/lib/traits.js.map +1 -1
  30. package/package.json +31 -37
  31. package/src/credentials.ts +8 -0
  32. package/src/errors.ts +42 -5
  33. package/src/index.ts +12 -6
  34. package/src/protocol.ts +68 -0
  35. package/src/retry.ts +4 -4
  36. package/src/services/index.ts +2 -0
  37. package/src/services/turso.ts +3426 -0
  38. package/src/traits.ts +44 -2
  39. package/README.md +0 -36
  40. package/lib/category.d.ts +0 -5
  41. package/lib/category.d.ts.map +0 -1
  42. package/lib/category.js +0 -5
  43. package/lib/category.js.map +0 -1
  44. package/lib/client.d.ts +0 -11
  45. package/lib/client.d.ts.map +0 -1
  46. package/lib/client.js +0 -59
  47. package/lib/client.js.map +0 -1
  48. package/lib/operations/addLocationToGroup.d.ts +0 -30
  49. package/lib/operations/addLocationToGroup.d.ts.map +0 -1
  50. package/lib/operations/addLocationToGroup.js +0 -40
  51. package/lib/operations/addLocationToGroup.js.map +0 -1
  52. package/lib/operations/addOrganizationMember.d.ts +0 -22
  53. package/lib/operations/addOrganizationMember.d.ts.map +0 -1
  54. package/lib/operations/addOrganizationMember.js +0 -32
  55. package/lib/operations/addOrganizationMember.js.map +0 -1
  56. package/lib/operations/createAPIToken.d.ts +0 -28
  57. package/lib/operations/createAPIToken.d.ts.map +0 -1
  58. package/lib/operations/createAPIToken.js +0 -44
  59. package/lib/operations/createAPIToken.js.map +0 -1
  60. package/lib/operations/createDatabase.d.ts +0 -35
  61. package/lib/operations/createDatabase.d.ts.map +0 -1
  62. package/lib/operations/createDatabase.js +0 -53
  63. package/lib/operations/createDatabase.js.map +0 -1
  64. package/lib/operations/createDatabaseToken.d.ts +0 -30
  65. package/lib/operations/createDatabaseToken.d.ts.map +0 -1
  66. package/lib/operations/createDatabaseToken.js +0 -40
  67. package/lib/operations/createDatabaseToken.js.map +0 -1
  68. package/lib/operations/createGroup.d.ts +0 -29
  69. package/lib/operations/createGroup.d.ts.map +0 -1
  70. package/lib/operations/createGroup.js +0 -51
  71. package/lib/operations/createGroup.js.map +0 -1
  72. package/lib/operations/createGroupToken.d.ts +0 -30
  73. package/lib/operations/createGroupToken.d.ts.map +0 -1
  74. package/lib/operations/createGroupToken.js +0 -38
  75. package/lib/operations/createGroupToken.js.map +0 -1
  76. package/lib/operations/deleteDatabase.d.ts +0 -21
  77. package/lib/operations/deleteDatabase.d.ts.map +0 -1
  78. package/lib/operations/deleteDatabase.js +0 -29
  79. package/lib/operations/deleteDatabase.js.map +0 -1
  80. package/lib/operations/deleteGroup.d.ts +0 -28
  81. package/lib/operations/deleteGroup.d.ts.map +0 -1
  82. package/lib/operations/deleteGroup.js +0 -36
  83. package/lib/operations/deleteGroup.js.map +0 -1
  84. package/lib/operations/deleteOrganizationInviteByEmail.d.ts +0 -21
  85. package/lib/operations/deleteOrganizationInviteByEmail.d.ts.map +0 -1
  86. package/lib/operations/deleteOrganizationInviteByEmail.js +0 -30
  87. package/lib/operations/deleteOrganizationInviteByEmail.js.map +0 -1
  88. package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts +0 -18
  89. package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts.map +0 -1
  90. package/lib/operations/deleteOrganizationInviteByEmailV2.js +0 -29
  91. package/lib/operations/deleteOrganizationInviteByEmailV2.js.map +0 -1
  92. package/lib/operations/getCurrentUser.d.ts +0 -23
  93. package/lib/operations/getCurrentUser.d.ts.map +0 -1
  94. package/lib/operations/getCurrentUser.js +0 -26
  95. package/lib/operations/getCurrentUser.js.map +0 -1
  96. package/lib/operations/getDatabase.d.ts +0 -36
  97. package/lib/operations/getDatabase.d.ts.map +0 -1
  98. package/lib/operations/getDatabase.js +0 -44
  99. package/lib/operations/getDatabase.js.map +0 -1
  100. package/lib/operations/getDatabaseConfiguration.d.ts +0 -27
  101. package/lib/operations/getDatabaseConfiguration.d.ts.map +0 -1
  102. package/lib/operations/getDatabaseConfiguration.js +0 -37
  103. package/lib/operations/getDatabaseConfiguration.js.map +0 -1
  104. package/lib/operations/getDatabaseInstance.d.ts +0 -29
  105. package/lib/operations/getDatabaseInstance.d.ts.map +0 -1
  106. package/lib/operations/getDatabaseInstance.js +0 -39
  107. package/lib/operations/getDatabaseInstance.js.map +0 -1
  108. package/lib/operations/getDatabaseStats.d.ts +0 -25
  109. package/lib/operations/getDatabaseStats.d.ts.map +0 -1
  110. package/lib/operations/getDatabaseStats.js +0 -33
  111. package/lib/operations/getDatabaseStats.js.map +0 -1
  112. package/lib/operations/getDatabaseUsage.d.ts +0 -42
  113. package/lib/operations/getDatabaseUsage.d.ts.map +0 -1
  114. package/lib/operations/getDatabaseUsage.js +0 -50
  115. package/lib/operations/getDatabaseUsage.js.map +0 -1
  116. package/lib/operations/getGroup.d.ts +0 -28
  117. package/lib/operations/getGroup.d.ts.map +0 -1
  118. package/lib/operations/getGroup.js +0 -36
  119. package/lib/operations/getGroup.js.map +0 -1
  120. package/lib/operations/getGroupConfiguration.d.ts +0 -21
  121. package/lib/operations/getGroupConfiguration.d.ts.map +0 -1
  122. package/lib/operations/getGroupConfiguration.js +0 -31
  123. package/lib/operations/getGroupConfiguration.js.map +0 -1
  124. package/lib/operations/getOrganization.d.ts +0 -30
  125. package/lib/operations/getOrganization.d.ts.map +0 -1
  126. package/lib/operations/getOrganization.js +0 -35
  127. package/lib/operations/getOrganization.js.map +0 -1
  128. package/lib/operations/getOrganizationMember.d.ts +0 -25
  129. package/lib/operations/getOrganizationMember.d.ts.map +0 -1
  130. package/lib/operations/getOrganizationMember.js +0 -35
  131. package/lib/operations/getOrganizationMember.js.map +0 -1
  132. package/lib/operations/getOrganizationSubscription.d.ts +0 -23
  133. package/lib/operations/getOrganizationSubscription.d.ts.map +0 -1
  134. package/lib/operations/getOrganizationSubscription.js +0 -32
  135. package/lib/operations/getOrganizationSubscription.js.map +0 -1
  136. package/lib/operations/getOrganizationUsage.d.ts +0 -47
  137. package/lib/operations/getOrganizationUsage.d.ts.map +0 -1
  138. package/lib/operations/getOrganizationUsage.js +0 -56
  139. package/lib/operations/getOrganizationUsage.js.map +0 -1
  140. package/lib/operations/index.d.ts +0 -50
  141. package/lib/operations/index.d.ts.map +0 -1
  142. package/lib/operations/index.js +0 -50
  143. package/lib/operations/index.js.map +0 -1
  144. package/lib/operations/invalidateDatabaseTokens.d.ts +0 -19
  145. package/lib/operations/invalidateDatabaseTokens.d.ts.map +0 -1
  146. package/lib/operations/invalidateDatabaseTokens.js +0 -29
  147. package/lib/operations/invalidateDatabaseTokens.js.map +0 -1
  148. package/lib/operations/invalidateGroupTokens.d.ts +0 -19
  149. package/lib/operations/invalidateGroupTokens.d.ts.map +0 -1
  150. package/lib/operations/invalidateGroupTokens.js +0 -29
  151. package/lib/operations/invalidateGroupTokens.js.map +0 -1
  152. package/lib/operations/inviteOrganizationMember.d.ts +0 -69
  153. package/lib/operations/inviteOrganizationMember.d.ts.map +0 -1
  154. package/lib/operations/inviteOrganizationMember.js +0 -54
  155. package/lib/operations/inviteOrganizationMember.js.map +0 -1
  156. package/lib/operations/inviteOrganizationMemberV2.d.ts +0 -25
  157. package/lib/operations/inviteOrganizationMemberV2.d.ts.map +0 -1
  158. package/lib/operations/inviteOrganizationMemberV2.js +0 -34
  159. package/lib/operations/inviteOrganizationMemberV2.js.map +0 -1
  160. package/lib/operations/listAPITokens.d.ts +0 -22
  161. package/lib/operations/listAPITokens.d.ts.map +0 -1
  162. package/lib/operations/listAPITokens.js +0 -25
  163. package/lib/operations/listAPITokens.js.map +0 -1
  164. package/lib/operations/listDatabaseInstances.d.ts +0 -27
  165. package/lib/operations/listDatabaseInstances.d.ts.map +0 -1
  166. package/lib/operations/listDatabaseInstances.js +0 -37
  167. package/lib/operations/listDatabaseInstances.js.map +0 -1
  168. package/lib/operations/listDatabases.d.ts +0 -39
  169. package/lib/operations/listDatabases.d.ts.map +0 -1
  170. package/lib/operations/listDatabases.js +0 -46
  171. package/lib/operations/listDatabases.js.map +0 -1
  172. package/lib/operations/listGroups.d.ts +0 -25
  173. package/lib/operations/listGroups.d.ts.map +0 -1
  174. package/lib/operations/listGroups.js +0 -32
  175. package/lib/operations/listGroups.js.map +0 -1
  176. package/lib/operations/listLocations.d.ts +0 -15
  177. package/lib/operations/listLocations.d.ts.map +0 -1
  178. package/lib/operations/listLocations.js +0 -18
  179. package/lib/operations/listLocations.js.map +0 -1
  180. package/lib/operations/listOrganizationAPITokens.d.ts +0 -33
  181. package/lib/operations/listOrganizationAPITokens.d.ts.map +0 -1
  182. package/lib/operations/listOrganizationAPITokens.js +0 -42
  183. package/lib/operations/listOrganizationAPITokens.js.map +0 -1
  184. package/lib/operations/listOrganizationAuditLogs.d.ts +0 -35
  185. package/lib/operations/listOrganizationAuditLogs.d.ts.map +0 -1
  186. package/lib/operations/listOrganizationAuditLogs.js +0 -69
  187. package/lib/operations/listOrganizationAuditLogs.js.map +0 -1
  188. package/lib/operations/listOrganizationInvites.d.ts +0 -64
  189. package/lib/operations/listOrganizationInvites.d.ts.map +0 -1
  190. package/lib/operations/listOrganizationInvites.js +0 -50
  191. package/lib/operations/listOrganizationInvites.js.map +0 -1
  192. package/lib/operations/listOrganizationInvitesV2.d.ts +0 -23
  193. package/lib/operations/listOrganizationInvitesV2.d.ts.map +0 -1
  194. package/lib/operations/listOrganizationInvitesV2.js +0 -32
  195. package/lib/operations/listOrganizationInvitesV2.js.map +0 -1
  196. package/lib/operations/listOrganizationInvoices.d.ts +0 -27
  197. package/lib/operations/listOrganizationInvoices.d.ts.map +0 -1
  198. package/lib/operations/listOrganizationInvoices.js +0 -36
  199. package/lib/operations/listOrganizationInvoices.js.map +0 -1
  200. package/lib/operations/listOrganizationMembers.d.ts +0 -22
  201. package/lib/operations/listOrganizationMembers.d.ts.map +0 -1
  202. package/lib/operations/listOrganizationMembers.js +0 -31
  203. package/lib/operations/listOrganizationMembers.js.map +0 -1
  204. package/lib/operations/listOrganizationPlans.d.ts +0 -34
  205. package/lib/operations/listOrganizationPlans.d.ts.map +0 -1
  206. package/lib/operations/listOrganizationPlans.js +0 -43
  207. package/lib/operations/listOrganizationPlans.js.map +0 -1
  208. package/lib/operations/listOrganizations.d.ts +0 -24
  209. package/lib/operations/listOrganizations.d.ts.map +0 -1
  210. package/lib/operations/listOrganizations.js +0 -27
  211. package/lib/operations/listOrganizations.js.map +0 -1
  212. package/lib/operations/removeLocationFromGroup.d.ts +0 -30
  213. package/lib/operations/removeLocationFromGroup.d.ts.map +0 -1
  214. package/lib/operations/removeLocationFromGroup.js +0 -40
  215. package/lib/operations/removeLocationFromGroup.js.map +0 -1
  216. package/lib/operations/removeOrganizationMember.d.ts +0 -21
  217. package/lib/operations/removeOrganizationMember.d.ts.map +0 -1
  218. package/lib/operations/removeOrganizationMember.js +0 -31
  219. package/lib/operations/removeOrganizationMember.js.map +0 -1
  220. package/lib/operations/revokeAPIToken.d.ts +0 -19
  221. package/lib/operations/revokeAPIToken.d.ts.map +0 -1
  222. package/lib/operations/revokeAPIToken.js +0 -24
  223. package/lib/operations/revokeAPIToken.js.map +0 -1
  224. package/lib/operations/revokeOrganizationAPIToken.d.ts +0 -25
  225. package/lib/operations/revokeOrganizationAPIToken.d.ts.map +0 -1
  226. package/lib/operations/revokeOrganizationAPIToken.js +0 -34
  227. package/lib/operations/revokeOrganizationAPIToken.js.map +0 -1
  228. package/lib/operations/transferGroup.d.ts +0 -27
  229. package/lib/operations/transferGroup.d.ts.map +0 -1
  230. package/lib/operations/transferGroup.js +0 -35
  231. package/lib/operations/transferGroup.js.map +0 -1
  232. package/lib/operations/unarchiveGroup.d.ts +0 -28
  233. package/lib/operations/unarchiveGroup.d.ts.map +0 -1
  234. package/lib/operations/unarchiveGroup.js +0 -36
  235. package/lib/operations/unarchiveGroup.js.map +0 -1
  236. package/lib/operations/updateDatabaseConfiguration.d.ts +0 -34
  237. package/lib/operations/updateDatabaseConfiguration.d.ts.map +0 -1
  238. package/lib/operations/updateDatabaseConfiguration.js +0 -44
  239. package/lib/operations/updateDatabaseConfiguration.js.map +0 -1
  240. package/lib/operations/updateGroupConfiguration.d.ts +0 -22
  241. package/lib/operations/updateGroupConfiguration.d.ts.map +0 -1
  242. package/lib/operations/updateGroupConfiguration.js +0 -32
  243. package/lib/operations/updateGroupConfiguration.js.map +0 -1
  244. package/lib/operations/updateGroupDatabases.d.ts +0 -19
  245. package/lib/operations/updateGroupDatabases.d.ts.map +0 -1
  246. package/lib/operations/updateGroupDatabases.js +0 -29
  247. package/lib/operations/updateGroupDatabases.js.map +0 -1
  248. package/lib/operations/updateMemberRole.d.ts +0 -26
  249. package/lib/operations/updateMemberRole.d.ts.map +0 -1
  250. package/lib/operations/updateMemberRole.js +0 -34
  251. package/lib/operations/updateMemberRole.js.map +0 -1
  252. package/lib/operations/updateOrganization.d.ts +0 -31
  253. package/lib/operations/updateOrganization.d.ts.map +0 -1
  254. package/lib/operations/updateOrganization.js +0 -37
  255. package/lib/operations/updateOrganization.js.map +0 -1
  256. package/lib/operations/validateAPIToken.d.ts +0 -15
  257. package/lib/operations/validateAPIToken.d.ts.map +0 -1
  258. package/lib/operations/validateAPIToken.js +0 -18
  259. package/lib/operations/validateAPIToken.js.map +0 -1
  260. package/lib/sensitive.d.ts +0 -5
  261. package/lib/sensitive.d.ts.map +0 -1
  262. package/lib/sensitive.js +0 -5
  263. package/lib/sensitive.js.map +0 -1
  264. package/src/category.ts +0 -4
  265. package/src/client.ts +0 -74
  266. package/src/operations/addLocationToGroup.ts +0 -63
  267. package/src/operations/addOrganizationMember.ts +0 -49
  268. package/src/operations/createAPIToken.ts +0 -77
  269. package/src/operations/createDatabase.ts +0 -94
  270. package/src/operations/createDatabaseToken.ts +0 -62
  271. package/src/operations/createGroup.ts +0 -92
  272. package/src/operations/createGroupToken.ts +0 -58
  273. package/src/operations/deleteDatabase.ts +0 -42
  274. package/src/operations/deleteGroup.ts +0 -58
  275. package/src/operations/deleteOrganizationInviteByEmail.ts +0 -38
  276. package/src/operations/deleteOrganizationInviteByEmailV2.ts +0 -40
  277. package/src/operations/getCurrentUser.ts +0 -46
  278. package/src/operations/getDatabase.ts +0 -74
  279. package/src/operations/getDatabaseConfiguration.ts +0 -56
  280. package/src/operations/getDatabaseInstance.ts +0 -61
  281. package/src/operations/getDatabaseStats.ts +0 -54
  282. package/src/operations/getDatabaseUsage.ts +0 -92
  283. package/src/operations/getGroup.ts +0 -58
  284. package/src/operations/getGroupConfiguration.ts +0 -44
  285. package/src/operations/getOrganization.ts +0 -60
  286. package/src/operations/getOrganizationMember.ts +0 -56
  287. package/src/operations/getOrganizationSubscription.ts +0 -51
  288. package/src/operations/getOrganizationUsage.ts +0 -113
  289. package/src/operations/index.ts +0 -49
  290. package/src/operations/invalidateDatabaseTokens.ts +0 -40
  291. package/src/operations/invalidateGroupTokens.ts +0 -40
  292. package/src/operations/inviteOrganizationMember.ts +0 -66
  293. package/src/operations/inviteOrganizationMemberV2.ts +0 -55
  294. package/src/operations/listAPITokens.ts +0 -46
  295. package/src/operations/listDatabaseInstances.ts +0 -60
  296. package/src/operations/listDatabases.ts +0 -80
  297. package/src/operations/listGroups.ts +0 -55
  298. package/src/operations/listLocations.ts +0 -28
  299. package/src/operations/listOrganizationAPITokens.ts +0 -68
  300. package/src/operations/listOrganizationAuditLogs.ts +0 -128
  301. package/src/operations/listOrganizationInvites.ts +0 -64
  302. package/src/operations/listOrganizationInvitesV2.ts +0 -53
  303. package/src/operations/listOrganizationInvoices.ts +0 -60
  304. package/src/operations/listOrganizationMembers.ts +0 -53
  305. package/src/operations/listOrganizationPlans.ts +0 -78
  306. package/src/operations/listOrganizations.ts +0 -48
  307. package/src/operations/removeLocationFromGroup.ts +0 -63
  308. package/src/operations/removeOrganizationMember.ts +0 -44
  309. package/src/operations/revokeAPIToken.ts +0 -36
  310. package/src/operations/revokeOrganizationAPIToken.ts +0 -47
  311. package/src/operations/transferGroup.ts +0 -54
  312. package/src/operations/unarchiveGroup.ts +0 -58
  313. package/src/operations/updateDatabaseConfiguration.ts +0 -70
  314. package/src/operations/updateGroupConfiguration.ts +0 -46
  315. package/src/operations/updateGroupDatabases.ts +0 -40
  316. package/src/operations/updateMemberRole.ts +0 -54
  317. package/src/operations/updateOrganization.ts +0 -64
  318. package/src/operations/validateAPIToken.ts +0 -28
  319. package/src/sensitive.ts +0 -4
@@ -1,27 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { NotFound } from "../errors.ts";
3
- export interface ListDatabaseInstancesInput {
4
- organizationSlug: string;
5
- databaseName: string;
6
- }
7
- export declare const ListDatabaseInstancesInput: Schema.Codec<ListDatabaseInstancesInput>;
8
- export interface ListDatabaseInstancesOutput {
9
- instances?: {
10
- uuid?: string;
11
- name?: string;
12
- type?: "primary" | "replica";
13
- region?: string;
14
- hostname?: string;
15
- }[];
16
- }
17
- export declare const ListDatabaseInstancesOutput: Schema.Codec<ListDatabaseInstancesOutput>;
18
- /**
19
- * List Database Instances
20
- *
21
- * Returns a list of instances of a database. Instances are the individual primary or replica databases in each region defined by the group.
22
- *
23
- * @param organizationSlug - The slug of the organization or user account.
24
- * @param databaseName - The name of the database.
25
- */
26
- export declare const listDatabaseInstances: import("@distilled.cloud/core/client").OperationMethod<ListDatabaseInstancesInput, ListDatabaseInstancesOutput, NotFound, import("../credentials.ts").Credentials, never>;
27
- //# sourceMappingURL=listDatabaseInstances.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listDatabaseInstances.d.ts","sourceRoot":"","sources":["../../src/operations/listDatabaseInstances.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,YAAY,EAAE,MAAM,CAAC;CACtB;AACD,eAAO,MAAM,0BAA0B,EASrB,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;AAG3D,MAAM,WAAW,2BAA2B;IAC1C,SAAS,CAAC,EAAE;QACV,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,EAAE,CAAC;CACL;AACD,eAAO,MAAM,2BAA2B,EAarB,MAAM,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;AAG7D;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,2KAI/B,CAAC"}
@@ -1,37 +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 ListDatabaseInstancesInput =
6
- /*@__PURE__*/ Schema.Struct({
7
- organizationSlug: Schema.String.pipe(T.PathParam()),
8
- databaseName: Schema.String.pipe(T.PathParam()),
9
- }).pipe(T.Http({
10
- method: "GET",
11
- path: "/v1/organizations/{organizationSlug}/databases/{databaseName}/instances",
12
- }));
13
- export const ListDatabaseInstancesOutput =
14
- /*@__PURE__*/ Schema.Struct({
15
- instances: Schema.optional(Schema.Array(Schema.Struct({
16
- uuid: Schema.optional(Schema.String),
17
- name: Schema.optional(Schema.String),
18
- type: Schema.optional(Schema.Literals(["primary", "replica"])),
19
- region: Schema.optional(Schema.String),
20
- hostname: Schema.optional(Schema.String),
21
- }))),
22
- });
23
- // The operation
24
- /**
25
- * List Database Instances
26
- *
27
- * Returns a list of instances of a database. Instances are the individual primary or replica databases in each region defined by the group.
28
- *
29
- * @param organizationSlug - The slug of the organization or user account.
30
- * @param databaseName - The name of the database.
31
- */
32
- export const listDatabaseInstances = /*@__PURE__*/ API.make(() => ({
33
- inputSchema: ListDatabaseInstancesInput,
34
- outputSchema: ListDatabaseInstancesOutput,
35
- errors: [NotFound],
36
- }));
37
- //# sourceMappingURL=listDatabaseInstances.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listDatabaseInstances.js","sourceRoot":"","sources":["../../src/operations/listDatabaseInstances.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,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,yEAAyE;CAChF,CAAC,CACoD,CAAC;AAY3D,MAAM,CAAC,MAAM,2BAA2B;AACtC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC,QAAQ,CACxB,MAAM,CAAC,KAAK,CACV,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;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,39 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- export interface ListDatabasesInput {
3
- organizationSlug: string;
4
- group?: string;
5
- schema?: string;
6
- parent?: string;
7
- }
8
- export declare const ListDatabasesInput: Schema.Codec<ListDatabasesInput>;
9
- export interface ListDatabasesOutput {
10
- databases?: {
11
- Name?: string;
12
- DbId?: string;
13
- Hostname?: string;
14
- block_reads?: boolean;
15
- block_writes?: boolean;
16
- regions?: string[];
17
- primaryRegion?: string;
18
- group?: string;
19
- delete_protection?: boolean;
20
- parent?: {
21
- id?: string;
22
- name?: string;
23
- branched_at?: string;
24
- } | null;
25
- }[];
26
- }
27
- export declare const ListDatabasesOutput: Schema.Codec<ListDatabasesOutput>;
28
- /**
29
- * List Databases
30
- *
31
- * Returns a list of databases belonging to the organization or user.
32
- *
33
- * @param organizationSlug - The slug of the organization or user account.
34
- * @param group - Filter databases by group name.
35
- * @param schema - The schema database name that can be used to get databases that belong to that parent schema.
36
- * @param parent - Filter database branches by using their parent database ID.
37
- */
38
- export declare const listDatabases: import("@distilled.cloud/core/client").OperationMethod<ListDatabasesInput, ListDatabasesOutput, never, import("../credentials.ts").Credentials, never>;
39
- //# sourceMappingURL=listDatabases.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listDatabases.d.ts","sourceRoot":"","sources":["../../src/operations/listDatabases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,eAAO,MAAM,kBAAkB,EAUf,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;AAGjD,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE;QACV,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,MAAM,CAAC,EAAE;YAAE,EAAE,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAC;YAAC,WAAW,CAAC,EAAE,MAAM,CAAA;SAAE,GAAG,IAAI,CAAC;KACtE,EAAE,CAAC;CACL;AACD,eAAO,MAAM,mBAAmB,EAyBf,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;AAGnD;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,wJAGvB,CAAC"}
@@ -1,46 +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 ListDatabasesInput = /*@__PURE__*/ Schema.Struct({
5
- organizationSlug: Schema.String.pipe(T.PathParam()),
6
- group: Schema.optional(Schema.String),
7
- schema: Schema.optional(Schema.String),
8
- parent: Schema.optional(Schema.String),
9
- }).pipe(T.Http({
10
- method: "GET",
11
- path: "/v1/organizations/{organizationSlug}/databases",
12
- }));
13
- export const ListDatabasesOutput = /*@__PURE__*/ Schema.Struct({
14
- databases: Schema.optional(Schema.Array(Schema.Struct({
15
- Name: Schema.optional(Schema.String),
16
- DbId: Schema.optional(Schema.String),
17
- Hostname: Schema.optional(Schema.String),
18
- block_reads: Schema.optional(Schema.Boolean),
19
- block_writes: Schema.optional(Schema.Boolean),
20
- regions: Schema.optional(Schema.Array(Schema.String)),
21
- primaryRegion: Schema.optional(Schema.String),
22
- group: Schema.optional(Schema.String),
23
- delete_protection: Schema.optional(Schema.Boolean),
24
- parent: Schema.optional(Schema.NullOr(Schema.Struct({
25
- id: Schema.optional(Schema.String),
26
- name: Schema.optional(Schema.String),
27
- branched_at: Schema.optional(Schema.String),
28
- }))),
29
- }))),
30
- });
31
- // The operation
32
- /**
33
- * List Databases
34
- *
35
- * Returns a list of databases belonging to the organization or user.
36
- *
37
- * @param organizationSlug - The slug of the organization or user account.
38
- * @param group - Filter databases by group name.
39
- * @param schema - The schema database name that can be used to get databases that belong to that parent schema.
40
- * @param parent - Filter database branches by using their parent database ID.
41
- */
42
- export const listDatabases = /*@__PURE__*/ API.make(() => ({
43
- inputSchema: ListDatabasesInput,
44
- outputSchema: ListDatabasesOutput,
45
- }));
46
- //# sourceMappingURL=listDatabases.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listDatabases.js","sourceRoot":"","sources":["../../src/operations/listDatabases.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;AASlC,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5D,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACvC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,gDAAgD;CACvD,CAAC,CAC4C,CAAC;AAiBjD,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM,CAAC,QAAQ,CACxB,MAAM,CAAC,KAAK,CACV,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,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACxC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QAC5C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QAC7C,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACrD,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC7C,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QAClD,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,MAAM,CACX,MAAM,CAAC,MAAM,CAAC;YACZ,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YAClC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACpC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;SAC5C,CAAC,CACH,CACF;KACF,CAAC,CACH,CACF;CACF,CAAiD,CAAC;AAEnD,gBAAgB;AAChB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACzD,WAAW,EAAE,kBAAkB;IAC/B,YAAY,EAAE,mBAAmB;CAClC,CAAC,CAAC,CAAC"}
@@ -1,25 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- export interface ListGroupsInput {
3
- organizationSlug: string;
4
- }
5
- export declare const ListGroupsInput: Schema.Codec<ListGroupsInput>;
6
- export interface ListGroupsOutput {
7
- groups?: {
8
- name?: string;
9
- version?: string;
10
- uuid?: string;
11
- locations?: string[];
12
- primary?: string;
13
- delete_protection?: boolean;
14
- }[];
15
- }
16
- export declare const ListGroupsOutput: Schema.Codec<ListGroupsOutput>;
17
- /**
18
- * List Groups
19
- *
20
- * Returns a list of groups belonging to the organization or user.
21
- *
22
- * @param organizationSlug - The slug of the organization or user account.
23
- */
24
- export declare const listGroups: import("@distilled.cloud/core/client").OperationMethod<ListGroupsInput, ListGroupsOutput, never, import("../credentials.ts").Credentials, never>;
25
- //# sourceMappingURL=listGroups.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listGroups.d.ts","sourceRoot":"","sources":["../../src/operations/listGroups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AACD,eAAO,MAAM,eAAe,EAOZ,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;AAG9C,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE;QACP,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,EAAE,CAAC;CACL;AACD,eAAO,MAAM,gBAAgB,EAaZ,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;AAGhD;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,kJAGpB,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 ListGroupsInput = /*@__PURE__*/ Schema.Struct({
5
- organizationSlug: Schema.String.pipe(T.PathParam()),
6
- }).pipe(T.Http({
7
- method: "GET",
8
- path: "/v1/organizations/{organizationSlug}/groups",
9
- }));
10
- export const ListGroupsOutput = /*@__PURE__*/ Schema.Struct({
11
- groups: Schema.optional(Schema.Array(Schema.Struct({
12
- name: Schema.optional(Schema.String),
13
- version: Schema.optional(Schema.String),
14
- uuid: Schema.optional(Schema.String),
15
- locations: Schema.optional(Schema.Array(Schema.String)),
16
- primary: Schema.optional(Schema.String),
17
- delete_protection: Schema.optional(Schema.Boolean),
18
- }))),
19
- });
20
- // The operation
21
- /**
22
- * List Groups
23
- *
24
- * Returns a list of groups belonging to the organization or user.
25
- *
26
- * @param organizationSlug - The slug of the organization or user account.
27
- */
28
- export const listGroups = /*@__PURE__*/ API.make(() => ({
29
- inputSchema: ListGroupsInput,
30
- outputSchema: ListGroupsOutput,
31
- }));
32
- //# sourceMappingURL=listGroups.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listGroups.js","sourceRoot":"","sources":["../../src/operations/listGroups.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,eAAe,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACzD,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,6CAA6C;CACpD,CAAC,CACyC,CAAC;AAa9C,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1D,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,KAAK,CACV,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;CACF,CAA8C,CAAC;AAEhD,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACtD,WAAW,EAAE,eAAe;IAC5B,YAAY,EAAE,gBAAgB;CAC/B,CAAC,CAAC,CAAC"}
@@ -1,15 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- export interface ListLocationsInput {
3
- }
4
- export declare const ListLocationsInput: Schema.Codec<ListLocationsInput>;
5
- export interface ListLocationsOutput {
6
- locations?: Record<string, string>;
7
- }
8
- export declare const ListLocationsOutput: Schema.Codec<ListLocationsOutput>;
9
- /**
10
- * List Locations
11
- *
12
- * Returns a list of locations where you can create or replicate databases.
13
- */
14
- export declare const listLocations: import("@distilled.cloud/core/client").OperationMethod<ListLocationsInput, ListLocationsOutput, never, import("../credentials.ts").Credentials, never>;
15
- //# sourceMappingURL=listLocations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listLocations.d.ts","sourceRoot":"","sources":["../../src/operations/listLocations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,kBAAkB;CAAG;AACtC,eAAO,MAAM,kBAAkB,EAEf,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;AAGjD,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC;AACD,eAAO,MAAM,mBAAmB,EAEf,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;AAGnD;;;;GAIG;AACH,eAAO,MAAM,aAAa,wJAGvB,CAAC"}
@@ -1,18 +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 ListLocationsInput = /*@__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/v1/locations" }));
5
- export const ListLocationsOutput = /*@__PURE__*/ Schema.Struct({
6
- locations: Schema.optional(Schema.Record(Schema.String, Schema.String)),
7
- });
8
- // The operation
9
- /**
10
- * List Locations
11
- *
12
- * Returns a list of locations where you can create or replicate databases.
13
- */
14
- export const listLocations = /*@__PURE__*/ API.make(() => ({
15
- inputSchema: ListLocationsInput,
16
- outputSchema: ListLocationsOutput,
17
- }));
18
- //# sourceMappingURL=listLocations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listLocations.js","sourceRoot":"","sources":["../../src/operations/listLocations.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,kBAAkB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CACpE,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CACF,CAAC;AAMjD,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;CACxE,CAAiD,CAAC;AAEnD,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACzD,WAAW,EAAE,kBAAkB;IAC/B,YAAY,EAAE,mBAAmB;CAClC,CAAC,CAAC,CAAC"}
@@ -1,33 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- export interface ListOrganizationAPITokensInput {
3
- organizationSlug: string;
4
- }
5
- export declare const ListOrganizationAPITokensInput: Schema.Codec<ListOrganizationAPITokensInput>;
6
- export interface ListOrganizationAPITokensOutput {
7
- tokens?: {
8
- name?: string;
9
- id?: string;
10
- organization?: string;
11
- group?: string;
12
- scopes?: string[];
13
- owner?: {
14
- username?: string;
15
- email?: string;
16
- };
17
- created_at?: string;
18
- }[];
19
- }
20
- export declare const ListOrganizationAPITokensOutput: Schema.Codec<ListOrganizationAPITokensOutput>;
21
- /**
22
- * List Organization API Tokens
23
- *
24
- * Returns the API tokens scoped to this organization (both organization-scoped and group-scoped). Unrestricted tokens are not returned here — manage those via [`GET /v1/auth/api-tokens`](/api-reference/tokens/list).
25
- * Authorization is symmetric with the revoke endpoint:
26
- * - **Admins and owners** see every token scoped to the organization, with the minting user attached in the `owner` field.
27
- * - **Members and viewers** see only tokens they minted themselves.
28
- * This mirrors the personal-access-token model used in GitHub organization settings: admins get the full attribution list; everyone else sees their own access.
29
- *
30
- * @param organizationSlug - The slug of the organization or user account.
31
- */
32
- export declare const listOrganizationAPITokens: import("@distilled.cloud/core/client").OperationMethod<ListOrganizationAPITokensInput, ListOrganizationAPITokensOutput, never, import("../credentials.ts").Credentials, never>;
33
- //# sourceMappingURL=listOrganizationAPITokens.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listOrganizationAPITokens.d.ts","sourceRoot":"","sources":["../../src/operations/listOrganizationAPITokens.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,MAAM,CAAC,EAAE;QACP,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAClB,KAAK,CAAC,EAAE;YAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,EAAE,CAAC;CACL;AACD,eAAO,MAAM,+BAA+B,EAoBzB,MAAM,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;AAGjE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,gLAGnC,CAAC"}
@@ -1,42 +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 ListOrganizationAPITokensInput =
5
- /*@__PURE__*/ Schema.Struct({
6
- organizationSlug: Schema.String.pipe(T.PathParam()),
7
- }).pipe(T.Http({
8
- method: "GET",
9
- path: "/v1/organizations/{organizationSlug}/api-tokens",
10
- }));
11
- export const ListOrganizationAPITokensOutput =
12
- /*@__PURE__*/ Schema.Struct({
13
- tokens: Schema.optional(Schema.Array(Schema.Struct({
14
- name: Schema.optional(Schema.String),
15
- id: Schema.optional(Schema.String),
16
- organization: Schema.optional(Schema.String),
17
- group: Schema.optional(Schema.String),
18
- scopes: Schema.optional(Schema.Array(Schema.String)),
19
- owner: Schema.optional(Schema.Struct({
20
- username: Schema.optional(Schema.String),
21
- email: Schema.optional(Schema.String),
22
- })),
23
- created_at: Schema.optional(Schema.String),
24
- }))),
25
- });
26
- // The operation
27
- /**
28
- * List Organization API Tokens
29
- *
30
- * Returns the API tokens scoped to this organization (both organization-scoped and group-scoped). Unrestricted tokens are not returned here — manage those via [`GET /v1/auth/api-tokens`](/api-reference/tokens/list).
31
- * Authorization is symmetric with the revoke endpoint:
32
- * - **Admins and owners** see every token scoped to the organization, with the minting user attached in the `owner` field.
33
- * - **Members and viewers** see only tokens they minted themselves.
34
- * This mirrors the personal-access-token model used in GitHub organization settings: admins get the full attribution list; everyone else sees their own access.
35
- *
36
- * @param organizationSlug - The slug of the organization or user account.
37
- */
38
- export const listOrganizationAPITokens = /*@__PURE__*/ API.make(() => ({
39
- inputSchema: ListOrganizationAPITokensInput,
40
- outputSchema: ListOrganizationAPITokensOutput,
41
- }));
42
- //# sourceMappingURL=listOrganizationAPITokens.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listOrganizationAPITokens.js","sourceRoot":"","sources":["../../src/operations/listOrganizationAPITokens.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,iDAAiD;CACxD,CAAC,CACwD,CAAC;AAc/D,MAAM,CAAC,MAAM,+BAA+B;AAC1C,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAClC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC5C,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpD,KAAK,EAAE,MAAM,CAAC,QAAQ,CACpB,MAAM,CAAC,MAAM,CAAC;YACZ,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACxC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;SACtC,CAAC,CACH;QACD,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KAC3C,CAAC,CACH,CACF;CACF,CAA6D,CAAC;AAEjE,gBAAgB;AAChB;;;;;;;;;;GAUG;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,35 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- export interface ListOrganizationAuditLogsInput {
3
- organizationSlug: string;
4
- page_size?: number;
5
- page?: number;
6
- }
7
- export declare const ListOrganizationAuditLogsInput: Schema.Codec<ListOrganizationAuditLogsInput>;
8
- export interface ListOrganizationAuditLogsOutput {
9
- audit_logs?: {
10
- code?: "user-signup" | "db-create" | "db-delete" | "db-protect" | "db-unprotect" | "db-token-create" | "group-token-create" | "user-token-create" | "instance-create" | "instance-delete" | "org-create" | "org-delete" | "org-member-add" | "org-member-rm" | "org-member-leave" | "org-plan-update" | "org-set-overages" | "group-create" | "group-delete" | "group-unarchive" | "group-protect" | "group-unprotect" | "db-aunrchive" | "user-delete";
11
- message?: string;
12
- origin?: string;
13
- author?: string;
14
- created_at?: string;
15
- data?: unknown;
16
- }[];
17
- pagination?: {
18
- page?: number;
19
- page_size?: number;
20
- total_pages?: number;
21
- total_rows?: number;
22
- };
23
- }
24
- export declare const ListOrganizationAuditLogsOutput: Schema.Codec<ListOrganizationAuditLogsOutput>;
25
- /**
26
- * List Audit Logs
27
- *
28
- * Return the audit logs for the given organization, ordered by the `created_at` field in descending order.
29
- *
30
- * @param organizationSlug - The slug of the organization or user account.
31
- * @param page_size - The limit of items to return per page. Defaults to 100.
32
- * @param page - The page number to return. Defaults to 1.
33
- */
34
- export declare const listOrganizationAuditLogs: import("@distilled.cloud/core/client").OperationMethod<ListOrganizationAuditLogsInput, ListOrganizationAuditLogsOutput, never, import("../credentials.ts").Credentials, never>;
35
- //# sourceMappingURL=listOrganizationAuditLogs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listOrganizationAuditLogs.d.ts","sourceRoot":"","sources":["../../src/operations/listOrganizationAuditLogs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,8BAA8B;IAC7C,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AACD,eAAO,MAAM,8BAA8B,EAUzB,MAAM,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;AAG/D,MAAM,WAAW,+BAA+B;IAC9C,UAAU,CAAC,EAAE;QACX,IAAI,CAAC,EACD,aAAa,GACb,WAAW,GACX,WAAW,GACX,YAAY,GACZ,cAAc,GACd,iBAAiB,GACjB,oBAAoB,GACpB,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,GACjB,YAAY,GACZ,YAAY,GACZ,gBAAgB,GAChB,eAAe,GACf,kBAAkB,GAClB,iBAAiB,GACjB,kBAAkB,GAClB,cAAc,GACd,cAAc,GACd,iBAAiB,GACjB,eAAe,GACf,iBAAiB,GACjB,cAAc,GACd,aAAa,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,IAAI,CAAC,EAAE,OAAO,CAAC;KAChB,EAAE,CAAC;IACJ,UAAU,CAAC,EAAE;QACX,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AACD,eAAO,MAAM,+BAA+B,EAiDzB,MAAM,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;AAGjE;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,gLAGnC,CAAC"}
@@ -1,69 +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 ListOrganizationAuditLogsInput =
5
- /*@__PURE__*/ Schema.Struct({
6
- organizationSlug: Schema.String.pipe(T.PathParam()),
7
- page_size: Schema.optional(Schema.Number),
8
- page: Schema.optional(Schema.Number),
9
- }).pipe(T.Http({
10
- method: "GET",
11
- path: "/v1/organizations/{organizationSlug}/audit-logs",
12
- }));
13
- export const ListOrganizationAuditLogsOutput =
14
- /*@__PURE__*/ Schema.Struct({
15
- audit_logs: Schema.optional(Schema.Array(Schema.Struct({
16
- code: Schema.optional(Schema.Literals([
17
- "user-signup",
18
- "db-create",
19
- "db-delete",
20
- "db-protect",
21
- "db-unprotect",
22
- "db-token-create",
23
- "group-token-create",
24
- "user-token-create",
25
- "instance-create",
26
- "instance-delete",
27
- "org-create",
28
- "org-delete",
29
- "org-member-add",
30
- "org-member-rm",
31
- "org-member-leave",
32
- "org-plan-update",
33
- "org-set-overages",
34
- "group-create",
35
- "group-delete",
36
- "group-unarchive",
37
- "group-protect",
38
- "group-unprotect",
39
- "db-aunrchive",
40
- "user-delete",
41
- ])),
42
- message: Schema.optional(Schema.String),
43
- origin: Schema.optional(Schema.String),
44
- author: Schema.optional(Schema.String),
45
- created_at: Schema.optional(Schema.String),
46
- data: Schema.optional(Schema.Unknown),
47
- }))),
48
- pagination: Schema.optional(Schema.Struct({
49
- page: Schema.optional(Schema.Number),
50
- page_size: Schema.optional(Schema.Number),
51
- total_pages: Schema.optional(Schema.Number),
52
- total_rows: Schema.optional(Schema.Number),
53
- })),
54
- });
55
- // The operation
56
- /**
57
- * List Audit Logs
58
- *
59
- * Return the audit logs for the given organization, ordered by the `created_at` field in descending order.
60
- *
61
- * @param organizationSlug - The slug of the organization or user account.
62
- * @param page_size - The limit of items to return per page. Defaults to 100.
63
- * @param page - The page number to return. Defaults to 1.
64
- */
65
- export const listOrganizationAuditLogs = /*@__PURE__*/ API.make(() => ({
66
- inputSchema: ListOrganizationAuditLogsInput,
67
- outputSchema: ListOrganizationAuditLogsOutput,
68
- }));
69
- //# sourceMappingURL=listOrganizationAuditLogs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listOrganizationAuditLogs.js","sourceRoot":"","sources":["../../src/operations/listOrganizationAuditLogs.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;AAQlC,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;IACnD,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACrC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,iDAAiD;CACxD,CAAC,CACwD,CAAC;AA2C/D,MAAM,CAAC,MAAM,+BAA+B;AAC1C,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC,QAAQ,CACzB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CACnB,MAAM,CAAC,QAAQ,CAAC;YACd,aAAa;YACb,WAAW;YACX,WAAW;YACX,YAAY;YACZ,cAAc;YACd,iBAAiB;YACjB,oBAAoB;YACpB,mBAAmB;YACnB,iBAAiB;YACjB,iBAAiB;YACjB,YAAY;YACZ,YAAY;YACZ,gBAAgB;YAChB,eAAe;YACf,kBAAkB;YAClB,iBAAiB;YACjB,kBAAkB;YAClB,cAAc;YACd,cAAc;YACd,iBAAiB;YACjB,eAAe;YACf,iBAAiB;YACjB,cAAc;YACd,aAAa;SACd,CAAC,CACH;QACD,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACtC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACtC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC1C,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;KACtC,CAAC,CACH,CACF;IACD,UAAU,EAAE,MAAM,CAAC,QAAQ,CACzB,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC3C,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KAC3C,CAAC,CACH;CACF,CAA6D,CAAC;AAEjE,gBAAgB;AAChB;;;;;;;;GAQG;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,64 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- export declare const ListOrganizationInvitesInput: Schema.Struct<{
3
- readonly organizationSlug: Schema.String;
4
- }>;
5
- export type ListOrganizationInvitesInput = typeof ListOrganizationInvitesInput.Type;
6
- export declare const ListOrganizationInvitesOutput: Schema.Struct<{
7
- readonly invites: Schema.optional<Schema.$Array<Schema.Struct<{
8
- readonly ID: Schema.optional<Schema.Number>;
9
- readonly CreatedAt: Schema.optional<Schema.String>;
10
- readonly UpdatedAt: Schema.optional<Schema.String>;
11
- readonly DeletedAt: Schema.optional<Schema.String>;
12
- readonly Role: Schema.optional<Schema.Literals<readonly ["admin", "member", "viewer"]>>;
13
- readonly Email: Schema.optional<Schema.String>;
14
- readonly OrganizationID: Schema.optional<Schema.Number>;
15
- readonly Token: Schema.optional<Schema.String>;
16
- readonly Organization: Schema.optional<Schema.Struct<{
17
- readonly name: Schema.optional<Schema.String>;
18
- readonly slug: Schema.optional<Schema.String>;
19
- readonly type: Schema.optional<Schema.Literals<readonly ["personal", "team"]>>;
20
- readonly overages: Schema.optional<Schema.Boolean>;
21
- readonly blocked_reads: Schema.optional<Schema.Boolean>;
22
- readonly blocked_writes: Schema.optional<Schema.Boolean>;
23
- readonly plan_id: Schema.optional<Schema.String>;
24
- readonly plan_timeline: Schema.optional<Schema.String>;
25
- readonly platform: Schema.optional<Schema.String>;
26
- }>>;
27
- readonly Accepted: Schema.optional<Schema.Boolean>;
28
- }>>>;
29
- }>;
30
- export type ListOrganizationInvitesOutput = typeof ListOrganizationInvitesOutput.Type;
31
- /**
32
- * List Invites
33
- *
34
- * Returns a list of invites for the organization.
35
- *
36
- * @param organizationSlug - The slug of the organization or user account.
37
- */
38
- export declare const listOrganizationInvites: import("@distilled.cloud/core/client").OperationMethod<Schema.Struct.ReadonlySide<{
39
- readonly organizationSlug: Schema.String;
40
- }, "Type">, {
41
- readonly invites?: readonly {
42
- readonly ID?: number | undefined;
43
- readonly CreatedAt?: string | undefined;
44
- readonly UpdatedAt?: string | undefined;
45
- readonly DeletedAt?: string | undefined;
46
- readonly Role?: "admin" | "member" | "viewer" | undefined;
47
- readonly Email?: string | undefined;
48
- readonly OrganizationID?: number | undefined;
49
- readonly Token?: string | undefined;
50
- readonly Organization?: {
51
- readonly name?: string | undefined;
52
- readonly slug?: string | undefined;
53
- readonly type?: "personal" | "team" | undefined;
54
- readonly overages?: boolean | undefined;
55
- readonly blocked_reads?: boolean | undefined;
56
- readonly blocked_writes?: boolean | undefined;
57
- readonly plan_id?: string | undefined;
58
- readonly plan_timeline?: string | undefined;
59
- readonly platform?: string | undefined;
60
- } | undefined;
61
- readonly Accepted?: boolean | undefined;
62
- }[] | undefined;
63
- }, never, import("../credentials.ts").Credentials, never>;
64
- //# sourceMappingURL=listOrganizationInvites.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listOrganizationInvites.d.ts","sourceRoot":"","sources":["../../src/operations/listOrganizationInvites.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,4BAA4B;;EAQtC,CAAC;AACJ,MAAM,MAAM,4BAA4B,GACtC,OAAO,4BAA4B,CAAC,IAAI,CAAC;AAG3C,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;EA8BtC,CAAC;AACL,MAAM,MAAM,6BAA6B,GACvC,OAAO,6BAA6B,CAAC,IAAI,CAAC;AAG5C;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;yDAGjC,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
- // Input Schema
5
- export const ListOrganizationInvitesInput =
6
- /*@__PURE__*/ Schema.Struct({
7
- organizationSlug: Schema.String.pipe(T.PathParam()),
8
- }).pipe(T.Http({
9
- method: "GET",
10
- path: "/v1/organizations/{organizationSlug}/invites",
11
- }));
12
- // Output Schema
13
- export const ListOrganizationInvitesOutput =
14
- /*@__PURE__*/ Schema.Struct({
15
- invites: Schema.optional(Schema.Array(Schema.Struct({
16
- ID: Schema.optional(Schema.Number),
17
- CreatedAt: Schema.optional(Schema.String),
18
- UpdatedAt: Schema.optional(Schema.String),
19
- DeletedAt: Schema.optional(Schema.String),
20
- Role: Schema.optional(Schema.Literals(["admin", "member", "viewer"])),
21
- Email: Schema.optional(Schema.String),
22
- OrganizationID: Schema.optional(Schema.Number),
23
- Token: Schema.optional(Schema.String),
24
- Organization: Schema.optional(Schema.Struct({
25
- name: Schema.optional(Schema.String),
26
- slug: Schema.optional(Schema.String),
27
- type: Schema.optional(Schema.Literals(["personal", "team"])),
28
- overages: Schema.optional(Schema.Boolean),
29
- blocked_reads: Schema.optional(Schema.Boolean),
30
- blocked_writes: Schema.optional(Schema.Boolean),
31
- plan_id: Schema.optional(Schema.String),
32
- plan_timeline: Schema.optional(Schema.String),
33
- platform: Schema.optional(Schema.String),
34
- })),
35
- Accepted: Schema.optional(Schema.Boolean),
36
- }))),
37
- });
38
- // The operation
39
- /**
40
- * List Invites
41
- *
42
- * Returns a list of invites for the organization.
43
- *
44
- * @param organizationSlug - The slug of the organization or user account.
45
- */
46
- export const listOrganizationInvites = /*@__PURE__*/ API.make(() => ({
47
- inputSchema: ListOrganizationInvitesInput,
48
- outputSchema: ListOrganizationInvitesOutput,
49
- }));
50
- //# sourceMappingURL=listOrganizationInvites.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listOrganizationInvites.js","sourceRoot":"","sources":["../../src/operations/listOrganizationInvites.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;AAElC,eAAe;AACf,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,CACH,CAAC;AAIJ,gBAAgB;AAChB,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,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAClC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;QACrE,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC9C,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAC3B,MAAM,CAAC,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACpC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;YAC5D,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;YACzC,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;YAC9C,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;YAC/C,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YACvC,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;YAC7C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;SACzC,CAAC,CACH;QACD,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;KAC1C,CAAC,CACH,CACF;CACF,CAAC,CAAC;AAIL,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"}