@wildix/wilma-copilot-client 1.0.12 → 1.0.14

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.
@@ -124,7 +124,7 @@ export declare namespace CardContent {
124
124
  }
125
125
  }
126
126
  /**
127
- * An informational card: title, markdown body and optional dynamic content.
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 {
@@ -285,24 +285,6 @@ export interface SmartActionRunAgent {
285
285
  */
286
286
  requireConfirmation?: boolean | undefined;
287
287
  }
288
- /**
289
- * Runs a shared tool.
290
- * @public
291
- */
292
- export interface SmartActionRunTool {
293
- /**
294
- * Unique identifier of the tool using nanoid format
295
- * @public
296
- */
297
- toolId: string;
298
- variables?: CopilotVariableBinding[] | undefined;
299
- /**
300
- * Where a smart action's result is delivered.
301
- * @public
302
- */
303
- resultMode: SmartActionResultMode;
304
- requireConfirmation?: boolean | undefined;
305
- }
306
288
  /**
307
289
  * Transfers the live call to a destination. Voice calls only.
308
290
  * @public
@@ -318,7 +300,7 @@ export interface SmartActionTransfer {
318
300
  * A button shown under an asset. Exactly one member is set; it selects what happens when clicked.
319
301
  * @public
320
302
  */
321
- export type SmartAction = SmartAction.HandoverMember | SmartAction.OpenUrlMember | SmartAction.RunAgentMember | SmartAction.RunToolMember | SmartAction.TransferMember | SmartAction.$UnknownMember;
303
+ export type SmartAction = SmartAction.HandoverMember | SmartAction.OpenUrlMember | SmartAction.RunAgentMember | SmartAction.TransferMember | SmartAction.$UnknownMember;
322
304
  /**
323
305
  * @public
324
306
  */
@@ -330,7 +312,6 @@ export declare namespace SmartAction {
330
312
  interface OpenUrlMember {
331
313
  openUrl: SmartActionOpenUrl;
332
314
  runAgent?: never;
333
- runTool?: never;
334
315
  transfer?: never;
335
316
  handover?: never;
336
317
  $unknown?: never;
@@ -342,19 +323,6 @@ export declare namespace SmartAction {
342
323
  interface RunAgentMember {
343
324
  openUrl?: never;
344
325
  runAgent: SmartActionRunAgent;
345
- runTool?: never;
346
- transfer?: never;
347
- handover?: never;
348
- $unknown?: never;
349
- }
350
- /**
351
- * Runs a shared tool.
352
- * @public
353
- */
354
- interface RunToolMember {
355
- openUrl?: never;
356
- runAgent?: never;
357
- runTool: SmartActionRunTool;
358
326
  transfer?: never;
359
327
  handover?: never;
360
328
  $unknown?: never;
@@ -366,7 +334,6 @@ export declare namespace SmartAction {
366
334
  interface TransferMember {
367
335
  openUrl?: never;
368
336
  runAgent?: never;
369
- runTool?: never;
370
337
  transfer: SmartActionTransfer;
371
338
  handover?: never;
372
339
  $unknown?: never;
@@ -378,7 +345,6 @@ export declare namespace SmartAction {
378
345
  interface HandoverMember {
379
346
  openUrl?: never;
380
347
  runAgent?: never;
381
- runTool?: never;
382
348
  transfer?: never;
383
349
  handover: SmartActionHandover;
384
350
  $unknown?: never;
@@ -389,7 +355,6 @@ export declare namespace SmartAction {
389
355
  interface $UnknownMember {
390
356
  openUrl?: never;
391
357
  runAgent?: never;
392
- runTool?: never;
393
358
  transfer?: never;
394
359
  handover?: never;
395
360
  $unknown: [string, any];
@@ -401,7 +366,6 @@ export declare namespace SmartAction {
401
366
  interface Visitor<T> {
402
367
  openUrl: (value: SmartActionOpenUrl) => T;
403
368
  runAgent: (value: SmartActionRunAgent) => T;
404
- runTool: (value: SmartActionRunTool) => T;
405
369
  transfer: (value: SmartActionTransfer) => T;
406
370
  handover: (value: SmartActionHandover) => T;
407
371
  _: (name: string, value: any) => T;
@@ -438,7 +402,7 @@ export type AssetContent = AssetContent.CardMember | AssetContent.KnowledgeMembe
438
402
  */
439
403
  export declare namespace AssetContent {
440
404
  /**
441
- * An informational card: title, markdown body and optional dynamic content.
405
+ * 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
406
  * @public
443
407
  */
444
408
  interface CardMember {
@@ -624,6 +588,62 @@ export interface AssetInfo {
624
588
  */
625
589
  contentType: AssetContentType;
626
590
  }
591
+ /**
592
+ * Immutable asset snapshot embedded in a published profile version.
593
+ * @public
594
+ */
595
+ export interface AssetSnapshot {
596
+ /**
597
+ * Stable programmatic key referenced from suggestions and traces.
598
+ * @public
599
+ */
600
+ key?: string | undefined;
601
+ name: string;
602
+ description?: string | undefined;
603
+ /**
604
+ * Whether the asset participates in matching. Defaults to true.
605
+ * @public
606
+ */
607
+ enabled?: boolean | undefined;
608
+ /**
609
+ * Card headline.
610
+ * @public
611
+ */
612
+ title?: string | undefined;
613
+ subtitle?: string | undefined;
614
+ /**
615
+ * Markdown body shown on the card.
616
+ * @public
617
+ */
618
+ markdown?: string | undefined;
619
+ footer?: string | undefined;
620
+ /**
621
+ * Visual emphasis of the asset card.
622
+ * @public
623
+ */
624
+ severity?: AssetSeverity | undefined;
625
+ /**
626
+ * Icon shown on the asset card.
627
+ * @public
628
+ */
629
+ icon?: AssetIcon | undefined;
630
+ /**
631
+ * Keep the asset pinned in the UI rather than dismissible.
632
+ * @public
633
+ */
634
+ sticky?: boolean | undefined;
635
+ /**
636
+ * The kind-specific payload (card, playbook, smart actions or knowledge).
637
+ * @public
638
+ */
639
+ content: AssetContent;
640
+ /**
641
+ * Conditions that show the asset. It is shown at most once per session when they first become true.
642
+ * @public
643
+ */
644
+ conditions?: __DocumentType | undefined;
645
+ id: string;
646
+ }
627
647
  /**
628
648
  * Configuration for the built-in contextual knowledge answers feature.
629
649
  * @public
@@ -1120,6 +1140,25 @@ export interface AutomationInfo {
1120
1140
  name: string;
1121
1141
  description?: string | undefined;
1122
1142
  }
1143
+ /**
1144
+ * Immutable automation snapshot embedded in a published profile version.
1145
+ * @public
1146
+ */
1147
+ export interface AutomationSnapshot {
1148
+ name: string;
1149
+ description?: string | undefined;
1150
+ /**
1151
+ * What the automation does when it fires. Exactly one member is set.
1152
+ * @public
1153
+ */
1154
+ handler: AutomationHandler;
1155
+ /**
1156
+ * Conditions that trigger the automation. It fires at most once per session when they first become true.
1157
+ * @public
1158
+ */
1159
+ conditions?: __DocumentType | undefined;
1160
+ id: string;
1161
+ }
1123
1162
  /**
1124
1163
  * @public
1125
1164
  */
@@ -1148,6 +1187,7 @@ export interface CompareProfileVersionsInput {
1148
1187
  toDraft?: boolean | undefined;
1149
1188
  }
1150
1189
  /**
1190
+ * One field-level difference between the compared profile definitions.
1151
1191
  * @public
1152
1192
  */
1153
1193
  export interface ProfileVersionChange {
@@ -1935,6 +1975,49 @@ export interface EvaluationInfo {
1935
1975
  */
1936
1976
  usageLast30Days?: number | undefined;
1937
1977
  }
1978
+ /**
1979
+ * Immutable evaluation snapshot embedded in a published profile version.
1980
+ * @public
1981
+ */
1982
+ export interface EvaluationSnapshot {
1983
+ /**
1984
+ * Programmatic evaluation name used in the session state and condition fields, e.g. 'csat'.
1985
+ * @public
1986
+ */
1987
+ name: string;
1988
+ description?: string | undefined;
1989
+ /**
1990
+ * Prompt the model follows to score the transcript.
1991
+ * @public
1992
+ */
1993
+ instructions: string;
1994
+ /**
1995
+ * Structured values the evaluation produces.
1996
+ * @public
1997
+ */
1998
+ fields?: CopilotField[] | undefined;
1999
+ /**
2000
+ * When an evaluation is re-run during a session. Multiple triggers may be enabled.
2001
+ * @public
2002
+ */
2003
+ triggers: EvaluationTriggers;
2004
+ /**
2005
+ * How much of the transcript the model reads on each run.
2006
+ * @public
2007
+ */
2008
+ window: EvaluationWindow;
2009
+ /**
2010
+ * Model used for the evaluation. Defaults to the platform default when omitted.
2011
+ * @public
2012
+ */
2013
+ model?: string | undefined;
2014
+ /**
2015
+ * Extra conditions gating whether this evaluation runs for a session.
2016
+ * @public
2017
+ */
2018
+ conditions?: __DocumentType | undefined;
2019
+ id: string;
2020
+ }
1938
2021
  /**
1939
2022
  * @public
1940
2023
  */
@@ -2033,14 +2116,117 @@ export interface GetProfileVersionInput {
2033
2116
  version: number;
2034
2117
  }
2035
2118
  /**
2119
+ * Immutable intent snapshot embedded in a published profile version.
2036
2120
  * @public
2037
2121
  */
2038
- export interface GetProfileVersionOutput {
2122
+ export interface IntentSnapshot {
2123
+ /**
2124
+ * Programmatic intent name used in the session state and condition fields, e.g. 'refund_request'.
2125
+ * @public
2126
+ */
2127
+ name: string;
2128
+ description?: string | undefined;
2129
+ /**
2130
+ * The detection handlers for an intent. Text matching is attempted first, then AI matching.
2131
+ * @public
2132
+ */
2133
+ handlers: IntentHandlers;
2134
+ /**
2135
+ * Extra conditions gating whether this intent is evaluated for a session.
2136
+ * @public
2137
+ */
2138
+ conditions?: __DocumentType | undefined;
2139
+ id: string;
2140
+ }
2141
+ /**
2142
+ * Immutable snapshot of a profile definition at publish time, with all referenced library resources resolved inline.
2143
+ * @public
2144
+ */
2145
+ export interface ProfileDefinitionSnapshot {
2146
+ name: string;
2147
+ description?: string | undefined;
2148
+ /**
2149
+ * The conversation surface a copilot resource applies to. `calls` targets voice calls, `chats` targets chat conversations, `any` targets both.
2150
+ * @public
2151
+ */
2152
+ channel: CopilotChannel;
2153
+ /**
2154
+ * Conditions under which the profile matches a conversation. An empty tree always matches.
2155
+ * @public
2156
+ */
2157
+ conditions?: __DocumentType | undefined;
2158
+ /**
2159
+ * Who the profile assists. Defaults to organization-wide.
2160
+ * @public
2161
+ */
2162
+ access?: CopilotAccess | undefined;
2163
+ /**
2164
+ * Copilot features enabled for this profile at publish time, including their type-specific configuration.
2165
+ * @public
2166
+ */
2167
+ features?: CopilotFeature[] | undefined;
2168
+ /**
2169
+ * Intents resolved from the draft's intents at publish time.
2170
+ * @public
2171
+ */
2172
+ intents: IntentSnapshot[];
2173
+ /**
2174
+ * Evaluations resolved from the draft's evaluations at publish time.
2175
+ * @public
2176
+ */
2177
+ evaluations: EvaluationSnapshot[];
2178
+ /**
2179
+ * Automations resolved from the draft's automations at publish time.
2180
+ * @public
2181
+ */
2182
+ automations: AutomationSnapshot[];
2183
+ /**
2184
+ * Assets resolved from the draft's assets at publish time.
2185
+ * @public
2186
+ */
2187
+ assets: AssetSnapshot[];
2188
+ }
2189
+ /**
2190
+ * Published profile version: an immutable, self-contained snapshot of the profile at publish time.
2191
+ * @public
2192
+ */
2193
+ export interface ProfileVersion {
2194
+ profileId: string;
2039
2195
  /**
2040
2196
  * Published profile version number. Monotonic within a profile's version history, starting at 1.
2041
2197
  * @public
2042
2198
  */
2043
2199
  version: number;
2200
+ /**
2201
+ * What changed in this version, provided at publish time.
2202
+ * @public
2203
+ */
2204
+ changelog?: string | undefined;
2205
+ /**
2206
+ * Immutable, self-contained snapshot of the profile at publish time.
2207
+ * @public
2208
+ */
2209
+ definition: ProfileDefinitionSnapshot;
2210
+ /**
2211
+ * ISO-8601 timestamp with millisecond precision, e.g. '2026-07-10T14:12:30.123Z'.
2212
+ * @public
2213
+ */
2214
+ publishedAt: string;
2215
+ /**
2216
+ * Who performed an action: an interactive user, an API key or an internal service.
2217
+ * @public
2218
+ */
2219
+ publishedBy: Actor;
2220
+ }
2221
+ /**
2222
+ * @public
2223
+ */
2224
+ export interface GetProfileVersionOutput {
2225
+ /**
2226
+ * Published profile version: an immutable, self-contained snapshot of the profile at publish time.
2227
+ * @public
2228
+ */
2229
+ version: ProfileVersion;
2044
2230
  }
2045
2231
  /**
2046
2232
  * Summary entry returned by ListIntents.
@@ -2394,10 +2580,10 @@ export interface PublishProfileVersionInput {
2394
2580
  */
2395
2581
  export interface PublishProfileVersionOutput {
2396
2582
  /**
2397
- * Published profile version number. Monotonic within a profile's version history, starting at 1.
2583
+ * Published profile version: an immutable, self-contained snapshot of the profile at publish time.
2398
2584
  * @public
2399
2585
  */
2400
- version: number;
2586
+ version: ProfileVersion;
2401
2587
  }
2402
2588
  /**
2403
2589
  * @public
@@ -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;
@@ -110,7 +116,6 @@ export declare var SmartActionHandover$: StaticStructureSchema;
110
116
  export declare var SmartActionItem$: StaticStructureSchema;
111
117
  export declare var SmartActionOpenUrl$: StaticStructureSchema;
112
118
  export declare var SmartActionRunAgent$: StaticStructureSchema;
113
- export declare var SmartActionRunTool$: StaticStructureSchema;
114
119
  export declare var SmartActionTransfer$: StaticStructureSchema;
115
120
  export declare var TalkRatioFeatureConfiguration$: StaticStructureSchema;
116
121
  export declare var TopicsFeatureConfiguration$: 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.12",
4
+ "version": "1.0.14",
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",