@xfloor/floor-memory-sdk-js 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -22
- package/dist/ApiClient.js +2 -2
- package/dist/api/{DefaultApi.js → AuthApi.js} +66 -179
- package/dist/api/EventApi.js +49 -1
- package/dist/api/FloorApi.js +306 -0
- package/dist/api/QueryApi.js +1 -1
- package/dist/index.js +46 -53
- package/dist/model/BlockDetails.js +1 -1
- package/dist/model/{SignInWithEmail200Response.js → ChangeEmail200Response.js} +32 -32
- package/dist/model/{SignInWithEmail200ResponsePodInfo.js → ChangeEmail200ResponsePodInfo.js} +27 -27
- package/dist/model/{SignInWithEmail200ResponseProfile.js → ChangeEmail200ResponseProfile.js} +44 -44
- package/dist/model/{SignInWithEmail200ResponseProfileAvatar.js → ChangeEmail200ResponseProfileAvatar.js} +21 -21
- package/dist/model/ChangePassword200Response.js +1 -1
- package/dist/model/{GetFloorInformation200Response.js → EditFloor200Response.js} +28 -28
- package/dist/model/EditFloor400Response.js +1 -1
- package/dist/model/EditFloor400ResponseError.js +1 -1
- package/dist/model/Event400Response.js +1 -1
- package/dist/model/Event400ResponseError.js +1 -1
- package/dist/model/EventResponse.js +1 -1
- package/dist/model/FloorInfo.js +1 -1
- package/dist/model/GetRecentEvents200Response.js +1 -1
- package/dist/model/GetRecentEvents200ResponseItemsInner.js +1 -1
- package/dist/model/GetRecentEvents200ResponseItemsInnerAuthor.js +1 -1
- package/dist/model/GetRecentEvents400Response.js +1 -1
- package/dist/model/GetRecentEvents400ResponseError.js +1 -1
- package/dist/model/Media.js +1 -1
- package/dist/model/Model400ErrorCode.js +1 -1
- package/dist/model/Query422Response.js +1 -1
- package/dist/model/Query422ResponseError.js +1 -1
- package/dist/model/QueryRequest.js +1 -1
- package/dist/model/QueryRequestFilters.js +1 -1
- package/dist/model/QueryResponse.js +1 -1
- package/dist/model/QueryResponseItemsInner.js +1 -1
- package/dist/model/Remaining.js +1 -1
- package/dist/model/ResetPassword200Response.js +1 -1
- package/dist/model/ResetPassword400Response.js +1 -1
- package/dist/model/SendValidationCode200Response.js +1 -1
- package/dist/model/SignInResponse.js +145 -0
- package/dist/model/SignUp200Response.js +1 -1
- package/dist/model/SignUpResponse.js +1 -1
- package/dist/model/UserDetails.js +11 -11
- package/dist/model/ValidateCode400Response.js +1 -1
- package/dist/model/ValidateCode400ResponseError.js +1 -1
- package/dist/model/ValidateCode412Response.js +1 -1
- package/package.json +1 -1
- package/dist/api/EditFloorApi.js +0 -105
- package/dist/api/GetFloorInformationApi.js +0 -95
- 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.
|
|
14
|
+
- Package version: 1.0.21
|
|
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.
|
|
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,40 @@ api.changeEmail(newEmailId, activationCode, callback);
|
|
|
131
131
|
|
|
132
132
|
| Class | Method | HTTP request | Description |
|
|
133
133
|
| --- | --- | --- | --- |
|
|
134
|
-
| `XfloorFloorMemorySdkJs.
|
|
135
|
-
| `XfloorFloorMemorySdkJs.
|
|
136
|
-
| `XfloorFloorMemorySdkJs.
|
|
137
|
-
| `XfloorFloorMemorySdkJs.
|
|
138
|
-
| `XfloorFloorMemorySdkJs.
|
|
139
|
-
| `XfloorFloorMemorySdkJs.
|
|
140
|
-
| `XfloorFloorMemorySdkJs.
|
|
141
|
-
| `XfloorFloorMemorySdkJs.
|
|
142
|
-
| `XfloorFloorMemorySdkJs.
|
|
143
|
-
| `XfloorFloorMemorySdkJs.
|
|
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` | [**registerExternalUserIdentity**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/AuthApi.md#registerExternalUserIdentity) | **POST** /memory/identity/external-user | External User Registration |
|
|
138
|
+
| `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 |
|
|
139
|
+
| `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 |
|
|
140
|
+
| `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 |
|
|
141
|
+
| `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 |
|
|
142
|
+
| `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 |
|
|
143
|
+
| `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
144
|
| `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.
|
|
149
|
-
| `XfloorFloorMemorySdkJs.
|
|
145
|
+
| `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 |
|
|
146
|
+
| `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 |
|
|
147
|
+
| `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 |
|
|
148
|
+
| `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 |
|
|
149
|
+
| `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 |
|
|
150
|
+
| `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
151
|
| `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
152
|
|
|
152
153
|
### Documentation for Models
|
|
153
154
|
|
|
154
155
|
- [XfloorFloorMemorySdkJs.BlockDetails](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/BlockDetails.md)
|
|
156
|
+
- [XfloorFloorMemorySdkJs.ChangeEmail200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ChangeEmail200Response.md)
|
|
157
|
+
- [XfloorFloorMemorySdkJs.ChangeEmail200ResponsePodInfo](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ChangeEmail200ResponsePodInfo.md)
|
|
158
|
+
- [XfloorFloorMemorySdkJs.ChangeEmail200ResponseProfile](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ChangeEmail200ResponseProfile.md)
|
|
159
|
+
- [XfloorFloorMemorySdkJs.ChangeEmail200ResponseProfileAvatar](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ChangeEmail200ResponseProfileAvatar.md)
|
|
155
160
|
- [XfloorFloorMemorySdkJs.ChangePassword200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ChangePassword200Response.md)
|
|
161
|
+
- [XfloorFloorMemorySdkJs.EditFloor200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/EditFloor200Response.md)
|
|
156
162
|
- [XfloorFloorMemorySdkJs.EditFloor400Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/EditFloor400Response.md)
|
|
157
163
|
- [XfloorFloorMemorySdkJs.EditFloor400ResponseError](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/EditFloor400ResponseError.md)
|
|
158
164
|
- [XfloorFloorMemorySdkJs.Event400Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/Event400Response.md)
|
|
159
165
|
- [XfloorFloorMemorySdkJs.Event400ResponseError](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/Event400ResponseError.md)
|
|
160
166
|
- [XfloorFloorMemorySdkJs.EventResponse](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/EventResponse.md)
|
|
161
167
|
- [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
168
|
- [XfloorFloorMemorySdkJs.GetRecentEvents200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetRecentEvents200Response.md)
|
|
164
169
|
- [XfloorFloorMemorySdkJs.GetRecentEvents200ResponseItemsInner](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetRecentEvents200ResponseItemsInner.md)
|
|
165
170
|
- [XfloorFloorMemorySdkJs.GetRecentEvents200ResponseItemsInnerAuthor](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetRecentEvents200ResponseItemsInnerAuthor.md)
|
|
@@ -177,10 +182,7 @@ api.changeEmail(newEmailId, activationCode, callback);
|
|
|
177
182
|
- [XfloorFloorMemorySdkJs.ResetPassword200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ResetPassword200Response.md)
|
|
178
183
|
- [XfloorFloorMemorySdkJs.ResetPassword400Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ResetPassword400Response.md)
|
|
179
184
|
- [XfloorFloorMemorySdkJs.SendValidationCode200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SendValidationCode200Response.md)
|
|
180
|
-
- [XfloorFloorMemorySdkJs.
|
|
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)
|
|
185
|
+
- [XfloorFloorMemorySdkJs.SignInResponse](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignInResponse.md)
|
|
184
186
|
- [XfloorFloorMemorySdkJs.SignUp200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignUp200Response.md)
|
|
185
187
|
- [XfloorFloorMemorySdkJs.SignUpResponse](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignUpResponse.md)
|
|
186
188
|
- [XfloorFloorMemorySdkJs.UserDetails](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/UserDetails.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.
|
|
30
|
+
* @version 1.0.21
|
|
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.
|
|
71
|
+
'User-Agent': 'OpenAPI-Generator/1.0.21/Javascript'
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
/**
|
|
@@ -5,14 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _ChangeEmail200Response = _interopRequireDefault(require("../model/ChangeEmail200Response"));
|
|
8
9
|
var _ChangePassword200Response = _interopRequireDefault(require("../model/ChangePassword200Response"));
|
|
9
|
-
var _EditFloor400Response = _interopRequireDefault(require("../model/EditFloor400Response"));
|
|
10
|
-
var _GetFloorInformation200Response = _interopRequireDefault(require("../model/GetFloorInformation200Response"));
|
|
11
10
|
var _GetRecentEvents400Response = _interopRequireDefault(require("../model/GetRecentEvents400Response"));
|
|
12
11
|
var _ResetPassword200Response = _interopRequireDefault(require("../model/ResetPassword200Response"));
|
|
13
12
|
var _ResetPassword400Response = _interopRequireDefault(require("../model/ResetPassword400Response"));
|
|
14
13
|
var _SendValidationCode200Response = _interopRequireDefault(require("../model/SendValidationCode200Response"));
|
|
15
|
-
var
|
|
14
|
+
var _SignInResponse = _interopRequireDefault(require("../model/SignInResponse"));
|
|
16
15
|
var _SignUp200Response = _interopRequireDefault(require("../model/SignUp200Response"));
|
|
17
16
|
var _UserDetails = _interopRequireDefault(require("../model/UserDetails"));
|
|
18
17
|
var _ValidateCode400Response = _interopRequireDefault(require("../model/ValidateCode400Response"));
|
|
@@ -38,28 +37,28 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
38
37
|
*
|
|
39
38
|
*/
|
|
40
39
|
/**
|
|
41
|
-
*
|
|
42
|
-
* @module api/
|
|
43
|
-
* @version 1.0.
|
|
40
|
+
* Auth service.
|
|
41
|
+
* @module api/AuthApi
|
|
42
|
+
* @version 1.0.21
|
|
44
43
|
*/
|
|
45
|
-
var
|
|
44
|
+
var AuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
46
45
|
/**
|
|
47
|
-
* Constructs a new
|
|
48
|
-
* @alias module:api/
|
|
46
|
+
* Constructs a new AuthApi.
|
|
47
|
+
* @alias module:api/AuthApi
|
|
49
48
|
* @class
|
|
50
49
|
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
51
50
|
* default to {@link module:ApiClient#instance} if unspecified.
|
|
52
51
|
*/
|
|
53
|
-
function
|
|
54
|
-
_classCallCheck(this,
|
|
52
|
+
function AuthApi(apiClient) {
|
|
53
|
+
_classCallCheck(this, AuthApi);
|
|
55
54
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
56
55
|
}
|
|
57
56
|
|
|
58
57
|
/**
|
|
59
58
|
* Callback function to receive the result of the changeEmail operation.
|
|
60
|
-
* @callback module:api/
|
|
59
|
+
* @callback module:api/AuthApi~changeEmailCallback
|
|
61
60
|
* @param {String} error Error message, if any.
|
|
62
|
-
* @param {module:model/
|
|
61
|
+
* @param {module:model/ChangeEmail200Response} data The data returned by the service call.
|
|
63
62
|
* @param {String} response The complete HTTP response.
|
|
64
63
|
*/
|
|
65
64
|
|
|
@@ -68,10 +67,10 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
68
67
|
* 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
68
|
* @param {String} newEmailId New Email ID
|
|
70
69
|
* @param {String} activationCode Validation code
|
|
71
|
-
* @param {module:api/
|
|
72
|
-
* data is of type: {@link module:model/
|
|
70
|
+
* @param {module:api/AuthApi~changeEmailCallback} callback The callback function, accepting three arguments: error, data, response
|
|
71
|
+
* data is of type: {@link module:model/ChangeEmail200Response}
|
|
73
72
|
*/
|
|
74
|
-
return _createClass(
|
|
73
|
+
return _createClass(AuthApi, [{
|
|
75
74
|
key: "changeEmail",
|
|
76
75
|
value: function changeEmail(newEmailId, activationCode, callback) {
|
|
77
76
|
var postBody = null;
|
|
@@ -93,15 +92,15 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
93
92
|
var authNames = ['bearer'];
|
|
94
93
|
var contentTypes = ['multipart/form-data'];
|
|
95
94
|
var accepts = ['application/json'];
|
|
96
|
-
var returnType =
|
|
95
|
+
var returnType = _ChangeEmail200Response["default"];
|
|
97
96
|
return this.apiClient.callApi('/auth-service/change/email', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
98
97
|
}
|
|
99
98
|
|
|
100
99
|
/**
|
|
101
100
|
* Callback function to receive the result of the changeMobileNumber operation.
|
|
102
|
-
* @callback module:api/
|
|
101
|
+
* @callback module:api/AuthApi~changeMobileNumberCallback
|
|
103
102
|
* @param {String} error Error message, if any.
|
|
104
|
-
* @param {module:model/
|
|
103
|
+
* @param {module:model/ChangeEmail200Response} data The data returned by the service call.
|
|
105
104
|
* @param {String} response The complete HTTP response.
|
|
106
105
|
*/
|
|
107
106
|
|
|
@@ -110,8 +109,8 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
110
109
|
* 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
110
|
* @param {String} newMobileNumber New mobile number
|
|
112
111
|
* @param {String} activationCode Activation code
|
|
113
|
-
* @param {module:api/
|
|
114
|
-
* data is of type: {@link module:model/
|
|
112
|
+
* @param {module:api/AuthApi~changeMobileNumberCallback} callback The callback function, accepting three arguments: error, data, response
|
|
113
|
+
* data is of type: {@link module:model/ChangeEmail200Response}
|
|
115
114
|
*/
|
|
116
115
|
}, {
|
|
117
116
|
key: "changeMobileNumber",
|
|
@@ -135,13 +134,13 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
135
134
|
var authNames = ['bearer'];
|
|
136
135
|
var contentTypes = ['multipart/form-data'];
|
|
137
136
|
var accepts = ['application/json'];
|
|
138
|
-
var returnType =
|
|
137
|
+
var returnType = _ChangeEmail200Response["default"];
|
|
139
138
|
return this.apiClient.callApi('/auth-service/change/mobile', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
140
139
|
}
|
|
141
140
|
|
|
142
141
|
/**
|
|
143
142
|
* Callback function to receive the result of the changePassword operation.
|
|
144
|
-
* @callback module:api/
|
|
143
|
+
* @callback module:api/AuthApi~changePasswordCallback
|
|
145
144
|
* @param {String} error Error message, if any.
|
|
146
145
|
* @param {module:model/ChangePassword200Response} data The data returned by the service call.
|
|
147
146
|
* @param {String} response The complete HTTP response.
|
|
@@ -154,7 +153,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
154
153
|
* @param {String} activationCode Validation code
|
|
155
154
|
* @param {Object} opts Optional parameters
|
|
156
155
|
* @param {String} [userId] User ID
|
|
157
|
-
* @param {module:api/
|
|
156
|
+
* @param {module:api/AuthApi~changePasswordCallback} callback The callback function, accepting three arguments: error, data, response
|
|
158
157
|
* data is of type: {@link module:model/ChangePassword200Response}
|
|
159
158
|
*/
|
|
160
159
|
}, {
|
|
@@ -186,160 +185,48 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
186
185
|
}
|
|
187
186
|
|
|
188
187
|
/**
|
|
189
|
-
* Callback function to receive the result of the
|
|
190
|
-
* @callback module:api/
|
|
188
|
+
* Callback function to receive the result of the registerExternalUserIdentity operation.
|
|
189
|
+
* @callback module:api/AuthApi~registerExternalUserIdentityCallback
|
|
191
190
|
* @param {String} error Error message, if any.
|
|
192
|
-
* @param {module:model/
|
|
191
|
+
* @param {module:model/ChangeEmail200Response} data The data returned by the service call.
|
|
193
192
|
* @param {String} response The complete HTTP response.
|
|
194
193
|
*/
|
|
195
194
|
|
|
196
195
|
/**
|
|
197
|
-
*
|
|
198
|
-
* This API
|
|
199
|
-
* @param {
|
|
200
|
-
* @param {String}
|
|
201
|
-
* @param {String}
|
|
202
|
-
* @param {
|
|
203
|
-
*
|
|
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}
|
|
196
|
+
* External User Registration
|
|
197
|
+
* This API allows a calling application to **pass externally authenticated user identity information to xfloor** after completing authentication within its own system. xfloor **does not perform authentication, credential verification, or session management** as part of this API. The calling application is fully responsible for validating the user and ensuring the correctness of the identity data provided. Upon invocation, xfloor will: * **Create a new user profile** if no matching user exists, or * **Update the existing user profile** if the user is already present. xfloor returns a unique `xfloor_user_id`, which serves as the **canonical user identifier** and must be used in all subsequent xfloor APIs, including floors, blocks, conversations, memory interactions, and analytics.
|
|
198
|
+
* @param {Object} opts Optional parameters
|
|
199
|
+
* @param {String} [mobileNumber]
|
|
200
|
+
* @param {String} [emailId]
|
|
201
|
+
* @param {String} [name]
|
|
202
|
+
* @param {String} [appId]
|
|
203
|
+
* @param {module:api/AuthApi~registerExternalUserIdentityCallback} callback The callback function, accepting three arguments: error, data, response
|
|
204
|
+
* data is of type: {@link module:model/ChangeEmail200Response}
|
|
303
205
|
*/
|
|
304
206
|
}, {
|
|
305
|
-
key: "
|
|
306
|
-
value: function
|
|
207
|
+
key: "registerExternalUserIdentity",
|
|
208
|
+
value: function registerExternalUserIdentity(opts, callback) {
|
|
209
|
+
opts = opts || {};
|
|
307
210
|
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
211
|
var pathParams = {};
|
|
325
|
-
var queryParams = {
|
|
326
|
-
'user_id': userId,
|
|
327
|
-
'app_id': appId,
|
|
328
|
-
'from': from,
|
|
329
|
-
'to': to
|
|
330
|
-
};
|
|
212
|
+
var queryParams = {};
|
|
331
213
|
var headerParams = {};
|
|
332
|
-
var formParams = {
|
|
214
|
+
var formParams = {
|
|
215
|
+
'mobile_number': opts['mobileNumber'],
|
|
216
|
+
'email_id': opts['emailId'],
|
|
217
|
+
'name': opts['name'],
|
|
218
|
+
'app_id': opts['appId']
|
|
219
|
+
};
|
|
333
220
|
var authNames = ['bearer'];
|
|
334
|
-
var contentTypes = [];
|
|
221
|
+
var contentTypes = ['multipart/form-data'];
|
|
335
222
|
var accepts = ['application/json'];
|
|
336
|
-
var returnType =
|
|
337
|
-
return this.apiClient.callApi('/
|
|
223
|
+
var returnType = _ChangeEmail200Response["default"];
|
|
224
|
+
return this.apiClient.callApi('/memory/identity/external-user', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
338
225
|
}
|
|
339
226
|
|
|
340
227
|
/**
|
|
341
228
|
* Callback function to receive the result of the resetPassword operation.
|
|
342
|
-
* @callback module:api/
|
|
229
|
+
* @callback module:api/AuthApi~resetPasswordCallback
|
|
343
230
|
* @param {String} error Error message, if any.
|
|
344
231
|
* @param {module:model/ResetPassword200Response} data The data returned by the service call.
|
|
345
232
|
* @param {String} response The complete HTTP response.
|
|
@@ -354,7 +241,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
354
241
|
* @param {String} [mobileNumber]
|
|
355
242
|
* @param {String} [emailId]
|
|
356
243
|
* @param {String} [appId]
|
|
357
|
-
* @param {module:api/
|
|
244
|
+
* @param {module:api/AuthApi~resetPasswordCallback} callback The callback function, accepting three arguments: error, data, response
|
|
358
245
|
* data is of type: {@link module:model/ResetPassword200Response}
|
|
359
246
|
*/
|
|
360
247
|
}, {
|
|
@@ -389,7 +276,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
389
276
|
|
|
390
277
|
/**
|
|
391
278
|
* Callback function to receive the result of the sendValidationCode operation.
|
|
392
|
-
* @callback module:api/
|
|
279
|
+
* @callback module:api/AuthApi~sendValidationCodeCallback
|
|
393
280
|
* @param {String} error Error message, if any.
|
|
394
281
|
* @param {module:model/SendValidationCode200Response} data The data returned by the service call.
|
|
395
282
|
* @param {String} response The complete HTTP response.
|
|
@@ -404,7 +291,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
404
291
|
* @param {String} [mobileNumber]
|
|
405
292
|
* @param {String} [emailId]
|
|
406
293
|
* @param {String} [appId]
|
|
407
|
-
* @param {module:api/
|
|
294
|
+
* @param {module:api/AuthApi~sendValidationCodeCallback} callback The callback function, accepting three arguments: error, data, response
|
|
408
295
|
* data is of type: {@link module:model/SendValidationCode200Response}
|
|
409
296
|
*/
|
|
410
297
|
}, {
|
|
@@ -435,9 +322,9 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
435
322
|
|
|
436
323
|
/**
|
|
437
324
|
* Callback function to receive the result of the signInWithEmail operation.
|
|
438
|
-
* @callback module:api/
|
|
325
|
+
* @callback module:api/AuthApi~signInWithEmailCallback
|
|
439
326
|
* @param {String} error Error message, if any.
|
|
440
|
-
* @param {module:model/
|
|
327
|
+
* @param {module:model/SignInResponse} data The data returned by the service call.
|
|
441
328
|
* @param {String} response The complete HTTP response.
|
|
442
329
|
*/
|
|
443
330
|
|
|
@@ -449,8 +336,8 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
449
336
|
* @param {String} loginType 1 is for password, 2 is for validation code
|
|
450
337
|
* @param {Object} opts Optional parameters
|
|
451
338
|
* @param {String} [appId] App ID
|
|
452
|
-
* @param {module:api/
|
|
453
|
-
* data is of type: {@link module:model/
|
|
339
|
+
* @param {module:api/AuthApi~signInWithEmailCallback} callback The callback function, accepting three arguments: error, data, response
|
|
340
|
+
* data is of type: {@link module:model/SignInResponse}
|
|
454
341
|
*/
|
|
455
342
|
}, {
|
|
456
343
|
key: "signInWithEmail",
|
|
@@ -481,15 +368,15 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
481
368
|
var authNames = ['bearer'];
|
|
482
369
|
var contentTypes = ['multipart/form-data'];
|
|
483
370
|
var accepts = ['application/json'];
|
|
484
|
-
var returnType =
|
|
371
|
+
var returnType = _SignInResponse["default"];
|
|
485
372
|
return this.apiClient.callApi('/auth-service/sign/in/with/email', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
486
373
|
}
|
|
487
374
|
|
|
488
375
|
/**
|
|
489
376
|
* Callback function to receive the result of the signInWithMobileNumber operation.
|
|
490
|
-
* @callback module:api/
|
|
377
|
+
* @callback module:api/AuthApi~signInWithMobileNumberCallback
|
|
491
378
|
* @param {String} error Error message, if any.
|
|
492
|
-
* @param {module:model/
|
|
379
|
+
* @param {module:model/SignInResponse} data The data returned by the service call.
|
|
493
380
|
* @param {String} response The complete HTTP response.
|
|
494
381
|
*/
|
|
495
382
|
|
|
@@ -501,8 +388,8 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
501
388
|
* @param {String} loginType 1 for password, 2 for activate code
|
|
502
389
|
* @param {Object} opts Optional parameters
|
|
503
390
|
* @param {String} [appId] App ID
|
|
504
|
-
* @param {module:api/
|
|
505
|
-
* data is of type: {@link module:model/
|
|
391
|
+
* @param {module:api/AuthApi~signInWithMobileNumberCallback} callback The callback function, accepting three arguments: error, data, response
|
|
392
|
+
* data is of type: {@link module:model/SignInResponse}
|
|
506
393
|
*/
|
|
507
394
|
}, {
|
|
508
395
|
key: "signInWithMobileNumber",
|
|
@@ -533,13 +420,13 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
533
420
|
var authNames = ['bearer'];
|
|
534
421
|
var contentTypes = ['multipart/form-data'];
|
|
535
422
|
var accepts = ['application/json'];
|
|
536
|
-
var returnType =
|
|
423
|
+
var returnType = _SignInResponse["default"];
|
|
537
424
|
return this.apiClient.callApi('/auth-service/sign/in/with/mobile/number', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
538
425
|
}
|
|
539
426
|
|
|
540
427
|
/**
|
|
541
428
|
* Callback function to receive the result of the signUp operation.
|
|
542
|
-
* @callback module:api/
|
|
429
|
+
* @callback module:api/AuthApi~signUpCallback
|
|
543
430
|
* @param {String} error Error message, if any.
|
|
544
431
|
* @param {module:model/SignUp200Response} data The data returned by the service call.
|
|
545
432
|
* @param {String} response The complete HTTP response.
|
|
@@ -554,7 +441,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
554
441
|
* @param {String} [emailId] Email ID of the user
|
|
555
442
|
* @param {String} [mobileNumber] Mobile number
|
|
556
443
|
* @param {String} [appId] Registered App ID
|
|
557
|
-
* @param {module:api/
|
|
444
|
+
* @param {module:api/AuthApi~signUpCallback} callback The callback function, accepting three arguments: error, data, response
|
|
558
445
|
* data is of type: {@link module:model/SignUp200Response}
|
|
559
446
|
*/
|
|
560
447
|
}, {
|
|
@@ -589,7 +476,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
589
476
|
|
|
590
477
|
/**
|
|
591
478
|
* Callback function to receive the result of the validateCode operation.
|
|
592
|
-
* @callback module:api/
|
|
479
|
+
* @callback module:api/AuthApi~validateCodeCallback
|
|
593
480
|
* @param {String} error Error message, if any.
|
|
594
481
|
* @param {module:model/UserDetails} data The data returned by the service call.
|
|
595
482
|
* @param {String} response The complete HTTP response.
|
|
@@ -603,7 +490,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
603
490
|
* @param {String} mode
|
|
604
491
|
* @param {Object} opts Optional parameters
|
|
605
492
|
* @param {String} [appId]
|
|
606
|
-
* @param {module:api/
|
|
493
|
+
* @param {module:api/AuthApi~validateCodeCallback} callback The callback function, accepting three arguments: error, data, response
|
|
607
494
|
* data is of type: {@link module:model/UserDetails}
|
|
608
495
|
*/
|
|
609
496
|
}, {
|