@wildix/wilma-copilot-client 1.0.20 → 1.0.21
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-cjs/WilmaCopilot.js +4 -0
- package/dist-cjs/commands/DisableProfileCommand.js +20 -0
- package/dist-cjs/commands/EnableProfileCommand.js +20 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +35 -3
- package/dist-es/WilmaCopilot.js +4 -0
- package/dist-es/commands/DisableProfileCommand.js +16 -0
- package/dist-es/commands/EnableProfileCommand.js +16 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/schemas/schemas_0.js +32 -0
- package/dist-types/WilmaCopilot.d.ts +14 -0
- package/dist-types/WilmaCopilotClient.d.ts +4 -2
- package/dist-types/commands/DisableProfileCommand.d.ts +145 -0
- package/dist-types/commands/EnableProfileCommand.d.ts +145 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +34 -0
- package/dist-types/schemas/schemas_0.d.ts +6 -0
- package/package.json +1 -1
package/dist-cjs/WilmaCopilot.js
CHANGED
|
@@ -15,6 +15,8 @@ const DeleteEvaluationCommand_1 = require("./commands/DeleteEvaluationCommand");
|
|
|
15
15
|
const DeleteIntentCommand_1 = require("./commands/DeleteIntentCommand");
|
|
16
16
|
const DeleteProfileCommand_1 = require("./commands/DeleteProfileCommand");
|
|
17
17
|
const DeleteProfileResourceCommand_1 = require("./commands/DeleteProfileResourceCommand");
|
|
18
|
+
const DisableProfileCommand_1 = require("./commands/DisableProfileCommand");
|
|
19
|
+
const EnableProfileCommand_1 = require("./commands/EnableProfileCommand");
|
|
18
20
|
const GetAssetCommand_1 = require("./commands/GetAssetCommand");
|
|
19
21
|
const GetAutomationCommand_1 = require("./commands/GetAutomationCommand");
|
|
20
22
|
const GetEvaluationCommand_1 = require("./commands/GetEvaluationCommand");
|
|
@@ -50,6 +52,8 @@ const commands = {
|
|
|
50
52
|
DeleteIntentCommand: DeleteIntentCommand_1.DeleteIntentCommand,
|
|
51
53
|
DeleteProfileCommand: DeleteProfileCommand_1.DeleteProfileCommand,
|
|
52
54
|
DeleteProfileResourceCommand: DeleteProfileResourceCommand_1.DeleteProfileResourceCommand,
|
|
55
|
+
DisableProfileCommand: DisableProfileCommand_1.DisableProfileCommand,
|
|
56
|
+
EnableProfileCommand: EnableProfileCommand_1.EnableProfileCommand,
|
|
53
57
|
GetAssetCommand: GetAssetCommand_1.GetAssetCommand,
|
|
54
58
|
GetAutomationCommand: GetAutomationCommand_1.GetAutomationCommand,
|
|
55
59
|
GetEvaluationCommand: GetEvaluationCommand_1.GetEvaluationCommand,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DisableProfileCommand = exports.$Command = void 0;
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
+
class DisableProfileCommand extends client_1.Command
|
|
10
|
+
.classBuilder()
|
|
11
|
+
.ep(EndpointParameters_1.commonParams)
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
|
+
})
|
|
15
|
+
.s("WilmaCopilot", "DisableProfile", {})
|
|
16
|
+
.n("WilmaCopilotClient", "DisableProfileCommand")
|
|
17
|
+
.sc(schemas_0_1.DisableProfile$)
|
|
18
|
+
.build() {
|
|
19
|
+
}
|
|
20
|
+
exports.DisableProfileCommand = DisableProfileCommand;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnableProfileCommand = exports.$Command = void 0;
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
+
class EnableProfileCommand extends client_1.Command
|
|
10
|
+
.classBuilder()
|
|
11
|
+
.ep(EndpointParameters_1.commonParams)
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
|
+
})
|
|
15
|
+
.s("WilmaCopilot", "EnableProfile", {})
|
|
16
|
+
.n("WilmaCopilotClient", "EnableProfileCommand")
|
|
17
|
+
.sc(schemas_0_1.EnableProfile$)
|
|
18
|
+
.build() {
|
|
19
|
+
}
|
|
20
|
+
exports.EnableProfileCommand = EnableProfileCommand;
|
|
@@ -14,6 +14,8 @@ tslib_1.__exportStar(require("./DeleteEvaluationCommand"), exports);
|
|
|
14
14
|
tslib_1.__exportStar(require("./DeleteIntentCommand"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./DeleteProfileCommand"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./DeleteProfileResourceCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./DisableProfileCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./EnableProfileCommand"), exports);
|
|
17
19
|
tslib_1.__exportStar(require("./GetAssetCommand"), exports);
|
|
18
20
|
tslib_1.__exportStar(require("./GetAutomationCommand"), exports);
|
|
19
21
|
tslib_1.__exportStar(require("./GetEvaluationCommand"), exports);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeleteAutomationInput$ = exports.DeleteAssetOutput$ = exports.DeleteAssetInput$ = exports.CsatFeatureConfiguration$ = exports.CreateProfileOutput$ = exports.CreateProfileInput$ = exports.CreateIntentOutput$ = exports.CreateIntentInput$ = exports.CreateEvaluationOutput$ = exports.CreateEvaluationInput$ = exports.CreateAutomationOutput$ = exports.CreateAutomationInput$ = exports.CreateAssetOutput$ = exports.CreateAssetInput$ = exports.CopilotVariableBinding$ = exports.CopilotTextParameter$ = exports.CopilotSelectionParameter$ = exports.CopilotNumberParameter$ = exports.CopilotMultilineParameter$ = exports.CopilotField$ = exports.CopilotAudienceEntry$ = exports.ContextualKnowledgeAnswersFeatureConfiguration$ = exports.CompareProfileVersionsOutput$ = exports.CompareProfileVersionsInput$ = exports.CardStaticContent$ = exports.CardAgentContent$ = exports.AutomationSnapshot$ = exports.AutomationInfo$ = exports.Automation$ = exports.AttachProfileResourceOutput$ = exports.AttachProfileResourceInput$ = exports.AssetSnapshot$ = exports.AssetSmartActions$ = exports.AssetPlaybook$ = exports.AssetKnowledge$ = exports.AssetInfo$ = exports.AssetCard$ = exports.Asset$ = exports.AgentAutomationHandler$ = exports.SubscriptionSelector$ = exports.Subscription$ = exports.Actor$ = exports.errorTypeRegistries = exports.RevisionConflictException$ = exports.NothingToPublishException$ = exports.ValidationException$ = exports.NotFoundException$ = exports.ForbiddenException$ = exports.ConflictException$ = exports.WilmaCopilotServiceException$ = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.UpdateProfile$ = exports.UpdateIntent$ = exports.UpdateEvaluation$ = exports.UpdateAutomation$ = exports.UpdateAsset$ = exports.RestoreProfileVersionToDraft$ = exports.PublishProfileVersion$ = exports.ListSubscriptions$ = exports.ListProfileVersions$ = exports.ListProfiles$ = exports.ListIntents$ = exports.ListEvaluations$ = exports.ListAutomations$ = exports.ListAssets$ = exports.GetProfileVersion$ = exports.GetProfile$ = exports.GetIntent$ = exports.GetEvaluation$ = exports.GetAutomation$ = void 0;
|
|
4
|
+
exports.ListSubscriptionsInput$ = exports.ListProfileVersionsOutput$ = exports.ListProfileVersionsInput$ = exports.ListProfilesOutput$ = exports.ListProfilesInput$ = exports.ListIntentsOutput$ = exports.ListIntentsInput$ = exports.ListEvaluationsOutput$ = exports.ListEvaluationsInput$ = exports.ListAutomationsOutput$ = exports.ListAutomationsInput$ = exports.ListAssetsOutput$ = exports.ListAssetsInput$ = exports.IntentTextMatchOption$ = exports.IntentTextMatch$ = exports.IntentSnapshot$ = exports.IntentInfo$ = exports.IntentHandlers$ = exports.IntentAiMatch$ = exports.Intent$ = exports.GetProfileVersionOutput$ = exports.GetProfileVersionInput$ = exports.GetProfileOutput$ = exports.GetProfileInput$ = exports.GetIntentOutput$ = exports.GetIntentInput$ = exports.GetEvaluationOutput$ = exports.GetEvaluationInput$ = exports.GetAutomationOutput$ = exports.GetAutomationInput$ = exports.GetAssetOutput$ = exports.GetAssetInput$ = exports.EvaluationTriggers$ = exports.EvaluationSnapshot$ = exports.EvaluationIntervalTrigger$ = exports.EvaluationInfo$ = exports.Evaluation$ = exports.EnableProfileOutput$ = exports.EnableProfileInput$ = exports.DisableProfileOutput$ = exports.DisableProfileInput$ = exports.DeleteProfileResourceOutput$ = exports.DeleteProfileResourceInput$ = exports.DeleteProfileOutput$ = exports.DeleteProfileInput$ = exports.DeleteIntentOutput$ = exports.DeleteIntentInput$ = exports.DeleteEvaluationOutput$ = exports.DeleteEvaluationInput$ = exports.DeleteAutomationOutput$ = void 0;
|
|
5
|
+
exports.DeleteEvaluation$ = exports.DeleteAutomation$ = exports.DeleteAsset$ = exports.CreateProfile$ = exports.CreateIntent$ = exports.CreateEvaluation$ = exports.CreateAutomation$ = exports.CreateAsset$ = exports.CompareProfileVersions$ = exports.AttachProfileResource$ = exports.SmartAction$ = exports.ProfileResource$ = exports.PlaybookCompletionCriteria$ = exports.CopilotFieldParameter$ = exports.CopilotFeature$ = exports.CardContent$ = exports.AutomationHandler$ = exports.AssetContent$ = exports.UpdateProfileOutput$ = exports.UpdateProfileInput$ = exports.UpdateIntentOutput$ = exports.UpdateIntentInput$ = exports.UpdateEvaluationOutput$ = exports.UpdateEvaluationInput$ = exports.UpdateAutomationOutput$ = exports.UpdateAutomationInput$ = exports.UpdateAssetOutput$ = exports.UpdateAssetInput$ = exports.TopicsFeatureConfiguration$ = exports.TalkRatioFeatureConfiguration$ = exports.SmartActionTransfer$ = exports.SmartActionRunAgent$ = exports.SmartActionOpenUrl$ = exports.SmartActionItem$ = exports.SmartActionHandover$ = exports.SentimentFeatureConfiguration$ = exports.RestoreProfileVersionToDraftOutput$ = exports.RestoreProfileVersionToDraftInput$ = exports.PublishProfileVersionOutput$ = exports.PublishProfileVersionInput$ = exports.ProfileVersionInfo$ = exports.ProfileVersionChange$ = exports.ProfileVersion$ = exports.ProfileInfo$ = exports.ProfileDefinitionSnapshot$ = exports.Profile$ = exports.PlaybookStep$ = exports.PlaybookSemanticCompletion$ = exports.PlaybookManualCompletion$ = exports.ListSubscriptionsOutput$ = void 0;
|
|
6
|
+
exports.UpdateProfile$ = exports.UpdateIntent$ = exports.UpdateEvaluation$ = exports.UpdateAutomation$ = exports.UpdateAsset$ = exports.RestoreProfileVersionToDraft$ = exports.PublishProfileVersion$ = exports.ListSubscriptions$ = exports.ListProfileVersions$ = exports.ListProfiles$ = exports.ListIntents$ = exports.ListEvaluations$ = exports.ListAutomations$ = exports.ListAssets$ = exports.GetProfileVersion$ = exports.GetProfile$ = exports.GetIntent$ = exports.GetEvaluation$ = exports.GetAutomation$ = exports.GetAsset$ = exports.EnableProfile$ = exports.DisableProfile$ = exports.DeleteProfileResource$ = exports.DeleteProfile$ = exports.DeleteIntent$ = void 0;
|
|
7
7
|
const _A = "Actor";
|
|
8
8
|
const _AAH = "AgentAutomationHandler";
|
|
9
9
|
const _AC = "AssetCard";
|
|
@@ -76,14 +76,20 @@ const _DII = "DeleteIntentInput";
|
|
|
76
76
|
const _DIO = "DeleteIntentOutput";
|
|
77
77
|
const _DP = "DeleteProfile";
|
|
78
78
|
const _DPI = "DeleteProfileInput";
|
|
79
|
+
const _DPIi = "DisableProfileInput";
|
|
79
80
|
const _DPO = "DeleteProfileOutput";
|
|
81
|
+
const _DPOi = "DisableProfileOutput";
|
|
80
82
|
const _DPR = "DeleteProfileResource";
|
|
81
83
|
const _DPRI = "DeleteProfileResourceInput";
|
|
82
84
|
const _DPRO = "DeleteProfileResourceOutput";
|
|
85
|
+
const _DPi = "DisableProfile";
|
|
83
86
|
const _E = "Evaluation";
|
|
84
87
|
const _EI = "EvaluationInfo";
|
|
85
88
|
const _EIL = "EvaluationInfoList";
|
|
86
89
|
const _EIT = "EvaluationIntervalTrigger";
|
|
90
|
+
const _EP = "EnableProfile";
|
|
91
|
+
const _EPI = "EnableProfileInput";
|
|
92
|
+
const _EPO = "EnableProfileOutput";
|
|
87
93
|
const _ES = "EvaluationSnapshot";
|
|
88
94
|
const _ESL = "EvaluationSnapshotsList";
|
|
89
95
|
const _ET = "EvaluationTriggers";
|
|
@@ -664,6 +670,26 @@ exports.DeleteProfileResourceOutput$ = [3, n2, _DPRO,
|
|
|
664
670
|
[_pr],
|
|
665
671
|
[() => exports.Profile$], 1
|
|
666
672
|
];
|
|
673
|
+
exports.DisableProfileInput$ = [3, n2, _DPIi,
|
|
674
|
+
0,
|
|
675
|
+
[_pI, _co],
|
|
676
|
+
[[0, 1], [0, { [_hQ]: _co }]], 1
|
|
677
|
+
];
|
|
678
|
+
exports.DisableProfileOutput$ = [3, n2, _DPOi,
|
|
679
|
+
0,
|
|
680
|
+
[_pr],
|
|
681
|
+
[() => exports.Profile$], 1
|
|
682
|
+
];
|
|
683
|
+
exports.EnableProfileInput$ = [3, n2, _EPI,
|
|
684
|
+
0,
|
|
685
|
+
[_pI, _co],
|
|
686
|
+
[[0, 1], [0, { [_hQ]: _co }]], 1
|
|
687
|
+
];
|
|
688
|
+
exports.EnableProfileOutput$ = [3, n2, _EPO,
|
|
689
|
+
0,
|
|
690
|
+
[_pr],
|
|
691
|
+
[() => exports.Profile$], 1
|
|
692
|
+
];
|
|
667
693
|
exports.Evaluation$ = [3, n2, _E,
|
|
668
694
|
0,
|
|
669
695
|
[_n, _in, _tr, _w, _cA, _cB, _i, _r, _d, _fi, _mod, _con, _uA, _uB],
|
|
@@ -1156,6 +1182,12 @@ exports.DeleteProfile$ = [9, n2, _DP,
|
|
|
1156
1182
|
exports.DeleteProfileResource$ = [9, n2, _DPR,
|
|
1157
1183
|
{ [_ht]: ["DELETE", "/v2/copilot/profiles/{profileId}/resources/{resourceType}/{resourceId}", 200] }, () => exports.DeleteProfileResourceInput$, () => exports.DeleteProfileResourceOutput$
|
|
1158
1184
|
];
|
|
1185
|
+
exports.DisableProfile$ = [9, n2, _DPi,
|
|
1186
|
+
{ [_ht]: ["PATCH", "/v2/copilot/profiles/{profileId}/disable", 200] }, () => exports.DisableProfileInput$, () => exports.DisableProfileOutput$
|
|
1187
|
+
];
|
|
1188
|
+
exports.EnableProfile$ = [9, n2, _EP,
|
|
1189
|
+
{ [_ht]: ["PATCH", "/v2/copilot/profiles/{profileId}/enable", 200] }, () => exports.EnableProfileInput$, () => exports.EnableProfileOutput$
|
|
1190
|
+
];
|
|
1159
1191
|
exports.GetAsset$ = [9, n2, _GA,
|
|
1160
1192
|
{ [_ht]: ["GET", "/v2/copilot/assets/{assetId}", 200] }, () => exports.GetAssetInput$, () => exports.GetAssetOutput$
|
|
1161
1193
|
];
|
package/dist-es/WilmaCopilot.js
CHANGED
|
@@ -12,6 +12,8 @@ import { DeleteEvaluationCommand, } from "./commands/DeleteEvaluationCommand";
|
|
|
12
12
|
import { DeleteIntentCommand, } from "./commands/DeleteIntentCommand";
|
|
13
13
|
import { DeleteProfileCommand, } from "./commands/DeleteProfileCommand";
|
|
14
14
|
import { DeleteProfileResourceCommand, } from "./commands/DeleteProfileResourceCommand";
|
|
15
|
+
import { DisableProfileCommand, } from "./commands/DisableProfileCommand";
|
|
16
|
+
import { EnableProfileCommand, } from "./commands/EnableProfileCommand";
|
|
15
17
|
import { GetAssetCommand } from "./commands/GetAssetCommand";
|
|
16
18
|
import { GetAutomationCommand, } from "./commands/GetAutomationCommand";
|
|
17
19
|
import { GetEvaluationCommand, } from "./commands/GetEvaluationCommand";
|
|
@@ -47,6 +49,8 @@ const commands = {
|
|
|
47
49
|
DeleteIntentCommand,
|
|
48
50
|
DeleteProfileCommand,
|
|
49
51
|
DeleteProfileResourceCommand,
|
|
52
|
+
DisableProfileCommand,
|
|
53
|
+
EnableProfileCommand,
|
|
50
54
|
GetAssetCommand,
|
|
51
55
|
GetAutomationCommand,
|
|
52
56
|
GetEvaluationCommand,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DisableProfile$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DisableProfileCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaCopilot", "DisableProfile", {})
|
|
13
|
+
.n("WilmaCopilotClient", "DisableProfileCommand")
|
|
14
|
+
.sc(DisableProfile$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { EnableProfile$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class EnableProfileCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaCopilot", "EnableProfile", {})
|
|
13
|
+
.n("WilmaCopilotClient", "EnableProfileCommand")
|
|
14
|
+
.sc(EnableProfile$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -11,6 +11,8 @@ export * from "./DeleteEvaluationCommand";
|
|
|
11
11
|
export * from "./DeleteIntentCommand";
|
|
12
12
|
export * from "./DeleteProfileCommand";
|
|
13
13
|
export * from "./DeleteProfileResourceCommand";
|
|
14
|
+
export * from "./DisableProfileCommand";
|
|
15
|
+
export * from "./EnableProfileCommand";
|
|
14
16
|
export * from "./GetAssetCommand";
|
|
15
17
|
export * from "./GetAutomationCommand";
|
|
16
18
|
export * from "./GetEvaluationCommand";
|
|
@@ -70,14 +70,20 @@ const _DII = "DeleteIntentInput";
|
|
|
70
70
|
const _DIO = "DeleteIntentOutput";
|
|
71
71
|
const _DP = "DeleteProfile";
|
|
72
72
|
const _DPI = "DeleteProfileInput";
|
|
73
|
+
const _DPIi = "DisableProfileInput";
|
|
73
74
|
const _DPO = "DeleteProfileOutput";
|
|
75
|
+
const _DPOi = "DisableProfileOutput";
|
|
74
76
|
const _DPR = "DeleteProfileResource";
|
|
75
77
|
const _DPRI = "DeleteProfileResourceInput";
|
|
76
78
|
const _DPRO = "DeleteProfileResourceOutput";
|
|
79
|
+
const _DPi = "DisableProfile";
|
|
77
80
|
const _E = "Evaluation";
|
|
78
81
|
const _EI = "EvaluationInfo";
|
|
79
82
|
const _EIL = "EvaluationInfoList";
|
|
80
83
|
const _EIT = "EvaluationIntervalTrigger";
|
|
84
|
+
const _EP = "EnableProfile";
|
|
85
|
+
const _EPI = "EnableProfileInput";
|
|
86
|
+
const _EPO = "EnableProfileOutput";
|
|
81
87
|
const _ES = "EvaluationSnapshot";
|
|
82
88
|
const _ESL = "EvaluationSnapshotsList";
|
|
83
89
|
const _ET = "EvaluationTriggers";
|
|
@@ -658,6 +664,26 @@ export var DeleteProfileResourceOutput$ = [3, n2, _DPRO,
|
|
|
658
664
|
[_pr],
|
|
659
665
|
[() => Profile$], 1
|
|
660
666
|
];
|
|
667
|
+
export var DisableProfileInput$ = [3, n2, _DPIi,
|
|
668
|
+
0,
|
|
669
|
+
[_pI, _co],
|
|
670
|
+
[[0, 1], [0, { [_hQ]: _co }]], 1
|
|
671
|
+
];
|
|
672
|
+
export var DisableProfileOutput$ = [3, n2, _DPOi,
|
|
673
|
+
0,
|
|
674
|
+
[_pr],
|
|
675
|
+
[() => Profile$], 1
|
|
676
|
+
];
|
|
677
|
+
export var EnableProfileInput$ = [3, n2, _EPI,
|
|
678
|
+
0,
|
|
679
|
+
[_pI, _co],
|
|
680
|
+
[[0, 1], [0, { [_hQ]: _co }]], 1
|
|
681
|
+
];
|
|
682
|
+
export var EnableProfileOutput$ = [3, n2, _EPO,
|
|
683
|
+
0,
|
|
684
|
+
[_pr],
|
|
685
|
+
[() => Profile$], 1
|
|
686
|
+
];
|
|
661
687
|
export var Evaluation$ = [3, n2, _E,
|
|
662
688
|
0,
|
|
663
689
|
[_n, _in, _tr, _w, _cA, _cB, _i, _r, _d, _fi, _mod, _con, _uA, _uB],
|
|
@@ -1150,6 +1176,12 @@ export var DeleteProfile$ = [9, n2, _DP,
|
|
|
1150
1176
|
export var DeleteProfileResource$ = [9, n2, _DPR,
|
|
1151
1177
|
{ [_ht]: ["DELETE", "/v2/copilot/profiles/{profileId}/resources/{resourceType}/{resourceId}", 200] }, () => DeleteProfileResourceInput$, () => DeleteProfileResourceOutput$
|
|
1152
1178
|
];
|
|
1179
|
+
export var DisableProfile$ = [9, n2, _DPi,
|
|
1180
|
+
{ [_ht]: ["PATCH", "/v2/copilot/profiles/{profileId}/disable", 200] }, () => DisableProfileInput$, () => DisableProfileOutput$
|
|
1181
|
+
];
|
|
1182
|
+
export var EnableProfile$ = [9, n2, _EP,
|
|
1183
|
+
{ [_ht]: ["PATCH", "/v2/copilot/profiles/{profileId}/enable", 200] }, () => EnableProfileInput$, () => EnableProfileOutput$
|
|
1184
|
+
];
|
|
1153
1185
|
export var GetAsset$ = [9, n2, _GA,
|
|
1154
1186
|
{ [_ht]: ["GET", "/v2/copilot/assets/{assetId}", 200] }, () => GetAssetInput$, () => GetAssetOutput$
|
|
1155
1187
|
];
|
|
@@ -12,6 +12,8 @@ import { type DeleteEvaluationCommandInput, type DeleteEvaluationCommandOutput }
|
|
|
12
12
|
import { type DeleteIntentCommandInput, type DeleteIntentCommandOutput } from "./commands/DeleteIntentCommand";
|
|
13
13
|
import { type DeleteProfileCommandInput, type DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
|
|
14
14
|
import { type DeleteProfileResourceCommandInput, type DeleteProfileResourceCommandOutput } from "./commands/DeleteProfileResourceCommand";
|
|
15
|
+
import { type DisableProfileCommandInput, type DisableProfileCommandOutput } from "./commands/DisableProfileCommand";
|
|
16
|
+
import { type EnableProfileCommandInput, type EnableProfileCommandOutput } from "./commands/EnableProfileCommand";
|
|
15
17
|
import { type GetAssetCommandInput, type GetAssetCommandOutput } from "./commands/GetAssetCommand";
|
|
16
18
|
import { type GetAutomationCommandInput, type GetAutomationCommandOutput } from "./commands/GetAutomationCommand";
|
|
17
19
|
import { type GetEvaluationCommandInput, type GetEvaluationCommandOutput } from "./commands/GetEvaluationCommand";
|
|
@@ -112,6 +114,18 @@ export interface WilmaCopilot {
|
|
|
112
114
|
deleteProfileResource(args: DeleteProfileResourceCommandInput, options?: __HttpHandlerOptions): Promise<DeleteProfileResourceCommandOutput>;
|
|
113
115
|
deleteProfileResource(args: DeleteProfileResourceCommandInput, cb: (err: any, data?: DeleteProfileResourceCommandOutput) => void): void;
|
|
114
116
|
deleteProfileResource(args: DeleteProfileResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteProfileResourceCommandOutput) => void): void;
|
|
117
|
+
/**
|
|
118
|
+
* @see {@link DisableProfileCommand}
|
|
119
|
+
*/
|
|
120
|
+
disableProfile(args: DisableProfileCommandInput, options?: __HttpHandlerOptions): Promise<DisableProfileCommandOutput>;
|
|
121
|
+
disableProfile(args: DisableProfileCommandInput, cb: (err: any, data?: DisableProfileCommandOutput) => void): void;
|
|
122
|
+
disableProfile(args: DisableProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableProfileCommandOutput) => void): void;
|
|
123
|
+
/**
|
|
124
|
+
* @see {@link EnableProfileCommand}
|
|
125
|
+
*/
|
|
126
|
+
enableProfile(args: EnableProfileCommandInput, options?: __HttpHandlerOptions): Promise<EnableProfileCommandOutput>;
|
|
127
|
+
enableProfile(args: EnableProfileCommandInput, cb: (err: any, data?: EnableProfileCommandOutput) => void): void;
|
|
128
|
+
enableProfile(args: EnableProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableProfileCommandOutput) => void): void;
|
|
115
129
|
/**
|
|
116
130
|
* @see {@link GetAssetCommand}
|
|
117
131
|
*/
|
|
@@ -18,6 +18,8 @@ import type { DeleteEvaluationCommandInput, DeleteEvaluationCommandOutput } from
|
|
|
18
18
|
import type { DeleteIntentCommandInput, DeleteIntentCommandOutput } from "./commands/DeleteIntentCommand";
|
|
19
19
|
import type { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
|
|
20
20
|
import type { DeleteProfileResourceCommandInput, DeleteProfileResourceCommandOutput } from "./commands/DeleteProfileResourceCommand";
|
|
21
|
+
import type { DisableProfileCommandInput, DisableProfileCommandOutput } from "./commands/DisableProfileCommand";
|
|
22
|
+
import type { EnableProfileCommandInput, EnableProfileCommandOutput } from "./commands/EnableProfileCommand";
|
|
21
23
|
import type { GetAssetCommandInput, GetAssetCommandOutput } from "./commands/GetAssetCommand";
|
|
22
24
|
import type { GetAutomationCommandInput, GetAutomationCommandOutput } from "./commands/GetAutomationCommand";
|
|
23
25
|
import type { GetEvaluationCommandInput, GetEvaluationCommandOutput } from "./commands/GetEvaluationCommand";
|
|
@@ -44,11 +46,11 @@ export { __Client };
|
|
|
44
46
|
/**
|
|
45
47
|
* @public
|
|
46
48
|
*/
|
|
47
|
-
export type ServiceInputTypes = AttachProfileResourceCommandInput | CompareProfileVersionsCommandInput | CreateAssetCommandInput | CreateAutomationCommandInput | CreateEvaluationCommandInput | CreateIntentCommandInput | CreateProfileCommandInput | DeleteAssetCommandInput | DeleteAutomationCommandInput | DeleteEvaluationCommandInput | DeleteIntentCommandInput | DeleteProfileCommandInput | DeleteProfileResourceCommandInput | GetAssetCommandInput | GetAutomationCommandInput | GetEvaluationCommandInput | GetIntentCommandInput | GetProfileCommandInput | GetProfileVersionCommandInput | ListAssetsCommandInput | ListAutomationsCommandInput | ListEvaluationsCommandInput | ListIntentsCommandInput | ListProfileVersionsCommandInput | ListProfilesCommandInput | ListSubscriptionsCommandInput | PublishProfileVersionCommandInput | RestoreProfileVersionToDraftCommandInput | UpdateAssetCommandInput | UpdateAutomationCommandInput | UpdateEvaluationCommandInput | UpdateIntentCommandInput | UpdateProfileCommandInput;
|
|
49
|
+
export type ServiceInputTypes = AttachProfileResourceCommandInput | CompareProfileVersionsCommandInput | CreateAssetCommandInput | CreateAutomationCommandInput | CreateEvaluationCommandInput | CreateIntentCommandInput | CreateProfileCommandInput | DeleteAssetCommandInput | DeleteAutomationCommandInput | DeleteEvaluationCommandInput | DeleteIntentCommandInput | DeleteProfileCommandInput | DeleteProfileResourceCommandInput | DisableProfileCommandInput | EnableProfileCommandInput | GetAssetCommandInput | GetAutomationCommandInput | GetEvaluationCommandInput | GetIntentCommandInput | GetProfileCommandInput | GetProfileVersionCommandInput | ListAssetsCommandInput | ListAutomationsCommandInput | ListEvaluationsCommandInput | ListIntentsCommandInput | ListProfileVersionsCommandInput | ListProfilesCommandInput | ListSubscriptionsCommandInput | PublishProfileVersionCommandInput | RestoreProfileVersionToDraftCommandInput | UpdateAssetCommandInput | UpdateAutomationCommandInput | UpdateEvaluationCommandInput | UpdateIntentCommandInput | UpdateProfileCommandInput;
|
|
48
50
|
/**
|
|
49
51
|
* @public
|
|
50
52
|
*/
|
|
51
|
-
export type ServiceOutputTypes = AttachProfileResourceCommandOutput | CompareProfileVersionsCommandOutput | CreateAssetCommandOutput | CreateAutomationCommandOutput | CreateEvaluationCommandOutput | CreateIntentCommandOutput | CreateProfileCommandOutput | DeleteAssetCommandOutput | DeleteAutomationCommandOutput | DeleteEvaluationCommandOutput | DeleteIntentCommandOutput | DeleteProfileCommandOutput | DeleteProfileResourceCommandOutput | GetAssetCommandOutput | GetAutomationCommandOutput | GetEvaluationCommandOutput | GetIntentCommandOutput | GetProfileCommandOutput | GetProfileVersionCommandOutput | ListAssetsCommandOutput | ListAutomationsCommandOutput | ListEvaluationsCommandOutput | ListIntentsCommandOutput | ListProfileVersionsCommandOutput | ListProfilesCommandOutput | ListSubscriptionsCommandOutput | PublishProfileVersionCommandOutput | RestoreProfileVersionToDraftCommandOutput | UpdateAssetCommandOutput | UpdateAutomationCommandOutput | UpdateEvaluationCommandOutput | UpdateIntentCommandOutput | UpdateProfileCommandOutput;
|
|
53
|
+
export type ServiceOutputTypes = AttachProfileResourceCommandOutput | CompareProfileVersionsCommandOutput | CreateAssetCommandOutput | CreateAutomationCommandOutput | CreateEvaluationCommandOutput | CreateIntentCommandOutput | CreateProfileCommandOutput | DeleteAssetCommandOutput | DeleteAutomationCommandOutput | DeleteEvaluationCommandOutput | DeleteIntentCommandOutput | DeleteProfileCommandOutput | DeleteProfileResourceCommandOutput | DisableProfileCommandOutput | EnableProfileCommandOutput | GetAssetCommandOutput | GetAutomationCommandOutput | GetEvaluationCommandOutput | GetIntentCommandOutput | GetProfileCommandOutput | GetProfileVersionCommandOutput | ListAssetsCommandOutput | ListAutomationsCommandOutput | ListEvaluationsCommandOutput | ListIntentsCommandOutput | ListProfileVersionsCommandOutput | ListProfilesCommandOutput | ListSubscriptionsCommandOutput | PublishProfileVersionCommandOutput | RestoreProfileVersionToDraftCommandOutput | UpdateAssetCommandOutput | UpdateAutomationCommandOutput | UpdateEvaluationCommandOutput | UpdateIntentCommandOutput | UpdateProfileCommandOutput;
|
|
52
54
|
/**
|
|
53
55
|
* @public
|
|
54
56
|
*/
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { DisableProfileInput, DisableProfileOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, WilmaCopilotClientResolvedConfig } from "../WilmaCopilotClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DisableProfileCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DisableProfileCommandInput extends DisableProfileInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DisableProfileCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DisableProfileCommandOutput extends DisableProfileOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DisableProfileCommand_base: {
|
|
25
|
+
new (input: DisableProfileCommandInput): import("@smithy/core/client").CommandImpl<DisableProfileCommandInput, DisableProfileCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: DisableProfileCommandInput): import("@smithy/core/client").CommandImpl<DisableProfileCommandInput, DisableProfileCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Disables a profile so it is no longer applied to live conversations. Its draft and published versions are kept.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaCopilotClient, DisableProfileCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaCopilotClient, DisableProfileCommand } = require("@wildix/wilma-copilot-client"); // CommonJS import
|
|
36
|
+
* // import type { WilmaCopilotClientConfig } from "@wildix/wilma-copilot-client";
|
|
37
|
+
* const config = {}; // type is WilmaCopilotClientConfig
|
|
38
|
+
* const client = new WilmaCopilotClient(config);
|
|
39
|
+
* const input = { // DisableProfileInput
|
|
40
|
+
* company: "STRING_VALUE",
|
|
41
|
+
* profileId: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new DisableProfileCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // DisableProfileOutput
|
|
46
|
+
* // profile: { // Profile
|
|
47
|
+
* // name: "STRING_VALUE", // required
|
|
48
|
+
* // description: "STRING_VALUE",
|
|
49
|
+
* // audience: [ // CopilotAudienceList
|
|
50
|
+
* // { // CopilotAudienceEntry
|
|
51
|
+
* // kind: "user" || "group" || "department" || "agent" || "queue" || "service" || "trunk", // required
|
|
52
|
+
* // values: [ // StringList // required
|
|
53
|
+
* // "STRING_VALUE",
|
|
54
|
+
* // ],
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // stages: [ // CopilotStageList
|
|
58
|
+
* // "before" || "during" || "after",
|
|
59
|
+
* // ],
|
|
60
|
+
* // channels: [ // CopilotChannelList
|
|
61
|
+
* // "call" || "conference" || "chat",
|
|
62
|
+
* // ],
|
|
63
|
+
* // conditions: "DOCUMENT_VALUE",
|
|
64
|
+
* // features: [ // CopilotFeaturesList
|
|
65
|
+
* // { // CopilotFeature Union: only one key present
|
|
66
|
+
* // csat: {},
|
|
67
|
+
* // sentiment: {},
|
|
68
|
+
* // talkRatio: {},
|
|
69
|
+
* // topics: {},
|
|
70
|
+
* // contextualKnowledgeAnswers: { // ContextualKnowledgeAnswersFeatureConfiguration
|
|
71
|
+
* // source: "knowledge_bases" || "agent", // required
|
|
72
|
+
* // knowledgeBaseIds: [ // KnowledgeBaseIdList
|
|
73
|
+
* // "STRING_VALUE",
|
|
74
|
+
* // ],
|
|
75
|
+
* // agentId: "STRING_VALUE",
|
|
76
|
+
* // mode: "suggest_action" || "automatic_answer", // required
|
|
77
|
+
* // },
|
|
78
|
+
* // },
|
|
79
|
+
* // ],
|
|
80
|
+
* // assets: [ // AssetIdList
|
|
81
|
+
* // "STRING_VALUE",
|
|
82
|
+
* // ],
|
|
83
|
+
* // intents: [ // IntentIdList
|
|
84
|
+
* // "STRING_VALUE",
|
|
85
|
+
* // ],
|
|
86
|
+
* // evaluations: [ // EvaluationIdList
|
|
87
|
+
* // "STRING_VALUE",
|
|
88
|
+
* // ],
|
|
89
|
+
* // automations: [ // AutomationIdList
|
|
90
|
+
* // "STRING_VALUE",
|
|
91
|
+
* // ],
|
|
92
|
+
* // createdAt: "STRING_VALUE", // required
|
|
93
|
+
* // createdBy: { // Actor
|
|
94
|
+
* // type: "user" || "api_key" || "service", // required
|
|
95
|
+
* // id: "STRING_VALUE", // required
|
|
96
|
+
* // name: "STRING_VALUE",
|
|
97
|
+
* // },
|
|
98
|
+
* // updatedAt: "STRING_VALUE",
|
|
99
|
+
* // updatedBy: {
|
|
100
|
+
* // type: "user" || "api_key" || "service", // required
|
|
101
|
+
* // id: "STRING_VALUE", // required
|
|
102
|
+
* // name: "STRING_VALUE",
|
|
103
|
+
* // },
|
|
104
|
+
* // id: "STRING_VALUE", // required
|
|
105
|
+
* // status: "draft" || "active", // required
|
|
106
|
+
* // revision: Number("int"), // required
|
|
107
|
+
* // latestVersion: Number("int"),
|
|
108
|
+
* // draftBaseVersion: Number("int"),
|
|
109
|
+
* // live: true || false, // required
|
|
110
|
+
* // },
|
|
111
|
+
* // };
|
|
112
|
+
*
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* @param DisableProfileCommandInput - {@link DisableProfileCommandInput}
|
|
116
|
+
* @returns {@link DisableProfileCommandOutput}
|
|
117
|
+
* @see {@link DisableProfileCommandInput} for command's `input` shape.
|
|
118
|
+
* @see {@link DisableProfileCommandOutput} for command's `response` shape.
|
|
119
|
+
* @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link NotFoundException} (client fault)
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link ValidationException} (client fault)
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link WilmaCopilotServiceException}
|
|
128
|
+
* <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
|
|
129
|
+
*
|
|
130
|
+
*
|
|
131
|
+
* @public
|
|
132
|
+
*/
|
|
133
|
+
export declare class DisableProfileCommand extends DisableProfileCommand_base {
|
|
134
|
+
/** @internal type navigation helper, not in runtime. */
|
|
135
|
+
protected static __types: {
|
|
136
|
+
api: {
|
|
137
|
+
input: DisableProfileInput;
|
|
138
|
+
output: DisableProfileOutput;
|
|
139
|
+
};
|
|
140
|
+
sdk: {
|
|
141
|
+
input: DisableProfileCommandInput;
|
|
142
|
+
output: DisableProfileCommandOutput;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { EnableProfileInput, EnableProfileOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, WilmaCopilotClientResolvedConfig } from "../WilmaCopilotClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link EnableProfileCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface EnableProfileCommandInput extends EnableProfileInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link EnableProfileCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface EnableProfileCommandOutput extends EnableProfileOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const EnableProfileCommand_base: {
|
|
25
|
+
new (input: EnableProfileCommandInput): import("@smithy/core/client").CommandImpl<EnableProfileCommandInput, EnableProfileCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: EnableProfileCommandInput): import("@smithy/core/client").CommandImpl<EnableProfileCommandInput, EnableProfileCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Enables a published profile so its latest version is applied to live conversations.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaCopilotClient, EnableProfileCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaCopilotClient, EnableProfileCommand } = require("@wildix/wilma-copilot-client"); // CommonJS import
|
|
36
|
+
* // import type { WilmaCopilotClientConfig } from "@wildix/wilma-copilot-client";
|
|
37
|
+
* const config = {}; // type is WilmaCopilotClientConfig
|
|
38
|
+
* const client = new WilmaCopilotClient(config);
|
|
39
|
+
* const input = { // EnableProfileInput
|
|
40
|
+
* company: "STRING_VALUE",
|
|
41
|
+
* profileId: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new EnableProfileCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // EnableProfileOutput
|
|
46
|
+
* // profile: { // Profile
|
|
47
|
+
* // name: "STRING_VALUE", // required
|
|
48
|
+
* // description: "STRING_VALUE",
|
|
49
|
+
* // audience: [ // CopilotAudienceList
|
|
50
|
+
* // { // CopilotAudienceEntry
|
|
51
|
+
* // kind: "user" || "group" || "department" || "agent" || "queue" || "service" || "trunk", // required
|
|
52
|
+
* // values: [ // StringList // required
|
|
53
|
+
* // "STRING_VALUE",
|
|
54
|
+
* // ],
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // stages: [ // CopilotStageList
|
|
58
|
+
* // "before" || "during" || "after",
|
|
59
|
+
* // ],
|
|
60
|
+
* // channels: [ // CopilotChannelList
|
|
61
|
+
* // "call" || "conference" || "chat",
|
|
62
|
+
* // ],
|
|
63
|
+
* // conditions: "DOCUMENT_VALUE",
|
|
64
|
+
* // features: [ // CopilotFeaturesList
|
|
65
|
+
* // { // CopilotFeature Union: only one key present
|
|
66
|
+
* // csat: {},
|
|
67
|
+
* // sentiment: {},
|
|
68
|
+
* // talkRatio: {},
|
|
69
|
+
* // topics: {},
|
|
70
|
+
* // contextualKnowledgeAnswers: { // ContextualKnowledgeAnswersFeatureConfiguration
|
|
71
|
+
* // source: "knowledge_bases" || "agent", // required
|
|
72
|
+
* // knowledgeBaseIds: [ // KnowledgeBaseIdList
|
|
73
|
+
* // "STRING_VALUE",
|
|
74
|
+
* // ],
|
|
75
|
+
* // agentId: "STRING_VALUE",
|
|
76
|
+
* // mode: "suggest_action" || "automatic_answer", // required
|
|
77
|
+
* // },
|
|
78
|
+
* // },
|
|
79
|
+
* // ],
|
|
80
|
+
* // assets: [ // AssetIdList
|
|
81
|
+
* // "STRING_VALUE",
|
|
82
|
+
* // ],
|
|
83
|
+
* // intents: [ // IntentIdList
|
|
84
|
+
* // "STRING_VALUE",
|
|
85
|
+
* // ],
|
|
86
|
+
* // evaluations: [ // EvaluationIdList
|
|
87
|
+
* // "STRING_VALUE",
|
|
88
|
+
* // ],
|
|
89
|
+
* // automations: [ // AutomationIdList
|
|
90
|
+
* // "STRING_VALUE",
|
|
91
|
+
* // ],
|
|
92
|
+
* // createdAt: "STRING_VALUE", // required
|
|
93
|
+
* // createdBy: { // Actor
|
|
94
|
+
* // type: "user" || "api_key" || "service", // required
|
|
95
|
+
* // id: "STRING_VALUE", // required
|
|
96
|
+
* // name: "STRING_VALUE",
|
|
97
|
+
* // },
|
|
98
|
+
* // updatedAt: "STRING_VALUE",
|
|
99
|
+
* // updatedBy: {
|
|
100
|
+
* // type: "user" || "api_key" || "service", // required
|
|
101
|
+
* // id: "STRING_VALUE", // required
|
|
102
|
+
* // name: "STRING_VALUE",
|
|
103
|
+
* // },
|
|
104
|
+
* // id: "STRING_VALUE", // required
|
|
105
|
+
* // status: "draft" || "active", // required
|
|
106
|
+
* // revision: Number("int"), // required
|
|
107
|
+
* // latestVersion: Number("int"),
|
|
108
|
+
* // draftBaseVersion: Number("int"),
|
|
109
|
+
* // live: true || false, // required
|
|
110
|
+
* // },
|
|
111
|
+
* // };
|
|
112
|
+
*
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* @param EnableProfileCommandInput - {@link EnableProfileCommandInput}
|
|
116
|
+
* @returns {@link EnableProfileCommandOutput}
|
|
117
|
+
* @see {@link EnableProfileCommandInput} for command's `input` shape.
|
|
118
|
+
* @see {@link EnableProfileCommandOutput} for command's `response` shape.
|
|
119
|
+
* @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link NotFoundException} (client fault)
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link ValidationException} (client fault)
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link WilmaCopilotServiceException}
|
|
128
|
+
* <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
|
|
129
|
+
*
|
|
130
|
+
*
|
|
131
|
+
* @public
|
|
132
|
+
*/
|
|
133
|
+
export declare class EnableProfileCommand extends EnableProfileCommand_base {
|
|
134
|
+
/** @internal type navigation helper, not in runtime. */
|
|
135
|
+
protected static __types: {
|
|
136
|
+
api: {
|
|
137
|
+
input: EnableProfileInput;
|
|
138
|
+
output: EnableProfileOutput;
|
|
139
|
+
};
|
|
140
|
+
sdk: {
|
|
141
|
+
input: EnableProfileCommandInput;
|
|
142
|
+
output: EnableProfileCommandOutput;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
}
|
|
@@ -11,6 +11,8 @@ export * from "./DeleteEvaluationCommand";
|
|
|
11
11
|
export * from "./DeleteIntentCommand";
|
|
12
12
|
export * from "./DeleteProfileCommand";
|
|
13
13
|
export * from "./DeleteProfileResourceCommand";
|
|
14
|
+
export * from "./DisableProfileCommand";
|
|
15
|
+
export * from "./EnableProfileCommand";
|
|
14
16
|
export * from "./GetAssetCommand";
|
|
15
17
|
export * from "./GetAutomationCommand";
|
|
16
18
|
export * from "./GetEvaluationCommand";
|
|
@@ -1962,6 +1962,40 @@ export interface DeleteProfileResourceOutput {
|
|
|
1962
1962
|
*/
|
|
1963
1963
|
profile: Profile;
|
|
1964
1964
|
}
|
|
1965
|
+
/**
|
|
1966
|
+
* @public
|
|
1967
|
+
*/
|
|
1968
|
+
export interface DisableProfileInput {
|
|
1969
|
+
company?: string | undefined;
|
|
1970
|
+
profileId: string;
|
|
1971
|
+
}
|
|
1972
|
+
/**
|
|
1973
|
+
* @public
|
|
1974
|
+
*/
|
|
1975
|
+
export interface DisableProfileOutput {
|
|
1976
|
+
/**
|
|
1977
|
+
* The complete configuration of a profile, including draft lifecycle state. Referenced library resources are listed by id; a published version resolves them into an immutable snapshot.
|
|
1978
|
+
* @public
|
|
1979
|
+
*/
|
|
1980
|
+
profile: Profile;
|
|
1981
|
+
}
|
|
1982
|
+
/**
|
|
1983
|
+
* @public
|
|
1984
|
+
*/
|
|
1985
|
+
export interface EnableProfileInput {
|
|
1986
|
+
company?: string | undefined;
|
|
1987
|
+
profileId: string;
|
|
1988
|
+
}
|
|
1989
|
+
/**
|
|
1990
|
+
* @public
|
|
1991
|
+
*/
|
|
1992
|
+
export interface EnableProfileOutput {
|
|
1993
|
+
/**
|
|
1994
|
+
* The complete configuration of a profile, including draft lifecycle state. Referenced library resources are listed by id; a published version resolves them into an immutable snapshot.
|
|
1995
|
+
* @public
|
|
1996
|
+
*/
|
|
1997
|
+
profile: Profile;
|
|
1998
|
+
}
|
|
1965
1999
|
/**
|
|
1966
2000
|
* Summary entry returned by ListEvaluations.
|
|
1967
2001
|
* @public
|
|
@@ -64,6 +64,10 @@ export declare var DeleteProfileInput$: StaticStructureSchema;
|
|
|
64
64
|
export declare var DeleteProfileOutput$: StaticStructureSchema;
|
|
65
65
|
export declare var DeleteProfileResourceInput$: StaticStructureSchema;
|
|
66
66
|
export declare var DeleteProfileResourceOutput$: StaticStructureSchema;
|
|
67
|
+
export declare var DisableProfileInput$: StaticStructureSchema;
|
|
68
|
+
export declare var DisableProfileOutput$: StaticStructureSchema;
|
|
69
|
+
export declare var EnableProfileInput$: StaticStructureSchema;
|
|
70
|
+
export declare var EnableProfileOutput$: StaticStructureSchema;
|
|
67
71
|
export declare var Evaluation$: StaticStructureSchema;
|
|
68
72
|
export declare var EvaluationInfo$: StaticStructureSchema;
|
|
69
73
|
export declare var EvaluationIntervalTrigger$: StaticStructureSchema;
|
|
@@ -154,6 +158,8 @@ export declare var DeleteEvaluation$: StaticOperationSchema;
|
|
|
154
158
|
export declare var DeleteIntent$: StaticOperationSchema;
|
|
155
159
|
export declare var DeleteProfile$: StaticOperationSchema;
|
|
156
160
|
export declare var DeleteProfileResource$: StaticOperationSchema;
|
|
161
|
+
export declare var DisableProfile$: StaticOperationSchema;
|
|
162
|
+
export declare var EnableProfile$: StaticOperationSchema;
|
|
157
163
|
export declare var GetAsset$: StaticOperationSchema;
|
|
158
164
|
export declare var GetAutomation$: StaticOperationSchema;
|
|
159
165
|
export declare var GetEvaluation$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wilma-copilot-client",
|
|
3
3
|
"description": "@wildix/wilma-copilot-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.21",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|