@azure-rest/communication-messages 2.1.0-alpha.20250411.1 → 2.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -6
- package/dist/browser/conversationEventListener.d.ts +19 -0
- package/dist/browser/conversationEventListener.d.ts.map +1 -0
- package/dist/browser/conversationEventListener.js +93 -0
- package/dist/browser/conversationEventListener.js.map +1 -0
- package/dist/browser/generated/src/clientDefinitions.d.ts +54 -2
- package/dist/browser/generated/src/clientDefinitions.d.ts.map +1 -1
- package/dist/browser/generated/src/clientDefinitions.js.map +1 -1
- package/dist/browser/generated/src/isUnexpected.d.ts +11 -1
- package/dist/browser/generated/src/isUnexpected.d.ts.map +1 -1
- package/dist/browser/generated/src/isUnexpected.js +10 -0
- package/dist/browser/generated/src/isUnexpected.js.map +1 -1
- package/dist/browser/generated/src/messagesServiceClient.d.ts.map +1 -1
- package/dist/browser/generated/src/messagesServiceClient.js +12 -2
- package/dist/browser/generated/src/messagesServiceClient.js.map +1 -1
- package/dist/browser/generated/src/models.d.ts +160 -2
- package/dist/browser/generated/src/models.d.ts.map +1 -1
- package/dist/browser/generated/src/models.js.map +1 -1
- package/dist/browser/generated/src/outputModels.d.ts +309 -0
- package/dist/browser/generated/src/outputModels.d.ts.map +1 -1
- package/dist/browser/generated/src/outputModels.js.map +1 -1
- package/dist/browser/generated/src/parameters.d.ts +134 -2
- package/dist/browser/generated/src/parameters.d.ts.map +1 -1
- package/dist/browser/generated/src/parameters.js.map +1 -1
- package/dist/browser/generated/src/responses.d.ts +196 -1
- package/dist/browser/generated/src/responses.d.ts.map +1 -1
- package/dist/browser/generated/src/responses.js.map +1 -1
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +2 -0
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/messagesServiceClient.js +4 -2
- package/dist/browser/messagesServiceClient.js.map +1 -1
- package/dist/browser/signaling/events.d.ts +4 -0
- package/dist/browser/signaling/events.d.ts.map +1 -0
- package/dist/browser/signaling/events.js +4 -0
- package/dist/browser/signaling/events.js.map +1 -0
- package/dist/browser/signaling/signalingClient-browser.d.mts.map +1 -0
- package/dist/browser/signaling/signalingClient-browser.mjs.map +1 -0
- package/dist/browser/signaling/signalingClient.d.ts +6 -0
- package/dist/browser/signaling/signalingClient.js +13 -0
- package/dist/browser/signaling/signalingClientOptions.d.ts +6 -0
- package/dist/browser/signaling/signalingClientOptions.d.ts.map +1 -0
- package/dist/browser/signaling/signalingClientOptions.js +2 -0
- package/dist/browser/signaling/signalingClientOptions.js.map +1 -0
- package/dist/commonjs/conversationEventListener.d.ts +19 -0
- package/dist/commonjs/conversationEventListener.d.ts.map +1 -0
- package/dist/commonjs/conversationEventListener.js +96 -0
- package/dist/commonjs/conversationEventListener.js.map +1 -0
- package/dist/commonjs/generated/src/clientDefinitions.d.ts +54 -2
- package/dist/commonjs/generated/src/clientDefinitions.d.ts.map +1 -1
- package/dist/commonjs/generated/src/clientDefinitions.js.map +1 -1
- package/dist/commonjs/generated/src/isUnexpected.d.ts +11 -1
- package/dist/commonjs/generated/src/isUnexpected.d.ts.map +1 -1
- package/dist/commonjs/generated/src/isUnexpected.js +10 -0
- package/dist/commonjs/generated/src/isUnexpected.js.map +1 -1
- package/dist/commonjs/generated/src/messagesServiceClient.d.ts.map +1 -1
- package/dist/commonjs/generated/src/messagesServiceClient.js +12 -2
- package/dist/commonjs/generated/src/messagesServiceClient.js.map +1 -1
- package/dist/commonjs/generated/src/models.d.ts +160 -2
- package/dist/commonjs/generated/src/models.d.ts.map +1 -1
- package/dist/commonjs/generated/src/models.js.map +1 -1
- package/dist/commonjs/generated/src/outputModels.d.ts +309 -0
- package/dist/commonjs/generated/src/outputModels.d.ts.map +1 -1
- package/dist/commonjs/generated/src/outputModels.js.map +1 -1
- package/dist/commonjs/generated/src/parameters.d.ts +134 -2
- package/dist/commonjs/generated/src/parameters.d.ts.map +1 -1
- package/dist/commonjs/generated/src/parameters.js.map +1 -1
- package/dist/commonjs/generated/src/responses.d.ts +196 -1
- package/dist/commonjs/generated/src/responses.d.ts.map +1 -1
- package/dist/commonjs/generated/src/responses.js.map +1 -1
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +2 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/messagesServiceClient.js +4 -2
- package/dist/commonjs/messagesServiceClient.js.map +1 -1
- package/dist/commonjs/signaling/events.d.ts +4 -0
- package/dist/commonjs/signaling/events.d.ts.map +1 -0
- package/dist/commonjs/signaling/events.js +5 -0
- package/dist/commonjs/signaling/events.js.map +1 -0
- package/dist/commonjs/signaling/signalingClient.d.ts +6 -0
- package/dist/commonjs/signaling/signalingClient.d.ts.map +1 -0
- package/dist/commonjs/signaling/signalingClient.js +11 -0
- package/dist/commonjs/signaling/signalingClient.js.map +1 -0
- package/dist/commonjs/signaling/signalingClientOptions.d.ts +6 -0
- package/dist/commonjs/signaling/signalingClientOptions.d.ts.map +1 -0
- package/dist/commonjs/signaling/signalingClientOptions.js +3 -0
- package/dist/commonjs/signaling/signalingClientOptions.js.map +1 -0
- package/dist/esm/conversationEventListener.d.ts +19 -0
- package/dist/esm/conversationEventListener.d.ts.map +1 -0
- package/dist/esm/conversationEventListener.js +93 -0
- package/dist/esm/conversationEventListener.js.map +1 -0
- package/dist/esm/generated/src/clientDefinitions.d.ts +54 -2
- package/dist/esm/generated/src/clientDefinitions.d.ts.map +1 -1
- package/dist/esm/generated/src/clientDefinitions.js.map +1 -1
- package/dist/esm/generated/src/isUnexpected.d.ts +11 -1
- package/dist/esm/generated/src/isUnexpected.d.ts.map +1 -1
- package/dist/esm/generated/src/isUnexpected.js +10 -0
- package/dist/esm/generated/src/isUnexpected.js.map +1 -1
- package/dist/esm/generated/src/messagesServiceClient.d.ts.map +1 -1
- package/dist/esm/generated/src/messagesServiceClient.js +12 -2
- package/dist/esm/generated/src/messagesServiceClient.js.map +1 -1
- package/dist/esm/generated/src/models.d.ts +160 -2
- package/dist/esm/generated/src/models.d.ts.map +1 -1
- package/dist/esm/generated/src/models.js.map +1 -1
- package/dist/esm/generated/src/outputModels.d.ts +309 -0
- package/dist/esm/generated/src/outputModels.d.ts.map +1 -1
- package/dist/esm/generated/src/outputModels.js.map +1 -1
- package/dist/esm/generated/src/parameters.d.ts +134 -2
- package/dist/esm/generated/src/parameters.d.ts.map +1 -1
- package/dist/esm/generated/src/parameters.js.map +1 -1
- package/dist/esm/generated/src/responses.d.ts +196 -1
- package/dist/esm/generated/src/responses.d.ts.map +1 -1
- package/dist/esm/generated/src/responses.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/messagesServiceClient.js +4 -2
- package/dist/esm/messagesServiceClient.js.map +1 -1
- package/dist/esm/signaling/events.d.ts +4 -0
- package/dist/esm/signaling/events.d.ts.map +1 -0
- package/dist/esm/signaling/events.js +4 -0
- package/dist/esm/signaling/events.js.map +1 -0
- package/dist/esm/signaling/signalingClient.d.ts +6 -0
- package/dist/esm/signaling/signalingClient.d.ts.map +1 -0
- package/dist/esm/signaling/signalingClient.js +7 -0
- package/dist/esm/signaling/signalingClient.js.map +1 -0
- package/dist/esm/signaling/signalingClientOptions.d.ts +6 -0
- package/dist/esm/signaling/signalingClientOptions.d.ts.map +1 -0
- package/dist/esm/signaling/signalingClientOptions.js +2 -0
- package/dist/esm/signaling/signalingClientOptions.js.map +1 -0
- package/dist/react-native/conversationEventListener.d.ts +19 -0
- package/dist/react-native/conversationEventListener.d.ts.map +1 -0
- package/dist/react-native/conversationEventListener.js +93 -0
- package/dist/react-native/conversationEventListener.js.map +1 -0
- package/dist/react-native/generated/src/clientDefinitions.d.ts +54 -2
- package/dist/react-native/generated/src/clientDefinitions.d.ts.map +1 -1
- package/dist/react-native/generated/src/clientDefinitions.js.map +1 -1
- package/dist/react-native/generated/src/isUnexpected.d.ts +11 -1
- package/dist/react-native/generated/src/isUnexpected.d.ts.map +1 -1
- package/dist/react-native/generated/src/isUnexpected.js +10 -0
- package/dist/react-native/generated/src/isUnexpected.js.map +1 -1
- package/dist/react-native/generated/src/messagesServiceClient.d.ts.map +1 -1
- package/dist/react-native/generated/src/messagesServiceClient.js +12 -2
- package/dist/react-native/generated/src/messagesServiceClient.js.map +1 -1
- package/dist/react-native/generated/src/models.d.ts +160 -2
- package/dist/react-native/generated/src/models.d.ts.map +1 -1
- package/dist/react-native/generated/src/models.js.map +1 -1
- package/dist/react-native/generated/src/outputModels.d.ts +309 -0
- package/dist/react-native/generated/src/outputModels.d.ts.map +1 -1
- package/dist/react-native/generated/src/outputModels.js.map +1 -1
- package/dist/react-native/generated/src/parameters.d.ts +134 -2
- package/dist/react-native/generated/src/parameters.d.ts.map +1 -1
- package/dist/react-native/generated/src/parameters.js.map +1 -1
- package/dist/react-native/generated/src/responses.d.ts +196 -1
- package/dist/react-native/generated/src/responses.d.ts.map +1 -1
- package/dist/react-native/generated/src/responses.js.map +1 -1
- package/dist/react-native/index.d.ts +2 -0
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +2 -0
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/messagesServiceClient.js +4 -2
- package/dist/react-native/messagesServiceClient.js.map +1 -1
- package/dist/react-native/signaling/events.d.ts +4 -0
- package/dist/react-native/signaling/events.d.ts.map +1 -0
- package/dist/react-native/signaling/events.js +4 -0
- package/dist/react-native/signaling/events.js.map +1 -0
- package/dist/react-native/signaling/signalingClient-react-native.d.mts.map +1 -0
- package/dist/react-native/signaling/signalingClient-react-native.mjs.map +1 -0
- package/dist/react-native/signaling/signalingClient.d.ts +6 -0
- package/dist/react-native/signaling/signalingClient.js +13 -0
- package/dist/react-native/signaling/signalingClientOptions.d.ts +6 -0
- package/dist/react-native/signaling/signalingClientOptions.d.ts.map +1 -0
- package/dist/react-native/signaling/signalingClientOptions.js +2 -0
- package/dist/react-native/signaling/signalingClientOptions.js.map +1 -0
- package/package.json +9 -9
- package/review/communication-messages.api.md +1024 -4
|
@@ -4,11 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
+
import { ChatMessageReceivedEvent } from '@azure/communication-signaling';
|
|
8
|
+
import { ChatThreadPropertiesUpdatedEvent } from '@azure/communication-signaling';
|
|
7
9
|
import type { Client } from '@azure-rest/core-client';
|
|
8
10
|
import type { ClientOptions } from '@azure-rest/core-client';
|
|
11
|
+
import type { CommunicationTokenCredential } from '@azure/communication-common';
|
|
12
|
+
import type { ErrorModel } from '@azure-rest/core-client';
|
|
9
13
|
import type { ErrorResponse } from '@azure-rest/core-client';
|
|
10
14
|
import type { HttpResponse } from '@azure-rest/core-client';
|
|
11
15
|
import type { KeyCredential } from '@azure/core-auth';
|
|
16
|
+
import { ParticipantsAddedEvent } from '@azure/communication-signaling';
|
|
17
|
+
import { ParticipantsRemovedEvent } from '@azure/communication-signaling';
|
|
12
18
|
import type { PathUncheckedResponse } from '@azure-rest/core-client';
|
|
13
19
|
import type { RawHttpHeaders } from '@azure/core-rest-pipeline';
|
|
14
20
|
import type { RawHttpHeadersInput } from '@azure/core-rest-pipeline';
|
|
@@ -45,12 +51,155 @@ export interface ActionGroupItem {
|
|
|
45
51
|
title: string;
|
|
46
52
|
}
|
|
47
53
|
|
|
54
|
+
// @public (undocumented)
|
|
55
|
+
export interface AddParticipants {
|
|
56
|
+
post(options: AddParticipantsParameters): StreamableMethod<AddParticipants207Response | AddParticipantsDefaultResponse>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// @public (undocumented)
|
|
60
|
+
export interface AddParticipants207Headers {
|
|
61
|
+
"repeatability-result"?: RepeatabilityResultOutput;
|
|
62
|
+
"x-ms-client-request-id"?: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// @public
|
|
66
|
+
export interface AddParticipants207Response extends HttpResponse {
|
|
67
|
+
// (undocumented)
|
|
68
|
+
body: AddParticipantsResultOutput;
|
|
69
|
+
// (undocumented)
|
|
70
|
+
headers: RawHttpHeaders & AddParticipants207Headers;
|
|
71
|
+
// (undocumented)
|
|
72
|
+
status: "207";
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// @public (undocumented)
|
|
76
|
+
export interface AddParticipantsBodyParam {
|
|
77
|
+
body: AddParticipantsOptions;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// @public (undocumented)
|
|
81
|
+
export interface AddParticipantsDefaultHeaders {
|
|
82
|
+
"x-ms-error-code"?: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// @public (undocumented)
|
|
86
|
+
export interface AddParticipantsDefaultResponse extends HttpResponse {
|
|
87
|
+
// (undocumented)
|
|
88
|
+
body: ErrorResponse;
|
|
89
|
+
// (undocumented)
|
|
90
|
+
headers: RawHttpHeaders & AddParticipantsDefaultHeaders;
|
|
91
|
+
// (undocumented)
|
|
92
|
+
status: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// @public (undocumented)
|
|
96
|
+
export interface AddParticipantsHeaderParam {
|
|
97
|
+
// (undocumented)
|
|
98
|
+
headers?: RawHttpHeadersInput & AddParticipantsHeaders;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// @public (undocumented)
|
|
102
|
+
export interface AddParticipantsHeaders {
|
|
103
|
+
"Repeatability-First-Sent"?: string;
|
|
104
|
+
"Repeatability-Request-ID"?: string;
|
|
105
|
+
"x-ms-client-request-id"?: string;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// @public
|
|
109
|
+
export interface AddParticipantsOptions {
|
|
110
|
+
participants: Array<ConversationParticipant>;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// @public (undocumented)
|
|
114
|
+
export type AddParticipantsParameters = AddParticipantsHeaderParam & AddParticipantsBodyParam & RequestParameters;
|
|
115
|
+
|
|
116
|
+
// @public
|
|
117
|
+
export interface AddParticipantsResultOutput {
|
|
118
|
+
invalidParticipants: Array<UpdateParticipantsResultOutput>;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// @public (undocumented)
|
|
122
|
+
export interface AnalyzeConversation {
|
|
123
|
+
post(options?: AnalyzeConversationParameters): StreamableMethod<AnalyzeConversation200Response | AnalyzeConversationDefaultResponse>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// @public (undocumented)
|
|
127
|
+
export interface AnalyzeConversation200Headers {
|
|
128
|
+
"repeatability-result"?: RepeatabilityResultOutput;
|
|
129
|
+
"x-ms-client-request-id"?: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// @public
|
|
133
|
+
export interface AnalyzeConversation200Response extends HttpResponse {
|
|
134
|
+
// (undocumented)
|
|
135
|
+
body: GetConversationThreadAnalysisResultOutput;
|
|
136
|
+
// (undocumented)
|
|
137
|
+
headers: RawHttpHeaders & AnalyzeConversation200Headers;
|
|
138
|
+
// (undocumented)
|
|
139
|
+
status: "200";
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// @public (undocumented)
|
|
143
|
+
export interface AnalyzeConversationDefaultHeaders {
|
|
144
|
+
"x-ms-error-code"?: string;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// @public (undocumented)
|
|
148
|
+
export interface AnalyzeConversationDefaultResponse extends HttpResponse {
|
|
149
|
+
// (undocumented)
|
|
150
|
+
body: ErrorResponse;
|
|
151
|
+
// (undocumented)
|
|
152
|
+
headers: RawHttpHeaders & AnalyzeConversationDefaultHeaders;
|
|
153
|
+
// (undocumented)
|
|
154
|
+
status: string;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// @public (undocumented)
|
|
158
|
+
export interface AnalyzeConversationHeaderParam {
|
|
159
|
+
// (undocumented)
|
|
160
|
+
headers?: RawHttpHeadersInput & AnalyzeConversationHeaders;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// @public (undocumented)
|
|
164
|
+
export interface AnalyzeConversationHeaders {
|
|
165
|
+
"Repeatability-First-Sent"?: string;
|
|
166
|
+
"Repeatability-Request-ID"?: string;
|
|
167
|
+
"x-ms-client-request-id"?: string;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// @public (undocumented)
|
|
171
|
+
export type AnalyzeConversationParameters = AnalyzeConversationHeaderParam & RequestParameters;
|
|
172
|
+
|
|
173
|
+
// @public
|
|
174
|
+
export interface AudioConversationMessageContent extends ConversationMessageContentParent {
|
|
175
|
+
kind: "audio";
|
|
176
|
+
mediaUri: string;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// @public
|
|
180
|
+
export interface AudioConversationMessageContentOutput extends ConversationMessageContentOutputParent {
|
|
181
|
+
kind: "audio";
|
|
182
|
+
mediaUri: string;
|
|
183
|
+
}
|
|
184
|
+
|
|
48
185
|
// @public
|
|
49
186
|
export interface AudioNotificationContent extends NotificationContentParent {
|
|
50
187
|
kind: "audio";
|
|
51
188
|
mediaUri: string;
|
|
52
189
|
}
|
|
53
190
|
|
|
191
|
+
// @public
|
|
192
|
+
export interface BotContact extends ContactParent {
|
|
193
|
+
botAppId: string;
|
|
194
|
+
kind: "bot";
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// @public
|
|
198
|
+
export interface BotContactOutput extends ContactOutputParent {
|
|
199
|
+
botAppId: string;
|
|
200
|
+
kind: "bot";
|
|
201
|
+
}
|
|
202
|
+
|
|
54
203
|
// @public
|
|
55
204
|
export interface ButtonContent {
|
|
56
205
|
id: string;
|
|
@@ -63,12 +212,146 @@ export interface ButtonSetContent extends MessageContentParent {
|
|
|
63
212
|
kind: "buttonSet";
|
|
64
213
|
}
|
|
65
214
|
|
|
215
|
+
// @public (undocumented)
|
|
216
|
+
export type ChatEventId = "chatMessageReceived" | "chatMessageEdited" | "chatMessageDeleted" | "typingIndicatorReceived" | "readReceiptReceived" | "chatThreadCreated" | "chatThreadDeleted" | "chatThreadPropertiesUpdated" | "participantsAdded" | "participantsRemoved" | "realTimeNotificationConnected" | "realTimeNotificationDisconnected";
|
|
217
|
+
|
|
218
|
+
export { ChatMessageReceivedEvent }
|
|
219
|
+
|
|
220
|
+
export { ChatThreadPropertiesUpdatedEvent }
|
|
221
|
+
|
|
222
|
+
// @public
|
|
223
|
+
export interface CommunicationContact extends ContactParent {
|
|
224
|
+
kind: "communication";
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// @public
|
|
228
|
+
export interface CommunicationContactOutput extends ContactOutputParent {
|
|
229
|
+
kind: "communication";
|
|
230
|
+
}
|
|
231
|
+
|
|
66
232
|
// @public
|
|
67
233
|
export type CommunicationMessageKind = string;
|
|
68
234
|
|
|
235
|
+
// @public
|
|
236
|
+
export type CommunicationMessageKindOutput = string;
|
|
237
|
+
|
|
69
238
|
// @public
|
|
70
239
|
export type CommunicationMessagesChannelOutput = string;
|
|
71
240
|
|
|
241
|
+
// @public
|
|
242
|
+
export type Contact = ContactParent | CommunicationContact | BotContact | WhatsAppContact;
|
|
243
|
+
|
|
244
|
+
// @public
|
|
245
|
+
export type ContactOutput = ContactOutputParent | CommunicationContactOutput | BotContactOutput | WhatsAppContactOutput;
|
|
246
|
+
|
|
247
|
+
// @public
|
|
248
|
+
export interface ContactOutputParent {
|
|
249
|
+
id: string;
|
|
250
|
+
// (undocumented)
|
|
251
|
+
kind: MessagePlatformKindOutput;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// @public
|
|
255
|
+
export interface ContactParent {
|
|
256
|
+
id: string;
|
|
257
|
+
// (undocumented)
|
|
258
|
+
kind: MessagePlatformKind;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// @public
|
|
262
|
+
export interface Conversation {
|
|
263
|
+
deliveryChannelIds?: string[];
|
|
264
|
+
outboundDeliveryStrategy?: OutboundDeliveryStrategyKind;
|
|
265
|
+
participants?: Array<ConversationParticipant>;
|
|
266
|
+
topic?: string;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// @public (undocumented)
|
|
270
|
+
export interface ConversationEventListener {
|
|
271
|
+
// (undocumented)
|
|
272
|
+
off(event: "chatMessageReceived", listener: (e: ChatMessageReceivedEvent) => void): void;
|
|
273
|
+
// (undocumented)
|
|
274
|
+
off(event: "chatThreadPropertiesUpdated", listener: (e: ChatThreadPropertiesUpdatedEvent) => void): void;
|
|
275
|
+
// (undocumented)
|
|
276
|
+
off(event: "participantsAdded", listener: (e: ParticipantsAddedEvent) => void): void;
|
|
277
|
+
// (undocumented)
|
|
278
|
+
off(event: "participantsRemoved", listener: (e: ParticipantsRemovedEvent) => void): void;
|
|
279
|
+
// (undocumented)
|
|
280
|
+
on(event: "chatMessageReceived", listener: (e: ChatMessageReceivedEvent) => void): void;
|
|
281
|
+
// (undocumented)
|
|
282
|
+
on(event: "chatThreadPropertiesUpdated", listener: (e: ChatThreadPropertiesUpdatedEvent) => void): void;
|
|
283
|
+
// (undocumented)
|
|
284
|
+
on(event: "participantsAdded", listener: (e: ParticipantsAddedEvent) => void): void;
|
|
285
|
+
// (undocumented)
|
|
286
|
+
on(event: "participantsRemoved", listener: (e: ParticipantsRemovedEvent) => void): void;
|
|
287
|
+
// (undocumented)
|
|
288
|
+
on(event: "realTimeNotificationConnected", listener: () => void): void;
|
|
289
|
+
// (undocumented)
|
|
290
|
+
on(event: "realTimeNotificationDisconnected", listener: () => void): void;
|
|
291
|
+
// (undocumented)
|
|
292
|
+
startRealtimeNotifications(): Promise<void>;
|
|
293
|
+
// (undocumented)
|
|
294
|
+
stopRealtimeNotifications(): Promise<void>;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
// @public
|
|
298
|
+
export type ConversationMessageContent = ConversationMessageContentParent | TextConversationMessageContent | ImageConversationMessageContent | DocumentConversationMessageContent | VideoConversationMessageContent | AudioConversationMessageContent | TemplateConversationMessageContent;
|
|
299
|
+
|
|
300
|
+
// @public
|
|
301
|
+
export type ConversationMessageContentOutput = ConversationMessageContentOutputParent | TextConversationMessageContentOutput | ImageConversationMessageContentOutput | DocumentConversationMessageContentOutput | VideoConversationMessageContentOutput | AudioConversationMessageContentOutput | TemplateConversationMessageContentOutput;
|
|
302
|
+
|
|
303
|
+
// @public
|
|
304
|
+
export interface ConversationMessageContentOutputParent {
|
|
305
|
+
// (undocumented)
|
|
306
|
+
kind: CommunicationMessageKindOutput;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
// @public
|
|
310
|
+
export interface ConversationMessageContentParent {
|
|
311
|
+
// (undocumented)
|
|
312
|
+
kind: CommunicationMessageKind;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
// @public
|
|
316
|
+
export interface ConversationMessageItemOutput {
|
|
317
|
+
createdOn: string;
|
|
318
|
+
readonly id: string;
|
|
319
|
+
message: ConversationMessageContentOutput;
|
|
320
|
+
senderCommunicationIdentifier: string;
|
|
321
|
+
senderDisplayName?: string;
|
|
322
|
+
sequenceId?: number;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
// @public
|
|
326
|
+
export interface ConversationOutput {
|
|
327
|
+
deliveryChannelIds?: string[];
|
|
328
|
+
readonly id: string;
|
|
329
|
+
outboundDeliveryStrategy?: OutboundDeliveryStrategyKindOutput;
|
|
330
|
+
participants?: Array<ConversationParticipantOutput>;
|
|
331
|
+
topic?: string;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
// @public
|
|
335
|
+
export type ConversationParticipant = ConversationParticipantParent | InternalConversationParticipant | ExternalConversationParticipant;
|
|
336
|
+
|
|
337
|
+
// @public
|
|
338
|
+
export type ConversationParticipantOutput = ConversationParticipantOutputParent | InternalConversationParticipantOutput | ExternalConversationParticipantOutput;
|
|
339
|
+
|
|
340
|
+
// @public
|
|
341
|
+
export interface ConversationParticipantOutputParent {
|
|
342
|
+
displayName?: string;
|
|
343
|
+
readonly id: string;
|
|
344
|
+
// (undocumented)
|
|
345
|
+
kind: ParticipantKindOutput;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
// @public
|
|
349
|
+
export interface ConversationParticipantParent {
|
|
350
|
+
displayName?: string;
|
|
351
|
+
// (undocumented)
|
|
352
|
+
kind: ParticipantKind;
|
|
353
|
+
}
|
|
354
|
+
|
|
72
355
|
// @public
|
|
73
356
|
function createClient(connectionString: string, options?: ClientOptions): MessagesServiceClient;
|
|
74
357
|
|
|
@@ -76,6 +359,108 @@ function createClient(connectionString: string, options?: ClientOptions): Messag
|
|
|
76
359
|
function createClient(endpoint: string, credential: KeyCredential | TokenCredential, options?: ClientOptions): MessagesServiceClient;
|
|
77
360
|
export default createClient;
|
|
78
361
|
|
|
362
|
+
// @public
|
|
363
|
+
export interface CreateConversation201Response extends HttpResponse {
|
|
364
|
+
// (undocumented)
|
|
365
|
+
body: ConversationOutput;
|
|
366
|
+
// (undocumented)
|
|
367
|
+
status: "201";
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
// @public (undocumented)
|
|
371
|
+
export interface CreateConversationBodyParam {
|
|
372
|
+
// (undocumented)
|
|
373
|
+
body: CreateConversationRequest;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
// @public (undocumented)
|
|
377
|
+
export interface CreateConversationDefaultHeaders {
|
|
378
|
+
"x-ms-error-code"?: string;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
// @public (undocumented)
|
|
382
|
+
export interface CreateConversationDefaultResponse extends HttpResponse {
|
|
383
|
+
// (undocumented)
|
|
384
|
+
body: ErrorResponse;
|
|
385
|
+
// (undocumented)
|
|
386
|
+
headers: RawHttpHeaders & CreateConversationDefaultHeaders;
|
|
387
|
+
// (undocumented)
|
|
388
|
+
status: string;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
// @public (undocumented)
|
|
392
|
+
export function createConversationEventListener(endpoint: string, credential: CommunicationTokenCredential, options?: MessagesServiceClientOptions): ConversationEventListener;
|
|
393
|
+
|
|
394
|
+
// @public (undocumented)
|
|
395
|
+
export type CreateConversationParameters = CreateConversationBodyParam & RequestParameters;
|
|
396
|
+
|
|
397
|
+
// @public
|
|
398
|
+
export interface CreateConversationRequest {
|
|
399
|
+
conversation: Conversation;
|
|
400
|
+
initialMessage?: Message;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
// @public (undocumented)
|
|
404
|
+
export interface DeleteConversation204Headers {
|
|
405
|
+
"repeatability-result"?: RepeatabilityResultOutput;
|
|
406
|
+
"x-ms-client-request-id"?: string;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
// @public
|
|
410
|
+
export interface DeleteConversation204Response extends HttpResponse {
|
|
411
|
+
// (undocumented)
|
|
412
|
+
headers: RawHttpHeaders & DeleteConversation204Headers;
|
|
413
|
+
// (undocumented)
|
|
414
|
+
status: "204";
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
// @public (undocumented)
|
|
418
|
+
export interface DeleteConversationDefaultHeaders {
|
|
419
|
+
"x-ms-error-code"?: string;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
// @public (undocumented)
|
|
423
|
+
export interface DeleteConversationDefaultResponse extends HttpResponse {
|
|
424
|
+
// (undocumented)
|
|
425
|
+
body: ErrorResponse;
|
|
426
|
+
// (undocumented)
|
|
427
|
+
headers: RawHttpHeaders & DeleteConversationDefaultHeaders;
|
|
428
|
+
// (undocumented)
|
|
429
|
+
status: string;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
// @public (undocumented)
|
|
433
|
+
export interface DeleteConversationHeaderParam {
|
|
434
|
+
// (undocumented)
|
|
435
|
+
headers?: RawHttpHeadersInput & DeleteConversationHeaders;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
// @public (undocumented)
|
|
439
|
+
export interface DeleteConversationHeaders {
|
|
440
|
+
"Repeatability-First-Sent"?: string;
|
|
441
|
+
"Repeatability-Request-ID"?: string;
|
|
442
|
+
"x-ms-client-request-id"?: string;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
// @public (undocumented)
|
|
446
|
+
export type DeleteConversationParameters = DeleteConversationHeaderParam & RequestParameters;
|
|
447
|
+
|
|
448
|
+
// @public
|
|
449
|
+
export interface DocumentConversationMessageContent extends ConversationMessageContentParent {
|
|
450
|
+
caption?: string;
|
|
451
|
+
fileName?: string;
|
|
452
|
+
kind: "document";
|
|
453
|
+
mediaUri: string;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
// @public
|
|
457
|
+
export interface DocumentConversationMessageContentOutput extends ConversationMessageContentOutputParent {
|
|
458
|
+
caption?: string;
|
|
459
|
+
fileName?: string;
|
|
460
|
+
kind: "document";
|
|
461
|
+
mediaUri: string;
|
|
462
|
+
}
|
|
463
|
+
|
|
79
464
|
// @public
|
|
80
465
|
export interface DocumentMessageContent extends MessageContentParent {
|
|
81
466
|
kind: "document";
|
|
@@ -90,9 +475,76 @@ export interface DocumentNotificationContent extends NotificationContentParent {
|
|
|
90
475
|
mediaUri: string;
|
|
91
476
|
}
|
|
92
477
|
|
|
478
|
+
// @public
|
|
479
|
+
export interface ExternalConversationParticipant extends ConversationParticipantParent {
|
|
480
|
+
contacts: Array<Contact>;
|
|
481
|
+
kind: "external";
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
// @public
|
|
485
|
+
export interface ExternalConversationParticipantOutput extends ConversationParticipantOutputParent {
|
|
486
|
+
contacts: Array<ContactOutput>;
|
|
487
|
+
kind: "external";
|
|
488
|
+
}
|
|
489
|
+
|
|
93
490
|
// @public
|
|
94
491
|
export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
|
|
95
492
|
|
|
493
|
+
// @public (undocumented)
|
|
494
|
+
export interface GetConversation {
|
|
495
|
+
delete(options?: DeleteConversationParameters): StreamableMethod<DeleteConversation204Response | DeleteConversationDefaultResponse>;
|
|
496
|
+
get(options?: GetConversationParameters): StreamableMethod<GetConversation200Response | GetConversationDefaultResponse>;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
// @public (undocumented)
|
|
500
|
+
export interface GetConversation200Headers {
|
|
501
|
+
"x-ms-client-request-id"?: string;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
// @public
|
|
505
|
+
export interface GetConversation200Response extends HttpResponse {
|
|
506
|
+
// (undocumented)
|
|
507
|
+
body: ConversationOutput;
|
|
508
|
+
// (undocumented)
|
|
509
|
+
headers: RawHttpHeaders & GetConversation200Headers;
|
|
510
|
+
// (undocumented)
|
|
511
|
+
status: "200";
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
// @public (undocumented)
|
|
515
|
+
export interface GetConversationDefaultHeaders {
|
|
516
|
+
"x-ms-error-code"?: string;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
// @public (undocumented)
|
|
520
|
+
export interface GetConversationDefaultResponse extends HttpResponse {
|
|
521
|
+
// (undocumented)
|
|
522
|
+
body: ErrorResponse;
|
|
523
|
+
// (undocumented)
|
|
524
|
+
headers: RawHttpHeaders & GetConversationDefaultHeaders;
|
|
525
|
+
// (undocumented)
|
|
526
|
+
status: string;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
// @public (undocumented)
|
|
530
|
+
export interface GetConversationHeaderParam {
|
|
531
|
+
// (undocumented)
|
|
532
|
+
headers?: RawHttpHeadersInput & GetConversationHeaders;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
// @public (undocumented)
|
|
536
|
+
export interface GetConversationHeaders {
|
|
537
|
+
"x-ms-client-request-id"?: string;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
// @public (undocumented)
|
|
541
|
+
export type GetConversationParameters = GetConversationHeaderParam & RequestParameters;
|
|
542
|
+
|
|
543
|
+
// @public
|
|
544
|
+
export interface GetConversationThreadAnalysisResultOutput {
|
|
545
|
+
summary: string;
|
|
546
|
+
}
|
|
547
|
+
|
|
96
548
|
// @public (undocumented)
|
|
97
549
|
export interface GetMedia {
|
|
98
550
|
get(options?: GetMediaParameters): StreamableMethod<GetMedia200Response | GetMediaDefaultResponse>;
|
|
@@ -148,6 +600,20 @@ export type GetPage<TPage> = (pageLink: string) => Promise<{
|
|
|
148
600
|
nextPageLink?: string;
|
|
149
601
|
}>;
|
|
150
602
|
|
|
603
|
+
// @public
|
|
604
|
+
export interface ImageConversationMessageContent extends ConversationMessageContentParent {
|
|
605
|
+
caption?: string;
|
|
606
|
+
kind: "image";
|
|
607
|
+
mediaUri: string;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
// @public
|
|
611
|
+
export interface ImageConversationMessageContentOutput extends ConversationMessageContentOutputParent {
|
|
612
|
+
caption?: string;
|
|
613
|
+
kind: "image";
|
|
614
|
+
mediaUri: string;
|
|
615
|
+
}
|
|
616
|
+
|
|
151
617
|
// @public
|
|
152
618
|
export interface ImageMessageContent extends MessageContentParent {
|
|
153
619
|
kind: "image";
|
|
@@ -175,6 +641,18 @@ export interface InteractiveNotificationContent extends NotificationContentParen
|
|
|
175
641
|
kind: "interactive";
|
|
176
642
|
}
|
|
177
643
|
|
|
644
|
+
// @public
|
|
645
|
+
export interface InternalConversationParticipant extends ConversationParticipantParent {
|
|
646
|
+
contact: Contact;
|
|
647
|
+
kind: "internal";
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
// @public
|
|
651
|
+
export interface InternalConversationParticipantOutput extends ConversationParticipantOutputParent {
|
|
652
|
+
contact: ContactOutput;
|
|
653
|
+
kind: "internal";
|
|
654
|
+
}
|
|
655
|
+
|
|
178
656
|
// @public (undocumented)
|
|
179
657
|
export function isUnexpected(response: GetMedia200Response | GetMediaDefaultResponse): response is GetMediaDefaultResponse;
|
|
180
658
|
|
|
@@ -184,6 +662,36 @@ export function isUnexpected(response: Send202Response | SendDefaultResponse): r
|
|
|
184
662
|
// @public (undocumented)
|
|
185
663
|
export function isUnexpected(response: ListTemplates200Response | ListTemplatesDefaultResponse): response is ListTemplatesDefaultResponse;
|
|
186
664
|
|
|
665
|
+
// @public (undocumented)
|
|
666
|
+
export function isUnexpected(response: AddParticipants207Response | AddParticipantsDefaultResponse): response is AddParticipantsDefaultResponse;
|
|
667
|
+
|
|
668
|
+
// @public (undocumented)
|
|
669
|
+
export function isUnexpected(response: RemoveParticipants207Response | RemoveParticipantsDefaultResponse): response is RemoveParticipantsDefaultResponse;
|
|
670
|
+
|
|
671
|
+
// @public (undocumented)
|
|
672
|
+
export function isUnexpected(response: ListConversations200Response | ListConversationsDefaultResponse): response is ListConversationsDefaultResponse;
|
|
673
|
+
|
|
674
|
+
// @public (undocumented)
|
|
675
|
+
export function isUnexpected(response: CreateConversation201Response | CreateConversationDefaultResponse): response is CreateConversationDefaultResponse;
|
|
676
|
+
|
|
677
|
+
// @public (undocumented)
|
|
678
|
+
export function isUnexpected(response: ListMessages200Response | ListMessagesDefaultResponse): response is ListMessagesDefaultResponse;
|
|
679
|
+
|
|
680
|
+
// @public (undocumented)
|
|
681
|
+
export function isUnexpected(response: SendMessage200Response | SendMessageDefaultResponse): response is SendMessageDefaultResponse;
|
|
682
|
+
|
|
683
|
+
// @public (undocumented)
|
|
684
|
+
export function isUnexpected(response: AnalyzeConversation200Response | AnalyzeConversationDefaultResponse): response is AnalyzeConversationDefaultResponse;
|
|
685
|
+
|
|
686
|
+
// @public (undocumented)
|
|
687
|
+
export function isUnexpected(response: GetConversation200Response | GetConversationDefaultResponse): response is GetConversationDefaultResponse;
|
|
688
|
+
|
|
689
|
+
// @public (undocumented)
|
|
690
|
+
export function isUnexpected(response: DeleteConversation204Response | DeleteConversationDefaultResponse): response is DeleteConversationDefaultResponse;
|
|
691
|
+
|
|
692
|
+
// @public (undocumented)
|
|
693
|
+
export function isUnexpected(response: TerminateConversation200Response | TerminateConversationDefaultResponse): response is TerminateConversationDefaultResponse;
|
|
694
|
+
|
|
187
695
|
// @public
|
|
188
696
|
export interface LinkContent extends MessageContentParent {
|
|
189
697
|
kind: "url";
|
|
@@ -191,6 +699,130 @@ export interface LinkContent extends MessageContentParent {
|
|
|
191
699
|
url: string;
|
|
192
700
|
}
|
|
193
701
|
|
|
702
|
+
// @public (undocumented)
|
|
703
|
+
export interface ListConversations {
|
|
704
|
+
get(options?: ListConversationsParameters): StreamableMethod<ListConversations200Response | ListConversationsDefaultResponse>;
|
|
705
|
+
post(options: CreateConversationParameters): StreamableMethod<CreateConversation201Response | CreateConversationDefaultResponse>;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
// @public (undocumented)
|
|
709
|
+
export interface ListConversations200Headers {
|
|
710
|
+
"x-ms-client-request-id"?: string;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
// @public
|
|
714
|
+
export interface ListConversations200Response extends HttpResponse {
|
|
715
|
+
// (undocumented)
|
|
716
|
+
body: PagedConversationOutput;
|
|
717
|
+
// (undocumented)
|
|
718
|
+
headers: RawHttpHeaders & ListConversations200Headers;
|
|
719
|
+
// (undocumented)
|
|
720
|
+
status: "200";
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
// @public (undocumented)
|
|
724
|
+
export interface ListConversationsDefaultHeaders {
|
|
725
|
+
"x-ms-error-code"?: string;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
// @public (undocumented)
|
|
729
|
+
export interface ListConversationsDefaultResponse extends HttpResponse {
|
|
730
|
+
// (undocumented)
|
|
731
|
+
body: ErrorResponse;
|
|
732
|
+
// (undocumented)
|
|
733
|
+
headers: RawHttpHeaders & ListConversationsDefaultHeaders;
|
|
734
|
+
// (undocumented)
|
|
735
|
+
status: string;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
// @public (undocumented)
|
|
739
|
+
export interface ListConversationsHeaderParam {
|
|
740
|
+
// (undocumented)
|
|
741
|
+
headers?: RawHttpHeadersInput & ListConversationsHeaders;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
// @public (undocumented)
|
|
745
|
+
export interface ListConversationsHeaders {
|
|
746
|
+
"x-ms-client-request-id"?: string;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
// @public (undocumented)
|
|
750
|
+
export type ListConversationsParameters = ListConversationsQueryParam & ListConversationsHeaderParam & RequestParameters;
|
|
751
|
+
|
|
752
|
+
// @public (undocumented)
|
|
753
|
+
export interface ListConversationsQueryParam {
|
|
754
|
+
// (undocumented)
|
|
755
|
+
queryParameters?: ListConversationsQueryParamProperties;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
// @public (undocumented)
|
|
759
|
+
export interface ListConversationsQueryParamProperties {
|
|
760
|
+
channelId?: string;
|
|
761
|
+
maxPageSize?: number;
|
|
762
|
+
participantId?: string;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
// @public (undocumented)
|
|
766
|
+
export interface ListMessages {
|
|
767
|
+
get(options?: ListMessagesParameters): StreamableMethod<ListMessages200Response | ListMessagesDefaultResponse>;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
// @public (undocumented)
|
|
771
|
+
export interface ListMessages200Headers {
|
|
772
|
+
"x-ms-client-request-id"?: string;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
// @public
|
|
776
|
+
export interface ListMessages200Response extends HttpResponse {
|
|
777
|
+
// (undocumented)
|
|
778
|
+
body: PagedConversationMessageItemOutput;
|
|
779
|
+
// (undocumented)
|
|
780
|
+
headers: RawHttpHeaders & ListMessages200Headers;
|
|
781
|
+
// (undocumented)
|
|
782
|
+
status: "200";
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
// @public (undocumented)
|
|
786
|
+
export interface ListMessagesDefaultHeaders {
|
|
787
|
+
"x-ms-error-code"?: string;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
// @public (undocumented)
|
|
791
|
+
export interface ListMessagesDefaultResponse extends HttpResponse {
|
|
792
|
+
// (undocumented)
|
|
793
|
+
body: ErrorResponse;
|
|
794
|
+
// (undocumented)
|
|
795
|
+
headers: RawHttpHeaders & ListMessagesDefaultHeaders;
|
|
796
|
+
// (undocumented)
|
|
797
|
+
status: string;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
// @public (undocumented)
|
|
801
|
+
export interface ListMessagesHeaderParam {
|
|
802
|
+
// (undocumented)
|
|
803
|
+
headers?: RawHttpHeadersInput & ListMessagesHeaders;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
// @public (undocumented)
|
|
807
|
+
export interface ListMessagesHeaders {
|
|
808
|
+
"x-ms-client-request-id"?: string;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
// @public (undocumented)
|
|
812
|
+
export type ListMessagesParameters = ListMessagesQueryParam & ListMessagesHeaderParam & RequestParameters;
|
|
813
|
+
|
|
814
|
+
// @public (undocumented)
|
|
815
|
+
export interface ListMessagesQueryParam {
|
|
816
|
+
// (undocumented)
|
|
817
|
+
queryParameters?: ListMessagesQueryParamProperties;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
// @public (undocumented)
|
|
821
|
+
export interface ListMessagesQueryParamProperties {
|
|
822
|
+
maxPageSize?: number;
|
|
823
|
+
participantId?: string;
|
|
824
|
+
}
|
|
825
|
+
|
|
194
826
|
// @public (undocumented)
|
|
195
827
|
export interface ListTemplates {
|
|
196
828
|
get(options?: ListTemplatesParameters): StreamableMethod<ListTemplates200Response | ListTemplatesDefaultResponse>;
|
|
@@ -248,7 +880,7 @@ export interface ListTemplatesQueryParam {
|
|
|
248
880
|
|
|
249
881
|
// @public (undocumented)
|
|
250
882
|
export interface ListTemplatesQueryParamProperties {
|
|
251
|
-
|
|
883
|
+
maxPageSize?: number;
|
|
252
884
|
}
|
|
253
885
|
|
|
254
886
|
// @public @deprecated (undocumented)
|
|
@@ -258,6 +890,11 @@ export interface MediaNotificationContent extends NotificationContentParent {
|
|
|
258
890
|
mediaUri: string;
|
|
259
891
|
}
|
|
260
892
|
|
|
893
|
+
// @public
|
|
894
|
+
export interface Message {
|
|
895
|
+
content: string;
|
|
896
|
+
}
|
|
897
|
+
|
|
261
898
|
// @public
|
|
262
899
|
export type MessageActionBindingKind = string;
|
|
263
900
|
|
|
@@ -273,6 +910,12 @@ export interface MessageContentParent {
|
|
|
273
910
|
kind: MessageContentKind;
|
|
274
911
|
}
|
|
275
912
|
|
|
913
|
+
// @public
|
|
914
|
+
export type MessagePlatformKind = string;
|
|
915
|
+
|
|
916
|
+
// @public
|
|
917
|
+
export type MessagePlatformKindOutput = string;
|
|
918
|
+
|
|
276
919
|
// @public
|
|
277
920
|
export interface MessageReceiptOutput {
|
|
278
921
|
messageId: string;
|
|
@@ -303,6 +946,18 @@ export type MessageTemplateBindings = MessageTemplateBindingsParent | WhatsAppMe
|
|
|
303
946
|
// @public
|
|
304
947
|
export type MessageTemplateBindingsKind = string;
|
|
305
948
|
|
|
949
|
+
// @public
|
|
950
|
+
export type MessageTemplateBindingsKindOutput = string;
|
|
951
|
+
|
|
952
|
+
// @public
|
|
953
|
+
export type MessageTemplateBindingsOutput = MessageTemplateBindingsOutputParent | WhatsAppMessageTemplateBindingsOutput;
|
|
954
|
+
|
|
955
|
+
// @public
|
|
956
|
+
export interface MessageTemplateBindingsOutputParent {
|
|
957
|
+
// (undocumented)
|
|
958
|
+
kind: MessageTemplateBindingsKindOutput;
|
|
959
|
+
}
|
|
960
|
+
|
|
306
961
|
// @public
|
|
307
962
|
export interface MessageTemplateBindingsParent {
|
|
308
963
|
// (undocumented)
|
|
@@ -310,15 +965,31 @@ export interface MessageTemplateBindingsParent {
|
|
|
310
965
|
}
|
|
311
966
|
|
|
312
967
|
// @public
|
|
313
|
-
export interface MessageTemplateDocument extends MessageTemplateValueParent {
|
|
968
|
+
export interface MessageTemplateDocument extends MessageTemplateValueParent {
|
|
969
|
+
caption?: string;
|
|
970
|
+
fileName?: string;
|
|
971
|
+
kind: "document";
|
|
972
|
+
url: string;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
// @public
|
|
976
|
+
export interface MessageTemplateDocumentOutput extends MessageTemplateValueOutputParent {
|
|
977
|
+
caption?: string;
|
|
978
|
+
fileName?: string;
|
|
979
|
+
kind: "document";
|
|
980
|
+
url: string;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
// @public
|
|
984
|
+
export interface MessageTemplateImage extends MessageTemplateValueParent {
|
|
314
985
|
caption?: string;
|
|
315
986
|
fileName?: string;
|
|
316
|
-
kind: "
|
|
987
|
+
kind: "image";
|
|
317
988
|
url: string;
|
|
318
989
|
}
|
|
319
990
|
|
|
320
991
|
// @public
|
|
321
|
-
export interface
|
|
992
|
+
export interface MessageTemplateImageOutput extends MessageTemplateValueOutputParent {
|
|
322
993
|
caption?: string;
|
|
323
994
|
fileName?: string;
|
|
324
995
|
kind: "image";
|
|
@@ -346,6 +1017,23 @@ export interface MessageTemplateLocation extends MessageTemplateValueParent {
|
|
|
346
1017
|
longitude: number;
|
|
347
1018
|
}
|
|
348
1019
|
|
|
1020
|
+
// @public
|
|
1021
|
+
export interface MessageTemplateLocationOutput extends MessageTemplateValueOutputParent {
|
|
1022
|
+
address?: string;
|
|
1023
|
+
kind: "location";
|
|
1024
|
+
latitude: number;
|
|
1025
|
+
locationName?: string;
|
|
1026
|
+
longitude: number;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
// @public
|
|
1030
|
+
export interface MessageTemplateOutput {
|
|
1031
|
+
bindings?: MessageTemplateBindingsOutput;
|
|
1032
|
+
language: string;
|
|
1033
|
+
name: string;
|
|
1034
|
+
values?: Array<MessageTemplateValueOutput>;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
349
1037
|
// @public
|
|
350
1038
|
export interface MessageTemplateQuickAction extends MessageTemplateValueParent {
|
|
351
1039
|
kind: "quickAction";
|
|
@@ -353,6 +1041,13 @@ export interface MessageTemplateQuickAction extends MessageTemplateValueParent {
|
|
|
353
1041
|
text?: string;
|
|
354
1042
|
}
|
|
355
1043
|
|
|
1044
|
+
// @public
|
|
1045
|
+
export interface MessageTemplateQuickActionOutput extends MessageTemplateValueOutputParent {
|
|
1046
|
+
kind: "quickAction";
|
|
1047
|
+
payload?: string;
|
|
1048
|
+
text?: string;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
356
1051
|
// @public
|
|
357
1052
|
export type MessageTemplateStatusOutput = string;
|
|
358
1053
|
|
|
@@ -362,12 +1057,31 @@ export interface MessageTemplateText extends MessageTemplateValueParent {
|
|
|
362
1057
|
text: string;
|
|
363
1058
|
}
|
|
364
1059
|
|
|
1060
|
+
// @public
|
|
1061
|
+
export interface MessageTemplateTextOutput extends MessageTemplateValueOutputParent {
|
|
1062
|
+
kind: "text";
|
|
1063
|
+
text: string;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
365
1066
|
// @public
|
|
366
1067
|
export type MessageTemplateValue = MessageTemplateValueParent | MessageTemplateText | MessageTemplateImage | MessageTemplateDocument | MessageTemplateVideo | MessageTemplateLocation | MessageTemplateQuickAction;
|
|
367
1068
|
|
|
368
1069
|
// @public
|
|
369
1070
|
export type MessageTemplateValueKind = string;
|
|
370
1071
|
|
|
1072
|
+
// @public
|
|
1073
|
+
export type MessageTemplateValueKindOutput = string;
|
|
1074
|
+
|
|
1075
|
+
// @public
|
|
1076
|
+
export type MessageTemplateValueOutput = MessageTemplateValueOutputParent | MessageTemplateTextOutput | MessageTemplateImageOutput | MessageTemplateDocumentOutput | MessageTemplateVideoOutput | MessageTemplateLocationOutput | MessageTemplateQuickActionOutput;
|
|
1077
|
+
|
|
1078
|
+
// @public
|
|
1079
|
+
export interface MessageTemplateValueOutputParent {
|
|
1080
|
+
// (undocumented)
|
|
1081
|
+
kind: MessageTemplateValueKindOutput;
|
|
1082
|
+
name: string;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
371
1085
|
// @public
|
|
372
1086
|
export interface MessageTemplateValueParent {
|
|
373
1087
|
// (undocumented)
|
|
@@ -383,6 +1097,14 @@ export interface MessageTemplateVideo extends MessageTemplateValueParent {
|
|
|
383
1097
|
url: string;
|
|
384
1098
|
}
|
|
385
1099
|
|
|
1100
|
+
// @public
|
|
1101
|
+
export interface MessageTemplateVideoOutput extends MessageTemplateValueOutputParent {
|
|
1102
|
+
caption?: string;
|
|
1103
|
+
fileName?: string;
|
|
1104
|
+
kind: "video";
|
|
1105
|
+
url: string;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
386
1108
|
// @public
|
|
387
1109
|
export type NotificationContent = NotificationContentParent | TextNotificationContent | MediaNotificationContent | ImageNotificationContent | DocumentNotificationContent | VideoNotificationContent | AudioNotificationContent | ReactionNotificationContent | StickerNotificationContent | InteractiveNotificationContent | TemplateNotificationContent;
|
|
388
1110
|
|
|
@@ -394,6 +1116,12 @@ export interface NotificationContentParent {
|
|
|
394
1116
|
to: string[];
|
|
395
1117
|
}
|
|
396
1118
|
|
|
1119
|
+
// @public
|
|
1120
|
+
export type OutboundDeliveryStrategyKind = string;
|
|
1121
|
+
|
|
1122
|
+
// @public
|
|
1123
|
+
export type OutboundDeliveryStrategyKindOutput = string;
|
|
1124
|
+
|
|
397
1125
|
// @public
|
|
398
1126
|
export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings = PageSettings> {
|
|
399
1127
|
[Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
@@ -401,6 +1129,18 @@ export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageS
|
|
|
401
1129
|
next(): Promise<IteratorResult<TElement>>;
|
|
402
1130
|
}
|
|
403
1131
|
|
|
1132
|
+
// @public
|
|
1133
|
+
export interface PagedConversationMessageItemOutput {
|
|
1134
|
+
nextLink?: string;
|
|
1135
|
+
value: Array<ConversationMessageItemOutput>;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
// @public
|
|
1139
|
+
export interface PagedConversationOutput {
|
|
1140
|
+
nextLink?: string;
|
|
1141
|
+
value: Array<ConversationOutput>;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
404
1144
|
// @public
|
|
405
1145
|
export interface PagedMessageTemplateItemOutput {
|
|
406
1146
|
nextLink?: string;
|
|
@@ -427,6 +1167,16 @@ export interface PagingOptions<TResponse> {
|
|
|
427
1167
|
customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
|
|
428
1168
|
}
|
|
429
1169
|
|
|
1170
|
+
// @public
|
|
1171
|
+
export type ParticipantKind = string;
|
|
1172
|
+
|
|
1173
|
+
// @public
|
|
1174
|
+
export type ParticipantKindOutput = string;
|
|
1175
|
+
|
|
1176
|
+
export { ParticipantsAddedEvent }
|
|
1177
|
+
|
|
1178
|
+
export { ParticipantsRemovedEvent }
|
|
1179
|
+
|
|
430
1180
|
// @public
|
|
431
1181
|
export interface ReactionNotificationContent extends NotificationContentParent {
|
|
432
1182
|
emoji: string;
|
|
@@ -434,6 +1184,73 @@ export interface ReactionNotificationContent extends NotificationContentParent {
|
|
|
434
1184
|
messageId: string;
|
|
435
1185
|
}
|
|
436
1186
|
|
|
1187
|
+
// @public (undocumented)
|
|
1188
|
+
export interface RemoveParticipants {
|
|
1189
|
+
post(options: RemoveParticipantsParameters): StreamableMethod<RemoveParticipants207Response | RemoveParticipantsDefaultResponse>;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
// @public (undocumented)
|
|
1193
|
+
export interface RemoveParticipants207Headers {
|
|
1194
|
+
"repeatability-result"?: RepeatabilityResultOutput;
|
|
1195
|
+
"x-ms-client-request-id"?: string;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
// @public
|
|
1199
|
+
export interface RemoveParticipants207Response extends HttpResponse {
|
|
1200
|
+
// (undocumented)
|
|
1201
|
+
body: RemoveParticipantsResultOutput;
|
|
1202
|
+
// (undocumented)
|
|
1203
|
+
headers: RawHttpHeaders & RemoveParticipants207Headers;
|
|
1204
|
+
// (undocumented)
|
|
1205
|
+
status: "207";
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
// @public (undocumented)
|
|
1209
|
+
export interface RemoveParticipantsBodyParam {
|
|
1210
|
+
body: RemoveParticipantsOptions;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
// @public (undocumented)
|
|
1214
|
+
export interface RemoveParticipantsDefaultHeaders {
|
|
1215
|
+
"x-ms-error-code"?: string;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
// @public (undocumented)
|
|
1219
|
+
export interface RemoveParticipantsDefaultResponse extends HttpResponse {
|
|
1220
|
+
// (undocumented)
|
|
1221
|
+
body: ErrorResponse;
|
|
1222
|
+
// (undocumented)
|
|
1223
|
+
headers: RawHttpHeaders & RemoveParticipantsDefaultHeaders;
|
|
1224
|
+
// (undocumented)
|
|
1225
|
+
status: string;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
// @public (undocumented)
|
|
1229
|
+
export interface RemoveParticipantsHeaderParam {
|
|
1230
|
+
// (undocumented)
|
|
1231
|
+
headers?: RawHttpHeadersInput & RemoveParticipantsHeaders;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
// @public (undocumented)
|
|
1235
|
+
export interface RemoveParticipantsHeaders {
|
|
1236
|
+
"Repeatability-First-Sent"?: string;
|
|
1237
|
+
"Repeatability-Request-ID"?: string;
|
|
1238
|
+
"x-ms-client-request-id"?: string;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
// @public
|
|
1242
|
+
export interface RemoveParticipantsOptions {
|
|
1243
|
+
participantIds: string[];
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
// @public (undocumented)
|
|
1247
|
+
export type RemoveParticipantsParameters = RemoveParticipantsHeaderParam & RemoveParticipantsBodyParam & RequestParameters;
|
|
1248
|
+
|
|
1249
|
+
// @public
|
|
1250
|
+
export interface RemoveParticipantsResultOutput {
|
|
1251
|
+
invalidParticipants: Array<UpdateParticipantsResultOutput>;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
437
1254
|
// @public
|
|
438
1255
|
export type RepeatabilityResultOutput = "accepted" | "rejected";
|
|
439
1256
|
|
|
@@ -442,6 +1259,14 @@ export interface Routes {
|
|
|
442
1259
|
(path: "/messages/streams/{id}", id: string): GetMedia;
|
|
443
1260
|
(path: "/messages/notifications:send"): Send;
|
|
444
1261
|
(path: "/messages/channels/{channelId}/templates", channelId: string): ListTemplates;
|
|
1262
|
+
(path: "/messages/conversations/{conversationId}/participants:add", conversationId: string): AddParticipants;
|
|
1263
|
+
(path: "/messages/conversations/{conversationId}/participants:remove", conversationId: string): RemoveParticipants;
|
|
1264
|
+
(path: "/messages/conversations"): ListConversations;
|
|
1265
|
+
(path: "/messages/conversations/{conversationId}/messages", conversationId: string): ListMessages;
|
|
1266
|
+
(path: "/messages/conversations/{conversationId}/messages:send", conversationId: string): SendMessage;
|
|
1267
|
+
(path: "/messages/conversations/{conversationId}:analyze", conversationId: string): AnalyzeConversation;
|
|
1268
|
+
(path: "/messages/conversations/{conversationId}", conversationId: string): GetConversation;
|
|
1269
|
+
(path: "/messages/conversations/{conversationId}:terminate", conversationId: string): TerminateConversation;
|
|
445
1270
|
}
|
|
446
1271
|
|
|
447
1272
|
// @public (undocumented)
|
|
@@ -470,6 +1295,17 @@ export interface SendBodyParam {
|
|
|
470
1295
|
body: NotificationContent;
|
|
471
1296
|
}
|
|
472
1297
|
|
|
1298
|
+
// @public
|
|
1299
|
+
export interface SendConversationMessageOptions {
|
|
1300
|
+
outboundDeliveryStrategy?: OutboundDeliveryStrategyKind;
|
|
1301
|
+
request: ConversationMessageContent;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
// @public
|
|
1305
|
+
export interface SendConversationMessageResultOutput {
|
|
1306
|
+
messageId: string;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
473
1309
|
// @public (undocumented)
|
|
474
1310
|
export interface SendDefaultHeaders {
|
|
475
1311
|
"x-ms-error-code"?: string;
|
|
@@ -498,6 +1334,63 @@ export interface SendHeaders {
|
|
|
498
1334
|
"x-ms-client-request-id"?: string;
|
|
499
1335
|
}
|
|
500
1336
|
|
|
1337
|
+
// @public (undocumented)
|
|
1338
|
+
export interface SendMessage {
|
|
1339
|
+
post(options: SendMessageParameters): StreamableMethod<SendMessage200Response | SendMessageDefaultResponse>;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
// @public (undocumented)
|
|
1343
|
+
export interface SendMessage200Headers {
|
|
1344
|
+
"repeatability-result"?: RepeatabilityResultOutput;
|
|
1345
|
+
"x-ms-client-request-id"?: string;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
// @public
|
|
1349
|
+
export interface SendMessage200Response extends HttpResponse {
|
|
1350
|
+
// (undocumented)
|
|
1351
|
+
body: SendConversationMessageResultOutput;
|
|
1352
|
+
// (undocumented)
|
|
1353
|
+
headers: RawHttpHeaders & SendMessage200Headers;
|
|
1354
|
+
// (undocumented)
|
|
1355
|
+
status: "200";
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
// @public (undocumented)
|
|
1359
|
+
export interface SendMessageBodyParam {
|
|
1360
|
+
body: SendConversationMessageOptions;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
// @public (undocumented)
|
|
1364
|
+
export interface SendMessageDefaultHeaders {
|
|
1365
|
+
"x-ms-error-code"?: string;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
// @public (undocumented)
|
|
1369
|
+
export interface SendMessageDefaultResponse extends HttpResponse {
|
|
1370
|
+
// (undocumented)
|
|
1371
|
+
body: ErrorResponse;
|
|
1372
|
+
// (undocumented)
|
|
1373
|
+
headers: RawHttpHeaders & SendMessageDefaultHeaders;
|
|
1374
|
+
// (undocumented)
|
|
1375
|
+
status: string;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
// @public (undocumented)
|
|
1379
|
+
export interface SendMessageHeaderParam {
|
|
1380
|
+
// (undocumented)
|
|
1381
|
+
headers?: RawHttpHeadersInput & SendMessageHeaders;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
// @public (undocumented)
|
|
1385
|
+
export interface SendMessageHeaders {
|
|
1386
|
+
"Repeatability-First-Sent"?: string;
|
|
1387
|
+
"Repeatability-Request-ID"?: string;
|
|
1388
|
+
"x-ms-client-request-id"?: string;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
// @public (undocumented)
|
|
1392
|
+
export type SendMessageParameters = SendMessageHeaderParam & SendMessageBodyParam & RequestParameters;
|
|
1393
|
+
|
|
501
1394
|
// @public
|
|
502
1395
|
export interface SendMessageResultOutput {
|
|
503
1396
|
receipts: Array<MessageReceiptOutput>;
|
|
@@ -512,12 +1405,86 @@ export interface StickerNotificationContent extends NotificationContentParent {
|
|
|
512
1405
|
mediaUri: string;
|
|
513
1406
|
}
|
|
514
1407
|
|
|
1408
|
+
// @public
|
|
1409
|
+
export interface TemplateConversationMessageContent extends ConversationMessageContentParent {
|
|
1410
|
+
kind: "template";
|
|
1411
|
+
template: MessageTemplate;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
// @public
|
|
1415
|
+
export interface TemplateConversationMessageContentOutput extends ConversationMessageContentOutputParent {
|
|
1416
|
+
kind: "template";
|
|
1417
|
+
template: MessageTemplateOutput;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
515
1420
|
// @public
|
|
516
1421
|
export interface TemplateNotificationContent extends NotificationContentParent {
|
|
517
1422
|
kind: "template";
|
|
518
1423
|
template: MessageTemplate;
|
|
519
1424
|
}
|
|
520
1425
|
|
|
1426
|
+
// @public (undocumented)
|
|
1427
|
+
export interface TerminateConversation {
|
|
1428
|
+
post(options?: TerminateConversationParameters): StreamableMethod<TerminateConversation200Response | TerminateConversationDefaultResponse>;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
// @public (undocumented)
|
|
1432
|
+
export interface TerminateConversation200Headers {
|
|
1433
|
+
"repeatability-result"?: RepeatabilityResultOutput;
|
|
1434
|
+
"x-ms-client-request-id"?: string;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
// @public
|
|
1438
|
+
export interface TerminateConversation200Response extends HttpResponse {
|
|
1439
|
+
// (undocumented)
|
|
1440
|
+
headers: RawHttpHeaders & TerminateConversation200Headers;
|
|
1441
|
+
// (undocumented)
|
|
1442
|
+
status: "200";
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
// @public (undocumented)
|
|
1446
|
+
export interface TerminateConversationDefaultHeaders {
|
|
1447
|
+
"x-ms-error-code"?: string;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
// @public (undocumented)
|
|
1451
|
+
export interface TerminateConversationDefaultResponse extends HttpResponse {
|
|
1452
|
+
// (undocumented)
|
|
1453
|
+
body: ErrorResponse;
|
|
1454
|
+
// (undocumented)
|
|
1455
|
+
headers: RawHttpHeaders & TerminateConversationDefaultHeaders;
|
|
1456
|
+
// (undocumented)
|
|
1457
|
+
status: string;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
// @public (undocumented)
|
|
1461
|
+
export interface TerminateConversationHeaderParam {
|
|
1462
|
+
// (undocumented)
|
|
1463
|
+
headers?: RawHttpHeadersInput & TerminateConversationHeaders;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
// @public (undocumented)
|
|
1467
|
+
export interface TerminateConversationHeaders {
|
|
1468
|
+
"Repeatability-First-Sent"?: string;
|
|
1469
|
+
"Repeatability-Request-ID"?: string;
|
|
1470
|
+
"x-ms-client-request-id"?: string;
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
// @public (undocumented)
|
|
1474
|
+
export type TerminateConversationParameters = TerminateConversationHeaderParam & RequestParameters;
|
|
1475
|
+
|
|
1476
|
+
// @public
|
|
1477
|
+
export interface TextConversationMessageContent extends ConversationMessageContentParent {
|
|
1478
|
+
content: string;
|
|
1479
|
+
kind: "text";
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
// @public
|
|
1483
|
+
export interface TextConversationMessageContentOutput extends ConversationMessageContentOutputParent {
|
|
1484
|
+
content: string;
|
|
1485
|
+
kind: "text";
|
|
1486
|
+
}
|
|
1487
|
+
|
|
521
1488
|
// @public
|
|
522
1489
|
export interface TextMessageContent extends MessageContentParent {
|
|
523
1490
|
kind: "text";
|
|
@@ -530,6 +1497,26 @@ export interface TextNotificationContent extends NotificationContentParent {
|
|
|
530
1497
|
kind: "text";
|
|
531
1498
|
}
|
|
532
1499
|
|
|
1500
|
+
// @public
|
|
1501
|
+
export interface UpdateParticipantsResultOutput {
|
|
1502
|
+
error?: ErrorModel;
|
|
1503
|
+
id: string;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
// @public
|
|
1507
|
+
export interface VideoConversationMessageContent extends ConversationMessageContentParent {
|
|
1508
|
+
caption?: string;
|
|
1509
|
+
kind: "video";
|
|
1510
|
+
mediaUri: string;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
// @public
|
|
1514
|
+
export interface VideoConversationMessageContentOutput extends ConversationMessageContentOutputParent {
|
|
1515
|
+
caption?: string;
|
|
1516
|
+
kind: "video";
|
|
1517
|
+
mediaUri: string;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
533
1520
|
// @public
|
|
534
1521
|
export interface VideoMessageContent extends MessageContentParent {
|
|
535
1522
|
kind: "video";
|
|
@@ -549,6 +1536,16 @@ export interface WhatsAppButtonActionBindings extends ActionBindingsParent {
|
|
|
549
1536
|
kind: "whatsAppButtonAction";
|
|
550
1537
|
}
|
|
551
1538
|
|
|
1539
|
+
// @public
|
|
1540
|
+
export interface WhatsAppContact extends ContactParent {
|
|
1541
|
+
kind: "whatsApp";
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
// @public
|
|
1545
|
+
export interface WhatsAppContactOutput extends ContactOutputParent {
|
|
1546
|
+
kind: "whatsApp";
|
|
1547
|
+
}
|
|
1548
|
+
|
|
552
1549
|
// @public
|
|
553
1550
|
export interface WhatsAppListActionBindings extends ActionBindingsParent {
|
|
554
1551
|
content: ActionGroupContent;
|
|
@@ -558,6 +1555,9 @@ export interface WhatsAppListActionBindings extends ActionBindingsParent {
|
|
|
558
1555
|
// @public
|
|
559
1556
|
export type WhatsAppMessageButtonSubType = string;
|
|
560
1557
|
|
|
1558
|
+
// @public
|
|
1559
|
+
export type WhatsAppMessageButtonSubTypeOutput = string;
|
|
1560
|
+
|
|
561
1561
|
// @public
|
|
562
1562
|
export interface WhatsAppMessageTemplateBindings extends MessageTemplateBindingsParent {
|
|
563
1563
|
body?: Array<WhatsAppMessageTemplateBindingsComponent>;
|
|
@@ -573,11 +1573,31 @@ export interface WhatsAppMessageTemplateBindingsButton {
|
|
|
573
1573
|
subType: WhatsAppMessageButtonSubType;
|
|
574
1574
|
}
|
|
575
1575
|
|
|
1576
|
+
// @public
|
|
1577
|
+
export interface WhatsAppMessageTemplateBindingsButtonOutput {
|
|
1578
|
+
refValue: string;
|
|
1579
|
+
subType: WhatsAppMessageButtonSubTypeOutput;
|
|
1580
|
+
}
|
|
1581
|
+
|
|
576
1582
|
// @public
|
|
577
1583
|
export interface WhatsAppMessageTemplateBindingsComponent {
|
|
578
1584
|
refValue: string;
|
|
579
1585
|
}
|
|
580
1586
|
|
|
1587
|
+
// @public
|
|
1588
|
+
export interface WhatsAppMessageTemplateBindingsComponentOutput {
|
|
1589
|
+
refValue: string;
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
// @public
|
|
1593
|
+
export interface WhatsAppMessageTemplateBindingsOutput extends MessageTemplateBindingsOutputParent {
|
|
1594
|
+
body?: Array<WhatsAppMessageTemplateBindingsComponentOutput>;
|
|
1595
|
+
buttons?: Array<WhatsAppMessageTemplateBindingsButtonOutput>;
|
|
1596
|
+
footer?: Array<WhatsAppMessageTemplateBindingsComponentOutput>;
|
|
1597
|
+
header?: Array<WhatsAppMessageTemplateBindingsComponentOutput>;
|
|
1598
|
+
kind: "whatsApp";
|
|
1599
|
+
}
|
|
1600
|
+
|
|
581
1601
|
// @public
|
|
582
1602
|
export interface WhatsAppMessageTemplateItemOutput extends MessageTemplateItemOutputParent {
|
|
583
1603
|
content?: any;
|