@sphereon/ssi-sdk.kms-rest-client 0.34.1-feature.IDK.11.48 → 0.34.1-feature.IDK.11.50
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/dist/index.cjs +1056 -1185
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1137 -17
- package/dist/index.d.ts +1137 -17
- package/dist/index.js +1049 -1179
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/plugin.schema.json +38 -157
- package/src/agent/KmsRestClient.ts +19 -20
- package/src/index.ts +1 -1
- package/src/models/AwsAssumeRoleCredentials.ts +49 -57
- package/src/models/AwsClientConfiguration.ts +29 -32
- package/src/models/AwsKmsSetting.ts +71 -85
- package/src/models/AwsStaticCredentials.ts +49 -57
- package/src/models/AwsWebIdentityTokenCredentials.ts +50 -58
- package/src/models/AzureClientSecretCredentialOpts.ts +45 -50
- package/src/models/AzureCredentialOpts.ts +24 -29
- package/src/models/AzureKeyVaultSetting.ts +60 -71
- package/src/models/CoseKey.ts +96 -104
- package/src/models/CoseKeyPair.ts +32 -38
- package/src/models/CoseKeyType.ts +18 -21
- package/src/models/CreateKeyProvider.ts +60 -74
- package/src/models/CreateRawSignature.ts +33 -39
- package/src/models/CreateRawSignatureResponse.ts +22 -25
- package/src/models/CreateSimpleSignature.ts +45 -59
- package/src/models/CryptoAlg.ts +18 -21
- package/src/models/Curve.ts +22 -25
- package/src/models/DigestAlg.ts +21 -24
- package/src/models/ErrorResponse.ts +39 -42
- package/src/models/GenerateKey.ts +51 -65
- package/src/models/GenerateKeyGlobal.ts +59 -73
- package/src/models/GenerateKeyResponse.ts +24 -30
- package/src/models/GetKeyResponse.ts +24 -30
- package/src/models/IdentifierMethod.ts +19 -22
- package/src/models/JoseKeyPair.ts +32 -38
- package/src/models/Jwk.ts +190 -207
- package/src/models/JwkKeyType.ts +18 -21
- package/src/models/JwkUse.ts +16 -19
- package/src/models/KeyEncoding.ts +16 -19
- package/src/models/KeyInfo.ts +103 -123
- package/src/models/KeyOperations.ts +22 -25
- package/src/models/KeyProvider.ts +33 -41
- package/src/models/KeyProviderResponse.ts +33 -41
- package/src/models/KeyProviderType.ts +17 -20
- package/src/models/KeyResolver.ts +44 -51
- package/src/models/KeyType.ts +17 -20
- package/src/models/KeyVisibility.ts +16 -19
- package/src/models/ListKeyProvidersResponse.ts +24 -30
- package/src/models/ListKeysResponse.ts +24 -30
- package/src/models/ListResolversResponse.ts +24 -30
- package/src/models/LookupMode.ts +17 -20
- package/src/models/ManagedKeyInfo.ts +106 -126
- package/src/models/ManagedKeyPair.ts +61 -70
- package/src/models/MaskGenFunction.ts +15 -18
- package/src/models/ProviderCapabilities.ts +65 -81
- package/src/models/ResolvePublicKey.ts +50 -61
- package/src/models/ResolvedKeyInfo.ts +104 -124
- package/src/models/Resolver.ts +44 -51
- package/src/models/SignInput.ts +42 -47
- package/src/models/SignOutput.ts +32 -38
- package/src/models/Signature.ts +51 -62
- package/src/models/SignatureAlgorithm.ts +26 -29
- package/src/models/StoreKey.ts +32 -38
- package/src/models/StoreKeyResponse.ts +24 -30
- package/src/models/UpdateKeyProvider.ts +49 -58
- package/src/models/VerifyRawSignature.ts +42 -48
- package/src/models/VerifyRawSignatureResponse.ts +22 -25
- package/src/models/VerifySimpleSignature.ts +35 -44
- package/src/models/index.ts +58 -58
- package/src/types/IKmsRestClient.ts +2 -2
package/src/models/Resolver.ts
CHANGED
|
@@ -12,16 +12,10 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type { KeyType } from './KeyType'
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from './KeyType';
|
|
20
|
-
import type { IdentifierMethod } from './IdentifierMethod';
|
|
21
|
-
import {
|
|
22
|
-
IdentifierMethodFromJSON,
|
|
23
|
-
IdentifierMethodToJSON,
|
|
24
|
-
} from './IdentifierMethod';
|
|
15
|
+
import type { KeyType } from './KeyType'
|
|
16
|
+
import { KeyTypeFromJSON, KeyTypeToJSON } from './KeyType'
|
|
17
|
+
import type { IdentifierMethod } from './IdentifierMethod'
|
|
18
|
+
import { IdentifierMethodFromJSON, IdentifierMethodToJSON } from './IdentifierMethod'
|
|
25
19
|
|
|
26
20
|
/**
|
|
27
21
|
* Represents a key resolver configuration.
|
|
@@ -29,64 +23,63 @@ import {
|
|
|
29
23
|
* @interface Resolver
|
|
30
24
|
*/
|
|
31
25
|
export interface Resolver {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Unique identifier for the resolver.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof Resolver
|
|
30
|
+
*/
|
|
31
|
+
resolverId: string
|
|
32
|
+
/**
|
|
33
|
+
* List of identifier methods supported by this resolver.
|
|
34
|
+
* @type {Array<IdentifierMethod>}
|
|
35
|
+
* @memberof Resolver
|
|
36
|
+
*/
|
|
37
|
+
supportedIdentifierMethods?: Array<IdentifierMethod>
|
|
38
|
+
/**
|
|
39
|
+
* List of key types supported by this resolver.
|
|
40
|
+
* @type {Array<KeyType>}
|
|
41
|
+
* @memberof Resolver
|
|
42
|
+
*/
|
|
43
|
+
supportedKeyTypes?: Array<KeyType>
|
|
50
44
|
}
|
|
51
45
|
|
|
52
46
|
/**
|
|
53
47
|
* Check if a given object implements the Resolver interface.
|
|
54
48
|
*/
|
|
55
49
|
export function instanceOfResolver(value: object): value is Resolver {
|
|
56
|
-
|
|
57
|
-
|
|
50
|
+
if (!('resolverId' in value) || value['resolverId'] === undefined) return false
|
|
51
|
+
return true
|
|
58
52
|
}
|
|
59
53
|
|
|
60
54
|
export function ResolverFromJSON(json: any): Resolver {
|
|
61
|
-
|
|
55
|
+
return ResolverFromJSONTyped(json, false)
|
|
62
56
|
}
|
|
63
57
|
|
|
64
58
|
export function ResolverFromJSONTyped(json: any, ignoreDiscriminator: boolean): Resolver {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
resolverId: json['resolverId'],
|
|
64
|
+
supportedIdentifierMethods:
|
|
65
|
+
json['supportedIdentifierMethods'] == null ? undefined : (json['supportedIdentifierMethods'] as Array<any>).map(IdentifierMethodFromJSON),
|
|
66
|
+
supportedKeyTypes: json['supportedKeyTypes'] == null ? undefined : (json['supportedKeyTypes'] as Array<any>).map(KeyTypeFromJSON),
|
|
67
|
+
}
|
|
74
68
|
}
|
|
75
69
|
|
|
76
70
|
export function ResolverToJSON(json: any): Resolver {
|
|
77
|
-
|
|
71
|
+
return ResolverToJSONTyped(json, false)
|
|
78
72
|
}
|
|
79
73
|
|
|
80
74
|
export function ResolverToJSONTyped(value?: Resolver | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value
|
|
77
|
+
}
|
|
86
78
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
79
|
+
return {
|
|
80
|
+
resolverId: value['resolverId'],
|
|
81
|
+
supportedIdentifierMethods:
|
|
82
|
+
value['supportedIdentifierMethods'] == null ? undefined : (value['supportedIdentifierMethods'] as Array<any>).map(IdentifierMethodToJSON),
|
|
83
|
+
supportedKeyTypes: value['supportedKeyTypes'] == null ? undefined : (value['supportedKeyTypes'] as Array<any>).map(KeyTypeToJSON),
|
|
84
|
+
}
|
|
91
85
|
}
|
|
92
|
-
|
package/src/models/SignInput.ts
CHANGED
|
@@ -18,75 +18,70 @@
|
|
|
18
18
|
* @interface SignInput
|
|
19
19
|
*/
|
|
20
20
|
export interface SignInput {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
21
|
+
/**
|
|
22
|
+
* The data to be signed, encoded as a base64 string.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof SignInput
|
|
25
|
+
*/
|
|
26
|
+
data: string
|
|
27
|
+
/**
|
|
28
|
+
* The signing mode to be used.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof SignInput
|
|
31
|
+
*/
|
|
32
|
+
mode?: SignInputModeEnum
|
|
33
|
+
/**
|
|
34
|
+
* Additional metadata to be included in the signature.
|
|
35
|
+
* @type {{ [key: string]: any; }}
|
|
36
|
+
* @memberof SignInput
|
|
37
|
+
*/
|
|
38
|
+
metadata?: { [key: string]: any }
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
|
|
42
41
|
/**
|
|
43
42
|
* @export
|
|
44
43
|
*/
|
|
45
44
|
export const SignInputModeEnum = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} as const
|
|
49
|
-
export type SignInputModeEnum = typeof SignInputModeEnum[keyof typeof SignInputModeEnum]
|
|
50
|
-
|
|
45
|
+
Detached: 'DETACHED',
|
|
46
|
+
Attached: 'ATTACHED',
|
|
47
|
+
} as const
|
|
48
|
+
export type SignInputModeEnum = (typeof SignInputModeEnum)[keyof typeof SignInputModeEnum]
|
|
51
49
|
|
|
52
50
|
/**
|
|
53
51
|
* Check if a given object implements the SignInput interface.
|
|
54
52
|
*/
|
|
55
53
|
export function instanceOfSignInput(value: object): value is SignInput {
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
if (!('data' in value) || value['data'] === undefined) return false
|
|
55
|
+
return true
|
|
58
56
|
}
|
|
59
57
|
|
|
60
58
|
export function SignInputFromJSON(json: any): SignInput {
|
|
61
|
-
|
|
59
|
+
return SignInputFromJSONTyped(json, false)
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
export function SignInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignInput {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
};
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
data: json['data'],
|
|
68
|
+
mode: json['mode'] == null ? undefined : json['mode'],
|
|
69
|
+
metadata: json['metadata'] == null ? undefined : json['metadata'],
|
|
70
|
+
}
|
|
74
71
|
}
|
|
75
72
|
|
|
76
73
|
export function SignInputToJSON(json: any): SignInput {
|
|
77
|
-
|
|
74
|
+
return SignInputToJSONTyped(json, false)
|
|
78
75
|
}
|
|
79
76
|
|
|
80
77
|
export function SignInputToJSONTyped(value?: SignInput | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value
|
|
80
|
+
}
|
|
84
81
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
};
|
|
82
|
+
return {
|
|
83
|
+
data: value['data'],
|
|
84
|
+
mode: value['mode'],
|
|
85
|
+
metadata: value['metadata'],
|
|
86
|
+
}
|
|
91
87
|
}
|
|
92
|
-
|
package/src/models/SignOutput.ts
CHANGED
|
@@ -12,11 +12,8 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type { Signature } from './Signature'
|
|
16
|
-
import {
|
|
17
|
-
SignatureFromJSON,
|
|
18
|
-
SignatureToJSON,
|
|
19
|
-
} from './Signature';
|
|
15
|
+
import type { Signature } from './Signature'
|
|
16
|
+
import { SignatureFromJSON, SignatureToJSON } from './Signature'
|
|
20
17
|
|
|
21
18
|
/**
|
|
22
19
|
* The output of a signature creation operation.
|
|
@@ -24,56 +21,53 @@ import {
|
|
|
24
21
|
* @interface SignOutput
|
|
25
22
|
*/
|
|
26
23
|
export interface SignOutput {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Signature}
|
|
27
|
+
* @memberof SignOutput
|
|
28
|
+
*/
|
|
29
|
+
signature: Signature
|
|
30
|
+
/**
|
|
31
|
+
* Additional metadata included in the signature output.
|
|
32
|
+
* @type {{ [key: string]: any; }}
|
|
33
|
+
* @memberof SignOutput
|
|
34
|
+
*/
|
|
35
|
+
metadata?: { [key: string]: any }
|
|
39
36
|
}
|
|
40
37
|
|
|
41
38
|
/**
|
|
42
39
|
* Check if a given object implements the SignOutput interface.
|
|
43
40
|
*/
|
|
44
41
|
export function instanceOfSignOutput(value: object): value is SignOutput {
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
if (!('signature' in value) || value['signature'] === undefined) return false
|
|
43
|
+
return true
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
export function SignOutputFromJSON(json: any): SignOutput {
|
|
50
|
-
|
|
47
|
+
return SignOutputFromJSONTyped(json, false)
|
|
51
48
|
}
|
|
52
49
|
|
|
53
50
|
export function SignOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignOutput {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
};
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
signature: SignatureFromJSON(json['signature']),
|
|
56
|
+
metadata: json['metadata'] == null ? undefined : json['metadata'],
|
|
57
|
+
}
|
|
62
58
|
}
|
|
63
59
|
|
|
64
60
|
export function SignOutputToJSON(json: any): SignOutput {
|
|
65
|
-
|
|
61
|
+
return SignOutputToJSONTyped(json, false)
|
|
66
62
|
}
|
|
67
63
|
|
|
68
64
|
export function SignOutputToJSONTyped(value?: SignOutput | null, ignoreDiscriminator: boolean = false): any {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value
|
|
67
|
+
}
|
|
74
68
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
return {
|
|
70
|
+
signature: SignatureToJSON(value['signature']),
|
|
71
|
+
metadata: value['metadata'],
|
|
72
|
+
}
|
|
78
73
|
}
|
|
79
|
-
|
package/src/models/Signature.ts
CHANGED
|
@@ -12,16 +12,10 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type { KeyInfo } from './KeyInfo'
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from './KeyInfo';
|
|
20
|
-
import type { SignatureAlgorithm } from './SignatureAlgorithm';
|
|
21
|
-
import {
|
|
22
|
-
SignatureAlgorithmFromJSON,
|
|
23
|
-
SignatureAlgorithmToJSON,
|
|
24
|
-
} from './SignatureAlgorithm';
|
|
15
|
+
import type { KeyInfo } from './KeyInfo'
|
|
16
|
+
import { KeyInfoFromJSON, KeyInfoToJSON } from './KeyInfo'
|
|
17
|
+
import type { SignatureAlgorithm } from './SignatureAlgorithm'
|
|
18
|
+
import { SignatureAlgorithmFromJSON, SignatureAlgorithmToJSON } from './SignatureAlgorithm'
|
|
25
19
|
|
|
26
20
|
/**
|
|
27
21
|
* A cryptographic signature including the signature value and related information.
|
|
@@ -29,75 +23,70 @@ import {
|
|
|
29
23
|
* @interface Signature
|
|
30
24
|
*/
|
|
31
25
|
export interface Signature {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
26
|
+
/**
|
|
27
|
+
* The signature value, encoded as a base64 string.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof Signature
|
|
30
|
+
*/
|
|
31
|
+
value: string
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {SignatureAlgorithm}
|
|
35
|
+
* @memberof Signature
|
|
36
|
+
*/
|
|
37
|
+
algorithm: SignatureAlgorithm
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {KeyInfo}
|
|
41
|
+
* @memberof Signature
|
|
42
|
+
*/
|
|
43
|
+
keyInfo?: KeyInfo
|
|
44
|
+
/**
|
|
45
|
+
* Additional metadata included in the signature.
|
|
46
|
+
* @type {{ [key: string]: any; }}
|
|
47
|
+
* @memberof Signature
|
|
48
|
+
*/
|
|
49
|
+
metadata?: { [key: string]: any }
|
|
56
50
|
}
|
|
57
51
|
|
|
58
|
-
|
|
59
|
-
|
|
60
52
|
/**
|
|
61
53
|
* Check if a given object implements the Signature interface.
|
|
62
54
|
*/
|
|
63
55
|
export function instanceOfSignature(value: object): value is Signature {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
56
|
+
if (!('value' in value) || value['value'] === undefined) return false
|
|
57
|
+
if (!('algorithm' in value) || value['algorithm'] === undefined) return false
|
|
58
|
+
return true
|
|
67
59
|
}
|
|
68
60
|
|
|
69
61
|
export function SignatureFromJSON(json: any): Signature {
|
|
70
|
-
|
|
62
|
+
return SignatureFromJSONTyped(json, false)
|
|
71
63
|
}
|
|
72
64
|
|
|
73
65
|
export function SignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): Signature {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
};
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
value: json['value'],
|
|
71
|
+
algorithm: SignatureAlgorithmFromJSON(json['algorithm']),
|
|
72
|
+
keyInfo: json['keyInfo'] == null ? undefined : KeyInfoFromJSON(json['keyInfo']),
|
|
73
|
+
metadata: json['metadata'] == null ? undefined : json['metadata'],
|
|
74
|
+
}
|
|
84
75
|
}
|
|
85
76
|
|
|
86
77
|
export function SignatureToJSON(json: any): Signature {
|
|
87
|
-
|
|
78
|
+
return SignatureToJSONTyped(json, false)
|
|
88
79
|
}
|
|
89
80
|
|
|
90
81
|
export function SignatureToJSONTyped(value?: Signature | null, ignoreDiscriminator: boolean = false): any {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value
|
|
84
|
+
}
|
|
94
85
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
};
|
|
86
|
+
return {
|
|
87
|
+
value: value['value'],
|
|
88
|
+
algorithm: SignatureAlgorithmToJSON(value['algorithm']),
|
|
89
|
+
keyInfo: KeyInfoToJSON(value['keyInfo']),
|
|
90
|
+
metadata: value['metadata'],
|
|
91
|
+
}
|
|
102
92
|
}
|
|
103
|
-
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* KMS REST Server API
|
|
5
|
-
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 0.0.1
|
|
8
8
|
* Contact: support@sphereon.com
|
|
@@ -12,52 +12,49 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
/**
|
|
17
16
|
* Cryptographic signature algorithm identifier.
|
|
18
17
|
* @export
|
|
19
18
|
*/
|
|
20
19
|
export const SignatureAlgorithm = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} as const
|
|
34
|
-
export type SignatureAlgorithm = typeof SignatureAlgorithm[keyof typeof SignatureAlgorithm]
|
|
35
|
-
|
|
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]
|
|
36
34
|
|
|
37
35
|
export function instanceOfSignatureAlgorithm(value: any): boolean {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
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
|
+
}
|
|
44
41
|
}
|
|
45
|
-
|
|
42
|
+
}
|
|
43
|
+
return false
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
export function SignatureAlgorithmFromJSON(json: any): SignatureAlgorithm {
|
|
49
|
-
|
|
47
|
+
return SignatureAlgorithmFromJSONTyped(json, false)
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
export function SignatureAlgorithmFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignatureAlgorithm {
|
|
53
|
-
|
|
51
|
+
return json as SignatureAlgorithm
|
|
54
52
|
}
|
|
55
53
|
|
|
56
54
|
export function SignatureAlgorithmToJSON(value?: SignatureAlgorithm | null): any {
|
|
57
|
-
|
|
55
|
+
return value as any
|
|
58
56
|
}
|
|
59
57
|
|
|
60
58
|
export function SignatureAlgorithmToJSONTyped(value: any, ignoreDiscriminator: boolean): SignatureAlgorithm {
|
|
61
|
-
|
|
59
|
+
return value as SignatureAlgorithm
|
|
62
60
|
}
|
|
63
|
-
|