@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,12 +1,15 @@
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
+ import type * as Redacted from "effect/Redacted";
6
7
  import { UnknownStackitError } from "../errors.ts";
7
8
  import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
8
9
  import * as Retry from "../retry.ts";
9
10
  import * as T from "../traits.ts";
11
+ // Schema table, filled on first reach (see __S at the end).
12
+ const __s: any[] = [];
10
13
 
11
14
  export type { StackitOpError, StackitOpContext };
12
15
 
@@ -54,23 +57,9 @@ export interface CreateFederatedIdentityProviderRequestAssertionsItem {
54
57
  /** Value which the item is compared to */
55
58
  value?: string;
56
59
  }
57
- export const CreateFederatedIdentityProviderRequestAssertionsItem = /*@__PURE__*/ S.suspend(() =>
58
- S.Struct({
59
- item: S.optional(S.String),
60
- operator: S.optional(S.String),
61
- value: S.optional(S.String),
62
- }),
63
- ).annotate({
64
- identifier: "CreateFederatedIdentityProviderRequestAssertionsItem",
65
- }) as any as S.Schema<CreateFederatedIdentityProviderRequestAssertionsItem>;
66
-
67
60
  /** list of assertions of the federated identity provider */
68
61
  export type CreateFederatedIdentityProviderRequestAssertionsList =
69
62
  Array<CreateFederatedIdentityProviderRequestAssertionsItem>;
70
- export const CreateFederatedIdentityProviderRequestAssertionsList = /*@__PURE__*/ S.Array(
71
- CreateFederatedIdentityProviderRequestAssertionsItem,
72
- ) as any as S.Schema<CreateFederatedIdentityProviderRequestAssertionsList>;
73
-
74
63
  export interface CreateFederatedIdentityProviderRequest {
75
64
  /** The ID of the project. */
76
65
  projectId: string;
@@ -83,25 +72,6 @@ export interface CreateFederatedIdentityProviderRequest {
83
72
  /** Unique name used as identifier of the federated identity provider. */
84
73
  name: string;
85
74
  }
86
- export const CreateFederatedIdentityProviderRequest = /*@__PURE__*/ S.suspend(() =>
87
- S.Struct({
88
- projectId: S.String.pipe(T.Label()),
89
- serviceAccountEmail: S.String.pipe(T.Label()),
90
- assertions: S.optional(CreateFederatedIdentityProviderRequestAssertionsList),
91
- issuer: S.String,
92
- name: S.String,
93
- }).pipe(
94
- T.Http({
95
- method: "POST",
96
- uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations",
97
- code: 200,
98
- baseUrl: "https://service-account.api.stackit.cloud",
99
- }),
100
- ),
101
- ).annotate({
102
- identifier: "CreateFederatedIdentityProviderRequest",
103
- }) as any as S.Schema<CreateFederatedIdentityProviderRequest>;
104
-
105
75
  export interface FederatedIdentityProviderAssertionsItem {
106
76
  /** Item to compare */
107
77
  item: string;
@@ -110,23 +80,9 @@ export interface FederatedIdentityProviderAssertionsItem {
110
80
  /** Value which the item is compared to */
111
81
  value: string;
112
82
  }
113
- export const FederatedIdentityProviderAssertionsItem = /*@__PURE__*/ S.suspend(() =>
114
- S.Struct({
115
- item: S.String,
116
- operator: S.String,
117
- value: S.String,
118
- }),
119
- ).annotate({
120
- identifier: "FederatedIdentityProviderAssertionsItem",
121
- }) as any as S.Schema<FederatedIdentityProviderAssertionsItem>;
122
-
123
83
  /** list of assertions of the federated identity provider */
124
84
  export type FederatedIdentityProviderAssertionsList =
125
85
  Array<FederatedIdentityProviderAssertionsItem>;
126
- export const FederatedIdentityProviderAssertionsList = /*@__PURE__*/ S.Array(
127
- FederatedIdentityProviderAssertionsItem,
128
- ) as any as S.Schema<FederatedIdentityProviderAssertionsList>;
129
-
130
86
  export interface FederatedIdentityProvider {
131
87
  /** list of assertions of the federated identity provider */
132
88
  assertions: FederatedIdentityProviderAssertionsList;
@@ -141,41 +97,12 @@ export interface FederatedIdentityProvider {
141
97
  /** Last update time of the federated identity provider. */
142
98
  updatedAt: string;
143
99
  }
144
- export const FederatedIdentityProvider = /*@__PURE__*/ S.suspend(() =>
145
- S.Struct({
146
- assertions: FederatedIdentityProviderAssertionsList,
147
- createdAt: S.String,
148
- id: S.optional(S.String),
149
- issuer: S.String,
150
- name: S.String,
151
- updatedAt: S.String,
152
- }),
153
- ).annotate({
154
- identifier: "FederatedIdentityProvider",
155
- }) as any as S.Schema<FederatedIdentityProvider>;
156
-
157
100
  export interface CreateServiceAccountRequest {
158
101
  /** The ID of the project. */
159
102
  projectId: string;
160
103
  /** The requested name of the service account. The service will generate a unique email from this name. */
161
104
  name: string;
162
105
  }
163
- export const CreateServiceAccountRequest = /*@__PURE__*/ S.suspend(() =>
164
- S.Struct({
165
- projectId: S.String.pipe(T.Label()),
166
- name: S.String,
167
- }).pipe(
168
- T.Http({
169
- method: "POST",
170
- uri: "/v2/projects/{projectId}/service-accounts",
171
- code: 200,
172
- baseUrl: "https://service-account.api.stackit.cloud",
173
- }),
174
- ),
175
- ).annotate({
176
- identifier: "CreateServiceAccountRequest",
177
- }) as any as S.Schema<CreateServiceAccountRequest>;
178
-
179
106
  export interface ServiceAccount2 {
180
107
  /** Unique identifier of the service account in format of an email address generated by the service containing the prefix provided by the user during creation. */
181
108
  email: string;
@@ -186,19 +113,8 @@ export interface ServiceAccount2 {
186
113
  /** ID of the related project */
187
114
  projectId: string;
188
115
  }
189
- export const ServiceAccount2 = /*@__PURE__*/ S.suspend(() =>
190
- S.Struct({
191
- email: S.String,
192
- id: S.String,
193
- internal: S.Boolean,
194
- projectId: S.String,
195
- }),
196
- ).annotate({ identifier: "ServiceAccount2" }) as any as S.Schema<ServiceAccount2>;
197
-
198
116
  /** Optional, key algorithm of the generated key-pair. Used only if publicKey attribute is not specified, otherwise the algorithm is derived from the public key. */
199
117
  export type CreateServiceAccountKeyRequestAlgorithm = "RSA_2048" | "RSA_4096";
200
- export const CreateServiceAccountKeyRequestAlgorithm = S.String;
201
-
202
118
  export interface CreateServiceAccountKeyRequest {
203
119
  /** The ID of the project. */
204
120
  projectId: string;
@@ -211,25 +127,6 @@ export interface CreateServiceAccountKeyRequest {
211
127
  /** Optional, date of key expiration. When omitted, key is valid until deleted */
212
128
  validUntil?: string;
213
129
  }
214
- export const CreateServiceAccountKeyRequest = /*@__PURE__*/ S.suspend(() =>
215
- S.Struct({
216
- projectId: S.String.pipe(T.Label()),
217
- serviceAccountEmail: S.String.pipe(T.Label()),
218
- algorithm: S.optional(CreateServiceAccountKeyRequestAlgorithm),
219
- publicKey: S.optional(S.String),
220
- validUntil: S.optional(S.String),
221
- }).pipe(
222
- T.Http({
223
- method: "POST",
224
- uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys",
225
- code: 200,
226
- baseUrl: "https://service-account.api.stackit.cloud",
227
- }),
228
- ),
229
- ).annotate({
230
- identifier: "CreateServiceAccountKeyRequest",
231
- }) as any as S.Schema<CreateServiceAccountKeyRequest>;
232
-
233
130
  export interface CreateServiceAccountKeyResponseCredentials {
234
131
  /** Audience - service account API URL */
235
132
  aud: string;
@@ -244,28 +141,9 @@ export interface CreateServiceAccountKeyResponseCredentials {
244
141
  /** Endpoint used to obtain access tokens for the service account. */
245
142
  tokenEndpoint?: string;
246
143
  }
247
- export const CreateServiceAccountKeyResponseCredentials = /*@__PURE__*/ S.suspend(() =>
248
- S.Struct({
249
- aud: S.String,
250
- iss: S.String,
251
- kid: S.String,
252
- privateKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
253
- sub: S.String,
254
- tokenEndpoint: S.optional(S.String),
255
- }),
256
- ).annotate({
257
- identifier: "CreateServiceAccountKeyResponseCredentials",
258
- }) as any as S.Schema<CreateServiceAccountKeyResponseCredentials>;
259
-
260
144
  export type CreateServiceAccountKeyResponseKeyAlgorithm = "RSA_2048" | "RSA_4096";
261
- export const CreateServiceAccountKeyResponseKeyAlgorithm = S.String;
262
-
263
145
  export type CreateServiceAccountKeyResponseKeyOrigin = "USER_PROVIDED" | "GENERATED";
264
- export const CreateServiceAccountKeyResponseKeyOrigin = S.String;
265
-
266
146
  export type CreateServiceAccountKeyResponseKeyType = "USER_MANAGED" | "SYSTEM_MANAGED";
267
- export const CreateServiceAccountKeyResponseKeyType = S.String;
268
-
269
147
  export interface CreateServiceAccountKeyResponse {
270
148
  active: boolean;
271
149
  /** Creation time of the key */
@@ -281,28 +159,10 @@ export interface CreateServiceAccountKeyResponse {
281
159
  /** If specified, the timestamp until the key is active. May be null */
282
160
  validUntil?: string;
283
161
  }
284
- export const CreateServiceAccountKeyResponse = /*@__PURE__*/ S.suspend(() =>
285
- S.Struct({
286
- active: S.Boolean,
287
- createdAt: S.String,
288
- credentials: CreateServiceAccountKeyResponseCredentials,
289
- id: S.String,
290
- keyAlgorithm: CreateServiceAccountKeyResponseKeyAlgorithm,
291
- keyOrigin: CreateServiceAccountKeyResponseKeyOrigin,
292
- keyType: CreateServiceAccountKeyResponseKeyType,
293
- publicKey: S.String,
294
- validUntil: S.optional(S.String),
295
- }),
296
- ).annotate({
297
- identifier: "CreateServiceAccountKeyResponse",
298
- }) as any as S.Schema<CreateServiceAccountKeyResponse>;
299
-
300
162
  /** Always use URL encoded values. E.g. urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer */
301
163
  export type CreateShortLivedAccessTokenRequestGrantType =
302
164
  | "urn:ietf:params:oauth:grant-type:jwt-bearer"
303
165
  | "refresh_token";
304
- export const CreateShortLivedAccessTokenRequestGrantType = S.String;
305
-
306
166
  export interface CreateShortLivedAccessTokenRequest {
307
167
  /** The self signed JWT. Must be given when grant_type is urn:ietf:params:oauth:grant-type:jwt-bearer */
308
168
  assertion?: string;
@@ -311,26 +171,7 @@ export interface CreateShortLivedAccessTokenRequest {
311
171
  /** Refresh token provided by a previous call with a self signed token. Must be given when grant_type is refresh_token */
312
172
  refresh_token?: string | Redacted.Redacted<string>;
313
173
  }
314
- export const CreateShortLivedAccessTokenRequest = /*@__PURE__*/ S.suspend(() =>
315
- S.Struct({
316
- assertion: S.optional(S.String),
317
- grant_type: CreateShortLivedAccessTokenRequestGrantType,
318
- refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
319
- }).pipe(
320
- T.Http({
321
- method: "POST",
322
- uri: "/token",
323
- code: 200,
324
- baseUrl: "https://service-account.api.stackit.cloud",
325
- }),
326
- ),
327
- ).annotate({
328
- identifier: "CreateShortLivedAccessTokenRequest",
329
- }) as any as S.Schema<CreateShortLivedAccessTokenRequest>;
330
-
331
174
  export type CreateShortLivedAccessTokenResponseTokenType = "Bearer";
332
- export const CreateShortLivedAccessTokenResponseTokenType = S.String;
333
-
334
175
  export interface CreateShortLivedAccessTokenResponse {
335
176
  /** The short lived token that can be used for API access */
336
177
  access_token: string | Redacted.Redacted<string>;
@@ -341,45 +182,13 @@ export interface CreateShortLivedAccessTokenResponse {
341
182
  scope: string;
342
183
  token_type: CreateShortLivedAccessTokenResponseTokenType;
343
184
  }
344
- export const CreateShortLivedAccessTokenResponse = /*@__PURE__*/ S.suspend(() =>
345
- S.Struct({
346
- access_token: S.String.pipe(T.SensitiveValue({})),
347
- expires_in: S.Number,
348
- refresh_token: S.String.pipe(T.SensitiveValue({})),
349
- scope: S.String,
350
- token_type: CreateShortLivedAccessTokenResponseTokenType,
351
- }),
352
- ).annotate({
353
- identifier: "CreateShortLivedAccessTokenResponse",
354
- }) as any as S.Schema<CreateShortLivedAccessTokenResponse>;
355
-
356
185
  export interface DeleteServiceAccountRequest {
357
186
  /** The ID of the project. */
358
187
  projectId: string;
359
188
  /** The email of the Service Account. */
360
189
  serviceAccountEmail: string;
361
190
  }
362
- export const DeleteServiceAccountRequest = /*@__PURE__*/ S.suspend(() =>
363
- S.Struct({
364
- projectId: S.String.pipe(T.Label()),
365
- serviceAccountEmail: S.String.pipe(T.Label()),
366
- }).pipe(
367
- T.Http({
368
- method: "DELETE",
369
- uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}",
370
- code: 200,
371
- baseUrl: "https://service-account.api.stackit.cloud",
372
- }),
373
- ),
374
- ).annotate({
375
- identifier: "DeleteServiceAccountRequest",
376
- }) as any as S.Schema<DeleteServiceAccountRequest>;
377
-
378
191
  export interface DeleteServiceAccountResponse {}
379
- export const DeleteServiceAccountResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
380
- identifier: "DeleteServiceAccountResponse",
381
- }) as any as S.Schema<DeleteServiceAccountResponse>;
382
-
383
192
  export interface DeleteServiceAccountKeyRequest {
384
193
  /** The ID of the project. */
385
194
  projectId: string;
@@ -388,28 +197,7 @@ export interface DeleteServiceAccountKeyRequest {
388
197
  /** ID of the key. */
389
198
  keyId: string;
390
199
  }
391
- export const DeleteServiceAccountKeyRequest = /*@__PURE__*/ S.suspend(() =>
392
- S.Struct({
393
- projectId: S.String.pipe(T.Label()),
394
- serviceAccountEmail: S.String.pipe(T.Label()),
395
- keyId: S.String.pipe(T.Label()),
396
- }).pipe(
397
- T.Http({
398
- method: "DELETE",
399
- uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys/{keyId}",
400
- code: 200,
401
- baseUrl: "https://service-account.api.stackit.cloud",
402
- }),
403
- ),
404
- ).annotate({
405
- identifier: "DeleteServiceAccountKeyRequest",
406
- }) as any as S.Schema<DeleteServiceAccountKeyRequest>;
407
-
408
200
  export interface DeleteServiceAccountKeyResponse {}
409
- export const DeleteServiceAccountKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate(
410
- { identifier: "DeleteServiceAccountKeyResponse" },
411
- ) as any as S.Schema<DeleteServiceAccountKeyResponse>;
412
-
413
201
  export interface DeleteServiceFederatedIdentityProviderRequest {
414
202
  /** The ID of the project. */
415
203
  projectId: string;
@@ -418,30 +206,7 @@ export interface DeleteServiceFederatedIdentityProviderRequest {
418
206
  /** ID of the Federated Identity Provider. */
419
207
  federationId: string;
420
208
  }
421
- export const DeleteServiceFederatedIdentityProviderRequest = /*@__PURE__*/ S.suspend(() =>
422
- S.Struct({
423
- projectId: S.String.pipe(T.Label()),
424
- serviceAccountEmail: S.String.pipe(T.Label()),
425
- federationId: S.String.pipe(T.Label()),
426
- }).pipe(
427
- T.Http({
428
- method: "DELETE",
429
- uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations/{federationId}",
430
- code: 200,
431
- baseUrl: "https://service-account.api.stackit.cloud",
432
- }),
433
- ),
434
- ).annotate({
435
- identifier: "DeleteServiceFederatedIdentityProviderRequest",
436
- }) as any as S.Schema<DeleteServiceFederatedIdentityProviderRequest>;
437
-
438
209
  export interface DeleteServiceFederatedIdentityProviderResponse {}
439
- export const DeleteServiceFederatedIdentityProviderResponse = /*@__PURE__*/ S.suspend(() =>
440
- S.Struct({}),
441
- ).annotate({
442
- identifier: "DeleteServiceFederatedIdentityProviderResponse",
443
- }) as any as S.Schema<DeleteServiceFederatedIdentityProviderResponse>;
444
-
445
210
  export interface GetFederatedIdentityProviderRequest {
446
211
  /** The ID of the project. */
447
212
  projectId: string;
@@ -450,40 +215,10 @@ export interface GetFederatedIdentityProviderRequest {
450
215
  /** ID of the Federated Identity Provider. */
451
216
  federationId: string;
452
217
  }
453
- export const GetFederatedIdentityProviderRequest = /*@__PURE__*/ S.suspend(() =>
454
- S.Struct({
455
- projectId: S.String.pipe(T.Label()),
456
- serviceAccountEmail: S.String.pipe(T.Label()),
457
- federationId: S.String.pipe(T.Label()),
458
- }).pipe(
459
- T.Http({
460
- method: "GET",
461
- uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations/{federationId}",
462
- code: 200,
463
- baseUrl: "https://service-account.api.stackit.cloud",
464
- }),
465
- ),
466
- ).annotate({
467
- identifier: "GetFederatedIdentityProviderRequest",
468
- }) as any as S.Schema<GetFederatedIdentityProviderRequest>;
469
-
470
218
  export interface GetJWKSRequest {
471
219
  /** The email of the service account. */
472
220
  serviceAccountEmail: string;
473
221
  }
474
- export const GetJWKSRequest = /*@__PURE__*/ S.suspend(() =>
475
- S.Struct({
476
- serviceAccountEmail: S.String.pipe(T.Label()),
477
- }).pipe(
478
- T.Http({
479
- method: "GET",
480
- uri: "/v2/service-accounts/public/jwk/{serviceAccountEmail}",
481
- code: 200,
482
- baseUrl: "https://service-account.api.stackit.cloud",
483
- }),
484
- ),
485
- ).annotate({ identifier: "GetJWKSRequest" }) as any as S.Schema<GetJWKSRequest>;
486
-
487
222
  /** JSON Web Key according to https://datatracker.ietf.org/doc/html/rfc7517#section-4 */
488
223
  export interface JWK {
489
224
  alg?: string;
@@ -498,37 +233,11 @@ export interface JWK {
498
233
  x5t256?: string;
499
234
  x5u?: string;
500
235
  }
501
- export const JWK = /*@__PURE__*/ S.suspend(() =>
502
- S.Struct({
503
- alg: S.optional(S.String),
504
- e: S.String,
505
- kid: S.optional(S.String),
506
- ks: S.optional(S.String),
507
- n: S.String,
508
- ops: S.optional(S.String),
509
- use: S.optional(S.String),
510
- x5c: S.optional(S.String),
511
- x5t: S.optional(S.String),
512
- x5t256: S.optional(S.String),
513
- x5u: S.optional(S.String),
514
- }),
515
- ).annotate({ identifier: "JWK" }) as any as S.Schema<JWK>;
516
-
517
236
  export type JWKSKeysList = Array<JWK>;
518
- export const JWKSKeysList = /*@__PURE__*/ S.Array(JWK) as any as S.Schema<JWKSKeysList>;
519
-
520
237
  export interface JWKS {
521
238
  keys: JWKSKeysList;
522
239
  }
523
- export const JWKS = /*@__PURE__*/ S.suspend(() =>
524
- S.Struct({
525
- keys: JWKSKeysList,
526
- }),
527
- ).annotate({ identifier: "JWKS" }) as any as S.Schema<JWKS>;
528
-
529
240
  export type GetServiceAccountKeyRequestFormat = "X509_PEM";
530
- export const GetServiceAccountKeyRequestFormat = S.String;
531
-
532
241
  export interface GetServiceAccountKeyRequest {
533
242
  /** The ID of the project. */
534
243
  projectId: string;
@@ -539,24 +248,6 @@ export interface GetServiceAccountKeyRequest {
539
248
  /** Requested format for the public key */
540
249
  format?: GetServiceAccountKeyRequestFormat | (string & {});
541
250
  }
542
- export const GetServiceAccountKeyRequest = /*@__PURE__*/ S.suspend(() =>
543
- S.Struct({
544
- projectId: S.String.pipe(T.Label()),
545
- serviceAccountEmail: S.String.pipe(T.Label()),
546
- keyId: S.String.pipe(T.Label()),
547
- format: S.optional(GetServiceAccountKeyRequestFormat.pipe(T.Query())),
548
- }).pipe(
549
- T.Http({
550
- method: "GET",
551
- uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys/{keyId}",
552
- code: 200,
553
- baseUrl: "https://service-account.api.stackit.cloud",
554
- }),
555
- ),
556
- ).annotate({
557
- identifier: "GetServiceAccountKeyRequest",
558
- }) as any as S.Schema<GetServiceAccountKeyRequest>;
559
-
560
251
  export interface GetServiceAccountKeyResponseCredentials {
561
252
  /** Audience - service account API URL */
562
253
  aud: string;
@@ -567,26 +258,9 @@ export interface GetServiceAccountKeyResponseCredentials {
567
258
  /** Service account id */
568
259
  sub: string;
569
260
  }
570
- export const GetServiceAccountKeyResponseCredentials = /*@__PURE__*/ S.suspend(() =>
571
- S.Struct({
572
- aud: S.String,
573
- iss: S.String,
574
- kid: S.String,
575
- sub: S.String,
576
- }),
577
- ).annotate({
578
- identifier: "GetServiceAccountKeyResponseCredentials",
579
- }) as any as S.Schema<GetServiceAccountKeyResponseCredentials>;
580
-
581
261
  export type GetServiceAccountKeyResponseKeyAlgorithm = "RSA_2048" | "RSA_4096";
582
- export const GetServiceAccountKeyResponseKeyAlgorithm = S.String;
583
-
584
262
  export type GetServiceAccountKeyResponseKeyOrigin = "USER_PROVIDED" | "GENERATED";
585
- export const GetServiceAccountKeyResponseKeyOrigin = S.String;
586
-
587
263
  export type GetServiceAccountKeyResponseKeyType = "USER_MANAGED" | "SYSTEM_MANAGED";
588
- export const GetServiceAccountKeyResponseKeyType = S.String;
589
-
590
264
  export interface GetServiceAccountKeyResponse {
591
265
  active: boolean;
592
266
  /** Creation time of the key */
@@ -602,98 +276,29 @@ export interface GetServiceAccountKeyResponse {
602
276
  /** If specified, the timestamp until the key is active. May be null */
603
277
  validUntil?: string;
604
278
  }
605
- export const GetServiceAccountKeyResponse = /*@__PURE__*/ S.suspend(() =>
606
- S.Struct({
607
- active: S.Boolean,
608
- createdAt: S.String,
609
- credentials: GetServiceAccountKeyResponseCredentials,
610
- id: S.String,
611
- keyAlgorithm: GetServiceAccountKeyResponseKeyAlgorithm,
612
- keyOrigin: GetServiceAccountKeyResponseKeyOrigin,
613
- keyType: GetServiceAccountKeyResponseKeyType,
614
- publicKey: S.optional(S.String),
615
- validUntil: S.optional(S.String),
616
- }),
617
- ).annotate({
618
- identifier: "GetServiceAccountKeyResponse",
619
- }) as any as S.Schema<GetServiceAccountKeyResponse>;
620
-
621
279
  export interface ListFederatedIdentityProvidersRequest {
622
280
  /** The ID of the project. */
623
281
  projectId: string;
624
282
  /** The email of the service account. */
625
283
  serviceAccountEmail: string;
626
284
  }
627
- export const ListFederatedIdentityProvidersRequest = /*@__PURE__*/ S.suspend(() =>
628
- S.Struct({
629
- projectId: S.String.pipe(T.Label()),
630
- serviceAccountEmail: S.String.pipe(T.Label()),
631
- }).pipe(
632
- T.Http({
633
- method: "GET",
634
- uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations",
635
- code: 200,
636
- baseUrl: "https://service-account.api.stackit.cloud",
637
- }),
638
- ),
639
- ).annotate({
640
- identifier: "ListFederatedIdentityProvidersRequest",
641
- }) as any as S.Schema<ListFederatedIdentityProvidersRequest>;
642
-
643
285
  export type FederatedListFederatedIdentityProvidersResponseResourcesList =
644
286
  Array<FederatedIdentityProvider>;
645
- export const FederatedListFederatedIdentityProvidersResponseResourcesList = /*@__PURE__*/ S.Array(
646
- FederatedIdentityProvider,
647
- ) as any as S.Schema<FederatedListFederatedIdentityProvidersResponseResourcesList>;
648
-
649
287
  export interface FederatedListFederatedIdentityProvidersResponse {
650
288
  itemsPerPage: number;
651
289
  resources: FederatedListFederatedIdentityProvidersResponseResourcesList;
652
290
  startIndex: number;
653
291
  totalResults: number;
654
292
  }
655
- export const FederatedListFederatedIdentityProvidersResponse = /*@__PURE__*/ S.suspend(() =>
656
- S.Struct({
657
- itemsPerPage: S.Number,
658
- resources: FederatedListFederatedIdentityProvidersResponseResourcesList,
659
- startIndex: S.Number,
660
- totalResults: S.Number,
661
- }),
662
- ).annotate({
663
- identifier: "FederatedListFederatedIdentityProvidersResponse",
664
- }) as any as S.Schema<FederatedListFederatedIdentityProvidersResponse>;
665
-
666
293
  export interface ListServiceAccountKeysRequest {
667
294
  /** The ID of the project. */
668
295
  projectId: string;
669
296
  /** The email of the service account. */
670
297
  serviceAccountEmail: string;
671
298
  }
672
- export const ListServiceAccountKeysRequest = /*@__PURE__*/ S.suspend(() =>
673
- S.Struct({
674
- projectId: S.String.pipe(T.Label()),
675
- serviceAccountEmail: S.String.pipe(T.Label()),
676
- }).pipe(
677
- T.Http({
678
- method: "GET",
679
- uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys",
680
- code: 200,
681
- baseUrl: "https://service-account.api.stackit.cloud",
682
- }),
683
- ),
684
- ).annotate({
685
- identifier: "ListServiceAccountKeysRequest",
686
- }) as any as S.Schema<ListServiceAccountKeysRequest>;
687
-
688
299
  export type ServiceAccountKeyListResponseKeyAlgorithm = "RSA_2048" | "RSA_4096";
689
- export const ServiceAccountKeyListResponseKeyAlgorithm = S.String;
690
-
691
300
  export type ServiceAccountKeyListResponseKeyOrigin = "USER_PROVIDED" | "GENERATED";
692
- export const ServiceAccountKeyListResponseKeyOrigin = S.String;
693
-
694
301
  export type ServiceAccountKeyListResponseKeyType = "USER_MANAGED" | "SYSTEM_MANAGED";
695
- export const ServiceAccountKeyListResponseKeyType = S.String;
696
-
697
302
  export interface ServiceAccountKeyListResponse {
698
303
  active: boolean;
699
304
  /** Creation time of the key */
@@ -706,84 +311,23 @@ export interface ServiceAccountKeyListResponse {
706
311
  /** If specified, the timestamp until the key is active. May be null */
707
312
  validUntil?: string;
708
313
  }
709
- export const ServiceAccountKeyListResponse = /*@__PURE__*/ S.suspend(() =>
710
- S.Struct({
711
- active: S.Boolean,
712
- createdAt: S.String,
713
- id: S.String,
714
- keyAlgorithm: ServiceAccountKeyListResponseKeyAlgorithm,
715
- keyOrigin: ServiceAccountKeyListResponseKeyOrigin,
716
- keyType: ServiceAccountKeyListResponseKeyType,
717
- validUntil: S.optional(S.String),
718
- }),
719
- ).annotate({
720
- identifier: "ServiceAccountKeyListResponse",
721
- }) as any as S.Schema<ServiceAccountKeyListResponse>;
722
-
723
314
  export type ListServiceAccountKeysResponseItemsList = Array<ServiceAccountKeyListResponse>;
724
- export const ListServiceAccountKeysResponseItemsList = /*@__PURE__*/ S.Array(
725
- ServiceAccountKeyListResponse,
726
- ) as any as S.Schema<ListServiceAccountKeysResponseItemsList>;
727
-
728
315
  export interface ListServiceAccountKeysResponse {
729
316
  items: ListServiceAccountKeysResponseItemsList;
730
317
  }
731
- export const ListServiceAccountKeysResponse = /*@__PURE__*/ S.suspend(() =>
732
- S.Struct({
733
- items: ListServiceAccountKeysResponseItemsList,
734
- }),
735
- ).annotate({
736
- identifier: "ListServiceAccountKeysResponse",
737
- }) as any as S.Schema<ListServiceAccountKeysResponse>;
738
-
739
318
  export interface ListServiceAccountsRequest {
740
319
  /** The ID of the project. */
741
320
  projectId: string;
742
321
  }
743
- export const ListServiceAccountsRequest = /*@__PURE__*/ S.suspend(() =>
744
- S.Struct({
745
- projectId: S.String.pipe(T.Label()),
746
- }).pipe(
747
- T.Http({
748
- method: "GET",
749
- uri: "/v2/projects/{projectId}/service-accounts",
750
- code: 200,
751
- baseUrl: "https://service-account.api.stackit.cloud",
752
- }),
753
- ),
754
- ).annotate({
755
- identifier: "ListServiceAccountsRequest",
756
- }) as any as S.Schema<ListServiceAccountsRequest>;
757
-
758
322
  export type ListServiceAccountsResponseItemsList = Array<ServiceAccount2>;
759
- export const ListServiceAccountsResponseItemsList = /*@__PURE__*/ S.Array(
760
- ServiceAccount2,
761
- ) as any as S.Schema<ListServiceAccountsResponseItemsList>;
762
-
763
323
  export interface ListServiceAccountsResponse {
764
324
  items: ListServiceAccountsResponseItemsList;
765
325
  }
766
- export const ListServiceAccountsResponse = /*@__PURE__*/ S.suspend(() =>
767
- S.Struct({
768
- items: ListServiceAccountsResponseItemsList,
769
- }),
770
- ).annotate({
771
- identifier: "ListServiceAccountsResponse",
772
- }) as any as S.Schema<ListServiceAccountsResponse>;
773
-
774
326
  export type PartialUpdateServiceAccountFederatedIdentityProviderRequestAssertionsItem =
775
327
  CreateFederatedIdentityProviderRequestAssertionsItem;
776
- export const PartialUpdateServiceAccountFederatedIdentityProviderRequestAssertionsItem =
777
- CreateFederatedIdentityProviderRequestAssertionsItem;
778
-
779
328
  /** list of assertions of the federated identity provider */
780
329
  export type PartialUpdateServiceAccountFederatedIdentityProviderRequestAssertionsList =
781
330
  Array<CreateFederatedIdentityProviderRequestAssertionsItem>;
782
- export const PartialUpdateServiceAccountFederatedIdentityProviderRequestAssertionsList =
783
- /*@__PURE__*/ S.Array(
784
- CreateFederatedIdentityProviderRequestAssertionsItem,
785
- ) as any as S.Schema<PartialUpdateServiceAccountFederatedIdentityProviderRequestAssertionsList>;
786
-
787
331
  export interface PartialUpdateServiceAccountFederatedIdentityProviderRequest {
788
332
  /** The ID of the project. */
789
333
  projectId: string;
@@ -798,29 +342,6 @@ export interface PartialUpdateServiceAccountFederatedIdentityProviderRequest {
798
342
  /** Unique name used as identifier of the federated identity provider. */
799
343
  name: string;
800
344
  }
801
- export const PartialUpdateServiceAccountFederatedIdentityProviderRequest = /*@__PURE__*/ S.suspend(
802
- () =>
803
- S.Struct({
804
- projectId: S.String.pipe(T.Label()),
805
- serviceAccountEmail: S.String.pipe(T.Label()),
806
- federationId: S.String.pipe(T.Label()),
807
- assertions: S.optional(
808
- PartialUpdateServiceAccountFederatedIdentityProviderRequestAssertionsList,
809
- ),
810
- issuer: S.String,
811
- name: S.String,
812
- }).pipe(
813
- T.Http({
814
- method: "PATCH",
815
- uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations/{federationId}",
816
- code: 200,
817
- baseUrl: "https://service-account.api.stackit.cloud",
818
- }),
819
- ),
820
- ).annotate({
821
- identifier: "PartialUpdateServiceAccountFederatedIdentityProviderRequest",
822
- }) as any as S.Schema<PartialUpdateServiceAccountFederatedIdentityProviderRequest>;
823
-
824
345
  export interface PartialUpdateServiceAccountKeyRequest {
825
346
  /** The ID of the project. */
826
347
  projectId: string;
@@ -833,34 +354,9 @@ export interface PartialUpdateServiceAccountKeyRequest {
833
354
  /** Optional, date of key expiration. To disable, set time to "9999-01-01T01:01:01Z" */
834
355
  validUntil?: string;
835
356
  }
836
- export const PartialUpdateServiceAccountKeyRequest = /*@__PURE__*/ S.suspend(() =>
837
- S.Struct({
838
- projectId: S.String.pipe(T.Label()),
839
- serviceAccountEmail: S.String.pipe(T.Label()),
840
- keyId: S.String.pipe(T.Label()),
841
- active: S.optional(S.Boolean),
842
- validUntil: S.optional(S.String),
843
- }).pipe(
844
- T.Http({
845
- method: "PATCH",
846
- uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys/{keyId}",
847
- code: 200,
848
- baseUrl: "https://service-account.api.stackit.cloud",
849
- }),
850
- ),
851
- ).annotate({
852
- identifier: "PartialUpdateServiceAccountKeyRequest",
853
- }) as any as S.Schema<PartialUpdateServiceAccountKeyRequest>;
854
-
855
357
  export type PartialUpdateServiceAccountKeyResponseKeyAlgorithm = "RSA_2048" | "RSA_4096";
856
- export const PartialUpdateServiceAccountKeyResponseKeyAlgorithm = S.String;
857
-
858
358
  export type PartialUpdateServiceAccountKeyResponseKeyOrigin = "USER_PROVIDED" | "GENERATED";
859
- export const PartialUpdateServiceAccountKeyResponseKeyOrigin = S.String;
860
-
861
359
  export type PartialUpdateServiceAccountKeyResponseKeyType = "USER_MANAGED" | "SYSTEM_MANAGED";
862
- export const PartialUpdateServiceAccountKeyResponseKeyType = S.String;
863
-
864
360
  export interface PartialUpdateServiceAccountKeyResponse {
865
361
  active: boolean;
866
362
  /** Creation time of the key */
@@ -873,20 +369,6 @@ export interface PartialUpdateServiceAccountKeyResponse {
873
369
  /** If specified, the timestamp until the key is active. May be null */
874
370
  validUntil?: string;
875
371
  }
876
- export const PartialUpdateServiceAccountKeyResponse = /*@__PURE__*/ S.suspend(() =>
877
- S.Struct({
878
- active: S.Boolean,
879
- createdAt: S.String,
880
- id: S.String,
881
- keyAlgorithm: PartialUpdateServiceAccountKeyResponseKeyAlgorithm,
882
- keyOrigin: PartialUpdateServiceAccountKeyResponseKeyOrigin,
883
- keyType: PartialUpdateServiceAccountKeyResponseKeyType,
884
- validUntil: S.optional(S.String),
885
- }),
886
- ).annotate({
887
- identifier: "PartialUpdateServiceAccountKeyResponse",
888
- }) as any as S.Schema<PartialUpdateServiceAccountKeyResponse>;
889
-
890
372
  export type CreateFederatedIdentityProviderError =
891
373
  | BadRequest
892
374
  | Forbidden
@@ -899,8 +381,8 @@ export const createFederatedIdentityProvider: API.OperationMethod<
899
381
  CreateFederatedIdentityProviderError,
900
382
  StackitOpContext
901
383
  > = /*@__PURE__*/ API.make(() => ({
902
- input: CreateFederatedIdentityProviderRequest,
903
- output: FederatedIdentityProvider,
384
+ input: __S(40, __c10, 0) as any as S.Schema<CreateFederatedIdentityProviderRequest>,
385
+ output: __S(46, __c11, 2) as any as S.Schema<FederatedIdentityProvider>,
904
386
  errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
905
387
  protocol: StackitProtocol,
906
388
  retry: Retry.Retry,
@@ -914,8 +396,8 @@ export const createServiceAccount: API.OperationMethod<
914
396
  CreateServiceAccountError,
915
397
  StackitOpContext
916
398
  > = /*@__PURE__*/ API.make(() => ({
917
- input: CreateServiceAccountRequest,
918
- output: ServiceAccount2,
399
+ input: __S(52, __c13, 0) as any as S.Schema<CreateServiceAccountRequest>,
400
+ output: __S(56, __c14, 0) as any as S.Schema<ServiceAccount2>,
919
401
  errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
920
402
  protocol: StackitProtocol,
921
403
  retry: Retry.Retry,
@@ -929,8 +411,8 @@ export const createServiceAccountKey: API.OperationMethod<
929
411
  CreateServiceAccountKeyError,
930
412
  StackitOpContext
931
413
  > = /*@__PURE__*/ API.make(() => ({
932
- input: CreateServiceAccountKeyRequest,
933
- output: CreateServiceAccountKeyResponse,
414
+ input: __S(60, __c15, 0) as any as S.Schema<CreateServiceAccountKeyRequest>,
415
+ output: __S(62, __c15, 2) as any as S.Schema<CreateServiceAccountKeyResponse>,
934
416
  errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
935
417
  protocol: StackitProtocol,
936
418
  retry: Retry.Retry,
@@ -944,8 +426,8 @@ export const createShortLivedAccessToken: API.OperationMethod<
944
426
  CreateShortLivedAccessTokenError,
945
427
  StackitOpContext
946
428
  > = /*@__PURE__*/ API.make(() => ({
947
- input: CreateShortLivedAccessTokenRequest,
948
- output: CreateShortLivedAccessTokenResponse,
429
+ input: __S(64, __c16, 0) as any as S.Schema<CreateShortLivedAccessTokenRequest>,
430
+ output: __S(65, __c16, 1) as any as S.Schema<CreateShortLivedAccessTokenResponse>,
949
431
  errors: [BadRequest, Forbidden, UnknownStackitError],
950
432
  protocol: StackitProtocol,
951
433
  retry: Retry.Retry,
@@ -959,8 +441,8 @@ export const deleteServiceAccount: API.OperationMethod<
959
441
  DeleteServiceAccountError,
960
442
  StackitOpContext
961
443
  > = /*@__PURE__*/ API.make(() => ({
962
- input: DeleteServiceAccountRequest,
963
- output: DeleteServiceAccountResponse,
444
+ input: __S(68, __c17, 0) as any as S.Schema<DeleteServiceAccountRequest>,
445
+ output: __S(72, __c18, 0) as any as S.Schema<DeleteServiceAccountResponse>,
964
446
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
965
447
  protocol: StackitProtocol,
966
448
  retry: Retry.Retry,
@@ -974,8 +456,8 @@ export const deleteServiceAccountKey: API.OperationMethod<
974
456
  DeleteServiceAccountKeyError,
975
457
  StackitOpContext
976
458
  > = /*@__PURE__*/ API.make(() => ({
977
- input: DeleteServiceAccountKeyRequest,
978
- output: DeleteServiceAccountKeyResponse,
459
+ input: __S(76, __c19, 0) as any as S.Schema<DeleteServiceAccountKeyRequest>,
460
+ output: __S(72, __c18, 0) as any as S.Schema<DeleteServiceAccountKeyResponse>,
979
461
  errors: [BadRequest, Forbidden, UnknownStackitError],
980
462
  protocol: StackitProtocol,
981
463
  retry: Retry.Retry,
@@ -989,8 +471,8 @@ export const deleteServiceFederatedIdentityProvider: API.OperationMethod<
989
471
  DeleteServiceFederatedIdentityProviderError,
990
472
  StackitOpContext
991
473
  > = /*@__PURE__*/ API.make(() => ({
992
- input: DeleteServiceFederatedIdentityProviderRequest,
993
- output: DeleteServiceFederatedIdentityProviderResponse,
474
+ input: __S(0, __c0, 0) as any as S.Schema<DeleteServiceFederatedIdentityProviderRequest>,
475
+ output: __S(72, __c18, 0) as any as S.Schema<DeleteServiceFederatedIdentityProviderResponse>,
994
476
  errors: [BadRequest, Forbidden, UnknownStackitError],
995
477
  protocol: StackitProtocol,
996
478
  retry: Retry.Retry,
@@ -1004,8 +486,8 @@ export const getFederatedIdentityProvider: API.OperationMethod<
1004
486
  GetFederatedIdentityProviderError,
1005
487
  StackitOpContext
1006
488
  > = /*@__PURE__*/ API.make(() => ({
1007
- input: GetFederatedIdentityProviderRequest,
1008
- output: FederatedIdentityProvider,
489
+ input: __S(4, __c1, 0) as any as S.Schema<GetFederatedIdentityProviderRequest>,
490
+ output: __S(46, __c11, 2) as any as S.Schema<FederatedIdentityProvider>,
1009
491
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1010
492
  protocol: StackitProtocol,
1011
493
  retry: Retry.Retry,
@@ -1015,8 +497,8 @@ export type GetJWKSError = StackitOpError;
1015
497
  /** Get JSON Web Key set of the service account Get JSON Web Key set of the service account */
1016
498
  export const getJWKS: API.OperationMethod<GetJWKSRequest, JWKS, GetJWKSError, StackitOpContext> =
1017
499
  /*@__PURE__*/ API.make(() => ({
1018
- input: GetJWKSRequest,
1019
- output: JWKS,
500
+ input: __S(8, __c2, 0) as any as S.Schema<GetJWKSRequest>,
501
+ output: __S(11, __c2, 3) as any as S.Schema<JWKS>,
1020
502
  errors: [UnknownStackitError],
1021
503
  protocol: StackitProtocol,
1022
504
  retry: Retry.Retry,
@@ -1030,8 +512,8 @@ export const getServiceAccountKey: API.OperationMethod<
1030
512
  GetServiceAccountKeyError,
1031
513
  StackitOpContext
1032
514
  > = /*@__PURE__*/ API.make(() => ({
1033
- input: GetServiceAccountKeyRequest,
1034
- output: GetServiceAccountKeyResponse,
515
+ input: __S(12, __c3, 0) as any as S.Schema<GetServiceAccountKeyRequest>,
516
+ output: __S(14, __c3, 2) as any as S.Schema<GetServiceAccountKeyResponse>,
1035
517
  errors: [BadRequest, Forbidden, UnknownStackitError],
1036
518
  protocol: StackitProtocol,
1037
519
  retry: Retry.Retry,
@@ -1045,8 +527,8 @@ export const listFederatedIdentityProviders: API.OperationMethod<
1045
527
  ListFederatedIdentityProvidersError,
1046
528
  StackitOpContext
1047
529
  > = /*@__PURE__*/ API.make(() => ({
1048
- input: ListFederatedIdentityProvidersRequest,
1049
- output: FederatedListFederatedIdentityProvidersResponse,
530
+ input: __S(16, __c4, 0) as any as S.Schema<ListFederatedIdentityProvidersRequest>,
531
+ output: __S(18, __c4, 2) as any as S.Schema<FederatedListFederatedIdentityProvidersResponse>,
1050
532
  errors: [BadRequest, Forbidden, UnknownStackitError],
1051
533
  protocol: StackitProtocol,
1052
534
  retry: Retry.Retry,
@@ -1060,8 +542,8 @@ export const listServiceAccountKeys: API.OperationMethod<
1060
542
  ListServiceAccountKeysError,
1061
543
  StackitOpContext
1062
544
  > = /*@__PURE__*/ API.make(() => ({
1063
- input: ListServiceAccountKeysRequest,
1064
- output: ListServiceAccountKeysResponse,
545
+ input: __S(20, __c5, 0) as any as S.Schema<ListServiceAccountKeysRequest>,
546
+ output: __S(22, __c5, 2) as any as S.Schema<ListServiceAccountKeysResponse>,
1065
547
  errors: [BadRequest, Forbidden, UnknownStackitError],
1066
548
  protocol: StackitProtocol,
1067
549
  retry: Retry.Retry,
@@ -1075,8 +557,8 @@ export const listServiceAccounts: API.OperationMethod<
1075
557
  ListServiceAccountsError,
1076
558
  StackitOpContext
1077
559
  > = /*@__PURE__*/ API.make(() => ({
1078
- input: ListServiceAccountsRequest,
1079
- output: ListServiceAccountsResponse,
560
+ input: __S(28, __c7, 0) as any as S.Schema<ListServiceAccountsRequest>,
561
+ output: __S(30, __c7, 2) as any as S.Schema<ListServiceAccountsResponse>,
1080
562
  errors: [BadRequest, Forbidden, UnknownStackitError],
1081
563
  protocol: StackitProtocol,
1082
564
  retry: Retry.Retry,
@@ -1094,8 +576,12 @@ export const partialUpdateServiceAccountFederatedIdentityProvider: API.Operation
1094
576
  PartialUpdateServiceAccountFederatedIdentityProviderError,
1095
577
  StackitOpContext
1096
578
  > = /*@__PURE__*/ API.make(() => ({
1097
- input: PartialUpdateServiceAccountFederatedIdentityProviderRequest,
1098
- output: FederatedIdentityProvider,
579
+ input: __S(
580
+ 32,
581
+ __c8,
582
+ 0,
583
+ ) as any as S.Schema<PartialUpdateServiceAccountFederatedIdentityProviderRequest>,
584
+ output: __S(46, __c11, 2) as any as S.Schema<FederatedIdentityProvider>,
1099
585
  errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
1100
586
  protocol: StackitProtocol,
1101
587
  retry: Retry.Retry,
@@ -1113,9 +599,485 @@ export const partialUpdateServiceAccountKey: API.OperationMethod<
1113
599
  PartialUpdateServiceAccountKeyError,
1114
600
  StackitOpContext
1115
601
  > = /*@__PURE__*/ API.make(() => ({
1116
- input: PartialUpdateServiceAccountKeyRequest,
1117
- output: PartialUpdateServiceAccountKeyResponse,
602
+ input: __S(36, __c9, 0) as any as S.Schema<PartialUpdateServiceAccountKeyRequest>,
603
+ output: __S(24, __c6, 0) as any as S.Schema<PartialUpdateServiceAccountKeyResponse>,
1118
604
  errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
1119
605
  protocol: StackitProtocol,
1120
606
  retry: Retry.Retry,
1121
607
  }));
608
+
609
+ // Schema builders: each runs one schema initializer, on that schema's first use.
610
+ function __c0(j: number): any {
611
+ switch (j) {
612
+ case 0:
613
+ return S.suspend(() =>
614
+ S.Struct({
615
+ projectId: S.String.pipe(T.Label()),
616
+ serviceAccountEmail: S.String.pipe(T.Label()),
617
+ federationId: S.String.pipe(T.Label()),
618
+ }).pipe(
619
+ T.Http({
620
+ method: "DELETE",
621
+ uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations/{federationId}",
622
+ code: 200,
623
+ baseUrl: "https://service-account.api.stackit.cloud",
624
+ }),
625
+ ),
626
+ ).annotate({ identifier: "DeleteServiceFederatedIdentityProviderRequest" });
627
+ }
628
+ }
629
+ function __c1(j: number): any {
630
+ switch (j) {
631
+ case 0:
632
+ return S.suspend(() =>
633
+ S.Struct({
634
+ projectId: S.String.pipe(T.Label()),
635
+ serviceAccountEmail: S.String.pipe(T.Label()),
636
+ federationId: S.String.pipe(T.Label()),
637
+ }).pipe(
638
+ T.Http({
639
+ method: "GET",
640
+ uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations/{federationId}",
641
+ code: 200,
642
+ baseUrl: "https://service-account.api.stackit.cloud",
643
+ }),
644
+ ),
645
+ ).annotate({ identifier: "GetFederatedIdentityProviderRequest" });
646
+ }
647
+ }
648
+ function __c2(j: number): any {
649
+ switch (j) {
650
+ case 0:
651
+ return S.suspend(() =>
652
+ S.Struct({
653
+ serviceAccountEmail: S.String.pipe(T.Label()),
654
+ }).pipe(
655
+ T.Http({
656
+ method: "GET",
657
+ uri: "/v2/service-accounts/public/jwk/{serviceAccountEmail}",
658
+ code: 200,
659
+ baseUrl: "https://service-account.api.stackit.cloud",
660
+ }),
661
+ ),
662
+ ).annotate({ identifier: "GetJWKSRequest" });
663
+ case 1:
664
+ return S.suspend(() =>
665
+ S.Struct({
666
+ alg: S.optional(S.String),
667
+ e: S.String,
668
+ kid: S.optional(S.String),
669
+ ks: S.optional(S.String),
670
+ n: S.String,
671
+ ops: S.optional(S.String),
672
+ use: S.optional(S.String),
673
+ x5c: S.optional(S.String),
674
+ x5t: S.optional(S.String),
675
+ x5t256: S.optional(S.String),
676
+ x5u: S.optional(S.String),
677
+ }),
678
+ ).annotate({ identifier: "JWK" });
679
+ case 2:
680
+ return S.Array(__S(9, __c2, 1));
681
+ case 3:
682
+ return S.suspend(() =>
683
+ S.Struct({
684
+ keys: __S(10, __c2, 2),
685
+ }),
686
+ ).annotate({ identifier: "JWKS" });
687
+ }
688
+ }
689
+ function __c3(j: number): any {
690
+ switch (j) {
691
+ case 0:
692
+ return S.suspend(() =>
693
+ S.Struct({
694
+ projectId: S.String.pipe(T.Label()),
695
+ serviceAccountEmail: S.String.pipe(T.Label()),
696
+ keyId: S.String.pipe(T.Label()),
697
+ format: S.optional(S.String.pipe(T.Query())),
698
+ }).pipe(
699
+ T.Http({
700
+ method: "GET",
701
+ uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys/{keyId}",
702
+ code: 200,
703
+ baseUrl: "https://service-account.api.stackit.cloud",
704
+ }),
705
+ ),
706
+ ).annotate({ identifier: "GetServiceAccountKeyRequest" });
707
+ case 1:
708
+ return S.suspend(() =>
709
+ S.Struct({
710
+ aud: S.String,
711
+ iss: S.String,
712
+ kid: S.String,
713
+ sub: S.String,
714
+ }),
715
+ ).annotate({ identifier: "GetServiceAccountKeyResponseCredentials" });
716
+ case 2:
717
+ return S.suspend(() =>
718
+ S.Struct({
719
+ active: S.Boolean,
720
+ createdAt: S.String,
721
+ credentials: __S(13, __c3, 1),
722
+ id: S.String,
723
+ keyAlgorithm: S.String,
724
+ keyOrigin: S.String,
725
+ keyType: S.String,
726
+ publicKey: S.optional(S.String),
727
+ validUntil: S.optional(S.String),
728
+ }),
729
+ ).annotate({ identifier: "GetServiceAccountKeyResponse" });
730
+ }
731
+ }
732
+ function __c4(j: number): any {
733
+ switch (j) {
734
+ case 0:
735
+ return S.suspend(() =>
736
+ S.Struct({
737
+ projectId: S.String.pipe(T.Label()),
738
+ serviceAccountEmail: S.String.pipe(T.Label()),
739
+ }).pipe(
740
+ T.Http({
741
+ method: "GET",
742
+ uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations",
743
+ code: 200,
744
+ baseUrl: "https://service-account.api.stackit.cloud",
745
+ }),
746
+ ),
747
+ ).annotate({ identifier: "ListFederatedIdentityProvidersRequest" });
748
+ case 1:
749
+ return S.Array(__S(46, __c11, 2));
750
+ case 2:
751
+ return S.suspend(() =>
752
+ S.Struct({
753
+ itemsPerPage: S.Number,
754
+ resources: __S(17, __c4, 1),
755
+ startIndex: S.Number,
756
+ totalResults: S.Number,
757
+ }),
758
+ ).annotate({ identifier: "FederatedListFederatedIdentityProvidersResponse" });
759
+ }
760
+ }
761
+ function __c5(j: number): any {
762
+ switch (j) {
763
+ case 0:
764
+ return S.suspend(() =>
765
+ S.Struct({
766
+ projectId: S.String.pipe(T.Label()),
767
+ serviceAccountEmail: S.String.pipe(T.Label()),
768
+ }).pipe(
769
+ T.Http({
770
+ method: "GET",
771
+ uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys",
772
+ code: 200,
773
+ baseUrl: "https://service-account.api.stackit.cloud",
774
+ }),
775
+ ),
776
+ ).annotate({ identifier: "ListServiceAccountKeysRequest" });
777
+ case 1:
778
+ return S.Array(__S(24, __c6, 0));
779
+ case 2:
780
+ return S.suspend(() =>
781
+ S.Struct({
782
+ items: __S(21, __c5, 1),
783
+ }),
784
+ ).annotate({ identifier: "ListServiceAccountKeysResponse" });
785
+ }
786
+ }
787
+ function __c6(j: number): any {
788
+ switch (j) {
789
+ case 0:
790
+ return S.suspend(() =>
791
+ S.Struct({
792
+ active: S.Boolean,
793
+ createdAt: S.String,
794
+ id: S.String,
795
+ keyAlgorithm: S.String,
796
+ keyOrigin: S.String,
797
+ keyType: S.String,
798
+ validUntil: S.optional(S.String),
799
+ }),
800
+ ).annotate({ identifier: "ServiceAccountKeyListResponse" });
801
+ }
802
+ }
803
+ function __c7(j: number): any {
804
+ switch (j) {
805
+ case 0:
806
+ return S.suspend(() =>
807
+ S.Struct({
808
+ projectId: S.String.pipe(T.Label()),
809
+ }).pipe(
810
+ T.Http({
811
+ method: "GET",
812
+ uri: "/v2/projects/{projectId}/service-accounts",
813
+ code: 200,
814
+ baseUrl: "https://service-account.api.stackit.cloud",
815
+ }),
816
+ ),
817
+ ).annotate({ identifier: "ListServiceAccountsRequest" });
818
+ case 1:
819
+ return S.Array(__S(56, __c14, 0));
820
+ case 2:
821
+ return S.suspend(() =>
822
+ S.Struct({
823
+ items: __S(29, __c7, 1),
824
+ }),
825
+ ).annotate({ identifier: "ListServiceAccountsResponse" });
826
+ }
827
+ }
828
+ function __c8(j: number): any {
829
+ switch (j) {
830
+ case 0:
831
+ return S.suspend(() =>
832
+ S.Struct({
833
+ projectId: S.String.pipe(T.Label()),
834
+ serviceAccountEmail: S.String.pipe(T.Label()),
835
+ federationId: S.String.pipe(T.Label()),
836
+ assertions: S.optional(__S(49, __c12, 1)),
837
+ issuer: S.String,
838
+ name: S.String,
839
+ }).pipe(
840
+ T.Http({
841
+ method: "PATCH",
842
+ uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations/{federationId}",
843
+ code: 200,
844
+ baseUrl: "https://service-account.api.stackit.cloud",
845
+ }),
846
+ ),
847
+ ).annotate({ identifier: "PartialUpdateServiceAccountFederatedIdentityProviderRequest" });
848
+ }
849
+ }
850
+ function __c9(j: number): any {
851
+ switch (j) {
852
+ case 0:
853
+ return S.suspend(() =>
854
+ S.Struct({
855
+ projectId: S.String.pipe(T.Label()),
856
+ serviceAccountEmail: S.String.pipe(T.Label()),
857
+ keyId: S.String.pipe(T.Label()),
858
+ active: S.optional(S.Boolean),
859
+ validUntil: S.optional(S.String),
860
+ }).pipe(
861
+ T.Http({
862
+ method: "PATCH",
863
+ uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys/{keyId}",
864
+ code: 200,
865
+ baseUrl: "https://service-account.api.stackit.cloud",
866
+ }),
867
+ ),
868
+ ).annotate({ identifier: "PartialUpdateServiceAccountKeyRequest" });
869
+ }
870
+ }
871
+ function __c10(j: number): any {
872
+ switch (j) {
873
+ case 0:
874
+ return S.suspend(() =>
875
+ S.Struct({
876
+ projectId: S.String.pipe(T.Label()),
877
+ serviceAccountEmail: S.String.pipe(T.Label()),
878
+ assertions: S.optional(__S(49, __c12, 1)),
879
+ issuer: S.String,
880
+ name: S.String,
881
+ }).pipe(
882
+ T.Http({
883
+ method: "POST",
884
+ uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations",
885
+ code: 200,
886
+ baseUrl: "https://service-account.api.stackit.cloud",
887
+ }),
888
+ ),
889
+ ).annotate({ identifier: "CreateFederatedIdentityProviderRequest" });
890
+ }
891
+ }
892
+ function __c11(j: number): any {
893
+ switch (j) {
894
+ case 0:
895
+ return S.suspend(() =>
896
+ S.Struct({
897
+ item: S.String,
898
+ operator: S.String,
899
+ value: S.String,
900
+ }),
901
+ ).annotate({ identifier: "FederatedIdentityProviderAssertionsItem" });
902
+ case 1:
903
+ return S.Array(__S(44, __c11, 0));
904
+ case 2:
905
+ return S.suspend(() =>
906
+ S.Struct({
907
+ assertions: __S(45, __c11, 1),
908
+ createdAt: S.String,
909
+ id: S.optional(S.String),
910
+ issuer: S.String,
911
+ name: S.String,
912
+ updatedAt: S.String,
913
+ }),
914
+ ).annotate({ identifier: "FederatedIdentityProvider" });
915
+ }
916
+ }
917
+ function __c12(j: number): any {
918
+ switch (j) {
919
+ case 0:
920
+ return S.suspend(() =>
921
+ S.Struct({
922
+ item: S.optional(S.String),
923
+ operator: S.optional(S.String),
924
+ value: S.optional(S.String),
925
+ }),
926
+ ).annotate({ identifier: "CreateFederatedIdentityProviderRequestAssertionsItem" });
927
+ case 1:
928
+ return S.Array(__S(48, __c12, 0));
929
+ }
930
+ }
931
+ function __c13(j: number): any {
932
+ switch (j) {
933
+ case 0:
934
+ return S.suspend(() =>
935
+ S.Struct({
936
+ projectId: S.String.pipe(T.Label()),
937
+ name: S.String,
938
+ }).pipe(
939
+ T.Http({
940
+ method: "POST",
941
+ uri: "/v2/projects/{projectId}/service-accounts",
942
+ code: 200,
943
+ baseUrl: "https://service-account.api.stackit.cloud",
944
+ }),
945
+ ),
946
+ ).annotate({ identifier: "CreateServiceAccountRequest" });
947
+ }
948
+ }
949
+ function __c14(j: number): any {
950
+ switch (j) {
951
+ case 0:
952
+ return S.suspend(() =>
953
+ S.Struct({
954
+ email: S.String,
955
+ id: S.String,
956
+ internal: S.Boolean,
957
+ projectId: S.String,
958
+ }),
959
+ ).annotate({ identifier: "ServiceAccount2" });
960
+ }
961
+ }
962
+ function __c15(j: number): any {
963
+ switch (j) {
964
+ case 0:
965
+ return S.suspend(() =>
966
+ S.Struct({
967
+ projectId: S.String.pipe(T.Label()),
968
+ serviceAccountEmail: S.String.pipe(T.Label()),
969
+ algorithm: S.optional(S.String),
970
+ publicKey: S.optional(S.String),
971
+ validUntil: S.optional(S.String),
972
+ }).pipe(
973
+ T.Http({
974
+ method: "POST",
975
+ uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys",
976
+ code: 200,
977
+ baseUrl: "https://service-account.api.stackit.cloud",
978
+ }),
979
+ ),
980
+ ).annotate({ identifier: "CreateServiceAccountKeyRequest" });
981
+ case 1:
982
+ return S.suspend(() =>
983
+ S.Struct({
984
+ aud: S.String,
985
+ iss: S.String,
986
+ kid: S.String,
987
+ privateKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
988
+ sub: S.String,
989
+ tokenEndpoint: S.optional(S.String),
990
+ }),
991
+ ).annotate({ identifier: "CreateServiceAccountKeyResponseCredentials" });
992
+ case 2:
993
+ return S.suspend(() =>
994
+ S.Struct({
995
+ active: S.Boolean,
996
+ createdAt: S.String,
997
+ credentials: __S(61, __c15, 1),
998
+ id: S.String,
999
+ keyAlgorithm: S.String,
1000
+ keyOrigin: S.String,
1001
+ keyType: S.String,
1002
+ publicKey: S.String,
1003
+ validUntil: S.optional(S.String),
1004
+ }),
1005
+ ).annotate({ identifier: "CreateServiceAccountKeyResponse" });
1006
+ }
1007
+ }
1008
+ function __c16(j: number): any {
1009
+ switch (j) {
1010
+ case 0:
1011
+ return S.suspend(() =>
1012
+ S.Struct({
1013
+ assertion: S.optional(S.String),
1014
+ grant_type: S.String,
1015
+ refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
1016
+ }).pipe(
1017
+ T.Http({
1018
+ method: "POST",
1019
+ uri: "/token",
1020
+ code: 200,
1021
+ baseUrl: "https://service-account.api.stackit.cloud",
1022
+ }),
1023
+ ),
1024
+ ).annotate({ identifier: "CreateShortLivedAccessTokenRequest" });
1025
+ case 1:
1026
+ return S.suspend(() =>
1027
+ S.Struct({
1028
+ access_token: S.String.pipe(T.SensitiveValue({})),
1029
+ expires_in: S.Number,
1030
+ refresh_token: S.String.pipe(T.SensitiveValue({})),
1031
+ scope: S.String,
1032
+ token_type: S.String,
1033
+ }),
1034
+ ).annotate({ identifier: "CreateShortLivedAccessTokenResponse" });
1035
+ }
1036
+ }
1037
+ function __c17(j: number): any {
1038
+ switch (j) {
1039
+ case 0:
1040
+ return S.suspend(() =>
1041
+ S.Struct({
1042
+ projectId: S.String.pipe(T.Label()),
1043
+ serviceAccountEmail: S.String.pipe(T.Label()),
1044
+ }).pipe(
1045
+ T.Http({
1046
+ method: "DELETE",
1047
+ uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}",
1048
+ code: 200,
1049
+ baseUrl: "https://service-account.api.stackit.cloud",
1050
+ }),
1051
+ ),
1052
+ ).annotate({ identifier: "DeleteServiceAccountRequest" });
1053
+ }
1054
+ }
1055
+ function __c18(j: number): any {
1056
+ switch (j) {
1057
+ case 0:
1058
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteServiceAccountResponse" });
1059
+ }
1060
+ }
1061
+ function __c19(j: number): any {
1062
+ switch (j) {
1063
+ case 0:
1064
+ return S.suspend(() =>
1065
+ S.Struct({
1066
+ projectId: S.String.pipe(T.Label()),
1067
+ serviceAccountEmail: S.String.pipe(T.Label()),
1068
+ keyId: S.String.pipe(T.Label()),
1069
+ }).pipe(
1070
+ T.Http({
1071
+ method: "DELETE",
1072
+ uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys/{keyId}",
1073
+ code: 200,
1074
+ baseUrl: "https://service-account.api.stackit.cloud",
1075
+ }),
1076
+ ),
1077
+ ).annotate({ identifier: "DeleteServiceAccountKeyRequest" });
1078
+ }
1079
+ }
1080
+ // Schema table: entry i is schema j of builder f, made on first reach.
1081
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1082
+ return (__s[i] ??= __L.at(f, j));
1083
+ }