@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/StoreKey.ts
CHANGED
|
@@ -12,11 +12,8 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type { ResolvedKeyInfo } from './ResolvedKeyInfo'
|
|
16
|
-
import {
|
|
17
|
-
ResolvedKeyInfoFromJSON,
|
|
18
|
-
ResolvedKeyInfoToJSON,
|
|
19
|
-
} from './ResolvedKeyInfo';
|
|
15
|
+
import type { ResolvedKeyInfo } from './ResolvedKeyInfo'
|
|
16
|
+
import { ResolvedKeyInfoFromJSON, ResolvedKeyInfoToJSON } from './ResolvedKeyInfo'
|
|
20
17
|
|
|
21
18
|
/**
|
|
22
19
|
* Request body for storing a key.
|
|
@@ -24,56 +21,53 @@ import {
|
|
|
24
21
|
* @interface StoreKey
|
|
25
22
|
*/
|
|
26
23
|
export interface StoreKey {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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>
|
|
39
36
|
}
|
|
40
37
|
|
|
41
38
|
/**
|
|
42
39
|
* Check if a given object implements the StoreKey interface.
|
|
43
40
|
*/
|
|
44
41
|
export function instanceOfStoreKey(value: object): value is StoreKey {
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
if (!('keyInfo' in value) || value['keyInfo'] === undefined) return false
|
|
43
|
+
return true
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
export function StoreKeyFromJSON(json: any): StoreKey {
|
|
50
|
-
|
|
47
|
+
return StoreKeyFromJSONTyped(json, false)
|
|
51
48
|
}
|
|
52
49
|
|
|
53
50
|
export function StoreKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreKey {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
};
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
keyInfo: ResolvedKeyInfoFromJSON(json['keyInfo']),
|
|
56
|
+
certChain: json['certChain'] == null ? undefined : json['certChain'],
|
|
57
|
+
}
|
|
62
58
|
}
|
|
63
59
|
|
|
64
60
|
export function StoreKeyToJSON(json: any): StoreKey {
|
|
65
|
-
|
|
61
|
+
return StoreKeyToJSONTyped(json, false)
|
|
66
62
|
}
|
|
67
63
|
|
|
68
64
|
export function StoreKeyToJSONTyped(value?: StoreKey | 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
|
+
keyInfo: ResolvedKeyInfoToJSON(value['keyInfo']),
|
|
71
|
+
certChain: value['certChain'],
|
|
72
|
+
}
|
|
78
73
|
}
|
|
79
|
-
|
|
@@ -12,11 +12,8 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type { ManagedKeyInfo } from './ManagedKeyInfo'
|
|
16
|
-
import {
|
|
17
|
-
ManagedKeyInfoFromJSON,
|
|
18
|
-
ManagedKeyInfoToJSON,
|
|
19
|
-
} from './ManagedKeyInfo';
|
|
15
|
+
import type { ManagedKeyInfo } from './ManagedKeyInfo'
|
|
16
|
+
import { ManagedKeyInfoFromJSON, ManagedKeyInfoToJSON } from './ManagedKeyInfo'
|
|
20
17
|
|
|
21
18
|
/**
|
|
22
19
|
* Response body containing a stored key.
|
|
@@ -24,48 +21,45 @@ import {
|
|
|
24
21
|
* @interface StoreKeyResponse
|
|
25
22
|
*/
|
|
26
23
|
export interface StoreKeyResponse {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {ManagedKeyInfo}
|
|
27
|
+
* @memberof StoreKeyResponse
|
|
28
|
+
*/
|
|
29
|
+
keyInfo: ManagedKeyInfo
|
|
33
30
|
}
|
|
34
31
|
|
|
35
32
|
/**
|
|
36
33
|
* Check if a given object implements the StoreKeyResponse interface.
|
|
37
34
|
*/
|
|
38
35
|
export function instanceOfStoreKeyResponse(value: object): value is StoreKeyResponse {
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
if (!('keyInfo' in value) || value['keyInfo'] === undefined) return false
|
|
37
|
+
return true
|
|
41
38
|
}
|
|
42
39
|
|
|
43
40
|
export function StoreKeyResponseFromJSON(json: any): StoreKeyResponse {
|
|
44
|
-
|
|
41
|
+
return StoreKeyResponseFromJSONTyped(json, false)
|
|
45
42
|
}
|
|
46
43
|
|
|
47
44
|
export function StoreKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreKeyResponse {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
};
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
keyInfo: ManagedKeyInfoFromJSON(json['keyInfo']),
|
|
50
|
+
}
|
|
55
51
|
}
|
|
56
52
|
|
|
57
53
|
export function StoreKeyResponseToJSON(json: any): StoreKeyResponse {
|
|
58
|
-
|
|
54
|
+
return StoreKeyResponseToJSONTyped(json, false)
|
|
59
55
|
}
|
|
60
56
|
|
|
61
57
|
export function StoreKeyResponseToJSONTyped(value?: StoreKeyResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value
|
|
60
|
+
}
|
|
67
61
|
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
return {
|
|
63
|
+
keyInfo: ManagedKeyInfoToJSON(value['keyInfo']),
|
|
64
|
+
}
|
|
70
65
|
}
|
|
71
|
-
|
|
@@ -12,16 +12,10 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type { AwsKmsSetting } from './AwsKmsSetting'
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from './AwsKmsSetting';
|
|
20
|
-
import type { AzureKeyVaultSetting } from './AzureKeyVaultSetting';
|
|
21
|
-
import {
|
|
22
|
-
AzureKeyVaultSettingFromJSON,
|
|
23
|
-
AzureKeyVaultSettingToJSON,
|
|
24
|
-
} from './AzureKeyVaultSetting';
|
|
15
|
+
import type { AwsKmsSetting } from './AwsKmsSetting'
|
|
16
|
+
import { AwsKmsSettingFromJSON, AwsKmsSettingToJSON } from './AwsKmsSetting'
|
|
17
|
+
import type { AzureKeyVaultSetting } from './AzureKeyVaultSetting'
|
|
18
|
+
import { AzureKeyVaultSettingFromJSON, AzureKeyVaultSettingToJSON } from './AzureKeyVaultSetting'
|
|
25
19
|
|
|
26
20
|
/**
|
|
27
21
|
* Request body for updating an existing Key Provider instance.
|
|
@@ -29,71 +23,68 @@ import {
|
|
|
29
23
|
* @interface UpdateKeyProvider
|
|
30
24
|
*/
|
|
31
25
|
export interface UpdateKeyProvider {
|
|
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
|
+
*
|
|
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
|
|
56
50
|
}
|
|
57
51
|
|
|
58
52
|
/**
|
|
59
53
|
* Check if a given object implements the UpdateKeyProvider interface.
|
|
60
54
|
*/
|
|
61
55
|
export function instanceOfUpdateKeyProvider(value: object): value is UpdateKeyProvider {
|
|
62
|
-
|
|
56
|
+
return true
|
|
63
57
|
}
|
|
64
58
|
|
|
65
59
|
export function UpdateKeyProviderFromJSON(json: any): UpdateKeyProvider {
|
|
66
|
-
|
|
60
|
+
return UpdateKeyProviderFromJSONTyped(json, false)
|
|
67
61
|
}
|
|
68
62
|
|
|
69
63
|
export function UpdateKeyProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateKeyProvider {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
};
|
|
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
|
+
}
|
|
80
73
|
}
|
|
81
74
|
|
|
82
75
|
export function UpdateKeyProviderToJSON(json: any): UpdateKeyProvider {
|
|
83
|
-
|
|
76
|
+
return UpdateKeyProviderToJSONTyped(json, false)
|
|
84
77
|
}
|
|
85
78
|
|
|
86
79
|
export function UpdateKeyProviderToJSONTyped(value?: UpdateKeyProvider | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
return {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value
|
|
82
|
+
}
|
|
92
83
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
84
|
+
return {
|
|
85
|
+
azureKeyvaultSettings: AzureKeyVaultSettingToJSON(value['azureKeyvaultSettings']),
|
|
86
|
+
awsKmsSettings: AwsKmsSettingToJSON(value['awsKmsSettings']),
|
|
87
|
+
cacheEnabled: value['cacheEnabled'],
|
|
88
|
+
cacheTTLInSeconds: value['cacheTTLInSeconds'],
|
|
89
|
+
}
|
|
98
90
|
}
|
|
99
|
-
|
|
@@ -12,11 +12,8 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type { KeyInfo } from './KeyInfo'
|
|
16
|
-
import {
|
|
17
|
-
KeyInfoFromJSON,
|
|
18
|
-
KeyInfoToJSON,
|
|
19
|
-
} from './KeyInfo';
|
|
15
|
+
import type { KeyInfo } from './KeyInfo'
|
|
16
|
+
import { KeyInfoFromJSON, KeyInfoToJSON } from './KeyInfo'
|
|
20
17
|
|
|
21
18
|
/**
|
|
22
19
|
* Request body for verifying a raw signature.
|
|
@@ -24,66 +21,63 @@ import {
|
|
|
24
21
|
* @interface VerifyRawSignature
|
|
25
22
|
*/
|
|
26
23
|
export interface VerifyRawSignature {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
|
45
42
|
}
|
|
46
43
|
|
|
47
44
|
/**
|
|
48
45
|
* Check if a given object implements the VerifyRawSignature interface.
|
|
49
46
|
*/
|
|
50
47
|
export function instanceOfVerifyRawSignature(value: object): value is VerifyRawSignature {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
|
55
52
|
}
|
|
56
53
|
|
|
57
54
|
export function VerifyRawSignatureFromJSON(json: any): VerifyRawSignature {
|
|
58
|
-
|
|
55
|
+
return VerifyRawSignatureFromJSONTyped(json, false)
|
|
59
56
|
}
|
|
60
57
|
|
|
61
58
|
export function VerifyRawSignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyRawSignature {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
};
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
keyInfo: KeyInfoFromJSON(json['keyInfo']),
|
|
64
|
+
input: json['input'],
|
|
65
|
+
signature: json['signature'],
|
|
66
|
+
}
|
|
71
67
|
}
|
|
72
68
|
|
|
73
69
|
export function VerifyRawSignatureToJSON(json: any): VerifyRawSignature {
|
|
74
|
-
|
|
70
|
+
return VerifyRawSignatureToJSONTyped(json, false)
|
|
75
71
|
}
|
|
76
72
|
|
|
77
73
|
export function VerifyRawSignatureToJSONTyped(value?: VerifyRawSignature | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
return {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value
|
|
76
|
+
}
|
|
83
77
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
78
|
+
return {
|
|
79
|
+
keyInfo: KeyInfoToJSON(value['keyInfo']),
|
|
80
|
+
input: value['input'],
|
|
81
|
+
signature: value['signature'],
|
|
82
|
+
}
|
|
88
83
|
}
|
|
89
|
-
|
|
@@ -18,48 +18,45 @@
|
|
|
18
18
|
* @interface VerifyRawSignatureResponse
|
|
19
19
|
*/
|
|
20
20
|
export interface VerifyRawSignatureResponse {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Indicates whether the signature is valid or not.
|
|
23
|
+
* @type {boolean}
|
|
24
|
+
* @memberof VerifyRawSignatureResponse
|
|
25
|
+
*/
|
|
26
|
+
isValid: boolean
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Check if a given object implements the VerifyRawSignatureResponse interface.
|
|
31
31
|
*/
|
|
32
32
|
export function instanceOfVerifyRawSignatureResponse(value: object): value is VerifyRawSignatureResponse {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
if (!('isValid' in value) || value['isValid'] === undefined) return false
|
|
34
|
+
return true
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export function VerifyRawSignatureResponseFromJSON(json: any): VerifyRawSignatureResponse {
|
|
38
|
-
|
|
38
|
+
return VerifyRawSignatureResponseFromJSONTyped(json, false)
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
export function VerifyRawSignatureResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyRawSignatureResponse {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
};
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
isValid: json['isValid'],
|
|
47
|
+
}
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
export function VerifyRawSignatureResponseToJSON(json: any): VerifyRawSignatureResponse {
|
|
52
|
-
|
|
51
|
+
return VerifyRawSignatureResponseToJSONTyped(json, false)
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
export function VerifyRawSignatureResponseToJSONTyped(value?: VerifyRawSignatureResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value
|
|
57
|
+
}
|
|
61
58
|
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
return {
|
|
60
|
+
isValid: value['isValid'],
|
|
61
|
+
}
|
|
64
62
|
}
|
|
65
|
-
|
|
@@ -12,16 +12,10 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type { SignInput } from './SignInput'
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from './SignInput';
|
|
20
|
-
import type { Signature } from './Signature';
|
|
21
|
-
import {
|
|
22
|
-
SignatureFromJSON,
|
|
23
|
-
SignatureToJSON,
|
|
24
|
-
} from './Signature';
|
|
15
|
+
import type { SignInput } from './SignInput'
|
|
16
|
+
import { SignInputFromJSON, SignInputToJSON } from './SignInput'
|
|
17
|
+
import type { Signature } from './Signature'
|
|
18
|
+
import { SignatureFromJSON, SignatureToJSON } from './Signature'
|
|
25
19
|
|
|
26
20
|
/**
|
|
27
21
|
* Request body for verifying a digital signature.
|
|
@@ -29,57 +23,54 @@ import {
|
|
|
29
23
|
* @interface VerifySimpleSignature
|
|
30
24
|
*/
|
|
31
25
|
export interface VerifySimpleSignature {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {SignInput}
|
|
29
|
+
* @memberof VerifySimpleSignature
|
|
30
|
+
*/
|
|
31
|
+
signInput: SignInput
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Signature}
|
|
35
|
+
* @memberof VerifySimpleSignature
|
|
36
|
+
*/
|
|
37
|
+
signature: Signature
|
|
44
38
|
}
|
|
45
39
|
|
|
46
40
|
/**
|
|
47
41
|
* Check if a given object implements the VerifySimpleSignature interface.
|
|
48
42
|
*/
|
|
49
43
|
export function instanceOfVerifySimpleSignature(value: object): value is VerifySimpleSignature {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
if (!('signInput' in value) || value['signInput'] === undefined) return false
|
|
45
|
+
if (!('signature' in value) || value['signature'] === undefined) return false
|
|
46
|
+
return true
|
|
53
47
|
}
|
|
54
48
|
|
|
55
49
|
export function VerifySimpleSignatureFromJSON(json: any): VerifySimpleSignature {
|
|
56
|
-
|
|
50
|
+
return VerifySimpleSignatureFromJSONTyped(json, false)
|
|
57
51
|
}
|
|
58
52
|
|
|
59
53
|
export function VerifySimpleSignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifySimpleSignature {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
};
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
signInput: SignInputFromJSON(json['signInput']),
|
|
59
|
+
signature: SignatureFromJSON(json['signature']),
|
|
60
|
+
}
|
|
68
61
|
}
|
|
69
62
|
|
|
70
63
|
export function VerifySimpleSignatureToJSON(json: any): VerifySimpleSignature {
|
|
71
|
-
|
|
64
|
+
return VerifySimpleSignatureToJSONTyped(json, false)
|
|
72
65
|
}
|
|
73
66
|
|
|
74
67
|
export function VerifySimpleSignatureToJSONTyped(value?: VerifySimpleSignature | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
return {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value
|
|
70
|
+
}
|
|
80
71
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
72
|
+
return {
|
|
73
|
+
signInput: SignInputToJSON(value['signInput']),
|
|
74
|
+
signature: SignatureToJSON(value['signature']),
|
|
75
|
+
}
|
|
84
76
|
}
|
|
85
|
-
|