@sphereon/ssi-sdk.kms-rest-client 0.34.1-feature.IDK.11.48 → 0.34.1-feature.IDK.11.49

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.
Files changed (69) hide show
  1. package/dist/index.cjs +169 -288
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +11 -11
  4. package/dist/index.d.ts +11 -11
  5. package/dist/index.js +169 -288
  6. package/dist/index.js.map +1 -1
  7. package/package.json +3 -3
  8. package/plugin.schema.json +38 -157
  9. package/src/agent/KmsRestClient.ts +16 -17
  10. package/src/models/AwsAssumeRoleCredentials.ts +49 -57
  11. package/src/models/AwsClientConfiguration.ts +29 -32
  12. package/src/models/AwsKmsSetting.ts +71 -85
  13. package/src/models/AwsStaticCredentials.ts +49 -57
  14. package/src/models/AwsWebIdentityTokenCredentials.ts +50 -58
  15. package/src/models/AzureClientSecretCredentialOpts.ts +45 -50
  16. package/src/models/AzureCredentialOpts.ts +24 -29
  17. package/src/models/AzureKeyVaultSetting.ts +60 -71
  18. package/src/models/CoseKey.ts +96 -104
  19. package/src/models/CoseKeyPair.ts +32 -38
  20. package/src/models/CoseKeyType.ts +18 -21
  21. package/src/models/CreateKeyProvider.ts +60 -74
  22. package/src/models/CreateRawSignature.ts +33 -39
  23. package/src/models/CreateRawSignatureResponse.ts +22 -25
  24. package/src/models/CreateSimpleSignature.ts +45 -59
  25. package/src/models/CryptoAlg.ts +18 -21
  26. package/src/models/Curve.ts +22 -25
  27. package/src/models/DigestAlg.ts +21 -24
  28. package/src/models/ErrorResponse.ts +39 -42
  29. package/src/models/GenerateKey.ts +51 -65
  30. package/src/models/GenerateKeyGlobal.ts +59 -73
  31. package/src/models/GenerateKeyResponse.ts +24 -30
  32. package/src/models/GetKeyResponse.ts +24 -30
  33. package/src/models/IdentifierMethod.ts +19 -22
  34. package/src/models/JoseKeyPair.ts +32 -38
  35. package/src/models/Jwk.ts +190 -207
  36. package/src/models/JwkKeyType.ts +18 -21
  37. package/src/models/JwkUse.ts +16 -19
  38. package/src/models/KeyEncoding.ts +16 -19
  39. package/src/models/KeyInfo.ts +103 -123
  40. package/src/models/KeyOperations.ts +22 -25
  41. package/src/models/KeyProvider.ts +33 -41
  42. package/src/models/KeyProviderResponse.ts +33 -41
  43. package/src/models/KeyProviderType.ts +17 -20
  44. package/src/models/KeyResolver.ts +44 -51
  45. package/src/models/KeyType.ts +17 -20
  46. package/src/models/KeyVisibility.ts +16 -19
  47. package/src/models/ListKeyProvidersResponse.ts +24 -30
  48. package/src/models/ListKeysResponse.ts +24 -30
  49. package/src/models/ListResolversResponse.ts +24 -30
  50. package/src/models/LookupMode.ts +17 -20
  51. package/src/models/ManagedKeyInfo.ts +106 -126
  52. package/src/models/ManagedKeyPair.ts +61 -70
  53. package/src/models/MaskGenFunction.ts +15 -18
  54. package/src/models/ProviderCapabilities.ts +65 -81
  55. package/src/models/ResolvePublicKey.ts +50 -61
  56. package/src/models/ResolvedKeyInfo.ts +104 -124
  57. package/src/models/Resolver.ts +44 -51
  58. package/src/models/SignInput.ts +42 -47
  59. package/src/models/SignOutput.ts +32 -38
  60. package/src/models/Signature.ts +51 -62
  61. package/src/models/SignatureAlgorithm.ts +26 -29
  62. package/src/models/StoreKey.ts +32 -38
  63. package/src/models/StoreKeyResponse.ts +24 -30
  64. package/src/models/UpdateKeyProvider.ts +49 -58
  65. package/src/models/VerifyRawSignature.ts +42 -48
  66. package/src/models/VerifyRawSignatureResponse.ts +22 -25
  67. package/src/models/VerifySimpleSignature.ts +35 -44
  68. package/src/models/index.ts +58 -58
  69. package/src/types/IKmsRestClient.ts +2 -2
@@ -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
- * @type {ResolvedKeyInfo}
30
- * @memberof StoreKey
31
- */
32
- keyInfo: ResolvedKeyInfo;
33
- /**
34
- * X.509 certificate chain as base64-encoded DER certificates.
35
- * @type {Array<string>}
36
- * @memberof StoreKey
37
- */
38
- certChain?: Array<string>;
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
- if (!('keyInfo' in value) || value['keyInfo'] === undefined) return false;
46
- return true;
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
- return StoreKeyFromJSONTyped(json, false);
47
+ return StoreKeyFromJSONTyped(json, false)
51
48
  }
52
49
 
53
50
  export function StoreKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreKey {
54
- if (json == null) {
55
- return json;
56
- }
57
- return {
58
-
59
- 'keyInfo': ResolvedKeyInfoFromJSON(json['keyInfo']),
60
- 'certChain': json['certChain'] == null ? undefined : json['certChain'],
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
- return StoreKeyToJSONTyped(json, false);
61
+ return StoreKeyToJSONTyped(json, false)
66
62
  }
67
63
 
68
64
  export function StoreKeyToJSONTyped(value?: StoreKey | null, ignoreDiscriminator: boolean = false): any {
69
- if (value == null) {
70
- return value;
71
- }
72
-
73
- return {
65
+ if (value == null) {
66
+ return value
67
+ }
74
68
 
75
- 'keyInfo': ResolvedKeyInfoToJSON(value['keyInfo']),
76
- 'certChain': value['certChain'],
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
- * @type {ManagedKeyInfo}
30
- * @memberof StoreKeyResponse
31
- */
32
- keyInfo: ManagedKeyInfo;
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
- if (!('keyInfo' in value) || value['keyInfo'] === undefined) return false;
40
- return true;
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
- return StoreKeyResponseFromJSONTyped(json, false);
41
+ return StoreKeyResponseFromJSONTyped(json, false)
45
42
  }
46
43
 
47
44
  export function StoreKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreKeyResponse {
48
- if (json == null) {
49
- return json;
50
- }
51
- return {
52
-
53
- 'keyInfo': ManagedKeyInfoFromJSON(json['keyInfo']),
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
- return StoreKeyResponseToJSONTyped(json, false);
54
+ return StoreKeyResponseToJSONTyped(json, false)
59
55
  }
60
56
 
61
57
  export function StoreKeyResponseToJSONTyped(value?: StoreKeyResponse | null, ignoreDiscriminator: boolean = false): any {
62
- if (value == null) {
63
- return value;
64
- }
65
-
66
- return {
58
+ if (value == null) {
59
+ return value
60
+ }
67
61
 
68
- 'keyInfo': ManagedKeyInfoToJSON(value['keyInfo']),
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
- AwsKmsSettingFromJSON,
18
- AwsKmsSettingToJSON,
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
- * @type {AzureKeyVaultSetting}
35
- * @memberof UpdateKeyProvider
36
- */
37
- azureKeyvaultSettings?: AzureKeyVaultSetting;
38
- /**
39
- *
40
- * @type {AwsKmsSetting}
41
- * @memberof UpdateKeyProvider
42
- */
43
- awsKmsSettings?: AwsKmsSetting;
44
- /**
45
- * Whether to enable caching for keys retrieved from this provider.
46
- * @type {boolean}
47
- * @memberof UpdateKeyProvider
48
- */
49
- cacheEnabled?: boolean;
50
- /**
51
- * Time-to-live for cached keys in seconds (if cacheEnabled is true).
52
- * @type {number}
53
- * @memberof UpdateKeyProvider
54
- */
55
- cacheTTLInSeconds?: number;
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
- return true;
56
+ return true
63
57
  }
64
58
 
65
59
  export function UpdateKeyProviderFromJSON(json: any): UpdateKeyProvider {
66
- return UpdateKeyProviderFromJSONTyped(json, false);
60
+ return UpdateKeyProviderFromJSONTyped(json, false)
67
61
  }
68
62
 
69
63
  export function UpdateKeyProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateKeyProvider {
70
- if (json == null) {
71
- return json;
72
- }
73
- return {
74
-
75
- 'azureKeyvaultSettings': json['azureKeyvaultSettings'] == null ? undefined : AzureKeyVaultSettingFromJSON(json['azureKeyvaultSettings']),
76
- 'awsKmsSettings': json['awsKmsSettings'] == null ? undefined : AwsKmsSettingFromJSON(json['awsKmsSettings']),
77
- 'cacheEnabled': json['cacheEnabled'] == null ? undefined : json['cacheEnabled'],
78
- 'cacheTTLInSeconds': json['cacheTTLInSeconds'] == null ? undefined : json['cacheTTLInSeconds'],
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
- return UpdateKeyProviderToJSONTyped(json, false);
76
+ return UpdateKeyProviderToJSONTyped(json, false)
84
77
  }
85
78
 
86
79
  export function UpdateKeyProviderToJSONTyped(value?: UpdateKeyProvider | null, ignoreDiscriminator: boolean = false): any {
87
- if (value == null) {
88
- return value;
89
- }
90
-
91
- return {
80
+ if (value == null) {
81
+ return value
82
+ }
92
83
 
93
- 'azureKeyvaultSettings': AzureKeyVaultSettingToJSON(value['azureKeyvaultSettings']),
94
- 'awsKmsSettings': AwsKmsSettingToJSON(value['awsKmsSettings']),
95
- 'cacheEnabled': value['cacheEnabled'],
96
- 'cacheTTLInSeconds': value['cacheTTLInSeconds'],
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
- * @type {KeyInfo}
30
- * @memberof VerifyRawSignature
31
- */
32
- keyInfo: KeyInfo;
33
- /**
34
- *
35
- * @type {string}
36
- * @memberof VerifyRawSignature
37
- */
38
- input: string;
39
- /**
40
- *
41
- * @type {string}
42
- * @memberof VerifyRawSignature
43
- */
44
- signature: string;
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
- if (!('keyInfo' in value) || value['keyInfo'] === undefined) return false;
52
- if (!('input' in value) || value['input'] === undefined) return false;
53
- if (!('signature' in value) || value['signature'] === undefined) return false;
54
- return true;
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
- return VerifyRawSignatureFromJSONTyped(json, false);
55
+ return VerifyRawSignatureFromJSONTyped(json, false)
59
56
  }
60
57
 
61
58
  export function VerifyRawSignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyRawSignature {
62
- if (json == null) {
63
- return json;
64
- }
65
- return {
66
-
67
- 'keyInfo': KeyInfoFromJSON(json['keyInfo']),
68
- 'input': json['input'],
69
- 'signature': json['signature'],
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
- return VerifyRawSignatureToJSONTyped(json, false);
70
+ return VerifyRawSignatureToJSONTyped(json, false)
75
71
  }
76
72
 
77
73
  export function VerifyRawSignatureToJSONTyped(value?: VerifyRawSignature | null, ignoreDiscriminator: boolean = false): any {
78
- if (value == null) {
79
- return value;
80
- }
81
-
82
- return {
74
+ if (value == null) {
75
+ return value
76
+ }
83
77
 
84
- 'keyInfo': KeyInfoToJSON(value['keyInfo']),
85
- 'input': value['input'],
86
- 'signature': value['signature'],
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
- * Indicates whether the signature is valid or not.
23
- * @type {boolean}
24
- * @memberof VerifyRawSignatureResponse
25
- */
26
- isValid: boolean;
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
- if (!('isValid' in value) || value['isValid'] === undefined) return false;
34
- return true;
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
- return VerifyRawSignatureResponseFromJSONTyped(json, false);
38
+ return VerifyRawSignatureResponseFromJSONTyped(json, false)
39
39
  }
40
40
 
41
41
  export function VerifyRawSignatureResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyRawSignatureResponse {
42
- if (json == null) {
43
- return json;
44
- }
45
- return {
46
-
47
- 'isValid': json['isValid'],
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
- return VerifyRawSignatureResponseToJSONTyped(json, false);
51
+ return VerifyRawSignatureResponseToJSONTyped(json, false)
53
52
  }
54
53
 
55
54
  export function VerifyRawSignatureResponseToJSONTyped(value?: VerifyRawSignatureResponse | null, ignoreDiscriminator: boolean = false): any {
56
- if (value == null) {
57
- return value;
58
- }
59
-
60
- return {
55
+ if (value == null) {
56
+ return value
57
+ }
61
58
 
62
- 'isValid': value['isValid'],
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
- SignInputFromJSON,
18
- SignInputToJSON,
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
- * @type {SignInput}
35
- * @memberof VerifySimpleSignature
36
- */
37
- signInput: SignInput;
38
- /**
39
- *
40
- * @type {Signature}
41
- * @memberof VerifySimpleSignature
42
- */
43
- signature: Signature;
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
- if (!('signInput' in value) || value['signInput'] === undefined) return false;
51
- if (!('signature' in value) || value['signature'] === undefined) return false;
52
- return true;
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
- return VerifySimpleSignatureFromJSONTyped(json, false);
50
+ return VerifySimpleSignatureFromJSONTyped(json, false)
57
51
  }
58
52
 
59
53
  export function VerifySimpleSignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifySimpleSignature {
60
- if (json == null) {
61
- return json;
62
- }
63
- return {
64
-
65
- 'signInput': SignInputFromJSON(json['signInput']),
66
- 'signature': SignatureFromJSON(json['signature']),
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
- return VerifySimpleSignatureToJSONTyped(json, false);
64
+ return VerifySimpleSignatureToJSONTyped(json, false)
72
65
  }
73
66
 
74
67
  export function VerifySimpleSignatureToJSONTyped(value?: VerifySimpleSignature | null, ignoreDiscriminator: boolean = false): any {
75
- if (value == null) {
76
- return value;
77
- }
78
-
79
- return {
68
+ if (value == null) {
69
+ return value
70
+ }
80
71
 
81
- 'signInput': SignInputToJSON(value['signInput']),
82
- 'signature': SignatureToJSON(value['signature']),
83
- };
72
+ return {
73
+ signInput: SignInputToJSON(value['signInput']),
74
+ signature: SignatureToJSON(value['signature']),
75
+ }
84
76
  }
85
-