@distilled.cloud/prisma-postgres 0.0.0 → 0.2.6

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 (205) hide show
  1. package/README.md +47 -6
  2. package/lib/category.d.ts +5 -0
  3. package/lib/category.d.ts.map +1 -0
  4. package/lib/category.js +5 -0
  5. package/lib/category.js.map +1 -0
  6. package/lib/client.d.ts +17 -0
  7. package/lib/client.d.ts.map +1 -0
  8. package/lib/client.js +55 -0
  9. package/lib/client.js.map +1 -0
  10. package/lib/credentials.d.ts +14 -0
  11. package/lib/credentials.d.ts.map +1 -0
  12. package/lib/credentials.js +17 -0
  13. package/lib/credentials.js.map +1 -0
  14. package/lib/errors.d.ts +32 -0
  15. package/lib/errors.d.ts.map +1 -0
  16. package/lib/errors.js +24 -0
  17. package/lib/errors.js.map +1 -0
  18. package/lib/index.d.ts +16 -0
  19. package/lib/index.d.ts.map +1 -0
  20. package/lib/index.js +16 -0
  21. package/lib/index.js.map +1 -0
  22. package/lib/operations/deleteV1ConnectionsById.d.ts +14 -0
  23. package/lib/operations/deleteV1ConnectionsById.d.ts.map +1 -0
  24. package/lib/operations/deleteV1ConnectionsById.js +22 -0
  25. package/lib/operations/deleteV1ConnectionsById.js.map +1 -0
  26. package/lib/operations/deleteV1DatabasesByDatabaseId.d.ts +14 -0
  27. package/lib/operations/deleteV1DatabasesByDatabaseId.d.ts.map +1 -0
  28. package/lib/operations/deleteV1DatabasesByDatabaseId.js +23 -0
  29. package/lib/operations/deleteV1DatabasesByDatabaseId.js.map +1 -0
  30. package/lib/operations/deleteV1IntegrationsById.d.ts +14 -0
  31. package/lib/operations/deleteV1IntegrationsById.d.ts.map +1 -0
  32. package/lib/operations/deleteV1IntegrationsById.js +22 -0
  33. package/lib/operations/deleteV1IntegrationsById.js.map +1 -0
  34. package/lib/operations/deleteV1ProjectsById.d.ts +14 -0
  35. package/lib/operations/deleteV1ProjectsById.d.ts.map +1 -0
  36. package/lib/operations/deleteV1ProjectsById.js +22 -0
  37. package/lib/operations/deleteV1ProjectsById.js.map +1 -0
  38. package/lib/operations/deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId.d.ts +15 -0
  39. package/lib/operations/deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId.d.ts.map +1 -0
  40. package/lib/operations/deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId.js +27 -0
  41. package/lib/operations/deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId.js.map +1 -0
  42. package/lib/operations/getV1Connections.d.ts +53 -0
  43. package/lib/operations/getV1Connections.d.ts.map +1 -0
  44. package/lib/operations/getV1Connections.js +59 -0
  45. package/lib/operations/getV1Connections.js.map +1 -0
  46. package/lib/operations/getV1ConnectionsById.d.ts +47 -0
  47. package/lib/operations/getV1ConnectionsById.d.ts.map +1 -0
  48. package/lib/operations/getV1ConnectionsById.js +55 -0
  49. package/lib/operations/getV1ConnectionsById.js.map +1 -0
  50. package/lib/operations/getV1Databases.d.ts +72 -0
  51. package/lib/operations/getV1Databases.d.ts.map +1 -0
  52. package/lib/operations/getV1Databases.js +83 -0
  53. package/lib/operations/getV1Databases.js.map +1 -0
  54. package/lib/operations/getV1DatabasesByDatabaseId.d.ts +66 -0
  55. package/lib/operations/getV1DatabasesByDatabaseId.d.ts.map +1 -0
  56. package/lib/operations/getV1DatabasesByDatabaseId.js +79 -0
  57. package/lib/operations/getV1DatabasesByDatabaseId.js.map +1 -0
  58. package/lib/operations/getV1DatabasesByDatabaseIdBackups.d.ts +31 -0
  59. package/lib/operations/getV1DatabasesByDatabaseIdBackups.d.ts.map +1 -0
  60. package/lib/operations/getV1DatabasesByDatabaseIdBackups.js +40 -0
  61. package/lib/operations/getV1DatabasesByDatabaseIdBackups.js.map +1 -0
  62. package/lib/operations/getV1DatabasesByDatabaseIdConnections.d.ts +53 -0
  63. package/lib/operations/getV1DatabasesByDatabaseIdConnections.d.ts.map +1 -0
  64. package/lib/operations/getV1DatabasesByDatabaseIdConnections.js +62 -0
  65. package/lib/operations/getV1DatabasesByDatabaseIdConnections.js.map +1 -0
  66. package/lib/operations/getV1DatabasesByDatabaseIdUsage.d.ts +32 -0
  67. package/lib/operations/getV1DatabasesByDatabaseIdUsage.d.ts.map +1 -0
  68. package/lib/operations/getV1DatabasesByDatabaseIdUsage.js +41 -0
  69. package/lib/operations/getV1DatabasesByDatabaseIdUsage.js.map +1 -0
  70. package/lib/operations/getV1Integrations.d.ts +37 -0
  71. package/lib/operations/getV1Integrations.d.ts.map +1 -0
  72. package/lib/operations/getV1Integrations.js +44 -0
  73. package/lib/operations/getV1Integrations.js.map +1 -0
  74. package/lib/operations/getV1IntegrationsById.d.ts +31 -0
  75. package/lib/operations/getV1IntegrationsById.d.ts.map +1 -0
  76. package/lib/operations/getV1IntegrationsById.js +39 -0
  77. package/lib/operations/getV1IntegrationsById.js.map +1 -0
  78. package/lib/operations/getV1Projects.d.ts +33 -0
  79. package/lib/operations/getV1Projects.d.ts.map +1 -0
  80. package/lib/operations/getV1Projects.js +39 -0
  81. package/lib/operations/getV1Projects.js.map +1 -0
  82. package/lib/operations/getV1ProjectsById.d.ts +28 -0
  83. package/lib/operations/getV1ProjectsById.d.ts.map +1 -0
  84. package/lib/operations/getV1ProjectsById.js +35 -0
  85. package/lib/operations/getV1ProjectsById.js.map +1 -0
  86. package/lib/operations/getV1ProjectsByProjectIdDatabases.d.ts +72 -0
  87. package/lib/operations/getV1ProjectsByProjectIdDatabases.d.ts.map +1 -0
  88. package/lib/operations/getV1ProjectsByProjectIdDatabases.js +86 -0
  89. package/lib/operations/getV1ProjectsByProjectIdDatabases.js.map +1 -0
  90. package/lib/operations/getV1Regions.d.ts +22 -0
  91. package/lib/operations/getV1Regions.d.ts.map +1 -0
  92. package/lib/operations/getV1Regions.js +28 -0
  93. package/lib/operations/getV1Regions.js.map +1 -0
  94. package/lib/operations/getV1RegionsAccelerate.d.ts +18 -0
  95. package/lib/operations/getV1RegionsAccelerate.d.ts.map +1 -0
  96. package/lib/operations/getV1RegionsAccelerate.js +26 -0
  97. package/lib/operations/getV1RegionsAccelerate.js.map +1 -0
  98. package/lib/operations/getV1RegionsPostgres.d.ts +19 -0
  99. package/lib/operations/getV1RegionsPostgres.d.ts.map +1 -0
  100. package/lib/operations/getV1RegionsPostgres.js +27 -0
  101. package/lib/operations/getV1RegionsPostgres.js.map +1 -0
  102. package/lib/operations/getV1Workspaces.d.ts +27 -0
  103. package/lib/operations/getV1Workspaces.d.ts.map +1 -0
  104. package/lib/operations/getV1Workspaces.js +33 -0
  105. package/lib/operations/getV1Workspaces.js.map +1 -0
  106. package/lib/operations/getV1WorkspacesById.d.ts +22 -0
  107. package/lib/operations/getV1WorkspacesById.d.ts.map +1 -0
  108. package/lib/operations/getV1WorkspacesById.js +30 -0
  109. package/lib/operations/getV1WorkspacesById.js.map +1 -0
  110. package/lib/operations/getV1WorkspacesByWorkspaceIdIntegrations.d.ts +37 -0
  111. package/lib/operations/getV1WorkspacesByWorkspaceIdIntegrations.d.ts.map +1 -0
  112. package/lib/operations/getV1WorkspacesByWorkspaceIdIntegrations.js +49 -0
  113. package/lib/operations/getV1WorkspacesByWorkspaceIdIntegrations.js.map +1 -0
  114. package/lib/operations/index.d.ts +32 -0
  115. package/lib/operations/index.d.ts.map +1 -0
  116. package/lib/operations/index.js +32 -0
  117. package/lib/operations/index.js.map +1 -0
  118. package/lib/operations/patchV1DatabasesByDatabaseId.d.ts +67 -0
  119. package/lib/operations/patchV1DatabasesByDatabaseId.d.ts.map +1 -0
  120. package/lib/operations/patchV1DatabasesByDatabaseId.js +81 -0
  121. package/lib/operations/patchV1DatabasesByDatabaseId.js.map +1 -0
  122. package/lib/operations/patchV1ProjectsById.d.ts +30 -0
  123. package/lib/operations/patchV1ProjectsById.d.ts.map +1 -0
  124. package/lib/operations/patchV1ProjectsById.js +38 -0
  125. package/lib/operations/patchV1ProjectsById.js.map +1 -0
  126. package/lib/operations/postV1Connections.d.ts +52 -0
  127. package/lib/operations/postV1Connections.d.ts.map +1 -0
  128. package/lib/operations/postV1Connections.js +59 -0
  129. package/lib/operations/postV1Connections.js.map +1 -0
  130. package/lib/operations/postV1Databases.d.ts +69 -0
  131. package/lib/operations/postV1Databases.d.ts.map +1 -0
  132. package/lib/operations/postV1Databases.js +83 -0
  133. package/lib/operations/postV1Databases.js.map +1 -0
  134. package/lib/operations/postV1DatabasesByDatabaseIdConnections.d.ts +55 -0
  135. package/lib/operations/postV1DatabasesByDatabaseIdConnections.d.ts.map +1 -0
  136. package/lib/operations/postV1DatabasesByDatabaseIdConnections.js +64 -0
  137. package/lib/operations/postV1DatabasesByDatabaseIdConnections.js.map +1 -0
  138. package/lib/operations/postV1Projects.d.ts +113 -0
  139. package/lib/operations/postV1Projects.d.ts.map +1 -0
  140. package/lib/operations/postV1Projects.js +126 -0
  141. package/lib/operations/postV1Projects.js.map +1 -0
  142. package/lib/operations/postV1ProjectsByIdTransfer.d.ts +15 -0
  143. package/lib/operations/postV1ProjectsByIdTransfer.d.ts.map +1 -0
  144. package/lib/operations/postV1ProjectsByIdTransfer.js +23 -0
  145. package/lib/operations/postV1ProjectsByIdTransfer.js.map +1 -0
  146. package/lib/operations/postV1ProjectsByProjectIdDatabases.d.ts +110 -0
  147. package/lib/operations/postV1ProjectsByProjectIdDatabases.d.ts.map +1 -0
  148. package/lib/operations/postV1ProjectsByProjectIdDatabases.js +127 -0
  149. package/lib/operations/postV1ProjectsByProjectIdDatabases.js.map +1 -0
  150. package/lib/retry.d.ts +22 -0
  151. package/lib/retry.d.ts.map +1 -0
  152. package/lib/retry.js +21 -0
  153. package/lib/retry.js.map +1 -0
  154. package/lib/sensitive.d.ts +5 -0
  155. package/lib/sensitive.d.ts.map +1 -0
  156. package/lib/sensitive.js +5 -0
  157. package/lib/sensitive.js.map +1 -0
  158. package/lib/traits.d.ts +5 -0
  159. package/lib/traits.d.ts.map +1 -0
  160. package/lib/traits.js +5 -0
  161. package/lib/traits.js.map +1 -0
  162. package/package.json +80 -9
  163. package/src/category.ts +4 -0
  164. package/src/client.ts +68 -0
  165. package/src/credentials.ts +30 -0
  166. package/src/errors.ts +48 -0
  167. package/src/index.ts +15 -0
  168. package/src/operations/deleteV1ConnectionsById.ts +30 -0
  169. package/src/operations/deleteV1DatabasesByDatabaseId.ts +29 -0
  170. package/src/operations/deleteV1IntegrationsById.ts +30 -0
  171. package/src/operations/deleteV1ProjectsById.ts +28 -0
  172. package/src/operations/deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId.ts +35 -0
  173. package/src/operations/getV1Connections.ts +77 -0
  174. package/src/operations/getV1ConnectionsById.ts +71 -0
  175. package/src/operations/getV1Databases.ts +103 -0
  176. package/src/operations/getV1DatabasesByDatabaseId.ts +101 -0
  177. package/src/operations/getV1DatabasesByDatabaseIdBackups.ts +50 -0
  178. package/src/operations/getV1DatabasesByDatabaseIdConnections.ts +82 -0
  179. package/src/operations/getV1DatabasesByDatabaseIdUsage.ts +47 -0
  180. package/src/operations/getV1Integrations.ts +52 -0
  181. package/src/operations/getV1IntegrationsById.ts +46 -0
  182. package/src/operations/getV1Projects.ts +45 -0
  183. package/src/operations/getV1ProjectsById.ts +41 -0
  184. package/src/operations/getV1ProjectsByProjectIdDatabases.ts +110 -0
  185. package/src/operations/getV1Regions.ts +34 -0
  186. package/src/operations/getV1RegionsAccelerate.ts +38 -0
  187. package/src/operations/getV1RegionsPostgres.ts +37 -0
  188. package/src/operations/getV1Workspaces.ts +39 -0
  189. package/src/operations/getV1WorkspacesById.ts +34 -0
  190. package/src/operations/getV1WorkspacesByWorkspaceIdIntegrations.ts +59 -0
  191. package/src/operations/index.ts +31 -0
  192. package/src/operations/patchV1DatabasesByDatabaseId.ts +101 -0
  193. package/src/operations/patchV1ProjectsById.ts +42 -0
  194. package/src/operations/postV1Connections.ts +75 -0
  195. package/src/operations/postV1Databases.ts +103 -0
  196. package/src/operations/postV1DatabasesByDatabaseIdConnections.ts +82 -0
  197. package/src/operations/postV1Projects.ts +160 -0
  198. package/src/operations/postV1ProjectsByIdTransfer.ts +31 -0
  199. package/src/operations/postV1ProjectsByProjectIdDatabases.ts +165 -0
  200. package/src/retry.ts +37 -0
  201. package/src/sensitive.ts +4 -0
  202. package/src/traits.ts +4 -0
  203. package/bun.lock +0 -26
  204. package/index.ts +0 -1
  205. package/tsconfig.json +0 -29
@@ -0,0 +1,22 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const GetV1RegionsInput: Schema.Struct<{
3
+ readonly product: Schema.optional<Schema.Literals<readonly ["postgres", "accelerate"]>>;
4
+ }>;
5
+ export type GetV1RegionsInput = typeof GetV1RegionsInput.Type;
6
+ export declare const GetV1RegionsOutput: Schema.Struct<{
7
+ readonly data: Schema.$Array<Schema.Struct<{
8
+ readonly id: Schema.String;
9
+ readonly type: Schema.String;
10
+ readonly name: Schema.String;
11
+ readonly product: Schema.Literals<readonly ["postgres", "accelerate"]>;
12
+ readonly status: Schema.optional<Schema.Literals<readonly ["available", "unavailable"]>>;
13
+ }>>;
14
+ }>;
15
+ export type GetV1RegionsOutput = typeof GetV1RegionsOutput.Type;
16
+ /**
17
+ * Get all regions
18
+ *
19
+ * Returns all available regions across products. Optionally filter by product.
20
+ */
21
+ export declare const getV1Regions: any;
22
+ //# sourceMappingURL=getV1Regions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getV1Regions.d.ts","sourceRoot":"","sources":["../../src/operations/getV1Regions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,iBAAiB;;EAEyB,CAAC;AACxD,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;AAG9D,eAAO,MAAM,kBAAkB;;;;;;;;EAU7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;AAGhE;;;;GAIG;AACH,eAAO,MAAM,YAAY,KAGtB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const GetV1RegionsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6
+ product: Schema.optional(Schema.Literals(["postgres", "accelerate"])),
7
+ }).pipe(T.Http({ method: "GET", path: "/v1/regions" }));
8
+ // Output Schema
9
+ export const GetV1RegionsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
10
+ data: Schema.Array(Schema.Struct({
11
+ id: Schema.String,
12
+ type: Schema.String,
13
+ name: Schema.String,
14
+ product: Schema.Literals(["postgres", "accelerate"]),
15
+ status: Schema.optional(Schema.Literals(["available", "unavailable"])),
16
+ })),
17
+ });
18
+ // The operation
19
+ /**
20
+ * Get all regions
21
+ *
22
+ * Returns all available regions across products. Optionally filter by product.
23
+ */
24
+ export const getV1Regions = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
25
+ inputSchema: GetV1RegionsInput,
26
+ outputSchema: GetV1RegionsOutput,
27
+ }));
28
+ //# sourceMappingURL=getV1Regions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getV1Regions.js","sourceRoot":"","sources":["../../src/operations/getV1Regions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACzE,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC,CAAC;CACtE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC;AAGxD,gBAAgB;AAChB,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1E,IAAI,EAAE,MAAM,CAAC,KAAK,CAChB,MAAM,CAAC,MAAM,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC,MAAM;QACjB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QACpD,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC;KACvE,CAAC,CACH;CACF,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACtE,WAAW,EAAE,iBAAiB;IAC9B,YAAY,EAAE,kBAAkB;CACjC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const GetV1RegionsAccelerateInput: Schema.Struct<{}>;
3
+ export type GetV1RegionsAccelerateInput = typeof GetV1RegionsAccelerateInput.Type;
4
+ export declare const GetV1RegionsAccelerateOutput: Schema.Struct<{
5
+ readonly data: Schema.$Array<Schema.Struct<{
6
+ readonly id: Schema.String;
7
+ readonly type: Schema.String;
8
+ readonly name: Schema.String;
9
+ }>>;
10
+ }>;
11
+ export type GetV1RegionsAccelerateOutput = typeof GetV1RegionsAccelerateOutput.Type;
12
+ /**
13
+ * Get Prisma Accelerate regions
14
+ *
15
+ * Returns all available regions for Prisma Accelerate.
16
+ */
17
+ export declare const getV1RegionsAccelerate: any;
18
+ //# sourceMappingURL=getV1RegionsAccelerate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getV1RegionsAccelerate.d.ts","sourceRoot":"","sources":["../../src/operations/getV1RegionsAccelerate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,2BAA2B,mBAGrC,CAAC;AACJ,MAAM,MAAM,2BAA2B,GACrC,OAAO,2BAA2B,CAAC,IAAI,CAAC;AAG1C,eAAO,MAAM,4BAA4B;;;;;;EASrC,CAAC;AACL,MAAM,MAAM,4BAA4B,GACtC,OAAO,4BAA4B,CAAC,IAAI,CAAC;AAG3C;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,KAKlC,CAAC"}
@@ -0,0 +1,26 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const GetV1RegionsAccelerateInput =
6
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/v1/regions/accelerate" }));
7
+ // Output Schema
8
+ export const GetV1RegionsAccelerateOutput =
9
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
10
+ data: Schema.Array(Schema.Struct({
11
+ id: Schema.String,
12
+ type: Schema.String,
13
+ name: Schema.String,
14
+ })),
15
+ });
16
+ // The operation
17
+ /**
18
+ * Get Prisma Accelerate regions
19
+ *
20
+ * Returns all available regions for Prisma Accelerate.
21
+ */
22
+ export const getV1RegionsAccelerate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
23
+ inputSchema: GetV1RegionsAccelerateInput,
24
+ outputSchema: GetV1RegionsAccelerateOutput,
25
+ }));
26
+ //# sourceMappingURL=getV1RegionsAccelerate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getV1RegionsAccelerate.js","sourceRoot":"","sources":["../../src/operations/getV1RegionsAccelerate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,2BAA2B;AACtC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAChD,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC,CAC1D,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B;AACvC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC,KAAK,CAChB,MAAM,CAAC,MAAM,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC,MAAM;QACjB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,IAAI,EAAE,MAAM,CAAC,MAAM;KACpB,CAAC,CACH;CACF,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACxE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,2BAA2B;IACxC,YAAY,EAAE,4BAA4B;CAC3C,CAAC,CACH,CAAC"}
@@ -0,0 +1,19 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const GetV1RegionsPostgresInput: Schema.Struct<{}>;
3
+ export type GetV1RegionsPostgresInput = typeof GetV1RegionsPostgresInput.Type;
4
+ export declare const GetV1RegionsPostgresOutput: Schema.Struct<{
5
+ readonly data: Schema.$Array<Schema.Struct<{
6
+ readonly id: Schema.String;
7
+ readonly type: Schema.String;
8
+ readonly name: Schema.String;
9
+ readonly status: Schema.Literals<readonly ["available", "unavailable"]>;
10
+ }>>;
11
+ }>;
12
+ export type GetV1RegionsPostgresOutput = typeof GetV1RegionsPostgresOutput.Type;
13
+ /**
14
+ * Get Prisma Postgres regions
15
+ *
16
+ * Returns all available regions for Prisma Postgres.
17
+ */
18
+ export declare const getV1RegionsPostgres: any;
19
+ //# sourceMappingURL=getV1RegionsPostgres.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getV1RegionsPostgres.d.ts","sourceRoot":"","sources":["../../src/operations/getV1RegionsPostgres.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,yBAAyB,mBAGnC,CAAC;AACJ,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E,eAAO,MAAM,0BAA0B;;;;;;;EAUnC,CAAC;AACL,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,KAKhC,CAAC"}
@@ -0,0 +1,27 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const GetV1RegionsPostgresInput =
6
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/v1/regions/postgres" }));
7
+ // Output Schema
8
+ export const GetV1RegionsPostgresOutput =
9
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
10
+ data: Schema.Array(Schema.Struct({
11
+ id: Schema.String,
12
+ type: Schema.String,
13
+ name: Schema.String,
14
+ status: Schema.Literals(["available", "unavailable"]),
15
+ })),
16
+ });
17
+ // The operation
18
+ /**
19
+ * Get Prisma Postgres regions
20
+ *
21
+ * Returns all available regions for Prisma Postgres.
22
+ */
23
+ export const getV1RegionsPostgres = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
24
+ inputSchema: GetV1RegionsPostgresInput,
25
+ outputSchema: GetV1RegionsPostgresOutput,
26
+ }));
27
+ //# sourceMappingURL=getV1RegionsPostgres.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getV1RegionsPostgres.js","sourceRoot":"","sources":["../../src/operations/getV1RegionsPostgres.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,yBAAyB;AACpC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAChD,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC,CACxD,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,0BAA0B;AACrC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC,KAAK,CAChB,MAAM,CAAC,MAAM,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC,MAAM;QACjB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;KACtD,CAAC,CACH;CACF,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACtE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,yBAAyB;IACtC,YAAY,EAAE,0BAA0B;CACzC,CAAC,CACH,CAAC"}
@@ -0,0 +1,27 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const GetV1WorkspacesInput: Schema.Struct<{
3
+ readonly cursor: Schema.optional<Schema.String>;
4
+ readonly limit: Schema.optional<Schema.Number>;
5
+ }>;
6
+ export type GetV1WorkspacesInput = typeof GetV1WorkspacesInput.Type;
7
+ export declare const GetV1WorkspacesOutput: Schema.Struct<{
8
+ readonly data: Schema.$Array<Schema.Struct<{
9
+ readonly id: Schema.String;
10
+ readonly type: Schema.String;
11
+ readonly url: Schema.String;
12
+ readonly name: Schema.String;
13
+ readonly createdAt: Schema.String;
14
+ }>>;
15
+ readonly pagination: Schema.Struct<{
16
+ readonly nextCursor: Schema.NullOr<Schema.String>;
17
+ readonly hasMore: Schema.Boolean;
18
+ }>;
19
+ }>;
20
+ export type GetV1WorkspacesOutput = typeof GetV1WorkspacesOutput.Type;
21
+ /**
22
+ * Get list of workspaces
23
+ *
24
+ * Returns the list of workspaces the current token can access.
25
+ */
26
+ export declare const getV1Workspaces: any;
27
+ //# sourceMappingURL=getV1Workspaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getV1Workspaces.d.ts","sourceRoot":"","sources":["../../src/operations/getV1Workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,oBAAoB;;;EAGyB,CAAC;AAC3D,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAchC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE;;;;GAIG;AACH,eAAO,MAAM,eAAe,KAGzB,CAAC"}
@@ -0,0 +1,33 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const GetV1WorkspacesInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6
+ cursor: Schema.optional(Schema.String),
7
+ limit: Schema.optional(Schema.Number),
8
+ }).pipe(T.Http({ method: "GET", path: "/v1/workspaces" }));
9
+ // Output Schema
10
+ export const GetV1WorkspacesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
11
+ data: Schema.Array(Schema.Struct({
12
+ id: Schema.String,
13
+ type: Schema.String,
14
+ url: Schema.String,
15
+ name: Schema.String,
16
+ createdAt: Schema.String,
17
+ })),
18
+ pagination: Schema.Struct({
19
+ nextCursor: Schema.NullOr(Schema.String),
20
+ hasMore: Schema.Boolean,
21
+ }),
22
+ });
23
+ // The operation
24
+ /**
25
+ * Get list of workspaces
26
+ *
27
+ * Returns the list of workspaces the current token can access.
28
+ */
29
+ export const getV1Workspaces = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30
+ inputSchema: GetV1WorkspacesInput,
31
+ outputSchema: GetV1WorkspacesOutput,
32
+ }));
33
+ //# sourceMappingURL=getV1Workspaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getV1Workspaces.js","sourceRoot":"","sources":["../../src/operations/getV1Workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5E,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACtC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAG3D,gBAAgB;AAChB,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7E,IAAI,EAAE,MAAM,CAAC,KAAK,CAChB,MAAM,CAAC,MAAM,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC,MAAM;QACjB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,GAAG,EAAE,MAAM,CAAC,MAAM;QAClB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,SAAS,EAAE,MAAM,CAAC,MAAM;KACzB,CAAC,CACH;IACD,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC;QACxB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;QACxC,OAAO,EAAE,MAAM,CAAC,OAAO;KACxB,CAAC;CACH,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACzE,WAAW,EAAE,oBAAoB;IACjC,YAAY,EAAE,qBAAqB;CACpC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const GetV1WorkspacesByIdInput: Schema.Struct<{
3
+ readonly id: Schema.String;
4
+ }>;
5
+ export type GetV1WorkspacesByIdInput = typeof GetV1WorkspacesByIdInput.Type;
6
+ export declare const GetV1WorkspacesByIdOutput: Schema.Struct<{
7
+ readonly data: Schema.Struct<{
8
+ readonly id: Schema.String;
9
+ readonly type: Schema.String;
10
+ readonly url: Schema.String;
11
+ readonly name: Schema.String;
12
+ readonly createdAt: Schema.String;
13
+ }>;
14
+ }>;
15
+ export type GetV1WorkspacesByIdOutput = typeof GetV1WorkspacesByIdOutput.Type;
16
+ /**
17
+ * Get workspace
18
+ *
19
+ * Returns the workspace with the given ID.
20
+ */
21
+ export declare const getV1WorkspacesById: any;
22
+ //# sourceMappingURL=getV1WorkspacesById.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getV1WorkspacesById.d.ts","sourceRoot":"","sources":["../../src/operations/getV1WorkspacesById.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,wBAAwB;;EAG4B,CAAC;AAClE,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E,eAAO,MAAM,yBAAyB;;;;;;;;EASlC,CAAC;AACL,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,KAG7B,CAAC"}
@@ -0,0 +1,30 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const GetV1WorkspacesByIdInput =
6
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ id: Schema.String.pipe(T.PathParam()),
8
+ }).pipe(T.Http({ method: "GET", path: "/v1/workspaces/{id}" }));
9
+ // Output Schema
10
+ export const GetV1WorkspacesByIdOutput =
11
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
12
+ data: Schema.Struct({
13
+ id: Schema.String,
14
+ type: Schema.String,
15
+ url: Schema.String,
16
+ name: Schema.String,
17
+ createdAt: Schema.String,
18
+ }),
19
+ });
20
+ // The operation
21
+ /**
22
+ * Get workspace
23
+ *
24
+ * Returns the workspace with the given ID.
25
+ */
26
+ export const getV1WorkspacesById = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
27
+ inputSchema: GetV1WorkspacesByIdInput,
28
+ outputSchema: GetV1WorkspacesByIdOutput,
29
+ }));
30
+ //# sourceMappingURL=getV1WorkspacesById.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getV1WorkspacesById.js","sourceRoot":"","sources":["../../src/operations/getV1WorkspacesById.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,wBAAwB;AACnC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CACtC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC,CAAC,CAAC;AAGlE,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB;AACpC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC;QAClB,EAAE,EAAE,MAAM,CAAC,MAAM;QACjB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,GAAG,EAAE,MAAM,CAAC,MAAM;QAClB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,SAAS,EAAE,MAAM,CAAC,MAAM;KACzB,CAAC;CACH,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;GAIG;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;CACxC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,37 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const GetV1WorkspacesByWorkspaceIdIntegrationsInput: Schema.Struct<{
3
+ readonly workspaceId: Schema.String;
4
+ readonly cursor: Schema.optional<Schema.String>;
5
+ readonly limit: Schema.optional<Schema.Number>;
6
+ }>;
7
+ export type GetV1WorkspacesByWorkspaceIdIntegrationsInput = typeof GetV1WorkspacesByWorkspaceIdIntegrationsInput.Type;
8
+ export declare const GetV1WorkspacesByWorkspaceIdIntegrationsOutput: Schema.Struct<{
9
+ readonly data: Schema.$Array<Schema.Struct<{
10
+ readonly id: Schema.String;
11
+ readonly url: Schema.String;
12
+ readonly createdAt: Schema.String;
13
+ readonly scopes: Schema.$Array<Schema.String>;
14
+ readonly client: Schema.Struct<{
15
+ readonly id: Schema.String;
16
+ readonly name: Schema.String;
17
+ readonly createdAt: Schema.String;
18
+ }>;
19
+ readonly createdByUser: Schema.Struct<{
20
+ readonly id: Schema.String;
21
+ readonly email: Schema.String;
22
+ readonly displayName: Schema.NullOr<Schema.String>;
23
+ }>;
24
+ }>>;
25
+ readonly pagination: Schema.Struct<{
26
+ readonly nextCursor: Schema.NullOr<Schema.String>;
27
+ readonly hasMore: Schema.Boolean;
28
+ }>;
29
+ }>;
30
+ export type GetV1WorkspacesByWorkspaceIdIntegrationsOutput = typeof GetV1WorkspacesByWorkspaceIdIntegrationsOutput.Type;
31
+ /**
32
+ * Get list of integrations
33
+ *
34
+ * Returns integrations for the given workspace.
35
+ */
36
+ export declare const getV1WorkspacesByWorkspaceIdIntegrations: any;
37
+ //# sourceMappingURL=getV1WorkspacesByWorkspaceIdIntegrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getV1WorkspacesByWorkspaceIdIntegrations.d.ts","sourceRoot":"","sources":["../../src/operations/getV1WorkspacesByWorkspaceIdIntegrations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,6CAA6C;;;;EAUvD,CAAC;AACJ,MAAM,MAAM,6CAA6C,GACvD,OAAO,6CAA6C,CAAC,IAAI,CAAC;AAG5D,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;EAwBvD,CAAC;AACL,MAAM,MAAM,8CAA8C,GACxD,OAAO,8CAA8C,CAAC,IAAI,CAAC;AAG7D;;;;GAIG;AACH,eAAO,MAAM,wCAAwC,KAIhD,CAAC"}
@@ -0,0 +1,49 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const GetV1WorkspacesByWorkspaceIdIntegrationsInput =
6
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ workspaceId: Schema.String.pipe(T.PathParam()),
8
+ cursor: Schema.optional(Schema.String),
9
+ limit: Schema.optional(Schema.Number),
10
+ }).pipe(T.Http({
11
+ method: "GET",
12
+ path: "/v1/workspaces/{workspaceId}/integrations",
13
+ }));
14
+ // Output Schema
15
+ export const GetV1WorkspacesByWorkspaceIdIntegrationsOutput =
16
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
17
+ data: Schema.Array(Schema.Struct({
18
+ id: Schema.String,
19
+ url: Schema.String,
20
+ createdAt: Schema.String,
21
+ scopes: Schema.Array(Schema.String),
22
+ client: Schema.Struct({
23
+ id: Schema.String,
24
+ name: Schema.String,
25
+ createdAt: Schema.String,
26
+ }),
27
+ createdByUser: Schema.Struct({
28
+ id: Schema.String,
29
+ email: Schema.String,
30
+ displayName: Schema.NullOr(Schema.String),
31
+ }),
32
+ })),
33
+ pagination: Schema.Struct({
34
+ nextCursor: Schema.NullOr(Schema.String),
35
+ hasMore: Schema.Boolean,
36
+ }),
37
+ });
38
+ // The operation
39
+ /**
40
+ * Get list of integrations
41
+ *
42
+ * Returns integrations for the given workspace.
43
+ */
44
+ export const getV1WorkspacesByWorkspaceIdIntegrations =
45
+ /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
46
+ inputSchema: GetV1WorkspacesByWorkspaceIdIntegrationsInput,
47
+ outputSchema: GetV1WorkspacesByWorkspaceIdIntegrationsOutput,
48
+ }));
49
+ //# sourceMappingURL=getV1WorkspacesByWorkspaceIdIntegrations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getV1WorkspacesByWorkspaceIdIntegrations.js","sourceRoot":"","sources":["../../src/operations/getV1WorkspacesByWorkspaceIdIntegrations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,6CAA6C;AACxD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC9C,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACtC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,2CAA2C;CAClD,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,8CAA8C;AACzD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC,KAAK,CAChB,MAAM,CAAC,MAAM,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC,MAAM;QACjB,GAAG,EAAE,MAAM,CAAC,MAAM;QAClB,SAAS,EAAE,MAAM,CAAC,MAAM;QACxB,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;QACnC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;YACpB,EAAE,EAAE,MAAM,CAAC,MAAM;YACjB,IAAI,EAAE,MAAM,CAAC,MAAM;YACnB,SAAS,EAAE,MAAM,CAAC,MAAM;SACzB,CAAC;QACF,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC;YAC3B,EAAE,EAAE,MAAM,CAAC,MAAM;YACjB,KAAK,EAAE,MAAM,CAAC,MAAM;YACpB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;SAC1C,CAAC;KACH,CAAC,CACH;IACD,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC;QACxB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;QACxC,OAAO,EAAE,MAAM,CAAC,OAAO;KACxB,CAAC;CACH,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,wCAAwC;AACnD,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,6CAA6C;IAC1D,YAAY,EAAE,8CAA8C;CAC7D,CAAC,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ export * from "./getV1Connections";
2
+ export * from "./postV1Connections";
3
+ export * from "./getV1ConnectionsById";
4
+ export * from "./deleteV1ConnectionsById";
5
+ export * from "./getV1Databases";
6
+ export * from "./postV1Databases";
7
+ export * from "./getV1DatabasesByDatabaseId";
8
+ export * from "./patchV1DatabasesByDatabaseId";
9
+ export * from "./deleteV1DatabasesByDatabaseId";
10
+ export * from "./getV1DatabasesByDatabaseIdConnections";
11
+ export * from "./postV1DatabasesByDatabaseIdConnections";
12
+ export * from "./getV1DatabasesByDatabaseIdBackups";
13
+ export * from "./getV1DatabasesByDatabaseIdUsage";
14
+ export * from "./getV1Projects";
15
+ export * from "./postV1Projects";
16
+ export * from "./getV1ProjectsById";
17
+ export * from "./patchV1ProjectsById";
18
+ export * from "./deleteV1ProjectsById";
19
+ export * from "./postV1ProjectsByIdTransfer";
20
+ export * from "./getV1ProjectsByProjectIdDatabases";
21
+ export * from "./postV1ProjectsByProjectIdDatabases";
22
+ export * from "./getV1Integrations";
23
+ export * from "./getV1IntegrationsById";
24
+ export * from "./deleteV1IntegrationsById";
25
+ export * from "./getV1WorkspacesByWorkspaceIdIntegrations";
26
+ export * from "./deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId";
27
+ export * from "./getV1Regions";
28
+ export * from "./getV1RegionsPostgres";
29
+ export * from "./getV1RegionsAccelerate";
30
+ export * from "./getV1Workspaces";
31
+ export * from "./getV1WorkspacesById";
32
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yDAAyD,CAAC;AACxE,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,32 @@
1
+ export * from "./getV1Connections";
2
+ export * from "./postV1Connections";
3
+ export * from "./getV1ConnectionsById";
4
+ export * from "./deleteV1ConnectionsById";
5
+ export * from "./getV1Databases";
6
+ export * from "./postV1Databases";
7
+ export * from "./getV1DatabasesByDatabaseId";
8
+ export * from "./patchV1DatabasesByDatabaseId";
9
+ export * from "./deleteV1DatabasesByDatabaseId";
10
+ export * from "./getV1DatabasesByDatabaseIdConnections";
11
+ export * from "./postV1DatabasesByDatabaseIdConnections";
12
+ export * from "./getV1DatabasesByDatabaseIdBackups";
13
+ export * from "./getV1DatabasesByDatabaseIdUsage";
14
+ export * from "./getV1Projects";
15
+ export * from "./postV1Projects";
16
+ export * from "./getV1ProjectsById";
17
+ export * from "./patchV1ProjectsById";
18
+ export * from "./deleteV1ProjectsById";
19
+ export * from "./postV1ProjectsByIdTransfer";
20
+ export * from "./getV1ProjectsByProjectIdDatabases";
21
+ export * from "./postV1ProjectsByProjectIdDatabases";
22
+ export * from "./getV1Integrations";
23
+ export * from "./getV1IntegrationsById";
24
+ export * from "./deleteV1IntegrationsById";
25
+ export * from "./getV1WorkspacesByWorkspaceIdIntegrations";
26
+ export * from "./deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId";
27
+ export * from "./getV1Regions";
28
+ export * from "./getV1RegionsPostgres";
29
+ export * from "./getV1RegionsAccelerate";
30
+ export * from "./getV1Workspaces";
31
+ export * from "./getV1WorkspacesById";
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yDAAyD,CAAC;AACxE,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,67 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const PatchV1DatabasesByDatabaseIdInput: Schema.Struct<{
3
+ readonly databaseId: Schema.String;
4
+ readonly name: Schema.optional<Schema.String>;
5
+ }>;
6
+ export type PatchV1DatabasesByDatabaseIdInput = typeof PatchV1DatabasesByDatabaseIdInput.Type;
7
+ export declare const PatchV1DatabasesByDatabaseIdOutput: Schema.Struct<{
8
+ readonly data: Schema.Struct<{
9
+ readonly id: Schema.String;
10
+ readonly type: Schema.String;
11
+ readonly url: Schema.String;
12
+ readonly name: Schema.String;
13
+ readonly status: Schema.Literals<readonly ["failure", "provisioning", "ready", "recovering"]>;
14
+ readonly createdAt: Schema.String;
15
+ readonly isDefault: Schema.Boolean;
16
+ readonly defaultConnectionId: Schema.NullOr<Schema.String>;
17
+ readonly connections: Schema.$Array<Schema.Struct<{
18
+ readonly id: Schema.String;
19
+ readonly type: Schema.String;
20
+ readonly url: Schema.String;
21
+ readonly name: Schema.String;
22
+ readonly createdAt: Schema.String;
23
+ readonly kind: Schema.Literals<readonly ["postgres", "accelerate"]>;
24
+ readonly endpoints: Schema.Struct<{
25
+ readonly direct: Schema.optional<Schema.Struct<{
26
+ readonly host: Schema.String;
27
+ readonly port: Schema.Number;
28
+ }>>;
29
+ readonly pooled: Schema.optional<Schema.Struct<{
30
+ readonly host: Schema.String;
31
+ readonly port: Schema.Number;
32
+ }>>;
33
+ readonly accelerate: Schema.optional<Schema.Struct<{
34
+ readonly host: Schema.String;
35
+ readonly port: Schema.Number;
36
+ }>>;
37
+ }>;
38
+ readonly directConnection: Schema.optional<Schema.NullOr<Schema.Struct<{
39
+ readonly host: Schema.String;
40
+ readonly pass: Schema.String;
41
+ readonly user: Schema.String;
42
+ }>>>;
43
+ readonly database: Schema.Struct<{
44
+ readonly id: Schema.String;
45
+ readonly url: Schema.String;
46
+ readonly name: Schema.String;
47
+ }>;
48
+ }>>;
49
+ readonly project: Schema.Struct<{
50
+ readonly id: Schema.String;
51
+ readonly url: Schema.String;
52
+ readonly name: Schema.String;
53
+ }>;
54
+ readonly region: Schema.NullOr<Schema.Struct<{
55
+ readonly id: Schema.String;
56
+ readonly name: Schema.String;
57
+ }>>;
58
+ }>;
59
+ }>;
60
+ export type PatchV1DatabasesByDatabaseIdOutput = typeof PatchV1DatabasesByDatabaseIdOutput.Type;
61
+ /**
62
+ * Update database
63
+ *
64
+ * Updates the database with the given ID.
65
+ */
66
+ export declare const patchV1DatabasesByDatabaseId: any;
67
+ //# sourceMappingURL=patchV1DatabasesByDatabaseId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patchV1DatabasesByDatabaseId.d.ts","sourceRoot":"","sources":["../../src/operations/patchV1DatabasesByDatabaseId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,iCAAiC;;;EAI4B,CAAC;AAC3E,MAAM,MAAM,iCAAiC,GAC3C,OAAO,iCAAiC,CAAC,IAAI,CAAC;AAGhD,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwE3C,CAAC;AACL,MAAM,MAAM,kCAAkC,GAC5C,OAAO,kCAAkC,CAAC,IAAI,CAAC;AAGjD;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,KAIpC,CAAC"}
@@ -0,0 +1,81 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const PatchV1DatabasesByDatabaseIdInput =
6
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ databaseId: Schema.String.pipe(T.PathParam()),
8
+ name: Schema.optional(Schema.String),
9
+ }).pipe(T.Http({ method: "PATCH", path: "/v1/databases/{databaseId}" }));
10
+ // Output Schema
11
+ export const PatchV1DatabasesByDatabaseIdOutput =
12
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
13
+ data: Schema.Struct({
14
+ id: Schema.String,
15
+ type: Schema.String,
16
+ url: Schema.String,
17
+ name: Schema.String,
18
+ status: Schema.Literals([
19
+ "failure",
20
+ "provisioning",
21
+ "ready",
22
+ "recovering",
23
+ ]),
24
+ createdAt: Schema.String,
25
+ isDefault: Schema.Boolean,
26
+ defaultConnectionId: Schema.NullOr(Schema.String),
27
+ connections: Schema.Array(Schema.Struct({
28
+ id: Schema.String,
29
+ type: Schema.String,
30
+ url: Schema.String,
31
+ name: Schema.String,
32
+ createdAt: Schema.String,
33
+ kind: Schema.Literals(["postgres", "accelerate"]),
34
+ endpoints: Schema.Struct({
35
+ direct: Schema.optional(Schema.Struct({
36
+ host: Schema.String,
37
+ port: Schema.Number,
38
+ })),
39
+ pooled: Schema.optional(Schema.Struct({
40
+ host: Schema.String,
41
+ port: Schema.Number,
42
+ })),
43
+ accelerate: Schema.optional(Schema.Struct({
44
+ host: Schema.String,
45
+ port: Schema.Number,
46
+ })),
47
+ }),
48
+ directConnection: Schema.optional(Schema.NullOr(Schema.Struct({
49
+ host: Schema.String,
50
+ pass: Schema.String,
51
+ user: Schema.String,
52
+ }))),
53
+ database: Schema.Struct({
54
+ id: Schema.String,
55
+ url: Schema.String,
56
+ name: Schema.String,
57
+ }),
58
+ })),
59
+ project: Schema.Struct({
60
+ id: Schema.String,
61
+ url: Schema.String,
62
+ name: Schema.String,
63
+ }),
64
+ region: Schema.NullOr(Schema.Struct({
65
+ id: Schema.String,
66
+ name: Schema.String,
67
+ })),
68
+ }),
69
+ });
70
+ // The operation
71
+ /**
72
+ * Update database
73
+ *
74
+ * Updates the database with the given ID.
75
+ */
76
+ export const patchV1DatabasesByDatabaseId =
77
+ /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
78
+ inputSchema: PatchV1DatabasesByDatabaseIdInput,
79
+ outputSchema: PatchV1DatabasesByDatabaseIdOutput,
80
+ }));
81
+ //# sourceMappingURL=patchV1DatabasesByDatabaseId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patchV1DatabasesByDatabaseId.js","sourceRoot":"","sources":["../../src/operations/patchV1DatabasesByDatabaseId.ts"],"names":[],"mappings":"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"}