@distilled.cloud/vercel 0.0.0 → 1.0.0-rc.10
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/credentials.d.ts +21 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +40 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +80 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +50 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +15 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +15 -0
- package/lib/index.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +69 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +54 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +47 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/access_groups.d.ts +459 -0
- package/lib/services/access_groups.d.ts.map +1 -0
- package/lib/services/access_groups.js +449 -0
- package/lib/services/access_groups.js.map +1 -0
- package/lib/services/ai_gateway.d.ts +122 -0
- package/lib/services/ai_gateway.d.ts.map +1 -0
- package/lib/services/ai_gateway.js +125 -0
- package/lib/services/ai_gateway.js.map +1 -0
- package/lib/services/aliases.d.ts +591 -0
- package/lib/services/aliases.d.ts.map +1 -0
- package/lib/services/aliases.js +482 -0
- package/lib/services/aliases.js.map +1 -0
- 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 +227 -0
- package/lib/services/api_ai_gateway.js.map +1 -0
- package/lib/services/artifacts.d.ts +228 -0
- package/lib/services/artifacts.d.ts.map +1 -0
- package/lib/services/artifacts.js +214 -0
- package/lib/services/artifacts.js.map +1 -0
- package/lib/services/authentication.d.ts +373 -0
- package/lib/services/authentication.d.ts.map +1 -0
- package/lib/services/authentication.js +304 -0
- package/lib/services/authentication.js.map +1 -0
- package/lib/services/billing.d.ts +930 -0
- package/lib/services/billing.d.ts.map +1 -0
- package/lib/services/billing.js +695 -0
- package/lib/services/billing.js.map +1 -0
- package/lib/services/bulk_redirects.d.ts +308 -0
- package/lib/services/bulk_redirects.d.ts.map +1 -0
- package/lib/services/bulk_redirects.js +302 -0
- package/lib/services/bulk_redirects.js.map +1 -0
- package/lib/services/certs.d.ts +171 -0
- package/lib/services/certs.d.ts.map +1 -0
- package/lib/services/certs.js +163 -0
- package/lib/services/certs.js.map +1 -0
- package/lib/services/checks_v2.d.ts +1167 -0
- package/lib/services/checks_v2.d.ts.map +1 -0
- package/lib/services/checks_v2.js +1141 -0
- package/lib/services/checks_v2.js.map +1 -0
- package/lib/services/connect.d.ts +2228 -0
- package/lib/services/connect.d.ts.map +1 -0
- package/lib/services/connect.js +1575 -0
- package/lib/services/connect.js.map +1 -0
- package/lib/services/deployments.d.ts +9419 -0
- package/lib/services/deployments.d.ts.map +1 -0
- package/lib/services/deployments.js +8248 -0
- package/lib/services/deployments.js.map +1 -0
- package/lib/services/dns.d.ts +279 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +277 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/domains.d.ts +564 -0
- package/lib/services/domains.d.ts.map +1 -0
- package/lib/services/domains.js +469 -0
- package/lib/services/domains.js.map +1 -0
- package/lib/services/domains_registrar.d.ts +798 -0
- package/lib/services/domains_registrar.d.ts.map +1 -0
- package/lib/services/domains_registrar.js +916 -0
- package/lib/services/domains_registrar.js.map +1 -0
- package/lib/services/drains.d.ts +2263 -0
- package/lib/services/drains.d.ts.map +1 -0
- package/lib/services/drains.js +2121 -0
- package/lib/services/drains.js.map +1 -0
- package/lib/services/edge_cache.d.ts +125 -0
- package/lib/services/edge_cache.d.ts.map +1 -0
- package/lib/services/edge_cache.js +138 -0
- package/lib/services/edge_cache.js.map +1 -0
- package/lib/services/environment.d.ts +1020 -0
- package/lib/services/environment.d.ts.map +1 -0
- package/lib/services/environment.js +805 -0
- package/lib/services/environment.js.map +1 -0
- package/lib/services/feature_flags.d.ts +2893 -0
- package/lib/services/feature_flags.d.ts.map +1 -0
- package/lib/services/feature_flags.js +2707 -0
- package/lib/services/feature_flags.js.map +1 -0
- package/lib/services/global_config.d.ts +618 -0
- package/lib/services/global_config.d.ts.map +1 -0
- package/lib/services/global_config.js +709 -0
- package/lib/services/global_config.js.map +1 -0
- package/lib/services/index.d.ts +42 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +43 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/integrations.d.ts +3014 -0
- package/lib/services/integrations.d.ts.map +1 -0
- package/lib/services/integrations.js +2544 -0
- package/lib/services/integrations.js.map +1 -0
- package/lib/services/kms.d.ts +1095 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +956 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/log_drains.d.ts +848 -0
- package/lib/services/log_drains.d.ts.map +1 -0
- package/lib/services/log_drains.js +782 -0
- package/lib/services/log_drains.js.map +1 -0
- package/lib/services/logs.d.ts +40 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +43 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/marketplace.d.ts +1053 -0
- package/lib/services/marketplace.d.ts.map +1 -0
- package/lib/services/marketplace.js +1116 -0
- package/lib/services/marketplace.js.map +1 -0
- package/lib/services/microfrontends.d.ts +3250 -0
- package/lib/services/microfrontends.d.ts.map +1 -0
- package/lib/services/microfrontends.js +3154 -0
- package/lib/services/microfrontends.js.map +1 -0
- package/lib/services/misc.d.ts +192 -0
- package/lib/services/misc.d.ts.map +1 -0
- package/lib/services/misc.js +124 -0
- package/lib/services/misc.js.map +1 -0
- package/lib/services/networking.d.ts +360 -0
- package/lib/services/networking.d.ts.map +1 -0
- package/lib/services/networking.js +353 -0
- package/lib/services/networking.js.map +1 -0
- package/lib/services/observability.d.ts +168 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +190 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/project_members.d.ts +142 -0
- package/lib/services/project_members.d.ts.map +1 -0
- package/lib/services/project_members.js +135 -0
- package/lib/services/project_members.js.map +1 -0
- package/lib/services/project_routes.d.ts +1990 -0
- package/lib/services/project_routes.d.ts.map +1 -0
- package/lib/services/project_routes.js +1883 -0
- package/lib/services/project_routes.js.map +1 -0
- package/lib/services/projects.d.ts +23677 -0
- package/lib/services/projects.d.ts.map +1 -0
- package/lib/services/projects.js +22223 -0
- package/lib/services/projects.js.map +1 -0
- package/lib/services/rolling_release.d.ts +764 -0
- package/lib/services/rolling_release.d.ts.map +1 -0
- package/lib/services/rolling_release.js +583 -0
- package/lib/services/rolling_release.js.map +1 -0
- package/lib/services/sandboxes.d.ts +2777 -0
- package/lib/services/sandboxes.d.ts.map +1 -0
- package/lib/services/sandboxes.js +2142 -0
- package/lib/services/sandboxes.js.map +1 -0
- package/lib/services/security.d.ts +4247 -0
- package/lib/services/security.d.ts.map +1 -0
- package/lib/services/security.js +4377 -0
- package/lib/services/security.js.map +1 -0
- package/lib/services/storage.d.ts +251 -0
- package/lib/services/storage.d.ts.map +1 -0
- package/lib/services/storage.js +257 -0
- package/lib/services/storage.js.map +1 -0
- package/lib/services/teams.d.ts +1600 -0
- package/lib/services/teams.d.ts.map +1 -0
- package/lib/services/teams.js +1314 -0
- package/lib/services/teams.js.map +1 -0
- package/lib/services/user.d.ts +8559 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +7407 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services/vcr.d.ts +751 -0
- package/lib/services/vcr.d.ts.map +1 -0
- package/lib/services/vcr.js +826 -0
- package/lib/services/vcr.js.map +1 -0
- package/lib/services/web_analytics.d.ts +726 -0
- package/lib/services/web_analytics.d.ts.map +1 -0
- package/lib/services/web_analytics.js +707 -0
- package/lib/services/web_analytics.js.map +1 -0
- package/lib/services/webhooks.d.ts +219 -0
- package/lib/services/webhooks.d.ts.map +1 -0
- package/lib/services/webhooks.js +177 -0
- package/lib/services/webhooks.js.map +1 -0
- package/lib/traits.d.ts +10 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +78 -7
- package/src/credentials.ts +70 -0
- package/src/errors.ts +93 -0
- package/src/index.ts +18 -0
- package/src/protocol.ts +98 -0
- package/src/retry.ts +78 -0
- package/src/services/access_groups.ts +1165 -0
- package/src/services/ai_gateway.ts +267 -0
- package/src/services/aliases.ts +1315 -0
- package/src/services/api_ai_gateway.ts +607 -0
- package/src/services/artifacts.ts +542 -0
- package/src/services/authentication.ts +827 -0
- package/src/services/billing.ts +2104 -0
- package/src/services/bulk_redirects.ts +748 -0
- package/src/services/certs.ts +371 -0
- package/src/services/checks_v2.ts +3084 -0
- package/src/services/connect.ts +4805 -0
- package/src/services/deployments.ts +24576 -0
- package/src/services/dns.ts +715 -0
- package/src/services/domains.ts +1257 -0
- package/src/services/domains_registrar.ts +2257 -0
- package/src/services/drains.ts +5828 -0
- package/src/services/edge_cache.ts +303 -0
- package/src/services/environment.ts +2379 -0
- package/src/services/feature_flags.ts +7722 -0
- package/src/services/global_config.ts +1668 -0
- package/src/services/index.ts +42 -0
- package/src/services/integrations.ts +9022 -0
- package/src/services/kms.ts +2614 -0
- package/src/services/log_drains.ts +2434 -0
- package/src/services/logs.ts +78 -0
- package/src/services/marketplace.ts +2849 -0
- package/src/services/microfrontends.ts +9921 -0
- package/src/services/misc.ts +364 -0
- package/src/services/networking.ts +865 -0
- package/src/services/observability.ts +435 -0
- package/src/services/project_members.ts +326 -0
- package/src/services/project_routes.ts +5229 -0
- package/src/services/projects.ts +68139 -0
- package/src/services/rolling_release.ts +1860 -0
- package/src/services/sandboxes.ts +6988 -0
- package/src/services/security.ts +13931 -0
- package/src/services/storage.ts +850 -0
- package/src/services/teams.ts +4055 -0
- package/src/services/user.ts +23195 -0
- package/src/services/vcr.ts +2070 -0
- package/src/services/web_analytics.ts +1638 -0
- package/src/services/webhooks.ts +1102 -0
- package/src/traits.ts +46 -0
- package/README.md +0 -15
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,1095 @@
|
|
|
1
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as API from "@distilled.cloud/core/api";
|
|
3
|
+
import { type VercelOpError, type VercelOpContext } from "../protocol.ts";
|
|
4
|
+
export type { VercelOpError, VercelOpContext };
|
|
5
|
+
declare const BadRequest_base: S.Class<BadRequest, S.TaggedStruct<"BadRequest", {
|
|
6
|
+
readonly code: any;
|
|
7
|
+
readonly message: any;
|
|
8
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
9
|
+
"@distilled.cloud/error/categories": {
|
|
10
|
+
BadRequestError: true;
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
14
|
+
}
|
|
15
|
+
declare const Conflict_base: S.Class<Conflict, S.TaggedStruct<"Conflict", {
|
|
16
|
+
readonly code: any;
|
|
17
|
+
readonly message: any;
|
|
18
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
19
|
+
"@distilled.cloud/error/categories": {
|
|
20
|
+
ConflictError: true;
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
export declare class Conflict extends /*@__PURE__*/ Conflict_base {
|
|
24
|
+
}
|
|
25
|
+
declare const Forbidden_base: S.Class<Forbidden, S.TaggedStruct<"Forbidden", {
|
|
26
|
+
readonly code: any;
|
|
27
|
+
readonly message: any;
|
|
28
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
29
|
+
"@distilled.cloud/error/categories": {
|
|
30
|
+
AuthError: true;
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
|
|
34
|
+
}
|
|
35
|
+
declare const NotFound_base: S.Class<NotFound, S.TaggedStruct<"NotFound", {
|
|
36
|
+
readonly code: any;
|
|
37
|
+
readonly message: any;
|
|
38
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
39
|
+
"@distilled.cloud/error/categories": {
|
|
40
|
+
BadRequestError: true;
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
44
|
+
}
|
|
45
|
+
export interface ActivateKmsSigningKeyRequest {
|
|
46
|
+
/** The ID of the issuer. */
|
|
47
|
+
issuerId: string;
|
|
48
|
+
/** The ID of the pending signing key to activate. */
|
|
49
|
+
keyId: string;
|
|
50
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
51
|
+
teamId?: string;
|
|
52
|
+
/** The Team slug to perform the request on behalf of. */
|
|
53
|
+
slug?: string;
|
|
54
|
+
/** How many hours after activation the previously-active key should stop being used. Defaults to a 1 hour grace period so already-issued tokens keep verifying. */
|
|
55
|
+
revokePreviousAfterHours?: number;
|
|
56
|
+
}
|
|
57
|
+
export declare const ActivateKmsSigningKeyRequest: S.Schema<ActivateKmsSigningKeyRequest>;
|
|
58
|
+
export type ActivateKmsSigningKeyResponseStatus = "active" | "pending" | "revoking";
|
|
59
|
+
export declare const ActivateKmsSigningKeyResponseStatus: any;
|
|
60
|
+
export type ActivateKmsSigningKeyResponsePublicKeyKeyOpsList = Array<string>;
|
|
61
|
+
export declare const ActivateKmsSigningKeyResponsePublicKeyKeyOpsList: S.Schema<ActivateKmsSigningKeyResponsePublicKeyKeyOpsList>;
|
|
62
|
+
/** The X.509 certificate chain (RFC 7517 §4.7). Each entry is the base64 DER (not base64url) of a certificate. For keys minted with a stored certificate this holds the single self-signed cert as `[x5c]`. */
|
|
63
|
+
export type ActivateKmsSigningKeyResponsePublicKeyX5cList = Array<string>;
|
|
64
|
+
export declare const ActivateKmsSigningKeyResponsePublicKeyX5cList: S.Schema<ActivateKmsSigningKeyResponsePublicKeyX5cList>;
|
|
65
|
+
export interface ActivateKmsSigningKeyResponsePublicKey {
|
|
66
|
+
kty?: string;
|
|
67
|
+
kid?: string;
|
|
68
|
+
alg?: string;
|
|
69
|
+
use?: string;
|
|
70
|
+
key_ops?: ActivateKmsSigningKeyResponsePublicKeyKeyOpsList;
|
|
71
|
+
/** The X.509 certificate chain (RFC 7517 §4.7). Each entry is the base64 DER (not base64url) of a certificate. For keys minted with a stored certificate this holds the single self-signed cert as `[x5c]`. */
|
|
72
|
+
x5c?: ActivateKmsSigningKeyResponsePublicKeyX5cList;
|
|
73
|
+
/** The base64url SHA-256 thumbprint of the DER certificate in `x5c[0]` (RFC 7517 §4.9). */
|
|
74
|
+
x5t_S256?: string;
|
|
75
|
+
}
|
|
76
|
+
export declare const ActivateKmsSigningKeyResponsePublicKey: S.Schema<ActivateKmsSigningKeyResponsePublicKey>;
|
|
77
|
+
export interface ActivateKmsSigningKeyResponse {
|
|
78
|
+
/** The server-minted, unique record identifier. Use this to address the key on the activate / certificate endpoints. */
|
|
79
|
+
keyId: string;
|
|
80
|
+
/** The caller-supplied key id (imported keys only), used as the JWT/JWKS `kid`. Not unique across an issuer's keys; omitted for generated keys. */
|
|
81
|
+
importKeyId?: string;
|
|
82
|
+
issuerId: string;
|
|
83
|
+
algorithm: string;
|
|
84
|
+
status: ActivateKmsSigningKeyResponseStatus;
|
|
85
|
+
publicKey?: ActivateKmsSigningKeyResponsePublicKey;
|
|
86
|
+
publicKeyFingerprint?: string;
|
|
87
|
+
/** The public key in SPKI PEM form, ready to render. Present whenever the key has public key material. Derived from `publicKey`; the embedded certificate members (`x5c`/`x5t#S256`) do not affect it. */
|
|
88
|
+
publicKeyPem?: string;
|
|
89
|
+
/** The stored X.509 certificate (from `publicKey.x5c[0]`) in PEM form, ready to render. Present only for keys created with a stored certificate; omitted for keys created before certificates were stored. */
|
|
90
|
+
certificatePem?: string;
|
|
91
|
+
createdAt: string;
|
|
92
|
+
updatedAt: string;
|
|
93
|
+
revokeAt?: string;
|
|
94
|
+
activateAt?: string;
|
|
95
|
+
/** When the key became the active signer. Present for active and revoking keys (and absent for pending keys and rows predating this field). */
|
|
96
|
+
activatedAt?: string;
|
|
97
|
+
}
|
|
98
|
+
export declare const ActivateKmsSigningKeyResponse: S.Schema<ActivateKmsSigningKeyResponse>;
|
|
99
|
+
/** The signing algorithm to use for the issuer. */
|
|
100
|
+
export type CreateKmsIssuerRequestAlgorithm = "RS256" | "RS384" | "RS512" | "PS256" | "PS384" | "PS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
101
|
+
export declare const CreateKmsIssuerRequestAlgorithm: any;
|
|
102
|
+
/** A JSON Schema used to validate the resolved token claims when signing tokens for this issuer. */
|
|
103
|
+
export type CreateKmsIssuerRequestClaimsSchemaMap = {
|
|
104
|
+
[key: string]: unknown | undefined;
|
|
105
|
+
};
|
|
106
|
+
export declare const CreateKmsIssuerRequestClaimsSchemaMap: S.Schema<CreateKmsIssuerRequestClaimsSchemaMap>;
|
|
107
|
+
export type CreateKmsIssuerRequestPolicyCase0Kind = "project-grant";
|
|
108
|
+
export declare const CreateKmsIssuerRequestPolicyCase0Kind: any;
|
|
109
|
+
/** The environments for the project grant policy. Each entry is a system environment (production, preview, development) or a custom environment ID (env_...). */
|
|
110
|
+
export type CreateKmsIssuerRequestPolicyCase0EnvironmentsList = Array<string>;
|
|
111
|
+
export declare const CreateKmsIssuerRequestPolicyCase0EnvironmentsList: S.Schema<CreateKmsIssuerRequestPolicyCase0EnvironmentsList>;
|
|
112
|
+
/** The claims that KMS should include in signed JWTs for this policy. */
|
|
113
|
+
export type CreateKmsIssuerRequestPolicyCase0TokenClaimsMap = {
|
|
114
|
+
[key: string]: unknown | undefined;
|
|
115
|
+
};
|
|
116
|
+
export declare const CreateKmsIssuerRequestPolicyCase0TokenClaimsMap: S.Schema<CreateKmsIssuerRequestPolicyCase0TokenClaimsMap>;
|
|
117
|
+
export interface CreateKmsIssuerRequestPolicyCase0 {
|
|
118
|
+
kind: CreateKmsIssuerRequestPolicyCase0Kind;
|
|
119
|
+
/** The team ID for the project grant policy. */
|
|
120
|
+
teamId: string;
|
|
121
|
+
/** The project ID for the project grant policy. */
|
|
122
|
+
projectId: string;
|
|
123
|
+
/** The environments for the project grant policy. Each entry is a system environment (production, preview, development) or a custom environment ID (env_...). */
|
|
124
|
+
environments: CreateKmsIssuerRequestPolicyCase0EnvironmentsList;
|
|
125
|
+
/** The claims that KMS should include in signed JWTs for this policy. */
|
|
126
|
+
tokenClaims?: CreateKmsIssuerRequestPolicyCase0TokenClaimsMap;
|
|
127
|
+
}
|
|
128
|
+
export declare const CreateKmsIssuerRequestPolicyCase0: S.Schema<CreateKmsIssuerRequestPolicyCase0>;
|
|
129
|
+
export type CreateKmsIssuerRequestPolicyCase1Kind = "connex-grant";
|
|
130
|
+
export declare const CreateKmsIssuerRequestPolicyCase1Kind: any;
|
|
131
|
+
/** The claims that KMS should include in signed JWTs for this policy. */
|
|
132
|
+
export type CreateKmsIssuerRequestPolicyCase1TokenClaimsMap = {
|
|
133
|
+
[key: string]: unknown | undefined;
|
|
134
|
+
};
|
|
135
|
+
export declare const CreateKmsIssuerRequestPolicyCase1TokenClaimsMap: S.Schema<CreateKmsIssuerRequestPolicyCase1TokenClaimsMap>;
|
|
136
|
+
export interface CreateKmsIssuerRequestPolicyCase1 {
|
|
137
|
+
kind: CreateKmsIssuerRequestPolicyCase1Kind;
|
|
138
|
+
/** The Connex client ID for the Connex grant policy. */
|
|
139
|
+
clientId: string;
|
|
140
|
+
/** The claims that KMS should include in signed JWTs for this policy. */
|
|
141
|
+
tokenClaims?: CreateKmsIssuerRequestPolicyCase1TokenClaimsMap;
|
|
142
|
+
}
|
|
143
|
+
export declare const CreateKmsIssuerRequestPolicyCase1: S.Schema<CreateKmsIssuerRequestPolicyCase1>;
|
|
144
|
+
export type CreateKmsIssuerRequestPolicy = CreateKmsIssuerRequestPolicyCase0 | CreateKmsIssuerRequestPolicyCase1;
|
|
145
|
+
export declare const CreateKmsIssuerRequestPolicy: S.Schema<CreateKmsIssuerRequestPolicy>;
|
|
146
|
+
export interface CreateKmsIssuerRequest {
|
|
147
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
148
|
+
teamId?: string;
|
|
149
|
+
/** The Team slug to perform the request on behalf of. */
|
|
150
|
+
slug?: string;
|
|
151
|
+
/** The name of the issuer. */
|
|
152
|
+
name: string;
|
|
153
|
+
/** The signing algorithm to use for the issuer. */
|
|
154
|
+
algorithm?: CreateKmsIssuerRequestAlgorithm | (string & {});
|
|
155
|
+
/** A JSON Schema used to validate the resolved token claims when signing tokens for this issuer. */
|
|
156
|
+
claimsSchema?: CreateKmsIssuerRequestClaimsSchemaMap;
|
|
157
|
+
policy?: CreateKmsIssuerRequestPolicy;
|
|
158
|
+
/** The PEM-encoded private key to use for the issuer. */
|
|
159
|
+
importKey?: string;
|
|
160
|
+
/** The key id to use as the imported key's JWT/JWKS `kid`. Only allowed when `importKey` is provided. Not required to be unique; the addressable key id is the server-minted `keyId` returned in the response. */
|
|
161
|
+
importKeyId?: string;
|
|
162
|
+
}
|
|
163
|
+
export declare const CreateKmsIssuerRequest: S.Schema<CreateKmsIssuerRequest>;
|
|
164
|
+
export type CreateKmsIssuerResponseAlgorithm = "ES256" | "ES384" | "ES512" | "EdDSA" | "PS256" | "PS384" | "PS512" | "RS256" | "RS384" | "RS512";
|
|
165
|
+
export declare const CreateKmsIssuerResponseAlgorithm: any;
|
|
166
|
+
export type CreateKmsIssuerResponseOrigin = "external" | "vercel";
|
|
167
|
+
export declare const CreateKmsIssuerResponseOrigin: any;
|
|
168
|
+
export type CreateKmsIssuerResponseClaimsSchemaMap = {
|
|
169
|
+
[key: string]: unknown | undefined;
|
|
170
|
+
};
|
|
171
|
+
export declare const CreateKmsIssuerResponseClaimsSchemaMap: S.Schema<CreateKmsIssuerResponseClaimsSchemaMap>;
|
|
172
|
+
export type CreateKmsIssuerResponseSigningKeysItemStatus = "active" | "pending" | "revoking";
|
|
173
|
+
export declare const CreateKmsIssuerResponseSigningKeysItemStatus: any;
|
|
174
|
+
export type CreateKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList = Array<string>;
|
|
175
|
+
export declare const CreateKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList: S.Schema<CreateKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList>;
|
|
176
|
+
/** The X.509 certificate chain (RFC 7517 §4.7). Each entry is the base64 DER (not base64url) of a certificate. For keys minted with a stored certificate this holds the single self-signed cert as `[x5c]`. */
|
|
177
|
+
export type CreateKmsIssuerResponseSigningKeysItemPublicKeyX5cList = Array<string>;
|
|
178
|
+
export declare const CreateKmsIssuerResponseSigningKeysItemPublicKeyX5cList: S.Schema<CreateKmsIssuerResponseSigningKeysItemPublicKeyX5cList>;
|
|
179
|
+
export interface CreateKmsIssuerResponseSigningKeysItemPublicKey {
|
|
180
|
+
kty?: string;
|
|
181
|
+
kid?: string;
|
|
182
|
+
alg?: string;
|
|
183
|
+
use?: string;
|
|
184
|
+
key_ops?: CreateKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList;
|
|
185
|
+
/** The X.509 certificate chain (RFC 7517 §4.7). Each entry is the base64 DER (not base64url) of a certificate. For keys minted with a stored certificate this holds the single self-signed cert as `[x5c]`. */
|
|
186
|
+
x5c?: CreateKmsIssuerResponseSigningKeysItemPublicKeyX5cList;
|
|
187
|
+
/** The base64url SHA-256 thumbprint of the DER certificate in `x5c[0]` (RFC 7517 §4.9). */
|
|
188
|
+
x5t_S256?: string;
|
|
189
|
+
}
|
|
190
|
+
export declare const CreateKmsIssuerResponseSigningKeysItemPublicKey: S.Schema<CreateKmsIssuerResponseSigningKeysItemPublicKey>;
|
|
191
|
+
export interface CreateKmsIssuerResponseSigningKeysItem {
|
|
192
|
+
/** The server-minted, unique record identifier. Use this to address the key on the activate / certificate endpoints. */
|
|
193
|
+
keyId: string;
|
|
194
|
+
/** The caller-supplied key id (imported keys only), used as the JWT/JWKS `kid`. Not unique across an issuer's keys; omitted for generated keys. */
|
|
195
|
+
importKeyId?: string;
|
|
196
|
+
issuerId: string;
|
|
197
|
+
algorithm: string;
|
|
198
|
+
status: CreateKmsIssuerResponseSigningKeysItemStatus;
|
|
199
|
+
publicKey?: CreateKmsIssuerResponseSigningKeysItemPublicKey;
|
|
200
|
+
publicKeyFingerprint?: string;
|
|
201
|
+
/** The public key in SPKI PEM form, ready to render. Present whenever the key has public key material. Derived from `publicKey`; the embedded certificate members (`x5c`/`x5t#S256`) do not affect it. */
|
|
202
|
+
publicKeyPem?: string;
|
|
203
|
+
/** The stored X.509 certificate (from `publicKey.x5c[0]`) in PEM form, ready to render. Present only for keys created with a stored certificate; omitted for keys created before certificates were stored. */
|
|
204
|
+
certificatePem?: string;
|
|
205
|
+
createdAt: string;
|
|
206
|
+
updatedAt: string;
|
|
207
|
+
revokeAt?: string;
|
|
208
|
+
activateAt?: string;
|
|
209
|
+
/** When the key became the active signer. Present for active and revoking keys (and absent for pending keys and rows predating this field). */
|
|
210
|
+
activatedAt?: string;
|
|
211
|
+
}
|
|
212
|
+
export declare const CreateKmsIssuerResponseSigningKeysItem: S.Schema<CreateKmsIssuerResponseSigningKeysItem>;
|
|
213
|
+
export type CreateKmsIssuerResponseSigningKeysList = Array<CreateKmsIssuerResponseSigningKeysItem>;
|
|
214
|
+
export declare const CreateKmsIssuerResponseSigningKeysList: S.Schema<CreateKmsIssuerResponseSigningKeysList>;
|
|
215
|
+
export type CreateKmsIssuerResponsePoliciesItemCase0Kind = "project-grant";
|
|
216
|
+
export declare const CreateKmsIssuerResponsePoliciesItemCase0Kind: any;
|
|
217
|
+
/** Environments whose OIDC tokens this grant authorizes. Each entry is either a system environment slug (`production`, `preview`, `development`) or a custom environment ID (prefixed `env_`). Custom environments are matched against the token's `custom_environment_id` claim (the stable ID); system environments against its `environment` claim. */
|
|
218
|
+
export type CreateKmsIssuerResponsePoliciesItemCase0EnvironmentsList = Array<string>;
|
|
219
|
+
export declare const CreateKmsIssuerResponsePoliciesItemCase0EnvironmentsList: S.Schema<CreateKmsIssuerResponsePoliciesItemCase0EnvironmentsList>;
|
|
220
|
+
export type CreateKmsIssuerResponsePoliciesItemCase0TokenClaimsMap = {
|
|
221
|
+
[key: string]: unknown | undefined;
|
|
222
|
+
};
|
|
223
|
+
export declare const CreateKmsIssuerResponsePoliciesItemCase0TokenClaimsMap: S.Schema<CreateKmsIssuerResponsePoliciesItemCase0TokenClaimsMap>;
|
|
224
|
+
export interface CreateKmsIssuerResponsePoliciesItemCase0 {
|
|
225
|
+
kind: CreateKmsIssuerResponsePoliciesItemCase0Kind;
|
|
226
|
+
teamId: string;
|
|
227
|
+
projectId: string;
|
|
228
|
+
/** Environments whose OIDC tokens this grant authorizes. Each entry is either a system environment slug (`production`, `preview`, `development`) or a custom environment ID (prefixed `env_`). Custom environments are matched against the token's `custom_environment_id` claim (the stable ID); system environments against its `environment` claim. */
|
|
229
|
+
environments: CreateKmsIssuerResponsePoliciesItemCase0EnvironmentsList;
|
|
230
|
+
tokenClaims?: CreateKmsIssuerResponsePoliciesItemCase0TokenClaimsMap;
|
|
231
|
+
createdAt: string;
|
|
232
|
+
updatedAt: string;
|
|
233
|
+
}
|
|
234
|
+
export declare const CreateKmsIssuerResponsePoliciesItemCase0: S.Schema<CreateKmsIssuerResponsePoliciesItemCase0>;
|
|
235
|
+
export type CreateKmsIssuerResponsePoliciesItemCase1Kind = "connex-grant";
|
|
236
|
+
export declare const CreateKmsIssuerResponsePoliciesItemCase1Kind: any;
|
|
237
|
+
export type CreateKmsIssuerResponsePoliciesItemCase1TokenClaimsMap = {
|
|
238
|
+
[key: string]: unknown | undefined;
|
|
239
|
+
};
|
|
240
|
+
export declare const CreateKmsIssuerResponsePoliciesItemCase1TokenClaimsMap: S.Schema<CreateKmsIssuerResponsePoliciesItemCase1TokenClaimsMap>;
|
|
241
|
+
export interface CreateKmsIssuerResponsePoliciesItemCase1 {
|
|
242
|
+
kind: CreateKmsIssuerResponsePoliciesItemCase1Kind;
|
|
243
|
+
clientId: string;
|
|
244
|
+
tokenClaims?: CreateKmsIssuerResponsePoliciesItemCase1TokenClaimsMap;
|
|
245
|
+
createdAt: string;
|
|
246
|
+
updatedAt: string;
|
|
247
|
+
}
|
|
248
|
+
export declare const CreateKmsIssuerResponsePoliciesItemCase1: S.Schema<CreateKmsIssuerResponsePoliciesItemCase1>;
|
|
249
|
+
export type CreateKmsIssuerResponsePoliciesItem = CreateKmsIssuerResponsePoliciesItemCase0 | CreateKmsIssuerResponsePoliciesItemCase1;
|
|
250
|
+
export declare const CreateKmsIssuerResponsePoliciesItem: S.Schema<CreateKmsIssuerResponsePoliciesItem>;
|
|
251
|
+
export type CreateKmsIssuerResponsePoliciesList = Array<CreateKmsIssuerResponsePoliciesItem>;
|
|
252
|
+
export declare const CreateKmsIssuerResponsePoliciesList: S.Schema<CreateKmsIssuerResponsePoliciesList>;
|
|
253
|
+
export interface CreateKmsIssuerResponse {
|
|
254
|
+
id: string;
|
|
255
|
+
ownerId: string;
|
|
256
|
+
name: string;
|
|
257
|
+
algorithm: CreateKmsIssuerResponseAlgorithm;
|
|
258
|
+
origin: CreateKmsIssuerResponseOrigin;
|
|
259
|
+
managedBy?: string;
|
|
260
|
+
claimsSchema?: CreateKmsIssuerResponseClaimsSchemaMap;
|
|
261
|
+
createdAt: string;
|
|
262
|
+
updatedAt: string;
|
|
263
|
+
signingKeys: CreateKmsIssuerResponseSigningKeysList;
|
|
264
|
+
policies: CreateKmsIssuerResponsePoliciesList;
|
|
265
|
+
}
|
|
266
|
+
export declare const CreateKmsIssuerResponse: S.Schema<CreateKmsIssuerResponse>;
|
|
267
|
+
export type CreateKmsIssuerPolicyRequestKind = "project-grant";
|
|
268
|
+
export declare const CreateKmsIssuerPolicyRequestKind: any;
|
|
269
|
+
/** The environments for the project grant policy. Each entry is a system environment (production, preview, development) or a custom environment ID (env_...). */
|
|
270
|
+
export type CreateKmsIssuerPolicyRequestEnvironmentsList = Array<string>;
|
|
271
|
+
export declare const CreateKmsIssuerPolicyRequestEnvironmentsList: S.Schema<CreateKmsIssuerPolicyRequestEnvironmentsList>;
|
|
272
|
+
/** The claims that KMS should include in signed JWTs for this policy. */
|
|
273
|
+
export type CreateKmsIssuerPolicyRequestTokenClaimsMap = {
|
|
274
|
+
[key: string]: unknown | undefined;
|
|
275
|
+
};
|
|
276
|
+
export declare const CreateKmsIssuerPolicyRequestTokenClaimsMap: S.Schema<CreateKmsIssuerPolicyRequestTokenClaimsMap>;
|
|
277
|
+
export interface CreateKmsIssuerPolicyRequest {
|
|
278
|
+
/** The ID of the issuer. */
|
|
279
|
+
issuerId: string;
|
|
280
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
281
|
+
teamId?: string;
|
|
282
|
+
/** The Team slug to perform the request on behalf of. */
|
|
283
|
+
slug?: string;
|
|
284
|
+
kind: CreateKmsIssuerPolicyRequestKind | (string & {});
|
|
285
|
+
/** The project ID for the project grant policy. */
|
|
286
|
+
projectId: string;
|
|
287
|
+
/** The environments for the project grant policy. Each entry is a system environment (production, preview, development) or a custom environment ID (env_...). */
|
|
288
|
+
environments: CreateKmsIssuerPolicyRequestEnvironmentsList;
|
|
289
|
+
/** The claims that KMS should include in signed JWTs for this policy. */
|
|
290
|
+
tokenClaims?: CreateKmsIssuerPolicyRequestTokenClaimsMap;
|
|
291
|
+
}
|
|
292
|
+
export declare const CreateKmsIssuerPolicyRequest: S.Schema<CreateKmsIssuerPolicyRequest>;
|
|
293
|
+
export type CreateKmsIssuerPolicyResponseBodyCase0Kind = "project-grant";
|
|
294
|
+
export declare const CreateKmsIssuerPolicyResponseBodyCase0Kind: any;
|
|
295
|
+
/** Environments whose OIDC tokens this grant authorizes. Each entry is either a system environment slug (`production`, `preview`, `development`) or a custom environment ID (prefixed `env_`). Custom environments are matched against the token's `custom_environment_id` claim (the stable ID); system environments against its `environment` claim. */
|
|
296
|
+
export type CreateKmsIssuerPolicyResponseBodyCase0EnvironmentsList = Array<string>;
|
|
297
|
+
export declare const CreateKmsIssuerPolicyResponseBodyCase0EnvironmentsList: S.Schema<CreateKmsIssuerPolicyResponseBodyCase0EnvironmentsList>;
|
|
298
|
+
export type CreateKmsIssuerPolicyResponseBodyCase0TokenClaimsMap = {
|
|
299
|
+
[key: string]: unknown | undefined;
|
|
300
|
+
};
|
|
301
|
+
export declare const CreateKmsIssuerPolicyResponseBodyCase0TokenClaimsMap: S.Schema<CreateKmsIssuerPolicyResponseBodyCase0TokenClaimsMap>;
|
|
302
|
+
export interface CreateKmsIssuerPolicyResponseBodyCase0 {
|
|
303
|
+
kind: CreateKmsIssuerPolicyResponseBodyCase0Kind;
|
|
304
|
+
teamId: string;
|
|
305
|
+
projectId: string;
|
|
306
|
+
/** Environments whose OIDC tokens this grant authorizes. Each entry is either a system environment slug (`production`, `preview`, `development`) or a custom environment ID (prefixed `env_`). Custom environments are matched against the token's `custom_environment_id` claim (the stable ID); system environments against its `environment` claim. */
|
|
307
|
+
environments: CreateKmsIssuerPolicyResponseBodyCase0EnvironmentsList;
|
|
308
|
+
tokenClaims?: CreateKmsIssuerPolicyResponseBodyCase0TokenClaimsMap;
|
|
309
|
+
createdAt: string;
|
|
310
|
+
updatedAt: string;
|
|
311
|
+
}
|
|
312
|
+
export declare const CreateKmsIssuerPolicyResponseBodyCase0: S.Schema<CreateKmsIssuerPolicyResponseBodyCase0>;
|
|
313
|
+
export type CreateKmsIssuerPolicyResponseBodyCase1Kind = "connex-grant";
|
|
314
|
+
export declare const CreateKmsIssuerPolicyResponseBodyCase1Kind: any;
|
|
315
|
+
export type CreateKmsIssuerPolicyResponseBodyCase1TokenClaimsMap = {
|
|
316
|
+
[key: string]: unknown | undefined;
|
|
317
|
+
};
|
|
318
|
+
export declare const CreateKmsIssuerPolicyResponseBodyCase1TokenClaimsMap: S.Schema<CreateKmsIssuerPolicyResponseBodyCase1TokenClaimsMap>;
|
|
319
|
+
export interface CreateKmsIssuerPolicyResponseBodyCase1 {
|
|
320
|
+
kind: CreateKmsIssuerPolicyResponseBodyCase1Kind;
|
|
321
|
+
clientId: string;
|
|
322
|
+
tokenClaims?: CreateKmsIssuerPolicyResponseBodyCase1TokenClaimsMap;
|
|
323
|
+
createdAt: string;
|
|
324
|
+
updatedAt: string;
|
|
325
|
+
}
|
|
326
|
+
export declare const CreateKmsIssuerPolicyResponseBodyCase1: S.Schema<CreateKmsIssuerPolicyResponseBodyCase1>;
|
|
327
|
+
export type CreateKmsIssuerPolicyResponseBody = CreateKmsIssuerPolicyResponseBodyCase0 | CreateKmsIssuerPolicyResponseBodyCase1;
|
|
328
|
+
export declare const CreateKmsIssuerPolicyResponseBody: S.Schema<CreateKmsIssuerPolicyResponseBody>;
|
|
329
|
+
export type CreateKmsIssuerPolicyResponse = CreateKmsIssuerPolicyResponseBody;
|
|
330
|
+
export declare const CreateKmsIssuerPolicyResponse: S.Schema<CreateKmsIssuerPolicyResponse>;
|
|
331
|
+
/** Whether the new key is activated automatically after its public key has propagated, or manually via the activate endpoint. Defaults to `automatic`. */
|
|
332
|
+
export type CreateKmsSigningKeyRequestActivation = "automatic" | "manual";
|
|
333
|
+
export declare const CreateKmsSigningKeyRequestActivation: any;
|
|
334
|
+
/** Deprecated. The ISO date string or timestamp when the previous signing key should stop being used. Converted to a relative grace and applied at activation, not creation. Prefer revokePreviousAfterHours. */
|
|
335
|
+
export type CreateKmsSigningKeyRequestRevokePreviousAt = string | number;
|
|
336
|
+
export declare const CreateKmsSigningKeyRequestRevokePreviousAt: S.Schema<CreateKmsSigningKeyRequestRevokePreviousAt>;
|
|
337
|
+
export interface CreateKmsSigningKeyRequest {
|
|
338
|
+
/** The ID of the issuer. */
|
|
339
|
+
issuerId: string;
|
|
340
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
341
|
+
teamId?: string;
|
|
342
|
+
/** The Team slug to perform the request on behalf of. */
|
|
343
|
+
slug?: string;
|
|
344
|
+
/** Whether the new key is activated automatically after its public key has propagated, or manually via the activate endpoint. Defaults to `automatic`. */
|
|
345
|
+
activation?: CreateKmsSigningKeyRequestActivation | (string & {});
|
|
346
|
+
/** For automatic activation, how many hours after activation the previous signing key should stop being used. Defaults to a 1 hour grace period so already-issued tokens keep verifying. */
|
|
347
|
+
revokePreviousAfterHours?: number;
|
|
348
|
+
/** Deprecated. The ISO date string or timestamp when the previous signing key should stop being used. Converted to a relative grace and applied at activation, not creation. Prefer revokePreviousAfterHours. */
|
|
349
|
+
revokePreviousAt?: CreateKmsSigningKeyRequestRevokePreviousAt;
|
|
350
|
+
/** The PEM-encoded private key to use for the issuer. */
|
|
351
|
+
importKey?: string;
|
|
352
|
+
/** The key id to use as the imported key's JWT/JWKS `kid`. Only allowed when `importKey` is provided. Not required to be unique; the addressable key id is the server-minted `keyId` returned in the response. */
|
|
353
|
+
importKeyId?: string;
|
|
354
|
+
}
|
|
355
|
+
export declare const CreateKmsSigningKeyRequest: S.Schema<CreateKmsSigningKeyRequest>;
|
|
356
|
+
export type CreateKmsSigningKeyResponseStatus = "active" | "pending" | "revoking";
|
|
357
|
+
export declare const CreateKmsSigningKeyResponseStatus: any;
|
|
358
|
+
export type CreateKmsSigningKeyResponsePublicKeyKeyOpsList = Array<string>;
|
|
359
|
+
export declare const CreateKmsSigningKeyResponsePublicKeyKeyOpsList: S.Schema<CreateKmsSigningKeyResponsePublicKeyKeyOpsList>;
|
|
360
|
+
/** The X.509 certificate chain (RFC 7517 §4.7). Each entry is the base64 DER (not base64url) of a certificate. For keys minted with a stored certificate this holds the single self-signed cert as `[x5c]`. */
|
|
361
|
+
export type CreateKmsSigningKeyResponsePublicKeyX5cList = Array<string>;
|
|
362
|
+
export declare const CreateKmsSigningKeyResponsePublicKeyX5cList: S.Schema<CreateKmsSigningKeyResponsePublicKeyX5cList>;
|
|
363
|
+
export interface CreateKmsSigningKeyResponsePublicKey {
|
|
364
|
+
kty?: string;
|
|
365
|
+
kid?: string;
|
|
366
|
+
alg?: string;
|
|
367
|
+
use?: string;
|
|
368
|
+
key_ops?: CreateKmsSigningKeyResponsePublicKeyKeyOpsList;
|
|
369
|
+
/** The X.509 certificate chain (RFC 7517 §4.7). Each entry is the base64 DER (not base64url) of a certificate. For keys minted with a stored certificate this holds the single self-signed cert as `[x5c]`. */
|
|
370
|
+
x5c?: CreateKmsSigningKeyResponsePublicKeyX5cList;
|
|
371
|
+
/** The base64url SHA-256 thumbprint of the DER certificate in `x5c[0]` (RFC 7517 §4.9). */
|
|
372
|
+
x5t_S256?: string;
|
|
373
|
+
}
|
|
374
|
+
export declare const CreateKmsSigningKeyResponsePublicKey: S.Schema<CreateKmsSigningKeyResponsePublicKey>;
|
|
375
|
+
export interface CreateKmsSigningKeyResponse {
|
|
376
|
+
/** The server-minted, unique record identifier. Use this to address the key on the activate / certificate endpoints. */
|
|
377
|
+
keyId: string;
|
|
378
|
+
/** The caller-supplied key id (imported keys only), used as the JWT/JWKS `kid`. Not unique across an issuer's keys; omitted for generated keys. */
|
|
379
|
+
importKeyId?: string;
|
|
380
|
+
issuerId: string;
|
|
381
|
+
algorithm: string;
|
|
382
|
+
status: CreateKmsSigningKeyResponseStatus;
|
|
383
|
+
publicKey?: CreateKmsSigningKeyResponsePublicKey;
|
|
384
|
+
publicKeyFingerprint?: string;
|
|
385
|
+
/** The public key in SPKI PEM form, ready to render. Present whenever the key has public key material. Derived from `publicKey`; the embedded certificate members (`x5c`/`x5t#S256`) do not affect it. */
|
|
386
|
+
publicKeyPem?: string;
|
|
387
|
+
/** The stored X.509 certificate (from `publicKey.x5c[0]`) in PEM form, ready to render. Present only for keys created with a stored certificate; omitted for keys created before certificates were stored. */
|
|
388
|
+
certificatePem?: string;
|
|
389
|
+
createdAt: string;
|
|
390
|
+
updatedAt: string;
|
|
391
|
+
revokeAt?: string;
|
|
392
|
+
activateAt?: string;
|
|
393
|
+
/** When the key became the active signer. Present for active and revoking keys (and absent for pending keys and rows predating this field). */
|
|
394
|
+
activatedAt?: string;
|
|
395
|
+
}
|
|
396
|
+
export declare const CreateKmsSigningKeyResponse: S.Schema<CreateKmsSigningKeyResponse>;
|
|
397
|
+
export interface DeleteKmsIssuerRequest {
|
|
398
|
+
/** The ID of the issuer. */
|
|
399
|
+
issuerId: string;
|
|
400
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
401
|
+
teamId?: string;
|
|
402
|
+
/** The Team slug to perform the request on behalf of. */
|
|
403
|
+
slug?: string;
|
|
404
|
+
}
|
|
405
|
+
export declare const DeleteKmsIssuerRequest: S.Schema<DeleteKmsIssuerRequest>;
|
|
406
|
+
export interface DeleteKmsIssuerResponse {
|
|
407
|
+
}
|
|
408
|
+
export declare const DeleteKmsIssuerResponse: S.Schema<DeleteKmsIssuerResponse>;
|
|
409
|
+
/** The issuer policy kind. */
|
|
410
|
+
export type DeleteKmsIssuerPolicyRequestKind = "project-grant" | "connex-grant";
|
|
411
|
+
export declare const DeleteKmsIssuerPolicyRequestKind: any;
|
|
412
|
+
export interface DeleteKmsIssuerPolicyRequest {
|
|
413
|
+
/** The ID of the issuer. */
|
|
414
|
+
issuerId: string;
|
|
415
|
+
/** The issuer policy kind. */
|
|
416
|
+
kind: DeleteKmsIssuerPolicyRequestKind | (string & {});
|
|
417
|
+
/** The policy identifier. */
|
|
418
|
+
policyKey: string;
|
|
419
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
420
|
+
teamId?: string;
|
|
421
|
+
/** The Team slug to perform the request on behalf of. */
|
|
422
|
+
slug?: string;
|
|
423
|
+
}
|
|
424
|
+
export declare const DeleteKmsIssuerPolicyRequest: S.Schema<DeleteKmsIssuerPolicyRequest>;
|
|
425
|
+
export interface DeleteKmsIssuerPolicyResponse {
|
|
426
|
+
}
|
|
427
|
+
export declare const DeleteKmsIssuerPolicyResponse: S.Schema<DeleteKmsIssuerPolicyResponse>;
|
|
428
|
+
export interface GetKmsIssuerRequest {
|
|
429
|
+
/** The ID of the issuer. */
|
|
430
|
+
issuerId: string;
|
|
431
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
432
|
+
teamId?: string;
|
|
433
|
+
/** The Team slug to perform the request on behalf of. */
|
|
434
|
+
slug?: string;
|
|
435
|
+
}
|
|
436
|
+
export declare const GetKmsIssuerRequest: S.Schema<GetKmsIssuerRequest>;
|
|
437
|
+
export type GetKmsIssuerResponseAlgorithm = "ES256" | "ES384" | "ES512" | "EdDSA" | "PS256" | "PS384" | "PS512" | "RS256" | "RS384" | "RS512";
|
|
438
|
+
export declare const GetKmsIssuerResponseAlgorithm: any;
|
|
439
|
+
export type GetKmsIssuerResponseOrigin = "external" | "vercel";
|
|
440
|
+
export declare const GetKmsIssuerResponseOrigin: any;
|
|
441
|
+
export type GetKmsIssuerResponseClaimsSchemaMap = {
|
|
442
|
+
[key: string]: unknown | undefined;
|
|
443
|
+
};
|
|
444
|
+
export declare const GetKmsIssuerResponseClaimsSchemaMap: S.Schema<GetKmsIssuerResponseClaimsSchemaMap>;
|
|
445
|
+
export type GetKmsIssuerResponseSigningKeysItemStatus = "active" | "pending" | "revoking";
|
|
446
|
+
export declare const GetKmsIssuerResponseSigningKeysItemStatus: any;
|
|
447
|
+
export type GetKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList = Array<string>;
|
|
448
|
+
export declare const GetKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList: S.Schema<GetKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList>;
|
|
449
|
+
/** The X.509 certificate chain (RFC 7517 §4.7). Each entry is the base64 DER (not base64url) of a certificate. For keys minted with a stored certificate this holds the single self-signed cert as `[x5c]`. */
|
|
450
|
+
export type GetKmsIssuerResponseSigningKeysItemPublicKeyX5cList = Array<string>;
|
|
451
|
+
export declare const GetKmsIssuerResponseSigningKeysItemPublicKeyX5cList: S.Schema<GetKmsIssuerResponseSigningKeysItemPublicKeyX5cList>;
|
|
452
|
+
export interface GetKmsIssuerResponseSigningKeysItemPublicKey {
|
|
453
|
+
kty?: string;
|
|
454
|
+
kid?: string;
|
|
455
|
+
alg?: string;
|
|
456
|
+
use?: string;
|
|
457
|
+
key_ops?: GetKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList;
|
|
458
|
+
/** The X.509 certificate chain (RFC 7517 §4.7). Each entry is the base64 DER (not base64url) of a certificate. For keys minted with a stored certificate this holds the single self-signed cert as `[x5c]`. */
|
|
459
|
+
x5c?: GetKmsIssuerResponseSigningKeysItemPublicKeyX5cList;
|
|
460
|
+
/** The base64url SHA-256 thumbprint of the DER certificate in `x5c[0]` (RFC 7517 §4.9). */
|
|
461
|
+
x5t_S256?: string;
|
|
462
|
+
}
|
|
463
|
+
export declare const GetKmsIssuerResponseSigningKeysItemPublicKey: S.Schema<GetKmsIssuerResponseSigningKeysItemPublicKey>;
|
|
464
|
+
export interface GetKmsIssuerResponseSigningKeysItem {
|
|
465
|
+
/** The server-minted, unique record identifier. Use this to address the key on the activate / certificate endpoints. */
|
|
466
|
+
keyId: string;
|
|
467
|
+
/** The caller-supplied key id (imported keys only), used as the JWT/JWKS `kid`. Not unique across an issuer's keys; omitted for generated keys. */
|
|
468
|
+
importKeyId?: string;
|
|
469
|
+
issuerId: string;
|
|
470
|
+
algorithm: string;
|
|
471
|
+
status: GetKmsIssuerResponseSigningKeysItemStatus;
|
|
472
|
+
publicKey?: GetKmsIssuerResponseSigningKeysItemPublicKey;
|
|
473
|
+
publicKeyFingerprint?: string;
|
|
474
|
+
/** The public key in SPKI PEM form, ready to render. Present whenever the key has public key material. Derived from `publicKey`; the embedded certificate members (`x5c`/`x5t#S256`) do not affect it. */
|
|
475
|
+
publicKeyPem?: string;
|
|
476
|
+
/** The stored X.509 certificate (from `publicKey.x5c[0]`) in PEM form, ready to render. Present only for keys created with a stored certificate; omitted for keys created before certificates were stored. */
|
|
477
|
+
certificatePem?: string;
|
|
478
|
+
createdAt: string;
|
|
479
|
+
updatedAt: string;
|
|
480
|
+
revokeAt?: string;
|
|
481
|
+
activateAt?: string;
|
|
482
|
+
/** When the key became the active signer. Present for active and revoking keys (and absent for pending keys and rows predating this field). */
|
|
483
|
+
activatedAt?: string;
|
|
484
|
+
}
|
|
485
|
+
export declare const GetKmsIssuerResponseSigningKeysItem: S.Schema<GetKmsIssuerResponseSigningKeysItem>;
|
|
486
|
+
export type GetKmsIssuerResponseSigningKeysList = Array<GetKmsIssuerResponseSigningKeysItem>;
|
|
487
|
+
export declare const GetKmsIssuerResponseSigningKeysList: S.Schema<GetKmsIssuerResponseSigningKeysList>;
|
|
488
|
+
export type GetKmsIssuerResponsePoliciesItemCase0Kind = "project-grant";
|
|
489
|
+
export declare const GetKmsIssuerResponsePoliciesItemCase0Kind: any;
|
|
490
|
+
/** Environments whose OIDC tokens this grant authorizes. Each entry is either a system environment slug (`production`, `preview`, `development`) or a custom environment ID (prefixed `env_`). Custom environments are matched against the token's `custom_environment_id` claim (the stable ID); system environments against its `environment` claim. */
|
|
491
|
+
export type GetKmsIssuerResponsePoliciesItemCase0EnvironmentsList = Array<string>;
|
|
492
|
+
export declare const GetKmsIssuerResponsePoliciesItemCase0EnvironmentsList: S.Schema<GetKmsIssuerResponsePoliciesItemCase0EnvironmentsList>;
|
|
493
|
+
export type GetKmsIssuerResponsePoliciesItemCase0TokenClaimsMap = {
|
|
494
|
+
[key: string]: unknown | undefined;
|
|
495
|
+
};
|
|
496
|
+
export declare const GetKmsIssuerResponsePoliciesItemCase0TokenClaimsMap: S.Schema<GetKmsIssuerResponsePoliciesItemCase0TokenClaimsMap>;
|
|
497
|
+
export interface GetKmsIssuerResponsePoliciesItemCase0 {
|
|
498
|
+
kind: GetKmsIssuerResponsePoliciesItemCase0Kind;
|
|
499
|
+
teamId: string;
|
|
500
|
+
projectId: string;
|
|
501
|
+
/** Environments whose OIDC tokens this grant authorizes. Each entry is either a system environment slug (`production`, `preview`, `development`) or a custom environment ID (prefixed `env_`). Custom environments are matched against the token's `custom_environment_id` claim (the stable ID); system environments against its `environment` claim. */
|
|
502
|
+
environments: GetKmsIssuerResponsePoliciesItemCase0EnvironmentsList;
|
|
503
|
+
tokenClaims?: GetKmsIssuerResponsePoliciesItemCase0TokenClaimsMap;
|
|
504
|
+
createdAt: string;
|
|
505
|
+
updatedAt: string;
|
|
506
|
+
}
|
|
507
|
+
export declare const GetKmsIssuerResponsePoliciesItemCase0: S.Schema<GetKmsIssuerResponsePoliciesItemCase0>;
|
|
508
|
+
export type GetKmsIssuerResponsePoliciesItemCase1Kind = "connex-grant";
|
|
509
|
+
export declare const GetKmsIssuerResponsePoliciesItemCase1Kind: any;
|
|
510
|
+
export type GetKmsIssuerResponsePoliciesItemCase1TokenClaimsMap = {
|
|
511
|
+
[key: string]: unknown | undefined;
|
|
512
|
+
};
|
|
513
|
+
export declare const GetKmsIssuerResponsePoliciesItemCase1TokenClaimsMap: S.Schema<GetKmsIssuerResponsePoliciesItemCase1TokenClaimsMap>;
|
|
514
|
+
export interface GetKmsIssuerResponsePoliciesItemCase1 {
|
|
515
|
+
kind: GetKmsIssuerResponsePoliciesItemCase1Kind;
|
|
516
|
+
clientId: string;
|
|
517
|
+
tokenClaims?: GetKmsIssuerResponsePoliciesItemCase1TokenClaimsMap;
|
|
518
|
+
createdAt: string;
|
|
519
|
+
updatedAt: string;
|
|
520
|
+
}
|
|
521
|
+
export declare const GetKmsIssuerResponsePoliciesItemCase1: S.Schema<GetKmsIssuerResponsePoliciesItemCase1>;
|
|
522
|
+
export type GetKmsIssuerResponsePoliciesItem = GetKmsIssuerResponsePoliciesItemCase0 | GetKmsIssuerResponsePoliciesItemCase1;
|
|
523
|
+
export declare const GetKmsIssuerResponsePoliciesItem: S.Schema<GetKmsIssuerResponsePoliciesItem>;
|
|
524
|
+
export type GetKmsIssuerResponsePoliciesList = Array<GetKmsIssuerResponsePoliciesItem>;
|
|
525
|
+
export declare const GetKmsIssuerResponsePoliciesList: S.Schema<GetKmsIssuerResponsePoliciesList>;
|
|
526
|
+
export interface GetKmsIssuerResponse {
|
|
527
|
+
id: string;
|
|
528
|
+
ownerId: string;
|
|
529
|
+
name: string;
|
|
530
|
+
algorithm: GetKmsIssuerResponseAlgorithm;
|
|
531
|
+
origin: GetKmsIssuerResponseOrigin;
|
|
532
|
+
managedBy?: string;
|
|
533
|
+
claimsSchema?: GetKmsIssuerResponseClaimsSchemaMap;
|
|
534
|
+
createdAt: string;
|
|
535
|
+
updatedAt: string;
|
|
536
|
+
signingKeys: GetKmsIssuerResponseSigningKeysList;
|
|
537
|
+
policies: GetKmsIssuerResponsePoliciesList;
|
|
538
|
+
}
|
|
539
|
+
export declare const GetKmsIssuerResponse: S.Schema<GetKmsIssuerResponse>;
|
|
540
|
+
export interface ListKmsIssuersRequest {
|
|
541
|
+
/** Maximum number of issuers to return. */
|
|
542
|
+
limit?: number;
|
|
543
|
+
/** Continuation cursor to retrieve the next page of results. */
|
|
544
|
+
next?: string;
|
|
545
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
546
|
+
teamId?: string;
|
|
547
|
+
/** The Team slug to perform the request on behalf of. */
|
|
548
|
+
slug?: string;
|
|
549
|
+
}
|
|
550
|
+
export declare const ListKmsIssuersRequest: S.Schema<ListKmsIssuersRequest>;
|
|
551
|
+
export type ListKmsIssuersResponseIssuersItemAlgorithm = "ES256" | "ES384" | "ES512" | "EdDSA" | "PS256" | "PS384" | "PS512" | "RS256" | "RS384" | "RS512";
|
|
552
|
+
export declare const ListKmsIssuersResponseIssuersItemAlgorithm: any;
|
|
553
|
+
export type ListKmsIssuersResponseIssuersItemOrigin = "external" | "vercel";
|
|
554
|
+
export declare const ListKmsIssuersResponseIssuersItemOrigin: any;
|
|
555
|
+
export type ListKmsIssuersResponseIssuersItemClaimsSchemaMap = {
|
|
556
|
+
[key: string]: unknown | undefined;
|
|
557
|
+
};
|
|
558
|
+
export declare const ListKmsIssuersResponseIssuersItemClaimsSchemaMap: S.Schema<ListKmsIssuersResponseIssuersItemClaimsSchemaMap>;
|
|
559
|
+
export type ListKmsIssuersResponseIssuersItemSigningKeysItemStatus = "active" | "pending" | "revoking";
|
|
560
|
+
export declare const ListKmsIssuersResponseIssuersItemSigningKeysItemStatus: any;
|
|
561
|
+
export type ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKeyKeyOpsList = Array<string>;
|
|
562
|
+
export declare const ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKeyKeyOpsList: S.Schema<ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKeyKeyOpsList>;
|
|
563
|
+
/** The X.509 certificate chain (RFC 7517 §4.7). Each entry is the base64 DER (not base64url) of a certificate. For keys minted with a stored certificate this holds the single self-signed cert as `[x5c]`. */
|
|
564
|
+
export type ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKeyX5cList = Array<string>;
|
|
565
|
+
export declare const ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKeyX5cList: S.Schema<ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKeyX5cList>;
|
|
566
|
+
export interface ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKey {
|
|
567
|
+
kty?: string;
|
|
568
|
+
kid?: string;
|
|
569
|
+
alg?: string;
|
|
570
|
+
use?: string;
|
|
571
|
+
key_ops?: ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKeyKeyOpsList;
|
|
572
|
+
/** The X.509 certificate chain (RFC 7517 §4.7). Each entry is the base64 DER (not base64url) of a certificate. For keys minted with a stored certificate this holds the single self-signed cert as `[x5c]`. */
|
|
573
|
+
x5c?: ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKeyX5cList;
|
|
574
|
+
/** The base64url SHA-256 thumbprint of the DER certificate in `x5c[0]` (RFC 7517 §4.9). */
|
|
575
|
+
x5t_S256?: string;
|
|
576
|
+
}
|
|
577
|
+
export declare const ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKey: S.Schema<ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKey>;
|
|
578
|
+
export interface ListKmsIssuersResponseIssuersItemSigningKeysItem {
|
|
579
|
+
/** The server-minted, unique record identifier. Use this to address the key on the activate / certificate endpoints. */
|
|
580
|
+
keyId: string;
|
|
581
|
+
/** The caller-supplied key id (imported keys only), used as the JWT/JWKS `kid`. Not unique across an issuer's keys; omitted for generated keys. */
|
|
582
|
+
importKeyId?: string;
|
|
583
|
+
issuerId: string;
|
|
584
|
+
algorithm: string;
|
|
585
|
+
status: ListKmsIssuersResponseIssuersItemSigningKeysItemStatus;
|
|
586
|
+
publicKey?: ListKmsIssuersResponseIssuersItemSigningKeysItemPublicKey;
|
|
587
|
+
publicKeyFingerprint?: string;
|
|
588
|
+
/** The public key in SPKI PEM form, ready to render. Present whenever the key has public key material. Derived from `publicKey`; the embedded certificate members (`x5c`/`x5t#S256`) do not affect it. */
|
|
589
|
+
publicKeyPem?: string;
|
|
590
|
+
/** The stored X.509 certificate (from `publicKey.x5c[0]`) in PEM form, ready to render. Present only for keys created with a stored certificate; omitted for keys created before certificates were stored. */
|
|
591
|
+
certificatePem?: string;
|
|
592
|
+
createdAt: string;
|
|
593
|
+
updatedAt: string;
|
|
594
|
+
revokeAt?: string;
|
|
595
|
+
activateAt?: string;
|
|
596
|
+
/** When the key became the active signer. Present for active and revoking keys (and absent for pending keys and rows predating this field). */
|
|
597
|
+
activatedAt?: string;
|
|
598
|
+
}
|
|
599
|
+
export declare const ListKmsIssuersResponseIssuersItemSigningKeysItem: S.Schema<ListKmsIssuersResponseIssuersItemSigningKeysItem>;
|
|
600
|
+
export type ListKmsIssuersResponseIssuersItemSigningKeysList = Array<ListKmsIssuersResponseIssuersItemSigningKeysItem>;
|
|
601
|
+
export declare const ListKmsIssuersResponseIssuersItemSigningKeysList: S.Schema<ListKmsIssuersResponseIssuersItemSigningKeysList>;
|
|
602
|
+
export type ListKmsIssuersResponseIssuersItemPoliciesItemCase0Kind = "project-grant";
|
|
603
|
+
export declare const ListKmsIssuersResponseIssuersItemPoliciesItemCase0Kind: any;
|
|
604
|
+
/** Environments whose OIDC tokens this grant authorizes. Each entry is either a system environment slug (`production`, `preview`, `development`) or a custom environment ID (prefixed `env_`). Custom environments are matched against the token's `custom_environment_id` claim (the stable ID); system environments against its `environment` claim. */
|
|
605
|
+
export type ListKmsIssuersResponseIssuersItemPoliciesItemCase0EnvironmentsList = Array<string>;
|
|
606
|
+
export declare const ListKmsIssuersResponseIssuersItemPoliciesItemCase0EnvironmentsList: S.Schema<ListKmsIssuersResponseIssuersItemPoliciesItemCase0EnvironmentsList>;
|
|
607
|
+
export type ListKmsIssuersResponseIssuersItemPoliciesItemCase0TokenClaimsMap = {
|
|
608
|
+
[key: string]: unknown | undefined;
|
|
609
|
+
};
|
|
610
|
+
export declare const ListKmsIssuersResponseIssuersItemPoliciesItemCase0TokenClaimsMap: S.Schema<ListKmsIssuersResponseIssuersItemPoliciesItemCase0TokenClaimsMap>;
|
|
611
|
+
export interface ListKmsIssuersResponseIssuersItemPoliciesItemCase0 {
|
|
612
|
+
kind: ListKmsIssuersResponseIssuersItemPoliciesItemCase0Kind;
|
|
613
|
+
teamId: string;
|
|
614
|
+
projectId: string;
|
|
615
|
+
/** Environments whose OIDC tokens this grant authorizes. Each entry is either a system environment slug (`production`, `preview`, `development`) or a custom environment ID (prefixed `env_`). Custom environments are matched against the token's `custom_environment_id` claim (the stable ID); system environments against its `environment` claim. */
|
|
616
|
+
environments: ListKmsIssuersResponseIssuersItemPoliciesItemCase0EnvironmentsList;
|
|
617
|
+
tokenClaims?: ListKmsIssuersResponseIssuersItemPoliciesItemCase0TokenClaimsMap;
|
|
618
|
+
createdAt: string;
|
|
619
|
+
updatedAt: string;
|
|
620
|
+
}
|
|
621
|
+
export declare const ListKmsIssuersResponseIssuersItemPoliciesItemCase0: S.Schema<ListKmsIssuersResponseIssuersItemPoliciesItemCase0>;
|
|
622
|
+
export type ListKmsIssuersResponseIssuersItemPoliciesItemCase1Kind = "connex-grant";
|
|
623
|
+
export declare const ListKmsIssuersResponseIssuersItemPoliciesItemCase1Kind: any;
|
|
624
|
+
export type ListKmsIssuersResponseIssuersItemPoliciesItemCase1TokenClaimsMap = {
|
|
625
|
+
[key: string]: unknown | undefined;
|
|
626
|
+
};
|
|
627
|
+
export declare const ListKmsIssuersResponseIssuersItemPoliciesItemCase1TokenClaimsMap: S.Schema<ListKmsIssuersResponseIssuersItemPoliciesItemCase1TokenClaimsMap>;
|
|
628
|
+
export interface ListKmsIssuersResponseIssuersItemPoliciesItemCase1 {
|
|
629
|
+
kind: ListKmsIssuersResponseIssuersItemPoliciesItemCase1Kind;
|
|
630
|
+
clientId: string;
|
|
631
|
+
tokenClaims?: ListKmsIssuersResponseIssuersItemPoliciesItemCase1TokenClaimsMap;
|
|
632
|
+
createdAt: string;
|
|
633
|
+
updatedAt: string;
|
|
634
|
+
}
|
|
635
|
+
export declare const ListKmsIssuersResponseIssuersItemPoliciesItemCase1: S.Schema<ListKmsIssuersResponseIssuersItemPoliciesItemCase1>;
|
|
636
|
+
export type ListKmsIssuersResponseIssuersItemPoliciesItem = ListKmsIssuersResponseIssuersItemPoliciesItemCase0 | ListKmsIssuersResponseIssuersItemPoliciesItemCase1;
|
|
637
|
+
export declare const ListKmsIssuersResponseIssuersItemPoliciesItem: S.Schema<ListKmsIssuersResponseIssuersItemPoliciesItem>;
|
|
638
|
+
export type ListKmsIssuersResponseIssuersItemPoliciesList = Array<ListKmsIssuersResponseIssuersItemPoliciesItem>;
|
|
639
|
+
export declare const ListKmsIssuersResponseIssuersItemPoliciesList: S.Schema<ListKmsIssuersResponseIssuersItemPoliciesList>;
|
|
640
|
+
export interface ListKmsIssuersResponseIssuersItem {
|
|
641
|
+
id: string;
|
|
642
|
+
ownerId: string;
|
|
643
|
+
name: string;
|
|
644
|
+
algorithm: ListKmsIssuersResponseIssuersItemAlgorithm;
|
|
645
|
+
origin: ListKmsIssuersResponseIssuersItemOrigin;
|
|
646
|
+
managedBy?: string;
|
|
647
|
+
claimsSchema?: ListKmsIssuersResponseIssuersItemClaimsSchemaMap;
|
|
648
|
+
createdAt: string;
|
|
649
|
+
updatedAt: string;
|
|
650
|
+
signingKeys: ListKmsIssuersResponseIssuersItemSigningKeysList;
|
|
651
|
+
policies: ListKmsIssuersResponseIssuersItemPoliciesList;
|
|
652
|
+
}
|
|
653
|
+
export declare const ListKmsIssuersResponseIssuersItem: S.Schema<ListKmsIssuersResponseIssuersItem>;
|
|
654
|
+
export type ListKmsIssuersResponseIssuersList = Array<ListKmsIssuersResponseIssuersItem>;
|
|
655
|
+
export declare const ListKmsIssuersResponseIssuersList: S.Schema<ListKmsIssuersResponseIssuersList>;
|
|
656
|
+
export interface ListKmsIssuersResponsePagination {
|
|
657
|
+
count: number;
|
|
658
|
+
next: string | null;
|
|
659
|
+
}
|
|
660
|
+
export declare const ListKmsIssuersResponsePagination: S.Schema<ListKmsIssuersResponsePagination>;
|
|
661
|
+
export interface ListKmsIssuersResponse {
|
|
662
|
+
issuers: ListKmsIssuersResponseIssuersList;
|
|
663
|
+
pagination: ListKmsIssuersResponsePagination;
|
|
664
|
+
}
|
|
665
|
+
export declare const ListKmsIssuersResponse: S.Schema<ListKmsIssuersResponse>;
|
|
666
|
+
export interface RevokeKmsSigningKeyRequest {
|
|
667
|
+
/** The ID of the issuer. */
|
|
668
|
+
issuerId: string;
|
|
669
|
+
/** The ID of the signing key to revoke immediately. The key must already be scheduled for revocation. */
|
|
670
|
+
keyId: string;
|
|
671
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
672
|
+
teamId?: string;
|
|
673
|
+
/** The Team slug to perform the request on behalf of. */
|
|
674
|
+
slug?: string;
|
|
675
|
+
}
|
|
676
|
+
export declare const RevokeKmsSigningKeyRequest: S.Schema<RevokeKmsSigningKeyRequest>;
|
|
677
|
+
export type RevokeKmsSigningKeyResponseAlgorithm = "ES256" | "ES384" | "ES512" | "EdDSA" | "PS256" | "PS384" | "PS512" | "RS256" | "RS384" | "RS512";
|
|
678
|
+
export declare const RevokeKmsSigningKeyResponseAlgorithm: any;
|
|
679
|
+
export type RevokeKmsSigningKeyResponseOrigin = "external" | "vercel";
|
|
680
|
+
export declare const RevokeKmsSigningKeyResponseOrigin: any;
|
|
681
|
+
export type RevokeKmsSigningKeyResponseClaimsSchemaMap = {
|
|
682
|
+
[key: string]: unknown | undefined;
|
|
683
|
+
};
|
|
684
|
+
export declare const RevokeKmsSigningKeyResponseClaimsSchemaMap: S.Schema<RevokeKmsSigningKeyResponseClaimsSchemaMap>;
|
|
685
|
+
export type RevokeKmsSigningKeyResponseSigningKeysItemStatus = "active" | "pending" | "revoking";
|
|
686
|
+
export declare const RevokeKmsSigningKeyResponseSigningKeysItemStatus: any;
|
|
687
|
+
export type RevokeKmsSigningKeyResponseSigningKeysItemPublicKeyKeyOpsList = Array<string>;
|
|
688
|
+
export declare const RevokeKmsSigningKeyResponseSigningKeysItemPublicKeyKeyOpsList: S.Schema<RevokeKmsSigningKeyResponseSigningKeysItemPublicKeyKeyOpsList>;
|
|
689
|
+
/** The X.509 certificate chain (RFC 7517 §4.7). Each entry is the base64 DER (not base64url) of a certificate. For keys minted with a stored certificate this holds the single self-signed cert as `[x5c]`. */
|
|
690
|
+
export type RevokeKmsSigningKeyResponseSigningKeysItemPublicKeyX5cList = Array<string>;
|
|
691
|
+
export declare const RevokeKmsSigningKeyResponseSigningKeysItemPublicKeyX5cList: S.Schema<RevokeKmsSigningKeyResponseSigningKeysItemPublicKeyX5cList>;
|
|
692
|
+
export interface RevokeKmsSigningKeyResponseSigningKeysItemPublicKey {
|
|
693
|
+
kty?: string;
|
|
694
|
+
kid?: string;
|
|
695
|
+
alg?: string;
|
|
696
|
+
use?: string;
|
|
697
|
+
key_ops?: RevokeKmsSigningKeyResponseSigningKeysItemPublicKeyKeyOpsList;
|
|
698
|
+
/** The X.509 certificate chain (RFC 7517 §4.7). Each entry is the base64 DER (not base64url) of a certificate. For keys minted with a stored certificate this holds the single self-signed cert as `[x5c]`. */
|
|
699
|
+
x5c?: RevokeKmsSigningKeyResponseSigningKeysItemPublicKeyX5cList;
|
|
700
|
+
/** The base64url SHA-256 thumbprint of the DER certificate in `x5c[0]` (RFC 7517 §4.9). */
|
|
701
|
+
x5t_S256?: string;
|
|
702
|
+
}
|
|
703
|
+
export declare const RevokeKmsSigningKeyResponseSigningKeysItemPublicKey: S.Schema<RevokeKmsSigningKeyResponseSigningKeysItemPublicKey>;
|
|
704
|
+
export interface RevokeKmsSigningKeyResponseSigningKeysItem {
|
|
705
|
+
/** The server-minted, unique record identifier. Use this to address the key on the activate / certificate endpoints. */
|
|
706
|
+
keyId: string;
|
|
707
|
+
/** The caller-supplied key id (imported keys only), used as the JWT/JWKS `kid`. Not unique across an issuer's keys; omitted for generated keys. */
|
|
708
|
+
importKeyId?: string;
|
|
709
|
+
issuerId: string;
|
|
710
|
+
algorithm: string;
|
|
711
|
+
status: RevokeKmsSigningKeyResponseSigningKeysItemStatus;
|
|
712
|
+
publicKey?: RevokeKmsSigningKeyResponseSigningKeysItemPublicKey;
|
|
713
|
+
publicKeyFingerprint?: string;
|
|
714
|
+
/** The public key in SPKI PEM form, ready to render. Present whenever the key has public key material. Derived from `publicKey`; the embedded certificate members (`x5c`/`x5t#S256`) do not affect it. */
|
|
715
|
+
publicKeyPem?: string;
|
|
716
|
+
/** The stored X.509 certificate (from `publicKey.x5c[0]`) in PEM form, ready to render. Present only for keys created with a stored certificate; omitted for keys created before certificates were stored. */
|
|
717
|
+
certificatePem?: string;
|
|
718
|
+
createdAt: string;
|
|
719
|
+
updatedAt: string;
|
|
720
|
+
revokeAt?: string;
|
|
721
|
+
activateAt?: string;
|
|
722
|
+
/** When the key became the active signer. Present for active and revoking keys (and absent for pending keys and rows predating this field). */
|
|
723
|
+
activatedAt?: string;
|
|
724
|
+
}
|
|
725
|
+
export declare const RevokeKmsSigningKeyResponseSigningKeysItem: S.Schema<RevokeKmsSigningKeyResponseSigningKeysItem>;
|
|
726
|
+
export type RevokeKmsSigningKeyResponseSigningKeysList = Array<RevokeKmsSigningKeyResponseSigningKeysItem>;
|
|
727
|
+
export declare const RevokeKmsSigningKeyResponseSigningKeysList: S.Schema<RevokeKmsSigningKeyResponseSigningKeysList>;
|
|
728
|
+
export type RevokeKmsSigningKeyResponsePoliciesItemCase0Kind = "project-grant";
|
|
729
|
+
export declare const RevokeKmsSigningKeyResponsePoliciesItemCase0Kind: any;
|
|
730
|
+
/** Environments whose OIDC tokens this grant authorizes. Each entry is either a system environment slug (`production`, `preview`, `development`) or a custom environment ID (prefixed `env_`). Custom environments are matched against the token's `custom_environment_id` claim (the stable ID); system environments against its `environment` claim. */
|
|
731
|
+
export type RevokeKmsSigningKeyResponsePoliciesItemCase0EnvironmentsList = Array<string>;
|
|
732
|
+
export declare const RevokeKmsSigningKeyResponsePoliciesItemCase0EnvironmentsList: S.Schema<RevokeKmsSigningKeyResponsePoliciesItemCase0EnvironmentsList>;
|
|
733
|
+
export type RevokeKmsSigningKeyResponsePoliciesItemCase0TokenClaimsMap = {
|
|
734
|
+
[key: string]: unknown | undefined;
|
|
735
|
+
};
|
|
736
|
+
export declare const RevokeKmsSigningKeyResponsePoliciesItemCase0TokenClaimsMap: S.Schema<RevokeKmsSigningKeyResponsePoliciesItemCase0TokenClaimsMap>;
|
|
737
|
+
export interface RevokeKmsSigningKeyResponsePoliciesItemCase0 {
|
|
738
|
+
kind: RevokeKmsSigningKeyResponsePoliciesItemCase0Kind;
|
|
739
|
+
teamId: string;
|
|
740
|
+
projectId: string;
|
|
741
|
+
/** Environments whose OIDC tokens this grant authorizes. Each entry is either a system environment slug (`production`, `preview`, `development`) or a custom environment ID (prefixed `env_`). Custom environments are matched against the token's `custom_environment_id` claim (the stable ID); system environments against its `environment` claim. */
|
|
742
|
+
environments: RevokeKmsSigningKeyResponsePoliciesItemCase0EnvironmentsList;
|
|
743
|
+
tokenClaims?: RevokeKmsSigningKeyResponsePoliciesItemCase0TokenClaimsMap;
|
|
744
|
+
createdAt: string;
|
|
745
|
+
updatedAt: string;
|
|
746
|
+
}
|
|
747
|
+
export declare const RevokeKmsSigningKeyResponsePoliciesItemCase0: S.Schema<RevokeKmsSigningKeyResponsePoliciesItemCase0>;
|
|
748
|
+
export type RevokeKmsSigningKeyResponsePoliciesItemCase1Kind = "connex-grant";
|
|
749
|
+
export declare const RevokeKmsSigningKeyResponsePoliciesItemCase1Kind: any;
|
|
750
|
+
export type RevokeKmsSigningKeyResponsePoliciesItemCase1TokenClaimsMap = {
|
|
751
|
+
[key: string]: unknown | undefined;
|
|
752
|
+
};
|
|
753
|
+
export declare const RevokeKmsSigningKeyResponsePoliciesItemCase1TokenClaimsMap: S.Schema<RevokeKmsSigningKeyResponsePoliciesItemCase1TokenClaimsMap>;
|
|
754
|
+
export interface RevokeKmsSigningKeyResponsePoliciesItemCase1 {
|
|
755
|
+
kind: RevokeKmsSigningKeyResponsePoliciesItemCase1Kind;
|
|
756
|
+
clientId: string;
|
|
757
|
+
tokenClaims?: RevokeKmsSigningKeyResponsePoliciesItemCase1TokenClaimsMap;
|
|
758
|
+
createdAt: string;
|
|
759
|
+
updatedAt: string;
|
|
760
|
+
}
|
|
761
|
+
export declare const RevokeKmsSigningKeyResponsePoliciesItemCase1: S.Schema<RevokeKmsSigningKeyResponsePoliciesItemCase1>;
|
|
762
|
+
export type RevokeKmsSigningKeyResponsePoliciesItem = RevokeKmsSigningKeyResponsePoliciesItemCase0 | RevokeKmsSigningKeyResponsePoliciesItemCase1;
|
|
763
|
+
export declare const RevokeKmsSigningKeyResponsePoliciesItem: S.Schema<RevokeKmsSigningKeyResponsePoliciesItem>;
|
|
764
|
+
export type RevokeKmsSigningKeyResponsePoliciesList = Array<RevokeKmsSigningKeyResponsePoliciesItem>;
|
|
765
|
+
export declare const RevokeKmsSigningKeyResponsePoliciesList: S.Schema<RevokeKmsSigningKeyResponsePoliciesList>;
|
|
766
|
+
export interface RevokeKmsSigningKeyResponse {
|
|
767
|
+
id: string;
|
|
768
|
+
ownerId: string;
|
|
769
|
+
name: string;
|
|
770
|
+
algorithm: RevokeKmsSigningKeyResponseAlgorithm;
|
|
771
|
+
origin: RevokeKmsSigningKeyResponseOrigin;
|
|
772
|
+
managedBy?: string;
|
|
773
|
+
claimsSchema?: RevokeKmsSigningKeyResponseClaimsSchemaMap;
|
|
774
|
+
createdAt: string;
|
|
775
|
+
updatedAt: string;
|
|
776
|
+
signingKeys: RevokeKmsSigningKeyResponseSigningKeysList;
|
|
777
|
+
policies: RevokeKmsSigningKeyResponsePoliciesList;
|
|
778
|
+
}
|
|
779
|
+
export declare const RevokeKmsSigningKeyResponse: S.Schema<RevokeKmsSigningKeyResponse>;
|
|
780
|
+
export interface SignKmsMessageRequest {
|
|
781
|
+
/** The ID of the issuer. */
|
|
782
|
+
issuerId: string;
|
|
783
|
+
/** Base64-encoded message to be signed. */
|
|
784
|
+
message: string;
|
|
785
|
+
}
|
|
786
|
+
export declare const SignKmsMessageRequest: S.Schema<SignKmsMessageRequest>;
|
|
787
|
+
/** JWS "crit" (Critical) Header Parameter */
|
|
788
|
+
export type SignKmsMessageResponseSignatureHeaderCritList = Array<string>;
|
|
789
|
+
export declare const SignKmsMessageResponseSignatureHeaderCritList: S.Schema<SignKmsMessageResponseSignatureHeaderCritList>;
|
|
790
|
+
/** "x5c" (X.509 Certificate Chain) Header Parameter */
|
|
791
|
+
export type SignKmsMessageResponseSignatureHeaderX5cList = Array<string>;
|
|
792
|
+
export declare const SignKmsMessageResponseSignatureHeaderX5cList: S.Schema<SignKmsMessageResponseSignatureHeaderX5cList>;
|
|
793
|
+
/** "jwk" (JSON Web Key) Header Parameter */
|
|
794
|
+
export interface SignKmsMessageResponseSignatureHeaderJwk {
|
|
795
|
+
/** RSA JWK "n" (Modulus) Parameter */
|
|
796
|
+
n?: string;
|
|
797
|
+
/** RSA JWK "e" (Exponent) Parameter */
|
|
798
|
+
e?: string;
|
|
799
|
+
/** JWK "kty" (Key Type) Parameter */
|
|
800
|
+
kty?: string;
|
|
801
|
+
/** - EC JWK "crv" (Curve) Parameter - OKP JWK "crv" (The Subtype of Key Pair) Parameter */
|
|
802
|
+
crv?: string;
|
|
803
|
+
/** - EC JWK "x" (X Coordinate) Parameter - OKP JWK "x" (The public key) Parameter */
|
|
804
|
+
x?: string;
|
|
805
|
+
/** EC JWK "y" (Y Coordinate) Parameter */
|
|
806
|
+
y?: string;
|
|
807
|
+
/** JWK "alg" (Algorithm) Parameter */
|
|
808
|
+
alg?: string;
|
|
809
|
+
/** AKP JWK "pub" (Public Key) Parameter */
|
|
810
|
+
pub?: string;
|
|
811
|
+
}
|
|
812
|
+
export declare const SignKmsMessageResponseSignatureHeaderJwk: S.Schema<SignKmsMessageResponseSignatureHeaderJwk>;
|
|
813
|
+
/** The "header" member MUST be present and contain the value JWS Unprotected Header when the JWS Unprotected Header value is non- empty; otherwise, it MUST be absent. This value is represented as an unencoded JSON object, rather than as a string. These Header Parameter values are not integrity protected. */
|
|
814
|
+
export interface SignKmsMessageResponseSignatureHeader {
|
|
815
|
+
/** JWS "alg" (Algorithm) Header Parameter */
|
|
816
|
+
alg?: string;
|
|
817
|
+
/** This JWS Extension Header Parameter modifies the JWS Payload representation and the JWS Signing Input computation as per {@link https://www.rfc-editor.org/rfc/rfc7797 RFC7797}. */
|
|
818
|
+
b64?: boolean;
|
|
819
|
+
/** JWS "crit" (Critical) Header Parameter */
|
|
820
|
+
crit?: SignKmsMessageResponseSignatureHeaderCritList;
|
|
821
|
+
/** "kid" (Key ID) Header Parameter */
|
|
822
|
+
kid?: string;
|
|
823
|
+
/** "x5t" (X.509 Certificate SHA-1 Thumbprint) Header Parameter */
|
|
824
|
+
x5t?: string;
|
|
825
|
+
/** "x5c" (X.509 Certificate Chain) Header Parameter */
|
|
826
|
+
x5c?: SignKmsMessageResponseSignatureHeaderX5cList;
|
|
827
|
+
/** "x5u" (X.509 URL) Header Parameter */
|
|
828
|
+
x5u?: string;
|
|
829
|
+
/** "jku" (JWK Set URL) Header Parameter */
|
|
830
|
+
jku?: string;
|
|
831
|
+
/** "jwk" (JSON Web Key) Header Parameter */
|
|
832
|
+
jwk?: SignKmsMessageResponseSignatureHeaderJwk;
|
|
833
|
+
/** "typ" (Type) Header Parameter */
|
|
834
|
+
typ?: string;
|
|
835
|
+
/** "cty" (Content Type) Header Parameter */
|
|
836
|
+
cty?: string;
|
|
837
|
+
}
|
|
838
|
+
export declare const SignKmsMessageResponseSignatureHeader: S.Schema<SignKmsMessageResponseSignatureHeader>;
|
|
839
|
+
/** Flattened JWS JSON Serialization Syntax token. Payload is returned as an empty string when JWS Unencoded Payload ({@link https://www.rfc-editor.org/rfc/rfc7797 RFC7797}) is used. */
|
|
840
|
+
export interface SignKmsMessageResponseSignature {
|
|
841
|
+
payload: string;
|
|
842
|
+
signature: string;
|
|
843
|
+
/** The "header" member MUST be present and contain the value JWS Unprotected Header when the JWS Unprotected Header value is non- empty; otherwise, it MUST be absent. This value is represented as an unencoded JSON object, rather than as a string. These Header Parameter values are not integrity protected. */
|
|
844
|
+
header?: SignKmsMessageResponseSignatureHeader;
|
|
845
|
+
/** The "protected" member MUST be present and contain the value BASE64URL(UTF8(JWS Protected Header)) when the JWS Protected Header value is non-empty; otherwise, it MUST be absent. These Header Parameter values are integrity protected. */
|
|
846
|
+
protected?: string;
|
|
847
|
+
}
|
|
848
|
+
export declare const SignKmsMessageResponseSignature: S.Schema<SignKmsMessageResponseSignature>;
|
|
849
|
+
export interface SignKmsMessageResponse {
|
|
850
|
+
/** Flattened JWS JSON Serialization Syntax token. Payload is returned as an empty string when JWS Unencoded Payload ({@link https://www.rfc-editor.org/rfc/rfc7797 RFC7797}) is used. */
|
|
851
|
+
signature: SignKmsMessageResponseSignature;
|
|
852
|
+
}
|
|
853
|
+
export declare const SignKmsMessageResponse: S.Schema<SignKmsMessageResponse>;
|
|
854
|
+
export interface SignKmsTokenRequest {
|
|
855
|
+
/** The ID of the issuer. */
|
|
856
|
+
issuerId: string;
|
|
857
|
+
/** The claims to include in the token. */
|
|
858
|
+
claims?: unknown;
|
|
859
|
+
/** Additional headers to include in the token. */
|
|
860
|
+
headers?: unknown;
|
|
861
|
+
/** The time-to-live for the token, in seconds. */
|
|
862
|
+
ttl?: number | null;
|
|
863
|
+
}
|
|
864
|
+
export declare const SignKmsTokenRequest: S.Schema<SignKmsTokenRequest>;
|
|
865
|
+
export interface SignKmsTokenResponse {
|
|
866
|
+
token: string;
|
|
867
|
+
}
|
|
868
|
+
export declare const SignKmsTokenResponse: S.Schema<SignKmsTokenResponse>;
|
|
869
|
+
/** A JSON Schema used to validate the resolved token claims when signing tokens for this issuer. Pass null to remove it. */
|
|
870
|
+
export type UpdateKmsIssuerRequestClaimsSchemaMap = {
|
|
871
|
+
[key: string]: unknown | undefined;
|
|
872
|
+
};
|
|
873
|
+
export declare const UpdateKmsIssuerRequestClaimsSchemaMap: S.Schema<UpdateKmsIssuerRequestClaimsSchemaMap>;
|
|
874
|
+
export interface UpdateKmsIssuerRequest {
|
|
875
|
+
/** The ID of the issuer. */
|
|
876
|
+
issuerId: string;
|
|
877
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
878
|
+
teamId?: string;
|
|
879
|
+
/** The Team slug to perform the request on behalf of. */
|
|
880
|
+
slug?: string;
|
|
881
|
+
/** The name of the issuer. */
|
|
882
|
+
name?: string;
|
|
883
|
+
/** A JSON Schema used to validate the resolved token claims when signing tokens for this issuer. Pass null to remove it. */
|
|
884
|
+
claimsSchema?: UpdateKmsIssuerRequestClaimsSchemaMap | null;
|
|
885
|
+
}
|
|
886
|
+
export declare const UpdateKmsIssuerRequest: S.Schema<UpdateKmsIssuerRequest>;
|
|
887
|
+
export type UpdateKmsIssuerResponseAlgorithm = "ES256" | "ES384" | "ES512" | "EdDSA" | "PS256" | "PS384" | "PS512" | "RS256" | "RS384" | "RS512";
|
|
888
|
+
export declare const UpdateKmsIssuerResponseAlgorithm: any;
|
|
889
|
+
export type UpdateKmsIssuerResponseOrigin = "external" | "vercel";
|
|
890
|
+
export declare const UpdateKmsIssuerResponseOrigin: any;
|
|
891
|
+
export type UpdateKmsIssuerResponseClaimsSchemaMap = {
|
|
892
|
+
[key: string]: unknown | undefined;
|
|
893
|
+
};
|
|
894
|
+
export declare const UpdateKmsIssuerResponseClaimsSchemaMap: S.Schema<UpdateKmsIssuerResponseClaimsSchemaMap>;
|
|
895
|
+
export type UpdateKmsIssuerResponseSigningKeysItemStatus = "active" | "pending" | "revoking";
|
|
896
|
+
export declare const UpdateKmsIssuerResponseSigningKeysItemStatus: any;
|
|
897
|
+
export type UpdateKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList = Array<string>;
|
|
898
|
+
export declare const UpdateKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList: S.Schema<UpdateKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList>;
|
|
899
|
+
/** The X.509 certificate chain (RFC 7517 §4.7). Each entry is the base64 DER (not base64url) of a certificate. For keys minted with a stored certificate this holds the single self-signed cert as `[x5c]`. */
|
|
900
|
+
export type UpdateKmsIssuerResponseSigningKeysItemPublicKeyX5cList = Array<string>;
|
|
901
|
+
export declare const UpdateKmsIssuerResponseSigningKeysItemPublicKeyX5cList: S.Schema<UpdateKmsIssuerResponseSigningKeysItemPublicKeyX5cList>;
|
|
902
|
+
export interface UpdateKmsIssuerResponseSigningKeysItemPublicKey {
|
|
903
|
+
kty?: string;
|
|
904
|
+
kid?: string;
|
|
905
|
+
alg?: string;
|
|
906
|
+
use?: string;
|
|
907
|
+
key_ops?: UpdateKmsIssuerResponseSigningKeysItemPublicKeyKeyOpsList;
|
|
908
|
+
/** The X.509 certificate chain (RFC 7517 §4.7). Each entry is the base64 DER (not base64url) of a certificate. For keys minted with a stored certificate this holds the single self-signed cert as `[x5c]`. */
|
|
909
|
+
x5c?: UpdateKmsIssuerResponseSigningKeysItemPublicKeyX5cList;
|
|
910
|
+
/** The base64url SHA-256 thumbprint of the DER certificate in `x5c[0]` (RFC 7517 §4.9). */
|
|
911
|
+
x5t_S256?: string;
|
|
912
|
+
}
|
|
913
|
+
export declare const UpdateKmsIssuerResponseSigningKeysItemPublicKey: S.Schema<UpdateKmsIssuerResponseSigningKeysItemPublicKey>;
|
|
914
|
+
export interface UpdateKmsIssuerResponseSigningKeysItem {
|
|
915
|
+
/** The server-minted, unique record identifier. Use this to address the key on the activate / certificate endpoints. */
|
|
916
|
+
keyId: string;
|
|
917
|
+
/** The caller-supplied key id (imported keys only), used as the JWT/JWKS `kid`. Not unique across an issuer's keys; omitted for generated keys. */
|
|
918
|
+
importKeyId?: string;
|
|
919
|
+
issuerId: string;
|
|
920
|
+
algorithm: string;
|
|
921
|
+
status: UpdateKmsIssuerResponseSigningKeysItemStatus;
|
|
922
|
+
publicKey?: UpdateKmsIssuerResponseSigningKeysItemPublicKey;
|
|
923
|
+
publicKeyFingerprint?: string;
|
|
924
|
+
/** The public key in SPKI PEM form, ready to render. Present whenever the key has public key material. Derived from `publicKey`; the embedded certificate members (`x5c`/`x5t#S256`) do not affect it. */
|
|
925
|
+
publicKeyPem?: string;
|
|
926
|
+
/** The stored X.509 certificate (from `publicKey.x5c[0]`) in PEM form, ready to render. Present only for keys created with a stored certificate; omitted for keys created before certificates were stored. */
|
|
927
|
+
certificatePem?: string;
|
|
928
|
+
createdAt: string;
|
|
929
|
+
updatedAt: string;
|
|
930
|
+
revokeAt?: string;
|
|
931
|
+
activateAt?: string;
|
|
932
|
+
/** When the key became the active signer. Present for active and revoking keys (and absent for pending keys and rows predating this field). */
|
|
933
|
+
activatedAt?: string;
|
|
934
|
+
}
|
|
935
|
+
export declare const UpdateKmsIssuerResponseSigningKeysItem: S.Schema<UpdateKmsIssuerResponseSigningKeysItem>;
|
|
936
|
+
export type UpdateKmsIssuerResponseSigningKeysList = Array<UpdateKmsIssuerResponseSigningKeysItem>;
|
|
937
|
+
export declare const UpdateKmsIssuerResponseSigningKeysList: S.Schema<UpdateKmsIssuerResponseSigningKeysList>;
|
|
938
|
+
export type UpdateKmsIssuerResponsePoliciesItemCase0Kind = "project-grant";
|
|
939
|
+
export declare const UpdateKmsIssuerResponsePoliciesItemCase0Kind: any;
|
|
940
|
+
/** Environments whose OIDC tokens this grant authorizes. Each entry is either a system environment slug (`production`, `preview`, `development`) or a custom environment ID (prefixed `env_`). Custom environments are matched against the token's `custom_environment_id` claim (the stable ID); system environments against its `environment` claim. */
|
|
941
|
+
export type UpdateKmsIssuerResponsePoliciesItemCase0EnvironmentsList = Array<string>;
|
|
942
|
+
export declare const UpdateKmsIssuerResponsePoliciesItemCase0EnvironmentsList: S.Schema<UpdateKmsIssuerResponsePoliciesItemCase0EnvironmentsList>;
|
|
943
|
+
export type UpdateKmsIssuerResponsePoliciesItemCase0TokenClaimsMap = {
|
|
944
|
+
[key: string]: unknown | undefined;
|
|
945
|
+
};
|
|
946
|
+
export declare const UpdateKmsIssuerResponsePoliciesItemCase0TokenClaimsMap: S.Schema<UpdateKmsIssuerResponsePoliciesItemCase0TokenClaimsMap>;
|
|
947
|
+
export interface UpdateKmsIssuerResponsePoliciesItemCase0 {
|
|
948
|
+
kind: UpdateKmsIssuerResponsePoliciesItemCase0Kind;
|
|
949
|
+
teamId: string;
|
|
950
|
+
projectId: string;
|
|
951
|
+
/** Environments whose OIDC tokens this grant authorizes. Each entry is either a system environment slug (`production`, `preview`, `development`) or a custom environment ID (prefixed `env_`). Custom environments are matched against the token's `custom_environment_id` claim (the stable ID); system environments against its `environment` claim. */
|
|
952
|
+
environments: UpdateKmsIssuerResponsePoliciesItemCase0EnvironmentsList;
|
|
953
|
+
tokenClaims?: UpdateKmsIssuerResponsePoliciesItemCase0TokenClaimsMap;
|
|
954
|
+
createdAt: string;
|
|
955
|
+
updatedAt: string;
|
|
956
|
+
}
|
|
957
|
+
export declare const UpdateKmsIssuerResponsePoliciesItemCase0: S.Schema<UpdateKmsIssuerResponsePoliciesItemCase0>;
|
|
958
|
+
export type UpdateKmsIssuerResponsePoliciesItemCase1Kind = "connex-grant";
|
|
959
|
+
export declare const UpdateKmsIssuerResponsePoliciesItemCase1Kind: any;
|
|
960
|
+
export type UpdateKmsIssuerResponsePoliciesItemCase1TokenClaimsMap = {
|
|
961
|
+
[key: string]: unknown | undefined;
|
|
962
|
+
};
|
|
963
|
+
export declare const UpdateKmsIssuerResponsePoliciesItemCase1TokenClaimsMap: S.Schema<UpdateKmsIssuerResponsePoliciesItemCase1TokenClaimsMap>;
|
|
964
|
+
export interface UpdateKmsIssuerResponsePoliciesItemCase1 {
|
|
965
|
+
kind: UpdateKmsIssuerResponsePoliciesItemCase1Kind;
|
|
966
|
+
clientId: string;
|
|
967
|
+
tokenClaims?: UpdateKmsIssuerResponsePoliciesItemCase1TokenClaimsMap;
|
|
968
|
+
createdAt: string;
|
|
969
|
+
updatedAt: string;
|
|
970
|
+
}
|
|
971
|
+
export declare const UpdateKmsIssuerResponsePoliciesItemCase1: S.Schema<UpdateKmsIssuerResponsePoliciesItemCase1>;
|
|
972
|
+
export type UpdateKmsIssuerResponsePoliciesItem = UpdateKmsIssuerResponsePoliciesItemCase0 | UpdateKmsIssuerResponsePoliciesItemCase1;
|
|
973
|
+
export declare const UpdateKmsIssuerResponsePoliciesItem: S.Schema<UpdateKmsIssuerResponsePoliciesItem>;
|
|
974
|
+
export type UpdateKmsIssuerResponsePoliciesList = Array<UpdateKmsIssuerResponsePoliciesItem>;
|
|
975
|
+
export declare const UpdateKmsIssuerResponsePoliciesList: S.Schema<UpdateKmsIssuerResponsePoliciesList>;
|
|
976
|
+
export interface UpdateKmsIssuerResponse {
|
|
977
|
+
id: string;
|
|
978
|
+
ownerId: string;
|
|
979
|
+
name: string;
|
|
980
|
+
algorithm: UpdateKmsIssuerResponseAlgorithm;
|
|
981
|
+
origin: UpdateKmsIssuerResponseOrigin;
|
|
982
|
+
managedBy?: string;
|
|
983
|
+
claimsSchema?: UpdateKmsIssuerResponseClaimsSchemaMap;
|
|
984
|
+
createdAt: string;
|
|
985
|
+
updatedAt: string;
|
|
986
|
+
signingKeys: UpdateKmsIssuerResponseSigningKeysList;
|
|
987
|
+
policies: UpdateKmsIssuerResponsePoliciesList;
|
|
988
|
+
}
|
|
989
|
+
export declare const UpdateKmsIssuerResponse: S.Schema<UpdateKmsIssuerResponse>;
|
|
990
|
+
/** The issuer policy kind. */
|
|
991
|
+
export type UpdateKmsIssuerPolicyRequestKind = "project-grant";
|
|
992
|
+
export declare const UpdateKmsIssuerPolicyRequestKind: any;
|
|
993
|
+
/** The environments for the project grant policy. Each entry is a system environment (production, preview, development) or a custom environment ID (env_...). */
|
|
994
|
+
export type UpdateKmsIssuerPolicyRequestEnvironmentsList = Array<string>;
|
|
995
|
+
export declare const UpdateKmsIssuerPolicyRequestEnvironmentsList: S.Schema<UpdateKmsIssuerPolicyRequestEnvironmentsList>;
|
|
996
|
+
/** The claims that KMS should include in signed JWTs for this policy. Pass null to remove them. */
|
|
997
|
+
export type UpdateKmsIssuerPolicyRequestTokenClaimsMap = {
|
|
998
|
+
[key: string]: unknown | undefined;
|
|
999
|
+
};
|
|
1000
|
+
export declare const UpdateKmsIssuerPolicyRequestTokenClaimsMap: S.Schema<UpdateKmsIssuerPolicyRequestTokenClaimsMap>;
|
|
1001
|
+
export interface UpdateKmsIssuerPolicyRequest {
|
|
1002
|
+
/** The ID of the issuer. */
|
|
1003
|
+
issuerId: string;
|
|
1004
|
+
/** The issuer policy kind. */
|
|
1005
|
+
kind: UpdateKmsIssuerPolicyRequestKind | (string & {});
|
|
1006
|
+
/** The policy identifier. */
|
|
1007
|
+
policyKey: string;
|
|
1008
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
1009
|
+
teamId?: string;
|
|
1010
|
+
/** The Team slug to perform the request on behalf of. */
|
|
1011
|
+
slug?: string;
|
|
1012
|
+
/** The environments for the project grant policy. Each entry is a system environment (production, preview, development) or a custom environment ID (env_...). */
|
|
1013
|
+
environments?: UpdateKmsIssuerPolicyRequestEnvironmentsList;
|
|
1014
|
+
/** The claims that KMS should include in signed JWTs for this policy. Pass null to remove them. */
|
|
1015
|
+
tokenClaims?: UpdateKmsIssuerPolicyRequestTokenClaimsMap | null;
|
|
1016
|
+
}
|
|
1017
|
+
export declare const UpdateKmsIssuerPolicyRequest: S.Schema<UpdateKmsIssuerPolicyRequest>;
|
|
1018
|
+
export type UpdateKmsIssuerPolicyResponseBodyCase0Kind = "project-grant";
|
|
1019
|
+
export declare const UpdateKmsIssuerPolicyResponseBodyCase0Kind: any;
|
|
1020
|
+
/** Environments whose OIDC tokens this grant authorizes. Each entry is either a system environment slug (`production`, `preview`, `development`) or a custom environment ID (prefixed `env_`). Custom environments are matched against the token's `custom_environment_id` claim (the stable ID); system environments against its `environment` claim. */
|
|
1021
|
+
export type UpdateKmsIssuerPolicyResponseBodyCase0EnvironmentsList = Array<string>;
|
|
1022
|
+
export declare const UpdateKmsIssuerPolicyResponseBodyCase0EnvironmentsList: S.Schema<UpdateKmsIssuerPolicyResponseBodyCase0EnvironmentsList>;
|
|
1023
|
+
export type UpdateKmsIssuerPolicyResponseBodyCase0TokenClaimsMap = {
|
|
1024
|
+
[key: string]: unknown | undefined;
|
|
1025
|
+
};
|
|
1026
|
+
export declare const UpdateKmsIssuerPolicyResponseBodyCase0TokenClaimsMap: S.Schema<UpdateKmsIssuerPolicyResponseBodyCase0TokenClaimsMap>;
|
|
1027
|
+
export interface UpdateKmsIssuerPolicyResponseBodyCase0 {
|
|
1028
|
+
kind: UpdateKmsIssuerPolicyResponseBodyCase0Kind;
|
|
1029
|
+
teamId: string;
|
|
1030
|
+
projectId: string;
|
|
1031
|
+
/** Environments whose OIDC tokens this grant authorizes. Each entry is either a system environment slug (`production`, `preview`, `development`) or a custom environment ID (prefixed `env_`). Custom environments are matched against the token's `custom_environment_id` claim (the stable ID); system environments against its `environment` claim. */
|
|
1032
|
+
environments: UpdateKmsIssuerPolicyResponseBodyCase0EnvironmentsList;
|
|
1033
|
+
tokenClaims?: UpdateKmsIssuerPolicyResponseBodyCase0TokenClaimsMap;
|
|
1034
|
+
createdAt: string;
|
|
1035
|
+
updatedAt: string;
|
|
1036
|
+
}
|
|
1037
|
+
export declare const UpdateKmsIssuerPolicyResponseBodyCase0: S.Schema<UpdateKmsIssuerPolicyResponseBodyCase0>;
|
|
1038
|
+
export type UpdateKmsIssuerPolicyResponseBodyCase1Kind = "connex-grant";
|
|
1039
|
+
export declare const UpdateKmsIssuerPolicyResponseBodyCase1Kind: any;
|
|
1040
|
+
export type UpdateKmsIssuerPolicyResponseBodyCase1TokenClaimsMap = {
|
|
1041
|
+
[key: string]: unknown | undefined;
|
|
1042
|
+
};
|
|
1043
|
+
export declare const UpdateKmsIssuerPolicyResponseBodyCase1TokenClaimsMap: S.Schema<UpdateKmsIssuerPolicyResponseBodyCase1TokenClaimsMap>;
|
|
1044
|
+
export interface UpdateKmsIssuerPolicyResponseBodyCase1 {
|
|
1045
|
+
kind: UpdateKmsIssuerPolicyResponseBodyCase1Kind;
|
|
1046
|
+
clientId: string;
|
|
1047
|
+
tokenClaims?: UpdateKmsIssuerPolicyResponseBodyCase1TokenClaimsMap;
|
|
1048
|
+
createdAt: string;
|
|
1049
|
+
updatedAt: string;
|
|
1050
|
+
}
|
|
1051
|
+
export declare const UpdateKmsIssuerPolicyResponseBodyCase1: S.Schema<UpdateKmsIssuerPolicyResponseBodyCase1>;
|
|
1052
|
+
export type UpdateKmsIssuerPolicyResponseBody = UpdateKmsIssuerPolicyResponseBodyCase0 | UpdateKmsIssuerPolicyResponseBodyCase1;
|
|
1053
|
+
export declare const UpdateKmsIssuerPolicyResponseBody: S.Schema<UpdateKmsIssuerPolicyResponseBody>;
|
|
1054
|
+
export type UpdateKmsIssuerPolicyResponse = UpdateKmsIssuerPolicyResponseBody;
|
|
1055
|
+
export declare const UpdateKmsIssuerPolicyResponse: S.Schema<UpdateKmsIssuerPolicyResponse>;
|
|
1056
|
+
export type ActivateKmsSigningKeyError = BadRequest | Forbidden | NotFound | Conflict | VercelOpError;
|
|
1057
|
+
/** Activate a signing key Activate a pending signing key so the issuer starts signing with it. */
|
|
1058
|
+
export declare const activateKmsSigningKey: API.OperationMethod<ActivateKmsSigningKeyRequest, ActivateKmsSigningKeyResponse, ActivateKmsSigningKeyError, VercelOpContext>;
|
|
1059
|
+
export type CreateKmsIssuerError = BadRequest | Forbidden | NotFound | VercelOpError;
|
|
1060
|
+
/** 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. */
|
|
1061
|
+
export declare const createKmsIssuer: API.OperationMethod<CreateKmsIssuerRequest, CreateKmsIssuerResponse, CreateKmsIssuerError, VercelOpContext>;
|
|
1062
|
+
export type CreateKmsIssuerPolicyError = BadRequest | Forbidden | NotFound | VercelOpError;
|
|
1063
|
+
/** Create an issuer policy Attach a policy to a KMS issuer that grants a project's deployments permission to sign with it. */
|
|
1064
|
+
export declare const createKmsIssuerPolicy: API.OperationMethod<CreateKmsIssuerPolicyRequest, CreateKmsIssuerPolicyResponse, CreateKmsIssuerPolicyError, VercelOpContext>;
|
|
1065
|
+
export type CreateKmsSigningKeyError = BadRequest | Forbidden | NotFound | Conflict | VercelOpError;
|
|
1066
|
+
/** 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. */
|
|
1067
|
+
export declare const createKmsSigningKey: API.OperationMethod<CreateKmsSigningKeyRequest, CreateKmsSigningKeyResponse, CreateKmsSigningKeyError, VercelOpContext>;
|
|
1068
|
+
export type DeleteKmsIssuerError = BadRequest | Forbidden | NotFound | VercelOpError;
|
|
1069
|
+
/** Delete an issuer Delete a KMS issuer and its signing keys. */
|
|
1070
|
+
export declare const deleteKmsIssuer: API.OperationMethod<DeleteKmsIssuerRequest, DeleteKmsIssuerResponse, DeleteKmsIssuerError, VercelOpContext>;
|
|
1071
|
+
export type DeleteKmsIssuerPolicyError = BadRequest | Forbidden | NotFound | VercelOpError;
|
|
1072
|
+
/** Delete an issuer policy Remove a policy from a KMS issuer. */
|
|
1073
|
+
export declare const deleteKmsIssuerPolicy: API.OperationMethod<DeleteKmsIssuerPolicyRequest, DeleteKmsIssuerPolicyResponse, DeleteKmsIssuerPolicyError, VercelOpContext>;
|
|
1074
|
+
export type GetKmsIssuerError = BadRequest | Forbidden | NotFound | VercelOpError;
|
|
1075
|
+
/** 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. */
|
|
1076
|
+
export declare const getKmsIssuer: API.OperationMethod<GetKmsIssuerRequest, GetKmsIssuerResponse, GetKmsIssuerError, VercelOpContext>;
|
|
1077
|
+
export type ListKmsIssuersError = BadRequest | Forbidden | VercelOpError;
|
|
1078
|
+
/** List issuers Retrieve the list of KMS issuers that belong to the authenticated team. The results are paginated. */
|
|
1079
|
+
export declare const listKmsIssuers: API.OperationMethod<ListKmsIssuersRequest, ListKmsIssuersResponse, ListKmsIssuersError, VercelOpContext>;
|
|
1080
|
+
export type RevokeKmsSigningKeyError = BadRequest | Forbidden | NotFound | Conflict | VercelOpError;
|
|
1081
|
+
/** Revoke a signing key Immediately revoke a signing key that is already scheduled for revocation. */
|
|
1082
|
+
export declare const revokeKmsSigningKey: API.OperationMethod<RevokeKmsSigningKeyRequest, RevokeKmsSigningKeyResponse, RevokeKmsSigningKeyError, VercelOpContext>;
|
|
1083
|
+
export type SignKmsMessageError = BadRequest | Forbidden | NotFound | VercelOpError;
|
|
1084
|
+
/** 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. */
|
|
1085
|
+
export declare const signKmsMessage: API.OperationMethod<SignKmsMessageRequest, SignKmsMessageResponse, SignKmsMessageError, VercelOpContext>;
|
|
1086
|
+
export type SignKmsTokenError = BadRequest | Forbidden | NotFound | VercelOpError;
|
|
1087
|
+
/** 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. */
|
|
1088
|
+
export declare const signKmsToken: API.OperationMethod<SignKmsTokenRequest, SignKmsTokenResponse, SignKmsTokenError, VercelOpContext>;
|
|
1089
|
+
export type UpdateKmsIssuerError = BadRequest | Forbidden | NotFound | VercelOpError;
|
|
1090
|
+
/** Update an issuer Update a KMS issuer's name or claims schema. */
|
|
1091
|
+
export declare const updateKmsIssuer: API.OperationMethod<UpdateKmsIssuerRequest, UpdateKmsIssuerResponse, UpdateKmsIssuerError, VercelOpContext>;
|
|
1092
|
+
export type UpdateKmsIssuerPolicyError = BadRequest | Forbidden | NotFound | VercelOpError;
|
|
1093
|
+
/** Update an issuer policy Update an existing KMS issuer policy's environments or token claims. */
|
|
1094
|
+
export declare const updateKmsIssuerPolicy: API.OperationMethod<UpdateKmsIssuerPolicyRequest, UpdateKmsIssuerPolicyResponse, UpdateKmsIssuerPolicyError, VercelOpContext>;
|
|
1095
|
+
//# sourceMappingURL=kms.d.ts.map
|