@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
|
@@ -3,7 +3,7 @@ import * as C from "@distilled.cloud/core/category";
|
|
|
3
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
4
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
5
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
-
import {
|
|
6
|
+
import { StackitServiceErrors } from "../errors.ts";
|
|
7
7
|
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
8
8
|
import * as Retry from "../retry.ts";
|
|
9
9
|
import * as T from "../traits.ts";
|
|
@@ -30,18 +30,32 @@ export class BadRequest
|
|
|
30
30
|
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
31
31
|
code: S.Number,
|
|
32
32
|
message: S.String,
|
|
33
|
+
body: /*@__PURE__*/ S.optional(
|
|
34
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]),
|
|
35
|
+
),
|
|
36
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
33
37
|
}).pipe(C.withBadRequestError),
|
|
34
38
|
[{ status: 400 }],
|
|
35
|
-
)
|
|
39
|
+
)
|
|
40
|
+
{
|
|
41
|
+
declare readonly body?: ErrorResponse | string;
|
|
42
|
+
}
|
|
36
43
|
|
|
37
44
|
export class Forbidden
|
|
38
45
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
39
46
|
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
40
47
|
code: S.Number,
|
|
41
48
|
message: S.String,
|
|
49
|
+
body: /*@__PURE__*/ S.optional(
|
|
50
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]),
|
|
51
|
+
),
|
|
52
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
42
53
|
}).pipe(C.withAuthError),
|
|
43
54
|
[{ status: 403 }],
|
|
44
|
-
)
|
|
55
|
+
)
|
|
56
|
+
{
|
|
57
|
+
declare readonly body?: ErrorResponse | string;
|
|
58
|
+
}
|
|
45
59
|
|
|
46
60
|
export interface Member {
|
|
47
61
|
role: string;
|
|
@@ -194,6 +208,13 @@ export interface UpdateRoleResponse {
|
|
|
194
208
|
resourceType: string;
|
|
195
209
|
role: Role;
|
|
196
210
|
}
|
|
211
|
+
export interface ErrorResponse {
|
|
212
|
+
error: string;
|
|
213
|
+
message: string;
|
|
214
|
+
path: string;
|
|
215
|
+
status: number;
|
|
216
|
+
timeStamp: string;
|
|
217
|
+
}
|
|
197
218
|
export type AddMembersError = BadRequest | Forbidden | StackitOpError;
|
|
198
219
|
/** Add members to a resource Add members to the given resource with specified roles. */
|
|
199
220
|
export const addMembers: API.OperationMethod<
|
|
@@ -202,9 +223,10 @@ export const addMembers: API.OperationMethod<
|
|
|
202
223
|
AddMembersError,
|
|
203
224
|
StackitOpContext
|
|
204
225
|
> = /*@__PURE__*/ API.make(() => ({
|
|
205
|
-
input: __S(
|
|
206
|
-
output: __S(
|
|
207
|
-
errors: [BadRequest, Forbidden
|
|
226
|
+
input: __S(32, __c4, 0) as any as S.Schema<AddMembersRequest>,
|
|
227
|
+
output: __S(40, __c5, 0) as any as S.Schema<MembersResponse>,
|
|
228
|
+
errors: [BadRequest, Forbidden],
|
|
229
|
+
serviceErrors: StackitServiceErrors,
|
|
208
230
|
protocol: StackitProtocol,
|
|
209
231
|
retry: Retry.Retry,
|
|
210
232
|
telemetry: TELEMETRY,
|
|
@@ -219,9 +241,10 @@ export const addRole: API.OperationMethod<
|
|
|
219
241
|
AddRoleError,
|
|
220
242
|
StackitOpContext
|
|
221
243
|
> = /*@__PURE__*/ API.make(() => ({
|
|
222
|
-
input: __S(
|
|
223
|
-
output: __S(
|
|
224
|
-
errors: [BadRequest, Forbidden
|
|
244
|
+
input: __S(64, __c8, 0) as any as S.Schema<AddRoleRequest>,
|
|
245
|
+
output: __S(80, __c10, 0) as any as S.Schema<AddCustomRoleResponse>,
|
|
246
|
+
errors: [BadRequest, Forbidden],
|
|
247
|
+
serviceErrors: StackitServiceErrors,
|
|
225
248
|
protocol: StackitProtocol,
|
|
226
249
|
retry: Retry.Retry,
|
|
227
250
|
telemetry: TELEMETRY,
|
|
@@ -236,9 +259,10 @@ export const deleteRole: API.OperationMethod<
|
|
|
236
259
|
DeleteRoleError,
|
|
237
260
|
StackitOpContext
|
|
238
261
|
> = /*@__PURE__*/ API.make(() => ({
|
|
239
|
-
input: __S(
|
|
240
|
-
output: __S(
|
|
241
|
-
errors: [BadRequest, Forbidden
|
|
262
|
+
input: __S(104, __c13, 0) as any as S.Schema<DeleteRoleRequest>,
|
|
263
|
+
output: __S(105, __c13, 1) as any as S.Schema<DeleteRoleResponse>,
|
|
264
|
+
errors: [BadRequest, Forbidden],
|
|
265
|
+
serviceErrors: StackitServiceErrors,
|
|
242
266
|
protocol: StackitProtocol,
|
|
243
267
|
retry: Retry.Retry,
|
|
244
268
|
telemetry: TELEMETRY,
|
|
@@ -253,9 +277,10 @@ export const getRole: API.OperationMethod<
|
|
|
253
277
|
GetRoleError,
|
|
254
278
|
StackitOpContext
|
|
255
279
|
> = /*@__PURE__*/ API.make(() => ({
|
|
256
|
-
input: __S(
|
|
257
|
-
output: __S(
|
|
258
|
-
errors: [BadRequest, Forbidden
|
|
280
|
+
input: __S(112, __c14, 0) as any as S.Schema<GetRoleRequest>,
|
|
281
|
+
output: __S(80, __c10, 0) as any as S.Schema<GetRoleResponse>,
|
|
282
|
+
errors: [BadRequest, Forbidden],
|
|
283
|
+
serviceErrors: StackitServiceErrors,
|
|
259
284
|
protocol: StackitProtocol,
|
|
260
285
|
retry: Retry.Retry,
|
|
261
286
|
telemetry: TELEMETRY,
|
|
@@ -270,9 +295,10 @@ export const listMembers: API.OperationMethod<
|
|
|
270
295
|
ListMembersError,
|
|
271
296
|
StackitOpContext
|
|
272
297
|
> = /*@__PURE__*/ API.make(() => ({
|
|
273
|
-
input: __S(
|
|
274
|
-
output: __S(
|
|
275
|
-
errors: [BadRequest, Forbidden
|
|
298
|
+
input: __S(120, __c15, 0) as any as S.Schema<ListMembersRequest>,
|
|
299
|
+
output: __S(121, __c15, 1) as any as S.Schema<ListMembersResponse>,
|
|
300
|
+
errors: [BadRequest, Forbidden],
|
|
301
|
+
serviceErrors: StackitServiceErrors,
|
|
276
302
|
protocol: StackitProtocol,
|
|
277
303
|
retry: Retry.Retry,
|
|
278
304
|
telemetry: TELEMETRY,
|
|
@@ -287,9 +313,10 @@ export const listPermissions: API.OperationMethod<
|
|
|
287
313
|
ListPermissionsError,
|
|
288
314
|
StackitOpContext
|
|
289
315
|
> = /*@__PURE__*/ API.make(() => ({
|
|
290
|
-
input: __S(
|
|
291
|
-
output: __S(
|
|
292
|
-
errors: [BadRequest, Forbidden
|
|
316
|
+
input: __S(128, __c16, 0) as any as S.Schema<ListPermissionsRequest>,
|
|
317
|
+
output: __S(129, __c16, 1) as any as S.Schema<ListPermissionsResponse>,
|
|
318
|
+
errors: [BadRequest, Forbidden],
|
|
319
|
+
serviceErrors: StackitServiceErrors,
|
|
293
320
|
protocol: StackitProtocol,
|
|
294
321
|
retry: Retry.Retry,
|
|
295
322
|
telemetry: TELEMETRY,
|
|
@@ -304,9 +331,10 @@ export const listRoles: API.OperationMethod<
|
|
|
304
331
|
ListRolesError,
|
|
305
332
|
StackitOpContext
|
|
306
333
|
> = /*@__PURE__*/ API.make(() => ({
|
|
307
|
-
input: __S(
|
|
308
|
-
output: __S(
|
|
309
|
-
errors: [BadRequest, Forbidden
|
|
334
|
+
input: __S(136, __c17, 0) as any as S.Schema<ListRolesRequest>,
|
|
335
|
+
output: __S(138, __c17, 2) as any as S.Schema<RolesResponse>,
|
|
336
|
+
errors: [BadRequest, Forbidden],
|
|
337
|
+
serviceErrors: StackitServiceErrors,
|
|
310
338
|
protocol: StackitProtocol,
|
|
311
339
|
retry: Retry.Retry,
|
|
312
340
|
telemetry: TELEMETRY,
|
|
@@ -321,9 +349,10 @@ export const listUserMemberships: API.OperationMethod<
|
|
|
321
349
|
ListUserMembershipsError,
|
|
322
350
|
StackitOpContext
|
|
323
351
|
> = /*@__PURE__*/ API.make(() => ({
|
|
324
|
-
input: __S(
|
|
325
|
-
output: __S(
|
|
326
|
-
errors: [BadRequest, Forbidden
|
|
352
|
+
input: __S(144, __c18, 0) as any as S.Schema<ListUserMembershipsRequest>,
|
|
353
|
+
output: __S(147, __c18, 3) as any as S.Schema<ListUserMembershipsResponse>,
|
|
354
|
+
errors: [BadRequest, Forbidden],
|
|
355
|
+
serviceErrors: StackitServiceErrors,
|
|
327
356
|
protocol: StackitProtocol,
|
|
328
357
|
retry: Retry.Retry,
|
|
329
358
|
telemetry: TELEMETRY,
|
|
@@ -338,9 +367,10 @@ export const listUserPermissions: API.OperationMethod<
|
|
|
338
367
|
ListUserPermissionsError,
|
|
339
368
|
StackitOpContext
|
|
340
369
|
> = /*@__PURE__*/ API.make(() => ({
|
|
341
|
-
input: __S(
|
|
342
|
-
output: __S(
|
|
343
|
-
errors: [BadRequest, Forbidden
|
|
370
|
+
input: __S(9, __c1, 1) as any as S.Schema<ListUserPermissionsRequest>,
|
|
371
|
+
output: __S(12, __c1, 4) as any as S.Schema<ListUserPermissionsResponse>,
|
|
372
|
+
errors: [BadRequest, Forbidden],
|
|
373
|
+
serviceErrors: StackitServiceErrors,
|
|
344
374
|
protocol: StackitProtocol,
|
|
345
375
|
retry: Retry.Retry,
|
|
346
376
|
telemetry: TELEMETRY,
|
|
@@ -355,9 +385,10 @@ export const removeMembers: API.OperationMethod<
|
|
|
355
385
|
RemoveMembersError,
|
|
356
386
|
StackitOpContext
|
|
357
387
|
> = /*@__PURE__*/ API.make(() => ({
|
|
358
|
-
input: __S(
|
|
359
|
-
output: __S(
|
|
360
|
-
errors: [BadRequest, Forbidden
|
|
388
|
+
input: __S(16, __c2, 0) as any as S.Schema<RemoveMembersRequest>,
|
|
389
|
+
output: __S(40, __c5, 0) as any as S.Schema<MembersResponse>,
|
|
390
|
+
errors: [BadRequest, Forbidden],
|
|
391
|
+
serviceErrors: StackitServiceErrors,
|
|
361
392
|
protocol: StackitProtocol,
|
|
362
393
|
retry: Retry.Retry,
|
|
363
394
|
telemetry: TELEMETRY,
|
|
@@ -372,9 +403,10 @@ export const updateRole: API.OperationMethod<
|
|
|
372
403
|
UpdateRoleError,
|
|
373
404
|
StackitOpContext
|
|
374
405
|
> = /*@__PURE__*/ API.make(() => ({
|
|
375
|
-
input: __S(
|
|
376
|
-
output: __S(
|
|
377
|
-
errors: [BadRequest, Forbidden
|
|
406
|
+
input: __S(24, __c3, 0) as any as S.Schema<UpdateRoleRequest>,
|
|
407
|
+
output: __S(80, __c10, 0) as any as S.Schema<UpdateRoleResponse>,
|
|
408
|
+
errors: [BadRequest, Forbidden],
|
|
409
|
+
serviceErrors: StackitServiceErrors,
|
|
378
410
|
protocol: StackitProtocol,
|
|
379
411
|
retry: Retry.Retry,
|
|
380
412
|
telemetry: TELEMETRY,
|
|
@@ -383,6 +415,20 @@ export const updateRole: API.OperationMethod<
|
|
|
383
415
|
|
|
384
416
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
385
417
|
function __c0(j: number): any {
|
|
418
|
+
switch (j) {
|
|
419
|
+
case 0:
|
|
420
|
+
return S.suspend(() =>
|
|
421
|
+
S.Struct({
|
|
422
|
+
error: S.String,
|
|
423
|
+
message: S.String,
|
|
424
|
+
path: S.String,
|
|
425
|
+
status: S.Number,
|
|
426
|
+
timeStamp: S.String,
|
|
427
|
+
}),
|
|
428
|
+
).annotate({ identifier: "ErrorResponse" });
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
function __c1(j: number): any {
|
|
386
432
|
switch (j) {
|
|
387
433
|
case 0:
|
|
388
434
|
return S.Array(S.String);
|
|
@@ -392,7 +438,7 @@ function __c0(j: number): any {
|
|
|
392
438
|
email: S.String.pipe(T.Label()),
|
|
393
439
|
resource: S.optional(S.String.pipe(T.Query())),
|
|
394
440
|
resourceType: S.optional(S.String.pipe(T.Query())),
|
|
395
|
-
permissions: S.optional(__S(
|
|
441
|
+
permissions: S.optional(__S(8, __c1, 0).pipe(T.Query())),
|
|
396
442
|
}).pipe(
|
|
397
443
|
T.Http({
|
|
398
444
|
method: "GET",
|
|
@@ -405,29 +451,29 @@ function __c0(j: number): any {
|
|
|
405
451
|
case 2:
|
|
406
452
|
return S.suspend(() =>
|
|
407
453
|
S.Struct({
|
|
408
|
-
permissions: __S(
|
|
454
|
+
permissions: __S(89, __c11, 1),
|
|
409
455
|
resourceId: S.String,
|
|
410
456
|
resourceType: S.String,
|
|
411
457
|
}),
|
|
412
458
|
).annotate({ identifier: "UserPermission" });
|
|
413
459
|
case 3:
|
|
414
|
-
return S.Array(__S(
|
|
460
|
+
return S.Array(__S(10, __c1, 2));
|
|
415
461
|
case 4:
|
|
416
462
|
return S.suspend(() =>
|
|
417
463
|
S.Struct({
|
|
418
|
-
items: __S(
|
|
464
|
+
items: __S(11, __c1, 3),
|
|
419
465
|
}),
|
|
420
466
|
).annotate({ identifier: "ListUserPermissionsResponse" });
|
|
421
467
|
}
|
|
422
468
|
}
|
|
423
|
-
function
|
|
469
|
+
function __c2(j: number): any {
|
|
424
470
|
switch (j) {
|
|
425
471
|
case 0:
|
|
426
472
|
return S.suspend(() =>
|
|
427
473
|
S.Struct({
|
|
428
474
|
resourceId: S.String.pipe(T.Label()),
|
|
429
475
|
forceRemove: S.optional(S.Boolean),
|
|
430
|
-
members: __S(
|
|
476
|
+
members: __S(57, __c7, 1),
|
|
431
477
|
resourceType: S.String,
|
|
432
478
|
}).pipe(
|
|
433
479
|
T.Http({
|
|
@@ -440,7 +486,7 @@ function __c1(j: number): any {
|
|
|
440
486
|
).annotate({ identifier: "RemoveMembersRequest" });
|
|
441
487
|
}
|
|
442
488
|
}
|
|
443
|
-
function
|
|
489
|
+
function __c3(j: number): any {
|
|
444
490
|
switch (j) {
|
|
445
491
|
case 0:
|
|
446
492
|
return S.suspend(() =>
|
|
@@ -451,7 +497,7 @@ function __c2(j: number): any {
|
|
|
451
497
|
description: S.String,
|
|
452
498
|
etag: S.optional(S.String),
|
|
453
499
|
name: S.String,
|
|
454
|
-
permissions: __S(
|
|
500
|
+
permissions: __S(73, __c9, 1),
|
|
455
501
|
}).pipe(
|
|
456
502
|
T.Http({
|
|
457
503
|
method: "PUT",
|
|
@@ -463,13 +509,13 @@ function __c2(j: number): any {
|
|
|
463
509
|
).annotate({ identifier: "UpdateRoleRequest" });
|
|
464
510
|
}
|
|
465
511
|
}
|
|
466
|
-
function
|
|
512
|
+
function __c4(j: number): any {
|
|
467
513
|
switch (j) {
|
|
468
514
|
case 0:
|
|
469
515
|
return S.suspend(() =>
|
|
470
516
|
S.Struct({
|
|
471
517
|
resourceId: S.String.pipe(T.Label()),
|
|
472
|
-
members: __S(
|
|
518
|
+
members: __S(57, __c7, 1),
|
|
473
519
|
resourceType: S.String,
|
|
474
520
|
}).pipe(
|
|
475
521
|
T.Http({
|
|
@@ -482,20 +528,20 @@ function __c3(j: number): any {
|
|
|
482
528
|
).annotate({ identifier: "AddMembersRequest" });
|
|
483
529
|
}
|
|
484
530
|
}
|
|
485
|
-
function
|
|
531
|
+
function __c5(j: number): any {
|
|
486
532
|
switch (j) {
|
|
487
533
|
case 0:
|
|
488
534
|
return S.suspend(() =>
|
|
489
535
|
S.Struct({
|
|
490
|
-
members: __S(
|
|
536
|
+
members: __S(57, __c7, 1),
|
|
491
537
|
resourceId: S.String,
|
|
492
538
|
resourceType: S.String,
|
|
493
|
-
writtenAt: S.optional(__S(
|
|
539
|
+
writtenAt: S.optional(__S(48, __c6, 0)),
|
|
494
540
|
}),
|
|
495
541
|
).annotate({ identifier: "MembersResponse" });
|
|
496
542
|
}
|
|
497
543
|
}
|
|
498
|
-
function
|
|
544
|
+
function __c6(j: number): any {
|
|
499
545
|
switch (j) {
|
|
500
546
|
case 0:
|
|
501
547
|
return S.suspend(() =>
|
|
@@ -505,7 +551,7 @@ function __c5(j: number): any {
|
|
|
505
551
|
).annotate({ identifier: "Zookie" });
|
|
506
552
|
}
|
|
507
553
|
}
|
|
508
|
-
function
|
|
554
|
+
function __c7(j: number): any {
|
|
509
555
|
switch (j) {
|
|
510
556
|
case 0:
|
|
511
557
|
return S.suspend(() =>
|
|
@@ -515,10 +561,10 @@ function __c6(j: number): any {
|
|
|
515
561
|
}),
|
|
516
562
|
).annotate({ identifier: "Member" });
|
|
517
563
|
case 1:
|
|
518
|
-
return S.Array(__S(
|
|
564
|
+
return S.Array(__S(56, __c7, 0));
|
|
519
565
|
}
|
|
520
566
|
}
|
|
521
|
-
function
|
|
567
|
+
function __c8(j: number): any {
|
|
522
568
|
switch (j) {
|
|
523
569
|
case 0:
|
|
524
570
|
return S.suspend(() =>
|
|
@@ -527,7 +573,7 @@ function __c7(j: number): any {
|
|
|
527
573
|
resourceId: S.String.pipe(T.Label()),
|
|
528
574
|
description: S.String,
|
|
529
575
|
name: S.String,
|
|
530
|
-
permissions: __S(
|
|
576
|
+
permissions: __S(73, __c9, 1),
|
|
531
577
|
}).pipe(
|
|
532
578
|
T.Http({
|
|
533
579
|
method: "POST",
|
|
@@ -539,7 +585,7 @@ function __c7(j: number): any {
|
|
|
539
585
|
).annotate({ identifier: "AddRoleRequest" });
|
|
540
586
|
}
|
|
541
587
|
}
|
|
542
|
-
function
|
|
588
|
+
function __c9(j: number): any {
|
|
543
589
|
switch (j) {
|
|
544
590
|
case 0:
|
|
545
591
|
return S.suspend(() =>
|
|
@@ -548,22 +594,22 @@ function __c8(j: number): any {
|
|
|
548
594
|
}),
|
|
549
595
|
).annotate({ identifier: "PermissionRequest" });
|
|
550
596
|
case 1:
|
|
551
|
-
return S.Array(__S(
|
|
597
|
+
return S.Array(__S(72, __c9, 0));
|
|
552
598
|
}
|
|
553
599
|
}
|
|
554
|
-
function
|
|
600
|
+
function __c10(j: number): any {
|
|
555
601
|
switch (j) {
|
|
556
602
|
case 0:
|
|
557
603
|
return S.suspend(() =>
|
|
558
604
|
S.Struct({
|
|
559
605
|
resourceId: S.String,
|
|
560
606
|
resourceType: S.String,
|
|
561
|
-
role: __S(
|
|
607
|
+
role: __S(96, __c12, 0),
|
|
562
608
|
}),
|
|
563
609
|
).annotate({ identifier: "AddCustomRoleResponse" });
|
|
564
610
|
}
|
|
565
611
|
}
|
|
566
|
-
function
|
|
612
|
+
function __c11(j: number): any {
|
|
567
613
|
switch (j) {
|
|
568
614
|
case 0:
|
|
569
615
|
return S.suspend(() =>
|
|
@@ -573,10 +619,10 @@ function __c10(j: number): any {
|
|
|
573
619
|
}),
|
|
574
620
|
).annotate({ identifier: "Permission" });
|
|
575
621
|
case 1:
|
|
576
|
-
return S.Array(__S(
|
|
622
|
+
return S.Array(__S(88, __c11, 0));
|
|
577
623
|
}
|
|
578
624
|
}
|
|
579
|
-
function
|
|
625
|
+
function __c12(j: number): any {
|
|
580
626
|
switch (j) {
|
|
581
627
|
case 0:
|
|
582
628
|
return S.suspend(() =>
|
|
@@ -585,12 +631,12 @@ function __c11(j: number): any {
|
|
|
585
631
|
etag: S.optional(S.String),
|
|
586
632
|
id: S.optional(S.String),
|
|
587
633
|
name: S.String,
|
|
588
|
-
permissions: __S(
|
|
634
|
+
permissions: __S(89, __c11, 1),
|
|
589
635
|
}),
|
|
590
636
|
).annotate({ identifier: "Role" });
|
|
591
637
|
}
|
|
592
638
|
}
|
|
593
|
-
function
|
|
639
|
+
function __c13(j: number): any {
|
|
594
640
|
switch (j) {
|
|
595
641
|
case 0:
|
|
596
642
|
return S.suspend(() =>
|
|
@@ -611,12 +657,12 @@ function __c12(j: number): any {
|
|
|
611
657
|
case 1:
|
|
612
658
|
return S.suspend(() =>
|
|
613
659
|
S.Struct({
|
|
614
|
-
writtenAt: __S(
|
|
660
|
+
writtenAt: __S(48, __c6, 0),
|
|
615
661
|
}),
|
|
616
662
|
).annotate({ identifier: "DeleteRoleResponse" });
|
|
617
663
|
}
|
|
618
664
|
}
|
|
619
|
-
function
|
|
665
|
+
function __c14(j: number): any {
|
|
620
666
|
switch (j) {
|
|
621
667
|
case 0:
|
|
622
668
|
return S.suspend(() =>
|
|
@@ -635,7 +681,7 @@ function __c13(j: number): any {
|
|
|
635
681
|
).annotate({ identifier: "GetRoleRequest" });
|
|
636
682
|
}
|
|
637
683
|
}
|
|
638
|
-
function
|
|
684
|
+
function __c15(j: number): any {
|
|
639
685
|
switch (j) {
|
|
640
686
|
case 0:
|
|
641
687
|
return S.suspend(() =>
|
|
@@ -655,14 +701,14 @@ function __c14(j: number): any {
|
|
|
655
701
|
case 1:
|
|
656
702
|
return S.suspend(() =>
|
|
657
703
|
S.Struct({
|
|
658
|
-
members: __S(
|
|
704
|
+
members: __S(57, __c7, 1),
|
|
659
705
|
resourceId: S.String,
|
|
660
706
|
resourceType: S.String,
|
|
661
707
|
}),
|
|
662
708
|
).annotate({ identifier: "ListMembersResponse" });
|
|
663
709
|
}
|
|
664
710
|
}
|
|
665
|
-
function
|
|
711
|
+
function __c16(j: number): any {
|
|
666
712
|
switch (j) {
|
|
667
713
|
case 0:
|
|
668
714
|
return S.suspend(() =>
|
|
@@ -680,12 +726,12 @@ function __c15(j: number): any {
|
|
|
680
726
|
case 1:
|
|
681
727
|
return S.suspend(() =>
|
|
682
728
|
S.Struct({
|
|
683
|
-
permissions: __S(
|
|
729
|
+
permissions: __S(89, __c11, 1),
|
|
684
730
|
}),
|
|
685
731
|
).annotate({ identifier: "ListPermissionsResponse" });
|
|
686
732
|
}
|
|
687
733
|
}
|
|
688
|
-
function
|
|
734
|
+
function __c17(j: number): any {
|
|
689
735
|
switch (j) {
|
|
690
736
|
case 0:
|
|
691
737
|
return S.suspend(() =>
|
|
@@ -702,18 +748,18 @@ function __c16(j: number): any {
|
|
|
702
748
|
),
|
|
703
749
|
).annotate({ identifier: "ListRolesRequest" });
|
|
704
750
|
case 1:
|
|
705
|
-
return S.Array(__S(
|
|
751
|
+
return S.Array(__S(96, __c12, 0));
|
|
706
752
|
case 2:
|
|
707
753
|
return S.suspend(() =>
|
|
708
754
|
S.Struct({
|
|
709
755
|
resourceId: S.String,
|
|
710
756
|
resourceType: S.String,
|
|
711
|
-
roles: __S(
|
|
757
|
+
roles: __S(137, __c17, 1),
|
|
712
758
|
}),
|
|
713
759
|
).annotate({ identifier: "RolesResponse" });
|
|
714
760
|
}
|
|
715
761
|
}
|
|
716
|
-
function
|
|
762
|
+
function __c18(j: number): any {
|
|
717
763
|
switch (j) {
|
|
718
764
|
case 0:
|
|
719
765
|
return S.suspend(() =>
|
|
@@ -741,11 +787,11 @@ function __c17(j: number): any {
|
|
|
741
787
|
}),
|
|
742
788
|
).annotate({ identifier: "UserMembership" });
|
|
743
789
|
case 2:
|
|
744
|
-
return S.Array(__S(
|
|
790
|
+
return S.Array(__S(145, __c18, 1));
|
|
745
791
|
case 3:
|
|
746
792
|
return S.suspend(() =>
|
|
747
793
|
S.Struct({
|
|
748
|
-
items: __S(
|
|
794
|
+
items: __S(146, __c18, 2),
|
|
749
795
|
}),
|
|
750
796
|
).annotate({ identifier: "ListUserMembershipsResponse" });
|
|
751
797
|
}
|