@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,16 +12,10 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import type { KeyType } from './KeyType';
16
- import {
17
- KeyTypeFromJSON,
18
- KeyTypeToJSON,
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
- * Unique identifier for the resolver.
34
- * @type {string}
35
- * @memberof Resolver
36
- */
37
- resolverId: string;
38
- /**
39
- * List of identifier methods supported by this resolver.
40
- * @type {Array<IdentifierMethod>}
41
- * @memberof Resolver
42
- */
43
- supportedIdentifierMethods?: Array<IdentifierMethod>;
44
- /**
45
- * List of key types supported by this resolver.
46
- * @type {Array<KeyType>}
47
- * @memberof Resolver
48
- */
49
- supportedKeyTypes?: Array<KeyType>;
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
- if (!('resolverId' in value) || value['resolverId'] === undefined) return false;
57
- return true;
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
- return ResolverFromJSONTyped(json, false);
55
+ return ResolverFromJSONTyped(json, false)
62
56
  }
63
57
 
64
58
  export function ResolverFromJSONTyped(json: any, ignoreDiscriminator: boolean): Resolver {
65
- if (json == null) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'resolverId': json['resolverId'],
71
- 'supportedIdentifierMethods': json['supportedIdentifierMethods'] == null ? undefined : ((json['supportedIdentifierMethods'] as Array<any>).map(IdentifierMethodFromJSON)),
72
- 'supportedKeyTypes': json['supportedKeyTypes'] == null ? undefined : ((json['supportedKeyTypes'] as Array<any>).map(KeyTypeFromJSON)),
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
- return ResolverToJSONTyped(json, false);
71
+ return ResolverToJSONTyped(json, false)
78
72
  }
79
73
 
80
74
  export function ResolverToJSONTyped(value?: Resolver | null, ignoreDiscriminator: boolean = false): any {
81
- if (value == null) {
82
- return value;
83
- }
84
-
85
- return {
75
+ if (value == null) {
76
+ return value
77
+ }
86
78
 
87
- 'resolverId': value['resolverId'],
88
- 'supportedIdentifierMethods': value['supportedIdentifierMethods'] == null ? undefined : ((value['supportedIdentifierMethods'] as Array<any>).map(IdentifierMethodToJSON)),
89
- 'supportedKeyTypes': value['supportedKeyTypes'] == null ? undefined : ((value['supportedKeyTypes'] as Array<any>).map(KeyTypeToJSON)),
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
-
@@ -18,75 +18,70 @@
18
18
  * @interface SignInput
19
19
  */
20
20
  export interface SignInput {
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; };
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
- Detached: 'DETACHED',
47
- Attached: 'ATTACHED'
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
- if (!('data' in value) || value['data'] === undefined) return false;
57
- return true;
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
- return SignInputFromJSONTyped(json, false);
59
+ return SignInputFromJSONTyped(json, false)
62
60
  }
63
61
 
64
62
  export function SignInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignInput {
65
- if (json == null) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'data': json['data'],
71
- 'mode': json['mode'] == null ? undefined : json['mode'],
72
- 'metadata': json['metadata'] == null ? undefined : json['metadata'],
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
- return SignInputToJSONTyped(json, false);
74
+ return SignInputToJSONTyped(json, false)
78
75
  }
79
76
 
80
77
  export function SignInputToJSONTyped(value?: SignInput | null, ignoreDiscriminator: boolean = false): any {
81
- if (value == null) {
82
- return value;
83
- }
78
+ if (value == null) {
79
+ return value
80
+ }
84
81
 
85
- return {
86
-
87
- 'data': value['data'],
88
- 'mode': value['mode'],
89
- 'metadata': value['metadata'],
90
- };
82
+ return {
83
+ data: value['data'],
84
+ mode: value['mode'],
85
+ metadata: value['metadata'],
86
+ }
91
87
  }
92
-
@@ -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
- * @type {Signature}
30
- * @memberof SignOutput
31
- */
32
- signature: Signature;
33
- /**
34
- * Additional metadata included in the signature output.
35
- * @type {{ [key: string]: any; }}
36
- * @memberof SignOutput
37
- */
38
- metadata?: { [key: string]: any; };
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
- if (!('signature' in value) || value['signature'] === undefined) return false;
46
- return true;
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
- return SignOutputFromJSONTyped(json, false);
47
+ return SignOutputFromJSONTyped(json, false)
51
48
  }
52
49
 
53
50
  export function SignOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignOutput {
54
- if (json == null) {
55
- return json;
56
- }
57
- return {
58
-
59
- 'signature': SignatureFromJSON(json['signature']),
60
- 'metadata': json['metadata'] == null ? undefined : json['metadata'],
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
- return SignOutputToJSONTyped(json, false);
61
+ return SignOutputToJSONTyped(json, false)
66
62
  }
67
63
 
68
64
  export function SignOutputToJSONTyped(value?: SignOutput | 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
- 'signature': SignatureToJSON(value['signature']),
76
- 'metadata': value['metadata'],
77
- };
69
+ return {
70
+ signature: SignatureToJSON(value['signature']),
71
+ metadata: value['metadata'],
72
+ }
78
73
  }
79
-
@@ -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
- KeyInfoFromJSON,
18
- KeyInfoToJSON,
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
- * The signature value, encoded as a base64 string.
34
- * @type {string}
35
- * @memberof Signature
36
- */
37
- value: string;
38
- /**
39
- *
40
- * @type {SignatureAlgorithm}
41
- * @memberof Signature
42
- */
43
- algorithm: SignatureAlgorithm;
44
- /**
45
- *
46
- * @type {KeyInfo}
47
- * @memberof Signature
48
- */
49
- keyInfo?: KeyInfo;
50
- /**
51
- * Additional metadata included in the signature.
52
- * @type {{ [key: string]: any; }}
53
- * @memberof Signature
54
- */
55
- metadata?: { [key: string]: any; };
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
- if (!('value' in value) || value['value'] === undefined) return false;
65
- if (!('algorithm' in value) || value['algorithm'] === undefined) return false;
66
- return true;
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
- return SignatureFromJSONTyped(json, false);
62
+ return SignatureFromJSONTyped(json, false)
71
63
  }
72
64
 
73
65
  export function SignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): Signature {
74
- if (json == null) {
75
- return json;
76
- }
77
- return {
78
-
79
- 'value': json['value'],
80
- 'algorithm': SignatureAlgorithmFromJSON(json['algorithm']),
81
- 'keyInfo': json['keyInfo'] == null ? undefined : KeyInfoFromJSON(json['keyInfo']),
82
- 'metadata': json['metadata'] == null ? undefined : json['metadata'],
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
- return SignatureToJSONTyped(json, false);
78
+ return SignatureToJSONTyped(json, false)
88
79
  }
89
80
 
90
81
  export function SignatureToJSONTyped(value?: Signature | null, ignoreDiscriminator: boolean = false): any {
91
- if (value == null) {
92
- return value;
93
- }
82
+ if (value == null) {
83
+ return value
84
+ }
94
85
 
95
- return {
96
-
97
- 'value': value['value'],
98
- 'algorithm': SignatureAlgorithmToJSON(value['algorithm']),
99
- 'keyInfo': KeyInfoToJSON(value['keyInfo']),
100
- 'metadata': value['metadata'],
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
- Ed25519: 'ED25519',
22
- EcdsaSha256: 'ECDSA_SHA256',
23
- EcdsaSha384: 'ECDSA_SHA384',
24
- EcdsaSha512: 'ECDSA_SHA512',
25
- Es256K: 'ES256K',
26
- EckaDhSha256: 'ECKA_DH_SHA256',
27
- HmacSha256: 'HMAC_SHA256',
28
- HmacSha384: 'HMAC_SHA384',
29
- HmacSha512: 'HMAC_SHA512',
30
- RsaSsaPssSha256Mgf1: 'RSA_SSA_PSS_SHA256_MGF1',
31
- RsaSsaPssSha384Mgf1: 'RSA_SSA_PSS_SHA384_MGF1',
32
- RsaSsaPssSha512Mgf1: 'RSA_SSA_PSS_SHA512_MGF1'
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
- for (const key in SignatureAlgorithm) {
39
- if (Object.prototype.hasOwnProperty.call(SignatureAlgorithm, key)) {
40
- if (SignatureAlgorithm[key as keyof typeof SignatureAlgorithm] === value) {
41
- return true;
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
- return false;
42
+ }
43
+ return false
46
44
  }
47
45
 
48
46
  export function SignatureAlgorithmFromJSON(json: any): SignatureAlgorithm {
49
- return SignatureAlgorithmFromJSONTyped(json, false);
47
+ return SignatureAlgorithmFromJSONTyped(json, false)
50
48
  }
51
49
 
52
50
  export function SignatureAlgorithmFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignatureAlgorithm {
53
- return json as SignatureAlgorithm;
51
+ return json as SignatureAlgorithm
54
52
  }
55
53
 
56
54
  export function SignatureAlgorithmToJSON(value?: SignatureAlgorithm | null): any {
57
- return value as any;
55
+ return value as any
58
56
  }
59
57
 
60
58
  export function SignatureAlgorithmToJSONTyped(value: any, ignoreDiscriminator: boolean): SignatureAlgorithm {
61
- return value as SignatureAlgorithm;
59
+ return value as SignatureAlgorithm
62
60
  }
63
-