@azure/communication-identity 1.3.2-alpha.20241122.8 → 1.3.2-alpha.20241203.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/browser/common/logger.d.ts +5 -0
- package/dist/browser/common/logger.d.ts.map +1 -0
- package/{types/communication-identity.d.ts → dist/browser/communicationIdentityClient.d.ts} +76 -148
- package/dist/browser/communicationIdentityClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/communicationIdentityClient.js +3 -3
- package/dist/browser/communicationIdentityClient.js.map +1 -0
- package/dist/browser/constants.d.ts +2 -0
- package/dist/browser/constants.d.ts.map +1 -0
- package/dist/browser/generated/src/identityRestClient.d.ts +17 -0
- package/dist/browser/generated/src/identityRestClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/identityRestClient.js +1 -1
- package/dist/browser/generated/src/identityRestClient.js.map +1 -0
- package/dist/browser/generated/src/index.d.ts +4 -0
- package/dist/browser/generated/src/index.d.ts.map +1 -0
- package/dist/browser/generated/src/index.js +11 -0
- package/dist/browser/generated/src/index.js.map +1 -0
- package/dist/browser/generated/src/models/index.d.ts +127 -0
- package/dist/browser/generated/src/models/index.d.ts.map +1 -0
- package/dist/browser/generated/src/models/mappers.d.ts +10 -0
- package/dist/browser/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/browser/generated/src/models/parameters.d.ts +14 -0
- package/dist/browser/generated/src/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/models/parameters.js +1 -1
- package/dist/browser/generated/src/models/parameters.js.map +1 -0
- package/dist/browser/generated/src/operations/communicationIdentityOperations.d.ts +49 -0
- package/dist/browser/generated/src/operations/communicationIdentityOperations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/operations/communicationIdentityOperations.js +3 -3
- package/dist/browser/generated/src/operations/communicationIdentityOperations.js.map +1 -0
- package/dist/browser/generated/src/operations/index.d.ts +2 -0
- package/dist/browser/generated/src/operations/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/src → dist/browser/generated/src/operations}/index.js +1 -3
- package/{dist-esm/src → dist/browser}/generated/src/operations/index.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts +41 -0
- package/dist/browser/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/communicationIdentityOperations.js.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts +2 -0
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/index.js +9 -0
- package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/generated/src/tracing.d.ts +2 -0
- package/dist/browser/generated/src/tracing.d.ts.map +1 -0
- package/dist/browser/index.d.ts +3 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +5 -0
- package/{dist-esm/src → dist/browser}/index.js.map +1 -1
- package/dist/browser/models.d.ts +65 -0
- package/dist/browser/models.d.ts.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/commonjs/common/logger.d.ts +5 -0
- package/dist/commonjs/common/logger.d.ts.map +1 -0
- package/dist/commonjs/common/logger.js +11 -0
- package/dist/commonjs/common/logger.js.map +1 -0
- package/dist/commonjs/communicationIdentityClient.d.ts +76 -0
- package/dist/commonjs/communicationIdentityClient.d.ts.map +1 -0
- package/dist/commonjs/communicationIdentityClient.js +107 -0
- package/dist/commonjs/communicationIdentityClient.js.map +1 -0
- package/dist/commonjs/constants.d.ts +2 -0
- package/dist/commonjs/constants.d.ts.map +1 -0
- package/dist/commonjs/constants.js +7 -0
- package/dist/commonjs/constants.js.map +1 -0
- package/dist/commonjs/generated/src/identityRestClient.d.ts +17 -0
- package/dist/commonjs/generated/src/identityRestClient.d.ts.map +1 -0
- package/dist/commonjs/generated/src/identityRestClient.js +74 -0
- package/dist/commonjs/generated/src/identityRestClient.js.map +1 -0
- package/dist/commonjs/generated/src/index.d.ts +4 -0
- package/dist/commonjs/generated/src/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/index.js +16 -0
- package/dist/commonjs/generated/src/index.js.map +1 -0
- package/dist/commonjs/generated/src/models/index.d.ts +127 -0
- package/dist/commonjs/generated/src/models/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/index.js +25 -0
- package/dist/commonjs/generated/src/models/index.js.map +1 -0
- package/dist/commonjs/generated/src/models/mappers.d.ts +10 -0
- package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/mappers.js +224 -0
- package/dist/commonjs/generated/src/models/mappers.js.map +1 -0
- package/dist/commonjs/generated/src/models/parameters.d.ts +14 -0
- package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/parameters.js +94 -0
- package/dist/commonjs/generated/src/models/parameters.js.map +1 -0
- package/dist/commonjs/generated/src/operations/communicationIdentityOperations.d.ts +49 -0
- package/dist/commonjs/generated/src/operations/communicationIdentityOperations.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/communicationIdentityOperations.js +182 -0
- package/dist/commonjs/generated/src/operations/communicationIdentityOperations.js.map +1 -0
- package/dist/commonjs/generated/src/operations/index.d.ts +2 -0
- package/dist/commonjs/generated/src/operations/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/index.js +12 -0
- package/dist/commonjs/generated/src/operations/index.js.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts +41 -0
- package/dist/commonjs/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/communicationIdentityOperations.js +10 -0
- package/dist/commonjs/generated/src/operationsInterfaces/communicationIdentityOperations.js.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +2 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.js +12 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/generated/src/tracing.d.ts +2 -0
- package/dist/commonjs/generated/src/tracing.d.ts.map +1 -0
- package/dist/commonjs/generated/src/tracing.js +17 -0
- package/dist/commonjs/generated/src/tracing.js.map +1 -0
- package/dist/commonjs/index.d.ts +3 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +8 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/models.d.ts +65 -0
- package/dist/commonjs/models.d.ts.map +1 -0
- package/dist/commonjs/models.js +5 -0
- package/dist/commonjs/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/common/logger.d.ts +5 -0
- package/dist/esm/common/logger.d.ts.map +1 -0
- package/dist/esm/common/logger.js +8 -0
- package/dist/esm/common/logger.js.map +1 -0
- package/dist/esm/communicationIdentityClient.d.ts +76 -0
- package/dist/esm/communicationIdentityClient.d.ts.map +1 -0
- package/dist/esm/communicationIdentityClient.js +103 -0
- package/dist/esm/communicationIdentityClient.js.map +1 -0
- package/dist/esm/constants.d.ts +2 -0
- package/dist/esm/constants.d.ts.map +1 -0
- package/dist/esm/constants.js +4 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/generated/src/identityRestClient.d.ts +17 -0
- package/dist/esm/generated/src/identityRestClient.d.ts.map +1 -0
- package/dist/esm/generated/src/identityRestClient.js +69 -0
- package/dist/esm/generated/src/identityRestClient.js.map +1 -0
- package/dist/esm/generated/src/index.d.ts +4 -0
- package/dist/esm/generated/src/index.d.ts.map +1 -0
- package/dist/esm/generated/src/index.js +11 -0
- package/dist/esm/generated/src/index.js.map +1 -0
- package/dist/esm/generated/src/models/index.d.ts +127 -0
- package/dist/esm/generated/src/models/index.d.ts.map +1 -0
- package/dist/esm/generated/src/models/index.js +22 -0
- package/dist/esm/generated/src/models/index.js.map +1 -0
- package/dist/esm/generated/src/models/mappers.d.ts +10 -0
- package/dist/esm/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/esm/generated/src/models/mappers.js +221 -0
- package/dist/esm/generated/src/models/mappers.js.map +1 -0
- package/dist/esm/generated/src/models/parameters.d.ts +14 -0
- package/dist/esm/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/esm/generated/src/models/parameters.js +91 -0
- package/dist/esm/generated/src/models/parameters.js.map +1 -0
- package/dist/esm/generated/src/operations/communicationIdentityOperations.d.ts +49 -0
- package/dist/esm/generated/src/operations/communicationIdentityOperations.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/communicationIdentityOperations.js +177 -0
- package/dist/esm/generated/src/operations/communicationIdentityOperations.js.map +1 -0
- package/dist/esm/generated/src/operations/index.d.ts +2 -0
- package/dist/esm/generated/src/operations/index.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/index.js +9 -0
- package/dist/esm/generated/src/operations/index.js.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts +41 -0
- package/dist/esm/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts.map +1 -0
- package/{dist-esm/src/generated/src/operationsInterfaces/index.js → dist/esm/generated/src/operationsInterfaces/communicationIdentityOperations.js} +2 -2
- package/dist/esm/generated/src/operationsInterfaces/communicationIdentityOperations.js.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts +2 -0
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/index.js +9 -0
- package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/generated/src/tracing.d.ts +2 -0
- package/dist/esm/generated/src/tracing.d.ts.map +1 -0
- package/dist/esm/generated/src/tracing.js +14 -0
- package/dist/esm/generated/src/tracing.js.map +1 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models.d.ts +65 -0
- package/dist/esm/models.d.ts.map +1 -0
- package/dist/esm/models.js +4 -0
- package/dist/esm/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/react-native/common/logger.d.ts +5 -0
- package/dist/react-native/common/logger.d.ts.map +1 -0
- package/dist/react-native/common/logger.js +8 -0
- package/dist/react-native/common/logger.js.map +1 -0
- package/dist/react-native/communicationIdentityClient.d.ts +76 -0
- package/dist/react-native/communicationIdentityClient.d.ts.map +1 -0
- package/dist/react-native/communicationIdentityClient.js +103 -0
- package/dist/react-native/communicationIdentityClient.js.map +1 -0
- package/dist/react-native/constants.d.ts +2 -0
- package/dist/react-native/constants.d.ts.map +1 -0
- package/dist/react-native/constants.js +4 -0
- package/dist/react-native/constants.js.map +1 -0
- package/dist/react-native/generated/src/identityRestClient.d.ts +17 -0
- package/dist/react-native/generated/src/identityRestClient.d.ts.map +1 -0
- package/dist/react-native/generated/src/identityRestClient.js +69 -0
- package/dist/react-native/generated/src/identityRestClient.js.map +1 -0
- package/dist/react-native/generated/src/index.d.ts +4 -0
- package/dist/react-native/generated/src/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/index.js +11 -0
- package/dist/react-native/generated/src/index.js.map +1 -0
- package/dist/react-native/generated/src/models/index.d.ts +127 -0
- package/dist/react-native/generated/src/models/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/index.js +22 -0
- package/dist/react-native/generated/src/models/index.js.map +1 -0
- package/dist/react-native/generated/src/models/mappers.d.ts +10 -0
- package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/mappers.js +221 -0
- package/dist/react-native/generated/src/models/mappers.js.map +1 -0
- package/dist/react-native/generated/src/models/parameters.d.ts +14 -0
- package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/parameters.js +91 -0
- package/dist/react-native/generated/src/models/parameters.js.map +1 -0
- package/dist/react-native/generated/src/operations/communicationIdentityOperations.d.ts +49 -0
- package/dist/react-native/generated/src/operations/communicationIdentityOperations.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/communicationIdentityOperations.js +177 -0
- package/dist/react-native/generated/src/operations/communicationIdentityOperations.js.map +1 -0
- package/dist/react-native/generated/src/operations/index.d.ts +2 -0
- package/dist/react-native/generated/src/operations/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/index.js +9 -0
- package/dist/react-native/generated/src/operations/index.js.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts +41 -0
- package/dist/react-native/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts.map +1 -0
- package/{dist-esm/src/generated/src/operations/index.js → dist/react-native/generated/src/operationsInterfaces/communicationIdentityOperations.js} +2 -2
- package/dist/react-native/generated/src/operationsInterfaces/communicationIdentityOperations.js.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +2 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.js +9 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/generated/src/tracing.d.ts +2 -0
- package/dist/react-native/generated/src/tracing.d.ts.map +1 -0
- package/dist/react-native/generated/src/tracing.js +14 -0
- package/dist/react-native/generated/src/tracing.js.map +1 -0
- package/dist/react-native/index.d.ts +3 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +5 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/models.d.ts +65 -0
- package/dist/react-native/models.d.ts.map +1 -0
- package/dist/react-native/models.js +4 -0
- package/dist/react-native/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/package.json +68 -48
- package/dist/index.js +0 -684
- package/dist/index.js.map +0 -1
- package/dist-esm/src/communicationIdentityClient.js.map +0 -1
- package/dist-esm/src/generated/src/identityRestClient.js.map +0 -1
- package/dist-esm/src/generated/src/index.js.map +0 -1
- package/dist-esm/src/generated/src/models/parameters.js.map +0 -1
- package/dist-esm/src/generated/src/operations/communicationIdentityOperations.js.map +0 -1
- package/dist-esm/src/generated/src/operationsInterfaces/communicationIdentityOperations.js.map +0 -1
- package/dist-esm/src/index.js +0 -5
- /package/{dist-esm/src → dist/browser}/common/logger.js +0 -0
- /package/{dist-esm/src → dist/browser}/common/logger.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/constants.js +0 -0
- /package/{dist-esm/src → dist/browser}/constants.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/models/index.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/communicationIdentityOperations.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/tracing.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/tracing.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/models.js +0 -0
- /package/{dist-esm/src → dist/browser}/models.js.map +0 -0
@@ -0,0 +1,177 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { tracingClient } from "../tracing.js";
|
9
|
+
import * as coreClient from "@azure/core-client";
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
12
|
+
/** Class containing CommunicationIdentityOperations operations. */
|
13
|
+
export class CommunicationIdentityOperationsImpl {
|
14
|
+
/**
|
15
|
+
* Initialize a new instance of the class CommunicationIdentityOperations class.
|
16
|
+
* @param client Reference to the service client
|
17
|
+
*/
|
18
|
+
constructor(client) {
|
19
|
+
this.client = client;
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* Create a new identity, and optionally, an access token.
|
23
|
+
* @param options The options parameters.
|
24
|
+
*/
|
25
|
+
async create(options) {
|
26
|
+
return tracingClient.withSpan("IdentityRestClient.create", options !== null && options !== void 0 ? options : {}, async (options) => {
|
27
|
+
return this.client.sendOperationRequest({ options }, createOperationSpec);
|
28
|
+
});
|
29
|
+
}
|
30
|
+
/**
|
31
|
+
* Delete the identity, revoke all tokens for the identity and delete all associated data.
|
32
|
+
* @param id Identifier of the identity to be deleted.
|
33
|
+
* @param options The options parameters.
|
34
|
+
*/
|
35
|
+
async delete(id, options) {
|
36
|
+
return tracingClient.withSpan("IdentityRestClient.delete", options !== null && options !== void 0 ? options : {}, async (options) => {
|
37
|
+
return this.client.sendOperationRequest({ id, options }, deleteOperationSpec);
|
38
|
+
});
|
39
|
+
}
|
40
|
+
/**
|
41
|
+
* Revoke all access tokens for the specific identity.
|
42
|
+
* @param id Identifier of the identity.
|
43
|
+
* @param options The options parameters.
|
44
|
+
*/
|
45
|
+
async revokeAccessTokens(id, options) {
|
46
|
+
return tracingClient.withSpan("IdentityRestClient.revokeAccessTokens", options !== null && options !== void 0 ? options : {}, async (options) => {
|
47
|
+
return this.client.sendOperationRequest({ id, options }, revokeAccessTokensOperationSpec);
|
48
|
+
});
|
49
|
+
}
|
50
|
+
/**
|
51
|
+
* Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new Communication
|
52
|
+
* Identity access token with a matching expiration time.
|
53
|
+
* @param token Azure AD access token of a Teams User to acquire a new Communication Identity access
|
54
|
+
* token.
|
55
|
+
* @param appId Client ID of an Azure AD application to be verified against the appid claim in the
|
56
|
+
* Azure AD access token.
|
57
|
+
* @param userId Object ID of an Azure AD user (Teams User) to be verified against the oid claim in the
|
58
|
+
* Azure AD access token.
|
59
|
+
* @param options The options parameters.
|
60
|
+
*/
|
61
|
+
async exchangeTeamsUserAccessToken(token, appId, userId, options) {
|
62
|
+
return tracingClient.withSpan("IdentityRestClient.exchangeTeamsUserAccessToken", options !== null && options !== void 0 ? options : {}, async (options) => {
|
63
|
+
return this.client.sendOperationRequest({ token, appId, userId, options }, exchangeTeamsUserAccessTokenOperationSpec);
|
64
|
+
});
|
65
|
+
}
|
66
|
+
/**
|
67
|
+
* Issue a new token for an identity.
|
68
|
+
* @param id Identifier of the identity to issue token for.
|
69
|
+
* @param scopes List of scopes attached to the token.
|
70
|
+
* @param options The options parameters.
|
71
|
+
*/
|
72
|
+
async issueAccessToken(id, scopes, options) {
|
73
|
+
return tracingClient.withSpan("IdentityRestClient.issueAccessToken", options !== null && options !== void 0 ? options : {}, async (options) => {
|
74
|
+
return this.client.sendOperationRequest({ id, scopes, options }, issueAccessTokenOperationSpec);
|
75
|
+
});
|
76
|
+
}
|
77
|
+
}
|
78
|
+
// Operation Specifications
|
79
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
80
|
+
const createOperationSpec = {
|
81
|
+
path: "/identities",
|
82
|
+
httpMethod: "POST",
|
83
|
+
responses: {
|
84
|
+
201: {
|
85
|
+
bodyMapper: Mappers.CommunicationIdentityAccessTokenResult
|
86
|
+
},
|
87
|
+
default: {
|
88
|
+
bodyMapper: Mappers.CommunicationErrorResponse
|
89
|
+
}
|
90
|
+
},
|
91
|
+
requestBody: {
|
92
|
+
parameterPath: {
|
93
|
+
createTokenWithScopes: ["options", "createTokenWithScopes"],
|
94
|
+
expiresInMinutes: ["options", "expiresInMinutes"]
|
95
|
+
},
|
96
|
+
mapper: Mappers.CommunicationIdentityCreateRequest
|
97
|
+
},
|
98
|
+
queryParameters: [Parameters.apiVersion],
|
99
|
+
urlParameters: [Parameters.endpoint],
|
100
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
101
|
+
mediaType: "json",
|
102
|
+
serializer
|
103
|
+
};
|
104
|
+
const deleteOperationSpec = {
|
105
|
+
path: "/identities/{id}",
|
106
|
+
httpMethod: "DELETE",
|
107
|
+
responses: {
|
108
|
+
204: {},
|
109
|
+
default: {
|
110
|
+
bodyMapper: Mappers.CommunicationErrorResponse
|
111
|
+
}
|
112
|
+
},
|
113
|
+
queryParameters: [Parameters.apiVersion],
|
114
|
+
urlParameters: [Parameters.endpoint, Parameters.id],
|
115
|
+
headerParameters: [Parameters.accept],
|
116
|
+
serializer
|
117
|
+
};
|
118
|
+
const revokeAccessTokensOperationSpec = {
|
119
|
+
path: "/identities/{id}/:revokeAccessTokens",
|
120
|
+
httpMethod: "POST",
|
121
|
+
responses: {
|
122
|
+
204: {},
|
123
|
+
default: {
|
124
|
+
bodyMapper: Mappers.CommunicationErrorResponse
|
125
|
+
}
|
126
|
+
},
|
127
|
+
queryParameters: [Parameters.apiVersion],
|
128
|
+
urlParameters: [Parameters.endpoint, Parameters.id],
|
129
|
+
headerParameters: [Parameters.accept],
|
130
|
+
serializer
|
131
|
+
};
|
132
|
+
const exchangeTeamsUserAccessTokenOperationSpec = {
|
133
|
+
path: "/teamsUser/:exchangeAccessToken",
|
134
|
+
httpMethod: "POST",
|
135
|
+
responses: {
|
136
|
+
200: {
|
137
|
+
bodyMapper: Mappers.CommunicationIdentityAccessToken
|
138
|
+
},
|
139
|
+
default: {
|
140
|
+
bodyMapper: Mappers.CommunicationErrorResponse
|
141
|
+
}
|
142
|
+
},
|
143
|
+
requestBody: {
|
144
|
+
parameterPath: { token: ["token"], appId: ["appId"], userId: ["userId"] },
|
145
|
+
mapper: Object.assign(Object.assign({}, Mappers.TeamsUserExchangeTokenRequest), { required: true })
|
146
|
+
},
|
147
|
+
queryParameters: [Parameters.apiVersion],
|
148
|
+
urlParameters: [Parameters.endpoint],
|
149
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
150
|
+
mediaType: "json",
|
151
|
+
serializer
|
152
|
+
};
|
153
|
+
const issueAccessTokenOperationSpec = {
|
154
|
+
path: "/identities/{id}/:issueAccessToken",
|
155
|
+
httpMethod: "POST",
|
156
|
+
responses: {
|
157
|
+
200: {
|
158
|
+
bodyMapper: Mappers.CommunicationIdentityAccessToken
|
159
|
+
},
|
160
|
+
default: {
|
161
|
+
bodyMapper: Mappers.CommunicationErrorResponse
|
162
|
+
}
|
163
|
+
},
|
164
|
+
requestBody: {
|
165
|
+
parameterPath: {
|
166
|
+
scopes: ["scopes"],
|
167
|
+
expiresInMinutes: ["options", "expiresInMinutes"]
|
168
|
+
},
|
169
|
+
mapper: Object.assign(Object.assign({}, Mappers.CommunicationIdentityAccessTokenRequest), { required: true })
|
170
|
+
},
|
171
|
+
queryParameters: [Parameters.apiVersion],
|
172
|
+
urlParameters: [Parameters.endpoint, Parameters.id],
|
173
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
174
|
+
mediaType: "json",
|
175
|
+
serializer
|
176
|
+
};
|
177
|
+
//# sourceMappingURL=communicationIdentityOperations.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"communicationIdentityOperations.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/communicationIdentityOperations.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing.js\";\nimport { CommunicationIdentityOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { IdentityRestClient } from \"../identityRestClient.js\";\nimport {\n CommunicationIdentityCreateOptionalParams,\n CommunicationIdentityCreateResponse,\n CommunicationIdentityDeleteOptionalParams,\n CommunicationIdentityRevokeAccessTokensOptionalParams,\n CommunicationIdentityExchangeTeamsUserAccessTokenOptionalParams,\n CommunicationIdentityExchangeTeamsUserAccessTokenResponse,\n CommunicationIdentityTokenScope,\n CommunicationIdentityIssueAccessTokenOptionalParams,\n CommunicationIdentityIssueAccessTokenResponse\n} from \"../models/index.js\";\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"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,sCAAsC,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
export * from "./communicationIdentityOperations.js";
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,sCAAsC,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.js\";\n"]}
|
package/dist/react-native/generated/src/operationsInterfaces/communicationIdentityOperations.d.ts
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
import { CommunicationIdentityCreateOptionalParams, CommunicationIdentityCreateResponse, CommunicationIdentityDeleteOptionalParams, CommunicationIdentityRevokeAccessTokensOptionalParams, CommunicationIdentityExchangeTeamsUserAccessTokenOptionalParams, CommunicationIdentityExchangeTeamsUserAccessTokenResponse, CommunicationIdentityTokenScope, CommunicationIdentityIssueAccessTokenOptionalParams, CommunicationIdentityIssueAccessTokenResponse } from "../models/index.js";
|
2
|
+
/** Interface representing a CommunicationIdentityOperations. */
|
3
|
+
export interface CommunicationIdentityOperations {
|
4
|
+
/**
|
5
|
+
* Create a new identity, and optionally, an access token.
|
6
|
+
* @param options The options parameters.
|
7
|
+
*/
|
8
|
+
create(options?: CommunicationIdentityCreateOptionalParams): Promise<CommunicationIdentityCreateResponse>;
|
9
|
+
/**
|
10
|
+
* Delete the identity, revoke all tokens for the identity and delete all associated data.
|
11
|
+
* @param id Identifier of the identity to be deleted.
|
12
|
+
* @param options The options parameters.
|
13
|
+
*/
|
14
|
+
delete(id: string, options?: CommunicationIdentityDeleteOptionalParams): Promise<void>;
|
15
|
+
/**
|
16
|
+
* Revoke all access tokens for the specific identity.
|
17
|
+
* @param id Identifier of the identity.
|
18
|
+
* @param options The options parameters.
|
19
|
+
*/
|
20
|
+
revokeAccessTokens(id: string, options?: CommunicationIdentityRevokeAccessTokensOptionalParams): Promise<void>;
|
21
|
+
/**
|
22
|
+
* Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new Communication
|
23
|
+
* Identity access token with a matching expiration time.
|
24
|
+
* @param token Azure AD access token of a Teams User to acquire a new Communication Identity access
|
25
|
+
* token.
|
26
|
+
* @param appId Client ID of an Azure AD application to be verified against the appid claim in the
|
27
|
+
* Azure AD access token.
|
28
|
+
* @param userId Object ID of an Azure AD user (Teams User) to be verified against the oid claim in the
|
29
|
+
* Azure AD access token.
|
30
|
+
* @param options The options parameters.
|
31
|
+
*/
|
32
|
+
exchangeTeamsUserAccessToken(token: string, appId: string, userId: string, options?: CommunicationIdentityExchangeTeamsUserAccessTokenOptionalParams): Promise<CommunicationIdentityExchangeTeamsUserAccessTokenResponse>;
|
33
|
+
/**
|
34
|
+
* Issue a new token for an identity.
|
35
|
+
* @param id Identifier of the identity to issue token for.
|
36
|
+
* @param scopes List of scopes attached to the token.
|
37
|
+
* @param options The options parameters.
|
38
|
+
*/
|
39
|
+
issueAccessToken(id: string, scopes: CommunicationIdentityTokenScope[], options?: CommunicationIdentityIssueAccessTokenOptionalParams): Promise<CommunicationIdentityIssueAccessTokenResponse>;
|
40
|
+
}
|
41
|
+
//# sourceMappingURL=communicationIdentityOperations.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"communicationIdentityOperations.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/communicationIdentityOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,yCAAyC,EACzC,mCAAmC,EACnC,yCAAyC,EACzC,qDAAqD,EACrD,+DAA+D,EAC/D,yDAAyD,EACzD,+BAA+B,EAC/B,mDAAmD,EACnD,6CAA6C,EAC9C,MAAM,oBAAoB,CAAC;AAE5B,gEAAgE;AAChE,MAAM,WAAW,+BAA+B;IAC9C;;;OAGG;IACH,MAAM,CACJ,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC,CAAC;IAChD;;;;OAIG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;OAIG;IACH,kBAAkB,CAChB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,qDAAqD,GAC9D,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;;;;;OAUG;IACH,4BAA4B,CAC1B,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,+DAA+D,GACxE,OAAO,CAAC,yDAAyD,CAAC,CAAC;IACtE;;;;;OAKG;IACH,gBAAgB,CACd,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,+BAA+B,EAAE,EACzC,OAAO,CAAC,EAAE,mDAAmD,GAC5D,OAAO,CAAC,6CAA6C,CAAC,CAAC;CAC3D"}
|
@@ -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 {};
|
9
|
+
//# sourceMappingURL=communicationIdentityOperations.js.map
|
package/dist/react-native/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/index.js\";\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"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,sCAAsC,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
export * from "./communicationIdentityOperations.js";
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,sCAAsC,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.js\";\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/tracing.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,aAAa,6CAIxB,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { createTracingClient } from "@azure/core-tracing";
|
9
|
+
export const tracingClient = createTracingClient({
|
10
|
+
namespace: "Microsoft.Communication",
|
11
|
+
packageName: "@azure/communication-identity",
|
12
|
+
packageVersion: "1.3.2"
|
13
|
+
});
|
14
|
+
//# sourceMappingURL=tracing.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../../../src/generated/src/tracing.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAC;IAC/C,SAAS,EAAE,yBAAyB;IACpC,WAAW,EAAE,+BAA+B;IAC5C,cAAc,EAAE,OAAO;CACxB,CAAC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { createTracingClient } from \"@azure/core-tracing\";\n\nexport const tracingClient = createTracingClient({\n namespace: \"Microsoft.Communication\",\n packageName: \"@azure/communication-identity\",\n packageVersion: \"1.3.2\"\n});\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,kCAAkC,CAAC;AACjD,cAAc,aAAa,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,kCAAkC,CAAC;AACjD,cAAc,aAAa,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./communicationIdentityClient.js\";\nexport * from \"./models.js\";\n"]}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import type { CommonClientOptions, OperationOptions } from "@azure/core-client";
|
2
|
+
import type { CommunicationUserIdentifier } from "@azure/communication-common";
|
3
|
+
/**
|
4
|
+
* Represents the scope of the token.
|
5
|
+
*/
|
6
|
+
export type TokenScope = "chat" | "voip" | "chat.join" | "chat.join.limited" | "voip.join";
|
7
|
+
/**
|
8
|
+
* Client options used to configure the CommunicationIdentity API requests.
|
9
|
+
*/
|
10
|
+
export interface CommunicationIdentityClientOptions extends CommonClientOptions {
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* The access token for a user.
|
14
|
+
*/
|
15
|
+
export interface CommunicationAccessToken {
|
16
|
+
/**
|
17
|
+
* The access token issued for the user.
|
18
|
+
*/
|
19
|
+
token: string;
|
20
|
+
/**
|
21
|
+
* The expiry time of the token.
|
22
|
+
*/
|
23
|
+
expiresOn: Date;
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* The issued token and the user it was issued for.
|
27
|
+
*/
|
28
|
+
export interface CommunicationUserToken extends CommunicationAccessToken {
|
29
|
+
/**
|
30
|
+
* Represents the user the token was issued for
|
31
|
+
*/
|
32
|
+
user: CommunicationUserIdentifier;
|
33
|
+
}
|
34
|
+
/**
|
35
|
+
* Options used to exchange an AAD access token of a Teams user for a new Communication Identity access token.
|
36
|
+
*/
|
37
|
+
export interface GetTokenForTeamsUserOptions extends OperationOptions {
|
38
|
+
/**
|
39
|
+
* Azure Active Directory access token of a Teams user.
|
40
|
+
*/
|
41
|
+
teamsUserAadToken: string;
|
42
|
+
/**
|
43
|
+
* Client ID of an Azure AD application to be verified against the appId claim in the Azure AD access token.
|
44
|
+
*/
|
45
|
+
clientId: string;
|
46
|
+
/**
|
47
|
+
* Object ID of an Azure AD user (Teams User) to be verified against the OID claim in the Azure AD access token.
|
48
|
+
*/
|
49
|
+
userObjectId: string;
|
50
|
+
}
|
51
|
+
/**
|
52
|
+
* Options to create a single user and a token simultaneously.
|
53
|
+
*/
|
54
|
+
export declare interface CreateUserAndTokenOptions extends OperationOptions {
|
55
|
+
/** Optional custom validity period of the token within [60,1440] minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. */
|
56
|
+
tokenExpiresInMinutes?: number;
|
57
|
+
}
|
58
|
+
/**
|
59
|
+
* Options to create a scoped user token.
|
60
|
+
*/
|
61
|
+
export declare interface GetTokenOptions extends OperationOptions {
|
62
|
+
/** Optional custom validity period of the token within [60,1440] minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. */
|
63
|
+
tokenExpiresInMinutes?: number;
|
64
|
+
}
|
65
|
+
//# sourceMappingURL=models.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,mBAAmB,GAAG,WAAW,CAAC;AAE3F;;GAEG;AACH,MAAM,WAAW,kCAAmC,SAAQ,mBAAmB;CAAG;AAElF;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,wBAAwB;IACtE;;OAEG;IACH,IAAI,EAAE,2BAA2B,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,gBAAgB;IACnE;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,yBAA0B,SAAQ,gBAAgB;IACzE,+JAA+J;IAC/J,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,eAAgB,SAAQ,gBAAgB;IAC/D,+JAA+J;IAC/J,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { CommonClientOptions, OperationOptions } from \"@azure/core-client\";\nimport type { CommunicationUserIdentifier } from \"@azure/communication-common\";\n\n/**\n * Represents the scope of the token.\n */\nexport type TokenScope = \"chat\" | \"voip\" | \"chat.join\" | \"chat.join.limited\" | \"voip.join\";\n\n/**\n * Client options used to configure the CommunicationIdentity API requests.\n */\nexport interface CommunicationIdentityClientOptions extends CommonClientOptions {}\n\n/**\n * The access token for a user.\n */\nexport interface CommunicationAccessToken {\n /**\n * The access token issued for the user.\n */\n token: string;\n /**\n * The expiry time of the token.\n */\n expiresOn: Date;\n}\n\n/**\n * The issued token and the user it was issued for.\n */\nexport interface CommunicationUserToken extends CommunicationAccessToken {\n /**\n * Represents the user the token was issued for\n */\n user: CommunicationUserIdentifier;\n}\n\n/**\n * Options used to exchange an AAD access token of a Teams user for a new Communication Identity access token.\n */\nexport interface GetTokenForTeamsUserOptions extends OperationOptions {\n /**\n * Azure Active Directory access token of a Teams user.\n */\n teamsUserAadToken: string;\n\n /**\n * Client ID of an Azure AD application to be verified against the appId claim in the Azure AD access token.\n */\n clientId: string;\n\n /**\n * Object ID of an Azure AD user (Teams User) to be verified against the OID claim in the Azure AD access token.\n */\n userObjectId: string;\n}\n\n/**\n * Options to create a single user and a token simultaneously.\n */\nexport declare interface CreateUserAndTokenOptions extends OperationOptions {\n /** Optional custom validity period of the token within [60,1440] minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. */\n tokenExpiresInMinutes?: number;\n}\n\n/**\n * Options to create a scoped user token.\n */\nexport declare interface GetTokenOptions extends OperationOptions {\n /** Optional custom validity period of the token within [60,1440] minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. */\n tokenExpiresInMinutes?: number;\n}\n"]}
|
package/package.json
CHANGED
@@ -1,29 +1,28 @@
|
|
1
1
|
{
|
2
2
|
"name": "@azure/communication-identity",
|
3
|
-
"version": "1.3.2-alpha.
|
3
|
+
"version": "1.3.2-alpha.20241203.1",
|
4
4
|
"description": "SDK for Azure Communication service which facilitates user token administration.",
|
5
5
|
"sdk-type": "client",
|
6
|
-
"main": "dist/index.js",
|
7
|
-
"module": "dist
|
8
|
-
"types": "
|
6
|
+
"main": "./dist/commonjs/index.js",
|
7
|
+
"module": "./dist/esm/index.js",
|
8
|
+
"types": "./dist/commonjs/index.d.ts",
|
9
9
|
"scripts": {
|
10
|
-
"build": "npm run clean &&
|
11
|
-
"build:browser": "
|
12
|
-
"build:
|
13
|
-
"build:node": "tsc -p . && dev-tool run bundle",
|
10
|
+
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
|
11
|
+
"build:browser": "dev-tool run build-package && dev-tool run bundle",
|
12
|
+
"build:node": "dev-tool run build-package && dev-tool run bundle",
|
14
13
|
"build:samples": "echo Obsolete.",
|
15
|
-
"build:test": "
|
14
|
+
"build:test": "dev-tool run build-package && dev-tool run bundle",
|
16
15
|
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
17
16
|
"clean": "dev-tool run vendored rimraf --glob dist dist-* temp types *.tgz *.log",
|
18
17
|
"execute:js-samples": "dev-tool samples run dist-samples/javascript",
|
19
18
|
"execute:samples": "dev-tool samples run samples-dev",
|
20
19
|
"execute:ts-samples": "dev-tool samples run dist-samples/typescript/dist/dist-samples/typescript/src/",
|
21
|
-
"extract-api": "
|
20
|
+
"extract-api": "dev-tool run build-package && dev-tool run extract-api",
|
22
21
|
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
23
22
|
"generate:client": "autorest --typescript ./swagger/README.md && rushx format",
|
24
23
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
25
|
-
"integration-test:browser": "dev-tool run test:browser",
|
26
|
-
"integration-test:node": "dev-tool run test:
|
24
|
+
"integration-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
|
25
|
+
"integration-test:node": "dev-tool run test:vitest",
|
27
26
|
"lint": "eslint package.json api-extractor.json README.md src test",
|
28
27
|
"lint:fix": "eslint package.json api-extractor.json README.md src test --fix --fix-type [problem,suggestion]",
|
29
28
|
"pack": "npm pack 2>&1",
|
@@ -32,8 +31,8 @@
|
|
32
31
|
"test:node": "npm run build:test && npm run unit-test:node && npm run integration-test:node",
|
33
32
|
"test:watch": "npm run test -- --watch --reporter min",
|
34
33
|
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
35
|
-
"unit-test:browser": "dev-tool run test:browser",
|
36
|
-
"unit-test:node": "dev-tool run test:
|
34
|
+
"unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
|
35
|
+
"unit-test:node": "dev-tool run test:vitest",
|
37
36
|
"update-snippets": "echo skipped"
|
38
37
|
},
|
39
38
|
"//metadata": {
|
@@ -71,8 +70,6 @@
|
|
71
70
|
},
|
72
71
|
"files": [
|
73
72
|
"dist/",
|
74
|
-
"dist-esm/src/",
|
75
|
-
"types/communication-identity.d.ts",
|
76
73
|
"README.md",
|
77
74
|
"LICENSE"
|
78
75
|
],
|
@@ -94,49 +91,72 @@
|
|
94
91
|
"sideEffects": false,
|
95
92
|
"prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
|
96
93
|
"dependencies": {
|
97
|
-
"@azure/abort-controller": "^2.
|
94
|
+
"@azure/abort-controller": "^2.1.2",
|
98
95
|
"@azure/communication-common": "^2.3.1",
|
99
|
-
"@azure/core-auth": "^1.
|
100
|
-
"@azure/core-client": "^1.
|
96
|
+
"@azure/core-auth": "^1.9.0",
|
97
|
+
"@azure/core-client": "^1.9.2",
|
101
98
|
"@azure/core-lro": "^2.2.0",
|
102
|
-
"@azure/core-paging": "^1.
|
103
|
-
"@azure/core-rest-pipeline": "^1.
|
104
|
-
"@azure/core-tracing": "^1.
|
105
|
-
"@azure/logger": "^1.
|
99
|
+
"@azure/core-paging": "^1.6.2",
|
100
|
+
"@azure/core-rest-pipeline": "^1.18.0",
|
101
|
+
"@azure/core-tracing": "^1.2.0",
|
102
|
+
"@azure/logger": "^1.1.4",
|
106
103
|
"events": "^3.0.0",
|
107
104
|
"tslib": "^2.2.0"
|
108
105
|
},
|
109
106
|
"devDependencies": {
|
110
|
-
"@azure-tools/test-credential": "^
|
111
|
-
"@azure-tools/test-recorder": "
|
112
|
-
"@azure-tools/test-utils": "
|
107
|
+
"@azure-tools/test-credential": "^2.0.0",
|
108
|
+
"@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
|
109
|
+
"@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
|
113
110
|
"@azure/core-util": "^1.6.1",
|
114
111
|
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
|
115
112
|
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
|
116
|
-
"@azure/identity": "^4.0
|
117
|
-
"@azure/msal-node": "^2.
|
118
|
-
"@types/chai": "^4.1.6",
|
119
|
-
"@types/mocha": "^10.0.0",
|
113
|
+
"@azure/identity": "^4.5.0",
|
114
|
+
"@azure/msal-node": "^2.16.1",
|
120
115
|
"@types/node": "^18.0.0",
|
121
|
-
"@
|
122
|
-
"
|
116
|
+
"@vitest/browser": "^2.1.5",
|
117
|
+
"@vitest/coverage-istanbul": "^2.1.5",
|
123
118
|
"dotenv": "^16.0.0",
|
124
119
|
"eslint": "^9.9.0",
|
125
|
-
"
|
126
|
-
"
|
127
|
-
"
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
"
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
"
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
"
|
140
|
-
|
120
|
+
"playwright": "^1.48.2",
|
121
|
+
"typescript": "~5.6.2",
|
122
|
+
"vitest": "^2.1.5"
|
123
|
+
},
|
124
|
+
"type": "module",
|
125
|
+
"tshy": {
|
126
|
+
"exports": {
|
127
|
+
"./package.json": "./package.json",
|
128
|
+
".": "./src/index.ts"
|
129
|
+
},
|
130
|
+
"dialects": [
|
131
|
+
"esm",
|
132
|
+
"commonjs"
|
133
|
+
],
|
134
|
+
"esmDialects": [
|
135
|
+
"browser",
|
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
|
+
}
|
141
161
|
}
|
142
162
|
}
|