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