/
index.ts
107 lines (97 loc) · 2.29 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import * as coreHttp from "@azure/core-http";
/**
* A communication identity.
*/
export interface CommunicationIdentity {
/**
* Identifier of the identity.
*/
id: string;
}
/**
* An interface representing CommunicationIdentityUpdateRequest.
*/
export interface CommunicationIdentityUpdateRequest {
/**
* All tokens that are issued prior to this time will be revoked.
*/
tokensValidFrom?: Date;
}
/**
* An interface representing CommunicationTokenRequest.
*/
export interface CommunicationTokenRequest {
/**
* List of scopes attached to the token.
*/
scopes: string[];
}
/**
* An interface representing CommunicationIdentityToken.
*/
export interface CommunicationIdentityToken {
/**
* Identifier of the identity owning the token.
*/
id: string;
/**
* The token issued for the identity.
*/
token: string;
/**
* The expiry time of the token.
*/
expiresOn: Date;
}
/**
* Optional Parameters.
*/
export interface CommunicationIdentityUpdateOptionalParams extends coreHttp.RequestOptionsBase {
/**
* All tokens that are issued prior to this time will be revoked.
*/
tokensValidFrom?: Date;
}
/**
* Contains response data for the create operation.
*/
export type CommunicationIdentityCreateResponse = CommunicationIdentity & {
/**
* The underlying HTTP response.
*/
_response: coreHttp.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: CommunicationIdentity;
};
};
/**
* Contains response data for the issueToken operation.
*/
export type CommunicationIdentityIssueTokenResponse = CommunicationIdentityToken & {
/**
* The underlying HTTP response.
*/
_response: coreHttp.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: CommunicationIdentityToken;
};
};