@sphereon/ssi-sdk.kms-rest-client 0.34.1-feature.IDK.11.48
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/LICENSE +201 -0
- package/dist/index.cjs +2083 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1468 -0
- package/dist/index.d.ts +1468 -0
- package/dist/index.js +2063 -0
- package/dist/index.js.map +1 -0
- package/package.json +60 -0
- package/plugin.schema.json +1123 -0
- package/src/agent/KmsRestClient.ts +468 -0
- package/src/index.ts +7 -0
- package/src/models/AwsAssumeRoleCredentials.ts +98 -0
- package/src/models/AwsClientConfiguration.ts +72 -0
- package/src/models/AwsKmsSetting.ts +126 -0
- package/src/models/AwsStaticCredentials.ts +98 -0
- package/src/models/AwsWebIdentityTokenCredentials.ts +99 -0
- package/src/models/AzureClientSecretCredentialOpts.ts +90 -0
- package/src/models/AzureCredentialOpts.ts +70 -0
- package/src/models/AzureKeyVaultSetting.ts +112 -0
- package/src/models/CoseKey.ts +145 -0
- package/src/models/CoseKeyPair.ts +79 -0
- package/src/models/CoseKeyType.ts +55 -0
- package/src/models/CreateKeyProvider.ts +115 -0
- package/src/models/CreateRawSignature.ts +80 -0
- package/src/models/CreateRawSignatureResponse.ts +65 -0
- package/src/models/CreateSimpleSignature.ts +100 -0
- package/src/models/CryptoAlg.ts +55 -0
- package/src/models/Curve.ts +59 -0
- package/src/models/DigestAlg.ts +58 -0
- package/src/models/ErrorResponse.ts +82 -0
- package/src/models/GenerateKey.ts +106 -0
- package/src/models/GenerateKeyGlobal.ts +114 -0
- package/src/models/GenerateKeyResponse.ts +71 -0
- package/src/models/GetKeyResponse.ts +71 -0
- package/src/models/IdentifierMethod.ts +56 -0
- package/src/models/JoseKeyPair.ts +79 -0
- package/src/models/Jwk.ts +248 -0
- package/src/models/JwkKeyType.ts +55 -0
- package/src/models/JwkUse.ts +53 -0
- package/src/models/KeyEncoding.ts +53 -0
- package/src/models/KeyInfo.ts +164 -0
- package/src/models/KeyOperations.ts +59 -0
- package/src/models/KeyProvider.ts +82 -0
- package/src/models/KeyProviderResponse.ts +82 -0
- package/src/models/KeyProviderType.ts +54 -0
- package/src/models/KeyResolver.ts +92 -0
- package/src/models/KeyType.ts +54 -0
- package/src/models/KeyVisibility.ts +53 -0
- package/src/models/ListKeyProvidersResponse.ts +71 -0
- package/src/models/ListKeysResponse.ts +71 -0
- package/src/models/ListResolversResponse.ts +71 -0
- package/src/models/LookupMode.ts +54 -0
- package/src/models/ManagedKeyInfo.ts +167 -0
- package/src/models/ManagedKeyPair.ts +111 -0
- package/src/models/MaskGenFunction.ts +52 -0
- package/src/models/ProviderCapabilities.ts +122 -0
- package/src/models/ResolvePublicKey.ts +102 -0
- package/src/models/ResolvedKeyInfo.ts +165 -0
- package/src/models/Resolver.ts +92 -0
- package/src/models/SignInput.ts +92 -0
- package/src/models/SignOutput.ts +79 -0
- package/src/models/Signature.ts +103 -0
- package/src/models/SignatureAlgorithm.ts +63 -0
- package/src/models/StoreKey.ts +79 -0
- package/src/models/StoreKeyResponse.ts +71 -0
- package/src/models/UpdateKeyProvider.ts +99 -0
- package/src/models/VerifyRawSignature.ts +89 -0
- package/src/models/VerifyRawSignatureResponse.ts +65 -0
- package/src/models/VerifySimpleSignature.ts +85 -0
- package/src/models/index.ts +60 -0
- package/src/types/IKmsRestClient.ts +133 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KMS REST Server API
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: support@sphereon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type { KeyProviderType } from './KeyProviderType';
|
|
16
|
+
import {
|
|
17
|
+
KeyProviderTypeFromJSON,
|
|
18
|
+
KeyProviderTypeToJSON,
|
|
19
|
+
} from './KeyProviderType';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Response body containing the details of a Key Provider instance.
|
|
23
|
+
* @export
|
|
24
|
+
* @interface KeyProvider
|
|
25
|
+
*/
|
|
26
|
+
export interface KeyProvider {
|
|
27
|
+
/**
|
|
28
|
+
* The unique identifier assigned to the Key Provider instance upon creation.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof KeyProvider
|
|
31
|
+
*/
|
|
32
|
+
providerId: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {KeyProviderType}
|
|
36
|
+
* @memberof KeyProvider
|
|
37
|
+
*/
|
|
38
|
+
type: KeyProviderType;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the KeyProvider interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfKeyProvider(value: object): value is KeyProvider {
|
|
47
|
+
if (!('providerId' in value) || value['providerId'] === undefined) return false;
|
|
48
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function KeyProviderFromJSON(json: any): KeyProvider {
|
|
53
|
+
return KeyProviderFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function KeyProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyProvider {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'providerId': json['providerId'],
|
|
63
|
+
'type': KeyProviderTypeFromJSON(json['type']),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function KeyProviderToJSON(json: any): KeyProvider {
|
|
68
|
+
return KeyProviderToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function KeyProviderToJSONTyped(value?: KeyProvider | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'providerId': value['providerId'],
|
|
79
|
+
'type': KeyProviderTypeToJSON(value['type']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KMS REST Server API
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: support@sphereon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type { KeyProviderType } from './KeyProviderType';
|
|
16
|
+
import {
|
|
17
|
+
KeyProviderTypeFromJSON,
|
|
18
|
+
KeyProviderTypeToJSON,
|
|
19
|
+
} from './KeyProviderType';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Response body containing the details of a Key Provider instance.
|
|
23
|
+
* @export
|
|
24
|
+
* @interface KeyProviderResponse
|
|
25
|
+
*/
|
|
26
|
+
export interface KeyProviderResponse {
|
|
27
|
+
/**
|
|
28
|
+
* The unique identifier assigned to the Key Provider instance upon creation.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof KeyProviderResponse
|
|
31
|
+
*/
|
|
32
|
+
providerId: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {KeyProviderType}
|
|
36
|
+
* @memberof KeyProviderResponse
|
|
37
|
+
*/
|
|
38
|
+
type: KeyProviderType;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the KeyProviderResponse interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfKeyProviderResponse(value: object): value is KeyProviderResponse {
|
|
47
|
+
if (!('providerId' in value) || value['providerId'] === undefined) return false;
|
|
48
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function KeyProviderResponseFromJSON(json: any): KeyProviderResponse {
|
|
53
|
+
return KeyProviderResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function KeyProviderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyProviderResponse {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'providerId': json['providerId'],
|
|
63
|
+
'type': KeyProviderTypeFromJSON(json['type']),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function KeyProviderResponseToJSON(json: any): KeyProviderResponse {
|
|
68
|
+
return KeyProviderResponseToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function KeyProviderResponseToJSONTyped(value?: KeyProviderResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'providerId': value['providerId'],
|
|
79
|
+
'type': KeyProviderTypeToJSON(value['type']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KMS REST Server API
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: support@sphereon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The type of Key Provider. Determines the required configuration settings. - AZURE_KEYVAULT: Microsoft Azure Key Vault or Managed HSM. - AWS_KMS: Amazon Web Services Key Management Service.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const KeyProviderType = {
|
|
21
|
+
Software: 'SOFTWARE',
|
|
22
|
+
AzureKeyvault: 'AZURE_KEYVAULT',
|
|
23
|
+
AwsKms: 'AWS_KMS'
|
|
24
|
+
} as const;
|
|
25
|
+
export type KeyProviderType = typeof KeyProviderType[keyof typeof KeyProviderType];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfKeyProviderType(value: any): boolean {
|
|
29
|
+
for (const key in KeyProviderType) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(KeyProviderType, key)) {
|
|
31
|
+
if (KeyProviderType[key as keyof typeof KeyProviderType] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function KeyProviderTypeFromJSON(json: any): KeyProviderType {
|
|
40
|
+
return KeyProviderTypeFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function KeyProviderTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyProviderType {
|
|
44
|
+
return json as KeyProviderType;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function KeyProviderTypeToJSON(value?: KeyProviderType | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function KeyProviderTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): KeyProviderType {
|
|
52
|
+
return value as KeyProviderType;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KMS REST Server API
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: support@sphereon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
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';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Represents a key resolver instance with detailed configuration.
|
|
28
|
+
* @export
|
|
29
|
+
* @interface KeyResolver
|
|
30
|
+
*/
|
|
31
|
+
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>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the KeyResolver interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfKeyResolver(value: object): value is KeyResolver {
|
|
56
|
+
if (!('resolverId' in value) || value['resolverId'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function KeyResolverFromJSON(json: any): KeyResolver {
|
|
61
|
+
return KeyResolverFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
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
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function KeyResolverToJSON(json: any): KeyResolver {
|
|
77
|
+
return KeyResolverToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function KeyResolverToJSONTyped(value?: KeyResolver | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
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
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KMS REST Server API
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: support@sphereon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Cryptographic key type identifier.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
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
|
+
|
|
27
|
+
|
|
28
|
+
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
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function KeyTypeFromJSON(json: any): KeyType {
|
|
40
|
+
return KeyTypeFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function KeyTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyType {
|
|
44
|
+
return json as KeyType;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function KeyTypeToJSON(value?: KeyType | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function KeyTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): KeyType {
|
|
52
|
+
return value as KeyType;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KMS REST Server API
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: support@sphereon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Indicates the visibility status of a cryptographic key.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const KeyVisibility = {
|
|
21
|
+
Public: 'PUBLIC',
|
|
22
|
+
Private: 'PRIVATE'
|
|
23
|
+
} as const;
|
|
24
|
+
export type KeyVisibility = typeof KeyVisibility[keyof typeof KeyVisibility];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
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
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function KeyVisibilityFromJSON(json: any): KeyVisibility {
|
|
39
|
+
return KeyVisibilityFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function KeyVisibilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyVisibility {
|
|
43
|
+
return json as KeyVisibility;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function KeyVisibilityToJSON(value?: KeyVisibility | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function KeyVisibilityToJSONTyped(value: any, ignoreDiscriminator: boolean): KeyVisibility {
|
|
51
|
+
return value as KeyVisibility;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KMS REST Server API
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: support@sphereon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type { KeyProvider } from './KeyProvider';
|
|
16
|
+
import {
|
|
17
|
+
KeyProviderFromJSON,
|
|
18
|
+
KeyProviderToJSON,
|
|
19
|
+
} from './KeyProvider';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Response body containing the details of a Key Provider instance.
|
|
23
|
+
* @export
|
|
24
|
+
* @interface ListKeyProvidersResponse
|
|
25
|
+
*/
|
|
26
|
+
export interface ListKeyProvidersResponse {
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {Array<KeyProvider>}
|
|
30
|
+
* @memberof ListKeyProvidersResponse
|
|
31
|
+
*/
|
|
32
|
+
providers: Array<KeyProvider>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the ListKeyProvidersResponse interface.
|
|
37
|
+
*/
|
|
38
|
+
export function instanceOfListKeyProvidersResponse(value: object): value is ListKeyProvidersResponse {
|
|
39
|
+
if (!('providers' in value) || value['providers'] === undefined) return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ListKeyProvidersResponseFromJSON(json: any): ListKeyProvidersResponse {
|
|
44
|
+
return ListKeyProvidersResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
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
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ListKeyProvidersResponseToJSON(json: any): ListKeyProvidersResponse {
|
|
58
|
+
return ListKeyProvidersResponseToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ListKeyProvidersResponseToJSONTyped(value?: ListKeyProvidersResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'providers': ((value['providers'] as Array<any>).map(KeyProviderToJSON)),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KMS REST Server API
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: support@sphereon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type { ManagedKeyInfo } from './ManagedKeyInfo';
|
|
16
|
+
import {
|
|
17
|
+
ManagedKeyInfoFromJSON,
|
|
18
|
+
ManagedKeyInfoToJSON,
|
|
19
|
+
} from './ManagedKeyInfo';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Response body containing all the managed keys.
|
|
23
|
+
* @export
|
|
24
|
+
* @interface ListKeysResponse
|
|
25
|
+
*/
|
|
26
|
+
export interface ListKeysResponse {
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {Array<ManagedKeyInfo>}
|
|
30
|
+
* @memberof ListKeysResponse
|
|
31
|
+
*/
|
|
32
|
+
keyInfos: Array<ManagedKeyInfo>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the ListKeysResponse interface.
|
|
37
|
+
*/
|
|
38
|
+
export function instanceOfListKeysResponse(value: object): value is ListKeysResponse {
|
|
39
|
+
if (!('keyInfos' in value) || value['keyInfos'] === undefined) return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ListKeysResponseFromJSON(json: any): ListKeysResponse {
|
|
44
|
+
return ListKeysResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
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
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ListKeysResponseToJSON(json: any): ListKeysResponse {
|
|
58
|
+
return ListKeysResponseToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ListKeysResponseToJSONTyped(value?: ListKeysResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'keyInfos': ((value['keyInfos'] as Array<any>).map(ManagedKeyInfoToJSON)),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KMS REST Server API
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: support@sphereon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type { Resolver } from './Resolver';
|
|
16
|
+
import {
|
|
17
|
+
ResolverFromJSON,
|
|
18
|
+
ResolverToJSON,
|
|
19
|
+
} from './Resolver';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Response body containing all the resolvers.
|
|
23
|
+
* @export
|
|
24
|
+
* @interface ListResolversResponse
|
|
25
|
+
*/
|
|
26
|
+
export interface ListResolversResponse {
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {Array<Resolver>}
|
|
30
|
+
* @memberof ListResolversResponse
|
|
31
|
+
*/
|
|
32
|
+
resolvers: Array<Resolver>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the ListResolversResponse interface.
|
|
37
|
+
*/
|
|
38
|
+
export function instanceOfListResolversResponse(value: object): value is ListResolversResponse {
|
|
39
|
+
if (!('resolvers' in value) || value['resolvers'] === undefined) return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ListResolversResponseFromJSON(json: any): ListResolversResponse {
|
|
44
|
+
return ListResolversResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
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
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ListResolversResponseToJSON(json: any): ListResolversResponse {
|
|
58
|
+
return ListResolversResponseToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ListResolversResponseToJSONTyped(value?: ListResolversResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'resolvers': ((value['resolvers'] as Array<any>).map(ResolverToJSON)),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KMS REST Server API
|
|
5
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: support@sphereon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 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
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
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
|
+
|
|
27
|
+
|
|
28
|
+
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
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function LookupModeFromJSON(json: any): LookupMode {
|
|
40
|
+
return LookupModeFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function LookupModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LookupMode {
|
|
44
|
+
return json as LookupMode;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function LookupModeToJSON(value?: LookupMode | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function LookupModeToJSONTyped(value: any, ignoreDiscriminator: boolean): LookupMode {
|
|
52
|
+
return value as LookupMode;
|
|
53
|
+
}
|
|
54
|
+
|