@wildix/wilma-copilot-client 1.0.11 → 1.0.13
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/runtimeConfig.native.js +3 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -2
- package/dist-cjs/schemas/schemas_0.js +62 -8
- package/dist-es/runtimeConfig.native.js +3 -0
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-es/schemas/schemas_0.js +58 -4
- package/dist-types/commands/CreateAssetCommand.d.ts +2 -0
- package/dist-types/commands/GetAssetCommand.d.ts +1 -0
- package/dist-types/commands/GetProfileVersionCommand.d.ts +274 -1
- package/dist-types/commands/PublishProfileVersionCommand.d.ts +274 -1
- package/dist-types/commands/UpdateAssetCommand.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +232 -5
- package/dist-types/runtimeConfig.native.d.ts +2 -1
- package/dist-types/schemas/schemas_0.d.ts +6 -0
- package/package.json +7 -5
|
@@ -124,7 +124,7 @@ export declare namespace CardContent {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
/**
|
|
127
|
-
* An informational card
|
|
127
|
+
* An informational card. `content` selects how the card body is produced (static markdown or agent-generated); the headline and markdown members live on the asset definition.
|
|
128
128
|
* @public
|
|
129
129
|
*/
|
|
130
130
|
export interface AssetCard {
|
|
@@ -295,6 +295,11 @@ export interface SmartActionRunTool {
|
|
|
295
295
|
* @public
|
|
296
296
|
*/
|
|
297
297
|
toolId: string;
|
|
298
|
+
/**
|
|
299
|
+
* Pin a specific published tool version. When omitted, the tool's latestVersion is resolved when the action runs — so a tool republished after this asset was snapshotted into a profile version takes effect here.
|
|
300
|
+
* @public
|
|
301
|
+
*/
|
|
302
|
+
toolVersion?: number | undefined;
|
|
298
303
|
variables?: CopilotVariableBinding[] | undefined;
|
|
299
304
|
/**
|
|
300
305
|
* Where a smart action's result is delivered.
|
|
@@ -438,7 +443,7 @@ export type AssetContent = AssetContent.CardMember | AssetContent.KnowledgeMembe
|
|
|
438
443
|
*/
|
|
439
444
|
export declare namespace AssetContent {
|
|
440
445
|
/**
|
|
441
|
-
* An informational card
|
|
446
|
+
* An informational card. `content` selects how the card body is produced (static markdown or agent-generated); the headline and markdown members live on the asset definition.
|
|
442
447
|
* @public
|
|
443
448
|
*/
|
|
444
449
|
interface CardMember {
|
|
@@ -624,6 +629,62 @@ export interface AssetInfo {
|
|
|
624
629
|
*/
|
|
625
630
|
contentType: AssetContentType;
|
|
626
631
|
}
|
|
632
|
+
/**
|
|
633
|
+
* Immutable asset snapshot embedded in a published profile version.
|
|
634
|
+
* @public
|
|
635
|
+
*/
|
|
636
|
+
export interface AssetSnapshot {
|
|
637
|
+
/**
|
|
638
|
+
* Stable programmatic key referenced from suggestions and traces.
|
|
639
|
+
* @public
|
|
640
|
+
*/
|
|
641
|
+
key?: string | undefined;
|
|
642
|
+
name: string;
|
|
643
|
+
description?: string | undefined;
|
|
644
|
+
/**
|
|
645
|
+
* Whether the asset participates in matching. Defaults to true.
|
|
646
|
+
* @public
|
|
647
|
+
*/
|
|
648
|
+
enabled?: boolean | undefined;
|
|
649
|
+
/**
|
|
650
|
+
* Card headline.
|
|
651
|
+
* @public
|
|
652
|
+
*/
|
|
653
|
+
title?: string | undefined;
|
|
654
|
+
subtitle?: string | undefined;
|
|
655
|
+
/**
|
|
656
|
+
* Markdown body shown on the card.
|
|
657
|
+
* @public
|
|
658
|
+
*/
|
|
659
|
+
markdown?: string | undefined;
|
|
660
|
+
footer?: string | undefined;
|
|
661
|
+
/**
|
|
662
|
+
* Visual emphasis of the asset card.
|
|
663
|
+
* @public
|
|
664
|
+
*/
|
|
665
|
+
severity?: AssetSeverity | undefined;
|
|
666
|
+
/**
|
|
667
|
+
* Icon shown on the asset card.
|
|
668
|
+
* @public
|
|
669
|
+
*/
|
|
670
|
+
icon?: AssetIcon | undefined;
|
|
671
|
+
/**
|
|
672
|
+
* Keep the asset pinned in the UI rather than dismissible.
|
|
673
|
+
* @public
|
|
674
|
+
*/
|
|
675
|
+
sticky?: boolean | undefined;
|
|
676
|
+
/**
|
|
677
|
+
* The kind-specific payload (card, playbook, smart actions or knowledge).
|
|
678
|
+
* @public
|
|
679
|
+
*/
|
|
680
|
+
content: AssetContent;
|
|
681
|
+
/**
|
|
682
|
+
* Conditions that show the asset. It is shown at most once per session when they first become true.
|
|
683
|
+
* @public
|
|
684
|
+
*/
|
|
685
|
+
conditions?: __DocumentType | undefined;
|
|
686
|
+
id: string;
|
|
687
|
+
}
|
|
627
688
|
/**
|
|
628
689
|
* Configuration for the built-in contextual knowledge answers feature.
|
|
629
690
|
* @public
|
|
@@ -1120,6 +1181,25 @@ export interface AutomationInfo {
|
|
|
1120
1181
|
name: string;
|
|
1121
1182
|
description?: string | undefined;
|
|
1122
1183
|
}
|
|
1184
|
+
/**
|
|
1185
|
+
* Immutable automation snapshot embedded in a published profile version.
|
|
1186
|
+
* @public
|
|
1187
|
+
*/
|
|
1188
|
+
export interface AutomationSnapshot {
|
|
1189
|
+
name: string;
|
|
1190
|
+
description?: string | undefined;
|
|
1191
|
+
/**
|
|
1192
|
+
* What the automation does when it fires. Exactly one member is set.
|
|
1193
|
+
* @public
|
|
1194
|
+
*/
|
|
1195
|
+
handler: AutomationHandler;
|
|
1196
|
+
/**
|
|
1197
|
+
* Conditions that trigger the automation. It fires at most once per session when they first become true.
|
|
1198
|
+
* @public
|
|
1199
|
+
*/
|
|
1200
|
+
conditions?: __DocumentType | undefined;
|
|
1201
|
+
id: string;
|
|
1202
|
+
}
|
|
1123
1203
|
/**
|
|
1124
1204
|
* @public
|
|
1125
1205
|
*/
|
|
@@ -1148,6 +1228,7 @@ export interface CompareProfileVersionsInput {
|
|
|
1148
1228
|
toDraft?: boolean | undefined;
|
|
1149
1229
|
}
|
|
1150
1230
|
/**
|
|
1231
|
+
* One field-level difference between the compared profile definitions.
|
|
1151
1232
|
* @public
|
|
1152
1233
|
*/
|
|
1153
1234
|
export interface ProfileVersionChange {
|
|
@@ -1935,6 +2016,49 @@ export interface EvaluationInfo {
|
|
|
1935
2016
|
*/
|
|
1936
2017
|
usageLast30Days?: number | undefined;
|
|
1937
2018
|
}
|
|
2019
|
+
/**
|
|
2020
|
+
* Immutable evaluation snapshot embedded in a published profile version.
|
|
2021
|
+
* @public
|
|
2022
|
+
*/
|
|
2023
|
+
export interface EvaluationSnapshot {
|
|
2024
|
+
/**
|
|
2025
|
+
* Programmatic evaluation name used in the session state and condition fields, e.g. 'csat'.
|
|
2026
|
+
* @public
|
|
2027
|
+
*/
|
|
2028
|
+
name: string;
|
|
2029
|
+
description?: string | undefined;
|
|
2030
|
+
/**
|
|
2031
|
+
* Prompt the model follows to score the transcript.
|
|
2032
|
+
* @public
|
|
2033
|
+
*/
|
|
2034
|
+
instructions: string;
|
|
2035
|
+
/**
|
|
2036
|
+
* Structured values the evaluation produces.
|
|
2037
|
+
* @public
|
|
2038
|
+
*/
|
|
2039
|
+
fields?: CopilotField[] | undefined;
|
|
2040
|
+
/**
|
|
2041
|
+
* When an evaluation is re-run during a session. Multiple triggers may be enabled.
|
|
2042
|
+
* @public
|
|
2043
|
+
*/
|
|
2044
|
+
triggers: EvaluationTriggers;
|
|
2045
|
+
/**
|
|
2046
|
+
* How much of the transcript the model reads on each run.
|
|
2047
|
+
* @public
|
|
2048
|
+
*/
|
|
2049
|
+
window: EvaluationWindow;
|
|
2050
|
+
/**
|
|
2051
|
+
* Model used for the evaluation. Defaults to the platform default when omitted.
|
|
2052
|
+
* @public
|
|
2053
|
+
*/
|
|
2054
|
+
model?: string | undefined;
|
|
2055
|
+
/**
|
|
2056
|
+
* Extra conditions gating whether this evaluation runs for a session.
|
|
2057
|
+
* @public
|
|
2058
|
+
*/
|
|
2059
|
+
conditions?: __DocumentType | undefined;
|
|
2060
|
+
id: string;
|
|
2061
|
+
}
|
|
1938
2062
|
/**
|
|
1939
2063
|
* @public
|
|
1940
2064
|
*/
|
|
@@ -2033,14 +2157,117 @@ export interface GetProfileVersionInput {
|
|
|
2033
2157
|
version: number;
|
|
2034
2158
|
}
|
|
2035
2159
|
/**
|
|
2160
|
+
* Immutable intent snapshot embedded in a published profile version.
|
|
2036
2161
|
* @public
|
|
2037
2162
|
*/
|
|
2038
|
-
export interface
|
|
2163
|
+
export interface IntentSnapshot {
|
|
2164
|
+
/**
|
|
2165
|
+
* Programmatic intent name used in the session state and condition fields, e.g. 'refund_request'.
|
|
2166
|
+
* @public
|
|
2167
|
+
*/
|
|
2168
|
+
name: string;
|
|
2169
|
+
description?: string | undefined;
|
|
2170
|
+
/**
|
|
2171
|
+
* The detection handlers for an intent. Text matching is attempted first, then AI matching.
|
|
2172
|
+
* @public
|
|
2173
|
+
*/
|
|
2174
|
+
handlers: IntentHandlers;
|
|
2175
|
+
/**
|
|
2176
|
+
* Extra conditions gating whether this intent is evaluated for a session.
|
|
2177
|
+
* @public
|
|
2178
|
+
*/
|
|
2179
|
+
conditions?: __DocumentType | undefined;
|
|
2180
|
+
id: string;
|
|
2181
|
+
}
|
|
2182
|
+
/**
|
|
2183
|
+
* Immutable snapshot of a profile definition at publish time, with all referenced library resources resolved inline.
|
|
2184
|
+
* @public
|
|
2185
|
+
*/
|
|
2186
|
+
export interface ProfileDefinitionSnapshot {
|
|
2187
|
+
name: string;
|
|
2188
|
+
description?: string | undefined;
|
|
2189
|
+
/**
|
|
2190
|
+
* The conversation surface a copilot resource applies to. `calls` targets voice calls, `chats` targets chat conversations, `any` targets both.
|
|
2191
|
+
* @public
|
|
2192
|
+
*/
|
|
2193
|
+
channel: CopilotChannel;
|
|
2194
|
+
/**
|
|
2195
|
+
* Conditions under which the profile matches a conversation. An empty tree always matches.
|
|
2196
|
+
* @public
|
|
2197
|
+
*/
|
|
2198
|
+
conditions?: __DocumentType | undefined;
|
|
2199
|
+
/**
|
|
2200
|
+
* Who the profile assists. Defaults to organization-wide.
|
|
2201
|
+
* @public
|
|
2202
|
+
*/
|
|
2203
|
+
access?: CopilotAccess | undefined;
|
|
2204
|
+
/**
|
|
2205
|
+
* Copilot features enabled for this profile at publish time, including their type-specific configuration.
|
|
2206
|
+
* @public
|
|
2207
|
+
*/
|
|
2208
|
+
features?: CopilotFeature[] | undefined;
|
|
2209
|
+
/**
|
|
2210
|
+
* Intents resolved from the draft's intents at publish time.
|
|
2211
|
+
* @public
|
|
2212
|
+
*/
|
|
2213
|
+
intents: IntentSnapshot[];
|
|
2214
|
+
/**
|
|
2215
|
+
* Evaluations resolved from the draft's evaluations at publish time.
|
|
2216
|
+
* @public
|
|
2217
|
+
*/
|
|
2218
|
+
evaluations: EvaluationSnapshot[];
|
|
2219
|
+
/**
|
|
2220
|
+
* Automations resolved from the draft's automations at publish time.
|
|
2221
|
+
* @public
|
|
2222
|
+
*/
|
|
2223
|
+
automations: AutomationSnapshot[];
|
|
2224
|
+
/**
|
|
2225
|
+
* Assets resolved from the draft's assets at publish time.
|
|
2226
|
+
* @public
|
|
2227
|
+
*/
|
|
2228
|
+
assets: AssetSnapshot[];
|
|
2229
|
+
}
|
|
2230
|
+
/**
|
|
2231
|
+
* Published profile version: an immutable, self-contained snapshot of the profile at publish time.
|
|
2232
|
+
* @public
|
|
2233
|
+
*/
|
|
2234
|
+
export interface ProfileVersion {
|
|
2235
|
+
profileId: string;
|
|
2039
2236
|
/**
|
|
2040
2237
|
* Published profile version number. Monotonic within a profile's version history, starting at 1.
|
|
2041
2238
|
* @public
|
|
2042
2239
|
*/
|
|
2043
2240
|
version: number;
|
|
2241
|
+
/**
|
|
2242
|
+
* What changed in this version, provided at publish time.
|
|
2243
|
+
* @public
|
|
2244
|
+
*/
|
|
2245
|
+
changelog?: string | undefined;
|
|
2246
|
+
/**
|
|
2247
|
+
* Immutable, self-contained snapshot of the profile at publish time.
|
|
2248
|
+
* @public
|
|
2249
|
+
*/
|
|
2250
|
+
definition: ProfileDefinitionSnapshot;
|
|
2251
|
+
/**
|
|
2252
|
+
* ISO-8601 timestamp with millisecond precision, e.g. '2026-07-10T14:12:30.123Z'.
|
|
2253
|
+
* @public
|
|
2254
|
+
*/
|
|
2255
|
+
publishedAt: string;
|
|
2256
|
+
/**
|
|
2257
|
+
* Who performed an action: an interactive user, an API key or an internal service.
|
|
2258
|
+
* @public
|
|
2259
|
+
*/
|
|
2260
|
+
publishedBy: Actor;
|
|
2261
|
+
}
|
|
2262
|
+
/**
|
|
2263
|
+
* @public
|
|
2264
|
+
*/
|
|
2265
|
+
export interface GetProfileVersionOutput {
|
|
2266
|
+
/**
|
|
2267
|
+
* Published profile version: an immutable, self-contained snapshot of the profile at publish time.
|
|
2268
|
+
* @public
|
|
2269
|
+
*/
|
|
2270
|
+
version: ProfileVersion;
|
|
2044
2271
|
}
|
|
2045
2272
|
/**
|
|
2046
2273
|
* Summary entry returned by ListIntents.
|
|
@@ -2394,10 +2621,10 @@ export interface PublishProfileVersionInput {
|
|
|
2394
2621
|
*/
|
|
2395
2622
|
export interface PublishProfileVersionOutput {
|
|
2396
2623
|
/**
|
|
2397
|
-
* Published profile version
|
|
2624
|
+
* Published profile version: an immutable, self-contained snapshot of the profile at publish time.
|
|
2398
2625
|
* @public
|
|
2399
2626
|
*/
|
|
2400
|
-
version:
|
|
2627
|
+
version: ProfileVersion;
|
|
2401
2628
|
}
|
|
2402
2629
|
/**
|
|
2403
2630
|
* @public
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { XhrHttpHandler as RequestHandler } from "@wildix/smithy-react-native";
|
|
1
2
|
import type { WilmaCopilotClientConfig } from "./WilmaCopilotClient";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
4
5
|
*/
|
|
5
6
|
export declare const getRuntimeConfig: (config: WilmaCopilotClientConfig) => {
|
|
6
7
|
runtime: string;
|
|
8
|
+
requestHandler: RequestHandler;
|
|
7
9
|
sha256: import("@smithy/types").HashConstructor;
|
|
8
|
-
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
9
10
|
cacheMiddleware?: boolean;
|
|
10
11
|
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
11
12
|
protocolSettings: {
|
|
@@ -21,10 +21,12 @@ export declare var AssetInfo$: StaticStructureSchema;
|
|
|
21
21
|
export declare var AssetKnowledge$: StaticStructureSchema;
|
|
22
22
|
export declare var AssetPlaybook$: StaticStructureSchema;
|
|
23
23
|
export declare var AssetSmartActions$: StaticStructureSchema;
|
|
24
|
+
export declare var AssetSnapshot$: StaticStructureSchema;
|
|
24
25
|
export declare var AttachProfileResourceInput$: StaticStructureSchema;
|
|
25
26
|
export declare var AttachProfileResourceOutput$: StaticStructureSchema;
|
|
26
27
|
export declare var Automation$: StaticStructureSchema;
|
|
27
28
|
export declare var AutomationInfo$: StaticStructureSchema;
|
|
29
|
+
export declare var AutomationSnapshot$: StaticStructureSchema;
|
|
28
30
|
export declare var CardAgentContent$: StaticStructureSchema;
|
|
29
31
|
export declare var CardStaticContent$: StaticStructureSchema;
|
|
30
32
|
export declare var CompareProfileVersionsInput$: StaticStructureSchema;
|
|
@@ -63,6 +65,7 @@ export declare var DeleteProfileResourceOutput$: StaticStructureSchema;
|
|
|
63
65
|
export declare var Evaluation$: StaticStructureSchema;
|
|
64
66
|
export declare var EvaluationInfo$: StaticStructureSchema;
|
|
65
67
|
export declare var EvaluationIntervalTrigger$: StaticStructureSchema;
|
|
68
|
+
export declare var EvaluationSnapshot$: StaticStructureSchema;
|
|
66
69
|
export declare var EvaluationTriggers$: StaticStructureSchema;
|
|
67
70
|
export declare var GetAssetInput$: StaticStructureSchema;
|
|
68
71
|
export declare var GetAssetOutput$: StaticStructureSchema;
|
|
@@ -80,6 +83,7 @@ export declare var Intent$: StaticStructureSchema;
|
|
|
80
83
|
export declare var IntentAiMatch$: StaticStructureSchema;
|
|
81
84
|
export declare var IntentHandlers$: StaticStructureSchema;
|
|
82
85
|
export declare var IntentInfo$: StaticStructureSchema;
|
|
86
|
+
export declare var IntentSnapshot$: StaticStructureSchema;
|
|
83
87
|
export declare var IntentTextMatch$: StaticStructureSchema;
|
|
84
88
|
export declare var IntentTextMatchOption$: StaticStructureSchema;
|
|
85
89
|
export declare var ListAssetsInput$: StaticStructureSchema;
|
|
@@ -98,7 +102,9 @@ export declare var PlaybookManualCompletion$: StaticStructureSchema;
|
|
|
98
102
|
export declare var PlaybookSemanticCompletion$: StaticStructureSchema;
|
|
99
103
|
export declare var PlaybookStep$: StaticStructureSchema;
|
|
100
104
|
export declare var Profile$: StaticStructureSchema;
|
|
105
|
+
export declare var ProfileDefinitionSnapshot$: StaticStructureSchema;
|
|
101
106
|
export declare var ProfileInfo$: StaticStructureSchema;
|
|
107
|
+
export declare var ProfileVersion$: StaticStructureSchema;
|
|
102
108
|
export declare var ProfileVersionChange$: StaticStructureSchema;
|
|
103
109
|
export declare var ProfileVersionInfo$: StaticStructureSchema;
|
|
104
110
|
export declare var PublishProfileVersionInput$: 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.
|
|
4
|
+
"version": "1.0.13",
|
|
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",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"@smithy/core": "^3.24.5",
|
|
25
25
|
"@smithy/fetch-http-handler": "^5.4.5",
|
|
26
26
|
"@smithy/node-http-handler": "^4.7.5",
|
|
27
|
-
"@smithy/types": "^4.14.2"
|
|
27
|
+
"@smithy/types": "^4.14.2",
|
|
28
|
+
"@wildix/smithy-react-native": "^1.0.0"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"@tsconfig/node20": "20.1.8",
|
|
@@ -48,10 +49,11 @@
|
|
|
48
49
|
"dist-*/**"
|
|
49
50
|
],
|
|
50
51
|
"license": "Apache-2.0",
|
|
51
|
-
"browser": {
|
|
52
|
-
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
53
|
-
},
|
|
54
52
|
"react-native": {
|
|
53
|
+
"@aws-sdk/core/client": "@aws-sdk/core/dist-es/submodules/client/index.native.js",
|
|
55
54
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
55
|
+
},
|
|
56
|
+
"browser": {
|
|
57
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
56
58
|
}
|
|
57
59
|
}
|