@easyedu/js-lsm-api 1.57.0 → 1.59.0

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 (132) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +8 -3
  4. package/dist/apis/CertificateApi.d.ts +10 -1
  5. package/dist/apis/CertificateApi.js +34 -25
  6. package/dist/apis/ChatApi.d.ts +6 -1
  7. package/dist/apis/ChatApi.js +15 -10
  8. package/dist/apis/ContentApi.d.ts +22 -1
  9. package/dist/apis/ContentApi.js +101 -80
  10. package/dist/apis/CourseApi.d.ts +14 -1
  11. package/dist/apis/CourseApi.js +50 -37
  12. package/dist/apis/CourseCatalogApi.d.ts +4 -1
  13. package/dist/apis/CourseCatalogApi.js +19 -16
  14. package/dist/apis/CourseShareApi.d.ts +5 -1
  15. package/dist/apis/CourseShareApi.js +18 -14
  16. package/dist/apis/ModuleApi.d.ts +6 -1
  17. package/dist/apis/ModuleApi.js +24 -19
  18. package/dist/apis/PortalApi.d.ts +11 -3
  19. package/dist/apis/PortalApi.js +31 -22
  20. package/dist/apis/PortalSublicenseApi.d.ts +2 -1
  21. package/dist/apis/PortalSublicenseApi.js +5 -4
  22. package/dist/apis/QuestionApi.d.ts +4 -1
  23. package/dist/apis/QuestionApi.js +13 -10
  24. package/dist/apis/QuizApi.d.ts +22 -1
  25. package/dist/apis/QuizApi.js +82 -61
  26. package/dist/apis/ReportingApi.d.ts +9 -1
  27. package/dist/apis/ReportingApi.js +39 -31
  28. package/dist/apis/RoleApi.d.ts +6 -1
  29. package/dist/apis/RoleApi.js +27 -22
  30. package/dist/apis/SupportTicketApi.d.ts +8 -1
  31. package/dist/apis/SupportTicketApi.js +26 -19
  32. package/dist/apis/UserApi.d.ts +38 -1
  33. package/dist/apis/UserApi.js +115 -10
  34. package/dist/esm/apis/CertificateApi.d.ts +10 -1
  35. package/dist/esm/apis/CertificateApi.js +19 -10
  36. package/dist/esm/apis/ChatApi.d.ts +6 -1
  37. package/dist/esm/apis/ChatApi.js +9 -4
  38. package/dist/esm/apis/ContentApi.d.ts +22 -1
  39. package/dist/esm/apis/ContentApi.js +74 -53
  40. package/dist/esm/apis/CourseApi.d.ts +14 -1
  41. package/dist/esm/apis/CourseApi.js +30 -17
  42. package/dist/esm/apis/CourseCatalogApi.d.ts +4 -1
  43. package/dist/esm/apis/CourseCatalogApi.js +12 -9
  44. package/dist/esm/apis/CourseShareApi.d.ts +5 -1
  45. package/dist/esm/apis/CourseShareApi.js +12 -8
  46. package/dist/esm/apis/ModuleApi.d.ts +6 -1
  47. package/dist/esm/apis/ModuleApi.js +15 -10
  48. package/dist/esm/apis/PortalApi.d.ts +11 -3
  49. package/dist/esm/apis/PortalApi.js +21 -12
  50. package/dist/esm/apis/PortalSublicenseApi.d.ts +2 -1
  51. package/dist/esm/apis/PortalSublicenseApi.js +3 -2
  52. package/dist/esm/apis/QuestionApi.d.ts +4 -1
  53. package/dist/esm/apis/QuestionApi.js +7 -4
  54. package/dist/esm/apis/QuizApi.d.ts +22 -1
  55. package/dist/esm/apis/QuizApi.js +53 -32
  56. package/dist/esm/apis/ReportingApi.d.ts +9 -1
  57. package/dist/esm/apis/ReportingApi.js +30 -22
  58. package/dist/esm/apis/RoleApi.d.ts +6 -1
  59. package/dist/esm/apis/RoleApi.js +18 -13
  60. package/dist/esm/apis/SupportTicketApi.d.ts +8 -1
  61. package/dist/esm/apis/SupportTicketApi.js +16 -9
  62. package/dist/esm/apis/UserApi.d.ts +38 -1
  63. package/dist/esm/apis/UserApi.js +108 -3
  64. package/dist/esm/models/GetPortal.d.ts +12 -0
  65. package/dist/esm/models/GetPortal.js +4 -0
  66. package/dist/esm/models/GetUser.d.ts +6 -0
  67. package/dist/esm/models/GetUser.js +2 -0
  68. package/dist/esm/models/GetUserAvatarUpload.d.ts +32 -0
  69. package/dist/esm/models/GetUserAvatarUpload.js +43 -0
  70. package/dist/esm/models/PostPortal.d.ts +12 -0
  71. package/dist/esm/models/PostPortal.js +4 -0
  72. package/dist/esm/models/PutPortalBranding.d.ts +12 -0
  73. package/dist/esm/models/PutPortalBranding.js +4 -0
  74. package/dist/esm/models/UpdateSelectedPortalResponse.d.ts +45 -0
  75. package/dist/esm/models/UpdateSelectedPortalResponse.js +52 -0
  76. package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
  77. package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.js +51 -0
  78. package/dist/esm/models/index.d.ts +3 -0
  79. package/dist/esm/models/index.js +3 -0
  80. package/dist/esm/runtime.js +1 -1
  81. package/dist/models/GetPortal.d.ts +12 -0
  82. package/dist/models/GetPortal.js +4 -0
  83. package/dist/models/GetUser.d.ts +6 -0
  84. package/dist/models/GetUser.js +2 -0
  85. package/dist/models/GetUserAvatarUpload.d.ts +32 -0
  86. package/dist/models/GetUserAvatarUpload.js +50 -0
  87. package/dist/models/PostPortal.d.ts +12 -0
  88. package/dist/models/PostPortal.js +4 -0
  89. package/dist/models/PutPortalBranding.d.ts +12 -0
  90. package/dist/models/PutPortalBranding.js +4 -0
  91. package/dist/models/UpdateSelectedPortalResponse.d.ts +45 -0
  92. package/dist/models/UpdateSelectedPortalResponse.js +59 -0
  93. package/dist/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
  94. package/dist/models/UpdateSelectedPortalResponseSelectedPortal.js +58 -0
  95. package/dist/models/index.d.ts +3 -0
  96. package/dist/models/index.js +3 -0
  97. package/dist/runtime.js +1 -1
  98. package/docs/GetPortal.md +4 -0
  99. package/docs/GetUser.md +2 -0
  100. package/docs/GetUserAvatarUpload.md +34 -0
  101. package/docs/PortalApi.md +3 -3
  102. package/docs/PostPortal.md +4 -0
  103. package/docs/PutPortalBranding.md +4 -0
  104. package/docs/UpdateSelectedPortalResponse.md +38 -0
  105. package/docs/UpdateSelectedPortalResponseSelectedPortal.md +38 -0
  106. package/docs/UserApi.md +138 -0
  107. package/package.json +1 -1
  108. package/src/apis/CertificateApi.ts +38 -23
  109. package/src/apis/ChatApi.ts +20 -13
  110. package/src/apis/ContentApi.ts +117 -78
  111. package/src/apis/CourseApi.ts +57 -34
  112. package/src/apis/CourseCatalogApi.ts +19 -16
  113. package/src/apis/CourseShareApi.ts +21 -16
  114. package/src/apis/ModuleApi.ts +26 -19
  115. package/src/apis/OtherApi.ts +0 -1
  116. package/src/apis/PortalApi.ts +42 -25
  117. package/src/apis/PortalSublicenseApi.ts +6 -7
  118. package/src/apis/QuestionApi.ts +14 -11
  119. package/src/apis/QuizApi.ts +96 -57
  120. package/src/apis/ReportingApi.ts +47 -34
  121. package/src/apis/RoleApi.ts +29 -22
  122. package/src/apis/SupportTicketApi.ts +31 -20
  123. package/src/apis/UserApi.ts +150 -12
  124. package/src/models/GetPortal.ts +16 -0
  125. package/src/models/GetUser.ts +8 -0
  126. package/src/models/GetUserAvatarUpload.ts +66 -0
  127. package/src/models/PostPortal.ts +16 -0
  128. package/src/models/PutPortalBranding.ts +16 -0
  129. package/src/models/UpdateSelectedPortalResponse.ts +92 -0
  130. package/src/models/UpdateSelectedPortalResponseSelectedPortal.ts +84 -0
  131. package/src/models/index.ts +3 -0
  132. package/src/runtime.ts +1 -2
@@ -0,0 +1,38 @@
1
+
2
+ # UpdateSelectedPortalResponseSelectedPortal
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `name` | string
11
+ `slug` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { UpdateSelectedPortalResponseSelectedPortal } from '@easyedu/js-lsm-api'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "id": null,
21
+ "name": null,
22
+ "slug": null,
23
+ } satisfies UpdateSelectedPortalResponseSelectedPortal
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as UpdateSelectedPortalResponseSelectedPortal
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
package/docs/UserApi.md CHANGED
@@ -4,17 +4,85 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
7
+ | [**deleteUserAvatar**](UserApi.md#deleteuseravatar) | **DELETE** /users/{userId}/avatar | Remove the current user\'s profile photo |
7
8
  | [**getAuthCheck**](UserApi.md#getauthcheck) | **GET** /auth/check | Check if a user is logged in |
8
9
  | [**getCurrentUserPermissions**](UserApi.md#getcurrentuserpermissions) | **GET** /users/current/permissions | Get the current user\'s permissions |
9
10
  | [**getUser**](UserApi.md#getuser) | **GET** /users/{userId} | Get a user by id |
10
11
  | [**postLogin**](UserApi.md#postlogin) | **POST** /auth/login | Post a new login |
11
12
  | [**postLogout**](UserApi.md#postlogout) | **POST** /auth/logout | Logout a user |
13
+ | [**postUserAvatarUpload**](UserApi.md#postuseravatarupload) | **POST** /users/{userId}/avatar | Upload a profile photo for the current user |
12
14
  | [**putUser**](UserApi.md#putuser) | **PUT** /users/{userId} | Update a user by id |
13
15
  | [**resetPassword**](UserApi.md#resetpassword) | **POST** /auth/reset-password | Reset a users password |
14
16
  | [**sendResetPassword**](UserApi.md#sendresetpassword) | **POST** /auth/send-reset-password | Send a reset password email |
15
17
 
16
18
 
17
19
 
20
+ ## deleteUserAvatar
21
+
22
+ > deleteUserAvatar(userId)
23
+
24
+ Remove the current user\'s profile photo
25
+
26
+ ### Example
27
+
28
+ ```ts
29
+ import {
30
+ Configuration,
31
+ UserApi,
32
+ } from '@easyedu/js-lsm-api';
33
+ import type { DeleteUserAvatarRequest } from '@easyedu/js-lsm-api';
34
+
35
+ async function example() {
36
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
37
+ const api = new UserApi();
38
+
39
+ const body = {
40
+ // string
41
+ userId: userId_example,
42
+ } satisfies DeleteUserAvatarRequest;
43
+
44
+ try {
45
+ const data = await api.deleteUserAvatar(body);
46
+ console.log(data);
47
+ } catch (error) {
48
+ console.error(error);
49
+ }
50
+ }
51
+
52
+ // Run the test
53
+ example().catch(console.error);
54
+ ```
55
+
56
+ ### Parameters
57
+
58
+
59
+ | Name | Type | Description | Notes |
60
+ |------------- | ------------- | ------------- | -------------|
61
+ | **userId** | `string` | | [Defaults to `undefined`] |
62
+
63
+ ### Return type
64
+
65
+ `void` (Empty response body)
66
+
67
+ ### Authorization
68
+
69
+ No authorization required
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: Not defined
74
+ - **Accept**: Not defined
75
+
76
+
77
+ ### HTTP response details
78
+ | Status code | Description | Response headers |
79
+ |-------------|-------------|------------------|
80
+ | **204** | Avatar removed successfully | - |
81
+ | **404** | User not found | - |
82
+
83
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
84
+
85
+
18
86
  ## getAuthCheck
19
87
 
20
88
  > getAuthCheck()
@@ -320,6 +388,76 @@ No authorization required
320
388
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
321
389
 
322
390
 
391
+ ## postUserAvatarUpload
392
+
393
+ > GetUserAvatarUpload postUserAvatarUpload(userId, file)
394
+
395
+ Upload a profile photo for the current user
396
+
397
+ ### Example
398
+
399
+ ```ts
400
+ import {
401
+ Configuration,
402
+ UserApi,
403
+ } from '@easyedu/js-lsm-api';
404
+ import type { PostUserAvatarUploadRequest } from '@easyedu/js-lsm-api';
405
+
406
+ async function example() {
407
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
408
+ const api = new UserApi();
409
+
410
+ const body = {
411
+ // string
412
+ userId: userId_example,
413
+ // Blob | Avatar image file (PNG, JPEG, or SVG). Max 2MB.
414
+ file: BINARY_DATA_HERE,
415
+ } satisfies PostUserAvatarUploadRequest;
416
+
417
+ try {
418
+ const data = await api.postUserAvatarUpload(body);
419
+ console.log(data);
420
+ } catch (error) {
421
+ console.error(error);
422
+ }
423
+ }
424
+
425
+ // Run the test
426
+ example().catch(console.error);
427
+ ```
428
+
429
+ ### Parameters
430
+
431
+
432
+ | Name | Type | Description | Notes |
433
+ |------------- | ------------- | ------------- | -------------|
434
+ | **userId** | `string` | | [Defaults to `undefined`] |
435
+ | **file** | `Blob` | Avatar image file (PNG, JPEG, or SVG). Max 2MB. | [Defaults to `undefined`] |
436
+
437
+ ### Return type
438
+
439
+ [**GetUserAvatarUpload**](GetUserAvatarUpload.md)
440
+
441
+ ### Authorization
442
+
443
+ No authorization required
444
+
445
+ ### HTTP request headers
446
+
447
+ - **Content-Type**: `multipart/form-data`
448
+ - **Accept**: `application/json`
449
+
450
+
451
+ ### HTTP response details
452
+ | Status code | Description | Response headers |
453
+ |-------------|-------------|------------------|
454
+ | **200** | Avatar uploaded successfully | - |
455
+ | **400** | Invalid file type or file too large | - |
456
+ | **404** | User not found | - |
457
+
458
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
459
+
460
+
323
461
  ## putUser
324
462
 
325
463
  > GetUser putUser(userId, putUser)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.57.0",
3
+ "version": "1.59.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -12,42 +12,57 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime';
17
- import type {
18
- Certificate,
19
- CertificateConfig,
20
- CertificatePublic,
21
- EffectiveCertificateConfig,
22
- GetCertificateConfigList,
23
- GetCertificateList,
24
- PostCertificate,
25
- PostCertificateConfig,
26
- PostRevokeCertificate,
27
- PutCertificateConfig,
28
- } from '../models/index';
29
16
  import {
17
+ type Certificate,
30
18
  CertificateFromJSON,
31
19
  CertificateToJSON,
20
+ } from '../models/Certificate';
21
+ import {
22
+ type CertificateConfig,
32
23
  CertificateConfigFromJSON,
33
24
  CertificateConfigToJSON,
25
+ } from '../models/CertificateConfig';
26
+ import {
27
+ type CertificatePublic,
34
28
  CertificatePublicFromJSON,
35
29
  CertificatePublicToJSON,
30
+ } from '../models/CertificatePublic';
31
+ import {
32
+ type EffectiveCertificateConfig,
36
33
  EffectiveCertificateConfigFromJSON,
37
34
  EffectiveCertificateConfigToJSON,
35
+ } from '../models/EffectiveCertificateConfig';
36
+ import {
37
+ type GetCertificateConfigList,
38
38
  GetCertificateConfigListFromJSON,
39
39
  GetCertificateConfigListToJSON,
40
+ } from '../models/GetCertificateConfigList';
41
+ import {
42
+ type GetCertificateList,
40
43
  GetCertificateListFromJSON,
41
44
  GetCertificateListToJSON,
45
+ } from '../models/GetCertificateList';
46
+ import {
47
+ type PostCertificate,
42
48
  PostCertificateFromJSON,
43
49
  PostCertificateToJSON,
50
+ } from '../models/PostCertificate';
51
+ import {
52
+ type PostCertificateConfig,
44
53
  PostCertificateConfigFromJSON,
45
54
  PostCertificateConfigToJSON,
55
+ } from '../models/PostCertificateConfig';
56
+ import {
57
+ type PostRevokeCertificate,
46
58
  PostRevokeCertificateFromJSON,
47
59
  PostRevokeCertificateToJSON,
60
+ } from '../models/PostRevokeCertificate';
61
+ import {
62
+ type PutCertificateConfig,
48
63
  PutCertificateConfigFromJSON,
49
64
  PutCertificateConfigToJSON,
50
- } from '../models/index';
65
+ } from '../models/PutCertificateConfig';
51
66
 
52
67
  export interface DeleteCertificateConfigRequest {
53
68
  configId: string;
@@ -130,7 +145,7 @@ export class CertificateApi extends runtime.BaseAPI {
130
145
 
131
146
 
132
147
  let urlPath = `/certificate-configs/{configId}`;
133
- urlPath = urlPath.replace(`{${"configId"}}`, encodeURIComponent(String(requestParameters['configId'])));
148
+ urlPath = urlPath.replace('{configId}', encodeURIComponent(String(requestParameters['configId'])));
134
149
 
135
150
  return {
136
151
  path: urlPath,
@@ -174,7 +189,7 @@ export class CertificateApi extends runtime.BaseAPI {
174
189
 
175
190
 
176
191
  let urlPath = `/certificates/{certificateId}`;
177
- urlPath = urlPath.replace(`{${"certificateId"}}`, encodeURIComponent(String(requestParameters['certificateId'])));
192
+ urlPath = urlPath.replace('{certificateId}', encodeURIComponent(String(requestParameters['certificateId'])));
178
193
 
179
194
  return {
180
195
  path: urlPath,
@@ -219,7 +234,7 @@ export class CertificateApi extends runtime.BaseAPI {
219
234
 
220
235
 
221
236
  let urlPath = `/certificate-configs/{configId}`;
222
- urlPath = urlPath.replace(`{${"configId"}}`, encodeURIComponent(String(requestParameters['configId'])));
237
+ urlPath = urlPath.replace('{configId}', encodeURIComponent(String(requestParameters['configId'])));
223
238
 
224
239
  return {
225
240
  path: urlPath,
@@ -309,7 +324,7 @@ export class CertificateApi extends runtime.BaseAPI {
309
324
 
310
325
 
311
326
  let urlPath = `/certificates/{certificateId}/pdf`;
312
- urlPath = urlPath.replace(`{${"certificateId"}}`, encodeURIComponent(String(requestParameters['certificateId'])));
327
+ urlPath = urlPath.replace('{certificateId}', encodeURIComponent(String(requestParameters['certificateId'])));
313
328
 
314
329
  return {
315
330
  path: urlPath,
@@ -460,7 +475,7 @@ export class CertificateApi extends runtime.BaseAPI {
460
475
 
461
476
 
462
477
  let urlPath = `/courses/{courseId}/certificate-config/effective`;
463
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
478
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
464
479
 
465
480
  return {
466
481
  path: urlPath,
@@ -561,7 +576,7 @@ export class CertificateApi extends runtime.BaseAPI {
561
576
 
562
577
 
563
578
  let urlPath = `/courses/{courseId}/certificates`;
564
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
579
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
565
580
 
566
581
  return {
567
582
  path: urlPath,
@@ -616,7 +631,7 @@ export class CertificateApi extends runtime.BaseAPI {
616
631
 
617
632
 
618
633
  let urlPath = `/certificates/{certificateId}/revoke`;
619
- urlPath = urlPath.replace(`{${"certificateId"}}`, encodeURIComponent(String(requestParameters['certificateId'])));
634
+ urlPath = urlPath.replace('{certificateId}', encodeURIComponent(String(requestParameters['certificateId'])));
620
635
 
621
636
  return {
622
637
  path: urlPath,
@@ -671,7 +686,7 @@ export class CertificateApi extends runtime.BaseAPI {
671
686
 
672
687
 
673
688
  let urlPath = `/certificate-configs/{configId}`;
674
- urlPath = urlPath.replace(`{${"configId"}}`, encodeURIComponent(String(requestParameters['configId'])));
689
+ urlPath = urlPath.replace('{configId}', encodeURIComponent(String(requestParameters['configId'])));
675
690
 
676
691
  return {
677
692
  path: urlPath,
@@ -717,7 +732,7 @@ export class CertificateApi extends runtime.BaseAPI {
717
732
 
718
733
 
719
734
  let urlPath = `/public/certificates/{certificateId}/verify`;
720
- urlPath = urlPath.replace(`{${"certificateId"}}`, encodeURIComponent(String(requestParameters['certificateId'])));
735
+ urlPath = urlPath.replace('{certificateId}', encodeURIComponent(String(requestParameters['certificateId'])));
721
736
 
722
737
  return {
723
738
  path: urlPath,
@@ -12,30 +12,37 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime';
17
- import type {
18
- GetChatMessage,
19
- GetConversationList,
20
- PostConversation,
21
- PostConversationResponse,
22
- PostMessage,
23
- PostMessageResponse,
24
- } from '../models/index';
25
16
  import {
17
+ type GetChatMessage,
26
18
  GetChatMessageFromJSON,
27
19
  GetChatMessageToJSON,
20
+ } from '../models/GetChatMessage';
21
+ import {
22
+ type GetConversationList,
28
23
  GetConversationListFromJSON,
29
24
  GetConversationListToJSON,
25
+ } from '../models/GetConversationList';
26
+ import {
27
+ type PostConversation,
30
28
  PostConversationFromJSON,
31
29
  PostConversationToJSON,
30
+ } from '../models/PostConversation';
31
+ import {
32
+ type PostConversationResponse,
32
33
  PostConversationResponseFromJSON,
33
34
  PostConversationResponseToJSON,
35
+ } from '../models/PostConversationResponse';
36
+ import {
37
+ type PostMessage,
34
38
  PostMessageFromJSON,
35
39
  PostMessageToJSON,
40
+ } from '../models/PostMessage';
41
+ import {
42
+ type PostMessageResponse,
36
43
  PostMessageResponseFromJSON,
37
44
  PostMessageResponseToJSON,
38
- } from '../models/index';
45
+ } from '../models/PostMessageResponse';
39
46
 
40
47
  export interface DeleteConversationRequest {
41
48
  conversationId: string;
@@ -81,7 +88,7 @@ export class ChatApi extends runtime.BaseAPI {
81
88
 
82
89
 
83
90
  let urlPath = `/chat/conversations/{conversationId}`;
84
- urlPath = urlPath.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId'])));
91
+ urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
85
92
 
86
93
  return {
87
94
  path: urlPath,
@@ -125,7 +132,7 @@ export class ChatApi extends runtime.BaseAPI {
125
132
 
126
133
 
127
134
  let urlPath = `/chat/conversations/{conversationId}/messages`;
128
- urlPath = urlPath.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId'])));
135
+ urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
129
136
 
130
137
  return {
131
138
  path: urlPath,
@@ -271,7 +278,7 @@ export class ChatApi extends runtime.BaseAPI {
271
278
 
272
279
 
273
280
  let urlPath = `/chat/conversations/{conversationId}/messages`;
274
- urlPath = urlPath.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId'])));
281
+ urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
275
282
 
276
283
  return {
277
284
  path: urlPath,