@wildix/wilma-copilot-client 1.0.2 → 1.0.4

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.
@@ -105,21 +105,6 @@ export declare const AssetSeverity: {
105
105
  * @public
106
106
  */
107
107
  export type AssetSeverity = (typeof AssetSeverity)[keyof typeof AssetSeverity];
108
- /**
109
- * @public
110
- * @enum
111
- */
112
- export declare const AssetType: {
113
- readonly BATTLE_CARD: "battle_card";
114
- readonly GUIDANCE: "guidance";
115
- readonly KNOWLEDGE: "knowledge";
116
- readonly NEXT_BEST_ACTION: "next_best_action";
117
- readonly PLAYBOOK: "playbook";
118
- };
119
- /**
120
- * @public
121
- */
122
- export type AssetType = (typeof AssetType)[keyof typeof AssetType];
123
108
  /**
124
109
  * @public
125
110
  * @enum
@@ -213,19 +198,6 @@ export declare const ProfileStatus: {
213
198
  * @public
214
199
  */
215
200
  export type ProfileStatus = (typeof ProfileStatus)[keyof typeof ProfileStatus];
216
- /**
217
- * @public
218
- * @enum
219
- */
220
- export declare const AutomationHandlerType: {
221
- readonly AGENT: "agent";
222
- readonly KNOWLEDGE_BASE: "knowledge_base";
223
- readonly TOOL: "tool";
224
- };
225
- /**
226
- * @public
227
- */
228
- export type AutomationHandlerType = (typeof AutomationHandlerType)[keyof typeof AutomationHandlerType];
229
201
  /**
230
202
  * @public
231
203
  * @enum
@@ -1,5 +1,5 @@
1
1
  import type { DocumentType as __DocumentType } from "@smithy/types";
2
- import type { ActorType, AssetContentType, AssetIcon, AssetSeverity, AssetType, AutomationHandlerType, AutomationOutputMode, ContextualKnowledgeMode, ContextualKnowledgeSource, CopilotChannel, CopilotVariableMode, CopilotVisibility, EvaluationWindow, IntentTextMatchMode, ProfileResourceType, ProfileStatus, SmartActionHandoverVariant, SmartActionResultMode } from "./enums";
2
+ import type { ActorType, AssetContentType, AssetIcon, AssetSeverity, AutomationOutputMode, ContextualKnowledgeMode, ContextualKnowledgeSource, CopilotChannel, CopilotVariableMode, CopilotVisibility, EvaluationWindow, IntentTextMatchMode, ProfileResourceType, ProfileStatus, SmartActionHandoverVariant, SmartActionResultMode } from "./enums";
3
3
  /**
4
4
  * Who performed an action: an interactive user, an API key or an internal service.
5
5
  * @public
@@ -520,11 +520,6 @@ export interface Asset {
520
520
  * @public
521
521
  */
522
522
  enabled?: boolean | undefined;
523
- /**
524
- * Semantic classification of the asset, driving default presentation.
525
- * @public
526
- */
527
- type?: AssetType | undefined;
528
523
  /**
529
524
  * Card headline.
530
525
  * @public
@@ -623,21 +618,11 @@ export interface AssetInfo {
623
618
  name: string;
624
619
  description?: string | undefined;
625
620
  enabled: boolean;
626
- /**
627
- * Semantic classification of the asset, driving default presentation.
628
- * @public
629
- */
630
- type?: AssetType | undefined;
631
621
  /**
632
622
  * Which kind of content an asset carries.
633
623
  * @public
634
624
  */
635
625
  contentType: AssetContentType;
636
- /**
637
- * Number of matches/executions over the trailing 30 days, or null when not yet computed.
638
- * @public
639
- */
640
- usageLast30Days?: number | undefined;
641
626
  }
642
627
  /**
643
628
  * Configuration for the built-in contextual knowledge answers feature.
@@ -1029,54 +1014,11 @@ export interface AttachProfileResourceOutput {
1029
1014
  */
1030
1015
  profile: Profile;
1031
1016
  }
1032
- /**
1033
- * Queries a knowledge base and shows the answer as a card.
1034
- * @public
1035
- */
1036
- export interface KnowledgeBaseAutomationHandler {
1037
- /**
1038
- * Id of a knowledge base referenced by copilot. Managed in the wim-knowledge-base service.
1039
- * @public
1040
- */
1041
- knowledgeBaseId: string;
1042
- }
1043
- /**
1044
- * Invokes a shared tool.
1045
- * @public
1046
- */
1047
- export interface ToolAutomationHandler {
1048
- /**
1049
- * Id of a shared tool managed in the wim-tools service.
1050
- * @public
1051
- */
1052
- toolId?: string | undefined;
1053
- /**
1054
- * Human-readable tool name shown in the console.
1055
- * @public
1056
- */
1057
- toolName: string;
1058
- /**
1059
- * Tool action/operation to invoke, when the tool exposes several.
1060
- * @public
1061
- */
1062
- action?: string | undefined;
1063
- /**
1064
- * Handlebars template for the tool payload, resolved against the session state.
1065
- * @public
1066
- */
1067
- payloadTemplate?: string | undefined;
1068
- /**
1069
- * Where the automation's result is delivered.
1070
- * @public
1071
- */
1072
- outputMode?: AutomationOutputMode | undefined;
1073
- parameters?: CopilotVariableBinding[] | undefined;
1074
- }
1075
1017
  /**
1076
1018
  * What the automation does when it fires. Exactly one member is set.
1077
1019
  * @public
1078
1020
  */
1079
- export type AutomationHandler = AutomationHandler.AgentMember | AutomationHandler.KnowledgeBaseMember | AutomationHandler.ToolMember | AutomationHandler.$UnknownMember;
1021
+ export type AutomationHandler = AutomationHandler.AgentMember | AutomationHandler.$UnknownMember;
1080
1022
  /**
1081
1023
  * @public
1082
1024
  */
@@ -1087,28 +1029,6 @@ export declare namespace AutomationHandler {
1087
1029
  */
1088
1030
  interface AgentMember {
1089
1031
  agent: AgentAutomationHandler;
1090
- tool?: never;
1091
- knowledgeBase?: never;
1092
- $unknown?: never;
1093
- }
1094
- /**
1095
- * Invokes a shared tool.
1096
- * @public
1097
- */
1098
- interface ToolMember {
1099
- agent?: never;
1100
- tool: ToolAutomationHandler;
1101
- knowledgeBase?: never;
1102
- $unknown?: never;
1103
- }
1104
- /**
1105
- * Queries a knowledge base and shows the answer as a card.
1106
- * @public
1107
- */
1108
- interface KnowledgeBaseMember {
1109
- agent?: never;
1110
- tool?: never;
1111
- knowledgeBase: KnowledgeBaseAutomationHandler;
1112
1032
  $unknown?: never;
1113
1033
  }
1114
1034
  /**
@@ -1116,8 +1036,6 @@ export declare namespace AutomationHandler {
1116
1036
  */
1117
1037
  interface $UnknownMember {
1118
1038
  agent?: never;
1119
- tool?: never;
1120
- knowledgeBase?: never;
1121
1039
  $unknown: [string, any];
1122
1040
  }
1123
1041
  /**
@@ -1126,8 +1044,6 @@ export declare namespace AutomationHandler {
1126
1044
  */
1127
1045
  interface Visitor<T> {
1128
1046
  agent: (value: AgentAutomationHandler) => T;
1129
- tool: (value: ToolAutomationHandler) => T;
1130
- knowledgeBase: (value: KnowledgeBaseAutomationHandler) => T;
1131
1047
  _: (name: string, value: any) => T;
1132
1048
  }
1133
1049
  }
@@ -1174,11 +1090,6 @@ export interface Automation {
1174
1090
  * @public
1175
1091
  */
1176
1092
  revision: number;
1177
- /**
1178
- * Executions over the trailing 30 days; null when not yet computed.
1179
- * @public
1180
- */
1181
- executionsLast30Days?: number | undefined;
1182
1093
  }
1183
1094
  /**
1184
1095
  * Summary entry returned by ListAutomations.
@@ -1208,16 +1119,6 @@ export interface AutomationInfo {
1208
1119
  id: string;
1209
1120
  name: string;
1210
1121
  description?: string | undefined;
1211
- /**
1212
- * Which kind of handler an automation uses.
1213
- * @public
1214
- */
1215
- handlerType: AutomationHandlerType;
1216
- /**
1217
- * Number of matches/executions over the trailing 30 days, or null when not yet computed.
1218
- * @public
1219
- */
1220
- executionsLast30Days?: number | undefined;
1221
1122
  }
1222
1123
  /**
1223
1124
  * @public
@@ -1435,11 +1336,6 @@ export interface CreateAssetInput {
1435
1336
  * @public
1436
1337
  */
1437
1338
  enabled?: boolean | undefined;
1438
- /**
1439
- * Semantic classification of the asset, driving default presentation.
1440
- * @public
1441
- */
1442
- type?: AssetType | undefined;
1443
1339
  /**
1444
1340
  * Card headline.
1445
1341
  * @public
@@ -1592,11 +1488,6 @@ export interface CreateEvaluationInput {
1592
1488
  * @public
1593
1489
  */
1594
1490
  model?: string | undefined;
1595
- /**
1596
- * Optional grouping label for organizing evaluations in the console.
1597
- * @public
1598
- */
1599
- group?: string | undefined;
1600
1491
  /**
1601
1492
  * Extra conditions gating whether this evaluation runs for a session.
1602
1493
  * @public
@@ -1640,11 +1531,6 @@ export interface Evaluation {
1640
1531
  * @public
1641
1532
  */
1642
1533
  model?: string | undefined;
1643
- /**
1644
- * Optional grouping label for organizing evaluations in the console.
1645
- * @public
1646
- */
1647
- group?: string | undefined;
1648
1534
  /**
1649
1535
  * Extra conditions gating whether this evaluation runs for a session.
1650
1536
  * @public
@@ -2043,7 +1929,6 @@ export interface EvaluationInfo {
2043
1929
  * @public
2044
1930
  */
2045
1931
  window: EvaluationWindow;
2046
- group?: string | undefined;
2047
1932
  /**
2048
1933
  * Number of matches/executions over the trailing 30 days, or null when not yet computed.
2049
1934
  * @public
@@ -2215,11 +2100,6 @@ export interface ListAssetsInput {
2215
2100
  * @public
2216
2101
  */
2217
2102
  contentType?: AssetContentType | undefined;
2218
- /**
2219
- * Filter by semantic type.
2220
- * @public
2221
- */
2222
- type?: AssetType | undefined;
2223
2103
  /**
2224
2104
  * Filter by enabled state.
2225
2105
  * @public
@@ -2253,11 +2133,6 @@ export interface ListAssetsOutput {
2253
2133
  */
2254
2134
  export interface ListAutomationsInput {
2255
2135
  company?: string | undefined;
2256
- /**
2257
- * Filter by handler type.
2258
- * @public
2259
- */
2260
- handlerType?: AutomationHandlerType | undefined;
2261
2136
  /**
2262
2137
  * Filter by name or description.
2263
2138
  * @public
@@ -2568,11 +2443,6 @@ export interface UpdateAssetInput {
2568
2443
  * @public
2569
2444
  */
2570
2445
  enabled?: boolean | undefined;
2571
- /**
2572
- * Semantic classification of the asset, driving default presentation.
2573
- * @public
2574
- */
2575
- type?: AssetType | undefined;
2576
2446
  /**
2577
2447
  * Card headline.
2578
2448
  * @public
@@ -2699,11 +2569,6 @@ export interface UpdateEvaluationInput {
2699
2569
  * @public
2700
2570
  */
2701
2571
  model?: string | undefined;
2702
- /**
2703
- * Optional grouping label for organizing evaluations in the console.
2704
- * @public
2705
- */
2706
- group?: string | undefined;
2707
2572
  /**
2708
2573
  * Extra conditions gating whether this evaluation runs for a session.
2709
2574
  * @public
@@ -95,7 +95,6 @@ export declare var IntentHandlers$: StaticStructureSchema;
95
95
  export declare var IntentInfo$: StaticStructureSchema;
96
96
  export declare var IntentTextMatch$: StaticStructureSchema;
97
97
  export declare var IntentTextMatchOption$: StaticStructureSchema;
98
- export declare var KnowledgeBaseAutomationHandler$: StaticStructureSchema;
99
98
  export declare var ListAssetsInput$: StaticStructureSchema;
100
99
  export declare var ListAssetsOutput$: StaticStructureSchema;
101
100
  export declare var ListAutomationsInput$: StaticStructureSchema;
@@ -127,7 +126,6 @@ export declare var SmartActionRunAgent$: StaticStructureSchema;
127
126
  export declare var SmartActionRunTool$: StaticStructureSchema;
128
127
  export declare var SmartActionTransfer$: StaticStructureSchema;
129
128
  export declare var TalkRatioFeatureConfiguration$: StaticStructureSchema;
130
- export declare var ToolAutomationHandler$: StaticStructureSchema;
131
129
  export declare var TopicsFeatureConfiguration$: StaticStructureSchema;
132
130
  export declare var UpdateAssetInput$: StaticStructureSchema;
133
131
  export declare var UpdateAssetOutput$: StaticStructureSchema;
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.2",
4
+ "version": "1.0.4",
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",