@distilled.cloud/stackit 1.0.0-rc.15 → 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 Forbidden_base: S.Class<Forbidden, S.TaggedStruct<"Forbidden", {
15
+ declare const Forbidden_base: S.TaggedErrorClass<"Forbidden", {
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
  AuthError: true;
21
21
  };
22
22
  });
23
23
  export declare class Forbidden extends /*@__PURE__*/ Forbidden_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
  };
@@ -37,43 +37,33 @@ export interface DisableServiceRegionalRequest {
37
37
  region: string;
38
38
  serviceId: string;
39
39
  }
40
- export declare const DisableServiceRegionalRequest: S.Schema<DisableServiceRegionalRequest>;
41
40
  export interface DisableServiceRegionalResponse {
42
41
  }
43
- export declare const DisableServiceRegionalResponse: S.Schema<DisableServiceRegionalResponse>;
44
42
  export interface EnableServiceRegionalRequest {
45
43
  projectId: string;
46
44
  region: string;
47
45
  serviceId: string;
48
46
  }
49
- export declare const EnableServiceRegionalRequest: S.Schema<EnableServiceRegionalRequest>;
50
47
  export interface EnableServiceRegionalResponse {
51
48
  }
52
- export declare const EnableServiceRegionalResponse: S.Schema<EnableServiceRegionalResponse>;
53
49
  export interface GetServiceStatusRegionalRequest {
54
50
  projectId: string;
55
51
  region: string;
56
52
  serviceId: string;
57
53
  }
58
- export declare const GetServiceStatusRegionalRequest: S.Schema<GetServiceStatusRegionalRequest>;
59
54
  /** a list of service IDs which this service depend on. If the service is enabled, those service are enabled as well automatically. */
60
55
  export type DependenciesHardList = Array<string>;
61
- export declare const DependenciesHardList: S.Schema<DependenciesHardList>;
62
56
  /** a list of service IDs which this service depend on. When they are disabled a notification is sent. */
63
57
  export type DependenciesSoftList = Array<string>;
64
- export declare const DependenciesSoftList: S.Schema<DependenciesSoftList>;
65
58
  export interface Dependencies {
66
59
  /** a list of service IDs which this service depend on. If the service is enabled, those service are enabled as well automatically. */
67
60
  hard?: DependenciesHardList;
68
61
  /** a list of service IDs which this service depend on. When they are disabled a notification is sent. */
69
62
  soft?: DependenciesSoftList;
70
63
  }
71
- export declare const Dependencies: S.Schema<Dependencies>;
72
64
  export type ServiceStatusEnablement = "REQUEST" | "AUTO";
73
- export declare const ServiceStatusEnablement: any;
74
65
  /** the last action which was triggered on this service */
75
66
  export type ActionErrorAction = "DISABLE" | "ENABLE";
76
- export declare const ActionErrorAction: any;
77
67
  /** the last error for this service. */
78
68
  export interface ActionError {
79
69
  /** the last action which was triggered on this service */
@@ -83,31 +73,23 @@ export interface ActionError {
83
73
  /** the error reason provided by the service */
84
74
  reason?: string;
85
75
  }
86
- export declare const ActionError: S.Schema<ActionError>;
87
76
  export type ServiceStatusLabelsMap = {
88
77
  [key: string]: string | undefined;
89
78
  };
90
- export declare const ServiceStatusLabelsMap: S.Schema<ServiceStatusLabelsMap>;
91
79
  export type ServiceStatusLifecycle = "FLEX" | "PROJECT";
92
- export declare const ServiceStatusLifecycle: any;
93
80
  export type ParametersGeneralProjectScope = "SCHWARZ" | "PUBLIC";
94
- export declare const ParametersGeneralProjectScope: any;
95
81
  export interface ParametersGeneral {
96
82
  organizationId?: string;
97
83
  projectName?: string;
98
84
  projectScope?: ParametersGeneralProjectScope;
99
85
  }
100
- export declare const ParametersGeneral: S.Schema<ParametersGeneral>;
101
86
  /** service parameters */
102
87
  export interface Parameters {
103
88
  general?: ParametersGeneral;
104
89
  }
105
- export declare const Parameters: S.Schema<Parameters>;
106
90
  export type ServiceStatusScope = "PRIVATE" | "PUBLIC";
107
- export declare const ServiceStatusScope: any;
108
91
  /** the state of a service within a project */
109
92
  export type ServiceStatusState = "ENABLED" | "ENABLING" | "DISABLED" | "DISABLING";
110
- export declare const ServiceStatusState: any;
111
93
  export interface ServiceStatus {
112
94
  dependencies?: Dependencies;
113
95
  enablement?: ServiceStatusEnablement;
@@ -120,20 +102,16 @@ export interface ServiceStatus {
120
102
  /** the state of a service within a project */
121
103
  state?: ServiceStatusState;
122
104
  }
123
- export declare const ServiceStatus: S.Schema<ServiceStatus>;
124
105
  export interface ListServiceStatusRegionalRequest {
125
106
  projectId: string;
126
107
  region: string;
127
108
  cursor?: string;
128
109
  }
129
- export declare const ListServiceStatusRegionalRequest: S.Schema<ListServiceStatusRegionalRequest>;
130
110
  export type ListServiceStatusRegionalResponseItemsList = Array<ServiceStatus>;
131
- export declare const ListServiceStatusRegionalResponseItemsList: S.Schema<ListServiceStatusRegionalResponseItemsList>;
132
111
  export interface ListServiceStatusRegionalResponse {
133
112
  items?: ListServiceStatusRegionalResponseItemsList;
134
113
  nextCursor?: string;
135
114
  }
136
- export declare const ListServiceStatusRegionalResponse: S.Schema<ListServiceStatusRegionalResponse>;
137
115
  export type DisableServiceRegionalError = BadRequest | Forbidden | NotFound | StackitOpError;
138
116
  /** disables the service in a project. */
139
117
  export declare const disableServiceRegional: API.OperationMethod<DisableServiceRegionalRequest, DisableServiceRegionalResponse, DisableServiceRegionalError, StackitOpContext>;
@@ -1 +1 @@
1
- {"version":3,"file":"service_enablement.d.ts","sourceRoot":"","sources":["../../src/services/service_enablement.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,SACX,SAAQ,aAAa,CAAC,cAMrB;CAAG;;;;;;;;;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D,MAAM,MAAM,0CAA0C,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;AAC9E,MAAM,WAAW,iCAAiC;IAChD,KAAK,CAAC,EAAE,0CAA0C,CAAC;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AACD,MAAM,MAAM,2BAA2B,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC;AAC7F,yCAAyC;AACzC,eAAO,MAAM,sBAAsB,EAAE,GAAG,CAAC,eAAe,CACtD,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,0BAA0B,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC;AAC5F,wCAAwC;AACxC,eAAO,MAAM,qBAAqB,EAAE,GAAG,CAAC,eAAe,CACrD,4BAA4B,EAC5B,6BAA6B,EAC7B,0BAA0B,EAC1B,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,6BAA6B,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC;AAC/F,4DAA4D;AAC5D,eAAO,MAAM,wBAAwB,EAAE,GAAG,CAAC,eAAe,CACxD,+BAA+B,EAC/B,aAAa,EACb,6BAA6B,EAC7B,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,8BAA8B,GAAG,UAAU,GAAG,SAAS,GAAG,cAAc,CAAC;AACrF,8DAA8D;AAC9D,eAAO,MAAM,yBAAyB,EAAE,GAAG,CAAC,eAAe,CACzD,gCAAgC,EAChC,iCAAiC,EACjC,8BAA8B,EAC9B,gBAAgB,CAOf,CAAC"}
@@ -1,157 +1,50 @@
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 }]) {
14
- }
15
- export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
16
- /*@__PURE__*/ S.TaggedError()("Forbidden", {
17
- code: S.Number,
18
- message: S.String,
19
- }).pipe(C.withAuthError), [{ status: 403 }]) {
20
- }
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 }]) {
26
- }
27
- export const DisableServiceRegionalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
28
- projectId: S.String.pipe(T.Label()),
29
- region: S.String.pipe(T.Label()),
30
- serviceId: S.String.pipe(T.Label()),
31
- }).pipe(T.Http({
32
- method: "DELETE",
33
- uri: "/v2/projects/{projectId}/regions/{region}/services/{serviceId}",
34
- code: 200,
35
- baseUrl: "https://service-enablement.api.stackit.cloud",
36
- }))).annotate({
37
- identifier: "DisableServiceRegionalRequest",
38
- });
39
- export const DisableServiceRegionalResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
40
- identifier: "DisableServiceRegionalResponse",
41
- });
42
- export const EnableServiceRegionalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
43
- projectId: S.String.pipe(T.Label()),
44
- region: S.String.pipe(T.Label()),
45
- serviceId: S.String.pipe(T.Label()),
46
- }).pipe(T.Http({
47
- method: "POST",
48
- uri: "/v2/projects/{projectId}/regions/{region}/services/{serviceId}",
49
- code: 200,
50
- baseUrl: "https://service-enablement.api.stackit.cloud",
51
- }))).annotate({
52
- identifier: "EnableServiceRegionalRequest",
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.Array;
17
+ const __7 = S.optional;
18
+ const __8 = S.Record;
19
+ const __9 = T.Query;
20
+ const __10 = S.Number;
21
+ const __11 = S.TaggedError;
22
+ const __12 = T.applyErrorMatchers;
23
+ export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
24
+ return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __10, __3, __11, __12]]);
53
25
  });
54
- export const EnableServiceRegionalResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
55
- identifier: "EnableServiceRegionalResponse",
26
+ export const Forbidden = /*@__PURE__*/ API.error(function Forbidden(i) {
27
+ return API.newError(i, new.target, ['$5($4()("Forbidden",{code:$2,message:$3}).pipe($1),[{status:403}])', [__0, C.withAuthError, __10, __3, __11, __12]]);
56
28
  });
57
- export const GetServiceStatusRegionalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
58
- projectId: S.String.pipe(T.Label()),
59
- region: S.String.pipe(T.Label()),
60
- serviceId: S.String.pipe(T.Label()),
61
- }).pipe(T.Http({
62
- method: "GET",
63
- uri: "/v2/projects/{projectId}/regions/{region}/services/{serviceId}",
64
- code: 200,
65
- baseUrl: "https://service-enablement.api.stackit.cloud",
66
- }))).annotate({
67
- identifier: "GetServiceStatusRegionalRequest",
29
+ export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
30
+ return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __10, __3, __11, __12]]);
68
31
  });
69
- export const DependenciesHardList = /*@__PURE__*/ S.Array(S.String);
70
- export const DependenciesSoftList = /*@__PURE__*/ S.Array(S.String);
71
- export const Dependencies = /*@__PURE__*/ S.suspend(() => S.Struct({
72
- hard: S.optional(DependenciesHardList),
73
- soft: S.optional(DependenciesSoftList),
74
- })).annotate({ identifier: "Dependencies" });
75
- export const ServiceStatusEnablement = S.String;
76
- export const ActionErrorAction = S.String;
77
- export const ActionError = /*@__PURE__*/ S.suspend(() => S.Struct({
78
- action: S.optional(ActionErrorAction),
79
- code: S.optional(S.String),
80
- reason: S.optional(S.String),
81
- })).annotate({ identifier: "ActionError" });
82
- export const ServiceStatusLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
83
- export const ServiceStatusLifecycle = S.String;
84
- export const ParametersGeneralProjectScope = S.String;
85
- export const ParametersGeneral = /*@__PURE__*/ S.suspend(() => S.Struct({
86
- organizationId: S.optional(S.String),
87
- projectName: S.optional(S.String),
88
- projectScope: S.optional(ParametersGeneralProjectScope),
89
- })).annotate({ identifier: "ParametersGeneral" });
90
- export const Parameters = /*@__PURE__*/ S.suspend(() => S.Struct({
91
- general: S.optional(ParametersGeneral),
92
- })).annotate({ identifier: "Parameters" });
93
- export const ServiceStatusScope = S.String;
94
- export const ServiceStatusState = S.String;
95
- export const ServiceStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
96
- dependencies: S.optional(Dependencies),
97
- enablement: S.optional(ServiceStatusEnablement),
98
- error: S.optional(ActionError),
99
- labels: S.optional(ServiceStatusLabelsMap),
100
- lifecycle: S.optional(ServiceStatusLifecycle),
101
- parameters: S.optional(Parameters),
102
- scope: S.optional(ServiceStatusScope),
103
- serviceId: S.optional(S.String),
104
- state: S.optional(ServiceStatusState),
105
- })).annotate({ identifier: "ServiceStatus" });
106
- export const ListServiceStatusRegionalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
107
- projectId: S.String.pipe(T.Label()),
108
- region: S.String.pipe(T.Label()),
109
- cursor: S.optional(S.String.pipe(T.Query())),
110
- }).pipe(T.Http({
111
- method: "GET",
112
- uri: "/v2/projects/{projectId}/regions/{region}/services",
113
- code: 200,
114
- baseUrl: "https://service-enablement.api.stackit.cloud",
115
- }))).annotate({
116
- identifier: "ListServiceStatusRegionalRequest",
117
- });
118
- export const ListServiceStatusRegionalResponseItemsList = /*@__PURE__*/ S.Array(ServiceStatus);
119
- export const ListServiceStatusRegionalResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
120
- items: S.optional(ListServiceStatusRegionalResponseItemsList),
121
- nextCursor: S.optional(S.String),
122
- })).annotate({
123
- identifier: "ListServiceStatusRegionalResponse",
124
- });
125
- /** disables the service in a project. */
126
- export const disableServiceRegional = /*@__PURE__*/ API.make(() => ({
127
- input: DisableServiceRegionalRequest,
128
- output: DisableServiceRegionalResponse,
129
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
130
- protocol: StackitProtocol,
131
- retry: Retry.Retry,
132
- }));
133
- /** enables the service in a project. */
134
- export const enableServiceRegional = /*@__PURE__*/ API.make(() => ({
135
- input: EnableServiceRegionalRequest,
136
- output: EnableServiceRegionalResponse,
137
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
138
- protocol: StackitProtocol,
139
- retry: Retry.Retry,
140
- }));
141
- /** returns the current status of a service in a project. */
142
- export const getServiceStatusRegional = /*@__PURE__*/ API.make(() => ({
143
- input: GetServiceStatusRegionalRequest,
144
- output: ServiceStatus,
145
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
146
- protocol: StackitProtocol,
147
- retry: Retry.Retry,
148
- }));
149
- /** returns a list of all available services for a project. */
150
- export const listServiceStatusRegional = /*@__PURE__*/ API.make(() => ({
151
- input: ListServiceStatusRegionalRequest,
152
- output: ListServiceStatusRegionalResponse,
153
- errors: [BadRequest, Forbidden, UnknownStackitError],
154
- protocol: StackitProtocol,
155
- retry: Retry.Retry,
156
- }));
157
- //# sourceMappingURL=service_enablement.js.map
32
+
33
+ export const disableServiceRegional = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"DisableServiceRegionalRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serviceId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/services/{serviceId}",code:200,baseUrl:"https://service-enablement.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d0, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(disableServiceRegional, i));
34
+
35
+ export const enableServiceRegional = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"EnableServiceRegionalRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serviceId:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/services/{serviceId}",code:200,baseUrl:"https://service-enablement.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d0, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(enableServiceRegional, i));
36
+
37
+ export const getServiceStatusRegional = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:6,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"GetServiceStatusRegionalRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),serviceId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/services/{serviceId}",code:200,baseUrl:"https://service-enablement.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d1, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getServiceStatusRegional, i));
38
+
39
+ export const listServiceStatusRegional = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$10,$11,$12],protocol:$13,retry:$14};$7(>4)@"ListServiceStatusRegionalRequest";$9(#8:6);$7(>5)@"ListServiceStatusRegionalResponse";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),cursor:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/services",code:200,baseUrl:"https://service-enablement.api.stackit.cloud"}));$6({items:$5(#2),nextCursor:$5($3)})', [__0, __1, __2, __3, __9, __7, __4, __5, __d1, __6, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listServiceStatusRegional, i));
40
+ // Schema builders: each runs one schema initializer, on that schema's first use.
41
+ // Schema table: entry i is schema j of builder f, made on first reach.
42
+
43
+
44
+ // Shared schema data (see `op` in core/api).
45
+ function __d0() {
46
+ return ['$2(>1)@"DisableServiceRegionalResponse";$1({})', [__0, __4, __5]];
47
+ }
48
+ function __d1() {
49
+ return ['$2($1);$5(>7)@"Dependencies";$5(>8)@"ActionError";$6($1,$1);$5(>9)@"ParametersGeneral";$5(>10)@"Parameters";$5(>11)@"ServiceStatus";$4({hard:$3(#0),soft:$3(#0)});$4({action:$3($1),code:$3($1),reason:$3($1)});$4({organizationId:$3($1),projectName:$3($1),projectScope:$3($1)});$4({general:$3(#4)});$4({dependencies:$3(#1),enablement:$3($1),error:$3(#2),labels:$3(#3),lifecycle:$3($1),parameters:$3(#5),scope:$3($1),serviceId:$3($1),state:$3($1)})', [__0, __3, __6, __7, __4, __5, __8]];
50
+ }