@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.
- package/dist/index.js +684 -0
- package/dist/index.js.map +1 -0
- package/{dist/esm → dist-esm/src}/communicationIdentityClient.js +3 -3
- package/dist-esm/src/communicationIdentityClient.js.map +1 -0
- package/{dist/esm → dist-esm/src}/generated/src/identityRestClient.js +1 -1
- package/dist-esm/src/generated/src/identityRestClient.js.map +1 -0
- package/{dist/esm/generated/src/operations → dist-esm/src/generated/src}/index.js +3 -1
- package/dist-esm/src/generated/src/index.js.map +1 -0
- package/{dist/esm → dist-esm/src}/generated/src/models/parameters.js +1 -1
- package/dist-esm/src/generated/src/models/parameters.js.map +1 -0
- package/{dist/browser → dist-esm/src}/generated/src/operations/communicationIdentityOperations.js +3 -3
- package/dist-esm/src/generated/src/operations/communicationIdentityOperations.js.map +1 -0
- package/{dist/esm/generated/src/operationsInterfaces/communicationIdentityOperations.js → dist-esm/src/generated/src/operations/index.js} +2 -2
- package/{dist/esm → dist-esm/src}/generated/src/operations/index.js.map +1 -1
- package/dist-esm/src/generated/src/operationsInterfaces/communicationIdentityOperations.js.map +1 -0
- package/{dist/react-native/generated/src/operationsInterfaces/communicationIdentityOperations.js → dist-esm/src/generated/src/operationsInterfaces/index.js} +2 -2
- package/{dist/react-native → dist-esm/src}/generated/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/index.js +5 -0
- package/{dist/react-native → dist-esm/src}/index.js.map +1 -1
- package/package.json +48 -68
- package/dist/browser/common/logger.d.ts +0 -5
- package/dist/browser/common/logger.d.ts.map +0 -1
- package/dist/browser/communicationIdentityClient.d.ts +0 -76
- package/dist/browser/communicationIdentityClient.d.ts.map +0 -1
- package/dist/browser/communicationIdentityClient.js +0 -103
- package/dist/browser/communicationIdentityClient.js.map +0 -1
- package/dist/browser/constants.d.ts +0 -2
- package/dist/browser/constants.d.ts.map +0 -1
- package/dist/browser/generated/src/identityRestClient.d.ts +0 -17
- package/dist/browser/generated/src/identityRestClient.d.ts.map +0 -1
- package/dist/browser/generated/src/identityRestClient.js +0 -69
- package/dist/browser/generated/src/identityRestClient.js.map +0 -1
- package/dist/browser/generated/src/index.d.ts +0 -4
- package/dist/browser/generated/src/index.d.ts.map +0 -1
- package/dist/browser/generated/src/index.js +0 -11
- package/dist/browser/generated/src/index.js.map +0 -1
- package/dist/browser/generated/src/models/index.d.ts +0 -127
- package/dist/browser/generated/src/models/index.d.ts.map +0 -1
- package/dist/browser/generated/src/models/mappers.d.ts +0 -10
- package/dist/browser/generated/src/models/mappers.d.ts.map +0 -1
- package/dist/browser/generated/src/models/parameters.d.ts +0 -14
- package/dist/browser/generated/src/models/parameters.d.ts.map +0 -1
- package/dist/browser/generated/src/models/parameters.js +0 -91
- package/dist/browser/generated/src/models/parameters.js.map +0 -1
- package/dist/browser/generated/src/operations/communicationIdentityOperations.d.ts +0 -49
- package/dist/browser/generated/src/operations/communicationIdentityOperations.d.ts.map +0 -1
- package/dist/browser/generated/src/operations/communicationIdentityOperations.js.map +0 -1
- package/dist/browser/generated/src/operations/index.d.ts +0 -2
- package/dist/browser/generated/src/operations/index.d.ts.map +0 -1
- package/dist/browser/generated/src/operations/index.js +0 -9
- package/dist/browser/generated/src/operations/index.js.map +0 -1
- package/dist/browser/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts +0 -41
- package/dist/browser/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts.map +0 -1
- package/dist/browser/generated/src/operationsInterfaces/communicationIdentityOperations.js.map +0 -1
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts +0 -2
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/browser/generated/src/operationsInterfaces/index.js +0 -9
- package/dist/browser/generated/src/operationsInterfaces/index.js.map +0 -1
- package/dist/browser/generated/src/tracing.d.ts +0 -2
- package/dist/browser/generated/src/tracing.d.ts.map +0 -1
- package/dist/browser/index.d.ts +0 -3
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/index.js +0 -5
- package/dist/browser/index.js.map +0 -1
- package/dist/browser/models.d.ts +0 -65
- package/dist/browser/models.d.ts.map +0 -1
- package/dist/browser/package.json +0 -3
- package/dist/commonjs/common/logger.d.ts +0 -5
- package/dist/commonjs/common/logger.d.ts.map +0 -1
- package/dist/commonjs/common/logger.js +0 -11
- package/dist/commonjs/common/logger.js.map +0 -1
- package/dist/commonjs/communicationIdentityClient.d.ts +0 -76
- package/dist/commonjs/communicationIdentityClient.d.ts.map +0 -1
- package/dist/commonjs/communicationIdentityClient.js +0 -107
- package/dist/commonjs/communicationIdentityClient.js.map +0 -1
- package/dist/commonjs/constants.d.ts +0 -2
- package/dist/commonjs/constants.d.ts.map +0 -1
- package/dist/commonjs/constants.js +0 -7
- package/dist/commonjs/constants.js.map +0 -1
- package/dist/commonjs/generated/src/identityRestClient.d.ts +0 -17
- package/dist/commonjs/generated/src/identityRestClient.d.ts.map +0 -1
- package/dist/commonjs/generated/src/identityRestClient.js +0 -74
- package/dist/commonjs/generated/src/identityRestClient.js.map +0 -1
- package/dist/commonjs/generated/src/index.d.ts +0 -4
- package/dist/commonjs/generated/src/index.d.ts.map +0 -1
- package/dist/commonjs/generated/src/index.js +0 -16
- package/dist/commonjs/generated/src/index.js.map +0 -1
- package/dist/commonjs/generated/src/models/index.d.ts +0 -127
- package/dist/commonjs/generated/src/models/index.d.ts.map +0 -1
- package/dist/commonjs/generated/src/models/index.js +0 -25
- package/dist/commonjs/generated/src/models/index.js.map +0 -1
- package/dist/commonjs/generated/src/models/mappers.d.ts +0 -10
- package/dist/commonjs/generated/src/models/mappers.d.ts.map +0 -1
- package/dist/commonjs/generated/src/models/mappers.js +0 -224
- package/dist/commonjs/generated/src/models/mappers.js.map +0 -1
- package/dist/commonjs/generated/src/models/parameters.d.ts +0 -14
- package/dist/commonjs/generated/src/models/parameters.d.ts.map +0 -1
- package/dist/commonjs/generated/src/models/parameters.js +0 -94
- package/dist/commonjs/generated/src/models/parameters.js.map +0 -1
- package/dist/commonjs/generated/src/operations/communicationIdentityOperations.d.ts +0 -49
- package/dist/commonjs/generated/src/operations/communicationIdentityOperations.d.ts.map +0 -1
- package/dist/commonjs/generated/src/operations/communicationIdentityOperations.js +0 -182
- package/dist/commonjs/generated/src/operations/communicationIdentityOperations.js.map +0 -1
- package/dist/commonjs/generated/src/operations/index.d.ts +0 -2
- package/dist/commonjs/generated/src/operations/index.d.ts.map +0 -1
- package/dist/commonjs/generated/src/operations/index.js +0 -12
- package/dist/commonjs/generated/src/operations/index.js.map +0 -1
- package/dist/commonjs/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts +0 -41
- package/dist/commonjs/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts.map +0 -1
- package/dist/commonjs/generated/src/operationsInterfaces/communicationIdentityOperations.js +0 -10
- package/dist/commonjs/generated/src/operationsInterfaces/communicationIdentityOperations.js.map +0 -1
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +0 -2
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/commonjs/generated/src/operationsInterfaces/index.js +0 -12
- package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +0 -1
- package/dist/commonjs/generated/src/tracing.d.ts +0 -2
- package/dist/commonjs/generated/src/tracing.d.ts.map +0 -1
- package/dist/commonjs/generated/src/tracing.js +0 -17
- package/dist/commonjs/generated/src/tracing.js.map +0 -1
- package/dist/commonjs/index.d.ts +0 -3
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/index.js +0 -8
- package/dist/commonjs/index.js.map +0 -1
- package/dist/commonjs/models.d.ts +0 -65
- package/dist/commonjs/models.d.ts.map +0 -1
- package/dist/commonjs/models.js +0 -5
- package/dist/commonjs/models.js.map +0 -1
- package/dist/commonjs/package.json +0 -3
- package/dist/commonjs/tsdoc-metadata.json +0 -11
- package/dist/esm/common/logger.d.ts +0 -5
- package/dist/esm/common/logger.d.ts.map +0 -1
- package/dist/esm/common/logger.js +0 -8
- package/dist/esm/common/logger.js.map +0 -1
- package/dist/esm/communicationIdentityClient.d.ts +0 -76
- package/dist/esm/communicationIdentityClient.d.ts.map +0 -1
- package/dist/esm/communicationIdentityClient.js.map +0 -1
- package/dist/esm/constants.d.ts +0 -2
- package/dist/esm/constants.d.ts.map +0 -1
- package/dist/esm/constants.js +0 -4
- package/dist/esm/constants.js.map +0 -1
- package/dist/esm/generated/src/identityRestClient.d.ts +0 -17
- package/dist/esm/generated/src/identityRestClient.d.ts.map +0 -1
- package/dist/esm/generated/src/identityRestClient.js.map +0 -1
- package/dist/esm/generated/src/index.d.ts +0 -4
- package/dist/esm/generated/src/index.d.ts.map +0 -1
- package/dist/esm/generated/src/index.js +0 -11
- package/dist/esm/generated/src/index.js.map +0 -1
- package/dist/esm/generated/src/models/index.d.ts +0 -127
- package/dist/esm/generated/src/models/index.d.ts.map +0 -1
- package/dist/esm/generated/src/models/index.js +0 -22
- package/dist/esm/generated/src/models/index.js.map +0 -1
- package/dist/esm/generated/src/models/mappers.d.ts +0 -10
- package/dist/esm/generated/src/models/mappers.d.ts.map +0 -1
- package/dist/esm/generated/src/models/mappers.js +0 -221
- package/dist/esm/generated/src/models/mappers.js.map +0 -1
- package/dist/esm/generated/src/models/parameters.d.ts +0 -14
- package/dist/esm/generated/src/models/parameters.d.ts.map +0 -1
- package/dist/esm/generated/src/models/parameters.js.map +0 -1
- package/dist/esm/generated/src/operations/communicationIdentityOperations.d.ts +0 -49
- package/dist/esm/generated/src/operations/communicationIdentityOperations.d.ts.map +0 -1
- package/dist/esm/generated/src/operations/communicationIdentityOperations.js +0 -177
- package/dist/esm/generated/src/operations/communicationIdentityOperations.js.map +0 -1
- package/dist/esm/generated/src/operations/index.d.ts +0 -2
- package/dist/esm/generated/src/operations/index.d.ts.map +0 -1
- package/dist/esm/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts +0 -41
- package/dist/esm/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts.map +0 -1
- package/dist/esm/generated/src/operationsInterfaces/communicationIdentityOperations.js.map +0 -1
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts +0 -2
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/esm/generated/src/operationsInterfaces/index.js +0 -9
- package/dist/esm/generated/src/operationsInterfaces/index.js.map +0 -1
- package/dist/esm/generated/src/tracing.d.ts +0 -2
- package/dist/esm/generated/src/tracing.d.ts.map +0 -1
- package/dist/esm/generated/src/tracing.js +0 -14
- package/dist/esm/generated/src/tracing.js.map +0 -1
- package/dist/esm/index.d.ts +0 -3
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/index.js +0 -5
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/models.d.ts +0 -65
- package/dist/esm/models.d.ts.map +0 -1
- package/dist/esm/models.js +0 -4
- package/dist/esm/models.js.map +0 -1
- package/dist/esm/package.json +0 -3
- package/dist/react-native/common/logger.d.ts +0 -5
- package/dist/react-native/common/logger.d.ts.map +0 -1
- package/dist/react-native/common/logger.js +0 -8
- package/dist/react-native/common/logger.js.map +0 -1
- package/dist/react-native/communicationIdentityClient.d.ts +0 -76
- package/dist/react-native/communicationIdentityClient.d.ts.map +0 -1
- package/dist/react-native/communicationIdentityClient.js +0 -103
- package/dist/react-native/communicationIdentityClient.js.map +0 -1
- package/dist/react-native/constants.d.ts +0 -2
- package/dist/react-native/constants.d.ts.map +0 -1
- package/dist/react-native/constants.js +0 -4
- package/dist/react-native/constants.js.map +0 -1
- package/dist/react-native/generated/src/identityRestClient.d.ts +0 -17
- package/dist/react-native/generated/src/identityRestClient.d.ts.map +0 -1
- package/dist/react-native/generated/src/identityRestClient.js +0 -69
- package/dist/react-native/generated/src/identityRestClient.js.map +0 -1
- package/dist/react-native/generated/src/index.d.ts +0 -4
- package/dist/react-native/generated/src/index.d.ts.map +0 -1
- package/dist/react-native/generated/src/index.js +0 -11
- package/dist/react-native/generated/src/index.js.map +0 -1
- package/dist/react-native/generated/src/models/index.d.ts +0 -127
- package/dist/react-native/generated/src/models/index.d.ts.map +0 -1
- package/dist/react-native/generated/src/models/index.js +0 -22
- package/dist/react-native/generated/src/models/index.js.map +0 -1
- package/dist/react-native/generated/src/models/mappers.d.ts +0 -10
- package/dist/react-native/generated/src/models/mappers.d.ts.map +0 -1
- package/dist/react-native/generated/src/models/mappers.js +0 -221
- package/dist/react-native/generated/src/models/mappers.js.map +0 -1
- package/dist/react-native/generated/src/models/parameters.d.ts +0 -14
- package/dist/react-native/generated/src/models/parameters.d.ts.map +0 -1
- package/dist/react-native/generated/src/models/parameters.js +0 -91
- package/dist/react-native/generated/src/models/parameters.js.map +0 -1
- package/dist/react-native/generated/src/operations/communicationIdentityOperations.d.ts +0 -49
- package/dist/react-native/generated/src/operations/communicationIdentityOperations.d.ts.map +0 -1
- package/dist/react-native/generated/src/operations/communicationIdentityOperations.js +0 -177
- package/dist/react-native/generated/src/operations/communicationIdentityOperations.js.map +0 -1
- package/dist/react-native/generated/src/operations/index.d.ts +0 -2
- package/dist/react-native/generated/src/operations/index.d.ts.map +0 -1
- package/dist/react-native/generated/src/operations/index.js +0 -9
- package/dist/react-native/generated/src/operations/index.js.map +0 -1
- package/dist/react-native/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts +0 -41
- package/dist/react-native/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts.map +0 -1
- package/dist/react-native/generated/src/operationsInterfaces/communicationIdentityOperations.js.map +0 -1
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +0 -2
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/react-native/generated/src/operationsInterfaces/index.js +0 -9
- package/dist/react-native/generated/src/tracing.d.ts +0 -2
- package/dist/react-native/generated/src/tracing.d.ts.map +0 -1
- package/dist/react-native/generated/src/tracing.js +0 -14
- package/dist/react-native/generated/src/tracing.js.map +0 -1
- package/dist/react-native/index.d.ts +0 -3
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/index.js +0 -5
- package/dist/react-native/models.d.ts +0 -65
- package/dist/react-native/models.d.ts.map +0 -1
- package/dist/react-native/models.js +0 -4
- package/dist/react-native/models.js.map +0 -1
- package/dist/react-native/package.json +0 -3
- /package/{dist/browser → dist-esm/src}/common/logger.js +0 -0
- /package/{dist/browser → dist-esm/src}/common/logger.js.map +0 -0
- /package/{dist/browser → dist-esm/src}/constants.js +0 -0
- /package/{dist/browser → dist-esm/src}/constants.js.map +0 -0
- /package/{dist/browser → dist-esm/src}/generated/src/models/index.js +0 -0
- /package/{dist/browser → dist-esm/src}/generated/src/models/index.js.map +0 -0
- /package/{dist/browser → dist-esm/src}/generated/src/models/mappers.js +0 -0
- /package/{dist/browser → dist-esm/src}/generated/src/models/mappers.js.map +0 -0
- /package/{dist/browser → dist-esm/src}/generated/src/operationsInterfaces/communicationIdentityOperations.js +0 -0
- /package/{dist/browser → dist-esm/src}/generated/src/tracing.js +0 -0
- /package/{dist/browser → dist-esm/src}/generated/src/tracing.js.map +0 -0
- /package/{dist/browser → dist-esm/src}/models.js +0 -0
- /package/{dist/browser → dist-esm/src}/models.js.map +0 -0
- /package/{dist → types}/communication-identity.d.ts +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/generated/src/tracing.ts","../src/generated/src/models/mappers.ts","../src/generated/src/models/parameters.ts","../src/generated/src/operations/communicationIdentityOperations.ts","../src/generated/src/identityRestClient.ts","../src/common/logger.ts","../src/communicationIdentityClient.ts"],"sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { createTracingClient } from \"@azure/core-tracing\";\n\nexport const tracingClient = createTracingClient({\n namespace: \"Microsoft.Communication\",\n packageName: \"@azure/communication-identity\",\n packageVersion: \"1.3.2\"\n});\n","/*\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 CommunicationIdentityCreateRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationIdentityCreateRequest\",\n modelProperties: {\n createTokenWithScopes: {\n serializedName: \"createTokenWithScopes\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n expiresInMinutes: {\n defaultValue: 1440,\n constraints: {\n InclusiveMaximum: 1440,\n InclusiveMinimum: 60\n },\n serializedName: \"expiresInMinutes\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const CommunicationIdentityAccessTokenResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationIdentityAccessTokenResult\",\n modelProperties: {\n identity: {\n serializedName: \"identity\",\n type: {\n name: \"Composite\",\n className: \"CommunicationIdentity\"\n }\n },\n accessToken: {\n serializedName: \"accessToken\",\n type: {\n name: \"Composite\",\n className: \"CommunicationIdentityAccessToken\"\n }\n }\n }\n }\n};\n\nexport const CommunicationIdentity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationIdentity\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CommunicationIdentityAccessToken: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationIdentityAccessToken\",\n modelProperties: {\n token: {\n serializedName: \"token\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n expiresOn: {\n serializedName: \"expiresOn\",\n required: true,\n type: {\n name: \"DateTime\"\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 TeamsUserExchangeTokenRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TeamsUserExchangeTokenRequest\",\n modelProperties: {\n token: {\n serializedName: \"token\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n appId: {\n serializedName: \"appId\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n userId: {\n serializedName: \"userId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CommunicationIdentityAccessTokenRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationIdentityAccessTokenRequest\",\n modelProperties: {\n scopes: {\n serializedName: \"scopes\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n expiresInMinutes: {\n defaultValue: 1440,\n constraints: {\n InclusiveMaximum: 1440,\n InclusiveMinimum: 60\n },\n serializedName: \"expiresInMinutes\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n","/*\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 CommunicationIdentityCreateRequest as CommunicationIdentityCreateRequestMapper,\n TeamsUserExchangeTokenRequest as TeamsUserExchangeTokenRequestMapper,\n CommunicationIdentityAccessTokenRequest as CommunicationIdentityAccessTokenRequestMapper\n} from \"../models/mappers\";\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 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 createTokenWithScopes: OperationParameter = {\n parameterPath: [\"options\", \"createTokenWithScopes\"],\n mapper: CommunicationIdentityCreateRequestMapper\n};\n\nexport const expiresInMinutes: OperationParameter = {\n parameterPath: [\"options\", \"expiresInMinutes\"],\n mapper: CommunicationIdentityCreateRequestMapper\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: \"2023-10-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const id: OperationURLParameter = {\n parameterPath: \"id\",\n mapper: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const token: OperationParameter = {\n parameterPath: \"token\",\n mapper: TeamsUserExchangeTokenRequestMapper\n};\n\nexport const appId: OperationParameter = {\n parameterPath: \"appId\",\n mapper: TeamsUserExchangeTokenRequestMapper\n};\n\nexport const userId: OperationParameter = {\n parameterPath: \"userId\",\n mapper: TeamsUserExchangeTokenRequestMapper\n};\n\nexport const scopes: OperationParameter = {\n parameterPath: \"scopes\",\n mapper: CommunicationIdentityAccessTokenRequestMapper\n};\n\nexport const expiresInMinutes1: OperationParameter = {\n parameterPath: [\"options\", \"expiresInMinutes\"],\n mapper: CommunicationIdentityAccessTokenRequestMapper\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing\";\nimport { CommunicationIdentityOperations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { IdentityRestClient } from \"../identityRestClient\";\nimport {\n CommunicationIdentityCreateOptionalParams,\n CommunicationIdentityCreateResponse,\n CommunicationIdentityDeleteOptionalParams,\n CommunicationIdentityRevokeAccessTokensOptionalParams,\n CommunicationIdentityExchangeTeamsUserAccessTokenOptionalParams,\n CommunicationIdentityExchangeTeamsUserAccessTokenResponse,\n CommunicationIdentityTokenScope,\n CommunicationIdentityIssueAccessTokenOptionalParams,\n CommunicationIdentityIssueAccessTokenResponse\n} from \"../models\";\n\n/** Class containing CommunicationIdentityOperations operations. */\nexport class CommunicationIdentityOperationsImpl\n implements CommunicationIdentityOperations {\n private readonly client: IdentityRestClient;\n\n /**\n * Initialize a new instance of the class CommunicationIdentityOperations class.\n * @param client Reference to the service client\n */\n constructor(client: IdentityRestClient) {\n this.client = client;\n }\n\n /**\n * Create a new identity, and optionally, an access token.\n * @param options The options parameters.\n */\n async create(\n options?: CommunicationIdentityCreateOptionalParams\n ): Promise<CommunicationIdentityCreateResponse> {\n return tracingClient.withSpan(\n \"IdentityRestClient.create\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n createOperationSpec\n ) as Promise<CommunicationIdentityCreateResponse>;\n }\n );\n }\n\n /**\n * Delete the identity, revoke all tokens for the identity and delete all associated data.\n * @param id Identifier of the identity to be deleted.\n * @param options The options parameters.\n */\n async delete(\n id: string,\n options?: CommunicationIdentityDeleteOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"IdentityRestClient.delete\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { id, options },\n deleteOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Revoke all access tokens for the specific identity.\n * @param id Identifier of the identity.\n * @param options The options parameters.\n */\n async revokeAccessTokens(\n id: string,\n options?: CommunicationIdentityRevokeAccessTokensOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"IdentityRestClient.revokeAccessTokens\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { id, options },\n revokeAccessTokensOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new Communication\n * Identity access token with a matching expiration time.\n * @param token Azure AD access token of a Teams User to acquire a new Communication Identity access\n * token.\n * @param appId Client ID of an Azure AD application to be verified against the appid claim in the\n * Azure AD access token.\n * @param userId Object ID of an Azure AD user (Teams User) to be verified against the oid claim in the\n * Azure AD access token.\n * @param options The options parameters.\n */\n async exchangeTeamsUserAccessToken(\n token: string,\n appId: string,\n userId: string,\n options?: CommunicationIdentityExchangeTeamsUserAccessTokenOptionalParams\n ): Promise<CommunicationIdentityExchangeTeamsUserAccessTokenResponse> {\n return tracingClient.withSpan(\n \"IdentityRestClient.exchangeTeamsUserAccessToken\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { token, appId, userId, options },\n exchangeTeamsUserAccessTokenOperationSpec\n ) as Promise<CommunicationIdentityExchangeTeamsUserAccessTokenResponse>;\n }\n );\n }\n\n /**\n * Issue a new token for an identity.\n * @param id Identifier of the identity to issue token for.\n * @param scopes List of scopes attached to the token.\n * @param options The options parameters.\n */\n async issueAccessToken(\n id: string,\n scopes: CommunicationIdentityTokenScope[],\n options?: CommunicationIdentityIssueAccessTokenOptionalParams\n ): Promise<CommunicationIdentityIssueAccessTokenResponse> {\n return tracingClient.withSpan(\n \"IdentityRestClient.issueAccessToken\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { id, scopes, options },\n issueAccessTokenOperationSpec\n ) as Promise<CommunicationIdentityIssueAccessTokenResponse>;\n }\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/identities\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.CommunicationIdentityAccessTokenResult\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: {\n createTokenWithScopes: [\"options\", \"createTokenWithScopes\"],\n expiresInMinutes: [\"options\", \"expiresInMinutes\"]\n },\n mapper: Mappers.CommunicationIdentityCreateRequest\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/identities/{id}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst revokeAccessTokensOperationSpec: coreClient.OperationSpec = {\n path: \"/identities/{id}/:revokeAccessTokens\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst exchangeTeamsUserAccessTokenOperationSpec: coreClient.OperationSpec = {\n path: \"/teamsUser/:exchangeAccessToken\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommunicationIdentityAccessToken\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: { token: [\"token\"], appId: [\"appId\"], userId: [\"userId\"] },\n mapper: { ...Mappers.TeamsUserExchangeTokenRequest, required: true }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst issueAccessTokenOperationSpec: coreClient.OperationSpec = {\n path: \"/identities/{id}/:issueAccessToken\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommunicationIdentityAccessToken\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: {\n scopes: [\"scopes\"],\n expiresInMinutes: [\"options\", \"expiresInMinutes\"]\n },\n mapper: {\n ...Mappers.CommunicationIdentityAccessTokenRequest,\n required: true\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.id],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n","/*\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\";\nimport { CommunicationIdentityOperations } from \"./operationsInterfaces\";\nimport { IdentityRestClientOptionalParams } from \"./models\";\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","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\n\n/**\n * The \\@azure/logger configuration for this package.\n */\nexport const logger = createClientLogger(\"communication-identity\");\n","// 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\";\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\";\nimport { logger } from \"./common/logger\";\nimport { tracingClient } from \"./generated/src/tracing\";\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"],"names":["createTracingClient","coreClient","Mappers.CommunicationIdentityAccessTokenResult","Mappers.CommunicationErrorResponse","Mappers.CommunicationIdentityCreateRequest","Parameters.apiVersion","Parameters.endpoint","Parameters.contentType","Parameters.accept","Parameters.id","Mappers.CommunicationIdentityAccessToken","Mappers.TeamsUserExchangeTokenRequest","Mappers.CommunicationIdentityAccessTokenRequest","createClientLogger","isTokenCredential","isKeyCredential","parseClientArguments","createCommunicationAuthPolicy"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAMG;AAII,MAAM,aAAa,GAAGA,+BAAmB,CAAC;AAC/C,IAAA,SAAS,EAAE,yBAAyB;AACpC,IAAA,WAAW,EAAE,+BAA+B;AAC5C,IAAA,cAAc,EAAE;AACjB,CAAA,CAAC;;ACdF;;;;;;AAMG;AAII,MAAM,kCAAkC,GAA+B;AAC5E,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,WAAW;AACjB,QAAA,SAAS,EAAE,oCAAoC;AAC/C,QAAA,eAAe,EAAE;AACf,YAAA,qBAAqB,EAAE;AACrB,gBAAA,cAAc,EAAE,uBAAuB;AACvC,gBAAA,IAAI,EAAE;AACJ,oBAAA,IAAI,EAAE,UAAU;AAChB,oBAAA,OAAO,EAAE;AACP,wBAAA,IAAI,EAAE;AACJ,4BAAA,IAAI,EAAE;AACP;AACF;AACF;AACF,aAAA;AACD,YAAA,gBAAgB,EAAE;AAChB,gBAAA,YAAY,EAAE,IAAI;AAClB,gBAAA,WAAW,EAAE;AACX,oBAAA,gBAAgB,EAAE,IAAI;AACtB,oBAAA,gBAAgB,EAAE;AACnB,iBAAA;AACD,gBAAA,cAAc,EAAE,kBAAkB;AAClC,gBAAA,IAAI,EAAE;AACJ,oBAAA,IAAI,EAAE;AACP;AACF;AACF;AACF;CACF;AAEM,MAAM,sCAAsC,GAA+B;AAChF,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,WAAW;AACjB,QAAA,SAAS,EAAE,wCAAwC;AACnD,Q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,cAAc;AACpE,YAAA,OAAO,IAAI,CAAC,MAAM,CAAC,+BAA+B,CAAC,4BAA4B,CAC7E,iBAAiB,EACjB,QAAQ,EACR,YAAY,EACZ,cAAc,CACf;AACH,SAAC,CACF;;AAEJ;;;;"}
|
@@ -2,9 +2,9 @@
|
|
2
2
|
// Licensed under the MIT License.
|
3
3
|
import { createCommunicationAuthPolicy, isKeyCredential, parseClientArguments, } from "@azure/communication-common";
|
4
4
|
import { isTokenCredential } from "@azure/core-auth";
|
5
|
-
import { IdentityRestClient } from "./generated/src/identityRestClient
|
6
|
-
import { logger } from "./common/logger
|
7
|
-
import { tracingClient } from "./generated/src/tracing
|
5
|
+
import { IdentityRestClient } from "./generated/src/identityRestClient";
|
6
|
+
import { logger } from "./common/logger";
|
7
|
+
import { tracingClient } from "./generated/src/tracing";
|
8
8
|
const isCommunicationIdentityClientOptions = (options) => options && !isTokenCredential(options) && !isKeyCredential(options);
|
9
9
|
/**
|
10
10
|
* Client class for interacting with Azure Communication Services User Token Management.
|
@@ -0,0 +1 @@
|
|
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,oCAAoC,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,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,2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C,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACI,oBAAoB,CACzB,OAAoC;QAEpC,OAAO,aAAa,CAAC,QAAQ,CAC3B,4CAA4C,EAC5C,OAAO,EACP,CAAC,cAAc,EAAE,EAAE;YACjB,MAAM,EAAE,iBAAiB,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,cAAc,CAAC;YACrE,OAAO,IAAI,CAAC,MAAM,CAAC,+BAA+B,CAAC,4BAA4B,CAC7E,iBAAiB,EACjB,QAAQ,EACR,YAAY,EACZ,cAAc,CACf,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["// 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\";\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\";\nimport { logger } from \"./common/logger\";\nimport { tracingClient } from \"./generated/src/tracing\";\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"]}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
import * as coreClient from "@azure/core-client";
|
9
|
-
import { CommunicationIdentityOperationsImpl } from "./operations
|
9
|
+
import { CommunicationIdentityOperationsImpl } from "./operations";
|
10
10
|
export class IdentityRestClient extends coreClient.ServiceClient {
|
11
11
|
/**
|
12
12
|
* Initializes a new instance of the IdentityRestClient class.
|
@@ -0,0 +1 @@
|
|
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,cAAc,CAAC;AAInE,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;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,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,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\";\nimport { CommunicationIdentityOperations } from \"./operationsInterfaces\";\nimport { IdentityRestClientOptionalParams } from \"./models\";\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"]}
|
@@ -5,5 +5,7 @@
|
|
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 "./
|
8
|
+
export * from "./models";
|
9
|
+
export { IdentityRestClient } from "./identityRestClient";
|
10
|
+
export * from "./operationsInterfaces";
|
9
11
|
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,wBAAwB,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\";\nexport { IdentityRestClient } from \"./identityRestClient\";\nexport * from \"./operationsInterfaces\";\n"]}
|
@@ -5,7 +5,7 @@
|
|
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
|
-
import { CommunicationIdentityCreateRequest as CommunicationIdentityCreateRequestMapper, TeamsUserExchangeTokenRequest as TeamsUserExchangeTokenRequestMapper, CommunicationIdentityAccessTokenRequest as CommunicationIdentityAccessTokenRequestMapper } from "../models/mappers
|
8
|
+
import { CommunicationIdentityCreateRequest as CommunicationIdentityCreateRequestMapper, TeamsUserExchangeTokenRequest as TeamsUserExchangeTokenRequestMapper, CommunicationIdentityAccessTokenRequest as CommunicationIdentityAccessTokenRequestMapper } from "../models/mappers";
|
9
9
|
export const contentType = {
|
10
10
|
parameterPath: ["options", "contentType"],
|
11
11
|
mapper: {
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,kCAAkC,IAAI,wCAAwC,EAC9E,6BAA6B,IAAI,mCAAmC,EACpE,uCAAuC,IAAI,6CAA6C,EACzF,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC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;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAuB;IACvC,aAAa,EAAE,OAAO;IACtB,MAAM,EAAE,mCAAmC;CAC5C,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAuB;IACvC,aAAa,EAAE,OAAO;IACtB,MAAM,EAAE,mCAAmC;CAC5C,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE,mCAAmC;CAC5C,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE,6CAA6C;CACtD,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAuB;IACnD,aAAa,EAAE,CAAC,SAAS,EAAE,kBAAkB,CAAC;IAC9C,MAAM,EAAE,6CAA6C;CACtD,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 CommunicationIdentityCreateRequest as CommunicationIdentityCreateRequestMapper,\n TeamsUserExchangeTokenRequest as TeamsUserExchangeTokenRequestMapper,\n CommunicationIdentityAccessTokenRequest as CommunicationIdentityAccessTokenRequestMapper\n} from \"../models/mappers\";\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 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 createTokenWithScopes: OperationParameter = {\n parameterPath: [\"options\", \"createTokenWithScopes\"],\n mapper: CommunicationIdentityCreateRequestMapper\n};\n\nexport const expiresInMinutes: OperationParameter = {\n parameterPath: [\"options\", \"expiresInMinutes\"],\n mapper: CommunicationIdentityCreateRequestMapper\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: \"2023-10-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const id: OperationURLParameter = {\n parameterPath: \"id\",\n mapper: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const token: OperationParameter = {\n parameterPath: \"token\",\n mapper: TeamsUserExchangeTokenRequestMapper\n};\n\nexport const appId: OperationParameter = {\n parameterPath: \"appId\",\n mapper: TeamsUserExchangeTokenRequestMapper\n};\n\nexport const userId: OperationParameter = {\n parameterPath: \"userId\",\n mapper: TeamsUserExchangeTokenRequestMapper\n};\n\nexport const scopes: OperationParameter = {\n parameterPath: \"scopes\",\n mapper: CommunicationIdentityAccessTokenRequestMapper\n};\n\nexport const expiresInMinutes1: OperationParameter = {\n parameterPath: [\"options\", \"expiresInMinutes\"],\n mapper: CommunicationIdentityAccessTokenRequestMapper\n};\n"]}
|
package/{dist/browser → dist-esm/src}/generated/src/operations/communicationIdentityOperations.js
RENAMED
@@ -5,10 +5,10 @@
|
|
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
|
-
import { tracingClient } from "../tracing
|
8
|
+
import { tracingClient } from "../tracing";
|
9
9
|
import * as coreClient from "@azure/core-client";
|
10
|
-
import * as Mappers from "../models/mappers
|
11
|
-
import * as Parameters from "../models/parameters
|
10
|
+
import * as Mappers from "../models/mappers";
|
11
|
+
import * as Parameters from "../models/parameters";
|
12
12
|
/** Class containing CommunicationIdentityOperations operations. */
|
13
13
|
export class CommunicationIdentityOperationsImpl {
|
14
14
|
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"communicationIdentityOperations.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/communicationIdentityOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAcnD,mEAAmE;AACnE,MAAM,OAAO,mCAAmC;IAI9C;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,MAAM,CACV,OAAmD;QAEnD,OAAO,aAAa,CAAC,QAAQ,CAC3B,2BAA2B,EAC3B,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,OAAO,EAAE,EAAE;YAChB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,EACX,mBAAmB,CAC4B,CAAC;QACpD,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM,CACV,EAAU,EACV,OAAmD;QAEnD,OAAO,aAAa,CAAC,QAAQ,CAC3B,2BAA2B,EAC3B,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,OAAO,EAAE,EAAE;YAChB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,EAAE,EAAE,OAAO,EAAE,EACf,mBAAmB,CACH,CAAC;QACrB,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,KAAK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UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,EAAE,CAAC;IACnD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing\";\nimport { CommunicationIdentityOperations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { IdentityRestClient } from \"../identityRestClient\";\nimport {\n CommunicationIdentityCreateOptionalParams,\n CommunicationIdentityCreateResponse,\n CommunicationIdentityDeleteOptionalParams,\n CommunicationIdentityRevokeAccessTokensOptionalParams,\n CommunicationIdentityExchangeTeamsUserAccessTokenOptionalParams,\n CommunicationIdentityExchangeTeamsUserAccessTokenResponse,\n CommunicationIdentityTokenScope,\n CommunicationIdentityIssueAccessTokenOptionalParams,\n CommunicationIdentityIssueAccessTokenResponse\n} from \"../models\";\n\n/** Class containing CommunicationIdentityOperations operations. */\nexport class CommunicationIdentityOperationsImpl\n implements CommunicationIdentityOperations {\n private readonly client: IdentityRestClient;\n\n /**\n * Initialize a new instance of the class CommunicationIdentityOperations class.\n * @param client Reference to the service client\n */\n constructor(client: IdentityRestClient) {\n this.client = client;\n }\n\n /**\n * Create a new identity, and optionally, an access token.\n * @param options The options parameters.\n */\n async create(\n options?: CommunicationIdentityCreateOptionalParams\n ): Promise<CommunicationIdentityCreateResponse> {\n return tracingClient.withSpan(\n \"IdentityRestClient.create\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n createOperationSpec\n ) as Promise<CommunicationIdentityCreateResponse>;\n }\n );\n }\n\n /**\n * Delete the identity, revoke all tokens for the identity and delete all associated data.\n * @param id Identifier of the identity to be deleted.\n * @param options The options parameters.\n */\n async delete(\n id: string,\n options?: CommunicationIdentityDeleteOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"IdentityRestClient.delete\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { id, options },\n deleteOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Revoke all access tokens for the specific identity.\n * @param id Identifier of the identity.\n * @param options The options parameters.\n */\n async revokeAccessTokens(\n id: string,\n options?: CommunicationIdentityRevokeAccessTokensOptionalParams\n ): Promise<void> {\n return tracingClient.withSpan(\n \"IdentityRestClient.revokeAccessTokens\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { id, options },\n revokeAccessTokensOperationSpec\n ) as Promise<void>;\n }\n );\n }\n\n /**\n * Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new Communication\n * Identity access token with a matching expiration time.\n * @param token Azure AD access token of a Teams User to acquire a new Communication Identity access\n * token.\n * @param appId Client ID of an Azure AD application to be verified against the appid claim in the\n * Azure AD access token.\n * @param userId Object ID of an Azure AD user (Teams User) to be verified against the oid claim in the\n * Azure AD access token.\n * @param options The options parameters.\n */\n async exchangeTeamsUserAccessToken(\n token: string,\n appId: string,\n userId: string,\n options?: CommunicationIdentityExchangeTeamsUserAccessTokenOptionalParams\n ): Promise<CommunicationIdentityExchangeTeamsUserAccessTokenResponse> {\n return tracingClient.withSpan(\n \"IdentityRestClient.exchangeTeamsUserAccessToken\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { token, appId, userId, options },\n exchangeTeamsUserAccessTokenOperationSpec\n ) as Promise<CommunicationIdentityExchangeTeamsUserAccessTokenResponse>;\n }\n );\n }\n\n /**\n * Issue a new token for an identity.\n * @param id Identifier of the identity to issue token for.\n * @param scopes List of scopes attached to the token.\n * @param options The options parameters.\n */\n async issueAccessToken(\n id: string,\n scopes: CommunicationIdentityTokenScope[],\n options?: CommunicationIdentityIssueAccessTokenOptionalParams\n ): Promise<CommunicationIdentityIssueAccessTokenResponse> {\n return tracingClient.withSpan(\n \"IdentityRestClient.issueAccessToken\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { id, scopes, options },\n issueAccessTokenOperationSpec\n ) as Promise<CommunicationIdentityIssueAccessTokenResponse>;\n }\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/identities\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.CommunicationIdentityAccessTokenResult\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: {\n createTokenWithScopes: [\"options\", \"createTokenWithScopes\"],\n expiresInMinutes: [\"options\", \"expiresInMinutes\"]\n },\n mapper: Mappers.CommunicationIdentityCreateRequest\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/identities/{id}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst revokeAccessTokensOperationSpec: coreClient.OperationSpec = {\n path: \"/identities/{id}/:revokeAccessTokens\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.id],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst exchangeTeamsUserAccessTokenOperationSpec: coreClient.OperationSpec = {\n path: \"/teamsUser/:exchangeAccessToken\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommunicationIdentityAccessToken\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: { token: [\"token\"], appId: [\"appId\"], userId: [\"userId\"] },\n mapper: { ...Mappers.TeamsUserExchangeTokenRequest, required: true }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst issueAccessTokenOperationSpec: coreClient.OperationSpec = {\n path: \"/identities/{id}/:issueAccessToken\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommunicationIdentityAccessToken\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse\n }\n },\n requestBody: {\n parameterPath: {\n scopes: [\"scopes\"],\n expiresInMinutes: [\"options\", \"expiresInMinutes\"]\n },\n mapper: {\n ...Mappers.CommunicationIdentityAccessTokenRequest,\n required: true\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.id],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n"]}
|
@@ -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
|
9
|
-
//# sourceMappingURL=
|
8
|
+
export * from "./communicationIdentityOperations";
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mCAAmC,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 \"./communicationIdentityOperations\";\n"]}
|
package/dist-esm/src/generated/src/operationsInterfaces/communicationIdentityOperations.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"communicationIdentityOperations.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/communicationIdentityOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n CommunicationIdentityCreateOptionalParams,\n CommunicationIdentityCreateResponse,\n CommunicationIdentityDeleteOptionalParams,\n CommunicationIdentityRevokeAccessTokensOptionalParams,\n CommunicationIdentityExchangeTeamsUserAccessTokenOptionalParams,\n CommunicationIdentityExchangeTeamsUserAccessTokenResponse,\n CommunicationIdentityTokenScope,\n CommunicationIdentityIssueAccessTokenOptionalParams,\n CommunicationIdentityIssueAccessTokenResponse\n} from \"../models\";\n\n/** Interface representing a CommunicationIdentityOperations. */\nexport interface CommunicationIdentityOperations {\n /**\n * Create a new identity, and optionally, an access token.\n * @param options The options parameters.\n */\n create(\n options?: CommunicationIdentityCreateOptionalParams\n ): Promise<CommunicationIdentityCreateResponse>;\n /**\n * Delete the identity, revoke all tokens for the identity and delete all associated data.\n * @param id Identifier of the identity to be deleted.\n * @param options The options parameters.\n */\n delete(\n id: string,\n options?: CommunicationIdentityDeleteOptionalParams\n ): Promise<void>;\n /**\n * Revoke all access tokens for the specific identity.\n * @param id Identifier of the identity.\n * @param options The options parameters.\n */\n revokeAccessTokens(\n id: string,\n options?: CommunicationIdentityRevokeAccessTokensOptionalParams\n ): Promise<void>;\n /**\n * Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new Communication\n * Identity access token with a matching expiration time.\n * @param token Azure AD access token of a Teams User to acquire a new Communication Identity access\n * token.\n * @param appId Client ID of an Azure AD application to be verified against the appid claim in the\n * Azure AD access token.\n * @param userId Object ID of an Azure AD user (Teams User) to be verified against the oid claim in the\n * Azure AD access token.\n * @param options The options parameters.\n */\n exchangeTeamsUserAccessToken(\n token: string,\n appId: string,\n userId: string,\n options?: CommunicationIdentityExchangeTeamsUserAccessTokenOptionalParams\n ): Promise<CommunicationIdentityExchangeTeamsUserAccessTokenResponse>;\n /**\n * Issue a new token for an identity.\n * @param id Identifier of the identity to issue token for.\n * @param scopes List of scopes attached to the token.\n * @param options The options parameters.\n */\n issueAccessToken(\n id: string,\n scopes: CommunicationIdentityTokenScope[],\n options?: CommunicationIdentityIssueAccessTokenOptionalParams\n ): Promise<CommunicationIdentityIssueAccessTokenResponse>;\n}\n"]}
|
@@ -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
|
9
|
-
//# sourceMappingURL=
|
8
|
+
export * from "./communicationIdentityOperations";
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mCAAmC,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 \"./communicationIdentityOperations\";\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,UAAU,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./communicationIdentityClient\";\nexport * from \"./models\";\n"]}
|
package/package.json
CHANGED
@@ -1,28 +1,29 @@
|
|
1
1
|
{
|
2
2
|
"name": "@azure/communication-identity",
|
3
|
-
"version": "1.3.2-alpha.
|
3
|
+
"version": "1.3.2-alpha.20241122.8",
|
4
4
|
"description": "SDK for Azure Communication service which facilitates user token administration.",
|
5
5
|
"sdk-type": "client",
|
6
|
-
"main": "
|
7
|
-
"module": "
|
8
|
-
"types": "
|
6
|
+
"main": "dist/index.js",
|
7
|
+
"module": "dist-esm/src/index.js",
|
8
|
+
"types": "types/communication-identity.d.ts",
|
9
9
|
"scripts": {
|
10
|
-
"build": "npm run clean && dev-tool run
|
11
|
-
"build:browser": "
|
12
|
-
"build:
|
10
|
+
"build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run extract-api",
|
11
|
+
"build:browser": "tsc -p . && dev-tool run bundle",
|
12
|
+
"build:clean": "rush update --recheck && rush rebuild && npm run build",
|
13
|
+
"build:node": "tsc -p . && dev-tool run bundle",
|
13
14
|
"build:samples": "echo Obsolete.",
|
14
|
-
"build:test": "
|
15
|
+
"build:test": "tsc -p . && dev-tool run bundle",
|
15
16
|
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
16
17
|
"clean": "dev-tool run vendored rimraf --glob dist dist-* temp types *.tgz *.log",
|
17
18
|
"execute:js-samples": "dev-tool samples run dist-samples/javascript",
|
18
19
|
"execute:samples": "dev-tool samples run samples-dev",
|
19
20
|
"execute:ts-samples": "dev-tool samples run dist-samples/typescript/dist/dist-samples/typescript/src/",
|
20
|
-
"extract-api": "
|
21
|
+
"extract-api": "tsc -p . && dev-tool run extract-api",
|
21
22
|
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
22
23
|
"generate:client": "autorest --typescript ./swagger/README.md && rushx format",
|
23
24
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
24
|
-
"integration-test:browser": "
|
25
|
-
"integration-test:node": "dev-tool run test:
|
25
|
+
"integration-test:browser": "dev-tool run test:browser",
|
26
|
+
"integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 --exclude 'dist-esm/test/**/browser/*.spec.js' 'dist-esm/test/**/*.spec.js'",
|
26
27
|
"lint": "eslint package.json api-extractor.json README.md src test",
|
27
28
|
"lint:fix": "eslint package.json api-extractor.json README.md src test --fix --fix-type [problem,suggestion]",
|
28
29
|
"pack": "npm pack 2>&1",
|
@@ -31,8 +32,8 @@
|
|
31
32
|
"test:node": "npm run build:test && npm run unit-test:node && npm run integration-test:node",
|
32
33
|
"test:watch": "npm run test -- --watch --reporter min",
|
33
34
|
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
34
|
-
"unit-test:browser": "
|
35
|
-
"unit-test:node": "dev-tool run test:
|
35
|
+
"unit-test:browser": "dev-tool run test:browser",
|
36
|
+
"unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'",
|
36
37
|
"update-snippets": "echo skipped"
|
37
38
|
},
|
38
39
|
"//metadata": {
|
@@ -70,6 +71,8 @@
|
|
70
71
|
},
|
71
72
|
"files": [
|
72
73
|
"dist/",
|
74
|
+
"dist-esm/src/",
|
75
|
+
"types/communication-identity.d.ts",
|
73
76
|
"README.md",
|
74
77
|
"LICENSE"
|
75
78
|
],
|
@@ -91,72 +94,49 @@
|
|
91
94
|
"sideEffects": false,
|
92
95
|
"prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
|
93
96
|
"dependencies": {
|
94
|
-
"@azure/abort-controller": "^2.
|
97
|
+
"@azure/abort-controller": "^2.0.0",
|
95
98
|
"@azure/communication-common": "^2.3.1",
|
96
|
-
"@azure/core-auth": "^1.
|
97
|
-
"@azure/core-client": "^1.
|
99
|
+
"@azure/core-auth": "^1.3.2",
|
100
|
+
"@azure/core-client": "^1.6.0",
|
98
101
|
"@azure/core-lro": "^2.2.0",
|
99
|
-
"@azure/core-paging": "^1.
|
100
|
-
"@azure/core-rest-pipeline": "
|
101
|
-
"@azure/core-tracing": "^1.
|
102
|
-
"@azure/logger": "^1.
|
102
|
+
"@azure/core-paging": "^1.1.1",
|
103
|
+
"@azure/core-rest-pipeline": "^1.3.0",
|
104
|
+
"@azure/core-tracing": "^1.0.0",
|
105
|
+
"@azure/logger": "^1.0.0",
|
103
106
|
"events": "^3.0.0",
|
104
107
|
"tslib": "^2.2.0"
|
105
108
|
},
|
106
109
|
"devDependencies": {
|
107
|
-
"@azure-tools/test-credential": "^
|
108
|
-
"@azure-tools/test-recorder": "
|
109
|
-
"@azure-tools/test-utils
|
110
|
+
"@azure-tools/test-credential": "^1.0.0",
|
111
|
+
"@azure-tools/test-recorder": "^3.0.0",
|
112
|
+
"@azure-tools/test-utils": "^1.0.1",
|
110
113
|
"@azure/core-util": "^1.6.1",
|
111
114
|
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
|
112
115
|
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
|
113
|
-
"@azure/identity": "^4.
|
114
|
-
"@azure/msal-node": "^2.
|
116
|
+
"@azure/identity": "^4.0.1",
|
117
|
+
"@azure/msal-node": "^2.9.2",
|
118
|
+
"@types/chai": "^4.1.6",
|
119
|
+
"@types/mocha": "^10.0.0",
|
115
120
|
"@types/node": "^18.0.0",
|
116
|
-
"@
|
117
|
-
"
|
121
|
+
"@types/sinon": "^17.0.0",
|
122
|
+
"chai": "^4.2.0",
|
118
123
|
"dotenv": "^16.0.0",
|
119
124
|
"eslint": "^9.9.0",
|
120
|
-
"
|
121
|
-
"
|
122
|
-
"
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
"
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
"
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
"
|
135
|
-
|
136
|
-
"react-native"
|
137
|
-
],
|
138
|
-
"selfLink": false
|
139
|
-
},
|
140
|
-
"browser": "./dist/browser/index.js",
|
141
|
-
"exports": {
|
142
|
-
"./package.json": "./package.json",
|
143
|
-
".": {
|
144
|
-
"browser": {
|
145
|
-
"types": "./dist/browser/index.d.ts",
|
146
|
-
"default": "./dist/browser/index.js"
|
147
|
-
},
|
148
|
-
"react-native": {
|
149
|
-
"types": "./dist/react-native/index.d.ts",
|
150
|
-
"default": "./dist/react-native/index.js"
|
151
|
-
},
|
152
|
-
"import": {
|
153
|
-
"types": "./dist/esm/index.d.ts",
|
154
|
-
"default": "./dist/esm/index.js"
|
155
|
-
},
|
156
|
-
"require": {
|
157
|
-
"types": "./dist/commonjs/index.d.ts",
|
158
|
-
"default": "./dist/commonjs/index.js"
|
159
|
-
}
|
160
|
-
}
|
125
|
+
"inherits": "^2.0.3",
|
126
|
+
"karma": "^6.2.0",
|
127
|
+
"karma-chrome-launcher": "^3.0.0",
|
128
|
+
"karma-coverage": "^2.0.0",
|
129
|
+
"karma-env-preprocessor": "^0.1.1",
|
130
|
+
"karma-firefox-launcher": "^1.1.0",
|
131
|
+
"karma-junit-reporter": "^2.0.1",
|
132
|
+
"karma-mocha": "^2.0.1",
|
133
|
+
"karma-mocha-reporter": "^2.2.5",
|
134
|
+
"karma-sourcemap-loader": "^0.3.8",
|
135
|
+
"mocha": "^10.0.0",
|
136
|
+
"nyc": "^17.0.0",
|
137
|
+
"process": "^0.11.10",
|
138
|
+
"sinon": "^17.0.0",
|
139
|
+
"ts-node": "^10.0.0",
|
140
|
+
"typescript": "~5.6.2"
|
161
141
|
}
|
162
142
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/common/logger.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,MAAM,qCAA+C,CAAC"}
|
@@ -1,76 +0,0 @@
|
|
1
|
-
import type { CommunicationAccessToken, CommunicationIdentityClientOptions, CommunicationUserToken, GetTokenForTeamsUserOptions, CreateUserAndTokenOptions, GetTokenOptions, TokenScope } from "./models.js";
|
2
|
-
import type { CommunicationUserIdentifier } from "@azure/communication-common";
|
3
|
-
import type { OperationOptions } from "@azure/core-client";
|
4
|
-
import type { KeyCredential, TokenCredential } from "@azure/core-auth";
|
5
|
-
/**
|
6
|
-
* Client class for interacting with Azure Communication Services User Token Management.
|
7
|
-
*/
|
8
|
-
export declare class CommunicationIdentityClient {
|
9
|
-
/**
|
10
|
-
* A reference to the auto-generated UserToken HTTP client.
|
11
|
-
*/
|
12
|
-
private readonly client;
|
13
|
-
/**
|
14
|
-
* Initializes a new instance of the CommunicationIdentity class.
|
15
|
-
* @param connectionString - Connection string to connect to an Azure Communication Service resource.
|
16
|
-
* Example: "endpoint=https://contoso.eastus.communications.azure.net/;accesskey=secret";
|
17
|
-
* @param options - Optional. Options to configure the HTTP pipeline.
|
18
|
-
*/
|
19
|
-
constructor(connectionString: string, options?: CommunicationIdentityClientOptions);
|
20
|
-
/**
|
21
|
-
* Initializes a new instance of the CommunicationIdentity class using an Azure KeyCredential.
|
22
|
-
* @param endpoint - The endpoint of the service (ex: https://contoso.eastus.communications.azure.net).
|
23
|
-
* @param credential - An object that is used to authenticate requests to the service. Use the AzureKeyCredential or `@azure/identity` to create a credential.
|
24
|
-
* @param options - Optional. Options to configure the HTTP pipeline.
|
25
|
-
*/
|
26
|
-
constructor(endpoint: string, credential: KeyCredential, options?: CommunicationIdentityClientOptions);
|
27
|
-
/**
|
28
|
-
* Initializes a new instance of the CommunicationIdentity class using a TokenCredential.
|
29
|
-
* @param endpoint - The endpoint of the service (ex: https://contoso.eastus.communications.azure.net)
|
30
|
-
* @param credential - TokenCredential that is used to authenticate requests to the service.
|
31
|
-
* @param options - Optional. Options to configure the HTTP pipeline.
|
32
|
-
*/
|
33
|
-
constructor(endpoint: string, credential: TokenCredential, options?: CommunicationIdentityClientOptions);
|
34
|
-
/**
|
35
|
-
* Creates a scoped user token.
|
36
|
-
*
|
37
|
-
* @param user - The user whose tokens are being issued.
|
38
|
-
* @param scopes - Scopes to include in the token.
|
39
|
-
* @param options - Additional options for the request.
|
40
|
-
*/
|
41
|
-
getToken(user: CommunicationUserIdentifier, scopes: TokenScope[], options?: GetTokenOptions): Promise<CommunicationAccessToken>;
|
42
|
-
/**
|
43
|
-
* Revokes all data and tokens created for a user.
|
44
|
-
*
|
45
|
-
* @param user - The user whose tokens are being revoked.
|
46
|
-
* @param options - Additional options for the request.
|
47
|
-
*/
|
48
|
-
revokeTokens(user: CommunicationUserIdentifier, options?: OperationOptions): Promise<void>;
|
49
|
-
/**
|
50
|
-
* Creates a single user.
|
51
|
-
*
|
52
|
-
* @param options - Additional options for the request.
|
53
|
-
*/
|
54
|
-
createUser(options?: OperationOptions): Promise<CommunicationUserIdentifier>;
|
55
|
-
/**
|
56
|
-
* Creates a single user and a token simultaneously.
|
57
|
-
*
|
58
|
-
* @param scopes - Scopes to include in the token.
|
59
|
-
* @param options - Additional options for the request.
|
60
|
-
*/
|
61
|
-
createUserAndToken(scopes: TokenScope[], options?: CreateUserAndTokenOptions): Promise<CommunicationUserToken>;
|
62
|
-
/**
|
63
|
-
* Triggers revocation event for user and deletes all its data.
|
64
|
-
*
|
65
|
-
* @param user - The user being deleted.
|
66
|
-
* @param options - Additional options for the request.
|
67
|
-
*/
|
68
|
-
deleteUser(user: CommunicationUserIdentifier, options?: OperationOptions): Promise<void>;
|
69
|
-
/**
|
70
|
-
* Exchanges an Azure AD access token of a Teams user for a new Communication Identity access token with a matching expiration time.
|
71
|
-
*
|
72
|
-
* @param options - Options used to exchange an Azure AD access token of a Teams user for a new Communication Identity access token.
|
73
|
-
*/
|
74
|
-
getTokenForTeamsUser(options: GetTokenForTeamsUserOptions): Promise<CommunicationAccessToken>;
|
75
|
-
}
|
76
|
-
//# sourceMappingURL=communicationIdentityClient.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"communicationIdentityClient.d.ts","sourceRoot":"","sources":["../../src/communicationIdentityClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,wBAAwB,EACxB,kCAAkC,EAClC,sBAAsB,EACtB,2BAA2B,EAC3B,yBAAyB,EACzB,eAAe,EACf,UAAU,EACX,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAM/E,OAAO,KAAK,EAAiC,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC1F,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAWvE;;GAEG;AACH,qBAAa,2BAA2B;IACtC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;;;OAKG;gBACgB,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kCAAkC;IAEzF;;;;;OAKG;gBAED,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,aAAa,EACzB,OAAO,CAAC,EAAE,kCAAkC;IAE9C;;;;;OAKG;gBAED,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,eAAe,EAC3B,OAAO,CAAC,EAAE,kCAAkC;IA+B9C;;;;;;OAMG;IACI,QAAQ,CACb,IAAI,EAAE,2BAA2B,EACjC,MAAM,EAA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