@azure-tools/communication-recipient-verification 1.0.0-alpha.20240827.1 → 1.0.0-alpha.20240828.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist-esm/src/index.js +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/mappers.js +1 -1
- package/dist-esm/src/mappers.js.map +1 -1
- package/dist-esm/src/models.js +1 -1
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/src/recipientVerificationClient.js +1 -1
- package/dist-esm/src/recipientVerificationClient.js.map +1 -1
- package/dist-esm/src/utils/constants.js +1 -1
- package/dist-esm/src/utils/constants.js.map +1 -1
- package/dist-esm/src/utils/index.js +1 -1
- package/dist-esm/src/utils/index.js.map +1 -1
- package/dist-esm/src/utils/logger.js +1 -1
- package/dist-esm/src/utils/logger.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -570,14 +570,14 @@ let RecipientVerificationClient$1 = class RecipientVerificationClient extends co
|
|
|
570
570
|
};
|
|
571
571
|
|
|
572
572
|
// Copyright (c) Microsoft Corporation.
|
|
573
|
-
// Licensed under the MIT
|
|
573
|
+
// Licensed under the MIT License.
|
|
574
574
|
/**
|
|
575
575
|
* The \@azure\/logger configuration for this package.
|
|
576
576
|
*/
|
|
577
577
|
const logger = logger$1.createClientLogger("communication-verified-recipients");
|
|
578
578
|
|
|
579
579
|
// Copyright (c) Microsoft Corporation.
|
|
580
|
-
// Licensed under the MIT
|
|
580
|
+
// Licensed under the MIT License.
|
|
581
581
|
/// <reference lib="esnext.asynciterable" />
|
|
582
582
|
const isRecipientVerificationClientOptions = (options) => options && !communicationCommon.isKeyCredential(options) && !coreAuth.isTokenCredential(options);
|
|
583
583
|
/**
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/generated/src/models/mappers.ts","../src/generated/src/tracing.ts","../src/generated/src/models/parameters.ts","../src/generated/src/operations/acsVerificationOperations.ts","../src/generated/src/recipientVerificationClient.ts","../src/utils/logger.ts","../src/recipientVerificationClient.ts"],"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\nimport * as coreClient from \"@azure/core-client\";\n\nexport const AcsVerification: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AcsVerification\",\n modelProperties: {\n immutableId: {\n serializedName: \"ImmutableId\",\n type: {\n name: \"String\"\n }\n },\n verificationId: {\n serializedName: \"VerificationId\",\n type: {\n name: \"String\"\n }\n },\n status: {\n serializedName: \"Status\",\n type: {\n name: \"String\"\n }\n },\n subscriptionId: {\n serializedName: \"SubscriptionId\",\n type: {\n name: \"String\"\n }\n },\n identity: {\n serializedName: \"Identity\",\n type: {\n name: \"String\"\n }\n },\n challengeId: {\n serializedName: \"ChallengeId\",\n type: {\n name: \"String\"\n }\n },\n retries: {\n serializedName: \"Retries\",\n type: {\n name: \"Number\"\n }\n },\n attempts: {\n serializedName: \"Attempts\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const CommunicationErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const CommunicationError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationError\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n },\n innerError: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const VerificationRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"VerificationRequest\",\n modelProperties: {\n identity: {\n serializedName: \"Identity\",\n type: {\n name: \"String\"\n }\n },\n channel: {\n serializedName: \"Channel\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const VerificationResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"VerificationResponse\",\n modelProperties: {\n verificationId: {\n serializedName: \"VerificationId\",\n type: {\n name: \"String\"\n }\n },\n isVerified: {\n serializedName: \"IsVerified\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const VerificationCodeRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"VerificationCodeRequest\",\n modelProperties: {\n verificationCode: {\n serializedName: \"VerificationCode\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const VerificationConstantsResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"VerificationConstantsResponse\",\n modelProperties: {\n maxRetriesAllowed: {\n serializedName: \"MaxRetriesAllowed\",\n type: {\n name: \"Number\"\n }\n },\n maxVerificationsAllowed: {\n serializedName: \"MaxVerificationsAllowed\",\n type: {\n name: \"Number\"\n }\n },\n currentNumberOfVerifications: {\n serializedName: \"CurrentNumberOfVerifications\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n","/*\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\nimport { createTracingClient } from \"@azure/core-tracing\";\n\nexport const tracingClient = createTracingClient({\n namespace: \"Microsoft.Communication\",\n packageName: \"@azure/communication-recipient-verification\",\n packageVersion: \"1.0.0-beta.1\"\n});\n","/*\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\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport {\n VerificationRequest as VerificationRequestMapper,\n VerificationCodeRequest as VerificationCodeRequestMapper\n} from \"../models/mappers\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const endpoint: OperationURLParameter = {\n parameterPath: \"endpoint\",\n mapper: {\n serializedName: \"endpoint\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2022-11-15\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const identity: OperationParameter = {\n parameterPath: [\"options\", \"identity\"],\n mapper: VerificationRequestMapper\n};\n\nexport const channel: OperationParameter = {\n parameterPath: [\"options\", \"channel\"],\n mapper: VerificationRequestMapper\n};\n\nexport const verificationCode: OperationParameter = {\n parameterPath: [\"options\", \"verificationCode\"],\n mapper: VerificationCodeRequestMapper\n};\n\nexport const verificationId: OperationURLParameter = {\n parameterPath: \"verificationId\",\n mapper: {\n serializedName: \"verificationId\",\n required: true,\n type: {\n name: \"Uuid\"\n }\n }\n};\n","/*\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\nimport { tracingClient } from \"../tracing\";\nimport { AcsVerificationOperations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { RecipientVerificationClient } from \"../recipientVerificationClient\";\nimport {\n AcsVerificationGetVerificationsOptionalParams,\n AcsVerificationGetVerificationsResponse,\n AcsVerificationRequestVerificationOptionalParams,\n AcsVerificationRequestVerificationResponse,\n AcsVerificationVerifyIdentityOptionalParams,\n AcsVerificationVerifyIdentityResponse,\n AcsVerificationDeleteVerificationOptionalParams,\n AcsVerificationGetVerificationConstantsOptionalParams,\n AcsVerificationGetVerificationConstantsResponse\n} from \"../models\";\n\n/** Class containing AcsVerificationOperations operations. */\nexport class AcsVerificationOperationsImpl\n implements AcsVerificationOperations {\n private readonly client: RecipientVerificationClient;\n\n /**\n * Initialize a new instance of the class AcsVerificationOperations class.\n * @param client Reference to the service client\n */\n constructor(client: RecipientVerificationClient) {\n this.client = client;\n }\n\n /**\n * Gets the array of verified phone numbers for the current resource.\n * @param options The options parameters.\n */\n async getVerifications(\n options?: AcsVerificationGetVerificationsOptionalParams\n ): Promise<AcsVerificationGetVerificationsResponse> {\n return tracingClient.withSpan(\n \"RecipientVerificationClient.getVerifications\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getVerificationsOperationSpec\n ) as Promise<AcsVerificationGetVerificationsResponse>;\n }\n );\n }\n\n /**\n * Request the identity for the verification.\n * @param options The options parameters.\n */\n async requestVerification(\n options?: AcsVerificationRequestVerificationOptionalParams\n ): Promise<AcsVerificationRequestVerificationResponse> {\n return tracingClient.withSpan(\n \"RecipientVerificationClient.requestVerification\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n requestVerificationOperationSpec\n ) as Promise<AcsVerificationRequestVerificationResponse>;\n }\n );\n }\n\n /**\n * Verify that the user received the correct verification code.\n * @param verificationId Verification Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async verifyIdentity(\n verificationId: string,\n options?: AcsVerificationVerifyIdentityOptionalParams\n ): Promise<AcsVerificationVerifyIdentityResponse> {\n return tracingClient.withSpan(\n \"RecipientVerificationClient.verifyIdentity\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { verificationId, options },\n verifyIdentityOperationSpec\n ) as Promise<AcsVerificationVerifyIdentityResponse>;\n }\n );\n }\n\n /**\n * Deleting a verification.\n * @param verificationId Verification Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async deleteVerification(\n verificationId: string,\n options?: AcsVerificationDeleteVerificationOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"RecipientVerificationClient.deleteVerification\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { verificationId, options },\n deleteVerificationOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Getting all the constants for the resource.\n * @param options The options parameters.\n */\n async getVerificationConstants(\n options?: AcsVerificationGetVerificationConstantsOptionalParams\n ): Promise<AcsVerificationGetVerificationConstantsResponse> {\n return tracingClient.withSpan(\n \"RecipientVerificationClient.getVerificationConstants\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getVerificationConstantsOperationSpec\n ) as Promise<AcsVerificationGetVerificationConstantsResponse>;\n }\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getVerificationsOperationSpec: coreClient.OperationSpec = {\n path: \"/verifications\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"AcsVerification\" } }\n }\n }\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst requestVerificationOperationSpec: coreClient.OperationSpec = {\n path: \"/verifications\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.VerificationResponse\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: {\n identity: [\"options\", \"identity\"],\n channel: [\"options\", \"channel\"]\n },\n mapper: Mappers.VerificationRequest\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst verifyIdentityOperationSpec: coreClient.OperationSpec = {\n path: \"/verifications/{verificationId}/check\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.VerificationResponse\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: { verificationCode: [\"options\", \"verificationCode\"] },\n mapper: Mappers.VerificationCodeRequest\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.verificationId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteVerificationOperationSpec: coreClient.OperationSpec = {\n path: \"/verifications/{verificationId}/\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.verificationId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getVerificationConstantsOperationSpec: coreClient.OperationSpec = {\n path: \"/verifications/configuration\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VerificationConstantsResponse\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\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\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport { AcsVerificationOperationsImpl } from \"./operations\";\nimport { AcsVerificationOperations } from \"./operationsInterfaces\";\nimport { RecipientVerificationClientOptionalParams } from \"./models\";\n\nexport class RecipientVerificationClient extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the RecipientVerificationClient class.\n * @param endpoint The communication resource, for example https://resourcename.communication.azure.com\n * @param options The parameter options\n */\n constructor(\n endpoint: string,\n options?: RecipientVerificationClientOptionalParams\n ) {\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: RecipientVerificationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-communication-recipient-verification/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint ?? options.baseUri ?? \"{endpoint}\"\n };\n super(optionsWithDefaults);\n\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n if (!bearerTokenAuthenticationPolicyFound) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n scopes: `${optionsWithDefaults.baseUri}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n }\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2022-11-15\";\n this.acsVerificationOperations = new AcsVerificationOperationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n acsVerificationOperations: AcsVerificationOperations;\n}\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { createClientLogger } from \"@azure/logger\";\n\n/**\n * The \\@azure\\/logger configuration for this package.\n */\nexport const logger = createClientLogger(\"communication-verified-recipients\");\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport {\n AcsVerificationGetVerificationsOptionalParams,\n AcsVerificationRequestVerificationOptionalParams,\n AcsVerificationRequestVerificationResponse,\n AcsVerificationVerifyIdentityOptionalParams,\n AcsVerificationVerifyIdentityResponse,\n AcsVerificationDeleteVerificationOptionalParams,\n AcsVerificationGetVerificationConstantsOptionalParams,\n} from \"./models\";\nimport { CommonClientOptions, InternalClientPipelineOptions } from \"@azure/core-client\";\nimport { KeyCredential, TokenCredential, isTokenCredential } from \"@azure/core-auth\";\nimport { AcsVerification, VerificationConstantsResponse } from \"./generated/src/models\";\nimport { createCommunicationAuthPolicy } from \"@azure/communication-common\";\nimport { isKeyCredential, parseClientArguments } from \"@azure/communication-common\";\nimport { RecipientVerificationClient as RecipientVerificationGeneratedClient } from \"./generated/src\";\nimport { logger } from \"./utils\";\nimport { tracingClient } from \"./generated/src/tracing\";\n\n/**\n * Client options used to configure the RecipientVerificationGeneratedClient API requests.\n */\nexport interface RecipientVerificationClientOptions extends CommonClientOptions {}\n\nconst isRecipientVerificationClientOptions = (\n options: any,\n): options is RecipientVerificationClientOptions =>\n options && !isKeyCredential(options) && !isTokenCredential(options);\n\n/**\n * Client class for interacting with Azure Communication Services Recipient Verification.\n */\nexport class RecipientVerificationClient {\n /**\n * A reference to the auto-generated RecipientVerification HTTP client.\n */\n private readonly client: RecipientVerificationGeneratedClient;\n\n /**\n * Initializes a new instance of the RecipientVerificationClient class using a connection string.\n *\n * @param connectionString - Connection string to connect to an Azure Communication Service resource. (eg: endpoint=https://contoso.eastus.communications.azure.net/;accesskey=secret)\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(connectionString: string, options?: RecipientVerificationClientOptions);\n\n /**\n * Initializes a new instance of the RecipientVerificationClient class using an Azure KeyCredential.\n *\n * @param endpoint - The endpoint of the service (eg: https://contoso.eastus.communications.azure.net)\n * @param credential - An object that is used to authenticate requests to the service. Use the Azure KeyCredential or `@azure/identity` to create a credential.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(\n endpoint: string,\n credential: KeyCredential,\n options?: RecipientVerificationClientOptions,\n );\n\n /**\n * Initializes a new instance of the RecipientVerificationClient class using an Azure KeyCredential.\n *\n * @param endpoint - The endpoint of the service (eg: https://contoso.eastus.communications.azure.net)\n * @param credential - An object that is used to authenticate requests to the service. Use the Azure KeyCredential or `@azure/identity` to create a credential.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(\n endpoint: string,\n credential: TokenCredential,\n options?: RecipientVerificationClientOptions,\n );\n\n public constructor(\n connectionStringOrUrl: string,\n credentialOrOptions?: KeyCredential | TokenCredential | RecipientVerificationClientOptions,\n maybeOptions: RecipientVerificationClientOptions = {},\n ) {\n const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions);\n const options = isRecipientVerificationClientOptions(credentialOrOptions)\n ? credentialOrOptions\n : maybeOptions;\n\n const internalPipelineOptions: InternalClientPipelineOptions = {\n ...options,\n ...{\n loggingOptions: {\n logger: logger.info,\n },\n },\n };\n\n this.client = new RecipientVerificationGeneratedClient(url, internalPipelineOptions);\n const authPolicy = createCommunicationAuthPolicy(credential);\n this.client.pipeline.addPolicy(authPolicy);\n }\n\n /**\n * Returns list of verified/pending phone numbers.\n *\n * @param options - Additional request options.\n */\n public getVerifications(\n options: AcsVerificationGetVerificationsOptionalParams = {},\n ): Promise<AcsVerification[]> {\n return tracingClient.withSpan(\n \"RecipientVerification.getVerifications\",\n options,\n (updatedOptions) => {\n return this.client.acsVerificationOperations.getVerifications(updatedOptions);\n },\n );\n }\n\n /**\n * Removes a pending/verified number.\n *\n * @param verificationId - Id that is used to reference users phone number.\n * @param options - Additional request options.\n */\n public deleteVerification(\n verificationId: string,\n options: AcsVerificationDeleteVerificationOptionalParams = {},\n ): Promise<void> {\n return tracingClient.withSpan(\n \"RecipientVerification.deleteVerification\",\n options,\n (updatedOptions) => {\n return this.client.acsVerificationOperations.deleteVerification(\n verificationId,\n updatedOptions,\n );\n },\n );\n }\n\n /**\n * Verifies a users phone number.\n *\n * @param verificationId - Id that is used to reference users phone number.\n * @param options - Additional request options.\n */\n public verifyIdentity(\n verificationId: string,\n options: AcsVerificationVerifyIdentityOptionalParams = {},\n ): Promise<AcsVerificationVerifyIdentityResponse> {\n return tracingClient.withSpan(\n \"RecipientVerification.verifyIdentity\",\n options,\n (updatedOptions) => {\n return this.client.acsVerificationOperations.verifyIdentity(verificationId, updatedOptions);\n },\n );\n }\n\n /**\n * Returns information about a resource in relation to recipient verification.\n *\n * @param options - Additional request options.\n */\n public getVerificationConstants(\n options: AcsVerificationGetVerificationConstantsOptionalParams = {},\n ): Promise<VerificationConstantsResponse> {\n return tracingClient.withSpan(\n \"RecipientVerification.getVerificationConstants\",\n options,\n (updatedOptions) => {\n return this.client.acsVerificationOperations.getVerificationConstants(updatedOptions);\n },\n );\n }\n\n /**\n * Sends a code to users phone number that will be used for verification.\n *\n * @param options - Additional request options.\n */\n public requestVerification(\n options: AcsVerificationRequestVerificationOptionalParams = {},\n ): Promise<AcsVerificationRequestVerificationResponse> {\n return tracingClient.withSpan(\n \"RecipientVerification.requestVerification\",\n options,\n (updatedOptions) => {\n return this.client.acsVerificationOperations.requestVerification(updatedOptions);\n },\n );\n }\n}\n"],"names":["createTracingClient","coreClient","Mappers.CommunicationErrorResponse","Parameters.apiVersion","Parameters.endpoint","Parameters.accept","Mappers.VerificationResponse","Mappers.VerificationRequest","Parameters.contentType","Mappers.VerificationCodeRequest","Parameters.verificationId","Mappers.VerificationConstantsResponse","coreRestPipeline","createClientLogger","isKeyCredential","isTokenCredential","parseClientArguments","RecipientVerificationGeneratedClient","createCommunicationAuthPolicy"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAMG;AAIU,MAAA,eAAe,GAA+B;AACzD,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,WAAW;AACjB,QAAA,SAAS,EAAE,iBAAiB;AAC5B,QAAA,eAAe,EAAE;AACf,YAAA,WAAW,EAAE;AACX,gBAAA,cAAc,EAAE,aAAa;AAC7B,gBAAA,IAAI,EAAE;AACJ,oBAAA,IAAI,EAAE,QAAQ;AACf,iBAAA;AACF,aAAA;AACD,YAAA,cAAc,EAAE;AACd,gBAAA,cAAc,EAAE,gBAAgB;AAChC,gBAAA,IAAI,EAAE;AACJ,oBAAA,IAAI,EAAE,QAAQ;AACf,iBAAA;AACF,aAAA;AACD,YAAA,MAAM,EA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AAc,CACnB,cAAsB,EACtB,OAAA,GAAuD,EAAE,EAAA;QAEzD,OAAO,aAAa,CAAC,QAAQ,CAC3B,sCAAsC,EACtC,OAAO,EACP,CAAC,cAAc,KAAI;AACjB,YAAA,OAAO,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,cAAc,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;AAC9F,SAAC,CACF,CAAC;KACH;AAED;;;;AAIG;IACI,wBAAwB,CAC7B,UAAiE,EAAE,EAAA;QAEnE,OAAO,aAAa,CAAC,QAAQ,CAC3B,gDAAgD,EAChD,OAAO,EACP,CAAC,cAAc,KAAI;YACjB,OAAO,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;AACxF,SAAC,CACF,CAAC;KACH;AAED;;;;AAIG;IACI,mBAAmB,CACxB,UAA4D,EAAE,EAAA;QAE9D,OAAO,aAAa,CAAC,QAAQ,CAC3B,2CAA2C,EAC3C,OAAO,EACP,CAAC,cAAc,KAAI;YACjB,OAAO,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC;AACnF,SAAC,CACF,CAAC;KACH;AACF;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/generated/src/models/mappers.ts","../src/generated/src/tracing.ts","../src/generated/src/models/parameters.ts","../src/generated/src/operations/acsVerificationOperations.ts","../src/generated/src/recipientVerificationClient.ts","../src/utils/logger.ts","../src/recipientVerificationClient.ts"],"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\nimport * as coreClient from \"@azure/core-client\";\n\nexport const AcsVerification: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AcsVerification\",\n modelProperties: {\n immutableId: {\n serializedName: \"ImmutableId\",\n type: {\n name: \"String\"\n }\n },\n verificationId: {\n serializedName: \"VerificationId\",\n type: {\n name: \"String\"\n }\n },\n status: {\n serializedName: \"Status\",\n type: {\n name: \"String\"\n }\n },\n subscriptionId: {\n serializedName: \"SubscriptionId\",\n type: {\n name: \"String\"\n }\n },\n identity: {\n serializedName: \"Identity\",\n type: {\n name: \"String\"\n }\n },\n challengeId: {\n serializedName: \"ChallengeId\",\n type: {\n name: \"String\"\n }\n },\n retries: {\n serializedName: \"Retries\",\n type: {\n name: \"Number\"\n }\n },\n attempts: {\n serializedName: \"Attempts\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const CommunicationErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const CommunicationError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationError\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n },\n innerError: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const VerificationRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"VerificationRequest\",\n modelProperties: {\n identity: {\n serializedName: \"Identity\",\n type: {\n name: \"String\"\n }\n },\n channel: {\n serializedName: \"Channel\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const VerificationResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"VerificationResponse\",\n modelProperties: {\n verificationId: {\n serializedName: \"VerificationId\",\n type: {\n name: \"String\"\n }\n },\n isVerified: {\n serializedName: \"IsVerified\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const VerificationCodeRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"VerificationCodeRequest\",\n modelProperties: {\n verificationCode: {\n serializedName: \"VerificationCode\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const VerificationConstantsResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"VerificationConstantsResponse\",\n modelProperties: {\n maxRetriesAllowed: {\n serializedName: \"MaxRetriesAllowed\",\n type: {\n name: \"Number\"\n }\n },\n maxVerificationsAllowed: {\n serializedName: \"MaxVerificationsAllowed\",\n type: {\n name: \"Number\"\n }\n },\n currentNumberOfVerifications: {\n serializedName: \"CurrentNumberOfVerifications\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n","/*\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\nimport { createTracingClient } from \"@azure/core-tracing\";\n\nexport const tracingClient = createTracingClient({\n namespace: \"Microsoft.Communication\",\n packageName: \"@azure/communication-recipient-verification\",\n packageVersion: \"1.0.0-beta.1\"\n});\n","/*\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\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport {\n VerificationRequest as VerificationRequestMapper,\n VerificationCodeRequest as VerificationCodeRequestMapper\n} from \"../models/mappers\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const endpoint: OperationURLParameter = {\n parameterPath: \"endpoint\",\n mapper: {\n serializedName: \"endpoint\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2022-11-15\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const identity: OperationParameter = {\n parameterPath: [\"options\", \"identity\"],\n mapper: VerificationRequestMapper\n};\n\nexport const channel: OperationParameter = {\n parameterPath: [\"options\", \"channel\"],\n mapper: VerificationRequestMapper\n};\n\nexport const verificationCode: OperationParameter = {\n parameterPath: [\"options\", \"verificationCode\"],\n mapper: VerificationCodeRequestMapper\n};\n\nexport const verificationId: OperationURLParameter = {\n parameterPath: \"verificationId\",\n mapper: {\n serializedName: \"verificationId\",\n required: true,\n type: {\n name: \"Uuid\"\n }\n }\n};\n","/*\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\nimport { tracingClient } from \"../tracing\";\nimport { AcsVerificationOperations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { RecipientVerificationClient } from \"../recipientVerificationClient\";\nimport {\n AcsVerificationGetVerificationsOptionalParams,\n AcsVerificationGetVerificationsResponse,\n AcsVerificationRequestVerificationOptionalParams,\n AcsVerificationRequestVerificationResponse,\n AcsVerificationVerifyIdentityOptionalParams,\n AcsVerificationVerifyIdentityResponse,\n AcsVerificationDeleteVerificationOptionalParams,\n AcsVerificationGetVerificationConstantsOptionalParams,\n AcsVerificationGetVerificationConstantsResponse\n} from \"../models\";\n\n/** Class containing AcsVerificationOperations operations. */\nexport class AcsVerificationOperationsImpl\n implements AcsVerificationOperations {\n private readonly client: RecipientVerificationClient;\n\n /**\n * Initialize a new instance of the class AcsVerificationOperations class.\n * @param client Reference to the service client\n */\n constructor(client: RecipientVerificationClient) {\n this.client = client;\n }\n\n /**\n * Gets the array of verified phone numbers for the current resource.\n * @param options The options parameters.\n */\n async getVerifications(\n options?: AcsVerificationGetVerificationsOptionalParams\n ): Promise<AcsVerificationGetVerificationsResponse> {\n return tracingClient.withSpan(\n \"RecipientVerificationClient.getVerifications\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getVerificationsOperationSpec\n ) as Promise<AcsVerificationGetVerificationsResponse>;\n }\n );\n }\n\n /**\n * Request the identity for the verification.\n * @param options The options parameters.\n */\n async requestVerification(\n options?: AcsVerificationRequestVerificationOptionalParams\n ): Promise<AcsVerificationRequestVerificationResponse> {\n return tracingClient.withSpan(\n \"RecipientVerificationClient.requestVerification\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n requestVerificationOperationSpec\n ) as Promise<AcsVerificationRequestVerificationResponse>;\n }\n );\n }\n\n /**\n * Verify that the user received the correct verification code.\n * @param verificationId Verification Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async verifyIdentity(\n verificationId: string,\n options?: AcsVerificationVerifyIdentityOptionalParams\n ): Promise<AcsVerificationVerifyIdentityResponse> {\n return tracingClient.withSpan(\n \"RecipientVerificationClient.verifyIdentity\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { verificationId, options },\n verifyIdentityOperationSpec\n ) as Promise<AcsVerificationVerifyIdentityResponse>;\n }\n );\n }\n\n /**\n * Deleting a verification.\n * @param verificationId Verification Id. Must be a valid GUID\n * @param options The options parameters.\n */\n async deleteVerification(\n verificationId: string,\n options?: AcsVerificationDeleteVerificationOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"RecipientVerificationClient.deleteVerification\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { verificationId, options },\n deleteVerificationOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Getting all the constants for the resource.\n * @param options The options parameters.\n */\n async getVerificationConstants(\n options?: AcsVerificationGetVerificationConstantsOptionalParams\n ): Promise<AcsVerificationGetVerificationConstantsResponse> {\n return tracingClient.withSpan(\n \"RecipientVerificationClient.getVerificationConstants\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n getVerificationConstantsOperationSpec\n ) as Promise<AcsVerificationGetVerificationConstantsResponse>;\n }\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getVerificationsOperationSpec: coreClient.OperationSpec = {\n path: \"/verifications\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"AcsVerification\" } }\n }\n }\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst requestVerificationOperationSpec: coreClient.OperationSpec = {\n path: \"/verifications\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.VerificationResponse\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: {\n identity: [\"options\", \"identity\"],\n channel: [\"options\", \"channel\"]\n },\n mapper: Mappers.VerificationRequest\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst verifyIdentityOperationSpec: coreClient.OperationSpec = {\n path: \"/verifications/{verificationId}/check\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.VerificationResponse\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: { verificationCode: [\"options\", \"verificationCode\"] },\n mapper: Mappers.VerificationCodeRequest\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.verificationId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteVerificationOperationSpec: coreClient.OperationSpec = {\n path: \"/verifications/{verificationId}/\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.verificationId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getVerificationConstantsOperationSpec: coreClient.OperationSpec = {\n path: \"/verifications/configuration\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VerificationConstantsResponse\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\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\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport { AcsVerificationOperationsImpl } from \"./operations\";\nimport { AcsVerificationOperations } from \"./operationsInterfaces\";\nimport { RecipientVerificationClientOptionalParams } from \"./models\";\n\nexport class RecipientVerificationClient extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the RecipientVerificationClient class.\n * @param endpoint The communication resource, for example https://resourcename.communication.azure.com\n * @param options The parameter options\n */\n constructor(\n endpoint: string,\n options?: RecipientVerificationClientOptionalParams\n ) {\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: RecipientVerificationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-communication-recipient-verification/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint ?? options.baseUri ?? \"{endpoint}\"\n };\n super(optionsWithDefaults);\n\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n if (!bearerTokenAuthenticationPolicyFound) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n scopes: `${optionsWithDefaults.baseUri}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n }\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2022-11-15\";\n this.acsVerificationOperations = new AcsVerificationOperationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n acsVerificationOperations: AcsVerificationOperations;\n}\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\n\n/**\n * The \\@azure\\/logger configuration for this package.\n */\nexport const logger = createClientLogger(\"communication-verified-recipients\");\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport {\n AcsVerificationGetVerificationsOptionalParams,\n AcsVerificationRequestVerificationOptionalParams,\n AcsVerificationRequestVerificationResponse,\n AcsVerificationVerifyIdentityOptionalParams,\n AcsVerificationVerifyIdentityResponse,\n AcsVerificationDeleteVerificationOptionalParams,\n AcsVerificationGetVerificationConstantsOptionalParams,\n} from \"./models\";\nimport { CommonClientOptions, InternalClientPipelineOptions } from \"@azure/core-client\";\nimport { KeyCredential, TokenCredential, isTokenCredential } from \"@azure/core-auth\";\nimport { AcsVerification, VerificationConstantsResponse } from \"./generated/src/models\";\nimport { createCommunicationAuthPolicy } from \"@azure/communication-common\";\nimport { isKeyCredential, parseClientArguments } from \"@azure/communication-common\";\nimport { RecipientVerificationClient as RecipientVerificationGeneratedClient } from \"./generated/src\";\nimport { logger } from \"./utils\";\nimport { tracingClient } from \"./generated/src/tracing\";\n\n/**\n * Client options used to configure the RecipientVerificationGeneratedClient API requests.\n */\nexport interface RecipientVerificationClientOptions extends CommonClientOptions {}\n\nconst isRecipientVerificationClientOptions = (\n options: any,\n): options is RecipientVerificationClientOptions =>\n options && !isKeyCredential(options) && !isTokenCredential(options);\n\n/**\n * Client class for interacting with Azure Communication Services Recipient Verification.\n */\nexport class RecipientVerificationClient {\n /**\n * A reference to the auto-generated RecipientVerification HTTP client.\n */\n private readonly client: RecipientVerificationGeneratedClient;\n\n /**\n * Initializes a new instance of the RecipientVerificationClient class using a connection string.\n *\n * @param connectionString - Connection string to connect to an Azure Communication Service resource. (eg: endpoint=https://contoso.eastus.communications.azure.net/;accesskey=secret)\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(connectionString: string, options?: RecipientVerificationClientOptions);\n\n /**\n * Initializes a new instance of the RecipientVerificationClient class using an Azure KeyCredential.\n *\n * @param endpoint - The endpoint of the service (eg: https://contoso.eastus.communications.azure.net)\n * @param credential - An object that is used to authenticate requests to the service. Use the Azure KeyCredential or `@azure/identity` to create a credential.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(\n endpoint: string,\n credential: KeyCredential,\n options?: RecipientVerificationClientOptions,\n );\n\n /**\n * Initializes a new instance of the RecipientVerificationClient class using an Azure KeyCredential.\n *\n * @param endpoint - The endpoint of the service (eg: https://contoso.eastus.communications.azure.net)\n * @param credential - An object that is used to authenticate requests to the service. Use the Azure KeyCredential or `@azure/identity` to create a credential.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(\n endpoint: string,\n credential: TokenCredential,\n options?: RecipientVerificationClientOptions,\n );\n\n public constructor(\n connectionStringOrUrl: string,\n credentialOrOptions?: KeyCredential | TokenCredential | RecipientVerificationClientOptions,\n maybeOptions: RecipientVerificationClientOptions = {},\n ) {\n const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions);\n const options = isRecipientVerificationClientOptions(credentialOrOptions)\n ? credentialOrOptions\n : maybeOptions;\n\n const internalPipelineOptions: InternalClientPipelineOptions = {\n ...options,\n ...{\n loggingOptions: {\n logger: logger.info,\n },\n },\n };\n\n this.client = new RecipientVerificationGeneratedClient(url, internalPipelineOptions);\n const authPolicy = createCommunicationAuthPolicy(credential);\n this.client.pipeline.addPolicy(authPolicy);\n }\n\n /**\n * Returns list of verified/pending phone numbers.\n *\n * @param options - Additional request options.\n */\n public getVerifications(\n options: AcsVerificationGetVerificationsOptionalParams = {},\n ): Promise<AcsVerification[]> {\n return tracingClient.withSpan(\n \"RecipientVerification.getVerifications\",\n options,\n (updatedOptions) => {\n return this.client.acsVerificationOperations.getVerifications(updatedOptions);\n },\n );\n }\n\n /**\n * Removes a pending/verified number.\n *\n * @param verificationId - Id that is used to reference users phone number.\n * @param options - Additional request options.\n */\n public deleteVerification(\n verificationId: string,\n options: AcsVerificationDeleteVerificationOptionalParams = {},\n ): Promise<void> {\n return tracingClient.withSpan(\n \"RecipientVerification.deleteVerification\",\n options,\n (updatedOptions) => {\n return this.client.acsVerificationOperations.deleteVerification(\n verificationId,\n updatedOptions,\n );\n },\n );\n }\n\n /**\n * Verifies a users phone number.\n *\n * @param verificationId - Id that is used to reference users phone number.\n * @param options - Additional request options.\n */\n public verifyIdentity(\n verificationId: string,\n options: AcsVerificationVerifyIdentityOptionalParams = {},\n ): Promise<AcsVerificationVerifyIdentityResponse> {\n return tracingClient.withSpan(\n \"RecipientVerification.verifyIdentity\",\n options,\n (updatedOptions) => {\n return this.client.acsVerificationOperations.verifyIdentity(verificationId, updatedOptions);\n },\n );\n }\n\n /**\n * Returns information about a resource in relation to recipient verification.\n *\n * @param options - Additional request options.\n */\n public getVerificationConstants(\n options: AcsVerificationGetVerificationConstantsOptionalParams = {},\n ): Promise<VerificationConstantsResponse> {\n return tracingClient.withSpan(\n \"RecipientVerification.getVerificationConstants\",\n options,\n (updatedOptions) => {\n return this.client.acsVerificationOperations.getVerificationConstants(updatedOptions);\n },\n );\n }\n\n /**\n * Sends a code to users phone number that will be used for verification.\n *\n * @param options - Additional request options.\n */\n public requestVerification(\n options: AcsVerificationRequestVerificationOptionalParams = {},\n ): Promise<AcsVerificationRequestVerificationResponse> {\n return tracingClient.withSpan(\n \"RecipientVerification.requestVerification\",\n options,\n (updatedOptions) => {\n return this.client.acsVerificationOperations.requestVerification(updatedOptions);\n },\n );\n }\n}\n"],"names":["createTracingClient","coreClient","Mappers.CommunicationErrorResponse","Parameters.apiVersion","Parameters.endpoint","Parameters.accept","Mappers.VerificationResponse","Mappers.VerificationRequest","Parameters.contentType","Mappers.VerificationCodeRequest","Parameters.verificationId","Mappers.VerificationConstantsResponse","coreRestPipeline","createClientLogger","isKeyCredential","isTokenCredential","parseClientArguments","RecipientVerificationGeneratedClient","createCommunicationAuthPolicy"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAMG;AAIU,MAAA,eAAe,GAA+B;AACzD,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,WAAW;AACjB,QAAA,SAAS,EAAE,iBAAiB;AAC5B,QAAA,eAAe,EAAE;AACf,YAAA,WAAW,EAAE;AACX,gBAAA,cAAc,EAAE,aAAa;AAC7B,gBAAA,IAAI,EAAE;AACJ,oBAAA,IAAI,EAAE,QAAQ;AACf,iBAAA;AACF,aAAA;AACD,YAAA,cAAc,EAAE;AACd,gBAAA,cAAc,EAAE,gBAAgB;AAChC,gBAAA,IAAI,EAAE;AACJ,oBAAA,IAAI,EAAE,QAAQ;AACf,iBAAA;AACF,aAAA;AACD,YAAA,MAAM,EAAE;AACN,gBAAA,cAAc,EAAE,QAAQ;AACxB,gBAAA,IAAI,EAAE;AACJ,oBAAA,IAAI,EAAE,QAAQ;AACf,iBAAA;AACF,aAAA;AACD,YAAA,cAAc,EAAE;AACd,gBAAA,cAAc,EAAE,gBAAgB;AAChC,gBAAA,IAAI,EAAE;AACJ,oBAAA,IAAI,EAAE,QAAQ;AACf,iBAAA;AACF,aAAA;AACD,YAAA,QAAQ,EAAE;AACR,gBAAA,cAAc,EAAE,UAAU;AAC1B,gBAAA,IAAI,EAAE;AACJ,oBAAA,IAAI,EAAE,QAAQ;AACf,iBAAA;AACF,aAAA;AACD,YAAA,WAAW,EA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O,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;AACxF,SAAC,CACF,CAAC;KACH;AAED;;;;AAIG;IACI,mBAAmB,CACxB,UAA4D,EAAE,EAAA;QAE9D,OAAO,aAAa,CAAC,QAAQ,CAC3B,2CAA2C,EAC3C,OAAO,EACP,CAAC,cAAc,KAAI;YACjB,OAAO,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC;AACnF,SAAC,CACF,CAAC;KACH;AACF;;;;;;;;;"}
|
package/dist-esm/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,+BAA+B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,+BAA+B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./models\";\nexport * from \"./mappers\";\nexport * from \"./recipientVerificationClient\";\n"]}
|
package/dist-esm/src/mappers.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
3
|
export { AcsVerification as AcsVerificationMapper } from "./generated/src/models/mappers";
|
|
4
4
|
export { VerificationConstantsResponse as ConstantsMapper } from "./generated/src/models/mappers";
|
|
5
5
|
export { VerificationCodeRequest as VerificationCodeRequestMapper } from "./generated/src/models/mappers";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../src/mappers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAAE,6BAA6B,IAAI,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAClG,OAAO,EAAE,uBAAuB,IAAI,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC1G,OAAO,EAAE,oBAAoB,IAAI,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AACpG,OAAO,EAAE,mBAAmB,IAAI,yBAAyB,EAAE,MAAM,gCAAgC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT
|
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../src/mappers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAAE,6BAA6B,IAAI,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAClG,OAAO,EAAE,uBAAuB,IAAI,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC1G,OAAO,EAAE,oBAAoB,IAAI,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AACpG,OAAO,EAAE,mBAAmB,IAAI,yBAAyB,EAAE,MAAM,gCAAgC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { AcsVerification as AcsVerificationMapper } from \"./generated/src/models/mappers\";\nexport { VerificationConstantsResponse as ConstantsMapper } from \"./generated/src/models/mappers\";\nexport { VerificationCodeRequest as VerificationCodeRequestMapper } from \"./generated/src/models/mappers\";\nexport { VerificationResponse as VerificationResponseMapper } from \"./generated/src/models/mappers\";\nexport { VerificationRequest as VerificationRequestMapper } from \"./generated/src/models/mappers\";\n"]}
|
package/dist-esm/src/models.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n AcsVerificationGetVerificationsOptionalParams,\n AcsVerificationGetVerificationsResponse,\n AcsVerificationRequestVerificationOptionalParams,\n AcsVerificationRequestVerificationResponse,\n AcsVerificationVerifyIdentityOptionalParams,\n AcsVerificationVerifyIdentityResponse,\n AcsVerificationDeleteVerificationOptionalParams,\n AcsVerificationGetVerificationConstantsOptionalParams,\n AcsVerificationGetVerificationConstantsResponse,\n AcsVerification,\n VerificationConstantsResponse,\n VerificationResponse,\n} from \"./generated/src/models\";\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
3
|
/// <reference lib="esnext.asynciterable" />
|
|
4
4
|
import { isTokenCredential } from "@azure/core-auth";
|
|
5
5
|
import { createCommunicationAuthPolicy } from "@azure/communication-common";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipientVerificationClient.js","sourceRoot":"","sources":["../../src/recipientVerificationClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,4CAA4C;AAY5C,OAAO,EAAkC,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErF,OAAO,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,6B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;;OAKG;IACI,kBAAkB,CACvB,cAAsB,EACtB,UAA2D,EAAE;QAE7D,OAAO,aAAa,CAAC,QAAQ,CAC3B,0CAA0C,EAC1C,OAAO,EACP,CAAC,cAAc,EAAE,EAAE;YACjB,OAAO,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,kBAAkB,CAC7D,cAAc,EACd,cAAc,CACf,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACI,cAAc,CACnB,cAAsB,EACtB,UAAuD,EAAE;QAEzD,OAAO,aAAa,CAAC,QAAQ,CAC3B,sCAAsC,EACtC,OAAO,EACP,CAAC,cAAc,EAAE,EAAE;YACjB,OAAO,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,cAAc,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;QAC9F,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACI,wBAAwB,CAC7B,UAAiE,EAAE;QAEnE,OAAO,aAAa,CAAC,QAAQ,CAC3B,gDAAgD,EAChD,OAAO,EACP,CAAC,cAAc,EAAE,EAAE;YACjB,OAAO,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;QACxF,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,UAA4D,EAAE;QAE9D,OAAO,aAAa,CAAC,QAAQ,CAC3B,2CAA2C,EAC3C,OAAO,EACP,CAAC,cAAc,EAAE,EAAE;YACjB,OAAO,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC;QACnF,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT
|
|
1
|
+
{"version":3,"file":"recipientVerificationClient.js","sourceRoot":"","sources":["../../src/recipientVerificationClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA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C;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport {\n AcsVerificationGetVerificationsOptionalParams,\n AcsVerificationRequestVerificationOptionalParams,\n AcsVerificationRequestVerificationResponse,\n AcsVerificationVerifyIdentityOptionalParams,\n AcsVerificationVerifyIdentityResponse,\n AcsVerificationDeleteVerificationOptionalParams,\n AcsVerificationGetVerificationConstantsOptionalParams,\n} from \"./models\";\nimport { CommonClientOptions, InternalClientPipelineOptions } from \"@azure/core-client\";\nimport { KeyCredential, TokenCredential, isTokenCredential } from \"@azure/core-auth\";\nimport { AcsVerification, VerificationConstantsResponse } from \"./generated/src/models\";\nimport { createCommunicationAuthPolicy } from \"@azure/communication-common\";\nimport { isKeyCredential, parseClientArguments } from \"@azure/communication-common\";\nimport { RecipientVerificationClient as RecipientVerificationGeneratedClient } from \"./generated/src\";\nimport { logger } from \"./utils\";\nimport { tracingClient } from \"./generated/src/tracing\";\n\n/**\n * Client options used to configure the RecipientVerificationGeneratedClient API requests.\n */\nexport interface RecipientVerificationClientOptions extends CommonClientOptions {}\n\nconst isRecipientVerificationClientOptions = (\n options: any,\n): options is RecipientVerificationClientOptions =>\n options && !isKeyCredential(options) && !isTokenCredential(options);\n\n/**\n * Client class for interacting with Azure Communication Services Recipient Verification.\n */\nexport class RecipientVerificationClient {\n /**\n * A reference to the auto-generated RecipientVerification HTTP client.\n */\n private readonly client: RecipientVerificationGeneratedClient;\n\n /**\n * Initializes a new instance of the RecipientVerificationClient class using a connection string.\n *\n * @param connectionString - Connection string to connect to an Azure Communication Service resource. (eg: endpoint=https://contoso.eastus.communications.azure.net/;accesskey=secret)\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(connectionString: string, options?: RecipientVerificationClientOptions);\n\n /**\n * Initializes a new instance of the RecipientVerificationClient class using an Azure KeyCredential.\n *\n * @param endpoint - The endpoint of the service (eg: https://contoso.eastus.communications.azure.net)\n * @param credential - An object that is used to authenticate requests to the service. Use the Azure KeyCredential or `@azure/identity` to create a credential.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(\n endpoint: string,\n credential: KeyCredential,\n options?: RecipientVerificationClientOptions,\n );\n\n /**\n * Initializes a new instance of the RecipientVerificationClient class using an Azure KeyCredential.\n *\n * @param endpoint - The endpoint of the service (eg: https://contoso.eastus.communications.azure.net)\n * @param credential - An object that is used to authenticate requests to the service. Use the Azure KeyCredential or `@azure/identity` to create a credential.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(\n endpoint: string,\n credential: TokenCredential,\n options?: RecipientVerificationClientOptions,\n );\n\n public constructor(\n connectionStringOrUrl: string,\n credentialOrOptions?: KeyCredential | TokenCredential | RecipientVerificationClientOptions,\n maybeOptions: RecipientVerificationClientOptions = {},\n ) {\n const { url, credential } = parseClientArguments(connectionStringOrUrl, credentialOrOptions);\n const options = isRecipientVerificationClientOptions(credentialOrOptions)\n ? credentialOrOptions\n : maybeOptions;\n\n const internalPipelineOptions: InternalClientPipelineOptions = {\n ...options,\n ...{\n loggingOptions: {\n logger: logger.info,\n },\n },\n };\n\n this.client = new RecipientVerificationGeneratedClient(url, internalPipelineOptions);\n const authPolicy = createCommunicationAuthPolicy(credential);\n this.client.pipeline.addPolicy(authPolicy);\n }\n\n /**\n * Returns list of verified/pending phone numbers.\n *\n * @param options - Additional request options.\n */\n public getVerifications(\n options: AcsVerificationGetVerificationsOptionalParams = {},\n ): Promise<AcsVerification[]> {\n return tracingClient.withSpan(\n \"RecipientVerification.getVerifications\",\n options,\n (updatedOptions) => {\n return this.client.acsVerificationOperations.getVerifications(updatedOptions);\n },\n );\n }\n\n /**\n * Removes a pending/verified number.\n *\n * @param verificationId - Id that is used to reference users phone number.\n * @param options - Additional request options.\n */\n public deleteVerification(\n verificationId: string,\n options: AcsVerificationDeleteVerificationOptionalParams = {},\n ): Promise<void> {\n return tracingClient.withSpan(\n \"RecipientVerification.deleteVerification\",\n options,\n (updatedOptions) => {\n return this.client.acsVerificationOperations.deleteVerification(\n verificationId,\n updatedOptions,\n );\n },\n );\n }\n\n /**\n * Verifies a users phone number.\n *\n * @param verificationId - Id that is used to reference users phone number.\n * @param options - Additional request options.\n */\n public verifyIdentity(\n verificationId: string,\n options: AcsVerificationVerifyIdentityOptionalParams = {},\n ): Promise<AcsVerificationVerifyIdentityResponse> {\n return tracingClient.withSpan(\n \"RecipientVerification.verifyIdentity\",\n options,\n (updatedOptions) => {\n return this.client.acsVerificationOperations.verifyIdentity(verificationId, updatedOptions);\n },\n );\n }\n\n /**\n * Returns information about a resource in relation to recipient verification.\n *\n * @param options - Additional request options.\n */\n public getVerificationConstants(\n options: AcsVerificationGetVerificationConstantsOptionalParams = {},\n ): Promise<VerificationConstantsResponse> {\n return tracingClient.withSpan(\n \"RecipientVerification.getVerificationConstants\",\n options,\n (updatedOptions) => {\n return this.client.acsVerificationOperations.getVerificationConstants(updatedOptions);\n },\n );\n }\n\n /**\n * Sends a code to users phone number that will be used for verification.\n *\n * @param options - Additional request options.\n */\n public requestVerification(\n options: AcsVerificationRequestVerificationOptionalParams = {},\n ): Promise<AcsVerificationRequestVerificationResponse> {\n return tracingClient.withSpan(\n \"RecipientVerification.requestVerification\",\n options,\n (updatedOptions) => {\n return this.client.acsVerificationOperations.requestVerification(updatedOptions);\n },\n );\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,CAAC,MAAM,WAAW,GAAW,cAAc,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,CAAC,MAAM,WAAW,GAAW,cAAc,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport const SDK_VERSION: string = \"1.0.0-beta.1\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./logger\";\nexport * from \"./constants\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,mCAAmC,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,mCAAmC,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\n\n/**\n * The \\@azure\\/logger configuration for this package.\n */\nexport const logger = createClientLogger(\"communication-verified-recipients\");\n"]}
|