@azure-rest/communication-messages 2.1.0-beta.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 +53 -0
- 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/commonjs/tsdoc-metadata.json +1 -1
- 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 +12 -10
- package/review/communication-messages.api.md +1615 -0
|
@@ -0,0 +1,1615 @@
|
|
|
1
|
+
## API Report File for "@azure-rest/communication-messages"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { ChatMessageReceivedEvent } from '@azure/communication-signaling';
|
|
8
|
+
import { ChatThreadPropertiesUpdatedEvent } from '@azure/communication-signaling';
|
|
9
|
+
import type { Client } from '@azure-rest/core-client';
|
|
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';
|
|
13
|
+
import type { ErrorResponse } from '@azure-rest/core-client';
|
|
14
|
+
import type { HttpResponse } from '@azure-rest/core-client';
|
|
15
|
+
import type { KeyCredential } from '@azure/core-auth';
|
|
16
|
+
import { ParticipantsAddedEvent } from '@azure/communication-signaling';
|
|
17
|
+
import { ParticipantsRemovedEvent } from '@azure/communication-signaling';
|
|
18
|
+
import type { PathUncheckedResponse } from '@azure-rest/core-client';
|
|
19
|
+
import type { RawHttpHeaders } from '@azure/core-rest-pipeline';
|
|
20
|
+
import type { RawHttpHeadersInput } from '@azure/core-rest-pipeline';
|
|
21
|
+
import type { RequestParameters } from '@azure-rest/core-client';
|
|
22
|
+
import type { StreamableMethod } from '@azure-rest/core-client';
|
|
23
|
+
import type { TokenCredential } from '@azure/core-auth';
|
|
24
|
+
|
|
25
|
+
// @public
|
|
26
|
+
export type ActionBindings = ActionBindingsParent | WhatsAppListActionBindings | WhatsAppButtonActionBindings | WhatsAppUrlActionBindings;
|
|
27
|
+
|
|
28
|
+
// @public
|
|
29
|
+
export interface ActionBindingsParent {
|
|
30
|
+
// (undocumented)
|
|
31
|
+
kind: MessageActionBindingKind;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// @public
|
|
35
|
+
export interface ActionGroup {
|
|
36
|
+
items: Array<ActionGroupItem>;
|
|
37
|
+
title: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// @public
|
|
41
|
+
export interface ActionGroupContent extends MessageContentParent {
|
|
42
|
+
groups: Array<ActionGroup>;
|
|
43
|
+
kind: "group";
|
|
44
|
+
title: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// @public
|
|
48
|
+
export interface ActionGroupItem {
|
|
49
|
+
description: string;
|
|
50
|
+
id: string;
|
|
51
|
+
title: string;
|
|
52
|
+
}
|
|
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
|
+
|
|
185
|
+
// @public
|
|
186
|
+
export interface AudioNotificationContent extends NotificationContentParent {
|
|
187
|
+
kind: "audio";
|
|
188
|
+
mediaUri: string;
|
|
189
|
+
}
|
|
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
|
+
|
|
203
|
+
// @public
|
|
204
|
+
export interface ButtonContent {
|
|
205
|
+
id: string;
|
|
206
|
+
title: string;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// @public
|
|
210
|
+
export interface ButtonSetContent extends MessageContentParent {
|
|
211
|
+
buttons: Array<ButtonContent>;
|
|
212
|
+
kind: "buttonSet";
|
|
213
|
+
}
|
|
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
|
+
|
|
232
|
+
// @public
|
|
233
|
+
export type CommunicationMessageKind = string;
|
|
234
|
+
|
|
235
|
+
// @public
|
|
236
|
+
export type CommunicationMessageKindOutput = string;
|
|
237
|
+
|
|
238
|
+
// @public
|
|
239
|
+
export type CommunicationMessagesChannelOutput = string;
|
|
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
|
+
|
|
355
|
+
// @public
|
|
356
|
+
function createClient(connectionString: string, options?: ClientOptions): MessagesServiceClient;
|
|
357
|
+
|
|
358
|
+
// @public
|
|
359
|
+
function createClient(endpoint: string, credential: KeyCredential | TokenCredential, options?: ClientOptions): MessagesServiceClient;
|
|
360
|
+
export default createClient;
|
|
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
|
+
|
|
464
|
+
// @public
|
|
465
|
+
export interface DocumentMessageContent extends MessageContentParent {
|
|
466
|
+
kind: "document";
|
|
467
|
+
mediaUri: string;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
// @public
|
|
471
|
+
export interface DocumentNotificationContent extends NotificationContentParent {
|
|
472
|
+
caption?: string;
|
|
473
|
+
fileName?: string;
|
|
474
|
+
kind: "document";
|
|
475
|
+
mediaUri: string;
|
|
476
|
+
}
|
|
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
|
+
|
|
490
|
+
// @public
|
|
491
|
+
export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
|
|
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
|
+
|
|
548
|
+
// @public (undocumented)
|
|
549
|
+
export interface GetMedia {
|
|
550
|
+
get(options?: GetMediaParameters): StreamableMethod<GetMedia200Response | GetMediaDefaultResponse>;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
// @public (undocumented)
|
|
554
|
+
export interface GetMedia200Headers {
|
|
555
|
+
"content-type": "application/octet-stream";
|
|
556
|
+
"x-ms-client-request-id"?: string;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
// @public
|
|
560
|
+
export interface GetMedia200Response extends HttpResponse {
|
|
561
|
+
body: Uint8Array;
|
|
562
|
+
// (undocumented)
|
|
563
|
+
headers: RawHttpHeaders & GetMedia200Headers;
|
|
564
|
+
// (undocumented)
|
|
565
|
+
status: "200";
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
// @public (undocumented)
|
|
569
|
+
export interface GetMediaDefaultHeaders {
|
|
570
|
+
"x-ms-error-code"?: string;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
// @public (undocumented)
|
|
574
|
+
export interface GetMediaDefaultResponse extends HttpResponse {
|
|
575
|
+
// (undocumented)
|
|
576
|
+
body: ErrorResponse;
|
|
577
|
+
// (undocumented)
|
|
578
|
+
headers: RawHttpHeaders & GetMediaDefaultHeaders;
|
|
579
|
+
// (undocumented)
|
|
580
|
+
status: string;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
// @public (undocumented)
|
|
584
|
+
export interface GetMediaHeaderParam {
|
|
585
|
+
// (undocumented)
|
|
586
|
+
headers?: RawHttpHeadersInput & GetMediaHeaders;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
// @public (undocumented)
|
|
590
|
+
export interface GetMediaHeaders {
|
|
591
|
+
"x-ms-client-request-id"?: string;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
// @public (undocumented)
|
|
595
|
+
export type GetMediaParameters = GetMediaHeaderParam & RequestParameters;
|
|
596
|
+
|
|
597
|
+
// @public
|
|
598
|
+
export type GetPage<TPage> = (pageLink: string) => Promise<{
|
|
599
|
+
page: TPage;
|
|
600
|
+
nextPageLink?: string;
|
|
601
|
+
}>;
|
|
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
|
+
|
|
617
|
+
// @public
|
|
618
|
+
export interface ImageMessageContent extends MessageContentParent {
|
|
619
|
+
kind: "image";
|
|
620
|
+
mediaUri: string;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
// @public
|
|
624
|
+
export interface ImageNotificationContent extends NotificationContentParent {
|
|
625
|
+
caption?: string;
|
|
626
|
+
kind: "image";
|
|
627
|
+
mediaUri: string;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
// @public
|
|
631
|
+
export interface InteractiveMessage {
|
|
632
|
+
action: ActionBindings;
|
|
633
|
+
body: TextMessageContent;
|
|
634
|
+
footer?: TextMessageContent;
|
|
635
|
+
header?: MessageContent;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
// @public
|
|
639
|
+
export interface InteractiveNotificationContent extends NotificationContentParent {
|
|
640
|
+
interactiveMessage: InteractiveMessage;
|
|
641
|
+
kind: "interactive";
|
|
642
|
+
}
|
|
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
|
+
|
|
656
|
+
// @public (undocumented)
|
|
657
|
+
export function isUnexpected(response: GetMedia200Response | GetMediaDefaultResponse): response is GetMediaDefaultResponse;
|
|
658
|
+
|
|
659
|
+
// @public (undocumented)
|
|
660
|
+
export function isUnexpected(response: Send202Response | SendDefaultResponse): response is SendDefaultResponse;
|
|
661
|
+
|
|
662
|
+
// @public (undocumented)
|
|
663
|
+
export function isUnexpected(response: ListTemplates200Response | ListTemplatesDefaultResponse): response is ListTemplatesDefaultResponse;
|
|
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
|
+
|
|
695
|
+
// @public
|
|
696
|
+
export interface LinkContent extends MessageContentParent {
|
|
697
|
+
kind: "url";
|
|
698
|
+
title: string;
|
|
699
|
+
url: string;
|
|
700
|
+
}
|
|
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
|
+
|
|
826
|
+
// @public (undocumented)
|
|
827
|
+
export interface ListTemplates {
|
|
828
|
+
get(options?: ListTemplatesParameters): StreamableMethod<ListTemplates200Response | ListTemplatesDefaultResponse>;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
// @public (undocumented)
|
|
832
|
+
export interface ListTemplates200Headers {
|
|
833
|
+
"x-ms-client-request-id"?: string;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
// @public
|
|
837
|
+
export interface ListTemplates200Response extends HttpResponse {
|
|
838
|
+
// (undocumented)
|
|
839
|
+
body: PagedMessageTemplateItemOutput;
|
|
840
|
+
// (undocumented)
|
|
841
|
+
headers: RawHttpHeaders & ListTemplates200Headers;
|
|
842
|
+
// (undocumented)
|
|
843
|
+
status: "200";
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
// @public (undocumented)
|
|
847
|
+
export interface ListTemplatesDefaultHeaders {
|
|
848
|
+
"x-ms-error-code"?: string;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
// @public (undocumented)
|
|
852
|
+
export interface ListTemplatesDefaultResponse extends HttpResponse {
|
|
853
|
+
// (undocumented)
|
|
854
|
+
body: ErrorResponse;
|
|
855
|
+
// (undocumented)
|
|
856
|
+
headers: RawHttpHeaders & ListTemplatesDefaultHeaders;
|
|
857
|
+
// (undocumented)
|
|
858
|
+
status: string;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
// @public (undocumented)
|
|
862
|
+
export interface ListTemplatesHeaderParam {
|
|
863
|
+
// (undocumented)
|
|
864
|
+
headers?: RawHttpHeadersInput & ListTemplatesHeaders;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
// @public (undocumented)
|
|
868
|
+
export interface ListTemplatesHeaders {
|
|
869
|
+
"x-ms-client-request-id"?: string;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
// @public (undocumented)
|
|
873
|
+
export type ListTemplatesParameters = ListTemplatesQueryParam & ListTemplatesHeaderParam & RequestParameters;
|
|
874
|
+
|
|
875
|
+
// @public (undocumented)
|
|
876
|
+
export interface ListTemplatesQueryParam {
|
|
877
|
+
// (undocumented)
|
|
878
|
+
queryParameters?: ListTemplatesQueryParamProperties;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
// @public (undocumented)
|
|
882
|
+
export interface ListTemplatesQueryParamProperties {
|
|
883
|
+
maxPageSize?: number;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
// @public @deprecated (undocumented)
|
|
887
|
+
export interface MediaNotificationContent extends NotificationContentParent {
|
|
888
|
+
content?: string;
|
|
889
|
+
kind: "image_v0";
|
|
890
|
+
mediaUri: string;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
// @public
|
|
894
|
+
export interface Message {
|
|
895
|
+
content: string;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
// @public
|
|
899
|
+
export type MessageActionBindingKind = string;
|
|
900
|
+
|
|
901
|
+
// @public
|
|
902
|
+
export type MessageContent = MessageContentParent | TextMessageContent | DocumentMessageContent | ImageMessageContent | VideoMessageContent | ButtonSetContent | LinkContent | ActionGroupContent;
|
|
903
|
+
|
|
904
|
+
// @public
|
|
905
|
+
export type MessageContentKind = string;
|
|
906
|
+
|
|
907
|
+
// @public
|
|
908
|
+
export interface MessageContentParent {
|
|
909
|
+
// (undocumented)
|
|
910
|
+
kind: MessageContentKind;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
// @public
|
|
914
|
+
export type MessagePlatformKind = string;
|
|
915
|
+
|
|
916
|
+
// @public
|
|
917
|
+
export type MessagePlatformKindOutput = string;
|
|
918
|
+
|
|
919
|
+
// @public
|
|
920
|
+
export interface MessageReceiptOutput {
|
|
921
|
+
messageId: string;
|
|
922
|
+
to: string;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
// @public (undocumented)
|
|
926
|
+
export type MessagesServiceClient = Client & {
|
|
927
|
+
path: Routes;
|
|
928
|
+
};
|
|
929
|
+
|
|
930
|
+
// @public
|
|
931
|
+
export interface MessagesServiceClientOptions extends ClientOptions {
|
|
932
|
+
apiVersion?: string;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
// @public
|
|
936
|
+
export interface MessageTemplate {
|
|
937
|
+
bindings?: MessageTemplateBindings;
|
|
938
|
+
language: string;
|
|
939
|
+
name: string;
|
|
940
|
+
values?: Array<MessageTemplateValue>;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
// @public
|
|
944
|
+
export type MessageTemplateBindings = MessageTemplateBindingsParent | WhatsAppMessageTemplateBindings;
|
|
945
|
+
|
|
946
|
+
// @public
|
|
947
|
+
export type MessageTemplateBindingsKind = string;
|
|
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
|
+
|
|
961
|
+
// @public
|
|
962
|
+
export interface MessageTemplateBindingsParent {
|
|
963
|
+
// (undocumented)
|
|
964
|
+
kind: MessageTemplateBindingsKind;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
// @public
|
|
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 {
|
|
985
|
+
caption?: string;
|
|
986
|
+
fileName?: string;
|
|
987
|
+
kind: "image";
|
|
988
|
+
url: string;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
// @public
|
|
992
|
+
export interface MessageTemplateImageOutput extends MessageTemplateValueOutputParent {
|
|
993
|
+
caption?: string;
|
|
994
|
+
fileName?: string;
|
|
995
|
+
kind: "image";
|
|
996
|
+
url: string;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
// @public
|
|
1000
|
+
export type MessageTemplateItemOutput = MessageTemplateItemOutputParent | WhatsAppMessageTemplateItemOutput;
|
|
1001
|
+
|
|
1002
|
+
// @public
|
|
1003
|
+
export interface MessageTemplateItemOutputParent {
|
|
1004
|
+
// (undocumented)
|
|
1005
|
+
kind: CommunicationMessagesChannelOutput;
|
|
1006
|
+
language: string;
|
|
1007
|
+
readonly name: string;
|
|
1008
|
+
status: MessageTemplateStatusOutput;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
// @public
|
|
1012
|
+
export interface MessageTemplateLocation extends MessageTemplateValueParent {
|
|
1013
|
+
address?: string;
|
|
1014
|
+
kind: "location";
|
|
1015
|
+
latitude: number;
|
|
1016
|
+
locationName?: string;
|
|
1017
|
+
longitude: number;
|
|
1018
|
+
}
|
|
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
|
+
|
|
1037
|
+
// @public
|
|
1038
|
+
export interface MessageTemplateQuickAction extends MessageTemplateValueParent {
|
|
1039
|
+
kind: "quickAction";
|
|
1040
|
+
payload?: string;
|
|
1041
|
+
text?: string;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
// @public
|
|
1045
|
+
export interface MessageTemplateQuickActionOutput extends MessageTemplateValueOutputParent {
|
|
1046
|
+
kind: "quickAction";
|
|
1047
|
+
payload?: string;
|
|
1048
|
+
text?: string;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
// @public
|
|
1052
|
+
export type MessageTemplateStatusOutput = string;
|
|
1053
|
+
|
|
1054
|
+
// @public
|
|
1055
|
+
export interface MessageTemplateText extends MessageTemplateValueParent {
|
|
1056
|
+
kind: "text";
|
|
1057
|
+
text: string;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
// @public
|
|
1061
|
+
export interface MessageTemplateTextOutput extends MessageTemplateValueOutputParent {
|
|
1062
|
+
kind: "text";
|
|
1063
|
+
text: string;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
// @public
|
|
1067
|
+
export type MessageTemplateValue = MessageTemplateValueParent | MessageTemplateText | MessageTemplateImage | MessageTemplateDocument | MessageTemplateVideo | MessageTemplateLocation | MessageTemplateQuickAction;
|
|
1068
|
+
|
|
1069
|
+
// @public
|
|
1070
|
+
export type MessageTemplateValueKind = string;
|
|
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
|
+
|
|
1085
|
+
// @public
|
|
1086
|
+
export interface MessageTemplateValueParent {
|
|
1087
|
+
// (undocumented)
|
|
1088
|
+
kind: MessageTemplateValueKind;
|
|
1089
|
+
name: string;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
// @public
|
|
1093
|
+
export interface MessageTemplateVideo extends MessageTemplateValueParent {
|
|
1094
|
+
caption?: string;
|
|
1095
|
+
fileName?: string;
|
|
1096
|
+
kind: "video";
|
|
1097
|
+
url: string;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
// @public
|
|
1101
|
+
export interface MessageTemplateVideoOutput extends MessageTemplateValueOutputParent {
|
|
1102
|
+
caption?: string;
|
|
1103
|
+
fileName?: string;
|
|
1104
|
+
kind: "video";
|
|
1105
|
+
url: string;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
// @public
|
|
1109
|
+
export type NotificationContent = NotificationContentParent | TextNotificationContent | MediaNotificationContent | ImageNotificationContent | DocumentNotificationContent | VideoNotificationContent | AudioNotificationContent | ReactionNotificationContent | StickerNotificationContent | InteractiveNotificationContent | TemplateNotificationContent;
|
|
1110
|
+
|
|
1111
|
+
// @public
|
|
1112
|
+
export interface NotificationContentParent {
|
|
1113
|
+
channelRegistrationId: string;
|
|
1114
|
+
// (undocumented)
|
|
1115
|
+
kind: CommunicationMessageKind;
|
|
1116
|
+
to: string[];
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
// @public
|
|
1120
|
+
export type OutboundDeliveryStrategyKind = string;
|
|
1121
|
+
|
|
1122
|
+
// @public
|
|
1123
|
+
export type OutboundDeliveryStrategyKindOutput = string;
|
|
1124
|
+
|
|
1125
|
+
// @public
|
|
1126
|
+
export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings = PageSettings> {
|
|
1127
|
+
[Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
1128
|
+
byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;
|
|
1129
|
+
next(): Promise<IteratorResult<TElement>>;
|
|
1130
|
+
}
|
|
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
|
+
|
|
1144
|
+
// @public
|
|
1145
|
+
export interface PagedMessageTemplateItemOutput {
|
|
1146
|
+
nextLink?: string;
|
|
1147
|
+
value: Array<MessageTemplateItemOutput>;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
// @public
|
|
1151
|
+
export interface PageSettings {
|
|
1152
|
+
continuationToken?: string;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
// @public
|
|
1156
|
+
export function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
|
|
1157
|
+
|
|
1158
|
+
// @public
|
|
1159
|
+
export type PaginateReturn<TResult> = TResult extends {
|
|
1160
|
+
body: {
|
|
1161
|
+
value?: infer TPage;
|
|
1162
|
+
};
|
|
1163
|
+
} ? GetArrayType<TPage> : Array<unknown>;
|
|
1164
|
+
|
|
1165
|
+
// @public
|
|
1166
|
+
export interface PagingOptions<TResponse> {
|
|
1167
|
+
customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
|
|
1168
|
+
}
|
|
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
|
+
|
|
1180
|
+
// @public
|
|
1181
|
+
export interface ReactionNotificationContent extends NotificationContentParent {
|
|
1182
|
+
emoji: string;
|
|
1183
|
+
kind: "reaction";
|
|
1184
|
+
messageId: string;
|
|
1185
|
+
}
|
|
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
|
+
|
|
1254
|
+
// @public
|
|
1255
|
+
export type RepeatabilityResultOutput = "accepted" | "rejected";
|
|
1256
|
+
|
|
1257
|
+
// @public (undocumented)
|
|
1258
|
+
export interface Routes {
|
|
1259
|
+
(path: "/messages/streams/{id}", id: string): GetMedia;
|
|
1260
|
+
(path: "/messages/notifications:send"): Send;
|
|
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;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
// @public (undocumented)
|
|
1273
|
+
export interface Send {
|
|
1274
|
+
post(options: SendParameters): StreamableMethod<Send202Response | SendDefaultResponse>;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
// @public (undocumented)
|
|
1278
|
+
export interface Send202Headers {
|
|
1279
|
+
"repeatability-result"?: RepeatabilityResultOutput;
|
|
1280
|
+
"x-ms-client-request-id"?: string;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
// @public
|
|
1284
|
+
export interface Send202Response extends HttpResponse {
|
|
1285
|
+
// (undocumented)
|
|
1286
|
+
body: SendMessageResultOutput;
|
|
1287
|
+
// (undocumented)
|
|
1288
|
+
headers: RawHttpHeaders & Send202Headers;
|
|
1289
|
+
// (undocumented)
|
|
1290
|
+
status: "202";
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
// @public (undocumented)
|
|
1294
|
+
export interface SendBodyParam {
|
|
1295
|
+
body: NotificationContent;
|
|
1296
|
+
}
|
|
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
|
+
|
|
1309
|
+
// @public (undocumented)
|
|
1310
|
+
export interface SendDefaultHeaders {
|
|
1311
|
+
"x-ms-error-code"?: string;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
// @public (undocumented)
|
|
1315
|
+
export interface SendDefaultResponse extends HttpResponse {
|
|
1316
|
+
// (undocumented)
|
|
1317
|
+
body: ErrorResponse;
|
|
1318
|
+
// (undocumented)
|
|
1319
|
+
headers: RawHttpHeaders & SendDefaultHeaders;
|
|
1320
|
+
// (undocumented)
|
|
1321
|
+
status: string;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
// @public (undocumented)
|
|
1325
|
+
export interface SendHeaderParam {
|
|
1326
|
+
// (undocumented)
|
|
1327
|
+
headers?: RawHttpHeadersInput & SendHeaders;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
// @public (undocumented)
|
|
1331
|
+
export interface SendHeaders {
|
|
1332
|
+
"Repeatability-First-Sent"?: string;
|
|
1333
|
+
"Repeatability-Request-ID"?: string;
|
|
1334
|
+
"x-ms-client-request-id"?: string;
|
|
1335
|
+
}
|
|
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
|
+
|
|
1394
|
+
// @public
|
|
1395
|
+
export interface SendMessageResultOutput {
|
|
1396
|
+
receipts: Array<MessageReceiptOutput>;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
// @public (undocumented)
|
|
1400
|
+
export type SendParameters = SendHeaderParam & SendBodyParam & RequestParameters;
|
|
1401
|
+
|
|
1402
|
+
// @public
|
|
1403
|
+
export interface StickerNotificationContent extends NotificationContentParent {
|
|
1404
|
+
kind: "sticker";
|
|
1405
|
+
mediaUri: string;
|
|
1406
|
+
}
|
|
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
|
+
|
|
1420
|
+
// @public
|
|
1421
|
+
export interface TemplateNotificationContent extends NotificationContentParent {
|
|
1422
|
+
kind: "template";
|
|
1423
|
+
template: MessageTemplate;
|
|
1424
|
+
}
|
|
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
|
+
|
|
1488
|
+
// @public
|
|
1489
|
+
export interface TextMessageContent extends MessageContentParent {
|
|
1490
|
+
kind: "text";
|
|
1491
|
+
text: string;
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
// @public
|
|
1495
|
+
export interface TextNotificationContent extends NotificationContentParent {
|
|
1496
|
+
content: string;
|
|
1497
|
+
kind: "text";
|
|
1498
|
+
}
|
|
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
|
+
|
|
1520
|
+
// @public
|
|
1521
|
+
export interface VideoMessageContent extends MessageContentParent {
|
|
1522
|
+
kind: "video";
|
|
1523
|
+
mediaUri: string;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
// @public
|
|
1527
|
+
export interface VideoNotificationContent extends NotificationContentParent {
|
|
1528
|
+
caption?: string;
|
|
1529
|
+
kind: "video";
|
|
1530
|
+
mediaUri: string;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
// @public
|
|
1534
|
+
export interface WhatsAppButtonActionBindings extends ActionBindingsParent {
|
|
1535
|
+
content: ButtonSetContent;
|
|
1536
|
+
kind: "whatsAppButtonAction";
|
|
1537
|
+
}
|
|
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
|
+
|
|
1549
|
+
// @public
|
|
1550
|
+
export interface WhatsAppListActionBindings extends ActionBindingsParent {
|
|
1551
|
+
content: ActionGroupContent;
|
|
1552
|
+
kind: "whatsAppListAction";
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
// @public
|
|
1556
|
+
export type WhatsAppMessageButtonSubType = string;
|
|
1557
|
+
|
|
1558
|
+
// @public
|
|
1559
|
+
export type WhatsAppMessageButtonSubTypeOutput = string;
|
|
1560
|
+
|
|
1561
|
+
// @public
|
|
1562
|
+
export interface WhatsAppMessageTemplateBindings extends MessageTemplateBindingsParent {
|
|
1563
|
+
body?: Array<WhatsAppMessageTemplateBindingsComponent>;
|
|
1564
|
+
buttons?: Array<WhatsAppMessageTemplateBindingsButton>;
|
|
1565
|
+
footer?: Array<WhatsAppMessageTemplateBindingsComponent>;
|
|
1566
|
+
header?: Array<WhatsAppMessageTemplateBindingsComponent>;
|
|
1567
|
+
kind: "whatsApp";
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
// @public
|
|
1571
|
+
export interface WhatsAppMessageTemplateBindingsButton {
|
|
1572
|
+
refValue: string;
|
|
1573
|
+
subType: WhatsAppMessageButtonSubType;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
// @public
|
|
1577
|
+
export interface WhatsAppMessageTemplateBindingsButtonOutput {
|
|
1578
|
+
refValue: string;
|
|
1579
|
+
subType: WhatsAppMessageButtonSubTypeOutput;
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
// @public
|
|
1583
|
+
export interface WhatsAppMessageTemplateBindingsComponent {
|
|
1584
|
+
refValue: string;
|
|
1585
|
+
}
|
|
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
|
+
|
|
1601
|
+
// @public
|
|
1602
|
+
export interface WhatsAppMessageTemplateItemOutput extends MessageTemplateItemOutputParent {
|
|
1603
|
+
content?: any;
|
|
1604
|
+
kind: "whatsApp";
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
// @public
|
|
1608
|
+
export interface WhatsAppUrlActionBindings extends ActionBindingsParent {
|
|
1609
|
+
content: LinkContent;
|
|
1610
|
+
kind: "whatsAppUrlAction";
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
// (No @packageDocumentation comment for this package)
|
|
1614
|
+
|
|
1615
|
+
```
|