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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/lib/credentials.d.ts.map +1 -1
  2. package/lib/credentials.js +8 -0
  3. package/lib/credentials.js.map +1 -1
  4. package/lib/errors.d.ts +24 -3
  5. package/lib/errors.d.ts.map +1 -1
  6. package/lib/errors.js +13 -4
  7. package/lib/errors.js.map +1 -1
  8. package/lib/index.d.ts +8 -6
  9. package/lib/index.d.ts.map +1 -1
  10. package/lib/index.js +8 -6
  11. package/lib/index.js.map +1 -1
  12. package/lib/protocol.d.ts +18 -0
  13. package/lib/protocol.d.ts.map +1 -0
  14. package/lib/protocol.js +46 -0
  15. package/lib/protocol.js.map +1 -0
  16. package/lib/retry.d.ts +4 -4
  17. package/lib/retry.js +4 -4
  18. package/lib/services/index.d.ts +2 -0
  19. package/lib/services/index.d.ts.map +1 -0
  20. package/lib/services/index.js +3 -0
  21. package/lib/services/index.js.map +1 -0
  22. package/lib/services/turso.d.ts +1280 -0
  23. package/lib/services/turso.d.ts.map +1 -0
  24. package/lib/services/turso.js +1463 -0
  25. package/lib/services/turso.js.map +1 -0
  26. package/lib/traits.d.ts +10 -2
  27. package/lib/traits.d.ts.map +1 -1
  28. package/lib/traits.js +10 -2
  29. package/lib/traits.js.map +1 -1
  30. package/package.json +31 -37
  31. package/src/credentials.ts +8 -0
  32. package/src/errors.ts +42 -5
  33. package/src/index.ts +12 -6
  34. package/src/protocol.ts +68 -0
  35. package/src/retry.ts +4 -4
  36. package/src/services/index.ts +2 -0
  37. package/src/services/turso.ts +3426 -0
  38. package/src/traits.ts +44 -2
  39. package/README.md +0 -36
  40. package/lib/category.d.ts +0 -5
  41. package/lib/category.d.ts.map +0 -1
  42. package/lib/category.js +0 -5
  43. package/lib/category.js.map +0 -1
  44. package/lib/client.d.ts +0 -11
  45. package/lib/client.d.ts.map +0 -1
  46. package/lib/client.js +0 -59
  47. package/lib/client.js.map +0 -1
  48. package/lib/operations/addLocationToGroup.d.ts +0 -30
  49. package/lib/operations/addLocationToGroup.d.ts.map +0 -1
  50. package/lib/operations/addLocationToGroup.js +0 -40
  51. package/lib/operations/addLocationToGroup.js.map +0 -1
  52. package/lib/operations/addOrganizationMember.d.ts +0 -22
  53. package/lib/operations/addOrganizationMember.d.ts.map +0 -1
  54. package/lib/operations/addOrganizationMember.js +0 -32
  55. package/lib/operations/addOrganizationMember.js.map +0 -1
  56. package/lib/operations/createAPIToken.d.ts +0 -28
  57. package/lib/operations/createAPIToken.d.ts.map +0 -1
  58. package/lib/operations/createAPIToken.js +0 -44
  59. package/lib/operations/createAPIToken.js.map +0 -1
  60. package/lib/operations/createDatabase.d.ts +0 -35
  61. package/lib/operations/createDatabase.d.ts.map +0 -1
  62. package/lib/operations/createDatabase.js +0 -53
  63. package/lib/operations/createDatabase.js.map +0 -1
  64. package/lib/operations/createDatabaseToken.d.ts +0 -30
  65. package/lib/operations/createDatabaseToken.d.ts.map +0 -1
  66. package/lib/operations/createDatabaseToken.js +0 -40
  67. package/lib/operations/createDatabaseToken.js.map +0 -1
  68. package/lib/operations/createGroup.d.ts +0 -29
  69. package/lib/operations/createGroup.d.ts.map +0 -1
  70. package/lib/operations/createGroup.js +0 -51
  71. package/lib/operations/createGroup.js.map +0 -1
  72. package/lib/operations/createGroupToken.d.ts +0 -30
  73. package/lib/operations/createGroupToken.d.ts.map +0 -1
  74. package/lib/operations/createGroupToken.js +0 -38
  75. package/lib/operations/createGroupToken.js.map +0 -1
  76. package/lib/operations/deleteDatabase.d.ts +0 -21
  77. package/lib/operations/deleteDatabase.d.ts.map +0 -1
  78. package/lib/operations/deleteDatabase.js +0 -29
  79. package/lib/operations/deleteDatabase.js.map +0 -1
  80. package/lib/operations/deleteGroup.d.ts +0 -28
  81. package/lib/operations/deleteGroup.d.ts.map +0 -1
  82. package/lib/operations/deleteGroup.js +0 -36
  83. package/lib/operations/deleteGroup.js.map +0 -1
  84. package/lib/operations/deleteOrganizationInviteByEmail.d.ts +0 -21
  85. package/lib/operations/deleteOrganizationInviteByEmail.d.ts.map +0 -1
  86. package/lib/operations/deleteOrganizationInviteByEmail.js +0 -30
  87. package/lib/operations/deleteOrganizationInviteByEmail.js.map +0 -1
  88. package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts +0 -18
  89. package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts.map +0 -1
  90. package/lib/operations/deleteOrganizationInviteByEmailV2.js +0 -29
  91. package/lib/operations/deleteOrganizationInviteByEmailV2.js.map +0 -1
  92. package/lib/operations/getCurrentUser.d.ts +0 -23
  93. package/lib/operations/getCurrentUser.d.ts.map +0 -1
  94. package/lib/operations/getCurrentUser.js +0 -26
  95. package/lib/operations/getCurrentUser.js.map +0 -1
  96. package/lib/operations/getDatabase.d.ts +0 -36
  97. package/lib/operations/getDatabase.d.ts.map +0 -1
  98. package/lib/operations/getDatabase.js +0 -44
  99. package/lib/operations/getDatabase.js.map +0 -1
  100. package/lib/operations/getDatabaseConfiguration.d.ts +0 -27
  101. package/lib/operations/getDatabaseConfiguration.d.ts.map +0 -1
  102. package/lib/operations/getDatabaseConfiguration.js +0 -37
  103. package/lib/operations/getDatabaseConfiguration.js.map +0 -1
  104. package/lib/operations/getDatabaseInstance.d.ts +0 -29
  105. package/lib/operations/getDatabaseInstance.d.ts.map +0 -1
  106. package/lib/operations/getDatabaseInstance.js +0 -39
  107. package/lib/operations/getDatabaseInstance.js.map +0 -1
  108. package/lib/operations/getDatabaseStats.d.ts +0 -25
  109. package/lib/operations/getDatabaseStats.d.ts.map +0 -1
  110. package/lib/operations/getDatabaseStats.js +0 -33
  111. package/lib/operations/getDatabaseStats.js.map +0 -1
  112. package/lib/operations/getDatabaseUsage.d.ts +0 -42
  113. package/lib/operations/getDatabaseUsage.d.ts.map +0 -1
  114. package/lib/operations/getDatabaseUsage.js +0 -50
  115. package/lib/operations/getDatabaseUsage.js.map +0 -1
  116. package/lib/operations/getGroup.d.ts +0 -28
  117. package/lib/operations/getGroup.d.ts.map +0 -1
  118. package/lib/operations/getGroup.js +0 -36
  119. package/lib/operations/getGroup.js.map +0 -1
  120. package/lib/operations/getGroupConfiguration.d.ts +0 -21
  121. package/lib/operations/getGroupConfiguration.d.ts.map +0 -1
  122. package/lib/operations/getGroupConfiguration.js +0 -31
  123. package/lib/operations/getGroupConfiguration.js.map +0 -1
  124. package/lib/operations/getOrganization.d.ts +0 -30
  125. package/lib/operations/getOrganization.d.ts.map +0 -1
  126. package/lib/operations/getOrganization.js +0 -35
  127. package/lib/operations/getOrganization.js.map +0 -1
  128. package/lib/operations/getOrganizationMember.d.ts +0 -25
  129. package/lib/operations/getOrganizationMember.d.ts.map +0 -1
  130. package/lib/operations/getOrganizationMember.js +0 -35
  131. package/lib/operations/getOrganizationMember.js.map +0 -1
  132. package/lib/operations/getOrganizationSubscription.d.ts +0 -23
  133. package/lib/operations/getOrganizationSubscription.d.ts.map +0 -1
  134. package/lib/operations/getOrganizationSubscription.js +0 -32
  135. package/lib/operations/getOrganizationSubscription.js.map +0 -1
  136. package/lib/operations/getOrganizationUsage.d.ts +0 -47
  137. package/lib/operations/getOrganizationUsage.d.ts.map +0 -1
  138. package/lib/operations/getOrganizationUsage.js +0 -56
  139. package/lib/operations/getOrganizationUsage.js.map +0 -1
  140. package/lib/operations/index.d.ts +0 -50
  141. package/lib/operations/index.d.ts.map +0 -1
  142. package/lib/operations/index.js +0 -50
  143. package/lib/operations/index.js.map +0 -1
  144. package/lib/operations/invalidateDatabaseTokens.d.ts +0 -19
  145. package/lib/operations/invalidateDatabaseTokens.d.ts.map +0 -1
  146. package/lib/operations/invalidateDatabaseTokens.js +0 -29
  147. package/lib/operations/invalidateDatabaseTokens.js.map +0 -1
  148. package/lib/operations/invalidateGroupTokens.d.ts +0 -19
  149. package/lib/operations/invalidateGroupTokens.d.ts.map +0 -1
  150. package/lib/operations/invalidateGroupTokens.js +0 -29
  151. package/lib/operations/invalidateGroupTokens.js.map +0 -1
  152. package/lib/operations/inviteOrganizationMember.d.ts +0 -69
  153. package/lib/operations/inviteOrganizationMember.d.ts.map +0 -1
  154. package/lib/operations/inviteOrganizationMember.js +0 -54
  155. package/lib/operations/inviteOrganizationMember.js.map +0 -1
  156. package/lib/operations/inviteOrganizationMemberV2.d.ts +0 -25
  157. package/lib/operations/inviteOrganizationMemberV2.d.ts.map +0 -1
  158. package/lib/operations/inviteOrganizationMemberV2.js +0 -34
  159. package/lib/operations/inviteOrganizationMemberV2.js.map +0 -1
  160. package/lib/operations/listAPITokens.d.ts +0 -22
  161. package/lib/operations/listAPITokens.d.ts.map +0 -1
  162. package/lib/operations/listAPITokens.js +0 -25
  163. package/lib/operations/listAPITokens.js.map +0 -1
  164. package/lib/operations/listDatabaseInstances.d.ts +0 -27
  165. package/lib/operations/listDatabaseInstances.d.ts.map +0 -1
  166. package/lib/operations/listDatabaseInstances.js +0 -37
  167. package/lib/operations/listDatabaseInstances.js.map +0 -1
  168. package/lib/operations/listDatabases.d.ts +0 -39
  169. package/lib/operations/listDatabases.d.ts.map +0 -1
  170. package/lib/operations/listDatabases.js +0 -46
  171. package/lib/operations/listDatabases.js.map +0 -1
  172. package/lib/operations/listGroups.d.ts +0 -25
  173. package/lib/operations/listGroups.d.ts.map +0 -1
  174. package/lib/operations/listGroups.js +0 -32
  175. package/lib/operations/listGroups.js.map +0 -1
  176. package/lib/operations/listLocations.d.ts +0 -15
  177. package/lib/operations/listLocations.d.ts.map +0 -1
  178. package/lib/operations/listLocations.js +0 -18
  179. package/lib/operations/listLocations.js.map +0 -1
  180. package/lib/operations/listOrganizationAPITokens.d.ts +0 -33
  181. package/lib/operations/listOrganizationAPITokens.d.ts.map +0 -1
  182. package/lib/operations/listOrganizationAPITokens.js +0 -42
  183. package/lib/operations/listOrganizationAPITokens.js.map +0 -1
  184. package/lib/operations/listOrganizationAuditLogs.d.ts +0 -35
  185. package/lib/operations/listOrganizationAuditLogs.d.ts.map +0 -1
  186. package/lib/operations/listOrganizationAuditLogs.js +0 -69
  187. package/lib/operations/listOrganizationAuditLogs.js.map +0 -1
  188. package/lib/operations/listOrganizationInvites.d.ts +0 -64
  189. package/lib/operations/listOrganizationInvites.d.ts.map +0 -1
  190. package/lib/operations/listOrganizationInvites.js +0 -50
  191. package/lib/operations/listOrganizationInvites.js.map +0 -1
  192. package/lib/operations/listOrganizationInvitesV2.d.ts +0 -23
  193. package/lib/operations/listOrganizationInvitesV2.d.ts.map +0 -1
  194. package/lib/operations/listOrganizationInvitesV2.js +0 -32
  195. package/lib/operations/listOrganizationInvitesV2.js.map +0 -1
  196. package/lib/operations/listOrganizationInvoices.d.ts +0 -27
  197. package/lib/operations/listOrganizationInvoices.d.ts.map +0 -1
  198. package/lib/operations/listOrganizationInvoices.js +0 -36
  199. package/lib/operations/listOrganizationInvoices.js.map +0 -1
  200. package/lib/operations/listOrganizationMembers.d.ts +0 -22
  201. package/lib/operations/listOrganizationMembers.d.ts.map +0 -1
  202. package/lib/operations/listOrganizationMembers.js +0 -31
  203. package/lib/operations/listOrganizationMembers.js.map +0 -1
  204. package/lib/operations/listOrganizationPlans.d.ts +0 -34
  205. package/lib/operations/listOrganizationPlans.d.ts.map +0 -1
  206. package/lib/operations/listOrganizationPlans.js +0 -43
  207. package/lib/operations/listOrganizationPlans.js.map +0 -1
  208. package/lib/operations/listOrganizations.d.ts +0 -24
  209. package/lib/operations/listOrganizations.d.ts.map +0 -1
  210. package/lib/operations/listOrganizations.js +0 -27
  211. package/lib/operations/listOrganizations.js.map +0 -1
  212. package/lib/operations/removeLocationFromGroup.d.ts +0 -30
  213. package/lib/operations/removeLocationFromGroup.d.ts.map +0 -1
  214. package/lib/operations/removeLocationFromGroup.js +0 -40
  215. package/lib/operations/removeLocationFromGroup.js.map +0 -1
  216. package/lib/operations/removeOrganizationMember.d.ts +0 -21
  217. package/lib/operations/removeOrganizationMember.d.ts.map +0 -1
  218. package/lib/operations/removeOrganizationMember.js +0 -31
  219. package/lib/operations/removeOrganizationMember.js.map +0 -1
  220. package/lib/operations/revokeAPIToken.d.ts +0 -19
  221. package/lib/operations/revokeAPIToken.d.ts.map +0 -1
  222. package/lib/operations/revokeAPIToken.js +0 -24
  223. package/lib/operations/revokeAPIToken.js.map +0 -1
  224. package/lib/operations/revokeOrganizationAPIToken.d.ts +0 -25
  225. package/lib/operations/revokeOrganizationAPIToken.d.ts.map +0 -1
  226. package/lib/operations/revokeOrganizationAPIToken.js +0 -34
  227. package/lib/operations/revokeOrganizationAPIToken.js.map +0 -1
  228. package/lib/operations/transferGroup.d.ts +0 -27
  229. package/lib/operations/transferGroup.d.ts.map +0 -1
  230. package/lib/operations/transferGroup.js +0 -35
  231. package/lib/operations/transferGroup.js.map +0 -1
  232. package/lib/operations/unarchiveGroup.d.ts +0 -28
  233. package/lib/operations/unarchiveGroup.d.ts.map +0 -1
  234. package/lib/operations/unarchiveGroup.js +0 -36
  235. package/lib/operations/unarchiveGroup.js.map +0 -1
  236. package/lib/operations/updateDatabaseConfiguration.d.ts +0 -34
  237. package/lib/operations/updateDatabaseConfiguration.d.ts.map +0 -1
  238. package/lib/operations/updateDatabaseConfiguration.js +0 -44
  239. package/lib/operations/updateDatabaseConfiguration.js.map +0 -1
  240. package/lib/operations/updateGroupConfiguration.d.ts +0 -22
  241. package/lib/operations/updateGroupConfiguration.d.ts.map +0 -1
  242. package/lib/operations/updateGroupConfiguration.js +0 -32
  243. package/lib/operations/updateGroupConfiguration.js.map +0 -1
  244. package/lib/operations/updateGroupDatabases.d.ts +0 -19
  245. package/lib/operations/updateGroupDatabases.d.ts.map +0 -1
  246. package/lib/operations/updateGroupDatabases.js +0 -29
  247. package/lib/operations/updateGroupDatabases.js.map +0 -1
  248. package/lib/operations/updateMemberRole.d.ts +0 -26
  249. package/lib/operations/updateMemberRole.d.ts.map +0 -1
  250. package/lib/operations/updateMemberRole.js +0 -34
  251. package/lib/operations/updateMemberRole.js.map +0 -1
  252. package/lib/operations/updateOrganization.d.ts +0 -31
  253. package/lib/operations/updateOrganization.d.ts.map +0 -1
  254. package/lib/operations/updateOrganization.js +0 -37
  255. package/lib/operations/updateOrganization.js.map +0 -1
  256. package/lib/operations/validateAPIToken.d.ts +0 -15
  257. package/lib/operations/validateAPIToken.d.ts.map +0 -1
  258. package/lib/operations/validateAPIToken.js +0 -18
  259. package/lib/operations/validateAPIToken.js.map +0 -1
  260. package/lib/sensitive.d.ts +0 -5
  261. package/lib/sensitive.d.ts.map +0 -1
  262. package/lib/sensitive.js +0 -5
  263. package/lib/sensitive.js.map +0 -1
  264. package/src/category.ts +0 -4
  265. package/src/client.ts +0 -74
  266. package/src/operations/addLocationToGroup.ts +0 -63
  267. package/src/operations/addOrganizationMember.ts +0 -49
  268. package/src/operations/createAPIToken.ts +0 -77
  269. package/src/operations/createDatabase.ts +0 -94
  270. package/src/operations/createDatabaseToken.ts +0 -62
  271. package/src/operations/createGroup.ts +0 -92
  272. package/src/operations/createGroupToken.ts +0 -58
  273. package/src/operations/deleteDatabase.ts +0 -42
  274. package/src/operations/deleteGroup.ts +0 -58
  275. package/src/operations/deleteOrganizationInviteByEmail.ts +0 -38
  276. package/src/operations/deleteOrganizationInviteByEmailV2.ts +0 -40
  277. package/src/operations/getCurrentUser.ts +0 -46
  278. package/src/operations/getDatabase.ts +0 -74
  279. package/src/operations/getDatabaseConfiguration.ts +0 -56
  280. package/src/operations/getDatabaseInstance.ts +0 -61
  281. package/src/operations/getDatabaseStats.ts +0 -54
  282. package/src/operations/getDatabaseUsage.ts +0 -92
  283. package/src/operations/getGroup.ts +0 -58
  284. package/src/operations/getGroupConfiguration.ts +0 -44
  285. package/src/operations/getOrganization.ts +0 -60
  286. package/src/operations/getOrganizationMember.ts +0 -56
  287. package/src/operations/getOrganizationSubscription.ts +0 -51
  288. package/src/operations/getOrganizationUsage.ts +0 -113
  289. package/src/operations/index.ts +0 -49
  290. package/src/operations/invalidateDatabaseTokens.ts +0 -40
  291. package/src/operations/invalidateGroupTokens.ts +0 -40
  292. package/src/operations/inviteOrganizationMember.ts +0 -66
  293. package/src/operations/inviteOrganizationMemberV2.ts +0 -55
  294. package/src/operations/listAPITokens.ts +0 -46
  295. package/src/operations/listDatabaseInstances.ts +0 -60
  296. package/src/operations/listDatabases.ts +0 -80
  297. package/src/operations/listGroups.ts +0 -55
  298. package/src/operations/listLocations.ts +0 -28
  299. package/src/operations/listOrganizationAPITokens.ts +0 -68
  300. package/src/operations/listOrganizationAuditLogs.ts +0 -128
  301. package/src/operations/listOrganizationInvites.ts +0 -64
  302. package/src/operations/listOrganizationInvitesV2.ts +0 -53
  303. package/src/operations/listOrganizationInvoices.ts +0 -60
  304. package/src/operations/listOrganizationMembers.ts +0 -53
  305. package/src/operations/listOrganizationPlans.ts +0 -78
  306. package/src/operations/listOrganizations.ts +0 -48
  307. package/src/operations/removeLocationFromGroup.ts +0 -63
  308. package/src/operations/removeOrganizationMember.ts +0 -44
  309. package/src/operations/revokeAPIToken.ts +0 -36
  310. package/src/operations/revokeOrganizationAPIToken.ts +0 -47
  311. package/src/operations/transferGroup.ts +0 -54
  312. package/src/operations/unarchiveGroup.ts +0 -58
  313. package/src/operations/updateDatabaseConfiguration.ts +0 -70
  314. package/src/operations/updateGroupConfiguration.ts +0 -46
  315. package/src/operations/updateGroupDatabases.ts +0 -40
  316. package/src/operations/updateMemberRole.ts +0 -54
  317. package/src/operations/updateOrganization.ts +0 -64
  318. package/src/operations/validateAPIToken.ts +0 -28
  319. package/src/sensitive.ts +0 -4
@@ -1,51 +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, Conflict } from "../errors.js";
5
- export const CreateGroupInput = /*@__PURE__*/ Schema.Struct({
6
- organizationSlug: Schema.String.pipe(T.PathParam()),
7
- name: Schema.String,
8
- location: Schema.String,
9
- extensions: Schema.optional(Schema.Union([
10
- Schema.Literals(["all"]),
11
- Schema.Array(Schema.Literals([
12
- "vector",
13
- "crypto",
14
- "fuzzy",
15
- "math",
16
- "stats",
17
- "text",
18
- "unicode",
19
- "uuid",
20
- "regexp",
21
- "vec",
22
- ])),
23
- ])),
24
- }).pipe(T.Http({
25
- method: "POST",
26
- path: "/v1/organizations/{organizationSlug}/groups",
27
- }));
28
- export const CreateGroupOutput = /*@__PURE__*/ Schema.Struct({
29
- group: Schema.optional(Schema.Struct({
30
- name: Schema.optional(Schema.String),
31
- version: Schema.optional(Schema.String),
32
- uuid: Schema.optional(Schema.String),
33
- locations: Schema.optional(Schema.Array(Schema.String)),
34
- primary: Schema.optional(Schema.String),
35
- delete_protection: Schema.optional(Schema.Boolean),
36
- })),
37
- });
38
- // The operation
39
- /**
40
- * Create Group
41
- *
42
- * Creates a new group for the organization or user.
43
- *
44
- * @param organizationSlug - The slug of the organization or user account.
45
- */
46
- export const createGroup = /*@__PURE__*/ API.make(() => ({
47
- inputSchema: CreateGroupInput,
48
- outputSchema: CreateGroupOutput,
49
- errors: [BadRequest, Conflict],
50
- }));
51
- //# sourceMappingURL=createGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createGroup.js","sourceRoot":"","sources":["../../src/operations/createGroup.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;AAsBpD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1D,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,QAAQ,EAAE,MAAM,CAAC,MAAM;IACvB,UAAU,EAAE,MAAM,CAAC,QAAQ,CACzB,MAAM,CAAC,KAAK,CAA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C,CAAC,CAAC,CAAC"}
@@ -1,30 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { BadRequest, NotFound } from "../errors.ts";
3
- export interface CreateGroupTokenInput {
4
- organizationSlug: string;
5
- groupName: string;
6
- expiration?: string;
7
- authorization?: "full-access" | "read-only";
8
- permissions?: {
9
- read_attach?: {
10
- databases?: string[];
11
- };
12
- };
13
- }
14
- export declare const CreateGroupTokenInput: Schema.Codec<CreateGroupTokenInput>;
15
- export interface CreateGroupTokenOutput {
16
- jwt?: string;
17
- }
18
- export declare const CreateGroupTokenOutput: Schema.Codec<CreateGroupTokenOutput>;
19
- /**
20
- * Create Group Auth Token
21
- *
22
- * Generates an authorization token for the specified group.
23
- *
24
- * @param organizationSlug - The slug of the organization or user account.
25
- * @param groupName - The name of the group.
26
- * @param expiration - Expiration time for the token (e.g., 2w1d30m).
27
- * @param authorization - Authorization level for the token (full-access or read-only).
28
- */
29
- export declare const createGroupToken: import("@distilled.cloud/core/client").OperationMethod<CreateGroupTokenInput, CreateGroupTokenOutput, BadRequest | NotFound, import("../credentials.ts").Credentials, never>;
30
- //# sourceMappingURL=createGroupToken.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createGroupToken.d.ts","sourceRoot":"","sources":["../../src/operations/createGroupToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,GAAG,WAAW,CAAC;IAC5C,WAAW,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE;YAAE,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;SAAE,CAAA;KAAE,CAAC;CAC1D;AACD,eAAO,MAAM,qBAAqB,EAmBlB,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAGpD,MAAM,WAAW,sBAAsB;IACrC,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AACD,eAAO,MAAM,sBAAsB,EAElB,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAGtD;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,8KAI1B,CAAC"}
@@ -1,38 +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 CreateGroupTokenInput = /*@__PURE__*/ Schema.Struct({
6
- organizationSlug: Schema.String.pipe(T.PathParam()),
7
- groupName: Schema.String.pipe(T.PathParam()),
8
- expiration: Schema.optional(Schema.String),
9
- authorization: Schema.optional(Schema.Literals(["full-access", "read-only"])),
10
- permissions: Schema.optional(Schema.Struct({
11
- read_attach: Schema.optional(Schema.Struct({
12
- databases: Schema.optional(Schema.Array(Schema.String)),
13
- })),
14
- })),
15
- }).pipe(T.Http({
16
- method: "POST",
17
- path: "/v1/organizations/{organizationSlug}/groups/{groupName}/auth/tokens",
18
- }));
19
- export const CreateGroupTokenOutput = /*@__PURE__*/ Schema.Struct({
20
- jwt: Schema.optional(Schema.String),
21
- });
22
- // The operation
23
- /**
24
- * Create Group Auth Token
25
- *
26
- * Generates an authorization token for the specified group.
27
- *
28
- * @param organizationSlug - The slug of the organization or user account.
29
- * @param groupName - The name of the group.
30
- * @param expiration - Expiration time for the token (e.g., 2w1d30m).
31
- * @param authorization - Authorization level for the token (full-access or read-only).
32
- */
33
- export const createGroupToken = /*@__PURE__*/ API.make(() => ({
34
- inputSchema: CreateGroupTokenInput,
35
- outputSchema: CreateGroupTokenOutput,
36
- errors: [BadRequest, NotFound],
37
- }));
38
- //# sourceMappingURL=createGroupToken.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createGroupToken.js","sourceRoot":"","sources":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AChB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5D,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,sBAAsB;IACpC,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAU;CACxC,CAAC,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { NotFound } from "../errors.ts";
3
- export interface DeleteDatabaseInput {
4
- organizationSlug: string;
5
- databaseName: string;
6
- }
7
- export declare const DeleteDatabaseInput: Schema.Codec<DeleteDatabaseInput>;
8
- export interface DeleteDatabaseOutput {
9
- database?: string;
10
- }
11
- export declare const DeleteDatabaseOutput: Schema.Codec<DeleteDatabaseOutput>;
12
- /**
13
- * Delete Database
14
- *
15
- * Delete a database belonging to the organization or user.
16
- *
17
- * @param organizationSlug - The slug of the organization or user account.
18
- * @param databaseName - The name of the database.
19
- */
20
- export declare const deleteDatabase: import("@distilled.cloud/core/client").OperationMethod<DeleteDatabaseInput, DeleteDatabaseOutput, NotFound, import("../credentials.ts").Credentials, never>;
21
- //# sourceMappingURL=deleteDatabase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deleteDatabase.d.ts","sourceRoot":"","sources":["../../src/operations/deleteDatabase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;CACtB;AACD,eAAO,MAAM,mBAAmB,EAQhB,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;AAGlD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,eAAO,MAAM,oBAAoB,EAEhB,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;AAGpD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,6JAIxB,CAAC"}
@@ -1,29 +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 DeleteDatabaseInput = /*@__PURE__*/ Schema.Struct({
6
- organizationSlug: Schema.String.pipe(T.PathParam()),
7
- databaseName: Schema.String.pipe(T.PathParam()),
8
- }).pipe(T.Http({
9
- method: "DELETE",
10
- path: "/v1/organizations/{organizationSlug}/databases/{databaseName}",
11
- }));
12
- export const DeleteDatabaseOutput = /*@__PURE__*/ Schema.Struct({
13
- database: Schema.optional(Schema.String),
14
- });
15
- // The operation
16
- /**
17
- * Delete Database
18
- *
19
- * Delete a database belonging to the organization or user.
20
- *
21
- * @param organizationSlug - The slug of the organization or user account.
22
- * @param databaseName - The name of the database.
23
- */
24
- export const deleteDatabase = /*@__PURE__*/ API.make(() => ({
25
- inputSchema: DeleteDatabaseInput,
26
- outputSchema: DeleteDatabaseOutput,
27
- errors: [NotFound],
28
- }));
29
- //# sourceMappingURL=deleteDatabase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deleteDatabase.js","sourceRoot":"","sources":["../../src/operations/deleteDatabase.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,mBAAmB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7D,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,QAAQ;IAChB,IAAI,EAAE,+DAA+D;CACtE,CAAC,CAC6C,CAAC;AAMlD,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC9D,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACzC,CAAkD,CAAC;AAEpD,gBAAgB;AAChB;;;;;;;GAOG;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,28 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { NotFound } from "../errors.ts";
3
- export interface DeleteGroupInput {
4
- organizationSlug: string;
5
- groupName: string;
6
- }
7
- export declare const DeleteGroupInput: Schema.Codec<DeleteGroupInput>;
8
- export interface DeleteGroupOutput {
9
- group?: {
10
- name?: string;
11
- version?: string;
12
- uuid?: string;
13
- locations?: string[];
14
- primary?: string;
15
- delete_protection?: boolean;
16
- };
17
- }
18
- export declare const DeleteGroupOutput: Schema.Codec<DeleteGroupOutput>;
19
- /**
20
- * Delete Group
21
- *
22
- * Delete a group belonging to the organization or user.
23
- *
24
- * @param organizationSlug - The slug of the organization or user account.
25
- * @param groupName - The name of the group.
26
- */
27
- export declare const deleteGroup: import("@distilled.cloud/core/client").OperationMethod<DeleteGroupInput, DeleteGroupOutput, NotFound, import("../credentials.ts").Credentials, never>;
28
- //# sourceMappingURL=deleteGroup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deleteGroup.d.ts","sourceRoot":"","sources":["../../src/operations/deleteGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,eAAO,MAAM,gBAAgB,EAQb,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;AAG/C,MAAM,WAAW,iBAAiB;IAChC,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,iBAAiB,EAWb,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAGjD;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,uJAIrB,CAAC"}
@@ -1,36 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { API } from "../client.js";
3
- import * as T from "../traits.js";
4
- import { NotFound } from "../errors.js";
5
- export const DeleteGroupInput = /*@__PURE__*/ Schema.Struct({
6
- organizationSlug: Schema.String.pipe(T.PathParam()),
7
- groupName: Schema.String.pipe(T.PathParam()),
8
- }).pipe(T.Http({
9
- method: "DELETE",
10
- path: "/v1/organizations/{organizationSlug}/groups/{groupName}",
11
- }));
12
- export const DeleteGroupOutput = /*@__PURE__*/ Schema.Struct({
13
- group: Schema.optional(Schema.Struct({
14
- name: Schema.optional(Schema.String),
15
- version: Schema.optional(Schema.String),
16
- uuid: Schema.optional(Schema.String),
17
- locations: Schema.optional(Schema.Array(Schema.String)),
18
- primary: Schema.optional(Schema.String),
19
- delete_protection: Schema.optional(Schema.Boolean),
20
- })),
21
- });
22
- // The operation
23
- /**
24
- * Delete Group
25
- *
26
- * Delete a group belonging to the organization or user.
27
- *
28
- * @param organizationSlug - The slug of the organization or user account.
29
- * @param groupName - The name of the group.
30
- */
31
- export const deleteGroup = /*@__PURE__*/ API.make(() => ({
32
- inputSchema: DeleteGroupInput,
33
- outputSchema: DeleteGroupOutput,
34
- errors: [NotFound],
35
- }));
36
- //# sourceMappingURL=deleteGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deleteGroup.js","sourceRoot":"","sources":["../../src/operations/deleteGroup.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,gBAAgB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1D,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC7C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,yDAAyD;CAChE,CAAC,CAC0C,CAAC;AAa/C,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3D,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,CAA+C,CAAC;AAEjD,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACvD,WAAW,EAAE,gBAAgB;IAC7B,YAAY,EAAE,iBAAiB;IAC/B,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { NotFound } from "../errors.ts";
3
- export declare const DeleteOrganizationInviteByEmailInput: Schema.Struct<{
4
- readonly organizationSlug: Schema.String;
5
- readonly email: Schema.String;
6
- }>;
7
- export type DeleteOrganizationInviteByEmailInput = typeof DeleteOrganizationInviteByEmailInput.Type;
8
- export declare const DeleteOrganizationInviteByEmailOutput: Schema.Void;
9
- export type DeleteOrganizationInviteByEmailOutput = typeof DeleteOrganizationInviteByEmailOutput.Type;
10
- /**
11
- * Delete Invite
12
- *
13
- * Delete an invite for the organization by email.
14
- *
15
- * @param organizationSlug - The slug of the organization or user account.
16
- */
17
- export declare const deleteOrganizationInviteByEmail: import("@distilled.cloud/core/client").OperationMethod<Schema.Struct.ReadonlySide<{
18
- readonly organizationSlug: Schema.String;
19
- readonly email: Schema.String;
20
- }, "Type">, void, NotFound, import("../credentials.ts").Credentials, never>;
21
- //# sourceMappingURL=deleteOrganizationInviteByEmail.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deleteOrganizationInviteByEmail.d.ts","sourceRoot":"","sources":["../../src/operations/deleteOrganizationInviteByEmail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,eAAO,MAAM,oCAAoC;;;EAS9C,CAAC;AACJ,MAAM,MAAM,oCAAoC,GAC9C,OAAO,oCAAoC,CAAC,IAAI,CAAC;AAGnD,eAAO,MAAM,qCAAqC,aAA4B,CAAC;AAC/E,MAAM,MAAM,qCAAqC,GAC/C,OAAO,qCAAqC,CAAC,IAAI,CAAC;AAGpD;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B;;;2EAKvC,CAAC"}
@@ -1,30 +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
- // Input Schema
6
- export const DeleteOrganizationInviteByEmailInput =
7
- /*@__PURE__*/ Schema.Struct({
8
- organizationSlug: Schema.String.pipe(T.PathParam()),
9
- email: Schema.String.pipe(T.PathParam()),
10
- }).pipe(T.Http({
11
- method: "DELETE",
12
- path: "/v1/organizations/{organizationSlug}/invites/{email}",
13
- }));
14
- // Output Schema
15
- export const DeleteOrganizationInviteByEmailOutput = /*@__PURE__*/ Schema.Void;
16
- // The operation
17
- /**
18
- * Delete Invite
19
- *
20
- * Delete an invite for the organization by email.
21
- *
22
- * @param organizationSlug - The slug of the organization or user account.
23
- */
24
- export const deleteOrganizationInviteByEmail =
25
- /*@__PURE__*/ API.make(() => ({
26
- inputSchema: DeleteOrganizationInviteByEmailInput,
27
- outputSchema: DeleteOrganizationInviteByEmailOutput,
28
- errors: [NotFound],
29
- }));
30
- //# sourceMappingURL=deleteOrganizationInviteByEmail.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deleteOrganizationInviteByEmail.js","sourceRoot":"","sources":["../../src/operations/deleteOrganizationInviteByEmail.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;AAExC,eAAe;AACf,MAAM,CAAC,MAAM,oCAAoC;AAC/C,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CACzC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,sDAAsD;CAC7D,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC;AAI/E,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,+BAA+B;AAC1C,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5B,WAAW,EAAE,oCAAoC;IACjD,YAAY,EAAE,qCAAqC;IACnD,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
@@ -1,18 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { NotFound } from "../errors.ts";
3
- export interface DeleteOrganizationInviteByEmailV2Input {
4
- organizationSlug: string;
5
- email: string;
6
- }
7
- export declare const DeleteOrganizationInviteByEmailV2Input: Schema.Codec<DeleteOrganizationInviteByEmailV2Input>;
8
- export type DeleteOrganizationInviteByEmailV2Output = void;
9
- export declare const DeleteOrganizationInviteByEmailV2Output: Schema.Codec<DeleteOrganizationInviteByEmailV2Output>;
10
- /**
11
- * Delete Invite
12
- *
13
- * Delete a pending invite for the organization by email.
14
- *
15
- * @param organizationSlug - The slug of the organization or user account.
16
- */
17
- export declare const deleteOrganizationInviteByEmailV2: import("@distilled.cloud/core/client").OperationMethod<DeleteOrganizationInviteByEmailV2Input, void, NotFound, import("../credentials.ts").Credentials, never>;
18
- //# sourceMappingURL=deleteOrganizationInviteByEmailV2.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deleteOrganizationInviteByEmailV2.d.ts","sourceRoot":"","sources":["../../src/operations/deleteOrganizationInviteByEmailV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,WAAW,sCAAsC;IACrD,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;CACf;AACD,eAAO,MAAM,sCAAsC,EASjC,MAAM,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;AAGvE,MAAM,MAAM,uCAAuC,GAAG,IAAI,CAAC;AAC3D,eAAO,MAAM,uCAAuC,EACV,MAAM,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAC;AAGhG;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,gKAKzC,CAAC"}
@@ -1,29 +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 DeleteOrganizationInviteByEmailV2Input =
6
- /*@__PURE__*/ Schema.Struct({
7
- organizationSlug: Schema.String.pipe(T.PathParam()),
8
- email: Schema.String.pipe(T.PathParam()),
9
- }).pipe(T.Http({
10
- method: "DELETE",
11
- path: "/v2/organizations/{organizationSlug}/invites/{email}",
12
- }));
13
- export const DeleteOrganizationInviteByEmailV2Output =
14
- /*@__PURE__*/ Schema.Void;
15
- // The operation
16
- /**
17
- * Delete Invite
18
- *
19
- * Delete a pending invite for the organization by email.
20
- *
21
- * @param organizationSlug - The slug of the organization or user account.
22
- */
23
- export const deleteOrganizationInviteByEmailV2 =
24
- /*@__PURE__*/ API.make(() => ({
25
- inputSchema: DeleteOrganizationInviteByEmailV2Input,
26
- outputSchema: DeleteOrganizationInviteByEmailV2Output,
27
- errors: [NotFound],
28
- }));
29
- //# sourceMappingURL=deleteOrganizationInviteByEmailV2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deleteOrganizationInviteByEmailV2.js","sourceRoot":"","sources":["../../src/operations/deleteOrganizationInviteByEmailV2.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,sCAAsC;AACjD,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CACzC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,sDAAsD;CAC7D,CAAC,CACgE,CAAC;AAIvE,MAAM,CAAC,MAAM,uCAAuC;AAClD,aAAa,CAAC,MAAM,CAAC,IAAwE,CAAC;AAEhG,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iCAAiC;AAC5C,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5B,WAAW,EAAE,sCAAsC;IACnD,YAAY,EAAE,uCAAuC;IACrD,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
@@ -1,23 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- export interface GetCurrentUserInput {
3
- }
4
- export declare const GetCurrentUserInput: Schema.Codec<GetCurrentUserInput>;
5
- export interface GetCurrentUserOutput {
6
- user?: {
7
- username?: string;
8
- name?: string;
9
- email?: string;
10
- avatarUrl?: string;
11
- plan?: string;
12
- mfa?: boolean;
13
- has_pending_invites?: boolean;
14
- };
15
- }
16
- export declare const GetCurrentUserOutput: Schema.Codec<GetCurrentUserOutput>;
17
- /**
18
- * Get Current User
19
- *
20
- * Returns information about the currently authenticated user.
21
- */
22
- export declare const getCurrentUser: import("@distilled.cloud/core/client").OperationMethod<GetCurrentUserInput, GetCurrentUserOutput, never, import("../credentials.ts").Credentials, never>;
23
- //# sourceMappingURL=getCurrentUser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCurrentUser.d.ts","sourceRoot":"","sources":["../../src/operations/getCurrentUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,mBAAmB;CAAG;AACvC,eAAO,MAAM,mBAAmB,EAEhB,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;AAGlD,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE;QACL,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,OAAO,CAAC;QACd,mBAAmB,CAAC,EAAE,OAAO,CAAC;KAC/B,CAAC;CACH;AACD,eAAO,MAAM,oBAAoB,EAYhB,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;AAGpD;;;;GAIG;AACH,eAAO,MAAM,cAAc,0JAGxB,CAAC"}
@@ -1,26 +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 GetCurrentUserInput = /*@__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/v1/user" }));
5
- export const GetCurrentUserOutput = /*@__PURE__*/ Schema.Struct({
6
- user: Schema.optional(Schema.Struct({
7
- username: Schema.optional(Schema.String),
8
- name: Schema.optional(Schema.String),
9
- email: Schema.optional(Schema.String),
10
- avatarUrl: Schema.optional(Schema.String),
11
- plan: Schema.optional(Schema.String),
12
- mfa: Schema.optional(Schema.Boolean),
13
- has_pending_invites: Schema.optional(Schema.Boolean),
14
- })),
15
- });
16
- // The operation
17
- /**
18
- * Get Current User
19
- *
20
- * Returns information about the currently authenticated user.
21
- */
22
- export const getCurrentUser = /*@__PURE__*/ API.make(() => ({
23
- inputSchema: GetCurrentUserInput,
24
- outputSchema: GetCurrentUserOutput,
25
- }));
26
- //# sourceMappingURL=getCurrentUser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCurrentUser.js","sourceRoot":"","sources":["../../src/operations/getCurrentUser.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,mBAAmB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CACrE,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CACI,CAAC;AAclD,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC9D,IAAI,EAAE,MAAM,CAAC,QAAQ,CACnB,MAAM,CAAC,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACxC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;QACpC,mBAAmB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;KACrD,CAAC,CACH;CACF,CAAkD,CAAC;AAEpD,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1D,WAAW,EAAE,mBAAmB;IAChC,YAAY,EAAE,oBAAoB;CACnC,CAAC,CAAC,CAAC"}
@@ -1,36 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { NotFound } from "../errors.ts";
3
- export interface GetDatabaseInput {
4
- organizationSlug: string;
5
- databaseName: string;
6
- }
7
- export declare const GetDatabaseInput: Schema.Codec<GetDatabaseInput>;
8
- export interface GetDatabaseOutput {
9
- database?: {
10
- Name?: string;
11
- DbId?: string;
12
- Hostname?: string;
13
- block_reads?: boolean;
14
- block_writes?: boolean;
15
- regions?: string[];
16
- primaryRegion?: string;
17
- group?: string;
18
- delete_protection?: boolean;
19
- parent?: {
20
- id?: string;
21
- name?: string;
22
- branched_at?: string;
23
- } | null;
24
- };
25
- }
26
- export declare const GetDatabaseOutput: Schema.Codec<GetDatabaseOutput>;
27
- /**
28
- * Retrieve Database
29
- *
30
- * Returns a database belonging to the organization or user.
31
- *
32
- * @param organizationSlug - The slug of the organization or user account.
33
- * @param databaseName - The name of the database.
34
- */
35
- export declare const getDatabase: import("@distilled.cloud/core/client").OperationMethod<GetDatabaseInput, GetDatabaseOutput, NotFound, import("../credentials.ts").Credentials, never>;
36
- //# sourceMappingURL=getDatabase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDatabase.d.ts","sourceRoot":"","sources":["../../src/operations/getDatabase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;CACtB;AACD,eAAO,MAAM,gBAAgB,EAQb,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;AAG/C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE;QACT,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,CAAC;CACH;AACD,eAAO,MAAM,iBAAiB,EAuBb,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAGjD;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,uJAIrB,CAAC"}
@@ -1,44 +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 GetDatabaseInput = /*@__PURE__*/ Schema.Struct({
6
- organizationSlug: Schema.String.pipe(T.PathParam()),
7
- databaseName: Schema.String.pipe(T.PathParam()),
8
- }).pipe(T.Http({
9
- method: "GET",
10
- path: "/v1/organizations/{organizationSlug}/databases/{databaseName}",
11
- }));
12
- export const GetDatabaseOutput = /*@__PURE__*/ Schema.Struct({
13
- database: Schema.optional(Schema.Struct({
14
- Name: Schema.optional(Schema.String),
15
- DbId: Schema.optional(Schema.String),
16
- Hostname: Schema.optional(Schema.String),
17
- block_reads: Schema.optional(Schema.Boolean),
18
- block_writes: Schema.optional(Schema.Boolean),
19
- regions: Schema.optional(Schema.Array(Schema.String)),
20
- primaryRegion: Schema.optional(Schema.String),
21
- group: Schema.optional(Schema.String),
22
- delete_protection: Schema.optional(Schema.Boolean),
23
- parent: Schema.optional(Schema.NullOr(Schema.Struct({
24
- id: Schema.optional(Schema.String),
25
- name: Schema.optional(Schema.String),
26
- branched_at: Schema.optional(Schema.String),
27
- }))),
28
- })),
29
- });
30
- // The operation
31
- /**
32
- * Retrieve Database
33
- *
34
- * Returns a database belonging to the organization or user.
35
- *
36
- * @param organizationSlug - The slug of the organization or user account.
37
- * @param databaseName - The name of the database.
38
- */
39
- export const getDatabase = /*@__PURE__*/ API.make(() => ({
40
- inputSchema: GetDatabaseInput,
41
- outputSchema: GetDatabaseOutput,
42
- errors: [NotFound],
43
- }));
44
- //# sourceMappingURL=getDatabase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDatabase.js","sourceRoot":"","sources":["../../src/operations/getDatabase.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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AAM,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,CAA+C,CAAC;AAEjD,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACvD,WAAW,EAAE,gBAAgB;IAC7B,YAAY,EAAE,iBAAiB;IAC/B,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
@@ -1,27 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { NotFound } from "../errors.ts";
3
- export interface GetDatabaseConfigurationInput {
4
- organizationSlug: string;
5
- databaseName: string;
6
- }
7
- export declare const GetDatabaseConfigurationInput: Schema.Codec<GetDatabaseConfigurationInput>;
8
- export interface GetDatabaseConfigurationOutput {
9
- size_limit?: string;
10
- allow_attach?: boolean;
11
- block_reads?: boolean;
12
- block_writes?: boolean;
13
- delete_protection?: boolean;
14
- allowed_ips?: string[];
15
- allowed_aws_vpc_ids?: string[];
16
- }
17
- export declare const GetDatabaseConfigurationOutput: Schema.Codec<GetDatabaseConfigurationOutput>;
18
- /**
19
- * Retrieve Database Configuration
20
- *
21
- * Retrieve an individual database configuration belonging to the organization or user.
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 getDatabaseConfiguration: import("@distilled.cloud/core/client").OperationMethod<GetDatabaseConfigurationInput, GetDatabaseConfigurationOutput, NotFound, import("../credentials.ts").Credentials, never>;
27
- //# sourceMappingURL=getDatabaseConfiguration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDatabaseConfiguration.d.ts","sourceRoot":"","sources":["../../src/operations/getDatabaseConfiguration.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,YAAY,EAAE,MAAM,CAAC;CACtB;AACD,eAAO,MAAM,6BAA6B,EASxB,MAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAG9D,MAAM,WAAW,8BAA8B;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AACD,eAAO,MAAM,8BAA8B,EASxB,MAAM,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;AAGhE;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,iLAIlC,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 GetDatabaseConfigurationInput =
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}/configuration",
12
- }));
13
- export const GetDatabaseConfigurationOutput =
14
- /*@__PURE__*/ Schema.Struct({
15
- size_limit: Schema.optional(Schema.String),
16
- allow_attach: Schema.optional(Schema.Boolean),
17
- block_reads: Schema.optional(Schema.Boolean),
18
- block_writes: Schema.optional(Schema.Boolean),
19
- delete_protection: Schema.optional(Schema.Boolean),
20
- allowed_ips: Schema.optional(Schema.Array(Schema.String)),
21
- allowed_aws_vpc_ids: Schema.optional(Schema.Array(Schema.String)),
22
- });
23
- // The operation
24
- /**
25
- * Retrieve Database Configuration
26
- *
27
- * Retrieve an individual database configuration belonging to the organization or user.
28
- *
29
- * @param organizationSlug - The slug of the organization or user account.
30
- * @param databaseName - The name of the database.
31
- */
32
- export const getDatabaseConfiguration = /*@__PURE__*/ API.make(() => ({
33
- inputSchema: GetDatabaseConfigurationInput,
34
- outputSchema: GetDatabaseConfigurationOutput,
35
- errors: [NotFound],
36
- }));
37
- //# sourceMappingURL=getDatabaseConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDatabaseConfiguration.js","sourceRoot":"","sources":["../../src/operations/getDatabaseConfiguration.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,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,6EAA6E;CACpF,CAAC,CACuD,CAAC;AAY9D,MAAM,CAAC,MAAM,8BAA8B;AACzC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CA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