@distilled.cloud/stackit 1.0.0-rc.14 → 1.0.0-rc.16

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 (285) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +32 -28
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +13 -13
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +16 -16
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +2 -2
  10. package/lib/index.js +22 -22
  11. package/lib/pagination.d.ts +1 -1
  12. package/lib/pagination.js +15 -15
  13. package/lib/protocol.d.ts +3 -3
  14. package/lib/protocol.d.ts.map +1 -1
  15. package/lib/protocol.js +31 -29
  16. package/lib/protocol.js.map +1 -1
  17. package/lib/retry.d.ts +1 -1
  18. package/lib/retry.d.ts.map +1 -1
  19. package/lib/retry.js +24 -23
  20. package/lib/retry.js.map +1 -1
  21. package/lib/services/alb.d.ts +10 -87
  22. package/lib/services/alb.d.ts.map +1 -1
  23. package/lib/services/alb.js +73 -502
  24. package/lib/services/alb_waf.d.ts +9 -82
  25. package/lib/services/alb_waf.d.ts.map +1 -1
  26. package/lib/services/alb_waf.js +84 -510
  27. package/lib/services/authorization.d.ts +5 -47
  28. package/lib/services/authorization.d.ts.map +1 -1
  29. package/lib/services/authorization.js +67 -314
  30. package/lib/services/automation.d.ts +7 -47
  31. package/lib/services/automation.d.ts.map +1 -1
  32. package/lib/services/automation.js +58 -353
  33. package/lib/services/cdn.d.ts +8 -220
  34. package/lib/services/cdn.d.ts.map +1 -1
  35. package/lib/services/cdn.js +81 -896
  36. package/lib/services/certificates.d.ts +8 -27
  37. package/lib/services/certificates.d.ts.map +1 -1
  38. package/lib/services/certificates.js +45 -171
  39. package/lib/services/cost.d.ts +10 -37
  40. package/lib/services/cost.d.ts.map +1 -1
  41. package/lib/services/cost.js +39 -169
  42. package/lib/services/dns.d.ts +9 -104
  43. package/lib/services/dns.d.ts.map +1 -1
  44. package/lib/services/dns.js +98 -714
  45. package/lib/services/dremio.d.ts +8 -50
  46. package/lib/services/dremio.d.ts.map +1 -1
  47. package/lib/services/dremio.js +56 -307
  48. package/lib/services/edge.d.ts +7 -40
  49. package/lib/services/edge.d.ts.map +1 -1
  50. package/lib/services/edge.js +66 -347
  51. package/lib/services/functions.d.ts +1 -48
  52. package/lib/services/functions.d.ts.map +1 -1
  53. package/lib/services/functions.js +64 -393
  54. package/lib/services/git.d.ts +8 -61
  55. package/lib/services/git.d.ts.map +1 -1
  56. package/lib/services/git.js +87 -510
  57. package/lib/services/iaas.d.ts +9 -337
  58. package/lib/services/iaas.d.ts.map +1 -1
  59. package/lib/services/iaas.js +409 -3532
  60. package/lib/services/intake.d.ts +8 -75
  61. package/lib/services/intake.d.ts.map +1 -1
  62. package/lib/services/intake.js +74 -465
  63. package/lib/services/kms.d.ts +9 -92
  64. package/lib/services/kms.d.ts.map +1 -1
  65. package/lib/services/kms.js +95 -650
  66. package/lib/services/lb_ip_lists.d.ts +9 -25
  67. package/lib/services/lb_ip_lists.d.ts.map +1 -1
  68. package/lib/services/lb_ip_lists.js +45 -146
  69. package/lib/services/load_balancer.d.ts +10 -81
  70. package/lib/services/load_balancer.d.ts.map +1 -1
  71. package/lib/services/load_balancer.js +76 -486
  72. package/lib/services/logme.d.ts +8 -69
  73. package/lib/services/logme.d.ts.map +1 -1
  74. package/lib/services/logme.js +82 -564
  75. package/lib/services/logs.d.ts +8 -64
  76. package/lib/services/logs.d.ts.map +1 -1
  77. package/lib/services/logs.js +84 -465
  78. package/lib/services/mariadb.d.ts +8 -65
  79. package/lib/services/mariadb.d.ts.map +1 -1
  80. package/lib/services/mariadb.js +84 -541
  81. package/lib/services/model_experiments.d.ts +9 -48
  82. package/lib/services/model_experiments.d.ts.map +1 -1
  83. package/lib/services/model_experiments.js +66 -325
  84. package/lib/services/model_serving.d.ts +7 -47
  85. package/lib/services/model_serving.d.ts.map +1 -1
  86. package/lib/services/model_serving.js +55 -277
  87. package/lib/services/mongodb_flex.d.ts +8 -137
  88. package/lib/services/mongodb_flex.d.ts.map +1 -1
  89. package/lib/services/mongodb_flex.js +102 -793
  90. package/lib/services/object_storage.d.ts +12 -59
  91. package/lib/services/object_storage.d.ts.map +1 -1
  92. package/lib/services/object_storage.js +93 -528
  93. package/lib/services/observability.d.ts +8 -407
  94. package/lib/services/observability.d.ts.map +1 -1
  95. package/lib/services/observability.js +375 -3148
  96. package/lib/services/opensearch.d.ts +8 -71
  97. package/lib/services/opensearch.d.ts.map +1 -1
  98. package/lib/services/opensearch.js +85 -553
  99. package/lib/services/pim.d.ts +12 -108
  100. package/lib/services/pim.d.ts.map +1 -1
  101. package/lib/services/pim.js +81 -726
  102. package/lib/services/postgres_flex.d.ts +14 -136
  103. package/lib/services/postgres_flex.d.ts.map +1 -1
  104. package/lib/services/postgres_flex.js +114 -841
  105. package/lib/services/pubsub.d.ts +11 -73
  106. package/lib/services/pubsub.d.ts.map +1 -1
  107. package/lib/services/pubsub.js +92 -507
  108. package/lib/services/rabbitmq.d.ts +8 -76
  109. package/lib/services/rabbitmq.d.ts.map +1 -1
  110. package/lib/services/rabbitmq.js +88 -564
  111. package/lib/services/registry.d.ts +10 -28
  112. package/lib/services/registry.d.ts.map +1 -1
  113. package/lib/services/registry.js +49 -189
  114. package/lib/services/resource_manager.d.ts +9 -61
  115. package/lib/services/resource_manager.d.ts.map +1 -1
  116. package/lib/services/resource_manager.js +92 -462
  117. package/lib/services/run_command.d.ts +5 -28
  118. package/lib/services/run_command.d.ts.map +1 -1
  119. package/lib/services/run_command.js +38 -176
  120. package/lib/services/sca.d.ts +8 -79
  121. package/lib/services/sca.d.ts.map +1 -1
  122. package/lib/services/sca.js +63 -435
  123. package/lib/services/scf.d.ts +8 -64
  124. package/lib/services/scf.d.ts.map +1 -1
  125. package/lib/services/scf.js +99 -660
  126. package/lib/services/secrets_manager.d.ts +8 -61
  127. package/lib/services/secrets_manager.d.ts.map +1 -1
  128. package/lib/services/secrets_manager.js +99 -601
  129. package/lib/services/server_backup.d.ts +7 -50
  130. package/lib/services/server_backup.d.ts.map +1 -1
  131. package/lib/services/server_backup.js +70 -444
  132. package/lib/services/server_update.d.ts +7 -35
  133. package/lib/services/server_update.d.ts.map +1 -1
  134. package/lib/services/server_update.js +58 -342
  135. package/lib/services/service_account.d.ts +10 -68
  136. package/lib/services/service_account.d.ts.map +1 -1
  137. package/lib/services/service_account.js +75 -495
  138. package/lib/services/service_enablement.d.ts +7 -29
  139. package/lib/services/service_enablement.d.ts.map +1 -1
  140. package/lib/services/service_enablement.js +40 -147
  141. package/lib/services/sfs.d.ts +4 -96
  142. package/lib/services/sfs.d.ts.map +1 -1
  143. package/lib/services/sfs.js +117 -782
  144. package/lib/services/ske.d.ts +9 -108
  145. package/lib/services/ske.d.ts.map +1 -1
  146. package/lib/services/ske.js +67 -549
  147. package/lib/services/sqlserverflex.d.ts +11 -152
  148. package/lib/services/sqlserverflex.d.ts.map +1 -1
  149. package/lib/services/sqlserverflex.js +112 -925
  150. package/lib/services/stackit_marketplace.d.ts +9 -38
  151. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  152. package/lib/services/stackit_marketplace.js +64 -369
  153. package/lib/services/telemetry_link.d.ts +8 -61
  154. package/lib/services/telemetry_link.d.ts.map +1 -1
  155. package/lib/services/telemetry_link.js +81 -522
  156. package/lib/services/telemetry_router.d.ts +8 -72
  157. package/lib/services/telemetry_router.d.ts.map +1 -1
  158. package/lib/services/telemetry_router.js +73 -474
  159. package/lib/services/ufw.d.ts +7 -42
  160. package/lib/services/ufw.d.ts.map +1 -1
  161. package/lib/services/ufw.js +55 -269
  162. package/lib/services/valkey.d.ts +8 -68
  163. package/lib/services/valkey.d.ts.map +1 -1
  164. package/lib/services/valkey.js +85 -557
  165. package/lib/services/vpn.d.ts +21 -186
  166. package/lib/services/vpn.d.ts.map +1 -1
  167. package/lib/services/vpn.js +105 -920
  168. package/lib/services/workflows.d.ts +15 -84
  169. package/lib/services/workflows.d.ts.map +1 -1
  170. package/lib/services/workflows.js +67 -497
  171. package/lib/traits.d.ts +1 -1
  172. package/lib/traits.js +10 -10
  173. package/package.json +13 -9
  174. package/src/credentials.ts +21 -18
  175. package/src/errors.ts +10 -14
  176. package/src/index.ts +2 -2
  177. package/src/pagination.ts +2 -2
  178. package/src/protocol.ts +12 -9
  179. package/src/retry.ts +6 -4
  180. package/src/services/alb.ts +599 -655
  181. package/src/services/alb_waf.ts +597 -637
  182. package/src/services/authorization.ts +400 -383
  183. package/src/services/automation.ts +422 -405
  184. package/src/services/cdn.ts +817 -1375
  185. package/src/services/certificates.ts +209 -190
  186. package/src/services/cost.ts +100 -207
  187. package/src/services/dns.ts +793 -833
  188. package/src/services/dremio.ts +356 -349
  189. package/src/services/edge.ts +406 -366
  190. package/src/services/functions.ts +465 -463
  191. package/src/services/git.ts +602 -547
  192. package/src/services/iaas.ts +3931 -3821
  193. package/src/services/intake.ts +521 -549
  194. package/src/services/kms.ts +715 -692
  195. package/src/services/lb_ip_lists.ts +173 -152
  196. package/src/services/load_balancer.ts +576 -619
  197. package/src/services/logme.ts +696 -641
  198. package/src/services/logs.ts +510 -493
  199. package/src/services/mariadb.ts +671 -604
  200. package/src/services/model_experiments.ts +343 -356
  201. package/src/services/model_serving.ts +337 -328
  202. package/src/services/mongodb_flex.ts +955 -1007
  203. package/src/services/object_storage.ts +614 -557
  204. package/src/services/observability.ts +3469 -3866
  205. package/src/services/opensearch.ts +679 -628
  206. package/src/services/pim.ts +672 -909
  207. package/src/services/postgres_flex.ts +966 -986
  208. package/src/services/pubsub.ts +524 -546
  209. package/src/services/rabbitmq.ts +693 -654
  210. package/src/services/registry.ts +227 -194
  211. package/src/services/resource_manager.ts +520 -517
  212. package/src/services/run_command.ts +219 -211
  213. package/src/services/sca.ts +543 -570
  214. package/src/services/scf.ts +790 -716
  215. package/src/services/secrets_manager.ts +707 -622
  216. package/src/services/server_backup.ts +490 -475
  217. package/src/services/server_update.ts +353 -356
  218. package/src/services/service_account.ts +515 -553
  219. package/src/services/service_enablement.ts +162 -166
  220. package/src/services/sfs.ts +879 -958
  221. package/src/services/ske.ts +694 -769
  222. package/src/services/sqlserverflex.ts +1042 -1117
  223. package/src/services/stackit_marketplace.ts +377 -372
  224. package/src/services/telemetry_link.ts +530 -531
  225. package/src/services/telemetry_router.ts +509 -534
  226. package/src/services/ufw.ts +305 -307
  227. package/src/services/valkey.ts +684 -629
  228. package/src/services/vpn.ts +935 -1195
  229. package/src/services/workflows.ts +426 -586
  230. package/src/traits.ts +1 -1
  231. package/lib/protocol.test.d.ts +0 -2
  232. package/lib/protocol.test.d.ts.map +0 -1
  233. package/lib/protocol.test.js +0 -181
  234. package/lib/protocol.test.js.map +0 -1
  235. package/lib/services/alb.js.map +0 -1
  236. package/lib/services/alb_waf.js.map +0 -1
  237. package/lib/services/authorization.js.map +0 -1
  238. package/lib/services/automation.js.map +0 -1
  239. package/lib/services/cdn.js.map +0 -1
  240. package/lib/services/certificates.js.map +0 -1
  241. package/lib/services/cost.js.map +0 -1
  242. package/lib/services/dns.js.map +0 -1
  243. package/lib/services/dremio.js.map +0 -1
  244. package/lib/services/edge.js.map +0 -1
  245. package/lib/services/functions.js.map +0 -1
  246. package/lib/services/git.js.map +0 -1
  247. package/lib/services/iaas.js.map +0 -1
  248. package/lib/services/intake.js.map +0 -1
  249. package/lib/services/kms.js.map +0 -1
  250. package/lib/services/lb_ip_lists.js.map +0 -1
  251. package/lib/services/load_balancer.js.map +0 -1
  252. package/lib/services/logme.js.map +0 -1
  253. package/lib/services/logs.js.map +0 -1
  254. package/lib/services/mariadb.js.map +0 -1
  255. package/lib/services/model_experiments.js.map +0 -1
  256. package/lib/services/model_serving.js.map +0 -1
  257. package/lib/services/mongodb_flex.js.map +0 -1
  258. package/lib/services/object_storage.js.map +0 -1
  259. package/lib/services/observability.js.map +0 -1
  260. package/lib/services/opensearch.js.map +0 -1
  261. package/lib/services/pim.js.map +0 -1
  262. package/lib/services/postgres_flex.js.map +0 -1
  263. package/lib/services/pubsub.js.map +0 -1
  264. package/lib/services/rabbitmq.js.map +0 -1
  265. package/lib/services/registry.js.map +0 -1
  266. package/lib/services/resource_manager.js.map +0 -1
  267. package/lib/services/run_command.js.map +0 -1
  268. package/lib/services/sca.js.map +0 -1
  269. package/lib/services/scf.js.map +0 -1
  270. package/lib/services/secrets_manager.js.map +0 -1
  271. package/lib/services/server_backup.js.map +0 -1
  272. package/lib/services/server_update.js.map +0 -1
  273. package/lib/services/service_account.js.map +0 -1
  274. package/lib/services/service_enablement.js.map +0 -1
  275. package/lib/services/sfs.js.map +0 -1
  276. package/lib/services/ske.js.map +0 -1
  277. package/lib/services/sqlserverflex.js.map +0 -1
  278. package/lib/services/stackit_marketplace.js.map +0 -1
  279. package/lib/services/telemetry_link.js.map +0 -1
  280. package/lib/services/telemetry_router.js.map +0 -1
  281. package/lib/services/ufw.js.map +0 -1
  282. package/lib/services/valkey.js.map +0 -1
  283. package/lib/services/vpn.js.map +0 -1
  284. package/lib/services/workflows.js.map +0 -1
  285. package/src/protocol.test.ts +0 -304
@@ -1,31 +1,31 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
- import * as S from "@distilled.cloud/core/schema";
2
+ import * as S from "@distilled.cloud/core/schema-lite";
3
3
  import { type StackitOpError, type StackitOpContext } from "../protocol.ts";
4
4
  export type { StackitOpError, StackitOpContext };
5
- declare const BadRequest_base: S.Class<BadRequest, S.TaggedStruct<"BadRequest", {
5
+ declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
6
6
  readonly code: any;
7
7
  readonly message: any;
8
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
8
+ }> & (new (...args: any[]) => {
9
9
  "@distilled.cloud/error/categories": {
10
10
  BadRequestError: true;
11
11
  };
12
12
  });
13
13
  export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
14
14
  }
15
- declare const Conflict_base: S.Class<Conflict, S.TaggedStruct<"Conflict", {
15
+ declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
16
16
  readonly code: any;
17
17
  readonly message: any;
18
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
18
+ }> & (new (...args: any[]) => {
19
19
  "@distilled.cloud/error/categories": {
20
20
  ConflictError: true;
21
21
  };
22
22
  });
23
23
  export declare class Conflict extends /*@__PURE__*/ Conflict_base {
24
24
  }
25
- declare const NotFound_base: S.Class<NotFound, S.TaggedStruct<"NotFound", {
25
+ declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
26
26
  readonly code: any;
27
27
  readonly message: any;
28
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
28
+ }> & (new (...args: any[]) => {
29
29
  "@distilled.cloud/error/categories": {
30
30
  BadRequestError: true;
31
31
  };
@@ -43,7 +43,6 @@ export interface CreateUpdateRequest {
43
43
  /** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
44
44
  maintenanceWindow: number;
45
45
  }
46
- export declare const CreateUpdateRequest: S.Schema<CreateUpdateRequest>;
47
46
  export interface Update {
48
47
  endDate?: string;
49
48
  failReason?: string;
@@ -53,7 +52,6 @@ export interface Update {
53
52
  startDate: string;
54
53
  status: string;
55
54
  }
56
- export declare const Update: S.Schema<Update>;
57
55
  export interface CreateUpdateScheduleRequest {
58
56
  /** project id */
59
57
  projectId: string;
@@ -68,7 +66,6 @@ export interface CreateUpdateScheduleRequest {
68
66
  /** 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 */
69
67
  rrule: string;
70
68
  }
71
- export declare const CreateUpdateScheduleRequest: S.Schema<CreateUpdateScheduleRequest>;
72
69
  export interface CreateUpdateScheduleResponse {
73
70
  enabled: boolean;
74
71
  /** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
@@ -78,7 +75,6 @@ export interface CreateUpdateScheduleResponse {
78
75
  rrule: string;
79
76
  id: number;
80
77
  }
81
- export declare const CreateUpdateScheduleResponse: S.Schema<CreateUpdateScheduleResponse>;
82
78
  export interface DeleteUpdateScheduleRequest {
83
79
  /** project id */
84
80
  projectId: string;
@@ -89,10 +85,8 @@ export interface DeleteUpdateScheduleRequest {
89
85
  /** update schedule id */
90
86
  scheduleId: string;
91
87
  }
92
- export declare const DeleteUpdateScheduleRequest: S.Schema<DeleteUpdateScheduleRequest>;
93
88
  export interface DeleteUpdateScheduleResponse {
94
89
  }
95
- export declare const DeleteUpdateScheduleResponse: S.Schema<DeleteUpdateScheduleResponse>;
96
90
  export interface DisableServiceResourceRequest {
97
91
  /** project id */
98
92
  projectId: string;
@@ -101,10 +95,8 @@ export interface DisableServiceResourceRequest {
101
95
  /** server id */
102
96
  serverId: string;
103
97
  }
104
- export declare const DisableServiceResourceRequest: S.Schema<DisableServiceResourceRequest>;
105
98
  export interface DisableServiceResourceResponse {
106
99
  }
107
- export declare const DisableServiceResourceResponse: S.Schema<DisableServiceResourceResponse>;
108
100
  export interface EnableServiceResourceRequest {
109
101
  /** project id */
110
102
  projectId: string;
@@ -114,10 +106,8 @@ export interface EnableServiceResourceRequest {
114
106
  serverId: string;
115
107
  updatePolicyId?: string;
116
108
  }
117
- export declare const EnableServiceResourceRequest: S.Schema<EnableServiceResourceRequest>;
118
109
  export interface EnableServiceResourceResponse {
119
110
  }
120
- export declare const EnableServiceResourceResponse: S.Schema<EnableServiceResourceResponse>;
121
111
  export interface GetServiceResourceRequest {
122
112
  /** project id */
123
113
  projectId: string;
@@ -126,11 +116,9 @@ export interface GetServiceResourceRequest {
126
116
  /** server id */
127
117
  serverId: string;
128
118
  }
129
- export declare const GetServiceResourceRequest: S.Schema<GetServiceResourceRequest>;
130
119
  export interface GetUpdateServiceResponse {
131
120
  enabled?: boolean;
132
121
  }
133
- export declare const GetUpdateServiceResponse: S.Schema<GetUpdateServiceResponse>;
134
122
  export interface GetUpdateRequest {
135
123
  /** project id */
136
124
  projectId: string;
@@ -141,7 +129,6 @@ export interface GetUpdateRequest {
141
129
  /** id of the update */
142
130
  updateId: string;
143
131
  }
144
- export declare const GetUpdateRequest: S.Schema<GetUpdateRequest>;
145
132
  export interface GetUpdateScheduleRequest {
146
133
  /** project id */
147
134
  projectId: string;
@@ -152,7 +139,6 @@ export interface GetUpdateScheduleRequest {
152
139
  /** update schedule id */
153
140
  scheduleId: string;
154
141
  }
155
- export declare const GetUpdateScheduleRequest: S.Schema<GetUpdateScheduleRequest>;
156
142
  export interface GetUpdateScheduleResponse {
157
143
  enabled: boolean;
158
144
  /** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
@@ -162,12 +148,10 @@ export interface GetUpdateScheduleResponse {
162
148
  rrule: string;
163
149
  id: number;
164
150
  }
165
- export declare const GetUpdateScheduleResponse: S.Schema<GetUpdateScheduleResponse>;
166
151
  export interface ListUpdatePoliciesRequest {
167
152
  /** project id */
168
153
  projectId: string;
169
154
  }
170
- export declare const ListUpdatePoliciesRequest: S.Schema<ListUpdatePoliciesRequest>;
171
155
  export interface UpdatePolicy {
172
156
  default?: boolean;
173
157
  description?: string;
@@ -179,13 +163,10 @@ export interface UpdatePolicy {
179
163
  /** 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 */
180
164
  rrule?: string;
181
165
  }
182
- export declare const UpdatePolicy: S.Schema<UpdatePolicy>;
183
166
  export type GetUpdatePoliciesResponseItemsList = Array<UpdatePolicy>;
184
- export declare const GetUpdatePoliciesResponseItemsList: S.Schema<GetUpdatePoliciesResponseItemsList>;
185
167
  export interface GetUpdatePoliciesResponse {
186
168
  items?: GetUpdatePoliciesResponseItemsList;
187
169
  }
188
- export declare const GetUpdatePoliciesResponse: S.Schema<GetUpdatePoliciesResponse>;
189
170
  export interface ListUpdatesRequest {
190
171
  /** project id */
191
172
  projectId: string;
@@ -194,13 +175,10 @@ export interface ListUpdatesRequest {
194
175
  /** server id */
195
176
  serverId: string;
196
177
  }
197
- export declare const ListUpdatesRequest: S.Schema<ListUpdatesRequest>;
198
178
  export type GetUpdatesListResponseItemsList = Array<Update>;
199
- export declare const GetUpdatesListResponseItemsList: S.Schema<GetUpdatesListResponseItemsList>;
200
179
  export interface GetUpdatesListResponse {
201
180
  items?: GetUpdatesListResponseItemsList;
202
181
  }
203
- export declare const GetUpdatesListResponse: S.Schema<GetUpdatesListResponse>;
204
182
  export interface ListUpdateSchedulesRequest {
205
183
  /** project id */
206
184
  projectId: string;
@@ -209,7 +187,6 @@ export interface ListUpdateSchedulesRequest {
209
187
  /** server id */
210
188
  serverId: string;
211
189
  }
212
- export declare const ListUpdateSchedulesRequest: S.Schema<ListUpdateSchedulesRequest>;
213
190
  export interface UpdateSchedule {
214
191
  enabled: boolean;
215
192
  /** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
@@ -219,13 +196,10 @@ export interface UpdateSchedule {
219
196
  rrule: string;
220
197
  id: number;
221
198
  }
222
- export declare const UpdateSchedule: S.Schema<UpdateSchedule>;
223
199
  export type GetUpdateSchedulesResponseItemsList = Array<UpdateSchedule>;
224
- export declare const GetUpdateSchedulesResponseItemsList: S.Schema<GetUpdateSchedulesResponseItemsList>;
225
200
  export interface GetUpdateSchedulesResponse {
226
201
  items?: GetUpdateSchedulesResponseItemsList;
227
202
  }
228
- export declare const GetUpdateSchedulesResponse: S.Schema<GetUpdateSchedulesResponse>;
229
203
  export interface UpdateUpdateScheduleRequest {
230
204
  /** project id */
231
205
  projectId: string;
@@ -242,7 +216,6 @@ export interface UpdateUpdateScheduleRequest {
242
216
  /** 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 */
243
217
  rrule: string;
244
218
  }
245
- export declare const UpdateUpdateScheduleRequest: S.Schema<UpdateUpdateScheduleRequest>;
246
219
  export interface UpdateUpdateScheduleResponse {
247
220
  enabled: boolean;
248
221
  /** Updates start within the defined hourly window. Depending on the updates, the process may exceed this timeframe and require an automatic restart. */
@@ -252,7 +225,6 @@ export interface UpdateUpdateScheduleResponse {
252
225
  rrule: string;
253
226
  id: number;
254
227
  }
255
- export declare const UpdateUpdateScheduleResponse: S.Schema<UpdateUpdateScheduleResponse>;
256
228
  export type CreateUpdateError = BadRequest | NotFound | Conflict | StackitOpError;
257
229
  /** create update */
258
230
  export declare const createUpdate: API.OperationMethod<CreateUpdateRequest, Update, CreateUpdateError, StackitOpContext>;
@@ -1 +1 @@
1
- {"version":3,"file":"server_update.d.ts","sourceRoot":"","sources":["../../src/services/server_update.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAGjD,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,EAAmB,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAI7F,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC;;;;;;;;;AAEjD,qBAAa,UACX,SAAQ,aAAa,CAAC,eAMrB;CAAG;;;;;;;;;AAEN,qBAAa,QACX,SAAQ,aAAa,CAAC,aAMrB;CAAG;;;;;;;;;AAEN,qBAAa,QACX,SAAQ,aAAa,CAAC,aAMrB;CAAG;AAEN,MAAM,WAAW,mBAAmB;IAClC,iBAAiB;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa;IACb,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,wJAAwJ;IACxJ,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AACD,eAAO,MAAM,mBAAmB,EAe4B,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAE1F,MAAM,WA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0BAA0B,EAC1B,wBAAwB,EACxB,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,yBAAyB,GAAG,UAAU,GAAG,QAAQ,GAAG,cAAc,CAAC;AAC/E,6BAA6B;AAC7B,eAAO,MAAM,oBAAoB,EAAE,GAAG,CAAC,eAAe,CACpD,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,gBAAgB,CAOf,CAAC"}
@@ -1,352 +1,68 @@
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.js";
6
7
  import { StackitProtocol } from "../protocol.js";
7
8
  import * as Retry from "../retry.js";
8
9
  import * as T from "../traits.js";
9
- export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
10
- /*@__PURE__*/ S.TaggedError()("BadRequest", {
11
- code: S.Number,
12
- message: S.String,
13
- }).pipe(C.withBadRequestError), [{ status: 400 }]) {
10
+ const __0 = __L.at;
11
+ const __1 = T.Http;
12
+ const __2 = T.Label;
13
+ const __3 = S.String;
14
+ const __4 = S.Struct;
15
+ const __5 = S.suspend;
16
+ const __6 = S.Boolean;
17
+ const __7 = S.optional;
18
+ const __8 = S.Number;
19
+ const __9 = S.Array;
20
+ const __10 = S.TaggedError;
21
+ const __11 = T.applyErrorMatchers;
22
+ export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
23
+ return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __8, __3, __10, __11]]);
24
+ });
25
+ export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
26
+ return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __8, __3, __10, __11]]);
27
+ });
28
+ export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
29
+ return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __8, __3, __10, __11]]);
30
+ });
31
+
32
+ export const createUpdate = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$8(>2)@"CreateUpdateRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),backupBeforeUpdate:$5($4),maintenanceWindow:$6}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __8, __4, __5, __d0, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createUpdate, i));
33
+
34
+ export const createUpdateSchedule = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"CreateUpdateScheduleRequest";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),enabled:$4,maintenanceWindow:$5,name:$3,rrule:$3}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __8, __4, __5, __d1, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createUpdateSchedule, i));
35
+
36
+ export const deleteUpdateSchedule = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteUpdateScheduleRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),scheduleId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d2, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteUpdateSchedule, i));
37
+
38
+ export const disableServiceResource = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DisableServiceResourceRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d2, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(disableServiceResource, i));
39
+
40
+ export const enableServiceResource = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"EnableServiceResourceRequest";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),updatePolicyId:$4($3)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __4, __5, __d2, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(enableServiceResource, i));
41
+
42
+ export const getServiceResource = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>3)@"GetServiceResourceRequest";$5(>4)@"GetUpdateServiceResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",code:200,baseUrl:"https://server-update.api.stackit.cloud"}));$4({enabled:$7($6)})', [__0, __1, __2, __3, __4, __5, __6, __7, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getServiceResource, i));
43
+
44
+ export const getUpdate = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetUpdateRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),updateId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates/{updateId}",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d0, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getUpdate, i));
45
+
46
+ export const getUpdateSchedule = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetUpdateScheduleRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),scheduleId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d1, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getUpdateSchedule, i));
47
+
48
+ export const listUpdatePolicies = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$10,$11,$12],protocol:$13,retry:$14};$5(>5)@"ListUpdatePoliciesRequest";$5(>6)@"UpdatePolicy";$9(#2);$5(>7)@"GetUpdatePoliciesResponse";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/update-policies",code:200,baseUrl:"https://server-update.api.stackit.cloud"}));$4({default:$7($6),description:$7($3),enabled:$7($6),id:$7($3),maintenanceWindow:$7($8),name:$7($3),rrule:$7($3)});$4({items:$7(#3)})', [__0, __1, __2, __3, __4, __5, __6, __7, __8, __9, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listUpdatePolicies, i));
49
+
50
+ export const listUpdates = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListUpdatesRequest";$7(#6:0);$5(>5)@"GetUpdatesListResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates",code:200,baseUrl:"https://server-update.api.stackit.cloud"}));$4({items:$8(#2)})', [__0, __1, __2, __3, __4, __5, __d0, __9, __7, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listUpdates, i));
51
+
52
+ export const listUpdateSchedules = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListUpdateSchedulesRequest";$7(#6:0);$5(>5)@"GetUpdateSchedulesResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules",code:200,baseUrl:"https://server-update.api.stackit.cloud"}));$4({items:$8(#2)})', [__0, __1, __2, __3, __4, __5, __d1, __9, __7, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listUpdateSchedules, i));
53
+
54
+ export const updateUpdateSchedule = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"UpdateUpdateScheduleRequest";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),serverId:$3.pipe($2()),scheduleId:$3.pipe($2()),enabled:$4,maintenanceWindow:$5,name:$3,rrule:$3}).pipe($1({method:"PUT",uri:"/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",code:200,baseUrl:"https://server-update.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __8, __4, __5, __d1, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateUpdateSchedule, i));
55
+ // Schema builders: each runs one schema initializer, on that schema's first use.
56
+ // Schema table: entry i is schema j of builder f, made on first reach.
57
+
58
+
59
+ // Shared schema data (see `op` in core/api).
60
+ function __d0() {
61
+ return ['$5(>1)@"Update";$4({endDate:$2($1),failReason:$2($1),failedUpdates:$2($3),id:$3,installedUpdates:$2($3),startDate:$1,status:$1})', [__0, __3, __7, __8, __4, __5]];
14
62
  }
15
- export class Conflict extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
16
- /*@__PURE__*/ S.TaggedError()("Conflict", {
17
- code: S.Number,
18
- message: S.String,
19
- }).pipe(C.withConflictError), [{ status: 409 }]) {
63
+ function __d1() {
64
+ return ['$5(>1)@"CreateUpdateScheduleResponse";$4({enabled:$1,maintenanceWindow:$2,name:$3,rrule:$3,id:$2})', [__0, __6, __8, __3, __4, __5]];
20
65
  }
21
- export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
22
- /*@__PURE__*/ S.TaggedError()("NotFound", {
23
- code: S.Number,
24
- message: S.String,
25
- }).pipe(C.withBadRequestError), [{ status: 404 }]) {
66
+ function __d2() {
67
+ return ['$2(>1)@"DeleteUpdateScheduleResponse";$1({})', [__0, __4, __5]];
26
68
  }
27
- export const CreateUpdateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
28
- projectId: S.String.pipe(T.Label()),
29
- region: S.String.pipe(T.Label()),
30
- serverId: S.String.pipe(T.Label()),
31
- backupBeforeUpdate: S.optional(S.Boolean),
32
- maintenanceWindow: S.Number,
33
- }).pipe(T.Http({
34
- method: "POST",
35
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates",
36
- code: 200,
37
- baseUrl: "https://server-update.api.stackit.cloud",
38
- }))).annotate({ identifier: "CreateUpdateRequest" });
39
- export const Update = /*@__PURE__*/ S.suspend(() => S.Struct({
40
- endDate: S.optional(S.String),
41
- failReason: S.optional(S.String),
42
- failedUpdates: S.optional(S.Number),
43
- id: S.Number,
44
- installedUpdates: S.optional(S.Number),
45
- startDate: S.String,
46
- status: S.String,
47
- })).annotate({ identifier: "Update" });
48
- export const CreateUpdateScheduleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
49
- projectId: S.String.pipe(T.Label()),
50
- region: S.String.pipe(T.Label()),
51
- serverId: S.String.pipe(T.Label()),
52
- enabled: S.Boolean,
53
- maintenanceWindow: S.Number,
54
- name: S.String,
55
- rrule: S.String,
56
- }).pipe(T.Http({
57
- method: "POST",
58
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules",
59
- code: 200,
60
- baseUrl: "https://server-update.api.stackit.cloud",
61
- }))).annotate({
62
- identifier: "CreateUpdateScheduleRequest",
63
- });
64
- export const CreateUpdateScheduleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
65
- enabled: S.Boolean,
66
- maintenanceWindow: S.Number,
67
- name: S.String,
68
- rrule: S.String,
69
- id: S.Number,
70
- })).annotate({
71
- identifier: "CreateUpdateScheduleResponse",
72
- });
73
- export const DeleteUpdateScheduleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
74
- projectId: S.String.pipe(T.Label()),
75
- region: S.String.pipe(T.Label()),
76
- serverId: S.String.pipe(T.Label()),
77
- scheduleId: S.String.pipe(T.Label()),
78
- }).pipe(T.Http({
79
- method: "DELETE",
80
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",
81
- code: 200,
82
- baseUrl: "https://server-update.api.stackit.cloud",
83
- }))).annotate({
84
- identifier: "DeleteUpdateScheduleRequest",
85
- });
86
- export const DeleteUpdateScheduleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
87
- identifier: "DeleteUpdateScheduleResponse",
88
- });
89
- export const DisableServiceResourceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
90
- projectId: S.String.pipe(T.Label()),
91
- region: S.String.pipe(T.Label()),
92
- serverId: S.String.pipe(T.Label()),
93
- }).pipe(T.Http({
94
- method: "DELETE",
95
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
96
- code: 200,
97
- baseUrl: "https://server-update.api.stackit.cloud",
98
- }))).annotate({
99
- identifier: "DisableServiceResourceRequest",
100
- });
101
- export const DisableServiceResourceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
102
- identifier: "DisableServiceResourceResponse",
103
- });
104
- export const EnableServiceResourceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
105
- projectId: S.String.pipe(T.Label()),
106
- region: S.String.pipe(T.Label()),
107
- serverId: S.String.pipe(T.Label()),
108
- updatePolicyId: S.optional(S.String),
109
- }).pipe(T.Http({
110
- method: "POST",
111
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
112
- code: 200,
113
- baseUrl: "https://server-update.api.stackit.cloud",
114
- }))).annotate({
115
- identifier: "EnableServiceResourceRequest",
116
- });
117
- export const EnableServiceResourceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
118
- identifier: "EnableServiceResourceResponse",
119
- });
120
- export const GetServiceResourceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
121
- projectId: S.String.pipe(T.Label()),
122
- region: S.String.pipe(T.Label()),
123
- serverId: S.String.pipe(T.Label()),
124
- }).pipe(T.Http({
125
- method: "GET",
126
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/service",
127
- code: 200,
128
- baseUrl: "https://server-update.api.stackit.cloud",
129
- }))).annotate({
130
- identifier: "GetServiceResourceRequest",
131
- });
132
- export const GetUpdateServiceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
133
- enabled: S.optional(S.Boolean),
134
- })).annotate({ identifier: "GetUpdateServiceResponse" });
135
- export const GetUpdateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
136
- projectId: S.String.pipe(T.Label()),
137
- region: S.String.pipe(T.Label()),
138
- serverId: S.String.pipe(T.Label()),
139
- updateId: S.String.pipe(T.Label()),
140
- }).pipe(T.Http({
141
- method: "GET",
142
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates/{updateId}",
143
- code: 200,
144
- baseUrl: "https://server-update.api.stackit.cloud",
145
- }))).annotate({ identifier: "GetUpdateRequest" });
146
- export const GetUpdateScheduleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
147
- projectId: S.String.pipe(T.Label()),
148
- region: S.String.pipe(T.Label()),
149
- serverId: S.String.pipe(T.Label()),
150
- scheduleId: S.String.pipe(T.Label()),
151
- }).pipe(T.Http({
152
- method: "GET",
153
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",
154
- code: 200,
155
- baseUrl: "https://server-update.api.stackit.cloud",
156
- }))).annotate({ identifier: "GetUpdateScheduleRequest" });
157
- export const GetUpdateScheduleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
158
- enabled: S.Boolean,
159
- maintenanceWindow: S.Number,
160
- name: S.String,
161
- rrule: S.String,
162
- id: S.Number,
163
- })).annotate({
164
- identifier: "GetUpdateScheduleResponse",
165
- });
166
- export const ListUpdatePoliciesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
167
- projectId: S.String.pipe(T.Label()),
168
- }).pipe(T.Http({
169
- method: "GET",
170
- uri: "/v2/projects/{projectId}/update-policies",
171
- code: 200,
172
- baseUrl: "https://server-update.api.stackit.cloud",
173
- }))).annotate({
174
- identifier: "ListUpdatePoliciesRequest",
175
- });
176
- export const UpdatePolicy = /*@__PURE__*/ S.suspend(() => S.Struct({
177
- default: S.optional(S.Boolean),
178
- description: S.optional(S.String),
179
- enabled: S.optional(S.Boolean),
180
- id: S.optional(S.String),
181
- maintenanceWindow: S.optional(S.Number),
182
- name: S.optional(S.String),
183
- rrule: S.optional(S.String),
184
- })).annotate({ identifier: "UpdatePolicy" });
185
- export const GetUpdatePoliciesResponseItemsList = /*@__PURE__*/ S.Array(UpdatePolicy);
186
- export const GetUpdatePoliciesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
187
- items: S.optional(GetUpdatePoliciesResponseItemsList),
188
- })).annotate({
189
- identifier: "GetUpdatePoliciesResponse",
190
- });
191
- export const ListUpdatesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
192
- projectId: S.String.pipe(T.Label()),
193
- region: S.String.pipe(T.Label()),
194
- serverId: S.String.pipe(T.Label()),
195
- }).pipe(T.Http({
196
- method: "GET",
197
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/updates",
198
- code: 200,
199
- baseUrl: "https://server-update.api.stackit.cloud",
200
- }))).annotate({ identifier: "ListUpdatesRequest" });
201
- export const GetUpdatesListResponseItemsList = /*@__PURE__*/ S.Array(Update);
202
- export const GetUpdatesListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
203
- items: S.optional(GetUpdatesListResponseItemsList),
204
- })).annotate({ identifier: "GetUpdatesListResponse" });
205
- export const ListUpdateSchedulesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
206
- projectId: S.String.pipe(T.Label()),
207
- region: S.String.pipe(T.Label()),
208
- serverId: S.String.pipe(T.Label()),
209
- }).pipe(T.Http({
210
- method: "GET",
211
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules",
212
- code: 200,
213
- baseUrl: "https://server-update.api.stackit.cloud",
214
- }))).annotate({
215
- identifier: "ListUpdateSchedulesRequest",
216
- });
217
- export const UpdateSchedule = /*@__PURE__*/ S.suspend(() => S.Struct({
218
- enabled: S.Boolean,
219
- maintenanceWindow: S.Number,
220
- name: S.String,
221
- rrule: S.String,
222
- id: S.Number,
223
- })).annotate({ identifier: "UpdateSchedule" });
224
- export const GetUpdateSchedulesResponseItemsList = /*@__PURE__*/ S.Array(UpdateSchedule);
225
- export const GetUpdateSchedulesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
226
- items: S.optional(GetUpdateSchedulesResponseItemsList),
227
- })).annotate({
228
- identifier: "GetUpdateSchedulesResponse",
229
- });
230
- export const UpdateUpdateScheduleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
231
- projectId: S.String.pipe(T.Label()),
232
- region: S.String.pipe(T.Label()),
233
- serverId: S.String.pipe(T.Label()),
234
- scheduleId: S.String.pipe(T.Label()),
235
- enabled: S.Boolean,
236
- maintenanceWindow: S.Number,
237
- name: S.String,
238
- rrule: S.String,
239
- }).pipe(T.Http({
240
- method: "PUT",
241
- uri: "/v2/projects/{projectId}/regions/{region}/servers/{serverId}/update-schedules/{scheduleId}",
242
- code: 200,
243
- baseUrl: "https://server-update.api.stackit.cloud",
244
- }))).annotate({
245
- identifier: "UpdateUpdateScheduleRequest",
246
- });
247
- export const UpdateUpdateScheduleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
248
- enabled: S.Boolean,
249
- maintenanceWindow: S.Number,
250
- name: S.String,
251
- rrule: S.String,
252
- id: S.Number,
253
- })).annotate({
254
- identifier: "UpdateUpdateScheduleResponse",
255
- });
256
- /** create update */
257
- export const createUpdate = /*@__PURE__*/ API.make(() => ({
258
- input: CreateUpdateRequest,
259
- output: Update,
260
- errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
261
- protocol: StackitProtocol,
262
- retry: Retry.Retry,
263
- }));
264
- /** create update schedule */
265
- export const createUpdateSchedule = /*@__PURE__*/ API.make(() => ({
266
- input: CreateUpdateScheduleRequest,
267
- output: CreateUpdateScheduleResponse,
268
- errors: [BadRequest, NotFound, UnknownStackitError],
269
- protocol: StackitProtocol,
270
- retry: Retry.Retry,
271
- }));
272
- /** delete update schedule */
273
- export const deleteUpdateSchedule = /*@__PURE__*/ API.make(() => ({
274
- input: DeleteUpdateScheduleRequest,
275
- output: DeleteUpdateScheduleResponse,
276
- errors: [BadRequest, NotFound, UnknownStackitError],
277
- protocol: StackitProtocol,
278
- retry: Retry.Retry,
279
- }));
280
- /** disable update service */
281
- export const disableServiceResource = /*@__PURE__*/ API.make(() => ({
282
- input: DisableServiceResourceRequest,
283
- output: DisableServiceResourceResponse,
284
- errors: [BadRequest, NotFound, UnknownStackitError],
285
- protocol: StackitProtocol,
286
- retry: Retry.Retry,
287
- }));
288
- /** enable update service */
289
- export const enableServiceResource = /*@__PURE__*/ API.make(() => ({
290
- input: EnableServiceResourceRequest,
291
- output: EnableServiceResourceResponse,
292
- errors: [BadRequest, NotFound, UnknownStackitError],
293
- protocol: StackitProtocol,
294
- retry: Retry.Retry,
295
- }));
296
- /** get update service details */
297
- export const getServiceResource = /*@__PURE__*/ API.make(() => ({
298
- input: GetServiceResourceRequest,
299
- output: GetUpdateServiceResponse,
300
- errors: [BadRequest, NotFound, UnknownStackitError],
301
- protocol: StackitProtocol,
302
- retry: Retry.Retry,
303
- }));
304
- /** get update */
305
- export const getUpdate = /*@__PURE__*/ API.make(() => ({
306
- input: GetUpdateRequest,
307
- output: Update,
308
- errors: [BadRequest, NotFound, UnknownStackitError],
309
- protocol: StackitProtocol,
310
- retry: Retry.Retry,
311
- }));
312
- /** get single update schedule details */
313
- export const getUpdateSchedule = /*@__PURE__*/ API.make(() => ({
314
- input: GetUpdateScheduleRequest,
315
- output: GetUpdateScheduleResponse,
316
- errors: [BadRequest, NotFound, UnknownStackitError],
317
- protocol: StackitProtocol,
318
- retry: Retry.Retry,
319
- }));
320
- /** get list of update policies */
321
- export const listUpdatePolicies = /*@__PURE__*/ API.make(() => ({
322
- input: ListUpdatePoliciesRequest,
323
- output: GetUpdatePoliciesResponse,
324
- errors: [BadRequest, NotFound, UnknownStackitError],
325
- protocol: StackitProtocol,
326
- retry: Retry.Retry,
327
- }));
328
- /** get list of updates */
329
- export const listUpdates = /*@__PURE__*/ API.make(() => ({
330
- input: ListUpdatesRequest,
331
- output: GetUpdatesListResponse,
332
- errors: [BadRequest, NotFound, UnknownStackitError],
333
- protocol: StackitProtocol,
334
- retry: Retry.Retry,
335
- }));
336
- /** get list of update schedules */
337
- export const listUpdateSchedules = /*@__PURE__*/ API.make(() => ({
338
- input: ListUpdateSchedulesRequest,
339
- output: GetUpdateSchedulesResponse,
340
- errors: [BadRequest, NotFound, UnknownStackitError],
341
- protocol: StackitProtocol,
342
- retry: Retry.Retry,
343
- }));
344
- /** update update schedule */
345
- export const updateUpdateSchedule = /*@__PURE__*/ API.make(() => ({
346
- input: UpdateUpdateScheduleRequest,
347
- output: UpdateUpdateScheduleResponse,
348
- errors: [BadRequest, NotFound, UnknownStackitError],
349
- protocol: StackitProtocol,
350
- retry: Retry.Retry,
351
- }));
352
- //# sourceMappingURL=server_update.js.map