@xfloor/floor-memory-sdk-js 1.0.13 → 1.0.14

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 (63) hide show
  1. package/README.md +3 -4
  2. package/dist/ApiClient.js +6 -6
  3. package/dist/api/DefaultApi.js +58 -27
  4. package/dist/api/EditFloorApi.js +2 -2
  5. package/dist/api/EventApi.js +11 -5
  6. package/dist/api/GetFloorInformationApi.js +1 -1
  7. package/dist/api/GetRecentEventsApi.js +1 -1
  8. package/dist/api/QueryApi.js +1 -1
  9. package/dist/index.js +0 -7
  10. package/dist/model/BlockDetails.js +1 -1
  11. package/dist/model/ChangePassword200Response.js +1 -1
  12. package/dist/model/ConversationThreads200Response.js +1 -1
  13. package/dist/model/ConversationThreads200ResponseThreadsInner.js +1 -1
  14. package/dist/model/EditFloor400Response.js +1 -1
  15. package/dist/model/EditFloor400ResponseError.js +1 -1
  16. package/dist/model/Event400Response.js +1 -1
  17. package/dist/model/Event400ResponseError.js +1 -1
  18. package/dist/model/EventResponse.js +1 -1
  19. package/dist/model/FloorInfo.js +1 -1
  20. package/dist/model/GetConversations200Response.js +1 -1
  21. package/dist/model/GetConversations200ResponseConversationInner.js +1 -1
  22. package/dist/model/GetConversations200ResponseConversationInnerAssistant.js +1 -1
  23. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInner.js +1 -1
  24. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerAiModelDetails.js +1 -1
  25. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerMessage.js +1 -1
  26. package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerPromptDetails.js +1 -1
  27. package/dist/model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts.js +1 -1
  28. package/dist/model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.js +1 -1
  29. package/dist/model/GetConversations200ResponseConversationInnerUser.js +1 -1
  30. package/dist/model/GetConversations200ResponseConversationInnerUserContext.js +1 -1
  31. package/dist/model/GetFloorInformation200Response.js +1 -1
  32. package/dist/model/GetRecentEvents200Response.js +1 -1
  33. package/dist/model/GetRecentEvents200ResponseItemsInner.js +1 -1
  34. package/dist/model/GetRecentEvents200ResponseItemsInnerAuthor.js +1 -1
  35. package/dist/model/GetRecentEvents400Response.js +1 -1
  36. package/dist/model/GetRecentEvents400ResponseError.js +1 -1
  37. package/dist/model/Media.js +1 -1
  38. package/dist/model/Model400ErrorCode.js +1 -1
  39. package/dist/model/PostAdd.js +1 -1
  40. package/dist/model/Query422Response.js +1 -1
  41. package/dist/model/Query422ResponseError.js +1 -1
  42. package/dist/model/QueryRequest.js +1 -1
  43. package/dist/model/QueryRequestFilters.js +1 -1
  44. package/dist/model/QueryResponse.js +1 -1
  45. package/dist/model/QueryResponseItemsInner.js +1 -1
  46. package/dist/model/ResetPassword200Response.js +1 -1
  47. package/dist/model/ResetPassword400Response.js +1 -1
  48. package/dist/model/SendSignInValidationCode200Response.js +1 -1
  49. package/dist/model/SendValidationCode200Response.js +1 -1
  50. package/dist/model/SignInWithEmail200Response.js +1 -1
  51. package/dist/model/SignInWithEmail200ResponsePodInfo.js +1 -1
  52. package/dist/model/SignInWithEmail200ResponseProfile.js +1 -1
  53. package/dist/model/SignInWithEmail200ResponseProfileAvatar.js +1 -1
  54. package/dist/model/SignUp200Response.js +13 -1
  55. package/dist/model/SignUpResponse.js +1 -1
  56. package/dist/model/Threads.js +1 -1
  57. package/dist/model/UserDetails.js +1 -1
  58. package/dist/model/ValidateCode400Response.js +1 -1
  59. package/dist/model/ValidateCode400ResponseError.js +1 -1
  60. package/dist/model/ValidateCode412Response.js +1 -1
  61. package/dist/model/ValidateCodeRequest.js +1 -1
  62. package/package.json +1 -1
  63. package/dist/model/SendValidationCodeRequest.js +0 -152
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.13
14
+ - Package version: 1.0.14
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/)
@@ -136,8 +136,8 @@ api.apiDeveloperCreateAppPost(inputInfo, opts, callback);
136
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
137
  | `XfloorFloorMemorySdkJs.DefaultApi` | [**conversationThreads**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#conversationThreads) | **GET** /agent/memory/threads | Get the conversational threads |
138
138
  | `XfloorFloorMemorySdkJs.DefaultApi` | [**getConversations**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#getConversations) | **GET** /agent/memory/conversations | Conversations |
139
- | `XfloorFloorMemorySdkJs.DefaultApi` | [**makeFloorPrivate**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#makeFloorPrivate) | **POST** /api/memory/make/floor/private | Make floor Private |
140
- | `XfloorFloorMemorySdkJs.DefaultApi` | [**makeFloorPublic**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#makeFloorPublic) | **POST** /api/memory/make/floor/public | Make floor public |
139
+ | `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 |
140
+ | `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 |
141
141
  | `XfloorFloorMemorySdkJs.DefaultApi` | [**registerExternalUserIdentity**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#registerExternalUserIdentity) | **POST** /memory/identity/external-user | External User Registration |
142
142
  | `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 |
143
143
  | `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 |
@@ -195,7 +195,6 @@ api.apiDeveloperCreateAppPost(inputInfo, opts, callback);
195
195
  - [XfloorFloorMemorySdkJs.ResetPassword400Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ResetPassword400Response.md)
196
196
  - [XfloorFloorMemorySdkJs.SendSignInValidationCode200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SendSignInValidationCode200Response.md)
197
197
  - [XfloorFloorMemorySdkJs.SendValidationCode200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SendValidationCode200Response.md)
198
- - [XfloorFloorMemorySdkJs.SendValidationCodeRequest](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SendValidationCodeRequest.md)
199
198
  - [XfloorFloorMemorySdkJs.SignInWithEmail200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignInWithEmail200Response.md)
200
199
  - [XfloorFloorMemorySdkJs.SignInWithEmail200ResponsePodInfo](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignInWithEmail200ResponsePodInfo.md)
201
200
  - [XfloorFloorMemorySdkJs.SignInWithEmail200ResponseProfile](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignInWithEmail200ResponseProfile.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.13
30
+ * @version 1.0.14
31
31
  */
32
32
  /**
33
33
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -43,12 +43,12 @@ var ApiClient = /*#__PURE__*/function () {
43
43
  * @param {String} basePath
44
44
  */
45
45
  function ApiClient() {
46
- var basePath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'http://localhost';
46
+ var basePath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'https://appfloor.in';
47
47
  _classCallCheck(this, ApiClient);
48
48
  /**
49
49
  * The base URL against which to resolve every API call's (relative) path.
50
50
  * @type {String}
51
- * @default http://localhost
51
+ * @default https://appfloor.in
52
52
  */
53
53
  this.basePath = basePath.replace(/\/+$/, '');
54
54
 
@@ -68,7 +68,7 @@ var ApiClient = /*#__PURE__*/function () {
68
68
  * @default {}
69
69
  */
70
70
  this.defaultHeaders = {
71
- 'User-Agent': 'OpenAPI-Generator/1.0.13/Javascript'
71
+ 'User-Agent': 'OpenAPI-Generator/1.0.14/Javascript'
72
72
  };
73
73
 
74
74
  /**
@@ -524,8 +524,8 @@ var ApiClient = /*#__PURE__*/function () {
524
524
  */
525
525
  function hostSettings() {
526
526
  return [{
527
- 'url': "",
528
- 'description': "No description provided"
527
+ 'url': "https://appfloor.in",
528
+ 'description': "Prod Env"
529
529
  }];
530
530
  }
531
531
  }, {
@@ -15,7 +15,6 @@ var _ResetPassword200Response = _interopRequireDefault(require("../model/ResetPa
15
15
  var _ResetPassword400Response = _interopRequireDefault(require("../model/ResetPassword400Response"));
16
16
  var _SendSignInValidationCode200Response = _interopRequireDefault(require("../model/SendSignInValidationCode200Response"));
17
17
  var _SendValidationCode200Response = _interopRequireDefault(require("../model/SendValidationCode200Response"));
18
- var _SendValidationCodeRequest = _interopRequireDefault(require("../model/SendValidationCodeRequest"));
19
18
  var _SignInWithEmail200Response = _interopRequireDefault(require("../model/SignInWithEmail200Response"));
20
19
  var _SignUp200Response = _interopRequireDefault(require("../model/SignUp200Response"));
21
20
  var _UserDetails = _interopRequireDefault(require("../model/UserDetails"));
@@ -45,7 +44,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
45
44
  /**
46
45
  * Default service.
47
46
  * @module api/DefaultApi
48
- * @version 1.0.13
47
+ * @version 1.0.14
49
48
  */
50
49
  var DefaultApi = exports["default"] = /*#__PURE__*/function () {
51
50
  /**
@@ -351,7 +350,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
351
350
  /**
352
351
  * Make floor Private
353
352
  * 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).
354
- * @param {String} floorId Floor ID
353
+ * @param {String} floorId
355
354
  * @param {String} userId User ID
356
355
  * @param {String} appId App ID
357
356
  * @param {module:api/DefaultApi~makeFloorPrivateCallback} callback The callback function, accepting three arguments: error, data, response
@@ -373,9 +372,10 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
373
372
  if (appId === undefined || appId === null) {
374
373
  throw new Error("Missing the required parameter 'appId' when calling makeFloorPrivate");
375
374
  }
376
- var pathParams = {};
375
+ var pathParams = {
376
+ 'floor_id': floorId
377
+ };
377
378
  var queryParams = {
378
- 'floor_id': floorId,
379
379
  'user_id': userId,
380
380
  'app_id': appId
381
381
  };
@@ -385,7 +385,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
385
385
  var contentTypes = [];
386
386
  var accepts = ['application/json'];
387
387
  var returnType = _GetFloorInformation200Response["default"];
388
- return this.apiClient.callApi('/api/memory/make/floor/private', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
388
+ return this.apiClient.callApi('/api/memory/make/floor/private/{floor_id}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
389
389
  }
390
390
 
391
391
  /**
@@ -399,7 +399,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
399
399
  /**
400
400
  * Make floor public
401
401
  * 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.”**
402
- * @param {String} floorId Floor ID
402
+ * @param {String} floorId
403
403
  * @param {String} userId User ID
404
404
  * @param {String} appId App ID
405
405
  * @param {module:api/DefaultApi~makeFloorPublicCallback} callback The callback function, accepting three arguments: error, data, response
@@ -421,9 +421,10 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
421
421
  if (appId === undefined || appId === null) {
422
422
  throw new Error("Missing the required parameter 'appId' when calling makeFloorPublic");
423
423
  }
424
- var pathParams = {};
424
+ var pathParams = {
425
+ 'floor_id': floorId
426
+ };
425
427
  var queryParams = {
426
- 'floor_id': floorId,
427
428
  'user_id': userId,
428
429
  'app_id': appId
429
430
  };
@@ -433,7 +434,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
433
434
  var contentTypes = [];
434
435
  var accepts = ['application/json'];
435
436
  var returnType = _GetFloorInformation200Response["default"];
436
- return this.apiClient.callApi('/api/memory/make/floor/public', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
437
+ return this.apiClient.callApi('/api/memory/make/floor/public/{floor_id}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
437
438
  }
438
439
 
439
440
  /**
@@ -523,7 +524,7 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
523
524
  };
524
525
  var headerParams = {};
525
526
  var formParams = {};
526
- var authNames = [];
527
+ var authNames = ['bearer'];
527
528
  var contentTypes = [];
528
529
  var accepts = ['application/json'];
529
530
  var returnType = _GetFloorInformation200Response["default"];
@@ -627,24 +628,36 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
627
628
  /**
628
629
  * Send Validation code
629
630
  * Generates and sends a one-time validation code to the user for verification of sensitive or critical account operations. This API is used across multiple authentication and account-management flows. The validation code is delivered to the user via the appropriate channel (**email or mobile number**), based on the requested operation mode and the input provided. The generated code is **time-bound**, **single-use**, and must be validated using the corresponding verification APIs to complete the requested action. --- ### **Usage Scenarios (Mode Definition)** | Mode | Purpose | | ---- | ----------------------------- | | `0` | Email or mobile number change | | `1` | Password change | | `2` | Delete account | | `3` | Clear account | | `4` | Signup Verification | | `5` | Using OTP for Login | | `6` | OTP for forgot password | **Mode `4` – Signup Verification** For login verification, the validation code is sent to **either the email ID or the mobile number provided in the request**. At least **one of email or mobile number must be supplied** for this mode. --- ### **Behavior** * Generates a secure, one-time validation code * Sends the code to the appropriate channel: * Email or mobile number, depending on the operation mode and input * Associates the code with: * User identity (or login identifier) * Requested operation (`mode`) * Application context (if applicable) * Validation codes are valid for a limited duration and **cannot be reused** --- ### **Authentication** This endpoint requires **Bearer Token authentication**, **except** where explicitly allowed (for example, login-related flows). ``` Authorization: Bearer <access_token> ``` --- ### **Successful Response** On success, the API confirms that the validation code has been generated and successfully dispatched to the user. --- ### **Error Response** The API returns an error response if: * The user does not exist or is not eligible for the requested operation * The requested mode is invalid or unsupported * Required identifiers (email or mobile number for login verification) are missing * Rate limits are exceeded * Authorization fails (where applicable) --- ### **Security Notes (Recommended)** * Validation codes are single-use and time-bound * Rate limiting is enforced to prevent abuse * Repeated failures may trigger temporary blocking or additional verification --- ### **One-Line Summary** > Sends a one-time validation code for secure account and authentication operations, including login via email or mobile number.
630
- * @param {module:model/SendValidationCodeRequest} sendValidationCodeRequest
631
+ * @param {String} mode
632
+ * @param {Object} opts Optional parameters
633
+ * @param {String} [userId]
634
+ * @param {String} [mobileNumber]
635
+ * @param {String} [emailId]
636
+ * @param {String} [appId]
631
637
  * @param {module:api/DefaultApi~sendValidationCodeCallback} callback The callback function, accepting three arguments: error, data, response
632
638
  * data is of type: {@link module:model/SendValidationCode200Response}
633
639
  */
634
640
  }, {
635
641
  key: "sendValidationCode",
636
- value: function sendValidationCode(sendValidationCodeRequest, callback) {
637
- var postBody = sendValidationCodeRequest;
638
- // verify the required parameter 'sendValidationCodeRequest' is set
639
- if (sendValidationCodeRequest === undefined || sendValidationCodeRequest === null) {
640
- throw new Error("Missing the required parameter 'sendValidationCodeRequest' when calling sendValidationCode");
642
+ value: function sendValidationCode(mode, opts, callback) {
643
+ opts = opts || {};
644
+ var postBody = null;
645
+ // verify the required parameter 'mode' is set
646
+ if (mode === undefined || mode === null) {
647
+ throw new Error("Missing the required parameter 'mode' when calling sendValidationCode");
641
648
  }
642
649
  var pathParams = {};
643
650
  var queryParams = {};
644
651
  var headerParams = {};
645
- var formParams = {};
652
+ var formParams = {
653
+ 'user_id': opts['userId'],
654
+ 'mobile_number': opts['mobileNumber'],
655
+ 'mode': mode,
656
+ 'email_id': opts['emailId'],
657
+ 'app_id': opts['appId']
658
+ };
646
659
  var authNames = ['bearer'];
647
- var contentTypes = ['application/json'];
660
+ var contentTypes = ['multipart/form-data'];
648
661
  var accepts = ['application/json'];
649
662
  var returnType = _SendValidationCode200Response["default"];
650
663
  return this.apiClient.callApi('/auth-service/send/validation/code', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
@@ -713,24 +726,42 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
713
726
  /**
714
727
  * Sign In with Mobile number
715
728
  * Authenticates a user using a registered mobile number. The authentication method is determined by the specified `mode`. * When `login_type` is set to **`1`**, the user is authenticated using the **password** associated with the account. * When `login_type` is set to **`2`**, the user is authenticated using a **one-time activation code (OTP)** sent to the registered mobile number. For OTP-based authentication (`login_type = 1`), the client **must first call the Send Validation Code API** with the appropriate login mode to generate and deliver the activation code. --- ### **Request Formdata** | Field | Type | Required | Description | | ------------ | ------------- | -------- | ----------------------------------------------------------------- | | `mobile_number` | string | Yes | Mobile number| | `pass_code` | string | Yes | Password/Validation code depending on the login_type| | `login_type` | string | Yes | login type 1 for password 2 for validation code| |`app_id` | string | Yes | App ID | **Field Description** * `mobile_number` – Registered mobile number of the user * `pass_code` – Password / Validation code (password when `login_type= 1`; validation code when `login_type = 2`) * `login_type` – Login type * `1` → Password-based login * `2` → Activation code (OTP)–based login --- ### **Behavior Notes** * When `login_type = 2`, password validation is skipped. * OTP-based login requires a prior call to `/auth-service/send/sign/in/validation/code`. * Missing or invalid credentials for the selected mode will result in authentication failure. --- ### **Successful Response** On successful authentication, the user is signed in and a success response is returned according to the authentication flow. --- ### **Error Response** The API returns an error response if: * The mobile number is not registered * The password is incorrect (`login_type = 1`) * The activation code is missing, invalid, or expired (`login_type = 2`) * An invalid or unsupported mode is provided --- ### **One-Line Summary** > Signs in a user using a mobile number with either password-based or OTP-based authentication, based on the selected mode.
716
- * @param {Object.<String, Object>} body
729
+ * @param {String} mobileNumber Mobile number
730
+ * @param {String} passCode Pass code takes either password or validation code depending on the login_type
731
+ * @param {String} loginType 1 for password, 2 for activate code
732
+ * @param {Object} opts Optional parameters
733
+ * @param {String} [appId] App ID
717
734
  * @param {module:api/DefaultApi~signInWithMobileNumberCallback} callback The callback function, accepting three arguments: error, data, response
718
735
  * data is of type: {@link module:model/SignInWithEmail200Response}
719
736
  */
720
737
  }, {
721
738
  key: "signInWithMobileNumber",
722
- value: function signInWithMobileNumber(body, callback) {
723
- var postBody = body;
724
- // verify the required parameter 'body' is set
725
- if (body === undefined || body === null) {
726
- throw new Error("Missing the required parameter 'body' when calling signInWithMobileNumber");
739
+ value: function signInWithMobileNumber(mobileNumber, passCode, loginType, opts, callback) {
740
+ opts = opts || {};
741
+ var postBody = null;
742
+ // verify the required parameter 'mobileNumber' is set
743
+ if (mobileNumber === undefined || mobileNumber === null) {
744
+ throw new Error("Missing the required parameter 'mobileNumber' when calling signInWithMobileNumber");
745
+ }
746
+ // verify the required parameter 'passCode' is set
747
+ if (passCode === undefined || passCode === null) {
748
+ throw new Error("Missing the required parameter 'passCode' when calling signInWithMobileNumber");
749
+ }
750
+ // verify the required parameter 'loginType' is set
751
+ if (loginType === undefined || loginType === null) {
752
+ throw new Error("Missing the required parameter 'loginType' when calling signInWithMobileNumber");
727
753
  }
728
754
  var pathParams = {};
729
755
  var queryParams = {};
730
756
  var headerParams = {};
731
- var formParams = {};
757
+ var formParams = {
758
+ 'mobile_number': mobileNumber,
759
+ 'pass_code': passCode,
760
+ 'login_type': loginType,
761
+ 'app_id': opts['appId']
762
+ };
732
763
  var authNames = ['bearer'];
733
- var contentTypes = ['application/json'];
764
+ var contentTypes = ['multipart/form-data'];
734
765
  var accepts = ['application/json'];
735
766
  var returnType = _SignInWithEmail200Response["default"];
736
767
  return this.apiClient.callApi('/auth-service/sign/in/with/mobile/number', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * EditFloor service.
32
32
  * @module api/EditFloorApi
33
- * @version 1.0.13
33
+ * @version 1.0.14
34
34
  */
35
35
  var EditFloorApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -55,7 +55,7 @@ var EditFloorApi = exports["default"] = /*#__PURE__*/function () {
55
55
 
56
56
  /**
57
57
  * Edit floor
58
- * This API updates an existing floor’s profile metadata using **multipart form data**. A floor **can be edited only by its owner**. If the authenticated user is **not the owner of the floor**, the request will be rejected, even if the user is a member or follower of the floor. The API allows the floor owner to update: * Floor **title** * Floor **details/description** * Floor **logo/avatar image** After a successful update, the API returns the **latest floor object**, including the updated avatar and the current list of blocks associated with the floor. --- ## Authorization Rules (Critical) * The caller **must be authenticated** * The caller **must be the owner of the floor** * Members, followers, or pod consumers **cannot** edit the floor * Ownership is validated internally using the authenticated user context > **Ownership is mandatory. There are no partial permissions for this API.** --- ## Content-Type `multipart/form-data` --- ## Request Body (Multipart Form Data) ### Form Fields | Field Name | Type | Required | Description | | ---------- | ------ | ------------ | ---------------------------------------- | | `fid` | String | Recommended* | Immutable internal floor ID | | `floor_id` | String | Optional* | Public / human-readable floor identifier | | `title` | String | Optional | New floor title | | `details` | String | Optional | New floor description | | `logo` | File | Optional | New floor logo image (PNG/JPG/WebP) | * At least **one floor identifier** (`fid` or `floor_id`) must be provided. **Best practice:** Use `fid` as the primary identifier. --- ## Update Rules * At least one of `title`, `details`, or `logo` must be present * Missing update fields result in a validation error * If `logo` is provided, the previous logo is replaced --- ## Response Format `application/json` --- ## Sample Success Response ```json { \"floor_id\": \"my_floor\", \"title\": \"daughter ouch upon yummy clamor\", \"details\": \"nostrud occaecat incididunt dolor adipisicing\", \"fid\": \"86\", \"blocks\": [ { \"bid\": \"83\", \"type\": \"pariatur\", \"title\": \"wherever demobilise acidly refute\" } ], \"avatar\": { \"url\": \"https://legal-availability.name/\", \"id\": \"98\" } } ``` --- ## Error Responses (Authorization Focus) ### Not Floor Owner ```json { \"status\": \"ERROR\", \"message\": \"Only the floor owner can edit this floor\" } ``` ### Floor Not Found ```json { \"status\": \"ERROR\", \"message\": \"Floor not found\" } ``` ### No Update Fields ```json { \"status\": \"ERROR\", \"message\": \"No update fields provided\" } ``` --- ## Notes * This API is **owner-only by design** * Pods and developer tools must operate using **owner credentials** * Blocks are returned for convenience but are **not editable through this API** ---
58
+ * This API updates an existing floor’s profile metadata using **multipart form data**. A floor **can be edited only by its owner**. If the authenticated user is **not the owner of the floor**, the request will be rejected, even if the user is a member or follower of the floor. The API allows the floor owner to update: * Floor **title** * Floor **details/description** * Floor **logo/avatar image** After a successful update, the API returns the **latest floor object**, including the updated avatar and the current list of blocks associated with the floor. --- ## Authorization Rules (Critical) * The caller **must be authenticated** * The caller **must be the owner of the floor** * Members, followers, or pod consumers **cannot** edit the floor * Ownership is validated internally using the authenticated user context > **Ownership is mandatory. There are no partial permissions for this API.** --- ## Content-Type `multipart/form-data` --- ## Request Body (Multipart Form Data) ### Form Fields | Field Name | Type | Required | Description | | ---------- | ------ | ------------ | ---------------------------------------- | | `floor_id` | String | Optional* | Public / human-readable floor identifier | | `title` | String | Optional | New floor title | | `details` | String | Optional | New floor description | | `logo` | File | Optional | New floor logo image (PNG/JPG/WebP) | * At least **one floor identifier** (`fid` or `floor_id`) must be provided. **Best practice:** Use `fid` as the primary identifier. --- ## Update Rules * At least one of `title`, `details`, or `logo` must be present * Missing update fields result in a validation error * If `logo` is provided, the previous logo is replaced --- ## Response Format `application/json` --- ## Sample Success Response ```json { \"floor_id\": \"my_floor\", \"title\": \"daughter ouch upon yummy clamor\", \"details\": \"nostrud occaecat incididunt dolor adipisicing\", \"fid\": \"86\", \"blocks\": [ { \"bid\": \"83\", \"type\": \"pariatur\", \"title\": \"wherever demobilise acidly refute\" } ], \"avatar\": { \"url\": \"https://legal-availability.name/\", \"id\": \"98\" } } ``` --- ## Error Responses (Authorization Focus) ### Not Floor Owner ```json { \"status\": \"ERROR\", \"message\": \"Only the floor owner can edit this floor\" } ``` ### Floor Not Found ```json { \"status\": \"ERROR\", \"message\": \"Floor not found\" } ``` ### No Update Fields ```json { \"status\": \"ERROR\", \"message\": \"No update fields provided\" } ``` --- ## Notes * This API is **owner-only by design** * Pods and developer tools must operate using **owner credentials** * Blocks are returned for convenience but are **not editable through this API** ---
59
59
  * @param {String} floorId
60
60
  * @param {String} userId User ID
61
61
  * @param {String} appId App ID
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Event service.
32
32
  * @module api/EventApi
33
- * @version 1.0.13
33
+ * @version 1.0.14
34
34
  */
35
35
  var EventApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -58,14 +58,15 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
58
58
  * ## Create Event (Content Ingestion) Posts content into the specified `floor_id`. This API performs **asynchronous ingestion** — a `200 OK` response means the content has been **accepted and queued**, not immediately retrievable. This API allows a user to **post personal content into their POD (Personal Object Database)**. The posted content is stored under a specified **floor**, embedded by the platform, and made available for **semantic querying, conversational retrieval, and memory-based interactions** once processing completes. It is primarily used to: * Save reminders, notes, write-ups, or personal knowledge * Upload content the user wants the system to remember * Add information that should later be discoverable via conversational queries The content may consist of **text only** or **text combined with one or more media files**. --- ## Key Capabilities * Stores user-generated content inside a specific floor * Supports **multi-modal inputs** (text + media) * Automatically embeds content for semantic search * Makes content available to: * `/agent/memory/query` * conversational agents * future recall and analytics * Associates content with **user**, **block**, and **application** context (when provided) --- ## Authentication * Requires a valid, authenticated `user_id` * The calling application is responsible for user authentication * `app_id` identifies the application context --- ## Request Type **Content-Type:** `multipart/form-data` --- ## Request Parameters ### 1. Files (Optional) | Field | Type | Required | Description | | ------- | -------- | -------- | --------------------------------------------------------------------- | | `files` | `file[]` | Optional | Media files to attach to the content. Multiple files may be uploaded. | **Supported formats include (but are not limited to):** * Images: `jpg`, `png` * Audio: `mp3` * Documents: `pdf` * Video: `mp4` These files are processed and embedded along with the textual content where applicable. --- ### 2. Input Information (Required) | Field | Type | Required | Description | | ------------ | --------------- | -------- | ----------------------------------------------------------------- | | `input_info` | `string (JSON)` | Yes | JSON string containing metadata and textual content for the post. | --- ## `input_info` Structure ```json { \"floor_id\": \"my_floor\", \"block_id\": \"17845683456\", \"block_type\": \"1\", \"user_id\": \"145623907625\", \"title\": \"My note\", \"description\": \"Things I should remember\" } ``` --- ## Field Descriptions | Field | Type | Required | Description | | ------------- | -------- | -------- | --------------------------------------------------------------------------------------------------------- | | `floor_id` | `string` | Yes | Identifier of the user’s floor (POD) where the content will be stored. | | `block_id` | `string` | Optional | Identifier of the block within the floor used to group or categorize content. | | `block_type` | `string` | Optional | Logical category of the content (e.g., `0 for post`, `1 for forum`). Used for routing and UI organization. | | `user_id` | `string` | Yes | Unique identifier of the user posting the content. | | `title` | `string` | Optional | Short title or heading for the content. | | `description` | `string` | Yes | Main textual content to be stored and embedded. | | `app_id` | `string` | Optional | Identifier of the calling application context. | --- ## Behavior 1. The API validates the user and floor context. 2. Textual content (`title` and `description`) is ingested. 3. Attached media files (if any) are processed and linked to the content. 4. Embeddings are generated for: * text * supported media (where applicable) 5. The content becomes part of the user’s **personal memory store (POD)**. 6. Once background processing completes, the content becomes available for: * semantic search * conversational retrieval * memory-based interactions --- ## Successful Response On success, the API confirms that: * The content has been **accepted** * Processing has been **queued** * Reference identifiers are returned > A successful response indicates **acceptance**, not immediate availability. --- ## Error Handling The API may return errors if: * Required fields are missing (`floor_id`, `user_id`, `description`) * Uploaded files use unsupported formats * The user does not have access to the specified floor * The request payload is malformed * Internal embedding or storage operations fail --- ## Typical Use Cases * Saving personal reminders * Posting notes or observations * Uploading documents for later recall * Building a personal knowledge base * Feeding content into conversational agents --- ## ⚠️ Asynchronous Ingestion Notice Content ingestion is **asynchronous**. A `200 OK` response means the request was **successfully queued**. Newly ingested content may take time to become searchable via the Query API. Use **Recent Events** or retry queries after a short delay to confirm availability. --- ## One-Line Summary > Stores user-generated text and media into a personal POD, embeds it asynchronously, and makes it available for semantic and conversational querying. If you want, next I can: * align this **exactly** with the OpenAPI schema fields * generate **JS / TS / Python / Java snippets** using this definition * add **state diagrams** (queued → processing → searchable) for docs
59
59
  * @param {String} inputInfo Input parameters, bid is optional
60
60
  * @param {String} appId App ID created in developer console.
61
+ * @param {String} userId
61
62
  * @param {Object} opts Optional parameters
62
- * @param {File} [files] Attach relevant media here, which includes, jpg, mp3, pdf, mp4 files. More than one media can be selected
63
+ * @param {Array.<String>} [files] Attach relevant media here, which includes, jpg, mp3, pdf, mp4 files. More than one media can be selected
63
64
  * @param {module:api/EventApi~eventCallback} callback The callback function, accepting three arguments: error, data, response
64
65
  * data is of type: {@link module:model/EventResponse}
65
66
  */
66
67
  return _createClass(EventApi, [{
67
68
  key: "event",
68
- value: function event(inputInfo, appId, opts, callback) {
69
+ value: function event(inputInfo, appId, userId, opts, callback) {
69
70
  opts = opts || {};
70
71
  var postBody = null;
71
72
  // verify the required parameter 'inputInfo' is set
@@ -76,13 +77,18 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
76
77
  if (appId === undefined || appId === null) {
77
78
  throw new Error("Missing the required parameter 'appId' when calling event");
78
79
  }
80
+ // verify the required parameter 'userId' is set
81
+ if (userId === undefined || userId === null) {
82
+ throw new Error("Missing the required parameter 'userId' when calling event");
83
+ }
79
84
  var pathParams = {};
80
85
  var queryParams = {};
81
86
  var headerParams = {};
82
87
  var formParams = {
83
- 'files': opts['files'],
88
+ 'files': this.apiClient.buildCollectionParam(opts['files'], 'csv'),
84
89
  'input_info': inputInfo,
85
- 'app_id': appId
90
+ 'app_id': appId,
91
+ 'user_id': userId
86
92
  };
87
93
  var authNames = ['bearer'];
88
94
  var contentTypes = ['multipart/form-data'];
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * GetFloorInformation service.
32
32
  * @module api/GetFloorInformationApi
33
- * @version 1.0.13
33
+ * @version 1.0.14
34
34
  */
35
35
  var GetFloorInformationApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * GetRecentEvents service.
32
32
  * @module api/GetRecentEventsApi
33
- * @version 1.0.13
33
+ * @version 1.0.14
34
34
  */
35
35
  var GetRecentEventsApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * Query service.
33
33
  * @module api/QueryApi
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var QueryApi = exports["default"] = /*#__PURE__*/function () {
37
37
  /**
package/dist/index.js CHANGED
@@ -285,12 +285,6 @@ Object.defineProperty(exports, "SendValidationCode200Response", {
285
285
  return _SendValidationCode200Response["default"];
286
286
  }
287
287
  });
288
- Object.defineProperty(exports, "SendValidationCodeRequest", {
289
- enumerable: true,
290
- get: function get() {
291
- return _SendValidationCodeRequest["default"];
292
- }
293
- });
294
288
  Object.defineProperty(exports, "SignInWithEmail200Response", {
295
289
  enumerable: true,
296
290
  get: function get() {
@@ -404,7 +398,6 @@ var _ResetPassword200Response = _interopRequireDefault(require("./model/ResetPas
404
398
  var _ResetPassword400Response = _interopRequireDefault(require("./model/ResetPassword400Response"));
405
399
  var _SendSignInValidationCode200Response = _interopRequireDefault(require("./model/SendSignInValidationCode200Response"));
406
400
  var _SendValidationCode200Response = _interopRequireDefault(require("./model/SendValidationCode200Response"));
407
- var _SendValidationCodeRequest = _interopRequireDefault(require("./model/SendValidationCodeRequest"));
408
401
  var _SignInWithEmail200Response = _interopRequireDefault(require("./model/SignInWithEmail200Response"));
409
402
  var _SignInWithEmail200ResponsePodInfo = _interopRequireDefault(require("./model/SignInWithEmail200ResponsePodInfo"));
410
403
  var _SignInWithEmail200ResponseProfile = _interopRequireDefault(require("./model/SignInWithEmail200ResponseProfile"));
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The BlockDetails model module.
33
33
  * @module model/BlockDetails
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var BlockDetails = /*#__PURE__*/function () {
37
37
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The ChangePassword200Response model module.
33
33
  * @module model/ChangePassword200Response
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var ChangePassword200Response = /*#__PURE__*/function () {
37
37
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The ConversationThreads200Response model module.
34
34
  * @module model/ConversationThreads200Response
35
- * @version 1.0.13
35
+ * @version 1.0.14
36
36
  */
37
37
  var ConversationThreads200Response = /*#__PURE__*/function () {
38
38
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The ConversationThreads200ResponseThreadsInner model module.
33
33
  * @module model/ConversationThreads200ResponseThreadsInner
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var ConversationThreads200ResponseThreadsInner = /*#__PURE__*/function () {
37
37
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The EditFloor400Response model module.
34
34
  * @module model/EditFloor400Response
35
- * @version 1.0.13
35
+ * @version 1.0.14
36
36
  */
37
37
  var EditFloor400Response = /*#__PURE__*/function () {
38
38
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The EditFloor400ResponseError model module.
33
33
  * @module model/EditFloor400ResponseError
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var EditFloor400ResponseError = /*#__PURE__*/function () {
37
37
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The Event400Response model module.
34
34
  * @module model/Event400Response
35
- * @version 1.0.13
35
+ * @version 1.0.14
36
36
  */
37
37
  var Event400Response = /*#__PURE__*/function () {
38
38
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The Event400ResponseError model module.
33
33
  * @module model/Event400ResponseError
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var Event400ResponseError = /*#__PURE__*/function () {
37
37
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The EventResponse model module.
33
33
  * @module model/EventResponse
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var EventResponse = /*#__PURE__*/function () {
37
37
  /**
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  /**
34
34
  * The FloorInfo model module.
35
35
  * @module model/FloorInfo
36
- * @version 1.0.13
36
+ * @version 1.0.14
37
37
  */
38
38
  var FloorInfo = /*#__PURE__*/function () {
39
39
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The GetConversations200Response model module.
34
34
  * @module model/GetConversations200Response
35
- * @version 1.0.13
35
+ * @version 1.0.14
36
36
  */
37
37
  var GetConversations200Response = /*#__PURE__*/function () {
38
38
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The GetConversations200ResponseConversationInner model module.
32
32
  * @module model/GetConversations200ResponseConversationInner
33
- * @version 1.0.13
33
+ * @version 1.0.14
34
34
  */
35
35
  var GetConversations200ResponseConversationInner = /*#__PURE__*/function () {
36
36
  /**
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  /**
34
34
  * The GetConversations200ResponseConversationInnerAssistant model module.
35
35
  * @module model/GetConversations200ResponseConversationInnerAssistant
36
- * @version 1.0.13
36
+ * @version 1.0.14
37
37
  */
38
38
  var GetConversations200ResponseConversationInnerAssistant = /*#__PURE__*/function () {
39
39
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The GetConversations200ResponseConversationInnerAssistantChoicesInner model module.
33
33
  * @module model/GetConversations200ResponseConversationInnerAssistantChoicesInner
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var GetConversations200ResponseConversationInnerAssistantChoicesInner = /*#__PURE__*/function () {
37
37
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The GetConversations200ResponseConversationInnerAssistantChoicesInnerAiModelDetails model module.
33
33
  * @module model/GetConversations200ResponseConversationInnerAssistantChoicesInnerAiModelDetails
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var GetConversations200ResponseConversationInnerAssistantChoicesInnerAiModelDetails = /*#__PURE__*/function () {
37
37
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The GetConversations200ResponseConversationInnerAssistantChoicesInnerMessage model module.
33
33
  * @module model/GetConversations200ResponseConversationInnerAssistantChoicesInnerMessage
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var GetConversations200ResponseConversationInnerAssistantChoicesInnerMessage = /*#__PURE__*/function () {
37
37
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The GetConversations200ResponseConversationInnerAssistantChoicesInnerPromptDetails model module.
33
33
  * @module model/GetConversations200ResponseConversationInnerAssistantChoicesInnerPromptDetails
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var GetConversations200ResponseConversationInnerAssistantChoicesInnerPromptDetails = /*#__PURE__*/function () {
37
37
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts model module.
34
34
  * @module model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts
35
- * @version 1.0.13
35
+ * @version 1.0.14
36
36
  */
37
37
  var GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts = /*#__PURE__*/function () {
38
38
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner model module.
33
33
  * @module model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner = /*#__PURE__*/function () {
37
37
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The GetConversations200ResponseConversationInnerUser model module.
34
34
  * @module model/GetConversations200ResponseConversationInnerUser
35
- * @version 1.0.13
35
+ * @version 1.0.14
36
36
  */
37
37
  var GetConversations200ResponseConversationInnerUser = /*#__PURE__*/function () {
38
38
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The GetConversations200ResponseConversationInnerUserContext model module.
33
33
  * @module model/GetConversations200ResponseConversationInnerUserContext
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var GetConversations200ResponseConversationInnerUserContext = /*#__PURE__*/function () {
37
37
  /**
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  /**
34
34
  * The GetFloorInformation200Response model module.
35
35
  * @module model/GetFloorInformation200Response
36
- * @version 1.0.13
36
+ * @version 1.0.14
37
37
  */
38
38
  var GetFloorInformation200Response = /*#__PURE__*/function () {
39
39
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The GetRecentEvents200Response model module.
34
34
  * @module model/GetRecentEvents200Response
35
- * @version 1.0.13
35
+ * @version 1.0.14
36
36
  */
37
37
  var GetRecentEvents200Response = /*#__PURE__*/function () {
38
38
  /**
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  /**
34
34
  * The GetRecentEvents200ResponseItemsInner model module.
35
35
  * @module model/GetRecentEvents200ResponseItemsInner
36
- * @version 1.0.13
36
+ * @version 1.0.14
37
37
  */
38
38
  var GetRecentEvents200ResponseItemsInner = /*#__PURE__*/function () {
39
39
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The GetRecentEvents200ResponseItemsInnerAuthor model module.
31
31
  * @module model/GetRecentEvents200ResponseItemsInnerAuthor
32
- * @version 1.0.13
32
+ * @version 1.0.14
33
33
  */
34
34
  var GetRecentEvents200ResponseItemsInnerAuthor = /*#__PURE__*/function () {
35
35
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The GetRecentEvents400Response model module.
34
34
  * @module model/GetRecentEvents400Response
35
- * @version 1.0.13
35
+ * @version 1.0.14
36
36
  */
37
37
  var GetRecentEvents400Response = /*#__PURE__*/function () {
38
38
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The GetRecentEvents400ResponseError model module.
33
33
  * @module model/GetRecentEvents400ResponseError
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var GetRecentEvents400ResponseError = /*#__PURE__*/function () {
37
37
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The Media model module.
33
33
  * @module model/Media
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var Media = /*#__PURE__*/function () {
37
37
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The Model400ErrorCode model module.
33
33
  * @module model/Model400ErrorCode
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var Model400ErrorCode = /*#__PURE__*/function () {
37
37
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The PostAdd model module.
33
33
  * @module model/PostAdd
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var PostAdd = /*#__PURE__*/function () {
37
37
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The Query422Response model module.
34
34
  * @module model/Query422Response
35
- * @version 1.0.13
35
+ * @version 1.0.14
36
36
  */
37
37
  var Query422Response = /*#__PURE__*/function () {
38
38
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The Query422ResponseError model module.
33
33
  * @module model/Query422ResponseError
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var Query422ResponseError = /*#__PURE__*/function () {
37
37
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The QueryRequest model module.
34
34
  * @module model/QueryRequest
35
- * @version 1.0.13
35
+ * @version 1.0.14
36
36
  */
37
37
  var QueryRequest = /*#__PURE__*/function () {
38
38
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The QueryRequestFilters model module.
33
33
  * @module model/QueryRequestFilters
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var QueryRequestFilters = /*#__PURE__*/function () {
37
37
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The QueryResponse model module.
34
34
  * @module model/QueryResponse
35
- * @version 1.0.13
35
+ * @version 1.0.14
36
36
  */
37
37
  var QueryResponse = /*#__PURE__*/function () {
38
38
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The QueryResponseItemsInner model module.
30
30
  * @module model/QueryResponseItemsInner
31
- * @version 1.0.13
31
+ * @version 1.0.14
32
32
  */
33
33
  var QueryResponseItemsInner = /*#__PURE__*/function () {
34
34
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The ResetPassword200Response model module.
33
33
  * @module model/ResetPassword200Response
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var ResetPassword200Response = /*#__PURE__*/function () {
37
37
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The ResetPassword400Response model module.
33
33
  * @module model/ResetPassword400Response
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var ResetPassword400Response = /*#__PURE__*/function () {
37
37
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The SendSignInValidationCode200Response model module.
33
33
  * @module model/SendSignInValidationCode200Response
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var SendSignInValidationCode200Response = /*#__PURE__*/function () {
37
37
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The SendValidationCode200Response model module.
33
33
  * @module model/SendValidationCode200Response
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var SendValidationCode200Response = /*#__PURE__*/function () {
37
37
  /**
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  /**
34
34
  * The SignInWithEmail200Response model module.
35
35
  * @module model/SignInWithEmail200Response
36
- * @version 1.0.13
36
+ * @version 1.0.14
37
37
  */
38
38
  var SignInWithEmail200Response = /*#__PURE__*/function () {
39
39
  /**
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  /**
34
34
  * The SignInWithEmail200ResponsePodInfo model module.
35
35
  * @module model/SignInWithEmail200ResponsePodInfo
36
- * @version 1.0.13
36
+ * @version 1.0.14
37
37
  */
38
38
  var SignInWithEmail200ResponsePodInfo = /*#__PURE__*/function () {
39
39
  /**
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  /**
34
34
  * The SignInWithEmail200ResponseProfile model module.
35
35
  * @module model/SignInWithEmail200ResponseProfile
36
- * @version 1.0.13
36
+ * @version 1.0.14
37
37
  */
38
38
  var SignInWithEmail200ResponseProfile = /*#__PURE__*/function () {
39
39
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The SignInWithEmail200ResponseProfileAvatar model module.
33
33
  * @module model/SignInWithEmail200ResponseProfileAvatar
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var SignInWithEmail200ResponseProfileAvatar = /*#__PURE__*/function () {
37
37
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The SignUp200Response model module.
33
33
  * @module model/SignUp200Response
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var SignUp200Response = /*#__PURE__*/function () {
37
37
  /**
@@ -75,6 +75,9 @@ var SignUp200Response = /*#__PURE__*/function () {
75
75
  if (data.hasOwnProperty('success')) {
76
76
  obj['success'] = _ApiClient["default"].convertToType(data['success'], 'String');
77
77
  }
78
+ if (data.hasOwnProperty('name')) {
79
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
80
+ }
78
81
  }
79
82
  return obj;
80
83
  }
@@ -110,6 +113,10 @@ var SignUp200Response = /*#__PURE__*/function () {
110
113
  if (data['success'] && !(typeof data['success'] === 'string' || data['success'] instanceof String)) {
111
114
  throw new Error("Expected the field `success` to be a primitive type in the JSON string but got " + data['success']);
112
115
  }
116
+ // ensure the json data is a string
117
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
118
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
119
+ }
113
120
  return true;
114
121
  }
115
122
  }]);
@@ -127,4 +134,9 @@ SignUp200Response.prototype['user_id'] = undefined;
127
134
  * @member {String} success
128
135
  */
129
136
  SignUp200Response.prototype['success'] = undefined;
137
+
138
+ /**
139
+ * @member {String} name
140
+ */
141
+ SignUp200Response.prototype['name'] = undefined;
130
142
  var _default = exports["default"] = SignUp200Response;
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The SignUpResponse model module.
33
33
  * @module model/SignUpResponse
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var SignUpResponse = /*#__PURE__*/function () {
37
37
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The Threads model module.
33
33
  * @module model/Threads
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var Threads = /*#__PURE__*/function () {
37
37
  /**
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  /**
34
34
  * The UserDetails model module.
35
35
  * @module model/UserDetails
36
- * @version 1.0.13
36
+ * @version 1.0.14
37
37
  */
38
38
  var UserDetails = /*#__PURE__*/function () {
39
39
  /**
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  /**
33
33
  * The ValidateCode400Response model module.
34
34
  * @module model/ValidateCode400Response
35
- * @version 1.0.13
35
+ * @version 1.0.14
36
36
  */
37
37
  var ValidateCode400Response = /*#__PURE__*/function () {
38
38
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The ValidateCode400ResponseError model module.
33
33
  * @module model/ValidateCode400ResponseError
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var ValidateCode400ResponseError = /*#__PURE__*/function () {
37
37
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The ValidateCode412Response model module.
33
33
  * @module model/ValidateCode412Response
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var ValidateCode412Response = /*#__PURE__*/function () {
37
37
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The ValidateCodeRequest model module.
33
33
  * @module model/ValidateCodeRequest
34
- * @version 1.0.13
34
+ * @version 1.0.14
35
35
  */
36
36
  var ValidateCodeRequest = /*#__PURE__*/function () {
37
37
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfloor/floor-memory-sdk-js",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "JavaScript SDK for xFloor Memory APIs (Memory + Registration).",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1,152 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
- * Floor Memory
19
- * The set APIs are used to develop Floor pds which can be used as their personal assistants. This set of APIs are divided into two parts.
20
- * - Memory and
21
- * - Registration. The developer has two ways of using the APIs for the app development. Developer can choose to the Registration APIs for using the existing xfloor infracture or can implement custom Registration process. In the case of custom registration process, the developer is bound to provide proper authentication mechanisms and then send the user information to xlfoor.
22
- *
23
- * The version of the OpenAPI document: 1.0.0
24
- * Contact: contact@ipomo.in
25
- *
26
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
27
- * https://openapi-generator.tech
28
- * Do not edit the class manually.
29
- *
30
- */
31
- /**
32
- * The SendValidationCodeRequest model module.
33
- * @module model/SendValidationCodeRequest
34
- * @version 1.0.13
35
- */
36
- var SendValidationCodeRequest = /*#__PURE__*/function () {
37
- /**
38
- * Constructs a new <code>SendValidationCodeRequest</code>.
39
- * @alias module:model/SendValidationCodeRequest
40
- * @param mode {String} Mode - 0 for getting activation code to change email or mobile number, 1 for password change
41
- */
42
- function SendValidationCodeRequest(mode) {
43
- _classCallCheck(this, SendValidationCodeRequest);
44
- SendValidationCodeRequest.initialize(this, mode);
45
- }
46
-
47
- /**
48
- * Initializes the fields of this object.
49
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
50
- * Only for internal use.
51
- */
52
- return _createClass(SendValidationCodeRequest, null, [{
53
- key: "initialize",
54
- value: function initialize(obj, mode) {
55
- obj['mode'] = mode;
56
- }
57
-
58
- /**
59
- * Constructs a <code>SendValidationCodeRequest</code> from a plain JavaScript object, optionally creating a new instance.
60
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
- * @param {Object} data The plain JavaScript object bearing properties of interest.
62
- * @param {module:model/SendValidationCodeRequest} obj Optional instance to populate.
63
- * @return {module:model/SendValidationCodeRequest} The populated <code>SendValidationCodeRequest</code> instance.
64
- */
65
- }, {
66
- key: "constructFromObject",
67
- value: function constructFromObject(data, obj) {
68
- if (data) {
69
- obj = obj || new SendValidationCodeRequest();
70
- if (data.hasOwnProperty('user_id')) {
71
- obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String');
72
- }
73
- if (data.hasOwnProperty('mode')) {
74
- obj['mode'] = _ApiClient["default"].convertToType(data['mode'], 'String');
75
- }
76
- if (data.hasOwnProperty('mobiles_number')) {
77
- obj['mobiles_number'] = _ApiClient["default"].convertToType(data['mobiles_number'], 'String');
78
- }
79
- if (data.hasOwnProperty('email_id')) {
80
- obj['email_id'] = _ApiClient["default"].convertToType(data['email_id'], 'String');
81
- }
82
- }
83
- return obj;
84
- }
85
-
86
- /**
87
- * Validates the JSON data with respect to <code>SendValidationCodeRequest</code>.
88
- * @param {Object} data The plain JavaScript object bearing properties of interest.
89
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SendValidationCodeRequest</code>.
90
- */
91
- }, {
92
- key: "validateJSON",
93
- value: function validateJSON(data) {
94
- // check to make sure all required properties are present in the JSON string
95
- var _iterator = _createForOfIteratorHelper(SendValidationCodeRequest.RequiredProperties),
96
- _step;
97
- try {
98
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
99
- var property = _step.value;
100
- if (!data.hasOwnProperty(property)) {
101
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
102
- }
103
- }
104
- // ensure the json data is a string
105
- } catch (err) {
106
- _iterator.e(err);
107
- } finally {
108
- _iterator.f();
109
- }
110
- if (data['user_id'] && !(typeof data['user_id'] === 'string' || data['user_id'] instanceof String)) {
111
- throw new Error("Expected the field `user_id` to be a primitive type in the JSON string but got " + data['user_id']);
112
- }
113
- // ensure the json data is a string
114
- if (data['mode'] && !(typeof data['mode'] === 'string' || data['mode'] instanceof String)) {
115
- throw new Error("Expected the field `mode` to be a primitive type in the JSON string but got " + data['mode']);
116
- }
117
- // ensure the json data is a string
118
- if (data['mobiles_number'] && !(typeof data['mobiles_number'] === 'string' || data['mobiles_number'] instanceof String)) {
119
- throw new Error("Expected the field `mobiles_number` to be a primitive type in the JSON string but got " + data['mobiles_number']);
120
- }
121
- // ensure the json data is a string
122
- if (data['email_id'] && !(typeof data['email_id'] === 'string' || data['email_id'] instanceof String)) {
123
- throw new Error("Expected the field `email_id` to be a primitive type in the JSON string but got " + data['email_id']);
124
- }
125
- return true;
126
- }
127
- }]);
128
- }();
129
- SendValidationCodeRequest.RequiredProperties = ["mode"];
130
-
131
- /**
132
- * user id
133
- * @member {String} user_id
134
- */
135
- SendValidationCodeRequest.prototype['user_id'] = undefined;
136
-
137
- /**
138
- * Mode - 0 for getting activation code to change email or mobile number, 1 for password change
139
- * @member {String} mode
140
- */
141
- SendValidationCodeRequest.prototype['mode'] = undefined;
142
-
143
- /**
144
- * @member {String} mobiles_number
145
- */
146
- SendValidationCodeRequest.prototype['mobiles_number'] = undefined;
147
-
148
- /**
149
- * @member {String} email_id
150
- */
151
- SendValidationCodeRequest.prototype['email_id'] = undefined;
152
- var _default = exports["default"] = SendValidationCodeRequest;