@xfloor/floor-memory-sdk-js 1.0.20 → 1.0.22

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 (47) hide show
  1. package/README.md +22 -22
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/{DefaultApi.js → AuthApi.js} +40 -194
  4. package/dist/api/EventApi.js +49 -1
  5. package/dist/api/FloorApi.js +306 -0
  6. package/dist/api/QueryApi.js +1 -1
  7. package/dist/index.js +33 -47
  8. package/dist/model/BlockDetails.js +1 -1
  9. package/dist/model/ChangePassword200Response.js +1 -1
  10. package/dist/model/{GetFloorInformation200Response.js → EditFloor200Response.js} +28 -28
  11. package/dist/model/EditFloor400Response.js +1 -1
  12. package/dist/model/EditFloor400ResponseError.js +1 -1
  13. package/dist/model/Event400Response.js +1 -1
  14. package/dist/model/Event400ResponseError.js +1 -1
  15. package/dist/model/EventResponse.js +1 -1
  16. package/dist/model/FloorInfo.js +1 -1
  17. package/dist/model/GetRecentEvents200Response.js +1 -1
  18. package/dist/model/GetRecentEvents200ResponseItemsInner.js +1 -1
  19. package/dist/model/GetRecentEvents200ResponseItemsInnerAuthor.js +1 -1
  20. package/dist/model/GetRecentEvents400Response.js +1 -1
  21. package/dist/model/GetRecentEvents400ResponseError.js +1 -1
  22. package/dist/model/Media.js +1 -1
  23. package/dist/model/Model400ErrorCode.js +1 -1
  24. package/dist/model/Query422Response.js +1 -1
  25. package/dist/model/Query422ResponseError.js +1 -1
  26. package/dist/model/QueryRequest.js +1 -1
  27. package/dist/model/QueryRequestFilters.js +1 -1
  28. package/dist/model/QueryResponse.js +1 -1
  29. package/dist/model/QueryResponseItemsInner.js +1 -1
  30. package/dist/model/Remaining.js +1 -1
  31. package/dist/model/ResetPassword200Response.js +1 -1
  32. package/dist/model/ResetPassword400Response.js +1 -1
  33. package/dist/model/SendValidationCode200Response.js +1 -1
  34. package/dist/model/{SignInWithEmail200Response.js → SignInResponse.js} +32 -32
  35. package/dist/model/SignUp200Response.js +1 -1
  36. package/dist/model/SignUpResponse.js +1 -1
  37. package/dist/model/UserDetails.js +11 -11
  38. package/dist/model/{SignInWithEmail200ResponsePodInfo.js → UserDetailsPodInfo.js} +27 -27
  39. package/dist/model/{SignInWithEmail200ResponseProfile.js → UserDetailsProfile.js} +32 -32
  40. package/dist/model/{SignInWithEmail200ResponseProfileAvatar.js → UserDetailsProfileAvatar.js} +21 -21
  41. package/dist/model/ValidateCode400Response.js +1 -1
  42. package/dist/model/ValidateCode400ResponseError.js +1 -1
  43. package/dist/model/ValidateCode412Response.js +1 -1
  44. package/package.json +1 -1
  45. package/dist/api/EditFloorApi.js +0 -105
  46. package/dist/api/GetFloorInformationApi.js +0 -95
  47. package/dist/api/GetRecentEventsApi.js +0 -94
package/README.md CHANGED
@@ -11,7 +11,7 @@ The developer has two ways of using the APIs for the app development. Developer
11
11
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
12
12
 
13
13
  - API version: 1.0.0
14
- - Package version: 1.0.20
14
+ - Package version: 1.0.22
15
15
  - Generator version: 7.18.0
16
16
  - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
17
17
  For more information, please visit [https://xfloor.ai/ipomo/blog1551084548304/](https://xfloor.ai/ipomo/blog1551084548304/)
@@ -113,7 +113,7 @@ var defaultClient = XfloorFloorMemorySdkJs.ApiClient.instance;
113
113
  var bearer = defaultClient.authentications['bearer'];
114
114
  bearer.accessToken = "YOUR ACCESS TOKEN"
115
115
 
116
- var api = new XfloorFloorMemorySdkJs.DefaultApi()
116
+ var api = new XfloorFloorMemorySdkJs.AuthApi()
117
117
  var newEmailId = "newEmailId_example"; // {String} New Email ID
118
118
  var activationCode = "activationCode_example"; // {String} Validation code
119
119
  var callback = function(error, data, response) {
@@ -131,35 +131,35 @@ api.changeEmail(newEmailId, activationCode, callback);
131
131
 
132
132
  | Class | Method | HTTP request | Description |
133
133
  | --- | --- | --- | --- |
134
- | `XfloorFloorMemorySdkJs.DefaultApi` | [**changeEmail**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#changeEmail) | **POST** /auth-service/change/email | Change email ID |
135
- | `XfloorFloorMemorySdkJs.DefaultApi` | [**changeMobileNumber**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#changeMobileNumber) | **POST** /auth-service/change/mobile | Change Mobile number |
136
- | `XfloorFloorMemorySdkJs.DefaultApi` | [**changePassword**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#changePassword) | **POST** /auth-service/password/change | Change Password |
137
- | `XfloorFloorMemorySdkJs.DefaultApi` | [**makeFloorPrivate**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#makeFloorPrivate) | **POST** /api/memory/make/floor/private/{floor_id} | Make floor Private |
138
- | `XfloorFloorMemorySdkJs.DefaultApi` | [**makeFloorPublic**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#makeFloorPublic) | **POST** /api/memory/make/floor/public/{floor_id} | Make floor public |
139
- | `XfloorFloorMemorySdkJs.DefaultApi` | [**renameFloor**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#renameFloor) | **POST** /api/memory/change/floor/id | Rename floor |
140
- | `XfloorFloorMemorySdkJs.DefaultApi` | [**resetPassword**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#resetPassword) | **POST** /auth-service/password/reset | Reset Password |
141
- | `XfloorFloorMemorySdkJs.DefaultApi` | [**sendValidationCode**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#sendValidationCode) | **POST** /auth-service/send/validation/code | Send Validation code |
142
- | `XfloorFloorMemorySdkJs.DefaultApi` | [**signInWithEmail**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#signInWithEmail) | **POST** /auth-service/sign/in/with/email | Sign In with email ID |
143
- | `XfloorFloorMemorySdkJs.DefaultApi` | [**signInWithMobileNumber**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#signInWithMobileNumber) | **POST** /auth-service/sign/in/with/mobile/number | Sign In with Mobile number |
144
- | `XfloorFloorMemorySdkJs.DefaultApi` | [**signUp**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#signUp) | **POST** /auth-service/sign/up | Sign Up |
145
- | `XfloorFloorMemorySdkJs.DefaultApi` | [**validateCode**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#validateCode) | **POST** /auth-service/validate/activation/code | Validation |
146
- | `XfloorFloorMemorySdkJs.EditFloorApi` | [**editFloor**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/EditFloorApi.md#editFloor) | **POST** /api/memory/edit/floor/{floor_id} | Edit floor |
134
+ | `XfloorFloorMemorySdkJs.AuthApi` | [**changeEmail**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/AuthApi.md#changeEmail) | **POST** /auth-service/change/email | Change email ID |
135
+ | `XfloorFloorMemorySdkJs.AuthApi` | [**changeMobileNumber**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/AuthApi.md#changeMobileNumber) | **POST** /auth-service/change/mobile | Change Mobile number |
136
+ | `XfloorFloorMemorySdkJs.AuthApi` | [**changePassword**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/AuthApi.md#changePassword) | **POST** /auth-service/password/change | Change Password |
137
+ | `XfloorFloorMemorySdkJs.AuthApi` | [**resetPassword**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/AuthApi.md#resetPassword) | **POST** /auth-service/password/reset | Reset Password |
138
+ | `XfloorFloorMemorySdkJs.AuthApi` | [**sendValidationCode**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/AuthApi.md#sendValidationCode) | **POST** /auth-service/send/validation/code | Send Validation code |
139
+ | `XfloorFloorMemorySdkJs.AuthApi` | [**signInWithEmail**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/AuthApi.md#signInWithEmail) | **POST** /auth-service/sign/in/with/email | Sign In with email ID |
140
+ | `XfloorFloorMemorySdkJs.AuthApi` | [**signInWithMobileNumber**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/AuthApi.md#signInWithMobileNumber) | **POST** /auth-service/sign/in/with/mobile/number | Sign In with Mobile number |
141
+ | `XfloorFloorMemorySdkJs.AuthApi` | [**signUp**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/AuthApi.md#signUp) | **POST** /auth-service/sign/up | Sign Up |
142
+ | `XfloorFloorMemorySdkJs.AuthApi` | [**validateCode**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/AuthApi.md#validateCode) | **POST** /auth-service/validate/activation/code | Validation |
147
143
  | `XfloorFloorMemorySdkJs.EventApi` | [**event**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/EventApi.md#event) | **POST** /api/memory/events | Create Event (Post Content) |
148
- | `XfloorFloorMemorySdkJs.GetFloorInformationApi` | [**getFloorInformation**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetFloorInformationApi.md#getFloorInformation) | **GET** /api/memory/floor/info/{floor_id} | Basic information of a floor |
149
- | `XfloorFloorMemorySdkJs.GetRecentEventsApi` | [**getRecentEvents**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetRecentEventsApi.md#getRecentEvents) | **GET** /api/memory/recent/events | Recent Events |
144
+ | `XfloorFloorMemorySdkJs.EventApi` | [**getRecentEvents**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/EventApi.md#getRecentEvents) | **GET** /api/memory/recent/events | Recent Events |
145
+ | `XfloorFloorMemorySdkJs.FloorApi` | [**editFloor**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/FloorApi.md#editFloor) | **POST** /api/memory/edit/floor/{floor_id} | Edit floor |
146
+ | `XfloorFloorMemorySdkJs.FloorApi` | [**getFloorInformation**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/FloorApi.md#getFloorInformation) | **GET** /api/memory/floor/info/{floor_id} | Basic information of a floor |
147
+ | `XfloorFloorMemorySdkJs.FloorApi` | [**makeFloorPrivate**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/FloorApi.md#makeFloorPrivate) | **POST** /api/memory/make/floor/private/{floor_id} | Make floor Private |
148
+ | `XfloorFloorMemorySdkJs.FloorApi` | [**makeFloorPublic**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/FloorApi.md#makeFloorPublic) | **POST** /api/memory/make/floor/public/{floor_id} | Make floor public |
149
+ | `XfloorFloorMemorySdkJs.FloorApi` | [**renameFloor**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/FloorApi.md#renameFloor) | **POST** /api/memory/change/floor/id | Rename floor |
150
150
  | `XfloorFloorMemorySdkJs.QueryApi` | [**query**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/QueryApi.md#query) | **POST** /agent/memory/query | Query (Primary API) |
151
151
 
152
152
  ### Documentation for Models
153
153
 
154
154
  - [XfloorFloorMemorySdkJs.BlockDetails](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/BlockDetails.md)
155
155
  - [XfloorFloorMemorySdkJs.ChangePassword200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ChangePassword200Response.md)
156
+ - [XfloorFloorMemorySdkJs.EditFloor200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/EditFloor200Response.md)
156
157
  - [XfloorFloorMemorySdkJs.EditFloor400Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/EditFloor400Response.md)
157
158
  - [XfloorFloorMemorySdkJs.EditFloor400ResponseError](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/EditFloor400ResponseError.md)
158
159
  - [XfloorFloorMemorySdkJs.Event400Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/Event400Response.md)
159
160
  - [XfloorFloorMemorySdkJs.Event400ResponseError](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/Event400ResponseError.md)
160
161
  - [XfloorFloorMemorySdkJs.EventResponse](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/EventResponse.md)
161
162
  - [XfloorFloorMemorySdkJs.FloorInfo](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/FloorInfo.md)
162
- - [XfloorFloorMemorySdkJs.GetFloorInformation200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetFloorInformation200Response.md)
163
163
  - [XfloorFloorMemorySdkJs.GetRecentEvents200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetRecentEvents200Response.md)
164
164
  - [XfloorFloorMemorySdkJs.GetRecentEvents200ResponseItemsInner](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetRecentEvents200ResponseItemsInner.md)
165
165
  - [XfloorFloorMemorySdkJs.GetRecentEvents200ResponseItemsInnerAuthor](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetRecentEvents200ResponseItemsInnerAuthor.md)
@@ -177,13 +177,13 @@ api.changeEmail(newEmailId, activationCode, callback);
177
177
  - [XfloorFloorMemorySdkJs.ResetPassword200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ResetPassword200Response.md)
178
178
  - [XfloorFloorMemorySdkJs.ResetPassword400Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ResetPassword400Response.md)
179
179
  - [XfloorFloorMemorySdkJs.SendValidationCode200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SendValidationCode200Response.md)
180
- - [XfloorFloorMemorySdkJs.SignInWithEmail200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignInWithEmail200Response.md)
181
- - [XfloorFloorMemorySdkJs.SignInWithEmail200ResponsePodInfo](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignInWithEmail200ResponsePodInfo.md)
182
- - [XfloorFloorMemorySdkJs.SignInWithEmail200ResponseProfile](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignInWithEmail200ResponseProfile.md)
183
- - [XfloorFloorMemorySdkJs.SignInWithEmail200ResponseProfileAvatar](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignInWithEmail200ResponseProfileAvatar.md)
180
+ - [XfloorFloorMemorySdkJs.SignInResponse](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignInResponse.md)
184
181
  - [XfloorFloorMemorySdkJs.SignUp200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignUp200Response.md)
185
182
  - [XfloorFloorMemorySdkJs.SignUpResponse](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignUpResponse.md)
186
183
  - [XfloorFloorMemorySdkJs.UserDetails](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/UserDetails.md)
184
+ - [XfloorFloorMemorySdkJs.UserDetailsPodInfo](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/UserDetailsPodInfo.md)
185
+ - [XfloorFloorMemorySdkJs.UserDetailsProfile](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/UserDetailsProfile.md)
186
+ - [XfloorFloorMemorySdkJs.UserDetailsProfileAvatar](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/UserDetailsProfileAvatar.md)
187
187
  - [XfloorFloorMemorySdkJs.ValidateCode400Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ValidateCode400Response.md)
188
188
  - [XfloorFloorMemorySdkJs.ValidateCode400ResponseError](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ValidateCode400ResponseError.md)
189
189
  - [XfloorFloorMemorySdkJs.ValidateCode412Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ValidateCode412Response.md)
package/dist/ApiClient.js CHANGED
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  */
28
28
  /**
29
29
  * @module ApiClient
30
- * @version 1.0.20
30
+ * @version 1.0.22
31
31
  */
32
32
  /**
33
33
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -68,7 +68,7 @@ var ApiClient = /*#__PURE__*/function () {
68
68
  * @default {}
69
69
  */
70
70
  this.defaultHeaders = {
71
- 'User-Agent': 'OpenAPI-Generator/1.0.20/Javascript'
71
+ 'User-Agent': 'OpenAPI-Generator/1.0.22/Javascript'
72
72
  };
73
73
 
74
74
  /**
@@ -6,13 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _ChangePassword200Response = _interopRequireDefault(require("../model/ChangePassword200Response"));
9
- var _EditFloor400Response = _interopRequireDefault(require("../model/EditFloor400Response"));
10
- var _GetFloorInformation200Response = _interopRequireDefault(require("../model/GetFloorInformation200Response"));
11
9
  var _GetRecentEvents400Response = _interopRequireDefault(require("../model/GetRecentEvents400Response"));
12
10
  var _ResetPassword200Response = _interopRequireDefault(require("../model/ResetPassword200Response"));
13
11
  var _ResetPassword400Response = _interopRequireDefault(require("../model/ResetPassword400Response"));
14
12
  var _SendValidationCode200Response = _interopRequireDefault(require("../model/SendValidationCode200Response"));
15
- var _SignInWithEmail200Response = _interopRequireDefault(require("../model/SignInWithEmail200Response"));
13
+ var _SignInResponse = _interopRequireDefault(require("../model/SignInResponse"));
16
14
  var _SignUp200Response = _interopRequireDefault(require("../model/SignUp200Response"));
17
15
  var _UserDetails = _interopRequireDefault(require("../model/UserDetails"));
18
16
  var _ValidateCode400Response = _interopRequireDefault(require("../model/ValidateCode400Response"));
@@ -38,28 +36,28 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
38
36
  *
39
37
  */
40
38
  /**
41
- * Default service.
42
- * @module api/DefaultApi
43
- * @version 1.0.20
39
+ * Auth service.
40
+ * @module api/AuthApi
41
+ * @version 1.0.22
44
42
  */
45
- var DefaultApi = exports["default"] = /*#__PURE__*/function () {
43
+ var AuthApi = exports["default"] = /*#__PURE__*/function () {
46
44
  /**
47
- * Constructs a new DefaultApi.
48
- * @alias module:api/DefaultApi
45
+ * Constructs a new AuthApi.
46
+ * @alias module:api/AuthApi
49
47
  * @class
50
48
  * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
51
49
  * default to {@link module:ApiClient#instance} if unspecified.
52
50
  */
53
- function DefaultApi(apiClient) {
54
- _classCallCheck(this, DefaultApi);
51
+ function AuthApi(apiClient) {
52
+ _classCallCheck(this, AuthApi);
55
53
  this.apiClient = apiClient || _ApiClient["default"].instance;
56
54
  }
57
55
 
58
56
  /**
59
57
  * Callback function to receive the result of the changeEmail operation.
60
- * @callback module:api/DefaultApi~changeEmailCallback
58
+ * @callback module:api/AuthApi~changeEmailCallback
61
59
  * @param {String} error Error message, if any.
62
- * @param {module:model/SignInWithEmail200Response} data The data returned by the service call.
60
+ * @param {module:model/SignInResponse} data The data returned by the service call.
63
61
  * @param {String} response The complete HTTP response.
64
62
  */
65
63
 
@@ -68,10 +66,10 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
68
66
  * Updates the email ID associated with an existing user account after validating a one-time activation code sent to the **new email address**. This operation can only be performed by a **logged-in user**. When a user initiates an email change, an activation code is sent to the newly provided email ID. The email update takes effect only after the activation code is successfully validated. If the activation code validation fails, the email ID remains unchanged. --- ### **Authentication** This endpoint requires **Bearer Token authentication**. ``` Authorization: Bearer <access_token> ``` --- ### **Request Body** ```json { \"user_id\": \"string\", \"new_email_id\": \"string\", \"activation_code\": \"string\", \"app_id\":\"string\" } ``` **Field Description** * `user_id` – Unique identifier of the logged-in user * `new_email_id` – New email address to be associated with the account * `activation_code` – One-time activation code sent to the new email ID for verification --- ### **Flow Summary** 1. User is authenticated and logged in 2. User requests to change email ID 3. System sends an activation code to the **new email address** 4. User submits the activation code via this API 5. On successful validation, the email ID is updated --- ### **Successful Response** On successful validation: * The activation code is verified * The user’s email ID is updated immediately * A `success` string is returned confirming the email change --- ### **Error Response** The API returns an error response if: * The activation code is invalid or expired * The activation code does not match the user or email * The new email ID is already in use * Authorization fails or the bearer token is missing or invalid In all error cases, the existing email ID remains unchanged. --- ### **Behavior Notes** * Requires a prior call to `/auth-service/send/validation/code` with the proper mode. --- ### **Security Notes (Recommended)** * Activation codes are single-use and time-bound * Email changes require prior authentication * Rate limiting may be applied to prevent abuse --- ### **One-Line Summary** > Changes a user’s email ID after validating an activation code sent to the new email address.
69
67
  * @param {String} newEmailId New Email ID
70
68
  * @param {String} activationCode Validation code
71
- * @param {module:api/DefaultApi~changeEmailCallback} callback The callback function, accepting three arguments: error, data, response
72
- * data is of type: {@link module:model/SignInWithEmail200Response}
69
+ * @param {module:api/AuthApi~changeEmailCallback} callback The callback function, accepting three arguments: error, data, response
70
+ * data is of type: {@link module:model/SignInResponse}
73
71
  */
74
- return _createClass(DefaultApi, [{
72
+ return _createClass(AuthApi, [{
75
73
  key: "changeEmail",
76
74
  value: function changeEmail(newEmailId, activationCode, callback) {
77
75
  var postBody = null;
@@ -93,15 +91,15 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
93
91
  var authNames = ['bearer'];
94
92
  var contentTypes = ['multipart/form-data'];
95
93
  var accepts = ['application/json'];
96
- var returnType = _SignInWithEmail200Response["default"];
94
+ var returnType = _SignInResponse["default"];
97
95
  return this.apiClient.callApi('/auth-service/change/email', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
98
96
  }
99
97
 
100
98
  /**
101
99
  * Callback function to receive the result of the changeMobileNumber operation.
102
- * @callback module:api/DefaultApi~changeMobileNumberCallback
100
+ * @callback module:api/AuthApi~changeMobileNumberCallback
103
101
  * @param {String} error Error message, if any.
104
- * @param {module:model/SignInWithEmail200Response} data The data returned by the service call.
102
+ * @param {module:model/SignInResponse} data The data returned by the service call.
105
103
  * @param {String} response The complete HTTP response.
106
104
  */
107
105
 
@@ -110,8 +108,8 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
110
108
  * Updates the mobile number associated with an existing user account after validating a one-time activation code sent to the **new mobile number**. This operation can only be performed by a **logged-in user**. When a user initiates a mobile number change, an activation code is sent to the newly provided mobile number. The mobile number update takes effect only after the activation code is successfully validated. If the activation code validation fails, the mobile number remains unchanged. --- ### **Authentication** This endpoint requires **Bearer Token authentication**. ``` Authorization: Bearer <access_token> ``` --- ### **Request Body** ```json { \"user_id\": \"string\", \"new_mobile_number\": \"string\", \"activation_code\": \"string\" } ``` **Field Description** * `user_id` – Unique identifier of the logged-in user * `new_mobile_number` – New mobile number to be associated with the account * `activation_code` – One-time activation code sent to the new mobile number for verification --- ### **Flow Summary** 1. User is authenticated and logged in 2. User requests to change mobile number 3. System sends an activation code to the **new mobile number** 4. User submits the activation code via this API 5. On successful validation, the mobile number is updated --- ### **Successful Response** On successful validation: * The activation code is verified * The user’s mobile number is updated immediately * A `success` string is returned confirming the mobile number change --- ### **Error Response** The API returns an error response if: * The activation code is invalid or expired * The activation code does not match the user or mobile number * The new mobile number is already in use * Authorization fails or the bearer token is missing or invalid In all error cases, the existing mobile number remains unchanged. --- ### **Behavior Notes** * Requires a prior call to `/auth-service/send/validation/code` with the proper mode. --- ### **Security Notes (Recommended)** * Activation codes are single-use and time-bound * Mobile number changes require prior authentication * Rate limiting may be applied to prevent abuse --- ### **One-Line Summary** > Changes a user’s mobile number after validating an activation code sent to the new mobile number.
111
109
  * @param {String} newMobileNumber New mobile number
112
110
  * @param {String} activationCode Activation code
113
- * @param {module:api/DefaultApi~changeMobileNumberCallback} callback The callback function, accepting three arguments: error, data, response
114
- * data is of type: {@link module:model/SignInWithEmail200Response}
111
+ * @param {module:api/AuthApi~changeMobileNumberCallback} callback The callback function, accepting three arguments: error, data, response
112
+ * data is of type: {@link module:model/SignInResponse}
115
113
  */
116
114
  }, {
117
115
  key: "changeMobileNumber",
@@ -135,13 +133,13 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
135
133
  var authNames = ['bearer'];
136
134
  var contentTypes = ['multipart/form-data'];
137
135
  var accepts = ['application/json'];
138
- var returnType = _SignInWithEmail200Response["default"];
136
+ var returnType = _SignInResponse["default"];
139
137
  return this.apiClient.callApi('/auth-service/change/mobile', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
140
138
  }
141
139
 
142
140
  /**
143
141
  * Callback function to receive the result of the changePassword operation.
144
- * @callback module:api/DefaultApi~changePasswordCallback
142
+ * @callback module:api/AuthApi~changePasswordCallback
145
143
  * @param {String} error Error message, if any.
146
144
  * @param {module:model/ChangePassword200Response} data The data returned by the service call.
147
145
  * @param {String} response The complete HTTP response.
@@ -154,7 +152,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
154
152
  * @param {String} activationCode Validation code
155
153
  * @param {Object} opts Optional parameters
156
154
  * @param {String} [userId] User ID
157
- * @param {module:api/DefaultApi~changePasswordCallback} callback The callback function, accepting three arguments: error, data, response
155
+ * @param {module:api/AuthApi~changePasswordCallback} callback The callback function, accepting three arguments: error, data, response
158
156
  * data is of type: {@link module:model/ChangePassword200Response}
159
157
  */
160
158
  }, {
@@ -185,161 +183,9 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
185
183
  return this.apiClient.callApi('/auth-service/password/change', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
186
184
  }
187
185
 
188
- /**
189
- * Callback function to receive the result of the makeFloorPrivate operation.
190
- * @callback module:api/DefaultApi~makeFloorPrivateCallback
191
- * @param {String} error Error message, if any.
192
- * @param {module:model/GetFloorInformation200Response} data The data returned by the service call.
193
- * @param {String} response The complete HTTP response.
194
- */
195
-
196
- /**
197
- * Make floor Private
198
- * This API changes a floor’s visibility to **PRIVATE**. It is used when a floor owner wants to **restrict access** to a floor that is currently public. After the update, the floor becomes private and is no longer accessible to non-authorized users (based on your platform’s access rules). This endpoint is **state-changing**: * If the floor is **PUBLIC**, it will be converted to **PRIVATE** * If the floor is already **PRIVATE**, the API returns success (idempotent) or an “already private” response depending on implementation This API is commonly used in: * Floor settings → “Privacy” toggle * Developer-managed pod workflows (app_id context) * Admin tools (if applicable) --- ## Request Method `POST` --- ## Content-Type `application/x-www-form-urlencoded` (or `multipart/form-data` if your system uses form-data) *(Document whichever you actually accept; below assumes standard form fields.)* --- ## Request Parameters (Form Fields) | Field | Type | Required | Description | | ---------- | ------ | -------- | -------------------------------------------------------------------- | | `user_id` | String | **Yes** | User requesting the change. Must be the **owner** of the floor. | | `floor_id` | String | **Yes** | Public identifier of the floor to update. | | `app_id` | String | No | Calling application identifier (used for developer/pod integration). | --- ## Authorization Rules (Critical) * The caller must be authenticated as `user_id` * **Only the floor owner** can change floor visibility * If the user is not the owner, the request must be rejected --- ## Behavior Rules * Converts visibility from **PUBLIC → PRIVATE** * Does not modify floor content or blocks * Access enforcement for private floors is applied immediately after the change **Idempotency** * Calling this API multiple times should not cause repeated changes * If already private, the API should either: * return success with a message like `\"already private\"`, or * return a specific error/status indicating no-op --- ## Response Format `application/json` --- ## Sample Success Response *(Example — adjust to match your actual response format)* ```json { \"status\": \"SUCCESS\", \"floor_id\": \"my_floor\", \"visibility\": \"PRIVATE\", \"message\": \"Floor is now private\" } ``` --- ## Sample No-Op Response (Already Private) ```json { \"status\": \"SUCCESS\", \"floor_id\": \"my_floor\", \"visibility\": \"PRIVATE\", \"message\": \"Floor is already private\" } ``` --- ## Error Responses (Examples) ### Not Authorized (Not Owner) ```json { \"status\": \"ERROR\", \"message\": \"Only the floor owner can change floor visibility\" } ``` ### Floor Not Found ```json { \"status\": \"ERROR\", \"message\": \"Floor not found\" } ``` ### Invalid Request ```json { \"status\": \"ERROR\", \"message\": \"user_id and floor_id are required\" } ``` --- ## Notes * This API is intended to control floor visibility only; membership/invite rules (for private floors) are handled elsewhere. * `app_id` is provided for developer/pod applications and is optional unless enforced by your app model. * If you support floor types like `POD`, document whether pods are allowed to be private or not (some platforms restrict this).
199
- * @param {String} floorId
200
- * @param {String} userId User ID
201
- * @param {String} appId App ID
202
- * @param {module:api/DefaultApi~makeFloorPrivateCallback} callback The callback function, accepting three arguments: error, data, response
203
- * data is of type: {@link module:model/GetFloorInformation200Response}
204
- */
205
- }, {
206
- key: "makeFloorPrivate",
207
- value: function makeFloorPrivate(floorId, userId, appId, callback) {
208
- var postBody = null;
209
- // verify the required parameter 'floorId' is set
210
- if (floorId === undefined || floorId === null) {
211
- throw new Error("Missing the required parameter 'floorId' when calling makeFloorPrivate");
212
- }
213
- // verify the required parameter 'userId' is set
214
- if (userId === undefined || userId === null) {
215
- throw new Error("Missing the required parameter 'userId' when calling makeFloorPrivate");
216
- }
217
- // verify the required parameter 'appId' is set
218
- if (appId === undefined || appId === null) {
219
- throw new Error("Missing the required parameter 'appId' when calling makeFloorPrivate");
220
- }
221
- var pathParams = {
222
- 'floor_id': floorId
223
- };
224
- var queryParams = {
225
- 'user_id': userId,
226
- 'app_id': appId
227
- };
228
- var headerParams = {};
229
- var formParams = {};
230
- var authNames = ['bearer'];
231
- var contentTypes = [];
232
- var accepts = ['application/json'];
233
- var returnType = _GetFloorInformation200Response["default"];
234
- return this.apiClient.callApi('/api/memory/make/floor/private/{floor_id}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
235
- }
236
-
237
- /**
238
- * Callback function to receive the result of the makeFloorPublic operation.
239
- * @callback module:api/DefaultApi~makeFloorPublicCallback
240
- * @param {String} error Error message, if any.
241
- * @param {module:model/GetFloorInformation200Response} data The data returned by the service call.
242
- * @param {String} response The complete HTTP response.
243
- */
244
-
245
- /**
246
- * Make floor public
247
- * This API changes a floor’s visibility to **PUBLIC**. It is used when a floor owner wants to **make a private floor accessible to everyone**. After the update, the floor becomes public and can be viewed and discovered by any user, subject to platform rules (search, feeds, pods, etc.). This endpoint performs a **visibility state transition**: * **PRIVATE → PUBLIC** * If the floor is already public, the operation is treated as **idempotent** (no state change). This API is typically used from: * Floor settings → Privacy / Visibility controls * Owner or admin tools * Developer or pod-based applications using `app_id` --- ## Request Method `POST` --- ## Content-Type `application/x-www-form-urlencoded` (or `multipart/form-data`, depending on your implementation) --- ## Request Parameters (Form Fields) | Field | Type | Required | Description | | ---------- | ------ | -------- | ------------------------------------------------------------------------------- | | `user_id` | String | **Yes** | User requesting the change. Must be the **owner** of the floor. | | `floor_id` | String | **Yes** | Public identifier of the floor whose visibility is to be changed. | | `app_id` | String | No | Identifier of the calling application (used mainly for pod/developer contexts). | --- ## Authorization Rules (Critical) * The caller must be authenticated as `user_id` * **Only the floor owner** is allowed to change the floor’s visibility * Requests from non-owners must be rejected --- ## Behavior Rules * Converts floor visibility from **PRIVATE → PUBLIC** * Does not modify floor content, blocks, or ownership * Visibility change takes effect immediately ### Idempotency * If the floor is already public, the API should: * Return success with a message indicating no change, or * Return a specific “already public” status (implementation-dependent) --- ## Response Format `application/json` --- ## Sample Success Response ```json { \"status\": \"SUCCESS\", \"floor_id\": \"my_floor\", \"visibility\": \"PUBLIC\", \"message\": \"Floor is now public\" } ``` --- ## Sample No-Op Response (Already Public) ```json { \"status\": \"SUCCESS\", \"floor_id\": \"my_floor\", \"visibility\": \"PUBLIC\", \"message\": \"Floor is already public\" } ``` --- ## Error Responses (Examples) ### Not Authorized (Not Owner) ```json { \"status\": \"ERROR\", \"message\": \"Only the floor owner can change floor visibility\" } ``` --- ### Floor Not Found ```json { \"status\": \"ERROR\", \"message\": \"Floor not found\" } ``` --- ### Invalid Request ```json { \"status\": \"ERROR\", \"message\": \"user_id and floor_id are required\" } ``` --- ## Notes for Developers * This API controls **visibility only**. Membership, invitations, and moderation rules are handled by separate APIs. * `app_id` is optional and primarily used for developer-managed or pod floors. * Clients should refresh floor metadata (e.g., via `/api/floor/info`) after a successful visibility change. --- ### Mental Model (One Line) > **This API answers: “Make this floor visible to everyone.”**
248
- * @param {String} floorId
249
- * @param {String} userId User ID
250
- * @param {String} appId App ID
251
- * @param {module:api/DefaultApi~makeFloorPublicCallback} callback The callback function, accepting three arguments: error, data, response
252
- * data is of type: {@link module:model/GetFloorInformation200Response}
253
- */
254
- }, {
255
- key: "makeFloorPublic",
256
- value: function makeFloorPublic(floorId, userId, appId, callback) {
257
- var postBody = null;
258
- // verify the required parameter 'floorId' is set
259
- if (floorId === undefined || floorId === null) {
260
- throw new Error("Missing the required parameter 'floorId' when calling makeFloorPublic");
261
- }
262
- // verify the required parameter 'userId' is set
263
- if (userId === undefined || userId === null) {
264
- throw new Error("Missing the required parameter 'userId' when calling makeFloorPublic");
265
- }
266
- // verify the required parameter 'appId' is set
267
- if (appId === undefined || appId === null) {
268
- throw new Error("Missing the required parameter 'appId' when calling makeFloorPublic");
269
- }
270
- var pathParams = {
271
- 'floor_id': floorId
272
- };
273
- var queryParams = {
274
- 'user_id': userId,
275
- 'app_id': appId
276
- };
277
- var headerParams = {};
278
- var formParams = {};
279
- var authNames = ['bearer'];
280
- var contentTypes = [];
281
- var accepts = ['application/json'];
282
- var returnType = _GetFloorInformation200Response["default"];
283
- return this.apiClient.callApi('/api/memory/make/floor/public/{floor_id}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
284
- }
285
-
286
- /**
287
- * Callback function to receive the result of the renameFloor operation.
288
- * @callback module:api/DefaultApi~renameFloorCallback
289
- * @param {String} error Error message, if any.
290
- * @param {module:model/GetFloorInformation200Response} data The data returned by the service call.
291
- * @param {String} response The complete HTTP response.
292
- */
293
-
294
- /**
295
- * Rename floor
296
- * This API renames a floor by changing knowing the **floor identifier (floor_id)**. It allows the **floor owner** to update the public-facing floor ID (slug/handle) from an old value to a new value. This is typically used when the owner wants to rebrand, reorganize, or correct the floor’s identifier. ⚠️ **This operation affects how the floor is accessed and referenced externally**, so it must be performed carefully. --- ## Ownership & Authorization (Critical) * The caller **must be authenticated** * **Only the floor owner** is allowed to rename a floor * Members, followers, or non-owners **cannot** perform this operation * Ownership is validated internally using `user_id` > If the user is not the owner, the request must be rejected. --- ## Request Method `POST` --- ## Content-Type `application/x-www-form-urlencoded` (or equivalent form-data encoding) --- ## Request Parameters (Form Fields) | Parameter | Type | Required | Description | | --------- | ------ | -------- | ------------------------------------------------------------------------------- | | `user_id` | String | **Yes** | User requesting the rename. Must be the **owner** of the floor. | | `from` | String | **Yes** | Existing floor ID (current identifier to be renamed). | | `to` | String | **Yes** | New floor ID to assign to the floor. | | `app_id` | String | No | Identifier of the calling application (used mainly for pod/developer contexts). | --- ## Rename Rules & Constraints * The `from` floor ID **must exist** * The `to` floor ID **must be unique** and not already in use * The rename operation updates **only the floor ID** * Floor ownership, blocks, posts, and internal `fid` remain unchanged * Any links or references using the old floor ID may no longer be valid after rename --- ## Behavior Summary | Scenario | Result | | ---------------------------- | ------------------------------------------------- | | Valid owner + unique new ID | Floor ID renamed successfully | | Non-owner user | Request rejected | | `from` floor ID not found | Error | | `to` floor ID already exists | Error | | `from` == `to` | No-op or validation error (implementation choice) | --- ## Response Format `application/json` --- ## Sample Success Response ```json { \"status\": \"SUCCESS\", \"old_floor_id\": \"oldfloorid\", \"new_floor_id\": \"newfloorid\", \"message\": \"Floor ID renamed successfully\" } ``` --- ## Sample Error Responses ### Not Floor Owner ```json { \"status\": \"ERROR\", \"message\": \"Only the floor owner can rename the floor\" } ``` --- ### Floor Not Found ```json { \"status\": \"ERROR\", \"message\": \"Source floor ID does not exist\" } ``` --- ### Floor ID Already Exists ```json { \"status\": \"ERROR\", \"message\": \"Target floor ID is already in use\" } ``` --- ### Invalid Request ```json { \"status\": \"ERROR\", \"message\": \"user_id, from, and to are required\" } ``` --- ## Notes for Developers * This API **renames the public identifier only**; the internal immutable floor ID (`fid`) is not affected. * Clients should refresh cached floor metadata after a successful rename. * If your platform supports deep links or bookmarks, consider redirect or alias handling for old floor IDs (if supported). --- ### One-Line Mental Model > **This API answers: “Change the public identity (ID) of a floor, owner-only.”**
297
- * @param {String} userId User ID
298
- * @param {String} appId App ID
299
- * @param {String} from Old floor ID
300
- * @param {String} to New floor ID
301
- * @param {module:api/DefaultApi~renameFloorCallback} callback The callback function, accepting three arguments: error, data, response
302
- * data is of type: {@link module:model/GetFloorInformation200Response}
303
- */
304
- }, {
305
- key: "renameFloor",
306
- value: function renameFloor(userId, appId, from, to, callback) {
307
- var postBody = null;
308
- // verify the required parameter 'userId' is set
309
- if (userId === undefined || userId === null) {
310
- throw new Error("Missing the required parameter 'userId' when calling renameFloor");
311
- }
312
- // verify the required parameter 'appId' is set
313
- if (appId === undefined || appId === null) {
314
- throw new Error("Missing the required parameter 'appId' when calling renameFloor");
315
- }
316
- // verify the required parameter 'from' is set
317
- if (from === undefined || from === null) {
318
- throw new Error("Missing the required parameter 'from' when calling renameFloor");
319
- }
320
- // verify the required parameter 'to' is set
321
- if (to === undefined || to === null) {
322
- throw new Error("Missing the required parameter 'to' when calling renameFloor");
323
- }
324
- var pathParams = {};
325
- var queryParams = {
326
- 'user_id': userId,
327
- 'app_id': appId,
328
- 'from': from,
329
- 'to': to
330
- };
331
- var headerParams = {};
332
- var formParams = {};
333
- var authNames = ['bearer'];
334
- var contentTypes = [];
335
- var accepts = ['application/json'];
336
- var returnType = _GetFloorInformation200Response["default"];
337
- return this.apiClient.callApi('/api/memory/change/floor/id', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
338
- }
339
-
340
186
  /**
341
187
  * Callback function to receive the result of the resetPassword operation.
342
- * @callback module:api/DefaultApi~resetPasswordCallback
188
+ * @callback module:api/AuthApi~resetPasswordCallback
343
189
  * @param {String} error Error message, if any.
344
190
  * @param {module:model/ResetPassword200Response} data The data returned by the service call.
345
191
  * @param {String} response The complete HTTP response.
@@ -354,7 +200,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
354
200
  * @param {String} [mobileNumber]
355
201
  * @param {String} [emailId]
356
202
  * @param {String} [appId]
357
- * @param {module:api/DefaultApi~resetPasswordCallback} callback The callback function, accepting three arguments: error, data, response
203
+ * @param {module:api/AuthApi~resetPasswordCallback} callback The callback function, accepting three arguments: error, data, response
358
204
  * data is of type: {@link module:model/ResetPassword200Response}
359
205
  */
360
206
  }, {
@@ -389,7 +235,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
389
235
 
390
236
  /**
391
237
  * Callback function to receive the result of the sendValidationCode operation.
392
- * @callback module:api/DefaultApi~sendValidationCodeCallback
238
+ * @callback module:api/AuthApi~sendValidationCodeCallback
393
239
  * @param {String} error Error message, if any.
394
240
  * @param {module:model/SendValidationCode200Response} data The data returned by the service call.
395
241
  * @param {String} response The complete HTTP response.
@@ -404,7 +250,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
404
250
  * @param {String} [mobileNumber]
405
251
  * @param {String} [emailId]
406
252
  * @param {String} [appId]
407
- * @param {module:api/DefaultApi~sendValidationCodeCallback} callback The callback function, accepting three arguments: error, data, response
253
+ * @param {module:api/AuthApi~sendValidationCodeCallback} callback The callback function, accepting three arguments: error, data, response
408
254
  * data is of type: {@link module:model/SendValidationCode200Response}
409
255
  */
410
256
  }, {
@@ -435,9 +281,9 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
435
281
 
436
282
  /**
437
283
  * Callback function to receive the result of the signInWithEmail operation.
438
- * @callback module:api/DefaultApi~signInWithEmailCallback
284
+ * @callback module:api/AuthApi~signInWithEmailCallback
439
285
  * @param {String} error Error message, if any.
440
- * @param {module:model/SignInWithEmail200Response} data The data returned by the service call.
286
+ * @param {module:model/SignInResponse} data The data returned by the service call.
441
287
  * @param {String} response The complete HTTP response.
442
288
  */
443
289
 
@@ -449,8 +295,8 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
449
295
  * @param {String} loginType 1 is for password, 2 is for validation code
450
296
  * @param {Object} opts Optional parameters
451
297
  * @param {String} [appId] App ID
452
- * @param {module:api/DefaultApi~signInWithEmailCallback} callback The callback function, accepting three arguments: error, data, response
453
- * data is of type: {@link module:model/SignInWithEmail200Response}
298
+ * @param {module:api/AuthApi~signInWithEmailCallback} callback The callback function, accepting three arguments: error, data, response
299
+ * data is of type: {@link module:model/SignInResponse}
454
300
  */
455
301
  }, {
456
302
  key: "signInWithEmail",
@@ -481,15 +327,15 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
481
327
  var authNames = ['bearer'];
482
328
  var contentTypes = ['multipart/form-data'];
483
329
  var accepts = ['application/json'];
484
- var returnType = _SignInWithEmail200Response["default"];
330
+ var returnType = _SignInResponse["default"];
485
331
  return this.apiClient.callApi('/auth-service/sign/in/with/email', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
486
332
  }
487
333
 
488
334
  /**
489
335
  * Callback function to receive the result of the signInWithMobileNumber operation.
490
- * @callback module:api/DefaultApi~signInWithMobileNumberCallback
336
+ * @callback module:api/AuthApi~signInWithMobileNumberCallback
491
337
  * @param {String} error Error message, if any.
492
- * @param {module:model/SignInWithEmail200Response} data The data returned by the service call.
338
+ * @param {module:model/SignInResponse} data The data returned by the service call.
493
339
  * @param {String} response The complete HTTP response.
494
340
  */
495
341
 
@@ -501,8 +347,8 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
501
347
  * @param {String} loginType 1 for password, 2 for activate code
502
348
  * @param {Object} opts Optional parameters
503
349
  * @param {String} [appId] App ID
504
- * @param {module:api/DefaultApi~signInWithMobileNumberCallback} callback The callback function, accepting three arguments: error, data, response
505
- * data is of type: {@link module:model/SignInWithEmail200Response}
350
+ * @param {module:api/AuthApi~signInWithMobileNumberCallback} callback The callback function, accepting three arguments: error, data, response
351
+ * data is of type: {@link module:model/SignInResponse}
506
352
  */
507
353
  }, {
508
354
  key: "signInWithMobileNumber",
@@ -533,13 +379,13 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
533
379
  var authNames = ['bearer'];
534
380
  var contentTypes = ['multipart/form-data'];
535
381
  var accepts = ['application/json'];
536
- var returnType = _SignInWithEmail200Response["default"];
382
+ var returnType = _SignInResponse["default"];
537
383
  return this.apiClient.callApi('/auth-service/sign/in/with/mobile/number', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
538
384
  }
539
385
 
540
386
  /**
541
387
  * Callback function to receive the result of the signUp operation.
542
- * @callback module:api/DefaultApi~signUpCallback
388
+ * @callback module:api/AuthApi~signUpCallback
543
389
  * @param {String} error Error message, if any.
544
390
  * @param {module:model/SignUp200Response} data The data returned by the service call.
545
391
  * @param {String} response The complete HTTP response.
@@ -554,7 +400,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
554
400
  * @param {String} [emailId] Email ID of the user
555
401
  * @param {String} [mobileNumber] Mobile number
556
402
  * @param {String} [appId] Registered App ID
557
- * @param {module:api/DefaultApi~signUpCallback} callback The callback function, accepting three arguments: error, data, response
403
+ * @param {module:api/AuthApi~signUpCallback} callback The callback function, accepting three arguments: error, data, response
558
404
  * data is of type: {@link module:model/SignUp200Response}
559
405
  */
560
406
  }, {
@@ -589,7 +435,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
589
435
 
590
436
  /**
591
437
  * Callback function to receive the result of the validateCode operation.
592
- * @callback module:api/DefaultApi~validateCodeCallback
438
+ * @callback module:api/AuthApi~validateCodeCallback
593
439
  * @param {String} error Error message, if any.
594
440
  * @param {module:model/UserDetails} data The data returned by the service call.
595
441
  * @param {String} response The complete HTTP response.
@@ -603,7 +449,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
603
449
  * @param {String} mode
604
450
  * @param {Object} opts Optional parameters
605
451
  * @param {String} [appId]
606
- * @param {module:api/DefaultApi~validateCodeCallback} callback The callback function, accepting three arguments: error, data, response
452
+ * @param {module:api/AuthApi~validateCodeCallback} callback The callback function, accepting three arguments: error, data, response
607
453
  * data is of type: {@link module:model/UserDetails}
608
454
  */
609
455
  }, {