@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
|
@@ -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 instance with detailed configuration.
|
|
@@ -29,64 +23,63 @@ import {
|
|
|
29
23
|
* @interface KeyResolver
|
|
30
24
|
*/
|
|
31
25
|
export interface KeyResolver {
|
|
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 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
|
-
|
|
57
|
-
|
|
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
|
-
|
|
55
|
+
return KeyResolverFromJSONTyped(json, false)
|
|
62
56
|
}
|
|
63
57
|
|
|
64
58
|
export function KeyResolverFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyResolver {
|
|
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 KeyResolverToJSON(json: any): KeyResolver {
|
|
77
|
-
|
|
71
|
+
return KeyResolverToJSONTyped(json, false)
|
|
78
72
|
}
|
|
79
73
|
|
|
80
74
|
export function KeyResolverToJSONTyped(value?: KeyResolver | 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/KeyType.ts
CHANGED
|
@@ -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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
33
|
+
}
|
|
34
|
+
return false
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
export function KeyTypeFromJSON(json: any): KeyType {
|
|
40
|
-
|
|
38
|
+
return KeyTypeFromJSONTyped(json, false)
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
export function KeyTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyType {
|
|
44
|
-
|
|
42
|
+
return json as KeyType
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
export function KeyTypeToJSON(value?: KeyType | null): any {
|
|
48
|
-
|
|
46
|
+
return value as any
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
export function KeyTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): KeyType {
|
|
52
|
-
|
|
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
|
-
|
|
22
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
32
|
+
}
|
|
33
|
+
return false
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
export function KeyVisibilityFromJSON(json: any): KeyVisibility {
|
|
39
|
-
|
|
37
|
+
return KeyVisibilityFromJSONTyped(json, false)
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
export function KeyVisibilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyVisibility {
|
|
43
|
-
|
|
41
|
+
return json as KeyVisibility
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
export function KeyVisibilityToJSON(value?: KeyVisibility | null): any {
|
|
47
|
-
|
|
45
|
+
return value as any
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
export function KeyVisibilityToJSONTyped(value: any, ignoreDiscriminator: boolean): KeyVisibility {
|
|
51
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
40
|
-
|
|
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
|
-
|
|
41
|
+
return ListKeyProvidersResponseFromJSONTyped(json, false)
|
|
45
42
|
}
|
|
46
43
|
|
|
47
44
|
export function ListKeyProvidersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListKeyProvidersResponse {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
54
|
+
return ListKeyProvidersResponseToJSONTyped(json, false)
|
|
59
55
|
}
|
|
60
56
|
|
|
61
57
|
export function ListKeyProvidersResponseToJSONTyped(value?: ListKeyProvidersResponse | 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
|
+
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
40
|
-
|
|
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
|
-
|
|
41
|
+
return ListKeysResponseFromJSONTyped(json, false)
|
|
45
42
|
}
|
|
46
43
|
|
|
47
44
|
export function ListKeysResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListKeysResponse {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
54
|
+
return ListKeysResponseToJSONTyped(json, false)
|
|
59
55
|
}
|
|
60
56
|
|
|
61
57
|
export function ListKeysResponseToJSONTyped(value?: ListKeysResponse | 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
|
+
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
40
|
-
|
|
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
|
-
|
|
41
|
+
return ListResolversResponseFromJSONTyped(json, false)
|
|
45
42
|
}
|
|
46
43
|
|
|
47
44
|
export function ListResolversResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResolversResponse {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
54
|
+
return ListResolversResponseToJSONTyped(json, false)
|
|
59
55
|
}
|
|
60
56
|
|
|
61
57
|
export function ListResolversResponseToJSONTyped(value?: ListResolversResponse | 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
|
+
resolvers: (value['resolvers'] as Array<any>).map(ResolverToJSON),
|
|
64
|
+
}
|
|
70
65
|
}
|
|
71
|
-
|
package/src/models/LookupMode.ts
CHANGED
|
@@ -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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
33
|
+
}
|
|
34
|
+
return false
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
export function LookupModeFromJSON(json: any): LookupMode {
|
|
40
|
-
|
|
38
|
+
return LookupModeFromJSONTyped(json, false)
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
export function LookupModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LookupMode {
|
|
44
|
-
|
|
42
|
+
return json as LookupMode
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
export function LookupModeToJSON(value?: LookupMode | null): any {
|
|
48
|
-
|
|
46
|
+
return value as any
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
export function LookupModeToJSONTyped(value: any, ignoreDiscriminator: boolean): LookupMode {
|
|
52
|
-
|
|
50
|
+
return value as LookupMode
|
|
53
51
|
}
|
|
54
|
-
|