@distilled.cloud/stackit 1.0.0-rc.15 → 1.0.0-rc.17

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 (346) hide show
  1. package/lib/.lazy.json +1 -0
  2. package/lib/_bundle/lazy.js +4 -0
  3. package/lib/_bundle/sdk.js +2 -0
  4. package/lib/_bundle/sdk.js.map +1 -0
  5. package/lib/credentials.d.ts +2 -2
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/credentials.js +1 -49
  8. package/lib/errors.d.ts +13 -13
  9. package/lib/errors.d.ts.map +1 -1
  10. package/lib/errors.js +1 -26
  11. package/lib/index.d.ts +2 -2
  12. package/lib/index.js +1 -24
  13. package/lib/index.lazy.js +7 -0
  14. package/lib/pagination.d.ts +1 -1
  15. package/lib/pagination.js +1 -45
  16. package/lib/protocol.d.ts +3 -3
  17. package/lib/protocol.d.ts.map +1 -1
  18. package/lib/protocol.js +1 -147
  19. package/lib/retry.d.ts +1 -1
  20. package/lib/retry.d.ts.map +1 -1
  21. package/lib/retry.js +1 -31
  22. package/lib/services/alb.d.ts +10 -87
  23. package/lib/services/alb.d.ts.map +1 -1
  24. package/lib/services/alb.js +28 -512
  25. package/lib/services/alb.js.map +1 -1
  26. package/lib/services/alb_waf.d.ts +9 -82
  27. package/lib/services/alb_waf.d.ts.map +1 -1
  28. package/lib/services/alb_waf.js +33 -520
  29. package/lib/services/alb_waf.js.map +1 -1
  30. package/lib/services/authorization.d.ts +5 -47
  31. package/lib/services/authorization.d.ts.map +1 -1
  32. package/lib/services/authorization.js +1 -322
  33. package/lib/services/authorization.js.map +1 -1
  34. package/lib/services/automation.d.ts +7 -47
  35. package/lib/services/automation.d.ts.map +1 -1
  36. package/lib/services/automation.js +1 -362
  37. package/lib/services/automation.js.map +1 -1
  38. package/lib/services/cdn.d.ts +8 -220
  39. package/lib/services/cdn.d.ts.map +1 -1
  40. package/lib/services/cdn.js +31 -905
  41. package/lib/services/cdn.js.map +1 -1
  42. package/lib/services/certificates.d.ts +8 -27
  43. package/lib/services/certificates.d.ts.map +1 -1
  44. package/lib/services/certificates.js +1 -178
  45. package/lib/services/certificates.js.map +1 -1
  46. package/lib/services/cost.d.ts +10 -37
  47. package/lib/services/cost.d.ts.map +1 -1
  48. package/lib/services/cost.js +1 -176
  49. package/lib/services/cost.js.map +1 -1
  50. package/lib/services/dns.d.ts +9 -104
  51. package/lib/services/dns.d.ts.map +1 -1
  52. package/lib/services/dns.js +40 -725
  53. package/lib/services/dns.js.map +1 -1
  54. package/lib/services/dremio.d.ts +8 -50
  55. package/lib/services/dremio.d.ts.map +1 -1
  56. package/lib/services/dremio.js +1 -316
  57. package/lib/services/dremio.js.map +1 -1
  58. package/lib/services/edge.d.ts +7 -40
  59. package/lib/services/edge.d.ts.map +1 -1
  60. package/lib/services/edge.js +1 -356
  61. package/lib/services/edge.js.map +1 -1
  62. package/lib/services/functions.d.ts +1 -48
  63. package/lib/services/functions.d.ts.map +1 -1
  64. package/lib/services/functions.js +1 -398
  65. package/lib/services/functions.js.map +1 -1
  66. package/lib/services/git.d.ts +8 -61
  67. package/lib/services/git.d.ts.map +1 -1
  68. package/lib/services/git.js +35 -519
  69. package/lib/services/git.js.map +1 -1
  70. package/lib/services/iaas.d.ts +9 -337
  71. package/lib/services/iaas.d.ts.map +1 -1
  72. package/lib/services/iaas.js +181 -3542
  73. package/lib/services/iaas.js.map +1 -1
  74. package/lib/services/index.js +0 -2
  75. package/lib/services/intake.d.ts +8 -75
  76. package/lib/services/intake.d.ts.map +1 -1
  77. package/lib/services/intake.js +29 -474
  78. package/lib/services/intake.js.map +1 -1
  79. package/lib/services/kms.d.ts +9 -92
  80. package/lib/services/kms.d.ts.map +1 -1
  81. package/lib/services/kms.js +41 -662
  82. package/lib/services/kms.js.map +1 -1
  83. package/lib/services/lb_ip_lists.d.ts +9 -25
  84. package/lib/services/lb_ip_lists.d.ts.map +1 -1
  85. package/lib/services/lb_ip_lists.js +1 -153
  86. package/lib/services/lb_ip_lists.js.map +1 -1
  87. package/lib/services/load_balancer.d.ts +10 -81
  88. package/lib/services/load_balancer.d.ts.map +1 -1
  89. package/lib/services/load_balancer.js +29 -496
  90. package/lib/services/load_balancer.js.map +1 -1
  91. package/lib/services/logme.d.ts +8 -69
  92. package/lib/services/logme.d.ts.map +1 -1
  93. package/lib/services/logme.js +33 -573
  94. package/lib/services/logme.js.map +1 -1
  95. package/lib/services/logs.d.ts +8 -64
  96. package/lib/services/logs.d.ts.map +1 -1
  97. package/lib/services/logs.js +34 -474
  98. package/lib/services/logs.js.map +1 -1
  99. package/lib/services/mariadb.d.ts +8 -65
  100. package/lib/services/mariadb.d.ts.map +1 -1
  101. package/lib/services/mariadb.js +34 -550
  102. package/lib/services/mariadb.js.map +1 -1
  103. package/lib/services/model_experiments.d.ts +9 -48
  104. package/lib/services/model_experiments.d.ts.map +1 -1
  105. package/lib/services/model_experiments.js +1 -335
  106. package/lib/services/model_experiments.js.map +1 -1
  107. package/lib/services/model_serving.d.ts +7 -47
  108. package/lib/services/model_serving.d.ts.map +1 -1
  109. package/lib/services/model_serving.js +1 -286
  110. package/lib/services/model_serving.js.map +1 -1
  111. package/lib/services/mongodb_flex.d.ts +8 -137
  112. package/lib/services/mongodb_flex.d.ts.map +1 -1
  113. package/lib/services/mongodb_flex.js +42 -802
  114. package/lib/services/mongodb_flex.js.map +1 -1
  115. package/lib/services/object_storage.d.ts +12 -59
  116. package/lib/services/object_storage.d.ts.map +1 -1
  117. package/lib/services/object_storage.js +38 -539
  118. package/lib/services/object_storage.js.map +1 -1
  119. package/lib/services/observability.d.ts +8 -407
  120. package/lib/services/observability.d.ts.map +1 -1
  121. package/lib/services/observability.js +159 -3157
  122. package/lib/services/observability.js.map +1 -1
  123. package/lib/services/opensearch.d.ts +8 -71
  124. package/lib/services/opensearch.d.ts.map +1 -1
  125. package/lib/services/opensearch.js +34 -562
  126. package/lib/services/opensearch.js.map +1 -1
  127. package/lib/services/pim.d.ts +12 -108
  128. package/lib/services/pim.d.ts.map +1 -1
  129. package/lib/services/pim.js +31 -735
  130. package/lib/services/pim.js.map +1 -1
  131. package/lib/services/postgres_flex.d.ts +14 -136
  132. package/lib/services/postgres_flex.d.ts.map +1 -1
  133. package/lib/services/postgres_flex.js +47 -852
  134. package/lib/services/postgres_flex.js.map +1 -1
  135. package/lib/services/pubsub.d.ts +11 -73
  136. package/lib/services/pubsub.d.ts.map +1 -1
  137. package/lib/services/pubsub.js +37 -518
  138. package/lib/services/pubsub.js.map +1 -1
  139. package/lib/services/rabbitmq.d.ts +8 -76
  140. package/lib/services/rabbitmq.d.ts.map +1 -1
  141. package/lib/services/rabbitmq.js +35 -573
  142. package/lib/services/rabbitmq.js.map +1 -1
  143. package/lib/services/registry.d.ts +10 -28
  144. package/lib/services/registry.d.ts.map +1 -1
  145. package/lib/services/registry.js +1 -197
  146. package/lib/services/registry.js.map +1 -1
  147. package/lib/services/resource_manager.d.ts +9 -61
  148. package/lib/services/resource_manager.d.ts.map +1 -1
  149. package/lib/services/resource_manager.js +36 -472
  150. package/lib/services/resource_manager.js.map +1 -1
  151. package/lib/services/run_command.d.ts +5 -28
  152. package/lib/services/run_command.d.ts.map +1 -1
  153. package/lib/services/run_command.js +1 -184
  154. package/lib/services/run_command.js.map +1 -1
  155. package/lib/services/sca.d.ts +8 -79
  156. package/lib/services/sca.d.ts.map +1 -1
  157. package/lib/services/sca.js +25 -444
  158. package/lib/services/sca.js.map +1 -1
  159. package/lib/services/scf.d.ts +8 -64
  160. package/lib/services/scf.d.ts.map +1 -1
  161. package/lib/services/scf.js +40 -669
  162. package/lib/services/scf.js.map +1 -1
  163. package/lib/services/secrets_manager.d.ts +8 -61
  164. package/lib/services/secrets_manager.d.ts.map +1 -1
  165. package/lib/services/secrets_manager.js +42 -612
  166. package/lib/services/secrets_manager.js.map +1 -1
  167. package/lib/services/server_backup.d.ts +7 -50
  168. package/lib/services/server_backup.d.ts.map +1 -1
  169. package/lib/services/server_backup.js +29 -453
  170. package/lib/services/server_backup.js.map +1 -1
  171. package/lib/services/server_update.d.ts +7 -35
  172. package/lib/services/server_update.d.ts.map +1 -1
  173. package/lib/services/server_update.js +1 -351
  174. package/lib/services/server_update.js.map +1 -1
  175. package/lib/services/service_account.d.ts +10 -68
  176. package/lib/services/service_account.d.ts.map +1 -1
  177. package/lib/services/service_account.js +30 -505
  178. package/lib/services/service_account.js.map +1 -1
  179. package/lib/services/service_enablement.d.ts +7 -29
  180. package/lib/services/service_enablement.d.ts.map +1 -1
  181. package/lib/services/service_enablement.js +1 -156
  182. package/lib/services/service_enablement.js.map +1 -1
  183. package/lib/services/sfs.d.ts +4 -96
  184. package/lib/services/sfs.d.ts.map +1 -1
  185. package/lib/services/sfs.js +46 -789
  186. package/lib/services/sfs.js.map +1 -1
  187. package/lib/services/ske.d.ts +9 -108
  188. package/lib/services/ske.d.ts.map +1 -1
  189. package/lib/services/ske.js +26 -557
  190. package/lib/services/ske.js.map +1 -1
  191. package/lib/services/sqlserverflex.d.ts +11 -152
  192. package/lib/services/sqlserverflex.d.ts.map +1 -1
  193. package/lib/services/sqlserverflex.js +46 -935
  194. package/lib/services/sqlserverflex.js.map +1 -1
  195. package/lib/services/stackit_marketplace.d.ts +9 -38
  196. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  197. package/lib/services/stackit_marketplace.js +26 -378
  198. package/lib/services/stackit_marketplace.js.map +1 -1
  199. package/lib/services/telemetry_link.d.ts +8 -61
  200. package/lib/services/telemetry_link.d.ts.map +1 -1
  201. package/lib/services/telemetry_link.js +34 -531
  202. package/lib/services/telemetry_link.js.map +1 -1
  203. package/lib/services/telemetry_router.d.ts +8 -72
  204. package/lib/services/telemetry_router.d.ts.map +1 -1
  205. package/lib/services/telemetry_router.js +29 -483
  206. package/lib/services/telemetry_router.js.map +1 -1
  207. package/lib/services/ufw.d.ts +7 -42
  208. package/lib/services/ufw.d.ts.map +1 -1
  209. package/lib/services/ufw.js +1 -278
  210. package/lib/services/ufw.js.map +1 -1
  211. package/lib/services/valkey.d.ts +8 -68
  212. package/lib/services/valkey.d.ts.map +1 -1
  213. package/lib/services/valkey.js +34 -566
  214. package/lib/services/valkey.js.map +1 -1
  215. package/lib/services/vpn.d.ts +21 -186
  216. package/lib/services/vpn.d.ts.map +1 -1
  217. package/lib/services/vpn.js +43 -930
  218. package/lib/services/vpn.js.map +1 -1
  219. package/lib/services/workflows.d.ts +15 -84
  220. package/lib/services/workflows.d.ts.map +1 -1
  221. package/lib/services/workflows.js +27 -507
  222. package/lib/services/workflows.js.map +1 -1
  223. package/lib/services.lazy/alb.js +4 -0
  224. package/lib/services.lazy/alb_waf.js +4 -0
  225. package/lib/services.lazy/authorization.js +1 -0
  226. package/lib/services.lazy/automation.js +1 -0
  227. package/lib/services.lazy/cdn.js +4 -0
  228. package/lib/services.lazy/certificates.js +1 -0
  229. package/lib/services.lazy/cost.js +1 -0
  230. package/lib/services.lazy/dns.js +4 -0
  231. package/lib/services.lazy/dremio.js +1 -0
  232. package/lib/services.lazy/edge.js +1 -0
  233. package/lib/services.lazy/functions.js +1 -0
  234. package/lib/services.lazy/git.js +4 -0
  235. package/lib/services.lazy/iaas.js +4 -0
  236. package/lib/services.lazy/index.js +3 -0
  237. package/lib/services.lazy/intake.js +4 -0
  238. package/lib/services.lazy/kms.js +4 -0
  239. package/lib/services.lazy/lb_ip_lists.js +1 -0
  240. package/lib/services.lazy/load_balancer.js +4 -0
  241. package/lib/services.lazy/logme.js +4 -0
  242. package/lib/services.lazy/logs.js +4 -0
  243. package/lib/services.lazy/mariadb.js +4 -0
  244. package/lib/services.lazy/model_experiments.js +1 -0
  245. package/lib/services.lazy/model_serving.js +1 -0
  246. package/lib/services.lazy/mongodb_flex.js +4 -0
  247. package/lib/services.lazy/object_storage.js +4 -0
  248. package/lib/services.lazy/observability.js +4 -0
  249. package/lib/services.lazy/opensearch.js +4 -0
  250. package/lib/services.lazy/pim.js +4 -0
  251. package/lib/services.lazy/postgres_flex.js +4 -0
  252. package/lib/services.lazy/pubsub.js +4 -0
  253. package/lib/services.lazy/rabbitmq.js +4 -0
  254. package/lib/services.lazy/registry.js +1 -0
  255. package/lib/services.lazy/resource_manager.js +4 -0
  256. package/lib/services.lazy/run_command.js +1 -0
  257. package/lib/services.lazy/sca.js +4 -0
  258. package/lib/services.lazy/scf.js +4 -0
  259. package/lib/services.lazy/secrets_manager.js +4 -0
  260. package/lib/services.lazy/server_backup.js +4 -0
  261. package/lib/services.lazy/server_update.js +1 -0
  262. package/lib/services.lazy/service_account.js +4 -0
  263. package/lib/services.lazy/service_enablement.js +1 -0
  264. package/lib/services.lazy/sfs.js +4 -0
  265. package/lib/services.lazy/ske.js +4 -0
  266. package/lib/services.lazy/sqlserverflex.js +4 -0
  267. package/lib/services.lazy/stackit_marketplace.js +4 -0
  268. package/lib/services.lazy/telemetry_link.js +4 -0
  269. package/lib/services.lazy/telemetry_router.js +4 -0
  270. package/lib/services.lazy/ufw.js +1 -0
  271. package/lib/services.lazy/valkey.js +4 -0
  272. package/lib/services.lazy/vpn.js +4 -0
  273. package/lib/services.lazy/workflows.js +4 -0
  274. package/lib/traits.d.ts +1 -1
  275. package/lib/traits.js +1 -15
  276. package/package.json +9 -7
  277. package/src/credentials.ts +21 -18
  278. package/src/errors.ts +10 -14
  279. package/src/index.ts +2 -2
  280. package/src/pagination.ts +2 -2
  281. package/src/protocol.ts +12 -9
  282. package/src/retry.ts +6 -4
  283. package/src/services/alb.ts +599 -655
  284. package/src/services/alb_waf.ts +597 -637
  285. package/src/services/authorization.ts +400 -383
  286. package/src/services/automation.ts +422 -405
  287. package/src/services/cdn.ts +817 -1375
  288. package/src/services/certificates.ts +209 -190
  289. package/src/services/cost.ts +100 -207
  290. package/src/services/dns.ts +793 -833
  291. package/src/services/dremio.ts +356 -349
  292. package/src/services/edge.ts +406 -366
  293. package/src/services/functions.ts +465 -463
  294. package/src/services/git.ts +602 -547
  295. package/src/services/iaas.ts +3931 -3821
  296. package/src/services/intake.ts +521 -549
  297. package/src/services/kms.ts +715 -692
  298. package/src/services/lb_ip_lists.ts +173 -152
  299. package/src/services/load_balancer.ts +576 -619
  300. package/src/services/logme.ts +696 -641
  301. package/src/services/logs.ts +510 -493
  302. package/src/services/mariadb.ts +671 -604
  303. package/src/services/model_experiments.ts +343 -356
  304. package/src/services/model_serving.ts +337 -328
  305. package/src/services/mongodb_flex.ts +955 -1007
  306. package/src/services/object_storage.ts +614 -557
  307. package/src/services/observability.ts +3469 -3866
  308. package/src/services/opensearch.ts +679 -628
  309. package/src/services/pim.ts +672 -909
  310. package/src/services/postgres_flex.ts +966 -986
  311. package/src/services/pubsub.ts +524 -546
  312. package/src/services/rabbitmq.ts +693 -654
  313. package/src/services/registry.ts +227 -194
  314. package/src/services/resource_manager.ts +520 -517
  315. package/src/services/run_command.ts +219 -211
  316. package/src/services/sca.ts +543 -570
  317. package/src/services/scf.ts +790 -716
  318. package/src/services/secrets_manager.ts +707 -622
  319. package/src/services/server_backup.ts +490 -475
  320. package/src/services/server_update.ts +353 -356
  321. package/src/services/service_account.ts +515 -553
  322. package/src/services/service_enablement.ts +162 -166
  323. package/src/services/sfs.ts +879 -958
  324. package/src/services/ske.ts +694 -769
  325. package/src/services/sqlserverflex.ts +1042 -1117
  326. package/src/services/stackit_marketplace.ts +377 -372
  327. package/src/services/telemetry_link.ts +530 -531
  328. package/src/services/telemetry_router.ts +509 -534
  329. package/src/services/ufw.ts +305 -307
  330. package/src/services/valkey.ts +684 -629
  331. package/src/services/vpn.ts +935 -1195
  332. package/src/services/workflows.ts +426 -586
  333. package/src/traits.ts +1 -1
  334. package/lib/credentials.js.map +0 -1
  335. package/lib/errors.js.map +0 -1
  336. package/lib/pagination.js.map +0 -1
  337. package/lib/protocol.js.map +0 -1
  338. package/lib/protocol.test.d.ts +0 -2
  339. package/lib/protocol.test.d.ts.map +0 -1
  340. package/lib/protocol.test.js +0 -181
  341. package/lib/protocol.test.js.map +0 -1
  342. package/lib/retry.js.map +0 -1
  343. package/lib/services/index.js.map +0 -1
  344. package/lib/traits.js.map +0 -1
  345. package/src/protocol.test.ts +0 -304
  346. /package/lib/{index.js.map → index.lazy.js.map} +0 -0
@@ -1,11 +1,14 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
2
  import * as C from "@distilled.cloud/core/category";
3
3
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
4
- import * as S from "@distilled.cloud/core/schema";
4
+ import * as S from "@distilled.cloud/core/schema-lite";
5
+ import * as __L from "@distilled.cloud/core/schema-lite";
5
6
  import { UnknownStackitError } from "../errors.ts";
6
7
  import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
7
8
  import * as Retry from "../retry.ts";
8
9
  import * as T from "../traits.ts";
10
+ // Schema table, filled on first reach (see __S at the end).
11
+ const __s: any[] = [];
9
12
 
10
13
  export type { StackitOpError, StackitOpContext };
11
14
 
@@ -39,33 +42,13 @@ export class NotFound
39
42
  export interface VolumeAutomationInput {
40
43
  kind: string;
41
44
  }
42
- export const VolumeAutomationInput = /*@__PURE__*/ S.suspend(() =>
43
- S.Struct({
44
- kind: S.String,
45
- }),
46
- ).annotate({ identifier: "VolumeAutomationInput" }) as any as S.Schema<VolumeAutomationInput>;
47
-
48
45
  export interface AutomationScheduleTrigger {
49
46
  /** An rrule (Recurrence Rule) is a standardized string format used in iCalendar (RFC 5545) to define repeating events, and you can generate one by using a dedicated library or by using online generator tools to specify parameters like frequency, interval, and end dates */
50
47
  rrule: string;
51
48
  }
52
- export const AutomationScheduleTrigger = /*@__PURE__*/ S.suspend(() =>
53
- S.Struct({
54
- rrule: S.String,
55
- }),
56
- ).annotate({
57
- identifier: "AutomationScheduleTrigger",
58
- }) as any as S.Schema<AutomationScheduleTrigger>;
59
-
60
49
  export interface AutomationTriggers {
61
50
  schedule?: AutomationScheduleTrigger | null;
62
51
  }
63
- export const AutomationTriggers = /*@__PURE__*/ S.suspend(() =>
64
- S.Struct({
65
- schedule: S.optional(S.NullOr(AutomationScheduleTrigger)),
66
- }),
67
- ).annotate({ identifier: "AutomationTriggers" }) as any as S.Schema<AutomationTriggers>;
68
-
69
52
  export interface CreateVolumeAutomationRequest {
70
53
  /** project Id */
71
54
  projectId: string;
@@ -77,55 +60,15 @@ export interface CreateVolumeAutomationRequest {
77
60
  templateId: string;
78
61
  triggers?: AutomationTriggers | null;
79
62
  }
80
- export const CreateVolumeAutomationRequest = /*@__PURE__*/ S.suspend(() =>
81
- S.Struct({
82
- projectId: S.String.pipe(T.Label()),
83
- region: S.String.pipe(T.Label()),
84
- description: S.optional(S.NullOr(S.String)),
85
- input: S.optional(S.NullOr(VolumeAutomationInput)),
86
- name: S.optional(S.NullOr(S.String)),
87
- templateId: S.String,
88
- triggers: S.optional(S.NullOr(AutomationTriggers)),
89
- }).pipe(
90
- T.Http({
91
- method: "POST",
92
- uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations",
93
- code: 200,
94
- baseUrl: "https://automation-service.api.stackit.cloud",
95
- }),
96
- ),
97
- ).annotate({
98
- identifier: "CreateVolumeAutomationRequest",
99
- }) as any as S.Schema<CreateVolumeAutomationRequest>;
100
-
101
63
  export type VolumeOutputStepResult = VolumeAutomationInput;
102
- export const VolumeOutputStepResult = VolumeAutomationInput;
103
-
104
64
  export interface VolumeOutputStep {
105
65
  name: string;
106
66
  result?: VolumeAutomationInput;
107
67
  }
108
- export const VolumeOutputStep = /*@__PURE__*/ S.suspend(() =>
109
- S.Struct({
110
- name: S.String,
111
- result: S.optional(VolumeAutomationInput),
112
- }),
113
- ).annotate({ identifier: "VolumeOutputStep" }) as any as S.Schema<VolumeOutputStep>;
114
-
115
68
  export type VolumeOutputStepsList = Array<VolumeOutputStep>;
116
- export const VolumeOutputStepsList = /*@__PURE__*/ S.Array(
117
- VolumeOutputStep,
118
- ) as any as S.Schema<VolumeOutputStepsList>;
119
-
120
69
  export interface VolumeOutput {
121
70
  steps?: VolumeOutputStepsList;
122
71
  }
123
- export const VolumeOutput = /*@__PURE__*/ S.suspend(() =>
124
- S.Struct({
125
- steps: S.optional(VolumeOutputStepsList),
126
- }),
127
- ).annotate({ identifier: "VolumeOutput" }) as any as S.Schema<VolumeOutput>;
128
-
129
72
  export interface VolumeAutomation {
130
73
  createTime: string;
131
74
  description?: string;
@@ -137,20 +80,6 @@ export interface VolumeAutomation {
137
80
  triggers?: AutomationTriggers | null;
138
81
  updateTime: string;
139
82
  }
140
- export const VolumeAutomation = /*@__PURE__*/ S.suspend(() =>
141
- S.Struct({
142
- createTime: S.String,
143
- description: S.optional(S.String),
144
- id: S.String,
145
- input: S.optional(S.NullOr(VolumeAutomationInput)),
146
- name: S.optional(S.String),
147
- output: S.optional(VolumeOutput),
148
- templateId: S.optional(S.String),
149
- triggers: S.optional(S.NullOr(AutomationTriggers)),
150
- updateTime: S.String,
151
- }),
152
- ).annotate({ identifier: "VolumeAutomation" }) as any as S.Schema<VolumeAutomation>;
153
-
154
83
  export interface CreateVolumeExecutionRequest {
155
84
  /** project Id */
156
85
  projectId: string;
@@ -159,23 +88,6 @@ export interface CreateVolumeExecutionRequest {
159
88
  /** automation Id */
160
89
  automationId: string;
161
90
  }
162
- export const CreateVolumeExecutionRequest = /*@__PURE__*/ S.suspend(() =>
163
- S.Struct({
164
- projectId: S.String.pipe(T.Label()),
165
- region: S.String.pipe(T.Label()),
166
- automationId: S.String.pipe(T.Label()),
167
- }).pipe(
168
- T.Http({
169
- method: "POST",
170
- uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}/executions",
171
- code: 200,
172
- baseUrl: "https://automation-service.api.stackit.cloud",
173
- }),
174
- ),
175
- ).annotate({
176
- identifier: "CreateVolumeExecutionRequest",
177
- }) as any as S.Schema<CreateVolumeExecutionRequest>;
178
-
179
91
  export interface VolumeExecutionAutomation {
180
92
  createTime: string;
181
93
  description?: string;
@@ -186,74 +98,27 @@ export interface VolumeExecutionAutomation {
186
98
  triggers?: AutomationTriggers | null;
187
99
  updateTime: string;
188
100
  }
189
- export const VolumeExecutionAutomation = /*@__PURE__*/ S.suspend(() =>
190
- S.Struct({
191
- createTime: S.String,
192
- description: S.optional(S.String),
193
- input: S.optional(S.NullOr(VolumeAutomationInput)),
194
- name: S.optional(S.String),
195
- output: S.optional(VolumeOutput),
196
- templateId: S.optional(S.String),
197
- triggers: S.optional(S.NullOr(AutomationTriggers)),
198
- updateTime: S.String,
199
- }),
200
- ).annotate({
201
- identifier: "VolumeExecutionAutomation",
202
- }) as any as S.Schema<VolumeExecutionAutomation>;
203
-
204
101
  export type VolumeExecutionOutputStepStatus = "PENDING" | "RUNNING" | "FAILED" | "SUCCESSFUL";
205
- export const VolumeExecutionOutputStepStatus = S.String;
206
-
207
102
  export interface VolumeExecutionOutputStep {
208
103
  message?: string;
209
104
  name: string;
210
105
  result?: VolumeAutomationInput;
211
106
  status: VolumeExecutionOutputStepStatus;
212
107
  }
213
- export const VolumeExecutionOutputStep = /*@__PURE__*/ S.suspend(() =>
214
- S.Struct({
215
- message: S.optional(S.String),
216
- name: S.String,
217
- result: S.optional(VolumeAutomationInput),
218
- status: VolumeExecutionOutputStepStatus,
219
- }),
220
- ).annotate({
221
- identifier: "VolumeExecutionOutputStep",
222
- }) as any as S.Schema<VolumeExecutionOutputStep>;
223
-
224
108
  export type VolumeExecutionOutputStepsList = Array<VolumeExecutionOutputStep>;
225
- export const VolumeExecutionOutputStepsList = /*@__PURE__*/ S.Array(
226
- VolumeExecutionOutputStep,
227
- ) as any as S.Schema<VolumeExecutionOutputStepsList>;
228
-
229
109
  export interface VolumeExecutionOutput {
230
110
  steps?: VolumeExecutionOutputStepsList;
231
111
  }
232
- export const VolumeExecutionOutput = /*@__PURE__*/ S.suspend(() =>
233
- S.Struct({
234
- steps: S.optional(VolumeExecutionOutputStepsList),
235
- }),
236
- ).annotate({ identifier: "VolumeExecutionOutput" }) as any as S.Schema<VolumeExecutionOutput>;
237
-
238
112
  export interface VolumeExecutionDetails {
239
113
  config: VolumeExecutionAutomation;
240
114
  output?: VolumeExecutionOutput;
241
115
  }
242
- export const VolumeExecutionDetails = /*@__PURE__*/ S.suspend(() =>
243
- S.Struct({
244
- config: VolumeExecutionAutomation,
245
- output: S.optional(VolumeExecutionOutput),
246
- }),
247
- ).annotate({ identifier: "VolumeExecutionDetails" }) as any as S.Schema<VolumeExecutionDetails>;
248
-
249
116
  export type VolumeExecutionResponseStatus =
250
117
  | "PENDING"
251
118
  | "RUNNING"
252
119
  | "COMPLETED"
253
120
  | "FAILED"
254
121
  | "TERMINATED";
255
- export const VolumeExecutionResponseStatus = S.String;
256
-
257
122
  export interface VolumeExecutionResponse {
258
123
  automation?: VolumeExecutionDetails;
259
124
  createTime: string;
@@ -261,16 +126,6 @@ export interface VolumeExecutionResponse {
261
126
  id: string;
262
127
  status: VolumeExecutionResponseStatus;
263
128
  }
264
- export const VolumeExecutionResponse = /*@__PURE__*/ S.suspend(() =>
265
- S.Struct({
266
- automation: S.optional(VolumeExecutionDetails),
267
- createTime: S.String,
268
- endTime: S.optional(S.String),
269
- id: S.String,
270
- status: VolumeExecutionResponseStatus,
271
- }),
272
- ).annotate({ identifier: "VolumeExecutionResponse" }) as any as S.Schema<VolumeExecutionResponse>;
273
-
274
129
  export interface DeleteVolumeAutomationRequest {
275
130
  /** project Id */
276
131
  projectId: string;
@@ -279,28 +134,7 @@ export interface DeleteVolumeAutomationRequest {
279
134
  /** automation Id */
280
135
  automationId: string;
281
136
  }
282
- export const DeleteVolumeAutomationRequest = /*@__PURE__*/ S.suspend(() =>
283
- S.Struct({
284
- projectId: S.String.pipe(T.Label()),
285
- region: S.String.pipe(T.Label()),
286
- automationId: S.String.pipe(T.Label()),
287
- }).pipe(
288
- T.Http({
289
- method: "DELETE",
290
- uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}",
291
- code: 200,
292
- baseUrl: "https://automation-service.api.stackit.cloud",
293
- }),
294
- ),
295
- ).annotate({
296
- identifier: "DeleteVolumeAutomationRequest",
297
- }) as any as S.Schema<DeleteVolumeAutomationRequest>;
298
-
299
137
  export interface DeleteVolumeAutomationResponse {}
300
- export const DeleteVolumeAutomationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
301
- identifier: "DeleteVolumeAutomationResponse",
302
- }) as any as S.Schema<DeleteVolumeAutomationResponse>;
303
-
304
138
  export interface GetVolumeAutomationRequest {
305
139
  /** project Id */
306
140
  projectId: string;
@@ -309,23 +143,6 @@ export interface GetVolumeAutomationRequest {
309
143
  /** automation Id */
310
144
  automationId: string;
311
145
  }
312
- export const GetVolumeAutomationRequest = /*@__PURE__*/ S.suspend(() =>
313
- S.Struct({
314
- projectId: S.String.pipe(T.Label()),
315
- region: S.String.pipe(T.Label()),
316
- automationId: S.String.pipe(T.Label()),
317
- }).pipe(
318
- T.Http({
319
- method: "GET",
320
- uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}",
321
- code: 200,
322
- baseUrl: "https://automation-service.api.stackit.cloud",
323
- }),
324
- ),
325
- ).annotate({
326
- identifier: "GetVolumeAutomationRequest",
327
- }) as any as S.Schema<GetVolumeAutomationRequest>;
328
-
329
146
  export interface GetVolumeExecutionRequest {
330
147
  /** project Id */
331
148
  projectId: string;
@@ -336,24 +153,6 @@ export interface GetVolumeExecutionRequest {
336
153
  /** execution Id */
337
154
  executionId: string;
338
155
  }
339
- export const GetVolumeExecutionRequest = /*@__PURE__*/ S.suspend(() =>
340
- S.Struct({
341
- projectId: S.String.pipe(T.Label()),
342
- region: S.String.pipe(T.Label()),
343
- automationId: S.String.pipe(T.Label()),
344
- executionId: S.String.pipe(T.Label()),
345
- }).pipe(
346
- T.Http({
347
- method: "GET",
348
- uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}/executions/{executionId}",
349
- code: 200,
350
- baseUrl: "https://automation-service.api.stackit.cloud",
351
- }),
352
- ),
353
- ).annotate({
354
- identifier: "GetVolumeExecutionRequest",
355
- }) as any as S.Schema<GetVolumeExecutionRequest>;
356
-
357
156
  export interface GetVolumeTemplateRequest {
358
157
  /** project Id */
359
158
  projectId: string;
@@ -362,35 +161,10 @@ export interface GetVolumeTemplateRequest {
362
161
  /** templateId Id */
363
162
  templateId: string;
364
163
  }
365
- export const GetVolumeTemplateRequest = /*@__PURE__*/ S.suspend(() =>
366
- S.Struct({
367
- projectId: S.String.pipe(T.Label()),
368
- region: S.String.pipe(T.Label()),
369
- templateId: S.String.pipe(T.Label()),
370
- }).pipe(
371
- T.Http({
372
- method: "GET",
373
- uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/templates/{templateId}",
374
- code: 200,
375
- baseUrl: "https://automation-service.api.stackit.cloud",
376
- }),
377
- ),
378
- ).annotate({ identifier: "GetVolumeTemplateRequest" }) as any as S.Schema<GetVolumeTemplateRequest>;
379
-
380
164
  export type VolumeTemplateAutomationInputKind = "VolumeRecoveryPointManagement";
381
- export const VolumeTemplateAutomationInputKind = S.String;
382
-
383
165
  export interface VolumeTemplateAutomationInput {
384
166
  kind: VolumeTemplateAutomationInputKind;
385
167
  }
386
- export const VolumeTemplateAutomationInput = /*@__PURE__*/ S.suspend(() =>
387
- S.Struct({
388
- kind: VolumeTemplateAutomationInputKind,
389
- }),
390
- ).annotate({
391
- identifier: "VolumeTemplateAutomationInput",
392
- }) as any as S.Schema<VolumeTemplateAutomationInput>;
393
-
394
168
  export interface GetVolumeTemplateResponse {
395
169
  createTime: string;
396
170
  description: string;
@@ -399,19 +173,6 @@ export interface GetVolumeTemplateResponse {
399
173
  name: string;
400
174
  output?: VolumeOutput;
401
175
  }
402
- export const GetVolumeTemplateResponse = /*@__PURE__*/ S.suspend(() =>
403
- S.Struct({
404
- createTime: S.String,
405
- description: S.String,
406
- id: S.String,
407
- input: S.optional(VolumeTemplateAutomationInput),
408
- name: S.String,
409
- output: S.optional(VolumeOutput),
410
- }),
411
- ).annotate({
412
- identifier: "GetVolumeTemplateResponse",
413
- }) as any as S.Schema<GetVolumeTemplateResponse>;
414
-
415
176
  export interface ListVolumeAutomationsRequest {
416
177
  /** project Id */
417
178
  projectId: string;
@@ -422,24 +183,6 @@ export interface ListVolumeAutomationsRequest {
422
183
  /** A page token, received from a previous list call. Provide this to retrieve the subsequent page. */
423
184
  pageToken?: string;
424
185
  }
425
- export const ListVolumeAutomationsRequest = /*@__PURE__*/ S.suspend(() =>
426
- S.Struct({
427
- projectId: S.String.pipe(T.Label()),
428
- region: S.String.pipe(T.Label()),
429
- pageSize: S.optional(S.Number.pipe(T.Query())),
430
- pageToken: S.optional(S.String.pipe(T.Query())),
431
- }).pipe(
432
- T.Http({
433
- method: "GET",
434
- uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations",
435
- code: 200,
436
- baseUrl: "https://automation-service.api.stackit.cloud",
437
- }),
438
- ),
439
- ).annotate({
440
- identifier: "ListVolumeAutomationsRequest",
441
- }) as any as S.Schema<ListVolumeAutomationsRequest>;
442
-
443
186
  export interface ListAutomationsItem {
444
187
  createTime: string;
445
188
  description?: string;
@@ -449,35 +192,12 @@ export interface ListAutomationsItem {
449
192
  triggers?: AutomationTriggers | null;
450
193
  updateTime: string;
451
194
  }
452
- export const ListAutomationsItem = /*@__PURE__*/ S.suspend(() =>
453
- S.Struct({
454
- createTime: S.String,
455
- description: S.optional(S.String),
456
- id: S.String,
457
- name: S.optional(S.String),
458
- templateId: S.optional(S.String),
459
- triggers: S.optional(S.NullOr(AutomationTriggers)),
460
- updateTime: S.String,
461
- }),
462
- ).annotate({ identifier: "ListAutomationsItem" }) as any as S.Schema<ListAutomationsItem>;
463
-
464
195
  export type ListAutomationsResponseItemsList = Array<ListAutomationsItem>;
465
- export const ListAutomationsResponseItemsList = /*@__PURE__*/ S.Array(
466
- ListAutomationsItem,
467
- ) as any as S.Schema<ListAutomationsResponseItemsList>;
468
-
469
196
  export interface ListAutomationsResponse {
470
197
  items: ListAutomationsResponseItemsList;
471
198
  /** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
472
199
  nextPageToken?: string;
473
200
  }
474
- export const ListAutomationsResponse = /*@__PURE__*/ S.suspend(() =>
475
- S.Struct({
476
- items: ListAutomationsResponseItemsList,
477
- nextPageToken: S.optional(S.String),
478
- }),
479
- ).annotate({ identifier: "ListAutomationsResponse" }) as any as S.Schema<ListAutomationsResponse>;
480
-
481
201
  export interface ListVolumeExecutionsRequest {
482
202
  /** project Id */
483
203
  projectId: string;
@@ -490,65 +210,24 @@ export interface ListVolumeExecutionsRequest {
490
210
  /** A page token, received from a previous list call. Provide this to retrieve the subsequent page. */
491
211
  pageToken?: string;
492
212
  }
493
- export const ListVolumeExecutionsRequest = /*@__PURE__*/ S.suspend(() =>
494
- S.Struct({
495
- projectId: S.String.pipe(T.Label()),
496
- region: S.String.pipe(T.Label()),
497
- automationId: S.String.pipe(T.Label()),
498
- pageSize: S.optional(S.Number.pipe(T.Query())),
499
- pageToken: S.optional(S.String.pipe(T.Query())),
500
- }).pipe(
501
- T.Http({
502
- method: "GET",
503
- uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}/executions",
504
- code: 200,
505
- baseUrl: "https://automation-service.api.stackit.cloud",
506
- }),
507
- ),
508
- ).annotate({
509
- identifier: "ListVolumeExecutionsRequest",
510
- }) as any as S.Schema<ListVolumeExecutionsRequest>;
511
-
512
213
  export type ListExecutionsItemStatus =
513
214
  | "PENDING"
514
215
  | "RUNNING"
515
216
  | "COMPLETED"
516
217
  | "FAILED"
517
218
  | "TERMINATED";
518
- export const ListExecutionsItemStatus = S.String;
519
-
520
219
  export interface ListExecutionsItem {
521
220
  createTime: string;
522
221
  endTime?: string;
523
222
  id: string;
524
223
  status: ListExecutionsItemStatus;
525
224
  }
526
- export const ListExecutionsItem = /*@__PURE__*/ S.suspend(() =>
527
- S.Struct({
528
- createTime: S.String,
529
- endTime: S.optional(S.String),
530
- id: S.String,
531
- status: ListExecutionsItemStatus,
532
- }),
533
- ).annotate({ identifier: "ListExecutionsItem" }) as any as S.Schema<ListExecutionsItem>;
534
-
535
225
  export type ListExecutionsResponseItemsList = Array<ListExecutionsItem>;
536
- export const ListExecutionsResponseItemsList = /*@__PURE__*/ S.Array(
537
- ListExecutionsItem,
538
- ) as any as S.Schema<ListExecutionsResponseItemsList>;
539
-
540
226
  export interface ListExecutionsResponse {
541
227
  items: ListExecutionsResponseItemsList;
542
228
  /** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
543
229
  nextPageToken?: string;
544
230
  }
545
- export const ListExecutionsResponse = /*@__PURE__*/ S.suspend(() =>
546
- S.Struct({
547
- items: ListExecutionsResponseItemsList,
548
- nextPageToken: S.optional(S.String),
549
- }),
550
- ).annotate({ identifier: "ListExecutionsResponse" }) as any as S.Schema<ListExecutionsResponse>;
551
-
552
231
  export interface ListVolumeTemplatesRequest {
553
232
  /** project Id */
554
233
  projectId: string;
@@ -559,56 +238,18 @@ export interface ListVolumeTemplatesRequest {
559
238
  /** A page token, received from a previous list call. Provide this to retrieve the subsequent page. */
560
239
  pageToken?: string;
561
240
  }
562
- export const ListVolumeTemplatesRequest = /*@__PURE__*/ S.suspend(() =>
563
- S.Struct({
564
- projectId: S.String.pipe(T.Label()),
565
- region: S.String.pipe(T.Label()),
566
- pageSize: S.optional(S.Number.pipe(T.Query())),
567
- pageToken: S.optional(S.String.pipe(T.Query())),
568
- }).pipe(
569
- T.Http({
570
- method: "GET",
571
- uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/templates",
572
- code: 200,
573
- baseUrl: "https://automation-service.api.stackit.cloud",
574
- }),
575
- ),
576
- ).annotate({
577
- identifier: "ListVolumeTemplatesRequest",
578
- }) as any as S.Schema<ListVolumeTemplatesRequest>;
579
-
580
241
  export interface Template {
581
242
  createTime: string;
582
243
  description: string;
583
244
  id: string;
584
245
  name: string;
585
246
  }
586
- export const Template = /*@__PURE__*/ S.suspend(() =>
587
- S.Struct({
588
- createTime: S.String,
589
- description: S.String,
590
- id: S.String,
591
- name: S.String,
592
- }),
593
- ).annotate({ identifier: "Template" }) as any as S.Schema<Template>;
594
-
595
247
  export type ListTemplatesResponseItemsList = Array<Template>;
596
- export const ListTemplatesResponseItemsList = /*@__PURE__*/ S.Array(
597
- Template,
598
- ) as any as S.Schema<ListTemplatesResponseItemsList>;
599
-
600
248
  export interface ListTemplatesResponse {
601
249
  items: ListTemplatesResponseItemsList;
602
250
  /** A token that can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
603
251
  nextPageToken?: string;
604
252
  }
605
- export const ListTemplatesResponse = /*@__PURE__*/ S.suspend(() =>
606
- S.Struct({
607
- items: ListTemplatesResponseItemsList,
608
- nextPageToken: S.optional(S.String),
609
- }),
610
- ).annotate({ identifier: "ListTemplatesResponse" }) as any as S.Schema<ListTemplatesResponse>;
611
-
612
253
  export interface PartialUpdateVolumeAutomationRequest {
613
254
  /** project Id */
614
255
  projectId: string;
@@ -623,28 +264,6 @@ export interface PartialUpdateVolumeAutomationRequest {
623
264
  name?: string | null;
624
265
  triggers?: AutomationTriggers | null;
625
266
  }
626
- export const PartialUpdateVolumeAutomationRequest = /*@__PURE__*/ S.suspend(() =>
627
- S.Struct({
628
- projectId: S.String.pipe(T.Label()),
629
- region: S.String.pipe(T.Label()),
630
- automationId: S.String.pipe(T.Label()),
631
- updateMask: S.optional(S.String.pipe(T.Query())),
632
- description: S.optional(S.NullOr(S.String)),
633
- input: S.optional(S.NullOr(VolumeAutomationInput)),
634
- name: S.optional(S.NullOr(S.String)),
635
- triggers: S.optional(S.NullOr(AutomationTriggers)),
636
- }).pipe(
637
- T.Http({
638
- method: "PATCH",
639
- uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}",
640
- code: 200,
641
- baseUrl: "https://automation-service.api.stackit.cloud",
642
- }),
643
- ),
644
- ).annotate({
645
- identifier: "PartialUpdateVolumeAutomationRequest",
646
- }) as any as S.Schema<PartialUpdateVolumeAutomationRequest>;
647
-
648
267
  export type CreateVolumeAutomationError = BadRequest | Forbidden | NotFound | StackitOpError;
649
268
  /** Create volume automation Creates a new volume automation */
650
269
  export const createVolumeAutomation: API.OperationMethod<
@@ -653,8 +272,8 @@ export const createVolumeAutomation: API.OperationMethod<
653
272
  CreateVolumeAutomationError,
654
273
  StackitOpContext
655
274
  > = /*@__PURE__*/ API.make(() => ({
656
- input: CreateVolumeAutomationRequest,
657
- output: VolumeAutomation,
275
+ input: __S(24, __c3, 0) as any as S.Schema<CreateVolumeAutomationRequest>,
276
+ output: __S(48, __c6, 0) as any as S.Schema<VolumeAutomation>,
658
277
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
659
278
  protocol: StackitProtocol,
660
279
  retry: Retry.Retry,
@@ -668,8 +287,8 @@ export const createVolumeExecution: API.OperationMethod<
668
287
  CreateVolumeExecutionError,
669
288
  StackitOpContext
670
289
  > = /*@__PURE__*/ API.make(() => ({
671
- input: CreateVolumeExecutionRequest,
672
- output: VolumeExecutionResponse,
290
+ input: __S(56, __c7, 0) as any as S.Schema<CreateVolumeExecutionRequest>,
291
+ output: __S(69, __c8, 5) as any as S.Schema<VolumeExecutionResponse>,
673
292
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
674
293
  protocol: StackitProtocol,
675
294
  retry: Retry.Retry,
@@ -683,8 +302,8 @@ export const deleteVolumeAutomation: API.OperationMethod<
683
302
  DeleteVolumeAutomationError,
684
303
  StackitOpContext
685
304
  > = /*@__PURE__*/ API.make(() => ({
686
- input: DeleteVolumeAutomationRequest,
687
- output: DeleteVolumeAutomationResponse,
305
+ input: __S(72, __c9, 0) as any as S.Schema<DeleteVolumeAutomationRequest>,
306
+ output: __S(73, __c9, 1) as any as S.Schema<DeleteVolumeAutomationResponse>,
688
307
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
689
308
  protocol: StackitProtocol,
690
309
  retry: Retry.Retry,
@@ -698,8 +317,8 @@ export const getVolumeAutomation: API.OperationMethod<
698
317
  GetVolumeAutomationError,
699
318
  StackitOpContext
700
319
  > = /*@__PURE__*/ API.make(() => ({
701
- input: GetVolumeAutomationRequest,
702
- output: VolumeAutomation,
320
+ input: __S(80, __c10, 0) as any as S.Schema<GetVolumeAutomationRequest>,
321
+ output: __S(48, __c6, 0) as any as S.Schema<VolumeAutomation>,
703
322
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
704
323
  protocol: StackitProtocol,
705
324
  retry: Retry.Retry,
@@ -713,8 +332,8 @@ export const getVolumeExecution: API.OperationMethod<
713
332
  GetVolumeExecutionError,
714
333
  StackitOpContext
715
334
  > = /*@__PURE__*/ API.make(() => ({
716
- input: GetVolumeExecutionRequest,
717
- output: VolumeExecutionResponse,
335
+ input: __S(88, __c11, 0) as any as S.Schema<GetVolumeExecutionRequest>,
336
+ output: __S(69, __c8, 5) as any as S.Schema<VolumeExecutionResponse>,
718
337
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
719
338
  protocol: StackitProtocol,
720
339
  retry: Retry.Retry,
@@ -728,8 +347,8 @@ export const getVolumeTemplate: API.OperationMethod<
728
347
  GetVolumeTemplateError,
729
348
  StackitOpContext
730
349
  > = /*@__PURE__*/ API.make(() => ({
731
- input: GetVolumeTemplateRequest,
732
- output: GetVolumeTemplateResponse,
350
+ input: __S(96, __c12, 0) as any as S.Schema<GetVolumeTemplateRequest>,
351
+ output: __S(98, __c12, 2) as any as S.Schema<GetVolumeTemplateResponse>,
733
352
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
734
353
  protocol: StackitProtocol,
735
354
  retry: Retry.Retry,
@@ -743,8 +362,8 @@ export const listVolumeAutomations: API.OperationMethod<
743
362
  ListVolumeAutomationsError,
744
363
  StackitOpContext
745
364
  > = /*@__PURE__*/ API.make(() => ({
746
- input: ListVolumeAutomationsRequest,
747
- output: ListAutomationsResponse,
365
+ input: __S(104, __c13, 0) as any as S.Schema<ListVolumeAutomationsRequest>,
366
+ output: __S(107, __c13, 3) as any as S.Schema<ListAutomationsResponse>,
748
367
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
749
368
  protocol: StackitProtocol,
750
369
  retry: Retry.Retry,
@@ -758,8 +377,8 @@ export const listVolumeExecutions: API.OperationMethod<
758
377
  ListVolumeExecutionsError,
759
378
  StackitOpContext
760
379
  > = /*@__PURE__*/ API.make(() => ({
761
- input: ListVolumeExecutionsRequest,
762
- output: ListExecutionsResponse,
380
+ input: __S(0, __c0, 0) as any as S.Schema<ListVolumeExecutionsRequest>,
381
+ output: __S(3, __c0, 3) as any as S.Schema<ListExecutionsResponse>,
763
382
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
764
383
  protocol: StackitProtocol,
765
384
  retry: Retry.Retry,
@@ -773,8 +392,8 @@ export const listVolumeTemplates: API.OperationMethod<
773
392
  ListVolumeTemplatesError,
774
393
  StackitOpContext
775
394
  > = /*@__PURE__*/ API.make(() => ({
776
- input: ListVolumeTemplatesRequest,
777
- output: ListTemplatesResponse,
395
+ input: __S(8, __c1, 0) as any as S.Schema<ListVolumeTemplatesRequest>,
396
+ output: __S(11, __c1, 3) as any as S.Schema<ListTemplatesResponse>,
778
397
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
779
398
  protocol: StackitProtocol,
780
399
  retry: Retry.Retry,
@@ -788,9 +407,407 @@ export const partialUpdateVolumeAutomation: API.OperationMethod<
788
407
  PartialUpdateVolumeAutomationError,
789
408
  StackitOpContext
790
409
  > = /*@__PURE__*/ API.make(() => ({
791
- input: PartialUpdateVolumeAutomationRequest,
792
- output: VolumeAutomation,
410
+ input: __S(16, __c2, 0) as any as S.Schema<PartialUpdateVolumeAutomationRequest>,
411
+ output: __S(48, __c6, 0) as any as S.Schema<VolumeAutomation>,
793
412
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
794
413
  protocol: StackitProtocol,
795
414
  retry: Retry.Retry,
796
415
  }));
416
+
417
+ // Schema builders: each runs one schema initializer, on that schema's first use.
418
+ function __c0(j: number): any {
419
+ switch (j) {
420
+ case 0:
421
+ return S.suspend(() =>
422
+ S.Struct({
423
+ projectId: S.String.pipe(T.Label()),
424
+ region: S.String.pipe(T.Label()),
425
+ automationId: S.String.pipe(T.Label()),
426
+ pageSize: S.optional(S.Number.pipe(T.Query())),
427
+ pageToken: S.optional(S.String.pipe(T.Query())),
428
+ }).pipe(
429
+ T.Http({
430
+ method: "GET",
431
+ uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}/executions",
432
+ code: 200,
433
+ baseUrl: "https://automation-service.api.stackit.cloud",
434
+ }),
435
+ ),
436
+ ).annotate({ identifier: "ListVolumeExecutionsRequest" });
437
+ case 1:
438
+ return S.suspend(() =>
439
+ S.Struct({
440
+ createTime: S.String,
441
+ endTime: S.optional(S.String),
442
+ id: S.String,
443
+ status: S.String,
444
+ }),
445
+ ).annotate({ identifier: "ListExecutionsItem" });
446
+ case 2:
447
+ return S.Array(__S(1, __c0, 1));
448
+ case 3:
449
+ return S.suspend(() =>
450
+ S.Struct({
451
+ items: __S(2, __c0, 2),
452
+ nextPageToken: S.optional(S.String),
453
+ }),
454
+ ).annotate({ identifier: "ListExecutionsResponse" });
455
+ }
456
+ }
457
+ function __c1(j: number): any {
458
+ switch (j) {
459
+ case 0:
460
+ return S.suspend(() =>
461
+ S.Struct({
462
+ projectId: S.String.pipe(T.Label()),
463
+ region: S.String.pipe(T.Label()),
464
+ pageSize: S.optional(S.Number.pipe(T.Query())),
465
+ pageToken: S.optional(S.String.pipe(T.Query())),
466
+ }).pipe(
467
+ T.Http({
468
+ method: "GET",
469
+ uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/templates",
470
+ code: 200,
471
+ baseUrl: "https://automation-service.api.stackit.cloud",
472
+ }),
473
+ ),
474
+ ).annotate({ identifier: "ListVolumeTemplatesRequest" });
475
+ case 1:
476
+ return S.suspend(() =>
477
+ S.Struct({
478
+ createTime: S.String,
479
+ description: S.String,
480
+ id: S.String,
481
+ name: S.String,
482
+ }),
483
+ ).annotate({ identifier: "Template" });
484
+ case 2:
485
+ return S.Array(__S(9, __c1, 1));
486
+ case 3:
487
+ return S.suspend(() =>
488
+ S.Struct({
489
+ items: __S(10, __c1, 2),
490
+ nextPageToken: S.optional(S.String),
491
+ }),
492
+ ).annotate({ identifier: "ListTemplatesResponse" });
493
+ }
494
+ }
495
+ function __c2(j: number): any {
496
+ switch (j) {
497
+ case 0:
498
+ return S.suspend(() =>
499
+ S.Struct({
500
+ projectId: S.String.pipe(T.Label()),
501
+ region: S.String.pipe(T.Label()),
502
+ automationId: S.String.pipe(T.Label()),
503
+ updateMask: S.optional(S.String.pipe(T.Query())),
504
+ description: S.optional(S.NullOr(S.String)),
505
+ input: S.optional(S.NullOr(__S(32, __c4, 0))),
506
+ name: S.optional(S.NullOr(S.String)),
507
+ triggers: S.optional(S.NullOr(__S(41, __c5, 1))),
508
+ }).pipe(
509
+ T.Http({
510
+ method: "PATCH",
511
+ uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}",
512
+ code: 200,
513
+ baseUrl: "https://automation-service.api.stackit.cloud",
514
+ }),
515
+ ),
516
+ ).annotate({ identifier: "PartialUpdateVolumeAutomationRequest" });
517
+ }
518
+ }
519
+ function __c3(j: number): any {
520
+ switch (j) {
521
+ case 0:
522
+ return S.suspend(() =>
523
+ S.Struct({
524
+ projectId: S.String.pipe(T.Label()),
525
+ region: S.String.pipe(T.Label()),
526
+ description: S.optional(S.NullOr(S.String)),
527
+ input: S.optional(S.NullOr(__S(32, __c4, 0))),
528
+ name: S.optional(S.NullOr(S.String)),
529
+ templateId: S.String,
530
+ triggers: S.optional(S.NullOr(__S(41, __c5, 1))),
531
+ }).pipe(
532
+ T.Http({
533
+ method: "POST",
534
+ uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations",
535
+ code: 200,
536
+ baseUrl: "https://automation-service.api.stackit.cloud",
537
+ }),
538
+ ),
539
+ ).annotate({ identifier: "CreateVolumeAutomationRequest" });
540
+ }
541
+ }
542
+ function __c4(j: number): any {
543
+ switch (j) {
544
+ case 0:
545
+ return S.suspend(() =>
546
+ S.Struct({
547
+ kind: S.String,
548
+ }),
549
+ ).annotate({ identifier: "VolumeAutomationInput" });
550
+ case 1:
551
+ return S.suspend(() =>
552
+ S.Struct({
553
+ name: S.String,
554
+ result: S.optional(__S(32, __c4, 0)),
555
+ }),
556
+ ).annotate({ identifier: "VolumeOutputStep" });
557
+ case 2:
558
+ return S.Array(__S(33, __c4, 1));
559
+ case 3:
560
+ return S.suspend(() =>
561
+ S.Struct({
562
+ steps: S.optional(__S(34, __c4, 2)),
563
+ }),
564
+ ).annotate({ identifier: "VolumeOutput" });
565
+ }
566
+ }
567
+ function __c5(j: number): any {
568
+ switch (j) {
569
+ case 0:
570
+ return S.suspend(() =>
571
+ S.Struct({
572
+ rrule: S.String,
573
+ }),
574
+ ).annotate({ identifier: "AutomationScheduleTrigger" });
575
+ case 1:
576
+ return S.suspend(() =>
577
+ S.Struct({
578
+ schedule: S.optional(S.NullOr(__S(40, __c5, 0))),
579
+ }),
580
+ ).annotate({ identifier: "AutomationTriggers" });
581
+ }
582
+ }
583
+ function __c6(j: number): any {
584
+ switch (j) {
585
+ case 0:
586
+ return S.suspend(() =>
587
+ S.Struct({
588
+ createTime: S.String,
589
+ description: S.optional(S.String),
590
+ id: S.String,
591
+ input: S.optional(S.NullOr(__S(32, __c4, 0))),
592
+ name: S.optional(S.String),
593
+ output: S.optional(__S(35, __c4, 3)),
594
+ templateId: S.optional(S.String),
595
+ triggers: S.optional(S.NullOr(__S(41, __c5, 1))),
596
+ updateTime: S.String,
597
+ }),
598
+ ).annotate({ identifier: "VolumeAutomation" });
599
+ }
600
+ }
601
+ function __c7(j: number): any {
602
+ switch (j) {
603
+ case 0:
604
+ return S.suspend(() =>
605
+ S.Struct({
606
+ projectId: S.String.pipe(T.Label()),
607
+ region: S.String.pipe(T.Label()),
608
+ automationId: S.String.pipe(T.Label()),
609
+ }).pipe(
610
+ T.Http({
611
+ method: "POST",
612
+ uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}/executions",
613
+ code: 200,
614
+ baseUrl: "https://automation-service.api.stackit.cloud",
615
+ }),
616
+ ),
617
+ ).annotate({ identifier: "CreateVolumeExecutionRequest" });
618
+ }
619
+ }
620
+ function __c8(j: number): any {
621
+ switch (j) {
622
+ case 0:
623
+ return S.suspend(() =>
624
+ S.Struct({
625
+ createTime: S.String,
626
+ description: S.optional(S.String),
627
+ input: S.optional(S.NullOr(__S(32, __c4, 0))),
628
+ name: S.optional(S.String),
629
+ output: S.optional(__S(35, __c4, 3)),
630
+ templateId: S.optional(S.String),
631
+ triggers: S.optional(S.NullOr(__S(41, __c5, 1))),
632
+ updateTime: S.String,
633
+ }),
634
+ ).annotate({ identifier: "VolumeExecutionAutomation" });
635
+ case 1:
636
+ return S.suspend(() =>
637
+ S.Struct({
638
+ message: S.optional(S.String),
639
+ name: S.String,
640
+ result: S.optional(__S(32, __c4, 0)),
641
+ status: S.String,
642
+ }),
643
+ ).annotate({ identifier: "VolumeExecutionOutputStep" });
644
+ case 2:
645
+ return S.Array(__S(65, __c8, 1));
646
+ case 3:
647
+ return S.suspend(() =>
648
+ S.Struct({
649
+ steps: S.optional(__S(66, __c8, 2)),
650
+ }),
651
+ ).annotate({ identifier: "VolumeExecutionOutput" });
652
+ case 4:
653
+ return S.suspend(() =>
654
+ S.Struct({
655
+ config: __S(64, __c8, 0),
656
+ output: S.optional(__S(67, __c8, 3)),
657
+ }),
658
+ ).annotate({ identifier: "VolumeExecutionDetails" });
659
+ case 5:
660
+ return S.suspend(() =>
661
+ S.Struct({
662
+ automation: S.optional(__S(68, __c8, 4)),
663
+ createTime: S.String,
664
+ endTime: S.optional(S.String),
665
+ id: S.String,
666
+ status: S.String,
667
+ }),
668
+ ).annotate({ identifier: "VolumeExecutionResponse" });
669
+ }
670
+ }
671
+ function __c9(j: number): any {
672
+ switch (j) {
673
+ case 0:
674
+ return S.suspend(() =>
675
+ S.Struct({
676
+ projectId: S.String.pipe(T.Label()),
677
+ region: S.String.pipe(T.Label()),
678
+ automationId: S.String.pipe(T.Label()),
679
+ }).pipe(
680
+ T.Http({
681
+ method: "DELETE",
682
+ uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}",
683
+ code: 200,
684
+ baseUrl: "https://automation-service.api.stackit.cloud",
685
+ }),
686
+ ),
687
+ ).annotate({ identifier: "DeleteVolumeAutomationRequest" });
688
+ case 1:
689
+ return S.suspend(() => S.Struct({})).annotate({
690
+ identifier: "DeleteVolumeAutomationResponse",
691
+ });
692
+ }
693
+ }
694
+ function __c10(j: number): any {
695
+ switch (j) {
696
+ case 0:
697
+ return S.suspend(() =>
698
+ S.Struct({
699
+ projectId: S.String.pipe(T.Label()),
700
+ region: S.String.pipe(T.Label()),
701
+ automationId: S.String.pipe(T.Label()),
702
+ }).pipe(
703
+ T.Http({
704
+ method: "GET",
705
+ uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}",
706
+ code: 200,
707
+ baseUrl: "https://automation-service.api.stackit.cloud",
708
+ }),
709
+ ),
710
+ ).annotate({ identifier: "GetVolumeAutomationRequest" });
711
+ }
712
+ }
713
+ function __c11(j: number): any {
714
+ switch (j) {
715
+ case 0:
716
+ return S.suspend(() =>
717
+ S.Struct({
718
+ projectId: S.String.pipe(T.Label()),
719
+ region: S.String.pipe(T.Label()),
720
+ automationId: S.String.pipe(T.Label()),
721
+ executionId: S.String.pipe(T.Label()),
722
+ }).pipe(
723
+ T.Http({
724
+ method: "GET",
725
+ uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/{automationId}/executions/{executionId}",
726
+ code: 200,
727
+ baseUrl: "https://automation-service.api.stackit.cloud",
728
+ }),
729
+ ),
730
+ ).annotate({ identifier: "GetVolumeExecutionRequest" });
731
+ }
732
+ }
733
+ function __c12(j: number): any {
734
+ switch (j) {
735
+ case 0:
736
+ return S.suspend(() =>
737
+ S.Struct({
738
+ projectId: S.String.pipe(T.Label()),
739
+ region: S.String.pipe(T.Label()),
740
+ templateId: S.String.pipe(T.Label()),
741
+ }).pipe(
742
+ T.Http({
743
+ method: "GET",
744
+ uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations/templates/{templateId}",
745
+ code: 200,
746
+ baseUrl: "https://automation-service.api.stackit.cloud",
747
+ }),
748
+ ),
749
+ ).annotate({ identifier: "GetVolumeTemplateRequest" });
750
+ case 1:
751
+ return S.suspend(() =>
752
+ S.Struct({
753
+ kind: S.String,
754
+ }),
755
+ ).annotate({ identifier: "VolumeTemplateAutomationInput" });
756
+ case 2:
757
+ return S.suspend(() =>
758
+ S.Struct({
759
+ createTime: S.String,
760
+ description: S.String,
761
+ id: S.String,
762
+ input: S.optional(__S(97, __c12, 1)),
763
+ name: S.String,
764
+ output: S.optional(__S(35, __c4, 3)),
765
+ }),
766
+ ).annotate({ identifier: "GetVolumeTemplateResponse" });
767
+ }
768
+ }
769
+ function __c13(j: number): any {
770
+ switch (j) {
771
+ case 0:
772
+ return S.suspend(() =>
773
+ S.Struct({
774
+ projectId: S.String.pipe(T.Label()),
775
+ region: S.String.pipe(T.Label()),
776
+ pageSize: S.optional(S.Number.pipe(T.Query())),
777
+ pageToken: S.optional(S.String.pipe(T.Query())),
778
+ }).pipe(
779
+ T.Http({
780
+ method: "GET",
781
+ uri: "/v1/projects/{projectId}/regions/{region}/services/volumes/automations",
782
+ code: 200,
783
+ baseUrl: "https://automation-service.api.stackit.cloud",
784
+ }),
785
+ ),
786
+ ).annotate({ identifier: "ListVolumeAutomationsRequest" });
787
+ case 1:
788
+ return S.suspend(() =>
789
+ S.Struct({
790
+ createTime: S.String,
791
+ description: S.optional(S.String),
792
+ id: S.String,
793
+ name: S.optional(S.String),
794
+ templateId: S.optional(S.String),
795
+ triggers: S.optional(S.NullOr(__S(41, __c5, 1))),
796
+ updateTime: S.String,
797
+ }),
798
+ ).annotate({ identifier: "ListAutomationsItem" });
799
+ case 2:
800
+ return S.Array(__S(105, __c13, 1));
801
+ case 3:
802
+ return S.suspend(() =>
803
+ S.Struct({
804
+ items: __S(106, __c13, 2),
805
+ nextPageToken: S.optional(S.String),
806
+ }),
807
+ ).annotate({ identifier: "ListAutomationsResponse" });
808
+ }
809
+ }
810
+ // Schema table: entry i is schema j of builder f, made on first reach.
811
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
812
+ return (__s[i] ??= __L.at(f, j));
813
+ }