ch-chat-api-typescript-axios 1.0.3

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.
Files changed (68) hide show
  1. package/README.md +25 -0
  2. package/dist/api/chat-api.d.ts +654 -0
  3. package/dist/api/chat-api.js +835 -0
  4. package/dist/api/chat-api.js.map +1 -0
  5. package/dist/api.d.ts +12 -0
  6. package/dist/api.js +31 -0
  7. package/dist/api.js.map +1 -0
  8. package/dist/base.d.ts +66 -0
  9. package/dist/base.js +69 -0
  10. package/dist/base.js.map +1 -0
  11. package/dist/common.d.ts +65 -0
  12. package/dist/common.js +162 -0
  13. package/dist/common.js.map +1 -0
  14. package/dist/configuration.d.ts +91 -0
  15. package/dist/configuration.js +44 -0
  16. package/dist/configuration.js.map +1 -0
  17. package/dist/index.d.ts +14 -0
  18. package/dist/index.js +33 -0
  19. package/dist/index.js.map +1 -0
  20. package/dist/models/auth-roles.d.ts +21 -0
  21. package/dist/models/auth-roles.js +26 -0
  22. package/dist/models/auth-roles.js.map +1 -0
  23. package/dist/models/chat-message-model.d.ts +74 -0
  24. package/dist/models/chat-message-model.js +16 -0
  25. package/dist/models/chat-message-model.js.map +1 -0
  26. package/dist/models/chat-messages-model.d.ts +32 -0
  27. package/dist/models/chat-messages-model.js +16 -0
  28. package/dist/models/chat-messages-model.js.map +1 -0
  29. package/dist/models/chat-participant-model.d.ts +74 -0
  30. package/dist/models/chat-participant-model.js +16 -0
  31. package/dist/models/chat-participant-model.js.map +1 -0
  32. package/dist/models/chat-send-message-command.d.ts +31 -0
  33. package/dist/models/chat-send-message-command.js +16 -0
  34. package/dist/models/chat-send-message-command.js.map +1 -0
  35. package/dist/models/chat-session-model.d.ts +90 -0
  36. package/dist/models/chat-session-model.js +16 -0
  37. package/dist/models/chat-session-model.js.map +1 -0
  38. package/dist/models/chat-sessions-model.d.ts +32 -0
  39. package/dist/models/chat-sessions-model.js +16 -0
  40. package/dist/models/chat-sessions-model.js.map +1 -0
  41. package/dist/models/create-chat-session-command.d.ts +37 -0
  42. package/dist/models/create-chat-session-command.js +16 -0
  43. package/dist/models/create-chat-session-command.js.map +1 -0
  44. package/dist/models/index.d.ts +15 -0
  45. package/dist/models/index.js +32 -0
  46. package/dist/models/index.js.map +1 -0
  47. package/dist/models/join-chat-session-command.d.ts +31 -0
  48. package/dist/models/join-chat-session-command.js +16 -0
  49. package/dist/models/join-chat-session-command.js.map +1 -0
  50. package/dist/models/message-types.d.ts +20 -0
  51. package/dist/models/message-types.js +25 -0
  52. package/dist/models/message-types.js.map +1 -0
  53. package/dist/models/paged-list-meta-data.d.ts +78 -0
  54. package/dist/models/paged-list-meta-data.js +16 -0
  55. package/dist/models/paged-list-meta-data.js.map +1 -0
  56. package/dist/models/platform-types.d.ts +22 -0
  57. package/dist/models/platform-types.js +27 -0
  58. package/dist/models/platform-types.js.map +1 -0
  59. package/dist/models/problem-details.d.ts +49 -0
  60. package/dist/models/problem-details.js +16 -0
  61. package/dist/models/problem-details.js.map +1 -0
  62. package/dist/models/put-chat-session-command.d.ts +30 -0
  63. package/dist/models/put-chat-session-command.js +16 -0
  64. package/dist/models/put-chat-session-command.js.map +1 -0
  65. package/dist/models/transfer-manager-command.d.ts +36 -0
  66. package/dist/models/transfer-manager-command.js +16 -0
  67. package/dist/models/transfer-manager-command.js.map +1 -0
  68. package/package.json +60 -0
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # CH Chat API TypeScript Axios Client
2
+
3
+ A strongly-typed HTTP client for the CH Chat API, generated from OpenAPI specification. This package provides an Axios-based client with complete TypeScript type definitions for the CH Chat API.
4
+
5
+ ## 🚀 Installation
6
+
7
+ ```bash
8
+ npm install ch-chat-api-typescript-axios
9
+ ```
10
+
11
+ ## 📚 Usage
12
+
13
+ ```typescript
14
+ import { ChatApiClient } from 'ch-chat-api-typescript-axios';
15
+
16
+ const client = new ChatApiClient({
17
+ baseUrl: 'https://chat-api-int.icloudhospital.com',
18
+ accessToken: 'your-access-token',
19
+ });
20
+ ```
21
+
22
+ ## 📚 Documentation
23
+
24
+ For detailed documentation and usage examples, please refer to the [API Documentation](https://chat-api-int.icloudhospital.com/swagger/index.html).
25
+
@@ -0,0 +1,654 @@
1
+ /**
2
+ * Cloudhospital.ChatApi
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { ChatMessageModel } from '../models';
16
+ import type { ChatMessagesModel } from '../models';
17
+ import type { ChatParticipantModel } from '../models';
18
+ import type { ChatSendMessageCommand } from '../models';
19
+ import type { ChatSessionModel } from '../models';
20
+ import type { ChatSessionsModel } from '../models';
21
+ import type { CreateChatSessionCommand } from '../models';
22
+ import type { JoinChatSessionCommand } from '../models';
23
+ import type { PutChatSessionCommand } from '../models';
24
+ import type { TransferManagerCommand } from '../models';
25
+ /**
26
+ * ChatApi - axios parameter creator
27
+ * @export
28
+ */
29
+ export declare const ChatApiAxiosParamCreator: (configuration?: Configuration) => {
30
+ /**
31
+ *
32
+ * @param {string} tenantId
33
+ * @param {string} [id]
34
+ * @param {string} [assigneeId]
35
+ * @param {string} [title]
36
+ * @param {string} [userName]
37
+ * @param {string} [userEmail]
38
+ * @param {number} [page]
39
+ * @param {number} [limit]
40
+ * @param {Date} [lastRetrieved]
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ apiV1ChatTenantIdSessionsGet: (tenantId: string, id?: string, assigneeId?: string, title?: string, userName?: string, userEmail?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
45
+ /**
46
+ *
47
+ * @param {string} tenantId
48
+ * @param {CreateChatSessionCommand} [createChatSessionCommand]
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ apiV1ChatTenantIdSessionsPost: (tenantId: string, createChatSessionCommand?: CreateChatSessionCommand, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
53
+ /**
54
+ *
55
+ * @param {string} tenantId
56
+ * @param {string} sessionId
57
+ * @param {*} [options] Override http request option.
58
+ * @throws {RequiredError}
59
+ */
60
+ apiV1ChatTenantIdSessionsSessionIdDelete: (tenantId: string, sessionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
61
+ /**
62
+ *
63
+ * @param {string} tenantId
64
+ * @param {string} sessionId
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ apiV1ChatTenantIdSessionsSessionIdGet: (tenantId: string, sessionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
69
+ /**
70
+ *
71
+ * @param {string} tenantId
72
+ * @param {string} sessionId
73
+ * @param {JoinChatSessionCommand} [joinChatSessionCommand]
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ */
77
+ apiV1ChatTenantIdSessionsSessionIdJoinPost: (tenantId: string, sessionId: string, joinChatSessionCommand?: JoinChatSessionCommand, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
78
+ /**
79
+ *
80
+ * @param {string} tenantId
81
+ * @param {string} sessionId
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ apiV1ChatTenantIdSessionsSessionIdLeaveDelete: (tenantId: string, sessionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
86
+ /**
87
+ *
88
+ * @param {string} tenantId
89
+ * @param {string} sessionId
90
+ * @param {number} [skip]
91
+ * @param {number} [take]
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ apiV1ChatTenantIdSessionsSessionIdMessagesGet: (tenantId: string, sessionId: string, skip?: number, take?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
96
+ /**
97
+ *
98
+ * @param {string} tenantId
99
+ * @param {string} sessionId
100
+ * @param {ChatSendMessageCommand} [chatSendMessageCommand]
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ apiV1ChatTenantIdSessionsSessionIdMessagesPost: (tenantId: string, sessionId: string, chatSendMessageCommand?: ChatSendMessageCommand, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
105
+ /**
106
+ *
107
+ * @param {string} tenantId
108
+ * @param {string} sessionId
109
+ * @param {PutChatSessionCommand} [putChatSessionCommand]
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ */
113
+ apiV1ChatTenantIdSessionsSessionIdPatch: (tenantId: string, sessionId: string, putChatSessionCommand?: PutChatSessionCommand, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
114
+ /**
115
+ *
116
+ * @param {string} tenantId
117
+ * @param {string} sessionId
118
+ * @param {TransferManagerCommand} [transferManagerCommand]
119
+ * @param {*} [options] Override http request option.
120
+ * @throws {RequiredError}
121
+ */
122
+ apiV1ChatTenantIdSessionsSessionIdTransferPut: (tenantId: string, sessionId: string, transferManagerCommand?: TransferManagerCommand, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
123
+ };
124
+ /**
125
+ * ChatApi - functional programming interface
126
+ * @export
127
+ */
128
+ export declare const ChatApiFp: (configuration?: Configuration) => {
129
+ /**
130
+ *
131
+ * @param {string} tenantId
132
+ * @param {string} [id]
133
+ * @param {string} [assigneeId]
134
+ * @param {string} [title]
135
+ * @param {string} [userName]
136
+ * @param {string} [userEmail]
137
+ * @param {number} [page]
138
+ * @param {number} [limit]
139
+ * @param {Date} [lastRetrieved]
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ apiV1ChatTenantIdSessionsGet(tenantId: string, id?: string, assigneeId?: string, title?: string, userName?: string, userEmail?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatSessionsModel>>;
144
+ /**
145
+ *
146
+ * @param {string} tenantId
147
+ * @param {CreateChatSessionCommand} [createChatSessionCommand]
148
+ * @param {*} [options] Override http request option.
149
+ * @throws {RequiredError}
150
+ */
151
+ apiV1ChatTenantIdSessionsPost(tenantId: string, createChatSessionCommand?: CreateChatSessionCommand, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatSessionModel>>;
152
+ /**
153
+ *
154
+ * @param {string} tenantId
155
+ * @param {string} sessionId
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ apiV1ChatTenantIdSessionsSessionIdDelete(tenantId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
160
+ /**
161
+ *
162
+ * @param {string} tenantId
163
+ * @param {string} sessionId
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ apiV1ChatTenantIdSessionsSessionIdGet(tenantId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatSessionModel>>;
168
+ /**
169
+ *
170
+ * @param {string} tenantId
171
+ * @param {string} sessionId
172
+ * @param {JoinChatSessionCommand} [joinChatSessionCommand]
173
+ * @param {*} [options] Override http request option.
174
+ * @throws {RequiredError}
175
+ */
176
+ apiV1ChatTenantIdSessionsSessionIdJoinPost(tenantId: string, sessionId: string, joinChatSessionCommand?: JoinChatSessionCommand, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatParticipantModel>>;
177
+ /**
178
+ *
179
+ * @param {string} tenantId
180
+ * @param {string} sessionId
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ apiV1ChatTenantIdSessionsSessionIdLeaveDelete(tenantId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatParticipantModel>>;
185
+ /**
186
+ *
187
+ * @param {string} tenantId
188
+ * @param {string} sessionId
189
+ * @param {number} [skip]
190
+ * @param {number} [take]
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ apiV1ChatTenantIdSessionsSessionIdMessagesGet(tenantId: string, sessionId: string, skip?: number, take?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesModel>>;
195
+ /**
196
+ *
197
+ * @param {string} tenantId
198
+ * @param {string} sessionId
199
+ * @param {ChatSendMessageCommand} [chatSendMessageCommand]
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ apiV1ChatTenantIdSessionsSessionIdMessagesPost(tenantId: string, sessionId: string, chatSendMessageCommand?: ChatSendMessageCommand, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessageModel>>;
204
+ /**
205
+ *
206
+ * @param {string} tenantId
207
+ * @param {string} sessionId
208
+ * @param {PutChatSessionCommand} [putChatSessionCommand]
209
+ * @param {*} [options] Override http request option.
210
+ * @throws {RequiredError}
211
+ */
212
+ apiV1ChatTenantIdSessionsSessionIdPatch(tenantId: string, sessionId: string, putChatSessionCommand?: PutChatSessionCommand, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatSessionsModel>>;
213
+ /**
214
+ *
215
+ * @param {string} tenantId
216
+ * @param {string} sessionId
217
+ * @param {TransferManagerCommand} [transferManagerCommand]
218
+ * @param {*} [options] Override http request option.
219
+ * @throws {RequiredError}
220
+ */
221
+ apiV1ChatTenantIdSessionsSessionIdTransferPut(tenantId: string, sessionId: string, transferManagerCommand?: TransferManagerCommand, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatParticipantModel>>;
222
+ };
223
+ /**
224
+ * ChatApi - factory interface
225
+ * @export
226
+ */
227
+ export declare const ChatApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
228
+ /**
229
+ *
230
+ * @param {ChatApiApiV1ChatTenantIdSessionsGetRequest} requestParameters Request parameters.
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ apiV1ChatTenantIdSessionsGet(requestParameters: ChatApiApiV1ChatTenantIdSessionsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatSessionsModel>;
235
+ /**
236
+ *
237
+ * @param {ChatApiApiV1ChatTenantIdSessionsPostRequest} requestParameters Request parameters.
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ */
241
+ apiV1ChatTenantIdSessionsPost(requestParameters: ChatApiApiV1ChatTenantIdSessionsPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatSessionModel>;
242
+ /**
243
+ *
244
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdDeleteRequest} requestParameters Request parameters.
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ */
248
+ apiV1ChatTenantIdSessionsSessionIdDelete(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
249
+ /**
250
+ *
251
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdGetRequest} requestParameters Request parameters.
252
+ * @param {*} [options] Override http request option.
253
+ * @throws {RequiredError}
254
+ */
255
+ apiV1ChatTenantIdSessionsSessionIdGet(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatSessionModel>;
256
+ /**
257
+ *
258
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdJoinPostRequest} requestParameters Request parameters.
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ apiV1ChatTenantIdSessionsSessionIdJoinPost(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdJoinPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatParticipantModel>;
263
+ /**
264
+ *
265
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest} requestParameters Request parameters.
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ */
269
+ apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatParticipantModel>;
270
+ /**
271
+ *
272
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesGetRequest} requestParameters Request parameters.
273
+ * @param {*} [options] Override http request option.
274
+ * @throws {RequiredError}
275
+ */
276
+ apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesModel>;
277
+ /**
278
+ *
279
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesPostRequest} requestParameters Request parameters.
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ */
283
+ apiV1ChatTenantIdSessionsSessionIdMessagesPost(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessageModel>;
284
+ /**
285
+ *
286
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdPatchRequest} requestParameters Request parameters.
287
+ * @param {*} [options] Override http request option.
288
+ * @throws {RequiredError}
289
+ */
290
+ apiV1ChatTenantIdSessionsSessionIdPatch(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdPatchRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatSessionsModel>;
291
+ /**
292
+ *
293
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest} requestParameters Request parameters.
294
+ * @param {*} [options] Override http request option.
295
+ * @throws {RequiredError}
296
+ */
297
+ apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatParticipantModel>;
298
+ };
299
+ /**
300
+ * Request parameters for apiV1ChatTenantIdSessionsGet operation in ChatApi.
301
+ * @export
302
+ * @interface ChatApiApiV1ChatTenantIdSessionsGetRequest
303
+ */
304
+ export interface ChatApiApiV1ChatTenantIdSessionsGetRequest {
305
+ /**
306
+ *
307
+ * @type {string}
308
+ * @memberof ChatApiApiV1ChatTenantIdSessionsGet
309
+ */
310
+ readonly tenantId: string;
311
+ /**
312
+ *
313
+ * @type {string}
314
+ * @memberof ChatApiApiV1ChatTenantIdSessionsGet
315
+ */
316
+ readonly id?: string;
317
+ /**
318
+ *
319
+ * @type {string}
320
+ * @memberof ChatApiApiV1ChatTenantIdSessionsGet
321
+ */
322
+ readonly assigneeId?: string;
323
+ /**
324
+ *
325
+ * @type {string}
326
+ * @memberof ChatApiApiV1ChatTenantIdSessionsGet
327
+ */
328
+ readonly title?: string;
329
+ /**
330
+ *
331
+ * @type {string}
332
+ * @memberof ChatApiApiV1ChatTenantIdSessionsGet
333
+ */
334
+ readonly userName?: string;
335
+ /**
336
+ *
337
+ * @type {string}
338
+ * @memberof ChatApiApiV1ChatTenantIdSessionsGet
339
+ */
340
+ readonly userEmail?: string;
341
+ /**
342
+ *
343
+ * @type {number}
344
+ * @memberof ChatApiApiV1ChatTenantIdSessionsGet
345
+ */
346
+ readonly page?: number;
347
+ /**
348
+ *
349
+ * @type {number}
350
+ * @memberof ChatApiApiV1ChatTenantIdSessionsGet
351
+ */
352
+ readonly limit?: number;
353
+ /**
354
+ *
355
+ * @type {Date}
356
+ * @memberof ChatApiApiV1ChatTenantIdSessionsGet
357
+ */
358
+ readonly lastRetrieved?: Date;
359
+ }
360
+ /**
361
+ * Request parameters for apiV1ChatTenantIdSessionsPost operation in ChatApi.
362
+ * @export
363
+ * @interface ChatApiApiV1ChatTenantIdSessionsPostRequest
364
+ */
365
+ export interface ChatApiApiV1ChatTenantIdSessionsPostRequest {
366
+ /**
367
+ *
368
+ * @type {string}
369
+ * @memberof ChatApiApiV1ChatTenantIdSessionsPost
370
+ */
371
+ readonly tenantId: string;
372
+ /**
373
+ *
374
+ * @type {CreateChatSessionCommand}
375
+ * @memberof ChatApiApiV1ChatTenantIdSessionsPost
376
+ */
377
+ readonly createChatSessionCommand?: CreateChatSessionCommand;
378
+ }
379
+ /**
380
+ * Request parameters for apiV1ChatTenantIdSessionsSessionIdDelete operation in ChatApi.
381
+ * @export
382
+ * @interface ChatApiApiV1ChatTenantIdSessionsSessionIdDeleteRequest
383
+ */
384
+ export interface ChatApiApiV1ChatTenantIdSessionsSessionIdDeleteRequest {
385
+ /**
386
+ *
387
+ * @type {string}
388
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdDelete
389
+ */
390
+ readonly tenantId: string;
391
+ /**
392
+ *
393
+ * @type {string}
394
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdDelete
395
+ */
396
+ readonly sessionId: string;
397
+ }
398
+ /**
399
+ * Request parameters for apiV1ChatTenantIdSessionsSessionIdGet operation in ChatApi.
400
+ * @export
401
+ * @interface ChatApiApiV1ChatTenantIdSessionsSessionIdGetRequest
402
+ */
403
+ export interface ChatApiApiV1ChatTenantIdSessionsSessionIdGetRequest {
404
+ /**
405
+ *
406
+ * @type {string}
407
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdGet
408
+ */
409
+ readonly tenantId: string;
410
+ /**
411
+ *
412
+ * @type {string}
413
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdGet
414
+ */
415
+ readonly sessionId: string;
416
+ }
417
+ /**
418
+ * Request parameters for apiV1ChatTenantIdSessionsSessionIdJoinPost operation in ChatApi.
419
+ * @export
420
+ * @interface ChatApiApiV1ChatTenantIdSessionsSessionIdJoinPostRequest
421
+ */
422
+ export interface ChatApiApiV1ChatTenantIdSessionsSessionIdJoinPostRequest {
423
+ /**
424
+ *
425
+ * @type {string}
426
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdJoinPost
427
+ */
428
+ readonly tenantId: string;
429
+ /**
430
+ *
431
+ * @type {string}
432
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdJoinPost
433
+ */
434
+ readonly sessionId: string;
435
+ /**
436
+ *
437
+ * @type {JoinChatSessionCommand}
438
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdJoinPost
439
+ */
440
+ readonly joinChatSessionCommand?: JoinChatSessionCommand;
441
+ }
442
+ /**
443
+ * Request parameters for apiV1ChatTenantIdSessionsSessionIdLeaveDelete operation in ChatApi.
444
+ * @export
445
+ * @interface ChatApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest
446
+ */
447
+ export interface ChatApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest {
448
+ /**
449
+ *
450
+ * @type {string}
451
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdLeaveDelete
452
+ */
453
+ readonly tenantId: string;
454
+ /**
455
+ *
456
+ * @type {string}
457
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdLeaveDelete
458
+ */
459
+ readonly sessionId: string;
460
+ }
461
+ /**
462
+ * Request parameters for apiV1ChatTenantIdSessionsSessionIdMessagesGet operation in ChatApi.
463
+ * @export
464
+ * @interface ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesGetRequest
465
+ */
466
+ export interface ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesGetRequest {
467
+ /**
468
+ *
469
+ * @type {string}
470
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesGet
471
+ */
472
+ readonly tenantId: string;
473
+ /**
474
+ *
475
+ * @type {string}
476
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesGet
477
+ */
478
+ readonly sessionId: string;
479
+ /**
480
+ *
481
+ * @type {number}
482
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesGet
483
+ */
484
+ readonly skip?: number;
485
+ /**
486
+ *
487
+ * @type {number}
488
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesGet
489
+ */
490
+ readonly take?: number;
491
+ }
492
+ /**
493
+ * Request parameters for apiV1ChatTenantIdSessionsSessionIdMessagesPost operation in ChatApi.
494
+ * @export
495
+ * @interface ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesPostRequest
496
+ */
497
+ export interface ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesPostRequest {
498
+ /**
499
+ *
500
+ * @type {string}
501
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesPost
502
+ */
503
+ readonly tenantId: string;
504
+ /**
505
+ *
506
+ * @type {string}
507
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesPost
508
+ */
509
+ readonly sessionId: string;
510
+ /**
511
+ *
512
+ * @type {ChatSendMessageCommand}
513
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesPost
514
+ */
515
+ readonly chatSendMessageCommand?: ChatSendMessageCommand;
516
+ }
517
+ /**
518
+ * Request parameters for apiV1ChatTenantIdSessionsSessionIdPatch operation in ChatApi.
519
+ * @export
520
+ * @interface ChatApiApiV1ChatTenantIdSessionsSessionIdPatchRequest
521
+ */
522
+ export interface ChatApiApiV1ChatTenantIdSessionsSessionIdPatchRequest {
523
+ /**
524
+ *
525
+ * @type {string}
526
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdPatch
527
+ */
528
+ readonly tenantId: string;
529
+ /**
530
+ *
531
+ * @type {string}
532
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdPatch
533
+ */
534
+ readonly sessionId: string;
535
+ /**
536
+ *
537
+ * @type {PutChatSessionCommand}
538
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdPatch
539
+ */
540
+ readonly putChatSessionCommand?: PutChatSessionCommand;
541
+ }
542
+ /**
543
+ * Request parameters for apiV1ChatTenantIdSessionsSessionIdTransferPut operation in ChatApi.
544
+ * @export
545
+ * @interface ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest
546
+ */
547
+ export interface ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest {
548
+ /**
549
+ *
550
+ * @type {string}
551
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPut
552
+ */
553
+ readonly tenantId: string;
554
+ /**
555
+ *
556
+ * @type {string}
557
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPut
558
+ */
559
+ readonly sessionId: string;
560
+ /**
561
+ *
562
+ * @type {TransferManagerCommand}
563
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPut
564
+ */
565
+ readonly transferManagerCommand?: TransferManagerCommand;
566
+ }
567
+ /**
568
+ * ChatApi - object-oriented interface
569
+ * @export
570
+ * @class ChatApi
571
+ * @extends {BaseAPI}
572
+ */
573
+ export declare class ChatApi extends BaseAPI {
574
+ /**
575
+ *
576
+ * @param {ChatApiApiV1ChatTenantIdSessionsGetRequest} requestParameters Request parameters.
577
+ * @param {*} [options] Override http request option.
578
+ * @throws {RequiredError}
579
+ * @memberof ChatApi
580
+ */
581
+ apiV1ChatTenantIdSessionsGet(requestParameters: ChatApiApiV1ChatTenantIdSessionsGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatSessionsModel, any>>;
582
+ /**
583
+ *
584
+ * @param {ChatApiApiV1ChatTenantIdSessionsPostRequest} requestParameters Request parameters.
585
+ * @param {*} [options] Override http request option.
586
+ * @throws {RequiredError}
587
+ * @memberof ChatApi
588
+ */
589
+ apiV1ChatTenantIdSessionsPost(requestParameters: ChatApiApiV1ChatTenantIdSessionsPostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatSessionModel, any>>;
590
+ /**
591
+ *
592
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdDeleteRequest} requestParameters Request parameters.
593
+ * @param {*} [options] Override http request option.
594
+ * @throws {RequiredError}
595
+ * @memberof ChatApi
596
+ */
597
+ apiV1ChatTenantIdSessionsSessionIdDelete(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdDeleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
598
+ /**
599
+ *
600
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdGetRequest} requestParameters Request parameters.
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ * @memberof ChatApi
604
+ */
605
+ apiV1ChatTenantIdSessionsSessionIdGet(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatSessionModel, any>>;
606
+ /**
607
+ *
608
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdJoinPostRequest} requestParameters Request parameters.
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ * @memberof ChatApi
612
+ */
613
+ apiV1ChatTenantIdSessionsSessionIdJoinPost(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdJoinPostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatParticipantModel, any>>;
614
+ /**
615
+ *
616
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest} requestParameters Request parameters.
617
+ * @param {*} [options] Override http request option.
618
+ * @throws {RequiredError}
619
+ * @memberof ChatApi
620
+ */
621
+ apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatParticipantModel, any>>;
622
+ /**
623
+ *
624
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesGetRequest} requestParameters Request parameters.
625
+ * @param {*} [options] Override http request option.
626
+ * @throws {RequiredError}
627
+ * @memberof ChatApi
628
+ */
629
+ apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesModel, any>>;
630
+ /**
631
+ *
632
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesPostRequest} requestParameters Request parameters.
633
+ * @param {*} [options] Override http request option.
634
+ * @throws {RequiredError}
635
+ * @memberof ChatApi
636
+ */
637
+ apiV1ChatTenantIdSessionsSessionIdMessagesPost(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesPostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessageModel, any>>;
638
+ /**
639
+ *
640
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdPatchRequest} requestParameters Request parameters.
641
+ * @param {*} [options] Override http request option.
642
+ * @throws {RequiredError}
643
+ * @memberof ChatApi
644
+ */
645
+ apiV1ChatTenantIdSessionsSessionIdPatch(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdPatchRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatSessionsModel, any>>;
646
+ /**
647
+ *
648
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest} requestParameters Request parameters.
649
+ * @param {*} [options] Override http request option.
650
+ * @throws {RequiredError}
651
+ * @memberof ChatApi
652
+ */
653
+ apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatParticipantModel, any>>;
654
+ }