@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,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;IAC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,UAAU,CAAC,oBAAoB;IACvC,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -5,5 +5,5 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- export * from "./acsVerificationOperations";
8
+ export {};
9
9
  //# sourceMappingURL=index.js.map
@@ -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"}
@@ -0,0 +1,208 @@
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 const AcsVerification = {
9
+ type: {
10
+ name: "Composite",
11
+ className: "AcsVerification",
12
+ modelProperties: {
13
+ immutableId: {
14
+ serializedName: "ImmutableId",
15
+ type: {
16
+ name: "String"
17
+ }
18
+ },
19
+ verificationId: {
20
+ serializedName: "VerificationId",
21
+ type: {
22
+ name: "String"
23
+ }
24
+ },
25
+ status: {
26
+ serializedName: "Status",
27
+ type: {
28
+ name: "String"
29
+ }
30
+ },
31
+ subscriptionId: {
32
+ serializedName: "SubscriptionId",
33
+ type: {
34
+ name: "String"
35
+ }
36
+ },
37
+ identity: {
38
+ serializedName: "Identity",
39
+ type: {
40
+ name: "String"
41
+ }
42
+ },
43
+ challengeId: {
44
+ serializedName: "ChallengeId",
45
+ type: {
46
+ name: "String"
47
+ }
48
+ },
49
+ retries: {
50
+ serializedName: "Retries",
51
+ type: {
52
+ name: "Number"
53
+ }
54
+ },
55
+ attempts: {
56
+ serializedName: "Attempts",
57
+ type: {
58
+ name: "Number"
59
+ }
60
+ }
61
+ }
62
+ }
63
+ };
64
+ export const CommunicationErrorResponse = {
65
+ type: {
66
+ name: "Composite",
67
+ className: "CommunicationErrorResponse",
68
+ modelProperties: {
69
+ error: {
70
+ serializedName: "error",
71
+ type: {
72
+ name: "Composite",
73
+ className: "CommunicationError"
74
+ }
75
+ }
76
+ }
77
+ }
78
+ };
79
+ export const CommunicationError = {
80
+ type: {
81
+ name: "Composite",
82
+ className: "CommunicationError",
83
+ modelProperties: {
84
+ code: {
85
+ serializedName: "code",
86
+ required: true,
87
+ type: {
88
+ name: "String"
89
+ }
90
+ },
91
+ message: {
92
+ serializedName: "message",
93
+ required: true,
94
+ type: {
95
+ name: "String"
96
+ }
97
+ },
98
+ target: {
99
+ serializedName: "target",
100
+ readOnly: true,
101
+ type: {
102
+ name: "String"
103
+ }
104
+ },
105
+ details: {
106
+ serializedName: "details",
107
+ readOnly: true,
108
+ type: {
109
+ name: "Sequence",
110
+ element: {
111
+ type: {
112
+ name: "Composite",
113
+ className: "CommunicationError"
114
+ }
115
+ }
116
+ }
117
+ },
118
+ innerError: {
119
+ serializedName: "innererror",
120
+ type: {
121
+ name: "Composite",
122
+ className: "CommunicationError"
123
+ }
124
+ }
125
+ }
126
+ }
127
+ };
128
+ export const VerificationRequest = {
129
+ type: {
130
+ name: "Composite",
131
+ className: "VerificationRequest",
132
+ modelProperties: {
133
+ identity: {
134
+ serializedName: "Identity",
135
+ type: {
136
+ name: "String"
137
+ }
138
+ },
139
+ channel: {
140
+ serializedName: "Channel",
141
+ type: {
142
+ name: "String"
143
+ }
144
+ }
145
+ }
146
+ }
147
+ };
148
+ export const VerificationResponse = {
149
+ type: {
150
+ name: "Composite",
151
+ className: "VerificationResponse",
152
+ modelProperties: {
153
+ verificationId: {
154
+ serializedName: "VerificationId",
155
+ type: {
156
+ name: "String"
157
+ }
158
+ },
159
+ isVerified: {
160
+ serializedName: "IsVerified",
161
+ type: {
162
+ name: "Boolean"
163
+ }
164
+ }
165
+ }
166
+ }
167
+ };
168
+ export const VerificationCodeRequest = {
169
+ type: {
170
+ name: "Composite",
171
+ className: "VerificationCodeRequest",
172
+ modelProperties: {
173
+ verificationCode: {
174
+ serializedName: "VerificationCode",
175
+ type: {
176
+ name: "String"
177
+ }
178
+ }
179
+ }
180
+ }
181
+ };
182
+ export const VerificationConstantsResponse = {
183
+ type: {
184
+ name: "Composite",
185
+ className: "VerificationConstantsResponse",
186
+ modelProperties: {
187
+ maxRetriesAllowed: {
188
+ serializedName: "MaxRetriesAllowed",
189
+ type: {
190
+ name: "Number"
191
+ }
192
+ },
193
+ maxVerificationsAllowed: {
194
+ serializedName: "MaxVerificationsAllowed",
195
+ type: {
196
+ name: "Number"
197
+ }
198
+ },
199
+ currentNumberOfVerifications: {
200
+ serializedName: "CurrentNumberOfVerifications",
201
+ type: {
202
+ name: "Number"
203
+ }
204
+ }
205
+ }
206
+ }
207
+ };
208
+ //# sourceMappingURL=mappers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,eAAe,GAA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EAAE,WAAW;QACjB,SAAS,EAAE,sBAAsB;QACjC,eAAe,EAAE;YACf,cAAc,EAAE;gBACd,cAAc,EAAE,gBAAgB;gBAChC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,SAAS;iBAChB;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAA+B;IACjE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,yBAAyB;QACpC,eAAe,EAAE;YACf,gBAAgB,EAAE;gBAChB,cAAc,EAAE,kBAAkB;gBAClC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAA+B;IACvE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,+BAA+B;QAC1C,eAAe,EAAE;YACf,iBAAiB,EAAE;gBACjB,cAAc,EAAE,mBAAmB;gBACnC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,uBAAuB,EAAE;gBACvB,cAAc,EAAE,yBAAyB;gBACzC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,4BAA4B,EAAE;gBAC5B,cAAc,EAAE,8BAA8B;gBAC9C,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;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 * as coreClient from \"@azure/core-client\";\n\nexport const AcsVerification: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AcsVerification\",\n modelProperties: {\n immutableId: {\n serializedName: \"ImmutableId\",\n type: {\n name: \"String\"\n }\n },\n verificationId: {\n serializedName: \"VerificationId\",\n type: {\n name: \"String\"\n }\n },\n status: {\n serializedName: \"Status\",\n type: {\n name: \"String\"\n }\n },\n subscriptionId: {\n serializedName: \"SubscriptionId\",\n type: {\n name: \"String\"\n }\n },\n identity: {\n serializedName: \"Identity\",\n type: {\n name: \"String\"\n }\n },\n challengeId: {\n serializedName: \"ChallengeId\",\n type: {\n name: \"String\"\n }\n },\n retries: {\n serializedName: \"Retries\",\n type: {\n name: \"Number\"\n }\n },\n attempts: {\n serializedName: \"Attempts\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const CommunicationErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const CommunicationError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationError\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n },\n innerError: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"CommunicationError\"\n }\n }\n }\n }\n};\n\nexport const VerificationRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"VerificationRequest\",\n modelProperties: {\n identity: {\n serializedName: \"Identity\",\n type: {\n name: \"String\"\n }\n },\n channel: {\n serializedName: \"Channel\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const VerificationResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"VerificationResponse\",\n modelProperties: {\n verificationId: {\n serializedName: \"VerificationId\",\n type: {\n name: \"String\"\n }\n },\n isVerified: {\n serializedName: \"IsVerified\",\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const VerificationCodeRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"VerificationCodeRequest\",\n modelProperties: {\n verificationCode: {\n serializedName: \"VerificationCode\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const VerificationConstantsResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"VerificationConstantsResponse\",\n modelProperties: {\n maxRetriesAllowed: {\n serializedName: \"MaxRetriesAllowed\",\n type: {\n name: \"Number\"\n }\n },\n maxVerificationsAllowed: {\n serializedName: \"MaxVerificationsAllowed\",\n type: {\n name: \"Number\"\n }\n },\n currentNumberOfVerifications: {\n serializedName: \"CurrentNumberOfVerifications\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n"]}
@@ -0,0 +1,10 @@
1
+ import { OperationParameter, OperationURLParameter, OperationQueryParameter } from "@azure/core-client";
2
+ export declare const accept: OperationParameter;
3
+ export declare const endpoint: OperationURLParameter;
4
+ export declare const apiVersion: OperationQueryParameter;
5
+ export declare const contentType: OperationParameter;
6
+ export declare const identity: OperationParameter;
7
+ export declare const channel: OperationParameter;
8
+ export declare const verificationCode: OperationParameter;
9
+ export declare const verificationId: OperationURLParameter;
10
+ //# sourceMappingURL=parameters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAM5B,eAAO,MAAM,MAAM,EAAE,kBAUpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,qBAUtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,uBAUxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAUzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,kBAGtB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,kBAGrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,kBAG9B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,qBAS5B,CAAC"}
@@ -0,0 +1,75 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { VerificationRequest as VerificationRequestMapper, VerificationCodeRequest as VerificationCodeRequestMapper } from "../models/mappers.js";
9
+ export const accept = {
10
+ parameterPath: "accept",
11
+ mapper: {
12
+ defaultValue: "application/json",
13
+ isConstant: true,
14
+ serializedName: "Accept",
15
+ type: {
16
+ name: "String"
17
+ }
18
+ }
19
+ };
20
+ export const endpoint = {
21
+ parameterPath: "endpoint",
22
+ mapper: {
23
+ serializedName: "endpoint",
24
+ required: true,
25
+ type: {
26
+ name: "String"
27
+ }
28
+ },
29
+ skipEncoding: true
30
+ };
31
+ export const apiVersion = {
32
+ parameterPath: "apiVersion",
33
+ mapper: {
34
+ defaultValue: "2022-11-15",
35
+ isConstant: true,
36
+ serializedName: "api-version",
37
+ type: {
38
+ name: "String"
39
+ }
40
+ }
41
+ };
42
+ export const contentType = {
43
+ parameterPath: ["options", "contentType"],
44
+ mapper: {
45
+ defaultValue: "application/json",
46
+ isConstant: true,
47
+ serializedName: "Content-Type",
48
+ type: {
49
+ name: "String"
50
+ }
51
+ }
52
+ };
53
+ export const identity = {
54
+ parameterPath: ["options", "identity"],
55
+ mapper: VerificationRequestMapper
56
+ };
57
+ export const channel = {
58
+ parameterPath: ["options", "channel"],
59
+ mapper: VerificationRequestMapper
60
+ };
61
+ export const verificationCode = {
62
+ parameterPath: ["options", "verificationCode"],
63
+ mapper: VerificationCodeRequestMapper
64
+ };
65
+ export const verificationId = {
66
+ parameterPath: "verificationId",
67
+ mapper: {
68
+ serializedName: "verificationId",
69
+ required: true,
70
+ type: {
71
+ name: "Uuid"
72
+ }
73
+ }
74
+ };
75
+ //# 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,OAAO,EACL,mBAAmB,IAAI,yBAAyB,EAChD,uBAAuB,IAAI,6BAA6B,EACzD,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,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;AAEF,MAAM,CAAC,MAAM,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;AAEF,MAAM,CAAC,MAAM,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;AAEF,MAAM,CAAC,MAAM,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;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAuB;IAC1C,aAAa,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;IACtC,MAAM,EAAE,yBAAyB;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAuB;IACzC,aAAa,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;IACrC,MAAM,EAAE,yBAAyB;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAuB;IAClD,aAAa,EAAE,CAAC,SAAS,EAAE,kBAAkB,CAAC;IAC9C,MAAM,EAAE,6BAA6B;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,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"}