namirasoft-inference 1.4.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 (267) hide show
  1. package/dist/NamirasoftInferenceServer.d.ts +23 -0
  2. package/dist/NamirasoftInferenceServer.js +30 -0
  3. package/dist/NamirasoftInferenceServer.js.map +1 -0
  4. package/dist/NamirasoftInferenceServerBase.d.ts +5 -0
  5. package/dist/NamirasoftInferenceServerBase.js +11 -0
  6. package/dist/NamirasoftInferenceServerBase.js.map +1 -0
  7. package/dist/NamirasoftInferenceServerHealth.d.ts +8 -0
  8. package/dist/NamirasoftInferenceServerHealth.js +35 -0
  9. package/dist/NamirasoftInferenceServerHealth.js.map +1 -0
  10. package/dist/NamirasoftInferenceServerHealthz.d.ts +7 -0
  11. package/dist/NamirasoftInferenceServerHealthz.js +28 -0
  12. package/dist/NamirasoftInferenceServerHealthz.js.map +1 -0
  13. package/dist/NamirasoftInferenceServerMetrics.d.ts +7 -0
  14. package/dist/NamirasoftInferenceServerMetrics.js +28 -0
  15. package/dist/NamirasoftInferenceServerMetrics.js.map +1 -0
  16. package/dist/NamirasoftInferenceServerModel.d.ts +25 -0
  17. package/dist/NamirasoftInferenceServerModel.js +72 -0
  18. package/dist/NamirasoftInferenceServerModel.js.map +1 -0
  19. package/dist/NamirasoftInferenceServerModelCategory.d.ts +17 -0
  20. package/dist/NamirasoftInferenceServerModelCategory.js +56 -0
  21. package/dist/NamirasoftInferenceServerModelCategory.js.map +1 -0
  22. package/dist/NamirasoftInferenceServerModelField.d.ts +18 -0
  23. package/dist/NamirasoftInferenceServerModelField.js +64 -0
  24. package/dist/NamirasoftInferenceServerModelField.js.map +1 -0
  25. package/dist/NamirasoftInferenceServerModelTag.d.ts +18 -0
  26. package/dist/NamirasoftInferenceServerModelTag.js +64 -0
  27. package/dist/NamirasoftInferenceServerModelTag.js.map +1 -0
  28. package/dist/NamirasoftInferenceServerUsage.d.ts +8 -0
  29. package/dist/NamirasoftInferenceServerUsage.js +29 -0
  30. package/dist/NamirasoftInferenceServerUsage.js.map +1 -0
  31. package/dist/NamirasoftInferenceServerValue.d.ts +7 -0
  32. package/dist/NamirasoftInferenceServerValue.js +29 -0
  33. package/dist/NamirasoftInferenceServerValue.js.map +1 -0
  34. package/dist/command/HealthCommand.d.ts +4 -0
  35. package/dist/command/HealthCommand.js +17 -0
  36. package/dist/command/HealthCommand.js.map +1 -0
  37. package/dist/command/HealthLivenessCommand.d.ts +5 -0
  38. package/dist/command/HealthLivenessCommand.js +38 -0
  39. package/dist/command/HealthLivenessCommand.js.map +1 -0
  40. package/dist/command/HealthReadinessCommand.d.ts +5 -0
  41. package/dist/command/HealthReadinessCommand.js +38 -0
  42. package/dist/command/HealthReadinessCommand.js.map +1 -0
  43. package/dist/command/HealthzCommand.d.ts +4 -0
  44. package/dist/command/HealthzCommand.js +15 -0
  45. package/dist/command/HealthzCommand.js.map +1 -0
  46. package/dist/command/HealthzGetCommand.d.ts +5 -0
  47. package/dist/command/HealthzGetCommand.js +38 -0
  48. package/dist/command/HealthzGetCommand.js.map +1 -0
  49. package/dist/command/MetricsCommand.d.ts +4 -0
  50. package/dist/command/MetricsCommand.js +15 -0
  51. package/dist/command/MetricsCommand.js.map +1 -0
  52. package/dist/command/MetricsGetCommand.d.ts +5 -0
  53. package/dist/command/MetricsGetCommand.js +38 -0
  54. package/dist/command/MetricsGetCommand.js.map +1 -0
  55. package/dist/command/ModelAskCommand.d.ts +5 -0
  56. package/dist/command/ModelAskCommand.js +76 -0
  57. package/dist/command/ModelAskCommand.js.map +1 -0
  58. package/dist/command/ModelCategoryCommand.d.ts +4 -0
  59. package/dist/command/ModelCategoryCommand.js +21 -0
  60. package/dist/command/ModelCategoryCommand.js.map +1 -0
  61. package/dist/command/ModelCategoryCreateCommand.d.ts +5 -0
  62. package/dist/command/ModelCategoryCreateCommand.js +49 -0
  63. package/dist/command/ModelCategoryCreateCommand.js.map +1 -0
  64. package/dist/command/ModelCategoryDeleteCommand.d.ts +5 -0
  65. package/dist/command/ModelCategoryDeleteCommand.js +38 -0
  66. package/dist/command/ModelCategoryDeleteCommand.js.map +1 -0
  67. package/dist/command/ModelCategoryGetCommand.d.ts +5 -0
  68. package/dist/command/ModelCategoryGetCommand.js +38 -0
  69. package/dist/command/ModelCategoryGetCommand.js.map +1 -0
  70. package/dist/command/ModelCategoryListCommand.d.ts +5 -0
  71. package/dist/command/ModelCategoryListCommand.js +38 -0
  72. package/dist/command/ModelCategoryListCommand.js.map +1 -0
  73. package/dist/command/ModelCommand.d.ts +4 -0
  74. package/dist/command/ModelCommand.js +25 -0
  75. package/dist/command/ModelCommand.js.map +1 -0
  76. package/dist/command/ModelCreateCommand.d.ts +5 -0
  77. package/dist/command/ModelCreateCommand.js +157 -0
  78. package/dist/command/ModelCreateCommand.js.map +1 -0
  79. package/dist/command/ModelDeleteCommand.d.ts +5 -0
  80. package/dist/command/ModelDeleteCommand.js +38 -0
  81. package/dist/command/ModelDeleteCommand.js.map +1 -0
  82. package/dist/command/ModelFieldCommand.d.ts +4 -0
  83. package/dist/command/ModelFieldCommand.js +23 -0
  84. package/dist/command/ModelFieldCommand.js.map +1 -0
  85. package/dist/command/ModelFieldCreateCommand.d.ts +5 -0
  86. package/dist/command/ModelFieldCreateCommand.js +58 -0
  87. package/dist/command/ModelFieldCreateCommand.js.map +1 -0
  88. package/dist/command/ModelFieldDeleteCommand.d.ts +5 -0
  89. package/dist/command/ModelFieldDeleteCommand.js +38 -0
  90. package/dist/command/ModelFieldDeleteCommand.js.map +1 -0
  91. package/dist/command/ModelFieldGetCommand.d.ts +5 -0
  92. package/dist/command/ModelFieldGetCommand.js +38 -0
  93. package/dist/command/ModelFieldGetCommand.js.map +1 -0
  94. package/dist/command/ModelFieldListCommand.d.ts +5 -0
  95. package/dist/command/ModelFieldListCommand.js +38 -0
  96. package/dist/command/ModelFieldListCommand.js.map +1 -0
  97. package/dist/command/ModelFieldUpdateCommand.d.ts +5 -0
  98. package/dist/command/ModelFieldUpdateCommand.js +58 -0
  99. package/dist/command/ModelFieldUpdateCommand.js.map +1 -0
  100. package/dist/command/ModelGetCommand.d.ts +5 -0
  101. package/dist/command/ModelGetCommand.js +38 -0
  102. package/dist/command/ModelGetCommand.js.map +1 -0
  103. package/dist/command/ModelListCommand.d.ts +5 -0
  104. package/dist/command/ModelListCommand.js +38 -0
  105. package/dist/command/ModelListCommand.js.map +1 -0
  106. package/dist/command/ModelTagCommand.d.ts +4 -0
  107. package/dist/command/ModelTagCommand.js +23 -0
  108. package/dist/command/ModelTagCommand.js.map +1 -0
  109. package/dist/command/ModelTagCreateCommand.d.ts +5 -0
  110. package/dist/command/ModelTagCreateCommand.js +58 -0
  111. package/dist/command/ModelTagCreateCommand.js.map +1 -0
  112. package/dist/command/ModelTagDeleteCommand.d.ts +5 -0
  113. package/dist/command/ModelTagDeleteCommand.js +38 -0
  114. package/dist/command/ModelTagDeleteCommand.js.map +1 -0
  115. package/dist/command/ModelTagGetCommand.d.ts +5 -0
  116. package/dist/command/ModelTagGetCommand.js +38 -0
  117. package/dist/command/ModelTagGetCommand.js.map +1 -0
  118. package/dist/command/ModelTagListCommand.d.ts +5 -0
  119. package/dist/command/ModelTagListCommand.js +38 -0
  120. package/dist/command/ModelTagListCommand.js.map +1 -0
  121. package/dist/command/ModelTagUpdateCommand.d.ts +5 -0
  122. package/dist/command/ModelTagUpdateCommand.js +58 -0
  123. package/dist/command/ModelTagUpdateCommand.js.map +1 -0
  124. package/dist/command/ModelUpdateCommand.d.ts +5 -0
  125. package/dist/command/ModelUpdateCommand.js +157 -0
  126. package/dist/command/ModelUpdateCommand.js.map +1 -0
  127. package/dist/command/UsageCommand.d.ts +4 -0
  128. package/dist/command/UsageCommand.js +15 -0
  129. package/dist/command/UsageCommand.js.map +1 -0
  130. package/dist/command/UsageSummaryCommand.d.ts +5 -0
  131. package/dist/command/UsageSummaryCommand.js +38 -0
  132. package/dist/command/UsageSummaryCommand.js.map +1 -0
  133. package/dist/command/ValueCommand.d.ts +4 -0
  134. package/dist/command/ValueCommand.js +15 -0
  135. package/dist/command/ValueCommand.js.map +1 -0
  136. package/dist/command/ValueListCommand.d.ts +5 -0
  137. package/dist/command/ValueListCommand.js +38 -0
  138. package/dist/command/ValueListCommand.js.map +1 -0
  139. package/dist/command/cli.d.ts +2 -0
  140. package/dist/command/cli.js +30 -0
  141. package/dist/command/cli.js.map +1 -0
  142. package/dist/enum/InteractionStatus.d.ts +5 -0
  143. package/dist/enum/InteractionStatus.js +10 -0
  144. package/dist/enum/InteractionStatus.js.map +1 -0
  145. package/dist/enum/ModelModelCompany.d.ts +6 -0
  146. package/dist/enum/ModelModelCompany.js +11 -0
  147. package/dist/enum/ModelModelCompany.js.map +1 -0
  148. package/dist/enum/ModelModelName.d.ts +11 -0
  149. package/dist/enum/ModelModelName.js +16 -0
  150. package/dist/enum/ModelModelName.js.map +1 -0
  151. package/dist/index.d.ts +64 -0
  152. package/dist/index.js +81 -0
  153. package/dist/index.js.map +1 -0
  154. package/dist/meta/ModelCategoryMetaTable.d.ts +15 -0
  155. package/dist/meta/ModelCategoryMetaTable.js +39 -0
  156. package/dist/meta/ModelCategoryMetaTable.js.map +1 -0
  157. package/dist/meta/ModelFieldMetaTable.d.ts +16 -0
  158. package/dist/meta/ModelFieldMetaTable.js +39 -0
  159. package/dist/meta/ModelFieldMetaTable.js.map +1 -0
  160. package/dist/meta/ModelMetaTable.d.ts +62 -0
  161. package/dist/meta/ModelMetaTable.js +85 -0
  162. package/dist/meta/ModelMetaTable.js.map +1 -0
  163. package/dist/meta/ModelTagMetaTable.d.ts +16 -0
  164. package/dist/meta/ModelTagMetaTable.js +39 -0
  165. package/dist/meta/ModelTagMetaTable.js.map +1 -0
  166. package/dist/meta/NamirasoftInferenceMetaDatabase.d.ts +19 -0
  167. package/dist/meta/NamirasoftInferenceMetaDatabase.js +33 -0
  168. package/dist/meta/NamirasoftInferenceMetaDatabase.js.map +1 -0
  169. package/dist/row/EntityCategoryInputRow.d.ts +3 -0
  170. package/dist/row/EntityCategoryInputRow.js +3 -0
  171. package/dist/row/EntityCategoryInputRow.js.map +1 -0
  172. package/dist/row/EntityFieldInputRow.d.ts +4 -0
  173. package/dist/row/EntityFieldInputRow.js +3 -0
  174. package/dist/row/EntityFieldInputRow.js.map +1 -0
  175. package/dist/row/EntityTagInputRow.d.ts +4 -0
  176. package/dist/row/EntityTagInputRow.js +3 -0
  177. package/dist/row/EntityTagInputRow.js.map +1 -0
  178. package/dist/row/InteractionRow.d.ts +22 -0
  179. package/dist/row/InteractionRow.js +3 -0
  180. package/dist/row/InteractionRow.js.map +1 -0
  181. package/dist/row/ModelCategoryRow.d.ts +8 -0
  182. package/dist/row/ModelCategoryRow.js +3 -0
  183. package/dist/row/ModelCategoryRow.js.map +1 -0
  184. package/dist/row/ModelFieldRow.d.ts +9 -0
  185. package/dist/row/ModelFieldRow.js +3 -0
  186. package/dist/row/ModelFieldRow.js.map +1 -0
  187. package/dist/row/ModelInputRow.d.ts +20 -0
  188. package/dist/row/ModelInputRow.js +3 -0
  189. package/dist/row/ModelInputRow.js.map +1 -0
  190. package/dist/row/ModelRow.d.ts +57 -0
  191. package/dist/row/ModelRow.js +3 -0
  192. package/dist/row/ModelRow.js.map +1 -0
  193. package/dist/row/ModelTagRow.d.ts +9 -0
  194. package/dist/row/ModelTagRow.js +3 -0
  195. package/dist/row/ModelTagRow.js.map +1 -0
  196. package/dist/row/UsageSummaryResponseRow.d.ts +9 -0
  197. package/dist/row/UsageSummaryResponseRow.js +3 -0
  198. package/dist/row/UsageSummaryResponseRow.js.map +1 -0
  199. package/logo.png +0 -0
  200. package/package.json +28 -0
  201. package/src/NamirasoftInferenceServer.ts +57 -0
  202. package/src/NamirasoftInferenceServerBase.ts +30 -0
  203. package/src/NamirasoftInferenceServerHealth.ts +43 -0
  204. package/src/NamirasoftInferenceServerHealthz.ts +37 -0
  205. package/src/NamirasoftInferenceServerMetrics.ts +37 -0
  206. package/src/NamirasoftInferenceServerModel.ts +79 -0
  207. package/src/NamirasoftInferenceServerModelCategory.ts +64 -0
  208. package/src/NamirasoftInferenceServerModelField.ts +71 -0
  209. package/src/NamirasoftInferenceServerModelTag.ts +71 -0
  210. package/src/NamirasoftInferenceServerUsage.ts +39 -0
  211. package/src/NamirasoftInferenceServerValue.ts +38 -0
  212. package/src/command/HealthCommand.ts +34 -0
  213. package/src/command/HealthLivenessCommand.ts +45 -0
  214. package/src/command/HealthReadinessCommand.ts +45 -0
  215. package/src/command/HealthzCommand.ts +32 -0
  216. package/src/command/HealthzGetCommand.ts +45 -0
  217. package/src/command/MetricsCommand.ts +32 -0
  218. package/src/command/MetricsGetCommand.ts +45 -0
  219. package/src/command/ModelAskCommand.ts +83 -0
  220. package/src/command/ModelCategoryCommand.ts +38 -0
  221. package/src/command/ModelCategoryCreateCommand.ts +56 -0
  222. package/src/command/ModelCategoryDeleteCommand.ts +45 -0
  223. package/src/command/ModelCategoryGetCommand.ts +45 -0
  224. package/src/command/ModelCategoryListCommand.ts +45 -0
  225. package/src/command/ModelCommand.ts +42 -0
  226. package/src/command/ModelCreateCommand.ts +164 -0
  227. package/src/command/ModelDeleteCommand.ts +45 -0
  228. package/src/command/ModelFieldCommand.ts +40 -0
  229. package/src/command/ModelFieldCreateCommand.ts +65 -0
  230. package/src/command/ModelFieldDeleteCommand.ts +45 -0
  231. package/src/command/ModelFieldGetCommand.ts +45 -0
  232. package/src/command/ModelFieldListCommand.ts +45 -0
  233. package/src/command/ModelFieldUpdateCommand.ts +65 -0
  234. package/src/command/ModelGetCommand.ts +45 -0
  235. package/src/command/ModelListCommand.ts +45 -0
  236. package/src/command/ModelTagCommand.ts +40 -0
  237. package/src/command/ModelTagCreateCommand.ts +65 -0
  238. package/src/command/ModelTagDeleteCommand.ts +45 -0
  239. package/src/command/ModelTagGetCommand.ts +45 -0
  240. package/src/command/ModelTagListCommand.ts +45 -0
  241. package/src/command/ModelTagUpdateCommand.ts +65 -0
  242. package/src/command/ModelUpdateCommand.ts +164 -0
  243. package/src/command/UsageCommand.ts +32 -0
  244. package/src/command/UsageSummaryCommand.ts +45 -0
  245. package/src/command/ValueCommand.ts +32 -0
  246. package/src/command/ValueListCommand.ts +45 -0
  247. package/src/command/cli.ts +49 -0
  248. package/src/enum/InteractionStatus.ts +26 -0
  249. package/src/enum/ModelModelCompany.ts +27 -0
  250. package/src/enum/ModelModelName.ts +32 -0
  251. package/src/index.ts +84 -0
  252. package/src/meta/ModelCategoryMetaTable.ts +60 -0
  253. package/src/meta/ModelFieldMetaTable.ts +61 -0
  254. package/src/meta/ModelMetaTable.ts +153 -0
  255. package/src/meta/ModelTagMetaTable.ts +61 -0
  256. package/src/meta/NamirasoftInferenceMetaDatabase.ts +60 -0
  257. package/src/row/EntityCategoryInputRow.ts +24 -0
  258. package/src/row/EntityFieldInputRow.ts +25 -0
  259. package/src/row/EntityTagInputRow.ts +25 -0
  260. package/src/row/InteractionRow.ts +44 -0
  261. package/src/row/ModelCategoryRow.ts +29 -0
  262. package/src/row/ModelFieldRow.ts +30 -0
  263. package/src/row/ModelInputRow.ts +42 -0
  264. package/src/row/ModelRow.ts +79 -0
  265. package/src/row/ModelTagRow.ts +30 -0
  266. package/src/row/UsageSummaryResponseRow.ts +30 -0
  267. package/tsconfig.json +45 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UsageCommand.js","sourceRoot":"","sources":["../../src/command/UsageCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,+DAA4D;AAE5D,MAAa,YAAa,SAAQ,0CAAoB;IAElD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,SAAS,EAAE,yCAAmB;SACjC,CAAC,CAAC;IACP,CAAC;CACJ;AARD,oCAQC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class UsageSummaryCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UsageSummaryCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftInferenceServer_1 = require("../NamirasoftInferenceServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class UsageSummaryCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["model_id", "started_at", "ended_at"], []);
20
+ }
21
+ exec() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ let token = this.app.storage.getNSAToken();
24
+ if (token == null)
25
+ throw new Error("Token is not available. Please login first using:\nns-inference account config \nor \nns-inference account login.");
26
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
27
+ let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
28
+ token_manager.setValue(token, false);
29
+ let url = this.app.storage.getItem("ns-inference-server-url");
30
+ let server = new NamirasoftInferenceServer_1.NamirasoftInferenceServer(url, token_manager, e => this.app.logger.error(e.message));
31
+ let ans = yield server.usage.Summary(this.arg_values[0], this.arg_values[1], this.arg_values[2]);
32
+ this.app.logger.success(JSON.stringify(ans));
33
+ });
34
+ }
35
+ }
36
+ exports.UsageSummaryCommand = UsageSummaryCommand;
37
+ ;
38
+ //# sourceMappingURL=UsageSummaryCommand.js.map
@@ -0,0 +1 @@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CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,kDAmBC;AAAA,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { BaseNavigatorCommand } from "namirasoft-node-cli";
2
+ export declare class ValueCommand extends BaseNavigatorCommand {
3
+ constructor(argv: string[]);
4
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValueCommand = void 0;
4
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
5
+ const ValueListCommand_1 = require("./ValueListCommand");
6
+ class ValueCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
7
+ constructor(argv) {
8
+ super(argv, {
9
+ "list": ValueListCommand_1.ValueListCommand,
10
+ });
11
+ }
12
+ }
13
+ exports.ValueCommand = ValueCommand;
14
+ ;
15
+ //# sourceMappingURL=ValueCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ValueCommand.js","sourceRoot":"","sources":["../../src/command/ValueCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,yDAAsD;AAEtD,MAAa,YAAa,SAAQ,0CAAoB;IAElD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,MAAM,EAAE,mCAAgB;SAC3B,CAAC,CAAC;IACP,CAAC;CACJ;AARD,oCAQC;AAAA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { BaseFinalCommand } from "namirasoft-node-cli";
2
+ export declare class ValueListCommand extends BaseFinalCommand {
3
+ constructor(argv: string[]);
4
+ exec(): Promise<void>;
5
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ValueListCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftInferenceServer_1 = require("../NamirasoftInferenceServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class ValueListCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["table", "column", "search", "field_id", "limit"], []);
20
+ }
21
+ exec() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ let token = this.app.storage.getNSAToken();
24
+ if (token == null)
25
+ throw new Error("Token is not available. Please login first using:\nns-inference account config \nor \nns-inference account login.");
26
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
27
+ let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
28
+ token_manager.setValue(token, false);
29
+ let url = this.app.storage.getItem("ns-inference-server-url");
30
+ let server = new NamirasoftInferenceServer_1.NamirasoftInferenceServer(url, token_manager, e => this.app.logger.error(e.message));
31
+ let ans = yield server.value.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3], this.arg_values[4]);
32
+ this.app.logger.success(JSON.stringify(ans));
33
+ });
34
+ }
35
+ }
36
+ exports.ValueListCommand = ValueListCommand;
37
+ ;
38
+ //# sourceMappingURL=ValueListCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ValueListCommand.js","sourceRoot":"","sources":["../../src/command/ValueListCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,4EAAyE;AACzE,2DAAkD;AAElD,MAAa,gBAAiB,SAAQ,sCAAgB;IAElD,YAAY,IAAc;QAEt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 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const namirasoft_account_1 = require("namirasoft-account");
5
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
6
+ const namirasoft_node_cli_2 = require("namirasoft-node-cli");
7
+ const HealthCommand_1 = require("./HealthCommand");
8
+ const HealthzCommand_1 = require("./HealthzCommand");
9
+ const MetricsCommand_1 = require("./MetricsCommand");
10
+ const ModelCategoryCommand_1 = require("./ModelCategoryCommand");
11
+ const ModelCommand_1 = require("./ModelCommand");
12
+ const ModelFieldCommand_1 = require("./ModelFieldCommand");
13
+ const ModelTagCommand_1 = require("./ModelTagCommand");
14
+ const UsageCommand_1 = require("./UsageCommand");
15
+ const ValueCommand_1 = require("./ValueCommand");
16
+ let app = new namirasoft_node_cli_1.Application("ns-inference", new namirasoft_node_cli_1.BaseStorage(), {
17
+ "healthz": HealthzCommand_1.HealthzCommand,
18
+ "health": HealthCommand_1.HealthCommand,
19
+ "metrics": MetricsCommand_1.MetricsCommand,
20
+ "value": ValueCommand_1.ValueCommand,
21
+ "modelcategory": ModelCategoryCommand_1.ModelCategoryCommand,
22
+ "modelfield": ModelFieldCommand_1.ModelFieldCommand,
23
+ "modeltag": ModelTagCommand_1.ModelTagCommand,
24
+ "model": ModelCommand_1.ModelCommand,
25
+ "usage": UsageCommand_1.UsageCommand,
26
+ "account": namirasoft_account_1.AccountCommand,
27
+ "config": (argv) => new namirasoft_node_cli_2.ConfigCommand(argv, ["ns-inference-server-url"])
28
+ });
29
+ app.run();
30
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/command/cli.ts"],"names":[],"mappings":";;;AAqBA,2DAAoD;AACpD,6DAA+D;AAC/D,6DAAoD;AACpD,mDAAgD;AAChD,qDAAkD;AAClD,qDAAkD;AAClD,iEAA8D;AAC9D,iDAA8C;AAC9C,2DAAwD;AACxD,uDAAoD;AACpD,iDAA8C;AAC9C,iDAA8C;AAE9C,IAAI,GAAG,GAAG,IAAI,iCAAW,CAAC,cAAc,EAAE,IAAI,iCAAW,EAAE,EACvD;IACI,SAAS,EAAE,+BAAc;IACzB,QAAQ,EAAE,6BAAa;IACvB,SAAS,EAAE,+BAAc;IACzB,OAAO,EAAE,2BAAY;IACrB,eAAe,EAAE,2CAAoB;IACrC,YAAY,EAAE,qCAAiB;IAC/B,UAAU,EAAE,iCAAe;IAC3B,OAAO,EAAE,2BAAY;IACrB,OAAO,EAAE,2BAAY;IACrB,SAAS,EAAE,mCAAc;IACzB,QAAQ,EAAE,CAAC,IAAc,EAAE,EAAE,CAAC,IAAI,mCAAa,CAAC,IAAI,EAAE,CAAC,yBAAyB,CAAC,CAAC;CACrF,CAAC,CAAC;AACP,GAAG,CAAC,GAAG,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare enum InteractionStatus {
2
+ Running = "Running",
3
+ Successful = "Successful",
4
+ Failed = "Failed"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InteractionStatus = void 0;
4
+ var InteractionStatus;
5
+ (function (InteractionStatus) {
6
+ InteractionStatus["Running"] = "Running";
7
+ InteractionStatus["Successful"] = "Successful";
8
+ InteractionStatus["Failed"] = "Failed";
9
+ })(InteractionStatus || (exports.InteractionStatus = InteractionStatus = {}));
10
+ //# sourceMappingURL=InteractionStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InteractionStatus.js","sourceRoot":"","sources":["../../src/enum/InteractionStatus.ts"],"names":[],"mappings":";;;AAoBA,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAEzB,wCAAmB,CAAA;IACnB,8CAAyB,CAAA;IACzB,sCAAiB,CAAA;AACrB,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B"}
@@ -0,0 +1,6 @@
1
+ export declare enum ModelModelCompany {
2
+ OpenAI = "OpenAI",
3
+ Anthropic = "Anthropic",
4
+ DeepSeek = "DeepSeek",
5
+ Namirasoft = "Namirasoft"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ModelModelCompany = void 0;
4
+ var ModelModelCompany;
5
+ (function (ModelModelCompany) {
6
+ ModelModelCompany["OpenAI"] = "OpenAI";
7
+ ModelModelCompany["Anthropic"] = "Anthropic";
8
+ ModelModelCompany["DeepSeek"] = "DeepSeek";
9
+ ModelModelCompany["Namirasoft"] = "Namirasoft";
10
+ })(ModelModelCompany || (exports.ModelModelCompany = ModelModelCompany = {}));
11
+ //# sourceMappingURL=ModelModelCompany.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModelModelCompany.js","sourceRoot":"","sources":["../../src/enum/ModelModelCompany.ts"],"names":[],"mappings":";;;AAoBA,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAEzB,sCAAiB,CAAA;IACjB,4CAAuB,CAAA;IACvB,0CAAqB,CAAA;IACrB,8CAAyB,CAAA;AAC7B,CAAC,EANW,iBAAiB,iCAAjB,iBAAiB,QAM5B"}
@@ -0,0 +1,11 @@
1
+ export declare enum ModelModelName {
2
+ Gpt4o = "Gpt4o",
3
+ Gpt4oMini = "Gpt4oMini",
4
+ Gpt5 = "Gpt5",
5
+ Gpt5Mini = "Gpt5Mini",
6
+ ClaudeHaiku45 = "ClaudeHaiku45",
7
+ ClaudeOpus47 = "ClaudeOpus47",
8
+ ClaudeSonnet46 = "ClaudeSonnet46",
9
+ V4Flash = "V4Flash",
10
+ V4Pro = "V4Pro"
11
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ModelModelName = void 0;
4
+ var ModelModelName;
5
+ (function (ModelModelName) {
6
+ ModelModelName["Gpt4o"] = "Gpt4o";
7
+ ModelModelName["Gpt4oMini"] = "Gpt4oMini";
8
+ ModelModelName["Gpt5"] = "Gpt5";
9
+ ModelModelName["Gpt5Mini"] = "Gpt5Mini";
10
+ ModelModelName["ClaudeHaiku45"] = "ClaudeHaiku45";
11
+ ModelModelName["ClaudeOpus47"] = "ClaudeOpus47";
12
+ ModelModelName["ClaudeSonnet46"] = "ClaudeSonnet46";
13
+ ModelModelName["V4Flash"] = "V4Flash";
14
+ ModelModelName["V4Pro"] = "V4Pro";
15
+ })(ModelModelName || (exports.ModelModelName = ModelModelName = {}));
16
+ //# sourceMappingURL=ModelModelName.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModelModelName.js","sourceRoot":"","sources":["../../src/enum/ModelModelName.ts"],"names":[],"mappings":";;;AAoBA,IAAY,cAWX;AAXD,WAAY,cAAc;IAEtB,iCAAe,CAAA;IACf,yCAAuB,CAAA;IACvB,+BAAa,CAAA;IACb,uCAAqB,CAAA;IACrB,iDAA+B,CAAA;IAC/B,+CAA6B,CAAA;IAC7B,mDAAiC,CAAA;IACjC,qCAAmB,CAAA;IACnB,iCAAe,CAAA;AACnB,CAAC,EAXW,cAAc,8BAAd,cAAc,QAWzB"}
@@ -0,0 +1,64 @@
1
+ export * from "./NamirasoftInferenceServer";
2
+ export * from "./NamirasoftInferenceServerBase";
3
+ export * from "./NamirasoftInferenceServerHealth";
4
+ export * from "./NamirasoftInferenceServerHealthz";
5
+ export * from "./NamirasoftInferenceServerMetrics";
6
+ export * from "./NamirasoftInferenceServerModel";
7
+ export * from "./NamirasoftInferenceServerModelCategory";
8
+ export * from "./NamirasoftInferenceServerModelField";
9
+ export * from "./NamirasoftInferenceServerModelTag";
10
+ export * from "./NamirasoftInferenceServerUsage";
11
+ export * from "./NamirasoftInferenceServerValue";
12
+ export * from "./command/HealthCommand";
13
+ export * from "./command/HealthLivenessCommand";
14
+ export * from "./command/HealthReadinessCommand";
15
+ export * from "./command/HealthzCommand";
16
+ export * from "./command/HealthzGetCommand";
17
+ export * from "./command/MetricsCommand";
18
+ export * from "./command/MetricsGetCommand";
19
+ export * from "./command/ModelAskCommand";
20
+ export * from "./command/ModelCategoryCommand";
21
+ export * from "./command/ModelCategoryCreateCommand";
22
+ export * from "./command/ModelCategoryDeleteCommand";
23
+ export * from "./command/ModelCategoryGetCommand";
24
+ export * from "./command/ModelCategoryListCommand";
25
+ export * from "./command/ModelCommand";
26
+ export * from "./command/ModelCreateCommand";
27
+ export * from "./command/ModelDeleteCommand";
28
+ export * from "./command/ModelFieldCommand";
29
+ export * from "./command/ModelFieldCreateCommand";
30
+ export * from "./command/ModelFieldDeleteCommand";
31
+ export * from "./command/ModelFieldGetCommand";
32
+ export * from "./command/ModelFieldListCommand";
33
+ export * from "./command/ModelFieldUpdateCommand";
34
+ export * from "./command/ModelGetCommand";
35
+ export * from "./command/ModelListCommand";
36
+ export * from "./command/ModelTagCommand";
37
+ export * from "./command/ModelTagCreateCommand";
38
+ export * from "./command/ModelTagDeleteCommand";
39
+ export * from "./command/ModelTagGetCommand";
40
+ export * from "./command/ModelTagListCommand";
41
+ export * from "./command/ModelTagUpdateCommand";
42
+ export * from "./command/ModelUpdateCommand";
43
+ export * from "./command/UsageCommand";
44
+ export * from "./command/UsageSummaryCommand";
45
+ export * from "./command/ValueCommand";
46
+ export * from "./command/ValueListCommand";
47
+ export * from "./enum/InteractionStatus";
48
+ export * from "./enum/ModelModelCompany";
49
+ export * from "./enum/ModelModelName";
50
+ export * from "./meta/ModelCategoryMetaTable";
51
+ export * from "./meta/ModelFieldMetaTable";
52
+ export * from "./meta/ModelMetaTable";
53
+ export * from "./meta/ModelTagMetaTable";
54
+ export * from "./meta/NamirasoftInferenceMetaDatabase";
55
+ export * from "./row/EntityCategoryInputRow";
56
+ export * from "./row/EntityFieldInputRow";
57
+ export * from "./row/EntityTagInputRow";
58
+ export * from "./row/InteractionRow";
59
+ export * from "./row/ModelCategoryRow";
60
+ export * from "./row/ModelFieldRow";
61
+ export * from "./row/ModelInputRow";
62
+ export * from "./row/ModelRow";
63
+ export * from "./row/ModelTagRow";
64
+ export * from "./row/UsageSummaryResponseRow";
package/dist/index.js ADDED
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./NamirasoftInferenceServer"), exports);
18
+ __exportStar(require("./NamirasoftInferenceServerBase"), exports);
19
+ __exportStar(require("./NamirasoftInferenceServerHealth"), exports);
20
+ __exportStar(require("./NamirasoftInferenceServerHealthz"), exports);
21
+ __exportStar(require("./NamirasoftInferenceServerMetrics"), exports);
22
+ __exportStar(require("./NamirasoftInferenceServerModel"), exports);
23
+ __exportStar(require("./NamirasoftInferenceServerModelCategory"), exports);
24
+ __exportStar(require("./NamirasoftInferenceServerModelField"), exports);
25
+ __exportStar(require("./NamirasoftInferenceServerModelTag"), exports);
26
+ __exportStar(require("./NamirasoftInferenceServerUsage"), exports);
27
+ __exportStar(require("./NamirasoftInferenceServerValue"), exports);
28
+ __exportStar(require("./command/HealthCommand"), exports);
29
+ __exportStar(require("./command/HealthLivenessCommand"), exports);
30
+ __exportStar(require("./command/HealthReadinessCommand"), exports);
31
+ __exportStar(require("./command/HealthzCommand"), exports);
32
+ __exportStar(require("./command/HealthzGetCommand"), exports);
33
+ __exportStar(require("./command/MetricsCommand"), exports);
34
+ __exportStar(require("./command/MetricsGetCommand"), exports);
35
+ __exportStar(require("./command/ModelAskCommand"), exports);
36
+ __exportStar(require("./command/ModelCategoryCommand"), exports);
37
+ __exportStar(require("./command/ModelCategoryCreateCommand"), exports);
38
+ __exportStar(require("./command/ModelCategoryDeleteCommand"), exports);
39
+ __exportStar(require("./command/ModelCategoryGetCommand"), exports);
40
+ __exportStar(require("./command/ModelCategoryListCommand"), exports);
41
+ __exportStar(require("./command/ModelCommand"), exports);
42
+ __exportStar(require("./command/ModelCreateCommand"), exports);
43
+ __exportStar(require("./command/ModelDeleteCommand"), exports);
44
+ __exportStar(require("./command/ModelFieldCommand"), exports);
45
+ __exportStar(require("./command/ModelFieldCreateCommand"), exports);
46
+ __exportStar(require("./command/ModelFieldDeleteCommand"), exports);
47
+ __exportStar(require("./command/ModelFieldGetCommand"), exports);
48
+ __exportStar(require("./command/ModelFieldListCommand"), exports);
49
+ __exportStar(require("./command/ModelFieldUpdateCommand"), exports);
50
+ __exportStar(require("./command/ModelGetCommand"), exports);
51
+ __exportStar(require("./command/ModelListCommand"), exports);
52
+ __exportStar(require("./command/ModelTagCommand"), exports);
53
+ __exportStar(require("./command/ModelTagCreateCommand"), exports);
54
+ __exportStar(require("./command/ModelTagDeleteCommand"), exports);
55
+ __exportStar(require("./command/ModelTagGetCommand"), exports);
56
+ __exportStar(require("./command/ModelTagListCommand"), exports);
57
+ __exportStar(require("./command/ModelTagUpdateCommand"), exports);
58
+ __exportStar(require("./command/ModelUpdateCommand"), exports);
59
+ __exportStar(require("./command/UsageCommand"), exports);
60
+ __exportStar(require("./command/UsageSummaryCommand"), exports);
61
+ __exportStar(require("./command/ValueCommand"), exports);
62
+ __exportStar(require("./command/ValueListCommand"), exports);
63
+ __exportStar(require("./enum/InteractionStatus"), exports);
64
+ __exportStar(require("./enum/ModelModelCompany"), exports);
65
+ __exportStar(require("./enum/ModelModelName"), exports);
66
+ __exportStar(require("./meta/ModelCategoryMetaTable"), exports);
67
+ __exportStar(require("./meta/ModelFieldMetaTable"), exports);
68
+ __exportStar(require("./meta/ModelMetaTable"), exports);
69
+ __exportStar(require("./meta/ModelTagMetaTable"), exports);
70
+ __exportStar(require("./meta/NamirasoftInferenceMetaDatabase"), exports);
71
+ __exportStar(require("./row/EntityCategoryInputRow"), exports);
72
+ __exportStar(require("./row/EntityFieldInputRow"), exports);
73
+ __exportStar(require("./row/EntityTagInputRow"), exports);
74
+ __exportStar(require("./row/InteractionRow"), exports);
75
+ __exportStar(require("./row/ModelCategoryRow"), exports);
76
+ __exportStar(require("./row/ModelFieldRow"), exports);
77
+ __exportStar(require("./row/ModelInputRow"), exports);
78
+ __exportStar(require("./row/ModelRow"), exports);
79
+ __exportStar(require("./row/ModelTagRow"), exports);
80
+ __exportStar(require("./row/UsageSummaryResponseRow"), exports);
81
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,8DAA4C;AAC5C,kEAAgD;AAChD,oEAAkD;AAClD,qEAAmD;AACnD,qEAAmD;AACnD,mEAAiD;AACjD,2EAAyD;AACzD,wEAAsD;AACtD,sEAAoD;AACpD,mEAAiD;AACjD,mEAAiD;AACjD,0DAAwC;AACxC,kEAAgD;AAChD,mEAAiD;AACjD,2DAAyC;AACzC,8DAA4C;AAC5C,2DAAyC;AACzC,8DAA4C;AAC5C,4DAA0C;AAC1C,iEAA+C;AAC/C,uEAAqD;AACrD,uEAAqD;AACrD,oEAAkD;AAClD,qEAAmD;AACnD,yDAAuC;AACvC,+DAA6C;AAC7C,+DAA6C;AAC7C,8DAA4C;AAC5C,oEAAkD;AAClD,oEAAkD;AAClD,iEAA+C;AAC/C,kEAAgD;AAChD,oEAAkD;AAClD,4DAA0C;AAC1C,6DAA2C;AAC3C,4DAA0C;AAC1C,kEAAgD;AAChD,kEAAgD;AAChD,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD;AAChD,+DAA6C;AAC7C,yDAAuC;AACvC,gEAA8C;AAC9C,yDAAuC;AACvC,6DAA2C;AAC3C,2DAAyC;AACzC,2DAAyC;AACzC,wDAAsC;AACtC,gEAA8C;AAC9C,6DAA2C;AAC3C,wDAAsC;AACtC,2DAAyC;AACzC,yEAAuD;AACvD,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC;AACxC,uDAAqC;AACrC,yDAAuC;AACvC,sDAAoC;AACpC,sDAAoC;AACpC,iDAA+B;AAC/B,oDAAkC;AAClC,gEAA8C"}
@@ -0,0 +1,15 @@
1
+ import { BaseMetaColumn } from "namirasoft-core";
2
+ import { ModelCategoryRow } from "../row/ModelCategoryRow";
3
+ import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
4
+ import { NamirasoftInferenceServer } from "../NamirasoftInferenceServer";
5
+ export declare class ModelCategoryMetaTable extends NSBaseMetaTable<NamirasoftInferenceServer, ModelCategoryRow> {
6
+ columns: {
7
+ id: BaseMetaColumn;
8
+ user_id: BaseMetaColumn;
9
+ entity_id: BaseMetaColumn;
10
+ category_id: BaseMetaColumn;
11
+ created_at: BaseMetaColumn;
12
+ updated_at: BaseMetaColumn;
13
+ };
14
+ constructor(database: NSBaseMetaDatabase<NamirasoftInferenceServer>);
15
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ModelCategoryMetaTable = void 0;
13
+ const namirasoft_core_1 = require("namirasoft-core");
14
+ const namirasoft_site_1 = require("namirasoft-site");
15
+ class ModelCategoryMetaTable extends namirasoft_site_1.NSBaseMetaTable {
16
+ constructor(database) {
17
+ super(database, "model_category", "Model Category", new namirasoft_core_1.BaseUUID(""));
18
+ this.columns = {
19
+ id: new namirasoft_core_1.BaseMetaColumn(this, "id", "ID", "Integer", true),
20
+ user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User ID", "String", true),
21
+ entity_id: new namirasoft_core_1.BaseMetaColumn(this, "entity_id", "Entity ID", "String", true),
22
+ category_id: new namirasoft_core_1.BaseMetaColumn(this, "category_id", "Category ID", "String", true),
23
+ created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
24
+ updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
25
+ };
26
+ this.back_end.get = (id) => __awaiter(this, void 0, void 0, function* () {
27
+ let server = this.database.getServer();
28
+ return yield server.model_category.Get(id);
29
+ });
30
+ this.back_end.list = (filters, page, size, sorts) => __awaiter(this, void 0, void 0, function* () {
31
+ let server = this.database.getServer();
32
+ return yield server.model_category.List(filters, page, size, sorts);
33
+ });
34
+ this.front_end.getUpdateLink = () => "";
35
+ }
36
+ }
37
+ exports.ModelCategoryMetaTable = ModelCategoryMetaTable;
38
+ ;
39
+ //# sourceMappingURL=ModelCategoryMetaTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModelCategoryMetaTable.js","sourceRoot":"","sources":["../../src/meta/ModelCategoryMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA2D;AAG3D,qDAAsE;AAGtE,MAAa,sBAAuB,SAAQ,iCAA4D;IAUpG,YAAY,QAAuD;QAE/D,KAAK,CAAC,QAAQ,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,IAAI,0BAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;QACtE,IAAI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C5C,CAAC;CACJ;AAjCD,wDAiCC;AAAA,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { BaseMetaColumn } from "namirasoft-core";
2
+ import { ModelFieldRow } from "../row/ModelFieldRow";
3
+ import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
4
+ import { NamirasoftInferenceServer } from "../NamirasoftInferenceServer";
5
+ export declare class ModelFieldMetaTable extends NSBaseMetaTable<NamirasoftInferenceServer, ModelFieldRow> {
6
+ columns: {
7
+ id: BaseMetaColumn;
8
+ user_id: BaseMetaColumn;
9
+ entity_id: BaseMetaColumn;
10
+ field_id: BaseMetaColumn;
11
+ value: BaseMetaColumn;
12
+ created_at: BaseMetaColumn;
13
+ updated_at: BaseMetaColumn;
14
+ };
15
+ constructor(database: NSBaseMetaDatabase<NamirasoftInferenceServer>);
16
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ModelFieldMetaTable = void 0;
13
+ const namirasoft_core_1 = require("namirasoft-core");
14
+ const namirasoft_site_1 = require("namirasoft-site");
15
+ class ModelFieldMetaTable extends namirasoft_site_1.NSBaseMetaTable {
16
+ constructor(database) {
17
+ super(database, "model_field", "Model Field", new namirasoft_core_1.BaseUUID(""));
18
+ this.columns = {
19
+ id: new namirasoft_core_1.BaseMetaColumn(this, "id", "ID", "Integer", true),
20
+ user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User ID", "String", true),
21
+ entity_id: new namirasoft_core_1.BaseMetaColumn(this, "entity_id", "Entity ID", "String", true),
22
+ field_id: new namirasoft_core_1.BaseMetaColumn(this, "field_id", "Field ID", "String", true),
23
+ value: new namirasoft_core_1.BaseMetaColumn(this, "value", "Value", "String", false),
24
+ created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
25
+ updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
26
+ };
27
+ this.back_end.get = (id) => __awaiter(this, void 0, void 0, function* () {
28
+ let server = this.database.getServer();
29
+ return yield server.model_field.Get(id);
30
+ });
31
+ this.back_end.list = (filters, page, size, sorts) => __awaiter(this, void 0, void 0, function* () {
32
+ let server = this.database.getServer();
33
+ return yield server.model_field.List(filters, page, size, sorts);
34
+ });
35
+ }
36
+ }
37
+ exports.ModelFieldMetaTable = ModelFieldMetaTable;
38
+ ;
39
+ //# sourceMappingURL=ModelFieldMetaTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModelFieldMetaTable.js","sourceRoot":"","sources":["../../src/meta/ModelFieldMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA2D;AAG3D,qDAAsE;AAGtE,MAAa,mBAAoB,SAAQ,iCAAyD;IAW9F,YAAY,QAAuD;QAE/D,KAAK,CAAC,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,IAAI,0BAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;QAChE,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC;YACzD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,SAAS,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC7E,QAAQ,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC1E,KAAK,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC;YAClE,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAO,EAAU,EAAE,EAAE;YAErC,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC5C,CAAC,CAAA,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAO,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB,EAAE,EAAE;YAEzH,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QACrE,CAAC,CAAA,CAAC;IACN,CAAC;CACJ;AAlCD,kDAkCC;AAAA,CAAC"}
@@ -0,0 +1,62 @@
1
+ import { BaseMetaColumn } from "namirasoft-core";
2
+ import { ModelRow } from "../row/ModelRow";
3
+ import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
4
+ import { NamirasoftInferenceServer } from "../NamirasoftInferenceServer";
5
+ export declare class ModelMetaTable extends NSBaseMetaTable<NamirasoftInferenceServer, ModelRow> {
6
+ columns: {
7
+ id: BaseMetaColumn;
8
+ user_id: BaseMetaColumn;
9
+ workspace_id: BaseMetaColumn;
10
+ name: BaseMetaColumn;
11
+ model_company: BaseMetaColumn;
12
+ model_name: BaseMetaColumn;
13
+ model_api_key_credential_id: BaseMetaColumn;
14
+ cost_limit_per_month: BaseMetaColumn;
15
+ cost_limit_per_week: BaseMetaColumn;
16
+ cost_limit_per_day: BaseMetaColumn;
17
+ cost_limit_per_chat: BaseMetaColumn;
18
+ cost_limit_per_run: BaseMetaColumn;
19
+ total_token: BaseMetaColumn;
20
+ total_token_input: BaseMetaColumn;
21
+ total_token_output: BaseMetaColumn;
22
+ total_paid: BaseMetaColumn;
23
+ total_paid_input: BaseMetaColumn;
24
+ total_paid_output: BaseMetaColumn;
25
+ total_cost: BaseMetaColumn;
26
+ total_cost_input: BaseMetaColumn;
27
+ total_cost_output: BaseMetaColumn;
28
+ total_monthly_started_at: BaseMetaColumn;
29
+ total_monthly_token: BaseMetaColumn;
30
+ total_monthly_token_input: BaseMetaColumn;
31
+ total_monthly_token_output: BaseMetaColumn;
32
+ total_monthly_paid: BaseMetaColumn;
33
+ total_monthly_paid_input: BaseMetaColumn;
34
+ total_monthly_paid_output: BaseMetaColumn;
35
+ total_monthly_cost: BaseMetaColumn;
36
+ total_monthly_cost_input: BaseMetaColumn;
37
+ total_monthly_cost_output: BaseMetaColumn;
38
+ total_weekly_started_at: BaseMetaColumn;
39
+ total_weekly_token: BaseMetaColumn;
40
+ total_weekly_token_input: BaseMetaColumn;
41
+ total_weekly_token_output: BaseMetaColumn;
42
+ total_weekly_paid: BaseMetaColumn;
43
+ total_weekly_paid_input: BaseMetaColumn;
44
+ total_weekly_paid_output: BaseMetaColumn;
45
+ total_weekly_cost: BaseMetaColumn;
46
+ total_weekly_cost_input: BaseMetaColumn;
47
+ total_weekly_cost_output: BaseMetaColumn;
48
+ total_daily_started_at: BaseMetaColumn;
49
+ total_daily_token: BaseMetaColumn;
50
+ total_daily_token_input: BaseMetaColumn;
51
+ total_daily_token_output: BaseMetaColumn;
52
+ total_daily_paid: BaseMetaColumn;
53
+ total_daily_paid_input: BaseMetaColumn;
54
+ total_daily_paid_output: BaseMetaColumn;
55
+ total_daily_cost: BaseMetaColumn;
56
+ total_daily_cost_input: BaseMetaColumn;
57
+ total_daily_cost_output: BaseMetaColumn;
58
+ created_at: BaseMetaColumn;
59
+ updated_at: BaseMetaColumn;
60
+ };
61
+ constructor(database: NSBaseMetaDatabase<NamirasoftInferenceServer>);
62
+ }