@distilled.cloud/vercel 1.0.0-rc.7 → 1.0.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/lib/services/access_groups.d.ts +1 -1
- package/lib/services/access_groups.d.ts.map +1 -1
- package/lib/services/access_groups.js +1 -1
- package/lib/services/access_groups.js.map +1 -1
- package/lib/services/ai_gateway.js +1 -1
- package/lib/services/ai_gateway.js.map +1 -1
- package/lib/services/aliases.d.ts +3 -3
- package/lib/services/aliases.d.ts.map +1 -1
- package/lib/services/aliases.js +4 -4
- package/lib/services/aliases.js.map +1 -1
- package/lib/services/api_ai_gateway.d.ts +275 -0
- package/lib/services/api_ai_gateway.d.ts.map +1 -0
- package/lib/services/api_ai_gateway.js +229 -0
- package/lib/services/api_ai_gateway.js.map +1 -0
- package/lib/services/artifacts.d.ts +1 -1
- package/lib/services/artifacts.d.ts.map +1 -1
- package/lib/services/artifacts.js +12 -12
- package/lib/services/artifacts.js.map +1 -1
- package/lib/services/authentication.js +1 -1
- package/lib/services/authentication.js.map +1 -1
- package/lib/services/billing.d.ts +145 -7
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +121 -5
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bulk_redirects.d.ts +4 -4
- package/lib/services/bulk_redirects.d.ts.map +1 -1
- package/lib/services/bulk_redirects.js +4 -4
- package/lib/services/bulk_redirects.js.map +1 -1
- package/lib/services/certs.d.ts +9 -9
- package/lib/services/certs.d.ts.map +1 -1
- package/lib/services/certs.js +10 -12
- package/lib/services/certs.js.map +1 -1
- package/lib/services/checks_v2.d.ts +5 -0
- package/lib/services/checks_v2.d.ts.map +1 -1
- package/lib/services/checks_v2.js +6 -1
- package/lib/services/checks_v2.js.map +1 -1
- package/lib/services/connect.d.ts +1721 -527
- package/lib/services/connect.d.ts.map +1 -1
- package/lib/services/connect.js +1034 -414
- package/lib/services/connect.js.map +1 -1
- package/lib/services/deployments.d.ts +338 -30
- package/lib/services/deployments.d.ts.map +1 -1
- package/lib/services/deployments.js +335 -11
- package/lib/services/deployments.js.map +1 -1
- package/lib/services/dns.d.ts +13 -13
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +13 -14
- package/lib/services/dns.js.map +1 -1
- package/lib/services/domains.d.ts +55 -27
- package/lib/services/domains.d.ts.map +1 -1
- package/lib/services/domains.js +38 -25
- package/lib/services/domains.js.map +1 -1
- package/lib/services/domains_registrar.d.ts.map +1 -1
- package/lib/services/domains_registrar.js +1 -1
- package/lib/services/domains_registrar.js.map +1 -1
- package/lib/services/drains.d.ts +8 -8
- package/lib/services/drains.d.ts.map +1 -1
- package/lib/services/drains.js +1 -1
- package/lib/services/drains.js.map +1 -1
- package/lib/services/edge_cache.js +1 -1
- package/lib/services/edge_cache.js.map +1 -1
- package/lib/services/environment.d.ts +39 -39
- package/lib/services/environment.d.ts.map +1 -1
- package/lib/services/environment.js +35 -37
- package/lib/services/environment.js.map +1 -1
- package/lib/services/feature_flags.d.ts +93 -309
- package/lib/services/feature_flags.d.ts.map +1 -1
- package/lib/services/feature_flags.js +93 -303
- package/lib/services/feature_flags.js.map +1 -1
- package/lib/services/global_config.d.ts +40 -40
- package/lib/services/global_config.d.ts.map +1 -1
- package/lib/services/global_config.js +16 -14
- package/lib/services/global_config.js.map +1 -1
- package/lib/services/index.d.ts +3 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -1
- package/lib/services/integrations.d.ts +44 -17
- package/lib/services/integrations.d.ts.map +1 -1
- package/lib/services/integrations.js +32 -7
- package/lib/services/integrations.js.map +1 -1
- package/lib/services/kms.d.ts +1095 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +982 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/log_drains.d.ts +4 -4
- package/lib/services/log_drains.d.ts.map +1 -1
- package/lib/services/log_drains.js +1 -1
- package/lib/services/log_drains.js.map +1 -1
- package/lib/services/logs.js +1 -1
- package/lib/services/logs.js.map +1 -1
- package/lib/services/marketplace.d.ts +95 -33
- package/lib/services/marketplace.d.ts.map +1 -1
- package/lib/services/marketplace.js +123 -31
- package/lib/services/marketplace.js.map +1 -1
- package/lib/services/microfrontends.d.ts +290 -250
- package/lib/services/microfrontends.d.ts.map +1 -1
- package/lib/services/microfrontends.js +281 -244
- package/lib/services/microfrontends.js.map +1 -1
- package/lib/services/misc.d.ts +192 -0
- package/lib/services/misc.d.ts.map +1 -0
- package/lib/services/misc.js +125 -0
- package/lib/services/misc.js.map +1 -0
- package/lib/services/networking.d.ts +123 -2
- package/lib/services/networking.d.ts.map +1 -1
- package/lib/services/networking.js +132 -2
- package/lib/services/networking.js.map +1 -1
- package/lib/services/observability.js +1 -1
- package/lib/services/observability.js.map +1 -1
- package/lib/services/project_members.js +1 -1
- package/lib/services/project_members.js.map +1 -1
- package/lib/services/project_routes.d.ts.map +1 -1
- package/lib/services/project_routes.js +1 -1
- package/lib/services/project_routes.js.map +1 -1
- package/lib/services/projects.d.ts +356 -116
- package/lib/services/projects.d.ts.map +1 -1
- package/lib/services/projects.js +260 -64
- package/lib/services/projects.js.map +1 -1
- package/lib/services/rolling_release.d.ts +2 -2
- package/lib/services/rolling_release.d.ts.map +1 -1
- package/lib/services/rolling_release.js +1 -1
- package/lib/services/rolling_release.js.map +1 -1
- package/lib/services/sandboxes.d.ts +1007 -410
- package/lib/services/sandboxes.d.ts.map +1 -1
- package/lib/services/sandboxes.js +732 -293
- package/lib/services/sandboxes.js.map +1 -1
- package/lib/services/security.d.ts +590 -275
- package/lib/services/security.d.ts.map +1 -1
- package/lib/services/security.js +562 -208
- package/lib/services/security.js.map +1 -1
- package/lib/services/storage.d.ts +69 -69
- package/lib/services/storage.d.ts.map +1 -1
- package/lib/services/storage.js +59 -59
- package/lib/services/storage.js.map +1 -1
- package/lib/services/teams.d.ts +351 -328
- package/lib/services/teams.d.ts.map +1 -1
- package/lib/services/teams.js +299 -284
- package/lib/services/teams.js.map +1 -1
- package/lib/services/user.d.ts +4237 -3650
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +3426 -2935
- package/lib/services/user.js.map +1 -1
- package/lib/services/vcr.d.ts +80 -122
- package/lib/services/vcr.d.ts.map +1 -1
- package/lib/services/vcr.js +89 -144
- package/lib/services/vcr.js.map +1 -1
- package/lib/services/web_analytics.d.ts +42 -10
- package/lib/services/web_analytics.d.ts.map +1 -1
- package/lib/services/web_analytics.js +39 -9
- package/lib/services/web_analytics.js.map +1 -1
- package/lib/services/webhooks.d.ts +13 -1
- package/lib/services/webhooks.d.ts.map +1 -1
- package/lib/services/webhooks.js +11 -1
- package/lib/services/webhooks.js.map +1 -1
- package/package.json +6 -5
- package/src/services/access_groups.ts +5 -2
- package/src/services/ai_gateway.ts +1 -1
- package/src/services/aliases.ts +9 -8
- package/src/services/api_ai_gateway.ts +607 -0
- package/src/services/artifacts.ts +13 -13
- package/src/services/authentication.ts +1 -1
- package/src/services/billing.ts +358 -26
- package/src/services/bulk_redirects.ts +10 -10
- package/src/services/certs.ts +20 -26
- package/src/services/checks_v2.ts +11 -1
- package/src/services/connect.ts +3330 -1121
- package/src/services/deployments.ts +1513 -429
- package/src/services/dns.ts +26 -27
- package/src/services/domains.ts +119 -63
- package/src/services/domains_registrar.ts +37 -37
- package/src/services/drains.ts +35 -18
- package/src/services/edge_cache.ts +1 -1
- package/src/services/environment.ts +99 -95
- package/src/services/feature_flags.ts +332 -884
- package/src/services/global_config.ts +59 -57
- package/src/services/index.ts +3 -0
- package/src/services/integrations.ts +870 -668
- package/src/services/kms.ts +2631 -0
- package/src/services/log_drains.ts +73 -41
- package/src/services/logs.ts +1 -1
- package/src/services/marketplace.ts +324 -96
- package/src/services/microfrontends.ts +1582 -1306
- package/src/services/misc.ts +364 -0
- package/src/services/networking.ts +339 -4
- package/src/services/observability.ts +1 -1
- package/src/services/project_members.ts +1 -1
- package/src/services/project_routes.ts +25 -16
- package/src/services/projects.ts +1987 -691
- package/src/services/rolling_release.ts +100 -96
- package/src/services/sandboxes.ts +3013 -1268
- package/src/services/security.ts +3433 -1845
- package/src/services/storage.ts +145 -141
- package/src/services/teams.ts +1061 -986
- package/src/services/user.ts +8490 -6901
- package/src/services/vcr.ts +349 -443
- package/src/services/web_analytics.ts +83 -13
- package/src/services/webhooks.ts +32 -1
|
@@ -0,0 +1,982 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vercel/specs/openapi.json). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as C from "@distilled.cloud/core/category";
|
|
5
|
+
import * as T from "../traits.js";
|
|
6
|
+
import { VercelProtocol, } from "../protocol.js";
|
|
7
|
+
import * as Retry from "../retry.js";
|
|
8
|
+
export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
9
|
+
/*@__PURE__*/ S.TaggedError()("BadRequest", {
|
|
10
|
+
code: S.Number,
|
|
11
|
+
message: S.String,
|
|
12
|
+
}).pipe(C.withBadRequestError), [{ status: 400 }]) {
|
|
13
|
+
}
|
|
14
|
+
export class Conflict extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
15
|
+
/*@__PURE__*/ S.TaggedError()("Conflict", {
|
|
16
|
+
code: S.Number,
|
|
17
|
+
message: S.String,
|
|
18
|
+
}).pipe(C.withConflictError), [{ status: 409 }]) {
|
|
19
|
+
}
|
|
20
|
+
export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
21
|
+
/*@__PURE__*/ S.TaggedError()("Forbidden", {
|
|
22
|
+
code: S.Number,
|
|
23
|
+
message: S.String,
|
|
24
|
+
}).pipe(C.withAuthError), [{ status: 403 }]) {
|
|
25
|
+
}
|
|
26
|
+
export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
27
|
+
/*@__PURE__*/ S.TaggedError()("NotFound", {
|
|
28
|
+
code: S.Number,
|
|
29
|
+
message: S.String,
|
|
30
|
+
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
31
|
+
}
|
|
32
|
+
export const ActivateKmsSigningKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
33
|
+
issuerId: S.String.pipe(T.Label()),
|
|
34
|
+
keyId: S.String.pipe(T.Label()),
|
|
35
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
36
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
37
|
+
revokePreviousAfterHours: S.optional(S.Number),
|
|
38
|
+
}).pipe(T.Http({
|
|
39
|
+
method: "POST",
|
|
40
|
+
uri: "/v1/kms/issuers/{issuerId}/keys/{keyId}/activate",
|
|
41
|
+
code: 200,
|
|
42
|
+
}))).annotate({
|
|
43
|
+
identifier: "ActivateKmsSigningKeyRequest",
|
|
44
|
+
});
|
|
45
|
+
export const ActivateKmsSigningKeyResponseStatus = /*@__PURE__*/ S.String;
|
|
46
|
+
export const ActivateKmsSigningKeyResponsePublicKeyKeyOpsList =
|
|
47
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
48
|
+
export const ActivateKmsSigningKeyResponsePublicKeyX5cList =
|
|
49
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
50
|
+
export const ActivateKmsSigningKeyResponsePublicKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
51
|
+
kty: S.optional(S.String),
|
|
52
|
+
kid: S.optional(S.String),
|
|
53
|
+
alg: S.optional(S.String),
|
|
54
|
+
use: S.optional(S.String),
|
|
55
|
+
key_ops: S.optional(ActivateKmsSigningKeyResponsePublicKeyKeyOpsList),
|
|
56
|
+
x5c: S.optional(ActivateKmsSigningKeyResponsePublicKeyX5cList),
|
|
57
|
+
x5t_S256: S.optional(S.String.pipe(T.Body("x5t#S256"))),
|
|
58
|
+
})).annotate({
|
|
59
|
+
identifier: "ActivateKmsSigningKeyResponsePublicKey",
|
|
60
|
+
});
|
|
61
|
+
export const ActivateKmsSigningKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
62
|
+
keyId: S.String,
|
|
63
|
+
importKeyId: S.optional(S.String),
|
|
64
|
+
issuerId: S.String,
|
|
65
|
+
algorithm: S.String,
|
|
66
|
+
status: ActivateKmsSigningKeyResponseStatus,
|
|
67
|
+
publicKey: S.optional(ActivateKmsSigningKeyResponsePublicKey),
|
|
68
|
+
publicKeyFingerprint: S.optional(S.String),
|
|
69
|
+
publicKeyPem: S.optional(S.String),
|
|
70
|
+
certificatePem: S.optional(S.String),
|
|
71
|
+
createdAt: S.String,
|
|
72
|
+
updatedAt: S.String,
|
|
73
|
+
revokeAt: S.optional(S.String),
|
|
74
|
+
activateAt: S.optional(S.String),
|
|
75
|
+
activatedAt: S.optional(S.String),
|
|
76
|
+
})).annotate({
|
|
77
|
+
identifier: "ActivateKmsSigningKeyResponse",
|
|
78
|
+
});
|
|
79
|
+
export const CreateKmsIssuerRequestAlgorithm = /*@__PURE__*/ S.String;
|
|
80
|
+
export const CreateKmsIssuerRequestClaimsSchemaMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
81
|
+
export const CreateKmsIssuerRequestPolicyCase0Kind = /*@__PURE__*/ S.String;
|
|
82
|
+
export const CreateKmsIssuerRequestPolicyCase0EnvironmentsList =
|
|
83
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
84
|
+
export const CreateKmsIssuerRequestPolicyCase0TokenClaimsMap =
|
|
85
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
86
|
+
export const CreateKmsIssuerRequestPolicyCase0 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
87
|
+
kind: CreateKmsIssuerRequestPolicyCase0Kind,
|
|
88
|
+
teamId: S.String,
|
|
89
|
+
projectId: S.String,
|
|
90
|
+
environments: CreateKmsIssuerRequestPolicyCase0EnvironmentsList,
|
|
91
|
+
tokenClaims: S.optional(CreateKmsIssuerRequestPolicyCase0TokenClaimsMap),
|
|
92
|
+
})).annotate({
|
|
93
|
+
identifier: "CreateKmsIssuerRequestPolicyCase0",
|
|
94
|
+
});
|
|
95
|
+
export const CreateKmsIssuerRequestPolicyCase1Kind = /*@__PURE__*/ S.String;
|
|
96
|
+
export const CreateKmsIssuerRequestPolicyCase1TokenClaimsMap =
|
|
97
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
98
|
+
export const CreateKmsIssuerRequestPolicyCase1 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
99
|
+
kind: CreateKmsIssuerRequestPolicyCase1Kind,
|
|
100
|
+
clientId: S.String,
|
|
101
|
+
tokenClaims: S.optional(CreateKmsIssuerRequestPolicyCase1TokenClaimsMap),
|
|
102
|
+
})).annotate({
|
|
103
|
+
identifier: "CreateKmsIssuerRequestPolicyCase1",
|
|
104
|
+
});
|
|
105
|
+
export const CreateKmsIssuerRequestPolicy =
|
|
106
|
+
/*@__PURE__*/ S.Unknown;
|
|
107
|
+
export const CreateKmsIssuerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
108
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
109
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
110
|
+
name: S.String,
|
|
111
|
+
algorithm: S.optional(CreateKmsIssuerRequestAlgorithm),
|
|
112
|
+
claimsSchema: S.optional(CreateKmsIssuerRequestClaimsSchemaMap),
|
|
113
|
+
policy: S.optional(CreateKmsIssuerRequestPolicy),
|
|
114
|
+
importKey: S.optional(S.String),
|
|
115
|
+
importKeyId: S.optional(S.String),
|
|
116
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/kms/issuers", code: 200 }))).annotate({
|
|
117
|
+
identifier: "CreateKmsIssuerRequest",
|
|
118
|
+
});
|
|
119
|
+
export const CreateKmsIssuerResponseAlgorithm = /*@__PURE__*/ S.String;
|
|
120
|
+
export const CreateKmsIssuerResponseOrigin = /*@__PURE__*/ S.String;
|
|
121
|
+
export const CreateKmsIssuerResponseClaimsSchemaMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
122
|
+
export const CreateKmsIssuerResponseSigningKeysItemStatus =
|
|
123
|
+
/*@__PURE__*/ S.String;
|
|
124
|
+
export const CreateKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList =
|
|
125
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
126
|
+
export const CreateKmsIssuerResponseSigningKeysItemPublicKeyX5cList =
|
|
127
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
128
|
+
export const CreateKmsIssuerResponseSigningKeysItemPublicKey =
|
|
129
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
130
|
+
kty: S.optional(S.String),
|
|
131
|
+
kid: S.optional(S.String),
|
|
132
|
+
alg: S.optional(S.String),
|
|
133
|
+
use: S.optional(S.String),
|
|
134
|
+
key_ops: S.optional(CreateKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList),
|
|
135
|
+
x5c: S.optional(CreateKmsIssuerResponseSigningKeysItemPublicKeyX5cList),
|
|
136
|
+
x5t_S256: S.optional(S.String.pipe(T.Body("x5t#S256"))),
|
|
137
|
+
})).annotate({
|
|
138
|
+
identifier: "CreateKmsIssuerResponseSigningKeysItemPublicKey",
|
|
139
|
+
});
|
|
140
|
+
export const CreateKmsIssuerResponseSigningKeysItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
141
|
+
keyId: S.String,
|
|
142
|
+
importKeyId: S.optional(S.String),
|
|
143
|
+
issuerId: S.String,
|
|
144
|
+
algorithm: S.String,
|
|
145
|
+
status: CreateKmsIssuerResponseSigningKeysItemStatus,
|
|
146
|
+
publicKey: S.optional(CreateKmsIssuerResponseSigningKeysItemPublicKey),
|
|
147
|
+
publicKeyFingerprint: S.optional(S.String),
|
|
148
|
+
publicKeyPem: S.optional(S.String),
|
|
149
|
+
certificatePem: S.optional(S.String),
|
|
150
|
+
createdAt: S.String,
|
|
151
|
+
updatedAt: S.String,
|
|
152
|
+
revokeAt: S.optional(S.String),
|
|
153
|
+
activateAt: S.optional(S.String),
|
|
154
|
+
activatedAt: S.optional(S.String),
|
|
155
|
+
})).annotate({
|
|
156
|
+
identifier: "CreateKmsIssuerResponseSigningKeysItem",
|
|
157
|
+
});
|
|
158
|
+
export const CreateKmsIssuerResponseSigningKeysList = /*@__PURE__*/ S.Array(CreateKmsIssuerResponseSigningKeysItem);
|
|
159
|
+
export const CreateKmsIssuerResponsePoliciesItemCase0Kind =
|
|
160
|
+
/*@__PURE__*/ S.String;
|
|
161
|
+
export const CreateKmsIssuerResponsePoliciesItemCase0EnvironmentsList =
|
|
162
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
163
|
+
export const CreateKmsIssuerResponsePoliciesItemCase0TokenClaimsMap =
|
|
164
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
165
|
+
export const CreateKmsIssuerResponsePoliciesItemCase0 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
166
|
+
kind: CreateKmsIssuerResponsePoliciesItemCase0Kind,
|
|
167
|
+
teamId: S.String,
|
|
168
|
+
projectId: S.String,
|
|
169
|
+
environments: CreateKmsIssuerResponsePoliciesItemCase0EnvironmentsList,
|
|
170
|
+
tokenClaims: S.optional(CreateKmsIssuerResponsePoliciesItemCase0TokenClaimsMap),
|
|
171
|
+
createdAt: S.String,
|
|
172
|
+
updatedAt: S.String,
|
|
173
|
+
})).annotate({
|
|
174
|
+
identifier: "CreateKmsIssuerResponsePoliciesItemCase0",
|
|
175
|
+
});
|
|
176
|
+
export const CreateKmsIssuerResponsePoliciesItemCase1Kind =
|
|
177
|
+
/*@__PURE__*/ S.String;
|
|
178
|
+
export const CreateKmsIssuerResponsePoliciesItemCase1TokenClaimsMap =
|
|
179
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
180
|
+
export const CreateKmsIssuerResponsePoliciesItemCase1 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
181
|
+
kind: CreateKmsIssuerResponsePoliciesItemCase1Kind,
|
|
182
|
+
clientId: S.String,
|
|
183
|
+
tokenClaims: S.optional(CreateKmsIssuerResponsePoliciesItemCase1TokenClaimsMap),
|
|
184
|
+
createdAt: S.String,
|
|
185
|
+
updatedAt: S.String,
|
|
186
|
+
})).annotate({
|
|
187
|
+
identifier: "CreateKmsIssuerResponsePoliciesItemCase1",
|
|
188
|
+
});
|
|
189
|
+
export const CreateKmsIssuerResponsePoliciesItem =
|
|
190
|
+
/*@__PURE__*/ S.Unknown;
|
|
191
|
+
export const CreateKmsIssuerResponsePoliciesList = /*@__PURE__*/ S.Array(CreateKmsIssuerResponsePoliciesItem);
|
|
192
|
+
export const CreateKmsIssuerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
193
|
+
id: S.String,
|
|
194
|
+
ownerId: S.String,
|
|
195
|
+
name: S.String,
|
|
196
|
+
algorithm: CreateKmsIssuerResponseAlgorithm,
|
|
197
|
+
origin: CreateKmsIssuerResponseOrigin,
|
|
198
|
+
managedBy: S.optional(S.String),
|
|
199
|
+
claimsSchema: S.optional(CreateKmsIssuerResponseClaimsSchemaMap),
|
|
200
|
+
createdAt: S.String,
|
|
201
|
+
updatedAt: S.String,
|
|
202
|
+
signingKeys: CreateKmsIssuerResponseSigningKeysList,
|
|
203
|
+
policies: CreateKmsIssuerResponsePoliciesList,
|
|
204
|
+
})).annotate({
|
|
205
|
+
identifier: "CreateKmsIssuerResponse",
|
|
206
|
+
});
|
|
207
|
+
export const CreateKmsIssuerPolicyRequestKind = /*@__PURE__*/ S.String;
|
|
208
|
+
export const CreateKmsIssuerPolicyRequestEnvironmentsList =
|
|
209
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
210
|
+
export const CreateKmsIssuerPolicyRequestTokenClaimsMap =
|
|
211
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
212
|
+
export const CreateKmsIssuerPolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
213
|
+
issuerId: S.String.pipe(T.Label()),
|
|
214
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
215
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
216
|
+
kind: CreateKmsIssuerPolicyRequestKind,
|
|
217
|
+
projectId: S.String,
|
|
218
|
+
environments: CreateKmsIssuerPolicyRequestEnvironmentsList,
|
|
219
|
+
tokenClaims: S.optional(CreateKmsIssuerPolicyRequestTokenClaimsMap),
|
|
220
|
+
}).pipe(T.Http({
|
|
221
|
+
method: "POST",
|
|
222
|
+
uri: "/v1/kms/issuers/{issuerId}/policies",
|
|
223
|
+
code: 200,
|
|
224
|
+
}))).annotate({
|
|
225
|
+
identifier: "CreateKmsIssuerPolicyRequest",
|
|
226
|
+
});
|
|
227
|
+
export const CreateKmsIssuerPolicyResponseBodyCase0Kind =
|
|
228
|
+
/*@__PURE__*/ S.String;
|
|
229
|
+
export const CreateKmsIssuerPolicyResponseBodyCase0EnvironmentsList =
|
|
230
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
231
|
+
export const CreateKmsIssuerPolicyResponseBodyCase0TokenClaimsMap =
|
|
232
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
233
|
+
export const CreateKmsIssuerPolicyResponseBodyCase0 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
234
|
+
kind: CreateKmsIssuerPolicyResponseBodyCase0Kind,
|
|
235
|
+
teamId: S.String,
|
|
236
|
+
projectId: S.String,
|
|
237
|
+
environments: CreateKmsIssuerPolicyResponseBodyCase0EnvironmentsList,
|
|
238
|
+
tokenClaims: S.optional(CreateKmsIssuerPolicyResponseBodyCase0TokenClaimsMap),
|
|
239
|
+
createdAt: S.String,
|
|
240
|
+
updatedAt: S.String,
|
|
241
|
+
})).annotate({
|
|
242
|
+
identifier: "CreateKmsIssuerPolicyResponseBodyCase0",
|
|
243
|
+
});
|
|
244
|
+
export const CreateKmsIssuerPolicyResponseBodyCase1Kind =
|
|
245
|
+
/*@__PURE__*/ S.String;
|
|
246
|
+
export const CreateKmsIssuerPolicyResponseBodyCase1TokenClaimsMap =
|
|
247
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
248
|
+
export const CreateKmsIssuerPolicyResponseBodyCase1 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
249
|
+
kind: CreateKmsIssuerPolicyResponseBodyCase1Kind,
|
|
250
|
+
clientId: S.String,
|
|
251
|
+
tokenClaims: S.optional(CreateKmsIssuerPolicyResponseBodyCase1TokenClaimsMap),
|
|
252
|
+
createdAt: S.String,
|
|
253
|
+
updatedAt: S.String,
|
|
254
|
+
})).annotate({
|
|
255
|
+
identifier: "CreateKmsIssuerPolicyResponseBodyCase1",
|
|
256
|
+
});
|
|
257
|
+
export const CreateKmsIssuerPolicyResponseBody =
|
|
258
|
+
/*@__PURE__*/ S.Unknown;
|
|
259
|
+
export const CreateKmsIssuerPolicyResponse = /*@__PURE__*/ S.suspend(() => CreateKmsIssuerPolicyResponseBody.pipe(T.RawResponseRoot())).annotate({
|
|
260
|
+
identifier: "CreateKmsIssuerPolicyResponse",
|
|
261
|
+
});
|
|
262
|
+
export const CreateKmsSigningKeyRequestActivation = /*@__PURE__*/ S.String;
|
|
263
|
+
export const CreateKmsSigningKeyRequestRevokePreviousAt =
|
|
264
|
+
/*@__PURE__*/ S.Unknown;
|
|
265
|
+
export const CreateKmsSigningKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
266
|
+
issuerId: S.String.pipe(T.Label()),
|
|
267
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
268
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
269
|
+
activation: S.optional(CreateKmsSigningKeyRequestActivation),
|
|
270
|
+
revokePreviousAfterHours: S.optional(S.Number),
|
|
271
|
+
revokePreviousAt: S.optional(CreateKmsSigningKeyRequestRevokePreviousAt),
|
|
272
|
+
importKey: S.optional(S.String),
|
|
273
|
+
importKeyId: S.optional(S.String),
|
|
274
|
+
}).pipe(T.Http({
|
|
275
|
+
method: "POST",
|
|
276
|
+
uri: "/v1/kms/issuers/{issuerId}/keys",
|
|
277
|
+
code: 200,
|
|
278
|
+
}))).annotate({
|
|
279
|
+
identifier: "CreateKmsSigningKeyRequest",
|
|
280
|
+
});
|
|
281
|
+
export const CreateKmsSigningKeyResponseStatus = /*@__PURE__*/ S.String;
|
|
282
|
+
export const CreateKmsSigningKeyResponsePublicKeyKeyOpsList =
|
|
283
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
284
|
+
export const CreateKmsSigningKeyResponsePublicKeyX5cList =
|
|
285
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
286
|
+
export const CreateKmsSigningKeyResponsePublicKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
287
|
+
kty: S.optional(S.String),
|
|
288
|
+
kid: S.optional(S.String),
|
|
289
|
+
alg: S.optional(S.String),
|
|
290
|
+
use: S.optional(S.String),
|
|
291
|
+
key_ops: S.optional(CreateKmsSigningKeyResponsePublicKeyKeyOpsList),
|
|
292
|
+
x5c: S.optional(CreateKmsSigningKeyResponsePublicKeyX5cList),
|
|
293
|
+
x5t_S256: S.optional(S.String.pipe(T.Body("x5t#S256"))),
|
|
294
|
+
})).annotate({
|
|
295
|
+
identifier: "CreateKmsSigningKeyResponsePublicKey",
|
|
296
|
+
});
|
|
297
|
+
export const CreateKmsSigningKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
298
|
+
keyId: S.String,
|
|
299
|
+
importKeyId: S.optional(S.String),
|
|
300
|
+
issuerId: S.String,
|
|
301
|
+
algorithm: S.String,
|
|
302
|
+
status: CreateKmsSigningKeyResponseStatus,
|
|
303
|
+
publicKey: S.optional(CreateKmsSigningKeyResponsePublicKey),
|
|
304
|
+
publicKeyFingerprint: S.optional(S.String),
|
|
305
|
+
publicKeyPem: S.optional(S.String),
|
|
306
|
+
certificatePem: S.optional(S.String),
|
|
307
|
+
createdAt: S.String,
|
|
308
|
+
updatedAt: S.String,
|
|
309
|
+
revokeAt: S.optional(S.String),
|
|
310
|
+
activateAt: S.optional(S.String),
|
|
311
|
+
activatedAt: S.optional(S.String),
|
|
312
|
+
})).annotate({
|
|
313
|
+
identifier: "CreateKmsSigningKeyResponse",
|
|
314
|
+
});
|
|
315
|
+
export const DeleteKmsIssuerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
316
|
+
issuerId: S.String.pipe(T.Label()),
|
|
317
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
318
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
319
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/v1/kms/issuers/{issuerId}", code: 200 }))).annotate({
|
|
320
|
+
identifier: "DeleteKmsIssuerRequest",
|
|
321
|
+
});
|
|
322
|
+
export const DeleteKmsIssuerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
323
|
+
identifier: "DeleteKmsIssuerResponse",
|
|
324
|
+
});
|
|
325
|
+
export const DeleteKmsIssuerPolicyRequestKind = /*@__PURE__*/ S.String;
|
|
326
|
+
export const DeleteKmsIssuerPolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
327
|
+
issuerId: S.String.pipe(T.Label()),
|
|
328
|
+
kind: DeleteKmsIssuerPolicyRequestKind.pipe(T.Label()),
|
|
329
|
+
policyKey: S.String.pipe(T.Label()),
|
|
330
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
331
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
332
|
+
}).pipe(T.Http({
|
|
333
|
+
method: "DELETE",
|
|
334
|
+
uri: "/v1/kms/issuers/{issuerId}/policies/{kind}/{policyKey}",
|
|
335
|
+
code: 200,
|
|
336
|
+
}))).annotate({
|
|
337
|
+
identifier: "DeleteKmsIssuerPolicyRequest",
|
|
338
|
+
});
|
|
339
|
+
export const DeleteKmsIssuerPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
340
|
+
identifier: "DeleteKmsIssuerPolicyResponse",
|
|
341
|
+
});
|
|
342
|
+
export const GetKmsIssuerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
343
|
+
issuerId: S.String.pipe(T.Label()),
|
|
344
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
345
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
346
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/kms/issuers/{issuerId}", code: 200 }))).annotate({
|
|
347
|
+
identifier: "GetKmsIssuerRequest",
|
|
348
|
+
});
|
|
349
|
+
export const GetKmsIssuerResponseAlgorithm = /*@__PURE__*/ S.String;
|
|
350
|
+
export const GetKmsIssuerResponseOrigin = /*@__PURE__*/ S.String;
|
|
351
|
+
export const GetKmsIssuerResponseClaimsSchemaMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
352
|
+
export const GetKmsIssuerResponseSigningKeysItemStatus = /*@__PURE__*/ S.String;
|
|
353
|
+
export const GetKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList =
|
|
354
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
355
|
+
export const GetKmsIssuerResponseSigningKeysItemPublicKeyX5cList =
|
|
356
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
357
|
+
export const GetKmsIssuerResponseSigningKeysItemPublicKey =
|
|
358
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
359
|
+
kty: S.optional(S.String),
|
|
360
|
+
kid: S.optional(S.String),
|
|
361
|
+
alg: S.optional(S.String),
|
|
362
|
+
use: S.optional(S.String),
|
|
363
|
+
key_ops: S.optional(GetKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList),
|
|
364
|
+
x5c: S.optional(GetKmsIssuerResponseSigningKeysItemPublicKeyX5cList),
|
|
365
|
+
x5t_S256: S.optional(S.String.pipe(T.Body("x5t#S256"))),
|
|
366
|
+
})).annotate({
|
|
367
|
+
identifier: "GetKmsIssuerResponseSigningKeysItemPublicKey",
|
|
368
|
+
});
|
|
369
|
+
export const GetKmsIssuerResponseSigningKeysItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
370
|
+
keyId: S.String,
|
|
371
|
+
importKeyId: S.optional(S.String),
|
|
372
|
+
issuerId: S.String,
|
|
373
|
+
algorithm: S.String,
|
|
374
|
+
status: GetKmsIssuerResponseSigningKeysItemStatus,
|
|
375
|
+
publicKey: S.optional(GetKmsIssuerResponseSigningKeysItemPublicKey),
|
|
376
|
+
publicKeyFingerprint: S.optional(S.String),
|
|
377
|
+
publicKeyPem: S.optional(S.String),
|
|
378
|
+
certificatePem: S.optional(S.String),
|
|
379
|
+
createdAt: S.String,
|
|
380
|
+
updatedAt: S.String,
|
|
381
|
+
revokeAt: S.optional(S.String),
|
|
382
|
+
activateAt: S.optional(S.String),
|
|
383
|
+
activatedAt: S.optional(S.String),
|
|
384
|
+
})).annotate({
|
|
385
|
+
identifier: "GetKmsIssuerResponseSigningKeysItem",
|
|
386
|
+
});
|
|
387
|
+
export const GetKmsIssuerResponseSigningKeysList = /*@__PURE__*/ S.Array(GetKmsIssuerResponseSigningKeysItem);
|
|
388
|
+
export const GetKmsIssuerResponsePoliciesItemCase0Kind = /*@__PURE__*/ S.String;
|
|
389
|
+
export const GetKmsIssuerResponsePoliciesItemCase0EnvironmentsList =
|
|
390
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
391
|
+
export const GetKmsIssuerResponsePoliciesItemCase0TokenClaimsMap =
|
|
392
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
393
|
+
export const GetKmsIssuerResponsePoliciesItemCase0 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
394
|
+
kind: GetKmsIssuerResponsePoliciesItemCase0Kind,
|
|
395
|
+
teamId: S.String,
|
|
396
|
+
projectId: S.String,
|
|
397
|
+
environments: GetKmsIssuerResponsePoliciesItemCase0EnvironmentsList,
|
|
398
|
+
tokenClaims: S.optional(GetKmsIssuerResponsePoliciesItemCase0TokenClaimsMap),
|
|
399
|
+
createdAt: S.String,
|
|
400
|
+
updatedAt: S.String,
|
|
401
|
+
})).annotate({
|
|
402
|
+
identifier: "GetKmsIssuerResponsePoliciesItemCase0",
|
|
403
|
+
});
|
|
404
|
+
export const GetKmsIssuerResponsePoliciesItemCase1Kind = /*@__PURE__*/ S.String;
|
|
405
|
+
export const GetKmsIssuerResponsePoliciesItemCase1TokenClaimsMap =
|
|
406
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
407
|
+
export const GetKmsIssuerResponsePoliciesItemCase1 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
408
|
+
kind: GetKmsIssuerResponsePoliciesItemCase1Kind,
|
|
409
|
+
clientId: S.String,
|
|
410
|
+
tokenClaims: S.optional(GetKmsIssuerResponsePoliciesItemCase1TokenClaimsMap),
|
|
411
|
+
createdAt: S.String,
|
|
412
|
+
updatedAt: S.String,
|
|
413
|
+
})).annotate({
|
|
414
|
+
identifier: "GetKmsIssuerResponsePoliciesItemCase1",
|
|
415
|
+
});
|
|
416
|
+
export const GetKmsIssuerResponsePoliciesItem =
|
|
417
|
+
/*@__PURE__*/ S.Unknown;
|
|
418
|
+
export const GetKmsIssuerResponsePoliciesList = /*@__PURE__*/ S.Array(GetKmsIssuerResponsePoliciesItem);
|
|
419
|
+
export const GetKmsIssuerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
420
|
+
id: S.String,
|
|
421
|
+
ownerId: S.String,
|
|
422
|
+
name: S.String,
|
|
423
|
+
algorithm: GetKmsIssuerResponseAlgorithm,
|
|
424
|
+
origin: GetKmsIssuerResponseOrigin,
|
|
425
|
+
managedBy: S.optional(S.String),
|
|
426
|
+
claimsSchema: S.optional(GetKmsIssuerResponseClaimsSchemaMap),
|
|
427
|
+
createdAt: S.String,
|
|
428
|
+
updatedAt: S.String,
|
|
429
|
+
signingKeys: GetKmsIssuerResponseSigningKeysList,
|
|
430
|
+
policies: GetKmsIssuerResponsePoliciesList,
|
|
431
|
+
})).annotate({
|
|
432
|
+
identifier: "GetKmsIssuerResponse",
|
|
433
|
+
});
|
|
434
|
+
export const ListKmsIssuersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
435
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
436
|
+
next: S.optional(S.String.pipe(T.Query())),
|
|
437
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
438
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
439
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/kms/issuers", code: 200 }))).annotate({
|
|
440
|
+
identifier: "ListKmsIssuersRequest",
|
|
441
|
+
});
|
|
442
|
+
export const ListKmsIssuersResponseIssuersItemAlgorithm =
|
|
443
|
+
/*@__PURE__*/ S.String;
|
|
444
|
+
export const ListKmsIssuersResponseIssuersItemOrigin = /*@__PURE__*/ S.String;
|
|
445
|
+
export const ListKmsIssuersResponseIssuersItemClaimsSchemaMap =
|
|
446
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
447
|
+
export const ListKmsIssuersResponseIssuersItemSigningKeysItemStatus =
|
|
448
|
+
/*@__PURE__*/ S.String;
|
|
449
|
+
export const ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKeyKeyOpsList =
|
|
450
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
451
|
+
export const ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKeyX5cList =
|
|
452
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
453
|
+
export const ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKey =
|
|
454
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
455
|
+
kty: S.optional(S.String),
|
|
456
|
+
kid: S.optional(S.String),
|
|
457
|
+
alg: S.optional(S.String),
|
|
458
|
+
use: S.optional(S.String),
|
|
459
|
+
key_ops: S.optional(ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKeyKeyOpsList),
|
|
460
|
+
x5c: S.optional(ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKeyX5cList),
|
|
461
|
+
x5t_S256: S.optional(S.String.pipe(T.Body("x5t#S256"))),
|
|
462
|
+
})).annotate({
|
|
463
|
+
identifier: "ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKey",
|
|
464
|
+
});
|
|
465
|
+
export const ListKmsIssuersResponseIssuersItemSigningKeysItem =
|
|
466
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
467
|
+
keyId: S.String,
|
|
468
|
+
importKeyId: S.optional(S.String),
|
|
469
|
+
issuerId: S.String,
|
|
470
|
+
algorithm: S.String,
|
|
471
|
+
status: ListKmsIssuersResponseIssuersItemSigningKeysItemStatus,
|
|
472
|
+
publicKey: S.optional(ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKey),
|
|
473
|
+
publicKeyFingerprint: S.optional(S.String),
|
|
474
|
+
publicKeyPem: S.optional(S.String),
|
|
475
|
+
certificatePem: S.optional(S.String),
|
|
476
|
+
createdAt: S.String,
|
|
477
|
+
updatedAt: S.String,
|
|
478
|
+
revokeAt: S.optional(S.String),
|
|
479
|
+
activateAt: S.optional(S.String),
|
|
480
|
+
activatedAt: S.optional(S.String),
|
|
481
|
+
})).annotate({
|
|
482
|
+
identifier: "ListKmsIssuersResponseIssuersItemSigningKeysItem",
|
|
483
|
+
});
|
|
484
|
+
export const ListKmsIssuersResponseIssuersItemSigningKeysList =
|
|
485
|
+
/*@__PURE__*/ S.Array(ListKmsIssuersResponseIssuersItemSigningKeysItem);
|
|
486
|
+
export const ListKmsIssuersResponseIssuersItemPoliciesItemCase0Kind =
|
|
487
|
+
/*@__PURE__*/ S.String;
|
|
488
|
+
export const ListKmsIssuersResponseIssuersItemPoliciesItemCase0EnvironmentsList =
|
|
489
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
490
|
+
export const ListKmsIssuersResponseIssuersItemPoliciesItemCase0TokenClaimsMap =
|
|
491
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
492
|
+
export const ListKmsIssuersResponseIssuersItemPoliciesItemCase0 =
|
|
493
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
494
|
+
kind: ListKmsIssuersResponseIssuersItemPoliciesItemCase0Kind,
|
|
495
|
+
teamId: S.String,
|
|
496
|
+
projectId: S.String,
|
|
497
|
+
environments: ListKmsIssuersResponseIssuersItemPoliciesItemCase0EnvironmentsList,
|
|
498
|
+
tokenClaims: S.optional(ListKmsIssuersResponseIssuersItemPoliciesItemCase0TokenClaimsMap),
|
|
499
|
+
createdAt: S.String,
|
|
500
|
+
updatedAt: S.String,
|
|
501
|
+
})).annotate({
|
|
502
|
+
identifier: "ListKmsIssuersResponseIssuersItemPoliciesItemCase0",
|
|
503
|
+
});
|
|
504
|
+
export const ListKmsIssuersResponseIssuersItemPoliciesItemCase1Kind =
|
|
505
|
+
/*@__PURE__*/ S.String;
|
|
506
|
+
export const ListKmsIssuersResponseIssuersItemPoliciesItemCase1TokenClaimsMap =
|
|
507
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
508
|
+
export const ListKmsIssuersResponseIssuersItemPoliciesItemCase1 =
|
|
509
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
510
|
+
kind: ListKmsIssuersResponseIssuersItemPoliciesItemCase1Kind,
|
|
511
|
+
clientId: S.String,
|
|
512
|
+
tokenClaims: S.optional(ListKmsIssuersResponseIssuersItemPoliciesItemCase1TokenClaimsMap),
|
|
513
|
+
createdAt: S.String,
|
|
514
|
+
updatedAt: S.String,
|
|
515
|
+
})).annotate({
|
|
516
|
+
identifier: "ListKmsIssuersResponseIssuersItemPoliciesItemCase1",
|
|
517
|
+
});
|
|
518
|
+
export const ListKmsIssuersResponseIssuersItemPoliciesItem =
|
|
519
|
+
/*@__PURE__*/ S.Unknown;
|
|
520
|
+
export const ListKmsIssuersResponseIssuersItemPoliciesList =
|
|
521
|
+
/*@__PURE__*/ S.Array(ListKmsIssuersResponseIssuersItemPoliciesItem);
|
|
522
|
+
export const ListKmsIssuersResponseIssuersItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
523
|
+
id: S.String,
|
|
524
|
+
ownerId: S.String,
|
|
525
|
+
name: S.String,
|
|
526
|
+
algorithm: ListKmsIssuersResponseIssuersItemAlgorithm,
|
|
527
|
+
origin: ListKmsIssuersResponseIssuersItemOrigin,
|
|
528
|
+
managedBy: S.optional(S.String),
|
|
529
|
+
claimsSchema: S.optional(ListKmsIssuersResponseIssuersItemClaimsSchemaMap),
|
|
530
|
+
createdAt: S.String,
|
|
531
|
+
updatedAt: S.String,
|
|
532
|
+
signingKeys: ListKmsIssuersResponseIssuersItemSigningKeysList,
|
|
533
|
+
policies: ListKmsIssuersResponseIssuersItemPoliciesList,
|
|
534
|
+
})).annotate({
|
|
535
|
+
identifier: "ListKmsIssuersResponseIssuersItem",
|
|
536
|
+
});
|
|
537
|
+
export const ListKmsIssuersResponseIssuersList = /*@__PURE__*/ S.Array(ListKmsIssuersResponseIssuersItem);
|
|
538
|
+
export const ListKmsIssuersResponsePagination = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
539
|
+
count: S.Number,
|
|
540
|
+
next: S.NullOr(S.String),
|
|
541
|
+
})).annotate({
|
|
542
|
+
identifier: "ListKmsIssuersResponsePagination",
|
|
543
|
+
});
|
|
544
|
+
export const ListKmsIssuersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
545
|
+
issuers: ListKmsIssuersResponseIssuersList,
|
|
546
|
+
pagination: ListKmsIssuersResponsePagination,
|
|
547
|
+
})).annotate({
|
|
548
|
+
identifier: "ListKmsIssuersResponse",
|
|
549
|
+
});
|
|
550
|
+
export const RevokeKmsSigningKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
551
|
+
issuerId: S.String.pipe(T.Label()),
|
|
552
|
+
keyId: S.String.pipe(T.Label()),
|
|
553
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
554
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
555
|
+
}).pipe(T.Http({
|
|
556
|
+
method: "POST",
|
|
557
|
+
uri: "/v1/kms/issuers/{issuerId}/keys/{keyId}/revoke",
|
|
558
|
+
code: 200,
|
|
559
|
+
}))).annotate({
|
|
560
|
+
identifier: "RevokeKmsSigningKeyRequest",
|
|
561
|
+
});
|
|
562
|
+
export const RevokeKmsSigningKeyResponseAlgorithm = /*@__PURE__*/ S.String;
|
|
563
|
+
export const RevokeKmsSigningKeyResponseOrigin = /*@__PURE__*/ S.String;
|
|
564
|
+
export const RevokeKmsSigningKeyResponseClaimsSchemaMap =
|
|
565
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
566
|
+
export const RevokeKmsSigningKeyResponseSigningKeysItemStatus =
|
|
567
|
+
/*@__PURE__*/ S.String;
|
|
568
|
+
export const RevokeKmsSigningKeyResponseSigningKeysItemPublicKeyKeyOpsList =
|
|
569
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
570
|
+
export const RevokeKmsSigningKeyResponseSigningKeysItemPublicKeyX5cList =
|
|
571
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
572
|
+
export const RevokeKmsSigningKeyResponseSigningKeysItemPublicKey =
|
|
573
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
574
|
+
kty: S.optional(S.String),
|
|
575
|
+
kid: S.optional(S.String),
|
|
576
|
+
alg: S.optional(S.String),
|
|
577
|
+
use: S.optional(S.String),
|
|
578
|
+
key_ops: S.optional(RevokeKmsSigningKeyResponseSigningKeysItemPublicKeyKeyOpsList),
|
|
579
|
+
x5c: S.optional(RevokeKmsSigningKeyResponseSigningKeysItemPublicKeyX5cList),
|
|
580
|
+
x5t_S256: S.optional(S.String.pipe(T.Body("x5t#S256"))),
|
|
581
|
+
})).annotate({
|
|
582
|
+
identifier: "RevokeKmsSigningKeyResponseSigningKeysItemPublicKey",
|
|
583
|
+
});
|
|
584
|
+
export const RevokeKmsSigningKeyResponseSigningKeysItem =
|
|
585
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
586
|
+
keyId: S.String,
|
|
587
|
+
importKeyId: S.optional(S.String),
|
|
588
|
+
issuerId: S.String,
|
|
589
|
+
algorithm: S.String,
|
|
590
|
+
status: RevokeKmsSigningKeyResponseSigningKeysItemStatus,
|
|
591
|
+
publicKey: S.optional(RevokeKmsSigningKeyResponseSigningKeysItemPublicKey),
|
|
592
|
+
publicKeyFingerprint: S.optional(S.String),
|
|
593
|
+
publicKeyPem: S.optional(S.String),
|
|
594
|
+
certificatePem: S.optional(S.String),
|
|
595
|
+
createdAt: S.String,
|
|
596
|
+
updatedAt: S.String,
|
|
597
|
+
revokeAt: S.optional(S.String),
|
|
598
|
+
activateAt: S.optional(S.String),
|
|
599
|
+
activatedAt: S.optional(S.String),
|
|
600
|
+
})).annotate({
|
|
601
|
+
identifier: "RevokeKmsSigningKeyResponseSigningKeysItem",
|
|
602
|
+
});
|
|
603
|
+
export const RevokeKmsSigningKeyResponseSigningKeysList = /*@__PURE__*/ S.Array(RevokeKmsSigningKeyResponseSigningKeysItem);
|
|
604
|
+
export const RevokeKmsSigningKeyResponsePoliciesItemCase0Kind =
|
|
605
|
+
/*@__PURE__*/ S.String;
|
|
606
|
+
export const RevokeKmsSigningKeyResponsePoliciesItemCase0EnvironmentsList =
|
|
607
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
608
|
+
export const RevokeKmsSigningKeyResponsePoliciesItemCase0TokenClaimsMap =
|
|
609
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
610
|
+
export const RevokeKmsSigningKeyResponsePoliciesItemCase0 =
|
|
611
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
612
|
+
kind: RevokeKmsSigningKeyResponsePoliciesItemCase0Kind,
|
|
613
|
+
teamId: S.String,
|
|
614
|
+
projectId: S.String,
|
|
615
|
+
environments: RevokeKmsSigningKeyResponsePoliciesItemCase0EnvironmentsList,
|
|
616
|
+
tokenClaims: S.optional(RevokeKmsSigningKeyResponsePoliciesItemCase0TokenClaimsMap),
|
|
617
|
+
createdAt: S.String,
|
|
618
|
+
updatedAt: S.String,
|
|
619
|
+
})).annotate({
|
|
620
|
+
identifier: "RevokeKmsSigningKeyResponsePoliciesItemCase0",
|
|
621
|
+
});
|
|
622
|
+
export const RevokeKmsSigningKeyResponsePoliciesItemCase1Kind =
|
|
623
|
+
/*@__PURE__*/ S.String;
|
|
624
|
+
export const RevokeKmsSigningKeyResponsePoliciesItemCase1TokenClaimsMap =
|
|
625
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
626
|
+
export const RevokeKmsSigningKeyResponsePoliciesItemCase1 =
|
|
627
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
628
|
+
kind: RevokeKmsSigningKeyResponsePoliciesItemCase1Kind,
|
|
629
|
+
clientId: S.String,
|
|
630
|
+
tokenClaims: S.optional(RevokeKmsSigningKeyResponsePoliciesItemCase1TokenClaimsMap),
|
|
631
|
+
createdAt: S.String,
|
|
632
|
+
updatedAt: S.String,
|
|
633
|
+
})).annotate({
|
|
634
|
+
identifier: "RevokeKmsSigningKeyResponsePoliciesItemCase1",
|
|
635
|
+
});
|
|
636
|
+
export const RevokeKmsSigningKeyResponsePoliciesItem =
|
|
637
|
+
/*@__PURE__*/ S.Unknown;
|
|
638
|
+
export const RevokeKmsSigningKeyResponsePoliciesList = /*@__PURE__*/ S.Array(RevokeKmsSigningKeyResponsePoliciesItem);
|
|
639
|
+
export const RevokeKmsSigningKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
640
|
+
id: S.String,
|
|
641
|
+
ownerId: S.String,
|
|
642
|
+
name: S.String,
|
|
643
|
+
algorithm: RevokeKmsSigningKeyResponseAlgorithm,
|
|
644
|
+
origin: RevokeKmsSigningKeyResponseOrigin,
|
|
645
|
+
managedBy: S.optional(S.String),
|
|
646
|
+
claimsSchema: S.optional(RevokeKmsSigningKeyResponseClaimsSchemaMap),
|
|
647
|
+
createdAt: S.String,
|
|
648
|
+
updatedAt: S.String,
|
|
649
|
+
signingKeys: RevokeKmsSigningKeyResponseSigningKeysList,
|
|
650
|
+
policies: RevokeKmsSigningKeyResponsePoliciesList,
|
|
651
|
+
})).annotate({
|
|
652
|
+
identifier: "RevokeKmsSigningKeyResponse",
|
|
653
|
+
});
|
|
654
|
+
export const SignKmsMessageRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
655
|
+
issuerId: S.String.pipe(T.Label()),
|
|
656
|
+
message: S.String,
|
|
657
|
+
}).pipe(T.Http({
|
|
658
|
+
method: "POST",
|
|
659
|
+
uri: "/v1/kms/issuers/{issuerId}/sign/message",
|
|
660
|
+
code: 200,
|
|
661
|
+
}))).annotate({
|
|
662
|
+
identifier: "SignKmsMessageRequest",
|
|
663
|
+
});
|
|
664
|
+
export const SignKmsMessageResponseSignatureHeaderCritList =
|
|
665
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
666
|
+
export const SignKmsMessageResponseSignatureHeaderX5cList =
|
|
667
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
668
|
+
export const SignKmsMessageResponseSignatureHeaderJwk = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
669
|
+
n: S.optional(S.String),
|
|
670
|
+
e: S.optional(S.String),
|
|
671
|
+
kty: S.optional(S.String),
|
|
672
|
+
crv: S.optional(S.String),
|
|
673
|
+
x: S.optional(S.String),
|
|
674
|
+
y: S.optional(S.String),
|
|
675
|
+
alg: S.optional(S.String),
|
|
676
|
+
pub: S.optional(S.String),
|
|
677
|
+
})).annotate({
|
|
678
|
+
identifier: "SignKmsMessageResponseSignatureHeaderJwk",
|
|
679
|
+
});
|
|
680
|
+
export const SignKmsMessageResponseSignatureHeader = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
681
|
+
alg: S.optional(S.String),
|
|
682
|
+
b64: S.optional(S.Boolean),
|
|
683
|
+
crit: S.optional(SignKmsMessageResponseSignatureHeaderCritList),
|
|
684
|
+
kid: S.optional(S.String),
|
|
685
|
+
x5t: S.optional(S.String),
|
|
686
|
+
x5c: S.optional(SignKmsMessageResponseSignatureHeaderX5cList),
|
|
687
|
+
x5u: S.optional(S.String),
|
|
688
|
+
jku: S.optional(S.String),
|
|
689
|
+
jwk: S.optional(SignKmsMessageResponseSignatureHeaderJwk),
|
|
690
|
+
typ: S.optional(S.String),
|
|
691
|
+
cty: S.optional(S.String),
|
|
692
|
+
})).annotate({
|
|
693
|
+
identifier: "SignKmsMessageResponseSignatureHeader",
|
|
694
|
+
});
|
|
695
|
+
export const SignKmsMessageResponseSignature = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
696
|
+
payload: S.String,
|
|
697
|
+
signature: S.String,
|
|
698
|
+
header: S.optional(SignKmsMessageResponseSignatureHeader),
|
|
699
|
+
protected: S.optional(S.String),
|
|
700
|
+
})).annotate({
|
|
701
|
+
identifier: "SignKmsMessageResponseSignature",
|
|
702
|
+
});
|
|
703
|
+
export const SignKmsMessageResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
704
|
+
signature: SignKmsMessageResponseSignature,
|
|
705
|
+
})).annotate({
|
|
706
|
+
identifier: "SignKmsMessageResponse",
|
|
707
|
+
});
|
|
708
|
+
export const SignKmsTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
709
|
+
issuerId: S.String.pipe(T.Label()),
|
|
710
|
+
claims: S.optional(S.Unknown),
|
|
711
|
+
headers: S.optional(S.Unknown),
|
|
712
|
+
ttl: S.optional(S.NullOr(S.Number)),
|
|
713
|
+
}).pipe(T.Http({
|
|
714
|
+
method: "POST",
|
|
715
|
+
uri: "/v1/kms/issuers/{issuerId}/sign/token",
|
|
716
|
+
code: 200,
|
|
717
|
+
}))).annotate({
|
|
718
|
+
identifier: "SignKmsTokenRequest",
|
|
719
|
+
});
|
|
720
|
+
export const SignKmsTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
721
|
+
token: S.String,
|
|
722
|
+
})).annotate({
|
|
723
|
+
identifier: "SignKmsTokenResponse",
|
|
724
|
+
});
|
|
725
|
+
export const UpdateKmsIssuerRequestClaimsSchemaMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
726
|
+
export const UpdateKmsIssuerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
727
|
+
issuerId: S.String.pipe(T.Label()),
|
|
728
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
729
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
730
|
+
name: S.optional(S.String),
|
|
731
|
+
claimsSchema: S.optional(S.NullOr(UpdateKmsIssuerRequestClaimsSchemaMap)),
|
|
732
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/v1/kms/issuers/{issuerId}", code: 200 }))).annotate({
|
|
733
|
+
identifier: "UpdateKmsIssuerRequest",
|
|
734
|
+
});
|
|
735
|
+
export const UpdateKmsIssuerResponseAlgorithm = /*@__PURE__*/ S.String;
|
|
736
|
+
export const UpdateKmsIssuerResponseOrigin = /*@__PURE__*/ S.String;
|
|
737
|
+
export const UpdateKmsIssuerResponseClaimsSchemaMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
738
|
+
export const UpdateKmsIssuerResponseSigningKeysItemStatus =
|
|
739
|
+
/*@__PURE__*/ S.String;
|
|
740
|
+
export const UpdateKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList =
|
|
741
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
742
|
+
export const UpdateKmsIssuerResponseSigningKeysItemPublicKeyX5cList =
|
|
743
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
744
|
+
export const UpdateKmsIssuerResponseSigningKeysItemPublicKey =
|
|
745
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
746
|
+
kty: S.optional(S.String),
|
|
747
|
+
kid: S.optional(S.String),
|
|
748
|
+
alg: S.optional(S.String),
|
|
749
|
+
use: S.optional(S.String),
|
|
750
|
+
key_ops: S.optional(UpdateKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList),
|
|
751
|
+
x5c: S.optional(UpdateKmsIssuerResponseSigningKeysItemPublicKeyX5cList),
|
|
752
|
+
x5t_S256: S.optional(S.String.pipe(T.Body("x5t#S256"))),
|
|
753
|
+
})).annotate({
|
|
754
|
+
identifier: "UpdateKmsIssuerResponseSigningKeysItemPublicKey",
|
|
755
|
+
});
|
|
756
|
+
export const UpdateKmsIssuerResponseSigningKeysItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
757
|
+
keyId: S.String,
|
|
758
|
+
importKeyId: S.optional(S.String),
|
|
759
|
+
issuerId: S.String,
|
|
760
|
+
algorithm: S.String,
|
|
761
|
+
status: UpdateKmsIssuerResponseSigningKeysItemStatus,
|
|
762
|
+
publicKey: S.optional(UpdateKmsIssuerResponseSigningKeysItemPublicKey),
|
|
763
|
+
publicKeyFingerprint: S.optional(S.String),
|
|
764
|
+
publicKeyPem: S.optional(S.String),
|
|
765
|
+
certificatePem: S.optional(S.String),
|
|
766
|
+
createdAt: S.String,
|
|
767
|
+
updatedAt: S.String,
|
|
768
|
+
revokeAt: S.optional(S.String),
|
|
769
|
+
activateAt: S.optional(S.String),
|
|
770
|
+
activatedAt: S.optional(S.String),
|
|
771
|
+
})).annotate({
|
|
772
|
+
identifier: "UpdateKmsIssuerResponseSigningKeysItem",
|
|
773
|
+
});
|
|
774
|
+
export const UpdateKmsIssuerResponseSigningKeysList = /*@__PURE__*/ S.Array(UpdateKmsIssuerResponseSigningKeysItem);
|
|
775
|
+
export const UpdateKmsIssuerResponsePoliciesItemCase0Kind =
|
|
776
|
+
/*@__PURE__*/ S.String;
|
|
777
|
+
export const UpdateKmsIssuerResponsePoliciesItemCase0EnvironmentsList =
|
|
778
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
779
|
+
export const UpdateKmsIssuerResponsePoliciesItemCase0TokenClaimsMap =
|
|
780
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
781
|
+
export const UpdateKmsIssuerResponsePoliciesItemCase0 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
782
|
+
kind: UpdateKmsIssuerResponsePoliciesItemCase0Kind,
|
|
783
|
+
teamId: S.String,
|
|
784
|
+
projectId: S.String,
|
|
785
|
+
environments: UpdateKmsIssuerResponsePoliciesItemCase0EnvironmentsList,
|
|
786
|
+
tokenClaims: S.optional(UpdateKmsIssuerResponsePoliciesItemCase0TokenClaimsMap),
|
|
787
|
+
createdAt: S.String,
|
|
788
|
+
updatedAt: S.String,
|
|
789
|
+
})).annotate({
|
|
790
|
+
identifier: "UpdateKmsIssuerResponsePoliciesItemCase0",
|
|
791
|
+
});
|
|
792
|
+
export const UpdateKmsIssuerResponsePoliciesItemCase1Kind =
|
|
793
|
+
/*@__PURE__*/ S.String;
|
|
794
|
+
export const UpdateKmsIssuerResponsePoliciesItemCase1TokenClaimsMap =
|
|
795
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
796
|
+
export const UpdateKmsIssuerResponsePoliciesItemCase1 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
797
|
+
kind: UpdateKmsIssuerResponsePoliciesItemCase1Kind,
|
|
798
|
+
clientId: S.String,
|
|
799
|
+
tokenClaims: S.optional(UpdateKmsIssuerResponsePoliciesItemCase1TokenClaimsMap),
|
|
800
|
+
createdAt: S.String,
|
|
801
|
+
updatedAt: S.String,
|
|
802
|
+
})).annotate({
|
|
803
|
+
identifier: "UpdateKmsIssuerResponsePoliciesItemCase1",
|
|
804
|
+
});
|
|
805
|
+
export const UpdateKmsIssuerResponsePoliciesItem =
|
|
806
|
+
/*@__PURE__*/ S.Unknown;
|
|
807
|
+
export const UpdateKmsIssuerResponsePoliciesList = /*@__PURE__*/ S.Array(UpdateKmsIssuerResponsePoliciesItem);
|
|
808
|
+
export const UpdateKmsIssuerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
809
|
+
id: S.String,
|
|
810
|
+
ownerId: S.String,
|
|
811
|
+
name: S.String,
|
|
812
|
+
algorithm: UpdateKmsIssuerResponseAlgorithm,
|
|
813
|
+
origin: UpdateKmsIssuerResponseOrigin,
|
|
814
|
+
managedBy: S.optional(S.String),
|
|
815
|
+
claimsSchema: S.optional(UpdateKmsIssuerResponseClaimsSchemaMap),
|
|
816
|
+
createdAt: S.String,
|
|
817
|
+
updatedAt: S.String,
|
|
818
|
+
signingKeys: UpdateKmsIssuerResponseSigningKeysList,
|
|
819
|
+
policies: UpdateKmsIssuerResponsePoliciesList,
|
|
820
|
+
})).annotate({
|
|
821
|
+
identifier: "UpdateKmsIssuerResponse",
|
|
822
|
+
});
|
|
823
|
+
export const UpdateKmsIssuerPolicyRequestKind = /*@__PURE__*/ S.String;
|
|
824
|
+
export const UpdateKmsIssuerPolicyRequestEnvironmentsList =
|
|
825
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
826
|
+
export const UpdateKmsIssuerPolicyRequestTokenClaimsMap =
|
|
827
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
828
|
+
export const UpdateKmsIssuerPolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
829
|
+
issuerId: S.String.pipe(T.Label()),
|
|
830
|
+
kind: UpdateKmsIssuerPolicyRequestKind.pipe(T.Label()),
|
|
831
|
+
policyKey: S.String.pipe(T.Label()),
|
|
832
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
833
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
834
|
+
environments: S.optional(UpdateKmsIssuerPolicyRequestEnvironmentsList),
|
|
835
|
+
tokenClaims: S.optional(S.NullOr(UpdateKmsIssuerPolicyRequestTokenClaimsMap)),
|
|
836
|
+
}).pipe(T.Http({
|
|
837
|
+
method: "PATCH",
|
|
838
|
+
uri: "/v1/kms/issuers/{issuerId}/policies/{kind}/{policyKey}",
|
|
839
|
+
code: 200,
|
|
840
|
+
}))).annotate({
|
|
841
|
+
identifier: "UpdateKmsIssuerPolicyRequest",
|
|
842
|
+
});
|
|
843
|
+
export const UpdateKmsIssuerPolicyResponseBodyCase0Kind =
|
|
844
|
+
/*@__PURE__*/ S.String;
|
|
845
|
+
export const UpdateKmsIssuerPolicyResponseBodyCase0EnvironmentsList =
|
|
846
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
847
|
+
export const UpdateKmsIssuerPolicyResponseBodyCase0TokenClaimsMap =
|
|
848
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
849
|
+
export const UpdateKmsIssuerPolicyResponseBodyCase0 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
850
|
+
kind: UpdateKmsIssuerPolicyResponseBodyCase0Kind,
|
|
851
|
+
teamId: S.String,
|
|
852
|
+
projectId: S.String,
|
|
853
|
+
environments: UpdateKmsIssuerPolicyResponseBodyCase0EnvironmentsList,
|
|
854
|
+
tokenClaims: S.optional(UpdateKmsIssuerPolicyResponseBodyCase0TokenClaimsMap),
|
|
855
|
+
createdAt: S.String,
|
|
856
|
+
updatedAt: S.String,
|
|
857
|
+
})).annotate({
|
|
858
|
+
identifier: "UpdateKmsIssuerPolicyResponseBodyCase0",
|
|
859
|
+
});
|
|
860
|
+
export const UpdateKmsIssuerPolicyResponseBodyCase1Kind =
|
|
861
|
+
/*@__PURE__*/ S.String;
|
|
862
|
+
export const UpdateKmsIssuerPolicyResponseBodyCase1TokenClaimsMap =
|
|
863
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
864
|
+
export const UpdateKmsIssuerPolicyResponseBodyCase1 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
865
|
+
kind: UpdateKmsIssuerPolicyResponseBodyCase1Kind,
|
|
866
|
+
clientId: S.String,
|
|
867
|
+
tokenClaims: S.optional(UpdateKmsIssuerPolicyResponseBodyCase1TokenClaimsMap),
|
|
868
|
+
createdAt: S.String,
|
|
869
|
+
updatedAt: S.String,
|
|
870
|
+
})).annotate({
|
|
871
|
+
identifier: "UpdateKmsIssuerPolicyResponseBodyCase1",
|
|
872
|
+
});
|
|
873
|
+
export const UpdateKmsIssuerPolicyResponseBody =
|
|
874
|
+
/*@__PURE__*/ S.Unknown;
|
|
875
|
+
export const UpdateKmsIssuerPolicyResponse = /*@__PURE__*/ S.suspend(() => UpdateKmsIssuerPolicyResponseBody.pipe(T.RawResponseRoot())).annotate({
|
|
876
|
+
identifier: "UpdateKmsIssuerPolicyResponse",
|
|
877
|
+
});
|
|
878
|
+
/** Activate a signing key Activate a pending signing key so the issuer starts signing with it. */
|
|
879
|
+
export const activateKmsSigningKey = /*@__PURE__*/ API.make(() => ({
|
|
880
|
+
input: ActivateKmsSigningKeyRequest,
|
|
881
|
+
output: ActivateKmsSigningKeyResponse,
|
|
882
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
883
|
+
protocol: VercelProtocol,
|
|
884
|
+
retry: Retry.Retry,
|
|
885
|
+
}));
|
|
886
|
+
/** Create an issuer Create a new KMS issuer for the authenticated team. An issuer owns the asymmetric signing keys that are used to sign tokens and messages. */
|
|
887
|
+
export const createKmsIssuer = /*@__PURE__*/ API.make(() => ({
|
|
888
|
+
input: CreateKmsIssuerRequest,
|
|
889
|
+
output: CreateKmsIssuerResponse,
|
|
890
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
891
|
+
protocol: VercelProtocol,
|
|
892
|
+
retry: Retry.Retry,
|
|
893
|
+
}));
|
|
894
|
+
/** Create an issuer policy Attach a policy to a KMS issuer that grants a project's deployments permission to sign with it. */
|
|
895
|
+
export const createKmsIssuerPolicy = /*@__PURE__*/ API.make(() => ({
|
|
896
|
+
input: CreateKmsIssuerPolicyRequest,
|
|
897
|
+
output: CreateKmsIssuerPolicyResponse,
|
|
898
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
899
|
+
protocol: VercelProtocol,
|
|
900
|
+
retry: Retry.Retry,
|
|
901
|
+
}));
|
|
902
|
+
/** Create a signing key Create a new signing key for a KMS issuer. Depending on the activation mode, the key is activated automatically once its public key has propagated, or manually via the activate endpoint. */
|
|
903
|
+
export const createKmsSigningKey = /*@__PURE__*/ API.make(() => ({
|
|
904
|
+
input: CreateKmsSigningKeyRequest,
|
|
905
|
+
output: CreateKmsSigningKeyResponse,
|
|
906
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
907
|
+
protocol: VercelProtocol,
|
|
908
|
+
retry: Retry.Retry,
|
|
909
|
+
}));
|
|
910
|
+
/** Delete an issuer Delete a KMS issuer and its signing keys. */
|
|
911
|
+
export const deleteKmsIssuer = /*@__PURE__*/ API.make(() => ({
|
|
912
|
+
input: DeleteKmsIssuerRequest,
|
|
913
|
+
output: DeleteKmsIssuerResponse,
|
|
914
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
915
|
+
protocol: VercelProtocol,
|
|
916
|
+
retry: Retry.Retry,
|
|
917
|
+
}));
|
|
918
|
+
/** Delete an issuer policy Remove a policy from a KMS issuer. */
|
|
919
|
+
export const deleteKmsIssuerPolicy = /*@__PURE__*/ API.make(() => ({
|
|
920
|
+
input: DeleteKmsIssuerPolicyRequest,
|
|
921
|
+
output: DeleteKmsIssuerPolicyResponse,
|
|
922
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
923
|
+
protocol: VercelProtocol,
|
|
924
|
+
retry: Retry.Retry,
|
|
925
|
+
}));
|
|
926
|
+
/** Get an issuer Retrieve a single KMS issuer by its ID. Accepts either a team bearer token (existing path) or an OIDC token authorized by one of the issuer's policies (e.g. a connex-grant token). The OIDC path returns the issuer without policies, since a policy token only proves signing access, not management access. */
|
|
927
|
+
export const getKmsIssuer = /*@__PURE__*/ API.make(() => ({
|
|
928
|
+
input: GetKmsIssuerRequest,
|
|
929
|
+
output: GetKmsIssuerResponse,
|
|
930
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
931
|
+
protocol: VercelProtocol,
|
|
932
|
+
retry: Retry.Retry,
|
|
933
|
+
}));
|
|
934
|
+
/** List issuers Retrieve the list of KMS issuers that belong to the authenticated team. The results are paginated. */
|
|
935
|
+
export const listKmsIssuers = /*@__PURE__*/ API.make(() => ({
|
|
936
|
+
input: ListKmsIssuersRequest,
|
|
937
|
+
output: ListKmsIssuersResponse,
|
|
938
|
+
errors: [BadRequest, Forbidden],
|
|
939
|
+
protocol: VercelProtocol,
|
|
940
|
+
retry: Retry.Retry,
|
|
941
|
+
}));
|
|
942
|
+
/** Revoke a signing key Immediately revoke a signing key that is already scheduled for revocation. */
|
|
943
|
+
export const revokeKmsSigningKey = /*@__PURE__*/ API.make(() => ({
|
|
944
|
+
input: RevokeKmsSigningKeyRequest,
|
|
945
|
+
output: RevokeKmsSigningKeyResponse,
|
|
946
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
947
|
+
protocol: VercelProtocol,
|
|
948
|
+
retry: Retry.Retry,
|
|
949
|
+
}));
|
|
950
|
+
/** Sign a message Sign a raw message with a KMS issuer's active signing key. Authenticate the request with a Vercel OIDC token in the `Authorization: Bearer` header; the issuer's policies decide which workloads are allowed to sign. */
|
|
951
|
+
export const signKmsMessage = /*@__PURE__*/ API.make(() => ({
|
|
952
|
+
input: SignKmsMessageRequest,
|
|
953
|
+
output: SignKmsMessageResponse,
|
|
954
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
955
|
+
protocol: VercelProtocol,
|
|
956
|
+
retry: Retry.Retry,
|
|
957
|
+
}));
|
|
958
|
+
/** Sign a token Sign a JWT with a KMS issuer's active signing key. Authenticate the request with a Vercel OIDC token in the `Authorization: Bearer` header; the issuer's policies decide which workloads are allowed to sign. */
|
|
959
|
+
export const signKmsToken = /*@__PURE__*/ API.make(() => ({
|
|
960
|
+
input: SignKmsTokenRequest,
|
|
961
|
+
output: SignKmsTokenResponse,
|
|
962
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
963
|
+
protocol: VercelProtocol,
|
|
964
|
+
retry: Retry.Retry,
|
|
965
|
+
}));
|
|
966
|
+
/** Update an issuer Update a KMS issuer's name or claims schema. */
|
|
967
|
+
export const updateKmsIssuer = /*@__PURE__*/ API.make(() => ({
|
|
968
|
+
input: UpdateKmsIssuerRequest,
|
|
969
|
+
output: UpdateKmsIssuerResponse,
|
|
970
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
971
|
+
protocol: VercelProtocol,
|
|
972
|
+
retry: Retry.Retry,
|
|
973
|
+
}));
|
|
974
|
+
/** Update an issuer policy Update an existing KMS issuer policy's environments or token claims. */
|
|
975
|
+
export const updateKmsIssuerPolicy = /*@__PURE__*/ API.make(() => ({
|
|
976
|
+
input: UpdateKmsIssuerPolicyRequest,
|
|
977
|
+
output: UpdateKmsIssuerPolicyResponse,
|
|
978
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
979
|
+
protocol: VercelProtocol,
|
|
980
|
+
retry: Retry.Retry,
|
|
981
|
+
}));
|
|
982
|
+
//# sourceMappingURL=kms.js.map
|