@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 instance with detailed configuration.
@@ -29,64 +23,63 @@ import {
29
23
  * @interface KeyResolver
30
24
  */
31
25
  export interface KeyResolver {
32
- /**
33
- * Unique identifier for the resolver.
34
- * @type {string}
35
- * @memberof KeyResolver
36
- */
37
- resolverId: string;
38
- /**
39
- * List of identifier methods supported by this resolver.
40
- * @type {Array<IdentifierMethod>}
41
- * @memberof KeyResolver
42
- */
43
- supportedIdentifierMethods?: Array<IdentifierMethod>;
44
- /**
45
- * List of key types supported by this resolver.
46
- * @type {Array<KeyType>}
47
- * @memberof KeyResolver
48
- */
49
- supportedKeyTypes?: Array<KeyType>;
26
+ /**
27
+ * Unique identifier for the resolver.
28
+ * @type {string}
29
+ * @memberof KeyResolver
30
+ */
31
+ resolverId: string
32
+ /**
33
+ * List of identifier methods supported by this resolver.
34
+ * @type {Array<IdentifierMethod>}
35
+ * @memberof KeyResolver
36
+ */
37
+ supportedIdentifierMethods?: Array<IdentifierMethod>
38
+ /**
39
+ * List of key types supported by this resolver.
40
+ * @type {Array<KeyType>}
41
+ * @memberof KeyResolver
42
+ */
43
+ supportedKeyTypes?: Array<KeyType>
50
44
  }
51
45
 
52
46
  /**
53
47
  * Check if a given object implements the KeyResolver interface.
54
48
  */
55
49
  export function instanceOfKeyResolver(value: object): value is KeyResolver {
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 KeyResolverFromJSON(json: any): KeyResolver {
61
- return KeyResolverFromJSONTyped(json, false);
55
+ return KeyResolverFromJSONTyped(json, false)
62
56
  }
63
57
 
64
58
  export function KeyResolverFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyResolver {
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 KeyResolverToJSON(json: any): KeyResolver {
77
- return KeyResolverToJSONTyped(json, false);
71
+ return KeyResolverToJSONTyped(json, false)
78
72
  }
79
73
 
80
74
  export function KeyResolverToJSONTyped(value?: KeyResolver | 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
-
@@ -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,43 +12,40 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  /**
17
16
  * Cryptographic key type identifier.
18
17
  * @export
19
18
  */
20
19
  export const KeyType = {
21
- Okp: 'OKP',
22
- Ec: 'EC',
23
- Rsa: 'RSA'
24
- } as const;
25
- export type KeyType = typeof KeyType[keyof typeof KeyType];
26
-
20
+ Okp: 'OKP',
21
+ Ec: 'EC',
22
+ Rsa: 'RSA',
23
+ } as const
24
+ export type KeyType = (typeof KeyType)[keyof typeof KeyType]
27
25
 
28
26
  export function instanceOfKeyType(value: any): boolean {
29
- for (const key in KeyType) {
30
- if (Object.prototype.hasOwnProperty.call(KeyType, key)) {
31
- if (KeyType[key as keyof typeof KeyType] === value) {
32
- return true;
33
- }
34
- }
27
+ for (const key in KeyType) {
28
+ if (Object.prototype.hasOwnProperty.call(KeyType, key)) {
29
+ if (KeyType[key as keyof typeof KeyType] === value) {
30
+ return true
31
+ }
35
32
  }
36
- return false;
33
+ }
34
+ return false
37
35
  }
38
36
 
39
37
  export function KeyTypeFromJSON(json: any): KeyType {
40
- return KeyTypeFromJSONTyped(json, false);
38
+ return KeyTypeFromJSONTyped(json, false)
41
39
  }
42
40
 
43
41
  export function KeyTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyType {
44
- return json as KeyType;
42
+ return json as KeyType
45
43
  }
46
44
 
47
45
  export function KeyTypeToJSON(value?: KeyType | null): any {
48
- return value as any;
46
+ return value as any
49
47
  }
50
48
 
51
49
  export function KeyTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): KeyType {
52
- return value as KeyType;
50
+ return value as KeyType
53
51
  }
54
-
@@ -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,42 +12,39 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  /**
17
16
  * Indicates the visibility status of a cryptographic key.
18
17
  * @export
19
18
  */
20
19
  export const KeyVisibility = {
21
- Public: 'PUBLIC',
22
- Private: 'PRIVATE'
23
- } as const;
24
- export type KeyVisibility = typeof KeyVisibility[keyof typeof KeyVisibility];
25
-
20
+ Public: 'PUBLIC',
21
+ Private: 'PRIVATE',
22
+ } as const
23
+ export type KeyVisibility = (typeof KeyVisibility)[keyof typeof KeyVisibility]
26
24
 
27
25
  export function instanceOfKeyVisibility(value: any): boolean {
28
- for (const key in KeyVisibility) {
29
- if (Object.prototype.hasOwnProperty.call(KeyVisibility, key)) {
30
- if (KeyVisibility[key as keyof typeof KeyVisibility] === value) {
31
- return true;
32
- }
33
- }
26
+ for (const key in KeyVisibility) {
27
+ if (Object.prototype.hasOwnProperty.call(KeyVisibility, key)) {
28
+ if (KeyVisibility[key as keyof typeof KeyVisibility] === value) {
29
+ return true
30
+ }
34
31
  }
35
- return false;
32
+ }
33
+ return false
36
34
  }
37
35
 
38
36
  export function KeyVisibilityFromJSON(json: any): KeyVisibility {
39
- return KeyVisibilityFromJSONTyped(json, false);
37
+ return KeyVisibilityFromJSONTyped(json, false)
40
38
  }
41
39
 
42
40
  export function KeyVisibilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyVisibility {
43
- return json as KeyVisibility;
41
+ return json as KeyVisibility
44
42
  }
45
43
 
46
44
  export function KeyVisibilityToJSON(value?: KeyVisibility | null): any {
47
- return value as any;
45
+ return value as any
48
46
  }
49
47
 
50
48
  export function KeyVisibilityToJSONTyped(value: any, ignoreDiscriminator: boolean): KeyVisibility {
51
- return value as KeyVisibility;
49
+ return value as KeyVisibility
52
50
  }
53
-
@@ -12,11 +12,8 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import type { KeyProvider } from './KeyProvider';
16
- import {
17
- KeyProviderFromJSON,
18
- KeyProviderToJSON,
19
- } from './KeyProvider';
15
+ import type { KeyProvider } from './KeyProvider'
16
+ import { KeyProviderFromJSON, KeyProviderToJSON } from './KeyProvider'
20
17
 
21
18
  /**
22
19
  * Response body containing the details of a Key Provider instance.
@@ -24,48 +21,45 @@ import {
24
21
  * @interface ListKeyProvidersResponse
25
22
  */
26
23
  export interface ListKeyProvidersResponse {
27
- /**
28
- *
29
- * @type {Array<KeyProvider>}
30
- * @memberof ListKeyProvidersResponse
31
- */
32
- providers: Array<KeyProvider>;
24
+ /**
25
+ *
26
+ * @type {Array<KeyProvider>}
27
+ * @memberof ListKeyProvidersResponse
28
+ */
29
+ providers: Array<KeyProvider>
33
30
  }
34
31
 
35
32
  /**
36
33
  * Check if a given object implements the ListKeyProvidersResponse interface.
37
34
  */
38
35
  export function instanceOfListKeyProvidersResponse(value: object): value is ListKeyProvidersResponse {
39
- if (!('providers' in value) || value['providers'] === undefined) return false;
40
- return true;
36
+ if (!('providers' in value) || value['providers'] === undefined) return false
37
+ return true
41
38
  }
42
39
 
43
40
  export function ListKeyProvidersResponseFromJSON(json: any): ListKeyProvidersResponse {
44
- return ListKeyProvidersResponseFromJSONTyped(json, false);
41
+ return ListKeyProvidersResponseFromJSONTyped(json, false)
45
42
  }
46
43
 
47
44
  export function ListKeyProvidersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListKeyProvidersResponse {
48
- if (json == null) {
49
- return json;
50
- }
51
- return {
52
-
53
- 'providers': ((json['providers'] as Array<any>).map(KeyProviderFromJSON)),
54
- };
45
+ if (json == null) {
46
+ return json
47
+ }
48
+ return {
49
+ providers: (json['providers'] as Array<any>).map(KeyProviderFromJSON),
50
+ }
55
51
  }
56
52
 
57
53
  export function ListKeyProvidersResponseToJSON(json: any): ListKeyProvidersResponse {
58
- return ListKeyProvidersResponseToJSONTyped(json, false);
54
+ return ListKeyProvidersResponseToJSONTyped(json, false)
59
55
  }
60
56
 
61
57
  export function ListKeyProvidersResponseToJSONTyped(value?: ListKeyProvidersResponse | 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
- 'providers': ((value['providers'] as Array<any>).map(KeyProviderToJSON)),
69
- };
62
+ return {
63
+ providers: (value['providers'] as Array<any>).map(KeyProviderToJSON),
64
+ }
70
65
  }
71
-
@@ -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 all the managed keys.
@@ -24,48 +21,45 @@ import {
24
21
  * @interface ListKeysResponse
25
22
  */
26
23
  export interface ListKeysResponse {
27
- /**
28
- *
29
- * @type {Array<ManagedKeyInfo>}
30
- * @memberof ListKeysResponse
31
- */
32
- keyInfos: Array<ManagedKeyInfo>;
24
+ /**
25
+ *
26
+ * @type {Array<ManagedKeyInfo>}
27
+ * @memberof ListKeysResponse
28
+ */
29
+ keyInfos: Array<ManagedKeyInfo>
33
30
  }
34
31
 
35
32
  /**
36
33
  * Check if a given object implements the ListKeysResponse interface.
37
34
  */
38
35
  export function instanceOfListKeysResponse(value: object): value is ListKeysResponse {
39
- if (!('keyInfos' in value) || value['keyInfos'] === undefined) return false;
40
- return true;
36
+ if (!('keyInfos' in value) || value['keyInfos'] === undefined) return false
37
+ return true
41
38
  }
42
39
 
43
40
  export function ListKeysResponseFromJSON(json: any): ListKeysResponse {
44
- return ListKeysResponseFromJSONTyped(json, false);
41
+ return ListKeysResponseFromJSONTyped(json, false)
45
42
  }
46
43
 
47
44
  export function ListKeysResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListKeysResponse {
48
- if (json == null) {
49
- return json;
50
- }
51
- return {
52
-
53
- 'keyInfos': ((json['keyInfos'] as Array<any>).map(ManagedKeyInfoFromJSON)),
54
- };
45
+ if (json == null) {
46
+ return json
47
+ }
48
+ return {
49
+ keyInfos: (json['keyInfos'] as Array<any>).map(ManagedKeyInfoFromJSON),
50
+ }
55
51
  }
56
52
 
57
53
  export function ListKeysResponseToJSON(json: any): ListKeysResponse {
58
- return ListKeysResponseToJSONTyped(json, false);
54
+ return ListKeysResponseToJSONTyped(json, false)
59
55
  }
60
56
 
61
57
  export function ListKeysResponseToJSONTyped(value?: ListKeysResponse | 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
- 'keyInfos': ((value['keyInfos'] as Array<any>).map(ManagedKeyInfoToJSON)),
69
- };
62
+ return {
63
+ keyInfos: (value['keyInfos'] as Array<any>).map(ManagedKeyInfoToJSON),
64
+ }
70
65
  }
71
-
@@ -12,11 +12,8 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import type { Resolver } from './Resolver';
16
- import {
17
- ResolverFromJSON,
18
- ResolverToJSON,
19
- } from './Resolver';
15
+ import type { Resolver } from './Resolver'
16
+ import { ResolverFromJSON, ResolverToJSON } from './Resolver'
20
17
 
21
18
  /**
22
19
  * Response body containing all the resolvers.
@@ -24,48 +21,45 @@ import {
24
21
  * @interface ListResolversResponse
25
22
  */
26
23
  export interface ListResolversResponse {
27
- /**
28
- *
29
- * @type {Array<Resolver>}
30
- * @memberof ListResolversResponse
31
- */
32
- resolvers: Array<Resolver>;
24
+ /**
25
+ *
26
+ * @type {Array<Resolver>}
27
+ * @memberof ListResolversResponse
28
+ */
29
+ resolvers: Array<Resolver>
33
30
  }
34
31
 
35
32
  /**
36
33
  * Check if a given object implements the ListResolversResponse interface.
37
34
  */
38
35
  export function instanceOfListResolversResponse(value: object): value is ListResolversResponse {
39
- if (!('resolvers' in value) || value['resolvers'] === undefined) return false;
40
- return true;
36
+ if (!('resolvers' in value) || value['resolvers'] === undefined) return false
37
+ return true
41
38
  }
42
39
 
43
40
  export function ListResolversResponseFromJSON(json: any): ListResolversResponse {
44
- return ListResolversResponseFromJSONTyped(json, false);
41
+ return ListResolversResponseFromJSONTyped(json, false)
45
42
  }
46
43
 
47
44
  export function ListResolversResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResolversResponse {
48
- if (json == null) {
49
- return json;
50
- }
51
- return {
52
-
53
- 'resolvers': ((json['resolvers'] as Array<any>).map(ResolverFromJSON)),
54
- };
45
+ if (json == null) {
46
+ return json
47
+ }
48
+ return {
49
+ resolvers: (json['resolvers'] as Array<any>).map(ResolverFromJSON),
50
+ }
55
51
  }
56
52
 
57
53
  export function ListResolversResponseToJSON(json: any): ListResolversResponse {
58
- return ListResolversResponseToJSONTyped(json, false);
54
+ return ListResolversResponseToJSONTyped(json, false)
59
55
  }
60
56
 
61
57
  export function ListResolversResponseToJSONTyped(value?: ListResolversResponse | 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
- 'resolvers': ((value['resolvers'] as Array<any>).map(ResolverToJSON)),
69
- };
62
+ return {
63
+ resolvers: (value['resolvers'] as Array<any>).map(ResolverToJSON),
64
+ }
70
65
  }
71
-
@@ -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,43 +12,40 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  /**
17
16
  * Determines how configuration values are looked up. - VALUE: The actual configuration values are provided directly. - CONFIG_SERVICE: Configuration values are looked up from a configuration service using keys. - SECRET_SERVICE: Configuration values are looked up from a secret service using keys.
18
17
  * @export
19
18
  */
20
19
  export const LookupMode = {
21
- Value: 'VALUE',
22
- ConfigService: 'CONFIG_SERVICE',
23
- SecretService: 'SECRET_SERVICE'
24
- } as const;
25
- export type LookupMode = typeof LookupMode[keyof typeof LookupMode];
26
-
20
+ Value: 'VALUE',
21
+ ConfigService: 'CONFIG_SERVICE',
22
+ SecretService: 'SECRET_SERVICE',
23
+ } as const
24
+ export type LookupMode = (typeof LookupMode)[keyof typeof LookupMode]
27
25
 
28
26
  export function instanceOfLookupMode(value: any): boolean {
29
- for (const key in LookupMode) {
30
- if (Object.prototype.hasOwnProperty.call(LookupMode, key)) {
31
- if (LookupMode[key as keyof typeof LookupMode] === value) {
32
- return true;
33
- }
34
- }
27
+ for (const key in LookupMode) {
28
+ if (Object.prototype.hasOwnProperty.call(LookupMode, key)) {
29
+ if (LookupMode[key as keyof typeof LookupMode] === value) {
30
+ return true
31
+ }
35
32
  }
36
- return false;
33
+ }
34
+ return false
37
35
  }
38
36
 
39
37
  export function LookupModeFromJSON(json: any): LookupMode {
40
- return LookupModeFromJSONTyped(json, false);
38
+ return LookupModeFromJSONTyped(json, false)
41
39
  }
42
40
 
43
41
  export function LookupModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LookupMode {
44
- return json as LookupMode;
42
+ return json as LookupMode
45
43
  }
46
44
 
47
45
  export function LookupModeToJSON(value?: LookupMode | null): any {
48
- return value as any;
46
+ return value as any
49
47
  }
50
48
 
51
49
  export function LookupModeToJSONTyped(value: any, ignoreDiscriminator: boolean): LookupMode {
52
- return value as LookupMode;
50
+ return value as LookupMode
53
51
  }
54
-