namirasoft-inference 1.5.8 → 1.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/NamirasoftInferenceServer.d.ts +33 -33
- package/dist/NamirasoftInferenceServer.js +39 -39
- package/dist/NamirasoftInferenceServer.js.map +1 -1
- package/dist/NamirasoftInferenceServerFailover.d.ts +33 -33
- package/dist/NamirasoftInferenceServerFailover.js +79 -79
- package/dist/NamirasoftInferenceServerLoadBalancer.d.ts +33 -33
- package/dist/NamirasoftInferenceServerLoadBalancer.js +79 -79
- package/dist/NamirasoftInferenceServerModel.d.ts +32 -32
- package/dist/NamirasoftInferenceServerModel.js +79 -79
- package/dist/NamirasoftInferenceServerRace.d.ts +33 -33
- package/dist/NamirasoftInferenceServerRace.js +79 -79
- package/dist/command/FailoverAskAsyncCommand.d.ts +5 -5
- package/dist/command/FailoverAskAsyncCommand.js +75 -75
- package/dist/command/FailoverAskCommand.d.ts +5 -5
- package/dist/command/FailoverAskCommand.js +75 -75
- package/dist/command/FailoverCommand.d.ts +4 -4
- package/dist/command/FailoverCommand.js +26 -26
- package/dist/command/FailoverCreateCommand.d.ts +5 -5
- package/dist/command/FailoverCreateCommand.js +75 -75
- package/dist/command/FailoverDeleteCommand.d.ts +5 -5
- package/dist/command/FailoverDeleteCommand.js +37 -37
- package/dist/command/FailoverGetCommand.d.ts +5 -5
- package/dist/command/FailoverGetCommand.js +37 -37
- package/dist/command/FailoverListCommand.d.ts +5 -5
- package/dist/command/FailoverListCommand.js +37 -37
- package/dist/command/FailoverUpdateCommand.d.ts +5 -5
- package/dist/command/FailoverUpdateCommand.js +75 -75
- package/dist/command/LoadBalancerAskAsyncCommand.d.ts +5 -5
- package/dist/command/LoadBalancerAskAsyncCommand.js +75 -75
- package/dist/command/LoadBalancerCommand.js +26 -26
- package/dist/command/LoadBalancerCreateCommand.js +84 -84
- package/dist/command/LoadBalancerUpdateCommand.js +84 -84
- package/dist/command/ModelAskAsyncCommand.d.ts +5 -5
- package/dist/command/ModelAskAsyncCommand.js +75 -75
- package/dist/command/ModelCommand.js +26 -26
- package/dist/command/RaceAskAsyncCommand.d.ts +5 -5
- package/dist/command/RaceAskAsyncCommand.js +75 -75
- package/dist/command/RaceAskCommand.d.ts +5 -5
- package/dist/command/RaceAskCommand.js +75 -75
- package/dist/command/RaceCommand.d.ts +4 -4
- package/dist/command/RaceCommand.js +26 -26
- package/dist/command/RaceCreateCommand.d.ts +5 -5
- package/dist/command/RaceCreateCommand.js +75 -75
- package/dist/command/RaceDeleteCommand.d.ts +5 -5
- package/dist/command/RaceDeleteCommand.js +37 -37
- package/dist/command/RaceGetCommand.d.ts +5 -5
- package/dist/command/RaceGetCommand.js +37 -37
- package/dist/command/RaceListCommand.d.ts +5 -5
- package/dist/command/RaceListCommand.js +37 -37
- package/dist/command/RaceUpdateCommand.d.ts +5 -5
- package/dist/command/RaceUpdateCommand.js +75 -75
- package/dist/command/cli.js +39 -39
- package/dist/enum/ChatInferencerType.d.ts +6 -6
- package/dist/enum/ChatInferencerType.js +10 -10
- package/dist/enum/FailoverTargetInferencerType.d.ts +6 -6
- package/dist/enum/FailoverTargetInferencerType.js +10 -10
- package/dist/enum/InteractionInferencerType.d.ts +6 -6
- package/dist/enum/InteractionInferencerType.js +10 -10
- package/dist/enum/LoadBalancerTargetInferencerType.d.ts +6 -6
- package/dist/enum/LoadBalancerTargetInferencerType.js +10 -10
- package/dist/enum/RaceTargetInferencerType.d.ts +6 -6
- package/dist/enum/RaceTargetInferencerType.js +10 -10
- package/dist/index.d.ts +136 -136
- package/dist/index.js +152 -152
- package/dist/meta/ChatMetaTable.d.ts +23 -23
- package/dist/meta/ChatMetaTable.js +47 -47
- package/dist/meta/ChatMetaTable.js.map +1 -1
- package/dist/meta/FailoverMetaTable.d.ts +16 -16
- package/dist/meta/FailoverMetaTable.js +38 -38
- package/dist/meta/FailoverTargetMetaTable.d.ts +17 -17
- package/dist/meta/FailoverTargetMetaTable.js +26 -26
- package/dist/meta/InteractionMetaTable.d.ts +35 -35
- package/dist/meta/InteractionMetaTable.js +59 -59
- package/dist/meta/LoadBalancerTargetMetaTable.d.ts +16 -16
- package/dist/meta/LoadBalancerTargetMetaTable.js +25 -25
- package/dist/meta/NamirasoftInferenceMetaDatabase.d.ts +35 -35
- package/dist/meta/NamirasoftInferenceMetaDatabase.js +48 -48
- package/dist/meta/RaceMetaTable.d.ts +16 -16
- package/dist/meta/RaceMetaTable.js +38 -38
- package/dist/meta/RaceTargetMetaTable.d.ts +15 -15
- package/dist/meta/RaceTargetMetaTable.js +24 -24
- package/dist/row/AskAsyncResponseRow.d.ts +4 -4
- package/dist/row/AskAsyncResponseRow.js +2 -2
- package/dist/row/ChatRow.d.ts +17 -17
- package/dist/row/FailoverFullRow.d.ts +11 -11
- package/dist/row/FailoverFullRow.js +2 -2
- package/dist/row/FailoverInputRow.d.ts +7 -7
- package/dist/row/FailoverInputRow.js +2 -2
- package/dist/row/FailoverRow.d.ts +9 -9
- package/dist/row/FailoverRow.js +2 -2
- package/dist/row/FailoverTargetInputRow.d.ts +6 -6
- package/dist/row/FailoverTargetInputRow.js +2 -2
- package/dist/row/FailoverTargetRow.d.ts +11 -11
- package/dist/row/FailoverTargetRow.js +2 -2
- package/dist/row/InteractionRow.d.ts +32 -32
- package/dist/row/LoadBalancerFullRow.d.ts +13 -13
- package/dist/row/LoadBalancerInputRow.d.ts +9 -9
- package/dist/row/LoadBalancerTargetInputRow.d.ts +6 -6
- package/dist/row/LoadBalancerTargetInputRow.js +2 -2
- package/dist/row/LoadBalancerTargetRow.d.ts +10 -10
- package/dist/row/LoadBalancerTargetRow.js +2 -2
- package/dist/row/RaceFullRow.d.ts +11 -11
- package/dist/row/RaceFullRow.js +2 -2
- package/dist/row/RaceInputRow.d.ts +7 -7
- package/dist/row/RaceInputRow.js +2 -2
- package/dist/row/RaceRow.d.ts +9 -9
- package/dist/row/RaceRow.js +2 -2
- package/dist/row/RaceTargetInputRow.d.ts +5 -5
- package/dist/row/RaceTargetInputRow.js +2 -2
- package/dist/row/RaceTargetRow.d.ts +9 -9
- package/dist/row/RaceTargetRow.js +2 -2
- package/package.json +1 -1
- package/src/NamirasoftInferenceServer.ts +1 -1
- package/src/meta/ChatMetaTable.ts +2 -2
- package/src/row/ChatRow.ts +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { NSABaseServer } from "namirasoft-account";
|
|
2
|
-
import { NamirasoftInferenceServerChat } from "./NamirasoftInferenceServerChat";
|
|
3
|
-
import { NamirasoftInferenceServerFailover } from "./NamirasoftInferenceServerFailover";
|
|
4
|
-
import { NamirasoftInferenceServerHealth } from "./NamirasoftInferenceServerHealth";
|
|
5
|
-
import { NamirasoftInferenceServerInteraction } from "./NamirasoftInferenceServerInteraction";
|
|
6
|
-
import { NamirasoftInferenceServerLLM } from "./NamirasoftInferenceServerLLM";
|
|
7
|
-
import { NamirasoftInferenceServerLoadBalancer } from "./NamirasoftInferenceServerLoadBalancer";
|
|
8
|
-
import { NamirasoftInferenceServerMetrics } from "./NamirasoftInferenceServerMetrics";
|
|
9
|
-
import { NamirasoftInferenceServerModel } from "./NamirasoftInferenceServerModel";
|
|
10
|
-
import { NamirasoftInferenceServerModelCategory } from "./NamirasoftInferenceServerModelCategory";
|
|
11
|
-
import { NamirasoftInferenceServerModelField } from "./NamirasoftInferenceServerModelField";
|
|
12
|
-
import { NamirasoftInferenceServerModelTag } from "./NamirasoftInferenceServerModelTag";
|
|
13
|
-
import { NamirasoftInferenceServerRace } from "./NamirasoftInferenceServerRace";
|
|
14
|
-
import { NamirasoftInferenceServerUsage } from "./NamirasoftInferenceServerUsage";
|
|
15
|
-
import { NamirasoftInferenceServerValue } from "./NamirasoftInferenceServerValue";
|
|
16
|
-
import { TokenManager } from "namirasoft-account";
|
|
17
|
-
export declare class NamirasoftInferenceServer extends NSABaseServer {
|
|
18
|
-
health: NamirasoftInferenceServerHealth;
|
|
19
|
-
metrics: NamirasoftInferenceServerMetrics;
|
|
20
|
-
value: NamirasoftInferenceServerValue;
|
|
21
|
-
model_category: NamirasoftInferenceServerModelCategory;
|
|
22
|
-
model_field: NamirasoftInferenceServerModelField;
|
|
23
|
-
model_tag: NamirasoftInferenceServerModelTag;
|
|
24
|
-
model: NamirasoftInferenceServerModel;
|
|
25
|
-
load_balancer: NamirasoftInferenceServerLoadBalancer;
|
|
26
|
-
failover: NamirasoftInferenceServerFailover;
|
|
27
|
-
race: NamirasoftInferenceServerRace;
|
|
28
|
-
llm: NamirasoftInferenceServerLLM;
|
|
29
|
-
chat: NamirasoftInferenceServerChat;
|
|
30
|
-
interaction: NamirasoftInferenceServerInteraction;
|
|
31
|
-
usage: NamirasoftInferenceServerUsage;
|
|
32
|
-
constructor(base_url: string, token_manager: TokenManager, onError: (error: Error) => void);
|
|
33
|
-
}
|
|
1
|
+
import { NSABaseServer } from "namirasoft-account";
|
|
2
|
+
import { NamirasoftInferenceServerChat } from "./NamirasoftInferenceServerChat";
|
|
3
|
+
import { NamirasoftInferenceServerFailover } from "./NamirasoftInferenceServerFailover";
|
|
4
|
+
import { NamirasoftInferenceServerHealth } from "./NamirasoftInferenceServerHealth";
|
|
5
|
+
import { NamirasoftInferenceServerInteraction } from "./NamirasoftInferenceServerInteraction";
|
|
6
|
+
import { NamirasoftInferenceServerLLM } from "./NamirasoftInferenceServerLLM";
|
|
7
|
+
import { NamirasoftInferenceServerLoadBalancer } from "./NamirasoftInferenceServerLoadBalancer";
|
|
8
|
+
import { NamirasoftInferenceServerMetrics } from "./NamirasoftInferenceServerMetrics";
|
|
9
|
+
import { NamirasoftInferenceServerModel } from "./NamirasoftInferenceServerModel";
|
|
10
|
+
import { NamirasoftInferenceServerModelCategory } from "./NamirasoftInferenceServerModelCategory";
|
|
11
|
+
import { NamirasoftInferenceServerModelField } from "./NamirasoftInferenceServerModelField";
|
|
12
|
+
import { NamirasoftInferenceServerModelTag } from "./NamirasoftInferenceServerModelTag";
|
|
13
|
+
import { NamirasoftInferenceServerRace } from "./NamirasoftInferenceServerRace";
|
|
14
|
+
import { NamirasoftInferenceServerUsage } from "./NamirasoftInferenceServerUsage";
|
|
15
|
+
import { NamirasoftInferenceServerValue } from "./NamirasoftInferenceServerValue";
|
|
16
|
+
import { TokenManager } from "namirasoft-account";
|
|
17
|
+
export declare class NamirasoftInferenceServer extends NSABaseServer {
|
|
18
|
+
health: NamirasoftInferenceServerHealth;
|
|
19
|
+
metrics: NamirasoftInferenceServerMetrics;
|
|
20
|
+
value: NamirasoftInferenceServerValue;
|
|
21
|
+
model_category: NamirasoftInferenceServerModelCategory;
|
|
22
|
+
model_field: NamirasoftInferenceServerModelField;
|
|
23
|
+
model_tag: NamirasoftInferenceServerModelTag;
|
|
24
|
+
model: NamirasoftInferenceServerModel;
|
|
25
|
+
load_balancer: NamirasoftInferenceServerLoadBalancer;
|
|
26
|
+
failover: NamirasoftInferenceServerFailover;
|
|
27
|
+
race: NamirasoftInferenceServerRace;
|
|
28
|
+
llm: NamirasoftInferenceServerLLM;
|
|
29
|
+
chat: NamirasoftInferenceServerChat;
|
|
30
|
+
interaction: NamirasoftInferenceServerInteraction;
|
|
31
|
+
usage: NamirasoftInferenceServerUsage;
|
|
32
|
+
constructor(base_url: string, token_manager: TokenManager, onError: (error: Error) => void);
|
|
33
|
+
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NamirasoftInferenceServer = void 0;
|
|
4
|
-
const namirasoft_account_1 = require("namirasoft-account");
|
|
5
|
-
const NamirasoftInferenceServerChat_1 = require("./NamirasoftInferenceServerChat");
|
|
6
|
-
const NamirasoftInferenceServerFailover_1 = require("./NamirasoftInferenceServerFailover");
|
|
7
|
-
const NamirasoftInferenceServerHealth_1 = require("./NamirasoftInferenceServerHealth");
|
|
8
|
-
const NamirasoftInferenceServerInteraction_1 = require("./NamirasoftInferenceServerInteraction");
|
|
9
|
-
const NamirasoftInferenceServerLLM_1 = require("./NamirasoftInferenceServerLLM");
|
|
10
|
-
const NamirasoftInferenceServerLoadBalancer_1 = require("./NamirasoftInferenceServerLoadBalancer");
|
|
11
|
-
const NamirasoftInferenceServerMetrics_1 = require("./NamirasoftInferenceServerMetrics");
|
|
12
|
-
const NamirasoftInferenceServerModel_1 = require("./NamirasoftInferenceServerModel");
|
|
13
|
-
const NamirasoftInferenceServerModelCategory_1 = require("./NamirasoftInferenceServerModelCategory");
|
|
14
|
-
const NamirasoftInferenceServerModelField_1 = require("./NamirasoftInferenceServerModelField");
|
|
15
|
-
const NamirasoftInferenceServerModelTag_1 = require("./NamirasoftInferenceServerModelTag");
|
|
16
|
-
const NamirasoftInferenceServerRace_1 = require("./NamirasoftInferenceServerRace");
|
|
17
|
-
const NamirasoftInferenceServerUsage_1 = require("./NamirasoftInferenceServerUsage");
|
|
18
|
-
const NamirasoftInferenceServerValue_1 = require("./NamirasoftInferenceServerValue");
|
|
19
|
-
class NamirasoftInferenceServer extends namirasoft_account_1.NSABaseServer {
|
|
20
|
-
constructor(base_url, token_manager, onError) {
|
|
21
|
-
super(base_url, `1.5.
|
|
22
|
-
this.health = new NamirasoftInferenceServerHealth_1.NamirasoftInferenceServerHealth(this);
|
|
23
|
-
this.metrics = new NamirasoftInferenceServerMetrics_1.NamirasoftInferenceServerMetrics(this);
|
|
24
|
-
this.value = new NamirasoftInferenceServerValue_1.NamirasoftInferenceServerValue(this);
|
|
25
|
-
this.model_category = new NamirasoftInferenceServerModelCategory_1.NamirasoftInferenceServerModelCategory(this);
|
|
26
|
-
this.model_field = new NamirasoftInferenceServerModelField_1.NamirasoftInferenceServerModelField(this);
|
|
27
|
-
this.model_tag = new NamirasoftInferenceServerModelTag_1.NamirasoftInferenceServerModelTag(this);
|
|
28
|
-
this.model = new NamirasoftInferenceServerModel_1.NamirasoftInferenceServerModel(this);
|
|
29
|
-
this.load_balancer = new NamirasoftInferenceServerLoadBalancer_1.NamirasoftInferenceServerLoadBalancer(this);
|
|
30
|
-
this.failover = new NamirasoftInferenceServerFailover_1.NamirasoftInferenceServerFailover(this);
|
|
31
|
-
this.race = new NamirasoftInferenceServerRace_1.NamirasoftInferenceServerRace(this);
|
|
32
|
-
this.llm = new NamirasoftInferenceServerLLM_1.NamirasoftInferenceServerLLM(this);
|
|
33
|
-
this.chat = new NamirasoftInferenceServerChat_1.NamirasoftInferenceServerChat(this);
|
|
34
|
-
this.interaction = new NamirasoftInferenceServerInteraction_1.NamirasoftInferenceServerInteraction(this);
|
|
35
|
-
this.usage = new NamirasoftInferenceServerUsage_1.NamirasoftInferenceServerUsage(this);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.NamirasoftInferenceServer = NamirasoftInferenceServer;
|
|
39
|
-
;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NamirasoftInferenceServer = void 0;
|
|
4
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
5
|
+
const NamirasoftInferenceServerChat_1 = require("./NamirasoftInferenceServerChat");
|
|
6
|
+
const NamirasoftInferenceServerFailover_1 = require("./NamirasoftInferenceServerFailover");
|
|
7
|
+
const NamirasoftInferenceServerHealth_1 = require("./NamirasoftInferenceServerHealth");
|
|
8
|
+
const NamirasoftInferenceServerInteraction_1 = require("./NamirasoftInferenceServerInteraction");
|
|
9
|
+
const NamirasoftInferenceServerLLM_1 = require("./NamirasoftInferenceServerLLM");
|
|
10
|
+
const NamirasoftInferenceServerLoadBalancer_1 = require("./NamirasoftInferenceServerLoadBalancer");
|
|
11
|
+
const NamirasoftInferenceServerMetrics_1 = require("./NamirasoftInferenceServerMetrics");
|
|
12
|
+
const NamirasoftInferenceServerModel_1 = require("./NamirasoftInferenceServerModel");
|
|
13
|
+
const NamirasoftInferenceServerModelCategory_1 = require("./NamirasoftInferenceServerModelCategory");
|
|
14
|
+
const NamirasoftInferenceServerModelField_1 = require("./NamirasoftInferenceServerModelField");
|
|
15
|
+
const NamirasoftInferenceServerModelTag_1 = require("./NamirasoftInferenceServerModelTag");
|
|
16
|
+
const NamirasoftInferenceServerRace_1 = require("./NamirasoftInferenceServerRace");
|
|
17
|
+
const NamirasoftInferenceServerUsage_1 = require("./NamirasoftInferenceServerUsage");
|
|
18
|
+
const NamirasoftInferenceServerValue_1 = require("./NamirasoftInferenceServerValue");
|
|
19
|
+
class NamirasoftInferenceServer extends namirasoft_account_1.NSABaseServer {
|
|
20
|
+
constructor(base_url, token_manager, onError) {
|
|
21
|
+
super(base_url, `1.5.10`, token_manager, onError);
|
|
22
|
+
this.health = new NamirasoftInferenceServerHealth_1.NamirasoftInferenceServerHealth(this);
|
|
23
|
+
this.metrics = new NamirasoftInferenceServerMetrics_1.NamirasoftInferenceServerMetrics(this);
|
|
24
|
+
this.value = new NamirasoftInferenceServerValue_1.NamirasoftInferenceServerValue(this);
|
|
25
|
+
this.model_category = new NamirasoftInferenceServerModelCategory_1.NamirasoftInferenceServerModelCategory(this);
|
|
26
|
+
this.model_field = new NamirasoftInferenceServerModelField_1.NamirasoftInferenceServerModelField(this);
|
|
27
|
+
this.model_tag = new NamirasoftInferenceServerModelTag_1.NamirasoftInferenceServerModelTag(this);
|
|
28
|
+
this.model = new NamirasoftInferenceServerModel_1.NamirasoftInferenceServerModel(this);
|
|
29
|
+
this.load_balancer = new NamirasoftInferenceServerLoadBalancer_1.NamirasoftInferenceServerLoadBalancer(this);
|
|
30
|
+
this.failover = new NamirasoftInferenceServerFailover_1.NamirasoftInferenceServerFailover(this);
|
|
31
|
+
this.race = new NamirasoftInferenceServerRace_1.NamirasoftInferenceServerRace(this);
|
|
32
|
+
this.llm = new NamirasoftInferenceServerLLM_1.NamirasoftInferenceServerLLM(this);
|
|
33
|
+
this.chat = new NamirasoftInferenceServerChat_1.NamirasoftInferenceServerChat(this);
|
|
34
|
+
this.interaction = new NamirasoftInferenceServerInteraction_1.NamirasoftInferenceServerInteraction(this);
|
|
35
|
+
this.usage = new NamirasoftInferenceServerUsage_1.NamirasoftInferenceServerUsage(this);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.NamirasoftInferenceServer = NamirasoftInferenceServer;
|
|
39
|
+
;
|
|
40
40
|
//# sourceMappingURL=NamirasoftInferenceServer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftInferenceServer.js","sourceRoot":"","sources":["../src/NamirasoftInferenceServer.ts"],"names":[],"mappings":";;;AAoBA,2DAAmD;AACnD,mFAAgF;AAChF,2FAAwF;AACxF,uFAAoF;AACpF,iGAA8F;AAC9F,iFAA8E;AAC9E,mGAAgG;AAChG,yFAAsF;AACtF,qFAAkF;AAClF,qGAAkG;AAClG,+FAA4F;AAC5F,2FAAwF;AACxF,mFAAgF;AAChF,qFAAkF;AAClF,qFAAkF;AAGlF,MAAa,yBAA0B,SAAQ,kCAAa;IAgBxD,YAAY,QAAgB,EAAE,aAA2B,EAAE,OAA+B;QAEtF,KAAK,CAAC,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"NamirasoftInferenceServer.js","sourceRoot":"","sources":["../src/NamirasoftInferenceServer.ts"],"names":[],"mappings":";;;AAoBA,2DAAmD;AACnD,mFAAgF;AAChF,2FAAwF;AACxF,uFAAoF;AACpF,iGAA8F;AAC9F,iFAA8E;AAC9E,mGAAgG;AAChG,yFAAsF;AACtF,qFAAkF;AAClF,qGAAkG;AAClG,+FAA4F;AAC5F,2FAAwF;AACxF,mFAAgF;AAChF,qFAAkF;AAClF,qFAAkF;AAGlF,MAAa,yBAA0B,SAAQ,kCAAa;IAgBxD,YAAY,QAAgB,EAAE,aAA2B,EAAE,OAA+B;QAEtF,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,MAAM,GAAG,IAAI,iEAA+B,CAAC,IAAI,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,IAAI,mEAAgC,CAAC,IAAI,CAAC,CAAC;QAC1D,IAAI,CAAC,KAAK,GAAG,IAAI,+DAA8B,CAAC,IAAI,CAAC,CAAC;QACtD,IAAI,CAAC,cAAc,GAAG,IAAI,+EAAsC,CAAC,IAAI,CAAC,CAAC;QACvE,IAAI,CAAC,WAAW,GAAG,IAAI,yEAAmC,CAAC,IAAI,CAAC,CAAC;QACjE,IAAI,CAAC,SAAS,GAAG,IAAI,qEAAiC,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,CAAC,KAAK,GAAG,IAAI,+DAA8B,CAAC,IAAI,CAAC,CAAC;QACtD,IAAI,CAAC,aAAa,GAAG,IAAI,6EAAqC,CAAC,IAAI,CAAC,CAAC;QACrE,IAAI,CAAC,QAAQ,GAAG,IAAI,qEAAiC,CAAC,IAAI,CAAC,CAAC;QAC5D,IAAI,CAAC,IAAI,GAAG,IAAI,6DAA6B,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,CAAC,GAAG,GAAG,IAAI,2DAA4B,CAAC,IAAI,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,GAAG,IAAI,6DAA6B,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,CAAC,WAAW,GAAG,IAAI,2EAAoC,CAAC,IAAI,CAAC,CAAC;QAClE,IAAI,CAAC,KAAK,GAAG,IAAI,+DAA8B,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;CACJ;AAlCD,8DAkCC;AAAA,CAAC"}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { AskAsyncResponseRow } from "./row/AskAsyncResponseRow";
|
|
2
|
-
import { BaseServerConfig } from "namirasoft-core";
|
|
3
|
-
import { FailoverFullRow } from "./row/FailoverFullRow";
|
|
4
|
-
import { FailoverInputRow } from "./row/FailoverInputRow";
|
|
5
|
-
import { FailoverRow } from "./row/FailoverRow";
|
|
6
|
-
import { FilterItem } from "namirasoft-core";
|
|
7
|
-
import { InteractionRow } from "./row/InteractionRow";
|
|
8
|
-
import { NamirasoftInferenceServer } from "./NamirasoftInferenceServer";
|
|
9
|
-
import { NamirasoftInferenceServerBase } from "./NamirasoftInferenceServerBase";
|
|
10
|
-
import { SortItem } from "namirasoft-core";
|
|
11
|
-
export declare class NamirasoftInferenceServerFailover extends NamirasoftInferenceServerBase {
|
|
12
|
-
constructor(server: NamirasoftInferenceServer);
|
|
13
|
-
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{
|
|
14
|
-
rows: FailoverRow[];
|
|
15
|
-
count: number;
|
|
16
|
-
}>;
|
|
17
|
-
Get(id: (string | null), config?: BaseServerConfig<any>): Promise<FailoverFullRow>;
|
|
18
|
-
Create(body: FailoverInputRow, config?: BaseServerConfig<any>): Promise<FailoverRow>;
|
|
19
|
-
Update(id: (string | null), body: FailoverInputRow, config?: BaseServerConfig<any>): Promise<FailoverRow>;
|
|
20
|
-
Delete(id: string, config?: BaseServerConfig<any>): Promise<void>;
|
|
21
|
-
Ask(failover_id: string, body: {
|
|
22
|
-
chat_id: (string | null);
|
|
23
|
-
run_id: (string | null);
|
|
24
|
-
message: string;
|
|
25
|
-
memory_limit: (number | null);
|
|
26
|
-
}, config?: BaseServerConfig<any>): Promise<InteractionRow>;
|
|
27
|
-
AskAsync(failover_id: string, body: {
|
|
28
|
-
chat_id: (string | null);
|
|
29
|
-
run_id: (string | null);
|
|
30
|
-
message: string;
|
|
31
|
-
memory_limit: (number | null);
|
|
32
|
-
}, config?: BaseServerConfig<any>): Promise<AskAsyncResponseRow>;
|
|
33
|
-
}
|
|
1
|
+
import { AskAsyncResponseRow } from "./row/AskAsyncResponseRow";
|
|
2
|
+
import { BaseServerConfig } from "namirasoft-core";
|
|
3
|
+
import { FailoverFullRow } from "./row/FailoverFullRow";
|
|
4
|
+
import { FailoverInputRow } from "./row/FailoverInputRow";
|
|
5
|
+
import { FailoverRow } from "./row/FailoverRow";
|
|
6
|
+
import { FilterItem } from "namirasoft-core";
|
|
7
|
+
import { InteractionRow } from "./row/InteractionRow";
|
|
8
|
+
import { NamirasoftInferenceServer } from "./NamirasoftInferenceServer";
|
|
9
|
+
import { NamirasoftInferenceServerBase } from "./NamirasoftInferenceServerBase";
|
|
10
|
+
import { SortItem } from "namirasoft-core";
|
|
11
|
+
export declare class NamirasoftInferenceServerFailover extends NamirasoftInferenceServerBase {
|
|
12
|
+
constructor(server: NamirasoftInferenceServer);
|
|
13
|
+
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{
|
|
14
|
+
rows: FailoverRow[];
|
|
15
|
+
count: number;
|
|
16
|
+
}>;
|
|
17
|
+
Get(id: (string | null), config?: BaseServerConfig<any>): Promise<FailoverFullRow>;
|
|
18
|
+
Create(body: FailoverInputRow, config?: BaseServerConfig<any>): Promise<FailoverRow>;
|
|
19
|
+
Update(id: (string | null), body: FailoverInputRow, config?: BaseServerConfig<any>): Promise<FailoverRow>;
|
|
20
|
+
Delete(id: string, config?: BaseServerConfig<any>): Promise<void>;
|
|
21
|
+
Ask(failover_id: string, body: {
|
|
22
|
+
chat_id: (string | null);
|
|
23
|
+
run_id: (string | null);
|
|
24
|
+
message: string;
|
|
25
|
+
memory_limit: (number | null);
|
|
26
|
+
}, config?: BaseServerConfig<any>): Promise<InteractionRow>;
|
|
27
|
+
AskAsync(failover_id: string, body: {
|
|
28
|
+
chat_id: (string | null);
|
|
29
|
+
run_id: (string | null);
|
|
30
|
+
message: string;
|
|
31
|
+
memory_limit: (number | null);
|
|
32
|
+
}, config?: BaseServerConfig<any>): Promise<AskAsyncResponseRow>;
|
|
33
|
+
}
|
|
@@ -1,80 +1,80 @@
|
|
|
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.NamirasoftInferenceServerFailover = void 0;
|
|
13
|
-
const namirasoft_core_1 = require("namirasoft-core");
|
|
14
|
-
const NamirasoftInferenceServerBase_1 = require("./NamirasoftInferenceServerBase");
|
|
15
|
-
const namirasoft_core_2 = require("namirasoft-core");
|
|
16
|
-
class NamirasoftInferenceServerFailover extends NamirasoftInferenceServerBase_1.NamirasoftInferenceServerBase {
|
|
17
|
-
constructor(server) {
|
|
18
|
-
super(server);
|
|
19
|
-
this.List = this.List.bind(this);
|
|
20
|
-
this.Get = this.Get.bind(this);
|
|
21
|
-
this.Create = this.Create.bind(this);
|
|
22
|
-
this.Update = this.Update.bind(this);
|
|
23
|
-
this.Delete = this.Delete.bind(this);
|
|
24
|
-
this.Ask = this.Ask.bind(this);
|
|
25
|
-
this.AskAsync = this.AskAsync.bind(this);
|
|
26
|
-
}
|
|
27
|
-
List(filters, page, size, sorts, all_workspaces, config) {
|
|
28
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters);
|
|
30
|
-
let sorts_string_value = namirasoft_core_2.SortItem.stringify(sorts);
|
|
31
|
-
let path = `/failover/list`;
|
|
32
|
-
let { data } = yield this.server._get(path, { filters: filters_string_value, page, size, sorts: sorts_string_value, all_workspaces }, config);
|
|
33
|
-
return data;
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
Get(id, config) {
|
|
37
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
let path = `/failover/${id}`;
|
|
39
|
-
let { data } = yield this.server._get(path, {}, config);
|
|
40
|
-
return data;
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
Create(body, config) {
|
|
44
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
let path = `/failover`;
|
|
46
|
-
let { data } = yield this.server._post(path, {}, body, config);
|
|
47
|
-
return data;
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
Update(id, body, config) {
|
|
51
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
let path = `/failover/${id}`;
|
|
53
|
-
let { data } = yield this.server._put(path, {}, body, config);
|
|
54
|
-
return data;
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
Delete(id, config) {
|
|
58
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
let path = `/failover/${id}`;
|
|
60
|
-
yield this.server._delete(path, {}, config);
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
Ask(failover_id, body, config) {
|
|
64
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
-
let path = `/failover/${failover_id}/ask`;
|
|
66
|
-
let { data } = yield this.server._post(path, {}, body, config);
|
|
67
|
-
return data;
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
AskAsync(failover_id, body, config) {
|
|
71
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
let path = `/failover/${failover_id}/ask-async`;
|
|
73
|
-
let { data } = yield this.server._post(path, {}, body, config);
|
|
74
|
-
return data;
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
exports.NamirasoftInferenceServerFailover = NamirasoftInferenceServerFailover;
|
|
79
|
-
;
|
|
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.NamirasoftInferenceServerFailover = void 0;
|
|
13
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
14
|
+
const NamirasoftInferenceServerBase_1 = require("./NamirasoftInferenceServerBase");
|
|
15
|
+
const namirasoft_core_2 = require("namirasoft-core");
|
|
16
|
+
class NamirasoftInferenceServerFailover extends NamirasoftInferenceServerBase_1.NamirasoftInferenceServerBase {
|
|
17
|
+
constructor(server) {
|
|
18
|
+
super(server);
|
|
19
|
+
this.List = this.List.bind(this);
|
|
20
|
+
this.Get = this.Get.bind(this);
|
|
21
|
+
this.Create = this.Create.bind(this);
|
|
22
|
+
this.Update = this.Update.bind(this);
|
|
23
|
+
this.Delete = this.Delete.bind(this);
|
|
24
|
+
this.Ask = this.Ask.bind(this);
|
|
25
|
+
this.AskAsync = this.AskAsync.bind(this);
|
|
26
|
+
}
|
|
27
|
+
List(filters, page, size, sorts, all_workspaces, config) {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters);
|
|
30
|
+
let sorts_string_value = namirasoft_core_2.SortItem.stringify(sorts);
|
|
31
|
+
let path = `/failover/list`;
|
|
32
|
+
let { data } = yield this.server._get(path, { filters: filters_string_value, page, size, sorts: sorts_string_value, all_workspaces }, config);
|
|
33
|
+
return data;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
Get(id, config) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
let path = `/failover/${id}`;
|
|
39
|
+
let { data } = yield this.server._get(path, {}, config);
|
|
40
|
+
return data;
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
Create(body, config) {
|
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
let path = `/failover`;
|
|
46
|
+
let { data } = yield this.server._post(path, {}, body, config);
|
|
47
|
+
return data;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
Update(id, body, config) {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
let path = `/failover/${id}`;
|
|
53
|
+
let { data } = yield this.server._put(path, {}, body, config);
|
|
54
|
+
return data;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
Delete(id, config) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
let path = `/failover/${id}`;
|
|
60
|
+
yield this.server._delete(path, {}, config);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
Ask(failover_id, body, config) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
let path = `/failover/${failover_id}/ask`;
|
|
66
|
+
let { data } = yield this.server._post(path, {}, body, config);
|
|
67
|
+
return data;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
AskAsync(failover_id, body, config) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
let path = `/failover/${failover_id}/ask-async`;
|
|
73
|
+
let { data } = yield this.server._post(path, {}, body, config);
|
|
74
|
+
return data;
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.NamirasoftInferenceServerFailover = NamirasoftInferenceServerFailover;
|
|
79
|
+
;
|
|
80
80
|
//# sourceMappingURL=NamirasoftInferenceServerFailover.js.map
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { AskAsyncResponseRow } from "./row/AskAsyncResponseRow";
|
|
2
|
-
import { BaseServerConfig } from "namirasoft-core";
|
|
3
|
-
import { FilterItem } from "namirasoft-core";
|
|
4
|
-
import { InteractionRow } from "./row/InteractionRow";
|
|
5
|
-
import { LoadBalancerFullRow } from "./row/LoadBalancerFullRow";
|
|
6
|
-
import { LoadBalancerInputRow } from "./row/LoadBalancerInputRow";
|
|
7
|
-
import { LoadBalancerRow } from "./row/LoadBalancerRow";
|
|
8
|
-
import { NamirasoftInferenceServer } from "./NamirasoftInferenceServer";
|
|
9
|
-
import { NamirasoftInferenceServerBase } from "./NamirasoftInferenceServerBase";
|
|
10
|
-
import { SortItem } from "namirasoft-core";
|
|
11
|
-
export declare class NamirasoftInferenceServerLoadBalancer extends NamirasoftInferenceServerBase {
|
|
12
|
-
constructor(server: NamirasoftInferenceServer);
|
|
13
|
-
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{
|
|
14
|
-
rows: LoadBalancerRow[];
|
|
15
|
-
count: number;
|
|
16
|
-
}>;
|
|
17
|
-
Get(id: (string | null), config?: BaseServerConfig<any>): Promise<LoadBalancerFullRow>;
|
|
18
|
-
Create(body: LoadBalancerInputRow, config?: BaseServerConfig<any>): Promise<LoadBalancerRow>;
|
|
19
|
-
Update(id: (string | null), body: LoadBalancerInputRow, config?: BaseServerConfig<any>): Promise<LoadBalancerRow>;
|
|
20
|
-
Delete(id: string, config?: BaseServerConfig<any>): Promise<void>;
|
|
21
|
-
Ask(load_balancer_id: string, body: {
|
|
22
|
-
chat_id: (string | null);
|
|
23
|
-
run_id: (string | null);
|
|
24
|
-
message: string;
|
|
25
|
-
memory_limit: (number | null);
|
|
26
|
-
}, config?: BaseServerConfig<any>): Promise<InteractionRow>;
|
|
27
|
-
AskAsync(load_balancer_id: string, body: {
|
|
28
|
-
chat_id: (string | null);
|
|
29
|
-
run_id: (string | null);
|
|
30
|
-
message: string;
|
|
31
|
-
memory_limit: (number | null);
|
|
32
|
-
}, config?: BaseServerConfig<any>): Promise<AskAsyncResponseRow>;
|
|
33
|
-
}
|
|
1
|
+
import { AskAsyncResponseRow } from "./row/AskAsyncResponseRow";
|
|
2
|
+
import { BaseServerConfig } from "namirasoft-core";
|
|
3
|
+
import { FilterItem } from "namirasoft-core";
|
|
4
|
+
import { InteractionRow } from "./row/InteractionRow";
|
|
5
|
+
import { LoadBalancerFullRow } from "./row/LoadBalancerFullRow";
|
|
6
|
+
import { LoadBalancerInputRow } from "./row/LoadBalancerInputRow";
|
|
7
|
+
import { LoadBalancerRow } from "./row/LoadBalancerRow";
|
|
8
|
+
import { NamirasoftInferenceServer } from "./NamirasoftInferenceServer";
|
|
9
|
+
import { NamirasoftInferenceServerBase } from "./NamirasoftInferenceServerBase";
|
|
10
|
+
import { SortItem } from "namirasoft-core";
|
|
11
|
+
export declare class NamirasoftInferenceServerLoadBalancer extends NamirasoftInferenceServerBase {
|
|
12
|
+
constructor(server: NamirasoftInferenceServer);
|
|
13
|
+
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null), config?: BaseServerConfig<any>): Promise<{
|
|
14
|
+
rows: LoadBalancerRow[];
|
|
15
|
+
count: number;
|
|
16
|
+
}>;
|
|
17
|
+
Get(id: (string | null), config?: BaseServerConfig<any>): Promise<LoadBalancerFullRow>;
|
|
18
|
+
Create(body: LoadBalancerInputRow, config?: BaseServerConfig<any>): Promise<LoadBalancerRow>;
|
|
19
|
+
Update(id: (string | null), body: LoadBalancerInputRow, config?: BaseServerConfig<any>): Promise<LoadBalancerRow>;
|
|
20
|
+
Delete(id: string, config?: BaseServerConfig<any>): Promise<void>;
|
|
21
|
+
Ask(load_balancer_id: string, body: {
|
|
22
|
+
chat_id: (string | null);
|
|
23
|
+
run_id: (string | null);
|
|
24
|
+
message: string;
|
|
25
|
+
memory_limit: (number | null);
|
|
26
|
+
}, config?: BaseServerConfig<any>): Promise<InteractionRow>;
|
|
27
|
+
AskAsync(load_balancer_id: string, body: {
|
|
28
|
+
chat_id: (string | null);
|
|
29
|
+
run_id: (string | null);
|
|
30
|
+
message: string;
|
|
31
|
+
memory_limit: (number | null);
|
|
32
|
+
}, config?: BaseServerConfig<any>): Promise<AskAsyncResponseRow>;
|
|
33
|
+
}
|
|
@@ -1,80 +1,80 @@
|
|
|
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.NamirasoftInferenceServerLoadBalancer = void 0;
|
|
13
|
-
const namirasoft_core_1 = require("namirasoft-core");
|
|
14
|
-
const NamirasoftInferenceServerBase_1 = require("./NamirasoftInferenceServerBase");
|
|
15
|
-
const namirasoft_core_2 = require("namirasoft-core");
|
|
16
|
-
class NamirasoftInferenceServerLoadBalancer extends NamirasoftInferenceServerBase_1.NamirasoftInferenceServerBase {
|
|
17
|
-
constructor(server) {
|
|
18
|
-
super(server);
|
|
19
|
-
this.List = this.List.bind(this);
|
|
20
|
-
this.Get = this.Get.bind(this);
|
|
21
|
-
this.Create = this.Create.bind(this);
|
|
22
|
-
this.Update = this.Update.bind(this);
|
|
23
|
-
this.Delete = this.Delete.bind(this);
|
|
24
|
-
this.Ask = this.Ask.bind(this);
|
|
25
|
-
this.AskAsync = this.AskAsync.bind(this);
|
|
26
|
-
}
|
|
27
|
-
List(filters, page, size, sorts, all_workspaces, config) {
|
|
28
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters);
|
|
30
|
-
let sorts_string_value = namirasoft_core_2.SortItem.stringify(sorts);
|
|
31
|
-
let path = `/load/balancer/list`;
|
|
32
|
-
let { data } = yield this.server._get(path, { filters: filters_string_value, page, size, sorts: sorts_string_value, all_workspaces }, config);
|
|
33
|
-
return data;
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
Get(id, config) {
|
|
37
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
let path = `/load/balancer/${id}`;
|
|
39
|
-
let { data } = yield this.server._get(path, {}, config);
|
|
40
|
-
return data;
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
Create(body, config) {
|
|
44
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
let path = `/load/balancer`;
|
|
46
|
-
let { data } = yield this.server._post(path, {}, body, config);
|
|
47
|
-
return data;
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
Update(id, body, config) {
|
|
51
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
let path = `/load/balancer/${id}`;
|
|
53
|
-
let { data } = yield this.server._put(path, {}, body, config);
|
|
54
|
-
return data;
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
Delete(id, config) {
|
|
58
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
let path = `/load/balancer/${id}`;
|
|
60
|
-
yield this.server._delete(path, {}, config);
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
Ask(load_balancer_id, body, config) {
|
|
64
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
-
let path = `/load/balancer/${load_balancer_id}/ask`;
|
|
66
|
-
let { data } = yield this.server._post(path, {}, body, config);
|
|
67
|
-
return data;
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
AskAsync(load_balancer_id, body, config) {
|
|
71
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
let path = `/load/balancer/${load_balancer_id}/ask-async`;
|
|
73
|
-
let { data } = yield this.server._post(path, {}, body, config);
|
|
74
|
-
return data;
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
exports.NamirasoftInferenceServerLoadBalancer = NamirasoftInferenceServerLoadBalancer;
|
|
79
|
-
;
|
|
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.NamirasoftInferenceServerLoadBalancer = void 0;
|
|
13
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
14
|
+
const NamirasoftInferenceServerBase_1 = require("./NamirasoftInferenceServerBase");
|
|
15
|
+
const namirasoft_core_2 = require("namirasoft-core");
|
|
16
|
+
class NamirasoftInferenceServerLoadBalancer extends NamirasoftInferenceServerBase_1.NamirasoftInferenceServerBase {
|
|
17
|
+
constructor(server) {
|
|
18
|
+
super(server);
|
|
19
|
+
this.List = this.List.bind(this);
|
|
20
|
+
this.Get = this.Get.bind(this);
|
|
21
|
+
this.Create = this.Create.bind(this);
|
|
22
|
+
this.Update = this.Update.bind(this);
|
|
23
|
+
this.Delete = this.Delete.bind(this);
|
|
24
|
+
this.Ask = this.Ask.bind(this);
|
|
25
|
+
this.AskAsync = this.AskAsync.bind(this);
|
|
26
|
+
}
|
|
27
|
+
List(filters, page, size, sorts, all_workspaces, config) {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters);
|
|
30
|
+
let sorts_string_value = namirasoft_core_2.SortItem.stringify(sorts);
|
|
31
|
+
let path = `/load/balancer/list`;
|
|
32
|
+
let { data } = yield this.server._get(path, { filters: filters_string_value, page, size, sorts: sorts_string_value, all_workspaces }, config);
|
|
33
|
+
return data;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
Get(id, config) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
let path = `/load/balancer/${id}`;
|
|
39
|
+
let { data } = yield this.server._get(path, {}, config);
|
|
40
|
+
return data;
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
Create(body, config) {
|
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
let path = `/load/balancer`;
|
|
46
|
+
let { data } = yield this.server._post(path, {}, body, config);
|
|
47
|
+
return data;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
Update(id, body, config) {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
let path = `/load/balancer/${id}`;
|
|
53
|
+
let { data } = yield this.server._put(path, {}, body, config);
|
|
54
|
+
return data;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
Delete(id, config) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
let path = `/load/balancer/${id}`;
|
|
60
|
+
yield this.server._delete(path, {}, config);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
Ask(load_balancer_id, body, config) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
let path = `/load/balancer/${load_balancer_id}/ask`;
|
|
66
|
+
let { data } = yield this.server._post(path, {}, body, config);
|
|
67
|
+
return data;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
AskAsync(load_balancer_id, body, config) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
let path = `/load/balancer/${load_balancer_id}/ask-async`;
|
|
73
|
+
let { data } = yield this.server._post(path, {}, body, config);
|
|
74
|
+
return data;
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.NamirasoftInferenceServerLoadBalancer = NamirasoftInferenceServerLoadBalancer;
|
|
79
|
+
;
|
|
80
80
|
//# sourceMappingURL=NamirasoftInferenceServerLoadBalancer.js.map
|