@azure-tools/communication-recipient-verification 1.0.0-alpha.20241111.2 → 1.0.0-alpha.20241113.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/browser/generated/src/index.d.ts +4 -0
- package/dist/browser/generated/src/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/index.js +3 -3
- package/dist/browser/generated/src/index.js.map +1 -0
- package/dist/browser/generated/src/models/index.d.ts +112 -0
- package/dist/browser/generated/src/models/index.d.ts.map +1 -0
- package/dist/browser/generated/src/models/mappers.d.ts +9 -0
- package/dist/browser/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/browser/generated/src/models/parameters.d.ts +10 -0
- package/dist/browser/generated/src/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/models/parameters.js +1 -1
- package/{dist-esm/src → dist/browser}/generated/src/models/parameters.js.map +1 -1
- package/dist/browser/generated/src/operations/acsVerificationOperations.d.ts +40 -0
- package/dist/browser/generated/src/operations/acsVerificationOperations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/operations/acsVerificationOperations.js +3 -3
- package/dist/browser/generated/src/operations/acsVerificationOperations.js.map +1 -0
- package/dist/browser/generated/src/operations/index.d.ts +2 -0
- package/dist/browser/generated/src/operations/index.d.ts.map +1 -0
- package/dist/browser/generated/src/operations/index.js +9 -0
- package/{dist-esm/src → dist/browser}/generated/src/operations/index.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/acsVerificationOperations.d.ts +32 -0
- package/dist/browser/generated/src/operationsInterfaces/acsVerificationOperations.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/acsVerificationOperations.js.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts +2 -0
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/index.js +9 -0
- package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/generated/src/recipientVerificationClient.d.ts +17 -0
- package/dist/browser/generated/src/recipientVerificationClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/recipientVerificationClient.js +1 -1
- package/dist/browser/generated/src/recipientVerificationClient.js.map +1 -0
- package/dist/browser/generated/src/tracing.d.ts +2 -0
- package/dist/browser/generated/src/tracing.d.ts.map +1 -0
- package/dist/browser/index.d.ts +4 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +6 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/mappers.d.ts +6 -0
- package/dist/browser/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/mappers.js +5 -5
- package/dist/browser/mappers.js.map +1 -0
- package/dist/browser/models.d.ts +2 -0
- package/dist/browser/models.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models.js.map +1 -1
- package/dist/browser/package.json +3 -0
- package/dist/browser/recipientVerificationClient.d.ts +74 -0
- package/dist/browser/recipientVerificationClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/recipientVerificationClient.js +3 -3
- package/dist/browser/recipientVerificationClient.js.map +1 -0
- package/dist/browser/utils/constants.d.ts +2 -0
- package/dist/browser/utils/constants.d.ts.map +1 -0
- package/dist/browser/utils/index.d.ts +3 -0
- package/dist/browser/utils/index.d.ts.map +1 -0
- package/dist/browser/utils/index.js +5 -0
- package/dist/browser/utils/index.js.map +1 -0
- package/dist/browser/utils/logger.d.ts +5 -0
- package/dist/browser/utils/logger.d.ts.map +1 -0
- package/dist/commonjs/generated/src/index.d.ts +4 -0
- package/dist/commonjs/generated/src/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/index.js +16 -0
- package/dist/commonjs/generated/src/index.js.map +1 -0
- package/dist/commonjs/generated/src/models/index.d.ts +112 -0
- package/dist/commonjs/generated/src/models/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/index.js +10 -0
- package/dist/commonjs/generated/src/models/index.js.map +1 -0
- package/dist/commonjs/generated/src/models/mappers.d.ts +9 -0
- package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/mappers.js +211 -0
- package/dist/commonjs/generated/src/models/mappers.js.map +1 -0
- package/dist/commonjs/generated/src/models/parameters.d.ts +10 -0
- package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/parameters.js +78 -0
- package/dist/commonjs/generated/src/models/parameters.js.map +1 -0
- package/dist/commonjs/generated/src/operations/acsVerificationOperations.d.ts +40 -0
- package/dist/commonjs/generated/src/operations/acsVerificationOperations.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/acsVerificationOperations.js +172 -0
- package/dist/commonjs/generated/src/operations/acsVerificationOperations.js.map +1 -0
- package/dist/commonjs/generated/src/operations/index.d.ts +2 -0
- package/dist/commonjs/generated/src/operations/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/index.js +12 -0
- package/dist/commonjs/generated/src/operations/index.js.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/acsVerificationOperations.d.ts +32 -0
- package/dist/commonjs/generated/src/operationsInterfaces/acsVerificationOperations.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/acsVerificationOperations.js +10 -0
- package/dist/commonjs/generated/src/operationsInterfaces/acsVerificationOperations.js.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +2 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.js +12 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/generated/src/recipientVerificationClient.d.ts +17 -0
- package/dist/commonjs/generated/src/recipientVerificationClient.d.ts.map +1 -0
- package/dist/commonjs/generated/src/recipientVerificationClient.js +91 -0
- package/dist/commonjs/generated/src/recipientVerificationClient.js.map +1 -0
- package/dist/commonjs/generated/src/tracing.d.ts +2 -0
- package/dist/commonjs/generated/src/tracing.d.ts.map +1 -0
- package/dist/commonjs/generated/src/tracing.js +17 -0
- package/dist/commonjs/generated/src/tracing.js.map +1 -0
- package/dist/commonjs/index.d.ts +4 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +9 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/mappers.d.ts +6 -0
- package/dist/commonjs/mappers.d.ts.map +1 -0
- package/dist/commonjs/mappers.js +16 -0
- package/dist/commonjs/mappers.js.map +1 -0
- package/dist/commonjs/models.d.ts +2 -0
- package/dist/commonjs/models.d.ts.map +1 -0
- package/dist/commonjs/models.js +5 -0
- package/dist/commonjs/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/recipientVerificationClient.d.ts +74 -0
- package/dist/commonjs/recipientVerificationClient.d.ts.map +1 -0
- package/dist/commonjs/recipientVerificationClient.js +86 -0
- package/dist/commonjs/recipientVerificationClient.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/commonjs/utils/constants.d.ts +2 -0
- package/dist/commonjs/utils/constants.d.ts.map +1 -0
- package/dist/commonjs/utils/constants.js +7 -0
- package/dist/commonjs/utils/constants.js.map +1 -0
- package/dist/commonjs/utils/index.d.ts +3 -0
- package/dist/commonjs/utils/index.d.ts.map +1 -0
- package/dist/commonjs/utils/index.js +8 -0
- package/dist/commonjs/utils/index.js.map +1 -0
- package/dist/commonjs/utils/logger.d.ts +5 -0
- package/dist/commonjs/utils/logger.d.ts.map +1 -0
- package/dist/commonjs/utils/logger.js +11 -0
- package/dist/commonjs/utils/logger.js.map +1 -0
- package/dist/esm/generated/src/index.d.ts +4 -0
- package/dist/esm/generated/src/index.d.ts.map +1 -0
- package/dist/esm/generated/src/index.js +11 -0
- package/dist/esm/generated/src/index.js.map +1 -0
- package/dist/esm/generated/src/models/index.d.ts +112 -0
- package/dist/esm/generated/src/models/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/src/operationsInterfaces → dist/esm/generated/src/models}/index.js +1 -1
- package/dist/esm/generated/src/models/index.js.map +1 -0
- package/dist/esm/generated/src/models/mappers.d.ts +9 -0
- package/dist/esm/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/esm/generated/src/models/mappers.js +208 -0
- package/dist/esm/generated/src/models/mappers.js.map +1 -0
- package/dist/esm/generated/src/models/parameters.d.ts +10 -0
- package/dist/esm/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/esm/generated/src/models/parameters.js +75 -0
- package/dist/esm/generated/src/models/parameters.js.map +1 -0
- package/dist/esm/generated/src/operations/acsVerificationOperations.d.ts +40 -0
- package/dist/esm/generated/src/operations/acsVerificationOperations.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/acsVerificationOperations.js +167 -0
- package/dist/esm/generated/src/operations/acsVerificationOperations.js.map +1 -0
- package/dist/esm/generated/src/operations/index.d.ts +2 -0
- package/dist/esm/generated/src/operations/index.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/index.js +9 -0
- package/dist/esm/generated/src/operations/index.js.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/acsVerificationOperations.d.ts +32 -0
- package/dist/esm/generated/src/operationsInterfaces/acsVerificationOperations.d.ts.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/acsVerificationOperations.js +9 -0
- package/dist/esm/generated/src/operationsInterfaces/acsVerificationOperations.js.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts +2 -0
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/index.js +9 -0
- package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/generated/src/recipientVerificationClient.d.ts +17 -0
- package/dist/esm/generated/src/recipientVerificationClient.d.ts.map +1 -0
- package/dist/esm/generated/src/recipientVerificationClient.js +86 -0
- package/dist/esm/generated/src/recipientVerificationClient.js.map +1 -0
- package/dist/esm/generated/src/tracing.d.ts +2 -0
- package/dist/esm/generated/src/tracing.d.ts.map +1 -0
- package/dist/esm/generated/src/tracing.js +14 -0
- package/dist/esm/generated/src/tracing.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/mappers.d.ts +6 -0
- package/dist/esm/mappers.d.ts.map +1 -0
- package/dist/esm/mappers.js +8 -0
- package/dist/esm/mappers.js.map +1 -0
- package/dist/esm/models.d.ts +2 -0
- package/dist/esm/models.d.ts.map +1 -0
- package/dist/esm/models.js +4 -0
- package/dist/esm/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/recipientVerificationClient.d.ts +74 -0
- package/dist/esm/recipientVerificationClient.d.ts.map +1 -0
- package/dist/esm/recipientVerificationClient.js +82 -0
- package/dist/esm/recipientVerificationClient.js.map +1 -0
- package/dist/esm/utils/constants.d.ts +2 -0
- package/dist/esm/utils/constants.d.ts.map +1 -0
- package/dist/esm/utils/constants.js +4 -0
- package/dist/esm/utils/constants.js.map +1 -0
- package/dist/esm/utils/index.d.ts +3 -0
- package/dist/esm/utils/index.d.ts.map +1 -0
- package/dist/esm/utils/index.js +5 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/dist/esm/utils/logger.d.ts +5 -0
- package/dist/esm/utils/logger.d.ts.map +1 -0
- package/dist/esm/utils/logger.js +8 -0
- package/dist/esm/utils/logger.js.map +1 -0
- package/dist/react-native/generated/src/index.d.ts +4 -0
- package/dist/react-native/generated/src/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/index.js +11 -0
- package/dist/react-native/generated/src/index.js.map +1 -0
- package/dist/react-native/generated/src/models/index.d.ts +112 -0
- package/dist/react-native/generated/src/models/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/src/operations → dist/react-native/generated/src/models}/index.js +1 -1
- package/dist/react-native/generated/src/models/index.js.map +1 -0
- package/dist/react-native/generated/src/models/mappers.d.ts +9 -0
- package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/mappers.js +208 -0
- package/dist/react-native/generated/src/models/mappers.js.map +1 -0
- package/dist/react-native/generated/src/models/parameters.d.ts +10 -0
- package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/parameters.js +75 -0
- package/dist/react-native/generated/src/models/parameters.js.map +1 -0
- package/dist/react-native/generated/src/operations/acsVerificationOperations.d.ts +40 -0
- package/dist/react-native/generated/src/operations/acsVerificationOperations.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/acsVerificationOperations.js +167 -0
- package/dist/react-native/generated/src/operations/acsVerificationOperations.js.map +1 -0
- package/dist/react-native/generated/src/operations/index.d.ts +2 -0
- package/dist/react-native/generated/src/operations/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/index.js +9 -0
- package/dist/react-native/generated/src/operations/index.js.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/acsVerificationOperations.d.ts +32 -0
- package/dist/react-native/generated/src/operationsInterfaces/acsVerificationOperations.d.ts.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/acsVerificationOperations.js +9 -0
- package/dist/react-native/generated/src/operationsInterfaces/acsVerificationOperations.js.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +2 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.js +9 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/generated/src/recipientVerificationClient.d.ts +17 -0
- package/dist/react-native/generated/src/recipientVerificationClient.d.ts.map +1 -0
- package/dist/react-native/generated/src/recipientVerificationClient.js +86 -0
- package/dist/react-native/generated/src/recipientVerificationClient.js.map +1 -0
- package/dist/react-native/generated/src/tracing.d.ts +2 -0
- package/dist/react-native/generated/src/tracing.d.ts.map +1 -0
- package/dist/react-native/generated/src/tracing.js +14 -0
- package/dist/react-native/generated/src/tracing.js.map +1 -0
- package/dist/react-native/index.d.ts +4 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +6 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/mappers.d.ts +6 -0
- package/dist/react-native/mappers.d.ts.map +1 -0
- package/dist/react-native/mappers.js +8 -0
- package/dist/react-native/mappers.js.map +1 -0
- package/dist/react-native/models.d.ts +2 -0
- package/dist/react-native/models.d.ts.map +1 -0
- package/dist/react-native/models.js +4 -0
- package/dist/react-native/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/recipientVerificationClient.d.ts +74 -0
- package/dist/react-native/recipientVerificationClient.d.ts.map +1 -0
- package/dist/react-native/recipientVerificationClient.js +82 -0
- package/dist/react-native/recipientVerificationClient.js.map +1 -0
- package/dist/react-native/utils/constants.d.ts +2 -0
- package/dist/react-native/utils/constants.d.ts.map +1 -0
- package/dist/react-native/utils/constants.js +4 -0
- package/dist/react-native/utils/constants.js.map +1 -0
- package/dist/react-native/utils/index.d.ts +3 -0
- package/dist/react-native/utils/index.d.ts.map +1 -0
- package/dist/react-native/utils/index.js +5 -0
- package/dist/react-native/utils/index.js.map +1 -0
- package/dist/react-native/utils/logger.d.ts +5 -0
- package/dist/react-native/utils/logger.d.ts.map +1 -0
- package/dist/react-native/utils/logger.js +8 -0
- package/dist/react-native/utils/logger.js.map +1 -0
- package/package.json +57 -37
- package/dist/index.js +0 -661
- package/dist/index.js.map +0 -1
- package/dist-esm/src/generated/src/index.js.map +0 -1
- package/dist-esm/src/generated/src/operations/acsVerificationOperations.js.map +0 -1
- package/dist-esm/src/generated/src/operationsInterfaces/acsVerificationOperations.js.map +0 -1
- package/dist-esm/src/generated/src/recipientVerificationClient.js.map +0 -1
- package/dist-esm/src/index.js +0 -6
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/mappers.js.map +0 -1
- package/dist-esm/src/recipientVerificationClient.js.map +0 -1
- package/dist-esm/src/utils/index.js +0 -5
- package/dist-esm/src/utils/index.js.map +0 -1
- /package/{dist-esm/src → dist/browser}/generated/src/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/models/index.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/acsVerificationOperations.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/tracing.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/tracing.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/models.js +0 -0
- /package/{dist-esm/src → dist/browser}/utils/constants.js +0 -0
- /package/{dist-esm/src → dist/browser}/utils/constants.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/utils/logger.js +0 -0
- /package/{dist-esm/src → dist/browser}/utils/logger.js.map +0 -0
- /package/{types → dist}/communication-recipient-verification.d.ts +0 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { tracingClient } from "../tracing.js";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
12
|
+
/** Class containing AcsVerificationOperations operations. */
|
|
13
|
+
export class AcsVerificationOperationsImpl {
|
|
14
|
+
/**
|
|
15
|
+
* Initialize a new instance of the class AcsVerificationOperations class.
|
|
16
|
+
* @param client Reference to the service client
|
|
17
|
+
*/
|
|
18
|
+
constructor(client) {
|
|
19
|
+
this.client = client;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Gets the array of verified phone numbers for the current resource.
|
|
23
|
+
* @param options The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
async getVerifications(options) {
|
|
26
|
+
return tracingClient.withSpan("RecipientVerificationClient.getVerifications", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
27
|
+
return this.client.sendOperationRequest({ options }, getVerificationsOperationSpec);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Request the identity for the verification.
|
|
32
|
+
* @param options The options parameters.
|
|
33
|
+
*/
|
|
34
|
+
async requestVerification(options) {
|
|
35
|
+
return tracingClient.withSpan("RecipientVerificationClient.requestVerification", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
36
|
+
return this.client.sendOperationRequest({ options }, requestVerificationOperationSpec);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Verify that the user received the correct verification code.
|
|
41
|
+
* @param verificationId Verification Id. Must be a valid GUID
|
|
42
|
+
* @param options The options parameters.
|
|
43
|
+
*/
|
|
44
|
+
async verifyIdentity(verificationId, options) {
|
|
45
|
+
return tracingClient.withSpan("RecipientVerificationClient.verifyIdentity", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
46
|
+
return this.client.sendOperationRequest({ verificationId, options }, verifyIdentityOperationSpec);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Deleting a verification.
|
|
51
|
+
* @param verificationId Verification Id. Must be a valid GUID
|
|
52
|
+
* @param options The options parameters.
|
|
53
|
+
*/
|
|
54
|
+
async deleteVerification(verificationId, options) {
|
|
55
|
+
return tracingClient.withSpan("RecipientVerificationClient.deleteVerification", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
56
|
+
return this.client.sendOperationRequest({ verificationId, options }, deleteVerificationOperationSpec);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Getting all the constants for the resource.
|
|
61
|
+
* @param options The options parameters.
|
|
62
|
+
*/
|
|
63
|
+
async getVerificationConstants(options) {
|
|
64
|
+
return tracingClient.withSpan("RecipientVerificationClient.getVerificationConstants", options !== null && options !== void 0 ? options : {}, async (options) => {
|
|
65
|
+
return this.client.sendOperationRequest({ options }, getVerificationConstantsOperationSpec);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
// Operation Specifications
|
|
70
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
71
|
+
const getVerificationsOperationSpec = {
|
|
72
|
+
path: "/verifications",
|
|
73
|
+
httpMethod: "GET",
|
|
74
|
+
responses: {
|
|
75
|
+
200: {
|
|
76
|
+
bodyMapper: {
|
|
77
|
+
type: {
|
|
78
|
+
name: "Sequence",
|
|
79
|
+
element: { type: { name: "Composite", className: "AcsVerification" } }
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
default: {
|
|
84
|
+
bodyMapper: Mappers.CommunicationErrorResponse
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
queryParameters: [Parameters.apiVersion],
|
|
88
|
+
urlParameters: [Parameters.endpoint],
|
|
89
|
+
headerParameters: [Parameters.accept],
|
|
90
|
+
serializer
|
|
91
|
+
};
|
|
92
|
+
const requestVerificationOperationSpec = {
|
|
93
|
+
path: "/verifications",
|
|
94
|
+
httpMethod: "POST",
|
|
95
|
+
responses: {
|
|
96
|
+
200: {
|
|
97
|
+
bodyMapper: Mappers.VerificationResponse
|
|
98
|
+
},
|
|
99
|
+
default: {
|
|
100
|
+
bodyMapper: Mappers.CommunicationErrorResponse
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
requestBody: {
|
|
104
|
+
parameterPath: {
|
|
105
|
+
identity: ["options", "identity"],
|
|
106
|
+
channel: ["options", "channel"]
|
|
107
|
+
},
|
|
108
|
+
mapper: Mappers.VerificationRequest
|
|
109
|
+
},
|
|
110
|
+
queryParameters: [Parameters.apiVersion],
|
|
111
|
+
urlParameters: [Parameters.endpoint],
|
|
112
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
113
|
+
mediaType: "json",
|
|
114
|
+
serializer
|
|
115
|
+
};
|
|
116
|
+
const verifyIdentityOperationSpec = {
|
|
117
|
+
path: "/verifications/{verificationId}/check",
|
|
118
|
+
httpMethod: "POST",
|
|
119
|
+
responses: {
|
|
120
|
+
200: {
|
|
121
|
+
bodyMapper: Mappers.VerificationResponse
|
|
122
|
+
},
|
|
123
|
+
default: {
|
|
124
|
+
bodyMapper: Mappers.CommunicationErrorResponse
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
requestBody: {
|
|
128
|
+
parameterPath: { verificationCode: ["options", "verificationCode"] },
|
|
129
|
+
mapper: Mappers.VerificationCodeRequest
|
|
130
|
+
},
|
|
131
|
+
queryParameters: [Parameters.apiVersion],
|
|
132
|
+
urlParameters: [Parameters.endpoint, Parameters.verificationId],
|
|
133
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
134
|
+
mediaType: "json",
|
|
135
|
+
serializer
|
|
136
|
+
};
|
|
137
|
+
const deleteVerificationOperationSpec = {
|
|
138
|
+
path: "/verifications/{verificationId}/",
|
|
139
|
+
httpMethod: "DELETE",
|
|
140
|
+
responses: {
|
|
141
|
+
200: {},
|
|
142
|
+
default: {
|
|
143
|
+
bodyMapper: Mappers.CommunicationErrorResponse
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
queryParameters: [Parameters.apiVersion],
|
|
147
|
+
urlParameters: [Parameters.endpoint, Parameters.verificationId],
|
|
148
|
+
headerParameters: [Parameters.accept],
|
|
149
|
+
serializer
|
|
150
|
+
};
|
|
151
|
+
const getVerificationConstantsOperationSpec = {
|
|
152
|
+
path: "/verifications/configuration",
|
|
153
|
+
httpMethod: "GET",
|
|
154
|
+
responses: {
|
|
155
|
+
200: {
|
|
156
|
+
bodyMapper: Mappers.VerificationConstantsResponse
|
|
157
|
+
},
|
|
158
|
+
default: {
|
|
159
|
+
bodyMapper: Mappers.CommunicationErrorResponse
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
queryParameters: [Parameters.apiVersion],
|
|
163
|
+
urlParameters: [Parameters.endpoint],
|
|
164
|
+
headerParameters: [Parameters.accept],
|
|
165
|
+
serializer
|
|
166
|
+
};
|
|
167
|
+
//# sourceMappingURL=acsVerificationOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acsVerificationOperations.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/acsVerificationOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AActD,6DAA6D;AAC7D,MAAM,OAAO,6BAA6B;IAIxC;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAAuD;QAEvD,OAAO,aAAa,CAAC,QAAQ,CAC3B,8CAA8C,EAC9C,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,OAAO,EAAE,EAAE;YAChB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,EACX,6BAA6B,CACsB,CAAC;QACxD,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAA0D;QAE1D,OAAO,aAAa,CAAC,QAAQ,CAC3B,iDAAiD,EACjD,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,OAAO,EAAE,EAAE;Y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EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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\nimport { tracingClient } from \"../tracing.js\";\nimport { AcsVerificationOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { RecipientVerificationClient } from \"../recipientVerificationClient.js\";\nimport {\n AcsVerificationGetVerificationsOptionalParams,\n AcsVerificationGetVerificationsResponse,\n AcsVerificationRequestVerificationOptionalParams,\n AcsVerificationRequestVerificationResponse,\n AcsVerificationVerifyIdentityOptionalParams,\n AcsVerificationVerifyIdentityResponse,\n AcsVerificationDeleteVerificationOptionalParams,\n AcsVerificationGetVerificationConstantsOptionalParams,\n AcsVerificationGetVerificationConstantsResponse\n} from \"../models/index.js\";\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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./acsVerificationOperations.js";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,gCAAgC,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 \"./acsVerificationOperations.js\";\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AcsVerificationGetVerificationsOptionalParams, AcsVerificationGetVerificationsResponse, AcsVerificationRequestVerificationOptionalParams, AcsVerificationRequestVerificationResponse, AcsVerificationVerifyIdentityOptionalParams, AcsVerificationVerifyIdentityResponse, AcsVerificationDeleteVerificationOptionalParams, AcsVerificationGetVerificationConstantsOptionalParams, AcsVerificationGetVerificationConstantsResponse } from "../models/index.js";
|
|
2
|
+
/** Interface representing a AcsVerificationOperations. */
|
|
3
|
+
export interface AcsVerificationOperations {
|
|
4
|
+
/**
|
|
5
|
+
* Gets the array of verified phone numbers for the current resource.
|
|
6
|
+
* @param options The options parameters.
|
|
7
|
+
*/
|
|
8
|
+
getVerifications(options?: AcsVerificationGetVerificationsOptionalParams): Promise<AcsVerificationGetVerificationsResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Request the identity for the verification.
|
|
11
|
+
* @param options The options parameters.
|
|
12
|
+
*/
|
|
13
|
+
requestVerification(options?: AcsVerificationRequestVerificationOptionalParams): Promise<AcsVerificationRequestVerificationResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Verify that the user received the correct verification code.
|
|
16
|
+
* @param verificationId Verification Id. Must be a valid GUID
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
verifyIdentity(verificationId: string, options?: AcsVerificationVerifyIdentityOptionalParams): Promise<AcsVerificationVerifyIdentityResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Deleting a verification.
|
|
22
|
+
* @param verificationId Verification Id. Must be a valid GUID
|
|
23
|
+
* @param options The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
deleteVerification(verificationId: string, options?: AcsVerificationDeleteVerificationOptionalParams): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Getting all the constants for the resource.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
getVerificationConstants(options?: AcsVerificationGetVerificationConstantsOptionalParams): Promise<AcsVerificationGetVerificationConstantsResponse>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=acsVerificationOperations.d.ts.map
|
package/dist/react-native/generated/src/operationsInterfaces/acsVerificationOperations.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acsVerificationOperations.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/acsVerificationOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,6CAA6C,EAC7C,uCAAuC,EACvC,gDAAgD,EAChD,0CAA0C,EAC1C,2CAA2C,EAC3C,qCAAqC,EACrC,+CAA+C,EAC/C,qDAAqD,EACrD,+CAA+C,EAChD,MAAM,oBAAoB,CAAC;AAE5B,0DAA0D;AAC1D,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,gBAAgB,CACd,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,uCAAuC,CAAC,CAAC;IACpD;;;OAGG;IACH,mBAAmB,CACjB,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,0CAA0C,CAAC,CAAC;IACvD;;;;OAIG;IACH,cAAc,CACZ,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC,CAAC;IAClD;;;;OAIG;IACH,kBAAkB,CAChB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;OAGG;IACH,wBAAwB,CACtB,OAAO,CAAC,EAAE,qDAAqD,GAC9D,OAAO,CAAC,+CAA+C,CAAC,CAAC;CAC7D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=acsVerificationOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acsVerificationOperations.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/acsVerificationOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 {\n AcsVerificationGetVerificationsOptionalParams,\n AcsVerificationGetVerificationsResponse,\n AcsVerificationRequestVerificationOptionalParams,\n AcsVerificationRequestVerificationResponse,\n AcsVerificationVerifyIdentityOptionalParams,\n AcsVerificationVerifyIdentityResponse,\n AcsVerificationDeleteVerificationOptionalParams,\n AcsVerificationGetVerificationConstantsOptionalParams,\n AcsVerificationGetVerificationConstantsResponse\n} from \"../models/index.js\";\n\n/** Interface representing a AcsVerificationOperations. */\nexport interface AcsVerificationOperations {\n /**\n * Gets the array of verified phone numbers for the current resource.\n * @param options The options parameters.\n */\n getVerifications(\n options?: AcsVerificationGetVerificationsOptionalParams\n ): Promise<AcsVerificationGetVerificationsResponse>;\n /**\n * Request the identity for the verification.\n * @param options The options parameters.\n */\n requestVerification(\n options?: AcsVerificationRequestVerificationOptionalParams\n ): Promise<AcsVerificationRequestVerificationResponse>;\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 verifyIdentity(\n verificationId: string,\n options?: AcsVerificationVerifyIdentityOptionalParams\n ): Promise<AcsVerificationVerifyIdentityResponse>;\n /**\n * Deleting a verification.\n * @param verificationId Verification Id. Must be a valid GUID\n * @param options The options parameters.\n */\n deleteVerification(\n verificationId: string,\n options?: AcsVerificationDeleteVerificationOptionalParams\n ): Promise<void>;\n /**\n * Getting all the constants for the resource.\n * @param options The options parameters.\n */\n getVerificationConstants(\n options?: AcsVerificationGetVerificationConstantsOptionalParams\n ): Promise<AcsVerificationGetVerificationConstantsResponse>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./acsVerificationOperations.js";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,gCAAgC,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 \"./acsVerificationOperations.js\";\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import { AcsVerificationOperations } from "./operationsInterfaces/index.js";
|
|
3
|
+
import { RecipientVerificationClientOptionalParams } from "./models/index.js";
|
|
4
|
+
export declare class RecipientVerificationClient extends coreClient.ServiceClient {
|
|
5
|
+
endpoint: string;
|
|
6
|
+
apiVersion: string;
|
|
7
|
+
/**
|
|
8
|
+
* Initializes a new instance of the RecipientVerificationClient class.
|
|
9
|
+
* @param endpoint The communication resource, for example https://resourcename.communication.azure.com
|
|
10
|
+
* @param options The parameter options
|
|
11
|
+
*/
|
|
12
|
+
constructor(endpoint: string, options?: RecipientVerificationClientOptionalParams);
|
|
13
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
14
|
+
private addCustomApiVersionPolicy;
|
|
15
|
+
acsVerificationOperations: AcsVerificationOperations;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=recipientVerificationClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipientVerificationClient.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/recipientVerificationClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAQjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,yCAAyC,EAAE,MAAM,mBAAmB,CAAC;AAE9E,qBAAa,2BAA4B,SAAQ,UAAU,CAAC,aAAa;IACvE,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;gBAED,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,yCAAyC;IA6DrD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,yBAAyB,EAAE,yBAAyB,CAAC;CACtD"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
|
+
import { AcsVerificationOperationsImpl } from "./operations/index.js";
|
|
11
|
+
export class RecipientVerificationClient extends coreClient.ServiceClient {
|
|
12
|
+
/**
|
|
13
|
+
* Initializes a new instance of the RecipientVerificationClient class.
|
|
14
|
+
* @param endpoint The communication resource, for example https://resourcename.communication.azure.com
|
|
15
|
+
* @param options The parameter options
|
|
16
|
+
*/
|
|
17
|
+
constructor(endpoint, options) {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
if (endpoint === undefined) {
|
|
20
|
+
throw new Error("'endpoint' cannot be null");
|
|
21
|
+
}
|
|
22
|
+
// Initializing default values for options
|
|
23
|
+
if (!options) {
|
|
24
|
+
options = {};
|
|
25
|
+
}
|
|
26
|
+
const defaults = {
|
|
27
|
+
requestContentType: "application/json; charset=utf-8"
|
|
28
|
+
};
|
|
29
|
+
const packageDetails = `azsdk-js-communication-recipient-verification/1.0.0-beta.1`;
|
|
30
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
31
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
32
|
+
: `${packageDetails}`;
|
|
33
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
34
|
+
userAgentPrefix
|
|
35
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
|
|
36
|
+
super(optionsWithDefaults);
|
|
37
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
38
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
39
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
40
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
41
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
42
|
+
this.pipeline.removePolicy({
|
|
43
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
44
|
+
});
|
|
45
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
46
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
47
|
+
challengeCallbacks: {
|
|
48
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
49
|
+
}
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
// Parameter assignments
|
|
54
|
+
this.endpoint = endpoint;
|
|
55
|
+
// Assigning values to Constant parameters
|
|
56
|
+
this.apiVersion = options.apiVersion || "2022-11-15";
|
|
57
|
+
this.acsVerificationOperations = new AcsVerificationOperationsImpl(this);
|
|
58
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
59
|
+
}
|
|
60
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
61
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
62
|
+
if (!apiVersion) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const apiVersionPolicy = {
|
|
66
|
+
name: "CustomApiVersionPolicy",
|
|
67
|
+
async sendRequest(request, next) {
|
|
68
|
+
const param = request.url.split("?");
|
|
69
|
+
if (param.length > 1) {
|
|
70
|
+
const newParams = param[1].split("&").map((item) => {
|
|
71
|
+
if (item.indexOf("api-version") > -1) {
|
|
72
|
+
return "api-version=" + apiVersion;
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
return item;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
79
|
+
}
|
|
80
|
+
return next(request);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=recipientVerificationClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipientVerificationClient.js","sourceRoot":"","sources":["../../../../src/generated/src/recipientVerificationClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAM9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAItE,MAAM,OAAO,2BAA4B,SAAQ,UAAU,CAAC,aAAa;IAIvE;;;;OAIG;IACH,YACE,QAAgB,EAChB,OAAmD;;QAEnD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC/C,CAAC;QAED,0CAA0C;QAC1C,IAAI,CA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B,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAGF","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\";\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/index.js\";\nimport { AcsVerificationOperations } from \"./operationsInterfaces/index.js\";\nimport { RecipientVerificationClientOptionalParams } from \"./models/index.js\";\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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/tracing.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,aAAa,6CAIxB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { createTracingClient } from "@azure/core-tracing";
|
|
9
|
+
export const tracingClient = createTracingClient({
|
|
10
|
+
namespace: "Microsoft.Communication",
|
|
11
|
+
packageName: "@azure/communication-recipient-verification",
|
|
12
|
+
packageVersion: "1.0.0-beta.1"
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=tracing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../../../src/generated/src/tracing.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC;IAC/C,SAAS,EAAE,yBAAyB;IACpC,WAAW,EAAE,6CAA6C;IAC1D,cAAc,EAAE,cAAc;CAC/B,CAAC,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\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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kCAAkC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kCAAkC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./models.js\";\nexport * from \"./mappers.js\";\nexport * from \"./recipientVerificationClient.js\";\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { AcsVerification as AcsVerificationMapper } from "./generated/src/models/mappers.js";
|
|
2
|
+
export { VerificationConstantsResponse as ConstantsMapper } from "./generated/src/models/mappers.js";
|
|
3
|
+
export { VerificationCodeRequest as VerificationCodeRequestMapper } from "./generated/src/models/mappers.js";
|
|
4
|
+
export { VerificationResponse as VerificationResponseMapper } from "./generated/src/models/mappers.js";
|
|
5
|
+
export { VerificationRequest as VerificationRequestMapper } from "./generated/src/models/mappers.js";
|
|
6
|
+
//# sourceMappingURL=mappers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../src/mappers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,6BAA6B,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACrG,OAAO,EAAE,uBAAuB,IAAI,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAC7G,OAAO,EAAE,oBAAoB,IAAI,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AACvG,OAAO,EAAE,mBAAmB,IAAI,yBAAyB,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
export { AcsVerification as AcsVerificationMapper } from "./generated/src/models/mappers.js";
|
|
4
|
+
export { VerificationConstantsResponse as ConstantsMapper } from "./generated/src/models/mappers.js";
|
|
5
|
+
export { VerificationCodeRequest as VerificationCodeRequestMapper } from "./generated/src/models/mappers.js";
|
|
6
|
+
export { VerificationResponse as VerificationResponseMapper } from "./generated/src/models/mappers.js";
|
|
7
|
+
export { VerificationRequest as VerificationRequestMapper } from "./generated/src/models/mappers.js";
|
|
8
|
+
//# sourceMappingURL=mappers.js.map
|
|
@@ -0,0 +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,mCAAmC,CAAC;AAC7F,OAAO,EAAE,6BAA6B,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACrG,OAAO,EAAE,uBAAuB,IAAI,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAC7G,OAAO,EAAE,oBAAoB,IAAI,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AACvG,OAAO,EAAE,mBAAmB,IAAI,yBAAyB,EAAE,MAAM,mCAAmC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { AcsVerification as AcsVerificationMapper } from \"./generated/src/models/mappers.js\";\nexport { VerificationConstantsResponse as ConstantsMapper } from \"./generated/src/models/mappers.js\";\nexport { VerificationCodeRequest as VerificationCodeRequestMapper } from \"./generated/src/models/mappers.js\";\nexport { VerificationResponse as VerificationResponseMapper } from \"./generated/src/models/mappers.js\";\nexport { VerificationRequest as VerificationRequestMapper } from \"./generated/src/models/mappers.js\";\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { AcsVerificationGetVerificationsOptionalParams, AcsVerificationGetVerificationsResponse, AcsVerificationRequestVerificationOptionalParams, AcsVerificationRequestVerificationResponse, AcsVerificationVerifyIdentityOptionalParams, AcsVerificationVerifyIdentityResponse, AcsVerificationDeleteVerificationOptionalParams, AcsVerificationGetVerificationConstantsOptionalParams, AcsVerificationGetVerificationConstantsResponse, AcsVerification, VerificationConstantsResponse, VerificationResponse, } from "./generated/src/models/index.js";
|
|
2
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,6CAA6C,EAC7C,uCAAuC,EACvC,gDAAgD,EAChD,0CAA0C,EAC1C,2CAA2C,EAC3C,qCAAqC,EACrC,+CAA+C,EAC/C,qDAAqD,EACrD,+CAA+C,EAC/C,eAAe,EACf,6BAA6B,EAC7B,oBAAoB,GACrB,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +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 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/index.js\";\n"]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { AcsVerificationGetVerificationsOptionalParams, AcsVerificationRequestVerificationOptionalParams, AcsVerificationRequestVerificationResponse, AcsVerificationVerifyIdentityOptionalParams, AcsVerificationVerifyIdentityResponse, AcsVerificationDeleteVerificationOptionalParams, AcsVerificationGetVerificationConstantsOptionalParams } from "./models.js";
|
|
2
|
+
import type { CommonClientOptions } from "@azure/core-client";
|
|
3
|
+
import type { KeyCredential, TokenCredential } from "@azure/core-auth";
|
|
4
|
+
import type { AcsVerification, VerificationConstantsResponse } from "./generated/src/models/index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Client options used to configure the RecipientVerificationGeneratedClient API requests.
|
|
7
|
+
*/
|
|
8
|
+
export interface RecipientVerificationClientOptions extends CommonClientOptions {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Client class for interacting with Azure Communication Services Recipient Verification.
|
|
12
|
+
*/
|
|
13
|
+
export declare class RecipientVerificationClient {
|
|
14
|
+
/**
|
|
15
|
+
* A reference to the auto-generated RecipientVerification HTTP client.
|
|
16
|
+
*/
|
|
17
|
+
private readonly client;
|
|
18
|
+
/**
|
|
19
|
+
* Initializes a new instance of the RecipientVerificationClient class using a connection string.
|
|
20
|
+
*
|
|
21
|
+
* @param connectionString - Connection string to connect to an Azure Communication Service resource. (eg: endpoint=https://contoso.eastus.communications.azure.net/;accesskey=secret)
|
|
22
|
+
* @param options - Optional. Options to configure the HTTP pipeline.
|
|
23
|
+
*/
|
|
24
|
+
constructor(connectionString: string, options?: RecipientVerificationClientOptions);
|
|
25
|
+
/**
|
|
26
|
+
* Initializes a new instance of the RecipientVerificationClient class using an Azure KeyCredential.
|
|
27
|
+
*
|
|
28
|
+
* @param endpoint - The endpoint of the service (eg: https://contoso.eastus.communications.azure.net)
|
|
29
|
+
* @param credential - An object that is used to authenticate requests to the service. Use the Azure KeyCredential or `@azure/identity` to create a credential.
|
|
30
|
+
* @param options - Optional. Options to configure the HTTP pipeline.
|
|
31
|
+
*/
|
|
32
|
+
constructor(endpoint: string, credential: KeyCredential, options?: RecipientVerificationClientOptions);
|
|
33
|
+
/**
|
|
34
|
+
* Initializes a new instance of the RecipientVerificationClient class using an Azure KeyCredential.
|
|
35
|
+
*
|
|
36
|
+
* @param endpoint - The endpoint of the service (eg: https://contoso.eastus.communications.azure.net)
|
|
37
|
+
* @param credential - An object that is used to authenticate requests to the service. Use the Azure KeyCredential or `@azure/identity` to create a credential.
|
|
38
|
+
* @param options - Optional. Options to configure the HTTP pipeline.
|
|
39
|
+
*/
|
|
40
|
+
constructor(endpoint: string, credential: TokenCredential, options?: RecipientVerificationClientOptions);
|
|
41
|
+
/**
|
|
42
|
+
* Returns list of verified/pending phone numbers.
|
|
43
|
+
*
|
|
44
|
+
* @param options - Additional request options.
|
|
45
|
+
*/
|
|
46
|
+
getVerifications(options?: AcsVerificationGetVerificationsOptionalParams): Promise<AcsVerification[]>;
|
|
47
|
+
/**
|
|
48
|
+
* Removes a pending/verified number.
|
|
49
|
+
*
|
|
50
|
+
* @param verificationId - Id that is used to reference users phone number.
|
|
51
|
+
* @param options - Additional request options.
|
|
52
|
+
*/
|
|
53
|
+
deleteVerification(verificationId: string, options?: AcsVerificationDeleteVerificationOptionalParams): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Verifies a users phone number.
|
|
56
|
+
*
|
|
57
|
+
* @param verificationId - Id that is used to reference users phone number.
|
|
58
|
+
* @param options - Additional request options.
|
|
59
|
+
*/
|
|
60
|
+
verifyIdentity(verificationId: string, options?: AcsVerificationVerifyIdentityOptionalParams): Promise<AcsVerificationVerifyIdentityResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* Returns information about a resource in relation to recipient verification.
|
|
63
|
+
*
|
|
64
|
+
* @param options - Additional request options.
|
|
65
|
+
*/
|
|
66
|
+
getVerificationConstants(options?: AcsVerificationGetVerificationConstantsOptionalParams): Promise<VerificationConstantsResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* Sends a code to users phone number that will be used for verification.
|
|
69
|
+
*
|
|
70
|
+
* @param options - Additional request options.
|
|
71
|
+
*/
|
|
72
|
+
requestVerification(options?: AcsVerificationRequestVerificationOptionalParams): Promise<AcsVerificationRequestVerificationResponse>;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=recipientVerificationClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipientVerificationClient.d.ts","sourceRoot":"","sources":["../../src/recipientVerificationClient.ts"],"names":[],"mappings":"AAIA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