@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.13

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 (298) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +33 -2
  3. package/lib/credentials.d.ts +29 -0
  4. package/lib/credentials.d.ts.map +1 -0
  5. package/lib/credentials.js +49 -0
  6. package/lib/credentials.js.map +1 -0
  7. package/lib/errors.d.ts +36 -0
  8. package/lib/errors.d.ts.map +1 -0
  9. package/lib/errors.js +26 -0
  10. package/lib/errors.js.map +1 -0
  11. package/lib/index.d.ts +30 -0
  12. package/lib/index.d.ts.map +1 -0
  13. package/lib/index.js +30 -0
  14. package/lib/index.js.map +1 -0
  15. package/lib/pagination.d.ts +9 -0
  16. package/lib/pagination.d.ts.map +1 -0
  17. package/lib/pagination.js +48 -0
  18. package/lib/pagination.js.map +1 -0
  19. package/lib/protocol.d.ts +32 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +148 -0
  22. package/lib/protocol.js.map +1 -0
  23. package/lib/response-validation.test.d.ts +4 -0
  24. package/lib/response-validation.test.d.ts.map +1 -0
  25. package/lib/response-validation.test.js +31 -0
  26. package/lib/response-validation.test.js.map +1 -0
  27. package/lib/retry.d.ts +31 -0
  28. package/lib/retry.d.ts.map +1 -0
  29. package/lib/retry.js +31 -0
  30. package/lib/retry.js.map +1 -0
  31. package/lib/services/alb.d.ts +603 -0
  32. package/lib/services/alb.d.ts.map +1 -0
  33. package/lib/services/alb.js +562 -0
  34. package/lib/services/alb.js.map +1 -0
  35. package/lib/services/alb_waf.d.ts +526 -0
  36. package/lib/services/alb_waf.d.ts.map +1 -0
  37. package/lib/services/alb_waf.js +545 -0
  38. package/lib/services/alb_waf.js.map +1 -0
  39. package/lib/services/authorization.d.ts +251 -0
  40. package/lib/services/authorization.d.ts.map +1 -0
  41. package/lib/services/authorization.js +353 -0
  42. package/lib/services/authorization.js.map +1 -0
  43. package/lib/services/automation.d.ts +358 -0
  44. package/lib/services/automation.d.ts.map +1 -0
  45. package/lib/services/automation.js +426 -0
  46. package/lib/services/automation.js.map +1 -0
  47. package/lib/services/cdn.d.ts +1239 -0
  48. package/lib/services/cdn.d.ts.map +1 -0
  49. package/lib/services/cdn.js +992 -0
  50. package/lib/services/cdn.js.map +1 -0
  51. package/lib/services/certificates.d.ts +201 -0
  52. package/lib/services/certificates.d.ts.map +1 -0
  53. package/lib/services/certificates.js +197 -0
  54. package/lib/services/certificates.js.map +1 -0
  55. package/lib/services/cost.d.ts +222 -0
  56. package/lib/services/cost.d.ts.map +1 -0
  57. package/lib/services/cost.js +188 -0
  58. package/lib/services/cost.js.map +1 -0
  59. package/lib/services/dns.d.ts +875 -0
  60. package/lib/services/dns.d.ts.map +1 -0
  61. package/lib/services/dns.js +854 -0
  62. package/lib/services/dns.js.map +1 -0
  63. package/lib/services/dremio.d.ts +358 -0
  64. package/lib/services/dremio.d.ts.map +1 -0
  65. package/lib/services/dremio.js +339 -0
  66. package/lib/services/dremio.js.map +1 -0
  67. package/lib/services/edge.d.ts +312 -0
  68. package/lib/services/edge.d.ts.map +1 -0
  69. package/lib/services/edge.js +375 -0
  70. package/lib/services/edge.js.map +1 -0
  71. package/lib/services/functions.d.ts +409 -0
  72. package/lib/services/functions.d.ts.map +1 -0
  73. package/lib/services/functions.js +423 -0
  74. package/lib/services/functions.js.map +1 -0
  75. package/lib/services/git.d.ts +497 -0
  76. package/lib/services/git.d.ts.map +1 -0
  77. package/lib/services/git.js +552 -0
  78. package/lib/services/git.js.map +1 -0
  79. package/lib/services/iaas.d.ts +2965 -0
  80. package/lib/services/iaas.d.ts.map +1 -0
  81. package/lib/services/iaas.js +3768 -0
  82. package/lib/services/iaas.js.map +1 -0
  83. package/lib/services/index.d.ts +51 -0
  84. package/lib/services/index.d.ts.map +1 -0
  85. package/lib/services/index.js +52 -0
  86. package/lib/services/index.js.map +1 -0
  87. package/lib/services/intake.d.ts +555 -0
  88. package/lib/services/intake.d.ts.map +1 -0
  89. package/lib/services/intake.js +513 -0
  90. package/lib/services/intake.js.map +1 -0
  91. package/lib/services/kms.d.ts +654 -0
  92. package/lib/services/kms.d.ts.map +1 -0
  93. package/lib/services/kms.js +703 -0
  94. package/lib/services/kms.js.map +1 -0
  95. package/lib/services/lb_ip_lists.d.ts +162 -0
  96. package/lib/services/lb_ip_lists.d.ts.map +1 -0
  97. package/lib/services/lb_ip_lists.js +173 -0
  98. package/lib/services/lb_ip_lists.js.map +1 -0
  99. package/lib/services/load_balancer.d.ts +563 -0
  100. package/lib/services/load_balancer.d.ts.map +1 -0
  101. package/lib/services/load_balancer.js +542 -0
  102. package/lib/services/load_balancer.js.map +1 -0
  103. package/lib/services/logme.d.ts +516 -0
  104. package/lib/services/logme.d.ts.map +1 -0
  105. package/lib/services/logme.js +636 -0
  106. package/lib/services/logme.js.map +1 -0
  107. package/lib/services/logs.d.ts +436 -0
  108. package/lib/services/logs.d.ts.map +1 -0
  109. package/lib/services/logs.js +498 -0
  110. package/lib/services/logs.js.map +1 -0
  111. package/lib/services/mariadb.d.ts +479 -0
  112. package/lib/services/mariadb.d.ts.map +1 -0
  113. package/lib/services/mariadb.js +611 -0
  114. package/lib/services/mariadb.js.map +1 -0
  115. package/lib/services/model_experiments.d.ts +306 -0
  116. package/lib/services/model_experiments.d.ts.map +1 -0
  117. package/lib/services/model_experiments.js +356 -0
  118. package/lib/services/model_experiments.js.map +1 -0
  119. package/lib/services/model_serving.d.ts +289 -0
  120. package/lib/services/model_serving.d.ts.map +1 -0
  121. package/lib/services/model_serving.js +319 -0
  122. package/lib/services/model_serving.js.map +1 -0
  123. package/lib/services/mongodb_flex.d.ts +826 -0
  124. package/lib/services/mongodb_flex.d.ts.map +1 -0
  125. package/lib/services/mongodb_flex.js +889 -0
  126. package/lib/services/mongodb_flex.js.map +1 -0
  127. package/lib/services/object_storage.d.ts +446 -0
  128. package/lib/services/object_storage.d.ts.map +1 -0
  129. package/lib/services/object_storage.js +577 -0
  130. package/lib/services/object_storage.js.map +1 -0
  131. package/lib/services/observability.d.ts +2750 -0
  132. package/lib/services/observability.d.ts.map +1 -0
  133. package/lib/services/observability.js +3407 -0
  134. package/lib/services/observability.js.map +1 -0
  135. package/lib/services/opensearch.d.ts +505 -0
  136. package/lib/services/opensearch.d.ts.map +1 -0
  137. package/lib/services/opensearch.js +623 -0
  138. package/lib/services/opensearch.js.map +1 -0
  139. package/lib/services/pim.d.ts +997 -0
  140. package/lib/services/pim.d.ts.map +1 -0
  141. package/lib/services/pim.js +789 -0
  142. package/lib/services/pim.js.map +1 -0
  143. package/lib/services/postgres_flex.d.ts +854 -0
  144. package/lib/services/postgres_flex.d.ts.map +1 -0
  145. package/lib/services/postgres_flex.js +1018 -0
  146. package/lib/services/postgres_flex.js.map +1 -0
  147. package/lib/services/pubsub.d.ts +489 -0
  148. package/lib/services/pubsub.d.ts.map +1 -0
  149. package/lib/services/pubsub.js +614 -0
  150. package/lib/services/pubsub.js.map +1 -0
  151. package/lib/services/rabbitmq.d.ts +523 -0
  152. package/lib/services/rabbitmq.d.ts.map +1 -0
  153. package/lib/services/rabbitmq.js +636 -0
  154. package/lib/services/rabbitmq.js.map +1 -0
  155. package/lib/services/registry.d.ts +212 -0
  156. package/lib/services/registry.d.ts.map +1 -0
  157. package/lib/services/registry.js +221 -0
  158. package/lib/services/registry.js.map +1 -0
  159. package/lib/services/resource_manager.d.ts +458 -0
  160. package/lib/services/resource_manager.d.ts.map +1 -0
  161. package/lib/services/resource_manager.js +503 -0
  162. package/lib/services/resource_manager.js.map +1 -0
  163. package/lib/services/run_command.d.ts +175 -0
  164. package/lib/services/run_command.d.ts.map +1 -0
  165. package/lib/services/run_command.js +203 -0
  166. package/lib/services/run_command.js.map +1 -0
  167. package/lib/services/sca.d.ts +541 -0
  168. package/lib/services/sca.d.ts.map +1 -0
  169. package/lib/services/sca.js +478 -0
  170. package/lib/services/sca.js.map +1 -0
  171. package/lib/services/scf.d.ts +498 -0
  172. package/lib/services/scf.d.ts.map +1 -0
  173. package/lib/services/scf.js +718 -0
  174. package/lib/services/scf.js.map +1 -0
  175. package/lib/services/secrets_manager.d.ts +505 -0
  176. package/lib/services/secrets_manager.d.ts.map +1 -0
  177. package/lib/services/secrets_manager.js +659 -0
  178. package/lib/services/secrets_manager.js.map +1 -0
  179. package/lib/services/server_backup.d.ts +380 -0
  180. package/lib/services/server_backup.d.ts.map +1 -0
  181. package/lib/services/server_backup.js +474 -0
  182. package/lib/services/server_backup.js.map +1 -0
  183. package/lib/services/server_update.d.ts +292 -0
  184. package/lib/services/server_update.d.ts.map +1 -0
  185. package/lib/services/server_update.js +364 -0
  186. package/lib/services/server_update.js.map +1 -0
  187. package/lib/services/service_account.d.ts +465 -0
  188. package/lib/services/service_account.d.ts.map +1 -0
  189. package/lib/services/service_account.js +523 -0
  190. package/lib/services/service_account.js.map +1 -0
  191. package/lib/services/service_enablement.d.ts +149 -0
  192. package/lib/services/service_enablement.d.ts.map +1 -0
  193. package/lib/services/service_enablement.js +159 -0
  194. package/lib/services/service_enablement.js.map +1 -0
  195. package/lib/services/sfs.d.ts +721 -0
  196. package/lib/services/sfs.d.ts.map +1 -0
  197. package/lib/services/sfs.js +845 -0
  198. package/lib/services/sfs.js.map +1 -0
  199. package/lib/services/ske.d.ts +536 -0
  200. package/lib/services/ske.d.ts.map +1 -0
  201. package/lib/services/ske.js +598 -0
  202. package/lib/services/ske.js.map +1 -0
  203. package/lib/services/sqlserverflex.d.ts +956 -0
  204. package/lib/services/sqlserverflex.d.ts.map +1 -0
  205. package/lib/services/sqlserverflex.js +1087 -0
  206. package/lib/services/sqlserverflex.js.map +1 -0
  207. package/lib/services/stackit_marketplace.d.ts +288 -0
  208. package/lib/services/stackit_marketplace.d.ts.map +1 -0
  209. package/lib/services/stackit_marketplace.js +393 -0
  210. package/lib/services/stackit_marketplace.js.map +1 -0
  211. package/lib/services/telemetry_link.d.ts +443 -0
  212. package/lib/services/telemetry_link.d.ts.map +1 -0
  213. package/lib/services/telemetry_link.js +550 -0
  214. package/lib/services/telemetry_link.js.map +1 -0
  215. package/lib/services/telemetry_router.d.ts +493 -0
  216. package/lib/services/telemetry_router.d.ts.map +1 -0
  217. package/lib/services/telemetry_router.js +523 -0
  218. package/lib/services/telemetry_router.js.map +1 -0
  219. package/lib/services/ufw.d.ts +295 -0
  220. package/lib/services/ufw.d.ts.map +1 -0
  221. package/lib/services/ufw.js +301 -0
  222. package/lib/services/ufw.js.map +1 -0
  223. package/lib/services/valkey.d.ts +505 -0
  224. package/lib/services/valkey.d.ts.map +1 -0
  225. package/lib/services/valkey.js +627 -0
  226. package/lib/services/valkey.js.map +1 -0
  227. package/lib/services/vpn.d.ts +1024 -0
  228. package/lib/services/vpn.d.ts.map +1 -0
  229. package/lib/services/vpn.js +1013 -0
  230. package/lib/services/vpn.js.map +1 -0
  231. package/lib/services/workflows.d.ts +600 -0
  232. package/lib/services/workflows.d.ts.map +1 -0
  233. package/lib/services/workflows.js +556 -0
  234. package/lib/services/workflows.js.map +1 -0
  235. package/lib/traits.d.ts +24 -0
  236. package/lib/traits.d.ts.map +1 -0
  237. package/lib/traits.js +15 -0
  238. package/lib/traits.js.map +1 -0
  239. package/package.json +83 -3
  240. package/src/credentials.ts +90 -0
  241. package/src/errors.ts +50 -0
  242. package/src/index.ts +34 -0
  243. package/src/pagination.ts +73 -0
  244. package/src/protocol.ts +243 -0
  245. package/src/response-validation.test.ts +45 -0
  246. package/src/retry.ts +53 -0
  247. package/src/services/alb.ts +1409 -0
  248. package/src/services/alb_waf.ts +1347 -0
  249. package/src/services/authorization.ts +740 -0
  250. package/src/services/automation.ts +966 -0
  251. package/src/services/cdn.ts +2736 -0
  252. package/src/services/certificates.ts +450 -0
  253. package/src/services/cost.ts +484 -0
  254. package/src/services/dns.ts +2271 -0
  255. package/src/services/dremio.ts +803 -0
  256. package/src/services/edge.ts +839 -0
  257. package/src/services/functions.ts +1010 -0
  258. package/src/services/git.ts +1275 -0
  259. package/src/services/iaas.ts +8670 -0
  260. package/src/services/index.ts +51 -0
  261. package/src/services/intake.ts +1233 -0
  262. package/src/services/kms.ts +1638 -0
  263. package/src/services/lb_ip_lists.ts +377 -0
  264. package/src/services/load_balancer.ts +1342 -0
  265. package/src/services/logme.ts +1379 -0
  266. package/src/services/logs.ts +1150 -0
  267. package/src/services/mariadb.ts +1293 -0
  268. package/src/services/model_experiments.ts +797 -0
  269. package/src/services/model_serving.ts +697 -0
  270. package/src/services/mongodb_flex.ts +2078 -0
  271. package/src/services/object_storage.ts +1248 -0
  272. package/src/services/observability.ts +7856 -0
  273. package/src/services/opensearch.ts +1354 -0
  274. package/src/services/pim.ts +2090 -0
  275. package/src/services/postgres_flex.ts +2326 -0
  276. package/src/services/pubsub.ts +1336 -0
  277. package/src/services/rabbitmq.ts +1402 -0
  278. package/src/services/registry.ts +494 -0
  279. package/src/services/resource_manager.ts +1155 -0
  280. package/src/services/run_command.ts +441 -0
  281. package/src/services/sca.ts +1222 -0
  282. package/src/services/scf.ts +1537 -0
  283. package/src/services/secrets_manager.ts +1399 -0
  284. package/src/services/server_backup.ts +1032 -0
  285. package/src/services/server_update.ts +767 -0
  286. package/src/services/service_account.ts +1208 -0
  287. package/src/services/service_enablement.ts +359 -0
  288. package/src/services/sfs.ts +1913 -0
  289. package/src/services/ske.ts +1408 -0
  290. package/src/services/sqlserverflex.ts +2543 -0
  291. package/src/services/stackit_marketplace.ts +853 -0
  292. package/src/services/telemetry_link.ts +1245 -0
  293. package/src/services/telemetry_router.ts +1205 -0
  294. package/src/services/ufw.ts +704 -0
  295. package/src/services/valkey.ts +1357 -0
  296. package/src/services/vpn.ts +2554 -0
  297. package/src/services/workflows.ts +1361 -0
  298. package/src/traits.ts +65 -0
@@ -0,0 +1,1087 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as Redacted from "effect/Redacted";
4
+ import * as API from "@distilled.cloud/core/api";
5
+ import * as C from "@distilled.cloud/core/category";
6
+ import * as T from "../traits.js";
7
+ import { StackitProtocol, } from "../protocol.js";
8
+ import { UnknownStackitError } from "../errors.js";
9
+ import * as Retry from "../retry.js";
10
+ export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
11
+ /*@__PURE__*/ S.TaggedError()("BadRequest", {
12
+ code: S.Number,
13
+ message: S.String,
14
+ }).pipe(C.withBadRequestError), [{ status: 400 }]) {
15
+ }
16
+ export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
17
+ /*@__PURE__*/ S.TaggedError()("Forbidden", {
18
+ code: S.Number,
19
+ message: S.String,
20
+ }).pipe(C.withAuthError), [{ status: 403 }]) {
21
+ }
22
+ export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
23
+ /*@__PURE__*/ S.TaggedError()("NotFound", {
24
+ code: S.Number,
25
+ message: S.String,
26
+ }).pipe(C.withBadRequestError), [{ status: 404 }]) {
27
+ }
28
+ export class UnprocessableEntity extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
29
+ /*@__PURE__*/ S.TaggedError()("UnprocessableEntity", {
30
+ code: S.Number,
31
+ message: S.String,
32
+ }).pipe(C.withBadRequestError), [{ status: 422 }]) {
33
+ }
34
+ export const CreateDatabaseRequestRegion = /*@__PURE__*/ S.String;
35
+ export const CreateDatabaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
36
+ projectId: S.String.pipe(T.Label()),
37
+ region: CreateDatabaseRequestRegion.pipe(T.Label()),
38
+ instanceId: S.String.pipe(T.Label()),
39
+ collation: S.optional(S.String),
40
+ compatibility: S.optional(S.Number),
41
+ name: S.String,
42
+ owner: S.String,
43
+ }).pipe(T.Http({
44
+ method: "POST",
45
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",
46
+ code: 200,
47
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
48
+ }))).annotate({
49
+ identifier: "CreateDatabaseRequest",
50
+ });
51
+ export const CreateDatabaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
52
+ id: S.Number,
53
+ })).annotate({
54
+ identifier: "CreateDatabaseResponse",
55
+ });
56
+ export const CreateInstanceRequestRegion = /*@__PURE__*/ S.String;
57
+ export const InstanceEncryption = /*@__PURE__*/ S.suspend(() => S.Struct({
58
+ kekKeyId: S.String,
59
+ kekKeyRingId: S.String,
60
+ kekKeyVersion: S.String,
61
+ serviceAccount: S.String,
62
+ })).annotate({
63
+ identifier: "InstanceEncryption",
64
+ });
65
+ export const Labels = /*@__PURE__*/ S.Record(S.String, S.String);
66
+ export const InstanceNetworkAccessScope = /*@__PURE__*/ S.String;
67
+ export const Acl = /*@__PURE__*/ S.Array(S.String);
68
+ export const CreateInstanceRequestNetwork = /*@__PURE__*/ S.suspend(() => S.Struct({
69
+ accessScope: S.optional(InstanceNetworkAccessScope),
70
+ acl: Acl,
71
+ })).annotate({
72
+ identifier: "CreateInstanceRequestNetwork",
73
+ });
74
+ export const StorageCreate = /*@__PURE__*/ S.suspend(() => S.Struct({
75
+ class: S.String,
76
+ size: S.Number,
77
+ })).annotate({ identifier: "StorageCreate" });
78
+ export const InstanceVersion = /*@__PURE__*/ S.String;
79
+ export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
80
+ projectId: S.String.pipe(T.Label()),
81
+ region: CreateInstanceRequestRegion.pipe(T.Label()),
82
+ backupSchedule: S.String,
83
+ encryption: S.optional(InstanceEncryption),
84
+ flavorId: S.String,
85
+ labels: S.optional(Labels),
86
+ name: S.String,
87
+ network: CreateInstanceRequestNetwork,
88
+ retentionDays: S.Number,
89
+ storage: StorageCreate,
90
+ version: InstanceVersion,
91
+ }).pipe(T.Http({
92
+ method: "POST",
93
+ uri: "/v3/projects/{projectId}/regions/{region}/instances",
94
+ code: 200,
95
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
96
+ }))).annotate({
97
+ identifier: "CreateInstanceRequest",
98
+ });
99
+ export const CreateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
100
+ id: S.String,
101
+ })).annotate({
102
+ identifier: "CreateInstanceResponse",
103
+ });
104
+ export const CreateUserRequestRegion = /*@__PURE__*/ S.String;
105
+ export const CreateUserRequestRolesList = /*@__PURE__*/ S.Array(S.String);
106
+ export const CreateUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
107
+ projectId: S.String.pipe(T.Label()),
108
+ region: CreateUserRequestRegion.pipe(T.Label()),
109
+ instanceId: S.String.pipe(T.Label()),
110
+ default_database: S.optional(S.String),
111
+ roles: CreateUserRequestRolesList,
112
+ username: S.String,
113
+ }).pipe(T.Http({
114
+ method: "POST",
115
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
116
+ code: 200,
117
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
118
+ }))).annotate({
119
+ identifier: "CreateUserRequest",
120
+ });
121
+ export const CreateUserResponseRolesList = /*@__PURE__*/ S.Array(S.String);
122
+ export const CreateUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
123
+ default_database: S.String,
124
+ host: S.String,
125
+ id: S.Number,
126
+ password: S.String.pipe(T.SensitiveValue({})),
127
+ port: S.Number,
128
+ roles: CreateUserResponseRolesList,
129
+ status: S.String,
130
+ uri: S.String,
131
+ username: S.String,
132
+ })).annotate({
133
+ identifier: "CreateUserResponse",
134
+ });
135
+ export const DeleteDatabaseRequestRegion = /*@__PURE__*/ S.String;
136
+ export const DeleteDatabaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
137
+ projectId: S.String.pipe(T.Label()),
138
+ region: DeleteDatabaseRequestRegion.pipe(T.Label()),
139
+ instanceId: S.String.pipe(T.Label()),
140
+ databaseName: S.String.pipe(T.Label()),
141
+ }).pipe(T.Http({
142
+ method: "DELETE",
143
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseName}",
144
+ code: 200,
145
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
146
+ }))).annotate({
147
+ identifier: "DeleteDatabaseRequest",
148
+ });
149
+ export const DeleteDatabaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
150
+ identifier: "DeleteDatabaseResponse",
151
+ });
152
+ export const DeleteInstanceRequestRegion = /*@__PURE__*/ S.String;
153
+ export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
154
+ projectId: S.String.pipe(T.Label()),
155
+ region: DeleteInstanceRequestRegion.pipe(T.Label()),
156
+ instanceId: S.String.pipe(T.Label()),
157
+ }).pipe(T.Http({
158
+ method: "DELETE",
159
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
160
+ code: 200,
161
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
162
+ }))).annotate({
163
+ identifier: "DeleteInstanceRequest",
164
+ });
165
+ export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
166
+ identifier: "DeleteInstanceResponse",
167
+ });
168
+ export const DeleteUserRequestRegion = /*@__PURE__*/ S.String;
169
+ export const DeleteUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
170
+ projectId: S.String.pipe(T.Label()),
171
+ region: DeleteUserRequestRegion.pipe(T.Label()),
172
+ instanceId: S.String.pipe(T.Label()),
173
+ userId: S.Number.pipe(T.Label()),
174
+ }).pipe(T.Http({
175
+ method: "DELETE",
176
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
177
+ code: 200,
178
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
179
+ }))).annotate({
180
+ identifier: "DeleteUserRequest",
181
+ });
182
+ export const DeleteUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
183
+ identifier: "DeleteUserResponse",
184
+ });
185
+ export const GetBackupRequestRegion = /*@__PURE__*/ S.String;
186
+ export const GetBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
187
+ projectId: S.String.pipe(T.Label()),
188
+ region: GetBackupRequestRegion.pipe(T.Label()),
189
+ instanceId: S.String.pipe(T.Label()),
190
+ backupId: S.Number.pipe(T.Label()),
191
+ }).pipe(T.Http({
192
+ method: "GET",
193
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/{backupId}",
194
+ code: 200,
195
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
196
+ }))).annotate({
197
+ identifier: "GetBackupRequest",
198
+ });
199
+ export const GetBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
200
+ completionTime: S.String,
201
+ id: S.Number,
202
+ name: S.String,
203
+ retainedUntil: S.String,
204
+ size: S.Number,
205
+ type: S.String,
206
+ })).annotate({
207
+ identifier: "GetBackupResponse",
208
+ });
209
+ export const GetDatabaseRequestRegion = /*@__PURE__*/ S.String;
210
+ export const GetDatabaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
211
+ projectId: S.String.pipe(T.Label()),
212
+ region: GetDatabaseRequestRegion.pipe(T.Label()),
213
+ instanceId: S.String.pipe(T.Label()),
214
+ databaseName: S.String.pipe(T.Label()),
215
+ }).pipe(T.Http({
216
+ method: "GET",
217
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseName}",
218
+ code: 200,
219
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
220
+ }))).annotate({
221
+ identifier: "GetDatabaseRequest",
222
+ });
223
+ export const GetDatabaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
224
+ collationName: S.String,
225
+ compatibilityLevel: S.Number,
226
+ id: S.Number,
227
+ name: S.String,
228
+ owner: S.String,
229
+ })).annotate({
230
+ identifier: "GetDatabaseResponse",
231
+ });
232
+ export const GetInstanceRequestRegion = /*@__PURE__*/ S.String;
233
+ export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
234
+ projectId: S.String.pipe(T.Label()),
235
+ region: GetInstanceRequestRegion.pipe(T.Label()),
236
+ instanceId: S.String.pipe(T.Label()),
237
+ }).pipe(T.Http({
238
+ method: "GET",
239
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
240
+ code: 200,
241
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
242
+ }))).annotate({
243
+ identifier: "GetInstanceRequest",
244
+ });
245
+ export const InstanceEdition = /*@__PURE__*/ S.String;
246
+ export const InstanceNetwork = /*@__PURE__*/ S.suspend(() => S.Struct({
247
+ accessScope: S.optional(InstanceNetworkAccessScope),
248
+ acl: S.optional(Acl),
249
+ instanceAddress: S.optional(S.String),
250
+ routerAddress: S.optional(S.String),
251
+ })).annotate({
252
+ identifier: "InstanceNetwork",
253
+ });
254
+ export const Replicas = /*@__PURE__*/ S.Number;
255
+ export const State = /*@__PURE__*/ S.String;
256
+ export const Storage = /*@__PURE__*/ S.suspend(() => S.Struct({
257
+ class: S.optional(S.String),
258
+ size: S.optional(S.Number),
259
+ })).annotate({ identifier: "Storage" });
260
+ export const GetInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
261
+ backupSchedule: S.String,
262
+ edition: InstanceEdition,
263
+ encryption: S.optional(InstanceEncryption),
264
+ flavorId: S.String,
265
+ id: S.String,
266
+ isDeletable: S.Boolean,
267
+ labels: S.optional(Labels),
268
+ name: S.String,
269
+ network: InstanceNetwork,
270
+ replicas: Replicas,
271
+ retentionDays: S.Number,
272
+ state: State,
273
+ storage: Storage,
274
+ version: InstanceVersion,
275
+ })).annotate({
276
+ identifier: "GetInstanceResponse",
277
+ });
278
+ export const GetUserRequestRegion = /*@__PURE__*/ S.String;
279
+ export const GetUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
280
+ projectId: S.String.pipe(T.Label()),
281
+ region: GetUserRequestRegion.pipe(T.Label()),
282
+ instanceId: S.String.pipe(T.Label()),
283
+ userId: S.Number.pipe(T.Label()),
284
+ }).pipe(T.Http({
285
+ method: "GET",
286
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}",
287
+ code: 200,
288
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
289
+ }))).annotate({ identifier: "GetUserRequest" });
290
+ export const GetUserResponseRolesList = /*@__PURE__*/ S.Array(S.String);
291
+ export const GetUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
292
+ default_database: S.String,
293
+ host: S.String,
294
+ id: S.Number,
295
+ port: S.Number,
296
+ roles: GetUserResponseRolesList,
297
+ status: S.String,
298
+ username: S.String,
299
+ })).annotate({
300
+ identifier: "GetUserResponse",
301
+ });
302
+ export const ListBackupsRequestRegion = /*@__PURE__*/ S.String;
303
+ export const BackupSort = /*@__PURE__*/ S.String;
304
+ export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
305
+ projectId: S.String.pipe(T.Label()),
306
+ region: ListBackupsRequestRegion.pipe(T.Label()),
307
+ instanceId: S.String.pipe(T.Label()),
308
+ page: S.optional(S.Number.pipe(T.Query())),
309
+ size: S.optional(S.Number.pipe(T.Query())),
310
+ sort: S.optional(BackupSort.pipe(T.Query())),
311
+ }).pipe(T.Http({
312
+ method: "GET",
313
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups",
314
+ code: 200,
315
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
316
+ }))).annotate({
317
+ identifier: "ListBackupsRequest",
318
+ });
319
+ export const ListBackup = /*@__PURE__*/ S.suspend(() => S.Struct({
320
+ completionTime: S.String,
321
+ id: S.Number,
322
+ name: S.String,
323
+ retainedUntil: S.String,
324
+ size: S.Number,
325
+ type: S.String,
326
+ })).annotate({ identifier: "ListBackup" });
327
+ export const ListBackupsResponseBackupsList = /*@__PURE__*/ S.Array(ListBackup);
328
+ export const ListBackupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
329
+ backups: ListBackupsResponseBackupsList,
330
+ databaseName: S.String,
331
+ })).annotate({
332
+ identifier: "ListBackupsResponse",
333
+ });
334
+ export const ListBackupResponseBackupsList = /*@__PURE__*/ S.Array(ListBackupsResponse);
335
+ export const Pagination = /*@__PURE__*/ S.suspend(() => S.Struct({
336
+ page: S.Number,
337
+ size: S.Number,
338
+ sort: S.String,
339
+ totalPages: S.Number,
340
+ totalRows: S.Number,
341
+ })).annotate({ identifier: "Pagination" });
342
+ export const ListBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
343
+ backups: ListBackupResponseBackupsList,
344
+ pagination: Pagination,
345
+ })).annotate({
346
+ identifier: "ListBackupResponse",
347
+ });
348
+ export const ListCollationsRequestRegion = /*@__PURE__*/ S.String;
349
+ export const ListCollationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
350
+ projectId: S.String.pipe(T.Label()),
351
+ region: ListCollationsRequestRegion.pipe(T.Label()),
352
+ instanceId: S.String.pipe(T.Label()),
353
+ }).pipe(T.Http({
354
+ method: "GET",
355
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/collations",
356
+ code: 200,
357
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
358
+ }))).annotate({
359
+ identifier: "ListCollationsRequest",
360
+ });
361
+ export const DatabaseGetcollation = /*@__PURE__*/ S.suspend(() => S.Struct({
362
+ collation_name: S.optional(S.String),
363
+ description: S.optional(S.String),
364
+ })).annotate({
365
+ identifier: "DatabaseGetcollation",
366
+ });
367
+ export const ListCollationsResponseCollationsList = /*@__PURE__*/ S.Array(DatabaseGetcollation);
368
+ export const ListCollationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
369
+ collations: ListCollationsResponseCollationsList,
370
+ })).annotate({
371
+ identifier: "ListCollationsResponse",
372
+ });
373
+ export const ListCompatibilitiesRequestRegion = /*@__PURE__*/ S.String;
374
+ export const ListCompatibilitiesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
375
+ projectId: S.String.pipe(T.Label()),
376
+ region: ListCompatibilitiesRequestRegion.pipe(T.Label()),
377
+ instanceId: S.String.pipe(T.Label()),
378
+ }).pipe(T.Http({
379
+ method: "GET",
380
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/compatibility",
381
+ code: 200,
382
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
383
+ }))).annotate({
384
+ identifier: "ListCompatibilitiesRequest",
385
+ });
386
+ export const DatabaseGetcompatibility = /*@__PURE__*/ S.suspend(() => S.Struct({
387
+ compatibility_level: S.optional(S.Number),
388
+ description: S.optional(S.String),
389
+ })).annotate({
390
+ identifier: "DatabaseGetcompatibility",
391
+ });
392
+ export const ListCompatibilityResponseCompatibilitiesList =
393
+ /*@__PURE__*/ S.Array(DatabaseGetcompatibility);
394
+ export const ListCompatibilityResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
395
+ compatibilities: ListCompatibilityResponseCompatibilitiesList,
396
+ })).annotate({
397
+ identifier: "ListCompatibilityResponse",
398
+ });
399
+ export const ListCurrentRunningRestoreJobsRequestRegion =
400
+ /*@__PURE__*/ S.String;
401
+ export const ListCurrentRunningRestoreJobsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
402
+ projectId: S.String.pipe(T.Label()),
403
+ region: ListCurrentRunningRestoreJobsRequestRegion.pipe(T.Label()),
404
+ instanceId: S.String.pipe(T.Label()),
405
+ }).pipe(T.Http({
406
+ method: "GET",
407
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/restore-jobs",
408
+ code: 200,
409
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
410
+ }))).annotate({
411
+ identifier: "ListCurrentRunningRestoreJobsRequest",
412
+ });
413
+ export const BackupRunningRestore = /*@__PURE__*/ S.suspend(() => S.Struct({
414
+ command: S.String,
415
+ database_name: S.String,
416
+ estimated_completion_time: S.String,
417
+ percent_complete: S.Number,
418
+ start_time: S.String,
419
+ })).annotate({
420
+ identifier: "BackupRunningRestore",
421
+ });
422
+ export const ListCurrentRunningRestoreJobsRunningRestoresList =
423
+ /*@__PURE__*/ S.Array(BackupRunningRestore);
424
+ export const ListCurrentRunningRestoreJobs = /*@__PURE__*/ S.suspend(() => S.Struct({
425
+ runningRestores: ListCurrentRunningRestoreJobsRunningRestoresList,
426
+ })).annotate({
427
+ identifier: "ListCurrentRunningRestoreJobs",
428
+ });
429
+ export const ListDatabasesRequestRegion = /*@__PURE__*/ S.String;
430
+ export const DatabaseSort = /*@__PURE__*/ S.String;
431
+ export const ListDatabasesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
432
+ projectId: S.String.pipe(T.Label()),
433
+ region: ListDatabasesRequestRegion.pipe(T.Label()),
434
+ instanceId: S.String.pipe(T.Label()),
435
+ page: S.optional(S.Number.pipe(T.Query())),
436
+ size: S.optional(S.Number.pipe(T.Query())),
437
+ sort: S.optional(DatabaseSort.pipe(T.Query())),
438
+ }).pipe(T.Http({
439
+ method: "GET",
440
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases",
441
+ code: 200,
442
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
443
+ }))).annotate({
444
+ identifier: "ListDatabasesRequest",
445
+ });
446
+ export const ListDatabase = /*@__PURE__*/ S.suspend(() => S.Struct({
447
+ created: S.String,
448
+ id: S.Number,
449
+ name: S.String,
450
+ owner: S.String,
451
+ })).annotate({ identifier: "ListDatabase" });
452
+ export const ListDatabasesResponseDatabasesList = /*@__PURE__*/ S.Array(ListDatabase);
453
+ export const ListDatabasesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
454
+ databases: ListDatabasesResponseDatabasesList,
455
+ pagination: Pagination,
456
+ })).annotate({
457
+ identifier: "ListDatabasesResponse",
458
+ });
459
+ export const ListFlavorsRequestRegion = /*@__PURE__*/ S.String;
460
+ export const FlavorSort = /*@__PURE__*/ S.String;
461
+ export const ListFlavorsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
462
+ projectId: S.String.pipe(T.Label()),
463
+ region: ListFlavorsRequestRegion.pipe(T.Label()),
464
+ page: S.optional(S.Number.pipe(T.Query())),
465
+ size: S.optional(S.Number.pipe(T.Query())),
466
+ sort: S.optional(FlavorSort.pipe(T.Query())),
467
+ }).pipe(T.Http({
468
+ method: "GET",
469
+ uri: "/v3/projects/{projectId}/regions/{region}/flavors",
470
+ code: 200,
471
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
472
+ }))).annotate({
473
+ identifier: "ListFlavorsRequest",
474
+ });
475
+ export const FlavorStorageClassesStorageClass = /*@__PURE__*/ S.suspend(() => S.Struct({
476
+ class: S.String,
477
+ maxIoPerSec: S.Number,
478
+ maxThroughInMb: S.Number,
479
+ })).annotate({
480
+ identifier: "FlavorStorageClassesStorageClass",
481
+ });
482
+ export const FlavorStorageClasses = /*@__PURE__*/ S.Array(FlavorStorageClassesStorageClass);
483
+ export const ListFlavors = /*@__PURE__*/ S.suspend(() => S.Struct({
484
+ cpu: S.Number,
485
+ description: S.String,
486
+ id: S.String,
487
+ maxGB: S.Number,
488
+ memory: S.Number,
489
+ minGB: S.Number,
490
+ nodeType: S.String,
491
+ storageClasses: FlavorStorageClasses,
492
+ })).annotate({ identifier: "ListFlavors" });
493
+ export const ListFlavorsResponseFlavorsList = /*@__PURE__*/ S.Array(ListFlavors);
494
+ export const ListFlavorsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
495
+ flavors: ListFlavorsResponseFlavorsList,
496
+ pagination: Pagination,
497
+ })).annotate({
498
+ identifier: "ListFlavorsResponse",
499
+ });
500
+ export const ListInstancesRequestRegion = /*@__PURE__*/ S.String;
501
+ export const InstanceSort = /*@__PURE__*/ S.String;
502
+ export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
503
+ projectId: S.String.pipe(T.Label()),
504
+ region: ListInstancesRequestRegion.pipe(T.Label()),
505
+ page: S.optional(S.Number.pipe(T.Query())),
506
+ size: S.optional(S.Number.pipe(T.Query())),
507
+ sort: S.optional(InstanceSort.pipe(T.Query())),
508
+ }).pipe(T.Http({
509
+ method: "GET",
510
+ uri: "/v3/projects/{projectId}/regions/{region}/instances",
511
+ code: 200,
512
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
513
+ }))).annotate({
514
+ identifier: "ListInstancesRequest",
515
+ });
516
+ export const ListInstance = /*@__PURE__*/ S.suspend(() => S.Struct({
517
+ id: S.String,
518
+ isDeletable: S.Boolean,
519
+ name: S.String,
520
+ state: State,
521
+ })).annotate({ identifier: "ListInstance" });
522
+ export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(ListInstance);
523
+ export const ListInstancesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
524
+ instances: ListInstancesResponseInstancesList,
525
+ pagination: Pagination,
526
+ })).annotate({
527
+ identifier: "ListInstancesResponse",
528
+ });
529
+ export const ListRolesRequestRegion = /*@__PURE__*/ S.String;
530
+ export const ListRolesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
531
+ projectId: S.String.pipe(T.Label()),
532
+ region: ListRolesRequestRegion.pipe(T.Label()),
533
+ instanceId: S.String.pipe(T.Label()),
534
+ }).pipe(T.Http({
535
+ method: "GET",
536
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/roles",
537
+ code: 200,
538
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
539
+ }))).annotate({
540
+ identifier: "ListRolesRequest",
541
+ });
542
+ export const ListRolesResponseRolesList = /*@__PURE__*/ S.Array(S.String);
543
+ export const ListRolesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
544
+ roles: ListRolesResponseRolesList,
545
+ })).annotate({
546
+ identifier: "ListRolesResponse",
547
+ });
548
+ export const ListStoragesRequestRegion = /*@__PURE__*/ S.String;
549
+ export const ListStoragesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
550
+ projectId: S.String.pipe(T.Label()),
551
+ region: ListStoragesRequestRegion.pipe(T.Label()),
552
+ flavorId: S.String.pipe(T.Label()),
553
+ }).pipe(T.Http({
554
+ method: "GET",
555
+ uri: "/v3/projects/{projectId}/regions/{region}/storages/{flavorId}",
556
+ code: 200,
557
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
558
+ }))).annotate({
559
+ identifier: "ListStoragesRequest",
560
+ });
561
+ export const FlavorStorageRange = /*@__PURE__*/ S.suspend(() => S.Struct({
562
+ max: S.Number,
563
+ min: S.Number,
564
+ })).annotate({
565
+ identifier: "FlavorStorageRange",
566
+ });
567
+ export const ListStoragesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
568
+ storageClasses: FlavorStorageClasses,
569
+ storageRange: FlavorStorageRange,
570
+ })).annotate({
571
+ identifier: "ListStoragesResponse",
572
+ });
573
+ export const ListUsersRequestRegion = /*@__PURE__*/ S.String;
574
+ export const UserSort = /*@__PURE__*/ S.String;
575
+ export const ListUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
576
+ projectId: S.String.pipe(T.Label()),
577
+ region: ListUsersRequestRegion.pipe(T.Label()),
578
+ instanceId: S.String.pipe(T.Label()),
579
+ page: S.optional(S.Number.pipe(T.Query())),
580
+ size: S.optional(S.Number.pipe(T.Query())),
581
+ sort: S.optional(UserSort.pipe(T.Query())),
582
+ }).pipe(T.Http({
583
+ method: "GET",
584
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users",
585
+ code: 200,
586
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
587
+ }))).annotate({
588
+ identifier: "ListUsersRequest",
589
+ });
590
+ export const ListUser = /*@__PURE__*/ S.suspend(() => S.Struct({
591
+ id: S.Number,
592
+ status: S.String,
593
+ username: S.String,
594
+ })).annotate({ identifier: "ListUser" });
595
+ export const ListUserResponseUsersList = /*@__PURE__*/ S.Array(ListUser);
596
+ export const ListUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
597
+ pagination: Pagination,
598
+ users: ListUserResponseUsersList,
599
+ })).annotate({
600
+ identifier: "ListUserResponse",
601
+ });
602
+ export const ListVersionsRequestRegion = /*@__PURE__*/ S.String;
603
+ export const ListVersionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
604
+ projectId: S.String.pipe(T.Label()),
605
+ region: ListVersionsRequestRegion.pipe(T.Label()),
606
+ }).pipe(T.Http({
607
+ method: "GET",
608
+ uri: "/v3/projects/{projectId}/regions/{region}/versions",
609
+ code: 200,
610
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
611
+ }))).annotate({
612
+ identifier: "ListVersionsRequest",
613
+ });
614
+ export const Version = /*@__PURE__*/ S.suspend(() => S.Struct({
615
+ beta: S.Boolean,
616
+ deprecated: S.String,
617
+ recommend: S.Boolean,
618
+ version: S.String,
619
+ })).annotate({ identifier: "Version" });
620
+ export const ListVersionsResponseVersionsList = /*@__PURE__*/ S.Array(Version);
621
+ export const ListVersionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
622
+ versions: ListVersionsResponseVersionsList,
623
+ })).annotate({
624
+ identifier: "ListVersionsResponse",
625
+ });
626
+ export const PartialUpdateInstanceRequestRegion = /*@__PURE__*/ S.String;
627
+ export const PartialUpdateInstanceRequestNetwork = /*@__PURE__*/ S.suspend(() => S.Struct({
628
+ acl: S.optional(Acl),
629
+ })).annotate({
630
+ identifier: "PartialUpdateInstanceRequestNetwork",
631
+ });
632
+ export const StorageUpdate = /*@__PURE__*/ S.suspend(() => S.Struct({
633
+ size: S.optional(S.Number),
634
+ })).annotate({ identifier: "StorageUpdate" });
635
+ export const InstanceVersionOpt = /*@__PURE__*/ S.String;
636
+ export const PartialUpdateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
637
+ projectId: S.String.pipe(T.Label()),
638
+ region: PartialUpdateInstanceRequestRegion.pipe(T.Label()),
639
+ instanceId: S.String.pipe(T.Label()),
640
+ backupSchedule: S.optional(S.String),
641
+ flavorId: S.optional(S.String),
642
+ labels: S.optional(Labels),
643
+ name: S.optional(S.String),
644
+ network: S.optional(PartialUpdateInstanceRequestNetwork),
645
+ retentionDays: S.optional(S.Number),
646
+ storage: S.optional(StorageUpdate),
647
+ version: S.optional(InstanceVersionOpt),
648
+ }).pipe(T.Http({
649
+ method: "PATCH",
650
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
651
+ code: 200,
652
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
653
+ }))).annotate({
654
+ identifier: "PartialUpdateInstanceRequest",
655
+ });
656
+ export const PartialUpdateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
657
+ identifier: "PartialUpdateInstanceResponse",
658
+ });
659
+ export const ResetUserRequestRegion = /*@__PURE__*/ S.String;
660
+ export const ResetUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
661
+ projectId: S.String.pipe(T.Label()),
662
+ region: ResetUserRequestRegion.pipe(T.Label()),
663
+ instanceId: S.String.pipe(T.Label()),
664
+ userId: S.Number.pipe(T.Label()),
665
+ }).pipe(T.Http({
666
+ method: "POST",
667
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}/reset",
668
+ code: 200,
669
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
670
+ }))).annotate({
671
+ identifier: "ResetUserRequest",
672
+ });
673
+ export const ResetUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
674
+ password: S.String.pipe(T.SensitiveValue({})),
675
+ status: S.String,
676
+ uri: S.String,
677
+ username: S.String,
678
+ })).annotate({
679
+ identifier: "ResetUserResponse",
680
+ });
681
+ export const RestoreDatabaseFromBackupRequestRegion = /*@__PURE__*/ S.String;
682
+ export const SourceBackupType = /*@__PURE__*/ S.String;
683
+ export const SourceBackup = /*@__PURE__*/ S.suspend(() => S.Struct({
684
+ type: SourceBackupType,
685
+ })).annotate({ identifier: "SourceBackup" });
686
+ export const S3fileInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
687
+ file_number: S.optional(S.Number),
688
+ file_path: S.optional(S.String),
689
+ })).annotate({ identifier: "S3fileInfo" });
690
+ export const ExternalS3S3FilesList = /*@__PURE__*/ S.Array(S3fileInfo);
691
+ export const ExternalS3 = /*@__PURE__*/ S.suspend(() => S.Struct({
692
+ s3_access_key: S.String,
693
+ s3_access_secret: S.String.pipe(T.SensitiveValue({})),
694
+ s3_bucket: S.String,
695
+ s3_files: ExternalS3S3FilesList,
696
+ })).annotate({ identifier: "ExternalS3" });
697
+ export const SourceExternalS3Type = /*@__PURE__*/ S.String;
698
+ export const SourceExternalS3 = /*@__PURE__*/ S.suspend(() => S.Struct({
699
+ database_owner: S.String,
700
+ logging_guid: S.optional(S.String),
701
+ s3_details: ExternalS3,
702
+ type: SourceExternalS3Type,
703
+ })).annotate({
704
+ identifier: "SourceExternalS3",
705
+ });
706
+ export const RestoreDatabaseFromBackupRequestSource =
707
+ /*@__PURE__*/ S.Unknown;
708
+ export const RestoreDatabaseFromBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
709
+ projectId: S.String.pipe(T.Label()),
710
+ region: RestoreDatabaseFromBackupRequestRegion.pipe(T.Label()),
711
+ instanceId: S.String.pipe(T.Label()),
712
+ database_name: S.String,
713
+ source: RestoreDatabaseFromBackupRequestSource,
714
+ }).pipe(T.Http({
715
+ method: "POST",
716
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/restores",
717
+ code: 200,
718
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
719
+ }))).annotate({
720
+ identifier: "RestoreDatabaseFromBackupRequest",
721
+ });
722
+ export const RestoreDatabaseFromBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
723
+ identifier: "RestoreDatabaseFromBackupResponse",
724
+ });
725
+ export const TriggerBackupRequestRegion = /*@__PURE__*/ S.String;
726
+ export const TriggerBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
727
+ projectId: S.String.pipe(T.Label()),
728
+ region: TriggerBackupRequestRegion.pipe(T.Label()),
729
+ instanceId: S.String.pipe(T.Label()),
730
+ databaseName: S.String.pipe(T.Label()),
731
+ }).pipe(T.Http({
732
+ method: "POST",
733
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/databases/{databaseName}",
734
+ code: 200,
735
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
736
+ }))).annotate({
737
+ identifier: "TriggerBackupRequest",
738
+ });
739
+ export const TriggerBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
740
+ identifier: "TriggerBackupResponse",
741
+ });
742
+ export const TriggerRestoreRequestRegion = /*@__PURE__*/ S.String;
743
+ export const TriggerRestoreRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
744
+ projectId: S.String.pipe(T.Label()),
745
+ region: TriggerRestoreRequestRegion.pipe(T.Label()),
746
+ instanceId: S.String.pipe(T.Label()),
747
+ databaseName: S.String.pipe(T.Label()),
748
+ name: S.String,
749
+ restoreDateTime: S.String,
750
+ }).pipe(T.Http({
751
+ method: "POST",
752
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/databases/{databaseName}/restores",
753
+ code: 200,
754
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
755
+ }))).annotate({
756
+ identifier: "TriggerRestoreRequest",
757
+ });
758
+ export const TriggerRestoreResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
759
+ identifier: "TriggerRestoreResponse",
760
+ });
761
+ export const UpdateInstanceRequestRegion = /*@__PURE__*/ S.String;
762
+ export const UpdateInstanceRequestNetwork = /*@__PURE__*/ S.suspend(() => S.Struct({
763
+ acl: Acl,
764
+ })).annotate({
765
+ identifier: "UpdateInstanceRequestNetwork",
766
+ });
767
+ export const UpdateInstanceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
768
+ projectId: S.String.pipe(T.Label()),
769
+ region: UpdateInstanceRequestRegion.pipe(T.Label()),
770
+ instanceId: S.String.pipe(T.Label()),
771
+ backupSchedule: S.String,
772
+ flavorId: S.String,
773
+ labels: S.optional(Labels),
774
+ name: S.String,
775
+ network: UpdateInstanceRequestNetwork,
776
+ retentionDays: S.Number,
777
+ storage: StorageUpdate,
778
+ version: InstanceVersion,
779
+ }).pipe(T.Http({
780
+ method: "PUT",
781
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}",
782
+ code: 200,
783
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
784
+ }))).annotate({
785
+ identifier: "UpdateInstanceRequest",
786
+ });
787
+ export const UpdateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
788
+ identifier: "UpdateInstanceResponse",
789
+ });
790
+ export const UpdateInstanceProtectionRequestRegion = /*@__PURE__*/ S.String;
791
+ export const UpdateInstanceProtectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
792
+ projectId: S.String.pipe(T.Label()),
793
+ region: UpdateInstanceProtectionRequestRegion.pipe(T.Label()),
794
+ instanceId: S.String.pipe(T.Label()),
795
+ isDeletable: S.Boolean,
796
+ }).pipe(T.Http({
797
+ method: "POST",
798
+ uri: "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/protections",
799
+ code: 200,
800
+ baseUrl: "https://mssql-flex-service.api.stackit.cloud",
801
+ }))).annotate({
802
+ identifier: "UpdateInstanceProtectionRequest",
803
+ });
804
+ export const UpdateInstanceProtectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
805
+ isDeletable: S.Boolean,
806
+ })).annotate({
807
+ identifier: "UpdateInstanceProtectionResponse",
808
+ });
809
+ /** Create Database Create database for a user. Note: The name of a valid user must be provided in the 'options' map field using the key 'owner' */
810
+ export const createDatabase = /*@__PURE__*/ API.make(() => ({
811
+ input: CreateDatabaseRequest,
812
+ output: CreateDatabaseResponse,
813
+ errors: [
814
+ BadRequest,
815
+ Forbidden,
816
+ NotFound,
817
+ UnprocessableEntity,
818
+ UnknownStackitError,
819
+ ],
820
+ protocol: StackitProtocol,
821
+ retry: Retry.Retry,
822
+ }));
823
+ /** Create Instance Create a new instance of a sqlserver database instance. */
824
+ export const createInstance = /*@__PURE__*/ API.make(() => ({
825
+ input: CreateInstanceRequest,
826
+ output: CreateInstanceResponse,
827
+ errors: [
828
+ BadRequest,
829
+ Forbidden,
830
+ NotFound,
831
+ UnprocessableEntity,
832
+ UnknownStackitError,
833
+ ],
834
+ protocol: StackitProtocol,
835
+ retry: Retry.Retry,
836
+ }));
837
+ /** Create User Create user for an instance. */
838
+ export const createUser = /*@__PURE__*/ API.make(() => ({
839
+ input: CreateUserRequest,
840
+ output: CreateUserResponse,
841
+ errors: [
842
+ BadRequest,
843
+ Forbidden,
844
+ NotFound,
845
+ UnprocessableEntity,
846
+ UnknownStackitError,
847
+ ],
848
+ protocol: StackitProtocol,
849
+ retry: Retry.Retry,
850
+ }));
851
+ /** Delete Database Delete database for an instance. */
852
+ export const deleteDatabase = /*@__PURE__*/ API.make(() => ({
853
+ input: DeleteDatabaseRequest,
854
+ output: DeleteDatabaseResponse,
855
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
856
+ protocol: StackitProtocol,
857
+ retry: Retry.Retry,
858
+ }));
859
+ /** Delete Instance Delete an available sqlserver instance. */
860
+ export const deleteInstance = /*@__PURE__*/ API.make(() => ({
861
+ input: DeleteInstanceRequest,
862
+ output: DeleteInstanceResponse,
863
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
864
+ protocol: StackitProtocol,
865
+ retry: Retry.Retry,
866
+ }));
867
+ /** Delete User Delete an user from a specific instance. */
868
+ export const deleteUser = /*@__PURE__*/ API.make(() => ({
869
+ input: DeleteUserRequest,
870
+ output: DeleteUserResponse,
871
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
872
+ protocol: StackitProtocol,
873
+ retry: Retry.Retry,
874
+ }));
875
+ /** Get specific backup Get information about a specific backup for an instance. */
876
+ export const getBackup = /*@__PURE__*/ API.make(() => ({
877
+ input: GetBackupRequest,
878
+ output: GetBackupResponse,
879
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
880
+ protocol: StackitProtocol,
881
+ retry: Retry.Retry,
882
+ }));
883
+ /** Get Database Get specific available database */
884
+ export const getDatabase = /*@__PURE__*/ API.make(() => ({
885
+ input: GetDatabaseRequest,
886
+ output: GetDatabaseResponse,
887
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
888
+ protocol: StackitProtocol,
889
+ retry: Retry.Retry,
890
+ }));
891
+ /** Get Specific Instance Get information about a specific available instance */
892
+ export const getInstance = /*@__PURE__*/ API.make(() => ({
893
+ input: GetInstanceRequest,
894
+ output: GetInstanceResponse,
895
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
896
+ protocol: StackitProtocol,
897
+ retry: Retry.Retry,
898
+ }));
899
+ /** Get User Get a specific available user for an instance. */
900
+ export const getUser = /*@__PURE__*/ API.make(() => ({
901
+ input: GetUserRequest,
902
+ output: GetUserResponse,
903
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
904
+ protocol: StackitProtocol,
905
+ retry: Retry.Retry,
906
+ }));
907
+ /** List backups List all backups which are available for a specific instance. */
908
+ export const listBackups = /*@__PURE__*/ API.make(() => ({
909
+ input: ListBackupsRequest,
910
+ output: ListBackupResponse,
911
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
912
+ protocol: StackitProtocol,
913
+ retry: Retry.Retry,
914
+ }));
915
+ /** Get database collation list Returns a list of collations for an instance */
916
+ export const listCollations = /*@__PURE__*/ API.make(() => ({
917
+ input: ListCollationsRequest,
918
+ output: ListCollationsResponse,
919
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
920
+ protocol: StackitProtocol,
921
+ retry: Retry.Retry,
922
+ }));
923
+ /** Get database compatibility list Returns a list of compatibility levels for creating a new database */
924
+ export const listCompatibilities = /*@__PURE__*/ API.make(() => ({
925
+ input: ListCompatibilitiesRequest,
926
+ output: ListCompatibilityResponse,
927
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
928
+ protocol: StackitProtocol,
929
+ retry: Retry.Retry,
930
+ }));
931
+ /** List current running restore jobs List all currently running restore jobs which are available for a specific instance */
932
+ export const listCurrentRunningRestoreJobs2 = /*@__PURE__*/ API.make(() => ({
933
+ input: ListCurrentRunningRestoreJobsRequest,
934
+ output: ListCurrentRunningRestoreJobs,
935
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
936
+ protocol: StackitProtocol,
937
+ retry: Retry.Retry,
938
+ }));
939
+ /** List Databases List available databases for an instance. */
940
+ export const listDatabases = /*@__PURE__*/ API.make(() => ({
941
+ input: ListDatabasesRequest,
942
+ output: ListDatabasesResponse,
943
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
944
+ protocol: StackitProtocol,
945
+ retry: Retry.Retry,
946
+ }));
947
+ /** Get Flavors Get all available flavors for a project. */
948
+ export const listFlavors2 = /*@__PURE__*/ API.make(() => ({
949
+ input: ListFlavorsRequest,
950
+ output: ListFlavorsResponse,
951
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
952
+ protocol: StackitProtocol,
953
+ retry: Retry.Retry,
954
+ }));
955
+ /** List Instances List all available instances for your project. */
956
+ export const listInstances = /*@__PURE__*/ API.make(() => ({
957
+ input: ListInstancesRequest,
958
+ output: ListInstancesResponse,
959
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
960
+ protocol: StackitProtocol,
961
+ retry: Retry.Retry,
962
+ }));
963
+ /** List Roles List available roles for an instance that can be assigned to a user */
964
+ export const listRoles = /*@__PURE__*/ API.make(() => ({
965
+ input: ListRolesRequest,
966
+ output: ListRolesResponse,
967
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
968
+ protocol: StackitProtocol,
969
+ retry: Retry.Retry,
970
+ }));
971
+ /** Get Storages Get available storages for a specific flavor */
972
+ export const listStorages = /*@__PURE__*/ API.make(() => ({
973
+ input: ListStoragesRequest,
974
+ output: ListStoragesResponse,
975
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
976
+ protocol: StackitProtocol,
977
+ retry: Retry.Retry,
978
+ }));
979
+ /** List Users List available users for an instance. */
980
+ export const listUsers = /*@__PURE__*/ API.make(() => ({
981
+ input: ListUsersRequest,
982
+ output: ListUserResponse,
983
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
984
+ protocol: StackitProtocol,
985
+ retry: Retry.Retry,
986
+ }));
987
+ /** Get Versions Get the sqlserver available versions for the project. */
988
+ export const listVersions = /*@__PURE__*/ API.make(() => ({
989
+ input: ListVersionsRequest,
990
+ output: ListVersionsResponse,
991
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
992
+ protocol: StackitProtocol,
993
+ retry: Retry.Retry,
994
+ }));
995
+ /** Update Instance Partially Update an available instance of a mssql database. No fields are required. **Please note that any changes applied via PUT or PATCH requests will initiate a reboot of the SQL Server Flex Instance.** */
996
+ export const partialUpdateInstance = /*@__PURE__*/ API.make(() => ({
997
+ input: PartialUpdateInstanceRequest,
998
+ output: PartialUpdateInstanceResponse,
999
+ errors: [
1000
+ BadRequest,
1001
+ Forbidden,
1002
+ NotFound,
1003
+ UnprocessableEntity,
1004
+ UnknownStackitError,
1005
+ ],
1006
+ protocol: StackitProtocol,
1007
+ retry: Retry.Retry,
1008
+ }));
1009
+ /** Reset User Reset an user from an specific instance. */
1010
+ export const resetUser = /*@__PURE__*/ API.make(() => ({
1011
+ input: ResetUserRequest,
1012
+ output: ResetUserResponse,
1013
+ errors: [
1014
+ BadRequest,
1015
+ Forbidden,
1016
+ NotFound,
1017
+ UnprocessableEntity,
1018
+ UnknownStackitError,
1019
+ ],
1020
+ protocol: StackitProtocol,
1021
+ retry: Retry.Retry,
1022
+ }));
1023
+ /** Create a Restore Operation Triggers a new restore operation for the specified instance. The request body defines the source (e.g., internal backup, external S3) and the target database. */
1024
+ export const restoreDatabaseFromBackup = /*@__PURE__*/ API.make(() => ({
1025
+ input: RestoreDatabaseFromBackupRequest,
1026
+ output: RestoreDatabaseFromBackupResponse,
1027
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1028
+ protocol: StackitProtocol,
1029
+ retry: Retry.Retry,
1030
+ }));
1031
+ /** Trigger backup for a specific Database Trigger backup for a specific database */
1032
+ export const triggerBackup = /*@__PURE__*/ API.make(() => ({
1033
+ input: TriggerBackupRequest,
1034
+ output: TriggerBackupResponse,
1035
+ errors: [
1036
+ BadRequest,
1037
+ Forbidden,
1038
+ NotFound,
1039
+ UnprocessableEntity,
1040
+ UnknownStackitError,
1041
+ ],
1042
+ protocol: StackitProtocol,
1043
+ retry: Retry.Retry,
1044
+ }));
1045
+ /** Trigger restore for a specific Database Trigger restore for a specific Database */
1046
+ export const triggerRestore = /*@__PURE__*/ API.make(() => ({
1047
+ input: TriggerRestoreRequest,
1048
+ output: TriggerRestoreResponse,
1049
+ errors: [
1050
+ BadRequest,
1051
+ Forbidden,
1052
+ NotFound,
1053
+ UnprocessableEntity,
1054
+ UnknownStackitError,
1055
+ ],
1056
+ protocol: StackitProtocol,
1057
+ retry: Retry.Retry,
1058
+ }));
1059
+ /** Update Instance Updates an available instance of a sqlserver database **Please note that any changes applied via PUT or PATCH requests will initiate a reboot of the SQL Server Flex Instance.** */
1060
+ export const updateInstance = /*@__PURE__*/ API.make(() => ({
1061
+ input: UpdateInstanceRequest,
1062
+ output: UpdateInstanceResponse,
1063
+ errors: [
1064
+ BadRequest,
1065
+ Forbidden,
1066
+ NotFound,
1067
+ UnprocessableEntity,
1068
+ UnknownStackitError,
1069
+ ],
1070
+ protocol: StackitProtocol,
1071
+ retry: Retry.Retry,
1072
+ }));
1073
+ /** Protect Instance Toggle the deletion protection for an instance. */
1074
+ export const updateInstanceProtection = /*@__PURE__*/ API.make(() => ({
1075
+ input: UpdateInstanceProtectionRequest,
1076
+ output: UpdateInstanceProtectionResponse,
1077
+ errors: [
1078
+ BadRequest,
1079
+ Forbidden,
1080
+ NotFound,
1081
+ UnprocessableEntity,
1082
+ UnknownStackitError,
1083
+ ],
1084
+ protocol: StackitProtocol,
1085
+ retry: Retry.Retry,
1086
+ }));
1087
+ //# sourceMappingURL=sqlserverflex.js.map