@xfloor/floor-memory-sdk-js 1.0.4 → 1.0.5
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 +155 -36
- package/dist/ApiClient.js +5 -3
- package/dist/api/DefaultApi.js +214 -9
- package/dist/api/EditFloorApi.js +4 -2
- package/dist/api/EventApi.js +5 -3
- package/dist/api/GetFloorInformationApi.js +5 -3
- package/dist/api/GetRecentEventsApi.js +4 -2
- package/dist/api/QueryApi.js +4 -2
- package/dist/index.js +112 -0
- package/dist/model/BlockDetails.js +16 -14
- package/dist/model/ChangePassword200Response.js +4 -2
- package/dist/model/ConversationThreads200Response.js +146 -0
- package/dist/model/ConversationThreads200ResponseThreadsInner.js +142 -0
- package/dist/model/EditFloor400Response.js +4 -2
- package/dist/model/EditFloor400ResponseError.js +4 -2
- package/dist/model/Event400Response.js +4 -2
- package/dist/model/Event400ResponseError.js +4 -2
- package/dist/model/EventResponse.js +4 -2
- package/dist/model/FloorInfo.js +4 -2
- package/dist/model/GetConversations200Response.js +160 -0
- package/dist/model/GetConversations200ResponseConversationInner.js +107 -0
- package/dist/model/GetConversations200ResponseConversationInnerAssistant.js +228 -0
- package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInner.js +141 -0
- package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerAiModelDetails.js +212 -0
- package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerMessage.js +128 -0
- package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerPromptDetails.js +128 -0
- package/dist/model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts.js +188 -0
- package/dist/model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.js +218 -0
- package/dist/model/GetConversations200ResponseConversationInnerUser.js +172 -0
- package/dist/model/GetConversations200ResponseConversationInnerUserContext.js +170 -0
- package/dist/model/GetFloorInformation200Response.js +4 -2
- package/dist/model/GetRecentEvents200Response.js +4 -2
- package/dist/model/GetRecentEvents200ResponseItemsInner.js +4 -2
- package/dist/model/GetRecentEvents200ResponseItemsInnerAuthor.js +4 -2
- package/dist/model/GetRecentEvents400Response.js +4 -2
- package/dist/model/GetRecentEvents400ResponseError.js +4 -2
- package/dist/model/Media.js +4 -2
- package/dist/model/Model400ErrorCode.js +4 -2
- package/dist/model/PostAdd.js +175 -0
- package/dist/model/Query422Response.js +4 -2
- package/dist/model/Query422ResponseError.js +4 -2
- package/dist/model/QueryRequest.js +4 -2
- package/dist/model/QueryRequestFilters.js +4 -2
- package/dist/model/QueryResponse.js +4 -2
- package/dist/model/QueryResponseItemsInner.js +4 -2
- package/dist/model/ResetPassword200Response.js +4 -2
- package/dist/model/ResetPassword400Response.js +4 -2
- package/dist/model/SendSignInValidationCode200Response.js +143 -0
- package/dist/model/SendValidationCode200Response.js +4 -2
- package/dist/model/SendValidationCodeRequest.js +4 -2
- package/dist/model/SignInWithEmail200Response.js +4 -2
- package/dist/model/SignInWithEmail200ResponsePodInfo.js +4 -2
- package/dist/model/SignInWithEmail200ResponseProfile.js +4 -2
- package/dist/model/SignInWithEmail200ResponseProfileAvatar.js +4 -2
- package/dist/model/SignUp200Response.js +4 -2
- package/dist/model/SignUpResponse.js +4 -2
- package/dist/model/Threads.js +142 -0
- package/dist/model/UserDetails.js +4 -2
- package/dist/model/ValidateCode400Response.js +4 -2
- package/dist/model/ValidateCode400ResponseError.js +4 -2
- package/dist/model/ValidateCode412Response.js +4 -2
- package/dist/model/ValidateCodeRequest.js +4 -2
- package/package.json +1 -1
package/dist/api/EventApi.js
CHANGED
|
@@ -15,7 +15,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
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); } /**
|
|
17
17
|
* Floor Memory
|
|
18
|
-
* The set APIs are used to develop Floor pds which can be used as their personal assistants.
|
|
18
|
+
* 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.
|
|
19
|
+
* - Memory and
|
|
20
|
+
* - 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.
|
|
19
21
|
*
|
|
20
22
|
* The version of the OpenAPI document: 1.0.0
|
|
21
23
|
* Contact: contact@ipomo.in
|
|
@@ -28,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
30
|
/**
|
|
29
31
|
* Event service.
|
|
30
32
|
* @module api/EventApi
|
|
31
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.5
|
|
32
34
|
*/
|
|
33
35
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
36
|
/**
|
|
@@ -53,7 +55,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
53
55
|
|
|
54
56
|
/**
|
|
55
57
|
* Create Event (Post Content)
|
|
56
|
-
* Posts into the
|
|
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\": \"post\", \"user_id\": \"145623907625\", \"title\": \"My note\", \"description\": \"Things I should remember\", \"app_id\": \"165434879028\" } ``` --- ## 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., `post`, `note`, `reminder`). 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
|
|
57
59
|
* @param {String} inputInfo Input parameters, bid is optional
|
|
58
60
|
* @param {Object} opts Optional parameters
|
|
59
61
|
* @param {File} [files] Attach relevant media here, which includes, jpg, mp3, pdf, mp4 files. More than one media can be selected
|
|
@@ -15,7 +15,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
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); } /**
|
|
17
17
|
* Floor Memory
|
|
18
|
-
* The set APIs are used to develop Floor pds which can be used as their personal assistants.
|
|
18
|
+
* 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.
|
|
19
|
+
* - Memory and
|
|
20
|
+
* - 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.
|
|
19
21
|
*
|
|
20
22
|
* The version of the OpenAPI document: 1.0.0
|
|
21
23
|
* Contact: contact@ipomo.in
|
|
@@ -28,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
30
|
/**
|
|
29
31
|
* GetFloorInformation service.
|
|
30
32
|
* @module api/GetFloorInformationApi
|
|
31
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.5
|
|
32
34
|
*/
|
|
33
35
|
var GetFloorInformationApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
36
|
/**
|
|
@@ -53,7 +55,7 @@ var GetFloorInformationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
53
55
|
|
|
54
56
|
/**
|
|
55
57
|
* Basic information of a floor
|
|
56
|
-
* This API returns the **basic profile information of a floor**. It is used to fetch all essential metadata required to **render a floor landing page, header, or navigation context**. The response includes: * Floor identity and type * Ownership information relative to the requesting user * Floor metadata (title, description, avatar) * List of blocks available in the floor * App association (for pod / developer use cases) This API does **not** return posts or content; it only provides **structural and descriptive information** about the floor. --- ## Typical Use Cases * Render floor header (title, logo, description) * Decide UI permissions (owner vs non-owner) * Display available blocks (Feeds, Blog, Quiz, etc.) * Pod discovery or developer-managed floor rendering * Lightweight floor metadata fetch before loading content --- ## Authorization & Context * The API may be called by authenticated or unauthenticated users (depending on floor visibility). * The `is_owner` field is calculated **relative to the requesting user context** (if authenticated). --- ## Response Format `application/json` --- ## Response Structure ### Top-Level Fields | Field | Type | Description | | ------------ | ---------------------- | ---------------------------------------------------------------- | | `floor_id` | String | Public, human-readable identifier of the floor | | `floor_uid` | String | Internal unique identifier of the floor | | `title` | String | Display title of the floor | | `details` | String | Short description or summary of the floor | | `floor_type` | String | Type of floor (`PUBLIC`, `PRIVATE`, `POD`) | | `is_owner` | String (`\"0\"` / `\"1\"`) | Indicates whether the requesting user is the owner | | `blocks` | Array | List of blocks available in the floor | | `avatar` | Object | Floor logo / avatar metadata | | `app_id` | String | Associated application ID (used mainly for pod/developer floors) | --- ## Ownership Indicator ### `is_owner` ```json \"is_owner\": \"0\" ``` | Value | Meaning | | ----- | ----------------------------------------- | | `\"1\"` | Requesting user is the owner of the floor | | `\"0\"` | Requesting user is not the owner | This field is typically used by clients to: * Enable or disable edit/settings UI * Show owner-only actions --- ## Blocks Object ```json \"blocks\": [ { \"
|
|
58
|
+
* This API returns the **basic profile information of a floor**. It is used to fetch all essential metadata required to **render a floor landing page, header, or navigation context**. The response includes: * Floor identity and type * Ownership information relative to the requesting user * Floor metadata (title, description, avatar) * List of blocks available in the floor * App association (for pod / developer use cases) This API does **not** return posts or content; it only provides **structural and descriptive information** about the floor. --- ## Typical Use Cases * Render floor header (title, logo, description) * Decide UI permissions (owner vs non-owner) * Display available blocks (Feeds, Blog, Quiz, etc.) * Pod discovery or developer-managed floor rendering * Lightweight floor metadata fetch before loading content --- ## Authorization & Context * The API may be called by authenticated or unauthenticated users (depending on floor visibility). * The `is_owner` field is calculated **relative to the requesting user context** (if authenticated). --- ## Response Format `application/json` --- ## Response Structure ### Top-Level Fields | Field | Type | Description | | ------------ | ---------------------- | ---------------------------------------------------------------- | | `floor_id` | String | Public, human-readable identifier of the floor | | `floor_uid` | String | Internal unique identifier of the floor | | `title` | String | Display title of the floor | | `details` | String | Short description or summary of the floor | | `floor_type` | String | Type of floor (`PUBLIC`, `PRIVATE`, `POD`) | | `is_owner` | String (`\"0\"` / `\"1\"`) | Indicates whether the requesting user is the owner | | `blocks` | Array | List of blocks available in the floor | | `avatar` | Object | Floor logo / avatar metadata | | `app_id` | String | Associated application ID (used mainly for pod/developer floors) | --- ## Ownership Indicator ### `is_owner` ```json \"is_owner\": \"0\" ``` | Value | Meaning | | ----- | ----------------------------------------- | | `\"1\"` | Requesting user is the owner of the floor | | `\"0\"` | Requesting user is not the owner | This field is typically used by clients to: * Enable or disable edit/settings UI * Show owner-only actions --- ## Blocks Object ```json \"blocks\": [ { \"block_id\": \"1765960948723\", \"type\": \"1\", \"title\": \"Feeds\" } ] ``` Each block represents a **content category or service** available inside the floor. ### Block Fields | Field | Type | Description | | ------- | ------ | ----------------------------------------------------- | | `block_id` | String | Unique identifier of the block | | `type` | String | Block type identifier (e.g., feed, blog, forum, quiz) | | `title` | String | Display name of the block | --- ## Avatar Object ```json \"avatar\": { \"id\": \"1767009204367\", \"url\": \"https://...\" } ``` | Field | Type | Description | | ----- | ------ | ------------------------------ | | `id` | String | Media identifier of the avatar | | `url` | String | CDN URL of the floor logo | Used to render the floor’s profile image or banner. --- ## Floor Type ```json \"floor_type\": \"POD\" ``` | Value | Meaning | | --------- | ------------------------------------- | | `PUBLIC` | Open floor visible to everyone | | `PRIVATE` | Restricted floor | | `POD` | Aggregated or developer-managed floor | `POD` floors are often associated with an `app_id` and may aggregate or serve content programmatically. --- ## Sample Success Response ```json { \"is_owner\": \"0\", \"blocks\": [ { \"block_id\": \"1765960948723\", \"type\": \"1\", \"title\": \"Feeds\" } ], \"floor_uid\": \"1765960956967\", \"floor_id\": \"raghupodfloor1\", \"details\": \"raghu\", \"avatar\": { \"id\": \"1767009204367\", \"url\": \"https://d2e5822u5ecuq8.cloudfront.net/room/1765960956967/logo/1765960956967.jpg\" }, \"title\": \"raghu\", \"floor_type\": \"POD\", \"app_id\": \"1765949734005\" } ``` --- ## Notes for Developers * This is a **lightweight metadata API** and is safe to call frequently. * Use this API **before** loading posts or analytics. * `blocks` ordering can be used directly for navigation UI. * `floor_type` + `is_owner` together determine which UI actions are allowed. --- ## Common Error Scenarios ### Floor Not Found ```json { \"status\": \"ERROR\", \"message\": \"Floor not found\" } ``` ### Access Restricted ```json { \"status\": \"ERROR\", \"message\": \"Access denied for this floor\" } ``` --- ### Final Mental Model > **This API answers: “What is this floor, who owns it, and what can I do here?”**
|
|
57
59
|
* @param {String} floorId
|
|
58
60
|
* @param {Object} opts Optional parameters
|
|
59
61
|
* @param {String} [userId] User ID - 13 digit numeric identity
|
|
@@ -15,7 +15,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
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); } /**
|
|
17
17
|
* Floor Memory
|
|
18
|
-
* The set APIs are used to develop Floor pds which can be used as their personal assistants.
|
|
18
|
+
* 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.
|
|
19
|
+
* - Memory and
|
|
20
|
+
* - 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.
|
|
19
21
|
*
|
|
20
22
|
* The version of the OpenAPI document: 1.0.0
|
|
21
23
|
* Contact: contact@ipomo.in
|
|
@@ -28,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
30
|
/**
|
|
29
31
|
* GetRecentEvents service.
|
|
30
32
|
* @module api/GetRecentEventsApi
|
|
31
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.5
|
|
32
34
|
*/
|
|
33
35
|
var GetRecentEventsApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
36
|
/**
|
package/dist/api/QueryApi.js
CHANGED
|
@@ -16,7 +16,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
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
18
|
* Floor Memory
|
|
19
|
-
* The set APIs are used to develop Floor pds which can be used as their personal assistants.
|
|
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.
|
|
20
22
|
*
|
|
21
23
|
* The version of the OpenAPI document: 1.0.0
|
|
22
24
|
* Contact: contact@ipomo.in
|
|
@@ -29,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
31
|
/**
|
|
30
32
|
* Query service.
|
|
31
33
|
* @module api/QueryApi
|
|
32
|
-
* @version 1.0.
|
|
34
|
+
* @version 1.0.5
|
|
33
35
|
*/
|
|
34
36
|
var QueryApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
37
|
/**
|
package/dist/index.js
CHANGED
|
@@ -21,6 +21,18 @@ Object.defineProperty(exports, "ChangePassword200Response", {
|
|
|
21
21
|
return _ChangePassword200Response["default"];
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "ConversationThreads200Response", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _ConversationThreads200Response["default"];
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "ConversationThreads200ResponseThreadsInner", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _ConversationThreads200ResponseThreadsInner["default"];
|
|
34
|
+
}
|
|
35
|
+
});
|
|
24
36
|
Object.defineProperty(exports, "DefaultApi", {
|
|
25
37
|
enumerable: true,
|
|
26
38
|
get: function get() {
|
|
@@ -75,6 +87,72 @@ Object.defineProperty(exports, "FloorInfo", {
|
|
|
75
87
|
return _FloorInfo["default"];
|
|
76
88
|
}
|
|
77
89
|
});
|
|
90
|
+
Object.defineProperty(exports, "GetConversations200Response", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function get() {
|
|
93
|
+
return _GetConversations200Response["default"];
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "GetConversations200ResponseConversationInner", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function get() {
|
|
99
|
+
return _GetConversations200ResponseConversationInner["default"];
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "GetConversations200ResponseConversationInnerAssistant", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function get() {
|
|
105
|
+
return _GetConversations200ResponseConversationInnerAssistant["default"];
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "GetConversations200ResponseConversationInnerAssistantChoicesInner", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function get() {
|
|
111
|
+
return _GetConversations200ResponseConversationInnerAssistantChoicesInner["default"];
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "GetConversations200ResponseConversationInnerAssistantChoicesInnerAiModelDetails", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function get() {
|
|
117
|
+
return _GetConversations200ResponseConversationInnerAssistantChoicesInnerAiModelDetails["default"];
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "GetConversations200ResponseConversationInnerAssistantChoicesInnerMessage", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function get() {
|
|
123
|
+
return _GetConversations200ResponseConversationInnerAssistantChoicesInnerMessage["default"];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "GetConversations200ResponseConversationInnerAssistantChoicesInnerPromptDetails", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function get() {
|
|
129
|
+
return _GetConversations200ResponseConversationInnerAssistantChoicesInnerPromptDetails["default"];
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function get() {
|
|
135
|
+
return _GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts["default"];
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function get() {
|
|
141
|
+
return _GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner["default"];
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "GetConversations200ResponseConversationInnerUser", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function get() {
|
|
147
|
+
return _GetConversations200ResponseConversationInnerUser["default"];
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "GetConversations200ResponseConversationInnerUserContext", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function get() {
|
|
153
|
+
return _GetConversations200ResponseConversationInnerUserContext["default"];
|
|
154
|
+
}
|
|
155
|
+
});
|
|
78
156
|
Object.defineProperty(exports, "GetFloorInformation200Response", {
|
|
79
157
|
enumerable: true,
|
|
80
158
|
get: function get() {
|
|
@@ -135,6 +213,12 @@ Object.defineProperty(exports, "Model400ErrorCode", {
|
|
|
135
213
|
return _Model400ErrorCode["default"];
|
|
136
214
|
}
|
|
137
215
|
});
|
|
216
|
+
Object.defineProperty(exports, "PostAdd", {
|
|
217
|
+
enumerable: true,
|
|
218
|
+
get: function get() {
|
|
219
|
+
return _PostAdd["default"];
|
|
220
|
+
}
|
|
221
|
+
});
|
|
138
222
|
Object.defineProperty(exports, "Query422Response", {
|
|
139
223
|
enumerable: true,
|
|
140
224
|
get: function get() {
|
|
@@ -189,6 +273,12 @@ Object.defineProperty(exports, "ResetPassword400Response", {
|
|
|
189
273
|
return _ResetPassword400Response["default"];
|
|
190
274
|
}
|
|
191
275
|
});
|
|
276
|
+
Object.defineProperty(exports, "SendSignInValidationCode200Response", {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function get() {
|
|
279
|
+
return _SendSignInValidationCode200Response["default"];
|
|
280
|
+
}
|
|
281
|
+
});
|
|
192
282
|
Object.defineProperty(exports, "SendValidationCode200Response", {
|
|
193
283
|
enumerable: true,
|
|
194
284
|
get: function get() {
|
|
@@ -237,6 +327,12 @@ Object.defineProperty(exports, "SignUpResponse", {
|
|
|
237
327
|
return _SignUpResponse["default"];
|
|
238
328
|
}
|
|
239
329
|
});
|
|
330
|
+
Object.defineProperty(exports, "Threads", {
|
|
331
|
+
enumerable: true,
|
|
332
|
+
get: function get() {
|
|
333
|
+
return _Threads["default"];
|
|
334
|
+
}
|
|
335
|
+
});
|
|
240
336
|
Object.defineProperty(exports, "UserDetails", {
|
|
241
337
|
enumerable: true,
|
|
242
338
|
get: function get() {
|
|
@@ -270,12 +366,25 @@ Object.defineProperty(exports, "ValidateCodeRequest", {
|
|
|
270
366
|
var _ApiClient = _interopRequireDefault(require("./ApiClient"));
|
|
271
367
|
var _BlockDetails = _interopRequireDefault(require("./model/BlockDetails"));
|
|
272
368
|
var _ChangePassword200Response = _interopRequireDefault(require("./model/ChangePassword200Response"));
|
|
369
|
+
var _ConversationThreads200Response = _interopRequireDefault(require("./model/ConversationThreads200Response"));
|
|
370
|
+
var _ConversationThreads200ResponseThreadsInner = _interopRequireDefault(require("./model/ConversationThreads200ResponseThreadsInner"));
|
|
273
371
|
var _EditFloor400Response = _interopRequireDefault(require("./model/EditFloor400Response"));
|
|
274
372
|
var _EditFloor400ResponseError = _interopRequireDefault(require("./model/EditFloor400ResponseError"));
|
|
275
373
|
var _Event400Response = _interopRequireDefault(require("./model/Event400Response"));
|
|
276
374
|
var _Event400ResponseError = _interopRequireDefault(require("./model/Event400ResponseError"));
|
|
277
375
|
var _EventResponse = _interopRequireDefault(require("./model/EventResponse"));
|
|
278
376
|
var _FloorInfo = _interopRequireDefault(require("./model/FloorInfo"));
|
|
377
|
+
var _GetConversations200Response = _interopRequireDefault(require("./model/GetConversations200Response"));
|
|
378
|
+
var _GetConversations200ResponseConversationInner = _interopRequireDefault(require("./model/GetConversations200ResponseConversationInner"));
|
|
379
|
+
var _GetConversations200ResponseConversationInnerAssistant = _interopRequireDefault(require("./model/GetConversations200ResponseConversationInnerAssistant"));
|
|
380
|
+
var _GetConversations200ResponseConversationInnerAssistantChoicesInner = _interopRequireDefault(require("./model/GetConversations200ResponseConversationInnerAssistantChoicesInner"));
|
|
381
|
+
var _GetConversations200ResponseConversationInnerAssistantChoicesInnerAiModelDetails = _interopRequireDefault(require("./model/GetConversations200ResponseConversationInnerAssistantChoicesInnerAiModelDetails"));
|
|
382
|
+
var _GetConversations200ResponseConversationInnerAssistantChoicesInnerMessage = _interopRequireDefault(require("./model/GetConversations200ResponseConversationInnerAssistantChoicesInnerMessage"));
|
|
383
|
+
var _GetConversations200ResponseConversationInnerAssistantChoicesInnerPromptDetails = _interopRequireDefault(require("./model/GetConversations200ResponseConversationInnerAssistantChoicesInnerPromptDetails"));
|
|
384
|
+
var _GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts = _interopRequireDefault(require("./model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts"));
|
|
385
|
+
var _GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner = _interopRequireDefault(require("./model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner"));
|
|
386
|
+
var _GetConversations200ResponseConversationInnerUser = _interopRequireDefault(require("./model/GetConversations200ResponseConversationInnerUser"));
|
|
387
|
+
var _GetConversations200ResponseConversationInnerUserContext = _interopRequireDefault(require("./model/GetConversations200ResponseConversationInnerUserContext"));
|
|
279
388
|
var _GetFloorInformation200Response = _interopRequireDefault(require("./model/GetFloorInformation200Response"));
|
|
280
389
|
var _GetRecentEvents200Response = _interopRequireDefault(require("./model/GetRecentEvents200Response"));
|
|
281
390
|
var _GetRecentEvents200ResponseItemsInner = _interopRequireDefault(require("./model/GetRecentEvents200ResponseItemsInner"));
|
|
@@ -284,6 +393,7 @@ var _GetRecentEvents400Response = _interopRequireDefault(require("./model/GetRec
|
|
|
284
393
|
var _GetRecentEvents400ResponseError = _interopRequireDefault(require("./model/GetRecentEvents400ResponseError"));
|
|
285
394
|
var _Media = _interopRequireDefault(require("./model/Media"));
|
|
286
395
|
var _Model400ErrorCode = _interopRequireDefault(require("./model/Model400ErrorCode"));
|
|
396
|
+
var _PostAdd = _interopRequireDefault(require("./model/PostAdd"));
|
|
287
397
|
var _Query422Response = _interopRequireDefault(require("./model/Query422Response"));
|
|
288
398
|
var _Query422ResponseError = _interopRequireDefault(require("./model/Query422ResponseError"));
|
|
289
399
|
var _QueryRequest = _interopRequireDefault(require("./model/QueryRequest"));
|
|
@@ -292,6 +402,7 @@ var _QueryResponse = _interopRequireDefault(require("./model/QueryResponse"));
|
|
|
292
402
|
var _QueryResponseItemsInner = _interopRequireDefault(require("./model/QueryResponseItemsInner"));
|
|
293
403
|
var _ResetPassword200Response = _interopRequireDefault(require("./model/ResetPassword200Response"));
|
|
294
404
|
var _ResetPassword400Response = _interopRequireDefault(require("./model/ResetPassword400Response"));
|
|
405
|
+
var _SendSignInValidationCode200Response = _interopRequireDefault(require("./model/SendSignInValidationCode200Response"));
|
|
295
406
|
var _SendValidationCode200Response = _interopRequireDefault(require("./model/SendValidationCode200Response"));
|
|
296
407
|
var _SendValidationCodeRequest = _interopRequireDefault(require("./model/SendValidationCodeRequest"));
|
|
297
408
|
var _SignInWithEmail200Response = _interopRequireDefault(require("./model/SignInWithEmail200Response"));
|
|
@@ -300,6 +411,7 @@ var _SignInWithEmail200ResponseProfile = _interopRequireDefault(require("./model
|
|
|
300
411
|
var _SignInWithEmail200ResponseProfileAvatar = _interopRequireDefault(require("./model/SignInWithEmail200ResponseProfileAvatar"));
|
|
301
412
|
var _SignUp200Response = _interopRequireDefault(require("./model/SignUp200Response"));
|
|
302
413
|
var _SignUpResponse = _interopRequireDefault(require("./model/SignUpResponse"));
|
|
414
|
+
var _Threads = _interopRequireDefault(require("./model/Threads"));
|
|
303
415
|
var _UserDetails = _interopRequireDefault(require("./model/UserDetails"));
|
|
304
416
|
var _ValidateCode400Response = _interopRequireDefault(require("./model/ValidateCode400Response"));
|
|
305
417
|
var _ValidateCode400ResponseError = _interopRequireDefault(require("./model/ValidateCode400ResponseError"));
|
|
@@ -16,7 +16,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
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
18
|
* Floor Memory
|
|
19
|
-
* The set APIs are used to develop Floor pds which can be used as their personal assistants.
|
|
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.
|
|
20
22
|
*
|
|
21
23
|
* The version of the OpenAPI document: 1.0.0
|
|
22
24
|
* Contact: contact@ipomo.in
|
|
@@ -29,20 +31,20 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
31
|
/**
|
|
30
32
|
* The BlockDetails model module.
|
|
31
33
|
* @module model/BlockDetails
|
|
32
|
-
* @version 1.0.
|
|
34
|
+
* @version 1.0.5
|
|
33
35
|
*/
|
|
34
36
|
var BlockDetails = /*#__PURE__*/function () {
|
|
35
37
|
/**
|
|
36
38
|
* Constructs a new <code>BlockDetails</code>.
|
|
37
39
|
* Block Details
|
|
38
40
|
* @alias module:model/BlockDetails
|
|
39
|
-
* @param
|
|
41
|
+
* @param blockId {String} Block ID
|
|
40
42
|
* @param type {String} Block Type
|
|
41
43
|
* @param title {String} Title of the block
|
|
42
44
|
*/
|
|
43
|
-
function BlockDetails(
|
|
45
|
+
function BlockDetails(blockId, type, title) {
|
|
44
46
|
_classCallCheck(this, BlockDetails);
|
|
45
|
-
BlockDetails.initialize(this,
|
|
47
|
+
BlockDetails.initialize(this, blockId, type, title);
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
/**
|
|
@@ -52,8 +54,8 @@ var BlockDetails = /*#__PURE__*/function () {
|
|
|
52
54
|
*/
|
|
53
55
|
return _createClass(BlockDetails, null, [{
|
|
54
56
|
key: "initialize",
|
|
55
|
-
value: function initialize(obj,
|
|
56
|
-
obj['
|
|
57
|
+
value: function initialize(obj, blockId, type, title) {
|
|
58
|
+
obj['block_id'] = blockId;
|
|
57
59
|
obj['type'] = type;
|
|
58
60
|
obj['title'] = title;
|
|
59
61
|
}
|
|
@@ -70,8 +72,8 @@ var BlockDetails = /*#__PURE__*/function () {
|
|
|
70
72
|
value: function constructFromObject(data, obj) {
|
|
71
73
|
if (data) {
|
|
72
74
|
obj = obj || new BlockDetails();
|
|
73
|
-
if (data.hasOwnProperty('
|
|
74
|
-
obj['
|
|
75
|
+
if (data.hasOwnProperty('block_id')) {
|
|
76
|
+
obj['block_id'] = _ApiClient["default"].convertToType(data['block_id'], 'String');
|
|
75
77
|
}
|
|
76
78
|
if (data.hasOwnProperty('type')) {
|
|
77
79
|
obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
|
|
@@ -107,8 +109,8 @@ var BlockDetails = /*#__PURE__*/function () {
|
|
|
107
109
|
} finally {
|
|
108
110
|
_iterator.f();
|
|
109
111
|
}
|
|
110
|
-
if (data['
|
|
111
|
-
throw new Error("Expected the field `
|
|
112
|
+
if (data['block_id'] && !(typeof data['block_id'] === 'string' || data['block_id'] instanceof String)) {
|
|
113
|
+
throw new Error("Expected the field `block_id` to be a primitive type in the JSON string but got " + data['block_id']);
|
|
112
114
|
}
|
|
113
115
|
// ensure the json data is a string
|
|
114
116
|
if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
|
|
@@ -122,13 +124,13 @@ var BlockDetails = /*#__PURE__*/function () {
|
|
|
122
124
|
}
|
|
123
125
|
}]);
|
|
124
126
|
}();
|
|
125
|
-
BlockDetails.RequiredProperties = ["
|
|
127
|
+
BlockDetails.RequiredProperties = ["block_id", "type", "title"];
|
|
126
128
|
|
|
127
129
|
/**
|
|
128
130
|
* Block ID
|
|
129
|
-
* @member {String}
|
|
131
|
+
* @member {String} block_id
|
|
130
132
|
*/
|
|
131
|
-
BlockDetails.prototype['
|
|
133
|
+
BlockDetails.prototype['block_id'] = undefined;
|
|
132
134
|
|
|
133
135
|
/**
|
|
134
136
|
* Block Type
|
|
@@ -16,7 +16,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
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
18
|
* Floor Memory
|
|
19
|
-
* The set APIs are used to develop Floor pds which can be used as their personal assistants.
|
|
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.
|
|
20
22
|
*
|
|
21
23
|
* The version of the OpenAPI document: 1.0.0
|
|
22
24
|
* Contact: contact@ipomo.in
|
|
@@ -29,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
31
|
/**
|
|
30
32
|
* The ChangePassword200Response model module.
|
|
31
33
|
* @module model/ChangePassword200Response
|
|
32
|
-
* @version 1.0.
|
|
34
|
+
* @version 1.0.5
|
|
33
35
|
*/
|
|
34
36
|
var ChangePassword200Response = /*#__PURE__*/function () {
|
|
35
37
|
/**
|
|
@@ -0,0 +1,146 @@
|
|
|
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
|
+
var _ConversationThreads200ResponseThreadsInner = _interopRequireDefault(require("./ConversationThreads200ResponseThreadsInner"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
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); }
|
|
11
|
+
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; } } }; }
|
|
12
|
+
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; } }
|
|
13
|
+
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; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
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); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
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); } /**
|
|
19
|
+
* Floor Memory
|
|
20
|
+
* 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.
|
|
21
|
+
* - Memory and
|
|
22
|
+
* - 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.
|
|
23
|
+
*
|
|
24
|
+
* The version of the OpenAPI document: 1.0.0
|
|
25
|
+
* Contact: contact@ipomo.in
|
|
26
|
+
*
|
|
27
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
28
|
+
* https://openapi-generator.tech
|
|
29
|
+
* Do not edit the class manually.
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* The ConversationThreads200Response model module.
|
|
34
|
+
* @module model/ConversationThreads200Response
|
|
35
|
+
* @version 1.0.5
|
|
36
|
+
*/
|
|
37
|
+
var ConversationThreads200Response = /*#__PURE__*/function () {
|
|
38
|
+
/**
|
|
39
|
+
* Constructs a new <code>ConversationThreads200Response</code>.
|
|
40
|
+
* @alias module:model/ConversationThreads200Response
|
|
41
|
+
* @param userId {String}
|
|
42
|
+
* @param threads {Array.<module:model/ConversationThreads200ResponseThreadsInner>}
|
|
43
|
+
*/
|
|
44
|
+
function ConversationThreads200Response(userId, threads) {
|
|
45
|
+
_classCallCheck(this, ConversationThreads200Response);
|
|
46
|
+
ConversationThreads200Response.initialize(this, userId, threads);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Initializes the fields of this object.
|
|
51
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
52
|
+
* Only for internal use.
|
|
53
|
+
*/
|
|
54
|
+
return _createClass(ConversationThreads200Response, null, [{
|
|
55
|
+
key: "initialize",
|
|
56
|
+
value: function initialize(obj, userId, threads) {
|
|
57
|
+
obj['user_id'] = userId;
|
|
58
|
+
obj['threads'] = threads;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Constructs a <code>ConversationThreads200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
63
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
64
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
65
|
+
* @param {module:model/ConversationThreads200Response} obj Optional instance to populate.
|
|
66
|
+
* @return {module:model/ConversationThreads200Response} The populated <code>ConversationThreads200Response</code> instance.
|
|
67
|
+
*/
|
|
68
|
+
}, {
|
|
69
|
+
key: "constructFromObject",
|
|
70
|
+
value: function constructFromObject(data, obj) {
|
|
71
|
+
if (data) {
|
|
72
|
+
obj = obj || new ConversationThreads200Response();
|
|
73
|
+
if (data.hasOwnProperty('user_id')) {
|
|
74
|
+
obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String');
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('threads')) {
|
|
77
|
+
obj['threads'] = _ApiClient["default"].convertToType(data['threads'], [_ConversationThreads200ResponseThreadsInner["default"]]);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return obj;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Validates the JSON data with respect to <code>ConversationThreads200Response</code>.
|
|
85
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
86
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ConversationThreads200Response</code>.
|
|
87
|
+
*/
|
|
88
|
+
}, {
|
|
89
|
+
key: "validateJSON",
|
|
90
|
+
value: function validateJSON(data) {
|
|
91
|
+
// check to make sure all required properties are present in the JSON string
|
|
92
|
+
var _iterator = _createForOfIteratorHelper(ConversationThreads200Response.RequiredProperties),
|
|
93
|
+
_step;
|
|
94
|
+
try {
|
|
95
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
96
|
+
var property = _step.value;
|
|
97
|
+
if (!data.hasOwnProperty(property)) {
|
|
98
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
// ensure the json data is a string
|
|
102
|
+
} catch (err) {
|
|
103
|
+
_iterator.e(err);
|
|
104
|
+
} finally {
|
|
105
|
+
_iterator.f();
|
|
106
|
+
}
|
|
107
|
+
if (data['user_id'] && !(typeof data['user_id'] === 'string' || data['user_id'] instanceof String)) {
|
|
108
|
+
throw new Error("Expected the field `user_id` to be a primitive type in the JSON string but got " + data['user_id']);
|
|
109
|
+
}
|
|
110
|
+
if (data['threads']) {
|
|
111
|
+
// data not null
|
|
112
|
+
// ensure the json data is an array
|
|
113
|
+
if (!Array.isArray(data['threads'])) {
|
|
114
|
+
throw new Error("Expected the field `threads` to be an array in the JSON data but got " + data['threads']);
|
|
115
|
+
}
|
|
116
|
+
// validate the optional field `threads` (array)
|
|
117
|
+
var _iterator2 = _createForOfIteratorHelper(data['threads']),
|
|
118
|
+
_step2;
|
|
119
|
+
try {
|
|
120
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
121
|
+
var item = _step2.value;
|
|
122
|
+
_ConversationThreads200ResponseThreadsInner["default"].validateJSON(item);
|
|
123
|
+
}
|
|
124
|
+
} catch (err) {
|
|
125
|
+
_iterator2.e(err);
|
|
126
|
+
} finally {
|
|
127
|
+
_iterator2.f();
|
|
128
|
+
}
|
|
129
|
+
;
|
|
130
|
+
}
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
}]);
|
|
134
|
+
}();
|
|
135
|
+
ConversationThreads200Response.RequiredProperties = ["user_id", "threads"];
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @member {String} user_id
|
|
139
|
+
*/
|
|
140
|
+
ConversationThreads200Response.prototype['user_id'] = undefined;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @member {Array.<module:model/ConversationThreads200ResponseThreadsInner>} threads
|
|
144
|
+
*/
|
|
145
|
+
ConversationThreads200Response.prototype['threads'] = undefined;
|
|
146
|
+
var _default = exports["default"] = ConversationThreads200Response;
|