@azure/communication-identity 1.3.2-alpha.20241119.1 → 1.3.2-alpha.20241122.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. package/dist/index.js +684 -0
  2. package/dist/index.js.map +1 -0
  3. package/{dist/esm → dist-esm/src}/communicationIdentityClient.js +3 -3
  4. package/dist-esm/src/communicationIdentityClient.js.map +1 -0
  5. package/{dist/esm → dist-esm/src}/generated/src/identityRestClient.js +1 -1
  6. package/dist-esm/src/generated/src/identityRestClient.js.map +1 -0
  7. package/{dist/esm/generated/src/operations → dist-esm/src/generated/src}/index.js +3 -1
  8. package/dist-esm/src/generated/src/index.js.map +1 -0
  9. package/{dist/esm → dist-esm/src}/generated/src/models/parameters.js +1 -1
  10. package/dist-esm/src/generated/src/models/parameters.js.map +1 -0
  11. package/{dist/browser → dist-esm/src}/generated/src/operations/communicationIdentityOperations.js +3 -3
  12. package/dist-esm/src/generated/src/operations/communicationIdentityOperations.js.map +1 -0
  13. package/{dist/esm/generated/src/operationsInterfaces/communicationIdentityOperations.js → dist-esm/src/generated/src/operations/index.js} +2 -2
  14. package/{dist/esm → dist-esm/src}/generated/src/operations/index.js.map +1 -1
  15. package/dist-esm/src/generated/src/operationsInterfaces/communicationIdentityOperations.js.map +1 -0
  16. package/{dist/react-native/generated/src/operationsInterfaces/communicationIdentityOperations.js → dist-esm/src/generated/src/operationsInterfaces/index.js} +2 -2
  17. package/{dist/react-native → dist-esm/src}/generated/src/operationsInterfaces/index.js.map +1 -1
  18. package/dist-esm/src/index.js +5 -0
  19. package/{dist/react-native → dist-esm/src}/index.js.map +1 -1
  20. package/package.json +48 -68
  21. package/dist/browser/common/logger.d.ts +0 -5
  22. package/dist/browser/common/logger.d.ts.map +0 -1
  23. package/dist/browser/communicationIdentityClient.d.ts +0 -76
  24. package/dist/browser/communicationIdentityClient.d.ts.map +0 -1
  25. package/dist/browser/communicationIdentityClient.js +0 -103
  26. package/dist/browser/communicationIdentityClient.js.map +0 -1
  27. package/dist/browser/constants.d.ts +0 -2
  28. package/dist/browser/constants.d.ts.map +0 -1
  29. package/dist/browser/generated/src/identityRestClient.d.ts +0 -17
  30. package/dist/browser/generated/src/identityRestClient.d.ts.map +0 -1
  31. package/dist/browser/generated/src/identityRestClient.js +0 -69
  32. package/dist/browser/generated/src/identityRestClient.js.map +0 -1
  33. package/dist/browser/generated/src/index.d.ts +0 -4
  34. package/dist/browser/generated/src/index.d.ts.map +0 -1
  35. package/dist/browser/generated/src/index.js +0 -11
  36. package/dist/browser/generated/src/index.js.map +0 -1
  37. package/dist/browser/generated/src/models/index.d.ts +0 -127
  38. package/dist/browser/generated/src/models/index.d.ts.map +0 -1
  39. package/dist/browser/generated/src/models/mappers.d.ts +0 -10
  40. package/dist/browser/generated/src/models/mappers.d.ts.map +0 -1
  41. package/dist/browser/generated/src/models/parameters.d.ts +0 -14
  42. package/dist/browser/generated/src/models/parameters.d.ts.map +0 -1
  43. package/dist/browser/generated/src/models/parameters.js +0 -91
  44. package/dist/browser/generated/src/models/parameters.js.map +0 -1
  45. package/dist/browser/generated/src/operations/communicationIdentityOperations.d.ts +0 -49
  46. package/dist/browser/generated/src/operations/communicationIdentityOperations.d.ts.map +0 -1
  47. package/dist/browser/generated/src/operations/communicationIdentityOperations.js.map +0 -1
  48. package/dist/browser/generated/src/operations/index.d.ts +0 -2
  49. package/dist/browser/generated/src/operations/index.d.ts.map +0 -1
  50. package/dist/browser/generated/src/operations/index.js +0 -9
  51. package/dist/browser/generated/src/operations/index.js.map +0 -1
  52. package/dist/browser/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts +0 -41
  53. package/dist/browser/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts.map +0 -1
  54. package/dist/browser/generated/src/operationsInterfaces/communicationIdentityOperations.js.map +0 -1
  55. package/dist/browser/generated/src/operationsInterfaces/index.d.ts +0 -2
  56. package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +0 -1
  57. package/dist/browser/generated/src/operationsInterfaces/index.js +0 -9
  58. package/dist/browser/generated/src/operationsInterfaces/index.js.map +0 -1
  59. package/dist/browser/generated/src/tracing.d.ts +0 -2
  60. package/dist/browser/generated/src/tracing.d.ts.map +0 -1
  61. package/dist/browser/index.d.ts +0 -3
  62. package/dist/browser/index.d.ts.map +0 -1
  63. package/dist/browser/index.js +0 -5
  64. package/dist/browser/index.js.map +0 -1
  65. package/dist/browser/models.d.ts +0 -65
  66. package/dist/browser/models.d.ts.map +0 -1
  67. package/dist/browser/package.json +0 -3
  68. package/dist/commonjs/common/logger.d.ts +0 -5
  69. package/dist/commonjs/common/logger.d.ts.map +0 -1
  70. package/dist/commonjs/common/logger.js +0 -11
  71. package/dist/commonjs/common/logger.js.map +0 -1
  72. package/dist/commonjs/communicationIdentityClient.d.ts +0 -76
  73. package/dist/commonjs/communicationIdentityClient.d.ts.map +0 -1
  74. package/dist/commonjs/communicationIdentityClient.js +0 -107
  75. package/dist/commonjs/communicationIdentityClient.js.map +0 -1
  76. package/dist/commonjs/constants.d.ts +0 -2
  77. package/dist/commonjs/constants.d.ts.map +0 -1
  78. package/dist/commonjs/constants.js +0 -7
  79. package/dist/commonjs/constants.js.map +0 -1
  80. package/dist/commonjs/generated/src/identityRestClient.d.ts +0 -17
  81. package/dist/commonjs/generated/src/identityRestClient.d.ts.map +0 -1
  82. package/dist/commonjs/generated/src/identityRestClient.js +0 -74
  83. package/dist/commonjs/generated/src/identityRestClient.js.map +0 -1
  84. package/dist/commonjs/generated/src/index.d.ts +0 -4
  85. package/dist/commonjs/generated/src/index.d.ts.map +0 -1
  86. package/dist/commonjs/generated/src/index.js +0 -16
  87. package/dist/commonjs/generated/src/index.js.map +0 -1
  88. package/dist/commonjs/generated/src/models/index.d.ts +0 -127
  89. package/dist/commonjs/generated/src/models/index.d.ts.map +0 -1
  90. package/dist/commonjs/generated/src/models/index.js +0 -25
  91. package/dist/commonjs/generated/src/models/index.js.map +0 -1
  92. package/dist/commonjs/generated/src/models/mappers.d.ts +0 -10
  93. package/dist/commonjs/generated/src/models/mappers.d.ts.map +0 -1
  94. package/dist/commonjs/generated/src/models/mappers.js +0 -224
  95. package/dist/commonjs/generated/src/models/mappers.js.map +0 -1
  96. package/dist/commonjs/generated/src/models/parameters.d.ts +0 -14
  97. package/dist/commonjs/generated/src/models/parameters.d.ts.map +0 -1
  98. package/dist/commonjs/generated/src/models/parameters.js +0 -94
  99. package/dist/commonjs/generated/src/models/parameters.js.map +0 -1
  100. package/dist/commonjs/generated/src/operations/communicationIdentityOperations.d.ts +0 -49
  101. package/dist/commonjs/generated/src/operations/communicationIdentityOperations.d.ts.map +0 -1
  102. package/dist/commonjs/generated/src/operations/communicationIdentityOperations.js +0 -182
  103. package/dist/commonjs/generated/src/operations/communicationIdentityOperations.js.map +0 -1
  104. package/dist/commonjs/generated/src/operations/index.d.ts +0 -2
  105. package/dist/commonjs/generated/src/operations/index.d.ts.map +0 -1
  106. package/dist/commonjs/generated/src/operations/index.js +0 -12
  107. package/dist/commonjs/generated/src/operations/index.js.map +0 -1
  108. package/dist/commonjs/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts +0 -41
  109. package/dist/commonjs/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts.map +0 -1
  110. package/dist/commonjs/generated/src/operationsInterfaces/communicationIdentityOperations.js +0 -10
  111. package/dist/commonjs/generated/src/operationsInterfaces/communicationIdentityOperations.js.map +0 -1
  112. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +0 -2
  113. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +0 -1
  114. package/dist/commonjs/generated/src/operationsInterfaces/index.js +0 -12
  115. package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +0 -1
  116. package/dist/commonjs/generated/src/tracing.d.ts +0 -2
  117. package/dist/commonjs/generated/src/tracing.d.ts.map +0 -1
  118. package/dist/commonjs/generated/src/tracing.js +0 -17
  119. package/dist/commonjs/generated/src/tracing.js.map +0 -1
  120. package/dist/commonjs/index.d.ts +0 -3
  121. package/dist/commonjs/index.d.ts.map +0 -1
  122. package/dist/commonjs/index.js +0 -8
  123. package/dist/commonjs/index.js.map +0 -1
  124. package/dist/commonjs/models.d.ts +0 -65
  125. package/dist/commonjs/models.d.ts.map +0 -1
  126. package/dist/commonjs/models.js +0 -5
  127. package/dist/commonjs/models.js.map +0 -1
  128. package/dist/commonjs/package.json +0 -3
  129. package/dist/commonjs/tsdoc-metadata.json +0 -11
  130. package/dist/esm/common/logger.d.ts +0 -5
  131. package/dist/esm/common/logger.d.ts.map +0 -1
  132. package/dist/esm/common/logger.js +0 -8
  133. package/dist/esm/common/logger.js.map +0 -1
  134. package/dist/esm/communicationIdentityClient.d.ts +0 -76
  135. package/dist/esm/communicationIdentityClient.d.ts.map +0 -1
  136. package/dist/esm/communicationIdentityClient.js.map +0 -1
  137. package/dist/esm/constants.d.ts +0 -2
  138. package/dist/esm/constants.d.ts.map +0 -1
  139. package/dist/esm/constants.js +0 -4
  140. package/dist/esm/constants.js.map +0 -1
  141. package/dist/esm/generated/src/identityRestClient.d.ts +0 -17
  142. package/dist/esm/generated/src/identityRestClient.d.ts.map +0 -1
  143. package/dist/esm/generated/src/identityRestClient.js.map +0 -1
  144. package/dist/esm/generated/src/index.d.ts +0 -4
  145. package/dist/esm/generated/src/index.d.ts.map +0 -1
  146. package/dist/esm/generated/src/index.js +0 -11
  147. package/dist/esm/generated/src/index.js.map +0 -1
  148. package/dist/esm/generated/src/models/index.d.ts +0 -127
  149. package/dist/esm/generated/src/models/index.d.ts.map +0 -1
  150. package/dist/esm/generated/src/models/index.js +0 -22
  151. package/dist/esm/generated/src/models/index.js.map +0 -1
  152. package/dist/esm/generated/src/models/mappers.d.ts +0 -10
  153. package/dist/esm/generated/src/models/mappers.d.ts.map +0 -1
  154. package/dist/esm/generated/src/models/mappers.js +0 -221
  155. package/dist/esm/generated/src/models/mappers.js.map +0 -1
  156. package/dist/esm/generated/src/models/parameters.d.ts +0 -14
  157. package/dist/esm/generated/src/models/parameters.d.ts.map +0 -1
  158. package/dist/esm/generated/src/models/parameters.js.map +0 -1
  159. package/dist/esm/generated/src/operations/communicationIdentityOperations.d.ts +0 -49
  160. package/dist/esm/generated/src/operations/communicationIdentityOperations.d.ts.map +0 -1
  161. package/dist/esm/generated/src/operations/communicationIdentityOperations.js +0 -177
  162. package/dist/esm/generated/src/operations/communicationIdentityOperations.js.map +0 -1
  163. package/dist/esm/generated/src/operations/index.d.ts +0 -2
  164. package/dist/esm/generated/src/operations/index.d.ts.map +0 -1
  165. package/dist/esm/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts +0 -41
  166. package/dist/esm/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts.map +0 -1
  167. package/dist/esm/generated/src/operationsInterfaces/communicationIdentityOperations.js.map +0 -1
  168. package/dist/esm/generated/src/operationsInterfaces/index.d.ts +0 -2
  169. package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +0 -1
  170. package/dist/esm/generated/src/operationsInterfaces/index.js +0 -9
  171. package/dist/esm/generated/src/operationsInterfaces/index.js.map +0 -1
  172. package/dist/esm/generated/src/tracing.d.ts +0 -2
  173. package/dist/esm/generated/src/tracing.d.ts.map +0 -1
  174. package/dist/esm/generated/src/tracing.js +0 -14
  175. package/dist/esm/generated/src/tracing.js.map +0 -1
  176. package/dist/esm/index.d.ts +0 -3
  177. package/dist/esm/index.d.ts.map +0 -1
  178. package/dist/esm/index.js +0 -5
  179. package/dist/esm/index.js.map +0 -1
  180. package/dist/esm/models.d.ts +0 -65
  181. package/dist/esm/models.d.ts.map +0 -1
  182. package/dist/esm/models.js +0 -4
  183. package/dist/esm/models.js.map +0 -1
  184. package/dist/esm/package.json +0 -3
  185. package/dist/react-native/common/logger.d.ts +0 -5
  186. package/dist/react-native/common/logger.d.ts.map +0 -1
  187. package/dist/react-native/common/logger.js +0 -8
  188. package/dist/react-native/common/logger.js.map +0 -1
  189. package/dist/react-native/communicationIdentityClient.d.ts +0 -76
  190. package/dist/react-native/communicationIdentityClient.d.ts.map +0 -1
  191. package/dist/react-native/communicationIdentityClient.js +0 -103
  192. package/dist/react-native/communicationIdentityClient.js.map +0 -1
  193. package/dist/react-native/constants.d.ts +0 -2
  194. package/dist/react-native/constants.d.ts.map +0 -1
  195. package/dist/react-native/constants.js +0 -4
  196. package/dist/react-native/constants.js.map +0 -1
  197. package/dist/react-native/generated/src/identityRestClient.d.ts +0 -17
  198. package/dist/react-native/generated/src/identityRestClient.d.ts.map +0 -1
  199. package/dist/react-native/generated/src/identityRestClient.js +0 -69
  200. package/dist/react-native/generated/src/identityRestClient.js.map +0 -1
  201. package/dist/react-native/generated/src/index.d.ts +0 -4
  202. package/dist/react-native/generated/src/index.d.ts.map +0 -1
  203. package/dist/react-native/generated/src/index.js +0 -11
  204. package/dist/react-native/generated/src/index.js.map +0 -1
  205. package/dist/react-native/generated/src/models/index.d.ts +0 -127
  206. package/dist/react-native/generated/src/models/index.d.ts.map +0 -1
  207. package/dist/react-native/generated/src/models/index.js +0 -22
  208. package/dist/react-native/generated/src/models/index.js.map +0 -1
  209. package/dist/react-native/generated/src/models/mappers.d.ts +0 -10
  210. package/dist/react-native/generated/src/models/mappers.d.ts.map +0 -1
  211. package/dist/react-native/generated/src/models/mappers.js +0 -221
  212. package/dist/react-native/generated/src/models/mappers.js.map +0 -1
  213. package/dist/react-native/generated/src/models/parameters.d.ts +0 -14
  214. package/dist/react-native/generated/src/models/parameters.d.ts.map +0 -1
  215. package/dist/react-native/generated/src/models/parameters.js +0 -91
  216. package/dist/react-native/generated/src/models/parameters.js.map +0 -1
  217. package/dist/react-native/generated/src/operations/communicationIdentityOperations.d.ts +0 -49
  218. package/dist/react-native/generated/src/operations/communicationIdentityOperations.d.ts.map +0 -1
  219. package/dist/react-native/generated/src/operations/communicationIdentityOperations.js +0 -177
  220. package/dist/react-native/generated/src/operations/communicationIdentityOperations.js.map +0 -1
  221. package/dist/react-native/generated/src/operations/index.d.ts +0 -2
  222. package/dist/react-native/generated/src/operations/index.d.ts.map +0 -1
  223. package/dist/react-native/generated/src/operations/index.js +0 -9
  224. package/dist/react-native/generated/src/operations/index.js.map +0 -1
  225. package/dist/react-native/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts +0 -41
  226. package/dist/react-native/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts.map +0 -1
  227. package/dist/react-native/generated/src/operationsInterfaces/communicationIdentityOperations.js.map +0 -1
  228. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +0 -2
  229. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +0 -1
  230. package/dist/react-native/generated/src/operationsInterfaces/index.js +0 -9
  231. package/dist/react-native/generated/src/tracing.d.ts +0 -2
  232. package/dist/react-native/generated/src/tracing.d.ts.map +0 -1
  233. package/dist/react-native/generated/src/tracing.js +0 -14
  234. package/dist/react-native/generated/src/tracing.js.map +0 -1
  235. package/dist/react-native/index.d.ts +0 -3
  236. package/dist/react-native/index.d.ts.map +0 -1
  237. package/dist/react-native/index.js +0 -5
  238. package/dist/react-native/models.d.ts +0 -65
  239. package/dist/react-native/models.d.ts.map +0 -1
  240. package/dist/react-native/models.js +0 -4
  241. package/dist/react-native/models.js.map +0 -1
  242. package/dist/react-native/package.json +0 -3
  243. /package/{dist/browser → dist-esm/src}/common/logger.js +0 -0
  244. /package/{dist/browser → dist-esm/src}/common/logger.js.map +0 -0
  245. /package/{dist/browser → dist-esm/src}/constants.js +0 -0
  246. /package/{dist/browser → dist-esm/src}/constants.js.map +0 -0
  247. /package/{dist/browser → dist-esm/src}/generated/src/models/index.js +0 -0
  248. /package/{dist/browser → dist-esm/src}/generated/src/models/index.js.map +0 -0
  249. /package/{dist/browser → dist-esm/src}/generated/src/models/mappers.js +0 -0
  250. /package/{dist/browser → dist-esm/src}/generated/src/models/mappers.js.map +0 -0
  251. /package/{dist/browser → dist-esm/src}/generated/src/operationsInterfaces/communicationIdentityOperations.js +0 -0
  252. /package/{dist/browser → dist-esm/src}/generated/src/tracing.js +0 -0
  253. /package/{dist/browser → dist-esm/src}/generated/src/tracing.js.map +0 -0
  254. /package/{dist/browser → dist-esm/src}/models.js +0 -0
  255. /package/{dist/browser → dist-esm/src}/models.js.map +0 -0
  256. /package/{dist → types}/communication-identity.d.ts +0 -0
@@ -1,103 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import { createCommunicationAuthPolicy, isKeyCredential, parseClientArguments, } from "@azure/communication-common";
4
- import { isTokenCredential } from "@azure/core-auth";
5
- import { IdentityRestClient } from "./generated/src/identityRestClient.js";
6
- import { logger } from "./common/logger.js";
7
- import { tracingClient } from "./generated/src/tracing.js";
8
- const isCommunicationIdentityClientOptions = (options) => options && !isTokenCredential(options) && !isKeyCredential(options);
9
- /**
10
- * Client class for interacting with Azure Communication Services User Token Management.
11
- */
12
- export class CommunicationIdentityClient {
13
- constructor(connectionStringOrEndpoint, credentialOrOptions, maybeOptions = {}) {
14
- const { url, credential } = parseClientArguments(connectionStringOrEndpoint, credentialOrOptions);
15
- const options = isCommunicationIdentityClientOptions(credentialOrOptions)
16
- ? credentialOrOptions
17
- : maybeOptions;
18
- const internalPipelineOptions = Object.assign(Object.assign({}, options), {
19
- loggingOptions: {
20
- logger: logger.info,
21
- },
22
- });
23
- this.client = new IdentityRestClient(url, Object.assign({ endpoint: url }, internalPipelineOptions));
24
- const authPolicy = createCommunicationAuthPolicy(credential);
25
- this.client.pipeline.addPolicy(authPolicy);
26
- }
27
- /**
28
- * Creates a scoped user token.
29
- *
30
- * @param user - The user whose tokens are being issued.
31
- * @param scopes - Scopes to include in the token.
32
- * @param options - Additional options for the request.
33
- */
34
- getToken(user, scopes, options = {}) {
35
- return tracingClient.withSpan("CommunicationIdentity-issueToken", options, (updatedOptions) => {
36
- return this.client.communicationIdentityOperations.issueAccessToken(user.communicationUserId, scopes, Object.assign({ expiresInMinutes: options.tokenExpiresInMinutes }, updatedOptions));
37
- });
38
- }
39
- /**
40
- * Revokes all data and tokens created for a user.
41
- *
42
- * @param user - The user whose tokens are being revoked.
43
- * @param options - Additional options for the request.
44
- */
45
- revokeTokens(user,
46
- // eslint-disable-next-line @azure/azure-sdk/ts-naming-options
47
- options = {}) {
48
- return tracingClient.withSpan("CommunicationIdentity-revokeTokens", options, async (updatedOptions) => {
49
- await this.client.communicationIdentityOperations.revokeAccessTokens(user.communicationUserId, updatedOptions);
50
- });
51
- }
52
- /**
53
- * Creates a single user.
54
- *
55
- * @param options - Additional options for the request.
56
- */
57
- // eslint-disable-next-line @azure/azure-sdk/ts-naming-options
58
- createUser(options = {}) {
59
- return tracingClient.withSpan("CommunicationIdentity-createUser", options, async (updatedOptions) => {
60
- const result = await this.client.communicationIdentityOperations.create(Object.assign({ expiresInMinutes: undefined }, updatedOptions));
61
- return {
62
- communicationUserId: result.identity.id,
63
- };
64
- });
65
- }
66
- /**
67
- * Creates a single user and a token simultaneously.
68
- *
69
- * @param scopes - Scopes to include in the token.
70
- * @param options - Additional options for the request.
71
- */
72
- createUserAndToken(scopes, options = {}) {
73
- return tracingClient.withSpan("CommunicationIdentity-createUserAndToken", options, async (updatedOptions) => {
74
- const { identity, accessToken } = await this.client.communicationIdentityOperations.create(Object.assign({ createTokenWithScopes: scopes, expiresInMinutes: options.tokenExpiresInMinutes }, updatedOptions));
75
- return Object.assign(Object.assign({}, accessToken), { user: { communicationUserId: identity.id } });
76
- });
77
- }
78
- /**
79
- * Triggers revocation event for user and deletes all its data.
80
- *
81
- * @param user - The user being deleted.
82
- * @param options - Additional options for the request.
83
- */
84
- deleteUser(user,
85
- // eslint-disable-next-line @azure/azure-sdk/ts-naming-options
86
- options = {}) {
87
- return tracingClient.withSpan("CommunicationIdentity-deleteUser", options, async (updatedOptions) => {
88
- await this.client.communicationIdentityOperations.delete(user.communicationUserId, updatedOptions);
89
- });
90
- }
91
- /**
92
- * Exchanges an Azure AD access token of a Teams user for a new Communication Identity access token with a matching expiration time.
93
- *
94
- * @param options - Options used to exchange an Azure AD access token of a Teams user for a new Communication Identity access token.
95
- */
96
- getTokenForTeamsUser(options) {
97
- return tracingClient.withSpan("CommunicationIdentity-getTokenForTeamsUser", options, (updatedOptions) => {
98
- const { teamsUserAadToken, clientId, userObjectId } = updatedOptions;
99
- return this.client.communicationIdentityOperations.exchangeTeamsUserAccessToken(teamsUserAadToken, clientId, userObjectId, updatedOptions);
100
- });
101
- }
102
- }
103
- //# sourceMappingURL=communicationIdentityClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"communicationIdentityClient.js","sourceRoot":"","sources":["../../src/communicationIdentityClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAYlC,OAAO,EACL,6BAA6B,EAC7B,eAAe,EACf,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,MAAM,oCAAoC,GAAG,CAC3C,OAAY,EACmC,EAAE,CACjD,OAAO,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;AAEtE;;GAEG;AACH,MAAM,OAAO,2BAA2B;IAqCtC,YACE,0BAAkC,EAClC,mBAA0F,EAC1F,eAAmD,EAAE;QAErD,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,oBAAoB,CAC9C,0BAA0B,EAC1B,mBAAmB,CACpB,CAAC;QACF,MAAM,OAAO,GAAG,oCAAoC,CAAC,mBAAmB,CAAC;YACvE,CAAC,CAAC,mBAAmB;YACrB,CAAC,CAAC,YAAY,CAAC;QAEjB,MAAM,uBAAuB,mCACxB,OAAO,GACP;YACD,cAAc,EAAE;gBACd,MAAM,EAAE,MAAM,CAAC,IAAI;aACpB;SACF,CACF,CAAC;QAEF,IAAI,CA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":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n CommunicationAccessToken,\n CommunicationIdentityClientOptions,\n CommunicationUserToken,\n GetTokenForTeamsUserOptions,\n CreateUserAndTokenOptions,\n GetTokenOptions,\n TokenScope,\n} from \"./models.js\";\nimport type { CommunicationUserIdentifier } from \"@azure/communication-common\";\nimport {\n createCommunicationAuthPolicy,\n isKeyCredential,\n parseClientArguments,\n} from \"@azure/communication-common\";\nimport type { InternalClientPipelineOptions, OperationOptions } from \"@azure/core-client\";\nimport type { KeyCredential, TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\nimport { IdentityRestClient } from \"./generated/src/identityRestClient.js\";\nimport { logger } from \"./common/logger.js\";\nimport { tracingClient } from \"./generated/src/tracing.js\";\n\nconst isCommunicationIdentityClientOptions = (\n options: any,\n): options is CommunicationIdentityClientOptions =>\n options && !isTokenCredential(options) && !isKeyCredential(options);\n\n/**\n * Client class for interacting with Azure Communication Services User Token Management.\n */\nexport class CommunicationIdentityClient {\n /**\n * A reference to the auto-generated UserToken HTTP client.\n */\n private readonly client: IdentityRestClient;\n\n /**\n * Initializes a new instance of the CommunicationIdentity class.\n * @param connectionString - Connection string to connect to an Azure Communication Service resource.\n * Example: \"endpoint=https://contoso.eastus.communications.azure.net/;accesskey=secret\";\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(connectionString: string, options?: CommunicationIdentityClientOptions);\n\n /**\n * Initializes a new instance of the CommunicationIdentity class using an Azure KeyCredential.\n * @param endpoint - The endpoint of the service (ex: https://contoso.eastus.communications.azure.net).\n * @param credential - An object that is used to authenticate requests to the service. Use the AzureKeyCredential or `@azure/identity` to create a credential.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(\n endpoint: string,\n credential: KeyCredential,\n options?: CommunicationIdentityClientOptions,\n );\n /**\n * Initializes a new instance of the CommunicationIdentity class using a TokenCredential.\n * @param endpoint - The endpoint of the service (ex: https://contoso.eastus.communications.azure.net)\n * @param credential - TokenCredential that is used to authenticate requests to the service.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(\n endpoint: string,\n credential: TokenCredential,\n options?: CommunicationIdentityClientOptions,\n );\n\n public constructor(\n connectionStringOrEndpoint: string,\n credentialOrOptions?: KeyCredential | CommunicationIdentityClientOptions | TokenCredential,\n maybeOptions: CommunicationIdentityClientOptions = {},\n ) {\n const { url, credential } = parseClientArguments(\n connectionStringOrEndpoint,\n credentialOrOptions,\n );\n const options = isCommunicationIdentityClientOptions(credentialOrOptions)\n ? credentialOrOptions\n : maybeOptions;\n\n const internalPipelineOptions: InternalClientPipelineOptions = {\n ...options,\n ...{\n loggingOptions: {\n logger: logger.info,\n },\n },\n };\n\n this.client = new IdentityRestClient(url, { endpoint: url, ...internalPipelineOptions });\n\n const authPolicy = createCommunicationAuthPolicy(credential);\n this.client.pipeline.addPolicy(authPolicy);\n }\n\n /**\n * Creates a scoped user token.\n *\n * @param user - The user whose tokens are being issued.\n * @param scopes - Scopes to include in the token.\n * @param options - Additional options for the request.\n */\n public getToken(\n user: CommunicationUserIdentifier,\n scopes: TokenScope[],\n options: GetTokenOptions = {},\n ): Promise<CommunicationAccessToken> {\n return tracingClient.withSpan(\"CommunicationIdentity-issueToken\", options, (updatedOptions) => {\n return this.client.communicationIdentityOperations.issueAccessToken(\n user.communicationUserId,\n scopes,\n { expiresInMinutes: options.tokenExpiresInMinutes, ...updatedOptions },\n );\n });\n }\n\n /**\n * Revokes all data and tokens created for a user.\n *\n * @param user - The user whose tokens are being revoked.\n * @param options - Additional options for the request.\n */\n public revokeTokens(\n user: CommunicationUserIdentifier,\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-options\n options: OperationOptions = {},\n ): Promise<void> {\n return tracingClient.withSpan(\n \"CommunicationIdentity-revokeTokens\",\n options,\n async (updatedOptions) => {\n await this.client.communicationIdentityOperations.revokeAccessTokens(\n user.communicationUserId,\n updatedOptions,\n );\n },\n );\n }\n\n /**\n * Creates a single user.\n *\n * @param options - Additional options for the request.\n */\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-options\n public createUser(options: OperationOptions = {}): Promise<CommunicationUserIdentifier> {\n return tracingClient.withSpan(\n \"CommunicationIdentity-createUser\",\n options,\n async (updatedOptions) => {\n const result = await this.client.communicationIdentityOperations.create({\n expiresInMinutes: undefined,\n ...updatedOptions,\n });\n return {\n communicationUserId: result.identity.id,\n };\n },\n );\n }\n\n /**\n * Creates a single user and a token simultaneously.\n *\n * @param scopes - Scopes to include in the token.\n * @param options - Additional options for the request.\n */\n public createUserAndToken(\n scopes: TokenScope[],\n options: CreateUserAndTokenOptions = {},\n ): Promise<CommunicationUserToken> {\n return tracingClient.withSpan(\n \"CommunicationIdentity-createUserAndToken\",\n options,\n async (updatedOptions) => {\n const { identity, accessToken } = await this.client.communicationIdentityOperations.create({\n createTokenWithScopes: scopes,\n expiresInMinutes: options.tokenExpiresInMinutes,\n ...updatedOptions,\n });\n return {\n ...accessToken!,\n user: { communicationUserId: identity.id },\n };\n },\n );\n }\n\n /**\n * Triggers revocation event for user and deletes all its data.\n *\n * @param user - The user being deleted.\n * @param options - Additional options for the request.\n */\n public deleteUser(\n user: CommunicationUserIdentifier,\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-options\n options: OperationOptions = {},\n ): Promise<void> {\n return tracingClient.withSpan(\n \"CommunicationIdentity-deleteUser\",\n options,\n async (updatedOptions) => {\n await this.client.communicationIdentityOperations.delete(\n user.communicationUserId,\n updatedOptions,\n );\n },\n );\n }\n\n /**\n * Exchanges an Azure AD access token of a Teams user for a new Communication Identity access token with a matching expiration time.\n *\n * @param options - Options used to exchange an Azure AD access token of a Teams user for a new Communication Identity access token.\n */\n public getTokenForTeamsUser(\n options: GetTokenForTeamsUserOptions,\n ): Promise<CommunicationAccessToken> {\n return tracingClient.withSpan(\n \"CommunicationIdentity-getTokenForTeamsUser\",\n options,\n (updatedOptions) => {\n const { teamsUserAadToken, clientId, userObjectId } = updatedOptions;\n return this.client.communicationIdentityOperations.exchangeTeamsUserAccessToken(\n teamsUserAadToken,\n clientId,\n userObjectId,\n updatedOptions,\n );\n },\n );\n }\n}\n"]}
@@ -1,2 +0,0 @@
1
- export declare const SDK_VERSION: string;
2
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,EAAE,MAAgB,CAAC"}
@@ -1,4 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- export const SDK_VERSION = "1.3.2";
4
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,CAAC,MAAM,WAAW,GAAW,OAAO,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport const SDK_VERSION: string = \"1.3.2\";\n"]}
@@ -1,17 +0,0 @@
1
- import * as coreClient from "@azure/core-client";
2
- import { CommunicationIdentityOperations } from "./operationsInterfaces/index.js";
3
- import { IdentityRestClientOptionalParams } from "./models/index.js";
4
- export declare class IdentityRestClient extends coreClient.ServiceClient {
5
- endpoint: string;
6
- apiVersion: string;
7
- /**
8
- * Initializes a new instance of the IdentityRestClient class.
9
- * @param endpoint The communication resource, for example https://my-resource.communication.azure.com
10
- * @param options The parameter options
11
- */
12
- constructor(endpoint: string, options?: IdentityRestClientOptionalParams);
13
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
14
- private addCustomApiVersionPolicy;
15
- communicationIdentityOperations: CommunicationIdentityOperations;
16
- }
17
- //# sourceMappingURL=identityRestClient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identityRestClient.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/identityRestClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAC;AAErE,qBAAa,kBAAmB,SAAQ,UAAU,CAAC,aAAa;IAC9D,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;gBACS,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gCAAgC;IAuCxE,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,+BAA+B,EAAE,+BAA+B,CAAC;CAClE"}
@@ -1,69 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import * as coreClient from "@azure/core-client";
9
- import { CommunicationIdentityOperationsImpl } from "./operations/index.js";
10
- export class IdentityRestClient extends coreClient.ServiceClient {
11
- /**
12
- * Initializes a new instance of the IdentityRestClient class.
13
- * @param endpoint The communication resource, for example https://my-resource.communication.azure.com
14
- * @param options The parameter options
15
- */
16
- constructor(endpoint, options) {
17
- var _a, _b;
18
- if (endpoint === undefined) {
19
- throw new Error("'endpoint' cannot be null");
20
- }
21
- // Initializing default values for options
22
- if (!options) {
23
- options = {};
24
- }
25
- const defaults = {
26
- requestContentType: "application/json; charset=utf-8"
27
- };
28
- const packageDetails = `azsdk-js-communication-identity/1.3.2`;
29
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
30
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
31
- : `${packageDetails}`;
32
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
33
- userAgentPrefix
34
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
35
- super(optionsWithDefaults);
36
- // Parameter assignments
37
- this.endpoint = endpoint;
38
- // Assigning values to Constant parameters
39
- this.apiVersion = options.apiVersion || "2023-10-01";
40
- this.communicationIdentityOperations = new CommunicationIdentityOperationsImpl(this);
41
- this.addCustomApiVersionPolicy(options.apiVersion);
42
- }
43
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
44
- addCustomApiVersionPolicy(apiVersion) {
45
- if (!apiVersion) {
46
- return;
47
- }
48
- const apiVersionPolicy = {
49
- name: "CustomApiVersionPolicy",
50
- async sendRequest(request, next) {
51
- const param = request.url.split("?");
52
- if (param.length > 1) {
53
- const newParams = param[1].split("&").map((item) => {
54
- if (item.indexOf("api-version") > -1) {
55
- return "api-version=" + apiVersion;
56
- }
57
- else {
58
- return item;
59
- }
60
- });
61
- request.url = param[0] + "?" + newParams.join("&");
62
- }
63
- return next(request);
64
- }
65
- };
66
- this.pipeline.addPolicy(apiVersionPolicy);
67
- }
68
- }
69
- //# sourceMappingURL=identityRestClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identityRestClient.js","sourceRoot":"","sources":["../../../../src/generated/src/identityRestClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAMjD,OAAO,EAAE,mCAAmC,EAAE,MAAM,uBAAuB,CAAC;AAI5E,MAAM,OAAO,kBAAmB,SAAQ,UAAU,CAAC,aAAa;IAI9D;;;;OAIG;IACH,YAAY,QAAgB,EAAE,OAA0C;;QACtE,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,QAAQ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AAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAGF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport { CommunicationIdentityOperationsImpl } from \"./operations/index.js\";\nimport { CommunicationIdentityOperations } from \"./operationsInterfaces/index.js\";\nimport { IdentityRestClientOptionalParams } from \"./models/index.js\";\n\nexport class IdentityRestClient extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the IdentityRestClient class.\n * @param endpoint The communication resource, for example https://my-resource.communication.azure.com\n * @param options The parameter options\n */\n constructor(endpoint: string, options?: IdentityRestClientOptionalParams) {\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: IdentityRestClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-communication-identity/1.3.2`;\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 endpoint: options.endpoint ?? options.baseUri ?? \"{endpoint}\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2023-10-01\";\n this.communicationIdentityOperations = new CommunicationIdentityOperationsImpl(\n this\n );\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 communicationIdentityOperations: CommunicationIdentityOperations;\n}\n"]}
@@ -1,4 +0,0 @@
1
- export * from "./models/index.js";
2
- export { IdentityRestClient } from "./identityRestClient.js";
3
- export * from "./operationsInterfaces/index.js";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,cAAc,iCAAiC,CAAC"}
@@ -1,11 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- export * from "./models/index.js";
9
- export { IdentityRestClient } from "./identityRestClient.js";
10
- export * from "./operationsInterfaces/index.js";
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./models/index.js\";\nexport { IdentityRestClient } from \"./identityRestClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
@@ -1,127 +0,0 @@
1
- import * as coreClient from "@azure/core-client";
2
- export interface CommunicationIdentityCreateRequest {
3
- /** Also create access token for the created identity. */
4
- createTokenWithScopes?: CommunicationIdentityTokenScope[];
5
- /** Optional custom validity period of the token within [60,1440] minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. */
6
- expiresInMinutes?: number;
7
- }
8
- /** A communication identity with access token. */
9
- export interface CommunicationIdentityAccessTokenResult {
10
- /** A communication identity. */
11
- identity: CommunicationIdentity;
12
- /** An access token. */
13
- accessToken?: CommunicationIdentityAccessToken;
14
- }
15
- /** A communication identity. */
16
- export interface CommunicationIdentity {
17
- /** Identifier of the identity. */
18
- id: string;
19
- }
20
- /** An access token. */
21
- export interface CommunicationIdentityAccessToken {
22
- /** The access token issued for the identity. */
23
- token: string;
24
- /** The expiry time of the token. */
25
- expiresOn: Date;
26
- }
27
- /** The Communication Services error. */
28
- export interface CommunicationErrorResponse {
29
- /** The Communication Services error. */
30
- error: CommunicationError;
31
- }
32
- /** The Communication Services error. */
33
- export interface CommunicationError {
34
- /** The error code. */
35
- code: string;
36
- /** The error message. */
37
- message: string;
38
- /**
39
- * The error target.
40
- * NOTE: This property will not be serialized. It can only be populated by the server.
41
- */
42
- readonly target?: string;
43
- /**
44
- * Further details about specific errors that led to this error.
45
- * NOTE: This property will not be serialized. It can only be populated by the server.
46
- */
47
- readonly details?: CommunicationError[];
48
- /**
49
- * The inner error if any.
50
- * NOTE: This property will not be serialized. It can only be populated by the server.
51
- */
52
- readonly innerError?: CommunicationError;
53
- }
54
- export interface TeamsUserExchangeTokenRequest {
55
- /** Azure AD access token of a Teams User to acquire a new Communication Identity access token. */
56
- token: string;
57
- /** Client ID of an Azure AD application to be verified against the appid claim in the Azure AD access token. */
58
- appId: string;
59
- /** Object ID of an Azure AD user (Teams User) to be verified against the oid claim in the Azure AD access token. */
60
- userId: string;
61
- }
62
- export interface CommunicationIdentityAccessTokenRequest {
63
- /** List of scopes attached to the token. */
64
- scopes: CommunicationIdentityTokenScope[];
65
- /** Optional custom validity period of the token within [60,1440] minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. */
66
- expiresInMinutes?: number;
67
- }
68
- /** Known values of {@link CommunicationIdentityTokenScope} that the service accepts. */
69
- export declare enum KnownCommunicationIdentityTokenScope {
70
- /** Use this for full access to Chat APIs. */
71
- Chat = "chat",
72
- /** Use this for full access to Calling APIs. */
73
- Voip = "voip",
74
- /** Access to Chat APIs but without the authorization to create, delete or update chat threads. */
75
- ChatJoin = "chat.join",
76
- /** A more limited version of chat.join that doesn't allow to add or remove participants. Use this scope when the token bearer is not fully trusted, for example in guest scenarios. */
77
- ChatJoinLimited = "chat.join.limited",
78
- /** Access to Calling APIs but without the authorization to start new calls. */
79
- VoipJoin = "voip.join"
80
- }
81
- /**
82
- * Defines values for CommunicationIdentityTokenScope. \
83
- * {@link KnownCommunicationIdentityTokenScope} can be used interchangeably with CommunicationIdentityTokenScope,
84
- * this enum contains the known values that the service supports.
85
- * ### Known values supported by the service
86
- * **chat**: Use this for full access to Chat APIs. \
87
- * **voip**: Use this for full access to Calling APIs. \
88
- * **chat.join**: Access to Chat APIs but without the authorization to create, delete or update chat threads. \
89
- * **chat.join.limited**: A more limited version of chat.join that doesn't allow to add or remove participants. Use this scope when the token bearer is not fully trusted, for example in guest scenarios. \
90
- * **voip.join**: Access to Calling APIs but without the authorization to start new calls.
91
- */
92
- export type CommunicationIdentityTokenScope = string;
93
- /** Optional parameters. */
94
- export interface CommunicationIdentityCreateOptionalParams extends coreClient.OperationOptions {
95
- /** Also create access token for the created identity. */
96
- createTokenWithScopes?: CommunicationIdentityTokenScope[];
97
- /** Optional custom validity period of the token within [60,1440] minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. */
98
- expiresInMinutes?: number;
99
- }
100
- /** Contains response data for the create operation. */
101
- export type CommunicationIdentityCreateResponse = CommunicationIdentityAccessTokenResult;
102
- /** Optional parameters. */
103
- export interface CommunicationIdentityDeleteOptionalParams extends coreClient.OperationOptions {
104
- }
105
- /** Optional parameters. */
106
- export interface CommunicationIdentityRevokeAccessTokensOptionalParams extends coreClient.OperationOptions {
107
- }
108
- /** Optional parameters. */
109
- export interface CommunicationIdentityExchangeTeamsUserAccessTokenOptionalParams extends coreClient.OperationOptions {
110
- }
111
- /** Contains response data for the exchangeTeamsUserAccessToken operation. */
112
- export type CommunicationIdentityExchangeTeamsUserAccessTokenResponse = CommunicationIdentityAccessToken;
113
- /** Optional parameters. */
114
- export interface CommunicationIdentityIssueAccessTokenOptionalParams extends coreClient.OperationOptions {
115
- /** Optional custom validity period of the token within [60,1440] minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. */
116
- expiresInMinutes?: number;
117
- }
118
- /** Contains response data for the issueAccessToken operation. */
119
- export type CommunicationIdentityIssueAccessTokenResponse = CommunicationIdentityAccessToken;
120
- /** Optional parameters. */
121
- export interface IdentityRestClientOptionalParams extends coreClient.ServiceClientOptions {
122
- /** Api Version */
123
- apiVersion?: string;
124
- /** Overrides client endpoint. */
125
- endpoint?: string;
126
- }
127
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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,MAAM,WAAW,kCAAkC;IACjD,yDAAyD;IACzD,qBAAqB,CAAC,EAAE,+BAA+B,EAAE,CAAC;IAC1D,+JAA+J;IAC/J,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,kDAAkD;AAClD,MAAM,WAAW,sCAAsC;IACrD,gCAAgC;IAChC,QAAQ,EAAE,qBAAqB,CAAC;IAChC,uBAAuB;IACvB,WAAW,CAAC,EAAE,gCAAgC,CAAC;CAChD;AAED,gCAAgC;AAChC,MAAM,WAAW,qBAAqB;IACpC,kCAAkC;IAClC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,uBAAuB;AACvB,MAAM,WAAW,gCAAgC;IAC/C,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,SAAS,EAAE,IAAI,CAAC;CACjB;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,MAAM,WAAW,6BAA6B;IAC5C,kGAAkG;IAClG,KAAK,EAAE,MAAM,C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,CAAC;AAE7F,2BAA2B;AAC3B,MAAM,WAAW,gCACf,SAAQ,UAAU,CAAC,oBAAoB;IACvC,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -1,22 +0,0 @@
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
- /** Known values of {@link CommunicationIdentityTokenScope} that the service accepts. */
9
- export var KnownCommunicationIdentityTokenScope;
10
- (function (KnownCommunicationIdentityTokenScope) {
11
- /** Use this for full access to Chat APIs. */
12
- KnownCommunicationIdentityTokenScope["Chat"] = "chat";
13
- /** Use this for full access to Calling APIs. */
14
- KnownCommunicationIdentityTokenScope["Voip"] = "voip";
15
- /** Access to Chat APIs but without the authorization to create, delete or update chat threads. */
16
- KnownCommunicationIdentityTokenScope["ChatJoin"] = "chat.join";
17
- /** A more limited version of chat.join that doesn't allow to add or remove participants. Use this scope when the token bearer is not fully trusted, for example in guest scenarios. */
18
- KnownCommunicationIdentityTokenScope["ChatJoinLimited"] = "chat.join.limited";
19
- /** Access to Calling APIs but without the authorization to start new calls. */
20
- KnownCommunicationIdentityTokenScope["VoipJoin"] = "voip.join";
21
- })(KnownCommunicationIdentityTokenScope || (KnownCommunicationIdentityTokenScope = {}));
22
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA8EH,wFAAwF;AACxF,MAAM,CAAN,IAAY,oCAWX;AAXD,WAAY,oCAAoC;IAC9C,6CAA6C;IAC7C,qDAAa,CAAA;IACb,gDAAgD;IAChD,qDAAa,CAAA;IACb,kGAAkG;IAClG,8DAAsB,CAAA;IACtB,uLAAuL;IACvL,6EAAqC,CAAA;IACrC,+EAA+E;IAC/E,8DAAsB,CAAA;AACxB,CAAC,EAXW,oCAAoC,KAApC,oCAAoC,QAW/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\nimport * as coreClient from \"@azure/core-client\";\n\nexport interface CommunicationIdentityCreateRequest {\n /** Also create access token for the created identity. */\n createTokenWithScopes?: CommunicationIdentityTokenScope[];\n /** Optional custom validity period of the token within [60,1440] minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. */\n expiresInMinutes?: number;\n}\n\n/** A communication identity with access token. */\nexport interface CommunicationIdentityAccessTokenResult {\n /** A communication identity. */\n identity: CommunicationIdentity;\n /** An access token. */\n accessToken?: CommunicationIdentityAccessToken;\n}\n\n/** A communication identity. */\nexport interface CommunicationIdentity {\n /** Identifier of the identity. */\n id: string;\n}\n\n/** An access token. */\nexport interface CommunicationIdentityAccessToken {\n /** The access token issued for the identity. */\n token: string;\n /** The expiry time of the token. */\n expiresOn: Date;\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\nexport interface TeamsUserExchangeTokenRequest {\n /** Azure AD access token of a Teams User to acquire a new Communication Identity access token. */\n token: string;\n /** Client ID of an Azure AD application to be verified against the appid claim in the Azure AD access token. */\n appId: string;\n /** Object ID of an Azure AD user (Teams User) to be verified against the oid claim in the Azure AD access token. */\n userId: string;\n}\n\nexport interface CommunicationIdentityAccessTokenRequest {\n /** List of scopes attached to the token. */\n scopes: CommunicationIdentityTokenScope[];\n /** Optional custom validity period of the token within [60,1440] minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. */\n expiresInMinutes?: number;\n}\n\n/** Known values of {@link CommunicationIdentityTokenScope} that the service accepts. */\nexport enum KnownCommunicationIdentityTokenScope {\n /** Use this for full access to Chat APIs. */\n Chat = \"chat\",\n /** Use this for full access to Calling APIs. */\n Voip = \"voip\",\n /** Access to Chat APIs but without the authorization to create, delete or update chat threads. */\n ChatJoin = \"chat.join\",\n /** A more limited version of chat.join that doesn't allow to add or remove participants. Use this scope when the token bearer is not fully trusted, for example in guest scenarios. */\n ChatJoinLimited = \"chat.join.limited\",\n /** Access to Calling APIs but without the authorization to start new calls. */\n VoipJoin = \"voip.join\"\n}\n\n/**\n * Defines values for CommunicationIdentityTokenScope. \\\n * {@link KnownCommunicationIdentityTokenScope} can be used interchangeably with CommunicationIdentityTokenScope,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **chat**: Use this for full access to Chat APIs. \\\n * **voip**: Use this for full access to Calling APIs. \\\n * **chat.join**: Access to Chat APIs but without the authorization to create, delete or update chat threads. \\\n * **chat.join.limited**: A more limited version of chat.join that doesn't allow to add or remove participants. Use this scope when the token bearer is not fully trusted, for example in guest scenarios. \\\n * **voip.join**: Access to Calling APIs but without the authorization to start new calls.\n */\nexport type CommunicationIdentityTokenScope = string;\n\n/** Optional parameters. */\nexport interface CommunicationIdentityCreateOptionalParams\n extends coreClient.OperationOptions {\n /** Also create access token for the created identity. */\n createTokenWithScopes?: CommunicationIdentityTokenScope[];\n /** Optional custom validity period of the token within [60,1440] minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. */\n expiresInMinutes?: number;\n}\n\n/** Contains response data for the create operation. */\nexport type CommunicationIdentityCreateResponse = CommunicationIdentityAccessTokenResult;\n\n/** Optional parameters. */\nexport interface CommunicationIdentityDeleteOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface CommunicationIdentityRevokeAccessTokensOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface CommunicationIdentityExchangeTeamsUserAccessTokenOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the exchangeTeamsUserAccessToken operation. */\nexport type CommunicationIdentityExchangeTeamsUserAccessTokenResponse = CommunicationIdentityAccessToken;\n\n/** Optional parameters. */\nexport interface CommunicationIdentityIssueAccessTokenOptionalParams\n extends coreClient.OperationOptions {\n /** Optional custom validity period of the token within [60,1440] minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. */\n expiresInMinutes?: number;\n}\n\n/** Contains response data for the issueAccessToken operation. */\nexport type CommunicationIdentityIssueAccessTokenResponse = CommunicationIdentityAccessToken;\n\n/** Optional parameters. */\nexport interface IdentityRestClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
@@ -1,10 +0,0 @@
1
- import * as coreClient from "@azure/core-client";
2
- export declare const CommunicationIdentityCreateRequest: coreClient.CompositeMapper;
3
- export declare const CommunicationIdentityAccessTokenResult: coreClient.CompositeMapper;
4
- export declare const CommunicationIdentity: coreClient.CompositeMapper;
5
- export declare const CommunicationIdentityAccessToken: coreClient.CompositeMapper;
6
- export declare const CommunicationErrorResponse: coreClient.CompositeMapper;
7
- export declare const CommunicationError: coreClient.CompositeMapper;
8
- export declare const TeamsUserExchangeTokenRequest: coreClient.CompositeMapper;
9
- export declare const CommunicationIdentityAccessTokenRequest: coreClient.CompositeMapper;
10
- //# sourceMappingURL=mappers.d.ts.map
@@ -1 +0,0 @@
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,kCAAkC,EAAE,UAAU,CAAC,eA6B3D,CAAC;AAEF,eAAO,MAAM,sCAAsC,EAAE,UAAU,CAAC,eAqB/D,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,eAc9C,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,eAqBzD,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,UAAU,CAAC,eAcnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,eAgD3C,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,UAAU,CAAC,eA4BtD,CAAC;AAEF,eAAO,MAAM,uCAAuC,EAAE,UAAU,CAAC,eA8BhE,CAAC"}