@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
@@ -24,6 +24,7 @@ import { ListEvaluationsCommand, } from "./commands/ListEvaluationsCommand";
24
24
  import { ListIntentsCommand, } from "./commands/ListIntentsCommand";
25
25
  import { ListProfilesCommand, } from "./commands/ListProfilesCommand";
26
26
  import { ListProfileVersionsCommand, } from "./commands/ListProfileVersionsCommand";
27
+ import { ListSubscriptionsCommand, } from "./commands/ListSubscriptionsCommand";
27
28
  import { PublishProfileVersionCommand, } from "./commands/PublishProfileVersionCommand";
28
29
  import { RestoreProfileVersionToDraftCommand, } from "./commands/RestoreProfileVersionToDraftCommand";
29
30
  import { UpdateAssetCommand, } from "./commands/UpdateAssetCommand";
@@ -58,6 +59,7 @@ const commands = {
58
59
  ListIntentsCommand,
59
60
  ListProfilesCommand,
60
61
  ListProfileVersionsCommand,
62
+ ListSubscriptionsCommand,
61
63
  PublishProfileVersionCommand,
62
64
  RestoreProfileVersionToDraftCommand,
63
65
  UpdateAssetCommand,
@@ -33,6 +33,12 @@ function createWildixAuthXbsHttpAuthOption(authParameters) {
33
33
  export const defaultWilmaCopilotHttpAuthSchemeProvider = (authParameters) => {
34
34
  const options = [];
35
35
  switch (authParameters.operation) {
36
+ case "ListSubscriptions":
37
+ {
38
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
39
+ break;
40
+ }
41
+ ;
36
42
  default: {
37
43
  options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
38
44
  options.push(createWildixAuthS2sHttpAuthOption(authParameters));
@@ -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 { ListSubscriptions$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListSubscriptionsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("WilmaCopilot", "ListSubscriptions", {})
13
+ .n("WilmaCopilotClient", "ListSubscriptionsCommand")
14
+ .sc(ListSubscriptions$)
15
+ .build() {
16
+ }
@@ -23,6 +23,7 @@ export * from "./ListEvaluationsCommand";
23
23
  export * from "./ListIntentsCommand";
24
24
  export * from "./ListProfileVersionsCommand";
25
25
  export * from "./ListProfilesCommand";
26
+ export * from "./ListSubscriptionsCommand";
26
27
  export * from "./PublishProfileVersionCommand";
27
28
  export * from "./RestoreProfileVersionToDraftCommand";
28
29
  export * from "./UpdateAssetCommand";
@@ -48,19 +48,34 @@ export const ContextualKnowledgeSource = {
48
48
  AGENT: "agent",
49
49
  KNOWLEDGE_BASES: "knowledge_bases",
50
50
  };
51
- export const CopilotVisibility = {
52
- EXPLICIT: "explicit",
53
- ORGANIZATION: "organization",
51
+ export const CopilotAudienceKind = {
52
+ AGENT: "agent",
53
+ DEPARTMENT: "department",
54
+ GROUP: "group",
55
+ QUEUE: "queue",
56
+ SERVICE: "service",
57
+ TRUNK: "trunk",
58
+ USER: "user",
54
59
  };
55
60
  export const CopilotChannel = {
56
- ANY: "any",
57
- CALLS: "calls",
58
- CHATS: "chats",
61
+ CALL: "call",
62
+ CHAT: "chat",
63
+ CONFERENCE: "conference",
64
+ };
65
+ export const CopilotStage = {
66
+ AFTER: "after",
67
+ BEFORE: "before",
68
+ DURING: "during",
59
69
  };
60
70
  export const ProfileStatus = {
61
71
  ACTIVE: "active",
62
72
  DRAFT: "draft",
63
73
  };
74
+ export const CopilotSpeaker = {
75
+ AGENT: "agent",
76
+ ANYONE: "anyone",
77
+ CUSTOMER: "customer",
78
+ };
64
79
  export const EvaluationWindow = {
65
80
  FULL_TRANSCRIPT: "full_transcript",
66
81
  NEW_TRANSCRIPT: "new_transcript",