@distilled.cloud/stackit 1.0.0-rc.13 → 1.0.0-rc.15
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.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +3 -3
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/pagination.js +2 -5
- package/lib/pagination.js.map +1 -1
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +9 -10
- package/lib/protocol.js.map +1 -1
- package/lib/protocol.test.d.ts +2 -0
- package/lib/protocol.test.d.ts.map +1 -0
- package/lib/protocol.test.js +181 -0
- package/lib/protocol.test.js.map +1 -0
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -1
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +1 -1
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +33 -82
- package/lib/services/alb.js.map +1 -1
- package/lib/services/alb_waf.d.ts +1 -1
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +23 -47
- package/lib/services/alb_waf.js.map +1 -1
- package/lib/services/authorization.d.ts +1 -1
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +19 -49
- package/lib/services/authorization.js.map +1 -1
- package/lib/services/automation.d.ts +21 -58
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +49 -112
- package/lib/services/automation.js.map +1 -1
- package/lib/services/cdn.d.ts +2 -2
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +91 -177
- package/lib/services/cdn.js.map +1 -1
- package/lib/services/certificates.d.ts +1 -1
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +13 -31
- package/lib/services/certificates.js.map +1 -1
- package/lib/services/cost.d.ts +1 -1
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +17 -28
- package/lib/services/cost.js.map +1 -1
- package/lib/services/dns.d.ts +22 -55
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +72 -200
- package/lib/services/dns.js.map +1 -1
- package/lib/services/dremio.d.ts +1 -1
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +28 -50
- package/lib/services/dremio.js.map +1 -1
- package/lib/services/edge.d.ts +1 -1
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +14 -32
- package/lib/services/edge.js.map +1 -1
- package/lib/services/functions.d.ts +1 -1
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +19 -43
- package/lib/services/functions.js.map +1 -1
- package/lib/services/git.d.ts +1 -1
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +25 -57
- package/lib/services/git.js.map +1 -1
- package/lib/services/iaas.d.ts +31 -10
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +151 -376
- package/lib/services/iaas.js.map +1 -1
- package/lib/services/intake.d.ts +1 -1
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +45 -83
- package/lib/services/intake.js.map +1 -1
- package/lib/services/kms.d.ts +1 -1
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +63 -103
- package/lib/services/kms.js.map +1 -1
- package/lib/services/lb_ip_lists.d.ts +1 -3
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +18 -37
- package/lib/services/lb_ip_lists.js.map +1 -1
- package/lib/services/load_balancer.d.ts +1 -1
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +32 -77
- package/lib/services/load_balancer.js.map +1 -1
- package/lib/services/logme.d.ts +1 -1
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +39 -101
- package/lib/services/logme.js.map +1 -1
- package/lib/services/logs.d.ts +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +36 -59
- package/lib/services/logs.js.map +1 -1
- package/lib/services/mariadb.d.ts +1 -1
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +37 -97
- package/lib/services/mariadb.js.map +1 -1
- package/lib/services/model_experiments.d.ts +2 -2
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +27 -47
- package/lib/services/model_experiments.js.map +1 -1
- package/lib/services/model_serving.d.ts +2 -2
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +29 -61
- package/lib/services/model_serving.js.map +1 -1
- package/lib/services/mongodb_flex.d.ts +1 -1
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +76 -162
- package/lib/services/mongodb_flex.js.map +1 -1
- package/lib/services/object_storage.d.ts +25 -1
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +52 -89
- package/lib/services/object_storage.js.map +1 -1
- package/lib/services/observability.d.ts +5 -5
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +170 -419
- package/lib/services/observability.js.map +1 -1
- package/lib/services/opensearch.d.ts +1 -1
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +40 -100
- package/lib/services/opensearch.js.map +1 -1
- package/lib/services/pim.d.ts +1 -1
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +45 -98
- package/lib/services/pim.js.map +1 -1
- package/lib/services/postgres_flex.d.ts +2 -2
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +96 -261
- package/lib/services/postgres_flex.js.map +1 -1
- package/lib/services/pubsub.d.ts +2 -2
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +53 -148
- package/lib/services/pubsub.js.map +1 -1
- package/lib/services/rabbitmq.d.ts +2 -2
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +41 -103
- package/lib/services/rabbitmq.js.map +1 -1
- package/lib/services/registry.d.ts +1 -1
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +16 -39
- package/lib/services/registry.js.map +1 -1
- package/lib/services/resource_manager.d.ts +5 -5
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +23 -53
- package/lib/services/resource_manager.js.map +1 -1
- package/lib/services/run_command.d.ts +1 -1
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +15 -33
- package/lib/services/run_command.js.map +1 -1
- package/lib/services/sca.d.ts +18 -6
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +42 -75
- package/lib/services/sca.js.map +1 -1
- package/lib/services/scf.d.ts +1 -1
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +30 -78
- package/lib/services/scf.js.map +1 -1
- package/lib/services/secrets_manager.d.ts +1 -1
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +32 -78
- package/lib/services/secrets_manager.js.map +1 -1
- package/lib/services/server_backup.d.ts +1 -1
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +16 -36
- package/lib/services/server_backup.js.map +1 -1
- package/lib/services/server_update.d.ts +1 -1
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +10 -22
- package/lib/services/server_update.js.map +1 -1
- package/lib/services/service_account.d.ts +1 -1
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +32 -49
- package/lib/services/service_account.js.map +1 -1
- package/lib/services/service_enablement.d.ts +1 -1
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +11 -13
- package/lib/services/service_enablement.js.map +1 -1
- package/lib/services/sfs.d.ts +17 -17
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +34 -89
- package/lib/services/sfs.js.map +1 -1
- package/lib/services/ske.d.ts +27 -1
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +49 -89
- package/lib/services/ske.js.map +1 -1
- package/lib/services/sqlserverflex.d.ts +2 -2
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +104 -255
- package/lib/services/sqlserverflex.js.map +1 -1
- package/lib/services/stackit_marketplace.d.ts +4 -4
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +17 -31
- package/lib/services/stackit_marketplace.js.map +1 -1
- package/lib/services/telemetry_link.d.ts +1 -1
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +34 -52
- package/lib/services/telemetry_link.js.map +1 -1
- package/lib/services/telemetry_router.d.ts +1 -1
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +49 -88
- package/lib/services/telemetry_router.js.map +1 -1
- package/lib/services/ufw.d.ts +1 -1
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +25 -47
- package/lib/services/ufw.js.map +1 -1
- package/lib/services/valkey.d.ts +2 -2
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +40 -100
- package/lib/services/valkey.js.map +1 -1
- package/lib/services/vpn.d.ts +1 -1
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +98 -180
- package/lib/services/vpn.js.map +1 -1
- package/lib/services/workflows.d.ts +1 -1
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +40 -88
- package/lib/services/workflows.js.map +1 -1
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +1 -1
- package/lib/traits.js.map +1 -1
- package/package.json +13 -11
- package/src/credentials.ts +10 -16
- package/src/errors.ts +1 -1
- package/src/pagination.ts +6 -22
- package/src/protocol.test.ts +304 -0
- package/src/protocol.ts +29 -47
- package/src/retry.ts +2 -8
- package/src/services/alb.ts +45 -128
- package/src/services/alb_waf.ts +35 -94
- package/src/services/authorization.ts +20 -56
- package/src/services/automation.ts +92 -262
- package/src/services/cdn.ts +191 -351
- package/src/services/certificates.ts +17 -49
- package/src/services/cost.ts +29 -64
- package/src/services/dns.ts +160 -495
- package/src/services/dremio.ts +35 -85
- package/src/services/edge.ts +37 -96
- package/src/services/functions.ts +31 -84
- package/src/services/git.ts +41 -122
- package/src/services/iaas.ts +392 -1184
- package/src/services/intake.ts +57 -124
- package/src/services/kms.ts +91 -192
- package/src/services/lb_ip_lists.ts +21 -56
- package/src/services/load_balancer.ts +43 -119
- package/src/services/logme.ts +55 -150
- package/src/services/logs.ts +57 -158
- package/src/services/mariadb.ts +45 -126
- package/src/services/model_experiments.ts +36 -92
- package/src/services/model_serving.ts +33 -76
- package/src/services/mongodb_flex.ts +113 -259
- package/src/services/object_storage.ts +101 -154
- package/src/services/observability.ts +635 -1127
- package/src/services/opensearch.ts +52 -141
- package/src/services/pim.ts +78 -183
- package/src/services/postgres_flex.ts +120 -366
- package/src/services/pubsub.ts +134 -277
- package/src/services/rabbitmq.ts +53 -145
- package/src/services/registry.ts +24 -72
- package/src/services/resource_manager.ts +46 -129
- package/src/services/run_command.ts +17 -45
- package/src/services/sca.ts +63 -98
- package/src/services/scf.ts +54 -195
- package/src/services/secrets_manager.ts +54 -136
- package/src/services/server_backup.ts +26 -75
- package/src/services/server_update.ts +15 -44
- package/src/services/service_account.ts +185 -272
- package/src/services/service_enablement.ts +18 -47
- package/src/services/sfs.ts +84 -166
- package/src/services/ske.ts +91 -113
- package/src/services/sqlserverflex.ts +147 -383
- package/src/services/stackit_marketplace.ts +184 -250
- package/src/services/telemetry_link.ts +199 -278
- package/src/services/telemetry_router.ts +73 -168
- package/src/services/ufw.ts +32 -82
- package/src/services/valkey.ts +54 -145
- package/src/services/vpn.ts +215 -404
- package/src/services/workflows.ts +57 -169
- package/src/traits.ts +2 -7
- package/lib/response-validation.test.d.ts +0 -4
- package/lib/response-validation.test.d.ts.map +0 -1
- package/lib/response-validation.test.js +0 -31
- package/lib/response-validation.test.js.map +0 -1
- package/src/response-validation.test.ts +0 -45
|
@@ -1,16 +1,12 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
1
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
2
4
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
5
|
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
6
|
import { UnknownStackitError } from "../errors.ts";
|
|
7
|
+
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
13
8
|
import * as Retry from "../retry.ts";
|
|
9
|
+
import * as T from "../traits.ts";
|
|
14
10
|
|
|
15
11
|
export type { StackitOpError, StackitOpContext };
|
|
16
12
|
|
|
@@ -83,7 +79,7 @@ export const GitAuth = /*@__PURE__*/ S.Unknown as any as S.Schema<GitAuth>;
|
|
|
83
79
|
|
|
84
80
|
/** Bundle type identifier. */
|
|
85
81
|
export type GitDagBundleType = "git";
|
|
86
|
-
export const GitDagBundleType =
|
|
82
|
+
export const GitDagBundleType = S.String;
|
|
87
83
|
|
|
88
84
|
/** A Git-based DAG bundle. Maps to airflow.providers.git.bundles.git.GitDagBundle. */
|
|
89
85
|
export interface GitDagBundle {
|
|
@@ -115,7 +111,7 @@ export const GitDagBundle = /*@__PURE__*/ S.suspend(() =>
|
|
|
115
111
|
|
|
116
112
|
/** Type of authentication */
|
|
117
113
|
export type S3AccessKeyAuthType = "accessKey";
|
|
118
|
-
export const S3AccessKeyAuthType =
|
|
114
|
+
export const S3AccessKeyAuthType = S.String;
|
|
119
115
|
|
|
120
116
|
/** S3 access key credentials (access key ID + secret access key). */
|
|
121
117
|
export interface S3AccessKeyAuth {
|
|
@@ -132,9 +128,7 @@ export const S3AccessKeyAuth = /*@__PURE__*/ S.suspend(() =>
|
|
|
132
128
|
secretAccessKey: S.String.pipe(T.SensitiveValue({})),
|
|
133
129
|
type: S3AccessKeyAuthType,
|
|
134
130
|
}),
|
|
135
|
-
).annotate({
|
|
136
|
-
identifier: "S3AccessKeyAuth",
|
|
137
|
-
}) as any as S.Schema<S3AccessKeyAuth>;
|
|
131
|
+
).annotate({ identifier: "S3AccessKeyAuth" }) as any as S.Schema<S3AccessKeyAuth>;
|
|
138
132
|
|
|
139
133
|
/** Authentication for S3-compatible object storage */
|
|
140
134
|
export type S3Auth = S3AccessKeyAuth | NoAuth;
|
|
@@ -142,7 +136,7 @@ export const S3Auth = /*@__PURE__*/ S.Unknown as any as S.Schema<S3Auth>;
|
|
|
142
136
|
|
|
143
137
|
/** Bundle type identifier. */
|
|
144
138
|
export type S3DagBundleType = "s3";
|
|
145
|
-
export const S3DagBundleType =
|
|
139
|
+
export const S3DagBundleType = S.String;
|
|
146
140
|
|
|
147
141
|
/** An S3-based DAG bundle. Maps to airflow.providers.amazon.aws.bundles.s3.S3DagBundle. Compatible with any S3-compatible object storage (e.g. STACKIT Object Storage). */
|
|
148
142
|
export interface S3DagBundle {
|
|
@@ -200,9 +194,7 @@ export const CreateDagBundleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
200
194
|
baseUrl: "https://workflows.api.stackit.cloud",
|
|
201
195
|
}),
|
|
202
196
|
),
|
|
203
|
-
).annotate({
|
|
204
|
-
identifier: "CreateDagBundleRequest",
|
|
205
|
-
}) as any as S.Schema<CreateDagBundleRequest>;
|
|
197
|
+
).annotate({ identifier: "CreateDagBundleRequest" }) as any as S.Schema<CreateDagBundleRequest>;
|
|
206
198
|
|
|
207
199
|
/** Basic authentication as returned in API responses. The password field is always masked ("**********") and never contains the real value. */
|
|
208
200
|
export interface BasicAuthResponseOutput {
|
|
@@ -216,9 +208,7 @@ export const BasicAuthResponseOutput = /*@__PURE__*/ S.suspend(() =>
|
|
|
216
208
|
type: S.optional(S.String),
|
|
217
209
|
username: S.optional(S.String),
|
|
218
210
|
}),
|
|
219
|
-
).annotate({
|
|
220
|
-
identifier: "BasicAuthResponseOutput",
|
|
221
|
-
}) as any as S.Schema<BasicAuthResponseOutput>;
|
|
211
|
+
).annotate({ identifier: "BasicAuthResponseOutput" }) as any as S.Schema<BasicAuthResponseOutput>;
|
|
222
212
|
|
|
223
213
|
/** Authentication configuration as returned in API responses. Credentials (passwords) are always masked and never returned in plain text. */
|
|
224
214
|
export type GitAuthResponseOutput = BasicAuthResponseOutput | NoAuth;
|
|
@@ -227,7 +217,7 @@ export const GitAuthResponseOutput =
|
|
|
227
217
|
|
|
228
218
|
/** Bundle type identifier. */
|
|
229
219
|
export type GitDagBundleResponseOutputType = "git";
|
|
230
|
-
export const GitDagBundleResponseOutputType =
|
|
220
|
+
export const GitDagBundleResponseOutputType = S.String;
|
|
231
221
|
|
|
232
222
|
/** A Git-based DAG bundle as returned by the API. The auth structure (type, username) is included; passwords are masked. */
|
|
233
223
|
export interface GitDagBundleResponseOutput {
|
|
@@ -261,7 +251,7 @@ export const GitDagBundleResponseOutput = /*@__PURE__*/ S.suspend(() =>
|
|
|
261
251
|
|
|
262
252
|
/** Type of authentication */
|
|
263
253
|
export type S3AccessKeyAuthResponseType = "accessKey";
|
|
264
|
-
export const S3AccessKeyAuthResponseType =
|
|
254
|
+
export const S3AccessKeyAuthResponseType = S.String;
|
|
265
255
|
|
|
266
256
|
/** S3 access key credentials as returned in API responses. The secret access key is always masked ("**********") and never contains the real value. */
|
|
267
257
|
export interface S3AccessKeyAuthResponse {
|
|
@@ -278,18 +268,15 @@ export const S3AccessKeyAuthResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
278
268
|
secretAccessKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
279
269
|
type: S3AccessKeyAuthResponseType,
|
|
280
270
|
}),
|
|
281
|
-
).annotate({
|
|
282
|
-
identifier: "S3AccessKeyAuthResponse",
|
|
283
|
-
}) as any as S.Schema<S3AccessKeyAuthResponse>;
|
|
271
|
+
).annotate({ identifier: "S3AccessKeyAuthResponse" }) as any as S.Schema<S3AccessKeyAuthResponse>;
|
|
284
272
|
|
|
285
273
|
/** S3 authentication configuration as returned in API responses. Secret keys are always masked and never returned in plain text. */
|
|
286
274
|
export type S3AuthResponse = S3AccessKeyAuthResponse | NoAuth;
|
|
287
|
-
export const S3AuthResponse =
|
|
288
|
-
/*@__PURE__*/ S.Unknown as any as S.Schema<S3AuthResponse>;
|
|
275
|
+
export const S3AuthResponse = /*@__PURE__*/ S.Unknown as any as S.Schema<S3AuthResponse>;
|
|
289
276
|
|
|
290
277
|
/** Bundle type identifier. */
|
|
291
278
|
export type S3DagBundleResponseType = "s3";
|
|
292
|
-
export const S3DagBundleResponseType =
|
|
279
|
+
export const S3DagBundleResponseType = S.String;
|
|
293
280
|
|
|
294
281
|
/** An S3-based DAG bundle as returned by the API. The s3Auth structure (type, accessKeyId) is included; secret keys are masked. */
|
|
295
282
|
export interface S3DagBundleResponse {
|
|
@@ -317,23 +304,17 @@ export const S3DagBundleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
317
304
|
s3Auth: S3AuthResponse,
|
|
318
305
|
type: S3DagBundleResponseType,
|
|
319
306
|
}),
|
|
320
|
-
).annotate({
|
|
321
|
-
identifier: "S3DagBundleResponse",
|
|
322
|
-
}) as any as S.Schema<S3DagBundleResponse>;
|
|
307
|
+
).annotate({ identifier: "S3DagBundleResponse" }) as any as S.Schema<S3DagBundleResponse>;
|
|
323
308
|
|
|
324
309
|
/** A DAG bundle as returned by the API. Auth structure (type, username) is included but credentials (passwords, secret keys) are masked. Discriminated by the "type" field. */
|
|
325
|
-
export type DagBundleResponseOutput =
|
|
326
|
-
| GitDagBundleResponseOutput
|
|
327
|
-
| S3DagBundleResponse;
|
|
310
|
+
export type DagBundleResponseOutput = GitDagBundleResponseOutput | S3DagBundleResponse;
|
|
328
311
|
export const DagBundleResponseOutput =
|
|
329
312
|
/*@__PURE__*/ S.Unknown as any as S.Schema<DagBundleResponseOutput>;
|
|
330
313
|
|
|
331
314
|
export type CreateDagBundleResponse = DagBundleResponseOutput;
|
|
332
315
|
export const CreateDagBundleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
333
316
|
DagBundleResponseOutput.pipe(T.RawResponseRoot()),
|
|
334
|
-
).annotate({
|
|
335
|
-
identifier: "CreateDagBundleResponse",
|
|
336
|
-
}) as any as S.Schema<CreateDagBundleResponse>;
|
|
317
|
+
).annotate({ identifier: "CreateDagBundleResponse" }) as any as S.Schema<CreateDagBundleResponse>;
|
|
337
318
|
|
|
338
319
|
/** A DAG bundle configuration. Discriminated by the "type" field. Supported types are "git" and "s3". */
|
|
339
320
|
export type DagBundle = GitDagBundle | S3DagBundle;
|
|
@@ -361,7 +342,7 @@ export const GitRepository = /*@__PURE__*/ S.suspend(() =>
|
|
|
361
342
|
).annotate({ identifier: "GitRepository" }) as any as S.Schema<GitRepository>;
|
|
362
343
|
|
|
363
344
|
export type StackITIdentityProviderType = "stackit";
|
|
364
|
-
export const StackITIdentityProviderType =
|
|
345
|
+
export const StackITIdentityProviderType = S.String;
|
|
365
346
|
|
|
366
347
|
/** The default STACKIT identity provider. */
|
|
367
348
|
export interface StackITIdentityProvider {
|
|
@@ -371,9 +352,7 @@ export const StackITIdentityProvider = /*@__PURE__*/ S.suspend(() =>
|
|
|
371
352
|
S.Struct({
|
|
372
353
|
type: StackITIdentityProviderType,
|
|
373
354
|
}),
|
|
374
|
-
).annotate({
|
|
375
|
-
identifier: "StackITIdentityProvider",
|
|
376
|
-
}) as any as S.Schema<StackITIdentityProvider>;
|
|
355
|
+
).annotate({ identifier: "StackITIdentityProvider" }) as any as S.Schema<StackITIdentityProvider>;
|
|
377
356
|
|
|
378
357
|
/** Expected audience(s) for API token validation when using the session endpoint for token exchange. */
|
|
379
358
|
export type OAuth2IdentityProviderApiAudienceList = Array<string>;
|
|
@@ -382,7 +361,7 @@ export const OAuth2IdentityProviderApiAudienceList = /*@__PURE__*/ S.Array(
|
|
|
382
361
|
) as any as S.Schema<OAuth2IdentityProviderApiAudienceList>;
|
|
383
362
|
|
|
384
363
|
export type OAuth2IdentityProviderType = "oauth2";
|
|
385
|
-
export const OAuth2IdentityProviderType =
|
|
364
|
+
export const OAuth2IdentityProviderType = S.String;
|
|
386
365
|
|
|
387
366
|
/** Configuration for the custom OAuth2 identity provider used. */
|
|
388
367
|
export interface OAuth2IdentityProvider {
|
|
@@ -416,14 +395,11 @@ export const OAuth2IdentityProvider = /*@__PURE__*/ S.suspend(() =>
|
|
|
416
395
|
scope: S.String,
|
|
417
396
|
type: OAuth2IdentityProviderType,
|
|
418
397
|
}),
|
|
419
|
-
).annotate({
|
|
420
|
-
identifier: "OAuth2IdentityProvider",
|
|
421
|
-
}) as any as S.Schema<OAuth2IdentityProvider>;
|
|
398
|
+
).annotate({ identifier: "OAuth2IdentityProvider" }) as any as S.Schema<OAuth2IdentityProvider>;
|
|
422
399
|
|
|
423
400
|
/** Configuration for the identity provider used. */
|
|
424
401
|
export type IdentityProvider = StackITIdentityProvider | OAuth2IdentityProvider;
|
|
425
|
-
export const IdentityProvider =
|
|
426
|
-
/*@__PURE__*/ S.Unknown as any as S.Schema<IdentityProvider>;
|
|
402
|
+
export const IdentityProvider = /*@__PURE__*/ S.Unknown as any as S.Schema<IdentityProvider>;
|
|
427
403
|
|
|
428
404
|
export interface Network {
|
|
429
405
|
id?: string;
|
|
@@ -479,9 +455,7 @@ export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
479
455
|
baseUrl: "https://workflows.api.stackit.cloud",
|
|
480
456
|
}),
|
|
481
457
|
),
|
|
482
|
-
).annotate({
|
|
483
|
-
identifier: "CreateInstanceRequest",
|
|
484
|
-
}) as any as S.Schema<CreateInstanceRequest>;
|
|
458
|
+
).annotate({ identifier: "CreateInstanceRequest" }) as any as S.Schema<CreateInstanceRequest>;
|
|
485
459
|
|
|
486
460
|
/** All configured DAG bundles. This is the canonical source of truth for DAG sources. Available for Airflow 3 instances. */
|
|
487
461
|
export type InstanceDagBundlesList = Array<DagBundle>;
|
|
@@ -504,13 +478,8 @@ export const Endpoints = /*@__PURE__*/ S.suspend(() =>
|
|
|
504
478
|
).annotate({ identifier: "Endpoints" }) as any as S.Schema<Endpoints>;
|
|
505
479
|
|
|
506
480
|
/** The current status of the STACKIT Workflows instance. */
|
|
507
|
-
export type InstanceStatus =
|
|
508
|
-
|
|
509
|
-
| "active"
|
|
510
|
-
| "updating"
|
|
511
|
-
| "deleting"
|
|
512
|
-
| "failed";
|
|
513
|
-
export const InstanceStatus = /*@__PURE__*/ S.String;
|
|
481
|
+
export type InstanceStatus = "creating" | "active" | "updating" | "deleting" | "failed";
|
|
482
|
+
export const InstanceStatus = S.String;
|
|
514
483
|
|
|
515
484
|
export interface Instance {
|
|
516
485
|
/** The date and time the creation of the STACKIT Workflows instance was triggered. */
|
|
@@ -590,14 +559,10 @@ export const DeleteDagBundleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
590
559
|
baseUrl: "https://workflows.api.stackit.cloud",
|
|
591
560
|
}),
|
|
592
561
|
),
|
|
593
|
-
).annotate({
|
|
594
|
-
identifier: "DeleteDagBundleRequest",
|
|
595
|
-
}) as any as S.Schema<DeleteDagBundleRequest>;
|
|
562
|
+
).annotate({ identifier: "DeleteDagBundleRequest" }) as any as S.Schema<DeleteDagBundleRequest>;
|
|
596
563
|
|
|
597
564
|
export interface DeleteDagBundleResponse {}
|
|
598
|
-
export const DeleteDagBundleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
599
|
-
S.Struct({}),
|
|
600
|
-
).annotate({
|
|
565
|
+
export const DeleteDagBundleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
601
566
|
identifier: "DeleteDagBundleResponse",
|
|
602
567
|
}) as any as S.Schema<DeleteDagBundleResponse>;
|
|
603
568
|
|
|
@@ -622,14 +587,10 @@ export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
622
587
|
baseUrl: "https://workflows.api.stackit.cloud",
|
|
623
588
|
}),
|
|
624
589
|
),
|
|
625
|
-
).annotate({
|
|
626
|
-
identifier: "DeleteInstanceRequest",
|
|
627
|
-
}) as any as S.Schema<DeleteInstanceRequest>;
|
|
590
|
+
).annotate({ identifier: "DeleteInstanceRequest" }) as any as S.Schema<DeleteInstanceRequest>;
|
|
628
591
|
|
|
629
592
|
export interface DeleteInstanceResponse {}
|
|
630
|
-
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
631
|
-
S.Struct({}),
|
|
632
|
-
).annotate({
|
|
593
|
+
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
633
594
|
identifier: "DeleteInstanceResponse",
|
|
634
595
|
}) as any as S.Schema<DeleteInstanceResponse>;
|
|
635
596
|
|
|
@@ -657,16 +618,12 @@ export const GetDagBundleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
657
618
|
baseUrl: "https://workflows.api.stackit.cloud",
|
|
658
619
|
}),
|
|
659
620
|
),
|
|
660
|
-
).annotate({
|
|
661
|
-
identifier: "GetDagBundleRequest",
|
|
662
|
-
}) as any as S.Schema<GetDagBundleRequest>;
|
|
621
|
+
).annotate({ identifier: "GetDagBundleRequest" }) as any as S.Schema<GetDagBundleRequest>;
|
|
663
622
|
|
|
664
623
|
export type GetDagBundleResponse = DagBundleResponseOutput;
|
|
665
624
|
export const GetDagBundleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
666
625
|
DagBundleResponseOutput.pipe(T.RawResponseRoot()),
|
|
667
|
-
).annotate({
|
|
668
|
-
identifier: "GetDagBundleResponse",
|
|
669
|
-
}) as any as S.Schema<GetDagBundleResponse>;
|
|
626
|
+
).annotate({ identifier: "GetDagBundleResponse" }) as any as S.Schema<GetDagBundleResponse>;
|
|
670
627
|
|
|
671
628
|
export interface GetInstanceRequest {
|
|
672
629
|
/** The STACKIT portal project UUID the STACKIT Workflows instance is part of. */
|
|
@@ -689,9 +646,7 @@ export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
689
646
|
baseUrl: "https://workflows.api.stackit.cloud",
|
|
690
647
|
}),
|
|
691
648
|
),
|
|
692
|
-
).annotate({
|
|
693
|
-
identifier: "GetInstanceRequest",
|
|
694
|
-
}) as any as S.Schema<GetInstanceRequest>;
|
|
649
|
+
).annotate({ identifier: "GetInstanceRequest" }) as any as S.Schema<GetInstanceRequest>;
|
|
695
650
|
|
|
696
651
|
export interface GetProviderOptionsRequest {
|
|
697
652
|
/** The STACKIT region the STACKIT Workflows instance is part of. */
|
|
@@ -723,9 +678,7 @@ export const SupportedVersion = /*@__PURE__*/ S.suspend(() =>
|
|
|
723
678
|
state: S.String,
|
|
724
679
|
version: S.String,
|
|
725
680
|
}),
|
|
726
|
-
).annotate({
|
|
727
|
-
identifier: "SupportedVersion",
|
|
728
|
-
}) as any as S.Schema<SupportedVersion>;
|
|
681
|
+
).annotate({ identifier: "SupportedVersion" }) as any as S.Schema<SupportedVersion>;
|
|
729
682
|
|
|
730
683
|
export type ProviderOptionsVersionsList = Array<SupportedVersion>;
|
|
731
684
|
export const ProviderOptionsVersionsList = /*@__PURE__*/ S.Array(
|
|
@@ -739,9 +692,7 @@ export const ProviderOptions = /*@__PURE__*/ S.suspend(() =>
|
|
|
739
692
|
S.Struct({
|
|
740
693
|
versions: ProviderOptionsVersionsList,
|
|
741
694
|
}),
|
|
742
|
-
).annotate({
|
|
743
|
-
identifier: "ProviderOptions",
|
|
744
|
-
}) as any as S.Schema<ProviderOptions>;
|
|
695
|
+
).annotate({ identifier: "ProviderOptions" }) as any as S.Schema<ProviderOptions>;
|
|
745
696
|
|
|
746
697
|
export interface ListDagBundlesRequest {
|
|
747
698
|
/** The STACKIT portal project UUID the STACKIT Workflows instance is part of. */
|
|
@@ -764,13 +715,10 @@ export const ListDagBundlesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
764
715
|
baseUrl: "https://workflows.api.stackit.cloud",
|
|
765
716
|
}),
|
|
766
717
|
),
|
|
767
|
-
).annotate({
|
|
768
|
-
identifier: "ListDagBundlesRequest",
|
|
769
|
-
}) as any as S.Schema<ListDagBundlesRequest>;
|
|
718
|
+
).annotate({ identifier: "ListDagBundlesRequest" }) as any as S.Schema<ListDagBundlesRequest>;
|
|
770
719
|
|
|
771
720
|
/** List of all configured DAG bundles. Authentication type and username are returned for informational purposes; passwords and secrets are always masked. */
|
|
772
|
-
export type ListDagBundlesResponseOutputDagBundlesList =
|
|
773
|
-
Array<DagBundleResponseOutput>;
|
|
721
|
+
export type ListDagBundlesResponseOutputDagBundlesList = Array<DagBundleResponseOutput>;
|
|
774
722
|
export const ListDagBundlesResponseOutputDagBundlesList = /*@__PURE__*/ S.Array(
|
|
775
723
|
DagBundleResponseOutput,
|
|
776
724
|
) as any as S.Schema<ListDagBundlesResponseOutputDagBundlesList>;
|
|
@@ -805,9 +753,7 @@ export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
805
753
|
baseUrl: "https://workflows.api.stackit.cloud",
|
|
806
754
|
}),
|
|
807
755
|
),
|
|
808
|
-
).annotate({
|
|
809
|
-
identifier: "ListInstancesRequest",
|
|
810
|
-
}) as any as S.Schema<ListInstancesRequest>;
|
|
756
|
+
).annotate({ identifier: "ListInstancesRequest" }) as any as S.Schema<ListInstancesRequest>;
|
|
811
757
|
|
|
812
758
|
export type ListInstancesResponseInstancesList = Array<Instance>;
|
|
813
759
|
export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(
|
|
@@ -821,13 +767,11 @@ export const ListInstancesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
821
767
|
S.Struct({
|
|
822
768
|
instances: ListInstancesResponseInstancesList,
|
|
823
769
|
}),
|
|
824
|
-
).annotate({
|
|
825
|
-
identifier: "ListInstancesResponse",
|
|
826
|
-
}) as any as S.Schema<ListInstancesResponse>;
|
|
770
|
+
).annotate({ identifier: "ListInstancesResponse" }) as any as S.Schema<ListInstancesResponse>;
|
|
827
771
|
|
|
828
772
|
/** Bundle type identifier — must match the existing bundle's type. */
|
|
829
773
|
export type UpdateGitDagBundlePayloadType = "git";
|
|
830
|
-
export const UpdateGitDagBundlePayloadType =
|
|
774
|
+
export const UpdateGitDagBundlePayloadType = S.String;
|
|
831
775
|
|
|
832
776
|
/** Partial update payload for a Git DAG bundle. All fields except "type" are optional; only the provided fields will be updated. */
|
|
833
777
|
export interface UpdateGitDagBundlePayload {
|
|
@@ -858,7 +802,7 @@ export const UpdateGitDagBundlePayload = /*@__PURE__*/ S.suspend(() =>
|
|
|
858
802
|
|
|
859
803
|
/** Bundle type identifier — must match the existing bundle's type. */
|
|
860
804
|
export type UpdateS3DagBundlePayloadType = "s3";
|
|
861
|
-
export const UpdateS3DagBundlePayloadType =
|
|
805
|
+
export const UpdateS3DagBundlePayloadType = S.String;
|
|
862
806
|
|
|
863
807
|
/** Partial update payload for an S3 DAG bundle. All fields except "type" are optional; only the provided fields will be updated. */
|
|
864
808
|
export interface UpdateS3DagBundlePayload {
|
|
@@ -883,14 +827,10 @@ export const UpdateS3DagBundlePayload = /*@__PURE__*/ S.suspend(() =>
|
|
|
883
827
|
s3Auth: S.optional(S3Auth),
|
|
884
828
|
type: UpdateS3DagBundlePayloadType,
|
|
885
829
|
}),
|
|
886
|
-
).annotate({
|
|
887
|
-
identifier: "UpdateS3DagBundlePayload",
|
|
888
|
-
}) as any as S.Schema<UpdateS3DagBundlePayload>;
|
|
830
|
+
).annotate({ identifier: "UpdateS3DagBundlePayload" }) as any as S.Schema<UpdateS3DagBundlePayload>;
|
|
889
831
|
|
|
890
832
|
/** Partial update payload for a DAG bundle. The "type" field must be provided and must match the existing bundle's type ("git" or "s3"). Only the provided fields will be updated. Supplying fields that belong to the wrong type will be rejected. */
|
|
891
|
-
export type UpdateDagBundlePayload =
|
|
892
|
-
| UpdateGitDagBundlePayload
|
|
893
|
-
| UpdateS3DagBundlePayload;
|
|
833
|
+
export type UpdateDagBundlePayload = UpdateGitDagBundlePayload | UpdateS3DagBundlePayload;
|
|
894
834
|
export const UpdateDagBundlePayload =
|
|
895
835
|
/*@__PURE__*/ S.Unknown as any as S.Schema<UpdateDagBundlePayload>;
|
|
896
836
|
|
|
@@ -920,16 +860,12 @@ export const UpdateDagBundleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
920
860
|
baseUrl: "https://workflows.api.stackit.cloud",
|
|
921
861
|
}),
|
|
922
862
|
),
|
|
923
|
-
).annotate({
|
|
924
|
-
identifier: "UpdateDagBundleRequest",
|
|
925
|
-
}) as any as S.Schema<UpdateDagBundleRequest>;
|
|
863
|
+
).annotate({ identifier: "UpdateDagBundleRequest" }) as any as S.Schema<UpdateDagBundleRequest>;
|
|
926
864
|
|
|
927
865
|
export type UpdateDagBundleResponse = DagBundleResponseOutput;
|
|
928
866
|
export const UpdateDagBundleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
929
867
|
DagBundleResponseOutput.pipe(T.RawResponseRoot()),
|
|
930
|
-
).annotate({
|
|
931
|
-
identifier: "UpdateDagBundleResponse",
|
|
932
|
-
}) as any as S.Schema<UpdateDagBundleResponse>;
|
|
868
|
+
).annotate({ identifier: "UpdateDagBundleResponse" }) as any as S.Schema<UpdateDagBundleResponse>;
|
|
933
869
|
|
|
934
870
|
export interface UpdateDagsRepositoryRequest {
|
|
935
871
|
/** The STACKIT portal project UUID the STACKIT Workflows instance is part of. */
|
|
@@ -1005,9 +941,7 @@ export const OAuth2IdentityProviderPatch = /*@__PURE__*/ S.suspend(() =>
|
|
|
1005
941
|
}) as any as S.Schema<OAuth2IdentityProviderPatch>;
|
|
1006
942
|
|
|
1007
943
|
/** Request to update an identity provider configuration */
|
|
1008
|
-
export type UpdateIdentityProviderPayload =
|
|
1009
|
-
| StackITIdentityProvider
|
|
1010
|
-
| OAuth2IdentityProviderPatch;
|
|
944
|
+
export type UpdateIdentityProviderPayload = StackITIdentityProvider | OAuth2IdentityProviderPatch;
|
|
1011
945
|
export const UpdateIdentityProviderPayload =
|
|
1012
946
|
/*@__PURE__*/ S.Unknown as any as S.Schema<UpdateIdentityProviderPayload>;
|
|
1013
947
|
|
|
@@ -1074,9 +1008,7 @@ export const UpdateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1074
1008
|
baseUrl: "https://workflows.api.stackit.cloud",
|
|
1075
1009
|
}),
|
|
1076
1010
|
),
|
|
1077
|
-
).annotate({
|
|
1078
|
-
identifier: "UpdateInstanceRequest",
|
|
1079
|
-
}) as any as S.Schema<UpdateInstanceRequest>;
|
|
1011
|
+
).annotate({ identifier: "UpdateInstanceRequest" }) as any as S.Schema<UpdateInstanceRequest>;
|
|
1080
1012
|
|
|
1081
1013
|
export interface UpdateObservabilityRequest {
|
|
1082
1014
|
/** The STACKIT portal project UUID the STACKIT Workflows instance is part of. */
|
|
@@ -1106,12 +1038,7 @@ export const UpdateObservabilityRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1106
1038
|
identifier: "UpdateObservabilityRequest",
|
|
1107
1039
|
}) as any as S.Schema<UpdateObservabilityRequest>;
|
|
1108
1040
|
|
|
1109
|
-
export type CreateDagBundleError =
|
|
1110
|
-
| BadRequest
|
|
1111
|
-
| Forbidden
|
|
1112
|
-
| NotFound
|
|
1113
|
-
| Conflict
|
|
1114
|
-
| StackitOpError;
|
|
1041
|
+
export type CreateDagBundleError = BadRequest | Forbidden | NotFound | Conflict | StackitOpError;
|
|
1115
1042
|
/** Adds a new DAG bundle to this STACKIT Workflows instance. Only supported for Airflow 3 instances. Maximum 10 bundles per instance. */
|
|
1116
1043
|
export const createDagBundle: API.OperationMethod<
|
|
1117
1044
|
CreateDagBundleRequest,
|
|
@@ -1141,12 +1068,7 @@ export const createInstance: API.OperationMethod<
|
|
|
1141
1068
|
retry: Retry.Retry,
|
|
1142
1069
|
}));
|
|
1143
1070
|
|
|
1144
|
-
export type DeleteDagBundleError =
|
|
1145
|
-
| BadRequest
|
|
1146
|
-
| Forbidden
|
|
1147
|
-
| NotFound
|
|
1148
|
-
| Conflict
|
|
1149
|
-
| StackitOpError;
|
|
1071
|
+
export type DeleteDagBundleError = BadRequest | Forbidden | NotFound | Conflict | StackitOpError;
|
|
1150
1072
|
/** Removes a DAG bundle from this STACKIT Workflows instance. At least one bundle must remain configured. Only supported for Airflow 3 instances. */
|
|
1151
1073
|
export const deleteDagBundle: API.OperationMethod<
|
|
1152
1074
|
DeleteDagBundleRequest,
|
|
@@ -1161,12 +1083,7 @@ export const deleteDagBundle: API.OperationMethod<
|
|
|
1161
1083
|
retry: Retry.Retry,
|
|
1162
1084
|
}));
|
|
1163
1085
|
|
|
1164
|
-
export type DeleteInstanceError =
|
|
1165
|
-
| BadRequest
|
|
1166
|
-
| Forbidden
|
|
1167
|
-
| NotFound
|
|
1168
|
-
| Conflict
|
|
1169
|
-
| StackitOpError;
|
|
1086
|
+
export type DeleteInstanceError = BadRequest | Forbidden | NotFound | Conflict | StackitOpError;
|
|
1170
1087
|
/** Deletes the given STACKIT Workflows instance. */
|
|
1171
1088
|
export const deleteInstance: API.OperationMethod<
|
|
1172
1089
|
DeleteInstanceRequest,
|
|
@@ -1196,11 +1113,7 @@ export const getDagBundle: API.OperationMethod<
|
|
|
1196
1113
|
retry: Retry.Retry,
|
|
1197
1114
|
}));
|
|
1198
1115
|
|
|
1199
|
-
export type GetInstanceError =
|
|
1200
|
-
| BadRequest
|
|
1201
|
-
| Forbidden
|
|
1202
|
-
| NotFound
|
|
1203
|
-
| StackitOpError;
|
|
1116
|
+
export type GetInstanceError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
1204
1117
|
/** Returns the details for the given STACKIT Workflows instance. */
|
|
1205
1118
|
export const getInstance: API.OperationMethod<
|
|
1206
1119
|
GetInstanceRequest,
|
|
@@ -1230,11 +1143,7 @@ export const getProviderOptions: API.OperationMethod<
|
|
|
1230
1143
|
retry: Retry.Retry,
|
|
1231
1144
|
}));
|
|
1232
1145
|
|
|
1233
|
-
export type ListDagBundlesError =
|
|
1234
|
-
| BadRequest
|
|
1235
|
-
| Forbidden
|
|
1236
|
-
| NotFound
|
|
1237
|
-
| StackitOpError;
|
|
1146
|
+
export type ListDagBundlesError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
1238
1147
|
/** Returns a list of all DAG bundles configured for this STACKIT Workflows instance. */
|
|
1239
1148
|
export const listDagBundles: API.OperationMethod<
|
|
1240
1149
|
ListDagBundlesRequest,
|
|
@@ -1264,11 +1173,7 @@ export const listInstances: API.OperationMethod<
|
|
|
1264
1173
|
retry: Retry.Retry,
|
|
1265
1174
|
}));
|
|
1266
1175
|
|
|
1267
|
-
export type UpdateDagBundleError =
|
|
1268
|
-
| BadRequest
|
|
1269
|
-
| Forbidden
|
|
1270
|
-
| NotFound
|
|
1271
|
-
| StackitOpError;
|
|
1176
|
+
export type UpdateDagBundleError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
1272
1177
|
/** Updates an existing DAG bundle. The bundle type (git/s3) is inferred from the existing bundle and cannot be changed. To change the type, delete and recreate the bundle. Only supported for Airflow 3 instances. */
|
|
1273
1178
|
export const updateDagBundle: API.OperationMethod<
|
|
1274
1179
|
UpdateDagBundleRequest,
|
|
@@ -1283,11 +1188,7 @@ export const updateDagBundle: API.OperationMethod<
|
|
|
1283
1188
|
retry: Retry.Retry,
|
|
1284
1189
|
}));
|
|
1285
1190
|
|
|
1286
|
-
export type UpdateDagsRepositoryError =
|
|
1287
|
-
| BadRequest
|
|
1288
|
-
| Forbidden
|
|
1289
|
-
| NotFound
|
|
1290
|
-
| StackitOpError;
|
|
1191
|
+
export type UpdateDagsRepositoryError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
1291
1192
|
/** Updates the DAGs repository configuration for this STACKIT Workflows instance. */
|
|
1292
1193
|
export const updateDagsRepository: API.OperationMethod<
|
|
1293
1194
|
UpdateDagsRepositoryRequest,
|
|
@@ -1302,11 +1203,7 @@ export const updateDagsRepository: API.OperationMethod<
|
|
|
1302
1203
|
retry: Retry.Retry,
|
|
1303
1204
|
}));
|
|
1304
1205
|
|
|
1305
|
-
export type UpdateIdentityProviderError =
|
|
1306
|
-
| BadRequest
|
|
1307
|
-
| Forbidden
|
|
1308
|
-
| NotFound
|
|
1309
|
-
| StackitOpError;
|
|
1206
|
+
export type UpdateIdentityProviderError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
1310
1207
|
/** Updates the identity provider configuration for this STACKIT Workflows instance. */
|
|
1311
1208
|
export const updateIdentityProvider: API.OperationMethod<
|
|
1312
1209
|
UpdateIdentityProviderRequest,
|
|
@@ -1321,12 +1218,7 @@ export const updateIdentityProvider: API.OperationMethod<
|
|
|
1321
1218
|
retry: Retry.Retry,
|
|
1322
1219
|
}));
|
|
1323
1220
|
|
|
1324
|
-
export type UpdateInstanceError =
|
|
1325
|
-
| BadRequest
|
|
1326
|
-
| Forbidden
|
|
1327
|
-
| NotFound
|
|
1328
|
-
| Conflict
|
|
1329
|
-
| StackitOpError;
|
|
1221
|
+
export type UpdateInstanceError = BadRequest | Forbidden | NotFound | Conflict | StackitOpError;
|
|
1330
1222
|
/** Updates core Attributes of this STACKIT Workflows Instance. */
|
|
1331
1223
|
export const updateInstance: API.OperationMethod<
|
|
1332
1224
|
UpdateInstanceRequest,
|
|
@@ -1341,11 +1233,7 @@ export const updateInstance: API.OperationMethod<
|
|
|
1341
1233
|
retry: Retry.Retry,
|
|
1342
1234
|
}));
|
|
1343
1235
|
|
|
1344
|
-
export type UpdateObservabilityError =
|
|
1345
|
-
| BadRequest
|
|
1346
|
-
| Forbidden
|
|
1347
|
-
| NotFound
|
|
1348
|
-
| StackitOpError;
|
|
1236
|
+
export type UpdateObservabilityError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
1349
1237
|
/** Updates the Observability configuration for this STACKIT Workflows instance. */
|
|
1350
1238
|
export const updateObservability: API.OperationMethod<
|
|
1351
1239
|
UpdateObservabilityRequest,
|
package/src/traits.ts
CHANGED
|
@@ -7,11 +7,7 @@
|
|
|
7
7
|
* operation's `T.Http({ ... baseUrl })` pipe. `StackitProtocol` reads it
|
|
8
8
|
* and applies the configured region.
|
|
9
9
|
*/
|
|
10
|
-
import {
|
|
11
|
-
httpSymbol,
|
|
12
|
-
makeAnnotation,
|
|
13
|
-
type HttpTrait,
|
|
14
|
-
} from "@distilled.cloud/core/trait";
|
|
10
|
+
import { httpSymbol, makeAnnotation, type HttpTrait } from "@distilled.cloud/core/trait";
|
|
15
11
|
|
|
16
12
|
export {
|
|
17
13
|
Body,
|
|
@@ -61,5 +57,4 @@ export interface StackitHttpTrait extends HttpTrait {
|
|
|
61
57
|
}
|
|
62
58
|
|
|
63
59
|
/** Operation-level HTTP binding carrying the STACKIT per-product base URL. */
|
|
64
|
-
export const Http = (trait: StackitHttpTrait) =>
|
|
65
|
-
makeAnnotation(httpSymbol, trait);
|
|
60
|
+
export const Http = (trait: StackitHttpTrait) => makeAnnotation(httpSymbol, trait);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"response-validation.test.d.ts","sourceRoot":"","sources":["../src/response-validation.test.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAmCpD,eAAO,MAAM,oBAAoB,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,cAAc,CAAC,GAC3E,IAAI,GACJ,KAAY,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import { runValidationModes } from "@distilled.cloud/core/testing";
|
|
3
|
-
import * as Effect from "effect/Effect";
|
|
4
|
-
import { credentials } from "./credentials.js";
|
|
5
|
-
import { StackitParseError } from "./errors.js";
|
|
6
|
-
import * as Retry from "./retry.js";
|
|
7
|
-
import { listKeyPairs } from "./services/iaas.js";
|
|
8
|
-
// listKeyPairs declares `{ items: Keypair[] }`.
|
|
9
|
-
const run = (body) => runValidationModes(listKeyPairs({}).pipe(Retry.none, Effect.provide(credentials({ token: "test" }))), { body });
|
|
10
|
-
describe("STACKIT response validation", () => {
|
|
11
|
-
test("a matching body succeeds unchanged in both modes", async () => {
|
|
12
|
-
const body = { items: [{ name: "key-1", publicKey: "ssh-ed25519 AAAA" }] };
|
|
13
|
-
const { lenient, strict } = await run(JSON.stringify(body));
|
|
14
|
-
expect(lenient).toMatchObject({ _tag: "Success", success: body });
|
|
15
|
-
expect(strict).toMatchObject({ _tag: "Success", success: body });
|
|
16
|
-
});
|
|
17
|
-
test("a body missing required members: lenient returns it, strict fails", async () => {
|
|
18
|
-
const { lenient, strict } = await run("{}");
|
|
19
|
-
expect(lenient).toMatchObject({ _tag: "Success", success: {} });
|
|
20
|
-
expect(strict._tag).toBe("Failure");
|
|
21
|
-
expect(strict.failure).toBeInstanceOf(StackitParseError);
|
|
22
|
-
});
|
|
23
|
-
test("a non-JSON body: lenient returns the text, strict fails", async () => {
|
|
24
|
-
const { lenient, strict } = await run("not json");
|
|
25
|
-
expect(lenient).toMatchObject({ _tag: "Success", success: "not json" });
|
|
26
|
-
expect(strict.failure).toBeInstanceOf(StackitParseError);
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
// StackitParseError is part of every operation's declared error type.
|
|
30
|
-
export const parseErrorIsDeclared = true;
|
|
31
|
-
//# sourceMappingURL=response-validation.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"response-validation.test.js","sourceRoot":"","sources":["../src/response-validation.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,gDAAgD;AAChD,MAAM,GAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAC3B,kBAAkB,CAChB,YAAY,CAAC,EAAE,CAAC,CAAC,IAAI,CACnB,KAAK,CAAC,IAAI,EACV,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,CAC/C,EACD,EAAE,IAAI,EAAE,CACT,CAAC;AAEJ,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC3C,IAAI,CAAC,kDAAkD,EAAE,KAAK,IAAI,EAAE;QAClE,MAAM,IAAI,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC,EAAE,CAAC;QAC3E,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;QAC5D,MAAM,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QAClE,MAAM,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,mEAAmE,EAAE,KAAK,IAAI,EAAE;QACnF,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;QAChE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACpC,MAAM,CAAE,MAAc,CAAC,OAAO,CAAC,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,yDAAyD,EAAE,KAAK,IAAI,EAAE;QACzE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;QACxE,MAAM,CAAE,MAAc,CAAC,OAAO,CAAC,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,sEAAsE;AACtE,MAAM,CAAC,MAAM,oBAAoB,GAErB,IAAI,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import { runValidationModes } from "@distilled.cloud/core/testing";
|
|
3
|
-
import * as Effect from "effect/Effect";
|
|
4
|
-
import { credentials } from "./credentials.ts";
|
|
5
|
-
import { StackitParseError } from "./errors.ts";
|
|
6
|
-
import * as Retry from "./retry.ts";
|
|
7
|
-
import { listKeyPairs } from "./services/iaas.ts";
|
|
8
|
-
import type { StackitOpError } from "./protocol.ts";
|
|
9
|
-
|
|
10
|
-
// listKeyPairs declares `{ items: Keypair[] }`.
|
|
11
|
-
const run = (body: string) =>
|
|
12
|
-
runValidationModes(
|
|
13
|
-
listKeyPairs({}).pipe(
|
|
14
|
-
Retry.none,
|
|
15
|
-
Effect.provide(credentials({ token: "test" })),
|
|
16
|
-
),
|
|
17
|
-
{ body },
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
describe("STACKIT response validation", () => {
|
|
21
|
-
test("a matching body succeeds unchanged in both modes", async () => {
|
|
22
|
-
const body = { items: [{ name: "key-1", publicKey: "ssh-ed25519 AAAA" }] };
|
|
23
|
-
const { lenient, strict } = await run(JSON.stringify(body));
|
|
24
|
-
expect(lenient).toMatchObject({ _tag: "Success", success: body });
|
|
25
|
-
expect(strict).toMatchObject({ _tag: "Success", success: body });
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
test("a body missing required members: lenient returns it, strict fails", async () => {
|
|
29
|
-
const { lenient, strict } = await run("{}");
|
|
30
|
-
expect(lenient).toMatchObject({ _tag: "Success", success: {} });
|
|
31
|
-
expect(strict._tag).toBe("Failure");
|
|
32
|
-
expect((strict as any).failure).toBeInstanceOf(StackitParseError);
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
test("a non-JSON body: lenient returns the text, strict fails", async () => {
|
|
36
|
-
const { lenient, strict } = await run("not json");
|
|
37
|
-
expect(lenient).toMatchObject({ _tag: "Success", success: "not json" });
|
|
38
|
-
expect((strict as any).failure).toBeInstanceOf(StackitParseError);
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
// StackitParseError is part of every operation's declared error type.
|
|
43
|
-
export const parseErrorIsDeclared: [StackitParseError] extends [StackitOpError]
|
|
44
|
-
? true
|
|
45
|
-
: false = true;
|