@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,540 +1,105 @@
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";
5
- import * as Redacted from "effect/Redacted";
4
+ import * as S from "@distilled.cloud/core/schema-lite";
5
+ import * as __L from "@distilled.cloud/core/schema-lite";
6
6
  import { UnknownStackitError } from "../errors.js";
7
7
  import { StackitProtocol } from "../protocol.js";
8
8
  import * as Retry from "../retry.js";
9
9
  import * as T from "../traits.js";
10
- export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
11
- /*@__PURE__*/ S.TaggedError()("BadRequest", {
12
- code: S.Number,
13
- message: S.String,
14
- }).pipe(C.withBadRequestError), [{ status: 400 }]) {
15
- }
16
- export class Conflict extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
17
- /*@__PURE__*/ S.TaggedError()("Conflict", {
18
- code: S.Number,
19
- message: S.String,
20
- }).pipe(C.withConflictError), [{ status: 409 }]) {
21
- }
22
- export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
23
- /*@__PURE__*/ S.TaggedError()("Forbidden", {
24
- code: S.Number,
25
- message: S.String,
26
- }).pipe(C.withAuthError), [{ status: 403 }]) {
27
- }
28
- export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
29
- /*@__PURE__*/ S.TaggedError()("NotFound", {
30
- code: S.Number,
31
- message: S.String,
32
- }).pipe(C.withBadRequestError), [{ status: 404 }]) {
33
- }
34
- export class UnprocessableEntity extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
35
- /*@__PURE__*/ S.TaggedError()("UnprocessableEntity", {
36
- code: S.Number,
37
- message: S.String,
38
- }).pipe(C.withBadRequestError), [{ status: 422 }]) {
39
- }
40
- export const CreateAccessKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
41
- projectId: S.String.pipe(T.Label()),
42
- region: S.String.pipe(T.Label()),
43
- credentials_group: S.optional(S.String.pipe(T.Query("credentials-group"))),
44
- expires: S.optional(S.NullOr(S.String)),
45
- }).pipe(T.Http({
46
- method: "POST",
47
- uri: "/v2/project/{projectId}/regions/{region}/access-key",
48
- code: 200,
49
- baseUrl: "https://object-storage.api.stackit.cloud",
50
- }))).annotate({ identifier: "CreateAccessKeyRequest" });
51
- export const CreateAccessKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
52
- accessKey: S.String,
53
- displayName: S.String,
54
- expires: S.NullOr(S.String),
55
- keyId: S.String,
56
- project: S.String,
57
- secretAccessKey: S.String.pipe(T.SensitiveValue({})),
58
- })).annotate({ identifier: "CreateAccessKeyResponse" });
59
- export const CreateBucketRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
60
- projectId: S.String.pipe(T.Label()),
61
- region: S.String.pipe(T.Label()),
62
- bucketName: S.String.pipe(T.Label()),
63
- objectLockEnabled: S.optional(S.Boolean.pipe(T.Query())),
64
- }).pipe(T.Http({
65
- method: "POST",
66
- uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}",
67
- code: 200,
68
- baseUrl: "https://object-storage.api.stackit.cloud",
69
- }))).annotate({ identifier: "CreateBucketRequest" });
70
- export const CreateBucketResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
71
- bucket: S.String,
72
- project: S.String,
73
- })).annotate({ identifier: "CreateBucketResponse" });
74
- export const CreateComplianceLockRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
75
- projectId: S.String.pipe(T.Label()),
76
- region: S.String.pipe(T.Label()),
77
- }).pipe(T.Http({
78
- method: "POST",
79
- uri: "/v2/project/{projectId}/regions/{region}/compliance-lock",
80
- code: 200,
81
- baseUrl: "https://object-storage.api.stackit.cloud",
82
- }))).annotate({
83
- identifier: "CreateComplianceLockRequest",
84
- });
85
- export const ComplianceLockResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
86
- maxRetentionDays: S.Number,
87
- project: S.String,
88
- })).annotate({ identifier: "ComplianceLockResponse" });
89
- export const CreateCredentialsGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
90
- projectId: S.String.pipe(T.Label()),
91
- region: S.String.pipe(T.Label()),
92
- displayName: S.String,
93
- }).pipe(T.Http({
94
- method: "POST",
95
- uri: "/v2/project/{projectId}/regions/{region}/credentials-group",
96
- code: 200,
97
- baseUrl: "https://object-storage.api.stackit.cloud",
98
- }))).annotate({
99
- identifier: "CreateCredentialsGroupRequest",
100
- });
101
- export const CredentialsGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
102
- credentialsGroupId: S.String,
103
- displayName: S.String,
104
- urn: S.String,
105
- })).annotate({ identifier: "CredentialsGroup" });
106
- export const CreateCredentialsGroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
107
- credentialsGroup: CredentialsGroup,
108
- project: S.String,
109
- })).annotate({
110
- identifier: "CreateCredentialsGroupResponse",
111
- });
112
- export const DeleteAccessKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
113
- projectId: S.String.pipe(T.Label()),
114
- region: S.String.pipe(T.Label()),
115
- keyId: S.String.pipe(T.Label()),
116
- credentials_group: S.optional(S.String.pipe(T.Query("credentials-group"))),
117
- }).pipe(T.Http({
118
- method: "DELETE",
119
- uri: "/v2/project/{projectId}/regions/{region}/access-key/{keyId}",
120
- code: 200,
121
- baseUrl: "https://object-storage.api.stackit.cloud",
122
- }))).annotate({ identifier: "DeleteAccessKeyRequest" });
123
- export const DeleteAccessKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
124
- keyId: S.String,
125
- project: S.String,
126
- })).annotate({ identifier: "DeleteAccessKeyResponse" });
127
- export const DeleteBucketRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
128
- projectId: S.String.pipe(T.Label()),
129
- region: S.String.pipe(T.Label()),
130
- bucketName: S.String.pipe(T.Label()),
131
- }).pipe(T.Http({
132
- method: "DELETE",
133
- uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}",
134
- code: 200,
135
- baseUrl: "https://object-storage.api.stackit.cloud",
136
- }))).annotate({ identifier: "DeleteBucketRequest" });
137
- export const DeleteBucketResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
138
- bucket: S.String,
139
- project: S.String,
140
- })).annotate({ identifier: "DeleteBucketResponse" });
141
- export const DeleteComplianceLockRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
142
- projectId: S.String.pipe(T.Label()),
143
- region: S.String.pipe(T.Label()),
144
- }).pipe(T.Http({
145
- method: "DELETE",
146
- uri: "/v2/project/{projectId}/regions/{region}/compliance-lock",
147
- code: 200,
148
- baseUrl: "https://object-storage.api.stackit.cloud",
149
- }))).annotate({
150
- identifier: "DeleteComplianceLockRequest",
151
- });
152
- export const DeleteCredentialsGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
153
- projectId: S.String.pipe(T.Label()),
154
- region: S.String.pipe(T.Label()),
155
- groupId: S.String.pipe(T.Label()),
156
- }).pipe(T.Http({
157
- method: "DELETE",
158
- uri: "/v2/project/{projectId}/regions/{region}/credentials-group/{groupId}",
159
- code: 200,
160
- baseUrl: "https://object-storage.api.stackit.cloud",
161
- }))).annotate({
162
- identifier: "DeleteCredentialsGroupRequest",
163
- });
164
- export const DeleteCredentialsGroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
165
- credentialsGroupId: S.String,
166
- project: S.String,
167
- })).annotate({
168
- identifier: "DeleteCredentialsGroupResponse",
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.Record;
17
+ const __7 = S.optional;
18
+ const __8 = S.Boolean;
19
+ const __9 = S.Number;
20
+ const __10 = T.Query;
21
+ const __11 = S.NullOr;
22
+ const __12 = S.Array;
23
+ const __13 = T.SensitiveValue;
24
+ const __14 = S.TaggedError;
25
+ const __15 = T.applyErrorMatchers;
26
+ export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
27
+ return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __9, __3, __14, __15]]);
169
28
  });
170
- export const DeleteDefaultRetentionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
171
- projectId: S.String.pipe(T.Label()),
172
- region: S.String.pipe(T.Label()),
173
- bucketName: S.String.pipe(T.Label()),
174
- }).pipe(T.Http({
175
- method: "DELETE",
176
- uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}/default-retention",
177
- code: 200,
178
- baseUrl: "https://object-storage.api.stackit.cloud",
179
- }))).annotate({
180
- identifier: "DeleteDefaultRetentionRequest",
29
+ export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
30
+ return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __9, __3, __14, __15]]);
181
31
  });
182
- export const DeleteDefaultRetentionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
183
- bucket: S.String,
184
- project: S.String,
185
- })).annotate({
186
- identifier: "DeleteDefaultRetentionResponse",
32
+ export const Forbidden = /*@__PURE__*/ API.error(function Forbidden(i) {
33
+ return API.newError(i, new.target, ['$5($4()("Forbidden",{code:$2,message:$3}).pipe($1),[{status:403}])', [__0, C.withAuthError, __9, __3, __14, __15]]);
187
34
  });
188
- export const DisableServiceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
189
- projectId: S.String.pipe(T.Label()),
190
- region: S.String.pipe(T.Label()),
191
- }).pipe(T.Http({
192
- method: "DELETE",
193
- uri: "/v2/project/{projectId}/regions/{region}",
194
- code: 200,
195
- baseUrl: "https://object-storage.api.stackit.cloud",
196
- }))).annotate({ identifier: "DisableServiceRequest" });
197
- export const ProjectStatusLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
198
- export const ProjectScope = S.String;
199
- export const ProjectStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
200
- labels: S.optional(ProjectStatusLabelsMap),
201
- project: S.String,
202
- scope: ProjectScope,
203
- })).annotate({ identifier: "ProjectStatus" });
204
- export const EnableServiceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
205
- projectId: S.String.pipe(T.Label()),
206
- region: S.String.pipe(T.Label()),
207
- }).pipe(T.Http({
208
- method: "POST",
209
- uri: "/v2/project/{projectId}/regions/{region}",
210
- code: 200,
211
- baseUrl: "https://object-storage.api.stackit.cloud",
212
- }))).annotate({ identifier: "EnableServiceRequest" });
213
- export const GetBucketRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
214
- projectId: S.String.pipe(T.Label()),
215
- region: S.String.pipe(T.Label()),
216
- bucketName: S.String.pipe(T.Label()),
217
- }).pipe(T.Http({
218
- method: "GET",
219
- uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}",
220
- code: 200,
221
- baseUrl: "https://object-storage.api.stackit.cloud",
222
- }))).annotate({ identifier: "GetBucketRequest" });
223
- export const Bucket = /*@__PURE__*/ S.suspend(() => S.Struct({
224
- name: S.String,
225
- objectLockEnabled: S.Boolean,
226
- region: S.String,
227
- urlPathStyle: S.String,
228
- urlVirtualHostedStyle: S.String,
229
- })).annotate({ identifier: "Bucket" });
230
- export const GetBucketResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
231
- bucket: Bucket,
232
- project: S.String,
233
- })).annotate({ identifier: "GetBucketResponse" });
234
- export const GetComplianceLockRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
235
- projectId: S.String.pipe(T.Label()),
236
- region: S.String.pipe(T.Label()),
237
- }).pipe(T.Http({
238
- method: "GET",
239
- uri: "/v2/project/{projectId}/regions/{region}/compliance-lock",
240
- code: 200,
241
- baseUrl: "https://object-storage.api.stackit.cloud",
242
- }))).annotate({ identifier: "GetComplianceLockRequest" });
243
- export const GetCredentialsGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
244
- projectId: S.String.pipe(T.Label()),
245
- region: S.String.pipe(T.Label()),
246
- groupId: S.String.pipe(T.Label()),
247
- }).pipe(T.Http({
248
- method: "GET",
249
- uri: "/v2/project/{projectId}/regions/{region}/credentials-group/{groupId}",
250
- code: 200,
251
- baseUrl: "https://object-storage.api.stackit.cloud",
252
- }))).annotate({
253
- identifier: "GetCredentialsGroupRequest",
35
+ export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
36
+ return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __9, __3, __14, __15]]);
254
37
  });
255
- export const CredentialsGroupExtended = /*@__PURE__*/ S.suspend(() => S.Struct({
256
- credentialsGroupId: S.String,
257
- displayName: S.String,
258
- urn: S.String,
259
- userUrn: S.String,
260
- })).annotate({ identifier: "CredentialsGroupExtended" });
261
- export const GetCredentialsGroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
262
- credentialsGroup: CredentialsGroupExtended,
263
- project: S.String,
264
- })).annotate({
265
- identifier: "GetCredentialsGroupResponse",
38
+ export const UnprocessableEntity = /*@__PURE__*/ API.error(function UnprocessableEntity(i) {
39
+ return API.newError(i, new.target, ['$5($4()("UnprocessableEntity",{code:$2,message:$3}).pipe($1),[{status:422}])', [__0, C.withBadRequestError, __9, __3, __14, __15]]);
266
40
  });
267
- export const GetDefaultRetentionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
268
- projectId: S.String.pipe(T.Label()),
269
- region: S.String.pipe(T.Label()),
270
- bucketName: S.String.pipe(T.Label()),
271
- }).pipe(T.Http({
272
- method: "GET",
273
- uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}/default-retention",
274
- code: 200,
275
- baseUrl: "https://object-storage.api.stackit.cloud",
276
- }))).annotate({
277
- identifier: "GetDefaultRetentionRequest",
278
- });
279
- export const RetentionMode = S.String;
280
- export const DefaultRetentionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
281
- bucket: S.String,
282
- days: S.Number,
283
- mode: RetentionMode,
284
- project: S.String,
285
- })).annotate({ identifier: "DefaultRetentionResponse" });
286
- export const GetServiceStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
287
- projectId: S.String.pipe(T.Label()),
288
- region: S.String.pipe(T.Label()),
289
- }).pipe(T.Http({
290
- method: "GET",
291
- uri: "/v2/project/{projectId}/regions/{region}",
292
- code: 200,
293
- baseUrl: "https://object-storage.api.stackit.cloud",
294
- }))).annotate({ identifier: "GetServiceStatusRequest" });
295
- export const ListAccessKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
296
- projectId: S.String.pipe(T.Label()),
297
- region: S.String.pipe(T.Label()),
298
- credentials_group: S.optional(S.String.pipe(T.Query("credentials-group"))),
299
- }).pipe(T.Http({
300
- method: "GET",
301
- uri: "/v2/project/{projectId}/regions/{region}/access-keys",
302
- code: 200,
303
- baseUrl: "https://object-storage.api.stackit.cloud",
304
- }))).annotate({ identifier: "ListAccessKeysRequest" });
305
- export const AccessKey = /*@__PURE__*/ S.suspend(() => S.Struct({
306
- displayName: S.String,
307
- expires: S.NullOr(S.String),
308
- keyId: S.String,
309
- })).annotate({ identifier: "AccessKey" });
310
- export const ListAccessKeysResponseAccessKeysList = /*@__PURE__*/ S.Array(AccessKey);
311
- export const ListAccessKeysResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
312
- accessKeys: ListAccessKeysResponseAccessKeysList,
313
- project: S.String,
314
- })).annotate({ identifier: "ListAccessKeysResponse" });
315
- export const ListBucketsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
316
- projectId: S.String.pipe(T.Label()),
317
- region: S.String.pipe(T.Label()),
318
- }).pipe(T.Http({
319
- method: "GET",
320
- uri: "/v2/project/{projectId}/regions/{region}/buckets",
321
- code: 200,
322
- baseUrl: "https://object-storage.api.stackit.cloud",
323
- }))).annotate({ identifier: "ListBucketsRequest" });
324
- export const ListBucketsResponseBucketsList = /*@__PURE__*/ S.Array(Bucket);
325
- export const ListBucketsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
326
- buckets: ListBucketsResponseBucketsList,
327
- project: S.String,
328
- })).annotate({ identifier: "ListBucketsResponse" });
329
- export const ListCredentialsGroupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
330
- projectId: S.String.pipe(T.Label()),
331
- region: S.String.pipe(T.Label()),
332
- }).pipe(T.Http({
333
- method: "GET",
334
- uri: "/v2/project/{projectId}/regions/{region}/credentials-groups",
335
- code: 200,
336
- baseUrl: "https://object-storage.api.stackit.cloud",
337
- }))).annotate({
338
- identifier: "ListCredentialsGroupsRequest",
339
- });
340
- export const ListCredentialsGroupsResponseCredentialsGroupsList = /*@__PURE__*/ S.Array(CredentialsGroup);
341
- export const ListCredentialsGroupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
342
- credentialsGroups: ListCredentialsGroupsResponseCredentialsGroupsList,
343
- project: S.String,
344
- })).annotate({
345
- identifier: "ListCredentialsGroupsResponse",
346
- });
347
- export const SetDefaultRetentionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
348
- projectId: S.String.pipe(T.Label()),
349
- region: S.String.pipe(T.Label()),
350
- bucketName: S.String.pipe(T.Label()),
351
- days: S.Number,
352
- mode: RetentionMode,
353
- }).pipe(T.Http({
354
- method: "PUT",
355
- uri: "/v2/project/{projectId}/regions/{region}/bucket/{bucketName}/default-retention",
356
- code: 200,
357
- baseUrl: "https://object-storage.api.stackit.cloud",
358
- }))).annotate({
359
- identifier: "SetDefaultRetentionRequest",
360
- });
361
- export const UpdateServiceRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
362
- export const UpdateServiceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
363
- projectId: S.String.pipe(T.Label()),
364
- region: S.String.pipe(T.Label()),
365
- labels: UpdateServiceRequestLabelsMap,
366
- }).pipe(T.Http({
367
- method: "PUT",
368
- uri: "/v2/project/{projectId}/regions/{region}",
369
- code: 200,
370
- baseUrl: "https://object-storage.api.stackit.cloud",
371
- }))).annotate({ identifier: "UpdateServiceRequest" });
372
- /** Create Access Key Create an access key for the given project. */
373
- export const createAccessKey = /*@__PURE__*/ API.make(() => ({
374
- input: CreateAccessKeyRequest,
375
- output: CreateAccessKeyResponse,
376
- errors: [Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
377
- protocol: StackitProtocol,
378
- retry: Retry.Retry,
379
- }));
380
- /** Create Bucket Create a bucket for the given project. Bucket with the same name cannot already exists in the object storage */
381
- export const createBucket = /*@__PURE__*/ API.make(() => ({
382
- input: CreateBucketRequest,
383
- output: CreateBucketResponse,
384
- errors: [NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
385
- protocol: StackitProtocol,
386
- retry: Retry.Retry,
387
- }));
388
- /** Create Compliance Lock Enable compliance lock for a project. */
389
- export const createComplianceLock = /*@__PURE__*/ API.make(() => ({
390
- input: CreateComplianceLockRequest,
391
- output: ComplianceLockResponse,
392
- errors: [NotFound, Conflict, UnknownStackitError],
393
- protocol: StackitProtocol,
394
- retry: Retry.Retry,
395
- }));
396
- /** Create Credentials Group */
397
- export const createCredentialsGroup = /*@__PURE__*/ API.make(() => ({
398
- input: CreateCredentialsGroupRequest,
399
- output: CreateCredentialsGroupResponse,
400
- errors: [Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
401
- protocol: StackitProtocol,
402
- retry: Retry.Retry,
403
- }));
404
- /** Delete Access Key Delete an access key from the given project. */
405
- export const deleteAccessKey = /*@__PURE__*/ API.make(() => ({
406
- input: DeleteAccessKeyRequest,
407
- output: DeleteAccessKeyResponse,
408
- errors: [Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
409
- protocol: StackitProtocol,
410
- retry: Retry.Retry,
411
- }));
412
- /** Delete Bucket Delete a bucket from the given project. */
413
- export const deleteBucket = /*@__PURE__*/ API.make(() => ({
414
- input: DeleteBucketRequest,
415
- output: DeleteBucketResponse,
416
- errors: [NotFound, UnprocessableEntity, UnknownStackitError],
417
- protocol: StackitProtocol,
418
- retry: Retry.Retry,
419
- }));
420
- /** Delete Compliance Lock Remove compliance lock from a project. */
421
- export const deleteComplianceLock = /*@__PURE__*/ API.make(() => ({
422
- input: DeleteComplianceLockRequest,
423
- output: ComplianceLockResponse,
424
- errors: [NotFound, Conflict, UnknownStackitError],
425
- protocol: StackitProtocol,
426
- retry: Retry.Retry,
427
- }));
428
- /** Delete Credentials Group Delete a credentials group inside a project if the project exists and no valid access keys are left in the group. */
429
- export const deleteCredentialsGroup = /*@__PURE__*/ API.make(() => ({
430
- input: DeleteCredentialsGroupRequest,
431
- output: DeleteCredentialsGroupResponse,
432
- errors: [NotFound, UnprocessableEntity, UnknownStackitError],
433
- protocol: StackitProtocol,
434
- retry: Retry.Retry,
435
- }));
436
- /** Delete Default Retention Remove the default retention from a bucket. Object Lock itself remains enabled. */
437
- export const deleteDefaultRetention = /*@__PURE__*/ API.make(() => ({
438
- input: DeleteDefaultRetentionRequest,
439
- output: DeleteDefaultRetentionResponse,
440
- errors: [NotFound, Conflict, UnknownStackitError],
441
- protocol: StackitProtocol,
442
- retry: Retry.Retry,
443
- }));
444
- /** Delete Project Delete the given project */
445
- export const disableService = /*@__PURE__*/ API.make(() => ({
446
- input: DisableServiceRequest,
447
- output: ProjectStatus,
448
- errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
449
- protocol: StackitProtocol,
450
- retry: Retry.Retry,
451
- }));
452
- /** Create Project Create a project. Creation will also be successful if the project already exists, but will not create a duplicate */
453
- export const enableService = /*@__PURE__*/ API.make(() => ({
454
- input: EnableServiceRequest,
455
- output: ProjectStatus,
456
- errors: [Forbidden, Conflict, UnprocessableEntity, UnknownStackitError],
457
- protocol: StackitProtocol,
458
- retry: Retry.Retry,
459
- }));
460
- /** Get Bucket Get information for the given bucket in the project. */
461
- export const getBucket = /*@__PURE__*/ API.make(() => ({
462
- input: GetBucketRequest,
463
- output: GetBucketResponse,
464
- errors: [Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
465
- protocol: StackitProtocol,
466
- retry: Retry.Retry,
467
- }));
468
- /** Get Compliance Lock Get the project-level compliance lock. */
469
- export const getComplianceLock = /*@__PURE__*/ API.make(() => ({
470
- input: GetComplianceLockRequest,
471
- output: ComplianceLockResponse,
472
- errors: [NotFound, UnknownStackitError],
473
- protocol: StackitProtocol,
474
- retry: Retry.Retry,
475
- }));
476
- /** Get Credentials Group Get the details of a single credentials group */
477
- export const getCredentialsGroup = /*@__PURE__*/ API.make(() => ({
478
- input: GetCredentialsGroupRequest,
479
- output: GetCredentialsGroupResponse,
480
- errors: [NotFound, UnprocessableEntity, UnknownStackitError],
481
- protocol: StackitProtocol,
482
- retry: Retry.Retry,
483
- }));
484
- /** Get Default Retention Get the default retention configuration for a bucket. */
485
- export const getDefaultRetention = /*@__PURE__*/ API.make(() => ({
486
- input: GetDefaultRetentionRequest,
487
- output: DefaultRetentionResponse,
488
- errors: [NotFound, Conflict, UnknownStackitError],
489
- protocol: StackitProtocol,
490
- retry: Retry.Retry,
491
- }));
492
- /** Get Project Get project details. */
493
- export const getServiceStatus = /*@__PURE__*/ API.make(() => ({
494
- input: GetServiceStatusRequest,
495
- output: ProjectStatus,
496
- errors: [Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
497
- protocol: StackitProtocol,
498
- retry: Retry.Retry,
499
- }));
500
- /** Get Access Keys Get a list of access keys for the given project. */
501
- export const listAccessKeys = /*@__PURE__*/ API.make(() => ({
502
- input: ListAccessKeysRequest,
503
- output: ListAccessKeysResponse,
504
- errors: [Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
505
- protocol: StackitProtocol,
506
- retry: Retry.Retry,
507
- }));
508
- /** Get Buckets Get the list of all buckets in the given project */
509
- export const listBuckets = /*@__PURE__*/ API.make(() => ({
510
- input: ListBucketsRequest,
511
- output: ListBucketsResponse,
512
- errors: [Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
513
- protocol: StackitProtocol,
514
- retry: Retry.Retry,
515
- }));
516
- /** Get Credentials Groups Get credentials groups inside a project if the project exists */
517
- export const listCredentialsGroups = /*@__PURE__*/ API.make(() => ({
518
- input: ListCredentialsGroupsRequest,
519
- output: ListCredentialsGroupsResponse,
520
- errors: [NotFound, UnprocessableEntity, UnknownStackitError],
521
- protocol: StackitProtocol,
522
- retry: Retry.Retry,
523
- }));
524
- /** Update Default Retention Set or update the default retention for a bucket. */
525
- export const setDefaultRetention = /*@__PURE__*/ API.make(() => ({
526
- input: SetDefaultRetentionRequest,
527
- output: DefaultRetentionResponse,
528
- errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
529
- protocol: StackitProtocol,
530
- retry: Retry.Retry,
531
- }));
532
- /** Update Project Update project details. */
533
- export const updateService = /*@__PURE__*/ API.make(() => ({
534
- input: UpdateServiceRequest,
535
- output: ProjectStatus,
536
- errors: [Forbidden, NotFound, UnprocessableEntity, UnknownStackitError],
537
- protocol: StackitProtocol,
538
- retry: Retry.Retry,
539
- }));
540
- //# sourceMappingURL=object_storage.js.map
41
+
42
+ export const createAccessKey = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$8(>3)@"CreateAccessKeyRequest";$8(>4)@"CreateAccessKeyResponse";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),credentials_group:$5($3.pipe($4("credentials-group"))),expires:$5($6($3))}).pipe($1({method:"POST",uri:"/v2/project/{projectId}/regions/{region}/access-key",code:200,baseUrl:"https://object-storage.api.stackit.cloud"}));$7({accessKey:$3,displayName:$3,expires:$6($3),keyId:$3,project:$3,secretAccessKey:$3.pipe($9({}))})', [__0, __1, __2, __3, __10, __7, __11, __4, __5, __13, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createAccessKey, i));
43
+
44
+ export const createBucket = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$8(>2)@"CreateBucketRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),bucketName:$3.pipe($2()),objectLockEnabled:$6($5.pipe($4()))}).pipe($1({method:"POST",uri:"/v2/project/{projectId}/regions/{region}/bucket/{bucketName}",code:200,baseUrl:"https://object-storage.api.stackit.cloud"}))', [__0, __1, __2, __3, __10, __8, __7, __4, __5, __d3, NotFound, Conflict, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createBucket, i));
45
+
46
+ export const createComplianceLock = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#1:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$6(>2)@"CreateComplianceLockRequest";$5({projectId:$4.pipe($3()),region:$4.pipe($3())}).pipe($2({method:"POST",uri:~1:1,code:200,baseUrl:"https://object-storage.api.stackit.cloud"}))', [__0, __d4, __1, __2, __3, __4, __5, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createComplianceLock, i));
47
+
48
+ export const createCredentialsGroup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8,$9,$10,$11],protocol:$12,retry:$13};$5(>3)@"CreateCredentialsGroupRequest";$5(>4)@"CreateCredentialsGroupResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),displayName:$3}).pipe($1({method:"POST",uri:"/v2/project/{projectId}/regions/{region}/credentials-group",code:200,baseUrl:"https://object-storage.api.stackit.cloud"}));$4({credentialsGroup:#6:0,project:$3})', [__0, __1, __2, __3, __4, __5, __d5, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createCredentialsGroup, i));
49
+
50
+ export const deleteAccessKey = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$7(>3)@"DeleteAccessKeyRequest";$7(>4)@"DeleteAccessKeyResponse";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),keyId:$3.pipe($2()),credentials_group:$5($3.pipe($4("credentials-group")))}).pipe($1({method:"DELETE",uri:"/v2/project/{projectId}/regions/{region}/access-key/{keyId}",code:200,baseUrl:"https://object-storage.api.stackit.cloud"}));$6({keyId:$3,project:$3})', [__0, __1, __2, __3, __10, __7, __4, __5, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteAccessKey, i));
51
+
52
+ export const deleteBucket = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteBucketRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),bucketName:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/project/{projectId}/regions/{region}/bucket/{bucketName}",code:200,baseUrl:"https://object-storage.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d3, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteBucket, i));
53
+
54
+ export const deleteComplianceLock = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#1:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$6(>2)@"DeleteComplianceLockRequest";$5({projectId:$4.pipe($3()),region:$4.pipe($3())}).pipe($2({method:"DELETE",uri:~1:1,code:200,baseUrl:"https://object-storage.api.stackit.cloud"}))', [__0, __d4, __1, __2, __3, __4, __5, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteComplianceLock, i));
55
+
56
+ export const deleteCredentialsGroup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$6,$7,$8],protocol:$9,retry:$10};$5(>3)@"DeleteCredentialsGroupRequest";$5(>4)@"DeleteCredentialsGroupResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),groupId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/project/{projectId}/regions/{region}/credentials-group/{groupId}",code:200,baseUrl:"https://object-storage.api.stackit.cloud"}));$4({credentialsGroupId:$3,project:$3})', [__0, __1, __2, __3, __4, __5, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteCredentialsGroup, i));
57
+
58
+ export const deleteDefaultRetention = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteDefaultRetentionRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),bucketName:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/project/{projectId}/regions/{region}/bucket/{bucketName}/default-retention",code:200,baseUrl:"https://object-storage.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d3, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteDefaultRetention, i));
59
+
60
+ export const disableService = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#1:1,errors:[$7,$8,$9,$10,$11,$12],protocol:$13,retry:$14};$6(>2)@"DisableServiceRequest";$5({projectId:$4.pipe($3()),region:$4.pipe($3())}).pipe($2({method:"DELETE",uri:~1:2,code:200,baseUrl:"https://object-storage.api.stackit.cloud"}))', [__0, __d0, __1, __2, __3, __4, __5, BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(disableService, i));
61
+
62
+ export const enableService = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#1:1,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"EnableServiceRequest";$5({projectId:$4.pipe($3()),region:$4.pipe($3())}).pipe($2({method:"POST",uri:~1:2,code:200,baseUrl:"https://object-storage.api.stackit.cloud"}))', [__0, __d0, __1, __2, __3, __4, __5, Forbidden, Conflict, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(enableService, i));
63
+
64
+ export const getBucket = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>3)@"GetBucketRequest";$5(>4)@"GetBucketResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),bucketName:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/project/{projectId}/regions/{region}/bucket/{bucketName}",code:200,baseUrl:"https://object-storage.api.stackit.cloud"}));$4({bucket:#6:0,project:$3})', [__0, __1, __2, __3, __4, __5, __d1, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getBucket, i));
65
+
66
+ export const getComplianceLock = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#1:0,errors:[$7,$8],protocol:$9,retry:$10};$6(>2)@"GetComplianceLockRequest";$5({projectId:$4.pipe($3()),region:$4.pipe($3())}).pipe($2({method:"GET",uri:~1:1,code:200,baseUrl:"https://object-storage.api.stackit.cloud"}))', [__0, __d4, __1, __2, __3, __4, __5, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getComplianceLock, i));
67
+
68
+ export const getCredentialsGroup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$6,$7,$8],protocol:$9,retry:$10};$5(>4)@"GetCredentialsGroupRequest";$5(>5)@"CredentialsGroupExtended";$5(>6)@"GetCredentialsGroupResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),groupId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/project/{projectId}/regions/{region}/credentials-group/{groupId}",code:200,baseUrl:"https://object-storage.api.stackit.cloud"}));$4({credentialsGroupId:$3,displayName:$3,urn:$3,userUrn:$3});$4({credentialsGroup:#2,project:$3})', [__0, __1, __2, __3, __4, __5, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getCredentialsGroup, i));
69
+
70
+ export const getDefaultRetention = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetDefaultRetentionRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),bucketName:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/project/{projectId}/regions/{region}/bucket/{bucketName}/default-retention",code:200,baseUrl:"https://object-storage.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d2, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getDefaultRetention, i));
71
+
72
+ export const getServiceStatus = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#1:1,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"GetServiceStatusRequest";$5({projectId:$4.pipe($3()),region:$4.pipe($3())}).pipe($2({method:"GET",uri:~1:2,code:200,baseUrl:"https://object-storage.api.stackit.cloud"}))', [__0, __d0, __1, __2, __3, __4, __5, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getServiceStatus, i));
73
+
74
+ export const listAccessKeys = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("AccessKey", '{input:#1,output:#4,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$7(>5)@"List%sRequest";$7(>6)@"%";$9(#2);$7(>7)@"List%sResponse";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),credentials_group:$5($3.pipe($4("credentials-group")))}).pipe($1({method:"GET",uri:"/v2/project/{projectId}/regions/{region}/access-keys",code:200,baseUrl:"https://object-storage.api.stackit.cloud"}));$6({displayName:$3,expires:$8($3),keyId:$3});$6({accessKeys:#3,project:$3})', [__0, __1, __2, __3, __10, __7, __4, __5, __11, __12, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(listAccessKeys, i));
75
+
76
+ export const listBuckets = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListBucketsRequest";$7(#6:0);$5(>5)@"ListBucketsResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/project/{projectId}/regions/{region}/buckets",code:200,baseUrl:"https://object-storage.api.stackit.cloud"}));$4({buckets:#2,project:$3})', [__0, __1, __2, __3, __4, __5, __d1, __12, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listBuckets, i));
77
+
78
+ export const listCredentialsGroups = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>4)@"ListCredentialsGroupsRequest";$7(#6:0);$5(>5)@"ListCredentialsGroupsResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/project/{projectId}/regions/{region}/credentials-groups",code:200,baseUrl:"https://object-storage.api.stackit.cloud"}));$4({credentialsGroups:#2,project:$3})', [__0, __1, __2, __3, __4, __5, __d5, __12, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listCredentialsGroups, i));
79
+
80
+ export const setDefaultRetention = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$6(>2)@"SetDefaultRetentionRequest";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),bucketName:$3.pipe($2()),days:$4,mode:$3}).pipe($1({method:"PUT",uri:"/v2/project/{projectId}/regions/{region}/bucket/{bucketName}/default-retention",code:200,baseUrl:"https://object-storage.api.stackit.cloud"}))', [__0, __1, __2, __3, __9, __4, __5, __d2, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(setDefaultRetention, i));
81
+
82
+ export const updateService = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#1:1,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"UpdateServiceRequest";$5({projectId:$4.pipe($3()),region:$4.pipe($3()),labels:#1:0}).pipe($2({method:"PUT",uri:~1:2,code:200,baseUrl:"https://object-storage.api.stackit.cloud"}))', [__0, __d0, __1, __2, __3, __4, __5, Forbidden, NotFound, UnprocessableEntity, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateService, i));
83
+ // Schema builders: each runs one schema initializer, on that schema's first use.
84
+ // Schema table: entry i is schema j of builder f, made on first reach.
85
+
86
+
87
+ // Shared schema data (see `op` in core/api).
88
+ function __d0() {
89
+ return ['$2($1,$1);$5(>3)@"ProjectStatus";"/v2/project/{projectId}/regions/{region}";$4({labels:$3(#0),project:$1,scope:$1})', [__0, __3, __6, __7, __4, __5]];
90
+ }
91
+ function __d1() {
92
+ return ['$4(>1)@"Bucket";$3({name:$1,objectLockEnabled:$2,region:$1,urlPathStyle:$1,urlVirtualHostedStyle:$1})', [__0, __3, __8, __4, __5]];
93
+ }
94
+ function __d2() {
95
+ return ['$4(>1)@"DefaultRetentionResponse";$3({bucket:$1,days:$2,mode:$1,project:$1})', [__0, __3, __9, __4, __5]];
96
+ }
97
+ function __d3() {
98
+ return ['$3(>1)@"CreateBucketResponse";$2({bucket:$1,project:$1})', [__0, __3, __4, __5]];
99
+ }
100
+ function __d4() {
101
+ return ['$4(>2)@"ComplianceLockResponse";"/v2/project/{projectId}/regions/{region}/compliance-lock";$3({maxRetentionDays:$1,project:$2})', [__0, __9, __3, __4, __5]];
102
+ }
103
+ function __d5() {
104
+ return ['$3(>1)@"CredentialsGroup";$2({credentialsGroupId:$1,displayName:$1,urn:$1})', [__0, __3, __4, __5]];
105
+ }