@distilled.cloud/prisma-postgres 0.10.1 → 0.11.0

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 (186) hide show
  1. package/lib/client.d.ts +2 -2
  2. package/lib/client.d.ts.map +1 -1
  3. package/lib/client.js +6 -0
  4. package/lib/client.js.map +1 -1
  5. package/lib/operations/deleteV1ComputeServicesByComputeServiceId.d.ts +3 -1
  6. package/lib/operations/deleteV1ComputeServicesByComputeServiceId.d.ts.map +1 -1
  7. package/lib/operations/deleteV1ComputeServicesVersionsByVersionId.d.ts +3 -1
  8. package/lib/operations/deleteV1ComputeServicesVersionsByVersionId.d.ts.map +1 -1
  9. package/lib/operations/deleteV1ConnectionsById.d.ts +4 -1
  10. package/lib/operations/deleteV1ConnectionsById.d.ts.map +1 -1
  11. package/lib/operations/deleteV1ConnectionsById.js +2 -0
  12. package/lib/operations/deleteV1ConnectionsById.js.map +1 -1
  13. package/lib/operations/deleteV1DatabasesByDatabaseId.d.ts +4 -1
  14. package/lib/operations/deleteV1DatabasesByDatabaseId.d.ts.map +1 -1
  15. package/lib/operations/deleteV1DatabasesByDatabaseId.js +2 -0
  16. package/lib/operations/deleteV1DatabasesByDatabaseId.js.map +1 -1
  17. package/lib/operations/deleteV1IntegrationsById.d.ts +4 -1
  18. package/lib/operations/deleteV1IntegrationsById.d.ts.map +1 -1
  19. package/lib/operations/deleteV1IntegrationsById.js +2 -0
  20. package/lib/operations/deleteV1IntegrationsById.js.map +1 -1
  21. package/lib/operations/deleteV1ProjectsById.d.ts +4 -1
  22. package/lib/operations/deleteV1ProjectsById.d.ts.map +1 -1
  23. package/lib/operations/deleteV1ProjectsById.js +2 -0
  24. package/lib/operations/deleteV1ProjectsById.js.map +1 -1
  25. package/lib/operations/deleteV1VersionsByVersionId.d.ts +3 -1
  26. package/lib/operations/deleteV1VersionsByVersionId.d.ts.map +1 -1
  27. package/lib/operations/deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId.d.ts +5 -1
  28. package/lib/operations/deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId.d.ts.map +1 -1
  29. package/lib/operations/deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId.js +2 -0
  30. package/lib/operations/deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId.js.map +1 -1
  31. package/lib/operations/getV1ComputeServices.d.ts +24 -1
  32. package/lib/operations/getV1ComputeServices.d.ts.map +1 -1
  33. package/lib/operations/getV1ComputeServicesByComputeServiceId.d.ts +18 -1
  34. package/lib/operations/getV1ComputeServicesByComputeServiceId.d.ts.map +1 -1
  35. package/lib/operations/getV1ComputeServicesByComputeServiceIdVersions.d.ts +17 -1
  36. package/lib/operations/getV1ComputeServicesByComputeServiceIdVersions.d.ts.map +1 -1
  37. package/lib/operations/getV1ComputeServicesVersionsByVersionId.d.ts +19 -1
  38. package/lib/operations/getV1ComputeServicesVersionsByVersionId.d.ts.map +1 -1
  39. package/lib/operations/getV1ComputeServicesVersionsByVersionIdLogs.d.ts +6 -1
  40. package/lib/operations/getV1ComputeServicesVersionsByVersionIdLogs.d.ts.map +1 -1
  41. package/lib/operations/getV1Connections.d.ts +42 -1
  42. package/lib/operations/getV1Connections.d.ts.map +1 -1
  43. package/lib/operations/getV1ConnectionsById.d.ts +37 -1
  44. package/lib/operations/getV1ConnectionsById.d.ts.map +1 -1
  45. package/lib/operations/getV1ConnectionsById.js +2 -0
  46. package/lib/operations/getV1ConnectionsById.js.map +1 -1
  47. package/lib/operations/getV1Databases.d.ts +63 -1
  48. package/lib/operations/getV1Databases.d.ts.map +1 -1
  49. package/lib/operations/getV1Databases.js +2 -0
  50. package/lib/operations/getV1Databases.js.map +1 -1
  51. package/lib/operations/getV1DatabasesByDatabaseId.d.ts +57 -1
  52. package/lib/operations/getV1DatabasesByDatabaseId.d.ts.map +1 -1
  53. package/lib/operations/getV1DatabasesByDatabaseId.js +2 -0
  54. package/lib/operations/getV1DatabasesByDatabaseId.js.map +1 -1
  55. package/lib/operations/getV1DatabasesByDatabaseIdBackups.d.ts +21 -1
  56. package/lib/operations/getV1DatabasesByDatabaseIdBackups.d.ts.map +1 -1
  57. package/lib/operations/getV1DatabasesByDatabaseIdBackups.js +2 -0
  58. package/lib/operations/getV1DatabasesByDatabaseIdBackups.js.map +1 -1
  59. package/lib/operations/getV1DatabasesByDatabaseIdConnections.d.ts +43 -1
  60. package/lib/operations/getV1DatabasesByDatabaseIdConnections.d.ts.map +1 -1
  61. package/lib/operations/getV1DatabasesByDatabaseIdConnections.js +2 -0
  62. package/lib/operations/getV1DatabasesByDatabaseIdConnections.js.map +1 -1
  63. package/lib/operations/getV1DatabasesByDatabaseIdUsage.d.ts +22 -1
  64. package/lib/operations/getV1DatabasesByDatabaseIdUsage.d.ts.map +1 -1
  65. package/lib/operations/getV1DatabasesByDatabaseIdUsage.js +2 -0
  66. package/lib/operations/getV1DatabasesByDatabaseIdUsage.js.map +1 -1
  67. package/lib/operations/getV1Integrations.d.ts +26 -1
  68. package/lib/operations/getV1Integrations.d.ts.map +1 -1
  69. package/lib/operations/getV1IntegrationsById.d.ts +21 -1
  70. package/lib/operations/getV1IntegrationsById.d.ts.map +1 -1
  71. package/lib/operations/getV1IntegrationsById.js +2 -0
  72. package/lib/operations/getV1IntegrationsById.js.map +1 -1
  73. package/lib/operations/getV1Projects.d.ts +22 -1
  74. package/lib/operations/getV1Projects.d.ts.map +1 -1
  75. package/lib/operations/getV1ProjectsById.d.ts +18 -1
  76. package/lib/operations/getV1ProjectsById.d.ts.map +1 -1
  77. package/lib/operations/getV1ProjectsById.js +2 -0
  78. package/lib/operations/getV1ProjectsById.js.map +1 -1
  79. package/lib/operations/getV1ProjectsByProjectIdComputeServices.d.ts +24 -1
  80. package/lib/operations/getV1ProjectsByProjectIdComputeServices.d.ts.map +1 -1
  81. package/lib/operations/getV1ProjectsByProjectIdDatabases.d.ts +63 -1
  82. package/lib/operations/getV1ProjectsByProjectIdDatabases.d.ts.map +1 -1
  83. package/lib/operations/getV1ProjectsByProjectIdDatabases.js +2 -0
  84. package/lib/operations/getV1ProjectsByProjectIdDatabases.js.map +1 -1
  85. package/lib/operations/getV1Regions.d.ts +11 -1
  86. package/lib/operations/getV1Regions.d.ts.map +1 -1
  87. package/lib/operations/getV1RegionsAccelerate.d.ts +7 -1
  88. package/lib/operations/getV1RegionsAccelerate.d.ts.map +1 -1
  89. package/lib/operations/getV1RegionsPostgres.d.ts +8 -1
  90. package/lib/operations/getV1RegionsPostgres.d.ts.map +1 -1
  91. package/lib/operations/getV1Versions.d.ts +17 -1
  92. package/lib/operations/getV1Versions.d.ts.map +1 -1
  93. package/lib/operations/getV1VersionsByVersionId.d.ts +19 -1
  94. package/lib/operations/getV1VersionsByVersionId.d.ts.map +1 -1
  95. package/lib/operations/getV1Workspaces.d.ts +16 -1
  96. package/lib/operations/getV1Workspaces.d.ts.map +1 -1
  97. package/lib/operations/getV1WorkspacesById.d.ts +12 -1
  98. package/lib/operations/getV1WorkspacesById.d.ts.map +1 -1
  99. package/lib/operations/getV1WorkspacesById.js +2 -0
  100. package/lib/operations/getV1WorkspacesById.js.map +1 -1
  101. package/lib/operations/getV1WorkspacesByWorkspaceIdIntegrations.d.ts +27 -1
  102. package/lib/operations/getV1WorkspacesByWorkspaceIdIntegrations.d.ts.map +1 -1
  103. package/lib/operations/getV1WorkspacesByWorkspaceIdIntegrations.js +2 -0
  104. package/lib/operations/getV1WorkspacesByWorkspaceIdIntegrations.js.map +1 -1
  105. package/lib/operations/patchV1ComputeServicesByComputeServiceId.d.ts +19 -1
  106. package/lib/operations/patchV1ComputeServicesByComputeServiceId.d.ts.map +1 -1
  107. package/lib/operations/patchV1DatabasesByDatabaseId.d.ts +58 -1
  108. package/lib/operations/patchV1DatabasesByDatabaseId.d.ts.map +1 -1
  109. package/lib/operations/patchV1DatabasesByDatabaseId.js +2 -0
  110. package/lib/operations/patchV1DatabasesByDatabaseId.js.map +1 -1
  111. package/lib/operations/patchV1ProjectsById.d.ts +22 -1
  112. package/lib/operations/patchV1ProjectsById.d.ts.map +1 -1
  113. package/lib/operations/patchV1ProjectsById.js +2 -0
  114. package/lib/operations/patchV1ProjectsById.js.map +1 -1
  115. package/lib/operations/postV1ComputeServices.d.ts +20 -1
  116. package/lib/operations/postV1ComputeServices.d.ts.map +1 -1
  117. package/lib/operations/postV1ComputeServicesByComputeServiceIdPromote.d.ts +8 -1
  118. package/lib/operations/postV1ComputeServicesByComputeServiceIdPromote.d.ts.map +1 -1
  119. package/lib/operations/postV1ComputeServicesByComputeServiceIdVersions.d.ts +18 -1
  120. package/lib/operations/postV1ComputeServicesByComputeServiceIdVersions.d.ts.map +1 -1
  121. package/lib/operations/postV1ComputeServicesVersionsByVersionIdStart.d.ts +7 -1
  122. package/lib/operations/postV1ComputeServicesVersionsByVersionIdStart.d.ts.map +1 -1
  123. package/lib/operations/postV1ComputeServicesVersionsByVersionIdStop.d.ts +3 -1
  124. package/lib/operations/postV1ComputeServicesVersionsByVersionIdStop.d.ts.map +1 -1
  125. package/lib/operations/postV1Connections.d.ts +45 -1
  126. package/lib/operations/postV1Connections.d.ts.map +1 -1
  127. package/lib/operations/postV1Connections.js +2 -0
  128. package/lib/operations/postV1Connections.js.map +1 -1
  129. package/lib/operations/postV1ConnectionsByIdRotate.d.ts +43 -1
  130. package/lib/operations/postV1ConnectionsByIdRotate.d.ts.map +1 -1
  131. package/lib/operations/postV1Databases.d.ts +64 -1
  132. package/lib/operations/postV1Databases.d.ts.map +1 -1
  133. package/lib/operations/postV1Databases.js +2 -0
  134. package/lib/operations/postV1Databases.js.map +1 -1
  135. package/lib/operations/postV1DatabasesByDatabaseIdConnections.d.ts +45 -1
  136. package/lib/operations/postV1DatabasesByDatabaseIdConnections.d.ts.map +1 -1
  137. package/lib/operations/postV1DatabasesByDatabaseIdConnections.js +2 -0
  138. package/lib/operations/postV1DatabasesByDatabaseIdConnections.js.map +1 -1
  139. package/lib/operations/postV1DatabasesByTargetDatabaseIdRestore.d.ts +65 -1
  140. package/lib/operations/postV1DatabasesByTargetDatabaseIdRestore.d.ts.map +1 -1
  141. package/lib/operations/postV1Projects.d.ts +104 -1
  142. package/lib/operations/postV1Projects.d.ts.map +1 -1
  143. package/lib/operations/postV1Projects.js +2 -0
  144. package/lib/operations/postV1Projects.js.map +1 -1
  145. package/lib/operations/postV1ProjectsByIdTransfer.d.ts +5 -1
  146. package/lib/operations/postV1ProjectsByIdTransfer.d.ts.map +1 -1
  147. package/lib/operations/postV1ProjectsByIdTransfer.js +2 -0
  148. package/lib/operations/postV1ProjectsByIdTransfer.js.map +1 -1
  149. package/lib/operations/postV1ProjectsByProjectIdComputeServices.d.ts +20 -1
  150. package/lib/operations/postV1ProjectsByProjectIdComputeServices.d.ts.map +1 -1
  151. package/lib/operations/postV1ProjectsByProjectIdDatabases.d.ts +102 -1
  152. package/lib/operations/postV1ProjectsByProjectIdDatabases.d.ts.map +1 -1
  153. package/lib/operations/postV1ProjectsByProjectIdDatabases.js +2 -0
  154. package/lib/operations/postV1ProjectsByProjectIdDatabases.js.map +1 -1
  155. package/lib/operations/postV1Versions.d.ts +18 -1
  156. package/lib/operations/postV1Versions.d.ts.map +1 -1
  157. package/lib/operations/postV1VersionsByVersionIdStart.d.ts +7 -1
  158. package/lib/operations/postV1VersionsByVersionIdStart.d.ts.map +1 -1
  159. package/lib/operations/postV1VersionsByVersionIdStop.d.ts +3 -1
  160. package/lib/operations/postV1VersionsByVersionIdStop.d.ts.map +1 -1
  161. package/package.json +3 -2
  162. package/src/client.ts +7 -0
  163. package/src/operations/deleteV1ConnectionsById.ts +2 -0
  164. package/src/operations/deleteV1DatabasesByDatabaseId.ts +2 -0
  165. package/src/operations/deleteV1IntegrationsById.ts +2 -0
  166. package/src/operations/deleteV1ProjectsById.ts +2 -0
  167. package/src/operations/deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId.ts +2 -0
  168. package/src/operations/getV1ConnectionsById.ts +2 -0
  169. package/src/operations/getV1Databases.ts +2 -0
  170. package/src/operations/getV1DatabasesByDatabaseId.ts +2 -0
  171. package/src/operations/getV1DatabasesByDatabaseIdBackups.ts +2 -0
  172. package/src/operations/getV1DatabasesByDatabaseIdConnections.ts +2 -0
  173. package/src/operations/getV1DatabasesByDatabaseIdUsage.ts +2 -0
  174. package/src/operations/getV1IntegrationsById.ts +2 -0
  175. package/src/operations/getV1ProjectsById.ts +2 -0
  176. package/src/operations/getV1ProjectsByProjectIdDatabases.ts +2 -0
  177. package/src/operations/getV1WorkspacesById.ts +2 -0
  178. package/src/operations/getV1WorkspacesByWorkspaceIdIntegrations.ts +2 -0
  179. package/src/operations/patchV1DatabasesByDatabaseId.ts +2 -0
  180. package/src/operations/patchV1ProjectsById.ts +2 -0
  181. package/src/operations/postV1Connections.ts +2 -0
  182. package/src/operations/postV1Databases.ts +7 -0
  183. package/src/operations/postV1DatabasesByDatabaseIdConnections.ts +2 -0
  184. package/src/operations/postV1Projects.ts +2 -0
  185. package/src/operations/postV1ProjectsByIdTransfer.ts +2 -0
  186. package/src/operations/postV1ProjectsByProjectIdDatabases.ts +7 -0
@@ -1 +1 @@
1
- {"version":3,"file":"patchV1ProjectsById.js","sourceRoot":"","sources":["../../src/operations/patchV1ProjectsById.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;IACrC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,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AAG,EAAE,CAAC,CAAC;IAC7E,WAAW,EAAE,wBAAwB;IACrC,YAAY,EAAE,yBAAyB;IACvC,MAAM,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,mBAAmB,CAAU;CAC5D,CAAC,CAAC,CAAC"}
@@ -28,5 +28,24 @@ export type PostV1ComputeServicesOutput = typeof PostV1ComputeServicesOutput.Typ
28
28
  * ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
29
29
  * Creates a new compute service under the specified project. The `projectId` is required in the request body. The service is placed in the given region (or the default region if omitted).
30
30
  */
31
- export declare const postV1ComputeServices: any;
31
+ export declare const postV1ComputeServices: import("@distilled.cloud/core/client").OperationMethod<{
32
+ readonly displayName: string;
33
+ readonly projectId: string;
34
+ readonly regionId?: "ap-northeast-1" | "ap-southeast-1" | "eu-central-1" | "eu-west-3" | "us-east-1" | "us-west-1" | undefined;
35
+ }, {
36
+ readonly data: {
37
+ readonly createdAt: string;
38
+ readonly id: string;
39
+ readonly latestVersionId: string | null;
40
+ readonly name: string;
41
+ readonly projectId: string;
42
+ readonly region: {
43
+ readonly id: string;
44
+ readonly name: string;
45
+ };
46
+ readonly serviceEndpointDomain: string;
47
+ readonly type: string;
48
+ readonly url: string;
49
+ };
50
+ }, never, any>;
32
51
  //# sourceMappingURL=postV1ComputeServices.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postV1ComputeServices.d.ts","sourceRoot":"","sources":["../../src/operations/postV1ComputeServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,0BAA0B;;;;EAc4B,CAAC;AACpE,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAgBpC,CAAC;AACL,MAAM,MAAM,2BAA2B,GACrC,OAAO,2BAA2B,CAAC,IAAI,CAAC;AAG1C;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,KAKjC,CAAC"}
1
+ {"version":3,"file":"postV1ComputeServices.d.ts","sourceRoot":"","sources":["../../src/operations/postV1ComputeServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,0BAA0B;;;;EAc4B,CAAC;AACpE,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAgBpC,CAAC;AACL,MAAM,MAAM,2BAA2B,GACrC,OAAO,2BAA2B,CAAC,IAAI,CAAC;AAG1C;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;cAKjC,CAAC"}
@@ -16,5 +16,12 @@ export type PostV1ComputeServicesByComputeServiceIdPromoteOutput = typeof PostV1
16
16
  * ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
17
17
  * Promotes a compute version to be the active version behind the service's stable endpoint. The version must be running. Returns the service endpoint domain.
18
18
  */
19
- export declare const postV1ComputeServicesByComputeServiceIdPromote: any;
19
+ export declare const postV1ComputeServicesByComputeServiceIdPromote: import("@distilled.cloud/core/client").OperationMethod<{
20
+ readonly computeServiceId: string;
21
+ readonly versionId: string;
22
+ }, {
23
+ readonly data: {
24
+ readonly serviceEndpointDomain: string;
25
+ };
26
+ }, never, any>;
20
27
  //# sourceMappingURL=postV1ComputeServicesByComputeServiceIdPromote.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postV1ComputeServicesByComputeServiceIdPromote.d.ts","sourceRoot":"","sources":["../../src/operations/postV1ComputeServicesByComputeServiceIdPromote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,mDAAmD;;;EAS7D,CAAC;AACJ,MAAM,MAAM,mDAAmD,GAC7D,OAAO,mDAAmD,CAAC,IAAI,CAAC;AAGlE,eAAO,MAAM,oDAAoD;;;;EAK7D,CAAC;AACL,MAAM,MAAM,oDAAoD,GAC9D,OAAO,oDAAoD,CAAC,IAAI,CAAC;AAGnE;;;;;GAKG;AACH,eAAO,MAAM,8CAA8C,KAItD,CAAC"}
1
+ {"version":3,"file":"postV1ComputeServicesByComputeServiceIdPromote.d.ts","sourceRoot":"","sources":["../../src/operations/postV1ComputeServicesByComputeServiceIdPromote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,mDAAmD;;;EAS7D,CAAC;AACJ,MAAM,MAAM,mDAAmD,GAC7D,OAAO,mDAAmD,CAAC,IAAI,CAAC;AAGlE,eAAO,MAAM,oDAAoD;;;;EAK7D,CAAC;AACL,MAAM,MAAM,oDAAoD,GAC9D,OAAO,oDAAoD,CAAC,IAAI,CAAC;AAGnE;;;;;GAKG;AACH,eAAO,MAAM,8CAA8C;;;;;;;cAItD,CAAC"}
@@ -24,5 +24,22 @@ export type PostV1ComputeServicesByComputeServiceIdVersionsOutput = typeof PostV
24
24
  * ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
25
25
  * Creates a new compute version under the specified compute service. Returns a pre-signed upload URL for the artifact unless `skipCodeUpload` is set (which forks the latest version's artifact). Environment variables are merged with the previous version's variables when one exists.
26
26
  */
27
- export declare const postV1ComputeServicesByComputeServiceIdVersions: any;
27
+ export declare const postV1ComputeServicesByComputeServiceIdVersions: import("@distilled.cloud/core/client").OperationMethod<{
28
+ readonly computeServiceId: string;
29
+ readonly envVars?: {
30
+ readonly [x: string]: unknown;
31
+ } | undefined;
32
+ readonly portMapping?: {
33
+ readonly http?: unknown;
34
+ } | undefined;
35
+ readonly skipCodeUpload?: boolean | undefined;
36
+ }, {
37
+ readonly data: {
38
+ readonly foundryVersionId: string;
39
+ readonly id: string;
40
+ readonly type: string;
41
+ readonly uploadUrl: string | null;
42
+ readonly url: string;
43
+ };
44
+ }, never, any>;
28
45
  //# sourceMappingURL=postV1ComputeServicesByComputeServiceIdVersions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postV1ComputeServicesByComputeServiceIdVersions.d.ts","sourceRoot":"","sources":["../../src/operations/postV1ComputeServicesByComputeServiceIdVersions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,oDAAoD;;;;;;;EAe9D,CAAC;AACJ,MAAM,MAAM,oDAAoD,GAC9D,OAAO,oDAAoD,CAAC,IAAI,CAAC;AAGnE,eAAO,MAAM,qDAAqD;;;;;;;;EAS9D,CAAC;AACL,MAAM,MAAM,qDAAqD,GAC/D,OAAO,qDAAqD,CAAC,IAAI,CAAC;AAGpE;;;;;GAKG;AACH,eAAO,MAAM,+CAA+C,KAIvD,CAAC"}
1
+ {"version":3,"file":"postV1ComputeServicesByComputeServiceIdVersions.d.ts","sourceRoot":"","sources":["../../src/operations/postV1ComputeServicesByComputeServiceIdVersions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,oDAAoD;;;;;;;EAe9D,CAAC;AACJ,MAAM,MAAM,oDAAoD,GAC9D,OAAO,oDAAoD,CAAC,IAAI,CAAC;AAGnE,eAAO,MAAM,qDAAqD;;;;;;;;EAS9D,CAAC;AACL,MAAM,MAAM,qDAAqD,GAC/D,OAAO,qDAAqD,CAAC,IAAI,CAAC;AAGpE;;;;;GAKG;AACH,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;cAIvD,CAAC"}
@@ -15,5 +15,11 @@ export type PostV1ComputeServicesVersionsByVersionIdStartOutput = typeof PostV1C
15
15
  * ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
16
16
  * Requests VM creation and startup for the compute version. The artifact must be uploaded before calling this endpoint. Returns a preview domain that becomes reachable once the VM is running. Poll the status endpoint until `running` is reached.
17
17
  */
18
- export declare const postV1ComputeServicesVersionsByVersionIdStart: any;
18
+ export declare const postV1ComputeServicesVersionsByVersionIdStart: import("@distilled.cloud/core/client").OperationMethod<{
19
+ readonly versionId: string;
20
+ }, {
21
+ readonly data: {
22
+ readonly previewDomain: string;
23
+ };
24
+ }, never, any>;
19
25
  //# sourceMappingURL=postV1ComputeServicesVersionsByVersionIdStart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postV1ComputeServicesVersionsByVersionIdStart.d.ts","sourceRoot":"","sources":["../../src/operations/postV1ComputeServicesVersionsByVersionIdStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,kDAAkD;;EAQ5D,CAAC;AACJ,MAAM,MAAM,kDAAkD,GAC5D,OAAO,kDAAkD,CAAC,IAAI,CAAC;AAGjE,eAAO,MAAM,mDAAmD;;;;EAK5D,CAAC;AACL,MAAM,MAAM,mDAAmD,GAC7D,OAAO,mDAAmD,CAAC,IAAI,CAAC;AAGlE;;;;;GAKG;AACH,eAAO,MAAM,6CAA6C,KAIrD,CAAC"}
1
+ {"version":3,"file":"postV1ComputeServicesVersionsByVersionIdStart.d.ts","sourceRoot":"","sources":["../../src/operations/postV1ComputeServicesVersionsByVersionIdStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,kDAAkD;;EAQ5D,CAAC;AACJ,MAAM,MAAM,kDAAkD,GAC5D,OAAO,kDAAkD,CAAC,IAAI,CAAC;AAGjE,eAAO,MAAM,mDAAmD;;;;EAK5D,CAAC;AACL,MAAM,MAAM,mDAAmD,GAC7D,OAAO,mDAAmD,CAAC,IAAI,CAAC;AAGlE;;;;;GAKG;AACH,eAAO,MAAM,6CAA6C;;;;;;cAIrD,CAAC"}
@@ -11,5 +11,7 @@ export type PostV1ComputeServicesVersionsByVersionIdStopOutput = typeof PostV1Co
11
11
  * ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
12
12
  * Requests VM shutdown for the compute version. The version record and metadata are retained. Poll the status endpoint until `stopped` is reached.
13
13
  */
14
- export declare const postV1ComputeServicesVersionsByVersionIdStop: any;
14
+ export declare const postV1ComputeServicesVersionsByVersionIdStop: import("@distilled.cloud/core/client").OperationMethod<{
15
+ readonly versionId: string;
16
+ }, void, never, any>;
15
17
  //# sourceMappingURL=postV1ComputeServicesVersionsByVersionIdStop.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postV1ComputeServicesVersionsByVersionIdStop.d.ts","sourceRoot":"","sources":["../../src/operations/postV1ComputeServicesVersionsByVersionIdStop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,iDAAiD;;EAQ3D,CAAC;AACJ,MAAM,MAAM,iDAAiD,GAC3D,OAAO,iDAAiD,CAAC,IAAI,CAAC;AAGhE,eAAO,MAAM,kDAAkD,aACtB,CAAC;AAC1C,MAAM,MAAM,kDAAkD,GAC5D,OAAO,kDAAkD,CAAC,IAAI,CAAC;AAGjE;;;;;GAKG;AACH,eAAO,MAAM,4CAA4C,KAIpD,CAAC"}
1
+ {"version":3,"file":"postV1ComputeServicesVersionsByVersionIdStop.d.ts","sourceRoot":"","sources":["../../src/operations/postV1ComputeServicesVersionsByVersionIdStop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,iDAAiD;;EAQ3D,CAAC;AACJ,MAAM,MAAM,iDAAiD,GAC3D,OAAO,iDAAiD,CAAC,IAAI,CAAC;AAGhE,eAAO,MAAM,kDAAkD,aACtB,CAAC;AAC1C,MAAM,MAAM,kDAAkD,GAC5D,OAAO,kDAAkD,CAAC,IAAI,CAAC;AAGjE;;;;;GAKG;AACH,eAAO,MAAM,4CAA4C;;oBAIpD,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import * as Schema from "effect/Schema";
2
+ import { NotFound, UnprocessableEntity } from "../errors";
2
3
  export declare const PostV1ConnectionsInput: Schema.Struct<{
3
4
  readonly databaseId: Schema.String;
4
5
  readonly name: Schema.String;
@@ -51,5 +52,48 @@ export type PostV1ConnectionsOutput = typeof PostV1ConnectionsOutput.Type;
51
52
  *
52
53
  * Creates a new connection for the specified database.
53
54
  */
54
- export declare const postV1Connections: any;
55
+ export declare const postV1Connections: import("@distilled.cloud/core/client").OperationMethod<{
56
+ readonly databaseId: string;
57
+ readonly name: string;
58
+ }, {
59
+ readonly data: {
60
+ readonly connectionString: string | import("effect/Redacted").Redacted<string>;
61
+ readonly createdAt: string;
62
+ readonly database: {
63
+ readonly id: string;
64
+ readonly name: string;
65
+ readonly url: string;
66
+ };
67
+ readonly directConnection?: {
68
+ readonly host: string;
69
+ readonly pass: string;
70
+ readonly user: string;
71
+ } | null | undefined;
72
+ readonly endpoints: {
73
+ readonly accelerate?: {
74
+ readonly connectionString: string | import("effect/Redacted").Redacted<string>;
75
+ readonly host: string;
76
+ readonly port: number;
77
+ } | undefined;
78
+ readonly direct?: {
79
+ readonly connectionString: string | import("effect/Redacted").Redacted<string>;
80
+ readonly host: string;
81
+ readonly port: number;
82
+ } | undefined;
83
+ readonly pooled?: {
84
+ readonly connectionString: string | import("effect/Redacted").Redacted<string>;
85
+ readonly host: string;
86
+ readonly port: number;
87
+ } | undefined;
88
+ };
89
+ readonly host: string | null;
90
+ readonly id: string;
91
+ readonly kind: "accelerate" | "postgres";
92
+ readonly name: string;
93
+ readonly pass: string | null;
94
+ readonly type: string;
95
+ readonly url: string;
96
+ readonly user: string | null;
97
+ };
98
+ }, NotFound | UnprocessableEntity, any>;
55
99
  //# sourceMappingURL=postV1Connections.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postV1Connections.d.ts","sourceRoot":"","sources":["../../src/operations/postV1Connections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,eAAO,MAAM,sBAAsB;;;EAKwB,CAAC;AAC5D,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDhC,CAAC;AACL,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,KAG3B,CAAC"}
1
+ {"version":3,"file":"postV1Connections.d.ts","sourceRoot":"","sources":["../../src/operations/postV1Connections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAI1D,eAAO,MAAM,sBAAsB;;;EAKwB,CAAC;AAC5D,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDhC,CAAC;AACL,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAI3B,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import * as Schema from "effect/Schema";
2
2
  import { API } from "../client";
3
3
  import * as T from "../traits";
4
+ import { NotFound, UnprocessableEntity } from "../errors";
4
5
  import { SensitiveString } from "../sensitive";
5
6
  // Input Schema
6
7
  export const PostV1ConnectionsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -59,5 +60,6 @@ export const PostV1ConnectionsOutput =
59
60
  export const postV1Connections = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
60
61
  inputSchema: PostV1ConnectionsInput,
61
62
  outputSchema: PostV1ConnectionsOutput,
63
+ errors: [NotFound, UnprocessableEntity],
62
64
  }));
63
65
  //# sourceMappingURL=postV1Connections.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"postV1Connections.js","sourceRoot":"","sources":["../../src/operations/postV1Connections.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;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAe;AACf,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,UAAU,EAAE,MAAM,CAAC,MAAM;IACzB,IAAI,EAAE,MAAM,CAAC,MAAM;CACpB,CACF,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC;AAG5D,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB;AAClC,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;QACxB,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QACjD,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC;YACvB,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,MAAM,CAAC;gBACZ,IAAI,EAAE,MAAM,CAAC,MAAM;gBACnB,IAAI,EAAE,MAAM,CAAC,MAAM;gBACnB,gBAAgB,EAAE,eAAe;aAClC,CA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YAAY,EAAE,uBAAuB;IACrC,MAAM,EAAE,CAAC,QAAQ,EAAE,mBAAmB,CAAU;CACjD,CAAC,CAAC,CAAC"}
@@ -50,5 +50,47 @@ export type PostV1ConnectionsByIdRotateOutput = typeof PostV1ConnectionsByIdRota
50
50
  *
51
51
  * Generates new credentials for the connection with the given ID. Revocation of the previous credentials is best-effort.
52
52
  */
53
- export declare const postV1ConnectionsByIdRotate: any;
53
+ export declare const postV1ConnectionsByIdRotate: import("@distilled.cloud/core/client").OperationMethod<{
54
+ readonly id: string;
55
+ }, {
56
+ readonly data: {
57
+ readonly connectionString: string | import("effect/Redacted").Redacted<string>;
58
+ readonly createdAt: string;
59
+ readonly database: {
60
+ readonly id: string;
61
+ readonly name: string;
62
+ readonly url: string;
63
+ };
64
+ readonly directConnection?: {
65
+ readonly host: string;
66
+ readonly pass: string;
67
+ readonly user: string;
68
+ } | null | undefined;
69
+ readonly endpoints: {
70
+ readonly accelerate?: {
71
+ readonly connectionString: string | import("effect/Redacted").Redacted<string>;
72
+ readonly host: string;
73
+ readonly port: number;
74
+ } | undefined;
75
+ readonly direct?: {
76
+ readonly connectionString: string | import("effect/Redacted").Redacted<string>;
77
+ readonly host: string;
78
+ readonly port: number;
79
+ } | undefined;
80
+ readonly pooled?: {
81
+ readonly connectionString: string | import("effect/Redacted").Redacted<string>;
82
+ readonly host: string;
83
+ readonly port: number;
84
+ } | undefined;
85
+ };
86
+ readonly host: string | null;
87
+ readonly id: string;
88
+ readonly kind: "accelerate" | "postgres";
89
+ readonly name: string;
90
+ readonly pass: string | null;
91
+ readonly type: string;
92
+ readonly url: string;
93
+ readonly user: string | null;
94
+ };
95
+ }, never, any>;
54
96
  //# sourceMappingURL=postV1ConnectionsByIdRotate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postV1ConnectionsByIdRotate.d.ts","sourceRoot":"","sources":["../../src/operations/postV1ConnectionsByIdRotate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,eAAO,MAAM,gCAAgC;;EAG6B,CAAC;AAC3E,MAAM,MAAM,gCAAgC,GAC1C,OAAO,gCAAgC,CAAC,IAAI,CAAC;AAG/C,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmD1C,CAAC;AACL,MAAM,MAAM,iCAAiC,GAC3C,OAAO,iCAAiC,CAAC,IAAI,CAAC;AAGhD;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,KAKvC,CAAC"}
1
+ {"version":3,"file":"postV1ConnectionsByIdRotate.d.ts","sourceRoot":"","sources":["../../src/operations/postV1ConnectionsByIdRotate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,eAAO,MAAM,gCAAgC;;EAG6B,CAAC;AAC3E,MAAM,MAAM,gCAAgC,GAC1C,OAAO,gCAAgC,CAAC,IAAI,CAAC;AAG/C,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmD1C,CAAC;AACL,MAAM,MAAM,iCAAiC,GAC3C,OAAO,iCAAiC,CAAC,IAAI,CAAC;AAGhD;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import * as Schema from "effect/Schema";
2
+ import { BadRequest, Forbidden, NotFound, UnprocessableEntity } from "../errors";
2
3
  export declare const PostV1DatabasesInput: Schema.Struct<{
3
4
  readonly projectId: Schema.String;
4
5
  readonly region: Schema.optional<Schema.Literals<readonly ["us-east-1", "us-west-1", "eu-west-3", "eu-central-1", "ap-northeast-1", "ap-southeast-1", "inherit"]>>;
@@ -70,5 +71,67 @@ export type PostV1DatabasesOutput = typeof PostV1DatabasesOutput.Type;
70
71
  *
71
72
  * Creates a new database in the specified project.
72
73
  */
73
- export declare const postV1Databases: any;
74
+ export declare const postV1Databases: import("@distilled.cloud/core/client").OperationMethod<{
75
+ readonly isDefault?: boolean | undefined;
76
+ readonly name?: string | undefined;
77
+ readonly projectId: string;
78
+ readonly region?: "ap-northeast-1" | "ap-southeast-1" | "eu-central-1" | "eu-west-3" | "inherit" | "us-east-1" | "us-west-1" | undefined;
79
+ readonly source?: unknown;
80
+ }, {
81
+ readonly data: {
82
+ readonly connections: readonly {
83
+ readonly createdAt: string;
84
+ readonly database: {
85
+ readonly id: string;
86
+ readonly name: string;
87
+ readonly url: string;
88
+ };
89
+ readonly directConnection?: {
90
+ readonly host: string;
91
+ readonly pass: string;
92
+ readonly user: string;
93
+ } | null | undefined;
94
+ readonly endpoints: {
95
+ readonly accelerate?: {
96
+ readonly connectionString?: string | import("effect/Redacted").Redacted<string> | undefined;
97
+ readonly host: string;
98
+ readonly port: number;
99
+ } | undefined;
100
+ readonly direct?: {
101
+ readonly connectionString?: string | import("effect/Redacted").Redacted<string> | undefined;
102
+ readonly host: string;
103
+ readonly port: number;
104
+ } | undefined;
105
+ readonly pooled?: {
106
+ readonly connectionString?: string | import("effect/Redacted").Redacted<string> | undefined;
107
+ readonly host: string;
108
+ readonly port: number;
109
+ } | undefined;
110
+ };
111
+ readonly id: string;
112
+ readonly kind: "accelerate" | "postgres";
113
+ readonly name: string;
114
+ readonly type: string;
115
+ readonly url: string;
116
+ }[];
117
+ readonly createdAt: string;
118
+ readonly defaultConnectionId: string | null;
119
+ readonly id: string;
120
+ readonly isDefault: boolean;
121
+ readonly name: string;
122
+ readonly project: {
123
+ readonly id: string;
124
+ readonly name: string;
125
+ readonly url: string;
126
+ };
127
+ readonly region: {
128
+ readonly id: string;
129
+ readonly name: string;
130
+ } | null;
131
+ readonly source: unknown;
132
+ readonly status: "failure" | "provisioning" | "ready" | "recovering";
133
+ readonly type: string;
134
+ readonly url: string;
135
+ };
136
+ }, BadRequest | Forbidden | NotFound | UnprocessableEntity, any>;
74
137
  //# sourceMappingURL=postV1Databases.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postV1Databases.d.ts","sourceRoot":"","sources":["../../src/operations/postV1Databases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,eAAO,MAAM,oBAAoB;;;;;;EAgByB,CAAC;AAC3D,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsEhC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE;;;;GAIG;AACH,eAAO,MAAM,eAAe,KAGzB,CAAC"}
1
+ {"version":3,"file":"postV1Databases.d.ts","sourceRoot":"","sources":["../../src/operations/postV1Databases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EACL,UAAU,EACV,SAAS,EACT,QAAQ,EACR,mBAAmB,EACpB,MAAM,WAAW,CAAC;AAInB,eAAO,MAAM,oBAAoB;;;;;;EAgByB,CAAC;AAC3D,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsEhC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEAIzB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import * as Schema from "effect/Schema";
2
2
  import { API } from "../client";
3
3
  import * as T from "../traits";
4
+ import { BadRequest, Forbidden, NotFound, UnprocessableEntity, } from "../errors";
4
5
  import { SensitiveString } from "../sensitive";
5
6
  // Input Schema
6
7
  export const PostV1DatabasesInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -85,5 +86,6 @@ export const PostV1DatabasesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
85
86
  export const postV1Databases = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
86
87
  inputSchema: PostV1DatabasesInput,
87
88
  outputSchema: PostV1DatabasesOutput,
89
+ errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity],
88
90
  }));
89
91
  //# sourceMappingURL=postV1Databases.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"postV1Databases.js","sourceRoot":"","sources":["../../src/operations/postV1Databases.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;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAe;AACf,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5E,SAAS,EAAE,MAAM,CAAC,MAAM;IACxB,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,QAAQ,CAAC;QACd,WAAW;QACX,WAAW;QACX,WAAW;QACX,cAAc;QACd,gBAAgB;QAChB,gBAAgB;QAChB,SAAS;KACV,CAAC,CACH;IACD,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IAC1C,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;CACxC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAA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M,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,mBAAmB,CAAU;CACxE,CAAC,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import * as Schema from "effect/Schema";
2
+ import { NotFound, UnprocessableEntity } from "../errors";
2
3
  export declare const PostV1DatabasesByDatabaseIdConnectionsInput: Schema.Struct<{
3
4
  readonly databaseId: Schema.String;
4
5
  readonly name: Schema.String;
@@ -51,5 +52,48 @@ export type PostV1DatabasesByDatabaseIdConnectionsOutput = typeof PostV1Database
51
52
  *
52
53
  * Creates a new connection string for the given database.
53
54
  */
54
- export declare const postV1DatabasesByDatabaseIdConnections: any;
55
+ export declare const postV1DatabasesByDatabaseIdConnections: import("@distilled.cloud/core/client").OperationMethod<{
56
+ readonly databaseId: string;
57
+ readonly name: string;
58
+ }, {
59
+ readonly data: {
60
+ readonly connectionString: string | import("effect/Redacted").Redacted<string>;
61
+ readonly createdAt: string;
62
+ readonly database: {
63
+ readonly id: string;
64
+ readonly name: string;
65
+ readonly url: string;
66
+ };
67
+ readonly directConnection?: {
68
+ readonly host: string;
69
+ readonly pass: string;
70
+ readonly user: string;
71
+ } | null | undefined;
72
+ readonly endpoints: {
73
+ readonly accelerate?: {
74
+ readonly connectionString: string | import("effect/Redacted").Redacted<string>;
75
+ readonly host: string;
76
+ readonly port: number;
77
+ } | undefined;
78
+ readonly direct?: {
79
+ readonly connectionString: string | import("effect/Redacted").Redacted<string>;
80
+ readonly host: string;
81
+ readonly port: number;
82
+ } | undefined;
83
+ readonly pooled?: {
84
+ readonly connectionString: string | import("effect/Redacted").Redacted<string>;
85
+ readonly host: string;
86
+ readonly port: number;
87
+ } | undefined;
88
+ };
89
+ readonly host: string | null;
90
+ readonly id: string;
91
+ readonly kind: "accelerate" | "postgres";
92
+ readonly name: string;
93
+ readonly pass: string | null;
94
+ readonly type: string;
95
+ readonly url: string;
96
+ readonly user: string | null;
97
+ };
98
+ }, NotFound | UnprocessableEntity, any>;
55
99
  //# sourceMappingURL=postV1DatabasesByDatabaseIdConnections.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postV1DatabasesByDatabaseIdConnections.d.ts","sourceRoot":"","sources":["../../src/operations/postV1DatabasesByDatabaseIdConnections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,eAAO,MAAM,2CAA2C;;;EAMrD,CAAC;AACJ,MAAM,MAAM,2CAA2C,GACrD,OAAO,2CAA2C,CAAC,IAAI,CAAC;AAG1D,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDrD,CAAC;AACL,MAAM,MAAM,4CAA4C,GACtD,OAAO,4CAA4C,CAAC,IAAI,CAAC;AAG3D;;;;GAIG;AACH,eAAO,MAAM,sCAAsC,KAI9C,CAAC"}
1
+ {"version":3,"file":"postV1DatabasesByDatabaseIdConnections.d.ts","sourceRoot":"","sources":["../../src/operations/postV1DatabasesByDatabaseIdConnections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAI1D,eAAO,MAAM,2CAA2C;;;EAMrD,CAAC;AACJ,MAAM,MAAM,2CAA2C,GACrD,OAAO,2CAA2C,CAAC,IAAI,CAAC;AAG1D,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDrD,CAAC;AACL,MAAM,MAAM,4CAA4C,GACtD,OAAO,4CAA4C,CAAC,IAAI,CAAC;AAG3D;;;;GAIG;AACH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAK9C,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import * as Schema from "effect/Schema";
2
2
  import { API } from "../client";
3
3
  import * as T from "../traits";
4
+ import { NotFound, UnprocessableEntity } from "../errors";
4
5
  import { SensitiveString } from "../sensitive";
5
6
  // Input Schema
6
7
  export const PostV1DatabasesByDatabaseIdConnectionsInput =
@@ -61,5 +62,6 @@ export const postV1DatabasesByDatabaseIdConnections =
61
62
  /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
62
63
  inputSchema: PostV1DatabasesByDatabaseIdConnectionsInput,
63
64
  outputSchema: PostV1DatabasesByDatabaseIdConnectionsOutput,
65
+ errors: [NotFound, UnprocessableEntity],
64
66
  }));
65
67
  //# sourceMappingURL=postV1DatabasesByDatabaseIdConnections.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"postV1DatabasesByDatabaseIdConnections.js","sourceRoot":"","sources":["../../src/operations/postV1DatabasesByDatabaseIdConnections.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;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAe;AACf,MAAM,CAAC,MAAM,2CAA2C;AACtD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC7C,IAAI,EAAE,MAAM,CAAC,MAAM;CACpB,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,wCAAwC,EAAE,CAAC,CAC3E,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,4CAA4C;AACvD,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,GAA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M,CAAC,MAAM,CAAC,MAAM,CAAC;QAClC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;QAClC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;KACnC,CAAC;CACH,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,sCAAsC;AACjD,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,2CAA2C;IACxD,YAAY,EAAE,4CAA4C;CAC3D,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"postV1DatabasesByDatabaseIdConnections.js","sourceRoot":"","sources":["../../src/operations/postV1DatabasesByDatabaseIdConnections.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;AAC/B,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAe;AACf,MAAM,CAAC,MAAM,2CAA2C;AACtD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC7C,IAAI,EAAE,MAAM,CAAC,MAAM;CACpB,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,wCAAwC,EAAE,CAAC,CAC3E,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,4CAA4C;AACvD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,IAA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jB,GAAG,EAAE,MAAM,CAAC,MAAM;YAClB,IAAI,EAAE,MAAM,CAAC,MAAM;SACpB,CAAC;QACF,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;QAClC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;QAClC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;KACnC,CAAC;CACH,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,sCAAsC;AACjD,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,2CAA2C;IACxD,YAAY,EAAE,4CAA4C;IAC1D,MAAM,EAAE,CAAC,QAAQ,EAAE,mBAAmB,CAAU;CACjD,CAAC,CAAC,CAAC"}
@@ -73,5 +73,69 @@ export type PostV1DatabasesByTargetDatabaseIdRestoreOutput = typeof PostV1Databa
73
73
  * ⚠️ **Destructive operation** — this immediately and irreversibly overwrites all data in the target database with the contents of the specified backup. Any data written since the backup was taken will be lost. Ensure you have a recent backup of the target database before proceeding.
74
74
  * Replaces the data in an existing database from a backup. Connections and credentials are preserved — only the data layer is replaced.
75
75
  */
76
- export declare const postV1DatabasesByTargetDatabaseIdRestore: any;
76
+ export declare const postV1DatabasesByTargetDatabaseIdRestore: import("@distilled.cloud/core/client").OperationMethod<{
77
+ readonly source: {
78
+ readonly backupId: string;
79
+ readonly databaseId: string;
80
+ readonly type: string;
81
+ };
82
+ readonly targetDatabaseId: string;
83
+ }, {
84
+ readonly data: {
85
+ readonly connections: readonly {
86
+ readonly createdAt: string;
87
+ readonly database: {
88
+ readonly id: string;
89
+ readonly name: string;
90
+ readonly url: string;
91
+ };
92
+ readonly directConnection?: {
93
+ readonly host: string;
94
+ readonly pass: string;
95
+ readonly user: string;
96
+ } | null | undefined;
97
+ readonly endpoints: {
98
+ readonly accelerate?: {
99
+ readonly host: string;
100
+ readonly port: number;
101
+ } | undefined;
102
+ readonly direct?: {
103
+ readonly host: string;
104
+ readonly port: number;
105
+ } | undefined;
106
+ readonly pooled?: {
107
+ readonly host: string;
108
+ readonly port: number;
109
+ } | undefined;
110
+ };
111
+ readonly id: string;
112
+ readonly kind: "accelerate" | "postgres";
113
+ readonly name: string;
114
+ readonly type: string;
115
+ readonly url: string;
116
+ }[];
117
+ readonly createdAt: string;
118
+ readonly defaultConnectionId: string | null;
119
+ readonly id: string;
120
+ readonly isDefault: boolean;
121
+ readonly name: string;
122
+ readonly project: {
123
+ readonly id: string;
124
+ readonly name: string;
125
+ readonly url: string;
126
+ };
127
+ readonly region: {
128
+ readonly id: string;
129
+ readonly name: string;
130
+ } | null;
131
+ readonly source: {
132
+ readonly backupId: string;
133
+ readonly databaseId: string;
134
+ readonly type: string;
135
+ };
136
+ readonly status: "failure" | "provisioning" | "ready" | "recovering";
137
+ readonly type: string;
138
+ readonly url: string;
139
+ };
140
+ }, never, any>;
77
141
  //# sourceMappingURL=postV1DatabasesByTargetDatabaseIdRestore.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postV1DatabasesByTargetDatabaseIdRestore.d.ts","sourceRoot":"","sources":["../../src/operations/postV1DatabasesByTargetDatabaseIdRestore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,6CAA6C;;;;;;;EAavD,CAAC;AACJ,MAAM,MAAM,6CAA6C,GACvD,OAAO,6CAA6C,CAAC,IAAI,CAAC;AAG5D,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6EvD,CAAC;AACL,MAAM,MAAM,8CAA8C,GACxD,OAAO,8CAA8C,CAAC,IAAI,CAAC;AAG7D;;;;;GAKG;AACH,eAAO,MAAM,wCAAwC,KAIhD,CAAC"}
1
+ {"version":3,"file":"postV1DatabasesByTargetDatabaseIdRestore.d.ts","sourceRoot":"","sources":["../../src/operations/postV1DatabasesByTargetDatabaseIdRestore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,6CAA6C;;;;;;;EAavD,CAAC;AACJ,MAAM,MAAM,6CAA6C,GACvD,OAAO,6CAA6C,CAAC,IAAI,CAAC;AAG5D,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6EvD,CAAC;AACL,MAAM,MAAM,8CAA8C,GACxD,OAAO,8CAA8C,CAAC,IAAI,CAAC;AAG7D;;;;;GAKG;AACH,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIhD,CAAC"}