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.
Files changed (103) hide show
  1. package/README.md +163 -0
  2. package/docs/AddIntentBody.md +10 -0
  3. package/docs/AnswersApi.md +160 -0
  4. package/docs/CategoriesApi.md +58 -0
  5. package/docs/CategoryBody.md +8 -0
  6. package/docs/CurateBody.md +9 -0
  7. package/docs/CuratedDataApi.md +59 -0
  8. package/docs/DelAnswerBody.md +6 -0
  9. package/docs/DelQuestionBody.md +7 -0
  10. package/docs/DelUserDataBody.md +7 -0
  11. package/docs/EditAnswerBody.md +7 -0
  12. package/docs/ExploreFilesBody.md +6 -0
  13. package/docs/ExploreUploadBody.md +6 -0
  14. package/docs/FdelBody.md +7 -0
  15. package/docs/FindAnswerIdBody.md +6 -0
  16. package/docs/FlagBody.md +7 -0
  17. package/docs/GodocumentBody.md +9 -0
  18. package/docs/GomaistroBody.md +7 -0
  19. package/docs/GomaistrotokensBody.md +7 -0
  20. package/docs/GooverBody.md +9 -0
  21. package/docs/GoperfBody.md +7 -0
  22. package/docs/GosemanticBody.md +9 -0
  23. package/docs/GotokensBody.md +7 -0
  24. package/docs/GovernanceApi.md +410 -0
  25. package/docs/IntentsApi.md +364 -0
  26. package/docs/LoadUserResponseBody.md +7 -0
  27. package/docs/MAIstroApi.md +265 -0
  28. package/docs/MaistroFilesBody.md +8 -0
  29. package/docs/MaistroOCRBody.md +6 -0
  30. package/docs/MergeBody.md +7 -0
  31. package/docs/QuestionsApi.md +58 -0
  32. package/docs/RenBody.md +7 -0
  33. package/docs/UnmergeBody.md +6 -0
  34. package/git_push.sh +52 -0
  35. package/mocha.opts +1 -0
  36. package/package.json +55 -0
  37. package/src/ApiClient.js +585 -0
  38. package/src/api/AnswersApi.js +179 -0
  39. package/src/api/CategoriesApi.js +85 -0
  40. package/src/api/CuratedDataApi.js +82 -0
  41. package/src/api/GovernanceApi.js +408 -0
  42. package/src/api/IntentsApi.js +367 -0
  43. package/src/api/MAIstroApi.js +262 -0
  44. package/src/api/QuestionsApi.js +85 -0
  45. package/src/index.js +279 -0
  46. package/src/model/AddIntentBody.js +91 -0
  47. package/src/model/CategoryBody.js +71 -0
  48. package/src/model/CurateBody.js +75 -0
  49. package/src/model/DelAnswerBody.js +55 -0
  50. package/src/model/DelQuestionBody.js +64 -0
  51. package/src/model/DelUserDataBody.js +62 -0
  52. package/src/model/EditAnswerBody.js +64 -0
  53. package/src/model/ExploreFilesBody.js +55 -0
  54. package/src/model/ExploreUploadBody.js +53 -0
  55. package/src/model/FdelBody.js +62 -0
  56. package/src/model/FindAnswerIdBody.js +55 -0
  57. package/src/model/FlagBody.js +61 -0
  58. package/src/model/GodocumentBody.js +76 -0
  59. package/src/model/GomaistroBody.js +62 -0
  60. package/src/model/GomaistrotokensBody.js +62 -0
  61. package/src/model/GooverBody.js +76 -0
  62. package/src/model/GoperfBody.js +62 -0
  63. package/src/model/GosemanticBody.js +76 -0
  64. package/src/model/GotokensBody.js +62 -0
  65. package/src/model/LoadUserResponseBody.js +64 -0
  66. package/src/model/MaistroFilesBody.js +69 -0
  67. package/src/model/MaistroOCRBody.js +53 -0
  68. package/src/model/MergeBody.js +64 -0
  69. package/src/model/RenBody.js +62 -0
  70. package/src/model/UnmergeBody.js +53 -0
  71. package/test/api/AnswersApi.spec.js +95 -0
  72. package/test/api/CategoriesApi.spec.js +59 -0
  73. package/test/api/CuratedDataApi.spec.js +60 -0
  74. package/test/api/GovernanceApi.spec.js +185 -0
  75. package/test/api/IntentsApi.spec.js +167 -0
  76. package/test/api/MAIstroApi.spec.js +134 -0
  77. package/test/api/QuestionsApi.spec.js +59 -0
  78. package/test/assert-equals.js +81 -0
  79. package/test/model/AddIntentBody.spec.js +76 -0
  80. package/test/model/CategoryBody.spec.js +64 -0
  81. package/test/model/CurateBody.spec.js +70 -0
  82. package/test/model/DelAnswerBody.spec.js +52 -0
  83. package/test/model/DelQuestionBody.spec.js +58 -0
  84. package/test/model/DelUserDataBody.spec.js +58 -0
  85. package/test/model/EditAnswerBody.spec.js +58 -0
  86. package/test/model/ExploreFilesBody.spec.js +52 -0
  87. package/test/model/ExploreUploadBody.spec.js +52 -0
  88. package/test/model/FdelBody.spec.js +58 -0
  89. package/test/model/FindAnswerIdBody.spec.js +52 -0
  90. package/test/model/FlagBody.spec.js +58 -0
  91. package/test/model/GodocumentBody.spec.js +70 -0
  92. package/test/model/GomaistroBody.spec.js +58 -0
  93. package/test/model/GomaistrotokensBody.spec.js +58 -0
  94. package/test/model/GooverBody.spec.js +70 -0
  95. package/test/model/GoperfBody.spec.js +58 -0
  96. package/test/model/GosemanticBody.spec.js +70 -0
  97. package/test/model/GotokensBody.spec.js +58 -0
  98. package/test/model/LoadUserResponseBody.spec.js +58 -0
  99. package/test/model/MaistroFilesBody.spec.js +64 -0
  100. package/test/model/MaistroOCRBody.spec.js +52 -0
  101. package/test/model/MergeBody.spec.js +58 -0
  102. package/test/model/RenBody.spec.js +58 -0
  103. package/test/model/UnmergeBody.spec.js +52 -0
@@ -0,0 +1,367 @@
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 AddIntentBody from '../model/AddIntentBody';
18
+ import DelUserDataBody from '../model/DelUserDataBody';
19
+ import FlagBody from '../model/FlagBody';
20
+ import LoadUserResponseBody from '../model/LoadUserResponseBody';
21
+ import MergeBody from '../model/MergeBody';
22
+ import RenBody from '../model/RenBody';
23
+ import UnmergeBody from '../model/UnmergeBody';
24
+
25
+ /**
26
+ * Intents service.
27
+ * @module api/IntentsApi
28
+ * @version 1.0.0
29
+ */
30
+ export default class IntentsApi {
31
+
32
+ /**
33
+ * Constructs a new IntentsApi.
34
+ * @alias module:api/IntentsApi
35
+ * @class
36
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
37
+ * default to {@link module:ApiClient#instanc
38
+ e} if unspecified.
39
+ */
40
+ constructor(apiClient) {
41
+ this.apiClient = apiClient || ApiClient.instance;
42
+ }
43
+
44
+ /**
45
+ * Callback function to receive the result of the add operation.
46
+ * @callback moduleapi/IntentsApi~addCallback
47
+ * @param {String} error Error message, if any.
48
+ * @param data This operation does not return a value.
49
+ * @param {String} response The complete HTTP response.
50
+ */
51
+
52
+ /**
53
+ * Add an Intent
54
+ * Add an Intent
55
+ * @param {module:model/AddIntentBody} body The request object.
56
+ * @param {module:api/IntentsApi~addCallback} callback The callback function, accepting three arguments: error, data, response
57
+ */
58
+ add(body, callback) {
59
+
60
+ let postBody = body;
61
+ // verify the required parameter 'body' is set
62
+ if (body === undefined || body === null) {
63
+ throw new Error("Missing the required parameter 'body' when calling add");
64
+ }
65
+
66
+ let pathParams = {
67
+
68
+ };
69
+ let queryParams = {
70
+
71
+ };
72
+ let headerParams = {
73
+
74
+ };
75
+ let formParams = {
76
+
77
+ };
78
+
79
+ let authNames = ['apiKey'];
80
+ let contentTypes = ['application/json'];
81
+ let accepts = [];
82
+ let returnType = null;
83
+
84
+ return this.apiClient.callApi(
85
+ '/addIntent', 'POST',
86
+ pathParams, queryParams, headerParams, formParams, postBody,
87
+ authNames, contentTypes, accepts, returnType, callback
88
+ );
89
+ }
90
+ /**
91
+ * Callback function to receive the result of the callDelete operation.
92
+ * @callback moduleapi/IntentsApi~callDeleteCallback
93
+ * @param {String} error Error message, if any.
94
+ * @param data This operation does not return a value.
95
+ * @param {String} response The complete HTTP response.
96
+ */
97
+
98
+ /**
99
+ * Delete Intents / Data
100
+ * Delete intents or broader datasets
101
+ * @param {module:model/DelUserDataBody} body The request object.
102
+ * @param {module:api/IntentsApi~callDeleteCallback} callback The callback function, accepting three arguments: error, data, response
103
+ */
104
+ callDelete(body, callback) {
105
+
106
+ let postBody = body;
107
+ // verify the required parameter 'body' is set
108
+ if (body === undefined || body === null) {
109
+ throw new Error("Missing the required parameter 'body' when calling callDelete");
110
+ }
111
+
112
+ let pathParams = {
113
+
114
+ };
115
+ let queryParams = {
116
+
117
+ };
118
+ let headerParams = {
119
+
120
+ };
121
+ let formParams = {
122
+
123
+ };
124
+
125
+ let authNames = ['apiKey'];
126
+ let contentTypes = ['application/json'];
127
+ let accepts = [];
128
+ let returnType = null;
129
+
130
+ return this.apiClient.callApi(
131
+ '/delUserData', 'POST',
132
+ pathParams, queryParams, headerParams, formParams, postBody,
133
+ authNames, contentTypes, accepts, returnType, callback
134
+ );
135
+ }
136
+ /**
137
+ * Callback function to receive the result of the examples operation.
138
+ * @callback moduleapi/IntentsApi~examplesCallback
139
+ * @param {String} error Error message, if any.
140
+ * @param data This operation does not return a value.
141
+ * @param {String} response The complete HTTP response.
142
+ */
143
+
144
+ /**
145
+ * Add Intent Examples
146
+ * Add Intent Examples
147
+ * @param {module:model/LoadUserResponseBody} body The request object.
148
+ * @param {module:api/IntentsApi~examplesCallback} callback The callback function, accepting three arguments: error, data, response
149
+ */
150
+ examples(body, callback) {
151
+
152
+ let postBody = body;
153
+ // verify the required parameter 'body' is set
154
+ if (body === undefined || body === null) {
155
+ throw new Error("Missing the required parameter 'body' when calling examples");
156
+ }
157
+
158
+ let pathParams = {
159
+
160
+ };
161
+ let queryParams = {
162
+
163
+ };
164
+ let headerParams = {
165
+
166
+ };
167
+ let formParams = {
168
+
169
+ };
170
+
171
+ let authNames = ['apiKey'];
172
+ let contentTypes = ['application/json'];
173
+ let accepts = [];
174
+ let returnType = null;
175
+
176
+ return this.apiClient.callApi(
177
+ '/loadUserResponse', 'POST',
178
+ pathParams, queryParams, headerParams, formParams, postBody,
179
+ authNames, contentTypes, accepts, returnType, callback
180
+ );
181
+ }
182
+ /**
183
+ * Callback function to receive the result of the flag operation.
184
+ * @callback moduleapi/IntentsApi~flagCallback
185
+ * @param {String} error Error message, if any.
186
+ * @param data This operation does not return a value.
187
+ * @param {String} response The complete HTTP response.
188
+ */
189
+
190
+ /**
191
+ * Flag an Intent
192
+ * Flag an Intent
193
+ * @param {module:model/FlagBody} body The request object.
194
+ * @param {module:api/IntentsApi~flagCallback} callback The callback function, accepting three arguments: error, data, response
195
+ */
196
+ flag(body, callback) {
197
+
198
+ let postBody = body;
199
+ // verify the required parameter 'body' is set
200
+ if (body === undefined || body === null) {
201
+ throw new Error("Missing the required parameter 'body' when calling flag");
202
+ }
203
+
204
+ let pathParams = {
205
+
206
+ };
207
+ let queryParams = {
208
+
209
+ };
210
+ let headerParams = {
211
+
212
+ };
213
+ let formParams = {
214
+
215
+ };
216
+
217
+ let authNames = ['apiKey'];
218
+ let contentTypes = ['application/json'];
219
+ let accepts = [];
220
+ let returnType = null;
221
+
222
+ return this.apiClient.callApi(
223
+ '/flag', 'POST',
224
+ pathParams, queryParams, headerParams, formParams, postBody,
225
+ authNames, contentTypes, accepts, returnType, callback
226
+ );
227
+ }
228
+ /**
229
+ * Callback function to receive the result of the merge operation.
230
+ * @callback moduleapi/IntentsApi~mergeCallback
231
+ * @param {String} error Error message, if any.
232
+ * @param data This operation does not return a value.
233
+ * @param {String} response The complete HTTP response.
234
+ */
235
+
236
+ /**
237
+ * Merge Intents
238
+ * Merge Intents
239
+ * @param {module:model/MergeBody} body The request object.
240
+ * @param {module:api/IntentsApi~mergeCallback} callback The callback function, accepting three arguments: error, data, response
241
+ */
242
+ merge(body, callback) {
243
+
244
+ let postBody = body;
245
+ // verify the required parameter 'body' is set
246
+ if (body === undefined || body === null) {
247
+ throw new Error("Missing the required parameter 'body' when calling merge");
248
+ }
249
+
250
+ let pathParams = {
251
+
252
+ };
253
+ let queryParams = {
254
+
255
+ };
256
+ let headerParams = {
257
+
258
+ };
259
+ let formParams = {
260
+
261
+ };
262
+
263
+ let authNames = ['apiKey'];
264
+ let contentTypes = ['application/json'];
265
+ let accepts = [];
266
+ let returnType = null;
267
+
268
+ return this.apiClient.callApi(
269
+ '/merge', 'POST',
270
+ pathParams, queryParams, headerParams, formParams, postBody,
271
+ authNames, contentTypes, accepts, returnType, callback
272
+ );
273
+ }
274
+ /**
275
+ * Callback function to receive the result of the rename operation.
276
+ * @callback moduleapi/IntentsApi~renameCallback
277
+ * @param {String} error Error message, if any.
278
+ * @param data This operation does not return a value.
279
+ * @param {String} response The complete HTTP response.
280
+ */
281
+
282
+ /**
283
+ * Rename an Intent
284
+ * Rename an Intent
285
+ * @param {module:model/RenBody} body The request object.
286
+ * @param {module:api/IntentsApi~renameCallback} callback The callback function, accepting three arguments: error, data, response
287
+ */
288
+ rename(body, callback) {
289
+
290
+ let postBody = body;
291
+ // verify the required parameter 'body' is set
292
+ if (body === undefined || body === null) {
293
+ throw new Error("Missing the required parameter 'body' when calling rename");
294
+ }
295
+
296
+ let pathParams = {
297
+
298
+ };
299
+ let queryParams = {
300
+
301
+ };
302
+ let headerParams = {
303
+
304
+ };
305
+ let formParams = {
306
+
307
+ };
308
+
309
+ let authNames = ['apiKey'];
310
+ let contentTypes = ['application/json'];
311
+ let accepts = [];
312
+ let returnType = null;
313
+
314
+ return this.apiClient.callApi(
315
+ '/ren', 'POST',
316
+ pathParams, queryParams, headerParams, formParams, postBody,
317
+ authNames, contentTypes, accepts, returnType, callback
318
+ );
319
+ }
320
+ /**
321
+ * Callback function to receive the result of the unMerge operation.
322
+ * @callback moduleapi/IntentsApi~unMergeCallback
323
+ * @param {String} error Error message, if any.
324
+ * @param data This operation does not return a value.
325
+ * @param {String} response The complete HTTP response.
326
+ */
327
+
328
+ /**
329
+ * UnMerge Intents
330
+ * UnMerge Intents
331
+ * @param {module:model/UnmergeBody} body The request object.
332
+ * @param {module:api/IntentsApi~unMergeCallback} callback The callback function, accepting three arguments: error, data, response
333
+ */
334
+ unMerge(body, callback) {
335
+
336
+ let postBody = body;
337
+ // verify the required parameter 'body' is set
338
+ if (body === undefined || body === null) {
339
+ throw new Error("Missing the required parameter 'body' when calling unMerge");
340
+ }
341
+
342
+ let pathParams = {
343
+
344
+ };
345
+ let queryParams = {
346
+
347
+ };
348
+ let headerParams = {
349
+
350
+ };
351
+ let formParams = {
352
+
353
+ };
354
+
355
+ let authNames = ['apiKey'];
356
+ let contentTypes = ['application/json'];
357
+ let accepts = [];
358
+ let returnType = null;
359
+
360
+ return this.apiClient.callApi(
361
+ '/unmerge', 'POST',
362
+ pathParams, queryParams, headerParams, formParams, postBody,
363
+ authNames, contentTypes, accepts, returnType, callback
364
+ );
365
+ }
366
+
367
+ }
@@ -0,0 +1,262 @@
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 ExploreFilesBody from '../model/ExploreFilesBody';
18
+ import FdelBody from '../model/FdelBody';
19
+ import MaistroFilesBody from '../model/MaistroFilesBody';
20
+
21
+ /**
22
+ * MAIstro service.
23
+ * @module api/MAIstroApi
24
+ * @version 1.0.0
25
+ */
26
+ export default class MAIstroApi {
27
+
28
+ /**
29
+ * Constructs a new MAIstroApi.
30
+ * @alias module:api/MAIstroApi
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 exploreFiles operation.
42
+ * @callback moduleapi/MAIstroApi~exploreFilesCallback
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
+ * List Maistro Files
50
+ * List Maistro Files
51
+ * @param {Object} opts Optional parameters
52
+ * @param {module:model/ExploreFilesBody} opts.body
53
+ * @param {module:api/MAIstroApi~exploreFilesCallback} callback The callback function, accepting three arguments: error, data, response
54
+ */
55
+ exploreFiles(opts, callback) {
56
+ opts = opts || {};
57
+ let postBody = opts['body'];
58
+
59
+ let pathParams = {
60
+
61
+ };
62
+ let queryParams = {
63
+
64
+ };
65
+ let headerParams = {
66
+
67
+ };
68
+ let formParams = {
69
+
70
+ };
71
+
72
+ let authNames = ['apiKey'];
73
+ let contentTypes = ['application/json'];
74
+ let accepts = [];
75
+ let returnType = null;
76
+
77
+ return this.apiClient.callApi(
78
+ '/exploreFiles', 'POST',
79
+ pathParams, queryParams, headerParams, formParams, postBody,
80
+ authNames, contentTypes, accepts, returnType, callback
81
+ );
82
+ }
83
+ /**
84
+ * Callback function to receive the result of the exploreUpload operation.
85
+ * @callback moduleapi/MAIstroApi~exploreUploadCallback
86
+ * @param {String} error Error message, if any.
87
+ * @param data This operation does not return a value.
88
+ * @param {String} response The complete HTTP response.
89
+ */
90
+
91
+ /**
92
+ * Upload a file to mAIstro
93
+ * Upload a file to mAIstro.
94
+ * @param {Object} opts Optional parameters
95
+ * @param {Blob} opts.file
96
+ * @param {module:api/MAIstroApi~exploreUploadCallback} callback The callback function, accepting three arguments: error, data, response
97
+ */
98
+ exploreUpload(opts, callback) {
99
+ opts = opts || {};
100
+ let postBody = null;
101
+
102
+ let pathParams = {
103
+
104
+ };
105
+ let queryParams = {
106
+
107
+ };
108
+ let headerParams = {
109
+
110
+ };
111
+ let formParams = {
112
+ 'file': opts['file']
113
+ };
114
+
115
+ let authNames = ['apiKey'];
116
+ let contentTypes = ['multipart/form-data'];
117
+ let accepts = [];
118
+ let returnType = null;
119
+
120
+ return this.apiClient.callApi(
121
+ '/exploreUpload', 'POST',
122
+ pathParams, queryParams, headerParams, formParams, postBody,
123
+ authNames, contentTypes, accepts, returnType, callback
124
+ );
125
+ }
126
+ /**
127
+ * Callback function to receive the result of the fdel operation.
128
+ * @callback moduleapi/MAIstroApi~fdelCallback
129
+ * @param {String} error Error message, if any.
130
+ * @param data This operation does not return a value.
131
+ * @param {String} response The complete HTTP response.
132
+ */
133
+
134
+ /**
135
+ * Delete Maistro File(s)
136
+ * Delete one or more Maistro files
137
+ * @param {module:model/FdelBody} body The request object.
138
+ * @param {module:api/MAIstroApi~fdelCallback} callback The callback function, accepting three arguments: error, data, response
139
+ */
140
+ fdel(body, callback) {
141
+
142
+ let postBody = body;
143
+ // verify the required parameter 'body' is set
144
+ if (body === undefined || body === null) {
145
+ throw new Error("Missing the required parameter 'body' when calling fdel");
146
+ }
147
+
148
+ let pathParams = {
149
+
150
+ };
151
+ let queryParams = {
152
+
153
+ };
154
+ let headerParams = {
155
+
156
+ };
157
+ let formParams = {
158
+
159
+ };
160
+
161
+ let authNames = ['apiKey'];
162
+ let contentTypes = ['application/json'];
163
+ let accepts = [];
164
+ let returnType = null;
165
+
166
+ return this.apiClient.callApi(
167
+ '/fdel', 'POST',
168
+ pathParams, queryParams, headerParams, formParams, postBody,
169
+ authNames, contentTypes, accepts, returnType, callback
170
+ );
171
+ }
172
+ /**
173
+ * Callback function to receive the result of the maistroFiles operation.
174
+ * @callback moduleapi/MAIstroApi~maistroFilesCallback
175
+ * @param {String} error Error message, if any.
176
+ * @param data This operation does not return a value.
177
+ * @param {String} response The complete HTTP response.
178
+ */
179
+
180
+ /**
181
+ * List Maistro Files (paginated)
182
+ * Paginated and searchable list of mAIstro files
183
+ * @param {Object} opts Optional parameters
184
+ * @param {module:model/MaistroFilesBody} opts.body
185
+ * @param {module:api/MAIstroApi~maistroFilesCallback} callback The callback function, accepting three arguments: error, data, response
186
+ */
187
+ maistroFiles(opts, callback) {
188
+ opts = opts || {};
189
+ let postBody = opts['body'];
190
+
191
+ let pathParams = {
192
+
193
+ };
194
+ let queryParams = {
195
+
196
+ };
197
+ let headerParams = {
198
+
199
+ };
200
+ let formParams = {
201
+
202
+ };
203
+
204
+ let authNames = ['apiKey'];
205
+ let contentTypes = ['application/json'];
206
+ let accepts = [];
207
+ let returnType = null;
208
+
209
+ return this.apiClient.callApi(
210
+ '/maistroFiles', 'POST',
211
+ pathParams, queryParams, headerParams, formParams, postBody,
212
+ authNames, contentTypes, accepts, returnType, callback
213
+ );
214
+ }
215
+ /**
216
+ * Callback function to receive the result of the maistroOCR operation.
217
+ * @callback moduleapi/MAIstroApi~maistroOCRCallback
218
+ * @param {String} error Error message, if any.
219
+ * @param data This operation does not return a value.
220
+ * @param {String} response The complete HTTP response.
221
+ */
222
+
223
+ /**
224
+ * OCR upload to mAIstro
225
+ * Upload a file and extract OCR text for mAIstro
226
+ * @param {Blob} file
227
+ * @param {module:api/MAIstroApi~maistroOCRCallback} callback The callback function, accepting three arguments: error, data, response
228
+ */
229
+ maistroOCR(file, callback) {
230
+
231
+ let postBody = null;
232
+ // verify the required parameter 'file' is set
233
+ if (file === undefined || file === null) {
234
+ throw new Error("Missing the required parameter 'file' when calling maistroOCR");
235
+ }
236
+
237
+ let pathParams = {
238
+
239
+ };
240
+ let queryParams = {
241
+
242
+ };
243
+ let headerParams = {
244
+
245
+ };
246
+ let formParams = {
247
+ 'file': file
248
+ };
249
+
250
+ let authNames = ['apiKey'];
251
+ let contentTypes = ['multipart/form-data'];
252
+ let accepts = [];
253
+ let returnType = null;
254
+
255
+ return this.apiClient.callApi(
256
+ '/maistroOCR', 'POST',
257
+ pathParams, queryParams, headerParams, formParams, postBody,
258
+ authNames, contentTypes, accepts, returnType, callback
259
+ );
260
+ }
261
+
262
+ }
@@ -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 DelQuestionBody from '../model/DelQuestionBody';
18
+
19
+ /**
20
+ * Questions service.
21
+ * @module api/QuestionsApi
22
+ * @version 1.0.0
23
+ */
24
+ export default class QuestionsApi {
25
+
26
+ /**
27
+ * Constructs a new QuestionsApi.
28
+ * @alias module:api/QuestionsApi
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 deleteQuestion operation.
40
+ * @callback moduleapi/QuestionsApi~deleteQuestionCallback
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
+ * Delete Question
48
+ * Delete Question
49
+ * @param {module:model/DelQuestionBody} body The request object.
50
+ * @param {module:api/QuestionsApi~deleteQuestionCallback} callback The callback function, accepting three arguments: error, data, response
51
+ */
52
+ deleteQuestion(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 deleteQuestion");
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
+ '/delQuestion', 'POST',
80
+ pathParams, queryParams, headerParams, formParams, postBody,
81
+ authNames, contentTypes, accepts, returnType, callback
82
+ );
83
+ }
84
+
85
+ }