@wildix/wilma-copilot-client 1.0.12 → 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.
@@ -11,7 +11,7 @@ const endpointResolver_1 = require("./endpoint/endpointResolver");
11
11
  const schemas_0_1 = require("./schemas/schemas_0");
12
12
  const getRuntimeConfig = (config) => {
13
13
  return {
14
- apiVersion: "v1",
14
+ apiVersion: "v2",
15
15
  base64Decoder: config?.base64Decoder ?? serde_1.fromBase64,
16
16
  base64Encoder: config?.base64Encoder ?? serde_1.toBase64,
17
17
  disableHostPrefix: config?.disableHostPrefix ?? false,
@@ -50,7 +50,7 @@ const getRuntimeConfig = (config) => {
50
50
  protocolSettings: config?.protocolSettings ?? {
51
51
  defaultNamespace: "wildix.wilma.copilot",
52
52
  errorTypeRegistries: schemas_0_1.errorTypeRegistries,
53
- version: "v1",
53
+ version: "v2",
54
54
  serviceTarget: "WilmaCopilot",
55
55
  },
56
56
  urlParser: config?.urlParser ?? protocols_2.parseUrl,
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteIntentInput$ = exports.DeleteEvaluationOutput$ = exports.DeleteEvaluationInput$ = exports.DeleteAutomationOutput$ = exports.DeleteAutomationInput$ = exports.DeleteAssetOutput$ = exports.DeleteAssetInput$ = exports.CsatFeatureConfiguration$ = exports.CreateProfileOutput$ = exports.CreateProfileInput$ = exports.CreateIntentOutput$ = exports.CreateIntentInput$ = exports.CreateEvaluationOutput$ = exports.CreateEvaluationInput$ = exports.CreateAutomationOutput$ = exports.CreateAutomationInput$ = exports.CreateAssetOutput$ = exports.CreateAssetInput$ = exports.CopilotVariableBinding$ = exports.CopilotTextParameter$ = exports.CopilotSelectionParameter$ = exports.CopilotNumberParameter$ = exports.CopilotMultilineParameter$ = exports.CopilotField$ = exports.CopilotAccess$ = exports.ContextualKnowledgeAnswersFeatureConfiguration$ = exports.CompareProfileVersionsOutput$ = exports.CompareProfileVersionsInput$ = exports.CardStaticContent$ = exports.CardAgentContent$ = exports.AutomationInfo$ = exports.Automation$ = exports.AttachProfileResourceOutput$ = exports.AttachProfileResourceInput$ = exports.AssetSmartActions$ = exports.AssetPlaybook$ = exports.AssetKnowledge$ = exports.AssetInfo$ = exports.AssetCard$ = exports.Asset$ = exports.AgentAutomationHandler$ = exports.Actor$ = exports.errorTypeRegistries = exports.RevisionConflictException$ = exports.NothingToPublishException$ = exports.ValidationException$ = exports.NotFoundException$ = exports.ForbiddenException$ = exports.ConflictException$ = exports.WilmaCopilotServiceException$ = void 0;
4
- exports.RestoreProfileVersionToDraftOutput$ = exports.RestoreProfileVersionToDraftInput$ = exports.PublishProfileVersionOutput$ = exports.PublishProfileVersionInput$ = exports.ProfileVersionInfo$ = exports.ProfileVersionChange$ = exports.ProfileInfo$ = exports.Profile$ = exports.PlaybookStep$ = exports.PlaybookSemanticCompletion$ = exports.PlaybookManualCompletion$ = exports.ListProfileVersionsOutput$ = exports.ListProfileVersionsInput$ = exports.ListProfilesOutput$ = exports.ListProfilesInput$ = exports.ListIntentsOutput$ = exports.ListIntentsInput$ = exports.ListEvaluationsOutput$ = exports.ListEvaluationsInput$ = exports.ListAutomationsOutput$ = exports.ListAutomationsInput$ = exports.ListAssetsOutput$ = exports.ListAssetsInput$ = exports.IntentTextMatchOption$ = exports.IntentTextMatch$ = exports.IntentInfo$ = exports.IntentHandlers$ = exports.IntentAiMatch$ = exports.Intent$ = exports.GetProfileVersionOutput$ = exports.GetProfileVersionInput$ = exports.GetProfileOutput$ = exports.GetProfileInput$ = exports.GetIntentOutput$ = exports.GetIntentInput$ = exports.GetEvaluationOutput$ = exports.GetEvaluationInput$ = exports.GetAutomationOutput$ = exports.GetAutomationInput$ = exports.GetAssetOutput$ = exports.GetAssetInput$ = exports.EvaluationTriggers$ = exports.EvaluationIntervalTrigger$ = exports.EvaluationInfo$ = exports.Evaluation$ = exports.DeleteProfileResourceOutput$ = exports.DeleteProfileResourceInput$ = exports.DeleteProfileOutput$ = exports.DeleteProfileInput$ = exports.DeleteIntentOutput$ = void 0;
5
- exports.ListEvaluations$ = exports.ListAutomations$ = exports.ListAssets$ = exports.GetProfileVersion$ = exports.GetProfile$ = exports.GetIntent$ = exports.GetEvaluation$ = exports.GetAutomation$ = exports.GetAsset$ = exports.DeleteProfileResource$ = exports.DeleteProfile$ = exports.DeleteIntent$ = exports.DeleteEvaluation$ = exports.DeleteAutomation$ = exports.DeleteAsset$ = exports.CreateProfile$ = exports.CreateIntent$ = exports.CreateEvaluation$ = exports.CreateAutomation$ = exports.CreateAsset$ = exports.CompareProfileVersions$ = exports.AttachProfileResource$ = exports.SmartAction$ = exports.ProfileResource$ = exports.PlaybookCompletionCriteria$ = exports.CopilotGrantPrincipal$ = exports.CopilotFieldParameter$ = exports.CopilotFeature$ = exports.CardContent$ = exports.AutomationHandler$ = exports.AssetContent$ = exports.UpdateProfileOutput$ = exports.UpdateProfileInput$ = exports.UpdateIntentOutput$ = exports.UpdateIntentInput$ = exports.UpdateEvaluationOutput$ = exports.UpdateEvaluationInput$ = exports.UpdateAutomationOutput$ = exports.UpdateAutomationInput$ = exports.UpdateAssetOutput$ = exports.UpdateAssetInput$ = exports.TopicsFeatureConfiguration$ = exports.TalkRatioFeatureConfiguration$ = exports.SmartActionTransfer$ = exports.SmartActionRunTool$ = exports.SmartActionRunAgent$ = exports.SmartActionOpenUrl$ = exports.SmartActionItem$ = exports.SmartActionHandover$ = exports.SentimentFeatureConfiguration$ = void 0;
6
- exports.UpdateProfile$ = exports.UpdateIntent$ = exports.UpdateEvaluation$ = exports.UpdateAutomation$ = exports.UpdateAsset$ = exports.RestoreProfileVersionToDraft$ = exports.PublishProfileVersion$ = exports.ListProfileVersions$ = exports.ListProfiles$ = exports.ListIntents$ = void 0;
3
+ exports.DeleteEvaluationInput$ = exports.DeleteAutomationOutput$ = exports.DeleteAutomationInput$ = exports.DeleteAssetOutput$ = exports.DeleteAssetInput$ = exports.CsatFeatureConfiguration$ = exports.CreateProfileOutput$ = exports.CreateProfileInput$ = exports.CreateIntentOutput$ = exports.CreateIntentInput$ = exports.CreateEvaluationOutput$ = exports.CreateEvaluationInput$ = exports.CreateAutomationOutput$ = exports.CreateAutomationInput$ = exports.CreateAssetOutput$ = exports.CreateAssetInput$ = exports.CopilotVariableBinding$ = exports.CopilotTextParameter$ = exports.CopilotSelectionParameter$ = exports.CopilotNumberParameter$ = exports.CopilotMultilineParameter$ = exports.CopilotField$ = exports.CopilotAccess$ = exports.ContextualKnowledgeAnswersFeatureConfiguration$ = exports.CompareProfileVersionsOutput$ = exports.CompareProfileVersionsInput$ = exports.CardStaticContent$ = exports.CardAgentContent$ = exports.AutomationSnapshot$ = exports.AutomationInfo$ = exports.Automation$ = exports.AttachProfileResourceOutput$ = exports.AttachProfileResourceInput$ = exports.AssetSnapshot$ = exports.AssetSmartActions$ = exports.AssetPlaybook$ = exports.AssetKnowledge$ = exports.AssetInfo$ = exports.AssetCard$ = exports.Asset$ = exports.AgentAutomationHandler$ = exports.Actor$ = exports.errorTypeRegistries = exports.RevisionConflictException$ = exports.NothingToPublishException$ = exports.ValidationException$ = exports.NotFoundException$ = exports.ForbiddenException$ = exports.ConflictException$ = exports.WilmaCopilotServiceException$ = void 0;
4
+ exports.ProfileVersion$ = exports.ProfileInfo$ = exports.ProfileDefinitionSnapshot$ = exports.Profile$ = exports.PlaybookStep$ = exports.PlaybookSemanticCompletion$ = exports.PlaybookManualCompletion$ = exports.ListProfileVersionsOutput$ = exports.ListProfileVersionsInput$ = exports.ListProfilesOutput$ = exports.ListProfilesInput$ = exports.ListIntentsOutput$ = exports.ListIntentsInput$ = exports.ListEvaluationsOutput$ = exports.ListEvaluationsInput$ = exports.ListAutomationsOutput$ = exports.ListAutomationsInput$ = exports.ListAssetsOutput$ = exports.ListAssetsInput$ = exports.IntentTextMatchOption$ = exports.IntentTextMatch$ = exports.IntentSnapshot$ = exports.IntentInfo$ = exports.IntentHandlers$ = exports.IntentAiMatch$ = exports.Intent$ = exports.GetProfileVersionOutput$ = exports.GetProfileVersionInput$ = exports.GetProfileOutput$ = exports.GetProfileInput$ = exports.GetIntentOutput$ = exports.GetIntentInput$ = exports.GetEvaluationOutput$ = exports.GetEvaluationInput$ = exports.GetAutomationOutput$ = exports.GetAutomationInput$ = exports.GetAssetOutput$ = exports.GetAssetInput$ = exports.EvaluationTriggers$ = exports.EvaluationSnapshot$ = exports.EvaluationIntervalTrigger$ = exports.EvaluationInfo$ = exports.Evaluation$ = exports.DeleteProfileResourceOutput$ = exports.DeleteProfileResourceInput$ = exports.DeleteProfileOutput$ = exports.DeleteProfileInput$ = exports.DeleteIntentOutput$ = exports.DeleteIntentInput$ = exports.DeleteEvaluationOutput$ = void 0;
5
+ exports.GetEvaluation$ = exports.GetAutomation$ = exports.GetAsset$ = exports.DeleteProfileResource$ = exports.DeleteProfile$ = exports.DeleteIntent$ = exports.DeleteEvaluation$ = exports.DeleteAutomation$ = exports.DeleteAsset$ = exports.CreateProfile$ = exports.CreateIntent$ = exports.CreateEvaluation$ = exports.CreateAutomation$ = exports.CreateAsset$ = exports.CompareProfileVersions$ = exports.AttachProfileResource$ = exports.SmartAction$ = exports.ProfileResource$ = exports.PlaybookCompletionCriteria$ = exports.CopilotGrantPrincipal$ = exports.CopilotFieldParameter$ = exports.CopilotFeature$ = exports.CardContent$ = exports.AutomationHandler$ = exports.AssetContent$ = exports.UpdateProfileOutput$ = exports.UpdateProfileInput$ = exports.UpdateIntentOutput$ = exports.UpdateIntentInput$ = exports.UpdateEvaluationOutput$ = exports.UpdateEvaluationInput$ = exports.UpdateAutomationOutput$ = exports.UpdateAutomationInput$ = exports.UpdateAssetOutput$ = exports.UpdateAssetInput$ = exports.TopicsFeatureConfiguration$ = exports.TalkRatioFeatureConfiguration$ = exports.SmartActionTransfer$ = exports.SmartActionRunTool$ = exports.SmartActionRunAgent$ = exports.SmartActionOpenUrl$ = exports.SmartActionItem$ = exports.SmartActionHandover$ = exports.SentimentFeatureConfiguration$ = exports.RestoreProfileVersionToDraftOutput$ = exports.RestoreProfileVersionToDraftInput$ = exports.PublishProfileVersionOutput$ = exports.PublishProfileVersionInput$ = exports.ProfileVersionInfo$ = exports.ProfileVersionChange$ = void 0;
6
+ exports.UpdateProfile$ = exports.UpdateIntent$ = exports.UpdateEvaluation$ = exports.UpdateAutomation$ = exports.UpdateAsset$ = exports.RestoreProfileVersionToDraft$ = exports.PublishProfileVersion$ = exports.ListProfileVersions$ = exports.ListProfiles$ = exports.ListIntents$ = exports.ListEvaluations$ = exports.ListAutomations$ = exports.ListAssets$ = exports.GetProfileVersion$ = exports.GetProfile$ = exports.GetIntent$ = void 0;
7
7
  const _A = "Actor";
8
8
  const _AAH = "AgentAutomationHandler";
9
9
  const _AC = "AssetCard";
@@ -18,7 +18,11 @@ const _AP = "AssetPlaybook";
18
18
  const _APR = "AttachProfileResource";
19
19
  const _APRI = "AttachProfileResourceInput";
20
20
  const _APRO = "AttachProfileResourceOutput";
21
+ const _AS = "AssetSnapshot";
21
22
  const _ASA = "AssetSmartActions";
23
+ const _ASL = "AssetSnapshotsList";
24
+ const _ASLu = "AutomationSnapshotsList";
25
+ const _ASu = "AutomationSnapshot";
22
26
  const _As = "Asset";
23
27
  const _Au = "Automation";
24
28
  const _CA = "CopilotAccess";
@@ -81,6 +85,8 @@ const _E = "Evaluation";
81
85
  const _EI = "EvaluationInfo";
82
86
  const _EIL = "EvaluationInfoList";
83
87
  const _EIT = "EvaluationIntervalTrigger";
88
+ const _ES = "EvaluationSnapshot";
89
+ const _ESL = "EvaluationSnapshotsList";
84
90
  const _ET = "EvaluationTriggers";
85
91
  const _FE = "ForbiddenException";
86
92
  const _GA = "GetAsset";
@@ -106,6 +112,8 @@ const _IAM = "IntentAiMatch";
106
112
  const _IH = "IntentHandlers";
107
113
  const _II = "IntentInfo";
108
114
  const _IIL = "IntentInfoList";
115
+ const _IS = "IntentSnapshot";
116
+ const _ISL = "IntentSnapshotsList";
109
117
  const _ITM = "IntentTextMatch";
110
118
  const _ITMO = "IntentTextMatchOption";
111
119
  const _ITMOL = "IntentTextMatchOptionsList";
@@ -131,6 +139,7 @@ const _NFE = "NotFoundException";
131
139
  const _NTPE = "NothingToPublishException";
132
140
  const _P = "Profile";
133
141
  const _PCC = "PlaybookCompletionCriteria";
142
+ const _PDS = "ProfileDefinitionSnapshot";
134
143
  const _PI = "ProfileInfo";
135
144
  const _PIL = "ProfileInfoList";
136
145
  const _PMC = "PlaybookManualCompletion";
@@ -141,6 +150,7 @@ const _PR = "ProfileResource";
141
150
  const _PS = "PlaybookStep";
142
151
  const _PSC = "PlaybookSemanticCompletion";
143
152
  const _PSL = "PlaybookStepsList";
153
+ const _PV = "ProfileVersion";
144
154
  const _PVC = "ProfileVersionChange";
145
155
  const _PVCL = "ProfileVersionChangesList";
146
156
  const _PVI = "ProfileVersionInfo";
@@ -220,6 +230,7 @@ const _cu = "cursor";
220
230
  const _d = "description";
221
231
  const _dBV = "draftBaseVersion";
222
232
  const _de = "detach";
233
+ const _def = "definition";
223
234
  const _des = "destination";
224
235
  const _e = "error";
225
236
  const _eC = "evaluationCount";
@@ -321,6 +332,7 @@ const _tI = "toolId";
321
332
  const _tM = "textMatch";
322
333
  const _tME = "textMatchEnabled";
323
334
  const _tR = "talkRatio";
335
+ const _tV = "toolVersion";
324
336
  const _te = "text";
325
337
  const _ti = "title";
326
338
  const _to = "to";
@@ -431,6 +443,11 @@ exports.AssetSmartActions$ = [3, n2, _ASA,
431
443
  [_a],
432
444
  [() => SmartActionItemsList], 1
433
445
  ];
446
+ exports.AssetSnapshot$ = [3, n2, _AS,
447
+ 0,
448
+ [_n, _co, _i, _k, _d, _en, _ti, _su, _ma, _f, _se, _ic, _st, _con],
449
+ [0, () => exports.AssetContent$, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 15], 3
450
+ ];
434
451
  exports.AttachProfileResourceInput$ = [3, n2, _APRI,
435
452
  0,
436
453
  [_pI, _r, _re, _com],
@@ -451,6 +468,11 @@ exports.AutomationInfo$ = [3, n2, _AIu,
451
468
  [_cA, _cB, _i, _n, _uA, _uB, _d],
452
469
  [0, () => exports.Actor$, 0, 0, 0, () => exports.Actor$, 0], 4
453
470
  ];
471
+ exports.AutomationSnapshot$ = [3, n2, _ASu,
472
+ 0,
473
+ [_n, _h, _i, _d, _con],
474
+ [0, () => exports.AutomationHandler$, 0, 0, 15], 3
475
+ ];
454
476
  exports.CardAgentContent$ = [3, n2, _CAC,
455
477
  0,
456
478
  [_aI, _v],
@@ -641,6 +663,11 @@ exports.EvaluationIntervalTrigger$ = [3, n2, _EIT,
641
663
  [_en, _iS],
642
664
  [2, 1], 1
643
665
  ];
666
+ exports.EvaluationSnapshot$ = [3, n2, _ES,
667
+ 0,
668
+ [_n, _in, _tr, _w, _i, _d, _fi, _mod, _con],
669
+ [0, 0, () => exports.EvaluationTriggers$, 0, 0, 0, () => CopilotFieldsList, 0, 15], 5
670
+ ];
644
671
  exports.EvaluationTriggers$ = [3, n2, _ET,
645
672
  0,
646
673
  [_inter, _cES, _aES, _iOPS],
@@ -704,7 +731,7 @@ exports.GetProfileVersionInput$ = [3, n2, _GPVI,
704
731
  exports.GetProfileVersionOutput$ = [3, n2, _GPVO,
705
732
  0,
706
733
  [_ve],
707
- [1], 1
734
+ [() => exports.ProfileVersion$], 1
708
735
  ];
709
736
  exports.Intent$ = [3, n2, _I,
710
737
  0,
@@ -726,6 +753,11 @@ exports.IntentInfo$ = [3, n2, _II,
726
753
  [_cA, _cB, _i, _n, _tME, _aME, _uA, _uB, _d, _uLD],
727
754
  [0, () => exports.Actor$, 0, 0, 2, 2, 0, () => exports.Actor$, 0, 1], 6
728
755
  ];
756
+ exports.IntentSnapshot$ = [3, n2, _IS,
757
+ 0,
758
+ [_n, _ha, _i, _d, _con],
759
+ [0, () => exports.IntentHandlers$, 0, 0, 15], 3
760
+ ];
729
761
  exports.IntentTextMatch$ = [3, n2, _ITM,
730
762
  0,
731
763
  [_en, _op],
@@ -816,11 +848,21 @@ exports.Profile$ = [3, n2, _P,
816
848
  [_n, _cha, _cA, _cB, _i, _sta, _r, _li, _d, _con, _ac, _fe, _ass, _inte, _eva, _aut, _uA, _uB, _lV, _dBV],
817
849
  [0, 0, 0, () => exports.Actor$, 0, 0, 1, 2, 0, 15, () => exports.CopilotAccess$, () => CopilotFeaturesList, 64 | 0, 64 | 0, 64 | 0, 64 | 0, 0, () => exports.Actor$, 1, 1], 8
818
850
  ];
851
+ exports.ProfileDefinitionSnapshot$ = [3, n2, _PDS,
852
+ 0,
853
+ [_n, _cha, _inte, _eva, _aut, _ass, _d, _con, _ac, _fe],
854
+ [0, 0, () => IntentSnapshotsList, () => EvaluationSnapshotsList, () => AutomationSnapshotsList, () => AssetSnapshotsList, 0, 15, () => exports.CopilotAccess$, () => CopilotFeaturesList], 6
855
+ ];
819
856
  exports.ProfileInfo$ = [3, n2, _PI,
820
857
  0,
821
858
  [_cA, _cB, _i, _n, _cha, _sta, _li, _uA, _uB, _d, _lV, _iC, _eC, _aCu, _aCs],
822
859
  [0, () => exports.Actor$, 0, 0, 0, 0, 2, 0, () => exports.Actor$, 0, 1, 1, 1, 1, 1], 7
823
860
  ];
861
+ exports.ProfileVersion$ = [3, n2, _PV,
862
+ 0,
863
+ [_pI, _ve, _def, _pA, _pB, _chan],
864
+ [0, 1, () => exports.ProfileDefinitionSnapshot$, 0, () => exports.Actor$, 0], 5
865
+ ];
824
866
  exports.ProfileVersionChange$ = [3, n2, _PVC,
825
867
  0,
826
868
  [_pat, _b, _af],
@@ -839,7 +881,7 @@ exports.PublishProfileVersionInput$ = [3, n2, _PPVI,
839
881
  exports.PublishProfileVersionOutput$ = [3, n2, _PPVO,
840
882
  0,
841
883
  [_ve],
842
- [1], 1
884
+ [() => exports.ProfileVersion$], 1
843
885
  ];
844
886
  exports.RestoreProfileVersionToDraftInput$ = [3, n2, _RPVTDI,
845
887
  0,
@@ -878,8 +920,8 @@ exports.SmartActionRunAgent$ = [3, n2, _SARA,
878
920
  ];
879
921
  exports.SmartActionRunTool$ = [3, n2, _SART,
880
922
  0,
881
- [_tI, _rM, _v, _rC],
882
- [0, 0, () => CopilotVariableBindingsList, 2], 2
923
+ [_tI, _rM, _tV, _v, _rC],
924
+ [0, 0, 1, () => CopilotVariableBindingsList, 2], 2
883
925
  ];
884
926
  exports.SmartActionTransfer$ = [3, n2, _SAT,
885
927
  0,
@@ -950,10 +992,16 @@ var AssetIdList = 64 | 0;
950
992
  var AssetInfoList = [1, n2, _AIL,
951
993
  0, () => exports.AssetInfo$
952
994
  ];
995
+ var AssetSnapshotsList = [1, n2, _ASL,
996
+ 0, () => exports.AssetSnapshot$
997
+ ];
953
998
  var AutomationIdList = 64 | 0;
954
999
  var AutomationInfoList = [1, n2, _AILu,
955
1000
  0, () => exports.AutomationInfo$
956
1001
  ];
1002
+ var AutomationSnapshotsList = [1, n2, _ASLu,
1003
+ 0, () => exports.AutomationSnapshot$
1004
+ ];
957
1005
  var CopilotFeaturesList = [1, n2, _CFL,
958
1006
  0, () => exports.CopilotFeature$
959
1007
  ];
@@ -970,10 +1018,16 @@ var EvaluationIdList = 64 | 0;
970
1018
  var EvaluationInfoList = [1, n2, _EIL,
971
1019
  0, () => exports.EvaluationInfo$
972
1020
  ];
1021
+ var EvaluationSnapshotsList = [1, n2, _ESL,
1022
+ 0, () => exports.EvaluationSnapshot$
1023
+ ];
973
1024
  var IntentIdList = 64 | 0;
974
1025
  var IntentInfoList = [1, n2, _IIL,
975
1026
  0, () => exports.IntentInfo$
976
1027
  ];
1028
+ var IntentSnapshotsList = [1, n2, _ISL,
1029
+ 0, () => exports.IntentSnapshot$
1030
+ ];
977
1031
  var IntentTextMatchOptionsList = [1, n2, _ITMOL,
978
1032
  0, () => exports.IntentTextMatchOption$
979
1033
  ];
@@ -8,7 +8,7 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
8
8
  import { errorTypeRegistries } from "./schemas/schemas_0";
9
9
  export const getRuntimeConfig = (config) => {
10
10
  return {
11
- apiVersion: "v1",
11
+ apiVersion: "v2",
12
12
  base64Decoder: config?.base64Decoder ?? fromBase64,
13
13
  base64Encoder: config?.base64Encoder ?? toBase64,
14
14
  disableHostPrefix: config?.disableHostPrefix ?? false,
@@ -47,7 +47,7 @@ export const getRuntimeConfig = (config) => {
47
47
  protocolSettings: config?.protocolSettings ?? {
48
48
  defaultNamespace: "wildix.wilma.copilot",
49
49
  errorTypeRegistries,
50
- version: "v1",
50
+ version: "v2",
51
51
  serviceTarget: "WilmaCopilot",
52
52
  },
53
53
  urlParser: config?.urlParser ?? parseUrl,
@@ -12,7 +12,11 @@ const _AP = "AssetPlaybook";
12
12
  const _APR = "AttachProfileResource";
13
13
  const _APRI = "AttachProfileResourceInput";
14
14
  const _APRO = "AttachProfileResourceOutput";
15
+ const _AS = "AssetSnapshot";
15
16
  const _ASA = "AssetSmartActions";
17
+ const _ASL = "AssetSnapshotsList";
18
+ const _ASLu = "AutomationSnapshotsList";
19
+ const _ASu = "AutomationSnapshot";
16
20
  const _As = "Asset";
17
21
  const _Au = "Automation";
18
22
  const _CA = "CopilotAccess";
@@ -75,6 +79,8 @@ const _E = "Evaluation";
75
79
  const _EI = "EvaluationInfo";
76
80
  const _EIL = "EvaluationInfoList";
77
81
  const _EIT = "EvaluationIntervalTrigger";
82
+ const _ES = "EvaluationSnapshot";
83
+ const _ESL = "EvaluationSnapshotsList";
78
84
  const _ET = "EvaluationTriggers";
79
85
  const _FE = "ForbiddenException";
80
86
  const _GA = "GetAsset";
@@ -100,6 +106,8 @@ const _IAM = "IntentAiMatch";
100
106
  const _IH = "IntentHandlers";
101
107
  const _II = "IntentInfo";
102
108
  const _IIL = "IntentInfoList";
109
+ const _IS = "IntentSnapshot";
110
+ const _ISL = "IntentSnapshotsList";
103
111
  const _ITM = "IntentTextMatch";
104
112
  const _ITMO = "IntentTextMatchOption";
105
113
  const _ITMOL = "IntentTextMatchOptionsList";
@@ -125,6 +133,7 @@ const _NFE = "NotFoundException";
125
133
  const _NTPE = "NothingToPublishException";
126
134
  const _P = "Profile";
127
135
  const _PCC = "PlaybookCompletionCriteria";
136
+ const _PDS = "ProfileDefinitionSnapshot";
128
137
  const _PI = "ProfileInfo";
129
138
  const _PIL = "ProfileInfoList";
130
139
  const _PMC = "PlaybookManualCompletion";
@@ -135,6 +144,7 @@ const _PR = "ProfileResource";
135
144
  const _PS = "PlaybookStep";
136
145
  const _PSC = "PlaybookSemanticCompletion";
137
146
  const _PSL = "PlaybookStepsList";
147
+ const _PV = "ProfileVersion";
138
148
  const _PVC = "ProfileVersionChange";
139
149
  const _PVCL = "ProfileVersionChangesList";
140
150
  const _PVI = "ProfileVersionInfo";
@@ -214,6 +224,7 @@ const _cu = "cursor";
214
224
  const _d = "description";
215
225
  const _dBV = "draftBaseVersion";
216
226
  const _de = "detach";
227
+ const _def = "definition";
217
228
  const _des = "destination";
218
229
  const _e = "error";
219
230
  const _eC = "evaluationCount";
@@ -315,6 +326,7 @@ const _tI = "toolId";
315
326
  const _tM = "textMatch";
316
327
  const _tME = "textMatchEnabled";
317
328
  const _tR = "talkRatio";
329
+ const _tV = "toolVersion";
318
330
  const _te = "text";
319
331
  const _ti = "title";
320
332
  const _to = "to";
@@ -425,6 +437,11 @@ export var AssetSmartActions$ = [3, n2, _ASA,
425
437
  [_a],
426
438
  [() => SmartActionItemsList], 1
427
439
  ];
440
+ export var AssetSnapshot$ = [3, n2, _AS,
441
+ 0,
442
+ [_n, _co, _i, _k, _d, _en, _ti, _su, _ma, _f, _se, _ic, _st, _con],
443
+ [0, () => AssetContent$, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 15], 3
444
+ ];
428
445
  export var AttachProfileResourceInput$ = [3, n2, _APRI,
429
446
  0,
430
447
  [_pI, _r, _re, _com],
@@ -445,6 +462,11 @@ export var AutomationInfo$ = [3, n2, _AIu,
445
462
  [_cA, _cB, _i, _n, _uA, _uB, _d],
446
463
  [0, () => Actor$, 0, 0, 0, () => Actor$, 0], 4
447
464
  ];
465
+ export var AutomationSnapshot$ = [3, n2, _ASu,
466
+ 0,
467
+ [_n, _h, _i, _d, _con],
468
+ [0, () => AutomationHandler$, 0, 0, 15], 3
469
+ ];
448
470
  export var CardAgentContent$ = [3, n2, _CAC,
449
471
  0,
450
472
  [_aI, _v],
@@ -635,6 +657,11 @@ export var EvaluationIntervalTrigger$ = [3, n2, _EIT,
635
657
  [_en, _iS],
636
658
  [2, 1], 1
637
659
  ];
660
+ export var EvaluationSnapshot$ = [3, n2, _ES,
661
+ 0,
662
+ [_n, _in, _tr, _w, _i, _d, _fi, _mod, _con],
663
+ [0, 0, () => EvaluationTriggers$, 0, 0, 0, () => CopilotFieldsList, 0, 15], 5
664
+ ];
638
665
  export var EvaluationTriggers$ = [3, n2, _ET,
639
666
  0,
640
667
  [_inter, _cES, _aES, _iOPS],
@@ -698,7 +725,7 @@ export var GetProfileVersionInput$ = [3, n2, _GPVI,
698
725
  export var GetProfileVersionOutput$ = [3, n2, _GPVO,
699
726
  0,
700
727
  [_ve],
701
- [1], 1
728
+ [() => ProfileVersion$], 1
702
729
  ];
703
730
  export var Intent$ = [3, n2, _I,
704
731
  0,
@@ -720,6 +747,11 @@ export var IntentInfo$ = [3, n2, _II,
720
747
  [_cA, _cB, _i, _n, _tME, _aME, _uA, _uB, _d, _uLD],
721
748
  [0, () => Actor$, 0, 0, 2, 2, 0, () => Actor$, 0, 1], 6
722
749
  ];
750
+ export var IntentSnapshot$ = [3, n2, _IS,
751
+ 0,
752
+ [_n, _ha, _i, _d, _con],
753
+ [0, () => IntentHandlers$, 0, 0, 15], 3
754
+ ];
723
755
  export var IntentTextMatch$ = [3, n2, _ITM,
724
756
  0,
725
757
  [_en, _op],
@@ -810,11 +842,21 @@ export var Profile$ = [3, n2, _P,
810
842
  [_n, _cha, _cA, _cB, _i, _sta, _r, _li, _d, _con, _ac, _fe, _ass, _inte, _eva, _aut, _uA, _uB, _lV, _dBV],
811
843
  [0, 0, 0, () => Actor$, 0, 0, 1, 2, 0, 15, () => CopilotAccess$, () => CopilotFeaturesList, 64 | 0, 64 | 0, 64 | 0, 64 | 0, 0, () => Actor$, 1, 1], 8
812
844
  ];
845
+ export var ProfileDefinitionSnapshot$ = [3, n2, _PDS,
846
+ 0,
847
+ [_n, _cha, _inte, _eva, _aut, _ass, _d, _con, _ac, _fe],
848
+ [0, 0, () => IntentSnapshotsList, () => EvaluationSnapshotsList, () => AutomationSnapshotsList, () => AssetSnapshotsList, 0, 15, () => CopilotAccess$, () => CopilotFeaturesList], 6
849
+ ];
813
850
  export var ProfileInfo$ = [3, n2, _PI,
814
851
  0,
815
852
  [_cA, _cB, _i, _n, _cha, _sta, _li, _uA, _uB, _d, _lV, _iC, _eC, _aCu, _aCs],
816
853
  [0, () => Actor$, 0, 0, 0, 0, 2, 0, () => Actor$, 0, 1, 1, 1, 1, 1], 7
817
854
  ];
855
+ export var ProfileVersion$ = [3, n2, _PV,
856
+ 0,
857
+ [_pI, _ve, _def, _pA, _pB, _chan],
858
+ [0, 1, () => ProfileDefinitionSnapshot$, 0, () => Actor$, 0], 5
859
+ ];
818
860
  export var ProfileVersionChange$ = [3, n2, _PVC,
819
861
  0,
820
862
  [_pat, _b, _af],
@@ -833,7 +875,7 @@ export var PublishProfileVersionInput$ = [3, n2, _PPVI,
833
875
  export var PublishProfileVersionOutput$ = [3, n2, _PPVO,
834
876
  0,
835
877
  [_ve],
836
- [1], 1
878
+ [() => ProfileVersion$], 1
837
879
  ];
838
880
  export var RestoreProfileVersionToDraftInput$ = [3, n2, _RPVTDI,
839
881
  0,
@@ -872,8 +914,8 @@ export var SmartActionRunAgent$ = [3, n2, _SARA,
872
914
  ];
873
915
  export var SmartActionRunTool$ = [3, n2, _SART,
874
916
  0,
875
- [_tI, _rM, _v, _rC],
876
- [0, 0, () => CopilotVariableBindingsList, 2], 2
917
+ [_tI, _rM, _tV, _v, _rC],
918
+ [0, 0, 1, () => CopilotVariableBindingsList, 2], 2
877
919
  ];
878
920
  export var SmartActionTransfer$ = [3, n2, _SAT,
879
921
  0,
@@ -944,10 +986,16 @@ var AssetIdList = 64 | 0;
944
986
  var AssetInfoList = [1, n2, _AIL,
945
987
  0, () => AssetInfo$
946
988
  ];
989
+ var AssetSnapshotsList = [1, n2, _ASL,
990
+ 0, () => AssetSnapshot$
991
+ ];
947
992
  var AutomationIdList = 64 | 0;
948
993
  var AutomationInfoList = [1, n2, _AILu,
949
994
  0, () => AutomationInfo$
950
995
  ];
996
+ var AutomationSnapshotsList = [1, n2, _ASLu,
997
+ 0, () => AutomationSnapshot$
998
+ ];
951
999
  var CopilotFeaturesList = [1, n2, _CFL,
952
1000
  0, () => CopilotFeature$
953
1001
  ];
@@ -964,10 +1012,16 @@ var EvaluationIdList = 64 | 0;
964
1012
  var EvaluationInfoList = [1, n2, _EIL,
965
1013
  0, () => EvaluationInfo$
966
1014
  ];
1015
+ var EvaluationSnapshotsList = [1, n2, _ESL,
1016
+ 0, () => EvaluationSnapshot$
1017
+ ];
967
1018
  var IntentIdList = 64 | 0;
968
1019
  var IntentInfoList = [1, n2, _IIL,
969
1020
  0, () => IntentInfo$
970
1021
  ];
1022
+ var IntentSnapshotsList = [1, n2, _ISL,
1023
+ 0, () => IntentSnapshot$
1024
+ ];
971
1025
  var IntentTextMatchOptionsList = [1, n2, _ITMOL,
972
1026
  0, () => IntentTextMatchOption$
973
1027
  ];
@@ -121,6 +121,7 @@ declare const CreateAssetCommand_base: {
121
121
  * },
122
122
  * runTool: { // SmartActionRunTool
123
123
  * toolId: "STRING_VALUE", // required
124
+ * toolVersion: Number("int"),
124
125
  * variables: [
125
126
  * {
126
127
  * name: "STRING_VALUE", // required
@@ -242,6 +243,7 @@ declare const CreateAssetCommand_base: {
242
243
  * // },
243
244
  * // runTool: { // SmartActionRunTool
244
245
  * // toolId: "STRING_VALUE", // required
246
+ * // toolVersion: Number("int"),
245
247
  * // variables: [
246
248
  * // {
247
249
  * // name: "STRING_VALUE", // required
@@ -128,6 +128,7 @@ declare const GetAssetCommand_base: {
128
128
  * // },
129
129
  * // runTool: { // SmartActionRunTool
130
130
  * // toolId: "STRING_VALUE", // required
131
+ * // toolVersion: Number("int"),
131
132
  * // variables: [
132
133
  * // {
133
134
  * // name: "STRING_VALUE", // required