@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,221 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
export const CommunicationIdentityCreateRequest = {
|
9
|
+
type: {
|
10
|
+
name: "Composite",
|
11
|
+
className: "CommunicationIdentityCreateRequest",
|
12
|
+
modelProperties: {
|
13
|
+
createTokenWithScopes: {
|
14
|
+
serializedName: "createTokenWithScopes",
|
15
|
+
type: {
|
16
|
+
name: "Sequence",
|
17
|
+
element: {
|
18
|
+
type: {
|
19
|
+
name: "String"
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
},
|
24
|
+
expiresInMinutes: {
|
25
|
+
defaultValue: 1440,
|
26
|
+
constraints: {
|
27
|
+
InclusiveMaximum: 1440,
|
28
|
+
InclusiveMinimum: 60
|
29
|
+
},
|
30
|
+
serializedName: "expiresInMinutes",
|
31
|
+
type: {
|
32
|
+
name: "Number"
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
};
|
38
|
+
export const CommunicationIdentityAccessTokenResult = {
|
39
|
+
type: {
|
40
|
+
name: "Composite",
|
41
|
+
className: "CommunicationIdentityAccessTokenResult",
|
42
|
+
modelProperties: {
|
43
|
+
identity: {
|
44
|
+
serializedName: "identity",
|
45
|
+
type: {
|
46
|
+
name: "Composite",
|
47
|
+
className: "CommunicationIdentity"
|
48
|
+
}
|
49
|
+
},
|
50
|
+
accessToken: {
|
51
|
+
serializedName: "accessToken",
|
52
|
+
type: {
|
53
|
+
name: "Composite",
|
54
|
+
className: "CommunicationIdentityAccessToken"
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
};
|
60
|
+
export const CommunicationIdentity = {
|
61
|
+
type: {
|
62
|
+
name: "Composite",
|
63
|
+
className: "CommunicationIdentity",
|
64
|
+
modelProperties: {
|
65
|
+
id: {
|
66
|
+
serializedName: "id",
|
67
|
+
required: true,
|
68
|
+
type: {
|
69
|
+
name: "String"
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
};
|
75
|
+
export const CommunicationIdentityAccessToken = {
|
76
|
+
type: {
|
77
|
+
name: "Composite",
|
78
|
+
className: "CommunicationIdentityAccessToken",
|
79
|
+
modelProperties: {
|
80
|
+
token: {
|
81
|
+
serializedName: "token",
|
82
|
+
required: true,
|
83
|
+
type: {
|
84
|
+
name: "String"
|
85
|
+
}
|
86
|
+
},
|
87
|
+
expiresOn: {
|
88
|
+
serializedName: "expiresOn",
|
89
|
+
required: true,
|
90
|
+
type: {
|
91
|
+
name: "DateTime"
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
};
|
97
|
+
export const CommunicationErrorResponse = {
|
98
|
+
type: {
|
99
|
+
name: "Composite",
|
100
|
+
className: "CommunicationErrorResponse",
|
101
|
+
modelProperties: {
|
102
|
+
error: {
|
103
|
+
serializedName: "error",
|
104
|
+
type: {
|
105
|
+
name: "Composite",
|
106
|
+
className: "CommunicationError"
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
};
|
112
|
+
export const CommunicationError = {
|
113
|
+
type: {
|
114
|
+
name: "Composite",
|
115
|
+
className: "CommunicationError",
|
116
|
+
modelProperties: {
|
117
|
+
code: {
|
118
|
+
serializedName: "code",
|
119
|
+
required: true,
|
120
|
+
type: {
|
121
|
+
name: "String"
|
122
|
+
}
|
123
|
+
},
|
124
|
+
message: {
|
125
|
+
serializedName: "message",
|
126
|
+
required: true,
|
127
|
+
type: {
|
128
|
+
name: "String"
|
129
|
+
}
|
130
|
+
},
|
131
|
+
target: {
|
132
|
+
serializedName: "target",
|
133
|
+
readOnly: true,
|
134
|
+
type: {
|
135
|
+
name: "String"
|
136
|
+
}
|
137
|
+
},
|
138
|
+
details: {
|
139
|
+
serializedName: "details",
|
140
|
+
readOnly: true,
|
141
|
+
type: {
|
142
|
+
name: "Sequence",
|
143
|
+
element: {
|
144
|
+
type: {
|
145
|
+
name: "Composite",
|
146
|
+
className: "CommunicationError"
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
},
|
151
|
+
innerError: {
|
152
|
+
serializedName: "innererror",
|
153
|
+
type: {
|
154
|
+
name: "Composite",
|
155
|
+
className: "CommunicationError"
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
}
|
160
|
+
};
|
161
|
+
export const TeamsUserExchangeTokenRequest = {
|
162
|
+
type: {
|
163
|
+
name: "Composite",
|
164
|
+
className: "TeamsUserExchangeTokenRequest",
|
165
|
+
modelProperties: {
|
166
|
+
token: {
|
167
|
+
serializedName: "token",
|
168
|
+
required: true,
|
169
|
+
type: {
|
170
|
+
name: "String"
|
171
|
+
}
|
172
|
+
},
|
173
|
+
appId: {
|
174
|
+
serializedName: "appId",
|
175
|
+
required: true,
|
176
|
+
type: {
|
177
|
+
name: "String"
|
178
|
+
}
|
179
|
+
},
|
180
|
+
userId: {
|
181
|
+
serializedName: "userId",
|
182
|
+
required: true,
|
183
|
+
type: {
|
184
|
+
name: "String"
|
185
|
+
}
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
189
|
+
};
|
190
|
+
export const CommunicationIdentityAccessTokenRequest = {
|
191
|
+
type: {
|
192
|
+
name: "Composite",
|
193
|
+
className: "CommunicationIdentityAccessTokenRequest",
|
194
|
+
modelProperties: {
|
195
|
+
scopes: {
|
196
|
+
serializedName: "scopes",
|
197
|
+
required: true,
|
198
|
+
type: {
|
199
|
+
name: "Sequence",
|
200
|
+
element: {
|
201
|
+
type: {
|
202
|
+
name: "String"
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}
|
206
|
+
},
|
207
|
+
expiresInMinutes: {
|
208
|
+
defaultValue: 1440,
|
209
|
+
constraints: {
|
210
|
+
InclusiveMaximum: 1440,
|
211
|
+
InclusiveMinimum: 60
|
212
|
+
},
|
213
|
+
serializedName: "expiresInMinutes",
|
214
|
+
type: {
|
215
|
+
name: "Number"
|
216
|
+
}
|
217
|
+
}
|
218
|
+
}
|
219
|
+
}
|
220
|
+
};
|
221
|
+
//# sourceMappingURL=mappers.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,kCAAkC,GAA+B;IAC5E,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,oCAAoC;QAC/C,eAAe,EAAE;YACf,qBAAqB,EAAE;gBACrB,cAAc,EAA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ed 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"]}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { OperationParameter, OperationURLParameter, OperationQueryParameter } from "@azure/core-client";
|
2
|
+
export declare const contentType: OperationParameter;
|
3
|
+
export declare const accept: OperationParameter;
|
4
|
+
export declare const createTokenWithScopes: OperationParameter;
|
5
|
+
export declare const expiresInMinutes: OperationParameter;
|
6
|
+
export declare const endpoint: OperationURLParameter;
|
7
|
+
export declare const apiVersion: OperationQueryParameter;
|
8
|
+
export declare const id: OperationURLParameter;
|
9
|
+
export declare const token: OperationParameter;
|
10
|
+
export declare const appId: OperationParameter;
|
11
|
+
export declare const userId: OperationParameter;
|
12
|
+
export declare const scopes: OperationParameter;
|
13
|
+
export declare const expiresInMinutes1: OperationParameter;
|
14
|
+
//# sourceMappingURL=parameters.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAO5B,eAAO,MAAM,WAAW,EAAE,kBAUzB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,kBAUpB,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,kBAGnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,kBAG9B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,qBAUtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,uBAUxB,CAAC;AAEF,eAAO,MAAM,EAAE,EAAE,qBAShB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,kBAGpB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,kBAGpB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,kBAG/B,CAAC"}
|
@@ -0,0 +1,91 @@
|
|
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 { CommunicationIdentityCreateRequest as CommunicationIdentityCreateRequestMapper, TeamsUserExchangeTokenRequest as TeamsUserExchangeTokenRequestMapper, CommunicationIdentityAccessTokenRequest as CommunicationIdentityAccessTokenRequestMapper } from "../models/mappers.js";
|
9
|
+
export const contentType = {
|
10
|
+
parameterPath: ["options", "contentType"],
|
11
|
+
mapper: {
|
12
|
+
defaultValue: "application/json",
|
13
|
+
isConstant: true,
|
14
|
+
serializedName: "Content-Type",
|
15
|
+
type: {
|
16
|
+
name: "String"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
};
|
20
|
+
export const accept = {
|
21
|
+
parameterPath: "accept",
|
22
|
+
mapper: {
|
23
|
+
defaultValue: "application/json",
|
24
|
+
isConstant: true,
|
25
|
+
serializedName: "Accept",
|
26
|
+
type: {
|
27
|
+
name: "String"
|
28
|
+
}
|
29
|
+
}
|
30
|
+
};
|
31
|
+
export const createTokenWithScopes = {
|
32
|
+
parameterPath: ["options", "createTokenWithScopes"],
|
33
|
+
mapper: CommunicationIdentityCreateRequestMapper
|
34
|
+
};
|
35
|
+
export const expiresInMinutes = {
|
36
|
+
parameterPath: ["options", "expiresInMinutes"],
|
37
|
+
mapper: CommunicationIdentityCreateRequestMapper
|
38
|
+
};
|
39
|
+
export const endpoint = {
|
40
|
+
parameterPath: "endpoint",
|
41
|
+
mapper: {
|
42
|
+
serializedName: "endpoint",
|
43
|
+
required: true,
|
44
|
+
type: {
|
45
|
+
name: "String"
|
46
|
+
}
|
47
|
+
},
|
48
|
+
skipEncoding: true
|
49
|
+
};
|
50
|
+
export const apiVersion = {
|
51
|
+
parameterPath: "apiVersion",
|
52
|
+
mapper: {
|
53
|
+
defaultValue: "2023-10-01",
|
54
|
+
isConstant: true,
|
55
|
+
serializedName: "api-version",
|
56
|
+
type: {
|
57
|
+
name: "String"
|
58
|
+
}
|
59
|
+
}
|
60
|
+
};
|
61
|
+
export const id = {
|
62
|
+
parameterPath: "id",
|
63
|
+
mapper: {
|
64
|
+
serializedName: "id",
|
65
|
+
required: true,
|
66
|
+
type: {
|
67
|
+
name: "String"
|
68
|
+
}
|
69
|
+
}
|
70
|
+
};
|
71
|
+
export const token = {
|
72
|
+
parameterPath: "token",
|
73
|
+
mapper: TeamsUserExchangeTokenRequestMapper
|
74
|
+
};
|
75
|
+
export const appId = {
|
76
|
+
parameterPath: "appId",
|
77
|
+
mapper: TeamsUserExchangeTokenRequestMapper
|
78
|
+
};
|
79
|
+
export const userId = {
|
80
|
+
parameterPath: "userId",
|
81
|
+
mapper: TeamsUserExchangeTokenRequestMapper
|
82
|
+
};
|
83
|
+
export const scopes = {
|
84
|
+
parameterPath: "scopes",
|
85
|
+
mapper: CommunicationIdentityAccessTokenRequestMapper
|
86
|
+
};
|
87
|
+
export const expiresInMinutes1 = {
|
88
|
+
parameterPath: ["options", "expiresInMinutes"],
|
89
|
+
mapper: CommunicationIdentityAccessTokenRequestMapper
|
90
|
+
};
|
91
|
+
//# sourceMappingURL=parameters.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,kCAAkC,IAAI,wCAAwC,EAC9E,6BAA6B,IAAI,mCAAmC,EACpE,uCAAuC,IAAI,6CAA6C,EACzF,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;Q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AM,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.js\";\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"]}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { CommunicationIdentityOperations } from "../operationsInterfaces/index.js";
|
2
|
+
import { IdentityRestClient } from "../identityRestClient.js";
|
3
|
+
import { CommunicationIdentityCreateOptionalParams, CommunicationIdentityCreateResponse, CommunicationIdentityDeleteOptionalParams, CommunicationIdentityRevokeAccessTokensOptionalParams, CommunicationIdentityExchangeTeamsUserAccessTokenOptionalParams, CommunicationIdentityExchangeTeamsUserAccessTokenResponse, CommunicationIdentityTokenScope, CommunicationIdentityIssueAccessTokenOptionalParams, CommunicationIdentityIssueAccessTokenResponse } from "../models/index.js";
|
4
|
+
/** Class containing CommunicationIdentityOperations operations. */
|
5
|
+
export declare class CommunicationIdentityOperationsImpl implements CommunicationIdentityOperations {
|
6
|
+
private readonly client;
|
7
|
+
/**
|
8
|
+
* Initialize a new instance of the class CommunicationIdentityOperations class.
|
9
|
+
* @param client Reference to the service client
|
10
|
+
*/
|
11
|
+
constructor(client: IdentityRestClient);
|
12
|
+
/**
|
13
|
+
* Create a new identity, and optionally, an access token.
|
14
|
+
* @param options The options parameters.
|
15
|
+
*/
|
16
|
+
create(options?: CommunicationIdentityCreateOptionalParams): Promise<CommunicationIdentityCreateResponse>;
|
17
|
+
/**
|
18
|
+
* Delete the identity, revoke all tokens for the identity and delete all associated data.
|
19
|
+
* @param id Identifier of the identity to be deleted.
|
20
|
+
* @param options The options parameters.
|
21
|
+
*/
|
22
|
+
delete(id: string, options?: CommunicationIdentityDeleteOptionalParams): Promise<void>;
|
23
|
+
/**
|
24
|
+
* Revoke all access tokens for the specific identity.
|
25
|
+
* @param id Identifier of the identity.
|
26
|
+
* @param options The options parameters.
|
27
|
+
*/
|
28
|
+
revokeAccessTokens(id: string, options?: CommunicationIdentityRevokeAccessTokensOptionalParams): Promise<void>;
|
29
|
+
/**
|
30
|
+
* Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new Communication
|
31
|
+
* Identity access token with a matching expiration time.
|
32
|
+
* @param token Azure AD access token of a Teams User to acquire a new Communication Identity access
|
33
|
+
* token.
|
34
|
+
* @param appId Client ID of an Azure AD application to be verified against the appid claim in the
|
35
|
+
* Azure AD access token.
|
36
|
+
* @param userId Object ID of an Azure AD user (Teams User) to be verified against the oid claim in the
|
37
|
+
* Azure AD access token.
|
38
|
+
* @param options The options parameters.
|
39
|
+
*/
|
40
|
+
exchangeTeamsUserAccessToken(token: string, appId: string, userId: string, options?: CommunicationIdentityExchangeTeamsUserAccessTokenOptionalParams): Promise<CommunicationIdentityExchangeTeamsUserAccessTokenResponse>;
|
41
|
+
/**
|
42
|
+
* Issue a new token for an identity.
|
43
|
+
* @param id Identifier of the identity to issue token for.
|
44
|
+
* @param scopes List of scopes attached to the token.
|
45
|
+
* @param options The options parameters.
|
46
|
+
*/
|
47
|
+
issueAccessToken(id: string, scopes: CommunicationIdentityTokenScope[], options?: CommunicationIdentityIssueAccessTokenOptionalParams): Promise<CommunicationIdentityIssueAccessTokenResponse>;
|
48
|
+
}
|
49
|
+
//# sourceMappingURL=communicationIdentityOperations.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"communicationIdentityOperations.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/communicationIdentityOperations.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AAInF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,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,mEAAmE;AACnE,qBAAa,mCACX,YAAW,+BAA+B;IAC1C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;OAGG;gBACS,MAAM,EAAE,kBAAkB;IAItC;;;OAGG;IACG,MAAM,CACV,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC;IAa/C;;;;OAIG;IACG,MAAM,CACV,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,IAAI,CAAC;IAahB;;;;OAIG;IACG,kBAAkB,CACtB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,qDAAqD,GAC9D,OAAO,CAAC,IAAI,CAAC;IAahB;;;;;;;;;;OAUG;IACG,4BAA4B,CAChC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,+DAA+D,GACxE,OAAO,CAAC,yDAAyD,CAAC;IAarE;;;;;OAKG;IACG,gBAAgB,CACpB,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,+BAA+B,EAAE,EACzC,OAAO,CAAC,EAAE,mDAAmD,GAC5D,OAAO,CAAC,6CAA6C,CAAC;CAY1D"}
|
@@ -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":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MA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,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,WAAW,EAAE;QACX,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE;QACzE,MAAM,kCAAO,OAAO,CAAC,6BAA6B,KAAE,QAAQ,EAAE,IAAI,GAAE;KACrE;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,oCAAoC;IAC1C,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gCAAgC;SACrD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,WAAW,EAAE;QACX,aAAa,EAAE;YACb,MAAM,EAAE,CAAC,QAAQ,CAAC;YAClB,gBAAgB,EAAE,CAAC,SAAS,EAAE,kBAAkB,CAAC;SAClD;QACD,MAAM,kCACD,OAAO,CAAC,uCAAuC,KAClD,QAAQ,EAAE,IAAI,GACf;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,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.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"]}
|