@distilled.cloud/stackit 1.0.0-rc.20 → 1.0.0-rc.21
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/README.md +13 -2
- package/lib/.lazy.json +1 -1
- package/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +17 -3
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +1 -1
- package/lib/errors.d.ts +8 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/index.d.ts +9 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/protocol.d.ts +33 -12
- package/lib/protocol.d.ts.map +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/services/alb.d.ts +8 -0
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +26 -26
- package/lib/services/alb.js.map +1 -1
- package/lib/services/alb_waf.d.ts +8 -0
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +31 -31
- package/lib/services/alb_waf.js.map +1 -1
- package/lib/services/authorization.d.ts +13 -0
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +1 -1
- package/lib/services/authorization.js.map +1 -1
- package/lib/services/automation.d.ts +23 -0
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +23 -22
- package/lib/services/automation.js.map +1 -1
- package/lib/services/cdn.d.ts +39 -1
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +31 -30
- package/lib/services/cdn.js.map +1 -1
- package/lib/services/certificates.d.ts +6 -0
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +1 -1
- package/lib/services/certificates.js.map +1 -1
- package/lib/services/cost.d.ts +19 -0
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +1 -1
- package/lib/services/cost.js.map +1 -1
- package/lib/services/dns.d.ts +16 -0
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +40 -40
- package/lib/services/dns.js.map +1 -1
- package/lib/services/iaas.d.ts +17 -0
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +181 -180
- package/lib/services/iaas.js.map +1 -1
- package/lib/services/identity.d.ts +19 -0
- package/lib/services/identity.d.ts.map +1 -1
- package/lib/services/identity.js +1 -1
- package/lib/services/identity.js.map +1 -1
- package/lib/services/index.d.ts +0 -10
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +0 -10
- package/lib/services/kms.d.ts +16 -0
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +41 -40
- package/lib/services/kms.js.map +1 -1
- package/lib/services/load_balancer.d.ts +8 -0
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +27 -27
- package/lib/services/load_balancer.js.map +1 -1
- package/lib/services/logme.d.ts +14 -1
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +36 -35
- package/lib/services/logme.js.map +1 -1
- package/lib/services/logs.d.ts +6 -0
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +34 -34
- package/lib/services/logs.js.map +1 -1
- package/lib/services/mariadb.d.ts +14 -1
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +37 -36
- package/lib/services/mariadb.js.map +1 -1
- package/lib/services/model_experiments.d.ts +20 -0
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +1 -1
- package/lib/services/model_experiments.js.map +1 -1
- package/lib/services/model_serving.d.ts +13 -0
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +1 -1
- package/lib/services/model_serving.js.map +1 -1
- package/lib/services/mongodb_flex.d.ts +19 -0
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +42 -41
- package/lib/services/mongodb_flex.js.map +1 -1
- package/lib/services/object_storage.d.ts +34 -0
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +38 -37
- package/lib/services/object_storage.js.map +1 -1
- package/lib/services/observability.d.ts +34 -8
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +159 -158
- package/lib/services/observability.js.map +1 -1
- package/lib/services/opensearch.d.ts +14 -1
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +37 -36
- package/lib/services/opensearch.js.map +1 -1
- package/lib/services/pim.d.ts +22 -0
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +31 -30
- package/lib/services/pim.js.map +1 -1
- package/lib/services/postgres_flex.d.ts +37 -0
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +48 -47
- package/lib/services/postgres_flex.js.map +1 -1
- package/lib/services/rabbitmq.d.ts +14 -1
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +38 -37
- package/lib/services/rabbitmq.js.map +1 -1
- package/lib/services/registry.d.ts +37 -0
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +1 -1
- package/lib/services/registry.js.map +1 -1
- package/lib/services/resource_manager.d.ts +24 -0
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +36 -35
- package/lib/services/resource_manager.js.map +1 -1
- package/lib/services/run_command.d.ts +12 -0
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +1 -1
- package/lib/services/run_command.js.map +1 -1
- package/lib/services/scf.d.ts +13 -0
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +40 -39
- package/lib/services/scf.js.map +1 -1
- package/lib/services/secrets_manager.d.ts +21 -0
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +42 -41
- package/lib/services/secrets_manager.js.map +1 -1
- package/lib/services/server_backup.d.ts +6 -0
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +28 -28
- package/lib/services/server_backup.js.map +1 -1
- package/lib/services/server_update.d.ts +6 -0
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +1 -1
- package/lib/services/server_update.js.map +1 -1
- package/lib/services/service_account.d.ts +28 -0
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +30 -29
- package/lib/services/service_account.js.map +1 -1
- package/lib/services/service_enablement.d.ts +14 -0
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +1 -1
- package/lib/services/service_enablement.js.map +1 -1
- package/lib/services/sfs.d.ts +33 -0
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +46 -46
- package/lib/services/sfs.js.map +1 -1
- package/lib/services/ske.d.ts +8 -3
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +25 -25
- package/lib/services/ske.js.map +1 -1
- package/lib/services/sqlserverflex.d.ts +34 -0
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +46 -45
- package/lib/services/sqlserverflex.js.map +1 -1
- package/lib/services/stackit_marketplace.d.ts +26 -1
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +26 -25
- package/lib/services/stackit_marketplace.js.map +1 -1
- package/lib/services/telemetry_link.d.ts +12 -0
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +35 -34
- package/lib/services/telemetry_link.js.map +1 -1
- package/lib/services/telemetry_router.d.ts +49 -3
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +33 -31
- package/lib/services/telemetry_router.js.map +1 -1
- package/lib/services/ufw.d.ts +15 -0
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +1 -1
- package/lib/services/ufw.js.map +1 -1
- package/lib/services/valkey.d.ts +14 -1
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +37 -36
- package/lib/services/valkey.js.map +1 -1
- package/lib/services/vpn.d.ts +43 -1
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +43 -42
- package/lib/services/vpn.js.map +1 -1
- package/lib/services.lazy/alb.js +1 -1
- package/lib/services.lazy/alb_waf.js +1 -1
- package/lib/services.lazy/automation.js +1 -1
- package/lib/services.lazy/cdn.js +1 -1
- package/lib/services.lazy/dns.js +1 -1
- package/lib/services.lazy/iaas.js +1 -1
- package/lib/services.lazy/index.js +2 -2
- package/lib/services.lazy/kms.js +1 -1
- package/lib/services.lazy/load_balancer.js +1 -1
- package/lib/services.lazy/logme.js +1 -1
- package/lib/services.lazy/logs.js +1 -1
- package/lib/services.lazy/mariadb.js +1 -1
- package/lib/services.lazy/mongodb_flex.js +1 -1
- package/lib/services.lazy/object_storage.js +1 -1
- package/lib/services.lazy/observability.js +1 -1
- package/lib/services.lazy/opensearch.js +1 -1
- package/lib/services.lazy/pim.js +1 -1
- package/lib/services.lazy/postgres_flex.js +1 -1
- package/lib/services.lazy/rabbitmq.js +1 -1
- package/lib/services.lazy/resource_manager.js +1 -1
- package/lib/services.lazy/scf.js +1 -1
- package/lib/services.lazy/secrets_manager.js +1 -1
- package/lib/services.lazy/server_backup.js +1 -1
- package/lib/services.lazy/service_account.js +1 -1
- package/lib/services.lazy/sfs.js +1 -1
- package/lib/services.lazy/ske.js +1 -1
- package/lib/services.lazy/sqlserverflex.js +1 -1
- package/lib/services.lazy/stackit_marketplace.js +1 -1
- package/lib/services.lazy/telemetry_link.js +1 -1
- package/lib/services.lazy/telemetry_router.js +1 -1
- package/lib/services.lazy/valkey.js +1 -1
- package/lib/services.lazy/vpn.js +1 -1
- package/lib/traits.d.ts.map +1 -1
- package/lib/{services → unstable-services}/dremio.d.ts +19 -4
- package/lib/unstable-services/dremio.d.ts.map +1 -0
- package/lib/unstable-services/dremio.js +2 -0
- package/lib/unstable-services/dremio.js.map +1 -0
- package/lib/{services → unstable-services}/edge.d.ts +13 -1
- package/lib/unstable-services/edge.d.ts.map +1 -0
- package/lib/unstable-services/edge.js +29 -0
- package/lib/unstable-services/edge.js.map +1 -0
- package/lib/unstable-services/functions.d.ts.map +1 -0
- package/lib/unstable-services/functions.js +28 -0
- package/lib/unstable-services/functions.js.map +1 -0
- package/lib/{services → unstable-services}/git.d.ts +42 -1
- package/lib/unstable-services/git.d.ts.map +1 -0
- package/lib/unstable-services/git.js +43 -0
- package/lib/unstable-services/git.js.map +1 -0
- package/lib/unstable-services/index.d.ts +11 -0
- package/lib/unstable-services/index.d.ts.map +1 -0
- package/lib/unstable-services/index.js +10 -0
- package/lib/{services → unstable-services}/intake.d.ts +8 -2
- package/lib/unstable-services/intake.d.ts.map +1 -0
- package/lib/unstable-services/intake.js +31 -0
- package/lib/unstable-services/intake.js.map +1 -0
- package/lib/{services → unstable-services}/lb_ip_lists.d.ts +9 -1
- package/lib/unstable-services/lb_ip_lists.d.ts.map +1 -0
- package/lib/unstable-services/lb_ip_lists.js +2 -0
- package/lib/unstable-services/lb_ip_lists.js.map +1 -0
- package/lib/{services → unstable-services}/mailout.d.ts +95 -126
- package/lib/unstable-services/mailout.d.ts.map +1 -0
- package/lib/unstable-services/mailout.js +30 -0
- package/lib/unstable-services/mailout.js.map +1 -0
- package/lib/{services → unstable-services}/pubsub.d.ts +10 -0
- package/lib/unstable-services/pubsub.d.ts.map +1 -0
- package/lib/unstable-services/pubsub.js +39 -0
- package/lib/unstable-services/pubsub.js.map +1 -0
- package/lib/{services → unstable-services}/sca.d.ts +73 -23
- package/lib/unstable-services/sca.d.ts.map +1 -0
- package/lib/unstable-services/sca.js +41 -0
- package/lib/unstable-services/sca.js.map +1 -0
- package/lib/{services → unstable-services}/workflows.d.ts +29 -1
- package/lib/unstable-services/workflows.d.ts.map +1 -0
- package/lib/unstable-services/workflows.js +30 -0
- package/lib/unstable-services/workflows.js.map +1 -0
- package/lib/unstable-services.lazy/dremio.js +1 -0
- package/lib/{services.lazy → unstable-services.lazy}/edge.js +1 -1
- package/lib/{services.lazy → unstable-services.lazy}/functions.js +1 -1
- package/lib/{services.lazy → unstable-services.lazy}/git.js +2 -2
- package/lib/unstable-services.lazy/index.js +3 -0
- package/lib/{services.lazy → unstable-services.lazy}/intake.js +1 -1
- package/lib/unstable-services.lazy/lb_ip_lists.js +1 -0
- package/lib/unstable-services.lazy/mailout.js +4 -0
- package/lib/{services.lazy → unstable-services.lazy}/pubsub.js +1 -1
- package/lib/{services.lazy → unstable-services.lazy}/sca.js +2 -2
- package/lib/{services.lazy → unstable-services.lazy}/workflows.js +1 -1
- package/package.json +12 -6
- package/src/credentials.ts +44 -7
- package/src/errors.ts +10 -1
- package/src/index.ts +9 -6
- package/src/protocol.ts +108 -127
- package/src/services/alb.ts +35 -14
- package/src/services/alb_waf.ts +41 -17
- package/src/services/authorization.ts +121 -75
- package/src/services/automation.ts +151 -76
- package/src/services/cdn.ts +284 -187
- package/src/services/certificates.ts +17 -6
- package/src/services/cost.ts +75 -17
- package/src/services/dns.ts +219 -149
- package/src/services/iaas.ts +888 -708
- package/src/services/identity.ts +109 -51
- package/src/services/index.ts +0 -10
- package/src/services/kms.ts +185 -118
- package/src/services/load_balancer.ts +35 -14
- package/src/services/logme.ts +181 -123
- package/src/services/logs.ts +43 -19
- package/src/services/mariadb.ts +179 -121
- package/src/services/model_experiments.ts +122 -64
- package/src/services/model_serving.ts +102 -58
- package/src/services/mongodb_flex.ts +196 -131
- package/src/services/object_storage.ts +226 -106
- package/src/services/observability.ts +880 -709
- package/src/services/opensearch.ts +182 -124
- package/src/services/pim.ts +166 -104
- package/src/services/postgres_flex.ts +291 -170
- package/src/services/rabbitmq.ts +188 -130
- package/src/services/registry.ts +146 -40
- package/src/services/resource_manager.ts +180 -110
- package/src/services/run_command.ts +73 -37
- package/src/services/scf.ts +178 -119
- package/src/services/secrets_manager.ts +198 -129
- package/src/services/server_backup.ts +39 -17
- package/src/services/server_update.ts +31 -13
- package/src/services/service_account.ts +180 -85
- package/src/services/service_enablement.ts +64 -28
- package/src/services/sfs.ts +265 -163
- package/src/services/ske.ts +39 -20
- package/src/services/sqlserverflex.ts +290 -175
- package/src/services/stackit_marketplace.ts +138 -70
- package/src/services/telemetry_link.ts +151 -100
- package/src/services/telemetry_router.ts +241 -109
- package/src/services/ufw.ts +97 -50
- package/src/services/valkey.ts +179 -121
- package/src/services/vpn.ts +305 -194
- package/src/{services → unstable-services}/dremio.ts +113 -74
- package/src/{services → unstable-services}/edge.ts +113 -72
- package/src/{services → unstable-services}/functions.ts +31 -16
- package/src/{services → unstable-services}/git.ts +285 -133
- package/src/unstable-services/index.ts +11 -0
- package/src/{services → unstable-services}/intake.ts +41 -20
- package/src/{services → unstable-services}/lb_ip_lists.ts +20 -7
- package/src/{services → unstable-services}/mailout.ts +290 -381
- package/src/{services → unstable-services}/pubsub.ts +47 -19
- package/src/{services → unstable-services}/sca.ts +349 -172
- package/src/{services → unstable-services}/workflows.ts +149 -76
- package/lib/index.lazy.js +0 -7
- package/lib/index.lazy.js.map +0 -1
- package/lib/services/dremio.d.ts.map +0 -1
- package/lib/services/dremio.js +0 -2
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.d.ts.map +0 -1
- package/lib/services/edge.js +0 -29
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.d.ts.map +0 -1
- package/lib/services/functions.js +0 -28
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.d.ts.map +0 -1
- package/lib/services/git.js +0 -41
- package/lib/services/git.js.map +0 -1
- package/lib/services/intake.d.ts.map +0 -1
- package/lib/services/intake.js +0 -31
- package/lib/services/intake.js.map +0 -1
- package/lib/services/lb_ip_lists.d.ts.map +0 -1
- package/lib/services/lb_ip_lists.js +0 -2
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/mailout.d.ts.map +0 -1
- package/lib/services/mailout.js +0 -33
- package/lib/services/mailout.js.map +0 -1
- package/lib/services/pubsub.d.ts.map +0 -1
- package/lib/services/pubsub.js +0 -39
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/sca.d.ts.map +0 -1
- package/lib/services/sca.js +0 -35
- package/lib/services/sca.js.map +0 -1
- package/lib/services/workflows.d.ts.map +0 -1
- package/lib/services/workflows.js +0 -29
- package/lib/services/workflows.js.map +0 -1
- package/lib/services.lazy/dremio.js +0 -1
- package/lib/services.lazy/lb_ip_lists.js +0 -1
- package/lib/services.lazy/mailout.js +0 -4
- /package/lib/{services → unstable-services}/functions.d.ts +0 -0
package/src/services/registry.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as C from "@distilled.cloud/core/category";
|
|
|
4
4
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
5
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
6
|
import type * as Redacted from "effect/Redacted";
|
|
7
|
-
import {
|
|
7
|
+
import { StackitServiceErrors } from "../errors.ts";
|
|
8
8
|
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
9
9
|
import * as Retry from "../retry.ts";
|
|
10
10
|
import * as T from "../traits.ts";
|
|
@@ -31,36 +31,76 @@ export class BadRequest
|
|
|
31
31
|
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
32
32
|
code: S.Number,
|
|
33
33
|
message: S.String,
|
|
34
|
+
body: /*@__PURE__*/ S.optional(
|
|
35
|
+
/*@__PURE__*/ S.Union([
|
|
36
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
37
|
+
/*@__PURE__*/ S.suspend(() => __S(2, __c0, 2)),
|
|
38
|
+
S.String,
|
|
39
|
+
]),
|
|
40
|
+
),
|
|
41
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
34
42
|
}).pipe(C.withBadRequestError),
|
|
35
43
|
[{ status: 400 }],
|
|
36
|
-
)
|
|
44
|
+
)
|
|
45
|
+
{
|
|
46
|
+
declare readonly body?: BadRequestErrorResponse | GenericErrorResponse | string;
|
|
47
|
+
}
|
|
37
48
|
|
|
38
49
|
export class Conflict
|
|
39
50
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
40
51
|
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
41
52
|
code: S.Number,
|
|
42
53
|
message: S.String,
|
|
54
|
+
body: /*@__PURE__*/ S.optional(
|
|
55
|
+
/*@__PURE__*/ S.Union([
|
|
56
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
57
|
+
/*@__PURE__*/ S.suspend(() => __S(2, __c0, 2)),
|
|
58
|
+
S.String,
|
|
59
|
+
]),
|
|
60
|
+
),
|
|
61
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
43
62
|
}).pipe(C.withConflictError),
|
|
44
63
|
[{ status: 409 }],
|
|
45
|
-
)
|
|
64
|
+
)
|
|
65
|
+
{
|
|
66
|
+
declare readonly body?: ConflictErrorResponse | GenericErrorResponse | string;
|
|
67
|
+
}
|
|
46
68
|
|
|
47
69
|
export class Forbidden
|
|
48
70
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
49
71
|
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
50
72
|
code: S.Number,
|
|
51
73
|
message: S.String,
|
|
74
|
+
body: /*@__PURE__*/ S.optional(
|
|
75
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(4, __c1, 0)), S.String]),
|
|
76
|
+
),
|
|
77
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
52
78
|
}).pipe(C.withAuthError),
|
|
53
79
|
[{ status: 403 }],
|
|
54
|
-
)
|
|
80
|
+
)
|
|
81
|
+
{
|
|
82
|
+
declare readonly body?: ForbiddenErrorResponse | string;
|
|
83
|
+
}
|
|
55
84
|
|
|
56
85
|
export class NotFound
|
|
57
86
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
58
87
|
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
59
88
|
code: S.Number,
|
|
60
89
|
message: S.String,
|
|
90
|
+
body: /*@__PURE__*/ S.optional(
|
|
91
|
+
/*@__PURE__*/ S.Union([
|
|
92
|
+
/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)),
|
|
93
|
+
/*@__PURE__*/ S.suspend(() => __S(2, __c0, 2)),
|
|
94
|
+
S.String,
|
|
95
|
+
]),
|
|
96
|
+
),
|
|
97
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
61
98
|
}).pipe(C.withBadRequestError),
|
|
62
99
|
[{ status: 404 }],
|
|
63
|
-
)
|
|
100
|
+
)
|
|
101
|
+
{
|
|
102
|
+
declare readonly body?: NotFoundErrorResponse | GenericErrorResponse | string;
|
|
103
|
+
}
|
|
64
104
|
|
|
65
105
|
/** Credentials for upstream registry */
|
|
66
106
|
export interface Credentials {
|
|
@@ -111,6 +151,8 @@ export interface Artifactory {
|
|
|
111
151
|
consumed_quota_bytes: number;
|
|
112
152
|
/** The date and time the creation of the STACKIT Artifactory was triggered. */
|
|
113
153
|
create_time: string;
|
|
154
|
+
/** Describes the reason for the error state. */
|
|
155
|
+
error_description?: string | undefined;
|
|
114
156
|
/** A auto generated unique id which identifies the STACKIT Artifactory. */
|
|
115
157
|
id: string;
|
|
116
158
|
/** A user chosen name to distinguish multiple STACKIT Artifactories. */
|
|
@@ -195,6 +237,29 @@ export interface PatchArtifactoryRequest {
|
|
|
195
237
|
artifactoryId: string;
|
|
196
238
|
proxy?: UpdateProxyRequest | undefined;
|
|
197
239
|
}
|
|
240
|
+
/** 400 Error Response. */
|
|
241
|
+
export interface BadRequestErrorResponse {
|
|
242
|
+
error?: string | undefined;
|
|
243
|
+
message: string;
|
|
244
|
+
}
|
|
245
|
+
export type GenericErrorResponseDetailsList = Array<string>;
|
|
246
|
+
/** Generic Error Response. */
|
|
247
|
+
export interface GenericErrorResponse {
|
|
248
|
+
details?: GenericErrorResponseDetailsList | undefined;
|
|
249
|
+
message: string;
|
|
250
|
+
}
|
|
251
|
+
/** 409 Error Response. */
|
|
252
|
+
export type ConflictErrorResponse = BadRequestErrorResponse;
|
|
253
|
+
/** Forbidden Error Response. */
|
|
254
|
+
export interface ForbiddenErrorResponse {
|
|
255
|
+
error?: string | undefined;
|
|
256
|
+
message: string;
|
|
257
|
+
path?: string | undefined;
|
|
258
|
+
status?: number | undefined;
|
|
259
|
+
timestamp?: string | undefined;
|
|
260
|
+
}
|
|
261
|
+
/** 404 Error Response. */
|
|
262
|
+
export type NotFoundErrorResponse = BadRequestErrorResponse;
|
|
198
263
|
export type CreateArtifactoryError = BadRequest | Forbidden | NotFound | Conflict | StackitOpError;
|
|
199
264
|
/** Creates an artifactory Creates an artifactory associated to the specified project. */
|
|
200
265
|
export const createArtifactory: API.OperationMethod<
|
|
@@ -203,9 +268,10 @@ export const createArtifactory: API.OperationMethod<
|
|
|
203
268
|
CreateArtifactoryError,
|
|
204
269
|
StackitOpContext
|
|
205
270
|
> = /*@__PURE__*/ API.make(() => ({
|
|
206
|
-
input: __S(
|
|
207
|
-
output: __S(
|
|
208
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict
|
|
271
|
+
input: __S(9, __c2, 1) as any as S.Schema<CreateArtifactoryRequest>,
|
|
272
|
+
output: __S(14, __c3, 2) as any as S.Schema<Artifactory>,
|
|
273
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
274
|
+
serviceErrors: StackitServiceErrors,
|
|
209
275
|
protocol: StackitProtocol,
|
|
210
276
|
retry: Retry.Retry,
|
|
211
277
|
telemetry: TELEMETRY,
|
|
@@ -220,9 +286,10 @@ export const deleteArtifactory: API.OperationMethod<
|
|
|
220
286
|
DeleteArtifactoryError,
|
|
221
287
|
StackitOpContext
|
|
222
288
|
> = /*@__PURE__*/ API.make(() => ({
|
|
223
|
-
input: __S(
|
|
224
|
-
output: __S(
|
|
225
|
-
errors: [BadRequest, Forbidden, NotFound, Conflict
|
|
289
|
+
input: __S(20, __c5, 0) as any as S.Schema<DeleteArtifactoryRequest>,
|
|
290
|
+
output: __S(21, __c5, 1) as any as S.Schema<DeleteArtifactoryResponse>,
|
|
291
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
292
|
+
serviceErrors: StackitServiceErrors,
|
|
226
293
|
protocol: StackitProtocol,
|
|
227
294
|
retry: Retry.Retry,
|
|
228
295
|
telemetry: TELEMETRY,
|
|
@@ -237,9 +304,10 @@ export const getArtifactory: API.OperationMethod<
|
|
|
237
304
|
GetArtifactoryError,
|
|
238
305
|
StackitOpContext
|
|
239
306
|
> = /*@__PURE__*/ API.make(() => ({
|
|
240
|
-
input: __S(
|
|
241
|
-
output: __S(
|
|
242
|
-
errors: [BadRequest, Forbidden, NotFound
|
|
307
|
+
input: __S(24, __c6, 0) as any as S.Schema<GetArtifactoryRequest>,
|
|
308
|
+
output: __S(14, __c3, 2) as any as S.Schema<Artifactory>,
|
|
309
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
310
|
+
serviceErrors: StackitServiceErrors,
|
|
243
311
|
protocol: StackitProtocol,
|
|
244
312
|
retry: Retry.Retry,
|
|
245
313
|
telemetry: TELEMETRY,
|
|
@@ -254,9 +322,10 @@ export const listArtifactories: API.OperationMethod<
|
|
|
254
322
|
ListArtifactoriesError,
|
|
255
323
|
StackitOpContext
|
|
256
324
|
> = /*@__PURE__*/ API.make(() => ({
|
|
257
|
-
input: __S(
|
|
258
|
-
output: __S(
|
|
259
|
-
errors: [BadRequest, Forbidden
|
|
325
|
+
input: __S(28, __c7, 0) as any as S.Schema<ListArtifactoriesRequest>,
|
|
326
|
+
output: __S(30, __c7, 2) as any as S.Schema<ArtifactoryList>,
|
|
327
|
+
errors: [BadRequest, Forbidden],
|
|
328
|
+
serviceErrors: StackitServiceErrors,
|
|
260
329
|
protocol: StackitProtocol,
|
|
261
330
|
retry: Retry.Retry,
|
|
262
331
|
telemetry: TELEMETRY,
|
|
@@ -271,9 +340,10 @@ export const listReplicationAdapters: API.OperationMethod<
|
|
|
271
340
|
ListReplicationAdaptersError,
|
|
272
341
|
StackitOpContext
|
|
273
342
|
> = /*@__PURE__*/ API.make(() => ({
|
|
274
|
-
input: __S(
|
|
275
|
-
output: __S(
|
|
276
|
-
errors: [BadRequest
|
|
343
|
+
input: __S(32, __c8, 0) as any as S.Schema<ListReplicationAdaptersRequest>,
|
|
344
|
+
output: __S(35, __c8, 3) as any as S.Schema<ReplicationAdapterList>,
|
|
345
|
+
errors: [BadRequest],
|
|
346
|
+
serviceErrors: StackitServiceErrors,
|
|
277
347
|
protocol: StackitProtocol,
|
|
278
348
|
retry: Retry.Retry,
|
|
279
349
|
telemetry: TELEMETRY,
|
|
@@ -288,9 +358,10 @@ export const patchArtifactory: API.OperationMethod<
|
|
|
288
358
|
PatchArtifactoryError,
|
|
289
359
|
StackitOpContext
|
|
290
360
|
> = /*@__PURE__*/ API.make(() => ({
|
|
291
|
-
input: __S(
|
|
292
|
-
output: __S(
|
|
293
|
-
errors: [BadRequest, Forbidden, NotFound
|
|
361
|
+
input: __S(37, __c9, 1) as any as S.Schema<PatchArtifactoryRequest>,
|
|
362
|
+
output: __S(14, __c3, 2) as any as S.Schema<Artifactory>,
|
|
363
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
364
|
+
serviceErrors: StackitServiceErrors,
|
|
294
365
|
protocol: StackitProtocol,
|
|
295
366
|
retry: Retry.Retry,
|
|
296
367
|
telemetry: TELEMETRY,
|
|
@@ -303,7 +374,41 @@ function __c0(j: number): any {
|
|
|
303
374
|
case 0:
|
|
304
375
|
return S.suspend(() =>
|
|
305
376
|
S.Struct({
|
|
306
|
-
|
|
377
|
+
error: S.optional(S.String),
|
|
378
|
+
message: S.String,
|
|
379
|
+
}),
|
|
380
|
+
).annotate({ identifier: "BadRequestErrorResponse" });
|
|
381
|
+
case 1:
|
|
382
|
+
return S.Array(S.String);
|
|
383
|
+
case 2:
|
|
384
|
+
return S.suspend(() =>
|
|
385
|
+
S.Struct({
|
|
386
|
+
details: S.optional(__S(1, __c0, 1)),
|
|
387
|
+
message: S.String,
|
|
388
|
+
}),
|
|
389
|
+
).annotate({ identifier: "GenericErrorResponse" });
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
function __c1(j: number): any {
|
|
393
|
+
switch (j) {
|
|
394
|
+
case 0:
|
|
395
|
+
return S.suspend(() =>
|
|
396
|
+
S.Struct({
|
|
397
|
+
error: S.optional(S.String),
|
|
398
|
+
message: S.String,
|
|
399
|
+
path: S.optional(S.String),
|
|
400
|
+
status: S.optional(S.Number),
|
|
401
|
+
timestamp: S.optional(S.String),
|
|
402
|
+
}),
|
|
403
|
+
).annotate({ identifier: "ForbiddenErrorResponse" });
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
function __c2(j: number): any {
|
|
407
|
+
switch (j) {
|
|
408
|
+
case 0:
|
|
409
|
+
return S.suspend(() =>
|
|
410
|
+
S.Struct({
|
|
411
|
+
credentials: S.optional(__S(16, __c4, 0)),
|
|
307
412
|
description: S.optional(S.String),
|
|
308
413
|
registry_type: S.String,
|
|
309
414
|
url: S.String,
|
|
@@ -316,7 +421,7 @@ function __c0(j: number): any {
|
|
|
316
421
|
regionId: S.String.pipe(T.Label()),
|
|
317
422
|
claim: S.optional(S.Boolean.pipe(T.Query())),
|
|
318
423
|
name: S.String,
|
|
319
|
-
proxy: S.optional(__S(
|
|
424
|
+
proxy: S.optional(__S(8, __c2, 0)),
|
|
320
425
|
}).pipe(
|
|
321
426
|
T.Http({
|
|
322
427
|
method: "POST",
|
|
@@ -328,7 +433,7 @@ function __c0(j: number): any {
|
|
|
328
433
|
).annotate({ identifier: "CreateArtifactoryRequest" });
|
|
329
434
|
}
|
|
330
435
|
}
|
|
331
|
-
function
|
|
436
|
+
function __c3(j: number): any {
|
|
332
437
|
switch (j) {
|
|
333
438
|
case 0:
|
|
334
439
|
return S.suspend(() =>
|
|
@@ -339,7 +444,7 @@ function __c1(j: number): any {
|
|
|
339
444
|
case 1:
|
|
340
445
|
return S.suspend(() =>
|
|
341
446
|
S.Struct({
|
|
342
|
-
credentials: S.optional(__S(
|
|
447
|
+
credentials: S.optional(__S(12, __c3, 0)),
|
|
343
448
|
description: S.optional(S.String),
|
|
344
449
|
registry_type: S.String,
|
|
345
450
|
url: S.String,
|
|
@@ -350,16 +455,17 @@ function __c1(j: number): any {
|
|
|
350
455
|
S.Struct({
|
|
351
456
|
consumed_quota_bytes: S.Number,
|
|
352
457
|
create_time: S.String,
|
|
458
|
+
error_description: S.optional(S.String),
|
|
353
459
|
id: S.String,
|
|
354
460
|
name: S.String,
|
|
355
|
-
proxy: S.optional(__S(
|
|
461
|
+
proxy: S.optional(__S(13, __c3, 1)),
|
|
356
462
|
state: S.String,
|
|
357
463
|
url: S.String,
|
|
358
464
|
}),
|
|
359
465
|
).annotate({ identifier: "Artifactory" });
|
|
360
466
|
}
|
|
361
467
|
}
|
|
362
|
-
function
|
|
468
|
+
function __c4(j: number): any {
|
|
363
469
|
switch (j) {
|
|
364
470
|
case 0:
|
|
365
471
|
return S.suspend(() =>
|
|
@@ -370,7 +476,7 @@ function __c2(j: number): any {
|
|
|
370
476
|
).annotate({ identifier: "Credentials" });
|
|
371
477
|
}
|
|
372
478
|
}
|
|
373
|
-
function
|
|
479
|
+
function __c5(j: number): any {
|
|
374
480
|
switch (j) {
|
|
375
481
|
case 0:
|
|
376
482
|
return S.suspend(() =>
|
|
@@ -391,7 +497,7 @@ function __c3(j: number): any {
|
|
|
391
497
|
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteArtifactoryResponse" });
|
|
392
498
|
}
|
|
393
499
|
}
|
|
394
|
-
function
|
|
500
|
+
function __c6(j: number): any {
|
|
395
501
|
switch (j) {
|
|
396
502
|
case 0:
|
|
397
503
|
return S.suspend(() =>
|
|
@@ -410,7 +516,7 @@ function __c4(j: number): any {
|
|
|
410
516
|
).annotate({ identifier: "GetArtifactoryRequest" });
|
|
411
517
|
}
|
|
412
518
|
}
|
|
413
|
-
function
|
|
519
|
+
function __c7(j: number): any {
|
|
414
520
|
switch (j) {
|
|
415
521
|
case 0:
|
|
416
522
|
return S.suspend(() =>
|
|
@@ -429,17 +535,17 @@ function __c5(j: number): any {
|
|
|
429
535
|
),
|
|
430
536
|
).annotate({ identifier: "ListArtifactoriesRequest" });
|
|
431
537
|
case 1:
|
|
432
|
-
return S.Array(__S(
|
|
538
|
+
return S.Array(__S(14, __c3, 2));
|
|
433
539
|
case 2:
|
|
434
540
|
return S.suspend(() =>
|
|
435
541
|
S.Struct({
|
|
436
|
-
artifactories: __S(
|
|
542
|
+
artifactories: __S(29, __c7, 1),
|
|
437
543
|
next_page_token: S.optional(S.String),
|
|
438
544
|
}),
|
|
439
545
|
).annotate({ identifier: "ArtifactoryList" });
|
|
440
546
|
}
|
|
441
547
|
}
|
|
442
|
-
function
|
|
548
|
+
function __c8(j: number): any {
|
|
443
549
|
switch (j) {
|
|
444
550
|
case 0:
|
|
445
551
|
return S.suspend(() =>
|
|
@@ -464,22 +570,22 @@ function __c6(j: number): any {
|
|
|
464
570
|
}),
|
|
465
571
|
).annotate({ identifier: "ReplicationAdapter" });
|
|
466
572
|
case 2:
|
|
467
|
-
return S.Array(__S(
|
|
573
|
+
return S.Array(__S(33, __c8, 1));
|
|
468
574
|
case 3:
|
|
469
575
|
return S.suspend(() =>
|
|
470
576
|
S.Struct({
|
|
471
577
|
next_page_token: S.optional(S.String),
|
|
472
|
-
replication_adapters: __S(
|
|
578
|
+
replication_adapters: __S(34, __c8, 2),
|
|
473
579
|
}),
|
|
474
580
|
).annotate({ identifier: "ReplicationAdapterList" });
|
|
475
581
|
}
|
|
476
582
|
}
|
|
477
|
-
function
|
|
583
|
+
function __c9(j: number): any {
|
|
478
584
|
switch (j) {
|
|
479
585
|
case 0:
|
|
480
586
|
return S.suspend(() =>
|
|
481
587
|
S.Struct({
|
|
482
|
-
credentials: S.optional(__S(
|
|
588
|
+
credentials: S.optional(__S(16, __c4, 0)),
|
|
483
589
|
description: S.optional(S.String),
|
|
484
590
|
url: S.optional(S.String),
|
|
485
591
|
}),
|
|
@@ -490,7 +596,7 @@ function __c7(j: number): any {
|
|
|
490
596
|
projectId: S.String.pipe(T.Label()),
|
|
491
597
|
regionId: S.String.pipe(T.Label()),
|
|
492
598
|
artifactoryId: S.String.pipe(T.Label()),
|
|
493
|
-
proxy: S.optional(__S(
|
|
599
|
+
proxy: S.optional(__S(36, __c9, 0)),
|
|
494
600
|
}).pipe(
|
|
495
601
|
T.Http({
|
|
496
602
|
method: "PATCH",
|