@distilled.cloud/turso 0.27.0 → 0.28.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 (251) hide show
  1. package/lib/operations/addLocationToGroup.d.ts +18 -31
  2. package/lib/operations/addLocationToGroup.d.ts.map +1 -1
  3. package/lib/operations/addLocationToGroup.js +0 -2
  4. package/lib/operations/addLocationToGroup.js.map +1 -1
  5. package/lib/operations/addOrganizationMember.d.ts +12 -19
  6. package/lib/operations/addOrganizationMember.d.ts.map +1 -1
  7. package/lib/operations/addOrganizationMember.js +0 -2
  8. package/lib/operations/addOrganizationMember.js.map +1 -1
  9. package/lib/operations/createAPIToken.d.ts +20 -20
  10. package/lib/operations/createAPIToken.d.ts.map +1 -1
  11. package/lib/operations/createAPIToken.js +20 -3
  12. package/lib/operations/createAPIToken.js.map +1 -1
  13. package/lib/operations/createDatabase.d.ts +25 -45
  14. package/lib/operations/createDatabase.d.ts.map +1 -1
  15. package/lib/operations/createDatabase.js +0 -2
  16. package/lib/operations/createDatabase.js.map +1 -1
  17. package/lib/operations/createDatabaseToken.d.ts +17 -29
  18. package/lib/operations/createDatabaseToken.d.ts.map +1 -1
  19. package/lib/operations/createDatabaseToken.js +0 -2
  20. package/lib/operations/createDatabaseToken.js.map +1 -1
  21. package/lib/operations/createGroup.d.ts +19 -33
  22. package/lib/operations/createGroup.d.ts.map +1 -1
  23. package/lib/operations/createGroup.js +15 -3
  24. package/lib/operations/createGroup.js.map +1 -1
  25. package/lib/operations/createGroupToken.d.ts +17 -29
  26. package/lib/operations/createGroupToken.d.ts.map +1 -1
  27. package/lib/operations/createGroupToken.js +0 -2
  28. package/lib/operations/createGroupToken.js.map +1 -1
  29. package/lib/operations/deleteDatabase.d.ts +10 -15
  30. package/lib/operations/deleteDatabase.d.ts.map +1 -1
  31. package/lib/operations/deleteDatabase.js +0 -2
  32. package/lib/operations/deleteDatabase.js.map +1 -1
  33. package/lib/operations/deleteGroup.d.ts +17 -29
  34. package/lib/operations/deleteGroup.d.ts.map +1 -1
  35. package/lib/operations/deleteGroup.js +0 -2
  36. package/lib/operations/deleteGroup.js.map +1 -1
  37. package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts +8 -11
  38. package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts.map +1 -1
  39. package/lib/operations/deleteOrganizationInviteByEmailV2.js +0 -2
  40. package/lib/operations/deleteOrganizationInviteByEmailV2.js.map +1 -1
  41. package/lib/operations/getCurrentUser.d.ts +16 -25
  42. package/lib/operations/getCurrentUser.d.ts.map +1 -1
  43. package/lib/operations/getCurrentUser.js +0 -2
  44. package/lib/operations/getCurrentUser.js.map +1 -1
  45. package/lib/operations/getDatabase.d.ts +25 -45
  46. package/lib/operations/getDatabase.d.ts.map +1 -1
  47. package/lib/operations/getDatabase.js +0 -2
  48. package/lib/operations/getDatabase.js.map +1 -1
  49. package/lib/operations/getDatabaseConfiguration.d.ts +16 -23
  50. package/lib/operations/getDatabaseConfiguration.d.ts.map +1 -1
  51. package/lib/operations/getDatabaseConfiguration.js +2 -2
  52. package/lib/operations/getDatabaseConfiguration.js.map +1 -1
  53. package/lib/operations/getDatabaseInstance.d.ts +17 -29
  54. package/lib/operations/getDatabaseInstance.d.ts.map +1 -1
  55. package/lib/operations/getDatabaseInstance.js +0 -2
  56. package/lib/operations/getDatabaseInstance.js.map +1 -1
  57. package/lib/operations/getDatabaseStats.d.ts +14 -23
  58. package/lib/operations/getDatabaseStats.d.ts.map +1 -1
  59. package/lib/operations/getDatabaseStats.js +0 -2
  60. package/lib/operations/getDatabaseStats.js.map +1 -1
  61. package/lib/operations/getDatabaseUsage.d.ts +29 -53
  62. package/lib/operations/getDatabaseUsage.d.ts.map +1 -1
  63. package/lib/operations/getDatabaseUsage.js +0 -2
  64. package/lib/operations/getDatabaseUsage.js.map +1 -1
  65. package/lib/operations/getGroup.d.ts +17 -29
  66. package/lib/operations/getGroup.d.ts.map +1 -1
  67. package/lib/operations/getGroup.js +0 -2
  68. package/lib/operations/getGroup.js.map +1 -1
  69. package/lib/operations/getGroupConfiguration.d.ts +10 -15
  70. package/lib/operations/getGroupConfiguration.d.ts.map +1 -1
  71. package/lib/operations/getGroupConfiguration.js +0 -2
  72. package/lib/operations/getGroupConfiguration.js.map +1 -1
  73. package/lib/operations/getOrganization.d.ts +20 -33
  74. package/lib/operations/getOrganization.d.ts.map +1 -1
  75. package/lib/operations/getOrganization.js +1 -2
  76. package/lib/operations/getOrganization.js.map +1 -1
  77. package/lib/operations/getOrganizationMember.d.ts +14 -23
  78. package/lib/operations/getOrganizationMember.d.ts.map +1 -1
  79. package/lib/operations/getOrganizationMember.js +0 -2
  80. package/lib/operations/getOrganizationMember.js.map +1 -1
  81. package/lib/operations/getOrganizationSubscription.d.ts +14 -23
  82. package/lib/operations/getOrganizationSubscription.d.ts.map +1 -1
  83. package/lib/operations/getOrganizationSubscription.js +0 -2
  84. package/lib/operations/getOrganizationSubscription.js.map +1 -1
  85. package/lib/operations/getOrganizationUsage.d.ts +38 -71
  86. package/lib/operations/getOrganizationUsage.d.ts.map +1 -1
  87. package/lib/operations/getOrganizationUsage.js +0 -2
  88. package/lib/operations/getOrganizationUsage.js.map +1 -1
  89. package/lib/operations/index.d.ts +2 -3
  90. package/lib/operations/index.d.ts.map +1 -1
  91. package/lib/operations/index.js +2 -3
  92. package/lib/operations/index.js.map +1 -1
  93. package/lib/operations/invalidateDatabaseTokens.d.ts +8 -11
  94. package/lib/operations/invalidateDatabaseTokens.d.ts.map +1 -1
  95. package/lib/operations/invalidateDatabaseTokens.js +0 -2
  96. package/lib/operations/invalidateDatabaseTokens.js.map +1 -1
  97. package/lib/operations/invalidateGroupTokens.d.ts +8 -11
  98. package/lib/operations/invalidateGroupTokens.d.ts.map +1 -1
  99. package/lib/operations/invalidateGroupTokens.js +0 -2
  100. package/lib/operations/invalidateGroupTokens.js.map +1 -1
  101. package/lib/operations/inviteOrganizationMemberV2.d.ts +16 -27
  102. package/lib/operations/inviteOrganizationMemberV2.d.ts.map +1 -1
  103. package/lib/operations/inviteOrganizationMemberV2.js +2 -4
  104. package/lib/operations/inviteOrganizationMemberV2.js.map +1 -1
  105. package/lib/operations/listAPITokens.d.ts +15 -17
  106. package/lib/operations/listAPITokens.d.ts.map +1 -1
  107. package/lib/operations/listAPITokens.js +3 -2
  108. package/lib/operations/listAPITokens.js.map +1 -1
  109. package/lib/operations/listDatabaseInstances.d.ts +16 -27
  110. package/lib/operations/listDatabaseInstances.d.ts.map +1 -1
  111. package/lib/operations/listDatabaseInstances.js +0 -2
  112. package/lib/operations/listDatabaseInstances.js.map +1 -1
  113. package/lib/operations/listDatabases.d.ts +27 -49
  114. package/lib/operations/listDatabases.d.ts.map +1 -1
  115. package/lib/operations/listDatabases.js +0 -2
  116. package/lib/operations/listDatabases.js.map +1 -1
  117. package/lib/operations/listGroups.d.ts +16 -27
  118. package/lib/operations/listGroups.d.ts.map +1 -1
  119. package/lib/operations/listGroups.js +0 -2
  120. package/lib/operations/listGroups.js.map +1 -1
  121. package/lib/operations/listLocations.d.ts +8 -11
  122. package/lib/operations/listLocations.d.ts.map +1 -1
  123. package/lib/operations/listLocations.js +0 -2
  124. package/lib/operations/listLocations.js.map +1 -1
  125. package/lib/operations/listOrganizationAPITokens.d.ts +33 -0
  126. package/lib/operations/listOrganizationAPITokens.d.ts.map +1 -0
  127. package/lib/operations/listOrganizationAPITokens.js +42 -0
  128. package/lib/operations/listOrganizationAPITokens.js.map +1 -0
  129. package/lib/operations/listOrganizationAuditLogs.d.ts +24 -43
  130. package/lib/operations/listOrganizationAuditLogs.d.ts.map +1 -1
  131. package/lib/operations/listOrganizationAuditLogs.js +0 -2
  132. package/lib/operations/listOrganizationAuditLogs.js.map +1 -1
  133. package/lib/operations/listOrganizationInvitesV2.d.ts +14 -25
  134. package/lib/operations/listOrganizationInvitesV2.d.ts.map +1 -1
  135. package/lib/operations/listOrganizationInvitesV2.js +0 -3
  136. package/lib/operations/listOrganizationInvitesV2.js.map +1 -1
  137. package/lib/operations/listOrganizationInvoices.d.ts +17 -29
  138. package/lib/operations/listOrganizationInvoices.d.ts.map +1 -1
  139. package/lib/operations/listOrganizationInvoices.js +0 -2
  140. package/lib/operations/listOrganizationInvoices.js.map +1 -1
  141. package/lib/operations/listOrganizationMembers.d.ts +13 -21
  142. package/lib/operations/listOrganizationMembers.d.ts.map +1 -1
  143. package/lib/operations/listOrganizationMembers.js +0 -2
  144. package/lib/operations/listOrganizationMembers.js.map +1 -1
  145. package/lib/operations/listOrganizationPlans.d.ts +25 -45
  146. package/lib/operations/listOrganizationPlans.d.ts.map +1 -1
  147. package/lib/operations/listOrganizationPlans.js +0 -2
  148. package/lib/operations/listOrganizationPlans.js.map +1 -1
  149. package/lib/operations/listOrganizations.d.ts +17 -25
  150. package/lib/operations/listOrganizations.d.ts.map +1 -1
  151. package/lib/operations/listOrganizations.js +1 -2
  152. package/lib/operations/listOrganizations.js.map +1 -1
  153. package/lib/operations/removeLocationFromGroup.d.ts +18 -31
  154. package/lib/operations/removeLocationFromGroup.d.ts.map +1 -1
  155. package/lib/operations/removeLocationFromGroup.js +0 -2
  156. package/lib/operations/removeLocationFromGroup.js.map +1 -1
  157. package/lib/operations/removeOrganizationMember.d.ts +10 -15
  158. package/lib/operations/removeOrganizationMember.d.ts.map +1 -1
  159. package/lib/operations/removeOrganizationMember.js +0 -2
  160. package/lib/operations/removeOrganizationMember.js.map +1 -1
  161. package/lib/operations/revokeAPIToken.d.ts +9 -13
  162. package/lib/operations/revokeAPIToken.d.ts.map +1 -1
  163. package/lib/operations/revokeAPIToken.js +0 -2
  164. package/lib/operations/revokeAPIToken.js.map +1 -1
  165. package/lib/operations/revokeOrganizationAPIToken.d.ts +25 -0
  166. package/lib/operations/revokeOrganizationAPIToken.d.ts.map +1 -0
  167. package/lib/operations/revokeOrganizationAPIToken.js +34 -0
  168. package/lib/operations/revokeOrganizationAPIToken.js.map +1 -0
  169. package/lib/operations/transferGroup.d.ts +16 -27
  170. package/lib/operations/transferGroup.d.ts.map +1 -1
  171. package/lib/operations/transferGroup.js +0 -2
  172. package/lib/operations/transferGroup.js.map +1 -1
  173. package/lib/operations/unarchiveGroup.d.ts +17 -29
  174. package/lib/operations/unarchiveGroup.d.ts.map +1 -1
  175. package/lib/operations/unarchiveGroup.js +0 -2
  176. package/lib/operations/unarchiveGroup.js.map +1 -1
  177. package/lib/operations/updateDatabaseConfiguration.d.ts +23 -33
  178. package/lib/operations/updateDatabaseConfiguration.d.ts.map +1 -1
  179. package/lib/operations/updateDatabaseConfiguration.js +4 -2
  180. package/lib/operations/updateDatabaseConfiguration.js.map +1 -1
  181. package/lib/operations/updateGroupConfiguration.d.ts +11 -17
  182. package/lib/operations/updateGroupConfiguration.d.ts.map +1 -1
  183. package/lib/operations/updateGroupConfiguration.js +0 -2
  184. package/lib/operations/updateGroupConfiguration.js.map +1 -1
  185. package/lib/operations/updateGroupDatabases.d.ts +8 -11
  186. package/lib/operations/updateGroupDatabases.d.ts.map +1 -1
  187. package/lib/operations/updateGroupDatabases.js +0 -2
  188. package/lib/operations/updateGroupDatabases.js.map +1 -1
  189. package/lib/operations/updateMemberRole.d.ts +15 -25
  190. package/lib/operations/updateMemberRole.d.ts.map +1 -1
  191. package/lib/operations/updateMemberRole.js +0 -2
  192. package/lib/operations/updateMemberRole.js.map +1 -1
  193. package/lib/operations/updateOrganization.d.ts +22 -35
  194. package/lib/operations/updateOrganization.d.ts.map +1 -1
  195. package/lib/operations/updateOrganization.js +2 -2
  196. package/lib/operations/updateOrganization.js.map +1 -1
  197. package/lib/operations/validateAPIToken.d.ts +8 -9
  198. package/lib/operations/validateAPIToken.d.ts.map +1 -1
  199. package/lib/operations/validateAPIToken.js +0 -2
  200. package/lib/operations/validateAPIToken.js.map +1 -1
  201. package/package.json +2 -2
  202. package/src/operations/addLocationToGroup.ts +17 -4
  203. package/src/operations/addOrganizationMember.ts +11 -5
  204. package/src/operations/createAPIToken.ts +51 -5
  205. package/src/operations/createDatabase.ts +29 -4
  206. package/src/operations/createDatabaseToken.ts +12 -4
  207. package/src/operations/createGroup.ts +50 -5
  208. package/src/operations/createGroupToken.ts +12 -4
  209. package/src/operations/deleteDatabase.ts +9 -4
  210. package/src/operations/deleteGroup.ts +16 -4
  211. package/src/operations/deleteOrganizationInviteByEmailV2.ts +7 -6
  212. package/src/operations/getCurrentUser.ts +16 -4
  213. package/src/operations/getDatabase.ts +20 -4
  214. package/src/operations/getDatabaseConfiguration.ts +17 -6
  215. package/src/operations/getDatabaseInstance.ts +16 -4
  216. package/src/operations/getDatabaseStats.ts +11 -4
  217. package/src/operations/getDatabaseUsage.ts +28 -4
  218. package/src/operations/getGroup.ts +16 -4
  219. package/src/operations/getGroupConfiguration.ts +9 -5
  220. package/src/operations/getOrganization.ts +20 -4
  221. package/src/operations/getOrganizationMember.ts +13 -5
  222. package/src/operations/getOrganizationSubscription.ts +13 -6
  223. package/src/operations/getOrganizationUsage.ts +37 -4
  224. package/src/operations/index.ts +2 -3
  225. package/src/operations/invalidateDatabaseTokens.ts +7 -6
  226. package/src/operations/invalidateGroupTokens.ts +7 -5
  227. package/src/operations/inviteOrganizationMemberV2.ts +17 -8
  228. package/src/operations/listAPITokens.ts +18 -4
  229. package/src/operations/listDatabaseInstances.ts +15 -5
  230. package/src/operations/listDatabases.ts +22 -4
  231. package/src/operations/listGroups.ts +15 -4
  232. package/src/operations/listLocations.ts +8 -4
  233. package/src/operations/listOrganizationAPITokens.ts +70 -0
  234. package/src/operations/listOrganizationAuditLogs.ts +47 -6
  235. package/src/operations/listOrganizationInvitesV2.ts +13 -7
  236. package/src/operations/listOrganizationInvoices.ts +16 -6
  237. package/src/operations/listOrganizationMembers.ts +12 -6
  238. package/src/operations/listOrganizationPlans.ts +21 -5
  239. package/src/operations/listOrganizations.ts +18 -4
  240. package/src/operations/removeLocationFromGroup.ts +17 -6
  241. package/src/operations/removeOrganizationMember.ts +9 -6
  242. package/src/operations/revokeAPIToken.ts +10 -4
  243. package/src/operations/revokeOrganizationAPIToken.ts +49 -0
  244. package/src/operations/transferGroup.ts +15 -4
  245. package/src/operations/unarchiveGroup.ts +16 -4
  246. package/src/operations/updateDatabaseConfiguration.ts +26 -6
  247. package/src/operations/updateGroupConfiguration.ts +10 -6
  248. package/src/operations/updateGroupDatabases.ts +7 -4
  249. package/src/operations/updateMemberRole.ts +14 -4
  250. package/src/operations/updateOrganization.ts +23 -4
  251. package/src/operations/validateAPIToken.ts +8 -4
@@ -1,22 +1,22 @@
1
1
  import * as Schema from "effect/Schema";
2
2
  import { BadRequest, NotFound } from "../errors.ts";
3
- export declare const AddLocationToGroupInput: Schema.Struct<{
4
- readonly organizationSlug: Schema.String;
5
- readonly groupName: Schema.String;
6
- readonly location: Schema.String;
7
- }>;
8
- export type AddLocationToGroupInput = typeof AddLocationToGroupInput.Type;
9
- export declare const AddLocationToGroupOutput: Schema.Struct<{
10
- readonly group: Schema.optional<Schema.Struct<{
11
- readonly name: Schema.optional<Schema.String>;
12
- readonly version: Schema.optional<Schema.String>;
13
- readonly uuid: Schema.optional<Schema.String>;
14
- readonly locations: Schema.optional<Schema.$Array<Schema.String>>;
15
- readonly primary: Schema.optional<Schema.String>;
16
- readonly delete_protection: Schema.optional<Schema.Boolean>;
17
- }>>;
18
- }>;
19
- export type AddLocationToGroupOutput = typeof AddLocationToGroupOutput.Type;
3
+ export interface AddLocationToGroupInput {
4
+ organizationSlug: string;
5
+ groupName: string;
6
+ location: string;
7
+ }
8
+ export declare const AddLocationToGroupInput: Schema.Codec<AddLocationToGroupInput>;
9
+ export interface AddLocationToGroupOutput {
10
+ group?: {
11
+ name?: string;
12
+ version?: string;
13
+ uuid?: string;
14
+ locations?: string[];
15
+ primary?: string;
16
+ delete_protection?: boolean;
17
+ };
18
+ }
19
+ export declare const AddLocationToGroupOutput: Schema.Codec<AddLocationToGroupOutput>;
20
20
  /**
21
21
  * Add Location to Group
22
22
  *
@@ -26,18 +26,5 @@ export type AddLocationToGroupOutput = typeof AddLocationToGroupOutput.Type;
26
26
  * @param groupName - The name of the group.
27
27
  * @param location - The location code to add to the group.
28
28
  */
29
- export declare const addLocationToGroup: import("@distilled.cloud/core/client").OperationMethod<{
30
- readonly organizationSlug: string;
31
- readonly groupName: string;
32
- readonly location: string;
33
- }, {
34
- readonly group?: {
35
- readonly name?: string | undefined;
36
- readonly version?: string | undefined;
37
- readonly uuid?: string | undefined;
38
- readonly locations?: readonly string[] | undefined;
39
- readonly primary?: string | undefined;
40
- readonly delete_protection?: boolean | undefined;
41
- } | undefined;
42
- }, BadRequest | NotFound, import("../credentials.ts").Credentials, never>;
29
+ export declare const addLocationToGroup: import("@distilled.cloud/core/client").OperationMethod<AddLocationToGroupInput, AddLocationToGroupOutput, BadRequest | NotFound, import("../credentials.ts").Credentials, never>;
43
30
  //# sourceMappingURL=addLocationToGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"addLocationToGroup.d.ts","sourceRoot":"","sources":["../../src/operations/addLocationToGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,eAAO,MAAM,uBAAuB;;;;EAUjC,CAAC;AACJ,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E,eAAO,MAAM,wBAAwB;;;;;;;;;EAYjC,CAAC;AACL,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;yEAI5B,CAAC"}
1
+ {"version":3,"file":"addLocationToGroup.d.ts","sourceRoot":"","sources":["../../src/operations/addLocationToGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,WAAW,uBAAuB;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,eAAO,MAAM,uBAAuB,EAUlB,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;AAGxD,MAAM,WAAW,wBAAwB;IACvC,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,wBAAwB,EAYlB,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;AAG1D;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,kLAI5B,CAAC"}
@@ -2,7 +2,6 @@ import * as Schema from "effect/Schema";
2
2
  import { API } from "../client.js";
3
3
  import * as T from "../traits.js";
4
4
  import { BadRequest, NotFound } from "../errors.js";
5
- // Input Schema
6
5
  export const AddLocationToGroupInput =
7
6
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8
7
  organizationSlug: Schema.String.pipe(T.PathParam()),
@@ -12,7 +11,6 @@ export const AddLocationToGroupInput =
12
11
  method: "POST",
13
12
  path: "/v1/organizations/{organizationSlug}/groups/{groupName}/locations/{location}",
14
13
  }));
15
- // Output Schema
16
14
  export const AddLocationToGroupOutput =
17
15
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
18
16
  group: Schema.optional(Schema.Struct({
@@ -1 +1 @@
1
- {"version":3,"file":"addLocationToGroup.js","sourceRoot":"","sources":["../../src/operations/addLocationToGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EA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AC,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,CAAsD,CAAC;AAE1D,gBAAgB;AAChB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5E,WAAW,EAAE,uBAAuB;IACpC,YAAY,EAAE,wBAAwB;IACtC,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAU;CACxC,CAAC,CAAC,CAAC"}
@@ -1,16 +1,16 @@
1
1
  import * as Schema from "effect/Schema";
2
2
  import { BadRequest, NotFound, Conflict } from "../errors.ts";
3
- export declare const AddOrganizationMemberInput: Schema.Struct<{
4
- readonly organizationSlug: Schema.String;
5
- readonly username: Schema.optional<Schema.String>;
6
- readonly role: Schema.optional<Schema.Literals<readonly ["admin", "member", "viewer"]>>;
7
- }>;
8
- export type AddOrganizationMemberInput = typeof AddOrganizationMemberInput.Type;
9
- export declare const AddOrganizationMemberOutput: Schema.Struct<{
10
- readonly member: Schema.optional<Schema.String>;
11
- readonly role: Schema.optional<Schema.Literals<readonly ["owner", "admin", "member", "viewer"]>>;
12
- }>;
13
- export type AddOrganizationMemberOutput = typeof AddOrganizationMemberOutput.Type;
3
+ export interface AddOrganizationMemberInput {
4
+ organizationSlug: string;
5
+ username?: string;
6
+ role?: "admin" | "member" | "viewer";
7
+ }
8
+ export declare const AddOrganizationMemberInput: Schema.Codec<AddOrganizationMemberInput>;
9
+ export interface AddOrganizationMemberOutput {
10
+ member?: string;
11
+ role?: "owner" | "admin" | "member" | "viewer";
12
+ }
13
+ export declare const AddOrganizationMemberOutput: Schema.Codec<AddOrganizationMemberOutput>;
14
14
  /**
15
15
  * Add Member
16
16
  *
@@ -18,12 +18,5 @@ export type AddOrganizationMemberOutput = typeof AddOrganizationMemberOutput.Typ
18
18
  *
19
19
  * @param organizationSlug - The slug of the organization or user account.
20
20
  */
21
- export declare const addOrganizationMember: import("@distilled.cloud/core/client").OperationMethod<{
22
- readonly organizationSlug: string;
23
- readonly username?: string | undefined;
24
- readonly role?: "admin" | "member" | "viewer" | undefined;
25
- }, {
26
- readonly member?: string | undefined;
27
- readonly role?: "admin" | "member" | "owner" | "viewer" | undefined;
28
- }, BadRequest | Conflict | NotFound, import("../credentials.ts").Credentials, never>;
21
+ export declare const addOrganizationMember: import("@distilled.cloud/core/client").OperationMethod<AddOrganizationMemberInput, AddOrganizationMemberOutput, BadRequest | Conflict | NotFound, import("../credentials.ts").Credentials, never>;
29
22
  //# sourceMappingURL=addOrganizationMember.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"addOrganizationMember.d.ts","sourceRoot":"","sources":["../../src/operations/addOrganizationMember.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAG9D,eAAO,MAAM,0BAA0B;;;;EAUpC,CAAC;AACJ,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF,eAAO,MAAM,2BAA2B;;;EAMpC,CAAC;AACL,MAAM,MAAM,2BAA2B,GACrC,OAAO,2BAA2B,CAAC,IAAI,CAAC;AAG1C;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;;;;;;oFAMjC,CAAC"}
1
+ {"version":3,"file":"addOrganizationMember.d.ts","sourceRoot":"","sources":["../../src/operations/addOrganizationMember.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAG9D,MAAM,WAAW,0BAA0B;IACzC,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;CACtC;AACD,eAAO,MAAM,0BAA0B,EAUrB,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;AAG3D,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;CAChD;AACD,eAAO,MAAM,2BAA2B,EAMrB,MAAM,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;AAG7D;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,mMAMjC,CAAC"}
@@ -2,7 +2,6 @@ import * as Schema from "effect/Schema";
2
2
  import { API } from "../client.js";
3
3
  import * as T from "../traits.js";
4
4
  import { BadRequest, NotFound, Conflict } from "../errors.js";
5
- // Input Schema
6
5
  export const AddOrganizationMemberInput =
7
6
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8
7
  organizationSlug: Schema.String.pipe(T.PathParam()),
@@ -12,7 +11,6 @@ export const AddOrganizationMemberInput =
12
11
  method: "POST",
13
12
  path: "/v1/organizations/{organizationSlug}/members",
14
13
  }));
15
- // Output Schema
16
14
  export const AddOrganizationMemberOutput =
17
15
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
18
16
  member: Schema.optional(Schema.String),
@@ -1 +1 @@
1
- {"version":3,"file":"addOrganizationM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AC;AAE7D,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACvE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,0BAA0B;IACvC,YAAY,EAAE,2BAA2B;IACzC,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAU;CAClD,CAAC,CACH,CAAC"}
@@ -1,28 +1,28 @@
1
1
  import * as Schema from "effect/Schema";
2
- export declare const CreateAPITokenInput: Schema.Struct<{
3
- readonly tokenName: Schema.String;
4
- readonly organization: Schema.optional<Schema.String>;
5
- }>;
6
- export type CreateAPITokenInput = typeof CreateAPITokenInput.Type;
7
- export declare const CreateAPITokenOutput: Schema.Struct<{
8
- readonly name: Schema.optional<Schema.String>;
9
- readonly id: Schema.optional<Schema.String>;
10
- readonly token: Schema.optional<Schema.String>;
11
- }>;
12
- export type CreateAPITokenOutput = typeof CreateAPITokenOutput.Type;
2
+ export interface CreateAPITokenInput {
3
+ tokenName: string;
4
+ organization?: string;
5
+ group?: string;
6
+ scopes?: ("read" | "db:create" | "db:delete" | "db:configure" | "db:mint-token" | "db:rotate-creds" | "group:configure" | "group:mint-token" | "group:rotate-creds" | "read-only" | "full-access")[];
7
+ }
8
+ export declare const CreateAPITokenInput: Schema.Codec<CreateAPITokenInput>;
9
+ export interface CreateAPITokenOutput {
10
+ name?: string;
11
+ id?: string;
12
+ token?: string;
13
+ }
14
+ export declare const CreateAPITokenOutput: Schema.Codec<CreateAPITokenOutput>;
13
15
  /**
14
16
  * Create API Token
15
17
  *
16
- * Returns a new API token belonging to a user. You can optionally restrict the token to a single organization by passing the organization slug in the request body. Organization-scoped tokens can only manage resources within that organization.
18
+ * Returns a new API token belonging to a user.
19
+ * The token can be minted at three levels of restriction, in increasing order of narrowness:
20
+ * - **Organization-scoped** — pass `organization`. The token can only act on resources inside that organization.
21
+ * - **Group-scoped** — pass `organization`, `group`, and `scopes`. The token is pinned to a single group inside the organization and only the operations listed in `scopes` are allowed. The caller must be an admin or owner of the organization.
22
+ * - **Unrestricted** *(deprecated)* — no request body. The token can act on every organization the caller belongs to. **Unrestricted tokens are deprecated and will be removed in a future release.** Always pass `organization` for new tokens and rotate existing unrestricted tokens to scoped tokens.
23
+ * Group-scoped tokens are designed for automations that should be able to provision and manage databases inside a single group without being able to touch the rest of the organization.
17
24
  *
18
25
  * @param tokenName - The name of the api token.
19
26
  */
20
- export declare const createAPIToken: import("@distilled.cloud/core/client").OperationMethod<{
21
- readonly tokenName: string;
22
- readonly organization?: string | undefined;
23
- }, {
24
- readonly name?: string | undefined;
25
- readonly id?: string | undefined;
26
- readonly token?: string | undefined;
27
- }, never, import("../credentials.ts").Credentials, never>;
27
+ export declare const createAPIToken: import("@distilled.cloud/core/client").OperationMethod<CreateAPITokenInput, CreateAPITokenOutput, never, import("../credentials.ts").Credentials, never>;
28
28
  //# sourceMappingURL=createAPIToken.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createAPIToken.d.ts","sourceRoot":"","sources":["../../src/operations/createAPIToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,mBAAmB;;;EAG4C,CAAC;AAC7E,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE,eAAO,MAAM,oBAAoB;;;;EAI/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;;;;yDAGxB,CAAC"}
1
+ {"version":3,"file":"createAPIToken.d.ts","sourceRoot":"","sources":["../../src/operations/createAPIToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,CACL,MAAM,GACN,WAAW,GACX,WAAW,GACX,cAAc,GACd,eAAe,GACf,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,oBAAoB,GACpB,WAAW,GACX,aAAa,CAChB,EAAE,CAAC;CACL;AACD,eAAO,MAAM,mBAAmB,EAuBhB,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;AAGlD,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,eAAO,MAAM,oBAAoB,EAIhB,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;AAGpD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,0JAGxB,CAAC"}
@@ -1,12 +1,24 @@
1
1
  import * as Schema from "effect/Schema";
2
2
  import { API } from "../client.js";
3
3
  import * as T from "../traits.js";
4
- // Input Schema
5
4
  export const CreateAPITokenInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6
5
  tokenName: Schema.String.pipe(T.PathParam()),
7
6
  organization: Schema.optional(Schema.String),
7
+ group: Schema.optional(Schema.String),
8
+ scopes: Schema.optional(Schema.Array(Schema.Literals([
9
+ "read",
10
+ "db:create",
11
+ "db:delete",
12
+ "db:configure",
13
+ "db:mint-token",
14
+ "db:rotate-creds",
15
+ "group:configure",
16
+ "group:mint-token",
17
+ "group:rotate-creds",
18
+ "read-only",
19
+ "full-access",
20
+ ]))),
8
21
  }).pipe(T.Http({ method: "POST", path: "/v1/auth/api-tokens/{tokenName}" }));
9
- // Output Schema
10
22
  export const CreateAPITokenOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
11
23
  name: Schema.optional(Schema.String),
12
24
  id: Schema.optional(Schema.String),
@@ -16,7 +28,12 @@ export const CreateAPITokenOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
16
28
  /**
17
29
  * Create API Token
18
30
  *
19
- * Returns a new API token belonging to a user. You can optionally restrict the token to a single organization by passing the organization slug in the request body. Organization-scoped tokens can only manage resources within that organization.
31
+ * Returns a new API token belonging to a user.
32
+ * The token can be minted at three levels of restriction, in increasing order of narrowness:
33
+ * - **Organization-scoped** — pass `organization`. The token can only act on resources inside that organization.
34
+ * - **Group-scoped** — pass `organization`, `group`, and `scopes`. The token is pinned to a single group inside the organization and only the operations listed in `scopes` are allowed. The caller must be an admin or owner of the organization.
35
+ * - **Unrestricted** *(deprecated)* — no request body. The token can act on every organization the caller belongs to. **Unrestricted tokens are deprecated and will be removed in a future release.** Always pass `organization` for new tokens and rotate existing unrestricted tokens to scoped tokens.
36
+ * Group-scoped tokens are designed for automations that should be able to provision and manage databases inside a single group without being able to touch the rest of the organization.
20
37
  *
21
38
  * @param tokenName - The name of the api token.
22
39
  */
@@ -1 +1 @@
1
- {"version":3,"file":"createAPIToken.js","sourceRoot":"","sources":["../../src/operations/createAPIToken.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,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3E,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC5C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC7C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAiC,EAAE,CAAC,CAAC,CAAC;AAG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B;QACjB,kBAAkB;QAClB,oBAAoB;QACpB,WAAW;QACX,aAAa;KACd,CAAC,CACH,CACF;CACF,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAiC,EAAE,CAAC,CACpB,CAAC;AAQlD,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5E,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACtC,CAAkD,CAAC;AAEpD,gBAAgB;AAChB;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACxE,WAAW,EAAE,mBAAmB;IAChC,YAAY,EAAE,oBAAoB;CACnC,CAAC,CAAC,CAAC"}
@@ -1,29 +1,29 @@
1
1
  import * as Schema from "effect/Schema";
2
2
  import { BadRequest, Conflict } from "../errors.ts";
3
- export declare const CreateDatabaseInput: Schema.Struct<{
4
- readonly organizationSlug: Schema.String;
5
- readonly name: Schema.String;
6
- readonly group: Schema.String;
7
- readonly seed: Schema.optional<Schema.Struct<{
8
- readonly type: Schema.optional<Schema.Literals<readonly ["database", "database_upload"]>>;
9
- readonly name: Schema.optional<Schema.String>;
10
- readonly timestamp: Schema.optional<Schema.String>;
11
- }>>;
12
- readonly size_limit: Schema.optional<Schema.String>;
13
- readonly remote_encryption: Schema.optional<Schema.Struct<{
14
- readonly encryption_key: Schema.optional<Schema.String>;
15
- readonly encryption_cipher: Schema.optional<Schema.Literals<readonly ["aes256gcm", "aes128gcm", "chacha20poly1305", "aegis128l", "aegis128x2", "aegis128x4", "aegis256", "aegis256x2", "aegis256x4"]>>;
16
- }>>;
17
- }>;
18
- export type CreateDatabaseInput = typeof CreateDatabaseInput.Type;
19
- export declare const CreateDatabaseOutput: Schema.Struct<{
20
- readonly database: Schema.optional<Schema.Struct<{
21
- readonly DbId: Schema.optional<Schema.String>;
22
- readonly Hostname: Schema.optional<Schema.String>;
23
- readonly Name: Schema.optional<Schema.String>;
24
- }>>;
25
- }>;
26
- export type CreateDatabaseOutput = typeof CreateDatabaseOutput.Type;
3
+ export interface CreateDatabaseInput {
4
+ organizationSlug: string;
5
+ name: string;
6
+ group: string;
7
+ seed?: {
8
+ type?: "database" | "database_upload";
9
+ name?: string;
10
+ timestamp?: string;
11
+ };
12
+ size_limit?: string;
13
+ remote_encryption?: {
14
+ encryption_key?: string;
15
+ encryption_cipher?: "aes256gcm" | "aes128gcm" | "chacha20poly1305" | "aegis128l" | "aegis128x2" | "aegis128x4" | "aegis256" | "aegis256x2" | "aegis256x4";
16
+ };
17
+ }
18
+ export declare const CreateDatabaseInput: Schema.Codec<CreateDatabaseInput>;
19
+ export interface CreateDatabaseOutput {
20
+ database?: {
21
+ DbId?: string;
22
+ Hostname?: string;
23
+ Name?: string;
24
+ };
25
+ }
26
+ export declare const CreateDatabaseOutput: Schema.Codec<CreateDatabaseOutput>;
27
27
  /**
28
28
  * Create Database
29
29
  *
@@ -31,25 +31,5 @@ export type CreateDatabaseOutput = typeof CreateDatabaseOutput.Type;
31
31
  *
32
32
  * @param organizationSlug - The slug of the organization or user account.
33
33
  */
34
- export declare const createDatabase: import("@distilled.cloud/core/client").OperationMethod<{
35
- readonly organizationSlug: string;
36
- readonly name: string;
37
- readonly group: string;
38
- readonly seed?: {
39
- readonly type?: "database" | "database_upload" | undefined;
40
- readonly name?: string | undefined;
41
- readonly timestamp?: string | undefined;
42
- } | undefined;
43
- readonly size_limit?: string | undefined;
44
- readonly remote_encryption?: {
45
- readonly encryption_key?: string | undefined;
46
- readonly encryption_cipher?: "aegis128l" | "aegis128x2" | "aegis128x4" | "aegis256" | "aegis256x2" | "aegis256x4" | "aes128gcm" | "aes256gcm" | "chacha20poly1305" | undefined;
47
- } | undefined;
48
- }, {
49
- readonly database?: {
50
- readonly DbId?: string | undefined;
51
- readonly Hostname?: string | undefined;
52
- readonly Name?: string | undefined;
53
- } | undefined;
54
- }, BadRequest | Conflict, import("../credentials.ts").Credentials, never>;
34
+ export declare const createDatabase: import("@distilled.cloud/core/client").OperationMethod<CreateDatabaseInput, CreateDatabaseOutput, BadRequest | Conflict, import("../credentials.ts").Credentials, never>;
55
35
  //# sourceMappingURL=createDatabase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createDatabase.d.ts","sourceRoot":"","sources":["../../src/operations/createDatabase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;EAmC/B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE,eAAO,MAAM,oBAAoB;;;;;;EAQ/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;yEAIxB,CAAC"}
1
+ {"version":3,"file":"createDatabase.d.ts","sourceRoot":"","sources":["../../src/operations/createDatabase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,UAAU,GAAG,iBAAiB,CAAC;QACtC,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE;QAClB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,iBAAiB,CAAC,EACd,WAAW,GACX,WAAW,GACX,kBAAkB,GAClB,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,YAAY,CAAC;KAClB,CAAC;CACH;AACD,eAAO,MAAM,mBAAmB,EAmChB,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;AAGlD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAChE;AACD,eAAO,MAAM,oBAAoB,EAQhB,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;AAGpD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,0KAIxB,CAAC"}
@@ -2,7 +2,6 @@ import * as Schema from "effect/Schema";
2
2
  import { API } from "../client.js";
3
3
  import * as T from "../traits.js";
4
4
  import { BadRequest, Conflict } from "../errors.js";
5
- // Input Schema
6
5
  export const CreateDatabaseInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
6
  organizationSlug: Schema.String.pipe(T.PathParam()),
8
7
  name: Schema.String,
@@ -31,7 +30,6 @@ export const CreateDatabaseInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
31
30
  method: "POST",
32
31
  path: "/v1/organizations/{organizationSlug}/databases",
33
32
  }));
34
- // Output Schema
35
33
  export const CreateDatabaseOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
36
34
  database: Schema.optional(Schema.Struct({
37
35
  DbId: Schema.optional(Schema.String),
@@ -1 +1 @@
1
- {"version":3,"file":"createDatabase.js","sourceRoot":"","sources":["../../src/operations/createDatabase.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;AAEpD,eAAe;AACf,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3E,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,KAAK,EAAE,MAAM,CAAC,MAAM;IACpB,IAAI,EAAE,MAAM,CAAC,QAAQ,CACnB,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;QACvE,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KAC1C,CAAC,CACH;IACD,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAChC,MAAM,CAAC,MAAM,CAAC;QACZ,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC9C,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAChC,MAAM,CAAC,QAAQ,CAAC;YACd,WAAW;YACX,WAAW;YACX,kBA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EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACxC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACrC,CAAC,CACH;CACF,CAAkD,CAAC;AAEpD,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACxE,WAAW,EAAE,mBAAmB;IAChC,YAAY,EAAE,oBAAoB;IAClC,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAU;CACxC,CAAC,CAAC,CAAC"}
@@ -1,21 +1,21 @@
1
1
  import * as Schema from "effect/Schema";
2
2
  import { BadRequest, NotFound } from "../errors.ts";
3
- export declare const CreateDatabaseTokenInput: Schema.Struct<{
4
- readonly organizationSlug: Schema.String;
5
- readonly databaseName: Schema.String;
6
- readonly expiration: Schema.optional<Schema.String>;
7
- readonly authorization: Schema.optional<Schema.Literals<readonly ["full-access", "read-only"]>>;
8
- readonly permissions: Schema.optional<Schema.Struct<{
9
- readonly read_attach: Schema.optional<Schema.Struct<{
10
- readonly databases: Schema.optional<Schema.$Array<Schema.String>>;
11
- }>>;
12
- }>>;
13
- }>;
14
- export type CreateDatabaseTokenInput = typeof CreateDatabaseTokenInput.Type;
15
- export declare const CreateDatabaseTokenOutput: Schema.Struct<{
16
- readonly jwt: Schema.optional<Schema.String>;
17
- }>;
18
- export type CreateDatabaseTokenOutput = typeof CreateDatabaseTokenOutput.Type;
3
+ export interface CreateDatabaseTokenInput {
4
+ organizationSlug: string;
5
+ databaseName: 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 CreateDatabaseTokenInput: Schema.Codec<CreateDatabaseTokenInput>;
15
+ export interface CreateDatabaseTokenOutput {
16
+ jwt?: string;
17
+ }
18
+ export declare const CreateDatabaseTokenOutput: Schema.Codec<CreateDatabaseTokenOutput>;
19
19
  /**
20
20
  * Generate Database Auth Token
21
21
  *
@@ -26,17 +26,5 @@ export type CreateDatabaseTokenOutput = typeof CreateDatabaseTokenOutput.Type;
26
26
  * @param expiration - Expiration time for the token (e.g., 2w1d30m).
27
27
  * @param authorization - Authorization level for the token (full-access or read-only).
28
28
  */
29
- export declare const createDatabaseToken: import("@distilled.cloud/core/client").OperationMethod<{
30
- readonly organizationSlug: string;
31
- readonly databaseName: string;
32
- readonly expiration?: string | undefined;
33
- readonly authorization?: "full-access" | "read-only" | undefined;
34
- readonly permissions?: {
35
- readonly read_attach?: {
36
- readonly databases?: readonly string[] | undefined;
37
- } | undefined;
38
- } | undefined;
39
- }, {
40
- readonly jwt?: string | undefined;
41
- }, BadRequest | NotFound, import("../credentials.ts").Credentials, never>;
29
+ export declare const createDatabaseToken: import("@distilled.cloud/core/client").OperationMethod<CreateDatabaseTokenInput, CreateDatabaseTokenOutput, BadRequest | NotFound, import("../credentials.ts").Credentials, never>;
42
30
  //# sourceMappingURL=createDatabaseToken.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createDatabaseToken.d.ts","sourceRoot":"","sources":["../../src/operations/createDatabaseToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,eAAO,MAAM,wBAAwB;;;;;;;;;;EAsBlC,CAAC;AACJ,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E,eAAO,MAAM,yBAAyB;;EAGlC,CAAC;AACL,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;yEAI7B,CAAC"}
1
+ {"version":3,"file":"createDatabaseToken.d.ts","sourceRoot":"","sources":["../../src/operations/createDatabaseToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,WAAW,wBAAwB;IACvC,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,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,wBAAwB,EAsBnB,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;AAGzD,MAAM,WAAW,yBAAyB;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AACD,eAAO,MAAM,yBAAyB,EAGnB,MAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;AAG3D;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,oLAI7B,CAAC"}
@@ -2,7 +2,6 @@ import * as Schema from "effect/Schema";
2
2
  import { API } from "../client.js";
3
3
  import * as T from "../traits.js";
4
4
  import { BadRequest, NotFound } from "../errors.js";
5
- // Input Schema
6
5
  export const CreateDatabaseTokenInput =
7
6
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8
7
  organizationSlug: Schema.String.pipe(T.PathParam()),
@@ -18,7 +17,6 @@ export const CreateDatabaseTokenInput =
18
17
  method: "POST",
19
18
  path: "/v1/organizations/{organizationSlug}/databases/{databaseName}/auth/tokens",
20
19
  }));
21
- // Output Schema
22
20
  export const CreateDatabaseTokenOutput =
23
21
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
24
22
  jwt: Schema.optional(Schema.String),
@@ -1 +1 @@
1
- {"version":3,"file":"createDatabaseToken.js","sourceRoot":"","sources":["../../src/operations/createDatabaseToken.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;AAEpD,eAAe;AACf,MAAM,CAAC,MAAM,wBAAwB;AACnC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC/C,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,aAAa,EAAE,MAAM,CAAC,QAAQ,CAC5B,MAAM,CAAC,QAAQ,CAAC,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC,CAC9C;IACD,WAAW,EAAE,MAAM,CAAC,QAAQ,CAC1B,MAAM,CAAC,MAAM,CAAC;QACZ,WAAW,EAAE,MAAM,CAAC,QAAQ,CAC1B,MAAM,CAAC,MAAM,CAAC;YACZ,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;SACxD,CAAC,CACH;KACF,CAAC,CACH;CACF,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,2EAA2E;CAClF,CAAC,CACH,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBA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C,QAAQ,CAC1B,MAAM,CAAC,MAAM,CAAC;YACZ,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;SACxD,CAAC,CACH;KACF,CAAC,CACH;CACF,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,2EAA2E;CAClF,CAAC,CACkD,CAAC;AAMzD,MAAM,CAAC,MAAM,yBAAyB;AACpC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACpC,CAAuD,CAAC;AAE3D,gBAAgB;AAChB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC7E,WAAW,EAAE,wBAAwB;IACrC,YAAY,EAAE,yBAAyB;IACvC,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAU;CACxC,CAAC,CAAC,CAAC"}
@@ -1,23 +1,23 @@
1
1
  import * as Schema from "effect/Schema";
2
2
  import { BadRequest, Conflict } from "../errors.ts";
3
- export declare const CreateGroupInput: Schema.Struct<{
4
- readonly organizationSlug: Schema.String;
5
- readonly name: Schema.String;
6
- readonly location: Schema.String;
7
- readonly extensions: Schema.optional<Schema.Unknown>;
8
- }>;
9
- export type CreateGroupInput = typeof CreateGroupInput.Type;
10
- export declare const CreateGroupOutput: Schema.Struct<{
11
- readonly group: Schema.optional<Schema.Struct<{
12
- readonly name: Schema.optional<Schema.String>;
13
- readonly version: Schema.optional<Schema.String>;
14
- readonly uuid: Schema.optional<Schema.String>;
15
- readonly locations: Schema.optional<Schema.$Array<Schema.String>>;
16
- readonly primary: Schema.optional<Schema.String>;
17
- readonly delete_protection: Schema.optional<Schema.Boolean>;
18
- }>>;
19
- }>;
20
- export type CreateGroupOutput = typeof CreateGroupOutput.Type;
3
+ export interface CreateGroupInput {
4
+ organizationSlug: string;
5
+ name: string;
6
+ location: string;
7
+ extensions?: "all" | ("vector" | "crypto" | "fuzzy" | "math" | "stats" | "text" | "unicode" | "uuid" | "regexp" | "vec")[];
8
+ }
9
+ export declare const CreateGroupInput: Schema.Codec<CreateGroupInput>;
10
+ export interface CreateGroupOutput {
11
+ group?: {
12
+ name?: string;
13
+ version?: string;
14
+ uuid?: string;
15
+ locations?: string[];
16
+ primary?: string;
17
+ delete_protection?: boolean;
18
+ };
19
+ }
20
+ export declare const CreateGroupOutput: Schema.Codec<CreateGroupOutput>;
21
21
  /**
22
22
  * Create Group
23
23
  *
@@ -25,19 +25,5 @@ export type CreateGroupOutput = typeof CreateGroupOutput.Type;
25
25
  *
26
26
  * @param organizationSlug - The slug of the organization or user account.
27
27
  */
28
- export declare const createGroup: import("@distilled.cloud/core/client").OperationMethod<{
29
- readonly organizationSlug: string;
30
- readonly name: string;
31
- readonly location: string;
32
- readonly extensions?: unknown;
33
- }, {
34
- readonly group?: {
35
- readonly name?: string | undefined;
36
- readonly version?: string | undefined;
37
- readonly uuid?: string | undefined;
38
- readonly locations?: readonly string[] | undefined;
39
- readonly primary?: string | undefined;
40
- readonly delete_protection?: boolean | undefined;
41
- } | undefined;
42
- }, BadRequest | Conflict, import("../credentials.ts").Credentials, never>;
28
+ export declare const createGroup: import("@distilled.cloud/core/client").OperationMethod<CreateGroupInput, CreateGroupOutput, BadRequest | Conflict, import("../credentials.ts").Credentials, never>;
43
29
  //# sourceMappingURL=createGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createGroup.d.ts","sourceRoot":"","sources":["../../src/operations/createGroup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,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AAO,MAAM,WAAW,oKAIrB,CAAC"}
@@ -2,17 +2,29 @@ import * as Schema from "effect/Schema";
2
2
  import { API } from "../client.js";
3
3
  import * as T from "../traits.js";
4
4
  import { BadRequest, Conflict } from "../errors.js";
5
- // Input Schema
6
5
  export const CreateGroupInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
6
  organizationSlug: Schema.String.pipe(T.PathParam()),
8
7
  name: Schema.String,
9
8
  location: Schema.String,
10
- extensions: Schema.optional(Schema.Unknown),
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
+ ])),
11
24
  }).pipe(T.Http({
12
25
  method: "POST",
13
26
  path: "/v1/organizations/{organizationSlug}/groups",
14
27
  }));
15
- // Output Schema
16
28
  export const CreateGroupOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
17
29
  group: Schema.optional(Schema.Struct({
18
30
  name: Schema.optional(Schema.String),
@@ -1 +1 @@
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;AAEpD,eAAe;AACf,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxE,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,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