neuralseekui 1.0.0
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 +163 -0
- package/docs/AddIntentBody.md +10 -0
- package/docs/AnswersApi.md +160 -0
- package/docs/CategoriesApi.md +58 -0
- package/docs/CategoryBody.md +8 -0
- package/docs/CurateBody.md +9 -0
- package/docs/CuratedDataApi.md +59 -0
- package/docs/DelAnswerBody.md +6 -0
- package/docs/DelQuestionBody.md +7 -0
- package/docs/DelUserDataBody.md +7 -0
- package/docs/EditAnswerBody.md +7 -0
- package/docs/ExploreFilesBody.md +6 -0
- package/docs/ExploreUploadBody.md +6 -0
- package/docs/FdelBody.md +7 -0
- package/docs/FindAnswerIdBody.md +6 -0
- package/docs/FlagBody.md +7 -0
- package/docs/GodocumentBody.md +9 -0
- package/docs/GomaistroBody.md +7 -0
- package/docs/GomaistrotokensBody.md +7 -0
- package/docs/GooverBody.md +9 -0
- package/docs/GoperfBody.md +7 -0
- package/docs/GosemanticBody.md +9 -0
- package/docs/GotokensBody.md +7 -0
- package/docs/GovernanceApi.md +410 -0
- package/docs/IntentsApi.md +364 -0
- package/docs/LoadUserResponseBody.md +7 -0
- package/docs/MAIstroApi.md +265 -0
- package/docs/MaistroFilesBody.md +8 -0
- package/docs/MaistroOCRBody.md +6 -0
- package/docs/MergeBody.md +7 -0
- package/docs/QuestionsApi.md +58 -0
- package/docs/RenBody.md +7 -0
- package/docs/UnmergeBody.md +6 -0
- package/git_push.sh +52 -0
- package/mocha.opts +1 -0
- package/package.json +55 -0
- package/src/ApiClient.js +585 -0
- package/src/api/AnswersApi.js +179 -0
- package/src/api/CategoriesApi.js +85 -0
- package/src/api/CuratedDataApi.js +82 -0
- package/src/api/GovernanceApi.js +408 -0
- package/src/api/IntentsApi.js +367 -0
- package/src/api/MAIstroApi.js +262 -0
- package/src/api/QuestionsApi.js +85 -0
- package/src/index.js +279 -0
- package/src/model/AddIntentBody.js +91 -0
- package/src/model/CategoryBody.js +71 -0
- package/src/model/CurateBody.js +75 -0
- package/src/model/DelAnswerBody.js +55 -0
- package/src/model/DelQuestionBody.js +64 -0
- package/src/model/DelUserDataBody.js +62 -0
- package/src/model/EditAnswerBody.js +64 -0
- package/src/model/ExploreFilesBody.js +55 -0
- package/src/model/ExploreUploadBody.js +53 -0
- package/src/model/FdelBody.js +62 -0
- package/src/model/FindAnswerIdBody.js +55 -0
- package/src/model/FlagBody.js +61 -0
- package/src/model/GodocumentBody.js +76 -0
- package/src/model/GomaistroBody.js +62 -0
- package/src/model/GomaistrotokensBody.js +62 -0
- package/src/model/GooverBody.js +76 -0
- package/src/model/GoperfBody.js +62 -0
- package/src/model/GosemanticBody.js +76 -0
- package/src/model/GotokensBody.js +62 -0
- package/src/model/LoadUserResponseBody.js +64 -0
- package/src/model/MaistroFilesBody.js +69 -0
- package/src/model/MaistroOCRBody.js +53 -0
- package/src/model/MergeBody.js +64 -0
- package/src/model/RenBody.js +62 -0
- package/src/model/UnmergeBody.js +53 -0
- package/test/api/AnswersApi.spec.js +95 -0
- package/test/api/CategoriesApi.spec.js +59 -0
- package/test/api/CuratedDataApi.spec.js +60 -0
- package/test/api/GovernanceApi.spec.js +185 -0
- package/test/api/IntentsApi.spec.js +167 -0
- package/test/api/MAIstroApi.spec.js +134 -0
- package/test/api/QuestionsApi.spec.js +59 -0
- package/test/assert-equals.js +81 -0
- package/test/model/AddIntentBody.spec.js +76 -0
- package/test/model/CategoryBody.spec.js +64 -0
- package/test/model/CurateBody.spec.js +70 -0
- package/test/model/DelAnswerBody.spec.js +52 -0
- package/test/model/DelQuestionBody.spec.js +58 -0
- package/test/model/DelUserDataBody.spec.js +58 -0
- package/test/model/EditAnswerBody.spec.js +58 -0
- package/test/model/ExploreFilesBody.spec.js +52 -0
- package/test/model/ExploreUploadBody.spec.js +52 -0
- package/test/model/FdelBody.spec.js +58 -0
- package/test/model/FindAnswerIdBody.spec.js +52 -0
- package/test/model/FlagBody.spec.js +58 -0
- package/test/model/GodocumentBody.spec.js +70 -0
- package/test/model/GomaistroBody.spec.js +58 -0
- package/test/model/GomaistrotokensBody.spec.js +58 -0
- package/test/model/GooverBody.spec.js +70 -0
- package/test/model/GoperfBody.spec.js +58 -0
- package/test/model/GosemanticBody.spec.js +70 -0
- package/test/model/GotokensBody.spec.js +58 -0
- package/test/model/LoadUserResponseBody.spec.js +58 -0
- package/test/model/MaistroFilesBody.spec.js +64 -0
- package/test/model/MaistroOCRBody.spec.js +52 -0
- package/test/model/MergeBody.spec.js +58 -0
- package/test/model/RenBody.spec.js +58 -0
- package/test/model/UnmergeBody.spec.js +52 -0
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* NeuralSeek UI
|
|
3
|
+
* NeuralSeek - The business LLM accelerator
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
* Contact: support@NeuralSeek.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
*
|
|
11
|
+
* Swagger Codegen version: 3.0.78
|
|
12
|
+
*
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
import ApiClient from "../ApiClient";
|
|
17
|
+
import DelAnswerBody from '../model/DelAnswerBody';
|
|
18
|
+
import EditAnswerBody from '../model/EditAnswerBody';
|
|
19
|
+
import FindAnswerIdBody from '../model/FindAnswerIdBody';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Answers service.
|
|
23
|
+
* @module api/AnswersApi
|
|
24
|
+
* @version 1.0.0
|
|
25
|
+
*/
|
|
26
|
+
export default class AnswersApi {
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new AnswersApi.
|
|
30
|
+
* @alias module:api/AnswersApi
|
|
31
|
+
* @class
|
|
32
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
33
|
+
* default to {@link module:ApiClient#instanc
|
|
34
|
+
e} if unspecified.
|
|
35
|
+
*/
|
|
36
|
+
constructor(apiClient) {
|
|
37
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Callback function to receive the result of the deleteAnswer operation.
|
|
42
|
+
* @callback moduleapi/AnswersApi~deleteAnswerCallback
|
|
43
|
+
* @param {String} error Error message, if any.
|
|
44
|
+
* @param data This operation does not return a value.
|
|
45
|
+
* @param {String} response The complete HTTP response.
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Delete Answer
|
|
50
|
+
* Delete Answer
|
|
51
|
+
* @param {module:model/DelAnswerBody} body The request object.
|
|
52
|
+
* @param {module:api/AnswersApi~deleteAnswerCallback} callback The callback function, accepting three arguments: error, data, response
|
|
53
|
+
*/
|
|
54
|
+
deleteAnswer(body, callback) {
|
|
55
|
+
|
|
56
|
+
let postBody = body;
|
|
57
|
+
// verify the required parameter 'body' is set
|
|
58
|
+
if (body === undefined || body === null) {
|
|
59
|
+
throw new Error("Missing the required parameter 'body' when calling deleteAnswer");
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
let pathParams = {
|
|
63
|
+
|
|
64
|
+
};
|
|
65
|
+
let queryParams = {
|
|
66
|
+
|
|
67
|
+
};
|
|
68
|
+
let headerParams = {
|
|
69
|
+
|
|
70
|
+
};
|
|
71
|
+
let formParams = {
|
|
72
|
+
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
let authNames = ['apiKey'];
|
|
76
|
+
let contentTypes = ['application/json'];
|
|
77
|
+
let accepts = [];
|
|
78
|
+
let returnType = null;
|
|
79
|
+
|
|
80
|
+
return this.apiClient.callApi(
|
|
81
|
+
'/delAnswer', 'POST',
|
|
82
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
83
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Callback function to receive the result of the editAnswer operation.
|
|
88
|
+
* @callback moduleapi/AnswersApi~editAnswerCallback
|
|
89
|
+
* @param {String} error Error message, if any.
|
|
90
|
+
* @param data This operation does not return a value.
|
|
91
|
+
* @param {String} response The complete HTTP response.
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Edit Answer
|
|
96
|
+
* Edit Answer
|
|
97
|
+
* @param {module:model/EditAnswerBody} body The request object.
|
|
98
|
+
* @param {module:api/AnswersApi~editAnswerCallback} callback The callback function, accepting three arguments: error, data, response
|
|
99
|
+
*/
|
|
100
|
+
editAnswer(body, callback) {
|
|
101
|
+
|
|
102
|
+
let postBody = body;
|
|
103
|
+
// verify the required parameter 'body' is set
|
|
104
|
+
if (body === undefined || body === null) {
|
|
105
|
+
throw new Error("Missing the required parameter 'body' when calling editAnswer");
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
let pathParams = {
|
|
109
|
+
|
|
110
|
+
};
|
|
111
|
+
let queryParams = {
|
|
112
|
+
|
|
113
|
+
};
|
|
114
|
+
let headerParams = {
|
|
115
|
+
|
|
116
|
+
};
|
|
117
|
+
let formParams = {
|
|
118
|
+
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
let authNames = ['apiKey'];
|
|
122
|
+
let contentTypes = ['application/json'];
|
|
123
|
+
let accepts = [];
|
|
124
|
+
let returnType = null;
|
|
125
|
+
|
|
126
|
+
return this.apiClient.callApi(
|
|
127
|
+
'/editAnswer', 'POST',
|
|
128
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
129
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Callback function to receive the result of the findAnswerId operation.
|
|
134
|
+
* @callback moduleapi/AnswersApi~findAnswerIdCallback
|
|
135
|
+
* @param {String} error Error message, if any.
|
|
136
|
+
* @param data This operation does not return a value.
|
|
137
|
+
* @param {String} response The complete HTTP response.
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Find AnswerId
|
|
142
|
+
* Find AnswerId
|
|
143
|
+
* @param {module:model/FindAnswerIdBody} body The request object.
|
|
144
|
+
* @param {module:api/AnswersApi~findAnswerIdCallback} callback The callback function, accepting three arguments: error, data, response
|
|
145
|
+
*/
|
|
146
|
+
findAnswerId(body, callback) {
|
|
147
|
+
|
|
148
|
+
let postBody = body;
|
|
149
|
+
// verify the required parameter 'body' is set
|
|
150
|
+
if (body === undefined || body === null) {
|
|
151
|
+
throw new Error("Missing the required parameter 'body' when calling findAnswerId");
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
let pathParams = {
|
|
155
|
+
|
|
156
|
+
};
|
|
157
|
+
let queryParams = {
|
|
158
|
+
|
|
159
|
+
};
|
|
160
|
+
let headerParams = {
|
|
161
|
+
|
|
162
|
+
};
|
|
163
|
+
let formParams = {
|
|
164
|
+
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
let authNames = ['apiKey'];
|
|
168
|
+
let contentTypes = ['application/json'];
|
|
169
|
+
let accepts = [];
|
|
170
|
+
let returnType = null;
|
|
171
|
+
|
|
172
|
+
return this.apiClient.callApi(
|
|
173
|
+
'/findAnswerId', 'POST',
|
|
174
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
175
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* NeuralSeek UI
|
|
3
|
+
* NeuralSeek - The business LLM accelerator
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
* Contact: support@NeuralSeek.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
*
|
|
11
|
+
* Swagger Codegen version: 3.0.78
|
|
12
|
+
*
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
import ApiClient from "../ApiClient";
|
|
17
|
+
import CategoryBody from '../model/CategoryBody';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Categories service.
|
|
21
|
+
* @module api/CategoriesApi
|
|
22
|
+
* @version 1.0.0
|
|
23
|
+
*/
|
|
24
|
+
export default class CategoriesApi {
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Constructs a new CategoriesApi.
|
|
28
|
+
* @alias module:api/CategoriesApi
|
|
29
|
+
* @class
|
|
30
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
31
|
+
* default to {@link module:ApiClient#instanc
|
|
32
|
+
e} if unspecified.
|
|
33
|
+
*/
|
|
34
|
+
constructor(apiClient) {
|
|
35
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Callback function to receive the result of the category operation.
|
|
40
|
+
* @callback moduleapi/CategoriesApi~categoryCallback
|
|
41
|
+
* @param {String} error Error message, if any.
|
|
42
|
+
* @param data This operation does not return a value.
|
|
43
|
+
* @param {String} response The complete HTTP response.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Update a Category
|
|
48
|
+
* Update a Category
|
|
49
|
+
* @param {module:model/CategoryBody} body The request object.
|
|
50
|
+
* @param {module:api/CategoriesApi~categoryCallback} callback The callback function, accepting three arguments: error, data, response
|
|
51
|
+
*/
|
|
52
|
+
category(body, callback) {
|
|
53
|
+
|
|
54
|
+
let postBody = body;
|
|
55
|
+
// verify the required parameter 'body' is set
|
|
56
|
+
if (body === undefined || body === null) {
|
|
57
|
+
throw new Error("Missing the required parameter 'body' when calling category");
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
let pathParams = {
|
|
61
|
+
|
|
62
|
+
};
|
|
63
|
+
let queryParams = {
|
|
64
|
+
|
|
65
|
+
};
|
|
66
|
+
let headerParams = {
|
|
67
|
+
|
|
68
|
+
};
|
|
69
|
+
let formParams = {
|
|
70
|
+
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
let authNames = ['apiKey'];
|
|
74
|
+
let contentTypes = ['application/json'];
|
|
75
|
+
let accepts = [];
|
|
76
|
+
let returnType = null;
|
|
77
|
+
|
|
78
|
+
return this.apiClient.callApi(
|
|
79
|
+
'/category', 'POST',
|
|
80
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
81
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* NeuralSeek UI
|
|
3
|
+
* NeuralSeek - The business LLM accelerator
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
* Contact: support@NeuralSeek.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
*
|
|
11
|
+
* Swagger Codegen version: 3.0.78
|
|
12
|
+
*
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
import ApiClient from "../ApiClient";
|
|
17
|
+
import CurateBody from '../model/CurateBody';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* CuratedData service.
|
|
21
|
+
* @module api/CuratedDataApi
|
|
22
|
+
* @version 1.0.0
|
|
23
|
+
*/
|
|
24
|
+
export default class CuratedDataApi {
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Constructs a new CuratedDataApi.
|
|
28
|
+
* @alias module:api/CuratedDataApi
|
|
29
|
+
* @class
|
|
30
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
31
|
+
* default to {@link module:ApiClient#instanc
|
|
32
|
+
e} if unspecified.
|
|
33
|
+
*/
|
|
34
|
+
constructor(apiClient) {
|
|
35
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Callback function to receive the result of the getCuratedData operation.
|
|
40
|
+
* @callback moduleapi/CuratedDataApi~getCuratedDataCallback
|
|
41
|
+
* @param {String} error Error message, if any.
|
|
42
|
+
* @param data This operation does not return a value.
|
|
43
|
+
* @param {String} response The complete HTTP response.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Get Curated Data
|
|
48
|
+
* Get curated data with pagination/search/filter support
|
|
49
|
+
* @param {Object} opts Optional parameters
|
|
50
|
+
* @param {module:model/CurateBody} opts.body
|
|
51
|
+
* @param {module:api/CuratedDataApi~getCuratedDataCallback} callback The callback function, accepting three arguments: error, data, response
|
|
52
|
+
*/
|
|
53
|
+
getCuratedData(opts, callback) {
|
|
54
|
+
opts = opts || {};
|
|
55
|
+
let postBody = opts['body'];
|
|
56
|
+
|
|
57
|
+
let pathParams = {
|
|
58
|
+
|
|
59
|
+
};
|
|
60
|
+
let queryParams = {
|
|
61
|
+
|
|
62
|
+
};
|
|
63
|
+
let headerParams = {
|
|
64
|
+
|
|
65
|
+
};
|
|
66
|
+
let formParams = {
|
|
67
|
+
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
let authNames = ['apiKey'];
|
|
71
|
+
let contentTypes = ['application/json'];
|
|
72
|
+
let accepts = [];
|
|
73
|
+
let returnType = null;
|
|
74
|
+
|
|
75
|
+
return this.apiClient.callApi(
|
|
76
|
+
'/curate', 'POST',
|
|
77
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
78
|
+
authNames, contentTypes, accepts, returnType, callback
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
}
|