@xfloor/floor-memory-sdk-js 1.0.16 → 1.0.17
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 +8 -28
- package/dist/ApiClient.js +6 -6
- package/dist/api/DefaultApi.js +8 -251
- package/dist/api/EditFloorApi.js +1 -1
- package/dist/api/EventApi.js +1 -1
- package/dist/api/GetFloorInformationApi.js +1 -1
- package/dist/api/GetRecentEventsApi.js +1 -1
- package/dist/api/QueryApi.js +1 -1
- package/dist/index.js +0 -112
- package/dist/model/BlockDetails.js +1 -1
- package/dist/model/ChangePassword200Response.js +1 -1
- package/dist/model/EditFloor400Response.js +1 -1
- package/dist/model/EditFloor400ResponseError.js +1 -1
- package/dist/model/Event400Response.js +1 -1
- package/dist/model/Event400ResponseError.js +1 -1
- package/dist/model/EventResponse.js +1 -1
- package/dist/model/FloorInfo.js +1 -1
- package/dist/model/GetFloorInformation200Response.js +1 -1
- package/dist/model/GetRecentEvents200Response.js +1 -1
- package/dist/model/GetRecentEvents200ResponseItemsInner.js +1 -1
- package/dist/model/GetRecentEvents200ResponseItemsInnerAuthor.js +1 -1
- package/dist/model/GetRecentEvents400Response.js +1 -1
- package/dist/model/GetRecentEvents400ResponseError.js +1 -1
- package/dist/model/Media.js +1 -1
- package/dist/model/Model400ErrorCode.js +1 -1
- package/dist/model/Query422Response.js +1 -1
- package/dist/model/Query422ResponseError.js +1 -1
- package/dist/model/QueryRequest.js +1 -1
- package/dist/model/QueryRequestFilters.js +1 -1
- package/dist/model/QueryResponse.js +1 -1
- package/dist/model/QueryResponseItemsInner.js +1 -1
- package/dist/model/ResetPassword200Response.js +1 -1
- package/dist/model/ResetPassword400Response.js +1 -1
- package/dist/model/SendValidationCode200Response.js +1 -1
- package/dist/model/SignInWithEmail200Response.js +1 -1
- package/dist/model/SignInWithEmail200ResponsePodInfo.js +1 -1
- package/dist/model/SignInWithEmail200ResponseProfile.js +1 -1
- package/dist/model/SignInWithEmail200ResponseProfileAvatar.js +1 -1
- package/dist/model/SignUp200Response.js +1 -1
- package/dist/model/SignUpResponse.js +1 -1
- package/dist/model/UserDetails.js +1 -1
- package/dist/model/ValidateCode400Response.js +1 -1
- package/dist/model/ValidateCode400ResponseError.js +1 -1
- package/dist/model/ValidateCode412Response.js +1 -1
- package/dist/model/ValidateCodeRequest.js +1 -1
- package/package.json +1 -1
- package/dist/model/ConversationThreads200Response.js +0 -146
- package/dist/model/ConversationThreads200ResponseThreadsInner.js +0 -142
- package/dist/model/GetConversations200Response.js +0 -160
- package/dist/model/GetConversations200ResponseConversationInner.js +0 -107
- package/dist/model/GetConversations200ResponseConversationInnerAssistant.js +0 -228
- package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInner.js +0 -141
- package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerAiModelDetails.js +0 -212
- package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerMessage.js +0 -128
- package/dist/model/GetConversations200ResponseConversationInnerAssistantChoicesInnerPromptDetails.js +0 -128
- package/dist/model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts.js +0 -188
- package/dist/model/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.js +0 -218
- package/dist/model/GetConversations200ResponseConversationInnerUser.js +0 -172
- package/dist/model/GetConversations200ResponseConversationInnerUserContext.js +0 -170
- package/dist/model/PostAdd.js +0 -175
- package/dist/model/SendSignInValidationCode200Response.js +0 -143
- package/dist/model/Threads.js +0 -142
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ The developer has two ways of using the APIs for the app development. Developer
|
|
|
11
11
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
12
12
|
|
|
13
13
|
- API version: 1.0.0
|
|
14
|
-
- Package version: 1.0.
|
|
14
|
+
- Package version: 1.0.17
|
|
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/)
|
|
@@ -108,12 +108,14 @@ Please follow the [installation](#installation) instruction and execute the foll
|
|
|
108
108
|
```javascript
|
|
109
109
|
var XfloorFloorMemorySdkJs = require('@xfloor/floor-memory-sdk-js');
|
|
110
110
|
|
|
111
|
+
var defaultClient = XfloorFloorMemorySdkJs.ApiClient.instance;
|
|
112
|
+
// Configure Bearer access token for authorization: bearer
|
|
113
|
+
var bearer = defaultClient.authentications['bearer'];
|
|
114
|
+
bearer.accessToken = "YOUR ACCESS TOKEN"
|
|
111
115
|
|
|
112
116
|
var api = new XfloorFloorMemorySdkJs.DefaultApi()
|
|
113
|
-
var
|
|
114
|
-
var
|
|
115
|
-
'icon': "/path/to/file" // {File}
|
|
116
|
-
};
|
|
117
|
+
var newEmailId = "newEmailId_example"; // {String} New Email ID
|
|
118
|
+
var activationCode = "activationCode_example"; // {String} Validation code
|
|
117
119
|
var callback = function(error, data, response) {
|
|
118
120
|
if (error) {
|
|
119
121
|
console.error(error);
|
|
@@ -121,7 +123,7 @@ var callback = function(error, data, response) {
|
|
|
121
123
|
console.log('API called successfully. Returned data: ' + data);
|
|
122
124
|
}
|
|
123
125
|
};
|
|
124
|
-
api.
|
|
126
|
+
api.changeEmail(newEmailId, activationCode, callback);
|
|
125
127
|
|
|
126
128
|
```
|
|
127
129
|
|
|
@@ -129,19 +131,13 @@ api.apiDeveloperCreateAppPost(inputInfo, opts, callback);
|
|
|
129
131
|
|
|
130
132
|
| Class | Method | HTTP request | Description |
|
|
131
133
|
| --- | --- | --- | --- |
|
|
132
|
-
| `XfloorFloorMemorySdkJs.DefaultApi` | [**apiDeveloperCreateAppPost**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#apiDeveloperCreateAppPost) | **POST** /api/developer/create/app | Create App |
|
|
133
|
-
| `XfloorFloorMemorySdkJs.DefaultApi` | [**apiDeveloperModifyAppPost**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#apiDeveloperModifyAppPost) | **POST** /api/developer/modify/app | Modify Floorpod App |
|
|
134
134
|
| `XfloorFloorMemorySdkJs.DefaultApi` | [**changeEmail**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#changeEmail) | **POST** /auth-service/change/email | Change email ID |
|
|
135
135
|
| `XfloorFloorMemorySdkJs.DefaultApi` | [**changeMobileNumber**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#changeMobileNumber) | **POST** /auth-service/change/mobile | Change Mobile number |
|
|
136
136
|
| `XfloorFloorMemorySdkJs.DefaultApi` | [**changePassword**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#changePassword) | **POST** /auth-service/password/change | Change Password |
|
|
137
|
-
| `XfloorFloorMemorySdkJs.DefaultApi` | [**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
|
-
| `XfloorFloorMemorySdkJs.DefaultApi` | [**getConversations**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#getConversations) | **GET** /agent/memory/conversations | Conversations |
|
|
139
137
|
| `XfloorFloorMemorySdkJs.DefaultApi` | [**makeFloorPrivate**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#makeFloorPrivate) | **POST** /api/memory/make/floor/private/{floor_id} | Make floor Private |
|
|
140
138
|
| `XfloorFloorMemorySdkJs.DefaultApi` | [**makeFloorPublic**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#makeFloorPublic) | **POST** /api/memory/make/floor/public/{floor_id} | Make floor public |
|
|
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
139
|
| `XfloorFloorMemorySdkJs.DefaultApi` | [**renameFloor**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#renameFloor) | **POST** /api/memory/change/floor/id | Rename floor |
|
|
143
140
|
| `XfloorFloorMemorySdkJs.DefaultApi` | [**resetPassword**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#resetPassword) | **POST** /auth-service/password/reset | Reset Password |
|
|
144
|
-
| `XfloorFloorMemorySdkJs.DefaultApi` | [**sendSignInValidationCode**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#sendSignInValidationCode) | **POST** /auth-service/send/sign/in/validation/code | Send Sign-In Validation Code (OTP) |
|
|
145
141
|
| `XfloorFloorMemorySdkJs.DefaultApi` | [**sendValidationCode**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#sendValidationCode) | **POST** /auth-service/send/validation/code | Send Validation code |
|
|
146
142
|
| `XfloorFloorMemorySdkJs.DefaultApi` | [**signInWithEmail**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#signInWithEmail) | **POST** /auth-service/sign/in/with/email | Sign In with email ID |
|
|
147
143
|
| `XfloorFloorMemorySdkJs.DefaultApi` | [**signInWithMobileNumber**](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/DefaultApi.md#signInWithMobileNumber) | **POST** /auth-service/sign/in/with/mobile/number | Sign In with Mobile number |
|
|
@@ -157,25 +153,12 @@ api.apiDeveloperCreateAppPost(inputInfo, opts, callback);
|
|
|
157
153
|
|
|
158
154
|
- [XfloorFloorMemorySdkJs.BlockDetails](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/BlockDetails.md)
|
|
159
155
|
- [XfloorFloorMemorySdkJs.ChangePassword200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ChangePassword200Response.md)
|
|
160
|
-
- [XfloorFloorMemorySdkJs.ConversationThreads200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ConversationThreads200Response.md)
|
|
161
|
-
- [XfloorFloorMemorySdkJs.ConversationThreads200ResponseThreadsInner](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ConversationThreads200ResponseThreadsInner.md)
|
|
162
156
|
- [XfloorFloorMemorySdkJs.EditFloor400Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/EditFloor400Response.md)
|
|
163
157
|
- [XfloorFloorMemorySdkJs.EditFloor400ResponseError](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/EditFloor400ResponseError.md)
|
|
164
158
|
- [XfloorFloorMemorySdkJs.Event400Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/Event400Response.md)
|
|
165
159
|
- [XfloorFloorMemorySdkJs.Event400ResponseError](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/Event400ResponseError.md)
|
|
166
160
|
- [XfloorFloorMemorySdkJs.EventResponse](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/EventResponse.md)
|
|
167
161
|
- [XfloorFloorMemorySdkJs.FloorInfo](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/FloorInfo.md)
|
|
168
|
-
- [XfloorFloorMemorySdkJs.GetConversations200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetConversations200Response.md)
|
|
169
|
-
- [XfloorFloorMemorySdkJs.GetConversations200ResponseConversationInner](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetConversations200ResponseConversationInner.md)
|
|
170
|
-
- [XfloorFloorMemorySdkJs.GetConversations200ResponseConversationInnerAssistant](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetConversations200ResponseConversationInnerAssistant.md)
|
|
171
|
-
- [XfloorFloorMemorySdkJs.GetConversations200ResponseConversationInnerAssistantChoicesInner](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetConversations200ResponseConversationInnerAssistantChoicesInner.md)
|
|
172
|
-
- [XfloorFloorMemorySdkJs.GetConversations200ResponseConversationInnerAssistantChoicesInnerAiModelDetails](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetConversations200ResponseConversationInnerAssistantChoicesInnerAiModelDetails.md)
|
|
173
|
-
- [XfloorFloorMemorySdkJs.GetConversations200ResponseConversationInnerAssistantChoicesInnerMessage](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetConversations200ResponseConversationInnerAssistantChoicesInnerMessage.md)
|
|
174
|
-
- [XfloorFloorMemorySdkJs.GetConversations200ResponseConversationInnerAssistantChoicesInnerPromptDetails](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetConversations200ResponseConversationInnerAssistantChoicesInnerPromptDetails.md)
|
|
175
|
-
- [XfloorFloorMemorySdkJs.GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetConversations200ResponseConversationInnerAssistantFetchMultiplePosts.md)
|
|
176
|
-
- [XfloorFloorMemorySdkJs.GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetConversations200ResponseConversationInnerAssistantFetchMultiplePostsResultsInner.md)
|
|
177
|
-
- [XfloorFloorMemorySdkJs.GetConversations200ResponseConversationInnerUser](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetConversations200ResponseConversationInnerUser.md)
|
|
178
|
-
- [XfloorFloorMemorySdkJs.GetConversations200ResponseConversationInnerUserContext](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetConversations200ResponseConversationInnerUserContext.md)
|
|
179
162
|
- [XfloorFloorMemorySdkJs.GetFloorInformation200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetFloorInformation200Response.md)
|
|
180
163
|
- [XfloorFloorMemorySdkJs.GetRecentEvents200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetRecentEvents200Response.md)
|
|
181
164
|
- [XfloorFloorMemorySdkJs.GetRecentEvents200ResponseItemsInner](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetRecentEvents200ResponseItemsInner.md)
|
|
@@ -184,7 +167,6 @@ api.apiDeveloperCreateAppPost(inputInfo, opts, callback);
|
|
|
184
167
|
- [XfloorFloorMemorySdkJs.GetRecentEvents400ResponseError](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/GetRecentEvents400ResponseError.md)
|
|
185
168
|
- [XfloorFloorMemorySdkJs.Media](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/Media.md)
|
|
186
169
|
- [XfloorFloorMemorySdkJs.Model400ErrorCode](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/Model400ErrorCode.md)
|
|
187
|
-
- [XfloorFloorMemorySdkJs.PostAdd](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/PostAdd.md)
|
|
188
170
|
- [XfloorFloorMemorySdkJs.Query422Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/Query422Response.md)
|
|
189
171
|
- [XfloorFloorMemorySdkJs.Query422ResponseError](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/Query422ResponseError.md)
|
|
190
172
|
- [XfloorFloorMemorySdkJs.QueryRequest](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/QueryRequest.md)
|
|
@@ -193,7 +175,6 @@ api.apiDeveloperCreateAppPost(inputInfo, opts, callback);
|
|
|
193
175
|
- [XfloorFloorMemorySdkJs.QueryResponseItemsInner](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/QueryResponseItemsInner.md)
|
|
194
176
|
- [XfloorFloorMemorySdkJs.ResetPassword200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ResetPassword200Response.md)
|
|
195
177
|
- [XfloorFloorMemorySdkJs.ResetPassword400Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ResetPassword400Response.md)
|
|
196
|
-
- [XfloorFloorMemorySdkJs.SendSignInValidationCode200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SendSignInValidationCode200Response.md)
|
|
197
178
|
- [XfloorFloorMemorySdkJs.SendValidationCode200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SendValidationCode200Response.md)
|
|
198
179
|
- [XfloorFloorMemorySdkJs.SignInWithEmail200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignInWithEmail200Response.md)
|
|
199
180
|
- [XfloorFloorMemorySdkJs.SignInWithEmail200ResponsePodInfo](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignInWithEmail200ResponsePodInfo.md)
|
|
@@ -201,7 +182,6 @@ api.apiDeveloperCreateAppPost(inputInfo, opts, callback);
|
|
|
201
182
|
- [XfloorFloorMemorySdkJs.SignInWithEmail200ResponseProfileAvatar](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignInWithEmail200ResponseProfileAvatar.md)
|
|
202
183
|
- [XfloorFloorMemorySdkJs.SignUp200Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignUp200Response.md)
|
|
203
184
|
- [XfloorFloorMemorySdkJs.SignUpResponse](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/SignUpResponse.md)
|
|
204
|
-
- [XfloorFloorMemorySdkJs.Threads](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/Threads.md)
|
|
205
185
|
- [XfloorFloorMemorySdkJs.UserDetails](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/UserDetails.md)
|
|
206
186
|
- [XfloorFloorMemorySdkJs.ValidateCode400Response](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ValidateCode400Response.md)
|
|
207
187
|
- [XfloorFloorMemorySdkJs.ValidateCode400ResponseError](https://github.com/xFloorllm/floor-memory-sdk-client/blob/main/js/docs/ValidateCode400ResponseError.md)
|
package/dist/ApiClient.js
CHANGED
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
*/
|
|
28
28
|
/**
|
|
29
29
|
* @module ApiClient
|
|
30
|
-
* @version 1.0.
|
|
30
|
+
* @version 1.0.17
|
|
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] : '
|
|
46
|
+
var basePath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'http://localhost';
|
|
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
|
|
51
|
+
* @default http://localhost
|
|
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.
|
|
71
|
+
'User-Agent': 'OpenAPI-Generator/1.0.17/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': "
|
|
527
|
+
'url': "",
|
|
528
|
+
'description': "No description provided"
|
|
529
529
|
}];
|
|
530
530
|
}
|
|
531
531
|
}, {
|
package/dist/api/DefaultApi.js
CHANGED
|
@@ -6,14 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _ChangePassword200Response = _interopRequireDefault(require("../model/ChangePassword200Response"));
|
|
9
|
-
var _ConversationThreads200Response = _interopRequireDefault(require("../model/ConversationThreads200Response"));
|
|
10
9
|
var _EditFloor400Response = _interopRequireDefault(require("../model/EditFloor400Response"));
|
|
11
|
-
var _GetConversations200Response = _interopRequireDefault(require("../model/GetConversations200Response"));
|
|
12
10
|
var _GetFloorInformation200Response = _interopRequireDefault(require("../model/GetFloorInformation200Response"));
|
|
13
11
|
var _GetRecentEvents400Response = _interopRequireDefault(require("../model/GetRecentEvents400Response"));
|
|
14
12
|
var _ResetPassword200Response = _interopRequireDefault(require("../model/ResetPassword200Response"));
|
|
15
13
|
var _ResetPassword400Response = _interopRequireDefault(require("../model/ResetPassword400Response"));
|
|
16
|
-
var _SendSignInValidationCode200Response = _interopRequireDefault(require("../model/SendSignInValidationCode200Response"));
|
|
17
14
|
var _SendValidationCode200Response = _interopRequireDefault(require("../model/SendValidationCode200Response"));
|
|
18
15
|
var _SignInWithEmail200Response = _interopRequireDefault(require("../model/SignInWithEmail200Response"));
|
|
19
16
|
var _SignUp200Response = _interopRequireDefault(require("../model/SignUp200Response"));
|
|
@@ -44,7 +41,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
44
41
|
/**
|
|
45
42
|
* Default service.
|
|
46
43
|
* @module api/DefaultApi
|
|
47
|
-
* @version 1.0.
|
|
44
|
+
* @version 1.0.17
|
|
48
45
|
*/
|
|
49
46
|
var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
50
47
|
/**
|
|
@@ -60,102 +57,22 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
60
57
|
}
|
|
61
58
|
|
|
62
59
|
/**
|
|
63
|
-
* Callback function to receive the result of the
|
|
64
|
-
* @callback module:api/DefaultApi~
|
|
60
|
+
* Callback function to receive the result of the changeEmail operation.
|
|
61
|
+
* @callback module:api/DefaultApi~changeEmailCallback
|
|
65
62
|
* @param {String} error Error message, if any.
|
|
66
63
|
* @param {Object} data The data returned by the service call.
|
|
67
64
|
* @param {String} response The complete HTTP response.
|
|
68
65
|
*/
|
|
69
66
|
|
|
70
67
|
/**
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* @param {String}
|
|
74
|
-
* @param {
|
|
75
|
-
* @param {
|
|
76
|
-
* @param {module:api/DefaultApi~apiDeveloperCreateAppPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
68
|
+
* Change email ID
|
|
69
|
+
* Updates the email ID associated with an existing user account after validating a one-time activation code sent to the **new email address**. This operation can only be performed by a **logged-in user**. When a user initiates an email change, an activation code is sent to the newly provided email ID. The email update takes effect only after the activation code is successfully validated. If the activation code validation fails, the email ID remains unchanged. --- ### **Authentication** This endpoint requires **Bearer Token authentication**. ``` Authorization: Bearer <access_token> ``` --- ### **Request Body** ```json { \"user_id\": \"string\", \"new_email_id\": \"string\", \"activation_code\": \"string\", \"app_id\":\"string\" } ``` **Field Description** * `user_id` – Unique identifier of the logged-in user * `new_email_id` – New email address to be associated with the account * `activation_code` – One-time activation code sent to the new email ID for verification --- ### **Flow Summary** 1. User is authenticated and logged in 2. User requests to change email ID 3. System sends an activation code to the **new email address** 4. User submits the activation code via this API 5. On successful validation, the email ID is updated --- ### **Successful Response** On successful validation: * The activation code is verified * The user’s email ID is updated immediately * A `success` string is returned confirming the email change --- ### **Error Response** The API returns an error response if: * The activation code is invalid or expired * The activation code does not match the user or email * The new email ID is already in use * Authorization fails or the bearer token is missing or invalid In all error cases, the existing email ID remains unchanged. --- ### **Behavior Notes** * Requires a prior call to `/auth-service/send/validation/code` with the proper mode. --- ### **Security Notes (Recommended)** * Activation codes are single-use and time-bound * Email changes require prior authentication * Rate limiting may be applied to prevent abuse --- ### **One-Line Summary** > Changes a user’s email ID after validating an activation code sent to the new email address.
|
|
70
|
+
* @param {String} newEmailId New Email ID
|
|
71
|
+
* @param {String} activationCode Validation code
|
|
72
|
+
* @param {module:api/DefaultApi~changeEmailCallback} callback The callback function, accepting three arguments: error, data, response
|
|
77
73
|
* data is of type: {@link Object}
|
|
78
74
|
*/
|
|
79
75
|
return _createClass(DefaultApi, [{
|
|
80
|
-
key: "apiDeveloperCreateAppPost",
|
|
81
|
-
value: function apiDeveloperCreateAppPost(inputInfo, opts, callback) {
|
|
82
|
-
opts = opts || {};
|
|
83
|
-
var postBody = null;
|
|
84
|
-
// verify the required parameter 'inputInfo' is set
|
|
85
|
-
if (inputInfo === undefined || inputInfo === null) {
|
|
86
|
-
throw new Error("Missing the required parameter 'inputInfo' when calling apiDeveloperCreateAppPost");
|
|
87
|
-
}
|
|
88
|
-
var pathParams = {};
|
|
89
|
-
var queryParams = {};
|
|
90
|
-
var headerParams = {};
|
|
91
|
-
var formParams = {
|
|
92
|
-
'input_info': inputInfo,
|
|
93
|
-
'icon': opts['icon']
|
|
94
|
-
};
|
|
95
|
-
var authNames = [];
|
|
96
|
-
var contentTypes = ['multipart/form-data'];
|
|
97
|
-
var accepts = ['application/json'];
|
|
98
|
-
var returnType = Object;
|
|
99
|
-
return this.apiClient.callApi('/api/developer/create/app', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Callback function to receive the result of the apiDeveloperModifyAppPost operation.
|
|
104
|
-
* @callback module:api/DefaultApi~apiDeveloperModifyAppPostCallback
|
|
105
|
-
* @param {String} error Error message, if any.
|
|
106
|
-
* @param {Object} data The data returned by the service call.
|
|
107
|
-
* @param {String} response The complete HTTP response.
|
|
108
|
-
*/
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Modify Floorpod App
|
|
112
|
-
* Modify title, details or the app icon
|
|
113
|
-
* @param {String} inputInfo User ID, App ID, Title, Details. User ID and App ID are required parameters. Title/details are optional.
|
|
114
|
-
* @param {Object} opts Optional parameters
|
|
115
|
-
* @param {File} [file] Upload the new PNG icon file.
|
|
116
|
-
* @param {module:api/DefaultApi~apiDeveloperModifyAppPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
117
|
-
* data is of type: {@link Object}
|
|
118
|
-
*/
|
|
119
|
-
}, {
|
|
120
|
-
key: "apiDeveloperModifyAppPost",
|
|
121
|
-
value: function apiDeveloperModifyAppPost(inputInfo, opts, callback) {
|
|
122
|
-
opts = opts || {};
|
|
123
|
-
var postBody = null;
|
|
124
|
-
// verify the required parameter 'inputInfo' is set
|
|
125
|
-
if (inputInfo === undefined || inputInfo === null) {
|
|
126
|
-
throw new Error("Missing the required parameter 'inputInfo' when calling apiDeveloperModifyAppPost");
|
|
127
|
-
}
|
|
128
|
-
var pathParams = {};
|
|
129
|
-
var queryParams = {};
|
|
130
|
-
var headerParams = {};
|
|
131
|
-
var formParams = {
|
|
132
|
-
'input_info': inputInfo,
|
|
133
|
-
'file': opts['file']
|
|
134
|
-
};
|
|
135
|
-
var authNames = [];
|
|
136
|
-
var contentTypes = ['multipart/form-data'];
|
|
137
|
-
var accepts = ['application/json'];
|
|
138
|
-
var returnType = Object;
|
|
139
|
-
return this.apiClient.callApi('/api/developer/modify/app', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Callback function to receive the result of the changeEmail operation.
|
|
144
|
-
* @callback module:api/DefaultApi~changeEmailCallback
|
|
145
|
-
* @param {String} error Error message, if any.
|
|
146
|
-
* @param {Object} data The data returned by the service call.
|
|
147
|
-
* @param {String} response The complete HTTP response.
|
|
148
|
-
*/
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Change email ID
|
|
152
|
-
* Updates the email ID associated with an existing user account after validating a one-time activation code sent to the **new email address**. This operation can only be performed by a **logged-in user**. When a user initiates an email change, an activation code is sent to the newly provided email ID. The email update takes effect only after the activation code is successfully validated. If the activation code validation fails, the email ID remains unchanged. --- ### **Authentication** This endpoint requires **Bearer Token authentication**. ``` Authorization: Bearer <access_token> ``` --- ### **Request Body** ```json { \"user_id\": \"string\", \"new_email_id\": \"string\", \"activation_code\": \"string\", \"app_id\":\"string\" } ``` **Field Description** * `user_id` – Unique identifier of the logged-in user * `new_email_id` – New email address to be associated with the account * `activation_code` – One-time activation code sent to the new email ID for verification --- ### **Flow Summary** 1. User is authenticated and logged in 2. User requests to change email ID 3. System sends an activation code to the **new email address** 4. User submits the activation code via this API 5. On successful validation, the email ID is updated --- ### **Successful Response** On successful validation: * The activation code is verified * The user’s email ID is updated immediately * A `success` string is returned confirming the email change --- ### **Error Response** The API returns an error response if: * The activation code is invalid or expired * The activation code does not match the user or email * The new email ID is already in use * Authorization fails or the bearer token is missing or invalid In all error cases, the existing email ID remains unchanged. --- ### **Behavior Notes** * Requires a prior call to `/auth-service/send/validation/code` with the proper mode. --- ### **Security Notes (Recommended)** * Activation codes are single-use and time-bound * Email changes require prior authentication * Rate limiting may be applied to prevent abuse --- ### **One-Line Summary** > Changes a user’s email ID after validating an activation code sent to the new email address.
|
|
153
|
-
* @param {String} newEmailId New Email ID
|
|
154
|
-
* @param {String} activationCode Validation code
|
|
155
|
-
* @param {module:api/DefaultApi~changeEmailCallback} callback The callback function, accepting three arguments: error, data, response
|
|
156
|
-
* data is of type: {@link Object}
|
|
157
|
-
*/
|
|
158
|
-
}, {
|
|
159
76
|
key: "changeEmail",
|
|
160
77
|
value: function changeEmail(newEmailId, activationCode, callback) {
|
|
161
78
|
var postBody = null;
|
|
@@ -261,84 +178,6 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
261
178
|
return this.apiClient.callApi('/auth-service/password/change', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
262
179
|
}
|
|
263
180
|
|
|
264
|
-
/**
|
|
265
|
-
* Callback function to receive the result of the conversationThreads operation.
|
|
266
|
-
* @callback module:api/DefaultApi~conversationThreadsCallback
|
|
267
|
-
* @param {String} error Error message, if any.
|
|
268
|
-
* @param {module:model/ConversationThreads200Response} data The data returned by the service call.
|
|
269
|
-
* @param {String} response The complete HTTP response.
|
|
270
|
-
*/
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Get the conversational threads
|
|
274
|
-
* ### Conversation Model - A **Thread** represents a single conversational context. - A **Conversation** is the ordered exchange of messages within a thread. - Threads are scoped per user and per floor. This API retrieves the list of **conversational threads** associated with a specific **user** within a specific **floor**. A **thread** represents a persistent conversation context between the user and the system (agent/assistant) inside a floor. Each thread maintains its own history and state, allowing users to resume previous conversations without losing context. The API returns **only thread metadata**, not the message content itself. This makes it suitable for: * Displaying a conversation list or sidebar * Allowing users to select and resume past conversations * Managing conversational memory per floor --- ## Key Concepts * **Thread**: A long-lived conversational context tied to a user and a floor * **Floor-scoped memory**: Conversations are isolated per floor; threads from one floor are not visible in another * **User-specific**: Threads are private to the requesting user --- ## Request Method `GET` --- ## Request Parameters (Query Parameters) | Parameter Name | Type | Required | Description | | -------------- | ------ | -------- | ---------------------------------------------------------------------------- | | `user_id` | String | **Yes** | Unique identifier of the user whose conversation threads are being requested | | `floor_id` | String | **Yes** | Identifier of the floor in which the conversations exist | --- ## Authorization & Access Rules * The caller must be authenticated as the given `user_id` * A user can retrieve **only their own threads** * Threads are scoped to the provided `floor_id` * Threads from other floors or other users are not accessible --- ## Response Format `application/json` --- ## Response Description The response contains: * The `user_id` for which threads were fetched * A list of thread metadata objects, sorted by **most recently updated first** --- ## Response Structure ### Top-Level Fields | Field | Type | Description | | --------- | ------ | ------------------------------------------------------------------------- | | `user_id` | String | Identifier of the user | | `threads` | Array | List of conversation threads belonging to the user in the specified floor | --- ### Thread Object (`threads[]`) | Field | Type | Description | | -------------- | ------------------- | ------------------------------------------------- | | `thread_id` | String | Unique identifier of the conversation thread | | `title` | String | Human-readable title summarizing the conversation | | `last_updated` | String (YYYY-MM-DD) | Date when the thread was last updated | --- ## Sample Success Response ```json { \"user_id\": \"59\", \"threads\": [ { \"thread_id\": \"55\", \"title\": \"elegant potentially hopelessly ambitious sneak\", \"last_updated\": \"2025-04-26\" }, { \"thread_id\": \"79\", \"title\": \"sans profitable alienated by even overstay miserly practical\", \"last_updated\": \"2025-04-24\" }, { \"thread_id\": \"89\", \"title\": \"although light uh-huh despite instead vol sorrowful\", \"last_updated\": \"2025-02-16\" } ] } ``` --- ## Typical Use Cases * Show a **list of past conversations** in a chat UI * Allow users to **resume a previous thread** * Display conversation history grouped by floor * Build agent dashboards with user-specific memory --- ## Notes * This API returns **metadata only**; message history is retrieved using a separate thread-messages API * If no threads exist, the `threads` array will be empty * Thread titles may be system-generated or user-editable depending on implementation --- ## Common Error Responses (Examples) ### Missing Parameters ```json { \"status\": \"ERROR\", \"message\": \"user_id and floor_id are required\" } ``` ### Unauthorised Access ```json { \"status\": \"ERROR\", \"message\": \"Unauthorized access to conversation threads\" } ```
|
|
275
|
-
* @param {String} userId User ID
|
|
276
|
-
* @param {String} floorId Floor ID
|
|
277
|
-
* @param {module:api/DefaultApi~conversationThreadsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
278
|
-
* data is of type: {@link module:model/ConversationThreads200Response}
|
|
279
|
-
*/
|
|
280
|
-
}, {
|
|
281
|
-
key: "conversationThreads",
|
|
282
|
-
value: function conversationThreads(userId, floorId, callback) {
|
|
283
|
-
var postBody = null;
|
|
284
|
-
// verify the required parameter 'userId' is set
|
|
285
|
-
if (userId === undefined || userId === null) {
|
|
286
|
-
throw new Error("Missing the required parameter 'userId' when calling conversationThreads");
|
|
287
|
-
}
|
|
288
|
-
// verify the required parameter 'floorId' is set
|
|
289
|
-
if (floorId === undefined || floorId === null) {
|
|
290
|
-
throw new Error("Missing the required parameter 'floorId' when calling conversationThreads");
|
|
291
|
-
}
|
|
292
|
-
var pathParams = {};
|
|
293
|
-
var queryParams = {
|
|
294
|
-
'user_id': userId,
|
|
295
|
-
'floor_id': floorId
|
|
296
|
-
};
|
|
297
|
-
var headerParams = {};
|
|
298
|
-
var formParams = {};
|
|
299
|
-
var authNames = ['bearer'];
|
|
300
|
-
var contentTypes = [];
|
|
301
|
-
var accepts = ['application/json'];
|
|
302
|
-
var returnType = _ConversationThreads200Response["default"];
|
|
303
|
-
return this.apiClient.callApi('/agent/memory/threads', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* Callback function to receive the result of the getConversations operation.
|
|
308
|
-
* @callback module:api/DefaultApi~getConversationsCallback
|
|
309
|
-
* @param {String} error Error message, if any.
|
|
310
|
-
* @param {module:model/GetConversations200Response} data The data returned by the service call.
|
|
311
|
-
* @param {String} response The complete HTTP response.
|
|
312
|
-
*/
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Conversations
|
|
316
|
-
* This API returns the **full conversation history** for a specific **thread** belonging to a user within a floor. A **thread** represents a persistent conversation session. Each item in the returned `conversation` array contains: * The **user request payload** (user query + context) * The **assistant response payload** (full LLM completion object) * The **retrieval trace** (metadata of posts fetched/used for the answer, including scores and identifiers) This endpoint is intended for **developers** building custom conversational UIs and tooling that require: * Full conversation replay * Debug visibility into the assistant output object (`choices`, model info, etc.) * RAG explainability via `fetch_multiple_posts.results[]` --- ## Request Method `GET` --- ## Query Parameters | Parameter | Type | Required | Description | | ----------- | ------ | -------- | --------------------------------------------------------------------------- | | `user_id` | String | **Yes** | Owner of the conversation thread. The thread must belong to this user. | | `floor_id` | String | **Yes** | Floor identifier in which the thread exists. Threads are scoped to a floor. | | `thread_id` | String | **Yes** | Thread identifier whose conversations should be returned. | --- ## Authorization & Access Rules * The caller must be authenticated as the given `user_id` (or have equivalent developer/system permission). * A user can access **only their own threads**. * Cross-user or cross-floor access must be rejected. --- ## Response Format `application/json` --- ## Response Description Returns the thread-level conversation payload: * `user_id`: the user who owns the thread * `thread_id`: the requested thread * `conversation`: ordered list of conversation entries (each entry = user object + assistant object) --- ## Response Schema ### Top-Level Fields | Field | Type | Description | | -------------- | ------ | ---------------------------- | | `user_id` | String | Owner of the thread | | `thread_id` | String | Thread identifier | | `conversation` | Array | List of conversation entries | --- ## `conversation[]` Entry Structure Each entry contains two objects: `user` and `assistant`. --- ### `user` Object | Field | Type | Description | | ------------------ | ------ | ------------------------------------------------------------------- | | `context` | Object | Context used when processing the query (floor metadata, mode, etc.) | | `user_query` | String | The user’s query message | | `user_id` | String | User identifier (should match top-level `user_id`) | | `user_thread` | String | Thread identifier (should match top-level `thread_id`) | | `recorded_content` | String | Persisted user content (often same as `user_query`) | #### `user.context` | Field | Type | Description | | ---------------- | ------ | ---------------------------------------------- | | `floor_id` | String | Floor UID/slug where the conversation occurred | | `title` | String | Floor title at the time of the query | | `fid` | String | Immutable internal floor ID | | `floor_category` | String | Floor category identifier | | `floor_mode` | String | Floor mode indicator (example: `\"1\"`) | --- ### `assistant` Object This contains the **full completion response** plus retrieval details. | Field | Type | Description | | ---------------------- | ------ | --------------------------------------------------- | | `id` | String | Completion id (e.g., `chatcmpl-*`) | | `object` | String | Response type (e.g., `chat.completion`) | | `created` | Number | Timestamp when response was created (epoch seconds) | | `floor_mode` | String | Floor mode applied for generation | | `model` | String | Model identifier used | | `choices` | Array | Generated outputs and metadata | | `fetch_multiple_posts` | Object | Retrieval trace (if retrieval was performed) | | `content_type` | String | Retrieved content type (e.g., `post`) | --- ## `assistant.choices[]` | Field | Type | Description | | ------------------ | ------ | -------------------------------------------------------------------------- | | `index` | Number | Choice index | | `message` | Object | Assistant message content | | `finish_reason` | String | Why generation stopped (`stop`, `length`, etc.) | | `ai_model_details` | Object | Model runtime parameters (temperature, top_p, max_tokens, penalties, etc.) | | `prompt_details` | Object | Prompt configuration used (system prompt, system_prompt_id, etc.) | > **Note:** `prompt_details.system_prompt` may be large and is returned as-is for developer inspection. --- ## `assistant.fetch_multiple_posts` Describes the retrieval operation performed for the query. | Field | Type | Description | | -------------- | ------ | -------------------------------------- | | `content_type` | String | Type of retrieved content (`post`) | | `query` | String | Query used for retrieval | | `status` | String | Retrieval status (`success`, `failed`) | | `message` | String | Retrieval message | | `results` | Array | List of matched posts and metadata | --- ## `assistant.fetch_multiple_posts.results[]` | Field | Type | Description | | ------------ | ------ | ----------------------------------------------------------------- | | `from_floor` | String | Indicates source floor relation (e.g., same floor / linked floor) | | `content` | String | Raw JSON string of the matched post metadata/content | | `author` | String | Author id of the matched post | | `block_type` | Number | Block type of the matched post | | `pid` | String | Post/document id | | `bid` | String | Block id containing the post | | `fid` | String | Floor internal id where the post belongs | | `score` | Number | Similarity score | | `match_type` | String | Match type (`text`, etc.) | --- ## Sample Success Response Your provided payload is the canonical example. It includes: * the user query and floor context * the full assistant completion object * the full retrieval results with post metadata * the response shown covers a few important items. --- ## Common Error Responses ### Missing Parameters ```json { \"status\": \"ERROR\", \"message\": \"user_id, floor_id, and thread_id are required\" } ``` ### Unauthorized Access ```json { \"status\": \"ERROR\", \"message\": \"Unauthorized access to thread\" } ``` ### Thread Not Found ```json { \"status\": \"ERROR\", \"message\": \"Thread not found\" } ``` --- ## Developer Notes (Important) * The `content` field inside retrieval results is a **stringified JSON**. Developers may parse it to access fields such as `post_title`, `post_details`, etc. * `choices` may contain multiple outputs depending on backend configuration. * This API returns a “full debug payload” suitable for developers. If you later create a lightweight UI endpoint, it should strip execution details and return only `user_query`, `assistant.content`, and curated post references.
|
|
317
|
-
* @param {Object} opts Optional parameters
|
|
318
|
-
* @param {String} [userId]
|
|
319
|
-
* @param {String} [threadId]
|
|
320
|
-
* @param {module:api/DefaultApi~getConversationsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
321
|
-
* data is of type: {@link module:model/GetConversations200Response}
|
|
322
|
-
*/
|
|
323
|
-
}, {
|
|
324
|
-
key: "getConversations",
|
|
325
|
-
value: function getConversations(opts, callback) {
|
|
326
|
-
opts = opts || {};
|
|
327
|
-
var postBody = null;
|
|
328
|
-
var pathParams = {};
|
|
329
|
-
var queryParams = {
|
|
330
|
-
'user_id': opts['userId'],
|
|
331
|
-
'thread_id': opts['threadId']
|
|
332
|
-
};
|
|
333
|
-
var headerParams = {};
|
|
334
|
-
var formParams = {};
|
|
335
|
-
var authNames = ['bearer'];
|
|
336
|
-
var contentTypes = [];
|
|
337
|
-
var accepts = ['application/json'];
|
|
338
|
-
var returnType = _GetConversations200Response["default"];
|
|
339
|
-
return this.apiClient.callApi('/agent/memory/conversations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
340
|
-
}
|
|
341
|
-
|
|
342
181
|
/**
|
|
343
182
|
* Callback function to receive the result of the makeFloorPrivate operation.
|
|
344
183
|
* @callback module:api/DefaultApi~makeFloorPrivateCallback
|
|
@@ -437,46 +276,6 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
437
276
|
return this.apiClient.callApi('/api/memory/make/floor/public/{floor_id}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
438
277
|
}
|
|
439
278
|
|
|
440
|
-
/**
|
|
441
|
-
* Callback function to receive the result of the registerExternalUserIdentity operation.
|
|
442
|
-
* @callback module:api/DefaultApi~registerExternalUserIdentityCallback
|
|
443
|
-
* @param {String} error Error message, if any.
|
|
444
|
-
* @param {module:model/SignInWithEmail200Response} data The data returned by the service call.
|
|
445
|
-
* @param {String} response The complete HTTP response.
|
|
446
|
-
*/
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* External User Registration
|
|
450
|
-
* This API allows a calling application to **pass externally authenticated user identity information to xfloor** after completing authentication within its own system. xfloor **does not perform authentication, credential verification, or session management** as part of this API. The calling application is fully responsible for validating the user and ensuring the correctness of the identity data provided. Upon invocation, xfloor will: * **Create a new user profile** if no matching user exists, or * **Update the existing user profile** if the user is already present. xfloor returns a unique `xfloor_user_id`, which serves as the **canonical user identifier** and must be used in all subsequent xfloor APIs, including floors, blocks, conversations, memory interactions, and analytics.
|
|
451
|
-
* @param {Object} opts Optional parameters
|
|
452
|
-
* @param {String} [mobileNumber]
|
|
453
|
-
* @param {String} [emailId]
|
|
454
|
-
* @param {String} [name]
|
|
455
|
-
* @param {String} [appId]
|
|
456
|
-
* @param {module:api/DefaultApi~registerExternalUserIdentityCallback} callback The callback function, accepting three arguments: error, data, response
|
|
457
|
-
* data is of type: {@link module:model/SignInWithEmail200Response}
|
|
458
|
-
*/
|
|
459
|
-
}, {
|
|
460
|
-
key: "registerExternalUserIdentity",
|
|
461
|
-
value: function registerExternalUserIdentity(opts, callback) {
|
|
462
|
-
opts = opts || {};
|
|
463
|
-
var postBody = null;
|
|
464
|
-
var pathParams = {};
|
|
465
|
-
var queryParams = {};
|
|
466
|
-
var headerParams = {};
|
|
467
|
-
var formParams = {
|
|
468
|
-
'mobile_number': opts['mobileNumber'],
|
|
469
|
-
'email_id': opts['emailId'],
|
|
470
|
-
'name': opts['name'],
|
|
471
|
-
'app_id': opts['appId']
|
|
472
|
-
};
|
|
473
|
-
var authNames = ['bearer'];
|
|
474
|
-
var contentTypes = ['multipart/form-data'];
|
|
475
|
-
var accepts = ['application/json'];
|
|
476
|
-
var returnType = _SignInWithEmail200Response["default"];
|
|
477
|
-
return this.apiClient.callApi('/memory/identity/external-user', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
478
|
-
}
|
|
479
|
-
|
|
480
279
|
/**
|
|
481
280
|
* Callback function to receive the result of the renameFloor operation.
|
|
482
281
|
* @callback module:api/DefaultApi~renameFloorCallback
|
|
@@ -575,48 +374,6 @@ var DefaultApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
575
374
|
return this.apiClient.callApi('/auth-service/password/reset', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
576
375
|
}
|
|
577
376
|
|
|
578
|
-
/**
|
|
579
|
-
* Callback function to receive the result of the sendSignInValidationCode operation.
|
|
580
|
-
* @callback module:api/DefaultApi~sendSignInValidationCodeCallback
|
|
581
|
-
* @param {String} error Error message, if any.
|
|
582
|
-
* @param {module:model/SendSignInValidationCode200Response} data The data returned by the service call.
|
|
583
|
-
* @param {String} response The complete HTTP response.
|
|
584
|
-
*/
|
|
585
|
-
|
|
586
|
-
/**
|
|
587
|
-
* Send Sign-In Validation Code (OTP)
|
|
588
|
-
* This API initiates the **sign-in validation process** by sending a **one-time validation code (OTP)** to the user. The OTP is delivered to **either the mobile number or the email address** provided in the request. This endpoint is typically called **before completing sign-in**, to verify that the user owns the supplied contact identifier. The calling application is responsible for: * Collecting the OTP from the user * Submitting it to the OTP verification API (handled separately) --- ## **Use Case** * User attempts to sign in * User provides **mobile number or email** * System sends a **validation code (OTP)** * User enters OTP to complete sign-in --- ## **Request Method** `POST` --- ## **Formdata Parameters** | Parameter Name | Type | Required | Description | | --------------- | ------ | --------- | ------------------------------------------- | | `mobile_number` | String | Optional* | Mobile number to which the OTP will be sent | | `email_id` | String | Optional* | Email address to which the OTP will be sent | | `app_id` | String | Optional | Identifier of the calling application | * **Either `mobile_number` or `email_id` must be provided.** Providing both is allowed; the system may choose one based on configuration. --- ## **Request Rules** * At least **one** of `mobile_number` or `email_id` is mandatory * If both are missing, the request will be rejected * OTP delivery channel depends on the provided identifier --- ## **Response Format** `application/json` --- ## **Sample Success Response** ```json { \"status\": \"SUCCESS\", \"message\": \"Validation code sent successfully\" } ``` --- ## **Sample Error Responses** ### Missing Identifier ```json { \"status\": \"ERROR\", \"message\": \"Either mobile_number or email_id must be provided\" } ``` ### Invalid Identifier ```json { \"status\": \"ERROR\", \"message\": \"Invalid mobile number or email address\" } ``` --- ## **Notes** * This API **only sends** the validation code * OTP verification must be performed using the corresponding **verify validation code** API * Rate limiting and retry restrictions may apply to prevent abuse
|
|
589
|
-
* @param {String} appId App ID
|
|
590
|
-
* @param {Object} opts Optional parameters
|
|
591
|
-
* @param {String} [mobileNumber] Mobile number
|
|
592
|
-
* @param {String} [emailId] Email ID
|
|
593
|
-
* @param {module:api/DefaultApi~sendSignInValidationCodeCallback} callback The callback function, accepting three arguments: error, data, response
|
|
594
|
-
* data is of type: {@link module:model/SendSignInValidationCode200Response}
|
|
595
|
-
*/
|
|
596
|
-
}, {
|
|
597
|
-
key: "sendSignInValidationCode",
|
|
598
|
-
value: function sendSignInValidationCode(appId, opts, callback) {
|
|
599
|
-
opts = opts || {};
|
|
600
|
-
var postBody = null;
|
|
601
|
-
// verify the required parameter 'appId' is set
|
|
602
|
-
if (appId === undefined || appId === null) {
|
|
603
|
-
throw new Error("Missing the required parameter 'appId' when calling sendSignInValidationCode");
|
|
604
|
-
}
|
|
605
|
-
var pathParams = {};
|
|
606
|
-
var queryParams = {};
|
|
607
|
-
var headerParams = {};
|
|
608
|
-
var formParams = {
|
|
609
|
-
'mobile_number': opts['mobileNumber'],
|
|
610
|
-
'email_id': opts['emailId'],
|
|
611
|
-
'app_id': appId
|
|
612
|
-
};
|
|
613
|
-
var authNames = ['bearer'];
|
|
614
|
-
var contentTypes = ['multipart/form-data'];
|
|
615
|
-
var accepts = ['application/json'];
|
|
616
|
-
var returnType = _SendSignInValidationCode200Response["default"];
|
|
617
|
-
return this.apiClient.callApi('/auth-service/send/sign/in/validation/code', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
618
|
-
}
|
|
619
|
-
|
|
620
377
|
/**
|
|
621
378
|
* Callback function to receive the result of the sendValidationCode operation.
|
|
622
379
|
* @callback module:api/DefaultApi~sendValidationCodeCallback
|
package/dist/api/EditFloorApi.js
CHANGED
|
@@ -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.
|
|
33
|
+
* @version 1.0.17
|
|
34
34
|
*/
|
|
35
35
|
var EditFloorApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/api/EventApi.js
CHANGED
|
@@ -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.
|
|
33
|
+
* @version 1.0.17
|
|
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.
|
|
33
|
+
* @version 1.0.17
|
|
34
34
|
*/
|
|
35
35
|
var GetRecentEventsApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/api/QueryApi.js
CHANGED