@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.
- package/dist-cjs/WilmaCopilot.js +2 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +6 -0
- package/dist-cjs/commands/ListSubscriptionsCommand.js +20 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/enums.js +22 -7
- package/dist-cjs/schemas/schemas_0.js +165 -128
- package/dist-es/WilmaCopilot.js +2 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +6 -0
- package/dist-es/commands/ListSubscriptionsCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +21 -6
- package/dist-es/schemas/schemas_0.js +161 -124
- package/dist-types/WilmaCopilot.d.ts +8 -0
- package/dist-types/WilmaCopilotClient.d.ts +3 -2
- package/dist-types/commands/AttachProfileResourceCommand.d.ts +14 -10
- package/dist-types/commands/CreateIntentCommand.d.ts +2 -4
- package/dist-types/commands/CreateProfileCommand.d.ts +28 -20
- package/dist-types/commands/DeleteProfileResourceCommand.d.ts +14 -10
- package/dist-types/commands/GetIntentCommand.d.ts +1 -2
- package/dist-types/commands/GetProfileCommand.d.ts +14 -10
- package/dist-types/commands/GetProfileVersionCommand.d.ts +17 -16
- package/dist-types/commands/ListProfilesCommand.d.ts +16 -2
- package/dist-types/commands/ListSubscriptionsCommand.d.ts +106 -0
- package/dist-types/commands/PublishProfileVersionCommand.d.ts +17 -16
- package/dist-types/commands/RestoreProfileVersionToDraftCommand.d.ts +14 -10
- package/dist-types/commands/UpdateIntentCommand.d.ts +2 -4
- package/dist-types/commands/UpdateProfileCommand.d.ts +28 -20
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +40 -9
- package/dist-types/models/models_0.d.ts +195 -79
- package/dist-types/schemas/schemas_0.d.ts +6 -2
- package/package.json +1 -1
|
@@ -24,6 +24,7 @@ import { type ListEvaluationsCommandInput, type ListEvaluationsCommandOutput } f
|
|
|
24
24
|
import { type ListIntentsCommandInput, type ListIntentsCommandOutput } from "./commands/ListIntentsCommand";
|
|
25
25
|
import { type ListProfilesCommandInput, type ListProfilesCommandOutput } from "./commands/ListProfilesCommand";
|
|
26
26
|
import { type ListProfileVersionsCommandInput, type ListProfileVersionsCommandOutput } from "./commands/ListProfileVersionsCommand";
|
|
27
|
+
import { type ListSubscriptionsCommandInput, type ListSubscriptionsCommandOutput } from "./commands/ListSubscriptionsCommand";
|
|
27
28
|
import { type PublishProfileVersionCommandInput, type PublishProfileVersionCommandOutput } from "./commands/PublishProfileVersionCommand";
|
|
28
29
|
import { type RestoreProfileVersionToDraftCommandInput, type RestoreProfileVersionToDraftCommandOutput } from "./commands/RestoreProfileVersionToDraftCommand";
|
|
29
30
|
import { type UpdateAssetCommandInput, type UpdateAssetCommandOutput } from "./commands/UpdateAssetCommand";
|
|
@@ -188,6 +189,13 @@ export interface WilmaCopilot {
|
|
|
188
189
|
listProfileVersions(args: ListProfileVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListProfileVersionsCommandOutput>;
|
|
189
190
|
listProfileVersions(args: ListProfileVersionsCommandInput, cb: (err: any, data?: ListProfileVersionsCommandOutput) => void): void;
|
|
190
191
|
listProfileVersions(args: ListProfileVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProfileVersionsCommandOutput) => void): void;
|
|
192
|
+
/**
|
|
193
|
+
* @see {@link ListSubscriptionsCommand}
|
|
194
|
+
*/
|
|
195
|
+
listSubscriptions(): Promise<ListSubscriptionsCommandOutput>;
|
|
196
|
+
listSubscriptions(args: ListSubscriptionsCommandInput, options?: __HttpHandlerOptions): Promise<ListSubscriptionsCommandOutput>;
|
|
197
|
+
listSubscriptions(args: ListSubscriptionsCommandInput, cb: (err: any, data?: ListSubscriptionsCommandOutput) => void): void;
|
|
198
|
+
listSubscriptions(args: ListSubscriptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSubscriptionsCommandOutput) => void): void;
|
|
191
199
|
/**
|
|
192
200
|
* @see {@link PublishProfileVersionCommand}
|
|
193
201
|
*/
|
|
@@ -30,6 +30,7 @@ import type { ListEvaluationsCommandInput, ListEvaluationsCommandOutput } from "
|
|
|
30
30
|
import type { ListIntentsCommandInput, ListIntentsCommandOutput } from "./commands/ListIntentsCommand";
|
|
31
31
|
import type { ListProfilesCommandInput, ListProfilesCommandOutput } from "./commands/ListProfilesCommand";
|
|
32
32
|
import type { ListProfileVersionsCommandInput, ListProfileVersionsCommandOutput } from "./commands/ListProfileVersionsCommand";
|
|
33
|
+
import type { ListSubscriptionsCommandInput, ListSubscriptionsCommandOutput } from "./commands/ListSubscriptionsCommand";
|
|
33
34
|
import type { PublishProfileVersionCommandInput, PublishProfileVersionCommandOutput } from "./commands/PublishProfileVersionCommand";
|
|
34
35
|
import type { RestoreProfileVersionToDraftCommandInput, RestoreProfileVersionToDraftCommandOutput } from "./commands/RestoreProfileVersionToDraftCommand";
|
|
35
36
|
import type { UpdateAssetCommandInput, UpdateAssetCommandOutput } from "./commands/UpdateAssetCommand";
|
|
@@ -43,11 +44,11 @@ export { __Client };
|
|
|
43
44
|
/**
|
|
44
45
|
* @public
|
|
45
46
|
*/
|
|
46
|
-
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 | PublishProfileVersionCommandInput | RestoreProfileVersionToDraftCommandInput | UpdateAssetCommandInput | UpdateAutomationCommandInput | UpdateEvaluationCommandInput | UpdateIntentCommandInput | UpdateProfileCommandInput;
|
|
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;
|
|
47
48
|
/**
|
|
48
49
|
* @public
|
|
49
50
|
*/
|
|
50
|
-
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 | PublishProfileVersionCommandOutput | RestoreProfileVersionToDraftCommandOutput | UpdateAssetCommandOutput | UpdateAutomationCommandOutput | UpdateEvaluationCommandOutput | UpdateIntentCommandOutput | UpdateProfileCommandOutput;
|
|
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;
|
|
51
52
|
/**
|
|
52
53
|
* @public
|
|
53
54
|
*/
|
|
@@ -67,17 +67,21 @@ declare const AttachProfileResourceCommand_base: {
|
|
|
67
67
|
* // profile: { // Profile
|
|
68
68
|
* // name: "STRING_VALUE", // required
|
|
69
69
|
* // description: "STRING_VALUE",
|
|
70
|
-
* //
|
|
70
|
+
* // audience: [ // CopilotAudienceList
|
|
71
|
+
* // { // CopilotAudienceEntry
|
|
72
|
+
* // kind: "user" || "group" || "department" || "agent" || "queue" || "service" || "trunk", // required
|
|
73
|
+
* // values: [ // StringList // required
|
|
74
|
+
* // "STRING_VALUE",
|
|
75
|
+
* // ],
|
|
76
|
+
* // },
|
|
77
|
+
* // ],
|
|
78
|
+
* // stages: [ // CopilotStageList
|
|
79
|
+
* // "before" || "during" || "after",
|
|
80
|
+
* // ],
|
|
81
|
+
* // channels: [ // CopilotChannelList
|
|
82
|
+
* // "call" || "conference" || "chat",
|
|
83
|
+
* // ],
|
|
71
84
|
* // conditions: "DOCUMENT_VALUE",
|
|
72
|
-
* // access: { // CopilotAccess
|
|
73
|
-
* // visibility: "explicit" || "organization",
|
|
74
|
-
* // grants: [ // CopilotGrantPrincipalList
|
|
75
|
-
* // { // CopilotGrantPrincipal Union: only one key present
|
|
76
|
-
* // userId: "STRING_VALUE",
|
|
77
|
-
* // groupId: "STRING_VALUE",
|
|
78
|
-
* // },
|
|
79
|
-
* // ],
|
|
80
|
-
* // },
|
|
81
85
|
* // features: [ // CopilotFeaturesList
|
|
82
86
|
* // { // CopilotFeature Union: only one key present
|
|
83
87
|
* // csat: {},
|
|
@@ -41,7 +41,6 @@ declare const CreateIntentCommand_base: {
|
|
|
41
41
|
* description: "STRING_VALUE",
|
|
42
42
|
* handlers: { // IntentHandlers
|
|
43
43
|
* textMatch: { // IntentTextMatch
|
|
44
|
-
* enabled: true || false, // required
|
|
45
44
|
* options: [ // IntentTextMatchOptionsList
|
|
46
45
|
* { // IntentTextMatchOption
|
|
47
46
|
* id: "STRING_VALUE", // required
|
|
@@ -51,7 +50,6 @@ declare const CreateIntentCommand_base: {
|
|
|
51
50
|
* ],
|
|
52
51
|
* },
|
|
53
52
|
* aiMatch: { // IntentAiMatch
|
|
54
|
-
* enabled: true || false, // required
|
|
55
53
|
* instructions: "STRING_VALUE",
|
|
56
54
|
* fields: [ // CopilotFieldsList
|
|
57
55
|
* { // CopilotField
|
|
@@ -88,6 +86,7 @@ declare const CreateIntentCommand_base: {
|
|
|
88
86
|
* },
|
|
89
87
|
* ],
|
|
90
88
|
* },
|
|
89
|
+
* saidBy: "anyone" || "agent" || "customer",
|
|
91
90
|
* },
|
|
92
91
|
* conditions: "DOCUMENT_VALUE",
|
|
93
92
|
* company: "STRING_VALUE",
|
|
@@ -100,7 +99,6 @@ declare const CreateIntentCommand_base: {
|
|
|
100
99
|
* // description: "STRING_VALUE",
|
|
101
100
|
* // handlers: { // IntentHandlers
|
|
102
101
|
* // textMatch: { // IntentTextMatch
|
|
103
|
-
* // enabled: true || false, // required
|
|
104
102
|
* // options: [ // IntentTextMatchOptionsList
|
|
105
103
|
* // { // IntentTextMatchOption
|
|
106
104
|
* // id: "STRING_VALUE", // required
|
|
@@ -110,7 +108,6 @@ declare const CreateIntentCommand_base: {
|
|
|
110
108
|
* // ],
|
|
111
109
|
* // },
|
|
112
110
|
* // aiMatch: { // IntentAiMatch
|
|
113
|
-
* // enabled: true || false, // required
|
|
114
111
|
* // instructions: "STRING_VALUE",
|
|
115
112
|
* // fields: [ // CopilotFieldsList
|
|
116
113
|
* // { // CopilotField
|
|
@@ -147,6 +144,7 @@ declare const CreateIntentCommand_base: {
|
|
|
147
144
|
* // },
|
|
148
145
|
* // ],
|
|
149
146
|
* // },
|
|
147
|
+
* // saidBy: "anyone" || "agent" || "customer",
|
|
150
148
|
* // },
|
|
151
149
|
* // conditions: "DOCUMENT_VALUE",
|
|
152
150
|
* // createdAt: "STRING_VALUE", // required
|
|
@@ -39,17 +39,21 @@ declare const CreateProfileCommand_base: {
|
|
|
39
39
|
* const input = { // CreateProfileInput
|
|
40
40
|
* name: "STRING_VALUE", // required
|
|
41
41
|
* description: "STRING_VALUE",
|
|
42
|
-
*
|
|
42
|
+
* audience: [ // CopilotAudienceList
|
|
43
|
+
* { // CopilotAudienceEntry
|
|
44
|
+
* kind: "user" || "group" || "department" || "agent" || "queue" || "service" || "trunk", // required
|
|
45
|
+
* values: [ // StringList // required
|
|
46
|
+
* "STRING_VALUE",
|
|
47
|
+
* ],
|
|
48
|
+
* },
|
|
49
|
+
* ],
|
|
50
|
+
* stages: [ // CopilotStageList
|
|
51
|
+
* "before" || "during" || "after",
|
|
52
|
+
* ],
|
|
53
|
+
* channels: [ // CopilotChannelList
|
|
54
|
+
* "call" || "conference" || "chat",
|
|
55
|
+
* ],
|
|
43
56
|
* conditions: "DOCUMENT_VALUE",
|
|
44
|
-
* access: { // CopilotAccess
|
|
45
|
-
* visibility: "explicit" || "organization",
|
|
46
|
-
* grants: [ // CopilotGrantPrincipalList
|
|
47
|
-
* { // CopilotGrantPrincipal Union: only one key present
|
|
48
|
-
* userId: "STRING_VALUE",
|
|
49
|
-
* groupId: "STRING_VALUE",
|
|
50
|
-
* },
|
|
51
|
-
* ],
|
|
52
|
-
* },
|
|
53
57
|
* features: [ // CopilotFeaturesList
|
|
54
58
|
* { // CopilotFeature Union: only one key present
|
|
55
59
|
* csat: {},
|
|
@@ -86,17 +90,21 @@ declare const CreateProfileCommand_base: {
|
|
|
86
90
|
* // profile: { // Profile
|
|
87
91
|
* // name: "STRING_VALUE", // required
|
|
88
92
|
* // description: "STRING_VALUE",
|
|
89
|
-
* //
|
|
93
|
+
* // audience: [ // CopilotAudienceList
|
|
94
|
+
* // { // CopilotAudienceEntry
|
|
95
|
+
* // kind: "user" || "group" || "department" || "agent" || "queue" || "service" || "trunk", // required
|
|
96
|
+
* // values: [ // StringList // required
|
|
97
|
+
* // "STRING_VALUE",
|
|
98
|
+
* // ],
|
|
99
|
+
* // },
|
|
100
|
+
* // ],
|
|
101
|
+
* // stages: [ // CopilotStageList
|
|
102
|
+
* // "before" || "during" || "after",
|
|
103
|
+
* // ],
|
|
104
|
+
* // channels: [ // CopilotChannelList
|
|
105
|
+
* // "call" || "conference" || "chat",
|
|
106
|
+
* // ],
|
|
90
107
|
* // conditions: "DOCUMENT_VALUE",
|
|
91
|
-
* // access: { // CopilotAccess
|
|
92
|
-
* // visibility: "explicit" || "organization",
|
|
93
|
-
* // grants: [ // CopilotGrantPrincipalList
|
|
94
|
-
* // { // CopilotGrantPrincipal Union: only one key present
|
|
95
|
-
* // userId: "STRING_VALUE",
|
|
96
|
-
* // groupId: "STRING_VALUE",
|
|
97
|
-
* // },
|
|
98
|
-
* // ],
|
|
99
|
-
* // },
|
|
100
108
|
* // features: [ // CopilotFeaturesList
|
|
101
109
|
* // { // CopilotFeature Union: only one key present
|
|
102
110
|
* // csat: {},
|
|
@@ -49,17 +49,21 @@ declare const DeleteProfileResourceCommand_base: {
|
|
|
49
49
|
* // profile: { // Profile
|
|
50
50
|
* // name: "STRING_VALUE", // required
|
|
51
51
|
* // description: "STRING_VALUE",
|
|
52
|
-
* //
|
|
52
|
+
* // audience: [ // CopilotAudienceList
|
|
53
|
+
* // { // CopilotAudienceEntry
|
|
54
|
+
* // kind: "user" || "group" || "department" || "agent" || "queue" || "service" || "trunk", // required
|
|
55
|
+
* // values: [ // StringList // required
|
|
56
|
+
* // "STRING_VALUE",
|
|
57
|
+
* // ],
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // stages: [ // CopilotStageList
|
|
61
|
+
* // "before" || "during" || "after",
|
|
62
|
+
* // ],
|
|
63
|
+
* // channels: [ // CopilotChannelList
|
|
64
|
+
* // "call" || "conference" || "chat",
|
|
65
|
+
* // ],
|
|
53
66
|
* // conditions: "DOCUMENT_VALUE",
|
|
54
|
-
* // access: { // CopilotAccess
|
|
55
|
-
* // visibility: "explicit" || "organization",
|
|
56
|
-
* // grants: [ // CopilotGrantPrincipalList
|
|
57
|
-
* // { // CopilotGrantPrincipal Union: only one key present
|
|
58
|
-
* // userId: "STRING_VALUE",
|
|
59
|
-
* // groupId: "STRING_VALUE",
|
|
60
|
-
* // },
|
|
61
|
-
* // ],
|
|
62
|
-
* // },
|
|
63
67
|
* // features: [ // CopilotFeaturesList
|
|
64
68
|
* // { // CopilotFeature Union: only one key present
|
|
65
69
|
* // csat: {},
|
|
@@ -48,7 +48,6 @@ declare const GetIntentCommand_base: {
|
|
|
48
48
|
* // description: "STRING_VALUE",
|
|
49
49
|
* // handlers: { // IntentHandlers
|
|
50
50
|
* // textMatch: { // IntentTextMatch
|
|
51
|
-
* // enabled: true || false, // required
|
|
52
51
|
* // options: [ // IntentTextMatchOptionsList
|
|
53
52
|
* // { // IntentTextMatchOption
|
|
54
53
|
* // id: "STRING_VALUE", // required
|
|
@@ -58,7 +57,6 @@ declare const GetIntentCommand_base: {
|
|
|
58
57
|
* // ],
|
|
59
58
|
* // },
|
|
60
59
|
* // aiMatch: { // IntentAiMatch
|
|
61
|
-
* // enabled: true || false, // required
|
|
62
60
|
* // instructions: "STRING_VALUE",
|
|
63
61
|
* // fields: [ // CopilotFieldsList
|
|
64
62
|
* // { // CopilotField
|
|
@@ -95,6 +93,7 @@ declare const GetIntentCommand_base: {
|
|
|
95
93
|
* // },
|
|
96
94
|
* // ],
|
|
97
95
|
* // },
|
|
96
|
+
* // saidBy: "anyone" || "agent" || "customer",
|
|
98
97
|
* // },
|
|
99
98
|
* // conditions: "DOCUMENT_VALUE",
|
|
100
99
|
* // createdAt: "STRING_VALUE", // required
|
|
@@ -46,17 +46,21 @@ declare const GetProfileCommand_base: {
|
|
|
46
46
|
* // profile: { // Profile
|
|
47
47
|
* // name: "STRING_VALUE", // required
|
|
48
48
|
* // description: "STRING_VALUE",
|
|
49
|
-
* //
|
|
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
|
+
* // ],
|
|
50
63
|
* // conditions: "DOCUMENT_VALUE",
|
|
51
|
-
* // access: { // CopilotAccess
|
|
52
|
-
* // visibility: "explicit" || "organization",
|
|
53
|
-
* // grants: [ // CopilotGrantPrincipalList
|
|
54
|
-
* // { // CopilotGrantPrincipal Union: only one key present
|
|
55
|
-
* // userId: "STRING_VALUE",
|
|
56
|
-
* // groupId: "STRING_VALUE",
|
|
57
|
-
* // },
|
|
58
|
-
* // ],
|
|
59
|
-
* // },
|
|
60
64
|
* // features: [ // CopilotFeaturesList
|
|
61
65
|
* // { // CopilotFeature Union: only one key present
|
|
62
66
|
* // csat: {},
|
|
@@ -51,17 +51,21 @@ declare const GetProfileVersionCommand_base: {
|
|
|
51
51
|
* // definition: { // ProfileDefinitionSnapshot
|
|
52
52
|
* // name: "STRING_VALUE", // required
|
|
53
53
|
* // description: "STRING_VALUE",
|
|
54
|
-
* //
|
|
54
|
+
* // audience: [ // CopilotAudienceList
|
|
55
|
+
* // { // CopilotAudienceEntry
|
|
56
|
+
* // kind: "user" || "group" || "department" || "agent" || "queue" || "service" || "trunk", // required
|
|
57
|
+
* // values: [ // StringList // required
|
|
58
|
+
* // "STRING_VALUE",
|
|
59
|
+
* // ],
|
|
60
|
+
* // },
|
|
61
|
+
* // ],
|
|
62
|
+
* // stages: [ // CopilotStageList
|
|
63
|
+
* // "before" || "during" || "after",
|
|
64
|
+
* // ],
|
|
65
|
+
* // channels: [ // CopilotChannelList
|
|
66
|
+
* // "call" || "conference" || "chat",
|
|
67
|
+
* // ],
|
|
55
68
|
* // conditions: "DOCUMENT_VALUE",
|
|
56
|
-
* // access: { // CopilotAccess
|
|
57
|
-
* // visibility: "explicit" || "organization",
|
|
58
|
-
* // grants: [ // CopilotGrantPrincipalList
|
|
59
|
-
* // { // CopilotGrantPrincipal Union: only one key present
|
|
60
|
-
* // userId: "STRING_VALUE",
|
|
61
|
-
* // groupId: "STRING_VALUE",
|
|
62
|
-
* // },
|
|
63
|
-
* // ],
|
|
64
|
-
* // },
|
|
65
69
|
* // features: [ // CopilotFeaturesList
|
|
66
70
|
* // { // CopilotFeature Union: only one key present
|
|
67
71
|
* // csat: {},
|
|
@@ -84,7 +88,6 @@ declare const GetProfileVersionCommand_base: {
|
|
|
84
88
|
* // description: "STRING_VALUE",
|
|
85
89
|
* // handlers: { // IntentHandlers
|
|
86
90
|
* // textMatch: { // IntentTextMatch
|
|
87
|
-
* // enabled: true || false, // required
|
|
88
91
|
* // options: [ // IntentTextMatchOptionsList
|
|
89
92
|
* // { // IntentTextMatchOption
|
|
90
93
|
* // id: "STRING_VALUE", // required
|
|
@@ -94,7 +97,6 @@ declare const GetProfileVersionCommand_base: {
|
|
|
94
97
|
* // ],
|
|
95
98
|
* // },
|
|
96
99
|
* // aiMatch: { // IntentAiMatch
|
|
97
|
-
* // enabled: true || false, // required
|
|
98
100
|
* // instructions: "STRING_VALUE",
|
|
99
101
|
* // fields: [ // CopilotFieldsList
|
|
100
102
|
* // { // CopilotField
|
|
@@ -104,7 +106,7 @@ declare const GetProfileVersionCommand_base: {
|
|
|
104
106
|
* // optional: true || false,
|
|
105
107
|
* // parameter: { // CopilotFieldParameter Union: only one key present
|
|
106
108
|
* // text: { // CopilotTextParameter
|
|
107
|
-
* // examples: [
|
|
109
|
+
* // examples: [
|
|
108
110
|
* // "STRING_VALUE",
|
|
109
111
|
* // ],
|
|
110
112
|
* // },
|
|
@@ -131,6 +133,7 @@ declare const GetProfileVersionCommand_base: {
|
|
|
131
133
|
* // },
|
|
132
134
|
* // ],
|
|
133
135
|
* // },
|
|
136
|
+
* // saidBy: "anyone" || "agent" || "customer",
|
|
134
137
|
* // },
|
|
135
138
|
* // conditions: "DOCUMENT_VALUE",
|
|
136
139
|
* // id: "STRING_VALUE", // required
|
|
@@ -149,9 +152,7 @@ declare const GetProfileVersionCommand_base: {
|
|
|
149
152
|
* // optional: true || false,
|
|
150
153
|
* // parameter: {// Union: only one key present
|
|
151
154
|
* // text: {
|
|
152
|
-
* // examples:
|
|
153
|
-
* // "STRING_VALUE",
|
|
154
|
-
* // ],
|
|
155
|
+
* // examples: "<StringList>",
|
|
155
156
|
* // },
|
|
156
157
|
* // multiline: {
|
|
157
158
|
* // examples: "<StringList>",
|
|
@@ -39,7 +39,8 @@ declare const ListProfilesCommand_base: {
|
|
|
39
39
|
* const input = { // ListProfilesInput
|
|
40
40
|
* company: "STRING_VALUE",
|
|
41
41
|
* status: "draft" || "active",
|
|
42
|
-
* channel: "
|
|
42
|
+
* channel: "call" || "conference" || "chat",
|
|
43
|
+
* stage: "before" || "during" || "after",
|
|
43
44
|
* search: "STRING_VALUE",
|
|
44
45
|
* limit: Number("int"),
|
|
45
46
|
* cursor: "STRING_VALUE",
|
|
@@ -64,7 +65,20 @@ declare const ListProfilesCommand_base: {
|
|
|
64
65
|
* // id: "STRING_VALUE", // required
|
|
65
66
|
* // name: "STRING_VALUE", // required
|
|
66
67
|
* // description: "STRING_VALUE",
|
|
67
|
-
* //
|
|
68
|
+
* // audience: [ // CopilotAudienceList
|
|
69
|
+
* // { // CopilotAudienceEntry
|
|
70
|
+
* // kind: "user" || "group" || "department" || "agent" || "queue" || "service" || "trunk", // required
|
|
71
|
+
* // values: [ // StringList // required
|
|
72
|
+
* // "STRING_VALUE",
|
|
73
|
+
* // ],
|
|
74
|
+
* // },
|
|
75
|
+
* // ],
|
|
76
|
+
* // stages: [ // CopilotStageList
|
|
77
|
+
* // "before" || "during" || "after",
|
|
78
|
+
* // ],
|
|
79
|
+
* // channels: [ // CopilotChannelList
|
|
80
|
+
* // "call" || "conference" || "chat",
|
|
81
|
+
* // ],
|
|
68
82
|
* // status: "draft" || "active", // required
|
|
69
83
|
* // live: true || false, // required
|
|
70
84
|
* // latestVersion: Number("int"),
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { ListSubscriptionsInput, ListSubscriptionsOutput } 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 ListSubscriptionsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListSubscriptionsCommandInput extends ListSubscriptionsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListSubscriptionsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListSubscriptionsCommandOutput extends ListSubscriptionsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListSubscriptionsCommand_base: {
|
|
25
|
+
new (input: ListSubscriptionsCommandInput): import("@smithy/core/client").CommandImpl<ListSubscriptionsCommandInput, ListSubscriptionsCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListSubscriptionsCommandInput]): import("@smithy/core/client").CommandImpl<ListSubscriptionsCommandInput, ListSubscriptionsCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Lists the wda-stream events copilot needs delivered, for every company that has a published
|
|
31
|
+
* profile — the ingress contract between wda-stream and the copilot runtime.
|
|
32
|
+
*
|
|
33
|
+
* **Service tokens only.** The answer spans every company on the platform: it is the event
|
|
34
|
+
* producer's routing table, not a tenant's view of its own configuration, and there is no company
|
|
35
|
+
* parameter to scope it with. A user, PBX or API-key token is refused. Every subscription is
|
|
36
|
+
* returned in one response, unpaginated, because the producer applies it as a whole — a table
|
|
37
|
+
* assembled from several requests can be applied half-built, which looks exactly like a set of
|
|
38
|
+
* companies that unsubscribed.
|
|
39
|
+
*
|
|
40
|
+
* Copilot is a state machine over a conversation, not a filter over single events, so the answer
|
|
41
|
+
* is coarser than an automation's. A profile that shows an asset after 45 seconds needs a session
|
|
42
|
+
* that exists and a timer that is running, which means the conversation's lifecycle events; one
|
|
43
|
+
* that reads the transcript needs every transcription event, interim chunks included. What the
|
|
44
|
+
* published profiles do *not* need is what this operation leaves out: the surfaces no profile
|
|
45
|
+
* targets, transcription for profiles that never read it, and every company with no published
|
|
46
|
+
* profile at all.
|
|
47
|
+
*
|
|
48
|
+
* Conditions are resolved in the session against accumulated state, so they cannot be pushed to
|
|
49
|
+
* the producer; a selector therefore carries `conditions` only where a profile's requirement
|
|
50
|
+
* genuinely reduces to a property of one event.
|
|
51
|
+
* @example
|
|
52
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
53
|
+
* ```javascript
|
|
54
|
+
* import { WilmaCopilotClient, ListSubscriptionsCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
|
|
55
|
+
* // const { WilmaCopilotClient, ListSubscriptionsCommand } = require("@wildix/wilma-copilot-client"); // CommonJS import
|
|
56
|
+
* // import type { WilmaCopilotClientConfig } from "@wildix/wilma-copilot-client";
|
|
57
|
+
* const config = {}; // type is WilmaCopilotClientConfig
|
|
58
|
+
* const client = new WilmaCopilotClient(config);
|
|
59
|
+
* const input = {};
|
|
60
|
+
* const command = new ListSubscriptionsCommand(input);
|
|
61
|
+
* const response = await client.send(command);
|
|
62
|
+
* // { // ListSubscriptionsOutput
|
|
63
|
+
* // subscriptions: [ // SubscriptionList // required
|
|
64
|
+
* // { // Subscription
|
|
65
|
+
* // company: "STRING_VALUE", // required
|
|
66
|
+
* // selectors: [ // SubscriptionSelectorList // required
|
|
67
|
+
* // { // SubscriptionSelector
|
|
68
|
+
* // event: "STRING_VALUE", // required
|
|
69
|
+
* // conditions: "DOCUMENT_VALUE",
|
|
70
|
+
* // },
|
|
71
|
+
* // ],
|
|
72
|
+
* // },
|
|
73
|
+
* // ],
|
|
74
|
+
* // };
|
|
75
|
+
*
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* @param ListSubscriptionsCommandInput - {@link ListSubscriptionsCommandInput}
|
|
79
|
+
* @returns {@link ListSubscriptionsCommandOutput}
|
|
80
|
+
* @see {@link ListSubscriptionsCommandInput} for command's `input` shape.
|
|
81
|
+
* @see {@link ListSubscriptionsCommandOutput} for command's `response` shape.
|
|
82
|
+
* @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ValidationException} (client fault)
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link WilmaCopilotServiceException}
|
|
89
|
+
* <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
|
|
90
|
+
*
|
|
91
|
+
*
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export declare class ListSubscriptionsCommand extends ListSubscriptionsCommand_base {
|
|
95
|
+
/** @internal type navigation helper, not in runtime. */
|
|
96
|
+
protected static __types: {
|
|
97
|
+
api: {
|
|
98
|
+
input: {};
|
|
99
|
+
output: ListSubscriptionsOutput;
|
|
100
|
+
};
|
|
101
|
+
sdk: {
|
|
102
|
+
input: ListSubscriptionsCommandInput;
|
|
103
|
+
output: ListSubscriptionsCommandOutput;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
}
|
|
@@ -52,17 +52,21 @@ declare const PublishProfileVersionCommand_base: {
|
|
|
52
52
|
* // definition: { // ProfileDefinitionSnapshot
|
|
53
53
|
* // name: "STRING_VALUE", // required
|
|
54
54
|
* // description: "STRING_VALUE",
|
|
55
|
-
* //
|
|
55
|
+
* // audience: [ // CopilotAudienceList
|
|
56
|
+
* // { // CopilotAudienceEntry
|
|
57
|
+
* // kind: "user" || "group" || "department" || "agent" || "queue" || "service" || "trunk", // required
|
|
58
|
+
* // values: [ // StringList // required
|
|
59
|
+
* // "STRING_VALUE",
|
|
60
|
+
* // ],
|
|
61
|
+
* // },
|
|
62
|
+
* // ],
|
|
63
|
+
* // stages: [ // CopilotStageList
|
|
64
|
+
* // "before" || "during" || "after",
|
|
65
|
+
* // ],
|
|
66
|
+
* // channels: [ // CopilotChannelList
|
|
67
|
+
* // "call" || "conference" || "chat",
|
|
68
|
+
* // ],
|
|
56
69
|
* // conditions: "DOCUMENT_VALUE",
|
|
57
|
-
* // access: { // CopilotAccess
|
|
58
|
-
* // visibility: "explicit" || "organization",
|
|
59
|
-
* // grants: [ // CopilotGrantPrincipalList
|
|
60
|
-
* // { // CopilotGrantPrincipal Union: only one key present
|
|
61
|
-
* // userId: "STRING_VALUE",
|
|
62
|
-
* // groupId: "STRING_VALUE",
|
|
63
|
-
* // },
|
|
64
|
-
* // ],
|
|
65
|
-
* // },
|
|
66
70
|
* // features: [ // CopilotFeaturesList
|
|
67
71
|
* // { // CopilotFeature Union: only one key present
|
|
68
72
|
* // csat: {},
|
|
@@ -85,7 +89,6 @@ declare const PublishProfileVersionCommand_base: {
|
|
|
85
89
|
* // description: "STRING_VALUE",
|
|
86
90
|
* // handlers: { // IntentHandlers
|
|
87
91
|
* // textMatch: { // IntentTextMatch
|
|
88
|
-
* // enabled: true || false, // required
|
|
89
92
|
* // options: [ // IntentTextMatchOptionsList
|
|
90
93
|
* // { // IntentTextMatchOption
|
|
91
94
|
* // id: "STRING_VALUE", // required
|
|
@@ -95,7 +98,6 @@ declare const PublishProfileVersionCommand_base: {
|
|
|
95
98
|
* // ],
|
|
96
99
|
* // },
|
|
97
100
|
* // aiMatch: { // IntentAiMatch
|
|
98
|
-
* // enabled: true || false, // required
|
|
99
101
|
* // instructions: "STRING_VALUE",
|
|
100
102
|
* // fields: [ // CopilotFieldsList
|
|
101
103
|
* // { // CopilotField
|
|
@@ -105,7 +107,7 @@ declare const PublishProfileVersionCommand_base: {
|
|
|
105
107
|
* // optional: true || false,
|
|
106
108
|
* // parameter: { // CopilotFieldParameter Union: only one key present
|
|
107
109
|
* // text: { // CopilotTextParameter
|
|
108
|
-
* // examples: [
|
|
110
|
+
* // examples: [
|
|
109
111
|
* // "STRING_VALUE",
|
|
110
112
|
* // ],
|
|
111
113
|
* // },
|
|
@@ -132,6 +134,7 @@ declare const PublishProfileVersionCommand_base: {
|
|
|
132
134
|
* // },
|
|
133
135
|
* // ],
|
|
134
136
|
* // },
|
|
137
|
+
* // saidBy: "anyone" || "agent" || "customer",
|
|
135
138
|
* // },
|
|
136
139
|
* // conditions: "DOCUMENT_VALUE",
|
|
137
140
|
* // id: "STRING_VALUE", // required
|
|
@@ -150,9 +153,7 @@ declare const PublishProfileVersionCommand_base: {
|
|
|
150
153
|
* // optional: true || false,
|
|
151
154
|
* // parameter: {// Union: only one key present
|
|
152
155
|
* // text: {
|
|
153
|
-
* // examples:
|
|
154
|
-
* // "STRING_VALUE",
|
|
155
|
-
* // ],
|
|
156
|
+
* // examples: "<StringList>",
|
|
156
157
|
* // },
|
|
157
158
|
* // multiline: {
|
|
158
159
|
* // examples: "<StringList>",
|
|
@@ -48,17 +48,21 @@ declare const RestoreProfileVersionToDraftCommand_base: {
|
|
|
48
48
|
* // profile: { // Profile
|
|
49
49
|
* // name: "STRING_VALUE", // required
|
|
50
50
|
* // description: "STRING_VALUE",
|
|
51
|
-
* //
|
|
51
|
+
* // audience: [ // CopilotAudienceList
|
|
52
|
+
* // { // CopilotAudienceEntry
|
|
53
|
+
* // kind: "user" || "group" || "department" || "agent" || "queue" || "service" || "trunk", // required
|
|
54
|
+
* // values: [ // StringList // required
|
|
55
|
+
* // "STRING_VALUE",
|
|
56
|
+
* // ],
|
|
57
|
+
* // },
|
|
58
|
+
* // ],
|
|
59
|
+
* // stages: [ // CopilotStageList
|
|
60
|
+
* // "before" || "during" || "after",
|
|
61
|
+
* // ],
|
|
62
|
+
* // channels: [ // CopilotChannelList
|
|
63
|
+
* // "call" || "conference" || "chat",
|
|
64
|
+
* // ],
|
|
52
65
|
* // conditions: "DOCUMENT_VALUE",
|
|
53
|
-
* // access: { // CopilotAccess
|
|
54
|
-
* // visibility: "explicit" || "organization",
|
|
55
|
-
* // grants: [ // CopilotGrantPrincipalList
|
|
56
|
-
* // { // CopilotGrantPrincipal Union: only one key present
|
|
57
|
-
* // userId: "STRING_VALUE",
|
|
58
|
-
* // groupId: "STRING_VALUE",
|
|
59
|
-
* // },
|
|
60
|
-
* // ],
|
|
61
|
-
* // },
|
|
62
66
|
* // features: [ // CopilotFeaturesList
|
|
63
67
|
* // { // CopilotFeature Union: only one key present
|
|
64
68
|
* // csat: {},
|