@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,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,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.VerificationRequestMapper = exports.VerificationResponseMapper = exports.VerificationCodeRequestMapper = exports.ConstantsMapper = exports.AcsVerificationMapper = void 0;
|
|
6
|
+
var mappers_js_1 = require("./generated/src/models/mappers.js");
|
|
7
|
+
Object.defineProperty(exports, "AcsVerificationMapper", { enumerable: true, get: function () { return mappers_js_1.AcsVerification; } });
|
|
8
|
+
var mappers_js_2 = require("./generated/src/models/mappers.js");
|
|
9
|
+
Object.defineProperty(exports, "ConstantsMapper", { enumerable: true, get: function () { return mappers_js_2.VerificationConstantsResponse; } });
|
|
10
|
+
var mappers_js_3 = require("./generated/src/models/mappers.js");
|
|
11
|
+
Object.defineProperty(exports, "VerificationCodeRequestMapper", { enumerable: true, get: function () { return mappers_js_3.VerificationCodeRequest; } });
|
|
12
|
+
var mappers_js_4 = require("./generated/src/models/mappers.js");
|
|
13
|
+
Object.defineProperty(exports, "VerificationResponseMapper", { enumerable: true, get: function () { return mappers_js_4.VerificationResponse; } });
|
|
14
|
+
var mappers_js_5 = require("./generated/src/models/mappers.js");
|
|
15
|
+
Object.defineProperty(exports, "VerificationRequestMapper", { enumerable: true, get: function () { return mappers_js_5.VerificationRequest; } });
|
|
16
|
+
//# 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,gEAA6F;AAApF,mHAAA,eAAe,OAAyB;AACjD,gEAAqG;AAA5F,6GAAA,6BAA6B,OAAmB;AACzD,gEAA6G;AAApG,2HAAA,uBAAuB,OAAiC;AACjE,gEAAuG;AAA9F,wHAAA,oBAAoB,OAA8B;AAC3D,gEAAqG;AAA5F,uHAAA,mBAAmB,OAA6B","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,OAAO,KAAK,EACV,6CAA6C,EAC7C,gDAAgD,EAChD,0CAA0C,EAC1C,2CAA2C,EAC3C,qCAAqC,EACrC,+CAA+C,EAC/C,qDAAqD,EACtD,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,mBAAmB,EAAiC,MAAM,oBAAoB,CAAC;AAC7F,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEvE,OAAO,KAAK,EACV,eAAe,EACf,6BAA6B,EAC9B,MAAM,iCAAiC,CAAC;AAOzC;;GAEG;AACH,MAAM,WAAW,kCAAmC,SAAQ,mBAAmB;CAAG;AAOlF;;GAEG;AACH,qBAAa,2BAA2B;IACtC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuC;IAE9D;;;;;OAKG;gBACgB,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kCAAkC;IAEzF;;;;;;OAMG;gBAED,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,aAAa,EACzB,OAAO,CAAC,EAAE,kCAAkC;IAG9C;;;;;;OAMG;gBAED,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,eAAe,EAC3B,OAAO,CAAC,EAAE,kCAAkC;IA2B9C;;;;OAIG;IACI,gBAAgB,CACrB,OAAO,GAAE,6CAAkD,GAC1D,OAAO,CAAC,eAAe,EAAE,CAAC;IAU7B;;;;;OAKG;IACI,kBAAkB,CACvB,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,+CAAoD,GAC5D,OAAO,CAAC,IAAI,CAAC;IAahB;;;;;OAKG;IACI,cAAc,CACnB,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,2CAAgD,GACxD,OAAO,CAAC,qCAAqC,CAAC;IAUjD;;;;OAIG;IACI,wBAAwB,CAC7B,OAAO,GAAE,qDAA0D,GAClE,OAAO,CAAC,6BAA6B,CAAC;IAUzC;;;;OAIG;IACI,mBAAmB,CACxB,OAAO,GAAE,gDAAqD,GAC7D,OAAO,CAAC,0CAA0C,CAAC;CASvD"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
/// <reference lib="esnext.asynciterable" />
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RecipientVerificationClient = void 0;
|
|
7
|
+
const core_auth_1 = require("@azure/core-auth");
|
|
8
|
+
const communication_common_1 = require("@azure/communication-common");
|
|
9
|
+
const communication_common_2 = require("@azure/communication-common");
|
|
10
|
+
const index_js_1 = require("./generated/src/index.js");
|
|
11
|
+
const index_js_2 = require("./utils/index.js");
|
|
12
|
+
const tracing_js_1 = require("./generated/src/tracing.js");
|
|
13
|
+
const isRecipientVerificationClientOptions = (options) => options && !(0, communication_common_2.isKeyCredential)(options) && !(0, core_auth_1.isTokenCredential)(options);
|
|
14
|
+
/**
|
|
15
|
+
* Client class for interacting with Azure Communication Services Recipient Verification.
|
|
16
|
+
*/
|
|
17
|
+
class RecipientVerificationClient {
|
|
18
|
+
constructor(connectionStringOrUrl, credentialOrOptions, maybeOptions = {}) {
|
|
19
|
+
const { url, credential } = (0, communication_common_2.parseClientArguments)(connectionStringOrUrl, credentialOrOptions);
|
|
20
|
+
const options = isRecipientVerificationClientOptions(credentialOrOptions)
|
|
21
|
+
? credentialOrOptions
|
|
22
|
+
: maybeOptions;
|
|
23
|
+
const internalPipelineOptions = Object.assign(Object.assign({}, options), {
|
|
24
|
+
loggingOptions: {
|
|
25
|
+
logger: index_js_2.logger.info,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
this.client = new index_js_1.RecipientVerificationClient(url, internalPipelineOptions);
|
|
29
|
+
const authPolicy = (0, communication_common_1.createCommunicationAuthPolicy)(credential);
|
|
30
|
+
this.client.pipeline.addPolicy(authPolicy);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Returns list of verified/pending phone numbers.
|
|
34
|
+
*
|
|
35
|
+
* @param options - Additional request options.
|
|
36
|
+
*/
|
|
37
|
+
getVerifications(options = {}) {
|
|
38
|
+
return tracing_js_1.tracingClient.withSpan("RecipientVerification.getVerifications", options, (updatedOptions) => {
|
|
39
|
+
return this.client.acsVerificationOperations.getVerifications(updatedOptions);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Removes a pending/verified number.
|
|
44
|
+
*
|
|
45
|
+
* @param verificationId - Id that is used to reference users phone number.
|
|
46
|
+
* @param options - Additional request options.
|
|
47
|
+
*/
|
|
48
|
+
deleteVerification(verificationId, options = {}) {
|
|
49
|
+
return tracing_js_1.tracingClient.withSpan("RecipientVerification.deleteVerification", options, (updatedOptions) => {
|
|
50
|
+
return this.client.acsVerificationOperations.deleteVerification(verificationId, updatedOptions);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Verifies a users phone number.
|
|
55
|
+
*
|
|
56
|
+
* @param verificationId - Id that is used to reference users phone number.
|
|
57
|
+
* @param options - Additional request options.
|
|
58
|
+
*/
|
|
59
|
+
verifyIdentity(verificationId, options = {}) {
|
|
60
|
+
return tracing_js_1.tracingClient.withSpan("RecipientVerification.verifyIdentity", options, (updatedOptions) => {
|
|
61
|
+
return this.client.acsVerificationOperations.verifyIdentity(verificationId, updatedOptions);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Returns information about a resource in relation to recipient verification.
|
|
66
|
+
*
|
|
67
|
+
* @param options - Additional request options.
|
|
68
|
+
*/
|
|
69
|
+
getVerificationConstants(options = {}) {
|
|
70
|
+
return tracing_js_1.tracingClient.withSpan("RecipientVerification.getVerificationConstants", options, (updatedOptions) => {
|
|
71
|
+
return this.client.acsVerificationOperations.getVerificationConstants(updatedOptions);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Sends a code to users phone number that will be used for verification.
|
|
76
|
+
*
|
|
77
|
+
* @param options - Additional request options.
|
|
78
|
+
*/
|
|
79
|
+
requestVerification(options = {}) {
|
|
80
|
+
return tracing_js_1.tracingClient.withSpan("RecipientVerification.requestVerification", options, (updatedOptions) => {
|
|
81
|
+
return this.client.acsVerificationOperations.requestVerification(updatedOptions);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.RecipientVerificationClient = RecipientVerificationClient;
|
|
86
|
+
//# sourceMappingURL=recipientVerificationClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipientVerificationClient.js","sourceRoot":"","sources":["../../src/recipientVerificationClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;AAClC,4CAA4C;;;AAa5C,gDAAqD;AAKrD,sEAA4E;AAC5E,sEAAoF;AACpF,uDAA+G;AAC/G,+CAA0C;AAC1C,2DAA2D;AAO3D,MAAM,oCAAoC,GAAG,CAC3C,OAAY,EACmC,EAAE,CACjD,OAAO,IAAI,CAAC,IAAA,sCAAe,EAAC,OAAO,CAAC,IAAI,CAAC,IAAA,6BAAiB,EAAC,OAAO,CAAC,CAAC;AAEtE;;GAEG;AACH,MAAa,2BAA2B;IAwCtC,YACE,qBAA6B,EAC7B,mBAA0F,EAC1F,eAAmD,EAAE;QAErD,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,IAAA,2CAAoB,EAAC,qBAAqB,EAAE,mBAAmB,CAAC,CAAC;QAC7F,MAAM,OAAO,GAAG,oCAAoC,CAAC,mBAAmB,CAAC;YACvE,CAAC,CAAC,mBAAmB;YACrB,CAAC,CAAC,YAAY,CAAC;QAEjB,MAAM,uBAAuB,mCACxB,OAAO,GACP;YACD,cAAc,EAAE;gBACd,MAAM,EAAE,iBAAM,CAAC,IAAI;aACpB;SACF,CACF,CAAC;QAEF,IAAI,CAAC,MAAM,GAAG,IAAI,sCAAoC,CAAC,GAAG,EAAE,uBAAuB,CAAC,CAAC;QACrF,MAAM,UAAU,GAAG,IAAA,oDAA6B,EAAC,UAAU,CAAC,CAAC;QAC7D,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC7C,CAAC;IAED;;;;OAIG;IACI,gBAAgB,CACrB,UAAyD,EAAE;QAE3D,OAAO,0BAAa,CAAC,QAAQ,CAC3B,wCAAwC,EACxC,OAAO,EACP,CAAC,cAAc,EAAE,EAAE;YACjB,OAAO,IAAI,CAAC,MAAM,CAAC,yBAAyB,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;QAChF,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACI,kBAAkB,CACvB,cAAsB,EACtB,UAA2D,EAAE;QAE7D,OAAO,0BAAa,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,0BAAa,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,0BAAa,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,0BAAa,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;AA3JD,kEA2JC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport type {\n AcsVerificationGetVerificationsOptionalParams,\n AcsVerificationRequestVerificationOptionalParams,\n AcsVerificationRequestVerificationResponse,\n AcsVerificationVerifyIdentityOptionalParams,\n AcsVerificationVerifyIdentityResponse,\n AcsVerificationDeleteVerificationOptionalParams,\n AcsVerificationGetVerificationConstantsOptionalParams,\n} from \"./models.js\";\nimport type { CommonClientOptions, InternalClientPipelineOptions } from \"@azure/core-client\";\nimport type { KeyCredential, TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\nimport type {\n AcsVerification,\n VerificationConstantsResponse,\n} from \"./generated/src/models/index.js\";\nimport { createCommunicationAuthPolicy } from \"@azure/communication-common\";\nimport { isKeyCredential, parseClientArguments } from \"@azure/communication-common\";\nimport { RecipientVerificationClient as RecipientVerificationGeneratedClient } from \"./generated/src/index.js\";\nimport { logger } from \"./utils/index.js\";\nimport { tracingClient } from \"./generated/src/tracing.js\";\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"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.47.11"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,EAAE,MAAuB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.SDK_VERSION = void 0;
|
|
6
|
+
exports.SDK_VERSION = "1.0.0-beta.1";
|
|
7
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAErB,QAAA,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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
tslib_1.__exportStar(require("./logger.js"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./constants.js"), exports);
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,sDAA4B;AAC5B,yDAA+B","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./logger.js\";\nexport * from \"./constants.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,MAAM,qCAA0D,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.logger = void 0;
|
|
6
|
+
const logger_1 = require("@azure/logger");
|
|
7
|
+
/**
|
|
8
|
+
* The \@azure\/logger configuration for this package.
|
|
9
|
+
*/
|
|
10
|
+
exports.logger = (0, logger_1.createClientLogger)("communication-verified-recipients");
|
|
11
|
+
//# sourceMappingURL=logger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,0CAAmD;AAEnD;;GAEG;AACU,QAAA,MAAM,GAAG,IAAA,2BAAkB,EAAC,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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 "./models/index.js";
|
|
9
|
+
export { RecipientVerificationClient } from "./recipientVerificationClient.js";
|
|
10
|
+
export * from "./operationsInterfaces/index.js";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./models/index.js\";\nexport { RecipientVerificationClient } from \"./recipientVerificationClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
/** Model response returned for users. */
|
|
3
|
+
export interface AcsVerification {
|
|
4
|
+
/** Immutable Id of the resource. */
|
|
5
|
+
immutableId?: string;
|
|
6
|
+
/** VerificationId of the number assigned to the verified recipient. */
|
|
7
|
+
verificationId?: string;
|
|
8
|
+
/** Status of the Verification (Pending or Verified). */
|
|
9
|
+
status?: string;
|
|
10
|
+
/** Subscription Id of the resource. */
|
|
11
|
+
subscriptionId?: string;
|
|
12
|
+
/** The phone number that was used to verify. */
|
|
13
|
+
identity?: string;
|
|
14
|
+
/** Verification Id for the 3rd party verification service. */
|
|
15
|
+
challengeId?: string;
|
|
16
|
+
/** Number of times the verification code has been sent. */
|
|
17
|
+
retries?: number;
|
|
18
|
+
/** Number of times the user has tried to validate the code. */
|
|
19
|
+
attempts?: number;
|
|
20
|
+
}
|
|
21
|
+
/** The Communication Services error. */
|
|
22
|
+
export interface CommunicationErrorResponse {
|
|
23
|
+
/** The Communication Services error. */
|
|
24
|
+
error: CommunicationError;
|
|
25
|
+
}
|
|
26
|
+
/** The Communication Services error. */
|
|
27
|
+
export interface CommunicationError {
|
|
28
|
+
/** The error code. */
|
|
29
|
+
code: string;
|
|
30
|
+
/** The error message. */
|
|
31
|
+
message: string;
|
|
32
|
+
/**
|
|
33
|
+
* The error target.
|
|
34
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
35
|
+
*/
|
|
36
|
+
readonly target?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Further details about specific errors that led to this error.
|
|
39
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
40
|
+
*/
|
|
41
|
+
readonly details?: CommunicationError[];
|
|
42
|
+
/**
|
|
43
|
+
* The inner error if any.
|
|
44
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
45
|
+
*/
|
|
46
|
+
readonly innerError?: CommunicationError;
|
|
47
|
+
}
|
|
48
|
+
/** Model to get the verification code. */
|
|
49
|
+
export interface VerificationRequest {
|
|
50
|
+
/** The phone number that was used to verify. */
|
|
51
|
+
identity?: string;
|
|
52
|
+
/** Prefered verification channel. */
|
|
53
|
+
channel?: string;
|
|
54
|
+
}
|
|
55
|
+
/** Model that contains the verification code. */
|
|
56
|
+
export interface VerificationResponse {
|
|
57
|
+
/** VerificationId of the number assigned to the verified recipient. */
|
|
58
|
+
verificationId?: string;
|
|
59
|
+
/** Verification status of the number. */
|
|
60
|
+
isVerified?: boolean;
|
|
61
|
+
}
|
|
62
|
+
/** Model that contains the verification code. */
|
|
63
|
+
export interface VerificationCodeRequest {
|
|
64
|
+
/** The verification code returned. */
|
|
65
|
+
verificationCode?: string;
|
|
66
|
+
}
|
|
67
|
+
/** Model verified recipients. */
|
|
68
|
+
export interface VerificationConstantsResponse {
|
|
69
|
+
/** Max retries allowed for resource. */
|
|
70
|
+
maxRetriesAllowed?: number;
|
|
71
|
+
/** Max verified numbers allowed for resource. */
|
|
72
|
+
maxVerificationsAllowed?: number;
|
|
73
|
+
/** Current number of verified numbers for the resource. */
|
|
74
|
+
currentNumberOfVerifications?: number;
|
|
75
|
+
}
|
|
76
|
+
/** Optional parameters. */
|
|
77
|
+
export interface AcsVerificationGetVerificationsOptionalParams extends coreClient.OperationOptions {
|
|
78
|
+
}
|
|
79
|
+
/** Contains response data for the getVerifications operation. */
|
|
80
|
+
export type AcsVerificationGetVerificationsResponse = AcsVerification[];
|
|
81
|
+
/** Optional parameters. */
|
|
82
|
+
export interface AcsVerificationRequestVerificationOptionalParams extends coreClient.OperationOptions {
|
|
83
|
+
/** The phone number that was used to verify. */
|
|
84
|
+
identity?: string;
|
|
85
|
+
/** Prefered verification channel. */
|
|
86
|
+
channel?: string;
|
|
87
|
+
}
|
|
88
|
+
/** Contains response data for the requestVerification operation. */
|
|
89
|
+
export type AcsVerificationRequestVerificationResponse = VerificationResponse;
|
|
90
|
+
/** Optional parameters. */
|
|
91
|
+
export interface AcsVerificationVerifyIdentityOptionalParams extends coreClient.OperationOptions {
|
|
92
|
+
/** The verification code returned. */
|
|
93
|
+
verificationCode?: string;
|
|
94
|
+
}
|
|
95
|
+
/** Contains response data for the verifyIdentity operation. */
|
|
96
|
+
export type AcsVerificationVerifyIdentityResponse = VerificationResponse;
|
|
97
|
+
/** Optional parameters. */
|
|
98
|
+
export interface AcsVerificationDeleteVerificationOptionalParams extends coreClient.OperationOptions {
|
|
99
|
+
}
|
|
100
|
+
/** Optional parameters. */
|
|
101
|
+
export interface AcsVerificationGetVerificationConstantsOptionalParams extends coreClient.OperationOptions {
|
|
102
|
+
}
|
|
103
|
+
/** Contains response data for the getVerificationConstants operation. */
|
|
104
|
+
export type AcsVerificationGetVerificationConstantsResponse = VerificationConstantsResponse;
|
|
105
|
+
/** Optional parameters. */
|
|
106
|
+
export interface RecipientVerificationClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
107
|
+
/** Api Version */
|
|
108
|
+
apiVersion?: string;
|
|
109
|
+
/** Overrides client endpoint. */
|
|
110
|
+
endpoint?: string;
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,yCAAyC;AACzC,MAAM,WAAW,eAAe;IAC9B,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wDAAwD;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wCAAwC;AACxC,MAAM,WAAW,0BAA0B;IACzC,wCAAwC;IACxC,KAAK,EAAE,kBAAkB,CAAC;CAC3B;AAED,wCAAwC;AACxC,MAAM,WAAW,kBAAkB;IACjC,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,yBAAyB;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,kBAAkB,CAAC;CAC1C;AAED,0CAA0C;AAC1C,MAAM,WAAW,mBAAmB;IAClC,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,iDAAiD;AACjD,MAAM,WAAW,oBAAoB;IACnC,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yCAAyC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,iDAAiD;AACjD,MAAM,WAAW,uBAAuB;IACtC,sCAAsC;IACtC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,iCAAiC;AACjC,MAAM,WAAW,6BAA6B;IAC5C,wCAAwC;IACxC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iDAAiD;IACjD,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,2DAA2D;IAC3D,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACvC;AAED,2BAA2B;AAC3B,MAAM,WAAW,6CACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,iEAAiE;AACjE,MAAM,MAAM,uCAAuC,GAAG,eAAe,EAAE,CAAC;AAExE,2BAA2B;AAC3B,MAAM,WAAW,gDACf,SAAQ,UAAU,CAAC,gBAAgB;IACnC,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,oEAAoE;AACpE,MAAM,MAAM,0CAA0C,GAAG,oBAAoB,CAAC;AAE9E,2BAA2B;AAC3B,MAAM,WAAW,2CACf,SAAQ,UAAU,CAAC,gBAAgB;IACnC,sCAAsC;IACtC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,+DAA+D;AAC/D,MAAM,MAAM,qCAAqC,GAAG,oBAAoB,CAAC;AAEzE,2BAA2B;AAC3B,MAAM,WAAW,+CACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,2BAA2B;AAC3B,MAAM,WAAW,qDACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,yEAAyE;AACzE,MAAM,MAAM,+CAA+C,GAAG,6BAA6B,CAAC;AAE5F,2BAA2B;AAC3B,MAAM,WAAW,yCACf,SAAQ,UAAU,CAAC,oBAAoB;IACvC,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/index.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 * as coreClient from \"@azure/core-client\";\n\n/** Model response returned for users. */\nexport interface AcsVerification {\n /** Immutable Id of the resource. */\n immutableId?: string;\n /** VerificationId of the number assigned to the verified recipient. */\n verificationId?: string;\n /** Status of the Verification (Pending or Verified). */\n status?: string;\n /** Subscription Id of the resource. */\n subscriptionId?: string;\n /** The phone number that was used to verify. */\n identity?: string;\n /** Verification Id for the 3rd party verification service. */\n challengeId?: string;\n /** Number of times the verification code has been sent. */\n retries?: number;\n /** Number of times the user has tried to validate the code. */\n attempts?: number;\n}\n\n/** The Communication Services error. */\nexport interface CommunicationErrorResponse {\n /** The Communication Services error. */\n error: CommunicationError;\n}\n\n/** The Communication Services error. */\nexport interface CommunicationError {\n /** The error code. */\n code: string;\n /** The error message. */\n message: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * Further details about specific errors that led to this error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: CommunicationError[];\n /**\n * The inner error if any.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly innerError?: CommunicationError;\n}\n\n/** Model to get the verification code. */\nexport interface VerificationRequest {\n /** The phone number that was used to verify. */\n identity?: string;\n /** Prefered verification channel. */\n channel?: string;\n}\n\n/** Model that contains the verification code. */\nexport interface VerificationResponse {\n /** VerificationId of the number assigned to the verified recipient. */\n verificationId?: string;\n /** Verification status of the number. */\n isVerified?: boolean;\n}\n\n/** Model that contains the verification code. */\nexport interface VerificationCodeRequest {\n /** The verification code returned. */\n verificationCode?: string;\n}\n\n/** Model verified recipients. */\nexport interface VerificationConstantsResponse {\n /** Max retries allowed for resource. */\n maxRetriesAllowed?: number;\n /** Max verified numbers allowed for resource. */\n maxVerificationsAllowed?: number;\n /** Current number of verified numbers for the resource. */\n currentNumberOfVerifications?: number;\n}\n\n/** Optional parameters. */\nexport interface AcsVerificationGetVerificationsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getVerifications operation. */\nexport type AcsVerificationGetVerificationsResponse = AcsVerification[];\n\n/** Optional parameters. */\nexport interface AcsVerificationRequestVerificationOptionalParams\n extends coreClient.OperationOptions {\n /** The phone number that was used to verify. */\n identity?: string;\n /** Prefered verification channel. */\n channel?: string;\n}\n\n/** Contains response data for the requestVerification operation. */\nexport type AcsVerificationRequestVerificationResponse = VerificationResponse;\n\n/** Optional parameters. */\nexport interface AcsVerificationVerifyIdentityOptionalParams\n extends coreClient.OperationOptions {\n /** The verification code returned. */\n verificationCode?: string;\n}\n\n/** Contains response data for the verifyIdentity operation. */\nexport type AcsVerificationVerifyIdentityResponse = VerificationResponse;\n\n/** Optional parameters. */\nexport interface AcsVerificationDeleteVerificationOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface AcsVerificationGetVerificationConstantsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getVerificationConstants operation. */\nexport type AcsVerificationGetVerificationConstantsResponse = VerificationConstantsResponse;\n\n/** Optional parameters. */\nexport interface RecipientVerificationClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
export declare const AcsVerification: coreClient.CompositeMapper;
|
|
3
|
+
export declare const CommunicationErrorResponse: coreClient.CompositeMapper;
|
|
4
|
+
export declare const CommunicationError: coreClient.CompositeMapper;
|
|
5
|
+
export declare const VerificationRequest: coreClient.CompositeMapper;
|
|
6
|
+
export declare const VerificationResponse: coreClient.CompositeMapper;
|
|
7
|
+
export declare const VerificationCodeRequest: coreClient.CompositeMapper;
|
|
8
|
+
export declare const VerificationConstantsResponse: coreClient.CompositeMapper;
|
|
9
|
+
//# sourceMappingURL=mappers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,eAuDxC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,UAAU,CAAC,eAcnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,eAgD3C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eAmB5C,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,eAmB7C,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,UAAU,CAAC,eAahD,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,UAAU,CAAC,eAyBtD,CAAC"}
|