@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,703 @@
|
|
|
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 API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as C from "@distilled.cloud/core/category";
|
|
5
|
+
import * as T from "../traits.js";
|
|
6
|
+
import { StackitProtocol, } from "../protocol.js";
|
|
7
|
+
import { UnknownStackitError } from "../errors.js";
|
|
8
|
+
import * as Retry from "../retry.js";
|
|
9
|
+
export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
10
|
+
/*@__PURE__*/ S.TaggedError()("BadRequest", {
|
|
11
|
+
code: S.Number,
|
|
12
|
+
message: S.String,
|
|
13
|
+
}).pipe(C.withBadRequestError), [{ status: 400 }]) {
|
|
14
|
+
}
|
|
15
|
+
export class Conflict extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
16
|
+
/*@__PURE__*/ S.TaggedError()("Conflict", {
|
|
17
|
+
code: S.Number,
|
|
18
|
+
message: S.String,
|
|
19
|
+
}).pipe(C.withConflictError), [{ status: 409 }]) {
|
|
20
|
+
}
|
|
21
|
+
export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
22
|
+
/*@__PURE__*/ S.TaggedError()("Forbidden", {
|
|
23
|
+
code: S.Number,
|
|
24
|
+
message: S.String,
|
|
25
|
+
}).pipe(C.withAuthError), [{ status: 403 }]) {
|
|
26
|
+
}
|
|
27
|
+
export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
28
|
+
/*@__PURE__*/ S.TaggedError()("NotFound", {
|
|
29
|
+
code: S.Number,
|
|
30
|
+
message: S.String,
|
|
31
|
+
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
32
|
+
}
|
|
33
|
+
export const CreateKeyRequestRegionId = /*@__PURE__*/ S.String;
|
|
34
|
+
export const AccessScope = /*@__PURE__*/ S.String;
|
|
35
|
+
export const Algorithm = /*@__PURE__*/ S.String;
|
|
36
|
+
export const Purpose = /*@__PURE__*/ S.String;
|
|
37
|
+
export const CreateKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
38
|
+
projectId: S.String.pipe(T.Label()),
|
|
39
|
+
regionId: CreateKeyRequestRegionId.pipe(T.Label()),
|
|
40
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
41
|
+
access_scope: S.optional(AccessScope),
|
|
42
|
+
algorithm: Algorithm,
|
|
43
|
+
description: S.optional(S.String),
|
|
44
|
+
displayName: S.String,
|
|
45
|
+
importOnly: S.optional(S.Boolean),
|
|
46
|
+
protection: S.String,
|
|
47
|
+
purpose: Purpose,
|
|
48
|
+
}).pipe(T.Http({
|
|
49
|
+
method: "POST",
|
|
50
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys",
|
|
51
|
+
code: 200,
|
|
52
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
53
|
+
}))).annotate({
|
|
54
|
+
identifier: "CreateKeyRequest",
|
|
55
|
+
});
|
|
56
|
+
export const KeyState = /*@__PURE__*/ S.String;
|
|
57
|
+
export const Key = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
58
|
+
access_scope: AccessScope,
|
|
59
|
+
algorithm: Algorithm,
|
|
60
|
+
createdAt: S.String,
|
|
61
|
+
deletionDate: S.optional(S.String),
|
|
62
|
+
description: S.optional(S.String),
|
|
63
|
+
displayName: S.String,
|
|
64
|
+
id: S.String,
|
|
65
|
+
importOnly: S.Boolean,
|
|
66
|
+
keyRingId: S.String,
|
|
67
|
+
protection: S.String,
|
|
68
|
+
purpose: Purpose,
|
|
69
|
+
state: KeyState,
|
|
70
|
+
})).annotate({ identifier: "Key" });
|
|
71
|
+
export const CreateKeyRingRequestRegionId = /*@__PURE__*/ S.String;
|
|
72
|
+
export const CreateKeyRingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
73
|
+
projectId: S.String.pipe(T.Label()),
|
|
74
|
+
regionId: CreateKeyRingRequestRegionId.pipe(T.Label()),
|
|
75
|
+
description: S.optional(S.String),
|
|
76
|
+
displayName: S.String,
|
|
77
|
+
}).pipe(T.Http({
|
|
78
|
+
method: "POST",
|
|
79
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings",
|
|
80
|
+
code: 200,
|
|
81
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
82
|
+
}))).annotate({
|
|
83
|
+
identifier: "CreateKeyRingRequest",
|
|
84
|
+
});
|
|
85
|
+
export const KeyRingState = /*@__PURE__*/ S.String;
|
|
86
|
+
export const KeyRing = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
87
|
+
createdAt: S.String,
|
|
88
|
+
description: S.optional(S.String),
|
|
89
|
+
displayName: S.String,
|
|
90
|
+
id: S.String,
|
|
91
|
+
state: KeyRingState,
|
|
92
|
+
})).annotate({ identifier: "KeyRing" });
|
|
93
|
+
export const CreateWrappingKeyRequestRegionId = /*@__PURE__*/ S.String;
|
|
94
|
+
export const WrappingAlgorithm = /*@__PURE__*/ S.String;
|
|
95
|
+
export const WrappingPurpose = /*@__PURE__*/ S.String;
|
|
96
|
+
export const CreateWrappingKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
97
|
+
projectId: S.String.pipe(T.Label()),
|
|
98
|
+
regionId: CreateWrappingKeyRequestRegionId.pipe(T.Label()),
|
|
99
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
100
|
+
access_scope: S.optional(AccessScope),
|
|
101
|
+
algorithm: WrappingAlgorithm,
|
|
102
|
+
description: S.optional(S.String),
|
|
103
|
+
displayName: S.String,
|
|
104
|
+
protection: S.String,
|
|
105
|
+
purpose: WrappingPurpose,
|
|
106
|
+
}).pipe(T.Http({
|
|
107
|
+
method: "POST",
|
|
108
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys",
|
|
109
|
+
code: 200,
|
|
110
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
111
|
+
}))).annotate({
|
|
112
|
+
identifier: "CreateWrappingKeyRequest",
|
|
113
|
+
});
|
|
114
|
+
export const WrappingKeyState = /*@__PURE__*/ S.String;
|
|
115
|
+
export const WrappingKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
116
|
+
access_scope: AccessScope,
|
|
117
|
+
algorithm: WrappingAlgorithm,
|
|
118
|
+
createdAt: S.String,
|
|
119
|
+
description: S.optional(S.String),
|
|
120
|
+
displayName: S.String,
|
|
121
|
+
expiresAt: S.String,
|
|
122
|
+
id: S.String,
|
|
123
|
+
keyRingId: S.String,
|
|
124
|
+
protection: S.String,
|
|
125
|
+
publicKey: S.optional(S.String),
|
|
126
|
+
purpose: WrappingPurpose,
|
|
127
|
+
state: WrappingKeyState,
|
|
128
|
+
})).annotate({ identifier: "WrappingKey" });
|
|
129
|
+
export const DecryptRequestRegionId = /*@__PURE__*/ S.String;
|
|
130
|
+
export const DecryptRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
131
|
+
projectId: S.String.pipe(T.Label()),
|
|
132
|
+
regionId: DecryptRequestRegionId.pipe(T.Label()),
|
|
133
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
134
|
+
keyId: S.String.pipe(T.Label()),
|
|
135
|
+
versionNumber: S.Number.pipe(T.Label()),
|
|
136
|
+
data: S.String,
|
|
137
|
+
}).pipe(T.Http({
|
|
138
|
+
method: "POST",
|
|
139
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/decrypt",
|
|
140
|
+
code: 200,
|
|
141
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
142
|
+
}))).annotate({ identifier: "DecryptRequest" });
|
|
143
|
+
export const DecryptedData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
144
|
+
data: S.String,
|
|
145
|
+
})).annotate({ identifier: "DecryptedData" });
|
|
146
|
+
export const DeleteKeyRequestRegionId = /*@__PURE__*/ S.String;
|
|
147
|
+
export const DeleteKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
148
|
+
projectId: S.String.pipe(T.Label()),
|
|
149
|
+
regionId: DeleteKeyRequestRegionId.pipe(T.Label()),
|
|
150
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
151
|
+
keyId: S.String.pipe(T.Label()),
|
|
152
|
+
}).pipe(T.Http({
|
|
153
|
+
method: "DELETE",
|
|
154
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}",
|
|
155
|
+
code: 200,
|
|
156
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
157
|
+
}))).annotate({
|
|
158
|
+
identifier: "DeleteKeyRequest",
|
|
159
|
+
});
|
|
160
|
+
export const DeleteKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
161
|
+
identifier: "DeleteKeyResponse",
|
|
162
|
+
});
|
|
163
|
+
export const DeleteKeyRingRequestRegionId = /*@__PURE__*/ S.String;
|
|
164
|
+
export const DeleteKeyRingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
165
|
+
projectId: S.String.pipe(T.Label()),
|
|
166
|
+
regionId: DeleteKeyRingRequestRegionId.pipe(T.Label()),
|
|
167
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
168
|
+
}).pipe(T.Http({
|
|
169
|
+
method: "DELETE",
|
|
170
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}",
|
|
171
|
+
code: 200,
|
|
172
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
173
|
+
}))).annotate({
|
|
174
|
+
identifier: "DeleteKeyRingRequest",
|
|
175
|
+
});
|
|
176
|
+
export const DeleteKeyRingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
177
|
+
identifier: "DeleteKeyRingResponse",
|
|
178
|
+
});
|
|
179
|
+
export const DeleteWrappingKeyRequestRegionId = /*@__PURE__*/ S.String;
|
|
180
|
+
export const DeleteWrappingKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
181
|
+
projectId: S.String.pipe(T.Label()),
|
|
182
|
+
regionId: DeleteWrappingKeyRequestRegionId.pipe(T.Label()),
|
|
183
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
184
|
+
wrappingKeyId: S.String.pipe(T.Label()),
|
|
185
|
+
}).pipe(T.Http({
|
|
186
|
+
method: "DELETE",
|
|
187
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}",
|
|
188
|
+
code: 200,
|
|
189
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
190
|
+
}))).annotate({
|
|
191
|
+
identifier: "DeleteWrappingKeyRequest",
|
|
192
|
+
});
|
|
193
|
+
export const DeleteWrappingKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
194
|
+
identifier: "DeleteWrappingKeyResponse",
|
|
195
|
+
});
|
|
196
|
+
export const DestroyVersionRequestRegionId = /*@__PURE__*/ S.String;
|
|
197
|
+
export const DestroyVersionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
198
|
+
projectId: S.String.pipe(T.Label()),
|
|
199
|
+
regionId: DestroyVersionRequestRegionId.pipe(T.Label()),
|
|
200
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
201
|
+
keyId: S.String.pipe(T.Label()),
|
|
202
|
+
versionNumber: S.Number.pipe(T.Label()),
|
|
203
|
+
}).pipe(T.Http({
|
|
204
|
+
method: "POST",
|
|
205
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/destroy",
|
|
206
|
+
code: 200,
|
|
207
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
208
|
+
}))).annotate({
|
|
209
|
+
identifier: "DestroyVersionRequest",
|
|
210
|
+
});
|
|
211
|
+
export const DestroyVersionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
212
|
+
identifier: "DestroyVersionResponse",
|
|
213
|
+
});
|
|
214
|
+
export const DisableVersionRequestRegionId = /*@__PURE__*/ S.String;
|
|
215
|
+
export const DisableVersionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
216
|
+
projectId: S.String.pipe(T.Label()),
|
|
217
|
+
regionId: DisableVersionRequestRegionId.pipe(T.Label()),
|
|
218
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
219
|
+
keyId: S.String.pipe(T.Label()),
|
|
220
|
+
versionNumber: S.Number.pipe(T.Label()),
|
|
221
|
+
}).pipe(T.Http({
|
|
222
|
+
method: "POST",
|
|
223
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/disable",
|
|
224
|
+
code: 200,
|
|
225
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
226
|
+
}))).annotate({
|
|
227
|
+
identifier: "DisableVersionRequest",
|
|
228
|
+
});
|
|
229
|
+
export const DisableVersionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
230
|
+
identifier: "DisableVersionResponse",
|
|
231
|
+
});
|
|
232
|
+
export const EnableVersionRequestRegionId = /*@__PURE__*/ S.String;
|
|
233
|
+
export const EnableVersionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
234
|
+
projectId: S.String.pipe(T.Label()),
|
|
235
|
+
regionId: EnableVersionRequestRegionId.pipe(T.Label()),
|
|
236
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
237
|
+
keyId: S.String.pipe(T.Label()),
|
|
238
|
+
versionNumber: S.Number.pipe(T.Label()),
|
|
239
|
+
}).pipe(T.Http({
|
|
240
|
+
method: "POST",
|
|
241
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/enable",
|
|
242
|
+
code: 200,
|
|
243
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
244
|
+
}))).annotate({
|
|
245
|
+
identifier: "EnableVersionRequest",
|
|
246
|
+
});
|
|
247
|
+
export const EnableVersionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
248
|
+
identifier: "EnableVersionResponse",
|
|
249
|
+
});
|
|
250
|
+
export const EncryptRequestRegionId = /*@__PURE__*/ S.String;
|
|
251
|
+
export const EncryptRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
252
|
+
projectId: S.String.pipe(T.Label()),
|
|
253
|
+
regionId: EncryptRequestRegionId.pipe(T.Label()),
|
|
254
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
255
|
+
keyId: S.String.pipe(T.Label()),
|
|
256
|
+
versionNumber: S.Number.pipe(T.Label()),
|
|
257
|
+
data: S.String,
|
|
258
|
+
}).pipe(T.Http({
|
|
259
|
+
method: "POST",
|
|
260
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/encrypt",
|
|
261
|
+
code: 200,
|
|
262
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
263
|
+
}))).annotate({ identifier: "EncryptRequest" });
|
|
264
|
+
export const EncryptedData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
265
|
+
data: S.String,
|
|
266
|
+
})).annotate({ identifier: "EncryptedData" });
|
|
267
|
+
export const GetKeyRequestRegionId = /*@__PURE__*/ S.String;
|
|
268
|
+
export const GetKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
269
|
+
projectId: S.String.pipe(T.Label()),
|
|
270
|
+
regionId: GetKeyRequestRegionId.pipe(T.Label()),
|
|
271
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
272
|
+
keyId: S.String.pipe(T.Label()),
|
|
273
|
+
}).pipe(T.Http({
|
|
274
|
+
method: "GET",
|
|
275
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}",
|
|
276
|
+
code: 200,
|
|
277
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
278
|
+
}))).annotate({ identifier: "GetKeyRequest" });
|
|
279
|
+
export const GetKeyRingRequestRegionId = /*@__PURE__*/ S.String;
|
|
280
|
+
export const GetKeyRingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
281
|
+
projectId: S.String.pipe(T.Label()),
|
|
282
|
+
regionId: GetKeyRingRequestRegionId.pipe(T.Label()),
|
|
283
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
284
|
+
}).pipe(T.Http({
|
|
285
|
+
method: "GET",
|
|
286
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}",
|
|
287
|
+
code: 200,
|
|
288
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
289
|
+
}))).annotate({
|
|
290
|
+
identifier: "GetKeyRingRequest",
|
|
291
|
+
});
|
|
292
|
+
export const GetVersionRequestRegionId = /*@__PURE__*/ S.String;
|
|
293
|
+
export const GetVersionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
294
|
+
projectId: S.String.pipe(T.Label()),
|
|
295
|
+
regionId: GetVersionRequestRegionId.pipe(T.Label()),
|
|
296
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
297
|
+
keyId: S.String.pipe(T.Label()),
|
|
298
|
+
versionNumber: S.Number.pipe(T.Label()),
|
|
299
|
+
}).pipe(T.Http({
|
|
300
|
+
method: "GET",
|
|
301
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}",
|
|
302
|
+
code: 200,
|
|
303
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
304
|
+
}))).annotate({
|
|
305
|
+
identifier: "GetVersionRequest",
|
|
306
|
+
});
|
|
307
|
+
export const VersionState = /*@__PURE__*/ S.String;
|
|
308
|
+
export const Version = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
309
|
+
createdAt: S.String,
|
|
310
|
+
destroyDate: S.optional(S.String),
|
|
311
|
+
disabled: S.Boolean,
|
|
312
|
+
keyId: S.String,
|
|
313
|
+
keyRingId: S.String,
|
|
314
|
+
number: S.Number,
|
|
315
|
+
publicKey: S.optional(S.String),
|
|
316
|
+
state: VersionState,
|
|
317
|
+
})).annotate({ identifier: "Version" });
|
|
318
|
+
export const GetWrappingKeyRequestRegionId = /*@__PURE__*/ S.String;
|
|
319
|
+
export const GetWrappingKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
320
|
+
projectId: S.String.pipe(T.Label()),
|
|
321
|
+
regionId: GetWrappingKeyRequestRegionId.pipe(T.Label()),
|
|
322
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
323
|
+
wrappingKeyId: S.String.pipe(T.Label()),
|
|
324
|
+
}).pipe(T.Http({
|
|
325
|
+
method: "GET",
|
|
326
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}",
|
|
327
|
+
code: 200,
|
|
328
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
329
|
+
}))).annotate({
|
|
330
|
+
identifier: "GetWrappingKeyRequest",
|
|
331
|
+
});
|
|
332
|
+
export const ImportKeyRequestRegionId = /*@__PURE__*/ S.String;
|
|
333
|
+
export const ImportKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
334
|
+
projectId: S.String.pipe(T.Label()),
|
|
335
|
+
regionId: ImportKeyRequestRegionId.pipe(T.Label()),
|
|
336
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
337
|
+
keyId: S.String.pipe(T.Label()),
|
|
338
|
+
wrappedKey: S.String,
|
|
339
|
+
wrappingKeyId: S.String,
|
|
340
|
+
}).pipe(T.Http({
|
|
341
|
+
method: "POST",
|
|
342
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/import",
|
|
343
|
+
code: 200,
|
|
344
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
345
|
+
}))).annotate({
|
|
346
|
+
identifier: "ImportKeyRequest",
|
|
347
|
+
});
|
|
348
|
+
export const ListKeyRingsRequestRegionId = /*@__PURE__*/ S.String;
|
|
349
|
+
export const ListKeyRingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
350
|
+
projectId: S.String.pipe(T.Label()),
|
|
351
|
+
regionId: ListKeyRingsRequestRegionId.pipe(T.Label()),
|
|
352
|
+
}).pipe(T.Http({
|
|
353
|
+
method: "GET",
|
|
354
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings",
|
|
355
|
+
code: 200,
|
|
356
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
357
|
+
}))).annotate({
|
|
358
|
+
identifier: "ListKeyRingsRequest",
|
|
359
|
+
});
|
|
360
|
+
export const KeyRingListKeyRingsList = /*@__PURE__*/ S.Array(KeyRing);
|
|
361
|
+
export const KeyRingList = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
362
|
+
keyRings: KeyRingListKeyRingsList,
|
|
363
|
+
})).annotate({ identifier: "KeyRingList" });
|
|
364
|
+
export const ListKeysRequestRegionId = /*@__PURE__*/ S.String;
|
|
365
|
+
export const ListKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
366
|
+
projectId: S.String.pipe(T.Label()),
|
|
367
|
+
regionId: ListKeysRequestRegionId.pipe(T.Label()),
|
|
368
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
369
|
+
}).pipe(T.Http({
|
|
370
|
+
method: "GET",
|
|
371
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys",
|
|
372
|
+
code: 200,
|
|
373
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
374
|
+
}))).annotate({
|
|
375
|
+
identifier: "ListKeysRequest",
|
|
376
|
+
});
|
|
377
|
+
export const KeyListKeysList = /*@__PURE__*/ S.Array(Key);
|
|
378
|
+
export const KeyList = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
379
|
+
keys: KeyListKeysList,
|
|
380
|
+
})).annotate({ identifier: "KeyList" });
|
|
381
|
+
export const ListVersionsRequestRegionId = /*@__PURE__*/ S.String;
|
|
382
|
+
export const ListVersionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
383
|
+
projectId: S.String.pipe(T.Label()),
|
|
384
|
+
regionId: ListVersionsRequestRegionId.pipe(T.Label()),
|
|
385
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
386
|
+
keyId: S.String.pipe(T.Label()),
|
|
387
|
+
}).pipe(T.Http({
|
|
388
|
+
method: "GET",
|
|
389
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions",
|
|
390
|
+
code: 200,
|
|
391
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
392
|
+
}))).annotate({
|
|
393
|
+
identifier: "ListVersionsRequest",
|
|
394
|
+
});
|
|
395
|
+
export const VersionListVersionsList = /*@__PURE__*/ S.Array(Version);
|
|
396
|
+
export const VersionList = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
397
|
+
versions: VersionListVersionsList,
|
|
398
|
+
})).annotate({ identifier: "VersionList" });
|
|
399
|
+
export const ListWrappingKeysRequestRegionId = /*@__PURE__*/ S.String;
|
|
400
|
+
export const ListWrappingKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
401
|
+
projectId: S.String.pipe(T.Label()),
|
|
402
|
+
regionId: ListWrappingKeysRequestRegionId.pipe(T.Label()),
|
|
403
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
404
|
+
}).pipe(T.Http({
|
|
405
|
+
method: "GET",
|
|
406
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys",
|
|
407
|
+
code: 200,
|
|
408
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
409
|
+
}))).annotate({
|
|
410
|
+
identifier: "ListWrappingKeysRequest",
|
|
411
|
+
});
|
|
412
|
+
export const WrappingKeyListWrappingKeysList = /*@__PURE__*/ S.Array(WrappingKey);
|
|
413
|
+
export const WrappingKeyList = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
414
|
+
wrappingKeys: WrappingKeyListWrappingKeysList,
|
|
415
|
+
})).annotate({
|
|
416
|
+
identifier: "WrappingKeyList",
|
|
417
|
+
});
|
|
418
|
+
export const RestoreKeyRequestRegionId = /*@__PURE__*/ S.String;
|
|
419
|
+
export const RestoreKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
420
|
+
projectId: S.String.pipe(T.Label()),
|
|
421
|
+
regionId: RestoreKeyRequestRegionId.pipe(T.Label()),
|
|
422
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
423
|
+
keyId: S.String.pipe(T.Label()),
|
|
424
|
+
}).pipe(T.Http({
|
|
425
|
+
method: "POST",
|
|
426
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/restore",
|
|
427
|
+
code: 200,
|
|
428
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
429
|
+
}))).annotate({
|
|
430
|
+
identifier: "RestoreKeyRequest",
|
|
431
|
+
});
|
|
432
|
+
export const RestoreKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
433
|
+
identifier: "RestoreKeyResponse",
|
|
434
|
+
});
|
|
435
|
+
export const RestoreVersionRequestRegionId = /*@__PURE__*/ S.String;
|
|
436
|
+
export const RestoreVersionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
437
|
+
projectId: S.String.pipe(T.Label()),
|
|
438
|
+
regionId: RestoreVersionRequestRegionId.pipe(T.Label()),
|
|
439
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
440
|
+
keyId: S.String.pipe(T.Label()),
|
|
441
|
+
versionNumber: S.Number.pipe(T.Label()),
|
|
442
|
+
}).pipe(T.Http({
|
|
443
|
+
method: "POST",
|
|
444
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/restore",
|
|
445
|
+
code: 200,
|
|
446
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
447
|
+
}))).annotate({
|
|
448
|
+
identifier: "RestoreVersionRequest",
|
|
449
|
+
});
|
|
450
|
+
export const RestoreVersionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
451
|
+
identifier: "RestoreVersionResponse",
|
|
452
|
+
});
|
|
453
|
+
export const RotateKeyRequestRegionId = /*@__PURE__*/ S.String;
|
|
454
|
+
export const RotateKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
455
|
+
projectId: S.String.pipe(T.Label()),
|
|
456
|
+
regionId: RotateKeyRequestRegionId.pipe(T.Label()),
|
|
457
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
458
|
+
keyId: S.String.pipe(T.Label()),
|
|
459
|
+
}).pipe(T.Http({
|
|
460
|
+
method: "POST",
|
|
461
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/rotate",
|
|
462
|
+
code: 200,
|
|
463
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
464
|
+
}))).annotate({
|
|
465
|
+
identifier: "RotateKeyRequest",
|
|
466
|
+
});
|
|
467
|
+
export const SignRequestRegionId = /*@__PURE__*/ S.String;
|
|
468
|
+
export const SignRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
469
|
+
projectId: S.String.pipe(T.Label()),
|
|
470
|
+
regionId: SignRequestRegionId.pipe(T.Label()),
|
|
471
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
472
|
+
keyId: S.String.pipe(T.Label()),
|
|
473
|
+
versionNumber: S.Number.pipe(T.Label()),
|
|
474
|
+
data: S.String,
|
|
475
|
+
}).pipe(T.Http({
|
|
476
|
+
method: "POST",
|
|
477
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/sign",
|
|
478
|
+
code: 200,
|
|
479
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
480
|
+
}))).annotate({ identifier: "SignRequest" });
|
|
481
|
+
export const SignedData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
482
|
+
data: S.String,
|
|
483
|
+
signature: S.String,
|
|
484
|
+
})).annotate({ identifier: "SignedData" });
|
|
485
|
+
export const VerifyRequestRegionId = /*@__PURE__*/ S.String;
|
|
486
|
+
export const VerifyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
487
|
+
projectId: S.String.pipe(T.Label()),
|
|
488
|
+
regionId: VerifyRequestRegionId.pipe(T.Label()),
|
|
489
|
+
keyRingId: S.String.pipe(T.Label()),
|
|
490
|
+
keyId: S.String.pipe(T.Label()),
|
|
491
|
+
versionNumber: S.Number.pipe(T.Label()),
|
|
492
|
+
data: S.String,
|
|
493
|
+
signature: S.String,
|
|
494
|
+
}).pipe(T.Http({
|
|
495
|
+
method: "POST",
|
|
496
|
+
uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/verify",
|
|
497
|
+
code: 200,
|
|
498
|
+
baseUrl: "https://kms.api.stackit.cloud",
|
|
499
|
+
}))).annotate({ identifier: "VerifyRequest" });
|
|
500
|
+
export const VerifiedData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
501
|
+
valid: S.Boolean,
|
|
502
|
+
})).annotate({ identifier: "VerifiedData" });
|
|
503
|
+
/** Create key Creates a new key for the given key ring. */
|
|
504
|
+
export const createKey = /*@__PURE__*/ API.make(() => ({
|
|
505
|
+
input: CreateKeyRequest,
|
|
506
|
+
output: Key,
|
|
507
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
508
|
+
protocol: StackitProtocol,
|
|
509
|
+
retry: Retry.Retry,
|
|
510
|
+
}));
|
|
511
|
+
/** Create key ring Creates a new key ring within the project. */
|
|
512
|
+
export const createKeyRing = /*@__PURE__*/ API.make(() => ({
|
|
513
|
+
input: CreateKeyRingRequest,
|
|
514
|
+
output: KeyRing,
|
|
515
|
+
errors: [BadRequest, UnknownStackitError],
|
|
516
|
+
protocol: StackitProtocol,
|
|
517
|
+
retry: Retry.Retry,
|
|
518
|
+
}));
|
|
519
|
+
/** Create wrapping key Creates a new wrapping key for the given key ring. */
|
|
520
|
+
export const createWrappingKey = /*@__PURE__*/ API.make(() => ({
|
|
521
|
+
input: CreateWrappingKeyRequest,
|
|
522
|
+
output: WrappingKey,
|
|
523
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
524
|
+
protocol: StackitProtocol,
|
|
525
|
+
retry: Retry.Retry,
|
|
526
|
+
}));
|
|
527
|
+
/** Decrypt Decrypts data using the given key version. */
|
|
528
|
+
export const decrypt = /*@__PURE__*/ API.make(() => ({
|
|
529
|
+
input: DecryptRequest,
|
|
530
|
+
output: DecryptedData,
|
|
531
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
532
|
+
protocol: StackitProtocol,
|
|
533
|
+
retry: Retry.Retry,
|
|
534
|
+
}));
|
|
535
|
+
/** Delete key Schedules the deletion of the given key */
|
|
536
|
+
export const deleteKey = /*@__PURE__*/ API.make(() => ({
|
|
537
|
+
input: DeleteKeyRequest,
|
|
538
|
+
output: DeleteKeyResponse,
|
|
539
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
540
|
+
protocol: StackitProtocol,
|
|
541
|
+
retry: Retry.Retry,
|
|
542
|
+
}));
|
|
543
|
+
/** Delete keyring Deletes the given key ring if it is empty */
|
|
544
|
+
export const deleteKeyRing = /*@__PURE__*/ API.make(() => ({
|
|
545
|
+
input: DeleteKeyRingRequest,
|
|
546
|
+
output: DeleteKeyRingResponse,
|
|
547
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
548
|
+
protocol: StackitProtocol,
|
|
549
|
+
retry: Retry.Retry,
|
|
550
|
+
}));
|
|
551
|
+
/** Delete wrapping key Deletes the given wrapping key */
|
|
552
|
+
export const deleteWrappingKey = /*@__PURE__*/ API.make(() => ({
|
|
553
|
+
input: DeleteWrappingKeyRequest,
|
|
554
|
+
output: DeleteWrappingKeyResponse,
|
|
555
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
556
|
+
protocol: StackitProtocol,
|
|
557
|
+
retry: Retry.Retry,
|
|
558
|
+
}));
|
|
559
|
+
/** Destroy version Removes the key material of a version permanently. */
|
|
560
|
+
export const destroyVersion = /*@__PURE__*/ API.make(() => ({
|
|
561
|
+
input: DestroyVersionRequest,
|
|
562
|
+
output: DestroyVersionResponse,
|
|
563
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
564
|
+
protocol: StackitProtocol,
|
|
565
|
+
retry: Retry.Retry,
|
|
566
|
+
}));
|
|
567
|
+
/** Disable version Disables the given version. */
|
|
568
|
+
export const disableVersion = /*@__PURE__*/ API.make(() => ({
|
|
569
|
+
input: DisableVersionRequest,
|
|
570
|
+
output: DisableVersionResponse,
|
|
571
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
572
|
+
protocol: StackitProtocol,
|
|
573
|
+
retry: Retry.Retry,
|
|
574
|
+
}));
|
|
575
|
+
/** Enable version Enables the given version. */
|
|
576
|
+
export const enableVersion = /*@__PURE__*/ API.make(() => ({
|
|
577
|
+
input: EnableVersionRequest,
|
|
578
|
+
output: EnableVersionResponse,
|
|
579
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
580
|
+
protocol: StackitProtocol,
|
|
581
|
+
retry: Retry.Retry,
|
|
582
|
+
}));
|
|
583
|
+
/** Encrypt Encrypts data using the given key version. */
|
|
584
|
+
export const encrypt = /*@__PURE__*/ API.make(() => ({
|
|
585
|
+
input: EncryptRequest,
|
|
586
|
+
output: EncryptedData,
|
|
587
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
588
|
+
protocol: StackitProtocol,
|
|
589
|
+
retry: Retry.Retry,
|
|
590
|
+
}));
|
|
591
|
+
/** Get key Returns the details for the given key. */
|
|
592
|
+
export const getKey = /*@__PURE__*/ API.make(() => ({
|
|
593
|
+
input: GetKeyRequest,
|
|
594
|
+
output: Key,
|
|
595
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
596
|
+
protocol: StackitProtocol,
|
|
597
|
+
retry: Retry.Retry,
|
|
598
|
+
}));
|
|
599
|
+
/** Get key ring Returns the details for the given key ring. */
|
|
600
|
+
export const getKeyRing = /*@__PURE__*/ API.make(() => ({
|
|
601
|
+
input: GetKeyRingRequest,
|
|
602
|
+
output: KeyRing,
|
|
603
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
604
|
+
protocol: StackitProtocol,
|
|
605
|
+
retry: Retry.Retry,
|
|
606
|
+
}));
|
|
607
|
+
/** Get version Returns the details for the given version. */
|
|
608
|
+
export const getVersion = /*@__PURE__*/ API.make(() => ({
|
|
609
|
+
input: GetVersionRequest,
|
|
610
|
+
output: Version,
|
|
611
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
612
|
+
protocol: StackitProtocol,
|
|
613
|
+
retry: Retry.Retry,
|
|
614
|
+
}));
|
|
615
|
+
/** Get wrapping key Returns the details for the given wrapping key. */
|
|
616
|
+
export const getWrappingKey = /*@__PURE__*/ API.make(() => ({
|
|
617
|
+
input: GetWrappingKeyRequest,
|
|
618
|
+
output: WrappingKey,
|
|
619
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
620
|
+
protocol: StackitProtocol,
|
|
621
|
+
retry: Retry.Retry,
|
|
622
|
+
}));
|
|
623
|
+
/** Import key Imports a new version to the given key. */
|
|
624
|
+
export const importKey = /*@__PURE__*/ API.make(() => ({
|
|
625
|
+
input: ImportKeyRequest,
|
|
626
|
+
output: Version,
|
|
627
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
628
|
+
protocol: StackitProtocol,
|
|
629
|
+
retry: Retry.Retry,
|
|
630
|
+
}));
|
|
631
|
+
/** List key rings Returns a list of all key rings within the project. */
|
|
632
|
+
export const listKeyRings = /*@__PURE__*/ API.make(() => ({
|
|
633
|
+
input: ListKeyRingsRequest,
|
|
634
|
+
output: KeyRingList,
|
|
635
|
+
errors: [BadRequest, UnknownStackitError],
|
|
636
|
+
protocol: StackitProtocol,
|
|
637
|
+
retry: Retry.Retry,
|
|
638
|
+
}));
|
|
639
|
+
/** List keys Returns the keys for the given key ring. */
|
|
640
|
+
export const listKeys = /*@__PURE__*/ API.make(() => ({
|
|
641
|
+
input: ListKeysRequest,
|
|
642
|
+
output: KeyList,
|
|
643
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
644
|
+
protocol: StackitProtocol,
|
|
645
|
+
retry: Retry.Retry,
|
|
646
|
+
}));
|
|
647
|
+
/** List versions Returns a list of all versions of a given key. */
|
|
648
|
+
export const listVersions = /*@__PURE__*/ API.make(() => ({
|
|
649
|
+
input: ListVersionsRequest,
|
|
650
|
+
output: VersionList,
|
|
651
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
652
|
+
protocol: StackitProtocol,
|
|
653
|
+
retry: Retry.Retry,
|
|
654
|
+
}));
|
|
655
|
+
/** List wrapping keys Returns the wrapping keys for the given key ring. */
|
|
656
|
+
export const listWrappingKeys = /*@__PURE__*/ API.make(() => ({
|
|
657
|
+
input: ListWrappingKeysRequest,
|
|
658
|
+
output: WrappingKeyList,
|
|
659
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
660
|
+
protocol: StackitProtocol,
|
|
661
|
+
retry: Retry.Retry,
|
|
662
|
+
}));
|
|
663
|
+
/** Restore deleted key Restores the given key from being deleted. */
|
|
664
|
+
export const restoreKey = /*@__PURE__*/ API.make(() => ({
|
|
665
|
+
input: RestoreKeyRequest,
|
|
666
|
+
output: RestoreKeyResponse,
|
|
667
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
668
|
+
protocol: StackitProtocol,
|
|
669
|
+
retry: Retry.Retry,
|
|
670
|
+
}));
|
|
671
|
+
/** Restore version Restores the given version from being destroyed */
|
|
672
|
+
export const restoreVersion = /*@__PURE__*/ API.make(() => ({
|
|
673
|
+
input: RestoreVersionRequest,
|
|
674
|
+
output: RestoreVersionResponse,
|
|
675
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
676
|
+
protocol: StackitProtocol,
|
|
677
|
+
retry: Retry.Retry,
|
|
678
|
+
}));
|
|
679
|
+
/** Rotate key Rotates the given key. */
|
|
680
|
+
export const rotateKey = /*@__PURE__*/ API.make(() => ({
|
|
681
|
+
input: RotateKeyRequest,
|
|
682
|
+
output: Version,
|
|
683
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
|
|
684
|
+
protocol: StackitProtocol,
|
|
685
|
+
retry: Retry.Retry,
|
|
686
|
+
}));
|
|
687
|
+
/** Sign Sign data using the given key version as secret. */
|
|
688
|
+
export const sign = /*@__PURE__*/ API.make(() => ({
|
|
689
|
+
input: SignRequest,
|
|
690
|
+
output: SignedData,
|
|
691
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
692
|
+
protocol: StackitProtocol,
|
|
693
|
+
retry: Retry.Retry,
|
|
694
|
+
}));
|
|
695
|
+
/** Verify Verify data using the given key version as secret. */
|
|
696
|
+
export const verify = /*@__PURE__*/ API.make(() => ({
|
|
697
|
+
input: VerifyRequest,
|
|
698
|
+
output: VerifiedData,
|
|
699
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
700
|
+
protocol: StackitProtocol,
|
|
701
|
+
retry: Retry.Retry,
|
|
702
|
+
}));
|
|
703
|
+
//# sourceMappingURL=kms.js.map
|