@sphereon/ssi-sdk.kms-rest-client 0.34.1-feature.IDK.11.294
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/README.md +369 -0
- package/dist/index.cjs +3924 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3927 -0
- package/dist/index.d.ts +3927 -0
- package/dist/index.js +3903 -0
- package/dist/index.js.map +1 -0
- package/package.json +60 -0
- package/plugin.schema.json +1004 -0
- package/src/agent/KmsRestClient.ts +468 -0
- package/src/index.ts +8 -0
- package/src/models/AwsAssumeRoleCredentials.ts +90 -0
- package/src/models/AwsClientConfiguration.ts +69 -0
- package/src/models/AwsKmsSetting.ts +112 -0
- package/src/models/AwsStaticCredentials.ts +90 -0
- package/src/models/AwsWebIdentityTokenCredentials.ts +91 -0
- package/src/models/AzureClientSecretCredentialOpts.ts +85 -0
- package/src/models/AzureCredentialOpts.ts +65 -0
- package/src/models/AzureKeyVaultSetting.ts +101 -0
- package/src/models/CoseKey.ts +137 -0
- package/src/models/CoseKeyPair.ts +73 -0
- package/src/models/CoseKeyType.ts +52 -0
- package/src/models/CreateKeyProvider.ts +101 -0
- package/src/models/CreateRawSignature.ts +74 -0
- package/src/models/CreateRawSignatureResponse.ts +62 -0
- package/src/models/CreateSimpleSignature.ts +86 -0
- package/src/models/CryptoAlg.ts +52 -0
- package/src/models/Curve.ts +56 -0
- package/src/models/DigestAlg.ts +55 -0
- package/src/models/ErrorResponse.ts +79 -0
- package/src/models/GenerateKey.ts +92 -0
- package/src/models/GenerateKeyGlobal.ts +100 -0
- package/src/models/GenerateKeyResponse.ts +65 -0
- package/src/models/GetKeyResponse.ts +65 -0
- package/src/models/IdentifierMethod.ts +53 -0
- package/src/models/JoseKeyPair.ts +73 -0
- package/src/models/Jwk.ts +231 -0
- package/src/models/JwkKeyType.ts +52 -0
- package/src/models/JwkUse.ts +50 -0
- package/src/models/KeyEncoding.ts +50 -0
- package/src/models/KeyInfo.ts +144 -0
- package/src/models/KeyOperations.ts +56 -0
- package/src/models/KeyProvider.ts +74 -0
- package/src/models/KeyProviderResponse.ts +74 -0
- package/src/models/KeyProviderType.ts +51 -0
- package/src/models/KeyResolver.ts +85 -0
- package/src/models/KeyType.ts +51 -0
- package/src/models/KeyVisibility.ts +50 -0
- package/src/models/ListKeyProvidersResponse.ts +65 -0
- package/src/models/ListKeysResponse.ts +65 -0
- package/src/models/ListResolversResponse.ts +65 -0
- package/src/models/LookupMode.ts +51 -0
- package/src/models/ManagedKeyInfo.ts +147 -0
- package/src/models/ManagedKeyPair.ts +102 -0
- package/src/models/MaskGenFunction.ts +49 -0
- package/src/models/ProviderCapabilities.ts +106 -0
- package/src/models/ResolvePublicKey.ts +91 -0
- package/src/models/ResolvedKeyInfo.ts +145 -0
- package/src/models/Resolver.ts +85 -0
- package/src/models/SignInput.ts +87 -0
- package/src/models/SignOutput.ts +73 -0
- package/src/models/Signature.ts +92 -0
- package/src/models/SignatureAlgorithm.ts +60 -0
- package/src/models/StoreKey.ts +73 -0
- package/src/models/StoreKeyResponse.ts +65 -0
- package/src/models/UpdateKeyProvider.ts +90 -0
- package/src/models/VerifyRawSignature.ts +83 -0
- package/src/models/VerifyRawSignatureResponse.ts +62 -0
- package/src/models/VerifySimpleSignature.ts +76 -0
- package/src/models/index.ts +60 -0
- package/src/types/IKmsRestClient.ts +134 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KMS REST Server API
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: support@sphereon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Cryptographic signature algorithm identifier.
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const SignatureAlgorithm = {
|
|
20
|
+
Ed25519: 'ED25519',
|
|
21
|
+
EcdsaSha256: 'ECDSA_SHA256',
|
|
22
|
+
EcdsaSha384: 'ECDSA_SHA384',
|
|
23
|
+
EcdsaSha512: 'ECDSA_SHA512',
|
|
24
|
+
Es256K: 'ES256K',
|
|
25
|
+
EckaDhSha256: 'ECKA_DH_SHA256',
|
|
26
|
+
HmacSha256: 'HMAC_SHA256',
|
|
27
|
+
HmacSha384: 'HMAC_SHA384',
|
|
28
|
+
HmacSha512: 'HMAC_SHA512',
|
|
29
|
+
RsaSsaPssSha256Mgf1: 'RSA_SSA_PSS_SHA256_MGF1',
|
|
30
|
+
RsaSsaPssSha384Mgf1: 'RSA_SSA_PSS_SHA384_MGF1',
|
|
31
|
+
RsaSsaPssSha512Mgf1: 'RSA_SSA_PSS_SHA512_MGF1',
|
|
32
|
+
} as const
|
|
33
|
+
export type SignatureAlgorithm = (typeof SignatureAlgorithm)[keyof typeof SignatureAlgorithm]
|
|
34
|
+
|
|
35
|
+
export function instanceOfSignatureAlgorithm(value: any): boolean {
|
|
36
|
+
for (const key in SignatureAlgorithm) {
|
|
37
|
+
if (Object.prototype.hasOwnProperty.call(SignatureAlgorithm, key)) {
|
|
38
|
+
if (SignatureAlgorithm[key as keyof typeof SignatureAlgorithm] === value) {
|
|
39
|
+
return true
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return false
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function SignatureAlgorithmFromJSON(json: any): SignatureAlgorithm {
|
|
47
|
+
return SignatureAlgorithmFromJSONTyped(json, false)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function SignatureAlgorithmFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignatureAlgorithm {
|
|
51
|
+
return json as SignatureAlgorithm
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function SignatureAlgorithmToJSON(value?: SignatureAlgorithm | null): any {
|
|
55
|
+
return value as any
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function SignatureAlgorithmToJSONTyped(value: any, ignoreDiscriminator: boolean): SignatureAlgorithm {
|
|
59
|
+
return value as SignatureAlgorithm
|
|
60
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KMS REST Server API
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: support@sphereon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type { ResolvedKeyInfo } from './ResolvedKeyInfo'
|
|
16
|
+
import { ResolvedKeyInfoFromJSON, ResolvedKeyInfoToJSON } from './ResolvedKeyInfo'
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Request body for storing a key.
|
|
20
|
+
* @export
|
|
21
|
+
* @interface StoreKey
|
|
22
|
+
*/
|
|
23
|
+
export interface StoreKey {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {ResolvedKeyInfo}
|
|
27
|
+
* @memberof StoreKey
|
|
28
|
+
*/
|
|
29
|
+
keyInfo: ResolvedKeyInfo
|
|
30
|
+
/**
|
|
31
|
+
* X.509 certificate chain as base64-encoded DER certificates.
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof StoreKey
|
|
34
|
+
*/
|
|
35
|
+
certChain?: Array<string>
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the StoreKey interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfStoreKey(value: object): value is StoreKey {
|
|
42
|
+
if (!('keyInfo' in value) || value['keyInfo'] === undefined) return false
|
|
43
|
+
return true
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function StoreKeyFromJSON(json: any): StoreKey {
|
|
47
|
+
return StoreKeyFromJSONTyped(json, false)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function StoreKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreKey {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
keyInfo: ResolvedKeyInfoFromJSON(json['keyInfo']),
|
|
56
|
+
certChain: json['certChain'] == null ? undefined : json['certChain'],
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function StoreKeyToJSON(json: any): StoreKey {
|
|
61
|
+
return StoreKeyToJSONTyped(json, false)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function StoreKeyToJSONTyped(value?: StoreKey | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
keyInfo: ResolvedKeyInfoToJSON(value['keyInfo']),
|
|
71
|
+
certChain: value['certChain'],
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KMS REST Server API
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: support@sphereon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type { ManagedKeyInfo } from './ManagedKeyInfo'
|
|
16
|
+
import { ManagedKeyInfoFromJSON, ManagedKeyInfoToJSON } from './ManagedKeyInfo'
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Response body containing a stored key.
|
|
20
|
+
* @export
|
|
21
|
+
* @interface StoreKeyResponse
|
|
22
|
+
*/
|
|
23
|
+
export interface StoreKeyResponse {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {ManagedKeyInfo}
|
|
27
|
+
* @memberof StoreKeyResponse
|
|
28
|
+
*/
|
|
29
|
+
keyInfo: ManagedKeyInfo
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the StoreKeyResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export function instanceOfStoreKeyResponse(value: object): value is StoreKeyResponse {
|
|
36
|
+
if (!('keyInfo' in value) || value['keyInfo'] === undefined) return false
|
|
37
|
+
return true
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function StoreKeyResponseFromJSON(json: any): StoreKeyResponse {
|
|
41
|
+
return StoreKeyResponseFromJSONTyped(json, false)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function StoreKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreKeyResponse {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
keyInfo: ManagedKeyInfoFromJSON(json['keyInfo']),
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function StoreKeyResponseToJSON(json: any): StoreKeyResponse {
|
|
54
|
+
return StoreKeyResponseToJSONTyped(json, false)
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function StoreKeyResponseToJSONTyped(value?: StoreKeyResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return {
|
|
63
|
+
keyInfo: ManagedKeyInfoToJSON(value['keyInfo']),
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KMS REST Server API
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: support@sphereon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type { AwsKmsSetting } from './AwsKmsSetting'
|
|
16
|
+
import { AwsKmsSettingFromJSON, AwsKmsSettingToJSON } from './AwsKmsSetting'
|
|
17
|
+
import type { AzureKeyVaultSetting } from './AzureKeyVaultSetting'
|
|
18
|
+
import { AzureKeyVaultSettingFromJSON, AzureKeyVaultSettingToJSON } from './AzureKeyVaultSetting'
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Request body for updating an existing Key Provider instance.
|
|
22
|
+
* @export
|
|
23
|
+
* @interface UpdateKeyProvider
|
|
24
|
+
*/
|
|
25
|
+
export interface UpdateKeyProvider {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {AzureKeyVaultSetting}
|
|
29
|
+
* @memberof UpdateKeyProvider
|
|
30
|
+
*/
|
|
31
|
+
azureKeyvaultSettings?: AzureKeyVaultSetting
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {AwsKmsSetting}
|
|
35
|
+
* @memberof UpdateKeyProvider
|
|
36
|
+
*/
|
|
37
|
+
awsKmsSettings?: AwsKmsSetting
|
|
38
|
+
/**
|
|
39
|
+
* Whether to enable caching for keys retrieved from this provider.
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof UpdateKeyProvider
|
|
42
|
+
*/
|
|
43
|
+
cacheEnabled?: boolean
|
|
44
|
+
/**
|
|
45
|
+
* Time-to-live for cached keys in seconds (if cacheEnabled is true).
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof UpdateKeyProvider
|
|
48
|
+
*/
|
|
49
|
+
cacheTTLInSeconds?: number
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the UpdateKeyProvider interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfUpdateKeyProvider(value: object): value is UpdateKeyProvider {
|
|
56
|
+
return true
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function UpdateKeyProviderFromJSON(json: any): UpdateKeyProvider {
|
|
60
|
+
return UpdateKeyProviderFromJSONTyped(json, false)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function UpdateKeyProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateKeyProvider {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
azureKeyvaultSettings: json['azureKeyvaultSettings'] == null ? undefined : AzureKeyVaultSettingFromJSON(json['azureKeyvaultSettings']),
|
|
69
|
+
awsKmsSettings: json['awsKmsSettings'] == null ? undefined : AwsKmsSettingFromJSON(json['awsKmsSettings']),
|
|
70
|
+
cacheEnabled: json['cacheEnabled'] == null ? undefined : json['cacheEnabled'],
|
|
71
|
+
cacheTTLInSeconds: json['cacheTTLInSeconds'] == null ? undefined : json['cacheTTLInSeconds'],
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function UpdateKeyProviderToJSON(json: any): UpdateKeyProvider {
|
|
76
|
+
return UpdateKeyProviderToJSONTyped(json, false)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function UpdateKeyProviderToJSONTyped(value?: UpdateKeyProvider | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
azureKeyvaultSettings: AzureKeyVaultSettingToJSON(value['azureKeyvaultSettings']),
|
|
86
|
+
awsKmsSettings: AwsKmsSettingToJSON(value['awsKmsSettings']),
|
|
87
|
+
cacheEnabled: value['cacheEnabled'],
|
|
88
|
+
cacheTTLInSeconds: value['cacheTTLInSeconds'],
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KMS REST Server API
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: support@sphereon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type { KeyInfo } from './KeyInfo'
|
|
16
|
+
import { KeyInfoFromJSON, KeyInfoToJSON } from './KeyInfo'
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Request body for verifying a raw signature.
|
|
20
|
+
* @export
|
|
21
|
+
* @interface VerifyRawSignature
|
|
22
|
+
*/
|
|
23
|
+
export interface VerifyRawSignature {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {KeyInfo}
|
|
27
|
+
* @memberof VerifyRawSignature
|
|
28
|
+
*/
|
|
29
|
+
keyInfo: KeyInfo
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof VerifyRawSignature
|
|
34
|
+
*/
|
|
35
|
+
input: string
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VerifyRawSignature
|
|
40
|
+
*/
|
|
41
|
+
signature: string
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the VerifyRawSignature interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfVerifyRawSignature(value: object): value is VerifyRawSignature {
|
|
48
|
+
if (!('keyInfo' in value) || value['keyInfo'] === undefined) return false
|
|
49
|
+
if (!('input' in value) || value['input'] === undefined) return false
|
|
50
|
+
if (!('signature' in value) || value['signature'] === undefined) return false
|
|
51
|
+
return true
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function VerifyRawSignatureFromJSON(json: any): VerifyRawSignature {
|
|
55
|
+
return VerifyRawSignatureFromJSONTyped(json, false)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function VerifyRawSignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyRawSignature {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
keyInfo: KeyInfoFromJSON(json['keyInfo']),
|
|
64
|
+
input: json['input'],
|
|
65
|
+
signature: json['signature'],
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function VerifyRawSignatureToJSON(json: any): VerifyRawSignature {
|
|
70
|
+
return VerifyRawSignatureToJSONTyped(json, false)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function VerifyRawSignatureToJSONTyped(value?: VerifyRawSignature | null, ignoreDiscriminator: boolean = false): any {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
keyInfo: KeyInfoToJSON(value['keyInfo']),
|
|
80
|
+
input: value['input'],
|
|
81
|
+
signature: value['signature'],
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KMS REST Server API
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: support@sphereon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Response body containing the details of the signature verification.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface VerifyRawSignatureResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface VerifyRawSignatureResponse {
|
|
21
|
+
/**
|
|
22
|
+
* Indicates whether the signature is valid or not.
|
|
23
|
+
* @type {boolean}
|
|
24
|
+
* @memberof VerifyRawSignatureResponse
|
|
25
|
+
*/
|
|
26
|
+
isValid: boolean
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the VerifyRawSignatureResponse interface.
|
|
31
|
+
*/
|
|
32
|
+
export function instanceOfVerifyRawSignatureResponse(value: object): value is VerifyRawSignatureResponse {
|
|
33
|
+
if (!('isValid' in value) || value['isValid'] === undefined) return false
|
|
34
|
+
return true
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function VerifyRawSignatureResponseFromJSON(json: any): VerifyRawSignatureResponse {
|
|
38
|
+
return VerifyRawSignatureResponseFromJSONTyped(json, false)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function VerifyRawSignatureResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyRawSignatureResponse {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
isValid: json['isValid'],
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function VerifyRawSignatureResponseToJSON(json: any): VerifyRawSignatureResponse {
|
|
51
|
+
return VerifyRawSignatureResponseToJSONTyped(json, false)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function VerifyRawSignatureResponseToJSONTyped(value?: VerifyRawSignatureResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return {
|
|
60
|
+
isValid: value['isValid'],
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KMS REST Server API
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: support@sphereon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type { SignInput } from './SignInput'
|
|
16
|
+
import { SignInputFromJSON, SignInputToJSON } from './SignInput'
|
|
17
|
+
import type { Signature } from './Signature'
|
|
18
|
+
import { SignatureFromJSON, SignatureToJSON } from './Signature'
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Request body for verifying a digital signature.
|
|
22
|
+
* @export
|
|
23
|
+
* @interface VerifySimpleSignature
|
|
24
|
+
*/
|
|
25
|
+
export interface VerifySimpleSignature {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {SignInput}
|
|
29
|
+
* @memberof VerifySimpleSignature
|
|
30
|
+
*/
|
|
31
|
+
signInput: SignInput
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Signature}
|
|
35
|
+
* @memberof VerifySimpleSignature
|
|
36
|
+
*/
|
|
37
|
+
signature: Signature
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the VerifySimpleSignature interface.
|
|
42
|
+
*/
|
|
43
|
+
export function instanceOfVerifySimpleSignature(value: object): value is VerifySimpleSignature {
|
|
44
|
+
if (!('signInput' in value) || value['signInput'] === undefined) return false
|
|
45
|
+
if (!('signature' in value) || value['signature'] === undefined) return false
|
|
46
|
+
return true
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function VerifySimpleSignatureFromJSON(json: any): VerifySimpleSignature {
|
|
50
|
+
return VerifySimpleSignatureFromJSONTyped(json, false)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function VerifySimpleSignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifySimpleSignature {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
signInput: SignInputFromJSON(json['signInput']),
|
|
59
|
+
signature: SignatureFromJSON(json['signature']),
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function VerifySimpleSignatureToJSON(json: any): VerifySimpleSignature {
|
|
64
|
+
return VerifySimpleSignatureToJSONTyped(json, false)
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function VerifySimpleSignatureToJSONTyped(value?: VerifySimpleSignature | null, ignoreDiscriminator: boolean = false): any {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return {
|
|
73
|
+
signInput: SignInputToJSON(value['signInput']),
|
|
74
|
+
signature: SignatureToJSON(value['signature']),
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export * from './AwsAssumeRoleCredentials'
|
|
4
|
+
export * from './AwsClientConfiguration'
|
|
5
|
+
export * from './AwsKmsSetting'
|
|
6
|
+
export * from './AwsStaticCredentials'
|
|
7
|
+
export * from './AwsWebIdentityTokenCredentials'
|
|
8
|
+
export * from './AzureClientSecretCredentialOpts'
|
|
9
|
+
export * from './AzureCredentialOpts'
|
|
10
|
+
export * from './AzureKeyVaultSetting'
|
|
11
|
+
export * from './CoseKey'
|
|
12
|
+
export * from './CoseKeyPair'
|
|
13
|
+
export * from './CoseKeyType'
|
|
14
|
+
export * from './CreateKeyProvider'
|
|
15
|
+
export * from './CreateRawSignature'
|
|
16
|
+
export * from './CreateRawSignatureResponse'
|
|
17
|
+
export * from './CreateSimpleSignature'
|
|
18
|
+
export * from './CryptoAlg'
|
|
19
|
+
export * from './Curve'
|
|
20
|
+
export * from './DigestAlg'
|
|
21
|
+
export * from './ErrorResponse'
|
|
22
|
+
export * from './GenerateKey'
|
|
23
|
+
export * from './GenerateKeyGlobal'
|
|
24
|
+
export * from './GenerateKeyResponse'
|
|
25
|
+
export * from './GetKeyResponse'
|
|
26
|
+
export * from './IdentifierMethod'
|
|
27
|
+
export * from './JoseKeyPair'
|
|
28
|
+
export * from './Jwk'
|
|
29
|
+
export * from './JwkKeyType'
|
|
30
|
+
export * from './JwkUse'
|
|
31
|
+
export * from './KeyEncoding'
|
|
32
|
+
export * from './KeyInfo'
|
|
33
|
+
export * from './KeyOperations'
|
|
34
|
+
export * from './KeyProvider'
|
|
35
|
+
export * from './KeyProviderResponse'
|
|
36
|
+
export * from './KeyProviderType'
|
|
37
|
+
export * from './KeyResolver'
|
|
38
|
+
export * from './KeyType'
|
|
39
|
+
export * from './KeyVisibility'
|
|
40
|
+
export * from './ListKeyProvidersResponse'
|
|
41
|
+
export * from './ListKeysResponse'
|
|
42
|
+
export * from './ListResolversResponse'
|
|
43
|
+
export * from './LookupMode'
|
|
44
|
+
export * from './ManagedKeyInfo'
|
|
45
|
+
export * from './ManagedKeyPair'
|
|
46
|
+
export * from './MaskGenFunction'
|
|
47
|
+
export * from './ProviderCapabilities'
|
|
48
|
+
export * from './ResolvePublicKey'
|
|
49
|
+
export * from './ResolvedKeyInfo'
|
|
50
|
+
export * from './Resolver'
|
|
51
|
+
export * from './SignInput'
|
|
52
|
+
export * from './SignOutput'
|
|
53
|
+
export * from './Signature'
|
|
54
|
+
export * from './SignatureAlgorithm'
|
|
55
|
+
export * from './StoreKey'
|
|
56
|
+
export * from './StoreKeyResponse'
|
|
57
|
+
export * from './UpdateKeyProvider'
|
|
58
|
+
export * from './VerifyRawSignature'
|
|
59
|
+
export * from './VerifyRawSignatureResponse'
|
|
60
|
+
export * from './VerifySimpleSignature'
|