Commit iniziale

This commit is contained in:
Paolo A
2025-02-18 22:59:07 +00:00
commit 4bbf35cefb
6879 changed files with 623784 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
export * from "./models/index.js";
export { KeyVaultClient } from "./keyVaultClient.js";
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}

View File

@@ -0,0 +1,10 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export * from "./models/index.js";
export { KeyVaultClient } from "./keyVaultClient.js";
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./models/index.js\";\nexport { KeyVaultClient } from \"./keyVaultClient.js\";\n"]}

View File

@@ -0,0 +1,307 @@
import * as coreHttpCompat from "@azure/core-http-compat";
import { ApiVersion75, KeyVaultClientOptionalParams, JsonWebKeyType, CreateKeyOptionalParams, CreateKeyResponse, RotateKeyOptionalParams, RotateKeyResponse, JsonWebKey, ImportKeyOptionalParams, ImportKeyResponse, DeleteKeyOptionalParams, DeleteKeyResponse, UpdateKeyOptionalParams, UpdateKeyResponse, GetKeyOptionalParams, GetKeyResponse, GetKeyVersionsOptionalParams, GetKeyVersionsResponse, GetKeysOptionalParams, GetKeysResponse, BackupKeyOptionalParams, BackupKeyResponse, RestoreKeyOptionalParams, RestoreKeyResponse, JsonWebKeyEncryptionAlgorithm, EncryptOptionalParams, EncryptResponse, DecryptOptionalParams, DecryptResponse, JsonWebKeySignatureAlgorithm, SignOptionalParams, SignResponse, VerifyOptionalParams, VerifyResponse, WrapKeyOptionalParams, WrapKeyResponse, UnwrapKeyOptionalParams, UnwrapKeyResponse, ReleaseOptionalParams, ReleaseResponse, GetDeletedKeysOptionalParams, GetDeletedKeysResponse, GetDeletedKeyOptionalParams, GetDeletedKeyResponse, PurgeDeletedKeyOptionalParams, RecoverDeletedKeyOptionalParams, RecoverDeletedKeyResponse, GetKeyRotationPolicyOptionalParams, GetKeyRotationPolicyResponse, KeyRotationPolicy, UpdateKeyRotationPolicyOptionalParams, UpdateKeyRotationPolicyResponse, GetRandomBytesOptionalParams, GetRandomBytesResponse, GetKeyVersionsNextOptionalParams, GetKeyVersionsNextResponse, GetKeysNextOptionalParams, GetKeysNextResponse, GetDeletedKeysNextOptionalParams, GetDeletedKeysNextResponse } from "./models/index.js";
export declare class KeyVaultClient extends coreHttpCompat.ExtendedServiceClient {
apiVersion: ApiVersion75;
/**
* Initializes a new instance of the KeyVaultClient class.
* @param apiVersion Api Version
* @param options The parameter options
*/
constructor(apiVersion: ApiVersion75, options?: KeyVaultClientOptionalParams);
/**
* The create key operation can be used to create any key type in Azure Key Vault. If the named key
* already exists, Azure Key Vault creates a new version of the key. It requires the keys/create
* permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name for the new key. The system will generate the version name for the new key.
* The value you provide may be copied globally for the purpose of running the service. The value
* provided should not include personally identifiable or sensitive information.
* @param kty The type of key to create. For valid values, see JsonWebKeyType.
* @param options The options parameters.
*/
createKey(vaultBaseUrl: string, keyName: string, kty: JsonWebKeyType, options?: CreateKeyOptionalParams): Promise<CreateKeyResponse>;
/**
* The operation will rotate the key based on the key policy. It requires the keys/rotate permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of key to be rotated. The system will generate a new version in the
* specified key.
* @param options The options parameters.
*/
rotateKey(vaultBaseUrl: string, keyName: string, options?: RotateKeyOptionalParams): Promise<RotateKeyResponse>;
/**
* The import key operation may be used to import any key type into an Azure Key Vault. If the named
* key already exists, Azure Key Vault creates a new version of the key. This operation requires the
* keys/import permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName Name for the imported key. The value you provide may be copied globally for the
* purpose of running the service. The value provided should not include personally identifiable or
* sensitive information.
* @param key The Json web key
* @param options The options parameters.
*/
importKey(vaultBaseUrl: string, keyName: string, key: JsonWebKey, options?: ImportKeyOptionalParams): Promise<ImportKeyResponse>;
/**
* The delete key operation cannot be used to remove individual versions of a key. This operation
* removes the cryptographic material associated with the key, which means the key is not usable for
* Sign/Verify, Wrap/Unwrap or Encrypt/Decrypt operations. This operation requires the keys/delete
* permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of the key to delete.
* @param options The options parameters.
*/
deleteKey(vaultBaseUrl: string, keyName: string, options?: DeleteKeyOptionalParams): Promise<DeleteKeyResponse>;
/**
* In order to perform this operation, the key must already exist in the Key Vault. Note: The
* cryptographic material of a key itself cannot be changed. This operation requires the keys/update
* permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of key to update.
* @param keyVersion The version of the key to update.
* @param options The options parameters.
*/
updateKey(vaultBaseUrl: string, keyName: string, keyVersion: string, options?: UpdateKeyOptionalParams): Promise<UpdateKeyResponse>;
/**
* The get key operation is applicable to all key types. If the requested key is symmetric, then no key
* material is released in the response. This operation requires the keys/get permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of the key to get.
* @param keyVersion Adding the version parameter retrieves a specific version of a key. This URI
* fragment is optional. If not specified, the latest version of the key is returned.
* @param options The options parameters.
*/
getKey(vaultBaseUrl: string, keyName: string, keyVersion: string, options?: GetKeyOptionalParams): Promise<GetKeyResponse>;
/**
* The full key identifier, attributes, and tags are provided in the response. This operation requires
* the keys/list permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of the key.
* @param options The options parameters.
*/
getKeyVersions(vaultBaseUrl: string, keyName: string, options?: GetKeyVersionsOptionalParams): Promise<GetKeyVersionsResponse>;
/**
* Retrieves a list of the keys in the Key Vault as JSON Web Key structures that contain the public
* part of a stored key. The LIST operation is applicable to all key types, however only the base key
* identifier, attributes, and tags are provided in the response. Individual versions of a key are not
* listed in the response. This operation requires the keys/list permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param options The options parameters.
*/
getKeys(vaultBaseUrl: string, options?: GetKeysOptionalParams): Promise<GetKeysResponse>;
/**
* The Key Backup operation exports a key from Azure Key Vault in a protected form. Note that this
* operation does NOT return key material in a form that can be used outside the Azure Key Vault
* system, the returned key material is either protected to a Azure Key Vault HSM or to Azure Key Vault
* itself. The intent of this operation is to allow a client to GENERATE a key in one Azure Key Vault
* instance, BACKUP the key, and then RESTORE it into another Azure Key Vault instance. The BACKUP
* operation may be used to export, in protected form, any key type from Azure Key Vault. Individual
* versions of a key cannot be backed up. BACKUP / RESTORE can be performed within geographical
* boundaries only; meaning that a BACKUP from one geographical area cannot be restored to another
* geographical area. For example, a backup from the US geographical area cannot be restored in an EU
* geographical area. This operation requires the key/backup permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of the key.
* @param options The options parameters.
*/
backupKey(vaultBaseUrl: string, keyName: string, options?: BackupKeyOptionalParams): Promise<BackupKeyResponse>;
/**
* Imports a previously backed up key into Azure Key Vault, restoring the key, its key identifier,
* attributes and access control policies. The RESTORE operation may be used to import a previously
* backed up key. Individual versions of a key cannot be restored. The key is restored in its entirety
* with the same key name as it had when it was backed up. If the key name is not available in the
* target Key Vault, the RESTORE operation will be rejected. While the key name is retained during
* restore, the final key identifier will change if the key is restored to a different vault. Restore
* will restore all versions and preserve version identifiers. The RESTORE operation is subject to
* security constraints: The target Key Vault must be owned by the same Microsoft Azure Subscription as
* the source Key Vault The user must have RESTORE permission in the target Key Vault. This operation
* requires the keys/restore permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyBundleBackup The backup blob associated with a key bundle.
* @param options The options parameters.
*/
restoreKey(vaultBaseUrl: string, keyBundleBackup: Uint8Array, options?: RestoreKeyOptionalParams): Promise<RestoreKeyResponse>;
/**
* The ENCRYPT operation encrypts an arbitrary sequence of bytes using an encryption key that is stored
* in Azure Key Vault. Note that the ENCRYPT operation only supports a single block of data, the size
* of which is dependent on the target key and the encryption algorithm to be used. The ENCRYPT
* operation is only strictly necessary for symmetric keys stored in Azure Key Vault since protection
* with an asymmetric key can be performed using public portion of the key. This operation is supported
* for asymmetric keys as a convenience for callers that have a key-reference but do not have access to
* the public key material. This operation requires the keys/encrypt permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of the key.
* @param keyVersion The version of the key.
* @param algorithm algorithm identifier
* @param value
* @param options The options parameters.
*/
encrypt(vaultBaseUrl: string, keyName: string, keyVersion: string, algorithm: JsonWebKeyEncryptionAlgorithm, value: Uint8Array, options?: EncryptOptionalParams): Promise<EncryptResponse>;
/**
* The DECRYPT operation decrypts a well-formed block of ciphertext using the target encryption key and
* specified algorithm. This operation is the reverse of the ENCRYPT operation; only a single block of
* data may be decrypted, the size of this block is dependent on the target key and the algorithm to be
* used. The DECRYPT operation applies to asymmetric and symmetric keys stored in Azure Key Vault since
* it uses the private portion of the key. This operation requires the keys/decrypt permission.
* Microsoft recommends not to use CBC algorithms for decryption without first ensuring the integrity
* of the ciphertext using an HMAC, for example. See
* https://docs.microsoft.com/dotnet/standard/security/vulnerabilities-cbc-mode for more information.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of the key.
* @param keyVersion The version of the key.
* @param algorithm algorithm identifier
* @param value
* @param options The options parameters.
*/
decrypt(vaultBaseUrl: string, keyName: string, keyVersion: string, algorithm: JsonWebKeyEncryptionAlgorithm, value: Uint8Array, options?: DecryptOptionalParams): Promise<DecryptResponse>;
/**
* The SIGN operation is applicable to asymmetric and symmetric keys stored in Azure Key Vault since
* this operation uses the private portion of the key. This operation requires the keys/sign
* permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of the key.
* @param keyVersion The version of the key.
* @param algorithm The signing/verification algorithm identifier. For more information on possible
* algorithm types, see JsonWebKeySignatureAlgorithm.
* @param value
* @param options The options parameters.
*/
sign(vaultBaseUrl: string, keyName: string, keyVersion: string, algorithm: JsonWebKeySignatureAlgorithm, value: Uint8Array, options?: SignOptionalParams): Promise<SignResponse>;
/**
* The VERIFY operation is applicable to symmetric keys stored in Azure Key Vault. VERIFY is not
* strictly necessary for asymmetric keys stored in Azure Key Vault since signature verification can be
* performed using the public portion of the key but this operation is supported as a convenience for
* callers that only have a key-reference and not the public portion of the key. This operation
* requires the keys/verify permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of the key.
* @param keyVersion The version of the key.
* @param algorithm The signing/verification algorithm. For more information on possible algorithm
* types, see JsonWebKeySignatureAlgorithm.
* @param digest The digest used for signing.
* @param signature The signature to be verified.
* @param options The options parameters.
*/
verify(vaultBaseUrl: string, keyName: string, keyVersion: string, algorithm: JsonWebKeySignatureAlgorithm, digest: Uint8Array, signature: Uint8Array, options?: VerifyOptionalParams): Promise<VerifyResponse>;
/**
* The WRAP operation supports encryption of a symmetric key using a key encryption key that has
* previously been stored in an Azure Key Vault. The WRAP operation is only strictly necessary for
* symmetric keys stored in Azure Key Vault since protection with an asymmetric key can be performed
* using the public portion of the key. This operation is supported for asymmetric keys as a
* convenience for callers that have a key-reference but do not have access to the public key material.
* This operation requires the keys/wrapKey permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of the key.
* @param keyVersion The version of the key.
* @param algorithm algorithm identifier
* @param value
* @param options The options parameters.
*/
wrapKey(vaultBaseUrl: string, keyName: string, keyVersion: string, algorithm: JsonWebKeyEncryptionAlgorithm, value: Uint8Array, options?: WrapKeyOptionalParams): Promise<WrapKeyResponse>;
/**
* The UNWRAP operation supports decryption of a symmetric key using the target key encryption key.
* This operation is the reverse of the WRAP operation. The UNWRAP operation applies to asymmetric and
* symmetric keys stored in Azure Key Vault since it uses the private portion of the key. This
* operation requires the keys/unwrapKey permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of the key.
* @param keyVersion The version of the key.
* @param algorithm algorithm identifier
* @param value
* @param options The options parameters.
*/
unwrapKey(vaultBaseUrl: string, keyName: string, keyVersion: string, algorithm: JsonWebKeyEncryptionAlgorithm, value: Uint8Array, options?: UnwrapKeyOptionalParams): Promise<UnwrapKeyResponse>;
/**
* The release key operation is applicable to all key types. The target key must be marked exportable.
* This operation requires the keys/release permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of the key to get.
* @param keyVersion Adding the version parameter retrieves a specific version of a key.
* @param targetAttestationToken The attestation assertion for the target of the key release.
* @param options The options parameters.
*/
release(vaultBaseUrl: string, keyName: string, keyVersion: string, targetAttestationToken: string, options?: ReleaseOptionalParams): Promise<ReleaseResponse>;
/**
* Retrieves a list of the keys in the Key Vault as JSON Web Key structures that contain the public
* part of a deleted key. This operation includes deletion-specific information. The Get Deleted Keys
* operation is applicable for vaults enabled for soft-delete. While the operation can be invoked on
* any vault, it will return an error if invoked on a non soft-delete enabled vault. This operation
* requires the keys/list permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param options The options parameters.
*/
getDeletedKeys(vaultBaseUrl: string, options?: GetDeletedKeysOptionalParams): Promise<GetDeletedKeysResponse>;
/**
* The Get Deleted Key operation is applicable for soft-delete enabled vaults. While the operation can
* be invoked on any vault, it will return an error if invoked on a non soft-delete enabled vault. This
* operation requires the keys/get permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of the key.
* @param options The options parameters.
*/
getDeletedKey(vaultBaseUrl: string, keyName: string, options?: GetDeletedKeyOptionalParams): Promise<GetDeletedKeyResponse>;
/**
* The Purge Deleted Key operation is applicable for soft-delete enabled vaults. While the operation
* can be invoked on any vault, it will return an error if invoked on a non soft-delete enabled vault.
* This operation requires the keys/purge permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of the key
* @param options The options parameters.
*/
purgeDeletedKey(vaultBaseUrl: string, keyName: string, options?: PurgeDeletedKeyOptionalParams): Promise<void>;
/**
* The Recover Deleted Key operation is applicable for deleted keys in soft-delete enabled vaults. It
* recovers the deleted key back to its latest version under /keys. An attempt to recover an
* non-deleted key will return an error. Consider this the inverse of the delete operation on
* soft-delete enabled vaults. This operation requires the keys/recover permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of the deleted key.
* @param options The options parameters.
*/
recoverDeletedKey(vaultBaseUrl: string, keyName: string, options?: RecoverDeletedKeyOptionalParams): Promise<RecoverDeletedKeyResponse>;
/**
* The GetKeyRotationPolicy operation returns the specified key policy resources in the specified key
* vault. This operation requires the keys/get permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of the key in a given key vault.
* @param options The options parameters.
*/
getKeyRotationPolicy(vaultBaseUrl: string, keyName: string, options?: GetKeyRotationPolicyOptionalParams): Promise<GetKeyRotationPolicyResponse>;
/**
* Set specified members in the key policy. Leave others as undefined. This operation requires the
* keys/update permission.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of the key in the given vault.
* @param keyRotationPolicy The policy for the key.
* @param options The options parameters.
*/
updateKeyRotationPolicy(vaultBaseUrl: string, keyName: string, keyRotationPolicy: KeyRotationPolicy, options?: UpdateKeyRotationPolicyOptionalParams): Promise<UpdateKeyRotationPolicyResponse>;
/**
* Get the requested number of bytes containing random values from a managed HSM.
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param count The requested number of random bytes.
* @param options The options parameters.
*/
getRandomBytes(vaultBaseUrl: string, count: number, options?: GetRandomBytesOptionalParams): Promise<GetRandomBytesResponse>;
/**
* GetKeyVersionsNext
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param keyName The name of the key.
* @param nextLink The nextLink from the previous successful call to the GetKeyVersions method.
* @param options The options parameters.
*/
getKeyVersionsNext(vaultBaseUrl: string, keyName: string, nextLink: string, options?: GetKeyVersionsNextOptionalParams): Promise<GetKeyVersionsNextResponse>;
/**
* GetKeysNext
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param nextLink The nextLink from the previous successful call to the GetKeys method.
* @param options The options parameters.
*/
getKeysNext(vaultBaseUrl: string, nextLink: string, options?: GetKeysNextOptionalParams): Promise<GetKeysNextResponse>;
/**
* GetDeletedKeysNext
* @param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
* @param nextLink The nextLink from the previous successful call to the GetDeletedKeys method.
* @param options The options parameters.
*/
getDeletedKeysNext(vaultBaseUrl: string, nextLink: string, options?: GetDeletedKeysNextOptionalParams): Promise<GetDeletedKeysNextResponse>;
}
//# sourceMappingURL=keyVaultClient.d.ts.map

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,843 @@
import * as coreClient from "@azure/core-client";
import * as coreHttpCompat from "@azure/core-http-compat";
/** The key create parameters. */
export interface KeyCreateParameters {
/** The type of key to create. For valid values, see JsonWebKeyType. */
kty: JsonWebKeyType;
/** The key size in bits. For example: 2048, 3072, or 4096 for RSA. */
keySize?: number;
/** The public exponent for a RSA key. */
publicExponent?: number;
keyOps?: JsonWebKeyOperation[];
/** The attributes of a key managed by the key vault service. */
keyAttributes?: KeyAttributes;
/** Application specific metadata in the form of key-value pairs. */
tags?: {
[propertyName: string]: string;
};
/** Elliptic curve name. For valid values, see JsonWebKeyCurveName. */
curve?: JsonWebKeyCurveName;
/** The policy rules under which the key can be exported. */
releasePolicy?: KeyReleasePolicy;
}
/** The object attributes managed by the KeyVault service. */
export interface Attributes {
/** Determines whether the object is enabled. */
enabled?: boolean;
/** Not before date in UTC. */
notBefore?: Date;
/** Expiry date in UTC. */
expires?: Date;
/**
* Creation time in UTC.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly created?: Date;
/**
* Last updated time in UTC.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly updated?: Date;
}
/** The policy rules under which the key can be exported. */
export interface KeyReleasePolicy {
/** Content type and version of key release policy */
contentType?: string;
/** Defines the mutability state of the policy. Once marked immutable, this flag cannot be reset and the policy cannot be changed under any circumstances. */
immutable?: boolean;
/** Blob encoding the policy rules under which the key can be released. Blob must be base64 URL encoded. */
encodedPolicy?: Uint8Array;
}
/** A KeyBundle consisting of a WebKey plus its attributes. */
export interface KeyBundle {
/** The Json web key. */
key?: JsonWebKey;
/** The key management attributes. */
attributes?: KeyAttributes;
/** Application specific metadata in the form of key-value pairs. */
tags?: {
[propertyName: string]: string;
};
/**
* True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly managed?: boolean;
/** The policy rules under which the key can be exported. */
releasePolicy?: KeyReleasePolicy;
}
/** As of http://tools.ietf.org/html/draft-ietf-jose-json-web-key-18 */
export interface JsonWebKey {
/** Key identifier. */
kid?: string;
/** JsonWebKey Key Type (kty), as defined in https://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-40. */
kty?: JsonWebKeyType;
keyOps?: string[];
/** RSA modulus. */
n?: Uint8Array;
/** RSA public exponent. */
e?: Uint8Array;
/** RSA private exponent, or the D component of an EC private key. */
d?: Uint8Array;
/** RSA private key parameter. */
dp?: Uint8Array;
/** RSA private key parameter. */
dq?: Uint8Array;
/** RSA private key parameter. */
qi?: Uint8Array;
/** RSA secret prime. */
p?: Uint8Array;
/** RSA secret prime, with p < q. */
q?: Uint8Array;
/** Symmetric key. */
k?: Uint8Array;
/** Protected Key, used with 'Bring Your Own Key'. */
t?: Uint8Array;
/** Elliptic curve name. For valid values, see JsonWebKeyCurveName. */
crv?: JsonWebKeyCurveName;
/** X component of an EC public key. */
x?: Uint8Array;
/** Y component of an EC public key. */
y?: Uint8Array;
}
/** The key vault error exception. */
export interface KeyVaultError {
/**
* The key vault server error.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly error?: ErrorModel;
}
/** The key vault server error. */
export interface ErrorModel {
/**
* The error code.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly code?: string;
/**
* The error message.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly message?: string;
/**
* The key vault server error.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly innerError?: ErrorModel;
}
/** The key import parameters. */
export interface KeyImportParameters {
/** Whether to import as a hardware key (HSM) or software key. */
hsm?: boolean;
/** The Json web key */
key: JsonWebKey;
/** The key management attributes. */
keyAttributes?: KeyAttributes;
/** Application specific metadata in the form of key-value pairs. */
tags?: {
[propertyName: string]: string;
};
/** The policy rules under which the key can be exported. */
releasePolicy?: KeyReleasePolicy;
}
/** The key update parameters. */
export interface KeyUpdateParameters {
/** Json web key operations. For more information on possible key operations, see JsonWebKeyOperation. */
keyOps?: JsonWebKeyOperation[];
/** The attributes of a key managed by the key vault service. */
keyAttributes?: KeyAttributes;
/** Application specific metadata in the form of key-value pairs. */
tags?: {
[propertyName: string]: string;
};
/** The policy rules under which the key can be exported. */
releasePolicy?: KeyReleasePolicy;
}
/** The key list result. */
export interface KeyListResult {
/**
* A response message containing a list of keys in the key vault along with a link to the next page of keys.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly value?: KeyItem[];
/**
* The URL to get the next set of keys.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly nextLink?: string;
}
/** The key item containing key metadata. */
export interface KeyItem {
/** Key identifier. */
kid?: string;
/** The key management attributes. */
attributes?: KeyAttributes;
/** Application specific metadata in the form of key-value pairs. */
tags?: {
[propertyName: string]: string;
};
/**
* True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly managed?: boolean;
}
/** The backup key result, containing the backup blob. */
export interface BackupKeyResult {
/**
* The backup blob containing the backed up key.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly value?: Uint8Array;
}
/** The key restore parameters. */
export interface KeyRestoreParameters {
/** The backup blob associated with a key bundle. */
keyBundleBackup: Uint8Array;
}
/** The key operations parameters. */
export interface KeyOperationsParameters {
/** algorithm identifier */
algorithm: JsonWebKeyEncryptionAlgorithm;
value: Uint8Array;
/** Cryptographically random, non-repeating initialization vector for symmetric algorithms. */
iv?: Uint8Array;
/** Additional data to authenticate but not encrypt/decrypt when using authenticated crypto algorithms. */
additionalAuthenticatedData?: Uint8Array;
/** The tag to authenticate when performing decryption with an authenticated algorithm. */
authenticationTag?: Uint8Array;
}
/** The key operation result. */
export interface KeyOperationResult {
/**
* Key identifier
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly kid?: string;
/** NOTE: This property will not be serialized. It can only be populated by the server. */
readonly result?: Uint8Array;
/** NOTE: This property will not be serialized. It can only be populated by the server. */
readonly iv?: Uint8Array;
/** NOTE: This property will not be serialized. It can only be populated by the server. */
readonly authenticationTag?: Uint8Array;
/** NOTE: This property will not be serialized. It can only be populated by the server. */
readonly additionalAuthenticatedData?: Uint8Array;
}
/** The key operations parameters. */
export interface KeySignParameters {
/** The signing/verification algorithm identifier. For more information on possible algorithm types, see JsonWebKeySignatureAlgorithm. */
algorithm: JsonWebKeySignatureAlgorithm;
value: Uint8Array;
}
/** The key verify parameters. */
export interface KeyVerifyParameters {
/** The signing/verification algorithm. For more information on possible algorithm types, see JsonWebKeySignatureAlgorithm. */
algorithm: JsonWebKeySignatureAlgorithm;
/** The digest used for signing. */
digest: Uint8Array;
/** The signature to be verified. */
signature: Uint8Array;
}
/** The key verify result. */
export interface KeyVerifyResult {
/**
* True if the signature is verified, otherwise false.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly value?: boolean;
}
/** The release key parameters. */
export interface KeyReleaseParameters {
/** The attestation assertion for the target of the key release. */
targetAttestationToken: string;
/** A client provided nonce for freshness. */
nonce?: string;
/** The encryption algorithm to use to protected the exported key material */
enc?: KeyEncryptionAlgorithm;
}
/** The release result, containing the released key. */
export interface KeyReleaseResult {
/**
* A signed object containing the released key.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly value?: string;
}
/** A list of keys that have been deleted in this vault. */
export interface DeletedKeyListResult {
/**
* A response message containing a list of deleted keys in the vault along with a link to the next page of deleted keys
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly value?: DeletedKeyItem[];
/**
* The URL to get the next set of deleted keys.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly nextLink?: string;
}
/** Management policy for a key. */
export interface KeyRotationPolicy {
/**
* The key policy id.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/** Actions that will be performed by Key Vault over the lifetime of a key. For preview, lifetimeActions can only have two items at maximum: one for rotate, one for notify. Notification time would be default to 30 days before expiry and it is not configurable. */
lifetimeActions?: LifetimeActions[];
/** The key rotation policy attributes. */
attributes?: KeyRotationPolicyAttributes;
}
/** Action and its trigger that will be performed by Key Vault over the lifetime of a key. */
export interface LifetimeActions {
/** The condition that will execute the action. */
trigger?: LifetimeActionsTrigger;
/** The action that will be executed. */
action?: LifetimeActionsType;
}
/** A condition to be satisfied for an action to be executed. */
export interface LifetimeActionsTrigger {
/** Time after creation to attempt to rotate. It only applies to rotate. It will be in ISO 8601 duration format. Example: 90 days : "P90D" */
timeAfterCreate?: string;
/** Time before expiry to attempt to rotate or notify. It will be in ISO 8601 duration format. Example: 90 days : "P90D" */
timeBeforeExpiry?: string;
}
/** The action that will be executed. */
export interface LifetimeActionsType {
/** The type of the action. The value should be compared case-insensitively. */
type?: ActionType;
}
/** The key rotation policy attributes. */
export interface KeyRotationPolicyAttributes {
/** The expiryTime will be applied on the new key version. It should be at least 28 days. It will be in ISO 8601 Format. Examples: 90 days: P90D, 3 months: P3M, 48 hours: PT48H, 1 year and 10 days: P1Y10D */
expiryTime?: string;
/**
* The key rotation policy created time in UTC.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly created?: Date;
/**
* The key rotation policy's last updated time in UTC.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly updated?: Date;
}
/** The get random bytes request object. */
export interface GetRandomBytesRequest {
/** The requested number of random bytes. */
count: number;
}
/** The get random bytes response object containing the bytes. */
export interface RandomBytes {
/** The bytes encoded as a base64url string. */
value: Uint8Array;
}
/** Properties of the key pair backing a certificate. */
export interface KeyProperties {
/** Indicates if the private key can be exported. Release policy must be provided when creating the first version of an exportable key. */
exportable?: boolean;
/** The type of key pair to be used for the certificate. */
keyType?: JsonWebKeyType;
/** The key size in bits. For example: 2048, 3072, or 4096 for RSA. */
keySize?: number;
/** Indicates if the same key pair will be used on certificate renewal. */
reuseKey?: boolean;
/** Elliptic curve name. For valid values, see JsonWebKeyCurveName. */
curve?: JsonWebKeyCurveName;
}
/** The export key parameters. */
export interface KeyExportParameters {
/** The export key encryption Json web key. This key MUST be a RSA key that supports encryption. */
wrappingKey?: JsonWebKey;
/** The export key encryption key identifier. This key MUST be a RSA key that supports encryption. */
wrappingKid?: string;
/** The encryption algorithm to use to protected the exported key material */
enc?: KeyEncryptionAlgorithm;
}
/** The attributes of a key managed by the key vault service. */
export type KeyAttributes = Attributes & {
/**
* softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly recoverableDays?: number;
/**
* Reflects the deletion recovery level currently in effect for keys in the current vault. If it contains 'Purgeable' the key can be permanently deleted by a privileged user; otherwise, only the system can purge the key, at the end of the retention interval.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly recoveryLevel?: DeletionRecoveryLevel;
/** Indicates if the private key can be exported. Release policy must be provided when creating the first version of an exportable key. */
exportable?: boolean;
/**
* The underlying HSM Platform.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly hsmPlatform?: string;
};
/** A DeletedKeyBundle consisting of a WebKey plus its Attributes and deletion info */
export type DeletedKeyBundle = KeyBundle & {
/** The url of the recovery object, used to identify and recover the deleted key. */
recoveryId?: string;
/**
* The time when the key is scheduled to be purged, in UTC
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly scheduledPurgeDate?: Date;
/**
* The time when the key was deleted, in UTC
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly deletedDate?: Date;
};
/** The deleted key item containing the deleted key metadata and information about deletion. */
export type DeletedKeyItem = KeyItem & {
/** The url of the recovery object, used to identify and recover the deleted key. */
recoveryId?: string;
/**
* The time when the key is scheduled to be purged, in UTC
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly scheduledPurgeDate?: Date;
/**
* The time when the key was deleted, in UTC
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly deletedDate?: Date;
};
/** Known values of {@link ApiVersion75} that the service accepts. */
export declare enum KnownApiVersion75 {
/** Api Version '7.5' */
Seven5 = "7.5"
}
/**
* Defines values for ApiVersion75. \
* {@link KnownApiVersion75} can be used interchangeably with ApiVersion75,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **7.5**: Api Version '7.5'
*/
export type ApiVersion75 = string;
/** Known values of {@link JsonWebKeyType} that the service accepts. */
export declare enum KnownJsonWebKeyType {
/** Elliptic Curve. */
EC = "EC",
/** Elliptic Curve with a private key which is stored in the HSM. */
ECHSM = "EC-HSM",
/** RSA (https://tools.ietf.org/html/rfc3447) */
RSA = "RSA",
/** RSA with a private key which is stored in the HSM. */
RSAHSM = "RSA-HSM",
/** Octet sequence (used to represent symmetric keys) */
Oct = "oct",
/** Octet sequence (used to represent symmetric keys) which is stored the HSM. */
OctHSM = "oct-HSM"
}
/**
* Defines values for JsonWebKeyType. \
* {@link KnownJsonWebKeyType} can be used interchangeably with JsonWebKeyType,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **EC**: Elliptic Curve. \
* **EC-HSM**: Elliptic Curve with a private key which is stored in the HSM. \
* **RSA**: RSA (https:\/\/tools.ietf.org\/html\/rfc3447) \
* **RSA-HSM**: RSA with a private key which is stored in the HSM. \
* **oct**: Octet sequence (used to represent symmetric keys) \
* **oct-HSM**: Octet sequence (used to represent symmetric keys) which is stored the HSM.
*/
export type JsonWebKeyType = string;
/** Known values of {@link JsonWebKeyOperation} that the service accepts. */
export declare enum KnownJsonWebKeyOperation {
Encrypt = "encrypt",
Decrypt = "decrypt",
Sign = "sign",
Verify = "verify",
WrapKey = "wrapKey",
UnwrapKey = "unwrapKey",
Import = "import",
Export = "export"
}
/**
* Defines values for JsonWebKeyOperation. \
* {@link KnownJsonWebKeyOperation} can be used interchangeably with JsonWebKeyOperation,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **encrypt** \
* **decrypt** \
* **sign** \
* **verify** \
* **wrapKey** \
* **unwrapKey** \
* **import** \
* **export**
*/
export type JsonWebKeyOperation = string;
/** Known values of {@link DeletionRecoveryLevel} that the service accepts. */
export declare enum KnownDeletionRecoveryLevel {
/** Denotes a vault state in which deletion is an irreversible operation, without the possibility for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.) */
Purgeable = "Purgeable",
/** Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval (90 days), unless a Purge operation is requested, or the subscription is cancelled. System wil permanently delete it after 90 days, if not recovered */
RecoverablePurgeable = "Recoverable+Purgeable",
/** Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval(90 days) and while the subscription is still available. System wil permanently delete it after 90 days, if not recovered */
Recoverable = "Recoverable",
/** Denotes a vault and subscription state in which deletion is recoverable within retention interval (90 days), immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled. System wil permanently delete it after 90 days, if not recovered */
RecoverableProtectedSubscription = "Recoverable+ProtectedSubscription",
/** Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90). This level guarantees the recoverability of the deleted entity during the retention interval, unless a Purge operation is requested, or the subscription is cancelled. */
CustomizedRecoverablePurgeable = "CustomizedRecoverable+Purgeable",
/** Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90).This level guarantees the recoverability of the deleted entity during the retention interval and while the subscription is still available. */
CustomizedRecoverable = "CustomizedRecoverable",
/** Denotes a vault and subscription state in which deletion is recoverable, immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled when 7<= SoftDeleteRetentionInDays < 90. This level guarantees the recoverability of the deleted entity during the retention interval, and also reflects the fact that the subscription itself cannot be cancelled. */
CustomizedRecoverableProtectedSubscription = "CustomizedRecoverable+ProtectedSubscription"
}
/**
* Defines values for DeletionRecoveryLevel. \
* {@link KnownDeletionRecoveryLevel} can be used interchangeably with DeletionRecoveryLevel,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Purgeable**: Denotes a vault state in which deletion is an irreversible operation, without the possibility for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.) \
* **Recoverable+Purgeable**: Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval (90 days), unless a Purge operation is requested, or the subscription is cancelled. System wil permanently delete it after 90 days, if not recovered \
* **Recoverable**: Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval(90 days) and while the subscription is still available. System wil permanently delete it after 90 days, if not recovered \
* **Recoverable+ProtectedSubscription**: Denotes a vault and subscription state in which deletion is recoverable within retention interval (90 days), immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled. System wil permanently delete it after 90 days, if not recovered \
* **CustomizedRecoverable+Purgeable**: Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90). This level guarantees the recoverability of the deleted entity during the retention interval, unless a Purge operation is requested, or the subscription is cancelled. \
* **CustomizedRecoverable**: Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90).This level guarantees the recoverability of the deleted entity during the retention interval and while the subscription is still available. \
* **CustomizedRecoverable+ProtectedSubscription**: Denotes a vault and subscription state in which deletion is recoverable, immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled when 7<= SoftDeleteRetentionInDays < 90. This level guarantees the recoverability of the deleted entity during the retention interval, and also reflects the fact that the subscription itself cannot be cancelled.
*/
export type DeletionRecoveryLevel = string;
/** Known values of {@link JsonWebKeyCurveName} that the service accepts. */
export declare enum KnownJsonWebKeyCurveName {
/** The NIST P-256 elliptic curve, AKA SECG curve SECP256R1. */
P256 = "P-256",
/** The NIST P-384 elliptic curve, AKA SECG curve SECP384R1. */
P384 = "P-384",
/** The NIST P-521 elliptic curve, AKA SECG curve SECP521R1. */
P521 = "P-521",
/** The SECG SECP256K1 elliptic curve. */
P256K = "P-256K"
}
/**
* Defines values for JsonWebKeyCurveName. \
* {@link KnownJsonWebKeyCurveName} can be used interchangeably with JsonWebKeyCurveName,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **P-256**: The NIST P-256 elliptic curve, AKA SECG curve SECP256R1. \
* **P-384**: The NIST P-384 elliptic curve, AKA SECG curve SECP384R1. \
* **P-521**: The NIST P-521 elliptic curve, AKA SECG curve SECP521R1. \
* **P-256K**: The SECG SECP256K1 elliptic curve.
*/
export type JsonWebKeyCurveName = string;
/** Known values of {@link JsonWebKeyEncryptionAlgorithm} that the service accepts. */
export declare enum KnownJsonWebKeyEncryptionAlgorithm {
RSAOaep = "RSA-OAEP",
RSAOaep256 = "RSA-OAEP-256",
RSA15 = "RSA1_5",
A128GCM = "A128GCM",
A192GCM = "A192GCM",
A256GCM = "A256GCM",
A128KW = "A128KW",
A192KW = "A192KW",
A256KW = "A256KW",
A128CBC = "A128CBC",
A192CBC = "A192CBC",
A256CBC = "A256CBC",
A128Cbcpad = "A128CBCPAD",
A192Cbcpad = "A192CBCPAD",
A256Cbcpad = "A256CBCPAD"
}
/**
* Defines values for JsonWebKeyEncryptionAlgorithm. \
* {@link KnownJsonWebKeyEncryptionAlgorithm} can be used interchangeably with JsonWebKeyEncryptionAlgorithm,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **RSA-OAEP** \
* **RSA-OAEP-256** \
* **RSA1_5** \
* **A128GCM** \
* **A192GCM** \
* **A256GCM** \
* **A128KW** \
* **A192KW** \
* **A256KW** \
* **A128CBC** \
* **A192CBC** \
* **A256CBC** \
* **A128CBCPAD** \
* **A192CBCPAD** \
* **A256CBCPAD**
*/
export type JsonWebKeyEncryptionAlgorithm = string;
/** Known values of {@link JsonWebKeySignatureAlgorithm} that the service accepts. */
export declare enum KnownJsonWebKeySignatureAlgorithm {
/** RSASSA-PSS using SHA-256 and MGF1 with SHA-256, as described in https://tools.ietf.org/html/rfc7518 */
PS256 = "PS256",
/** RSASSA-PSS using SHA-384 and MGF1 with SHA-384, as described in https://tools.ietf.org/html/rfc7518 */
PS384 = "PS384",
/** RSASSA-PSS using SHA-512 and MGF1 with SHA-512, as described in https://tools.ietf.org/html/rfc7518 */
PS512 = "PS512",
/** RSASSA-PKCS1-v1_5 using SHA-256, as described in https://tools.ietf.org/html/rfc7518 */
RS256 = "RS256",
/** RSASSA-PKCS1-v1_5 using SHA-384, as described in https://tools.ietf.org/html/rfc7518 */
RS384 = "RS384",
/** RSASSA-PKCS1-v1_5 using SHA-512, as described in https://tools.ietf.org/html/rfc7518 */
RS512 = "RS512",
/** Reserved */
Rsnull = "RSNULL",
/** ECDSA using P-256 and SHA-256, as described in https://tools.ietf.org/html/rfc7518. */
ES256 = "ES256",
/** ECDSA using P-384 and SHA-384, as described in https://tools.ietf.org/html/rfc7518 */
ES384 = "ES384",
/** ECDSA using P-521 and SHA-512, as described in https://tools.ietf.org/html/rfc7518 */
ES512 = "ES512",
/** ECDSA using P-256K and SHA-256, as described in https://tools.ietf.org/html/rfc7518 */
ES256K = "ES256K"
}
/**
* Defines values for JsonWebKeySignatureAlgorithm. \
* {@link KnownJsonWebKeySignatureAlgorithm} can be used interchangeably with JsonWebKeySignatureAlgorithm,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **PS256**: RSASSA-PSS using SHA-256 and MGF1 with SHA-256, as described in https:\/\/tools.ietf.org\/html\/rfc7518 \
* **PS384**: RSASSA-PSS using SHA-384 and MGF1 with SHA-384, as described in https:\/\/tools.ietf.org\/html\/rfc7518 \
* **PS512**: RSASSA-PSS using SHA-512 and MGF1 with SHA-512, as described in https:\/\/tools.ietf.org\/html\/rfc7518 \
* **RS256**: RSASSA-PKCS1-v1_5 using SHA-256, as described in https:\/\/tools.ietf.org\/html\/rfc7518 \
* **RS384**: RSASSA-PKCS1-v1_5 using SHA-384, as described in https:\/\/tools.ietf.org\/html\/rfc7518 \
* **RS512**: RSASSA-PKCS1-v1_5 using SHA-512, as described in https:\/\/tools.ietf.org\/html\/rfc7518 \
* **RSNULL**: Reserved \
* **ES256**: ECDSA using P-256 and SHA-256, as described in https:\/\/tools.ietf.org\/html\/rfc7518. \
* **ES384**: ECDSA using P-384 and SHA-384, as described in https:\/\/tools.ietf.org\/html\/rfc7518 \
* **ES512**: ECDSA using P-521 and SHA-512, as described in https:\/\/tools.ietf.org\/html\/rfc7518 \
* **ES256K**: ECDSA using P-256K and SHA-256, as described in https:\/\/tools.ietf.org\/html\/rfc7518
*/
export type JsonWebKeySignatureAlgorithm = string;
/** Known values of {@link KeyEncryptionAlgorithm} that the service accepts. */
export declare enum KnownKeyEncryptionAlgorithm {
CKMRSAAESKEYWrap = "CKM_RSA_AES_KEY_WRAP",
RSAAESKEYWrap256 = "RSA_AES_KEY_WRAP_256",
RSAAESKEYWrap384 = "RSA_AES_KEY_WRAP_384"
}
/**
* Defines values for KeyEncryptionAlgorithm. \
* {@link KnownKeyEncryptionAlgorithm} can be used interchangeably with KeyEncryptionAlgorithm,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **CKM_RSA_AES_KEY_WRAP** \
* **RSA_AES_KEY_WRAP_256** \
* **RSA_AES_KEY_WRAP_384**
*/
export type KeyEncryptionAlgorithm = string;
/** Defines values for ActionType. */
export type ActionType = "Rotate" | "Notify";
/** Optional parameters. */
export interface CreateKeyOptionalParams extends coreClient.OperationOptions {
/** The key size in bits. For example: 2048, 3072, or 4096 for RSA. */
keySize?: number;
/** The public exponent for a RSA key. */
publicExponent?: number;
/** Array of JsonWebKeyOperation */
keyOps?: JsonWebKeyOperation[];
/** The attributes of a key managed by the key vault service. */
keyAttributes?: KeyAttributes;
/** Application specific metadata in the form of key-value pairs. */
tags?: {
[propertyName: string]: string;
};
/** Elliptic curve name. For valid values, see JsonWebKeyCurveName. */
curve?: JsonWebKeyCurveName;
/** The policy rules under which the key can be exported. */
releasePolicy?: KeyReleasePolicy;
}
/** Contains response data for the createKey operation. */
export type CreateKeyResponse = KeyBundle;
/** Optional parameters. */
export interface RotateKeyOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the rotateKey operation. */
export type RotateKeyResponse = KeyBundle;
/** Optional parameters. */
export interface ImportKeyOptionalParams extends coreClient.OperationOptions {
/** Whether to import as a hardware key (HSM) or software key. */
hsm?: boolean;
/** The key management attributes. */
keyAttributes?: KeyAttributes;
/** Application specific metadata in the form of key-value pairs. */
tags?: {
[propertyName: string]: string;
};
/** The policy rules under which the key can be exported. */
releasePolicy?: KeyReleasePolicy;
}
/** Contains response data for the importKey operation. */
export type ImportKeyResponse = KeyBundle;
/** Optional parameters. */
export interface DeleteKeyOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the deleteKey operation. */
export type DeleteKeyResponse = DeletedKeyBundle;
/** Optional parameters. */
export interface UpdateKeyOptionalParams extends coreClient.OperationOptions {
/** Json web key operations. For more information on possible key operations, see JsonWebKeyOperation. */
keyOps?: JsonWebKeyOperation[];
/** The attributes of a key managed by the key vault service. */
keyAttributes?: KeyAttributes;
/** Application specific metadata in the form of key-value pairs. */
tags?: {
[propertyName: string]: string;
};
/** The policy rules under which the key can be exported. */
releasePolicy?: KeyReleasePolicy;
}
/** Contains response data for the updateKey operation. */
export type UpdateKeyResponse = KeyBundle;
/** Optional parameters. */
export interface GetKeyOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the getKey operation. */
export type GetKeyResponse = KeyBundle;
/** Optional parameters. */
export interface GetKeyVersionsOptionalParams extends coreClient.OperationOptions {
/** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */
maxresults?: number;
}
/** Contains response data for the getKeyVersions operation. */
export type GetKeyVersionsResponse = KeyListResult;
/** Optional parameters. */
export interface GetKeysOptionalParams extends coreClient.OperationOptions {
/** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */
maxresults?: number;
}
/** Contains response data for the getKeys operation. */
export type GetKeysResponse = KeyListResult;
/** Optional parameters. */
export interface BackupKeyOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the backupKey operation. */
export type BackupKeyResponse = BackupKeyResult;
/** Optional parameters. */
export interface RestoreKeyOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the restoreKey operation. */
export type RestoreKeyResponse = KeyBundle;
/** Optional parameters. */
export interface EncryptOptionalParams extends coreClient.OperationOptions {
/** Cryptographically random, non-repeating initialization vector for symmetric algorithms. */
iv?: Uint8Array;
/** Additional data to authenticate but not encrypt/decrypt when using authenticated crypto algorithms. */
additionalAuthenticatedData?: Uint8Array;
/** The tag to authenticate when performing decryption with an authenticated algorithm. */
authenticationTag?: Uint8Array;
}
/** Contains response data for the encrypt operation. */
export type EncryptResponse = KeyOperationResult;
/** Optional parameters. */
export interface DecryptOptionalParams extends coreClient.OperationOptions {
/** Cryptographically random, non-repeating initialization vector for symmetric algorithms. */
iv?: Uint8Array;
/** Additional data to authenticate but not encrypt/decrypt when using authenticated crypto algorithms. */
additionalAuthenticatedData?: Uint8Array;
/** The tag to authenticate when performing decryption with an authenticated algorithm. */
authenticationTag?: Uint8Array;
}
/** Contains response data for the decrypt operation. */
export type DecryptResponse = KeyOperationResult;
/** Optional parameters. */
export interface SignOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the sign operation. */
export type SignResponse = KeyOperationResult;
/** Optional parameters. */
export interface VerifyOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the verify operation. */
export type VerifyResponse = KeyVerifyResult;
/** Optional parameters. */
export interface WrapKeyOptionalParams extends coreClient.OperationOptions {
/** Cryptographically random, non-repeating initialization vector for symmetric algorithms. */
iv?: Uint8Array;
/** Additional data to authenticate but not encrypt/decrypt when using authenticated crypto algorithms. */
additionalAuthenticatedData?: Uint8Array;
/** The tag to authenticate when performing decryption with an authenticated algorithm. */
authenticationTag?: Uint8Array;
}
/** Contains response data for the wrapKey operation. */
export type WrapKeyResponse = KeyOperationResult;
/** Optional parameters. */
export interface UnwrapKeyOptionalParams extends coreClient.OperationOptions {
/** Cryptographically random, non-repeating initialization vector for symmetric algorithms. */
iv?: Uint8Array;
/** Additional data to authenticate but not encrypt/decrypt when using authenticated crypto algorithms. */
additionalAuthenticatedData?: Uint8Array;
/** The tag to authenticate when performing decryption with an authenticated algorithm. */
authenticationTag?: Uint8Array;
}
/** Contains response data for the unwrapKey operation. */
export type UnwrapKeyResponse = KeyOperationResult;
/** Optional parameters. */
export interface ReleaseOptionalParams extends coreClient.OperationOptions {
/** A client provided nonce for freshness. */
nonce?: string;
/** The encryption algorithm to use to protected the exported key material */
enc?: KeyEncryptionAlgorithm;
}
/** Contains response data for the release operation. */
export type ReleaseResponse = KeyReleaseResult;
/** Optional parameters. */
export interface GetDeletedKeysOptionalParams extends coreClient.OperationOptions {
/** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */
maxresults?: number;
}
/** Contains response data for the getDeletedKeys operation. */
export type GetDeletedKeysResponse = DeletedKeyListResult;
/** Optional parameters. */
export interface GetDeletedKeyOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the getDeletedKey operation. */
export type GetDeletedKeyResponse = DeletedKeyBundle;
/** Optional parameters. */
export interface PurgeDeletedKeyOptionalParams extends coreClient.OperationOptions {
}
/** Optional parameters. */
export interface RecoverDeletedKeyOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the recoverDeletedKey operation. */
export type RecoverDeletedKeyResponse = KeyBundle;
/** Optional parameters. */
export interface GetKeyRotationPolicyOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the getKeyRotationPolicy operation. */
export type GetKeyRotationPolicyResponse = KeyRotationPolicy;
/** Optional parameters. */
export interface UpdateKeyRotationPolicyOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the updateKeyRotationPolicy operation. */
export type UpdateKeyRotationPolicyResponse = KeyRotationPolicy;
/** Optional parameters. */
export interface GetRandomBytesOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the getRandomBytes operation. */
export type GetRandomBytesResponse = RandomBytes;
/** Optional parameters. */
export interface GetKeyVersionsNextOptionalParams extends coreClient.OperationOptions {
/** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */
maxresults?: number;
}
/** Contains response data for the getKeyVersionsNext operation. */
export type GetKeyVersionsNextResponse = KeyListResult;
/** Optional parameters. */
export interface GetKeysNextOptionalParams extends coreClient.OperationOptions {
/** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */
maxresults?: number;
}
/** Contains response data for the getKeysNext operation. */
export type GetKeysNextResponse = KeyListResult;
/** Optional parameters. */
export interface GetDeletedKeysNextOptionalParams extends coreClient.OperationOptions {
/** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */
maxresults?: number;
}
/** Contains response data for the getDeletedKeysNext operation. */
export type GetDeletedKeysNextResponse = DeletedKeyListResult;
/** Optional parameters. */
export interface KeyVaultClientOptionalParams extends coreHttpCompat.ExtendedServiceClientOptions {
/** Overrides client endpoint. */
endpoint?: string;
}
//# sourceMappingURL=index.d.ts.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,124 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
/** Known values of {@link ApiVersion75} that the service accepts. */
export var KnownApiVersion75;
(function (KnownApiVersion75) {
/** Api Version '7.5' */
KnownApiVersion75["Seven5"] = "7.5";
})(KnownApiVersion75 || (KnownApiVersion75 = {}));
/** Known values of {@link JsonWebKeyType} that the service accepts. */
export var KnownJsonWebKeyType;
(function (KnownJsonWebKeyType) {
/** Elliptic Curve. */
KnownJsonWebKeyType["EC"] = "EC";
/** Elliptic Curve with a private key which is stored in the HSM. */
KnownJsonWebKeyType["ECHSM"] = "EC-HSM";
/** RSA (https://tools.ietf.org/html/rfc3447) */
KnownJsonWebKeyType["RSA"] = "RSA";
/** RSA with a private key which is stored in the HSM. */
KnownJsonWebKeyType["RSAHSM"] = "RSA-HSM";
/** Octet sequence (used to represent symmetric keys) */
KnownJsonWebKeyType["Oct"] = "oct";
/** Octet sequence (used to represent symmetric keys) which is stored the HSM. */
KnownJsonWebKeyType["OctHSM"] = "oct-HSM";
})(KnownJsonWebKeyType || (KnownJsonWebKeyType = {}));
/** Known values of {@link JsonWebKeyOperation} that the service accepts. */
export var KnownJsonWebKeyOperation;
(function (KnownJsonWebKeyOperation) {
KnownJsonWebKeyOperation["Encrypt"] = "encrypt";
KnownJsonWebKeyOperation["Decrypt"] = "decrypt";
KnownJsonWebKeyOperation["Sign"] = "sign";
KnownJsonWebKeyOperation["Verify"] = "verify";
KnownJsonWebKeyOperation["WrapKey"] = "wrapKey";
KnownJsonWebKeyOperation["UnwrapKey"] = "unwrapKey";
KnownJsonWebKeyOperation["Import"] = "import";
KnownJsonWebKeyOperation["Export"] = "export";
})(KnownJsonWebKeyOperation || (KnownJsonWebKeyOperation = {}));
/** Known values of {@link DeletionRecoveryLevel} that the service accepts. */
export var KnownDeletionRecoveryLevel;
(function (KnownDeletionRecoveryLevel) {
/** Denotes a vault state in which deletion is an irreversible operation, without the possibility for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.) */
KnownDeletionRecoveryLevel["Purgeable"] = "Purgeable";
/** Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval (90 days), unless a Purge operation is requested, or the subscription is cancelled. System wil permanently delete it after 90 days, if not recovered */
KnownDeletionRecoveryLevel["RecoverablePurgeable"] = "Recoverable+Purgeable";
/** Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval(90 days) and while the subscription is still available. System wil permanently delete it after 90 days, if not recovered */
KnownDeletionRecoveryLevel["Recoverable"] = "Recoverable";
/** Denotes a vault and subscription state in which deletion is recoverable within retention interval (90 days), immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled. System wil permanently delete it after 90 days, if not recovered */
KnownDeletionRecoveryLevel["RecoverableProtectedSubscription"] = "Recoverable+ProtectedSubscription";
/** Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90). This level guarantees the recoverability of the deleted entity during the retention interval, unless a Purge operation is requested, or the subscription is cancelled. */
KnownDeletionRecoveryLevel["CustomizedRecoverablePurgeable"] = "CustomizedRecoverable+Purgeable";
/** Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90).This level guarantees the recoverability of the deleted entity during the retention interval and while the subscription is still available. */
KnownDeletionRecoveryLevel["CustomizedRecoverable"] = "CustomizedRecoverable";
/** Denotes a vault and subscription state in which deletion is recoverable, immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled when 7<= SoftDeleteRetentionInDays < 90. This level guarantees the recoverability of the deleted entity during the retention interval, and also reflects the fact that the subscription itself cannot be cancelled. */
KnownDeletionRecoveryLevel["CustomizedRecoverableProtectedSubscription"] = "CustomizedRecoverable+ProtectedSubscription";
})(KnownDeletionRecoveryLevel || (KnownDeletionRecoveryLevel = {}));
/** Known values of {@link JsonWebKeyCurveName} that the service accepts. */
export var KnownJsonWebKeyCurveName;
(function (KnownJsonWebKeyCurveName) {
/** The NIST P-256 elliptic curve, AKA SECG curve SECP256R1. */
KnownJsonWebKeyCurveName["P256"] = "P-256";
/** The NIST P-384 elliptic curve, AKA SECG curve SECP384R1. */
KnownJsonWebKeyCurveName["P384"] = "P-384";
/** The NIST P-521 elliptic curve, AKA SECG curve SECP521R1. */
KnownJsonWebKeyCurveName["P521"] = "P-521";
/** The SECG SECP256K1 elliptic curve. */
KnownJsonWebKeyCurveName["P256K"] = "P-256K";
})(KnownJsonWebKeyCurveName || (KnownJsonWebKeyCurveName = {}));
/** Known values of {@link JsonWebKeyEncryptionAlgorithm} that the service accepts. */
export var KnownJsonWebKeyEncryptionAlgorithm;
(function (KnownJsonWebKeyEncryptionAlgorithm) {
KnownJsonWebKeyEncryptionAlgorithm["RSAOaep"] = "RSA-OAEP";
KnownJsonWebKeyEncryptionAlgorithm["RSAOaep256"] = "RSA-OAEP-256";
KnownJsonWebKeyEncryptionAlgorithm["RSA15"] = "RSA1_5";
KnownJsonWebKeyEncryptionAlgorithm["A128GCM"] = "A128GCM";
KnownJsonWebKeyEncryptionAlgorithm["A192GCM"] = "A192GCM";
KnownJsonWebKeyEncryptionAlgorithm["A256GCM"] = "A256GCM";
KnownJsonWebKeyEncryptionAlgorithm["A128KW"] = "A128KW";
KnownJsonWebKeyEncryptionAlgorithm["A192KW"] = "A192KW";
KnownJsonWebKeyEncryptionAlgorithm["A256KW"] = "A256KW";
KnownJsonWebKeyEncryptionAlgorithm["A128CBC"] = "A128CBC";
KnownJsonWebKeyEncryptionAlgorithm["A192CBC"] = "A192CBC";
KnownJsonWebKeyEncryptionAlgorithm["A256CBC"] = "A256CBC";
KnownJsonWebKeyEncryptionAlgorithm["A128Cbcpad"] = "A128CBCPAD";
KnownJsonWebKeyEncryptionAlgorithm["A192Cbcpad"] = "A192CBCPAD";
KnownJsonWebKeyEncryptionAlgorithm["A256Cbcpad"] = "A256CBCPAD";
})(KnownJsonWebKeyEncryptionAlgorithm || (KnownJsonWebKeyEncryptionAlgorithm = {}));
/** Known values of {@link JsonWebKeySignatureAlgorithm} that the service accepts. */
export var KnownJsonWebKeySignatureAlgorithm;
(function (KnownJsonWebKeySignatureAlgorithm) {
/** RSASSA-PSS using SHA-256 and MGF1 with SHA-256, as described in https://tools.ietf.org/html/rfc7518 */
KnownJsonWebKeySignatureAlgorithm["PS256"] = "PS256";
/** RSASSA-PSS using SHA-384 and MGF1 with SHA-384, as described in https://tools.ietf.org/html/rfc7518 */
KnownJsonWebKeySignatureAlgorithm["PS384"] = "PS384";
/** RSASSA-PSS using SHA-512 and MGF1 with SHA-512, as described in https://tools.ietf.org/html/rfc7518 */
KnownJsonWebKeySignatureAlgorithm["PS512"] = "PS512";
/** RSASSA-PKCS1-v1_5 using SHA-256, as described in https://tools.ietf.org/html/rfc7518 */
KnownJsonWebKeySignatureAlgorithm["RS256"] = "RS256";
/** RSASSA-PKCS1-v1_5 using SHA-384, as described in https://tools.ietf.org/html/rfc7518 */
KnownJsonWebKeySignatureAlgorithm["RS384"] = "RS384";
/** RSASSA-PKCS1-v1_5 using SHA-512, as described in https://tools.ietf.org/html/rfc7518 */
KnownJsonWebKeySignatureAlgorithm["RS512"] = "RS512";
/** Reserved */
KnownJsonWebKeySignatureAlgorithm["Rsnull"] = "RSNULL";
/** ECDSA using P-256 and SHA-256, as described in https://tools.ietf.org/html/rfc7518. */
KnownJsonWebKeySignatureAlgorithm["ES256"] = "ES256";
/** ECDSA using P-384 and SHA-384, as described in https://tools.ietf.org/html/rfc7518 */
KnownJsonWebKeySignatureAlgorithm["ES384"] = "ES384";
/** ECDSA using P-521 and SHA-512, as described in https://tools.ietf.org/html/rfc7518 */
KnownJsonWebKeySignatureAlgorithm["ES512"] = "ES512";
/** ECDSA using P-256K and SHA-256, as described in https://tools.ietf.org/html/rfc7518 */
KnownJsonWebKeySignatureAlgorithm["ES256K"] = "ES256K";
})(KnownJsonWebKeySignatureAlgorithm || (KnownJsonWebKeySignatureAlgorithm = {}));
/** Known values of {@link KeyEncryptionAlgorithm} that the service accepts. */
export var KnownKeyEncryptionAlgorithm;
(function (KnownKeyEncryptionAlgorithm) {
KnownKeyEncryptionAlgorithm["CKMRSAAESKEYWrap"] = "CKM_RSA_AES_KEY_WRAP";
KnownKeyEncryptionAlgorithm["RSAAESKEYWrap256"] = "RSA_AES_KEY_WRAP_256";
KnownKeyEncryptionAlgorithm["RSAAESKEYWrap384"] = "RSA_AES_KEY_WRAP_384";
})(KnownKeyEncryptionAlgorithm || (KnownKeyEncryptionAlgorithm = {}));
//# sourceMappingURL=index.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,35 @@
import * as coreClient from "@azure/core-client";
export declare const KeyCreateParameters: coreClient.CompositeMapper;
export declare const Attributes: coreClient.CompositeMapper;
export declare const KeyReleasePolicy: coreClient.CompositeMapper;
export declare const KeyBundle: coreClient.CompositeMapper;
export declare const JsonWebKey: coreClient.CompositeMapper;
export declare const KeyVaultError: coreClient.CompositeMapper;
export declare const ErrorModel: coreClient.CompositeMapper;
export declare const KeyImportParameters: coreClient.CompositeMapper;
export declare const KeyUpdateParameters: coreClient.CompositeMapper;
export declare const KeyListResult: coreClient.CompositeMapper;
export declare const KeyItem: coreClient.CompositeMapper;
export declare const BackupKeyResult: coreClient.CompositeMapper;
export declare const KeyRestoreParameters: coreClient.CompositeMapper;
export declare const KeyOperationsParameters: coreClient.CompositeMapper;
export declare const KeyOperationResult: coreClient.CompositeMapper;
export declare const KeySignParameters: coreClient.CompositeMapper;
export declare const KeyVerifyParameters: coreClient.CompositeMapper;
export declare const KeyVerifyResult: coreClient.CompositeMapper;
export declare const KeyReleaseParameters: coreClient.CompositeMapper;
export declare const KeyReleaseResult: coreClient.CompositeMapper;
export declare const DeletedKeyListResult: coreClient.CompositeMapper;
export declare const KeyRotationPolicy: coreClient.CompositeMapper;
export declare const LifetimeActions: coreClient.CompositeMapper;
export declare const LifetimeActionsTrigger: coreClient.CompositeMapper;
export declare const LifetimeActionsType: coreClient.CompositeMapper;
export declare const KeyRotationPolicyAttributes: coreClient.CompositeMapper;
export declare const GetRandomBytesRequest: coreClient.CompositeMapper;
export declare const RandomBytes: coreClient.CompositeMapper;
export declare const KeyProperties: coreClient.CompositeMapper;
export declare const KeyExportParameters: coreClient.CompositeMapper;
export declare const KeyAttributes: coreClient.CompositeMapper;
export declare const DeletedKeyBundle: coreClient.CompositeMapper;
export declare const DeletedKeyItem: coreClient.CompositeMapper;
//# sourceMappingURL=mappers.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../src/generated/models/mappers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eAgE5C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,eAuCnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,eA0BzC,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,eA0ClC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,eA4GnC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eActC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,eA4BnC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eAyC5C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eAuC5C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eA2BtC,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,UAAU,CAAC,eAkChC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,eAcxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,eAc7C,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,UAAU,CAAC,eAuChD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,eA0C3C,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,eAqB1C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eA4B5C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,eAcxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,eA6B7C,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,eAczC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,eA2B7C,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,eAiC1C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,eAqBxC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,eAmB/C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eAc5C,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,UAAU,CAAC,eA2BpD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,eAkB9C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,eAcpC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eAqCtC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eA0B5C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eAmCtC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,eA4BzC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,eA4BvC,CAAC"}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,44 @@
import { OperationParameter, OperationURLParameter, OperationQueryParameter } from "@azure/core-client";
export declare const contentType: OperationParameter;
export declare const accept: OperationParameter;
export declare const kty: OperationParameter;
export declare const keySize: OperationParameter;
export declare const publicExponent: OperationParameter;
export declare const keyOps: OperationParameter;
export declare const keyAttributes: OperationParameter;
export declare const tags: OperationParameter;
export declare const curve: OperationParameter;
export declare const releasePolicy: OperationParameter;
export declare const vaultBaseUrl: OperationURLParameter;
export declare const keyName: OperationURLParameter;
export declare const apiVersion: OperationQueryParameter;
export declare const hsm: OperationParameter;
export declare const key: OperationParameter;
export declare const keyAttributes1: OperationParameter;
export declare const tags1: OperationParameter;
export declare const releasePolicy1: OperationParameter;
export declare const keyName1: OperationURLParameter;
export declare const keyOps1: OperationParameter;
export declare const keyAttributes2: OperationParameter;
export declare const tags2: OperationParameter;
export declare const releasePolicy2: OperationParameter;
export declare const keyVersion: OperationURLParameter;
export declare const maxresults: OperationQueryParameter;
export declare const keyBundleBackup: OperationParameter;
export declare const algorithm: OperationParameter;
export declare const value: OperationParameter;
export declare const iv: OperationParameter;
export declare const additionalAuthenticatedData: OperationParameter;
export declare const authenticationTag: OperationParameter;
export declare const algorithm1: OperationParameter;
export declare const value1: OperationParameter;
export declare const algorithm2: OperationParameter;
export declare const digest: OperationParameter;
export declare const signature: OperationParameter;
export declare const targetAttestationToken: OperationParameter;
export declare const nonce: OperationParameter;
export declare const enc: OperationParameter;
export declare const keyRotationPolicy: OperationParameter;
export declare const count: OperationParameter;
export declare const nextLink: OperationURLParameter;
//# sourceMappingURL=parameters.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../../src/generated/models/parameters.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAc5B,eAAO,MAAM,WAAW,EAAE,kBAUzB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,kBAUpB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,kBAGjB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,kBAGrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAG5B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,kBAGpB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,kBAG3B,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,kBAGlB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,kBAG3B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,qBAU1B,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,qBAYrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,uBASxB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,kBAGjB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,kBAGjB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAG5B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAG5B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,qBAStB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,kBAGrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAG5B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAG5B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,qBASxB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,uBAYxB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,kBAG7B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,kBAGvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,kBAGhB,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,kBAGzC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,kBAG/B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,kBAGxB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,kBAGpB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,kBAGxB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,kBAGpB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,kBAGvB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,kBAGpC,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,kBAGjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,kBAG/B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,qBAUtB,CAAC"}

View File

@@ -0,0 +1,241 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { KeyCreateParameters as KeyCreateParametersMapper, KeyImportParameters as KeyImportParametersMapper, KeyUpdateParameters as KeyUpdateParametersMapper, KeyRestoreParameters as KeyRestoreParametersMapper, KeyOperationsParameters as KeyOperationsParametersMapper, KeySignParameters as KeySignParametersMapper, KeyVerifyParameters as KeyVerifyParametersMapper, KeyReleaseParameters as KeyReleaseParametersMapper, KeyRotationPolicy as KeyRotationPolicyMapper, GetRandomBytesRequest as GetRandomBytesRequestMapper } from "../models/mappers.js";
export const contentType = {
parameterPath: ["options", "contentType"],
mapper: {
defaultValue: "application/json",
isConstant: true,
serializedName: "Content-Type",
type: {
name: "String"
}
}
};
export const accept = {
parameterPath: "accept",
mapper: {
defaultValue: "application/json",
isConstant: true,
serializedName: "Accept",
type: {
name: "String"
}
}
};
export const kty = {
parameterPath: "kty",
mapper: KeyCreateParametersMapper
};
export const keySize = {
parameterPath: ["options", "keySize"],
mapper: KeyCreateParametersMapper
};
export const publicExponent = {
parameterPath: ["options", "publicExponent"],
mapper: KeyCreateParametersMapper
};
export const keyOps = {
parameterPath: ["options", "keyOps"],
mapper: KeyCreateParametersMapper
};
export const keyAttributes = {
parameterPath: ["options", "keyAttributes"],
mapper: KeyCreateParametersMapper
};
export const tags = {
parameterPath: ["options", "tags"],
mapper: KeyCreateParametersMapper
};
export const curve = {
parameterPath: ["options", "curve"],
mapper: KeyCreateParametersMapper
};
export const releasePolicy = {
parameterPath: ["options", "releasePolicy"],
mapper: KeyCreateParametersMapper
};
export const vaultBaseUrl = {
parameterPath: "vaultBaseUrl",
mapper: {
serializedName: "vaultBaseUrl",
required: true,
type: {
name: "String"
}
},
skipEncoding: true
};
export const keyName = {
parameterPath: "keyName",
mapper: {
constraints: {
Pattern: new RegExp("^[0-9a-zA-Z-]+$")
},
serializedName: "key-name",
required: true,
type: {
name: "String"
}
}
};
export const apiVersion = {
parameterPath: "apiVersion",
mapper: {
serializedName: "api-version",
required: true,
type: {
name: "String"
}
}
};
export const hsm = {
parameterPath: ["options", "hsm"],
mapper: KeyImportParametersMapper
};
export const key = {
parameterPath: "key",
mapper: KeyImportParametersMapper
};
export const keyAttributes1 = {
parameterPath: ["options", "keyAttributes"],
mapper: KeyImportParametersMapper
};
export const tags1 = {
parameterPath: ["options", "tags"],
mapper: KeyImportParametersMapper
};
export const releasePolicy1 = {
parameterPath: ["options", "releasePolicy"],
mapper: KeyImportParametersMapper
};
export const keyName1 = {
parameterPath: "keyName",
mapper: {
serializedName: "key-name",
required: true,
type: {
name: "String"
}
}
};
export const keyOps1 = {
parameterPath: ["options", "keyOps"],
mapper: KeyUpdateParametersMapper
};
export const keyAttributes2 = {
parameterPath: ["options", "keyAttributes"],
mapper: KeyUpdateParametersMapper
};
export const tags2 = {
parameterPath: ["options", "tags"],
mapper: KeyUpdateParametersMapper
};
export const releasePolicy2 = {
parameterPath: ["options", "releasePolicy"],
mapper: KeyUpdateParametersMapper
};
export const keyVersion = {
parameterPath: "keyVersion",
mapper: {
serializedName: "key-version",
required: true,
type: {
name: "String"
}
}
};
export const maxresults = {
parameterPath: ["options", "maxresults"],
mapper: {
constraints: {
InclusiveMaximum: 25,
InclusiveMinimum: 1
},
serializedName: "maxresults",
type: {
name: "Number"
}
}
};
export const keyBundleBackup = {
parameterPath: "keyBundleBackup",
mapper: KeyRestoreParametersMapper
};
export const algorithm = {
parameterPath: "algorithm",
mapper: KeyOperationsParametersMapper
};
export const value = {
parameterPath: "value",
mapper: KeyOperationsParametersMapper
};
export const iv = {
parameterPath: ["options", "iv"],
mapper: KeyOperationsParametersMapper
};
export const additionalAuthenticatedData = {
parameterPath: ["options", "additionalAuthenticatedData"],
mapper: KeyOperationsParametersMapper
};
export const authenticationTag = {
parameterPath: ["options", "authenticationTag"],
mapper: KeyOperationsParametersMapper
};
export const algorithm1 = {
parameterPath: "algorithm",
mapper: KeySignParametersMapper
};
export const value1 = {
parameterPath: "value",
mapper: KeySignParametersMapper
};
export const algorithm2 = {
parameterPath: "algorithm",
mapper: KeyVerifyParametersMapper
};
export const digest = {
parameterPath: "digest",
mapper: KeyVerifyParametersMapper
};
export const signature = {
parameterPath: "signature",
mapper: KeyVerifyParametersMapper
};
export const targetAttestationToken = {
parameterPath: "targetAttestationToken",
mapper: KeyReleaseParametersMapper
};
export const nonce = {
parameterPath: ["options", "nonce"],
mapper: KeyReleaseParametersMapper
};
export const enc = {
parameterPath: ["options", "enc"],
mapper: KeyReleaseParametersMapper
};
export const keyRotationPolicy = {
parameterPath: "keyRotationPolicy",
mapper: KeyRotationPolicyMapper
};
export const count = {
parameterPath: "count",
mapper: GetRandomBytesRequestMapper
};
export const nextLink = {
parameterPath: "nextLink",
mapper: {
serializedName: "nextLink",
required: true,
type: {
name: "String"
}
},
skipEncoding: true
};
//# sourceMappingURL=parameters.js.map

File diff suppressed because one or more lines are too long