@azure-tools/communication-recipient-verification 1.0.0-alpha.20241122.8 → 1.0.0-alpha.20241203.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.
Files changed (291) hide show
  1. package/dist/browser/generated/src/index.d.ts +4 -0
  2. package/dist/browser/generated/src/index.d.ts.map +1 -0
  3. package/{dist-esm/src → dist/browser}/generated/src/index.js +3 -3
  4. package/dist/browser/generated/src/index.js.map +1 -0
  5. package/dist/browser/generated/src/models/index.d.ts +112 -0
  6. package/dist/browser/generated/src/models/index.d.ts.map +1 -0
  7. package/dist/browser/generated/src/models/mappers.d.ts +9 -0
  8. package/dist/browser/generated/src/models/mappers.d.ts.map +1 -0
  9. package/dist/browser/generated/src/models/parameters.d.ts +10 -0
  10. package/dist/browser/generated/src/models/parameters.d.ts.map +1 -0
  11. package/{dist-esm/src → dist/browser}/generated/src/models/parameters.js +1 -1
  12. package/{dist-esm/src → dist/browser}/generated/src/models/parameters.js.map +1 -1
  13. package/dist/browser/generated/src/operations/acsVerificationOperations.d.ts +40 -0
  14. package/dist/browser/generated/src/operations/acsVerificationOperations.d.ts.map +1 -0
  15. package/{dist-esm/src → dist/browser}/generated/src/operations/acsVerificationOperations.js +3 -3
  16. package/dist/browser/generated/src/operations/acsVerificationOperations.js.map +1 -0
  17. package/dist/browser/generated/src/operations/index.d.ts +2 -0
  18. package/dist/browser/generated/src/operations/index.d.ts.map +1 -0
  19. package/dist/browser/generated/src/operations/index.js +9 -0
  20. package/{dist-esm/src → dist/browser}/generated/src/operations/index.js.map +1 -1
  21. package/dist/browser/generated/src/operationsInterfaces/acsVerificationOperations.d.ts +32 -0
  22. package/dist/browser/generated/src/operationsInterfaces/acsVerificationOperations.d.ts.map +1 -0
  23. package/dist/browser/generated/src/operationsInterfaces/acsVerificationOperations.js.map +1 -0
  24. package/dist/browser/generated/src/operationsInterfaces/index.d.ts +2 -0
  25. package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  26. package/dist/browser/generated/src/operationsInterfaces/index.js +9 -0
  27. package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/index.js.map +1 -1
  28. package/dist/browser/generated/src/recipientVerificationClient.d.ts +17 -0
  29. package/dist/browser/generated/src/recipientVerificationClient.d.ts.map +1 -0
  30. package/{dist-esm/src → dist/browser}/generated/src/recipientVerificationClient.js +1 -1
  31. package/dist/browser/generated/src/recipientVerificationClient.js.map +1 -0
  32. package/dist/browser/generated/src/tracing.d.ts +2 -0
  33. package/dist/browser/generated/src/tracing.d.ts.map +1 -0
  34. package/dist/browser/index.d.ts +4 -0
  35. package/dist/browser/index.d.ts.map +1 -0
  36. package/dist/browser/index.js +6 -0
  37. package/dist/browser/index.js.map +1 -0
  38. package/dist/browser/mappers.d.ts +6 -0
  39. package/dist/browser/mappers.d.ts.map +1 -0
  40. package/{dist-esm/src → dist/browser}/mappers.js +5 -5
  41. package/dist/browser/mappers.js.map +1 -0
  42. package/dist/browser/models.d.ts +2 -0
  43. package/dist/browser/models.d.ts.map +1 -0
  44. package/{dist-esm/src → dist/browser}/models.js.map +1 -1
  45. package/dist/browser/package.json +3 -0
  46. package/dist/browser/recipientVerificationClient.d.ts +74 -0
  47. package/dist/browser/recipientVerificationClient.d.ts.map +1 -0
  48. package/{dist-esm/src → dist/browser}/recipientVerificationClient.js +3 -3
  49. package/dist/browser/recipientVerificationClient.js.map +1 -0
  50. package/dist/browser/utils/constants.d.ts +2 -0
  51. package/dist/browser/utils/constants.d.ts.map +1 -0
  52. package/dist/browser/utils/index.d.ts +3 -0
  53. package/dist/browser/utils/index.d.ts.map +1 -0
  54. package/dist/browser/utils/index.js +5 -0
  55. package/dist/browser/utils/index.js.map +1 -0
  56. package/dist/browser/utils/logger.d.ts +5 -0
  57. package/dist/browser/utils/logger.d.ts.map +1 -0
  58. package/dist/commonjs/generated/src/index.d.ts +4 -0
  59. package/dist/commonjs/generated/src/index.d.ts.map +1 -0
  60. package/dist/commonjs/generated/src/index.js +16 -0
  61. package/dist/commonjs/generated/src/index.js.map +1 -0
  62. package/dist/commonjs/generated/src/models/index.d.ts +112 -0
  63. package/dist/commonjs/generated/src/models/index.d.ts.map +1 -0
  64. package/dist/commonjs/generated/src/models/index.js +10 -0
  65. package/dist/commonjs/generated/src/models/index.js.map +1 -0
  66. package/dist/commonjs/generated/src/models/mappers.d.ts +9 -0
  67. package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -0
  68. package/dist/commonjs/generated/src/models/mappers.js +211 -0
  69. package/dist/commonjs/generated/src/models/mappers.js.map +1 -0
  70. package/dist/commonjs/generated/src/models/parameters.d.ts +10 -0
  71. package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -0
  72. package/dist/commonjs/generated/src/models/parameters.js +78 -0
  73. package/dist/commonjs/generated/src/models/parameters.js.map +1 -0
  74. package/dist/commonjs/generated/src/operations/acsVerificationOperations.d.ts +40 -0
  75. package/dist/commonjs/generated/src/operations/acsVerificationOperations.d.ts.map +1 -0
  76. package/dist/commonjs/generated/src/operations/acsVerificationOperations.js +172 -0
  77. package/dist/commonjs/generated/src/operations/acsVerificationOperations.js.map +1 -0
  78. package/dist/commonjs/generated/src/operations/index.d.ts +2 -0
  79. package/dist/commonjs/generated/src/operations/index.d.ts.map +1 -0
  80. package/dist/commonjs/generated/src/operations/index.js +12 -0
  81. package/dist/commonjs/generated/src/operations/index.js.map +1 -0
  82. package/dist/commonjs/generated/src/operationsInterfaces/acsVerificationOperations.d.ts +32 -0
  83. package/dist/commonjs/generated/src/operationsInterfaces/acsVerificationOperations.d.ts.map +1 -0
  84. package/dist/commonjs/generated/src/operationsInterfaces/acsVerificationOperations.js +10 -0
  85. package/dist/commonjs/generated/src/operationsInterfaces/acsVerificationOperations.js.map +1 -0
  86. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +2 -0
  87. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  88. package/dist/commonjs/generated/src/operationsInterfaces/index.js +12 -0
  89. package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -0
  90. package/dist/commonjs/generated/src/recipientVerificationClient.d.ts +17 -0
  91. package/dist/commonjs/generated/src/recipientVerificationClient.d.ts.map +1 -0
  92. package/dist/commonjs/generated/src/recipientVerificationClient.js +91 -0
  93. package/dist/commonjs/generated/src/recipientVerificationClient.js.map +1 -0
  94. package/dist/commonjs/generated/src/tracing.d.ts +2 -0
  95. package/dist/commonjs/generated/src/tracing.d.ts.map +1 -0
  96. package/dist/commonjs/generated/src/tracing.js +17 -0
  97. package/dist/commonjs/generated/src/tracing.js.map +1 -0
  98. package/dist/commonjs/index.d.ts +4 -0
  99. package/dist/commonjs/index.d.ts.map +1 -0
  100. package/dist/commonjs/index.js +9 -0
  101. package/dist/commonjs/index.js.map +1 -0
  102. package/dist/commonjs/mappers.d.ts +6 -0
  103. package/dist/commonjs/mappers.d.ts.map +1 -0
  104. package/dist/commonjs/mappers.js +16 -0
  105. package/dist/commonjs/mappers.js.map +1 -0
  106. package/dist/commonjs/models.d.ts +2 -0
  107. package/dist/commonjs/models.d.ts.map +1 -0
  108. package/dist/commonjs/models.js +5 -0
  109. package/dist/commonjs/models.js.map +1 -0
  110. package/dist/commonjs/package.json +3 -0
  111. package/dist/commonjs/recipientVerificationClient.d.ts +74 -0
  112. package/dist/commonjs/recipientVerificationClient.d.ts.map +1 -0
  113. package/dist/commonjs/recipientVerificationClient.js +86 -0
  114. package/dist/commonjs/recipientVerificationClient.js.map +1 -0
  115. package/dist/commonjs/tsdoc-metadata.json +11 -0
  116. package/dist/commonjs/utils/constants.d.ts +2 -0
  117. package/dist/commonjs/utils/constants.d.ts.map +1 -0
  118. package/dist/commonjs/utils/constants.js +7 -0
  119. package/dist/commonjs/utils/constants.js.map +1 -0
  120. package/dist/commonjs/utils/index.d.ts +3 -0
  121. package/dist/commonjs/utils/index.d.ts.map +1 -0
  122. package/dist/commonjs/utils/index.js +8 -0
  123. package/dist/commonjs/utils/index.js.map +1 -0
  124. package/dist/commonjs/utils/logger.d.ts +5 -0
  125. package/dist/commonjs/utils/logger.d.ts.map +1 -0
  126. package/dist/commonjs/utils/logger.js +11 -0
  127. package/dist/commonjs/utils/logger.js.map +1 -0
  128. package/dist/esm/generated/src/index.d.ts +4 -0
  129. package/dist/esm/generated/src/index.d.ts.map +1 -0
  130. package/dist/esm/generated/src/index.js +11 -0
  131. package/dist/esm/generated/src/index.js.map +1 -0
  132. package/dist/esm/generated/src/models/index.d.ts +112 -0
  133. package/dist/esm/generated/src/models/index.d.ts.map +1 -0
  134. package/{dist-esm/src/generated/src/operationsInterfaces → dist/esm/generated/src/models}/index.js +1 -1
  135. package/dist/esm/generated/src/models/index.js.map +1 -0
  136. package/dist/esm/generated/src/models/mappers.d.ts +9 -0
  137. package/dist/esm/generated/src/models/mappers.d.ts.map +1 -0
  138. package/dist/esm/generated/src/models/mappers.js +208 -0
  139. package/dist/esm/generated/src/models/mappers.js.map +1 -0
  140. package/dist/esm/generated/src/models/parameters.d.ts +10 -0
  141. package/dist/esm/generated/src/models/parameters.d.ts.map +1 -0
  142. package/dist/esm/generated/src/models/parameters.js +75 -0
  143. package/dist/esm/generated/src/models/parameters.js.map +1 -0
  144. package/dist/esm/generated/src/operations/acsVerificationOperations.d.ts +40 -0
  145. package/dist/esm/generated/src/operations/acsVerificationOperations.d.ts.map +1 -0
  146. package/dist/esm/generated/src/operations/acsVerificationOperations.js +167 -0
  147. package/dist/esm/generated/src/operations/acsVerificationOperations.js.map +1 -0
  148. package/dist/esm/generated/src/operations/index.d.ts +2 -0
  149. package/dist/esm/generated/src/operations/index.d.ts.map +1 -0
  150. package/dist/esm/generated/src/operations/index.js +9 -0
  151. package/dist/esm/generated/src/operations/index.js.map +1 -0
  152. package/dist/esm/generated/src/operationsInterfaces/acsVerificationOperations.d.ts +32 -0
  153. package/dist/esm/generated/src/operationsInterfaces/acsVerificationOperations.d.ts.map +1 -0
  154. package/dist/esm/generated/src/operationsInterfaces/acsVerificationOperations.js +9 -0
  155. package/dist/esm/generated/src/operationsInterfaces/acsVerificationOperations.js.map +1 -0
  156. package/dist/esm/generated/src/operationsInterfaces/index.d.ts +2 -0
  157. package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  158. package/dist/esm/generated/src/operationsInterfaces/index.js +9 -0
  159. package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -0
  160. package/dist/esm/generated/src/recipientVerificationClient.d.ts +17 -0
  161. package/dist/esm/generated/src/recipientVerificationClient.d.ts.map +1 -0
  162. package/dist/esm/generated/src/recipientVerificationClient.js +86 -0
  163. package/dist/esm/generated/src/recipientVerificationClient.js.map +1 -0
  164. package/dist/esm/generated/src/tracing.d.ts +2 -0
  165. package/dist/esm/generated/src/tracing.d.ts.map +1 -0
  166. package/dist/esm/generated/src/tracing.js +14 -0
  167. package/dist/esm/generated/src/tracing.js.map +1 -0
  168. package/dist/esm/index.d.ts +4 -0
  169. package/dist/esm/index.d.ts.map +1 -0
  170. package/dist/esm/index.js +6 -0
  171. package/dist/esm/index.js.map +1 -0
  172. package/dist/esm/mappers.d.ts +6 -0
  173. package/dist/esm/mappers.d.ts.map +1 -0
  174. package/dist/esm/mappers.js +8 -0
  175. package/dist/esm/mappers.js.map +1 -0
  176. package/dist/esm/models.d.ts +2 -0
  177. package/dist/esm/models.d.ts.map +1 -0
  178. package/dist/esm/models.js +4 -0
  179. package/dist/esm/models.js.map +1 -0
  180. package/dist/esm/package.json +3 -0
  181. package/dist/esm/recipientVerificationClient.d.ts +74 -0
  182. package/dist/esm/recipientVerificationClient.d.ts.map +1 -0
  183. package/dist/esm/recipientVerificationClient.js +82 -0
  184. package/dist/esm/recipientVerificationClient.js.map +1 -0
  185. package/dist/esm/utils/constants.d.ts +2 -0
  186. package/dist/esm/utils/constants.d.ts.map +1 -0
  187. package/dist/esm/utils/constants.js +4 -0
  188. package/dist/esm/utils/constants.js.map +1 -0
  189. package/dist/esm/utils/index.d.ts +3 -0
  190. package/dist/esm/utils/index.d.ts.map +1 -0
  191. package/dist/esm/utils/index.js +5 -0
  192. package/dist/esm/utils/index.js.map +1 -0
  193. package/dist/esm/utils/logger.d.ts +5 -0
  194. package/dist/esm/utils/logger.d.ts.map +1 -0
  195. package/dist/esm/utils/logger.js +8 -0
  196. package/dist/esm/utils/logger.js.map +1 -0
  197. package/dist/react-native/generated/src/index.d.ts +4 -0
  198. package/dist/react-native/generated/src/index.d.ts.map +1 -0
  199. package/dist/react-native/generated/src/index.js +11 -0
  200. package/dist/react-native/generated/src/index.js.map +1 -0
  201. package/dist/react-native/generated/src/models/index.d.ts +112 -0
  202. package/dist/react-native/generated/src/models/index.d.ts.map +1 -0
  203. package/{dist-esm/src/generated/src/operations → dist/react-native/generated/src/models}/index.js +1 -1
  204. package/dist/react-native/generated/src/models/index.js.map +1 -0
  205. package/dist/react-native/generated/src/models/mappers.d.ts +9 -0
  206. package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -0
  207. package/dist/react-native/generated/src/models/mappers.js +208 -0
  208. package/dist/react-native/generated/src/models/mappers.js.map +1 -0
  209. package/dist/react-native/generated/src/models/parameters.d.ts +10 -0
  210. package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -0
  211. package/dist/react-native/generated/src/models/parameters.js +75 -0
  212. package/dist/react-native/generated/src/models/parameters.js.map +1 -0
  213. package/dist/react-native/generated/src/operations/acsVerificationOperations.d.ts +40 -0
  214. package/dist/react-native/generated/src/operations/acsVerificationOperations.d.ts.map +1 -0
  215. package/dist/react-native/generated/src/operations/acsVerificationOperations.js +167 -0
  216. package/dist/react-native/generated/src/operations/acsVerificationOperations.js.map +1 -0
  217. package/dist/react-native/generated/src/operations/index.d.ts +2 -0
  218. package/dist/react-native/generated/src/operations/index.d.ts.map +1 -0
  219. package/dist/react-native/generated/src/operations/index.js +9 -0
  220. package/dist/react-native/generated/src/operations/index.js.map +1 -0
  221. package/dist/react-native/generated/src/operationsInterfaces/acsVerificationOperations.d.ts +32 -0
  222. package/dist/react-native/generated/src/operationsInterfaces/acsVerificationOperations.d.ts.map +1 -0
  223. package/dist/react-native/generated/src/operationsInterfaces/acsVerificationOperations.js +9 -0
  224. package/dist/react-native/generated/src/operationsInterfaces/acsVerificationOperations.js.map +1 -0
  225. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +2 -0
  226. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  227. package/dist/react-native/generated/src/operationsInterfaces/index.js +9 -0
  228. package/dist/react-native/generated/src/operationsInterfaces/index.js.map +1 -0
  229. package/dist/react-native/generated/src/recipientVerificationClient.d.ts +17 -0
  230. package/dist/react-native/generated/src/recipientVerificationClient.d.ts.map +1 -0
  231. package/dist/react-native/generated/src/recipientVerificationClient.js +86 -0
  232. package/dist/react-native/generated/src/recipientVerificationClient.js.map +1 -0
  233. package/dist/react-native/generated/src/tracing.d.ts +2 -0
  234. package/dist/react-native/generated/src/tracing.d.ts.map +1 -0
  235. package/dist/react-native/generated/src/tracing.js +14 -0
  236. package/dist/react-native/generated/src/tracing.js.map +1 -0
  237. package/dist/react-native/index.d.ts +4 -0
  238. package/dist/react-native/index.d.ts.map +1 -0
  239. package/dist/react-native/index.js +6 -0
  240. package/dist/react-native/index.js.map +1 -0
  241. package/dist/react-native/mappers.d.ts +6 -0
  242. package/dist/react-native/mappers.d.ts.map +1 -0
  243. package/dist/react-native/mappers.js +8 -0
  244. package/dist/react-native/mappers.js.map +1 -0
  245. package/dist/react-native/models.d.ts +2 -0
  246. package/dist/react-native/models.d.ts.map +1 -0
  247. package/dist/react-native/models.js +4 -0
  248. package/dist/react-native/models.js.map +1 -0
  249. package/dist/react-native/package.json +3 -0
  250. package/dist/react-native/recipientVerificationClient.d.ts +74 -0
  251. package/dist/react-native/recipientVerificationClient.d.ts.map +1 -0
  252. package/dist/react-native/recipientVerificationClient.js +82 -0
  253. package/dist/react-native/recipientVerificationClient.js.map +1 -0
  254. package/dist/react-native/utils/constants.d.ts +2 -0
  255. package/dist/react-native/utils/constants.d.ts.map +1 -0
  256. package/dist/react-native/utils/constants.js +4 -0
  257. package/dist/react-native/utils/constants.js.map +1 -0
  258. package/dist/react-native/utils/index.d.ts +3 -0
  259. package/dist/react-native/utils/index.d.ts.map +1 -0
  260. package/dist/react-native/utils/index.js +5 -0
  261. package/dist/react-native/utils/index.js.map +1 -0
  262. package/dist/react-native/utils/logger.d.ts +5 -0
  263. package/dist/react-native/utils/logger.d.ts.map +1 -0
  264. package/dist/react-native/utils/logger.js +8 -0
  265. package/dist/react-native/utils/logger.js.map +1 -0
  266. package/package.json +57 -37
  267. package/dist/index.js +0 -661
  268. package/dist/index.js.map +0 -1
  269. package/dist-esm/src/generated/src/index.js.map +0 -1
  270. package/dist-esm/src/generated/src/operations/acsVerificationOperations.js.map +0 -1
  271. package/dist-esm/src/generated/src/operationsInterfaces/acsVerificationOperations.js.map +0 -1
  272. package/dist-esm/src/generated/src/recipientVerificationClient.js.map +0 -1
  273. package/dist-esm/src/index.js +0 -6
  274. package/dist-esm/src/index.js.map +0 -1
  275. package/dist-esm/src/mappers.js.map +0 -1
  276. package/dist-esm/src/recipientVerificationClient.js.map +0 -1
  277. package/dist-esm/src/utils/index.js +0 -5
  278. package/dist-esm/src/utils/index.js.map +0 -1
  279. package/types/communication-recipient-verification.d.ts +0 -163
  280. /package/{dist-esm/src → dist/browser}/generated/src/models/index.js +0 -0
  281. /package/{dist-esm/src → dist/browser}/generated/src/models/index.js.map +0 -0
  282. /package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js +0 -0
  283. /package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js.map +0 -0
  284. /package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/acsVerificationOperations.js +0 -0
  285. /package/{dist-esm/src → dist/browser}/generated/src/tracing.js +0 -0
  286. /package/{dist-esm/src → dist/browser}/generated/src/tracing.js.map +0 -0
  287. /package/{dist-esm/src → dist/browser}/models.js +0 -0
  288. /package/{dist-esm/src → dist/browser}/utils/constants.js +0 -0
  289. /package/{dist-esm/src → dist/browser}/utils/constants.js.map +0 -0
  290. /package/{dist-esm/src → dist/browser}/utils/logger.js +0 -0
  291. /package/{dist-esm/src → dist/browser}/utils/logger.js.map +0 -0
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.verificationId = exports.verificationCode = exports.channel = exports.identity = exports.contentType = exports.apiVersion = exports.endpoint = exports.accept = void 0;
11
+ const mappers_js_1 = require("../models/mappers.js");
12
+ exports.accept = {
13
+ parameterPath: "accept",
14
+ mapper: {
15
+ defaultValue: "application/json",
16
+ isConstant: true,
17
+ serializedName: "Accept",
18
+ type: {
19
+ name: "String"
20
+ }
21
+ }
22
+ };
23
+ exports.endpoint = {
24
+ parameterPath: "endpoint",
25
+ mapper: {
26
+ serializedName: "endpoint",
27
+ required: true,
28
+ type: {
29
+ name: "String"
30
+ }
31
+ },
32
+ skipEncoding: true
33
+ };
34
+ exports.apiVersion = {
35
+ parameterPath: "apiVersion",
36
+ mapper: {
37
+ defaultValue: "2022-11-15",
38
+ isConstant: true,
39
+ serializedName: "api-version",
40
+ type: {
41
+ name: "String"
42
+ }
43
+ }
44
+ };
45
+ exports.contentType = {
46
+ parameterPath: ["options", "contentType"],
47
+ mapper: {
48
+ defaultValue: "application/json",
49
+ isConstant: true,
50
+ serializedName: "Content-Type",
51
+ type: {
52
+ name: "String"
53
+ }
54
+ }
55
+ };
56
+ exports.identity = {
57
+ parameterPath: ["options", "identity"],
58
+ mapper: mappers_js_1.VerificationRequest
59
+ };
60
+ exports.channel = {
61
+ parameterPath: ["options", "channel"],
62
+ mapper: mappers_js_1.VerificationRequest
63
+ };
64
+ exports.verificationCode = {
65
+ parameterPath: ["options", "verificationCode"],
66
+ mapper: mappers_js_1.VerificationCodeRequest
67
+ };
68
+ exports.verificationId = {
69
+ parameterPath: "verificationId",
70
+ mapper: {
71
+ serializedName: "verificationId",
72
+ required: true,
73
+ type: {
74
+ name: "Uuid"
75
+ }
76
+ }
77
+ };
78
+ //# sourceMappingURL=parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAOH,qDAG8B;AAEjB,QAAA,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEW,QAAA,UAAU,GAA4B;IACjD,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE;QACN,YAAY,EAAE,YAAY;QAC1B,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,QAAQ,GAAuB;IAC1C,aAAa,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;IACtC,MAAM,EAAE,gCAAyB;CAClC,CAAC;AAEW,QAAA,OAAO,GAAuB;IACzC,aAAa,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;IACrC,MAAM,EAAE,gCAAyB;CAClC,CAAC;AAEW,QAAA,gBAAgB,GAAuB;IAClD,aAAa,EAAE,CAAC,SAAS,EAAE,kBAAkB,CAAC;IAC9C,MAAM,EAAE,oCAA6B;CACtC,CAAC;AAEW,QAAA,cAAc,GAA0B;IACnD,aAAa,EAAE,gBAAgB;IAC/B,MAAM,EAAE;QACN,cAAc,EAAE,gBAAgB;QAChC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;SACb;KACF;CACF,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 {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport {\n VerificationRequest as VerificationRequestMapper,\n VerificationCodeRequest as VerificationCodeRequestMapper\n} from \"../models/mappers.js\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const endpoint: OperationURLParameter = {\n parameterPath: \"endpoint\",\n mapper: {\n serializedName: \"endpoint\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2022-11-15\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const identity: OperationParameter = {\n parameterPath: [\"options\", \"identity\"],\n mapper: VerificationRequestMapper\n};\n\nexport const channel: OperationParameter = {\n parameterPath: [\"options\", \"channel\"],\n mapper: VerificationRequestMapper\n};\n\nexport const verificationCode: OperationParameter = {\n parameterPath: [\"options\", \"verificationCode\"],\n mapper: VerificationCodeRequestMapper\n};\n\nexport const verificationId: OperationURLParameter = {\n parameterPath: \"verificationId\",\n mapper: {\n serializedName: \"verificationId\",\n required: true,\n type: {\n name: \"Uuid\"\n }\n }\n};\n"]}
@@ -0,0 +1,40 @@
1
+ import { AcsVerificationOperations } from "../operationsInterfaces/index.js";
2
+ import { RecipientVerificationClient } from "../recipientVerificationClient.js";
3
+ import { AcsVerificationGetVerificationsOptionalParams, AcsVerificationGetVerificationsResponse, AcsVerificationRequestVerificationOptionalParams, AcsVerificationRequestVerificationResponse, AcsVerificationVerifyIdentityOptionalParams, AcsVerificationVerifyIdentityResponse, AcsVerificationDeleteVerificationOptionalParams, AcsVerificationGetVerificationConstantsOptionalParams, AcsVerificationGetVerificationConstantsResponse } from "../models/index.js";
4
+ /** Class containing AcsVerificationOperations operations. */
5
+ export declare class AcsVerificationOperationsImpl implements AcsVerificationOperations {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class AcsVerificationOperations class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: RecipientVerificationClient);
12
+ /**
13
+ * Gets the array of verified phone numbers for the current resource.
14
+ * @param options The options parameters.
15
+ */
16
+ getVerifications(options?: AcsVerificationGetVerificationsOptionalParams): Promise<AcsVerificationGetVerificationsResponse>;
17
+ /**
18
+ * Request the identity for the verification.
19
+ * @param options The options parameters.
20
+ */
21
+ requestVerification(options?: AcsVerificationRequestVerificationOptionalParams): Promise<AcsVerificationRequestVerificationResponse>;
22
+ /**
23
+ * Verify that the user received the correct verification code.
24
+ * @param verificationId Verification Id. Must be a valid GUID
25
+ * @param options The options parameters.
26
+ */
27
+ verifyIdentity(verificationId: string, options?: AcsVerificationVerifyIdentityOptionalParams): Promise<AcsVerificationVerifyIdentityResponse>;
28
+ /**
29
+ * Deleting a verification.
30
+ * @param verificationId Verification Id. Must be a valid GUID
31
+ * @param options The options parameters.
32
+ */
33
+ deleteVerification(verificationId: string, options?: AcsVerificationDeleteVerificationOptionalParams): Promise<void>;
34
+ /**
35
+ * Getting all the constants for the resource.
36
+ * @param options The options parameters.
37
+ */
38
+ getVerificationConstants(options?: AcsVerificationGetVerificationConstantsOptionalParams): Promise<AcsVerificationGetVerificationConstantsResponse>;
39
+ }
40
+ //# sourceMappingURL=acsVerificationOperations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acsVerificationOperations.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/acsVerificationOperations.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAI7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,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,6DAA6D;AAC7D,qBAAa,6BACX,YAAW,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA8B;IAErD;;;OAGG;gBACS,MAAM,EAAE,2BAA2B;IAI/C;;;OAGG;IACG,gBAAgB,CACpB,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,uCAAuC,CAAC;IAanD;;;OAGG;IACG,mBAAmB,CACvB,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,0CAA0C,CAAC;IAatD;;;;OAIG;IACG,cAAc,CAClB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC;IAajD;;;;OAIG;IACG,kBAAkB,CACtB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,IAAI,CAAC;IAahB;;;OAGG;IACG,wBAAwB,CAC5B,OAAO,CAAC,EAAE,qDAAqD,GAC9D,OAAO,CAAC,+CAA+C,CAAC;CAY5D"}
@@ -0,0 +1,172 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.AcsVerificationOperationsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const tracing_js_1 = require("../tracing.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ /** Class containing AcsVerificationOperations operations. */
17
+ class AcsVerificationOperationsImpl {
18
+ /**
19
+ * Initialize a new instance of the class AcsVerificationOperations class.
20
+ * @param client Reference to the service client
21
+ */
22
+ constructor(client) {
23
+ this.client = client;
24
+ }
25
+ /**
26
+ * Gets the array of verified phone numbers for the current resource.
27
+ * @param options The options parameters.
28
+ */
29
+ async getVerifications(options) {
30
+ return tracing_js_1.tracingClient.withSpan("RecipientVerificationClient.getVerifications", options !== null && options !== void 0 ? options : {}, async (options) => {
31
+ return this.client.sendOperationRequest({ options }, getVerificationsOperationSpec);
32
+ });
33
+ }
34
+ /**
35
+ * Request the identity for the verification.
36
+ * @param options The options parameters.
37
+ */
38
+ async requestVerification(options) {
39
+ return tracing_js_1.tracingClient.withSpan("RecipientVerificationClient.requestVerification", options !== null && options !== void 0 ? options : {}, async (options) => {
40
+ return this.client.sendOperationRequest({ options }, requestVerificationOperationSpec);
41
+ });
42
+ }
43
+ /**
44
+ * Verify that the user received the correct verification code.
45
+ * @param verificationId Verification Id. Must be a valid GUID
46
+ * @param options The options parameters.
47
+ */
48
+ async verifyIdentity(verificationId, options) {
49
+ return tracing_js_1.tracingClient.withSpan("RecipientVerificationClient.verifyIdentity", options !== null && options !== void 0 ? options : {}, async (options) => {
50
+ return this.client.sendOperationRequest({ verificationId, options }, verifyIdentityOperationSpec);
51
+ });
52
+ }
53
+ /**
54
+ * Deleting a verification.
55
+ * @param verificationId Verification Id. Must be a valid GUID
56
+ * @param options The options parameters.
57
+ */
58
+ async deleteVerification(verificationId, options) {
59
+ return tracing_js_1.tracingClient.withSpan("RecipientVerificationClient.deleteVerification", options !== null && options !== void 0 ? options : {}, async (options) => {
60
+ return this.client.sendOperationRequest({ verificationId, options }, deleteVerificationOperationSpec);
61
+ });
62
+ }
63
+ /**
64
+ * Getting all the constants for the resource.
65
+ * @param options The options parameters.
66
+ */
67
+ async getVerificationConstants(options) {
68
+ return tracing_js_1.tracingClient.withSpan("RecipientVerificationClient.getVerificationConstants", options !== null && options !== void 0 ? options : {}, async (options) => {
69
+ return this.client.sendOperationRequest({ options }, getVerificationConstantsOperationSpec);
70
+ });
71
+ }
72
+ }
73
+ exports.AcsVerificationOperationsImpl = AcsVerificationOperationsImpl;
74
+ // Operation Specifications
75
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
76
+ const getVerificationsOperationSpec = {
77
+ path: "/verifications",
78
+ httpMethod: "GET",
79
+ responses: {
80
+ 200: {
81
+ bodyMapper: {
82
+ type: {
83
+ name: "Sequence",
84
+ element: { type: { name: "Composite", className: "AcsVerification" } }
85
+ }
86
+ }
87
+ },
88
+ default: {
89
+ bodyMapper: Mappers.CommunicationErrorResponse
90
+ }
91
+ },
92
+ queryParameters: [Parameters.apiVersion],
93
+ urlParameters: [Parameters.endpoint],
94
+ headerParameters: [Parameters.accept],
95
+ serializer
96
+ };
97
+ const requestVerificationOperationSpec = {
98
+ path: "/verifications",
99
+ httpMethod: "POST",
100
+ responses: {
101
+ 200: {
102
+ bodyMapper: Mappers.VerificationResponse
103
+ },
104
+ default: {
105
+ bodyMapper: Mappers.CommunicationErrorResponse
106
+ }
107
+ },
108
+ requestBody: {
109
+ parameterPath: {
110
+ identity: ["options", "identity"],
111
+ channel: ["options", "channel"]
112
+ },
113
+ mapper: Mappers.VerificationRequest
114
+ },
115
+ queryParameters: [Parameters.apiVersion],
116
+ urlParameters: [Parameters.endpoint],
117
+ headerParameters: [Parameters.accept, Parameters.contentType],
118
+ mediaType: "json",
119
+ serializer
120
+ };
121
+ const verifyIdentityOperationSpec = {
122
+ path: "/verifications/{verificationId}/check",
123
+ httpMethod: "POST",
124
+ responses: {
125
+ 200: {
126
+ bodyMapper: Mappers.VerificationResponse
127
+ },
128
+ default: {
129
+ bodyMapper: Mappers.CommunicationErrorResponse
130
+ }
131
+ },
132
+ requestBody: {
133
+ parameterPath: { verificationCode: ["options", "verificationCode"] },
134
+ mapper: Mappers.VerificationCodeRequest
135
+ },
136
+ queryParameters: [Parameters.apiVersion],
137
+ urlParameters: [Parameters.endpoint, Parameters.verificationId],
138
+ headerParameters: [Parameters.accept, Parameters.contentType],
139
+ mediaType: "json",
140
+ serializer
141
+ };
142
+ const deleteVerificationOperationSpec = {
143
+ path: "/verifications/{verificationId}/",
144
+ httpMethod: "DELETE",
145
+ responses: {
146
+ 200: {},
147
+ default: {
148
+ bodyMapper: Mappers.CommunicationErrorResponse
149
+ }
150
+ },
151
+ queryParameters: [Parameters.apiVersion],
152
+ urlParameters: [Parameters.endpoint, Parameters.verificationId],
153
+ headerParameters: [Parameters.accept],
154
+ serializer
155
+ };
156
+ const getVerificationConstantsOperationSpec = {
157
+ path: "/verifications/configuration",
158
+ httpMethod: "GET",
159
+ responses: {
160
+ 200: {
161
+ bodyMapper: Mappers.VerificationConstantsResponse
162
+ },
163
+ default: {
164
+ bodyMapper: Mappers.CommunicationErrorResponse
165
+ }
166
+ },
167
+ queryParameters: [Parameters.apiVersion],
168
+ urlParameters: [Parameters.endpoint],
169
+ headerParameters: [Parameters.accept],
170
+ serializer
171
+ };
172
+ //# 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,8CAA8C;AAE9C,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AActD,6DAA6D;AAC7D,MAAa,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,0BAAa,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,0BAAa,CAAC,QAAQ,CAC3B,iDAAiD,EACjD,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,gCAAgC,CACsB,CAAC;QAC3D,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,cAAc,CAClB,cAAsB,EACtB,OAAqD;QAErD,OAAO,0BAAa,CAAC,QAAQ,CAC3B,4CAA4C,EAC5C,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,OAAO,EA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C,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,cAAc,CAAC;IAC/D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,kCAAkC;IACxC,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,cAAc,CAAC;IAC/D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EAAE,8BAA8B;IACpC,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,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,2 @@
1
+ export * from "./acsVerificationOperations.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,12 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ const tslib_1 = require("tslib");
11
+ tslib_1.__exportStar(require("./acsVerificationOperations.js"), exports);
12
+ //# 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,yEAA+C","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
@@ -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,10 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ //# 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,2 @@
1
+ export * from "./acsVerificationOperations.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,12 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ const tslib_1 = require("tslib");
11
+ tslib_1.__exportStar(require("./acsVerificationOperations.js"), exports);
12
+ //# 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,yEAA+C","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,91 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.RecipientVerificationClient = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
+ const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
14
+ const index_js_1 = require("./operations/index.js");
15
+ class RecipientVerificationClient extends coreClient.ServiceClient {
16
+ /**
17
+ * Initializes a new instance of the RecipientVerificationClient class.
18
+ * @param endpoint The communication resource, for example https://resourcename.communication.azure.com
19
+ * @param options The parameter options
20
+ */
21
+ constructor(endpoint, options) {
22
+ var _a, _b;
23
+ if (endpoint === undefined) {
24
+ throw new Error("'endpoint' cannot be null");
25
+ }
26
+ // Initializing default values for options
27
+ if (!options) {
28
+ options = {};
29
+ }
30
+ const defaults = {
31
+ requestContentType: "application/json; charset=utf-8"
32
+ };
33
+ const packageDetails = `azsdk-js-communication-recipient-verification/1.0.0-beta.1`;
34
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
35
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
36
+ : `${packageDetails}`;
37
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
38
+ userAgentPrefix
39
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
40
+ super(optionsWithDefaults);
41
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
42
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
43
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
44
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
45
+ if (!bearerTokenAuthenticationPolicyFound) {
46
+ this.pipeline.removePolicy({
47
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
48
+ });
49
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
50
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
51
+ challengeCallbacks: {
52
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
53
+ }
54
+ }));
55
+ }
56
+ }
57
+ // Parameter assignments
58
+ this.endpoint = endpoint;
59
+ // Assigning values to Constant parameters
60
+ this.apiVersion = options.apiVersion || "2022-11-15";
61
+ this.acsVerificationOperations = new index_js_1.AcsVerificationOperationsImpl(this);
62
+ this.addCustomApiVersionPolicy(options.apiVersion);
63
+ }
64
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
65
+ addCustomApiVersionPolicy(apiVersion) {
66
+ if (!apiVersion) {
67
+ return;
68
+ }
69
+ const apiVersionPolicy = {
70
+ name: "CustomApiVersionPolicy",
71
+ async sendRequest(request, next) {
72
+ const param = request.url.split("?");
73
+ if (param.length > 1) {
74
+ const newParams = param[1].split("&").map((item) => {
75
+ if (item.indexOf("api-version") > -1) {
76
+ return "api-version=" + apiVersion;
77
+ }
78
+ else {
79
+ return item;
80
+ }
81
+ });
82
+ request.url = param[0] + "?" + newParams.join("&");
83
+ }
84
+ return next(request);
85
+ }
86
+ };
87
+ this.pipeline.addPolicy(apiVersionPolicy);
88
+ }
89
+ }
90
+ exports.RecipientVerificationClient = RecipientVerificationClient;
91
+ //# 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,uEAAiD;AACjD,oFAA8D;AAM9D,oDAAsE;AAItE,MAAa,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,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM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AAC,CAAC;IAC5C,CAAC;CAGF;AArGD,kEAqGC","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,2 @@
1
+ export declare const tracingClient: import("@azure/core-tracing").TracingClient;
2
+ //# sourceMappingURL=tracing.d.ts.map
@@ -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,17 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.tracingClient = void 0;
11
+ const core_tracing_1 = require("@azure/core-tracing");
12
+ exports.tracingClient = (0, core_tracing_1.createTracingClient)({
13
+ namespace: "Microsoft.Communication",
14
+ packageName: "@azure/communication-recipient-verification",
15
+ packageVersion: "1.0.0-beta.1"
16
+ });
17
+ //# 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,sDAA0D;AAE7C,QAAA,aAAa,GAAG,IAAA,kCAAmB,EAAC;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,4 @@
1
+ export * from "./models.js";
2
+ export * from "./mappers.js";
3
+ export * from "./recipientVerificationClient.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -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,9 @@
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("./models.js"), exports);
7
+ tslib_1.__exportStar(require("./mappers.js"), exports);
8
+ tslib_1.__exportStar(require("./recipientVerificationClient.js"), exports);
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,sDAA4B;AAC5B,uDAA6B;AAC7B,2EAAiD","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"]}