neuralseek 1.0.1

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 (236) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +206 -0
  3. package/docs/AnalyticsApi.md +59 -0
  4. package/docs/AnalyticsBody.md +6 -0
  5. package/docs/AnswerRatingsBody.md +7 -0
  6. package/docs/CategorizeApi.md +58 -0
  7. package/docs/CategorizeBody.md +6 -0
  8. package/docs/ChatCompletionsBody.md +9 -0
  9. package/docs/ChatcompletionsMessages.md +16 -0
  10. package/docs/ChatcompletionsTools.md +13 -0
  11. package/docs/ExtractBody.md +11 -0
  12. package/docs/ExtractEntitiesApi.md +58 -0
  13. package/docs/GuardrailsApi.md +109 -0
  14. package/docs/IdentifysingleBody.md +6 -0
  15. package/docs/InlineResponse200.md +6 -0
  16. package/docs/InlineResponse2001.md +8 -0
  17. package/docs/InlineResponse20010.md +6 -0
  18. package/docs/InlineResponse20011.md +9 -0
  19. package/docs/InlineResponse20012.md +7 -0
  20. package/docs/InlineResponse20013.md +6 -0
  21. package/docs/InlineResponse2002.md +10 -0
  22. package/docs/InlineResponse2002Render.md +9 -0
  23. package/docs/InlineResponse2003.md +6 -0
  24. package/docs/InlineResponse2003Data.md +10 -0
  25. package/docs/InlineResponse2004.md +10 -0
  26. package/docs/InlineResponse2004Choices.md +8 -0
  27. package/docs/InlineResponse2004Message.md +14 -0
  28. package/docs/InlineResponse2005.md +9 -0
  29. package/docs/InlineResponse2005TopIntents.md +7 -0
  30. package/docs/InlineResponse2006.md +9 -0
  31. package/docs/InlineResponse2006ExtractedEntities.md +6 -0
  32. package/docs/InlineResponse2007.md +12 -0
  33. package/docs/InlineResponse2007Translations.md +6 -0
  34. package/docs/InlineResponse2008.md +7 -0
  35. package/docs/InlineResponse2009.md +7 -0
  36. package/docs/KeysApi.md +99 -0
  37. package/docs/LogExternalAgentBody.md +11 -0
  38. package/docs/LogExternalAgentEntries.md +34 -0
  39. package/docs/LogsApi.md +110 -0
  40. package/docs/LogsBody.md +8 -0
  41. package/docs/MAIstroAgentRatingsApi.md +109 -0
  42. package/docs/MAIstroApi.md +367 -0
  43. package/docs/MaistroBatchBody.md +9 -0
  44. package/docs/MaistroBody.md +9 -0
  45. package/docs/MaistroOptions.md +20 -0
  46. package/docs/MaistroRateBody.md +9 -0
  47. package/docs/MaistroRatingsBody.md +7 -0
  48. package/docs/MaistroStreamBody.md +9 -0
  49. package/docs/MaistroStreamOptions.md +19 -0
  50. package/docs/PiiBody.md +6 -0
  51. package/docs/RateBody.md +8 -0
  52. package/docs/ScoreBody.md +7 -0
  53. package/docs/Seek.md +9 -0
  54. package/docs/SeekAnswerRatingsApi.md +109 -0
  55. package/docs/SeekApi.md +109 -0
  56. package/docs/SeekOptions.md +24 -0
  57. package/docs/SeekResponse.md +32 -0
  58. package/docs/SeekResponsePassages.md +11 -0
  59. package/docs/SeekResponseVariablesExpanded.md +7 -0
  60. package/docs/SeekStreamBody.md +9 -0
  61. package/docs/SeekStreamOptions.md +23 -0
  62. package/docs/SeekStreamOptionsLastTurn.md +7 -0
  63. package/docs/SeekStreamOptionsPersonalize.md +10 -0
  64. package/docs/SeekStreamParams.md +7 -0
  65. package/docs/SeekStreamUserSession.md +7 -0
  66. package/docs/SeekStreamUserSessionMetadata.md +6 -0
  67. package/docs/SeekStreamUserSessionSystem.md +6 -0
  68. package/docs/ServiceTestApi.md +46 -0
  69. package/docs/TestBody.md +6 -0
  70. package/docs/TestBody1.md +6 -0
  71. package/docs/TestQuestionsApi.md +107 -0
  72. package/docs/TrainBody.md +7 -0
  73. package/docs/TrainKBApi.md +58 -0
  74. package/docs/TranslateApi.md +259 -0
  75. package/docs/TranslateBody.md +11 -0
  76. package/docs/TranslateGlossaryBody.md +6 -0
  77. package/docs/TranslateGlossaryBody1.md +6 -0
  78. package/docs/UserDataApi.md +59 -0
  79. package/git_push.sh +52 -0
  80. package/mocha.opts +1 -0
  81. package/package.json +55 -0
  82. package/src/AnalyticsApi.js +82 -0
  83. package/src/ApiClient.js +585 -0
  84. package/src/CategorizeApi.js +87 -0
  85. package/src/ExtractEntitiesApi.js +87 -0
  86. package/src/GuardrailsApi.js +134 -0
  87. package/src/KeysApi.js +122 -0
  88. package/src/LogsApi.js +133 -0
  89. package/src/MAIstroAgentRatingsApi.js +134 -0
  90. package/src/MAIstroApi.js +366 -0
  91. package/src/SeekAnswerRatingsApi.js +134 -0
  92. package/src/SeekApi.js +136 -0
  93. package/src/ServiceTestApi.js +79 -0
  94. package/src/TestQuestionsApi.js +124 -0
  95. package/src/TrainKBApi.js +85 -0
  96. package/src/TranslateApi.js +277 -0
  97. package/src/UserDataApi.js +81 -0
  98. package/src/index.js +587 -0
  99. package/src/model/AnalyticsBody.js +54 -0
  100. package/src/model/AnswerRatingsBody.js +62 -0
  101. package/src/model/CategorizeBody.js +55 -0
  102. package/src/model/ChatCompletionsBody.js +80 -0
  103. package/src/model/ChatcompletionsMessages.js +92 -0
  104. package/src/model/ChatcompletionsTools.js +75 -0
  105. package/src/model/ExtractBody.js +94 -0
  106. package/src/model/IdentifysingleBody.js +55 -0
  107. package/src/model/InlineResponse200.js +56 -0
  108. package/src/model/InlineResponse2001.js +70 -0
  109. package/src/model/InlineResponse20010.js +54 -0
  110. package/src/model/InlineResponse20011.js +81 -0
  111. package/src/model/InlineResponse20012.js +60 -0
  112. package/src/model/InlineResponse20013.js +55 -0
  113. package/src/model/InlineResponse2002.js +88 -0
  114. package/src/model/InlineResponse2002Render.js +80 -0
  115. package/src/model/InlineResponse2003.js +56 -0
  116. package/src/model/InlineResponse2003Data.js +88 -0
  117. package/src/model/InlineResponse2004.js +86 -0
  118. package/src/model/InlineResponse2004Choices.js +70 -0
  119. package/src/model/InlineResponse2004Message.js +80 -0
  120. package/src/model/InlineResponse2005.js +80 -0
  121. package/src/model/InlineResponse2005TopIntents.js +64 -0
  122. package/src/model/InlineResponse2006.js +79 -0
  123. package/src/model/InlineResponse2006ExtractedEntities.js +55 -0
  124. package/src/model/InlineResponse2007.js +103 -0
  125. package/src/model/InlineResponse2007Translations.js +55 -0
  126. package/src/model/InlineResponse2008.js +63 -0
  127. package/src/model/InlineResponse2009.js +63 -0
  128. package/src/model/LogExternalAgentBody.js +104 -0
  129. package/src/model/LogExternalAgentEntries.js +195 -0
  130. package/src/model/LogsBody.js +73 -0
  131. package/src/model/MaistroBatchBody.js +81 -0
  132. package/src/model/MaistroBody.js +81 -0
  133. package/src/model/MaistroOptions.js +176 -0
  134. package/src/model/MaistroRateBody.js +78 -0
  135. package/src/model/MaistroRatingsBody.js +62 -0
  136. package/src/model/MaistroStreamBody.js +81 -0
  137. package/src/model/MaistroStreamOptions.js +167 -0
  138. package/src/model/PiiBody.js +55 -0
  139. package/src/model/RateBody.js +70 -0
  140. package/src/model/ScoreBody.js +63 -0
  141. package/src/model/Seek.js +82 -0
  142. package/src/model/SeekOptions.js +216 -0
  143. package/src/model/SeekResponse.js +281 -0
  144. package/src/model/SeekResponsePassages.js +99 -0
  145. package/src/model/SeekResponseVariablesExpanded.js +64 -0
  146. package/src/model/SeekStreamBody.js +82 -0
  147. package/src/model/SeekStreamOptions.js +207 -0
  148. package/src/model/SeekStreamOptionsLastTurn.js +64 -0
  149. package/src/model/SeekStreamOptionsPersonalize.js +91 -0
  150. package/src/model/SeekStreamParams.js +64 -0
  151. package/src/model/SeekStreamUserSession.js +63 -0
  152. package/src/model/SeekStreamUserSessionMetadata.js +55 -0
  153. package/src/model/SeekStreamUserSessionSystem.js +55 -0
  154. package/src/model/TestBody.js +53 -0
  155. package/src/model/TestBody1.js +55 -0
  156. package/src/model/TrainBody.js +63 -0
  157. package/src/model/TranslateBody.js +99 -0
  158. package/src/model/TranslateGlossaryBody.js +53 -0
  159. package/src/model/TranslateGlossaryBody1.js +54 -0
  160. package/test/api/AnalyticsApi.spec.js +60 -0
  161. package/test/api/CategorizeApi.spec.js +61 -0
  162. package/test/api/ExtractEntitiesApi.spec.js +61 -0
  163. package/test/api/GuardrailsApi.spec.js +85 -0
  164. package/test/api/KeysApi.spec.js +79 -0
  165. package/test/api/LogsApi.spec.js +88 -0
  166. package/test/api/MAIstroAgentRatingsApi.spec.js +79 -0
  167. package/test/api/MAIstroApi.spec.js +180 -0
  168. package/test/api/SeekAnswerRatingsApi.spec.js +79 -0
  169. package/test/api/SeekApi.spec.js +81 -0
  170. package/test/api/ServiceTestApi.spec.js +59 -0
  171. package/test/api/TestQuestionsApi.spec.js +78 -0
  172. package/test/api/TrainKBApi.spec.js +59 -0
  173. package/test/api/TranslateApi.spec.js +143 -0
  174. package/test/api/UserDataApi.spec.js +60 -0
  175. package/test/assert-equals.js +81 -0
  176. package/test/model/AnalyticsBody.spec.js +52 -0
  177. package/test/model/AnswerRatingsBody.spec.js +58 -0
  178. package/test/model/CategorizeBody.spec.js +52 -0
  179. package/test/model/ChatCompletionsBody.spec.js +70 -0
  180. package/test/model/ChatcompletionsMessages.spec.js +58 -0
  181. package/test/model/ChatcompletionsTools.spec.js +58 -0
  182. package/test/model/ExtractBody.spec.js +82 -0
  183. package/test/model/IdentifysingleBody.spec.js +52 -0
  184. package/test/model/InlineResponse200.spec.js +52 -0
  185. package/test/model/InlineResponse2001.spec.js +64 -0
  186. package/test/model/InlineResponse20010.spec.js +52 -0
  187. package/test/model/InlineResponse20011.spec.js +70 -0
  188. package/test/model/InlineResponse20012.spec.js +58 -0
  189. package/test/model/InlineResponse20013.spec.js +52 -0
  190. package/test/model/InlineResponse2002.spec.js +76 -0
  191. package/test/model/InlineResponse2002Render.spec.js +70 -0
  192. package/test/model/InlineResponse2003.spec.js +52 -0
  193. package/test/model/InlineResponse2003Data.spec.js +76 -0
  194. package/test/model/InlineResponse2004.spec.js +76 -0
  195. package/test/model/InlineResponse2004Choices.spec.js +64 -0
  196. package/test/model/InlineResponse2004Message.spec.js +58 -0
  197. package/test/model/InlineResponse2005.spec.js +70 -0
  198. package/test/model/InlineResponse2005TopIntents.spec.js +58 -0
  199. package/test/model/InlineResponse2006.spec.js +70 -0
  200. package/test/model/InlineResponse2006ExtractedEntities.spec.js +52 -0
  201. package/test/model/InlineResponse2007.spec.js +88 -0
  202. package/test/model/InlineResponse2007Translations.spec.js +52 -0
  203. package/test/model/InlineResponse2008.spec.js +58 -0
  204. package/test/model/InlineResponse2009.spec.js +58 -0
  205. package/test/model/LogExternalAgentBody.spec.js +82 -0
  206. package/test/model/LogExternalAgentEntries.spec.js +118 -0
  207. package/test/model/LogsBody.spec.js +64 -0
  208. package/test/model/MaistroBatchBody.spec.js +70 -0
  209. package/test/model/MaistroBody.spec.js +70 -0
  210. package/test/model/MaistroOptions.spec.js +136 -0
  211. package/test/model/MaistroRateBody.spec.js +70 -0
  212. package/test/model/MaistroRatingsBody.spec.js +58 -0
  213. package/test/model/MaistroStreamBody.spec.js +70 -0
  214. package/test/model/MaistroStreamOptions.spec.js +130 -0
  215. package/test/model/PiiBody.spec.js +52 -0
  216. package/test/model/RateBody.spec.js +64 -0
  217. package/test/model/ScoreBody.spec.js +58 -0
  218. package/test/model/Seek.spec.js +70 -0
  219. package/test/model/SeekOptions.spec.js +160 -0
  220. package/test/model/SeekResponse.spec.js +208 -0
  221. package/test/model/SeekResponsePassages.spec.js +82 -0
  222. package/test/model/SeekResponseVariablesExpanded.spec.js +58 -0
  223. package/test/model/SeekStreamBody.spec.js +70 -0
  224. package/test/model/SeekStreamOptions.spec.js +154 -0
  225. package/test/model/SeekStreamOptionsLastTurn.spec.js +58 -0
  226. package/test/model/SeekStreamOptionsPersonalize.spec.js +76 -0
  227. package/test/model/SeekStreamParams.spec.js +58 -0
  228. package/test/model/SeekStreamUserSession.spec.js +58 -0
  229. package/test/model/SeekStreamUserSessionMetadata.spec.js +52 -0
  230. package/test/model/SeekStreamUserSessionSystem.spec.js +52 -0
  231. package/test/model/TestBody.spec.js +52 -0
  232. package/test/model/TestBody1.spec.js +52 -0
  233. package/test/model/TrainBody.spec.js +58 -0
  234. package/test/model/TranslateBody.spec.js +82 -0
  235. package/test/model/TranslateGlossaryBody.spec.js +52 -0
  236. package/test/model/TranslateGlossaryBody1.spec.js +52 -0
@@ -0,0 +1,259 @@
1
+ # NeuralSeek.TranslateApi
2
+
3
+ All URIs are relative to *https://api.neuralseek.com/v1/{instance}*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**deleteTranslateGlossary**](TranslateApi.md#deleteTranslateGlossary) | **DELETE** /translateGlossary | Delete the custom translations
8
+ [**identifyLanguage**](TranslateApi.md#identifyLanguage) | **POST** /identify | Identify the source language
9
+ [**identifyLanguageJSON**](TranslateApi.md#identifyLanguageJSON) | **POST** /identify-single | Identify the source language (JSON)
10
+ [**translate**](TranslateApi.md#translate) | **POST** /translate | Translate text into a desired language
11
+ [**translateGlossary**](TranslateApi.md#translateGlossary) | **POST** /translateGlossary | Add custom translations
12
+
13
+ <a name="deleteTranslateGlossary"></a>
14
+ # **deleteTranslateGlossary**
15
+ > deleteTranslateGlossary()
16
+
17
+ Delete the custom translations
18
+
19
+ Delete the custom translations
20
+
21
+ ### Example
22
+ ```javascript
23
+ import {NeuralSeek} from 'neuralSeek';
24
+ let defaultClient = NeuralSeek.ApiClient.instance;
25
+
26
+ // Configure API key authorization: apiKey
27
+ let apiKey = defaultClient.authentications['apiKey'];
28
+ apiKey.apiKey = 'YOUR API KEY';
29
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
30
+ //apiKey.apiKeyPrefix = 'Token';
31
+
32
+ let apiInstance = new NeuralSeek.TranslateApi();
33
+ apiInstance.deleteTranslateGlossary((error, data, response) => {
34
+ if (error) {
35
+ console.error(error);
36
+ } else {
37
+ console.log('API called successfully.');
38
+ }
39
+ });
40
+ ```
41
+
42
+ ### Parameters
43
+ This endpoint does not need any parameter.
44
+
45
+ ### Return type
46
+
47
+ null (empty response body)
48
+
49
+ ### Authorization
50
+
51
+ [apiKey](../README.md#apiKey)
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: Not defined
56
+ - **Accept**: Not defined
57
+
58
+ <a name="identifyLanguage"></a>
59
+ # **identifyLanguage**
60
+ > [InlineResponse2008] identifyLanguage(body)
61
+
62
+ Identify the source language
63
+
64
+ Identify the source language
65
+
66
+ ### Example
67
+ ```javascript
68
+ import {NeuralSeek} from 'neuralSeek';
69
+ let defaultClient = NeuralSeek.ApiClient.instance;
70
+
71
+ // Configure API key authorization: apiKey
72
+ let apiKey = defaultClient.authentications['apiKey'];
73
+ apiKey.apiKey = 'YOUR API KEY';
74
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
75
+ //apiKey.apiKeyPrefix = 'Token';
76
+
77
+ let apiInstance = new NeuralSeek.TranslateApi();
78
+ let body = "body_example"; // String | The request object.
79
+
80
+ apiInstance.identifyLanguage(body, (error, data, response) => {
81
+ if (error) {
82
+ console.error(error);
83
+ } else {
84
+ console.log('API called successfully. Returned data: ' + data);
85
+ }
86
+ });
87
+ ```
88
+
89
+ ### Parameters
90
+
91
+ Name | Type | Description | Notes
92
+ ------------- | ------------- | ------------- | -------------
93
+ **body** | [**String**](String.md)| The request object. |
94
+
95
+ ### Return type
96
+
97
+ [**[InlineResponse2008]**](InlineResponse2008.md)
98
+
99
+ ### Authorization
100
+
101
+ [apiKey](../README.md#apiKey)
102
+
103
+ ### HTTP request headers
104
+
105
+ - **Content-Type**: text/plain
106
+ - **Accept**: application/json
107
+
108
+ <a name="identifyLanguageJSON"></a>
109
+ # **identifyLanguageJSON**
110
+ > InlineResponse2009 identifyLanguageJSON(body)
111
+
112
+ Identify the source language (JSON)
113
+
114
+ Identify the source language (JSON)
115
+
116
+ ### Example
117
+ ```javascript
118
+ import {NeuralSeek} from 'neuralSeek';
119
+ let defaultClient = NeuralSeek.ApiClient.instance;
120
+
121
+ // Configure API key authorization: apiKey
122
+ let apiKey = defaultClient.authentications['apiKey'];
123
+ apiKey.apiKey = 'YOUR API KEY';
124
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
125
+ //apiKey.apiKeyPrefix = 'Token';
126
+
127
+ let apiInstance = new NeuralSeek.TranslateApi();
128
+ let body = new NeuralSeek.IdentifysingleBody(); // IdentifysingleBody | The request object.
129
+
130
+ apiInstance.identifyLanguageJSON(body, (error, data, response) => {
131
+ if (error) {
132
+ console.error(error);
133
+ } else {
134
+ console.log('API called successfully. Returned data: ' + data);
135
+ }
136
+ });
137
+ ```
138
+
139
+ ### Parameters
140
+
141
+ Name | Type | Description | Notes
142
+ ------------- | ------------- | ------------- | -------------
143
+ **body** | [**IdentifysingleBody**](IdentifysingleBody.md)| The request object. |
144
+
145
+ ### Return type
146
+
147
+ [**InlineResponse2009**](InlineResponse2009.md)
148
+
149
+ ### Authorization
150
+
151
+ [apiKey](../README.md#apiKey)
152
+
153
+ ### HTTP request headers
154
+
155
+ - **Content-Type**: application/json
156
+ - **Accept**: application/json
157
+
158
+ <a name="translate"></a>
159
+ # **translate**
160
+ > InlineResponse2007 translate(body)
161
+
162
+ Translate text into a desired language
163
+
164
+ Translate text into a desired language
165
+
166
+ ### Example
167
+ ```javascript
168
+ import {NeuralSeek} from 'neuralSeek';
169
+ let defaultClient = NeuralSeek.ApiClient.instance;
170
+
171
+ // Configure API key authorization: apiKey
172
+ let apiKey = defaultClient.authentications['apiKey'];
173
+ apiKey.apiKey = 'YOUR API KEY';
174
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
175
+ //apiKey.apiKeyPrefix = 'Token';
176
+
177
+ let apiInstance = new NeuralSeek.TranslateApi();
178
+ let body = new NeuralSeek.TranslateBody(); // TranslateBody | The request object.
179
+
180
+ apiInstance.translate(body, (error, data, response) => {
181
+ if (error) {
182
+ console.error(error);
183
+ } else {
184
+ console.log('API called successfully. Returned data: ' + data);
185
+ }
186
+ });
187
+ ```
188
+
189
+ ### Parameters
190
+
191
+ Name | Type | Description | Notes
192
+ ------------- | ------------- | ------------- | -------------
193
+ **body** | [**TranslateBody**](TranslateBody.md)| The request object. |
194
+
195
+ ### Return type
196
+
197
+ [**InlineResponse2007**](InlineResponse2007.md)
198
+
199
+ ### Authorization
200
+
201
+ [apiKey](../README.md#apiKey)
202
+
203
+ ### HTTP request headers
204
+
205
+ - **Content-Type**: application/json
206
+ - **Accept**: application/json
207
+
208
+ <a name="translateGlossary"></a>
209
+ # **translateGlossary**
210
+ > translateGlossary(file, body)
211
+
212
+ Add custom translations
213
+
214
+ Add custom translations
215
+
216
+ ### Example
217
+ ```javascript
218
+ import {NeuralSeek} from 'neuralSeek';
219
+ let defaultClient = NeuralSeek.ApiClient.instance;
220
+
221
+ // Configure API key authorization: apiKey
222
+ let apiKey = defaultClient.authentications['apiKey'];
223
+ apiKey.apiKey = 'YOUR API KEY';
224
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
225
+ //apiKey.apiKeyPrefix = 'Token';
226
+
227
+ let apiInstance = new NeuralSeek.TranslateApi();
228
+ let file = "file_example"; // Blob |
229
+ let body = new NeuralSeek.TranslateGlossaryBody1(); // TranslateGlossaryBody1 | This endpoint will accept either a file upload (TMX or JSON), or a direct JSON payload following IBM's JSON file format https://cloud.ibm.com/docs/language-translator?topic=language-translator-customizing#json. Only one file may be saved. Subsequent files will overwrite.
230
+
231
+ apiInstance.translateGlossary(file, body, (error, data, response) => {
232
+ if (error) {
233
+ console.error(error);
234
+ } else {
235
+ console.log('API called successfully.');
236
+ }
237
+ });
238
+ ```
239
+
240
+ ### Parameters
241
+
242
+ Name | Type | Description | Notes
243
+ ------------- | ------------- | ------------- | -------------
244
+ **file** | **Blob**| |
245
+ **body** | [**TranslateGlossaryBody1**](TranslateGlossaryBody1.md)| This endpoint will accept either a file upload (TMX or JSON), or a direct JSON payload following IBM&#x27;s JSON file format https://cloud.ibm.com/docs/language-translator?topic&#x3D;language-translator-customizing#json. Only one file may be saved. Subsequent files will overwrite. |
246
+
247
+ ### Return type
248
+
249
+ null (empty response body)
250
+
251
+ ### Authorization
252
+
253
+ [apiKey](../README.md#apiKey)
254
+
255
+ ### HTTP request headers
256
+
257
+ - **Content-Type**: multipart/form-data, application/json
258
+ - **Accept**: Not defined
259
+
@@ -0,0 +1,11 @@
1
+ # NeuralSeek.TranslateBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **text** | **[String]** | An array of input text to be translated | [optional]
7
+ **modelId** | **String** | Convienence input for legacy connections. Define a traget language by setting a source to target relationship using 2-digit language codes, for example en-es to translate into spanish. The source language is ignored. Either this or the target parameter is required. | [optional] [default to &#x27;&#x27;]
8
+ **target** | **String** | The 2-digit language code for the target language. Either this or the model_id parameter is required. | [optional] [default to &#x27;&#x27;]
9
+ **llmId** | **String** | Optional - Pass an llm card id to override the LLM used for translation | [optional] [default to &#x27;&#x27;]
10
+ **maxChunk** | **Number** | Optional - Pass a maximum translation chunk token size. This can help speed up translations in the 200-2000 word range when using slower LLM&#x27;s. Use a setting between 200 and 500 in these scenarios. Setting 0 or omitting this parameter unsets it. | [optional] [default to 0]
11
+ **additionalInstructions** | **String** | Optional - Additional prompting to be passed to the LLM. Do not casusally use this field, you will break things. | [optional] [default to &#x27;&#x27;]
@@ -0,0 +1,6 @@
1
+ # NeuralSeek.TranslateGlossaryBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **file** | **Blob** | | [optional]
@@ -0,0 +1,6 @@
1
+ # NeuralSeek.TranslateGlossaryBody1
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **sentences** | **[[Object]]** | Instead of a file upload you may pass sentence mappings | [optional]
@@ -0,0 +1,59 @@
1
+ # NeuralSeek.UserDataApi
2
+
3
+ All URIs are relative to *https://api.neuralseek.com/v1/{instance}*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**deleteUserData**](UserDataApi.md#deleteUserData) | **DELETE** /user_data | Delete all user data
8
+
9
+ <a name="deleteUserData"></a>
10
+ # **deleteUserData**
11
+ > deleteUserData(opts)
12
+
13
+ Delete all user data
14
+
15
+ This endpoint deletes all user data
16
+
17
+ ### Example
18
+ ```javascript
19
+ import {NeuralSeek} from 'neuralSeek';
20
+ let defaultClient = NeuralSeek.ApiClient.instance;
21
+
22
+ // Configure API key authorization: apiKey
23
+ let apiKey = defaultClient.authentications['apiKey'];
24
+ apiKey.apiKey = 'YOUR API KEY';
25
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
26
+ //apiKey.apiKeyPrefix = 'Token';
27
+
28
+ let apiInstance = new NeuralSeek.UserDataApi();
29
+ let opts = {
30
+ 'intent': ["intent_example"] // [String] | The intents to delete. If left blank all intents will be deleted.
31
+ };
32
+ apiInstance.deleteUserData(opts, (error, data, response) => {
33
+ if (error) {
34
+ console.error(error);
35
+ } else {
36
+ console.log('API called successfully.');
37
+ }
38
+ });
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ Name | Type | Description | Notes
44
+ ------------- | ------------- | ------------- | -------------
45
+ **intent** | [**[String]**](String.md)| The intents to delete. If left blank all intents will be deleted. | [optional]
46
+
47
+ ### Return type
48
+
49
+ null (empty response body)
50
+
51
+ ### Authorization
52
+
53
+ [apiKey](../README.md#apiKey)
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: Not defined
58
+ - **Accept**: Not defined
59
+
package/git_push.sh ADDED
@@ -0,0 +1,52 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+
10
+ if [ "$git_user_id" = "" ]; then
11
+ git_user_id="GIT_USER_ID"
12
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
13
+ fi
14
+
15
+ if [ "$git_repo_id" = "" ]; then
16
+ git_repo_id="GIT_REPO_ID"
17
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
18
+ fi
19
+
20
+ if [ "$release_note" = "" ]; then
21
+ release_note="Minor update"
22
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
23
+ fi
24
+
25
+ # Initialize the local directory as a Git repository
26
+ git init
27
+
28
+ # Adds the files in the local repository and stages them for commit.
29
+ git add .
30
+
31
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
32
+ git commit -m "$release_note"
33
+
34
+ # Sets the new remote
35
+ git_remote=`git remote`
36
+ if [ "$git_remote" = "" ]; then # git remote not defined
37
+
38
+ if [ "$GIT_TOKEN" = "" ]; then
39
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the Git credential in your environment."
40
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
41
+ else
42
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
43
+ fi
44
+
45
+ fi
46
+
47
+ git pull origin master
48
+
49
+ # Pushes (Forces) the changes in the local repository up to the remote repository
50
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
51
+ git push origin master 2>&1 | grep -v 'To https'
52
+
package/mocha.opts ADDED
@@ -0,0 +1 @@
1
+ --timeout 10000
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "neuralseek",
3
+ "version": "1.0.1",
4
+ "description": "NeuralSeek___The_business_LLM_accelerator",
5
+ "license": "End User License Agreement",
6
+ "main": "src/index.js",
7
+ "scripts": {
8
+ "test": "mocha --require @babel/register --recursive"
9
+ },
10
+ "browser": {
11
+ "fs": false
12
+ },
13
+ "dependencies": {
14
+ "@babel/cli": "^7.0.0",
15
+ "superagent": "^5.3.0"
16
+ },
17
+ "devDependencies": {
18
+ "@babel/core": "^7.0.0",
19
+ "@babel/plugin-proposal-class-properties": "^7.0.0",
20
+ "@babel/plugin-proposal-decorators": "^7.0.0",
21
+ "@babel/plugin-proposal-do-expressions": "^7.0.0",
22
+ "@babel/plugin-proposal-export-default-from": "^7.0.0",
23
+ "@babel/plugin-proposal-export-namespace-from": "^7.0.0",
24
+ "@babel/plugin-proposal-function-bind": "^7.0.0",
25
+ "@babel/plugin-proposal-function-sent": "^7.0.0",
26
+ "@babel/plugin-proposal-json-strings": "^7.0.0",
27
+ "@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
28
+ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
29
+ "@babel/plugin-proposal-numeric-separator": "^7.0.0",
30
+ "@babel/plugin-proposal-optional-chaining": "^7.0.0",
31
+ "@babel/plugin-proposal-pipeline-operator": "^7.0.0",
32
+ "@babel/plugin-proposal-throw-expressions": "^7.0.0",
33
+ "@babel/plugin-syntax-dynamic-import": "^7.0.0",
34
+ "@babel/plugin-syntax-import-meta": "^7.0.0",
35
+ "@babel/preset-env": "^7.0.0",
36
+ "@babel/register": "^7.0.0",
37
+ "expect.js": "^0.3.1",
38
+ "mocha": "^8.0.1",
39
+ "sinon": "^7.2.0"
40
+ },
41
+ "directories": {
42
+ "doc": "docs",
43
+ "test": "test"
44
+ },
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "git+https://github.com/CerebralBlue/neuralSeekClient.git"
48
+ },
49
+ "keywords": [],
50
+ "author": "",
51
+ "bugs": {
52
+ "url": "https://github.com/CerebralBlue/neuralSeekClient/issues"
53
+ },
54
+ "homepage": "https://github.com/CerebralBlue/neuralSeekClient#readme"
55
+ }
@@ -0,0 +1,82 @@
1
+ /*
2
+ * NeuralSeek
3
+ * NeuralSeek - The business LLM accelerator
4
+ *
5
+ * OpenAPI spec version: 1.0.1
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 AnalyticsBody from '../model/AnalyticsBody';
18
+
19
+ /**
20
+ * Analytics service.
21
+ * @module AnalyticsApi
22
+ * @version 1.0.1
23
+ */
24
+ export default class AnalyticsApi {
25
+
26
+ /**
27
+ * Constructs a new AnalyticsApi.
28
+ * @alias module:AnalyticsApi
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 analytics operation.
40
+ * @callback moduleAnalyticsApi~analyticsCallback
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
+ * Instance Analytics
48
+ * Retrieve an analytics dataset for your instance
49
+ * @param {Object} opts Optional parameters
50
+ * @param {module:model/AnalyticsBody} opts.body The request object. You may optionally limit the result set using \&quot;count\&quot;
51
+ * @param {module:AnalyticsApi~analyticsCallback} callback The callback function, accepting three arguments: error, data, response
52
+ */
53
+ analytics(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
+ '/analytics', 'POST',
77
+ pathParams, queryParams, headerParams, formParams, postBody,
78
+ authNames, contentTypes, accepts, returnType, callback
79
+ );
80
+ }
81
+
82
+ }