@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +33 -2
- package/lib/credentials.d.ts +29 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +49 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +9 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +48 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +32 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +148 -0
- package/lib/protocol.js.map +1 -0
- package/lib/response-validation.test.d.ts +4 -0
- package/lib/response-validation.test.d.ts.map +1 -0
- package/lib/response-validation.test.js +31 -0
- package/lib/response-validation.test.js.map +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +31 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/alb.d.ts +603 -0
- package/lib/services/alb.d.ts.map +1 -0
- package/lib/services/alb.js +562 -0
- package/lib/services/alb.js.map +1 -0
- package/lib/services/alb_waf.d.ts +526 -0
- package/lib/services/alb_waf.d.ts.map +1 -0
- package/lib/services/alb_waf.js +545 -0
- package/lib/services/alb_waf.js.map +1 -0
- package/lib/services/authorization.d.ts +251 -0
- package/lib/services/authorization.d.ts.map +1 -0
- package/lib/services/authorization.js +353 -0
- package/lib/services/authorization.js.map +1 -0
- package/lib/services/automation.d.ts +358 -0
- package/lib/services/automation.d.ts.map +1 -0
- package/lib/services/automation.js +426 -0
- package/lib/services/automation.js.map +1 -0
- package/lib/services/cdn.d.ts +1239 -0
- package/lib/services/cdn.d.ts.map +1 -0
- package/lib/services/cdn.js +992 -0
- package/lib/services/cdn.js.map +1 -0
- package/lib/services/certificates.d.ts +201 -0
- package/lib/services/certificates.d.ts.map +1 -0
- package/lib/services/certificates.js +197 -0
- package/lib/services/certificates.js.map +1 -0
- package/lib/services/cost.d.ts +222 -0
- package/lib/services/cost.d.ts.map +1 -0
- package/lib/services/cost.js +188 -0
- package/lib/services/cost.js.map +1 -0
- package/lib/services/dns.d.ts +875 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +854 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/dremio.d.ts +358 -0
- package/lib/services/dremio.d.ts.map +1 -0
- package/lib/services/dremio.js +339 -0
- package/lib/services/dremio.js.map +1 -0
- package/lib/services/edge.d.ts +312 -0
- package/lib/services/edge.d.ts.map +1 -0
- package/lib/services/edge.js +375 -0
- package/lib/services/edge.js.map +1 -0
- package/lib/services/functions.d.ts +409 -0
- package/lib/services/functions.d.ts.map +1 -0
- package/lib/services/functions.js +423 -0
- package/lib/services/functions.js.map +1 -0
- package/lib/services/git.d.ts +497 -0
- package/lib/services/git.d.ts.map +1 -0
- package/lib/services/git.js +552 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/iaas.d.ts +2965 -0
- package/lib/services/iaas.d.ts.map +1 -0
- package/lib/services/iaas.js +3768 -0
- package/lib/services/iaas.js.map +1 -0
- package/lib/services/index.d.ts +51 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +52 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/intake.d.ts +555 -0
- package/lib/services/intake.d.ts.map +1 -0
- package/lib/services/intake.js +513 -0
- package/lib/services/intake.js.map +1 -0
- package/lib/services/kms.d.ts +654 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +703 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/lb_ip_lists.d.ts +162 -0
- package/lib/services/lb_ip_lists.d.ts.map +1 -0
- package/lib/services/lb_ip_lists.js +173 -0
- package/lib/services/lb_ip_lists.js.map +1 -0
- package/lib/services/load_balancer.d.ts +563 -0
- package/lib/services/load_balancer.d.ts.map +1 -0
- package/lib/services/load_balancer.js +542 -0
- package/lib/services/load_balancer.js.map +1 -0
- package/lib/services/logme.d.ts +516 -0
- package/lib/services/logme.d.ts.map +1 -0
- package/lib/services/logme.js +636 -0
- package/lib/services/logme.js.map +1 -0
- package/lib/services/logs.d.ts +436 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +498 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/mariadb.d.ts +479 -0
- package/lib/services/mariadb.d.ts.map +1 -0
- package/lib/services/mariadb.js +611 -0
- package/lib/services/mariadb.js.map +1 -0
- package/lib/services/model_experiments.d.ts +306 -0
- package/lib/services/model_experiments.d.ts.map +1 -0
- package/lib/services/model_experiments.js +356 -0
- package/lib/services/model_experiments.js.map +1 -0
- package/lib/services/model_serving.d.ts +289 -0
- package/lib/services/model_serving.d.ts.map +1 -0
- package/lib/services/model_serving.js +319 -0
- package/lib/services/model_serving.js.map +1 -0
- package/lib/services/mongodb_flex.d.ts +826 -0
- package/lib/services/mongodb_flex.d.ts.map +1 -0
- package/lib/services/mongodb_flex.js +889 -0
- package/lib/services/mongodb_flex.js.map +1 -0
- package/lib/services/object_storage.d.ts +446 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +577 -0
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/observability.d.ts +2750 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +3407 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/opensearch.d.ts +505 -0
- package/lib/services/opensearch.d.ts.map +1 -0
- package/lib/services/opensearch.js +623 -0
- package/lib/services/opensearch.js.map +1 -0
- package/lib/services/pim.d.ts +997 -0
- package/lib/services/pim.d.ts.map +1 -0
- package/lib/services/pim.js +789 -0
- package/lib/services/pim.js.map +1 -0
- package/lib/services/postgres_flex.d.ts +854 -0
- package/lib/services/postgres_flex.d.ts.map +1 -0
- package/lib/services/postgres_flex.js +1018 -0
- package/lib/services/postgres_flex.js.map +1 -0
- package/lib/services/pubsub.d.ts +489 -0
- package/lib/services/pubsub.d.ts.map +1 -0
- package/lib/services/pubsub.js +614 -0
- package/lib/services/pubsub.js.map +1 -0
- package/lib/services/rabbitmq.d.ts +523 -0
- package/lib/services/rabbitmq.d.ts.map +1 -0
- package/lib/services/rabbitmq.js +636 -0
- package/lib/services/rabbitmq.js.map +1 -0
- package/lib/services/registry.d.ts +212 -0
- package/lib/services/registry.d.ts.map +1 -0
- package/lib/services/registry.js +221 -0
- package/lib/services/registry.js.map +1 -0
- package/lib/services/resource_manager.d.ts +458 -0
- package/lib/services/resource_manager.d.ts.map +1 -0
- package/lib/services/resource_manager.js +503 -0
- package/lib/services/resource_manager.js.map +1 -0
- package/lib/services/run_command.d.ts +175 -0
- package/lib/services/run_command.d.ts.map +1 -0
- package/lib/services/run_command.js +203 -0
- package/lib/services/run_command.js.map +1 -0
- package/lib/services/sca.d.ts +541 -0
- package/lib/services/sca.d.ts.map +1 -0
- package/lib/services/sca.js +478 -0
- package/lib/services/sca.js.map +1 -0
- package/lib/services/scf.d.ts +498 -0
- package/lib/services/scf.d.ts.map +1 -0
- package/lib/services/scf.js +718 -0
- package/lib/services/scf.js.map +1 -0
- package/lib/services/secrets_manager.d.ts +505 -0
- package/lib/services/secrets_manager.d.ts.map +1 -0
- package/lib/services/secrets_manager.js +659 -0
- package/lib/services/secrets_manager.js.map +1 -0
- package/lib/services/server_backup.d.ts +380 -0
- package/lib/services/server_backup.d.ts.map +1 -0
- package/lib/services/server_backup.js +474 -0
- package/lib/services/server_backup.js.map +1 -0
- package/lib/services/server_update.d.ts +292 -0
- package/lib/services/server_update.d.ts.map +1 -0
- package/lib/services/server_update.js +364 -0
- package/lib/services/server_update.js.map +1 -0
- package/lib/services/service_account.d.ts +465 -0
- package/lib/services/service_account.d.ts.map +1 -0
- package/lib/services/service_account.js +523 -0
- package/lib/services/service_account.js.map +1 -0
- package/lib/services/service_enablement.d.ts +149 -0
- package/lib/services/service_enablement.d.ts.map +1 -0
- package/lib/services/service_enablement.js +159 -0
- package/lib/services/service_enablement.js.map +1 -0
- package/lib/services/sfs.d.ts +721 -0
- package/lib/services/sfs.d.ts.map +1 -0
- package/lib/services/sfs.js +845 -0
- package/lib/services/sfs.js.map +1 -0
- package/lib/services/ske.d.ts +536 -0
- package/lib/services/ske.d.ts.map +1 -0
- package/lib/services/ske.js +598 -0
- package/lib/services/ske.js.map +1 -0
- package/lib/services/sqlserverflex.d.ts +956 -0
- package/lib/services/sqlserverflex.d.ts.map +1 -0
- package/lib/services/sqlserverflex.js +1087 -0
- package/lib/services/sqlserverflex.js.map +1 -0
- package/lib/services/stackit_marketplace.d.ts +288 -0
- package/lib/services/stackit_marketplace.d.ts.map +1 -0
- package/lib/services/stackit_marketplace.js +393 -0
- package/lib/services/stackit_marketplace.js.map +1 -0
- package/lib/services/telemetry_link.d.ts +443 -0
- package/lib/services/telemetry_link.d.ts.map +1 -0
- package/lib/services/telemetry_link.js +550 -0
- package/lib/services/telemetry_link.js.map +1 -0
- package/lib/services/telemetry_router.d.ts +493 -0
- package/lib/services/telemetry_router.d.ts.map +1 -0
- package/lib/services/telemetry_router.js +523 -0
- package/lib/services/telemetry_router.js.map +1 -0
- package/lib/services/ufw.d.ts +295 -0
- package/lib/services/ufw.d.ts.map +1 -0
- package/lib/services/ufw.js +301 -0
- package/lib/services/ufw.js.map +1 -0
- package/lib/services/valkey.d.ts +505 -0
- package/lib/services/valkey.d.ts.map +1 -0
- package/lib/services/valkey.js +627 -0
- package/lib/services/valkey.js.map +1 -0
- package/lib/services/vpn.d.ts +1024 -0
- package/lib/services/vpn.d.ts.map +1 -0
- package/lib/services/vpn.js +1013 -0
- package/lib/services/vpn.js.map +1 -0
- package/lib/services/workflows.d.ts +600 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +556 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/traits.d.ts +24 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +15 -0
- package/lib/traits.js.map +1 -0
- package/package.json +83 -3
- package/src/credentials.ts +90 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +34 -0
- package/src/pagination.ts +73 -0
- package/src/protocol.ts +243 -0
- package/src/response-validation.test.ts +45 -0
- package/src/retry.ts +53 -0
- package/src/services/alb.ts +1409 -0
- package/src/services/alb_waf.ts +1347 -0
- package/src/services/authorization.ts +740 -0
- package/src/services/automation.ts +966 -0
- package/src/services/cdn.ts +2736 -0
- package/src/services/certificates.ts +450 -0
- package/src/services/cost.ts +484 -0
- package/src/services/dns.ts +2271 -0
- package/src/services/dremio.ts +803 -0
- package/src/services/edge.ts +839 -0
- package/src/services/functions.ts +1010 -0
- package/src/services/git.ts +1275 -0
- package/src/services/iaas.ts +8670 -0
- package/src/services/index.ts +51 -0
- package/src/services/intake.ts +1233 -0
- package/src/services/kms.ts +1638 -0
- package/src/services/lb_ip_lists.ts +377 -0
- package/src/services/load_balancer.ts +1342 -0
- package/src/services/logme.ts +1379 -0
- package/src/services/logs.ts +1150 -0
- package/src/services/mariadb.ts +1293 -0
- package/src/services/model_experiments.ts +797 -0
- package/src/services/model_serving.ts +697 -0
- package/src/services/mongodb_flex.ts +2078 -0
- package/src/services/object_storage.ts +1248 -0
- package/src/services/observability.ts +7856 -0
- package/src/services/opensearch.ts +1354 -0
- package/src/services/pim.ts +2090 -0
- package/src/services/postgres_flex.ts +2326 -0
- package/src/services/pubsub.ts +1336 -0
- package/src/services/rabbitmq.ts +1402 -0
- package/src/services/registry.ts +494 -0
- package/src/services/resource_manager.ts +1155 -0
- package/src/services/run_command.ts +441 -0
- package/src/services/sca.ts +1222 -0
- package/src/services/scf.ts +1537 -0
- package/src/services/secrets_manager.ts +1399 -0
- package/src/services/server_backup.ts +1032 -0
- package/src/services/server_update.ts +767 -0
- package/src/services/service_account.ts +1208 -0
- package/src/services/service_enablement.ts +359 -0
- package/src/services/sfs.ts +1913 -0
- package/src/services/ske.ts +1408 -0
- package/src/services/sqlserverflex.ts +2543 -0
- package/src/services/stackit_marketplace.ts +853 -0
- package/src/services/telemetry_link.ts +1245 -0
- package/src/services/telemetry_router.ts +1205 -0
- package/src/services/ufw.ts +704 -0
- package/src/services/valkey.ts +1357 -0
- package/src/services/vpn.ts +2554 -0
- package/src/services/workflows.ts +1361 -0
- package/src/traits.ts +65 -0
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as C from "@distilled.cloud/core/category";
|
|
6
|
+
import * as T from "../traits.ts";
|
|
7
|
+
import {
|
|
8
|
+
StackitProtocol,
|
|
9
|
+
type StackitOpError,
|
|
10
|
+
type StackitOpContext,
|
|
11
|
+
} from "../protocol.ts";
|
|
12
|
+
import { UnknownStackitError } from "../errors.ts";
|
|
13
|
+
import * as Retry from "../retry.ts";
|
|
14
|
+
|
|
15
|
+
export type { StackitOpError, StackitOpContext };
|
|
16
|
+
|
|
17
|
+
export class BadRequest
|
|
18
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
19
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
20
|
+
code: S.Number,
|
|
21
|
+
message: S.String,
|
|
22
|
+
}).pipe(C.withBadRequestError),
|
|
23
|
+
[{ status: 400 }],
|
|
24
|
+
) {}
|
|
25
|
+
|
|
26
|
+
export class Conflict
|
|
27
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
28
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
29
|
+
code: S.Number,
|
|
30
|
+
message: S.String,
|
|
31
|
+
}).pipe(C.withConflictError),
|
|
32
|
+
[{ status: 409 }],
|
|
33
|
+
) {}
|
|
34
|
+
|
|
35
|
+
export class Forbidden
|
|
36
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
37
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
38
|
+
code: S.Number,
|
|
39
|
+
message: S.String,
|
|
40
|
+
}).pipe(C.withAuthError),
|
|
41
|
+
[{ status: 403 }],
|
|
42
|
+
) {}
|
|
43
|
+
|
|
44
|
+
export class NotFound
|
|
45
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
46
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
47
|
+
code: S.Number,
|
|
48
|
+
message: S.String,
|
|
49
|
+
}).pipe(C.withBadRequestError),
|
|
50
|
+
[{ status: 404 }],
|
|
51
|
+
) {}
|
|
52
|
+
|
|
53
|
+
/** Credentials for upstream registry */
|
|
54
|
+
export interface Credentials {
|
|
55
|
+
access_key?: string;
|
|
56
|
+
access_secret?: string | Redacted.Redacted<string>;
|
|
57
|
+
}
|
|
58
|
+
export const Credentials = /*@__PURE__*/ S.suspend(() =>
|
|
59
|
+
S.Struct({
|
|
60
|
+
access_key: S.optional(S.String),
|
|
61
|
+
access_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
62
|
+
}),
|
|
63
|
+
).annotate({ identifier: "Credentials" }) as any as S.Schema<Credentials>;
|
|
64
|
+
|
|
65
|
+
/** Provide an upstream repository this project is a proxy for */
|
|
66
|
+
export interface CreateProxyRequest {
|
|
67
|
+
credentials?: Credentials;
|
|
68
|
+
/** Description of the registry. */
|
|
69
|
+
description?: string;
|
|
70
|
+
/** Which replication adapter to use for this registry. Discover the list of supported replication adapters, and therefore supported registry types, by calling GET /v1/projects/{projectId}/regions/{regionId}/replication/adapters */
|
|
71
|
+
registry_type: string;
|
|
72
|
+
/** Upstream registry url to proxy */
|
|
73
|
+
url: string;
|
|
74
|
+
}
|
|
75
|
+
export const CreateProxyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
76
|
+
S.Struct({
|
|
77
|
+
credentials: S.optional(Credentials),
|
|
78
|
+
description: S.optional(S.String),
|
|
79
|
+
registry_type: S.String,
|
|
80
|
+
url: S.String,
|
|
81
|
+
}),
|
|
82
|
+
).annotate({
|
|
83
|
+
identifier: "CreateProxyRequest",
|
|
84
|
+
}) as any as S.Schema<CreateProxyRequest>;
|
|
85
|
+
|
|
86
|
+
export interface CreateArtifactoryRequest {
|
|
87
|
+
/** Project identifier. */
|
|
88
|
+
projectId: string;
|
|
89
|
+
/** STACKIT region identification */
|
|
90
|
+
regionId: string;
|
|
91
|
+
/** If true, claims ownership of an existing Harbor project instead of creating a new one. */
|
|
92
|
+
claim?: boolean;
|
|
93
|
+
/** A user chosen name to distinguish multiple STACKIT Artifactories. */
|
|
94
|
+
name: string;
|
|
95
|
+
/** If proxy configuration is provided, this project will be created as a proxy-cache for the upstream registry. */
|
|
96
|
+
proxy?: CreateProxyRequest;
|
|
97
|
+
}
|
|
98
|
+
export const CreateArtifactoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
99
|
+
S.Struct({
|
|
100
|
+
projectId: S.String.pipe(T.Label()),
|
|
101
|
+
regionId: S.String.pipe(T.Label()),
|
|
102
|
+
claim: S.optional(S.Boolean.pipe(T.Query())),
|
|
103
|
+
name: S.String,
|
|
104
|
+
proxy: S.optional(CreateProxyRequest),
|
|
105
|
+
}).pipe(
|
|
106
|
+
T.Http({
|
|
107
|
+
method: "POST",
|
|
108
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories",
|
|
109
|
+
code: 200,
|
|
110
|
+
baseUrl: "https://registry.api.stackit.cloud",
|
|
111
|
+
}),
|
|
112
|
+
),
|
|
113
|
+
).annotate({
|
|
114
|
+
identifier: "CreateArtifactoryRequest",
|
|
115
|
+
}) as any as S.Schema<CreateArtifactoryRequest>;
|
|
116
|
+
|
|
117
|
+
/** Credentials for upstream registry, redacted */
|
|
118
|
+
export interface RedactedCredentials {
|
|
119
|
+
access_key?: string;
|
|
120
|
+
}
|
|
121
|
+
export const RedactedCredentials = /*@__PURE__*/ S.suspend(() =>
|
|
122
|
+
S.Struct({
|
|
123
|
+
access_key: S.optional(S.String),
|
|
124
|
+
}),
|
|
125
|
+
).annotate({
|
|
126
|
+
identifier: "RedactedCredentials",
|
|
127
|
+
}) as any as S.Schema<RedactedCredentials>;
|
|
128
|
+
|
|
129
|
+
/** Replication settings for a proxy-cache artifactory */
|
|
130
|
+
export interface Proxy {
|
|
131
|
+
credentials?: RedactedCredentials;
|
|
132
|
+
/** Description of the registry. */
|
|
133
|
+
description?: string;
|
|
134
|
+
/** Which replication adapter to use for this registry. Discover the list of supported replication adapters, and therefore supported registry types, by calling GET /v1/projects/{projectId}/regions/{regionId}/replication/adapters */
|
|
135
|
+
registry_type: string;
|
|
136
|
+
/** Upstream registry url to proxy */
|
|
137
|
+
url: string;
|
|
138
|
+
}
|
|
139
|
+
export const Proxy = /*@__PURE__*/ S.suspend(() =>
|
|
140
|
+
S.Struct({
|
|
141
|
+
credentials: S.optional(RedactedCredentials),
|
|
142
|
+
description: S.optional(S.String),
|
|
143
|
+
registry_type: S.String,
|
|
144
|
+
url: S.String,
|
|
145
|
+
}),
|
|
146
|
+
).annotate({ identifier: "Proxy" }) as any as S.Schema<Proxy>;
|
|
147
|
+
|
|
148
|
+
/** Artifactory Information. */
|
|
149
|
+
export interface Artifactory {
|
|
150
|
+
/** How many bytes of quota is consumed. Read Only. */
|
|
151
|
+
consumed_quota_bytes: number;
|
|
152
|
+
/** The date and time the creation of the STACKIT Artifactory was triggered. */
|
|
153
|
+
create_time: string;
|
|
154
|
+
/** A auto generated unique id which identifies the STACKIT Artifactory. */
|
|
155
|
+
id: string;
|
|
156
|
+
/** A user chosen name to distinguish multiple STACKIT Artifactories. */
|
|
157
|
+
name: string;
|
|
158
|
+
proxy?: Proxy;
|
|
159
|
+
/** The current state of the STACKIT Artifactory. */
|
|
160
|
+
state: string;
|
|
161
|
+
/** The base URL of the STACKIT Artifactory. */
|
|
162
|
+
url: string;
|
|
163
|
+
/** How many users does this artifactory have. Read Only. */
|
|
164
|
+
user_count: number;
|
|
165
|
+
}
|
|
166
|
+
export const Artifactory = /*@__PURE__*/ S.suspend(() =>
|
|
167
|
+
S.Struct({
|
|
168
|
+
consumed_quota_bytes: S.Number,
|
|
169
|
+
create_time: S.String,
|
|
170
|
+
id: S.String,
|
|
171
|
+
name: S.String,
|
|
172
|
+
proxy: S.optional(Proxy),
|
|
173
|
+
state: S.String,
|
|
174
|
+
url: S.String,
|
|
175
|
+
user_count: S.Number,
|
|
176
|
+
}),
|
|
177
|
+
).annotate({ identifier: "Artifactory" }) as any as S.Schema<Artifactory>;
|
|
178
|
+
|
|
179
|
+
export interface DeleteArtifactoryRequest {
|
|
180
|
+
/** Project identifier. */
|
|
181
|
+
projectId: string;
|
|
182
|
+
/** STACKIT region identification */
|
|
183
|
+
regionId: string;
|
|
184
|
+
/** Artifactory identifier. */
|
|
185
|
+
artifactoryId: string;
|
|
186
|
+
}
|
|
187
|
+
export const DeleteArtifactoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
188
|
+
S.Struct({
|
|
189
|
+
projectId: S.String.pipe(T.Label()),
|
|
190
|
+
regionId: S.String.pipe(T.Label()),
|
|
191
|
+
artifactoryId: S.String.pipe(T.Label()),
|
|
192
|
+
}).pipe(
|
|
193
|
+
T.Http({
|
|
194
|
+
method: "DELETE",
|
|
195
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories/{artifactoryId}",
|
|
196
|
+
code: 200,
|
|
197
|
+
baseUrl: "https://registry.api.stackit.cloud",
|
|
198
|
+
}),
|
|
199
|
+
),
|
|
200
|
+
).annotate({
|
|
201
|
+
identifier: "DeleteArtifactoryRequest",
|
|
202
|
+
}) as any as S.Schema<DeleteArtifactoryRequest>;
|
|
203
|
+
|
|
204
|
+
export interface DeleteArtifactoryResponse {}
|
|
205
|
+
export const DeleteArtifactoryResponse = /*@__PURE__*/ S.suspend(() =>
|
|
206
|
+
S.Struct({}),
|
|
207
|
+
).annotate({
|
|
208
|
+
identifier: "DeleteArtifactoryResponse",
|
|
209
|
+
}) as any as S.Schema<DeleteArtifactoryResponse>;
|
|
210
|
+
|
|
211
|
+
export interface GetArtifactoryRequest {
|
|
212
|
+
/** Project identifier. */
|
|
213
|
+
projectId: string;
|
|
214
|
+
/** STACKIT region identification */
|
|
215
|
+
regionId: string;
|
|
216
|
+
/** Artifactory identifier. */
|
|
217
|
+
artifactoryId: string;
|
|
218
|
+
}
|
|
219
|
+
export const GetArtifactoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
220
|
+
S.Struct({
|
|
221
|
+
projectId: S.String.pipe(T.Label()),
|
|
222
|
+
regionId: S.String.pipe(T.Label()),
|
|
223
|
+
artifactoryId: S.String.pipe(T.Label()),
|
|
224
|
+
}).pipe(
|
|
225
|
+
T.Http({
|
|
226
|
+
method: "GET",
|
|
227
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories/{artifactoryId}",
|
|
228
|
+
code: 200,
|
|
229
|
+
baseUrl: "https://registry.api.stackit.cloud",
|
|
230
|
+
}),
|
|
231
|
+
),
|
|
232
|
+
).annotate({
|
|
233
|
+
identifier: "GetArtifactoryRequest",
|
|
234
|
+
}) as any as S.Schema<GetArtifactoryRequest>;
|
|
235
|
+
|
|
236
|
+
export interface ListArtifactoriesRequest {
|
|
237
|
+
/** Project identifier. */
|
|
238
|
+
projectId: string;
|
|
239
|
+
/** STACKIT region identification */
|
|
240
|
+
regionId: string;
|
|
241
|
+
/** The maximum number of artifactories to return. The service may return fewer than this value. */
|
|
242
|
+
page_size?: number;
|
|
243
|
+
/** A page token, received from a previous `ListArtifactories` call. Provide this to retrieve the subsequent page. */
|
|
244
|
+
next_page_token?: string;
|
|
245
|
+
}
|
|
246
|
+
export const ListArtifactoriesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
247
|
+
S.Struct({
|
|
248
|
+
projectId: S.String.pipe(T.Label()),
|
|
249
|
+
regionId: S.String.pipe(T.Label()),
|
|
250
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
251
|
+
next_page_token: S.optional(S.String.pipe(T.Query())),
|
|
252
|
+
}).pipe(
|
|
253
|
+
T.Http({
|
|
254
|
+
method: "GET",
|
|
255
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories",
|
|
256
|
+
code: 200,
|
|
257
|
+
baseUrl: "https://registry.api.stackit.cloud",
|
|
258
|
+
}),
|
|
259
|
+
),
|
|
260
|
+
).annotate({
|
|
261
|
+
identifier: "ListArtifactoriesRequest",
|
|
262
|
+
}) as any as S.Schema<ListArtifactoriesRequest>;
|
|
263
|
+
|
|
264
|
+
export type ArtifactoryListArtifactoriesList = Array<Artifactory>;
|
|
265
|
+
export const ArtifactoryListArtifactoriesList = /*@__PURE__*/ S.Array(
|
|
266
|
+
Artifactory,
|
|
267
|
+
) as any as S.Schema<ArtifactoryListArtifactoriesList>;
|
|
268
|
+
|
|
269
|
+
/** A list of artifactories inside a STACKIT project. */
|
|
270
|
+
export interface ArtifactoryList {
|
|
271
|
+
artifactories: ArtifactoryListArtifactoriesList;
|
|
272
|
+
/** A token to retrieve the next page of results. Pass this value as `page_token` in the subsequent request. If empty, there are no more pages. */
|
|
273
|
+
next_page_token?: string;
|
|
274
|
+
}
|
|
275
|
+
export const ArtifactoryList = /*@__PURE__*/ S.suspend(() =>
|
|
276
|
+
S.Struct({
|
|
277
|
+
artifactories: ArtifactoryListArtifactoriesList,
|
|
278
|
+
next_page_token: S.optional(S.String),
|
|
279
|
+
}),
|
|
280
|
+
).annotate({
|
|
281
|
+
identifier: "ArtifactoryList",
|
|
282
|
+
}) as any as S.Schema<ArtifactoryList>;
|
|
283
|
+
|
|
284
|
+
export interface ListReplicationAdaptersRequest {
|
|
285
|
+
/** Project identifier. */
|
|
286
|
+
projectId: string;
|
|
287
|
+
/** STACKIT region identification */
|
|
288
|
+
regionId: string;
|
|
289
|
+
}
|
|
290
|
+
export const ListReplicationAdaptersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
291
|
+
S.Struct({
|
|
292
|
+
projectId: S.String.pipe(T.Label()),
|
|
293
|
+
regionId: S.String.pipe(T.Label()),
|
|
294
|
+
}).pipe(
|
|
295
|
+
T.Http({
|
|
296
|
+
method: "GET",
|
|
297
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/replication/adapters",
|
|
298
|
+
code: 200,
|
|
299
|
+
baseUrl: "https://registry.api.stackit.cloud",
|
|
300
|
+
}),
|
|
301
|
+
),
|
|
302
|
+
).annotate({
|
|
303
|
+
identifier: "ListReplicationAdaptersRequest",
|
|
304
|
+
}) as any as S.Schema<ListReplicationAdaptersRequest>;
|
|
305
|
+
|
|
306
|
+
export interface ReplicationAdapter {
|
|
307
|
+
/** Human-friendly name of the provider the adapter relates to. */
|
|
308
|
+
display_name: string;
|
|
309
|
+
/** Identifies the replication adapter */
|
|
310
|
+
registry_type: string;
|
|
311
|
+
}
|
|
312
|
+
export const ReplicationAdapter = /*@__PURE__*/ S.suspend(() =>
|
|
313
|
+
S.Struct({
|
|
314
|
+
display_name: S.String,
|
|
315
|
+
registry_type: S.String,
|
|
316
|
+
}),
|
|
317
|
+
).annotate({
|
|
318
|
+
identifier: "ReplicationAdapter",
|
|
319
|
+
}) as any as S.Schema<ReplicationAdapter>;
|
|
320
|
+
|
|
321
|
+
export type ReplicationAdapterListReplicationAdaptersList =
|
|
322
|
+
Array<ReplicationAdapter>;
|
|
323
|
+
export const ReplicationAdapterListReplicationAdaptersList =
|
|
324
|
+
/*@__PURE__*/ S.Array(
|
|
325
|
+
ReplicationAdapter,
|
|
326
|
+
) as any as S.Schema<ReplicationAdapterListReplicationAdaptersList>;
|
|
327
|
+
|
|
328
|
+
/** A list of replication adapters */
|
|
329
|
+
export interface ReplicationAdapterList {
|
|
330
|
+
/** A token to retrieve the next page of results. Pass this value as `page_token` in the subsequent request. If empty, there are no more pages. */
|
|
331
|
+
next_page_token?: string;
|
|
332
|
+
replication_adapters: ReplicationAdapterListReplicationAdaptersList;
|
|
333
|
+
}
|
|
334
|
+
export const ReplicationAdapterList = /*@__PURE__*/ S.suspend(() =>
|
|
335
|
+
S.Struct({
|
|
336
|
+
next_page_token: S.optional(S.String),
|
|
337
|
+
replication_adapters: ReplicationAdapterListReplicationAdaptersList,
|
|
338
|
+
}),
|
|
339
|
+
).annotate({
|
|
340
|
+
identifier: "ReplicationAdapterList",
|
|
341
|
+
}) as any as S.Schema<ReplicationAdapterList>;
|
|
342
|
+
|
|
343
|
+
/** Update an upstream repository for a proxy-cache project */
|
|
344
|
+
export interface UpdateProxyRequest {
|
|
345
|
+
credentials?: Credentials;
|
|
346
|
+
/** Description of the registry. */
|
|
347
|
+
description?: string;
|
|
348
|
+
/** Upstream registry url to proxy */
|
|
349
|
+
url?: string;
|
|
350
|
+
}
|
|
351
|
+
export const UpdateProxyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
352
|
+
S.Struct({
|
|
353
|
+
credentials: S.optional(Credentials),
|
|
354
|
+
description: S.optional(S.String),
|
|
355
|
+
url: S.optional(S.String),
|
|
356
|
+
}),
|
|
357
|
+
).annotate({
|
|
358
|
+
identifier: "UpdateProxyRequest",
|
|
359
|
+
}) as any as S.Schema<UpdateProxyRequest>;
|
|
360
|
+
|
|
361
|
+
export interface PatchArtifactoryRequest {
|
|
362
|
+
/** Project identifier. */
|
|
363
|
+
projectId: string;
|
|
364
|
+
/** STACKIT region identification */
|
|
365
|
+
regionId: string;
|
|
366
|
+
/** Artifactory identifier. */
|
|
367
|
+
artifactoryId: string;
|
|
368
|
+
proxy?: UpdateProxyRequest;
|
|
369
|
+
}
|
|
370
|
+
export const PatchArtifactoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
371
|
+
S.Struct({
|
|
372
|
+
projectId: S.String.pipe(T.Label()),
|
|
373
|
+
regionId: S.String.pipe(T.Label()),
|
|
374
|
+
artifactoryId: S.String.pipe(T.Label()),
|
|
375
|
+
proxy: S.optional(UpdateProxyRequest),
|
|
376
|
+
}).pipe(
|
|
377
|
+
T.Http({
|
|
378
|
+
method: "PATCH",
|
|
379
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/artifactories/{artifactoryId}",
|
|
380
|
+
code: 200,
|
|
381
|
+
baseUrl: "https://registry.api.stackit.cloud",
|
|
382
|
+
}),
|
|
383
|
+
),
|
|
384
|
+
).annotate({
|
|
385
|
+
identifier: "PatchArtifactoryRequest",
|
|
386
|
+
}) as any as S.Schema<PatchArtifactoryRequest>;
|
|
387
|
+
|
|
388
|
+
export type CreateArtifactoryError =
|
|
389
|
+
| BadRequest
|
|
390
|
+
| Forbidden
|
|
391
|
+
| NotFound
|
|
392
|
+
| Conflict
|
|
393
|
+
| StackitOpError;
|
|
394
|
+
/** Creates an artifactory Creates an artifactory associated to the specified project. */
|
|
395
|
+
export const createArtifactory: API.OperationMethod<
|
|
396
|
+
CreateArtifactoryRequest,
|
|
397
|
+
Artifactory,
|
|
398
|
+
CreateArtifactoryError,
|
|
399
|
+
StackitOpContext
|
|
400
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
401
|
+
input: CreateArtifactoryRequest,
|
|
402
|
+
output: Artifactory,
|
|
403
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
404
|
+
protocol: StackitProtocol,
|
|
405
|
+
retry: Retry.Retry,
|
|
406
|
+
}));
|
|
407
|
+
|
|
408
|
+
export type DeleteArtifactoryError =
|
|
409
|
+
| BadRequest
|
|
410
|
+
| Forbidden
|
|
411
|
+
| NotFound
|
|
412
|
+
| Conflict
|
|
413
|
+
| StackitOpError;
|
|
414
|
+
/** Soft delete the artifactory. Deletes the artifactory associated to the specified project. */
|
|
415
|
+
export const deleteArtifactory: API.OperationMethod<
|
|
416
|
+
DeleteArtifactoryRequest,
|
|
417
|
+
DeleteArtifactoryResponse,
|
|
418
|
+
DeleteArtifactoryError,
|
|
419
|
+
StackitOpContext
|
|
420
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
421
|
+
input: DeleteArtifactoryRequest,
|
|
422
|
+
output: DeleteArtifactoryResponse,
|
|
423
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
424
|
+
protocol: StackitProtocol,
|
|
425
|
+
retry: Retry.Retry,
|
|
426
|
+
}));
|
|
427
|
+
|
|
428
|
+
export type GetArtifactoryError =
|
|
429
|
+
| BadRequest
|
|
430
|
+
| Forbidden
|
|
431
|
+
| NotFound
|
|
432
|
+
| StackitOpError;
|
|
433
|
+
/** Get Artifactory information. Retrieves information about a STACKIT Artifactory. */
|
|
434
|
+
export const getArtifactory: API.OperationMethod<
|
|
435
|
+
GetArtifactoryRequest,
|
|
436
|
+
Artifactory,
|
|
437
|
+
GetArtifactoryError,
|
|
438
|
+
StackitOpContext
|
|
439
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
440
|
+
input: GetArtifactoryRequest,
|
|
441
|
+
output: Artifactory,
|
|
442
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
443
|
+
protocol: StackitProtocol,
|
|
444
|
+
retry: Retry.Retry,
|
|
445
|
+
}));
|
|
446
|
+
|
|
447
|
+
export type ListArtifactoriesError = BadRequest | Forbidden | StackitOpError;
|
|
448
|
+
/** List artifactories inside a STACKIT project Lists all artifactories associated to the specified project. */
|
|
449
|
+
export const listArtifactories: API.OperationMethod<
|
|
450
|
+
ListArtifactoriesRequest,
|
|
451
|
+
ArtifactoryList,
|
|
452
|
+
ListArtifactoriesError,
|
|
453
|
+
StackitOpContext
|
|
454
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
455
|
+
input: ListArtifactoriesRequest,
|
|
456
|
+
output: ArtifactoryList,
|
|
457
|
+
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
458
|
+
protocol: StackitProtocol,
|
|
459
|
+
retry: Retry.Retry,
|
|
460
|
+
}));
|
|
461
|
+
|
|
462
|
+
export type ListReplicationAdaptersError = BadRequest | StackitOpError;
|
|
463
|
+
/** List available adapters for replication to/from other registries */
|
|
464
|
+
export const listReplicationAdapters: API.OperationMethod<
|
|
465
|
+
ListReplicationAdaptersRequest,
|
|
466
|
+
ReplicationAdapterList,
|
|
467
|
+
ListReplicationAdaptersError,
|
|
468
|
+
StackitOpContext
|
|
469
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
470
|
+
input: ListReplicationAdaptersRequest,
|
|
471
|
+
output: ReplicationAdapterList,
|
|
472
|
+
errors: [BadRequest, UnknownStackitError],
|
|
473
|
+
protocol: StackitProtocol,
|
|
474
|
+
retry: Retry.Retry,
|
|
475
|
+
}));
|
|
476
|
+
|
|
477
|
+
export type PatchArtifactoryError =
|
|
478
|
+
| BadRequest
|
|
479
|
+
| Forbidden
|
|
480
|
+
| NotFound
|
|
481
|
+
| StackitOpError;
|
|
482
|
+
/** Update Artifactory */
|
|
483
|
+
export const patchArtifactory: API.OperationMethod<
|
|
484
|
+
PatchArtifactoryRequest,
|
|
485
|
+
Artifactory,
|
|
486
|
+
PatchArtifactoryError,
|
|
487
|
+
StackitOpContext
|
|
488
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
489
|
+
input: PatchArtifactoryRequest,
|
|
490
|
+
output: Artifactory,
|
|
491
|
+
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
492
|
+
protocol: StackitProtocol,
|
|
493
|
+
retry: Retry.Retry,
|
|
494
|
+
}));
|