@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
 
@@ -57,33 +60,8 @@ export interface CreateAuthenticationRequest {
57
60
  /** Scopes defines the OIDC scopes to request. */
58
61
  scopes?: string;
59
62
  }
60
- export const CreateAuthenticationRequest = /*@__PURE__*/ S.suspend(() =>
61
- S.Struct({
62
- projectId: S.String.pipe(T.Label()),
63
- instanceId: S.String.pipe(T.Label()),
64
- auto_discover_url: S.String,
65
- client_id: S.String,
66
- client_secret: S.String.pipe(T.SensitiveValue({})),
67
- icon_url: S.optional(S.String),
68
- name: S.String,
69
- provider: S.optional(S.String),
70
- scopes: S.optional(S.String),
71
- }).pipe(
72
- T.Http({
73
- method: "POST",
74
- uri: "/v1beta/projects/{projectId}/instances/{instanceId}/authentications",
75
- code: 200,
76
- baseUrl: "https://git.api.stackit.cloud",
77
- }),
78
- ),
79
- ).annotate({
80
- identifier: "CreateAuthenticationRequest",
81
- }) as any as S.Schema<CreateAuthenticationRequest>;
82
-
83
63
  /** The current status of the authentication definition. */
84
64
  export type AuthenticationStatus = "Creating" | "Updating" | "Deleting" | "Ready" | "Error";
85
- export const AuthenticationStatus = S.String;
86
-
87
65
  /** Describes an authentication definition associated to a STACKIT Git instance. The provider type will be an openidConnect type. */
88
66
  export interface Authentication {
89
67
  /** The well-known configuration url to use for this authentication definition. */
@@ -107,28 +85,9 @@ export interface Authentication {
107
85
  /** Provides additional information or error details when the status is 'Error'. */
108
86
  status_message?: string;
109
87
  }
110
- export const Authentication = /*@__PURE__*/ S.suspend(() =>
111
- S.Struct({
112
- auto_discover_url: S.String,
113
- client_id: S.String,
114
- created_at: S.String,
115
- icon_url: S.String,
116
- id: S.String,
117
- name: S.String,
118
- provider: S.String,
119
- scopes: S.String,
120
- status: AuthenticationStatus,
121
- status_message: S.optional(S.String),
122
- }),
123
- ).annotate({ identifier: "Authentication" }) as any as S.Schema<Authentication>;
124
-
125
88
  /** A list of CIDR network addresses that are allowed to access the instance. */
126
89
  export type Acl = Array<string>;
127
- export const Acl = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<Acl>;
128
-
129
90
  export type CreateInstanceRequestFlavor = "git-10" | "git-100";
130
- export const CreateInstanceRequestFlavor = S.String;
131
-
132
91
  export interface CreateInstanceRequest {
133
92
  /** Project identifier. */
134
93
  projectId: string;
@@ -137,34 +96,14 @@ export interface CreateInstanceRequest {
137
96
  /** A user chosen name to distinguish multiple STACKIT Git instances. */
138
97
  name: string;
139
98
  }
140
- export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
141
- S.Struct({
142
- projectId: S.String.pipe(T.Label()),
143
- acl: S.optional(Acl),
144
- flavor: S.optional(CreateInstanceRequestFlavor),
145
- name: S.String,
146
- }).pipe(
147
- T.Http({
148
- method: "POST",
149
- uri: "/v1beta/projects/{projectId}/instances",
150
- code: 200,
151
- baseUrl: "https://git.api.stackit.cloud",
152
- }),
153
- ),
154
- ).annotate({ identifier: "CreateInstanceRequest" }) as any as S.Schema<CreateInstanceRequest>;
155
-
156
99
  /** Restricted ACL for instance access. */
157
100
  export type InstanceAclList = Array<string>;
158
- export const InstanceAclList = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<InstanceAclList>;
159
-
160
101
  /** Default email notifications. */
161
102
  export type FeatureToggleDefaultEmailNotifications =
162
103
  | "enabled"
163
104
  | "disabled"
164
105
  | "onmention"
165
106
  | "andyourown";
166
- export const FeatureToggleDefaultEmailNotifications = S.String;
167
-
168
107
  /** Feature toggles for instance pipelines */
169
108
  export interface Pipelines {
170
109
  /** The action URL for the pipelines */
@@ -172,13 +111,6 @@ export interface Pipelines {
172
111
  /** Enable pipelines for this instance */
173
112
  enabled?: boolean | null;
174
113
  }
175
- export const Pipelines = /*@__PURE__*/ S.suspend(() =>
176
- S.Struct({
177
- action_url: S.optional(S.NullOr(S.String)),
178
- enabled: S.optional(S.NullOr(S.Boolean)),
179
- }),
180
- ).annotate({ identifier: "Pipelines" }) as any as S.Schema<Pipelines>;
181
-
182
114
  /** Feature toggles for the instance. */
183
115
  export interface FeatureToggle {
184
116
  /** Default email notifications. */
@@ -187,18 +119,8 @@ export interface FeatureToggle {
187
119
  enable_local_login?: boolean | null;
188
120
  pipelines?: Pipelines;
189
121
  }
190
- export const FeatureToggle = /*@__PURE__*/ S.suspend(() =>
191
- S.Struct({
192
- default_email_notifications: S.optional(S.NullOr(FeatureToggleDefaultEmailNotifications)),
193
- enable_local_login: S.optional(S.NullOr(S.Boolean)),
194
- pipelines: S.optional(Pipelines),
195
- }),
196
- ).annotate({ identifier: "FeatureToggle" }) as any as S.Schema<FeatureToggle>;
197
-
198
122
  /** Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. The `stackit-` prefix is reserved and cannot be used for Keys. */
199
123
  export type Labels = { [key: string]: string | undefined };
200
- export const Labels = /*@__PURE__*/ S.Record(S.String, S.String) as any as S.Schema<Labels>;
201
-
202
124
  /** The current state of the STACKIT Git instance. */
203
125
  export type InstanceState =
204
126
  | "Creating"
@@ -207,8 +129,6 @@ export type InstanceState =
207
129
  | "Deleting"
208
130
  | "Ready"
209
131
  | "Error";
210
- export const InstanceState = S.String;
211
-
212
132
  /** Describes a STACKIT Git instance. */
213
133
  export interface Instance {
214
134
  /** Restricted ACL for instance access. */
@@ -236,29 +156,7 @@ export interface Instance {
236
156
  /** The current version of STACKIT Git deployed to the instance. */
237
157
  version: string;
238
158
  }
239
- export const Instance = /*@__PURE__*/ S.suspend(() =>
240
- S.Struct({
241
- acl: InstanceAclList,
242
- admin_login: S.Boolean,
243
- consumed_disk: S.String,
244
- consumed_object_storage: S.String,
245
- created: S.String,
246
- feature_toggle: FeatureToggle,
247
- flavor: S.String,
248
- id: S.String,
249
- labels: S.optional(Labels),
250
- name: S.String,
251
- state: InstanceState,
252
- url: S.String,
253
- version: S.String,
254
- }),
255
- ).annotate({ identifier: "Instance" }) as any as S.Schema<Instance>;
256
-
257
159
  export type CreateRunnerRequestLabelsList = Array<string>;
258
- export const CreateRunnerRequestLabelsList = /*@__PURE__*/ S.Array(
259
- S.String,
260
- ) as any as S.Schema<CreateRunnerRequestLabelsList>;
261
-
262
160
  export interface CreateRunnerRequest {
263
161
  /** Project identifier. */
264
162
  projectId: string;
@@ -266,26 +164,7 @@ export interface CreateRunnerRequest {
266
164
  instanceId: string;
267
165
  labels: CreateRunnerRequestLabelsList;
268
166
  }
269
- export const CreateRunnerRequest = /*@__PURE__*/ S.suspend(() =>
270
- S.Struct({
271
- projectId: S.String.pipe(T.Label()),
272
- instanceId: S.String.pipe(T.Label()),
273
- labels: CreateRunnerRequestLabelsList,
274
- }).pipe(
275
- T.Http({
276
- method: "POST",
277
- uri: "/v1beta/projects/{projectId}/instances/{instanceId}/runner",
278
- code: 200,
279
- baseUrl: "https://git.api.stackit.cloud",
280
- }),
281
- ),
282
- ).annotate({ identifier: "CreateRunnerRequest" }) as any as S.Schema<CreateRunnerRequest>;
283
-
284
167
  export type RunnerLabelsList = Array<string>;
285
- export const RunnerLabelsList = /*@__PURE__*/ S.Array(
286
- S.String,
287
- ) as any as S.Schema<RunnerLabelsList>;
288
-
289
168
  /** Describes a runner associated to a STACKIT Git instance. */
290
169
  export interface Runner {
291
170
  created_at: string;
@@ -294,15 +173,6 @@ export interface Runner {
294
173
  /** The current status of the runner. */
295
174
  status: string;
296
175
  }
297
- export const Runner = /*@__PURE__*/ S.suspend(() =>
298
- S.Struct({
299
- created_at: S.String,
300
- id: S.String,
301
- labels: RunnerLabelsList,
302
- status: S.String,
303
- }),
304
- ).annotate({ identifier: "Runner" }) as any as S.Schema<Runner>;
305
-
306
176
  export interface CreateUserRequest {
307
177
  /** Project identifier. */
308
178
  projectId: string;
@@ -319,25 +189,6 @@ export interface CreateUserRequest {
319
189
  /** A user chosen username to distinguish multiple STACKIT Git instance Users. */
320
190
  username: string;
321
191
  }
322
- export const CreateUserRequest = /*@__PURE__*/ S.suspend(() =>
323
- S.Struct({
324
- projectId: S.String.pipe(T.Label()),
325
- instanceId: S.String.pipe(T.Label()),
326
- email: S.String,
327
- force_send_reset_password: S.optional(S.Boolean),
328
- name: S.String,
329
- password: S.String.pipe(T.SensitiveValue({})),
330
- username: S.String,
331
- }).pipe(
332
- T.Http({
333
- method: "POST",
334
- uri: "/v1beta/projects/{projectId}/instances/{instanceId}/users",
335
- code: 200,
336
- baseUrl: "https://git.api.stackit.cloud",
337
- }),
338
- ),
339
- ).annotate({ identifier: "CreateUserRequest" }) as any as S.Schema<CreateUserRequest>;
340
-
341
192
  /** Describes a STACKIT Git instance User. */
342
193
  export interface User {
343
194
  /** A user chosen email to distinguish multiple STACKIT Git instance Users. */
@@ -349,15 +200,6 @@ export interface User {
349
200
  /** A user chosen username to distinguish multiple STACKIT Git instance Users. */
350
201
  username: string;
351
202
  }
352
- export const User = /*@__PURE__*/ S.suspend(() =>
353
- S.Struct({
354
- email: S.String,
355
- id: S.optional(S.Number),
356
- name: S.String,
357
- username: S.String,
358
- }),
359
- ).annotate({ identifier: "User" }) as any as S.Schema<User>;
360
-
361
203
  export interface DeleteAuthenticationRequest {
362
204
  /** Project identifier. */
363
205
  projectId: string;
@@ -366,78 +208,21 @@ export interface DeleteAuthenticationRequest {
366
208
  /** Authentication Source identifier. */
367
209
  authenticationId: string;
368
210
  }
369
- export const DeleteAuthenticationRequest = /*@__PURE__*/ S.suspend(() =>
370
- S.Struct({
371
- projectId: S.String.pipe(T.Label()),
372
- instanceId: S.String.pipe(T.Label()),
373
- authenticationId: S.String.pipe(T.Label()),
374
- }).pipe(
375
- T.Http({
376
- method: "DELETE",
377
- uri: "/v1beta/projects/{projectId}/instances/{instanceId}/authentications/{authenticationId}",
378
- code: 200,
379
- baseUrl: "https://git.api.stackit.cloud",
380
- }),
381
- ),
382
- ).annotate({
383
- identifier: "DeleteAuthenticationRequest",
384
- }) as any as S.Schema<DeleteAuthenticationRequest>;
385
-
386
211
  export interface DeleteAuthenticationResponse {}
387
- export const DeleteAuthenticationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
388
- identifier: "DeleteAuthenticationResponse",
389
- }) as any as S.Schema<DeleteAuthenticationResponse>;
390
-
391
212
  export interface DeleteInstanceRequest {
392
213
  /** Project identifier. */
393
214
  projectId: string;
394
215
  /** Instance identifier. */
395
216
  instanceId: string;
396
217
  }
397
- export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() =>
398
- S.Struct({
399
- projectId: S.String.pipe(T.Label()),
400
- instanceId: S.String.pipe(T.Label()),
401
- }).pipe(
402
- T.Http({
403
- method: "DELETE",
404
- uri: "/v1beta/projects/{projectId}/instances/{instanceId}",
405
- code: 200,
406
- baseUrl: "https://git.api.stackit.cloud",
407
- }),
408
- ),
409
- ).annotate({ identifier: "DeleteInstanceRequest" }) as any as S.Schema<DeleteInstanceRequest>;
410
-
411
218
  export interface DeleteInstanceResponse {}
412
- export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
413
- identifier: "DeleteInstanceResponse",
414
- }) as any as S.Schema<DeleteInstanceResponse>;
415
-
416
219
  export interface DeleteRunnerRequest {
417
220
  /** Project identifier. */
418
221
  projectId: string;
419
222
  /** Instance identifier. */
420
223
  instanceId: string;
421
224
  }
422
- export const DeleteRunnerRequest = /*@__PURE__*/ S.suspend(() =>
423
- S.Struct({
424
- projectId: S.String.pipe(T.Label()),
425
- instanceId: S.String.pipe(T.Label()),
426
- }).pipe(
427
- T.Http({
428
- method: "DELETE",
429
- uri: "/v1beta/projects/{projectId}/instances/{instanceId}/runner",
430
- code: 200,
431
- baseUrl: "https://git.api.stackit.cloud",
432
- }),
433
- ),
434
- ).annotate({ identifier: "DeleteRunnerRequest" }) as any as S.Schema<DeleteRunnerRequest>;
435
-
436
225
  export interface DeleteRunnerResponse {}
437
- export const DeleteRunnerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
438
- identifier: "DeleteRunnerResponse",
439
- }) as any as S.Schema<DeleteRunnerResponse>;
440
-
441
226
  export interface DeleteUserRequest {
442
227
  /** Project identifier. */
443
228
  projectId: string;
@@ -446,26 +231,7 @@ export interface DeleteUserRequest {
446
231
  /** Instance User identifier. */
447
232
  username: string;
448
233
  }
449
- export const DeleteUserRequest = /*@__PURE__*/ S.suspend(() =>
450
- S.Struct({
451
- projectId: S.String.pipe(T.Label()),
452
- instanceId: S.String.pipe(T.Label()),
453
- username: S.String.pipe(T.Label()),
454
- }).pipe(
455
- T.Http({
456
- method: "DELETE",
457
- uri: "/v1beta/projects/{projectId}/instances/{instanceId}/users/{username}",
458
- code: 200,
459
- baseUrl: "https://git.api.stackit.cloud",
460
- }),
461
- ),
462
- ).annotate({ identifier: "DeleteUserRequest" }) as any as S.Schema<DeleteUserRequest>;
463
-
464
234
  export interface DeleteUserResponse {}
465
- export const DeleteUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
466
- identifier: "DeleteUserResponse",
467
- }) as any as S.Schema<DeleteUserResponse>;
468
-
469
235
  export interface GetAuthenticationRequest {
470
236
  /** Project identifier. */
471
237
  projectId: string;
@@ -474,61 +240,18 @@ export interface GetAuthenticationRequest {
474
240
  /** Authentication Source identifier. */
475
241
  authenticationId: string;
476
242
  }
477
- export const GetAuthenticationRequest = /*@__PURE__*/ S.suspend(() =>
478
- S.Struct({
479
- projectId: S.String.pipe(T.Label()),
480
- instanceId: S.String.pipe(T.Label()),
481
- authenticationId: S.String.pipe(T.Label()),
482
- }).pipe(
483
- T.Http({
484
- method: "GET",
485
- uri: "/v1beta/projects/{projectId}/instances/{instanceId}/authentications/{authenticationId}",
486
- code: 200,
487
- baseUrl: "https://git.api.stackit.cloud",
488
- }),
489
- ),
490
- ).annotate({ identifier: "GetAuthenticationRequest" }) as any as S.Schema<GetAuthenticationRequest>;
491
-
492
243
  export interface GetInstanceRequest {
493
244
  /** Project identifier. */
494
245
  projectId: string;
495
246
  /** Instance identifier. */
496
247
  instanceId: string;
497
248
  }
498
- export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() =>
499
- S.Struct({
500
- projectId: S.String.pipe(T.Label()),
501
- instanceId: S.String.pipe(T.Label()),
502
- }).pipe(
503
- T.Http({
504
- method: "GET",
505
- uri: "/v1beta/projects/{projectId}/instances/{instanceId}",
506
- code: 200,
507
- baseUrl: "https://git.api.stackit.cloud",
508
- }),
509
- ),
510
- ).annotate({ identifier: "GetInstanceRequest" }) as any as S.Schema<GetInstanceRequest>;
511
-
512
249
  export interface GetRunnerRequest {
513
250
  /** Project identifier. */
514
251
  projectId: string;
515
252
  /** Instance identifier. */
516
253
  instanceId: string;
517
254
  }
518
- export const GetRunnerRequest = /*@__PURE__*/ S.suspend(() =>
519
- S.Struct({
520
- projectId: S.String.pipe(T.Label()),
521
- instanceId: S.String.pipe(T.Label()),
522
- }).pipe(
523
- T.Http({
524
- method: "GET",
525
- uri: "/v1beta/projects/{projectId}/instances/{instanceId}/runner",
526
- code: 200,
527
- baseUrl: "https://git.api.stackit.cloud",
528
- }),
529
- ),
530
- ).annotate({ identifier: "GetRunnerRequest" }) as any as S.Schema<GetRunnerRequest>;
531
-
532
255
  export interface GetUserRequest {
533
256
  /** Project identifier. */
534
257
  projectId: string;
@@ -537,26 +260,7 @@ export interface GetUserRequest {
537
260
  /** Instance User identifier. */
538
261
  username: string;
539
262
  }
540
- export const GetUserRequest = /*@__PURE__*/ S.suspend(() =>
541
- S.Struct({
542
- projectId: S.String.pipe(T.Label()),
543
- instanceId: S.String.pipe(T.Label()),
544
- username: S.String.pipe(T.Label()),
545
- }).pipe(
546
- T.Http({
547
- method: "GET",
548
- uri: "/v1beta/projects/{projectId}/instances/{instanceId}/users/{username}",
549
- code: 200,
550
- baseUrl: "https://git.api.stackit.cloud",
551
- }),
552
- ),
553
- ).annotate({ identifier: "GetUserRequest" }) as any as S.Schema<GetUserRequest>;
554
-
555
263
  export interface GetUserResponse {}
556
- export const GetUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
557
- identifier: "GetUserResponse",
558
- }) as any as S.Schema<GetUserResponse>;
559
-
560
264
  export interface GetUsersRequest {
561
265
  /** Project identifier. */
562
266
  projectId: string;
@@ -565,26 +269,7 @@ export interface GetUsersRequest {
565
269
  /** Page number for pagination (1-indexed). Each page contains up to 50 users. */
566
270
  page?: number;
567
271
  }
568
- export const GetUsersRequest = /*@__PURE__*/ S.suspend(() =>
569
- S.Struct({
570
- projectId: S.String.pipe(T.Label()),
571
- instanceId: S.String.pipe(T.Label()),
572
- page: S.optional(S.Number.pipe(T.Query())),
573
- }).pipe(
574
- T.Http({
575
- method: "GET",
576
- uri: "/v1beta/projects/{projectId}/instances/{instanceId}/users",
577
- code: 200,
578
- baseUrl: "https://git.api.stackit.cloud",
579
- }),
580
- ),
581
- ).annotate({ identifier: "GetUsersRequest" }) as any as S.Schema<GetUsersRequest>;
582
-
583
272
  export type ListUsersUsersList = Array<User>;
584
- export const ListUsersUsersList = /*@__PURE__*/ S.Array(
585
- User,
586
- ) as any as S.Schema<ListUsersUsersList>;
587
-
588
273
  /** A paginated list of STACKIT Git instance Users. */
589
274
  export interface ListUsers {
590
275
  /** Number of users returned in this page. */
@@ -595,73 +280,23 @@ export interface ListUsers {
595
280
  totalPages: number;
596
281
  users: ListUsersUsersList;
597
282
  }
598
- export const ListUsers = /*@__PURE__*/ S.suspend(() =>
599
- S.Struct({
600
- itemsCount: S.Number,
601
- offset: S.Number,
602
- totalPages: S.Number,
603
- users: ListUsersUsersList,
604
- }),
605
- ).annotate({ identifier: "ListUsers" }) as any as S.Schema<ListUsers>;
606
-
607
283
  export interface ListAuthenticationRequest {
608
284
  /** Project identifier. */
609
285
  projectId: string;
610
286
  /** Instance identifier. */
611
287
  instanceId: string;
612
288
  }
613
- export const ListAuthenticationRequest = /*@__PURE__*/ S.suspend(() =>
614
- S.Struct({
615
- projectId: S.String.pipe(T.Label()),
616
- instanceId: S.String.pipe(T.Label()),
617
- }).pipe(
618
- T.Http({
619
- method: "GET",
620
- uri: "/v1beta/projects/{projectId}/instances/{instanceId}/authentications",
621
- code: 200,
622
- baseUrl: "https://git.api.stackit.cloud",
623
- }),
624
- ),
625
- ).annotate({
626
- identifier: "ListAuthenticationRequest",
627
- }) as any as S.Schema<ListAuthenticationRequest>;
628
-
629
289
  export type AuthenticationListAuthenticationList = Array<Authentication>;
630
- export const AuthenticationListAuthenticationList = /*@__PURE__*/ S.Array(
631
- Authentication,
632
- ) as any as S.Schema<AuthenticationListAuthenticationList>;
633
-
634
290
  /** A list of authentications belonging to an Instance. */
635
291
  export interface AuthenticationList {
636
292
  authentication: AuthenticationListAuthenticationList;
637
293
  }
638
- export const AuthenticationList = /*@__PURE__*/ S.suspend(() =>
639
- S.Struct({
640
- authentication: AuthenticationListAuthenticationList,
641
- }),
642
- ).annotate({ identifier: "AuthenticationList" }) as any as S.Schema<AuthenticationList>;
643
-
644
294
  export interface ListFlavorsRequest {
645
295
  /** Project identifier. */
646
296
  projectId: string;
647
297
  }
648
- export const ListFlavorsRequest = /*@__PURE__*/ S.suspend(() =>
649
- S.Struct({
650
- projectId: S.String.pipe(T.Label()),
651
- }).pipe(
652
- T.Http({
653
- method: "GET",
654
- uri: "/v1beta/projects/{projectId}/flavors",
655
- code: 200,
656
- baseUrl: "https://git.api.stackit.cloud",
657
- }),
658
- ),
659
- ).annotate({ identifier: "ListFlavorsRequest" }) as any as S.Schema<ListFlavorsRequest>;
660
-
661
298
  /** Defines the flavor availability. */
662
299
  export type FlavorAvailability = "available" | "unavailable" | "internal" | "deprecated";
663
- export const FlavorAvailability = S.String;
664
-
665
300
  /** Describes a STACKIT Git Flavor. */
666
301
  export interface Flavor {
667
302
  /** Defines the flavor availability. */
@@ -675,82 +310,24 @@ export interface Flavor {
675
310
  /** SAP article number. */
676
311
  sku: string;
677
312
  }
678
- export const Flavor = /*@__PURE__*/ S.suspend(() =>
679
- S.Struct({
680
- availability: FlavorAvailability,
681
- description: S.String,
682
- display_name: S.String,
683
- id: S.String,
684
- sku: S.String,
685
- }),
686
- ).annotate({ identifier: "Flavor" }) as any as S.Schema<Flavor>;
687
-
688
313
  export type ListFlavorsFlavorsList = Array<Flavor>;
689
- export const ListFlavorsFlavorsList = /*@__PURE__*/ S.Array(
690
- Flavor,
691
- ) as any as S.Schema<ListFlavorsFlavorsList>;
692
-
693
314
  /** A list of STACKIT Git Flavors. */
694
315
  export interface ListFlavors {
695
316
  flavors: ListFlavorsFlavorsList;
696
317
  }
697
- export const ListFlavors = /*@__PURE__*/ S.suspend(() =>
698
- S.Struct({
699
- flavors: ListFlavorsFlavorsList,
700
- }),
701
- ).annotate({ identifier: "ListFlavors" }) as any as S.Schema<ListFlavors>;
702
-
703
318
  export interface ListInstancesRequest {
704
319
  /** Project identifier. */
705
320
  projectId: string;
706
321
  }
707
- export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() =>
708
- S.Struct({
709
- projectId: S.String.pipe(T.Label()),
710
- }).pipe(
711
- T.Http({
712
- method: "GET",
713
- uri: "/v1beta/projects/{projectId}/instances",
714
- code: 200,
715
- baseUrl: "https://git.api.stackit.cloud",
716
- }),
717
- ),
718
- ).annotate({ identifier: "ListInstancesRequest" }) as any as S.Schema<ListInstancesRequest>;
719
-
720
322
  export type ListInstancesInstancesList = Array<Instance>;
721
- export const ListInstancesInstancesList = /*@__PURE__*/ S.Array(
722
- Instance,
723
- ) as any as S.Schema<ListInstancesInstancesList>;
724
-
725
323
  /** A list of STACKIT Git instances. */
726
324
  export interface ListInstances {
727
325
  instances: ListInstancesInstancesList;
728
326
  }
729
- export const ListInstances = /*@__PURE__*/ S.suspend(() =>
730
- S.Struct({
731
- instances: ListInstancesInstancesList,
732
- }),
733
- ).annotate({ identifier: "ListInstances" }) as any as S.Schema<ListInstances>;
734
-
735
327
  export interface ListRunnerRuntimesRequest {
736
328
  /** Project identifier. */
737
329
  projectId: string;
738
330
  }
739
- export const ListRunnerRuntimesRequest = /*@__PURE__*/ S.suspend(() =>
740
- S.Struct({
741
- projectId: S.String.pipe(T.Label()),
742
- }).pipe(
743
- T.Http({
744
- method: "GET",
745
- uri: "/v1beta/projects/{projectId}/runner-runtimes",
746
- code: 200,
747
- baseUrl: "https://git.api.stackit.cloud",
748
- }),
749
- ),
750
- ).annotate({
751
- identifier: "ListRunnerRuntimesRequest",
752
- }) as any as S.Schema<ListRunnerRuntimesRequest>;
753
-
754
331
  /** Describes a STACKIT Git Runner runtime. */
755
332
  export interface RunnerRuntime {
756
333
  /** Indicates the availability of the runner label */
@@ -764,31 +341,11 @@ export interface RunnerRuntime {
764
341
  /** Runtime label. */
765
342
  label: string;
766
343
  }
767
- export const RunnerRuntime = /*@__PURE__*/ S.suspend(() =>
768
- S.Struct({
769
- availability: S.String,
770
- description: S.String,
771
- display_name: S.String,
772
- id: S.String,
773
- label: S.String,
774
- }),
775
- ).annotate({ identifier: "RunnerRuntime" }) as any as S.Schema<RunnerRuntime>;
776
-
777
344
  export type RunnerRuntimeListItemsList = Array<RunnerRuntime>;
778
- export const RunnerRuntimeListItemsList = /*@__PURE__*/ S.Array(
779
- RunnerRuntime,
780
- ) as any as S.Schema<RunnerRuntimeListItemsList>;
781
-
782
345
  /** A list of STACKIT Git RunnerLabels. */
783
346
  export interface RunnerRuntimeList {
784
347
  items: RunnerRuntimeListItemsList;
785
348
  }
786
- export const RunnerRuntimeList = /*@__PURE__*/ S.suspend(() =>
787
- S.Struct({
788
- items: RunnerRuntimeListItemsList,
789
- }),
790
- ).annotate({ identifier: "RunnerRuntimeList" }) as any as S.Schema<RunnerRuntimeList>;
791
-
792
349
  export interface PatchAuthenticationRequest {
793
350
  /** Project identifier. */
794
351
  projectId: string;
@@ -809,29 +366,6 @@ export interface PatchAuthenticationRequest {
809
366
  /** Scopes defines the OIDC scopes to request. */
810
367
  scopes?: string;
811
368
  }
812
- export const PatchAuthenticationRequest = /*@__PURE__*/ S.suspend(() =>
813
- S.Struct({
814
- projectId: S.String.pipe(T.Label()),
815
- instanceId: S.String.pipe(T.Label()),
816
- authenticationId: S.String.pipe(T.Label()),
817
- auto_discover_url: S.optional(S.String),
818
- client_id: S.optional(S.String),
819
- client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
820
- icon_url: S.optional(S.String),
821
- provider: S.optional(S.String),
822
- scopes: S.optional(S.String),
823
- }).pipe(
824
- T.Http({
825
- method: "PATCH",
826
- uri: "/v1beta/projects/{projectId}/instances/{instanceId}/authentications/{authenticationId}",
827
- code: 200,
828
- baseUrl: "https://git.api.stackit.cloud",
829
- }),
830
- ),
831
- ).annotate({
832
- identifier: "PatchAuthenticationRequest",
833
- }) as any as S.Schema<PatchAuthenticationRequest>;
834
-
835
369
  export interface PatchInstanceRequest {
836
370
  /** Project identifier. */
837
371
  projectId: string;
@@ -843,24 +377,6 @@ export interface PatchInstanceRequest {
843
377
  feature_toggle?: FeatureToggle;
844
378
  labels?: Labels;
845
379
  }
846
- export const PatchInstanceRequest = /*@__PURE__*/ S.suspend(() =>
847
- S.Struct({
848
- projectId: S.String.pipe(T.Label()),
849
- instanceId: S.String.pipe(T.Label()),
850
- acl: S.optional(S.NullOr(Acl)),
851
- admin_login: S.optional(S.Boolean),
852
- feature_toggle: S.optional(FeatureToggle),
853
- labels: S.optional(Labels),
854
- }).pipe(
855
- T.Http({
856
- method: "PATCH",
857
- uri: "/v1beta/projects/{projectId}/instances/{instanceId}",
858
- code: 200,
859
- baseUrl: "https://git.api.stackit.cloud",
860
- }),
861
- ),
862
- ).annotate({ identifier: "PatchInstanceRequest" }) as any as S.Schema<PatchInstanceRequest>;
863
-
864
380
  export interface UpdateUserRequest {
865
381
  /** Project identifier. */
866
382
  projectId: string;
@@ -875,24 +391,6 @@ export interface UpdateUserRequest {
875
391
  /** A user password to allow user/pass instance login. */
876
392
  password?: string | Redacted.Redacted<string>;
877
393
  }
878
- export const UpdateUserRequest = /*@__PURE__*/ S.suspend(() =>
879
- S.Struct({
880
- projectId: S.String.pipe(T.Label()),
881
- instanceId: S.String.pipe(T.Label()),
882
- username: S.String.pipe(T.Label()),
883
- email: S.optional(S.String),
884
- name: S.optional(S.String),
885
- password: S.optional(S.String.pipe(T.SensitiveValue({}))),
886
- }).pipe(
887
- T.Http({
888
- method: "PATCH",
889
- uri: "/v1beta/projects/{projectId}/instances/{instanceId}/users/{username}",
890
- code: 200,
891
- baseUrl: "https://git.api.stackit.cloud",
892
- }),
893
- ),
894
- ).annotate({ identifier: "UpdateUserRequest" }) as any as S.Schema<UpdateUserRequest>;
895
-
896
394
  export type CreateAuthenticationError = BadRequest | NotFound | Conflict | StackitOpError;
897
395
  /** Creates an authentication source Creates an authentication source for the corresponding STACKIT Git instance */
898
396
  export const createAuthentication: API.OperationMethod<
@@ -901,8 +399,8 @@ export const createAuthentication: API.OperationMethod<
901
399
  CreateAuthenticationError,
902
400
  StackitOpContext
903
401
  > = /*@__PURE__*/ API.make(() => ({
904
- input: CreateAuthenticationRequest,
905
- output: Authentication,
402
+ input: __S(52, __c13, 0) as any as S.Schema<CreateAuthenticationRequest>,
403
+ output: __S(56, __c14, 0) as any as S.Schema<Authentication>,
906
404
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
907
405
  protocol: StackitProtocol,
908
406
  retry: Retry.Retry,
@@ -916,8 +414,8 @@ export const createInstance: API.OperationMethod<
916
414
  CreateInstanceError,
917
415
  StackitOpContext
918
416
  > = /*@__PURE__*/ API.make(() => ({
919
- input: CreateInstanceRequest,
920
- output: Instance,
417
+ input: __S(60, __c15, 0) as any as S.Schema<CreateInstanceRequest>,
418
+ output: __S(67, __c16, 3) as any as S.Schema<Instance>,
921
419
  errors: [BadRequest, Conflict, UnknownStackitError],
922
420
  protocol: StackitProtocol,
923
421
  retry: Retry.Retry,
@@ -931,8 +429,8 @@ export const createRunner: API.OperationMethod<
931
429
  CreateRunnerError,
932
430
  StackitOpContext
933
431
  > = /*@__PURE__*/ API.make(() => ({
934
- input: CreateRunnerRequest,
935
- output: Runner,
432
+ input: __S(72, __c18, 0) as any as S.Schema<CreateRunnerRequest>,
433
+ output: __S(76, __c19, 0) as any as S.Schema<Runner>,
936
434
  errors: [BadRequest, Conflict, UnknownStackitError],
937
435
  protocol: StackitProtocol,
938
436
  retry: Retry.Retry,
@@ -946,8 +444,8 @@ export const createUser: API.OperationMethod<
946
444
  CreateUserError,
947
445
  StackitOpContext
948
446
  > = /*@__PURE__*/ API.make(() => ({
949
- input: CreateUserRequest,
950
- output: User,
447
+ input: __S(80, __c20, 0) as any as S.Schema<CreateUserRequest>,
448
+ output: __S(84, __c21, 0) as any as S.Schema<User>,
951
449
  errors: [BadRequest, Conflict, UnknownStackitError],
952
450
  protocol: StackitProtocol,
953
451
  retry: Retry.Retry,
@@ -961,8 +459,8 @@ export const deleteAuthentication: API.OperationMethod<
961
459
  DeleteAuthenticationError,
962
460
  StackitOpContext
963
461
  > = /*@__PURE__*/ API.make(() => ({
964
- input: DeleteAuthenticationRequest,
965
- output: DeleteAuthenticationResponse,
462
+ input: __S(88, __c22, 0) as any as S.Schema<DeleteAuthenticationRequest>,
463
+ output: __S(92, __c23, 0) as any as S.Schema<DeleteAuthenticationResponse>,
966
464
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
967
465
  protocol: StackitProtocol,
968
466
  retry: Retry.Retry,
@@ -976,8 +474,8 @@ export const deleteInstance: API.OperationMethod<
976
474
  DeleteInstanceError,
977
475
  StackitOpContext
978
476
  > = /*@__PURE__*/ API.make(() => ({
979
- input: DeleteInstanceRequest,
980
- output: DeleteInstanceResponse,
477
+ input: __S(96, __c24, 0) as any as S.Schema<DeleteInstanceRequest>,
478
+ output: __S(92, __c23, 0) as any as S.Schema<DeleteInstanceResponse>,
981
479
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
982
480
  protocol: StackitProtocol,
983
481
  retry: Retry.Retry,
@@ -991,8 +489,8 @@ export const deleteRunner: API.OperationMethod<
991
489
  DeleteRunnerError,
992
490
  StackitOpContext
993
491
  > = /*@__PURE__*/ API.make(() => ({
994
- input: DeleteRunnerRequest,
995
- output: DeleteRunnerResponse,
492
+ input: __S(100, __c25, 0) as any as S.Schema<DeleteRunnerRequest>,
493
+ output: __S(92, __c23, 0) as any as S.Schema<DeleteRunnerResponse>,
996
494
  errors: [BadRequest, NotFound, UnknownStackitError],
997
495
  protocol: StackitProtocol,
998
496
  retry: Retry.Retry,
@@ -1006,8 +504,8 @@ export const deleteUser: API.OperationMethod<
1006
504
  DeleteUserError,
1007
505
  StackitOpContext
1008
506
  > = /*@__PURE__*/ API.make(() => ({
1009
- input: DeleteUserRequest,
1010
- output: DeleteUserResponse,
507
+ input: __S(0, __c0, 0) as any as S.Schema<DeleteUserRequest>,
508
+ output: __S(92, __c23, 0) as any as S.Schema<DeleteUserResponse>,
1011
509
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1012
510
  protocol: StackitProtocol,
1013
511
  retry: Retry.Retry,
@@ -1021,8 +519,8 @@ export const getAuthentication: API.OperationMethod<
1021
519
  GetAuthenticationError,
1022
520
  StackitOpContext
1023
521
  > = /*@__PURE__*/ API.make(() => ({
1024
- input: GetAuthenticationRequest,
1025
- output: Authentication,
522
+ input: __S(4, __c1, 0) as any as S.Schema<GetAuthenticationRequest>,
523
+ output: __S(56, __c14, 0) as any as S.Schema<Authentication>,
1026
524
  errors: [BadRequest, UnknownStackitError],
1027
525
  protocol: StackitProtocol,
1028
526
  retry: Retry.Retry,
@@ -1036,8 +534,8 @@ export const getInstance: API.OperationMethod<
1036
534
  GetInstanceError,
1037
535
  StackitOpContext
1038
536
  > = /*@__PURE__*/ API.make(() => ({
1039
- input: GetInstanceRequest,
1040
- output: Instance,
537
+ input: __S(8, __c2, 0) as any as S.Schema<GetInstanceRequest>,
538
+ output: __S(67, __c16, 3) as any as S.Schema<Instance>,
1041
539
  errors: [BadRequest, NotFound, UnknownStackitError],
1042
540
  protocol: StackitProtocol,
1043
541
  retry: Retry.Retry,
@@ -1051,8 +549,8 @@ export const getRunner: API.OperationMethod<
1051
549
  GetRunnerError,
1052
550
  StackitOpContext
1053
551
  > = /*@__PURE__*/ API.make(() => ({
1054
- input: GetRunnerRequest,
1055
- output: Runner,
552
+ input: __S(12, __c3, 0) as any as S.Schema<GetRunnerRequest>,
553
+ output: __S(76, __c19, 0) as any as S.Schema<Runner>,
1056
554
  errors: [BadRequest, NotFound, UnknownStackitError],
1057
555
  protocol: StackitProtocol,
1058
556
  retry: Retry.Retry,
@@ -1066,8 +564,8 @@ export const getUser: API.OperationMethod<
1066
564
  GetUserError,
1067
565
  StackitOpContext
1068
566
  > = /*@__PURE__*/ API.make(() => ({
1069
- input: GetUserRequest,
1070
- output: GetUserResponse,
567
+ input: __S(16, __c4, 0) as any as S.Schema<GetUserRequest>,
568
+ output: __S(92, __c23, 0) as any as S.Schema<GetUserResponse>,
1071
569
  errors: [BadRequest, NotFound, UnknownStackitError],
1072
570
  protocol: StackitProtocol,
1073
571
  retry: Retry.Retry,
@@ -1081,8 +579,8 @@ export const getUsers: API.OperationMethod<
1081
579
  GetUsersError,
1082
580
  StackitOpContext
1083
581
  > = /*@__PURE__*/ API.make(() => ({
1084
- input: GetUsersRequest,
1085
- output: ListUsers,
582
+ input: __S(20, __c5, 0) as any as S.Schema<GetUsersRequest>,
583
+ output: __S(22, __c5, 2) as any as S.Schema<ListUsers>,
1086
584
  errors: [BadRequest, UnknownStackitError],
1087
585
  protocol: StackitProtocol,
1088
586
  retry: Retry.Retry,
@@ -1096,8 +594,8 @@ export const listAuthentication: API.OperationMethod<
1096
594
  ListAuthenticationError,
1097
595
  StackitOpContext
1098
596
  > = /*@__PURE__*/ API.make(() => ({
1099
- input: ListAuthenticationRequest,
1100
- output: AuthenticationList,
597
+ input: __S(24, __c6, 0) as any as S.Schema<ListAuthenticationRequest>,
598
+ output: __S(26, __c6, 2) as any as S.Schema<AuthenticationList>,
1101
599
  errors: [BadRequest, UnknownStackitError],
1102
600
  protocol: StackitProtocol,
1103
601
  retry: Retry.Retry,
@@ -1111,8 +609,8 @@ export const listFlavors2: API.OperationMethod<
1111
609
  ListFlavors2Error,
1112
610
  StackitOpContext
1113
611
  > = /*@__PURE__*/ API.make(() => ({
1114
- input: ListFlavorsRequest,
1115
- output: ListFlavors,
612
+ input: __S(28, __c7, 0) as any as S.Schema<ListFlavorsRequest>,
613
+ output: __S(31, __c7, 3) as any as S.Schema<ListFlavors>,
1116
614
  errors: [BadRequest, NotFound, UnknownStackitError],
1117
615
  protocol: StackitProtocol,
1118
616
  retry: Retry.Retry,
@@ -1126,8 +624,8 @@ export const listInstances2: API.OperationMethod<
1126
624
  ListInstances2Error,
1127
625
  StackitOpContext
1128
626
  > = /*@__PURE__*/ API.make(() => ({
1129
- input: ListInstancesRequest,
1130
- output: ListInstances,
627
+ input: __S(32, __c8, 0) as any as S.Schema<ListInstancesRequest>,
628
+ output: __S(34, __c8, 2) as any as S.Schema<ListInstances>,
1131
629
  errors: [BadRequest, UnknownStackitError],
1132
630
  protocol: StackitProtocol,
1133
631
  retry: Retry.Retry,
@@ -1141,8 +639,8 @@ export const listRunnerRuntimes: API.OperationMethod<
1141
639
  ListRunnerRuntimesError,
1142
640
  StackitOpContext
1143
641
  > = /*@__PURE__*/ API.make(() => ({
1144
- input: ListRunnerRuntimesRequest,
1145
- output: RunnerRuntimeList,
642
+ input: __S(36, __c9, 0) as any as S.Schema<ListRunnerRuntimesRequest>,
643
+ output: __S(39, __c9, 3) as any as S.Schema<RunnerRuntimeList>,
1146
644
  errors: [BadRequest, NotFound, UnknownStackitError],
1147
645
  protocol: StackitProtocol,
1148
646
  retry: Retry.Retry,
@@ -1156,8 +654,8 @@ export const patchAuthentication: API.OperationMethod<
1156
654
  PatchAuthenticationError,
1157
655
  StackitOpContext
1158
656
  > = /*@__PURE__*/ API.make(() => ({
1159
- input: PatchAuthenticationRequest,
1160
- output: Authentication,
657
+ input: __S(40, __c10, 0) as any as S.Schema<PatchAuthenticationRequest>,
658
+ output: __S(56, __c14, 0) as any as S.Schema<Authentication>,
1161
659
  errors: [BadRequest, NotFound, UnknownStackitError],
1162
660
  protocol: StackitProtocol,
1163
661
  retry: Retry.Retry,
@@ -1171,8 +669,8 @@ export const patchInstance: API.OperationMethod<
1171
669
  PatchInstanceError,
1172
670
  StackitOpContext
1173
671
  > = /*@__PURE__*/ API.make(() => ({
1174
- input: PatchInstanceRequest,
1175
- output: Instance,
672
+ input: __S(44, __c11, 0) as any as S.Schema<PatchInstanceRequest>,
673
+ output: __S(67, __c16, 3) as any as S.Schema<Instance>,
1176
674
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1177
675
  protocol: StackitProtocol,
1178
676
  retry: Retry.Retry,
@@ -1186,9 +684,566 @@ export const updateUser: API.OperationMethod<
1186
684
  UpdateUserError,
1187
685
  StackitOpContext
1188
686
  > = /*@__PURE__*/ API.make(() => ({
1189
- input: UpdateUserRequest,
1190
- output: User,
687
+ input: __S(48, __c12, 0) as any as S.Schema<UpdateUserRequest>,
688
+ output: __S(84, __c21, 0) as any as S.Schema<User>,
1191
689
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1192
690
  protocol: StackitProtocol,
1193
691
  retry: Retry.Retry,
1194
692
  }));
693
+
694
+ // Schema builders: each runs one schema initializer, on that schema's first use.
695
+ function __c0(j: number): any {
696
+ switch (j) {
697
+ case 0:
698
+ return S.suspend(() =>
699
+ S.Struct({
700
+ projectId: S.String.pipe(T.Label()),
701
+ instanceId: S.String.pipe(T.Label()),
702
+ username: S.String.pipe(T.Label()),
703
+ }).pipe(
704
+ T.Http({
705
+ method: "DELETE",
706
+ uri: "/v1beta/projects/{projectId}/instances/{instanceId}/users/{username}",
707
+ code: 200,
708
+ baseUrl: "https://git.api.stackit.cloud",
709
+ }),
710
+ ),
711
+ ).annotate({ identifier: "DeleteUserRequest" });
712
+ }
713
+ }
714
+ function __c1(j: number): any {
715
+ switch (j) {
716
+ case 0:
717
+ return S.suspend(() =>
718
+ S.Struct({
719
+ projectId: S.String.pipe(T.Label()),
720
+ instanceId: S.String.pipe(T.Label()),
721
+ authenticationId: S.String.pipe(T.Label()),
722
+ }).pipe(
723
+ T.Http({
724
+ method: "GET",
725
+ uri: "/v1beta/projects/{projectId}/instances/{instanceId}/authentications/{authenticationId}",
726
+ code: 200,
727
+ baseUrl: "https://git.api.stackit.cloud",
728
+ }),
729
+ ),
730
+ ).annotate({ identifier: "GetAuthenticationRequest" });
731
+ }
732
+ }
733
+ function __c2(j: number): any {
734
+ switch (j) {
735
+ case 0:
736
+ return S.suspend(() =>
737
+ S.Struct({
738
+ projectId: S.String.pipe(T.Label()),
739
+ instanceId: S.String.pipe(T.Label()),
740
+ }).pipe(
741
+ T.Http({
742
+ method: "GET",
743
+ uri: "/v1beta/projects/{projectId}/instances/{instanceId}",
744
+ code: 200,
745
+ baseUrl: "https://git.api.stackit.cloud",
746
+ }),
747
+ ),
748
+ ).annotate({ identifier: "GetInstanceRequest" });
749
+ }
750
+ }
751
+ function __c3(j: number): any {
752
+ switch (j) {
753
+ case 0:
754
+ return S.suspend(() =>
755
+ S.Struct({
756
+ projectId: S.String.pipe(T.Label()),
757
+ instanceId: S.String.pipe(T.Label()),
758
+ }).pipe(
759
+ T.Http({
760
+ method: "GET",
761
+ uri: "/v1beta/projects/{projectId}/instances/{instanceId}/runner",
762
+ code: 200,
763
+ baseUrl: "https://git.api.stackit.cloud",
764
+ }),
765
+ ),
766
+ ).annotate({ identifier: "GetRunnerRequest" });
767
+ }
768
+ }
769
+ function __c4(j: number): any {
770
+ switch (j) {
771
+ case 0:
772
+ return S.suspend(() =>
773
+ S.Struct({
774
+ projectId: S.String.pipe(T.Label()),
775
+ instanceId: S.String.pipe(T.Label()),
776
+ username: S.String.pipe(T.Label()),
777
+ }).pipe(
778
+ T.Http({
779
+ method: "GET",
780
+ uri: "/v1beta/projects/{projectId}/instances/{instanceId}/users/{username}",
781
+ code: 200,
782
+ baseUrl: "https://git.api.stackit.cloud",
783
+ }),
784
+ ),
785
+ ).annotate({ identifier: "GetUserRequest" });
786
+ }
787
+ }
788
+ function __c5(j: number): any {
789
+ switch (j) {
790
+ case 0:
791
+ return S.suspend(() =>
792
+ S.Struct({
793
+ projectId: S.String.pipe(T.Label()),
794
+ instanceId: S.String.pipe(T.Label()),
795
+ page: S.optional(S.Number.pipe(T.Query())),
796
+ }).pipe(
797
+ T.Http({
798
+ method: "GET",
799
+ uri: "/v1beta/projects/{projectId}/instances/{instanceId}/users",
800
+ code: 200,
801
+ baseUrl: "https://git.api.stackit.cloud",
802
+ }),
803
+ ),
804
+ ).annotate({ identifier: "GetUsersRequest" });
805
+ case 1:
806
+ return S.Array(__S(84, __c21, 0));
807
+ case 2:
808
+ return S.suspend(() =>
809
+ S.Struct({
810
+ itemsCount: S.Number,
811
+ offset: S.Number,
812
+ totalPages: S.Number,
813
+ users: __S(21, __c5, 1),
814
+ }),
815
+ ).annotate({ identifier: "ListUsers" });
816
+ }
817
+ }
818
+ function __c6(j: number): any {
819
+ switch (j) {
820
+ case 0:
821
+ return S.suspend(() =>
822
+ S.Struct({
823
+ projectId: S.String.pipe(T.Label()),
824
+ instanceId: S.String.pipe(T.Label()),
825
+ }).pipe(
826
+ T.Http({
827
+ method: "GET",
828
+ uri: "/v1beta/projects/{projectId}/instances/{instanceId}/authentications",
829
+ code: 200,
830
+ baseUrl: "https://git.api.stackit.cloud",
831
+ }),
832
+ ),
833
+ ).annotate({ identifier: "ListAuthenticationRequest" });
834
+ case 1:
835
+ return S.Array(__S(56, __c14, 0));
836
+ case 2:
837
+ return S.suspend(() =>
838
+ S.Struct({
839
+ authentication: __S(25, __c6, 1),
840
+ }),
841
+ ).annotate({ identifier: "AuthenticationList" });
842
+ }
843
+ }
844
+ function __c7(j: number): any {
845
+ switch (j) {
846
+ case 0:
847
+ return S.suspend(() =>
848
+ S.Struct({
849
+ projectId: S.String.pipe(T.Label()),
850
+ }).pipe(
851
+ T.Http({
852
+ method: "GET",
853
+ uri: "/v1beta/projects/{projectId}/flavors",
854
+ code: 200,
855
+ baseUrl: "https://git.api.stackit.cloud",
856
+ }),
857
+ ),
858
+ ).annotate({ identifier: "ListFlavorsRequest" });
859
+ case 1:
860
+ return S.suspend(() =>
861
+ S.Struct({
862
+ availability: S.String,
863
+ description: S.String,
864
+ display_name: S.String,
865
+ id: S.String,
866
+ sku: S.String,
867
+ }),
868
+ ).annotate({ identifier: "Flavor" });
869
+ case 2:
870
+ return S.Array(__S(29, __c7, 1));
871
+ case 3:
872
+ return S.suspend(() =>
873
+ S.Struct({
874
+ flavors: __S(30, __c7, 2),
875
+ }),
876
+ ).annotate({ identifier: "ListFlavors" });
877
+ }
878
+ }
879
+ function __c8(j: number): any {
880
+ switch (j) {
881
+ case 0:
882
+ return S.suspend(() =>
883
+ S.Struct({
884
+ projectId: S.String.pipe(T.Label()),
885
+ }).pipe(
886
+ T.Http({
887
+ method: "GET",
888
+ uri: "/v1beta/projects/{projectId}/instances",
889
+ code: 200,
890
+ baseUrl: "https://git.api.stackit.cloud",
891
+ }),
892
+ ),
893
+ ).annotate({ identifier: "ListInstancesRequest" });
894
+ case 1:
895
+ return S.Array(__S(67, __c16, 3));
896
+ case 2:
897
+ return S.suspend(() =>
898
+ S.Struct({
899
+ instances: __S(33, __c8, 1),
900
+ }),
901
+ ).annotate({ identifier: "ListInstances" });
902
+ }
903
+ }
904
+ function __c9(j: number): any {
905
+ switch (j) {
906
+ case 0:
907
+ return S.suspend(() =>
908
+ S.Struct({
909
+ projectId: S.String.pipe(T.Label()),
910
+ }).pipe(
911
+ T.Http({
912
+ method: "GET",
913
+ uri: "/v1beta/projects/{projectId}/runner-runtimes",
914
+ code: 200,
915
+ baseUrl: "https://git.api.stackit.cloud",
916
+ }),
917
+ ),
918
+ ).annotate({ identifier: "ListRunnerRuntimesRequest" });
919
+ case 1:
920
+ return S.suspend(() =>
921
+ S.Struct({
922
+ availability: S.String,
923
+ description: S.String,
924
+ display_name: S.String,
925
+ id: S.String,
926
+ label: S.String,
927
+ }),
928
+ ).annotate({ identifier: "RunnerRuntime" });
929
+ case 2:
930
+ return S.Array(__S(37, __c9, 1));
931
+ case 3:
932
+ return S.suspend(() =>
933
+ S.Struct({
934
+ items: __S(38, __c9, 2),
935
+ }),
936
+ ).annotate({ identifier: "RunnerRuntimeList" });
937
+ }
938
+ }
939
+ function __c10(j: number): any {
940
+ switch (j) {
941
+ case 0:
942
+ return S.suspend(() =>
943
+ S.Struct({
944
+ projectId: S.String.pipe(T.Label()),
945
+ instanceId: S.String.pipe(T.Label()),
946
+ authenticationId: S.String.pipe(T.Label()),
947
+ auto_discover_url: S.optional(S.String),
948
+ client_id: S.optional(S.String),
949
+ client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
950
+ icon_url: S.optional(S.String),
951
+ provider: S.optional(S.String),
952
+ scopes: S.optional(S.String),
953
+ }).pipe(
954
+ T.Http({
955
+ method: "PATCH",
956
+ uri: "/v1beta/projects/{projectId}/instances/{instanceId}/authentications/{authenticationId}",
957
+ code: 200,
958
+ baseUrl: "https://git.api.stackit.cloud",
959
+ }),
960
+ ),
961
+ ).annotate({ identifier: "PatchAuthenticationRequest" });
962
+ }
963
+ }
964
+ function __c11(j: number): any {
965
+ switch (j) {
966
+ case 0:
967
+ return S.suspend(() =>
968
+ S.Struct({
969
+ projectId: S.String.pipe(T.Label()),
970
+ instanceId: S.String.pipe(T.Label()),
971
+ acl: S.optional(S.NullOr(__S(68, __c17, 0))),
972
+ admin_login: S.optional(S.Boolean),
973
+ feature_toggle: S.optional(__S(65, __c16, 1)),
974
+ labels: S.optional(__S(66, __c16, 2)),
975
+ }).pipe(
976
+ T.Http({
977
+ method: "PATCH",
978
+ uri: "/v1beta/projects/{projectId}/instances/{instanceId}",
979
+ code: 200,
980
+ baseUrl: "https://git.api.stackit.cloud",
981
+ }),
982
+ ),
983
+ ).annotate({ identifier: "PatchInstanceRequest" });
984
+ }
985
+ }
986
+ function __c12(j: number): any {
987
+ switch (j) {
988
+ case 0:
989
+ return S.suspend(() =>
990
+ S.Struct({
991
+ projectId: S.String.pipe(T.Label()),
992
+ instanceId: S.String.pipe(T.Label()),
993
+ username: S.String.pipe(T.Label()),
994
+ email: S.optional(S.String),
995
+ name: S.optional(S.String),
996
+ password: S.optional(S.String.pipe(T.SensitiveValue({}))),
997
+ }).pipe(
998
+ T.Http({
999
+ method: "PATCH",
1000
+ uri: "/v1beta/projects/{projectId}/instances/{instanceId}/users/{username}",
1001
+ code: 200,
1002
+ baseUrl: "https://git.api.stackit.cloud",
1003
+ }),
1004
+ ),
1005
+ ).annotate({ identifier: "UpdateUserRequest" });
1006
+ }
1007
+ }
1008
+ function __c13(j: number): any {
1009
+ switch (j) {
1010
+ case 0:
1011
+ return S.suspend(() =>
1012
+ S.Struct({
1013
+ projectId: S.String.pipe(T.Label()),
1014
+ instanceId: S.String.pipe(T.Label()),
1015
+ auto_discover_url: S.String,
1016
+ client_id: S.String,
1017
+ client_secret: S.String.pipe(T.SensitiveValue({})),
1018
+ icon_url: S.optional(S.String),
1019
+ name: S.String,
1020
+ provider: S.optional(S.String),
1021
+ scopes: S.optional(S.String),
1022
+ }).pipe(
1023
+ T.Http({
1024
+ method: "POST",
1025
+ uri: "/v1beta/projects/{projectId}/instances/{instanceId}/authentications",
1026
+ code: 200,
1027
+ baseUrl: "https://git.api.stackit.cloud",
1028
+ }),
1029
+ ),
1030
+ ).annotate({ identifier: "CreateAuthenticationRequest" });
1031
+ }
1032
+ }
1033
+ function __c14(j: number): any {
1034
+ switch (j) {
1035
+ case 0:
1036
+ return S.suspend(() =>
1037
+ S.Struct({
1038
+ auto_discover_url: S.String,
1039
+ client_id: S.String,
1040
+ created_at: S.String,
1041
+ icon_url: S.String,
1042
+ id: S.String,
1043
+ name: S.String,
1044
+ provider: S.String,
1045
+ scopes: S.String,
1046
+ status: S.String,
1047
+ status_message: S.optional(S.String),
1048
+ }),
1049
+ ).annotate({ identifier: "Authentication" });
1050
+ }
1051
+ }
1052
+ function __c15(j: number): any {
1053
+ switch (j) {
1054
+ case 0:
1055
+ return S.suspend(() =>
1056
+ S.Struct({
1057
+ projectId: S.String.pipe(T.Label()),
1058
+ acl: S.optional(__S(68, __c17, 0)),
1059
+ flavor: S.optional(S.String),
1060
+ name: S.String,
1061
+ }).pipe(
1062
+ T.Http({
1063
+ method: "POST",
1064
+ uri: "/v1beta/projects/{projectId}/instances",
1065
+ code: 200,
1066
+ baseUrl: "https://git.api.stackit.cloud",
1067
+ }),
1068
+ ),
1069
+ ).annotate({ identifier: "CreateInstanceRequest" });
1070
+ }
1071
+ }
1072
+ function __c16(j: number): any {
1073
+ switch (j) {
1074
+ case 0:
1075
+ return S.suspend(() =>
1076
+ S.Struct({
1077
+ action_url: S.optional(S.NullOr(S.String)),
1078
+ enabled: S.optional(S.NullOr(S.Boolean)),
1079
+ }),
1080
+ ).annotate({ identifier: "Pipelines" });
1081
+ case 1:
1082
+ return S.suspend(() =>
1083
+ S.Struct({
1084
+ default_email_notifications: S.optional(S.NullOr(S.String)),
1085
+ enable_local_login: S.optional(S.NullOr(S.Boolean)),
1086
+ pipelines: S.optional(__S(64, __c16, 0)),
1087
+ }),
1088
+ ).annotate({ identifier: "FeatureToggle" });
1089
+ case 2:
1090
+ return S.Record(S.String, S.String);
1091
+ case 3:
1092
+ return S.suspend(() =>
1093
+ S.Struct({
1094
+ acl: __S(68, __c17, 0),
1095
+ admin_login: S.Boolean,
1096
+ consumed_disk: S.String,
1097
+ consumed_object_storage: S.String,
1098
+ created: S.String,
1099
+ feature_toggle: __S(65, __c16, 1),
1100
+ flavor: S.String,
1101
+ id: S.String,
1102
+ labels: S.optional(__S(66, __c16, 2)),
1103
+ name: S.String,
1104
+ state: S.String,
1105
+ url: S.String,
1106
+ version: S.String,
1107
+ }),
1108
+ ).annotate({ identifier: "Instance" });
1109
+ }
1110
+ }
1111
+ function __c17(j: number): any {
1112
+ switch (j) {
1113
+ case 0:
1114
+ return S.Array(S.String);
1115
+ }
1116
+ }
1117
+ function __c18(j: number): any {
1118
+ switch (j) {
1119
+ case 0:
1120
+ return S.suspend(() =>
1121
+ S.Struct({
1122
+ projectId: S.String.pipe(T.Label()),
1123
+ instanceId: S.String.pipe(T.Label()),
1124
+ labels: __S(68, __c17, 0),
1125
+ }).pipe(
1126
+ T.Http({
1127
+ method: "POST",
1128
+ uri: "/v1beta/projects/{projectId}/instances/{instanceId}/runner",
1129
+ code: 200,
1130
+ baseUrl: "https://git.api.stackit.cloud",
1131
+ }),
1132
+ ),
1133
+ ).annotate({ identifier: "CreateRunnerRequest" });
1134
+ }
1135
+ }
1136
+ function __c19(j: number): any {
1137
+ switch (j) {
1138
+ case 0:
1139
+ return S.suspend(() =>
1140
+ S.Struct({
1141
+ created_at: S.String,
1142
+ id: S.String,
1143
+ labels: __S(68, __c17, 0),
1144
+ status: S.String,
1145
+ }),
1146
+ ).annotate({ identifier: "Runner" });
1147
+ }
1148
+ }
1149
+ function __c20(j: number): any {
1150
+ switch (j) {
1151
+ case 0:
1152
+ return S.suspend(() =>
1153
+ S.Struct({
1154
+ projectId: S.String.pipe(T.Label()),
1155
+ instanceId: S.String.pipe(T.Label()),
1156
+ email: S.String,
1157
+ force_send_reset_password: S.optional(S.Boolean),
1158
+ name: S.String,
1159
+ password: S.String.pipe(T.SensitiveValue({})),
1160
+ username: S.String,
1161
+ }).pipe(
1162
+ T.Http({
1163
+ method: "POST",
1164
+ uri: "/v1beta/projects/{projectId}/instances/{instanceId}/users",
1165
+ code: 200,
1166
+ baseUrl: "https://git.api.stackit.cloud",
1167
+ }),
1168
+ ),
1169
+ ).annotate({ identifier: "CreateUserRequest" });
1170
+ }
1171
+ }
1172
+ function __c21(j: number): any {
1173
+ switch (j) {
1174
+ case 0:
1175
+ return S.suspend(() =>
1176
+ S.Struct({
1177
+ email: S.String,
1178
+ id: S.optional(S.Number),
1179
+ name: S.String,
1180
+ username: S.String,
1181
+ }),
1182
+ ).annotate({ identifier: "User" });
1183
+ }
1184
+ }
1185
+ function __c22(j: number): any {
1186
+ switch (j) {
1187
+ case 0:
1188
+ return S.suspend(() =>
1189
+ S.Struct({
1190
+ projectId: S.String.pipe(T.Label()),
1191
+ instanceId: S.String.pipe(T.Label()),
1192
+ authenticationId: S.String.pipe(T.Label()),
1193
+ }).pipe(
1194
+ T.Http({
1195
+ method: "DELETE",
1196
+ uri: "/v1beta/projects/{projectId}/instances/{instanceId}/authentications/{authenticationId}",
1197
+ code: 200,
1198
+ baseUrl: "https://git.api.stackit.cloud",
1199
+ }),
1200
+ ),
1201
+ ).annotate({ identifier: "DeleteAuthenticationRequest" });
1202
+ }
1203
+ }
1204
+ function __c23(j: number): any {
1205
+ switch (j) {
1206
+ case 0:
1207
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteAuthenticationResponse" });
1208
+ }
1209
+ }
1210
+ function __c24(j: number): any {
1211
+ switch (j) {
1212
+ case 0:
1213
+ return S.suspend(() =>
1214
+ S.Struct({
1215
+ projectId: S.String.pipe(T.Label()),
1216
+ instanceId: S.String.pipe(T.Label()),
1217
+ }).pipe(
1218
+ T.Http({
1219
+ method: "DELETE",
1220
+ uri: "/v1beta/projects/{projectId}/instances/{instanceId}",
1221
+ code: 200,
1222
+ baseUrl: "https://git.api.stackit.cloud",
1223
+ }),
1224
+ ),
1225
+ ).annotate({ identifier: "DeleteInstanceRequest" });
1226
+ }
1227
+ }
1228
+ function __c25(j: number): any {
1229
+ switch (j) {
1230
+ case 0:
1231
+ return S.suspend(() =>
1232
+ S.Struct({
1233
+ projectId: S.String.pipe(T.Label()),
1234
+ instanceId: S.String.pipe(T.Label()),
1235
+ }).pipe(
1236
+ T.Http({
1237
+ method: "DELETE",
1238
+ uri: "/v1beta/projects/{projectId}/instances/{instanceId}/runner",
1239
+ code: 200,
1240
+ baseUrl: "https://git.api.stackit.cloud",
1241
+ }),
1242
+ ),
1243
+ ).annotate({ identifier: "DeleteRunnerRequest" });
1244
+ }
1245
+ }
1246
+ // Schema table: entry i is schema j of builder f, made on first reach.
1247
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1248
+ return (__s[i] ??= __L.at(f, j));
1249
+ }