@distilled.cloud/stackit 1.0.0-rc.13 → 1.0.0-rc.14
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,21 +1,15 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
1
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
2
3
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
4
|
import * as Redacted from "effect/Redacted";
|
|
4
|
-
import * as API from "@distilled.cloud/core/api";
|
|
5
|
-
import * as T from "../traits.ts";
|
|
6
|
-
import {
|
|
7
|
-
StackitProtocol,
|
|
8
|
-
type StackitOpError,
|
|
9
|
-
type StackitOpContext,
|
|
10
|
-
} from "../protocol.ts";
|
|
11
5
|
import { UnknownStackitError } from "../errors.ts";
|
|
6
|
+
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
12
7
|
import * as Retry from "../retry.ts";
|
|
8
|
+
import * as T from "../traits.ts";
|
|
13
9
|
|
|
14
10
|
export type { StackitOpError, StackitOpContext };
|
|
15
11
|
|
|
16
|
-
export type CreateFunctionRequestLabelsMap = {
|
|
17
|
-
[key: string]: string | undefined;
|
|
18
|
-
};
|
|
12
|
+
export type CreateFunctionRequestLabelsMap = { [key: string]: string | undefined };
|
|
19
13
|
export const CreateFunctionRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
20
14
|
S.String,
|
|
21
15
|
S.String,
|
|
@@ -23,7 +17,7 @@ export const CreateFunctionRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
|
23
17
|
|
|
24
18
|
/** Status of this function's latest revision. */
|
|
25
19
|
export type CreateFunctionRequestState = "CREATING" | "ACTIVE" | "FAILED";
|
|
26
|
-
export const CreateFunctionRequestState =
|
|
20
|
+
export const CreateFunctionRequestState = S.String;
|
|
27
21
|
|
|
28
22
|
/** URLs that resolve to the function. */
|
|
29
23
|
export type CreateFunctionRequestUrlList = Array<string>;
|
|
@@ -72,9 +66,7 @@ export const CreateFunctionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
72
66
|
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
73
67
|
}),
|
|
74
68
|
),
|
|
75
|
-
).annotate({
|
|
76
|
-
identifier: "CreateFunctionRequest",
|
|
77
|
-
}) as any as S.Schema<CreateFunctionRequest>;
|
|
69
|
+
).annotate({ identifier: "CreateFunctionRequest" }) as any as S.Schema<CreateFunctionRequest>;
|
|
78
70
|
|
|
79
71
|
export type FunctionLabelsMap = { [key: string]: string | undefined };
|
|
80
72
|
export const FunctionLabelsMap = /*@__PURE__*/ S.Record(
|
|
@@ -84,13 +76,11 @@ export const FunctionLabelsMap = /*@__PURE__*/ S.Record(
|
|
|
84
76
|
|
|
85
77
|
/** Status of this function's latest revision. */
|
|
86
78
|
export type FunctionState = "CREATING" | "ACTIVE" | "FAILED";
|
|
87
|
-
export const FunctionState =
|
|
79
|
+
export const FunctionState = S.String;
|
|
88
80
|
|
|
89
81
|
/** URLs that resolve to the function. */
|
|
90
82
|
export type FunctionUrlList = Array<string>;
|
|
91
|
-
export const FunctionUrlList = /*@__PURE__*/ S.Array(
|
|
92
|
-
S.String,
|
|
93
|
-
) as any as S.Schema<FunctionUrlList>;
|
|
83
|
+
export const FunctionUrlList = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<FunctionUrlList>;
|
|
94
84
|
|
|
95
85
|
/** Represents a STACKIT Functions function. */
|
|
96
86
|
export interface Function {
|
|
@@ -126,9 +116,7 @@ export const Function = /*@__PURE__*/ S.suspend(() =>
|
|
|
126
116
|
}),
|
|
127
117
|
).annotate({ identifier: "Function" }) as any as S.Schema<Function>;
|
|
128
118
|
|
|
129
|
-
export type CreateFunctionRevisionRequestLabelsMap = {
|
|
130
|
-
[key: string]: string | undefined;
|
|
131
|
-
};
|
|
119
|
+
export type CreateFunctionRevisionRequestLabelsMap = { [key: string]: string | undefined };
|
|
132
120
|
export const CreateFunctionRevisionRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
133
121
|
S.String,
|
|
134
122
|
S.String,
|
|
@@ -147,12 +135,8 @@ export const ResourceLimits = /*@__PURE__*/ S.suspend(() =>
|
|
|
147
135
|
).annotate({ identifier: "ResourceLimits" }) as any as S.Schema<ResourceLimits>;
|
|
148
136
|
|
|
149
137
|
/** Status of this revision. */
|
|
150
|
-
export type CreateFunctionRevisionRequestState =
|
|
151
|
-
|
|
152
|
-
| "CREATING"
|
|
153
|
-
| "ACTIVE"
|
|
154
|
-
| "FAILED";
|
|
155
|
-
export const CreateFunctionRevisionRequestState = /*@__PURE__*/ S.String;
|
|
138
|
+
export type CreateFunctionRevisionRequestState = "CANCELLED" | "CREATING" | "ACTIVE" | "FAILED";
|
|
139
|
+
export const CreateFunctionRevisionRequestState = S.String;
|
|
156
140
|
|
|
157
141
|
/** Represents a variable value for a specific revision. */
|
|
158
142
|
export interface RevisionVariable {
|
|
@@ -169,13 +153,10 @@ export const RevisionVariable = /*@__PURE__*/ S.suspend(() =>
|
|
|
169
153
|
value: S.optional(S.NullOr(S.String)),
|
|
170
154
|
vault_reference: S.optional(S.NullOr(S.String)),
|
|
171
155
|
}),
|
|
172
|
-
).annotate({
|
|
173
|
-
identifier: "RevisionVariable",
|
|
174
|
-
}) as any as S.Schema<RevisionVariable>;
|
|
156
|
+
).annotate({ identifier: "RevisionVariable" }) as any as S.Schema<RevisionVariable>;
|
|
175
157
|
|
|
176
158
|
/** Variable values for this revision. Each variable must reference a variable definition on the function. */
|
|
177
|
-
export type CreateFunctionRevisionRequestVariablesList =
|
|
178
|
-
Array<RevisionVariable>;
|
|
159
|
+
export type CreateFunctionRevisionRequestVariablesList = Array<RevisionVariable>;
|
|
179
160
|
export const CreateFunctionRevisionRequestVariablesList = /*@__PURE__*/ S.Array(
|
|
180
161
|
RevisionVariable,
|
|
181
162
|
) as any as S.Schema<CreateFunctionRevisionRequestVariablesList>;
|
|
@@ -253,7 +234,7 @@ export const RevisionLabelsMap = /*@__PURE__*/ S.Record(
|
|
|
253
234
|
|
|
254
235
|
/** Status of this revision. */
|
|
255
236
|
export type RevisionState = "CANCELLED" | "CREATING" | "ACTIVE" | "FAILED";
|
|
256
|
-
export const RevisionState =
|
|
237
|
+
export const RevisionState = S.String;
|
|
257
238
|
|
|
258
239
|
/** Variable values for this revision. Each variable must reference a variable definition on the function. */
|
|
259
240
|
export type RevisionVariablesList = Array<RevisionVariable>;
|
|
@@ -312,9 +293,7 @@ export const Revision = /*@__PURE__*/ S.suspend(() =>
|
|
|
312
293
|
}),
|
|
313
294
|
).annotate({ identifier: "Revision" }) as any as S.Schema<Revision>;
|
|
314
295
|
|
|
315
|
-
export type CreatePullCredentialRequestLabelsMap = {
|
|
316
|
-
[key: string]: string | undefined;
|
|
317
|
-
};
|
|
296
|
+
export type CreatePullCredentialRequestLabelsMap = { [key: string]: string | undefined };
|
|
318
297
|
export const CreatePullCredentialRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
319
298
|
S.String,
|
|
320
299
|
S.String,
|
|
@@ -404,14 +383,10 @@ export const DeleteFunctionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
404
383
|
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
405
384
|
}),
|
|
406
385
|
),
|
|
407
|
-
).annotate({
|
|
408
|
-
identifier: "DeleteFunctionRequest",
|
|
409
|
-
}) as any as S.Schema<DeleteFunctionRequest>;
|
|
386
|
+
).annotate({ identifier: "DeleteFunctionRequest" }) as any as S.Schema<DeleteFunctionRequest>;
|
|
410
387
|
|
|
411
388
|
export interface DeleteFunctionResponse {}
|
|
412
|
-
export const DeleteFunctionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
413
|
-
S.Struct({}),
|
|
414
|
-
).annotate({
|
|
389
|
+
export const DeleteFunctionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
415
390
|
identifier: "DeleteFunctionResponse",
|
|
416
391
|
}) as any as S.Schema<DeleteFunctionResponse>;
|
|
417
392
|
|
|
@@ -438,9 +413,7 @@ export const DeletePullCredentialRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
438
413
|
}) as any as S.Schema<DeletePullCredentialRequest>;
|
|
439
414
|
|
|
440
415
|
export interface DeletePullCredentialResponse {}
|
|
441
|
-
export const DeletePullCredentialResponse = /*@__PURE__*/ S.suspend(() =>
|
|
442
|
-
S.Struct({}),
|
|
443
|
-
).annotate({
|
|
416
|
+
export const DeletePullCredentialResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
444
417
|
identifier: "DeletePullCredentialResponse",
|
|
445
418
|
}) as any as S.Schema<DeletePullCredentialResponse>;
|
|
446
419
|
|
|
@@ -465,14 +438,10 @@ export const DeleteRevisionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
465
438
|
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
466
439
|
}),
|
|
467
440
|
),
|
|
468
|
-
).annotate({
|
|
469
|
-
identifier: "DeleteRevisionRequest",
|
|
470
|
-
}) as any as S.Schema<DeleteRevisionRequest>;
|
|
441
|
+
).annotate({ identifier: "DeleteRevisionRequest" }) as any as S.Schema<DeleteRevisionRequest>;
|
|
471
442
|
|
|
472
443
|
export interface DeleteRevisionResponse {}
|
|
473
|
-
export const DeleteRevisionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
474
|
-
S.Struct({}),
|
|
475
|
-
).annotate({
|
|
444
|
+
export const DeleteRevisionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
476
445
|
identifier: "DeleteRevisionResponse",
|
|
477
446
|
}) as any as S.Schema<DeleteRevisionResponse>;
|
|
478
447
|
|
|
@@ -494,9 +463,7 @@ export const GetFunctionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
494
463
|
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
495
464
|
}),
|
|
496
465
|
),
|
|
497
|
-
).annotate({
|
|
498
|
-
identifier: "GetFunctionRequest",
|
|
499
|
-
}) as any as S.Schema<GetFunctionRequest>;
|
|
466
|
+
).annotate({ identifier: "GetFunctionRequest" }) as any as S.Schema<GetFunctionRequest>;
|
|
500
467
|
|
|
501
468
|
export interface GetPullCredentialRequest {
|
|
502
469
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
@@ -516,9 +483,7 @@ export const GetPullCredentialRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
516
483
|
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
517
484
|
}),
|
|
518
485
|
),
|
|
519
|
-
).annotate({
|
|
520
|
-
identifier: "GetPullCredentialRequest",
|
|
521
|
-
}) as any as S.Schema<GetPullCredentialRequest>;
|
|
486
|
+
).annotate({ identifier: "GetPullCredentialRequest" }) as any as S.Schema<GetPullCredentialRequest>;
|
|
522
487
|
|
|
523
488
|
export interface GetRevisionRequest {
|
|
524
489
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
@@ -541,9 +506,7 @@ export const GetRevisionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
541
506
|
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
542
507
|
}),
|
|
543
508
|
),
|
|
544
|
-
).annotate({
|
|
545
|
-
identifier: "GetRevisionRequest",
|
|
546
|
-
}) as any as S.Schema<GetRevisionRequest>;
|
|
509
|
+
).annotate({ identifier: "GetRevisionRequest" }) as any as S.Schema<GetRevisionRequest>;
|
|
547
510
|
|
|
548
511
|
export interface ListFunctionsRequest {
|
|
549
512
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
@@ -560,9 +523,7 @@ export const ListFunctionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
560
523
|
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
561
524
|
}),
|
|
562
525
|
),
|
|
563
|
-
).annotate({
|
|
564
|
-
identifier: "ListFunctionsRequest",
|
|
565
|
-
}) as any as S.Schema<ListFunctionsRequest>;
|
|
526
|
+
).annotate({ identifier: "ListFunctionsRequest" }) as any as S.Schema<ListFunctionsRequest>;
|
|
566
527
|
|
|
567
528
|
/** List of functions. */
|
|
568
529
|
export type ListFunctionsFunctionsList = Array<Function>;
|
|
@@ -619,9 +580,7 @@ export const ListPullCredentials = /*@__PURE__*/ S.suspend(() =>
|
|
|
619
580
|
next_page_token: S.optional(S.String),
|
|
620
581
|
pull_credentials: S.optional(ListPullCredentialsPullCredentialsList),
|
|
621
582
|
}),
|
|
622
|
-
).annotate({
|
|
623
|
-
identifier: "ListPullCredentials",
|
|
624
|
-
}) as any as S.Schema<ListPullCredentials>;
|
|
583
|
+
).annotate({ identifier: "ListPullCredentials" }) as any as S.Schema<ListPullCredentials>;
|
|
625
584
|
|
|
626
585
|
export interface ListRevisionsRequest {
|
|
627
586
|
/** The STACKIT portal project UUID the resource is located in. */
|
|
@@ -641,9 +600,7 @@ export const ListRevisionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
641
600
|
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
642
601
|
}),
|
|
643
602
|
),
|
|
644
|
-
).annotate({
|
|
645
|
-
identifier: "ListRevisionsRequest",
|
|
646
|
-
}) as any as S.Schema<ListRevisionsRequest>;
|
|
603
|
+
).annotate({ identifier: "ListRevisionsRequest" }) as any as S.Schema<ListRevisionsRequest>;
|
|
647
604
|
|
|
648
605
|
/** List of revisions. */
|
|
649
606
|
export type ListRevisionsRevisionListList = Array<Revision>;
|
|
@@ -667,9 +624,7 @@ export const ListRevisions = /*@__PURE__*/ S.suspend(() =>
|
|
|
667
624
|
}),
|
|
668
625
|
).annotate({ identifier: "ListRevisions" }) as any as S.Schema<ListRevisions>;
|
|
669
626
|
|
|
670
|
-
export type UpdateFunctionRequestLabelsMap = {
|
|
671
|
-
[key: string]: string | undefined;
|
|
672
|
-
};
|
|
627
|
+
export type UpdateFunctionRequestLabelsMap = { [key: string]: string | undefined };
|
|
673
628
|
export const UpdateFunctionRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
674
629
|
S.String,
|
|
675
630
|
S.String,
|
|
@@ -698,13 +653,9 @@ export const UpdateFunctionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
698
653
|
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
699
654
|
}),
|
|
700
655
|
),
|
|
701
|
-
).annotate({
|
|
702
|
-
identifier: "UpdateFunctionRequest",
|
|
703
|
-
}) as any as S.Schema<UpdateFunctionRequest>;
|
|
656
|
+
).annotate({ identifier: "UpdateFunctionRequest" }) as any as S.Schema<UpdateFunctionRequest>;
|
|
704
657
|
|
|
705
|
-
export type UpdatePullCredentialRequestLabelsMap = {
|
|
706
|
-
[key: string]: string | undefined;
|
|
707
|
-
};
|
|
658
|
+
export type UpdatePullCredentialRequestLabelsMap = { [key: string]: string | undefined };
|
|
708
659
|
export const UpdatePullCredentialRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
709
660
|
S.String,
|
|
710
661
|
S.String,
|
|
@@ -746,9 +697,7 @@ export const UpdatePullCredentialRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
746
697
|
identifier: "UpdatePullCredentialRequest",
|
|
747
698
|
}) as any as S.Schema<UpdatePullCredentialRequest>;
|
|
748
699
|
|
|
749
|
-
export type UpdateRevisionRequestLabelsMap = {
|
|
750
|
-
[key: string]: string | undefined;
|
|
751
|
-
};
|
|
700
|
+
export type UpdateRevisionRequestLabelsMap = { [key: string]: string | undefined };
|
|
752
701
|
export const UpdateRevisionRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
753
702
|
S.String,
|
|
754
703
|
S.String,
|
|
@@ -780,9 +729,7 @@ export const UpdateRevisionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
780
729
|
baseUrl: "https://functions.api.{region}stackit.cloud",
|
|
781
730
|
}),
|
|
782
731
|
),
|
|
783
|
-
).annotate({
|
|
784
|
-
identifier: "UpdateRevisionRequest",
|
|
785
|
-
}) as any as S.Schema<UpdateRevisionRequest>;
|
|
732
|
+
).annotate({ identifier: "UpdateRevisionRequest" }) as any as S.Schema<UpdateRevisionRequest>;
|
|
786
733
|
|
|
787
734
|
export type CreateFunctionError = StackitOpError;
|
|
788
735
|
/** Creates a new function. */
|
package/src/services/git.ts
CHANGED
|
@@ -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
|
|
|
@@ -85,13 +81,8 @@ export const CreateAuthenticationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
85
81
|
}) as any as S.Schema<CreateAuthenticationRequest>;
|
|
86
82
|
|
|
87
83
|
/** The current status of the authentication definition. */
|
|
88
|
-
export type AuthenticationStatus =
|
|
89
|
-
|
|
90
|
-
| "Updating"
|
|
91
|
-
| "Deleting"
|
|
92
|
-
| "Ready"
|
|
93
|
-
| "Error";
|
|
94
|
-
export const AuthenticationStatus = /*@__PURE__*/ S.String;
|
|
84
|
+
export type AuthenticationStatus = "Creating" | "Updating" | "Deleting" | "Ready" | "Error";
|
|
85
|
+
export const AuthenticationStatus = S.String;
|
|
95
86
|
|
|
96
87
|
/** Describes an authentication definition associated to a STACKIT Git instance. The provider type will be an openidConnect type. */
|
|
97
88
|
export interface Authentication {
|
|
@@ -136,7 +127,7 @@ export type Acl = Array<string>;
|
|
|
136
127
|
export const Acl = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<Acl>;
|
|
137
128
|
|
|
138
129
|
export type CreateInstanceRequestFlavor = "git-10" | "git-100";
|
|
139
|
-
export const CreateInstanceRequestFlavor =
|
|
130
|
+
export const CreateInstanceRequestFlavor = S.String;
|
|
140
131
|
|
|
141
132
|
export interface CreateInstanceRequest {
|
|
142
133
|
/** Project identifier. */
|
|
@@ -160,15 +151,11 @@ export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
160
151
|
baseUrl: "https://git.api.stackit.cloud",
|
|
161
152
|
}),
|
|
162
153
|
),
|
|
163
|
-
).annotate({
|
|
164
|
-
identifier: "CreateInstanceRequest",
|
|
165
|
-
}) as any as S.Schema<CreateInstanceRequest>;
|
|
154
|
+
).annotate({ identifier: "CreateInstanceRequest" }) as any as S.Schema<CreateInstanceRequest>;
|
|
166
155
|
|
|
167
156
|
/** Restricted ACL for instance access. */
|
|
168
157
|
export type InstanceAclList = Array<string>;
|
|
169
|
-
export const InstanceAclList = /*@__PURE__*/ S.Array(
|
|
170
|
-
S.String,
|
|
171
|
-
) as any as S.Schema<InstanceAclList>;
|
|
158
|
+
export const InstanceAclList = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<InstanceAclList>;
|
|
172
159
|
|
|
173
160
|
/** Default email notifications. */
|
|
174
161
|
export type FeatureToggleDefaultEmailNotifications =
|
|
@@ -176,7 +163,7 @@ export type FeatureToggleDefaultEmailNotifications =
|
|
|
176
163
|
| "disabled"
|
|
177
164
|
| "onmention"
|
|
178
165
|
| "andyourown";
|
|
179
|
-
export const FeatureToggleDefaultEmailNotifications =
|
|
166
|
+
export const FeatureToggleDefaultEmailNotifications = S.String;
|
|
180
167
|
|
|
181
168
|
/** Feature toggles for instance pipelines */
|
|
182
169
|
export interface Pipelines {
|
|
@@ -195,19 +182,14 @@ export const Pipelines = /*@__PURE__*/ S.suspend(() =>
|
|
|
195
182
|
/** Feature toggles for the instance. */
|
|
196
183
|
export interface FeatureToggle {
|
|
197
184
|
/** Default email notifications. */
|
|
198
|
-
default_email_notifications?:
|
|
199
|
-
| FeatureToggleDefaultEmailNotifications
|
|
200
|
-
| (string & {})
|
|
201
|
-
| null;
|
|
185
|
+
default_email_notifications?: FeatureToggleDefaultEmailNotifications | (string & {}) | null;
|
|
202
186
|
/** Enable local login. */
|
|
203
187
|
enable_local_login?: boolean | null;
|
|
204
188
|
pipelines?: Pipelines;
|
|
205
189
|
}
|
|
206
190
|
export const FeatureToggle = /*@__PURE__*/ S.suspend(() =>
|
|
207
191
|
S.Struct({
|
|
208
|
-
default_email_notifications: S.optional(
|
|
209
|
-
S.NullOr(FeatureToggleDefaultEmailNotifications),
|
|
210
|
-
),
|
|
192
|
+
default_email_notifications: S.optional(S.NullOr(FeatureToggleDefaultEmailNotifications)),
|
|
211
193
|
enable_local_login: S.optional(S.NullOr(S.Boolean)),
|
|
212
194
|
pipelines: S.optional(Pipelines),
|
|
213
195
|
}),
|
|
@@ -215,10 +197,7 @@ export const FeatureToggle = /*@__PURE__*/ S.suspend(() =>
|
|
|
215
197
|
|
|
216
198
|
/** Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. The `stackit-` prefix is reserved and cannot be used for Keys. */
|
|
217
199
|
export type Labels = { [key: string]: string | undefined };
|
|
218
|
-
export const Labels = /*@__PURE__*/ S.Record(
|
|
219
|
-
S.String,
|
|
220
|
-
S.String,
|
|
221
|
-
) as any as S.Schema<Labels>;
|
|
200
|
+
export const Labels = /*@__PURE__*/ S.Record(S.String, S.String) as any as S.Schema<Labels>;
|
|
222
201
|
|
|
223
202
|
/** The current state of the STACKIT Git instance. */
|
|
224
203
|
export type InstanceState =
|
|
@@ -228,7 +207,7 @@ export type InstanceState =
|
|
|
228
207
|
| "Deleting"
|
|
229
208
|
| "Ready"
|
|
230
209
|
| "Error";
|
|
231
|
-
export const InstanceState =
|
|
210
|
+
export const InstanceState = S.String;
|
|
232
211
|
|
|
233
212
|
/** Describes a STACKIT Git instance. */
|
|
234
213
|
export interface Instance {
|
|
@@ -300,9 +279,7 @@ export const CreateRunnerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
300
279
|
baseUrl: "https://git.api.stackit.cloud",
|
|
301
280
|
}),
|
|
302
281
|
),
|
|
303
|
-
).annotate({
|
|
304
|
-
identifier: "CreateRunnerRequest",
|
|
305
|
-
}) as any as S.Schema<CreateRunnerRequest>;
|
|
282
|
+
).annotate({ identifier: "CreateRunnerRequest" }) as any as S.Schema<CreateRunnerRequest>;
|
|
306
283
|
|
|
307
284
|
export type RunnerLabelsList = Array<string>;
|
|
308
285
|
export const RunnerLabelsList = /*@__PURE__*/ S.Array(
|
|
@@ -359,9 +336,7 @@ export const CreateUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
359
336
|
baseUrl: "https://git.api.stackit.cloud",
|
|
360
337
|
}),
|
|
361
338
|
),
|
|
362
|
-
).annotate({
|
|
363
|
-
identifier: "CreateUserRequest",
|
|
364
|
-
}) as any as S.Schema<CreateUserRequest>;
|
|
339
|
+
).annotate({ identifier: "CreateUserRequest" }) as any as S.Schema<CreateUserRequest>;
|
|
365
340
|
|
|
366
341
|
/** Describes a STACKIT Git instance User. */
|
|
367
342
|
export interface User {
|
|
@@ -409,9 +384,7 @@ export const DeleteAuthenticationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
409
384
|
}) as any as S.Schema<DeleteAuthenticationRequest>;
|
|
410
385
|
|
|
411
386
|
export interface DeleteAuthenticationResponse {}
|
|
412
|
-
export const DeleteAuthenticationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
413
|
-
S.Struct({}),
|
|
414
|
-
).annotate({
|
|
387
|
+
export const DeleteAuthenticationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
415
388
|
identifier: "DeleteAuthenticationResponse",
|
|
416
389
|
}) as any as S.Schema<DeleteAuthenticationResponse>;
|
|
417
390
|
|
|
@@ -433,14 +406,10 @@ export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
433
406
|
baseUrl: "https://git.api.stackit.cloud",
|
|
434
407
|
}),
|
|
435
408
|
),
|
|
436
|
-
).annotate({
|
|
437
|
-
identifier: "DeleteInstanceRequest",
|
|
438
|
-
}) as any as S.Schema<DeleteInstanceRequest>;
|
|
409
|
+
).annotate({ identifier: "DeleteInstanceRequest" }) as any as S.Schema<DeleteInstanceRequest>;
|
|
439
410
|
|
|
440
411
|
export interface DeleteInstanceResponse {}
|
|
441
|
-
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
442
|
-
S.Struct({}),
|
|
443
|
-
).annotate({
|
|
412
|
+
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
444
413
|
identifier: "DeleteInstanceResponse",
|
|
445
414
|
}) as any as S.Schema<DeleteInstanceResponse>;
|
|
446
415
|
|
|
@@ -462,14 +431,10 @@ export const DeleteRunnerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
462
431
|
baseUrl: "https://git.api.stackit.cloud",
|
|
463
432
|
}),
|
|
464
433
|
),
|
|
465
|
-
).annotate({
|
|
466
|
-
identifier: "DeleteRunnerRequest",
|
|
467
|
-
}) as any as S.Schema<DeleteRunnerRequest>;
|
|
434
|
+
).annotate({ identifier: "DeleteRunnerRequest" }) as any as S.Schema<DeleteRunnerRequest>;
|
|
468
435
|
|
|
469
436
|
export interface DeleteRunnerResponse {}
|
|
470
|
-
export const DeleteRunnerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
471
|
-
S.Struct({}),
|
|
472
|
-
).annotate({
|
|
437
|
+
export const DeleteRunnerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
473
438
|
identifier: "DeleteRunnerResponse",
|
|
474
439
|
}) as any as S.Schema<DeleteRunnerResponse>;
|
|
475
440
|
|
|
@@ -494,14 +459,10 @@ export const DeleteUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
494
459
|
baseUrl: "https://git.api.stackit.cloud",
|
|
495
460
|
}),
|
|
496
461
|
),
|
|
497
|
-
).annotate({
|
|
498
|
-
identifier: "DeleteUserRequest",
|
|
499
|
-
}) as any as S.Schema<DeleteUserRequest>;
|
|
462
|
+
).annotate({ identifier: "DeleteUserRequest" }) as any as S.Schema<DeleteUserRequest>;
|
|
500
463
|
|
|
501
464
|
export interface DeleteUserResponse {}
|
|
502
|
-
export const DeleteUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
503
|
-
S.Struct({}),
|
|
504
|
-
).annotate({
|
|
465
|
+
export const DeleteUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
505
466
|
identifier: "DeleteUserResponse",
|
|
506
467
|
}) as any as S.Schema<DeleteUserResponse>;
|
|
507
468
|
|
|
@@ -526,9 +487,7 @@ export const GetAuthenticationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
526
487
|
baseUrl: "https://git.api.stackit.cloud",
|
|
527
488
|
}),
|
|
528
489
|
),
|
|
529
|
-
).annotate({
|
|
530
|
-
identifier: "GetAuthenticationRequest",
|
|
531
|
-
}) as any as S.Schema<GetAuthenticationRequest>;
|
|
490
|
+
).annotate({ identifier: "GetAuthenticationRequest" }) as any as S.Schema<GetAuthenticationRequest>;
|
|
532
491
|
|
|
533
492
|
export interface GetInstanceRequest {
|
|
534
493
|
/** Project identifier. */
|
|
@@ -548,9 +507,7 @@ export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
548
507
|
baseUrl: "https://git.api.stackit.cloud",
|
|
549
508
|
}),
|
|
550
509
|
),
|
|
551
|
-
).annotate({
|
|
552
|
-
identifier: "GetInstanceRequest",
|
|
553
|
-
}) as any as S.Schema<GetInstanceRequest>;
|
|
510
|
+
).annotate({ identifier: "GetInstanceRequest" }) as any as S.Schema<GetInstanceRequest>;
|
|
554
511
|
|
|
555
512
|
export interface GetRunnerRequest {
|
|
556
513
|
/** Project identifier. */
|
|
@@ -570,9 +527,7 @@ export const GetRunnerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
570
527
|
baseUrl: "https://git.api.stackit.cloud",
|
|
571
528
|
}),
|
|
572
529
|
),
|
|
573
|
-
).annotate({
|
|
574
|
-
identifier: "GetRunnerRequest",
|
|
575
|
-
}) as any as S.Schema<GetRunnerRequest>;
|
|
530
|
+
).annotate({ identifier: "GetRunnerRequest" }) as any as S.Schema<GetRunnerRequest>;
|
|
576
531
|
|
|
577
532
|
export interface GetUserRequest {
|
|
578
533
|
/** Project identifier. */
|
|
@@ -598,9 +553,7 @@ export const GetUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
598
553
|
).annotate({ identifier: "GetUserRequest" }) as any as S.Schema<GetUserRequest>;
|
|
599
554
|
|
|
600
555
|
export interface GetUserResponse {}
|
|
601
|
-
export const GetUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
602
|
-
S.Struct({}),
|
|
603
|
-
).annotate({
|
|
556
|
+
export const GetUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
604
557
|
identifier: "GetUserResponse",
|
|
605
558
|
}) as any as S.Schema<GetUserResponse>;
|
|
606
559
|
|
|
@@ -625,9 +578,7 @@ export const GetUsersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
625
578
|
baseUrl: "https://git.api.stackit.cloud",
|
|
626
579
|
}),
|
|
627
580
|
),
|
|
628
|
-
).annotate({
|
|
629
|
-
identifier: "GetUsersRequest",
|
|
630
|
-
}) as any as S.Schema<GetUsersRequest>;
|
|
581
|
+
).annotate({ identifier: "GetUsersRequest" }) as any as S.Schema<GetUsersRequest>;
|
|
631
582
|
|
|
632
583
|
export type ListUsersUsersList = Array<User>;
|
|
633
584
|
export const ListUsersUsersList = /*@__PURE__*/ S.Array(
|
|
@@ -688,9 +639,7 @@ export const AuthenticationList = /*@__PURE__*/ S.suspend(() =>
|
|
|
688
639
|
S.Struct({
|
|
689
640
|
authentication: AuthenticationListAuthenticationList,
|
|
690
641
|
}),
|
|
691
|
-
).annotate({
|
|
692
|
-
identifier: "AuthenticationList",
|
|
693
|
-
}) as any as S.Schema<AuthenticationList>;
|
|
642
|
+
).annotate({ identifier: "AuthenticationList" }) as any as S.Schema<AuthenticationList>;
|
|
694
643
|
|
|
695
644
|
export interface ListFlavorsRequest {
|
|
696
645
|
/** Project identifier. */
|
|
@@ -707,17 +656,11 @@ export const ListFlavorsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
707
656
|
baseUrl: "https://git.api.stackit.cloud",
|
|
708
657
|
}),
|
|
709
658
|
),
|
|
710
|
-
).annotate({
|
|
711
|
-
identifier: "ListFlavorsRequest",
|
|
712
|
-
}) as any as S.Schema<ListFlavorsRequest>;
|
|
659
|
+
).annotate({ identifier: "ListFlavorsRequest" }) as any as S.Schema<ListFlavorsRequest>;
|
|
713
660
|
|
|
714
661
|
/** Defines the flavor availability. */
|
|
715
|
-
export type FlavorAvailability =
|
|
716
|
-
|
|
717
|
-
| "unavailable"
|
|
718
|
-
| "internal"
|
|
719
|
-
| "deprecated";
|
|
720
|
-
export const FlavorAvailability = /*@__PURE__*/ S.String;
|
|
662
|
+
export type FlavorAvailability = "available" | "unavailable" | "internal" | "deprecated";
|
|
663
|
+
export const FlavorAvailability = S.String;
|
|
721
664
|
|
|
722
665
|
/** Describes a STACKIT Git Flavor. */
|
|
723
666
|
export interface Flavor {
|
|
@@ -772,9 +715,7 @@ export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
772
715
|
baseUrl: "https://git.api.stackit.cloud",
|
|
773
716
|
}),
|
|
774
717
|
),
|
|
775
|
-
).annotate({
|
|
776
|
-
identifier: "ListInstancesRequest",
|
|
777
|
-
}) as any as S.Schema<ListInstancesRequest>;
|
|
718
|
+
).annotate({ identifier: "ListInstancesRequest" }) as any as S.Schema<ListInstancesRequest>;
|
|
778
719
|
|
|
779
720
|
export type ListInstancesInstancesList = Array<Instance>;
|
|
780
721
|
export const ListInstancesInstancesList = /*@__PURE__*/ S.Array(
|
|
@@ -846,9 +787,7 @@ export const RunnerRuntimeList = /*@__PURE__*/ S.suspend(() =>
|
|
|
846
787
|
S.Struct({
|
|
847
788
|
items: RunnerRuntimeListItemsList,
|
|
848
789
|
}),
|
|
849
|
-
).annotate({
|
|
850
|
-
identifier: "RunnerRuntimeList",
|
|
851
|
-
}) as any as S.Schema<RunnerRuntimeList>;
|
|
790
|
+
).annotate({ identifier: "RunnerRuntimeList" }) as any as S.Schema<RunnerRuntimeList>;
|
|
852
791
|
|
|
853
792
|
export interface PatchAuthenticationRequest {
|
|
854
793
|
/** Project identifier. */
|
|
@@ -920,9 +859,7 @@ export const PatchInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
920
859
|
baseUrl: "https://git.api.stackit.cloud",
|
|
921
860
|
}),
|
|
922
861
|
),
|
|
923
|
-
).annotate({
|
|
924
|
-
identifier: "PatchInstanceRequest",
|
|
925
|
-
}) as any as S.Schema<PatchInstanceRequest>;
|
|
862
|
+
).annotate({ identifier: "PatchInstanceRequest" }) as any as S.Schema<PatchInstanceRequest>;
|
|
926
863
|
|
|
927
864
|
export interface UpdateUserRequest {
|
|
928
865
|
/** Project identifier. */
|
|
@@ -954,15 +891,9 @@ export const UpdateUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
954
891
|
baseUrl: "https://git.api.stackit.cloud",
|
|
955
892
|
}),
|
|
956
893
|
),
|
|
957
|
-
).annotate({
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
export type CreateAuthenticationError =
|
|
962
|
-
| BadRequest
|
|
963
|
-
| NotFound
|
|
964
|
-
| Conflict
|
|
965
|
-
| StackitOpError;
|
|
894
|
+
).annotate({ identifier: "UpdateUserRequest" }) as any as S.Schema<UpdateUserRequest>;
|
|
895
|
+
|
|
896
|
+
export type CreateAuthenticationError = BadRequest | NotFound | Conflict | StackitOpError;
|
|
966
897
|
/** Creates an authentication source Creates an authentication source for the corresponding STACKIT Git instance */
|
|
967
898
|
export const createAuthentication: API.OperationMethod<
|
|
968
899
|
CreateAuthenticationRequest,
|
|
@@ -1022,11 +953,7 @@ export const createUser: API.OperationMethod<
|
|
|
1022
953
|
retry: Retry.Retry,
|
|
1023
954
|
}));
|
|
1024
955
|
|
|
1025
|
-
export type DeleteAuthenticationError =
|
|
1026
|
-
| BadRequest
|
|
1027
|
-
| NotFound
|
|
1028
|
-
| Conflict
|
|
1029
|
-
| StackitOpError;
|
|
956
|
+
export type DeleteAuthenticationError = BadRequest | NotFound | Conflict | StackitOpError;
|
|
1030
957
|
/** Delete Authentication Source Deletes the authentication source associated to this STACKIT Git instance. */
|
|
1031
958
|
export const deleteAuthentication: API.OperationMethod<
|
|
1032
959
|
DeleteAuthenticationRequest,
|
|
@@ -1041,11 +968,7 @@ export const deleteAuthentication: API.OperationMethod<
|
|
|
1041
968
|
retry: Retry.Retry,
|
|
1042
969
|
}));
|
|
1043
970
|
|
|
1044
|
-
export type DeleteInstanceError =
|
|
1045
|
-
| BadRequest
|
|
1046
|
-
| NotFound
|
|
1047
|
-
| Conflict
|
|
1048
|
-
| StackitOpError;
|
|
971
|
+
export type DeleteInstanceError = BadRequest | NotFound | Conflict | StackitOpError;
|
|
1049
972
|
/** Delete Instance. Deletes a STACKIT Git instance and destroys all associated data. */
|
|
1050
973
|
export const deleteInstance: API.OperationMethod<
|
|
1051
974
|
DeleteInstanceRequest,
|
|
@@ -1240,11 +1163,7 @@ export const patchAuthentication: API.OperationMethod<
|
|
|
1240
1163
|
retry: Retry.Retry,
|
|
1241
1164
|
}));
|
|
1242
1165
|
|
|
1243
|
-
export type PatchInstanceError =
|
|
1244
|
-
| BadRequest
|
|
1245
|
-
| NotFound
|
|
1246
|
-
| Conflict
|
|
1247
|
-
| StackitOpError;
|
|
1166
|
+
export type PatchInstanceError = BadRequest | NotFound | Conflict | StackitOpError;
|
|
1248
1167
|
/** Patch Instance. Patches the Instance. */
|
|
1249
1168
|
export const patchInstance: API.OperationMethod<
|
|
1250
1169
|
PatchInstanceRequest,
|