@distilled.cloud/stackit 1.0.0-rc.15 → 1.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +32 -28
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +22 -22
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +15 -15
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +31 -29
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +24 -23
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +73 -502
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +84 -510
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +67 -314
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +58 -353
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +81 -896
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +45 -171
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +39 -169
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +98 -714
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +56 -307
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +66 -347
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +64 -393
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +87 -510
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +409 -3532
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +74 -465
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +95 -650
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +45 -146
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +76 -486
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +82 -564
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +84 -465
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +84 -541
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +66 -325
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +55 -277
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +102 -793
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +93 -528
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +375 -3148
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +85 -553
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +81 -726
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +114 -841
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +92 -507
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +88 -564
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +49 -189
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +92 -462
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +38 -176
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +63 -435
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +99 -660
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +99 -601
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +70 -444
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +58 -342
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +75 -495
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +40 -147
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +117 -782
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +67 -549
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +112 -925
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +64 -369
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +81 -522
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +73 -474
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +55 -269
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +85 -557
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +105 -920
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +67 -497
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +10 -10
- package/package.json +13 -9
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/alb.js.map +0 -1
- package/lib/services/alb_waf.js.map +0 -1
- package/lib/services/authorization.js.map +0 -1
- package/lib/services/automation.js.map +0 -1
- package/lib/services/cdn.js.map +0 -1
- package/lib/services/certificates.js.map +0 -1
- package/lib/services/cost.js.map +0 -1
- package/lib/services/dns.js.map +0 -1
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.js.map +0 -1
- package/lib/services/iaas.js.map +0 -1
- package/lib/services/intake.js.map +0 -1
- package/lib/services/kms.js.map +0 -1
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/load_balancer.js.map +0 -1
- package/lib/services/logme.js.map +0 -1
- package/lib/services/logs.js.map +0 -1
- package/lib/services/mariadb.js.map +0 -1
- package/lib/services/model_experiments.js.map +0 -1
- package/lib/services/model_serving.js.map +0 -1
- package/lib/services/mongodb_flex.js.map +0 -1
- package/lib/services/object_storage.js.map +0 -1
- package/lib/services/observability.js.map +0 -1
- package/lib/services/opensearch.js.map +0 -1
- package/lib/services/pim.js.map +0 -1
- package/lib/services/postgres_flex.js.map +0 -1
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/rabbitmq.js.map +0 -1
- package/lib/services/registry.js.map +0 -1
- package/lib/services/resource_manager.js.map +0 -1
- package/lib/services/run_command.js.map +0 -1
- package/lib/services/sca.js.map +0 -1
- package/lib/services/scf.js.map +0 -1
- package/lib/services/secrets_manager.js.map +0 -1
- package/lib/services/server_backup.js.map +0 -1
- package/lib/services/server_update.js.map +0 -1
- package/lib/services/service_account.js.map +0 -1
- package/lib/services/service_enablement.js.map +0 -1
- package/lib/services/sfs.js.map +0 -1
- package/lib/services/ske.js.map +0 -1
- package/lib/services/sqlserverflex.js.map +0 -1
- package/lib/services/stackit_marketplace.js.map +0 -1
- package/lib/services/telemetry_link.js.map +0 -1
- package/lib/services/telemetry_router.js.map +0 -1
- package/lib/services/ufw.js.map +0 -1
- package/lib/services/valkey.js.map +0 -1
- package/lib/services/vpn.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -304
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
import * as C from "@distilled.cloud/core/category";
|
|
3
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
5
|
-
import * as
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
+
import type * as Redacted from "effect/Redacted";
|
|
6
7
|
import { UnknownStackitError } from "../errors.ts";
|
|
7
8
|
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
8
9
|
import * as Retry from "../retry.ts";
|
|
9
10
|
import * as T from "../traits.ts";
|
|
11
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
12
|
+
const __s: any[] = [];
|
|
10
13
|
|
|
11
14
|
export type { StackitOpError, StackitOpContext };
|
|
12
15
|
|
|
@@ -54,33 +57,15 @@ export interface BasicAuth {
|
|
|
54
57
|
/** The username */
|
|
55
58
|
username?: string;
|
|
56
59
|
}
|
|
57
|
-
export const BasicAuth = /*@__PURE__*/ S.suspend(() =>
|
|
58
|
-
S.Struct({
|
|
59
|
-
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
60
|
-
type: S.optional(S.String),
|
|
61
|
-
username: S.optional(S.String),
|
|
62
|
-
}),
|
|
63
|
-
).annotate({ identifier: "BasicAuth" }) as any as S.Schema<BasicAuth>;
|
|
64
|
-
|
|
65
60
|
/** No authentication required */
|
|
66
61
|
export interface NoAuth {
|
|
67
62
|
/** Type of authentication */
|
|
68
63
|
type?: string;
|
|
69
64
|
}
|
|
70
|
-
export const NoAuth = /*@__PURE__*/ S.suspend(() =>
|
|
71
|
-
S.Struct({
|
|
72
|
-
type: S.optional(S.String),
|
|
73
|
-
}),
|
|
74
|
-
).annotate({ identifier: "NoAuth" }) as any as S.Schema<NoAuth>;
|
|
75
|
-
|
|
76
65
|
/** Authentication for Git repositories */
|
|
77
66
|
export type GitAuth = BasicAuth | NoAuth;
|
|
78
|
-
export const GitAuth = /*@__PURE__*/ S.Unknown as any as S.Schema<GitAuth>;
|
|
79
|
-
|
|
80
67
|
/** Bundle type identifier. */
|
|
81
68
|
export type GitDagBundleType = "git";
|
|
82
|
-
export const GitDagBundleType = S.String;
|
|
83
|
-
|
|
84
69
|
/** A Git-based DAG bundle. Maps to airflow.providers.git.bundles.git.GitDagBundle. */
|
|
85
70
|
export interface GitDagBundle {
|
|
86
71
|
auth: GitAuth;
|
|
@@ -90,29 +75,15 @@ export interface GitDagBundle {
|
|
|
90
75
|
name: string;
|
|
91
76
|
/** How often (in seconds) to check for new commits. Defaults to 60. */
|
|
92
77
|
refreshInterval?: number;
|
|
93
|
-
/** Subdirectory within the repository containing DAG files. Defaults to root. Leading and trailing slashes are stripped automatically
|
|
78
|
+
/** Subdirectory within the repository containing DAG files. Defaults to root. Leading and trailing slashes are stripped automatically -- the following four forms are all equivalent and stored as `dags/production`: `/dags/production/`, `dags/production/`, `/dags/production`, `dags/production`. */
|
|
94
79
|
subdir?: string;
|
|
95
80
|
/** Bundle type identifier. */
|
|
96
81
|
type: GitDagBundleType;
|
|
97
82
|
/** The URL of the Git repository. */
|
|
98
83
|
url: string;
|
|
99
84
|
}
|
|
100
|
-
export const GitDagBundle = /*@__PURE__*/ S.suspend(() =>
|
|
101
|
-
S.Struct({
|
|
102
|
-
auth: GitAuth,
|
|
103
|
-
branch: S.String,
|
|
104
|
-
name: S.String,
|
|
105
|
-
refreshInterval: S.optional(S.Number),
|
|
106
|
-
subdir: S.optional(S.String),
|
|
107
|
-
type: GitDagBundleType,
|
|
108
|
-
url: S.String,
|
|
109
|
-
}),
|
|
110
|
-
).annotate({ identifier: "GitDagBundle" }) as any as S.Schema<GitDagBundle>;
|
|
111
|
-
|
|
112
85
|
/** Type of authentication */
|
|
113
86
|
export type S3AccessKeyAuthType = "accessKey";
|
|
114
|
-
export const S3AccessKeyAuthType = S.String;
|
|
115
|
-
|
|
116
87
|
/** S3 access key credentials (access key ID + secret access key). */
|
|
117
88
|
export interface S3AccessKeyAuth {
|
|
118
89
|
/** The S3 access key ID. */
|
|
@@ -122,22 +93,10 @@ export interface S3AccessKeyAuth {
|
|
|
122
93
|
/** Type of authentication */
|
|
123
94
|
type: S3AccessKeyAuthType;
|
|
124
95
|
}
|
|
125
|
-
export const S3AccessKeyAuth = /*@__PURE__*/ S.suspend(() =>
|
|
126
|
-
S.Struct({
|
|
127
|
-
accessKeyId: S.String.pipe(T.SensitiveValue({})),
|
|
128
|
-
secretAccessKey: S.String.pipe(T.SensitiveValue({})),
|
|
129
|
-
type: S3AccessKeyAuthType,
|
|
130
|
-
}),
|
|
131
|
-
).annotate({ identifier: "S3AccessKeyAuth" }) as any as S.Schema<S3AccessKeyAuth>;
|
|
132
|
-
|
|
133
96
|
/** Authentication for S3-compatible object storage */
|
|
134
97
|
export type S3Auth = S3AccessKeyAuth | NoAuth;
|
|
135
|
-
export const S3Auth = /*@__PURE__*/ S.Unknown as any as S.Schema<S3Auth>;
|
|
136
|
-
|
|
137
98
|
/** Bundle type identifier. */
|
|
138
99
|
export type S3DagBundleType = "s3";
|
|
139
|
-
export const S3DagBundleType = S.String;
|
|
140
|
-
|
|
141
100
|
/** 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). */
|
|
142
101
|
export interface S3DagBundle {
|
|
143
102
|
/** The S3 bucket name containing DAG files. */
|
|
@@ -154,23 +113,8 @@ export interface S3DagBundle {
|
|
|
154
113
|
/** Bundle type identifier. */
|
|
155
114
|
type: S3DagBundleType;
|
|
156
115
|
}
|
|
157
|
-
export const S3DagBundle = /*@__PURE__*/ S.suspend(() =>
|
|
158
|
-
S.Struct({
|
|
159
|
-
bucketName: S.String,
|
|
160
|
-
endpoint: S.optional(S.String),
|
|
161
|
-
name: S.String,
|
|
162
|
-
prefix: S.optional(S.String),
|
|
163
|
-
refreshInterval: S.optional(S.Number),
|
|
164
|
-
s3Auth: S3Auth,
|
|
165
|
-
type: S3DagBundleType,
|
|
166
|
-
}),
|
|
167
|
-
).annotate({ identifier: "S3DagBundle" }) as any as S.Schema<S3DagBundle>;
|
|
168
|
-
|
|
169
116
|
/** A DAG bundle configuration. Discriminated by the "type" field. Supported types are "git" and "s3". */
|
|
170
117
|
export type CreateDagBundlePayload = GitDagBundle | S3DagBundle;
|
|
171
|
-
export const CreateDagBundlePayload =
|
|
172
|
-
/*@__PURE__*/ S.Unknown as any as S.Schema<CreateDagBundlePayload>;
|
|
173
|
-
|
|
174
118
|
export interface CreateDagBundleRequest {
|
|
175
119
|
/** The STACKIT portal project UUID the STACKIT Workflows instance is part of. */
|
|
176
120
|
projectId: string;
|
|
@@ -180,22 +124,6 @@ export interface CreateDagBundleRequest {
|
|
|
180
124
|
instanceId: string;
|
|
181
125
|
body: CreateDagBundlePayload;
|
|
182
126
|
}
|
|
183
|
-
export const CreateDagBundleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
184
|
-
S.Struct({
|
|
185
|
-
projectId: S.String.pipe(T.Label()),
|
|
186
|
-
regionId: S.String.pipe(T.Label()),
|
|
187
|
-
instanceId: S.String.pipe(T.Label()),
|
|
188
|
-
body: CreateDagBundlePayload.pipe(T.HttpBody()),
|
|
189
|
-
}).pipe(
|
|
190
|
-
T.Http({
|
|
191
|
-
method: "POST",
|
|
192
|
-
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}/dag-bundles",
|
|
193
|
-
code: 200,
|
|
194
|
-
baseUrl: "https://workflows.api.stackit.cloud",
|
|
195
|
-
}),
|
|
196
|
-
),
|
|
197
|
-
).annotate({ identifier: "CreateDagBundleRequest" }) as any as S.Schema<CreateDagBundleRequest>;
|
|
198
|
-
|
|
199
127
|
/** Basic authentication as returned in API responses. The password field is always masked ("**********") and never contains the real value. */
|
|
200
128
|
export interface BasicAuthResponseOutput {
|
|
201
129
|
/** Type of authentication */
|
|
@@ -203,22 +131,10 @@ export interface BasicAuthResponseOutput {
|
|
|
203
131
|
/** The username */
|
|
204
132
|
username?: string;
|
|
205
133
|
}
|
|
206
|
-
export const BasicAuthResponseOutput = /*@__PURE__*/ S.suspend(() =>
|
|
207
|
-
S.Struct({
|
|
208
|
-
type: S.optional(S.String),
|
|
209
|
-
username: S.optional(S.String),
|
|
210
|
-
}),
|
|
211
|
-
).annotate({ identifier: "BasicAuthResponseOutput" }) as any as S.Schema<BasicAuthResponseOutput>;
|
|
212
|
-
|
|
213
134
|
/** Authentication configuration as returned in API responses. Credentials (passwords) are always masked and never returned in plain text. */
|
|
214
135
|
export type GitAuthResponseOutput = BasicAuthResponseOutput | NoAuth;
|
|
215
|
-
export const GitAuthResponseOutput =
|
|
216
|
-
/*@__PURE__*/ S.Unknown as any as S.Schema<GitAuthResponseOutput>;
|
|
217
|
-
|
|
218
136
|
/** Bundle type identifier. */
|
|
219
137
|
export type GitDagBundleResponseOutputType = "git";
|
|
220
|
-
export const GitDagBundleResponseOutputType = S.String;
|
|
221
|
-
|
|
222
138
|
/** A Git-based DAG bundle as returned by the API. The auth structure (type, username) is included; passwords are masked. */
|
|
223
139
|
export interface GitDagBundleResponseOutput {
|
|
224
140
|
auth: GitAuthResponseOutput;
|
|
@@ -235,24 +151,8 @@ export interface GitDagBundleResponseOutput {
|
|
|
235
151
|
/** The URL of the Git repository. */
|
|
236
152
|
url: string;
|
|
237
153
|
}
|
|
238
|
-
export const GitDagBundleResponseOutput = /*@__PURE__*/ S.suspend(() =>
|
|
239
|
-
S.Struct({
|
|
240
|
-
auth: GitAuthResponseOutput,
|
|
241
|
-
branch: S.String,
|
|
242
|
-
name: S.String,
|
|
243
|
-
refreshInterval: S.optional(S.Number),
|
|
244
|
-
subdir: S.optional(S.String),
|
|
245
|
-
type: GitDagBundleResponseOutputType,
|
|
246
|
-
url: S.String,
|
|
247
|
-
}),
|
|
248
|
-
).annotate({
|
|
249
|
-
identifier: "GitDagBundleResponseOutput",
|
|
250
|
-
}) as any as S.Schema<GitDagBundleResponseOutput>;
|
|
251
|
-
|
|
252
154
|
/** Type of authentication */
|
|
253
155
|
export type S3AccessKeyAuthResponseType = "accessKey";
|
|
254
|
-
export const S3AccessKeyAuthResponseType = S.String;
|
|
255
|
-
|
|
256
156
|
/** S3 access key credentials as returned in API responses. The secret access key is always masked ("**********") and never contains the real value. */
|
|
257
157
|
export interface S3AccessKeyAuthResponse {
|
|
258
158
|
/** The S3 access key ID. */
|
|
@@ -262,22 +162,10 @@ export interface S3AccessKeyAuthResponse {
|
|
|
262
162
|
/** Type of authentication */
|
|
263
163
|
type: S3AccessKeyAuthResponseType;
|
|
264
164
|
}
|
|
265
|
-
export const S3AccessKeyAuthResponse = /*@__PURE__*/ S.suspend(() =>
|
|
266
|
-
S.Struct({
|
|
267
|
-
accessKeyId: S.String.pipe(T.SensitiveValue({})),
|
|
268
|
-
secretAccessKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
269
|
-
type: S3AccessKeyAuthResponseType,
|
|
270
|
-
}),
|
|
271
|
-
).annotate({ identifier: "S3AccessKeyAuthResponse" }) as any as S.Schema<S3AccessKeyAuthResponse>;
|
|
272
|
-
|
|
273
165
|
/** S3 authentication configuration as returned in API responses. Secret keys are always masked and never returned in plain text. */
|
|
274
166
|
export type S3AuthResponse = S3AccessKeyAuthResponse | NoAuth;
|
|
275
|
-
export const S3AuthResponse = /*@__PURE__*/ S.Unknown as any as S.Schema<S3AuthResponse>;
|
|
276
|
-
|
|
277
167
|
/** Bundle type identifier. */
|
|
278
168
|
export type S3DagBundleResponseType = "s3";
|
|
279
|
-
export const S3DagBundleResponseType = S.String;
|
|
280
|
-
|
|
281
169
|
/** An S3-based DAG bundle as returned by the API. The s3Auth structure (type, accessKeyId) is included; secret keys are masked. */
|
|
282
170
|
export interface S3DagBundleResponse {
|
|
283
171
|
/** The S3 bucket name containing DAG files. */
|
|
@@ -294,38 +182,13 @@ export interface S3DagBundleResponse {
|
|
|
294
182
|
/** Bundle type identifier. */
|
|
295
183
|
type: S3DagBundleResponseType;
|
|
296
184
|
}
|
|
297
|
-
export const S3DagBundleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
298
|
-
S.Struct({
|
|
299
|
-
bucketName: S.String,
|
|
300
|
-
endpoint: S.optional(S.String),
|
|
301
|
-
name: S.String,
|
|
302
|
-
prefix: S.optional(S.String),
|
|
303
|
-
refreshInterval: S.optional(S.Number),
|
|
304
|
-
s3Auth: S3AuthResponse,
|
|
305
|
-
type: S3DagBundleResponseType,
|
|
306
|
-
}),
|
|
307
|
-
).annotate({ identifier: "S3DagBundleResponse" }) as any as S.Schema<S3DagBundleResponse>;
|
|
308
|
-
|
|
309
185
|
/** 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. */
|
|
310
186
|
export type DagBundleResponseOutput = GitDagBundleResponseOutput | S3DagBundleResponse;
|
|
311
|
-
export const DagBundleResponseOutput =
|
|
312
|
-
/*@__PURE__*/ S.Unknown as any as S.Schema<DagBundleResponseOutput>;
|
|
313
|
-
|
|
314
187
|
export type CreateDagBundleResponse = DagBundleResponseOutput;
|
|
315
|
-
export const CreateDagBundleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
316
|
-
DagBundleResponseOutput.pipe(T.RawResponseRoot()),
|
|
317
|
-
).annotate({ identifier: "CreateDagBundleResponse" }) as any as S.Schema<CreateDagBundleResponse>;
|
|
318
|
-
|
|
319
188
|
/** A DAG bundle configuration. Discriminated by the "type" field. Supported types are "git" and "s3". */
|
|
320
189
|
export type DagBundle = GitDagBundle | S3DagBundle;
|
|
321
|
-
export const DagBundle = /*@__PURE__*/ S.Unknown as any as S.Schema<DagBundle>;
|
|
322
|
-
|
|
323
190
|
/** List of DAG bundles to configure. Supports Git and S3 sources. If provided, this takes precedence over dagsRepository. At least one bundle must be specified. Maximum 10 bundles. Only supported for Airflow 3 versions. */
|
|
324
191
|
export type CreateInstanceRequestDagBundlesList = Array<DagBundle>;
|
|
325
|
-
export const CreateInstanceRequestDagBundlesList = /*@__PURE__*/ S.Array(
|
|
326
|
-
DagBundle,
|
|
327
|
-
) as any as S.Schema<CreateInstanceRequestDagBundlesList>;
|
|
328
|
-
|
|
329
192
|
export interface GitRepository {
|
|
330
193
|
auth: GitAuth;
|
|
331
194
|
/** The branch in the repository to use */
|
|
@@ -333,36 +196,14 @@ export interface GitRepository {
|
|
|
333
196
|
/** The URL of the Git repository. */
|
|
334
197
|
url: string;
|
|
335
198
|
}
|
|
336
|
-
export const GitRepository = /*@__PURE__*/ S.suspend(() =>
|
|
337
|
-
S.Struct({
|
|
338
|
-
auth: GitAuth,
|
|
339
|
-
branch: S.String,
|
|
340
|
-
url: S.String,
|
|
341
|
-
}),
|
|
342
|
-
).annotate({ identifier: "GitRepository" }) as any as S.Schema<GitRepository>;
|
|
343
|
-
|
|
344
199
|
export type StackITIdentityProviderType = "stackit";
|
|
345
|
-
export const StackITIdentityProviderType = S.String;
|
|
346
|
-
|
|
347
200
|
/** The default STACKIT identity provider. */
|
|
348
201
|
export interface StackITIdentityProvider {
|
|
349
202
|
type: StackITIdentityProviderType;
|
|
350
203
|
}
|
|
351
|
-
export const StackITIdentityProvider = /*@__PURE__*/ S.suspend(() =>
|
|
352
|
-
S.Struct({
|
|
353
|
-
type: StackITIdentityProviderType,
|
|
354
|
-
}),
|
|
355
|
-
).annotate({ identifier: "StackITIdentityProvider" }) as any as S.Schema<StackITIdentityProvider>;
|
|
356
|
-
|
|
357
204
|
/** Expected audience(s) for API token validation when using the session endpoint for token exchange. */
|
|
358
205
|
export type OAuth2IdentityProviderApiAudienceList = Array<string>;
|
|
359
|
-
export const OAuth2IdentityProviderApiAudienceList = /*@__PURE__*/ S.Array(
|
|
360
|
-
S.String,
|
|
361
|
-
) as any as S.Schema<OAuth2IdentityProviderApiAudienceList>;
|
|
362
|
-
|
|
363
206
|
export type OAuth2IdentityProviderType = "oauth2";
|
|
364
|
-
export const OAuth2IdentityProviderType = S.String;
|
|
365
|
-
|
|
366
207
|
/** Configuration for the custom OAuth2 identity provider used. */
|
|
367
208
|
export interface OAuth2IdentityProvider {
|
|
368
209
|
/** Expected audience(s) for API token validation when using the session endpoint for token exchange. */
|
|
@@ -383,33 +224,11 @@ export interface OAuth2IdentityProvider {
|
|
|
383
224
|
scope: string;
|
|
384
225
|
type: OAuth2IdentityProviderType;
|
|
385
226
|
}
|
|
386
|
-
export const OAuth2IdentityProvider = /*@__PURE__*/ S.suspend(() =>
|
|
387
|
-
S.Struct({
|
|
388
|
-
apiAudience: S.optional(OAuth2IdentityProviderApiAudienceList),
|
|
389
|
-
clientId: S.String,
|
|
390
|
-
clientSecret: S.String.pipe(T.SensitiveValue({})),
|
|
391
|
-
discoveryEndpoint: S.String,
|
|
392
|
-
name: S.String,
|
|
393
|
-
resource: S.optional(S.String),
|
|
394
|
-
rolesClaim: S.optional(S.String),
|
|
395
|
-
scope: S.String,
|
|
396
|
-
type: OAuth2IdentityProviderType,
|
|
397
|
-
}),
|
|
398
|
-
).annotate({ identifier: "OAuth2IdentityProvider" }) as any as S.Schema<OAuth2IdentityProvider>;
|
|
399
|
-
|
|
400
227
|
/** Configuration for the identity provider used. */
|
|
401
228
|
export type IdentityProvider = StackITIdentityProvider | OAuth2IdentityProvider;
|
|
402
|
-
export const IdentityProvider = /*@__PURE__*/ S.Unknown as any as S.Schema<IdentityProvider>;
|
|
403
|
-
|
|
404
229
|
export interface Network {
|
|
405
230
|
id?: string;
|
|
406
231
|
}
|
|
407
|
-
export const Network = /*@__PURE__*/ S.suspend(() =>
|
|
408
|
-
S.Struct({
|
|
409
|
-
id: S.optional(S.String),
|
|
410
|
-
}),
|
|
411
|
-
).annotate({ identifier: "Network" }) as any as S.Schema<Network>;
|
|
412
|
-
|
|
413
232
|
export interface CreateInstanceRequest {
|
|
414
233
|
/** The STACKIT portal project UUID the STACKIT Workflows instance is part of. */
|
|
415
234
|
projectId: string;
|
|
@@ -433,36 +252,8 @@ export interface CreateInstanceRequest {
|
|
|
433
252
|
/** The version of the STACKIT Workflows to use. For valid versions please take a look at [provider-options](#tag/provider-options/operation/get-provider-options) */
|
|
434
253
|
version: string;
|
|
435
254
|
}
|
|
436
|
-
export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
437
|
-
S.Struct({
|
|
438
|
-
projectId: S.String.pipe(T.Label()),
|
|
439
|
-
regionId: S.String.pipe(T.Label()),
|
|
440
|
-
dagBundles: S.optional(CreateInstanceRequestDagBundlesList),
|
|
441
|
-
dagsRepository: S.optional(GitRepository),
|
|
442
|
-
description: S.optional(S.String),
|
|
443
|
-
displayName: S.String,
|
|
444
|
-
enableAirflowExampleDags: S.optional(S.Boolean),
|
|
445
|
-
enableStackitExampleDags: S.optional(S.Boolean),
|
|
446
|
-
identityProvider: S.optional(IdentityProvider),
|
|
447
|
-
network: S.optional(Network),
|
|
448
|
-
observabilityId: S.optional(S.String),
|
|
449
|
-
version: S.String,
|
|
450
|
-
}).pipe(
|
|
451
|
-
T.Http({
|
|
452
|
-
method: "POST",
|
|
453
|
-
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances",
|
|
454
|
-
code: 200,
|
|
455
|
-
baseUrl: "https://workflows.api.stackit.cloud",
|
|
456
|
-
}),
|
|
457
|
-
),
|
|
458
|
-
).annotate({ identifier: "CreateInstanceRequest" }) as any as S.Schema<CreateInstanceRequest>;
|
|
459
|
-
|
|
460
255
|
/** All configured DAG bundles. This is the canonical source of truth for DAG sources. Available for Airflow 3 instances. */
|
|
461
256
|
export type InstanceDagBundlesList = Array<DagBundle>;
|
|
462
|
-
export const InstanceDagBundlesList = /*@__PURE__*/ S.Array(
|
|
463
|
-
DagBundle,
|
|
464
|
-
) as any as S.Schema<InstanceDagBundlesList>;
|
|
465
|
-
|
|
466
257
|
/** A collection of endpoints offered by the Workflows instance. */
|
|
467
258
|
export interface Endpoints {
|
|
468
259
|
/** The authentication callback URL. */
|
|
@@ -470,17 +261,8 @@ export interface Endpoints {
|
|
|
470
261
|
/** The URL for the UI of the Workflows instance. */
|
|
471
262
|
url: string;
|
|
472
263
|
}
|
|
473
|
-
export const Endpoints = /*@__PURE__*/ S.suspend(() =>
|
|
474
|
-
S.Struct({
|
|
475
|
-
redirectUrl: S.String,
|
|
476
|
-
url: S.String,
|
|
477
|
-
}),
|
|
478
|
-
).annotate({ identifier: "Endpoints" }) as any as S.Schema<Endpoints>;
|
|
479
|
-
|
|
480
264
|
/** The current status of the STACKIT Workflows instance. */
|
|
481
265
|
export type InstanceStatus = "creating" | "active" | "updating" | "deleting" | "failed";
|
|
482
|
-
export const InstanceStatus = S.String;
|
|
483
|
-
|
|
484
266
|
export interface Instance {
|
|
485
267
|
/** The date and time the creation of the STACKIT Workflows instance was triggered. */
|
|
486
268
|
createdAt: string;
|
|
@@ -513,28 +295,6 @@ export interface Instance {
|
|
|
513
295
|
/** The currently configured STACKIT Workflows instance version. */
|
|
514
296
|
version: string;
|
|
515
297
|
}
|
|
516
|
-
export const Instance = /*@__PURE__*/ S.suspend(() =>
|
|
517
|
-
S.Struct({
|
|
518
|
-
createdAt: S.String,
|
|
519
|
-
dagBundles: S.optional(InstanceDagBundlesList),
|
|
520
|
-
dagsRepository: S.optional(GitRepository),
|
|
521
|
-
description: S.optional(S.String),
|
|
522
|
-
displayName: S.String,
|
|
523
|
-
enableAirflowExampleDags: S.optional(S.Boolean),
|
|
524
|
-
enableStackitExampleDags: S.optional(S.Boolean),
|
|
525
|
-
endpoints: Endpoints,
|
|
526
|
-
id: S.String,
|
|
527
|
-
identityProvider: IdentityProvider,
|
|
528
|
-
network: S.optional(Network),
|
|
529
|
-
observabilityId: S.optional(S.String),
|
|
530
|
-
projectId: S.String,
|
|
531
|
-
regionId: S.String,
|
|
532
|
-
status: InstanceStatus,
|
|
533
|
-
statusMessage: S.optional(S.String),
|
|
534
|
-
version: S.String,
|
|
535
|
-
}),
|
|
536
|
-
).annotate({ identifier: "Instance" }) as any as S.Schema<Instance>;
|
|
537
|
-
|
|
538
298
|
export interface DeleteDagBundleRequest {
|
|
539
299
|
/** The STACKIT portal project UUID the STACKIT Workflows instance is part of. */
|
|
540
300
|
projectId: string;
|
|
@@ -545,27 +305,7 @@ export interface DeleteDagBundleRequest {
|
|
|
545
305
|
/** The unique name of the DAG bundle. Must be a valid DNS label (lowercase alphanumeric and hyphens, max 63 characters). */
|
|
546
306
|
bundleName: string;
|
|
547
307
|
}
|
|
548
|
-
export const DeleteDagBundleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
549
|
-
S.Struct({
|
|
550
|
-
projectId: S.String.pipe(T.Label()),
|
|
551
|
-
regionId: S.String.pipe(T.Label()),
|
|
552
|
-
instanceId: S.String.pipe(T.Label()),
|
|
553
|
-
bundleName: S.String.pipe(T.Label()),
|
|
554
|
-
}).pipe(
|
|
555
|
-
T.Http({
|
|
556
|
-
method: "DELETE",
|
|
557
|
-
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}/dag-bundles/{bundleName}",
|
|
558
|
-
code: 200,
|
|
559
|
-
baseUrl: "https://workflows.api.stackit.cloud",
|
|
560
|
-
}),
|
|
561
|
-
),
|
|
562
|
-
).annotate({ identifier: "DeleteDagBundleRequest" }) as any as S.Schema<DeleteDagBundleRequest>;
|
|
563
|
-
|
|
564
308
|
export interface DeleteDagBundleResponse {}
|
|
565
|
-
export const DeleteDagBundleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
566
|
-
identifier: "DeleteDagBundleResponse",
|
|
567
|
-
}) as any as S.Schema<DeleteDagBundleResponse>;
|
|
568
|
-
|
|
569
309
|
export interface DeleteInstanceRequest {
|
|
570
310
|
/** The STACKIT portal project UUID the STACKIT Workflows instance is part of. */
|
|
571
311
|
projectId: string;
|
|
@@ -574,26 +314,7 @@ export interface DeleteInstanceRequest {
|
|
|
574
314
|
/** The STACKIT Workflows instance UUID. */
|
|
575
315
|
instanceId: string;
|
|
576
316
|
}
|
|
577
|
-
export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
578
|
-
S.Struct({
|
|
579
|
-
projectId: S.String.pipe(T.Label()),
|
|
580
|
-
regionId: S.String.pipe(T.Label()),
|
|
581
|
-
instanceId: S.String.pipe(T.Label()),
|
|
582
|
-
}).pipe(
|
|
583
|
-
T.Http({
|
|
584
|
-
method: "DELETE",
|
|
585
|
-
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
586
|
-
code: 200,
|
|
587
|
-
baseUrl: "https://workflows.api.stackit.cloud",
|
|
588
|
-
}),
|
|
589
|
-
),
|
|
590
|
-
).annotate({ identifier: "DeleteInstanceRequest" }) as any as S.Schema<DeleteInstanceRequest>;
|
|
591
|
-
|
|
592
317
|
export interface DeleteInstanceResponse {}
|
|
593
|
-
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
594
|
-
identifier: "DeleteInstanceResponse",
|
|
595
|
-
}) as any as S.Schema<DeleteInstanceResponse>;
|
|
596
|
-
|
|
597
318
|
export interface GetDagBundleRequest {
|
|
598
319
|
/** The STACKIT portal project UUID the STACKIT Workflows instance is part of. */
|
|
599
320
|
projectId: string;
|
|
@@ -604,27 +325,7 @@ export interface GetDagBundleRequest {
|
|
|
604
325
|
/** The unique name of the DAG bundle. Must be a valid DNS label (lowercase alphanumeric and hyphens, max 63 characters). */
|
|
605
326
|
bundleName: string;
|
|
606
327
|
}
|
|
607
|
-
export const GetDagBundleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
608
|
-
S.Struct({
|
|
609
|
-
projectId: S.String.pipe(T.Label()),
|
|
610
|
-
regionId: S.String.pipe(T.Label()),
|
|
611
|
-
instanceId: S.String.pipe(T.Label()),
|
|
612
|
-
bundleName: S.String.pipe(T.Label()),
|
|
613
|
-
}).pipe(
|
|
614
|
-
T.Http({
|
|
615
|
-
method: "GET",
|
|
616
|
-
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}/dag-bundles/{bundleName}",
|
|
617
|
-
code: 200,
|
|
618
|
-
baseUrl: "https://workflows.api.stackit.cloud",
|
|
619
|
-
}),
|
|
620
|
-
),
|
|
621
|
-
).annotate({ identifier: "GetDagBundleRequest" }) as any as S.Schema<GetDagBundleRequest>;
|
|
622
|
-
|
|
623
328
|
export type GetDagBundleResponse = DagBundleResponseOutput;
|
|
624
|
-
export const GetDagBundleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
625
|
-
DagBundleResponseOutput.pipe(T.RawResponseRoot()),
|
|
626
|
-
).annotate({ identifier: "GetDagBundleResponse" }) as any as S.Schema<GetDagBundleResponse>;
|
|
627
|
-
|
|
628
329
|
export interface GetInstanceRequest {
|
|
629
330
|
/** The STACKIT portal project UUID the STACKIT Workflows instance is part of. */
|
|
630
331
|
projectId: string;
|
|
@@ -633,67 +334,19 @@ export interface GetInstanceRequest {
|
|
|
633
334
|
/** The STACKIT Workflows instance UUID. */
|
|
634
335
|
instanceId: string;
|
|
635
336
|
}
|
|
636
|
-
export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
637
|
-
S.Struct({
|
|
638
|
-
projectId: S.String.pipe(T.Label()),
|
|
639
|
-
regionId: S.String.pipe(T.Label()),
|
|
640
|
-
instanceId: S.String.pipe(T.Label()),
|
|
641
|
-
}).pipe(
|
|
642
|
-
T.Http({
|
|
643
|
-
method: "GET",
|
|
644
|
-
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
645
|
-
code: 200,
|
|
646
|
-
baseUrl: "https://workflows.api.stackit.cloud",
|
|
647
|
-
}),
|
|
648
|
-
),
|
|
649
|
-
).annotate({ identifier: "GetInstanceRequest" }) as any as S.Schema<GetInstanceRequest>;
|
|
650
|
-
|
|
651
337
|
export interface GetProviderOptionsRequest {
|
|
652
338
|
/** The STACKIT region the STACKIT Workflows instance is part of. */
|
|
653
339
|
regionId: string;
|
|
654
340
|
}
|
|
655
|
-
export const GetProviderOptionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
656
|
-
S.Struct({
|
|
657
|
-
regionId: S.String.pipe(T.Label()),
|
|
658
|
-
}).pipe(
|
|
659
|
-
T.Http({
|
|
660
|
-
method: "GET",
|
|
661
|
-
uri: "/v1alpha/regions/{regionId}/provider-options",
|
|
662
|
-
code: 200,
|
|
663
|
-
baseUrl: "https://workflows.api.stackit.cloud",
|
|
664
|
-
}),
|
|
665
|
-
),
|
|
666
|
-
).annotate({
|
|
667
|
-
identifier: "GetProviderOptionsRequest",
|
|
668
|
-
}) as any as S.Schema<GetProviderOptionsRequest>;
|
|
669
|
-
|
|
670
341
|
export interface SupportedVersion {
|
|
671
342
|
expirationDate?: string;
|
|
672
343
|
state: string;
|
|
673
344
|
version: string;
|
|
674
345
|
}
|
|
675
|
-
export const SupportedVersion = /*@__PURE__*/ S.suspend(() =>
|
|
676
|
-
S.Struct({
|
|
677
|
-
expirationDate: S.optional(S.String),
|
|
678
|
-
state: S.String,
|
|
679
|
-
version: S.String,
|
|
680
|
-
}),
|
|
681
|
-
).annotate({ identifier: "SupportedVersion" }) as any as S.Schema<SupportedVersion>;
|
|
682
|
-
|
|
683
346
|
export type ProviderOptionsVersionsList = Array<SupportedVersion>;
|
|
684
|
-
export const ProviderOptionsVersionsList = /*@__PURE__*/ S.Array(
|
|
685
|
-
SupportedVersion,
|
|
686
|
-
) as any as S.Schema<ProviderOptionsVersionsList>;
|
|
687
|
-
|
|
688
347
|
export interface ProviderOptions {
|
|
689
348
|
versions: ProviderOptionsVersionsList;
|
|
690
349
|
}
|
|
691
|
-
export const ProviderOptions = /*@__PURE__*/ S.suspend(() =>
|
|
692
|
-
S.Struct({
|
|
693
|
-
versions: ProviderOptionsVersionsList,
|
|
694
|
-
}),
|
|
695
|
-
).annotate({ identifier: "ProviderOptions" }) as any as S.Schema<ProviderOptions>;
|
|
696
|
-
|
|
697
350
|
export interface ListDagBundlesRequest {
|
|
698
351
|
/** The STACKIT portal project UUID the STACKIT Workflows instance is part of. */
|
|
699
352
|
projectId: string;
|
|
@@ -702,77 +355,24 @@ export interface ListDagBundlesRequest {
|
|
|
702
355
|
/** The STACKIT Workflows instance UUID. */
|
|
703
356
|
instanceId: string;
|
|
704
357
|
}
|
|
705
|
-
export const ListDagBundlesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
706
|
-
S.Struct({
|
|
707
|
-
projectId: S.String.pipe(T.Label()),
|
|
708
|
-
regionId: S.String.pipe(T.Label()),
|
|
709
|
-
instanceId: S.String.pipe(T.Label()),
|
|
710
|
-
}).pipe(
|
|
711
|
-
T.Http({
|
|
712
|
-
method: "GET",
|
|
713
|
-
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}/dag-bundles",
|
|
714
|
-
code: 200,
|
|
715
|
-
baseUrl: "https://workflows.api.stackit.cloud",
|
|
716
|
-
}),
|
|
717
|
-
),
|
|
718
|
-
).annotate({ identifier: "ListDagBundlesRequest" }) as any as S.Schema<ListDagBundlesRequest>;
|
|
719
|
-
|
|
720
358
|
/** List of all configured DAG bundles. Authentication type and username are returned for informational purposes; passwords and secrets are always masked. */
|
|
721
359
|
export type ListDagBundlesResponseOutputDagBundlesList = Array<DagBundleResponseOutput>;
|
|
722
|
-
export const ListDagBundlesResponseOutputDagBundlesList = /*@__PURE__*/ S.Array(
|
|
723
|
-
DagBundleResponseOutput,
|
|
724
|
-
) as any as S.Schema<ListDagBundlesResponseOutputDagBundlesList>;
|
|
725
|
-
|
|
726
360
|
export interface ListDagBundlesResponseOutput {
|
|
727
361
|
/** List of all configured DAG bundles. Authentication type and username are returned for informational purposes; passwords and secrets are always masked. */
|
|
728
362
|
dagBundles: ListDagBundlesResponseOutputDagBundlesList;
|
|
729
363
|
}
|
|
730
|
-
export const ListDagBundlesResponseOutput = /*@__PURE__*/ S.suspend(() =>
|
|
731
|
-
S.Struct({
|
|
732
|
-
dagBundles: ListDagBundlesResponseOutputDagBundlesList,
|
|
733
|
-
}),
|
|
734
|
-
).annotate({
|
|
735
|
-
identifier: "ListDagBundlesResponseOutput",
|
|
736
|
-
}) as any as S.Schema<ListDagBundlesResponseOutput>;
|
|
737
|
-
|
|
738
364
|
export interface ListInstancesRequest {
|
|
739
365
|
/** The STACKIT portal project UUID the STACKIT Workflows instance is part of. */
|
|
740
366
|
projectId: string;
|
|
741
367
|
/** The STACKIT region the STACKIT Workflows instance is part of. */
|
|
742
368
|
regionId: string;
|
|
743
369
|
}
|
|
744
|
-
export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
745
|
-
S.Struct({
|
|
746
|
-
projectId: S.String.pipe(T.Label()),
|
|
747
|
-
regionId: S.String.pipe(T.Label()),
|
|
748
|
-
}).pipe(
|
|
749
|
-
T.Http({
|
|
750
|
-
method: "GET",
|
|
751
|
-
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances",
|
|
752
|
-
code: 200,
|
|
753
|
-
baseUrl: "https://workflows.api.stackit.cloud",
|
|
754
|
-
}),
|
|
755
|
-
),
|
|
756
|
-
).annotate({ identifier: "ListInstancesRequest" }) as any as S.Schema<ListInstancesRequest>;
|
|
757
|
-
|
|
758
370
|
export type ListInstancesResponseInstancesList = Array<Instance>;
|
|
759
|
-
export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(
|
|
760
|
-
Instance,
|
|
761
|
-
) as any as S.Schema<ListInstancesResponseInstancesList>;
|
|
762
|
-
|
|
763
371
|
export interface ListInstancesResponse {
|
|
764
372
|
instances: ListInstancesResponseInstancesList;
|
|
765
373
|
}
|
|
766
|
-
|
|
767
|
-
S.Struct({
|
|
768
|
-
instances: ListInstancesResponseInstancesList,
|
|
769
|
-
}),
|
|
770
|
-
).annotate({ identifier: "ListInstancesResponse" }) as any as S.Schema<ListInstancesResponse>;
|
|
771
|
-
|
|
772
|
-
/** Bundle type identifier — must match the existing bundle's type. */
|
|
374
|
+
/** Bundle type identifier -- must match the existing bundle's type. */
|
|
773
375
|
export type UpdateGitDagBundlePayloadType = "git";
|
|
774
|
-
export const UpdateGitDagBundlePayloadType = S.String;
|
|
775
|
-
|
|
776
376
|
/** Partial update payload for a Git DAG bundle. All fields except "type" are optional; only the provided fields will be updated. */
|
|
777
377
|
export interface UpdateGitDagBundlePayload {
|
|
778
378
|
auth?: GitAuth;
|
|
@@ -782,28 +382,13 @@ export interface UpdateGitDagBundlePayload {
|
|
|
782
382
|
refreshInterval?: number;
|
|
783
383
|
/** Updated subdirectory within the repository. Set to empty string or "/" to clear an existing subdir. */
|
|
784
384
|
subdir?: string;
|
|
785
|
-
/** Bundle type identifier
|
|
385
|
+
/** Bundle type identifier -- must match the existing bundle's type. */
|
|
786
386
|
type: UpdateGitDagBundlePayloadType;
|
|
787
387
|
/** Updated Git repository URL. If changed, auth must also be provided. */
|
|
788
388
|
url?: string;
|
|
789
389
|
}
|
|
790
|
-
|
|
791
|
-
S.Struct({
|
|
792
|
-
auth: S.optional(GitAuth),
|
|
793
|
-
branch: S.optional(S.String),
|
|
794
|
-
refreshInterval: S.optional(S.Number),
|
|
795
|
-
subdir: S.optional(S.String),
|
|
796
|
-
type: UpdateGitDagBundlePayloadType,
|
|
797
|
-
url: S.optional(S.String),
|
|
798
|
-
}),
|
|
799
|
-
).annotate({
|
|
800
|
-
identifier: "UpdateGitDagBundlePayload",
|
|
801
|
-
}) as any as S.Schema<UpdateGitDagBundlePayload>;
|
|
802
|
-
|
|
803
|
-
/** Bundle type identifier — must match the existing bundle's type. */
|
|
390
|
+
/** Bundle type identifier -- must match the existing bundle's type. */
|
|
804
391
|
export type UpdateS3DagBundlePayloadType = "s3";
|
|
805
|
-
export const UpdateS3DagBundlePayloadType = S.String;
|
|
806
|
-
|
|
807
392
|
/** Partial update payload for an S3 DAG bundle. All fields except "type" are optional; only the provided fields will be updated. */
|
|
808
393
|
export interface UpdateS3DagBundlePayload {
|
|
809
394
|
/** Updated S3 bucket name. If changed, s3Auth must also be provided. */
|
|
@@ -815,25 +400,11 @@ export interface UpdateS3DagBundlePayload {
|
|
|
815
400
|
/** Updated refresh interval in seconds. */
|
|
816
401
|
refreshInterval?: number;
|
|
817
402
|
s3Auth?: S3Auth;
|
|
818
|
-
/** Bundle type identifier
|
|
403
|
+
/** Bundle type identifier -- must match the existing bundle's type. */
|
|
819
404
|
type: UpdateS3DagBundlePayloadType;
|
|
820
405
|
}
|
|
821
|
-
export const UpdateS3DagBundlePayload = /*@__PURE__*/ S.suspend(() =>
|
|
822
|
-
S.Struct({
|
|
823
|
-
bucketName: S.optional(S.String),
|
|
824
|
-
endpoint: S.optional(S.String),
|
|
825
|
-
prefix: S.optional(S.String),
|
|
826
|
-
refreshInterval: S.optional(S.Number),
|
|
827
|
-
s3Auth: S.optional(S3Auth),
|
|
828
|
-
type: UpdateS3DagBundlePayloadType,
|
|
829
|
-
}),
|
|
830
|
-
).annotate({ identifier: "UpdateS3DagBundlePayload" }) as any as S.Schema<UpdateS3DagBundlePayload>;
|
|
831
|
-
|
|
832
406
|
/** 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. */
|
|
833
407
|
export type UpdateDagBundlePayload = UpdateGitDagBundlePayload | UpdateS3DagBundlePayload;
|
|
834
|
-
export const UpdateDagBundlePayload =
|
|
835
|
-
/*@__PURE__*/ S.Unknown as any as S.Schema<UpdateDagBundlePayload>;
|
|
836
|
-
|
|
837
408
|
export interface UpdateDagBundleRequest {
|
|
838
409
|
/** The STACKIT portal project UUID the STACKIT Workflows instance is part of. */
|
|
839
410
|
projectId: string;
|
|
@@ -845,28 +416,7 @@ export interface UpdateDagBundleRequest {
|
|
|
845
416
|
bundleName: string;
|
|
846
417
|
body: UpdateDagBundlePayload;
|
|
847
418
|
}
|
|
848
|
-
export const UpdateDagBundleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
849
|
-
S.Struct({
|
|
850
|
-
projectId: S.String.pipe(T.Label()),
|
|
851
|
-
regionId: S.String.pipe(T.Label()),
|
|
852
|
-
instanceId: S.String.pipe(T.Label()),
|
|
853
|
-
bundleName: S.String.pipe(T.Label()),
|
|
854
|
-
body: UpdateDagBundlePayload.pipe(T.HttpBody()),
|
|
855
|
-
}).pipe(
|
|
856
|
-
T.Http({
|
|
857
|
-
method: "PATCH",
|
|
858
|
-
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}/dag-bundles/{bundleName}",
|
|
859
|
-
code: 200,
|
|
860
|
-
baseUrl: "https://workflows.api.stackit.cloud",
|
|
861
|
-
}),
|
|
862
|
-
),
|
|
863
|
-
).annotate({ identifier: "UpdateDagBundleRequest" }) as any as S.Schema<UpdateDagBundleRequest>;
|
|
864
|
-
|
|
865
419
|
export type UpdateDagBundleResponse = DagBundleResponseOutput;
|
|
866
|
-
export const UpdateDagBundleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
867
|
-
DagBundleResponseOutput.pipe(T.RawResponseRoot()),
|
|
868
|
-
).annotate({ identifier: "UpdateDagBundleResponse" }) as any as S.Schema<UpdateDagBundleResponse>;
|
|
869
|
-
|
|
870
420
|
export interface UpdateDagsRepositoryRequest {
|
|
871
421
|
/** The STACKIT portal project UUID the STACKIT Workflows instance is part of. */
|
|
872
422
|
projectId: string;
|
|
@@ -880,32 +430,8 @@ export interface UpdateDagsRepositoryRequest {
|
|
|
880
430
|
/** The URL of the Git repository. */
|
|
881
431
|
url?: string;
|
|
882
432
|
}
|
|
883
|
-
export const UpdateDagsRepositoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
884
|
-
S.Struct({
|
|
885
|
-
projectId: S.String.pipe(T.Label()),
|
|
886
|
-
regionId: S.String.pipe(T.Label()),
|
|
887
|
-
instanceId: S.String.pipe(T.Label()),
|
|
888
|
-
auth: S.optional(GitAuth),
|
|
889
|
-
branch: S.optional(S.String),
|
|
890
|
-
url: S.optional(S.String),
|
|
891
|
-
}).pipe(
|
|
892
|
-
T.Http({
|
|
893
|
-
method: "PATCH",
|
|
894
|
-
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}/dags-repository",
|
|
895
|
-
code: 200,
|
|
896
|
-
baseUrl: "https://workflows.api.stackit.cloud",
|
|
897
|
-
}),
|
|
898
|
-
),
|
|
899
|
-
).annotate({
|
|
900
|
-
identifier: "UpdateDagsRepositoryRequest",
|
|
901
|
-
}) as any as S.Schema<UpdateDagsRepositoryRequest>;
|
|
902
|
-
|
|
903
433
|
/** Updated expected audience(s) for API token validation. Set to empty array to disable audience validation. */
|
|
904
434
|
export type OAuth2IdentityProviderPatchApiAudienceList = Array<string>;
|
|
905
|
-
export const OAuth2IdentityProviderPatchApiAudienceList = /*@__PURE__*/ S.Array(
|
|
906
|
-
S.String,
|
|
907
|
-
) as any as S.Schema<OAuth2IdentityProviderPatchApiAudienceList>;
|
|
908
|
-
|
|
909
435
|
/** Request to update an OAuth2 identity provider configuration */
|
|
910
436
|
export interface OAuth2IdentityProviderPatch {
|
|
911
437
|
/** Updated expected audience(s) for API token validation. Set to empty array to disable audience validation. */
|
|
@@ -925,26 +451,8 @@ export interface OAuth2IdentityProviderPatch {
|
|
|
925
451
|
/** Updated scopes to request for Authorization Code Flows. (UI login) */
|
|
926
452
|
scope?: string;
|
|
927
453
|
}
|
|
928
|
-
export const OAuth2IdentityProviderPatch = /*@__PURE__*/ S.suspend(() =>
|
|
929
|
-
S.Struct({
|
|
930
|
-
apiAudience: S.optional(OAuth2IdentityProviderPatchApiAudienceList),
|
|
931
|
-
clientId: S.optional(S.String),
|
|
932
|
-
clientSecret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
933
|
-
discoveryEndpoint: S.optional(S.String),
|
|
934
|
-
name: S.optional(S.String),
|
|
935
|
-
resource: S.optional(S.String),
|
|
936
|
-
rolesClaim: S.optional(S.String),
|
|
937
|
-
scope: S.optional(S.String),
|
|
938
|
-
}),
|
|
939
|
-
).annotate({
|
|
940
|
-
identifier: "OAuth2IdentityProviderPatch",
|
|
941
|
-
}) as any as S.Schema<OAuth2IdentityProviderPatch>;
|
|
942
|
-
|
|
943
454
|
/** Request to update an identity provider configuration */
|
|
944
455
|
export type UpdateIdentityProviderPayload = StackITIdentityProvider | OAuth2IdentityProviderPatch;
|
|
945
|
-
export const UpdateIdentityProviderPayload =
|
|
946
|
-
/*@__PURE__*/ S.Unknown as any as S.Schema<UpdateIdentityProviderPayload>;
|
|
947
|
-
|
|
948
456
|
export interface UpdateIdentityProviderRequest {
|
|
949
457
|
/** The STACKIT portal project UUID the STACKIT Workflows instance is part of. */
|
|
950
458
|
projectId: string;
|
|
@@ -954,24 +462,6 @@ export interface UpdateIdentityProviderRequest {
|
|
|
954
462
|
instanceId: string;
|
|
955
463
|
body: UpdateIdentityProviderPayload;
|
|
956
464
|
}
|
|
957
|
-
export const UpdateIdentityProviderRequest = /*@__PURE__*/ S.suspend(() =>
|
|
958
|
-
S.Struct({
|
|
959
|
-
projectId: S.String.pipe(T.Label()),
|
|
960
|
-
regionId: S.String.pipe(T.Label()),
|
|
961
|
-
instanceId: S.String.pipe(T.Label()),
|
|
962
|
-
body: UpdateIdentityProviderPayload.pipe(T.HttpBody()),
|
|
963
|
-
}).pipe(
|
|
964
|
-
T.Http({
|
|
965
|
-
method: "PATCH",
|
|
966
|
-
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}/identity-provider",
|
|
967
|
-
code: 200,
|
|
968
|
-
baseUrl: "https://workflows.api.stackit.cloud",
|
|
969
|
-
}),
|
|
970
|
-
),
|
|
971
|
-
).annotate({
|
|
972
|
-
identifier: "UpdateIdentityProviderRequest",
|
|
973
|
-
}) as any as S.Schema<UpdateIdentityProviderRequest>;
|
|
974
|
-
|
|
975
465
|
export interface UpdateInstanceRequest {
|
|
976
466
|
/** The STACKIT portal project UUID the STACKIT Workflows instance is part of. */
|
|
977
467
|
projectId: string;
|
|
@@ -990,26 +480,6 @@ export interface UpdateInstanceRequest {
|
|
|
990
480
|
/** The STACKIT Workflows version to use. For valid versions please take a look at [provider-options](#tag/provider-options/operation/get-provider-options) If not provided, the version won't be updated. */
|
|
991
481
|
version?: string;
|
|
992
482
|
}
|
|
993
|
-
export const UpdateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
994
|
-
S.Struct({
|
|
995
|
-
projectId: S.String.pipe(T.Label()),
|
|
996
|
-
regionId: S.String.pipe(T.Label()),
|
|
997
|
-
instanceId: S.String.pipe(T.Label()),
|
|
998
|
-
description: S.optional(S.String),
|
|
999
|
-
displayName: S.optional(S.String),
|
|
1000
|
-
enableAirflowExampleDags: S.optional(S.Boolean),
|
|
1001
|
-
enableStackitExampleDags: S.optional(S.Boolean),
|
|
1002
|
-
version: S.optional(S.String),
|
|
1003
|
-
}).pipe(
|
|
1004
|
-
T.Http({
|
|
1005
|
-
method: "PATCH",
|
|
1006
|
-
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
1007
|
-
code: 200,
|
|
1008
|
-
baseUrl: "https://workflows.api.stackit.cloud",
|
|
1009
|
-
}),
|
|
1010
|
-
),
|
|
1011
|
-
).annotate({ identifier: "UpdateInstanceRequest" }) as any as S.Schema<UpdateInstanceRequest>;
|
|
1012
|
-
|
|
1013
483
|
export interface UpdateObservabilityRequest {
|
|
1014
484
|
/** The STACKIT portal project UUID the STACKIT Workflows instance is part of. */
|
|
1015
485
|
projectId: string;
|
|
@@ -1020,24 +490,6 @@ export interface UpdateObservabilityRequest {
|
|
|
1020
490
|
/** Unique identifier of the customer's observability instance. */
|
|
1021
491
|
observabilityId?: string;
|
|
1022
492
|
}
|
|
1023
|
-
export const UpdateObservabilityRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1024
|
-
S.Struct({
|
|
1025
|
-
projectId: S.String.pipe(T.Label()),
|
|
1026
|
-
regionId: S.String.pipe(T.Label()),
|
|
1027
|
-
instanceId: S.String.pipe(T.Label()),
|
|
1028
|
-
observabilityId: S.optional(S.String),
|
|
1029
|
-
}).pipe(
|
|
1030
|
-
T.Http({
|
|
1031
|
-
method: "PATCH",
|
|
1032
|
-
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}/observability",
|
|
1033
|
-
code: 200,
|
|
1034
|
-
baseUrl: "https://workflows.api.stackit.cloud",
|
|
1035
|
-
}),
|
|
1036
|
-
),
|
|
1037
|
-
).annotate({
|
|
1038
|
-
identifier: "UpdateObservabilityRequest",
|
|
1039
|
-
}) as any as S.Schema<UpdateObservabilityRequest>;
|
|
1040
|
-
|
|
1041
493
|
export type CreateDagBundleError = BadRequest | Forbidden | NotFound | Conflict | StackitOpError;
|
|
1042
494
|
/** Adds a new DAG bundle to this STACKIT Workflows instance. Only supported for Airflow 3 instances. Maximum 10 bundles per instance. */
|
|
1043
495
|
export const createDagBundle: API.OperationMethod<
|
|
@@ -1046,8 +498,8 @@ export const createDagBundle: API.OperationMethod<
|
|
|
1046
498
|
CreateDagBundleError,
|
|
1047
499
|
StackitOpContext
|
|
1048
500
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1049
|
-
input: CreateDagBundleRequest
|
|
1050
|
-
output: CreateDagBundleResponse
|
|
501
|
+
input: __S(64, __c8, 0) as any as S.Schema<CreateDagBundleRequest>,
|
|
502
|
+
output: __S(72, __c9, 0) as any as S.Schema<CreateDagBundleResponse>,
|
|
1051
503
|
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
1052
504
|
protocol: StackitProtocol,
|
|
1053
505
|
retry: Retry.Retry,
|
|
@@ -1061,8 +513,8 @@ export const createInstance: API.OperationMethod<
|
|
|
1061
513
|
CreateInstanceError,
|
|
1062
514
|
StackitOpContext
|
|
1063
515
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1064
|
-
input: CreateInstanceRequest
|
|
1065
|
-
output: Instance
|
|
516
|
+
input: __S(80, __c10, 0) as any as S.Schema<CreateInstanceRequest>,
|
|
517
|
+
output: __S(92, __c11, 4) as any as S.Schema<Instance>,
|
|
1066
518
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
1067
519
|
protocol: StackitProtocol,
|
|
1068
520
|
retry: Retry.Retry,
|
|
@@ -1076,8 +528,8 @@ export const deleteDagBundle: API.OperationMethod<
|
|
|
1076
528
|
DeleteDagBundleError,
|
|
1077
529
|
StackitOpContext
|
|
1078
530
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1079
|
-
input: DeleteDagBundleRequest
|
|
1080
|
-
output: DeleteDagBundleResponse
|
|
531
|
+
input: __S(96, __c12, 0) as any as S.Schema<DeleteDagBundleRequest>,
|
|
532
|
+
output: __S(104, __c13, 0) as any as S.Schema<DeleteDagBundleResponse>,
|
|
1081
533
|
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
1082
534
|
protocol: StackitProtocol,
|
|
1083
535
|
retry: Retry.Retry,
|
|
@@ -1091,8 +543,8 @@ export const deleteInstance: API.OperationMethod<
|
|
|
1091
543
|
DeleteInstanceError,
|
|
1092
544
|
StackitOpContext
|
|
1093
545
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1094
|
-
input: DeleteInstanceRequest
|
|
1095
|
-
output: DeleteInstanceResponse
|
|
546
|
+
input: __S(112, __c14, 0) as any as S.Schema<DeleteInstanceRequest>,
|
|
547
|
+
output: __S(104, __c13, 0) as any as S.Schema<DeleteInstanceResponse>,
|
|
1096
548
|
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
1097
549
|
protocol: StackitProtocol,
|
|
1098
550
|
retry: Retry.Retry,
|
|
@@ -1106,8 +558,8 @@ export const getDagBundle: API.OperationMethod<
|
|
|
1106
558
|
GetDagBundleError,
|
|
1107
559
|
StackitOpContext
|
|
1108
560
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1109
|
-
input: GetDagBundleRequest
|
|
1110
|
-
output: GetDagBundleResponse
|
|
561
|
+
input: __S(120, __c15, 0) as any as S.Schema<GetDagBundleRequest>,
|
|
562
|
+
output: __S(72, __c9, 0) as any as S.Schema<GetDagBundleResponse>,
|
|
1111
563
|
errors: [Forbidden, NotFound, UnknownStackitError],
|
|
1112
564
|
protocol: StackitProtocol,
|
|
1113
565
|
retry: Retry.Retry,
|
|
@@ -1121,8 +573,8 @@ export const getInstance: API.OperationMethod<
|
|
|
1121
573
|
GetInstanceError,
|
|
1122
574
|
StackitOpContext
|
|
1123
575
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1124
|
-
input: GetInstanceRequest
|
|
1125
|
-
output: Instance
|
|
576
|
+
input: __S(128, __c16, 0) as any as S.Schema<GetInstanceRequest>,
|
|
577
|
+
output: __S(92, __c11, 4) as any as S.Schema<Instance>,
|
|
1126
578
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1127
579
|
protocol: StackitProtocol,
|
|
1128
580
|
retry: Retry.Retry,
|
|
@@ -1136,8 +588,8 @@ export const getProviderOptions: API.OperationMethod<
|
|
|
1136
588
|
GetProviderOptionsError,
|
|
1137
589
|
StackitOpContext
|
|
1138
590
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1139
|
-
input: GetProviderOptionsRequest
|
|
1140
|
-
output: ProviderOptions
|
|
591
|
+
input: __S(0, __c0, 0) as any as S.Schema<GetProviderOptionsRequest>,
|
|
592
|
+
output: __S(3, __c0, 3) as any as S.Schema<ProviderOptions>,
|
|
1141
593
|
errors: [BadRequest, UnknownStackitError],
|
|
1142
594
|
protocol: StackitProtocol,
|
|
1143
595
|
retry: Retry.Retry,
|
|
@@ -1151,8 +603,8 @@ export const listDagBundles: API.OperationMethod<
|
|
|
1151
603
|
ListDagBundlesError,
|
|
1152
604
|
StackitOpContext
|
|
1153
605
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1154
|
-
input: ListDagBundlesRequest
|
|
1155
|
-
output: ListDagBundlesResponseOutput
|
|
606
|
+
input: __S(8, __c1, 0) as any as S.Schema<ListDagBundlesRequest>,
|
|
607
|
+
output: __S(10, __c1, 2) as any as S.Schema<ListDagBundlesResponseOutput>,
|
|
1156
608
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1157
609
|
protocol: StackitProtocol,
|
|
1158
610
|
retry: Retry.Retry,
|
|
@@ -1166,8 +618,8 @@ export const listInstances: API.OperationMethod<
|
|
|
1166
618
|
ListInstancesError,
|
|
1167
619
|
StackitOpContext
|
|
1168
620
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1169
|
-
input: ListInstancesRequest
|
|
1170
|
-
output: ListInstancesResponse
|
|
621
|
+
input: __S(16, __c2, 0) as any as S.Schema<ListInstancesRequest>,
|
|
622
|
+
output: __S(18, __c2, 2) as any as S.Schema<ListInstancesResponse>,
|
|
1171
623
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
1172
624
|
protocol: StackitProtocol,
|
|
1173
625
|
retry: Retry.Retry,
|
|
@@ -1181,8 +633,8 @@ export const updateDagBundle: API.OperationMethod<
|
|
|
1181
633
|
UpdateDagBundleError,
|
|
1182
634
|
StackitOpContext
|
|
1183
635
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1184
|
-
input: UpdateDagBundleRequest
|
|
1185
|
-
output: UpdateDagBundleResponse
|
|
636
|
+
input: __S(24, __c3, 0) as any as S.Schema<UpdateDagBundleRequest>,
|
|
637
|
+
output: __S(72, __c9, 0) as any as S.Schema<UpdateDagBundleResponse>,
|
|
1186
638
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1187
639
|
protocol: StackitProtocol,
|
|
1188
640
|
retry: Retry.Retry,
|
|
@@ -1196,8 +648,8 @@ export const updateDagsRepository: API.OperationMethod<
|
|
|
1196
648
|
UpdateDagsRepositoryError,
|
|
1197
649
|
StackitOpContext
|
|
1198
650
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1199
|
-
input: UpdateDagsRepositoryRequest
|
|
1200
|
-
output: Instance
|
|
651
|
+
input: __S(32, __c4, 0) as any as S.Schema<UpdateDagsRepositoryRequest>,
|
|
652
|
+
output: __S(92, __c11, 4) as any as S.Schema<Instance>,
|
|
1201
653
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1202
654
|
protocol: StackitProtocol,
|
|
1203
655
|
retry: Retry.Retry,
|
|
@@ -1211,8 +663,8 @@ export const updateIdentityProvider: API.OperationMethod<
|
|
|
1211
663
|
UpdateIdentityProviderError,
|
|
1212
664
|
StackitOpContext
|
|
1213
665
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1214
|
-
input: UpdateIdentityProviderRequest
|
|
1215
|
-
output: Instance
|
|
666
|
+
input: __S(40, __c5, 0) as any as S.Schema<UpdateIdentityProviderRequest>,
|
|
667
|
+
output: __S(92, __c11, 4) as any as S.Schema<Instance>,
|
|
1216
668
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1217
669
|
protocol: StackitProtocol,
|
|
1218
670
|
retry: Retry.Retry,
|
|
@@ -1226,8 +678,8 @@ export const updateInstance: API.OperationMethod<
|
|
|
1226
678
|
UpdateInstanceError,
|
|
1227
679
|
StackitOpContext
|
|
1228
680
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1229
|
-
input: UpdateInstanceRequest
|
|
1230
|
-
output: Instance
|
|
681
|
+
input: __S(48, __c6, 0) as any as S.Schema<UpdateInstanceRequest>,
|
|
682
|
+
output: __S(92, __c11, 4) as any as S.Schema<Instance>,
|
|
1231
683
|
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
1232
684
|
protocol: StackitProtocol,
|
|
1233
685
|
retry: Retry.Retry,
|
|
@@ -1241,9 +693,397 @@ export const updateObservability: API.OperationMethod<
|
|
|
1241
693
|
UpdateObservabilityError,
|
|
1242
694
|
StackitOpContext
|
|
1243
695
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1244
|
-
input: UpdateObservabilityRequest
|
|
1245
|
-
output: Instance
|
|
696
|
+
input: __S(56, __c7, 0) as any as S.Schema<UpdateObservabilityRequest>,
|
|
697
|
+
output: __S(92, __c11, 4) as any as S.Schema<Instance>,
|
|
1246
698
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1247
699
|
protocol: StackitProtocol,
|
|
1248
700
|
retry: Retry.Retry,
|
|
1249
701
|
}));
|
|
702
|
+
|
|
703
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
704
|
+
function __c0(j: number): any {
|
|
705
|
+
switch (j) {
|
|
706
|
+
case 0:
|
|
707
|
+
return S.suspend(() =>
|
|
708
|
+
S.Struct({
|
|
709
|
+
regionId: S.String.pipe(T.Label()),
|
|
710
|
+
}).pipe(
|
|
711
|
+
T.Http({
|
|
712
|
+
method: "GET",
|
|
713
|
+
uri: "/v1alpha/regions/{regionId}/provider-options",
|
|
714
|
+
code: 200,
|
|
715
|
+
baseUrl: "https://workflows.api.stackit.cloud",
|
|
716
|
+
}),
|
|
717
|
+
),
|
|
718
|
+
).annotate({ identifier: "GetProviderOptionsRequest" });
|
|
719
|
+
case 1:
|
|
720
|
+
return S.suspend(() =>
|
|
721
|
+
S.Struct({
|
|
722
|
+
expirationDate: S.optional(S.String),
|
|
723
|
+
state: S.String,
|
|
724
|
+
version: S.String,
|
|
725
|
+
}),
|
|
726
|
+
).annotate({ identifier: "SupportedVersion" });
|
|
727
|
+
case 2:
|
|
728
|
+
return S.Array(__S(1, __c0, 1));
|
|
729
|
+
case 3:
|
|
730
|
+
return S.suspend(() =>
|
|
731
|
+
S.Struct({
|
|
732
|
+
versions: __S(2, __c0, 2),
|
|
733
|
+
}),
|
|
734
|
+
).annotate({ identifier: "ProviderOptions" });
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
function __c1(j: number): any {
|
|
738
|
+
switch (j) {
|
|
739
|
+
case 0:
|
|
740
|
+
return S.suspend(() =>
|
|
741
|
+
S.Struct({
|
|
742
|
+
projectId: S.String.pipe(T.Label()),
|
|
743
|
+
regionId: S.String.pipe(T.Label()),
|
|
744
|
+
instanceId: S.String.pipe(T.Label()),
|
|
745
|
+
}).pipe(
|
|
746
|
+
T.Http({
|
|
747
|
+
method: "GET",
|
|
748
|
+
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}/dag-bundles",
|
|
749
|
+
code: 200,
|
|
750
|
+
baseUrl: "https://workflows.api.stackit.cloud",
|
|
751
|
+
}),
|
|
752
|
+
),
|
|
753
|
+
).annotate({ identifier: "ListDagBundlesRequest" });
|
|
754
|
+
case 1:
|
|
755
|
+
return S.Array(S.Unknown);
|
|
756
|
+
case 2:
|
|
757
|
+
return S.suspend(() =>
|
|
758
|
+
S.Struct({
|
|
759
|
+
dagBundles: __S(9, __c1, 1),
|
|
760
|
+
}),
|
|
761
|
+
).annotate({ identifier: "ListDagBundlesResponseOutput" });
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
function __c2(j: number): any {
|
|
765
|
+
switch (j) {
|
|
766
|
+
case 0:
|
|
767
|
+
return S.suspend(() =>
|
|
768
|
+
S.Struct({
|
|
769
|
+
projectId: S.String.pipe(T.Label()),
|
|
770
|
+
regionId: S.String.pipe(T.Label()),
|
|
771
|
+
}).pipe(
|
|
772
|
+
T.Http({
|
|
773
|
+
method: "GET",
|
|
774
|
+
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances",
|
|
775
|
+
code: 200,
|
|
776
|
+
baseUrl: "https://workflows.api.stackit.cloud",
|
|
777
|
+
}),
|
|
778
|
+
),
|
|
779
|
+
).annotate({ identifier: "ListInstancesRequest" });
|
|
780
|
+
case 1:
|
|
781
|
+
return S.Array(__S(92, __c11, 4));
|
|
782
|
+
case 2:
|
|
783
|
+
return S.suspend(() =>
|
|
784
|
+
S.Struct({
|
|
785
|
+
instances: __S(17, __c2, 1),
|
|
786
|
+
}),
|
|
787
|
+
).annotate({ identifier: "ListInstancesResponse" });
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
function __c3(j: number): any {
|
|
791
|
+
switch (j) {
|
|
792
|
+
case 0:
|
|
793
|
+
return S.suspend(() =>
|
|
794
|
+
S.Struct({
|
|
795
|
+
projectId: S.String.pipe(T.Label()),
|
|
796
|
+
regionId: S.String.pipe(T.Label()),
|
|
797
|
+
instanceId: S.String.pipe(T.Label()),
|
|
798
|
+
bundleName: S.String.pipe(T.Label()),
|
|
799
|
+
body: S.Unknown.pipe(T.HttpBody()),
|
|
800
|
+
}).pipe(
|
|
801
|
+
T.Http({
|
|
802
|
+
method: "PATCH",
|
|
803
|
+
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}/dag-bundles/{bundleName}",
|
|
804
|
+
code: 200,
|
|
805
|
+
baseUrl: "https://workflows.api.stackit.cloud",
|
|
806
|
+
}),
|
|
807
|
+
),
|
|
808
|
+
).annotate({ identifier: "UpdateDagBundleRequest" });
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
function __c4(j: number): any {
|
|
812
|
+
switch (j) {
|
|
813
|
+
case 0:
|
|
814
|
+
return S.suspend(() =>
|
|
815
|
+
S.Struct({
|
|
816
|
+
projectId: S.String.pipe(T.Label()),
|
|
817
|
+
regionId: S.String.pipe(T.Label()),
|
|
818
|
+
instanceId: S.String.pipe(T.Label()),
|
|
819
|
+
auth: S.optional(S.Unknown),
|
|
820
|
+
branch: S.optional(S.String),
|
|
821
|
+
url: S.optional(S.String),
|
|
822
|
+
}).pipe(
|
|
823
|
+
T.Http({
|
|
824
|
+
method: "PATCH",
|
|
825
|
+
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}/dags-repository",
|
|
826
|
+
code: 200,
|
|
827
|
+
baseUrl: "https://workflows.api.stackit.cloud",
|
|
828
|
+
}),
|
|
829
|
+
),
|
|
830
|
+
).annotate({ identifier: "UpdateDagsRepositoryRequest" });
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
function __c5(j: number): any {
|
|
834
|
+
switch (j) {
|
|
835
|
+
case 0:
|
|
836
|
+
return S.suspend(() =>
|
|
837
|
+
S.Struct({
|
|
838
|
+
projectId: S.String.pipe(T.Label()),
|
|
839
|
+
regionId: S.String.pipe(T.Label()),
|
|
840
|
+
instanceId: S.String.pipe(T.Label()),
|
|
841
|
+
body: S.Unknown.pipe(T.HttpBody()),
|
|
842
|
+
}).pipe(
|
|
843
|
+
T.Http({
|
|
844
|
+
method: "PATCH",
|
|
845
|
+
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}/identity-provider",
|
|
846
|
+
code: 200,
|
|
847
|
+
baseUrl: "https://workflows.api.stackit.cloud",
|
|
848
|
+
}),
|
|
849
|
+
),
|
|
850
|
+
).annotate({ identifier: "UpdateIdentityProviderRequest" });
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
function __c6(j: number): any {
|
|
854
|
+
switch (j) {
|
|
855
|
+
case 0:
|
|
856
|
+
return S.suspend(() =>
|
|
857
|
+
S.Struct({
|
|
858
|
+
projectId: S.String.pipe(T.Label()),
|
|
859
|
+
regionId: S.String.pipe(T.Label()),
|
|
860
|
+
instanceId: S.String.pipe(T.Label()),
|
|
861
|
+
description: S.optional(S.String),
|
|
862
|
+
displayName: S.optional(S.String),
|
|
863
|
+
enableAirflowExampleDags: S.optional(S.Boolean),
|
|
864
|
+
enableStackitExampleDags: S.optional(S.Boolean),
|
|
865
|
+
version: S.optional(S.String),
|
|
866
|
+
}).pipe(
|
|
867
|
+
T.Http({
|
|
868
|
+
method: "PATCH",
|
|
869
|
+
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
870
|
+
code: 200,
|
|
871
|
+
baseUrl: "https://workflows.api.stackit.cloud",
|
|
872
|
+
}),
|
|
873
|
+
),
|
|
874
|
+
).annotate({ identifier: "UpdateInstanceRequest" });
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
function __c7(j: number): any {
|
|
878
|
+
switch (j) {
|
|
879
|
+
case 0:
|
|
880
|
+
return S.suspend(() =>
|
|
881
|
+
S.Struct({
|
|
882
|
+
projectId: S.String.pipe(T.Label()),
|
|
883
|
+
regionId: S.String.pipe(T.Label()),
|
|
884
|
+
instanceId: S.String.pipe(T.Label()),
|
|
885
|
+
observabilityId: S.optional(S.String),
|
|
886
|
+
}).pipe(
|
|
887
|
+
T.Http({
|
|
888
|
+
method: "PATCH",
|
|
889
|
+
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}/observability",
|
|
890
|
+
code: 200,
|
|
891
|
+
baseUrl: "https://workflows.api.stackit.cloud",
|
|
892
|
+
}),
|
|
893
|
+
),
|
|
894
|
+
).annotate({ identifier: "UpdateObservabilityRequest" });
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
function __c8(j: number): any {
|
|
898
|
+
switch (j) {
|
|
899
|
+
case 0:
|
|
900
|
+
return S.suspend(() =>
|
|
901
|
+
S.Struct({
|
|
902
|
+
projectId: S.String.pipe(T.Label()),
|
|
903
|
+
regionId: S.String.pipe(T.Label()),
|
|
904
|
+
instanceId: S.String.pipe(T.Label()),
|
|
905
|
+
body: S.Unknown.pipe(T.HttpBody()),
|
|
906
|
+
}).pipe(
|
|
907
|
+
T.Http({
|
|
908
|
+
method: "POST",
|
|
909
|
+
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}/dag-bundles",
|
|
910
|
+
code: 200,
|
|
911
|
+
baseUrl: "https://workflows.api.stackit.cloud",
|
|
912
|
+
}),
|
|
913
|
+
),
|
|
914
|
+
).annotate({ identifier: "CreateDagBundleRequest" });
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
function __c9(j: number): any {
|
|
918
|
+
switch (j) {
|
|
919
|
+
case 0:
|
|
920
|
+
return S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
921
|
+
identifier: "CreateDagBundleResponse",
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
function __c10(j: number): any {
|
|
926
|
+
switch (j) {
|
|
927
|
+
case 0:
|
|
928
|
+
return S.suspend(() =>
|
|
929
|
+
S.Struct({
|
|
930
|
+
projectId: S.String.pipe(T.Label()),
|
|
931
|
+
regionId: S.String.pipe(T.Label()),
|
|
932
|
+
dagBundles: S.optional(__S(88, __c11, 0)),
|
|
933
|
+
dagsRepository: S.optional(__S(89, __c11, 1)),
|
|
934
|
+
description: S.optional(S.String),
|
|
935
|
+
displayName: S.String,
|
|
936
|
+
enableAirflowExampleDags: S.optional(S.Boolean),
|
|
937
|
+
enableStackitExampleDags: S.optional(S.Boolean),
|
|
938
|
+
identityProvider: S.optional(S.Unknown),
|
|
939
|
+
network: S.optional(__S(90, __c11, 2)),
|
|
940
|
+
observabilityId: S.optional(S.String),
|
|
941
|
+
version: S.String,
|
|
942
|
+
}).pipe(
|
|
943
|
+
T.Http({
|
|
944
|
+
method: "POST",
|
|
945
|
+
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances",
|
|
946
|
+
code: 200,
|
|
947
|
+
baseUrl: "https://workflows.api.stackit.cloud",
|
|
948
|
+
}),
|
|
949
|
+
),
|
|
950
|
+
).annotate({ identifier: "CreateInstanceRequest" });
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
function __c11(j: number): any {
|
|
954
|
+
switch (j) {
|
|
955
|
+
case 0:
|
|
956
|
+
return S.Array(S.Unknown);
|
|
957
|
+
case 1:
|
|
958
|
+
return S.suspend(() =>
|
|
959
|
+
S.Struct({
|
|
960
|
+
auth: S.Unknown,
|
|
961
|
+
branch: S.String,
|
|
962
|
+
url: S.String,
|
|
963
|
+
}),
|
|
964
|
+
).annotate({ identifier: "GitRepository" });
|
|
965
|
+
case 2:
|
|
966
|
+
return S.suspend(() =>
|
|
967
|
+
S.Struct({
|
|
968
|
+
id: S.optional(S.String),
|
|
969
|
+
}),
|
|
970
|
+
).annotate({ identifier: "Network" });
|
|
971
|
+
case 3:
|
|
972
|
+
return S.suspend(() =>
|
|
973
|
+
S.Struct({
|
|
974
|
+
redirectUrl: S.String,
|
|
975
|
+
url: S.String,
|
|
976
|
+
}),
|
|
977
|
+
).annotate({ identifier: "Endpoints" });
|
|
978
|
+
case 4:
|
|
979
|
+
return S.suspend(() =>
|
|
980
|
+
S.Struct({
|
|
981
|
+
createdAt: S.String,
|
|
982
|
+
dagBundles: S.optional(__S(88, __c11, 0)),
|
|
983
|
+
dagsRepository: S.optional(__S(89, __c11, 1)),
|
|
984
|
+
description: S.optional(S.String),
|
|
985
|
+
displayName: S.String,
|
|
986
|
+
enableAirflowExampleDags: S.optional(S.Boolean),
|
|
987
|
+
enableStackitExampleDags: S.optional(S.Boolean),
|
|
988
|
+
endpoints: __S(91, __c11, 3),
|
|
989
|
+
id: S.String,
|
|
990
|
+
identityProvider: S.Unknown,
|
|
991
|
+
network: S.optional(__S(90, __c11, 2)),
|
|
992
|
+
observabilityId: S.optional(S.String),
|
|
993
|
+
projectId: S.String,
|
|
994
|
+
regionId: S.String,
|
|
995
|
+
status: S.String,
|
|
996
|
+
statusMessage: S.optional(S.String),
|
|
997
|
+
version: S.String,
|
|
998
|
+
}),
|
|
999
|
+
).annotate({ identifier: "Instance" });
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
function __c12(j: number): any {
|
|
1003
|
+
switch (j) {
|
|
1004
|
+
case 0:
|
|
1005
|
+
return S.suspend(() =>
|
|
1006
|
+
S.Struct({
|
|
1007
|
+
projectId: S.String.pipe(T.Label()),
|
|
1008
|
+
regionId: S.String.pipe(T.Label()),
|
|
1009
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1010
|
+
bundleName: S.String.pipe(T.Label()),
|
|
1011
|
+
}).pipe(
|
|
1012
|
+
T.Http({
|
|
1013
|
+
method: "DELETE",
|
|
1014
|
+
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}/dag-bundles/{bundleName}",
|
|
1015
|
+
code: 200,
|
|
1016
|
+
baseUrl: "https://workflows.api.stackit.cloud",
|
|
1017
|
+
}),
|
|
1018
|
+
),
|
|
1019
|
+
).annotate({ identifier: "DeleteDagBundleRequest" });
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
function __c13(j: number): any {
|
|
1023
|
+
switch (j) {
|
|
1024
|
+
case 0:
|
|
1025
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteDagBundleResponse" });
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
function __c14(j: number): any {
|
|
1029
|
+
switch (j) {
|
|
1030
|
+
case 0:
|
|
1031
|
+
return S.suspend(() =>
|
|
1032
|
+
S.Struct({
|
|
1033
|
+
projectId: S.String.pipe(T.Label()),
|
|
1034
|
+
regionId: S.String.pipe(T.Label()),
|
|
1035
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1036
|
+
}).pipe(
|
|
1037
|
+
T.Http({
|
|
1038
|
+
method: "DELETE",
|
|
1039
|
+
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
1040
|
+
code: 200,
|
|
1041
|
+
baseUrl: "https://workflows.api.stackit.cloud",
|
|
1042
|
+
}),
|
|
1043
|
+
),
|
|
1044
|
+
).annotate({ identifier: "DeleteInstanceRequest" });
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
function __c15(j: number): any {
|
|
1048
|
+
switch (j) {
|
|
1049
|
+
case 0:
|
|
1050
|
+
return S.suspend(() =>
|
|
1051
|
+
S.Struct({
|
|
1052
|
+
projectId: S.String.pipe(T.Label()),
|
|
1053
|
+
regionId: S.String.pipe(T.Label()),
|
|
1054
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1055
|
+
bundleName: S.String.pipe(T.Label()),
|
|
1056
|
+
}).pipe(
|
|
1057
|
+
T.Http({
|
|
1058
|
+
method: "GET",
|
|
1059
|
+
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}/dag-bundles/{bundleName}",
|
|
1060
|
+
code: 200,
|
|
1061
|
+
baseUrl: "https://workflows.api.stackit.cloud",
|
|
1062
|
+
}),
|
|
1063
|
+
),
|
|
1064
|
+
).annotate({ identifier: "GetDagBundleRequest" });
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
function __c16(j: number): any {
|
|
1068
|
+
switch (j) {
|
|
1069
|
+
case 0:
|
|
1070
|
+
return S.suspend(() =>
|
|
1071
|
+
S.Struct({
|
|
1072
|
+
projectId: S.String.pipe(T.Label()),
|
|
1073
|
+
regionId: S.String.pipe(T.Label()),
|
|
1074
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1075
|
+
}).pipe(
|
|
1076
|
+
T.Http({
|
|
1077
|
+
method: "GET",
|
|
1078
|
+
uri: "/v1alpha/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
|
|
1079
|
+
code: 200,
|
|
1080
|
+
baseUrl: "https://workflows.api.stackit.cloud",
|
|
1081
|
+
}),
|
|
1082
|
+
),
|
|
1083
|
+
).annotate({ identifier: "GetInstanceRequest" });
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1087
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1088
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1089
|
+
}
|