@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
|
@@ -1,506 +1,86 @@
|
|
|
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
6
|
import { UnknownStackitError } from "../errors.js";
|
|
7
7
|
import { StackitProtocol } from "../protocol.js";
|
|
8
8
|
import * as Retry from "../retry.js";
|
|
9
9
|
import * as T from "../traits.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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.optional;
|
|
17
|
+
const __7 = S.Array;
|
|
18
|
+
const __8 = T.Query;
|
|
19
|
+
const __9 = S.Boolean;
|
|
20
|
+
const __10 = S.Number;
|
|
21
|
+
const __11 = T.SensitiveValue;
|
|
22
|
+
const __12 = S.TaggedError;
|
|
23
|
+
const __13 = T.applyErrorMatchers;
|
|
24
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
25
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __10, __3, __12, __13]]);
|
|
26
|
+
});
|
|
27
|
+
export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
|
|
28
|
+
return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __10, __3, __12, __13]]);
|
|
29
|
+
});
|
|
30
|
+
export const Forbidden = /*@__PURE__*/ API.error(function Forbidden(i) {
|
|
31
|
+
return API.newError(i, new.target, ['$5($4()("Forbidden",{code:$2,message:$3}).pipe($1),[{status:403}])', [__0, C.withAuthError, __10, __3, __12, __13]]);
|
|
32
|
+
});
|
|
33
|
+
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
34
|
+
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __10, __3, __12, __13]]);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export const createFederatedIdentityProvider = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:2,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"CreateFederatedIdentityProviderRequest";$6({projectId:$3.pipe($2()),serviceAccountEmail:$3.pipe($2()),assertions:$5(#4:1),issuer:$3,name:$3}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations",code:200,baseUrl:"https://service-account.api.stackit.cloud"}))', [__0, __1, __2, __3, __d2, __6, __4, __5, __d1, BadRequest, Forbidden, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createFederatedIdentityProvider, i));
|
|
38
|
+
|
|
39
|
+
export const createServiceAccount = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"CreateServiceAccountRequest";$4({projectId:$3.pipe($2()),name:$3}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/service-accounts",code:200,baseUrl:"https://service-account.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d3, BadRequest, Forbidden, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createServiceAccount, i));
|
|
40
|
+
|
|
41
|
+
export const createServiceAccountKey = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("CreateServiceAccountKeyResponse", '{input:#1,output:#3,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$6(>4)@"CreateServiceAccountKeyRequest";$6(>5)@"%Credentials";$6(>6)@"%";$5({projectId:$3.pipe($2()),serviceAccountEmail:$3.pipe($2()),algorithm:$4($3),publicKey:$4($3),validUntil:$4($3)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys",code:200,baseUrl:"https://service-account.api.stackit.cloud"}));$5({aud:$3,iss:$3,kid:$3,privateKey:$4($3.pipe($7({}))),sub:$3,tokenEndpoint:$4($3)});$5({active:$8,createdAt:$3,credentials:#2,id:$3,keyAlgorithm:$3,keyOrigin:$3,keyType:$3,publicKey:$3,validUntil:$4($3)})', [__0, __1, __2, __3, __6, __4, __5, __11, __9, BadRequest, Forbidden, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(createServiceAccountKey, i));
|
|
42
|
+
|
|
43
|
+
export const createShortLivedAccessToken = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>3)@"CreateShortLivedAccessTokenRequest";$6(>4)@"CreateShortLivedAccessTokenResponse";$5({assertion:$3($2),grant_type:$2,refresh_token:$3($2.pipe($4({})))}).pipe($1({method:"POST",uri:"/token",code:200,baseUrl:"https://service-account.api.stackit.cloud"}));$5({access_token:$2.pipe($4({})),expires_in:$7,refresh_token:$2.pipe($4({})),scope:$2,token_type:$2})', [__0, __1, __3, __6, __11, __4, __5, __10, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createShortLivedAccessToken, i));
|
|
44
|
+
|
|
45
|
+
export const deleteServiceAccount = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"DeleteServiceAccountRequest";$4({projectId:$3.pipe($2()),serviceAccountEmail:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}",code:200,baseUrl:"https://service-account.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d4, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteServiceAccount, i));
|
|
46
|
+
|
|
47
|
+
export const deleteServiceAccountKey = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteServiceAccountKeyRequest";$4({projectId:$3.pipe($2()),serviceAccountEmail:$3.pipe($2()),keyId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys/{keyId}",code:200,baseUrl:"https://service-account.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d4, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteServiceAccountKey, i));
|
|
48
|
+
|
|
49
|
+
export const deleteServiceFederatedIdentityProvider = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteServiceFederatedIdentityProviderRequest";$4({projectId:$3.pipe($2()),serviceAccountEmail:$3.pipe($2()),federationId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations/{federationId}",code:200,baseUrl:"https://service-account.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d4, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteServiceFederatedIdentityProvider, i));
|
|
50
|
+
|
|
51
|
+
export const getFederatedIdentityProvider = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:2,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"GetFederatedIdentityProviderRequest";$4({projectId:$3.pipe($2()),serviceAccountEmail:$3.pipe($2()),federationId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations/{federationId}",code:200,baseUrl:"https://service-account.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d1, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getFederatedIdentityProvider, i));
|
|
52
|
+
|
|
53
|
+
export const getJWKS =
|
|
54
|
+
/*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$8],protocol:$9,retry:$10};$5(>5)@"GetJWKSRequest";$5(>6)@"JWK";$7(#2);$5(>7)@"JWKS";$4({serviceAccountEmail:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/service-accounts/public/jwk/{serviceAccountEmail}",code:200,baseUrl:"https://service-account.api.stackit.cloud"}));$4({alg:$6($3),e:$3,kid:$6($3),ks:$6($3),n:$3,ops:$6($3),use:$6($3),x5c:$6($3),x5t:$6($3),x5t256:$6($3),x5u:$6($3)});$4({keys:#3})', [__0, __1, __2, __3, __4, __5, __6, __7, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getJWKS, i));
|
|
55
|
+
|
|
56
|
+
export const getServiceAccountKey = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("GetServiceAccountKeyResponse", '{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>4)@"GetServiceAccountKeyRequest";$7(>5)@"%Credentials";$7(>6)@"%";$6({projectId:$3.pipe($2()),serviceAccountEmail:$3.pipe($2()),keyId:$3.pipe($2()),format:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys/{keyId}",code:200,baseUrl:"https://service-account.api.stackit.cloud"}));$6({aud:$3,iss:$3,kid:$3,sub:$3});$6({active:$8,createdAt:$3,credentials:#2,id:$3,keyAlgorithm:$3,keyOrigin:$3,keyType:$3,publicKey:$5($3),validUntil:$5($3)})', [__0, __1, __2, __3, __8, __6, __4, __5, __9, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(getServiceAccountKey, i));
|
|
57
|
+
|
|
58
|
+
export const listFederatedIdentityProviders = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListFederatedIdentityProvidersRequest";$7(#6:2);$5(>5)@"FederatedListFederatedIdentityProvidersResponse";$4({projectId:$3.pipe($2()),serviceAccountEmail:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations",code:200,baseUrl:"https://service-account.api.stackit.cloud"}));$4({itemsPerPage:$8,resources:#2,startIndex:$8,totalResults:$8})', [__0, __1, __2, __3, __4, __5, __d1, __7, __10, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listFederatedIdentityProviders, i));
|
|
59
|
+
|
|
60
|
+
export const listServiceAccountKeys = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>4)@"ListServiceAccountKeysRequest";$7(#6:0);$5(>5)@"ListServiceAccountKeysResponse";$4({projectId:$3.pipe($2()),serviceAccountEmail:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys",code:200,baseUrl:"https://service-account.api.stackit.cloud"}));$4({items:#2})', [__0, __1, __2, __3, __4, __5, __d0, __7, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listServiceAccountKeys, i));
|
|
61
|
+
|
|
62
|
+
export const listServiceAccounts = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>4)@"ListServiceAccountsRequest";$7(#6:0);$5(>5)@"ListServiceAccountsResponse";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/service-accounts",code:200,baseUrl:"https://service-account.api.stackit.cloud"}));$4({items:#2})', [__0, __1, __2, __3, __4, __5, __d3, __7, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listServiceAccounts, i));
|
|
63
|
+
|
|
64
|
+
export const partialUpdateServiceAccountFederatedIdentityProvider = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:2,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"PartialUpdateServiceAccountFederatedIdentityProviderRequest";$6({projectId:$3.pipe($2()),serviceAccountEmail:$3.pipe($2()),federationId:$3.pipe($2()),assertions:$5(#4:1),issuer:$3,name:$3}).pipe($1({method:"PATCH",uri:"/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations/{federationId}",code:200,baseUrl:"https://service-account.api.stackit.cloud"}))', [__0, __1, __2, __3, __d2, __6, __4, __5, __d1, BadRequest, Forbidden, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(partialUpdateServiceAccountFederatedIdentityProvider, i));
|
|
65
|
+
|
|
66
|
+
export const partialUpdateServiceAccountKey = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"PartialUpdateServiceAccountKeyRequest";$6({projectId:$3.pipe($2()),serviceAccountEmail:$3.pipe($2()),keyId:$3.pipe($2()),active:$5($4),validUntil:$5($3)}).pipe($1({method:"PATCH",uri:"/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys/{keyId}",code:200,baseUrl:"https://service-account.api.stackit.cloud"}))', [__0, __1, __2, __3, __9, __6, __4, __5, __d0, BadRequest, Forbidden, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(partialUpdateServiceAccountKey, i));
|
|
67
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
68
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
// Shared schema data (see `op` in core/api).
|
|
72
|
+
function __d0() {
|
|
73
|
+
return ['$5(>1)@"ServiceAccountKeyListResponse";$4({active:$1,createdAt:$2,id:$2,keyAlgorithm:$2,keyOrigin:$2,keyType:$2,validUntil:$3($2)})', [__0, __9, __3, __6, __4, __5]];
|
|
15
74
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
code: S.Number,
|
|
19
|
-
message: S.String,
|
|
20
|
-
}).pipe(C.withConflictError), [{ status: 409 }]) {
|
|
75
|
+
function __d1() {
|
|
76
|
+
return ['$3(>3)@"FederatedIdentityProviderAssertionsItem";$4(#0);$3(>4)@"FederatedIdentityProvider";$2({item:$1,operator:$1,value:$1});$2({assertions:#1,createdAt:$1,id:$5($1),issuer:$1,name:$1,updatedAt:$1})', [__0, __3, __4, __5, __7, __6]];
|
|
21
77
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
code: S.Number,
|
|
25
|
-
message: S.String,
|
|
26
|
-
}).pipe(C.withAuthError), [{ status: 403 }]) {
|
|
78
|
+
function __d2() {
|
|
79
|
+
return ['$4(>2)@"CreateFederatedIdentityProviderRequestAssertionsItem";$5(#0);$3({item:$2($1),operator:$2($1),value:$2($1)})', [__0, __3, __6, __4, __5, __7]];
|
|
27
80
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
81
|
+
function __d3() {
|
|
82
|
+
return ['$4(>1)@"ServiceAccount2";$3({email:$1,id:$1,internal:$2,projectId:$1})', [__0, __3, __9, __4, __5]];
|
|
83
|
+
}
|
|
84
|
+
function __d4() {
|
|
85
|
+
return ['$2(>1)@"DeleteServiceAccountResponse";$1({})', [__0, __4, __5]];
|
|
33
86
|
}
|
|
34
|
-
export const CreateFederatedIdentityProviderRequestAssertionsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
35
|
-
item: S.optional(S.String),
|
|
36
|
-
operator: S.optional(S.String),
|
|
37
|
-
value: S.optional(S.String),
|
|
38
|
-
})).annotate({
|
|
39
|
-
identifier: "CreateFederatedIdentityProviderRequestAssertionsItem",
|
|
40
|
-
});
|
|
41
|
-
export const CreateFederatedIdentityProviderRequestAssertionsList = /*@__PURE__*/ S.Array(CreateFederatedIdentityProviderRequestAssertionsItem);
|
|
42
|
-
export const CreateFederatedIdentityProviderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
43
|
-
projectId: S.String.pipe(T.Label()),
|
|
44
|
-
serviceAccountEmail: S.String.pipe(T.Label()),
|
|
45
|
-
assertions: S.optional(CreateFederatedIdentityProviderRequestAssertionsList),
|
|
46
|
-
issuer: S.String,
|
|
47
|
-
name: S.String,
|
|
48
|
-
}).pipe(T.Http({
|
|
49
|
-
method: "POST",
|
|
50
|
-
uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations",
|
|
51
|
-
code: 200,
|
|
52
|
-
baseUrl: "https://service-account.api.stackit.cloud",
|
|
53
|
-
}))).annotate({
|
|
54
|
-
identifier: "CreateFederatedIdentityProviderRequest",
|
|
55
|
-
});
|
|
56
|
-
export const FederatedIdentityProviderAssertionsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
57
|
-
item: S.String,
|
|
58
|
-
operator: S.String,
|
|
59
|
-
value: S.String,
|
|
60
|
-
})).annotate({
|
|
61
|
-
identifier: "FederatedIdentityProviderAssertionsItem",
|
|
62
|
-
});
|
|
63
|
-
export const FederatedIdentityProviderAssertionsList = /*@__PURE__*/ S.Array(FederatedIdentityProviderAssertionsItem);
|
|
64
|
-
export const FederatedIdentityProvider = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
65
|
-
assertions: FederatedIdentityProviderAssertionsList,
|
|
66
|
-
createdAt: S.String,
|
|
67
|
-
id: S.optional(S.String),
|
|
68
|
-
issuer: S.String,
|
|
69
|
-
name: S.String,
|
|
70
|
-
updatedAt: S.String,
|
|
71
|
-
})).annotate({
|
|
72
|
-
identifier: "FederatedIdentityProvider",
|
|
73
|
-
});
|
|
74
|
-
export const CreateServiceAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
75
|
-
projectId: S.String.pipe(T.Label()),
|
|
76
|
-
name: S.String,
|
|
77
|
-
}).pipe(T.Http({
|
|
78
|
-
method: "POST",
|
|
79
|
-
uri: "/v2/projects/{projectId}/service-accounts",
|
|
80
|
-
code: 200,
|
|
81
|
-
baseUrl: "https://service-account.api.stackit.cloud",
|
|
82
|
-
}))).annotate({
|
|
83
|
-
identifier: "CreateServiceAccountRequest",
|
|
84
|
-
});
|
|
85
|
-
export const ServiceAccount2 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
86
|
-
email: S.String,
|
|
87
|
-
id: S.String,
|
|
88
|
-
internal: S.Boolean,
|
|
89
|
-
projectId: S.String,
|
|
90
|
-
})).annotate({ identifier: "ServiceAccount2" });
|
|
91
|
-
export const CreateServiceAccountKeyRequestAlgorithm = S.String;
|
|
92
|
-
export const CreateServiceAccountKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
93
|
-
projectId: S.String.pipe(T.Label()),
|
|
94
|
-
serviceAccountEmail: S.String.pipe(T.Label()),
|
|
95
|
-
algorithm: S.optional(CreateServiceAccountKeyRequestAlgorithm),
|
|
96
|
-
publicKey: S.optional(S.String),
|
|
97
|
-
validUntil: S.optional(S.String),
|
|
98
|
-
}).pipe(T.Http({
|
|
99
|
-
method: "POST",
|
|
100
|
-
uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys",
|
|
101
|
-
code: 200,
|
|
102
|
-
baseUrl: "https://service-account.api.stackit.cloud",
|
|
103
|
-
}))).annotate({
|
|
104
|
-
identifier: "CreateServiceAccountKeyRequest",
|
|
105
|
-
});
|
|
106
|
-
export const CreateServiceAccountKeyResponseCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
107
|
-
aud: S.String,
|
|
108
|
-
iss: S.String,
|
|
109
|
-
kid: S.String,
|
|
110
|
-
privateKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
111
|
-
sub: S.String,
|
|
112
|
-
tokenEndpoint: S.optional(S.String),
|
|
113
|
-
})).annotate({
|
|
114
|
-
identifier: "CreateServiceAccountKeyResponseCredentials",
|
|
115
|
-
});
|
|
116
|
-
export const CreateServiceAccountKeyResponseKeyAlgorithm = S.String;
|
|
117
|
-
export const CreateServiceAccountKeyResponseKeyOrigin = S.String;
|
|
118
|
-
export const CreateServiceAccountKeyResponseKeyType = S.String;
|
|
119
|
-
export const CreateServiceAccountKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
120
|
-
active: S.Boolean,
|
|
121
|
-
createdAt: S.String,
|
|
122
|
-
credentials: CreateServiceAccountKeyResponseCredentials,
|
|
123
|
-
id: S.String,
|
|
124
|
-
keyAlgorithm: CreateServiceAccountKeyResponseKeyAlgorithm,
|
|
125
|
-
keyOrigin: CreateServiceAccountKeyResponseKeyOrigin,
|
|
126
|
-
keyType: CreateServiceAccountKeyResponseKeyType,
|
|
127
|
-
publicKey: S.String,
|
|
128
|
-
validUntil: S.optional(S.String),
|
|
129
|
-
})).annotate({
|
|
130
|
-
identifier: "CreateServiceAccountKeyResponse",
|
|
131
|
-
});
|
|
132
|
-
export const CreateShortLivedAccessTokenRequestGrantType = S.String;
|
|
133
|
-
export const CreateShortLivedAccessTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
134
|
-
assertion: S.optional(S.String),
|
|
135
|
-
grant_type: CreateShortLivedAccessTokenRequestGrantType,
|
|
136
|
-
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
137
|
-
}).pipe(T.Http({
|
|
138
|
-
method: "POST",
|
|
139
|
-
uri: "/token",
|
|
140
|
-
code: 200,
|
|
141
|
-
baseUrl: "https://service-account.api.stackit.cloud",
|
|
142
|
-
}))).annotate({
|
|
143
|
-
identifier: "CreateShortLivedAccessTokenRequest",
|
|
144
|
-
});
|
|
145
|
-
export const CreateShortLivedAccessTokenResponseTokenType = S.String;
|
|
146
|
-
export const CreateShortLivedAccessTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
147
|
-
access_token: S.String.pipe(T.SensitiveValue({})),
|
|
148
|
-
expires_in: S.Number,
|
|
149
|
-
refresh_token: S.String.pipe(T.SensitiveValue({})),
|
|
150
|
-
scope: S.String,
|
|
151
|
-
token_type: CreateShortLivedAccessTokenResponseTokenType,
|
|
152
|
-
})).annotate({
|
|
153
|
-
identifier: "CreateShortLivedAccessTokenResponse",
|
|
154
|
-
});
|
|
155
|
-
export const DeleteServiceAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
156
|
-
projectId: S.String.pipe(T.Label()),
|
|
157
|
-
serviceAccountEmail: S.String.pipe(T.Label()),
|
|
158
|
-
}).pipe(T.Http({
|
|
159
|
-
method: "DELETE",
|
|
160
|
-
uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}",
|
|
161
|
-
code: 200,
|
|
162
|
-
baseUrl: "https://service-account.api.stackit.cloud",
|
|
163
|
-
}))).annotate({
|
|
164
|
-
identifier: "DeleteServiceAccountRequest",
|
|
165
|
-
});
|
|
166
|
-
export const DeleteServiceAccountResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
167
|
-
identifier: "DeleteServiceAccountResponse",
|
|
168
|
-
});
|
|
169
|
-
export const DeleteServiceAccountKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
170
|
-
projectId: S.String.pipe(T.Label()),
|
|
171
|
-
serviceAccountEmail: S.String.pipe(T.Label()),
|
|
172
|
-
keyId: S.String.pipe(T.Label()),
|
|
173
|
-
}).pipe(T.Http({
|
|
174
|
-
method: "DELETE",
|
|
175
|
-
uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys/{keyId}",
|
|
176
|
-
code: 200,
|
|
177
|
-
baseUrl: "https://service-account.api.stackit.cloud",
|
|
178
|
-
}))).annotate({
|
|
179
|
-
identifier: "DeleteServiceAccountKeyRequest",
|
|
180
|
-
});
|
|
181
|
-
export const DeleteServiceAccountKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteServiceAccountKeyResponse" });
|
|
182
|
-
export const DeleteServiceFederatedIdentityProviderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
183
|
-
projectId: S.String.pipe(T.Label()),
|
|
184
|
-
serviceAccountEmail: S.String.pipe(T.Label()),
|
|
185
|
-
federationId: S.String.pipe(T.Label()),
|
|
186
|
-
}).pipe(T.Http({
|
|
187
|
-
method: "DELETE",
|
|
188
|
-
uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations/{federationId}",
|
|
189
|
-
code: 200,
|
|
190
|
-
baseUrl: "https://service-account.api.stackit.cloud",
|
|
191
|
-
}))).annotate({
|
|
192
|
-
identifier: "DeleteServiceFederatedIdentityProviderRequest",
|
|
193
|
-
});
|
|
194
|
-
export const DeleteServiceFederatedIdentityProviderResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
195
|
-
identifier: "DeleteServiceFederatedIdentityProviderResponse",
|
|
196
|
-
});
|
|
197
|
-
export const GetFederatedIdentityProviderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
198
|
-
projectId: S.String.pipe(T.Label()),
|
|
199
|
-
serviceAccountEmail: S.String.pipe(T.Label()),
|
|
200
|
-
federationId: S.String.pipe(T.Label()),
|
|
201
|
-
}).pipe(T.Http({
|
|
202
|
-
method: "GET",
|
|
203
|
-
uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations/{federationId}",
|
|
204
|
-
code: 200,
|
|
205
|
-
baseUrl: "https://service-account.api.stackit.cloud",
|
|
206
|
-
}))).annotate({
|
|
207
|
-
identifier: "GetFederatedIdentityProviderRequest",
|
|
208
|
-
});
|
|
209
|
-
export const GetJWKSRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
210
|
-
serviceAccountEmail: S.String.pipe(T.Label()),
|
|
211
|
-
}).pipe(T.Http({
|
|
212
|
-
method: "GET",
|
|
213
|
-
uri: "/v2/service-accounts/public/jwk/{serviceAccountEmail}",
|
|
214
|
-
code: 200,
|
|
215
|
-
baseUrl: "https://service-account.api.stackit.cloud",
|
|
216
|
-
}))).annotate({ identifier: "GetJWKSRequest" });
|
|
217
|
-
export const JWK = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
218
|
-
alg: S.optional(S.String),
|
|
219
|
-
e: S.String,
|
|
220
|
-
kid: S.optional(S.String),
|
|
221
|
-
ks: S.optional(S.String),
|
|
222
|
-
n: S.String,
|
|
223
|
-
ops: S.optional(S.String),
|
|
224
|
-
use: S.optional(S.String),
|
|
225
|
-
x5c: S.optional(S.String),
|
|
226
|
-
x5t: S.optional(S.String),
|
|
227
|
-
x5t256: S.optional(S.String),
|
|
228
|
-
x5u: S.optional(S.String),
|
|
229
|
-
})).annotate({ identifier: "JWK" });
|
|
230
|
-
export const JWKSKeysList = /*@__PURE__*/ S.Array(JWK);
|
|
231
|
-
export const JWKS = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
232
|
-
keys: JWKSKeysList,
|
|
233
|
-
})).annotate({ identifier: "JWKS" });
|
|
234
|
-
export const GetServiceAccountKeyRequestFormat = S.String;
|
|
235
|
-
export const GetServiceAccountKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
236
|
-
projectId: S.String.pipe(T.Label()),
|
|
237
|
-
serviceAccountEmail: S.String.pipe(T.Label()),
|
|
238
|
-
keyId: S.String.pipe(T.Label()),
|
|
239
|
-
format: S.optional(GetServiceAccountKeyRequestFormat.pipe(T.Query())),
|
|
240
|
-
}).pipe(T.Http({
|
|
241
|
-
method: "GET",
|
|
242
|
-
uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys/{keyId}",
|
|
243
|
-
code: 200,
|
|
244
|
-
baseUrl: "https://service-account.api.stackit.cloud",
|
|
245
|
-
}))).annotate({
|
|
246
|
-
identifier: "GetServiceAccountKeyRequest",
|
|
247
|
-
});
|
|
248
|
-
export const GetServiceAccountKeyResponseCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
249
|
-
aud: S.String,
|
|
250
|
-
iss: S.String,
|
|
251
|
-
kid: S.String,
|
|
252
|
-
sub: S.String,
|
|
253
|
-
})).annotate({
|
|
254
|
-
identifier: "GetServiceAccountKeyResponseCredentials",
|
|
255
|
-
});
|
|
256
|
-
export const GetServiceAccountKeyResponseKeyAlgorithm = S.String;
|
|
257
|
-
export const GetServiceAccountKeyResponseKeyOrigin = S.String;
|
|
258
|
-
export const GetServiceAccountKeyResponseKeyType = S.String;
|
|
259
|
-
export const GetServiceAccountKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
260
|
-
active: S.Boolean,
|
|
261
|
-
createdAt: S.String,
|
|
262
|
-
credentials: GetServiceAccountKeyResponseCredentials,
|
|
263
|
-
id: S.String,
|
|
264
|
-
keyAlgorithm: GetServiceAccountKeyResponseKeyAlgorithm,
|
|
265
|
-
keyOrigin: GetServiceAccountKeyResponseKeyOrigin,
|
|
266
|
-
keyType: GetServiceAccountKeyResponseKeyType,
|
|
267
|
-
publicKey: S.optional(S.String),
|
|
268
|
-
validUntil: S.optional(S.String),
|
|
269
|
-
})).annotate({
|
|
270
|
-
identifier: "GetServiceAccountKeyResponse",
|
|
271
|
-
});
|
|
272
|
-
export const ListFederatedIdentityProvidersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
273
|
-
projectId: S.String.pipe(T.Label()),
|
|
274
|
-
serviceAccountEmail: S.String.pipe(T.Label()),
|
|
275
|
-
}).pipe(T.Http({
|
|
276
|
-
method: "GET",
|
|
277
|
-
uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations",
|
|
278
|
-
code: 200,
|
|
279
|
-
baseUrl: "https://service-account.api.stackit.cloud",
|
|
280
|
-
}))).annotate({
|
|
281
|
-
identifier: "ListFederatedIdentityProvidersRequest",
|
|
282
|
-
});
|
|
283
|
-
export const FederatedListFederatedIdentityProvidersResponseResourcesList = /*@__PURE__*/ S.Array(FederatedIdentityProvider);
|
|
284
|
-
export const FederatedListFederatedIdentityProvidersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
285
|
-
itemsPerPage: S.Number,
|
|
286
|
-
resources: FederatedListFederatedIdentityProvidersResponseResourcesList,
|
|
287
|
-
startIndex: S.Number,
|
|
288
|
-
totalResults: S.Number,
|
|
289
|
-
})).annotate({
|
|
290
|
-
identifier: "FederatedListFederatedIdentityProvidersResponse",
|
|
291
|
-
});
|
|
292
|
-
export const ListServiceAccountKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
293
|
-
projectId: S.String.pipe(T.Label()),
|
|
294
|
-
serviceAccountEmail: S.String.pipe(T.Label()),
|
|
295
|
-
}).pipe(T.Http({
|
|
296
|
-
method: "GET",
|
|
297
|
-
uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys",
|
|
298
|
-
code: 200,
|
|
299
|
-
baseUrl: "https://service-account.api.stackit.cloud",
|
|
300
|
-
}))).annotate({
|
|
301
|
-
identifier: "ListServiceAccountKeysRequest",
|
|
302
|
-
});
|
|
303
|
-
export const ServiceAccountKeyListResponseKeyAlgorithm = S.String;
|
|
304
|
-
export const ServiceAccountKeyListResponseKeyOrigin = S.String;
|
|
305
|
-
export const ServiceAccountKeyListResponseKeyType = S.String;
|
|
306
|
-
export const ServiceAccountKeyListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
307
|
-
active: S.Boolean,
|
|
308
|
-
createdAt: S.String,
|
|
309
|
-
id: S.String,
|
|
310
|
-
keyAlgorithm: ServiceAccountKeyListResponseKeyAlgorithm,
|
|
311
|
-
keyOrigin: ServiceAccountKeyListResponseKeyOrigin,
|
|
312
|
-
keyType: ServiceAccountKeyListResponseKeyType,
|
|
313
|
-
validUntil: S.optional(S.String),
|
|
314
|
-
})).annotate({
|
|
315
|
-
identifier: "ServiceAccountKeyListResponse",
|
|
316
|
-
});
|
|
317
|
-
export const ListServiceAccountKeysResponseItemsList = /*@__PURE__*/ S.Array(ServiceAccountKeyListResponse);
|
|
318
|
-
export const ListServiceAccountKeysResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
319
|
-
items: ListServiceAccountKeysResponseItemsList,
|
|
320
|
-
})).annotate({
|
|
321
|
-
identifier: "ListServiceAccountKeysResponse",
|
|
322
|
-
});
|
|
323
|
-
export const ListServiceAccountsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
324
|
-
projectId: S.String.pipe(T.Label()),
|
|
325
|
-
}).pipe(T.Http({
|
|
326
|
-
method: "GET",
|
|
327
|
-
uri: "/v2/projects/{projectId}/service-accounts",
|
|
328
|
-
code: 200,
|
|
329
|
-
baseUrl: "https://service-account.api.stackit.cloud",
|
|
330
|
-
}))).annotate({
|
|
331
|
-
identifier: "ListServiceAccountsRequest",
|
|
332
|
-
});
|
|
333
|
-
export const ListServiceAccountsResponseItemsList = /*@__PURE__*/ S.Array(ServiceAccount2);
|
|
334
|
-
export const ListServiceAccountsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
335
|
-
items: ListServiceAccountsResponseItemsList,
|
|
336
|
-
})).annotate({
|
|
337
|
-
identifier: "ListServiceAccountsResponse",
|
|
338
|
-
});
|
|
339
|
-
export const PartialUpdateServiceAccountFederatedIdentityProviderRequestAssertionsItem = CreateFederatedIdentityProviderRequestAssertionsItem;
|
|
340
|
-
export const PartialUpdateServiceAccountFederatedIdentityProviderRequestAssertionsList =
|
|
341
|
-
/*@__PURE__*/ S.Array(CreateFederatedIdentityProviderRequestAssertionsItem);
|
|
342
|
-
export const PartialUpdateServiceAccountFederatedIdentityProviderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
343
|
-
projectId: S.String.pipe(T.Label()),
|
|
344
|
-
serviceAccountEmail: S.String.pipe(T.Label()),
|
|
345
|
-
federationId: S.String.pipe(T.Label()),
|
|
346
|
-
assertions: S.optional(PartialUpdateServiceAccountFederatedIdentityProviderRequestAssertionsList),
|
|
347
|
-
issuer: S.String,
|
|
348
|
-
name: S.String,
|
|
349
|
-
}).pipe(T.Http({
|
|
350
|
-
method: "PATCH",
|
|
351
|
-
uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/federations/{federationId}",
|
|
352
|
-
code: 200,
|
|
353
|
-
baseUrl: "https://service-account.api.stackit.cloud",
|
|
354
|
-
}))).annotate({
|
|
355
|
-
identifier: "PartialUpdateServiceAccountFederatedIdentityProviderRequest",
|
|
356
|
-
});
|
|
357
|
-
export const PartialUpdateServiceAccountKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
358
|
-
projectId: S.String.pipe(T.Label()),
|
|
359
|
-
serviceAccountEmail: S.String.pipe(T.Label()),
|
|
360
|
-
keyId: S.String.pipe(T.Label()),
|
|
361
|
-
active: S.optional(S.Boolean),
|
|
362
|
-
validUntil: S.optional(S.String),
|
|
363
|
-
}).pipe(T.Http({
|
|
364
|
-
method: "PATCH",
|
|
365
|
-
uri: "/v2/projects/{projectId}/service-accounts/{serviceAccountEmail}/keys/{keyId}",
|
|
366
|
-
code: 200,
|
|
367
|
-
baseUrl: "https://service-account.api.stackit.cloud",
|
|
368
|
-
}))).annotate({
|
|
369
|
-
identifier: "PartialUpdateServiceAccountKeyRequest",
|
|
370
|
-
});
|
|
371
|
-
export const PartialUpdateServiceAccountKeyResponseKeyAlgorithm = S.String;
|
|
372
|
-
export const PartialUpdateServiceAccountKeyResponseKeyOrigin = S.String;
|
|
373
|
-
export const PartialUpdateServiceAccountKeyResponseKeyType = S.String;
|
|
374
|
-
export const PartialUpdateServiceAccountKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
375
|
-
active: S.Boolean,
|
|
376
|
-
createdAt: S.String,
|
|
377
|
-
id: S.String,
|
|
378
|
-
keyAlgorithm: PartialUpdateServiceAccountKeyResponseKeyAlgorithm,
|
|
379
|
-
keyOrigin: PartialUpdateServiceAccountKeyResponseKeyOrigin,
|
|
380
|
-
keyType: PartialUpdateServiceAccountKeyResponseKeyType,
|
|
381
|
-
validUntil: S.optional(S.String),
|
|
382
|
-
})).annotate({
|
|
383
|
-
identifier: "PartialUpdateServiceAccountKeyResponse",
|
|
384
|
-
});
|
|
385
|
-
/** Create a new Federated Identity Provider Federate the service account with an identity provider. */
|
|
386
|
-
export const createFederatedIdentityProvider = /*@__PURE__*/ API.make(() => ({
|
|
387
|
-
input: CreateFederatedIdentityProviderRequest,
|
|
388
|
-
output: FederatedIdentityProvider,
|
|
389
|
-
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
390
|
-
protocol: StackitProtocol,
|
|
391
|
-
retry: Retry.Retry,
|
|
392
|
-
}));
|
|
393
|
-
/** Create a new Service Account Create a new Service Account in a project. The service account only resides in the project, and initially has no roles or permissions on any resources. After creation, the service account can be assigned to this project, other projects in the parent organization or to the parent organization. */
|
|
394
|
-
export const createServiceAccount = /*@__PURE__*/ API.make(() => ({
|
|
395
|
-
input: CreateServiceAccountRequest,
|
|
396
|
-
output: ServiceAccount2,
|
|
397
|
-
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
398
|
-
protocol: StackitProtocol,
|
|
399
|
-
retry: Retry.Retry,
|
|
400
|
-
}));
|
|
401
|
-
/** Create a new Service Account key Create a new key to the service account. You can generate an RSA keypair, and post the PUBLIC part of the keypair, or leave empty, then the service will generate a pair. Maximum of 10 key can be added. A new key cannot be created using the same service account (authenticated using the short lived token of another key of the same service account). */
|
|
402
|
-
export const createServiceAccountKey = /*@__PURE__*/ API.make(() => ({
|
|
403
|
-
input: CreateServiceAccountKeyRequest,
|
|
404
|
-
output: CreateServiceAccountKeyResponse,
|
|
405
|
-
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
406
|
-
protocol: StackitProtocol,
|
|
407
|
-
retry: Retry.Retry,
|
|
408
|
-
}));
|
|
409
|
-
/** Request short lived API access token (OAUTH2). Request a short lived API access token with OAUTH2. Compatible with [Using JWTs as Authorization Grants](https://www.rfc-editor.org/rfc/rfc7523.html#section-2.1) You can request a token with a self signed token, or with a refresh token. */
|
|
410
|
-
export const createShortLivedAccessToken = /*@__PURE__*/ API.make(() => ({
|
|
411
|
-
input: CreateShortLivedAccessTokenRequest,
|
|
412
|
-
output: CreateShortLivedAccessTokenResponse,
|
|
413
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
414
|
-
protocol: StackitProtocol,
|
|
415
|
-
retry: Retry.Retry,
|
|
416
|
-
}));
|
|
417
|
-
/** Delete Service Account Delete a Service Account. */
|
|
418
|
-
export const deleteServiceAccount = /*@__PURE__*/ API.make(() => ({
|
|
419
|
-
input: DeleteServiceAccountRequest,
|
|
420
|
-
output: DeleteServiceAccountResponse,
|
|
421
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
422
|
-
protocol: StackitProtocol,
|
|
423
|
-
retry: Retry.Retry,
|
|
424
|
-
}));
|
|
425
|
-
/** Delete a service account key Delete a key */
|
|
426
|
-
export const deleteServiceAccountKey = /*@__PURE__*/ API.make(() => ({
|
|
427
|
-
input: DeleteServiceAccountKeyRequest,
|
|
428
|
-
output: DeleteServiceAccountKeyResponse,
|
|
429
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
430
|
-
protocol: StackitProtocol,
|
|
431
|
-
retry: Retry.Retry,
|
|
432
|
-
}));
|
|
433
|
-
/** Delete a service account Federated Identity Provider Delete a Federated Identity Provider */
|
|
434
|
-
export const deleteServiceFederatedIdentityProvider = /*@__PURE__*/ API.make(() => ({
|
|
435
|
-
input: DeleteServiceFederatedIdentityProviderRequest,
|
|
436
|
-
output: DeleteServiceFederatedIdentityProviderResponse,
|
|
437
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
438
|
-
protocol: StackitProtocol,
|
|
439
|
-
retry: Retry.Retry,
|
|
440
|
-
}));
|
|
441
|
-
/** Get a service account Federated Identity Provider Get a Federated Identity Provider of the service account by its ID. */
|
|
442
|
-
export const getFederatedIdentityProvider = /*@__PURE__*/ API.make(() => ({
|
|
443
|
-
input: GetFederatedIdentityProviderRequest,
|
|
444
|
-
output: FederatedIdentityProvider,
|
|
445
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
446
|
-
protocol: StackitProtocol,
|
|
447
|
-
retry: Retry.Retry,
|
|
448
|
-
}));
|
|
449
|
-
/** Get JSON Web Key set of the service account Get JSON Web Key set of the service account */
|
|
450
|
-
export const getJWKS =
|
|
451
|
-
/*@__PURE__*/ API.make(() => ({
|
|
452
|
-
input: GetJWKSRequest,
|
|
453
|
-
output: JWKS,
|
|
454
|
-
errors: [UnknownStackitError],
|
|
455
|
-
protocol: StackitProtocol,
|
|
456
|
-
retry: Retry.Retry,
|
|
457
|
-
}));
|
|
458
|
-
/** Get service account key details Get key details */
|
|
459
|
-
export const getServiceAccountKey = /*@__PURE__*/ API.make(() => ({
|
|
460
|
-
input: GetServiceAccountKeyRequest,
|
|
461
|
-
output: GetServiceAccountKeyResponse,
|
|
462
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
463
|
-
protocol: StackitProtocol,
|
|
464
|
-
retry: Retry.Retry,
|
|
465
|
-
}));
|
|
466
|
-
/** List all federated identity providers List all the identity providers the service account is federated with. */
|
|
467
|
-
export const listFederatedIdentityProviders = /*@__PURE__*/ API.make(() => ({
|
|
468
|
-
input: ListFederatedIdentityProvidersRequest,
|
|
469
|
-
output: FederatedListFederatedIdentityProvidersResponse,
|
|
470
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
471
|
-
protocol: StackitProtocol,
|
|
472
|
-
retry: Retry.Retry,
|
|
473
|
-
}));
|
|
474
|
-
/** List all keys that belong to the service account List all keys that belong to the service account */
|
|
475
|
-
export const listServiceAccountKeys = /*@__PURE__*/ API.make(() => ({
|
|
476
|
-
input: ListServiceAccountKeysRequest,
|
|
477
|
-
output: ListServiceAccountKeysResponse,
|
|
478
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
479
|
-
protocol: StackitProtocol,
|
|
480
|
-
retry: Retry.Retry,
|
|
481
|
-
}));
|
|
482
|
-
/** List all Service Accounts List all Service Account resources in a project. Returns the service account resources, not the service accounts that has access to the project. */
|
|
483
|
-
export const listServiceAccounts = /*@__PURE__*/ API.make(() => ({
|
|
484
|
-
input: ListServiceAccountsRequest,
|
|
485
|
-
output: ListServiceAccountsResponse,
|
|
486
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
487
|
-
protocol: StackitProtocol,
|
|
488
|
-
retry: Retry.Retry,
|
|
489
|
-
}));
|
|
490
|
-
/** Update Service Account Federated Identity Provider Update a Federated Identity Provider. */
|
|
491
|
-
export const partialUpdateServiceAccountFederatedIdentityProvider = /*@__PURE__*/ API.make(() => ({
|
|
492
|
-
input: PartialUpdateServiceAccountFederatedIdentityProviderRequest,
|
|
493
|
-
output: FederatedIdentityProvider,
|
|
494
|
-
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
495
|
-
protocol: StackitProtocol,
|
|
496
|
-
retry: Retry.Retry,
|
|
497
|
-
}));
|
|
498
|
-
/** Update Service Account key Update a key. You can activate or deactivate a key, or set/delete validUntil. The key cannot be updated using the same service account (authenticated using the short lived token of the key). */
|
|
499
|
-
export const partialUpdateServiceAccountKey = /*@__PURE__*/ API.make(() => ({
|
|
500
|
-
input: PartialUpdateServiceAccountKeyRequest,
|
|
501
|
-
output: PartialUpdateServiceAccountKeyResponse,
|
|
502
|
-
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
503
|
-
protocol: StackitProtocol,
|
|
504
|
-
retry: Retry.Retry,
|
|
505
|
-
}));
|
|
506
|
-
//# sourceMappingURL=service_account.js.map
|