@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.13

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