@wildix/wilma-copilot-client 1.0.18 → 1.0.20

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 (32) hide show
  1. package/dist-cjs/WilmaCopilot.js +2 -0
  2. package/dist-cjs/auth/httpAuthSchemeProvider.js +6 -0
  3. package/dist-cjs/commands/ListSubscriptionsCommand.js +20 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/enums.js +22 -7
  6. package/dist-cjs/schemas/schemas_0.js +165 -128
  7. package/dist-es/WilmaCopilot.js +2 -0
  8. package/dist-es/auth/httpAuthSchemeProvider.js +6 -0
  9. package/dist-es/commands/ListSubscriptionsCommand.js +16 -0
  10. package/dist-es/commands/index.js +1 -0
  11. package/dist-es/models/enums.js +21 -6
  12. package/dist-es/schemas/schemas_0.js +161 -124
  13. package/dist-types/WilmaCopilot.d.ts +8 -0
  14. package/dist-types/WilmaCopilotClient.d.ts +3 -2
  15. package/dist-types/commands/AttachProfileResourceCommand.d.ts +14 -10
  16. package/dist-types/commands/CreateIntentCommand.d.ts +2 -4
  17. package/dist-types/commands/CreateProfileCommand.d.ts +28 -20
  18. package/dist-types/commands/DeleteProfileResourceCommand.d.ts +14 -10
  19. package/dist-types/commands/GetIntentCommand.d.ts +1 -2
  20. package/dist-types/commands/GetProfileCommand.d.ts +14 -10
  21. package/dist-types/commands/GetProfileVersionCommand.d.ts +17 -16
  22. package/dist-types/commands/ListProfilesCommand.d.ts +16 -2
  23. package/dist-types/commands/ListSubscriptionsCommand.d.ts +106 -0
  24. package/dist-types/commands/PublishProfileVersionCommand.d.ts +17 -16
  25. package/dist-types/commands/RestoreProfileVersionToDraftCommand.d.ts +14 -10
  26. package/dist-types/commands/UpdateIntentCommand.d.ts +2 -4
  27. package/dist-types/commands/UpdateProfileCommand.d.ts +28 -20
  28. package/dist-types/commands/index.d.ts +1 -0
  29. package/dist-types/models/enums.d.ts +40 -9
  30. package/dist-types/models/models_0.d.ts +195 -79
  31. package/dist-types/schemas/schemas_0.d.ts +6 -2
  32. package/package.json +1 -1
@@ -27,6 +27,7 @@ const ListEvaluationsCommand_1 = require("./commands/ListEvaluationsCommand");
27
27
  const ListIntentsCommand_1 = require("./commands/ListIntentsCommand");
28
28
  const ListProfilesCommand_1 = require("./commands/ListProfilesCommand");
29
29
  const ListProfileVersionsCommand_1 = require("./commands/ListProfileVersionsCommand");
30
+ const ListSubscriptionsCommand_1 = require("./commands/ListSubscriptionsCommand");
30
31
  const PublishProfileVersionCommand_1 = require("./commands/PublishProfileVersionCommand");
31
32
  const RestoreProfileVersionToDraftCommand_1 = require("./commands/RestoreProfileVersionToDraftCommand");
32
33
  const UpdateAssetCommand_1 = require("./commands/UpdateAssetCommand");
@@ -61,6 +62,7 @@ const commands = {
61
62
  ListIntentsCommand: ListIntentsCommand_1.ListIntentsCommand,
62
63
  ListProfilesCommand: ListProfilesCommand_1.ListProfilesCommand,
63
64
  ListProfileVersionsCommand: ListProfileVersionsCommand_1.ListProfileVersionsCommand,
65
+ ListSubscriptionsCommand: ListSubscriptionsCommand_1.ListSubscriptionsCommand,
64
66
  PublishProfileVersionCommand: PublishProfileVersionCommand_1.PublishProfileVersionCommand,
65
67
  RestoreProfileVersionToDraftCommand: RestoreProfileVersionToDraftCommand_1.RestoreProfileVersionToDraftCommand,
66
68
  UpdateAssetCommand: UpdateAssetCommand_1.UpdateAssetCommand,
@@ -37,6 +37,12 @@ function createWildixAuthXbsHttpAuthOption(authParameters) {
37
37
  const defaultWilmaCopilotHttpAuthSchemeProvider = (authParameters) => {
38
38
  const options = [];
39
39
  switch (authParameters.operation) {
40
+ case "ListSubscriptions":
41
+ {
42
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
43
+ break;
44
+ }
45
+ ;
40
46
  default: {
41
47
  options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
42
48
  options.push(createWildixAuthS2sHttpAuthOption(authParameters));
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListSubscriptionsCommand = 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 ListSubscriptionsCommand 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", "ListSubscriptions", {})
16
+ .n("WilmaCopilotClient", "ListSubscriptionsCommand")
17
+ .sc(schemas_0_1.ListSubscriptions$)
18
+ .build() {
19
+ }
20
+ exports.ListSubscriptionsCommand = ListSubscriptionsCommand;
@@ -26,6 +26,7 @@ tslib_1.__exportStar(require("./ListEvaluationsCommand"), exports);
26
26
  tslib_1.__exportStar(require("./ListIntentsCommand"), exports);
27
27
  tslib_1.__exportStar(require("./ListProfileVersionsCommand"), exports);
28
28
  tslib_1.__exportStar(require("./ListProfilesCommand"), exports);
29
+ tslib_1.__exportStar(require("./ListSubscriptionsCommand"), exports);
29
30
  tslib_1.__exportStar(require("./PublishProfileVersionCommand"), exports);
30
31
  tslib_1.__exportStar(require("./RestoreProfileVersionToDraftCommand"), exports);
31
32
  tslib_1.__exportStar(require("./UpdateAssetCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProfileResourceType = exports.IntentTextMatchMode = exports.EvaluationWindow = exports.ProfileStatus = exports.CopilotChannel = exports.CopilotVisibility = exports.ContextualKnowledgeSource = exports.ContextualKnowledgeMode = exports.AssetContentType = exports.AssetSeverity = exports.AssetIcon = exports.SmartActionResultMode = exports.SmartActionHandoverVariant = exports.CopilotVariableMode = exports.AutomationOutputMode = exports.ActorType = void 0;
3
+ exports.ProfileResourceType = exports.IntentTextMatchMode = exports.EvaluationWindow = exports.CopilotSpeaker = exports.ProfileStatus = exports.CopilotStage = exports.CopilotChannel = exports.CopilotAudienceKind = exports.ContextualKnowledgeSource = exports.ContextualKnowledgeMode = exports.AssetContentType = exports.AssetSeverity = exports.AssetIcon = exports.SmartActionResultMode = exports.SmartActionHandoverVariant = exports.CopilotVariableMode = exports.AutomationOutputMode = exports.ActorType = void 0;
4
4
  exports.ActorType = {
5
5
  API_KEY: "api_key",
6
6
  SERVICE: "service",
@@ -51,19 +51,34 @@ exports.ContextualKnowledgeSource = {
51
51
  AGENT: "agent",
52
52
  KNOWLEDGE_BASES: "knowledge_bases",
53
53
  };
54
- exports.CopilotVisibility = {
55
- EXPLICIT: "explicit",
56
- ORGANIZATION: "organization",
54
+ exports.CopilotAudienceKind = {
55
+ AGENT: "agent",
56
+ DEPARTMENT: "department",
57
+ GROUP: "group",
58
+ QUEUE: "queue",
59
+ SERVICE: "service",
60
+ TRUNK: "trunk",
61
+ USER: "user",
57
62
  };
58
63
  exports.CopilotChannel = {
59
- ANY: "any",
60
- CALLS: "calls",
61
- CHATS: "chats",
64
+ CALL: "call",
65
+ CHAT: "chat",
66
+ CONFERENCE: "conference",
67
+ };
68
+ exports.CopilotStage = {
69
+ AFTER: "after",
70
+ BEFORE: "before",
71
+ DURING: "during",
62
72
  };
63
73
  exports.ProfileStatus = {
64
74
  ACTIVE: "active",
65
75
  DRAFT: "draft",
66
76
  };
77
+ exports.CopilotSpeaker = {
78
+ AGENT: "agent",
79
+ ANYONE: "anyone",
80
+ CUSTOMER: "customer",
81
+ };
67
82
  exports.EvaluationWindow = {
68
83
  FULL_TRANSCRIPT: "full_transcript",
69
84
  NEW_TRANSCRIPT: "new_transcript",