@wildix/wda-insights-client 1.1.30 → 1.1.34

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.
Files changed (33) hide show
  1. package/dist-cjs/WdaInsights.js +6 -0
  2. package/dist-cjs/commands/GetAnalysisSettingsCommand.js +21 -0
  3. package/dist-cjs/commands/PutAnalysisSettingsCommand.js +21 -0
  4. package/dist-cjs/commands/UpdateProjectionAnalysisSettingsCommand.js +21 -0
  5. package/dist-cjs/commands/index.js +3 -0
  6. package/dist-cjs/models/models_0.js +7 -13
  7. package/dist-cjs/protocols/Aws_restJson1.js +107 -5
  8. package/dist-es/WdaInsights.js +6 -0
  9. package/dist-es/commands/GetAnalysisSettingsCommand.js +17 -0
  10. package/dist-es/commands/PutAnalysisSettingsCommand.js +17 -0
  11. package/dist-es/commands/UpdateProjectionAnalysisSettingsCommand.js +17 -0
  12. package/dist-es/commands/index.js +3 -0
  13. package/dist-es/models/models_0.js +5 -11
  14. package/dist-es/protocols/Aws_restJson1.js +98 -2
  15. package/dist-types/WdaInsights.d.ts +23 -0
  16. package/dist-types/WdaInsightsClient.d.ts +5 -2
  17. package/dist-types/commands/CreateProjectionCommand.d.ts +10 -8
  18. package/dist-types/commands/DisableProjectionCommand.d.ts +5 -4
  19. package/dist-types/commands/EnableProjectionCommand.d.ts +5 -4
  20. package/dist-types/commands/GetAnalysisSettingsCommand.d.ts +78 -0
  21. package/dist-types/commands/GetProjectionCommand.d.ts +5 -4
  22. package/dist-types/commands/ListConversationsCommand.d.ts +30 -22
  23. package/dist-types/commands/ListPlaylistItemsCommand.d.ts +30 -22
  24. package/dist-types/commands/ListProjectionsCommand.d.ts +5 -4
  25. package/dist-types/commands/ListWatchHistoryCommand.d.ts +30 -22
  26. package/dist-types/commands/PauseProjectionCommand.d.ts +5 -4
  27. package/dist-types/commands/PutAnalysisSettingsCommand.d.ts +79 -0
  28. package/dist-types/commands/UpdateProjectionAnalysisSettingsCommand.d.ts +145 -0
  29. package/dist-types/commands/UpdateProjectionCommand.d.ts +8 -8
  30. package/dist-types/commands/index.d.ts +3 -0
  31. package/dist-types/models/models_0.d.ts +120 -78
  32. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  33. package/package.json +1 -1
@@ -146,31 +146,6 @@ export interface CallFlowRecording {
146
146
  owner: CallRecordOwner;
147
147
  url: string;
148
148
  pauses: (CallRecordPause)[];
149
- destinations?: (CallFlowAttachmentDestination)[] | undefined;
150
- }
151
- /**
152
- * @public
153
- * @enum
154
- */
155
- export declare const CallFlowTranscriptionStatus: {
156
- readonly AVAILABLE: "AVAILABLE";
157
- readonly POST_TRANSCRIPTION: "POST_TRANSCRIPTION";
158
- readonly UNAVAILABLE: "UNAVAILABLE";
159
- };
160
- /**
161
- * @public
162
- */
163
- export type CallFlowTranscriptionStatus = typeof CallFlowTranscriptionStatus[keyof typeof CallFlowTranscriptionStatus];
164
- /**
165
- * @public
166
- */
167
- export interface CallFlowTranscription {
168
- /**
169
- * If present, indicates the explicit recipients from 'Send To Emails'
170
- * @public
171
- */
172
- destinations?: (CallFlowAttachmentDestination)[] | undefined;
173
- status: CallFlowTranscriptionStatus;
174
149
  }
175
150
  /**
176
151
  * @public
@@ -183,7 +158,7 @@ export interface CallFlowVoicemail {
183
158
  /**
184
159
  * @public
185
160
  */
186
- export type CallFlowAttachment = CallFlowAttachment.FaxMember | CallFlowAttachment.RecordingMember | CallFlowAttachment.TranscriptionMember | CallFlowAttachment.VoicemailMember | CallFlowAttachment.$UnknownMember;
161
+ export type CallFlowAttachment = CallFlowAttachment.FaxMember | CallFlowAttachment.RecordingMember | CallFlowAttachment.VoicemailMember | CallFlowAttachment.$UnknownMember;
187
162
  /**
188
163
  * @public
189
164
  */
@@ -192,28 +167,18 @@ export declare namespace CallFlowAttachment {
192
167
  recording: CallFlowRecording;
193
168
  fax?: never;
194
169
  voicemail?: never;
195
- transcription?: never;
196
170
  $unknown?: never;
197
171
  }
198
172
  interface FaxMember {
199
173
  recording?: never;
200
174
  fax: CallFlowFax;
201
175
  voicemail?: never;
202
- transcription?: never;
203
176
  $unknown?: never;
204
177
  }
205
178
  interface VoicemailMember {
206
179
  recording?: never;
207
180
  fax?: never;
208
181
  voicemail: CallFlowVoicemail;
209
- transcription?: never;
210
- $unknown?: never;
211
- }
212
- interface TranscriptionMember {
213
- recording?: never;
214
- fax?: never;
215
- voicemail?: never;
216
- transcription: CallFlowTranscription;
217
182
  $unknown?: never;
218
183
  }
219
184
  /**
@@ -223,14 +188,12 @@ export declare namespace CallFlowAttachment {
223
188
  recording?: never;
224
189
  fax?: never;
225
190
  voicemail?: never;
226
- transcription?: never;
227
191
  $unknown: [string, any];
228
192
  }
229
193
  interface Visitor<T> {
230
194
  recording: (value: CallFlowRecording) => T;
231
195
  fax: (value: CallFlowFax) => T;
232
196
  voicemail: (value: CallFlowVoicemail) => T;
233
- transcription: (value: CallFlowTranscription) => T;
234
197
  _: (name: string, value: any) => T;
235
198
  }
236
199
  const visit: <T>(value: CallFlowAttachment, visitor: Visitor<T>) => T;
@@ -241,7 +204,6 @@ export declare namespace CallFlowAttachment {
241
204
  */
242
205
  export declare const CallFlowAttachmentType: {
243
206
  readonly FAX: "FAX";
244
- readonly TRANSCRIPTION: "TRANSCRIPTION";
245
207
  readonly VOICEMAIL: "VOICEMAIL";
246
208
  };
247
209
  /**
@@ -343,6 +305,25 @@ export declare const License: {
343
305
  * @public
344
306
  */
345
307
  export type License = typeof License[keyof typeof License];
308
+ /**
309
+ * @public
310
+ */
311
+ export interface CallFlowNotifications {
312
+ destinations?: (CallFlowAttachmentDestination)[] | undefined;
313
+ }
314
+ /**
315
+ * @public
316
+ * @enum
317
+ */
318
+ export declare const CallFlowTranscriptionStatus: {
319
+ readonly AVAILABLE: "AVAILABLE";
320
+ readonly POST_TRANSCRIPTION: "POST_TRANSCRIPTION";
321
+ readonly UNAVAILABLE: "UNAVAILABLE";
322
+ };
323
+ /**
324
+ * @public
325
+ */
326
+ export type CallFlowTranscriptionStatus = typeof CallFlowTranscriptionStatus[keyof typeof CallFlowTranscriptionStatus];
346
327
  /**
347
328
  * @public
348
329
  * @enum
@@ -433,26 +414,8 @@ export interface CallRecord {
433
414
  remotePhoneCountryCodeStr?: string | undefined;
434
415
  remotePhoneLocation?: string | undefined;
435
416
  callStatus?: ConversationStatus | undefined;
436
- /**
437
- * Please use `attachments.transcription.status` instead.
438
- *
439
- * @deprecated
440
- * @public
441
- */
442
417
  transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
443
- /**
444
- * Please use `attachments.transcription.language` instead.
445
- *
446
- * @deprecated
447
- * @public
448
- */
449
418
  transcriptionLanguage?: string | undefined;
450
- /**
451
- * Please use `attachments.transcription.seconds` instead.
452
- *
453
- * @deprecated
454
- * @public
455
- */
456
419
  transcriptionSeconds?: number | undefined;
457
420
  /**
458
421
  * Consider to use `attachments` instead.
@@ -476,6 +439,7 @@ export interface CallRecord {
476
439
  */
477
440
  attachmentDestinations?: (CallFlowAttachmentDestination)[] | undefined;
478
441
  attachments?: (CallFlowAttachment)[] | undefined;
442
+ notifications?: CallFlowNotifications | undefined;
479
443
  id: string;
480
444
  pbx: string;
481
445
  time: number;
@@ -2158,6 +2122,16 @@ export declare const AggregationDateInterval: {
2158
2122
  * @public
2159
2123
  */
2160
2124
  export type AggregationDateInterval = typeof AggregationDateInterval[keyof typeof AggregationDateInterval];
2125
+ /**
2126
+ * @public
2127
+ */
2128
+ export interface AnalysisSettings {
2129
+ /**
2130
+ * Default provider and model identifier for projections that do not define a custom model. Example: 'openai://gpt-5'.
2131
+ * @public
2132
+ */
2133
+ defaultModel?: string | undefined;
2134
+ }
2161
2135
  /**
2162
2136
  * @public
2163
2137
  */
@@ -2586,6 +2560,11 @@ export interface ProjectionSelectionParameter {
2586
2560
  options: (string)[];
2587
2561
  multi?: boolean | undefined;
2588
2562
  adaptive?: boolean | undefined;
2563
+ /**
2564
+ * Options generated by AI when adaptive mode was enabled.
2565
+ * @public
2566
+ */
2567
+ adaptiveOptions?: (string)[] | undefined;
2589
2568
  }
2590
2569
  /**
2591
2570
  * @public
@@ -2645,24 +2624,6 @@ export interface ProjectionField {
2645
2624
  optional?: boolean | undefined;
2646
2625
  parameter: ProjectionParameter;
2647
2626
  }
2648
- /**
2649
- * @public
2650
- * @enum
2651
- */
2652
- export declare const ProjectionProvider: {
2653
- readonly OPENAI: "OPENAI";
2654
- };
2655
- /**
2656
- * @public
2657
- */
2658
- export type ProjectionProvider = typeof ProjectionProvider[keyof typeof ProjectionProvider];
2659
- /**
2660
- * @public
2661
- */
2662
- export interface ProjectionModel {
2663
- provider?: ProjectionProvider | undefined;
2664
- name?: string | undefined;
2665
- }
2666
2627
  /**
2667
2628
  * @public
2668
2629
  */
@@ -2673,7 +2634,16 @@ export interface CreateProjectionInput {
2673
2634
  instructions?: string | undefined;
2674
2635
  conditions?: (ProjectionCondition)[] | undefined;
2675
2636
  fields: (ProjectionField)[];
2676
- model?: ProjectionModel | undefined;
2637
+ /**
2638
+ * Provider and model identifier to be used for the projection. Examples: 'openai://gpt-5' or 'google://gemini-3-pro'. This allows a specific projection to use the specified model.
2639
+ * @public
2640
+ */
2641
+ model?: string | undefined;
2642
+ /**
2643
+ * An execution group for the projection. If specified, only projections from the same group will be combined into a single LLM request.
2644
+ * @public
2645
+ */
2646
+ group?: string | undefined;
2677
2647
  /**
2678
2648
  * The unique identifier of the tenant when a service token is used.
2679
2649
  * @public
@@ -2710,7 +2680,16 @@ export interface Projection {
2710
2680
  instructions?: string | undefined;
2711
2681
  conditions?: (ProjectionCondition)[] | undefined;
2712
2682
  fields: (ProjectionField)[];
2713
- model?: ProjectionModel | undefined;
2683
+ /**
2684
+ * Provider and model identifier to be used for the projection. Examples: 'openai://gpt-5' or 'google://gemini-3-pro'. This allows a specific projection to use the specified model.
2685
+ * @public
2686
+ */
2687
+ model?: string | undefined;
2688
+ /**
2689
+ * An execution group for the projection. If specified, only projections from the same group will be combined into a single LLM request.
2690
+ * @public
2691
+ */
2692
+ group?: string | undefined;
2714
2693
  id: string;
2715
2694
  status: ProjectionStatus;
2716
2695
  version: number;
@@ -2948,6 +2927,22 @@ export interface FlatAggregationResult {
2948
2927
  */
2949
2928
  buckets: (FlatAggregationBucket)[];
2950
2929
  }
2930
+ /**
2931
+ * @public
2932
+ */
2933
+ export interface GetAnalysisSettingsInput {
2934
+ /**
2935
+ * The unique identifier of the tenant when a service token is used.
2936
+ * @public
2937
+ */
2938
+ company?: string | undefined;
2939
+ }
2940
+ /**
2941
+ * @public
2942
+ */
2943
+ export interface GetAnalysisSettingsOutput {
2944
+ settings: AnalysisSettings;
2945
+ }
2951
2946
  /**
2952
2947
  * @public
2953
2948
  */
@@ -3904,6 +3899,27 @@ export interface PlaylistAccessNotify {
3904
3899
  emails: (string)[];
3905
3900
  message?: string | undefined;
3906
3901
  }
3902
+ /**
3903
+ * @public
3904
+ */
3905
+ export interface PutAnalysisSettingsInput {
3906
+ /**
3907
+ * Default provider and model identifier for projections that do not define a custom model. Example: 'openai://gpt-5'.
3908
+ * @public
3909
+ */
3910
+ defaultModel?: string | undefined;
3911
+ /**
3912
+ * The unique identifier of the tenant when a service token is used.
3913
+ * @public
3914
+ */
3915
+ company?: string | undefined;
3916
+ }
3917
+ /**
3918
+ * @public
3919
+ */
3920
+ export interface PutAnalysisSettingsOutput {
3921
+ settings: AnalysisSettings;
3922
+ }
3907
3923
  /**
3908
3924
  * @public
3909
3925
  */
@@ -4123,7 +4139,6 @@ export interface UpdateProjectionInput {
4123
4139
  instructions?: string | undefined;
4124
4140
  conditions?: (ProjectionCondition)[] | undefined;
4125
4141
  fields: (ProjectionField)[];
4126
- model?: ProjectionModel | undefined;
4127
4142
  /**
4128
4143
  * The unique identifier of the tenant when a service token is used.
4129
4144
  * @public
@@ -4137,6 +4152,33 @@ export interface UpdateProjectionInput {
4137
4152
  export interface UpdateProjectionOutput {
4138
4153
  projection: Projection;
4139
4154
  }
4155
+ /**
4156
+ * @public
4157
+ */
4158
+ export interface UpdateProjectionAnalysisSettingsInput {
4159
+ /**
4160
+ * Provider and model identifier to be used for the projection. Examples: 'openai://gpt-5' or 'google://gemini-3-pro'. This allows a specific projection to use the specified model.
4161
+ * @public
4162
+ */
4163
+ model?: string | undefined;
4164
+ /**
4165
+ * An execution group for the projection. If specified, only projections from the same group will be combined into a single LLM request.
4166
+ * @public
4167
+ */
4168
+ group?: string | undefined;
4169
+ /**
4170
+ * The unique identifier of the tenant when a service token is used.
4171
+ * @public
4172
+ */
4173
+ company?: string | undefined;
4174
+ id: string;
4175
+ }
4176
+ /**
4177
+ * @public
4178
+ */
4179
+ export interface UpdateProjectionAnalysisSettingsOutput {
4180
+ projection: Projection;
4181
+ }
4140
4182
  /**
4141
4183
  * @public
4142
4184
  */
@@ -11,6 +11,7 @@ import { DeleteProjectionCommandInput, DeleteProjectionCommandOutput } from "../
11
11
  import { DeleteProjectionsCategoryCommandInput, DeleteProjectionsCategoryCommandOutput } from "../commands/DeleteProjectionsCategoryCommand";
12
12
  import { DisableProjectionCommandInput, DisableProjectionCommandOutput } from "../commands/DisableProjectionCommand";
13
13
  import { EnableProjectionCommandInput, EnableProjectionCommandOutput } from "../commands/EnableProjectionCommand";
14
+ import { GetAnalysisSettingsCommandInput, GetAnalysisSettingsCommandOutput } from "../commands/GetAnalysisSettingsCommand";
14
15
  import { GetCallCharacteristicsCommandInput, GetCallCharacteristicsCommandOutput } from "../commands/GetCallCharacteristicsCommand";
15
16
  import { GetCallInsightsCommandInput, GetCallInsightsCommandOutput } from "../commands/GetCallInsightsCommand";
16
17
  import { GetCallStateCommandInput, GetCallStateCommandOutput } from "../commands/GetCallStateCommand";
@@ -39,6 +40,7 @@ import { ListPlaylistsCommandInput, ListPlaylistsCommandOutput } from "../comman
39
40
  import { ListProjectionsCommandInput, ListProjectionsCommandOutput } from "../commands/ListProjectionsCommand";
40
41
  import { ListWatchHistoryCommandInput, ListWatchHistoryCommandOutput } from "../commands/ListWatchHistoryCommand";
41
42
  import { PauseProjectionCommandInput, PauseProjectionCommandOutput } from "../commands/PauseProjectionCommand";
43
+ import { PutAnalysisSettingsCommandInput, PutAnalysisSettingsCommandOutput } from "../commands/PutAnalysisSettingsCommand";
42
44
  import { PutPlaylistItemCommandInput, PutPlaylistItemCommandOutput } from "../commands/PutPlaylistItemCommand";
43
45
  import { QueryConversationsCountCommandInput, QueryConversationsCountCommandOutput } from "../commands/QueryConversationsCountCommand";
44
46
  import { ScheduleCallSummaryGenerationCommandInput, ScheduleCallSummaryGenerationCommandOutput } from "../commands/ScheduleCallSummaryGenerationCommand";
@@ -49,6 +51,7 @@ import { UpdateFilterCommandInput, UpdateFilterCommandOutput } from "../commands
49
51
  import { UpdatePinnedDashboardsCommandInput, UpdatePinnedDashboardsCommandOutput } from "../commands/UpdatePinnedDashboardsCommand";
50
52
  import { UpdatePlaylistAccessCommandInput, UpdatePlaylistAccessCommandOutput } from "../commands/UpdatePlaylistAccessCommand";
51
53
  import { UpdatePlaylistCommandInput, UpdatePlaylistCommandOutput } from "../commands/UpdatePlaylistCommand";
54
+ import { UpdateProjectionAnalysisSettingsCommandInput, UpdateProjectionAnalysisSettingsCommandOutput } from "../commands/UpdateProjectionAnalysisSettingsCommand";
52
55
  import { UpdateProjectionCommandInput, UpdateProjectionCommandOutput } from "../commands/UpdateProjectionCommand";
53
56
  import { UpdateProjectionsCategoryCommandInput, UpdateProjectionsCategoryCommandOutput } from "../commands/UpdateProjectionsCategoryCommand";
54
57
  import { WatchCommandInput, WatchCommandOutput } from "../commands/WatchCommand";
@@ -106,6 +109,10 @@ export declare const se_DisableProjectionCommand: (input: DisableProjectionComma
106
109
  * serializeAws_restJson1EnableProjectionCommand
107
110
  */
108
111
  export declare const se_EnableProjectionCommand: (input: EnableProjectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
112
+ /**
113
+ * serializeAws_restJson1GetAnalysisSettingsCommand
114
+ */
115
+ export declare const se_GetAnalysisSettingsCommand: (input: GetAnalysisSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
109
116
  /**
110
117
  * serializeAws_restJson1GetCallCharacteristicsCommand
111
118
  */
@@ -218,6 +225,10 @@ export declare const se_ListWatchHistoryCommand: (input: ListWatchHistoryCommand
218
225
  * serializeAws_restJson1PauseProjectionCommand
219
226
  */
220
227
  export declare const se_PauseProjectionCommand: (input: PauseProjectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
228
+ /**
229
+ * serializeAws_restJson1PutAnalysisSettingsCommand
230
+ */
231
+ export declare const se_PutAnalysisSettingsCommand: (input: PutAnalysisSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
221
232
  /**
222
233
  * serializeAws_restJson1PutPlaylistItemCommand
223
234
  */
@@ -262,6 +273,10 @@ export declare const se_UpdatePlaylistAccessCommand: (input: UpdatePlaylistAcces
262
273
  * serializeAws_restJson1UpdateProjectionCommand
263
274
  */
264
275
  export declare const se_UpdateProjectionCommand: (input: UpdateProjectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
276
+ /**
277
+ * serializeAws_restJson1UpdateProjectionAnalysisSettingsCommand
278
+ */
279
+ export declare const se_UpdateProjectionAnalysisSettingsCommand: (input: UpdateProjectionAnalysisSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
265
280
  /**
266
281
  * serializeAws_restJson1UpdateProjectionsCategoryCommand
267
282
  */
@@ -322,6 +337,10 @@ export declare const de_DisableProjectionCommand: (output: __HttpResponse, conte
322
337
  * deserializeAws_restJson1EnableProjectionCommand
323
338
  */
324
339
  export declare const de_EnableProjectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<EnableProjectionCommandOutput>;
340
+ /**
341
+ * deserializeAws_restJson1GetAnalysisSettingsCommand
342
+ */
343
+ export declare const de_GetAnalysisSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAnalysisSettingsCommandOutput>;
325
344
  /**
326
345
  * deserializeAws_restJson1GetCallCharacteristicsCommand
327
346
  */
@@ -434,6 +453,10 @@ export declare const de_ListWatchHistoryCommand: (output: __HttpResponse, contex
434
453
  * deserializeAws_restJson1PauseProjectionCommand
435
454
  */
436
455
  export declare const de_PauseProjectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PauseProjectionCommandOutput>;
456
+ /**
457
+ * deserializeAws_restJson1PutAnalysisSettingsCommand
458
+ */
459
+ export declare const de_PutAnalysisSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutAnalysisSettingsCommandOutput>;
437
460
  /**
438
461
  * deserializeAws_restJson1PutPlaylistItemCommand
439
462
  */
@@ -478,6 +501,10 @@ export declare const de_UpdatePlaylistAccessCommand: (output: __HttpResponse, co
478
501
  * deserializeAws_restJson1UpdateProjectionCommand
479
502
  */
480
503
  export declare const de_UpdateProjectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateProjectionCommandOutput>;
504
+ /**
505
+ * deserializeAws_restJson1UpdateProjectionAnalysisSettingsCommand
506
+ */
507
+ export declare const de_UpdateProjectionAnalysisSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateProjectionAnalysisSettingsCommandOutput>;
481
508
  /**
482
509
  * deserializeAws_restJson1UpdateProjectionsCategoryCommand
483
510
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wda-insights-client",
3
3
  "description": "@wildix/wda-insights-client client",
4
- "version": "1.1.30",
4
+ "version": "1.1.34",
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",