alchemy 0.69.0 → 0.70.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 (314) hide show
  1. package/bin/alchemy.js +3810 -3889
  2. package/bin/commands/init.ts +41 -55
  3. package/bin/trpc.ts +4 -9
  4. package/lib/alchemy.d.ts +3 -3
  5. package/lib/alchemy.d.ts.map +1 -1
  6. package/lib/alchemy.js +2 -15
  7. package/lib/alchemy.js.map +1 -1
  8. package/lib/apply.js +24 -9
  9. package/lib/apply.js.map +1 -1
  10. package/lib/aws/utils.d.ts +2 -1
  11. package/lib/aws/utils.d.ts.map +1 -1
  12. package/lib/aws/utils.js.map +1 -1
  13. package/lib/clickhouse/api/client.gen.d.ts +13 -0
  14. package/lib/clickhouse/api/client.gen.d.ts.map +1 -0
  15. package/lib/clickhouse/api/client.gen.js +7 -0
  16. package/lib/clickhouse/api/client.gen.js.map +1 -0
  17. package/lib/clickhouse/api/sdk.gen.d.ts +322 -0
  18. package/lib/clickhouse/api/sdk.gen.d.ts.map +1 -0
  19. package/lib/clickhouse/api/sdk.gen.js +683 -0
  20. package/lib/clickhouse/api/sdk.gen.js.map +1 -0
  21. package/lib/clickhouse/api/types.gen.d.ts +5030 -0
  22. package/lib/clickhouse/api/types.gen.d.ts.map +1 -0
  23. package/lib/clickhouse/api/types.gen.js +2 -0
  24. package/lib/clickhouse/api/types.gen.js.map +1 -0
  25. package/lib/clickhouse/api-key.d.ts +29 -0
  26. package/lib/clickhouse/api-key.d.ts.map +1 -0
  27. package/lib/clickhouse/api-key.js +83 -0
  28. package/lib/clickhouse/api-key.js.map +1 -0
  29. package/lib/clickhouse/api.d.ts +36 -0
  30. package/lib/clickhouse/api.d.ts.map +1 -0
  31. package/lib/clickhouse/api.js +48 -0
  32. package/lib/clickhouse/api.js.map +1 -0
  33. package/lib/clickhouse/index.d.ts +4 -0
  34. package/lib/clickhouse/index.d.ts.map +1 -0
  35. package/lib/clickhouse/index.js +4 -0
  36. package/lib/clickhouse/index.js.map +1 -0
  37. package/lib/clickhouse/organization.d.ts +16 -0
  38. package/lib/clickhouse/organization.d.ts.map +1 -0
  39. package/lib/clickhouse/organization.js +21 -0
  40. package/lib/clickhouse/organization.js.map +1 -0
  41. package/lib/clickhouse/service.d.ts +275 -0
  42. package/lib/clickhouse/service.d.ts.map +1 -0
  43. package/lib/clickhouse/service.js +274 -0
  44. package/lib/clickhouse/service.js.map +1 -0
  45. package/lib/cloudflare/account-api-token.d.ts.map +1 -1
  46. package/lib/cloudflare/account-api-token.js +1 -1
  47. package/lib/cloudflare/account-api-token.js.map +1 -1
  48. package/lib/cloudflare/bucket-object.d.ts +5 -0
  49. package/lib/cloudflare/bucket-object.d.ts.map +1 -1
  50. package/lib/cloudflare/bucket-object.js +1 -1
  51. package/lib/cloudflare/bucket-object.js.map +1 -1
  52. package/lib/cloudflare/bucket.d.ts +6 -3
  53. package/lib/cloudflare/bucket.d.ts.map +1 -1
  54. package/lib/cloudflare/bucket.js +60 -8
  55. package/lib/cloudflare/bucket.js.map +1 -1
  56. package/lib/cloudflare/bun-spa/bun-spa.d.ts +15 -0
  57. package/lib/cloudflare/bun-spa/bun-spa.d.ts.map +1 -0
  58. package/lib/cloudflare/bun-spa/bun-spa.js +95 -0
  59. package/lib/cloudflare/bun-spa/bun-spa.js.map +1 -0
  60. package/lib/cloudflare/compatibility-date.gen.d.ts +1 -1
  61. package/lib/cloudflare/compatibility-date.gen.js +1 -1
  62. package/lib/cloudflare/container.d.ts +11 -1
  63. package/lib/cloudflare/container.d.ts.map +1 -1
  64. package/lib/cloudflare/container.js +1 -1
  65. package/lib/cloudflare/container.js.map +1 -1
  66. package/lib/cloudflare/index.d.ts +1 -0
  67. package/lib/cloudflare/index.d.ts.map +1 -1
  68. package/lib/cloudflare/index.js +1 -0
  69. package/lib/cloudflare/index.js.map +1 -1
  70. package/lib/cloudflare/miniflare/build-worker-options.d.ts.map +1 -1
  71. package/lib/cloudflare/miniflare/build-worker-options.js +3 -3
  72. package/lib/cloudflare/miniflare/build-worker-options.js.map +1 -1
  73. package/lib/cloudflare/miniflare/miniflare-controller.d.ts.map +1 -1
  74. package/lib/cloudflare/miniflare/miniflare-controller.js +2 -0
  75. package/lib/cloudflare/miniflare/miniflare-controller.js.map +1 -1
  76. package/lib/cloudflare/miniflare/miniflare-worker-proxy.d.ts +1 -1
  77. package/lib/cloudflare/miniflare/miniflare-worker-proxy.d.ts.map +1 -1
  78. package/lib/cloudflare/miniflare/miniflare-worker-proxy.js +33 -14
  79. package/lib/cloudflare/miniflare/miniflare-worker-proxy.js.map +1 -1
  80. package/lib/cloudflare/permission-groups.d.ts +2 -3
  81. package/lib/cloudflare/permission-groups.d.ts.map +1 -1
  82. package/lib/cloudflare/permission-groups.js +10 -15
  83. package/lib/cloudflare/permission-groups.js.map +1 -1
  84. package/lib/cloudflare/redwood/redwood.d.ts +1 -1
  85. package/lib/cloudflare/redwood/redwood.js +1 -1
  86. package/lib/cloudflare/tanstack-start/plugin.d.ts +2 -15
  87. package/lib/cloudflare/tanstack-start/plugin.d.ts.map +1 -1
  88. package/lib/cloudflare/tanstack-start/plugin.js +5 -25
  89. package/lib/cloudflare/tanstack-start/plugin.js.map +1 -1
  90. package/lib/cloudflare/tanstack-start/tanstack-start.d.ts.map +1 -1
  91. package/lib/cloudflare/tanstack-start/tanstack-start.js +15 -4
  92. package/lib/cloudflare/tanstack-start/tanstack-start.js.map +1 -1
  93. package/lib/cloudflare/util/filter-env-bindings.d.ts +62 -0
  94. package/lib/cloudflare/util/filter-env-bindings.d.ts.map +1 -0
  95. package/lib/cloudflare/util/filter-env-bindings.js +81 -0
  96. package/lib/cloudflare/util/filter-env-bindings.js.map +1 -0
  97. package/lib/cloudflare/website.d.ts +2 -2
  98. package/lib/cloudflare/website.d.ts.map +1 -1
  99. package/lib/cloudflare/website.js +7 -18
  100. package/lib/cloudflare/website.js.map +1 -1
  101. package/lib/cloudflare/worker-metadata.d.ts +5 -1
  102. package/lib/cloudflare/worker-metadata.d.ts.map +1 -1
  103. package/lib/cloudflare/worker-metadata.js +3 -0
  104. package/lib/cloudflare/worker-metadata.js.map +1 -1
  105. package/lib/cloudflare/worker.d.ts +17 -1
  106. package/lib/cloudflare/worker.d.ts.map +1 -1
  107. package/lib/cloudflare/worker.js +1 -0
  108. package/lib/cloudflare/worker.js.map +1 -1
  109. package/lib/cloudflare/wrangler.json.d.ts +15 -1
  110. package/lib/cloudflare/wrangler.json.d.ts.map +1 -1
  111. package/lib/cloudflare/wrangler.json.js +12 -4
  112. package/lib/cloudflare/wrangler.json.js.map +1 -1
  113. package/lib/coinbase/client.d.ts +54 -0
  114. package/lib/coinbase/client.d.ts.map +1 -0
  115. package/lib/coinbase/client.js +89 -0
  116. package/lib/coinbase/client.js.map +1 -0
  117. package/lib/coinbase/evm-account.d.ts +118 -0
  118. package/lib/coinbase/evm-account.d.ts.map +1 -0
  119. package/lib/coinbase/evm-account.js +198 -0
  120. package/lib/coinbase/evm-account.js.map +1 -0
  121. package/lib/coinbase/evm-smart-account.d.ts +122 -0
  122. package/lib/coinbase/evm-smart-account.d.ts.map +1 -0
  123. package/lib/coinbase/evm-smart-account.js +213 -0
  124. package/lib/coinbase/evm-smart-account.js.map +1 -0
  125. package/lib/coinbase/faucet.d.ts +11 -0
  126. package/lib/coinbase/faucet.d.ts.map +1 -0
  127. package/lib/coinbase/faucet.js +146 -0
  128. package/lib/coinbase/faucet.js.map +1 -0
  129. package/lib/coinbase/index.d.ts +4 -0
  130. package/lib/coinbase/index.d.ts.map +1 -0
  131. package/lib/coinbase/index.js +4 -0
  132. package/lib/coinbase/index.js.map +1 -0
  133. package/lib/coinbase/types.d.ts +28 -0
  134. package/lib/coinbase/types.d.ts.map +1 -0
  135. package/lib/coinbase/types.js +4 -0
  136. package/lib/{util/telemetry → coinbase}/types.js.map +1 -1
  137. package/lib/coinbase/utils.d.ts +13 -0
  138. package/lib/coinbase/utils.d.ts.map +1 -0
  139. package/lib/coinbase/utils.js +17 -0
  140. package/lib/coinbase/utils.js.map +1 -0
  141. package/lib/docker/api.d.ts +22 -1
  142. package/lib/docker/api.d.ts.map +1 -1
  143. package/lib/docker/api.js +64 -2
  144. package/lib/docker/api.js.map +1 -1
  145. package/lib/docker/container.d.ts +88 -0
  146. package/lib/docker/container.d.ts.map +1 -1
  147. package/lib/docker/container.js +36 -0
  148. package/lib/docker/container.js.map +1 -1
  149. package/lib/neon/api/types.gen.d.ts +7 -2
  150. package/lib/neon/api/types.gen.d.ts.map +1 -1
  151. package/lib/planetscale/api/types.gen.d.ts +20 -4
  152. package/lib/planetscale/api/types.gen.d.ts.map +1 -1
  153. package/lib/planetscale/api.d.ts.map +1 -1
  154. package/lib/planetscale/api.js +1 -0
  155. package/lib/planetscale/api.js.map +1 -1
  156. package/lib/planetscale/password.d.ts.map +1 -1
  157. package/lib/planetscale/password.js +1 -13
  158. package/lib/planetscale/password.js.map +1 -1
  159. package/lib/resource.d.ts.map +1 -1
  160. package/lib/resource.js +7 -3
  161. package/lib/resource.js.map +1 -1
  162. package/lib/scope.d.ts +4 -9
  163. package/lib/scope.d.ts.map +1 -1
  164. package/lib/scope.js +16 -37
  165. package/lib/scope.js.map +1 -1
  166. package/lib/state/instrumented-state-store.d.ts +1 -3
  167. package/lib/state/instrumented-state-store.d.ts.map +1 -1
  168. package/lib/state/instrumented-state-store.js +19 -21
  169. package/lib/state/instrumented-state-store.js.map +1 -1
  170. package/lib/test/bun.d.ts.map +1 -1
  171. package/lib/test/bun.js +1 -2
  172. package/lib/test/bun.js.map +1 -1
  173. package/lib/test/vitest.d.ts.map +1 -1
  174. package/lib/test/vitest.js +1 -2
  175. package/lib/test/vitest.js.map +1 -1
  176. package/lib/util/diff.d.ts +5 -0
  177. package/lib/util/diff.d.ts.map +1 -0
  178. package/lib/util/diff.js +14 -0
  179. package/lib/util/diff.js.map +1 -0
  180. package/lib/util/telemetry.d.ts +52 -0
  181. package/lib/util/telemetry.d.ts.map +1 -0
  182. package/lib/util/telemetry.js +191 -0
  183. package/lib/util/telemetry.js.map +1 -0
  184. package/package.json +19 -1
  185. package/src/alchemy.ts +5 -20
  186. package/src/apply.ts +29 -12
  187. package/src/aws/utils.ts +2 -1
  188. package/src/clickhouse/api/client.gen.ts +28 -0
  189. package/src/clickhouse/api/sdk.gen.ts +1286 -0
  190. package/src/clickhouse/api/types.gen.ts +5898 -0
  191. package/src/clickhouse/api-key.ts +136 -0
  192. package/src/clickhouse/api.ts +84 -0
  193. package/src/clickhouse/index.ts +3 -0
  194. package/src/clickhouse/organization.ts +31 -0
  195. package/src/clickhouse/service.ts +668 -0
  196. package/src/cloudflare/account-api-token.ts +1 -4
  197. package/src/cloudflare/bucket-object.ts +11 -1
  198. package/src/cloudflare/bucket.ts +72 -6
  199. package/src/cloudflare/bun-spa/bun-spa.ts +139 -0
  200. package/src/cloudflare/compatibility-date.gen.ts +1 -1
  201. package/src/cloudflare/container.ts +22 -3
  202. package/src/cloudflare/index.ts +1 -0
  203. package/src/cloudflare/miniflare/build-worker-options.ts +6 -4
  204. package/src/cloudflare/miniflare/miniflare-controller.ts +2 -0
  205. package/src/cloudflare/miniflare/miniflare-worker-proxy.ts +42 -15
  206. package/src/cloudflare/permission-groups.ts +21 -49
  207. package/src/cloudflare/redwood/redwood.ts +1 -1
  208. package/src/cloudflare/tanstack-start/plugin.ts +7 -28
  209. package/src/cloudflare/tanstack-start/tanstack-start.ts +15 -4
  210. package/src/cloudflare/util/filter-env-bindings.ts +96 -0
  211. package/src/cloudflare/website.ts +12 -24
  212. package/src/cloudflare/worker-metadata.ts +8 -1
  213. package/src/cloudflare/worker.ts +19 -1
  214. package/src/cloudflare/wrangler.json.ts +27 -9
  215. package/src/coinbase/client.ts +146 -0
  216. package/src/coinbase/evm-account.ts +317 -0
  217. package/src/coinbase/evm-smart-account.ts +339 -0
  218. package/src/coinbase/faucet.ts +173 -0
  219. package/src/coinbase/index.ts +3 -0
  220. package/src/coinbase/types.ts +33 -0
  221. package/src/coinbase/utils.ts +19 -0
  222. package/src/docker/api.ts +86 -2
  223. package/src/docker/container.ts +97 -0
  224. package/src/neon/api/types.gen.ts +13 -1
  225. package/src/planetscale/api/types.gen.ts +22 -2
  226. package/src/planetscale/api.ts +1 -0
  227. package/src/planetscale/password.ts +1 -14
  228. package/src/resource.ts +11 -4
  229. package/src/scope.ts +22 -45
  230. package/src/state/instrumented-state-store.ts +27 -26
  231. package/src/test/bun.ts +1 -2
  232. package/src/test/vitest.ts +1 -2
  233. package/src/util/diff.ts +14 -0
  234. package/src/util/telemetry.ts +297 -0
  235. package/templates/tanstack-start/.cta.json +13 -0
  236. package/templates/tanstack-start/README.md +267 -49
  237. package/templates/tanstack-start/_gitignore +9 -18
  238. package/templates/tanstack-start/alchemy.run.ts +2 -2
  239. package/templates/tanstack-start/package.json +24 -19
  240. package/templates/tanstack-start/public/favicon.ico +0 -0
  241. package/templates/tanstack-start/public/logo192.png +0 -0
  242. package/templates/tanstack-start/public/logo512.png +0 -0
  243. package/templates/tanstack-start/public/manifest.json +25 -0
  244. package/templates/tanstack-start/public/robots.txt +3 -0
  245. package/templates/tanstack-start/src/components/Header.tsx +21 -0
  246. package/templates/tanstack-start/src/logo.svg +12 -0
  247. package/templates/tanstack-start/src/router.tsx +7 -16
  248. package/templates/tanstack-start/src/routes/__root.tsx +13 -114
  249. package/templates/tanstack-start/src/routes/api.demo-names.ts +15 -0
  250. package/templates/tanstack-start/src/routes/demo.start.api-request.tsx +44 -0
  251. package/templates/tanstack-start/src/routes/demo.start.server-funcs.tsx +97 -0
  252. package/templates/tanstack-start/src/routes/index.tsx +31 -4
  253. package/templates/tanstack-start/src/styles.css +15 -0
  254. package/templates/tanstack-start/tsconfig.json +19 -22
  255. package/templates/tanstack-start/types/env.d.ts +2 -2
  256. package/templates/tanstack-start/vite.config.ts +16 -25
  257. package/workers/tunnel-proxy.js +1 -1
  258. package/lib/util/telemetry/client.d.ts +0 -31
  259. package/lib/util/telemetry/client.d.ts.map +0 -1
  260. package/lib/util/telemetry/client.js +0 -121
  261. package/lib/util/telemetry/client.js.map +0 -1
  262. package/lib/util/telemetry/constants.d.ts +0 -5
  263. package/lib/util/telemetry/constants.d.ts.map +0 -1
  264. package/lib/util/telemetry/constants.js +0 -8
  265. package/lib/util/telemetry/constants.js.map +0 -1
  266. package/lib/util/telemetry/context.d.ts +0 -15
  267. package/lib/util/telemetry/context.d.ts.map +0 -1
  268. package/lib/util/telemetry/context.js +0 -128
  269. package/lib/util/telemetry/context.js.map +0 -1
  270. package/lib/util/telemetry/index.d.ts +0 -3
  271. package/lib/util/telemetry/index.d.ts.map +0 -1
  272. package/lib/util/telemetry/index.js +0 -3
  273. package/lib/util/telemetry/index.js.map +0 -1
  274. package/lib/util/telemetry/types.d.ts +0 -68
  275. package/lib/util/telemetry/types.d.ts.map +0 -1
  276. package/lib/util/telemetry/types.js +0 -1
  277. package/src/util/telemetry/client.ts +0 -156
  278. package/src/util/telemetry/constants.ts +0 -13
  279. package/src/util/telemetry/context.ts +0 -154
  280. package/src/util/telemetry/index.ts +0 -2
  281. package/src/util/telemetry/types.ts +0 -105
  282. package/templates/tanstack-start/_prettierignore +0 -4
  283. package/templates/tanstack-start/public/android-chrome-192x192.png +0 -0
  284. package/templates/tanstack-start/public/android-chrome-512x512.png +0 -0
  285. package/templates/tanstack-start/public/apple-touch-icon.png +0 -0
  286. package/templates/tanstack-start/public/favicon-16x16.png +0 -0
  287. package/templates/tanstack-start/public/favicon-32x32.png +0 -0
  288. package/templates/tanstack-start/public/favicon.png +0 -0
  289. package/templates/tanstack-start/public/site.webmanifest +0 -19
  290. package/templates/tanstack-start/src/components/DefaultCatchBoundary.tsx +0 -53
  291. package/templates/tanstack-start/src/components/NotFound.tsx +0 -25
  292. package/templates/tanstack-start/src/components/PostError.tsx +0 -5
  293. package/templates/tanstack-start/src/components/UserError.tsx +0 -5
  294. package/templates/tanstack-start/src/routes/_pathlessLayout/_nested-layout/route-a.tsx +0 -10
  295. package/templates/tanstack-start/src/routes/_pathlessLayout/_nested-layout/route-b.tsx +0 -10
  296. package/templates/tanstack-start/src/routes/_pathlessLayout/_nested-layout.tsx +0 -34
  297. package/templates/tanstack-start/src/routes/_pathlessLayout.tsx +0 -16
  298. package/templates/tanstack-start/src/routes/api/users.$userId.ts +0 -28
  299. package/templates/tanstack-start/src/routes/api/users.ts +0 -59
  300. package/templates/tanstack-start/src/routes/customScript[.]js.ts +0 -10
  301. package/templates/tanstack-start/src/routes/deferred.tsx +0 -62
  302. package/templates/tanstack-start/src/routes/posts.$postId.tsx +0 -34
  303. package/templates/tanstack-start/src/routes/posts.index.tsx +0 -8
  304. package/templates/tanstack-start/src/routes/posts.tsx +0 -38
  305. package/templates/tanstack-start/src/routes/posts_.$postId.deep.tsx +0 -29
  306. package/templates/tanstack-start/src/routes/redirect.tsx +0 -9
  307. package/templates/tanstack-start/src/routes/users.$userId.tsx +0 -44
  308. package/templates/tanstack-start/src/routes/users.index.tsx +0 -18
  309. package/templates/tanstack-start/src/routes/users.tsx +0 -49
  310. package/templates/tanstack-start/src/styles/app.css +0 -12
  311. package/templates/tanstack-start/src/utils/loggingMiddleware.tsx +0 -41
  312. package/templates/tanstack-start/src/utils/posts.tsx +0 -40
  313. package/templates/tanstack-start/src/utils/seo.ts +0 -33
  314. package/templates/tanstack-start/src/utils/users.tsx +0 -5
@@ -0,0 +1,683 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { client } from "./client.gen.js";
3
+ class _HeyApiClient {
4
+ _client = client;
5
+ constructor(args) {
6
+ if (args?.client) {
7
+ this._client = args.client;
8
+ }
9
+ }
10
+ }
11
+ export class ClickhouseClient extends _HeyApiClient {
12
+ /**
13
+ * Get list of available organizations
14
+ * Returns a list with a single organization associated with the API key in the request.
15
+ */
16
+ listAvailableOrganizations(options) {
17
+ return (options?.client ?? this._client).get({
18
+ url: "/v1/organizations",
19
+ ...options,
20
+ });
21
+ }
22
+ /**
23
+ * Get organization details
24
+ * Returns details of a single organization. In order to get the details, the auth key must belong to the organization.
25
+ */
26
+ getOrganizationDetails(options) {
27
+ return (options.client ?? this._client).get({
28
+ url: "/v1/organizations/{organizationId}",
29
+ ...options,
30
+ });
31
+ }
32
+ /**
33
+ * Update organization details
34
+ * Updates organization fields. Requires ADMIN auth key role.
35
+ */
36
+ updateOrganizationDetails(options) {
37
+ return (options.client ?? this._client).patch({
38
+ url: "/v1/organizations/{organizationId}",
39
+ ...options,
40
+ headers: {
41
+ "Content-Type": "application/json",
42
+ ...options.headers,
43
+ },
44
+ });
45
+ }
46
+ /**
47
+ * Get organization metrics
48
+ * Returns prometheus metrics for all services in an organization.
49
+ */
50
+ getOrganizationMetrics(options) {
51
+ return (options.client ?? this._client).get({
52
+ url: "/v1/organizations/{organizationId}/prometheus",
53
+ ...options,
54
+ });
55
+ }
56
+ /**
57
+ * List of organization services
58
+ * Returns a list of all services in the organization.
59
+ */
60
+ listOrganizationServices(options) {
61
+ return (options.client ?? this._client).get({
62
+ url: "/v1/organizations/{organizationId}/services",
63
+ ...options,
64
+ });
65
+ }
66
+ /**
67
+ * Create new service
68
+ * Creates a new service in the organization, and returns the current service state and a password to access the service. The service is started asynchronously.
69
+ */
70
+ createNewService(options) {
71
+ return (options.client ?? this._client).post({
72
+ url: "/v1/organizations/{organizationId}/services",
73
+ ...options,
74
+ headers: {
75
+ "Content-Type": "application/json",
76
+ ...options.headers,
77
+ },
78
+ });
79
+ }
80
+ /**
81
+ * Delete service
82
+ * Deletes the service. The service must be in stopped state and is deleted asynchronously after this method call.
83
+ */
84
+ deleteService(options) {
85
+ return (options.client ?? this._client).delete({
86
+ url: "/v1/organizations/{organizationId}/services/{serviceId}",
87
+ ...options,
88
+ });
89
+ }
90
+ /**
91
+ * Get service details
92
+ * Returns a service that belongs to the organization
93
+ */
94
+ getServiceDetails(options) {
95
+ return (options.client ?? this._client).get({
96
+ url: "/v1/organizations/{organizationId}/services/{serviceId}",
97
+ ...options,
98
+ });
99
+ }
100
+ /**
101
+ * Update service basic details
102
+ * Updates basic service details like service name or IP access list.
103
+ */
104
+ updateServiceBasicDetails(options) {
105
+ return (options.client ?? this._client).patch({
106
+ url: "/v1/organizations/{organizationId}/services/{serviceId}",
107
+ ...options,
108
+ headers: {
109
+ "Content-Type": "application/json",
110
+ ...options.headers,
111
+ },
112
+ });
113
+ }
114
+ /**
115
+ * Get private endpoint configuration
116
+ * Information required to set up a private endpoint
117
+ */
118
+ getPrivateEndpointConfiguration(options) {
119
+ return (options.client ?? this._client).get({
120
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/privateEndpointConfig",
121
+ ...options,
122
+ });
123
+ }
124
+ /**
125
+ * Delete the service query endpoint for a given instance
126
+ * This is an experimental feature. Please contact support to enable it.
127
+ */
128
+ deleteServiceQueryEndpointForInstance(options) {
129
+ return (options.client ?? this._client).delete({
130
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/serviceQueryEndpoint",
131
+ ...options,
132
+ });
133
+ }
134
+ /**
135
+ * Get the service query endpoint for a given instance
136
+ * This is an experimental feature. Please contact support to enable it.
137
+ */
138
+ getServiceQueryEndpointForInstance(options) {
139
+ return (options.client ?? this._client).get({
140
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/serviceQueryEndpoint",
141
+ ...options,
142
+ });
143
+ }
144
+ /**
145
+ * Upsert the service query endpoint for a given instance
146
+ * This is an experimental feature. Please contact support to enable it.
147
+ */
148
+ upsertServiceQueryEndpointForInstance(options) {
149
+ return (options.client ?? this._client).post({
150
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/serviceQueryEndpoint",
151
+ ...options,
152
+ headers: {
153
+ "Content-Type": "application/json",
154
+ ...options.headers,
155
+ },
156
+ });
157
+ }
158
+ /**
159
+ * Update service state
160
+ * Starts or stop service
161
+ */
162
+ updateServiceState(options) {
163
+ return (options.client ?? this._client).patch({
164
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/state",
165
+ ...options,
166
+ headers: {
167
+ "Content-Type": "application/json",
168
+ ...options.headers,
169
+ },
170
+ });
171
+ }
172
+ /**
173
+ * Update service auto scaling settings
174
+ * Updates minimum and maximum total memory limits and idle mode scaling behavior for the service. The memory settings are available only for "production" services and must be a multiple of 12 starting from 24GB. Please contact support to enable adjustment of numReplicas.
175
+ * @deprecated
176
+ */
177
+ updateServiceAutoScalingSettings(options) {
178
+ return (options.client ?? this._client).patch({
179
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/scaling",
180
+ ...options,
181
+ headers: {
182
+ "Content-Type": "application/json",
183
+ ...options.headers,
184
+ },
185
+ });
186
+ }
187
+ /**
188
+ * Update service auto scaling settings
189
+ * Updates minimum and maximum memory limits per replica and idle mode scaling behavior for the service. The memory settings are available only for "production" services and must be a multiple of 4 starting from 8GB. Please contact support to enable adjustment of numReplicas.
190
+ */
191
+ updateServiceAutoScalingSettings2(options) {
192
+ return (options.client ?? this._client).patch({
193
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/replicaScaling",
194
+ ...options,
195
+ headers: {
196
+ "Content-Type": "application/json",
197
+ ...options.headers,
198
+ },
199
+ });
200
+ }
201
+ /**
202
+ * Update service password
203
+ * Sets a new password for the service
204
+ */
205
+ updateServicePassword(options) {
206
+ return (options.client ?? this._client).patch({
207
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/password",
208
+ ...options,
209
+ headers: {
210
+ "Content-Type": "application/json",
211
+ ...options.headers,
212
+ },
213
+ });
214
+ }
215
+ /**
216
+ * Create a private endpoint
217
+ * Create a new private endpoint. The private endpoint will be associated with this service and organization
218
+ */
219
+ createPrivateEndpoint(options) {
220
+ return (options.client ?? this._client).post({
221
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/privateEndpoint",
222
+ ...options,
223
+ headers: {
224
+ "Content-Type": "application/json",
225
+ ...options.headers,
226
+ },
227
+ });
228
+ }
229
+ /**
230
+ * Get service metrics
231
+ * Returns prometheus metrics for a service.
232
+ */
233
+ getServiceMetrics(options) {
234
+ return (options.client ?? this._client).get({
235
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/prometheus",
236
+ ...options,
237
+ });
238
+ }
239
+ /**
240
+ * List of service backups
241
+ * Returns a list of all backups for the service. The most recent backups comes first in the list.
242
+ */
243
+ listServiceBackups(options) {
244
+ return (options.client ?? this._client).get({
245
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/backups",
246
+ ...options,
247
+ });
248
+ }
249
+ /**
250
+ * Get backup details
251
+ * Returns a single backup info.
252
+ */
253
+ getBackupDetails(options) {
254
+ return (options.client ?? this._client).get({
255
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/backups/{backupId}",
256
+ ...options,
257
+ });
258
+ }
259
+ /**
260
+ * Get service backup configuration
261
+ * Returns the service backup configuration.
262
+ */
263
+ getServiceBackupConfiguration(options) {
264
+ return (options.client ?? this._client).get({
265
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/backupConfiguration",
266
+ ...options,
267
+ });
268
+ }
269
+ /**
270
+ * Update service backup configuration
271
+ * Updates service backup configuration. Requires ADMIN auth key role. Setting the properties with null value, will reset the properties to theirs default values.
272
+ */
273
+ updateServiceBackupConfiguration(options) {
274
+ return (options.client ?? this._client).patch({
275
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/backupConfiguration",
276
+ ...options,
277
+ headers: {
278
+ "Content-Type": "application/json",
279
+ ...options.headers,
280
+ },
281
+ });
282
+ }
283
+ /**
284
+ * Get list of all keys
285
+ * Returns a list of all keys in the organization.
286
+ */
287
+ listAllKeys(options) {
288
+ return (options.client ?? this._client).get({
289
+ url: "/v1/organizations/{organizationId}/keys",
290
+ ...options,
291
+ });
292
+ }
293
+ /**
294
+ * Create key
295
+ * Creates new API key.
296
+ */
297
+ createKey(options) {
298
+ return (options.client ?? this._client).post({
299
+ url: "/v1/organizations/{organizationId}/keys",
300
+ ...options,
301
+ headers: {
302
+ "Content-Type": "application/json",
303
+ ...options.headers,
304
+ },
305
+ });
306
+ }
307
+ /**
308
+ * Delete key
309
+ * Deletes API key. Only a key not used to authenticate the active request can be deleted.
310
+ */
311
+ deleteKey(options) {
312
+ return (options.client ?? this._client).delete({
313
+ url: "/v1/organizations/{organizationId}/keys/{keyId}",
314
+ ...options,
315
+ });
316
+ }
317
+ /**
318
+ * Get key details
319
+ * Returns a single key details.
320
+ */
321
+ getKeyDetails(options) {
322
+ return (options.client ?? this._client).get({
323
+ url: "/v1/organizations/{organizationId}/keys/{keyId}",
324
+ ...options,
325
+ });
326
+ }
327
+ /**
328
+ * Update key
329
+ * Updates API key properties.
330
+ */
331
+ updateKey(options) {
332
+ return (options.client ?? this._client).patch({
333
+ url: "/v1/organizations/{organizationId}/keys/{keyId}",
334
+ ...options,
335
+ headers: {
336
+ "Content-Type": "application/json",
337
+ ...options.headers,
338
+ },
339
+ });
340
+ }
341
+ /**
342
+ * List organization members
343
+ * Returns a list of all members in the organization.
344
+ */
345
+ listOrganizationMembers(options) {
346
+ return (options.client ?? this._client).get({
347
+ url: "/v1/organizations/{organizationId}/members",
348
+ ...options,
349
+ });
350
+ }
351
+ /**
352
+ * Remove an organization member
353
+ * Removes a user from the organization
354
+ */
355
+ removeOrganizationMember(options) {
356
+ return (options.client ?? this._client).delete({
357
+ url: "/v1/organizations/{organizationId}/members/{userId}",
358
+ ...options,
359
+ });
360
+ }
361
+ /**
362
+ * Get member details
363
+ * Returns a single organization member details.
364
+ */
365
+ getMemberDetails(options) {
366
+ return (options.client ?? this._client).get({
367
+ url: "/v1/organizations/{organizationId}/members/{userId}",
368
+ ...options,
369
+ });
370
+ }
371
+ /**
372
+ * Update organization member
373
+ * Updates organization member role.
374
+ */
375
+ updateOrganizationMember(options) {
376
+ return (options.client ?? this._client).patch({
377
+ url: "/v1/organizations/{organizationId}/members/{userId}",
378
+ ...options,
379
+ headers: {
380
+ "Content-Type": "application/json",
381
+ ...options.headers,
382
+ },
383
+ });
384
+ }
385
+ /**
386
+ * List all invitations
387
+ * Returns list of all organization invitations.
388
+ */
389
+ listAllInvitations(options) {
390
+ return (options.client ?? this._client).get({
391
+ url: "/v1/organizations/{organizationId}/invitations",
392
+ ...options,
393
+ });
394
+ }
395
+ /**
396
+ * Create an invitation
397
+ * Creates organization invitation.
398
+ */
399
+ createInvitation(options) {
400
+ return (options.client ?? this._client).post({
401
+ url: "/v1/organizations/{organizationId}/invitations",
402
+ ...options,
403
+ headers: {
404
+ "Content-Type": "application/json",
405
+ ...options.headers,
406
+ },
407
+ });
408
+ }
409
+ /**
410
+ * Delete organization invitation
411
+ * Deletes a single organization invitation.
412
+ */
413
+ deleteOrganizationInvitation(options) {
414
+ return (options.client ?? this._client).delete({
415
+ url: "/v1/organizations/{organizationId}/invitations/{invitationId}",
416
+ ...options,
417
+ });
418
+ }
419
+ /**
420
+ * Get invitation details
421
+ * Returns details for a single organization invitation.
422
+ */
423
+ getInvitationDetails(options) {
424
+ return (options.client ?? this._client).get({
425
+ url: "/v1/organizations/{organizationId}/invitations/{invitationId}",
426
+ ...options,
427
+ });
428
+ }
429
+ /**
430
+ * List of organization activities
431
+ * Returns a list of all organization activities.
432
+ */
433
+ listOrganizationActivities(options) {
434
+ return (options.client ?? this._client).get({
435
+ url: "/v1/organizations/{organizationId}/activities",
436
+ ...options,
437
+ });
438
+ }
439
+ /**
440
+ * Organization activity
441
+ * Returns a single organization activity by ID.
442
+ */
443
+ organizationActivity(options) {
444
+ return (options.client ?? this._client).get({
445
+ url: "/v1/organizations/{organizationId}/activities/{activityId}",
446
+ ...options,
447
+ });
448
+ }
449
+ /**
450
+ * Get organization usage costs
451
+ * Returns a grand total and a list of daily, per-entity organization usage cost records for the organization in the queried time period (maximum 31 days). All days in both the request and the response are evaluated based on the UTC timezone.
452
+ */
453
+ getOrganizationUsageCosts(options) {
454
+ return (options.client ?? this._client).get({
455
+ url: "/v1/organizations/{organizationId}/usageCost",
456
+ ...options,
457
+ });
458
+ }
459
+ /**
460
+ * List ClickPipes
461
+ * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Returns a list of ClickPipes.
462
+ */
463
+ listClickPipes(options) {
464
+ return (options.client ?? this._client).get({
465
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes",
466
+ ...options,
467
+ });
468
+ }
469
+ /**
470
+ * Create ClickPipe
471
+ * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Create a new ClickPipe.
472
+ */
473
+ createClickPipe(options) {
474
+ return (options.client ?? this._client).post({
475
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes",
476
+ ...options,
477
+ headers: {
478
+ "Content-Type": "application/json",
479
+ ...options.headers,
480
+ },
481
+ });
482
+ }
483
+ /**
484
+ * Delete ClickPipe
485
+ * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Delete the specified ClickPipe.
486
+ */
487
+ deleteClickPipe(options) {
488
+ return (options.client ?? this._client).delete({
489
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}",
490
+ ...options,
491
+ });
492
+ }
493
+ /**
494
+ * Get ClickPipe
495
+ * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Returns the specified ClickPipe.
496
+ */
497
+ getClickPipe(options) {
498
+ return (options.client ?? this._client).get({
499
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}",
500
+ ...options,
501
+ });
502
+ }
503
+ /**
504
+ * Update ClickPipe
505
+ * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Update the specified ClickPipe.
506
+ */
507
+ updateClickPipe(options) {
508
+ return (options.client ?? this._client).patch({
509
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}",
510
+ ...options,
511
+ headers: {
512
+ "Content-Type": "application/json",
513
+ ...options.headers,
514
+ },
515
+ });
516
+ }
517
+ /**
518
+ * Get ClickPipe settings
519
+ * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Returns the advanced settings for the specified ClickPipe.
520
+ */
521
+ getClickPipeSettings(options) {
522
+ return (options.client ?? this._client).get({
523
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}/settings",
524
+ ...options,
525
+ });
526
+ }
527
+ /**
528
+ * Update ClickPipe settings
529
+ * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Update the advanced settings for the specified ClickPipe. Send key-value pairs where values can be strings, numbers, or booleans.
530
+ */
531
+ updateClickPipeSettings(options) {
532
+ return (options.client ?? this._client).put({
533
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}/settings",
534
+ ...options,
535
+ headers: {
536
+ "Content-Type": "application/json",
537
+ ...options.headers,
538
+ },
539
+ });
540
+ }
541
+ /**
542
+ * Scaling ClickPipe
543
+ * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Change scaling settings for the specified ClickPipe.
544
+ */
545
+ scalingClickPipe(options) {
546
+ return (options.client ?? this._client).patch({
547
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}/scaling",
548
+ ...options,
549
+ headers: {
550
+ "Content-Type": "application/json",
551
+ ...options.headers,
552
+ },
553
+ });
554
+ }
555
+ /**
556
+ * Update ClickPipe state
557
+ * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Start, stop or resync ClickPipe. Stopping a ClickPipe will stop the ingestion process from any state. Starting is allowed for ClickPipes in the "Stopped" state or with a "Failed" state. Resyncing is only for Postgres pipes and can be done from any state.
558
+ */
559
+ updateClickPipeState(options) {
560
+ return (options.client ?? this._client).patch({
561
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}/state",
562
+ ...options,
563
+ headers: {
564
+ "Content-Type": "application/json",
565
+ ...options.headers,
566
+ },
567
+ });
568
+ }
569
+ /**
570
+ * Get CDC ClickPipes scaling
571
+ * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Get scaling settings for DB ClickPipes.
572
+ *
573
+ * The infrastructure is shared between all DB ClickPipes in the service, both for initial load and CDC. For billing purposes, 2 CPU cores and 8 GB of RAM [correspond](https://clickhouse.com/docs/cloud/manage/billing/overview#clickpipes-for-postgres-cdc) to one compute unit.
574
+ *
575
+ * **This endpoint becomes available once at least one DB ClickPipe was provisioned.**
576
+ */
577
+ getCdcClickPipesScaling(options) {
578
+ return (options.client ?? this._client).get({
579
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipesCdcScaling",
580
+ ...options,
581
+ });
582
+ }
583
+ /**
584
+ * Update CDC ClickPipes scaling
585
+ * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Update scaling settings for DB ClickPipes.
586
+ *
587
+ * The infrastructure is shared between all DB ClickPipes in the service, both for initial load and CDC. Scaling settings may take a few minutes to fully propagate.
588
+ *
589
+ * For billing purposes, 2 CPU cores and 8 GB of RAM [correspond](https://clickhouse.com/docs/cloud/manage/billing/overview#clickpipes-for-postgres-cdc) to one compute unit. If your organization tier changes, DB ClickPipes will be [rescaled](https://clickhouse.com/docs/cloud/manage/billing/overview#compute) appropriately.
590
+ *
591
+ * **This endpoint becomes available once at least one DB ClickPipe was provisioned.**
592
+ */
593
+ updateCdcClickPipesScaling(options) {
594
+ return (options.client ?? this._client).patch({
595
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipesCdcScaling",
596
+ ...options,
597
+ headers: {
598
+ "Content-Type": "application/json",
599
+ ...options.headers,
600
+ },
601
+ });
602
+ }
603
+ /**
604
+ * Get private endpoint configuration for region within cloud provider for an organization
605
+ * Deprecated. Please follow [documentation](https://clickhouse.com/docs/manage/security/aws-privatelink#add-endpoint-id-to-services-allow-list) for the updated process.
606
+ * @deprecated
607
+ */
608
+ getPrivateEndpointConfigurationForRegionWithinCloudProviderForOrganization(options) {
609
+ return (options.client ?? this._client).get({
610
+ url: "/v1/organizations/{organizationId}/privateEndpointConfig",
611
+ ...options,
612
+ });
613
+ }
614
+ /**
615
+ * Create BYOC Infrastructure
616
+ * Create a new BYOC Infrastructure in the organization. Returns the configuration of the newly created infrastructure
617
+ */
618
+ createByocInfrastructure(options) {
619
+ return (options.client ?? this._client).post({
620
+ url: "/v1/organizations/{organizationId}/byocInfrastructure",
621
+ ...options,
622
+ headers: {
623
+ "Content-Type": "application/json",
624
+ ...options.headers,
625
+ },
626
+ });
627
+ }
628
+ /**
629
+ * Remove a BYOC infrastructure
630
+ * Removes a BYOC Infrastructure from the organization
631
+ */
632
+ removeByocInfrastructure(options) {
633
+ return (options.client ?? this._client).delete({
634
+ url: "/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}",
635
+ ...options,
636
+ });
637
+ }
638
+ /**
639
+ * List reverse private endpoints
640
+ * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Returns a list of reverse private endpoints for the specified service.
641
+ */
642
+ listReversePrivateEndpoints(options) {
643
+ return (options.client ?? this._client).get({
644
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipesReversePrivateEndpoints",
645
+ ...options,
646
+ });
647
+ }
648
+ /**
649
+ * Create reverse private endpoint
650
+ * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Create a new reverse private endpoint.
651
+ */
652
+ createReversePrivateEndpoint(options) {
653
+ return (options.client ?? this._client).post({
654
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipesReversePrivateEndpoints",
655
+ ...options,
656
+ headers: {
657
+ "Content-Type": "application/json",
658
+ ...options.headers,
659
+ },
660
+ });
661
+ }
662
+ /**
663
+ * Delete reverse private endpoint
664
+ * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Delete the reverse private endpoint with the specified ID.
665
+ */
666
+ deleteReversePrivateEndpoint(options) {
667
+ return (options.client ?? this._client).delete({
668
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipesReversePrivateEndpoints/{reversePrivateEndpointId}",
669
+ ...options,
670
+ });
671
+ }
672
+ /**
673
+ * Get reverse private endpoint
674
+ * **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Returns the reverse private endpoint with the specified ID.
675
+ */
676
+ getReversePrivateEndpoint(options) {
677
+ return (options.client ?? this._client).get({
678
+ url: "/v1/organizations/{organizationId}/services/{serviceId}/clickpipesReversePrivateEndpoints/{reversePrivateEndpointId}",
679
+ ...options,
680
+ });
681
+ }
682
+ }
683
+ //# sourceMappingURL=sdk.gen.js.map