@distilled.cloud/stackit 1.0.0-rc.14 → 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
|
@@ -1,12 +1,15 @@
|
|
|
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";
|
|
5
|
-
import * as
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
+
import type * as Redacted from "effect/Redacted";
|
|
6
7
|
import { UnknownStackitError } from "../errors.ts";
|
|
7
8
|
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
8
9
|
import * as Retry from "../retry.ts";
|
|
9
10
|
import * as T from "../traits.ts";
|
|
11
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
12
|
+
const __s: any[] = [];
|
|
10
13
|
|
|
11
14
|
export type { StackitOpError, StackitOpContext };
|
|
12
15
|
|
|
@@ -45,34 +48,12 @@ export interface CreateACLRequest {
|
|
|
45
48
|
/** The given IP/IP Range that is permitted to access. */
|
|
46
49
|
cidr: string;
|
|
47
50
|
}
|
|
48
|
-
export const CreateACLRequest = /*@__PURE__*/ S.suspend(() =>
|
|
49
|
-
S.Struct({
|
|
50
|
-
projectId: S.String.pipe(T.Label()),
|
|
51
|
-
instanceId: S.String.pipe(T.Label()),
|
|
52
|
-
cidr: S.String,
|
|
53
|
-
}).pipe(
|
|
54
|
-
T.Http({
|
|
55
|
-
method: "POST",
|
|
56
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls",
|
|
57
|
-
code: 200,
|
|
58
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
59
|
-
}),
|
|
60
|
-
),
|
|
61
|
-
).annotate({ identifier: "CreateACLRequest" }) as any as S.Schema<CreateACLRequest>;
|
|
62
|
-
|
|
63
51
|
export interface ACL {
|
|
64
52
|
/** The given IP/IP Range that is permitted to access. */
|
|
65
53
|
cidr: string;
|
|
66
54
|
/** A auto generated unique id which identifies the acl. */
|
|
67
55
|
id: string;
|
|
68
56
|
}
|
|
69
|
-
export const ACL = /*@__PURE__*/ S.suspend(() =>
|
|
70
|
-
S.Struct({
|
|
71
|
-
cidr: S.String,
|
|
72
|
-
id: S.String,
|
|
73
|
-
}),
|
|
74
|
-
).annotate({ identifier: "ACL" }) as any as S.Schema<ACL>;
|
|
75
|
-
|
|
76
57
|
export interface CreateApproleRequest {
|
|
77
58
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
78
59
|
projectId: string;
|
|
@@ -86,24 +67,6 @@ export interface CreateApproleRequest {
|
|
|
86
67
|
/** Is true if the approle has write access to the secrets engine. Is false for a read-only approle. */
|
|
87
68
|
write?: boolean;
|
|
88
69
|
}
|
|
89
|
-
export const CreateApproleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
90
|
-
S.Struct({
|
|
91
|
-
projectId: S.String.pipe(T.Label()),
|
|
92
|
-
instanceId: S.String.pipe(T.Label()),
|
|
93
|
-
description: S.optional(S.String),
|
|
94
|
-
secret_id_num_uses: S.optional(S.Number),
|
|
95
|
-
secret_id_ttl: S.optional(S.String),
|
|
96
|
-
write: S.optional(S.Boolean),
|
|
97
|
-
}).pipe(
|
|
98
|
-
T.Http({
|
|
99
|
-
method: "POST",
|
|
100
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles",
|
|
101
|
-
code: 200,
|
|
102
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
103
|
-
}),
|
|
104
|
-
),
|
|
105
|
-
).annotate({ identifier: "CreateApproleRequest" }) as any as S.Schema<CreateApproleRequest>;
|
|
106
|
-
|
|
107
70
|
export interface Approle {
|
|
108
71
|
/** A user chosen description to differentiate between multiple approles. */
|
|
109
72
|
description: string;
|
|
@@ -115,16 +78,6 @@ export interface Approle {
|
|
|
115
78
|
/** Is true if the approle has write access to the secrets engine. Is false for a read-only approle. */
|
|
116
79
|
write: boolean;
|
|
117
80
|
}
|
|
118
|
-
export const Approle = /*@__PURE__*/ S.suspend(() =>
|
|
119
|
-
S.Struct({
|
|
120
|
-
description: S.String,
|
|
121
|
-
role_id: S.String,
|
|
122
|
-
secret_id_num_uses: S.Number,
|
|
123
|
-
secret_id_ttl: S.String,
|
|
124
|
-
write: S.Boolean,
|
|
125
|
-
}),
|
|
126
|
-
).annotate({ identifier: "Approle" }) as any as S.Schema<Approle>;
|
|
127
|
-
|
|
128
81
|
export interface CreateApproleSecretIdRequest {
|
|
129
82
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
130
83
|
projectId: string;
|
|
@@ -135,24 +88,6 @@ export interface CreateApproleSecretIdRequest {
|
|
|
135
88
|
/** A user chosen description to differentiate between multiple approle secrets. */
|
|
136
89
|
description?: string;
|
|
137
90
|
}
|
|
138
|
-
export const CreateApproleSecretIdRequest = /*@__PURE__*/ S.suspend(() =>
|
|
139
|
-
S.Struct({
|
|
140
|
-
projectId: S.String.pipe(T.Label()),
|
|
141
|
-
instanceId: S.String.pipe(T.Label()),
|
|
142
|
-
roleId: S.String.pipe(T.Label()),
|
|
143
|
-
description: S.optional(S.String),
|
|
144
|
-
}).pipe(
|
|
145
|
-
T.Http({
|
|
146
|
-
method: "POST",
|
|
147
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids",
|
|
148
|
-
code: 200,
|
|
149
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
150
|
-
}),
|
|
151
|
-
),
|
|
152
|
-
).annotate({
|
|
153
|
-
identifier: "CreateApproleSecretIdRequest",
|
|
154
|
-
}) as any as S.Schema<CreateApproleSecretIdRequest>;
|
|
155
|
-
|
|
156
91
|
export interface ApproleSecret {
|
|
157
92
|
/** A user chosen description to differentiate between multiple approle secrets. */
|
|
158
93
|
description: string;
|
|
@@ -164,16 +99,6 @@ export interface ApproleSecret {
|
|
|
164
99
|
/** Accessor used for handling secrets */
|
|
165
100
|
version: number;
|
|
166
101
|
}
|
|
167
|
-
export const ApproleSecret = /*@__PURE__*/ S.suspend(() =>
|
|
168
|
-
S.Struct({
|
|
169
|
-
description: S.String,
|
|
170
|
-
num_uses: S.Number,
|
|
171
|
-
secret_id: S.optional(S.String),
|
|
172
|
-
ttl: S.String,
|
|
173
|
-
version: S.Number,
|
|
174
|
-
}),
|
|
175
|
-
).annotate({ identifier: "ApproleSecret" }) as any as S.Schema<ApproleSecret>;
|
|
176
|
-
|
|
177
102
|
/** The key for secret encryption and decryption. */
|
|
178
103
|
export interface KmsKeyPayload {
|
|
179
104
|
/** The key UUID. */
|
|
@@ -185,15 +110,6 @@ export interface KmsKeyPayload {
|
|
|
185
110
|
/** The Service account email that will consume the key. Must be in the same project as the Secrets Manager instance. */
|
|
186
111
|
serviceAccountEmail: string;
|
|
187
112
|
}
|
|
188
|
-
export const KmsKeyPayload = /*@__PURE__*/ S.suspend(() =>
|
|
189
|
-
S.Struct({
|
|
190
|
-
keyId: S.String,
|
|
191
|
-
keyRingId: S.String,
|
|
192
|
-
keyVersion: S.Number,
|
|
193
|
-
serviceAccountEmail: S.String,
|
|
194
|
-
}),
|
|
195
|
-
).annotate({ identifier: "KmsKeyPayload" }) as any as S.Schema<KmsKeyPayload>;
|
|
196
|
-
|
|
197
113
|
export interface CreateInstanceRequest {
|
|
198
114
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
199
115
|
projectId: string;
|
|
@@ -201,21 +117,6 @@ export interface CreateInstanceRequest {
|
|
|
201
117
|
/** A user chosen name to distinguish multiple secrets manager instances. */
|
|
202
118
|
name: string;
|
|
203
119
|
}
|
|
204
|
-
export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
205
|
-
S.Struct({
|
|
206
|
-
projectId: S.String.pipe(T.Label()),
|
|
207
|
-
kmsKey: S.optional(KmsKeyPayload),
|
|
208
|
-
name: S.String,
|
|
209
|
-
}).pipe(
|
|
210
|
-
T.Http({
|
|
211
|
-
method: "POST",
|
|
212
|
-
uri: "/v1/projects/{projectId}/instances",
|
|
213
|
-
code: 200,
|
|
214
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
215
|
-
}),
|
|
216
|
-
),
|
|
217
|
-
).annotate({ identifier: "CreateInstanceRequest" }) as any as S.Schema<CreateInstanceRequest>;
|
|
218
|
-
|
|
219
120
|
export interface Instance {
|
|
220
121
|
/** The API endpoint for connecting to the secrets engine. */
|
|
221
122
|
apiUrl: string;
|
|
@@ -237,22 +138,6 @@ export interface Instance {
|
|
|
237
138
|
updateFinishedDate?: string;
|
|
238
139
|
updateStartDate?: string;
|
|
239
140
|
}
|
|
240
|
-
export const Instance = /*@__PURE__*/ S.suspend(() =>
|
|
241
|
-
S.Struct({
|
|
242
|
-
apiUrl: S.String,
|
|
243
|
-
creationFinishedDate: S.optional(S.String),
|
|
244
|
-
creationStartDate: S.String,
|
|
245
|
-
id: S.String,
|
|
246
|
-
kmsKey: S.optional(KmsKeyPayload),
|
|
247
|
-
name: S.String,
|
|
248
|
-
secretCount: S.Number,
|
|
249
|
-
secretsEngine: S.String,
|
|
250
|
-
state: S.String,
|
|
251
|
-
updateFinishedDate: S.optional(S.String),
|
|
252
|
-
updateStartDate: S.optional(S.String),
|
|
253
|
-
}),
|
|
254
|
-
).annotate({ identifier: "Instance" }) as any as S.Schema<Instance>;
|
|
255
|
-
|
|
256
141
|
export interface CreateUserRequest {
|
|
257
142
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
258
143
|
projectId: string;
|
|
@@ -263,22 +148,6 @@ export interface CreateUserRequest {
|
|
|
263
148
|
/** Is true if the user has write access to the secrets engine. Is false for a read-only user. */
|
|
264
149
|
write: boolean;
|
|
265
150
|
}
|
|
266
|
-
export const CreateUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
267
|
-
S.Struct({
|
|
268
|
-
projectId: S.String.pipe(T.Label()),
|
|
269
|
-
instanceId: S.String.pipe(T.Label()),
|
|
270
|
-
description: S.String,
|
|
271
|
-
write: S.Boolean,
|
|
272
|
-
}).pipe(
|
|
273
|
-
T.Http({
|
|
274
|
-
method: "POST",
|
|
275
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/users",
|
|
276
|
-
code: 200,
|
|
277
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
278
|
-
}),
|
|
279
|
-
),
|
|
280
|
-
).annotate({ identifier: "CreateUserRequest" }) as any as S.Schema<CreateUserRequest>;
|
|
281
|
-
|
|
282
151
|
export interface User {
|
|
283
152
|
/** A user chosen description to differentiate between multiple users. */
|
|
284
153
|
description: string;
|
|
@@ -291,16 +160,6 @@ export interface User {
|
|
|
291
160
|
/** Is true if the user has write access to the secrets engine. Is false for a read-only user. */
|
|
292
161
|
write: boolean;
|
|
293
162
|
}
|
|
294
|
-
export const User = /*@__PURE__*/ S.suspend(() =>
|
|
295
|
-
S.Struct({
|
|
296
|
-
description: S.String,
|
|
297
|
-
id: S.String,
|
|
298
|
-
password: S.String.pipe(T.SensitiveValue({})),
|
|
299
|
-
username: S.String,
|
|
300
|
-
write: S.Boolean,
|
|
301
|
-
}),
|
|
302
|
-
).annotate({ identifier: "User" }) as any as S.Schema<User>;
|
|
303
|
-
|
|
304
163
|
export interface DeleteACLRequest {
|
|
305
164
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
306
165
|
projectId: string;
|
|
@@ -309,26 +168,7 @@ export interface DeleteACLRequest {
|
|
|
309
168
|
/** The acl UUID of the Secrets Manager instance. */
|
|
310
169
|
aclId: string;
|
|
311
170
|
}
|
|
312
|
-
export const DeleteACLRequest = /*@__PURE__*/ S.suspend(() =>
|
|
313
|
-
S.Struct({
|
|
314
|
-
projectId: S.String.pipe(T.Label()),
|
|
315
|
-
instanceId: S.String.pipe(T.Label()),
|
|
316
|
-
aclId: S.String.pipe(T.Label()),
|
|
317
|
-
}).pipe(
|
|
318
|
-
T.Http({
|
|
319
|
-
method: "DELETE",
|
|
320
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls/{aclId}",
|
|
321
|
-
code: 200,
|
|
322
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
323
|
-
}),
|
|
324
|
-
),
|
|
325
|
-
).annotate({ identifier: "DeleteACLRequest" }) as any as S.Schema<DeleteACLRequest>;
|
|
326
|
-
|
|
327
171
|
export interface DeleteACLResponse {}
|
|
328
|
-
export const DeleteACLResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
329
|
-
identifier: "DeleteACLResponse",
|
|
330
|
-
}) as any as S.Schema<DeleteACLResponse>;
|
|
331
|
-
|
|
332
172
|
export interface DeleteApproleRequest {
|
|
333
173
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
334
174
|
projectId: string;
|
|
@@ -337,26 +177,7 @@ export interface DeleteApproleRequest {
|
|
|
337
177
|
/** The approle with permissions on the Secrets Manager instance. */
|
|
338
178
|
roleId: string;
|
|
339
179
|
}
|
|
340
|
-
export const DeleteApproleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
341
|
-
S.Struct({
|
|
342
|
-
projectId: S.String.pipe(T.Label()),
|
|
343
|
-
instanceId: S.String.pipe(T.Label()),
|
|
344
|
-
roleId: S.String.pipe(T.Label()),
|
|
345
|
-
}).pipe(
|
|
346
|
-
T.Http({
|
|
347
|
-
method: "DELETE",
|
|
348
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}",
|
|
349
|
-
code: 200,
|
|
350
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
351
|
-
}),
|
|
352
|
-
),
|
|
353
|
-
).annotate({ identifier: "DeleteApproleRequest" }) as any as S.Schema<DeleteApproleRequest>;
|
|
354
|
-
|
|
355
180
|
export interface DeleteApproleResponse {}
|
|
356
|
-
export const DeleteApproleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
357
|
-
identifier: "DeleteApproleResponse",
|
|
358
|
-
}) as any as S.Schema<DeleteApproleResponse>;
|
|
359
|
-
|
|
360
181
|
export interface DeleteApproleSecretIdRequest {
|
|
361
182
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
362
183
|
projectId: string;
|
|
@@ -367,54 +188,14 @@ export interface DeleteApproleSecretIdRequest {
|
|
|
367
188
|
/** The version of the secret id. */
|
|
368
189
|
secretIdVersion: number;
|
|
369
190
|
}
|
|
370
|
-
export const DeleteApproleSecretIdRequest = /*@__PURE__*/ S.suspend(() =>
|
|
371
|
-
S.Struct({
|
|
372
|
-
projectId: S.String.pipe(T.Label()),
|
|
373
|
-
instanceId: S.String.pipe(T.Label()),
|
|
374
|
-
roleId: S.String.pipe(T.Label()),
|
|
375
|
-
secretIdVersion: S.Number.pipe(T.Label()),
|
|
376
|
-
}).pipe(
|
|
377
|
-
T.Http({
|
|
378
|
-
method: "DELETE",
|
|
379
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids/{secretIdVersion}",
|
|
380
|
-
code: 200,
|
|
381
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
382
|
-
}),
|
|
383
|
-
),
|
|
384
|
-
).annotate({
|
|
385
|
-
identifier: "DeleteApproleSecretIdRequest",
|
|
386
|
-
}) as any as S.Schema<DeleteApproleSecretIdRequest>;
|
|
387
|
-
|
|
388
191
|
export interface DeleteApproleSecretIdResponse {}
|
|
389
|
-
export const DeleteApproleSecretIdResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
390
|
-
identifier: "DeleteApproleSecretIdResponse",
|
|
391
|
-
}) as any as S.Schema<DeleteApproleSecretIdResponse>;
|
|
392
|
-
|
|
393
192
|
export interface DeleteInstanceRequest {
|
|
394
193
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
395
194
|
projectId: string;
|
|
396
195
|
/** The Secrets Manager instance UUID. */
|
|
397
196
|
instanceId: string;
|
|
398
197
|
}
|
|
399
|
-
export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
400
|
-
S.Struct({
|
|
401
|
-
projectId: S.String.pipe(T.Label()),
|
|
402
|
-
instanceId: S.String.pipe(T.Label()),
|
|
403
|
-
}).pipe(
|
|
404
|
-
T.Http({
|
|
405
|
-
method: "DELETE",
|
|
406
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}",
|
|
407
|
-
code: 200,
|
|
408
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
409
|
-
}),
|
|
410
|
-
),
|
|
411
|
-
).annotate({ identifier: "DeleteInstanceRequest" }) as any as S.Schema<DeleteInstanceRequest>;
|
|
412
|
-
|
|
413
198
|
export interface DeleteInstanceResponse {}
|
|
414
|
-
export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
415
|
-
identifier: "DeleteInstanceResponse",
|
|
416
|
-
}) as any as S.Schema<DeleteInstanceResponse>;
|
|
417
|
-
|
|
418
199
|
export interface DeleteUserRequest {
|
|
419
200
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
420
201
|
projectId: string;
|
|
@@ -423,26 +204,7 @@ export interface DeleteUserRequest {
|
|
|
423
204
|
/** The user UUID with permissions on the Secrets Manager instance. */
|
|
424
205
|
userId: string;
|
|
425
206
|
}
|
|
426
|
-
export const DeleteUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
427
|
-
S.Struct({
|
|
428
|
-
projectId: S.String.pipe(T.Label()),
|
|
429
|
-
instanceId: S.String.pipe(T.Label()),
|
|
430
|
-
userId: S.String.pipe(T.Label()),
|
|
431
|
-
}).pipe(
|
|
432
|
-
T.Http({
|
|
433
|
-
method: "DELETE",
|
|
434
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",
|
|
435
|
-
code: 200,
|
|
436
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
437
|
-
}),
|
|
438
|
-
),
|
|
439
|
-
).annotate({ identifier: "DeleteUserRequest" }) as any as S.Schema<DeleteUserRequest>;
|
|
440
|
-
|
|
441
207
|
export interface DeleteUserResponse {}
|
|
442
|
-
export const DeleteUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
443
|
-
identifier: "DeleteUserResponse",
|
|
444
|
-
}) as any as S.Schema<DeleteUserResponse>;
|
|
445
|
-
|
|
446
208
|
export interface GetACLRequest {
|
|
447
209
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
448
210
|
projectId: string;
|
|
@@ -451,21 +213,6 @@ export interface GetACLRequest {
|
|
|
451
213
|
/** The acl UUID of the Secrets Manager instance. */
|
|
452
214
|
aclId: string;
|
|
453
215
|
}
|
|
454
|
-
export const GetACLRequest = /*@__PURE__*/ S.suspend(() =>
|
|
455
|
-
S.Struct({
|
|
456
|
-
projectId: S.String.pipe(T.Label()),
|
|
457
|
-
instanceId: S.String.pipe(T.Label()),
|
|
458
|
-
aclId: S.String.pipe(T.Label()),
|
|
459
|
-
}).pipe(
|
|
460
|
-
T.Http({
|
|
461
|
-
method: "GET",
|
|
462
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls/{aclId}",
|
|
463
|
-
code: 200,
|
|
464
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
465
|
-
}),
|
|
466
|
-
),
|
|
467
|
-
).annotate({ identifier: "GetACLRequest" }) as any as S.Schema<GetACLRequest>;
|
|
468
|
-
|
|
469
216
|
export interface GetApproleRequest {
|
|
470
217
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
471
218
|
projectId: string;
|
|
@@ -474,55 +221,16 @@ export interface GetApproleRequest {
|
|
|
474
221
|
/** The approle with permissions on the Secrets Manager instance. */
|
|
475
222
|
roleId: string;
|
|
476
223
|
}
|
|
477
|
-
export const GetApproleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
478
|
-
S.Struct({
|
|
479
|
-
projectId: S.String.pipe(T.Label()),
|
|
480
|
-
instanceId: S.String.pipe(T.Label()),
|
|
481
|
-
roleId: S.String.pipe(T.Label()),
|
|
482
|
-
}).pipe(
|
|
483
|
-
T.Http({
|
|
484
|
-
method: "GET",
|
|
485
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}",
|
|
486
|
-
code: 200,
|
|
487
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
488
|
-
}),
|
|
489
|
-
),
|
|
490
|
-
).annotate({ identifier: "GetApproleRequest" }) as any as S.Schema<GetApproleRequest>;
|
|
491
|
-
|
|
492
224
|
export interface GetApprolesRequest {
|
|
493
225
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
494
226
|
projectId: string;
|
|
495
227
|
/** The Secrets Manager instance UUID. */
|
|
496
228
|
instanceId: string;
|
|
497
229
|
}
|
|
498
|
-
export const GetApprolesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
499
|
-
S.Struct({
|
|
500
|
-
projectId: S.String.pipe(T.Label()),
|
|
501
|
-
instanceId: S.String.pipe(T.Label()),
|
|
502
|
-
}).pipe(
|
|
503
|
-
T.Http({
|
|
504
|
-
method: "GET",
|
|
505
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles",
|
|
506
|
-
code: 200,
|
|
507
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
508
|
-
}),
|
|
509
|
-
),
|
|
510
|
-
).annotate({ identifier: "GetApprolesRequest" }) as any as S.Schema<GetApprolesRequest>;
|
|
511
|
-
|
|
512
230
|
export type ApproleListApprolesList = Array<Approle>;
|
|
513
|
-
export const ApproleListApprolesList = /*@__PURE__*/ S.Array(
|
|
514
|
-
Approle,
|
|
515
|
-
) as any as S.Schema<ApproleListApprolesList>;
|
|
516
|
-
|
|
517
231
|
export interface ApproleList {
|
|
518
232
|
approles: ApproleListApprolesList;
|
|
519
233
|
}
|
|
520
|
-
export const ApproleList = /*@__PURE__*/ S.suspend(() =>
|
|
521
|
-
S.Struct({
|
|
522
|
-
approles: ApproleListApprolesList,
|
|
523
|
-
}),
|
|
524
|
-
).annotate({ identifier: "ApproleList" }) as any as S.Schema<ApproleList>;
|
|
525
|
-
|
|
526
234
|
export interface GetApproleSecretIdRequest {
|
|
527
235
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
528
236
|
projectId: string;
|
|
@@ -533,44 +241,12 @@ export interface GetApproleSecretIdRequest {
|
|
|
533
241
|
/** The version of the secret id. */
|
|
534
242
|
secretIdVersion: number;
|
|
535
243
|
}
|
|
536
|
-
export const GetApproleSecretIdRequest = /*@__PURE__*/ S.suspend(() =>
|
|
537
|
-
S.Struct({
|
|
538
|
-
projectId: S.String.pipe(T.Label()),
|
|
539
|
-
instanceId: S.String.pipe(T.Label()),
|
|
540
|
-
roleId: S.String.pipe(T.Label()),
|
|
541
|
-
secretIdVersion: S.Number.pipe(T.Label()),
|
|
542
|
-
}).pipe(
|
|
543
|
-
T.Http({
|
|
544
|
-
method: "GET",
|
|
545
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids/{secretIdVersion}",
|
|
546
|
-
code: 200,
|
|
547
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
548
|
-
}),
|
|
549
|
-
),
|
|
550
|
-
).annotate({
|
|
551
|
-
identifier: "GetApproleSecretIdRequest",
|
|
552
|
-
}) as any as S.Schema<GetApproleSecretIdRequest>;
|
|
553
|
-
|
|
554
244
|
export interface GetInstanceRequest {
|
|
555
245
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
556
246
|
projectId: string;
|
|
557
247
|
/** The Secrets Manager instance UUID. */
|
|
558
248
|
instanceId: string;
|
|
559
249
|
}
|
|
560
|
-
export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
561
|
-
S.Struct({
|
|
562
|
-
projectId: S.String.pipe(T.Label()),
|
|
563
|
-
instanceId: S.String.pipe(T.Label()),
|
|
564
|
-
}).pipe(
|
|
565
|
-
T.Http({
|
|
566
|
-
method: "GET",
|
|
567
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}",
|
|
568
|
-
code: 200,
|
|
569
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
570
|
-
}),
|
|
571
|
-
),
|
|
572
|
-
).annotate({ identifier: "GetInstanceRequest" }) as any as S.Schema<GetInstanceRequest>;
|
|
573
|
-
|
|
574
250
|
export interface GetUserRequest {
|
|
575
251
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
576
252
|
projectId: string;
|
|
@@ -579,55 +255,16 @@ export interface GetUserRequest {
|
|
|
579
255
|
/** The user UUID with permissions on the Secrets Manager instance. */
|
|
580
256
|
userId: string;
|
|
581
257
|
}
|
|
582
|
-
export const GetUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
583
|
-
S.Struct({
|
|
584
|
-
projectId: S.String.pipe(T.Label()),
|
|
585
|
-
instanceId: S.String.pipe(T.Label()),
|
|
586
|
-
userId: S.String.pipe(T.Label()),
|
|
587
|
-
}).pipe(
|
|
588
|
-
T.Http({
|
|
589
|
-
method: "GET",
|
|
590
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",
|
|
591
|
-
code: 200,
|
|
592
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
593
|
-
}),
|
|
594
|
-
),
|
|
595
|
-
).annotate({ identifier: "GetUserRequest" }) as any as S.Schema<GetUserRequest>;
|
|
596
|
-
|
|
597
258
|
export interface ListACLsRequest {
|
|
598
259
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
599
260
|
projectId: string;
|
|
600
261
|
/** The Secrets Manager instance UUID. */
|
|
601
262
|
instanceId: string;
|
|
602
263
|
}
|
|
603
|
-
export const ListACLsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
604
|
-
S.Struct({
|
|
605
|
-
projectId: S.String.pipe(T.Label()),
|
|
606
|
-
instanceId: S.String.pipe(T.Label()),
|
|
607
|
-
}).pipe(
|
|
608
|
-
T.Http({
|
|
609
|
-
method: "GET",
|
|
610
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls",
|
|
611
|
-
code: 200,
|
|
612
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
613
|
-
}),
|
|
614
|
-
),
|
|
615
|
-
).annotate({ identifier: "ListACLsRequest" }) as any as S.Schema<ListACLsRequest>;
|
|
616
|
-
|
|
617
264
|
export type ListACLsResponseAclsList = Array<ACL>;
|
|
618
|
-
export const ListACLsResponseAclsList = /*@__PURE__*/ S.Array(
|
|
619
|
-
ACL,
|
|
620
|
-
) as any as S.Schema<ListACLsResponseAclsList>;
|
|
621
|
-
|
|
622
265
|
export interface ListACLsResponse {
|
|
623
266
|
acls: ListACLsResponseAclsList;
|
|
624
267
|
}
|
|
625
|
-
export const ListACLsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
626
|
-
S.Struct({
|
|
627
|
-
acls: ListACLsResponseAclsList,
|
|
628
|
-
}),
|
|
629
|
-
).annotate({ identifier: "ListACLsResponse" }) as any as S.Schema<ListACLsResponse>;
|
|
630
|
-
|
|
631
268
|
export interface ListApproleSecretIdsRequest {
|
|
632
269
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
633
270
|
projectId: string;
|
|
@@ -636,102 +273,28 @@ export interface ListApproleSecretIdsRequest {
|
|
|
636
273
|
/** The approle with permissions on the Secrets Manager instance. */
|
|
637
274
|
roleId: string;
|
|
638
275
|
}
|
|
639
|
-
export const ListApproleSecretIdsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
640
|
-
S.Struct({
|
|
641
|
-
projectId: S.String.pipe(T.Label()),
|
|
642
|
-
instanceId: S.String.pipe(T.Label()),
|
|
643
|
-
roleId: S.String.pipe(T.Label()),
|
|
644
|
-
}).pipe(
|
|
645
|
-
T.Http({
|
|
646
|
-
method: "GET",
|
|
647
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids",
|
|
648
|
-
code: 200,
|
|
649
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
650
|
-
}),
|
|
651
|
-
),
|
|
652
|
-
).annotate({
|
|
653
|
-
identifier: "ListApproleSecretIdsRequest",
|
|
654
|
-
}) as any as S.Schema<ListApproleSecretIdsRequest>;
|
|
655
|
-
|
|
656
276
|
export type ApproleSecretListSecretIdsList = Array<ApproleSecret>;
|
|
657
|
-
export const ApproleSecretListSecretIdsList = /*@__PURE__*/ S.Array(
|
|
658
|
-
ApproleSecret,
|
|
659
|
-
) as any as S.Schema<ApproleSecretListSecretIdsList>;
|
|
660
|
-
|
|
661
277
|
export interface ApproleSecretList {
|
|
662
278
|
secretIds: ApproleSecretListSecretIdsList;
|
|
663
279
|
}
|
|
664
|
-
export const ApproleSecretList = /*@__PURE__*/ S.suspend(() =>
|
|
665
|
-
S.Struct({
|
|
666
|
-
secretIds: ApproleSecretListSecretIdsList,
|
|
667
|
-
}),
|
|
668
|
-
).annotate({ identifier: "ApproleSecretList" }) as any as S.Schema<ApproleSecretList>;
|
|
669
|
-
|
|
670
280
|
export interface ListInstancesRequest {
|
|
671
281
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
672
282
|
projectId: string;
|
|
673
283
|
}
|
|
674
|
-
export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
675
|
-
S.Struct({
|
|
676
|
-
projectId: S.String.pipe(T.Label()),
|
|
677
|
-
}).pipe(
|
|
678
|
-
T.Http({
|
|
679
|
-
method: "GET",
|
|
680
|
-
uri: "/v1/projects/{projectId}/instances",
|
|
681
|
-
code: 200,
|
|
682
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
683
|
-
}),
|
|
684
|
-
),
|
|
685
|
-
).annotate({ identifier: "ListInstancesRequest" }) as any as S.Schema<ListInstancesRequest>;
|
|
686
|
-
|
|
687
284
|
export type ListInstancesResponseInstancesList = Array<Instance>;
|
|
688
|
-
export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(
|
|
689
|
-
Instance,
|
|
690
|
-
) as any as S.Schema<ListInstancesResponseInstancesList>;
|
|
691
|
-
|
|
692
285
|
export interface ListInstancesResponse {
|
|
693
286
|
instances: ListInstancesResponseInstancesList;
|
|
694
287
|
}
|
|
695
|
-
export const ListInstancesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
696
|
-
S.Struct({
|
|
697
|
-
instances: ListInstancesResponseInstancesList,
|
|
698
|
-
}),
|
|
699
|
-
).annotate({ identifier: "ListInstancesResponse" }) as any as S.Schema<ListInstancesResponse>;
|
|
700
|
-
|
|
701
288
|
export interface ListUsersRequest {
|
|
702
289
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
703
290
|
projectId: string;
|
|
704
291
|
/** The Secrets Manager instance UUID. */
|
|
705
292
|
instanceId: string;
|
|
706
293
|
}
|
|
707
|
-
export const ListUsersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
708
|
-
S.Struct({
|
|
709
|
-
projectId: S.String.pipe(T.Label()),
|
|
710
|
-
instanceId: S.String.pipe(T.Label()),
|
|
711
|
-
}).pipe(
|
|
712
|
-
T.Http({
|
|
713
|
-
method: "GET",
|
|
714
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/users",
|
|
715
|
-
code: 200,
|
|
716
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
717
|
-
}),
|
|
718
|
-
),
|
|
719
|
-
).annotate({ identifier: "ListUsersRequest" }) as any as S.Schema<ListUsersRequest>;
|
|
720
|
-
|
|
721
294
|
export type ListUsersResponseUsersList = Array<User>;
|
|
722
|
-
export const ListUsersResponseUsersList = /*@__PURE__*/ S.Array(
|
|
723
|
-
User,
|
|
724
|
-
) as any as S.Schema<ListUsersResponseUsersList>;
|
|
725
|
-
|
|
726
295
|
export interface ListUsersResponse {
|
|
727
296
|
users: ListUsersResponseUsersList;
|
|
728
297
|
}
|
|
729
|
-
export const ListUsersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
730
|
-
S.Struct({
|
|
731
|
-
users: ListUsersResponseUsersList,
|
|
732
|
-
}),
|
|
733
|
-
).annotate({ identifier: "ListUsersResponse" }) as any as S.Schema<ListUsersResponse>;
|
|
734
|
-
|
|
735
298
|
export interface UpdateACLRequest {
|
|
736
299
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
737
300
|
projectId: string;
|
|
@@ -742,42 +305,12 @@ export interface UpdateACLRequest {
|
|
|
742
305
|
/** The given IP/IP Range that is permitted to access. */
|
|
743
306
|
cidr: string;
|
|
744
307
|
}
|
|
745
|
-
export const UpdateACLRequest = /*@__PURE__*/ S.suspend(() =>
|
|
746
|
-
S.Struct({
|
|
747
|
-
projectId: S.String.pipe(T.Label()),
|
|
748
|
-
instanceId: S.String.pipe(T.Label()),
|
|
749
|
-
aclId: S.String.pipe(T.Label()),
|
|
750
|
-
cidr: S.String,
|
|
751
|
-
}).pipe(
|
|
752
|
-
T.Http({
|
|
753
|
-
method: "PUT",
|
|
754
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls/{aclId}",
|
|
755
|
-
code: 200,
|
|
756
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
757
|
-
}),
|
|
758
|
-
),
|
|
759
|
-
).annotate({ identifier: "UpdateACLRequest" }) as any as S.Schema<UpdateACLRequest>;
|
|
760
|
-
|
|
761
308
|
export interface UpdateACLResponse {}
|
|
762
|
-
export const UpdateACLResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
763
|
-
identifier: "UpdateACLResponse",
|
|
764
|
-
}) as any as S.Schema<UpdateACLResponse>;
|
|
765
|
-
|
|
766
309
|
export interface UpdateACLPayload {
|
|
767
310
|
/** The given IP/IP Range that is permitted to access. */
|
|
768
311
|
cidr: string;
|
|
769
312
|
}
|
|
770
|
-
export const UpdateACLPayload = /*@__PURE__*/ S.suspend(() =>
|
|
771
|
-
S.Struct({
|
|
772
|
-
cidr: S.String,
|
|
773
|
-
}),
|
|
774
|
-
).annotate({ identifier: "UpdateACLPayload" }) as any as S.Schema<UpdateACLPayload>;
|
|
775
|
-
|
|
776
313
|
export type UpdateACLsRequestCidrsList = Array<UpdateACLPayload>;
|
|
777
|
-
export const UpdateACLsRequestCidrsList = /*@__PURE__*/ S.Array(
|
|
778
|
-
UpdateACLPayload,
|
|
779
|
-
) as any as S.Schema<UpdateACLsRequestCidrsList>;
|
|
780
|
-
|
|
781
314
|
export interface UpdateACLsRequest {
|
|
782
315
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
783
316
|
projectId: string;
|
|
@@ -785,26 +318,7 @@ export interface UpdateACLsRequest {
|
|
|
785
318
|
instanceId: string;
|
|
786
319
|
cidrs?: UpdateACLsRequestCidrsList;
|
|
787
320
|
}
|
|
788
|
-
export const UpdateACLsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
789
|
-
S.Struct({
|
|
790
|
-
projectId: S.String.pipe(T.Label()),
|
|
791
|
-
instanceId: S.String.pipe(T.Label()),
|
|
792
|
-
cidrs: S.optional(UpdateACLsRequestCidrsList),
|
|
793
|
-
}).pipe(
|
|
794
|
-
T.Http({
|
|
795
|
-
method: "PUT",
|
|
796
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls",
|
|
797
|
-
code: 200,
|
|
798
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
799
|
-
}),
|
|
800
|
-
),
|
|
801
|
-
).annotate({ identifier: "UpdateACLsRequest" }) as any as S.Schema<UpdateACLsRequest>;
|
|
802
|
-
|
|
803
321
|
export interface UpdateACLsResponse {}
|
|
804
|
-
export const UpdateACLsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
805
|
-
identifier: "UpdateACLsResponse",
|
|
806
|
-
}) as any as S.Schema<UpdateACLsResponse>;
|
|
807
|
-
|
|
808
322
|
export interface UpdateApproleRequest {
|
|
809
323
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
810
324
|
projectId: string;
|
|
@@ -820,25 +334,6 @@ export interface UpdateApproleRequest {
|
|
|
820
334
|
/** Is true if the approle has write access to the secrets engine. Is false for a read-only approle. */
|
|
821
335
|
write?: boolean;
|
|
822
336
|
}
|
|
823
|
-
export const UpdateApproleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
824
|
-
S.Struct({
|
|
825
|
-
projectId: S.String.pipe(T.Label()),
|
|
826
|
-
instanceId: S.String.pipe(T.Label()),
|
|
827
|
-
roleId: S.String.pipe(T.Label()),
|
|
828
|
-
description: S.optional(S.String),
|
|
829
|
-
secret_id_num_uses: S.optional(S.Number),
|
|
830
|
-
secret_id_ttl: S.optional(S.String),
|
|
831
|
-
write: S.optional(S.Boolean),
|
|
832
|
-
}).pipe(
|
|
833
|
-
T.Http({
|
|
834
|
-
method: "PUT",
|
|
835
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}",
|
|
836
|
-
code: 200,
|
|
837
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
838
|
-
}),
|
|
839
|
-
),
|
|
840
|
-
).annotate({ identifier: "UpdateApproleRequest" }) as any as S.Schema<UpdateApproleRequest>;
|
|
841
|
-
|
|
842
337
|
export interface UpdateApproleSecretIdRequest {
|
|
843
338
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
844
339
|
projectId: string;
|
|
@@ -851,25 +346,6 @@ export interface UpdateApproleSecretIdRequest {
|
|
|
851
346
|
/** A user chosen description to differentiate between multiple approle secrets. */
|
|
852
347
|
description?: string;
|
|
853
348
|
}
|
|
854
|
-
export const UpdateApproleSecretIdRequest = /*@__PURE__*/ S.suspend(() =>
|
|
855
|
-
S.Struct({
|
|
856
|
-
projectId: S.String.pipe(T.Label()),
|
|
857
|
-
instanceId: S.String.pipe(T.Label()),
|
|
858
|
-
roleId: S.String.pipe(T.Label()),
|
|
859
|
-
secretIdVersion: S.Number.pipe(T.Label()),
|
|
860
|
-
description: S.optional(S.String),
|
|
861
|
-
}).pipe(
|
|
862
|
-
T.Http({
|
|
863
|
-
method: "PUT",
|
|
864
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids/{secretIdVersion}",
|
|
865
|
-
code: 200,
|
|
866
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
867
|
-
}),
|
|
868
|
-
),
|
|
869
|
-
).annotate({
|
|
870
|
-
identifier: "UpdateApproleSecretIdRequest",
|
|
871
|
-
}) as any as S.Schema<UpdateApproleSecretIdRequest>;
|
|
872
|
-
|
|
873
349
|
export interface UpdateInstanceRequest {
|
|
874
350
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
875
351
|
projectId: string;
|
|
@@ -879,27 +355,7 @@ export interface UpdateInstanceRequest {
|
|
|
879
355
|
/** A user chosen name to distinguish multiple secrets manager instances. */
|
|
880
356
|
name: string;
|
|
881
357
|
}
|
|
882
|
-
export const UpdateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
883
|
-
S.Struct({
|
|
884
|
-
projectId: S.String.pipe(T.Label()),
|
|
885
|
-
instanceId: S.String.pipe(T.Label()),
|
|
886
|
-
kmsKey: S.optional(KmsKeyPayload),
|
|
887
|
-
name: S.String,
|
|
888
|
-
}).pipe(
|
|
889
|
-
T.Http({
|
|
890
|
-
method: "PUT",
|
|
891
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}",
|
|
892
|
-
code: 200,
|
|
893
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
894
|
-
}),
|
|
895
|
-
),
|
|
896
|
-
).annotate({ identifier: "UpdateInstanceRequest" }) as any as S.Schema<UpdateInstanceRequest>;
|
|
897
|
-
|
|
898
358
|
export interface UpdateInstanceResponse {}
|
|
899
|
-
export const UpdateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
900
|
-
identifier: "UpdateInstanceResponse",
|
|
901
|
-
}) as any as S.Schema<UpdateInstanceResponse>;
|
|
902
|
-
|
|
903
359
|
export interface UpdateUserRequest {
|
|
904
360
|
/** The STACKIT portal project UUID the Secrets Manager instance is part of. */
|
|
905
361
|
projectId: string;
|
|
@@ -912,28 +368,7 @@ export interface UpdateUserRequest {
|
|
|
912
368
|
/** Is true if the user has write access to the secrets engine. Is false for a read-only user. */
|
|
913
369
|
write?: boolean;
|
|
914
370
|
}
|
|
915
|
-
export const UpdateUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
916
|
-
S.Struct({
|
|
917
|
-
projectId: S.String.pipe(T.Label()),
|
|
918
|
-
instanceId: S.String.pipe(T.Label()),
|
|
919
|
-
userId: S.String.pipe(T.Label()),
|
|
920
|
-
description: S.optional(S.String),
|
|
921
|
-
write: S.optional(S.Boolean),
|
|
922
|
-
}).pipe(
|
|
923
|
-
T.Http({
|
|
924
|
-
method: "PUT",
|
|
925
|
-
uri: "/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",
|
|
926
|
-
code: 200,
|
|
927
|
-
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
928
|
-
}),
|
|
929
|
-
),
|
|
930
|
-
).annotate({ identifier: "UpdateUserRequest" }) as any as S.Schema<UpdateUserRequest>;
|
|
931
|
-
|
|
932
371
|
export interface UpdateUserResponse {}
|
|
933
|
-
export const UpdateUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
934
|
-
identifier: "UpdateUserResponse",
|
|
935
|
-
}) as any as S.Schema<UpdateUserResponse>;
|
|
936
|
-
|
|
937
372
|
export type CreateACLError = BadRequest | NotFound | Conflict | StackitOpError;
|
|
938
373
|
/** Creates a new Secrets Manager acl within the project. */
|
|
939
374
|
export const createACL: API.OperationMethod<
|
|
@@ -942,8 +377,8 @@ export const createACL: API.OperationMethod<
|
|
|
942
377
|
CreateACLError,
|
|
943
378
|
StackitOpContext
|
|
944
379
|
> = /*@__PURE__*/ API.make(() => ({
|
|
945
|
-
input: CreateACLRequest
|
|
946
|
-
output: ACL
|
|
380
|
+
input: __S(76, __c19, 0) as any as S.Schema<CreateACLRequest>,
|
|
381
|
+
output: __S(80, __c20, 0) as any as S.Schema<ACL>,
|
|
947
382
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
948
383
|
protocol: StackitProtocol,
|
|
949
384
|
retry: Retry.Retry,
|
|
@@ -957,8 +392,8 @@ export const createApprole: API.OperationMethod<
|
|
|
957
392
|
CreateApproleError,
|
|
958
393
|
StackitOpContext
|
|
959
394
|
> = /*@__PURE__*/ API.make(() => ({
|
|
960
|
-
input: CreateApproleRequest
|
|
961
|
-
output: Approle
|
|
395
|
+
input: __S(84, __c21, 0) as any as S.Schema<CreateApproleRequest>,
|
|
396
|
+
output: __S(88, __c22, 0) as any as S.Schema<Approle>,
|
|
962
397
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
963
398
|
protocol: StackitProtocol,
|
|
964
399
|
retry: Retry.Retry,
|
|
@@ -972,8 +407,8 @@ export const createApproleSecretId: API.OperationMethod<
|
|
|
972
407
|
CreateApproleSecretIdError,
|
|
973
408
|
StackitOpContext
|
|
974
409
|
> = /*@__PURE__*/ API.make(() => ({
|
|
975
|
-
input: CreateApproleSecretIdRequest
|
|
976
|
-
output: ApproleSecret
|
|
410
|
+
input: __S(92, __c23, 0) as any as S.Schema<CreateApproleSecretIdRequest>,
|
|
411
|
+
output: __S(96, __c24, 0) as any as S.Schema<ApproleSecret>,
|
|
977
412
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
978
413
|
protocol: StackitProtocol,
|
|
979
414
|
retry: Retry.Retry,
|
|
@@ -987,8 +422,8 @@ export const createInstance: API.OperationMethod<
|
|
|
987
422
|
CreateInstanceError,
|
|
988
423
|
StackitOpContext
|
|
989
424
|
> = /*@__PURE__*/ API.make(() => ({
|
|
990
|
-
input: CreateInstanceRequest
|
|
991
|
-
output: Instance
|
|
425
|
+
input: __S(100, __c25, 0) as any as S.Schema<CreateInstanceRequest>,
|
|
426
|
+
output: __S(104, __c26, 0) as any as S.Schema<Instance>,
|
|
992
427
|
errors: [BadRequest, UnknownStackitError],
|
|
993
428
|
protocol: StackitProtocol,
|
|
994
429
|
retry: Retry.Retry,
|
|
@@ -1002,8 +437,8 @@ export const createUser: API.OperationMethod<
|
|
|
1002
437
|
CreateUserError,
|
|
1003
438
|
StackitOpContext
|
|
1004
439
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1005
|
-
input: CreateUserRequest
|
|
1006
|
-
output: User
|
|
440
|
+
input: __S(112, __c28, 0) as any as S.Schema<CreateUserRequest>,
|
|
441
|
+
output: __S(116, __c29, 0) as any as S.Schema<User>,
|
|
1007
442
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1008
443
|
protocol: StackitProtocol,
|
|
1009
444
|
retry: Retry.Retry,
|
|
@@ -1017,8 +452,8 @@ export const deleteACL: API.OperationMethod<
|
|
|
1017
452
|
DeleteACLError,
|
|
1018
453
|
StackitOpContext
|
|
1019
454
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1020
|
-
input: DeleteACLRequest
|
|
1021
|
-
output: DeleteACLResponse
|
|
455
|
+
input: __S(120, __c30, 0) as any as S.Schema<DeleteACLRequest>,
|
|
456
|
+
output: __S(124, __c31, 0) as any as S.Schema<DeleteACLResponse>,
|
|
1022
457
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1023
458
|
protocol: StackitProtocol,
|
|
1024
459
|
retry: Retry.Retry,
|
|
@@ -1032,8 +467,8 @@ export const deleteApprole: API.OperationMethod<
|
|
|
1032
467
|
DeleteApproleError,
|
|
1033
468
|
StackitOpContext
|
|
1034
469
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1035
|
-
input: DeleteApproleRequest
|
|
1036
|
-
output: DeleteApproleResponse
|
|
470
|
+
input: __S(128, __c32, 0) as any as S.Schema<DeleteApproleRequest>,
|
|
471
|
+
output: __S(124, __c31, 0) as any as S.Schema<DeleteApproleResponse>,
|
|
1037
472
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1038
473
|
protocol: StackitProtocol,
|
|
1039
474
|
retry: Retry.Retry,
|
|
@@ -1047,8 +482,8 @@ export const deleteApproleSecretId: API.OperationMethod<
|
|
|
1047
482
|
DeleteApproleSecretIdError,
|
|
1048
483
|
StackitOpContext
|
|
1049
484
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1050
|
-
input: DeleteApproleSecretIdRequest
|
|
1051
|
-
output: DeleteApproleSecretIdResponse
|
|
485
|
+
input: __S(0, __c0, 0) as any as S.Schema<DeleteApproleSecretIdRequest>,
|
|
486
|
+
output: __S(124, __c31, 0) as any as S.Schema<DeleteApproleSecretIdResponse>,
|
|
1052
487
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1053
488
|
protocol: StackitProtocol,
|
|
1054
489
|
retry: Retry.Retry,
|
|
@@ -1062,8 +497,8 @@ export const deleteInstance: API.OperationMethod<
|
|
|
1062
497
|
DeleteInstanceError,
|
|
1063
498
|
StackitOpContext
|
|
1064
499
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1065
|
-
input: DeleteInstanceRequest
|
|
1066
|
-
output: DeleteInstanceResponse
|
|
500
|
+
input: __S(4, __c1, 0) as any as S.Schema<DeleteInstanceRequest>,
|
|
501
|
+
output: __S(124, __c31, 0) as any as S.Schema<DeleteInstanceResponse>,
|
|
1067
502
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1068
503
|
protocol: StackitProtocol,
|
|
1069
504
|
retry: Retry.Retry,
|
|
@@ -1077,8 +512,8 @@ export const deleteUser: API.OperationMethod<
|
|
|
1077
512
|
DeleteUserError,
|
|
1078
513
|
StackitOpContext
|
|
1079
514
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1080
|
-
input: DeleteUserRequest
|
|
1081
|
-
output: DeleteUserResponse
|
|
515
|
+
input: __S(8, __c2, 0) as any as S.Schema<DeleteUserRequest>,
|
|
516
|
+
output: __S(124, __c31, 0) as any as S.Schema<DeleteUserResponse>,
|
|
1082
517
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1083
518
|
protocol: StackitProtocol,
|
|
1084
519
|
retry: Retry.Retry,
|
|
@@ -1088,8 +523,8 @@ export type GetACLError = BadRequest | NotFound | StackitOpError;
|
|
|
1088
523
|
/** Returns the details for the given acl. */
|
|
1089
524
|
export const getACL: API.OperationMethod<GetACLRequest, ACL, GetACLError, StackitOpContext> =
|
|
1090
525
|
/*@__PURE__*/ API.make(() => ({
|
|
1091
|
-
input: GetACLRequest
|
|
1092
|
-
output: ACL
|
|
526
|
+
input: __S(12, __c3, 0) as any as S.Schema<GetACLRequest>,
|
|
527
|
+
output: __S(80, __c20, 0) as any as S.Schema<ACL>,
|
|
1093
528
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1094
529
|
protocol: StackitProtocol,
|
|
1095
530
|
retry: Retry.Retry,
|
|
@@ -1103,8 +538,8 @@ export const getApprole: API.OperationMethod<
|
|
|
1103
538
|
GetApproleError,
|
|
1104
539
|
StackitOpContext
|
|
1105
540
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1106
|
-
input: GetApproleRequest
|
|
1107
|
-
output: Approle
|
|
541
|
+
input: __S(16, __c4, 0) as any as S.Schema<GetApproleRequest>,
|
|
542
|
+
output: __S(88, __c22, 0) as any as S.Schema<Approle>,
|
|
1108
543
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1109
544
|
protocol: StackitProtocol,
|
|
1110
545
|
retry: Retry.Retry,
|
|
@@ -1118,8 +553,8 @@ export const getApproles: API.OperationMethod<
|
|
|
1118
553
|
GetApprolesError,
|
|
1119
554
|
StackitOpContext
|
|
1120
555
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1121
|
-
input: GetApprolesRequest
|
|
1122
|
-
output: ApproleList
|
|
556
|
+
input: __S(20, __c5, 0) as any as S.Schema<GetApprolesRequest>,
|
|
557
|
+
output: __S(22, __c5, 2) as any as S.Schema<ApproleList>,
|
|
1123
558
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1124
559
|
protocol: StackitProtocol,
|
|
1125
560
|
retry: Retry.Retry,
|
|
@@ -1133,8 +568,8 @@ export const getApproleSecretId: API.OperationMethod<
|
|
|
1133
568
|
GetApproleSecretIdError,
|
|
1134
569
|
StackitOpContext
|
|
1135
570
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1136
|
-
input: GetApproleSecretIdRequest
|
|
1137
|
-
output: ApproleSecret
|
|
571
|
+
input: __S(24, __c6, 0) as any as S.Schema<GetApproleSecretIdRequest>,
|
|
572
|
+
output: __S(96, __c24, 0) as any as S.Schema<ApproleSecret>,
|
|
1138
573
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1139
574
|
protocol: StackitProtocol,
|
|
1140
575
|
retry: Retry.Retry,
|
|
@@ -1148,8 +583,8 @@ export const getInstance: API.OperationMethod<
|
|
|
1148
583
|
GetInstanceError,
|
|
1149
584
|
StackitOpContext
|
|
1150
585
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1151
|
-
input: GetInstanceRequest
|
|
1152
|
-
output: Instance
|
|
586
|
+
input: __S(28, __c7, 0) as any as S.Schema<GetInstanceRequest>,
|
|
587
|
+
output: __S(104, __c26, 0) as any as S.Schema<Instance>,
|
|
1153
588
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1154
589
|
protocol: StackitProtocol,
|
|
1155
590
|
retry: Retry.Retry,
|
|
@@ -1159,8 +594,8 @@ export type GetUserError = BadRequest | NotFound | StackitOpError;
|
|
|
1159
594
|
/** Returns the details for the given user. */
|
|
1160
595
|
export const getUser: API.OperationMethod<GetUserRequest, User, GetUserError, StackitOpContext> =
|
|
1161
596
|
/*@__PURE__*/ API.make(() => ({
|
|
1162
|
-
input: GetUserRequest
|
|
1163
|
-
output: User
|
|
597
|
+
input: __S(32, __c8, 0) as any as S.Schema<GetUserRequest>,
|
|
598
|
+
output: __S(116, __c29, 0) as any as S.Schema<User>,
|
|
1164
599
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1165
600
|
protocol: StackitProtocol,
|
|
1166
601
|
retry: Retry.Retry,
|
|
@@ -1174,8 +609,8 @@ export const listACLs: API.OperationMethod<
|
|
|
1174
609
|
ListACLsError,
|
|
1175
610
|
StackitOpContext
|
|
1176
611
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1177
|
-
input: ListACLsRequest
|
|
1178
|
-
output: ListACLsResponse
|
|
612
|
+
input: __S(36, __c9, 0) as any as S.Schema<ListACLsRequest>,
|
|
613
|
+
output: __S(38, __c9, 2) as any as S.Schema<ListACLsResponse>,
|
|
1179
614
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1180
615
|
protocol: StackitProtocol,
|
|
1181
616
|
retry: Retry.Retry,
|
|
@@ -1189,8 +624,8 @@ export const listApproleSecretIds: API.OperationMethod<
|
|
|
1189
624
|
ListApproleSecretIdsError,
|
|
1190
625
|
StackitOpContext
|
|
1191
626
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1192
|
-
input: ListApproleSecretIdsRequest
|
|
1193
|
-
output: ApproleSecretList
|
|
627
|
+
input: __S(40, __c10, 0) as any as S.Schema<ListApproleSecretIdsRequest>,
|
|
628
|
+
output: __S(42, __c10, 2) as any as S.Schema<ApproleSecretList>,
|
|
1194
629
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1195
630
|
protocol: StackitProtocol,
|
|
1196
631
|
retry: Retry.Retry,
|
|
@@ -1204,8 +639,8 @@ export const listInstances: API.OperationMethod<
|
|
|
1204
639
|
ListInstancesError,
|
|
1205
640
|
StackitOpContext
|
|
1206
641
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1207
|
-
input: ListInstancesRequest
|
|
1208
|
-
output: ListInstancesResponse
|
|
642
|
+
input: __S(44, __c11, 0) as any as S.Schema<ListInstancesRequest>,
|
|
643
|
+
output: __S(46, __c11, 2) as any as S.Schema<ListInstancesResponse>,
|
|
1209
644
|
errors: [BadRequest, UnknownStackitError],
|
|
1210
645
|
protocol: StackitProtocol,
|
|
1211
646
|
retry: Retry.Retry,
|
|
@@ -1219,8 +654,8 @@ export const listUsers: API.OperationMethod<
|
|
|
1219
654
|
ListUsersError,
|
|
1220
655
|
StackitOpContext
|
|
1221
656
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1222
|
-
input: ListUsersRequest
|
|
1223
|
-
output: ListUsersResponse
|
|
657
|
+
input: __S(48, __c12, 0) as any as S.Schema<ListUsersRequest>,
|
|
658
|
+
output: __S(50, __c12, 2) as any as S.Schema<ListUsersResponse>,
|
|
1224
659
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1225
660
|
protocol: StackitProtocol,
|
|
1226
661
|
retry: Retry.Retry,
|
|
@@ -1234,8 +669,8 @@ export const updateACL: API.OperationMethod<
|
|
|
1234
669
|
UpdateACLError,
|
|
1235
670
|
StackitOpContext
|
|
1236
671
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1237
|
-
input: UpdateACLRequest
|
|
1238
|
-
output: UpdateACLResponse
|
|
672
|
+
input: __S(52, __c13, 0) as any as S.Schema<UpdateACLRequest>,
|
|
673
|
+
output: __S(124, __c31, 0) as any as S.Schema<UpdateACLResponse>,
|
|
1239
674
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1240
675
|
protocol: StackitProtocol,
|
|
1241
676
|
retry: Retry.Retry,
|
|
@@ -1249,8 +684,8 @@ export const updateACLs: API.OperationMethod<
|
|
|
1249
684
|
UpdateACLsError,
|
|
1250
685
|
StackitOpContext
|
|
1251
686
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1252
|
-
input: UpdateACLsRequest
|
|
1253
|
-
output: UpdateACLsResponse
|
|
687
|
+
input: __S(58, __c14, 2) as any as S.Schema<UpdateACLsRequest>,
|
|
688
|
+
output: __S(124, __c31, 0) as any as S.Schema<UpdateACLsResponse>,
|
|
1254
689
|
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
1255
690
|
protocol: StackitProtocol,
|
|
1256
691
|
retry: Retry.Retry,
|
|
@@ -1264,8 +699,8 @@ export const updateApprole: API.OperationMethod<
|
|
|
1264
699
|
UpdateApproleError,
|
|
1265
700
|
StackitOpContext
|
|
1266
701
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1267
|
-
input: UpdateApproleRequest
|
|
1268
|
-
output: Approle
|
|
702
|
+
input: __S(60, __c15, 0) as any as S.Schema<UpdateApproleRequest>,
|
|
703
|
+
output: __S(88, __c22, 0) as any as S.Schema<Approle>,
|
|
1269
704
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1270
705
|
protocol: StackitProtocol,
|
|
1271
706
|
retry: Retry.Retry,
|
|
@@ -1279,8 +714,8 @@ export const updateApproleSecretId: API.OperationMethod<
|
|
|
1279
714
|
UpdateApproleSecretIdError,
|
|
1280
715
|
StackitOpContext
|
|
1281
716
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1282
|
-
input: UpdateApproleSecretIdRequest
|
|
1283
|
-
output: ApproleSecret
|
|
717
|
+
input: __S(64, __c16, 0) as any as S.Schema<UpdateApproleSecretIdRequest>,
|
|
718
|
+
output: __S(96, __c24, 0) as any as S.Schema<ApproleSecret>,
|
|
1284
719
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1285
720
|
protocol: StackitProtocol,
|
|
1286
721
|
retry: Retry.Retry,
|
|
@@ -1294,8 +729,8 @@ export const updateInstance: API.OperationMethod<
|
|
|
1294
729
|
UpdateInstanceError,
|
|
1295
730
|
StackitOpContext
|
|
1296
731
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1297
|
-
input: UpdateInstanceRequest
|
|
1298
|
-
output: UpdateInstanceResponse
|
|
732
|
+
input: __S(68, __c17, 0) as any as S.Schema<UpdateInstanceRequest>,
|
|
733
|
+
output: __S(124, __c31, 0) as any as S.Schema<UpdateInstanceResponse>,
|
|
1299
734
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1300
735
|
protocol: StackitProtocol,
|
|
1301
736
|
retry: Retry.Retry,
|
|
@@ -1309,9 +744,659 @@ export const updateUser: API.OperationMethod<
|
|
|
1309
744
|
UpdateUserError,
|
|
1310
745
|
StackitOpContext
|
|
1311
746
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1312
|
-
input: UpdateUserRequest
|
|
1313
|
-
output: UpdateUserResponse
|
|
747
|
+
input: __S(72, __c18, 0) as any as S.Schema<UpdateUserRequest>,
|
|
748
|
+
output: __S(124, __c31, 0) as any as S.Schema<UpdateUserResponse>,
|
|
1314
749
|
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
1315
750
|
protocol: StackitProtocol,
|
|
1316
751
|
retry: Retry.Retry,
|
|
1317
752
|
}));
|
|
753
|
+
|
|
754
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
755
|
+
function __c0(j: number): any {
|
|
756
|
+
switch (j) {
|
|
757
|
+
case 0:
|
|
758
|
+
return S.suspend(() =>
|
|
759
|
+
S.Struct({
|
|
760
|
+
projectId: S.String.pipe(T.Label()),
|
|
761
|
+
instanceId: S.String.pipe(T.Label()),
|
|
762
|
+
roleId: S.String.pipe(T.Label()),
|
|
763
|
+
secretIdVersion: S.Number.pipe(T.Label()),
|
|
764
|
+
}).pipe(
|
|
765
|
+
T.Http({
|
|
766
|
+
method: "DELETE",
|
|
767
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids/{secretIdVersion}",
|
|
768
|
+
code: 200,
|
|
769
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
770
|
+
}),
|
|
771
|
+
),
|
|
772
|
+
).annotate({ identifier: "DeleteApproleSecretIdRequest" });
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
function __c1(j: number): any {
|
|
776
|
+
switch (j) {
|
|
777
|
+
case 0:
|
|
778
|
+
return S.suspend(() =>
|
|
779
|
+
S.Struct({
|
|
780
|
+
projectId: S.String.pipe(T.Label()),
|
|
781
|
+
instanceId: S.String.pipe(T.Label()),
|
|
782
|
+
}).pipe(
|
|
783
|
+
T.Http({
|
|
784
|
+
method: "DELETE",
|
|
785
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}",
|
|
786
|
+
code: 200,
|
|
787
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
788
|
+
}),
|
|
789
|
+
),
|
|
790
|
+
).annotate({ identifier: "DeleteInstanceRequest" });
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
function __c2(j: number): any {
|
|
794
|
+
switch (j) {
|
|
795
|
+
case 0:
|
|
796
|
+
return S.suspend(() =>
|
|
797
|
+
S.Struct({
|
|
798
|
+
projectId: S.String.pipe(T.Label()),
|
|
799
|
+
instanceId: S.String.pipe(T.Label()),
|
|
800
|
+
userId: S.String.pipe(T.Label()),
|
|
801
|
+
}).pipe(
|
|
802
|
+
T.Http({
|
|
803
|
+
method: "DELETE",
|
|
804
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",
|
|
805
|
+
code: 200,
|
|
806
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
807
|
+
}),
|
|
808
|
+
),
|
|
809
|
+
).annotate({ identifier: "DeleteUserRequest" });
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
function __c3(j: number): any {
|
|
813
|
+
switch (j) {
|
|
814
|
+
case 0:
|
|
815
|
+
return S.suspend(() =>
|
|
816
|
+
S.Struct({
|
|
817
|
+
projectId: S.String.pipe(T.Label()),
|
|
818
|
+
instanceId: S.String.pipe(T.Label()),
|
|
819
|
+
aclId: S.String.pipe(T.Label()),
|
|
820
|
+
}).pipe(
|
|
821
|
+
T.Http({
|
|
822
|
+
method: "GET",
|
|
823
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls/{aclId}",
|
|
824
|
+
code: 200,
|
|
825
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
826
|
+
}),
|
|
827
|
+
),
|
|
828
|
+
).annotate({ identifier: "GetACLRequest" });
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
function __c4(j: number): any {
|
|
832
|
+
switch (j) {
|
|
833
|
+
case 0:
|
|
834
|
+
return S.suspend(() =>
|
|
835
|
+
S.Struct({
|
|
836
|
+
projectId: S.String.pipe(T.Label()),
|
|
837
|
+
instanceId: S.String.pipe(T.Label()),
|
|
838
|
+
roleId: S.String.pipe(T.Label()),
|
|
839
|
+
}).pipe(
|
|
840
|
+
T.Http({
|
|
841
|
+
method: "GET",
|
|
842
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}",
|
|
843
|
+
code: 200,
|
|
844
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
845
|
+
}),
|
|
846
|
+
),
|
|
847
|
+
).annotate({ identifier: "GetApproleRequest" });
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
function __c5(j: number): any {
|
|
851
|
+
switch (j) {
|
|
852
|
+
case 0:
|
|
853
|
+
return S.suspend(() =>
|
|
854
|
+
S.Struct({
|
|
855
|
+
projectId: S.String.pipe(T.Label()),
|
|
856
|
+
instanceId: S.String.pipe(T.Label()),
|
|
857
|
+
}).pipe(
|
|
858
|
+
T.Http({
|
|
859
|
+
method: "GET",
|
|
860
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles",
|
|
861
|
+
code: 200,
|
|
862
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
863
|
+
}),
|
|
864
|
+
),
|
|
865
|
+
).annotate({ identifier: "GetApprolesRequest" });
|
|
866
|
+
case 1:
|
|
867
|
+
return S.Array(__S(88, __c22, 0));
|
|
868
|
+
case 2:
|
|
869
|
+
return S.suspend(() =>
|
|
870
|
+
S.Struct({
|
|
871
|
+
approles: __S(21, __c5, 1),
|
|
872
|
+
}),
|
|
873
|
+
).annotate({ identifier: "ApproleList" });
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
function __c6(j: number): any {
|
|
877
|
+
switch (j) {
|
|
878
|
+
case 0:
|
|
879
|
+
return S.suspend(() =>
|
|
880
|
+
S.Struct({
|
|
881
|
+
projectId: S.String.pipe(T.Label()),
|
|
882
|
+
instanceId: S.String.pipe(T.Label()),
|
|
883
|
+
roleId: S.String.pipe(T.Label()),
|
|
884
|
+
secretIdVersion: S.Number.pipe(T.Label()),
|
|
885
|
+
}).pipe(
|
|
886
|
+
T.Http({
|
|
887
|
+
method: "GET",
|
|
888
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids/{secretIdVersion}",
|
|
889
|
+
code: 200,
|
|
890
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
891
|
+
}),
|
|
892
|
+
),
|
|
893
|
+
).annotate({ identifier: "GetApproleSecretIdRequest" });
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
function __c7(j: number): any {
|
|
897
|
+
switch (j) {
|
|
898
|
+
case 0:
|
|
899
|
+
return S.suspend(() =>
|
|
900
|
+
S.Struct({
|
|
901
|
+
projectId: S.String.pipe(T.Label()),
|
|
902
|
+
instanceId: S.String.pipe(T.Label()),
|
|
903
|
+
}).pipe(
|
|
904
|
+
T.Http({
|
|
905
|
+
method: "GET",
|
|
906
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}",
|
|
907
|
+
code: 200,
|
|
908
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
909
|
+
}),
|
|
910
|
+
),
|
|
911
|
+
).annotate({ identifier: "GetInstanceRequest" });
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
function __c8(j: number): any {
|
|
915
|
+
switch (j) {
|
|
916
|
+
case 0:
|
|
917
|
+
return S.suspend(() =>
|
|
918
|
+
S.Struct({
|
|
919
|
+
projectId: S.String.pipe(T.Label()),
|
|
920
|
+
instanceId: S.String.pipe(T.Label()),
|
|
921
|
+
userId: S.String.pipe(T.Label()),
|
|
922
|
+
}).pipe(
|
|
923
|
+
T.Http({
|
|
924
|
+
method: "GET",
|
|
925
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",
|
|
926
|
+
code: 200,
|
|
927
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
928
|
+
}),
|
|
929
|
+
),
|
|
930
|
+
).annotate({ identifier: "GetUserRequest" });
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
function __c9(j: number): any {
|
|
934
|
+
switch (j) {
|
|
935
|
+
case 0:
|
|
936
|
+
return S.suspend(() =>
|
|
937
|
+
S.Struct({
|
|
938
|
+
projectId: S.String.pipe(T.Label()),
|
|
939
|
+
instanceId: S.String.pipe(T.Label()),
|
|
940
|
+
}).pipe(
|
|
941
|
+
T.Http({
|
|
942
|
+
method: "GET",
|
|
943
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls",
|
|
944
|
+
code: 200,
|
|
945
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
946
|
+
}),
|
|
947
|
+
),
|
|
948
|
+
).annotate({ identifier: "ListACLsRequest" });
|
|
949
|
+
case 1:
|
|
950
|
+
return S.Array(__S(80, __c20, 0));
|
|
951
|
+
case 2:
|
|
952
|
+
return S.suspend(() =>
|
|
953
|
+
S.Struct({
|
|
954
|
+
acls: __S(37, __c9, 1),
|
|
955
|
+
}),
|
|
956
|
+
).annotate({ identifier: "ListACLsResponse" });
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
function __c10(j: number): any {
|
|
960
|
+
switch (j) {
|
|
961
|
+
case 0:
|
|
962
|
+
return S.suspend(() =>
|
|
963
|
+
S.Struct({
|
|
964
|
+
projectId: S.String.pipe(T.Label()),
|
|
965
|
+
instanceId: S.String.pipe(T.Label()),
|
|
966
|
+
roleId: S.String.pipe(T.Label()),
|
|
967
|
+
}).pipe(
|
|
968
|
+
T.Http({
|
|
969
|
+
method: "GET",
|
|
970
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids",
|
|
971
|
+
code: 200,
|
|
972
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
973
|
+
}),
|
|
974
|
+
),
|
|
975
|
+
).annotate({ identifier: "ListApproleSecretIdsRequest" });
|
|
976
|
+
case 1:
|
|
977
|
+
return S.Array(__S(96, __c24, 0));
|
|
978
|
+
case 2:
|
|
979
|
+
return S.suspend(() =>
|
|
980
|
+
S.Struct({
|
|
981
|
+
secretIds: __S(41, __c10, 1),
|
|
982
|
+
}),
|
|
983
|
+
).annotate({ identifier: "ApproleSecretList" });
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
function __c11(j: number): any {
|
|
987
|
+
switch (j) {
|
|
988
|
+
case 0:
|
|
989
|
+
return S.suspend(() =>
|
|
990
|
+
S.Struct({
|
|
991
|
+
projectId: S.String.pipe(T.Label()),
|
|
992
|
+
}).pipe(
|
|
993
|
+
T.Http({
|
|
994
|
+
method: "GET",
|
|
995
|
+
uri: "/v1/projects/{projectId}/instances",
|
|
996
|
+
code: 200,
|
|
997
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
998
|
+
}),
|
|
999
|
+
),
|
|
1000
|
+
).annotate({ identifier: "ListInstancesRequest" });
|
|
1001
|
+
case 1:
|
|
1002
|
+
return S.Array(__S(104, __c26, 0));
|
|
1003
|
+
case 2:
|
|
1004
|
+
return S.suspend(() =>
|
|
1005
|
+
S.Struct({
|
|
1006
|
+
instances: __S(45, __c11, 1),
|
|
1007
|
+
}),
|
|
1008
|
+
).annotate({ identifier: "ListInstancesResponse" });
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
function __c12(j: number): any {
|
|
1012
|
+
switch (j) {
|
|
1013
|
+
case 0:
|
|
1014
|
+
return S.suspend(() =>
|
|
1015
|
+
S.Struct({
|
|
1016
|
+
projectId: S.String.pipe(T.Label()),
|
|
1017
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1018
|
+
}).pipe(
|
|
1019
|
+
T.Http({
|
|
1020
|
+
method: "GET",
|
|
1021
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/users",
|
|
1022
|
+
code: 200,
|
|
1023
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
1024
|
+
}),
|
|
1025
|
+
),
|
|
1026
|
+
).annotate({ identifier: "ListUsersRequest" });
|
|
1027
|
+
case 1:
|
|
1028
|
+
return S.Array(__S(116, __c29, 0));
|
|
1029
|
+
case 2:
|
|
1030
|
+
return S.suspend(() =>
|
|
1031
|
+
S.Struct({
|
|
1032
|
+
users: __S(49, __c12, 1),
|
|
1033
|
+
}),
|
|
1034
|
+
).annotate({ identifier: "ListUsersResponse" });
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
function __c13(j: number): any {
|
|
1038
|
+
switch (j) {
|
|
1039
|
+
case 0:
|
|
1040
|
+
return S.suspend(() =>
|
|
1041
|
+
S.Struct({
|
|
1042
|
+
projectId: S.String.pipe(T.Label()),
|
|
1043
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1044
|
+
aclId: S.String.pipe(T.Label()),
|
|
1045
|
+
cidr: S.String,
|
|
1046
|
+
}).pipe(
|
|
1047
|
+
T.Http({
|
|
1048
|
+
method: "PUT",
|
|
1049
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls/{aclId}",
|
|
1050
|
+
code: 200,
|
|
1051
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
1052
|
+
}),
|
|
1053
|
+
),
|
|
1054
|
+
).annotate({ identifier: "UpdateACLRequest" });
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
function __c14(j: number): any {
|
|
1058
|
+
switch (j) {
|
|
1059
|
+
case 0:
|
|
1060
|
+
return S.suspend(() =>
|
|
1061
|
+
S.Struct({
|
|
1062
|
+
cidr: S.String,
|
|
1063
|
+
}),
|
|
1064
|
+
).annotate({ identifier: "UpdateACLPayload" });
|
|
1065
|
+
case 1:
|
|
1066
|
+
return S.Array(__S(56, __c14, 0));
|
|
1067
|
+
case 2:
|
|
1068
|
+
return S.suspend(() =>
|
|
1069
|
+
S.Struct({
|
|
1070
|
+
projectId: S.String.pipe(T.Label()),
|
|
1071
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1072
|
+
cidrs: S.optional(__S(57, __c14, 1)),
|
|
1073
|
+
}).pipe(
|
|
1074
|
+
T.Http({
|
|
1075
|
+
method: "PUT",
|
|
1076
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls",
|
|
1077
|
+
code: 200,
|
|
1078
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
1079
|
+
}),
|
|
1080
|
+
),
|
|
1081
|
+
).annotate({ identifier: "UpdateACLsRequest" });
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
function __c15(j: number): any {
|
|
1085
|
+
switch (j) {
|
|
1086
|
+
case 0:
|
|
1087
|
+
return S.suspend(() =>
|
|
1088
|
+
S.Struct({
|
|
1089
|
+
projectId: S.String.pipe(T.Label()),
|
|
1090
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1091
|
+
roleId: S.String.pipe(T.Label()),
|
|
1092
|
+
description: S.optional(S.String),
|
|
1093
|
+
secret_id_num_uses: S.optional(S.Number),
|
|
1094
|
+
secret_id_ttl: S.optional(S.String),
|
|
1095
|
+
write: S.optional(S.Boolean),
|
|
1096
|
+
}).pipe(
|
|
1097
|
+
T.Http({
|
|
1098
|
+
method: "PUT",
|
|
1099
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}",
|
|
1100
|
+
code: 200,
|
|
1101
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
1102
|
+
}),
|
|
1103
|
+
),
|
|
1104
|
+
).annotate({ identifier: "UpdateApproleRequest" });
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
function __c16(j: number): any {
|
|
1108
|
+
switch (j) {
|
|
1109
|
+
case 0:
|
|
1110
|
+
return S.suspend(() =>
|
|
1111
|
+
S.Struct({
|
|
1112
|
+
projectId: S.String.pipe(T.Label()),
|
|
1113
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1114
|
+
roleId: S.String.pipe(T.Label()),
|
|
1115
|
+
secretIdVersion: S.Number.pipe(T.Label()),
|
|
1116
|
+
description: S.optional(S.String),
|
|
1117
|
+
}).pipe(
|
|
1118
|
+
T.Http({
|
|
1119
|
+
method: "PUT",
|
|
1120
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids/{secretIdVersion}",
|
|
1121
|
+
code: 200,
|
|
1122
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
1123
|
+
}),
|
|
1124
|
+
),
|
|
1125
|
+
).annotate({ identifier: "UpdateApproleSecretIdRequest" });
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
function __c17(j: number): any {
|
|
1129
|
+
switch (j) {
|
|
1130
|
+
case 0:
|
|
1131
|
+
return S.suspend(() =>
|
|
1132
|
+
S.Struct({
|
|
1133
|
+
projectId: S.String.pipe(T.Label()),
|
|
1134
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1135
|
+
kmsKey: S.optional(__S(108, __c27, 0)),
|
|
1136
|
+
name: S.String,
|
|
1137
|
+
}).pipe(
|
|
1138
|
+
T.Http({
|
|
1139
|
+
method: "PUT",
|
|
1140
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}",
|
|
1141
|
+
code: 200,
|
|
1142
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
1143
|
+
}),
|
|
1144
|
+
),
|
|
1145
|
+
).annotate({ identifier: "UpdateInstanceRequest" });
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
function __c18(j: number): any {
|
|
1149
|
+
switch (j) {
|
|
1150
|
+
case 0:
|
|
1151
|
+
return S.suspend(() =>
|
|
1152
|
+
S.Struct({
|
|
1153
|
+
projectId: S.String.pipe(T.Label()),
|
|
1154
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1155
|
+
userId: S.String.pipe(T.Label()),
|
|
1156
|
+
description: S.optional(S.String),
|
|
1157
|
+
write: S.optional(S.Boolean),
|
|
1158
|
+
}).pipe(
|
|
1159
|
+
T.Http({
|
|
1160
|
+
method: "PUT",
|
|
1161
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/users/{userId}",
|
|
1162
|
+
code: 200,
|
|
1163
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
1164
|
+
}),
|
|
1165
|
+
),
|
|
1166
|
+
).annotate({ identifier: "UpdateUserRequest" });
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
function __c19(j: number): any {
|
|
1170
|
+
switch (j) {
|
|
1171
|
+
case 0:
|
|
1172
|
+
return S.suspend(() =>
|
|
1173
|
+
S.Struct({
|
|
1174
|
+
projectId: S.String.pipe(T.Label()),
|
|
1175
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1176
|
+
cidr: S.String,
|
|
1177
|
+
}).pipe(
|
|
1178
|
+
T.Http({
|
|
1179
|
+
method: "POST",
|
|
1180
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls",
|
|
1181
|
+
code: 200,
|
|
1182
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
1183
|
+
}),
|
|
1184
|
+
),
|
|
1185
|
+
).annotate({ identifier: "CreateACLRequest" });
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
function __c20(j: number): any {
|
|
1189
|
+
switch (j) {
|
|
1190
|
+
case 0:
|
|
1191
|
+
return S.suspend(() =>
|
|
1192
|
+
S.Struct({
|
|
1193
|
+
cidr: S.String,
|
|
1194
|
+
id: S.String,
|
|
1195
|
+
}),
|
|
1196
|
+
).annotate({ identifier: "ACL" });
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
function __c21(j: number): any {
|
|
1200
|
+
switch (j) {
|
|
1201
|
+
case 0:
|
|
1202
|
+
return S.suspend(() =>
|
|
1203
|
+
S.Struct({
|
|
1204
|
+
projectId: S.String.pipe(T.Label()),
|
|
1205
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1206
|
+
description: S.optional(S.String),
|
|
1207
|
+
secret_id_num_uses: S.optional(S.Number),
|
|
1208
|
+
secret_id_ttl: S.optional(S.String),
|
|
1209
|
+
write: S.optional(S.Boolean),
|
|
1210
|
+
}).pipe(
|
|
1211
|
+
T.Http({
|
|
1212
|
+
method: "POST",
|
|
1213
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles",
|
|
1214
|
+
code: 200,
|
|
1215
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
1216
|
+
}),
|
|
1217
|
+
),
|
|
1218
|
+
).annotate({ identifier: "CreateApproleRequest" });
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
function __c22(j: number): any {
|
|
1222
|
+
switch (j) {
|
|
1223
|
+
case 0:
|
|
1224
|
+
return S.suspend(() =>
|
|
1225
|
+
S.Struct({
|
|
1226
|
+
description: S.String,
|
|
1227
|
+
role_id: S.String,
|
|
1228
|
+
secret_id_num_uses: S.Number,
|
|
1229
|
+
secret_id_ttl: S.String,
|
|
1230
|
+
write: S.Boolean,
|
|
1231
|
+
}),
|
|
1232
|
+
).annotate({ identifier: "Approle" });
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
function __c23(j: number): any {
|
|
1236
|
+
switch (j) {
|
|
1237
|
+
case 0:
|
|
1238
|
+
return S.suspend(() =>
|
|
1239
|
+
S.Struct({
|
|
1240
|
+
projectId: S.String.pipe(T.Label()),
|
|
1241
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1242
|
+
roleId: S.String.pipe(T.Label()),
|
|
1243
|
+
description: S.optional(S.String),
|
|
1244
|
+
}).pipe(
|
|
1245
|
+
T.Http({
|
|
1246
|
+
method: "POST",
|
|
1247
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}/secretids",
|
|
1248
|
+
code: 200,
|
|
1249
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
1250
|
+
}),
|
|
1251
|
+
),
|
|
1252
|
+
).annotate({ identifier: "CreateApproleSecretIdRequest" });
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
function __c24(j: number): any {
|
|
1256
|
+
switch (j) {
|
|
1257
|
+
case 0:
|
|
1258
|
+
return S.suspend(() =>
|
|
1259
|
+
S.Struct({
|
|
1260
|
+
description: S.String,
|
|
1261
|
+
num_uses: S.Number,
|
|
1262
|
+
secret_id: S.optional(S.String),
|
|
1263
|
+
ttl: S.String,
|
|
1264
|
+
version: S.Number,
|
|
1265
|
+
}),
|
|
1266
|
+
).annotate({ identifier: "ApproleSecret" });
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
function __c25(j: number): any {
|
|
1270
|
+
switch (j) {
|
|
1271
|
+
case 0:
|
|
1272
|
+
return S.suspend(() =>
|
|
1273
|
+
S.Struct({
|
|
1274
|
+
projectId: S.String.pipe(T.Label()),
|
|
1275
|
+
kmsKey: S.optional(__S(108, __c27, 0)),
|
|
1276
|
+
name: S.String,
|
|
1277
|
+
}).pipe(
|
|
1278
|
+
T.Http({
|
|
1279
|
+
method: "POST",
|
|
1280
|
+
uri: "/v1/projects/{projectId}/instances",
|
|
1281
|
+
code: 200,
|
|
1282
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
1283
|
+
}),
|
|
1284
|
+
),
|
|
1285
|
+
).annotate({ identifier: "CreateInstanceRequest" });
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
function __c26(j: number): any {
|
|
1289
|
+
switch (j) {
|
|
1290
|
+
case 0:
|
|
1291
|
+
return S.suspend(() =>
|
|
1292
|
+
S.Struct({
|
|
1293
|
+
apiUrl: S.String,
|
|
1294
|
+
creationFinishedDate: S.optional(S.String),
|
|
1295
|
+
creationStartDate: S.String,
|
|
1296
|
+
id: S.String,
|
|
1297
|
+
kmsKey: S.optional(__S(108, __c27, 0)),
|
|
1298
|
+
name: S.String,
|
|
1299
|
+
secretCount: S.Number,
|
|
1300
|
+
secretsEngine: S.String,
|
|
1301
|
+
state: S.String,
|
|
1302
|
+
updateFinishedDate: S.optional(S.String),
|
|
1303
|
+
updateStartDate: S.optional(S.String),
|
|
1304
|
+
}),
|
|
1305
|
+
).annotate({ identifier: "Instance" });
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
function __c27(j: number): any {
|
|
1309
|
+
switch (j) {
|
|
1310
|
+
case 0:
|
|
1311
|
+
return S.suspend(() =>
|
|
1312
|
+
S.Struct({
|
|
1313
|
+
keyId: S.String,
|
|
1314
|
+
keyRingId: S.String,
|
|
1315
|
+
keyVersion: S.Number,
|
|
1316
|
+
serviceAccountEmail: S.String,
|
|
1317
|
+
}),
|
|
1318
|
+
).annotate({ identifier: "KmsKeyPayload" });
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
function __c28(j: number): any {
|
|
1322
|
+
switch (j) {
|
|
1323
|
+
case 0:
|
|
1324
|
+
return S.suspend(() =>
|
|
1325
|
+
S.Struct({
|
|
1326
|
+
projectId: S.String.pipe(T.Label()),
|
|
1327
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1328
|
+
description: S.String,
|
|
1329
|
+
write: S.Boolean,
|
|
1330
|
+
}).pipe(
|
|
1331
|
+
T.Http({
|
|
1332
|
+
method: "POST",
|
|
1333
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/users",
|
|
1334
|
+
code: 200,
|
|
1335
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
1336
|
+
}),
|
|
1337
|
+
),
|
|
1338
|
+
).annotate({ identifier: "CreateUserRequest" });
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
function __c29(j: number): any {
|
|
1342
|
+
switch (j) {
|
|
1343
|
+
case 0:
|
|
1344
|
+
return S.suspend(() =>
|
|
1345
|
+
S.Struct({
|
|
1346
|
+
description: S.String,
|
|
1347
|
+
id: S.String,
|
|
1348
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
1349
|
+
username: S.String,
|
|
1350
|
+
write: S.Boolean,
|
|
1351
|
+
}),
|
|
1352
|
+
).annotate({ identifier: "User" });
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
function __c30(j: number): any {
|
|
1356
|
+
switch (j) {
|
|
1357
|
+
case 0:
|
|
1358
|
+
return S.suspend(() =>
|
|
1359
|
+
S.Struct({
|
|
1360
|
+
projectId: S.String.pipe(T.Label()),
|
|
1361
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1362
|
+
aclId: S.String.pipe(T.Label()),
|
|
1363
|
+
}).pipe(
|
|
1364
|
+
T.Http({
|
|
1365
|
+
method: "DELETE",
|
|
1366
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/acls/{aclId}",
|
|
1367
|
+
code: 200,
|
|
1368
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
1369
|
+
}),
|
|
1370
|
+
),
|
|
1371
|
+
).annotate({ identifier: "DeleteACLRequest" });
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
function __c31(j: number): any {
|
|
1375
|
+
switch (j) {
|
|
1376
|
+
case 0:
|
|
1377
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteACLResponse" });
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
function __c32(j: number): any {
|
|
1381
|
+
switch (j) {
|
|
1382
|
+
case 0:
|
|
1383
|
+
return S.suspend(() =>
|
|
1384
|
+
S.Struct({
|
|
1385
|
+
projectId: S.String.pipe(T.Label()),
|
|
1386
|
+
instanceId: S.String.pipe(T.Label()),
|
|
1387
|
+
roleId: S.String.pipe(T.Label()),
|
|
1388
|
+
}).pipe(
|
|
1389
|
+
T.Http({
|
|
1390
|
+
method: "DELETE",
|
|
1391
|
+
uri: "/v1/projects/{projectId}/instances/{instanceId}/approles/{roleId}",
|
|
1392
|
+
code: 200,
|
|
1393
|
+
baseUrl: "https://secrets-manager.api.{region}stackit.cloud",
|
|
1394
|
+
}),
|
|
1395
|
+
),
|
|
1396
|
+
).annotate({ identifier: "DeleteApproleRequest" });
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1400
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1401
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1402
|
+
}
|